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
eb9fd0269907f86d115d62e0ea0520c852272710
249
py
Python
source/tools/filetool.py
chopin1993/protocolmaster-20210731
e23e235ee00b940a4161c606415574d2a52c701c
[ "Apache-2.0" ]
null
null
null
source/tools/filetool.py
chopin1993/protocolmaster-20210731
e23e235ee00b940a4161c606415574d2a52c701c
[ "Apache-2.0" ]
null
null
null
source/tools/filetool.py
chopin1993/protocolmaster-20210731
e23e235ee00b940a4161c606415574d2a52c701c
[ "Apache-2.0" ]
null
null
null
import os def get_file_list(root, key=None): files = os.listdir(root) if key is not None: files.sort(key=key) return files def get_config_file(name): return os.path.join(os.path.dirname(__file__), ".." , "resource", name)
20.75
75
0.658635
39
249
4
0.564103
0.076923
0
0
0
0
0
0
0
0
0
0
0.204819
249
12
75
20.75
0.787879
0
0
0
0
0
0.04
0
0
0
0
0
0
1
0.25
false
0
0.125
0.125
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
1
0
0
0
1
1
0
0
3
eba40c7836d02b53113b113f1c42b28c5c259a93
404
py
Python
twitoff/__init__.py
jeffyjkang/DS-Unit-3-Sprint-3-Productization-and-Cloud
d12952dd625c8d282db1946dd50c7f478e90dd7a
[ "MIT" ]
null
null
null
twitoff/__init__.py
jeffyjkang/DS-Unit-3-Sprint-3-Productization-and-Cloud
d12952dd625c8d282db1946dd50c7f478e90dd7a
[ "MIT" ]
null
null
null
twitoff/__init__.py
jeffyjkang/DS-Unit-3-Sprint-3-Productization-and-Cloud
d12952dd625c8d282db1946dd50c7f478e90dd7a
[ "MIT" ]
null
null
null
from .app import create_app # APP = create_app() # python commands: # in app dir #FLASKAPP=twitoff flask run # in root dir # FLASK_APP=twitoff flask shell ''' Notes for setup: in root, FLASK_APP=twitoff flask shell import create_app init create_app() import DB DB.create_all() creates tables ''' ''' Other commands...
14.428571
46
0.725248
62
404
4.612903
0.5
0.125874
0.104895
0.13986
0.174825
0
0
0
0
0
0
0.01173
0.155941
404
28
47
14.428571
0.826979
0.282178
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
3
ebb439a6545138904530c4467b730cf8637621d9
391
py
Python
utils/reduce_data.py
akshatabhat/transformers
83c6f38b9bf1397f3d2c95c7b0ea8907f709c580
[ "Apache-2.0" ]
1
2021-03-26T14:06:52.000Z
2021-03-26T14:06:52.000Z
utils/reduce_data.py
akshatabhat/transformers
83c6f38b9bf1397f3d2c95c7b0ea8907f709c580
[ "Apache-2.0" ]
null
null
null
utils/reduce_data.py
akshatabhat/transformers
83c6f38b9bf1397f3d2c95c7b0ea8907f709c580
[ "Apache-2.0" ]
null
null
null
import json def main(file_path, out_len): with open(file_path, 'r') as f: data = json.loads(f.read()) print(len(data['data'])) data['data'] = data['data'][:out_len] with open(file_path, 'w') as f: print(len(data['data'])) json.dump(data, f) if __name__ == "__main__": ...
23
45
0.56266
62
391
3.33871
0.435484
0.231884
0.231884
0.231884
0.328502
0.21256
0
0
0
0
0
0.02349
0.237852
391
16
46
24.4375
0.671141
0
0
0.166667
0
0
0.163683
0
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.166667
0.166667
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
ebd48457bf3399a79fee4cd86c9c5e15db08cd7f
235
py
Python
Practice/Beginner/Hard Cash(CASH)/solution.py
DipanjanDasIT/CodeChefCodes
f3d6c9ee6598b1c873d614c4aff005c2971a4fc0
[ "MIT" ]
null
null
null
Practice/Beginner/Hard Cash(CASH)/solution.py
DipanjanDasIT/CodeChefCodes
f3d6c9ee6598b1c873d614c4aff005c2971a4fc0
[ "MIT" ]
null
null
null
Practice/Beginner/Hard Cash(CASH)/solution.py
DipanjanDasIT/CodeChefCodes
f3d6c9ee6598b1c873d614c4aff005c2971a4fc0
[ "MIT" ]
null
null
null
testcases = int(input()) for _ in range(testcases): main_details = list(map(int, input().split())) coin_details = list(map(lambda x: int(x)%main_details[-1], input().split())) print(sum(coin_details)%main_details[-1])
39.166667
81
0.659574
34
235
4.382353
0.5
0.221477
0.187919
0
0
0
0
0
0
0
0
0.01
0.148936
235
5
82
47
0.735
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.2
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
ccdce89434f75942295d9616fd82c9bb36f9f529
27
py
Python
src/lib/Bcfg2/Server/Reports/reports/__init__.py
amplify-education/bcfg2
02d7f574babfeb2da99e2aad3a92b4e8d6494f07
[ "mpich2" ]
null
null
null
src/lib/Bcfg2/Server/Reports/reports/__init__.py
amplify-education/bcfg2
02d7f574babfeb2da99e2aad3a92b4e8d6494f07
[ "mpich2" ]
null
null
null
src/lib/Bcfg2/Server/Reports/reports/__init__.py
amplify-education/bcfg2
02d7f574babfeb2da99e2aad3a92b4e8d6494f07
[ "mpich2" ]
null
null
null
__all__ = ['templatetags']
13.5
26
0.703704
2
27
7.5
1
0
0
0
0
0
0
0
0
0
0
0
0.111111
27
1
27
27
0.625
0
0
0
0
0
0.444444
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
cce06a46f4f819aee94f70073960cb4bc2718754
76
py
Python
config/prod.py
Cjwpython/WordlessBook
3426ccf3ab2f8848caef98bbc7635407774d32b2
[ "MIT" ]
2
2021-05-19T10:53:25.000Z
2022-01-20T01:20:08.000Z
config/prod.py
Cjwpython/WordlessBook
3426ccf3ab2f8848caef98bbc7635407774d32b2
[ "MIT" ]
null
null
null
config/prod.py
Cjwpython/WordlessBook
3426ccf3ab2f8848caef98bbc7635407774d32b2
[ "MIT" ]
1
2022-01-20T01:19:56.000Z
2022-01-20T01:19:56.000Z
# coding: utf-8 from config.base import * DEBUG = False SERVER_PORT = 8899
12.666667
25
0.723684
12
76
4.5
1
0
0
0
0
0
0
0
0
0
0
0.080645
0.184211
76
5
26
15.2
0.790323
0.171053
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
ccfbcfc80bfd4176875b1439857777b6f9e25659
4,052
py
Python
Day12/Part2.py
PeterDowdy/AdventOfCode2019
93078b5fc2ef78cdb1b860a3535839dc718c9f5f
[ "MIT" ]
null
null
null
Day12/Part2.py
PeterDowdy/AdventOfCode2019
93078b5fc2ef78cdb1b860a3535839dc718c9f5f
[ "MIT" ]
null
null
null
Day12/Part2.py
PeterDowdy/AdventOfCode2019
93078b5fc2ef78cdb1b860a3535839dc718c9f5f
[ "MIT" ]
null
null
null
from math import gcd moons = [(-16, -1, -12), (0, -4, -17), (-11, 11, 0), (2, 2, -6)] velocities = [(0,0,0),(0,0,0),(0,0,0),(0,0,0)] x_positions = set() y_positions = set() z_positions = set() x_positions.add((moons[0][0],moons[1][0],moons[2][0],moons[3][0],velocities[0][0],velocities[1][0],velocities[2][0],velociti...
57.070423
159
0.637957
764
4,052
3.287958
0.070681
0.12699
0.052548
0.096338
0.738057
0.736465
0.698248
0.690287
0.650478
0.632166
0
0.100773
0.10612
4,052
70
160
57.885714
0.592766
0
0
0.263158
0
0
0.020977
0
0
0
0
0
0
1
0.035088
false
0.052632
0.017544
0.017544
0.070175
0.105263
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
3
ccfc9563a897ecbadd4690eb294f53f692567173
1,834
py
Python
03/main.py
cjcbusatto/advent-of-code-2020
7868a6dfe9233809e47c27dd2afd2a287fbf4906
[ "MIT" ]
null
null
null
03/main.py
cjcbusatto/advent-of-code-2020
7868a6dfe9233809e47c27dd2afd2a287fbf4906
[ "MIT" ]
null
null
null
03/main.py
cjcbusatto/advent-of-code-2020
7868a6dfe9233809e47c27dd2afd2a287fbf4906
[ "MIT" ]
null
null
null
def get_map_from_input(input_location): f = open(input_location, 'r') input_map = f.read().split('\n') f.close() lines = len(input_map) columns = len(input_map[0]) print(f"Original map = {lines} x {columns}") extended_map = [] for line in input_map: extended_map.append(line *...
26.970588
136
0.657579
263
1,834
4.250951
0.235741
0.206619
0.186941
0.236136
0.567979
0.5322
0.454383
0.454383
0.315742
0.315742
0
0.028691
0.220829
1,834
68
137
26.970588
0.753674
0
0
0
0
0
0.147139
0.027793
0
0
0
0
0
1
0.042553
false
0
0
0
0.085106
0.191489
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
6917abd481963fb432ab3aee8ef82db2c9fb0a45
104
py
Python
app/utils/Constants.py
jonzxz/project-piscator
588c8b1ac9355f9a82ac449fdbeaa1ef7eb441ef
[ "MIT" ]
null
null
null
app/utils/Constants.py
jonzxz/project-piscator
588c8b1ac9355f9a82ac449fdbeaa1ef7eb441ef
[ "MIT" ]
null
null
null
app/utils/Constants.py
jonzxz/project-piscator
588c8b1ac9355f9a82ac449fdbeaa1ef7eb441ef
[ "MIT" ]
1
2021-02-18T03:08:21.000Z
2021-02-18T03:08:21.000Z
IMAP_GMAIL = 'imap.gmail.com' IMAP_OUTLOOK = 'outlook.office365.com' IMAP_YAHOO = 'imap.mail.yahoo.com'
26
38
0.759615
16
104
4.75
0.4375
0.236842
0
0
0
0
0
0
0
0
0
0.031579
0.086538
104
3
39
34.666667
0.768421
0
0
0
0
0
0.519231
0.201923
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
6929df2927459d70fbbc2605690e202e9fada472
649
py
Python
MLGame/mlgame/crosslang/exceptions.py
Liuian/1092_INTRODUCTION-TO-MACHINE-LEARNING-AND-ITS-APPLICATION-TO-GAMING
f4a58d0d9f5832a77a4a86352e084065dc7bae50
[ "MIT" ]
null
null
null
MLGame/mlgame/crosslang/exceptions.py
Liuian/1092_INTRODUCTION-TO-MACHINE-LEARNING-AND-ITS-APPLICATION-TO-GAMING
f4a58d0d9f5832a77a4a86352e084065dc7bae50
[ "MIT" ]
null
null
null
MLGame/mlgame/crosslang/exceptions.py
Liuian/1092_INTRODUCTION-TO-MACHINE-LEARNING-AND-ITS-APPLICATION-TO-GAMING
f4a58d0d9f5832a77a4a86352e084065dc7bae50
[ "MIT" ]
null
null
null
""" The exceptions for the crosslang module """ class CompilationError(Exception): """ Exception raised when failed to compile the user script """ def __init__(self, file, reason): self.file = file self.reason = reason def __str__(self): return "Failed to compile '{}':\n{}"...
23.178571
78
0.624037
71
649
5.478873
0.492958
0.061697
0.123393
0.143959
0
0
0
0
0
0
0
0
0.269646
649
27
79
24.037037
0.820675
0.280431
0
0.181818
0
0
0.066502
0
0
0
0
0
0
1
0.363636
false
0
0
0.181818
0.727273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
693467a0acaed0c7690c50885524596a1996895e
922
py
Python
TERCEIRO MUNDO - THIRD WORLD/Um print especial - 97.py
MatheusKlebson/Python-Course
c1c5404095601733057bd91a96b5b4c45f0b5b9a
[ "MIT" ]
null
null
null
TERCEIRO MUNDO - THIRD WORLD/Um print especial - 97.py
MatheusKlebson/Python-Course
c1c5404095601733057bd91a96b5b4c45f0b5b9a
[ "MIT" ]
1
2020-11-25T15:47:38.000Z
2020-11-25T15:47:38.000Z
TERCEIRO MUNDO - THIRD WORLD/Um print especial - 97.py
MatheusKlebson/Python-Course
c1c5404095601733057bd91a96b5b4c45f0b5b9a
[ "MIT" ]
null
null
null
# Exercício Python 097: Faça um programa que tenha uma função chamada escreva(), # que receba um texto qualquer como parâmetro e mostre uma mensagem com tamanho adaptável. # Ex: # escreva(‘Olá, Mundo!’) Saída: ...
61.466667
167
0.273319
54
922
4.666667
0.740741
0.063492
0
0
0
0
0
0
0
0
0
0.012308
0.647505
922
15
168
61.466667
0.763077
0.817787
0
0.285714
0
0
0.226415
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.142857
0.428571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
3
6938f0e86ee3f8439ad8093f9adb38fd142480f6
1,366
py
Python
ois_api_client/v2_0/dto/AdditionalQueryParams.py
peterkulik/ois_api_client
51dabcc9f920f89982c4419bb058f5a88193cee0
[ "MIT" ]
7
2020-10-22T08:15:29.000Z
2022-01-27T07:59:39.000Z
ois_api_client/v3_0/dto/AdditionalQueryParams.py
peterkulik/ois_api_client
51dabcc9f920f89982c4419bb058f5a88193cee0
[ "MIT" ]
null
null
null
ois_api_client/v3_0/dto/AdditionalQueryParams.py
peterkulik/ois_api_client
51dabcc9f920f89982c4419bb058f5a88193cee0
[ "MIT" ]
null
null
null
from typing import Optional from dataclasses import dataclass from .InvoiceAppearance import InvoiceAppearance from .InvoiceCategory import InvoiceCategory from .PaymentMethod import PaymentMethod from .Source import Source @dataclass class AdditionalQueryParams: """Additional params of the invoice query :pa...
44.064516
180
0.786237
179
1,366
5.921788
0.268156
0.056604
0.067925
0.042453
0.321698
0.285849
0.285849
0.285849
0.285849
0.25
0
0
0.171303
1,366
30
181
45.533333
0.936396
0.551245
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.375
0
0.9375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
3
695785b2963244eb85ab885b374aa8c222d96191
98
py
Python
ex.047.mostraNumerosPares.py
romulorm/cev-python
b5c6844956c131a9e4e02355459c218739ebf8c5
[ "MIT" ]
null
null
null
ex.047.mostraNumerosPares.py
romulorm/cev-python
b5c6844956c131a9e4e02355459c218739ebf8c5
[ "MIT" ]
null
null
null
ex.047.mostraNumerosPares.py
romulorm/cev-python
b5c6844956c131a9e4e02355459c218739ebf8c5
[ "MIT" ]
null
null
null
# Conta somente números pares for c in range(2, 51, 2): print(c, end=' ') print("Acabou!")
14
30
0.602041
16
98
3.6875
0.8125
0
0
0
0
0
0
0
0
0
0
0.052632
0.22449
98
6
31
16.333333
0.723684
0.27551
0
0
0
0
0.119403
0
0
0
0
0
0
1
0
false
0
0
0
0
0.666667
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
3
c600a7c769c43dfaa68adc940ed5418cbaa4e03b
121
py
Python
treasureisland/Parameters.py
idoerg/GenomicIslandPrediction
c50edd0c280efca3fac90674a9695cb763c27e31
[ "MIT" ]
null
null
null
treasureisland/Parameters.py
idoerg/GenomicIslandPrediction
c50edd0c280efca3fac90674a9695cb763c27e31
[ "MIT" ]
null
null
null
treasureisland/Parameters.py
idoerg/GenomicIslandPrediction
c50edd0c280efca3fac90674a9695cb763c27e31
[ "MIT" ]
null
null
null
WINDOW_SIZE = 8000 KMER_SIZE = 6 UPPER_THRESHOLD = 0.75 LOWER_THRESHOLD = 0.5 TUNE_METRIC = 1000 MINIMUM_GI_SIZE = 10000
17.285714
23
0.785124
21
121
4.190476
0.809524
0.227273
0
0
0
0
0
0
0
0
0
0.184466
0.14876
121
6
24
20.166667
0.669903
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
c61aff15e6261423fb5fd8677c7a2c1c475568d6
785
py
Python
src/features/migrations/0025_enable_all_remote_config_feature_states.py
augustuswm/flagsmith-api
6f37947fe3791726a92b4df2cdbded11e77387d3
[ "BSD-3-Clause" ]
1,259
2021-06-10T11:24:09.000Z
2022-03-31T10:30:44.000Z
src/features/migrations/0025_enable_all_remote_config_feature_states.py
augustuswm/flagsmith-api
6f37947fe3791726a92b4df2cdbded11e77387d3
[ "BSD-3-Clause" ]
392
2021-06-10T11:12:29.000Z
2022-03-31T10:13:53.000Z
src/features/migrations/0025_enable_all_remote_config_feature_states.py
augustuswm/flagsmith-api
6f37947fe3791726a92b4df2cdbded11e77387d3
[ "BSD-3-Clause" ]
58
2021-06-11T03:18:07.000Z
2022-03-31T14:39:10.000Z
# Generated by Django 2.2.17 on 2021-01-10 12:35 from django.db import migrations def enable_all_remote_config_feature_states(apps, schema_editor): FeatureState = apps.get_model('features', 'FeatureState') # update all existing remote config feature states to maintain current # functionality when hiding...
26.166667
76
0.723567
96
785
5.71875
0.645833
0.087432
0.138434
0.182149
0.123862
0.123862
0
0
0
0
0
0.050713
0.196178
785
29
77
27.068966
0.819334
0.278981
0
0
1
0
0.101604
0.040998
0
0
0
0
0
1
0.133333
false
0.066667
0.066667
0
0.4
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
3
c61dc702b237c15662d2418ed34215b2b2a25a9f
1,999
py
Python
rolling/apply.py
andrewcfreeman/rolling
7cff8e45bbebaf64a5da1ad6e7d1a7619eebca17
[ "MIT" ]
189
2018-03-12T00:31:19.000Z
2022-03-26T00:17:38.000Z
rolling/apply.py
andrewcfreeman/rolling
7cff8e45bbebaf64a5da1ad6e7d1a7619eebca17
[ "MIT" ]
23
2017-12-31T17:50:48.000Z
2021-11-27T15:31:54.000Z
rolling/apply.py
andrewcfreeman/rolling
7cff8e45bbebaf64a5da1ad6e7d1a7619eebca17
[ "MIT" ]
7
2019-01-28T02:53:49.000Z
2021-11-11T18:34:45.000Z
from collections import deque from itertools import islice from .base import RollingObject class Apply(RollingObject): """ Iterator object that applies a function to a rolling window over a Python iterable. Parameters ---------- iterable : any iterable object window_size : integer, the ...
24.084337
82
0.62031
253
1,999
4.699605
0.371542
0.067283
0.035324
0.020185
0.216989
0.216989
0.067283
0
0
0
0
0.016249
0.261131
1,999
82
83
24.378049
0.788761
0.405203
0
0.222222
0
0
0.054183
0.021863
0
0
0
0
0
1
0.296296
false
0
0.111111
0.111111
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
c61e07f6e1d7dbddc3e330dbcdac65bf1c316ee7
2,166
py
Python
src/dfd/models/interface.py
cicheck/dfd
b02752f958cfea2f85222e2b4b3ba7e265a6152d
[ "MIT" ]
null
null
null
src/dfd/models/interface.py
cicheck/dfd
b02752f958cfea2f85222e2b4b3ba7e265a6152d
[ "MIT" ]
2
2021-12-31T17:44:20.000Z
2021-12-31T19:51:11.000Z
src/dfd/models/interface.py
cicheck/dfd
b02752f958cfea2f85222e2b4b3ba7e265a6152d
[ "MIT" ]
null
null
null
from __future__ import annotations import abc import enum import pathlib import typing as t class Prediction(enum.Enum): """Represents model prediction.""" def _generate_next_value_(name, start, count, last_values): return name REAL = enum.auto() FAKE = enum.auto() UNCERTAIN = enum.auto...
27.769231
91
0.66205
262
2,166
5.396947
0.427481
0.054455
0.084866
0.036068
0.028289
0
0
0
0
0
0
0.001847
0.250231
2,166
77
92
28.12987
0.868842
0.368421
0
0.25
1
0
0
0
0
0
0
0
0
1
0.25
false
0
0.15625
0.03125
0.6875
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
1
0
0
0
0
1
0
0
3
c63aa739c17a4e754a25a2ea9c3f099089da52a6
350
py
Python
__init__.py
LLNL/ferdinand
af47b415ea1e9cb21a45b20d1f3854bc7f3a4d70
[ "Apache-2.0" ]
null
null
null
__init__.py
LLNL/ferdinand
af47b415ea1e9cb21a45b20d1f3854bc7f3a4d70
[ "Apache-2.0" ]
null
null
null
__init__.py
LLNL/ferdinand
af47b415ea1e9cb21a45b20d1f3854bc7f3a4d70
[ "Apache-2.0" ]
null
null
null
############################################## # # # Ferdinand 0.40, Ian Thompson, LLNL # # # # gnd,endf,fresco,azure,hyrma # # # ######################################...
38.888889
46
0.18
13
350
4.538462
1
0
0
0
0
0
0
0
0
0
0
0.028249
0.494286
350
8
47
43.75
0.305085
0.328571
0
0
0
0
0.214286
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
d660266eecc102047200d3452d83cf102a416710
497
py
Python
manokee/timing/timing.py
smiszym/manokee
afb63b8ce5ba3f83bb924965b8d5098a6d28c474
[ "MIT" ]
null
null
null
manokee/timing/timing.py
smiszym/manokee
afb63b8ce5ba3f83bb924965b8d5098a6d28c474
[ "MIT" ]
14
2021-03-11T02:05:20.000Z
2022-03-12T01:05:11.000Z
manokee/timing/timing.py
smiszym/manokee
afb63b8ce5ba3f83bb924965b8d5098a6d28c474
[ "MIT" ]
null
null
null
class Timing: def beat_to_seconds(self, beat_number: float) -> float: """ Convert beat number to seconds. :param beat_number: Beat number counted from 0. :return: Time in seconds. """ raise NotImplementedError def seconds_to_beat(self, time: float) -> float: ...
29.235294
59
0.597586
56
497
5.196429
0.339286
0.206186
0.116838
0.14433
0.151203
0
0
0
0
0
0
0.005917
0.31992
497
16
60
31.0625
0.85503
0.410463
0
0.4
0
0
0
0
0
0
0
0
0
1
0.4
false
0
0
0
0.6
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
1
0
0
0
0
1
0
0
3
d66748bfb42fb82f0c12adab0e031e9250276edd
2,947
py
Python
build/lib/WORC/featureprocessing/SelectIndividuals.py
Sikerdebaard/PREDICTFastr
e1f172c3606e6f33edf58008f958dcd1c0ac5b7b
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
build/lib/WORC/featureprocessing/SelectIndividuals.py
Sikerdebaard/PREDICTFastr
e1f172c3606e6f33edf58008f958dcd1c0ac5b7b
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
build/lib/WORC/featureprocessing/SelectIndividuals.py
Sikerdebaard/PREDICTFastr
e1f172c3606e6f33edf58008f958dcd1c0ac5b7b
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2016-2019 Biomedical Imaging Group Rotterdam, Departments of # Medical Informatics and Radiology, Erasmus MC, Rotterdam, The Netherlands # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obt...
35.506024
88
0.635562
350
2,947
5.285714
0.497143
0.032432
0.014054
0.017297
0
0
0
0
0
0
0
0.005794
0.297251
2,947
82
89
35.939024
0.887494
0.638616
0
0
0
0
0.027668
0
0
0
0
0
0
1
0.25
false
0.0625
0.1875
0
0.5625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
d6690698841bc39fcf328d809c1ae9a9943d7b0f
1,279
py
Python
src/entities/relativeentity.py
alisonbento/steering-all
99797f99180dd64189ea5ed85ff71b66bfd9cf6f
[ "MIT" ]
3
2016-10-10T18:34:55.000Z
2017-08-02T15:18:28.000Z
src/entities/relativeentity.py
alisonbento/steering-all
99797f99180dd64189ea5ed85ff71b66bfd9cf6f
[ "MIT" ]
null
null
null
src/entities/relativeentity.py
alisonbento/steering-all
99797f99180dd64189ea5ed85ff71b66bfd9cf6f
[ "MIT" ]
null
null
null
from entity import Entity class RelativeEntity(Entity): def __init__(self, width, height): Entity.__init__(self, width, height) self.margin = [0, 0, 0, 0] def below(self, entity): self.y = entity.y + entity.height + self.margin[1] def above(self, entity): self.y = entity.y - self.height - self...
22.839286
63
0.641908
184
1,279
4.418478
0.168478
0.233702
0.103321
0.123001
0.334563
0.334563
0.164822
0.164822
0
0
0
0.021825
0.211884
1,279
55
64
23.254545
0.784722
0
0
0
0
0
0
0
0
0
0
0
0
1
0.457143
false
0
0.028571
0
0.514286
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
1
0
0
0
0
1
0
0
3
d673caa4093bd3809cb0be9e8da138d53b90b322
3,860
py
Python
test/domain_types/test_polygon.py
covjson/covjson-validator
97b6ee445bfcc70ad73d731dce3d67aa4aafaf3a
[ "BSD-3-Clause" ]
null
null
null
test/domain_types/test_polygon.py
covjson/covjson-validator
97b6ee445bfcc70ad73d731dce3d67aa4aafaf3a
[ "BSD-3-Clause" ]
6
2022-02-02T16:52:33.000Z
2022-02-09T09:40:50.000Z
test/domain_types/test_polygon.py
covjson/covjson-validator
97b6ee445bfcc70ad73d731dce3d67aa4aafaf3a
[ "BSD-3-Clause" ]
null
null
null
# Pytests to test the Polygon domain type in the domain.json schema file import pytest from jsonschema.exceptions import ValidationError pytestmark = pytest.mark.schema("/schemas/domain") @pytest.mark.exhaustive def test_valid_polygon_domain(validator, polygon_domain): ''' Tests an example of a Polygon domain '...
33.275862
97
0.690933
464
3,860
5.571121
0.157328
0.271567
0.110638
0.15087
0.759381
0.747776
0.668472
0.574855
0.49323
0.401547
0
0.031796
0.168912
3,860
115
98
33.565217
0.774002
0.198705
0
0.416667
0
0
0.088587
0
0
0
0
0
0
1
0.216667
false
0
0.033333
0
0.25
0
0
0
0
null
1
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
1
0
0
0
0
0
0
0
3
d6812fee96c936a6d4abcdec5e68b3b5abdd5c3f
409
py
Python
api/core/models.py
vrmartins/poc-django-rest-framework
a4914c25c7decbe16f5233233e9da4dce57f64d8
[ "MIT" ]
null
null
null
api/core/models.py
vrmartins/poc-django-rest-framework
a4914c25c7decbe16f5233233e9da4dce57f64d8
[ "MIT" ]
7
2020-04-05T14:25:37.000Z
2021-09-22T18:50:16.000Z
api/core/models.py
vrmartins/poc-django-rest-framework
a4914c25c7decbe16f5233233e9da4dce57f64d8
[ "MIT" ]
null
null
null
from django.db import models from core.utils.cnpj_is_valid import cnpj_is_valid class Customer(models.Model): name = models.CharField(max_length=50, null=False, blank=False) address = models.CharField(max_length=50, null=False, blank=False) cnpj = models.CharField(max_length=14, unique=True, null=False, b...
34.083333
108
0.750611
61
409
4.819672
0.491803
0.061224
0.112245
0.244898
0.306122
0.306122
0.306122
0.306122
0.306122
0
0
0.017094
0.141809
409
11
109
37.181818
0.820513
0
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.25
0.125
1
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
1
1
0
0
3
d6876109b60f86d0c814c99a79b62726595f011e
167
py
Python
webapp/campaigns/urls.py
AKarbas/datachef-interview-assignment
04a69a0daf0ab5378a2e03913ac60818e3fb73d9
[ "Intel" ]
null
null
null
webapp/campaigns/urls.py
AKarbas/datachef-interview-assignment
04a69a0daf0ab5378a2e03913ac60818e3fb73d9
[ "Intel" ]
null
null
null
webapp/campaigns/urls.py
AKarbas/datachef-interview-assignment
04a69a0daf0ab5378a2e03913ac60818e3fb73d9
[ "Intel" ]
null
null
null
from django.urls import path from . import views app_name = 'campaigns' urlpatterns = [ path('<int:campaign_id>/', views.Campaign.as_view(), name='campaign'), ]
18.555556
74
0.700599
22
167
5.181818
0.681818
0
0
0
0
0
0
0
0
0
0
0
0.143713
167
8
75
20.875
0.797203
0
0
0
0
0
0.209581
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
d687affcc64565d8faf1f33b4994b4b1b73c74f1
1,470
py
Python
src/test/test_imperfect_indicitive.py
shrutiichandra/spanish-conjugator
2ebf41b92c14c3e47a873c52fdf4ce1d17bff5e0
[ "MIT" ]
null
null
null
src/test/test_imperfect_indicitive.py
shrutiichandra/spanish-conjugator
2ebf41b92c14c3e47a873c52fdf4ce1d17bff5e0
[ "MIT" ]
null
null
null
src/test/test_imperfect_indicitive.py
shrutiichandra/spanish-conjugator
2ebf41b92c14c3e47a873c52fdf4ce1d17bff5e0
[ "MIT" ]
null
null
null
# -*- coding: iso-8859-15 -*- import spanishconjugator from spanishconjugator.SpanishConjugator import Conjugator # ----------------------------------- Imperfect Indicative ----------------------------------- # def test_imperfect_indicative_yo_ar(): expected = "hablaba" assert Conjugator().conjugate('hablar',...
39.72973
96
0.702041
144
1,470
6.930556
0.243056
0.323647
0.128257
0.208417
0.626253
0.445892
0.267535
0.225451
0.134269
0
0
0.006112
0.109524
1,470
37
97
39.72973
0.756303
0.081633
0
0.076923
0
0
0.218425
0
0
0
0
0
0.307692
1
0.307692
false
0
0.076923
0
0.384615
0
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
3
d68b45e4e7a07123f8215b18f29f9f415483134c
219
py
Python
list.py
TomckySan/python-training
7d5214d01e8844a314d4a5aea6a4e35afa19f729
[ "MIT" ]
null
null
null
list.py
TomckySan/python-training
7d5214d01e8844a314d4a5aea6a4e35afa19f729
[ "MIT" ]
null
null
null
list.py
TomckySan/python-training
7d5214d01e8844a314d4a5aea6a4e35afa19f729
[ "MIT" ]
null
null
null
# coding: utf-8 sales= [255, 100, 353, 400] print len(sales) print sales[2] sales[2] = 100 print sales[2] # 含んでいるか否か print 100 in sales print 500 in sales # range print range(10) print range(3,10) print range(3,10,2)
13.6875
27
0.69863
42
219
3.642857
0.404762
0.117647
0.143791
0.169935
0.183007
0
0
0
0
0
0
0.186813
0.16895
219
15
28
14.6
0.653846
0.127854
0
0.2
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0.8
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
1
0
0
0
0
0
0
1
0
3
d6c44db13e9cf80092cf19bc3a381fd343fa5385
1,248
py
Python
events/migrations/0049_auto_20210308_1449.py
horacexd/clist
9759dfea97b86514bec9825d2430abc36decacf0
[ "Apache-2.0" ]
166
2019-05-16T23:46:08.000Z
2022-03-31T05:20:23.000Z
events/migrations/0049_auto_20210308_1449.py
horacexd/clist
9759dfea97b86514bec9825d2430abc36decacf0
[ "Apache-2.0" ]
92
2020-01-18T22:51:53.000Z
2022-03-12T01:23:57.000Z
events/migrations/0049_auto_20210308_1449.py
VadVergasov/clist
4afcdfe88250d224043b28efa511749347cec71c
[ "Apache-2.0" ]
23
2020-02-09T17:38:43.000Z
2021-12-09T14:39:07.000Z
# Generated by Django 3.1.7 on 2021-03-08 14:49 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('events', '0048_auto_20210307_1644'), ] operations = [ migrations.AlterField( model_name='event', name='email_conf', ...
28.363636
61
0.560897
118
1,248
5.813559
0.398305
0.174927
0.218659
0.253644
0.669096
0.669096
0.613703
0.555394
0.555394
0.555394
0
0.036643
0.322115
1,248
43
62
29.023256
0.774232
0.036058
0
0.621622
1
0
0.110741
0.019151
0
0
0
0
0
1
0
false
0
0.027027
0
0.108108
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
d6c7f2bc5030b6e6a1c3bad3cfc0eb72b6f4212f
172
py
Python
iex_parser_test/__init__.py
Cedric-Kram/iex_parser
b5aebe79b2125681ab0606f4f59ec325aadeebb9
[ "Apache-2.0" ]
15
2019-08-15T07:22:44.000Z
2022-01-18T20:52:22.000Z
iex_parser_test/__init__.py
Cedric-Kram/iex_parser
b5aebe79b2125681ab0606f4f59ec325aadeebb9
[ "Apache-2.0" ]
5
2020-05-29T04:58:34.000Z
2022-01-31T07:27:20.000Z
iex_parser_test/__init__.py
Cedric-Kram/iex_parser
b5aebe79b2125681ab0606f4f59ec325aadeebb9
[ "Apache-2.0" ]
4
2020-09-08T15:03:20.000Z
2022-01-18T13:33:56.000Z
"""iex_parser""" from .parser import Parser from .messages import DEEP_1_0, TOPS_1_6, TOPS_1_5 __all__ = [ 'Parser', 'DEEP_1_0', 'TOPS_1_5', 'TOPS_1_6' ]
14.333333
50
0.645349
29
172
3.241379
0.413793
0.212766
0.12766
0.212766
0.234043
0
0
0
0
0
0
0.088889
0.215116
172
11
51
15.636364
0.607407
0.05814
0
0
0
0
0.192308
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
d6db1b844a289657730452a636a61c698c02aa89
1,117
py
Python
varex/commons/VCFEntry.py
weiyi-bitw/varex
765e8876c0ced480a47c0e523736bd31b7897644
[ "MIT" ]
null
null
null
varex/commons/VCFEntry.py
weiyi-bitw/varex
765e8876c0ced480a47c0e523736bd31b7897644
[ "MIT" ]
null
null
null
varex/commons/VCFEntry.py
weiyi-bitw/varex
765e8876c0ced480a47c0e523736bd31b7897644
[ "MIT" ]
null
null
null
class VCFEntry(object): def __init__(self, vkey, ssid, pid, ac, passFilter=1, qual=-1, gq=-1, dp=-1, ad=-1): self.vkey = vkey if not ssid: self.ssid = "UNKNOWN" else: self.ssid = ssid self.pid = pid self.ac = ac self.passFilter = passFilter ...
32.852941
162
0.584602
159
1,117
3.855346
0.220126
0.065253
0.053834
0.035889
0.430669
0.430669
0.430669
0.430669
0.430669
0.280587
0
0.00612
0.268577
1,117
33
163
33.848485
0.744186
0
0
0
0
0
0.020702
0
0
0
0
0
0
1
0.25
false
0.166667
0
0.208333
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
1
0
0
0
3
d6e6b0705f1fc5675687010c9694d9720c0c22e7
133
py
Python
app/extensions.py
vatsalag99/mapping_self-harm_risk_twitter
262c36f994c909714a738686b025633d832bc596
[ "MIT" ]
null
null
null
app/extensions.py
vatsalag99/mapping_self-harm_risk_twitter
262c36f994c909714a738686b025633d832bc596
[ "MIT" ]
1
2021-06-02T01:16:32.000Z
2021-06-02T01:16:32.000Z
app/extensions.py
vatsalag99/mapping_self-harm_risk_twitter
262c36f994c909714a738686b025633d832bc596
[ "MIT" ]
null
null
null
"""Extensions module - Set up for additional libraries can go in here.""" from flask_sqlalchemy import SQLAlchemy db = SQLAlchemy()
26.6
73
0.766917
18
133
5.611111
0.888889
0
0
0
0
0
0
0
0
0
0
0
0.150376
133
5
74
26.6
0.893805
0.503759
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
ba334945cd720fa1ed44ce5324c0dde69e532940
5,765
py
Python
src/pnmol/kernels.py
schmidtjonathan/pnmol-experiments
e07396079e2f2038011f3a377022482991090c5a
[ "MIT" ]
1
2022-02-24T18:25:43.000Z
2022-02-24T18:25:43.000Z
src/pnmol/kernels.py
schmidtjonathan/pnmol-experiments
e07396079e2f2038011f3a377022482991090c5a
[ "MIT" ]
null
null
null
src/pnmol/kernels.py
schmidtjonathan/pnmol-experiments
e07396079e2f2038011f3a377022482991090c5a
[ "MIT" ]
null
null
null
import abc from functools import cached_property, partial import jax import jax.numpy as jnp class Kernel(abc.ABC): """Covariance kernel interface.""" @abc.abstractmethod def __call__(self, X, Y): raise NotImplementedError class _PairwiseKernel(Kernel): @partial(jax.jit, static_argnums=(0,...
27.193396
88
0.640937
802
5,765
4.337905
0.174564
0.016097
0.018971
0.049152
0.425122
0.28399
0.245473
0.190572
0.159241
0.125898
0
0.01118
0.239722
5,765
211
89
27.322275
0.782569
0.113096
0
0.311111
0
0
0.005333
0.005333
0
0
0
0
0
1
0.237037
false
0
0.02963
0.103704
0.533333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
ba3dee974a940c282171ed9e43e895bc5c1ce3fc
370
py
Python
mjpoll/__init__.py
DarkWizarD24/mjpoll
877eb45ca713a2e03a84deff4765f282b870e635
[ "MIT" ]
null
null
null
mjpoll/__init__.py
DarkWizarD24/mjpoll
877eb45ca713a2e03a84deff4765f282b870e635
[ "MIT" ]
null
null
null
mjpoll/__init__.py
DarkWizarD24/mjpoll
877eb45ca713a2e03a84deff4765f282b870e635
[ "MIT" ]
null
null
null
# coding: utf-8 from flask import Flask from flask_babel import Babel from flask_bootstrap import Bootstrap app = Flask(__name__) app.config.from_pyfile('application.cfg') app.secret_key = '_\xeb\xaa9\xea\xb9&\xe8\xdfx\xd4oKu\x01\xf3\x94d\x08\xdeGs\x11<' #TODO get if from config babel = Babel(app) Bootstrap(app) ...
19.473684
107
0.775676
61
370
4.540984
0.590164
0.097473
0
0
0
0
0
0
0
0
0
0.043077
0.121622
370
18
108
20.555556
0.809231
0.097297
0
0
0
0.090909
0.23565
0.190332
0
0
0
0.055556
0
1
0
false
0
0.545455
0
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
1
0
1
0
0
3
ba47aae912bab03eeec32d53c9d7b3b8de1668c7
54,161
py
Python
rubikscolorresolver/cube_555.py
jmsutariya/cube-tracker
2296d68883acbd3430110318420d09f98c186e91
[ "MIT" ]
29
2017-03-03T23:47:53.000Z
2021-12-20T19:43:35.000Z
rubikscolorresolver/cube_555.py
jmsutariya/cube-tracker
2296d68883acbd3430110318420d09f98c186e91
[ "MIT" ]
6
2017-03-12T05:25:27.000Z
2022-03-27T08:20:25.000Z
rubikscolorresolver/cube_555.py
jmsutariya/cube-tracker
2296d68883acbd3430110318420d09f98c186e91
[ "MIT" ]
18
2017-08-31T13:28:58.000Z
2021-12-20T19:43:09.000Z
corner_tuples = ( (1, 26, 105), (5, 101, 80), (21, 51, 30), (25, 76, 55), (126, 50, 71), (130, 75, 96), (146, 125, 46), (150, 100, 121), ) edge_orbit_id = { 2: 0, 3: 1, 4: 0, 6: 0, 11: 1, 16: 0, 10: 0, 15: 1, 20: 0, 22: 0, 23: 1, 24: 0, #...
27.96128
44
0.255848
8,987
54,161
1.540892
0.019695
0.031196
0.007799
0.001733
0.030618
0
0
0
0
0
0
0.230541
0.320858
54,161
1,936
45
27.975723
0.145937
0.002105
0
0.009331
0
0
0.096417
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
ba77c3decd45da528d69e289a995dee1a225f06b
651
py
Python
Exercicios/ex109 - Formatando moedas em python.py
anderdot/curso-em-video-python
ea295cf0afa914ff9ab9acb87c458d77e3fb62ad
[ "MIT" ]
null
null
null
Exercicios/ex109 - Formatando moedas em python.py
anderdot/curso-em-video-python
ea295cf0afa914ff9ab9acb87c458d77e3fb62ad
[ "MIT" ]
null
null
null
Exercicios/ex109 - Formatando moedas em python.py
anderdot/curso-em-video-python
ea295cf0afa914ff9ab9acb87c458d77e3fb62ad
[ "MIT" ]
null
null
null
# Desafio 109: Modifique as funções que form criadas no desafio 107 para que # elas aceitem um parâmetro a mais, informando se o valor retornado por elas # vai ser ou não formatado pela função moeda(), desenvolvida no desafio 108. from rotinas import titulo from modulos.ex109 import moeda as m valor = int(input('Dig...
50.076923
80
0.709677
117
651
3.948718
0.504274
0.051948
0.069264
0.112554
0.12987
0.12987
0
0
0
0
0
0.039711
0.149002
651
12
81
54.25
0.794224
0.347158
0
0
0
0.25
0.643705
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.5
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
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
3
ba7d6a9e7d22a756e68ebfce9d1c8d488b047ed1
222
py
Python
String/058. Length of Last Word.py
beckswu/Leetcode
480e8dc276b1f65961166d66efa5497d7ff0bdfd
[ "MIT" ]
138
2020-02-08T05:25:26.000Z
2021-11-04T11:59:28.000Z
String/058. Length of Last Word.py
beckswu/Leetcode
480e8dc276b1f65961166d66efa5497d7ff0bdfd
[ "MIT" ]
null
null
null
String/058. Length of Last Word.py
beckswu/Leetcode
480e8dc276b1f65961166d66efa5497d7ff0bdfd
[ "MIT" ]
24
2021-01-02T07:18:43.000Z
2022-03-20T08:17:54.000Z
""" 58. Length of Last Word """ class Solution: def lengthOfLastWord(self, s): """ :type s: str :rtype: int """ li = s.split() return len(li[-1]) if li else 0
18.5
39
0.45045
27
222
3.703704
0.851852
0
0
0
0
0
0
0
0
0
0
0.030534
0.40991
222
12
39
18.5
0.732824
0.216216
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0
0
0.75
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
1
0
0
0
0
1
0
0
3
ba8cbf1e8f33b4e6ae6ea6fa33a6606299a26211
767
py
Python
util/path.py
cassianobecker/dnn
bb2ea04f77733de9df10f795bb049ac3b9d30478
[ "MIT" ]
3
2020-02-21T21:35:07.000Z
2020-09-29T15:20:00.000Z
util/path.py
cassianobecker/dnn
bb2ea04f77733de9df10f795bb049ac3b9d30478
[ "MIT" ]
27
2020-02-20T21:00:23.000Z
2020-05-22T15:23:25.000Z
util/path.py
cassianobecker/dnn
bb2ea04f77733de9df10f795bb049ac3b9d30478
[ "MIT" ]
null
null
null
import os import shutil def get_root(): root_dir = os.path.dirname(os.path.abspath(__file__)) return os.path.split(root_dir)[0] def absolute_path(relative_path): return os.path.join(get_root(), relative_path) def append_path(module, relative_path): return os.path.join(get_dir(module), relative_pat...
21.305556
66
0.720991
118
767
4.372881
0.29661
0.116279
0.093023
0.087209
0.310078
0.310078
0.25969
0.139535
0
0
0
0.003082
0.153846
767
35
67
21.914286
0.791988
0
0
0
0
0
0.007823
0
0
0
0
0
0
1
0.3
false
0
0.1
0.15
0.65
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
baa043ba112c1db1f058e902f2a7ddaf2805cded
254
py
Python
ui/experimental.py
miguelgarciaarribas/multroaster
eb3a17e8257cd184cb91d53a2a61c6d3481ac206
[ "MIT" ]
1
2020-04-18T09:13:18.000Z
2020-04-18T09:13:18.000Z
ui/experimental.py
miguelgarciaarribas/multroaster
eb3a17e8257cd184cb91d53a2a61c6d3481ac206
[ "MIT" ]
18
2020-04-24T07:22:54.000Z
2020-08-28T10:33:18.000Z
ui/experimental.py
miguelgarciaarribas/multroaster
eb3a17e8257cd184cb91d53a2a61c6d3481ac206
[ "MIT" ]
null
null
null
from PyQt5.QtGui import QImage, QPixmap # review class ExperimentalContent(): def __init__(self, mainWindow): print("Loading Experimental content") self.mainWindow = mainWindow self.mainWindow.expLabel.setText("hello world")
31.75
55
0.716535
26
254
6.846154
0.807692
0.235955
0
0
0
0
0
0
0
0
0
0.004878
0.192913
254
7
56
36.285714
0.863415
0.023622
0
0
0
0
0.158537
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.5
0.166667
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
bac96c72212d49906c555e8ee6009e66b8770acd
420
py
Python
structural/decorator_example.py
EdiBoba/python_patterns
b3343eed5592beea2996316feb8df4bad107e1fc
[ "MIT" ]
2
2022-02-08T16:30:22.000Z
2022-03-16T08:20:25.000Z
structural/decorator_example.py
EdiBoba/python_patterns
b3343eed5592beea2996316feb8df4bad107e1fc
[ "MIT" ]
null
null
null
structural/decorator_example.py
EdiBoba/python_patterns
b3343eed5592beea2996316feb8df4bad107e1fc
[ "MIT" ]
3
2021-08-06T15:47:47.000Z
2021-12-09T18:59:38.000Z
from abc import ABCMeta, abstractmethod class IOperator(metaclass=ABCMeta): @abstractmethod def operator(self): pass class Component(IOperator): def operator(self): return 10.0 class Wrapper(IOperator): def __init__(self, obj): self.obj = obj def operator(self): ...
16.153846
40
0.657143
50
420
5.44
0.44
0.121324
0.165441
0.154412
0
0
0
0
0
0
0
0.015576
0.235714
420
25
41
16.8
0.831776
0
0
0.1875
0
0
0
0
0
0
0
0
0
1
0.25
false
0.0625
0.0625
0.125
0.625
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
1
0
0
0
3
bacf7bd40e07778d4ffdc5b9e3092f4045164220
449
py
Python
funk/tools.py
mwilliamson/funk
658ff45b33b90f621104d9776c4b122b84779350
[ "BSD-2-Clause" ]
1
2016-04-22T08:02:01.000Z
2016-04-22T08:02:01.000Z
funk/tools.py
mwilliamson/funk
658ff45b33b90f621104d9776c4b122b84779350
[ "BSD-2-Clause" ]
null
null
null
funk/tools.py
mwilliamson/funk
658ff45b33b90f621104d9776c4b122b84779350
[ "BSD-2-Clause" ]
null
null
null
class Data(object): def __init__(self, attributes): self._keys = list(attributes.keys()) for key in attributes: setattr(self, key, attributes[key]) def __str__(self): return "Data({0})".format(", ".join( "{0}={1!r}".format(key, getattr(self, key)) for...
24.944444
55
0.550111
54
449
4.314815
0.425926
0.06867
0.06867
0
0
0
0
0
0
0
0
0.009554
0.300668
449
17
56
26.411765
0.732484
0
0
0
0
0
0.044543
0
0
0
0
0
0
1
0.285714
false
0
0
0.214286
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
bade9c016e086e5bd504bbf7ecd019f9ea2e8e26
322
py
Python
tests/test_client.py
debonzi/celery_crossover
2da97fe527a357d5c85dfd29b04424d08dbe9b93
[ "MIT" ]
10
2018-04-06T18:58:18.000Z
2021-11-05T19:19:03.000Z
tests/test_client.py
debonzi/celery_crossover
2da97fe527a357d5c85dfd29b04424d08dbe9b93
[ "MIT" ]
2
2018-08-15T18:15:54.000Z
2021-03-26T06:58:02.000Z
tests/test_client.py
debonzi/celery_crossover
2da97fe527a357d5c85dfd29b04424d08dbe9b93
[ "MIT" ]
3
2018-04-09T03:06:12.000Z
2019-11-08T17:35:57.000Z
# -*- coding: utf-8 -*- import types from crossover import Client from crossover import _Requester def test_client_attributes(): client = Client("redis://localhost:6379/0") assert isinstance(client, Client) assert isinstance(client.test, _Requester) assert isinstance(client.call_task, types.MethodType...
26.833333
57
0.748447
39
322
6.051282
0.538462
0.20339
0.279661
0
0
0
0
0
0
0
0
0.021818
0.145963
322
11
58
29.272727
0.836364
0.065217
0
0
0
0
0.080268
0.080268
0
0
0
0
0.375
1
0.125
false
0
0.375
0
0.5
0
0
0
0
null
1
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
1
0
0
0
0
3
bafe54956d92542ae97bc15168154b2050039241
485
py
Python
mac/pyobjc-framework-Quartz/PyObjCTest/test_PDFAnnotation.py
albertz/music-player
d23586f5bf657cbaea8147223be7814d117ae73d
[ "BSD-2-Clause" ]
132
2015-01-01T10:02:42.000Z
2022-03-09T12:51:01.000Z
mac/pyobjc-framework-Quartz/PyObjCTest/test_PDFAnnotation.py
mba811/music-player
7998986b34cfda2244ef622adefb839331b81a81
[ "BSD-2-Clause" ]
6
2015-01-06T08:23:19.000Z
2019-03-14T12:22:06.000Z
mac/pyobjc-framework-Quartz/PyObjCTest/test_PDFAnnotation.py
mba811/music-player
7998986b34cfda2244ef622adefb839331b81a81
[ "BSD-2-Clause" ]
27
2015-02-23T11:51:43.000Z
2022-03-07T02:34:18.000Z
from PyObjCTools.TestSupport import * from Quartz.PDFKit import * class TestPDFAnnotation (TestCase): def testMethods(self): self.assertResultIsBOOL(PDFAnnotation.shouldDisplay) self.assertArgIsBOOL(PDFAnnotation.setShouldDisplay_, 0) self.assertResultIsBOOL(PDFAnnotation.shouldPrint) ...
32.333333
66
0.762887
40
485
9
0.6
0.183333
0.291667
0.2
0
0
0
0
0
0
0
0.00489
0.156701
485
14
67
34.642857
0.875306
0
0
0
0
0
0.016529
0
0
0
0
0
0.454545
1
0.090909
false
0
0.181818
0
0.363636
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
3
2401ef1bb0cb741cbeac82b95a7eba1326a957b7
1,813
py
Python
backend/ibutsu_server/models/group.py
john-dupuy/ibutsu-server
ae380fc7a72a4898075291bac8fdb86952bfd06a
[ "MIT" ]
null
null
null
backend/ibutsu_server/models/group.py
john-dupuy/ibutsu-server
ae380fc7a72a4898075291bac8fdb86952bfd06a
[ "MIT" ]
null
null
null
backend/ibutsu_server/models/group.py
john-dupuy/ibutsu-server
ae380fc7a72a4898075291bac8fdb86952bfd06a
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import absolute_import from ibutsu_server import util from ibutsu_server.models.base_model_ import Model class Group(Model): """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). Do not edit the class manually. """ def __init__(...
21.329412
96
0.552675
241
1,813
4.062241
0.253112
0.067416
0.123596
0.05618
0.367722
0.355465
0.355465
0.296221
0.296221
0.296221
0
0.000845
0.34749
1,813
84
97
21.583333
0.826712
0.432984
0
0.25
1
0
0.029909
0
0
0
0
0
0
1
0.25
false
0
0.125
0
0.541667
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
1
0
0
0
0
1
0
0
3
241bc9ceeaf007cf8c3f1adcf1de894a391d7c80
325
py
Python
serving_patterns/src/app/api/_health.py
shibuiwilliam/ml-system-in-action
0aa9d6bc4a4346236b9c971ec90afad04bcf5cca
[ "MIT" ]
10
2020-08-30T03:19:10.000Z
2021-08-08T17:38:06.000Z
serving_patterns/src/app/api/_health.py
shibuiwilliam/ml-system-in-action
0aa9d6bc4a4346236b9c971ec90afad04bcf5cca
[ "MIT" ]
null
null
null
serving_patterns/src/app/api/_health.py
shibuiwilliam/ml-system-in-action
0aa9d6bc4a4346236b9c971ec90afad04bcf5cca
[ "MIT" ]
6
2020-08-30T03:19:13.000Z
2021-11-26T23:32:42.000Z
from typing import Dict import logging from src.middleware.profiler import do_cprofile logger = logging.getLogger(__name__) @do_cprofile def health() -> Dict[str, str]: return {"health": "ok"} def health_sync() -> Dict[str, str]: return health() async def health_async() -> Dict[str, str]: return heal...
17.105263
47
0.698462
44
325
4.977273
0.454545
0.123288
0.136986
0.219178
0.30137
0
0
0
0
0
0
0
0.172308
325
18
48
18.055556
0.814126
0
0
0.181818
0
0
0.024615
0
0
0
0
0
0
1
0.181818
false
0
0.272727
0.181818
0.727273
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
1
1
0
0
3
2458dac6adb26f8c77b50a1f69f3c2ef18781671
2,518
py
Python
models/deep_factorized_model.py
kundajelab/mpra_minimal
2799ed87821130fc537836651d37e45a3247382d
[ "MIT" ]
11
2019-05-06T13:13:35.000Z
2022-03-10T22:24:27.000Z
models/deep_factorized_model.py
mineeme/MPRA-DragoNN
2799ed87821130fc537836651d37e45a3247382d
[ "MIT" ]
null
null
null
models/deep_factorized_model.py
mineeme/MPRA-DragoNN
2799ed87821130fc537836651d37e45a3247382d
[ "MIT" ]
2
2019-07-24T20:42:08.000Z
2020-02-21T02:33:30.000Z
from models.base_model import BaseModel from keras.models import Sequential from keras.layers import Input, Dense, Conv1D, MaxPooling1D, Dropout, Flatten, BatchNormalization from keras.optimizers import Adam import tensorflow as tf class DeepFactorizedModel(BaseModel): def __init__(self, config): super(De...
34.493151
124
0.643765
309
2,518
5.187702
0.20712
0.207736
0.262009
0.089208
0.635683
0.607611
0.607611
0.607611
0.607611
0.607611
0
0.039235
0.210485
2,518
72
125
34.972222
0.767103
0.023034
0
0.52
0
0
0.04075
0
0
0
0
0
0
1
0.04
false
0
0.1
0
0.16
0
0
0
0
null
1
1
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
3
2459202d8235c994028b62181cbfcd741881a72d
323
py
Python
scripts/nengo_os/print_control.py
markplagge/neuro_os
60b246c0f975d30658628e1caf60cd209e740e6e
[ "BSD-3-Clause" ]
null
null
null
scripts/nengo_os/print_control.py
markplagge/neuro_os
60b246c0f975d30658628e1caf60cd209e740e6e
[ "BSD-3-Clause" ]
1
2020-07-21T02:25:45.000Z
2020-07-21T02:27:45.000Z
scripts/nengo_os/print_control.py
markplagge/neuro_os
60b246c0f975d30658628e1caf60cd209e740e6e
[ "BSD-3-Clause" ]
null
null
null
debug_print = False has_run_once = False def d_print(*args, **kwargs): global debug_print global has_run_once if not has_run_once: m = "enabled" if debug_print else "disabled" print(f"Debug Print Mode is {m}") has_run_once = True if debug_print: print(*args, **kwargs)...
17.944444
52
0.634675
48
323
4
0.4375
0.260417
0.208333
0
0
0
0
0
0
0
0
0
0.275542
323
17
53
19
0.820513
0
0
0
0
0
0.11838
0
0
0
0
0
0
1
0.090909
false
0
0
0
0.090909
0.636364
0
0
0
null
1
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
1
0
3
24605b6587afbc12049e73b54cb4418582146acb
37
py
Python
zhaquirks/bosch/__init__.py
WolfRevo/zha-device-handlers
0fa4ca1c03c611be0cf2c38c4fec2a197e3dd1d3
[ "Apache-2.0" ]
213
2020-04-16T10:48:31.000Z
2022-03-30T20:48:07.000Z
zhaquirks/bosch/__init__.py
WolfRevo/zha-device-handlers
0fa4ca1c03c611be0cf2c38c4fec2a197e3dd1d3
[ "Apache-2.0" ]
1,088
2020-04-03T13:23:29.000Z
2022-03-31T23:55:03.000Z
zhaquirks/bosch/__init__.py
WolfRevo/zha-device-handlers
0fa4ca1c03c611be0cf2c38c4fec2a197e3dd1d3
[ "Apache-2.0" ]
280
2020-04-24T08:44:27.000Z
2022-03-31T12:58:04.000Z
"""Bosch quirks.""" BOSCH = "Bosch"
9.25
19
0.567568
4
37
5.25
0.5
0
0
0
0
0
0
0
0
0
0
0
0.162162
37
3
20
12.333333
0.677419
0.351351
0
0
0
0
0.277778
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
24669af442e48736ce23de6fe426df216d0af465
661
py
Python
sharedql/schema.py
akaytatsu/sharedql
ceeb3df2909bc90325c72f930fba35de6827ee74
[ "MIT" ]
null
null
null
sharedql/schema.py
akaytatsu/sharedql
ceeb3df2909bc90325c72f930fba35de6827ee74
[ "MIT" ]
null
null
null
sharedql/schema.py
akaytatsu/sharedql
ceeb3df2909bc90325c72f930fba35de6827ee74
[ "MIT" ]
null
null
null
from __future__ import print_function import sys import importlib from django.conf import settings import graphene from .base import sharedql for imports in settings.INSTALLED_APPS: imports = imports + ".schema" try: mod = importlib.import_module(imports + ".schema") except ImportError: ...
25.423077
81
0.715582
80
661
5.7625
0.55
0.056399
0
0
0
0
0
0
0
0
0
0
0.172466
661
26
82
25.423077
0.842779
0.249622
0
0
0
0
0.03854
0
0
0
0
0
0
1
0
false
0.066667
0.666667
0
0.666667
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
0
0
0
1
1
0
1
0
0
3
03018f2878f299da32e5fb359237991d538d5f69
288
py
Python
services/web/project/adminsettings.py
pwdel/srcflask
71c91cc9edb2a5e3aa08dbdd819e05feb84175f2
[ "BSD-Source-Code" ]
null
null
null
services/web/project/adminsettings.py
pwdel/srcflask
71c91cc9edb2a5e3aa08dbdd819e05feb84175f2
[ "BSD-Source-Code" ]
null
null
null
services/web/project/adminsettings.py
pwdel/srcflask
71c91cc9edb2a5e3aa08dbdd819e05feb84175f2
[ "BSD-Source-Code" ]
null
null
null
# administrative username and password for development ADMIN_USERNAME = 'admin' ADMIN_PASSWORD = 'password' ADMIN_TYPE = 'admin' # for production # ADMIN_USERNAME = 'environ.get('ADMIN_USERNAME') # ADMIN_PASSWORD = 'environ.get('ADMIN_PASSWORD') # ADMIN_TYPE = 'environ.get('ADMIN_TYPE')
32
54
0.770833
35
288
6.085714
0.314286
0.183099
0.211268
0
0
0
0
0
0
0
0
0
0.107639
288
8
55
36
0.828794
0.704861
0
0
0
0
0.227848
0
0
0
0
0
0
1
0
false
0.333333
0
0
0
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
3
03094a8fb0cb1c5dd1e571be669375786508c47f
403
py
Python
oacensus/exceptions.py
ananelson/oacensus
87916c92ab1233bcf82a481113017dfb8d7701b9
[ "Apache-2.0" ]
null
null
null
oacensus/exceptions.py
ananelson/oacensus
87916c92ab1233bcf82a481113017dfb8d7701b9
[ "Apache-2.0" ]
2
2016-01-10T20:23:41.000Z
2016-01-14T16:57:06.000Z
oacensus/exceptions.py
ananelson/oacensus
87916c92ab1233bcf82a481113017dfb8d7701b9
[ "Apache-2.0" ]
null
null
null
class OacensusError(Exception): pass class UserFeedback(OacensusError): """ An exception which was caused by user input or a runtime error and which should be presented nicely. """ class ConfigFileFormatProblem(UserFeedback): """ A problem with config files. """ pass class APIErro...
19.190476
76
0.665012
45
403
5.955556
0.666667
0.067164
0
0
0
0
0
0
0
0
0
0
0.253102
403
20
77
20.15
0.890365
0.411911
0
0.428571
0
0
0
0
0
0
0
0
0
1
0
true
0.428571
0
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
1
0
0
3
031c707ec58ef183b7c607c6546f5f047d0e3e8e
272
py
Python
scripting/__init__.py
csdms/py-scripting
df8ba070e44a9d8e6ffcb70958f851e6776e2853
[ "MIT" ]
null
null
null
scripting/__init__.py
csdms/py-scripting
df8ba070e44a9d8e6ffcb70958f851e6776e2853
[ "MIT" ]
null
null
null
scripting/__init__.py
csdms/py-scripting
df8ba070e44a9d8e6ffcb70958f851e6776e2853
[ "MIT" ]
null
null
null
from ._version import get_versions from .contexts import cd from .prompting import error, prompt, status, success from .unix import cp, ln_s __all__ = ["prompt", "status", "success", "error", "cp", "cd", "ln_s"] __version__ = get_versions()["version"] del get_versions
24.727273
70
0.724265
38
272
4.815789
0.473684
0.180328
0.20765
0
0
0
0
0
0
0
0
0
0.136029
272
10
71
27.2
0.778723
0
0
0
0
0
0.143382
0
0
0
0
0
0
1
0
false
0
0.571429
0
0.571429
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
1
0
1
0
0
3
033bef35de4a5d1c411f88cd89ce77dc04b26d5f
1,748
py
Python
src/toil/server/wsgi_app.py
PolusAI/toil
a98acdb5cbe0f850b2c11403d147577d9971f4e1
[ "Apache-2.0" ]
516
2015-07-30T19:08:55.000Z
2018-07-03T20:53:42.000Z
src/toil/server/wsgi_app.py
PolusAI/toil
a98acdb5cbe0f850b2c11403d147577d9971f4e1
[ "Apache-2.0" ]
1,949
2015-07-29T23:38:49.000Z
2018-07-05T12:42:04.000Z
src/toil/server/wsgi_app.py
gmloose/toil
a82834073b28f66747c5c3ac99d1a678b82d2290
[ "Apache-2.0" ]
193
2015-07-31T18:52:57.000Z
2018-07-05T08:54:11.000Z
# Copyright (C) 2015-2021 Regents of the University of California # # 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 app...
34.27451
78
0.676201
239
1,748
4.903766
0.506276
0.051195
0.022184
0.027304
0.064846
0.064846
0.064846
0.064846
0
0
0
0.008856
0.224828
1,748
50
79
34.96
0.856089
0.519451
0
0
0
0
0
0
0
0
0
0
0
1
0.294118
false
0.058824
0.117647
0.058824
0.529412
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
033e5296d7002695cb78ba70091a41d8f1afe514
102
py
Python
tests/files/build_flask.py
microservice-tools/pixis
ce5a1ecc70732677518d21a0e876440af1245eac
[ "MIT" ]
null
null
null
tests/files/build_flask.py
microservice-tools/pixis
ce5a1ecc70732677518d21a0e876440af1245eac
[ "MIT" ]
21
2018-04-25T19:07:41.000Z
2018-07-18T06:04:56.000Z
tests/files/build_flask.py
microservice-tools/pixis
ce5a1ecc70732677518d21a0e876440af1245eac
[ "MIT" ]
1
2018-04-23T14:44:00.000Z
2018-04-23T14:44:00.000Z
SPEC = 'swagger.yaml' IMPLEMENTATION = 'flask' OUTPUT = 'build' FLASK_SERVER_NAME = 'my_flask_server'
20.4
37
0.754902
13
102
5.615385
0.769231
0.30137
0
0
0
0
0
0
0
0
0
0
0.117647
102
4
38
25.5
0.811111
0
0
0
0
0
0.362745
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
036b561ed932ab60b4b97fb19bd96ddc0a940784
246
py
Python
lab_restful/app/models/Paper.py
afish1001/lab_server
c6a2b09834d73078ab52e2965849cd41ba795b4b
[ "MIT" ]
null
null
null
lab_restful/app/models/Paper.py
afish1001/lab_server
c6a2b09834d73078ab52e2965849cd41ba795b4b
[ "MIT" ]
null
null
null
lab_restful/app/models/Paper.py
afish1001/lab_server
c6a2b09834d73078ab52e2965849cd41ba795b4b
[ "MIT" ]
null
null
null
from .. import utils from ..config import table class Paper(): def __init__(self): self.collection = table.paper self.conn = utils.mongo.db.get_collection(self.collection) def list(self): pass paper = Paper()
16.4
66
0.642276
31
246
4.935484
0.548387
0.183007
0
0
0
0
0
0
0
0
0
0
0.247967
246
14
67
17.571429
0.827027
0
0
0
0
0
0
0
0
0
0
0
0
1
0.222222
false
0.111111
0.222222
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
ceed5b9c4d3963ebe8a8bb9c365ef1238097db1b
390
py
Python
tests/basics/try_reraise.py
geowor01/micropython
7fb13eeef4a85f21cae36f1d502bcc53880e1815
[ "MIT" ]
7
2019-10-18T13:41:39.000Z
2022-03-15T17:27:57.000Z
tests/basics/try_reraise.py
geowor01/micropython
7fb13eeef4a85f21cae36f1d502bcc53880e1815
[ "MIT" ]
null
null
null
tests/basics/try_reraise.py
geowor01/micropython
7fb13eeef4a85f21cae36f1d502bcc53880e1815
[ "MIT" ]
2
2020-06-23T09:10:15.000Z
2020-12-22T06:42:14.000Z
# Reraising last exception with raise w/o args def f(): try: raise ValueError("val", 3) print("FAIL") raise SystemExit except: raise try: f() print("FAIL") raise SystemExit except ValueError as e: pass # Can reraise only in except block try: raise prin...
15
46
0.602564
48
390
4.895833
0.5625
0.114894
0.178723
0.306383
0.382979
0
0
0
0
0
0
0.003704
0.307692
390
25
47
15.6
0.866667
0.197436
0
0.578947
0
0
0.06129
0
0
0
0
0
0
1
0.052632
true
0.105263
0
0
0.052632
0.210526
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
1
1
0
0
0
0
0
3
cef7afd517df5ca0ce5466fa5f955c031bbbb177
223
py
Python
src/projects/tests/factories/package.py
unikubehq/projects
0df69eafa2a0d2664a22c7a5866d4512ac4d57fe
[ "Apache-2.0" ]
1
2021-10-05T13:17:03.000Z
2021-10-05T13:17:03.000Z
src/projects/tests/factories/package.py
unikubehq/projects
0df69eafa2a0d2664a22c7a5866d4512ac4d57fe
[ "Apache-2.0" ]
48
2021-07-06T07:24:36.000Z
2022-03-24T08:27:30.000Z
src/projects/tests/factories/package.py
unikubehq/projects
0df69eafa2a0d2664a22c7a5866d4512ac4d57fe
[ "Apache-2.0" ]
null
null
null
import factory from projects.tests.factories.project import ProjectFactory class DeckFactory(factory.DjangoModelFactory): class Meta: model = "projects.Deck" project = factory.SubFactory(ProjectFactory)
20.272727
59
0.766816
22
223
7.772727
0.681818
0
0
0
0
0
0
0
0
0
0
0
0.161435
223
10
60
22.3
0.914439
0
0
0
0
0
0.058296
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.833333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
cef8e48081ec1240c8d15a802e15c821eaaffb84
1,064
py
Python
cfc_app/migrations/0005_auto_20201024_0139.py
ephyle/Legit-Info
7f3845563a64299aa64e4fdba75949276ed9a711
[ "BSD-2-Clause", "CC-BY-4.0", "Apache-2.0" ]
44
2020-10-19T13:06:10.000Z
2022-01-23T10:56:31.000Z
cfc_app/migrations/0005_auto_20201024_0139.py
ephyle/Legit-Info
7f3845563a64299aa64e4fdba75949276ed9a711
[ "BSD-2-Clause", "CC-BY-4.0", "Apache-2.0" ]
111
2020-10-20T22:12:58.000Z
2022-03-28T00:25:13.000Z
cfc_app/migrations/0005_auto_20201024_0139.py
ephyle/Legit-Info
7f3845563a64299aa64e4fdba75949276ed9a711
[ "BSD-2-Clause", "CC-BY-4.0", "Apache-2.0" ]
31
2021-02-08T22:32:37.000Z
2022-03-11T10:57:29.000Z
# Generated by Django 3.0.8 on 2020-10-24 01:39 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('cfc_app', '0004_auto_20201024_0133'), ] operations = [ migrations.AlterField( model_name='hash', name='fob_method', ...
27.282051
67
0.56391
102
1,064
5.735294
0.470588
0.17094
0.213675
0.247863
0.531624
0.531624
0.215385
0
0
0
0
0.051247
0.321429
1,064
38
68
28
0.759003
0.042293
0
0.46875
1
0
0.093412
0.022616
0
0
0
0
0
1
0
false
0
0.03125
0
0.125
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
cefb3f843b82b1bef9a3afd4b8e0d08adb19182d
175
py
Python
code/eda.py
rodriggs/twosigmafinancial
a8ad216a71e4bb3fbfbd606281b101b845eae961
[ "MIT" ]
null
null
null
code/eda.py
rodriggs/twosigmafinancial
a8ad216a71e4bb3fbfbd606281b101b845eae961
[ "MIT" ]
null
null
null
code/eda.py
rodriggs/twosigmafinancial
a8ad216a71e4bb3fbfbd606281b101b845eae961
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import h5py # docker run -it kagglegym # python # >>> import kagglegym # >>> kagglegym.test() train = pd.read_hdf("../data/train.h5")
15.909091
39
0.691429
26
175
4.615385
0.692308
0
0
0
0
0
0
0
0
0
0
0.013699
0.165714
175
10
40
17.5
0.808219
0.417143
0
0
0
0
0.164948
0
0
0
0
0
0
1
0
false
0
0.75
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
3010ae6e12181dbe483e73b05d5e55639ba72b1f
240
py
Python
backend/categories/models.py
cristianemoyano/django-react-webapp
c91d263f58b0d66a8c260e095d0ec6cee66f8afd
[ "MIT" ]
null
null
null
backend/categories/models.py
cristianemoyano/django-react-webapp
c91d263f58b0d66a8c260e095d0ec6cee66f8afd
[ "MIT" ]
null
null
null
backend/categories/models.py
cristianemoyano/django-react-webapp
c91d263f58b0d66a8c260e095d0ec6cee66f8afd
[ "MIT" ]
null
null
null
from django.db import models class Category(models.Model): """Category model.""" name = models.CharField(max_length=100, unique=True) class Meta: ordering = ('name',) def __str__(self): return self.name
17.142857
56
0.633333
29
240
5.068966
0.724138
0
0
0
0
0
0
0
0
0
0
0.016484
0.241667
240
13
57
18.461538
0.791209
0.0625
0
0
0
0
0.018265
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0.142857
0.857143
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
1
1
0
0
3
302088ce171e1ce5fee7f69b6466cc5d52936180
3,960
py
Python
dingtalk/python/alibabacloud_dingtalk/workrecord_1_0/client.py
yndu13/dingtalk-sdk
700fb7bb49c4d3167f84afc5fcb5e7aa5a09735f
[ "Apache-2.0" ]
15
2020-08-27T04:10:26.000Z
2022-03-07T06:25:42.000Z
dingtalk/python/alibabacloud_dingtalk/workrecord_1_0/client.py
yndu13/dingtalk-sdk
700fb7bb49c4d3167f84afc5fcb5e7aa5a09735f
[ "Apache-2.0" ]
1
2020-09-27T01:30:46.000Z
2021-12-29T09:15:34.000Z
dingtalk/python/alibabacloud_dingtalk/workrecord_1_0/client.py
yndu13/dingtalk-sdk
700fb7bb49c4d3167f84afc5fcb5e7aa5a09735f
[ "Apache-2.0" ]
5
2020-08-27T04:07:44.000Z
2021-12-03T02:55:20.000Z
# -*- coding: utf-8 -*- # This file is auto-generated, don't edit it. Thanks. from Tea.core import TeaCore from alibabacloud_tea_openapi.client import Client as OpenApiClient from alibabacloud_tea_openapi import models as open_api_models from alibabacloud_tea_util.client import Client as UtilClient from alibabacloud_d...
44.494382
150
0.716162
432
3,960
6.141204
0.201389
0.01357
0.11308
0.147003
0.785526
0.747079
0.687524
0.687524
0.683754
0.683754
0
0.013016
0.204545
3,960
88
151
45
0.829206
0.020202
0
0.644737
1
0
0.054837
0.025867
0
0
0
0
0
1
0.039474
false
0
0.092105
0
0.197368
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
30292b7c2f6979a04692b3c67d475af07d5a822b
184
py
Python
modules/moderation/__init__.py
H3xadecimal/Nest
4422cf5725a71603ff58ccbf9f261b28ff96f70e
[ "MIT" ]
10
2018-04-21T07:29:42.000Z
2019-02-01T20:46:48.000Z
modules/moderation/__init__.py
H3xadecimal/Nest
4422cf5725a71603ff58ccbf9f261b28ff96f70e
[ "MIT" ]
2
2018-09-10T00:58:40.000Z
2019-12-22T11:19:58.000Z
modules/moderation/__init__.py
H3xadecimal/Nest
4422cf5725a71603ff58ccbf9f261b28ff96f70e
[ "MIT" ]
2
2018-09-09T23:07:56.000Z
2019-10-19T15:26:56.000Z
""" Basic moderation utilities for Birb. """ from .staff import CheckMods from .actions import ModActions def setup(bot): bot.add_cog(CheckMods()) bot.add_cog(ModActions())
15.333333
36
0.717391
24
184
5.416667
0.666667
0.092308
0.138462
0
0
0
0
0
0
0
0
0
0.163043
184
11
37
16.727273
0.844156
0.195652
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.4
0
0.6
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
303842a63bcf998cc97937b86976891ee5b81ac2
5,547
py
Python
lift-learn/metrics/_values.py
smn-ailab/lift-learn
158b8be554aad49033ee2eacf14fbbeb2418d6f7
[ "MIT" ]
1
2019-03-12T11:07:16.000Z
2019-03-12T11:07:16.000Z
lift-learn/metrics/_values.py
smn-ailab/lift-learn
158b8be554aad49033ee2eacf14fbbeb2418d6f7
[ "MIT" ]
1
2019-02-15T06:21:33.000Z
2019-02-20T01:03:54.000Z
lift-learn/metrics/_values.py
smn-ailab/lift-learn
158b8be554aad49033ee2eacf14fbbeb2418d6f7
[ "MIT" ]
null
null
null
"""Metrics to assess performance on ite prediction task.""" from typing import Optional import numpy as np import pandas as pd def expected_response(y: np.ndarray, w: np.ndarray, policy: np.ndarray, mu: Optional[np.ndarray]=None, ps: Optional[np.ndarray]=None) -> float: """Estimate expected...
36.493421
152
0.650442
772
5,547
4.589378
0.176166
0.053345
0.043466
0.063223
0.796218
0.761219
0.713237
0.691222
0.624894
0.603443
0
0.011233
0.229674
5,547
151
153
36.735099
0.817927
0.383991
0
0.677966
0
0
0.083702
0
0
0
0
0
0.033898
1
0.050847
false
0
0.050847
0
0.152542
0
0
0
0
null
0
0
0
0
1
1
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
3
303aea533163720c626b39e6c0bbce695a86963f
16,358
py
Python
tests/cases/matching_graph.py
nilsec/mtrack
76652c468417c7e3ac9903586c0127b884d6b032
[ "MIT" ]
null
null
null
tests/cases/matching_graph.py
nilsec/mtrack
76652c468417c7e3ac9903586c0127b884d6b032
[ "MIT" ]
null
null
null
tests/cases/matching_graph.py
nilsec/mtrack
76652c468417c7e3ac9903586c0127b884d6b032
[ "MIT" ]
null
null
null
import unittest import numpy as np from mtrack.graphs import G1 from mtrack.evaluation.matching_graph import MatchingGraph from mtrack.evaluation.voxel_skeleton import VoxelSkeleton from comatch import match_components import json test_data_dir = "./data" class ParallelLinesSetUp(unittest.TestCase): def setUp(se...
38.399061
183
0.578127
1,950
16,358
4.528718
0.094359
0.044389
0.023667
0.025365
0.771487
0.720303
0.681916
0.650323
0.632997
0.609218
0
0.016658
0.324734
16,358
425
184
38.489412
0.782817
0.014183
0
0.568493
0
0
0.020643
0
0
0
0
0
0.116438
0
null
null
0
0.041096
null
null
0.030822
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
3
3043145d544f46f022747e55bca435bd3cfd11fa
133
py
Python
src/a01/communication.py
mcardosos/adx-automation-client
d657ff85b0f0e408e5c64703c47798d164f49a35
[ "MIT" ]
3
2018-02-28T06:22:39.000Z
2020-05-20T12:39:00.000Z
src/a01/communication.py
mcardosos/adx-automation-client
d657ff85b0f0e408e5c64703c47798d164f49a35
[ "MIT" ]
19
2018-02-26T21:13:43.000Z
2018-05-02T16:33:35.000Z
src/a01/communication.py
mcardosos/adx-automation-client
d657ff85b0f0e408e5c64703c47798d164f49a35
[ "MIT" ]
6
2018-02-26T18:10:31.000Z
2020-12-30T10:21:31.000Z
import requests from a01.auth import A01Auth session = requests.Session() # pylint: disable=invalid-name session.auth = A01Auth()
19
60
0.766917
17
133
6
0.647059
0
0
0
0
0
0
0
0
0
0
0.052174
0.135338
133
6
61
22.166667
0.834783
0.210526
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
304caab2fd293dcea3ce7502cec96c166db7a553
187
py
Python
system/widget.py
ywchiao/shot
4b7c55bdcca44d05e07fffa59fe4e23364032cb5
[ "MIT" ]
null
null
null
system/widget.py
ywchiao/shot
4b7c55bdcca44d05e07fffa59fe4e23364032cb5
[ "MIT" ]
null
null
null
system/widget.py
ywchiao/shot
4b7c55bdcca44d05e07fffa59fe4e23364032cb5
[ "MIT" ]
1
2020-03-27T02:07:27.000Z
2020-03-27T02:07:27.000Z
from .system import System from logcat import LogCat class Widget(System): def __init__(self): super().__init__() self.on("cmd_render", self._render) # widget.py
14.384615
43
0.663102
24
187
4.75
0.583333
0.140351
0
0
0
0
0
0
0
0
0
0
0.224599
187
12
44
15.583333
0.786207
0.048128
0
0
0
0
0.057143
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
305a285236c3e11d999251641ede1bf722d4ce33
211
py
Python
web/app/conf/__init__.py
kvikshaug/btc.kvikshaug.no
a353096db9edf7ef0aa44e77c367c96b73fbfe6f
[ "Unlicense" ]
null
null
null
web/app/conf/__init__.py
kvikshaug/btc.kvikshaug.no
a353096db9edf7ef0aa44e77c367c96b73fbfe6f
[ "Unlicense" ]
null
null
null
web/app/conf/__init__.py
kvikshaug/btc.kvikshaug.no
a353096db9edf7ef0aa44e77c367c96b73fbfe6f
[ "Unlicense" ]
null
null
null
import importlib import os conf_module = importlib.import_module("conf.%s" % os.environ['CONFIGURATION']) settings = { key: getattr(conf_module, key) for key in dir(conf_module) if key.isupper() }
19.181818
78
0.706161
29
211
5
0.551724
0.206897
0
0
0
0
0
0
0
0
0
0
0.170616
211
10
79
21.1
0.828571
0
0
0
0
0
0.094787
0
0
0
0
0
0
1
0
false
0
0.375
0
0.375
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
0630137217338e4305c7a3e00109299b6cd31cc9
133
py
Python
src/rstatmon/session_manager.py
git-ogawa/raspi-statmon
619d7a8f697cad92437e2f558de2e0a626b5072f
[ "BSD-3-Clause" ]
null
null
null
src/rstatmon/session_manager.py
git-ogawa/raspi-statmon
619d7a8f697cad92437e2f558de2e0a626b5072f
[ "BSD-3-Clause" ]
null
null
null
src/rstatmon/session_manager.py
git-ogawa/raspi-statmon
619d7a8f697cad92437e2f558de2e0a626b5072f
[ "BSD-3-Clause" ]
null
null
null
from flask import session class Session(): @staticmethod def set_session(key: str, value): session[key] = value
12.090909
37
0.646617
16
133
5.3125
0.6875
0.235294
0
0
0
0
0
0
0
0
0
0
0.263158
133
10
38
13.3
0.867347
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
063c305a923cd42896c01fbe6e2e8a0cb43f9912
452
py
Python
excript/aulas/aula26_concatena.py
victorers1/anotacoes_curso_python
c4ef56bcfc7e3baa3944fc2962e8217c6d720b0e
[ "MIT" ]
null
null
null
excript/aulas/aula26_concatena.py
victorers1/anotacoes_curso_python
c4ef56bcfc7e3baa3944fc2962e8217c6d720b0e
[ "MIT" ]
null
null
null
excript/aulas/aula26_concatena.py
victorers1/anotacoes_curso_python
c4ef56bcfc7e3baa3944fc2962e8217c6d720b0e
[ "MIT" ]
null
null
null
num_int = 5 num_dec = 7.3 val_str = "texto qualquer " print("Primeiro número é:", num_int) print("O poder do Kakaroto é mais de %i mil" %num_dec) print("Olá mundo " + val_str + str(num_int)) print("Concatenando decimal:", num_dec) print("Concatenando decimal: %.10f" %num_dec) print("Concatenando decimal: " + str(num...
30.133333
55
0.721239
70
452
4.471429
0.414286
0.325879
0.140575
0.220447
0.479233
0
0
0
0
0
0
0.012723
0.130531
452
15
56
30.133333
0.783715
0
0
0
0
0
0.476821
0
0
0
0
0
0
1
0
false
0
0
0
0
0.75
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
3
066e5fb8233dc5224d22ebf3b89a9a83782274aa
745
py
Python
TITADOweb/web/migrations/0005_passwordresetcodes.py
KomeilParseh/TITA-DO
714685fa18bfd2ef07f5c0d656927039b05d7997
[ "MIT" ]
9
2020-08-27T10:10:11.000Z
2021-04-21T04:46:15.000Z
TITADOweb/web/migrations/0005_passwordresetcodes.py
mdk1384/TITA-DO-1
714685fa18bfd2ef07f5c0d656927039b05d7997
[ "MIT" ]
2
2020-08-27T12:09:57.000Z
2021-01-05T09:29:19.000Z
TITADOweb/web/migrations/0005_passwordresetcodes.py
mdk1384/TITA-DO-1
714685fa18bfd2ef07f5c0d656927039b05d7997
[ "MIT" ]
2
2020-08-27T10:10:18.000Z
2021-01-01T06:20:20.000Z
# Generated by Django 3.1.4 on 2020-12-27 17:34 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('web', '0004_token'), ] operations = [ migrations.CreateModel( name='Passwordresetcodes', fields=[ ('...
29.8
114
0.561074
73
745
5.616438
0.684932
0.146341
0.17561
0.234146
0.126829
0
0
0
0
0
0
0.053537
0.297987
745
24
115
31.041667
0.730402
0.060403
0
0
1
0
0.091691
0
0
0
0
0
0
1
0
false
0.111111
0.055556
0
0.222222
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
3
069a8d7c6fbb5a8f120cebac621c759b5b2c0718
233
py
Python
article_retrieval/__main__.py
aleph-oh/wikigame-solver
9a7b0a16df41291890e2bbe5903be55b25cef0f4
[ "MIT" ]
null
null
null
article_retrieval/__main__.py
aleph-oh/wikigame-solver
9a7b0a16df41291890e2bbe5903be55b25cef0f4
[ "MIT" ]
null
null
null
article_retrieval/__main__.py
aleph-oh/wikigame-solver
9a7b0a16df41291890e2bbe5903be55b25cef0f4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Constructs article graph.""" from database import clear_db from database.constants import engine from .database_builder import populate_db if __name__ == "__main__": clear_db(engine) populate_db()
21.181818
41
0.759657
31
233
5.290323
0.612903
0.219512
0
0
0
0
0
0
0
0
0
0.005
0.141631
233
10
42
23.3
0.815
0.201717
0
0
0
0
0.044444
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
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
1
0
1
0
0
0
0
3
06a458881d352d1e5bc5252e5c9354f711ebe5e6
208
py
Python
src_old/tests/scripts/core/ex7.py
toddrme2178/pyccel
deec37503ab0c5d0bcca1a035f7909f7ce8ef653
[ "MIT" ]
null
null
null
src_old/tests/scripts/core/ex7.py
toddrme2178/pyccel
deec37503ab0c5d0bcca1a035f7909f7ce8ef653
[ "MIT" ]
null
null
null
src_old/tests/scripts/core/ex7.py
toddrme2178/pyccel
deec37503ab0c5d0bcca1a035f7909f7ce8ef653
[ "MIT" ]
null
null
null
#coding: utf-8 a = zeros((10,10), double) for i in range(0,10): a[i,i] = 2.0 for i in range(0,9): a[i,i+1] = -1.0 for i in range(0,9): a[i,i+1] = -1.0 n = 5 for i in range(0, n): x = 1
10.947368
26
0.480769
53
208
1.886792
0.339623
0.16
0.24
0.44
0.63
0.39
0.39
0.39
0.39
0.39
0
0.156463
0.293269
208
18
27
11.555556
0.52381
0.0625
0
0.4
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
1
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
06abef330b43336341fe87f19a5bb8dd00ab85db
252
py
Python
driver/comtypes_gamry_simulate.py
yul69-cell/HELAO
a39372eb385ee93b711443d9cbd56c5ec737ff70
[ "CC0-1.0" ]
null
null
null
driver/comtypes_gamry_simulate.py
yul69-cell/HELAO
a39372eb385ee93b711443d9cbd56c5ec737ff70
[ "CC0-1.0" ]
null
null
null
driver/comtypes_gamry_simulate.py
yul69-cell/HELAO
a39372eb385ee93b711443d9cbd56c5ec737ff70
[ "CC0-1.0" ]
null
null
null
#create cinet and functions like COMError that simulate Gamry #dtaq.Cook is defined to return dummy data when called #import config here and check if a simulation is being run and if so load that simulation .py that overrides functions like dtaq.Cook
50.4
133
0.809524
43
252
4.744186
0.744186
0.127451
0
0
0
0
0
0
0
0
0
0
0.166667
252
5
133
50.4
0.971429
0.972222
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
06af2b443d404bade0c4526a7994135505c898f7
737
py
Python
kelte/maths/vector.py
brianbruggeman/rl
6dd8a53da07697ffc87e62aa397be7b3b08f0aa0
[ "MIT" ]
null
null
null
kelte/maths/vector.py
brianbruggeman/rl
6dd8a53da07697ffc87e62aa397be7b3b08f0aa0
[ "MIT" ]
null
null
null
kelte/maths/vector.py
brianbruggeman/rl
6dd8a53da07697ffc87e62aa397be7b3b08f0aa0
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from .point import Point @dataclass() class Direction(Point): x: int = 0 y: int = 0 NONE: Direction = Direction(0, 0) NORTH: Direction = Direction(0, -1) SOUTH: Direction = Direction(0, 1) EAST: Direction = Direction(1, 0) WEST: Direction = Direction(-1, 0) NORTH_...
22.333333
40
0.708277
104
737
4.942308
0.211538
0.315175
0.184825
0.155642
0
0
0
0
0
0
0
0.032949
0.176391
737
32
41
23.03125
0.813839
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.086957
0
0.217391
0
0
0
0
null
1
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
1
0
0
0
0
0
0
3
2311235022e84d72f4d0c26645f17bee8edd6070
1,615
py
Python
statzcw/stats.py
xt0fer/Py21-BasicStats
5e747765e58092d014fb36e66e2c4d623b1dbcba
[ "MIT" ]
null
null
null
statzcw/stats.py
xt0fer/Py21-BasicStats
5e747765e58092d014fb36e66e2c4d623b1dbcba
[ "MIT" ]
null
null
null
statzcw/stats.py
xt0fer/Py21-BasicStats
5e747765e58092d014fb36e66e2c4d623b1dbcba
[ "MIT" ]
1
2021-07-11T14:50:21.000Z
2021-07-11T14:50:21.000Z
from typing import List def zcount(list: List[float]) -> float: return len(list) # print("stats test") # print("zcount should be 5 ==", zcount([1.0,2.0,3.0,4.0,5.0])) def zmean(list: List[float]) -> float: return sum(list) / zcount(list) def zmode(list: List[float]) -> float: return max(set(list), key...
23.071429
63
0.577709
224
1,615
4.160714
0.352679
0.08691
0.120172
0.135193
0.166309
0.089056
0.089056
0.062232
0
0
0
0.022959
0.271827
1,615
69
64
23.405797
0.769558
0.150464
0
0.068182
0
0
0.000735
0
0
0
0
0
0
1
0.25
false
0.022727
0.022727
0.136364
0.522727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
2316d7baa946659edc0058ea0663bc1e4f77f7ab
14
py
Python
getv/__init__.py
FUNNYDMAN/getv
b0c495c9c9b9dea8bff86916aee85ecac4f505ab
[ "MIT" ]
1
2018-08-07T18:50:43.000Z
2018-08-07T18:50:43.000Z
getv/__init__.py
FUNNYDMAN/getv
b0c495c9c9b9dea8bff86916aee85ecac4f505ab
[ "MIT" ]
null
null
null
getv/__init__.py
FUNNYDMAN/getv
b0c495c9c9b9dea8bff86916aee85ecac4f505ab
[ "MIT" ]
null
null
null
name = "getv"
7
13
0.571429
2
14
4
1
0
0
0
0
0
0
0
0
0
0
0
0.214286
14
1
14
14
0.727273
0
0
0
0
0
0.285714
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
231e10107f5e6e0ebcb3429683ae08fd50e51f90
162
py
Python
collections/employee.py
learning-foundation/python-oo-ds
58c212da4562f65f99c8df24bff7667744ea552b
[ "MIT" ]
null
null
null
collections/employee.py
learning-foundation/python-oo-ds
58c212da4562f65f99c8df24bff7667744ea552b
[ "MIT" ]
null
null
null
collections/employee.py
learning-foundation/python-oo-ds
58c212da4562f65f99c8df24bff7667744ea552b
[ "MIT" ]
null
null
null
class Employee(): def __init__(self, name, doc_number, salary): self._name = name self._doc_number = doc_number self._salary = salary
27
49
0.635802
20
162
4.65
0.45
0.290323
0
0
0
0
0
0
0
0
0
0
0.271605
162
6
50
27
0.788136
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
0
0.4
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
23294fabdcf63ba5d2ca1685c4bb3c0849350f0e
207
py
Python
game_test.py
jakub530/PyGame-Neural-Net
6f592ee97d97470cddc6599203c9a5d9759905c4
[ "MIT" ]
null
null
null
game_test.py
jakub530/PyGame-Neural-Net
6f592ee97d97470cddc6599203c9a5d9759905c4
[ "MIT" ]
null
null
null
game_test.py
jakub530/PyGame-Neural-Net
6f592ee97d97470cddc6599203c9a5d9759905c4
[ "MIT" ]
null
null
null
import sys, pygame,math import numpy as np from pygame import gfxdraw import pygame_lib, nn_lib import pygame.freetype from pygame_lib import color import random import copy import auto_maze import node_vis
20.7
28
0.845411
35
207
4.857143
0.542857
0.117647
0
0
0
0
0
0
0
0
0
0
0.135266
207
10
29
20.7
0.949721
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
3
233e938c1235975c31635e57391932a8a3358fab
692
py
Python
tests/tf_tests/functional/test_tf_inference.py
Deeplite/deeplite-profiler
2b21c0dc5948606c47377f786b605baf4fa31bee
[ "Apache-2.0" ]
17
2021-04-13T06:09:52.000Z
2021-11-24T06:39:41.000Z
tests/tf_tests/functional/test_tf_inference.py
Deeplite/deeplite-profiler
2b21c0dc5948606c47377f786b605baf4fa31bee
[ "Apache-2.0" ]
14
2021-04-14T13:46:42.000Z
2021-12-20T21:10:25.000Z
tests/tf_tests/functional/test_tf_inference.py
Deeplite/deeplite-profiler
2b21c0dc5948606c47377f786b605baf4fa31bee
[ "Apache-2.0" ]
7
2021-04-09T16:47:56.000Z
2022-03-05T11:04:30.000Z
import pytest from tests.tf_tests.functional import BaseFunctionalTest, TENSORFLOW_SUPPORTED, TENSORFLOW_AVAILABLE, MODEL, DATA class TestTFInference(BaseFunctionalTest): def test_get_acc(self): from deeplite.tf_profiler.tf_inference import get_accuracy assert get_accuracy(MODEL, DATA['test']) < 10...
36.421053
113
0.728324
92
692
5.23913
0.336957
0.093361
0.107884
0.112033
0.406639
0.406639
0.406639
0.286307
0.286307
0
0
0.012324
0.179191
692
18
114
38.444444
0.836268
0
0
0
0
0
0.023188
0
0
0
0
0
0.307692
1
0.230769
false
0
0.384615
0
0.692308
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
1
0
1
0
0
3
23549dd532a597635dde1ce83730aec62792e9bd
200
py
Python
waymo_open_dataset/latency/examples/tensorflow/multiframe/wod_latency_submission/__init__.py
mirtaheri/waymo-open-dataset
16c6a1a98fa8bb005fdfe798d27e6f3edf98c356
[ "Apache-2.0" ]
1,814
2019-08-20T18:30:38.000Z
2022-03-31T04:14:51.000Z
waymo_open_dataset/latency/examples/tensorflow/multiframe/wod_latency_submission/__init__.py
mirtaheri/waymo-open-dataset
16c6a1a98fa8bb005fdfe798d27e6f3edf98c356
[ "Apache-2.0" ]
418
2019-08-20T22:38:02.000Z
2022-03-31T07:51:15.000Z
waymo_open_dataset/latency/examples/tensorflow/multiframe/wod_latency_submission/__init__.py
mirtaheri/waymo-open-dataset
16c6a1a98fa8bb005fdfe798d27e6f3edf98c356
[ "Apache-2.0" ]
420
2019-08-21T10:59:06.000Z
2022-03-31T08:31:44.000Z
"""Example __init__.py to wrap the wod_latency_submission module imports.""" from . import model initialize_model = model.initialize_model run_model = model.run_model DATA_FIELDS = model.DATA_FIELDS
28.571429
76
0.815
29
200
5.206897
0.62069
0.198676
0.264901
0
0
0
0
0
0
0
0
0
0.11
200
6
77
33.333333
0.848315
0.35
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
23793e314023b1afee56b5645d0f4bbfd1a679ef
1,098
py
Python
jaxvi/models.py
sagar87/jaxvi
78829552589f8d44082cf8a1a8e02da549d7c298
[ "MIT" ]
null
null
null
jaxvi/models.py
sagar87/jaxvi
78829552589f8d44082cf8a1a8e02da549d7c298
[ "MIT" ]
null
null
null
jaxvi/models.py
sagar87/jaxvi
78829552589f8d44082cf8a1a8e02da549d7c298
[ "MIT" ]
null
null
null
from abc import abstractmethod from jaxvi.abstract import ABCMeta, abstract_attribute import jax.numpy as jnp from jax.scipy.stats import norm, gamma class Model(metaclass=ABCMeta): @abstract_attribute def latent_dim(self): pass @abstractmethod def inv_T(self, zeta: jnp.DeviceArray) -> jnp.De...
27.45
67
0.644809
148
1,098
4.675676
0.364865
0.16185
0.098266
0.16185
0.274566
0.263006
0.263006
0.263006
0.263006
0
0
0.013142
0.237705
1,098
39
68
28.153846
0.81362
0
0
0.310345
0
0
0
0
0
0
0
0
0
1
0.206897
false
0.103448
0.137931
0.034483
0.482759
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
1
0
1
0
0
0
0
0
3
2381e2b9c699c0ba9541e7eef0d109d8c8508180
121
py
Python
setup.py
m0hithreddy/rpyc-mem
72e46da34fe2165a89d702a02ec0bb7b6d64775e
[ "MIT" ]
1
2022-03-12T23:29:13.000Z
2022-03-12T23:29:13.000Z
setup.py
m0hithreddy/rpyc-mem
72e46da34fe2165a89d702a02ec0bb7b6d64775e
[ "MIT" ]
null
null
null
setup.py
m0hithreddy/rpyc-mem
72e46da34fe2165a89d702a02ec0bb7b6d64775e
[ "MIT" ]
null
null
null
from setuptools import setup setup( version=open("rpyc_mem/_version.py").readlines()[-1].split()[-1].strip("\"'") )
20.166667
81
0.661157
16
121
4.875
0.8125
0
0
0
0
0
0
0
0
0
0
0.018349
0.099174
121
5
82
24.2
0.697248
0
0
0
0
0
0.173554
0
0
0
0
0
0
1
0
true
0
0.25
0
0.25
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
88bea4fa9c19bdca4e8c6da218e8d49f1310845f
240
py
Python
api_ui/views.py
mihail-ivanov/base-vue-api
a2ef8ae360d3d26425093aefaf521082cf3684c5
[ "MIT" ]
null
null
null
api_ui/views.py
mihail-ivanov/base-vue-api
a2ef8ae360d3d26425093aefaf521082cf3684c5
[ "MIT" ]
null
null
null
api_ui/views.py
mihail-ivanov/base-vue-api
a2ef8ae360d3d26425093aefaf521082cf3684c5
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from rest_framework import generics from .serializers import UserSerializer class UserList(generics.ListCreateAPIView): queryset = User.objects.all() serializer_class = UserSerializer
21.818182
43
0.808333
27
240
7.111111
0.703704
0
0
0
0
0
0
0
0
0
0
0
0.133333
240
10
44
24
0.923077
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
88e195f25d51cac398d0cfdc139ce3c46cd5aeca
257
py
Python
prototype/zlua_prototype/tests/test_debugger.py
Zolo-mario/ZoloLua
7527a78b12c3f97cb729327d4d0c724f3dba17f9
[ "MIT" ]
9
2019-03-11T04:43:03.000Z
2019-05-12T08:33:31.000Z
prototype/zlua_prototype/tests/test_debugger.py
zoloypzuo/ZeloLua
7527a78b12c3f97cb729327d4d0c724f3dba17f9
[ "MIT" ]
2
2019-04-10T05:20:45.000Z
2019-06-02T13:56:39.000Z
prototype/zlua_prototype/tests/test_debugger.py
Zolo-mario/zlua
7527a78b12c3f97cb729327d4d0c724f3dba17f9
[ "MIT" ]
1
2021-12-29T03:13:49.000Z
2021-12-29T03:13:49.000Z
from unittest import TestCase class TestDebugger(TestCase): def test_execute(self): # self.fail() pass def test_parse_instr(self): from zlua_prototype.debugger import _parse_instr assert _parse_instr('f ')==('f','')
25.7
56
0.657588
31
257
5.193548
0.612903
0.186335
0
0
0
0
0
0
0
0
0
0
0.237354
257
10
57
25.7
0.821429
0.042802
0
0
0
0
0.012245
0
0
0
0
0
0.142857
1
0.285714
false
0.142857
0.285714
0
0.714286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
88ef9a2c09c1a2b19ed7b65cb09a3ea45e5657d4
4,023
py
Python
stubs.min/Rhino/Geometry/__init___parts/Rectangle3d.py
ricardyn/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
1
2021-02-02T13:39:16.000Z
2021-02-02T13:39:16.000Z
stubs.min/Rhino/Geometry/__init___parts/Rectangle3d.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
stubs.min/Rhino/Geometry/__init___parts/Rectangle3d.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
class Rectangle3d(object,IEpsilonComparable[Rectangle3d]): """ Rectangle3d(plane: Plane,width: float,height: float) Rectangle3d(plane: Plane,width: Interval,height: Interval) Rectangle3d(plane: Plane,cornerA: Point3d,cornerB: Point3d) """ def ClosestPoint(self,point,includeInterior=None): """ Closes...
31.186047
215
0.679592
457
4,023
5.796499
0.161926
0.11325
0.06795
0.0906
0.436769
0.362023
0.254058
0.254058
0.254058
0.254058
0
0.015811
0.166791
4,023
128
216
31.429688
0.774463
0.387025
0
0.391304
0
0
0
0
0
0
0
0
0
1
0.347826
false
0.347826
0
0
0.608696
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
00375bfd9ff84622fa3d819bbee6225d14901c17
97
py
Python
Streamlit_DEMO/Text_input.py
ysraell/examples
b41df16ddda3db2cbafc4e4c85ac9bd5d000d375
[ "BSD-3-Clause" ]
7
2020-06-11T19:15:29.000Z
2021-01-31T22:04:56.000Z
Streamlit_DEMO/Text_input.py
ysraell/examples
b41df16ddda3db2cbafc4e4c85ac9bd5d000d375
[ "BSD-3-Clause" ]
2
2019-12-30T13:09:07.000Z
2020-06-22T03:14:28.000Z
Streamlit_DEMO/Text_input.py
ysraell/examples
b41df16ddda3db2cbafc4e4c85ac9bd5d000d375
[ "BSD-3-Clause" ]
3
2020-06-15T18:17:53.000Z
2020-06-22T20:32:33.000Z
import streamlit as st title = st.text_input("Search:", "") st.write("You search for: ", title)
19.4
36
0.680412
15
97
4.333333
0.733333
0
0
0
0
0
0
0
0
0
0
0
0.14433
97
4
37
24.25
0.783133
0
0
0
0
0
0.237113
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
003ca20243cae85d6e1700ea19f81a8feb7a525d
36
py
Python
clarity/Alignment/__init__.py
wjguan/phenocell
80ff7a0b5cc9e1ecedd8fe488b81a3df120096d9
[ "MIT" ]
null
null
null
clarity/Alignment/__init__.py
wjguan/phenocell
80ff7a0b5cc9e1ecedd8fe488b81a3df120096d9
[ "MIT" ]
null
null
null
clarity/Alignment/__init__.py
wjguan/phenocell
80ff7a0b5cc9e1ecedd8fe488b81a3df120096d9
[ "MIT" ]
null
null
null
__all__ = ['Elastix', 'Resampling'];
36
36
0.666667
3
36
6.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.083333
36
1
36
36
0.606061
0
0
0
0
0
0.459459
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
003dc875c6b6a3c3cf3b1f0f40f7270a5adb32a6
225
py
Python
examples/plugins/dummy/dummy/main.py
mikiec84/gaffer
8c5d5b5e2ff3fcb1f7cc7c8fbfc623f97dd0da8d
[ "MIT", "Unlicense" ]
null
null
null
examples/plugins/dummy/dummy/main.py
mikiec84/gaffer
8c5d5b5e2ff3fcb1f7cc7c8fbfc623f97dd0da8d
[ "MIT", "Unlicense" ]
null
null
null
examples/plugins/dummy/dummy/main.py
mikiec84/gaffer
8c5d5b5e2ff3fcb1f7cc7c8fbfc623f97dd0da8d
[ "MIT", "Unlicense" ]
1
2018-10-28T00:59:17.000Z
2018-10-28T00:59:17.000Z
from gaffer import Plugin __all__ = ['DummyPlugin'] from .app import DummyApp class DummyPlugin(Plugin): name = "dummy" version = "1.0" description = "test" def app(self, cfg): return DummyApp()
14.0625
26
0.635556
26
225
5.346154
0.769231
0
0
0
0
0
0
0
0
0
0
0.011905
0.253333
225
15
27
15
0.815476
0
0
0
0
0
0.102222
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0.111111
0.888889
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
1
1
0
0
3
00433726aac3c77abe8b0c9529d3eb24d0cd9286
1,074
py
Python
recipe_app/forms.py
dbobbgit/recipebox
8e4e5c6f609e2524726954c9382ca37e844721f9
[ "MIT" ]
null
null
null
recipe_app/forms.py
dbobbgit/recipebox
8e4e5c6f609e2524726954c9382ca37e844721f9
[ "MIT" ]
null
null
null
recipe_app/forms.py
dbobbgit/recipebox
8e4e5c6f609e2524726954c9382ca37e844721f9
[ "MIT" ]
null
null
null
from django import forms from recipe_app.models import Author from django.contrib.auth.forms import UserCreationForm # Create two forms: RecipeForm & AuthorForm """ Author: - Name: CharField - Bio: TextField Recipe: - Title: CharField - Author: ForeignKey - Description: TextField - Time Requ...
26.195122
66
0.685289
115
1,074
6.330435
0.469565
0.153846
0.14011
0.18956
0.071429
0
0
0
0
0
0
0.022485
0.213222
1,074
40
67
26.85
0.839053
0.115456
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0.133333
0.2
0
1
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
1
0
0
1
0
0
3
cc3b53a3879a2fe4a77aa4a8b7af91545a4857ec
4,623
py
Python
stable_baselines/low_dim_analysis/eval_util.py
hugerepo-tianhang/low_dim_update_stable
565f6cbf886d266d0633bc112ccae28f1d116ee1
[ "MIT" ]
null
null
null
stable_baselines/low_dim_analysis/eval_util.py
hugerepo-tianhang/low_dim_update_stable
565f6cbf886d266d0633bc112ccae28f1d116ee1
[ "MIT" ]
null
null
null
stable_baselines/low_dim_analysis/eval_util.py
hugerepo-tianhang/low_dim_update_stable
565f6cbf886d266d0633bc112ccae28f1d116ee1
[ "MIT" ]
null
null
null
# def get_param_traj_file_path(dir_name, net_name, index): # return f'{dir_name}/{net_name}_{index}.txt' import os from datetime import datetime def get_current_timestamp(): return datetime.now().strftime('%Y-%m-%d-%H:%M:%S') def get_project_dir(): project_dir = os.path.abspath(os.path.join(os.path.abspa...
36.401575
134
0.784123
789
4,623
4.007605
0.155894
0.056926
0.044276
0.063251
0.558191
0.422201
0.314674
0.297596
0.253004
0.199874
0
0.00241
0.102531
4,623
127
135
36.401575
0.759701
0.022496
0
0.027027
0
0.013514
0.43126
0.417091
0
0
0
0
0
1
0.391892
false
0
0.027027
0.351351
0.824324
0.013514
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
1
null
0
0
0
0
0
1
0
0
0
1
0
0
0
3
cc3d4f119ef3b88e30b1e9d3c45699b0745cbf05
1,038
py
Python
AntShares/Network/Inventory.py
OTCGO/sync_antshares
5724a5a820ec5f59e0c886a3c1646db2d07b4d78
[ "MIT" ]
10
2017-03-28T05:44:35.000Z
2021-02-17T03:51:39.000Z
AntShares/Network/Inventory.py
OTCGO/sync_antshares
5724a5a820ec5f59e0c886a3c1646db2d07b4d78
[ "MIT" ]
2
2017-07-06T10:00:25.000Z
2017-08-09T10:14:34.000Z
AntShares/Network/Inventory.py
OTCGO/sync_antshares
5724a5a820ec5f59e0c886a3c1646db2d07b4d78
[ "MIT" ]
3
2017-03-28T05:44:39.000Z
2018-02-09T09:56:03.000Z
# -*- coding:utf-8 -*- """ Description: Inventory Class Usage: from AntShares.Network.Inventory import Inventory """ from AntShares.IO.MemoryStream import MemoryStream from AntShares.IO.BinaryWriter import BinaryWriter from AntShares.Cryptography.Helper import * from AntShares.Helper import * import binascii...
21.183673
80
0.654143
106
1,038
6.292453
0.433962
0.097451
0.065967
0
0
0
0
0
0
0
0
0.005155
0.252408
1,038
48
81
21.625
0.854381
0.133911
0
0.178571
0
0
0
0
0
0
0
0
0
1
0.285714
false
0.178571
0.178571
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
cc52398a725b3573f2ce15c63cfb703dc5d3fa5f
2,760
py
Python
test/Django/05/02/BookManager/Book/views.py
Kingworrior007/lchw001
e59e6f300123bd98d49e81be16e73a4440ffa85a
[ "MIT" ]
2
2018-03-09T02:13:54.000Z
2020-12-28T01:47:30.000Z
test/Django/05/02/BookManager/Book/views.py
X-Warrior007/lchw001
e59e6f300123bd98d49e81be16e73a4440ffa85a
[ "MIT" ]
null
null
null
test/Django/05/02/BookManager/Book/views.py
X-Warrior007/lchw001
e59e6f300123bd98d49e81be16e73a4440ffa85a
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse,JsonResponse from django.conf import settings from Book.models import PictureInfo,AreaInfo from django.core.paginator import Paginator # Create your views here. def sheng(request): """获取省级数据,并转JSON字典,响应给ajax""" # 查询省级数据 sheng_list = [Ar...
21.5625
113
0.63913
307
2,760
5.667752
0.403909
0.202299
0.248276
0.257471
0.185057
0.185057
0.156322
0.098851
0.045977
0
0
0.011965
0.212681
2,760
127
114
21.732283
0.788771
0.288768
0
0.051282
0
0
0.068966
0
0
0
0
0
0
1
0.153846
false
0
0.128205
0
0.435897
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
cc67238765ba95b77b94fefb1d5fa168307525e1
1,921
py
Python
DjangoBlog/articles/migrations/0009_auto_20210815_1840.py
Dimple278/Publication-Repository
ec274bf5822e160b90f0a5bc8559c1d199e12854
[ "Unlicense", "MIT" ]
null
null
null
DjangoBlog/articles/migrations/0009_auto_20210815_1840.py
Dimple278/Publication-Repository
ec274bf5822e160b90f0a5bc8559c1d199e12854
[ "Unlicense", "MIT" ]
1
2021-08-08T06:46:46.000Z
2021-08-08T06:46:46.000Z
DjangoBlog/articles/migrations/0009_auto_20210815_1840.py
Dimple278/Publication-Repository
ec274bf5822e160b90f0a5bc8559c1d199e12854
[ "Unlicense", "MIT" ]
2
2021-07-03T11:55:11.000Z
2021-08-09T08:27:52.000Z
# Generated by Django 3.2.4 on 2021-08-15 12:55 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('articles', '0008_auto_20210808_0801'), ] operations = [ migrations.AddField( model_name='article', name='doi', ...
30.015625
142
0.548673
171
1,921
6.035088
0.345029
0.087209
0.156008
0.18314
0.587209
0.587209
0.428295
0.428295
0.428295
0.319767
0
0.034135
0.328995
1,921
63
143
30.492063
0.766486
0.023425
0
0.719298
1
0
0.136606
0.012273
0
0
0
0
0
1
0
false
0
0.017544
0
0.070175
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
cc9334543aeeb4519b2ac91825f9b078d9f16ee4
94
py
Python
src6/1/string3.py
pjackson3/cs50
4cf8ca67abfc293d4dbb9bf5a1cb742d74ca7a31
[ "MIT" ]
null
null
null
src6/1/string3.py
pjackson3/cs50
4cf8ca67abfc293d4dbb9bf5a1cb742d74ca7a31
[ "MIT" ]
null
null
null
src6/1/string3.py
pjackson3/cs50
4cf8ca67abfc293d4dbb9bf5a1cb742d74ca7a31
[ "MIT" ]
1
2020-11-24T23:25:26.000Z
2020-11-24T23:25:26.000Z
# input and print, with format strings s = input("What's your name?\n") print(f"hello, {s}")
18.8
38
0.659574
17
94
3.647059
0.764706
0
0
0
0
0
0
0
0
0
0
0
0.159574
94
4
39
23.5
0.78481
0.382979
0
0
0
0
0.517857
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
3
cc9a005a14d0a98035518428a505d967d10c254e
101
py
Python
Section 18/8.Document-function-with-keyword-based-arguments.py
airbornum/-Complete-Python-Scripting-for-Automation
bc053444f8786259086269ca1713bdb10144dd74
[ "MIT" ]
18
2020-04-13T03:14:06.000Z
2022-03-09T18:54:41.000Z
Section 18/8.Document-function-with-keyword-based-arguments.py
airbornum/-Complete-Python-Scripting-for-Automation
bc053444f8786259086269ca1713bdb10144dd74
[ "MIT" ]
null
null
null
Section 18/8.Document-function-with-keyword-based-arguments.py
airbornum/-Complete-Python-Scripting-for-Automation
bc053444f8786259086269ca1713bdb10144dd74
[ "MIT" ]
22
2020-04-29T21:12:42.000Z
2022-03-17T18:19:54.000Z
def display(a,b): print(f'a={a}') return None display(3,4) display(a=3,b=4) display(b=4,a=3)
14.428571
18
0.60396
23
101
2.652174
0.434783
0.262295
0
0
0
0
0
0
0
0
0
0.070588
0.158416
101
7
19
14.428571
0.647059
0
0
0
0
0
0.052083
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.333333
0.166667
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
aea00ef15d75bbb6792d81d979d452ecd7795555
754
py
Python
wfdb/__init__.py
melbourne-cdth/wfdb-python
a36c22e12f8417ff18e57dbe54b7180dd183ec66
[ "MIT" ]
null
null
null
wfdb/__init__.py
melbourne-cdth/wfdb-python
a36c22e12f8417ff18e57dbe54b7180dd183ec66
[ "MIT" ]
null
null
null
wfdb/__init__.py
melbourne-cdth/wfdb-python
a36c22e12f8417ff18e57dbe54b7180dd183ec66
[ "MIT" ]
null
null
null
from wfdb.io.record import (Record, MultiRecord, rdheader, rdrecord, rdsamp, wrsamp, dl_database, edf2mit, mit2edf, wav2mit, mit2wav, wfdb2mat, csv2mit, sampfreq, signame, wfdbdesc, wfdbtime, sigavg) from wfdb.io.annotation import (Anno...
58
82
0.66313
92
754
5.130435
0.554348
0.101695
0.063559
0.067797
0
0
0
0
0
0
0
0.016423
0.27321
754
12
83
62.833333
0.844891
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.545455
0
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
3
aec73f93f4747f28f93931758f77133311e3036f
83
py
Python
dynasty/__init__.py
LeMinaw/Dynasty
458685df8051cd11f497222e0cd7b672515cd6aa
[ "MIT" ]
2
2021-04-04T19:31:32.000Z
2022-02-06T13:38:09.000Z
dynasty/__init__.py
LeMinaw/Dynasty
458685df8051cd11f497222e0cd7b672515cd6aa
[ "MIT" ]
null
null
null
dynasty/__init__.py
LeMinaw/Dynasty
458685df8051cd11f497222e0cd7b672515cd6aa
[ "MIT" ]
null
null
null
__version__ = '0.0.2' from pathlib import Path APP_DIR = Path(__file__).parent
10.375
31
0.722892
13
83
3.923077
0.846154
0
0
0
0
0
0
0
0
0
0
0.043478
0.168675
83
7
32
11.857143
0.695652
0
0
0
0
0
0.060241
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
aed61ba31c0649cb1a7854a5aa110c70142265a0
269
py
Python
cmd_creator_b.py
azeznassar/JavaScriptToUML
53cccc1bba635114f03d966fd2f0f2f2d2d74bae
[ "MIT" ]
5
2020-08-16T09:25:42.000Z
2022-01-19T21:00:48.000Z
cmd_creator_b.py
azeznassar/JavaScriptToUML
53cccc1bba635114f03d966fd2f0f2f2d2d74bae
[ "MIT" ]
null
null
null
cmd_creator_b.py
azeznassar/JavaScriptToUML
53cccc1bba635114f03d966fd2f0f2f2d2d74bae
[ "MIT" ]
4
2020-08-19T09:05:13.000Z
2021-08-03T17:25:53.000Z
# pylint: disable="import-error" from command_line_creator import CommandLineCreator from current_cmd_b import CurrentCMD_B class CmdCreatorB(CommandLineCreator): def create_cmd(self): current_cmd = CurrentCMD_B(self.output) return current_cmd
29.888889
51
0.773234
33
269
6.030303
0.606061
0.150754
0
0
0
0
0
0
0
0
0
0
0.167286
269
9
52
29.888889
0.888393
0.111524
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0
0.833333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
aee1d165304e92ca3a56f102fa49637d4eb2d084
4,637
py
Python
anyHR/constraint/node/Node.py
figlerg/anyHR
418742aa10634338c405de87b2ee1cbe08ae8a9e
[ "BSD-3-Clause" ]
1
2021-08-14T17:59:51.000Z
2021-08-14T17:59:51.000Z
anyHR/constraint/node/Node.py
figlerg/anyHR
418742aa10634338c405de87b2ee1cbe08ae8a9e
[ "BSD-3-Clause" ]
2
2022-03-27T13:38:19.000Z
2022-03-31T15:20:26.000Z
anyHR/constraint/node/Node.py
figlerg/anyHR
418742aa10634338c405de87b2ee1cbe08ae8a9e
[ "BSD-3-Clause" ]
1
2022-03-27T08:31:23.000Z
2022-03-27T08:31:23.000Z
# from constraint.node.SubstitutorVisitor import SubstitutorVisitor from enum import Enum class Node(object): def __init__(self): self.children = list() self.node_type = NodeType.NODE def get_vars(self, vars = set()): # recursively crawls tree and writes down all the variables ...
25.478022
128
0.587233
563
4,637
4.507993
0.14032
0.217494
0.156028
0.118203
0.618203
0.596927
0.587864
0.537431
0.524823
0.524823
0
0.023104
0.271943
4,637
181
129
25.618785
0.728673
0.045072
0
0.415385
0
0
0.015607
0
0
0
0
0
0
1
0.223077
false
0
0.007692
0.107692
0.569231
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
1
0
0
0
1
0
0
0
3
aee85d757db25a014d88c52b4b892e6e8e5b9803
335
py
Python
TestGetter.py
okiyama/Chess-EEA-Opponent-Modelling
c81f2b5226e3441ed236b3b20c3811e721d412d8
[ "MIT" ]
null
null
null
TestGetter.py
okiyama/Chess-EEA-Opponent-Modelling
c81f2b5226e3441ed236b3b20c3811e721d412d8
[ "MIT" ]
null
null
null
TestGetter.py
okiyama/Chess-EEA-Opponent-Modelling
c81f2b5226e3441ed236b3b20c3811e721d412d8
[ "MIT" ]
null
null
null
class TestGetter: """ Interface for getting tests. Useful because I'd like to both be able to evolve a next test as well as play a normal game of chess with the user """ #I thought about using abstract base class for this but it feels like overkill def getNextTest(self, opponents, previousTest): raise NotI...
67
155
0.761194
53
335
4.811321
0.867925
0
0
0
0
0
0
0
0
0
0
0
0.19403
335
5
156
67
0.944444
0.662687
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
3
aee9791412aca3b9a70fc201a6a8bbfc83e5a9e9
210
py
Python
SmartTE/Signals/UndoSignals.py
smartboyathome/SmartTE
373a721f17e9a1f3d1bbe5c9c101c638de3fa96d
[ "BSD-3-Clause" ]
1
2020-07-15T19:53:27.000Z
2020-07-15T19:53:27.000Z
SmartTE/Signals/UndoSignals.py
smartboyathome/SmartTE
373a721f17e9a1f3d1bbe5c9c101c638de3fa96d
[ "BSD-3-Clause" ]
null
null
null
SmartTE/Signals/UndoSignals.py
smartboyathome/SmartTE
373a721f17e9a1f3d1bbe5c9c101c638de3fa96d
[ "BSD-3-Clause" ]
null
null
null
UNDO_EMPTY = 'undostack-empty' UNDO_NOT_EMPTY = 'undostack-not-empty' REDO_EMPTY = 'redostack-empty' REDO_NOT_EMPTY = 'redostack-not-empty' UNDO_CHANGED = 'undostack-changed' REDO_CHANGED = 'redostack-changed'
30
38
0.790476
28
210
5.642857
0.25
0.202532
0
0
0
0
0
0
0
0
0
0
0.085714
210
6
39
35
0.822917
0
0
0
0
0
0.485714
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
aeeff92da6880272b842617fa1cd1119d5a74e02
2,534
py
Python
pyclustering/cluster/tests/integration/it_hsyncnet.py
JosephChataignon/pyclustering
bf4f51a472622292627ec8c294eb205585e50f52
[ "BSD-3-Clause" ]
1,013
2015-01-26T19:50:14.000Z
2022-03-31T07:38:48.000Z
pyclustering/cluster/tests/integration/it_hsyncnet.py
peterlau0626/pyclustering
bf4f51a472622292627ec8c294eb205585e50f52
[ "BSD-3-Clause" ]
542
2015-01-20T16:44:32.000Z
2022-01-29T14:57:20.000Z
pyclustering/cluster/tests/integration/it_hsyncnet.py
peterlau0626/pyclustering
bf4f51a472622292627ec8c294eb205585e50f52
[ "BSD-3-Clause" ]
262
2015-03-19T07:28:12.000Z
2022-03-30T07:28:24.000Z
"""! @brief Integration-tests for Hierarchical Sync (HSyncNet) algorithm. @authors Andrei Novikov (pyclustering@yandex.ru) @date 2014-2020 @copyright BSD-3-Clause """ import unittest; import matplotlib; matplotlib.use('Agg'); from pyclustering.cluster.tests.hsyncnet_templates import HsyncnetTestT...
41.540984
133
0.753749
259
2,534
7.247104
0.281853
0.076185
0.101225
0.208844
0.50666
0.50666
0.426745
0.316462
0.316462
0.287693
0
0.040892
0.15075
2,534
60
134
42.233333
0.83132
0.063536
0
0
0
0
0.001302
0
0
0
0
0
0
1
0.354839
false
0
0.193548
0
0.580645
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
1
0
0
0
0
1
0
0
3