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
b1197fc872ff61436943db739f1df0a8ad543bc3
6,658
py
Python
pymatflow/vasp/base/kpoints.py
DeqiTang/pymatflow
bd8776feb40ecef0e6704ee898d9f42ded3b0186
[ "MIT" ]
6
2020-03-06T16:13:08.000Z
2022-03-09T07:53:34.000Z
pymatflow/vasp/base/kpoints.py
DeqiTang/pymatflow
bd8776feb40ecef0e6704ee898d9f42ded3b0186
[ "MIT" ]
1
2021-10-02T02:23:08.000Z
2021-11-08T13:29:37.000Z
pymatflow/vasp/base/kpoints.py
DeqiTang/pymatflow
bd8776feb40ecef0e6704ee898d9f42ded3b0186
[ "MIT" ]
1
2021-07-10T16:28:14.000Z
2021-07-10T16:28:14.000Z
#!/usr/bin/env python # _*_ coding: utf-8 _*_ import numpy as np class VaspKpoints: """ """ def __init__(self): self.kpoints_mp = [1, 1, 1, 0, 0, 0] self.line_mode = False # now we forfeit line mode! def to_kpoints(self, fout): if self.kpoints_option == "automatic": fout.write("K-POINTS automatic\n") fout.write("0\n") # automatically generate the grid fout.write("Gamma\n") # Gamma centered fout.write("%d %d %d\n" % (self.kpoints_mp[0], self.kpoints_mp[1], self.kpoints_mp[2])) fout.write("%d %d %d\n" % (self.kpoints_mp[3], self.kpoints_mp[4], self.kpoints_mp[5])) # usually set them to 0 elif self.kpoints_option == "bands": # use self.kpath if self.line_mode == True: fout.write("K-POINTS for band structure in line mode\n") fout.write("%d\n" % self.kpath[0][4]) # default using the first connnect number for all the lines in line-mode fout.write("Line-mode\n") fout.write("rec\n") # in reciprocal coordinates for i in range(len(self.kpath) - 1): if self.kpath[i][4] != "|" and type(self.kpath[i][4] == int): fout.write(" %f %f %f !%s\n" % (self.kpath[i][0], self.kpath[i][1], self.kpath[i][2], self.kpath[i][3])) fout.write(" %f %f %f !%s\n" % (self.kpath[i+1][0], self.kpath[i+1][1], self.kpath[i+1][2], self.kpath[i+1][3])) fout.write("\n") else: # not in line mode, need to specify every kpoint explicitly fout.write("K-POINTS for band structure in explict specification(not line-mode)\n") nk = 0 for i in range(len(self.kpath)-1): # the last k point should not be count if self.kpath[i][4] != "|": nk += self.kpath[i][4] fout.write("%d\n" % nk) fout.write("Reciprocal lattice\n") for i in range(len(self.kpath)-1): if self.kpath[i][4] != "|": fout.write("%f %f %f 1.0 !%s\n" % (self.kpath[i][0], self.kpath[i][1], self.kpath[i][2], self.kpath[i][3])) for j in range(self.kpath[i][4]-2): x = (self.kpath[i+1][0] - self.kpath[i][0]) / (self.kpath[i][4]-1) * (j+1) + self.kpath[i][0] y = (self.kpath[i+1][1] - self.kpath[i][1]) / (self.kpath[i][4]-1) * (j+1) + self.kpath[i][1] z = (self.kpath[i+1][2] - self.kpath[i][2]) / (self.kpath[i][4]-1) * (j+1) + self.kpath[i][2] fout.write("%f %f %f 1.0\n" % (x, y, z)) fout.write("%f %f %f 1.0 !%s\n" % (self.kpath[i+1][0], self.kpath[i+1][1], self.kpath[i+1][2], self.kpath[i+1][3])) else: continue else: pass def to_string(self): out = "" if self.kpoints_option == "automatic": out += "K-POINTS automatic\n" out += "0\n" # automatically generate the grid out += "Gamma\n" # Gamma centered out += "%d %d %d\n" % (self.kpoints_mp[0], self.kpoints_mp[1], self.kpoints_mp[2]) out += "%d %d %d\n" % (self.kpoints_mp[3], self.kpoints_mp[4], self.kpoints_mp[5]) # usually set them to 0 elif self.kpoints_option == "bands": # use self.kpath if self.line_mode == True: out += "K-POINTS for band structure in line mode\n" out += "%d\n" % self.kpath[0][4] # default using the first connnect number for all the lines in line-mode out += "Line-mode\n" out += "rec\n" # in reciprocal coordinates for i in range(len(self.kpath) - 1): if self.kpath[i][4] != "|" and type(self.kpath[i][4] == int): out += " %f %f %f !%s\n" % (self.kpath[i][0], self.kpath[i][1], self.kpath[i][2], self.kpath[i][3]) out += " %f %f %f !%s\n" % (self.kpath[i+1][0], self.kpath[i+1][1], self.kpath[i+1][2], self.kpath[i+1][3]) out += "\n" else: # not in line mode, need to specify every kpoint explicitly out += "K-POINTS for band structure in explict specification(not line-mode)\n" nk = 0 for i in range(len(self.kpath)-1): # the last k point should not be count if self.kpath[i][4] != "|": nk += self.kpath[i][4] out += "%d\n" % nk out += "Reciprocal lattice\n" for i in range(len(self.kpath)-1): if self.kpath[i][4] != "|": out += "%f %f %f 1.0 !%s\n" % (self.kpath[i][0], self.kpath[i][1], self.kpath[i][2], self.kpath[i][3]) for j in range(self.kpath[i][4]-2): x = (self.kpath[i+1][0] - self.kpath[i][0]) / (self.kpath[i][4]-1) * (j+1) + self.kpath[i][0] y = (self.kpath[i+1][1] - self.kpath[i][1]) / (self.kpath[i][4]-1) * (j+1) + self.kpath[i][1] z = (self.kpath[i+1][2] - self.kpath[i][2]) / (self.kpath[i][4]-1) * (j+1) + self.kpath[i][2] out += "%f %f %f 1.0\n" % (x, y, z) out += "%f %f %f 1.0 !%s\n" % (self.kpath[i+1][0], self.kpath[i+1][1], self.kpath[i+1][2], self.kpath[i+1][3]) else: continue else: pass return out def set_kpoints(self, kpoints_mp=[1, 1, 1, 0, 0, 0], option="automatic", kpath=None): """ option: automatic, bands kpath: the high symmetry k point path used in bands structure calculation in format like this: [[kx, ky, kz, label, connect_indicator], ...] like [[0.0, 0.0, 0.0, 'GAMMA', 15], ...] if connect_indicator in a kpoint is an integer, then it will connect to the following point through the number of kpoints defined by connect_indicator. if connect_indicator in a kpoint is '|', then it will not connect to the following point, """ self.kpoints_option = option self.kpoints_mp = kpoints_mp self.kpath = kpath
56.423729
140
0.466056
958
6,658
3.19833
0.134656
0.23205
0.221932
0.107702
0.79406
0.747063
0.723564
0.699739
0.691906
0.643603
0
0.039063
0.365575
6,658
117
141
56.905983
0.686316
0.164764
0
0.449438
0
0
0.115651
0
0
0
0
0
0
1
0.044944
false
0.022472
0.011236
0
0.078652
0
0
0
0
null
1
1
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
5
b12d296455cea9e615f06a2214794a04e2aa9a11
47
py
Python
tests/components/mythicbeastsdns/__init__.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
tests/components/mythicbeastsdns/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
tests/components/mythicbeastsdns/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Tests for the mythicbeastsdns component."""
23.5
46
0.744681
5
47
7
1
0
0
0
0
0
0
0
0
0
0
0
0.106383
47
1
47
47
0.833333
0.851064
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
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
5
b130a17615fe56d800b567ae65e1c96aaff62380
72
py
Python
tests/unittests/generic_functions/foobar_as_str_no_anno/main.py
vrdmr/azure-functions-python-worker
7c9bcc4cc647f4b80a606a1e039d7cf9f3db9624
[ "MIT" ]
null
null
null
tests/unittests/generic_functions/foobar_as_str_no_anno/main.py
vrdmr/azure-functions-python-worker
7c9bcc4cc647f4b80a606a1e039d7cf9f3db9624
[ "MIT" ]
null
null
null
tests/unittests/generic_functions/foobar_as_str_no_anno/main.py
vrdmr/azure-functions-python-worker
7c9bcc4cc647f4b80a606a1e039d7cf9f3db9624
[ "MIT" ]
null
null
null
# Input as string, without annotation def main(input): return input
18
37
0.736111
10
72
5.3
0.8
0
0
0
0
0
0
0
0
0
0
0
0.194444
72
3
38
24
0.913793
0.486111
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0
0.5
1
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
1
0
0
0
1
1
0
0
5
b151d6ffe20d6a61b37a2b004d93477eb8341d07
122
py
Python
core/helpers.py
uniMedic/uniMedic-Core
66da391b70f822478f9d02eca25a5680ddb2c9a6
[ "MIT" ]
8
2020-08-20T20:51:12.000Z
2021-04-15T21:32:39.000Z
core/helpers.py
uniMedic/uniMedic-Core
66da391b70f822478f9d02eca25a5680ddb2c9a6
[ "MIT" ]
null
null
null
core/helpers.py
uniMedic/uniMedic-Core
66da391b70f822478f9d02eca25a5680ddb2c9a6
[ "MIT" ]
4
2020-08-20T12:11:58.000Z
2021-06-28T06:25:01.000Z
import hashlib def hash_input(val): hash_object = hashlib.sha1(val.encode("utf-8")) return hash_object.digest()
17.428571
51
0.713115
18
122
4.666667
0.722222
0.238095
0
0
0
0
0
0
0
0
0
0.019417
0.155738
122
6
52
20.333333
0.796117
0
0
0
0
0
0.040984
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.75
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
1
0
0
0
0
1
0
0
5
b15992edc2a8f15ffca8ff7c02fc7e3fa8aa6292
68
py
Python
prototype_template/__init__.py
qiskit-community/subgraph-isomorphism
ae7458a1b7318a0ed72d0207d26005a366de150e
[ "Apache-2.0" ]
1
2022-03-28T18:22:14.000Z
2022-03-28T18:22:14.000Z
prototype_template/__init__.py
qiskit-community/subgraph-isomorphism
ae7458a1b7318a0ed72d0207d26005a366de150e
[ "Apache-2.0" ]
null
null
null
prototype_template/__init__.py
qiskit-community/subgraph-isomorphism
ae7458a1b7318a0ed72d0207d26005a366de150e
[ "Apache-2.0" ]
2
2022-03-28T17:47:26.000Z
2022-03-28T19:59:12.000Z
"""Template project.""" from .template_module import TemplateClass
17
42
0.779412
7
68
7.428571
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.102941
68
3
43
22.666667
0.852459
0.25
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
0
5
b19ffb051de68258de6cc5475c9a7edaf04a7481
67
py
Python
codigo.py
Gurtubay/HCAP2021
867e5c057f1cb66d632e54bdc62db4c31b7bb1be
[ "MIT" ]
null
null
null
codigo.py
Gurtubay/HCAP2021
867e5c057f1cb66d632e54bdc62db4c31b7bb1be
[ "MIT" ]
null
null
null
codigo.py
Gurtubay/HCAP2021
867e5c057f1cb66d632e54bdc62db4c31b7bb1be
[ "MIT" ]
null
null
null
import math print (math.pi) print("Hola esta es una nueva linea")
16.75
37
0.731343
12
67
4.083333
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.164179
67
3
38
22.333333
0.875
0
0
0
0
0
0.41791
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
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
1
0
1
0
0
1
0
5
771069981894027d5a5855ddc99cd59015cc15ed
118
py
Python
controllers/sync.py
manuelep/AEDISync
2812c633144080babcc7140c66b030b441a950c9
[ "MIT" ]
null
null
null
controllers/sync.py
manuelep/AEDISync
2812c633144080babcc7140c66b030b441a950c9
[ "MIT" ]
null
null
null
controllers/sync.py
manuelep/AEDISync
2812c633144080babcc7140c66b030b441a950c9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # try something like def index(): sync.go() return dict(message="hello from sync.py")
19.666667
45
0.610169
17
118
4.235294
0.941176
0
0
0
0
0
0
0
0
0
0
0.010638
0.20339
118
5
46
23.6
0.755319
0.338983
0
0
0
0
0.24
0
0
0
0
0
0
1
0.333333
true
0
0
0
0.666667
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
1
1
0
0
0
1
0
0
5
621f6456d18fdfc3437075c53a8c5a0fbef3e12a
949
py
Python
delivery_man/home/models.py
DeepanshuPratik/skillenza_project
b5f645c29bf0fbb8c5f17838276534cd50120143
[ "MIT" ]
null
null
null
delivery_man/home/models.py
DeepanshuPratik/skillenza_project
b5f645c29bf0fbb8c5f17838276534cd50120143
[ "MIT" ]
null
null
null
delivery_man/home/models.py
DeepanshuPratik/skillenza_project
b5f645c29bf0fbb8c5f17838276534cd50120143
[ "MIT" ]
1
2022-01-12T06:38:49.000Z
2022-01-12T06:38:49.000Z
from django.db import models class Index(models.Model): name = models.CharField(max_length=122) subject = models.CharField(max_length=12) email = models.CharField(max_length=12) message = models.TextField() def __str__(self): return self.name class Contact(models.Model): name = models.CharField(max_length=122) subject = models.CharField(max_length=12) message = models.TextField() def __str__(self): return self.name # Create your models here. class Worker(models.Model): name = models.CharField(max_length=30) age = models.IntegerField() gender = models.CharField(max_length=10) def __str__(self) -> str: return self.name class Order(models.Model): assignedTo = models.ForeignKey('home.Worker', on_delete=models.CASCADE, blank=-1, null=False) item = models.CharField(max_length=50) location = models.CharField(max_length=150) orderedBy = models.CharField(max_length=30)
28.757576
94
0.72392
126
949
5.269841
0.380952
0.225904
0.271084
0.361446
0.504518
0.462349
0.462349
0.403614
0.403614
0.403614
0
0.030113
0.160169
949
32
95
29.65625
0.803011
0.02529
0
0.44
0
0
0.011931
0
0
0
0
0
0
1
0.12
false
0
0.04
0.12
1
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
1
1
0
0
5
623169e476e9d1fe7691878790a96335d1bcfe1d
540
py
Python
list1/task2/path.py
ErykKrupa/metaheuristic-algorithms
cdeb283b4bb052328fd1d06e0da398a2932a7602
[ "MIT" ]
null
null
null
list1/task2/path.py
ErykKrupa/metaheuristic-algorithms
cdeb283b4bb052328fd1d06e0da398a2932a7602
[ "MIT" ]
null
null
null
list1/task2/path.py
ErykKrupa/metaheuristic-algorithms
cdeb283b4bb052328fd1d06e0da398a2932a7602
[ "MIT" ]
null
null
null
class Path: def __init__(self, move_sequence): self.move_sequence = move_sequence def swap_cities(self, city1, city2): tmp = list(self.move_sequence) tmp[city1], tmp[city2] = tmp[city2], tmp[city1] return Path(tuple(tmp)) def __eq__(self, other): return self.move_sequence == other.move_sequence def __hash__(self): return hash(self.move_sequence) def __str__(self): return ' '.join([str(i + 1) for i in self.move_sequence] + [str(self.move_sequence[0] + 1)])
30
100
0.637037
74
540
4.297297
0.337838
0.339623
0.352201
0
0
0
0
0
0
0
0
0.021845
0.237037
540
17
101
31.764706
0.75
0
0
0
0
0
0.001852
0
0
0
0
0
0
1
0.384615
false
0
0
0.230769
0.769231
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
1
0
0
0
1
1
0
0
5
658441ff153323b9986b096a439438c13df189e0
47
py
Python
tutorial/steps/welcome.py
IcebergIdeasOpen/scuba-portugal
9d8aa18890725ac63203847d0b34aca4a79e3166
[ "MIT" ]
1
2018-04-17T17:00:09.000Z
2018-04-17T17:00:09.000Z
tutorial/steps/welcome.py
IcebergIdeasOpen/scuba-portugal
9d8aa18890725ac63203847d0b34aca4a79e3166
[ "MIT" ]
3
2017-09-27T13:53:12.000Z
2020-06-05T16:43:39.000Z
tutorial/steps/welcome.py
IcebergIdeasOpen/scuba-portugal
9d8aa18890725ac63203847d0b34aca4a79e3166
[ "MIT" ]
7
2017-09-27T10:20:31.000Z
2018-04-17T17:00:17.000Z
from behave import * use_step_matcher("re")
7.833333
22
0.723404
7
47
4.571429
1
0
0
0
0
0
0
0
0
0
0
0
0.170213
47
5
23
9.4
0.820513
0
0
0
0
0
0.044444
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
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
1
0
1
0
0
0
0
5
02a202b71d6b2551ff8f1c961b68364b0d55aa36
107
py
Python
backend/database/user/tests.py
HansErikHeum/tdt4140_2020_gruppe42
a916b5a003a174a343e0625ca501b542907cda72
[ "MIT" ]
null
null
null
backend/database/user/tests.py
HansErikHeum/tdt4140_2020_gruppe42
a916b5a003a174a343e0625ca501b542907cda72
[ "MIT" ]
null
null
null
backend/database/user/tests.py
HansErikHeum/tdt4140_2020_gruppe42
a916b5a003a174a343e0625ca501b542907cda72
[ "MIT" ]
null
null
null
"""i denne filen skal django tester skrives""" from django.test import TestCase # Create your tests here.
21.4
46
0.757009
16
107
5.0625
0.9375
0
0
0
0
0
0
0
0
0
0
0
0.158879
107
4
47
26.75
0.9
0.607477
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
0
5
02e8cccb583163570f485f834959203f888d2533
192
py
Python
pattern from notes.py
SriCharan220800/RomanReigns
0ec11c65fa0cfa6264f162c5e3f2ba5e45986fbb
[ "MIT" ]
null
null
null
pattern from notes.py
SriCharan220800/RomanReigns
0ec11c65fa0cfa6264f162c5e3f2ba5e45986fbb
[ "MIT" ]
null
null
null
pattern from notes.py
SriCharan220800/RomanReigns
0ec11c65fa0cfa6264f162c5e3f2ba5e45986fbb
[ "MIT" ]
null
null
null
n=int(input()) for i in range(1,n+1): for j in range(1,i+1): print(j,end="") print() for i in range(1,n): for j in range(n-i): print(j+1,end="") print()
21.333333
27
0.479167
38
192
2.421053
0.289474
0.304348
0.26087
0.23913
0.282609
0.282609
0
0
0
0
0
0.045455
0.3125
192
9
28
21.333333
0.651515
0
0
0.222222
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.444444
0
0
0
null
1
1
1
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
5
02eae9b598966d1462937ee5f50ab6886a0a985a
37
py
Python
ndh/templatetags/__init__.py
nim65s/ndh
4945bf1f0f59bd08bdd04dd2640b3e9759fa6774
[ "BSD-2-Clause" ]
null
null
null
ndh/templatetags/__init__.py
nim65s/ndh
4945bf1f0f59bd08bdd04dd2640b3e9759fa6774
[ "BSD-2-Clause" ]
25
2017-09-23T11:22:00.000Z
2022-03-14T19:48:22.000Z
ndh/templatetags/__init__.py
nim65s/ndh
4945bf1f0f59bd08bdd04dd2640b3e9759fa6774
[ "BSD-2-Clause" ]
null
null
null
"""Django template tags for NDH."""
18.5
36
0.648649
5
37
4.8
1
0
0
0
0
0
0
0
0
0
0
0
0.162162
37
1
37
37
0.774194
0.810811
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
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
5
b86df0178ffad348da208c88e00eff22ca5b29c4
147
py
Python
tests/conftest.py
fcndl/ci-testing-python
45aac5b80864de0e25c90d1a589f0629f0a46ed1
[ "MIT" ]
38
2017-07-24T06:19:12.000Z
2021-09-03T22:46:28.000Z
tests/conftest.py
fcndl/ci-testing-python
45aac5b80864de0e25c90d1a589f0629f0a46ed1
[ "MIT" ]
1
2017-04-05T01:57:20.000Z
2017-04-05T02:06:48.000Z
tests/conftest.py
fcndl/ci-testing-python
45aac5b80864de0e25c90d1a589f0629f0a46ed1
[ "MIT" ]
22
2017-11-26T22:04:43.000Z
2022-02-10T04:21:23.000Z
import pytest from ci_testing_python.app.identidock import app as flask_app @pytest.fixture(scope='session') def app(): return flask_app
18.375
61
0.761905
22
147
4.909091
0.681818
0.148148
0
0
0
0
0
0
0
0
0
0
0.156463
147
8
62
18.375
0.870968
0
0
0
0
0
0.047297
0
0
0
0
0
0
1
0.2
true
0
0.4
0.2
0.8
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
1
1
0
0
0
5
b87f1a03aa858c238ae592ec28d6c0ee908a47ab
127
py
Python
examples/_empty/src/__init__.py
and-kul/catalyst
51428d7756e62b9b8ee5379f38e9fd576eeb36e5
[ "Apache-2.0" ]
2
2019-04-19T21:34:31.000Z
2019-05-02T22:50:25.000Z
examples/_empty/src/__init__.py
and-kul/catalyst
51428d7756e62b9b8ee5379f38e9fd576eeb36e5
[ "Apache-2.0" ]
1
2021-01-07T16:13:45.000Z
2021-01-21T09:27:54.000Z
examples/_empty/src/__init__.py
and-kul/catalyst
51428d7756e62b9b8ee5379f38e9fd576eeb36e5
[ "Apache-2.0" ]
1
2018-12-21T15:56:21.000Z
2018-12-21T15:56:21.000Z
# flake8: noqa from catalyst.dl import SupervisedRunner as Runner from .experiment import Experiment from .model import Model
21.166667
50
0.818898
17
127
6.117647
0.647059
0
0
0
0
0
0
0
0
0
0
0.009174
0.141732
127
5
51
25.4
0.944954
0.094488
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
0
5
b8b35570965e74415767e1ad39558a8039cd418f
164
py
Python
BluePrint/SampleBlue/blue_print_02.py
bestwishfang/FlaskFrameWork
e5f2af0b82be6d5b32febadc244a72aadceaa58b
[ "MIT" ]
null
null
null
BluePrint/SampleBlue/blue_print_02.py
bestwishfang/FlaskFrameWork
e5f2af0b82be6d5b32febadc244a72aadceaa58b
[ "MIT" ]
3
2020-04-30T15:16:56.000Z
2022-02-13T08:02:39.000Z
BluePrint/SampleBlue/blue_print_02.py
bestwishfang/FlaskFrameWork
e5f2af0b82be6d5b32febadc244a72aadceaa58b
[ "MIT" ]
null
null
null
from flask import Blueprint simple_02 = Blueprint('simple_page_02', __name__) @simple_02.route('/02/') def index(): return 'Hello World! This is simple_02.'
18.222222
49
0.72561
24
164
4.583333
0.666667
0.218182
0
0
0
0
0
0
0
0
0
0.071429
0.146341
164
8
50
20.5
0.714286
0
0
0
0
0
0.29878
0
0
0
0
0
0
1
0.2
false
0
0.2
0.2
0.6
0.4
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
1
1
0
0
5
b8bd32b8a4bcf5ba2d6f2862cd1ec103674619a7
146
py
Python
strings2.py
gaganminocha/python
fa467a53952391fa1c670322a6ec240c97aafd98
[ "MIT" ]
null
null
null
strings2.py
gaganminocha/python
fa467a53952391fa1c670322a6ec240c97aafd98
[ "MIT" ]
null
null
null
strings2.py
gaganminocha/python
fa467a53952391fa1c670322a6ec240c97aafd98
[ "MIT" ]
null
null
null
parrot = "Norwegian Blue" print(parrot) print(parrot[3]) print(parrot[4]) print(parrot[9]) print(parrot[3]) print(parrot[6]) print(parrot[8])
11.230769
25
0.69863
23
146
4.434783
0.391304
0.754902
0.235294
0.333333
0.45098
0
0
0
0
0
0
0.045802
0.10274
146
12
26
12.166667
0.732824
0
0
0.25
0
0
0.097222
0
0
0
0
0
0
1
0
false
0
0
0
0
0.875
1
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
1
0
5
b24f3f9b9fdf31fad36360a75f735b5c4f603c1d
20
py
Python
torchtoolbox/objects/__init__.py
deeplearningforfun/torch-tools
17aaa513ef72dbac8af88977ff11840aa2d6a2f4
[ "BSD-3-Clause" ]
353
2019-10-05T16:55:51.000Z
2022-03-30T00:03:38.000Z
torchtoolbox/objects/__init__.py
KAKAFEIcoffee/torch-toolbox
e3dc040dcfe33aec247a3139e72426bca73cda96
[ "BSD-3-Clause" ]
14
2019-12-12T04:24:47.000Z
2021-10-31T07:02:54.000Z
torchtoolbox/objects/__init__.py
KAKAFEIcoffee/torch-toolbox
e3dc040dcfe33aec247a3139e72426bca73cda96
[ "BSD-3-Clause" ]
49
2019-10-05T16:57:24.000Z
2022-01-20T08:08:37.000Z
from .bbox import *
10
19
0.7
3
20
4.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.2
20
1
20
20
0.875
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
0
0
0
5
b268f489b40149427cda5287b5bbc63df5cf3ae4
110
py
Python
bot/py/bot/speech/__init__.py
asarcar/PI
98ad69e64597313c527d59e7e210b04ff865d0e5
[ "Zlib" ]
null
null
null
bot/py/bot/speech/__init__.py
asarcar/PI
98ad69e64597313c527d59e7e210b04ff865d0e5
[ "Zlib" ]
null
null
null
bot/py/bot/speech/__init__.py
asarcar/PI
98ad69e64597313c527d59e7e210b04ff865d0e5
[ "Zlib" ]
null
null
null
# # Copyright (c) 2016 Pi Inc. All rights reserved. # # Author: asarcar@piekul.com # import bot.speech.flags
13.75
49
0.709091
16
110
4.875
1
0
0
0
0
0
0
0
0
0
0
0.043478
0.163636
110
7
50
15.714286
0.804348
0.672727
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
0
5
a25e6b2c9db516cbf94ba4e3222d7aa8c800ec20
194
py
Python
src/questionario/admin.py
roginaldosemog/unbind
ab3e43aa03f49ba00fc048fa0846e8bf9d533961
[ "MIT" ]
null
null
null
src/questionario/admin.py
roginaldosemog/unbind
ab3e43aa03f49ba00fc048fa0846e8bf9d533961
[ "MIT" ]
93
2019-04-05T12:15:34.000Z
2022-03-11T23:47:11.000Z
src/questionario/admin.py
roginaldosemog/unbind
ab3e43aa03f49ba00fc048fa0846e8bf9d533961
[ "MIT" ]
6
2019-04-16T02:07:52.000Z
2019-09-20T22:53:59.000Z
from django.contrib import admin from questionario.models import Questionario, Pergunta, Resposta admin.site.register(Questionario) admin.site.register(Pergunta) admin.site.register(Resposta)
24.25
64
0.840206
24
194
6.791667
0.458333
0.165644
0.312883
0
0
0
0
0
0
0
0
0
0.07732
194
7
65
27.714286
0.910615
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.4
0
0.4
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
1
0
1
0
0
0
0
5
a26dc6df3be85a0b985029057476e74399f6b8b5
236
py
Python
maru/tagger/__init__.py
chomechome/maru
dae41e250a64a8b6f6ab9647fd60221d5ede8ab6
[ "MIT" ]
47
2018-09-25T05:17:13.000Z
2022-03-31T09:27:15.000Z
maru/tagger/__init__.py
ojomio/maru
7a44be7f974c0962f3023f5d064a391d2b4f20b1
[ "MIT" ]
2
2019-11-26T08:48:54.000Z
2020-09-10T10:00:39.000Z
maru/tagger/__init__.py
ojomio/maru
7a44be7f974c0962f3023f5d064a391d2b4f20b1
[ "MIT" ]
5
2019-01-05T17:36:23.000Z
2021-06-29T08:55:24.000Z
from .abstract import ITagger from .crf import CRFTagger from .linear import LinearTagger from .numerical import NumericalTagger from .punctuation import PunctuationTagger from .pymorphy import PymorphyTagger from .rnn import RNNTagger
29.5
42
0.851695
28
236
7.178571
0.571429
0
0
0
0
0
0
0
0
0
0
0
0.118644
236
7
43
33.714286
0.966346
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
0
5
a28939dbd2daefe20d2c5948dda1a6395915199f
841
py
Python
1b_broken_clock.py
baduy9x/AlgorithmPractice
9fb956aedf67c0515b66f2af93d8383dba697fec
[ "Apache-2.0" ]
null
null
null
1b_broken_clock.py
baduy9x/AlgorithmPractice
9fb956aedf67c0515b66f2af93d8383dba697fec
[ "Apache-2.0" ]
null
null
null
1b_broken_clock.py
baduy9x/AlgorithmPractice
9fb956aedf67c0515b66f2af93d8383dba697fec
[ "Apache-2.0" ]
null
null
null
import sys sys.stdin = open("input.txt", "r") def compute(input_list): print(input_list) return 0 if __name__ == "__main__": num_test = int(input()) for i in range(num_test): input_list = [int(item) for item in input().split(" ")] print("Case #{}: {}".format(i + 1, compute(input_list))) print("Case #{}: {}".format(i + 1, compute(input_list))) print("Case #{}: {}".format(i + 1, compute(input_list))) print("Case #{}: {}".format(i + 1, compute(input_list))) print("Case #{}: {}".format(i + 1, compute(input_list))) print("Case #{}: {}".format(i + 1, compute(input_list))) print("Case #{}: {}".format(i + 1, compute(input_list))) print("Case #{}: {}".format(i + 1, compute(input_list))) print("Case #{}: {}".format(i + 1, compute(input_list)))
42.05
64
0.555291
111
841
4.009009
0.252252
0.242697
0.359551
0.424719
0.667416
0.667416
0.667416
0.667416
0.667416
0.667416
0
0.015152
0.21522
841
20
65
42.05
0.659091
0
0
0.5
0
0
0.150831
0
0
0
0
0
0
1
0.055556
false
0
0.055556
0
0.166667
0.555556
0
0
0
null
1
1
1
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
1
0
5
0c1686538b73e865205453bf3b940c1267676164
121
py
Python
mysite/blog/admin.py
jankanak/Ecommerce-Blogsite-Django-
09d26e04bd49593f5666dcd74da732c43654de1f
[ "bzip2-1.0.6" ]
null
null
null
mysite/blog/admin.py
jankanak/Ecommerce-Blogsite-Django-
09d26e04bd49593f5666dcd74da732c43654de1f
[ "bzip2-1.0.6" ]
6
2021-03-19T02:57:22.000Z
2022-01-13T02:40:37.000Z
mysite/blog/admin.py
jankanak/Ecommerce-Blogsite-Django
09d26e04bd49593f5666dcd74da732c43654de1f
[ "bzip2-1.0.6" ]
null
null
null
from django.contrib import admin from .models import Blogpost # Register your models here. admin.site.register(Blogpost)
24.2
32
0.818182
17
121
5.823529
0.647059
0
0
0
0
0
0
0
0
0
0
0
0.115702
121
5
33
24.2
0.925234
0.214876
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
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
1
0
1
0
0
5
0c277b627913610f6f2ca94588b45ac632724f9d
40
py
Python
fcur/run.py
anokata/pythonPetProjects
245c3ff11ae560b17830970061d8d60013948fd7
[ "MIT" ]
3
2017-04-30T17:44:53.000Z
2018-02-03T06:02:11.000Z
fcur/run.py
anokata/pythonPetProjects
245c3ff11ae560b17830970061d8d60013948fd7
[ "MIT" ]
10
2021-03-18T20:17:19.000Z
2022-03-11T23:14:19.000Z
fcur/run.py
anokata/pythonPetProjects
245c3ff11ae560b17830970061d8d60013948fd7
[ "MIT" ]
null
null
null
from currency.app import app app.run()
10
28
0.75
7
40
4.285714
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.15
40
3
29
13.333333
0.882353
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
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
1
0
1
0
0
0
0
5
0c497a9cffc2a0289abb4bb74c6d92bfcb65c2c5
81
py
Python
mldata/__init__.py
wuhaifengdhu/MLData
04c174c6ce4a6634d8c885b42a87eee8b0a7c76a
[ "Apache-2.0" ]
null
null
null
mldata/__init__.py
wuhaifengdhu/MLData
04c174c6ce4a6634d8c885b42a87eee8b0a7c76a
[ "Apache-2.0" ]
1
2018-03-20T09:21:38.000Z
2018-03-20T09:21:38.000Z
mldata/__init__.py
wuhaifengdhu/MLData
04c174c6ce4a6634d8c885b42a87eee8b0a7c76a
[ "Apache-2.0" ]
null
null
null
""" Your application """ from mldata.lib.processor import Processor as Processor
16.2
55
0.777778
10
81
6.3
0.8
0
0
0
0
0
0
0
0
0
0
0
0.123457
81
4
56
20.25
0.887324
0.197531
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
0
5
0c4f0f741ccb4ed2dd726622a4934cdf224d5fa9
57
py
Python
webpages/urls.py
Kaiser784/Web-sec-challenges
c5a196d9130cf676d4bc09f4c0acf269169a789a
[ "MIT" ]
2
2021-06-05T10:26:59.000Z
2022-01-21T07:27:34.000Z
webpages/urls.py
Kaiser784/Web-sec-challenges
c5a196d9130cf676d4bc09f4c0acf269169a789a
[ "MIT" ]
null
null
null
webpages/urls.py
Kaiser784/Web-sec-challenges
c5a196d9130cf676d4bc09f4c0acf269169a789a
[ "MIT" ]
1
2021-08-20T12:57:57.000Z
2021-08-20T12:57:57.000Z
from django.urls import path, include from . import views
28.5
37
0.807018
9
57
5.111111
0.777778
0
0
0
0
0
0
0
0
0
0
0
0.140351
57
2
38
28.5
0.938776
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
0
5
a7909bf196d5c14e851eb0440aaf2decd9ab6261
4,645
py
Python
tests/test_tree_same.py
Maryom/Deep-Forest
a489436949f52368a5318ef31d14fbae16e2a3da
[ "BSD-3-Clause" ]
2
2021-05-28T06:05:16.000Z
2021-06-08T02:41:45.000Z
tests/test_tree_same.py
Maryom/Deep-Forest
a489436949f52368a5318ef31d14fbae16e2a3da
[ "BSD-3-Clause" ]
null
null
null
tests/test_tree_same.py
Maryom/Deep-Forest
a489436949f52368a5318ef31d14fbae16e2a3da
[ "BSD-3-Clause" ]
1
2021-03-03T06:30:49.000Z
2021-03-03T06:30:49.000Z
""" Testing cases here make sure that the outputs of the reduced implementation on `DecisionTreeClassifier` and `ExtraTreeClassifier` are exactly the same as the original version in Scikit-Learn after the data binning. """ import pytest from numpy.testing import assert_array_equal from sklearn.tree import ( DecisionTreeClassifier as sklearn_DecisionTreeClassifier, ) from sklearn.tree import ( DecisionTreeRegressor as sklearn_DecisionTreeRegressor, ) from sklearn.tree import ExtraTreeClassifier as sklearn_ExtraTreeClassifier from sklearn.tree import ExtraTreeRegressor as sklearn_ExtraTreeRegressor # Load utils from sklearn.model_selection import train_test_split from sklearn.ensemble._hist_gradient_boosting.binning import _BinMapper # Toy classification datasets from sklearn.datasets import load_iris, load_wine, load_boston from deepforest import DecisionTreeClassifier from deepforest import ExtraTreeClassifier from deepforest import DecisionTreeRegressor from deepforest import ExtraTreeRegressor test_size = 0.42 random_state = 42 @pytest.mark.parametrize("load_func", [load_iris, load_wine]) def test_tree_classifier_proba(load_func): X, y = load_func(return_X_y=True) X_train, X_test, y_train, y_test = train_test_split( X, y, test_size=test_size, random_state=random_state ) # Data binning binner = _BinMapper(random_state=random_state) X_train_binned = binner.fit_transform(X_train) X_test_binned = binner.transform(X_test) # Ours model = DecisionTreeClassifier(random_state=random_state) model.fit(X_train_binned, y_train) actual_pred = model.predict(X_test_binned) actual_proba = model.predict_proba(X_test_binned) # Sklearn model = sklearn_DecisionTreeClassifier(random_state=random_state) model.fit(X_train_binned, y_train) expected_pred = model.predict(X_test_binned) expected_proba = model.predict_proba(X_test_binned) assert_array_equal(actual_pred, expected_pred) assert_array_equal(actual_proba, expected_proba) @pytest.mark.parametrize("load_func", [load_iris, load_wine]) def test_extra_tree_classifier_proba(load_func): X, y = load_func(return_X_y=True) X_train, X_test, y_train, y_test = train_test_split( X, y, test_size=test_size, random_state=random_state ) # Data binning binner = _BinMapper(random_state=random_state) X_train_binned = binner.fit_transform(X_train) X_test_binned = binner.transform(X_test) # Ours model = ExtraTreeClassifier(random_state=random_state) model.fit(X_train_binned, y_train) actual_pred = model.predict(X_test_binned) actual_proba = model.predict_proba(X_test_binned) # Sklearn model = sklearn_ExtraTreeClassifier(random_state=random_state) model.fit(X_train_binned, y_train) expected_pred = model.predict(X_test_binned) expected_proba = model.predict_proba(X_test_binned) assert_array_equal(actual_pred, expected_pred) assert_array_equal(actual_proba, expected_proba) @pytest.mark.parametrize("load_func", [load_boston]) def test_tree_regressor_pred(load_func): X, y = load_func(return_X_y=True) X_train, X_test, y_train, y_test = train_test_split( X, y, test_size=test_size, random_state=random_state ) # Data binning binner = _BinMapper(random_state=random_state) X_train_binned = binner.fit_transform(X_train) X_test_binned = binner.transform(X_test) # Ours model = DecisionTreeRegressor(random_state=random_state) model.fit(X_train_binned, y_train) actual_pred = model.predict(X_test_binned) # Sklearn model = sklearn_DecisionTreeRegressor(random_state=random_state) model.fit(X_train_binned, y_train) expected_pred = model.predict(X_test_binned) assert_array_equal(actual_pred, expected_pred) @pytest.mark.parametrize("load_func", [load_boston]) def test_extra_tree_regressor_pred(load_func): X, y = load_func(return_X_y=True) X_train, X_test, y_train, y_test = train_test_split( X, y, test_size=test_size, random_state=random_state ) # Data binning binner = _BinMapper(random_state=random_state) X_train_binned = binner.fit_transform(X_train) X_test_binned = binner.transform(X_test) # Ours model = ExtraTreeRegressor(random_state=random_state) model.fit(X_train_binned, y_train) actual_pred = model.predict(X_test_binned) # Sklearn model = sklearn_ExtraTreeRegressor(random_state=random_state) model.fit(X_train_binned, y_train) expected_pred = model.predict(X_test_binned) assert_array_equal(actual_pred, expected_pred)
33.178571
77
0.77761
643
4,645
5.234837
0.129082
0.107843
0.080808
0.104575
0.734403
0.734403
0.734403
0.734403
0.734403
0.716875
0
0.001264
0.148547
4,645
139
78
33.417266
0.84981
0.077072
0
0.629213
0
0
0.008439
0
0
0
0
0
0.078652
1
0.044944
false
0
0.146067
0
0.191011
0
0
0
0
null
0
0
0
0
1
1
1
1
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
5
a79a3b65ee788194f9250d146ab08cf054be7722
55
py
Python
tests/fixtures/trailing_blank_lines/trailing_blank_lines4_out.py
spulec/pep8ify
cf1815f7bad9882027289bdb2f77604b68962ca7
[ "Apache-2.0" ]
50
2015-01-04T04:24:41.000Z
2021-09-13T01:01:29.000Z
tests/fixtures/trailing_blank_lines/trailing_blank_lines4_out.py
michaelBenin/pep8ify
3cd8a9e8baaab33d66e792185a6870338bdf0911
[ "Apache-2.0" ]
2
2016-05-15T12:01:28.000Z
2019-03-08T03:27:20.000Z
tests/fixtures/trailing_blank_lines/trailing_blank_lines4_out.py
michaelBenin/pep8ify
3cd8a9e8baaab33d66e792185a6870338bdf0911
[ "Apache-2.0" ]
5
2016-07-27T13:44:54.000Z
2020-11-19T16:00:08.000Z
def a(): pass # This is commented # out
9.166667
23
0.472727
7
55
3.714286
1
0
0
0
0
0
0
0
0
0
0
0
0.436364
55
5
24
11
0.83871
0.418182
0
0
0
0
0
0
0
0
0
0
0
1
0.5
true
0.5
0
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
1
1
1
0
0
0
0
0
5
a7bdbc792aa91a1d35be00d9714dfef42fc15ad7
307
py
Python
terafamiliar/childrens_therapy/views.py
Icogerard/WEB-TERAFAMILIAR---DJANGO2
dcf7d6507ef2eda697766ab3b1dd6df4365f0452
[ "MIT" ]
null
null
null
terafamiliar/childrens_therapy/views.py
Icogerard/WEB-TERAFAMILIAR---DJANGO2
dcf7d6507ef2eda697766ab3b1dd6df4365f0452
[ "MIT" ]
null
null
null
terafamiliar/childrens_therapy/views.py
Icogerard/WEB-TERAFAMILIAR---DJANGO2
dcf7d6507ef2eda697766ab3b1dd6df4365f0452
[ "MIT" ]
null
null
null
from django.shortcuts import render from .models import Childrens_therapy # Create your views here. def childrens_therapy(request): childrens_therapies = Childrens_therapy.objects.all() return render(request, "childrens_therapy/childrens_therapy.html", {'childrens_therapies':childrens_therapies})
43.857143
116
0.81759
36
307
6.75
0.527778
0.329218
0.222222
0
0
0
0
0
0
0
0
0
0.100977
307
7
116
43.857143
0.880435
0.074919
0
0
0
0
0.208481
0.141343
0
0
0
0
0
1
0.2
false
0
0.4
0
0.8
0
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
1
0
1
0
0
5
a7c0d0fc3283947302b3807b48af43f5b355d250
16,884
py
Python
mozumder/models/development.py
mozumder/django-mozumder
887ce303249eac2d77de062fd57023dbc4b782dd
[ "MIT" ]
1
2020-06-13T06:12:16.000Z
2020-06-13T06:12:16.000Z
mozumder/models/development.py
mozumder/django-mozumder
887ce303249eac2d77de062fd57023dbc4b782dd
[ "MIT" ]
4
2020-06-18T03:53:29.000Z
2021-06-09T17:56:12.000Z
mozumder/models/development.py
mozumder/django-mozumder
887ce303249eac2d77de062fd57023dbc4b782dd
[ "MIT" ]
null
null
null
from django.db import models from .. import FieldTypes, OnDelete, ConstraintType, IPAddressProtocol, ViewBaseClass, DefaultMixins from django.contrib.auth.models import Permission # Create your models here. class TrackedApp(models.Model): name = models.CharField(max_length=80) def __str__(self): return self.name class Choices(models.Model): value = models.CharField(max_length=80) label = models.CharField(max_length=80) class TrackedField(models.Model): name = models.CharField(max_length=80) owner = models.ForeignKey('TrackedModel',on_delete=models.CASCADE) type = models.CharField( max_length=2, choices=FieldTypes.choices, ) verbose_name = models.CharField(max_length=80, null=True, blank=True) auto_created = models.BooleanField(null=True, blank=True) serialize = models.BooleanField(null=True, blank=True) primary_key = models.BooleanField(null=True, blank=True) null = models.BooleanField(null=True, blank=True) blank = models.BooleanField(null=True, blank=True) db_index = models.BooleanField(null=True, blank=True) db_column = models.CharField(max_length=80, null=True, blank=True) db_tablespace = models.CharField(max_length=80, null=True, blank=True) editable = models.BooleanField(null=True, blank=True) show_in_detail_view = models.BooleanField(null=True, blank=True) show_in_list_view = models.BooleanField(null=True, blank=True) link_in_list_view = models.BooleanField(null=True, blank=True) admin_readonly_field = models.BooleanField(null=True, blank=True) admin_search = models.BooleanField(null=True, blank=True) unique = models.BooleanField(null=True, blank=True) unique_for_date = models.BooleanField(null=True, blank=True) unique_for_month = models.BooleanField(null=True, blank=True) unique_for_year = models.BooleanField(null=True, blank=True) default_bool = models.BooleanField(null=True, blank=True) default_text = models.TextField(null=True, blank=True) default_smallint = models.SmallIntegerField(null=True, blank=True) default_bigint = models.BigIntegerField(null=True, blank=True) default_int = models.IntegerField(null=True, blank=True) default_posint = models.PositiveIntegerField(null=True, blank=True) default_possmallint = models.PositiveSmallIntegerField(null=True, blank=True) default_datetime = models.DateTimeField(null=True, blank=True) default_float = models.FloatField(null=True, blank=True) default_decimal = models.DecimalField(max_digits=18, decimal_places=18, null=True, blank=True) choices = models.ManyToManyField(Choices) #Field: CharField max_length = models.SmallIntegerField(null=True, blank=True) #Field: ForeignKey to = models.CharField(max_length=80, null=True, blank=True) on_delete = models.CharField( max_length=2, choices=OnDelete.choices, null=True, blank=True ) related_name = models.CharField(max_length=80, null=True, blank=True) related_query_name = models.CharField(max_length=80, null=True, blank=True) limit_choices_to = models.TextField(null=True, blank=True) to_field = models.CharField(max_length=80, null=True, blank=True) #Field: ManyToManyField symmetrical = models.BooleanField(null=True, blank=True) through = models.CharField(max_length=80, null=True, blank=True) through_fields_source = models.CharField(max_length=80, null=True, blank=True) through_fields_target = models.CharField(max_length=80, null=True, blank=True) db_table = models.CharField(max_length=80, null=True, blank=True) db_constraint = models.BooleanField(null=True, blank=True) swappable = models.BooleanField(null=True, blank=True) #Field: OneToOneField parent_link = models.BooleanField(null=True, blank=True) #Field: DateField, DateTimeField auto_now = models.BooleanField(null=True, blank=True) auto_now_add = models.BooleanField(null=True, blank=True) #Field: DecimalField max_digits = models.SmallIntegerField(null=True, blank=True) decimal_places = models.SmallIntegerField(null=True, blank=True) #Field: FileField upload_to = models.CharField(max_length=255,null=True, blank=True) #Field: GenericIPAddressField protocol = models.CharField(max_length=2, choices=IPAddressProtocol.choices, null=True, blank=True) unpack_ipv4 = models.BooleanField(null=True, blank=True) #Field: SlugField sllow_unicode = models.BooleanField(null=True, blank=True) def __str__(self): return self.name class Index(models.Model): name = models.CharField(max_length=80, null=True, blank=True) fields = models.ManyToManyField(TrackedField) owner = models.ForeignKey('TrackedModel', on_delete=models.CASCADE) def __str__(self): return self.name class Query(models.Model): params = models.CharField(max_length=512, null=True, blank=True) def __str__(self): return self.params class Constraint(models.Model): name = models.CharField(max_length=80) owner = models.ForeignKey('TrackedModel', on_delete=models.CASCADE) type = models.CharField(max_length=2, choices=ConstraintType.choices) fields = models.ManyToManyField('TrackedField') q = models.ForeignKey('Query', on_delete=models.CASCADE, null=True, blank=True) deferrable = models.BooleanField(default=False) def __str__(self): return self.name class Arg(models.Model): name = models.CharField(max_length=80, null=True, blank=True) value = models.CharField(max_length=80, null=True, blank=True) def __str__(self): return self.name class Method(models.Model): name = models.CharField(max_length=80) args = models.ManyToManyField(TrackedField, related_name='function_args') kwargs = models.ManyToManyField(TrackedField, related_name='function_kwargs') code = models.TextField(null=True, blank=True) class Latest(models.Model): latest_field = models.ForeignKey('TrackedField', on_delete=models.CASCADE) latest_model = models.ForeignKey('TrackedModel', on_delete=models.CASCADE) number = models.SmallIntegerField(default=0) descending = models.BooleanField(default=False) nulls_last = models.BooleanField(default=False) class Meta: ordering = ['number'] def __str__(self): return f"{self.latest_field}:{self.latest_model}:{self.number}:{self.descending}:{self.nulls_last}" class Ordering(models.Model): target_field = models.ForeignKey('TrackedField', on_delete=models.CASCADE) source = models.ForeignKey('TrackedModel', related_name='source_ordering_model', on_delete=models.CASCADE) number = models.SmallIntegerField(default=0) descending = models.BooleanField(default=False) nulls_last = models.BooleanField(default=False) class Meta: ordering = ['number'] def __str__(self): return f"{self.target_field}:{self.source}:{self.number}:{self.descending}:{self.nulls_last}" class ExtraPermission(models.Model): permission_code = models.CharField(max_length=80, unique=True, null=True, blank=True) human_readable_permission_name = models.CharField(max_length=80, null=True, blank=True) def __str__(self): return self.name class DefaultPermission(models.Model): permission_code = models.CharField(max_length=80, unique=True, null=True, blank=True) def __str__(self): return self.permission_code class TrackedModel(models.Model): name = models.CharField(max_length=80) owner = models.ForeignKey('TrackedApp',on_delete=models.CASCADE) verbose_name = models.CharField(max_length=80) verbose_name_plural = models.CharField(max_length=80) abstract = models.BooleanField(default=False) app_label = models.CharField(max_length=80, null=True, blank=True) base_manager_name = models.CharField(max_length=80, null=True, blank=True) db_table = models.CharField(max_length=80, null=True, blank=True) db_tablespace = models.CharField(max_length=80, null=True, blank=True) default_manager_name = models.CharField(max_length=80, null=True, blank=True) default_related_name = models.CharField(max_length=80, null=True, blank=True) get_latest_by = models.ManyToManyField('TrackedField', related_name='latest_fields', through='Latest', through_fields=('latest_model','latest_field')) managed = models.BooleanField(null=True, blank=True) order_with_respect_to = models.ForeignKey('TrackedField', related_name='ordered_with_respect_to_field', on_delete=models.SET_NULL, null=True, blank=True) ordering = models.ManyToManyField('TrackedField',through='Ordering',related_name='ordering_fields', through_fields=('source','target_field')) permissions = models.ManyToManyField('ExtraPermission') default_permissions = models.ManyToManyField('DefaultPermission') proxy = models.BooleanField(null=True, blank=True) select_on_save = models.BooleanField(null=True, blank=True) indexes = models.ManyToManyField('Index') constraints = models.ManyToManyField('Constraint') mixins = models.ManyToManyField('Mixin') methods = models.ManyToManyField('Method') def __str__(self): return self.name class TrackedView(models.Model): name = models.CharField(max_length=80) owner = models.ForeignKey('TrackedApp', on_delete=models.CASCADE) class_based_view = models.BooleanField(null=True, blank=True) base_class = models.CharField( max_length=2, choices=ViewBaseClass.choices, ) url = models.CharField(max_length=250) url_name = models.CharField(max_length=250) api_url = models.BooleanField(default=False) mixins = models.ManyToManyField('Mixin') methods = models.ManyToManyField('Method') model = models.ForeignKey('TrackedModel',on_delete=models.CASCADE, null=True, blank=True) # Redirect View url = models.CharField(max_length=250, null=True, blank=True) pattern = models.CharField(max_length=250, null=True, blank=True) permanent = models.BooleanField(null=True, blank=True) query_string = models.BooleanField(null=True, blank=True) # Create/Update View object = models.CharField(max_length=250, null=True, blank=True) success_url = models.CharField(max_length=250, null=True, blank=True) # Context Mixin extra_context = models.TextField(null=True, blank=True) # Template Response mixin template_name = models.CharField(max_length=250, null=True, blank=True) template_engine = models.CharField(max_length=250, null=True, blank=True) response_class = models.CharField(max_length=250, null=True, blank=True) content_type = models.CharField(max_length=250, null=True, blank=True) # Single Object Mixin model = models.ForeignKey('TrackedModel',on_delete=models.CASCADE, null=True, blank=True) queryset = models.CharField(max_length=250, null=True, blank=True) slug_field = models.ForeignKey('TrackedField', related_name='view_slug_field', on_delete=models.CASCADE,null=True, blank=True) slug_url_kwarg = models.CharField(max_length=250, null=True, blank=True) pk_url_kwarg = models.CharField(max_length=250, null=True, blank=True) context_object_name = models.CharField(max_length=250, null=True, blank=True) query_pk_and_slug = models.CharField(max_length=250, null=True, blank=True) # Single Object Template Response Mixin template_name_field = models.ForeignKey('TrackedField', related_name='view_template_name_field', on_delete=models.CASCADE, null=True, blank=True) template_name_suffix = models.CharField(max_length=250, null=True, blank=True) # Multiple Object Mixin allow_empty = models.BooleanField(null=True, blank=True) ordering = models.CharField(max_length=250, null=True, blank=True) paginate_by = models.SmallIntegerField(null=True, blank=True) paginate_orphans = models.SmallIntegerField(null=True, blank=True) page_kwarg = models.CharField(max_length=250, null=True, blank=True) paginator_class = models.CharField(max_length=250, null=True, blank=True) context_object_name = models.CharField(max_length=250, null=True, blank=True) # Form Mixin initial = models.TextField(null=True, blank=True) form_class = models.CharField(max_length=250, null=True, blank=True) prefix = models.CharField(max_length=250, null=True, blank=True) # Model Form fields = models.ManyToManyField(TrackedField, related_name='view_model_form_fields') # Year/Month/Day/Week Mixin year_format = models.CharField(max_length=250, null=True, blank=True) year = models.CharField(max_length=250, null=True, blank=True) month_format = models.CharField(max_length=250, null=True, blank=True) month = models.CharField(max_length=250, null=True, blank=True) day_format = models.CharField(max_length=250, null=True, blank=True) day = models.CharField(max_length=250, null=True, blank=True) week_format = models.CharField(max_length=250, null=True, blank=True) week = models.CharField(max_length=250, null=True, blank=True) # Date Mixin date_field = models.ForeignKey('TrackedField', related_name='view_date_field', on_delete=models.CASCADE, null=True, blank=True) allow_future = models.BooleanField(null=True, blank=True) # BaseDateListView allow_empty = models.BooleanField(null=True, blank=True) class Mixin(models.Model): name = models.CharField(max_length=80) owner = models.ForeignKey('TrackedApp', on_delete=models.CASCADE) base_class = models.CharField( max_length=2, choices=DefaultMixins.choices, ) methods = models.ManyToManyField(Method) # Context Mixin extra_context = models.TextField(null=True, blank=True) # Template Response mixin template_name = models.CharField(max_length=250, null=True, blank=True) template_engine = models.CharField(max_length=250, null=True, blank=True) response_class = models.CharField(max_length=250, null=True, blank=True) content_type = models.CharField(max_length=250, null=True, blank=True) # Single Object Mixin model = models.ForeignKey('TrackedModel',on_delete=models.CASCADE, null=True, blank=True) queryset = models.CharField(max_length=250, null=True, blank=True) slug_field = models.ForeignKey('TrackedField', related_name='mixin_slug_field', on_delete=models.CASCADE,null=True, blank=True) slug_url_kwarg = models.CharField(max_length=250, null=True, blank=True) pk_url_kwarg = models.CharField(max_length=250, null=True, blank=True) context_object_name = models.CharField(max_length=250, null=True, blank=True) query_pk_and_slug = models.CharField(max_length=250, null=True, blank=True) # Single Object Template Response Mixin template_name_field = models.ForeignKey('TrackedField', related_name='mixin_template_name_field', on_delete=models.CASCADE, null=True, blank=True) template_name_suffix = models.CharField(max_length=250, null=True, blank=True) # Multiple Object Mixin allow_empty = models.BooleanField(null=True, blank=True) ordering = models.CharField(max_length=250, null=True, blank=True) paginate_by = models.SmallIntegerField(null=True, blank=True) paginate_orphans = models.SmallIntegerField(null=True, blank=True) page_kwarg = models.CharField(max_length=250, null=True, blank=True) paginator_class = models.CharField(max_length=250, null=True, blank=True) context_object_name = models.CharField(max_length=250, null=True, blank=True) # Form Mixin initial = models.TextField(null=True, blank=True) form_class = models.CharField(max_length=250, null=True, blank=True) prefix = models.CharField(max_length=250, null=True, blank=True) # Model Form fields = models.ManyToManyField(TrackedField, related_name='mixin_model_form_fields') # Year/Month/Day/Week Mixin year_format = models.CharField(max_length=250, null=True, blank=True) year = models.CharField(max_length=250, null=True, blank=True) month_format = models.CharField(max_length=250, null=True, blank=True) month = models.CharField(max_length=250, null=True, blank=True) day_format = models.CharField(max_length=250, null=True, blank=True) day = models.CharField(max_length=250, null=True, blank=True) week_format = models.CharField(max_length=250, null=True, blank=True) week = models.CharField(max_length=250, null=True, blank=True) # Date Mixin date_field = models.ForeignKey('TrackedField', related_name='mixin_date_field', on_delete=models.CASCADE, null=True, blank=True) allow_future = models.BooleanField(null=True, blank=True) # BaseDateListView allow_empty = models.BooleanField(null=True, blank=True) def __str__(self): return self.name
47.694915
157
0.744847
2,181
16,884
5.589179
0.094911
0.110747
0.158901
0.207793
0.822313
0.788597
0.712469
0.653076
0.585398
0.555537
0
0.017185
0.14185
16,884
353
158
47.830028
0.824142
0.037313
0
0.480916
0
0.007634
0.052158
0.019482
0
0
0
0
0
1
0.045802
false
0
0.01145
0.045802
0.942748
0
0
0
0
null
0
0
1
1
1
1
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
5
a7ccb69f6390963a193d3271bb9d06b1d7fb9958
88
py
Python
boards/admin.py
EndermanOfCoding/django-beginners-guide
117453fcdb233e7fb81e910ebbfbdf8f6c79c74a
[ "MIT" ]
1,106
2017-09-04T05:06:27.000Z
2022-03-29T03:53:37.000Z
boards/admin.py
EndermanOfCoding/django-beginners-guide
117453fcdb233e7fb81e910ebbfbdf8f6c79c74a
[ "MIT" ]
28
2017-09-27T13:34:11.000Z
2021-08-30T06:13:25.000Z
boards/admin.py
EndermanOfCoding/django-beginners-guide
117453fcdb233e7fb81e910ebbfbdf8f6c79c74a
[ "MIT" ]
455
2017-09-04T11:50:58.000Z
2022-03-31T18:44:16.000Z
from django.contrib import admin from .models import Board admin.site.register(Board)
14.666667
32
0.806818
13
88
5.461538
0.692308
0
0
0
0
0
0
0
0
0
0
0
0.125
88
5
33
17.6
0.922078
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
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
1
0
1
0
0
5
a7cd6bb71faadbe535f373af4f60f2a3212e59e0
56
py
Python
Back/ecoreleve_server/modules/sensors/__init__.py
NaturalSolutions/ecoReleve-Data
535a6165984544902563eca7cb10d07f1686c963
[ "MIT" ]
15
2015-02-15T18:02:54.000Z
2021-10-31T00:08:41.000Z
Back/ecoreleve_server/modules/sensors/__init__.py
NaturalSolutions/ecoReleve-Data
535a6165984544902563eca7cb10d07f1686c963
[ "MIT" ]
505
2015-03-24T15:16:55.000Z
2022-03-21T22:17:11.000Z
Back/ecoreleve_server/modules/sensors/__init__.py
NaturalSolutions/ecoReleve-Data
535a6165984544902563eca7cb10d07f1686c963
[ "MIT" ]
31
2015-04-09T10:48:31.000Z
2020-12-08T16:32:30.000Z
from .sensor_model import * from .sensor_data import *
14
27
0.767857
8
56
5.125
0.625
0.487805
0
0
0
0
0
0
0
0
0
0
0.160714
56
3
28
18.666667
0.87234
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
0
0
0
5
a7d0b0e4231d7b3dd32f6ca768032a8c36e6c4c4
135
py
Python
enthought/plugins/remote_editor/editor_plugins/emacs/enshell_plugin.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
3
2016-12-09T06:05:18.000Z
2018-03-01T13:00:29.000Z
enthought/plugins/remote_editor/editor_plugins/emacs/enshell_plugin.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
1
2020-12-02T00:51:32.000Z
2020-12-02T08:48:55.000Z
enthought/plugins/remote_editor/editor_plugins/emacs/enshell_plugin.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
null
null
null
# proxy module from __future__ import absolute_import from envisage.plugins.remote_editor.editor_plugins.emacs.enshell_plugin import *
33.75
80
0.866667
18
135
6.055556
0.722222
0
0
0
0
0
0
0
0
0
0
0
0.081481
135
3
81
45
0.879032
0.088889
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
0
5
a7d788078f9057372d6ba164e25f8c887e8bbe4a
34
py
Python
algo_assignment.py
TransientObject/labMTComparison
5b9639230fb4db4ff6310fd62fe667f1cec7a3c6
[ "Apache-2.0" ]
null
null
null
algo_assignment.py
TransientObject/labMTComparison
5b9639230fb4db4ff6310fd62fe667f1cec7a3c6
[ "Apache-2.0" ]
null
null
null
algo_assignment.py
TransientObject/labMTComparison
5b9639230fb4db4ff6310fd62fe667f1cec7a3c6
[ "Apache-2.0" ]
null
null
null
import random def search(a,x):
5.666667
16
0.676471
6
34
3.833333
1
0
0
0
0
0
0
0
0
0
0
0
0.205882
34
5
17
6.8
0.851852
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0.5
null
null
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
1
0
0
0
1
0
0
0
0
5
38f83b251a41f7f27fdaef3247929095e30693bc
266
py
Python
package2/subpackageB/moduleA.py
cheshyre/python-import-test
a3c434d2f78e02381c838f0fb0440c888bcab0af
[ "MIT" ]
null
null
null
package2/subpackageB/moduleA.py
cheshyre/python-import-test
a3c434d2f78e02381c838f0fb0440c888bcab0af
[ "MIT" ]
null
null
null
package2/subpackageB/moduleA.py
cheshyre/python-import-test
a3c434d2f78e02381c838f0fb0440c888bcab0af
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals from package2.subpackageA import moduleB as mB def methodA(): print("B.A.methodA") def methodB(): mB.methodA() print("B.A.methodB")
17.733333
46
0.759398
36
266
5.194444
0.5
0.160428
0.256684
0.149733
0
0
0
0
0
0
0
0.004464
0.157895
266
14
47
19
0.830357
0
0
0
0
0
0.082707
0
0
0
0
0
0
1
0.222222
true
0
0.444444
0
0.666667
0.333333
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
1
1
0
1
0
1
0
0
5
ac074204173834b5205e97e181e115e6fde5ed28
17
py
Python
pam/conftest.py
spaceone/python-pampy
25b2f0639ec6849b1af31065833666fb8d9c5b34
[ "MIT" ]
76
2015-05-22T11:59:11.000Z
2022-03-23T03:13:08.000Z
pam/conftest.py
spaceone/python-pampy
25b2f0639ec6849b1af31065833666fb8d9c5b34
[ "MIT" ]
24
2015-01-06T18:31:58.000Z
2022-03-18T00:40:15.000Z
pam/conftest.py
spaceone/python-pampy
25b2f0639ec6849b1af31065833666fb8d9c5b34
[ "MIT" ]
21
2015-04-20T03:35:39.000Z
2022-02-19T11:48:33.000Z
# trigger pytest
8.5
16
0.764706
2
17
6.5
1
0
0
0
0
0
0
0
0
0
0
0
0.176471
17
1
17
17
0.928571
0.823529
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
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
5
ac28de36c7857d7f1b0cb60bc2bd0da7b0012cdd
51
py
Python
scripts/run_benchmark/__init__.py
abeimler/ecs_benchmark
539b243f6e5faf2c4af9fc2da6dca4742978f386
[ "MIT" ]
44
2017-03-01T15:47:50.000Z
2022-03-25T16:39:11.000Z
scripts/run_benchmark/__init__.py
abeimler/ecs_benchmark
539b243f6e5faf2c4af9fc2da6dca4742978f386
[ "MIT" ]
7
2017-03-27T19:39:33.000Z
2022-02-01T02:20:43.000Z
scripts/run_benchmark/__init__.py
abeimler/ecs_benchmark
539b243f6e5faf2c4af9fc2da6dca4742978f386
[ "MIT" ]
11
2016-12-02T03:07:50.000Z
2021-03-20T15:53:21.000Z
from .csvtomd import * from .run_benchmark import *
25.5
28
0.784314
7
51
5.571429
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.137255
51
2
28
25.5
0.886364
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
0
5
ac2f729f724aafb6adf3fdf855418c8e92f7dac3
215
py
Python
leetcode/count-and-say/test_count_and_say.py
tomviner/coding-exercises
669895011bb3d1f3878599312b19af1f87a715bc
[ "MIT" ]
1
2019-08-06T07:56:59.000Z
2019-08-06T07:56:59.000Z
leetcode/count-and-say/test_count_and_say.py
tomviner/coding-exercises
669895011bb3d1f3878599312b19af1f87a715bc
[ "MIT" ]
null
null
null
leetcode/count-and-say/test_count_and_say.py
tomviner/coding-exercises
669895011bb3d1f3878599312b19af1f87a715bc
[ "MIT" ]
null
null
null
import pytest from count_and_say import Solution @pytest.mark.parametrize('input, expected', [(1, '1'), (4, '1211')]) def test_count_and_say(input, expected): assert Solution().countAndSay(input) == expected
23.888889
68
0.725581
29
215
5.206897
0.62069
0.258278
0.145695
0
0
0
0
0
0
0
0
0.037037
0.12093
215
8
69
26.875
0.761905
0
0
0
0
0
0.093023
0
0
0
0
0
0.2
1
0.2
false
0
0.4
0
0.6
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
1
0
1
0
0
5
ac4868481668bd8e63ed04fd0e3ac97a8b09085e
72
py
Python
apps/challenge/services/clan_war.py
mehrbodjavadi79/AIC21-Backend
9f4342781f0722804a2eb704b43b52984c81b40a
[ "MIT" ]
3
2021-03-12T18:32:39.000Z
2021-11-08T10:21:04.000Z
apps/challenge/services/clan_war.py
mehrbodjavadi79/AIC21-Backend
9f4342781f0722804a2eb704b43b52984c81b40a
[ "MIT" ]
null
null
null
apps/challenge/services/clan_war.py
mehrbodjavadi79/AIC21-Backend
9f4342781f0722804a2eb704b43b52984c81b40a
[ "MIT" ]
2
2021-01-29T14:52:53.000Z
2022-03-05T10:24:24.000Z
class ClanWarService: def __init__(self, clan1, clan2): pass
24
37
0.666667
8
72
5.5
1
0
0
0
0
0
0
0
0
0
0
0.037037
0.25
72
3
38
24
0.777778
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0.333333
0
0
0.666667
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
1
0
1
0
0
1
0
0
5
ac5da5f405ef22fdcfa33eb56c5ef15b30b1115e
105
py
Python
statefun_tasks/client/__init__.py
lukeashworth1/flink-statefun-tasks
854abdd4f572836bcd7be7b9ec8b79cc4b0182e6
[ "Apache-2.0" ]
null
null
null
statefun_tasks/client/__init__.py
lukeashworth1/flink-statefun-tasks
854abdd4f572836bcd7be7b9ec8b79cc4b0182e6
[ "Apache-2.0" ]
null
null
null
statefun_tasks/client/__init__.py
lukeashworth1/flink-statefun-tasks
854abdd4f572836bcd7be7b9ec8b79cc4b0182e6
[ "Apache-2.0" ]
null
null
null
from ._types import TaskError, TaskStatus from ._client import FlinkTasksClient, FlinkTasksClientFactory
35
62
0.866667
10
105
8.9
0.8
0
0
0
0
0
0
0
0
0
0
0
0.095238
105
2
63
52.5
0.936842
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
0
5
3ba7ed00faca6431681a02ce3b40d62ffa86f0ac
113
py
Python
EHTask/models/__init__.py
CraneHzm/EHTask
1d36e326bee8b8d5b9d20761fc24bd2b3fa22aaa
[ "MIT" ]
null
null
null
EHTask/models/__init__.py
CraneHzm/EHTask
1d36e326bee8b8d5b9d20761fc24bd2b3fa22aaa
[ "MIT" ]
null
null
null
EHTask/models/__init__.py
CraneHzm/EHTask
1d36e326bee8b8d5b9d20761fc24bd2b3fa22aaa
[ "MIT" ]
null
null
null
__all__ = ['EHTaskModels', 'weight_init'] from .EHTaskModels import EHTask from .weight_init import weight_init
22.6
41
0.79646
14
113
5.928571
0.5
0.361446
0
0
0
0
0
0
0
0
0
0
0.115044
113
4
42
28.25
0.83
0
0
0
0
0
0.20354
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
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
1
0
1
0
0
5
3bd2e014bd72d4e9903f0550f6c87eca10fdf8d9
37
py
Python
dynamicdecorators/admin.py
huseyinyilmaz/django-dynamic-decorators
f3cbc11faec12f1975e6722e204db78dc543d7aa
[ "MIT" ]
null
null
null
dynamicdecorators/admin.py
huseyinyilmaz/django-dynamic-decorators
f3cbc11faec12f1975e6722e204db78dc543d7aa
[ "MIT" ]
null
null
null
dynamicdecorators/admin.py
huseyinyilmaz/django-dynamic-decorators
f3cbc11faec12f1975e6722e204db78dc543d7aa
[ "MIT" ]
null
null
null
"""Admin interface configuration."""
18.5
36
0.72973
3
37
9
1
0
0
0
0
0
0
0
0
0
0
0
0.081081
37
1
37
37
0.794118
0.810811
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
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
5
3be0469ffbf09be2d5f0f0241597866ee293be24
911
py
Python
Functionalities/Voice/VoiceQuery.py
sebampuero/dummy-discord-bot
030bc6483c501ad80b6a504e886b47b41da3f609
[ "MIT" ]
null
null
null
Functionalities/Voice/VoiceQuery.py
sebampuero/dummy-discord-bot
030bc6483c501ad80b6a504e886b47b41da3f609
[ "MIT" ]
1
2021-03-31T19:48:15.000Z
2021-03-31T19:48:15.000Z
Functionalities/Voice/VoiceQuery.py
sebampuero/dummy-discord-bot
030bc6483c501ad80b6a504e886b47b41da3f609
[ "MIT" ]
null
null
null
class Query: def __init__(self, the_query, filename=None): self.data = None self.the_query = the_query def set_data(self, data): self.data = data def __repr__(self): return self.the_query class LocalMP3Query(Query): def __init__(self, filename, url, author_name): self.title = f"{filename} by {author_name}" super().__init__(url) def __repr__(self): return self.title class YoutubeQuery(Query): def __init__(self, the_query): super().__init__(the_query) def __repr__(self): return " ".join(self.the_query) if isinstance(self.the_query, tuple) or isinstance(self.the_query, list) else self.the_query class SpotifyQuery(Query): def __init__(self, the_query): super().__init__(the_query) class SoundcloudQuery(Query): def __init__(self, the_query): super().__init__(the_query)
23.973684
132
0.66191
118
911
4.559322
0.254237
0.208178
0.223048
0.148699
0.351301
0.273234
0.228625
0.228625
0.228625
0.228625
0
0.00142
0.227223
911
38
133
23.973684
0.762784
0
0
0.36
0
0
0.030702
0
0
0
0
0
0
1
0.36
false
0
0
0.12
0.68
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
1
0
0
0
1
1
0
0
5
3be4278f9c8e646616d45135f6837c52d57a0e3f
78
py
Python
tradssat/tmpl/__init__.py
shreyayadav/traDSSAT
cc9650f896910c0d0a7a382aff36bef89aba70f2
[ "MIT" ]
6
2020-10-05T11:50:37.000Z
2022-02-24T08:36:22.000Z
tradssat/tmpl/__init__.py
shreyayadav/traDSSAT
cc9650f896910c0d0a7a382aff36bef89aba70f2
[ "MIT" ]
23
2018-11-08T19:16:36.000Z
2021-07-20T23:34:18.000Z
tradssat/tmpl/__init__.py
shreyayadav/traDSSAT
cc9650f896910c0d0a7a382aff36bef89aba70f2
[ "MIT" ]
9
2018-11-06T21:04:07.000Z
2021-06-19T05:43:24.000Z
from .file import File from .input import InpFile from .output import OutFile
19.5
27
0.807692
12
78
5.25
0.583333
0
0
0
0
0
0
0
0
0
0
0
0.153846
78
3
28
26
0.954545
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
0
5
3bffca2792ae24ed464359d14fdd648770ef282e
61
py
Python
tests/__init__.py
skullydazed/rq-dashboard
6096120180d51630e0e6797e65a223098010448d
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
tests/__init__.py
skullydazed/rq-dashboard
6096120180d51630e0e6797e65a223098010448d
[ "BSD-2-Clause-FreeBSD" ]
3
2019-07-23T20:01:29.000Z
2019-08-08T15:26:42.000Z
tests/__init__.py
skullydazed/rq-dashboard
6096120180d51630e0e6797e65a223098010448d
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
from __future__ import absolute_import from .basic import *
15.25
38
0.819672
8
61
5.625
0.625
0
0
0
0
0
0
0
0
0
0
0
0.147541
61
3
39
20.333333
0.865385
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
0
5
ce2fbb3009a0e28eebb9ecabf671e13e63fb3302
111
py
Python
call_code_timer.py
ShuksanGeomatics/Python_Code_Timer
ef6960309adc2a5bbefd5a3d8de9b27d41d908e2
[ "MIT" ]
null
null
null
call_code_timer.py
ShuksanGeomatics/Python_Code_Timer
ef6960309adc2a5bbefd5a3d8de9b27d41d908e2
[ "MIT" ]
null
null
null
call_code_timer.py
ShuksanGeomatics/Python_Code_Timer
ef6960309adc2a5bbefd5a3d8de9b27d41d908e2
[ "MIT" ]
null
null
null
from python_code_timer import gTimer my_timer = gTimer() my_timer.print_start_time() my_timer.print_end_time()
22.2
36
0.837838
19
111
4.421053
0.578947
0.25
0.309524
0
0
0
0
0
0
0
0
0
0.081081
111
5
37
22.2
0.823529
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.5
1
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
1
0
5
ce35e8ddee7e9f04cf46ad336edf1a47c84db2bc
244
py
Python
python_packages/jupyterlab_lsp/jupyterlab_lsp/__init__.py
icankeep/jupyterlab-lsp
34578aef207be97184b72e3d367d12abfc705682
[ "BSD-3-Clause" ]
1,117
2019-08-20T06:03:12.000Z
2021-10-08T20:52:29.000Z
python_packages/jupyterlab_lsp/jupyterlab_lsp/__init__.py
icankeep/jupyterlab-lsp
34578aef207be97184b72e3d367d12abfc705682
[ "BSD-3-Clause" ]
565
2019-08-17T20:09:01.000Z
2021-10-06T15:22:00.000Z
python_packages/jupyterlab_lsp/jupyterlab_lsp/__init__.py
icankeep/jupyterlab-lsp
34578aef207be97184b72e3d367d12abfc705682
[ "BSD-3-Clause" ]
97
2019-09-05T13:23:55.000Z
2021-09-26T05:51:07.000Z
# flake8: noqa: F401 from ._version import __version__ def _jupyter_labextension_paths(): return [ { "src": "labextensions/@krassowski/jupyterlab-lsp", "dest": "@krassowski/jupyterlab-lsp", } ]
20.333333
62
0.594262
21
244
6.52381
0.809524
0.291971
0.335766
0
0
0
0
0
0
0
0
0.022857
0.282787
244
11
63
22.181818
0.76
0.07377
0
0
0
0
0.325893
0.294643
0
0
0
0
0
1
0.125
true
0
0.125
0.125
0.375
0
1
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
1
0
0
0
5
ce3ce736faf27f4dbae0ee85ecca9b4a088a3644
1,938
py
Python
douyinspider/download/downloader.py
MisterZhouZhou/pythonThreeSpider
0e120350402f690158c89b7431f243cb462ae12f
[ "Apache-2.0" ]
3
2019-11-05T01:00:05.000Z
2021-03-16T03:56:46.000Z
douyinspider/download/downloader.py
bingwin/pythonThreeSpider
0e120350402f690158c89b7431f243cb462ae12f
[ "Apache-2.0" ]
null
null
null
douyinspider/download/downloader.py
bingwin/pythonThreeSpider
0e120350402f690158c89b7431f243cb462ae12f
[ "Apache-2.0" ]
1
2020-05-16T12:45:36.000Z
2020-05-16T12:45:36.000Z
import urllib # 资源下载类 class Downloader(object): # 初始化路径 def __init__(self, path=None): self.path = path def download_mp4(self, url, video_name): if self.path == None: print('路径不存在') return # 定义url,请求的api try: print("正在下载:{0}".format(video_name)) # 设置header为app环境 opener = urllib.request.build_opener() opener.addheaders = [('User-agent', 'Aweme 3.1.0 rv:31006 (iPhone; iOS 12.0; zh_CN) Cronet')] urllib.request.install_opener(opener) urllib.request.urlretrieve(url, '{0}/{1}.mp4'.format(self.path, video_name)) print("Finish...") except: print("Failed...") def download_mp4_path(self, url, video_name, video_path): # 定义url,请求的api try: print("正在下载:{0}".format(video_name)) # 设置header为app环境 opener = urllib.request.build_opener() opener.addheaders = [('User-agent', 'Aweme 3.1.0 rv:31006 (iPhone; iOS 12.0; zh_CN) Cronet')] urllib.request.install_opener(opener) urllib.request.urlretrieve(url, '{0}/{1}.mp4'.format(video_path, video_name)) print("Finish...") except: print("Failed...") def download_mp3_path(self, url, music_name, music_path): # 定义url,请求的api try: print("正在下载:{0}".format(music_name)) # 设置header为app环境 opener = urllib.request.build_opener() opener.addheaders = [('User-agent', 'Aweme 3.1.0 rv:31006 (iPhone; iOS 12.0; zh_CN) Cronet')] urllib.request.install_opener(opener) urllib.request.urlretrieve(url, '{0}/{1}.mp3'.format(music_path, music_name)) print("Finish...") except: print("Failed...")
35.888889
91
0.533024
211
1,938
4.748815
0.246446
0.116766
0.113772
0.056886
0.773453
0.773453
0.741517
0.741517
0.703593
0.703593
0
0.037037
0.331269
1,938
53
92
36.566038
0.736111
0.04902
0
0.65
0
0
0.166303
0
0
0
0
0
0
1
0.1
false
0
0.025
0
0.175
0.25
0
0
0
null
0
0
0
0
1
1
1
1
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
5
0265ccf7e469c91bda4637228764c94645393793
311
py
Python
test/run/t437.py
timmartin/skulpt
2e3a3fbbaccc12baa29094a717ceec491a8a6750
[ "MIT" ]
2,671
2015-01-03T08:23:25.000Z
2022-03-31T06:15:48.000Z
test/run/t437.py
timmartin/skulpt
2e3a3fbbaccc12baa29094a717ceec491a8a6750
[ "MIT" ]
972
2015-01-05T08:11:00.000Z
2022-03-29T13:47:15.000Z
test/run/t437.py
timmartin/skulpt
2e3a3fbbaccc12baa29094a717ceec491a8a6750
[ "MIT" ]
845
2015-01-03T19:53:36.000Z
2022-03-29T18:34:22.000Z
import re m = re.match('([0-9]+)([a-z]+)([A-Z]*)','345abu') print "\ngroup" print m.group() == '345abu' print m.group(0) == '345abu' print m.group(1) == '345' print m.group(2) == 'abu' print m.group(3) == '' print "\ngroups" print m.groups() == ('345','abu','') print m.groups('default') == ('345','abu','')
20.733333
49
0.549839
50
311
3.42
0.4
0.245614
0.321637
0.19883
0
0
0
0
0
0
0
0.088561
0.128617
311
14
50
22.214286
0.542435
0
0
0
0
0
0.263666
0.07717
0
0
0
0
0
0
null
null
0
0.090909
null
null
0.818182
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
1
0
0
0
0
0
0
1
0
5
026e4e48bb719c9d739049335b2fbf1eacecb5b7
1,348
py
Python
cohesivenet/api/vns3/__init__.py
cohesive/python-cohesivenet-sdk
5620acfa669ff97c94d9aa04a16facda37d648c1
[ "MIT" ]
null
null
null
cohesivenet/api/vns3/__init__.py
cohesive/python-cohesivenet-sdk
5620acfa669ff97c94d9aa04a16facda37d648c1
[ "MIT" ]
null
null
null
cohesivenet/api/vns3/__init__.py
cohesive/python-cohesivenet-sdk
5620acfa669ff97c94d9aa04a16facda37d648c1
[ "MIT" ]
null
null
null
from __future__ import absolute_import # flake8: noqa # import apis into api package from cohesivenet.api.vns3.bgp_api import BGPApiRouter as BGPApi from cohesivenet.api.vns3.configuration_api import ( ConfigurationApiRouter as ConfigurationApi, ) from cohesivenet.api.vns3.firewall_api import FirewallApiRouter as FirewallApi from cohesivenet.api.vns3.ipsec_api import IPsecApiRouter as IPsecApi from cohesivenet.api.vns3.interfaces_api import InterfacesApiRouter as InterfacesApi from cohesivenet.api.vns3.licensing_api import LicensingApiRouter as LicensingApi from cohesivenet.api.vns3.monitoring_alerting_api import ( MonitoringAlertingApiRouter as MonitoringAlertingApi, ) from cohesivenet.api.vns3.network_edge_plugins_api import ( NetworkEdgePluginsApiRouter as NetworkEdgePluginsApi, ) from cohesivenet.api.vns3.overlay_network_api import ( OverlayNetworkApiRouter as OverlayNetworkApi, ) from cohesivenet.api.vns3.peering_api import PeeringApiRouter as PeeringApi from cohesivenet.api.vns3.routing_api import RoutingApiRouter as RoutingApi from cohesivenet.api.vns3.snapshots_api import SnapshotsApiRouter as SnapshotsApi from cohesivenet.api.vns3.system_administration_api import ( SystemAdministrationApiRouter as SystemAdministrationApi, ) from cohesivenet.api.vns3.access_api import AccessApiRouter as AccessApi
44.933333
84
0.859792
157
1,348
7.229299
0.375796
0.185022
0.222026
0.271366
0
0
0
0
0
0
0
0.012305
0.095697
1,348
29
85
46.482759
0.918786
0.030415
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.6
0
0.6
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
028044ff995e4bbeaa30a0fc202971c6b2e21be4
199
py
Python
test/tests/incremental_tb_bjit.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
1
2020-02-06T14:28:45.000Z
2020-02-06T14:28:45.000Z
test/tests/incremental_tb_bjit.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
test/tests/incremental_tb_bjit.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
1
2020-02-06T14:29:00.000Z
2020-02-06T14:29:00.000Z
# This is the same as incremental_tb_bjit.py but tests the baseline JIT. try: import __pyston__ __pyston__.setOption("REOPT_THRESHOLD_INTERPRETER", 1) except: pass import incremental_tb
22.111111
72
0.773869
28
199
5.035714
0.821429
0.184397
0
0
0
0
0
0
0
0
0
0.006061
0.170854
199
8
73
24.875
0.848485
0.351759
0
0
0
0
0.212598
0.212598
0
0
0
0
0
1
0
true
0.166667
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
1
1
1
0
0
0
0
5
65f9190f870d1ab75bb1eecb2eb177ef83911cc9
251
py
Python
matchzoo/datasets/__init__.py
freedombenLiu/MatchZoo
b1ba96ac8b84e70952f5787f62272ceef8cea106
[ "Apache-2.0" ]
2
2019-10-04T16:51:36.000Z
2021-06-09T04:43:35.000Z
matchzoo/datasets/__init__.py
ThanhChinhBK/MatchZoo
f77403044bca4ff0a84738921180724a54fd42f9
[ "Apache-2.0" ]
null
null
null
matchzoo/datasets/__init__.py
ThanhChinhBK/MatchZoo
f77403044bca4ff0a84738921180724a54fd42f9
[ "Apache-2.0" ]
null
null
null
from . import toy from . import wiki_qa from . import embeddings from . import snli from pathlib import Path def list_available(): return [p.name for p in Path(__file__).parent.iterdir() if p.is_dir() and not p.name.startswith('_')]
22.818182
59
0.697211
39
251
4.282051
0.666667
0.239521
0
0
0
0
0
0
0
0
0
0
0.203187
251
10
60
25.1
0.835
0
0
0
0
0
0.003984
0
0
0
0
0
0
1
0.125
true
0
0.625
0.125
0.875
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
1
1
0
0
5
5a7154886bc4d2da8389e9b8dd05cfd7c9b9dc81
90
py
Python
GeneticLib/chromosome.py
GrimRanger/GeneticAlgorithm
93fa476e82d610f8622276526baa269303a058e0
[ "MIT" ]
null
null
null
GeneticLib/chromosome.py
GrimRanger/GeneticAlgorithm
93fa476e82d610f8622276526baa269303a058e0
[ "MIT" ]
null
null
null
GeneticLib/chromosome.py
GrimRanger/GeneticAlgorithm
93fa476e82d610f8622276526baa269303a058e0
[ "MIT" ]
null
null
null
class Chromosome: def __init__(self, gene): self.gene = gene
12.857143
29
0.511111
9
90
4.666667
0.666667
0.380952
0
0
0
0
0
0
0
0
0
0
0.411111
90
6
30
15
0.792453
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.666667
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
1
0
0
0
0
1
0
0
5
5a747a349f523ea28803631069823f0ade19d297
43
py
Python
backend/cloud-run-api/app/config/annotation_config.py
tuxedocat/fast-annotation-tool
2e28e81bf5b383ac033eeae847921d68ed302556
[ "Apache-2.0" ]
24
2021-06-08T06:20:55.000Z
2022-03-24T07:27:08.000Z
backend/cloud-run-api/app/config/annotation_config.py
shunyooo/fast-annotation-tool
0f7b23eb9e664daf33c6ada366ea550996d103b3
[ "Apache-2.0" ]
null
null
null
backend/cloud-run-api/app/config/annotation_config.py
shunyooo/fast-annotation-tool
0f7b23eb9e664daf33c6ada366ea550996d103b3
[ "Apache-2.0" ]
6
2021-06-08T02:39:31.000Z
2022-01-08T15:10:01.000Z
import os APP_URL = os.environ["APP_URL"]
10.75
31
0.72093
8
43
3.625
0.625
0.413793
0
0
0
0
0
0
0
0
0
0
0.139535
43
3
32
14.333333
0.783784
0
0
0
0
0
0.162791
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
1
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
1
0
0
0
0
5
5a7e6f56515e9f69f7584048a092da70c58a073b
7,407
py
Python
lib/models/backbones/densenet/densenet_backbone.py
donnyyou/openseg.pytorch
ff55a5d975b7cd806e01ba539db9207d45b0e221
[ "Apache-2.0" ]
5
2020-04-17T01:56:52.000Z
2021-03-04T11:15:09.000Z
lib/models/backbones/densenet/densenet_backbone.py
donnyyou/openseg.pytorch
ff55a5d975b7cd806e01ba539db9207d45b0e221
[ "Apache-2.0" ]
null
null
null
lib/models/backbones/densenet/densenet_backbone.py
donnyyou/openseg.pytorch
ff55a5d975b7cd806e01ba539db9207d45b0e221
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- # Author: Donny You(youansheng@gmail.com) from __future__ import absolute_import from __future__ import division from __future__ import print_function import torch.nn as nn from lib.models.backbones.densenet.densenet_models import DenseNetModels class NormalDensenetBackbone(nn.Module): def __init__(self, orig_densenet): super(NormalDensenetBackbone, self).__init__() self.num_features = orig_densenet.num_features # take pretrained resnet, except AvgPool and FC self.conv0 =orig_densenet.features.conv0 self.norm0 =orig_densenet.features.norm0 self.relu0 = orig_densenet.features.relu0 self.pool0 = orig_densenet.features.pool0 self.denseblock1 = orig_densenet.features.denseblock1 self.transition1 = orig_densenet.features.transition1 self.transition1_pool = orig_densenet.features.transition1_pool self.denseblock2 = orig_densenet.features.denseblock2 self.transition2 = orig_densenet.features.transition2 self.transition2_pool = orig_densenet.features.transition2_pool self.denseblock3 = orig_densenet.features.denseblock3 self.transition3 = orig_densenet.features.transition3 self.transition3_pool = orig_densenet.features.transition3_pool self.denseblock4 = orig_densenet.features.denseblock4 self.norm5 = orig_densenet.features.norm5 def get_num_features(self): return self.num_features def forward(self, x): tuple_features = list() x = self.conv0(x) x = self.norm0(x) x = self.relu0(x) x = self.pool0(x) x = self.denseblock1(x) x = self.transition1(x) tuple_features.append(x) x = self.transition1_pool(x) x = self.denseblock2(x) x = self.transition2(x) tuple_features.append(x) x = self.transition2_pool(x) x = self.denseblock3(x) x = self.transition3(x) tuple_features.append(x) x = self.transition3_pool(x) x = self.denseblock4(x) x = self.norm5(x) tuple_features.append(x) return tuple_features class DilatedDensenetBackbone(nn.Module): def __init__(self, orig_densenet, dilate_scale=8): super(DilatedDensenetBackbone, self).__init__() self.num_features = orig_densenet.num_features self.dilate_scale = dilate_scale from functools import partial if dilate_scale == 8: orig_densenet.features.denseblock3.apply(partial(self._conv_dilate, dilate=2)) orig_densenet.features.denseblock4.apply(partial(self._conv_dilate, dilate=4)) elif dilate_scale == 16: orig_densenet.features.denseblock4.apply(partial(self._conv_dilate, dilate=2)) # Take pretrained resnet, except AvgPool and FC self.conv0 = orig_densenet.features.conv0 self.norm0 = orig_densenet.features.norm0 self.relu0 = orig_densenet.features.relu0 self.pool0 = orig_densenet.features.pool0 self.denseblock1 = orig_densenet.features.denseblock1 self.transition1 = orig_densenet.features.transition1 self.transition1_pool = orig_densenet.features.transition1_pool self.denseblock2 = orig_densenet.features.denseblock2 self.transition2 = orig_densenet.features.transition2 self.transition2_pool = orig_densenet.features.transition2_pool self.denseblock3 = orig_densenet.features.denseblock3 self.transition3 = orig_densenet.features.transition3 self.transition3_pool = orig_densenet.features.transition3_pool self.denseblock4 = orig_densenet.features.denseblock4 self.norm5 = orig_densenet.features.norm5 def _conv_dilate(self, m, dilate): classname = m.__class__.__name__ if classname.find('Conv') != -1: # the convolution with stride if m.kernel_size == (3, 3): m.dilation = (dilate, dilate) m.padding = (dilate, dilate) def get_num_features(self): return self.num_features def forward(self, x): tuple_features = list() x = self.conv0(x) x = self.norm0(x) x = self.relu0(x) x = self.pool0(x) x = self.denseblock1(x) x = self.transition1(x) tuple_features.append(x) x = self.transition1_pool(x) x = self.denseblock2(x) x = self.transition2(x) tuple_features.append(x) if self.dilate_scale > 8: x = self.transition2_pool(x) x = self.denseblock3(x) x = self.transition3(x) tuple_features.append(x) if self.dilate_scale > 16: x = self.transition3_pool(x) x = self.denseblock4(x) x = self.norm5(x) tuple_features.append(x) return tuple_features class DenseNetBackbone(object): def __init__(self, configer): self.configer = configer self.densenet_models = DenseNetModels(self.configer) def __call__(self): arch = self.configer.get('network', 'backbone') if arch == 'densenet121': orig_densenet = self.densenet_models.densenet121() arch_net = NormalDensenetBackbone(orig_densenet) elif arch == 'densenet121_dilated8': orig_densenet = self.densenet_models.densenet121() arch_net = DilatedDensenetBackbone(orig_densenet, dilate_scale=8) elif arch == 'densenet121_dilated16': orig_densenet = self.densenet_models.densenet121() arch_net = DilatedDensenetBackbone(orig_densenet, dilate_scale=16) elif arch == 'densenet169': orig_densenet = self.densenet_models.densenet169() arch_net = NormalDensenetBackbone(orig_densenet) elif arch == 'densenet169_dilated8': orig_densenet = self.densenet_models.densenet169() arch_net = DilatedDensenetBackbone(orig_densenet, dilate_scale=8) elif arch == 'densenet169_dilated16': orig_densenet = self.densenet_models.densenet169() arch_net = DilatedDensenetBackbone(orig_densenet, dilate_scale=16) elif arch == 'densenet201': orig_densenet = self.densenet_models.densenet201() arch_net = NormalDensenetBackbone(orig_densenet) elif arch == 'densenet201_dilated8': orig_densenet = self.densenet_models.densenet201() arch_net = DilatedDensenetBackbone(orig_densenet, dilate_scale=8) elif arch == 'densenet201_dilated16': orig_densenet = self.densenet_models.densenet201() arch_net = DilatedDensenetBackbone(orig_densenet, dilate_scale=16) elif arch == 'densenet161': orig_densenet = self.densenet_models.densenet161() arch_net = NormalDensenetBackbone(orig_densenet) elif arch == 'densenet161_dilated8': orig_densenet = self.densenet_models.densenet161() arch_net = DilatedDensenetBackbone(orig_densenet, dilate_scale=8) elif arch == 'densenet161_dilated16': orig_densenet = self.densenet_models.densenet161() arch_net = DilatedDensenetBackbone(orig_densenet, dilate_scale=16) else: raise Exception('Architecture undefined!') return arch_net
34.774648
90
0.668962
812
7,407
5.848522
0.135468
0.154138
0.138977
0.060644
0.805433
0.802906
0.788587
0.732996
0.692146
0.665614
0
0.036315
0.245308
7,407
213
91
34.774648
0.813238
0.027136
0
0.688742
0
0
0.034717
0.011665
0
0
0
0
0
1
0.059603
false
0
0.039735
0.013245
0.152318
0.006623
0
0
0
null
0
0
0
1
1
1
1
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
5
5a887f5dbeb9bcc8fc8c4da9669454334154d567
724
py
Python
rbc/stdlib/array_api.py
tupui/rbc
630805b6a32a1e53883dd8502e9a0679c9923b0b
[ "BSD-3-Clause" ]
1
2019-02-15T14:14:58.000Z
2019-02-15T14:14:58.000Z
rbc/stdlib/array_api.py
tupui/rbc
630805b6a32a1e53883dd8502e9a0679c9923b0b
[ "BSD-3-Clause" ]
null
null
null
rbc/stdlib/array_api.py
tupui/rbc
630805b6a32a1e53883dd8502e9a0679c9923b0b
[ "BSD-3-Clause" ]
null
null
null
""" Array API for rbc. """ from .constants import * # noqa: F401, F403 from .creation_functions import * # noqa: F401, F403 from .datatypes import * # noqa: F401, F403 from .data_type_functions import * # noqa: F401, F403 from .elementwise_functions import * # noqa: F401, F403 from .linear_algebra_functions import * # noqa: F401, F403 from .manipulation_functions import * # noqa: F401, F403 from .searching_functions import * # noqa: F401, F403 from .set_functions import * # noqa: F401, F403 from .sorting_functions import * # noqa: F401, F403 from .statistical_functions import * # noqa: F401, F403 from .utility_functions import * # noqa: F401, F403 __all__ = [s for s in dir() if not s.startswith("_")]
38.105263
59
0.719613
98
724
5.142857
0.316327
0.238095
0.333333
0.428571
0.694444
0.553571
0
0
0
0
0
0.120401
0.174033
724
18
60
40.222222
0.722408
0.308011
0
0
0
0
0.002075
0
0
0
0
0
0
1
0
false
0
0.923077
0
0.923077
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
1
0
1
0
0
5
ce45c71f89b24b8066e13f0aa663053e619f7b25
87
py
Python
merra-2/fetch_helpers.py
meiaalsup/merra-2
2c1164ba3d0ebc969bdfa664575249a6b79d7005
[ "MIT" ]
null
null
null
merra-2/fetch_helpers.py
meiaalsup/merra-2
2c1164ba3d0ebc969bdfa664575249a6b79d7005
[ "MIT" ]
null
null
null
merra-2/fetch_helpers.py
meiaalsup/merra-2
2c1164ba3d0ebc969bdfa664575249a6b79d7005
[ "MIT" ]
null
null
null
def lon_lat_to_coords(lat, lon): return (int((lat+90.0)/.5), int((lon+180)/.625))
21.75
52
0.62069
17
87
3
0.705882
0
0
0
0
0
0
0
0
0
0
0.131579
0.126437
87
3
53
29
0.539474
0
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0
0.5
1
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
1
0
0
0
1
1
0
0
5
ce6e99731fcd16d4cf60ff3d5ed25e2253c3e715
130
py
Python
wikipendium/stats/urls.py
stianjensen/wikipendium.no
de07b6cdc15daf350cbf2c1259e20879bf00dc95
[ "Apache-2.0" ]
19
2015-05-18T14:20:53.000Z
2021-04-04T22:46:50.000Z
wikipendium/stats/urls.py
stianjensen/wikipendium.no
de07b6cdc15daf350cbf2c1259e20879bf00dc95
[ "Apache-2.0" ]
132
2015-01-10T14:18:21.000Z
2020-06-15T21:12:29.000Z
wikipendium/stats/urls.py
wikipendium/wikipendium.no
de07b6cdc15daf350cbf2c1259e20879bf00dc95
[ "Apache-2.0" ]
6
2015-05-25T20:33:28.000Z
2020-10-15T17:16:54.000Z
from django.conf.urls import url import wikipendium.stats.views urlpatterns = [ url(r'^$', wikipendium.stats.views.index), ]
18.571429
46
0.730769
17
130
5.588235
0.705882
0.336842
0.442105
0
0
0
0
0
0
0
0
0
0.130769
130
6
47
21.666667
0.840708
0
0
0
0
0
0.015385
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
1
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
1
0
0
0
0
5
ce810399d4ba8727c2204a2a1dbb770a5870fd14
63
py
Python
beam_utils/__init__.py
disdi/beam_utils
c9c938de4773b91586996664034ca82ae4038e69
[ "Apache-2.0" ]
1
2019-07-17T15:00:47.000Z
2019-07-17T15:00:47.000Z
beam_utils/__init__.py
disdi/beam_utils
c9c938de4773b91586996664034ca82ae4038e69
[ "Apache-2.0" ]
null
null
null
beam_utils/__init__.py
disdi/beam_utils
c9c938de4773b91586996664034ca82ae4038e69
[ "Apache-2.0" ]
null
null
null
from coders import NoopCoder from sources import CsvFileSource
21
33
0.873016
8
63
6.875
0.75
0
0
0
0
0
0
0
0
0
0
0
0.126984
63
2
34
31.5
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
0
5
ce93a9b4e346475845fbe5ab44565c9ab187b209
128
py
Python
14-files/readline_from_file.py
johnehunt/PythonIntroDS
7e9d5c5494191cd68bc71e140df5fb30290a8da6
[ "Apache-2.0" ]
1
2021-09-20T11:22:47.000Z
2021-09-20T11:22:47.000Z
14-files/readline_from_file.py
johnehunt/PythonIntroDS
7e9d5c5494191cd68bc71e140df5fb30290a8da6
[ "Apache-2.0" ]
null
null
null
14-files/readline_from_file.py
johnehunt/PythonIntroDS
7e9d5c5494191cd68bc71e140df5fb30290a8da6
[ "Apache-2.0" ]
null
null
null
# Read one line of data file = open('myfile.txt', 'r') line_of_data = file.readline() print(line_of_data, end='') file.close()
18.285714
30
0.6875
22
128
3.818182
0.636364
0.214286
0.357143
0.333333
0
0
0
0
0
0
0
0
0.132813
128
6
31
21.333333
0.756757
0.164063
0
0
0
0
0.104762
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
1
0
0
null
1
1
1
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
5
cec2ca0ca8fb872cb7279cb5d59e62c76d037598
9,447
py
Python
patients/migrations/0009_auto_20180302_0209.py
josdavidmo/clinical_records
f344aa3e989731cfae9e921300bd0595e5a2e207
[ "Apache-2.0" ]
null
null
null
patients/migrations/0009_auto_20180302_0209.py
josdavidmo/clinical_records
f344aa3e989731cfae9e921300bd0595e5a2e207
[ "Apache-2.0" ]
7
2021-02-08T20:25:23.000Z
2022-03-11T23:31:03.000Z
patients/migrations/0009_auto_20180302_0209.py
josdavidmo/clinical_records
f344aa3e989731cfae9e921300bd0595e5a2e207
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.10 on 2018-03-02 02:09 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('patients', '0008_auto_20180301_0331'), ] operations = [ migrations.AlterField( model_name='clinicalhistory', name='allergic', field=models.TextField(blank=True, null=True, verbose_name='Al\xe9rgicos'), ), migrations.AlterField( model_name='clinicalhistory', name='immunological', field=models.TextField(blank=True, null=True, verbose_name='Inmunol\xf3gicos'), ), migrations.AlterField( model_name='clinicalhistory', name='liqueur', field=models.TextField(blank=True, null=True, verbose_name='Licor'), ), migrations.AlterField( model_name='clinicalhistory', name='obstetric', field=models.TextField(blank=True, null=True, verbose_name='Obst\xe9tricos'), ), migrations.AlterField( model_name='clinicalhistory', name='pathological', field=models.TextField(blank=True, null=True, verbose_name='Patol\xf3gicos'), ), migrations.AlterField( model_name='clinicalhistory', name='permanent_medication', field=models.TextField(blank=True, null=True, verbose_name='Medicamentos permanentes'), ), migrations.AlterField( model_name='clinicalhistory', name='poisoning', field=models.TextField(blank=True, null=True, verbose_name='Intoxicaciones'), ), migrations.AlterField( model_name='clinicalhistory', name='psychoactive', field=models.TextField(blank=True, null=True, verbose_name='Psicoactivos'), ), migrations.AlterField( model_name='clinicalhistory', name='relatives', field=models.TextField(blank=True, null=True, verbose_name='Familiares'), ), migrations.AlterField( model_name='clinicalhistory', name='smoking', field=models.TextField(blank=True, null=True, verbose_name='Tabaquismo'), ), migrations.AlterField( model_name='clinicalhistory', name='surgical', field=models.TextField(blank=True, null=True, verbose_name='Quir\xfargicos'), ), migrations.AlterField( model_name='clinicalhistory', name='transfusions', field=models.TextField(blank=True, null=True, verbose_name='Transfusiones'), ), migrations.AlterField( model_name='clinicalhistory', name='traumatic', field=models.TextField(blank=True, null=True, verbose_name='Traum\xe1ticos'), ), migrations.AlterField( model_name='medicalhistory', name='companion', field=models.CharField(blank=True, max_length=50, null=True, verbose_name='Acompa\xf1ante'), ), migrations.AlterField( model_name='medicalhistory', name='created_at', field=models.DateTimeField(db_index=True, verbose_name='Fecha y hora'), ), migrations.AlterField( model_name='medicalhistory', name='current_illness', field=models.TextField(blank=True, null=True, verbose_name='Enfermedad actual'), ), migrations.AlterField( model_name='medicalhistory', name='reason_consultation', field=models.TextField(verbose_name='Raz\xf3n de consulta'), ), migrations.AlterField( model_name='medicalhistory', name='referred_by', field=models.CharField(blank=True, max_length=50, null=True, verbose_name='Referido por'), ), migrations.AlterField( model_name='medicalhistory', name='remission', field=models.TextField(blank=True, null=True, verbose_name='Remisi\xf3n'), ), migrations.AlterField( model_name='physicalexam', name='cardiovascular', field=models.TextField(blank=True, null=True, verbose_name='Cardiovascular'), ), migrations.AlterField( model_name='physicalexam', name='chest', field=models.TextField(blank=True, null=True, verbose_name='T\xf3rax'), ), migrations.AlterField( model_name='physicalexam', name='digestive', field=models.TextField(blank=True, null=True, verbose_name='Digestivo'), ), migrations.AlterField( model_name='physicalexam', name='genitourinary', field=models.TextField(blank=True, null=True, verbose_name='Genito-urinario'), ), migrations.AlterField( model_name='physicalexam', name='head', field=models.TextField(blank=True, null=True, verbose_name='Cabeza'), ), migrations.AlterField( model_name='physicalexam', name='mammary_gland', field=models.TextField(blank=True, null=True, verbose_name='Mamas'), ), migrations.AlterField( model_name='physicalexam', name='mental_sphere', field=models.TextField(blank=True, null=True, verbose_name='Esfera mental'), ), migrations.AlterField( model_name='physicalexam', name='neck_thyroid', field=models.TextField(blank=True, null=True, verbose_name='Cuello - Tiroides'), ), migrations.AlterField( model_name='physicalexam', name='orl', field=models.TextField(blank=True, null=True, verbose_name='O.R.L'), ), migrations.AlterField( model_name='physicalexam', name='osteomuscular', field=models.TextField(blank=True, null=True, verbose_name='Osteomuscular'), ), migrations.AlterField( model_name='physicalexam', name='respiratory', field=models.TextField(blank=True, null=True, verbose_name='Respiratorio'), ), migrations.AlterField( model_name='physicalexam', name='senses_organs', field=models.TextField(blank=True, null=True, verbose_name='Organos de los sentidos'), ), migrations.AlterField( model_name='physicalexam', name='skin_faneras', field=models.TextField(blank=True, null=True, verbose_name='Piel y Faneras'), ), migrations.AlterField( model_name='physicalexam', name='snc_peripheral', field=models.TextField(blank=True, null=True, verbose_name='SNC y Periferico'), ), migrations.AlterField( model_name='physicalexam', name='weight', field=models.TextField(blank=True, null=True, verbose_name='Peso'), ), migrations.AlterField( model_name='systemsreview', name='cardiovascular', field=models.TextField(blank=True, null=True, verbose_name='Cardio-vascular'), ), migrations.AlterField( model_name='systemsreview', name='digestive', field=models.TextField(blank=True, null=True, verbose_name='Digestivo'), ), migrations.AlterField( model_name='systemsreview', name='endocrine', field=models.TextField(blank=True, null=True, verbose_name='Endocrino'), ), migrations.AlterField( model_name='systemsreview', name='genitourinary', field=models.TextField(blank=True, null=True, verbose_name='Genito-urinario'), ), migrations.AlterField( model_name='systemsreview', name='hematic_lymphatic', field=models.TextField(blank=True, null=True, verbose_name='Hem\xe1tico y Linf\xe1tico'), ), migrations.AlterField( model_name='systemsreview', name='locomotor', field=models.TextField(blank=True, null=True, verbose_name='Locomotor'), ), migrations.AlterField( model_name='systemsreview', name='orl', field=models.TextField(blank=True, null=True, verbose_name='O.R.L'), ), migrations.AlterField( model_name='systemsreview', name='respiratory', field=models.TextField(blank=True, null=True, verbose_name='Respiratorio'), ), migrations.AlterField( model_name='systemsreview', name='senses_organs', field=models.TextField(blank=True, null=True, verbose_name='Organos de los Sentidos'), ), migrations.AlterField( model_name='systemsreview', name='skin_faneras', field=models.TextField(blank=True, null=True, verbose_name='Piel y Faneras'), ), migrations.AlterField( model_name='systemsreview', name='snc_peripheral', field=models.TextField(blank=True, null=True, verbose_name='SNC y Periferico'), ), ]
39.19917
104
0.589711
862
9,447
6.328306
0.182135
0.164986
0.206233
0.23923
0.830247
0.830247
0.540788
0.520257
0.520257
0.300275
0
0.007309
0.290357
9,447
240
105
39.3625
0.806384
0.007304
0
0.699571
1
0
0.181867
0.002453
0
0
0
0
0
1
0
false
0
0.008584
0
0.021459
0
0
0
0
null
0
1
1
1
1
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
5
0c866d067bca606e5fcc4ab5da42ef355c78b021
34,734
py
Python
rule_sets_similarity.py
brsynth/RetroPathRL
80c6a70d94e58227839546e308c12dea43a08d3b
[ "MIT" ]
21
2019-11-04T15:16:46.000Z
2022-02-28T09:46:21.000Z
rule_sets_similarity.py
brsynth/RetroPathRL
80c6a70d94e58227839546e308c12dea43a08d3b
[ "MIT" ]
10
2020-01-13T08:18:29.000Z
2022-03-07T12:48:03.000Z
rule_sets_similarity.py
brsynth/RetroPathRL
80c6a70d94e58227839546e308c12dea43a08d3b
[ "MIT" ]
10
2020-01-29T11:46:58.000Z
2022-03-22T03:00:32.000Z
""" Contains the rules examples that will be used throughout the tests. The aim is to """ import logging import csv import pickle import os from rdkit import Chem, RDLogger from rdkit.Chem import AllChem # To standardise compounds before calculating the said ECFPs from utilities.reactor.Core import RuleBurnerCore from utilities.reactor.Utils import standardize_chemical, standardize_results, handle_results, ChemConversionError from config import * all_ecfps = {} rule_10_subset_address = "{}/tests/data/rules_r10_subset.tsv".format(os.path.dirname(os.path.abspath(__file__))) applicable_rules_10_dict_sim = {} with open(rule_10_subset_address, "r") as csv_file: fieldnames = ["Rule_ID", "Reaction_ID", "Diameter", "Direction", "Rule_order", "Rule_SMARTS", "Substrate_ID", "Substrate_SMILES", "Product_IDs", "Product_SMILES", "Rule_SMILES", "Rule_SMARTS_lite"] csv_reader = csv.DictReader(csv_file, delimiter = '\t', fieldnames = fieldnames) next(csv_reader) # skip first line for element in csv_reader: applicable_rules_10_dict_sim[element["Rule_ID"]] = {"Rule_SMARTS": element["Rule_SMARTS"], "biological_score": 1, "EC_number": ["EC: None"], "Rule_SMILES": element["Rule_SMILES"]} # Obtaining substrate ECFP: if element["Substrate_ID"] in all_ecfps.keys(): ECFP = all_ecfps[element["Substrate_ID"]] else: rd_mol = Chem.MolFromSmiles(element["Substrate_SMILES"], sanitize=False) # Important: Sanitize = False rd_mol = standardize_chemical(rd_mol, add_hs=True, rm_stereo=True) ECFP = AllChem.GetMorganFingerprintAsBitVect(rd_mol, radius = 2, nBits=1024, useFeatures = False, useChirality = False) all_ecfps[element["Substrate_ID"]] = ECFP applicable_rules_10_dict_sim[element["Rule_ID"]]["substrate_ECFP"] = [ECFP] product_names = element["Product_IDs"].split(".") product_smiles = element["Product_SMILES"].split(".") applicable_rules_10_dict_sim[element["Rule_ID"]]["products_ECFP"] = [] for i in range(len(product_smiles)): if product_names[i] in all_ecfps.keys(): ECFP = all_ecfps[product_names[i]] else: rd_mol = Chem.MolFromSmiles(product_smiles[i], sanitize=False) # Important: Sanitize = False rd_mol = standardize_chemical(rd_mol, add_hs=True, rm_stereo=True) ECFP = AllChem.GetMorganFingerprintAsBitVect(rd_mol, radius = 2, nBits=1024, useFeatures = False, useChirality = False) all_ecfps[product_names[i]] = ECFP applicable_rules_10_dict_sim[element["Rule_ID"]]["products_ECFP"].append(ECFP) applicable_rules_10_dict_sim[element["Rule_ID"]]["products_ECFP"] = [applicable_rules_10_dict_sim[element["Rule_ID"]]["products_ECFP"]] rule_mixed_subset_address = "{}/tests/data/rules_mixed_subset.tsv".format(os.path.dirname(os.path.abspath(__file__))) applicable_rules_mixed_dict_sim = {} with open(rule_mixed_subset_address, "r") as csv_file: fieldnames = ["Rule_ID", "Reaction_ID", "Diameter", "Direction", "Rule_order", "Rule_SMARTS", "Substrate_ID", "Substrate_SMILES", "Product_IDs", "Product_SMILES", "Rule_SMILES", "Rule_SMARTS_lite"] csv_reader = csv.DictReader(csv_file, delimiter = '\t', fieldnames = fieldnames) next(csv_reader) # skip first line for element in csv_reader: applicable_rules_mixed_dict_sim[element["Rule_ID"]] = {"Rule_SMARTS": element["Rule_SMARTS"], "biological_score": 1, "EC_number": ["EC: None"], "Rule_SMILES": element["Rule_SMILES"]} if element["Substrate_ID"] in all_ecfps.keys(): ECFP = all_ecfps[element["Substrate_ID"]] else: rd_mol = Chem.MolFromSmiles(element["Substrate_SMILES"], sanitize=False) # Important: Sanitize = False rd_mol = standardize_chemical(rd_mol, add_hs=True, rm_stereo=True) ECFP = AllChem.GetMorganFingerprintAsBitVect(rd_mol, radius = 2, nBits=1024, useFeatures = False, useChirality = False) all_ecfps[element["Substrate_ID"]] = ECFP applicable_rules_mixed_dict_sim[element["Rule_ID"]]["substrate_ECFP"] = [ECFP] product_names = element["Product_IDs"].split(".") product_smiles = element["Product_SMILES"].split(".") applicable_rules_mixed_dict_sim[element["Rule_ID"]]["products_ECFP"] = [] for i in range(len(product_smiles)): if product_names[i] in all_ecfps.keys(): ECFP = all_ecfps[product_names[i]] else: rd_mol = Chem.MolFromSmiles(product_smiles[i], sanitize=False) # Important: Sanitize = False rd_mol = standardize_chemical(rd_mol, add_hs=True, rm_stereo=True) ECFP = AllChem.GetMorganFingerprintAsBitVect(rd_mol, radius = 2, nBits=1024, useFeatures = False, useChirality = False) all_ecfps[product_names[i]] = ECFP applicable_rules_mixed_dict_sim[element["Rule_ID"]]["products_ECFP"].append(ECFP) applicable_rules_mixed_dict_sim[element["Rule_ID"]]["products_ECFP"] = [applicable_rules_mixed_dict_sim[element["Rule_ID"]]["products_ECFP"]] folder_for_data = "{}/{}".format(data_path, "rules") with open("{}/{}.pkl".format(folder_for_data, "full_rules_forward_H"), "rb") as pickle_handler: full_rules_forward_H = pickle.load(pickle_handler) with open("{}/{}.pkl".format(folder_for_data, "full_rules_retro_H"), "rb") as pickle_handler: full_rules_retro_H = pickle.load(pickle_handler) with open("{}/{}.pkl".format(folder_for_data, "full_rules_forward_no_H"), "rb") as pickle_handler: full_rules_forward_no_H = pickle.load(pickle_handler) with open("{}/{}.pkl".format(folder_for_data, "full_rules_retro_no_H"), "rb") as pickle_handler: full_rules_retro_no_H = pickle.load(pickle_handler) # Information below is used when small is activated. TPA_keys = [ 'RR-01-ff15c6f282fb-10-F_10', 'RR-01-7467598facd5-10-F_10', 'RR-01-eced43368870-10-F_10', 'RR-01-4be04021e193-10-F_10', 'RR-01-855e527e8dac-10-F_10', 'RR-01-be6c9619b09d-10-F_10', 'RR-01-6d06e27aef2e-10-F_10', 'RR-01-ba2eb2715516-10-F_10', 'RR-01-3791e719f852-10-F_10', 'RR-01-c7ebbe91808e-10-F_10', 'RR-01-2ebdcd7010bd-10-F_10', 'RR-01-f765514b772f-10-F_10', 'RR-01-3545d6ed7403-10-F_10', 'RR-01-2c7b5bc4bd50-10-F_10', 'RR-01-56602d66630b-10-F_10', 'RR-01-0b9242207244-10-F_10', 'RR-01-6ae5e8c91fd8-10-F_10', 'RR-01-73e66a22ce11-10-F_10', 'RR-01-a397b384391a-10-F_10', 'RR-01-bdfadc58b5a9-10-F_10', 'RR-01-398ea892cfda-10-F_10', 'RR-01-d55dd578e73e-10-F_10', 'RR-01-4c79f297821e-10-F_10', 'RR-01-ec985dcd998f-10-F_10', 'RR-01-f88421e31b7f-10-F_10', 'RR-01-c05e8a6eaa8e-10-F_10', 'RR-01-439c65246142-10-F_10', 'RR-01-915d8ffeafc7-10-F_10', 'RR-01-1312d40b0eca-10-F_10', 'RR-01-db16fa6490be-10-F_10', 'RR-01-211fa91ad9f6-10-F_10', 'RR-01-d3a021cc85d1-10-F_10', 'RR-01-f348f5dd6f53-10-F_10', 'RR-01-6402887eee8c-12-F_12', 'RR-01-1b0e63da9155-10-F_10', 'RR-01-eef619ff8017-10-F_10'] TPA_16_keys = [ 'RR-02-0b92422072445abd-16-F', 'RR-02-a397b384391a4069-16-F', 'RR-02-ff15c6f282fb8c05-10-F', 'RR-02-7467598facd5dc87-10-F', 'RR-02-eced43368870d3d5-10-F', 'RR-02-4be04021e1933793-10-F', 'RR-02-855e527e8dacdf66-10-F', 'RR-02-be6c9619b09df557-16-F', 'RR-02-6d06e27aef2ecfca-10-F', 'RR-02-ba2eb2715516342a-10-F', 'RR-02-2ebdcd7010bd7d71-10-F', 'RR-02-3545d6ed74034d56-16-F', 'RR-02-2c7b5bc4bd503c71-16-F', 'RR-02-56602d66630bcfc3-16-F', 'RR-02-6ae5e8c91fd8d8af-16-F', 'RR-02-73e66a22ce113ef0-16-F', 'RR-02-bdfadc58b5a9d059-16-F', 'RR-02-398ea892cfda59a1-16-F', 'RR-02-d55dd578e73e0d77-16-F', 'RR-02-4c79f297821e39c8-16-F', 'RR-02-ec985dcd998f1ad5-16-F', 'RR-02-f88421e31b7f840d-10-F', 'RR-02-c05e8a6eaa8e5d7b-10-F', 'RR-02-439c65246142bb8d-16-F', 'RR-02-eef619ff80171bb9-10-F', 'RR-02-1b0e63da91559964-10-F', 'RR-02-915d8ffeafc759e3-16-F', 'RR-02-1312d40b0eca0500-10-F', 'RR-02-db16fa6490be4edc-16-F', 'RR-02-211fa91ad9f6118e-16-F', 'RR-02-d3a021cc85d1df38-10-F', 'RR-02-f348f5dd6f534894-10-F', 'RR-02-6402887eee8ccf7f-12-F' ] TPA_keys_archive = ['MNXR10030_MNXM1095', 'MNXR11026_MNXM217', 'MNXR14800_MNXM1095', 'MNXR14815_MNXM217', 'MNXR14815_MNXM26', 'MNXR15002_MNXM1403', 'MNXR15002_MNXM438', 'MNXR17596_MNXM217', 'MNXR17596_MNXM60', 'MNXR17596_MNXM2734', 'MNXR7145_MNXM438', 'MNXR7162_MNXM29', 'MNXR7162_MNXM371', 'MNXR7162_MNXM4645', 'MNXR8092_MNXM1095', 'MNXR8092_MNXM987', 'MNXR8092_MNXM3766', 'MNXR8092_MNXM438', 'MNXR81819_MNXM1132', 'MNXR81819_MNXM240', 'MNXR81819_MNXM92', 'MNXR84236_MNXM217', 'MNXR84236_MNXM92', 'MNXR84236_MNXM240', 'MNXR87313_MNXM1095', 'MNXR87313_MNXM210', 'MNXR93560_MNXM210', 'MNXR93560_MNXM4645', 'MNXR9766_MNXM217', 'MNXR4531_MNXM3500', 'MNXR242_MNXM4077', 'MNXR16010_MNXM3331'] violacein_keys = [ 'RR-01-73b9e2dc9ddf-12-F_12', 'RR-01-40f5dd9f4609-12-F_12', 'RR-01-3ab86ef33d83-12-F_12', 'RR-01-3d2f047d8c5d-12-F_12', 'RR-01-6cd1048f02ac-12-F_12', 'RR-01-79b5cb776128-12-F_12', 'RR-01-ddd8913a0977-12-F_12', 'RR-01-c8f4eb4b319f-12-F_12', 'RR-01-f46c2cc731e3-12-F_12', 'RR-01-1dacab2272d6-12-F_12', 'RR-01-96b3271dca32-12-F_12', 'RR-01-dba62271635d-12-F_12', 'RR-01-6f464e721366-12-F_12', 'RR-01-22668a073a24-12-F_12', 'RR-01-7bf8c911187c-12-F_12', 'RR-01-eb021cb9b45f-12-F_12', 'RR-01-ea0941b7e233-12-F_12', 'RR-01-b8a979b1e0af-12-F_12', 'RR-01-b416c220e769-12-F_12', 'RR-01-b761dec4bc0b-12-F_12'] violacein_16_keys = [ 'RR-02-73b9e2dc9ddf8783-12-F', 'RR-02-40f5dd9f46097fca-12-F', 'RR-02-ddd8913a09771dc1-16-F', 'RR-02-c8f4eb4b319f1271-16-F', 'RR-02-f46c2cc731e3f3e6-12-F', 'RR-02-1dacab2272d62122-12-F', 'RR-02-96b3271dca322f14-12-F', 'RR-02-dba62271635df6d8-12-F', 'RR-02-6f464e721366959e-16-F', 'RR-02-22668a073a248f56-16-F', 'RR-02-7bf8c911187cfdb8-16-F', 'RR-02-eb021cb9b45f1c77-16-F', 'RR-02-ea0941b7e2330bb7-12-F', 'RR-02-b8a979b1e0aff9db-12-F', 'RR-02-b416c220e7694280-16-F', 'RR-02-b761dec4bc0b6d69-16-F', 'RR-02-efb2ae8a1e477ce7-02-F' ] violacein_keys_archive = ['MNXR2613_MNXM1378', 'MNXR62938_MNXM97338', 'MNXR62939_MNXM97621', 'MNXR62940_MNXM88916', 'MNXR62941_MNXM97503', 'MNXR62942_MNXM98206', 'MNXR62943_MNXM98911', 'MNXR62944_MNXM98919', 'MNXR76570_MNXM10640', 'MNXR85789_MNXM316', 'MNXR85789_MNXM61', 'MNXR85789_MNXM7216', 'MNXR87814_MNXM10640', 'MNXR87814_MNXM97268'] styrene_keys = [ 'RR-01-3545d6ed7403-16-F_16', 'RR-01-2c7b5bc4bd50-16-F_16', 'RR-01-90b72f2f7271-16-F_16', 'RR-01-86e6fb5af7e7-16-F_16', 'RR-01-d55dd578e73e-16-F_16', 'RR-01-4c79f297821e-16-F_16', 'RR-01-9ea719dd7a38-16-F_16', 'RR-01-f71a10986373-16-F_16', 'RR-01-c63f6198a7e6-16-F_16', 'RR-01-90207d9c857e-16-F_16', 'RR-01-5f2baf1968dc-16-F_16', 'RR-01-051398bdbd09-16-F_16', 'RR-01-285481018aad-16-F_16', 'RR-01-ec985dcd998f-16-F_16', 'RR-01-a5663bfcd012-16-F_16', 'RR-01-e90f89cdba81-16-F_16', 'RR-01-439c65246142-16-F_16', 'RR-01-438622e469b9-16-F_16', 'RR-01-0ce86297b8a0-16-F_16', 'RR-01-7f682d0b3544-16-F_16', 'RR-01-caf68bc1dcd9-16-F_16', 'RR-01-80cb6058ffaf-16-F_16', 'RR-01-fd0c6fc209da-16-F_16', 'RR-01-4f0ee4666374-16-F_16', 'RR-01-0da874351cfe-16-F_16', 'RR-01-2ab0796934b2-16-F_16', 'RR-01-c3ec74eeb9cb-16-F_16', 'RR-01-80c1be875426-16-F_16', 'RR-01-0d46c69dc939-16-F_16', 'RR-01-564c599b8a7d-16-F_16', 'RR-01-0ba3992e57de-16-F_16', 'RR-01-e7e3ea6fcb2e-16-F_16'] styrene_16_keys = [ 'RR-02-3545d6ed74034d56-16-F', 'RR-02-2c7b5bc4bd503c71-16-F', 'RR-02-d55dd578e73e0d77-16-F', 'RR-02-4c79f297821e39c8-16-F', 'RR-02-051398bdbd090ac0-16-F', 'RR-02-285481018aad5970-16-F', 'RR-02-ec985dcd998f1ad5-16-F', 'RR-02-439c65246142bb8d-16-F', 'RR-02-c3ec74eeb9cbf299-16-F', 'RR-02-80c1be875426e6d6-16-F', 'RR-02-c63f6198a7e6f821-16-F', 'RR-02-438622e469b97ba2-16-F', 'RR-02-caf68bc1dcd9ce0f-16-F', 'RR-02-80cb6058ffaff5b7-16-F', 'RR-02-0ba3992e57dea8f9-16-F', 'RR-02-e7e3ea6fcb2e454e-16-F', 'RR-02-90207d9c857ede9f-16-F', 'RR-02-4f0ee46663746d19-16-F', 'RR-02-0d46c69dc9394d1e-16-F', 'RR-02-564c599b8a7d6009-16-F', 'RR-02-90b72f2f72710436-16-F', 'RR-02-86e6fb5af7e720f6-16-F', 'RR-02-9ea719dd7a385419-16-F', 'RR-02-f71a109863731e17-16-F', 'RR-02-5f2baf1968dcb2a8-16-F', 'RR-02-a5663bfcd012ad53-16-F', 'RR-02-e90f89cdba81cdae-16-F', 'RR-02-0ce86297b8a08bd6-16-F', 'RR-02-7f682d0b3544ff05-16-F', 'RR-02-fd0c6fc209da098a-16-F', 'RR-02-0da874351cfe02c9-16-F', 'RR-02-2ab0796934b264ab-16-F' ] styrene_keys_archive = ['MNXR10030_MNXM1095', 'MNXR14800_MNXM1095', 'MNXR14852_MNXM4534', 'MNXR15002_MNXM438', 'MNXR20707_MNXM8128', 'MNXR23023_MNXM2434', 'MNXR23044_MNXM438', 'MNXR6957_MNXM2108', 'MNXR7145_MNXM438', 'MNXR7765_MNXM2787', 'MNXR8092_MNXM438', 'MNXR8581_MNXM2034', 'MNXR86322_MNXM890', 'MNXR87207_MNXM987', 'MNXR87313_MNXM1095', 'MNXR93681_MNXM438', 'MNXR94080_MNXM2434'] pinocembrin_keys = [ 'RR-01-ccf71c47bb9d-12-F_12', 'RR-01-0c8072624504-12-F_12', 'RR-01-1c5839a0ab53-12-F_12', 'RR-01-f8a09ffeaff2-12-F_12', 'RR-01-89f31ace6816-12-F_12', 'RR-01-3545d6ed7403-12-F_12', 'RR-01-2c7b5bc4bd50-12-F_12', 'RR-01-84f2d75c7006-12-F_12', 'RR-01-d8260cc37483-12-F_12', 'RR-01-5d0e22c36664-12-F_12', 'RR-01-619f5488435d-12-F_12', 'RR-01-ace320d40808-12-F_12', 'RR-01-1eef64c0807c-12-F_12', 'RR-01-90c8db21b14a-12-F_12', 'RR-01-7a232ac9d78d-12-F_12', 'RR-01-fcfba06ea22e-12-F_12', 'RR-01-0ad3ebab6842-12-F_12', 'RR-01-e00ad30f92ef-12-F_12', 'RR-01-0bdebd001527-12-F_12', 'RR-01-be7eaf23b012-12-F_12', 'RR-01-713c9f21bb7a-12-F_12', 'RR-01-fa5526899164-12-F_12', 'RR-01-698e74ec6c01-12-F_12', 'RR-01-455f8c3cb357-12-F_12', 'RR-01-2feefffd698e-12-F_12', 'RR-01-080bc4abd404-12-F_12', 'RR-01-8cc405a7228a-12-F_12', 'RR-01-94c48631eb63-12-F_12', 'RR-01-4a2d24769cd2-12-F_12', 'RR-01-fe4dd69d1d04-12-F_12', 'RR-01-d9836ab8784e-12-F_12', 'RR-01-8cee5d752624-12-F_12', 'RR-01-d6480cb0e6c1-12-F_12', 'RR-01-9b87c1cf20bf-12-F_12', 'RR-01-814cbdaa7721-12-F_12', 'RR-01-e65449ee4a2b-12-F_12', 'RR-01-57b8cbef05c8-12-F_12', 'RR-01-21e16356a12d-12-F_12', 'RR-01-a36521afcc76-12-F_12'] pinocembrin_16_keys = [ 'RR-02-3545d6ed74034d56-16-F', 'RR-02-2c7b5bc4bd503c71-16-F', 'RR-02-90c8db21b14a0cdd-16-F', 'RR-02-7a232ac9d78ddca1-16-F', 'RR-02-8cc405a7228a62f2-16-F', 'RR-02-94c48631eb63e101-16-F', 'RR-02-9b87c1cf20bf1721-16-F', 'RR-02-ccf71c47bb9df145-12-F', 'RR-02-0c8072624504c7b6-12-F', 'RR-02-1c5839a0ab53e203-12-F', 'RR-02-f8a09ffeaff2866a-12-F', 'RR-02-89f31ace6816319f-12-F', 'RR-02-84f2d75c7006398e-16-F', 'RR-02-d8260cc3748381a8-16-F', 'RR-02-5d0e22c36664b1a9-12-F', 'RR-02-619f5488435db48a-12-F', 'RR-02-ace320d40808fb1e-12-F', 'RR-02-1eef64c0807c929d-12-F', 'RR-02-fcfba06ea22ecd80-16-F', 'RR-02-0ad3ebab6842f767-16-F', 'RR-02-e00ad30f92ef189d-12-F', 'RR-02-0bdebd00152790b2-12-F', 'RR-02-be7eaf23b012eaa1-12-F', 'RR-02-fa55268991642d87-12-F', 'RR-02-698e74ec6c012ee8-12-F', 'RR-02-2feefffd698ec847-12-F', 'RR-02-4a2d24769cd20003-16-F', 'RR-02-fe4dd69d1d04fe31-16-F', 'RR-02-d9836ab8784e7c31-16-F', 'RR-02-8cee5d752624b8ec-16-F', 'RR-02-d6480cb0e6c1ddfa-12-F', 'RR-02-814cbdaa77217477-12-F', 'RR-02-e65449ee4a2bbe2e-12-F', 'RR-02-57b8cbef05c8057c-12-F', 'RR-02-21e16356a12d9e8e-16-F', 'RR-02-a36521afcc766305-16-F' ] pinocembrin_keys_archive = ['MNXR7145_MNXM438', 'MNXR93681_MNXM438', 'MNXR93681_MNXM97', 'MNXR1041_MNXM443', 'MNXR2251_MNXM406', 'MNXR227_MNXM264', 'MNXR14993_MNXM953', 'MNXR60189_MNXM3188', 'MNXR84871_MNXM1208', 'MNXR85701_MNXM1794', 'MNXR85702_MNXM5784', 'MNXR60602_MNXM4497', 'MNXR60602_MNXM45001', 'MNXR73989_MNXM34231', 'MNXR73989_MNXM6269', 'MNXR84948_MNXM556', 'MNXR85459_MNXM1025', 'MNXR85703_MNXM2889'] naringenin_keys = [ 'RR-01-ccf71c47bb9d-12-F_12', 'RR-01-0c8072624504-12-F_12', 'RR-01-1c5839a0ab53-12-F_12', 'RR-01-f8a09ffeaff2-12-F_12', 'RR-01-89f31ace6816-12-F_12', 'RR-01-3545d6ed7403-12-F_12', 'RR-01-2c7b5bc4bd50-12-F_12', 'RR-01-84f2d75c7006-12-F_12', 'RR-01-d8260cc37483-12-F_12', 'RR-01-5d0e22c36664-12-F_12', 'RR-01-619f5488435d-12-F_12', 'RR-01-2fd0f61d4287-12-F_12', 'RR-01-be4344437152-12-F_12', 'RR-01-ace320d40808-12-F_12', 'RR-01-1eef64c0807c-12-F_12', 'RR-01-90c8db21b14a-12-F_12', 'RR-01-7a232ac9d78d-12-F_12', 'RR-01-fcfba06ea22e-12-F_12', 'RR-01-0ad3ebab6842-12-F_12', 'RR-01-e00ad30f92ef-12-F_12', 'RR-01-0bdebd001527-12-F_12', 'RR-01-be7eaf23b012-12-F_12', 'RR-01-713c9f21bb7a-12-F_12', 'RR-01-fa5526899164-12-F_12', 'RR-01-698e74ec6c01-12-F_12', 'RR-01-455f8c3cb357-12-F_12', 'RR-01-2feefffd698e-12-F_12', 'RR-01-080bc4abd404-12-F_12', 'RR-01-8cc405a7228a-12-F_12', 'RR-01-94c48631eb63-12-F_12', 'RR-01-4a2d24769cd2-12-F_12', 'RR-01-fe4dd69d1d04-12-F_12', 'RR-01-a5d6105dddf3-12-F_12', 'RR-01-3dc4bc5586d2-12-F_12', 'RR-01-d9836ab8784e-12-F_12', 'RR-01-8cee5d752624-12-F_12', 'RR-01-19bd510ccb82-12-F_12', 'RR-01-8c06c2f87518-12-F_12', 'RR-01-d6480cb0e6c1-12-F_12', 'RR-01-9b87c1cf20bf-12-F_12', 'RR-01-814cbdaa7721-12-F_12', 'RR-01-e65449ee4a2b-12-F_12', 'RR-01-57b8cbef05c8-12-F_12', 'RR-01-21e16356a12d-12-F_12', 'RR-01-a36521afcc76-12-F_12', 'RR-01-27b915ea8462-49-F_-2', 'RR-01-d7542c98f32f-49-F_-2', 'RR-01-bc668c943bcb-49-F_-2', 'RR-01-ebab689ac2f6-49-F_-2'] naringenin_16_keys = [ 'RR-02-3545d6ed74034d56-16-F', 'RR-02-2c7b5bc4bd503c71-16-F', 'RR-02-90c8db21b14a0cdd-16-F', 'RR-02-7a232ac9d78ddca1-16-F', 'RR-02-8cc405a7228a62f2-16-F', 'RR-02-94c48631eb63e101-16-F', 'RR-02-9b87c1cf20bf1721-16-F', 'RR-02-ccf71c47bb9df145-12-F', 'RR-02-0c8072624504c7b6-12-F', 'RR-02-1c5839a0ab53e203-12-F', 'RR-02-f8a09ffeaff2866a-12-F', 'RR-02-89f31ace6816319f-12-F', 'RR-02-84f2d75c7006398e-16-F', 'RR-02-d8260cc3748381a8-16-F', 'RR-02-5d0e22c36664b1a9-12-F', 'RR-02-619f5488435db48a-12-F', 'RR-02-2fd0f61d4287301d-12-F', 'RR-02-be4344437152172f-12-F', 'RR-02-ace320d40808fb1e-12-F', 'RR-02-1eef64c0807c929d-12-F', 'RR-02-d7542c98f32fdee5-16-F', 'RR-02-fcfba06ea22ecd80-16-F', 'RR-02-0ad3ebab6842f767-16-F', 'RR-02-e00ad30f92ef189d-12-F', 'RR-02-0bdebd00152790b2-12-F', 'RR-02-be7eaf23b012eaa1-12-F', 'RR-02-fa55268991642d87-12-F', 'RR-02-698e74ec6c012ee8-12-F', 'RR-02-2feefffd698ec847-12-F', 'RR-02-4a2d24769cd20003-16-F', 'RR-02-fe4dd69d1d04fe31-16-F', 'RR-02-a5d6105dddf324f4-12-F', 'RR-02-3dc4bc5586d209c1-12-F', 'RR-02-d9836ab8784e7c31-16-F', 'RR-02-8cee5d752624b8ec-16-F', 'RR-02-bc668c943bcb0817-16-F', 'RR-02-19bd510ccb8276fb-12-F', 'RR-02-8c06c2f87518a9ea-12-F', 'RR-02-d6480cb0e6c1ddfa-12-F', 'RR-02-814cbdaa77217477-12-F', 'RR-02-e65449ee4a2bbe2e-12-F', 'RR-02-57b8cbef05c8057c-12-F', 'RR-02-ebab689ac2f69cfa-16-F', 'RR-02-27b915ea8462b7d9-16-F', 'RR-02-21e16356a12d9e8e-16-F', 'RR-02-a36521afcc766305-16-F' ] naringenin_keys_archive = ['MNXR15003_MNXM987', 'MNXR17733_MNXM5901', 'MNXR18415_MNXM264', 'MNXR227_MNXM264', 'MNXR7111_MNXM505', 'MNXR7145_MNXM438', 'MNXR84871_MNXM1208', 'MNXR84948_MNXM556', 'MNXR85459_MNXM1025', 'MNXR8874_MNXM505', 'MNXR93681_MNXM438', 'MNXR93685_MNXM505'] ethylene_keys = [ 'RR-01-b618db3f535a-16-F_16', 'RR-01-5bed8bcb898a-16-F_16', 'RR-01-c89a1f53ed77-16-F_16', 'RR-01-8226f8c194da-16-F_16', 'RR-01-4d6f36c61098-16-F_16', 'RR-01-a4e51784e182-16-F_16', 'RR-01-1ff6dce7b962-16-F_16', 'RR-01-f11ba70e708f-16-F_16', 'RR-01-340f1860db05-16-F_16', 'RR-01-6f335b33a0a1-16-F_16', 'RR-01-466420eb1f9f-16-F_16', 'RR-01-6059f029037e-16-F_16', 'RR-01-3c44623b991f-16-F_16', 'RR-01-76e374dd28d8-16-F_16', 'RR-01-3f7be56e3f9f-16-F_16', 'RR-01-b052b51fefa9-16-F_16', 'RR-01-8c1d80d26269-16-F_16', 'RR-01-ce0036d18be1-16-F_16', 'RR-01-d386eb98d569-16-F_16', 'RR-01-456711777040-16-F_16', 'RR-01-6122c11077a9-16-F_16', 'RR-01-38bbc744ca2a-16-F_16', 'RR-01-0933bc9cdbc0-16-F_16', 'RR-01-f75e0e113579-16-F_16', 'RR-01-d71acaf8e1fd-16-F_16', 'RR-01-47ecc93f52bc-16-F_16', 'RR-01-234e5a367f8d-16-F_16', 'RR-01-19b55fc4074e-16-F_16', 'RR-01-993c9253f78c-16-F_16', 'RR-01-53f7dd114286-16-F_16', 'RR-01-4d30d6315e8e-16-F_16', 'RR-01-b8b0271c3111-16-F_16', 'RR-01-71834150ed73-16-F_16', 'RR-01-6454a14b930b-16-F_16', 'RR-01-b87dd759d81b-16-F_16', 'RR-01-cae9afc75fed-16-F_16', 'RR-01-b9ad3b92215e-16-F_16', 'RR-01-f2fb1c5efcb7-16-F_16', 'RR-01-a15388df9112-16-F_16', 'RR-01-afeda5dd9e00-16-F_16', 'RR-01-ba1333507ae6-16-F_16', 'RR-01-c8661b3fd89f-16-F_16', 'RR-01-f2a89d1fc110-16-F_16', 'RR-01-61a59a875941-16-F_16', 'RR-01-69bd577ca2f4-16-F_16', 'RR-01-bcd763d5f2e0-16-F_16', 'RR-01-f59041f27577-16-F_16', 'RR-01-860446453e33-16-F_16', 'RR-01-10c14f73d7c8-16-F_16', 'RR-01-b76dd8e8d3e1-16-F_16', 'RR-01-910859fe14f1-16-F_16', 'RR-01-b8ac6a83aeab-16-F_16', 'RR-01-c8d7128110cc-16-F_16', 'RR-01-3f6b8212b11c-16-F_16', 'RR-01-17f237b35b9c-16-F_16', 'RR-01-ad1fcf135fe7-16-F_16', 'RR-01-056cd46e7fbe-16-F_16', 'RR-01-347b66837a93-16-F_16', 'RR-01-2fa9f69671f3-16-F_16', 'RR-01-1c5e2dd6014d-16-F_16', 'RR-01-fe69aaf88d7c-16-F_16', 'RR-01-b8b5ef05dd6f-16-F_16', 'RR-01-b4b4e7eff745-16-F_16', 'RR-01-ba05f56e7531-16-F_16', 'RR-01-c469571bf5dd-16-F_16', 'RR-01-6be59bc48287-16-F_16', 'RR-01-7508e4dad853-16-F_16', 'RR-01-0a1283e064f6-16-F_16', 'RR-01-0590ce05c110-16-F_16', 'RR-01-06663cb0780a-16-F_16', 'RR-01-746e3ff5aa9c-16-F_16', 'RR-01-a609d1ef085d-16-F_16', 'RR-01-91911ecdb81c-16-F_16', 'RR-01-094f718f9fbf-16-F_16', 'RR-01-65c0adfb547c-16-F_16', 'RR-01-c3ec74eeb9cb-16-F_16', 'RR-01-80c1be875426-16-F_16', 'RR-01-8818dea65ff3-16-F_16', 'RR-01-dc579a8e1f8c-16-F_16', 'RR-01-af8d6139571f-16-F_16', 'RR-01-e810bb4aa2b8-16-F_16', 'RR-01-4aa0893bf4c8-16-F_16', 'RR-01-ee7ccc9f6296-16-F_16', 'RR-01-fec67f6f4132-16-F_16', 'RR-01-a3dab3e47518-16-F_16', 'RR-01-b387337dc94e-16-F_16', 'RR-01-1c65c477fa18-16-F_16', 'RR-01-532930687155-16-F_16', 'RR-01-60c1aab00243-16-F_16', 'RR-01-052f180261ba-16-F_16', 'RR-01-2355de6b0a7f-16-F_16', 'RR-01-73f4f0b40f22-16-F_16', 'RR-01-757af66bae93-16-F_16', 'RR-01-ab535f7af6f9-16-F_16', 'RR-01-d3ff173f19d9-16-F_16', 'RR-01-92ea06368d8a-16-F_16', 'RR-01-5d459efbf36a-16-F_16', 'RR-01-0b06353b386c-16-F_16', 'RR-01-c1baf484736a-16-F_16', 'RR-01-eddc4c82bc7f-16-F_16', 'RR-01-42464e412b6a-16-F_16', 'RR-01-d56f2788cec9-16-F_16', 'RR-01-a27c10121672-16-F_16', 'RR-01-14c9ef7ac8a2-16-F_16', 'RR-01-aa26c97ac100-16-F_16', 'RR-01-5549dac72492-16-F_16', 'RR-01-4004b7ea811f-16-F_16', 'RR-01-2704be5eea79-16-F_16', 'RR-01-7a86b7668b9e-16-F_16', 'RR-01-7e4de265f24b-16-F_16', 'RR-01-2ab116f84d68-16-F_16', 'RR-01-e14ce618aee8-16-F_16', 'RR-01-469888aee72f-16-F_16', 'RR-01-c2c66cedf094-16-F_16', 'RR-01-0be9b0efc9e1-16-F_16', 'RR-01-3d3a456f054a-16-F_16', 'RR-01-ac6d35e02a43-16-F_16', 'RR-01-3b31aefba79f-16-F_16', 'RR-01-1e8e39bd8644-16-F_16', 'RR-01-085db4297707-16-F_16', 'RR-01-c5375175a751-16-F_16', 'RR-01-721183f2c545-16-F_16', 'RR-01-031bd961221f-16-F_16', 'RR-01-40baa9f9769c-16-F_16', 'RR-01-dd377c6c9f41-16-F_16', 'RR-01-d60e6efb94fb-16-F_16', 'RR-01-40f28277bfc5-16-F_16', 'RR-01-03b5810baa31-16-F_16', 'RR-01-cc9f5226009b-16-F_16', 'RR-01-289a74d34301-16-F_16', 'RR-01-fbcc8cfd08a6-16-F_16', 'RR-01-2068030457f1-16-F_16', 'RR-01-8b4324fcfd2b-16-F_16', 'RR-01-b62f37c6a404-16-F_16', 'RR-01-4fe900904d0a-16-F_16', 'RR-01-3ba0719fa57a-16-F_16', 'RR-01-7c7ab7ac6b98-16-F_16', 'RR-01-6fec6966f1f2-16-F_16', 'RR-01-36bb1f194ab4-16-F_16', 'RR-01-643b041ce09c-16-F_16', 'RR-01-db0cdb3811be-16-F_16', 'RR-01-e68f663510b3-16-F_16', 'RR-01-bfbf4361736f-16-F_16'] ethylene_16_keys = [ 'RR-02-ba1333507ae6006e-16-F', 'RR-02-c8661b3fd89f1ba4-16-F', 'RR-02-056cd46e7fbe267e-16-F', 'RR-02-347b66837a93582a-16-F', 'RR-02-0a1283e064f61a88-16-F', 'RR-02-0590ce05c110cf1a-16-F', 'RR-02-f11ba70e708f7f3e-16-F', 'RR-02-6059f029037e4eb4-16-F', 'RR-02-3c44623b991f1a2b-16-F', 'RR-02-0933bc9cdbc054bc-16-F', 'RR-02-06663cb0780a094c-16-F', 'RR-02-746e3ff5aa9c9fe9-16-F', 'RR-02-4aa0893bf4c817a5-16-F', 'RR-02-ee7ccc9f62967de0-16-F', 'RR-02-8226f8c194dae8a7-16-F', 'RR-02-4d6f36c61098de06-16-F', 'RR-02-a4e51784e182a017-16-F', 'RR-02-1ff6dce7b962afe3-16-F', 'RR-02-76e374dd28d81248-16-F', 'RR-02-3f7be56e3f9f187f-16-F', 'RR-02-ce0036d18be1cbb7-16-F', 'RR-02-d386eb98d569f14f-16-F', 'RR-02-19b55fc4074ea7a7-16-F', 'RR-02-993c9253f78c19bf-16-F', 'RR-02-4d30d6315e8e8d0e-16-F', 'RR-02-69bd577ca2f4d10e-16-F', 'RR-02-6be59bc48287ff0a-16-F', 'RR-02-a609d1ef085df966-16-F', 'RR-02-91911ecdb81cbdbc-16-F', 'RR-02-094f718f9fbf3087-16-F', 'RR-02-65c0adfb547ca69b-16-F', 'RR-02-8818dea65ff31cc5-16-F', 'RR-02-dc579a8e1f8ce4a0-16-F', 'RR-02-af8d6139571f9b75-16-F', 'RR-02-e810bb4aa2b8d414-16-F', 'RR-02-92ea06368d8a1330-16-F', 'RR-02-7a86b7668b9e0fc8-16-F', 'RR-02-ac6d35e02a432ef2-16-F', 'RR-02-3b31aefba79f28f5-16-F', 'RR-02-1e8e39bd86441957-16-F', 'RR-02-721183f2c545804f-16-F', 'RR-02-8b4324fcfd2b0746-16-F', 'RR-02-6fec6966f1f28405-16-F', 'RR-02-b618db3f535a34a5-16-F', 'RR-02-5bed8bcb898a8d24-16-F', 'RR-02-c89a1f53ed771996-16-F', 'RR-02-340f1860db055af1-16-F', 'RR-02-6f335b33a0a1be9d-16-F', 'RR-02-466420eb1f9fce92-16-F', 'RR-02-b052b51fefa9ce67-16-F', 'RR-02-8c1d80d26269af63-16-F', 'RR-02-6122c11077a9006c-16-F', 'RR-02-38bbc744ca2ac0b7-16-F', 'RR-02-f75e0e113579efa6-16-F', 'RR-02-47ecc93f52bc6e0b-16-F', 'RR-02-53f7dd11428601d8-16-F', 'RR-02-b87dd759d81bf89d-16-F', 'RR-02-3f6b8212b11c301c-16-F', 'RR-02-17f237b35b9c36c7-16-F', 'RR-02-ba05f56e7531b8ac-16-F', 'RR-02-c469571bf5dd3260-16-F', 'RR-02-757af66bae9301da-16-F', 'RR-02-0be9b0efc9e1b2d8-16-F', 'RR-02-3d3a456f054a2c75-16-F', 'RR-02-db0cdb3811bef3dd-16-F', 'RR-02-4567117770408ba1-16-F', 'RR-02-234e5a367f8d232a-16-F', 'RR-02-c3ec74eeb9cbf299-16-F', 'RR-02-80c1be875426e6d6-16-F', 'RR-02-fec67f6f4132cc0f-16-F', 'RR-02-14c9ef7ac8a2dc03-16-F', 'RR-02-2ab116f84d68e043-16-F', 'RR-02-469888aee72fbb8a-16-F', 'RR-02-c2c66cedf094533b-16-F', 'RR-02-cc9f5226009ba6e4-16-F', 'RR-02-289a74d34301b7af-16-F', 'RR-02-b62f37c6a404e83b-16-F', 'RR-02-e68f663510b3eadd-16-F', 'RR-02-bfbf4361736f996c-16-F', 'RR-02-d71acaf8e1fdd557-16-F', 'RR-02-1c5e2dd6014de992-16-F', 'RR-02-fe69aaf88d7c454a-16-F', 'RR-02-b8b5ef05dd6f8e12-16-F', 'RR-02-b4b4e7eff745e093-16-F', 'RR-02-7508e4dad8539dd3-16-F', 'RR-02-60c1aab00243be07-16-F', 'RR-02-052f180261baa23b-16-F', 'RR-02-2355de6b0a7f41ac-16-F', 'RR-02-73f4f0b40f22ed86-16-F', 'RR-02-42464e412b6a0366-16-F', 'RR-02-a27c101216726bd7-16-F', 'RR-02-4004b7ea811f0604-16-F', 'RR-02-2704be5eea79b7ae-16-F', 'RR-02-7e4de265f24b8a72-16-F', 'RR-02-d60e6efb94fb68b8-16-F', 'RR-02-40f28277bfc5ea8e-16-F', 'RR-02-4fe900904d0a9c85-16-F', 'RR-02-36bb1f194ab4866c-16-F', 'RR-02-cae9afc75fedcd22-16-F', 'RR-02-a15388df9112c5a6-16-F', 'RR-02-afeda5dd9e00d9da-16-F', 'RR-02-2fa9f69671f306d2-16-F', 'RR-02-5d459efbf36a1961-16-F', 'RR-02-0b06353b386ca535-16-F', 'RR-02-eddc4c82bc7f81b9-16-F', 'RR-02-d56f2788cec92217-16-F', 'RR-02-aa26c97ac100aa1a-16-F', 'RR-02-5549dac72492db6a-16-F', 'RR-02-03b5810baa310776-16-F', 'RR-02-3ba0719fa57afbea-16-F', 'RR-02-7c7ab7ac6b98a074-16-F', 'RR-02-b8b0271c31114118-16-F', 'RR-02-71834150ed737cbd-16-F', 'RR-02-6454a14b930bbb33-16-F', 'RR-02-b9ad3b92215e315a-16-F', 'RR-02-f2fb1c5efcb7140f-16-F', 'RR-02-bcd763d5f2e046be-16-F', 'RR-02-f59041f27577b37f-16-F', 'RR-02-860446453e33268d-16-F', 'RR-02-10c14f73d7c8d87e-16-F', 'RR-02-b76dd8e8d3e128df-16-F', 'RR-02-910859fe14f15abd-16-F', 'RR-02-b8ac6a83aeabdedd-16-F', 'RR-02-c8d7128110cc42d5-16-F', 'RR-02-ad1fcf135fe71ea3-16-F', 'RR-02-1c65c477fa187bde-16-F', 'RR-02-5329306871553552-16-F', 'RR-02-ab535f7af6f93fe1-16-F', 'RR-02-d3ff173f19d968c7-16-F', 'RR-02-e14ce618aee8279a-16-F', 'RR-02-085db4297707abff-16-F', 'RR-02-c5375175a751e58d-16-F', 'RR-02-031bd961221f7136-16-F', 'RR-02-40baa9f9769c49bd-16-F', 'RR-02-dd377c6c9f41d292-16-F' ] ethylene_keys_archive = ['MNXR10316_MNXM977', 'MNXR14888_MNXM3270', 'MNXR16111_MNXM2550', 'MNXR16150_MNXM977', 'MNXR16310_MNXM2550', 'MNXR16310_MNXM3270', 'MNXR25094_MNXM2550', 'MNXR25094_MNXM977', 'MNXR77370_MNXM3270', 'MNXR8187_MNXM977', 'MNXR85539_MNXM977', 'MNXR87706_MNXM977', 'MNXR93892_MNXM977', 'MNXR9562_MNXM977'] caroten_keys = [ 'RR-01-4ff35efaba69-12-F_12', 'RR-01-441413e93dd9-12-F_12', 'RR-01-e05fa6c58030-12-F_12', 'RR-01-e159cf6aa074-12-F_12', 'RR-01-1a456abbc0d8-12-F_12', 'RR-01-8910fd3fbc24-12-F_12', 'RR-01-1178f64b971e-12-F_12', 'RR-01-6d3500208261-12-F_12', 'RR-01-79a67c44bcbb-12-F_12', 'RR-01-44096cd01e46-12-F_12', 'RR-01-ab84cf3ac489-12-F_12', 'RR-01-693dcfc0cb83-12-F_12', 'RR-01-7c39c8a09b89-12-F_12', 'RR-01-1498c473c4cc-12-F_12', 'RR-01-6d2e028722f0-12-F_12', 'RR-01-35f0b9c12d05-12-F_12', 'RR-01-f7aa682a3ace-12-F_12', 'RR-01-91d8d1cbf1c1-12-F_12', 'RR-01-4daf335327a9-12-F_12', 'RR-01-ed22660e3711-12-F_12', 'RR-01-c9e94bc17bd5-12-F_12', 'RR-01-46b6c7e92d01-12-F_12', 'RR-01-9792e497c4e7-12-F_12', 'RR-01-a00d34ecee17-12-F_12', 'RR-01-38fbd0308afe-12-F_12', 'RR-01-e58379f37a1a-12-F_12', 'RR-01-20dadc0fd5e8-12-F_12', 'RR-01-5ef5450abd00-12-F_12', 'RR-01-20bda621c732-12-F_12', 'RR-01-c68691baf417-12-F_12', 'RR-01-0c7bceb70e55-12-F_12', 'RR-01-dd038e613058-12-F_12', 'RR-01-c687e462e254-12-F_12', 'RR-01-081e6a581b75-12-F_12', 'RR-01-0351542ed10f-12-F_12', 'RR-01-90bcfd187709-12-F_12', 'RR-01-2be959c35eb2-12-F_12', 'RR-01-11cb6d5fa275-12-F_12'] caroten_16_keys = [ 'RR-02-081e6a581b75d3b9-10-F', 'RR-02-2be959c35eb2c6ac-16-F', 'RR-02-11cb6d5fa275d4ce-10-F', 'RR-02-4ff35efaba6994fb-12-F', 'RR-02-441413e93dd96e37-12-F', 'RR-02-e05fa6c5803015b4-12-F', 'RR-02-e159cf6aa0744228-12-F', 'RR-02-1a456abbc0d8ce54-12-F', 'RR-02-8910fd3fbc24b470-12-F', 'RR-02-1178f64b971e36da-12-F', 'RR-02-6d35002082610a76-12-F', 'RR-02-79a67c44bcbbcf69-12-F', 'RR-02-44096cd01e46c9cf-12-F', 'RR-02-693dcfc0cb83c18e-12-F', 'RR-02-7c39c8a09b89f9f9-12-F', 'RR-02-1498c473c4cc62e9-12-F', 'RR-02-6d2e028722f03c3a-12-F', 'RR-02-35f0b9c12d0571b1-12-F', 'RR-02-f7aa682a3ace851c-12-F', 'RR-02-91d8d1cbf1c10bb6-12-F', 'RR-02-4daf335327a9d1b6-12-F', 'RR-02-ed22660e3711b360-12-F', 'RR-02-c9e94bc17bd5f6a3-12-F', 'RR-02-46b6c7e92d015b1b-12-F', 'RR-02-a00d34ecee17155c-12-F', 'RR-02-38fbd0308afee065-12-F', 'RR-02-e58379f37a1ae3ee-12-F', 'RR-02-5ef5450abd006d5a-12-F', 'RR-02-20bda621c732d5a9-12-F', 'RR-02-c68691baf417f77c-12-F', 'RR-02-0c7bceb70e55f042-12-F', 'RR-02-dd038e613058ed7e-12-F', 'RR-02-c687e462e2545683-12-F', 'RR-02-0351542ed10fdadf-12-F', 'RR-02-90bcfd187709eb1b-16-F' ] caroten_keys_archive = ['MNXR15454_MNXM614', 'MNXR15602_MNXM557', 'MNXR16029_MNXM1048', 'MNXR17616_MNXM10398', 'MNXR17616_MNXM3549', 'MNXR26357_MNXM445', 'MNXR26357_MNXM557', 'MNXR26773_MNXM949', 'MNXR26773_MNXM557', 'MNXR26774_MNXM2099', 'MNXR26774_MNXM557', 'MNXR55435_MNXM139', 'MNXR60336_MNXM2000', 'MNXR70495_MNXM557', 'MNXR71200_MNXM1788', 'MNXR8603_MNXM1910', 'MNXR87812_MNXM557'] def get_rules_and_score(full_rules_forward_H = None, full_rules_retro_H = None, full_rules_forward_no_H = None, full_rules_retro_no_H = None, add_Hs = True, retro = True, diameters = [16], small = False, c_name = None, filtering_EC = None): """ full_rules: fondation data - H or no H - forward or reverse Those rules will be calculated in calculate_rules_similarity for those 4 conditions. Expert users can choose to calculate their own rules under the required format and specify only those they intedn to use. diameter: a list of diameters to use (it's a rule attribute) small: current optional argument for running fast tests. """ if add_Hs: if retro: unfiltered_rules = full_rules_retro_H scoring = "BiologicalFullScoringRetroH" else: unfiltered_rules = full_rules_forward_H scoring = "BiologicalFullScoringFwdH" else: if retro: unfiltered_rules = full_rules_retro_no_H scoring = "BiologicalFullScoringRetroNoH" else: unfiltered_rules = full_rules_forward_no_H scoring = "BiologicalFullScoringFwdNoH" if small: merged_rules = full_rules_retro_H merged_rules.update(full_rules_forward_H) if c_name == "TPA": rules = dict((rid, merged_rules[rid]) for rid in TPA_16_keys) scoring = "BiologicalFullScoringH" elif c_name == "deoxiviolacein" or c_name == "violacein": rules = dict((rid, merged_rules[rid]) for rid in violacein_16_keys) scoring = "BiologicalFullScoringH" elif c_name == "pinocembrin": rules = dict((rid, merged_rules[rid]) for rid in pinocembrin_16_keys) scoring = "BiologicalFullScoringH" elif c_name == "naringenin": rules = dict((rid, merged_rules[rid]) for rid in naringenin_16_keys) scoring = "BiologicalFullScoringH" elif c_name == "ethylene": rules = dict((rid, merged_rules[rid]) for rid in ethylene_16_keys) scoring = "BiologicalFullScoringH" elif c_name == "caroten": rules = dict((rid, merged_rules[rid]) for rid in caroten_16_keys) scoring = "BiologicalFullScoringH" elif c_name == "styrene": rules = dict((rid, merged_rules[rid]) for rid in styrene_16_keys) scoring = "BiologicalFullScoringH" else: if biosensor: rules = unfiltered_rules else: raise NotImplementedError return(rules, scoring) else: # Filtering by diameters if diameters is None: filtered_rules = unfiltered_rules else: filtered_rules = {} for rid, rule_characteritics in unfiltered_rules.items(): if int(rule_characteritics["Diameter"]) in diameters: filtered_rules[rid] = rule_characteritics # Filtering by EC: if filtering_EC is None: filtered_rules_EC = filtered_rules else: filtered_rules_EC = {} for rid, rule_characteritics in filtered_rules.items(): for ec_reac in rule_characteritics["EC_number"]: for ec_query in filtering_EC: ec_query_split = ec_query.split('.') ec_correct_depth = get_EC_from_depth(ec_reac, len(ec_query_split)) if ec_correct_depth == ec_query: filtered_rules_EC[rid] = rule_characteritics return(filtered_rules_EC, scoring) def get_EC_from_depth(EC, EC_depth = 4): """ Obtains an EC number at the requested depth from a full EC number. Returns None is the requested depth is too long (ie: 4.1.-- would return None at depth 3 or 4) """ EC_split = EC.split('.') if len(EC_split) < EC_depth: return(None) else: EC_cut = ".".join([EC_split[i] for i in range(EC_depth)]) return(EC_cut)
90.453125
4,187
0.710802
5,364
34,734
4.433072
0.182327
0.051348
0.068758
0.066824
0.439379
0.328105
0.323983
0.309853
0.301989
0.289457
0
0.339139
0.107445
34,734
383
4,188
90.689295
0.427876
0.027898
0
0.227692
0
0
0.64738
0.554431
0
0
0
0
0
1
0.006154
false
0
0.027692
0
0.033846
0.012308
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
1
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
0c8b4dbf90048f4847fa1c8634da66dd0e2928c0
93
py
Python
director/exceptions.py
ministicraft/celery-director
e88afe1f1b8a77a4cab68b25a84a6b44714255be
[ "BSD-3-Clause" ]
null
null
null
director/exceptions.py
ministicraft/celery-director
e88afe1f1b8a77a4cab68b25a84a6b44714255be
[ "BSD-3-Clause" ]
null
null
null
director/exceptions.py
ministicraft/celery-director
e88afe1f1b8a77a4cab68b25a84a6b44714255be
[ "BSD-3-Clause" ]
null
null
null
class WorkflowNotFound(Exception): pass class WorkflowSyntaxError(Exception): pass
13.285714
37
0.763441
8
93
8.875
0.625
0.366197
0
0
0
0
0
0
0
0
0
0
0.172043
93
6
38
15.5
0.922078
0
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
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
1
1
0
0
0
0
0
5
0cb1db27e6e3234682707ed6ca8fdbe34069faa5
136
py
Python
Python/lcm.py
IshankAgarwal/simple-maths
90ea4eaed7a49da7f321fbd6fa89f265a49cfeb2
[ "MIT" ]
1
2020-03-07T09:37:26.000Z
2020-03-07T09:37:26.000Z
Python/lcm.py
IshankAgarwal/simple-maths
90ea4eaed7a49da7f321fbd6fa89f265a49cfeb2
[ "MIT" ]
null
null
null
Python/lcm.py
IshankAgarwal/simple-maths
90ea4eaed7a49da7f321fbd6fa89f265a49cfeb2
[ "MIT" ]
null
null
null
from gcd import gcd def lcm(n1, n2): """ Function to return the lcm of two numbers """ return (n1 * n2) / gcd(n1, n2)
15.111111
45
0.566176
22
136
3.5
0.636364
0.155844
0
0
0
0
0
0
0
0
0
0.06383
0.308824
136
8
46
17
0.755319
0.301471
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.333333
0
1
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
1
0
0
1
0
1
0
0
5
0ce78ca20b262a66d06fa4c4460f16b81eab5654
2,526
py
Python
test/test_secrets_api.py
nrfta/python-netbox-client
68ba6dd4d7306513dc1ad38f3ac59122ba4f70a8
[ "MIT" ]
null
null
null
test/test_secrets_api.py
nrfta/python-netbox-client
68ba6dd4d7306513dc1ad38f3ac59122ba4f70a8
[ "MIT" ]
null
null
null
test/test_secrets_api.py
nrfta/python-netbox-client
68ba6dd4d7306513dc1ad38f3ac59122ba4f70a8
[ "MIT" ]
null
null
null
# coding: utf-8 """ NetBox API API to access NetBox # noqa: E501 OpenAPI spec version: 2.8 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import netbox_client from netbox_client.api.secrets_api import SecretsApi # noqa: E501 from netbox_client.rest import ApiException class TestSecretsApi(unittest.TestCase): """SecretsApi unit test stubs""" def setUp(self): self.api = netbox_client.api.secrets_api.SecretsApi() # noqa: E501 def tearDown(self): pass def test_secrets_generate_rsa_key_pair_list(self): """Test case for secrets_generate_rsa_key_pair_list This endpoint can be used to generate a new RSA key pair. The keys are returned in PEM format. # noqa: E501 """ pass def test_secrets_get_session_key_create(self): """Test case for secrets_get_session_key_create """ pass def test_secrets_secret_roles_create(self): """Test case for secrets_secret_roles_create """ pass def test_secrets_secret_roles_delete(self): """Test case for secrets_secret_roles_delete """ pass def test_secrets_secret_roles_list(self): """Test case for secrets_secret_roles_list """ pass def test_secrets_secret_roles_partial_update(self): """Test case for secrets_secret_roles_partial_update """ pass def test_secrets_secret_roles_read(self): """Test case for secrets_secret_roles_read """ pass def test_secrets_secret_roles_update(self): """Test case for secrets_secret_roles_update """ pass def test_secrets_secrets_create(self): """Test case for secrets_secrets_create """ pass def test_secrets_secrets_delete(self): """Test case for secrets_secrets_delete """ pass def test_secrets_secrets_list(self): """Test case for secrets_secrets_list """ pass def test_secrets_secrets_partial_update(self): """Test case for secrets_secrets_partial_update """ pass def test_secrets_secrets_read(self): """Test case for secrets_secrets_read """ pass def test_secrets_secrets_update(self): """Test case for secrets_secrets_update """ pass if __name__ == '__main__': unittest.main()
21.05
116
0.649644
311
2,526
4.906752
0.241158
0.06422
0.100917
0.165138
0.678899
0.536697
0.238532
0.051114
0
0
0
0.008188
0.274743
2,526
119
117
21.226891
0.824782
0.403405
0
0.375
1
0
0.005776
0
0
0
0
0
0
1
0.4
false
0.375
0.125
0
0.55
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
1
0
1
0
0
1
0
0
5
0cfc247a01ae0b2c4239a79dfd3e90a0e05fb4ce
115
py
Python
python/regex/src/formula/formula.py
GuillaumeFalourd/formulas-4-tests
fef565078fa2209d9e46475f627f4251cfa6dd86
[ "Apache-2.0" ]
3
2021-08-18T21:01:28.000Z
2022-01-15T20:13:47.000Z
python/regex/src/formula/formula.py
GuillaumeFalourd/formulas-4-tests
fef565078fa2209d9e46475f627f4251cfa6dd86
[ "Apache-2.0" ]
null
null
null
python/regex/src/formula/formula.py
GuillaumeFalourd/formulas-4-tests
fef565078fa2209d9e46475f627f4251cfa6dd86
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 from colored import fg, attr from distutils.util import strtobool def run(age): print(age)
16.428571
36
0.73913
18
115
4.722222
0.833333
0
0
0
0
0
0
0
0
0
0
0.010309
0.156522
115
6
37
19.166667
0.865979
0.147826
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.5
0
0.75
0.25
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
0
1
0
0
5
0b574100520a7a5c9a82925723f7fddd01c39a79
57
py
Python
Vamei/tricks/trick2.py
YangPhy/learnPython
5507fa1a0d2878fc663d62509af8ff959955f822
[ "MIT" ]
5
2020-05-18T06:54:52.000Z
2021-05-29T23:17:41.000Z
Vamei/tricks/trick2.py
YangPhy/learnPython
5507fa1a0d2878fc663d62509af8ff959955f822
[ "MIT" ]
null
null
null
Vamei/tricks/trick2.py
YangPhy/learnPython
5507fa1a0d2878fc663d62509af8ff959955f822
[ "MIT" ]
1
2020-05-17T22:47:49.000Z
2020-05-17T22:47:49.000Z
a=[1,2,3] print(a.__class__) print(a.__class__.__name__)
14.25
27
0.736842
11
57
2.727273
0.636364
0.4
0.733333
0
0
0
0
0
0
0
0
0.055556
0.052632
57
3
28
19
0.5
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.666667
1
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
1
0
5
0b5968684c89c89170fc4558a07a840efa60ef91
524
py
Python
anmichelpers/parsers/lineParsers.py
victor-gil-sepulveda/PhD-ANMPythonHelpers
c0e15684cce4aa4da90141b51f043a567a5f8655
[ "MIT" ]
1
2017-11-01T15:19:10.000Z
2017-11-01T15:19:10.000Z
anmichelpers/parsers/lineParsers.py
victor-gil-sepulveda/PhD-ANMPythonHelpers
c0e15684cce4aa4da90141b51f043a567a5f8655
[ "MIT" ]
null
null
null
anmichelpers/parsers/lineParsers.py
victor-gil-sepulveda/PhD-ANMPythonHelpers
c0e15684cce4aa4da90141b51f043a567a5f8655
[ "MIT" ]
null
null
null
''' Created on 18/03/2015 @author: user ''' import numpy from anmichelpers.tools.tools import is_int def single_string_parser(parts): return parts[0] def string_array_parser(parts): return parts def float_array_parser(parts): return numpy.array([float(part) for part in parts]) def int_array_parser(parts): return [int(part) for part in parts] def mode_parser(parts): offset = 0 if is_int(parts[0]): offset = 1 return float(parts[offset]), float_array_parser(parts[offset+1:])
20.96
69
0.704198
80
524
4.45
0.375
0.185393
0.191011
0.185393
0.117978
0.117978
0
0
0
0
0
0.030445
0.185115
524
25
69
20.96
0.803279
0.068702
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.133333
0.266667
0.8
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
0b82141e7c3739729901161dd87e486266ecec44
141
py
Python
agent/src/agent/di/streamsets.py
eacherkan-aternity/daria
7c77a2f52c09c852017b16949a848fa51f0fb579
[ "Apache-2.0" ]
16
2019-04-03T08:31:54.000Z
2021-01-24T17:12:04.000Z
agent/src/agent/di/streamsets.py
eacherkan-aternity/daria
7c77a2f52c09c852017b16949a848fa51f0fb579
[ "Apache-2.0" ]
10
2020-01-20T14:59:06.000Z
2022-01-21T10:19:16.000Z
agent/src/agent/di/streamsets.py
eacherkan-aternity/daria
7c77a2f52c09c852017b16949a848fa51f0fb579
[ "Apache-2.0" ]
5
2021-01-08T19:23:03.000Z
2021-11-09T14:15:49.000Z
import sdc_client from agent import streamsets def config(binder): binder.bind(sdc_client.IStreamSetsProvider, streamsets.Provider())
17.625
70
0.801418
17
141
6.529412
0.705882
0.162162
0
0
0
0
0
0
0
0
0
0
0.120567
141
7
71
20.142857
0.895161
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.5
0
0.75
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
1
0
0
1
0
1
0
0
5
0b9067ed4f85d3a4ce037e1852e49c4e2ae04abf
3,901
py
Python
src/third_party/beaengine/tests/0f384b.py
CrackerCat/rp
5fe693c26d76b514efaedb4084f6e37d820db023
[ "MIT" ]
1
2022-01-19T01:59:58.000Z
2022-01-19T01:59:58.000Z
src/third_party/beaengine/tests/0f384b.py
CrackerCat/rp
5fe693c26d76b514efaedb4084f6e37d820db023
[ "MIT" ]
null
null
null
src/third_party/beaengine/tests/0f384b.py
CrackerCat/rp
5fe693c26d76b514efaedb4084f6e37d820db023
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/> # # @author : beaengine@gmail.com from headers.BeaEnginePython import * from nose.tools import * class TestSuite: def test(self): # VEX.128.F2.0F38.W0 4B !(11):rrr:100 # TILELOADD tmm1, sibmem myVEX = VEX('VEX.128.F2.0F38.W0') myVEX.vvvv = 0b1111 myVEX.R = 0b1 Buffer = bytes.fromhex('{}4b0482'.format(myVEX.c4())) myDisasm = Disasm(Buffer) length = myDisasm.read() assert_equal(myDisasm.length, len(Buffer)) assert_equal(myDisasm.infos.Instruction.Opcode, 0x4b) assert_equal(myDisasm.infos.Instruction.Category, AMX_INSTRUCTION) assert_equal(myDisasm.infos.Instruction.Mnemonic, b'tileloadd') assert_equal(myDisasm.infos.Operand1.OpType, REGISTER_TYPE) assert_equal(myDisasm.infos.Operand1.Registers.tmm, REG0) assert_equal(myDisasm.infos.Operand1.OpSize, 8192) assert_equal(myDisasm.infos.Operand1.AccessMode, WRITE) assert_equal(myDisasm.infos.Operand2.OpType, MEMORY_TYPE) assert_equal(myDisasm.infos.Operand2.AccessMode, READ) assert_equal(myDisasm.repr(), 'tileloadd tmm0, [r10+r8*4]') # VEX.128.66.0F38.W0 4B !(11):rrr:100 # TILELOADDT1 tmm1, sibmem myVEX = VEX('VEX.128.66.0F38.W0') myVEX.vvvv = 0b1111 myVEX.R = 0b1 Buffer = bytes.fromhex('{}4b0482'.format(myVEX.c4())) myDisasm = Disasm(Buffer) length = myDisasm.read() assert_equal(myDisasm.length, len(Buffer)) assert_equal(myDisasm.infos.Instruction.Opcode, 0x4b) assert_equal(myDisasm.infos.Instruction.Category, AMX_INSTRUCTION) assert_equal(myDisasm.infos.Instruction.Mnemonic, b'tileloaddt1') assert_equal(myDisasm.infos.Operand1.OpType, REGISTER_TYPE) assert_equal(myDisasm.infos.Operand1.Registers.tmm, REG0) assert_equal(myDisasm.infos.Operand1.OpSize, 8192) assert_equal(myDisasm.infos.Operand1.AccessMode, WRITE) assert_equal(myDisasm.infos.Operand2.OpType, MEMORY_TYPE) assert_equal(myDisasm.infos.Operand2.AccessMode, READ) assert_equal(myDisasm.repr(), 'tileloaddt1 tmm0, [r10+r8*4]') # VEX.128.F3.0F38.W0 4B !(11):rrr:100 # TILESTORED sibmem, tmm1 myVEX = VEX('VEX.128.F3.0F38.W0') myVEX.vvvv = 0b1111 myVEX.R = 0b1 Buffer = bytes.fromhex('{}4b0482'.format(myVEX.c4())) myDisasm = Disasm(Buffer) length = myDisasm.read() assert_equal(myDisasm.length, len(Buffer)) assert_equal(myDisasm.infos.Instruction.Opcode, 0x4b) assert_equal(myDisasm.infos.Instruction.Category, AMX_INSTRUCTION) assert_equal(myDisasm.infos.Instruction.Mnemonic, b'tilestored') assert_equal(myDisasm.infos.Operand2.OpType, REGISTER_TYPE) assert_equal(myDisasm.infos.Operand2.Registers.tmm, REG0) assert_equal(myDisasm.infos.Operand2.OpSize, 8192) assert_equal(myDisasm.infos.Operand2.AccessMode, READ) assert_equal(myDisasm.infos.Operand1.OpType, MEMORY_TYPE) assert_equal(myDisasm.infos.Operand1.AccessMode, WRITE) assert_equal(myDisasm.repr(), 'tilestored [r10+r8*4], tmm0')
45.360465
74
0.688541
490
3,901
5.395918
0.297959
0.137292
0.237141
0.245083
0.755295
0.733359
0.639939
0.602874
0.602874
0.602874
0
0.054271
0.201743
3,901
85
75
45.894118
0.794798
0.227378
0
0.690909
0
0
0.064171
0
0
0
0.004011
0
0.6
1
0.018182
false
0
0.036364
0
0.072727
0
0
0
0
null
0
1
1
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
1
0
0
0
0
0
0
0
0
0
5
0bb4a1d75ed9448e307f0b07c406e4435598a127
29
py
Python
pyhandmouse/__init__.py
heewinkim/pyhandmouse
63d6a3ba31a2b6422a34585094e2abddecc9166d
[ "Apache-2.0" ]
null
null
null
pyhandmouse/__init__.py
heewinkim/pyhandmouse
63d6a3ba31a2b6422a34585094e2abddecc9166d
[ "Apache-2.0" ]
null
null
null
pyhandmouse/__init__.py
heewinkim/pyhandmouse
63d6a3ba31a2b6422a34585094e2abddecc9166d
[ "Apache-2.0" ]
null
null
null
from .main import PyHandMouse
29
29
0.862069
4
29
6.25
1
0
0
0
0
0
0
0
0
0
0
0
0.103448
29
1
29
29
0.961538
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
0
0
0
5
e7fc287dffd12d5f4297f54b366b01f249b705aa
124
py
Python
polarization/search/admin.py
teyit/semantik
b3e5013c40373f5817b559c7dea28bf443e429d3
[ "MIT" ]
null
null
null
polarization/search/admin.py
teyit/semantik
b3e5013c40373f5817b559c7dea28bf443e429d3
[ "MIT" ]
null
null
null
polarization/search/admin.py
teyit/semantik
b3e5013c40373f5817b559c7dea28bf443e429d3
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Tweet, Search admin.site.register(Tweet) admin.site.register(Search)
17.714286
33
0.806452
18
124
5.555556
0.555556
0.18
0.34
0
0
0
0
0
0
0
0
0
0.104839
124
6
34
20.666667
0.900901
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
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
1
0
1
0
0
0
0
5
f04d9068152abaf8154a93cb3f663b42fd64036c
91
py
Python
sellsy_api/__init__.py
Annouar/sellsy-client
0aa7b638c4d35dce33fd4eeae1374bc28530d354
[ "MIT" ]
5
2018-04-03T13:49:20.000Z
2020-02-11T10:08:45.000Z
sellsy_api/__init__.py
Annouar/sellsy-client
0aa7b638c4d35dce33fd4eeae1374bc28530d354
[ "MIT" ]
6
2019-01-16T16:40:46.000Z
2022-02-17T15:04:05.000Z
sellsy_api/__init__.py
Annouar/sellsy-client
0aa7b638c4d35dce33fd4eeae1374bc28530d354
[ "MIT" ]
5
2019-06-03T12:43:42.000Z
2022-01-28T13:16:19.000Z
from .sellsy_client import Client from .errors import SellsyAuthenticateError, SellsyError
30.333333
56
0.868132
10
91
7.8
0.7
0
0
0
0
0
0
0
0
0
0
0
0.098901
91
2
57
45.5
0.95122
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
0
5
f07d784b45b284e13dd69679e503c77a895d71ca
160
py
Python
Backend/product/admin.py
Bhavya0020/Readopolis
a0053e4fae97dc8291b50c746f3dc3e6b454ad95
[ "MIT" ]
null
null
null
Backend/product/admin.py
Bhavya0020/Readopolis
a0053e4fae97dc8291b50c746f3dc3e6b454ad95
[ "MIT" ]
null
null
null
Backend/product/admin.py
Bhavya0020/Readopolis
a0053e4fae97dc8291b50c746f3dc3e6b454ad95
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. from .models import Category, Product admin.site.register(Category) admin.site.register(Product)
22.857143
37
0.8125
22
160
5.909091
0.545455
0.138462
0.261538
0
0
0
0
0
0
0
0
0
0.10625
160
7
38
22.857143
0.909091
0.1625
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
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
1
0
1
0
0
0
0
5
b2d5fdada1e11a5a0d71e13e6c0a5d0cf360fd1e
149
py
Python
topCoder/srms/400s/srm472/div2/colorful_tiles_easy.py
ferhatelmas/algo
a7149c7a605708bc01a5cd30bf5455644cefd04d
[ "WTFPL" ]
25
2015-01-21T16:39:18.000Z
2021-05-24T07:01:24.000Z
topCoder/srms/400s/srm472/div2/colorful_tiles_easy.py
ferhatelmas/algo
a7149c7a605708bc01a5cd30bf5455644cefd04d
[ "WTFPL" ]
2
2020-09-30T19:39:36.000Z
2020-10-01T17:15:16.000Z
topCoder/srms/400s/srm472/div2/colorful_tiles_easy.py
ferhatelmas/algo
a7149c7a605708bc01a5cd30bf5455644cefd04d
[ "WTFPL" ]
15
2015-01-21T16:39:27.000Z
2020-10-01T17:00:22.000Z
from itertools import groupby class ColorfulTilesEasy: def theMin(self, room): return sum(len(list(g)) // 2 for _, g in groupby(room))
21.285714
63
0.677852
21
149
4.761905
0.857143
0
0
0
0
0
0
0
0
0
0
0.008547
0.214765
149
6
64
24.833333
0.846154
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0.25
1
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
1
0
0
0
1
1
0
0
5
b2ef3c0e2e5e6533bf107e79641912c91a4e9ba0
345
py
Python
src/tespy/connections/__init__.py
drjod/tespy
b90508178ff3527665781b99d20d3dddd8cb23a2
[ "MIT" ]
null
null
null
src/tespy/connections/__init__.py
drjod/tespy
b90508178ff3527665781b99d20d3dddd8cb23a2
[ "MIT" ]
null
null
null
src/tespy/connections/__init__.py
drjod/tespy
b90508178ff3527665781b99d20d3dddd8cb23a2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 from .bus import Bus # noqa: F401 from .connection import Connection # noqa: F401 from .connection import Ref # noqa: F401 # ############## deprecated components errors ############## # from .deprecated import bus # noqa: F401 from .deprecated import connection # noqa: F401 from .deprecated import ref # noqa: F401
28.75
62
0.663768
42
345
5.452381
0.309524
0.209607
0.209607
0.148472
0.655022
0
0
0
0
0
0
0.067138
0.17971
345
11
63
31.363636
0.742049
0.333333
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
0
5
b2f23a89ebb703aad2eb5fa3d7f6b00b7499cf78
179
py
Python
medical_prescription/exam/views/__init__.py
ristovao/2017.2-Receituario-Medico
5387eb80dfb354e948abe64f7d8bbe087fc4f136
[ "MIT" ]
11
2017-09-19T00:29:40.000Z
2018-04-05T23:52:39.000Z
medical_prescription/exam/views/__init__.py
ristovao/2017.2-Receituario-Medico
5387eb80dfb354e948abe64f7d8bbe087fc4f136
[ "MIT" ]
271
2017-09-09T00:07:28.000Z
2017-12-07T05:00:45.000Z
medical_prescription/exam/views/__init__.py
ristovao/2017.2-Receituario-Medico
5387eb80dfb354e948abe64f7d8bbe087fc4f136
[ "MIT" ]
26
2017-08-31T20:48:49.000Z
2018-03-21T15:11:27.000Z
from .list_exams import ListExams from .list_custom_exams import ListCustomExams from .createcustomexam import CreateCustomExamsView from .edit_customexam import UpdateCustomExam
35.8
51
0.888268
20
179
7.75
0.6
0.103226
0
0
0
0
0
0
0
0
0
0
0.089385
179
4
52
44.75
0.95092
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
0
5
b2f9c16d078e04b77aee7b3ceda23e26872aac05
155
py
Python
website_checker/__main__.py
yifeizuo/website_checker
4b4270c93e034f376bfdde87b790fd49b003551d
[ "Apache-2.0" ]
null
null
null
website_checker/__main__.py
yifeizuo/website_checker
4b4270c93e034f376bfdde87b790fd49b003551d
[ "Apache-2.0" ]
null
null
null
website_checker/__main__.py
yifeizuo/website_checker
4b4270c93e034f376bfdde87b790fd49b003551d
[ "Apache-2.0" ]
null
null
null
import fire import website_checker def produce(): website_checker.producer.main() def consume(): website_checker.consumer.main() fire.Fire()
11.071429
35
0.729032
19
155
5.789474
0.526316
0.381818
0
0
0
0
0
0
0
0
0
0
0.16129
155
13
36
11.923077
0.846154
0
0
0
0
0
0
0
0
0
0
0
0
1
0.285714
true
0
0.285714
0
0.571429
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
1
1
0
0
0
1
0
0
5
65160b24efdb8b320aabafd8c393f517c6db6c09
200
py
Python
Macros/Colours/Purple/Indigo.py
rec/dmxis
540baa59df6f4ae39990e5888f90b95caa362279
[ "Artistic-2.0" ]
2
2019-05-26T15:11:18.000Z
2021-12-27T21:05:32.000Z
Macros/Colours/Purple/Indigo.py
rec/DMXIS
540baa59df6f4ae39990e5888f90b95caa362279
[ "Artistic-2.0" ]
null
null
null
Macros/Colours/Purple/Indigo.py
rec/DMXIS
540baa59df6f4ae39990e5888f90b95caa362279
[ "Artistic-2.0" ]
null
null
null
#=============================================================== # DMXIS Macro (c) 2010 db audioware limited #=============================================================== RgbColour(75,0,130)
33.333333
65
0.24
11
200
4.363636
1
0
0
0
0
0
0
0
0
0
0
0.054645
0.085
200
5
66
40
0.20765
0.84
0
0
0
0
0
0
0
0
0
0
0
1
0
true
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
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
652f8028a566914c7b6e8618e8681d8899c684db
81
py
Python
tests/conftest.py
shramov/tll-http
27865ab55e446ea97363bfd6556597b25c7f8cf3
[ "MIT" ]
4
2019-09-25T14:19:05.000Z
2021-03-19T07:58:03.000Z
tests/conftest.py
shramov/tll-http
27865ab55e446ea97363bfd6556597b25c7f8cf3
[ "MIT" ]
3
2021-10-20T04:53:34.000Z
2021-11-23T08:57:12.000Z
tests/conftest.py
shramov/tll-http
27865ab55e446ea97363bfd6556597b25c7f8cf3
[ "MIT" ]
2
2021-10-16T12:39:35.000Z
2022-03-17T09:11:52.000Z
#!/usr/bin/env python # vim: sts=4 sw=4 et import tll.logger tll.logger.init()
11.571429
21
0.679012
16
81
3.4375
0.8125
0.327273
0
0
0
0
0
0
0
0
0
0.028986
0.148148
81
6
22
13.5
0.768116
0.481481
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
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
1
0
1
0
0
0
0
5
e8f68f8c43e976430a5bf1c1f298b36f9eeac119
216
py
Python
app/team/views.py
griimx/feature-mlsite
a66201c6b165d306d81110a05ee89d283f9b5e1e
[ "MIT" ]
3
2018-11-20T11:42:39.000Z
2019-05-24T15:50:11.000Z
app/team/views.py
khushmeeet/mlsite
08e116fb21cba8fa2d06f54d256de439c91c43b5
[ "MIT" ]
1
2019-12-16T20:48:36.000Z
2019-12-16T20:48:36.000Z
app/team/views.py
khushmeeet/mlsite
08e116fb21cba8fa2d06f54d256de439c91c43b5
[ "MIT" ]
2
2017-07-04T05:08:55.000Z
2017-07-04T05:10:55.000Z
from flask import Blueprint, render_template team_mod = Blueprint('team', __name__, template_folder='templates', static_folder='static') @team_mod.route('/team') def team(): return render_template('team.html')
27
91
0.759259
28
216
5.5
0.571429
0.181818
0.233766
0
0
0
0
0
0
0
0
0
0.101852
216
8
92
27
0.793814
0
0
0
0
0
0.152074
0
0
0
0
0
0
1
0.2
false
0
0.2
0.2
0.6
0.4
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
1
1
0
0
5
330a01452f003142f0a41fbeb65524c26b3516ab
1,485
py
Python
pypayd/insight.py
pik/pypayd
f64ef7ff90cda8f5da8844a2520aa604fbd6a9ff
[ "MIT" ]
4
2015-03-02T04:01:51.000Z
2020-01-12T04:06:34.000Z
pypayd/insight.py
pik/pypayd
f64ef7ff90cda8f5da8844a2520aa604fbd6a9ff
[ "MIT" ]
12
2015-03-02T06:07:17.000Z
2016-01-19T00:43:11.000Z
pypayd/insight.py
pik/pypayd
f64ef7ff90cda8f5da8844a2520aa604fbd6a9ff
[ "MIT" ]
4
2015-04-30T01:49:09.000Z
2019-06-14T11:25:50.000Z
""" http://insight.bitpay.com/ """ import logging import requests import config def getUrl(request_string): return requests.get(request_string).json() def setHost(): if config.LOCAL_BLOCKCHAIN and config.BLOCKCHAIN_CONNECT: pass elif config.LOCAL_BLOCKCHAIN: config.BLOCKCHAIN_CONNECT = ('http://localhost:3001' if config.TESTNET else 'http://localhost:3000') else: config.BLOCKCHAIN_CONNECT = ("https://test-insight.bitpay.com/" if config.TESTNET else "https://insight.bitpay.com/") def check(): result = getUrl(config.BLOCKCHAIN_CONNECT + '/api/sync/') if result['error']: raise Exception('Insight reports error: %s' % result['error']) if result['status'] == 'error': raise Exception('Insight reports error: %s' % result['error']) if result['status'] == 'syncing': logging.warning("WARNING: Insight is not fully synced to the blockchain: %s%% complete" % result['syncPercentage']) return result def getInfo(): return getUrl(config.BLOCKCHAIN_CONNECT + '/api/status?q=getInfo') def getUtxo(address): return getUrl(config.BLOCKCHAIN_CONNECT + '/api/addr/' + address + '/utxo/') def getAddressInfo(address): return getUrl(config.BLOCKCHAIN_CONNECT + '/api/addr/' + address + '/') def getTxInfo(tx_hash): return getUrl(config.BLOCKCHAIN_CONNECT + '/api/tx/' + tx_hash + '/') def getBlockInfo(block_hash): return getUrl(config.BLOCKCHAIN_CONNECT + '/api/block/' + block_hash + '/')
33.75
125
0.690909
178
1,485
5.668539
0.348315
0.142716
0.205154
0.172448
0.390486
0.358771
0.32111
0.237859
0.237859
0.126858
0
0.0064
0.158249
1,485
43
126
34.534884
0.8008
0.017508
0
0.066667
0
0
0.242926
0.014493
0
0
0
0
0
1
0.266667
false
0.033333
0.1
0.2
0.6
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
332263ae9194f1e9bf00d7aba95d494672910f6b
172
py
Python
kafka_streamer/models/__init__.py
sam-mosleh/kafka-streamer
be977af192b33a335b42af0a42ad05d9f3f9fef4
[ "BSD-3-Clause" ]
1
2020-06-26T00:10:05.000Z
2020-06-26T00:10:05.000Z
kafka_streamer/models/__init__.py
sam-mosleh/kafka-streamer
be977af192b33a335b42af0a42ad05d9f3f9fef4
[ "BSD-3-Clause" ]
null
null
null
kafka_streamer/models/__init__.py
sam-mosleh/kafka-streamer
be977af192b33a335b42af0a42ad05d9f3f9fef4
[ "BSD-3-Clause" ]
null
null
null
from .avro import AvroRecord from .base import SchematicModel, SchematicRecord, Serializable __all__ = ("Serializable", "SchematicModel", "SchematicRecord", "AvroRecord")
34.4
77
0.796512
15
172
8.866667
0.6
0.43609
0
0
0
0
0
0
0
0
0
0
0.098837
172
4
78
43
0.858065
0
0
0
0
0
0.296512
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
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
1
0
1
0
0
5
335766307f96bb72f3d36e361eb55b951826dd09
3,965
py
Python
parsy-backend/flaskApp/searchOption/utils.py
dstambler17/Parsy.io
14c4905809f79f191efbbbdfbd0e8d9e838478e7
[ "MIT" ]
null
null
null
parsy-backend/flaskApp/searchOption/utils.py
dstambler17/Parsy.io
14c4905809f79f191efbbbdfbd0e8d9e838478e7
[ "MIT" ]
null
null
null
parsy-backend/flaskApp/searchOption/utils.py
dstambler17/Parsy.io
14c4905809f79f191efbbbdfbd0e8d9e838478e7
[ "MIT" ]
null
null
null
import sys from flaskApp import db from flaskApp.models import User from flaskApp.error.error_handlers import * from sqlalchemy import text import string class DbSearchOptionUtils(object): def get_top_results_coursename(param, semester): #cursor = db.get_db().cursor() query = " select distinct CNum, CName from (select distinct CNum, CName from Course c, Prof_OH po where c.CSID = po.CSID and c.CName \ <> 'Dissertation Research' and c.CName <> 'PhD Research' and c.CName \ <> 'Independent Study' and c.CName like '%%%s%%' and c.Semester = '%s' and po.DayTime <> ''\ union\ select distinct CNum, CName from Course c, TA_OH t where c.CSID = t.CSID and c.CName \ <> 'Dissertation Research' and c.CName <> 'PhD Research' and c.CName <> \ 'Independent Study' and c.CName like '%%%s%%' and c.Semester = '%s' and t.DayTime <> '') as temp limit 5" % (param, semester, param, semester) sql = text(query) resTuple = db.engine.execute(sql) result = [] for item in resTuple: print(item[1]) dictItem = {"id" : item[0], "Name" : item[1]} result.append(dictItem) #cursor.close() return {"result" : result} def get_top_results_instructor(param, semester): query = "select distinct FName, LName, CNum, CName from (select distinct FName, LName, CNum, CName from Professor p,\ Teaches te, Prof_OH po, Course c where \ p.ProfId = te.ProfId and te.CSID = po.CSID and c.CSID = te.CSID and p.LName like '%%%s%%' and c.Semester = '%s' and po.DayTime <> '' \ union\ select distinct FName, LName, CNum, CName from Professor p, Teaches te, TA_OH t, Course c where p.ProfId = te.ProfId and te.CSID = t.CSID \ and te.CSID = c.CSID and\ p.LName like '%%%s%%' and c.Semester = '%s' and t.DayTime <> '') as temp limit 5" % (param, semester, param, semester) sql = text(query) resTuple = db.engine.execute(sql) result = [] for item in resTuple: print(item[2]) name = str(item[0]).lstrip().rstrip() + ' ' + str(item[1]).lstrip().rstrip() dictItem = {"id" : item[2], "Instructor" : name, "Name" : item[3]} result.append(dictItem) return {"result" : result} def get_top_results_courseID(param, semester): query = " select distinct CNum, CName from (select distinct CNum, CName from Course c, Prof_OH po where c.CSID = po.CSID and c.CName \ <> 'Dissertation Research' and c.CName <> 'PhD Research' and c.CName <> 'Independent Study' \ and c.CNum like '%%%s%%' and c.Semester = '%s' and po.DayTime <> ''\ union\ select distinct CNum, CName from Course c, TA_OH t where c.CSID = t.CSID and c.CName \ <> 'Dissertation Research' and c.CName <> 'PhD Research' and c.CName <> 'Independent Study'\ and c.CName like '%%%s%%' and c.Semester = '%s' and t.DayTime <> '') as temp limit 5" % (param, semester, param, semester) sql = text(query) resTuple = db.engine.execute(sql) result = [] for item in resTuple: print(item[0]) name = str(item[0]) dictItem = {"id" : item[0], "Name" : item[1]} result.append(dictItem) return {"result" : result} def get_top_results_all_courses(param, semester): query = " select distinct CNum, CName from Course where CName \ <> 'Dissertation Research' and CName <> 'PhD Research' and CName <> 'Independent Study' \ and CNum like '%%%s%%' and Semester = '%s' limit 5" % (param, semester) sql = text(query) resTuple = db.engine.execute(sql) result = [] for item in resTuple: print(item[0]) name = str(item[0]) dictItem = {"id" : item[0], "Name" : item[1]} result.append(dictItem) return {"result" : result}
47.771084
150
0.593443
530
3,965
4.4
0.158491
0.039451
0.05789
0.058319
0.793739
0.781732
0.77916
0.748714
0.723842
0.723842
0
0.00693
0.272131
3,965
82
151
48.353659
0.801109
0.010845
0
0.571429
0
0.2
0.093112
0
0
0
0
0
0
1
0.057143
false
0
0.085714
0
0.214286
0.057143
0
0
0
null
0
0
0
0
1
1
1
1
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
5
681ed1d08a20da808e99f88e1d739fbf784a155d
174
py
Python
pydicom/dicomio.py
yantingw/SegNetCMR
70b21c28c841db70e5774383cc47dc0ba1b7eac3
[ "MIT" ]
78
2017-02-12T12:14:54.000Z
2022-02-10T23:04:28.000Z
pydicom/dicomio.py
yantingw/SegNetCMR
70b21c28c841db70e5774383cc47dc0ba1b7eac3
[ "MIT" ]
8
2017-11-05T16:19:27.000Z
2022-01-29T13:36:12.000Z
pydicom/dicomio.py
yantingw/SegNetCMR
70b21c28c841db70e5774383cc47dc0ba1b7eac3
[ "MIT" ]
36
2017-03-30T02:01:52.000Z
2021-12-23T22:44:10.000Z
# dicomio.py """Many point of entry for pydicom read and write functions""" from pydicom.filereader import read_file, read_dicomdir from pydicom.filewriter import write_file
34.8
62
0.816092
26
174
5.346154
0.692308
0.158273
0
0
0
0
0
0
0
0
0
0
0.12069
174
4
63
43.5
0.908497
0.390805
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
0
5
6834adcb78ba82b5ae28a4eb580e99e0f7105223
61
py
Python
reamber/sm/SMHit.py
Eve-ning/reamber_base_py
6d19c84f2c110b60e633b82b73e0516396466f56
[ "MIT" ]
10
2020-06-28T11:16:36.000Z
2021-08-09T21:41:43.000Z
reamber/sm/SMHit.py
Eve-ning/reamberPy
6d19c84f2c110b60e633b82b73e0516396466f56
[ "MIT" ]
35
2020-06-18T13:05:50.000Z
2022-02-18T10:13:35.000Z
reamber/sm/SMHit.py
Eve-ning/reamber_base_py
6d19c84f2c110b60e633b82b73e0516396466f56
[ "MIT" ]
2
2021-05-26T17:05:06.000Z
2021-06-12T18:42:13.000Z
from reamber.base.Hit import Hit class SMHit(Hit): ...
10.166667
32
0.655738
9
61
4.444444
0.777778
0
0
0
0
0
0
0
0
0
0
0
0.213115
61
5
33
12.2
0.833333
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.666667
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
1
0
1
0
0
5
686ec04a4962d1847aabd2098b949f973c8d2c67
190
py
Python
sequoia/__init__.py
pikselpalette/sequoia-python-client-sdk
972f0061bf8eb8c0cbbe1ffcbc6377148902bd09
[ "Apache-2.0" ]
null
null
null
sequoia/__init__.py
pikselpalette/sequoia-python-client-sdk
972f0061bf8eb8c0cbbe1ffcbc6377148902bd09
[ "Apache-2.0" ]
null
null
null
sequoia/__init__.py
pikselpalette/sequoia-python-client-sdk
972f0061bf8eb8c0cbbe1ffcbc6377148902bd09
[ "Apache-2.0" ]
6
2019-11-14T15:28:54.000Z
2021-04-27T18:57:08.000Z
# -*- coding: utf-8 -*- __version__ = '4.4.0' __description__ = """Sequoia Python Client SDK""" __url__ = "https://github.com/pikselpalette/sequoia-python-client-sdk" __author__ = 'Piksel'
27.142857
70
0.7
23
190
5.086957
0.782609
0.222222
0.324786
0.376068
0
0
0
0
0
0
0
0.023669
0.110526
190
6
71
31.666667
0.668639
0.110526
0
0
0
0
0.562874
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
1
1
1
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
5
687cd58f7941ce07a8bc70261db6ea9bca9e10d9
235
py
Python
edutalk/exceptions.py
IoTtalk/EduTalk
76f4e7bb5984a2b530fe4be5ce5a4ae305c229f7
[ "MIT" ]
null
null
null
edutalk/exceptions.py
IoTtalk/EduTalk
76f4e7bb5984a2b530fe4be5ce5a4ae305c229f7
[ "MIT" ]
1
2021-11-24T09:23:24.000Z
2021-11-24T13:47:10.000Z
edutalk/exceptions.py
IoTtalk/EduTalk
76f4e7bb5984a2b530fe4be5ce5a4ae305c229f7
[ "MIT" ]
null
null
null
class BaseError(Exception): """Base error class""" pass class UtilError(BaseError): """Base util error class""" pass class CCMAPIError(UtilError): """Raised when a ccm_api returned status is not `ok`""" pass
18.076923
59
0.655319
29
235
5.275862
0.655172
0.130719
0.183007
0.248366
0
0
0
0
0
0
0
0
0.221277
235
13
60
18.076923
0.836066
0.374468
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
5
68842be0ad2757a08c2e90339a0e27a2cd39558f
49
py
Python
src/home_automation_hub/__init__.py
levidavis/py-home
3cc30e19d506824de9816ad9dbcfba4338a7dfa8
[ "MIT" ]
26
2018-08-21T19:54:21.000Z
2021-10-15T18:59:17.000Z
src/home_automation_hub/__init__.py
levidavis/py-home
3cc30e19d506824de9816ad9dbcfba4338a7dfa8
[ "MIT" ]
3
2020-01-23T03:54:24.000Z
2020-07-19T13:10:22.000Z
src/home_automation_hub/__init__.py
levidavis/py-home
3cc30e19d506824de9816ad9dbcfba4338a7dfa8
[ "MIT" ]
11
2018-09-18T21:31:11.000Z
2021-07-03T11:23:30.000Z
from . import mqtt, web, main, storage, websocket
49
49
0.755102
7
49
5.285714
1
0
0
0
0
0
0
0
0
0
0
0
0.142857
49
1
49
49
0.880952
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
0
0
0
5
6893098910fb96de18b233139deaaf517a50712a
835
py
Python
test/test_update_role_request.py
p-fruck/python-contabo
c3abd362a0b90783118f36bec0e557bdbe5a8f2c
[ "Apache-2.0" ]
2
2022-01-27T10:36:33.000Z
2022-03-09T14:21:12.000Z
test/test_update_role_request.py
p-fruck/python-contabo
c3abd362a0b90783118f36bec0e557bdbe5a8f2c
[ "Apache-2.0" ]
7
2022-01-13T10:44:19.000Z
2022-02-15T23:44:44.000Z
test/test_update_role_request.py
p-fruck/python-contabo
c3abd362a0b90783118f36bec0e557bdbe5a8f2c
[ "Apache-2.0" ]
null
null
null
""" Contabo API The version of the OpenAPI document: 1.0.0 Contact: support@contabo.com Generated by: https://openapi-generator.tech """ import sys import unittest import pfruck_contabo from pfruck_contabo.model.permission_request import PermissionRequest globals()['PermissionRequest'] = PermissionRequest from pfruck_contabo.model.update_role_request import UpdateRoleRequest class TestUpdateRoleRequest(unittest.TestCase): """UpdateRoleRequest unit test stubs""" def setUp(self): pass def tearDown(self): pass def testUpdateRoleRequest(self): """Test UpdateRoleRequest""" # FIXME: construct object with mandatory attributes with example values # model = UpdateRoleRequest() # noqa: E501 pass if __name__ == '__main__': unittest.main()
21.973684
79
0.713772
88
835
6.613636
0.613636
0.06701
0.058419
0.075601
0
0
0
0
0
0
0
0.009009
0.202395
835
37
80
22.567568
0.864865
0.358084
0
0.2
1
0
0.05
0
0
0
0
0.027027
0
1
0.2
false
0.2
0.333333
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
1
0
0
0
0
1
1
0
1
0
0
5
689fcde29262d868b9f4480e2cdf1518f06c6585
426
py
Python
python-src/graphoire/algorithm/__init__.py
ccorbell/graphoire
566b0a27a9d6b87c5952bcc6e257a6d90621ca06
[ "Apache-2.0" ]
null
null
null
python-src/graphoire/algorithm/__init__.py
ccorbell/graphoire
566b0a27a9d6b87c5952bcc6e257a6d90621ca06
[ "Apache-2.0" ]
null
null
null
python-src/graphoire/algorithm/__init__.py
ccorbell/graphoire
566b0a27a9d6b87c5952bcc6e257a6d90621ca06
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Mar 24 12:43:31 2021 @author: Christopher Corbell """ __all__ = ["dijkstra", "fordfulkerson", "galeshapley", "prufer", "welshpowell"] from graphoire.algorithm.dijkstra import * from graphoire.algorithm.fordfulkerson import * from graphoire.algorithm.galeshapley import * from graphoire.algorithm.prufer import * from graphoire.algorithm.welshpowell import *
28.4
79
0.755869
50
426
6.36
0.58
0.204403
0.345912
0.352201
0
0
0
0
0
0
0
0.037037
0.112676
426
14
80
30.428571
0.804233
0.255869
0
0
0
0
0.159091
0
0
0
0
0
0
1
0
false
0
0.833333
0
0.833333
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
1
0
1
0
0
5
d7c230227a42f5372bcc58b88631e5c710db0128
252
py
Python
setup.py
sungmin-park/paginatify-elasticsearch-dsl
72f0f4d85276fa866a204219a80013aff3ecbf1a
[ "MIT" ]
null
null
null
setup.py
sungmin-park/paginatify-elasticsearch-dsl
72f0f4d85276fa866a204219a80013aff3ecbf1a
[ "MIT" ]
null
null
null
setup.py
sungmin-park/paginatify-elasticsearch-dsl
72f0f4d85276fa866a204219a80013aff3ecbf1a
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='paginatify-elasticsearch-dsl', version='0.0.2', packages=['paginatify_elasticsearch_dsl'], zip_safe=False, install_requires=['paginatify', 'elasticsearch-dsl>=0.0.9'] )
25.2
67
0.650794
28
252
5.714286
0.642857
0.43125
0.4875
0
0
0
0
0
0
0
0
0.030151
0.210317
252
9
68
28
0.773869
0
0
0
0
0
0.376984
0.31746
0
0
0
0
0
1
0
true
0
0.125
0
0.125
0
1
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
1
0
0
0
0
0
0
5
d7dad3ae1f3faa2aa10b12f46bfc00aa245201f1
37
py
Python
prototf/__init__.py
arpit196/Meta-Unsupervised-Representations-for-Prototypical-Learning
1511aef4273cab407c608b83b670cf33596cafb7
[ "MIT" ]
40
2019-04-18T17:43:11.000Z
2022-03-29T12:01:11.000Z
prototf/__init__.py
arpit196/Meta-Unsupervised-Representations-for-Prototypical-Learning
1511aef4273cab407c608b83b670cf33596cafb7
[ "MIT" ]
2
2019-10-14T05:55:12.000Z
2020-07-03T08:36:22.000Z
prototf/__init__.py
arpit196/Meta-Unsupervised-Representations-for-Prototypical-Learning
1511aef4273cab407c608b83b670cf33596cafb7
[ "MIT" ]
11
2019-08-02T15:20:18.000Z
2021-03-20T19:21:00.000Z
from .train_engine import TrainEngine
37
37
0.891892
5
37
6.4
1
0
0
0
0
0
0
0
0
0
0
0
0.081081
37
1
37
37
0.941176
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
0
0
0
5
0415d85ce73759220d9d71877a695e51d7b7fe8e
214
py
Python
libraries/python/dbxdemo/dbxdemo/spark.py
MiguelPeralvo/databricks-azuredevops-initial-tasks
2b82879d916b6193666df87a1173067b3ad4cce6
[ "MIT" ]
1
2022-01-02T14:23:40.000Z
2022-01-02T14:23:40.000Z
libraries/python/dbxdemo/dbxdemo/spark.py
MiguelPeralvo/databricks-azuredevops-initial-tasks
2b82879d916b6193666df87a1173067b3ad4cce6
[ "MIT" ]
null
null
null
libraries/python/dbxdemo/dbxdemo/spark.py
MiguelPeralvo/databricks-azuredevops-initial-tasks
2b82879d916b6193666df87a1173067b3ad4cce6
[ "MIT" ]
null
null
null
from pyspark.sql import SparkSession from functools import lru_cache @lru_cache(maxsize=None) def get_spark(): return (SparkSession.builder .appName("dbxdemo") .getOrCreate())
21.4
36
0.663551
23
214
6.043478
0.782609
0.115108
0
0
0
0
0
0
0
0
0
0
0.247664
214
9
37
23.777778
0.863354
0
0
0
0
0
0.032864
0
0
0
0
0
0
1
0.142857
true
0
0.285714
0.142857
0.571429
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
1
1
0
0
5
044f4adb043705b52cfd343ff9fafddfd4b20df9
125
py
Python
skfda/inference/anova/__init__.py
jiduque/scikit-fda
5ea71e78854801b259aa3a01eb6b154aa63bf54b
[ "BSD-3-Clause" ]
147
2019-05-10T20:46:42.000Z
2022-03-25T17:23:19.000Z
skfda/inference/anova/__init__.py
jiduque/scikit-fda
5ea71e78854801b259aa3a01eb6b154aa63bf54b
[ "BSD-3-Clause" ]
306
2019-04-26T08:56:05.000Z
2022-03-30T11:12:48.000Z
skfda/inference/anova/__init__.py
jiduque/scikit-fda
5ea71e78854801b259aa3a01eb6b154aa63bf54b
[ "BSD-3-Clause" ]
38
2019-09-03T17:24:04.000Z
2022-01-06T05:09:18.000Z
"""Implementation of ANOVA for functional data.""" from ._anova_oneway import oneway_anova, v_asymptotic_stat, v_sample_stat
41.666667
73
0.824
18
125
5.333333
0.722222
0
0
0
0
0
0
0
0
0
0
0
0.096
125
2
74
62.5
0.849558
0.352
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
0
5
0b053046629c4e30c7bd9b68597dd9bec0e5e939
13
py
Python
aspp2017/__init__.py
alebyk113/aspp2017
711264c9896fb5418f9c9a314f6af15937613307
[ "Unlicense" ]
null
null
null
aspp2017/__init__.py
alebyk113/aspp2017
711264c9896fb5418f9c9a314f6af15937613307
[ "Unlicense" ]
null
null
null
aspp2017/__init__.py
alebyk113/aspp2017
711264c9896fb5418f9c9a314f6af15937613307
[ "Unlicense" ]
null
null
null
print('hi')
4.333333
11
0.538462
2
13
3.5
1
0
0
0
0
0
0
0
0
0
0
0
0.153846
13
2
12
6.5
0.636364
0
0
0
0
0
0.166667
0
0
0
0
0
0
1
0
true
0
0
0
0
1
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
1
0
0
0
0
1
0
5
0b15d489db8fe951610538e45eeb5d1418551f92
5,290
py
Python
rootfs/buildroot-2017.05.2/support/testing/tests/toolchain/test_external.py
suda-morris/SUDA_3518E
cfad829ecd574ffe5e8c59c96ffad5c1e1bf5fa4
[ "Apache-2.0" ]
4
2020-04-28T02:12:34.000Z
2021-02-23T01:57:39.000Z
rootfs/buildroot-2017.05.2/support/testing/tests/toolchain/test_external.py
donginhb/SUDA_3518E
cfad829ecd574ffe5e8c59c96ffad5c1e1bf5fa4
[ "Apache-2.0" ]
null
null
null
rootfs/buildroot-2017.05.2/support/testing/tests/toolchain/test_external.py
donginhb/SUDA_3518E
cfad829ecd574ffe5e8c59c96ffad5c1e1bf5fa4
[ "Apache-2.0" ]
5
2018-05-16T16:36:08.000Z
2020-11-04T05:51:11.000Z
import os import infra BASIC_CONFIG = \ """ BR2_TARGET_ROOTFS_CPIO=y # BR2_TARGET_ROOTFS_TAR is not set """ def has_broken_links(path): for root, dirs, files in os.walk(path): for f in files: fpath = os.path.join(root, f) if not os.path.exists(fpath): return True return False class TestExternalToolchain(infra.basetest.BRTest): def common_check(self): # Check for broken symlinks for d in ["lib", "usr/lib"]: path = os.path.join(self.builddir, "staging", d) self.assertFalse(has_broken_links(path)) path = os.path.join(self.builddir, "target", d) self.assertFalse(has_broken_links(path)) interp = infra.get_elf_prog_interpreter(self.builddir, self.toolchain_prefix, "bin/busybox") interp_path = os.path.join(self.builddir, "target", interp[1:]) self.assertTrue(os.path.exists(interp_path)) class TestExternalToolchainSourceryArmv4(TestExternalToolchain): config = BASIC_CONFIG + \ """ BR2_arm=y BR2_arm920t=y BR2_TOOLCHAIN_EXTERNAL=y BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_ARM=y """ toolchain_prefix = "arm-none-linux-gnueabi" def test_run(self): TestExternalToolchain.common_check(self) # Check the architecture variant arch = infra.get_file_arch(self.builddir, self.toolchain_prefix, "lib/libc.so.6") self.assertEqual(arch, "v4T") # Check the sysroot symlink symlink = os.path.join(self.builddir, "staging", "armv4t") self.assertTrue(os.path.exists(symlink)) self.assertEqual(os.readlink(symlink), "./") # Boot the system img = os.path.join(self.builddir, "images", "rootfs.cpio") self.emulator.boot(arch="armv5", kernel="builtin", options=["-initrd", img]) self.emulator.login() class TestExternalToolchainSourceryArmv5(TestExternalToolchain): config = BASIC_CONFIG + \ """ BR2_arm=y BR2_TOOLCHAIN_EXTERNAL=y BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_ARM=y """ toolchain_prefix = "arm-none-linux-gnueabi" def test_run(self): TestExternalToolchain.common_check(self) # Check the architecture variant arch = infra.get_file_arch(self.builddir, self.toolchain_prefix, "lib/libc.so.6") self.assertEqual(arch, "v5TE") # Boot the system img = os.path.join(self.builddir, "images", "rootfs.cpio") self.emulator.boot(arch="armv5", kernel="builtin", options=["-initrd", img]) self.emulator.login() class TestExternalToolchainSourceryArmv7(TestExternalToolchain): config = BASIC_CONFIG + \ """ BR2_arm=y BR2_cortex_a8=y BR2_ARM_EABI=y BR2_ARM_INSTRUCTIONS_THUMB2=y BR2_TOOLCHAIN_EXTERNAL=y BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_ARM=y """ toolchain_prefix = "arm-none-linux-gnueabi" def test_run(self): TestExternalToolchain.common_check(self) # Check the architecture variant arch = infra.get_file_arch(self.builddir, self.toolchain_prefix, "lib/libc.so.6") self.assertEqual(arch, "v7") isa = infra.get_elf_arch_tag(self.builddir, self.toolchain_prefix, "lib/libc.so.6", "Tag_THUMB_ISA_use") self.assertEqual(isa, "Thumb-2") # Check we have the sysroot symlink symlink = os.path.join(self.builddir, "staging", "thumb2") self.assertTrue(os.path.exists(symlink)) self.assertEqual(os.readlink(symlink), "./") # Boot the system img = os.path.join(self.builddir, "images", "rootfs.cpio") self.emulator.boot(arch="armv7", kernel="builtin", options=["-initrd", img]) self.emulator.login() class TestExternalToolchainLinaroArm(TestExternalToolchain): config = BASIC_CONFIG + \ """ BR2_arm=y BR2_cortex_a8=y BR2_TOOLCHAIN_EXTERNAL=y BR2_TOOLCHAIN_EXTERNAL_LINARO_ARM=y """ toolchain_prefix = "arm-linux-gnueabihf" def test_run(self): TestExternalToolchain.common_check(self) # Check the architecture variant arch = infra.get_file_arch(self.builddir, self.toolchain_prefix, "lib/libc.so.6") self.assertEqual(arch, "v7") isa = infra.get_elf_arch_tag(self.builddir, self.toolchain_prefix, "lib/libc.so.6", "Tag_THUMB_ISA_use") self.assertEqual(isa, "Thumb-2") # Boot the system img = os.path.join(self.builddir, "images", "rootfs.cpio") self.emulator.boot(arch="armv7", kernel="builtin", options=["-initrd", img]) self.emulator.login()
33.694268
71
0.576181
563
5,290
5.236234
0.20071
0.065129
0.033921
0.042741
0.798168
0.77137
0.760176
0.7154
0.671303
0.669607
0
0.013034
0.318336
5,290
156
72
33.910256
0.804493
0.051607
0
0.702128
0
0
0.096524
0.014611
0
0
0
0
0.138298
1
0.06383
false
0
0.021277
0
0.244681
0
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
9be676915d0532181e6c71c5e2b1c38885c5507c
11,307
py
Python
failure/app_before.py
Freedomisgood/Njupt_AutoJudge_requests
fcd9a10b12ffe25d8b5420e8b7138b970848a96a
[ "MIT" ]
5
2019-12-02T14:58:56.000Z
2021-04-22T08:00:50.000Z
failure/app_before.py
Freedomisgood/Njupt_AutoJudge_requests
fcd9a10b12ffe25d8b5420e8b7138b970848a96a
[ "MIT" ]
1
2021-09-07T06:17:49.000Z
2021-09-07T06:17:49.000Z
failure/app_before.py
Freedomisgood/Njupt_AutoJudge_requests
fcd9a10b12ffe25d8b5420e8b7138b970848a96a
[ "MIT" ]
1
2021-03-28T09:06:34.000Z
2021-03-28T09:06:34.000Z
# -*- coding: utf-8 -*- # @Time : 2019/12/1 21:44 # @Author : Mrli # @FileName: test.py # @Cnblogs :https://nymrli.top/ import re import random import requests from lxml import etree from njupt import Zhengfang from bs4 import BeautifulSoup from urllib.parse import parse_qs, urlencode from config import * # headers = dict([line.split(":",1) for line in raw_headers.split("\n") if line]) # 使用charles抓包 proxy = { 'http': '127.0.0.1:8888' } class Course(): ''' 课程测评 ''' def __init__(self, account, zf): self.zf = zf self.account = account # @staticmethod # def getcourses(account, cookies): def getcourses(self, account): ''' 通过首页,获得所有课程ID :return: ''' # 首页 index_url = 'http://jwxt.njupt.edu.cn/xs_main.aspx?xh={account}'.format(account=account) # html = getattr(requests, 'get')(url=index_url, headers=headers, cookies=cookies) html = self.zf.get(index_url) content = etree.HTML(html.text) coursesList = [] for c in content.xpath('//*[@id="headDiv"]/ul/li[4]/ul/li'): class_url_suffix = c.xpath('a/@href')[0] # 课程编号 course_id = parse_qs(class_url_suffix).get('xsjxpj.aspx?xkkh')[0] coursesList.append(course_id) return coursesList def getFirstVIEWSTATE(self, course_id): ''' 通过首页的VIEWSTATE,找到指定课程pjkc的__VIEWSTATE :param classID: 爬取到的第一个课程ID :return: 指定课程pjkc的__VIEWSTATE ''' data = { '__EVENTTARGET': '', '__EVENTARGUMENT': '', # 需要填充pjkc、__VIEWSTATE、Button1(保存、提交)、DataGrid1:_ctl7:JS1 'pjxx': '', 'Button1': '保 存', } target_url = 'http://jwxt.njupt.edu.cn/xs_jsmydpj.aspx?xkkh={classID}&xh={account}'. \ format(classID=course_id, account=self.account) view = self.zf._get_viewstate(target_url) # 获得classID提交需要的首页__VIEWSTATE data['__VIEWSTATE'] = view # 指定需要获取课程的__VIEWSTATE data['pjkc'] = course_id r = self.zf.post(target_url, data=data) soup = BeautifulSoup(r.content, 'lxml') viewstate = soup.find('input', attrs={"name": "__VIEWSTATE"}).get("value") return viewstate def saveComment(self, course_id, data): ''' 编码数据,并保存 :param classID: 需要评价的课程 :param data: 未编码的数据 :return: ''' target_url = 'http://jwxt.njupt.edu.cn/xs_jsmydpj.aspx?xkkh={classID}&xh={account}'. \ format(classID=course_id, account=self.account) data['Button1'] = '保 存' data_gb2312 = urlencode(data, encoding='gb2312') # html = self.zf.post(target_url, data=data_gb2312, proxies=proxy, headers=headers) html = self.zf.post(target_url, data=data_gb2312, headers=headers) if html.status_code == 200: print("成功提交") def commitComment(self, course_id, data): ''' 编码数据,并提交 :param classID: 需要评价的课程 :param data: 未编码的数据 :return: ''' target_url = 'http://jwxt.njupt.edu.cn/xs_jsmydpj.aspx?xkkh={classID}&xh={account}'. \ format(classID=course_id, account=self.account) data['Button2'] = '提 交' data_gb2312 = urlencode(data, encoding='gb2312') # html = self.zf.post(target_url, data=data_gb2312, proxies=proxy, headers=headers) html = self.zf.post(target_url, data=data_gb2312, headers=headers) if html.status_code == 200: print("成功提交") def getInputnums(self, course_id): ''' 通过课程ID获得下面需要提交的选项, 返回一个dict :param course_id: :return: ''' course_url = 'http://jwxt.njupt.edu.cn/xs_jsmydpj.aspx?xkkh={classID}&xh={stuID}'. \ format(classID=course_id, stuID=self.account) # 获取网页 html = self.zf.get_soup(course_url) option = html.find_all('select', attrs={'id': re.compile('DataGrid1__ctl\d+_JS\d+')}) # print(option) if option: # 获得最后一个选项的id内容 title = option[-1].get('id') # 处理选项信息 lastinput = re.search('DataGrid1__ctl(\d+)_JS(\d+)', title) row, col = int(lastinput.group(1)), int(lastinput.group(2)) data = {} if row and col: for c in range(1, col+1): # 从1开始 for r in range(2, row+1): # 从2开始 # data['DataGrid1:_ctl{rank}:JS1'.format(rank=rank)] = map_dict.get('完全认同') data['DataGrid1:_ctl{row}:JS{col}'.format(row=r, col=c)] = '完全认同' # data['DataGrid1:_ctl{rank}:JS1'.format(rank=random.randint(2, biggest))] = map_dict.get('勉强认同') data['DataGrid1:_ctl{row}:JS{col}'.format(row=random.randint(2, row), col=c)] = '勉强认同' else: raise Exception('选项获取失败') return data def run(self, courses: list): for n, c in enumerate(courses): base = { '__EVENTTARGET': '', '__EVENTARGUMENT': '', # 需要填充pjkc、__VIEWSTATE、Button1(保存、提交)、DataGrid1:_ctl7:JS1 'pjxx': '', # 'Button1': '保 存', } # 生成选项 grids_data = self.getInputnums(c) # print(grids_data) # 找到该课程的__VIEWSTATE base['__VIEWSTATE'] = self.getFirstVIEWSTATE(c) # 指定课程 base['pjkc'] = c # 提交选项-->使用不同函数决定保存还是提交 # base['Button1'] = '保 存' # 合并数据 postdata = dict(base, **grids_data) self.saveComment(c, postdata) if n == len(courses)-1: self.commitComment(c, postdata) class Teacher(): ''' 教师测评 ''' def __init__(self, account, zf): self.zf = zf self.account = account def getFirstVIEWSTATE(self, course_id): ''' 通过首页的VIEWSTATE,找到指定课程pjkc的__VIEWSTATE :param classID: 爬取到的第一个课程ID :return: 指定课程pjkc的__VIEWSTATE ''' data = { '__EVENTTARGET': '', '__EVENTARGUMENT': '', # 需要填充pjkc、__VIEWSTATE、Button1(保存、提交)、DataGrid1:_ctl7:JS1 'pjxx': '', 'Button1': '保 存', } target_url = 'http://jwxt.njupt.edu.cn/xsjxpj.aspx?xkkh={classID}&xh={account}'. \ format(classID=course_id, account=self.account) view = self.zf._get_viewstate(target_url) # 获得classID提交需要的首页__VIEWSTATE data['__VIEWSTATE'] = view # 指定需要获取课程的__VIEWSTATE data['pjkc'] = course_id r = self.zf.post(target_url, data=data) soup = BeautifulSoup(r.content, 'lxml') viewstate = soup.find('input', attrs={"name": "__VIEWSTATE"}).get("value") return viewstate def getInputnums(self, course_id): ''' 通过课程ID获得下面需要提交的选项, 返回一个dict :param course_id: :return: ''' course_url = 'http://jwxt.njupt.edu.cn/xsjxpj.aspx?xkkh={classID}&xh={stuID}'. \ format(classID=course_id, stuID=self.account) # 获取网页 html = self.zf.get_soup(course_url) # 找到最后一个选项 option = html.find_all('select', attrs={'id': re.compile('DataGrid1__ctl\d+_JS\d+')}) if option: # 获得最后一个选项的id内容 title = option[-1].get('id') # 处理选项信息 lastinput = re.search('DataGrid1__ctl(\d+)_JS(\d+)', title) row, col = int(lastinput.group(1)), int(lastinput.group(2)) data = {} if row and col: for c in range(1, col+1): # 从1开始 for r in range(2, row+1): # 从2开始 data['DataGrid1:_ctl{row}:JS{col}'.format(row=r, col=c)] = '好' data['DataGrid1:_ctl{row}:txtjs{col}'.format(row=r, col=c)] = '' randOption = random.randint(2, row) data['DataGrid1:_ctl{row}:JS{col}'.format(row=randOption, col=c)] = '较好' data['DataGrid1:_ctl{row}:txtjs{col}'.format(row=randOption, col=c)] = '' else: raise Exception('选项获取失败') return data def saveComment(self, course_id, data): ''' 编码数据,并保存 :param classID: 需要评价的课程 :param data: 未编码的数据 :return: ''' target_url = 'http://jwxt.njupt.edu.cn/xsjxpj.aspx?xkkh={classID}&xh={account}'. \ format(classID=course_id, account=self.account) data['Button1'] = '保 存' data['txt1'] = '' data['TextBox1'] = '0' data_gb2312 = urlencode(data, encoding='gb2312') # html = self.zf.post(target_url, data=data_gb2312, proxies=proxy, headers=headers) html = self.zf.post(target_url, data=data_gb2312, headers=headers) if html.status_code == 200: print("成功提交") def commitComment(self, course_id, data): ''' 编码数据,并提交 :param classID: 需要评价的课程 :param data: 未编码的数据 :return: ''' target_url = 'http://jwxt.njupt.edu.cn/xsjxpj.aspx?xkkh={classID}&xh={account}'. \ format(classID=course_id, account=self.account) data['Button2'] = '提 交' data['txt1'] = '' data['TextBox1'] = '0' data_gb2312 = urlencode(data, encoding='gb2312') # html = self.zf.post(target_url, data=data_gb2312, proxies=proxy, headers=headers) html = self.zf.post(target_url, data=data_gb2312, headers=headers) if html.status_code == 200: print("成功提交") def run(self, courses: list): for n, c in enumerate(courses): base = { '__EVENTTARGET': '', '__EVENTARGUMENT': '', # 需要填充pjkc、__VIEWSTATE、Button1(保存、提交)、DataGrid1:_ctl7:JS1 'pjxx': '', # 'Button1': '保 存', } # 生成选项 grids_data = self.getInputnums(c) # 找到该课程的__VIEWSTATE base['__VIEWSTATE'] = self.getFirstVIEWSTATE(c) # # 指定课程 base['pjkc'] = c # # 合并数据 postdata = dict(base, **grids_data) self.saveComment(c, postdata) if n == len(courses)-1: self.commitComment(c, postdata) class AutoJudge(Zhengfang): def __init__(self, *args, **kwargs): super(AutoJudge, self).__init__(*args, **kwargs) if self.account: self.account = kwargs.get('account') self.c = Course(account=self.account, zf=self) self.t = Teacher(account=self.account, zf=self) else: raise Exception("请输入账号密码") def run(self): # 获得该学期所有课程 # courses = Course.getcourses(account=self.account, cookies=self.cookies) courses = self.c.getcourses(account=self.account) if courses: # 完成课程评价 self.c.run(courses) print('---课程评价完成---') # # # 完成老师评价 self.t.run(courses) print('---教师评价完成---') else: print("接口未开放or已经全部测评完!") if __name__ == '__main__': account = input('请输入您的学号:') password = input('请输入正方的密码:') agent = AutoJudge(account=account, password=password) agent.run()
35.556604
117
0.546033
1,241
11,307
4.818695
0.178888
0.029431
0.018395
0.026756
0.768896
0.76087
0.755351
0.731773
0.708696
0.708696
0
0.021963
0.3114
11,307
317
118
35.66877
0.746083
0.18661
0
0.695187
0
0.042781
0.162029
0.034467
0
0
0
0
0
1
0.080214
false
0.010695
0.042781
0
0.165775
0.037433
0
0
0
null
0
0
0
0
1
1
1
1
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
5
9becfcf5dc9610fb0a160686965f6b75a539492e
163
py
Python
gdb_comments/integrations/pwndbg_utils.py
supersam654/gdb-comments
e20f87b84649609a1d6a34611bc68956cf620274
[ "MIT" ]
null
null
null
gdb_comments/integrations/pwndbg_utils.py
supersam654/gdb-comments
e20f87b84649609a1d6a34611bc68956cf620274
[ "MIT" ]
null
null
null
gdb_comments/integrations/pwndbg_utils.py
supersam654/gdb-comments
e20f87b84649609a1d6a34611bc68956cf620274
[ "MIT" ]
null
null
null
import pwndbg def info(s): print(s) def error(s): # It's good enough for printing exceptions and it's good enough for me. print(pwndbg.color.red(s))
18.111111
75
0.674847
29
163
3.793103
0.586207
0.054545
0.127273
0.236364
0.290909
0
0
0
0
0
0
0
0.214724
163
8
76
20.375
0.859375
0.423313
0
0
0
0
0
0
0
0
0
0
0
1
0.4
false
0
0.2
0
0.6
0.4
1
0
0
null
0
0
1
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
5
9bed5e2beef67d207d447349d1375d4367420387
54
py
Python
polyaxon/schemas/frameworks.py
elyase/polyaxon
1c19f059a010a6889e2b7ea340715b2bcfa382a0
[ "MIT" ]
null
null
null
polyaxon/schemas/frameworks.py
elyase/polyaxon
1c19f059a010a6889e2b7ea340715b2bcfa382a0
[ "MIT" ]
null
null
null
polyaxon/schemas/frameworks.py
elyase/polyaxon
1c19f059a010a6889e2b7ea340715b2bcfa382a0
[ "MIT" ]
null
null
null
from polyaxon_schemas.utils import Frameworks # noqa
27
53
0.833333
7
54
6.285714
1
0
0
0
0
0
0
0
0
0
0
0
0.12963
54
1
54
54
0.93617
0.074074
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
0
5