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
6aeb602b6e7dad97721f45ea669ca6ef648b03de
378
py
Python
codebleu/graph_generator/typeparsing/rewriterules/rewriterule.py
JetBrains-Research/metrics-evaluation
6e3696d11b9efcc7b4403f94b84651caed247649
[ "Apache-2.0" ]
2
2020-07-14T17:00:28.000Z
2020-08-13T10:19:52.000Z
codebleu/graph_generator/typeparsing/rewriterules/rewriterule.py
JetBrains-Research/metrics-evaluation
6e3696d11b9efcc7b4403f94b84651caed247649
[ "Apache-2.0" ]
3
2020-07-24T12:29:24.000Z
2021-06-28T17:07:45.000Z
codebleu/graph_generator/typeparsing/rewriterules/rewriterule.py
JetBrains-Research/metrics-evaluation
6e3696d11b9efcc7b4403f94b84651caed247649
[ "Apache-2.0" ]
null
null
null
from abc import ABC, abstractmethod from codebleu.graph_generator.typeparsing.nodes import TypeAnnotationNode class RewriteRule(ABC): @abstractmethod def matches(self, node: TypeAnnotationNode, parent: TypeAnnotationNode) -> bool: pass @abstractmethod def apply(self, matching_node...
29.076923
85
0.732804
35
378
7.857143
0.6
0.123636
0
0
0
0
0
0
0
0
0
0
0.201058
378
13
86
29.076923
0.910596
0
0
0.444444
0
0
0
0
0
0
0
0
0
1
0.222222
false
0.222222
0.222222
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
0a8205a92a24d98396babca279947db4848dcc78
258
py
Python
tgbotcallbackdata/builders/json.py
Abstract-X/tgbotcallbackdata
4161d9bc695ac58477e0508032bc2efd12d2a2a4
[ "MIT" ]
null
null
null
tgbotcallbackdata/builders/json.py
Abstract-X/tgbotcallbackdata
4161d9bc695ac58477e0508032bc2efd12d2a2a4
[ "MIT" ]
null
null
null
tgbotcallbackdata/builders/json.py
Abstract-X/tgbotcallbackdata
4161d9bc695ac58477e0508032bc2efd12d2a2a4
[ "MIT" ]
null
null
null
from typing import Union import json from tgbotcallbackdata.builders.base import AbstractBuilder class JSONBuilder(AbstractBuilder): def serialize_data(self, data: Union[str, int, list]) -> str: return json.dumps(data, separators=(",", ":"))
23.454545
65
0.728682
30
258
6.233333
0.7
0
0
0
0
0
0
0
0
0
0
0
0.155039
258
10
66
25.8
0.857798
0
0
0
0
0
0.007752
0
0
0
0
0
0
1
0.166667
false
0
0.5
0.166667
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
1
1
0
0
3
0a98c7c48941c2ff884c835e0b710a9a3d4eba21
552
py
Python
madtornado/ancient/custom/uiMethod.py
SystemLight/madtornado
707ee156c33facd7050449f9fccef44f1c302b19
[ "MIT" ]
8
2020-04-12T13:53:13.000Z
2022-01-11T15:31:31.000Z
madtornado/ancient/custom/uiMethod.py
SystemLight/Mad_tornado3
707ee156c33facd7050449f9fccef44f1c302b19
[ "MIT" ]
null
null
null
madtornado/ancient/custom/uiMethod.py
SystemLight/Mad_tornado3
707ee156c33facd7050449f9fccef44f1c302b19
[ "MIT" ]
null
null
null
def hello_method(self): return 'hello uiMethod' def hello_func(self, content): return "<div>{}</h1>".format(content) def static_url(self, path): """ 你可能不太了解这个重写的意义,原生tornado已经有了这个方法,如果你不知道这件事,你可以不用看我接下来说的 为了更好的让madtornado控制静态文件,提供更好更遍历的使用,我的服务端入口中根本没有启用原生的staticFileHandler 这样我就可以自己来控制静态文件提供...
23
72
0.731884
53
552
7.54717
0.735849
0.04
0
0
0
0
0
0
0
0
0
0.002169
0.164855
552
23
73
24
0.86551
0.57971
0
0
0
0
0.155914
0
0
0
0
0
0
1
0.5
false
0
0
0.333333
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
0a9d43706051d4c9836f7ee0a82a8c1cd4756fb5
213
py
Python
problems/valid-palindrome/solution-2.py
MleMoe/LeetCode-1
14f275ba3c8079b820808da17c4952fcf9c8253c
[ "MIT" ]
2
2021-03-25T01:58:55.000Z
2021-08-06T12:47:13.000Z
problems/valid-palindrome/solution-2.py
MleMoe/LeetCode-1
14f275ba3c8079b820808da17c4952fcf9c8253c
[ "MIT" ]
3
2019-08-27T13:25:42.000Z
2021-08-28T17:49:34.000Z
problems/valid-palindrome/solution-2.py
MleMoe/LeetCode-1
14f275ba3c8079b820808da17c4952fcf9c8253c
[ "MIT" ]
1
2021-08-14T08:49:39.000Z
2021-08-14T08:49:39.000Z
class Solution: def isPalindrome(self, s: str) -> bool: if s is None: return True s = ''.join(filter(str.isalnum, s)).lower() return s == s[::-1] # isalnum 检测字符串是否由字母和数字组成
23.666667
51
0.549296
27
213
4.333333
0.703704
0
0
0
0
0
0
0
0
0
0
0.006803
0.309859
213
8
52
26.625
0.789116
0.107981
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
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
0
0
0
0
0
1
0
0
3
0aa0d4221228d6622ace4387355e8c133deea83d
300
py
Python
local_files/train_factory.py
yongjingli/FairMOT
c6609ba455b507693722728f1338ebb8a2785182
[ "MIT" ]
null
null
null
local_files/train_factory.py
yongjingli/FairMOT
c6609ba455b507693722728f1338ebb8a2785182
[ "MIT" ]
null
null
null
local_files/train_factory.py
yongjingli/FairMOT
c6609ba455b507693722728f1338ebb8a2785182
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from .mot import MotTrainer from .mot import MotKpTrainer from .mot import MotKpWhTrainer train_factory = { 'mot': MotTrainer, 'mot_kp': MotKpTrainer, 'mot_kpwh': MotKpWhTrainer, }
20
38
0.793333
36
300
6.138889
0.416667
0.135747
0.217195
0
0
0
0
0
0
0
0
0
0.146667
300
14
39
21.428571
0.863281
0
0
0
0
0
0.056667
0
0
0
0
0
0
1
0
false
0
0.545455
0
0.545455
0.090909
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
0aab31c0edc1d8d7a24fad3b730ee311e3be8da4
330
py
Python
Beginner/Testing Robot (TSTROBOT)/robot.py
anishsingh42/CodeChef
50f5c0438516210895e513bc4ee959b9d99ef647
[ "Apache-2.0" ]
127
2020-10-13T18:04:35.000Z
2022-02-17T10:56:27.000Z
Beginner/Testing Robot (TSTROBOT)/robot.py
anishsingh42/CodeChef
50f5c0438516210895e513bc4ee959b9d99ef647
[ "Apache-2.0" ]
132
2020-10-13T18:06:53.000Z
2021-10-17T18:44:26.000Z
Beginner/Testing Robot (TSTROBOT)/robot.py
anishsingh42/CodeChef
50f5c0438516210895e513bc4ee959b9d99ef647
[ "Apache-2.0" ]
364
2020-10-13T18:04:52.000Z
2022-03-04T14:34:53.000Z
t = int(input()) while t: N, X = map(int, input().split()) S = input() arr = [] arr.append(X) for i in S: if i=='R': X += 1 arr.append(X) if i=='L': X -= 1 arr.append(X) arr = set(arr) print(len(arr)) t = t-...
15
36
0.345455
46
330
2.478261
0.456522
0.236842
0.263158
0.192982
0.210526
0
0
0
0
0
0
0.017751
0.487879
330
22
37
15
0.656805
0
0
0.1875
0
0
0.006042
0
0
0
0
0
0
1
0
false
0
0
0
0
0.0625
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
0aacf73873eb4c1d260438884b8378452ee6a98c
292
py
Python
leap_year.py
danielemsilva/python-demos
267fa62aef46012fcb7101ef2ceedf2348840a7a
[ "Apache-2.0" ]
null
null
null
leap_year.py
danielemsilva/python-demos
267fa62aef46012fcb7101ef2ceedf2348840a7a
[ "Apache-2.0" ]
null
null
null
leap_year.py
danielemsilva/python-demos
267fa62aef46012fcb7101ef2ceedf2348840a7a
[ "Apache-2.0" ]
null
null
null
# Check if the given year is leap year year = int(raw_input("Enter a year: ")) leap_year = False if year % 400 == 0: leap_year = True elif year % 4 == 0 and year % 100 != 0: leap_year = True if leap_year == True: print "%d is leap year" % year else: print "%d is not leap year" % year
20.857143
39
0.643836
54
292
3.388889
0.444444
0.306011
0.196721
0.153005
0
0
0
0
0
0
0
0.044843
0.236301
292
13
40
22.461538
0.775785
0.123288
0
0.2
0
0
0.188976
0
0
0
0
0
0
0
null
null
0
0
null
null
0.2
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
1
0
0
0
0
0
0
0
0
3
0abc362b59db6eb80a9c39b801e9809e5d9efb9e
1,716
py
Python
app/http/controllers/TodoController.py
knguyen111601/penguin_masonite_todos_backend
ff096d909ccb11507d4ff301fe012b8c200577d9
[ "MIT" ]
null
null
null
app/http/controllers/TodoController.py
knguyen111601/penguin_masonite_todos_backend
ff096d909ccb11507d4ff301fe012b8c200577d9
[ "MIT" ]
null
null
null
app/http/controllers/TodoController.py
knguyen111601/penguin_masonite_todos_backend
ff096d909ccb11507d4ff301fe012b8c200577d9
[ "MIT" ]
null
null
null
""" A TodoController Module """ from masonite.controllers import Controller from masonite.request import Request from app.Todo import Todo class TodoController(Controller): """Class Docstring Description """ def __init__(self, request:Request): self.request = request def show(self): "...
31.2
77
0.583333
188
1,716
5.303191
0.260638
0.099298
0.064193
0.052156
0.389168
0.306921
0.128385
0.128385
0.128385
0.128385
0
0
0.275641
1,716
55
78
31.2
0.802092
0.30303
0
0.333333
0
0
0.06673
0
0
0
0
0.109091
0
1
0.222222
false
0
0.111111
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
0
0
0
0
1
0
0
3
0ac0256ffe5580ad2acd338abe623f974834a281
342
py
Python
netron_link.py
sbrugman/larq
b080d9452847e9403b3d2fafd9425b488be71567
[ "Apache-2.0" ]
2
2020-12-27T15:30:07.000Z
2021-03-31T01:52:37.000Z
netron_link.py
sbrugman/larq
b080d9452847e9403b3d2fafd9425b488be71567
[ "Apache-2.0" ]
null
null
null
netron_link.py
sbrugman/larq
b080d9452847e9403b3d2fafd9425b488be71567
[ "Apache-2.0" ]
1
2022-03-19T13:28:24.000Z
2022-03-19T13:28:24.000Z
netron_link = "https://lutzroeder.github.io/netron" cors_proxy = "https://cors-anywhere.herokuapp.com" release_url = "https://github.com/larq/zoo/releases/download" def html_format(source, language, css_class, options, md): return f'<a href="{netron_link}/?url={cors_proxy}/{release_url}/{source}">Interactive arch...
42.75
115
0.751462
48
342
5.1875
0.6875
0.080321
0
0
0
0
0
0
0
0
0
0
0.076023
342
7
116
48.857143
0.787975
0
0
0
0
0
0.631579
0.21345
0
0
0
0
0
1
0.2
false
0
0
0.2
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
3
0ac887e8dbc7f39700c752377bff9451ddd12a54
213
py
Python
Stack.py
Wheatwizard/Klein
4514d0332107fd7a32ed23db5caf00663ac599b5
[ "MIT" ]
20
2017-05-16T06:24:34.000Z
2021-09-03T16:04:53.000Z
Stack.py
Wheatwizard/Klein
4514d0332107fd7a32ed23db5caf00663ac599b5
[ "MIT" ]
null
null
null
Stack.py
Wheatwizard/Klein
4514d0332107fd7a32ed23db5caf00663ac599b5
[ "MIT" ]
null
null
null
class Stack(list): def __getitem__(self,key): try: return super(Stack, self).__getitem__(key) except IndexError: return 0 def pop(self): try: return super(Stack, self).pop() except: return 0
17.75
45
0.676056
30
213
4.533333
0.466667
0.132353
0.205882
0.279412
0.338235
0
0
0
0
0
0
0.011765
0.201878
213
11
46
19.363636
0.788235
0
0
0.363636
0
0
0
0
0
0
0
0
0
1
0.181818
false
0
0
0
0.636364
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
0aedfba51a18e4bf123a1b5e61577002dc8ec100
822
py
Python
pirates/leveleditor/worldData/pvp_rock_big_1.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
3
2021-02-25T06:38:13.000Z
2022-03-22T07:00:15.000Z
pirates/leveleditor/worldData/pvp_rock_big_1.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
null
null
null
pirates/leveleditor/worldData/pvp_rock_big_1.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
1
2021-02-25T06:38:17.000Z
2021-02-25T06:38:17.000Z
# uncompyle6 version 3.2.0 # Python bytecode 2.4 (62061) # Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)] # Embedded file name: pirates.leveleditor.worldData.pvp_rock_big_1 from pandac.PandaModules import Point3, VBase3, Vec4, Vec3 objectStruct = {'Objects': {'120...
117.428571
380
0.688564
112
822
4.964286
0.758929
0.097122
0.035971
0.039568
0
0
0
0
0
0
0
0.178378
0.099757
822
7
381
117.428571
0.572973
0.26764
0
0
0
0
0.456522
0.117057
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
0af4738ff59c6b81e9772133d628730d569957de
14,045
py
Python
improvement_exp_entitiy_level/at_least_one.py
dalakada/TwiCSv2
40672a99a201f6e2aab9dd085e1f4a29e8253f3b
[ "MIT" ]
2
2019-04-01T00:54:39.000Z
2021-06-22T18:02:47.000Z
improvement_exp_entitiy_level/at_least_one.py
dalakada/TwiCSv2
40672a99a201f6e2aab9dd085e1f4a29e8253f3b
[ "MIT" ]
null
null
null
improvement_exp_entitiy_level/at_least_one.py
dalakada/TwiCSv2
40672a99a201f6e2aab9dd085e1f4a29e8253f3b
[ "MIT" ]
2
2018-06-20T14:50:03.000Z
2020-08-27T01:55:34.000Z
from nltk.tokenize import word_tokenize import string import pandas as pd import itertools import copy tweets=pd.read_csv("tweets_1million_for_others.csv",sep =',') #input comes all lowercase def makeupperdynamic(input): output=[] # tokenized_words =word_tokenize(input) tokenized_words=input.split() ...
135.048077
11,420
0.650267
1,650
14,045
5.5
0.664848
0.013884
0.006612
0.004408
0.008815
0.008815
0
0
0
0
0
0.004381
0.138555
14,045
104
11,421
135.048077
0.745681
0.058455
0
0
0
0
0.60508
0.002274
0
0
0
0
0
1
0.044444
false
0.022222
0.111111
0.022222
0.2
0.044444
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
0af7288a9052da637b85d240b67185965f20ec48
1,105
py
Python
classes/rooms.py
Loekring/Neversoft
a9e600131585741652b62b2dbbaa2febc1656843
[ "MIT" ]
1
2018-01-21T21:15:52.000Z
2018-01-21T21:15:52.000Z
classes/rooms.py
Loekring/Neversoft
a9e600131585741652b62b2dbbaa2febc1656843
[ "MIT" ]
null
null
null
classes/rooms.py
Loekring/Neversoft
a9e600131585741652b62b2dbbaa2febc1656843
[ "MIT" ]
null
null
null
import random as r offBoundsMsgs = ["Der er ikkje noko i den retninga.", "Du møtte ein vegg.", "Du kjem deg ikkje vidare i den retninga."] roomSizeX, roomSizeY = 2, 1 class Rooms: # Dette er baseklassa til allle romma def __init__(self, name, smell, feel, taste, look, sound, jump): self.name = name...
31.571429
119
0.6181
155
1,105
4.354839
0.432258
0.103704
0.088889
0
0
0
0
0
0
0
0
0.002469
0.266968
1,105
34
120
32.5
0.830864
0.031674
0
0
0
0
0.269663
0
0
0
0
0
0
1
0.307692
false
0
0.038462
0.269231
0.653846
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
e40caa3a1a3b46d636c8bee906d985c484ef2e58
2,774
py
Python
psycopg2/lib/__init__.py
moibenko/enstore
6f2ff5b67ff73872a9e68f2a68b0bdaa70cef9b9
[ "Intel", "Unlicense" ]
4
2021-10-17T11:17:59.000Z
2022-02-28T16:58:40.000Z
psycopg2/lib/__init__.py
moibenko/enstore
6f2ff5b67ff73872a9e68f2a68b0bdaa70cef9b9
[ "Intel", "Unlicense" ]
17
2021-10-05T21:44:06.000Z
2022-03-31T16:58:40.000Z
psycopg2/lib/__init__.py
moibenko/enstore
6f2ff5b67ff73872a9e68f2a68b0bdaa70cef9b9
[ "Intel", "Unlicense" ]
8
2021-09-02T18:55:49.000Z
2022-03-09T21:05:28.000Z
"""A Python driver for PostgreSQL psycopg is a PostgreSQL_ database adapter for the Python_ programming language. This is version 2, a complete rewrite of the original code to provide new-style classes for connection and cursor objects and other sweet candies. Like the original, psycopg 2 was written with the aim of b...
38
79
0.75739
385
2,774
5.358442
0.511688
0.042656
0.065923
0.01842
0.128938
0.103732
0.034901
0.034901
0.034901
0.034901
0
0.010526
0.178082
2,774
72
80
38.527778
0.894298
0.577866
0
0.307692
0
0
0.097817
0
0
0
0
0.013889
0
1
0
false
0
0.538462
0
0.538462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
1
0
1
0
0
3
7c40f9def75da53dc5e20563c1c10410e552d853
347
py
Python
home/views.py
pbarden/shopify_django_app
b57c7a638cdb4d7a76102b423b4ade99197d1ac5
[ "MIT" ]
338
2015-01-13T20:29:24.000Z
2022-03-25T21:49:03.000Z
home/views.py
pbarden/shopify_django_app
b57c7a638cdb4d7a76102b423b4ade99197d1ac5
[ "MIT" ]
37
2015-05-08T15:05:56.000Z
2021-12-22T07:46:26.000Z
home/views.py
pbarden/shopify_django_app
b57c7a638cdb4d7a76102b423b4ade99197d1ac5
[ "MIT" ]
140
2015-01-13T20:28:03.000Z
2022-03-22T19:54:24.000Z
from django.shortcuts import render import shopify from shopify_app.decorators import shop_login_required @shop_login_required def index(request): products = shopify.Product.find(limit=3) orders = shopify.Order.find(limit=3, order="created_at DESC") return render(request, 'home/index.html', {'products': pr...
34.7
87
0.769452
47
347
5.553191
0.574468
0.068966
0.130268
0
0
0
0
0
0
0
0
0.006536
0.118156
347
9
88
38.555556
0.846405
0
0
0
0
0
0.126801
0
0
0
0
0
0
1
0.125
false
0
0.375
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
7c498efcf930d492f2bcd2a0894579e623a6ffcc
223
py
Python
test/test_definitions/__init__.py
vasili-v/actuator
fea8b3ff4a2adbaa2382399f5c08253348f8b080
[ "MIT" ]
null
null
null
test/test_definitions/__init__.py
vasili-v/actuator
fea8b3ff4a2adbaa2382399f5c08253348f8b080
[ "MIT" ]
10
2015-09-11T08:15:07.000Z
2015-09-11T09:14:29.000Z
test/test_definitions/__init__.py
vasili-v/actuator
fea8b3ff4a2adbaa2382399f5c08253348f8b080
[ "MIT" ]
null
null
null
import unittest import test_definition import test_flag test_suite = unittest.TestSuite((test_definition.test_suite, test_flag.test_suite)) if __name__ == '__main__': unittest.main()
20.272727
60
0.67713
25
223
5.44
0.4
0.198529
0.176471
0.25
0
0
0
0
0
0
0
0
0.246637
223
10
61
22.3
0.809524
0
0
0
0
0
0.035874
0
0
0
0
0
0
1
0
false
0
0.428571
0
0.428571
0
1
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
7c5fe443c90dd8af9fee09b33c23fcc07a0db89a
233
py
Python
hook-keyring.backend.py
stv0g/keyring
258fd7d2bb200a6cf2dc7a0ea769b111d1885857
[ "MIT" ]
1
2021-06-17T11:22:37.000Z
2021-06-17T11:22:37.000Z
hook-keyring.backend.py
stv0g/keyring
258fd7d2bb200a6cf2dc7a0ea769b111d1885857
[ "MIT" ]
null
null
null
hook-keyring.backend.py
stv0g/keyring
258fd7d2bb200a6cf2dc7a0ea769b111d1885857
[ "MIT" ]
4
2021-05-12T14:16:57.000Z
2022-03-21T20:07:37.000Z
# Used by pyinstaller to expose hidden imports try: from importlib import metadata except ImportError: import importlib_metadata as metadata hiddenimports = [ep.value for ep in metadata.entry_points()['keyring.backends']]
23.3
80
0.776824
30
233
5.966667
0.8
0
0
0
0
0
0
0
0
0
0
0
0.158798
233
9
81
25.888889
0.913265
0.188841
0
0
0
0
0.085562
0
0
0
0
0
0
1
0
false
0
0.8
0
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
7c8676e4f5876b84bff331bf26f064974d2c4daf
183
py
Python
server/flaskr/config.py
Intel-OpenVINO-Edge-AI-Scholarship/arcface-project
86458a207c8e265bfc231736234ec38e4e70588b
[ "MIT" ]
null
null
null
server/flaskr/config.py
Intel-OpenVINO-Edge-AI-Scholarship/arcface-project
86458a207c8e265bfc231736234ec38e4e70588b
[ "MIT" ]
5
2020-09-26T01:15:39.000Z
2022-02-10T02:11:54.000Z
server/flaskr/config.py
Intel-OpenVINO-Edge-AI-Scholarship/arcface-project
86458a207c8e265bfc231736234ec38e4e70588b
[ "MIT" ]
null
null
null
# config.py # DEBUG = False # SQLALCHEMY_ECHO = False # instance/config.py DEBUG = True SQLALCHEMY_ECHO = True ARCFACE_PREBATCHNORM_LAYER_INDEX = -4 ARCFACE_POOLING_LAYER_INDEX = -3
18.3
37
0.781421
25
183
5.4
0.6
0.118519
0.192593
0
0
0
0
0
0
0
0
0.012658
0.136612
183
9
38
20.333333
0.841772
0.360656
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
7cc2ca649e4a6fa3b3b409b96cfa460a6918159e
14,609
py
Python
aztk/spark/client/cluster/operations.py
atg-abhishek/aztk
e3d060e58373c316fddbc0907f08b1430e1b2691
[ "MIT" ]
null
null
null
aztk/spark/client/cluster/operations.py
atg-abhishek/aztk
e3d060e58373c316fddbc0907f08b1430e1b2691
[ "MIT" ]
null
null
null
aztk/spark/client/cluster/operations.py
atg-abhishek/aztk
e3d060e58373c316fddbc0907f08b1430e1b2691
[ "MIT" ]
null
null
null
from aztk.client.cluster import CoreClusterOperations from aztk.spark import models from aztk.spark.client.base import SparkBaseOperations from .helpers import ( copy, create, create_user, delete, diagnostics, download, get, get_application_log, get_application_status, get_confi...
47.125806
120
0.630844
1,902
14,609
4.745531
0.108307
0.027255
0.023931
0.047086
0.637713
0.569798
0.492245
0.47053
0.444383
0.398405
0
0.000096
0.288452
14,609
309
121
47.278317
0.868206
0.61113
0
0.177215
0
0
0
0
0
0
0
0
0
1
0.227848
false
0.050633
0.050633
0
0.506329
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
7cdd9c0fc68949d0ed2b701ff3b894b234fd71b8
61
py
Python
limix/model/ggp.py
huangyh09/limix
bed5b8e0aaa9b11f19bdd13b76d21510e56064be
[ "Apache-2.0" ]
93
2017-05-25T21:54:45.000Z
2022-03-30T14:51:01.000Z
limix/model/ggp.py
huangyh09/limix
bed5b8e0aaa9b11f19bdd13b76d21510e56064be
[ "Apache-2.0" ]
90
2017-04-20T16:59:41.000Z
2022-02-02T17:40:58.000Z
limix/model/ggp.py
huangyh09/limix
bed5b8e0aaa9b11f19bdd13b76d21510e56064be
[ "Apache-2.0" ]
28
2017-05-31T21:59:19.000Z
2022-02-09T18:12:51.000Z
from glimix_core.ggp import ExpFamGP __all__ = ["ExpFamGP"]
15.25
36
0.770492
8
61
5.25
0.875
0
0
0
0
0
0
0
0
0
0
0
0.131148
61
3
37
20.333333
0.792453
0
0
0
0
0
0.131148
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
7cf322ce294cdebaf49d14dbb671adb1db3ed087
1,275
py
Python
tests/utils/text_test.py
elifesciences/sciencebeam-parser
66964f283612b8d6fa8a23ad8790292c1ec07651
[ "MIT" ]
13
2021-08-04T12:11:17.000Z
2022-03-28T20:41:20.000Z
tests/utils/text_test.py
elifesciences/sciencebeam-parser
66964f283612b8d6fa8a23ad8790292c1ec07651
[ "MIT" ]
33
2021-08-05T08:37:59.000Z
2022-03-29T18:42:09.000Z
tests/utils/text_test.py
elifesciences/sciencebeam-parser
66964f283612b8d6fa8a23ad8790292c1ec07651
[ "MIT" ]
1
2022-01-05T14:53:06.000Z
2022-01-05T14:53:06.000Z
from sciencebeam_parser.utils.text import normalize_text, parse_comma_separated_value class TestNormalizeText: def test_should_replace_dash_with_hyphen(self): assert normalize_text('–') == '-' def test_should_replace_accent_with_quote(self): assert normalize_text('’') == "'" def test_sho...
35.416667
92
0.712941
166
1,275
5.018072
0.301205
0.084034
0.156062
0.172869
0.470588
0.441777
0.441777
0.261705
0.261705
0.261705
0
0
0.173333
1,275
35
93
36.428571
0.789374
0
0
0.26087
0
0
0.073725
0
0
0
0
0
0.434783
1
0.434783
false
0
0.043478
0
0.565217
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
1
0
0
0
0
0
0
0
3
7cf40bc2eb39d462abd5c5aa167e59e8349a2c65
1,327
py
Python
attendees/occasions/views/__init__.py
xjlin0/attendees
3c337ee68c00f17cbbbe26f2e33131e57850e4ed
[ "MIT" ]
1
2020-03-26T00:42:04.000Z
2020-03-26T00:42:04.000Z
attendees/occasions/views/__init__.py
xjlin0/attendees
3c337ee68c00f17cbbbe26f2e33131e57850e4ed
[ "MIT" ]
null
null
null
attendees/occasions/views/__init__.py
xjlin0/attendees
3c337ee68c00f17cbbbe26f2e33131e57850e4ed
[ "MIT" ]
null
null
null
from .page.datagrid_assembly_all_attendances import datagrid_assembly_all_attendances_list_view # from .division.assembly_attendances_others import assembly_attendance_others_list_view from .page.datagrid_user_organization_attendances import datagrid_user_organization_attendances_list_view from .page.datagrid_coworker_...
82.9375
113
0.930671
171
1,327
6.660819
0.134503
0.067603
0.122915
0.077261
0.330114
0
0
0
0
0
0
0
0.045968
1,327
15
114
88.466667
0.899684
0.064808
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
3
6b00472433ca17dba8245198eeddaed4644d694e
509
py
Python
truecaller/truecaller_api/serializers.py
jigschristian/truecaller
2896772543c0d21e544a36b62a0b2ee66c6b6bf6
[ "Apache-2.0" ]
null
null
null
truecaller/truecaller_api/serializers.py
jigschristian/truecaller
2896772543c0d21e544a36b62a0b2ee66c6b6bf6
[ "Apache-2.0" ]
3
2021-10-17T11:18:45.000Z
2021-11-01T07:03:32.000Z
truecaller/truecaller_api/serializers.py
jigschristian/truecaller
2896772543c0d21e544a36b62a0b2ee66c6b6bf6
[ "Apache-2.0" ]
3
2021-08-13T18:31:55.000Z
2021-10-18T03:09:29.000Z
from rest_framework import serializers from rest_framework.serializers import ValidationError from phonenumber_field.serializerfields import PhoneNumberField from phonenumber_field.phonenumber import to_python from .models import Contact, OtherContact class ContactSerializer(serializers.ModelSerializer): class M...
26.789474
63
0.785855
49
509
7.897959
0.469388
0.041344
0.087855
0.180879
0.206718
0
0
0
0
0
0
0
0.168959
509
18
64
28.277778
0.914894
0
0
0.307692
0
0
0.027505
0
0
0
0
0
0
1
0
false
0
0.384615
0
0.692308
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
6b05b3bd001b15fc449bfd1ad1828db882690953
100
py
Python
hubblestack/__init__.py
praksinha/hubble
54062cf07bf2462ea9be149d740f38defd849b25
[ "Apache-2.0" ]
null
null
null
hubblestack/__init__.py
praksinha/hubble
54062cf07bf2462ea9be149d740f38defd849b25
[ "Apache-2.0" ]
null
null
null
hubblestack/__init__.py
praksinha/hubble
54062cf07bf2462ea9be149d740f38defd849b25
[ "Apache-2.0" ]
null
null
null
__version__ = '3.0.8' __buildinfo__ = {'branch': 'BRANCH_NOT_SET', 'last_commit': 'COMMIT_NOT_SET'}
33.333333
77
0.72
14
100
4.214286
0.714286
0.20339
0
0
0
0
0
0
0
0
0
0.032967
0.09
100
3
77
33.333333
0.615385
0
0
0
0
0
0.49505
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
6b1225c6e12aaa2c18778bbb9461c948048e1de0
1,240
py
Python
kashgari/tasks/classification/__init__.py
echo-ray/Kashgari
fc8ba49fd051bd8c09f0c4092aa96b656f27eced
[ "Apache-2.0" ]
16
2020-12-02T13:44:20.000Z
2022-03-16T00:49:34.000Z
kashgari/tasks/classification/__init__.py
echo-ray/Kashgari
fc8ba49fd051bd8c09f0c4092aa96b656f27eced
[ "Apache-2.0" ]
1
2022-01-11T08:14:05.000Z
2022-02-25T09:29:17.000Z
kashgari/tasks/classification/__init__.py
echo-ray/Kashgari
fc8ba49fd051bd8c09f0c4092aa96b656f27eced
[ "Apache-2.0" ]
3
2021-06-18T00:00:58.000Z
2022-03-26T11:35:24.000Z
# encoding: utf-8 # author: BrikerMan # contact: eliyar917@gmail.com # blog: https://eliyar.biz # file: __init__.py # time: 2019-05-22 12:40 from kashgari.tasks.classification.models import BiLSTM_Model from kashgari.tasks.classification.models import BiGRU_Model from kashgari.tasks.classification.models import CNN...
32.631579
68
0.854032
167
1,240
6.095808
0.305389
0.141454
0.200393
0.365422
0.59725
0.59725
0.509823
0.368369
0
0
0
0.014159
0.08871
1,240
37
69
33.513514
0.886726
0.103226
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
6b124bb43c97994a8d1e3a8c71d65a2610c9be51
2,672
py
Python
src/combinatory_input/finder.py
phantamanta44/combinatory_input
875a243fc6f4b1d38928068a9c087a006d7eee26
[ "MIT" ]
null
null
null
src/combinatory_input/finder.py
phantamanta44/combinatory_input
875a243fc6f4b1d38928068a9c087a006d7eee26
[ "MIT" ]
null
null
null
src/combinatory_input/finder.py
phantamanta44/combinatory_input
875a243fc6f4b1d38928068a9c087a006d7eee26
[ "MIT" ]
null
null
null
import os import os_call from .hid import device_joydev NAME_BUF_LEN = 128 class Finder(): def __init__(self, initial_set): self.possible = initial_set self.predicates = [] def filter(self, predicate): self.predicates.append(predicate) return self def name_contains(self, ...
34.25641
113
0.634731
360
2,672
4.466667
0.227778
0.044776
0.069652
0.095771
0.344527
0.301617
0.301617
0.26306
0.26306
0.210821
0
0.002038
0.265344
2,672
77
114
34.701299
0.817117
0.010479
0
0
0
0
0.04807
0
0
0
0
0
0
1
0.266667
false
0
0.05
0.166667
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
6b15a59bdb22bcd3d89519d87742820db30eda7b
741
py
Python
gym/wrappers/transform_observation.py
n0whereRuoxi/rl-starter-files
b2ae68d544f4665a62b3d782c44008ef050e9b62
[ "MIT" ]
123
2018-11-20T09:14:29.000Z
2020-12-28T20:05:55.000Z
gym/wrappers/transform_observation.py
n0whereRuoxi/rl-starter-files
b2ae68d544f4665a62b3d782c44008ef050e9b62
[ "MIT" ]
5
2020-09-26T01:30:01.000Z
2022-01-13T03:15:42.000Z
gym/wrappers/transform_observation.py
n0whereRuoxi/rl-starter-files
b2ae68d544f4665a62b3d782c44008ef050e9b62
[ "MIT" ]
46
2018-12-08T23:12:52.000Z
2021-01-15T12:08:00.000Z
from gym import ObservationWrapper class TransformObservation(ObservationWrapper): r"""Transform the observation via an arbitrary function. Example:: >>> import gym >>> env = gym.make('CartPole-v1') >>> env = TransformObservation(env, lambda obs: obs + 0.1*np.random.randn(*obs.shape...
27.444444
94
0.626181
83
741
5.493976
0.554217
0.061404
0
0
0
0
0
0
0
0
0
0.070397
0.252362
741
26
95
28.5
0.752708
0.529015
0
0
0
0
0
0
0
0
0
0
0.111111
1
0.222222
false
0
0.111111
0.111111
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
6b186727d05aec4c388488c919e2bf4aacaa1d18
168
py
Python
models/cycle_gan/transformations/registry.py
maxdel/CipherGAN
367be620d56a0cdc88a49bcdc5123d5bc5e6f122
[ "MIT" ]
131
2018-01-15T17:13:44.000Z
2022-03-01T09:57:40.000Z
models/cycle_gan/transformations/registry.py
maxdel/CipherGAN
367be620d56a0cdc88a49bcdc5123d5bc5e6f122
[ "MIT" ]
13
2018-06-01T12:40:24.000Z
2022-02-09T23:26:52.000Z
models/cycle_gan/transformations/registry.py
maxdel/CipherGAN
367be620d56a0cdc88a49bcdc5123d5bc5e6f122
[ "MIT" ]
29
2018-01-16T11:47:02.000Z
2022-03-01T10:16:45.000Z
_TRANSFORMATIONS = dict() def register(name): def add_to_dict(fn): global _TRANSFORMATIONS _TRANSFORMATIONS[name] = fn return fn return add_to_dict
14
31
0.714286
21
168
5.380952
0.47619
0.088496
0.159292
0
0
0
0
0
0
0
0
0
0.214286
168
11
32
15.272727
0.856061
0
0
0
0
0
0
0
0
0
0
0
0
1
0.285714
false
0
0
0
0.571429
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
3
6b34fbca8fe872005dba057d28a8e45ff1f47cd4
134
py
Python
case2/is_palindrome.py
emre/unit-test-workshop
6a323dd7ffac08e7aa56e09d307798d4ae984fa9
[ "MIT" ]
1
2017-11-20T18:15:12.000Z
2017-11-20T18:15:12.000Z
case2/is_palindrome.py
emre/unit-test-workshop
6a323dd7ffac08e7aa56e09d307798d4ae984fa9
[ "MIT" ]
null
null
null
case2/is_palindrome.py
emre/unit-test-workshop
6a323dd7ffac08e7aa56e09d307798d4ae984fa9
[ "MIT" ]
null
null
null
import re def is_palindrome(text): text = re.sub('[^a-zA-Z]', '', text) text = text.lower() return text == text[::-1]
13.4
40
0.544776
20
134
3.6
0.65
0.444444
0
0
0
0
0
0
0
0
0
0.009804
0.238806
134
9
41
14.888889
0.696078
0
0
0
0
0
0.068182
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
6b3e3bad564f38709a5b016674c991da884de1a4
235
py
Python
lbdrabbit/example/handlers/rpc/__init__.py
MacHu-GWU/lbdrabbit-project
e808f116bc85d95f3d545e085bede56df41b6d92
[ "MIT" ]
null
null
null
lbdrabbit/example/handlers/rpc/__init__.py
MacHu-GWU/lbdrabbit-project
e808f116bc85d95f3d545e085bede56df41b6d92
[ "MIT" ]
null
null
null
lbdrabbit/example/handlers/rpc/__init__.py
MacHu-GWU/lbdrabbit-project
e808f116bc85d95f3d545e085bede56df41b6d92
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from lbdrabbit import LbdFuncConfig __lbd_func_config__ = LbdFuncConfig() __lbd_func_config__.apigw_method_int_type = LbdFuncConfig.ApiMethodIntType.rpc __lbd_func_config__.apigw_method_enable_cors_yes = True
29.375
78
0.838298
30
235
5.733333
0.666667
0.122093
0.226744
0.302326
0.27907
0
0
0
0
0
0
0.004651
0.085106
235
7
79
33.571429
0.795349
0.089362
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
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
3
6b45dd522d9ac315c63939462377c6a25df876d1
312
py
Python
Azure_DataScientist_Associate/Exercise/Cha02_branch_code.py
Jiaying-Wu/Note-Azure
f8f0b917debf735ad238e69361cc77799c1b8f5e
[ "MIT" ]
null
null
null
Azure_DataScientist_Associate/Exercise/Cha02_branch_code.py
Jiaying-Wu/Note-Azure
f8f0b917debf735ad238e69361cc77799c1b8f5e
[ "MIT" ]
null
null
null
Azure_DataScientist_Associate/Exercise/Cha02_branch_code.py
Jiaying-Wu/Note-Azure
f8f0b917debf735ad238e69361cc77799c1b8f5e
[ "MIT" ]
null
null
null
# Branch code with if, elif and else structure user_input = input("Would you like to continue? ") if user_input == "no" or user_input == "n": print("Exiting") elif user_input == "yes" or user_input == "y": print("Continuing ...\nComplete!") else: print("Please try again and respond with yes or no.")
39
57
0.673077
48
312
4.270833
0.583333
0.219512
0.107317
0
0
0
0
0
0
0
0
0
0.182692
312
8
57
39
0.803922
0.141026
0
0
0
0
0.41573
0
0
0
0
0
0
1
0
false
0
0
0
0
0.428571
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
3
6b47974fc79c38d35af5116efc4fde6b2c7e43e5
385
py
Python
sandstone/models/pools/max_pool.py
mariehane/ehr_model_aging
a6535b9f77ec8294df59b48c67e016997d2bac33
[ "MIT" ]
1
2022-03-24T07:58:08.000Z
2022-03-24T07:58:08.000Z
sandstone/models/pools/max_pool.py
mariehane/ehr_model_aging
a6535b9f77ec8294df59b48c67e016997d2bac33
[ "MIT" ]
null
null
null
sandstone/models/pools/max_pool.py
mariehane/ehr_model_aging
a6535b9f77ec8294df59b48c67e016997d2bac33
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from sandstone.models.pools.abstract_pool import AbstractPool from sandstone.models.pools.factory import RegisterPool @RegisterPool('GlobalMaxPool') class GlobalMaxPool(AbstractPool): def replaces_fc(self): return False def forward(self, x, batch=None): # X ...
24.0625
61
0.698701
52
385
5.115385
0.596154
0.082707
0.142857
0.180451
0
0
0
0
0
0
0
0.003289
0.21039
385
15
62
25.666667
0.871711
0.036364
0
0
0
0
0.03523
0
0
0
0
0
0
1
0.181818
false
0
0.363636
0.090909
0.818182
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
863822c838bcf21c63e40fcb7b6d9e336b31439d
3,063
py
Python
web/readDocumentBarcode.py
patjawat/tcds
115ae8151a152a21538cf0a837379bb1e3204ea2
[ "BSD-3-Clause" ]
null
null
null
web/readDocumentBarcode.py
patjawat/tcds
115ae8151a152a21538cf0a837379bb1e3204ea2
[ "BSD-3-Clause" ]
41
2019-07-28T03:42:14.000Z
2019-08-25T14:51:55.000Z
web/readDocumentBarcode.py
patjawat/tcds
115ae8151a152a21538cf0a837379bb1e3204ea2
[ "BSD-3-Clause" ]
null
null
null
import sys import time from pathlib import Path import os import shutil # from pyzbar import pyzbar # from pyzbar.pyzbar import decode # import argparse # import cv2 from PIL import Image # import psycopg2 # hn = str(sys.argv[1]) # SOURCE_PATH = '/Users/patjawat/dev/scriptsoft/tcds/web/REG_TIF/'+hn # DISINATION_PATH ...
41.391892
137
0.513222
395
3,063
4.01519
0.311392
0.065574
0.06053
0.075662
0.389029
0.356873
0.27995
0.271122
0.220681
0.220681
0
0.007386
0.336925
3,063
74
138
41.391892
0.747415
0.907933
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
3
864968e685e1ff44c5af2e537ba5466d4a0ddd70
120
py
Python
rcm/snappy_test.py
breadcrumbbuilds/bcws-psu-research
e541ffc050807186160a6b8d7cc6ac78fc9f3ddc
[ "Apache-2.0" ]
null
null
null
rcm/snappy_test.py
breadcrumbbuilds/bcws-psu-research
e541ffc050807186160a6b8d7cc6ac78fc9f3ddc
[ "Apache-2.0" ]
null
null
null
rcm/snappy_test.py
breadcrumbbuilds/bcws-psu-research
e541ffc050807186160a6b8d7cc6ac78fc9f3ddc
[ "Apache-2.0" ]
null
null
null
from snappy import ProductIO p = ProductIO.readProduct('snappy/testdata/MER_FRS_L1B_SUBSET.dim') list(p.getBandNames())
30
67
0.816667
17
120
5.588235
0.823529
0
0
0
0
0
0
0
0
0
0
0.008929
0.066667
120
3
68
40
0.839286
0
0
0
0
0
0.316667
0.316667
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
8662836b1aa3ad20180a142fb5f2602add09994f
218
py
Python
LeetCode/35.py
KevinTMtz/CompetitiveProgramming
0bf8a297c404073df707b6d7b06965b055ccd872
[ "MIT" ]
1
2020-12-08T02:01:18.000Z
2020-12-08T02:01:18.000Z
LeetCode/35.py
KevinTMtz/CompetitiveProgramming
0bf8a297c404073df707b6d7b06965b055ccd872
[ "MIT" ]
null
null
null
LeetCode/35.py
KevinTMtz/CompetitiveProgramming
0bf8a297c404073df707b6d7b06965b055ccd872
[ "MIT" ]
null
null
null
# # LeetCode # # Problem - 35 # URL - https://leetcode.com/problems/search-insert-position/ # class Solution: def searchInsert(self, nums: List[int], target: int) -> int: return bisect.bisect_left(nums, target)
19.818182
62
0.697248
28
218
5.392857
0.785714
0
0
0
0
0
0
0
0
0
0
0.010811
0.151376
218
10
63
21.8
0.805405
0.37156
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0.333333
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
3
8685f0cc27a7a5988b52c620bd1d388b893e142d
6,161
py
Python
model-optimizer/mo/front/common/partial_infer/eltwise_test.py
anton-potapov/openvino
84119afe9a8c965e0a0cd920fff53aee67b05108
[ "Apache-2.0" ]
2
2020-11-18T14:14:06.000Z
2020-11-28T04:55:57.000Z
model-optimizer/mo/front/common/partial_infer/eltwise_test.py
anton-potapov/openvino
84119afe9a8c965e0a0cd920fff53aee67b05108
[ "Apache-2.0" ]
30
2020-11-13T11:44:07.000Z
2022-02-21T13:03:16.000Z
model-optimizer/mo/front/common/partial_infer/eltwise_test.py
mmakridi/openvino
769bb7709597c14debdaa356dd60c5a78bdfa97e
[ "Apache-2.0" ]
3
2021-03-09T08:27:29.000Z
2021-04-07T04:58:54.000Z
""" Copyright (C) 2018-2020 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to i...
40.801325
92
0.475897
714
6,161
3.87535
0.169468
0.039754
0.065052
0.070473
0.714131
0.714131
0.697145
0.674738
0.674738
0.665703
0
0.05352
0.384353
6,161
150
93
41.073333
0.675982
0.092031
0
0.736842
0
0
0.118006
0
0
0
0
0
0.078947
1
0.04386
false
0
0.04386
0
0.096491
0
0
0
0
null
0
0
0
0
1
0
0
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
3
86a9d80b1a86740c7c4ad6cf4029d53fa25b6e33
96
py
Python
pacote-download/PycharmProjects/exerciciosaula7/aula07a.py
ThamirisAdriano/Curso-em-video-Python
5715dfa0d558f7ebe41666a537cccf20fd79ce72
[ "MIT" ]
1
2020-09-05T16:02:56.000Z
2020-09-05T16:02:56.000Z
pacote-download/PycharmProjects/exerciciosaula7/aula07a.py
ThamirisAdriano/Curso-em-video-Python
5715dfa0d558f7ebe41666a537cccf20fd79ce72
[ "MIT" ]
null
null
null
pacote-download/PycharmProjects/exerciciosaula7/aula07a.py
ThamirisAdriano/Curso-em-video-Python
5715dfa0d558f7ebe41666a537cccf20fd79ce72
[ "MIT" ]
null
null
null
n1 = int(input('Um valor')) n2 = int(input('Outro valor')) print('A soma vale{}'.format(n1+n2))
24
36
0.635417
17
96
3.588235
0.705882
0.262295
0
0
0
0
0
0
0
0
0
0.047059
0.114583
96
3
37
32
0.670588
0
0
0
0
0
0.333333
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
86aec8456420ea27bbc729a856e36e80b7b75e44
38,975
py
Python
pages/predictions.py
Phatdeluxe/adult_diabetes_prediction
35a0bd5b9ca82cd70a231d83e184e7562b564484
[ "MIT" ]
null
null
null
pages/predictions.py
Phatdeluxe/adult_diabetes_prediction
35a0bd5b9ca82cd70a231d83e184e7562b564484
[ "MIT" ]
3
2020-03-24T17:51:03.000Z
2021-08-23T20:28:41.000Z
pages/predictions.py
Phatdeluxe/adult_diabetes_prediction
35a0bd5b9ca82cd70a231d83e184e7562b564484
[ "MIT" ]
null
null
null
import dash import dash_bootstrap_components as dbc import dash_core_components as dcc import dash_daq as daq import dash_html_components as html from dash.dependencies import Input, Output from joblib import load from app import app import pandas as pd pipeline = load('assets/pipeline.joblib') all_options = { 'AL': ...
198.852041
2,717
0.617858
3,882
38,975
6.195775
0.532458
0.008648
0.008731
0.005821
0.021869
0.009646
0.006902
0.006902
0.006902
0.004075
0
0.002499
0.117152
38,975
196
2,718
198.852041
0.696504
0
0
0.146341
0
0.006098
0.600139
0.000564
0
0
0
0
0
1
0.018293
false
0.006098
0.054878
0.012195
0.091463
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
86afd96ae41e23adad1f655e83fefc03c6f030e9
346
py
Python
New/demo1.py
KhanhLee99/face-recognize
2e8e83b3965c41d7b4dadfcd156a636f3e44ef32
[ "MIT" ]
null
null
null
New/demo1.py
KhanhLee99/face-recognize
2e8e83b3965c41d7b4dadfcd156a636f3e44ef32
[ "MIT" ]
null
null
null
New/demo1.py
KhanhLee99/face-recognize
2e8e83b3965c41d7b4dadfcd156a636f3e44ef32
[ "MIT" ]
null
null
null
import cv2 from imageio import imread from keras.models import load_model import dlib from model import create_model from align import AlignDlib # INITIALIZE MODELS # nn4_small2 = create_model() # nn4_small2.summary() # # nn4_small2.load_weights('weights/nn4.small2.v1.h5') # alignment = AlignDlib('shape_predicto...
18.210526
64
0.794798
49
346
5.387755
0.55102
0.136364
0
0
0
0
0
0
0
0
0
0.042904
0.124277
346
18
65
19.222222
0.828383
0.526012
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
3
86c5b89b958c61e03cb932c3a0a01b3a693efbb8
391
py
Python
app/audit/routes.py
Martlark/compose-explorer
f0c6d24568e16596c99b6c6a4725fd77166f4c15
[ "CC-BY-3.0" ]
1
2021-08-22T01:59:02.000Z
2021-08-22T01:59:02.000Z
app/audit/routes.py
Martlark/docker-explorer
f0c6d24568e16596c99b6c6a4725fd77166f4c15
[ "CC-BY-3.0" ]
null
null
null
app/audit/routes.py
Martlark/docker-explorer
f0c6d24568e16596c99b6c6a4725fd77166f4c15
[ "CC-BY-3.0" ]
null
null
null
# admin management # routes.py from flask_login import login_required from app import admin_required from app.audit import bp from app.models import AuditRecord @bp.route("/<int:item_id>/", methods=["GET", "PUT", "POST", "DELETE"]) @bp.route("/", methods=["GET", "POST"]) @admin_required def admin_route_audit(item_id...
26.066667
70
0.751918
60
391
4.666667
0.45
0.085714
0.107143
0
0
0
0
0
0
0
0
0
0.104859
391
14
71
27.928571
0.8
0.066496
0
0
0
0
0.107735
0
0
0
0
0
0
1
0.111111
false
0
0.444444
0.111111
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
1
1
0
0
3
86ca7380d9cbd2dca37f282b5f1db43c703108b0
2,411
py
Python
stubs.min/System/ComponentModel/__init___parts/BaseNumberConverter.py
ricardyn/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
1
2021-02-02T13:39:16.000Z
2021-02-02T13:39:16.000Z
stubs.min/System/ComponentModel/__init___parts/BaseNumberConverter.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
stubs.min/System/ComponentModel/__init___parts/BaseNumberConverter.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
class BaseNumberConverter(TypeConverter): """ Provides a base type converter for nonfloating-point numerical types. """ def CanConvertFrom(self,*__args): """ CanConvertFrom(self: BaseNumberConverter,context: ITypeDescriptorContext,sourceType: Type) -> bool Determines if this converter can convert an...
41.568966
139
0.733306
279
2,411
6.308244
0.258065
0.027273
0.068182
0.118182
0.627273
0.627273
0.592045
0.555682
0.463636
0.463636
0
0
0.20365
2,411
57
140
42.298246
0.916667
0.837412
0
0.444444
0
0
0
0
0
0
0
0
0
1
0.444444
false
0.444444
0
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
3
86d1e7089698b2e7e1436d645fc5b1cb835ea1e3
580
py
Python
tests/layer/test_geotiff.py
geoscript/geoscript-py
c18850ef3011bc2bedba16873aee83fb63b33a26
[ "MIT" ]
22
2015-01-14T01:37:40.000Z
2021-07-11T14:21:38.000Z
tests/layer/test_geotiff.py
geoscript/geoscript-py
c18850ef3011bc2bedba16873aee83fb63b33a26
[ "MIT" ]
15
2017-10-13T19:21:15.000Z
2021-08-06T08:59:31.000Z
tests/layer/test_geotiff.py
geoscript/geoscript-py
c18850ef3011bc2bedba16873aee83fb63b33a26
[ "MIT" ]
15
2015-01-14T01:38:35.000Z
2020-04-26T02:05:01.000Z
import sys, java, unittest from geoscript.layer import GeoTIFF class GeoTIFF_Test: def setUp(self): self.tif = GeoTIFF('data/sfdem.tif') def testBounds(self): assert self.tif.bounds() is not None assert self.tif.bounds().getwest() == 589980.0 assert self.tif.bounds().south == 4913700.0 assert...
27.619048
52
0.667241
84
580
4.583333
0.5
0.145455
0.202597
0.296104
0.207792
0
0
0
0
0
0
0.078556
0.187931
580
20
53
29
0.738854
0
0
0
0
0
0.058621
0
0
0
0
0
0.5
1
0.1875
false
0
0.125
0
0.375
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
3
86e731e8ac72e43d5de0d3a12db0285e124ab304
3,632
py
Python
python3.4Smartforest/lib/python3.4/site-packages/django/contrib/flatpages/templatetags/flatpages.py
letouriste001/SmartForest_2.0
109b78bf1e8c8404800f377ab969395ccbb617be
[ "MIT" ]
null
null
null
python3.4Smartforest/lib/python3.4/site-packages/django/contrib/flatpages/templatetags/flatpages.py
letouriste001/SmartForest_2.0
109b78bf1e8c8404800f377ab969395ccbb617be
[ "MIT" ]
null
null
null
python3.4Smartforest/lib/python3.4/site-packages/django/contrib/flatpages/templatetags/flatpages.py
letouriste001/SmartForest_2.0
109b78bf1e8c8404800f377ab969395ccbb617be
[ "MIT" ]
null
null
null
from django import template from django.conf import settings from django.contrib.flatpages.models import FlatPage from django.contrib.sites.shortcuts import get_current_site register = template.Library() class FlatpageNode(template.Node): def __init__(self, context_name, starts_with=None, user=None): sel...
3,632
3,632
0.63326
467
3,632
4.800857
0.291221
0.049063
0.024978
0.050847
0.154773
0.073149
0.029438
0.029438
0
0
0
0.005783
0.285793
3,632
1
3,632
3,632
0.85852
0.354075
0
0.214286
0
0
0.049202
0
0
0
0
0
0
1
0.053571
false
0
0.071429
0
0.178571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
811d21581f9c97f3d103b76ab8814812318e43e1
299
py
Python
home.py
1Mathias/PublicNLPA
e1b7e94210528fe3bced86305dbbe1336bdd72ab
[ "MIT" ]
null
null
null
home.py
1Mathias/PublicNLPA
e1b7e94210528fe3bced86305dbbe1336bdd72ab
[ "MIT" ]
null
null
null
home.py
1Mathias/PublicNLPA
e1b7e94210528fe3bced86305dbbe1336bdd72ab
[ "MIT" ]
null
null
null
# from nltk.tokenize import sent_tokenize,word_tokenize # Example_word = "this could be us but no one cares" # print(word_tokenize(Example_word)) from nltk.tokenize import sent_tokenize,word_tokenize Exmple_word = "This could be us! I am here to listen." print(word_tokenize(Exmple_word))
23
57
0.77592
47
299
4.723404
0.468085
0.216216
0.144144
0.198198
0.567568
0.414414
0.414414
0.414414
0
0
0
0
0.147157
299
12
58
24.916667
0.870588
0.468227
0
0
0
0
0.255034
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.333333
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
812585cdd03cbd928921773f545bfce7aa2576d8
2,452
py
Python
error.py
adaptrum-richard/repo
b5d66baf63ff148adc5e9c354939ea311483606c
[ "Apache-2.0" ]
27
2015-01-08T00:39:18.000Z
2022-03-18T04:00:07.000Z
error.py
sramaswamy/repo
c9571423f843340de19ef576ccaa418ac72fdb58
[ "Apache-2.0" ]
2
2016-12-25T06:47:21.000Z
2021-06-28T03:18:55.000Z
error.py
sramaswamy/repo
c9571423f843340de19ef576ccaa418ac72fdb58
[ "Apache-2.0" ]
33
2015-01-08T00:39:22.000Z
2021-08-17T09:59:47.000Z
# # Copyright (C) 2008 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
26.085106
74
0.712072
339
2,452
4.988201
0.451327
0.070964
0.045535
0.047309
0.163217
0.15139
0.15139
0.15139
0.15139
0.15139
0
0.004059
0.196166
2,452
93
75
26.365591
0.853881
0.505302
0
0.461538
0
0
0.017683
0
0
0
0
0
0
1
0.333333
false
0.025641
0.025641
0.128205
0.794872
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
d48c9ecce0fb0249b9fc22b7bcb591ec45af5584
182
py
Python
sellotape/sellotape_dj/chat/urls.py
itzhaki1234/sellotape
326e52d3743ccc35309a96c89a30e1c6a7e77a3b
[ "MIT" ]
6
2020-08-11T07:28:35.000Z
2020-10-08T03:29:10.000Z
sellotape/sellotape_dj/chat/urls.py
itzhaki1234/sellotape
326e52d3743ccc35309a96c89a30e1c6a7e77a3b
[ "MIT" ]
60
2020-08-14T15:20:10.000Z
2020-11-08T09:54:01.000Z
sellotape/sellotape_dj/chat/urls.py
itzhaki1234/sellotape
326e52d3743ccc35309a96c89a30e1c6a7e77a3b
[ "MIT" ]
10
2020-08-11T07:40:39.000Z
2021-03-09T11:54:32.000Z
from django.urls import path from .views import index, room app_name = 'chat' urlpatterns = [ path('', index, name='index'), path('<str:room_name>/', room, name='room'), ]
18.2
48
0.642857
25
182
4.6
0.52
0.13913
0.208696
0
0
0
0
0
0
0
0
0
0.175824
182
9
49
20.222222
0.766667
0
0
0
0
0
0.159341
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
d495fc9f5c56c2aedaed52382e4d3d663e9c09fd
190
py
Python
services/customers/app/urls.py
rafaeltardivo/micro-order
310e4b10d0f2dee24d2e36b544c25dc1c062d6d6
[ "MIT" ]
1
2020-05-04T23:09:06.000Z
2020-05-04T23:09:06.000Z
services/customers/app/urls.py
rafaeltardivo/micro-order
310e4b10d0f2dee24d2e36b544c25dc1c062d6d6
[ "MIT" ]
5
2020-06-05T23:58:35.000Z
2021-06-04T23:13:46.000Z
services/customers/app/urls.py
rafaeltardivo/micro-order
310e4b10d0f2dee24d2e36b544c25dc1c062d6d6
[ "MIT" ]
null
null
null
from rest_framework import routers from .views import CustomerViewSet router = routers.SimpleRouter() router.register("", CustomerViewSet, base_name="customers") urlpatterns = router.urls
23.75
59
0.810526
21
190
7.238095
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.1
190
7
60
27.142857
0.888889
0
0
0
0
0
0.047368
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
d4cf9f6e949aaa42f011c5fdf4339a236b89224f
1,084
py
Python
tests/Recommender/Baseline/test_aggregation.py
juliobguedes/DRecPy
d625ce6a9a05186f4b5377bf7a28d29f15a83647
[ "MIT" ]
28
2020-05-05T08:24:07.000Z
2021-03-08T18:07:08.000Z
tests/Recommender/Baseline/test_aggregation.py
juliobguedes/DRecPy
d625ce6a9a05186f4b5377bf7a28d29f15a83647
[ "MIT" ]
null
null
null
tests/Recommender/Baseline/test_aggregation.py
juliobguedes/DRecPy
d625ce6a9a05186f4b5377bf7a28d29f15a83647
[ "MIT" ]
4
2020-09-09T19:58:56.000Z
2021-12-12T14:46:38.000Z
from DRecPy.Recommender.Baseline.aggregation import mean from DRecPy.Recommender.Baseline.aggregation import weighted_mean import pytest @pytest.fixture def interactions(): return [5, 2, 3, 1] @pytest.fixture def interactions_zeroes(): return [0, 0, 0, 0] @pytest.fixture def similarities(): return [1,...
20.846154
72
0.747232
147
1,084
5.29932
0.197279
0.138639
0.082157
0.097561
0.223363
0.223363
0
0
0
0
0
0.040087
0.148524
1,084
51
73
21.254902
0.8039
0
0
0.206897
0
0
0
0
0
0
0
0
0.241379
1
0.37931
false
0
0.103448
0.137931
0.62069
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
d4df5efa78b1b904df7f45e6b03aba6bbe1e74ba
264
py
Python
test_demos.py
Kahsius/timebudget
e58b7121aa5846db784fb80ab6b8dfffdcc8fae5
[ "Apache-2.0" ]
145
2019-10-22T21:45:53.000Z
2022-03-12T02:15:55.000Z
test_demos.py
Kahsius/timebudget
e58b7121aa5846db784fb80ab6b8dfffdcc8fae5
[ "Apache-2.0" ]
13
2019-10-23T15:15:20.000Z
2021-02-10T00:12:36.000Z
test_demos.py
Kahsius/timebudget
e58b7121aa5846db784fb80ab6b8dfffdcc8fae5
[ "Apache-2.0" ]
9
2019-10-25T00:44:25.000Z
2020-09-23T11:54:17.000Z
import pytest # stupidly simple integration tests. def test_demo1(): # Note this doesn't properly test the atexit.register Oh well. import demo1 def test_demo2(): import demo2 def test_demo3(): import demo3 def test_demo4(): import demo4
15.529412
67
0.708333
37
264
4.945946
0.594595
0.153005
0
0
0
0
0
0
0
0
0
0.039024
0.223485
264
16
68
16.5
0.853659
0.363636
0
0
0
0
0
0
0
0
0
0
0
1
0.444444
true
0
0.555556
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
0
0
0
0
3
d4e800baa61a5a582121817c7eac2ad649bd9578
29,574
py
Python
fluctmatch/quasi.py
alayah2626517/fluctmatch
100331927ffd8bc9a30ea6875438eb5fd8d8cfae
[ "MIT" ]
null
null
null
fluctmatch/quasi.py
alayah2626517/fluctmatch
100331927ffd8bc9a30ea6875438eb5fd8d8cfae
[ "MIT" ]
null
null
null
fluctmatch/quasi.py
alayah2626517/fluctmatch
100331927ffd8bc9a30ea6875438eb5fd8d8cfae
[ "MIT" ]
1
2020-11-03T06:32:04.000Z
2020-11-03T06:32:04.000Z
from os import path, mkdir from subprocess import check_call, check_output from charmm import Script from numpy import genfromtxt import pandas as pd import matplotlib.pyplot as plt import re import util root = '/Users/yizao/IdeaProjects/python/connect_macro_micro' charmm = '/Users/yizao/charmm/exec/osx/charmm' d_sequ...
43.555228
132
0.641476
4,273
29,574
4.196115
0.063187
0.061127
0.084997
0.047685
0.78087
0.743893
0.703291
0.669827
0.645566
0.615839
0
0.019713
0.221242
29,574
678
133
43.619469
0.758803
0.001048
0
0.536134
0
0
0.112499
0.020685
0
0
0
0
0
1
0.07563
false
0
0.016807
0
0.104202
0.011765
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
d4ecf7b4ea4de811d725ac0d3949ec8aa55cfd65
31,600
py
Python
pymatgen/analysis/chemenv/connectivity/tests/test_connected_components.py
wangyusu/pymatgen
a90af2fe71eff15134ca33c6e58f07caba425ae9
[ "MIT" ]
921
2015-01-25T22:17:05.000Z
2022-03-27T20:58:38.000Z
pymatgen/analysis/chemenv/connectivity/tests/test_connected_components.py
wangyusu/pymatgen
a90af2fe71eff15134ca33c6e58f07caba425ae9
[ "MIT" ]
1,631
2015-01-05T21:05:04.000Z
2022-03-31T18:40:17.000Z
pymatgen/analysis/chemenv/connectivity/tests/test_connected_components.py
wangyusu/pymatgen
a90af2fe71eff15134ca33c6e58f07caba425ae9
[ "MIT" ]
851
2015-01-01T17:38:00.000Z
2022-03-31T02:14:07.000Z
#!/usr/bin/env python __author__ = "waroquiers" import networkx as nx from pymatgen.analysis.chemenv.connectivity.connected_components import ( ConnectedComponent, ) from pymatgen.analysis.chemenv.connectivity.connectivity_finder import ( ConnectivityFinder, ) from pymatgen.analysis.chemenv.connectivity.env...
34.273319
115
0.519367
4,627
31,600
3.466177
0.071321
0.042524
0.029742
0.021948
0.770857
0.736501
0.702893
0.685123
0.654446
0.644656
0
0.08653
0.331835
31,600
921
116
34.310532
0.673061
0.047373
0
0.668598
0
0
0.254997
0.000931
0
0
0
0
0.133256
1
0.006952
false
0.001159
0.019699
0
0.02781
0
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
d4f3cbaa8594b98161c3cc00f3f2414106edb1cf
5,458
py
Python
dcp_py/day168/day168.py
sraaphorst/Daily-Coding-Problem
acfcf83a66099f3e4b69e2447600b8208cd9ab1b
[ "MIT" ]
null
null
null
dcp_py/day168/day168.py
sraaphorst/Daily-Coding-Problem
acfcf83a66099f3e4b69e2447600b8208cd9ab1b
[ "MIT" ]
null
null
null
dcp_py/day168/day168.py
sraaphorst/Daily-Coding-Problem
acfcf83a66099f3e4b69e2447600b8208cd9ab1b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # day169.py # By Sebastian Raaphorst, 2019 # I think that this does indeed use new memory. We should use mutable programming. import numpy as np from typing import List def numpy_rot90(a: List[List[int]]) -> List[List[int]]: """ Using numpy, rotate a matrix by 90 degrees. For example: ...
37.902778
122
0.521436
972
5,458
2.888889
0.148148
0.014245
0.021368
0.027066
0.686254
0.686254
0.670228
0.670228
0.667379
0.657407
0
0.175689
0.255405
5,458
143
123
38.167832
0.515256
0.696775
0
0.666667
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.083333
0.083333
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
3
d4f87609f968e5215451dfe249a666410e7aeb19
153
py
Python
moozy_admin/apps.py
meetthecoder/moozy
e21dab01f2aab4c5a4b2c4151f8408138cf681a5
[ "MIT" ]
null
null
null
moozy_admin/apps.py
meetthecoder/moozy
e21dab01f2aab4c5a4b2c4151f8408138cf681a5
[ "MIT" ]
null
null
null
moozy_admin/apps.py
meetthecoder/moozy
e21dab01f2aab4c5a4b2c4151f8408138cf681a5
[ "MIT" ]
null
null
null
from django.apps import AppConfig class MoozyAdminConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'moozy_admin'
21.857143
56
0.771242
18
153
6.388889
0.888889
0
0
0
0
0
0
0
0
0
0
0
0.143791
153
6
57
25.5
0.877863
0
0
0
0
0
0.261438
0.189542
0
0
0
0
0
1
0
false
0
0.25
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
be00d51d8e617ab909858e9b342bf587ff52514a
1,252
py
Python
successstories/managers.py
buketkonuk/pythondotorg
4d8d9728eea7c7b2fef32eb6f24fda409cf24a06
[ "Apache-2.0" ]
1
2021-01-03T00:58:16.000Z
2021-01-03T00:58:16.000Z
successstories/managers.py
buketkonuk/pythondotorg
4d8d9728eea7c7b2fef32eb6f24fda409cf24a06
[ "Apache-2.0" ]
null
null
null
successstories/managers.py
buketkonuk/pythondotorg
4d8d9728eea7c7b2fef32eb6f24fda409cf24a06
[ "Apache-2.0" ]
null
null
null
import random from django.db.models import Manager from django.db.models.query import QuerySet from django.db.models.aggregates import Count class StoryQuerySet(QuerySet): def draft(self): return self.filter(is_published=False) def published(self): return self.filter(is_published=True) ...
26.638298
69
0.662939
156
1,252
5.230769
0.339744
0.122549
0.137255
0.128676
0.330882
0.07598
0
0
0
0
0
0.004098
0.220447
1,252
46
70
27.217391
0.831967
0.092652
0
0.266667
0
0
0.006184
0
0
0
0
0.021739
0
1
0.333333
false
0
0.133333
0.3
0.9
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
0
0
0
1
0
0
0
3
be0bdec4dd0ddb0caaef72e78126e35ccddd9166
230
py
Python
79_euler.py
f0ti/euler
c939f80f6fe806297c60cc6763dc1dc5daa86328
[ "MIT" ]
1
2021-07-31T12:50:38.000Z
2021-07-31T12:50:38.000Z
79_euler.py
f0ti/euler
c939f80f6fe806297c60cc6763dc1dc5daa86328
[ "MIT" ]
null
null
null
79_euler.py
f0ti/euler
c939f80f6fe806297c60cc6763dc1dc5daa86328
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 with open("p079_keylog.txt") as f: c = [line.rstrip() for line in f] c = list(set(c)) print(c) for n in c: print("Pas {} vijne {}".format(n[0], n[1:])) print("Pas {} vijne {}".format(n[1], n[2:]))
17.692308
46
0.565217
44
230
2.931818
0.590909
0.031008
0.20155
0.294574
0.310078
0
0
0
0
0
0
0.042328
0.178261
230
12
47
19.166667
0.640212
0.091304
0
0
0
0
0.216346
0
0
0
0
0
0
1
0
false
0
0
0
0
0.428571
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
3
be1c53ef5af6cf75cdd1095f831d7290002c5dff
21,866
py
Python
dataset/keras_utils.py
orram/DynamicalRecurrentClassifier
d517681cf42aa4fe59107a865cc85b8d5cdbad25
[ "Apache-2.0" ]
null
null
null
dataset/keras_utils.py
orram/DynamicalRecurrentClassifier
d517681cf42aa4fe59107a865cc85b8d5cdbad25
[ "Apache-2.0" ]
null
null
null
dataset/keras_utils.py
orram/DynamicalRecurrentClassifier
d517681cf42aa4fe59107a865cc85b8d5cdbad25
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Some order to the code - the utils! """ from __future__ import division, print_function, absolute_import import numpy as np import cv2 import dataset.misc as misc import random # import importlib # importlib.reload(misc) import matplotlib.pyplot as plt import datas...
38.294221
181
0.576923
2,869
21,866
4.233531
0.113977
0.017866
0.01729
0.011115
0.760497
0.721719
0.716697
0.699325
0.684423
0.670673
0
0.030001
0.307921
21,866
571
182
38.294221
0.772616
0.207262
0
0.673575
0
0
0.0165
0
0
0
0
0.001751
0
1
0.046632
false
0
0.018135
0.010363
0.129534
0.025907
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
be27fef86e2a55b50c3e0a193d26c7cf4fe55cd4
533
py
Python
monica/api/views.py
MONICA-Project/HLDFAD_SourceCode
94748f20d104bb00e3a71f485dfd8199b7d7dc69
[ "Apache-2.0" ]
null
null
null
monica/api/views.py
MONICA-Project/HLDFAD_SourceCode
94748f20d104bb00e3a71f485dfd8199b7d7dc69
[ "Apache-2.0" ]
5
2021-03-19T00:33:10.000Z
2021-09-22T18:40:06.000Z
monica/api/views.py
MONICA-Project/HLDFAD_SourceCode
94748f20d104bb00e3a71f485dfd8199b7d7dc69
[ "Apache-2.0" ]
null
null
null
from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import mixins, generics, status # from .serializers import DimPointSerializer, MissionSerializer # from api.models import Mission # from jobs.tasks import first from kombu import Connection import os class Missi...
29.611111
91
0.780488
67
533
6.104478
0.626866
0.05868
0.124694
0
0
0
0
0
0
0
0
0.006536
0.138837
533
17
92
31.352941
0.884532
0.382739
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.625
0.125
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
1
1
0
0
3
07d8589982444c3468f6c20e1dab355a8cdc79ee
146
py
Python
src/xbot/nlu/pipeline.py
zem9401/xbot_mle
f9f421b14f19b4993a03221bb6cbde699809289d
[ "MIT" ]
2
2021-01-05T08:56:54.000Z
2021-01-22T06:05:55.000Z
src/xbot/nlu/pipeline.py
qq751220449/xbot
557793302badfce1c0befa81de8948da99c0baae
[ "MIT" ]
null
null
null
src/xbot/nlu/pipeline.py
qq751220449/xbot
557793302badfce1c0befa81de8948da99c0baae
[ "MIT" ]
null
null
null
from src.xbot.pipeline import Pipeline class NLUPipeline(Pipeline): """NLU管道""" @classmethod def from_yml(cls): return cls
14.6
38
0.657534
17
146
5.588235
0.764706
0
0
0
0
0
0
0
0
0
0
0
0.239726
146
9
39
16.222222
0.855856
0.034247
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.2
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
0
0
0
1
0
0
0
3
07da82b007eba5c4cf72f3c600636095b6b8019d
10,435
py
Python
test/test_memory.py
maxhgerlach/mpi4py
4cebe0d45ee60bc7198dedc425adffee3e86bc7b
[ "BSD-2-Clause" ]
533
2015-03-02T05:16:27.000Z
2022-03-28T09:44:37.000Z
test/test_memory.py
maxhgerlach/mpi4py
4cebe0d45ee60bc7198dedc425adffee3e86bc7b
[ "BSD-2-Clause" ]
105
2017-09-17T07:50:33.000Z
2022-03-29T17:27:43.000Z
test/test_memory.py
maxhgerlach/mpi4py
4cebe0d45ee60bc7198dedc425adffee3e86bc7b
[ "BSD-2-Clause" ]
98
2015-02-03T03:17:52.000Z
2022-03-23T02:03:11.000Z
from mpi4py import MPI import mpiunittest as unittest import sys try: import array except ImportError: array = None class TestMemory(unittest.TestCase): def testNewEmpty(self): memory = MPI.memory mem = memory() self.assertEqual(mem.address, 0) self.assertEqual(mem.obj, No...
36.358885
65
0.565884
1,274
10,435
4.624804
0.093407
0.318228
0.198574
0.064494
0.691616
0.649864
0.607434
0.585879
0.574678
0.550068
0
0.029643
0.291998
10,435
286
66
36.486014
0.767867
0
0
0.578358
0
0
0.012746
0
0
0
0
0
0.537313
1
0.074627
false
0
0.018657
0.011194
0.097015
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
1
0
0
0
0
0
0
0
0
0
3
07dfecfc94f425aa0ca648d91bc2c4088c48b7c5
2,603
py
Python
exercises/composing-methods-refactor/best_students.py
edison4354/ACS-4931-Testing-and-Architecture
02f27a62ffe96e7b7e5d4fc39539ab61296f2ee4
[ "MIT" ]
null
null
null
exercises/composing-methods-refactor/best_students.py
edison4354/ACS-4931-Testing-and-Architecture
02f27a62ffe96e7b7e5d4fc39539ab61296f2ee4
[ "MIT" ]
null
null
null
exercises/composing-methods-refactor/best_students.py
edison4354/ACS-4931-Testing-and-Architecture
02f27a62ffe96e7b7e5d4fc39539ab61296f2ee4
[ "MIT" ]
null
null
null
# By Kamran Bigdely Nov. 2020 # Replace temp variable with query # TODO: Use 'extract method' refactoring technique to improve this code. # TODO: If required, use 'replace temp variable with query' technique to make it easier to extract methods. class Employer: """A class to represent a employer""" def __ini...
32.5375
107
0.631963
328
2,603
4.881098
0.320122
0.078701
0.014991
0.031855
0.068707
0
0
0
0
0
0
0.013882
0.252785
2,603
79
108
32.949367
0.809255
0.247407
0
0.043478
0
0
0.103592
0.014576
0
0
0
0.012658
0
1
0.217391
false
0.173913
0
0.021739
0.347826
0.152174
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
0
1
0
0
0
0
0
3
07ed904bba728c32248301b3233d832ff082ef52
1,226
py
Python
bob/bio/face/annotator/bobipmtcnn.py
bioidiap/bob.bio.face
2341e6423ca5a412ebe23fa18acacd69ea1ef914
[ "BSD-3-Clause" ]
4
2016-09-01T13:16:46.000Z
2021-09-03T03:27:18.000Z
bob/bio/face/annotator/bobipmtcnn.py
bioidiap/bob.bio.face
2341e6423ca5a412ebe23fa18acacd69ea1ef914
[ "BSD-3-Clause" ]
6
2015-09-02T19:31:15.000Z
2016-10-10T21:48:39.000Z
bob/bio/face/annotator/bobipmtcnn.py
bioidiap/bob.bio.face
2341e6423ca5a412ebe23fa18acacd69ea1ef914
[ "BSD-3-Clause" ]
6
2015-10-07T17:18:48.000Z
2017-07-18T19:41:14.000Z
from . import Base class BobIpMTCNN(Base): """Annotator using mtcnn in bob.ip.facedetect""" def __init__(self, min_size=40, factor=0.709, thresholds=(0.6, 0.7, 0.7), **kwargs): super(BobIpMTCNN, self).__init__(**kwargs) from bob.ip.facedetect.mtcnn import MTCNN self.detector = MTCNN(...
25.541667
88
0.593801
134
1,226
5.335821
0.440299
0.048951
0.058741
0.092308
0
0
0
0
0
0
0
0.015187
0.301794
1,226
47
89
26.085106
0.820093
0.282219
0
0.142857
0
0
0
0
0
0
0
0
0
1
0.238095
false
0
0.095238
0.142857
0.619048
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
07f077f92e4ee7b48881c61d2ed1e73ec57ae23a
2,270
py
Python
maple/torch/data_management/normalizer.py
UT-Austin-RPL/maple
aef9fe9869945df5bbd1b02fd40813aac135cf5a
[ "MIT" ]
9
2021-10-08T23:54:58.000Z
2022-03-24T08:51:53.000Z
maple/torch/data_management/normalizer.py
UT-Austin-RPL/maple
aef9fe9869945df5bbd1b02fd40813aac135cf5a
[ "MIT" ]
1
2022-02-14T02:32:27.000Z
2022-02-21T15:02:00.000Z
maple/torch/data_management/normalizer.py
UT-Austin-RPL/maple
aef9fe9869945df5bbd1b02fd40813aac135cf5a
[ "MIT" ]
1
2022-01-05T11:47:19.000Z
2022-01-05T11:47:19.000Z
import torch import maple.torch.pytorch_util as ptu import numpy as np from maple.data_management.normalizer import Normalizer, FixedNormalizer class TorchNormalizer(Normalizer): """ Update with np array, but de/normalize pytorch Tensors. """ def normalize(self, v, clip_range=None): if not se...
31.09589
72
0.578855
292
2,270
4.40411
0.191781
0.083981
0.093313
0.124417
0.70451
0.70451
0.650078
0.650078
0.601866
0.601866
0
0.010336
0.318062
2,270
72
73
31.527778
0.820413
0.115859
0
0.807692
0
0
0
0
0
0
0
0
0
1
0.115385
false
0
0.076923
0
0.346154
0
0
0
0
null
0
0
0
0
1
0
0
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
3
07f967adf39568cb08218f2dd40edd76e6677cce
868
py
Python
isaac/models/networks/activations.py
chaobin/isaac
d9d3cf54b3b4bcad40f82c94a70d98c1679ce992
[ "MIT" ]
1
2016-08-12T06:54:05.000Z
2016-08-12T06:54:05.000Z
isaac/models/networks/activations.py
chaobin/isaac
d9d3cf54b3b4bcad40f82c94a70d98c1679ce992
[ "MIT" ]
null
null
null
isaac/models/networks/activations.py
chaobin/isaac
d9d3cf54b3b4bcad40f82c94a70d98c1679ce992
[ "MIT" ]
null
null
null
import numpy as np __all__ = [ 'Sigmoidal', 'Softmax', 'Tanh', 'ReLU', ] class Sigmoidal(object): @classmethod def activate(cls, z): return 1 / (1 + np.exp(-(z))) @classmethod def derivative(cls, z): a = cls.activate(z) return a * (1 - a) class Softmax(objec...
16.692308
44
0.525346
112
868
4.008929
0.285714
0.218263
0.178174
0.249443
0.525612
0.463252
0.262806
0.178174
0
0
0
0.011885
0.321429
868
51
45
17.019608
0.750424
0.018433
0
0.4
0
0
0.028986
0
0
0
0
0
0
1
0.2
false
0.028571
0.028571
0.114286
0.514286
0
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
3
6af1c72ebcb3acdf1b1dd1c11169b89fa12c314d
143
py
Python
time_space_complexity/recursive_sum.py
elenaborisova/LeetCode-Solutions
98376aab7fd150a724e316357ae5ea46988d9eac
[ "MIT" ]
null
null
null
time_space_complexity/recursive_sum.py
elenaborisova/LeetCode-Solutions
98376aab7fd150a724e316357ae5ea46988d9eac
[ "MIT" ]
null
null
null
time_space_complexity/recursive_sum.py
elenaborisova/LeetCode-Solutions
98376aab7fd150a724e316357ae5ea46988d9eac
[ "MIT" ]
null
null
null
def recursive_sum(n): if n <= 0: return 0 return n + recursive_sum(n - 1) print(recursive_sum(3)) # O(n) time; O(n) space
11.916667
35
0.573427
25
143
3.16
0.52
0.455696
0.329114
0
0
0
0
0
0
0
0
0.039216
0.286713
143
11
36
13
0.735294
0.146853
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
0
0.6
0.2
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
0
0
0
0
0
0
0
3
6af7425f5d0d0deecb746bd78696f33fe4008db8
1,043
py
Python
babilim/core/tmath/tf.py
penguinmenac3/babilim
d3b1dd7c38a9de8f1e553cc5c0b2dfa62fe25c27
[ "MIT" ]
1
2020-05-04T15:20:55.000Z
2020-05-04T15:20:55.000Z
babilim/core/tmath/tf.py
penguinmenac3/babilim
d3b1dd7c38a9de8f1e553cc5c0b2dfa62fe25c27
[ "MIT" ]
1
2019-11-28T09:03:20.000Z
2019-11-28T09:03:20.000Z
babilim/core/tmath/tf.py
penguinmenac3/babilim
d3b1dd7c38a9de8f1e553cc5c0b2dfa62fe25c27
[ "MIT" ]
1
2019-11-28T08:30:13.000Z
2019-11-28T08:30:13.000Z
from babilim.core import ITensor, Tensor import tensorflow as tf def log(tensor: ITensor) -> ITensor: """ Compute the logarithm of a tensor. :param tensor: The tensor of which the log should be computed. :return: The log tensor. """ return Tensor(data=tf.log(tensor.native), trainable=True) ...
28.972222
98
0.677852
150
1,043
4.713333
0.3
0.03819
0.059406
0.084866
0.212164
0.110325
0.110325
0.110325
0.110325
0.110325
0
0
0.221477
1,043
35
99
29.8
0.87069
0.495686
0
0
0
0
0
0
0
0
0
0.028571
0
1
0.375
false
0
0.25
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
0
0
0
0
1
0
0
3
ed1fdd20dca6432fd5129579565b6037ee0cde55
299
py
Python
UFO_models/SMEFTsim_U35_alphaScheme_UFO/CT_couplings.py
matthewfeickert/SMEFTsim
db7d4a80bdcff424eee27dde71f1eb09ac894039
[ "MIT" ]
4
2020-12-29T03:42:43.000Z
2021-09-22T09:57:37.000Z
UFO_models/SMEFTsim_U35_alphaScheme_UFO/CT_couplings.py
matthewfeickert/SMEFTsim
db7d4a80bdcff424eee27dde71f1eb09ac894039
[ "MIT" ]
3
2021-05-19T11:06:59.000Z
2021-12-11T00:12:02.000Z
UFO_models/SMEFTsim_U35_alphaScheme_UFO/CT_couplings.py
matthewfeickert/SMEFTsim
db7d4a80bdcff424eee27dde71f1eb09ac894039
[ "MIT" ]
4
2021-09-22T09:57:39.000Z
2022-03-29T16:09:36.000Z
# This file was automatically created by FeynRules 2.3.35 # Mathematica version: 12.1.0 for Linux x86 (64-bit) (March 18, 2020) # Date: Tue 18 Aug 2020 11:58:04 from object_library import all_couplings, Coupling from function_library import complexconjugate, re, im, csc, sec, acsc, asec, cot
24.916667
80
0.752508
50
299
4.44
0.9
0.117117
0
0
0
0
0
0
0
0
0
0.12
0.16388
299
11
81
27.181818
0.768
0.51505
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
3
ed28c07d2e91574cddb387629eb370dea9aa0c28
78
py
Python
exam/Response/headers.py
me2nuk/requests-module-analysis
cd0a5d30afb25c856b0ef986b8f8015bdc902037
[ "Xnet", "X11" ]
null
null
null
exam/Response/headers.py
me2nuk/requests-module-analysis
cd0a5d30afb25c856b0ef986b8f8015bdc902037
[ "Xnet", "X11" ]
null
null
null
exam/Response/headers.py
me2nuk/requests-module-analysis
cd0a5d30afb25c856b0ef986b8f8015bdc902037
[ "Xnet", "X11" ]
null
null
null
from requests import get r = get('http://httpbin.org/get') print(r.headers)
13
33
0.705128
13
78
4.230769
0.769231
0
0
0
0
0
0
0
0
0
0
0
0.128205
78
5
34
15.6
0.808824
0
0
0
0
0
0.282051
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
ed319f09a46f75652e9b56eeb1bf96864039d8f4
798
py
Python
core/decorators.py
MattBlack85/dunning-cruncher
f5921e5251dadd09f5000e72c79ca01c471ef33c
[ "BSD-3-Clause" ]
null
null
null
core/decorators.py
MattBlack85/dunning-cruncher
f5921e5251dadd09f5000e72c79ca01c471ef33c
[ "BSD-3-Clause" ]
null
null
null
core/decorators.py
MattBlack85/dunning-cruncher
f5921e5251dadd09f5000e72c79ca01c471ef33c
[ "BSD-3-Clause" ]
null
null
null
from django.http import HttpResponse from functools import wraps import json def json_response(func): """ Decorator function that when applied to a function which returns some json data will be turned into a HttpResponse This is useful because the call site can literally just call the funct...
24.9375
65
0.640351
98
798
5.204082
0.591837
0.05098
0.078431
0
0
0
0
0
0
0
0
0
0.303258
798
31
66
25.741935
0.917266
0.508772
0
0
0
0
0.051118
0
0
0
0
0
0
1
0.222222
false
0
0.333333
0
0.777778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
0
1
0
0
3
ed46daf03759166ac5422df40599171e351a34a9
2,987
py
Python
synthesis/synthesizer/dplyr_to_pd/code_analysis/nodes.py
ualberta-smr/SOAR
325a6ed2518088b9800299c81271db51b645816a
[ "BSD-3-Clause-Clear" ]
8
2021-01-13T14:59:18.000Z
2021-06-29T17:01:37.000Z
synthesis/synthesizer/dplyr_to_pd/code_analysis/nodes.py
squaresLab/SOAR
72a35a4014d3e74548aab7d2a5cf1bdfaab149c1
[ "BSD-3-Clause-Clear" ]
null
null
null
synthesis/synthesizer/dplyr_to_pd/code_analysis/nodes.py
squaresLab/SOAR
72a35a4014d3e74548aab7d2a5cf1bdfaab149c1
[ "BSD-3-Clause-Clear" ]
2
2021-01-16T00:09:54.000Z
2021-08-05T01:14:40.000Z
from lark import Tree import os from abc import abstractmethod class Node(Tree): def __init__(self, data, children, meta=None): super().__init__(data, children, meta=meta) @abstractmethod def accept(self, visitor): raise NotImplementedError class IdentifierNode(Node): def __init__...
21.489209
70
0.651825
356
2,987
5.182584
0.168539
0.071545
0.059621
0.092141
0.484011
0.447696
0.407046
0.293225
0.293225
0.220054
0
0.003487
0.232005
2,987
138
71
21.644928
0.800785
0
0
0.44186
0
0
0.037508
0
0
0
0
0
0
1
0.360465
false
0
0.034884
0.22093
0.732558
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
ed4f6f20940eaf31a40266bab51f4f3c79e78d36
880
py
Python
easy/migrations/0006_auto_20181221_1016.py
tugcanolgun/SWE599
be11f4ce831684f35660e78c7dc42961e2df7ceb
[ "Apache-2.0" ]
3
2019-01-18T11:37:36.000Z
2019-04-29T02:46:55.000Z
easy/migrations/0006_auto_20181221_1016.py
tugcanolgun/SWE599
be11f4ce831684f35660e78c7dc42961e2df7ceb
[ "Apache-2.0" ]
8
2020-02-12T02:28:30.000Z
2022-03-12T00:07:35.000Z
easy/migrations/0006_auto_20181221_1016.py
sreevani8/hotel-management-system
e37e3ffbbfac61523187d662317e7a5d0ea80c36
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.1.4 on 2018-12-21 10:16 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('easy', '0005_auto_20181220_1858'), ] operations = [ migrations.AddField( model_name='guests', name='address', ...
25.882353
62
0.554545
90
880
5.288889
0.5
0.151261
0.193277
0.226891
0.605042
0.361345
0.283613
0.283613
0
0
0
0.06734
0.325
880
33
63
26.666667
0.734007
0.051136
0
0.444444
1
0
0.091236
0.027611
0
0
0
0
0
1
0
false
0
0.037037
0
0.148148
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
ed69811ea0571b937705e09d1060ab47312d6c26
1,451
py
Python
app.py
Tek9x/PyTogether
c14a89c92bbe57a2f0785dee3043f0ce17f66e99
[ "Unlicense" ]
null
null
null
app.py
Tek9x/PyTogether
c14a89c92bbe57a2f0785dee3043f0ce17f66e99
[ "Unlicense" ]
null
null
null
app.py
Tek9x/PyTogether
c14a89c92bbe57a2f0785dee3043f0ce17f66e99
[ "Unlicense" ]
1
2021-05-25T06:33:46.000Z
2021-05-25T06:33:46.000Z
# import xml.etree.ElementTree as ET # import json # # # tree = ET.parse('farms.xml') # root = tree.getroot() # # def load_database(): # try: # with open('events.db') as f: # db = json.load(f) # return db['Events'] # except IOError: # print 'Could not find events.db' # # ...
24.183333
59
0.566506
181
1,451
4.475138
0.381215
0.049383
0.048148
0.039506
0.046914
0
0
0
0
0
0
0
0.268091
1,451
60
60
24.183333
0.762712
0.855961
0
0
0
0
0.091549
0
0
0
0
0
0
0
null
null
0
0.333333
null
null
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
3
ed6a54b56a711737e9141fe9eaea2e99b5ceb8a5
963
py
Python
glycan_profiling/tandem/glycopeptide/__init__.py
mstim/glycresoft
1d305c42c7e6cba60326d8246e4a485596a53513
[ "Apache-2.0" ]
4
2019-04-26T15:47:57.000Z
2021-04-20T22:53:58.000Z
glycan_profiling/tandem/glycopeptide/__init__.py
mstim/glycresoft
1d305c42c7e6cba60326d8246e4a485596a53513
[ "Apache-2.0" ]
8
2017-11-22T19:20:20.000Z
2022-02-14T01:49:58.000Z
glycan_profiling/tandem/glycopeptide/__init__.py
mstim/glycresoft
1d305c42c7e6cba60326d8246e4a485596a53513
[ "Apache-2.0" ]
3
2017-11-21T18:05:28.000Z
2021-09-23T18:38:33.000Z
from .scoring import ( BinomialSpectrumMatcher, TargetDecoyAnalyzer, CoverageWeightedBinomialScorer, LogIntensityScorer) from .matcher import GlycopeptideMatcher from .glycopeptide_matcher import ( GlycopeptideDatabaseSearchIdentifier, ExclusiveGlycopeptideDatabaseSearchComparer, GlycopeptideDatab...
31.064516
68
0.821391
47
963
16.531915
0.510638
0.108108
0.185328
0.23166
0.226512
0.226512
0.226512
0
0
0
0
0
0.119418
963
30
69
32.1
0.916274
0
0
0
0
0
0.359294
0.301142
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
0
0
0
1
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
ed7b3cd927a892a37cf1feae099eacbd6c1ad30b
168
py
Python
Python/AutomateTheBoringStuff/continue.py
rlong2/Code
feb6c097159bf822122a73e0131ad928780bcfcd
[ "BSD-3-Clause" ]
null
null
null
Python/AutomateTheBoringStuff/continue.py
rlong2/Code
feb6c097159bf822122a73e0131ad928780bcfcd
[ "BSD-3-Clause" ]
null
null
null
Python/AutomateTheBoringStuff/continue.py
rlong2/Code
feb6c097159bf822122a73e0131ad928780bcfcd
[ "BSD-3-Clause" ]
null
null
null
foo = 0 while foo < 5: foo = foo + 1 if foo == 3: continue # jump back to while loop, print 'foo is n' is not called print('foo is ' + str(foo))
24
77
0.541667
29
168
3.137931
0.62069
0.175824
0.21978
0
0
0
0
0
0
0
0
0.036364
0.345238
168
6
78
28
0.790909
0.327381
0
0
0
0
0.063063
0
0
0
0
0
0
1
0
false
0
0
0
0
0.166667
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
ed7c2ef1d5e83aa990d1001659fc06850753a2e8
1,100
py
Python
torcharrow/test/test_interop_cpu.py
Nayef211/torcharrow
28b8ca4bf1d91878daf087a0030790a8161b5f1f
[ "BSD-3-Clause" ]
272
2021-10-12T23:25:57.000Z
2022-03-29T18:11:06.000Z
torcharrow/test/test_interop_cpu.py
Nayef211/torcharrow
28b8ca4bf1d91878daf087a0030790a8161b5f1f
[ "BSD-3-Clause" ]
228
2021-10-13T00:11:18.000Z
2022-03-31T20:02:40.000Z
torcharrow/test/test_interop_cpu.py
Nayef211/torcharrow
28b8ca4bf1d91878daf087a0030790a8161b5f1f
[ "BSD-3-Clause" ]
33
2021-10-13T16:48:02.000Z
2022-03-25T22:39:18.000Z
# Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. import unittest import torcharrow.pytorch as tap from .test_interop import TestInterop class TestInteropCpu...
27.5
71
0.736364
142
1,100
5.43662
0.429577
0.045337
0.090674
0.11658
0.46114
0.26943
0.26943
0.26943
0
0
0
0
0.177273
1,100
39
72
28.205128
0.853039
0.179091
0
0.181818
0
0
0.083612
0
0
0
0
0
0
1
0.272727
false
0
0.136364
0.227273
0.681818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
ed7f196c436adc9f8f8fe9033e6ecc7b6e105ab7
184
py
Python
code_prac/palindrome.py
belingud/sources
9275cc653caf0422a50724f50d075b33c919db36
[ "Apache-2.0" ]
null
null
null
code_prac/palindrome.py
belingud/sources
9275cc653caf0422a50724f50d075b33c919db36
[ "Apache-2.0" ]
8
2019-08-11T16:24:06.000Z
2020-03-06T15:11:56.000Z
code_prac/palindrome.py
belingud/sources
9275cc653caf0422a50724f50d075b33c919db36
[ "Apache-2.0" ]
null
null
null
class Solution: def isPalindrome(self, x: int) -> bool: if x < 0: return False if x < 10: return True return str(x) == str(x)[::-1]
23
43
0.461957
24
184
3.541667
0.666667
0.070588
0
0
0
0
0
0
0
0
0
0.037037
0.413043
184
7
44
26.285714
0.75
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.714286
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
ed819e3ef6c660a695fd825243352b75ad4c7437
1,377
py
Python
app/model.py
simzipark/Flask_Chatbot
43381f5047d03d90d81c3fe1f2001775ed746638
[ "MIT" ]
null
null
null
app/model.py
simzipark/Flask_Chatbot
43381f5047d03d90d81c3fe1f2001775ed746638
[ "MIT" ]
null
null
null
app/model.py
simzipark/Flask_Chatbot
43381f5047d03d90d81c3fe1f2001775ed746638
[ "MIT" ]
null
null
null
import time import hashlib from app import db from datetime import datetime, timedelta # Generate 10 character long hash def _createHash(): now = str(time.time()).encode('utf-8') hash = hashlib.sha1(now) return hash.hexdigest()[:7] class User(db.Model): id = db.Column(db.Integer, primary_key=True) ...
28.102041
70
0.646333
191
1,377
4.445026
0.335079
0.113074
0.141343
0.188457
0.365135
0.209658
0.157833
0.094229
0.094229
0.094229
0
0.01108
0.213508
1,377
49
71
28.102041
0.772853
0.027596
0
0.117647
1
0
0.029918
0
0
0
0
0
0
1
0.147059
false
0
0.117647
0.058824
0.764706
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
ed8ca533eeb3b040ce6f5f4a37e227f0ff3ff520
126
py
Python
n0d3-b0x/opt/b0x/pms/pms_reset.py
ad5030/OIAP
5e973dc68c3953fa4bf5f51e5d00bf004d7e3df8
[ "MIT" ]
null
null
null
n0d3-b0x/opt/b0x/pms/pms_reset.py
ad5030/OIAP
5e973dc68c3953fa4bf5f51e5d00bf004d7e3df8
[ "MIT" ]
null
null
null
n0d3-b0x/opt/b0x/pms/pms_reset.py
ad5030/OIAP
5e973dc68c3953fa4bf5f51e5d00bf004d7e3df8
[ "MIT" ]
2
2021-03-19T00:08:16.000Z
2021-07-30T16:21:50.000Z
#!/usr/bin/env python3 from power_api import SixfabPower, Definition, Event import time api = SixfabPower() api.reset_mcu()
15.75
52
0.769841
18
126
5.277778
0.777778
0
0
0
0
0
0
0
0
0
0
0.009091
0.126984
126
8
53
15.75
0.854545
0.166667
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
9c0e5a067c70b7bbff284715b032ea59aa71fe12
158
py
Python
SiF/studentby/urls.py
karendahlaarhus/TDT4140-programvareutvikling
f966ff3f2286c4875edbb5c77d1f9073a10b56c6
[ "MIT" ]
null
null
null
SiF/studentby/urls.py
karendahlaarhus/TDT4140-programvareutvikling
f966ff3f2286c4875edbb5c77d1f9073a10b56c6
[ "MIT" ]
null
null
null
SiF/studentby/urls.py
karendahlaarhus/TDT4140-programvareutvikling
f966ff3f2286c4875edbb5c77d1f9073a10b56c6
[ "MIT" ]
null
null
null
from django.urls import path from . import views app_name = 'oversikt' urlpatterns = [ path('<int:studentby_id>', views.index, name='studentbyIndex'), ]
19.75
67
0.71519
20
158
5.55
0.75
0
0
0
0
0
0
0
0
0
0
0
0.14557
158
7
68
22.571429
0.822222
0
0
0
0
0
0.253165
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
9c20948b602832113155a9f87a45d6d9aa01f7e4
33,794
py
Python
frille-lang/lib/python3.6/site-packages/thinc/extra/wrapt/wrappers.py
frillecode/CDS-spring-2021-language
a0b2116044cd20d4a34b98f23bd2663256c90c5d
[ "MIT" ]
10
2021-05-31T07:18:08.000Z
2022-03-19T09:20:11.000Z
frille-lang/lib/python3.6/site-packages/thinc/extra/wrapt/wrappers.py
frillecode/CDS-spring-2021-language
a0b2116044cd20d4a34b98f23bd2663256c90c5d
[ "MIT" ]
4
2021-06-02T00:49:27.000Z
2022-01-13T01:59:34.000Z
frille-lang/lib/python3.6/site-packages/thinc/extra/wrapt/wrappers.py
frillecode/CDS-spring-2021-language
a0b2116044cd20d4a34b98f23bd2663256c90c5d
[ "MIT" ]
2
2021-12-09T07:23:21.000Z
2022-03-31T06:13:10.000Z
import os import sys import functools import operator import weakref import inspect PY2 = sys.version_info[0] == 2 PY3 = sys.version_info[0] == 3 if PY3: string_types = (str,) else: string_types = (basestring,) def with_metaclass(meta, *bases): """Create a base class with a metaclass.""" return meta...
34.169869
87
0.645055
4,096
33,794
4.945557
0.143799
0.065706
0.031051
0.017821
0.301624
0.245446
0.213803
0.15486
0.115121
0.104359
0
0.001287
0.287063
33,794
988
88
34.204453
0.839497
0.334852
0
0.285714
0
0
0.035135
0.001078
0
0
0
0
0
1
0.24381
false
0.007619
0.017143
0.135238
0.508571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
9c3612b534c2248cf6f8d521f162b263aede8368
88
py
Python
src/example/lambda-py3-deps/helper.py
yangsongqing1v/cloudreach3
06460d378a8e8f1360f27c42667996771c8d3a6b
[ "Apache-2.0" ]
6
2018-09-12T10:04:53.000Z
2019-05-28T20:26:31.000Z
src/example/lambda-py3-deps/helper.py
yangsongqing1v/cloudreach3
06460d378a8e8f1360f27c42667996771c8d3a6b
[ "Apache-2.0" ]
5
2018-09-07T09:56:33.000Z
2020-09-24T16:38:35.000Z
src/example/lambda-py3-deps/helper.py
yangsongqing1v/cloudreach3
06460d378a8e8f1360f27c42667996771c8d3a6b
[ "Apache-2.0" ]
8
2018-09-05T23:37:50.000Z
2020-08-25T17:15:27.000Z
import platform __welcome__ = "Hello from Python {}".format(platform.python_version())
22
70
0.772727
10
88
6.3
0.8
0
0
0
0
0
0
0
0
0
0
0
0.102273
88
3
71
29.333333
0.797468
0
0
0
0
0
0.227273
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
9c41f26035461acb261ce3020bb1e64a56f4469b
270
py
Python
leveler/commands/lvlset/__init__.py
fixator10/f10_red_cogs
5887adfb33c2463c3e2ef54fc0c7f25486843112
[ "MIT" ]
null
null
null
leveler/commands/lvlset/__init__.py
fixator10/f10_red_cogs
5887adfb33c2463c3e2ef54fc0c7f25486843112
[ "MIT" ]
null
null
null
leveler/commands/lvlset/__init__.py
fixator10/f10_red_cogs
5887adfb33c2463c3e2ef54fc0c7f25486843112
[ "MIT" ]
null
null
null
from leveler.abc import CompositeMetaClass from .badge import Badge from .levelup import Levelup from .profile import Profile from .rank import Rank class LevelSet(Badge, Levelup, Profile, Rank, metaclass=CompositeMetaClass): """Leveler user settings commands"""
24.545455
76
0.792593
33
270
6.484848
0.454545
0
0
0
0
0
0
0
0
0
0
0
0.137037
270
10
77
27
0.918455
0.111111
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.833333
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
3
9c4c5e15689eb4df77a7b2e331db0712e7a1c3cc
520
py
Python
backend/app/main.py
JulioJair/catalog-fastapi
d8853c65f3a2b7bd0ecf9d494ee239beb0a0bab8
[ "MIT" ]
1
2021-06-28T16:04:32.000Z
2021-06-28T16:04:32.000Z
backend/app/main.py
JulioJair/catalog-fastapi
d8853c65f3a2b7bd0ecf9d494ee239beb0a0bab8
[ "MIT" ]
1
2021-06-29T13:28:29.000Z
2021-06-29T13:28:29.000Z
backend/app/main.py
JulioJair/catalog-fastapi
d8853c65f3a2b7bd0ecf9d494ee239beb0a0bab8
[ "MIT" ]
null
null
null
from dotenv import load_dotenv import uvicorn from fastapi import FastAPI from app import models from app.database import engine from app.routers import products, users, auth, analytics, misc app = FastAPI() models.Base.metadata.create_all(engine) # Endpoints app.include_router(auth.router) app.include_router(users...
22.608696
62
0.790385
77
520
5.142857
0.402597
0.126263
0.20202
0.222222
0
0
0
0
0
0
0
0.008584
0.103846
520
22
63
23.636364
0.841202
0.017308
0
0
0
0
0.045187
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
9c4e56cd699f696741c31c830ca91e31c9040f1a
10,582
py
Python
bin/tanium_run_saved.py
hadique/mysteryapp
ad6cd960a696d1ef633a2ed9a244099b329c0fc8
[ "MIT" ]
null
null
null
bin/tanium_run_saved.py
hadique/mysteryapp
ad6cd960a696d1ef633a2ed9a244099b329c0fc8
[ "MIT" ]
null
null
null
bin/tanium_run_saved.py
hadique/mysteryapp
ad6cd960a696d1ef633a2ed9a244099b329c0fc8
[ "MIT" ]
null
null
null
#!/usr/bin/python ############################################################################### # # ############################################################################### import os import re import sys import ssl import time import socket import httplib import argparse from datetime import dat...
30.148148
93
0.6323
1,413
10,582
4.544232
0.22293
0.017443
0.01682
0.010902
0.190313
0.118206
0.087214
0.079738
0.045476
0.028344
0
0.005968
0.22406
10,582
351
94
30.148148
0.776032
0.058307
0
0.170404
0
0
0.146241
0.038749
0
0
0
0.014245
0
0
null
null
0.06278
0.044843
null
null
0.026906
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
1
0
0
1
0
0
0
0
0
3
9c586372ef212dce947fae84479ee49930344faf
21,124
py
Python
tests/unit/test_solvers/test_scipy_solver.py
tobykirk/PyBaMM
c16b7df76c597468ecac1c40e768d94005f79145
[ "BSD-3-Clause" ]
null
null
null
tests/unit/test_solvers/test_scipy_solver.py
tobykirk/PyBaMM
c16b7df76c597468ecac1c40e768d94005f79145
[ "BSD-3-Clause" ]
null
null
null
tests/unit/test_solvers/test_scipy_solver.py
tobykirk/PyBaMM
c16b7df76c597468ecac1c40e768d94005f79145
[ "BSD-3-Clause" ]
null
null
null
# # Tests for the Scipy Solver class # import pybamm import unittest import numpy as np from tests import get_mesh_for_testing import warnings import sys from platform import system, version class TestScipySolver(unittest.TestCase): def test_model_solver_python_and_jax(self): if not ( system(...
41.017476
88
0.601023
2,563
21,124
4.802575
0.097542
0.017873
0.037777
0.037371
0.77618
0.75002
0.725648
0.699651
0.665529
0.660167
0
0.028399
0.278214
21,124
514
89
41.097276
0.778907
0.088667
0
0.577428
0
0
0.072952
0
0
0
0
0
0.107612
1
0.044619
false
0
0.018373
0.002625
0.068241
0.002625
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
9c65c75f8e2d276a86bcd6bdc90106564367df24
2,741
py
Python
sql_queries.py
scientist94/Udacity_DAND_Data_Wrangling
92cf7bb9807133c38f5d02c187df34e32273cf43
[ "FTL" ]
null
null
null
sql_queries.py
scientist94/Udacity_DAND_Data_Wrangling
92cf7bb9807133c38f5d02c187df34e32273cf43
[ "FTL" ]
null
null
null
sql_queries.py
scientist94/Udacity_DAND_Data_Wrangling
92cf7bb9807133c38f5d02c187df34e32273cf43
[ "FTL" ]
null
null
null
import sqlite3 import pandas as pd # Create connection object to "osm.db" database and create cursor object. db = sqlite3.connect("osm.db") c = db.cursor() # Calculate amount of entries per table. tables = ['nodes', 'node_tags', 'ways', 'way_nodes', 'way_tags'] for table in tables: QUERY = "SELECT count(*) FROM ...
27.969388
91
0.631521
380
2,741
4.507895
0.210526
0.046702
0.068301
0.070053
0.70286
0.691769
0.691769
0.691769
0.691769
0.614711
0
0.005761
0.240058
2,741
97
92
28.257732
0.816611
0.146662
0
0.712329
0
0
0.487543
0
0
0
0
0
0
0
null
null
0
0.027397
null
null
0.136986
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
3
9c7243d0d6f3a9327771bcbb429882c5d5abf974
6,274
py
Python
reviewboard/webapi/tests/mimetypes.py
BarracudaPff/code-golf-data-pythpn
42e8858c2ebc6a061012bcadb167d29cebb85c5e
[ "MIT" ]
null
null
null
reviewboard/webapi/tests/mimetypes.py
BarracudaPff/code-golf-data-pythpn
42e8858c2ebc6a061012bcadb167d29cebb85c5e
[ "MIT" ]
null
null
null
reviewboard/webapi/tests/mimetypes.py
BarracudaPff/code-golf-data-pythpn
42e8858c2ebc6a061012bcadb167d29cebb85c5e
[ "MIT" ]
null
null
null
def _build_mimetype(resource_name, fmt="json"): return "application/vnd.reviewboard.org.%s+%s" % (resource_name, fmt) api_token_list_mimetype = _build_mimetype("api-tokens") api_token_item_mimetype = _build_mimetype("api-token") archived_item_mimetype = _build_mimetype("archived-review-request") change_list_mimetype =...
66.744681
109
0.860695
777
6,274
6.350064
0.105534
0.239765
0.383056
0.222943
0.608431
0.372112
0.118362
0
0
0
0
0
0.045266
6,274
94
110
66.744681
0.823706
0
0
0
0
0
0.236016
0.094343
0
0
0
0
0
1
0.010638
false
0
0
0.010638
0.021277
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
92bb04a4d32765d49b231e33cb235daf1ab26260
284
py
Python
tests/helpers/pgevents.py
shawalli/flask-sqlalchemy-pgevents
e45e4f1ef7d7032761f964525bbcce0f7b629908
[ "MIT" ]
8
2018-12-25T12:07:51.000Z
2021-04-08T06:52:14.000Z
tests/helpers/pgevents.py
shawalli/flask-sqlalchemy-pgevents
e45e4f1ef7d7032761f964525bbcce0f7b629908
[ "MIT" ]
3
2018-09-15T19:48:20.000Z
2020-07-23T23:58:02.000Z
tests/helpers/pgevents.py
shawalli/flask-sqlalchemy-pgevents
e45e4f1ef7d7032761f964525bbcce0f7b629908
[ "MIT" ]
2
2019-07-12T14:26:45.000Z
2020-07-31T03:30:46.000Z
from flask_sqlalchemy_pgevents import PGEvents class create_pgevents: def __init__(self, app=None): self.pgevents = PGEvents(app) def __enter__(self): return self.pgevents def __exit__(self, exc_type, exc_val, exc_tb): self.pgevents.teardown()
21.846154
50
0.697183
36
284
5
0.555556
0.2
0
0
0
0
0
0
0
0
0
0
0.21831
284
12
51
23.666667
0.810811
0
0
0
0
0
0
0
0
0
0
0
0
1
0.375
false
0
0.125
0.125
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
92c70014a5f15db9db8ddd8e3df7cab3f64fc492
894
py
Python
src/oscar/apps/basket/managers.py
QueoLda/django-oscar
8dd992d82e31d26c929b3caa0e08b57e9701d097
[ "BSD-3-Clause" ]
4,639
2015-01-01T00:42:33.000Z
2022-03-29T18:32:12.000Z
src/oscar/apps/basket/managers.py
QueoLda/django-oscar
8dd992d82e31d26c929b3caa0e08b57e9701d097
[ "BSD-3-Clause" ]
2,215
2015-01-02T22:32:51.000Z
2022-03-29T12:16:23.000Z
src/oscar/apps/basket/managers.py
QueoLda/django-oscar
8dd992d82e31d26c929b3caa0e08b57e9701d097
[ "BSD-3-Clause" ]
2,187
2015-01-02T06:33:31.000Z
2022-03-31T15:32:36.000Z
from django.db import models class OpenBasketManager(models.Manager): """For searching/creating OPEN baskets only.""" status_filter = "Open" def get_queryset(self): return super().get_queryset().filter( status=self.status_filter) def get_or_create(self, **kwargs): return ...
28.83871
78
0.670022
107
894
5.392523
0.252336
0.145581
0.138648
0.190641
0.769497
0.655113
0.596187
0.532062
0.532062
0.532062
0
0
0.209172
894
30
79
29.8
0.816124
0.09396
0
0.631579
0
0
0.011264
0
0
0
0
0
0
1
0.263158
false
0
0.052632
0.263158
0.789474
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
3
92cdfbf640ebd99f2af0bfa8b313ba48e3bab087
604
py
Python
src/fwinterconnect-gen/ic_gen.py
Featherweight-IP/fwinterconnect-gen
8626202cb8e0681de8796d4d8c2445487e028825
[ "Apache-2.0" ]
3
2019-03-02T08:55:09.000Z
2022-03-01T07:20:45.000Z
src/fwinterconnect-gen/ic_gen.py
Featherweight-IP/fwinterconnect-gen
8626202cb8e0681de8796d4d8c2445487e028825
[ "Apache-2.0" ]
null
null
null
src/fwinterconnect-gen/ic_gen.py
Featherweight-IP/fwinterconnect-gen
8626202cb8e0681de8796d4d8c2445487e028825
[ "Apache-2.0" ]
null
null
null
from abc import ABC class icgen(ABC): def __init__(self): pass def exported_target_port(self, name, parameters): print("Error: unimplemented method") def validate_params(self, parameters): if "name" not in parameters: raise Exception("interconnect missing...
26.26087
70
0.584437
64
604
5.40625
0.484375
0.043353
0.130058
0.17341
0.445087
0.445087
0.445087
0.306358
0
0
0
0
0.321192
604
23
71
26.26087
0.843902
0
0
0
0
0
0.213576
0
0
0
0
0
0
1
0.230769
false
0.076923
0.076923
0
0.384615
0.076923
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
3
92d1961770aaed1fd44adf4aaa32c8e20aebce01
196
py
Python
tests/roots/test-ext-viewcode/spam/mod2.py
samdoran/sphinx
4c91c038b220d07bbdfe0c1680af42fe897f342c
[ "BSD-2-Clause" ]
4,973
2015-01-03T15:44:00.000Z
2022-03-31T03:11:51.000Z
tests/roots/test-ext-viewcode/spam/mod2.py
samdoran/sphinx
4c91c038b220d07bbdfe0c1680af42fe897f342c
[ "BSD-2-Clause" ]
7,850
2015-01-02T08:09:25.000Z
2022-03-31T18:57:40.000Z
tests/roots/test-ext-viewcode/spam/mod2.py
samdoran/sphinx
4c91c038b220d07bbdfe0c1680af42fe897f342c
[ "BSD-2-Clause" ]
2,179
2015-01-03T15:26:53.000Z
2022-03-31T12:22:44.000Z
""" mod2 """ def decorator(f): return f @decorator def func2(a, b): """ this is func2 """ return a, b @decorator class Class2(object): """ this is Class2 """
8.521739
21
0.510204
24
196
4.166667
0.541667
0.04
0
0
0
0
0
0
0
0
0
0.038168
0.331633
196
22
22
8.909091
0.725191
0.168367
0
0.285714
0
0
0
0
0
0
0
0
0
1
0.285714
false
0
0
0.142857
0.714286
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
3
92d2e321d358f7cdea936132fb94dac269c09173
3,864
py
Python
test/rlai/policy_gradient/monte_carlo/reinforce_test.py
MatthewGerber/rlai
f390433c3adc285e1e9cc113deed7009b2e6dd5a
[ "MIT" ]
9
2021-05-09T22:30:42.000Z
2021-12-27T19:42:56.000Z
test/rlai/policy_gradient/monte_carlo/reinforce_test.py
MatthewGerber/rlai
f390433c3adc285e1e9cc113deed7009b2e6dd5a
[ "MIT" ]
13
2020-11-18T03:30:39.000Z
2021-12-12T04:19:16.000Z
test/rlai/policy_gradient/monte_carlo/reinforce_test.py
MatthewGerber/rlai
f390433c3adc285e1e9cc113deed7009b2e6dd5a
[ "MIT" ]
1
2021-06-24T16:48:59.000Z
2021-06-24T16:48:59.000Z
import os import pickle import shlex import tempfile import numpy as np from rlai.runners.trainer import run def test_manual_versus_jax_policy_gradient(): manual_agent_path = tempfile.NamedTemporaryFile(delete=False).name run(shlex.split(f'--random-seed 12345 --agent rlai.agents.mdp.StochasticMdpAgent --ga...
74.307692
1,076
0.779762
517
3,864
5.663443
0.249516
0.039959
0.05123
0.061475
0.672473
0.656079
0.589139
0.535861
0.487363
0.487363
0
0.017857
0.101449
3,864
51
1,077
75.764706
0.825461
0.107919
0
0
0
0.148148
0.687409
0.437627
0
0
0
0
0.111111
1
0.074074
false
0
0.222222
0
0.296296
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
92d7a34814cd58825d88e88e54dcfd88ce9547b8
1,559
py
Python
python/dask_cudf/dask_cudf/backends.py
jwyles/cudf
1ba84a1354c33aac0a9851e15321c6d9a2fca956
[ "Apache-2.0" ]
null
null
null
python/dask_cudf/dask_cudf/backends.py
jwyles/cudf
1ba84a1354c33aac0a9851e15321c6d9a2fca956
[ "Apache-2.0" ]
null
null
null
python/dask_cudf/dask_cudf/backends.py
jwyles/cudf
1ba84a1354c33aac0a9851e15321c6d9a2fca956
[ "Apache-2.0" ]
null
null
null
from dask.dataframe.core import get_parallel_type, make_meta, meta_nonempty from dask.dataframe.methods import concat_dispatch import cudf from .core import DataFrame, Index, Series get_parallel_type.register(cudf.DataFrame, lambda _: DataFrame) get_parallel_type.register(cudf.Series, lambda _: Series) get_parallel_...
25.983333
76
0.732521
229
1,559
4.772926
0.279476
0.10979
0.096066
0.063129
0.249771
0.139067
0.078683
0.078683
0
0
0
0.003791
0.153945
1,559
59
77
26.423729
0.824867
0.011546
0
0
0
0
0.006498
0
0
0
0
0.016949
0.051282
1
0.179487
false
0.025641
0.179487
0.102564
0.538462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
1
1
0
0
3
1300222d61c4a252ba3d93121741d598be42e62c
368
py
Python
backend/coreApi/drivers/models.py
rochdikhalid/kopra-v1
1899e6f695ff8b3041aa7b4e24f99cb6f585085c
[ "MIT" ]
3
2021-12-14T12:31:18.000Z
2021-12-15T08:12:45.000Z
backend/coreApi/drivers/models.py
rochdikhalid/kopra-v1
1899e6f695ff8b3041aa7b4e24f99cb6f585085c
[ "MIT" ]
null
null
null
backend/coreApi/drivers/models.py
rochdikhalid/kopra-v1
1899e6f695ff8b3041aa7b4e24f99cb6f585085c
[ "MIT" ]
1
2022-01-06T14:41:27.000Z
2022-01-06T14:41:27.000Z
from django.db import models # Drivers Model class Drivers(models.Model): # Name name = models.CharField(max_length = 20, unique = False) # Phone phone = models.CharField(max_length = 15, unique = True) # Email email = models.EmailField(unique = True) # trips trip = mod...
23
61
0.638587
44
368
5.272727
0.522727
0.193966
0.232759
0.310345
0
0
0
0
0
0
0
0.02214
0.263587
368
15
62
24.533333
0.833948
0.097826
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.166667
0
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
130711c236adc996e392691969221a4e556478de
357
py
Python
pbesa/kernel/agent/Action.py
scottwedge/pbesa
21b161538aa0c508088dc47a3a88413b6fd6504d
[ "MIT" ]
2
2020-10-22T22:23:40.000Z
2021-09-14T01:18:01.000Z
pbesa/kernel/agent/Action.py
scottwedge/pbesa
21b161538aa0c508088dc47a3a88413b6fd6504d
[ "MIT" ]
2
2020-05-27T13:59:42.000Z
2022-03-02T14:58:12.000Z
pbesa/kernel/agent/Action.py
scottwedge/pbesa
21b161538aa0c508088dc47a3a88413b6fd6504d
[ "MIT" ]
1
2020-05-27T13:50:40.000Z
2020-05-27T13:50:40.000Z
from abc import ABC, abstractmethod from ...kernel.system.Adm import Adm class Action(ABC): id = None adm = None agent = None def __init__(self): super().__init__() @abstractmethod def execute(self, data): pass def setAgent(self, agent): self...
17.85
36
0.565826
41
357
4.731707
0.487805
0.092784
0
0
0
0
0
0
0
0
0
0
0.336134
357
19
37
18.789474
0.818565
0
0
0
0
0
0
0
0
0
0
0
0
1
0.214286
false
0.071429
0.142857
0
0.642857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
1309dbe23a84ba92c01ba487e0c818f79688fb45
200
py
Python
system/t12_api/version.py
maratsh/aptly
0e8af032fa4a2b24271e922378dcd256692919aa
[ "MIT" ]
null
null
null
system/t12_api/version.py
maratsh/aptly
0e8af032fa4a2b24271e922378dcd256692919aa
[ "MIT" ]
null
null
null
system/t12_api/version.py
maratsh/aptly
0e8af032fa4a2b24271e922378dcd256692919aa
[ "MIT" ]
null
null
null
from api_lib import APITest class VersionAPITest(APITest): """ GET /version """ def check(self): self.check_equal(self.get("/api/version").json(), {'Version': '0.9.6~dev'})
18.181818
83
0.605
26
200
4.576923
0.692308
0
0
0
0
0
0
0
0
0
0
0.018987
0.21
200
10
84
20
0.734177
0.06
0
0
0
0
0.162791
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
3
131af63d1db4fac3d35ba32c711e2f48fd7bb852
1,519
py
Python
tests/test_Func.py
devsetgo/python_101
dba99f75e97acb1ba50d4f514c9afebf27a87ad5
[ "MIT" ]
null
null
null
tests/test_Func.py
devsetgo/python_101
dba99f75e97acb1ba50d4f514c9afebf27a87ad5
[ "MIT" ]
13
2020-09-26T01:02:49.000Z
2022-02-01T09:00:46.000Z
tests/test_Func.py
devsetgo/python_101
dba99f75e97acb1ba50d4f514c9afebf27a87ad5
[ "MIT" ]
null
null
null
import sys,os sys.path.append(os.path.join(os.path.dirname(__file__),os.pardir,"lessons")) from unittest import TestCase from lesson_2.func import aFunction, aLoop, aFunc_1, aFunc_2, anIf class TestFunc(TestCase): def test_aFunction(self): testCase = {'expectedResult': 3} result = aFunc...
31.645833
86
0.610928
164
1,519
5.52439
0.27439
0.218543
0.154525
0.262693
0.475717
0.475717
0.430464
0.427152
0.368653
0.293598
0
0.017606
0.25214
1,519
48
87
31.645833
0.77993
0
0
0.363636
0
0
0.21317
0
0
0
0
0
0.212121
1
0.212121
false
0
0.090909
0
0.333333
0
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
3
1324880474064641fa1a1410518ea1f08cddbf4b
6,380
py
Python
ddn/basic/sample_nodes.py
pmorerio/ddn
68e44e3ccfbeed285a78bf75cc778802dd15890e
[ "MIT" ]
161
2019-09-08T05:22:43.000Z
2022-03-31T06:13:43.000Z
ddn/basic/sample_nodes.py
pmorerio/ddn
68e44e3ccfbeed285a78bf75cc778802dd15890e
[ "MIT" ]
11
2020-09-15T06:59:23.000Z
2021-12-27T04:15:19.000Z
ddn/basic/sample_nodes.py
pmorerio/ddn
68e44e3ccfbeed285a78bf75cc778802dd15890e
[ "MIT" ]
29
2019-09-15T08:34:45.000Z
2022-01-04T04:48:54.000Z
# SAMPLE DEEP DECLARATIVE NODES # Stephen Gould <stephen.gould@anu.edu.au> # Dylan Campbell <dylan.campbell@anu.edu.au> # from ddn.basic.node import * class SquaredErrorNode(AbstractNode): """Computes the squared difference between the input and a given target vector.""" def __init__(self, n, x_target=None): ...
32.886598
118
0.548119
1,088
6,380
3.113971
0.127757
0.020071
0.042503
0.042503
0.666175
0.636364
0.605372
0.587367
0.571133
0.519776
0
0.053006
0.272571
6,380
193
119
33.056995
0.677009
0.238715
0
0.524752
0
0
0.001288
0
0
0
0
0
0
1
0.356436
false
0
0.009901
0.148515
0.732673
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
13342e22a73c2c23b2d23f8fc5e0817827f66105
105
py
Python
10_Days_of_Statistics/day4_geometric1.py
csixteen/HackerRank
3ef6fa48599341f481b9e266c69df2d449a7b313
[ "MIT" ]
4
2018-04-19T20:32:54.000Z
2020-04-21T12:28:00.000Z
10_Days_of_Statistics/day4_geometric1.py
csixteen/HackerRank
3ef6fa48599341f481b9e266c69df2d449a7b313
[ "MIT" ]
null
null
null
10_Days_of_Statistics/day4_geometric1.py
csixteen/HackerRank
3ef6fa48599341f481b9e266c69df2d449a7b313
[ "MIT" ]
null
null
null
num, den = map(int, input().split(" ")) n = int(input()) p = num / den print(round(((1-p)**(n-1))*p, 3))
21
39
0.514286
20
105
2.7
0.6
0.222222
0
0
0
0
0
0
0
0
0
0.033708
0.152381
105
4
40
26.25
0.573034
0
0
0
0
0
0.009524
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
133dd1151441a1aebe789ad641e377d11e3476c8
1,843
py
Python
src/vector.py
Ali-Nawed/AiRacer
38ed458f0af4062cf9544ca51ee95e580fd2c1ba
[ "MIT" ]
null
null
null
src/vector.py
Ali-Nawed/AiRacer
38ed458f0af4062cf9544ca51ee95e580fd2c1ba
[ "MIT" ]
null
null
null
src/vector.py
Ali-Nawed/AiRacer
38ed458f0af4062cf9544ca51ee95e580fd2c1ba
[ "MIT" ]
null
null
null
import numpy as np class Vector(): ''' stores data about point in 2d plane and contains methods for operations with other points ''' def __init__(self, x, y): self._point = np.asarray([x, y]) @staticmethod def create_vector(distance, direction): return Vector(dist...
27.102941
83
0.605534
234
1,843
4.594017
0.264957
0.066977
0.069767
0.074419
0.27907
0.217674
0.173023
0.173023
0.107907
0.107907
0
0.004373
0.255562
1,843
67
84
27.507463
0.779155
0.077048
0
0
0
0
0
0
0
0
0
0
0
1
0.435897
false
0
0.025641
0.358974
0.897436
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
134bd6f6073d5adb0662add6b1f3f5675afe593a
50
py
Python
cfn_ami_to_mapping/enrich/__init__.py
vbanakh/cfn-ami-to-mapping
3946be1272a769b8791a4abcdb754822eb671a09
[ "MIT" ]
19
2019-09-04T06:53:21.000Z
2019-09-20T08:49:02.000Z
cfn_ami_to_mapping/enrich/__init__.py
vbanakh/cfn-ami-to-mapping
3946be1272a769b8791a4abcdb754822eb671a09
[ "MIT" ]
1
2021-02-11T11:46:32.000Z
2021-02-11T11:46:32.000Z
cfn_ami_to_mapping/enrich/__init__.py
vbanakh/cfn-ami-to-mapping
3946be1272a769b8791a4abcdb754822eb671a09
[ "MIT" ]
3
2019-11-03T10:20:39.000Z
2021-11-09T17:56:42.000Z
from .enrich import Enrich __all__ = ('Enrich',)
12.5
26
0.7
6
50
5.166667
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.16
50
3
27
16.666667
0.738095
0
0
0
0
0
0.12
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3