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
557ac7d884f6e45a0c26256774f437eba16231eb
31
py
Python
gem/src/keys_server/GMO/utils.py
Martynaslin/Workshop2019
b0edebc4c09a4778f2afa5fcd1a84e97300e15fb
[ "BSD-2-Clause" ]
1
2019-07-11T13:07:42.000Z
2019-07-11T13:07:42.000Z
gem/src/keys_server/GMO/utils.py
Martynaslin/Workshop2019
b0edebc4c09a4778f2afa5fcd1a84e97300e15fb
[ "BSD-2-Clause" ]
3
2019-07-02T17:04:39.000Z
2019-07-18T10:21:17.000Z
gem/src/keys_server/GMO/utils.py
Martynaslin/Workshop2019
b0edebc4c09a4778f2afa5fcd1a84e97300e15fb
[ "BSD-2-Clause" ]
6
2019-07-01T21:19:49.000Z
2021-02-10T13:34:51.000Z
""" Utilities for GMO model """
10.333333
23
0.645161
4
31
5
1
0
0
0
0
0
0
0
0
0
0
0
0.16129
31
3
24
10.333333
0.769231
0.741935
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
55884d3337ac3080f2d9905af1c7eacd262a9e32
1,874
py
Python
smartclient/backends/base.py
jbeluch/smartclient
16620f217730f2c1d6b6c24c96dd1eb85534812f
[ "MIT" ]
2
2018-12-13T21:07:24.000Z
2019-06-17T18:55:52.000Z
smartclient/backends/base.py
Squarespace/smartclient
16620f217730f2c1d6b6c24c96dd1eb85534812f
[ "MIT" ]
null
null
null
smartclient/backends/base.py
Squarespace/smartclient
16620f217730f2c1d6b6c24c96dd1eb85534812f
[ "MIT" ]
2
2019-06-07T01:51:23.000Z
2021-03-17T17:13:13.000Z
import abc class BackendBase(object): __metaclass__ = abc.ABCMeta @abc.abstractproperty def supports_watching(self): '''Return True if this backend supports watching for key changes (and therfore should implement watch_node() and watch_children(). ''' pass @abc.abstractproperty def client(self): '''Return the raw underlying client. If the client requires "starting", this should handle that. ''' @abc.abstractmethod def get_node(self, name): pass @abc.abstractmethod def get_children(self, name): pass class WatchableBase(BackendBase): supports_watching = True @abc.abstractmethod def watch_node(self, name, callback): '''Watches for changes in the node's value. Returns an instance of WatcherBase() which has a single method, stop(). ''' pass @abc.abstractmethod def watch_children(self, name, callback): '''Watches for changes in the child list of a given node. Returns an instance of WatcherBase() which has a single method, stop(). ''' pass @abc.abstractmethod def watch_all(self, name, callback): '''Watches for changes in the child list as well as watches each child node's values. Returns an instance of WatcherBaes() which has a single method, stop(). # TODO: need to conform the data passed into callbacks from watchers. ''' pass class NonWatchableBase(BackendBase): supports_watching = False @abc.abstractproperty def update_threshold(self): raise NotImplementedError('Please define an update threshold for this backend.') class WatcherBase(object): __metaclass__ = abc.ABCMeta @abc.abstractmethod def stop(self): '''Stops the watcher.''' pass
24.657895
88
0.648879
218
1,874
5.490826
0.389908
0.085213
0.100251
0.06015
0.318296
0.271512
0.250627
0.250627
0.218881
0.218881
0
0
0.271078
1,874
75
89
24.986667
0.876281
0.376734
0
0.514286
0
0
0.049228
0
0
0
0
0.013333
0
1
0.257143
false
0.2
0.028571
0
0.514286
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
1
0
0
1
0
0
4
5595d9685758da8cf42214e4dd423b7433cab00a
317
py
Python
bit_manipulation/136.py
MingfeiPan/leetcode
55dc878cfb7b15a34252410ae7420a656da604f8
[ "Apache-2.0" ]
null
null
null
bit_manipulation/136.py
MingfeiPan/leetcode
55dc878cfb7b15a34252410ae7420a656da604f8
[ "Apache-2.0" ]
null
null
null
bit_manipulation/136.py
MingfeiPan/leetcode
55dc878cfb7b15a34252410ae7420a656da604f8
[ "Apache-2.0" ]
null
null
null
#math solution class Solution: def singleNumber(self, nums: List[int]) -> int: return sum(set(nums))*2 - sum(nums) #xor solution, 注意xor的性质 1 ^ 1 = 0, 1 ^ 0 = 1 import functools class Solution: def singleNumber(self, nums: List[int]) -> int: return functools.reduce(lambda a, b: a ^ b, nums)
26.416667
57
0.640379
47
317
4.319149
0.489362
0.128079
0.157635
0.275862
0.512315
0.512315
0.512315
0.512315
0.512315
0.512315
0
0.028455
0.223975
317
11
58
28.818182
0.796748
0.176656
0
0.571429
0
0
0
0
0
0
0
0
0
1
0.285714
false
0
0.142857
0.285714
1
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
55b62d5465e485b601b4443bbb977e52707b27ed
482
py
Python
elementary/first-word.py
vargad/exercises
1a2fc2557672749d590ebdf596f99f53405320a1
[ "MIT" ]
1
2018-02-24T10:51:07.000Z
2018-02-24T10:51:07.000Z
elementary/first-word.py
vargad/exercises
1a2fc2557672749d590ebdf596f99f53405320a1
[ "MIT" ]
null
null
null
elementary/first-word.py
vargad/exercises
1a2fc2557672749d590ebdf596f99f53405320a1
[ "MIT" ]
1
2019-02-13T21:41:07.000Z
2019-02-13T21:41:07.000Z
#!/usr/bin/env python3 import re def first_word(text: str) -> str: return re.search("([a-zA-Z']+)", text)[1] if __name__ == '__main__': print(first_word("Hello World")) assert first_word("Hello World") == "Hello" assert first_word(" more spaces ") == "more" assert first_word("don't split it") == "don't" assert first_word("hello, world") == "hello" assert first_word("... very long sentence ...") == "very" assert first_word("mokus") == "mokus"
28.352941
61
0.618257
67
482
4.208955
0.507463
0.255319
0.319149
0.202128
0.319149
0.319149
0.319149
0.319149
0.319149
0
0
0.005089
0.184647
482
16
62
30.125
0.712468
0.043568
0
0
0
0
0.304348
0
0
0
0
0
0.545455
1
0.090909
false
0
0.090909
0.090909
0.272727
0.090909
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
1
0
0
0
0
0
0
0
0
0
4
55b9dce60187072fd1e8a9803a9febeb54fdc80b
182
py
Python
NLTKsetup.py
SamuelVedrik/PreprMachineLearningChallenge
48134e38405a6f12502f3c2c8856d7c9e89b178e
[ "MIT" ]
null
null
null
NLTKsetup.py
SamuelVedrik/PreprMachineLearningChallenge
48134e38405a6f12502f3c2c8856d7c9e89b178e
[ "MIT" ]
null
null
null
NLTKsetup.py
SamuelVedrik/PreprMachineLearningChallenge
48134e38405a6f12502f3c2c8856d7c9e89b178e
[ "MIT" ]
null
null
null
import warnings warnings.filterwarnings('ignore') import nltk nltk.download('punkt') nltk.download('averaged_perceptron_tagger') nltk.download('wordnet') nltk.download('stopwords')
20.222222
43
0.807692
21
182
6.904762
0.571429
0.331034
0
0
0
0
0
0
0
0
0
0
0.054945
182
8
44
22.75
0.843023
0
0
0
0
0
0.291209
0.142857
0
0
0
0
0
1
0
true
0
0.285714
0
0.285714
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
55ba41ba057c6f57ceeb123c53d23d2759beeb1e
243
py
Python
square.py
littlepudge123/Gitdemo
a2547baf41bd524ecf4f2f5abdd82e65daafe237
[ "MIT" ]
null
null
null
square.py
littlepudge123/Gitdemo
a2547baf41bd524ecf4f2f5abdd82e65daafe237
[ "MIT" ]
null
null
null
square.py
littlepudge123/Gitdemo
a2547baf41bd524ecf4f2f5abdd82e65daafe237
[ "MIT" ]
null
null
null
import turtle my_turtle=turtle.Turtle() my_turtle.shape("turtle") my_turtle.forward(200) my_turtle.right(90) my_turtle.forward(200) my_turtle.right(90) my_turtle.forward(200) my_turtle.right(90) my_turtle.forward(200) turtle.mainloop()
12.789474
25
0.786008
40
243
4.55
0.225
0.395604
0.32967
0.395604
0.642857
0.642857
0.642857
0.642857
0.642857
0.642857
0
0.080357
0.078189
243
19
26
12.789474
0.732143
0
0
0.636364
0
0
0.02459
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
0
0
0
0
null
1
1
1
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
55bbb1ef4fc1db6f2ebfe6df3d99ae46e1cd317b
207
py
Python
contrib/harbor-cli/harborclient/v2/searcher.py
eirinikos/harbor
efb3759d147ad225e00f161a49ab1e9ed4542b1f
[ "Apache-2.0" ]
99
2016-12-20T15:02:04.000Z
2022-03-23T02:13:11.000Z
contrib/harbor-cli/harborclient/v2/searcher.py
hjimmy/harbor
b308c6e4fc3540d03eae7d7c3146f63dab8e52c5
[ "Apache-2.0" ]
24
2016-12-26T06:53:49.000Z
2020-09-01T16:00:45.000Z
contrib/harbor-cli/harborclient/v2/searcher.py
hjimmy/harbor
b308c6e4fc3540d03eae7d7c3146f63dab8e52c5
[ "Apache-2.0" ]
31
2017-05-27T06:34:50.000Z
2021-11-05T07:44:14.000Z
from harborclient import base class SearchManager(base.Manager): def search(self, query): """Search for projects and repositories.""" return self.api.client.get("/search?q=%s" % query)
25.875
58
0.676329
26
207
5.384615
0.807692
0
0
0
0
0
0
0
0
0
0
0
0.193237
207
7
59
29.571429
0.838323
0.178744
0
0
0
0
0.073171
0
0
0
0
0
0
1
0.25
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
1
0
0
0
0
1
0
0
4
55c04151c15b31fdc680803e0016510c3dde172d
176
py
Python
backend/room/admin.py
glproj/tictactoe-online
4a99cda10f3112fb83f6f55b95b2c98a030c1658
[ "MIT" ]
null
null
null
backend/room/admin.py
glproj/tictactoe-online
4a99cda10f3112fb83f6f55b95b2c98a030c1658
[ "MIT" ]
null
null
null
backend/room/admin.py
glproj/tictactoe-online
4a99cda10f3112fb83f6f55b95b2c98a030c1658
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Room class RoomAdmin(admin.ModelAdmin): list_display = ('name', 'nb_of_players') admin.site.register(Room, RoomAdmin)
25.142857
44
0.772727
24
176
5.541667
0.75
0
0
0
0
0
0
0
0
0
0
0
0.119318
176
6
45
29.333333
0.858065
0
0
0
0
0
0.096591
0
0
0
0
0
0
1
0
false
0
0.4
0
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
1
0
1
0
0
4
e953b47be15ba41210a2ce9051645420c6605e98
135
py
Python
zad7_2.py
kamilhabrych/python-semestr5-lista7
588c0ad405344cf7e2b4ca6c9867720ed37def47
[ "MIT" ]
null
null
null
zad7_2.py
kamilhabrych/python-semestr5-lista7
588c0ad405344cf7e2b4ca6c9867720ed37def47
[ "MIT" ]
null
null
null
zad7_2.py
kamilhabrych/python-semestr5-lista7
588c0ad405344cf7e2b4ca6c9867720ed37def47
[ "MIT" ]
null
null
null
a = 5 b = 10 def zmien(a,b): c = a a = b b = c print("a:",a) print("b:",b) print("a:",a) print("b:",b) zmien(a,b)
10.384615
17
0.414815
29
135
1.931034
0.275862
0.107143
0.25
0.428571
0.5
0.5
0
0
0
0
0
0.032609
0.318519
135
13
18
10.384615
0.576087
0
0
0.363636
0
0
0.058824
0
0
0
0
0
0
1
0.090909
false
0
0
0
0.090909
0.363636
1
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
4
e95496495c731fb3366b8f85294ae70dda3a9e5e
123
py
Python
AtCoder/ABC/B/page-12/067B.py
Nishi05/Competitive-programming
e59a6755b706d9d5c1f359f4511d92c114e6a94e
[ "MIT" ]
null
null
null
AtCoder/ABC/B/page-12/067B.py
Nishi05/Competitive-programming
e59a6755b706d9d5c1f359f4511d92c114e6a94e
[ "MIT" ]
null
null
null
AtCoder/ABC/B/page-12/067B.py
Nishi05/Competitive-programming
e59a6755b706d9d5c1f359f4511d92c114e6a94e
[ "MIT" ]
null
null
null
n, k = map(int, input().split()) n_lst = list(map(int, input().split())) n_lst.sort(reverse=True) print(sum(n_lst[:k]))
15.375
39
0.626016
23
123
3.217391
0.565217
0.162162
0.297297
0.432432
0.540541
0.540541
0
0
0
0
0
0
0.113821
123
7
40
17.571429
0.678899
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
1
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
4
e957fd39b4da045e2b6c4b37c6fd03b98093f7c0
79
py
Python
argulib/__init__.py
roman-kutlak/argulib
97670e5c64e49de1fe3a344fdface9bc74559cfa
[ "MIT" ]
null
null
null
argulib/__init__.py
roman-kutlak/argulib
97670e5c64e49de1fe3a344fdface9bc74559cfa
[ "MIT" ]
null
null
null
argulib/__init__.py
roman-kutlak/argulib
97670e5c64e49de1fe3a344fdface9bc74559cfa
[ "MIT" ]
null
null
null
import logging logging.getLogger('argulib').addHandler(logging.NullHandler())
19.75
62
0.810127
8
79
8
0.75
0
0
0
0
0
0
0
0
0
0
0
0.050633
79
3
63
26.333333
0.853333
0
0
0
0
0
0.088608
0
0
0
0
0
0
1
0
true
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
1
0
1
0
0
0
0
4
75aa9f8278cf8e9fee16630a8afb6dea69b862b8
1,199
py
Python
graphene_linked_events/utils.py
City-of-Helsinki/palvelutarjotin
4ad67cbf4062832aba8080cb96ac785bdbbe9aa8
[ "MIT" ]
2
2020-11-10T16:31:26.000Z
2021-02-19T10:33:27.000Z
graphene_linked_events/utils.py
City-of-Helsinki/palvelutarjotin
4ad67cbf4062832aba8080cb96ac785bdbbe9aa8
[ "MIT" ]
239
2020-04-23T07:36:17.000Z
2022-03-15T08:38:38.000Z
graphene_linked_events/utils.py
City-of-Helsinki/palvelutarjotin
4ad67cbf4062832aba8080cb96ac785bdbbe9aa8
[ "MIT" ]
null
null
null
# https://stackoverflow.com/questions/6578986/how-to-convert-json-data # -into-a-python-object/15882054#15882054 import json from collections import namedtuple from django.conf import settings from graphene_linked_events.rest_client import LinkedEventsApiClient api_client = LinkedEventsApiClient(config=settings.LINKED_EVENTS_API_CONFIG) def format_response(response): # Some fields from api have @prefix that need to be converted return response.text.replace("@", "internal_") def json_object_hook(d): return namedtuple("X", d.keys())(*d.values()) def json2obj(data): return json.loads(data, object_hook=json_object_hook) def format_request(request): # TODO: Find better way to replace internal_id key return json.dumps(request).replace("internal_", "@") def retrieve_linked_events_data(resource, resource_id, params=None, is_staff=False): response = api_client.retrieve( resource, resource_id, params=params, is_staff=is_staff ) return json2obj(format_response(response)) def get_keyword_set_by_id(keyword_set_id): params = {"include": "keywords"} return retrieve_linked_events_data("keyword_set", keyword_set_id, params=params,)
29.975
85
0.769808
162
1,199
5.45679
0.450617
0.054299
0.049774
0.054299
0
0
0
0
0
0
0
0.023901
0.127606
1,199
39
86
30.74359
0.821224
0.18015
0
0
0
0
0.048106
0
0
0
0
0.025641
0
1
0.285714
false
0
0.190476
0.190476
0.761905
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
1
0
0
4
75c3521099c345642b5b87e426739510e6268e33
30
py
Python
modules/2.79/bpy/types/MovieTracking.py
cmbasnett/fake-bpy-module
acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55
[ "MIT" ]
null
null
null
modules/2.79/bpy/types/MovieTracking.py
cmbasnett/fake-bpy-module
acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55
[ "MIT" ]
null
null
null
modules/2.79/bpy/types/MovieTracking.py
cmbasnett/fake-bpy-module
acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55
[ "MIT" ]
null
null
null
MovieTracking.tracks = None
7.5
27
0.766667
3
30
7.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.166667
30
3
28
10
0.92
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
75d200679c2f9199125b9ff7b2b3b3afd4a36b76
563
py
Python
team_9/cocos/cocos/utils.py
Donnyvdm/dojo19
3cf043a84e3ad6d3c4d59cd9c50b160e1ff03400
[ "BSD-3-Clause" ]
1
2019-09-15T18:59:49.000Z
2019-09-15T18:59:49.000Z
team_9/cocos/cocos/utils.py
Donnyvdm/dojo19
3cf043a84e3ad6d3c4d59cd9c50b160e1ff03400
[ "BSD-3-Clause" ]
null
null
null
team_9/cocos/cocos/utils.py
Donnyvdm/dojo19
3cf043a84e3ad6d3c4d59cd9c50b160e1ff03400
[ "BSD-3-Clause" ]
null
null
null
"""original code moved to cocos.scenes.sequences""" from __future__ import division, print_function, unicode_literals __docformat__ = 'restructuredtext' import warnings from cocos.scenes.sequences import SequenceScene as SQ class SequenceScene(SQ): """moved to cocos.scenes.sequences""" def __init__(self, *scenes): warnings.warn('SequenceScene was moved from cocos.utils to cocos.scenes.sequences; ' 'The cocos.utils module will be removed in later cocos releases') super(SequenceScene, self).__init__(*scenes)
33.117647
92
0.731794
67
563
5.880597
0.552239
0.111675
0.203046
0.167513
0.137056
0
0
0
0
0
0
0
0.179396
563
16
93
35.1875
0.852814
0.136767
0
0
0
0
0.307368
0.048421
0
0
0
0
0
1
0.111111
false
0
0.333333
0
0.555556
0.111111
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
1
0
0
4
2f03fd79789d5fe13759fb64e3e680f7975a7f13
124
py
Python
CursoIntensivoPython/curso-intensivo-python-master/capitulo_07/exercicios/automoveis.py
SweydAbdul/estudos-python
b052708d0566a0afb9a1c04d035467d45f820879
[ "MIT" ]
null
null
null
CursoIntensivoPython/curso-intensivo-python-master/capitulo_07/exercicios/automoveis.py
SweydAbdul/estudos-python
b052708d0566a0afb9a1c04d035467d45f820879
[ "MIT" ]
null
null
null
CursoIntensivoPython/curso-intensivo-python-master/capitulo_07/exercicios/automoveis.py
SweydAbdul/estudos-python
b052708d0566a0afb9a1c04d035467d45f820879
[ "MIT" ]
null
null
null
carro = str(input('Que tipo de imagem você gostaria de alugar? ')) print(f'\nDeixe me ver se consigo um {carro} pra você.')
41.333333
66
0.709677
22
124
4
0.863636
0
0
0
0
0
0
0
0
0
0
0
0.16129
124
2
67
62
0.846154
0
0
0
0
0
0.725806
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
4
f9362625467a2cc119b26e539b7f8b8c6733e17e
187
py
Python
popmemes/backend/popmemes/admin.py
hangulu/twitter
e4461652d35fc6d547e93f364b56c1a1637c5547
[ "MIT" ]
null
null
null
popmemes/backend/popmemes/admin.py
hangulu/twitter
e4461652d35fc6d547e93f364b56c1a1637c5547
[ "MIT" ]
7
2019-12-29T08:23:25.000Z
2022-02-26T14:04:51.000Z
popmemes/backend/popmemes/admin.py
hangulu/twitter
e4461652d35fc6d547e93f364b56c1a1637c5547
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import PopImage class MemeAdmin(admin.ModelAdmin): list_display = ('user', 'pop_img', 'freq') admin.site.register(PopImage, MemeAdmin)
23.375
46
0.759358
24
187
5.833333
0.75
0
0
0
0
0
0
0
0
0
0
0
0.122995
187
7
47
26.714286
0.853659
0
0
0
0
0
0.080214
0
0
0
0
0
0
1
0
false
0
0.4
0
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
1
0
1
0
0
4
f94746195cd8975b1f309d66aa07c22c93c0490c
5,517
py
Python
internetradio/src/InternetRadioInformationScreen.py
Mariusz1970/enigma2-plugins-1
126d31d075c156f32b09d4321ebe1a17f93a5bd6
[ "OLDAP-2.3" ]
1
2020-01-27T22:53:56.000Z
2020-01-27T22:53:56.000Z
internetradio/src/InternetRadioInformationScreen.py
Mariusz1970/enigma2-plugins-1
126d31d075c156f32b09d4321ebe1a17f93a5bd6
[ "OLDAP-2.3" ]
null
null
null
internetradio/src/InternetRadioInformationScreen.py
Mariusz1970/enigma2-plugins-1
126d31d075c156f32b09d4321ebe1a17f93a5bd6
[ "OLDAP-2.3" ]
11
2015-02-26T20:59:14.000Z
2021-09-20T08:23:03.000Z
# # InternetRadio E2 # # Coded by Dr.Best (c) 2012 # Support: www.dreambox-tools.info # E-Mail: dr.best@dreambox-tools.info # # This plugin is open source but it is NOT free software. # # This plugin may only be distributed to and executed on hardware which # is licensed by Dream Multimedia GmbH. # In other words: # It's NOT allowed to distribute any parts of this plugin or its source code in ANY way # to hardware which is NOT licensed by Dream Multimedia GmbH. # It's NOT allowed to execute this plugin and its source code or even parts of it in ANY way # on hardware which is NOT licensed by Dream Multimedia GmbH. # # If you want to use or modify the code or parts of it, # you have to keep MY license and inform me about the modifications by mail. # from Screens.Screen import Screen from Components.ActionMap import ActionMap from Components.Label import Label from Components.ScrollLabel import ScrollLabel from Components.Sources.StaticText import StaticText from enigma import getDesktop class InternetRadioInformationScreen(Screen): sz_w = getDesktop(0).size().width() if sz_w == 1280: skin = """ <screen name="InternetRadioInformationScreen" position="0,0" size="1280,720" flags="wfNoBorder" backgroundColor="#00000000" title="Streaming Information"> <ePixmap position="50,30" zPosition="4" size="140,40" pixmap="skin_default/buttons/red.png" transparent="1" alphatest="on" /> <ePixmap position="200,30" zPosition="4" size="140,40" pixmap="skin_default/buttons/green.png" transparent="1" alphatest="on" /> <ePixmap position="350,30" zPosition="4" size="140,40" pixmap="skin_default/buttons/yellow.png" transparent="1" alphatest="on" /> <ePixmap position="500,30" zPosition="4" size="140,40" pixmap="skin_default/buttons/blue.png" transparent="1" alphatest="on" /> <widget render="Label" source="key_red" position="50,30" size="140,40" zPosition="5" valign="center" halign="center" backgroundColor="red" font="Regular;21" transparent="1" foregroundColor="white" shadowColor="black" shadowOffset="-1,-1" /> <widget render="Label" source="headertext" position="50,77" zPosition="1" size="1180,26" font="Regular;22" transparent="1" foregroundColor="#fcc000" backgroundColor="#00000000"/> <widget name="text" position="50,120" size="1180,550" font="Regular;20" transparent="1" backgroundColor="#00000000" /> </screen>""" elif sz_w == 1024: skin = """ <screen name="InternetRadioInformationScreen" position="0,0" size="1024,576" flags="wfNoBorder" backgroundColor="#00000000" title="Streaming Information"> <ePixmap position="50,30" zPosition="4" size="140,40" pixmap="skin_default/buttons/red.png" transparent="1" alphatest="on" /> <ePixmap position="200,30" zPosition="4" size="140,40" pixmap="skin_default/buttons/green.png" transparent="1" alphatest="on" /> <ePixmap position="350,30" zPosition="4" size="140,40" pixmap="skin_default/buttons/yellow.png" transparent="1" alphatest="on" /> <ePixmap position="500,30" zPosition="4" size="140,40" pixmap="skin_default/buttons/blue.png" transparent="1" alphatest="on" /> <widget render="Label" source="key_red" position="50,30" size="140,40" zPosition="5" valign="center" halign="center" backgroundColor="red" font="Regular;21" transparent="1" foregroundColor="white" shadowColor="black" shadowOffset="-1,-1" /> <widget render="Label" source="headertext" position="50,77" zPosition="1" size="620,26" font="Regular;22" transparent="1" foregroundColor="#fcc000" backgroundColor="#00000000"/> <widget name="text" position="50,120" size="620,406" font="Regular;20" transparent="1" foregroundColor="#fcc000" backgroundColor="#00000000" /> </screen>""" else: skin = """ <screen name="InternetRadioInformationScreen" position="0,0" size="720,576" flags="wfNoBorder" backgroundColor="#00000000" title="Streaming Information"> <ePixmap position="50,30" zPosition="4" size="140,40" pixmap="skin_default/buttons/red.png" transparent="1" alphatest="on" /> <ePixmap position="210,30" zPosition="4" size="140,40" pixmap="skin_default/buttons/green.png" transparent="1" alphatest="on" /> <ePixmap position="370,30" zPosition="4" size="140,40" pixmap="skin_default/buttons/yellow.png" transparent="1" alphatest="on" /> <ePixmap position="530,30" zPosition="4" size="140,40" pixmap="skin_default/buttons/blue.png" transparent="1" alphatest="on" /> <widget render="Label" source="key_red" position="50,30" size="140,40" zPosition="5" valign="center" halign="center" backgroundColor="red" font="Regular;21" transparent="1" foregroundColor="white" shadowColor="black" shadowOffset="-1,-1" /> <widget render="Label" source="headertext" position="50,77" zPosition="1" size="620,26" font="Regular;22" transparent="1" foregroundColor="#fcc000" backgroundColor="#00000000"/> <widget name="text" position="50,120" size="620,406" font="Regular;20" transparent="1" backgroundColor="#00000000" /> </screen>""" def __init__(self, session, meta): Screen.__init__(self, session) self["key_red"] = StaticText(_("Close")) self["headertext"] = StaticText(_("Streaming Information")) self["text"] = ScrollLabel(meta) self["actions"] = ActionMap(["WizardActions", "DirectionActions", "ColorActions", "EPGSelectActions", "InfobarActions"], { "ok": self.close, "back": self.close, "red": self.close, "upUp": self.pageUp, "downUp": self.pageDown, }, -1) def pageUp(self): self["text"].pageUp() def pageDown(self): self["text"].pageDown()
64.151163
244
0.721407
738
5,517
5.353659
0.233062
0.063781
0.034169
0.048595
0.719058
0.704126
0.692989
0.692989
0.627942
0.604151
0
0.080457
0.11238
5,517
85
245
64.905882
0.726363
0.129962
0
0.344828
0
0.413793
0.822976
0.220548
0
0
0
0
0
1
0.051724
false
0
0.103448
0
0.189655
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
f9537a3632109c69f580c27f31bfed88043b1e50
1,035
py
Python
archive/models.py
emawind84/rrwebtv
ae22cd39ea430aed0de2b852e40c309465a7237b
[ "MIT" ]
null
null
null
archive/models.py
emawind84/rrwebtv
ae22cd39ea430aed0de2b852e40c309465a7237b
[ "MIT" ]
2
2020-06-05T20:13:36.000Z
2021-06-10T21:18:43.000Z
archive/models.py
emawind84/rrwebtv
ae22cd39ea430aed0de2b852e40c309465a7237b
[ "MIT" ]
null
null
null
from django.db import models from uploads.core.models import Replay class Performance(models.Model): note = models.CharField(max_length=255, blank=True) pilot = models.CharField(max_length=200, blank=True) team = models.CharField(max_length=200, blank=True) rally = models.CharField(max_length=200, blank=True) track = models.CharField(max_length=200, blank=False) stage_number = models.CharField(max_length=200, blank=True) car = models.CharField(max_length=200, blank=True) category = models.CharField(max_length=200, blank=True) time = models.CharField(max_length=200, blank=True) youtube_id = models.CharField(max_length=200, blank=False) uploaded_at = models.DateTimeField(auto_now_add=True) featured = models.BooleanField(default=False) replay = models.OneToOneField(Replay, on_delete=models.CASCADE, blank=True, null=True) def __str__(self): return '{} - {}'.format(self.uploaded_at, self.track) class Meta: ordering = ('-featured', '-uploaded_at',)
45
90
0.730435
138
1,035
5.318841
0.376812
0.20436
0.245232
0.326975
0.444142
0.444142
0.444142
0
0
0
0
0.034014
0.147826
1,035
23
91
45
0.798186
0
0
0
0
0
0.027027
0
0
0
0
0
0
1
0.05
false
0
0.1
0.05
0.95
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
1
0
0
4
f9dc256fa8fca6e9ddaec5158810ff1d2183ab65
305
py
Python
torch_geometric/graphgym/models/pooling.py
itamblyn/pytorch_geometric
67ed16492863378b8434b03713a75924f0cc5df1
[ "MIT" ]
2
2020-08-06T16:14:15.000Z
2021-11-08T07:33:21.000Z
torch_geometric/graphgym/models/pooling.py
itamblyn/pytorch_geometric
67ed16492863378b8434b03713a75924f0cc5df1
[ "MIT" ]
1
2021-06-05T10:32:22.000Z
2021-06-05T10:32:22.000Z
torch_geometric/graphgym/models/pooling.py
itamblyn/pytorch_geometric
67ed16492863378b8434b03713a75924f0cc5df1
[ "MIT" ]
null
null
null
from torch_geometric.nn import (global_add_pool, global_mean_pool, global_max_pool) from torch_geometric.graphgym.register import register_pooling register_pooling('add', global_add_pool) register_pooling('mean', global_mean_pool) register_pooling('max', global_max_pool)
38.125
66
0.767213
40
305
5.4
0.325
0.277778
0.166667
0
0
0
0
0
0
0
0
0
0.160656
305
7
67
43.571429
0.84375
0
0
0
0
0
0.032787
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
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
1
0
1
0
0
0
0
4
f9e851bac151db0e66427be0f6fa7e26edadd035
4,536
py
Python
tests/test_region_bounds.py
fraserw/kbmod
65d69746d1dd8de867f8da147d73c09439d28b41
[ "BSD-2-Clause" ]
16
2018-07-23T11:39:05.000Z
2022-01-27T17:15:42.000Z
tests/test_region_bounds.py
fraserw/kbmod
65d69746d1dd8de867f8da147d73c09439d28b41
[ "BSD-2-Clause" ]
42
2017-06-19T22:55:41.000Z
2018-03-15T02:49:39.000Z
tests/test_region_bounds.py
fraserw/kbmod
65d69746d1dd8de867f8da147d73c09439d28b41
[ "BSD-2-Clause" ]
7
2018-07-23T11:39:04.000Z
2022-01-27T18:43:02.000Z
import unittest from kbmodpy import kbmod as kb class test_region_bounds(unittest.TestCase): def setUp(self): p = kb.psf(1.0) img = kb.layered_image("test", 4, 4, 0.0, 0.0, 0.0) stack = kb.image_stack([img]) self.search = kb.stack_search(stack, p) #def test_biggest_listit(self): # self.assertEqual(self.search.biggest_listit(0,0,10,10,32), 8) # self.assertEqual(self.search.biggest_listit(1,0,10,10,32), 1) # self.assertEqual(self.search.biggest_listit(0,1,10,10,32), 1) # self.assertEqual(self.search.biggest_listit(2,0,10,10,32), 2) # self.assertEqual(self.search.biggest_listit(0,4,10,10,32), 4) # self.assertEqual(self.search.biggest_listit(4,4,10,10,32), 4) # self.assertEqual(self.search.biggest_listit(10,10,50,50,128), 2) # self.assertEqual(self.search.biggest_listit(10,11,64,64,128), 1) # self.assertEqual(self.search.biggest_listit(16,16,64,64,128), 16) # self.assertEqual(self.search.biggest_listit(16,20,64,64,128), 4) # self.assertEqual(self.search.biggest_listit(-150,-100,100,125,1024), 2) # self.assertEqual(self.search.biggest_listit(-64,32,2000,2000,2048), 32) # self.assertEqual(self.search.biggest_listit(8,8,12,17,128), 4) # self.assertEqual(self.search.biggest_listit(8,8,11,16,128), 2) # self.assertEqual(self.search.biggest_listit(-128,192,512,1024,512), 64) def test_square_sdf(self): self.assertEqual(self.search.square_sdf(1.0, 1.5, 1.5, 1.5, 0.5), 0.5) self.assertEqual(self.search.square_sdf(30, 15, 15, 50, 15), 20) self.assertEqual(self.search.square_sdf(2.0, 4.5, 2.5, 4.5, 1.5), 0.0) self.assertLess(self.search.square_sdf(10.0, 10.5, 11.5, 12.5, 11.5), 0.0) self.assertEqual(self.search.square_sdf(1.0, 0.0, 0.0, 0.5, 0.5), 0.0) self.assertEqual(self.search.square_sdf(2.0, 6.0, 6.0, 6.0, 6.0), -1.0) self.assertEqual(self.search.square_sdf(1.0, 1.5, 1.5, 1.5, 0.5), 0.5) def test_listilter_bounds(self): t_list = [] t = kb.traj_region() t.ix, t.iy, t.fx, t.fy, t.depth = 50, 50, 100, 100, 0 t_list.append(t) t = kb.traj_region() t.ix, t.iy, t.fx, t.fy, t.depth = 50, 50, 115, 112, 0 t_list.append(t) t = kb.traj_region() t.ix, t.iy, t.fx, t.fy, t.depth = -40, 25, 10, 55, 0 t_list.append(t) t = kb.traj_region() t.ix, t.iy, t.fx, t.fy, t.depth = 280, 130, 330, 180, 0 t_list.append(t) # filter trajectories out of search bounds t_list = self.search.filter_bounds(t_list, 10.0, 10.0, 5.0, 10.0) self.assertEqual(len(t_list), 2) self.assertEqual(t_list[0].ix, 50) self.assertEqual(t_list[0].iy, 50) self.assertEqual(t_list[0].fx, 100) self.assertEqual(t_list[0].fy, 100) self.assertEqual(t_list[1].ix, 280) self.assertEqual(t_list[1].iy, 130) self.assertEqual(t_list[1].fx, 330) self.assertEqual(t_list[1].fy, 180) def test_listilter_bounds_depth(self): t_list = [] t = kb.traj_region() t.ix, t.iy, t.fx, t.fy, t.depth = 2, 4, 3, 5, 6 t_list.append(t) t = kb.traj_region() t.ix, t.iy, t.fx, t.fy, t.depth = 0, 0, 0, 0, 8 t_list.append(t) t = kb.traj_region() t.ix, t.iy, t.fx, t.fy, t.depth = 1, 1, -1, -1, 7 t_list.append(t) t = kb.traj_region() t.ix, t.iy, t.fx, t.fy, t.depth = -40, 125, 20, 194, 0 t_list.append(t) t = kb.traj_region() t.ix, t.iy, t.fx, t.fy, t.depth = 280, 130, 310, 160, 1 t_list.append(t) t = kb.traj_region() t.ix, t.iy, t.fx, t.fy, t.depth = 280, 130, 300, 170, 1 t_list.append(t) # filter trajectories out of search bounds t_list = self.search.filter_bounds(t_list, 32.0, 32.0, 2.0, 16.0) self.assertEqual(len(t_list), 4) self.assertEqual(t_list[0].ix, 2) self.assertEqual(t_list[0].iy, 4) self.assertEqual(t_list[0].fx, 3) self.assertEqual(t_list[0].fy, 5) self.assertEqual(t_list[1].ix, 0) self.assertEqual(t_list[1].iy, 0) self.assertEqual(t_list[1].fx, 0) self.assertEqual(t_list[1].fy, 0) self.assertEqual(t_list[2].ix, -40) self.assertEqual(t_list[2].iy, 125) self.assertEqual(t_list[2].fx, 20) self.assertEqual(t_list[2].fy, 194) self.assertEqual(t_list[3].ix, 280) self.assertEqual(t_list[3].iy, 130) self.assertEqual(t_list[3].fx, 310) self.assertEqual(t_list[3].fy, 160) if __name__ == '__main__': unittest.main()
42
80
0.619929
831
4,536
3.265945
0.1071
0.259764
0.141489
0.176861
0.788136
0.73434
0.525792
0.447679
0.356301
0.327929
0
0.130111
0.20194
4,536
107
81
42.392523
0.619613
0.246252
0
0.3
0
0
0.003528
0
0
0
0
0
0.4125
1
0.05
false
0
0.025
0
0.0875
0
0
0
0
null
1
0
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
4
ddec8634dbd6b284cd81b6a28ce3626140668724
185
py
Python
examples/team/python/__main__.py
stmcallister/pulumi-pagerduty
b2816e19b3243bba646e8e095b475299ad6a7b8f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
examples/team/python/__main__.py
stmcallister/pulumi-pagerduty
b2816e19b3243bba646e8e095b475299ad6a7b8f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
examples/team/python/__main__.py
stmcallister/pulumi-pagerduty
b2816e19b3243bba646e8e095b475299ad6a7b8f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import pulumi import pulumi_pagerduty as pagerduty team = pagerduty.Team("demo-team-py", description="Generated from examples") pulumi.export("name", team.name)
23.125
60
0.691892
22
185
5.772727
0.590909
0.188976
0
0
0
0
0
0
0
0
0
0
0.205405
185
7
61
26.428571
0.863946
0
0
0
1
0
0.210811
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
1
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
fb363185c504083eb84bd2fba7750a3e5af0fb2a
183
py
Python
happypandax_client/__init__.py
happypandax/py-client
30c4c8b628a96f8fef68a9cd8da01038a55ad792
[ "MIT" ]
3
2019-05-19T16:53:29.000Z
2020-06-25T16:01:15.000Z
happypandax_client/__init__.py
happypandax/py-client
30c4c8b628a96f8fef68a9cd8da01038a55ad792
[ "MIT" ]
null
null
null
happypandax_client/__init__.py
happypandax/py-client
30c4c8b628a96f8fef68a9cd8da01038a55ad792
[ "MIT" ]
null
null
null
from . import client, exceptions from .client import * from .exceptions import * __all__ = ['client', 'exceptions'] __all__.extend(client.__all__) __all__.extend(exceptions.__all__)
22.875
34
0.770492
21
183
5.761905
0.285714
0.264463
0
0
0
0
0
0
0
0
0
0
0.10929
183
8
35
22.875
0.742331
0
0
0
0
0
0.086957
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
348e97dd8fde84e254a03145d898fd7af609c168
101
py
Python
twilioHandler/apps.py
slow-and-serious/caller-app
dbc4f82007f8f7d97905ca9c5f4cfcba27136f09
[ "MIT" ]
null
null
null
twilioHandler/apps.py
slow-and-serious/caller-app
dbc4f82007f8f7d97905ca9c5f4cfcba27136f09
[ "MIT" ]
13
2020-10-24T20:03:59.000Z
2020-11-03T19:22:22.000Z
twilioHandler/apps.py
slow-and-serious/caller-app
dbc4f82007f8f7d97905ca9c5f4cfcba27136f09
[ "MIT" ]
null
null
null
from django.apps import AppConfig class TwiliohandlerConfig(AppConfig): name = 'twilioHandler'
16.833333
37
0.782178
10
101
7.9
0.9
0
0
0
0
0
0
0
0
0
0
0
0.148515
101
5
38
20.2
0.918605
0
0
0
0
0
0.128713
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
34a6a4292994bd61ad9b84318987de889ea02799
900
py
Python
npc/gui/commands.py
Arent128/npc
c8a1e227a1d4d7c540c4f4427b611ffc290535ee
[ "MIT" ]
null
null
null
npc/gui/commands.py
Arent128/npc
c8a1e227a1d4d7c540c4f4427b611ffc290535ee
[ "MIT" ]
null
null
null
npc/gui/commands.py
Arent128/npc
c8a1e227a1d4d7c540c4f4427b611ffc290535ee
[ "MIT" ]
null
null
null
""" GUI command functions These functions are a facade on top of the npc library. Designed to be run from the GUI. """ from npc import commands, util def init(**kwargs): return commands.init(**kwargs) def open_settings(*args, **kwargs): return commands.open_settings(*args, **kwargs) def find_characters(*args): return commands.find_characters(*args) def create_standard(kwargs): serial_args, keyword_args = util.serialize_args('name', 'ctype', **kwargs) return commands.create_character.standard(*serial_args, **keyword_args) def create_changeling(kwargs): serial_args, keyword_args = util.serialize_args('name', 'seeming', 'kith', **kwargs) return commands.create_character.changeling(*serial_args, **keyword_args) def session(**kwargs): return commands.story.session(**kwargs) def latest(*args, **kwargs): return commands.story.latest(*args, **kwargs)
29.032258
88
0.735556
118
900
5.457627
0.372881
0.152174
0.186335
0.130435
0.332298
0.149068
0.149068
0.149068
0.149068
0
0
0
0.133333
900
30
89
30
0.825641
0.123333
0
0
0
0
0.03073
0
0
0
0
0
0
1
0.411765
false
0
0.058824
0.294118
0.882353
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
34aa0b0a9ed4fcc00f541bf06ce5f3e785b6b2bf
88
py
Python
chronos/config.py
LanzLagman/chronos
3c7e32e7bd8ed85d442ce3ecbf4c9a5272e8e470
[ "MIT" ]
null
null
null
chronos/config.py
LanzLagman/chronos
3c7e32e7bd8ed85d442ce3ecbf4c9a5272e8e470
[ "MIT" ]
null
null
null
chronos/config.py
LanzLagman/chronos
3c7e32e7bd8ed85d442ce3ecbf4c9a5272e8e470
[ "MIT" ]
null
null
null
import pkg_resources DATA_PATH = pkg_resources.resource_filename("chronos", "../data")
22
65
0.784091
11
88
5.909091
0.727273
0.369231
0
0
0
0
0
0
0
0
0
0
0.079545
88
3
66
29.333333
0.802469
0
0
0
0
0
0.159091
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
34b6f45658936d3a8e450ee07b38f76cb1f64fb5
205
py
Python
wingsdemo/lambda_function.py
irlrobot/wingsdemolambda
f6983cf724e3f6c7beb1aeab12acbf834d31eb4f
[ "MIT" ]
null
null
null
wingsdemo/lambda_function.py
irlrobot/wingsdemolambda
f6983cf724e3f6c7beb1aeab12acbf834d31eb4f
[ "MIT" ]
null
null
null
wingsdemo/lambda_function.py
irlrobot/wingsdemolambda
f6983cf724e3f6c7beb1aeab12acbf834d31eb4f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 def handler(event, context): print("Hello World!") print("=====Event=====") print("{}".format(event)) print("=====Context=====") print("{}".format(context))
22.777778
31
0.531707
21
205
5.190476
0.571429
0.220183
0
0
0
0
0
0
0
0
0
0.005917
0.17561
205
9
32
22.777778
0.639053
0.102439
0
0
0
0
0.26087
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.166667
0.833333
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
1
0
4
34e085c915db0544cc6f7a0cf55ed528420332b0
1,545
py
Python
tests/test_pressure_atmospheres.py
putridparrot/PyUnits
4f1095c6fc0bee6ba936921c391913dbefd9307c
[ "MIT" ]
null
null
null
tests/test_pressure_atmospheres.py
putridparrot/PyUnits
4f1095c6fc0bee6ba936921c391913dbefd9307c
[ "MIT" ]
null
null
null
tests/test_pressure_atmospheres.py
putridparrot/PyUnits
4f1095c6fc0bee6ba936921c391913dbefd9307c
[ "MIT" ]
null
null
null
# <auto-generated> # This code was generated by the UnitCodeGenerator tool # # Changes to this file will be lost if the code is regenerated # </auto-generated> import unittest import units.pressure.atmospheres class TestAtmospheresMethods(unittest.TestCase): def test_convert_known_atmospheres_to_bars(self): self.assertAlmostEqual(6.0795, units.pressure.atmospheres.to_bars(6.0), places=1) self.assertAlmostEqual(1.2159, units.pressure.atmospheres.to_bars(1.2), places=1) self.assertAlmostEqual(0.8106, units.pressure.atmospheres.to_bars(0.8), places=1) def test_convert_known_atmospheres_to_pascals(self): self.assertAlmostEqual(81060.0, units.pressure.atmospheres.to_pascals(0.8), places=1) self.assertAlmostEqual(121590.0, units.pressure.atmospheres.to_pascals(1.2), places=1) self.assertAlmostEqual(45596.25, units.pressure.atmospheres.to_pascals(0.45), places=1) def test_convert_known_atmospheres_to_torrs(self): self.assertAlmostEqual(342.0, units.pressure.atmospheres.to_torrs(0.45), places=1) self.assertAlmostEqual(912.0, units.pressure.atmospheres.to_torrs(1.2), places=1) self.assertAlmostEqual(4560.0, units.pressure.atmospheres.to_torrs(6.0), places=1) def test_convert_known_atmospheres_to_psi(self): self.assertAlmostEqual(88.1757, units.pressure.atmospheres.to_psi(6.0), places=1) self.assertAlmostEqual(5.87838, units.pressure.atmospheres.to_psi(0.4), places=1) self.assertAlmostEqual(17.6351, units.pressure.atmospheres.to_psi(1.2), places=1) if __name__ == '__main__': unittest.main()
45.441176
89
0.796117
227
1,545
5.242291
0.273128
0.17479
0.262185
0.262185
0.567227
0.418487
0.098319
0.098319
0
0
0
0.073034
0.078317
1,545
33
90
46.818182
0.76264
0.09644
0
0
1
0
0.005755
0
0
0
0
0
0.571429
1
0.190476
false
0
0.095238
0
0.333333
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
1
0
0
0
0
0
0
0
0
0
4
34f2a15eb427ebd032f641a92f5cc080e694acbd
663
py
Python
shardingpy/api/algorithm/masterslave/factory.py
hongfuli/sharding-py
a26a64aa9d9196c830e7e2fa4095a58bef608a40
[ "Apache-2.0" ]
1
2021-01-29T13:29:29.000Z
2021-01-29T13:29:29.000Z
shardingpy/api/algorithm/masterslave/factory.py
hongfuli/sharding-py
a26a64aa9d9196c830e7e2fa4095a58bef608a40
[ "Apache-2.0" ]
null
null
null
shardingpy/api/algorithm/masterslave/factory.py
hongfuli/sharding-py
a26a64aa9d9196c830e7e2fa4095a58bef608a40
[ "Apache-2.0" ]
null
null
null
from shardingpy.api.algorithm.masterslave.base import MasterSlaveLoadBalanceAlgorithmType from shardingpy.api.algorithm.masterslave.impl import RandomMasterSlaveLoadBalanceAlgorithm, \ RoundRobinMasterSlaveLoadBalanceAlgorithm def get_master_slave_load_balance_algorithm_by_type(algorithm_type): assert isinstance(algorithm_type, MasterSlaveLoadBalanceAlgorithmType) return RandomMasterSlaveLoadBalanceAlgorithm() if algorithm_type == MasterSlaveLoadBalanceAlgorithmType.RANDOM \ else RoundRobinMasterSlaveLoadBalanceAlgorithm() def get_default_master_slave_load_balance_algorithm(): return RoundRobinMasterSlaveLoadBalanceAlgorithm()
47.357143
116
0.871795
52
663
10.807692
0.5
0.069395
0.060498
0.092527
0.241993
0
0
0
0
0
0
0
0.084465
663
13
117
51
0.925865
0
0
0
0
0
0
0
0
0
0
0
0.111111
1
0.222222
false
0
0.222222
0.111111
0.666667
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
34f4ee4ed72617aa0962ab1bb2e91e8fdc8b111c
195
py
Python
numpie4.py
restlessankyyy/Python
c46ea72cda782ce21738e4792c436637b66d12a8
[ "bzip2-1.0.6" ]
null
null
null
numpie4.py
restlessankyyy/Python
c46ea72cda782ce21738e4792c436637b66d12a8
[ "bzip2-1.0.6" ]
null
null
null
numpie4.py
restlessankyyy/Python
c46ea72cda782ce21738e4792c436637b66d12a8
[ "bzip2-1.0.6" ]
null
null
null
import numpy as np dataset = np.random.random((2,3)) print dataset print dataset.max() #print dataset.max(1) print dataset.max(axis=0) print np.reshape(dataset,(3,2)) print dataset
16.25
34
0.697436
32
195
4.25
0.4375
0.441176
0.330882
0
0
0
0
0
0
0
0
0.037037
0.169231
195
11
35
17.727273
0.802469
0.102564
0
0.285714
0
0
0
0
0
0
0
0
0
0
null
null
0
0.142857
null
null
0.714286
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
1
0
4
551a3de712702d12338f2e94f11b3e273d9e8e41
87
py
Python
app/recipe/apps.py
kimuson13/recipi-app-api
4ed3fec9470a03bf5b409bab9dace7a3e9bcf7c5
[ "MIT" ]
null
null
null
app/recipe/apps.py
kimuson13/recipi-app-api
4ed3fec9470a03bf5b409bab9dace7a3e9bcf7c5
[ "MIT" ]
null
null
null
app/recipe/apps.py
kimuson13/recipi-app-api
4ed3fec9470a03bf5b409bab9dace7a3e9bcf7c5
[ "MIT" ]
null
null
null
from django.apps import AppConfig class RecipiConfig(AppConfig): name = 'recipe'
14.5
33
0.747126
10
87
6.5
0.9
0
0
0
0
0
0
0
0
0
0
0
0.172414
87
5
34
17.4
0.902778
0
0
0
0
0
0.068966
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
9b43d7888ffd7ff1bf33d20ab5301bf83f418b0a
3,573
py
Python
src/number_islands.py
diegoinacio/interview-challenges
a1c182bf4708a011f97aefa91636e99156ca1c98
[ "MIT" ]
1
2020-02-20T15:05:16.000Z
2020-02-20T15:05:16.000Z
src/number_islands.py
diegoinacio/interview-challenges
a1c182bf4708a011f97aefa91636e99156ca1c98
[ "MIT" ]
null
null
null
src/number_islands.py
diegoinacio/interview-challenges
a1c182bf4708a011f97aefa91636e99156ca1c98
[ "MIT" ]
null
null
null
# ! Problem # * 4-connected neighborhood # 0 1 0 # \ | / # 1 - ? - 1 # / | \ # 0 1 0 # * 8-connected neighborhood # 1 1 1 # \ | / # 1 - ? - 1 # / | \ # 1 1 1 # ? Function Description # Return number of islands for each situation. # - 4-connected neighborhood does not consider diagonals # - 8-connected neighborhood considers diagonals as adjacent from typing import List, Tuple def _valid_neighborhood(grid, labels, s, t, M, N): # Check if current member of neighborhood is valid if (s or t) < 0: return None if (s >= M) or (t >= N): return None if labels[s][t]: return None if grid[s][t] <= 0: labels[s][t] = -1 return None return (s, t) def numIslandsC4(grid: List[int]) -> int: ''' Define number of island given the 4-connected neighborhood ''' islands = 0 M, N = len(grid), len(grid[0]) # 4-connected neighborhood offset connected_4 = [(1, 0), (0, 1), (-1, 0), (0, -1)] # Matrix of labels labels = [[0 for _ in range(M)] for _ in range(N)] for m in range(M): for n in range(N): if labels[m][n]: # Ignore visited positions continue if not grid[m][n]: # Ignore invalid positions (p == 0) # and mark its labels as -1 labels[m][n] = -1 continue islands += 1 connected = [(m, n)] # Init scan from the current position for (s, t) in connected: neighborhood = set([None, *connected]) # Search for valid neighbors neighborhood |= {*[_valid_neighborhood( grid, labels, s + u, t + v, M, N ) for (u, v) in connected_4]} neighborhood.remove(None) # Include valid neighbors to the current scan connected += list([v for v in neighborhood if v not in connected]) # Add island label to the position [s, t] labels[s][t] = islands return islands def numIslandsC8(grid: List[int]) -> int: ''' Define number of island given the 8-connected neighborhood ''' islands = 0 M, N = len(grid), len(grid[0]) # 8-connected neighborhood offset connected_8 = [ (1 , -1), (1 , 0), ( 1, 1), (0 , -1), ( 0, 1), (-1, -1), (-1, 0), (-1, 1) ] # Matrix of labels labels = [[0 for _ in range(M)] for _ in range(N)] for m in range(M): for n in range(N): if labels[m][n]: # Ignore visited positions continue if not grid[m][n]: # Ignore invalid positions (p == 0) # and mark its labels as -1 labels[m][n] = -1 continue islands += 1 connected = [(m, n)] # Init scan from the current position for (s, t) in connected: neighborhood = set([None, *connected]) # Search for valid neighbors neighborhood |= {*[_valid_neighborhood( grid, labels, s + u, t + v, M, N ) for (u, v) in connected_8]} neighborhood.remove(None) # Include valid neighbors to the current scan connected += list([v for v in neighborhood if v not in connected]) # Add island label to the position [s, t] labels[s][t] = islands return islands
30.801724
82
0.496502
445
3,573
3.955056
0.173034
0.018182
0.015341
0.013636
0.725568
0.708523
0.704545
0.692045
0.692045
0.692045
0
0.032629
0.390988
3,573
115
83
31.069565
0.776195
0.298629
0
0.709677
0
0
0
0
0
0
0
0
0
1
0.048387
false
0
0.016129
0
0.177419
0
0
0
0
null
0
0
0
0
1
1
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
4
9b55941687dc422d9266381999b8f4e932372289
81
py
Python
tests/system/runtimes/assets/function-with-catcher.py
Hedingber/mlrun
e2269718fcc7caa7e1aa379ac28495830b45f9da
[ "Apache-2.0" ]
1
2021-02-17T08:12:33.000Z
2021-02-17T08:12:33.000Z
tests/system/runtimes/assets/function-with-catcher.py
Hedingber/mlrun
e2269718fcc7caa7e1aa379ac28495830b45f9da
[ "Apache-2.0" ]
null
null
null
tests/system/runtimes/assets/function-with-catcher.py
Hedingber/mlrun
e2269718fcc7caa7e1aa379ac28495830b45f9da
[ "Apache-2.0" ]
1
2021-08-30T21:43:38.000Z
2021-08-30T21:43:38.000Z
def inc(x): return x + 1 def catcher(event): print(event.origin_state)
11.571429
29
0.641975
13
81
3.923077
0.769231
0
0
0
0
0
0
0
0
0
0
0.016129
0.234568
81
6
30
13.5
0.806452
0
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0
0.25
0.75
0.25
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
4
9b760facd461f0e4b91d26677ee4d6ac6aa569cb
8,393
py
Python
tests.py
Crozzers/w2n2w
b05533bd29faebe4ab48012ef6437f7e984113af
[ "MIT" ]
null
null
null
tests.py
Crozzers/w2n2w
b05533bd29faebe4ab48012ef6437f7e984113af
[ "MIT" ]
null
null
null
tests.py
Crozzers/w2n2w
b05533bd29faebe4ab48012ef6437f7e984113af
[ "MIT" ]
null
null
null
import unittest import w2n2w class TestWordToNumber(unittest.TestCase): def test_positives(self): self.assertEqual(w2n2w.word_to_num("two million three thousand nine hundred and eighty four"), 2003984) self.assertEqual(w2n2w.word_to_num("one hundred and twenty three million four hundred and fifty six thousand seven hundred and eighty nine"), 123456789) self.assertEqual(w2n2w.word_to_num("nineteen"), 19) self.assertEqual(w2n2w.word_to_num("two thousand and nineteen"), 2019) self.assertEqual(w2n2w.word_to_num("two million three thousand and nineteen"), 2003019) self.assertEqual(w2n2w.word_to_num('three billion'), 3000000000) self.assertAlmostEqual(w2n2w.word_to_num('three billionths'), 3 / 10**9) # rounding error caused by floats or something idk self.assertEqual(w2n2w.word_to_num('three million'), 3000000) self.assertEqual(w2n2w.word_to_num('three millionths'), 3 / 10**6) self.assertEqual(w2n2w.word_to_num('one hundred twenty three million four hundred fifty six thousand seven hundred and eighty nine'), 123456789) self.assertEqual(w2n2w.word_to_num('eleven'), 11) self.assertEqual(w2n2w.word_to_num('nineteen billion and nineteen'), 19000000019) self.assertEqual(w2n2w.word_to_num('one hundred and forty two'), 142) self.assertEqual(w2n2w.word_to_num('112'), 112) self.assertEqual(w2n2w.word_to_num('11211234'), 11211234) self.assertEqual(w2n2w.word_to_num('five'), 5) self.assertEqual(w2n2w.word_to_num('two million twenty three thousand and forty nine'), 2023049) self.assertEqual(w2n2w.word_to_num('two point three'), 2.3) self.assertEqual(w2n2w.word_to_num('two million twenty three thousand and forty nine point two three six nine'), 2023049.2369) self.assertEqual(w2n2w.word_to_num('one billion two million twenty three thousand and forty nine point two three six nine'), 1002023049.2369) self.assertEqual(w2n2w.word_to_num('point one'), 0.1) self.assertEqual(w2n2w.word_to_num('one hundred thirty-five'), 135) self.assertEqual(w2n2w.word_to_num('hundred'), 100) self.assertEqual(w2n2w.word_to_num('thousand'), 1000) self.assertEqual(w2n2w.word_to_num('million'), 1000000) self.assertEqual(w2n2w.word_to_num('billion'), 1000000000) self.assertEqual(w2n2w.word_to_num('nine point nine nine nine'), 9.999) self.assertEqual(w2n2w.word_to_num('minus twenty-two point two six'), -22.26) self.assertEqual(w2n2w.word_to_num('negative ninety nine'), -99) self.assertEqual(w2n2w.word_to_num('negative zero'), 0) self.assertEqual(w2n2w.word_to_num('one octillion four hundred and sixty three trillion and nine'), 10**27 + (463 * 10**12) + 9) self.assertEqual(w2n2w.word_to_num('one million decillion'), 10**6 * 10**33) self.assertEqual(w2n2w.word_to_num('seventy first'), 71) self.assertEqual(w2n2w.word_to_num('hundredth'), 100) self.assertEqual(w2n2w.word_to_num('one hundredth'), 1 / 100) self.assertEqual(w2n2w.word_to_num('millionth'), 10**6) self.assertEqual(w2n2w.word_to_num('one millionth'), 1 / (10**6)) self.assertEqual(w2n2w.word_to_num('million hundred thousand three hundred and ninety second'), 1_100_392) self.assertEqual(w2n2w.word_to_num('minus one hundred and thirty first'), -131) self.assertEqual(w2n2w.word_to_num('seventy first point 5'), 71.5) self.assertEqual(w2n2w.word_to_num('one half'), .5) self.assertEqual(w2n2w.word_to_num('two half'), 1) self.assertEqual(w2n2w.word_to_num('five halves'), 2.5) self.assertEqual(w2n2w.word_to_num('one halves'), .5) self.assertEqual(w2n2w.word_to_num('half a million and a third'), 500_000 + (1 / 3)) self.assertEqual(w2n2w.word_to_num('a seventeenth of sixty two'), 62 / 17) self.assertEqual(w2n2w.word_to_num('a seventeenth of sixty two and two thirds'), (62 + (2 / 3)) / 17) self.assertEqual(w2n2w.word_to_num('three thirds of ten'), 10) def test_negatives(self): self.assertRaises(ValueError, w2n2w.word_to_num, '-') self.assertRaises(ValueError, w2n2w.word_to_num, 'on') self.assertRaises(ValueError, w2n2w.word_to_num, 'point') # self.assertRaises(ValueError, w2n2w.word_to_num, 'million four million') # I'm not sure what to do with this ^ so I'll come back to it self.assertRaises(ValueError, w2n2w.word_to_num, 'one billion point two million twenty three thousand and forty nine point two three six nine') self.assertRaises(TypeError, w2n2w.word_to_num, 112) class TestNumberToWord(unittest.TestCase): def test_positives(self): self.assertEqual(w2n2w.num_to_word(2_003_984), "two million three thousand nine hundred and eighty four") self.assertEqual(w2n2w.num_to_word(19), "nineteen") self.assertEqual(w2n2w.num_to_word(2019), "two thousand and nineteen") self.assertEqual(w2n2w.num_to_word(2_003_019), "two million three thousand and nineteen") self.assertEqual(w2n2w.num_to_word(3_000_000_000), "three billion") self.assertEqual(w2n2w.num_to_word(3_000_000), "three million") self.assertEqual(w2n2w.num_to_word(123456789), "one hundred and twenty three million four hundred and fifty six thousand seven hundred and eighty nine") self.assertEqual(w2n2w.num_to_word(11), "eleven") self.assertEqual(w2n2w.num_to_word(19_000_000_019), "nineteen billion and nineteen") self.assertEqual(w2n2w.num_to_word(142), "one hundred and forty two") self.assertEqual(w2n2w.num_to_word(112), "one hundred and twelve") self.assertEqual(w2n2w.num_to_word(11_211_234), "eleven million two hundred and eleven thousand two hundred and thirty four") self.assertEqual(w2n2w.num_to_word(5), "five") self.assertEqual(w2n2w.num_to_word(2_023_049), "two million twenty three thousand and forty nine") self.assertEqual(w2n2w.num_to_word(2.3), "two point three") self.assertEqual(w2n2w.num_to_word(-2023049.2369), "negative two million twenty three thousand and forty nine point two three six nine") self.assertEqual(w2n2w.num_to_word(1002023049.2369), "one billion two million twenty three thousand and forty nine point two three six nine") self.assertEqual(w2n2w.num_to_word(0.1, prefer_fraction_words=False), "zero point one") self.assertEqual(w2n2w.num_to_word(0.1, prefer_fraction_words=True), "one tenth") self.assertEqual(w2n2w.num_to_word(0), "zero") self.assertEqual(w2n2w.num_to_word(100), "hundred") self.assertEqual(w2n2w.num_to_word(1_000), "thousand") self.assertEqual(w2n2w.num_to_word(1_000_000), "million") self.assertEqual(w2n2w.num_to_word(1_000_000_000), "billion") self.assertEqual(w2n2w.num_to_word(1_000_000_000_000), "trillion") self.assertEqual(w2n2w.num_to_word(-9.999), "negative nine point nine nine nine") self.assertEqual(w2n2w.num_to_word(-123), 'negative one hundred and twenty three') self.assertEqual(w2n2w.num_to_word(-29.666), 'negative twenty nine point six six six') self.assertEqual(w2n2w.num_to_word(-0), 'zero') self.assertEqual(w2n2w.num_to_word(1/5), 'one fifth') self.assertEqual(w2n2w.num_to_word(1/5, prefer_fraction_words=False), "zero point two") self.assertEqual(10**27 + (463 * 10**12) + 9, w2n2w.word_to_num('one octillion four hundred and sixty three trillion and nine')) self.assertEqual(10**6 * 10**33, w2n2w.word_to_num('one million decillion')) def test_negatives(self): self.assertRaises(ValueError, w2n2w.num_to_word, 'not a num') self.assertRaises(ValueError, w2n2w.num_to_word, 'one hundred and six') self.assertRaises(ValueError, w2n2w.num_to_word, '100 6') def test_range(self): # only do 2 million because any more than that takes too long for i in range(-500_000, 1_500_000, 3): w = w2n2w.num_to_word(i) n = w2n2w.word_to_num(w) # if we can convert our number to words and those # words translate back into the same number then consider # it a success self.assertEqual(n, i) if __name__ == '__main__': unittest.main()
68.235772
160
0.709877
1,235
8,393
4.634008
0.14332
0.212301
0.272584
0.139437
0.764459
0.733007
0.673773
0.417788
0.325878
0.242181
0
0.093252
0.177171
8,393
122
161
68.795082
0.735447
0.042655
0
0.038462
0
0
0.285287
0
0
0
0
0
0.865385
1
0.048077
false
0
0.019231
0
0.086538
0
0
0
0
null
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
4
9b7ce12e2563ab26be63fc5ee5b16730e2cd6671
127
py
Python
tests/data_fixtures/basic_template/__init__.py
sveetch/Optimus
983aebeccd2ada7a5a0ab96f9296d4bba1112022
[ "MIT" ]
2
2019-05-31T00:23:15.000Z
2021-04-26T07:26:16.000Z
tests/data_fixtures/basic_template/__init__.py
sveetch/Optimus
983aebeccd2ada7a5a0ab96f9296d4bba1112022
[ "MIT" ]
27
2015-04-21T14:43:26.000Z
2022-01-29T00:42:53.000Z
tests/data_fixtures/basic_template/__init__.py
sveetch/Optimus
983aebeccd2ada7a5a0ab96f9296d4bba1112022
[ "MIT" ]
1
2017-05-21T17:32:28.000Z
2017-05-21T17:32:28.000Z
# -*- coding: utf-8 -*- """ Optimus project for basic. Contains basic template, assets and settings without i18n enabled. """
18.142857
66
0.692913
16
127
5.5
0.9375
0
0
0
0
0
0
0
0
0
0
0.028302
0.165354
127
6
67
21.166667
0.801887
0.92126
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
9b887cbd1ea8052ffbe87eacc00d68a1230ee789
31
py
Python
ppci/lang/basic/__init__.py
rakati/ppci-mirror
8f5b0282fd1122d7c389b39c86fcf5d9352b7bb2
[ "BSD-2-Clause" ]
161
2020-05-31T03:29:42.000Z
2022-03-07T08:36:19.000Z
ppci/lang/basic/__init__.py
rakati/ppci-mirror
8f5b0282fd1122d7c389b39c86fcf5d9352b7bb2
[ "BSD-2-Clause" ]
74
2020-05-26T18:05:48.000Z
2021-02-13T21:55:39.000Z
ppci/lang/basic/__init__.py
rakati/ppci-mirror
8f5b0282fd1122d7c389b39c86fcf5d9352b7bb2
[ "BSD-2-Clause" ]
19
2020-05-27T19:22:11.000Z
2022-02-17T18:53:52.000Z
""" Basic languages module """
15.5
30
0.645161
3
31
6.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.16129
31
1
31
31
0.769231
0.709677
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
9bc162d5e493b0753f0eaf89844da68b70cd3cc8
620
py
Python
hw_asr/augmentations/wave_augmentations/MyAugs.py
demo-99/asr_project_template
3174df415af624ab9f8601ab35d69a8f2cdcb279
[ "MIT" ]
null
null
null
hw_asr/augmentations/wave_augmentations/MyAugs.py
demo-99/asr_project_template
3174df415af624ab9f8601ab35d69a8f2cdcb279
[ "MIT" ]
null
null
null
hw_asr/augmentations/wave_augmentations/MyAugs.py
demo-99/asr_project_template
3174df415af624ab9f8601ab35d69a8f2cdcb279
[ "MIT" ]
null
null
null
import torch import torch_audiomentations from hw_asr.augmentations.base import AugmentationBase class PeakNormalization(AugmentationBase): def __init__(self, *args, **kwargs): self._aug = torch_audiomentations.PeakNormalization(*args, **kwargs) def __call__(self, data: torch.Tensor): return self._aug(data.unsqueeze(1)).squeeze(1) class AddColoredNoise(AugmentationBase): def __init__(self, *args, **kwargs): self._aug = torch_audiomentations.AddColoredNoise(*args, **kwargs) def __call__(self, data: torch.Tensor): return self._aug(data.unsqueeze(1)).squeeze(1)
29.52381
76
0.730645
70
620
6.128571
0.357143
0.09324
0.107226
0.125874
0.629371
0.629371
0.629371
0.629371
0.629371
0.629371
0
0.007619
0.153226
620
20
77
31
0.809524
0
0
0.461538
0
0
0
0
0
0
0
0
0
1
0.307692
false
0
0.230769
0.153846
0.846154
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
1
1
0
0
4
32d2c1e1f4a7fd06413abe1aff91044cca6f7edf
333
py
Python
app/database/database.py
juhosa/fastapi-simple-boilerplate
b7aa537259ff8dda5755f21e0d8ea76e272c7280
[ "MIT" ]
null
null
null
app/database/database.py
juhosa/fastapi-simple-boilerplate
b7aa537259ff8dda5755f21e0d8ea76e272c7280
[ "MIT" ]
null
null
null
app/database/database.py
juhosa/fastapi-simple-boilerplate
b7aa537259ff8dda5755f21e0d8ea76e272c7280
[ "MIT" ]
null
null
null
users = { 'juho': { 'name': 'Juho', 'username': 'juho', 'hashed_password': 'ei-selkokielinen-salasana', 'role': 'opettaja' }, 'olli': { 'name': 'Olli Opiskelija', 'username': 'olli', 'hashed_password': 'ei-selkokielinen-salasana', 'role': 'student' } }
22.2
55
0.486486
26
333
6.153846
0.538462
0.175
0.2
0.3625
0.5125
0.5125
0
0
0
0
0
0
0.321321
333
14
56
23.785714
0.707965
0
0
0.142857
0
0
0.486486
0.15015
0
0
0
0
0
1
0
false
0.142857
0
0
0
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
4
b5f39c3d99e2dba06cf0b150bf328e1781210e8b
915
py
Python
pants-plugins/internal_plugins/test_lockfile_fixtures/register.py
danxmoran/pants
7fafd7d789747c9e6a266847a0ccce92c3fa0754
[ "Apache-2.0" ]
null
null
null
pants-plugins/internal_plugins/test_lockfile_fixtures/register.py
danxmoran/pants
7fafd7d789747c9e6a266847a0ccce92c3fa0754
[ "Apache-2.0" ]
22
2022-01-27T09:59:50.000Z
2022-03-30T07:06:49.000Z
pants-plugins/internal_plugins/test_lockfile_fixtures/register.py
danxmoran/pants
7fafd7d789747c9e6a266847a0ccce92c3fa0754
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import annotations from internal_plugins.test_lockfile_fixtures.rules import rules as test_lockfile_fixtures_rules from pants.backend.python.register import rules as python_rules from pants.backend.python.register import target_types as python_target_types from pants.core.goals.test import rules as core_test_rules from pants.core.util_rules import config_files, source_files from pants.jvm.resolve import coursier_fetch, coursier_setup def target_types(): return python_target_types() def rules(): return ( *test_lockfile_fixtures_rules(), *python_rules(), # python backend *core_test_rules(), *config_files.rules(), *coursier_fetch.rules(), *coursier_setup.rules(), *source_files.rules(), )
33.888889
95
0.759563
121
915
5.46281
0.363636
0.068079
0.090772
0.113464
0.124054
0.124054
0.124054
0
0
0
0
0.007833
0.162842
915
26
96
35.192308
0.855091
0.154098
0
0
0
0
0
0
0
0
0
0
0
1
0.105263
true
0
0.368421
0.105263
0.578947
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
1
1
0
0
4
bd00eaeb1225b339ba70d3f7d70f287aa3851d3d
192
py
Python
cloudwatch/consumer_abstract.py
code-sauce/cloudwatchlogs
ad4d2b138829c260edcc536d01c90abe55bd46be
[ "MIT" ]
null
null
null
cloudwatch/consumer_abstract.py
code-sauce/cloudwatchlogs
ad4d2b138829c260edcc536d01c90abe55bd46be
[ "MIT" ]
null
null
null
cloudwatch/consumer_abstract.py
code-sauce/cloudwatchlogs
ad4d2b138829c260edcc536d01c90abe55bd46be
[ "MIT" ]
1
2019-09-11T20:23:47.000Z
2019-09-11T20:23:47.000Z
class BaseConsumer(object): """ This class sets the blueprint for all the log event consumers """ @staticmethod def process(log_line, log_group, log_stream): pass
21.333333
65
0.661458
24
192
5.166667
0.791667
0
0
0
0
0
0
0
0
0
0
0
0.260417
192
8
66
24
0.873239
0.317708
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0.25
0
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
4
bd3fcaca5daba65aba4b0213eb52b8bb7e6c0a35
246
py
Python
reprohack_hub/reprohack/admin.py
Joe-Heffer-Shef/reprohack_site
ba02410ab44dcd773de99b40087791f2e4b1e25c
[ "MIT" ]
null
null
null
reprohack_hub/reprohack/admin.py
Joe-Heffer-Shef/reprohack_site
ba02410ab44dcd773de99b40087791f2e4b1e25c
[ "MIT" ]
null
null
null
reprohack_hub/reprohack/admin.py
Joe-Heffer-Shef/reprohack_site
ba02410ab44dcd773de99b40087791f2e4b1e25c
[ "MIT" ]
null
null
null
from django.contrib import admin from leaflet.admin import LeafletGeoAdmin # Register your models here. from .models import Event, Paper, Review admin.site.register(Event, LeafletGeoAdmin) admin.site.register(Paper) admin.site.register(Review)
24.6
43
0.817073
33
246
6.090909
0.454545
0.134328
0.253731
0
0
0
0
0
0
0
0
0
0.101626
246
9
44
27.333333
0.909502
0.105691
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
bd5486334601cbc7708ceaf4c72e390261a4b0c9
134
py
Python
memoize/exceptions.py
mwek/memoize
bd35641d676dbaaf161a61dbf1176742cfa187cc
[ "Apache-2.0" ]
54
2019-06-04T07:00:23.000Z
2022-03-22T00:56:47.000Z
memoize/exceptions.py
mwek/memoize
bd35641d676dbaaf161a61dbf1176742cfa187cc
[ "Apache-2.0" ]
7
2020-08-17T15:45:34.000Z
2022-01-19T09:23:16.000Z
memoize/exceptions.py
mwek/memoize
bd35641d676dbaaf161a61dbf1176742cfa187cc
[ "Apache-2.0" ]
5
2019-10-18T18:05:26.000Z
2021-06-11T10:14:59.000Z
""" [API] Contains exceptions that may be exposed to the library client. """ class CachedMethodFailedException(Exception): pass
16.75
68
0.746269
15
134
6.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.164179
134
7
69
19.142857
0.892857
0.507463
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
4
1fa0e0369758273ea3d690e367c4ee1bd893491b
264
py
Python
personalwebsite/tag/models.py
Mateaus/PersonalWebsite
3922afb2ff81d928ec5ac8a5adb69db4c93ac800
[ "MIT" ]
null
null
null
personalwebsite/tag/models.py
Mateaus/PersonalWebsite
3922afb2ff81d928ec5ac8a5adb69db4c93ac800
[ "MIT" ]
2
2020-12-27T06:51:33.000Z
2021-01-01T12:37:42.000Z
personalwebsite/tag/models.py
Mateaus/PersonalWebsite
3922afb2ff81d928ec5ac8a5adb69db4c93ac800
[ "MIT" ]
null
null
null
from django.db import models class Tag(models.Model): name = models.CharField(max_length=32) creation_date = models.DateTimeField(auto_now_add=True) modified_date = models.DateTimeField(auto_now=True) def __str__(self): return self.name
24
59
0.734848
36
264
5.111111
0.694444
0.108696
0.25
0.293478
0.326087
0
0
0
0
0
0
0.009174
0.174242
264
10
60
26.4
0.834862
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0.142857
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
1
1
0
0
4
1fb94587b7ab7a9c3be257d99829a9e67fd6354e
102
py
Python
src/tmpimgur/__init__.py
ThomasMPorter/BlackFridayExtractor
a3f4d9eb853b11e8bf74a358f5d2a78665a9b38d
[ "Unlicense" ]
1
2020-01-30T13:48:37.000Z
2020-01-30T13:48:37.000Z
src/tmpimgur/__init__.py
ThomasMPorter/BlackFridayExtractor
a3f4d9eb853b11e8bf74a358f5d2a78665a9b38d
[ "Unlicense" ]
null
null
null
src/tmpimgur/__init__.py
ThomasMPorter/BlackFridayExtractor
a3f4d9eb853b11e8bf74a358f5d2a78665a9b38d
[ "Unlicense" ]
null
null
null
"""""" from .Connection import Connection from .Album import Album __all__ = ['Connection', 'Album']
17
34
0.705882
11
102
6.181818
0.454545
0
0
0
0
0
0
0
0
0
0
0
0.137255
102
6
35
17
0.772727
0
0
0
0
0
0.154639
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
1fea83e44f8ad25b488ad9bd0ac01b07bfcb2032
463
py
Python
platform/radio/efr32_multiphy_configurator/efr32multiphyconfig/__init__.py
lmnotran/gecko_sdk
2e82050dc8823c9fe0e8908c1b2666fb83056230
[ "Zlib" ]
82
2016-06-29T17:24:43.000Z
2021-04-16T06:49:17.000Z
platform/radio/efr32_multiphy_configurator/efr32multiphyconfig/__init__.py
lmnotran/gecko_sdk
2e82050dc8823c9fe0e8908c1b2666fb83056230
[ "Zlib" ]
6
2022-01-12T18:22:08.000Z
2022-03-25T10:19:27.000Z
platform/radio/efr32_multiphy_configurator/efr32multiphyconfig/__init__.py
lmnotran/gecko_sdk
2e82050dc8823c9fe0e8908c1b2666fb83056230
[ "Zlib" ]
56
2016-08-02T10:50:50.000Z
2021-07-19T08:57:34.000Z
""" Wrapper layer (adapter) for host_py_radio_config to be consumed by Simplicity Studio. This wrapper allows the "radio configurator" to support the Pro2 style dictionary interface, where the input and output values are defined by key/value pairs. """ from set_pymath_paths import * from .efr32multiphyconfigurator import Efr32MultiPHYConfigurator from .efr32multiphycfginput import Efr32MultiPHYCfgInput from .efr32multiphycategory import Efr32MultiPHYCategory
51.444444
158
0.846652
56
463
6.910714
0.732143
0
0
0
0
0
0
0
0
0
0
0.031707
0.114471
463
8
159
57.875
0.912195
0.526998
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
1ffeb3095e6160dd3b538f2989350c632ded22be
230
py
Python
tests/test_imports.py
nrweir/cw-geodata
19a290c20ec4672dc2e9be37f451d136166bb28a
[ "Apache-2.0" ]
14
2019-03-14T22:07:33.000Z
2019-07-21T02:18:48.000Z
tests/test_imports.py
nrweir/cw-geodata
19a290c20ec4672dc2e9be37f451d136166bb28a
[ "Apache-2.0" ]
40
2019-03-12T16:54:12.000Z
2019-05-01T15:30:59.000Z
tests/test_imports.py
nrweir/cw-geodata
19a290c20ec4672dc2e9be37f451d136166bb28a
[ "Apache-2.0" ]
null
null
null
import sys class TestImports(object): def test_imports(self): from cw_geodata.utils import core, geo from cw_geodata.raster_image import image from cw_geodata.vector_label import polygon, graph, mask
25.555556
64
0.726087
32
230
5.03125
0.6875
0.111801
0.242236
0
0
0
0
0
0
0
0
0
0.221739
230
8
65
28.75
0.899441
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
1
0
1.333333
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
9502edb1fe584e4fb381675b6d6eb39a11c5bae4
160
py
Python
registrations/apps.py
IFRCGo/ifrcgo-api
c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a
[ "MIT" ]
11
2018-06-11T06:05:12.000Z
2022-03-25T09:31:44.000Z
registrations/apps.py
IFRCGo/ifrcgo-api
c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a
[ "MIT" ]
498
2017-11-07T21:20:13.000Z
2022-03-31T14:37:18.000Z
registrations/apps.py
IFRCGo/ifrcgo-api
c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a
[ "MIT" ]
6
2018-04-11T13:29:50.000Z
2020-07-16T16:52:11.000Z
from django.utils.translation import ugettext_lazy as _ from django.apps import AppConfig class RegistrationsConfig(AppConfig): name = _('registrations')
22.857143
55
0.8
18
160
6.944444
0.777778
0.16
0
0
0
0
0
0
0
0
0
0
0.13125
160
6
56
26.666667
0.899281
0
0
0
0
0
0.08125
0
0
0
0
0
0
1
0
false
0
0.5
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
4
952c32d00c71994f60468e4a7d5986a307c92a38
263
py
Python
0x11-python-network_1/7-error_code.py
calypsobronte/holbertonschool-higher_level_programming
c39c060d8473976fa475d22fffba5cb4329c9965
[ "MIT" ]
null
null
null
0x11-python-network_1/7-error_code.py
calypsobronte/holbertonschool-higher_level_programming
c39c060d8473976fa475d22fffba5cb4329c9965
[ "MIT" ]
null
null
null
0x11-python-network_1/7-error_code.py
calypsobronte/holbertonschool-higher_level_programming
c39c060d8473976fa475d22fffba5cb4329c9965
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import requests from sys import argv if __name__ == "__main__": if requests.get(argv[1]).status_code < 400: print((requests.get(argv[1])).text) else: print("Error code: {}".format((requests.get(argv[1])).status_code))
23.909091
75
0.646388
37
263
4.324324
0.567568
0.20625
0.28125
0.3
0.325
0.325
0
0
0
0
0
0.032258
0.174905
263
10
76
26.3
0.705069
0.064639
0
0
0
0
0.089796
0
0
0
0
0
0
1
0
true
0
0.285714
0
0.285714
0.285714
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
1
0
0
0
0
0
0
4
1f126fdeb4224d7cd914b7aba0f8de07a25acef7
73
py
Python
app/lib/conf.py
viger1228/scriptAPI
e17d061bb90fb88bff2df9001fad09f1e9d972cb
[ "MIT" ]
null
null
null
app/lib/conf.py
viger1228/scriptAPI
e17d061bb90fb88bff2df9001fad09f1e9d972cb
[ "MIT" ]
null
null
null
app/lib/conf.py
viger1228/scriptAPI
e17d061bb90fb88bff2df9001fad09f1e9d972cb
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: UTF-8 # file: conf.py # author: walker
10.428571
21
0.643836
12
73
3.916667
1
0
0
0
0
0
0
0
0
0
0
0.016667
0.178082
73
6
22
12.166667
0.766667
0.863014
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
1f34f83a8bdce6239dcab975664e83c8e9ba119c
607
py
Python
tests/gs1/test_symbology.py
jodal/biip
ea56a53a8999f3ded04be881c3348b1b9a373d22
[ "Apache-2.0" ]
17
2020-06-30T08:07:31.000Z
2022-03-26T08:14:24.000Z
tests/gs1/test_symbology.py
jodal/biip
ea56a53a8999f3ded04be881c3348b1b9a373d22
[ "Apache-2.0" ]
117
2020-08-12T14:32:11.000Z
2022-03-28T04:07:48.000Z
tests/gs1/test_symbology.py
jodal/biip
ea56a53a8999f3ded04be881c3348b1b9a373d22
[ "Apache-2.0" ]
1
2020-11-23T23:15:58.000Z
2020-11-23T23:15:58.000Z
from biip.gs1 import GS1Symbology def test_gs1_symbology_enum() -> None: assert GS1Symbology("C1") == GS1Symbology.GS1_128 def test_gs1_symbology_with_ai_element_strings() -> None: assert GS1Symbology.EAN_13 not in GS1Symbology.with_ai_element_strings() assert GS1Symbology.GS1_128 in GS1Symbology.with_ai_element_strings() def test_gs1_symbology_with_gtin() -> None: assert GS1Symbology.EAN_13 in GS1Symbology.with_gtin() # Even though GS1-128 can contain a GTIN, # it cannot be parsed with a pure GTIN parser. assert GS1Symbology.GS1_128 not in GS1Symbology.with_gtin()
31.947368
76
0.777595
88
607
5.068182
0.375
0.201794
0.161435
0.127803
0.376682
0.152466
0
0
0
0
0
0.069767
0.149918
607
18
77
33.722222
0.794574
0.138386
0
0
0
0
0.003846
0
0
0
0
0
0.555556
1
0.333333
true
0
0.111111
0
0.444444
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
1
1
0
0
0
0
0
0
4
1f55656202547336085aaa5b9eab24e490f0b6d0
29
py
Python
data/studio21_generated/introductory/3691/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
data/studio21_generated/introductory/3691/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
data/studio21_generated/introductory/3691/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
def get_a_down_arrow_of(n):
14.5
27
0.793103
7
29
2.714286
1
0
0
0
0
0
0
0
0
0
0
0
0.103448
29
2
28
14.5
0.730769
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
4
2f2cbf9305f59ae4feb5f3abae3daf3bb9f6fe88
75
py
Python
quantamatics/providers/__init__.py
Quantamatics/quantamatics
61759ccc0813a55cb028df3be6774b78dbecd05a
[ "Apache-2.0" ]
null
null
null
quantamatics/providers/__init__.py
Quantamatics/quantamatics
61759ccc0813a55cb028df3be6774b78dbecd05a
[ "Apache-2.0" ]
null
null
null
quantamatics/providers/__init__.py
Quantamatics/quantamatics
61759ccc0813a55cb028df3be6774b78dbecd05a
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from quantamatics.providers import *
37.5
38
0.88
9
75
6.777778
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.093333
75
2
39
37.5
0.897059
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
2f2da84cbd8438616a26ab71f8dab06ff91453bf
5,452
py
Python
tests/test_koloro.py
ydcjeff/koloro
293445a3f9a898d54df52fb8d0970f92ac086567
[ "MIT" ]
2
2021-06-14T12:33:57.000Z
2021-06-14T18:09:11.000Z
tests/test_koloro.py
ydcjeff/koloro
293445a3f9a898d54df52fb8d0970f92ac086567
[ "MIT" ]
2
2021-06-14T17:22:24.000Z
2022-02-06T02:21:32.000Z
tests/test_koloro.py
ydcjeff/koloro
293445a3f9a898d54df52fb8d0970f92ac086567
[ "MIT" ]
null
null
null
import pytest from pytest import MonkeyPatch import koloro @pytest.fixture def patch_enabled(monkeypatch: MonkeyPatch): monkeypatch.setattr(koloro, 'enabled', True) # test modifiers def test_reset(patch_enabled): assert koloro.reset('foo') == '\u001b[0mfoo\u001b[0m' def test_bold(patch_enabled): assert koloro.bold('foo') == '\u001b[1mfoo\u001b[22m' def test_dim(patch_enabled): assert koloro.dim('foo') == '\u001b[2mfoo\u001b[22m' def test_italic(patch_enabled): assert koloro.italic('foo') == '\u001b[3mfoo\u001b[23m' def test_underline(patch_enabled): assert koloro.underline('foo') == '\u001b[4mfoo\u001b[24m' def test_inverse(patch_enabled): assert koloro.inverse('foo') == '\u001b[7mfoo\u001b[27m' def test_hidden(patch_enabled): assert koloro.hidden('foo') == '\u001b[8mfoo\u001b[28m' def test_strikethrough(patch_enabled): assert koloro.strikethrough('foo') == '\u001b[9mfoo\u001b[29m' # test colors def test_black(patch_enabled): assert koloro.black('foo') == '\u001b[30mfoo\u001b[39m' def test_red(patch_enabled): assert koloro.red('foo') == '\u001b[31mfoo\u001b[39m' def test_green(patch_enabled): assert koloro.green('foo') == '\u001b[32mfoo\u001b[39m' def test_yellow(patch_enabled): assert koloro.yellow('foo') == '\u001b[33mfoo\u001b[39m' def test_blue(patch_enabled): assert koloro.blue('foo') == '\u001b[34mfoo\u001b[39m' def test_magenta(patch_enabled): assert koloro.magenta('foo') == '\u001b[35mfoo\u001b[39m' def test_cyan(patch_enabled): assert koloro.cyan('foo') == '\u001b[36mfoo\u001b[39m' def test_white(patch_enabled): assert koloro.white('foo') == '\u001b[37mfoo\u001b[39m' # test background colors def test_bgBlack(patch_enabled): assert koloro.bgBlack('foo') == '\u001b[40mfoo\u001b[49m' def test_bgRed(patch_enabled): assert koloro.bgRed('foo') == '\u001b[41mfoo\u001b[49m' def test_bgGreen(patch_enabled): assert koloro.bgGreen('foo') == '\u001b[42mfoo\u001b[49m' def test_bgYellow(patch_enabled): assert koloro.bgYellow('foo') == '\u001b[43mfoo\u001b[49m' def test_bgBlue(patch_enabled): assert koloro.bgBlue('foo') == '\u001b[44mfoo\u001b[49m' def test_bgMagenta(patch_enabled): assert koloro.bgMagenta('foo') == '\u001b[45mfoo\u001b[49m' def test_bgCyan(patch_enabled): assert koloro.bgCyan('foo') == '\u001b[46mfoo\u001b[49m' def test_bgWhite(patch_enabled): assert koloro.bgWhite('foo') == '\u001b[47mfoo\u001b[49m' # test bright colors def test_grey(patch_enabled): assert koloro.grey('foo') == '\u001b[90mfoo\u001b[39m' assert koloro.gray('foo') == '\u001b[90mfoo\u001b[39m' def test_brightRed(patch_enabled): assert koloro.brightRed('foo') == '\u001b[91mfoo\u001b[39m' def test_brightGreen(patch_enabled): assert koloro.brightGreen('foo') == '\u001b[92mfoo\u001b[39m' def test_brightYellow(patch_enabled): assert koloro.brightYellow('foo') == '\u001b[93mfoo\u001b[39m' def test_brightBlue(patch_enabled): assert koloro.brightBlue('foo') == '\u001b[94mfoo\u001b[39m' def test_brightMagenta(patch_enabled): assert koloro.brightMagenta('foo') == '\u001b[95mfoo\u001b[39m' def test_brightCyan(patch_enabled): assert koloro.brightCyan('foo') == '\u001b[96mfoo\u001b[39m' def test_brightWhite(patch_enabled): assert koloro.brightWhite('foo') == '\u001b[97mfoo\u001b[39m' # test bright background colors def test_bgGrey(patch_enabled): assert koloro.bgGrey('foo') == '\u001b[100mfoo\u001b[49m' def test_bgBrightRed(patch_enabled): assert koloro.bgBrightRed('foo') == '\u001b[101mfoo\u001b[49m' def test_bgBrightGreen(patch_enabled): assert koloro.bgBrightGreen('foo') == '\u001b[102mfoo\u001b[49m' def test_bgBrightYellow(patch_enabled): assert koloro.bgBrightYellow('foo') == '\u001b[103mfoo\u001b[49m' def test_bgBrightBlue(patch_enabled): assert koloro.bgBrightBlue('foo') == '\u001b[104mfoo\u001b[49m' def test_bgBrightMagenta(patch_enabled): assert koloro.bgBrightMagenta('foo') == '\u001b[105mfoo\u001b[49m' def test_bgBrightCyan(patch_enabled): assert koloro.bgBrightCyan('foo') == '\u001b[106mfoo\u001b[49m' def test_bgBrightWhite(patch_enabled): assert koloro.bgBrightWhite('foo') == '\u001b[107mfoo\u001b[49m' def test_ansi256(patch_enabled): assert koloro.ansi256(12)('foo') == '\u001b[38;5;12mfoo\u001b[0m' def test_ansi256Bg(patch_enabled): assert koloro.ansi256Bg(12)('foo') == '\u001b[48;5;12mfoo\u001b[0m' def test_strip_ansi(patch_enabled): assert koloro.strip_ansi(koloro.ansi256(12)('foo')) == 'foo' # test disabled def test_disabled(monkeypatch: MonkeyPatch): monkeypatch.setattr(koloro, 'enabled', False) assert koloro.cyan('foo') == 'foo' # test nested colors def test_nest_colors(patch_enabled): assert ( koloro.green(f'foo {koloro.brightCyan("bar")} bob') == '\u001b[32mfoo \u001b[96mbar\u001b[32m bob\u001b[39m' ) # test nested background colors def test_nest_bgColors(patch_enabled): assert ( koloro.bgYellow(f'foo {koloro.bgGray("bar")} bob') == '\u001b[43mfoo \u001b[100mbar\u001b[43m bob\u001b[49m' ) # test on and off def test_toggle_enabled_disabled(monkeypatch: MonkeyPatch): monkeypatch.setattr(koloro, 'enabled', True) assert koloro.cyan('foo') == '\u001b[36mfoo\u001b[39m' monkeypatch.setattr(koloro, 'enabled', False) assert koloro.cyan('foo') == 'foo' monkeypatch.setattr(koloro, 'enabled', True) assert koloro.cyan('foo') == '\u001b[36mfoo\u001b[39m'
24.558559
69
0.730374
728
5,452
5.333791
0.18544
0.15452
0.208602
0.278135
0.160958
0.118208
0.107391
0.07726
0.067474
0.067474
0
0.106142
0.110051
5,452
221
70
24.669683
0.694147
0.032465
0
0.106195
0
0
0.265337
0.215954
0
0
0
0
0.442478
1
0.424779
false
0
0.026549
0
0.451327
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
1
0
0
0
0
0
0
0
4
2f5a74c6818acddaa2f11ac8d80a6cb08502d83c
100
py
Python
run.py
PeterJWei/CitywideFootprinting
98064e6119ceab26079c0b11629f3d428f4e745f
[ "MIT" ]
1
2019-01-25T16:01:57.000Z
2019-01-25T16:01:57.000Z
run.py
PeterJWei/CitywideFootprinting
98064e6119ceab26079c0b11629f3d428f4e745f
[ "MIT" ]
1
2018-10-31T18:33:07.000Z
2018-10-31T18:38:57.000Z
run.py
PeterJWei/CitywideFootprinting
98064e6119ceab26079c0b11629f3d428f4e745f
[ "MIT" ]
1
2018-12-24T23:35:15.000Z
2018-12-24T23:35:15.000Z
#!/usr/bin/env python import web import energyServer if __name__ == "__main__": energyServer.run()
16.666667
26
0.75
13
100
5.153846
0.846154
0
0
0
0
0
0
0
0
0
0
0
0.12
100
6
27
16.666667
0.761364
0.2
0
0
0
0
0.1
0
0
0
0
0
0
1
0
true
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
1
0
1
0
0
0
0
4
2f67000f7f810ca7d186dfd5ab39637993ad0ec3
94
py
Python
mloq/config/__init__.py
FragileTech/ml-ops-quickstart
8cb1b9a2e70933717e4ef3bd0fc8c4920573ada3
[ "MIT" ]
3
2021-01-26T15:48:29.000Z
2022-03-29T12:01:41.000Z
mloq/config/__init__.py
FragileTech/ml-ops-quickstart
8cb1b9a2e70933717e4ef3bd0fc8c4920573ada3
[ "MIT" ]
219
2020-12-12T17:03:59.000Z
2022-03-28T04:05:42.000Z
mloq/config/__init__.py
FragileTech/ml-ops-quickstart
8cb1b9a2e70933717e4ef3bd0fc8c4920573ada3
[ "MIT" ]
1
2020-12-11T17:44:47.000Z
2020-12-11T17:44:47.000Z
"""config contains all the logic needed to define the configuration of a new mloq project."""
47
93
0.765957
15
94
4.8
0.933333
0
0
0
0
0
0
0
0
0
0
0
0.159574
94
1
94
94
0.911392
0.925532
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
2f705816f10a05846951a8a773c0cbfecc34522b
777
py
Python
Cube.py
BingFenghan/Cube
1f9213de6db46ef8c48f2b08491a3b2cc02f1546
[ "MIT" ]
1
2019-01-18T13:36:12.000Z
2019-01-18T13:36:12.000Z
Cube.py
Bing-Yanchi/Cube
1f9213de6db46ef8c48f2b08491a3b2cc02f1546
[ "MIT" ]
null
null
null
Cube.py
Bing-Yanchi/Cube
1f9213de6db46ef8c48f2b08491a3b2cc02f1546
[ "MIT" ]
null
null
null
import showcase from OpenGL.GL import * # 定义点 vertices = ( (1,-1,-1), (1,1,-1), (-1,1,-1), (-1,-1,-1), (1,-1,1), (1,1,1), (-1,1,1), (-1,-1,1) ) # 定义线 edges = ( (0,1), (0,3), (0,4), (2,1), (2,3), (2,6), (7,6), (7,4), (7,3), (5,1), (5,4), (5,6) ) # 定义面 surfaces = ( (0,1,2,3), (3,2,6,7), (4,5,6,7), (4,5,1,0), (1,5,6,2), (4,0,3,7) ) # 定义颜色 colors = ( (1,0,0), (0,1,0), (0,0,1), (1,1,1) ) ''' colors = ( (0.2,0.85,0.4), (0.3,0.85,0.6), (0.4,0.85,0.8), (0.5,0.85,1) ) ''' # 定义立方体 def Cube(): glBegin(GL_QUADS) for surface in surfaces: x = 0 for vertex in surface: glColor3fv(colors[x]) glVertex3fv(vertices[vertex]) x += 1 glEnd() showcase.main(Cube)
11.1
33
0.413127
150
777
2.133333
0.246667
0.1625
0.225
0.275
0.103125
0.075
0.075
0.075
0.075
0.075
0
0.207581
0.287001
777
69
34
11.26087
0.370036
0.028314
0
0
0
0
0
0
0
0
0
0
0
1
0.02
false
0
0.04
0
0.06
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
2f9723fd6f92f76e8c83c01763b273368a62f324
268
py
Python
reprlearn/data/datasets/__init__.py
cocoaaa/ReprLearn
58dc682aa62dbd59201ccc55b9b26480ff3d6773
[ "MIT" ]
null
null
null
reprlearn/data/datasets/__init__.py
cocoaaa/ReprLearn
58dc682aa62dbd59201ccc55b9b26480ff3d6773
[ "MIT" ]
null
null
null
reprlearn/data/datasets/__init__.py
cocoaaa/ReprLearn
58dc682aa62dbd59201ccc55b9b26480ff3d6773
[ "MIT" ]
null
null
null
from .mnist import MNISTDataset from .mnistm import MNISTM from .mono_mnist import MonoMNIST from .usps import USPSDataset from .maptiles import MaptilesDataset from .multisource_mono_mnist import MultiMonoMNIST from .multisource_rotated_mnist import MultiRotatedMNIST
38.285714
56
0.873134
33
268
6.939394
0.454545
0.19214
0.131004
0
0
0
0
0
0
0
0
0
0.100746
268
7
56
38.285714
0.950207
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
2f9ec33e3187ea13d867fcca979ff4af04854dde
21
py
Python
aliyun-python-sdk-hbase/aliyunsdkhbase/__init__.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-hbase/aliyunsdkhbase/__init__.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-hbase/aliyunsdkhbase/__init__.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
null
null
null
__version__ = '2.9.8'
21
21
0.666667
4
21
2.5
1
0
0
0
0
0
0
0
0
0
0
0.157895
0.095238
21
1
21
21
0.368421
0
0
0
0
0
0.227273
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
c81a82cbcd4f0039e8dee114fbbfa348734dd48f
12,301
py
Python
examples/plugins/mar/mar_ops.py
A-LinCui/Discriminator-Guiding-Knowledge-Distillation-MAR
e8caad8de2a559b9c9532448bdcdedd566cb2cfa
[ "MIT" ]
null
null
null
examples/plugins/mar/mar_ops.py
A-LinCui/Discriminator-Guiding-Knowledge-Distillation-MAR
e8caad8de2a559b9c9532448bdcdedd566cb2cfa
[ "MIT" ]
null
null
null
examples/plugins/mar/mar_ops.py
A-LinCui/Discriminator-Guiding-Knowledge-Distillation-MAR
e8caad8de2a559b9c9532448bdcdedd566cb2cfa
[ "MIT" ]
null
null
null
import torch from torch import Tensor import torch.nn as nn import torch.nn.functional as F from aw_nas.ops import register_primitive # Operations of two dimensional UNet # --------------------------------------------------------------------------------------- class DownBlock2D(nn.Module): def __init__(self, C_in: int, C_out: int, kernel_size: int, stride: int, padding: int, norm: str = "InstanceNorm2d", activation: str = "ReLU", inplace: bool = False): super(DownBlock2D, self).__init__() self.conv1 = nn.Conv2d(C_in, C_out, kernel_size = kernel_size, stride = stride, padding = padding) self.conv2 = nn.Conv2d(C_out, C_out, kernel_size = kernel_size, stride = stride, padding = padding) self.norm = norm if self.norm: self.norm1 = getattr(nn, norm)(C_out) self.norm2 = getattr(nn, norm)(C_out) try: self.act = getattr(nn, activation)(inplace = inplace) except: self.act = getattr(nn, activation)() def forward(self, x): output = self.conv1(x) if self.norm: output = self.norm1(output) output = self.act(output) output = self.conv2(output) if self.norm: output = self.norm2(output) output = self.act(output) return output register_primitive("down_block_2d", lambda C, C_out, kernel_size = 3, stride = 1, padding = 1, norm = None, activation = "ReLU", inplace = False: \ DownBlock2D(C, C_out, kernel_size, stride, padding, norm, activation, inplace), override = True ) class UpBlock2D(nn.Module): def __init__(self, C_in: int, C_out: int, kernel_size: int, stride: int, padding: int, norm: str = "InstanceNorm2d", activation: str = "ReLU", inplace: bool = False): super(UpBlock2D, self).__init__() self.upsample = nn.Upsample(scale_factor = 2, mode = "nearest") self.conv1 = nn.Conv2d(C_in, C_out, kernel_size = kernel_size, stride = stride, padding = padding) self.conv2 = nn.Conv2d(C_out, C_out, kernel_size = kernel_size, stride = stride, padding = padding) self.norm = norm if self.norm: self.norm1 = getattr(nn, norm)(C_out) self.norm2 = getattr(nn, norm)(C_out) try: self.act = getattr(nn, activation)(inplace = inplace) except: self.act = getattr(nn, activation)() def forward(self, x, y): output = torch.cat((self.upsample(x), y), dim = 1) output = self.conv1(output) if self.norm: output = self.norm1(output) output = self.act(output) output = self.conv2(output) if self.norm: output = self.norm2(output) output = self.act(output) return output register_primitive("up_block_2d", lambda C, C_out, kernel_size = 3, stride = 1, padding = 1, norm = None, activation = "ReLU", inplace = False: \ UpBlock2D(C, C_out, kernel_size, stride, padding, norm, activation, inplace), override = True) # End of operations of two dimensional UNet --------------------------------------------- # Operations of three dimensional UNet # --------------------------------------------------------------------------------------- class DownBlock3D(nn.Module): def __init__(self, C_in: int, C_out: int, kernel_size: int, stride: int, padding: int, batch_norm: bool = False, inplace: bool = False): super(DownBlock3D, self).__init__() self.conv1 = nn.Conv3d(C_in, C_out // 2, kernel_size = kernel_size, stride = stride, padding = padding) self.conv2 = nn.Conv3d(C_out // 2, C_out, kernel_size = kernel_size, stride = stride, padding = padding) self.batch_norm = batch_norm if self.batch_norm: self.bn1 = nn.BatchNorm3d(C_out // 2) self.bn2 = nn.BatchNorm3d(C_out) self.relu = nn.ReLU(inplace = inplace) def forward(self, x): output = self.conv1(x) if self.batch_norm: output = self.bn1(output) output = self.relu(output) output = self.conv2(output) if self.batch_norm: output = self.bn2(output) output = self.relu(output) return output register_primitive("down_block_3d", lambda C, C_out, kernel_size = 3, stride = 1, padding = 1, batch_norm = False, inplace = False: \ DownBlock3D(C, C_out, kernel_size, stride, padding, batch_norm, inplace), override = True) class UpBlock3D(nn.Module): def __init__(self, C_in: int, C_out: int, kernel_size: int, stride: int, padding: int, batch_norm: bool = False, inplace: bool = False): super(UpBlock3D, self).__init__() self.upsample = nn.Upsample(scale_factor = 2, mode = "nearest") self.conv1 = nn.Conv3d(C_in, C_out, kernel_size = kernel_size, stride = stride, padding = padding) self.conv2 = nn.Conv3d(C_out, C_out, kernel_size = kernel_size, stride = stride, padding = padding) self.batch_norm = batch_norm if self.batch_norm: self.bn1 = nn.BatchNorm3d(C_out) self.bn2 = nn.BatchNorm3d(C_out) self.relu = nn.ReLU(inplace = inplace) def forward(self, x, y): output = torch.cat((self.upsample(x), y), dim = 1) output = self.conv1(output) if self.batch_norm: output = self.bn1(output) output = self.relu(output) output = self.conv2(output) if self.batch_norm: output = self.bn2(output) output = self.relu(output) return output register_primitive("up_block_3d", lambda C, C_out, kernel_size = 3, stride = 1, padding = 1, batch_norm = False, inplace = False: \ UpBlock3D(C, C_out, kernel_size, stride, padding, batch_norm, inplace), override = True) # End of operations of three dimensional UNet ------------------------------------------- # Operations of three dimensional Residual Net # --------------------------------------------------------------------------------------- class BasicBlock3D(nn.Module): def __init__(self, C_in: int, C_out: int, stride: int = 1, downsample: bool = False, dilation: int = 1, padding: int = 1, batch_norm: bool = True) -> None: super(BasicBlock3D, self).__init__() self.conv1 = nn.Conv3d(C_in, C_out, kernel_size = 3, stride = stride, padding = padding, bias = False, dilation = dilation) self.relu = nn.ReLU(inplace = False) self.conv2 = nn.Conv3d(C_out, C_out, kernel_size = 3, stride = 1, padding = padding, bias = False, dilation = dilation) self.batch_norm = batch_norm if self.batch_norm: self.bn1 = nn.BatchNorm3d(C_out) self.bn2 = nn.BatchNorm3d(C_out) self.shortcut = nn.Sequential() assert (stride == 1 and C_in == C_out) or downsample, "'downsample' must be true if 'stride' > 1 or 'C_in != C_out'." if downsample: if self.batch_norm: self.shortcut = nn.Sequential( nn.Conv3d(C_in, C_out, kernel_size = 1, stride = stride, bias = False), nn.BatchNorm3d(C_out) ) else: self.shortcut = nn.Conv3d(C_in, C_out, kernel_size = 1, stride = stride, bias = False) def forward(self, x: Tensor) -> Tensor: out = self.conv1(x) if self.batch_norm: out = self.bn1(out) out = self.relu(out) out = self.conv2(out) if self.batch_norm: out = self.bn2(out) out += self.shortcut(x) out = self.relu(out) return out register_primitive("basic_block_3d", lambda C_in, C_out, stride = 1, downsample = False, padding = 1, dilation = 1, batch_norm = True: \ BasicBlock3D(C_in, C_out, stride, downsample, padding, dilation, batch_norm), override = True) # End of operations of three dimensional Residual Net ----------------------------------- # Operations of two dimensional discriminator # --------------------------------------------------------------------------------------- class VggBlock2D(nn.Module): def __init__(self, C: int, C_out: int, stride: int, affine: bool, inplace: bool = True, norm: str = "InstanceNorm2d", activation: str = "ReLU"): super(VggBlock2D, self).__init__() self.conv = nn.Conv2d(C, C_out, kernel_size = 3, padding = 1) self.norm = getattr(nn, norm)(C_out) if norm else nn.Identity() self.pool = nn.MaxPool2d(kernel_size = 2, stride = 2) if stride == 2 else nn.Identity() self.act = getattr(nn, activation)(inplace = inplace) def forward(self, inputs): return self.pool(self.act(self.norm(self.conv(inputs)))) register_primitive("vgg_block_2d", lambda C, C_out, stride, affine = True, inplace = True, norm = "InstanceNorm2d", activation = "ReLU": VggBlock2D(C, C_out, stride, affine, inplace, norm, activation), override = True) # End of operations of two dimensional discriminator ---------------------------------- # Operations of three dimensional discriminator # --------------------------------------------------------------------------------------- class VggBlock3D(nn.Module): def __init__(self, C: int, C_out: int, stride: int, affine: bool, inplace: bool = True, norm: str = "InstanceNorm3d", activation: str = "ReLU"): super(VggBlock3D, self).__init__() self.conv = nn.Conv3d(C, C_out, kernel_size = 3, padding = 1) self.norm = getattr(nn, norm)(C_out) if norm else nn.Identity() self.pool = nn.MaxPool3d(kernel_size = 2, stride = 2) if stride == 2 else nn.Identity() self.act = getattr(nn, activation)(inplace = inplace) def forward(self, inputs): return self.pool(self.act(self.norm(self.conv(inputs)))) register_primitive("vgg_block_3d", lambda C, C_out, stride, affine = True, inplace = True, norm = "InstanceNorm3d", activation = "ReLU": VggBlock3D(C, C_out, stride, affine, inplace, norm, activation), override = True) class ConvELU3D(nn.Module): def __init__(self, C: int, C_out: int, kernel_size: int, stride: int, padding: int, inplace: bool = False): super(ConvELU3D, self).__init__() self.conv = nn.Conv3d(C, C_out, kernel_size = kernel_size, stride = stride, padding = padding) self.elu = nn.ELU(inplace) def forward(self, x): return self.elu(self.conv(x)) register_primitive("conv_elu_3d", lambda C, C_out, kernel_size, stride, padding, inplace = False: ConvELU3D(C, C_out, kernel_size, stride, padding, inplace), override = True) class ConvReLU3D(nn.Module): def __init__(self, C_in, C_out, kernel_size, stride, padding): super(ConvReLU3D, self).__init__() self.conv = nn.Conv3d(C_in, C_out, kernel_size, stride = stride, padding = padding, bias = False) self.relu = nn.ReLU(inplace=False) def forward(self, x): return self.relu(self.conv(x)) register_primitive("conv_relu_3x3_3d", lambda C, C_out, stride, affine: ConvReLU3D(C, C_out, 3, stride, 1), override = True) register_primitive("conv_relu_3x3_3d_c1", lambda C, C_out, stride, affine: ConvReLU3D(1, C_out, 3, stride, 1), override = True) # End of operations of three dimensional discriminator ---------------------------------- # -------------------------------------------------------------------------------------- if __name__ == "__main__": inputs = torch.ones(2, 16, 40, 200, 200) net = BasicBlock3D(C_in = 16, C_out = 32, stride = 2, downsample = True, padding = 2, dilation = 2, batch_norm = False) outputs = net(inputs) loss = outputs.sum() loss.backward() print(outputs.shape)
40.731788
142
0.567921
1,490
12,301
4.506711
0.087248
0.039315
0.038719
0.054207
0.818764
0.784066
0.724348
0.681162
0.63723
0.63723
0
0.019982
0.267702
12,301
301
143
40.86711
0.725466
0.095196
0
0.551887
0
0
0.029785
0
0
0
0
0
0.004717
1
0.084906
false
0
0.023585
0.018868
0.193396
0.004717
0
0
0
null
0
0
0
1
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
4
c8214c8e4f529c8338a5b91d45f79bfe430afec8
1,266
py
Python
nfvbench/tor_client.py
hashnfv/hashnfv-nfvbench
8da439b932537748d379c7bd3bdf560ef739b203
[ "Apache-2.0" ]
null
null
null
nfvbench/tor_client.py
hashnfv/hashnfv-nfvbench
8da439b932537748d379c7bd3bdf560ef739b203
[ "Apache-2.0" ]
null
null
null
nfvbench/tor_client.py
hashnfv/hashnfv-nfvbench
8da439b932537748d379c7bd3bdf560ef739b203
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2016 Cisco Systems, Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. # class TORClientException(Exception): pass class BasicTORClient(object): def __init__(self, config): pass def get_int_counters(self): return {} def get_vni_counters(self, vni): return {} def get_vni_interface(self, vni, counters): return None def get_vni_for_vlan(self, vlans): return [] def attach_tg_interfaces(self, network_vlans, switch_ports): pass def clear_nve(self): pass def clear_interface(self, vni): pass def close(self): pass def get_version(self): return {}
23.886792
78
0.669036
170
1,266
4.864706
0.582353
0.072551
0.032648
0.038694
0
0
0
0
0
0
0
0.008466
0.253555
1,266
52
79
24.346154
0.866667
0.495261
0
0.391304
0
0
0
0
0
0
0
0
0
1
0.434783
false
0.26087
0
0.217391
0.73913
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
1
1
0
0
4
c836dcf57d30724e24978e69b0729b3a0f4d5fe5
102
py
Python
setup.py
jlumpe/python-emacs
42229fe06e6ca5a137c339561f99becac303ceb8
[ "MIT" ]
9
2019-09-13T23:40:11.000Z
2022-02-18T19:56:22.000Z
setup.py
jlumpe/python-emacs
42229fe06e6ca5a137c339561f99becac303ceb8
[ "MIT" ]
1
2021-05-16T11:27:43.000Z
2021-05-16T11:27:49.000Z
setup.py
jlumpe/python-emacs
42229fe06e6ca5a137c339561f99becac303ceb8
[ "MIT" ]
1
2020-01-02T11:22:00.000Z
2020-01-02T11:22:00.000Z
"""Setuptools installation script for python-emacs package.""" from setuptools import setup setup()
17
62
0.77451
12
102
6.583333
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.127451
102
5
63
20.4
0.88764
0.54902
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
c09dde62c929a16ed622795f87f87281110244cf
113
py
Python
enthought/template/impl/template_data_context.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
3
2016-12-09T06:05:18.000Z
2018-03-01T13:00:29.000Z
enthought/template/impl/template_data_context.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
1
2020-12-02T00:51:32.000Z
2020-12-02T08:48:55.000Z
enthought/template/impl/template_data_context.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
null
null
null
# proxy module from __future__ import absolute_import from apptools.template.impl.template_data_context import *
28.25
58
0.858407
15
113
6
0.733333
0
0
0
0
0
0
0
0
0
0
0
0.097345
113
3
59
37.666667
0.882353
0.106195
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
c0b12e93e1ca33b55409a446f815c4209c6a0b7d
43
py
Python
drone_client/__init__.py
morph027/drone-client
8b467073e6bd45aad66e038fb914e365425ba6b1
[ "Apache-2.0" ]
2
2020-03-26T20:19:17.000Z
2020-12-11T17:43:25.000Z
drone_client/__init__.py
morph027/drone-client
8b467073e6bd45aad66e038fb914e365425ba6b1
[ "Apache-2.0" ]
null
null
null
drone_client/__init__.py
morph027/drone-client
8b467073e6bd45aad66e038fb914e365425ba6b1
[ "Apache-2.0" ]
1
2020-09-02T10:00:00.000Z
2020-09-02T10:00:00.000Z
from . import drone __version__ = '0.1.4'
10.75
21
0.674419
7
43
3.571429
1
0
0
0
0
0
0
0
0
0
0
0.085714
0.186047
43
3
22
14.333333
0.628571
0
0
0
0
0
0.116279
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
c0f96abc46d6d0cc4b2b03cbdb212dd79d092a4f
89
py
Python
examples/another_basic_external_file.py
thiagofigcosta/Pytho-
3dc12abe3524bb2fd5004a29751498ef2d3bbade
[ "MIT" ]
null
null
null
examples/another_basic_external_file.py
thiagofigcosta/Pytho-
3dc12abe3524bb2fd5004a29751498ef2d3bbade
[ "MIT" ]
null
null
null
examples/another_basic_external_file.py
thiagofigcosta/Pytho-
3dc12abe3524bb2fd5004a29751498ef2d3bbade
[ "MIT" ]
null
null
null
#!/bin/python3 def print_ext_file2(){ print("This came from another ext file") }
17.8
45
0.662921
13
89
4.384615
0.846154
0
0
0
0
0
0
0
0
0
0
0.028169
0.202247
89
5
46
17.8
0.774648
0.146067
0
0
0
0
0.430556
0
0
0
0
0
0
0
null
null
0
0
null
null
0.666667
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
1
0
4
23ad9621bd35dd8928728015825b8a56b1b7367a
194
py
Python
jsonio.py
danielhavir/dotfiles
1bba9fae0e2708705f8b6a0a989d8b201cac3dbf
[ "MIT" ]
2
2020-04-03T20:03:59.000Z
2020-07-26T13:01:27.000Z
jsonio.py
danielhavir/dotfiles
1bba9fae0e2708705f8b6a0a989d8b201cac3dbf
[ "MIT" ]
null
null
null
jsonio.py
danielhavir/dotfiles
1bba9fae0e2708705f8b6a0a989d8b201cac3dbf
[ "MIT" ]
null
null
null
import os import json def readjson(path): with open(path, "r") as f: o = json.load(f) return o def writejson(o, path): with open(path, "w") as f: json.dump(o, f)
13.857143
30
0.561856
33
194
3.30303
0.515152
0.146789
0.220183
0.293578
0
0
0
0
0
0
0
0
0.298969
194
13
31
14.923077
0.801471
0
0
0
0
0
0.010309
0
0
0
0
0
0
1
0.222222
false
0
0.222222
0
0.555556
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
23ca2064cedd7c1e68374c79141100fa7a2358de
8,784
py
Python
dpemu/filters/filter.py
ohtu-projekti-dataproblemsemulator/dataproblemsemulator
58170716b44c4e4dee639451977f352b3c68053c
[ "MIT" ]
2
2019-12-13T09:58:49.000Z
2020-02-10T10:37:17.000Z
dpemu/filters/filter.py
ohtu-projekti-dataproblemsemulator/dataproblemsemulator
58170716b44c4e4dee639451977f352b3c68053c
[ "MIT" ]
199
2019-05-19T17:48:39.000Z
2022-03-11T23:56:15.000Z
dpemu/filters/filter.py
thalvari/dpEmu-AutoML
b24eac686fae4147264c1ccc8169fd96b1875577
[ "MIT" ]
5
2019-10-02T23:14:05.000Z
2020-05-28T16:23:22.000Z
# MIT License # # Copyright (c) 2019 Tuomas Halvari, Juha Harviainen, Juha Mylläri, Antti Röyskö, Juuso Silvennoinen # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. import random import numpy as np from abc import ABC, abstractmethod class Filter(ABC): """A Filter is an error source which can be attached to an Array node. The apply method applies the filter to the data. A filter may always assume that it is acting upon a NumPy array. (if the underlying data object is not a NumPy array, the required conversions are performed by the Array node to which the Filter is attached.) Args: ABC (object): Helper class that provides a standard way to create an abstract class using inheritance. """ # TODO: should this really be done here?? def __init__(self): """Set the seeds for the RNG's of NumPy and Python. """ np.random.seed(42) random.seed(42) def set_params(self, params_dict): """Set parameters for error generation. Args: params_dict (dict): A dictionary containing key-value pairs of error parameters. """ original = self.__dict__.copy() for key in original: if key[-3:] == "_id": value = self.__dict__[key] if value is not None: try: self.__dict__[key[:-3]] = params_dict[value] except KeyError as e: message = "The error parameter dictionary does not contain a parameter "\ f"with the identifier '{value}', which is expected by "\ f"the Filter {self}." raise Exception(message) from e for key in self.__dict__: value = self.__dict__[key] if isinstance(value, Filter): value.set_params(params_dict) @abstractmethod def apply(self, node_data, random_state, named_dims): """Applies the filter to the data. Args: node_data (numpy.ndarray): Data to be modified as a NumPy array. random_state (mtrand.RandomState): An instance of numpy.random.RandomState() random number generator. named_dims (dict): Named dimensions. """ pass # TODO: "Inherits Filter class" -> "Inherits the Filter-class" ? class Constant(Filter): """Overwrites all values in the data with the given value. Inherits Filter class. """ def __init__(self, value_id): """ Args: value_id: The key mapping to the value to overwrite values in the data with. """ super().__init__() self.value_id = value_id def apply(self, node_data, random_state, named_dims): node_data.fill(self.value) # TODO: Isn't this just the base Filter class? class Identity(Filter): """Acts as the identity operator, thus doesn't modify the data. Inherits Filter class. """ def __init__(self): super().__init__() def apply(self, node_data, random_state, named_dims): pass class BinaryFilter(Filter): """Abstract Filter applying two given filters to the data, combining the results with a pairwise binary operation. The pairwise binary operation is specified by the inheriting class by overriding the operation-function. Inherits Filter class. """ def __init__(self, filter_a, filter_b): """ Args: filter_a (str): The first filter. filter_b (str): The second filter. """ super().__init__() self.filter_a = filter_a self.filter_b = filter_b def apply(self, node_data, random_state, named_dims): data_a = node_data.copy() data_b = node_data.copy() self.filter_a.apply(data_a, random_state, named_dims) self.filter_b.apply(data_b, random_state, named_dims) for index, _ in np.ndenumerate(node_data): node_data[index] = self.operation(data_a[index], data_b[index]) @abstractmethod def operation(self, element_a, element_b): """The pairwise binary operation used to combine results from the two child filters. Args: element_a (object): The element from the data filter_a operated on. element_b (object): The element from the data filter_b operated on. """ pass class Addition(BinaryFilter): """Combines results of the two child filters by adding them together. Inherits BinaryFilter class. """ def operation(self, element_a, element_b): return element_a + element_b class Subtraction(BinaryFilter): """Combines results of the two child filters by subtracting the results of the second from the firsts. Inherits BinaryFilter class. """ def operation(self, element_a, element_b): return element_a - element_b class Multiplication(BinaryFilter): """Combines results of the two child filters by multiplying them together. Inherits BinaryFilter class. """ def operation(self, element_a, element_b): return element_a * element_b class Division(BinaryFilter): """Combines results of the two child filters by dividing the results of the first by the seconds. Inherits BinaryFilter class. """ def operation(self, element_a, element_b): return element_a / element_b class IntegerDivision(BinaryFilter): """Combines results of the two child filters by perfoming integer division on the results of the first by the results of the second. The division is done with python's // operator. Inherits BinaryFilter class. """ def operation(self, element_a, element_b): return element_a // element_b class Modulo(BinaryFilter): """Combines results of the two child filters by taking the results of the first modulo results of the second. Inherits BinaryFilter class. """ def operation(self, element_a, element_b): return element_a % element_b class And(BinaryFilter): """Combines results of the two child filters with bitwise AND. Inherits BinaryFilter class. """ def operation(self, element_a, element_b): return element_a & element_b class Or(BinaryFilter): """Combines results of the two child filters with bitwise OR. Inherits BinaryFilter class. """ def operation(self, element_a, element_b): return element_a | element_b class Xor(BinaryFilter): """Combines results of the two child filters with bitwise XOR. Inherits BinaryFilter class. """ def operation(self, element_a, element_b): return element_a ^ element_b class Difference(Filter): """Returns change to data from filter Given a filter, applies the filter to the data, then subtracting the original. Functions identically to Subtraction(filter, Identity()). Inherits BinaryFilter class. """ def __init__(self, ftr): super().__init__() self.ftr = Subtraction(ftr, Identity()) def apply(self, node_data, random_state, named_dims): self.ftr.apply(node_data, random_state, named_dims) class Max(BinaryFilter): """Combines results of the two child filters by taking the pairwise maximum of the results of the first and second. Inherits BinaryFilter class. """ def operation(self, element_a, element_b): return max(element_a, element_b) class Min(BinaryFilter): """Combines results of the two child filters by taking the pairwise minimum of the results of the first and second. Inherits BinaryFilter class. """ def operation(self, element_a, element_b): return min(element_a, element_b)
31.148936
119
0.670423
1,166
8,784
4.909949
0.236707
0.033537
0.060262
0.064279
0.40821
0.371004
0.337293
0.311441
0.311441
0.233712
0
0.001529
0.255578
8,784
281
120
31.259786
0.873987
0.515824
0
0.326087
0
0
0.03526
0
0
0
0
0.010676
0
1
0.25
false
0.032609
0.032609
0.119565
0.576087
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
1
0
0
4
23cff851ceabab8f0697bbd4809b3c99f46a6e5c
35
py
Python
tests/__init__.py
brgerig/async_upnp_client
680c4f5f7c80c417338e5c498179cb2af2f7bf1c
[ "Apache-2.0" ]
33
2018-05-23T08:14:53.000Z
2022-02-14T10:30:46.000Z
tests/__init__.py
brgerig/async_upnp_client
680c4f5f7c80c417338e5c498179cb2af2f7bf1c
[ "Apache-2.0" ]
107
2018-06-22T18:01:58.000Z
2022-03-17T21:39:07.000Z
tests/__init__.py
brgerig/async_upnp_client
680c4f5f7c80c417338e5c498179cb2af2f7bf1c
[ "Apache-2.0" ]
25
2018-05-23T09:44:16.000Z
2022-03-10T09:11:34.000Z
"""Tests for async_upnp_client."""
17.5
34
0.714286
5
35
4.6
1
0
0
0
0
0
0
0
0
0
0
0
0.085714
35
1
35
35
0.71875
0.8
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
23f1a898c4bcd9fe8c90e7bb708a6ed539fc6bec
97
py
Python
app/filestorage/apps.py
DOSSIER-dev/DOSSIER-Sources
a89d3626ddf1bfcd021f2f7b4e927182aa5b3d8e
[ "MIT" ]
7
2019-04-05T11:28:50.000Z
2021-04-14T10:05:46.000Z
app/filestorage/apps.py
DOSSIER-dev/DOSSIER-Sources
a89d3626ddf1bfcd021f2f7b4e927182aa5b3d8e
[ "MIT" ]
1
2022-03-02T03:41:28.000Z
2022-03-02T03:41:28.000Z
app/filestorage/apps.py
DOSSIER-dev/DOSSIER-Sources
a89d3626ddf1bfcd021f2f7b4e927182aa5b3d8e
[ "MIT" ]
1
2019-04-15T10:41:08.000Z
2019-04-15T10:41:08.000Z
from django.apps import AppConfig class FileStorageConfig(AppConfig): name = 'filestorage'
16.166667
35
0.773196
10
97
7.5
0.9
0
0
0
0
0
0
0
0
0
0
0
0.154639
97
5
36
19.4
0.914634
0
0
0
0
0
0.113402
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
9b147d700923997ed7993f918d1628dc6b243d8e
2,444
py
Python
tests/test_integration/test_async/test_others.py
Nobyx/pyfy
e18a7b7e48eefc4cb58e5d826c341bce99452a66
[ "MIT" ]
48
2019-02-13T19:53:39.000Z
2021-05-04T20:56:34.000Z
tests/test_integration/test_async/test_others.py
Nobyx/pyfy
e18a7b7e48eefc4cb58e5d826c341bce99452a66
[ "MIT" ]
21
2019-01-09T17:46:13.000Z
2021-08-22T12:38:59.000Z
tests/test_integration/test_async/test_others.py
Nobyx/pyfy
e18a7b7e48eefc4cb58e5d826c341bce99452a66
[ "MIT" ]
15
2019-01-03T01:30:24.000Z
2022-01-30T09:53:18.000Z
import pytest pytestmark = pytest.mark.asyncio async def test_user_top_artists(async_spotify_user_auth): assert await async_spotify_user_auth.user_top_artists() async def test_artist_albums(async_spotify_user_auth, depeche_mode_artist_id): assert await async_spotify_user_auth.artist_albums(depeche_mode_artist_id) async def test_album_tracks(async_spotify_user_auth, reise_reise_album_id): assert await async_spotify_user_auth.album_tracks(reise_reise_album_id) async def test_artist_top_tracks(async_spotify_user_auth, depeche_mode_artist_id): assert await async_spotify_user_auth.artist_top_tracks( depeche_mode_artist_id, country="US" ) # # # TODO: Write seperate unit tests for the get_key_recursively_method() # # # async def test_next_search(async_spotify_user_auth): result = await async_spotify_user_auth.search("love", "track", limit=2) assert len(result) > 0 next_ = await async_spotify_user_auth.next_page(result) assert len(next_) > 0 next_2 = await async_spotify_user_auth.next_page(next_) assert next_ != next_2 assert len(next_2) > 0 async def test_previous_search(async_spotify_user_auth): result = await async_spotify_user_auth.search("stars", "track", limit=2) assert len(result) > 0 next_ = await async_spotify_user_auth.next_page(result) next_2 = await async_spotify_user_auth.next_page(next_) previous = await async_spotify_user_auth.previous_page(next_2) assert len(previous) > 0 assert previous == next_ assert len(previous) > 0 async def test_next_featured_playlists(async_spotify_user_auth): result = await async_spotify_user_auth.featured_playlists(limit=2) assert len(result) > 0 next_ = await async_spotify_user_auth.next_page(result) assert len(next_) > 0 async def test_next_recently_played_tracks(async_spotify_user_auth): result = await async_spotify_user_auth.recently_played_tracks(limit=2) assert len(result) > 0 next_ = await async_spotify_user_auth.next_page(result) assert len(next_) > 0 async def test_next_user_albums(async_spotify_user_auth): result = await async_spotify_user_auth.user_albums(limit=2) assert len(result) > 0 next_ = await async_spotify_user_auth.next_page(result) assert len(next_) > 0
35.42029
82
0.737725
348
2,444
4.724138
0.149425
0.189781
0.253041
0.316302
0.670316
0.614355
0.590633
0.57056
0.57056
0.57056
0
0.011168
0.193944
2,444
68
83
35.941176
0.82335
0.027823
0
0.409091
0
0
0.009438
0
0
0
0
0.014706
0.409091
1
0
false
0
0.022727
0
0.022727
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
1
1
0
0
0
0
0
0
0
0
0
4
f1a3ce04f6082e3a85ec745a036f900e239ddddd
42
py
Python
python/1016.py
nicollecnunes/uri-python
1860c2be2eb3eb603767e829964ae7e586fb3511
[ "MIT" ]
null
null
null
python/1016.py
nicollecnunes/uri-python
1860c2be2eb3eb603767e829964ae7e586fb3511
[ "MIT" ]
null
null
null
python/1016.py
nicollecnunes/uri-python
1860c2be2eb3eb603767e829964ae7e586fb3511
[ "MIT" ]
null
null
null
a=int(input()) print("%d minutos" % (a*2))
21
27
0.571429
8
42
3
0.875
0
0
0
0
0
0
0
0
0
0
0.026316
0.095238
42
2
27
21
0.605263
0
0
0
0
0
0.232558
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
4
f1bacc31911790212604b971f14bea7889440f2e
28
py
Python
upperlower.py
64u71bm/Python-Programs
601d4a171593b84f7fada1870ddddd3999eb16a0
[ "MIT" ]
1
2018-12-07T15:19:33.000Z
2018-12-07T15:19:33.000Z
upperlower.py
64u71bm/Python-Programs
601d4a171593b84f7fada1870ddddd3999eb16a0
[ "MIT" ]
null
null
null
upperlower.py
64u71bm/Python-Programs
601d4a171593b84f7fada1870ddddd3999eb16a0
[ "MIT" ]
null
null
null
s=raw_input("enter a string
14
27
0.785714
6
28
3.5
1
0
0
0
0
0
0
0
0
0
0
0
0.107143
28
1
28
28
0.84
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
4
f1d438d4020392cb81f1e5eba3472d28c4d7eb9c
216
py
Python
Python/852_Peak_Index_in_a_Mountain_Array.py
ImedAdel/LeetCode
e994b783de9b6167a6ec6c261dcafc8c0753bd54
[ "Unlicense" ]
3
2019-03-27T22:14:45.000Z
2020-01-07T14:43:27.000Z
Python/852_Peak_Index_in_a_Mountain_Array.py
ImedAdel/LeetCode
e994b783de9b6167a6ec6c261dcafc8c0753bd54
[ "Unlicense" ]
null
null
null
Python/852_Peak_Index_in_a_Mountain_Array.py
ImedAdel/LeetCode
e994b783de9b6167a6ec6c261dcafc8c0753bd54
[ "Unlicense" ]
null
null
null
class Solution: def peakIndexInMountainArray(self, A): """ :type A: List[int] :rtype: int """ # return A.index(max(A)) return max(range(len(A)), key=A.__getitem__)
24
52
0.527778
25
216
4.4
0.68
0
0
0
0
0
0
0
0
0
0
0
0.324074
216
8
53
27
0.753425
0.25
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
f1e2f061bf50febeb02ad6e1e23b144f4b3be84a
67
py
Python
experiments/reticulated/retic/exec2/__init_.py
fabianmuehlboeck/monnom
609b307d9fa9e6641443f34dbcc0b035b34d3044
[ "BSD-3-Clause", "MIT" ]
2
2021-11-16T20:58:02.000Z
2021-12-05T18:15:41.000Z
experiments/reticulated/sort/retic/exec2/__init_.py
fabianmuehlboeck/monnom
609b307d9fa9e6641443f34dbcc0b035b34d3044
[ "BSD-3-Clause", "MIT" ]
null
null
null
experiments/reticulated/sort/retic/exec2/__init_.py
fabianmuehlboeck/monnom
609b307d9fa9e6641443f34dbcc0b035b34d3044
[ "BSD-3-Clause", "MIT" ]
null
null
null
def _exec(obj, globs=None, locs=None): exec obj in globs, locs
22.333333
38
0.686567
12
67
3.75
0.583333
0.311111
0
0
0
0
0
0
0
0
0
0
0.19403
67
2
39
33.5
0.833333
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
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
1
0
0
0
0
0
0
0
0
4
f1ea1ff5dd0d05aad148750e2b2ace3d6c76e587
212
py
Python
yelpfusion/endpoints/autocomplete.py
tmnhat2001/yelp-fusion-api
91e9e2b763efd96f12fd926484e1a32921421f1c
[ "MIT" ]
null
null
null
yelpfusion/endpoints/autocomplete.py
tmnhat2001/yelp-fusion-api
91e9e2b763efd96f12fd926484e1a32921421f1c
[ "MIT" ]
null
null
null
yelpfusion/endpoints/autocomplete.py
tmnhat2001/yelp-fusion-api
91e9e2b763efd96f12fd926484e1a32921421f1c
[ "MIT" ]
null
null
null
from typing import Any, Dict from yelpfusion.endpoint import Endpoint class Autocomplete(Endpoint): def get(self, **params: Any) -> Dict[str, Any]: return self._get("/autocomplete", params=params)
23.555556
56
0.712264
27
212
5.555556
0.555556
0.093333
0
0
0
0
0
0
0
0
0
0
0.169811
212
8
57
26.5
0.852273
0
0
0
0
0
0.061321
0
0
0
0
0
0
1
0.2
false
0
0.4
0.2
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
1
1
0
0
0
4
7b21a212a0202b0a0f3ad38fc0c22c48e3bef9e6
119
py
Python
sorting/commonutil.py
shubham9302/DS_Practise
13b395a35e002f9f103ab3f279bcbd39d29f2729
[ "MIT" ]
null
null
null
sorting/commonutil.py
shubham9302/DS_Practise
13b395a35e002f9f103ab3f279bcbd39d29f2729
[ "MIT" ]
null
null
null
sorting/commonutil.py
shubham9302/DS_Practise
13b395a35e002f9f103ab3f279bcbd39d29f2729
[ "MIT" ]
null
null
null
class Utilities: @staticmethod def swap(a, b, arr): arr[a], arr[b] = arr[b], arr[a] return arr
19.833333
39
0.529412
18
119
3.5
0.5
0.190476
0.222222
0
0
0
0
0
0
0
0
0
0.319328
119
5
40
23.8
0.777778
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
0
0.6
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
1
0
0
4
9e3ccfcf1df7bc7f7b92f7a91f24779567309f18
137
py
Python
decoder/qr_bar_decoder/apps.py
CoderandGymnast/SWMS---Sonic-Warehouse-Management-System
95efabe2cfec1c66b762e00782ed7d3b8ce66d0e
[ "MIT" ]
null
null
null
decoder/qr_bar_decoder/apps.py
CoderandGymnast/SWMS---Sonic-Warehouse-Management-System
95efabe2cfec1c66b762e00782ed7d3b8ce66d0e
[ "MIT" ]
null
null
null
decoder/qr_bar_decoder/apps.py
CoderandGymnast/SWMS---Sonic-Warehouse-Management-System
95efabe2cfec1c66b762e00782ed7d3b8ce66d0e
[ "MIT" ]
null
null
null
from django.apps import AppConfig class QrBarDecoderConfig(AppConfig): name = "qr_bar_decoder" verbose_name = "QR/BAR decoder"
19.571429
36
0.751825
17
137
5.882353
0.705882
0.12
0.18
0.32
0
0
0
0
0
0
0
0
0.167883
137
6
37
22.833333
0.877193
0
0
0
0
0
0.20438
0
0
0
0
0
0
1
0
false
0
0.25
0
1
0
1
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
4
9e7c4e2ed315d15adfe7981b6e63c6791185ec59
96
py
Python
practice/session_app/apps.py
jietui/django_project
94a3a506abdfb6e5d1ccc41347914fc2ba147da2
[ "MIT" ]
1
2021-11-25T00:02:36.000Z
2021-11-25T00:02:36.000Z
practice/session_app/apps.py
jietui/django_project
94a3a506abdfb6e5d1ccc41347914fc2ba147da2
[ "MIT" ]
null
null
null
practice/session_app/apps.py
jietui/django_project
94a3a506abdfb6e5d1ccc41347914fc2ba147da2
[ "MIT" ]
null
null
null
from django.apps import AppConfig class SessionAppConfig(AppConfig): name = 'session_app'
16
34
0.770833
11
96
6.636364
0.909091
0
0
0
0
0
0
0
0
0
0
0
0.15625
96
5
35
19.2
0.901235
0
0
0
0
0
0.114583
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
9e84801b182e878c5482d4ff22cf3162e4f771a7
88
py
Python
baconsarnie/__init__.py
TechPriestJon/BaconSarnie
0e5b240684e40f2e43fd6082630ea97887c98ea9
[ "BSD-3-Clause" ]
null
null
null
baconsarnie/__init__.py
TechPriestJon/BaconSarnie
0e5b240684e40f2e43fd6082630ea97887c98ea9
[ "BSD-3-Clause" ]
null
null
null
baconsarnie/__init__.py
TechPriestJon/BaconSarnie
0e5b240684e40f2e43fd6082630ea97887c98ea9
[ "BSD-3-Clause" ]
null
null
null
#from baconsarnie.io.window import Window #__all__ = ["io", "Window"] __all__ = ["io"]
17.6
41
0.670455
11
88
4.636364
0.545455
0.313725
0.431373
0
0
0
0
0
0
0
0
0
0.136364
88
5
42
17.6
0.671053
0.75
0
0
0
0
0.095238
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
9eb49ebb9298a1fcc4f7a048732e41b468d8dc80
1,201
py
Python
pytablereader/loadermanager/_base.py
sthagen/thombashi-pytablereader
b59859da6fdcc94035933dd253e6e380b04a233b
[ "MIT" ]
81
2017-03-18T02:57:29.000Z
2022-03-26T16:54:59.000Z
pytablereader/loadermanager/_base.py
sthagen/pytablereader
b59859da6fdcc94035933dd253e6e380b04a233b
[ "MIT" ]
4
2017-08-09T14:58:48.000Z
2020-04-17T12:59:29.000Z
pytablereader/loadermanager/_base.py
sthagen/pytablereader
b59859da6fdcc94035933dd253e6e380b04a233b
[ "MIT" ]
11
2017-05-02T16:23:59.000Z
2021-12-10T15:05:39.000Z
""" .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> """ from ..interface import TableLoaderInterface class TableLoaderManager(TableLoaderInterface): def __init__(self, loader): self.__loader = loader @property def loader(self): return self.__loader @property def format_name(self): return self.__loader.format_name @property def source_type(self): return self.__loader.source_type @property def table_name(self): return self.__loader.table_name @table_name.setter def table_name(self, value): self.__loader.table_name = value @property def encoding(self): try: return self.__loader.encoding except AttributeError: return None @encoding.setter def encoding(self, codec_name): self.__loader.encoding = codec_name @property def type_hints(self): return self.__loader.type_hints @type_hints.setter def type_hints(self, value): self.__loader.type_hints = value def load(self): return self.__loader.load() def inc_table_count(self): self.__loader.inc_table_count()
21.446429
63
0.656953
136
1,201
5.448529
0.25
0.175439
0.151147
0.161943
0.064777
0
0
0
0
0
0
0
0.256453
1,201
55
64
21.836364
0.829787
0.052456
0
0.157895
0
0
0
0
0
0
0
0
0
1
0.315789
false
0
0.026316
0.157895
0.578947
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
1
0
0
4
9ec1658836380b052ab140fc69b5677511643717
127
py
Python
flask/app/__init__.py
Smyles1105/portfolio-site
9ede08ce0c800fa7001d76a10af04b35fa0c3a3b
[ "MIT" ]
1
2022-02-17T17:40:55.000Z
2022-02-17T17:40:55.000Z
flask/app/__init__.py
Smyles1105/portfolio-site
9ede08ce0c800fa7001d76a10af04b35fa0c3a3b
[ "MIT" ]
null
null
null
flask/app/__init__.py
Smyles1105/portfolio-site
9ede08ce0c800fa7001d76a10af04b35fa0c3a3b
[ "MIT" ]
null
null
null
from flask import Flask app = Flask(__name__,template_folder='../templates', static_folder='../static') from app import views
25.4
79
0.76378
17
127
5.352941
0.588235
0
0
0
0
0
0
0
0
0
0
0
0.102362
127
5
80
25.4
0.798246
0
0
0
0
0
0.164063
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
7b37ec821e22c40837831a81e7d04f9891b7f1e6
95
py
Python
tsurami/tsuramiapp/apps.py
IchigoMilk/tsuramiapp
e423ec460e0109290eaa991032fbd3e65ad0ff66
[ "MIT" ]
null
null
null
tsurami/tsuramiapp/apps.py
IchigoMilk/tsuramiapp
e423ec460e0109290eaa991032fbd3e65ad0ff66
[ "MIT" ]
null
null
null
tsurami/tsuramiapp/apps.py
IchigoMilk/tsuramiapp
e423ec460e0109290eaa991032fbd3e65ad0ff66
[ "MIT" ]
null
null
null
from django.apps import AppConfig class TsuramiappConfig(AppConfig): name = 'tsuramiapp'
15.833333
34
0.768421
10
95
7.3
0.9
0
0
0
0
0
0
0
0
0
0
0
0.157895
95
5
35
19
0.9125
0
0
0
0
0
0.105263
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
7b5614eeb191fb7a1db5eec91c85eab7917d2d48
995
py
Python
PyPPSPC.py
Nircek/pypps
6f14a854b17cc995cb6f43001842b6c7c4118064
[ "MIT" ]
null
null
null
PyPPSPC.py
Nircek/pypps
6f14a854b17cc995cb6f43001842b6c7c4118064
[ "MIT" ]
null
null
null
PyPPSPC.py
Nircek/pypps
6f14a854b17cc995cb6f43001842b6c7c4118064
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from .PPSReply import * from .PPSDefaults import * import json class PyPPSPC: PPSversion = 'v1.3' def __init__(self, url): self.url = url self.user, self.password = [None]*2 self.input = inputfunc self.bool = boolfunc version = lambda self: getVersion(self.url) test = lambda self: self.version()[0] == 'v' connect = connect def register(self, user, password): return perform(self.url, 'register', {'user': user, 'pass': password}) def login(self, user, password): self.user = user self.password = password def push(self, event): return perform(self.url, 'push', {'user': self.user, 'pass': self.password, 'event': event}) def refresh(self): return perform(self.url, 'refresh', {'user': self.user, 'pass': self.password}) def pushj(self, event): return self.push(json.dumps(event)) def refreshj(self): return loads(joinUS(self.refresh()))
34.310345
100
0.621106
125
995
4.912
0.368
0.068404
0.083062
0.09772
0.091205
0.091205
0
0
0
0
0
0.006553
0.233166
995
28
101
35.535714
0.798165
0.021106
0
0
0
0
0.054471
0
0
0
0
0
0
1
0.269231
false
0.269231
0.115385
0.192308
0.769231
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
1
1
0
0
4
7b7b2e0ebf951448d6aa9dde0570d750b202b3dd
49
py
Python
src/napari_math/__init__.py
zacsimile/napari-math
b159b983392fe6b60cab944e803322bee154bc92
[ "MIT" ]
2
2022-01-18T17:19:48.000Z
2022-01-18T22:26:05.000Z
src/napari_math/__init__.py
zacsimile/napari-math
b159b983392fe6b60cab944e803322bee154bc92
[ "MIT" ]
null
null
null
src/napari_math/__init__.py
zacsimile/napari-math
b159b983392fe6b60cab944e803322bee154bc92
[ "MIT" ]
null
null
null
__version__ = "0.0.1b" from ._widget import *
8.166667
22
0.653061
7
49
3.857143
0.857143
0
0
0
0
0
0
0
0
0
0
0.076923
0.204082
49
5
23
9.8
0.615385
0
0
0
0
0
0.125
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
7b962f3d28b62da36240a721fee79a04703c02bb
87
py
Python
djurls/shorty/apps.py
solen0id/djurls
f0b1d82ca2ef4a6ff3ce326b5b3c1a53d8a0994f
[ "MIT" ]
null
null
null
djurls/shorty/apps.py
solen0id/djurls
f0b1d82ca2ef4a6ff3ce326b5b3c1a53d8a0994f
[ "MIT" ]
null
null
null
djurls/shorty/apps.py
solen0id/djurls
f0b1d82ca2ef4a6ff3ce326b5b3c1a53d8a0994f
[ "MIT" ]
null
null
null
from django.apps import AppConfig class ShortyConfig(AppConfig): name = "shorty"
14.5
33
0.747126
10
87
6.5
0.9
0
0
0
0
0
0
0
0
0
0
0
0.172414
87
5
34
17.4
0.902778
0
0
0
0
0
0.068966
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
c8a1b7ec815d51807fb328f52a9bd052ed6eda89
147
py
Python
sudoku/network/__init__.py
kevinddchen/sudoku
135b47ffcfade88628acabacd0a2c916da98a9e4
[ "MIT" ]
null
null
null
sudoku/network/__init__.py
kevinddchen/sudoku
135b47ffcfade88628acabacd0a2c916da98a9e4
[ "MIT" ]
null
null
null
sudoku/network/__init__.py
kevinddchen/sudoku
135b47ffcfade88628acabacd0a2c916da98a9e4
[ "MIT" ]
null
null
null
from .metrics import Mean from .model import get_model, init_weights, checkpoint_path, save_weights, load_weights from .utils import TimeEstimator
36.75
87
0.843537
21
147
5.666667
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.108844
147
3
88
49
0.908397
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
c8d932a6267fb37e56b3ddab442d3d19654e2e1c
1,550
py
Python
backend/pollaris/app/migrations/0009_search_log_address_fields.py
Elizabeth-Warren/pollaris
153ca4297ceed1ac1685ca80c5890384800cfa8a
[ "MIT" ]
78
2020-03-27T14:49:11.000Z
2021-11-15T10:24:11.000Z
backend/pollaris/app/migrations/0009_search_log_address_fields.py
Elizabeth-Warren/pollaris
153ca4297ceed1ac1685ca80c5890384800cfa8a
[ "MIT" ]
10
2020-06-06T01:47:56.000Z
2022-02-27T23:34:30.000Z
backend/pollaris/app/migrations/0009_search_log_address_fields.py
Elizabeth-Warren/pollaris
153ca4297ceed1ac1685ca80c5890384800cfa8a
[ "MIT" ]
14
2020-03-27T17:36:30.000Z
2020-05-21T04:50:07.000Z
# Generated by Django 2.2.6 on 2019-12-18 18:40 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("app", "0008_searchlog")] operations = [ migrations.RemoveField(model_name="searchlog", name="address_entered"), migrations.AddField( model_name="searchlog", name="search_string", field=models.CharField(blank=True, max_length=1024, null=True), ), migrations.AddField( model_name="searchlog", name="city", field=models.CharField(blank=True, max_length=1024, null=True), ), migrations.AddField( model_name="searchlog", name="state_code", field=models.CharField(blank=True, max_length=1024, null=True), ), migrations.AddField( model_name="searchlog", name="street", field=models.CharField(blank=True, max_length=1024, null=True), ), migrations.AddField( model_name="searchlog", name="street_number", field=models.CharField(blank=True, max_length=1024, null=True), ), migrations.AddField( model_name="searchlog", name="zip5", field=models.CharField(blank=True, max_length=1024, null=True), ), migrations.AddField( model_name="searchlog", name="zip9", field=models.CharField(blank=True, max_length=1024, null=True), ), ]
32.291667
79
0.57871
157
1,550
5.585987
0.286624
0.082098
0.164196
0.200684
0.732041
0.732041
0.686431
0.686431
0.686431
0.686431
0
0.045078
0.29871
1,550
47
80
32.978723
0.76173
0.029032
0
0.682927
1
0
0.105123
0
0
0
0
0
0
1
0
false
0
0.02439
0
0.097561
0
0
0
0
null
0
0
1
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
c8eefbed12582be0be1e21e8ef04315f6b66b0fb
254
py
Python
src/vmcontroller.host/vmcontroller/__init__.py
dgquintas/vmcontroller.unstable
131c0af19c5923ef57c74006246dc41c65f24120
[ "BSD-3-Clause" ]
null
null
null
src/vmcontroller.host/vmcontroller/__init__.py
dgquintas/vmcontroller.unstable
131c0af19c5923ef57c74006246dc41c65f24120
[ "BSD-3-Clause" ]
null
null
null
src/vmcontroller.host/vmcontroller/__init__.py
dgquintas/vmcontroller.unstable
131c0af19c5923ef57c74006246dc41c65f24120
[ "BSD-3-Clause" ]
null
null
null
""" VMController, a general purpose virtual machine controller written in Python. """ try: __import__('pkg_resources').declare_namespace(__name__) except ImportError: from pkgutil import extend_path __path__ = extend_path(__path__, __name__)
28.222222
77
0.775591
29
254
5.965517
0.793103
0.115607
0.16185
0
0
0
0
0
0
0
0
0
0.141732
254
8
78
31.75
0.793578
0.30315
0
0
0
0
0.076923
0
0
0
0
0
0
1
0
false
0
0.6
0
0.6
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
1
0
0
4
cdb4a6d95491699c1b485bca258a0136a0c97cfc
37
py
Python
contest/abc157/A.py
mola1129/atcoder
1d3b18cb92d0ba18c41172f49bfcd0dd8d29f9db
[ "MIT" ]
null
null
null
contest/abc157/A.py
mola1129/atcoder
1d3b18cb92d0ba18c41172f49bfcd0dd8d29f9db
[ "MIT" ]
null
null
null
contest/abc157/A.py
mola1129/atcoder
1d3b18cb92d0ba18c41172f49bfcd0dd8d29f9db
[ "MIT" ]
null
null
null
n = int(input()) print((n + 1) // 2)
12.333333
19
0.459459
7
37
2.428571
0.857143
0
0
0
0
0
0
0
0
0
0
0.068966
0.216216
37
2
20
18.5
0.517241
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
4
b542945d654105b84402434256f6471a89ecf0ef
843
py
Python
prtgrestcli/__init__.py
zeent/pyprtgrestcli
88acc5a147b6743003bf1fd970ef942ac24e74a3
[ "MIT" ]
null
null
null
prtgrestcli/__init__.py
zeent/pyprtgrestcli
88acc5a147b6743003bf1fd970ef942ac24e74a3
[ "MIT" ]
null
null
null
prtgrestcli/__init__.py
zeent/pyprtgrestcli
88acc5a147b6743003bf1fd970ef942ac24e74a3
[ "MIT" ]
null
null
null
__author__ = 'zeent' from prtgrestcli.models import PrtgResult from prtgrestcli.models import PrtgHTTPPushDataAdvancedSensor from prtgrestcli.models import PrtgSensorData from prtgrestcli.models import PrtgProbe from prtgrestcli.enums import PrtgErrorCodes from prtgrestcli.enums import PrtgUnits from prtgrestcli.enums import PrtgSizes from prtgrestcli.enums import PrtgSpeedTimes from prtgrestcli.enums import PrtgModes from prtgrestcli.enums import PrtgDecimalModes from prtgrestcli.exceptions import PrtgException from prtgrestcli.exceptions import PrtgBadRequest from prtgrestcli.exceptions import PrtgBadTarget from prtgrestcli.exceptions import PrtgUnknownResponse from prtgrestcli.exceptions import PrtgTooManyChannelsInSensorData from prtgrestcli.exceptions import PrtgUnsupportedHTTPMethod from prtgrestcli.models import MAX_RESULTS
44.368421
66
0.892052
88
843
8.488636
0.295455
0.341365
0.160643
0.208835
0
0
0
0
0
0
0
0
0.084223
843
18
67
46.833333
0.967617
0
0
0
0
0
0.005931
0
0
0
0
0
0
1
0
false
0
0.944444
0
0.944444
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
1
0
1
0
0
4
b550d0fb0a87dcec44f1c934e85e84896fa11d2f
280
py
Python
PAPC/models/classify/__init__.py
AgentMaker/PAPC
f5f385c6fed53d2ca2599171a317efaac348dfb5
[ "MIT" ]
70
2021-02-20T03:44:38.000Z
2022-01-17T12:55:45.000Z
PAPC/models/classify/__init__.py
AgentMaker/PAPC
f5f385c6fed53d2ca2599171a317efaac348dfb5
[ "MIT" ]
1
2021-02-20T05:26:14.000Z
2021-02-20T13:22:13.000Z
PAPC/models/classify/__init__.py
AgentMaker/PAPC
f5f385c6fed53d2ca2599171a317efaac348dfb5
[ "MIT" ]
8
2021-02-20T03:35:25.000Z
2022-02-08T03:22:55.000Z
from .voxnet.voxnet import VoxNet from .kdnet.kdnet import KDNet from .pointnet_base.pointnet_base import PointNet_Basic_Clas from .pointnet.pointnet_Conv1D import PointNet_Clas from .vfe.vfe import VFE_Clas from .pointnet2.pointnet2 import PointNet2_SSG_Clas, PointNet2_MSG_Clas
40
71
0.864286
42
280
5.5
0.309524
0.103896
0
0
0
0
0
0
0
0
0
0.019608
0.089286
280
6
72
46.666667
0.886275
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
b551f7b7209b2b7abe6317e77a474034d231aaaf
1,150
py
Python
freegames/rolling.py
Monsieurvishal/free-python-games
386e1443bd15e986dd192a863af8589811f29feb
[ "Apache-2.0" ]
null
null
null
freegames/rolling.py
Monsieurvishal/free-python-games
386e1443bd15e986dd192a863af8589811f29feb
[ "Apache-2.0" ]
null
null
null
freegames/rolling.py
Monsieurvishal/free-python-games
386e1443bd15e986dd192a863af8589811f29feb
[ "Apache-2.0" ]
null
null
null
#simulation type for rolling of dice #Loop so that pressing space bar rolls again. #Add a constant to vary the number of dice that are rolled. #Find a way to animate the roll of dice. import random number=random.randint(1,6) if number==1: print("|------------|") print("| |") print("| 1 |") print("| |") print("|------------|") if number==2: print("|------------|") print("| |") print("| 2 |") print("| |") print("|------------|") if number==3: print("|------------|") print("| |") print("| 3 |") print("| |") print("|------------|") if number==4: print("|------------|") print("| |") print("| 4 |") print("| |") print("|------------|") if number==5: print("|------------|") print("| |") print("| 5 |") print("| |") print("|------------|") if number==6: print("|------------|") print("| |") print("| 6 |") print("| |") print("|------------|")
26.136364
59
0.334783
96
1,150
4.010417
0.395833
0.467532
0.233766
0.233766
0
0
0
0
0
0
0
0.018945
0.357391
1,150
43
60
26.744186
0.50203
0.153043
0
0.631579
0
0
0.43299
0
0
0
0
0
0
1
0
false
0
0.026316
0
0.026316
0.789474
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
1
0
4
b58b758888e68269e453052a53ca3c4be570691b
296
py
Python
primitives_ubc/clfyMLP/__init__.py
tonyjo/ubc_primitives
bc94a403f176fe28db2a9ac9d1a48cb9db021f90
[ "Apache-2.0" ]
null
null
null
primitives_ubc/clfyMLP/__init__.py
tonyjo/ubc_primitives
bc94a403f176fe28db2a9ac9d1a48cb9db021f90
[ "Apache-2.0" ]
4
2020-07-19T00:45:29.000Z
2020-12-10T18:25:41.000Z
primitives_ubc/clfyMLP/__init__.py
tonyjo/ubc_primitives
bc94a403f176fe28db2a9ac9d1a48cb9db021f90
[ "Apache-2.0" ]
1
2021-04-30T18:13:49.000Z
2021-04-30T18:13:49.000Z
from .mlpClfy import MultilayerPerceptronClassifierPrimitive from .dataset import Dataset_1 from .dataset import Dataset_2 __all__ = ['MultilayerPerceptronClassifierPrimitive', 'Dataset_1', 'Dataset_2'] from pkgutil import extend_path __path__ = extend_path(__path__, __name__) # type: ignore
32.888889
79
0.827703
32
296
6.96875
0.4375
0.098655
0.152466
0.215247
0
0
0
0
0
0
0
0.015094
0.10473
296
8
80
37
0.826415
0.040541
0
0
0
0
0.202128
0.138298
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
b597e21226787a321d70f767181fd6b38ee8d01b
275
py
Python
07. Functions/099.py
MaksonViini/Aprendendo-Python
8d8422f793e4ea9f81fa4ed0e4101bcfc2ba3c99
[ "MIT" ]
1
2020-09-20T23:18:47.000Z
2020-09-20T23:18:47.000Z
07. Functions/099.py
MaksonViini/Aprendendo-Python
8d8422f793e4ea9f81fa4ed0e4101bcfc2ba3c99
[ "MIT" ]
null
null
null
07. Functions/099.py
MaksonViini/Aprendendo-Python
8d8422f793e4ea9f81fa4ed0e4101bcfc2ba3c99
[ "MIT" ]
1
2020-09-20T23:18:49.000Z
2020-09-20T23:18:49.000Z
# Função que descobre o maior def maior (*valor): print("-=-" * 15) print("Analisando os valores passados...") print(f"{valor} Foram informados {len(valor)} ao todo ") print(f"O maior valor informado foi {max(valor)} ") print("-=-" * 15) maior(1, 2, 3, 5)
34.375
60
0.610909
40
275
4.2
0.65
0.071429
0.142857
0
0
0
0
0
0
0
0
0.03653
0.203636
275
8
61
34.375
0.730594
0.098182
0
0.285714
0
0
0.510121
0
0
0
0
0
0
1
0.142857
true
0.142857
0
0
0.142857
0.714286
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
1
0
4
b599b06682c8f307938e1aec8b37fc1bd3477abb
301
py
Python
ndungu/admin.py
acounsel/django_ndungu
e8f2ad05fae7f00d75a698e3998780265bb66e64
[ "MIT" ]
null
null
null
ndungu/admin.py
acounsel/django_ndungu
e8f2ad05fae7f00d75a698e3998780265bb66e64
[ "MIT" ]
null
null
null
ndungu/admin.py
acounsel/django_ndungu
e8f2ad05fae7f00d75a698e3998780265bb66e64
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Province, Municipality, Authority, Entity, UseCase, Allocation admin.site.register(Province) admin.site.register(Municipality) admin.site.register(Authority) admin.site.register(Entity) admin.site.register(UseCase) admin.site.register(Allocation)
30.1
82
0.830565
38
301
6.578947
0.368421
0.216
0.408
0
0
0
0
0
0
0
0
0
0.066445
301
9
83
33.444444
0.88968
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.25
0
0.25
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
a9280c98942bb9177f7c8d4ddda762d9942e79aa
150
py
Python
messenger_client/templates.py
apollotechnologies/messenger-client
77d57b4e01a4616a4c87b2f5fd3368112b2dbb70
[ "MIT" ]
null
null
null
messenger_client/templates.py
apollotechnologies/messenger-client
77d57b4e01a4616a4c87b2f5fd3368112b2dbb70
[ "MIT" ]
null
null
null
messenger_client/templates.py
apollotechnologies/messenger-client
77d57b4e01a4616a4c87b2f5fd3368112b2dbb70
[ "MIT" ]
null
null
null
"""A list of structured message templates supported by the platform. For unstructured content see content_types""" class Template(object): pass
25
114
0.773333
20
150
5.75
0.95
0
0
0
0
0
0
0
0
0
0
0
0.16
150
5
115
30
0.912698
0.72
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
4
a92aebacf77c891c3a2bb482828feae5e9044be4
289
py
Python
pytpp/attributes/ssh_certificate_create_public_key_action.py
Venafi/pytpp
42af655b2403b8c9447c86962abd4aaa0201f646
[ "MIT" ]
4
2022-02-04T23:58:55.000Z
2022-02-15T18:53:08.000Z
pytpp/attributes/ssh_certificate_create_public_key_action.py
Venafi/pytpp
42af655b2403b8c9447c86962abd4aaa0201f646
[ "MIT" ]
null
null
null
pytpp/attributes/ssh_certificate_create_public_key_action.py
Venafi/pytpp
42af655b2403b8c9447c86962abd4aaa0201f646
[ "MIT" ]
null
null
null
from pytpp.attributes._helper import IterableMeta from pytpp.attributes.flow_action_base import FlowActionBaseAttributes class SSHCertificateCreatePublicKeyActionAttributes(FlowActionBaseAttributes, metaclass=IterableMeta): __config_class__ = "SSH Certificate Create Public Key Action"
41.285714
102
0.882353
27
289
9.148148
0.703704
0.072874
0.153846
0
0
0
0
0
0
0
0
0
0.076125
289
6
103
48.166667
0.925094
0
0
0
0
0
0.138408
0
0
0
0
0
0
1
0
false
0
0.5
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
4
a946e10c4c29dcf5ad749d1c42f8663c304c64b3
75
py
Python
custom_components/acthor/acthor/__init__.py
jatty/hass-acthor
9d5aaed3f01e9288fef031b47b0808e6e80c22d3
[ "MIT" ]
null
null
null
custom_components/acthor/acthor/__init__.py
jatty/hass-acthor
9d5aaed3f01e9288fef031b47b0808e6e80c22d3
[ "MIT" ]
null
null
null
custom_components/acthor/acthor/__init__.py
jatty/hass-acthor
9d5aaed3f01e9288fef031b47b0808e6e80c22d3
[ "MIT" ]
null
null
null
from .client import ACThor, ACThorRegisters, OverrideMode, test_connection
37.5
74
0.853333
8
75
7.875
1
0
0
0
0
0
0
0
0
0
0
0
0.093333
75
1
75
75
0.926471
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
a984549a4949e421b7473a6205435efd08e60091
57
py
Python
agent/bot/lib/__init__.py
Vexvain/ODIN
7538f9a12fef906cdd7aaf3df9341da7b3edbbc1
[ "MIT" ]
null
null
null
agent/bot/lib/__init__.py
Vexvain/ODIN
7538f9a12fef906cdd7aaf3df9341da7b3edbbc1
[ "MIT" ]
null
null
null
agent/bot/lib/__init__.py
Vexvain/ODIN
7538f9a12fef906cdd7aaf3df9341da7b3edbbc1
[ "MIT" ]
null
null
null
# Date: 06/02/2018 # Author: :) # Description: __init__
14.25
23
0.649123
7
57
4.714286
1
0
0
0
0
0
0
0
0
0
0
0.170213
0.175439
57
3
24
19
0.531915
0.877193
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
8d12a9f6a7d0465ed7e30d90bda46a961e081aa1
149
py
Python
reddit2telegram/channels/moviepostertg/app.py
mainyordle/reddit2telegram
1163e15aed3b6ff0fba65b222d3d9798f644c386
[ "MIT" ]
187
2016-09-20T09:15:54.000Z
2022-03-29T12:22:33.000Z
reddit2telegram/channels/moviepostertg/app.py
mainyordle/reddit2telegram
1163e15aed3b6ff0fba65b222d3d9798f644c386
[ "MIT" ]
84
2016-09-22T14:25:07.000Z
2022-03-19T01:26:17.000Z
reddit2telegram/channels/moviepostertg/app.py
mainyordle/reddit2telegram
1163e15aed3b6ff0fba65b222d3d9798f644c386
[ "MIT" ]
172
2016-09-21T15:39:39.000Z
2022-03-16T15:15:58.000Z
#encoding:utf-8 subreddit = 'MoviePosterPorn' t_channel = '@MoviePosterTG' def send_post(submission, r2t): return r2t.send_simple(submission)
16.555556
38
0.758389
18
149
6.111111
0.833333
0
0
0
0
0
0
0
0
0
0
0.023077
0.127517
149
8
39
18.625
0.823077
0.09396
0
0
0
0
0.216418
0
0
0
0
0
0
1
0.25
false
0
0
0.25
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
4
8d2939ce938f0684aaaf732da06db3e8e01dd6de
97
py
Python
crypt.py
Albert-ZCY/crypthon
69eba227219b3402a8c9df44d4560378b75803c8
[ "Apache-2.0" ]
null
null
null
crypt.py
Albert-ZCY/crypthon
69eba227219b3402a8c9df44d4560378b75803c8
[ "Apache-2.0" ]
null
null
null
crypt.py
Albert-ZCY/crypthon
69eba227219b3402a8c9df44d4560378b75803c8
[ "Apache-2.0" ]
null
null
null
# This is the key part of the project. # To protect the users' copyright, it is keeping secrecy.
48.5
57
0.742268
17
97
4.235294
0.823529
0
0
0
0
0
0
0
0
0
0
0
0.195876
97
2
57
48.5
0.923077
0.948454
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
8d69b9bbaecbcc33695a096621e1798fae30f89f
116
py
Python
bot/checks/attributes.py
velian/DSAbot
7491c90ca3ecd30ea023bb039e31c6053f2bdfef
[ "MIT" ]
1
2021-05-10T12:45:01.000Z
2021-05-10T12:45:01.000Z
bot/checks/attributes.py
velian/DSAbot
7491c90ca3ecd30ea023bb039e31c6053f2bdfef
[ "MIT" ]
46
2020-08-13T14:52:53.000Z
2021-06-08T15:26:40.000Z
bot/checks/attributes.py
Fidge123/DSAbot
7491c90ca3ecd30ea023bb039e31c6053f2bdfef
[ "MIT" ]
null
null
null
class Attributes(list): def __str__(self) -> str: return "".join("{:>4}".format(attr) for attr in self)
29
61
0.603448
16
116
4.125
0.8125
0
0
0
0
0
0
0
0
0
0
0.01087
0.206897
116
3
62
38.666667
0.706522
0
0
0
0
0
0.043103
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
4