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
e6b6e5bd6119c42b4ffb34bf7515d4e2d93bbdb7
3,475
py
Python
scripts/artifacts/knowCnotes.py
mastenp/iLEAPP
ee40ef7505b36d0b9b04131f284a9d4d036514a5
[ "MIT" ]
1
2020-10-06T20:28:03.000Z
2020-10-06T20:28:03.000Z
scripts/artifacts/knowCnotes.py
mastenp/iLEAPP
ee40ef7505b36d0b9b04131f284a9d4d036514a5
[ "MIT" ]
null
null
null
scripts/artifacts/knowCnotes.py
mastenp/iLEAPP
ee40ef7505b36d0b9b04131f284a9d4d036514a5
[ "MIT" ]
null
null
null
import glob import os import pathlib import plistlib import sqlite3 import scripts.artifacts.artGlobals #use to get iOS version -> iOSversion = scripts.artifacts.artGlobals.versionf from scripts.artifact_report import ArtifactHtmlReport from scripts.ilapfuncs import logfunc, tsv, timeline, is_platform_windows from sc...
44.551282
236
0.681151
386
3,475
5.989637
0.388601
0.060554
0.134948
0.070069
0
0
0
0
0
0
0
0.026257
0.221871
3,475
77
237
45.12987
0.828772
0.021871
0
0.028986
0
0.014493
0.614185
0.208064
0
0
0
0
0
1
0.014493
false
0
0.130435
0
0.15942
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e6bb4326f0cf5c8ca0e3ad2023276f1779b59887
663
py
Python
apps/authentication/urls.py
kharann/onlineweb4
1130128c6233b623780779a25934ea73ef62c264
[ "MIT" ]
null
null
null
apps/authentication/urls.py
kharann/onlineweb4
1130128c6233b623780779a25934ea73ef62c264
[ "MIT" ]
null
null
null
apps/authentication/urls.py
kharann/onlineweb4
1130128c6233b623780779a25934ea73ef62c264
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.conf.urls import url from apps.api.utils import SharedAPIRootRouter from apps.authentication import views urlpatterns = [ url(r'^login/$', views.login, name='auth_login'), url(r'^logout/$', views.logout, name='auth_logout'), url(r'^register/$', views.register, name='au...
33.15
89
0.686275
90
663
4.944444
0.377778
0.053933
0.031461
0.053933
0
0
0
0
0
0
0
0.003407
0.11463
663
19
90
34.894737
0.754685
0.042232
0
0
0
0
0.278481
0.085443
0
0
0
0
0
1
0
false
0.076923
0.230769
0
0.230769
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
0
0
0
1
e6bdb7f6d5542ac63a21faade0d9c13911a5812b
985
py
Python
Scripts5/Script36.py
jonfisik/ScriptsPython
1d15221b3a41a06a189e3e04a5241fa63df9cf3f
[ "MIT" ]
1
2020-09-05T22:25:36.000Z
2020-09-05T22:25:36.000Z
Scripts5/Script36.py
jonfisik/ScriptsPython
1d15221b3a41a06a189e3e04a5241fa63df9cf3f
[ "MIT" ]
null
null
null
Scripts5/Script36.py
jonfisik/ScriptsPython
1d15221b3a41a06a189e3e04a5241fa63df9cf3f
[ "MIT" ]
null
null
null
'''Escreva um programa para aprovar o empréstimo bancário para a compra de uma casa. O programa vai perguntar o valor da casa, o salário do comprador e em quantos anos ele vai pagar. Calcule o valor da prestação mensal, sabendo que ela não pode exceder 30% do salário ou então o empréstimo será negado.''' print('=+=+=+=...
57.941176
305
0.658883
151
985
4.298013
0.549669
0.027735
0.03698
0.03698
0
0
0
0
0
0
0
0.018116
0.159391
985
17
306
57.941176
0.7657
0.303553
0
0.133333
0
0
0.50514
0
0
0
0
0
0
1
0
false
0
0
0
0
0.466667
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
0
0
1
0
1
e6cf32a054a5a331d9967a80f50ec967008d4a81
345
py
Python
setup.py
tsukasa-au/scripts
135344c4582b26b3e4c3d1d632c66751fb04361c
[ "MIT" ]
null
null
null
setup.py
tsukasa-au/scripts
135344c4582b26b3e4c3d1d632c66751fb04361c
[ "MIT" ]
null
null
null
setup.py
tsukasa-au/scripts
135344c4582b26b3e4c3d1d632c66751fb04361c
[ "MIT" ]
null
null
null
#!/usr/bin/env python from setuptools import setup setup( name='tsukasa-au-scripts', version='1.0', description='A random collection of useful scripts', license='apache2', install_requires = [ 'jinja2', 'absl-py', 'beautifulsoup4', ], scripts = [ 'table2markdown/tab...
18.157895
56
0.608696
35
345
5.971429
0.857143
0
0
0
0
0
0
0
0
0
0
0.027132
0.252174
345
18
57
19.166667
0.782946
0.057971
0
0.133333
0
0
0.382716
0.098765
0
0
0
0
0
1
0
true
0
0.066667
0
0.066667
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
0
0
0
1
e6cfe1a64a357762c3d34a2f29c225edf857e9e5
331
py
Python
main.py
FlorSousa/AngiosPy
3264393e565d36ddaeec253c35b041ed77066b84
[ "MIT" ]
null
null
null
main.py
FlorSousa/AngiosPy
3264393e565d36ddaeec253c35b041ed77066b84
[ "MIT" ]
null
null
null
main.py
FlorSousa/AngiosPy
3264393e565d36ddaeec253c35b041ed77066b84
[ "MIT" ]
1
2020-11-26T21:50:39.000Z
2020-11-26T21:50:39.000Z
#from ChaveA import* #from ChaveB import* #from ChaveC import* rodando = True while(rodando): print("CHAVE DE IDENTIFICAÇÃO") chave=input("A. flores aclamídeas ou monoclamídeas......CHAVE A\nB. UHWDWHI.......CHAVE B\nC. JFSDKJFAKF......CHAVE C\nEscolha a chave: ") if chave=="A": encontraFamíli...
27.583333
142
0.664653
41
331
5.365854
0.658537
0.090909
0
0
0
0
0
0
0
0
0
0
0.175227
331
11
143
30.090909
0.805861
0.172205
0
0
0
0.166667
0.538745
0.166052
0
0
0
0
0
0
null
null
0
0
null
null
0.166667
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
0
0
1
e6d20a8be4e454791b95fa16875b46513d61f241
405
py
Python
saltpylint/py3modernize/fixes/fix_dict_salt_six.py
dhiltonp/salt-pylint
5da4c53c1a7b083cd0e4c0e072222a1b94026308
[ "Apache-2.0" ]
26
2015-03-20T01:17:08.000Z
2020-04-04T13:52:19.000Z
saltpylint/py3modernize/fixes/fix_dict_salt_six.py
dhiltonp/salt-pylint
5da4c53c1a7b083cd0e4c0e072222a1b94026308
[ "Apache-2.0" ]
23
2015-01-31T01:26:02.000Z
2021-06-02T17:16:08.000Z
saltpylint/py3modernize/fixes/fix_dict_salt_six.py
dhiltonp/salt-pylint
5da4c53c1a7b083cd0e4c0e072222a1b94026308
[ "Apache-2.0" ]
29
2015-02-26T17:13:25.000Z
2021-03-12T00:25:33.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import from libmodernize.fixes import fix_dict_six class FixDictSaltSix(fix_dict_six.FixDictSix): def transform(self, node, results): method = results['method'][0] method_name = method.value if method_name not in ('keys', 'items', '...
28.928571
74
0.683951
51
405
5.176471
0.647059
0.113636
0.075758
0
0
0
0
0
0
0
0
0.006154
0.197531
405
13
75
31.153846
0.806154
0.051852
0
0
0
0
0.065445
0
0
0
0
0
0
1
0.125
false
0
0.25
0
0.625
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
0
1
0
0
1
e6d2eaabd560dcf54dce92ae13fc8d95cc87c27b
1,728
py
Python
ymir/backend/src/pymir-controller/controller/utils/invoker_mapping.py
under-chaos/ymir
83e98186b23429e6027b187cdade247f5f93e5de
[ "Apache-2.0" ]
1
2022-01-12T03:12:47.000Z
2022-01-12T03:12:47.000Z
ymir/backend/src/pymir-controller/controller/utils/invoker_mapping.py
under-chaos/ymir
83e98186b23429e6027b187cdade247f5f93e5de
[ "Apache-2.0" ]
null
null
null
ymir/backend/src/pymir-controller/controller/utils/invoker_mapping.py
under-chaos/ymir
83e98186b23429e6027b187cdade247f5f93e5de
[ "Apache-2.0" ]
null
null
null
from controller.invoker import ( invoker_task_factory, invoker_cmd_branch_list, invoker_cmd_branch_checkout, invoker_cmd_branch_commit, invoker_cmd_branch_create, invoker_cmd_branch_delete, invoker_cmd_filter, invoker_cmd_inference, invoker_cmd_init, invoker_cmd_log, invoker_...
42.146341
90
0.834491
220
1,728
5.977273
0.218182
0.235741
0.138403
0.057795
0.253232
0.227376
0
0
0
0
0
0.011757
0.114005
1,728
40
91
43.2
0.847159
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.052632
0
0.052632
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
0
0
0
1
e6e0928f79bb8be29fcc3fc9643c2b4b2c4115cb
2,650
py
Python
src/warehouse/goodreads_warehouse_queries.py
Nikhil19Joshi/GoodReads_ETL_Data_Pipeline
23d0a764179bfe2cb69a103697f7e1dffd193626
[ "MIT" ]
984
2020-02-21T23:11:40.000Z
2022-03-31T23:16:03.000Z
src/warehouse/goodreads_warehouse_queries.py
Nikhil19Joshi/GoodReads_ETL_Data_Pipeline
23d0a764179bfe2cb69a103697f7e1dffd193626
[ "MIT" ]
null
null
null
src/warehouse/goodreads_warehouse_queries.py
Nikhil19Joshi/GoodReads_ETL_Data_Pipeline
23d0a764179bfe2cb69a103697f7e1dffd193626
[ "MIT" ]
142
2020-02-23T10:58:56.000Z
2022-03-28T04:39:51.000Z
import configparser from pathlib import Path config = configparser.ConfigParser() config.read_file(open(f"{Path(__file__).parents[0]}/warehouse_config.cfg")) warehouse_schema = config.get('WAREHOUSE', 'SCHEMA') create_warehouse_schema = "CREATE SCHEMA IF NOT EXISTS {};".format(warehouse_schema) drop_authors_table =...
26.237624
110
0.752453
335
2,650
5.632836
0.253731
0.09539
0.100159
0.066243
0.268151
0.198198
0.140964
0.140964
0.140964
0.073132
0
0.002274
0.170189
2,650
101
110
26.237624
0.855844
0
0
0.153846
0
0
0.686156
0.05281
0
0
0
0
0
1
0
false
0
0.021978
0
0.021978
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e6e21668ce58353b8460063f4d84eea38bed50a8
1,013
py
Python
tests/sentry/models/test_releasefile.py
AlexWayfer/sentry
ef935cda2b2e960bd602fda590540882d1b0712d
[ "BSD-3-Clause" ]
4
2019-05-27T13:55:07.000Z
2021-03-30T07:05:09.000Z
tests/sentry/models/test_releasefile.py
AlexWayfer/sentry
ef935cda2b2e960bd602fda590540882d1b0712d
[ "BSD-3-Clause" ]
99
2019-05-20T14:16:33.000Z
2021-01-19T09:25:15.000Z
tests/sentry/models/test_releasefile.py
AlexWayfer/sentry
ef935cda2b2e960bd602fda590540882d1b0712d
[ "BSD-3-Clause" ]
2
2021-01-26T09:53:39.000Z
2022-03-22T09:01:47.000Z
from __future__ import absolute_import from sentry.models import ReleaseFile from sentry.testutils import TestCase class ReleaseFileTestCase(TestCase): def test_normalize(self): n = ReleaseFile.normalize assert n('http://example.com') == [ 'http://example.com', '~', ...
27.378378
65
0.502468
113
1,013
4.451327
0.389381
0.139165
0.194831
0.119284
0.377734
0.335984
0.335984
0.212724
0.125249
0.125249
0
0
0.345508
1,013
36
66
28.138889
0.758673
0.148075
0
0.178571
0
0
0.278231
0
0
0
0
0
0.178571
1
0.035714
false
0
0.107143
0
0.178571
0
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
0
0
0
0
0
0
0
0
0
1
e6eada94da3d9498ff565f5e2b0dfa5495479db7
1,893
py
Python
dephell_links/_path.py
espdev/dephell_links
543093d6cc5af38b23f2eadb3d3dae4a3b6fcb23
[ "MIT" ]
null
null
null
dephell_links/_path.py
espdev/dephell_links
543093d6cc5af38b23f2eadb3d3dae4a3b6fcb23
[ "MIT" ]
null
null
null
dephell_links/_path.py
espdev/dephell_links
543093d6cc5af38b23f2eadb3d3dae4a3b6fcb23
[ "MIT" ]
null
null
null
# built-in import os.path from hashlib import sha256 from urllib.parse import unquote from typing import Optional # app from ._cached_property import cached_property class _PathLink: def __init__(self, link: str): self.short = link.split('#')[0] self.long = link @classmethod def parse(cl...
24.269231
73
0.575806
226
1,893
4.699115
0.376106
0.039548
0.056497
0.067797
0.136535
0.102637
0.073446
0
0
0
0
0.009029
0.29794
1,893
77
74
24.584416
0.790068
0.068146
0
0.166667
0
0
0.030148
0
0
0
0
0
0
1
0.166667
false
0
0.092593
0.055556
0.537037
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
0
1
0
0
1
e6ec13fe75bfa56a811d3ac4f91495f4dc63f0f3
679
py
Python
aberowlweb/tests/conftest.py
bio-ontology-research-group/aberowlweb
3bfdb8d7119b41d9e38b3ecea2fe59b1ce889d62
[ "CC-BY-4.0" ]
4
2018-12-09T07:48:28.000Z
2020-08-05T11:53:56.000Z
aberowlweb/tests/conftest.py
bio-ontology-research-group/aberowlweb
3bfdb8d7119b41d9e38b3ecea2fe59b1ce889d62
[ "CC-BY-4.0" ]
55
2017-11-02T10:58:09.000Z
2022-02-17T14:12:33.000Z
aberowlweb/tests/conftest.py
bio-ontology-research-group/aberowlweb
3bfdb8d7119b41d9e38b3ecea2fe59b1ce889d62
[ "CC-BY-4.0" ]
4
2018-12-09T07:48:31.000Z
2019-09-26T13:58:44.000Z
import pytest from django.db import connections import psycopg2 def run_sql(sql): conn = psycopg2.connect(host="localhost", database='postgres', user="postgres", password="111") conn.autocommit = True cur = conn.cursor() cur.execute(sql) conn.close() @pytest.yield_fixture(scope='session') def ...
23.413793
100
0.71134
89
679
5.258427
0.52809
0.051282
0.094017
0.059829
0.07265
0
0
0
0
0
0
0.008929
0.175258
679
29
101
23.413793
0.826786
0
0
0
0
0
0.252941
0
0
0
0
0
0
1
0.105263
false
0.052632
0.210526
0
0.315789
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
0
0
0
1
e6f90e47b5a2403f79d7db8333398c161f5d337e
1,997
py
Python
SampleFramework12/v1.02/Scripts/FixSunTempleRoughnessMaps.py
BalazsJako/DXRPathTracer
948693d73c7f9474d98482e99e85416750b29286
[ "MIT" ]
456
2018-10-29T03:51:23.000Z
2022-03-21T02:26:20.000Z
SampleFramework12/v1.02/Scripts/FixSunTempleRoughnessMaps.py
BalazsJako/DXRPathTracer
948693d73c7f9474d98482e99e85416750b29286
[ "MIT" ]
8
2018-10-31T05:31:19.000Z
2020-03-31T21:00:27.000Z
SampleFramework12/v1.02/Scripts/FixSunTempleRoughnessMaps.py
BalazsJako/DXRPathTracer
948693d73c7f9474d98482e99e85416750b29286
[ "MIT" ]
48
2018-10-29T05:36:41.000Z
2022-02-10T23:42:25.000Z
import maya.cmds as cmds def connectTex(material): conn = cmds.listConnections(material+'.specularColor',type='file') if not conn: return color = cmds.getAttr(conn[0] + '.fileTextureName') roughness = color[:color.rfind('SR.dds')] + 'R.dds' # print roughness if not os.path.exists(rou...
39.156863
214
0.669504
225
1,997
5.942222
0.484444
0.041137
0.053852
0.046372
0
0
0
0
0
0
0
0.005611
0.196795
1,997
50
215
39.94
0.82793
0.205809
0
0.0625
0
0
0.244924
0
0
0
0
0
0
0
null
null
0
0.03125
null
null
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
1
0
0
0
0
0
0
0
0
1
e6fd9038c9c0e8427f1a486fb77f476dcee4dd07
1,778
py
Python
01_Tutorials/06_MCTS_Node/mcts/node.py
CesMak/gym_schafkopf
aa2b49ef264adefdea443ed57464653658e35fdf
[ "BSD-3-Clause" ]
1
2020-09-15T06:44:47.000Z
2020-09-15T06:44:47.000Z
01_Tutorials/06_MCTS_Node/mcts/node.py
CesMak/gym_schafkopf
aa2b49ef264adefdea443ed57464653658e35fdf
[ "BSD-3-Clause" ]
null
null
null
01_Tutorials/06_MCTS_Node/mcts/node.py
CesMak/gym_schafkopf
aa2b49ef264adefdea443ed57464653658e35fdf
[ "BSD-3-Clause" ]
null
null
null
import numpy as np class Node: ''' pretty much copy paste from https://github.com/Taschee/schafkopf/blob/master/schafkopf/players/uct_player.py ''' def __init__(self, parent, previous_action, game_state, player_hands, allowed_actions): self.parent = parent self.previous_action = previous_action sel...
26.939394
110
0.688414
253
1,778
4.640316
0.300395
0.061329
0.07155
0.051107
0.143101
0.07155
0
0
0
0
0
0.00779
0.205849
1,778
65
111
27.353846
0.823654
0.060742
0
0.22449
0
0
0.006031
0
0
0
0
0
0
1
0.22449
false
0
0.020408
0.020408
0.510204
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
0
0
0
1
fc0302d31ddd4dd28eba0408bf0e30483d94111a
411
py
Python
hello.py
ellis2323/flask
27fbf419dc15b3d80d84a5d7878a3551782e4315
[ "MIT" ]
null
null
null
hello.py
ellis2323/flask
27fbf419dc15b3d80d84a5d7878a3551782e4315
[ "MIT" ]
null
null
null
hello.py
ellis2323/flask
27fbf419dc15b3d80d84a5d7878a3551782e4315
[ "MIT" ]
null
null
null
from flask import Flask, request app = Flask(__name__) Entries = [] @app.route("/") def hello(): return "API de tonio (qui n'a pas honte)" @app.route("/entry/create", methods=["POST"]) def createEntry(): """Create Entry""" request_json = request.get_json() return 'bite' @app.route("/<int:entry_id>",...
21.631579
46
0.625304
57
411
4.350877
0.578947
0.096774
0
0
0
0
0
0
0
0
0
0
0.172749
411
19
47
21.631579
0.729412
0.041363
0
0
0
0
0.216146
0
0
0
0
0
0
1
0.230769
false
0
0.076923
0.076923
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
1
0
0
0
0
0
0
0
1
fc03defb0d4d674265828a150b5dfe980cc7de5b
3,340
py
Python
RunLogDao.py
davgra04/RunLogDesktop
4eb52071f33d37a597481dd272233dee5041b837
[ "MIT" ]
null
null
null
RunLogDao.py
davgra04/RunLogDesktop
4eb52071f33d37a597481dd272233dee5041b837
[ "MIT" ]
null
null
null
RunLogDao.py
davgra04/RunLogDesktop
4eb52071f33d37a597481dd272233dee5041b837
[ "MIT" ]
null
null
null
from __future__ import print_function import MySQLdb as mdb import sys, pprint from datetime import date import RunEntry # Object for accessing the runlog database class RunLogDao: def __init__(self, testing=False): self.db_testing = testing return def setConnectionInfo(self,...
28.547009
195
0.506287
381
3,340
4.312336
0.291339
0.062082
0.033475
0.027389
0.287888
0.261108
0.213025
0.213025
0.180158
0.180158
0
0.015253
0.371856
3,340
116
196
28.793103
0.767874
0.035329
0
0.324324
0
0.027027
0.130645
0
0
0
0
0
0
0
null
null
0.027027
0.067568
null
null
0.081081
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
0
0
1
fc0848449f018dec273d373f35394ed1caa15694
947
py
Python
tests/sonarr/domain/test_series.py
jblakeney/nzbclients
848ea35e9d1c2be5ee554d79953388c9d3a7d4d7
[ "MIT" ]
null
null
null
tests/sonarr/domain/test_series.py
jblakeney/nzbclients
848ea35e9d1c2be5ee554d79953388c9d3a7d4d7
[ "MIT" ]
null
null
null
tests/sonarr/domain/test_series.py
jblakeney/nzbclients
848ea35e9d1c2be5ee554d79953388c9d3a7d4d7
[ "MIT" ]
null
null
null
import pytest from marshmallow import ValidationError from nzbclients.nzbdrone.sonarr.domain.series import SeriesSchema def test_series_serialization(series_json): schema = SeriesSchema() result = schema.load(series_json) # TODO: Test some fields, add more later assert result.title == "Marvel's Dare...
28.69697
65
0.719113
114
947
5.850877
0.421053
0.143928
0.125937
0.089955
0.224888
0.224888
0.125937
0.125937
0.125937
0
0
0.019206
0.17529
947
32
66
29.59375
0.834827
0.081309
0
0.142857
0
0
0.124567
0
0
0
0
0.03125
0.380952
1
0.142857
false
0
0.142857
0
0.285714
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
1
0
0
0
0
0
0
0
0
0
0
1
fc0f6f5da79d3bc9bb7df57b0d4e28d1f573ffea
1,426
py
Python
api/user_event_log/models.py
cad106uk/market-access-api
a357c33bbec93408b193e598a5628634126e9e99
[ "MIT" ]
null
null
null
api/user_event_log/models.py
cad106uk/market-access-api
a357c33bbec93408b193e598a5628634126e9e99
[ "MIT" ]
null
null
null
api/user_event_log/models.py
cad106uk/market-access-api
a357c33bbec93408b193e598a5628634126e9e99
[ "MIT" ]
null
null
null
from django.conf import settings from django.core.serializers.json import DjangoJSONEncoder from django.db import models from api.user_event_log.constants import USER_EVENT_TYPES class UserEvent(models.Model): """ User event. Used to keep a record of specific events that have occurred while the user was...
34.780488
96
0.698457
193
1,426
5.010363
0.590674
0.037229
0.031024
0
0
0
0
0
0
0
0
0.003543
0.208275
1,426
40
97
35.65
0.851196
0.253156
0
0
0
0
0.105058
0.024319
0
0
0
0
0
1
0.041667
false
0
0.166667
0
0.583333
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
0
1
0
0
1
fc10db898f413339670c423758d1e771629e94c2
1,222
py
Python
entitypedia/labeling/task.py
chakki-works/entitypedia
163dc460e69bb848c77168caddaf4e95b990f3bc
[ "MIT" ]
14
2018-09-08T08:50:08.000Z
2021-06-03T08:36:15.000Z
entitypedia/labeling/task.py
chakki-works/entitypedia
163dc460e69bb848c77168caddaf4e95b990f3bc
[ "MIT" ]
9
2017-12-01T12:07:47.000Z
2022-02-09T23:27:09.000Z
entitypedia/labeling/task.py
chakki-works/entitypedia
163dc460e69bb848c77168caddaf4e95b990f3bc
[ "MIT" ]
null
null
null
""" Task runner. """ import argparse import os import numpy as np from gensim.models.keyedvectors import KeyedVectors from sklearn.linear_model import SGDClassifier from entitypedia.labeling.loader import load from entitypedia.labeling.preprocess import Preprocessor from entitypedia.labeling.trainer import Trainer ...
29.804878
100
0.740589
154
1,222
5.694805
0.422078
0.027366
0.078677
0.038769
0.063854
0.063854
0.063854
0
0
0
0
0.000962
0.149755
1,222
40
101
30.55
0.843118
0.087561
0
0
0
0
0.081522
0.019022
0
0
0
0
0
1
0.041667
false
0
0.333333
0
0.375
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
0
0
0
1
fc118a1411679e9e94ee291f851fec8ca4503a5f
4,509
py
Python
python/featgraph/op/vanilla_sddmm.py
Huyuwei/FeatGraph
f0a380f276f27cdc00f8bc1706a722faf8342474
[ "Apache-2.0" ]
59
2020-11-14T01:13:20.000Z
2022-01-30T11:12:46.000Z
python/featgraph/op/vanilla_sddmm.py
cornell-zhang/FeatGraph
f0a380f276f27cdc00f8bc1706a722faf8342474
[ "Apache-2.0" ]
8
2020-12-01T02:09:00.000Z
2021-11-03T22:09:18.000Z
python/featgraph/op/vanilla_sddmm.py
cornell-zhang/FeatGraph
f0a380f276f27cdc00f8bc1706a722faf8342474
[ "Apache-2.0" ]
11
2020-11-15T14:54:34.000Z
2021-10-30T12:41:22.000Z
import tvm from tvm import te from tvm.topi.util import get_const_tuple def vanilla_sddmm(SrcFeat, DstFeat, Adj_row_indices, Adj_col_indices, num_feat_partitions=1): # TODO:apply parallelization in cpu schedule # TODO: support tuning both...
44.643564
131
0.655134
635
4,509
4.377953
0.20315
0.040288
0.085612
0.061511
0.553957
0.43813
0.392806
0.298921
0.220144
0.164029
0
0.010273
0.2444
4,509
100
132
45.09
0.805694
0.175427
0
0.278689
0
0
0.120154
0
0
0
0
0.02
0.081967
1
0.098361
false
0
0.04918
0.032787
0.245902
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
1
0
0
0
0
0
0
0
0
0
0
1
fc11dbc78c52748f74df3538afde2cfadea6f76f
3,495
py
Python
tests/toranj/test-031-meshcop-joiner-commissioner.py
ltaoti/openthread
b24192267d56c9a175739d8b2a285bc4b701deaf
[ "BSD-3-Clause" ]
1
2020-01-30T06:36:50.000Z
2020-01-30T06:36:50.000Z
tests/toranj/test-031-meshcop-joiner-commissioner.py
ltaoti/openthread
b24192267d56c9a175739d8b2a285bc4b701deaf
[ "BSD-3-Clause" ]
null
null
null
tests/toranj/test-031-meshcop-joiner-commissioner.py
ltaoti/openthread
b24192267d56c9a175739d8b2a285bc4b701deaf
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) 2019, The OpenThread Authors. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright # ...
37.180851
120
0.60515
401
3,495
5.167082
0.476309
0.019305
0.016409
0.022201
0.108108
0.065637
0.065637
0.065637
0.065637
0.065637
0
0.006903
0.129614
3,495
93
121
37.580645
0.674227
0.756509
0
0
0
0
0.044721
0
0
0
0
0
0
0
null
null
0.04
0.12
null
null
0.12
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
0
0
1
fc14843cd572d3015f795c41c421eb709ce09c5e
252
py
Python
week_05/render_j2_v3.py
jmmey/pynetauto
75ef9e83cf1eba1334784be465b96302121f9fa3
[ "Apache-2.0" ]
null
null
null
week_05/render_j2_v3.py
jmmey/pynetauto
75ef9e83cf1eba1334784be465b96302121f9fa3
[ "Apache-2.0" ]
null
null
null
week_05/render_j2_v3.py
jmmey/pynetauto
75ef9e83cf1eba1334784be465b96302121f9fa3
[ "Apache-2.0" ]
null
null
null
from jinja2 import Template my_template = """ This is some template with {{ my_var }}. It needs to be filled out using variable data. """ j2_obj = Template(my_template) rendered_text = j2_obj.render(my_var='Jinja2') print(rendered_text)
19.384615
46
0.714286
38
252
4.526316
0.657895
0.116279
0.209302
0
0
0
0
0
0
0
0
0.019512
0.186508
252
12
47
21
0.819512
0
0
0
0
0
0.428571
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0.111111
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
0
0
0
0
0
0
0
0
0
1
fc15921a4963b53cd7868da99fb707356e47a600
1,602
py
Python
sage/model_g_symbolic_integrator.py
bjdarrer/tf2-model-g-velocity
2d9078fa386911a11d6aa659091e1443ac671535
[ "MIT" ]
null
null
null
sage/model_g_symbolic_integrator.py
bjdarrer/tf2-model-g-velocity
2d9078fa386911a11d6aa659091e1443ac671535
[ "MIT" ]
null
null
null
sage/model_g_symbolic_integrator.py
bjdarrer/tf2-model-g-velocity
2d9078fa386911a11d6aa659091e1443ac671535
[ "MIT" ]
3
2020-11-09T19:49:22.000Z
2021-03-14T20:26:19.000Z
from sage.all import * G, X, Y, A, B, k2, k_2, k5 = var("G, X, Y, A, B, k2, k_2, k5") G0 = A*(k5 + k_2)/(k2*k5) X0 = A/k5 Y0 = B*k5/A g = G + G0 x = X + X0 y = Y + Y0 gx_flow = k_2*x - k2*g xy_flow = x*x*y - B*x v_G = A + gx_flow v_X = -gx_flow + xy_flow - k5 * x v_Y = -xy_flow t = var("t") coefs_a = var(",".join(...
33.375
93
0.570537
344
1,602
2.459302
0.200581
0.053191
0.035461
0.170213
0.399527
0.369976
0.35461
0.267139
0.222222
0.196217
0
0.040063
0.205368
1,602
48
94
33.375
0.624509
0
0
0
0
0.105263
0.179663
0.019339
0
0
0
0
0
1
0
false
0
0.026316
0
0.026316
0.078947
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
0
0
0
1
fc1880d018d3bc18b70107aa5954511496d60393
2,078
py
Python
batman/yaml_ordered_dict.py
RealGeeks/batman
ac61d193cbc6cc736f61ae8cf5e933a576b50698
[ "MIT" ]
1
2018-01-09T20:50:49.000Z
2018-01-09T20:50:49.000Z
batman/yaml_ordered_dict.py
RealGeeks/batman
ac61d193cbc6cc736f61ae8cf5e933a576b50698
[ "MIT" ]
1
2021-03-25T21:27:26.000Z
2021-03-25T21:27:26.000Z
batman/yaml_ordered_dict.py
RealGeeks/batman
ac61d193cbc6cc736f61ae8cf5e933a576b50698
[ "MIT" ]
1
2019-12-26T12:25:23.000Z
2019-12-26T12:25:23.000Z
import yaml import yaml.constructor # Note - snagged this from https://gist.github.com/enaeseth/844388 # Load YAML mappings as ordered dictionaries try: # included in standard lib from Python 2.7 from collections import OrderedDict except ImportError: # try importing the backported drop-in replacement ...
30.115942
94
0.637632
248
2,078
5.193548
0.447581
0.050466
0.037267
0.02795
0.088509
0.051242
0.051242
0.051242
0
0
0
0.010568
0.271415
2,078
68
95
30.558824
0.840159
0.105871
0
0.041667
0
0
0.149775
0.024212
0
0
0
0
0.020833
0
null
null
0
0.125
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
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
fc19c02a0c900880e52b35158d195bed61c5a293
976
py
Python
geopayment/providers/credo/provider.py
Lh4cKg/tbcpay
481ef6148defc9897643919f7c47ce78d149acbf
[ "MIT" ]
null
null
null
geopayment/providers/credo/provider.py
Lh4cKg/tbcpay
481ef6148defc9897643919f7c47ce78d149acbf
[ "MIT" ]
null
null
null
geopayment/providers/credo/provider.py
Lh4cKg/tbcpay
481ef6148defc9897643919f7c47ce78d149acbf
[ "MIT" ]
null
null
null
import json from time import time from typing import Dict, Union from geopayment.providers.credo.installment import Installment class BaseCredoProvider(object): def __init__(self) -> None: assert callable(self.merchant_id) is False, \ '`merchant_id` must be property, not callable' a...
23.238095
78
0.632172
100
976
6.08
0.5
0.098684
0.059211
0.055921
0.292763
0.210526
0.210526
0.210526
0
0
0
0
0.288934
976
41
79
23.804878
0.876081
0.112705
0
0.272727
0
0
0.221261
0
0
0
0
0
0.090909
1
0.136364
false
0.181818
0.181818
0
0.409091
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
0
0
0
1
fc1cf0d4caa48ac1096dbaa29368d7f543582920
11,844
py
Python
azure-mgmt-datafactory/azure/mgmt/datafactory/models/hd_insight_on_demand_linked_service.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
4
2016-06-17T23:25:29.000Z
2022-03-30T22:37:45.000Z
azure-mgmt-datafactory/azure/mgmt/datafactory/models/hd_insight_on_demand_linked_service.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
2
2016-09-30T21:40:24.000Z
2017-11-10T18:16:18.000Z
azure-mgmt-datafactory/azure/mgmt/datafactory/models/hd_insight_on_demand_linked_service.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
3
2016-05-03T20:49:46.000Z
2017-10-05T21:05:27.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
60.738462
731
0.72847
1,326
11,844
6.291855
0.171946
0.055016
0.018698
0.03428
0.19801
0.158576
0.13832
0.098406
0.076351
0.013424
0
0.000304
0.166582
11,844
194
732
61.051546
0.844899
0.480834
0
0
0
0
0.364112
0.198639
0
0
0
0
0
1
0.013333
false
0.066667
0.013333
0
0.066667
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
0
0
0
1
fc1dc0066d8bc6bce8b2f651427ba17bfb385cd8
16,631
py
Python
iotbx/cif/restraints.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
155
2016-11-23T12:52:16.000Z
2022-03-31T15:35:44.000Z
iotbx/cif/restraints.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
590
2016-12-10T11:31:18.000Z
2022-03-30T23:10:09.000Z
iotbx/cif/restraints.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
115
2016-11-15T08:17:28.000Z
2022-02-09T15:30:14.000Z
from __future__ import absolute_import, division, print_function from cctbx import sgtbx from cctbx import adp_restraints, geometry_restraints from cctbx.adp_restraints import adp_restraint_params from cctbx.array_family import flex from iotbx.cif import model import math from six.moves import range # http://www.iucr....
38.7669
82
0.686309
2,288
16,631
4.48951
0.064248
0.08859
0.031639
0.058411
0.798579
0.726149
0.676597
0.61322
0.553446
0.526869
0
0.009473
0.219289
16,631
428
83
38.857477
0.781654
0.006073
0
0.552058
0
0
0.154838
0.140437
0
0
0
0
0
1
0.031477
false
0
0.01937
0
0.079903
0.002421
0
0
0
null
0
0
0
0
1
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
1
fc1f8cb6c401906e2e5b88b502385476d4b40669
1,600
py
Python
pilotage/examples/python/Size/HTTPServerDemo.py
sosozhuang/old-repo
6b8a82b003fb426c82916f6c6a1f27dd436977db
[ "Apache-2.0" ]
null
null
null
pilotage/examples/python/Size/HTTPServerDemo.py
sosozhuang/old-repo
6b8a82b003fb426c82916f6c6a1f27dd436977db
[ "Apache-2.0" ]
null
null
null
pilotage/examples/python/Size/HTTPServerDemo.py
sosozhuang/old-repo
6b8a82b003fb426c82916f6c6a1f27dd436977db
[ "Apache-2.0" ]
null
null
null
#encoding=utf-8 ''' http server ''' from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer import io,shutil import urllib,time import getopt,string class MyRequestHandler(BaseHTTPRequestHandler): def do_GET(self): self.process(2) def do_POST(self): self.process(1) def do_PUT(sel...
25.396825
77
0.5475
172
1,600
5
0.494186
0.013953
0.052326
0.037209
0.044186
0
0
0
0
0
0
0.016667
0.325
1,600
62
78
25.806452
0.77963
0.0375
0
0.045455
0
0
0.074538
0
0
0
0
0
0
0
null
null
0.022727
0.090909
null
null
0.045455
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
0
0
1
fc2014a8c0bb2c5fdff5dafca0658af8da8c36f9
20,420
py
Python
DEenginePython/SC04.py
MITSustainableDesignLab/DistrictEnergyPlugIn
64ae27c5d24c05a9e737ab32802ae170393d15bc
[ "MIT" ]
null
null
null
DEenginePython/SC04.py
MITSustainableDesignLab/DistrictEnergyPlugIn
64ae27c5d24c05a9e737ab32802ae170393d15bc
[ "MIT" ]
9
2020-04-13T19:00:22.000Z
2020-05-07T15:21:19.000Z
DEenginePython/SC04.py
MITSustainableDesignLab/DistrictEnergyPlugIn
64ae27c5d24c05a9e737ab32802ae170393d15bc
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import sys # > > > Load Input Data [DYNAMIC INPUTS] < < < LoadData = pd.read_csv('C:/UMI/temp/Loads.csv') Output = LoadData #Reformatted Kuwait output to bypass the reformat section WeatherData = pd.read_csv('C:/UMI/temp/DryBulbData.csv') # > > > User-specified Parameters [DYNA...
54.892473
446
0.736827
2,704
20,420
5.314719
0.155695
0.009185
0.006819
0.014543
0.376244
0.276042
0.191706
0.133254
0.106673
0.086563
0
0.040782
0.095788
20,420
371
447
55.040431
0.737543
0.163075
0
0
0
0
0.290474
0.05659
0
0
0
0
0
0
null
null
0
0.012605
null
null
0.071429
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
0
0
1
fc2241e291563891a2d1f1d593487221fb4a754c
3,025
py
Python
xsdata/formats/dataclass/parsers/utils.py
pashashocky/xsdata
1cd681598d2235626d0e21716fc9fb885d26e351
[ "MIT" ]
null
null
null
xsdata/formats/dataclass/parsers/utils.py
pashashocky/xsdata
1cd681598d2235626d0e21716fc9fb885d26e351
[ "MIT" ]
null
null
null
xsdata/formats/dataclass/parsers/utils.py
pashashocky/xsdata
1cd681598d2235626d0e21716fc9fb885d26e351
[ "MIT" ]
null
null
null
from collections import UserList from typing import Any from typing import Callable from typing import Dict from typing import Iterable from typing import Optional from typing import Sequence from typing import Type from xsdata.formats.converter import converter from xsdata.formats.converter import QNameConverter from...
30.555556
87
0.653884
374
3,025
5.163102
0.264706
0.031072
0.058001
0.032626
0.111859
0.049715
0.027965
0
0
0
0
0
0.265124
3,025
98
88
30.867347
0.868646
0.082975
0
0.142857
0
0
0.000736
0
0
0
0
0
0
1
0.114286
false
0
0.214286
0.028571
0.528571
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
0
1
0
0
1
fc24290c99d96c1e79119302f6e0f4bf3e5675ba
440
py
Python
tests/micropython/viper_ptr8_store.py
LabAixBidouille/micropython
11aa6ba456287d6c80598a7ebbebd2887ce8f5a2
[ "MIT" ]
1
2017-12-11T15:37:20.000Z
2017-12-11T15:37:20.000Z
tests/micropython/viper_ptr8_store.py
LabAixBidouille/micropython
11aa6ba456287d6c80598a7ebbebd2887ce8f5a2
[ "MIT" ]
null
null
null
tests/micropython/viper_ptr8_store.py
LabAixBidouille/micropython
11aa6ba456287d6c80598a7ebbebd2887ce8f5a2
[ "MIT" ]
2
2016-12-19T14:41:42.000Z
2019-04-07T16:13:58.000Z
# test ptr8 type @micropython.viper def set(dest:ptr8, val:int): dest[0] = val @micropython.viper def memset(dest:ptr8, val:int, n:int): for i in range(n): dest[i] = val @micropython.viper def memset2(dest_in, val:int): dest = ptr8(dest_in) n = int(len(dest_in)) for i in range(n): ...
14.666667
38
0.615909
79
440
3.392405
0.329114
0.089552
0.212687
0.104478
0.149254
0.149254
0.149254
0.149254
0
0
0
0.040816
0.220455
440
29
39
15.172414
0.740525
0.031818
0
0.52381
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.142857
0.190476
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
0
0
0
0
0
0
0
0
0
1
fc26b12b42bc1c1709d8b09d22681cc125872fd6
615
py
Python
src/floor.py
trapsidanadir/flappy-bird
22d1ee90aaae55b4371889f4d9f83ace9f464dad
[ "MIT" ]
4
2020-10-12T01:16:08.000Z
2020-10-27T13:05:56.000Z
src/floor.py
trapsidanadir/flappy-bird
22d1ee90aaae55b4371889f4d9f83ace9f464dad
[ "MIT" ]
null
null
null
src/floor.py
trapsidanadir/flappy-bird
22d1ee90aaae55b4371889f4d9f83ace9f464dad
[ "MIT" ]
null
null
null
import pygame from src.params import * class Floor(): VEL = 5 WIDTH = FLOOR_IMAGE.get_width() HEIGHT = FLOOR_IMAGE.get_height() IMG = FLOOR_IMAGE def __init__(self, y): self.y = y self.x1 = 0 self.x2 = self.WIDTH def move(self): self.x1 -= self.VEL self.x2 -=...
22.777778
45
0.543089
92
615
3.532609
0.282609
0.110769
0.184615
0.138462
0.110769
0
0
0
0
0
0
0.038554
0.325203
615
27
46
22.777778
0.744578
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.095238
0
0.47619
0
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
0
0
0
0
0
0
0
0
0
1
fc287bc83a234163b230e278c3d3c77a8cf8ce68
1,755
py
Python
ANNOserver.py
linsalrob/SEED_Servers_Python
a2d2aa8c64547e94c3d6d031ebba46b8f9ed5716
[ "MIT" ]
null
null
null
ANNOserver.py
linsalrob/SEED_Servers_Python
a2d2aa8c64547e94c3d6d031ebba46b8f9ed5716
[ "MIT" ]
null
null
null
ANNOserver.py
linsalrob/SEED_Servers_Python
a2d2aa8c64547e94c3d6d031ebba46b8f9ed5716
[ "MIT" ]
2
2015-09-11T20:34:47.000Z
2021-09-12T02:08:49.000Z
''' A python implementation of the Annotation server, Anno server. Written by Rob Edwards, Daniel Cuevas, and Genivaldo Gueiros ''' import urllib import json class server: def __init__(self, url = 'http://servers.nmpdr.org/anno/server.cgi', email = 'redwards@mcs.anl.gov', source = 'Robs python implementation',...
24.041096
213
0.579487
216
1,755
4.689815
0.430556
0.086871
0.035538
0.017769
0
0
0
0
0
0
0
0.000816
0.301994
1,755
72
214
24.375
0.826122
0.207407
0
0
0
0
0.105263
0
0
0
0
0
0
1
0.162162
false
0.081081
0.054054
0
0.297297
0.081081
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
0
0
0
1
fc29e37b664fe12edc8c43a43fa72aadec66e13e
1,381
py
Python
python/partition_list.py
shub0/leetcode
8221d10f201d001abcb15b27c9cf4b8cd5060f1f
[ "BSD-3-Clause" ]
null
null
null
python/partition_list.py
shub0/leetcode
8221d10f201d001abcb15b27c9cf4b8cd5060f1f
[ "BSD-3-Clause" ]
null
null
null
python/partition_list.py
shub0/leetcode
8221d10f201d001abcb15b27c9cf4b8cd5060f1f
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/python ''' Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x. You should preserve the original relative order of the nodes in each of the two partitions. For example, Given 1->4->3->2->5->2 and x = 3, return 1->2->2->4->3->5. ''' ...
28.183673
125
0.6126
195
1,381
4.148718
0.394872
0.069221
0.048208
0.059333
0.051916
0
0
0
0
0
0
0.021739
0.300507
1,381
48
126
28.770833
0.815735
0.056481
0
0.064516
0
0
0.008
0
0
0
0
0
0
0
null
null
0
0.032258
null
null
0.032258
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
0
0
1
fc2bd6f376c14b2351960e40b05a8380e5eecd6d
21,849
py
Python
tests/PyroTests/test_util.py
gabehack/Pyro4
88f88bf1ccdfaff8c2bbbda8fc032a145d07d44b
[ "MIT" ]
null
null
null
tests/PyroTests/test_util.py
gabehack/Pyro4
88f88bf1ccdfaff8c2bbbda8fc032a145d07d44b
[ "MIT" ]
null
null
null
tests/PyroTests/test_util.py
gabehack/Pyro4
88f88bf1ccdfaff8c2bbbda8fc032a145d07d44b
[ "MIT" ]
null
null
null
""" Tests for the utility functions. Pyro - Python Remote Objects. Copyright by Irmen de Jong (irmen@razorvine.net). """ import sys import os import unittest import Pyro4.util from testsupport import * # noinspection PyUnusedLocal def crash(arg=100): pre1 = "black" pre2 = 999 # noins...
45.805031
156
0.617877
2,316
21,849
5.596718
0.129102
0.080543
0.039886
0.065268
0.695495
0.660392
0.617266
0.489816
0.44561
0.402407
0
0.023563
0.265779
21,849
476
157
45.901261
0.784441
0.03991
0
0.428571
0
0
0.115854
0.0021
0
0
0.000879
0
0.411905
1
0.102381
false
0.019048
0.011905
0.021429
0.166667
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
1
0
0
0
0
0
0
0
0
0
1
fc2f992df1a2afd1abceb0576bef18a0b60b13f8
9,303
py
Python
PyP100/PyP100.py
Levtastic/TapoP100
e39681666a82ab29d3895f0eb41688ddb98b41a6
[ "MIT" ]
null
null
null
PyP100/PyP100.py
Levtastic/TapoP100
e39681666a82ab29d3895f0eb41688ddb98b41a6
[ "MIT" ]
null
null
null
PyP100/PyP100.py
Levtastic/TapoP100
e39681666a82ab29d3895f0eb41688ddb98b41a6
[ "MIT" ]
null
null
null
import logging import requests import hashlib import uuid import time import json import ast from base64 import b64decode from Crypto.PublicKey import RSA from Crypto.Cipher import PKCS1_v1_5 from .tp_link_cipher import TpLinkCipher from .tp_link_broadcast import get_device_infos ERROR_CODES = { "0": "Success",...
28.276596
79
0.570246
922
9,303
5.595445
0.233189
0.035278
0.017445
0.022097
0.323512
0.312464
0.261097
0.232409
0.198682
0.182787
0
0.015981
0.307213
9,303
328
80
28.362805
0.784484
0.00344
0
0.258065
0
0
0.129801
0.002913
0
0
0
0
0
1
0.092742
false
0.120968
0.052419
0.016129
0.225806
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
0
0
0
1
fc3115489abc9736c3c5f076b17fe4043f039e79
998
py
Python
aiohttp_request.py
hellysmile/aiohttp_request
c15b541cc7b07a56cdb1644e6c2ebb490e74ff31
[ "MIT" ]
21
2018-06-30T04:10:43.000Z
2021-07-17T11:40:50.000Z
aiohttp_request.py
hellysmile/aiohttp_request
c15b541cc7b07a56cdb1644e6c2ebb490e74ff31
[ "MIT" ]
249
2018-06-30T00:45:23.000Z
2022-03-25T11:11:42.000Z
aiohttp_request.py
hellysmile/aiohttp_request
c15b541cc7b07a56cdb1644e6c2ebb490e74ff31
[ "MIT" ]
null
null
null
import contextvars import typing from functools import partial from aiohttp import web from werkzeug.local import LocalProxy __version__ = '0.0.1' ctx = contextvars.ContextVar('request') # type: contextvars.ContextVar class ThreadContext: __slots__ = ('_ctx', '_fn') def __init__(self, fn: typing.Callabl...
21.234043
75
0.659319
113
998
5.59292
0.424779
0.071203
0.06962
0
0
0
0
0
0
0
0
0.003916
0.232465
998
46
76
21.695652
0.821149
0.078156
0
0
0
0
0.020742
0
0
0
0
0
0
1
0.137931
false
0
0.172414
0.068966
0.517241
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
0
1
0
0
1
fc38b889f1ec880e77d16f1914d8e0af6c07f339
2,124
py
Python
py/projects/functional_web_tests/tests/parameters/supported_platforms.py
qaviton/test_repository
e9bf1bb12a138c6d92329ca4784f40767cb2ace9
[ "Apache-2.0" ]
7
2018-11-20T15:44:27.000Z
2021-01-01T11:08:49.000Z
py/tests/parameters/supported_platforms.py
idanhakimi/qaviton
6ed17e4131c35cae902b95498e60de53e5b05a56
[ "Apache-2.0" ]
114
2018-11-17T20:55:24.000Z
2022-03-11T23:34:09.000Z
py/tests/parameters/supported_platforms.py
idanhakimi/qaviton
6ed17e4131c35cae902b95498e60de53e5b05a56
[ "Apache-2.0" ]
4
2018-11-20T15:56:11.000Z
2019-03-05T19:18:33.000Z
from qaviton import crosstest from qaviton.utils import path from tests.parameters.private import hub app = [ # web 'https://contacts.google.com/', # 'file://' + path.of(__file__)('../../apps/ContactManager/ContactManager.html'), # 'file:///home/ubuntu/ContactManager.html', # mobile path.of(__...
24.988235
85
0.617702
187
2,124
6.967914
0.40107
0.036838
0.141213
0.18419
0.521873
0.465081
0.400614
0.400614
0.400614
0.400614
0
0.016298
0.191149
2,124
84
86
25.285714
0.742142
0.29661
0
0.5
0
0
0.386812
0.055065
0
0
0
0
0
1
0
false
0
0.06
0
0.06
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
0
0
0
1
fc38d6bcf19ae04d83fbbbf633bbe30b84c2e7c7
7,475
py
Python
impacket/testcases/dot11/test_FrameManagementReassociationResponse.py
black-security/impacket3
5b6145b3f511d4f7cddaba64cf150b109113afea
[ "Apache-1.1" ]
null
null
null
impacket/testcases/dot11/test_FrameManagementReassociationResponse.py
black-security/impacket3
5b6145b3f511d4f7cddaba64cf150b109113afea
[ "Apache-1.1" ]
null
null
null
impacket/testcases/dot11/test_FrameManagementReassociationResponse.py
black-security/impacket3
5b6145b3f511d4f7cddaba64cf150b109113afea
[ "Apache-1.1" ]
1
2022-01-28T00:53:41.000Z
2022-01-28T00:53:41.000Z
#!/usr/bin/env python # sorry, this is very ugly, but I'm in python 2.5 import sys sys.path.insert(0,"../..") from dot11 import Dot11, Dot11Types, Dot11ManagementFrame, Dot11ManagementReassociationResponse from ImpactDecoder import RadioTapDecoder from binascii import hexlify import unittest class TestDot11Manageme...
48.225806
317
0.723746
945
7,475
5.50582
0.209524
0.134538
0.109552
0.167211
0.635403
0.524313
0.485105
0.412839
0.300211
0.233711
0
0.101565
0.162274
7,475
154
318
48.538961
0.72932
0.0899
0
0.071429
0
0.017857
0.161317
0.077122
0
0
0.049238
0
0.357143
1
0.133929
false
0
0.044643
0
0.1875
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
0
0
0
1
fc3a6c993b34edac0e800703ce07961a73ae3dfb
2,417
py
Python
cass.py
MiaoXiao/BrexitTweetAnalysis
7ebc73c8c4534d7c1770753269c2c43156b92901
[ "MIT" ]
null
null
null
cass.py
MiaoXiao/BrexitTweetAnalysis
7ebc73c8c4534d7c1770753269c2c43156b92901
[ "MIT" ]
null
null
null
cass.py
MiaoXiao/BrexitTweetAnalysis
7ebc73c8c4534d7c1770753269c2c43156b92901
[ "MIT" ]
null
null
null
#!/usr/bin/env python from cassandra.cluster import Cluster import re import os cluster = Cluster(port=9043) session = cluster.connect("projecttest") count = 0 count2 = 0 count3 = 0 count4 = 0 sentNegative23 = session.execute("SELECT * FROM projecttest.tweets_sentimenttest where score < 0 allow filtering") sentPositi...
34.528571
172
0.722383
331
2,417
5.175227
0.253776
0.032691
0.046702
0.056042
0.394629
0.295388
0.258027
0.197315
0.186807
0.186807
0
0.040211
0.135705
2,417
69
173
35.028986
0.779799
0.099297
0
0
0
0
0.371718
0.060801
0
0
0
0
0
0
null
null
0
0.065217
null
null
0.130435
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
0
0
1
fc3e11a8dd643e818f4050b7709f67aebd17f725
546
py
Python
pwa_store_backend/pwas/migrations/0018_auto_20210814_1751.py
nathanhfoster/pwa-store-backend
93a4bb1d347a9076b40600a2ec2fac92cada03cf
[ "MIT" ]
null
null
null
pwa_store_backend/pwas/migrations/0018_auto_20210814_1751.py
nathanhfoster/pwa-store-backend
93a4bb1d347a9076b40600a2ec2fac92cada03cf
[ "MIT" ]
38
2021-08-09T21:15:40.000Z
2021-10-11T04:15:47.000Z
pwa_store_backend/pwas/migrations/0018_auto_20210814_1751.py
nathanhfoster/pwa-store-backend
93a4bb1d347a9076b40600a2ec2fac92cada03cf
[ "MIT" ]
null
null
null
# Generated by Django 3.1.13 on 2021-08-14 17:51 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('pwas', '0017_auto_20210814_1745'), ] operations = [ migrations.AlterField( model_name='pwaanal...
26
140
0.64652
63
546
5.47619
0.666667
0.069565
0.081159
0.127536
0
0
0
0
0
0
0
0.079137
0.236264
546
20
141
27.3
0.748201
0.084249
0
0
1
0
0.126506
0.046185
0
0
0
0
0
1
0
false
0
0.142857
0
0.357143
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
0
0
0
1
fc3f04c911040a9cbf5c571037f3741fcc09465f
7,525
py
Python
analyze/plots.py
adiyoss/Representation_Analysis
5d56cf1c98a3d284cfa329efc7425e58cc55acdc
[ "MIT" ]
2
2018-02-26T21:02:11.000Z
2018-02-27T08:20:16.000Z
analyze/plots.py
adiyoss/InDepth-Analysis
5d56cf1c98a3d284cfa329efc7425e58cc55acdc
[ "MIT" ]
null
null
null
analyze/plots.py
adiyoss/InDepth-Analysis
5d56cf1c98a3d284cfa329efc7425e58cc55acdc
[ "MIT" ]
null
null
null
import matplotlib import numpy as np import operator from matplotlib import pyplot as plt from scipy import stats def check_norms(repr_path, labels): reprs = np.load(repr_path) norms = dict() # plot_norm = list() for i, r in enumerate(reprs): n = np.linalg.norm(r) l = labels[i] ...
28.289474
103
0.560797
1,150
7,525
3.544348
0.168696
0.025515
0.022326
0.023553
0.361384
0.303974
0.201668
0.167812
0.161187
0.114082
0
0.028661
0.276678
7,525
265
104
28.396226
0.720191
0.135681
0
0.272727
0
0
0.091106
0.034957
0
0
0
0
0
0
null
null
0
0.026738
null
null
0.042781
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
0
0
1
fc42e743e25d8b5e0e749c3fad9dfd4c17a7ab0b
1,466
py
Python
src/Foundation/Standard/practice04.py
mryyomutga/PracticePython
e191d73064248d0983344b137fbe6b69e5eb1d12
[ "MIT" ]
null
null
null
src/Foundation/Standard/practice04.py
mryyomutga/PracticePython
e191d73064248d0983344b137fbe6b69e5eb1d12
[ "MIT" ]
null
null
null
src/Foundation/Standard/practice04.py
mryyomutga/PracticePython
e191d73064248d0983344b137fbe6b69e5eb1d12
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- # タプルの基本的な操作 # タプル : tpl = (, ,...) # リストと違って初期化したタプルはイミュータブル(不変) tpl1 = (1, 2, 3, 4, 5) tpl2 = "月", "火", "水", "木", "金" # ()無しでも可 print(tpl1) print(tpl2) # 複数の変数にタプルの値を代入 # 用意する変数の数はタプルの要素数(それ以外だとエラー) a, b, c, d, e = tpl1 print(a) print(b) print(c) print(d) print(e) print() ...
17.046512
68
0.56412
205
1,466
4.004878
0.4
0.058465
0.025579
0.019488
0.048721
0.026797
0.026797
0
0
0
0
0.048527
0.212824
1,466
85
69
17.247059
0.662912
0.373124
0
0.295455
0
0
0.078849
0
0
0
0
0
0
1
0
false
0
0
0
0
0.613636
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
0
0
1
0
1
fc43c38d2e65befb124e69db35a4ba5c2bdca442
1,953
py
Python
tests/test_thread_control.py
alexwilson1/fbchat
8c690af951affefb1c570f25bd4f7aa12645bc5c
[ "BSD-3-Clause" ]
null
null
null
tests/test_thread_control.py
alexwilson1/fbchat
8c690af951affefb1c570f25bd4f7aa12645bc5c
[ "BSD-3-Clause" ]
null
null
null
tests/test_thread_control.py
alexwilson1/fbchat
8c690af951affefb1c570f25bd4f7aa12645bc5c
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from os import environ from pytest import mark, fixture @fixture def users(user): return [user] def test_add_users(mocker, listener, client, users, group): with listener('on_users_added'), listener('on_user_added') as on_users_added, on_user_...
32.55
96
0.75576
288
1,953
4.763889
0.152778
0.069971
0.093294
0.116618
0.363703
0.285714
0.285714
0.174927
0.174927
0.075802
0
0.000601
0.147465
1,953
59
97
33.101695
0.823423
0.010753
0
0
0
0
0.064249
0
0
0
0
0
0.205128
1
0.205128
false
0
0.076923
0.025641
0.307692
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
0
0
0
1
fc47a8645933ff035ebff927609da23c176b34c2
4,425
py
Python
tests/nicolas/media/GroupeSymetrique-correction.py
keyworks/rst-to-ipynb
e09c21d54cced941fa52b394539cf519214d6ac3
[ "BSD-3-Clause" ]
13
2016-05-25T01:12:06.000Z
2022-01-27T09:40:24.000Z
tests/nicolas/media/GroupeSymetrique-correction.py
keyworks/rst-to-ipynb
e09c21d54cced941fa52b394539cf519214d6ac3
[ "BSD-3-Clause" ]
2
2017-09-12T20:17:02.000Z
2017-10-18T15:40:28.000Z
tests/nicolas/media/GroupeSymetrique-correction.py
keyworks/rst-to-ipynb
e09c21d54cced941fa52b394539cf519214d6ac3
[ "BSD-3-Clause" ]
14
2015-10-05T19:04:07.000Z
2022-01-12T08:17:16.000Z
# -*- coding: utf-8 -*- """ Option Algèbre et Calcul Formel de l’Agrégation de Mathématiques: Sa Majesté le Groupe Symmétrique; groupes de permutations TP: formule de Pòlya et systèmes de générateurs forts """ from sage.misc.misc_c import prod def p(k, poids): r""" Calcule `p_k` à partir de la liste des poi...
25.726744
79
0.502147
685
4,425
3.213139
0.211679
0.016356
0.01363
0.069968
0.317129
0.178101
0.178101
0.178101
0.178101
0.178101
0
0.065807
0.31661
4,425
171
80
25.877193
0.662037
0.658305
0
0.047619
0
0
0
0
0
0
0
0.023392
0
1
0.142857
false
0
0.02381
0
0.357143
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
1
0
0
0
0
0
0
0
0
0
0
1
fc48c497901e83d08f4a489c1de589dded5b3c9c
1,352
py
Python
relier/web/views/invitation.py
citruspi/relier-api
799e9ea60431712612667bf06d09c418456e3f33
[ "Unlicense" ]
null
null
null
relier/web/views/invitation.py
citruspi/relier-api
799e9ea60431712612667bf06d09c418456e3f33
[ "Unlicense" ]
null
null
null
relier/web/views/invitation.py
citruspi/relier-api
799e9ea60431712612667bf06d09c418456e3f33
[ "Unlicense" ]
null
null
null
from flask.views import MethodView from flask import render_template, request, flash, redirect, session, abort from relier.models import User, Invitation class InvitationView(MethodView): def get(self, token): if Invitation.select().where(Invitation.token == token).count() == 0: abort(404) ...
30.727273
84
0.58432
142
1,352
5.514085
0.34507
0.09834
0.102171
0.061303
0.360153
0.342273
0.342273
0.342273
0.342273
0.255428
0
0.020063
0.299556
1,352
43
85
31.44186
0.806758
0
0
0.321429
0
0
0.063609
0
0
0
0
0
0
1
0.071429
false
0.107143
0.107143
0
0.285714
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
0
0
0
1
fc50b6c4233a7a1a0653fdccf8439c0bb45112bb
1,443
py
Python
defaultsItems.py
adipixel/FlaskApp
883efcd08eccb6eb16e17191fcd1946ed027a481
[ "MIT" ]
null
null
null
defaultsItems.py
adipixel/FlaskApp
883efcd08eccb6eb16e17191fcd1946ed027a481
[ "MIT" ]
null
null
null
defaultsItems.py
adipixel/FlaskApp
883efcd08eccb6eb16e17191fcd1946ed027a481
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from database_setup import Category, Base, User, Item engine = create_engine('postgresql://catalog:catalog@localhost:5432/catalogdb') Base.metadata.bind = engine DBSession = sessionmaker(bind=engin...
33.55814
305
0.75052
145
1,443
7.413793
0.496552
0.016744
0.030698
0.036279
0.27814
0.27814
0.256744
0.256744
0.256744
0.174884
0
0.058584
0.148302
1,443
42
306
34.357143
0.816111
0.040194
0
0.346154
0
0
0.449601
0.038434
0
0
0
0
0
0
null
null
0
0.115385
null
null
0.038462
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
0
0
1
fc50c0be18913e06be2d9234bc61a04684809df5
643
py
Python
wizard_builder/migrations/0044_auto_20171101_1412.py
SexualHealthInnovations/django-wizard-builder
f5effe8c462313f16be914b562dbea8ea796b672
[ "BSD-3-Clause" ]
16
2016-06-21T04:05:24.000Z
2017-09-26T15:40:24.000Z
wizard_builder/migrations/0044_auto_20171101_1412.py
SexualHealthInnovations/django-wizard-builder
f5effe8c462313f16be914b562dbea8ea796b672
[ "BSD-3-Clause" ]
141
2016-06-21T20:46:46.000Z
2017-09-28T00:20:49.000Z
wizard_builder/migrations/0044_auto_20171101_1412.py
project-callisto/django-wizard-builder
f5effe8c462313f16be914b562dbea8ea796b672
[ "BSD-3-Clause" ]
7
2017-10-04T22:52:18.000Z
2018-05-31T17:14:39.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2017-11-01 14:12 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('wizard_builder', '0043_multiplechoice'), ] operations = [ migrations.AlterF...
24.730769
58
0.604977
65
643
5.830769
0.630769
0.105541
0.131926
0.153034
0.453826
0.453826
0.216359
0.216359
0
0
0
0.045259
0.278383
643
25
59
25.72
0.771552
0.105754
0
0.444444
1
0
0.134615
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.277778
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
0
0
0
1
fc51fc82cb2f8f77de861f0610e6e6f50a5e91b5
1,938
py
Python
tests/unit/test_subscription_search.py
eldarion/braintree_python
8be3f69fb9a4171c5e9be049c8440fcc4f79fb40
[ "MIT" ]
3
2015-11-05T08:57:12.000Z
2016-07-17T18:10:55.000Z
tests/unit/test_subscription_search.py
eldarion/braintree_python
8be3f69fb9a4171c5e9be049c8440fcc4f79fb40
[ "MIT" ]
null
null
null
tests/unit/test_subscription_search.py
eldarion/braintree_python
8be3f69fb9a4171c5e9be049c8440fcc4f79fb40
[ "MIT" ]
null
null
null
from tests.test_helper import * class TestSubscriptionSearch(unittest.TestCase): def test_billing_cycles_remaining_is_a_range_node(self): self.assertEquals(Search.RangeNodeBuilder, type(SubscriptionSearch.billing_cycles_remaining)) def test_days_past_due_is_a_range_node(self): self.assertEqual...
41.234043
104
0.760578
214
1,938
6.523364
0.247664
0.055158
0.077364
0.154728
0.656877
0.64255
0.59384
0.59384
0.59384
0.59384
0
0
0.165119
1,938
46
105
42.130435
0.862794
0
0
0.228571
0
0
0.006192
0
0
0
0
0
0.257143
1
0.314286
false
0
0.028571
0
0.371429
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
0
0
0
1
fc5252234d720e2731ef8df6431daec987c37489
470
py
Python
resume/migrations/0009_listitem_short_description.py
Murtrag/AutoResume
20a4874904454a19ff6edba412429c543451642b
[ "MIT" ]
null
null
null
resume/migrations/0009_listitem_short_description.py
Murtrag/AutoResume
20a4874904454a19ff6edba412429c543451642b
[ "MIT" ]
47
2020-12-07T18:25:02.000Z
2022-03-30T08:01:32.000Z
resume/migrations/0009_listitem_short_description.py
Murtrag/AutoResume
20a4874904454a19ff6edba412429c543451642b
[ "MIT" ]
null
null
null
# Generated by Django 3.1.3 on 2021-10-01 17:53 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('resume', '0008_auto_20211001_1504'), ] operations = [ migrations.AddField( model_name='listitem', name='short_descri...
24.736842
124
0.63617
54
470
5.425926
0.833333
0
0
0
0
0
0
0
0
0
0
0.087571
0.246809
470
18
125
26.111111
0.740113
0.095745
0
0
1
0
0.276596
0.054374
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
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
0
0
0
1
fc539f2101596bf1360cf9e5d4a2ced09cbdfa77
2,849
bzl
Python
scala/private/phases/phase_bloop.bzl
psilospore/rules_scala-rebloopy
69327c55e8095882e59e5c0fe948cb31693b4e6f
[ "Apache-2.0" ]
null
null
null
scala/private/phases/phase_bloop.bzl
psilospore/rules_scala-rebloopy
69327c55e8095882e59e5c0fe948cb31693b4e6f
[ "Apache-2.0" ]
null
null
null
scala/private/phases/phase_bloop.bzl
psilospore/rules_scala-rebloopy
69327c55e8095882e59e5c0fe948cb31693b4e6f
[ "Apache-2.0" ]
null
null
null
load("//tools:dump.bzl", "dump") load("//scala/private:rule_impls.bzl", "empty_coverage_struct") # PHASE: phase bloop def phase_bloop(ctx, p): args = ctx.actions.args() labelName = "%s:%s" % (ctx.label.package, ctx.label.name) args = ctx.actions.args() args.add("--label", labelName) args.add_all("...
35.17284
147
0.654616
357
2,849
5.042017
0.394958
0.031111
0.02
0.02
0.118889
0.118889
0.082222
0.053333
0
0
0
0.000894
0.214461
2,849
80
148
35.6125
0.803396
0.169884
0
0.037736
0
0
0.144804
0.050256
0
0
0
0.0125
0
1
0.018868
false
0
0
0
0.037736
0.018868
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
0
0
1
fc544525c56fd4e0020611e56eb42d24ee493689
4,756
py
Python
python/MaterialXTest/tests_to_html.py
tgvarik/MaterialX
0f0c1f9934bfa3b2d54516672c0b26ef93f9f94e
[ "BSD-3-Clause" ]
8
2019-05-18T10:56:25.000Z
2022-03-08T21:00:24.000Z
python/MaterialXTest/tests_to_html.py
tgvarik/MaterialX
0f0c1f9934bfa3b2d54516672c0b26ef93f9f94e
[ "BSD-3-Clause" ]
null
null
null
python/MaterialXTest/tests_to_html.py
tgvarik/MaterialX
0f0c1f9934bfa3b2d54516672c0b26ef93f9f94e
[ "BSD-3-Clause" ]
1
2020-02-24T02:16:19.000Z
2020-02-24T02:16:19.000Z
#!/usr/bin/python import sys import os import datetime import argparse try: # Use pip to install Pillow and Image to enable image diffs from PIL import Image from PIL import ImageChops DIFF_ENABLED = True except Exception: DIFF_ENABLED = False def createDiff(image1Path, image2Path, imageDiffPath)...
44.448598
165
0.551093
529
4,756
4.89225
0.283554
0.081144
0.027821
0.027048
0.268934
0.246522
0.197836
0.150696
0.054869
0.037094
0
0.007699
0.28995
4,756
106
166
44.867925
0.758662
0.021447
0
0.244681
0
0
0.240163
0.039346
0.010638
0
0
0
0
0
null
null
0
0.06383
null
null
0.021277
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
0
0
1
fc54640f942438cafa62940d36b7425e30fea83e
5,798
py
Python
sdk/python/pulumi_aws_native/efs/get_file_system.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
29
2021-09-30T19:32:07.000Z
2022-03-22T21:06:08.000Z
sdk/python/pulumi_aws_native/efs/get_file_system.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
232
2021-09-30T19:26:26.000Z
2022-03-31T23:22:06.000Z
sdk/python/pulumi_aws_native/efs/get_file_system.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
4
2021-11-10T19:42:01.000Z
2022-02-05T10:15:49.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from...
42.948148
211
0.715074
682
5,798
5.690616
0.174487
0.113373
0.04638
0.086576
0.381345
0.261531
0.111054
0.014429
0
0
0
0.000213
0.19179
5,798
134
212
43.268657
0.827998
0.051397
0
0.075472
1
0
0.180022
0.055251
0
0
0
0
0
1
0.113208
false
0
0.056604
0.075472
0.283019
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
0
0
0
1
fc553da94820b2e29e7be8cb85a07dae30ae9964
322
py
Python
api/main.py
Zurek92/fluid_mechanics_api
0f88874b5872d5502cd286fcbb2e72bb26661b36
[ "MIT" ]
4
2020-07-28T00:23:22.000Z
2021-11-05T06:11:11.000Z
api/main.py
Zurek92/fluid_mechanics_api
0f88874b5872d5502cd286fcbb2e72bb26661b36
[ "MIT" ]
null
null
null
api/main.py
Zurek92/fluid_mechanics_api
0f88874b5872d5502cd286fcbb2e72bb26661b36
[ "MIT" ]
1
2021-11-05T06:11:15.000Z
2021-11-05T06:11:15.000Z
#!/usr/bin/env python3 from flask import Flask from flask_cors import CORS from config import API from endpoints import api app = Flask(__name__) cors = CORS(app, resources={r'*': {'origins': API.CORS_ORIGIN}}) app.register_blueprint(api) if __name__ == '__main__': app.run(host=API.IP, port=API.PORT, debug=True...
21.466667
64
0.732919
50
322
4.42
0.54
0.081448
0
0
0
0
0
0
0
0
0
0.003584
0.13354
322
14
65
23
0.78853
0.065217
0
0
0
0
0.053333
0
0
0
0
0
0
1
0
false
0
0.444444
0
0.444444
0.111111
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
0
0
0
1
fc5d9116d0487d0874e13b92ac48d7412155b8ff
631
py
Python
flylight_perl/pipeline/bin/get_sage_line.py
JaneliaSciComp/jacs-tools-docker
10eef2b2091be85e85f9a474db51ca70cc069507
[ "BSD-3-Clause" ]
null
null
null
flylight_perl/pipeline/bin/get_sage_line.py
JaneliaSciComp/jacs-tools-docker
10eef2b2091be85e85f9a474db51ca70cc069507
[ "BSD-3-Clause" ]
null
null
null
flylight_perl/pipeline/bin/get_sage_line.py
JaneliaSciComp/jacs-tools-docker
10eef2b2091be85e85f9a474db51ca70cc069507
[ "BSD-3-Clause" ]
null
null
null
#!/usr/local/python-2.7.11/bin/python import MySQLdb as sql import argparse def dbConnect(): db = sql.connect(host='mysql3.int.janelia.org',user='sageRead',passwd='sageRead',db='sage') c = db.cursor() return(c,db); if __name__ == '__main__': parser = argparse.ArgumentParser(description='Fetch line na...
30.047619
95
0.649762
87
631
4.586207
0.632184
0.015038
0
0
0
0
0
0
0
0
0
0.015474
0.180666
631
20
96
31.55
0.756286
0.057052
0
0
0
0
0.203704
0.037037
0
0
0
0
0
1
0.058824
false
0.058824
0.117647
0
0.176471
0.058824
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
0
0
0
1
fc6a2716574a0cecaa6be685c9007b8b85eff7ff
12,407
py
Python
radiotask.py
MennoNij/DrivePy
2c5c5ed60b4704e656895fb0d2afc9fe3524696c
[ "MIT" ]
1
2021-02-16T10:47:39.000Z
2021-02-16T10:47:39.000Z
radiotask.py
MennoNij/DrivePy
2c5c5ed60b4704e656895fb0d2afc9fe3524696c
[ "MIT" ]
null
null
null
radiotask.py
MennoNij/DrivePy
2c5c5ed60b4704e656895fb0d2afc9fe3524696c
[ "MIT" ]
null
null
null
import os import random import pyglet import subprocess #from mutagen.mp3 import MP3 import pygame import time import globals from helpers import r3 from datacollector import DataCollector class Radio(object): def __init__(self, show=-1): self.started = False self.condition = '' self.ful...
36.925595
151
0.501491
1,170
12,407
5.302564
0.2
0.022244
0.015957
0.030464
0.249516
0.190683
0.105577
0.082044
0.067859
0.052063
0
0.017294
0.389458
12,407
335
152
37.035821
0.801716
0.160958
0
0.317972
0
0
0.046109
0
0
0
0
0
0
0
null
null
0
0.041475
null
null
0.013825
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
0
0
1
fc6ec0c9a57a50fea06c4d473a2801184d43e358
338
py
Python
p1_to_p100/p2_py.py
v-ek/euler-sols
6121a98edc818de4c532a80be3909da38796f81a
[ "MIT" ]
null
null
null
p1_to_p100/p2_py.py
v-ek/euler-sols
6121a98edc818de4c532a80be3909da38796f81a
[ "MIT" ]
null
null
null
p1_to_p100/p2_py.py
v-ek/euler-sols
6121a98edc818de4c532a80be3909da38796f81a
[ "MIT" ]
null
null
null
from __future__ import division # brute force again f_all = [] f_even = [] even_sum = 0 max_val = 4000000 f_all.append(1) f_all.append(1) current = 0 while current < max_val: current = f_all[-1] + f_all[-2] f_all.append(current) if current % 2 == 0: f_even.append(current) even_sum += curre...
17.789474
35
0.659763
56
338
3.678571
0.392857
0.116505
0.145631
0.106796
0
0
0
0
0
0
0
0.057471
0.227811
338
19
36
17.789474
0.731801
0.050296
0
0.133333
0
0
0
0
0
0
0
0
0
0
null
null
0
0.066667
null
null
0.066667
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
0
0
1
fc7206e20542cc4945cb8a282f2de65bca4b3be5
253
py
Python
asmpy/asm.py
travisg/cpu
27277f12c7f7b6383e77a053464ee96d6bd7322c
[ "MIT" ]
5
2015-09-15T10:56:58.000Z
2020-03-01T04:36:08.000Z
asmpy/asm.py
travisg/cpu
27277f12c7f7b6383e77a053464ee96d6bd7322c
[ "MIT" ]
null
null
null
asmpy/asm.py
travisg/cpu
27277f12c7f7b6383e77a053464ee96d6bd7322c
[ "MIT" ]
1
2019-06-29T08:25:29.000Z
2019-06-29T08:25:29.000Z
#!/usr/bin/env python import sys import lexparse def main(): infile = sys.stdin print "starting parser" for line in infile: lexparse.yacc.parse(line,debug=False) if __name__ == "__main__": main() # vim: ts=4 sw=4 expandtab:
14.882353
45
0.648221
36
253
4.333333
0.777778
0
0
0
0
0
0
0
0
0
0
0.010256
0.229249
253
16
46
15.8125
0.789744
0.181818
0
0
0
0
0.112195
0
0
0
0
0
0
0
null
null
0
0.222222
null
null
0.111111
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
0
0
1
fc7a72c6f76eedb9985c02822262c12204224e08
3,007
py
Python
txstatsd/metrics/countermetric.py
drawks/txstatsd
da674d7a86e0e5ec40eaa53fe81310ef19d1ed9e
[ "MIT" ]
null
null
null
txstatsd/metrics/countermetric.py
drawks/txstatsd
da674d7a86e0e5ec40eaa53fe81310ef19d1ed9e
[ "MIT" ]
null
null
null
txstatsd/metrics/countermetric.py
drawks/txstatsd
da674d7a86e0e5ec40eaa53fe81310ef19d1ed9e
[ "MIT" ]
null
null
null
# Copyright (C) 2011-2012 Canonical Services Ltd # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, ...
33.786517
72
0.673096
391
3,007
5.102302
0.40665
0.049624
0.02406
0.028571
0.187469
0.176441
0.148371
0.107268
0.107268
0.054135
0
0.005702
0.241769
3,007
88
73
34.170455
0.869298
0.580645
0
0.16129
0
0
0.009804
0
0
0
0
0
0
1
0.290323
false
0
0.064516
0.032258
0.483871
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
0
0
0
1
fc7bdccd396ccd2526f3de1fe86055a82a21d257
472
py
Python
tests/state/test_crosslink_record.py
muta6150/beacon_chain
eaf14825fd9bd95bafaf5d3457d173a33e84c65e
[ "MIT" ]
217
2018-06-15T16:35:59.000Z
2022-01-23T21:21:13.000Z
tests/state/test_crosslink_record.py
KenMan79/beacon_chain
fa126de4aff583a9b6dab074ef7d553148f13530
[ "MIT" ]
111
2018-06-17T03:14:12.000Z
2021-01-12T04:29:26.000Z
tests/state/test_crosslink_record.py
KenMan79/beacon_chain
fa126de4aff583a9b6dab074ef7d553148f13530
[ "MIT" ]
60
2018-06-16T02:55:16.000Z
2022-03-28T18:42:10.000Z
import pytest from beacon_chain.state.crosslink_record import ( CrosslinkRecord, ) @pytest.mark.parametrize( 'param,default_value', [ ('dynasty', 0), ('slot', 0), ('hash', b'\x00'*32), ] ) def test_defaults(param, default_value, sample_crosslink_record_params): del sample_...
22.47619
72
0.694915
52
472
6.019231
0.557692
0.191693
0.162939
0.258786
0
0
0
0
0
0
0
0.015666
0.188559
472
20
73
23.6
0.801567
0
0
0
0
0
0.080508
0
0
0
0
0
0.0625
1
0.0625
false
0
0.125
0
0.1875
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
0
0
0
1
fc825dd84d137f51f98cae6878d1f213fc35efe5
1,052
py
Python
src/python/src/poweredup/protocol/errors.py
Hertattack/ev3
6f4682e3f891f6d24c2de42cce52f3425abf7d26
[ "MIT" ]
null
null
null
src/python/src/poweredup/protocol/errors.py
Hertattack/ev3
6f4682e3f891f6d24c2de42cce52f3425abf7d26
[ "MIT" ]
null
null
null
src/python/src/poweredup/protocol/errors.py
Hertattack/ev3
6f4682e3f891f6d24c2de42cce52f3425abf7d26
[ "MIT" ]
null
null
null
from . import ValueMapping from .messages import Message, MessageType class ErrorCode(ValueMapping): ACK_ERROR = b'\x01' MACK_ERROR = b'\x02' BUFFER_OVERFLOW = b'\x03' TIMEOUT = b'\x04' COMMAND_NOT_RECOGNIZED = b'\x05' INVALID_USE = b'\x06' OVERCURRENT = b'\x07' INTERNAL_ERROR = b'\x08...
30.941176
99
0.68251
129
1,052
5.294574
0.449612
0.112738
0.087848
0
0
0
0
0
0
0
0
0.025799
0.226236
1,052
33
100
31.878788
0.813268
0
0
0
0
0
0.090304
0
0
0
0
0
0
1
0.076923
false
0
0.076923
0
0.615385
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
0
1
0
0
1
fc82c29a1af64aa529fcf28f3242230f66693976
5,009
py
Python
tsscp/__init__.py
Einbert-Xeride/tsscp
f48651eb780aa10d2cbe115126a0783c72b76e7e
[ "MIT" ]
null
null
null
tsscp/__init__.py
Einbert-Xeride/tsscp
f48651eb780aa10d2cbe115126a0783c72b76e7e
[ "MIT" ]
null
null
null
tsscp/__init__.py
Einbert-Xeride/tsscp
f48651eb780aa10d2cbe115126a0783c72b76e7e
[ "MIT" ]
null
null
null
import os from flask import Flask, render_template, flash, redirect, url_for, abort from flask_bootstrap import Bootstrap from flask_login import LoginManager, current_user from flask_moment import Moment from flask_pagedown import PageDown from flask_sqlalchemy import SQLAlchemy from getpass import getpass class C...
25.29798
112
0.670593
726
5,009
4.42011
0.213499
0.039265
0.04986
0.037083
0.26675
0.18043
0.18043
0.085073
0.048613
0.048613
0
0.006158
0.189459
5,009
197
113
25.426396
0.784236
0.01657
0
0.161074
0
0
0.106009
0.010182
0
0
0
0
0
1
0.114094
false
0.080537
0.107383
0
0.328859
0.060403
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
0
0
0
1
fc8af6d7aa69acbf669e6af896002b654cb2d4d9
3,536
py
Python
MoinMoin/script/import/irclog.py
RealTimeWeb/wikisite
66a22c68c172f0ebb3c88a9885ccd33e2d59c3c5
[ "Apache-2.0" ]
null
null
null
MoinMoin/script/import/irclog.py
RealTimeWeb/wikisite
66a22c68c172f0ebb3c88a9885ccd33e2d59c3c5
[ "Apache-2.0" ]
3
2020-06-26T21:21:32.000Z
2020-06-26T21:21:36.000Z
wiki/MoinMoin/script/import/irclog.py
simtk/src
52086415ef60527e6556698c6e216e4217961d53
[ "BSD-2-Clause", "MIT" ]
2
2017-01-25T20:06:44.000Z
2021-03-25T18:39:55.000Z
# -*- coding: iso-8859-1 -*- """ MoinMoin - Push files into the wiki. @copyright: 2005-2007 MoinMoin:AlexanderSchremmer 2006 MoinMoin:ThomasWaldmann @license: GNU GPL, see COPYING for details. """ # this function generates a pagename from the file name def filename_function(filename): filename = filen...
34.666667
125
0.597002
419
3,536
4.949881
0.417661
0.031823
0.015911
0.027483
0.086789
0.066538
0.066538
0.066538
0.066538
0.066538
0
0.012234
0.283371
3,536
101
126
35.009901
0.806235
0.040724
0
0.067797
0
0
0.101286
0
0
0
0
0
0
0
null
null
0.016949
0.084746
null
null
0.016949
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
0
0
1
fc909347750c74aed8a7ff8c36a0b05a9ec2a3ab
4,862
py
Python
iec/iec/settings/base.py
divinedeveloper/iec-web-service
0d5e7a05356cc8d88372a559bd5df787d8dc1f75
[ "MIT" ]
null
null
null
iec/iec/settings/base.py
divinedeveloper/iec-web-service
0d5e7a05356cc8d88372a559bd5df787d8dc1f75
[ "MIT" ]
null
null
null
iec/iec/settings/base.py
divinedeveloper/iec-web-service
0d5e7a05356cc8d88372a559bd5df787d8dc1f75
[ "MIT" ]
null
null
null
""" Django settings for iec project. Generated by 'django-admin startproject' using Django 1.8.6. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/settings/ """ # Build paths in...
27.625
89
0.693336
549
4,862
5.994536
0.367942
0.051352
0.040109
0.045579
0.126405
0.116074
0.103312
0.103312
0.058645
0.034336
0
0.008203
0.14747
4,862
175
90
27.782857
0.785766
0.426779
0
0.030303
1
0
0.524292
0.384211
0
0
0
0
0
1
0
false
0
0.045455
0
0.045455
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
0
0
0
1
fc92c1685701b0e5aadec5908b98c2697727e491
1,133
py
Python
test/uxml/test_html5.py
zepheira/amara3-xml
5d9646c372607f4b25598f3d4c9c94548e2a1093
[ "Apache-2.0" ]
null
null
null
test/uxml/test_html5.py
zepheira/amara3-xml
5d9646c372607f4b25598f3d4c9c94548e2a1093
[ "Apache-2.0" ]
null
null
null
test/uxml/test_html5.py
zepheira/amara3-xml
5d9646c372607f4b25598f3d4c9c94548e2a1093
[ "Apache-2.0" ]
null
null
null
''' py.test test/uxml/test_tree.py ''' import sys import io import logging from asyncio import coroutine import pytest #Consider also installing pytest_capturelog from amara3.uxml import tree from amara3.uxml.tree import node, element from amara3.uxml import html5 DOC1 = '<html><head><title>HELLO</title></head><bod...
29.051282
114
0.70256
170
1,133
4.552941
0.435294
0.046512
0.054264
0.05168
0.105943
0.105943
0.105943
0.105943
0.105943
0.105943
0
0.01971
0.149162
1,133
38
115
29.815789
0.783195
0.225066
0
0
0
0.045455
0.135104
0.077367
0
0
0
0
0.136364
1
0.045455
false
0
0.363636
0
0.409091
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
0
0
0
1
fc9a1a39b3296826e907495832bc3af4f7e73f45
302
py
Python
tools/_init_paths.py
songheony/SPM-Tracker
41fd91ec42cf9072fe44d45c5bb68993f28a12ad
[ "MIT" ]
32
2019-08-30T09:50:03.000Z
2021-10-12T08:36:25.000Z
tools/_init_paths.py
songheony/SPM-Tracker
41fd91ec42cf9072fe44d45c5bb68993f28a12ad
[ "MIT" ]
3
2019-09-05T09:45:52.000Z
2020-12-02T02:42:08.000Z
tools/_init_paths.py
songheony/SPM-Tracker
41fd91ec42cf9072fe44d45c5bb68993f28a12ad
[ "MIT" ]
16
2019-09-10T09:04:53.000Z
2021-09-13T12:44:47.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import os import sys if os.path.basename(os.path.abspath(os.getcwd())) == "tools": os.chdir("..") root_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) sys.path.insert(0, root_dir)
25.166667
73
0.705298
46
302
4.5
0.630435
0.144928
0.125604
0.144928
0
0
0
0
0
0
0
0.003759
0.119205
302
11
74
27.454545
0.774436
0.294702
0
0
0
0
0.042857
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
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
0
0
0
1
fc9d4b9181ddbaa55493e7d3e17b2eb967d255f2
2,334
py
Python
survae/transforms/injections/ppca.py
robert-giaquinto/survae_flows
4d7dc638f77c48ad3c8393b967c33ac9dbad60fe
[ "MIT" ]
2
2021-03-06T19:37:39.000Z
2022-01-09T11:19:45.000Z
survae/transforms/injections/ppca.py
robert-giaquinto/survae_flows
4d7dc638f77c48ad3c8393b967c33ac9dbad60fe
[ "MIT" ]
null
null
null
survae/transforms/injections/ppca.py
robert-giaquinto/survae_flows
4d7dc638f77c48ad3c8393b967c33ac9dbad60fe
[ "MIT" ]
null
null
null
import numpy as np import math import torch import torch.nn as nn import torch.nn.functional as F from survae.transforms.bijections import Injection class PPCA(Injection): """ PPCA transformation for density estimation Args: base_dim: int, Dimension size of the base distribution (expected to be sm...
31.972603
106
0.610968
348
2,334
3.925287
0.29023
0.04612
0.036603
0.020498
0.119327
0.077599
0
0
0
0
0
0.009484
0.277207
2,334
72
107
32.416667
0.800237
0.155099
0
0.042553
0
0
0.00103
0
0
0
0
0.013889
0
1
0.085106
false
0
0.12766
0
0.297872
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
1
0
0
0
0
0
0
0
0
0
0
1
fca0a53114d535efd9dee528c718fbc0b1e75504
493
py
Python
Twitter/my_module/text_validator.py
s171156/Web_Crawler
3f727bd60514f34d5c8218330920441d2013e301
[ "WTFPL" ]
null
null
null
Twitter/my_module/text_validator.py
s171156/Web_Crawler
3f727bd60514f34d5c8218330920441d2013e301
[ "WTFPL" ]
null
null
null
Twitter/my_module/text_validator.py
s171156/Web_Crawler
3f727bd60514f34d5c8218330920441d2013e301
[ "WTFPL" ]
null
null
null
import re def validate_username(text): ''' 正規表現でTwitterのユーザー名としての妥当性を検証します。 ''' if text[0] == '@': # ユーザー名は15文字以下 if len(text) > 16: return False else: # ユーザー名は15文字以下 if len(text) > 15: return False pattern = r"@\w+" repatter = re.c...
16.433333
36
0.565923
51
493
5.254902
0.54902
0.078358
0.126866
0.156716
0
0
0
0
0
0
0
0.038806
0.320487
493
29
37
17
0.761194
0.15213
0
0.133333
0
0
0.0325
0
0
0
0
0
0
1
0.133333
false
0.066667
0.066667
0.066667
0.466667
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
0
0
0
1
fca25314496ddd36d93af956cfcf3dcc4cfafd9c
1,005
py
Python
src/cmd/Tasks/Clean/CleanBuild.py
flexiooss/hotballoon-shed
5f934523c5092ca3d5fb5d8530ebae0d20a1cce6
[ "Apache-2.0" ]
null
null
null
src/cmd/Tasks/Clean/CleanBuild.py
flexiooss/hotballoon-shed
5f934523c5092ca3d5fb5d8530ebae0d20a1cce6
[ "Apache-2.0" ]
79
2019-04-16T14:33:23.000Z
2022-01-18T16:15:52.000Z
src/cmd/Tasks/Clean/CleanBuild.py
flexiooss/hotballoon-shed
5f934523c5092ca3d5fb5d8530ebae0d20a1cce6
[ "Apache-2.0" ]
null
null
null
import shutil from pathlib import Path from cmd.Directories import Directories from cmd.Tasks.Task import Task from cmd.Tasks.Tasks import Tasks from cmd.package.modules.Module import Module from cmd.package.modules.ModulesHandler import ModulesHandler class CleanBuild(Task): NAME = Tasks.CLEAN_BUILD def __...
33.5
102
0.682587
123
1,005
5.455285
0.317073
0.098361
0.101341
0.062593
0.149031
0
0
0
0
0
0
0
0.212935
1,005
29
103
34.655172
0.848293
0
0
0
0
0
0.041791
0
0
0
0
0
0
1
0.090909
false
0
0.318182
0
0.5
0.090909
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
0
0
0
1
fca34452f14c9c035e7e48e7630fa4618b0978c9
1,556
py
Python
test-keybase.py
moocowmoo/paywall
3c6629d0e6c9e48237334a6f8209e7cbd8c88c4e
[ "Apache-2.0" ]
2
2017-12-20T03:54:53.000Z
2018-04-14T18:44:33.000Z
test-keybase.py
moocowmoo/paywall
3c6629d0e6c9e48237334a6f8209e7cbd8c88c4e
[ "Apache-2.0" ]
null
null
null
test-keybase.py
moocowmoo/paywall
3c6629d0e6c9e48237334a6f8209e7cbd8c88c4e
[ "Apache-2.0" ]
1
2017-12-05T07:10:42.000Z
2017-12-05T07:10:42.000Z
#!/usr/bin/python3 import cgi import cgitb import datetime import json import os import re import requests import subprocess import sys import time from bmdjson import check_address print("Content-Type: text/plain\n") print("testing keybase") print() print("PASS:") signature = "BEGIN KEYBASE SALTPACK SIGNED MESSAG...
36.186047
339
0.782134
194
1,556
6.206186
0.510309
0.009967
0.069767
0.093023
0.395349
0.340532
0.340532
0.340532
0.340532
0.254153
0
0.067759
0.136889
1,556
42
340
37.047619
0.828742
0.172879
0
0.259259
0
0.074074
0.565183
0
0
0
0
0
0
1
0
false
0.037037
0.407407
0
0.407407
0.37037
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
0
0
0
1
fca59d66b2525a9411df801d86a821ba3b15470b
1,076
py
Python
problems/A/ThreeStrings.py
deveshbajpai19/CodeForces
707b374f03012ec68054841f791d48b33ae4ef1b
[ "MIT" ]
55
2016-06-19T05:45:15.000Z
2022-03-31T15:18:53.000Z
problems/A/ThreeStrings.py
farhadcu/CodeForces-2
707b374f03012ec68054841f791d48b33ae4ef1b
[ "MIT" ]
null
null
null
problems/A/ThreeStrings.py
farhadcu/CodeForces-2
707b374f03012ec68054841f791d48b33ae4ef1b
[ "MIT" ]
25
2016-07-29T13:03:15.000Z
2021-09-17T01:45:45.000Z
__author__ = 'Devesh Bajpai' ''' https://codeforces.com/problemset/problem/1301/A Solution: Iterate over the strings (since they're of equal lengths, just run a loop of any of a,b or c's length. Since we need to swap a character of string a or b at ith position with that of c, we need to check the following conditio...
26.243902
120
0.629182
196
1,076
3.372449
0.464286
0.012103
0.018154
0.015129
0.078669
0.039334
0.039334
0.039334
0.039334
0.039334
0
0.007605
0.266729
1,076
40
121
26.9
0.830165
0.027881
0
0
0
0
0.058427
0
0
0
0
0
0
0
null
null
0
0
null
null
0.058824
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
0
0
1
5d793e3bc389123d4ea0e0a72d06760a4c7c5c28
551
py
Python
utils/utils.py
RogerZhangzz/CAG_UDA
422f99e2e0a5cb26a40d4f17ee5832f81580f7f0
[ "MIT" ]
126
2019-10-30T00:58:02.000Z
2022-01-26T06:29:10.000Z
utils/utils.py
liyongsheng-tech/CAG_UDA
422f99e2e0a5cb26a40d4f17ee5832f81580f7f0
[ "MIT" ]
14
2019-11-05T15:10:22.000Z
2022-02-08T09:05:53.000Z
utils/utils.py
BwCai/DCAA-UDA
359c2122060aebfbe4384c918768c261fe2dc9c7
[ "Apache-2.0" ]
26
2019-12-02T09:41:11.000Z
2022-01-29T10:46:41.000Z
import logging import os import datetime import numpy as np import random def get_logger(logdir): logger = logging.getLogger('ptsemseg') ts = str(datetime.datetime.now()).split('.')[0].replace(" ", "_") ts = ts.replace(":", "_").replace("-","_") file_path = os.path.join(logdir, 'run_{}.log'.format(ts))...
32.411765
74
0.676951
68
551
5.382353
0.558824
0.043716
0
0
0
0
0
0
0
0
0
0.002141
0.15245
551
17
75
32.411765
0.781585
0
0
0
0
0
0.112319
0
0
0
0
0
0
1
0.0625
false
0
0.3125
0
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
0
1
0
0
0
0
1
5d7bebbc6058f2d18ab8a333c5b8239ad41cfd44
931
py
Python
src/main/resources/project/wsadmin_scripts/Cluster/start_cluster.py
electric-cloud/EC-WebSphere
72930f119910190f8fc70acbb401319ca0eb0c19
[ "Apache-2.0" ]
null
null
null
src/main/resources/project/wsadmin_scripts/Cluster/start_cluster.py
electric-cloud/EC-WebSphere
72930f119910190f8fc70acbb401319ca0eb0c19
[ "Apache-2.0" ]
12
2016-09-23T04:42:55.000Z
2021-04-09T09:59:29.000Z
src/main/resources/project/wsadmin_scripts/Cluster/start_cluster.py
electric-cloud/EC-WebSphere
72930f119910190f8fc70acbb401319ca0eb0c19
[ "Apache-2.0" ]
2
2016-06-13T07:24:12.000Z
2018-05-08T12:49:33.000Z
$[/myProject/wsadmin_scripts/preamble.py] clusterName = r''' $[wasClusterName] '''.strip() timeout = r''' $[wasTimeout] '''.strip() timeout = uintOrZero(timeout) desiredClusterState = 'websphere.cluster.running' clusterMgr = getClusterManager() if not clusterMgr: logError("No cluster manager available, please...
23.871795
122
0.731472
100
931
6.79
0.56
0.030928
0.035346
0
0
0
0
0
0
0
0
0.005025
0.145005
931
38
123
24.5
0.84799
0
0
0.185185
0
0
0.285714
0.026853
0
0
0
0
0
0
null
null
0
0
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
0
0
0
0
0
0
1
5d7c996b42be1b9f839391ff354f4d6035d8b6a3
4,148
py
Python
wp/management/commands/import_to_blogango.py
agiliq/django-wordpress
8e67234800d223f764f3c19b99c5d7274b239795
[ "BSD-3-Clause" ]
12
2015-04-11T19:30:50.000Z
2021-10-30T20:06:05.000Z
wp/management/commands/import_to_blogango.py
agiliq/django-wordpress
8e67234800d223f764f3c19b99c5d7274b239795
[ "BSD-3-Clause" ]
null
null
null
wp/management/commands/import_to_blogango.py
agiliq/django-wordpress
8e67234800d223f764f3c19b99c5d7274b239795
[ "BSD-3-Clause" ]
5
2015-02-13T02:32:10.000Z
2021-06-24T21:05:18.000Z
from django.conf import settings from django.contrib.auth.models import User from django.core.management.base import BaseCommand, CommandError from django.template.defaultfilters import slugify from wp.models import Post, Comment as WpComment, TermTaxonomy, TermRelationship, Term from blogango.models import BlogEntry...
53.87013
104
0.564127
451
4,148
4.900222
0.27051
0.048869
0.079638
0.049774
0.220814
0.202715
0.1819
0.156561
0.156561
0.156561
0
0.00113
0.360174
4,148
77
105
53.87013
0.831575
0.053761
0
0.103448
0
0
0.108757
0.043911
0
0
0
0
0
0
null
null
0
0.137931
null
null
0.017241
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
0
0
1
5d83339c6b974234ad23e56e66655e4fedd48a04
1,431
py
Python
sardine/resolvers/repository/remote.py
JavierLuna/sardine
5f1348752ac7db601eb2ddc6ff6106bcf9d6d0ec
[ "MIT" ]
null
null
null
sardine/resolvers/repository/remote.py
JavierLuna/sardine
5f1348752ac7db601eb2ddc6ff6106bcf9d6d0ec
[ "MIT" ]
null
null
null
sardine/resolvers/repository/remote.py
JavierLuna/sardine
5f1348752ac7db601eb2ddc6ff6106bcf9d6d0ec
[ "MIT" ]
null
null
null
import os from git import Repo # type: ignore from sardine.exceptions.resolvers.repository_not_cloned import RepositoryNotCloned from sardine.resolvers.repository.base import BaseRepositoryResolver class RemoteRepositoryResolver(BaseRepositoryResolver): GITHUB_URL = 'https://github.com/{repository_name}' ...
37.657895
109
0.756813
158
1,431
6.594937
0.291139
0.147793
0.048944
0.057582
0.206334
0.165067
0.165067
0.165067
0.165067
0.165067
0
0
0.172607
1,431
37
110
38.675676
0.880068
0.027952
0
0.25
0
0
0.025937
0
0
0
0
0.027027
0
1
0.178571
false
0
0.142857
0.071429
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
1
0
0
0
0
0
0
0
0
0
0
1
5d86fa3d8b1a2598d887e239c284e39582bfb054
6,376
py
Python
flask/testsuite/__init__.py
bells/flask
1441e02256a169ded5e1bdeaa304b279de98d53a
[ "BSD-3-Clause" ]
1
2019-06-21T14:28:53.000Z
2019-06-21T14:28:53.000Z
flask/testsuite/__init__.py
bells/flask
1441e02256a169ded5e1bdeaa304b279de98d53a
[ "BSD-3-Clause" ]
null
null
null
flask/testsuite/__init__.py
bells/flask
1441e02256a169ded5e1bdeaa304b279de98d53a
[ "BSD-3-Clause" ]
1
2019-08-13T08:08:53.000Z
2019-08-13T08:08:53.000Z
# -*- coding: utf-8 -*- """ flask.testsuite ~~~~~~~~~~~~~~~ Tests Flask itself. The majority of Flask is already tested as part of Werkzeug. :copyright: (c) 2011 by Armin Ronacher. :license: BSD, see LICENSE for more details. """ from __future__ import with_statement import os import sys im...
28.337778
79
0.626568
807
6,376
4.799257
0.332094
0.019881
0.017041
0.002066
0.023754
0
0
0
0
0
0
0.001749
0.282622
6,376
224
80
28.464286
0.844993
0.032779
0
0.092199
0
0
0.041771
0
0
0
0
0
0.042553
0
null
null
0.014184
0.078014
null
null
0.007092
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
0
0
1
5d88a2090c6748a03bb1ee6c5850ecc3112a50bc
601
py
Python
basic-samples/grove_button.py
DnPlas/GroveExamples
8c43badf1dbb6df8ef07f400897f3fe6fb6777d9
[ "Apache-2.0" ]
1
2021-02-11T17:38:56.000Z
2021-02-11T17:38:56.000Z
basic-samples/grove_button.py
DnPlas/GroveExamples
8c43badf1dbb6df8ef07f400897f3fe6fb6777d9
[ "Apache-2.0" ]
null
null
null
basic-samples/grove_button.py
DnPlas/GroveExamples
8c43badf1dbb6df8ef07f400897f3fe6fb6777d9
[ "Apache-2.0" ]
2
2016-11-04T21:43:02.000Z
2016-11-11T02:44:56.000Z
# ---------- GROVE PUSH BUTTON ---------- # # Basic sample using UPM module for the # # Grove push button v1.1 # # Daniela Plascencia | daplascen@gmail.com # import pyupm_grove as g from time import sleep if __name__ == '__main__': bttn = g.GroveButton(4) # Instance the button and ...
27.318182
56
0.567388
76
601
4.368421
0.697368
0.072289
0.090361
0
0
0
0
0
0
0
0
0.015038
0.336106
601
21
57
28.619048
0.817043
0.472546
0
0
0
0
0.151316
0
0
0
0
0
0
0
null
null
0
0.2
null
null
0.2
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
0
0
1
5d89d6c0ebf9ab0be1ac506d52627d94b47932ff
486
py
Python
setup.py
cristianowa/exdict
b73af3b98f89aff3b703c9f03fa305a0dfe9ba0c
[ "MIT" ]
null
null
null
setup.py
cristianowa/exdict
b73af3b98f89aff3b703c9f03fa305a0dfe9ba0c
[ "MIT" ]
null
null
null
setup.py
cristianowa/exdict
b73af3b98f89aff3b703c9f03fa305a0dfe9ba0c
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name='exdict', packages=find_packages(), version='0.1', description='Extended Dict - dictionary with attributes', author='Cristiano W. Araujo', author_email='cristianowerneraraujo@gmail.com', url='https://github.c...
34.714286
77
0.639918
50
486
6.14
0.68
0.078176
0.091205
0.110749
0.221498
0.221498
0
0
0
0
0
0.01061
0.22428
486
13
78
37.384615
0.803714
0
0
0
0
0
0.41358
0.063786
0
0
0
0
0
1
0
true
0
0.076923
0
0.076923
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
0
0
0
1
5d8c899eecc28836d3e30b19c824650c7743e023
19,532
py
Python
tensorflow/contrib/layers/python/layers/normalization_test.py
DamonLiuTHU/tensorflow
6da10c1d45103a2bd78e6b9b96f9fda25e130e90
[ "Apache-2.0" ]
1
2019-05-13T16:25:40.000Z
2019-05-13T16:25:40.000Z
tensorflow/contrib/layers/python/layers/normalization_test.py
wuhongchangbc/tensorflow
97ad4337bcadba3e8fb025906a2a46ea0224e457
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/layers/python/layers/normalization_test.py
wuhongchangbc/tensorflow
97ad4337bcadba3e8fb025906a2a46ea0224e457
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The TensorFlow Authors. 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
39.699187
82
0.681651
2,485
19,532
5.185513
0.107445
0.040975
0.018625
0.034146
0.773786
0.731647
0.683998
0.654121
0.615474
0.540354
0
0.034658
0.203768
19,532
491
83
39.780041
0.793917
0.104802
0
0.524804
0
0
0.038091
0.004302
0
0
0
0
0.120104
1
0.109661
false
0
0.028721
0
0.143603
0.007833
0
0
0
null
0
0
0
0
1
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
1
5d8d410d47ffb7c748c0ca52b1d5669da687bb51
311
py
Python
django/scoreboard/urls.py
ngc7293/rvscore
e51f5faf8f2b5cdeed7c0189ea03e3760c2e8fb5
[ "MIT" ]
null
null
null
django/scoreboard/urls.py
ngc7293/rvscore
e51f5faf8f2b5cdeed7c0189ea03e3760c2e8fb5
[ "MIT" ]
null
null
null
django/scoreboard/urls.py
ngc7293/rvscore
e51f5faf8f2b5cdeed7c0189ea03e3760c2e8fb5
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('', views.scoreboard, name='scoreboard'), path('json/<track>/<mode>/<category>/', views.scoreboard_json, name='json_scoreboard'), path('sync/', views.sync, name='sync'), path('sync/<int:count>/', views.sync, name='sync'), ]
31.1
91
0.659164
39
311
5.205128
0.410256
0.147783
0.128079
0.167488
0
0
0
0
0
0
0
0
0.131833
311
10
92
31.1
0.751852
0
0
0
0
0
0.275641
0.099359
0
0
0
0
0
1
0
false
0
0.25
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5d8fb66e9d7a64a54b0d6efc5790b1283f926037
1,072
py
Python
doc/conf.py
jacquev6/RecursiveDocument
dd541bfab4e53e547f11e12aeb447e1d3927f4b5
[ "MIT" ]
null
null
null
doc/conf.py
jacquev6/RecursiveDocument
dd541bfab4e53e547f11e12aeb447e1d3927f4b5
[ "MIT" ]
null
null
null
doc/conf.py
jacquev6/RecursiveDocument
dd541bfab4e53e547f11e12aeb447e1d3927f4b5
[ "MIT" ]
null
null
null
# coding: utf-8 # Copyright 2012-2015 Vincent Jacques <vincent@vincent-jacques.net> master_doc = "index" project = "Recursive\nDocument" author = '<a href="http://vincent-jacques.net/contact">Vincent Jacques</a>' copyright = "2015 {}".format(author) extensions = [] nitpicky = True # nitpick_ignore # https://githu...
22.333333
75
0.749067
134
1,072
5.746269
0.537313
0.072727
0.044156
0.041558
0.124675
0
0
0
0
0
0
0.014706
0.11194
1,072
47
76
22.808511
0.794118
0.33209
0
0
0
0
0.346154
0
0
0
0
0.021277
0
1
0
false
0
0
0
0
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
1
0
0
0
0
0
0
0
0
0
0
1
5d9070124d56eccc33769ce2bb8331d5c7344850
2,104
py
Python
fatiando/tests/test_random.py
XuesongDing/fatiando
57a0e0802fde2e53628511d3a7a2964e69bb309a
[ "BSD-3-Clause" ]
179
2015-03-08T08:50:45.000Z
2022-03-20T08:19:05.000Z
fatiando/tests/test_random.py
XuesongDing/fatiando
57a0e0802fde2e53628511d3a7a2964e69bb309a
[ "BSD-3-Clause" ]
207
2015-01-12T17:04:57.000Z
2021-01-08T23:36:11.000Z
fatiando/tests/test_random.py
XuesongDing/fatiando
57a0e0802fde2e53628511d3a7a2964e69bb309a
[ "BSD-3-Clause" ]
114
2015-01-29T18:51:22.000Z
2022-03-25T12:35:43.000Z
from __future__ import absolute_import, division from future.builtins import range import numpy from numpy.testing import assert_allclose from fatiando import utils def test_utils_contaminate(): "utils.contaminate generates noise with 0 mean and right stddev" size = 10 ** 6 data = numpy.zeros(size) st...
32.369231
76
0.637357
299
2,104
4.411371
0.217391
0.230478
0.136467
0.132676
0.682335
0.622441
0.518575
0.476118
0.383624
0.335102
0
0.069159
0.237167
2,104
64
77
32.875
0.752648
0.13403
0
0.351852
0
0
0.14924
0
0
0
0
0
0.166667
1
0.092593
false
0
0.092593
0
0.185185
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
0
0
0
1
5d91b288fe8edaa55bddebc2a4d3749a1ef663f7
3,118
py
Python
src/day8/python/solution.py
kamathmanu/advent-of-code-2020
72ac7c33a674dcc75469d049f22120247389545a
[ "MIT" ]
null
null
null
src/day8/python/solution.py
kamathmanu/advent-of-code-2020
72ac7c33a674dcc75469d049f22120247389545a
[ "MIT" ]
null
null
null
src/day8/python/solution.py
kamathmanu/advent-of-code-2020
72ac7c33a674dcc75469d049f22120247389545a
[ "MIT" ]
null
null
null
# consider our input stored as a list of the command, with an extra field # specifying if the command was visited or not. Each time we visit a command, # we set this to true. We then traverse the list based on the command type # if it is a jump we use the indices to travel to the next element # if it is an acc, we go t...
38.02439
112
0.624439
479
3,118
3.991649
0.388309
0.021967
0.027197
0.025105
0.020921
0.020921
0
0
0
0
0
0.00813
0.289929
3,118
81
113
38.493827
0.855465
0.442591
0
0.259259
0
0
0.023893
0
0
0
0
0.012346
0
1
0.111111
false
0
0.055556
0
0.277778
0.037037
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
0
0
1
5d93f9554d7c5796d3a6a2ff829095d67d4ddade
1,273
py
Python
examples/digital_inputs/led_touch_sensor_example.py
richardlford/pyev3dev2
c9f58483be8527027701ec7f03caefd1dea0f88e
[ "MIT" ]
null
null
null
examples/digital_inputs/led_touch_sensor_example.py
richardlford/pyev3dev2
c9f58483be8527027701ec7f03caefd1dea0f88e
[ "MIT" ]
null
null
null
examples/digital_inputs/led_touch_sensor_example.py
richardlford/pyev3dev2
c9f58483be8527027701ec7f03caefd1dea0f88e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Example of using LED syntax and the Touch Sensor. Also a fun little robot countdown. Author: David Fisher. """ import ev3dev.ev3 as ev3 import time def main(): print("--------------------------------------------") print(" Touch Sensor + LEDs") print("----------------------...
28.931818
85
0.508248
158
1,273
4.025316
0.43038
0.20912
0.09434
0.141509
0.331761
0.331761
0.331761
0.331761
0.331761
0.226415
0
0.038123
0.196386
1,273
43
86
29.604651
0.583578
0.24509
0
0.16
0
0
0.153684
0.092632
0
0
0
0
0.04
1
0.04
false
0
0.08
0
0.12
0.16
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
0
0
1
5d95ea7988f7eec031e39647bcf698d3d06f388d
1,287
py
Python
app/conf.py
sparklecoin/papi
d22260355f45c116e9315b5acd804180228bff42
[ "MIT" ]
4
2017-12-02T01:20:24.000Z
2018-06-19T16:52:47.000Z
app/conf.py
saeveritt/papi
58799a85caced4b5635038754d9b6c57bbe7377c
[ "BSD-3-Clause" ]
19
2017-11-18T17:30:49.000Z
2018-07-18T22:10:44.000Z
app/conf.py
saeveritt/papi
58799a85caced4b5635038754d9b6c57bbe7377c
[ "BSD-3-Clause" ]
9
2017-11-23T00:13:03.000Z
2022-01-04T13:20:35.000Z
from os import environ # db connection URI to be passed to sqlalchemy, as in http://docs.sqlalchemy.org/en/latest/core/engines.html db_engine = environ.get('DB', None) # check if app is running in docker app_env = environ.get('APP_ENV', None) # run on testnet or not testnet = environ.get('PA_TESTNET', True) # follow p...
41.516129
126
0.760684
204
1,287
4.715686
0.465686
0.114345
0.054054
0.035343
0.04158
0
0
0
0
0
0
0.008182
0.145299
1,287
30
127
42.9
0.866364
0.557887
0
0
0
0
0.209765
0
0
0
0
0
0
1
0
false
0.071429
0.071429
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
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
5d97d356cff217057dfb9792652692a50f4f6740
3,556
py
Python
Part-10 Pytest Testing 1/ecommerce/apps/account/migrations/0001_initial.py
azizkra/django-ecommerce-project
5cfae7705a970f898c511368b7601187102cd0ed
[ "MIT" ]
175
2021-04-17T14:14:12.000Z
2022-03-29T06:37:23.000Z
Part-10 Pytest Testing 1/ecommerce/apps/account/migrations/0001_initial.py
azizkra/django-ecommerce-project
5cfae7705a970f898c511368b7601187102cd0ed
[ "MIT" ]
8
2021-05-22T11:10:49.000Z
2022-03-06T02:55:00.000Z
Part-10 Pytest Testing 1/ecommerce/apps/account/migrations/0001_initial.py
azizkra/django-ecommerce-project
5cfae7705a970f898c511368b7601187102cd0ed
[ "MIT" ]
182
2021-04-17T15:49:51.000Z
2022-03-31T16:27:46.000Z
# Generated by Django 3.2 on 2021-04-09 20:36 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ] o...
57.354839
266
0.630484
386
3,556
5.611399
0.331606
0.111727
0.074792
0.099723
0.309788
0.254386
0.172669
0.085873
0.085873
0.040628
0
0.019132
0.235658
3,556
61
267
58.295082
0.777778
0.012092
0
0.185185
1
0
0.234691
0.01652
0
0
0
0
0
1
0
false
0.018519
0.074074
0
0.148148
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
0
0
0
1
5d98690d87fbe379cee7caa7d8ef1254c03e6f8b
19,861
py
Python
scripts/geodyn1d/isostasy/isostasy.py
tth030/SM_ESR_isostasy
fbd2ac586e8e31dd18a0988181514bc2fff7f08a
[ "MIT" ]
null
null
null
scripts/geodyn1d/isostasy/isostasy.py
tth030/SM_ESR_isostasy
fbd2ac586e8e31dd18a0988181514bc2fff7f08a
[ "MIT" ]
null
null
null
scripts/geodyn1d/isostasy/isostasy.py
tth030/SM_ESR_isostasy
fbd2ac586e8e31dd18a0988181514bc2fff7f08a
[ "MIT" ]
null
null
null
import numpy as np from ..tools import * from ..thermodyn import * from scipy.interpolate import RegularGridInterpolator g = 9.80665 # (m/s2) class pressure_density_profile(object): def __init__(self,P=[],Z=[],rho=[],melt_fraction=[],dz=200): self.P = P # pressure (MPa) self.Z = Z ...
46.622066
154
0.615024
2,396
19,861
4.985392
0.111018
0.075345
0.108832
0.184512
0.690331
0.649393
0.589787
0.566262
0.543491
0.510088
0
0.019975
0.26902
19,861
425
155
46.731765
0.802797
0.197623
0
0.483755
0
0
0.026293
0.001454
0
0
0
0.002353
0
1
0.072202
false
0.00722
0.01444
0.01083
0.176895
0.043321
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
0
0
0
1
5d9a14308a3d014654bc6051be5ae538216acea9
7,504
py
Python
gae/cli.py
digitalmenta/sendlater
be6bd6858d2f2f2d806259538d9a7e9e2249b605
[ "Apache-2.0" ]
34
2016-06-28T15:06:20.000Z
2020-01-13T11:41:58.000Z
gae/cli.py
digitalmenta/sendlater
be6bd6858d2f2f2d806259538d9a7e9e2249b605
[ "Apache-2.0" ]
5
2016-06-28T16:31:17.000Z
2016-09-28T10:04:54.000Z
gae/cli.py
digitalmenta/sendlater
be6bd6858d2f2f2d806259538d9a7e9e2249b605
[ "Apache-2.0" ]
19
2016-06-27T23:56:30.000Z
2017-10-24T05:56:53.000Z
#!/usr/bin/python import logging from oauth2client.client import flow_from_clientsecrets, \ credentials_from_clientsecrets_and_code, ID_TOKEN_VERIFICATON_CERTS from oauth2client.file import Storage from oauth2client.client import SignedJwtAssertionCredentials, MemoryCache from oauth2client import crypt import jso...
30.628571
335
0.671908
967
7,504
5.057911
0.275078
0.017174
0.019628
0.026579
0.231037
0.184216
0.184216
0.130648
0.110407
0.110407
0
0.011872
0.214286
7,504
244
336
30.754098
0.817673
0.113539
0
0.15894
0
0.006623
0.159747
0.015174
0
0
0
0
0.006623
0
null
null
0
0.10596
null
null
0.099338
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
0
0
1
5d9b51ee59c31d56144da9d776539e393f177ade
570
py
Python
tools/GLR/map_cls_idx.py
Chrisfsj2051/my_tools
67355a46df6290aa2fdc1e0266c61daacced3ba1
[ "MIT" ]
null
null
null
tools/GLR/map_cls_idx.py
Chrisfsj2051/my_tools
67355a46df6290aa2fdc1e0266c61daacced3ba1
[ "MIT" ]
null
null
null
tools/GLR/map_cls_idx.py
Chrisfsj2051/my_tools
67355a46df6290aa2fdc1e0266c61daacced3ba1
[ "MIT" ]
null
null
null
import random import mmcv import numpy as np import os import pandas as pd import argparse def parse_args(): parser = argparse.ArgumentParser() parser.add_argument('--raw_data', default='data/Recognition/train.csv') parser.add_argument('--out', default='data/generated_anns/Recognition/') args = parse...
21.923077
76
0.707018
78
570
4.884615
0.474359
0.070866
0.089239
0
0
0
0
0
0
0
0
0
0.164912
570
25
77
22.8
0.80042
0
0
0
0
0
0.214035
0.154386
0
0
0
0
0
1
0.105263
false
0
0.315789
0
0.473684
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
0
0
0
1
5d9bf84191b5d3a1246fc0ea02f7fd5f24c0e256
6,044
py
Python
examples/admin_commands.py
E-Tahta/sleekxmpp
ed067c9412835c5fe44bf203936262bcec09ced4
[ "BSD-3-Clause" ]
499
2015-01-04T21:45:16.000Z
2022-02-14T13:04:08.000Z
examples/admin_commands.py
E-Tahta/sleekxmpp
ed067c9412835c5fe44bf203936262bcec09ced4
[ "BSD-3-Clause" ]
159
2015-01-02T19:09:47.000Z
2020-02-12T08:29:54.000Z
examples/admin_commands.py
E-Tahta/sleekxmpp
ed067c9412835c5fe44bf203936262bcec09ced4
[ "BSD-3-Clause" ]
209
2015-01-07T16:23:16.000Z
2022-01-26T13:02:20.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ SleekXMPP: The Sleek XMPP Library Copyright (C) 2010 Nathanael C. Fritz This file is part of SleekXMPP. See the file LICENSE for copying permission. """ import sys import logging import getpass from optparse import OptionParser import sleekxmpp # P...
33.765363
79
0.559894
690
6,044
4.814493
0.346377
0.012643
0.02348
0.018061
0.098435
0.076159
0.047562
0
0
0
0
0.009262
0.321145
6,044
178
80
33.955056
0.80039
0.25728
0
0.121212
0
0
0.158719
0
0
0
0
0
0
1
0.050505
false
0.080808
0.060606
0
0.121212
0.090909
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
0
0
0
1
5da05201b09e1d07c249e43c570b716eeaf82112
253
py
Python
day1/hello.py
choukin/learnPython
a456c175577c3507ecd4dc138c7324f8a2803b47
[ "MIT" ]
null
null
null
day1/hello.py
choukin/learnPython
a456c175577c3507ecd4dc138c7324f8a2803b47
[ "MIT" ]
null
null
null
day1/hello.py
choukin/learnPython
a456c175577c3507ecd4dc138c7324f8a2803b47
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 print('helo, world') print('''line1 ... line2 ... line3''') n = 123 f = 456.789 s1 = 'Hello, world' s2 = 'Hello, \'Adam\'' s3 = r'Hello, "Bart"' s4 = r'''Hello, Lisa!''' print(n) print(f) print(s1) print(s2) print(s3) print(s4)
12.047619
22
0.58498
42
253
3.52381
0.571429
0.081081
0
0
0
0
0
0
0
0
0
0.098131
0.15415
253
21
23
12.047619
0.593458
0.083004
0
0
0
0
0.349138
0
0
0
0
0
0
1
0
false
0
0
0
0
0.470588
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
0
0
1
0
1
5da2f9002103cc2142a97426a0981f81e107b964
564
py
Python
setup.py
timgates42/clip.py
4429559adf26e6a2ce22175b5b12f40378427bf1
[ "MIT" ]
48
2015-01-04T23:48:48.000Z
2020-11-25T16:41:39.000Z
setup.py
timgates42/clip.py
4429559adf26e6a2ce22175b5b12f40378427bf1
[ "MIT" ]
7
2015-01-09T18:40:20.000Z
2020-11-25T17:14:57.000Z
setup.py
timgates42/clip.py
4429559adf26e6a2ce22175b5b12f40378427bf1
[ "MIT" ]
7
2015-01-13T22:05:51.000Z
2021-08-03T20:41:10.000Z
try: from setuptools import setup except ImportError: from distutils.core import setup setup( name='clip.py', version='0.3.2', url='https://github.com/willyg302/clip.py', license='MIT', author='William Gaul', author_email='willyg302@gmail.com', description='Embeddable, composable command line interface parsin...
23.5
69
0.712766
72
564
5.513889
0.736111
0.055416
0.125945
0
0
0
0
0
0
0
0
0.026477
0.129433
564
23
70
24.521739
0.782077
0
0
0
0
0
0.45922
0
0
0
0
0
0
1
0
true
0
0.136364
0
0.136364
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
0
0
0
1
5da365148bb7faefa26d82a008c9c6912df56b0b
3,134
py
Python
trifinger_simulation/tasks/move_cube/run_replay.py
42jaylonw/rrc_2021_three_wolves
f5b8c1589f14c6b8455f438cbb62ed74e9ad8551
[ "BSD-3-Clause" ]
null
null
null
trifinger_simulation/tasks/move_cube/run_replay.py
42jaylonw/rrc_2021_three_wolves
f5b8c1589f14c6b8455f438cbb62ed74e9ad8551
[ "BSD-3-Clause" ]
null
null
null
trifinger_simulation/tasks/move_cube/run_replay.py
42jaylonw/rrc_2021_three_wolves
f5b8c1589f14c6b8455f438cbb62ed74e9ad8551
[ "BSD-3-Clause" ]
1
2022-01-05T11:40:32.000Z
2022-01-05T11:40:32.000Z
#!/usr/bin/env python3 """Replay results of "run_evaluate_policy_all_levels.py" and compute reward. Reads the files generated by "run_evaluate_policy_all_levels.py" and replays the action logs to verify the result and to compute the total reward over all runs. """ # IMPORTANT: DO NOT MODIFY THIS FILE! # Submissions ...
28.234234
79
0.578175
365
3,134
4.79726
0.416438
0.055968
0.034266
0.022844
0.06739
0.06739
0.035408
0
0
0
0
0.005007
0.298979
3,134
110
80
28.490909
0.791989
0.186343
0
0.054795
1
0
0.138462
0.054438
0
0
0
0
0
1
0.027397
false
0
0.09589
0
0.205479
0.068493
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
0
0
0
1
5da3f8e57dd7ea5109522d5dca073cc92fc23c83
365
py
Python
tests/test_skylog.py
gargii/python-skytools
8b75647e03809f3ceb98cd614e868393f3262e6a
[ "ISC" ]
7
2019-11-17T01:59:41.000Z
2021-04-23T15:01:03.000Z
tests/test_skylog.py
gargii/python-skytools
8b75647e03809f3ceb98cd614e868393f3262e6a
[ "ISC" ]
2
2019-09-15T16:38:02.000Z
2022-02-07T07:35:28.000Z
tests/test_skylog.py
gargii/python-skytools
8b75647e03809f3ceb98cd614e868393f3262e6a
[ "ISC" ]
4
2017-11-18T16:49:26.000Z
2021-11-15T15:19:33.000Z
import logging import skytools from skytools import skylog def test_trace_setup(): assert skylog.TRACE < logging.DEBUG assert skylog.TRACE == logging.TRACE assert logging.getLevelName(skylog.TRACE) == "TRACE" def test_skylog(): log = skytools.getLogger("test.skylog") log.trace("tracemsg") ...
18.25
56
0.726027
45
365
5.822222
0.377778
0.125954
0.129771
0.183206
0
0
0
0
0
0
0
0
0.172603
365
19
57
19.210526
0.86755
0
0
0
0
0
0.066116
0
0
0
0
0
0.363636
1
0.181818
false
0
0.272727
0
0.454545
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
0
0
0
1
5da63bc7f5c0422ecacac6221c0e96887605ccf5
173
py
Python
postfind/__init__.py
ietf-svn-conversion/postfind-final
1b044159cdf3df48821e48d60c2efa384cd1be3b
[ "BSD-3-Clause" ]
null
null
null
postfind/__init__.py
ietf-svn-conversion/postfind-final
1b044159cdf3df48821e48d60c2efa384cd1be3b
[ "BSD-3-Clause" ]
null
null
null
postfind/__init__.py
ietf-svn-conversion/postfind-final
1b044159cdf3df48821e48d60c2efa384cd1be3b
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2018 the IETF Trust, All Rights Reserved # -*- coding: utf-8 -*- __version__ = '0.2.0' __date__ = "$Date:$" __rev__ = "$Rev:$" __id__ = "$Id:$"
14.416667
52
0.554913
21
173
3.809524
0.809524
0
0
0
0
0
0
0
0
0
0
0.061538
0.248555
173
11
53
15.727273
0.553846
0.416185
0
0
0
0
0.237113
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
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
1
5da64050d873ff889324aa508b12743d329a776b
543
py
Python
payit/gateways/__init__.py
meyt/pyment
56fda0deb3f19146348edfe829fb01a50d2fff27
[ "MIT" ]
null
null
null
payit/gateways/__init__.py
meyt/pyment
56fda0deb3f19146348edfe829fb01a50d2fff27
[ "MIT" ]
1
2017-11-16T10:02:16.000Z
2017-11-16T14:57:09.000Z
payit/gateways/__init__.py
meyt/pyment
56fda0deb3f19146348edfe829fb01a50d2fff27
[ "MIT" ]
null
null
null
from .mellat import MellatGateway from .payir import PayIrGateway from .zarinpal import ZarinpalGateway from .irankish import IrankishGateway from .asanpardakht import AsanPardakhtGateway from .parsian import ParsianGateway from .bahamta import BahamtaGateway from .aqayepardakht import AqayepardakhtGateway from .dummy ...
24.681818
47
0.802947
46
543
9.391304
0.456522
0
0
0
0
0
0
0
0
0
0
0
0.158379
543
21
48
25.857143
0.945295
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.45
0
0.45
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
0
0
0
1
5daaba2d959cdfdfe2c95eb7cdf3125c815f145d
982
py
Python
attedence_system/customization/attendance/attendance.py
pooja586/attedence_system
d94d8415f211bda07e231b61b31608e13df17fd1
[ "MIT" ]
null
null
null
attedence_system/customization/attendance/attendance.py
pooja586/attedence_system
d94d8415f211bda07e231b61b31608e13df17fd1
[ "MIT" ]
null
null
null
attedence_system/customization/attendance/attendance.py
pooja586/attedence_system
d94d8415f211bda07e231b61b31608e13df17fd1
[ "MIT" ]
null
null
null
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe from frappe.utils import getdate, nowdate from frappe import _ from frappe.model.document import Document # from erpnext.hr.utils import ...
39.28
101
0.735234
148
982
4.756757
0.52027
0.039773
0.045455
0.053977
0.065341
0
0
0
0
0
0
0.013398
0.163951
982
25
102
39.28
0.844093
0.284114
0
0
0
0
0.346705
0
0
0
0
0
0
1
0.0625
false
0
0.3125
0
0.375
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
0
0
0
1
5db5b0659ab3a46dca2d11753b956746b0c46158
8,838
py
Python
fekw.py
AdamGlowicki/erpzgeckonetu
ce32d351c22bbb54732f6fa779d269d5ba58c5af
[ "MIT" ]
null
null
null
fekw.py
AdamGlowicki/erpzgeckonetu
ce32d351c22bbb54732f6fa779d269d5ba58c5af
[ "MIT" ]
null
null
null
fekw.py
AdamGlowicki/erpzgeckonetu
ce32d351c22bbb54732f6fa779d269d5ba58c5af
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 # firefox 57 + geckodrv 0.16.0 import os import random import sys import time import commands import argparse import requests import mysql.connector from requests.adapters import HTTPAdapter from selenium import webdriver from selenium.webdriver import ActionChains from selenium....
34.255814
145
0.667911
987
8,838
5.834853
0.281662
0.032471
0.038375
0.055565
0.399722
0.350582
0.266018
0.173294
0.127453
0.113214
0
0.013089
0.196085
8,838
257
146
34.389105
0.797467
0.091763
0
0.185629
0
0.017964
0.272852
0.075425
0
0
0
0
0
0
null
null
0.011976
0.113772
null
null
0.11976
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
0
0
1
5dbd85be6471aecff14bb964bdc0b224e61f538a
2,295
py
Python
bs_table_py/lazy_join.py
agdsn/bootstrap-table-py
933afd787dfa2cbe0824e6ea619ae32e18f2d8c6
[ "Apache-2.0" ]
18
2016-04-20T19:00:56.000Z
2021-12-19T16:43:57.000Z
bs_table_py/lazy_join.py
agdsn/bootstrap-table-py
933afd787dfa2cbe0824e6ea619ae32e18f2d8c6
[ "Apache-2.0" ]
461
2016-07-20T00:42:59.000Z
2022-03-25T17:03:07.000Z
bs_table_py/lazy_join.py
agdsn/bootstrap-table-py
933afd787dfa2cbe0824e6ea619ae32e18f2d8c6
[ "Apache-2.0" ]
15
2016-07-15T18:46:43.000Z
2021-03-17T20:08:39.000Z
from functools import wraps from types import FunctionType from typing import Generator, Callable, Iterable, overload def filled_iter(iter, filler): """Inbetween every iteration, yield a constant filler.""" first = True for elem in iter: if not first: yield filler else: ...
29.423077
82
0.649237
262
2,295
5.450382
0.324427
0.039216
0.042017
0.031513
0.081933
0.055322
0.040616
0
0
0
0
0
0.259259
2,295
77
83
29.805195
0.84
0.095861
0
0.148148
0
0
0.055015
0
0
0
0
0
0
1
0.222222
false
0
0.055556
0.037037
0.481481
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
0
0
0
1
5dc2a8013bdae90ba5c0a43c1fda2d3a08209486
3,917
py
Python
dosagelib/plugins/r.py
yasen-m/dosage
81fe088621ad335cac2a53fcbc7b9b37f49ddce2
[ "MIT" ]
null
null
null
dosagelib/plugins/r.py
yasen-m/dosage
81fe088621ad335cac2a53fcbc7b9b37f49ddce2
[ "MIT" ]
null
null
null
dosagelib/plugins/r.py
yasen-m/dosage
81fe088621ad335cac2a53fcbc7b9b37f49ddce2
[ "MIT" ]
null
null
null
# -*- coding: iso-8859-1 -*- # Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs # Copyright (C) 2012-2014 Bastian Kleineidam from re import compile, escape from ..scraper import _BasicScraper from ..helpers import bounceStarter from ..util import tagre class RadioactivePanda(_BasicScraper): url = 'h...
39.17
115
0.619607
473
3,917
5.099366
0.310782
0.074627
0.05597
0.056385
0.328773
0.247512
0.099088
0.075871
0.075871
0.033168
0
0.016203
0.164922
3,917
99
116
39.565657
0.721186
0.033444
0
0.12987
0
0
0.385246
0.099418
0
0
0
0
0
1
0
false
0
0.051948
0
0.987013
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
0
1
0
0
1
5dc8213d157f8bde5f014fab8e2a1b1afed37503
1,034
py
Python
core/file_handling.py
Dr3xler/CookieConsentChecker
816cdfb9d9dc741c57dbcd5e9c9ef59837196631
[ "MIT" ]
null
null
null
core/file_handling.py
Dr3xler/CookieConsentChecker
816cdfb9d9dc741c57dbcd5e9c9ef59837196631
[ "MIT" ]
3
2021-04-29T22:57:09.000Z
2021-05-03T15:32:39.000Z
core/file_handling.py
Dr3xler/CookieConsentChecker
816cdfb9d9dc741c57dbcd5e9c9ef59837196631
[ "MIT" ]
1
2021-08-29T09:53:09.000Z
2021-08-29T09:53:09.000Z
import json def website_reader(): """This method will read the websites.txt file into a list""" # reading txt file for websites used by selenium with open('data/websites', "r") as f: websites = f.readlines() websites = [x.strip() for x in websites] return websites def website_reader_to...
27.210526
65
0.655706
144
1,034
4.659722
0.284722
0.062593
0.071535
0.080477
0.685544
0.685544
0.685544
0.685544
0.685544
0.685544
0
0.019084
0.239845
1,034
37
66
27.945946
0.834606
0.298839
0
0.4
0
0
0.097595
0.033946
0
0
0
0
0
1
0.15
false
0
0.05
0
0.35
0
0
0
0
null
0
0
0
0
0
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
1