hexsha string | size int64 | ext string | lang string | max_stars_repo_path string | max_stars_repo_name string | max_stars_repo_head_hexsha string | max_stars_repo_licenses list | max_stars_count int64 | max_stars_repo_stars_event_min_datetime string | max_stars_repo_stars_event_max_datetime string | max_issues_repo_path string | max_issues_repo_name string | max_issues_repo_head_hexsha string | max_issues_repo_licenses list | max_issues_count int64 | max_issues_repo_issues_event_min_datetime string | max_issues_repo_issues_event_max_datetime string | max_forks_repo_path string | max_forks_repo_name string | max_forks_repo_head_hexsha string | max_forks_repo_licenses list | max_forks_count int64 | max_forks_repo_forks_event_min_datetime string | max_forks_repo_forks_event_max_datetime string | content string | avg_line_length float64 | max_line_length int64 | alphanum_fraction float64 | qsc_code_num_words_quality_signal int64 | qsc_code_num_chars_quality_signal float64 | qsc_code_mean_word_length_quality_signal float64 | qsc_code_frac_words_unique_quality_signal float64 | qsc_code_frac_chars_top_2grams_quality_signal float64 | qsc_code_frac_chars_top_3grams_quality_signal float64 | qsc_code_frac_chars_top_4grams_quality_signal float64 | qsc_code_frac_chars_dupe_5grams_quality_signal float64 | qsc_code_frac_chars_dupe_6grams_quality_signal float64 | qsc_code_frac_chars_dupe_7grams_quality_signal float64 | qsc_code_frac_chars_dupe_8grams_quality_signal float64 | qsc_code_frac_chars_dupe_9grams_quality_signal float64 | qsc_code_frac_chars_dupe_10grams_quality_signal float64 | qsc_code_frac_chars_replacement_symbols_quality_signal float64 | qsc_code_frac_chars_digital_quality_signal float64 | qsc_code_frac_chars_whitespace_quality_signal float64 | qsc_code_size_file_byte_quality_signal float64 | qsc_code_num_lines_quality_signal float64 | qsc_code_num_chars_line_max_quality_signal float64 | qsc_code_num_chars_line_mean_quality_signal float64 | qsc_code_frac_chars_alphabet_quality_signal float64 | qsc_code_frac_chars_comments_quality_signal float64 | qsc_code_cate_xml_start_quality_signal float64 | qsc_code_frac_lines_dupe_lines_quality_signal float64 | qsc_code_cate_autogen_quality_signal float64 | qsc_code_frac_lines_long_string_quality_signal float64 | qsc_code_frac_chars_string_length_quality_signal float64 | qsc_code_frac_chars_long_word_length_quality_signal float64 | qsc_code_frac_lines_string_concat_quality_signal float64 | qsc_code_cate_encoded_data_quality_signal float64 | qsc_code_frac_chars_hex_words_quality_signal float64 | qsc_code_frac_lines_prompt_comments_quality_signal float64 | qsc_code_frac_lines_assert_quality_signal float64 | qsc_codepython_cate_ast_quality_signal float64 | qsc_codepython_frac_lines_func_ratio_quality_signal float64 | qsc_codepython_cate_var_zero_quality_signal bool | qsc_codepython_frac_lines_pass_quality_signal float64 | qsc_codepython_frac_lines_import_quality_signal float64 | qsc_codepython_frac_lines_simplefunc_quality_signal float64 | qsc_codepython_score_lines_no_logic_quality_signal float64 | qsc_codepython_frac_lines_print_quality_signal float64 | qsc_code_num_words int64 | qsc_code_num_chars int64 | qsc_code_mean_word_length int64 | qsc_code_frac_words_unique null | qsc_code_frac_chars_top_2grams int64 | qsc_code_frac_chars_top_3grams int64 | qsc_code_frac_chars_top_4grams int64 | qsc_code_frac_chars_dupe_5grams int64 | qsc_code_frac_chars_dupe_6grams int64 | qsc_code_frac_chars_dupe_7grams int64 | qsc_code_frac_chars_dupe_8grams int64 | qsc_code_frac_chars_dupe_9grams int64 | qsc_code_frac_chars_dupe_10grams int64 | qsc_code_frac_chars_replacement_symbols int64 | qsc_code_frac_chars_digital int64 | qsc_code_frac_chars_whitespace int64 | qsc_code_size_file_byte int64 | qsc_code_num_lines int64 | qsc_code_num_chars_line_max int64 | qsc_code_num_chars_line_mean int64 | qsc_code_frac_chars_alphabet int64 | qsc_code_frac_chars_comments int64 | qsc_code_cate_xml_start int64 | qsc_code_frac_lines_dupe_lines int64 | qsc_code_cate_autogen int64 | qsc_code_frac_lines_long_string int64 | qsc_code_frac_chars_string_length int64 | qsc_code_frac_chars_long_word_length int64 | qsc_code_frac_lines_string_concat null | qsc_code_cate_encoded_data int64 | qsc_code_frac_chars_hex_words int64 | qsc_code_frac_lines_prompt_comments int64 | qsc_code_frac_lines_assert int64 | qsc_codepython_cate_ast int64 | qsc_codepython_frac_lines_func_ratio int64 | qsc_codepython_cate_var_zero int64 | qsc_codepython_frac_lines_pass int64 | qsc_codepython_frac_lines_import int64 | qsc_codepython_frac_lines_simplefunc int64 | qsc_codepython_score_lines_no_logic int64 | qsc_codepython_frac_lines_print int64 | effective string | hits int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f53f7ca7e55025431c0eddd3b58db5224cb4211d | 177 | py | Python | src/params/NeuronTypes.py | thatmariia/grid-ping | 3c32e48226adddcffba605573daa80cca02b5a57 | [
"BSD-4-Clause"
] | null | null | null | src/params/NeuronTypes.py | thatmariia/grid-ping | 3c32e48226adddcffba605573daa80cca02b5a57 | [
"BSD-4-Clause"
] | null | null | null | src/params/NeuronTypes.py | thatmariia/grid-ping | 3c32e48226adddcffba605573daa80cca02b5a57 | [
"BSD-4-Clause"
] | null | null | null | from enum import Enum
class NeuronTypes(Enum):
"""
Enum class containing neuron types: excitatory and inhibitory.
"""
EX = "excitatory"
IN = "inhibitory"
| 16.090909 | 66 | 0.649718 | 19 | 177 | 6.052632 | 0.684211 | 0.156522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.254237 | 177 | 10 | 67 | 17.7 | 0.871212 | 0.350282 | 0 | 0 | 0 | 0 | 0.20202 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
f54a3cae489a26d054375f7cc639c9b189e844de | 10,980 | py | Python | tests/test_dsl.py | os-climate/declarative-trino-access-control | 8a810fccaca0e089cd17d4a1c888da7bcb36063e | [
"Apache-2.0"
] | null | null | null | tests/test_dsl.py | os-climate/declarative-trino-access-control | 8a810fccaca0e089cd17d4a1c888da7bcb36063e | [
"Apache-2.0"
] | 4 | 2022-01-15T14:37:21.000Z | 2022-03-26T12:42:24.000Z | tests/test_dsl.py | os-climate/osc-trino-acl-dsl | 8a810fccaca0e089cd17d4a1c888da7bcb36063e | [
"Apache-2.0"
] | null | null | null | import re
import textwrap
import yaml
from osc_trino_acl_dsl.dsl2rules import dsl_to_rules
class Table(object):
def __init__(self, catalog: str, schema: str, table: str):
self.catalog: str = str(catalog)
self.schema: str = str(schema)
self.table: str = str(table)
class User(object):
... | 32.485207 | 105 | 0.543443 | 1,264 | 10,980 | 4.639241 | 0.106013 | 0.058151 | 0.097203 | 0.11869 | 0.718281 | 0.702251 | 0.670703 | 0.644441 | 0.612551 | 0.609482 | 0 | 0.009028 | 0.303916 | 10,980 | 337 | 106 | 32.581602 | 0.75821 | 0.110656 | 0 | 0.509091 | 0 | 0 | 0.121451 | 0 | 0 | 0 | 0 | 0 | 0.284848 | 1 | 0.060606 | false | 0 | 0.024242 | 0 | 0.151515 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f55da49181d53035411252526f6236de7beb9882 | 2,222 | py | Python | codes3d/build_gene_index.py | Genome3d/codes3d-v1 | fe4897cb07bd8b2c10cfc29defe8570d447b69e0 | [
"MIT"
] | null | null | null | codes3d/build_gene_index.py | Genome3d/codes3d-v1 | fe4897cb07bd8b2c10cfc29defe8570d447b69e0 | [
"MIT"
] | 4 | 2018-10-25T02:09:37.000Z | 2019-06-27T20:50:27.000Z | codes3d/build_gene_index.py | Genome3d/codes3d-v1 | fe4897cb07bd8b2c10cfc29defe8570d447b69e0 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import argparse,codes3d,configparser, os
if __name__ == "__main__":
parser = argparse.ArgumentParser(description="Create a BED file detailing the locations of genes in the genome, and a database containing additional gene information. Note: If a file in .gtf format is supplied, no other arguments ... | 96.608696 | 246 | 0.756976 | 354 | 2,222 | 4.610169 | 0.322034 | 0.055147 | 0.104167 | 0.042892 | 0.357843 | 0.357843 | 0.357843 | 0.291667 | 0.194853 | 0.148284 | 0 | 0.002506 | 0.10216 | 2,222 | 22 | 247 | 101 | 0.815539 | 0.007201 | 0 | 0 | 0 | 0.294118 | 0.595918 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f56b8e9802094da8814e591262fd9b96c9698428 | 736 | py | Python | data/train/python/f56b8e9802094da8814e591262fd9b96c9698428manage.py | harshp8l/deep-learning-lang-detection | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | [
"MIT"
] | 84 | 2017-10-25T15:49:21.000Z | 2021-11-28T21:25:54.000Z | data/train/python/f56b8e9802094da8814e591262fd9b96c9698428manage.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 5 | 2018-03-29T11:50:46.000Z | 2021-04-26T13:33:18.000Z | data/train/python/f56b8e9802094da8814e591262fd9b96c9698428manage.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 24 | 2017-11-22T08:31:00.000Z | 2022-03-27T01:22:31.000Z | #!/usr/bin/env python3
#-*- codin:utf-8 -*-
'''
用django + celery + redis演示异步队列任务。
不过文章写的太简略了,文章没啥意思,水平到了可以直接看代码。
python manage.py migrate -- looks at the INSTALLED_APPS setting and creates any necessary database tables according to the database settings in your mysite/settings.py file and the database migrations shipp... | 33.454545 | 221 | 0.777174 | 105 | 736 | 5.257143 | 0.638095 | 0.108696 | 0.126812 | 0.07971 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009449 | 0.137228 | 736 | 21 | 222 | 35.047619 | 0.859843 | 0.67663 | 0 | 0 | 0 | 0 | 0.19214 | 0.09607 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
f5735cd931c6cb22e8fa362f8340421fcf372c3d | 1,340 | py | Python | backend/app/settings/globals.py | alldevic/base-fastapi-postgresql | 7e3a2916910155cd83b10cd7fec42eba7b1d3a95 | [
"MIT"
] | 3 | 2021-06-17T00:06:15.000Z | 2022-01-26T03:53:51.000Z | backend/app/settings/globals.py | alldevic/base-fastapi-postgresql | 7e3a2916910155cd83b10cd7fec42eba7b1d3a95 | [
"MIT"
] | null | null | null | backend/app/settings/globals.py | alldevic/base-fastapi-postgresql | 7e3a2916910155cd83b10cd7fec42eba7b1d3a95 | [
"MIT"
] | null | null | null | from pathlib import Path
from typing import Optional
from starlette.config import Config
from starlette.datastructures import CommaSeparatedStrings
from ..models.pydantic.database import DatabaseURL
p: Path = Path(__file__).parents[2] / ".env"
config: Config = Config(p if p.exists() else None)
DATABASE: str = confi... | 31.162791 | 72 | 0.750746 | 174 | 1,340 | 5.586207 | 0.264368 | 0.055556 | 0.072016 | 0.055556 | 0.216049 | 0.139918 | 0.139918 | 0.139918 | 0.139918 | 0.139918 | 0 | 0.008584 | 0.130597 | 1,340 | 42 | 73 | 31.904762 | 0.825751 | 0 | 0 | 0.277778 | 0 | 0 | 0.117164 | 0.01791 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.138889 | 0.138889 | 0 | 0.138889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
f57687a33470d7205bc87af05ce7973af384b2a0 | 235 | py | Python | 1103.py | gabzin/uri | 177bdf3f87bacfd924bd031a973b8db877379fe5 | [
"MIT"
] | 3 | 2021-09-21T18:50:20.000Z | 2021-12-14T13:07:31.000Z | 1103.py | gabzin/uri | 177bdf3f87bacfd924bd031a973b8db877379fe5 | [
"MIT"
] | null | null | null | 1103.py | gabzin/uri | 177bdf3f87bacfd924bd031a973b8db877379fe5 | [
"MIT"
] | null | null | null | while True:
h1,m1,h2,m2=map(int,input().split())
i=f=0
if m1+m2+h1+h2==0:break
if h1==0:i=(24*60)+m1
else:i=(h1*60)+m1
if h2==0:f=(24*60)+m2
else:f=(h2*60)+m2
print(f-i) if f>i else print((24*60)-(i-f))
| 23.5 | 47 | 0.52766 | 56 | 235 | 2.214286 | 0.339286 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193548 | 0.208511 | 235 | 9 | 48 | 26.111111 | 0.473118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f585cb72a0db164994f5a14aac9910a31f98b2a9 | 1,096 | py | Python | unit1/data-types.py | mmunozz/merit-notes | 66c04939eb2aa9f63efe4ef947c291aafbc1ce0a | [
"MIT"
] | null | null | null | unit1/data-types.py | mmunozz/merit-notes | 66c04939eb2aa9f63efe4ef947c291aafbc1ce0a | [
"MIT"
] | null | null | null | unit1/data-types.py | mmunozz/merit-notes | 66c04939eb2aa9f63efe4ef947c291aafbc1ce0a | [
"MIT"
] | null | null | null | """
Project: Data Types Notes
Author: Mr. Buckley
Last update: 8/25/2018
Description: Goes over comments, int, float, str, and type casting
"""
# *** COMMENTS ***
# This is a comment (with a "#")
# Comments are only for the user's eyes, the program doesn't read them.
# Describe what sections of code do with... | 20.296296 | 71 | 0.671533 | 173 | 1,096 | 4.231214 | 0.473988 | 0.027322 | 0.019126 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021566 | 0.196168 | 1,096 | 53 | 72 | 20.679245 | 0.809308 | 0.609489 | 0 | 0 | 0 | 0 | 0.127371 | 0 | 0 | 0 | 0 | 0.018868 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.588235 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
f58e292660fbb4b40d7f4326ad34ea03b891aa42 | 324 | py | Python | app/app/schemas/token.py | Tall-Programacion-FIME/backend | 95b6934fd57086ffc2be3d9135732df3d240f694 | [
"Apache-2.0"
] | null | null | null | app/app/schemas/token.py | Tall-Programacion-FIME/backend | 95b6934fd57086ffc2be3d9135732df3d240f694 | [
"Apache-2.0"
] | 13 | 2021-03-04T22:59:54.000Z | 2021-05-16T23:24:22.000Z | app/app/schemas/token.py | Tall-Programacion-FIME/backend | 95b6934fd57086ffc2be3d9135732df3d240f694 | [
"Apache-2.0"
] | 1 | 2021-04-20T14:51:43.000Z | 2021-04-20T14:51:43.000Z | import datetime
from typing import Optional
from pydantic import BaseModel
class TokenBase(BaseModel):
access_token: str
class Token(TokenBase):
refresh_token: str
class TokenData(BaseModel):
username: Optional[str] = None
class VerificationToken(BaseModel):
user_id: int
exp: datetime.datet... | 14.727273 | 35 | 0.753086 | 38 | 324 | 6.342105 | 0.552632 | 0.06639 | 0.107884 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182099 | 324 | 21 | 36 | 15.428571 | 0.909434 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
f5915199b7c0be4872a450c1503f4eb928f9e20f | 637 | py | Python | dependencyinjection/internal/callsite_resolvers.py | Cologler/dependencyinjection-python | dc05c61571f10652d82929ebec4b255f109b840b | [
"MIT"
] | null | null | null | dependencyinjection/internal/callsite_resolvers.py | Cologler/dependencyinjection-python | dc05c61571f10652d82929ebec4b255f109b840b | [
"MIT"
] | null | null | null | dependencyinjection/internal/callsite_resolvers.py | Cologler/dependencyinjection-python | dc05c61571f10652d82929ebec4b255f109b840b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright (c) 2017~2999 - cologler <skyoflw@gmail.com>
# ----------
#
# ----------
from .common import LifeTime, IServiceProvider, ICallSiteResolver
from .descriptors import CallableDescriptor
class CallSiteResolver(ICallSiteResolver):
def __init__(self, service_provider: IServiceProvi... | 33.526316 | 98 | 0.726845 | 64 | 637 | 6.96875 | 0.59375 | 0.098655 | 0.127803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016729 | 0.155416 | 637 | 18 | 99 | 35.388889 | 0.812268 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
f5aa1cc085abe91e5e9d7da0530662e853080933 | 738 | py | Python | lesson13n2/states/out.py | muzudho/py-state-machine-practice | e31c066f4cf142b6b6c5ff273b56a0f89428c59e | [
"MIT"
] | null | null | null | lesson13n2/states/out.py | muzudho/py-state-machine-practice | e31c066f4cf142b6b6c5ff273b56a0f89428c59e | [
"MIT"
] | null | null | null | lesson13n2/states/out.py | muzudho/py-state-machine-practice | e31c066f4cf142b6b6c5ff273b56a0f89428c59e | [
"MIT"
] | null | null | null | from lesson12_projects.house3.data.const import E_TURNED_KNOB, MSG_TURN_KNOB, E_FAILED
class OutState:
def update(self, req):
self.on_entry(req)
# 入力
msg = self.on_trigger(req)
# 外に居ます。 'Turn knob' とメッセージを送ってくるのが正解です
if msg == MSG_TURN_KNOB:
self.on_turned_kn... | 21.085714 | 86 | 0.585366 | 100 | 738 | 4.09 | 0.4 | 0.085575 | 0.05379 | 0.05868 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006024 | 0.325203 | 738 | 34 | 87 | 21.705882 | 0.815261 | 0.054201 | 0 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0.095238 | 0.047619 | 0.047619 | 0.47619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
1910e99d0b7143a24de2db38d697e59e51df210d | 2,234 | py | Python | lib/piservices/remote/integration.py | creative-workflow/pi-setup | d6d28cb8d34ef71b1e8ac95dd94099bfad08837a | [
"MIT"
] | 1 | 2020-04-25T00:55:45.000Z | 2020-04-25T00:55:45.000Z | lib/piservices/remote/integration.py | creative-workflow/pi-setup | d6d28cb8d34ef71b1e8ac95dd94099bfad08837a | [
"MIT"
] | 4 | 2015-05-28T23:20:13.000Z | 2015-05-28T23:24:01.000Z | lib/piservices/remote/integration.py | creative-workflow/pi-setup | d6d28cb8d34ef71b1e8ac95dd94099bfad08837a | [
"MIT"
] | null | null | null | from config import *
from template import *
from dictasobject import DictAsObject
class RemoteFileHelper:
def __init__(self, service):
self.service = service
self.config = DictAsObject({
'ini' : self.config_ini,
'parser' : self.config_parser,
'shellvars' : self.config_shellvars,... | 39.192982 | 83 | 0.656222 | 249 | 2,234 | 5.662651 | 0.164659 | 0.156028 | 0.059574 | 0.06383 | 0.553901 | 0.553901 | 0.489362 | 0.489362 | 0.404255 | 0.343262 | 0 | 0 | 0.243062 | 2,234 | 56 | 84 | 39.892857 | 0.833826 | 0 | 0 | 0.204545 | 0 | 0 | 0.013876 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204545 | false | 0 | 0.068182 | 0.068182 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
1916221a240fca8e366955bf9b55225db064e9c4 | 169 | py | Python | Desafio25.py | sergioboff/Desafios-Curso-em-Video | f876396635b12c00bdd9523758364bbebfd70ae0 | [
"MIT"
] | null | null | null | Desafio25.py | sergioboff/Desafios-Curso-em-Video | f876396635b12c00bdd9523758364bbebfd70ae0 | [
"MIT"
] | null | null | null | Desafio25.py | sergioboff/Desafios-Curso-em-Video | f876396635b12c00bdd9523758364bbebfd70ae0 | [
"MIT"
] | null | null | null | nome = str(input('Digite seu nome completo: ')).strip()
if 'silva' in nome.lower():
print('Sim, seu nome tem Silva.')
else:
print('Não , seu nome não tem Silva') | 33.8 | 55 | 0.64497 | 27 | 169 | 4.037037 | 0.592593 | 0.192661 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183432 | 169 | 5 | 56 | 33.8 | 0.789855 | 0 | 0 | 0 | 0 | 0 | 0.488235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1918ab57423bec266c18fa1bdfea020adfc67165 | 628 | py | Python | front_end/create_data_natalia_icassp.py | adiyoss/DeepVOT | 6bbda01fc5a4f93c92fccba2b9dacee511533244 | [
"MIT"
] | 6 | 2016-10-16T14:23:44.000Z | 2021-05-06T12:00:08.000Z | front_end/create_data_natalia_icassp.py | adiyoss/DeepVOT | 6bbda01fc5a4f93c92fccba2b9dacee511533244 | [
"MIT"
] | 3 | 2019-10-17T19:21:45.000Z | 2020-08-06T10:29:27.000Z | front_end/create_data_natalia_icassp.py | adiyoss/DeepVOT | 6bbda01fc5a4f93c92fccba2b9dacee511533244 | [
"MIT"
] | 8 | 2016-07-02T04:38:07.000Z | 2021-08-31T08:25:19.000Z | # import argparse
#
#
# def main(audio_path, textgrid_path, output_path):
# data = list()
# for
# print(1)
#
# if __name__ == "__main__":
# # -------------MENU-------------- #
# # command line arguments
# parser = argparse.ArgumentParser()
# parser.add_argument("audio_path", help="The path t... | 33.052632 | 83 | 0.638535 | 76 | 628 | 5 | 0.434211 | 0.071053 | 0.134211 | 0.118421 | 0.15 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0.001969 | 0.191083 | 628 | 19 | 84 | 33.052632 | 0.746063 | 0.933121 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
192b17d903cd1b6ec6531cfdd00faa10c1ae8213 | 873 | py | Python | tools/leetcode.093.Restore IP Addresses/leetcode.093.Restore IP Addresses.submission2.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | 4 | 2015-10-10T00:30:55.000Z | 2020-07-27T19:45:54.000Z | tools/leetcode.093.Restore IP Addresses/leetcode.093.Restore IP Addresses.submission2.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | null | null | null | tools/leetcode.093.Restore IP Addresses/leetcode.093.Restore IP Addresses.submission2.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | null | null | null | class Solution:
# @param {string} s
# @return {string[]}
def restoreIpAddresses(self, s):
if not s or len(s) < 4: return []
res = []
cur = []
self.helper(s, res, cur, 0)
return res
def helper(self, s, res, cur, level):
if level == 4:
i... | 873 | 873 | 0.412371 | 120 | 873 | 3 | 0.25 | 0.1 | 0.122222 | 0.1 | 0.191667 | 0.191667 | 0.191667 | 0.138889 | 0.138889 | 0.138889 | 0 | 0.057199 | 0.419244 | 873 | 1 | 873 | 873 | 0.65286 | 0.041237 | 0 | 0.192308 | 0 | 0 | 0.001198 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
19308256c02abbb6b9f77d5d12549a9bf4a3e01e | 1,382 | py | Python | src/runner/exporter.py | leechunghwan/YCSB-runner | f33d0fed30b41797864d95b7dbc8a6c2430f0bd8 | [
"Apache-2.0"
] | null | null | null | src/runner/exporter.py | leechunghwan/YCSB-runner | f33d0fed30b41797864d95b7dbc8a6c2430f0bd8 | [
"Apache-2.0"
] | null | null | null | src/runner/exporter.py | leechunghwan/YCSB-runner | f33d0fed30b41797864d95b7dbc8a6c2430f0bd8 | [
"Apache-2.0"
] | null | null | null | class Exporter:
# Extensions for output files
FILE_EXT = ".txt"
PLOTS_FILE_EXT = ".pdf"
"""Exporter: Exports statistical data captured from YCSB output to a file."""
def __init__(self, stats_set):
"""__init__
:param stats_set: StatisticsSet object containing data to be export... | 32.139535 | 81 | 0.636035 | 170 | 1,382 | 5.052941 | 0.329412 | 0.055879 | 0.052387 | 0.073341 | 0.451688 | 0.213038 | 0.154831 | 0.111758 | 0.111758 | 0.111758 | 0 | 0 | 0.295948 | 1,382 | 42 | 82 | 32.904762 | 0.882837 | 0.498553 | 0 | 0.272727 | 0 | 0 | 0.017582 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
1930fdebe216693651fdbce0248a0cc3fa01cfe6 | 4,387 | py | Python | src/sima/riflex/crsaxialfrictionmodel.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | src/sima/riflex/crsaxialfrictionmodel.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | src/sima/riflex/crsaxialfrictionmodel.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | # This an autogenerated file
#
# Generated with CRSAxialFrictionModel
from typing import Dict,Sequence,List
from dmt.entity import Entity
from dmt.blueprint import Blueprint
from .blueprints.crsaxialfrictionmodel import CRSAxialFrictionModelBlueprint
from typing import Dict
from sima.sima.moao import MOAO
from sima.si... | 29.641892 | 174 | 0.647367 | 407 | 4,387 | 6.845209 | 0.189189 | 0.039483 | 0.051687 | 0.040201 | 0.153625 | 0.134243 | 0.084709 | 0.03374 | 0 | 0 | 0 | 0.004869 | 0.250969 | 4,387 | 147 | 175 | 29.843537 | 0.84297 | 0.223615 | 0 | 0.123457 | 1 | 0 | 0.008393 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.246914 | false | 0 | 0.08642 | 0 | 0.469136 | 0.049383 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
19310709fccc926261a99f530ec7e2d84e44988f | 3,142 | py | Python | Drop7/test/Disk_Test.py | SanderP99/Drop7 | b11c2590d3cc1e311fb34a4635a1f6c075d9cb59 | [
"MIT"
] | null | null | null | Drop7/test/Disk_Test.py | SanderP99/Drop7 | b11c2590d3cc1e311fb34a4635a1f6c075d9cb59 | [
"MIT"
] | null | null | null | Drop7/test/Disk_Test.py | SanderP99/Drop7 | b11c2590d3cc1e311fb34a4635a1f6c075d9cb59 | [
"MIT"
] | null | null | null | # import Drop7.Board as Board
import Drop7.Disk as Disk
def test_Is_Proper_Disk__Legal_Case(score, max_score):
"""Function is_proper_disk: given disk is proper disk."""
max_score.value += 1
try:
assert Disk.is_proper_disk(4, Disk.init_disk(Disk.VISIBLE, 4))
assert Disk.is_proper_disk(4, Dis... | 26.854701 | 74 | 0.638765 | 449 | 3,142 | 4.160356 | 0.11804 | 0.068522 | 0.089936 | 0.089936 | 0.807816 | 0.655246 | 0.566381 | 0.448608 | 0.292827 | 0.252141 | 0 | 0.020051 | 0.253978 | 3,142 | 116 | 75 | 27.086207 | 0.776877 | 0.120624 | 0 | 0.518072 | 0 | 0 | 0.001103 | 0 | 0 | 0 | 0 | 0 | 0.156627 | 1 | 0.096386 | false | 0.096386 | 0.012048 | 0 | 0.108434 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
19455519ed74bb43e4ac991488c150b0c157ddd6 | 5,247 | py | Python | sportradar/NFL.py | scrambldchannel/SportradarAPIs | e42e128313647d51784b6f1f3aa201b07fca0a08 | [
"MIT"
] | 33 | 2018-07-05T17:07:06.000Z | 2022-02-05T16:32:19.000Z | sportradar/NFL.py | scrambldchannel/SportradarAPIs | e42e128313647d51784b6f1f3aa201b07fca0a08 | [
"MIT"
] | 6 | 2018-11-16T15:53:33.000Z | 2021-06-26T23:04:33.000Z | sportradar/NFL.py | scrambldchannel/SportradarAPIs | e42e128313647d51784b6f1f3aa201b07fca0a08 | [
"MIT"
] | 17 | 2018-08-08T08:10:49.000Z | 2021-10-06T00:25:21.000Z | # Sportradar APIs
# Copyright 2018 John W. Miller
# See LICENSE for details.
from sportradar.api import API
class NFL(API):
def __init__(self, api_key, format_='json', access_level='ot',
version=2, timeout=5, sleep_time=1.5):
super().__init__(api_key, format_, timeout, sleep_time)
... | 45.232759 | 90 | 0.658853 | 714 | 5,247 | 4.610644 | 0.161064 | 0.087485 | 0.068044 | 0.102066 | 0.519745 | 0.498177 | 0.481166 | 0.46294 | 0.415553 | 0.390644 | 0 | 0.00984 | 0.225272 | 5,247 | 115 | 91 | 45.626087 | 0.8 | 0.237278 | 0 | 0.301587 | 0 | 0 | 0.154008 | 0.143196 | 0 | 0 | 0 | 0 | 0 | 1 | 0.269841 | false | 0 | 0.015873 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
194c8b5cc1cd58612c803208f1241b2813f11d98 | 9,523 | py | Python | pysnmp/CISCO-IETF-PW-FR-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/CISCO-IETF-PW-FR-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/CISCO-IETF-PW-FR-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module CISCO-IETF-PW-FR-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-IETF-PW-FR-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:43:46 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (defau... | 119.0375 | 1,132 | 0.748609 | 1,108 | 9,523 | 6.43231 | 0.148014 | 0.008699 | 0.012207 | 0.016276 | 0.469342 | 0.408587 | 0.358636 | 0.350779 | 0.3244 | 0.322436 | 0 | 0.069954 | 0.084322 | 9,523 | 79 | 1,133 | 120.544304 | 0.747362 | 0.035073 | 0 | 0.057143 | 0 | 0 | 0.191721 | 0.012092 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1953dea348e57ea12a9ad8bb64e5c7842c0eba20 | 37,416 | py | Python | pysnmp-with-texts/CIRCUIT-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/CIRCUIT-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/CIRCUIT-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module CIRCUIT-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CIRCUIT-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:49:40 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 0... | 146.729412 | 3,536 | 0.795836 | 4,434 | 37,416 | 6.715156 | 0.128778 | 0.064081 | 0.112141 | 0.010747 | 0.581763 | 0.435365 | 0.342233 | 0.32712 | 0.319261 | 0.278388 | 0 | 0.050678 | 0.09397 | 37,416 | 254 | 3,537 | 147.307087 | 0.82764 | 0.008446 | 0 | 0 | 0 | 0.1417 | 0.33531 | 0.002373 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.02834 | 0.02834 | 0 | 0.02834 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1977d36fe2b99e051c145c78f7a06b38fad7e1e1 | 394 | py | Python | admin_log_entries/settings.py | ataylor32/django-adminlogentries | 6aa99b0444b3747369404bcaee4b50183f8194e0 | [
"MIT"
] | 5 | 2017-12-05T13:44:48.000Z | 2021-07-29T14:04:57.000Z | admin_log_entries/settings.py | ataylor32/django-adminlogentries | 6aa99b0444b3747369404bcaee4b50183f8194e0 | [
"MIT"
] | null | null | null | admin_log_entries/settings.py | ataylor32/django-adminlogentries | 6aa99b0444b3747369404bcaee4b50183f8194e0 | [
"MIT"
] | null | null | null | from django.conf import settings
default_settings = {
'has_module_permission_false': False,
}
ADMIN_LOG_ENTRIES_SETTINGS = {}
def compute_settings():
for name, value in default_settings.items():
ADMIN_LOG_ENTRIES_SETTINGS[name] = value
if hasattr(settings, 'ADMIN_LOG_ENTRIES'):
ADMIN_LO... | 21.888889 | 69 | 0.756345 | 49 | 394 | 5.673469 | 0.469388 | 0.143885 | 0.269784 | 0.248201 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15736 | 394 | 17 | 70 | 23.176471 | 0.837349 | 0 | 0 | 0 | 0 | 0 | 0.111675 | 0.068528 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
199b9fe3c8a3ba98e7b1141db31d1f32f85abbd2 | 545 | py | Python | manage.py | kojwangbora/elly-blog | 95946ece071784fa5c15c21618011cbb97ebfc46 | [
"MIT"
] | null | null | null | manage.py | kojwangbora/elly-blog | 95946ece071784fa5c15c21618011cbb97ebfc46 | [
"MIT"
] | null | null | null | manage.py | kojwangbora/elly-blog | 95946ece071784fa5c15c21618011cbb97ebfc46 | [
"MIT"
] | null | null | null | from app import create_app, db
from flask_migrate import Migrate
from app.models import User, Posts
from flask_script import Manager,Server
app = create_app()
# manager = Manager(app)
# manager.add_command('server', Server)
# #Creating migration instance
# migrate = Migrate(app, db)
# manager.add_command('db',Migrate... | 23.695652 | 51 | 0.717431 | 72 | 545 | 5.180556 | 0.444444 | 0.037534 | 0.091153 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163303 | 545 | 23 | 52 | 23.695652 | 0.817982 | 0.638532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
5fe6da3d5fdab2a2eb9fd6fc794811538cea5b7c | 639 | py | Python | lib/clock.py | greymistcube/racing_game_ai | 7e5e6ec781eb3c98729d370cbcc0ab6ed053962f | [
"MIT"
] | null | null | null | lib/clock.py | greymistcube/racing_game_ai | 7e5e6ec781eb3c98729d370cbcc0ab6ed053962f | [
"MIT"
] | null | null | null | lib/clock.py | greymistcube/racing_game_ai | 7e5e6ec781eb3c98729d370cbcc0ab6ed053962f | [
"MIT"
] | null | null | null | import pygame
import lib.common as common
# initializing module
pygame.init()
class Clock:
__instance = None
# implementing this class as singleton
def __new__(cls, *args, **kwargs):
if cls.__instance is None:
cls.__instance = super().__new__(cls)
return cls.__instance
... | 22.034483 | 62 | 0.621283 | 77 | 639 | 4.87013 | 0.519481 | 0.088 | 0.069333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010917 | 0.283255 | 639 | 28 | 63 | 22.821429 | 0.80786 | 0.087637 | 0 | 0.105263 | 0 | 0 | 0.053448 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.105263 | 0.052632 | 0.631579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
5fe6e8bc747c5f980ad7fbb164a7c5c2ef4b9edf | 231 | py | Python | setup.py | powerd4/SNA_project | 458dae1df4d198f6ce82062cd2e59f8408cbb3cf | [
"FTL"
] | null | null | null | setup.py | powerd4/SNA_project | 458dae1df4d198f6ce82062cd2e59f8408cbb3cf | [
"FTL"
] | null | null | null | setup.py | powerd4/SNA_project | 458dae1df4d198f6ce82062cd2e59f8408cbb3cf | [
"FTL"
] | null | null | null | from setuptools import find_packages, setup
setup(
name='src',
packages=find_packages(),
version='0.1.0',
description='Social Network Analysis module group project 2020',
author='Dean Power',
license='',
)
| 21 | 68 | 0.679654 | 28 | 231 | 5.535714 | 0.821429 | 0.154839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037634 | 0.194805 | 231 | 10 | 69 | 23.1 | 0.795699 | 0 | 0 | 0 | 0 | 0 | 0.290043 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
27004bc90d0396548daec8e9a418a7f70ae5efe9 | 4,597 | py | Python | database_sanitizer/session.py | sharescape/python-database-sanitizer | 560bf402e3896285980abb21a74d5be8d2da1698 | [
"MIT"
] | 37 | 2018-05-07T13:07:25.000Z | 2022-02-07T18:58:10.000Z | database_sanitizer/session.py | sharescape/python-database-sanitizer | 560bf402e3896285980abb21a74d5be8d2da1698 | [
"MIT"
] | 31 | 2018-04-27T13:16:28.000Z | 2021-12-10T10:08:00.000Z | database_sanitizer/session.py | sharescape/python-database-sanitizer | 560bf402e3896285980abb21a74d5be8d2da1698 | [
"MIT"
] | 15 | 2018-05-04T12:28:12.000Z | 2022-02-17T09:27:58.000Z | """
API to sanitation session.
Sanitation session allows having a state within a single sanitation
process.
One important thing stored to the session is a secret key which is
generated to a new random value for each sanitation session, but it
stays constant during the whole sanitation process. Its value is never
reve... | 31.272109 | 72 | 0.688057 | 714 | 4,597 | 4.326331 | 0.260504 | 0.04079 | 0.034963 | 0.031078 | 0.217546 | 0.158627 | 0.133377 | 0.1146 | 0.1146 | 0.089349 | 0 | 0.013795 | 0.227322 | 4,597 | 146 | 73 | 31.486301 | 0.855856 | 0.62519 | 0 | 0.057143 | 1 | 0 | 0.01026 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.542857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
2707004f28feaa5db63a1087307863b0d70fe4ec | 100 | py | Python | Algorithms/Bit Manipulation/Given a list of numbers where every numbers occurs twice except one number.py | cnm06/Competitive-Programming | 94242ae458570d503b8218f37624b88cc5020d23 | [
"MIT"
] | 994 | 2017-02-28T06:13:47.000Z | 2022-03-31T10:49:00.000Z | Algorithms/Bit Manipulation/Given a list of numbers where every numbers occurs twice except one number.py | Quadrified/Competitive-Programming | bccb69952cc5260fb3647b3301ddac1023dacac8 | [
"MIT"
] | 16 | 2018-01-01T02:59:55.000Z | 2021-11-22T12:49:16.000Z | Algorithms/Bit Manipulation/Given a list of numbers where every numbers occurs twice except one number.py | Quadrified/Competitive-Programming | bccb69952cc5260fb3647b3301ddac1023dacac8 | [
"MIT"
] | 325 | 2017-06-15T03:32:43.000Z | 2022-03-28T22:43:42.000Z | def answer(numbers):
ans = numbers[0]
for i in numbers[1:]:
ans ^= i
return ans
| 16.666667 | 25 | 0.54 | 15 | 100 | 3.6 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 0.34 | 100 | 5 | 26 | 20 | 0.787879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
270af1960a206b26f220b68d5328bdfbbbe68aa2 | 1,983 | py | Python | src/pySanbot/test/test_util/test_boyer_moore_search.py | BHFaction/Tribot | 38d8caaa73775654125db3091b8de2aadb3dba99 | [
"MIT"
] | 3 | 2017-04-04T04:03:28.000Z | 2021-05-29T08:08:48.000Z | src/pySanbot/test/test_util/test_boyer_moore_search.py | BHFaction/Tribot | 38d8caaa73775654125db3091b8de2aadb3dba99 | [
"MIT"
] | null | null | null | src/pySanbot/test/test_util/test_boyer_moore_search.py | BHFaction/Tribot | 38d8caaa73775654125db3091b8de2aadb3dba99 | [
"MIT"
] | 2 | 2018-02-28T14:16:11.000Z | 2019-05-07T18:02:16.000Z | from unittest import TestCase
from util.boyer_moore_search import z_array
from util.boyer_moore_search import boyer_moore, BoyerMoore
__author__ = 'Yifei'
class TestBoyerMooreSearch(TestCase):
def test_z_array(self):
# Test Case 0
s = 'aabcaabxaaaz'
n = len(s)
z = z_array(s)
... | 32.508197 | 96 | 0.498739 | 312 | 1,983 | 3.064103 | 0.128205 | 0.027197 | 0.037657 | 0.025105 | 0.732218 | 0.721757 | 0.658996 | 0.658996 | 0.658996 | 0.658996 | 0 | 0.071861 | 0.333333 | 1,983 | 60 | 97 | 33.05 | 0.651286 | 0.005547 | 0 | 0.479167 | 0 | 0 | 0.088832 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 1 | 0.041667 | false | 0 | 0.0625 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2712d71cebd1c1c0c5ebe71fa2604a188a12e044 | 331 | py | Python | core/migrations/0003_remove_resetpassword_expires_at.py | GolamMullick/HR_PROJECT | fc4c76cfc835ad014a62a3da9d32b8fc8d474397 | [
"MIT"
] | null | null | null | core/migrations/0003_remove_resetpassword_expires_at.py | GolamMullick/HR_PROJECT | fc4c76cfc835ad014a62a3da9d32b8fc8d474397 | [
"MIT"
] | 3 | 2020-02-12T02:52:01.000Z | 2021-06-10T22:18:25.000Z | core/migrations/0003_remove_resetpassword_expires_at.py | GolamMullick/HR_PROJECT | fc4c76cfc835ad014a62a3da9d32b8fc8d474397 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.4 on 2019-11-18 11:00
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('core', '0002_resetpassword'),
]
operations = [
migrations.RemoveField(
model_name='resetpassword',
name='expires_at',
... | 18.388889 | 47 | 0.595166 | 34 | 331 | 5.705882 | 0.794118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081197 | 0.293051 | 331 | 17 | 48 | 19.470588 | 0.747863 | 0.135952 | 0 | 0 | 1 | 0 | 0.158451 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.181818 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
2721ab7a1f61ce9281bd09517b3b6a6328c17752 | 708 | py | Python | geotrek/outdoor/admin.py | numahell/Geotrek-admin | e279875b0b06ef60928c049d51533f76716c902a | [
"BSD-2-Clause"
] | 1 | 2019-12-11T11:04:05.000Z | 2019-12-11T11:04:05.000Z | geotrek/outdoor/admin.py | numahell/Geotrek-admin | e279875b0b06ef60928c049d51533f76716c902a | [
"BSD-2-Clause"
] | null | null | null | geotrek/outdoor/admin.py | numahell/Geotrek-admin | e279875b0b06ef60928c049d51533f76716c902a | [
"BSD-2-Clause"
] | null | null | null | from django.conf import settings
from django.contrib import admin
from geotrek.common.admin import MergeActionMixin
from geotrek.outdoor.models import Practice, SiteType
if 'modeltranslation' in settings.INSTALLED_APPS:
from modeltranslation.admin import TranslationAdmin
else:
TranslationAdmin = admin.ModelAdm... | 28.32 | 56 | 0.75565 | 74 | 708 | 7.121622 | 0.459459 | 0.037951 | 0.136622 | 0.163188 | 0.29222 | 0.113852 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146893 | 708 | 24 | 57 | 29.5 | 0.872517 | 0 | 0 | 0.210526 | 0 | 0 | 0.079096 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.263158 | 0 | 0.736842 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
27315e1db1e7700a9d36cef574e1deed8416f995 | 1,385 | py | Python | uselessAI.py | Arihant25/beginner-python-projects | 43c6489b6973522246073f2187a682487f1684c1 | [
"Unlicense"
] | 1 | 2020-06-11T06:10:08.000Z | 2020-06-11T06:10:08.000Z | uselessAI.py | Arihant25/beginner-python-projects | 43c6489b6973522246073f2187a682487f1684c1 | [
"Unlicense"
] | 1 | 2021-07-16T03:50:09.000Z | 2021-07-16T04:00:35.000Z | uselessAI.py | Arihant25/beginner-python-projects | 43c6489b6973522246073f2187a682487f1684c1 | [
"Unlicense"
] | 1 | 2021-07-16T03:28:39.000Z | 2021-07-16T03:28:39.000Z | def greet(bot_name, birth_year):
print('Hello! My name is ' + bot_name + '.')
print('I was created in ' + birth_year + '.')
def remind_name():
print('Please, remind me your name.')
name = input()
print('What a great name you have, ' + name + '!')
def guess_age():
print('Let me guess your age... | 23.083333 | 83 | 0.581949 | 209 | 1,385 | 3.818182 | 0.449761 | 0.050125 | 0.022556 | 0.030075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028376 | 0.262094 | 1,385 | 59 | 84 | 23.474576 | 0.752446 | 0.01444 | 0 | 0 | 0 | 0 | 0.40719 | 0 | 0 | 0 | 0 | 0.016949 | 0 | 1 | 0.139535 | false | 0 | 0 | 0 | 0.139535 | 0.44186 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
273de3624cb2656a5b09bd44464400c778b4cc44 | 213 | py | Python | setup.py | ravi-bade/hive-ML | bd724580bf09d992a838da57f9fd5142bab4e1e5 | [
"MIT"
] | null | null | null | setup.py | ravi-bade/hive-ML | bd724580bf09d992a838da57f9fd5142bab4e1e5 | [
"MIT"
] | null | null | null | setup.py | ravi-bade/hive-ML | bd724580bf09d992a838da57f9fd5142bab4e1e5 | [
"MIT"
] | null | null | null | from setuptools import find_packages, setup
setup(
name='src',
packages=find_packages(),
version='0.1.0',
description='Hive-ml project of OneApp',
author='Ravikant Bade',
license='MIT',
)
| 19.363636 | 44 | 0.661972 | 27 | 213 | 5.148148 | 0.814815 | 0.172662 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017544 | 0.197183 | 213 | 10 | 45 | 21.3 | 0.795322 | 0 | 0 | 0 | 0 | 0 | 0.230047 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2740e363aa1f94977ef475388c48f61555bf5a1a | 754 | py | Python | hard-gists/5017218/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 21 | 2019-07-08T08:26:45.000Z | 2022-01-24T23:53:25.000Z | hard-gists/5017218/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 5 | 2019-06-15T14:47:47.000Z | 2022-02-26T05:02:56.000Z | hard-gists/5017218/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 17 | 2019-05-16T03:50:34.000Z | 2021-01-14T14:35:12.000Z | #!/usr/bin/env python
from Crypto.Cipher import AES
from Crypto.Util.strxor import strxor
from binascii import hexlify
K = '0123456789abcdef'
cipher = AES.new(K, AES.MODE_ECB)
# Original Message
M1 = K
M2 = K
Cm0 = cipher.encrypt('\0' * AES.block_size)
Cm1 = cipher.encrypt(strxor(Cm0,M1))
Tm = Cm2 = cipher.encrypt(s... | 25.133333 | 47 | 0.709549 | 121 | 754 | 4.396694 | 0.429752 | 0.195489 | 0.214286 | 0.06391 | 0.097744 | 0.097744 | 0 | 0 | 0 | 0 | 0 | 0.057011 | 0.139257 | 754 | 29 | 48 | 26 | 0.762712 | 0.171088 | 0 | 0 | 0 | 0 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.157895 | null | null | 0.105263 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
275f0b6cee294c3156bfba77754c517b6dc76211 | 162 | py | Python | dgbpy/__init__.py | maxprop/dgbpy | 05d0900b0fb2cb612b298c8c78f0f84640a38c4e | [
"Apache-2.0"
] | 7 | 2021-11-18T18:03:46.000Z | 2022-02-09T06:55:50.000Z | dgbpy/__init__.py | maxprop/dgbpy | 05d0900b0fb2cb612b298c8c78f0f84640a38c4e | [
"Apache-2.0"
] | null | null | null | dgbpy/__init__.py | maxprop/dgbpy | 05d0900b0fb2cb612b298c8c78f0f84640a38c4e | [
"Apache-2.0"
] | 1 | 2022-03-18T06:55:55.000Z | 2022-03-18T06:55:55.000Z | #
# (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
# AUTHOR : Bert
# DATE : August 2018
#
# Module init
#
__version__ = '1.0.0'
| 16.2 | 75 | 0.635802 | 23 | 162 | 4.26087 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053846 | 0.197531 | 162 | 9 | 76 | 18 | 0.7 | 0.765432 | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
277c94d5ec87dc5540702d806c2c486ab6812053 | 769 | py | Python | server/app/budget/migrations/0004_auto_20210521_1347.py | catvitalio/personal-budget | b4470115ebbfd185a8a781a2024787cbfe822639 | [
"MIT"
] | null | null | null | server/app/budget/migrations/0004_auto_20210521_1347.py | catvitalio/personal-budget | b4470115ebbfd185a8a781a2024787cbfe822639 | [
"MIT"
] | null | null | null | server/app/budget/migrations/0004_auto_20210521_1347.py | catvitalio/personal-budget | b4470115ebbfd185a8a781a2024787cbfe822639 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.2 on 2021-05-21 06:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('budget', '0003_auto_20210521_1252'),
]
operations = [
migrations.AlterField(
model_name='expense',
name='tags',
... | 26.517241 | 78 | 0.579974 | 74 | 769 | 5.945946 | 0.554054 | 0.136364 | 0.170455 | 0.197727 | 0.347727 | 0.347727 | 0.347727 | 0.347727 | 0.347727 | 0 | 0 | 0.057301 | 0.296489 | 769 | 28 | 79 | 27.464286 | 0.756007 | 0.058518 | 0 | 0.409091 | 1 | 0 | 0.15651 | 0.031856 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
27d3c4c2fd777115e15bd0efa78ebba378f85ab4 | 5,629 | py | Python | quilt/avahiservice.py | rossdylan/quilt | 463e3cfe419410b41ee6945ab96d51692d46b036 | [
"MIT"
] | 2 | 2015-07-23T03:49:42.000Z | 2015-11-05T18:49:53.000Z | quilt/avahiservice.py | rossdylan/quilt | 463e3cfe419410b41ee6945ab96d51692d46b036 | [
"MIT"
] | null | null | null | quilt/avahiservice.py | rossdylan/quilt | 463e3cfe419410b41ee6945ab96d51692d46b036 | [
"MIT"
] | null | null | null | """
Avahi Network Service Scripting
"""
import Queue
import threading
import avahi, dbus, gobject
from dbus import DBusException
from dbus.mainloop.glib import DBusGMainLoop
__all__ = ["QuiltAvahiServer", "QuiltAvahiClient"]
TYPE = '_quilt._tcp'
class QuiltAvahiNode(object):
""" Quilt Avahi Connection Nod... | 35.626582 | 105 | 0.551252 | 589 | 5,629 | 5.168081 | 0.256367 | 0.02661 | 0.015769 | 0.022339 | 0.187254 | 0.125493 | 0.093955 | 0.052562 | 0.027595 | 0 | 0 | 0.00798 | 0.354415 | 5,629 | 157 | 106 | 35.853503 | 0.829664 | 0.033221 | 0 | 0.050633 | 0 | 0.012658 | 0.069585 | 0.008118 | 0 | 0 | 0 | 0.012739 | 0 | 0 | null | null | 0.012658 | 0.075949 | null | null | 0.037975 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
27d5f9dbcf40cc145235b4fffe9387c62c414d60 | 6,161 | py | Python | tests/pte-onPrem-test-package/scripts/create_SCFile.py | gbl1124/hfrd | 327d7c1e18704d2e31a2649b40ae1d90353ebe24 | [
"Apache-2.0"
] | 5 | 2019-08-02T20:53:57.000Z | 2021-06-25T05:16:46.000Z | tests/pte-onPrem-test-package/scripts/create_SCFile.py | anandbanik/hfrd | 7bc1f13bfc9c7d902aec0363d27b089ef68c7eec | [
"Apache-2.0"
] | null | null | null | tests/pte-onPrem-test-package/scripts/create_SCFile.py | anandbanik/hfrd | 7bc1f13bfc9c7d902aec0363d27b089ef68c7eec | [
"Apache-2.0"
] | 14 | 2019-07-01T01:40:50.000Z | 2020-03-24T06:14:32.000Z | import json
import os
import argparse
HOME = os.environ['HOME']+'/results/'
parser = argparse.ArgumentParser(description="Python script generates the SCFiles using MSPIDs")
parser.add_argument("-m", "--mspids", nargs="+", required=True, help="1 or more MSPIDs")
parser.add_argument("-n", "--networkId", metavar='', req... | 50.917355 | 127 | 0.603636 | 649 | 6,161 | 5.691834 | 0.266564 | 0.147266 | 0.173254 | 0.233893 | 0.491067 | 0.376286 | 0.122631 | 0.03438 | 0.03438 | 0.03438 | 0 | 0.001284 | 0.241357 | 6,161 | 121 | 128 | 50.917355 | 0.789046 | 0.127901 | 0 | 0.024691 | 1 | 0 | 0.221102 | 0.036228 | 0 | 0 | 0 | 0 | 0 | 1 | 0.049383 | false | 0 | 0.037037 | 0 | 0.123457 | 0.012346 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
27d7ec475999a81872908a78c697615fa5aa0984 | 4,258 | py | Python | netflow/mkipfixtypes/ipfixtypes.py | kohler/click-packages | cec70da7cf460548ef08f1ddad6924db29d5c0c5 | [
"MIT"
] | 13 | 2015-02-26T23:12:09.000Z | 2021-04-18T04:37:12.000Z | netflow/mkipfixtypes/ipfixtypes.py | kohoumas/click-packages | 6bb5c4ba286e5dbc74efd1708921d530425691f6 | [
"MIT"
] | null | null | null | netflow/mkipfixtypes/ipfixtypes.py | kohoumas/click-packages | 6bb5c4ba286e5dbc74efd1708921d530425691f6 | [
"MIT"
] | 7 | 2015-08-25T09:29:41.000Z | 2021-04-18T04:37:13.000Z | #!/usr/bin/python
#
# Generates ipfixtypes.hh from IPFIX spec and schema
#
# Copyright (c) 2006 Mazu Networks, Inc.
#
# $Id: ipfixtypes.py,v 1.1 2006/05/12 16:43:44 eddietwo Exp $
#
import xml.dom.minidom
import sys
import time
class IPFIXField:
"""
Represents a <field> element in the IPFIX specification. Acc... | 26.447205 | 106 | 0.625881 | 491 | 4,258 | 5.274949 | 0.276986 | 0.027027 | 0.011583 | 0.015058 | 0.07722 | 0.07722 | 0.030116 | 0.030116 | 0.030116 | 0 | 0 | 0.01223 | 0.251057 | 4,258 | 160 | 107 | 26.6125 | 0.799937 | 0.101691 | 0 | 0.0625 | 1 | 0 | 0.253027 | 0.006961 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.03125 | null | null | 0.020833 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
27d8e4bb5627f304929e5b7f3fa1b41d586d410e | 694 | py | Python | core_lib/web_helpers/constants_media_type.py | shubham-surya/core-lib | 543db80706746a937e5ed16bd50f2de8d58b32e4 | [
"MIT"
] | null | null | null | core_lib/web_helpers/constants_media_type.py | shubham-surya/core-lib | 543db80706746a937e5ed16bd50f2de8d58b32e4 | [
"MIT"
] | 9 | 2021-03-11T02:29:17.000Z | 2022-03-22T19:01:18.000Z | core_lib/web_helpers/constants_media_type.py | shubham-surya/core-lib | 543db80706746a937e5ed16bd50f2de8d58b32e4 | [
"MIT"
] | 2 | 2022-01-27T11:19:00.000Z | 2022-02-11T11:33:09.000Z | import enum
class MediaType(enum.Enum):
MEDIA_TYPE_WILDCARD = "*"
WILDCARD = "*/*"
APPLICATION_XML = "application/xml"
APPLICATION_ATOM_XML = "application/atom+xml"
APPLICATION_XHTML_XML = "application/xhtml+xml"
APPLICATION_SVG_XML = "application/svg+xml"
APPLICATION_JSON = "application/j... | 34.7 | 69 | 0.729107 | 82 | 694 | 5.878049 | 0.353659 | 0.232365 | 0.103734 | 0.087137 | 0.253112 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159942 | 694 | 19 | 70 | 36.526316 | 0.826758 | 0 | 0 | 0 | 0 | 0 | 0.348703 | 0.151297 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
27f6676280bfbc46f5ea3961bee24ccfef845e05 | 10,137 | py | Python | metadata_service/api/dashboard.py | iiAnderson/metaflow-service | b42391e5ee2187a93259b944c515522d76b1314e | [
"Apache-2.0"
] | null | null | null | metadata_service/api/dashboard.py | iiAnderson/metaflow-service | b42391e5ee2187a93259b944c515522d76b1314e | [
"Apache-2.0"
] | null | null | null | metadata_service/api/dashboard.py | iiAnderson/metaflow-service | b42391e5ee2187a93259b944c515522d76b1314e | [
"Apache-2.0"
] | null | null | null | import asyncio
import json
from datetime import datetime, timedelta
from aiohttp import web
from .utils import read_body, get_week_times, get_formatted_time
from ..data.models import RunRow
from ..data.postgres_async_db import AsyncPostgresDB
import logging
class DashboardAPI(object):
_run_table = None
lock = ... | 32.805825 | 111 | 0.56792 | 1,158 | 10,137 | 4.647668 | 0.1019 | 0.052397 | 0.036789 | 0.040877 | 0.762913 | 0.746377 | 0.69751 | 0.679673 | 0.669825 | 0.662207 | 0 | 0.007047 | 0.328105 | 10,137 | 308 | 112 | 32.912338 | 0.783145 | 0 | 0 | 0.532374 | 0 | 0 | 0.114868 | 0.018567 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007194 | false | 0 | 0.057554 | 0 | 0.129496 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7e037b73adcc0dc266a78c21e1147b45fea5e505 | 671 | py | Python | create_ITIs.py | daanvanes/mloc_exp | bf6fb94b933f1cb78c60c38f80f03c78e9da3686 | [
"MIT"
] | 1 | 2019-03-20T15:12:07.000Z | 2019-03-20T15:12:07.000Z | create_ITIs.py | daanvanes/mloc_exp | bf6fb94b933f1cb78c60c38f80f03c78e9da3686 | [
"MIT"
] | null | null | null | create_ITIs.py | daanvanes/mloc_exp | bf6fb94b933f1cb78c60c38f80f03c78e9da3686 | [
"MIT"
] | null | null | null | from __future__ import division
from constants import *
import numpy as np
import os
precueITIs = np.random.exponential(standard_parameters['mean_iti_precue'], standard_parameters['n_targets']) + standard_parameters['min_iti_precue']
np.save('ITIs/precueITIs.npy',precueITIs)
postcueITIs = np.random.exponential(standa... | 51.615385 | 162 | 0.81073 | 89 | 671 | 5.797753 | 0.337079 | 0.313953 | 0.110465 | 0.156977 | 0.546512 | 0.546512 | 0.546512 | 0.290698 | 0 | 0 | 0 | 0.003155 | 0.055142 | 671 | 13 | 163 | 51.615385 | 0.810726 | 0 | 0 | 0 | 0 | 0 | 0.248512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
fd6ba7ba1979062899ef77a2f2ebee1332127153 | 374 | py | Python | makenew_python_app/server/boot.py | makenew/python-app | 5f3c6669efe6e80d356d39afb712d72bf0e69916 | [
"MIT"
] | 2 | 2021-01-10T05:54:37.000Z | 2021-01-12T01:24:38.000Z | makenew_python_app/server/boot.py | makenew/python-app | 5f3c6669efe6e80d356d39afb712d72bf0e69916 | [
"MIT"
] | null | null | null | makenew_python_app/server/boot.py | makenew/python-app | 5f3c6669efe6e80d356d39afb712d72bf0e69916 | [
"MIT"
] | null | null | null | from os import environ, path
from .server import Server
from .config import configure
def boot(create_dependencies):
config_path = environ.get("PYAPP_CONFIG_PATH") or path.realpath(
path.join(path.dirname(__file__), "..", "..", "config")
)
server = Server(create_dependencies, config_path)
ser... | 26.714286 | 68 | 0.716578 | 46 | 374 | 5.565217 | 0.478261 | 0.117188 | 0.1875 | 0.21875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165775 | 374 | 13 | 69 | 28.769231 | 0.820513 | 0 | 0 | 0 | 0 | 0 | 0.072193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fd71c4f7dcacba2ce5484fe215f8d27faba98441 | 6,603 | py | Python | src/morphforgecontrib/simulation/channels/hh_style/neuron/mm_neuron_alphabetabeta.py | mikehulluk/morphforge | 2a95096f144ed4ea487decb735ce66706357d3c7 | [
"BSD-2-Clause"
] | 1 | 2021-01-21T11:31:59.000Z | 2021-01-21T11:31:59.000Z | src/morphforgecontrib/simulation/channels/hh_style/neuron/mm_neuron_alphabetabeta.py | mikehulluk/morphforge | 2a95096f144ed4ea487decb735ce66706357d3c7 | [
"BSD-2-Clause"
] | null | null | null | src/morphforgecontrib/simulation/channels/hh_style/neuron/mm_neuron_alphabetabeta.py | mikehulluk/morphforge | 2a95096f144ed4ea487decb735ce66706357d3c7 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# ---------------------------------------------------------------------
# Copyright (c) 2012 Michael Hull.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are m... | 33.015 | 123 | 0.69741 | 696 | 6,603 | 6.363506 | 0.324713 | 0.104312 | 0.042673 | 0.052156 | 0.228494 | 0.198239 | 0.192368 | 0.161436 | 0.144276 | 0.144276 | 0 | 0.00171 | 0.202787 | 6,603 | 199 | 124 | 33.180905 | 0.839666 | 0.239285 | 0 | 0.298077 | 0 | 0 | 0.042268 | 0 | 0 | 0 | 0 | 0 | 0.009615 | 1 | 0.230769 | false | 0.009615 | 0.086538 | 0.115385 | 0.528846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
fd8b4419a03211dab8726d274c1ded97471a7d78 | 1,150 | py | Python | cloudshell/huawei/wdm/cli/huawei_cli_handler.py | QualiSystems/cloudshell-huawei-wdm | be359a6bc81fd1644e3cb2a619b7c296a17a2e68 | [
"Apache-2.0"
] | null | null | null | cloudshell/huawei/wdm/cli/huawei_cli_handler.py | QualiSystems/cloudshell-huawei-wdm | be359a6bc81fd1644e3cb2a619b7c296a17a2e68 | [
"Apache-2.0"
] | 1 | 2021-04-11T18:57:18.000Z | 2021-04-11T18:57:18.000Z | cloudshell/huawei/wdm/cli/huawei_cli_handler.py | QualiSystems/cloudshell-huawei-wdm | be359a6bc81fd1644e3cb2a619b7c296a17a2e68 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
from cloudshell.cli.service.cli_service_impl import CliServiceImpl
from cloudshell.huawei.cli.huawei_cli_handler import HuaweiCli, HuaweiCliHandler
from cloudshell.huawei.wdm.cli.huawei_command_modes import (
WDMConfigCommandMode,
WDMEnableCommandMode,
)
class Huawei... | 30.263158 | 83 | 0.727826 | 122 | 1,150 | 6.680328 | 0.418033 | 0.04908 | 0.051534 | 0.066258 | 0.160736 | 0.132515 | 0.132515 | 0.132515 | 0 | 0 | 0 | 0.002144 | 0.188696 | 1,150 | 37 | 84 | 31.081081 | 0.871383 | 0.083478 | 0 | 0.192308 | 0 | 0 | 0.023878 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192308 | false | 0 | 0.115385 | 0.153846 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
fd8b6f3ec4c3956c2a4af1d583d22afb4c1f7e8e | 1,510 | py | Python | pretalx_orcid/migrations/0001_initial.py | pretalx/pretalx-orcid | a10adf5bf5579bd7818db7697d49176114c9714e | [
"Apache-2.0"
] | 1 | 2020-02-07T12:32:15.000Z | 2020-02-07T12:32:15.000Z | pretalx_orcid/migrations/0001_initial.py | pretalx/pretalx-orcid | a10adf5bf5579bd7818db7697d49176114c9714e | [
"Apache-2.0"
] | 4 | 2019-11-26T04:02:02.000Z | 2022-03-06T02:06:54.000Z | pretalx_orcid/migrations/0001_initial.py | pretalx/pretalx-orcid | a10adf5bf5579bd7818db7697d49176114c9714e | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.2.7 on 2019-11-20 14:10
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | 31.458333 | 87 | 0.47947 | 131 | 1,510 | 5.389313 | 0.465649 | 0.106232 | 0.141643 | 0.169972 | 0.304533 | 0.304533 | 0.25779 | 0.25779 | 0.25779 | 0.135977 | 0 | 0.028604 | 0.421192 | 1,510 | 47 | 88 | 32.12766 | 0.779176 | 0.029801 | 0 | 0.225 | 1 | 0 | 0.051948 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.075 | 0 | 0.175 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fd8eaa1dd13d7842905f05439abe0c727ac76666 | 2,918 | py | Python | 30-Days-of-Python-master/practice_day_9/alpha_day_9/akash_prank.py | vimm0/python_exercise | 7773d95b4c25b82a9d014f7a814ac83df9ebac17 | [
"MIT"
] | null | null | null | 30-Days-of-Python-master/practice_day_9/alpha_day_9/akash_prank.py | vimm0/python_exercise | 7773d95b4c25b82a9d014f7a814ac83df9ebac17 | [
"MIT"
] | null | null | null | 30-Days-of-Python-master/practice_day_9/alpha_day_9/akash_prank.py | vimm0/python_exercise | 7773d95b4c25b82a9d014f7a814ac83df9ebac17 | [
"MIT"
] | 1 | 2018-01-04T16:27:31.000Z | 2018-01-04T16:27:31.000Z | class Akash():
msg="""
Seems like you are in trouble now. I can feel that...hahaaa
Your name:Akash
Address:Nepalgunj
"""
another="""
I am not really good friend of yours becauase i am going transfer some viruses from the internet.\n
... | 35.156627 | 119 | 0.186429 | 118 | 2,918 | 4.508475 | 0.694915 | 0.050752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004403 | 0.455106 | 2,918 | 82 | 120 | 35.585366 | 0.330189 | 0 | 0 | 0.338235 | 0 | 0 | 0.885881 | 0.128855 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014706 | false | 0 | 0 | 0 | 0.073529 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fd969867a45418ad24a3e7bb303872fc31aae097 | 541 | py | Python | scripts/set_left_arm2static_pose.py | birlrobotics/birl_kitting_experiment | 75cf42b6fd187b12e99b0e916c73058f429a556c | [
"BSD-3-Clause"
] | 2 | 2019-06-03T03:33:50.000Z | 2019-12-30T05:43:34.000Z | scripts/set_left_arm2static_pose.py | birlrobotics/birl_kitting_experiment | 75cf42b6fd187b12e99b0e916c73058f429a556c | [
"BSD-3-Clause"
] | null | null | null | scripts/set_left_arm2static_pose.py | birlrobotics/birl_kitting_experiment | 75cf42b6fd187b12e99b0e916c73058f429a556c | [
"BSD-3-Clause"
] | 1 | 2019-12-30T05:43:35.000Z | 2019-12-30T05:43:35.000Z | #!/usr/bin/env python
import baxter_interface
import rospy
if __name__ == '__main__':
rospy.init_node("set_left_arm_py")
names = ['left_e0', 'left_e1', 'left_s0', 'left_s1', 'left_w0', 'left_w1', 'left_w2']
joints = [-0.8022719520640714, 1.7184419776286348, 0.21399031991001521, 0.324436936637765, 2.586291... | 28.473684 | 156 | 0.713494 | 69 | 541 | 5.246377 | 0.681159 | 0.082873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.273319 | 0.147874 | 541 | 18 | 157 | 30.055556 | 0.511931 | 0.036969 | 0 | 0 | 0 | 0 | 0.155039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.181818 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fd9edbd2527ab031760844081c4c8a7d476ee612 | 2,344 | py | Python | src/tcp/registration/pygame_labeler.py | Iszhanghailun/Traffic_Camera_Pipeline | 4dbd0e993087d46066a780f5345c125f47b28881 | [
"MIT"
] | 5 | 2019-04-04T17:30:41.000Z | 2021-12-06T15:27:43.000Z | src/tcp/registration/pygame_labeler.py | Iszhanghailun/Traffic_Camera_Pipeline | 4dbd0e993087d46066a780f5345c125f47b28881 | [
"MIT"
] | 2 | 2018-02-07T06:22:08.000Z | 2020-04-20T06:54:52.000Z | src/tcp/registration/pygame_labeler.py | Iszhanghailun/Traffic_Camera_Pipeline | 4dbd0e993087d46066a780f5345c125f47b28881 | [
"MIT"
] | 7 | 2018-02-06T23:23:29.000Z | 2020-09-20T14:48:22.000Z | import sys, os
import gym
import gym_urbandriving as uds
import cProfile
import time
import numpy as np
import pickle
import skimage.transform
import cv2
import IPython
import pygame
from random import shuffle
from gym_urbandriving.agents import KeyboardAgent, AccelAgent, NullAgent, TrafficLightAgent#, RRTAgent
from g... | 26.942529 | 103 | 0.610922 | 256 | 2,344 | 5.484375 | 0.496094 | 0.025641 | 0.027778 | 0.025641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012674 | 0.326792 | 2,344 | 86 | 104 | 27.255814 | 0.87706 | 0.276024 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0 | 0.394737 | 0 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
fda4de20d32afa6769144964f3e6cd00599e20ed | 7,400 | py | Python | data.py | MicBrain/Laziness-Finder | 42f0a8c21ca80f81c540914b7fbe7d0491b5452b | [
"MIT"
] | 3 | 2015-01-06T19:58:47.000Z | 2015-06-08T19:47:11.000Z | data.py | MicBrain/Laziness-Finder | 42f0a8c21ca80f81c540914b7fbe7d0491b5452b | [
"MIT"
] | null | null | null | data.py | MicBrain/Laziness-Finder | 42f0a8c21ca80f81c540914b7fbe7d0491b5452b | [
"MIT"
] | null | null | null | import csv
# Finding States' Laziness Rankings: #
dataDict = {}
with open('data.csv', 'rU') as csvfile:
dataReader = csv.reader(csvfile, delimiter=',')
for row in dataReader:
state = row[0]
row.pop(0)
dataDict[state] = row
projectedmeans = []
with open('rafadata.csv', 'rb') as csvfile:
dataReader = csv.... | 24.749164 | 177 | 0.672973 | 1,121 | 7,400 | 4.433541 | 0.252453 | 0.064386 | 0.028773 | 0.039839 | 0.395372 | 0.385312 | 0.339235 | 0.325553 | 0.310664 | 0.310664 | 0 | 0.023873 | 0.190541 | 7,400 | 299 | 178 | 24.749164 | 0.805843 | 0.020811 | 0 | 0.403846 | 0 | 0.003846 | 0.329233 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.007692 | null | null | 0.419231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
fdab78fe2c0240156557e76473319683d8e4d96e | 291 | py | Python | hippynn/interfaces/__init__.py | tautomer/hippynn | df4504a5ea4680cfc61f490984dcddeac7ed99ee | [
"BSD-3-Clause"
] | 21 | 2021-11-17T00:56:35.000Z | 2022-03-22T05:57:11.000Z | hippynn/interfaces/__init__.py | tautomer/hippynn | df4504a5ea4680cfc61f490984dcddeac7ed99ee | [
"BSD-3-Clause"
] | 4 | 2021-12-17T16:16:53.000Z | 2022-03-16T23:50:38.000Z | hippynn/interfaces/__init__.py | tautomer/hippynn | df4504a5ea4680cfc61f490984dcddeac7ed99ee | [
"BSD-3-Clause"
] | 6 | 2021-11-30T21:09:31.000Z | 2022-03-18T07:07:32.000Z | """
``hippynn`` currently has interfaces to the following other codes:
1. ``ase`` for atomic simulation
2. ``pyseqm`` for combined ML-seqm models
3. ``schnetpack`` for usage of schnet models in ``hippynn``.
This subpackage is not available by default; you must import it explicitly.
"""
| 24.25 | 75 | 0.721649 | 42 | 291 | 5 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012295 | 0.161512 | 291 | 11 | 76 | 26.454545 | 0.848361 | 0.962199 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fdad5082e78e4cecb0dc06f0019827b83dac2415 | 4,699 | py | Python | ntee/utils/model_reader.py | AdityaAS/PyTorch_NTEE | a1dc5cc6cd22fc9de3f054fa35f50b975bae75ce | [
"MIT"
] | 1 | 2019-01-15T11:21:08.000Z | 2019-01-15T11:21:08.000Z | ntee/utils/model_reader.py | AdityaAS/PyTorch_NTEE | a1dc5cc6cd22fc9de3f054fa35f50b975bae75ce | [
"MIT"
] | null | null | null | ntee/utils/model_reader.py | AdityaAS/PyTorch_NTEE | a1dc5cc6cd22fc9de3f054fa35f50b975bae75ce | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import joblib
import torch
import numpy as np
from ntee.utils.my_tokenizer import RegexpTokenizer
from ntee.utils.vocab_joint import JointVocab
from ntee.utils.vocab import Vocab
class ModelReader(object):
def __init__(self, model_file):
model = joblib.load(model_file, mmap_mode='r... | 27.970238 | 83 | 0.589062 | 571 | 4,699 | 4.625219 | 0.1331 | 0.056797 | 0.058311 | 0.043544 | 0.759182 | 0.741007 | 0.674366 | 0.625899 | 0.589549 | 0.580083 | 0 | 0.002158 | 0.30964 | 4,699 | 167 | 84 | 28.137725 | 0.811961 | 0.064056 | 0 | 0.710744 | 0 | 0 | 0.042844 | 0.031449 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157025 | false | 0 | 0.049587 | 0.090909 | 0.413223 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fdc29b2d1755fa39792e6b6765f17fb3cfeeb9de | 1,166 | py | Python | commlib/utils.py | robotics-4-all/commlib-py | 9d56e0a2e13410feac0e10d9866a1c4a60ade2c7 | [
"MIT"
] | 1 | 2021-06-09T09:32:53.000Z | 2021-06-09T09:32:53.000Z | commlib/utils.py | robotics-4-all/commlib-py | 9d56e0a2e13410feac0e10d9866a1c4a60ade2c7 | [
"MIT"
] | 7 | 2022-03-10T23:57:25.000Z | 2022-03-13T19:12:54.000Z | commlib/utils.py | robotics-4-all/commlib-py | 9d56e0a2e13410feac0e10d9866a1c4a60ade2c7 | [
"MIT"
] | 1 | 2021-06-07T16:25:05.000Z | 2021-06-07T16:25:05.000Z | import re
import uuid
import time
from typing import (Any, Callable, Dict, List, Optional, Tuple, Type,
TypeVar, Union, Text)
def camelcase_to_snakecase(_str: str) -> str:
"""camelcase_to_snakecase.
Transform a camelcase string to snakecase
Args:
_str (str): String to apply ... | 21.2 | 69 | 0.588336 | 155 | 1,166 | 4.283871 | 0.432258 | 0.049699 | 0.060241 | 0.012048 | 0.01506 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022353 | 0.271012 | 1,166 | 54 | 70 | 21.592593 | 0.758824 | 0.381647 | 0 | 0 | 0 | 0 | 0.069401 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0 | 0.222222 | 0 | 0.722222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
fdc9a425f145a01bd193481bd02f81259f33f97c | 21,351 | py | Python | pysnmp/DHCP-Server-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/DHCP-Server-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/DHCP-Server-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module DHCP-Server-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DHCP-SERVER-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 18:31:49 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27... | 144.263514 | 4,113 | 0.793405 | 2,110 | 21,351 | 8.02654 | 0.101422 | 0.009565 | 0.012045 | 0.01606 | 0.372166 | 0.321386 | 0.287494 | 0.277929 | 0.23205 | 0.223311 | 0 | 0.068972 | 0.072409 | 21,351 | 147 | 4,114 | 145.244898 | 0.786165 | 0.015175 | 0 | 0 | 0 | 0 | 0.102626 | 0.021648 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fddd3e193fe076cab7c0cf9457a9b99d97220113 | 248 | py | Python | example/main_01.py | janothan/Evaluation-Framework | e53847bc352f657953933e1d7c97b68ac890c852 | [
"Apache-2.0"
] | 5 | 2020-02-12T13:11:14.000Z | 2021-01-28T12:45:22.000Z | example/main_01.py | charyeezy/Evaluation-Framework | ddfd4ea654a3d7d2abd58f062ec98a8a736f8f51 | [
"Apache-2.0"
] | 9 | 2019-07-29T17:45:30.000Z | 2022-03-17T12:24:47.000Z | example/main_01.py | charyeezy/Evaluation-Framework | ddfd4ea654a3d7d2abd58f062ec98a8a736f8f51 | [
"Apache-2.0"
] | 7 | 2020-02-12T13:22:49.000Z | 2021-11-29T01:08:50.000Z | from evaluation_framework.manager import FrameworkManager
if __name__ == "__main__":
evaluation_manager = FrameworkManager()
evaluation_manager.evaluate(
"objectFrequencyS.h5", vector_file_format="hdf5", debugging_mode=False
)
| 31 | 78 | 0.766129 | 24 | 248 | 7.333333 | 0.791667 | 0.193182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009479 | 0.149194 | 248 | 7 | 79 | 35.428571 | 0.824645 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fde8def0c521fe98b37b37c32684b2ac7afe4bd0 | 142 | py | Python | music/class_/audioa/_mode/major.py | jedhsu/music | dea68c4a82296cd4910e786f533b2cbf861377c3 | [
"MIT"
] | null | null | null | music/class_/audioa/_mode/major.py | jedhsu/music | dea68c4a82296cd4910e786f533b2cbf861377c3 | [
"MIT"
] | null | null | null | music/class_/audioa/_mode/major.py | jedhsu/music | dea68c4a82296cd4910e786f533b2cbf861377c3 | [
"MIT"
] | null | null | null | """
*Major Key*
"""
from abc import ABCMeta
from ._key import ModedKey
class MajorKey(
ModedKey,
):
__metaclass__ = ABCMeta
| 8.875 | 27 | 0.640845 | 15 | 142 | 5.733333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.260563 | 142 | 15 | 28 | 9.466667 | 0.819048 | 0.077465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
fdf91475384cb8118e074e63142b83edc4f4d2bd | 1,735 | py | Python | Data Science With Python/07-cleaning-data-in-python/4-cleaning-data-for-analysis/10-testing-your-data-with-asserts.py | aimanahmedmoin1997/DataCamp | c6a6c4d59b83f14854bd76ed5c0c7f2dddd6de1d | [
"MIT"
] | 5 | 2021-02-03T14:36:58.000Z | 2022-01-01T10:29:26.000Z | Data Science With Python/07-cleaning-data-in-python/4-cleaning-data-for-analysis/10-testing-your-data-with-asserts.py | aimanahmedmoin1997/DataCamp | c6a6c4d59b83f14854bd76ed5c0c7f2dddd6de1d | [
"MIT"
] | null | null | null | Data Science With Python/07-cleaning-data-in-python/4-cleaning-data-for-analysis/10-testing-your-data-with-asserts.py | aimanahmedmoin1997/DataCamp | c6a6c4d59b83f14854bd76ed5c0c7f2dddd6de1d | [
"MIT"
] | 7 | 2018-11-06T17:43:31.000Z | 2020-11-07T21:08:16.000Z | '''
Testing your data with asserts
Here, you'll practice writing assert statements using the Ebola dataset from previous chapters to programmatically check for missing values and to confirm that all values are positive. The dataset has been pre-loaded into a DataFrame called ebola.
In the video, you saw Dan use the .... | 61.964286 | 611 | 0.756196 | 297 | 1,735 | 4.410774 | 0.380471 | 0.034351 | 0.029771 | 0.032061 | 0.145802 | 0.091603 | 0.053435 | 0 | 0 | 0 | 0 | 0.006988 | 0.175216 | 1,735 | 27 | 612 | 64.259259 | 0.908456 | 0.914697 | 0 | 0 | 0 | 0 | 0.158273 | 0.158273 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fdfb52a6d5dc1287a0b5c4d900e03718e519b19a | 6,084 | py | Python | aiospotipy/me.py | sizumita/aiospotipy | 3c542ca90559abde2e35268b4eedfdbbef1dab34 | [
"MIT"
] | 3 | 2019-03-09T14:53:46.000Z | 2020-06-03T12:50:33.000Z | aiospotipy/me.py | sizumita/aiospotipy | 3c542ca90559abde2e35268b4eedfdbbef1dab34 | [
"MIT"
] | null | null | null | aiospotipy/me.py | sizumita/aiospotipy | 3c542ca90559abde2e35268b4eedfdbbef1dab34 | [
"MIT"
] | 1 | 2019-03-09T08:26:46.000Z | 2019-03-09T08:26:46.000Z | from ._http import (HTTPClient,
get_id,
Route,
GET,
PUT,
DELETE,
)
import asyncio
class Me:
def __init__(self, _http: HTTPClient):
self.http = _http
self.request = _http.request
... | 34.568182 | 84 | 0.561473 | 766 | 6,084 | 4.381201 | 0.151436 | 0.039333 | 0.039333 | 0.07211 | 0.734803 | 0.70292 | 0.657926 | 0.657926 | 0.625149 | 0.61174 | 0 | 0.00423 | 0.339415 | 6,084 | 176 | 85 | 34.568182 | 0.830804 | 0 | 0 | 0.452055 | 0 | 0 | 0.058029 | 0.006895 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013699 | false | 0 | 0.027397 | 0 | 0.205479 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8bf35fc329c7f95687b72ea8d092fd4c3193b925 | 407 | py | Python | Chapter01/datastructures_06.py | vabyte/Modern-Python-Standard-Library-Cookbook | 4f53e3ab7b61aca1cca9343e7421e170280cd5b5 | [
"MIT"
] | 84 | 2018-08-09T09:30:03.000Z | 2022-01-04T23:20:38.000Z | Chapter01/datastructures_06.py | jiro74/Modern-Python-Standard-Library-Cookbook | 4f53e3ab7b61aca1cca9343e7421e170280cd5b5 | [
"MIT"
] | 1 | 2019-11-04T18:57:40.000Z | 2020-09-07T08:52:25.000Z | Chapter01/datastructures_06.py | jiro74/Modern-Python-Standard-Library-Cookbook | 4f53e3ab7b61aca1cca9343e7421e170280cd5b5 | [
"MIT"
] | 33 | 2018-09-26T11:05:55.000Z | 2022-03-15T10:31:10.000Z | import time
import heapq
class PriorityQueue(object):
def __init__(self):
self._q = []
def add(self, value, priority=0):
heapq.heappush(self._q, (priority, time.time(), value))
def pop(self):
return heapq.heappop(self._q)[-1]
def f1(): print('hello')
def f2(): print('world')
pq... | 17.695652 | 63 | 0.619165 | 59 | 407 | 4.152542 | 0.423729 | 0.061224 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024465 | 0.19656 | 407 | 22 | 64 | 18.5 | 0.724771 | 0 | 0 | 0.125 | 0 | 0 | 0.02457 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0 | 0.125 | 0.0625 | 0.5625 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
8bf8770f23fe5d9c46d48d1b60253229783948a7 | 1,491 | py | Python | labdevices/_mock/ando.py | jkrauth/labdevices | 4b00579117216b6431079d79c1c978b73a6c0b96 | [
"MIT"
] | null | null | null | labdevices/_mock/ando.py | jkrauth/labdevices | 4b00579117216b6431079d79c1c978b73a6c0b96 | [
"MIT"
] | null | null | null | labdevices/_mock/ando.py | jkrauth/labdevices | 4b00579117216b6431079d79c1c978b73a6c0b96 | [
"MIT"
] | 1 | 2021-04-28T15:17:31.000Z | 2021-04-28T15:17:31.000Z | """
Provides a mock for the plx_gpib_ethernet package used in the
Ando devices.
"""
from unittest.mock import Mock
# The commands that are used in the methods of the
# ANDO devices and typical responses.
QUERY_COMMANDS = {
# Spectrum Analyzer commands
"*IDN?": "ANDO dummy\r\n",
"SWEEP?": "0\r\... | 33.886364 | 91 | 0.541247 | 223 | 1,491 | 3.587444 | 0.479821 | 0.1 | 0.13 | 0.1625 | 0.1575 | 0.1575 | 0.0875 | 0.0875 | 0.0625 | 0.0625 | 0 | 0.23814 | 0.293092 | 1,491 | 43 | 92 | 34.674419 | 0.520873 | 0.24279 | 0 | 0 | 0 | 0.2 | 0.46305 | 0.138447 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.04 | 0 | 0.28 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e30514bdd0f30538d4ed999ec163ad0e47c028b6 | 186 | py | Python | CA3/news_test.py | aadyajha12/Covid19-SmartAlarm | 911fe819cff6ef792f14b7dd48cbbb2c73f2405d | [
"MIT"
] | 1 | 2021-03-11T11:57:19.000Z | 2021-03-11T11:57:19.000Z | CA3/news_test.py | aadyajha12/Covid19-SmartAlarm | 911fe819cff6ef792f14b7dd48cbbb2c73f2405d | [
"MIT"
] | null | null | null | CA3/news_test.py | aadyajha12/Covid19-SmartAlarm | 911fe819cff6ef792f14b7dd48cbbb2c73f2405d | [
"MIT"
] | null | null | null | import json
from newsapi import covid_news
def news_test_one():
news_json = json.load(open('gb-news.json'))
news:str = covid_news(news_json)
assert news[0]['title'] != None | 26.571429 | 47 | 0.698925 | 30 | 186 | 4.133333 | 0.566667 | 0.193548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006452 | 0.166667 | 186 | 7 | 48 | 26.571429 | 0.793548 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
e30656fdcf081203a75edc6af8dad04320307e06 | 390 | py | Python | 2015/02/fc_2015_02_10.py | mfwarren/FreeCoding | 58ac87f35ad2004a3514782556762ee0ed72c39a | [
"MIT"
] | null | null | null | 2015/02/fc_2015_02_10.py | mfwarren/FreeCoding | 58ac87f35ad2004a3514782556762ee0ed72c39a | [
"MIT"
] | 1 | 2015-04-27T01:43:45.000Z | 2015-04-27T01:43:45.000Z | 2015/02/fc_2015_02_10.py | mfwarren/FreeCoding | 58ac87f35ad2004a3514782556762ee0ed72c39a | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# imports go here
import atexit
#
# Free Coding session for 2015-02-10
# Written by Matt Warren
#
def clean_up():
print("CLEANING UP")
@atexit.register
def done():
print("DONE")
if __name__ == '__main__':
atexit.register(clean_up)
try:
import time
while True:... | 14.444444 | 36 | 0.623077 | 50 | 390 | 4.66 | 0.78 | 0.060086 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035088 | 0.269231 | 390 | 26 | 37 | 15 | 0.782456 | 0.24359 | 0 | 0 | 0 | 0 | 0.079585 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 0.071429 | 0.142857 | 0 | 0.285714 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
e308f94d9774663e111da5671ce07f0ce2dd542e | 20,297 | py | Python | tutorials/create_sakila/migrations/0001_initial.py | MeGustas-5427/SQL_Tutorials | 627372c2d5d8656d72645830c9a1fae1df278fc7 | [
"Apache-2.0"
] | 13 | 2020-11-05T04:22:51.000Z | 2022-02-27T08:44:50.000Z | tutorials/create_sakila/migrations/0001_initial.py | MeGustas-5427/SQL_Tutorials | 627372c2d5d8656d72645830c9a1fae1df278fc7 | [
"Apache-2.0"
] | null | null | null | tutorials/create_sakila/migrations/0001_initial.py | MeGustas-5427/SQL_Tutorials | 627372c2d5d8656d72645830c9a1fae1df278fc7 | [
"Apache-2.0"
] | 2 | 2020-11-10T10:01:20.000Z | 2021-04-07T02:33:29.000Z | # Generated by Django 3.1.5 on 2021-01-11 08:07
from django.db import migrations, models
import django.db.models.deletion
import django_mysql.models
import utils.models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
... | 58.157593 | 3,672 | 0.564862 | 2,062 | 20,297 | 5.417071 | 0.214355 | 0.054163 | 0.030081 | 0.0453 | 0.554342 | 0.523903 | 0.486392 | 0.482811 | 0.449866 | 0.373321 | 0 | 0.143357 | 0.267971 | 20,297 | 348 | 3,673 | 58.324713 | 0.608426 | 0.002217 | 0 | 0.519062 | 1 | 0 | 0.138173 | 0.013136 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.002933 | 0.01173 | 0 | 0.02346 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e31548410089b175367898405bf5be3d08d7b387 | 418 | py | Python | electionleaflets/apps/content/models.py | electionleaflets/electionleaflets | 4110e96a3035c32d0b6ff3c9f832c5e003728170 | [
"MIT"
] | null | null | null | electionleaflets/apps/content/models.py | electionleaflets/electionleaflets | 4110e96a3035c32d0b6ff3c9f832c5e003728170 | [
"MIT"
] | 23 | 2015-02-19T14:02:23.000Z | 2015-04-30T11:14:01.000Z | electionleaflets/apps/content/models.py | electionleaflets/electionleaflets | 4110e96a3035c32d0b6ff3c9f832c5e003728170 | [
"MIT"
] | 2 | 2015-02-02T19:39:54.000Z | 2017-02-08T09:19:53.000Z | from django.db import models
class ContentBlock(models.Model):
"""
A simple block of HTML content that can be used by various sections of the
site based on the provided name, which acts as a key.
"""
name = models.CharField(max_length=64)
content = models.TextField(blank=True)
def __... | 24.588235 | 79 | 0.662679 | 58 | 418 | 4.672414 | 0.775862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006494 | 0.263158 | 418 | 16 | 80 | 26.125 | 0.873377 | 0.308612 | 0 | 0 | 0 | 0 | 0.04461 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0.125 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
e316c0dee9255d1c94a21d0fb077092ad8593724 | 162 | py | Python | Python/1017.py | lucasferreiraa/uri-judge-respostas | f5fc659d53c6b512a3624764041675e62d3fa053 | [
"MIT"
] | null | null | null | Python/1017.py | lucasferreiraa/uri-judge-respostas | f5fc659d53c6b512a3624764041675e62d3fa053 | [
"MIT"
] | null | null | null | Python/1017.py | lucasferreiraa/uri-judge-respostas | f5fc659d53c6b512a3624764041675e62d3fa053 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# URI Judge - Problema 1017
tempo = int(input())
velocidade = int(input())
litros = (velocidade / 12.0) * tempo
print("%.3f" % litros)
| 16.2 | 36 | 0.604938 | 21 | 162 | 4.666667 | 0.761905 | 0.163265 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068182 | 0.185185 | 162 | 9 | 37 | 18 | 0.674242 | 0.290123 | 0 | 0 | 0 | 0 | 0.035714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e3274579faa2032556dd5e38f0e928addfcdc145 | 1,093 | py | Python | orders/migrations/0001_initial.py | MahmudulHassan5809/Ecommerce-WebSite-With-Django2 | a9c76e6e925e236ba064be194a03d9d6635edac2 | [
"MIT"
] | 1 | 2021-09-24T04:32:35.000Z | 2021-09-24T04:32:35.000Z | orders/migrations/0001_initial.py | MahmudulHassan5809/Ecommerce-WebSite-With-Django2 | a9c76e6e925e236ba064be194a03d9d6635edac2 | [
"MIT"
] | null | null | null | orders/migrations/0001_initial.py | MahmudulHassan5809/Ecommerce-WebSite-With-Django2 | a9c76e6e925e236ba064be194a03d9d6635edac2 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.5 on 2019-01-26 19:42
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Order',
fields=[
('id', mod... | 34.15625 | 123 | 0.563586 | 111 | 1,093 | 5.45045 | 0.531532 | 0.14876 | 0.178512 | 0.238017 | 0.267769 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064599 | 0.291857 | 1,093 | 31 | 124 | 35.258065 | 0.717054 | 0.041171 | 0 | 0 | 1 | 0 | 0.065966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e33d45a696398845a0fe18a3dbb14693d8655739 | 1,926 | py | Python | src/jk_mediawiki/impl/WikiCronProcessFilter.py | jkpubsrc/python-module-jk-mediawiki | 5d76a060f0ed46c072d44e8084f6fa40d16e6069 | [
"Apache-1.1"
] | null | null | null | src/jk_mediawiki/impl/WikiCronProcessFilter.py | jkpubsrc/python-module-jk-mediawiki | 5d76a060f0ed46c072d44e8084f6fa40d16e6069 | [
"Apache-1.1"
] | null | null | null | src/jk_mediawiki/impl/WikiCronProcessFilter.py | jkpubsrc/python-module-jk-mediawiki | 5d76a060f0ed46c072d44e8084f6fa40d16e6069 | [
"Apache-1.1"
] | null | null | null |
import os
import typing
import jk_typing
from .ProcessFilter import ProcessFilter
class WikiCronProcessFilter(ProcessFilter):
################################################################################################################################
## Constructor
###############################... | 27.514286 | 129 | 0.297508 | 92 | 1,926 | 6.119565 | 0.619565 | 0.053286 | 0.0746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010913 | 0.096054 | 1,926 | 69 | 130 | 27.913043 | 0.312464 | 0.169263 | 0 | 0 | 0 | 0 | 0.046555 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
e3496bdad8c230d6caf15ce743cc65f029480031 | 5,287 | py | Python | RecoEgamma/Configuration/python/RecoEgamma_cff.py | sebwieland/cmssw | 431e2fdfedec052e73c16e9f06de98ade41ebc56 | [
"Apache-2.0"
] | null | null | null | RecoEgamma/Configuration/python/RecoEgamma_cff.py | sebwieland/cmssw | 431e2fdfedec052e73c16e9f06de98ade41ebc56 | [
"Apache-2.0"
] | null | null | null | RecoEgamma/Configuration/python/RecoEgamma_cff.py | sebwieland/cmssw | 431e2fdfedec052e73c16e9f06de98ade41ebc56 | [
"Apache-2.0"
] | null | null | null | import FWCore.ParameterSet.Config as cms
from RecoEgamma.EgammaElectronProducers.gsfElectronSequence_cff import *
from RecoEgamma.EgammaElectronProducers.uncleanedOnlyElectronSequence_cff import *
from RecoEgamma.EgammaPhotonProducers.photonSequence_cff import *
from RecoEgamma.EgammaPhotonProducers.conversionSequence... | 66.924051 | 169 | 0.897863 | 448 | 5,287 | 10.388393 | 0.28125 | 0.042544 | 0.039106 | 0.064246 | 0.145681 | 0.050924 | 0 | 0 | 0 | 0 | 0 | 0.009548 | 0.049177 | 5,287 | 78 | 170 | 67.782051 | 0.916252 | 0.11916 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.416667 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
e34fb05ebe987705aa9522c54e606db43ebf8086 | 9,288 | py | Python | cvr/core/task.py | john-james-ai/cvr | 37e12dff4d46acac64b09ad8ddb8d238d43a5513 | [
"BSD-3-Clause"
] | null | null | null | cvr/core/task.py | john-james-ai/cvr | 37e12dff4d46acac64b09ad8ddb8d238d43a5513 | [
"BSD-3-Clause"
] | null | null | null | cvr/core/task.py | john-james-ai/cvr | 37e12dff4d46acac64b09ad8ddb8d238d43a5513 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
# ================================================================================================ #
# Project : Deep Learning for Conversion Rate Prediction (CVR) #
# Version : 0.1.0 ... | 33.053381 | 100 | 0.463932 | 791 | 9,288 | 5.312263 | 0.26043 | 0.033317 | 0.025702 | 0.014279 | 0.165873 | 0.121371 | 0.051404 | 0.051404 | 0.035697 | 0.026178 | 0 | 0.0063 | 0.31643 | 9,288 | 280 | 101 | 33.171429 | 0.655536 | 0.418605 | 0 | 0.322368 | 0 | 0 | 0.024043 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217105 | false | 0.184211 | 0.052632 | 0.039474 | 0.434211 | 0.098684 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
e359f824dde6ff522819969499136201763f90fa | 322 | py | Python | conf_site/speakers/tests/factories.py | jasongrout/conf_site | 6b3beb21de8d847cba65dcb6da84464b40739d48 | [
"MIT"
] | 13 | 2015-05-22T17:10:22.000Z | 2021-07-15T16:45:19.000Z | conf_site/speakers/tests/factories.py | jasongrout/conf_site | 6b3beb21de8d847cba65dcb6da84464b40739d48 | [
"MIT"
] | 758 | 2015-03-18T13:39:25.000Z | 2022-03-31T13:14:09.000Z | conf_site/speakers/tests/factories.py | jasongrout/conf_site | 6b3beb21de8d847cba65dcb6da84464b40739d48 | [
"MIT"
] | 16 | 2015-03-24T18:53:17.000Z | 2020-10-22T21:30:02.000Z | # -*- coding: utf-8 -*-
import factory
from symposion.speakers.models import Speaker
from conf_site.accounts.tests.factories import UserFactory
class SpeakerFactory(factory.django.DjangoModelFactory):
user = factory.SubFactory(UserFactory)
name = factory.Faker("name")
class Meta:
model = Speake... | 21.466667 | 58 | 0.73913 | 36 | 322 | 6.583333 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003717 | 0.164596 | 322 | 14 | 59 | 23 | 0.877323 | 0.065217 | 0 | 0 | 0 | 0 | 0.013378 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
e36b3c194ac71da00a1987d9f541d4a940300816 | 332 | py | Python | compsocsite/polls/migrations/0108_merge_20180105_1930.py | ReedyChen/opra | 86ce88c7219d92e321cd9aa3d0bc2bf631e4b90f | [
"MIT"
] | 8 | 2017-03-07T19:46:51.000Z | 2021-06-01T01:41:37.000Z | compsocsite/polls/migrations/0108_merge_20180105_1930.py | ReedyChen/opra | 86ce88c7219d92e321cd9aa3d0bc2bf631e4b90f | [
"MIT"
] | null | null | null | compsocsite/polls/migrations/0108_merge_20180105_1930.py | ReedyChen/opra | 86ce88c7219d92e321cd9aa3d0bc2bf631e4b90f | [
"MIT"
] | 9 | 2016-06-09T03:36:20.000Z | 2019-09-11T20:56:23.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-01-06 00:30
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('polls', '0107_auto_20180101_2108'),
('polls', '0107_auto_20180105_1858'),
]
operation... | 19.529412 | 46 | 0.659639 | 40 | 332 | 5.2 | 0.8 | 0.086538 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184615 | 0.216867 | 332 | 16 | 47 | 20.75 | 0.615385 | 0.198795 | 0 | 0 | 1 | 0 | 0.212928 | 0.174905 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
e37b4614ad6f2375762685c14b508a5358b41194 | 184 | py | Python | CRONtest/hello.py | liu2z2/TutorCal | 41cd0272d59cd1cca439cfef178485d0d8096820 | [
"MIT"
] | null | null | null | CRONtest/hello.py | liu2z2/TutorCal | 41cd0272d59cd1cca439cfef178485d0d8096820 | [
"MIT"
] | null | null | null | CRONtest/hello.py | liu2z2/TutorCal | 41cd0272d59cd1cca439cfef178485d0d8096820 | [
"MIT"
] | null | null | null | import datetime
time=datetime.datetime.today().strftime("%H-%M-%S")
text_file = open("/home/pi/TutorCal/CRONtest/"+time+".txt", "w")
text_file.write("Hello world!")
text_file.close() | 26.285714 | 64 | 0.711957 | 28 | 184 | 4.571429 | 0.75 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059783 | 184 | 7 | 65 | 26.285714 | 0.739884 | 0 | 0 | 0 | 0 | 0 | 0.281081 | 0.145946 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e3850a968708849ad26d08ad8495038926eabd09 | 248 | py | Python | 9bus.py | sayonsom/Canvass | e59cd68f26722144abc5caf2d7ae1e7389c39ad1 | [
"MIT"
] | 9 | 2018-01-29T10:53:25.000Z | 2021-02-21T19:35:23.000Z | 9bus.py | cyberange-dev0ps/Canvass | e59cd68f26722144abc5caf2d7ae1e7389c39ad1 | [
"MIT"
] | 1 | 2019-06-04T14:43:34.000Z | 2021-07-09T08:35:13.000Z | 9bus.py | cyberange-dev0ps/Canvass | e59cd68f26722144abc5caf2d7ae1e7389c39ad1 | [
"MIT"
] | 12 | 2017-05-04T23:39:10.000Z | 2021-09-25T17:05:00.000Z | # There are copyright holders.
import pandapower as pp
import pandapower.networks as pn
net = pn.case9()
pp.runpp(net)
print ("Canvass NR Power Flow Results At The Buses")
print ("------------------------------------------")
print (net.res_bus) | 22.545455 | 52 | 0.612903 | 33 | 248 | 4.575758 | 0.727273 | 0.211921 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004651 | 0.133065 | 248 | 11 | 53 | 22.545455 | 0.697674 | 0.112903 | 0 | 0 | 0 | 0 | 0.385321 | 0.192661 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0.428571 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
e388be8ed758ecb9a717bada7d2953a7819ac2aa | 315 | py | Python | archeutils/urls.py | acdh-oeaw/acdh-django-archeutils | d1d560ce739d3e2eeddd080c4d96e7482fefbbc5 | [
"MIT"
] | null | null | null | archeutils/urls.py | acdh-oeaw/acdh-django-archeutils | d1d560ce739d3e2eeddd080c4d96e7482fefbbc5 | [
"MIT"
] | null | null | null | archeutils/urls.py | acdh-oeaw/acdh-django-archeutils | d1d560ce739d3e2eeddd080c4d96e7482fefbbc5 | [
"MIT"
] | null | null | null | from django.urls import include, path
from . import arche_rdf_views
app_name = "archeutils"
urlpatterns = [
path('<app_name>/<model_name>/<pk>', arche_rdf_views.res_as_arche_graph, name='res_as_arche_graph'),
path('<app_name>/<model_name>', arche_rdf_views.qs_as_arche_graph, name='qs_as_arche_graph'),
]
| 31.5 | 104 | 0.75873 | 50 | 315 | 4.32 | 0.38 | 0.12963 | 0.222222 | 0.148148 | 0.185185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101587 | 315 | 9 | 105 | 35 | 0.763251 | 0 | 0 | 0 | 0 | 0 | 0.304762 | 0.161905 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8b504f70d7990baf24d2b512d627ec9c1ca831af | 223 | py | Python | src/common/json_attributes.py | rosenloecher-it/enocean-mqtt-bridge | d56e41a1a67e70bdeb1aa46d10f48ed5a12ca59c | [
"MIT"
] | 1 | 2020-12-01T17:10:14.000Z | 2020-12-01T17:10:14.000Z | src/common/json_attributes.py | rosenloecher-it/enocean-mqtt-bridge | d56e41a1a67e70bdeb1aa46d10f48ed5a12ca59c | [
"MIT"
] | 1 | 2021-09-19T13:38:02.000Z | 2021-09-19T13:38:02.000Z | src/common/json_attributes.py | rosenloecher-it/enocean-mqtt-bridge | d56e41a1a67e70bdeb1aa46d10f48ed5a12ca59c | [
"MIT"
] | null | null | null |
class JsonAttributes:
TIMESTAMP = "timestamp"
STATE = "state"
DIM_STATE = "dim_state"
SWITCH_STATE = "switch_state"
VALUE = "value"
BUTTON = "button"
SINCE = "since"
DEVICE = "device"
| 13.117647 | 33 | 0.596413 | 22 | 223 | 5.863636 | 0.454545 | 0.124031 | 0.20155 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.29148 | 223 | 16 | 34 | 13.9375 | 0.816456 | 0 | 0 | 0 | 0 | 0 | 0.256757 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8b58c384ea2a5cec4051907804ed34709b049103 | 4,126 | py | Python | server/music/api.py | tricelex/zc_plugin_youtube_music_video | f3389cafc9e1a6b0fd2d94e0af77e9beec678282 | [
"MIT"
] | null | null | null | server/music/api.py | tricelex/zc_plugin_youtube_music_video | f3389cafc9e1a6b0fd2d94e0af77e9beec678282 | [
"MIT"
] | null | null | null | server/music/api.py | tricelex/zc_plugin_youtube_music_video | f3389cafc9e1a6b0fd2d94e0af77e9beec678282 | [
"MIT"
] | null | null | null | # class SidebarView(GenericAPIView):
# permission_classes = [AllowAny]
# def get(self, request, *args, **kwargs):
# org_id = request.GET.get("org", None)
# user_id = request.GET.get("user", None)
# room = settings.ROOM_COLLECTION
# plugin_id = settings.PLUGIN_ID
# roomi... | 41.26 | 134 | 0.479641 | 374 | 4,126 | 5.018717 | 0.256684 | 0.046883 | 0.063932 | 0.057539 | 0.488013 | 0.488013 | 0.488013 | 0.488013 | 0.488013 | 0.416622 | 0 | 0.017423 | 0.401842 | 4,126 | 99 | 135 | 41.676768 | 0.743112 | 0.953708 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8b5af6372e48aa5e412d730c4fca44191540f238 | 1,360 | py | Python | src/gui/components/weeklycolormesh.py | larashores/spotify-analyzer | 98022b178ce3ef1b07a8f005aeba2aeb573125ee | [
"MIT"
] | null | null | null | src/gui/components/weeklycolormesh.py | larashores/spotify-analyzer | 98022b178ce3ef1b07a8f005aeba2aeb573125ee | [
"MIT"
] | null | null | null | src/gui/components/weeklycolormesh.py | larashores/spotify-analyzer | 98022b178ce3ef1b07a8f005aeba2aeb573125ee | [
"MIT"
] | null | null | null | import collections
import colorsys
from typing import Iterable, List, Tuple
import matplotobjlib as plot
from backports import zoneinfo
from matplotlib.colors import ListedColormap
import utils
from gui.components import PlotComponent
from gui.options import ArtistChooser, ColorMap, Spinbox
from track import Track
... | 35.789474 | 137 | 0.627206 | 180 | 1,360 | 4.694444 | 0.455556 | 0.028402 | 0.042604 | 0.078107 | 0.191716 | 0.08284 | 0.047337 | 0.047337 | 0 | 0 | 0 | 0.037864 | 0.242647 | 1,360 | 37 | 138 | 36.756757 | 0.782524 | 0.033824 | 0 | 0.068966 | 0 | 0 | 0.073989 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.344828 | 0 | 0.551724 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
8b6038fb868f4e95b06475e6967de2992f3ee654 | 2,947 | py | Python | src/brouwers/shop/migrations/0021_payment.py | modelbrouwers/modelbrouwers | e0ba4819bf726d6144c0a648fdd4731cdc098a52 | [
"MIT"
] | 6 | 2015-03-03T13:23:07.000Z | 2021-12-19T18:12:41.000Z | src/brouwers/shop/migrations/0021_payment.py | modelbrouwers/modelbrouwers | e0ba4819bf726d6144c0a648fdd4731cdc098a52 | [
"MIT"
] | 95 | 2015-02-07T00:55:39.000Z | 2022-02-08T20:22:05.000Z | src/brouwers/shop/migrations/0021_payment.py | modelbrouwers/modelbrouwers | e0ba4819bf726d6144c0a648fdd4731cdc098a52 | [
"MIT"
] | 2 | 2016-03-22T16:53:26.000Z | 2019-02-09T22:46:04.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-06-29 13:56
from __future__ import unicode_literals
import django.contrib.postgres.fields.jsonb
import django.db.models.deletion
from django.db import migrations, models
import brouwers.shop.models.utils
class Migration(migrations.Migration):
depend... | 33.11236 | 84 | 0.405836 | 207 | 2,947 | 5.613527 | 0.458937 | 0.094664 | 0.036145 | 0.056799 | 0.129088 | 0.07401 | 0.07401 | 0.07401 | 0.07401 | 0 | 0 | 0.024845 | 0.508314 | 2,947 | 88 | 85 | 33.488636 | 0.777088 | 0.023414 | 0 | 0.2375 | 1 | 0 | 0.133565 | 0.008 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8b73f4c7986a2f8c2bd94b366f876d38ceb6a037 | 303 | py | Python | 06source_code/service-center/language-service/bin/language_service.py | dumengnan/unicorn | 165330ff8e01bc18e3eca2d8ecf23b5d955f155b | [
"Apache-2.0"
] | null | null | null | 06source_code/service-center/language-service/bin/language_service.py | dumengnan/unicorn | 165330ff8e01bc18e3eca2d8ecf23b5d955f155b | [
"Apache-2.0"
] | 8 | 2020-01-28T22:31:03.000Z | 2022-03-02T03:37:47.000Z | 06source_code/service-center/language-service/bin/language_service.py | dumengnan/unicorn | 165330ff8e01bc18e3eca2d8ecf23b5d955f155b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
import _load_lib
import sys
import logging
import os
from unicorn.language.app\
import main as languae_main
if __name__ == '__main__':
try:
languae_main()
except Exception as ex:
logging.exception("main except")
os._exit(1)
| 16.833333 | 40 | 0.673267 | 42 | 303 | 4.547619 | 0.666667 | 0.115183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008621 | 0.234323 | 303 | 17 | 41 | 17.823529 | 0.814655 | 0.118812 | 0 | 0 | 0 | 0 | 0.071698 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.416667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
8b820e62535a256f6892582e2d661efa4be1b944 | 1,748 | py | Python | model.py | TilenHumar/Vislice | 5970fb4d887a5689b906a7190fabb5405b25bbc7 | [
"MIT"
] | null | null | null | model.py | TilenHumar/Vislice | 5970fb4d887a5689b906a7190fabb5405b25bbc7 | [
"MIT"
] | 2 | 2021-04-19T15:51:18.000Z | 2021-04-19T16:17:06.000Z | model.py | TilenHumar/Vislice | 5970fb4d887a5689b906a7190fabb5405b25bbc7 | [
"MIT"
] | null | null | null | import random
# najprej konstante
STEVILO_DOVOLJENIH_NAPAK = 10
PRAVILNA_CRKA = "+"
PONOVLJENA_CRKA = "o"
NAPACNA_CRKA = "-"
ZMAGA = "W"
PORAZ = "X"
class Igra:
def __init__(self, geslo, crke):
self.geslo = geslo.upper() # pravilno geslo
self.crke = crke.upper() # do sedaj ugibane črke
... | 23 | 69 | 0.582952 | 217 | 1,748 | 4.552995 | 0.322581 | 0.060729 | 0.07085 | 0.05668 | 0.188259 | 0.082996 | 0.082996 | 0.082996 | 0.082996 | 0.082996 | 0 | 0.002542 | 0.324943 | 1,748 | 76 | 70 | 23 | 0.834746 | 0.046911 | 0 | 0.078431 | 0 | 0 | 0.012635 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.196078 | false | 0 | 0.019608 | 0.117647 | 0.509804 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
8b8bd5685a8cb00d4aca06f90e968e83f7055e18 | 10,174 | py | Python | ioflo/aio/proto/devicing.py | BradyHammond/ioflo | 177ac656d7c4ff801aebb0d8b401db365a5248ce | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 128 | 2015-01-14T12:26:56.000Z | 2021-11-06T07:09:29.000Z | ioflo/aio/proto/devicing.py | BradyHammond/ioflo | 177ac656d7c4ff801aebb0d8b401db365a5248ce | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 17 | 2015-01-28T18:26:50.000Z | 2020-11-19T22:08:06.000Z | ioflo/aio/proto/devicing.py | BradyHammond/ioflo | 177ac656d7c4ff801aebb0d8b401db365a5248ce | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 29 | 2015-01-27T23:28:31.000Z | 2021-05-04T16:37:30.000Z | """
Device Base Package
"""
from __future__ import absolute_import, division, print_function
import struct
from binascii import hexlify
from collections import deque, namedtuple
import enum
import socket
from ...aid.sixing import *
from ...aid.odicting import odict
from ...aid.byting import bytify, unbytify, packify... | 27.276139 | 91 | 0.548555 | 1,183 | 10,174 | 4.661877 | 0.12257 | 0.046419 | 0.034814 | 0.058024 | 0.720762 | 0.710426 | 0.662013 | 0.650771 | 0.639166 | 0.6301 | 0 | 0.005104 | 0.383822 | 10,174 | 372 | 92 | 27.349462 | 0.874621 | 0.472675 | 0 | 0.347826 | 0 | 0 | 0.025377 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.13913 | false | 0.017391 | 0.113043 | 0 | 0.347826 | 0.008696 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8ba8b01b1342226dbfd45e390f34ba1e3c088e34 | 123 | py | Python | clase1/multiplicadores.py | Munoz-Rojas-Adriana/Computacion_para_Ingenieria | 4f695887966a94b6c422d100c2c4ec4a94d1e80e | [
"Apache-2.0"
] | null | null | null | clase1/multiplicadores.py | Munoz-Rojas-Adriana/Computacion_para_Ingenieria | 4f695887966a94b6c422d100c2c4ec4a94d1e80e | [
"Apache-2.0"
] | null | null | null | clase1/multiplicadores.py | Munoz-Rojas-Adriana/Computacion_para_Ingenieria | 4f695887966a94b6c422d100c2c4ec4a94d1e80e | [
"Apache-2.0"
] | null | null | null | multi = 0
list = (1 , 2 , 3)
for i in list:
multi = multi + i
print (f'la multi total de 1 al 3 es {multi}') | 15.375 | 50 | 0.528455 | 24 | 123 | 2.708333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075 | 0.349594 | 123 | 8 | 50 | 15.375 | 0.7375 | 0 | 0 | 0 | 0 | 0 | 0.282258 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8bb369887e18a7fa4f7256d2ff77d3ccf9f84c6a | 5,607 | py | Python | nfv/nfv-vim/nfv_vim/nfvi/api/v1/_nfvi_network_api.py | SidneyAn/nfv | 5f0262a5b6ea4be59f977b9c587c483cbe0e373d | [
"Apache-2.0"
] | 2 | 2020-02-07T19:01:36.000Z | 2022-02-23T01:41:46.000Z | nfv/nfv-vim/nfv_vim/nfvi/api/v1/_nfvi_network_api.py | SidneyAn/nfv | 5f0262a5b6ea4be59f977b9c587c483cbe0e373d | [
"Apache-2.0"
] | 1 | 2021-01-14T12:02:25.000Z | 2021-01-14T12:02:25.000Z | nfv/nfv-vim/nfv_vim/nfvi/api/v1/_nfvi_network_api.py | SidneyAn/nfv | 5f0262a5b6ea4be59f977b9c587c483cbe0e373d | [
"Apache-2.0"
] | 2 | 2021-01-13T08:39:21.000Z | 2022-02-09T00:21:55.000Z | #
# Copyright (c) 2015-2016 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
import abc
import six
@six.add_metaclass(abc.ABCMeta)
class NFVINetworkAPI(object):
"""
Abstract NFVI Network API Class Definition
"""
@abc.abstractproperty
def name(self):
"""
Returns th... | 24.809735 | 85 | 0.574817 | 599 | 5,607 | 5.228715 | 0.160267 | 0.092593 | 0.11622 | 0.137931 | 0.64719 | 0.618455 | 0.525224 | 0.501596 | 0.393678 | 0.223819 | 0 | 0.002727 | 0.345996 | 5,607 | 225 | 86 | 24.92 | 0.851377 | 0.227394 | 0 | 0.63 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.29 | false | 0.29 | 0.02 | 0 | 0.32 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
8bb6d2bd0e69ae1dc3728d097c16522641fbedbf | 1,155 | py | Python | devlib/exception.py | BayLibre/devlib | efa0ecdfe931caebc9a7dab16bb172b96c3f92cb | [
"Apache-2.0"
] | 1 | 2021-06-19T09:32:50.000Z | 2021-06-19T09:32:50.000Z | devlib/exception.py | BayLibre/devlib | efa0ecdfe931caebc9a7dab16bb172b96c3f92cb | [
"Apache-2.0"
] | 1 | 2016-02-08T11:27:34.000Z | 2016-02-08T11:27:34.000Z | devlib/exception.py | BayLibre/devlib | efa0ecdfe931caebc9a7dab16bb172b96c3f92cb | [
"Apache-2.0"
] | 3 | 2015-12-15T11:28:06.000Z | 2016-03-04T16:36:19.000Z | # Copyright 2013-2015 ARM Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in w... | 28.170732 | 101 | 0.732468 | 155 | 1,155 | 5.406452 | 0.632258 | 0.071599 | 0.031026 | 0.038186 | 0.078759 | 0.078759 | 0.078759 | 0 | 0 | 0 | 0 | 0.016913 | 0.180952 | 1,155 | 40 | 102 | 28.875 | 0.868922 | 0.6329 | 0 | 0.3 | 0 | 0 | 0.072165 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.3 | 0.1 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
8bca7c3ef84914924b0c15217d9b07d51210a502 | 395 | py | Python | xrobot_launcher.py | martinRenou/xeus-robot-wheel | e14034c9e7c15417b9b125d3b03f660606df0b4e | [
"BSD-3-Clause"
] | null | null | null | xrobot_launcher.py | martinRenou/xeus-robot-wheel | e14034c9e7c15417b9b125d3b03f660606df0b4e | [
"BSD-3-Clause"
] | null | null | null | xrobot_launcher.py | martinRenou/xeus-robot-wheel | e14034c9e7c15417b9b125d3b03f660606df0b4e | [
"BSD-3-Clause"
] | null | null | null | if __name__ == '__main__':
def _xrobot_get_connection_filename():
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('-f', help='Jupyter kernel connection filename')
args, unknown = parser.parse_known_args()
return args.f
from xrobot import launch as ... | 35.909091 | 76 | 0.701266 | 45 | 395 | 5.644444 | 0.6 | 0.212598 | 0.149606 | 0.212598 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212658 | 395 | 10 | 77 | 39.5 | 0.81672 | 0 | 0 | 0 | 0 | 0 | 0.111392 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8bd259e0e2d2b9af5c910c05de23636129ffb891 | 113 | py | Python | 01_Language/01_Functions/python/fflush.py | cliff363825/TwentyFour | 09df59bd5d275e66463e343647f46027397d1233 | [
"MIT"
] | 3 | 2020-06-28T07:42:51.000Z | 2021-01-15T10:32:11.000Z | 01_Language/01_Functions/python/fflush.py | cliff363825/TwentyFour | 09df59bd5d275e66463e343647f46027397d1233 | [
"MIT"
] | 9 | 2021-03-10T22:45:40.000Z | 2022-02-27T06:53:20.000Z | 01_Language/01_Functions/python/fflush.py | cliff363825/TwentyFour | 09df59bd5d275e66463e343647f46027397d1233 | [
"MIT"
] | 1 | 2021-01-15T10:51:24.000Z | 2021-01-15T10:51:24.000Z | # coding: utf-8
f = open("test.txt", mode="r+")
f.write("hello world")
f.flush()
f.truncate(f.tell())
f.close()
| 14.125 | 31 | 0.610619 | 21 | 113 | 3.285714 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01 | 0.115044 | 113 | 7 | 32 | 16.142857 | 0.68 | 0.115044 | 0 | 0 | 0 | 0 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8bd88ec45c6933abd1b51585d3a13a40674a382b | 225 | py | Python | exer/ex5-2.py | vitorsergiota/python | 2cc95392a2a52a871e0582e4e900c0aa24a021a1 | [
"MIT"
] | null | null | null | exer/ex5-2.py | vitorsergiota/python | 2cc95392a2a52a871e0582e4e900c0aa24a021a1 | [
"MIT"
] | null | null | null | exer/ex5-2.py | vitorsergiota/python | 2cc95392a2a52a871e0582e4e900c0aa24a021a1 | [
"MIT"
] | null | null | null | num = int(input('Escreva um digito:'))
soma=0
while num > 0
digito = num%10 # obtem algarismo unidades
num = num // 10 # remove algarismo unidades
if digito % 2 == 0: #par
soma = soma + digito
print(soma)
| 25 | 47 | 0.622222 | 33 | 225 | 4.242424 | 0.545455 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048193 | 0.262222 | 225 | 8 | 48 | 28.125 | 0.795181 | 0.235556 | 0 | 0 | 0 | 0 | 0.107143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8bde558284ee50c285e21e6e1f4a0e2c6265f5bf | 21,737 | py | Python | pysnmp-with-texts/CISCO-ATM-EXT-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/CISCO-ATM-EXT-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/CISCO-ATM-EXT-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module CISCO-ATM-EXT-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-ATM-EXT-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:50:35 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Ma... | 134.179012 | 2,083 | 0.776096 | 2,511 | 21,737 | 6.717642 | 0.148148 | 0.051933 | 0.090882 | 0.010197 | 0.438048 | 0.319836 | 0.257233 | 0.218105 | 0.15728 | 0.125682 | 0 | 0.051214 | 0.092745 | 21,737 | 161 | 2,084 | 135.012422 | 0.804117 | 0.015089 | 0 | 0.04698 | 0 | 0.060403 | 0.341495 | 0.030701 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.053691 | 0 | 0.120805 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8bdfada5a195abb5fa1a5addc5ae23054f34a07f | 62,005 | py | Python | pysnmp-with-texts/ASSETMANAGEMENT-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/ASSETMANAGEMENT-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/ASSETMANAGEMENT-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module ASSETMANAGEMENT-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ASSETMANAGEMENT-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:29:30 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default... | 157.773537 | 5,190 | 0.784856 | 6,713 | 62,005 | 7.249069 | 0.089379 | 0.084705 | 0.078972 | 0.008631 | 0.536547 | 0.414463 | 0.367035 | 0.34256 | 0.313996 | 0.29505 | 0 | 0.044921 | 0.091315 | 62,005 | 392 | 5,191 | 158.17602 | 0.818771 | 0.005354 | 0 | 0.075472 | 0 | 0.137466 | 0.434581 | 0.0595 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.021563 | 0 | 0.172507 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8bec7a78ef815c669108337b9955421ae8412b87 | 1,192 | py | Python | deep-rl/lib/python2.7/site-packages/OpenGL/raw/GL/ARB/get_program_binary.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 210 | 2016-04-09T14:26:00.000Z | 2022-03-25T18:36:19.000Z | deep-rl/lib/python2.7/site-packages/OpenGL/raw/GL/ARB/get_program_binary.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 72 | 2016-09-04T09:30:19.000Z | 2022-03-27T17:06:53.000Z | deep-rl/lib/python2.7/site-packages/OpenGL/raw/GL/ARB/get_program_binary.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 64 | 2016-04-09T14:26:49.000Z | 2022-03-21T11:19:47.000Z | '''Autogenerated by xml_generate script, do not edit!'''
from OpenGL import platform as _p, arrays
# Code generation uses this
from OpenGL.raw.GL import _types as _cs
# End users want this...
from OpenGL.raw.GL._types import *
from OpenGL.raw.GL import _errors
from OpenGL.constant import Constant as _C
import ctypes
_... | 44.148148 | 119 | 0.833054 | 184 | 1,192 | 4.994565 | 0.369565 | 0.141458 | 0.097933 | 0.048966 | 0.352557 | 0.090316 | 0.090316 | 0.067465 | 0.067465 | 0 | 0 | 0.01435 | 0.064597 | 1,192 | 26 | 120 | 45.846154 | 0.809865 | 0.083893 | 0 | 0.136364 | 1 | 0 | 0.149309 | 0.149309 | 0 | 0 | 0.02212 | 0 | 0 | 1 | 0.181818 | false | 0.136364 | 0.272727 | 0.045455 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
4735a6be395ffd4914453c63b7dd438db0593092 | 629 | py | Python | parseridge/parser/training/callbacks/save_model_callback.py | jgontrum/parseridge | f87ef82a9468addeb09a91c3b5310db38840bf0f | [
"Apache-2.0"
] | 6 | 2019-10-06T23:00:29.000Z | 2020-04-08T02:04:24.000Z | parseridge/parser/training/callbacks/save_model_callback.py | jgontrum/parseridge | f87ef82a9468addeb09a91c3b5310db38840bf0f | [
"Apache-2.0"
] | 2 | 2020-04-28T12:06:23.000Z | 2020-04-28T13:30:03.000Z | parseridge/parser/training/callbacks/save_model_callback.py | jgontrum/parseridge | f87ef82a9468addeb09a91c3b5310db38840bf0f | [
"Apache-2.0"
] | 1 | 2019-12-23T00:53:38.000Z | 2019-12-23T00:53:38.000Z | import os
from typing import Any, Optional
import torch
from parseridge.parser.modules.data_parallel import Module
from parseridge.parser.training.callbacks.base_callback import Callback
class SaveModelCallback(Callback):
_order = 5
def __init__(self, folder_path: Optional[str] = None):
self.folder... | 28.590909 | 77 | 0.696343 | 83 | 629 | 5.072289 | 0.542169 | 0.118765 | 0.095012 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002004 | 0.206677 | 629 | 21 | 78 | 29.952381 | 0.841683 | 0 | 0 | 0.133333 | 0 | 0 | 0.052464 | 0.052464 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.333333 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
4739f9dd85a98ca4914a3d95480d40fee9c3fdfc | 192 | py | Python | ex021.py | Jordemar-D-Bousquet/Exercicios_Python | 705d4c83720db033841f01aa843e4dbab08f1423 | [
"MIT"
] | null | null | null | ex021.py | Jordemar-D-Bousquet/Exercicios_Python | 705d4c83720db033841f01aa843e4dbab08f1423 | [
"MIT"
] | null | null | null | ex021.py | Jordemar-D-Bousquet/Exercicios_Python | 705d4c83720db033841f01aa843e4dbab08f1423 | [
"MIT"
] | null | null | null | # Faça um programa em Python que abra e reproduza o áudio de um arquivo MP3.
from pygame import mixer
mixer.init()
mixer.music.load('ex021.mp3')
mixer.music.play()
input('Agora vc escuta?')
| 21.333333 | 76 | 0.744792 | 33 | 192 | 4.333333 | 0.818182 | 0.13986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030488 | 0.145833 | 192 | 8 | 77 | 24 | 0.841463 | 0.385417 | 0 | 0 | 0 | 0 | 0.215517 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
473a6e55a1141afc8bdd4f4dc054a62915b0f948 | 320 | py | Python | Module 2/Chapter 7/ch7_yahooweatherapi.py | saicharanabhishek/machinelearning_examples | f89857ae7e1a2baa76951fe1d55541832d0f0d20 | [
"MIT"
] | 101 | 2016-11-08T11:17:55.000Z | 2021-12-24T10:43:32.000Z | Module 2/Chapter 7/ch7_yahooweatherapi.py | saicharanabhishek/machinelearning_examples | f89857ae7e1a2baa76951fe1d55541832d0f0d20 | [
"MIT"
] | 2 | 2017-11-28T11:22:25.000Z | 2019-02-12T17:09:18.000Z | Module 2/Chapter 7/ch7_yahooweatherapi.py | saicharanabhishek/machinelearning_examples | f89857ae7e1a2baa76951fe1d55541832d0f0d20 | [
"MIT"
] | 102 | 2016-10-22T12:14:23.000Z | 2022-03-26T19:59:09.000Z | import urllib, json
baseurl = 'https://query.yahooapis.com/v1/public/yql?'
yql_query = "select item.condition from weather.forecast where woeid=9807"
yql_url = baseurl + urllib.urlencode({'q':yql_query}) + "&format=json"
result = urllib.urlopen(yql_url).read()
data = json.loads(result)
print data['query']['results']
| 32 | 74 | 0.7375 | 46 | 320 | 5.043478 | 0.673913 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017301 | 0.096875 | 320 | 9 | 75 | 35.555556 | 0.785467 | 0 | 0 | 0 | 0 | 0 | 0.396875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
473a74f5da28e0b4ce33777ece6a2e2116a72644 | 1,697 | py | Python | lib/assets/Lib/signal.py | s6007589/cafe-grader-web | 18a993801c698fb7b7ec6ae5f4b67920503cb242 | [
"MIT"
] | 25 | 2016-09-04T07:34:13.000Z | 2022-02-14T07:39:02.000Z | lib/assets/Lib/signal.py | it56660024/cafe-grader-web | e9a1305fd62e79e54f6961f97ddc5cd57bafd73c | [
"MIT"
] | 25 | 2015-02-05T03:59:27.000Z | 2022-02-11T16:54:04.000Z | lib/assets/Lib/signal.py | it56660024/cafe-grader-web | e9a1305fd62e79e54f6961f97ddc5cd57bafd73c | [
"MIT"
] | 16 | 2016-09-05T00:30:27.000Z | 2021-12-05T11:07:02.000Z | """This module provides mechanisms to use signal handlers in Python.
Functions:
alarm() -- cause SIGALRM after a specified time [Unix only]
setitimer() -- cause a signal (described below) after a specified
float time and the timer may restart then [Unix only]
getitimer() -- get current value of ... | 32.634615 | 78 | 0.700059 | 240 | 1,697 | 4.891667 | 0.516667 | 0.027257 | 0.025554 | 0.025554 | 0.083475 | 0.0477 | 0 | 0 | 0 | 0 | 0 | 0.01324 | 0.243371 | 1,697 | 51 | 79 | 33.27451 | 0.90109 | 0.860931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.071429 | 0 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
47405d3453babd25d32b1eab577b6c049070e9a0 | 52 | py | Python | src/config.py | kimminwyk/apache-log-parsing | 1fcf06dc349c37ab02b91c2c48e3dc8f6f5d4b4e | [
"MIT"
] | 1 | 2021-03-31T00:14:38.000Z | 2021-03-31T00:14:38.000Z | src/config.py | kimminwyk/apache-log-parsing | 1fcf06dc349c37ab02b91c2c48e3dc8f6f5d4b4e | [
"MIT"
] | null | null | null | src/config.py | kimminwyk/apache-log-parsing | 1fcf06dc349c37ab02b91c2c48e3dc8f6f5d4b4e | [
"MIT"
] | null | null | null | default = False
actions = 'store_true'
ENC = 'utf-8' | 17.333333 | 22 | 0.692308 | 8 | 52 | 4.375 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0.153846 | 52 | 3 | 23 | 17.333333 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0.283019 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4740a5904496fd65f865863d0eb457e3b97598a9 | 10,751 | py | Python | UniGrammar/tools/regExps/python/prelifter.py | UniGrammar/UniGrammar.py | 560152ff5ff3f0651171044f6b5046fd8d895960 | [
"Unlicense"
] | 2 | 2020-06-17T16:57:23.000Z | 2022-02-24T13:29:01.000Z | UniGrammar/tools/regExps/python/prelifter.py | KOLANICH/UniGrammar.py | d83f2f605073898b454868b98e2ecdefc4d9f7ca | [
"Unlicense"
] | null | null | null | UniGrammar/tools/regExps/python/prelifter.py | KOLANICH/UniGrammar.py | d83f2f605073898b454868b98e2ecdefc4d9f7ca | [
"Unlicense"
] | null | null | null | import sre_constants as sc
import sre_parse as sp
import typing
import unicodedata
from pprint import pprint
from RichConsole import groups, rsjoin
from .knowledge import CAPTURE_GROUP, LITERAL_STR
class RXASTNode:
"""Current AST generated by sre_parse is badly structured and doesn't suit well for our purposes. So... | 27.217722 | 287 | 0.728583 | 1,372 | 10,751 | 5.466472 | 0.239067 | 0.026667 | 0.020533 | 0.032 | 0.200267 | 0.143467 | 0.0816 | 0.0568 | 0.0568 | 0.0352 | 0 | 0.000887 | 0.161101 | 10,751 | 394 | 288 | 27.286802 | 0.830691 | 0.203237 | 0 | 0.29249 | 0 | 0 | 0.040235 | 0 | 0 | 0 | 0 | 0 | 0.003953 | 1 | 0.166008 | false | 0.067194 | 0.027668 | 0.063241 | 0.592885 | 0.011858 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
4747b2ce44f8edfeed9025dd5538e36cd606b1dc | 436 | py | Python | labs/lab10/demo/src/cpu_multiprocessing.py | Alvant/AdvancedPython2020 | c5a6439f100ff6a32168366f6a74e5ca0e79d0bc | [
"MIT"
] | null | null | null | labs/lab10/demo/src/cpu_multiprocessing.py | Alvant/AdvancedPython2020 | c5a6439f100ff6a32168366f6a74e5ca0e79d0bc | [
"MIT"
] | 7 | 2021-09-12T17:15:27.000Z | 2022-03-01T17:50:18.000Z | labs/lab10/demo/src/cpu_multiprocessing.py | Alvant/AdvancedPython | b036d124d0ccaa325b356db1a189e6ef10e1f21f | [
"MIT"
] | 2 | 2021-09-26T10:00:25.000Z | 2021-11-07T19:01:33.000Z | import multiprocessing
import time
from typing import List
from constants import CPU_BIG_NUMBERS
from utils import show_execution_time
def cpu_bound(number: int) -> int:
return sum(i * i for i in range(number))
def find_sums(numbers: List[int]) -> None:
with multiprocessing.Pool() as pool:
pool.ma... | 20.761905 | 64 | 0.743119 | 65 | 436 | 4.676923 | 0.538462 | 0.039474 | 0.085526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169725 | 436 | 20 | 65 | 21.8 | 0.839779 | 0 | 0 | 0 | 0 | 0 | 0.018349 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.416667 | 0.083333 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
474d460f8c93e195c3909578035ee5726563b9b7 | 773 | py | Python | flox_aws/configure.py | getflox/flox-aws | 9642e291afa3ddedd9eed566b43a640e9bb0c537 | [
"MIT"
] | null | null | null | flox_aws/configure.py | getflox/flox-aws | 9642e291afa3ddedd9eed566b43a640e9bb0c537 | [
"MIT"
] | null | null | null | flox_aws/configure.py | getflox/flox-aws | 9642e291afa3ddedd9eed566b43a640e9bb0c537 | [
"MIT"
] | null | null | null | from floxcore.config import Configuration, ParamDefinition
class AWSConfiguration(Configuration):
def parameters(self):
return (
ParamDefinition("region", "AWS Default region"),
ParamDefinition("role_arn", "Role (ARN) to be assumed", default="", filter_empty=False),
Par... | 36.809524 | 113 | 0.630013 | 79 | 773 | 6.088608 | 0.493671 | 0.04158 | 0.10395 | 0.095634 | 0.158004 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.245796 | 773 | 20 | 114 | 38.65 | 0.825043 | 0 | 0 | 0.125 | 0 | 0 | 0.239327 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0.0625 | 0.0625 | 0.125 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 2 |
475312b91a3851e28b34370218eea8c022b8aff7 | 5,598 | py | Python | {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/settings/base.py | mistalaba/cookiecutter-simple-django | 979780b3dea3b0ab51e780cc7d98e9ba66004b09 | [
"BSD-3-Clause"
] | null | null | null | {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/settings/base.py | mistalaba/cookiecutter-simple-django | 979780b3dea3b0ab51e780cc7d98e9ba66004b09 | [
"BSD-3-Clause"
] | null | null | null | {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/settings/base.py | mistalaba/cookiecutter-simple-django | 979780b3dea3b0ab51e780cc7d98e9ba66004b09 | [
"BSD-3-Clause"
] | 1 | 2021-10-21T01:45:32.000Z | 2021-10-21T01:45:32.000Z | import os
import sys
# PATH vars
BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
ROOT_DIR = lambda *x: os.path.join(BASE_DIR, *x)
APPS_DIR = os.path.join(ROOT_DIR(), "apps")
sys.path.insert(0, APPS_DIR)
# SECURITY WARNING: keep the secret key used in production secret!
SECRET... | 29.463158 | 89 | 0.642551 | 532 | 5,598 | 6.635338 | 0.368421 | 0.084703 | 0.052975 | 0.052691 | 0.160623 | 0.143343 | 0.012748 | 0.012748 | 0 | 0 | 0 | 0.003593 | 0.204537 | 5,598 | 189 | 90 | 29.619048 | 0.789131 | 0.046981 | 0 | 0.125786 | 0 | 0 | 0.534923 | 0.389598 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.069182 | 0.025157 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
475531486c43c1c7dffcddd44fa86cc2df76cfd3 | 783 | py | Python | alimama/alimama/items.py | Yoochao/tbk | b3a6aff905cf9d7dbe161813e1bbe968d86b5320 | [
"Apache-2.0"
] | null | null | null | alimama/alimama/items.py | Yoochao/tbk | b3a6aff905cf9d7dbe161813e1bbe968d86b5320 | [
"Apache-2.0"
] | null | null | null | alimama/alimama/items.py | Yoochao/tbk | b3a6aff905cf9d7dbe161813e1bbe968d86b5320 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class AlimamaItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
url = scrapy.Field()
img = scrapy.F... | 26.1 | 51 | 0.67433 | 105 | 783 | 4.847619 | 0.447619 | 0.345776 | 0.176817 | 0.141454 | 0.278978 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001605 | 0.204342 | 783 | 29 | 52 | 27 | 0.815409 | 0.260536 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.055556 | 0.055556 | 0 | 0.944444 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
476520ec9bb115901083a55e2fef94cc44775b6c | 2,453 | py | Python | azure-mgmt/tests/test_graphrbac.py | HydAu/AzureSDKForPython | 5cbe34e9e0b8ea1faacc9f205633ccc0b885c0f3 | [
"Apache-2.0"
] | null | null | null | azure-mgmt/tests/test_graphrbac.py | HydAu/AzureSDKForPython | 5cbe34e9e0b8ea1faacc9f205633ccc0b885c0f3 | [
"Apache-2.0"
] | null | null | null | azure-mgmt/tests/test_graphrbac.py | HydAu/AzureSDKForPython | 5cbe34e9e0b8ea1faacc9f205633ccc0b885c0f3 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
#-------------------------------------------------------------------------
# Copyright (c) Microsoft. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#... | 37.738462 | 92 | 0.622911 | 256 | 2,453 | 5.8125 | 0.53125 | 0.040323 | 0.063844 | 0.061828 | 0.146505 | 0.102151 | 0.052419 | 0 | 0 | 0 | 0 | 0.004642 | 0.209539 | 2,453 | 64 | 93 | 38.328125 | 0.762249 | 0.32817 | 0 | 0.054054 | 0 | 0 | 0.068712 | 0 | 0 | 0 | 0 | 0 | 0.108108 | 0 | null | null | 0.081081 | 0.108108 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
477431852e85302c53a80c1bc87e296848214e08 | 267 | py | Python | scripts/turnOnOffGPIO.py | yomboprime/RaspiGarage | c6bd7b92066ec087cc0d59afe6664e8ae5cb46ed | [
"MIT"
] | null | null | null | scripts/turnOnOffGPIO.py | yomboprime/RaspiGarage | c6bd7b92066ec087cc0d59afe6664e8ae5cb46ed | [
"MIT"
] | null | null | null | scripts/turnOnOffGPIO.py | yomboprime/RaspiGarage | c6bd7b92066ec087cc0d59afe6664e8ae5cb46ed | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
import sys
if not os.getegid() == 0:
sys.exit( 'Script must be run as root' )
from pyA20.gpio import gpio
from pyA20.gpio import port
pin = port.PA12
gpio.init()
gpio.setcfg(pin, gpio.OUTPUT)
gpio.output(pin, int(sys.argv[1])) | 16.6875 | 44 | 0.700375 | 48 | 267 | 3.895833 | 0.625 | 0.096257 | 0.139037 | 0.203209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0.161049 | 267 | 16 | 45 | 16.6875 | 0.799107 | 0.074906 | 0 | 0 | 0 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.