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
49206ede4930182521d4ce9c6b49dda8aef894c6
97
py
Python
cash/settings/product.py
anshengme/cash
7b24338ea2f3f92fe82f668335bb2eb6e6479f9e
[ "MIT" ]
18
2019-01-04T01:58:03.000Z
2021-06-25T09:03:58.000Z
cash/settings/product.py
anshengme/cash
7b24338ea2f3f92fe82f668335bb2eb6e6479f9e
[ "MIT" ]
3
2019-02-26T16:24:40.000Z
2020-04-04T10:41:38.000Z
cash/settings/product.py
anshengme/cash
7b24338ea2f3f92fe82f668335bb2eb6e6479f9e
[ "MIT" ]
5
2019-02-26T15:32:52.000Z
2019-04-22T09:35:27.000Z
from .base import * DEBUG = False SECRET_KEY = os.environ.get('DJANGO_SECRET_KEY', SECRET_KEY)
16.166667
60
0.752577
15
97
4.6
0.733333
0.391304
0
0
0
0
0
0
0
0
0
0
0.134021
97
5
61
19.4
0.821429
0
0
0
0
0
0.175258
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
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
4924946192a3e01f6cc5df5f86d6a37b39e0f8e7
94
py
Python
flights/urls.py
olubiyiontheweb/travelworld
ca9d2206108bd59fd222e384bcaab7efd6832e24
[ "MIT" ]
null
null
null
flights/urls.py
olubiyiontheweb/travelworld
ca9d2206108bd59fd222e384bcaab7efd6832e24
[ "MIT" ]
null
null
null
flights/urls.py
olubiyiontheweb/travelworld
ca9d2206108bd59fd222e384bcaab7efd6832e24
[ "MIT" ]
null
null
null
from django.urls import path from flights import views urlpatterns = [path("", views.index)]
18.8
37
0.755319
13
94
5.461538
0.692308
0
0
0
0
0
0
0
0
0
0
0
0.138298
94
4
38
23.5
0.876543
0
0
0
0
0
0
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
495701e22432966b0a7ba235c137600209fc7f19
578
py
Python
website/error.py
TWoolhouse/Libraries
26079ed387cb800cb97f20980720ae094008c7bf
[ "MIT" ]
1
2020-10-11T15:34:56.000Z
2020-10-11T15:34:56.000Z
website/error.py
TWoolhouse/Libraries
26079ed387cb800cb97f20980720ae094008c7bf
[ "MIT" ]
null
null
null
website/error.py
TWoolhouse/Libraries
26079ed387cb800cb97f20980720ae094008c7bf
[ "MIT" ]
null
null
null
class WebsiteBaseError(Exception): pass class TreeTraversal(WebsiteBaseError): def __init__(self, tree, request, segment, req=None): super().__init__() self.tree, self.request, self.segment, self.req = tree, request, segment, req def __str__(self) -> str: return f"{self.tree} > {self.request}[{self.segment}] {'' if self.req is None else self.req}" class BufferRead(WebsiteBaseError): def __init__(self, buffer): super().__init__() self.buffer = buffer def __str__(self) -> str: return f"{self.buffer}"
27.52381
101
0.647059
69
578
5.072464
0.318841
0.091429
0.131429
0.154286
0.297143
0.297143
0.137143
0
0
0
0
0
0.216263
578
20
102
28.9
0.772627
0
0
0.285714
0
0.071429
0.16609
0.051903
0
0
0
0
0
1
0.285714
false
0.071429
0
0.142857
0.642857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
1
1
0
0
4
496df5ac2b816d0d93ed95d0c8119c0af62b55d9
91
py
Python
controller/ORCA_CLEAN/execute.py
nestorcalvo/Backend-AudioClean
7edb373c518193bc5643e9524d78d9ba32163b3f
[ "MIT" ]
null
null
null
controller/ORCA_CLEAN/execute.py
nestorcalvo/Backend-AudioClean
7edb373c518193bc5643e9524d78d9ba32163b3f
[ "MIT" ]
null
null
null
controller/ORCA_CLEAN/execute.py
nestorcalvo/Backend-AudioClean
7edb373c518193bc5643e9524d78d9ba32163b3f
[ "MIT" ]
null
null
null
from predict import predict if __name__ == "__main__": # predict() print("A ")
15.166667
27
0.604396
10
91
4.7
0.8
0
0
0
0
0
0
0
0
0
0
0
0.263736
91
5
28
18.2
0.701493
0.098901
0
0
0
0
0.1625
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
496f6fa945313ae8eb812d0256476b19fbb908f6
174
py
Python
fperms_iscore/main.py
druids/django-fperms-iscore
8e919cdc70ed57e0eb6407469de9ef2441ae06ad
[ "MIT" ]
1
2019-10-07T12:40:38.000Z
2019-10-07T12:40:38.000Z
fperms_iscore/main.py
druids/django-fperms-iscore
8e919cdc70ed57e0eb6407469de9ef2441ae06ad
[ "MIT" ]
3
2019-08-09T14:10:21.000Z
2022-02-01T13:48:01.000Z
fperms_iscore/main.py
druids/django-fperms-iscore
8e919cdc70ed57e0eb6407469de9ef2441ae06ad
[ "MIT" ]
null
null
null
from is_core.main import DjangoUiRestCore from fperms_iscore.mixins import PermCoreMixin class PermDjangoUiRestCore(PermCoreMixin, DjangoUiRestCore): abstract = True
19.333333
60
0.833333
18
174
7.944444
0.777778
0
0
0
0
0
0
0
0
0
0
0
0.126437
174
8
61
21.75
0.940789
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
49706257061fd5cb42e071e2e21ada1c26eefe8c
593
py
Python
graviteeio_cli/commands/apim/apis/definition.py
Shaker5191/graviteeio-cli
318748bb8e631743ea58afaee24333249ca3d227
[ "Apache-2.0" ]
null
null
null
graviteeio_cli/commands/apim/apis/definition.py
Shaker5191/graviteeio-cli
318748bb8e631743ea58afaee24333249ca3d227
[ "Apache-2.0" ]
null
null
null
graviteeio_cli/commands/apim/apis/definition.py
Shaker5191/graviteeio-cli
318748bb8e631743ea58afaee24333249ca3d227
[ "Apache-2.0" ]
null
null
null
import click from .definition_group.apply import apply from .definition_group.diff import diff from .definition_group.generate import generate from .definition_group.create import create # from .definition_group.lint import lint @click.group(short_help="Manage API definition configuration") @click.pass_context def definition(ctx): """This group allow handling API definition commands from templating and value files""" pass definition.add_command(apply) definition.add_command(diff) definition.add_command(create) definition.add_command(generate) # definition.add_command(lint)
26.954545
91
0.819562
79
593
6
0.367089
0.147679
0.200422
0
0
0
0
0
0
0
0
0
0.104553
593
21
92
28.238095
0.892655
0.254637
0
0
1
0
0.08046
0
0
0
0
0
0
1
0.076923
false
0.153846
0.384615
0
0.461538
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
1
0
0
0
null
0
0
0
0
0
0
0
1
1
0
0
0
0
4
49788254641401f0ac3bea81c52abecf9425c9b7
58
py
Python
test/__init__.py
stungkit/tfidf_matcher
24182504d21f1eb978839b700f1c402c6288df2f
[ "MIT" ]
13
2020-02-24T18:29:15.000Z
2021-12-28T09:41:35.000Z
test/__init__.py
stungkit/tfidf_matcher
24182504d21f1eb978839b700f1c402c6288df2f
[ "MIT" ]
null
null
null
test/__init__.py
stungkit/tfidf_matcher
24182504d21f1eb978839b700f1c402c6288df2f
[ "MIT" ]
3
2020-07-21T04:32:45.000Z
2021-10-21T11:00:56.000Z
# AUTHOR: Louis Tsiattalou # DESCRIPTION: Init for Tests.
19.333333
30
0.758621
7
58
6.285714
1
0
0
0
0
0
0
0
0
0
0
0
0.155172
58
2
31
29
0.897959
0.913793
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
498724366b10f885fa79f500eaf773989a21c6f1
358
py
Python
tests/test_skeleton_says.py
thomascobb/skeleton-says
e2ea189e075a0847a6679dc066bad47ced5d397a
[ "Apache-2.0" ]
null
null
null
tests/test_skeleton_says.py
thomascobb/skeleton-says
e2ea189e075a0847a6679dc066bad47ced5d397a
[ "Apache-2.0" ]
null
null
null
tests/test_skeleton_says.py
thomascobb/skeleton-says
e2ea189e075a0847a6679dc066bad47ced5d397a
[ "Apache-2.0" ]
null
null
null
from skeleton_says import say skeleton_saying_hello = r""" ------- ( Hello ) ------- \ \ .-. \(o.o) |=| __|__ //.=|=.\\ // .=|=. \\ \\ .=|=. // \\(_=_)// (:| |:) || || () () || || || || l42 ==' '== """ def test_say_command_says_hello() -> None: assert say.say("Hello") == skeleton_saying_hello
13.259259
52
0.379888
27
358
4.481481
0.555556
0.231405
0.31405
0
0
0
0
0
0
0
0
0.00813
0.312849
358
26
53
13.769231
0.48374
0
0
0.304348
0
0
0.564246
0
0
0
0
0
0.043478
1
0.043478
false
0
0.043478
0
0.086957
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
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
498e87a7732f2915dd699629baa71c985e250298
143
py
Python
app/sett.py
AndreyKaBelka/MoneySaver
5ad2bc60379aeb0b02e71760e22b260bf29982e2
[ "Apache-2.0" ]
null
null
null
app/sett.py
AndreyKaBelka/MoneySaver
5ad2bc60379aeb0b02e71760e22b260bf29982e2
[ "Apache-2.0" ]
3
2020-12-12T23:33:36.000Z
2020-12-12T23:35:54.000Z
app/sett.py
AndreyKaBelka/MoneySaver
5ad2bc60379aeb0b02e71760e22b260bf29982e2
[ "Apache-2.0" ]
null
null
null
class Settings: BOT_KEY = "" HOST_NAME = "127.0.0.1" USER_NAME = "root" USER_PASS = "Andrey171200" SQL_NAME = "moneysaver"
20.428571
30
0.608392
19
143
4.315789
0.789474
0
0
0
0
0
0
0
0
0
0
0.113208
0.258741
143
6
31
23.833333
0.660377
0
0
0
0
0
0.244755
0
0
0
0
0
0
1
0
false
0.166667
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
0
0
1
0
0
1
0
0
4
49a17ebec39db4cc9cf78ab25d40d4459000d689
264
py
Python
AiSD_03/Zadanie_7.py
DLQuake/Algorytmy_i_struktury_danych
210d0b4e868e5cc9d6aa730a2297d8074e4d52a1
[ "MIT" ]
null
null
null
AiSD_03/Zadanie_7.py
DLQuake/Algorytmy_i_struktury_danych
210d0b4e868e5cc9d6aa730a2297d8074e4d52a1
[ "MIT" ]
null
null
null
AiSD_03/Zadanie_7.py
DLQuake/Algorytmy_i_struktury_danych
210d0b4e868e5cc9d6aa730a2297d8074e4d52a1
[ "MIT" ]
null
null
null
# Zaimplementować funkcję n_sums(n: int) -> listint, która zwróci wszystkie n-cyfrowe liczby o takich samych sumach na indeksach parzystych i nieparzystych. Przykładowo, dla 3 cyfr będą to liczby m.in. 198, 220, 891, 990 def n_sums(n: int): print(n_sums(3))
44
220
0.75
44
264
4.431818
0.772727
0.076923
0.061538
0.092308
0
0
0
0
0
0
0
0.063348
0.162879
264
6
221
44
0.819005
0.825758
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
1
0
4
b8fe991a0b450794e796f906cb32a0c3c5911676
77
py
Python
pyrepl/iconsole.py
thinkle/snippets
a19fd709fc618cee9d76b7481b834c3e0d4ed397
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
pyrepl/iconsole.py
thinkle/snippets
a19fd709fc618cee9d76b7481b834c3e0d4ed397
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
pyrepl/iconsole.py
thinkle/snippets
a19fd709fc618cee9d76b7481b834c3e0d4ed397
[ "BSD-2-Clause-FreeBSD" ]
1
2019-08-28T22:06:53.000Z
2019-08-28T22:06:53.000Z
from IPython.Shell import IPShellEmbed ipshell = IPShellEmbed() ipshell()
11
38
0.779221
8
77
7.5
0.75
0.633333
0
0
0
0
0
0
0
0
0
0
0.142857
77
6
39
12.833333
0.909091
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
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
7707130bae4f273be796d5022abf873f7542914d
89
py
Python
cookies/apps.py
hamishwillee/http_tester_site
5c9fa6840c7931f4a7dbd669616cb7b06e29c068
[ "MIT" ]
null
null
null
cookies/apps.py
hamishwillee/http_tester_site
5c9fa6840c7931f4a7dbd669616cb7b06e29c068
[ "MIT" ]
8
2021-03-19T10:14:39.000Z
2022-03-12T00:24:41.000Z
cookies/apps.py
ADpDinamo/site
d7313cd6c151a381ccc803b81768673587cb8d45
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig class CookiesConfig(AppConfig): name = 'cookies'
14.833333
33
0.752809
10
89
6.7
0.9
0
0
0
0
0
0
0
0
0
0
0
0.168539
89
5
34
17.8
0.905405
0
0
0
0
0
0.078652
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
770d1178d917aa0b3ade69999920d0f07b37f63c
447
py
Python
backend/src/util/observable.py
r2binx/heimboard
42059d367e5b15c4910e61f4be0e3b462da8d5f7
[ "MIT" ]
6
2021-12-20T21:36:03.000Z
2022-03-30T16:04:54.000Z
backend/src/util/observable.py
r2binx/heimboard
42059d367e5b15c4910e61f4be0e3b462da8d5f7
[ "MIT" ]
16
2021-12-20T20:14:43.000Z
2022-01-26T12:43:59.000Z
backend/src/util/observable.py
r2binx/heimboard
42059d367e5b15c4910e61f4be0e3b462da8d5f7
[ "MIT" ]
1
2022-01-25T20:59:35.000Z
2022-01-25T20:59:35.000Z
from typing import List class Observable: _observers: List = [] def __init__(self): self._observers = [] def subscribe(self, observer): self._observers.append(observer) def notify_observers(self, *args, **kwargs): for obs in self._observers: obs.notify(self, *args, **kwargs) def unsubscribe(self, observer): self._observers.remove(observer) def start(self): pass
20.318182
48
0.621924
49
447
5.469388
0.469388
0.19403
0.119403
0.186567
0
0
0
0
0
0
0
0
0.268456
447
21
49
21.285714
0.819572
0
0
0
0
0
0
0
0
0
0
0
0
1
0.357143
false
0.071429
0.071429
0
0.571429
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
4
7738eed30266f468e9290a38da24497ebf1d541d
357
py
Python
project/Fast/django/decorators/auth.py
fael07/DRF-Project
f65b4177e56e7209d2369ba9d6d81bfe00321052
[ "MIT" ]
null
null
null
project/Fast/django/decorators/auth.py
fael07/DRF-Project
f65b4177e56e7209d2369ba9d6d81bfe00321052
[ "MIT" ]
null
null
null
project/Fast/django/decorators/auth.py
fael07/DRF-Project
f65b4177e56e7209d2369ba9d6d81bfe00321052
[ "MIT" ]
null
null
null
from ...forms.checks import check_is_logged from django.shortcuts import redirect def no_login_required(view_function): def exec_view_function(*args, **kwargs): request = args[0] if check_is_logged(request): return redirect('/') return view_function(*args, **kwargs) return exec_view_function
23.8
47
0.661064
43
357
5.209302
0.534884
0.214286
0.116071
0.196429
0
0
0
0
0
0
0
0.003731
0.2493
357
14
48
25.5
0.83209
0
0
0
0
0
0.002801
0
0
0
0
0
0
1
0.222222
false
0
0.222222
0
0.777778
0
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
773a2176b2ba4a1a9a4e1bd585d65e2d15549d01
226
py
Python
HackerRank/CtCI/array_left_rotation.py
mahasak/Practice
7ed125087b977b034161157830b8e415d52b6ed7
[ "Unlicense" ]
null
null
null
HackerRank/CtCI/array_left_rotation.py
mahasak/Practice
7ed125087b977b034161157830b8e415d52b6ed7
[ "Unlicense" ]
null
null
null
HackerRank/CtCI/array_left_rotation.py
mahasak/Practice
7ed125087b977b034161157830b8e415d52b6ed7
[ "Unlicense" ]
null
null
null
def array_left_rotation(a, n, k): return a[k:] + a[0:k] n, k = map(int, raw_input().strip().split(' ')) a = map(int, raw_input().strip().split(' ')) answer = array_left_rotation(a, n, k); print ' '.join(map(str,answer))
25.111111
47
0.610619
40
226
3.3
0.475
0.045455
0.257576
0.272727
0.666667
0.666667
0
0
0
0
0
0.005181
0.146018
226
8
48
28.25
0.678756
0
0
0
0
0
0.013333
0
0
0
0
0
0
0
null
null
0
0
null
null
0.166667
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
4
773e5f3762c89c880f8d622fb33299a5f198d29d
130
bzl
Python
test/external_repo/repo.bzl
Vertexwahn/depend_on_what_you_use
480732677a74fb7033848004d4d5015af0ad36c5
[ "MIT" ]
null
null
null
test/external_repo/repo.bzl
Vertexwahn/depend_on_what_you_use
480732677a74fb7033848004d4d5015af0ad36c5
[ "MIT" ]
null
null
null
test/external_repo/repo.bzl
Vertexwahn/depend_on_what_you_use
480732677a74fb7033848004d4d5015af0ad36c5
[ "MIT" ]
null
null
null
def load_external_repo(): native.local_repository( name = "ext_repo", path = "test/external_repo/repo", )
21.666667
41
0.615385
15
130
5
0.733333
0.32
0
0
0
0
0
0
0
0
0
0
0.261538
130
5
42
26
0.78125
0
0
0
0
0
0.238462
0.176923
0
0
0
0
0
1
0.2
true
0
0
0
0.2
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
774ee32b7bd61777145b97c33929e59c467687c5
64
py
Python
pyCameras/__init__.py
imr-luh/pyCameras
30fc220022b0562f5244d9fd5f436b8630abe4cd
[ "MIT" ]
2
2019-05-10T08:43:38.000Z
2019-05-17T16:00:13.000Z
pyCameras/__init__.py
imr-luh/pyCameras
30fc220022b0562f5244d9fd5f436b8630abe4cd
[ "MIT" ]
null
null
null
pyCameras/__init__.py
imr-luh/pyCameras
30fc220022b0562f5244d9fd5f436b8630abe4cd
[ "MIT" ]
2
2020-03-10T17:15:08.000Z
2020-04-24T09:02:21.000Z
__version__ = '0.0.1' from . import utils from .utils import *
12.8
21
0.6875
10
64
4
0.6
0
0
0
0
0
0
0
0
0
0
0.057692
0.1875
64
4
22
16
0.711538
0
0
0
0
0
0.078125
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
62291b009a583ae54f27aedb9899f9e284646d88
598
py
Python
Classes/ex17.py
oDallas/PythomBR
7d3b3bcefe05ce483f6aa664bbc4962a1e0fd285
[ "MIT" ]
1
2019-06-02T18:59:18.000Z
2019-06-02T18:59:18.000Z
Classes/ex17.py
oDallas/PythonBR
7d3b3bcefe05ce483f6aa664bbc4962a1e0fd285
[ "MIT" ]
null
null
null
Classes/ex17.py
oDallas/PythonBR
7d3b3bcefe05ce483f6aa664bbc4962a1e0fd285
[ "MIT" ]
null
null
null
"""" Crie uma Fazenda de Bichinhos instanciando vários objetos bichinho e mantendo o controle deles através de uma lista. Imite o funcionamento do programa básico, mas ao invés de exigis que o usuário tome conta de um único bichinho, exija que ele tome conta da fazenda inteira. Cada opção do menu deveria permitir que o usuário executasse uma ação para todos os bichinhos (alimentar todos os bichinhos, brincar com todos os bichinhos, ou ouvir a todos os bichinhos). Para tornar o programa mais interessante, dê para cada bichinho um nivel inicial aleatório de fome e tédio. """ # todo: terminar
59.8
119
0.797659
97
598
4.917526
0.639175
0.0587
0.134172
0
0
0
0
0
0
0
0
0
0.168896
598
9
120
66.444444
0.959759
0.983278
0
null
0
null
0
0
null
0
0
0.222222
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
1
0
0
0
1
0
0
0
0
0
0
4
626c09d5e7442d6e48e408bb35182589e7d6f723
87
py
Python
tests/periodicities/Business_Day/Cycle_Business_Day_200_B_24.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
tests/periodicities/Business_Day/Cycle_Business_Day_200_B_24.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
1
2019-11-30T23:39:38.000Z
2019-12-01T04:34:35.000Z
tests/periodicities/Business_Day/Cycle_Business_Day_200_B_24.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
import pyaf.tests.periodicities.period_test as per per.buildModel((24 , 'B' , 200));
17.4
50
0.724138
13
87
4.769231
0.923077
0
0
0
0
0
0
0
0
0
0
0.065789
0.126437
87
4
51
21.75
0.75
0
0
0
0
0
0.011628
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
626cc4db6e624b921fb50a7db02432aa617a9dbd
215
py
Python
shell/response.py
YorkSu/deepgo
2f22ad50d2958a4f1c7dfc0af6fcd448f5e7e18d
[ "Apache-2.0" ]
null
null
null
shell/response.py
YorkSu/deepgo
2f22ad50d2958a4f1c7dfc0af6fcd448f5e7e18d
[ "Apache-2.0" ]
null
null
null
shell/response.py
YorkSu/deepgo
2f22ad50d2958a4f1c7dfc0af6fcd448f5e7e18d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Response ====== Response Class """ from deepgo.core.kernel.popo import VO class Response(VO): def __init__(self): self.code = 0 def json(self): return self.__dict__
11.315789
38
0.609302
28
215
4.392857
0.714286
0
0
0
0
0
0
0
0
0
0
0.011976
0.223256
215
18
39
11.944444
0.724551
0.251163
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.166667
0.166667
0.833333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
62781a4622485a3c3996f4345f375edf051908c6
83
py
Python
backend/bios/apps.py
juanrmv/torre-test
39c4f8928f6f51e462975ef5f89c7a9b5bb05733
[ "Apache-2.0" ]
null
null
null
backend/bios/apps.py
juanrmv/torre-test
39c4f8928f6f51e462975ef5f89c7a9b5bb05733
[ "Apache-2.0" ]
null
null
null
backend/bios/apps.py
juanrmv/torre-test
39c4f8928f6f51e462975ef5f89c7a9b5bb05733
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig class BiosConfig(AppConfig): name = 'bios'
13.833333
33
0.73494
10
83
6.1
0.9
0
0
0
0
0
0
0
0
0
0
0
0.180723
83
5
34
16.6
0.897059
0
0
0
0
0
0.048193
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
656dd6e36b81c8ae6c5f6face7c1c54668fb5ff1
307
py
Python
stix_shifter_modules/secretserver/stix_transmission/delete_connector.py
grimmjow8/stix-shifter
7d252fc241a606f0141ed50d64368d8a5e7e5c5a
[ "Apache-2.0" ]
129
2019-10-09T17:13:03.000Z
2022-03-03T08:25:46.000Z
stix_shifter_modules/secretserver/stix_transmission/delete_connector.py
grimmjow8/stix-shifter
7d252fc241a606f0141ed50d64368d8a5e7e5c5a
[ "Apache-2.0" ]
415
2019-10-03T14:29:20.000Z
2022-03-31T18:23:41.000Z
stix_shifter_modules/secretserver/stix_transmission/delete_connector.py
grimmjow8/stix-shifter
7d252fc241a606f0141ed50d64368d8a5e7e5c5a
[ "Apache-2.0" ]
178
2019-10-08T22:18:48.000Z
2022-03-21T11:04:05.000Z
from stix_shifter_utils.modules.base.stix_transmission.base_delete_connector import BaseDeleteConnector class DeleteConnector(BaseDeleteConnector): def __init__(self, api_client): self.api_client = api_client def delete_query_connection(self, search_id): return {"success": True}
30.7
103
0.781759
36
307
6.25
0.694444
0.12
0.115556
0
0
0
0
0
0
0
0
0
0.14658
307
9
104
34.111111
0.858779
0
0
0
0
0
0.022801
0
0
0
0
0
0
1
0.333333
false
0
0.166667
0.166667
0.833333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
657895d9e23f4c721777cf7c3eb7603b0f1ecfd7
199
py
Python
app/gunicorn_settings.py
jsonbinit/jsonbinit-api
babbf16f1fafe913d9fdb2646cb7a9542ec19355
[ "MIT" ]
3
2020-06-24T14:55:51.000Z
2020-06-25T23:12:13.000Z
app/gunicorn_settings.py
jsonbinit/jsonbinit-api
babbf16f1fafe913d9fdb2646cb7a9542ec19355
[ "MIT" ]
3
2020-04-23T10:39:25.000Z
2020-06-24T15:22:25.000Z
app/gunicorn_settings.py
jsonbinit/jsonbinit-api
babbf16f1fafe913d9fdb2646cb7a9542ec19355
[ "MIT" ]
null
null
null
import multiprocessing import os bind = "{0}:{1}".format(os.environ.get('HOST', '0.0.0.0'), os.environ.get('PORT', '8080')) workers = os.environ.get('WORKERS', multiprocessing.cpu_count() * 2 + 1)
28.428571
90
0.668342
31
199
4.258065
0.516129
0.204545
0.272727
0
0
0
0
0
0
0
0
0.067039
0.100503
199
6
91
33.166667
0.670391
0
0
0
0
0
0.165829
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
65990aa07c9374074643ecde94fe1aa073f34786
4,310
py
Python
tests/test_schema.py
LeafyLappa/starlette-jsonapi
1cd7268fe78983c0203e4f65549f974d3f5d968f
[ "MIT" ]
16
2020-07-05T18:12:41.000Z
2022-03-11T21:12:17.000Z
tests/test_schema.py
LeafyLappa/starlette-jsonapi
1cd7268fe78983c0203e4f65549f974d3f5d968f
[ "MIT" ]
25
2020-07-04T17:06:40.000Z
2021-08-18T09:24:30.000Z
tests/test_schema.py
LeafyLappa/starlette-jsonapi
1cd7268fe78983c0203e4f65549f974d3f5d968f
[ "MIT" ]
3
2020-07-10T14:17:44.000Z
2021-08-12T11:43:45.000Z
import pytest from marshmallow_jsonapi import fields from starlette.applications import Starlette from starlette_jsonapi.resource import BaseResource from starlette_jsonapi.schema import JSONAPISchema def test_schema_urls(app: Starlette): class TResource(BaseResource): type_ = 'test-resource' TResource.register_routes(app, '/') class TSchema(JSONAPISchema): id = fields.Str(dump_only=True) name = fields.Str() class Meta: type_ = 'test-resource' self_route = 'test-resource:get' self_route_kwargs = {'id': '<id>'} self_route_many = 'test-resource:get_many' rv = TSchema().dump(dict(id='foo', name='foo-name')) assert rv == { 'data': { 'id': 'foo', 'type': 'test-resource', 'attributes': { 'name': 'foo-name', } } } rv = TSchema(app=app).dump(dict(id='foo', name='foo-name')) assert rv == { 'data': { 'id': 'foo', 'type': 'test-resource', 'attributes': { 'name': 'foo-name', }, 'links': { 'self': '/test-resource/foo', }, }, 'links': { 'self': '/test-resource/foo', }, } def test_prefixed_schema_urls(app: Starlette): class TResource(BaseResource): type_ = 'test-resource' TResource.register_routes(app, '/') class TSchema(JSONAPISchema): id = fields.Str(dump_only=True) name = fields.Str() class Meta: type_ = 'test-resource' self_route = 'test-resource:get' self_route_kwargs = {'id': '<id>'} self_route_many = 'test-resource:get_many' app.url_prefix = 'https://example.com' rv = TSchema(app=app).dump(dict(id='foo', name='foo-name')) assert rv == { 'data': { 'id': 'foo', 'type': 'test-resource', 'attributes': { 'name': 'foo-name', }, 'links': { 'self': 'https://example.com/test-resource/foo', }, }, 'links': { 'self': 'https://example.com/test-resource/foo', }, } def test_schema_raises_wrong_meta_parameters(): with pytest.raises(ValueError) as exc: class TSchema(JSONAPISchema): id = fields.Str(dump_only=True) name = fields.Str() class Meta: type_ = 'test-resource' self_url = 'foo' assert str(exc.value) == 'Use `self_route` instead of `self_url` when using the Starlette extension.' with pytest.raises(ValueError) as exc: class TSchema2(JSONAPISchema): id = fields.Str(dump_only=True) name = fields.Str() class Meta: type_ = 'test-resource' self_url_kwargs = 'foo' assert str(exc.value) == 'Use `self_route_kwargs` instead of `self_url_kwargs` when using the Starlette extension.' with pytest.raises(ValueError) as exc: class TSchema3(JSONAPISchema): id = fields.Str(dump_only=True) name = fields.Str() class Meta: type_ = 'test-resource' self_url_many = 'foo' assert str(exc.value) == 'Use `self_route_many` instead of `self_url_many` when using the Starlette extension.' with pytest.raises(ValueError) as exc: class TSchema4(JSONAPISchema): id = fields.Str(dump_only=True) name = fields.Str() class Meta: type_ = 'test-resource' self_route_kwargs = 'foo' assert str(exc.value) == 'Must specify `self_route` Meta option when `self_route_kwargs` is specified.' def test_schema_excludes_unknown(): class TSchema(JSONAPISchema): id = fields.Str(dump_only=True) name = fields.Str() class Meta: type_ = 'test-resource' d = TSchema().loads('{"data": {"type": "test-resource", "id": "foo", "attributes": {"unknown": "bar"}}}') assert d == {} d = TSchema().loads('{"data": {"type": "test-resource", "id": "foo", "attributes": {"name": "bar"}, "unknown": 1}}') assert d == {'name': 'bar'}
30.567376
120
0.542691
460
4,310
4.93913
0.165217
0.116197
0.098592
0.073944
0.784771
0.761444
0.747359
0.733715
0.661092
0.661092
0
0.001359
0.316937
4,310
140
121
30.785714
0.77038
0
0
0.66087
0
0.017391
0.247564
0.010209
0
0
0
0
0.078261
1
0.034783
false
0
0.043478
0
0.356522
0
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
65a0da8d520c64ade98d09bb5d2663a8e3d3134d
102
py
Python
tftool/access/__init__.py
antsfamily/tftool
0de72be13b3ca43e8a95c8be726c55841b389973
[ "MIT" ]
null
null
null
tftool/access/__init__.py
antsfamily/tftool
0de72be13b3ca43e8a95c8be726c55841b389973
[ "MIT" ]
null
null
null
tftool/access/__init__.py
antsfamily/tftool
0de72be13b3ca43e8a95c8be726c55841b389973
[ "MIT" ]
null
null
null
from __future__ import absolute_import from .load import load_ckpt from .save import save_ckpt
17
39
0.794118
15
102
4.933333
0.466667
0
0
0
0
0
0
0
0
0
0
0
0.186275
102
5
40
20.4
0.891566
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
65aa8588c528dddf9da0b75de2f8177f0b66e0ef
1,043
py
Python
Go6/policy_probabilistic_player.py
skyu0221/cmput496
ad1e59805ab49324ec1e387ddeaf3dd3202518bc
[ "MIT" ]
null
null
null
Go6/policy_probabilistic_player.py
skyu0221/cmput496
ad1e59805ab49324ec1e387ddeaf3dd3202518bc
[ "MIT" ]
null
null
null
Go6/policy_probabilistic_player.py
skyu0221/cmput496
ad1e59805ab49324ec1e387ddeaf3dd3202518bc
[ "MIT" ]
null
null
null
#!/usr/bin/python3 from board_util import GoBoardUtil from gtp_connection import GtpConnection class PolicyPlayer(object): """ Plays according to the Go4 playout policy. No simulations, just random choice among current policy moves """ version = 0.1 name = "Policy Probabilistic Player" def __init__(self): pass def get_move(self, board, toplay): return GoBoardUtil.generate_probabilistic( \ GoBoardUtil.generate_prob_playout_moves( board ) ) def policy(self,board,color): return self.get_move( board, color ) def run(self, board, color, print_info=False): pass def reset(self): pass def update(self, move): pass def get_properties(self): return dict( version=self.version, name=self.__class__.__name__, ) def createPolicyPlayer(): con = GtpConnection(PolicyPlayer()) con.start_connection() if __name__=='__main__': createPolicyPlayer()
22.673913
80
0.633749
113
1,043
5.575221
0.522124
0.044444
0.034921
0
0
0
0
0
0
0
0
0.005333
0.28092
1,043
45
81
23.177778
0.834667
0.11697
0
0.142857
0
0
0.039238
0
0
0
0
0
0
1
0.285714
false
0.142857
0.071429
0.107143
0.571429
0.035714
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
65b51ba1b7053c61b8b8e0893b561770fa90e439
22
py
Python
python/testData/keywordCompletion/noneInArgList.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/keywordCompletion/noneInArgList.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/keywordCompletion/noneInArgList.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
def foo(x=Non<caret>):
22
22
0.681818
5
22
3
1
0
0
0
0
0
0
0
0
0
0
0
0.045455
22
1
22
22
0.714286
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
65c34c95b750096053aaef54a2b648be5c44772c
230
py
Python
server.py
Peopple-Shopping-App/mockserver
c38c3f325e44f4eaba39cdbe24544e3181307218
[ "MIT" ]
1
2021-07-23T03:43:19.000Z
2021-07-23T03:43:19.000Z
server.py
Peopple-Shopping-App/mockserver
c38c3f325e44f4eaba39cdbe24544e3181307218
[ "MIT" ]
null
null
null
server.py
Peopple-Shopping-App/mockserver
c38c3f325e44f4eaba39cdbe24544e3181307218
[ "MIT" ]
null
null
null
import uvicorn if __name__ == '__main__': <<<<<<< HEAD uvicorn.run('app.main:app', host='0.0.0.0', port=80) ======= uvicorn.run('app.main:app', host='0.0.0.0', port=2323) >>>>>>> c583e3d93c9b7f8e76ce1d676a24740b62ef3552
23
58
0.630435
31
230
4.419355
0.451613
0.087591
0.087591
0.248175
0.467153
0.467153
0.467153
0.467153
0.467153
0.467153
0
0.197044
0.117391
230
9
59
25.555556
0.477833
0
0
0
0
0
0.2
0
0
0
0
0
0
0
null
null
0
0.142857
null
null
0
0
0
0
null
0
0
1
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
1
0
0
0
0
0
0
0
0
4
65c8b9280ebaf25f0fb4b1658671be5a8f2ed641
228
py
Python
apps/news/forms.py
LishenZz/my_project
c2ac8199efb467e303d343ea34ed1969b64280d7
[ "Apache-2.0" ]
null
null
null
apps/news/forms.py
LishenZz/my_project
c2ac8199efb467e303d343ea34ed1969b64280d7
[ "Apache-2.0" ]
null
null
null
apps/news/forms.py
LishenZz/my_project
c2ac8199efb467e303d343ea34ed1969b64280d7
[ "Apache-2.0" ]
null
null
null
#Author:Li Shen from django import forms from apps.forms import FormMixin class PublicCommentForm(forms.Form,FormMixin): #CharField字长在form可不定义,但是在model模型中必须定义 content=forms.CharField() news_id=forms.IntegerField()
22.8
46
0.79386
26
228
6.923077
0.730769
0
0
0
0
0
0
0
0
0
0
0
0.127193
228
9
47
25.333333
0.904523
0.219298
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.4
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
02b0025b6adb156b789fef5aff0bf34cd7804353
87
py
Python
sportstrackeranalyzer/plugin_handler/__init__.py
XeBoris/SportsTrackerAnalyzer
f211a9120b9ba91bb04b9742c80d0de7b4143f78
[ "MIT" ]
1
2021-02-12T08:00:34.000Z
2021-02-12T08:00:34.000Z
sportstrackeranalyzer/plugin_handler/__init__.py
XeBoris/SportsTrackerAnalyzer
f211a9120b9ba91bb04b9742c80d0de7b4143f78
[ "MIT" ]
null
null
null
sportstrackeranalyzer/plugin_handler/__init__.py
XeBoris/SportsTrackerAnalyzer
f211a9120b9ba91bb04b9742c80d0de7b4143f78
[ "MIT" ]
null
null
null
from sportstrackeranalyzer.plugins.plugin_simple_distances import Plugin_SimpleDistance
87
87
0.942529
9
87
8.777778
0.888889
0
0
0
0
0
0
0
0
0
0
0
0.034483
87
1
87
87
0.940476
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
02bf002db0ba833a4cef03b49b9c37dba336934d
244
py
Python
dask_ml/model_selection.py
lesteve/dask-ml
0aca19c545be5c27bedcfbab5554b4ba39a6d754
[ "BSD-3-Clause" ]
1
2020-12-01T13:20:05.000Z
2020-12-01T13:20:05.000Z
dask_ml/model_selection.py
lesteve/dask-ml
0aca19c545be5c27bedcfbab5554b4ba39a6d754
[ "BSD-3-Clause" ]
null
null
null
dask_ml/model_selection.py
lesteve/dask-ml
0aca19c545be5c27bedcfbab5554b4ba39a6d754
[ "BSD-3-Clause" ]
null
null
null
"""Utilities for hyperparameter optimization. These estimators will operate in parallel. Their scalability depends on the underlying estimators being used. """ from dask_searchcv.model_selection import GridSearchCV, RandomizedSearchCV # noqa
34.857143
82
0.831967
28
244
7.178571
0.964286
0
0
0
0
0
0
0
0
0
0
0
0.118852
244
6
83
40.666667
0.934884
0.651639
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
02c06f0c429f92d5e5a68c4d5f561cf2b85e43c8
23
py
Python
code/sample_2-1-9.py
KoyanagiHitoshi/AtCoder-Python-Introduction
6d014e333a873f545b4d32d438e57cf428b10b96
[ "MIT" ]
1
2022-03-29T13:50:12.000Z
2022-03-29T13:50:12.000Z
code/sample_2-1-9.py
KoyanagiHitoshi/AtCoder-Python-Introduction
6d014e333a873f545b4d32d438e57cf428b10b96
[ "MIT" ]
null
null
null
code/sample_2-1-9.py
KoyanagiHitoshi/AtCoder-Python-Introduction
6d014e333a873f545b4d32d438e57cf428b10b96
[ "MIT" ]
null
null
null
x = 5 y = 6 print(x*y)
5.75
10
0.478261
7
23
1.571429
0.714286
0
0
0
0
0
0
0
0
0
0
0.125
0.304348
23
3
11
7.666667
0.5625
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
1
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
02ec3adf599332a9c2e8596007821b919933d4a9
167
py
Python
wsgi.py
emilan21/macvert
ac219507a6b20372861667f4ade8084c9902a231
[ "MIT" ]
null
null
null
wsgi.py
emilan21/macvert
ac219507a6b20372861667f4ade8084c9902a231
[ "MIT" ]
null
null
null
wsgi.py
emilan21/macvert
ac219507a6b20372861667f4ade8084c9902a231
[ "MIT" ]
null
null
null
#!/usr/bin/python # mac_convertor.py - Converts mac address from various formats to other formats from macvert.web import app if __name__ == '__main__': app.run()
20.875
79
0.742515
25
167
4.6
0.84
0
0
0
0
0
0
0
0
0
0
0
0.155689
167
7
80
23.857143
0.815603
0.562874
0
0
0
0
0.112676
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
f30618f542da8cbd2c4223847a99725100131374
901
py
Python
hsir/law.py
WenjieZ/wuhan-pneumonia
3d26955daa2deedec57cdd3effb3118531bbea7f
[ "BSD-3-Clause" ]
6
2020-01-26T07:33:41.000Z
2020-02-25T22:15:43.000Z
hsir/law.py
WenjieZ/wuhan-pneumonia
3d26955daa2deedec57cdd3effb3118531bbea7f
[ "BSD-3-Clause" ]
2
2020-02-17T16:12:50.000Z
2020-02-29T21:31:17.000Z
hsir/law.py
WenjieZ/wuhan-pneumonia
3d26955daa2deedec57cdd3effb3118531bbea7f
[ "BSD-3-Clause" ]
1
2020-03-07T00:13:05.000Z
2020-03-07T00:13:05.000Z
from abc import ABCMeta, abstractmethod import numpy as np __all__ = ['Law', 'Bin', 'Poi', 'Gau'] class Law(metaclass=ABCMeta): @staticmethod @abstractmethod def sample(n, d): pass @staticmethod @abstractmethod def loglikely(n, d, k): pass @staticmethod def likelihood(n, d, k): return np.exp(loglikely(n, d, k)) class Bin(Law): def sample(n, d): return np.random.binomial(n, d) def loglikely(n, d, k): return k*np.log(d) + (n-k)*np.log(1-d) class Poi(Law): def sample(n, d): return np.random.poisson(n*d) def loglikely(n, d, k): return k*np.log(n*d) - n*d + k - k*np.log(1+k) # - np.sum(np.log(np.arange(k)+1)) class Gau(Law): def sample(n, d=1): return n * (1 + 0.1*np.random.randn()) def loglikely(n, d, k): return -50 * np.log(k/n)**2
20.022222
89
0.54828
143
901
3.426573
0.258741
0.057143
0.042857
0.122449
0.334694
0.27551
0.232653
0.232653
0.118367
0.118367
0
0.015552
0.286349
901
44
90
20.477273
0.746501
0.035516
0
0.466667
0
0
0.013841
0
0
0
0
0
0
1
0.3
false
0.066667
0.066667
0.233333
0.733333
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
f30707b9e83fba3280f410223a1fd7949422e724
164
py
Python
rpncalc/exceptions.py
newmanrs/rpncalc
8663e5221efd78c12889b6db4eda20821b27d52a
[ "MIT" ]
null
null
null
rpncalc/exceptions.py
newmanrs/rpncalc
8663e5221efd78c12889b6db4eda20821b27d52a
[ "MIT" ]
11
2021-11-10T04:28:51.000Z
2022-02-25T05:19:22.000Z
rpncalc/exceptions.py
newmanrs/rpncalc
8663e5221efd78c12889b6db4eda20821b27d52a
[ "MIT" ]
null
null
null
class RpnCalcError(Exception): """Calculator Generic Exception""" pass class StackDepletedError(RpnCalcError): """ Stack is out of items """ pass
18.222222
39
0.682927
16
164
7
0.75
0
0
0
0
0
0
0
0
0
0
0
0.207317
164
8
40
20.5
0.861538
0.304878
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
0
null
0
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
f30ee9cbdc128ebb414011f1922779899d37a824
77
py
Python
code/abc122_a_01.py
KoyanagiHitoshi/AtCoder
731892543769b5df15254e1f32b756190378d292
[ "MIT" ]
3
2019-08-16T16:55:48.000Z
2021-04-11T10:21:40.000Z
code/abc122_a_01.py
KoyanagiHitoshi/AtCoder
731892543769b5df15254e1f32b756190378d292
[ "MIT" ]
null
null
null
code/abc122_a_01.py
KoyanagiHitoshi/AtCoder
731892543769b5df15254e1f32b756190378d292
[ "MIT" ]
null
null
null
b=input() print("A" if b=="T" else "T" if b=="A" else "G" if b=="C" else "C")
38.5
67
0.506494
19
77
2.052632
0.473684
0.230769
0
0
0
0
0
0
0
0
0
0
0.168831
77
2
67
38.5
0.609375
0
0
0
0
0
0.089744
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
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
b82b18f5c487a5e8f40d5acca12f69514df44f14
590
py
Python
FisherExactTest/__version__.py
Ae-Mc/Fisher
166e3ac68e304ed7418393d6a7717dd6f7032c15
[ "MIT" ]
null
null
null
FisherExactTest/__version__.py
Ae-Mc/Fisher
166e3ac68e304ed7418393d6a7717dd6f7032c15
[ "MIT" ]
null
null
null
FisherExactTest/__version__.py
Ae-Mc/Fisher
166e3ac68e304ed7418393d6a7717dd6f7032c15
[ "MIT" ]
null
null
null
__title__ = "FisherExactTest" __version__ = "1.0.1" __author__ = "Ae-Mc" __author_email__ = "ae_mc@mail.ru" __description__ = "Two tailed Fisher's exact test wrote in pure Python" __url__ = "https://github.com/Ae-Mc/Fisher" __classifiers__ = [ "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Topic :: Utilities" ]
34.705882
71
0.661017
70
590
5.142857
0.642857
0.263889
0.347222
0.361111
0
0
0
0
0
0
0
0.024948
0.184746
590
16
72
36.875
0.723493
0
0
0
0
0
0.679661
0
0
0
0
0
0
1
0
false
0
0
0
0
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
b8522b1cda4c464e1d7c573371d89f13b40ae37b
89
py
Python
todoapi/apps.py
Faysa1/Gestion-Tickets-Taches
eeba92df59c3217d15b02a5bb1ed3c6e673537a4
[ "Apache-2.0" ]
51
2018-12-12T20:18:31.000Z
2022-03-11T20:23:35.000Z
todoapi/apps.py
Faysa1/Gestion-Tickets-Taches
eeba92df59c3217d15b02a5bb1ed3c6e673537a4
[ "Apache-2.0" ]
11
2018-12-17T08:48:07.000Z
2022-03-02T02:54:38.000Z
todoapi/apps.py
Faysa1/Gestion-Tickets-Taches
eeba92df59c3217d15b02a5bb1ed3c6e673537a4
[ "Apache-2.0" ]
29
2018-12-12T20:19:00.000Z
2022-01-18T12:33:21.000Z
from django.apps import AppConfig class TodoapiConfig(AppConfig): name = 'todoapi'
14.833333
33
0.752809
10
89
6.7
0.9
0
0
0
0
0
0
0
0
0
0
0
0.168539
89
5
34
17.8
0.905405
0
0
0
0
0
0.078652
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
b85e66013be32836e47b0a35176f156e7e93f2e2
352
py
Python
utils/tracker.py
emarche/Fashion-MNIST
f8183e33ab7c3df673a60de3b16f2c4c979b89bb
[ "MIT" ]
null
null
null
utils/tracker.py
emarche/Fashion-MNIST
f8183e33ab7c3df673a60de3b16f2c4c979b89bb
[ "MIT" ]
null
null
null
utils/tracker.py
emarche/Fashion-MNIST
f8183e33ab7c3df673a60de3b16f2c4c979b89bb
[ "MIT" ]
null
null
null
import os import numpy as np class Tracker: def __init__(self, seed, model_name): self.save_tag = model_name + '_seed_' + str(seed) self.model_save = "models/" if not os.path.exists(self.model_save): os.makedirs(self.model_save) def save_model(self, model): model.save(self.model_save + self.save_tag + '.h5')
29.333333
76
0.661932
53
352
4.113208
0.433962
0.206422
0.238532
0
0
0
0
0
0
0
0
0.003623
0.215909
352
12
77
29.333333
0.786232
0
0
0
0
0
0.045326
0
0
0
0
0
0
1
0.222222
false
0
0.222222
0
0.555556
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
b865512ce604a1054ccd890643255a1593208d7a
224
py
Python
bootstrap_rmsf/__init__.py
jeeberhardt/bootstrap_rmsf
1487251ffde91d34b7609aec147c0ff99fc7cded
[ "MIT" ]
1
2021-08-06T02:31:32.000Z
2021-08-06T02:31:32.000Z
bootstrap_rmsf/__init__.py
jeeberhardt/bootstrap_rmsf
1487251ffde91d34b7609aec147c0ff99fc7cded
[ "MIT" ]
null
null
null
bootstrap_rmsf/__init__.py
jeeberhardt/bootstrap_rmsf
1487251ffde91d34b7609aec147c0ff99fc7cded
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Jérôme Eberhardt 2018 # Bootstrap RMSF # Author: Jérôme Eberhardt <qksonoe@gmail.com> # # License: MIT from bootstrap_rmsf import Bootstrap_RMSF from utils import plot_rmsf
18.666667
46
0.736607
31
224
5.225806
0.709677
0.240741
0
0
0
0
0
0
0
0
0
0.026178
0.147321
224
11
47
20.363636
0.82199
0.611607
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
b8746c0bb1705159c5c6690183e9699670c24d04
217
bzl
Python
bazel_versions.bzl
pennig/rules_xcodeproj
109ab85a82954ea38f0529eafc291f5ce6f63483
[ "MIT" ]
1
2022-03-31T09:13:24.000Z
2022-03-31T09:13:24.000Z
bazel_versions.bzl
pennig/rules_xcodeproj
109ab85a82954ea38f0529eafc291f5ce6f63483
[ "MIT" ]
null
null
null
bazel_versions.bzl
pennig/rules_xcodeproj
109ab85a82954ea38f0529eafc291f5ce6f63483
[ "MIT" ]
null
null
null
"""Specifies the supported Bazel versions.""" CURRENT_BAZEL_VERSION = "5.0.0" OTHER_BAZEL_VERSIONS = [ "6.0.0-pre.20220223.1", ] SUPPORTED_BAZEL_VERSIONS = [ CURRENT_BAZEL_VERSION, ] + OTHER_BAZEL_VERSIONS
18.083333
45
0.728111
29
217
5.103448
0.482759
0.351351
0.297297
0.391892
0.554054
0.554054
0
0
0
0
0
0.080645
0.142857
217
11
46
19.727273
0.715054
0.179724
0
0
0
0
0.145349
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
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
b8a247344049a96e9c957980e4d29c8b38b429af
21
py
Python
sgqlc/__init__.py
pberthonneau/sgqlc
6fb29d381239ba9256589cf177d236eb79b3f8cc
[ "ISC" ]
null
null
null
sgqlc/__init__.py
pberthonneau/sgqlc
6fb29d381239ba9256589cf177d236eb79b3f8cc
[ "ISC" ]
null
null
null
sgqlc/__init__.py
pberthonneau/sgqlc
6fb29d381239ba9256589cf177d236eb79b3f8cc
[ "ISC" ]
null
null
null
__version__ = '10.0'
10.5
20
0.666667
3
21
3.333333
1
0
0
0
0
0
0
0
0
0
0
0.166667
0.142857
21
1
21
21
0.388889
0
0
0
0
0
0.190476
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
b8b69dfcb1d5f6e006ee8b568536b7b0df129c02
5,521
py
Python
models/Libraries/UnitTest.py
yangshiquan/GraphDialog
5bb1239bf502c8d79c4c888f69c7aff0c02c2928
[ "MIT" ]
26
2020-09-25T02:19:43.000Z
2022-03-27T09:03:34.000Z
models/Libraries/UnitTest.py
yangshiquan/GraphDialog
5bb1239bf502c8d79c4c888f69c7aff0c02c2928
[ "MIT" ]
1
2020-10-28T11:28:35.000Z
2020-10-28T11:28:35.000Z
models/Libraries/UnitTest.py
yangshiquan/GraphDialog
5bb1239bf502c8d79c4c888f69c7aff0c02c2928
[ "MIT" ]
2
2020-12-17T08:49:13.000Z
2021-04-18T13:08:48.000Z
import tensorflow as tf from models.Libraries.BidirectionalGraphEncoder import BidirectionalGraphEncoder from tensorflow.python.ops import array_ops if __name__ == "__main__": # units=2, input_dim=2, edge_types=10, recurrent_size=4 bi_graph_encoder = BidirectionalGraphEncoder(2, 2, 10, 4) # inputs: batch_size=8, max_len=3, embedding_dim=2 # inputs: batch_size*max_len*embedding_dim inputs = tf.convert_to_tensor([[[0.1, 0.2],[0.0, 0.0],[0.0, 0.0]],[[0.1, 0.2],[0.3, 0.4],[0.0, 0.0]],[[0.1, 0.2],[0.3, 0.4],[0.5, 0.6]],[[0.1, 0.2],[0.3, 0.4],[0.5, 0.6]],[[0.1, 0.2],[0.3, 0.4],[0.5, 0.6]],[[0.1, 0.2],[0.3, 0.4],[0.5, 0.6]],[[0.1, 0.2],[0.3, 0.4],[0.5, 0.6]],[[0.1, 0.2],[0.3, 0.4],[0.5, 0.6]]]) # deps: 2*batch_size*max_len*(recurrent_size-1) deps = tf.convert_to_tensor([[[['$', '$', '$'],['$', '$', '$'],['$', '$', '$']],[['$', '$', '$'],['$', '$', '$'],['$', '$', '$']], [['$', '$', '$'],['$', '$', '$'],['$', '$', '$']],[['$', '$', '$'],['$', '$', '$'],['$', '$', '$']],[['$', '$', '$'],['0', '$', '$'],['1', '$', '$']],[['$', '$', '$'],['0', '$', '$'],['1', '$', '$']],[['$', '$', '$'],['0', '$', '$'],['1', '$', '$']],[['$', '$', '$'],['0', '$', '$'],['1', '$', '$']]],[[['$', '$', '$'],['$', '$', '$'],['$', '$', '$']],[['$', '$', '$'],['$', '$', '$'],['$', '$', '$']],[['$', '$', '$'],['0', '$', '$'],['1', '$', '$']],[['$', '$', '$'],['0', '$', '$'],['1', '$', '$']],[['$', '$', '$'],['0', '$', '$'],['1', '$', '$']],[['$', '$', '$'],['0', '$', '$'],['1', '$', '$']],[['$', '$', '$'],['0', '$', '$'],['1', '$', '$']],[['$', '$', '$'],['0', '$', '$'],['1', '$', '$']]]]) # edge_types = tf.convert_to_tensor([[[['0', '$', '$', '$'],['0', '2', '$', '$'],['0', '2', '$', '$']],[['0', '$', '$', '$'],['0', '2', '$', '$'],['0', '2', '$', '$']],[['0', '$', '$', '$'],['0', '2', '$', '$'],['0', '2', '$', '$']],[['0', '$', '$', '$'],['0', '2', '$', '$'],['0', '2', '$', '$']],[['0', '$', '$', '$'],['0', '2', '$', '$'],['0', '2', '$', '$']],[['0', '$', '$', '$'],['0', '2', '$', '$'],['0', '2', '$', '$']],[['0', '$', '$', '$'],['0', '2', '$', '$'],['0', '2', '$', '$']],[['0', '$', '$', '$'],['0', '2', '$', '$'],['0', '2', '$', '$']]], [[['0', '$', '$', '$'],['0', '2', '$', '$'],['0', '2', '$', '$']],[['0', '$', '$', '$'],['0', '2', '$', '$'],['0', '2', '$', '$']],[['0', '$', '$', '$'],['0', '2', '$', '$'],['0', '2', '$', '$']],[['0', '$', '$', '$'],['0', '2', '$', '$'],['0', '2', '$', '$']],[['0', '$', '$', '$'],['0', '2', '$', '$'],['0', '2', '$', '$']],[['0', '$', '$', '$'],['0', '2', '$', '$'],['0', '2', '$', '$']],[['0', '$', '$', '$'],['0', '2', '$', '$'],['0', '2', '$', '$']],[['0', '$', '$', '$'],['0', '2', '$', '$'],['0', '2', '$', '$']]]]) # edge_types = tf.convert_to_tensor([[[[0, -1, -1, -1],[0, 2, -1, -1],[0, 2, -1, -1]],[[0, -1, -1, -1],[0, 2, -1, -1],[0, 2, -1, -1]],[[0, -1, -1, -1],[0, 2, -1, -1],[0, 2, -1, -1]],[[0, -1, -1, -1],[0, 2, -1, -1],[0, 2, -1, -1]],[[0, -1, -1, -1],[0, 2, -1, -1],[0, 2, -1, -1]],[[0, -1, -1, -1],[0, 2, -1, -1],[0, 2, -1, -1]],[[0, -1, -1, -1],[0, 2, -1, -1],[0, 2, -1, -1]],[[0, -1, -1, -1],[0, 2, -1, -1],[0, 2, -1, -1]]],[[[0, -1, -1, -1],[0, 2, -1, -1],[0, 2, -1, -1]],[[0, -1, -1, -1],[0, 2, -1, -1],[0, 2, -1, -1]],[[0, -1, -1, -1],[0, 2, -1, -1],[0, 2, -1, -1]],[[0, -1, -1, -1],[0, 2, -1, -1],[0, 2, -1, -1]],[[0, -1, -1, -1],[0, 2, -1, -1],[0, 2, -1, -1]],[[0, -1, -1, -1],[0, 2, -1, -1],[0, 2, -1, -1]],[[0, -1, -1, -1],[0, 2, -1, -1],[0, 2, -1, -1]],[[0, -1, -1, -1],[0, 2, -1, -1],[0, 2, -1, -1]]]]) # edge_types: 2*batch_size*max_len*recurrent_size edge_types = tf.convert_to_tensor([[[[0, 9, 9, 9],[0, 2, 9, 9],[0, 2, 9, 9]],[[1, 9, 9, 9],[0, 2, 9, 9],[0, 2, 9, 9]],[[2, 9, 9, 9],[0, 2, 9, 9],[0, 2, 9, 9]],[[0, 9, 9, 9],[0, 2, 9, 9],[0, 2, 9, 9]],[[0, 9, 9, 9],[0, 2, 9, 9],[0, 2, 9, 9]],[[0, 9, 9, 9],[0, 2, 9, 9],[0, 2, 9, 9]],[[0, 9, 9, 9],[0, 2, 9, 9],[0, 2, 9, 9]],[[0, 9, 9, 9],[0, 2, 9, 9],[0, 2, 9, 9]]], [[[0, 9, 9, 9],[0, 2, 9, 9],[0, 2, 9, 9]],[[0, 9, 9, 9],[0, 2, 9, 9],[0, 2, 9, 9]],[[0, 9, 9, 9],[0, 2, 9, 9],[0, 2, 9, 9]],[[0, 9, 9, 9],[0, 2, 9, 9],[0, 2, 9, 9]],[[0, 9, 9, 9],[0, 2, 9, 9],[0, 2, 9, 9]],[[0, 9, 9, 9],[0, 2, 9, 9],[0, 2, 9, 9]],[[0, 9, 9, 9],[0, 2, 9, 9],[0, 2, 9, 9]],[[0, 9, 9, 9],[0, 2, 9, 9],[0, 2, 9, 9]]]]) # mask: batch_size*max_len mask = tf.convert_to_tensor([[1,1,1],[1,1,1],[1,1,1],[1,1,0],[1,1,0],[1,1,0],[1,0,0],[1,0,0]]) # cell_mask: 2*batch_size*max_len*recurrent_size cell_mask = tf.convert_to_tensor([[[[1, 0, 0, 0],[1, 1, 0, 0],[1, 1, 0, 0]],[[1, 0, 0, 0],[1, 1, 0, 0],[1, 1, 0, 0]],[[1, 0, 0, 0],[1, 1, 0, 0],[1, 1, 0, 0]],[[1, 0, 0, 0],[1, 1, 0, 0],[1, 1, 0, 0]],[[1, 0, 0, 0],[1, 1, 0, 0],[1, 1, 0, 0]],[[1, 0, 0, 0],[1, 1, 0, 0],[1, 1, 0, 0]],[[1, 0, 0, 0],[1, 1, 0, 0],[1, 1, 0, 0]],[[1, 0, 0, 0],[1, 1, 0, 0],[1, 1, 0, 0]]],[[[1, 0, 0, 0],[1, 1, 0, 0],[1, 1, 0, 0]],[[1, 0, 0, 0],[1, 1, 0, 0],[1, 1, 0, 0]],[[1, 0, 0, 0],[1, 1, 0, 0],[1, 1, 0, 0]],[[1, 0, 0, 0],[1, 1, 0, 0],[1, 1, 0, 0]],[[1, 0, 0, 0],[1, 1, 0, 0],[1, 1, 0, 0]],[[1, 0, 0, 0],[1, 1, 0, 0],[1, 1, 0, 0]],[[1, 0, 0, 0],[1, 1, 0, 0],[1, 1, 0, 0]],[[1, 0, 0, 0],[1, 1, 0, 0],[1, 1, 0, 0]]]]) # initial_state: 2*recurrent_size*batch_size*embedding_dim initial_state = array_ops.zeros([2, 4, 8, 2]) input_lengths = tf.convert_to_tensor([1, 2, 3, 3, 3, 3, 3, 3]) outputs, hidden_f, hidden_b = bi_graph_encoder(inputs, input_lengths, deps, edge_types, mask, cell_mask, initial_state, True) print(outputs) print(hidden_f) print(hidden_b)
197.178571
1,087
0.307915
983
5,521
1.658189
0.055951
0.143558
0.15092
0.083436
0.649693
0.634356
0.605521
0.476687
0.474233
0.474233
0
0.17844
0.161565
5,521
28
1,088
197.178571
0.173688
0.408803
0
0
0
0
0.046712
0
0
0
0
0
0
1
0
false
0
0.1875
0
0.1875
0.1875
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
b21c7a1509c7bfd68dcac48270c795470f743c73
89
py
Python
recipe_backend/recipes/apps.py
jbernal0019/Recipe_site
30090b521cac84156cf5f05429a12dd5889f8703
[ "MIT" ]
null
null
null
recipe_backend/recipes/apps.py
jbernal0019/Recipe_site
30090b521cac84156cf5f05429a12dd5889f8703
[ "MIT" ]
3
2020-02-12T01:22:24.000Z
2021-06-10T21:49:21.000Z
recipe_backend/recipes/apps.py
jbernal0019/Recipe_site
30090b521cac84156cf5f05429a12dd5889f8703
[ "MIT" ]
null
null
null
from django.apps import AppConfig class PluginsConfig(AppConfig): name = 'recipes'
14.833333
33
0.752809
10
89
6.7
0.9
0
0
0
0
0
0
0
0
0
0
0
0.168539
89
5
34
17.8
0.905405
0
0
0
0
0
0.078652
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
b2268ed3f38975678da47248462c6f15c287a3c3
387
py
Python
sources/boltun/util/collections.py
meiblorn/boltun
d141f555b4f0ed604d8d71883c0bc8811e74370e
[ "MIT" ]
1
2019-12-06T04:19:37.000Z
2019-12-06T04:19:37.000Z
sources/boltun/util/collections.py
meiblorn/boltun
d141f555b4f0ed604d8d71883c0bc8811e74370e
[ "MIT" ]
null
null
null
sources/boltun/util/collections.py
meiblorn/boltun
d141f555b4f0ed604d8d71883c0bc8811e74370e
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function import attr @attr.s class Stack(object): __items = attr.ib(type=list, factory=list) def push(self, item): self.__items.append(item) def pop(self): return self.__items.pop() def peek(self): return self.__items[-1] def is_empty(self): return len(self.__items) == 0
18.428571
64
0.648579
53
387
4.415094
0.566038
0.153846
0.119658
0.162393
0
0
0
0
0
0
0
0.00678
0.237726
387
20
65
19.35
0.786441
0
0
0
0
0
0
0
0
0
0
0
0
1
0.307692
false
0
0.153846
0.230769
0.846154
0.076923
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
b22e2d62e71b8fbbd1c5658b31e4eb4e56a96389
140
py
Python
secao5/exercicio6.py
robinson-1985/exercicios_python_geek_university
6dfc740472de9ff7c029e26a2ba8f51080e3860b
[ "MIT" ]
null
null
null
secao5/exercicio6.py
robinson-1985/exercicios_python_geek_university
6dfc740472de9ff7c029e26a2ba8f51080e3860b
[ "MIT" ]
null
null
null
secao5/exercicio6.py
robinson-1985/exercicios_python_geek_university
6dfc740472de9ff7c029e26a2ba8f51080e3860b
[ "MIT" ]
null
null
null
'''6. Escreva um programa que, dados dois números inteiros, mostre na tela o maior deles, assim como a diferença existente entre ambos.'''
35
89
0.757143
22
140
4.818182
1
0
0
0
0
0
0
0
0
0
0
0.008547
0.164286
140
3
90
46.666667
0.897436
0.942857
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
b2362a2c9bbd2b259775e9395541cd8ca6653d97
3,188
py
Python
bokeh/util/terminal.py
kinghows/bokeh
aeb7abc1dbe2b67ce0f4422838a96fb8362c52c7
[ "BSD-3-Clause" ]
1
2018-11-14T19:08:18.000Z
2018-11-14T19:08:18.000Z
bokeh/util/terminal.py
kinghows/bokeh
aeb7abc1dbe2b67ce0f4422838a96fb8362c52c7
[ "BSD-3-Clause" ]
1
2021-05-09T02:45:17.000Z
2021-05-09T02:45:17.000Z
bokeh/util/terminal.py
kinghows/bokeh
aeb7abc1dbe2b67ce0f4422838a96fb8362c52c7
[ "BSD-3-Clause" ]
1
2020-06-17T05:47:16.000Z
2020-06-17T05:47:16.000Z
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2017, Anaconda, Inc. All rights reserved. # # Powered by the Bokeh Development Team. # # The full license is in the file LICENSE.txt, distributed with this software. #----------------------------------------------------------------------------- ''' Provide utilities for formatting terminal output. ''' #----------------------------------------------------------------------------- # Boilerplate #----------------------------------------------------------------------------- from __future__ import absolute_import, division, print_function, unicode_literals import logging log = logging.getLogger(__name__) #----------------------------------------------------------------------------- # Imports #----------------------------------------------------------------------------- # Standard library imports import sys # External imports # Bokeh imports #----------------------------------------------------------------------------- # General API #----------------------------------------------------------------------------- # provide fallbacks for highlights in case colorama is not installed try: import colorama from colorama import Fore, Style def bright(text): return "%s%s%s" % (Style.BRIGHT, text, Style.RESET_ALL) def dim(text): return "%s%s%s" % (Style.DIM, text, Style.RESET_ALL) def red(text): return "%s%s%s" % (Fore.RED, text, Style.RESET_ALL) def green(text): return "%s%s%s" % (Fore.GREEN, text, Style.RESET_ALL) def white(text): return "%s%s%s%s" % (Fore.WHITE, Style.BRIGHT, text, Style.RESET_ALL) def yellow(text): return "%s%s%s" % (Fore.YELLOW, text, Style.RESET_ALL) sys.platform == "win32" and colorama.init() except ImportError: def bright(text): return text def dim(text): return text def red(text): return text def green(text): return text def white(text): return text def yellow(text): return text def trace(*values, **kwargs): pass def write(*values, **kwargs): end = kwargs.get('end', '\n') print(*values, end=end) def fail(msg=None, label="FAIL"): msg = " " + msg if msg is not None else "" write("%s%s" % (red("[%s]" % label), msg)) def info(msg=None, label="INFO"): msg = " " + msg if msg is not None else "" write("%s%s" % (white("[%s]" % label), msg)) def ok(msg=None, label="OK"): msg = " " + msg if msg is not None else "" write("%s%s" % (green("[%s]" % label), msg)) def warn(msg=None, label="WARN"): msg = " " + msg if msg is not None else "" write("%s%s" % (yellow("[%s]" % label), msg)) #----------------------------------------------------------------------------- # Dev API #----------------------------------------------------------------------------- #----------------------------------------------------------------------------- # Private API #----------------------------------------------------------------------------- #----------------------------------------------------------------------------- # Code #-----------------------------------------------------------------------------
35.422222
91
0.414994
307
3,188
4.254072
0.319218
0.026034
0.01608
0.05513
0.261103
0.205207
0.14242
0.094946
0.094946
0.094946
0
0.003658
0.142409
3,188
89
92
35.820225
0.474031
0.466437
0
0.105263
0
0
0.058894
0
0
0
0
0
0
1
0.473684
false
0.026316
0.157895
0.315789
0.631579
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
b237ee0ace32e691329070ad414c8eef66fccd44
175
py
Python
waiguan/layers/modules/__init__.py
heixialeeLeon/SSD
afdc90fafea0c0629bba789f546e3e0ca279f205
[ "MIT" ]
null
null
null
waiguan/layers/modules/__init__.py
heixialeeLeon/SSD
afdc90fafea0c0629bba789f546e3e0ca279f205
[ "MIT" ]
null
null
null
waiguan/layers/modules/__init__.py
heixialeeLeon/SSD
afdc90fafea0c0629bba789f546e3e0ca279f205
[ "MIT" ]
null
null
null
from .l2norm import L2Norm from .multibox_loss import MultiBoxLoss from .multibox_focalloss import MultiBoxFocalLoss __all__ = ['L2Norm', 'MultiBoxLoss', 'MultiBoxFocalLoss']
35
57
0.822857
18
175
7.666667
0.5
0.173913
0
0
0
0
0
0
0
0
0
0.018987
0.097143
175
5
57
35
0.85443
0
0
0
0
0
0.198864
0
0
0
0
0
0
1
0
false
0
0.75
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
b2445103c2858f39d46bd3d45d182776355fdcdc
90
py
Python
grab_screen/__init__.py
andrei-shabanski/grab-screen
758187262156aac85f6736c9b8299187b49e43a5
[ "MIT" ]
9
2017-08-15T03:45:03.000Z
2022-02-21T18:06:32.000Z
grab_screen/__init__.py
andrei-shabanski/grab-screen
758187262156aac85f6736c9b8299187b49e43a5
[ "MIT" ]
211
2017-07-03T15:24:15.000Z
2022-02-21T14:09:36.000Z
grab_screen/__init__.py
andrei-shabanski/grab-screen
758187262156aac85f6736c9b8299187b49e43a5
[ "MIT" ]
4
2017-08-15T03:44:46.000Z
2022-02-03T10:25:20.000Z
from .cli import main from .version import __version__ __all__ = ['__version__', 'main']
18
33
0.744444
11
90
5
0.545455
0
0
0
0
0
0
0
0
0
0
0
0.144444
90
4
34
22.5
0.714286
0
0
0
0
0
0.166667
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
b248f043c0feea53fbb2ab2028061229d654718b
693
py
Python
build/beginner_tutorials/cmake/beginner_tutorials-genmsg-context.py
aracelis-git/beginner_tutorials
3bb11e496c414237543e8783dd01b57ef8952bca
[ "Apache-2.0" ]
null
null
null
build/beginner_tutorials/cmake/beginner_tutorials-genmsg-context.py
aracelis-git/beginner_tutorials
3bb11e496c414237543e8783dd01b57ef8952bca
[ "Apache-2.0" ]
null
null
null
build/beginner_tutorials/cmake/beginner_tutorials-genmsg-context.py
aracelis-git/beginner_tutorials
3bb11e496c414237543e8783dd01b57ef8952bca
[ "Apache-2.0" ]
null
null
null
# generated from genmsg/cmake/pkg-genmsg.context.in messages_str = "/home/viki/catkin_ws/src/beginner_tutorials/msg/Num.msg" services_str = "/home/viki/catkin_ws/src/beginner_tutorials/srv/ResetCount.srv;/home/viki/catkin_ws/src/beginner_tutorials/srv/AddTwoInts.srv" pkg_name = "beginner_tutorials" dependencies_str = "std_msgs" langs = "gencpp;genlisp;genpy" dep_include_paths_str = "beginner_tutorials;/home/viki/catkin_ws/src/beginner_tutorials/msg;std_msgs;/opt/ros/indigo/share/std_msgs/cmake/../msg" PYTHON_EXECUTABLE = "/usr/bin/python" package_has_static_sources = '' == 'TRUE' genmsg_check_deps_script = "/opt/ros/indigo/share/genmsg/cmake/../../../lib/genmsg/genmsg_check_deps.py"
57.75
145
0.799423
104
693
5.048077
0.490385
0.194286
0.106667
0.121905
0.308571
0.308571
0.308571
0.308571
0
0
0
0
0.049062
693
11
146
63
0.796662
0.070707
0
0
1
0.222222
0.683801
0.582555
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
b25bc80a13089b17ce70ec72af0643fdd3cdbaca
16,503
py
Python
startracker/beast/beast.py
Oregon-Tech-Rocketry-and-Aerospace/space-debris-card
d72303436b6cb1a409d5217d0518db0b0335d10a
[ "MIT" ]
null
null
null
startracker/beast/beast.py
Oregon-Tech-Rocketry-and-Aerospace/space-debris-card
d72303436b6cb1a409d5217d0518db0b0335d10a
[ "MIT" ]
null
null
null
startracker/beast/beast.py
Oregon-Tech-Rocketry-and-Aerospace/space-debris-card
d72303436b6cb1a409d5217d0518db0b0335d10a
[ "MIT" ]
null
null
null
# This file was automatically generated by SWIG (http://www.swig.org). # Version 4.0.2 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info as _swig_python_version_info if _swig_python_version_info < (2, 7, 0): raise RuntimeError("Python 2.7 or later required") # Import the low-level C/C++ module if __package__ or "." in __name__: from . import _beast else: import _beast try: import builtins as __builtin__ except ImportError: import __builtin__ def _swig_repr(self): try: strthis = "proxy of " + self.this.__repr__() except __builtin__.Exception: strthis = "" return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) def _swig_setattr_nondynamic_instance_variable(set): def set_instance_attr(self, name, value): if name == "thisown": self.this.own(value) elif name == "this": set(self, name, value) elif hasattr(self, name) and isinstance(getattr(type(self), name), property): set(self, name, value) else: raise AttributeError("You cannot add instance attributes to %s" % self) return set_instance_attr def _swig_setattr_nondynamic_class_variable(set): def set_class_attr(cls, name, value): if hasattr(cls, name) and not isinstance(getattr(cls, name), property): set(cls, name, value) else: raise AttributeError("You cannot add class attributes to %s" % cls) return set_class_attr def _swig_add_metaclass(metaclass): """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass""" def wrapper(cls): return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy()) return wrapper class _SwigNonDynamicMeta(type): """Meta class to enforce nondynamic attributes (no new attributes) for a class""" __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__) PI = _beast.PI TWOPI = _beast.TWOPI def load_config(filename: "char const *") -> "void": return _beast.load_config(filename) def xyz_hash(x: "float", y: "float", z: "float") -> "size_t": return _beast.xyz_hash(x, y, z) def xyz_hash_mask(radians: "float") -> "size_t": return _beast.xyz_hash_mask(radians) class star(object): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr x = property(_beast.star_x_get, _beast.star_x_set) y = property(_beast.star_y_get, _beast.star_y_set) z = property(_beast.star_z_get, _beast.star_z_set) flux = property(_beast.star_flux_get, _beast.star_flux_set) id = property(_beast.star_id_get, _beast.star_id_set) px = property(_beast.star_px_get, _beast.star_px_set) py = property(_beast.star_py_get, _beast.star_py_set) unreliable = property(_beast.star_unreliable_get, _beast.star_unreliable_set) star_idx = property(_beast.star_star_idx_get, _beast.star_star_idx_set) sigma_sq = property(_beast.star_sigma_sq_get, _beast.star_sigma_sq_set) hash_val = property(_beast.star_hash_val_get, _beast.star_hash_val_set) def __init__(self, *args): _beast.star_swiginit(self, _beast.new_star(*args)) def __eq__(self, s: "star") -> "bool": return _beast.star___eq__(self, s) def __mul__(self, s: "star") -> "float": return _beast.star___mul__(self, s) def DBG_(self, s: "char const *") -> "void": return _beast.star_DBG_(self, s) __swig_destroy__ = _beast.delete_star # Register star in _beast: _beast.star_swigregister(star) cvar = _beast.cvar def star_gt_x(s1: "star", s2: "star") -> "bool": return _beast.star_gt_x(s1, s2) def star_gt_y(s1: "star", s2: "star") -> "bool": return _beast.star_gt_y(s1, s2) def star_gt_z(s1: "star", s2: "star") -> "bool": return _beast.star_gt_z(s1, s2) def star_gt_flux(s1: "star", s2: "star") -> "bool": return _beast.star_gt_flux(s1, s2) def star_lt_x(s1: "star", s2: "star") -> "bool": return _beast.star_lt_x(s1, s2) def star_lt_y(s1: "star", s2: "star") -> "bool": return _beast.star_lt_y(s1, s2) def star_lt_z(s1: "star", s2: "star") -> "bool": return _beast.star_lt_z(s1, s2) def star_lt_flux(s1: "star", s2: "star") -> "bool": return _beast.star_lt_flux(s1, s2) class star_db(object): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr max_variance = property(_beast.star_db_max_variance_get, _beast.star_db_max_variance_set) def __init__(self): _beast.star_db_swiginit(self, _beast.new_star_db()) __swig_destroy__ = _beast.delete_star_db def size(self) -> "size_t": return _beast.star_db_size(self) def __iadd__(self, *args) -> "star_db *": return _beast.star_db___iadd__(self, *args) def __sub__(self, s: "star_db") -> "star_db *": return _beast.star_db___sub__(self, s) def __and__(self, s: "star_db") -> "star_db *": return _beast.star_db___and__(self, s) def get_star(self, idx: "int") -> "star *": return _beast.star_db_get_star(self, idx) def copy(self) -> "star_db *": return _beast.star_db_copy(self) def copy_n_brightest(self, n: "size_t") -> "star_db *": return _beast.star_db_copy_n_brightest(self, n) def load_catalog(self, catalog: "char const *", year: "float") -> "void": return _beast.star_db_load_catalog(self, catalog, year) def count(self, *args) -> "size_t": return _beast.star_db_count(self, *args) def DBG_(self, s: "char const *") -> "void": return _beast.star_db_DBG_(self, s) # Register star_db in _beast: _beast.star_db_swigregister(star_db) class star_fov(object): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr def get_score(self, *args) -> "float": return _beast.star_fov_get_score(self, *args) def get_id(self, px: "float", py: "float") -> "int": return _beast.star_fov_get_id(self, px, py) def __init__(self, s: "star_db", db_max_variance_: "float"): _beast.star_fov_swiginit(self, _beast.new_star_fov(s, db_max_variance_)) __swig_destroy__ = _beast.delete_star_fov # Register star_fov in _beast: _beast.star_fov_swigregister(star_fov) class star_query(object): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr map = property(_beast.star_query_map_get, _beast.star_query_map_set) map_size = property(_beast.star_query_map_size_get, _beast.star_query_map_size_set) kdresults = property(_beast.star_query_kdresults_get, _beast.star_query_kdresults_set) def __init__(self, s: "star_db"): _beast.star_query_swiginit(self, _beast.new_star_query(s)) __swig_destroy__ = _beast.delete_star_query def is_kdsorted(self) -> "uint8_t": return _beast.star_query_is_kdsorted(self) def kdsort(self) -> "void": return _beast.star_query_kdsort(self) def sort(self) -> "void": return _beast.star_query_sort(self) def r_size(self) -> "size_t": return _beast.star_query_r_size(self) def get_kdmask(self, i: "size_t") -> "int8_t": return _beast.star_query_get_kdmask(self, i) def reset_kdmask(self) -> "void": return _beast.star_query_reset_kdmask(self) def clear_kdresults(self) -> "void": return _beast.star_query_clear_kdresults(self) def kdcheck(self, idx: "int", x: "float", y: "float", z: "float", r: "float", min_flux: "float") -> "void": return _beast.star_query_kdcheck(self, idx, x, y, z, r, min_flux) def kdsearch(self, *args) -> "void": return _beast.star_query_kdsearch(self, *args) def kdsearch_x(self, x: "float const", y: "float const", z: "float const", r: "float const", min_flux: "float", min: "int", max: "int") -> "void": return _beast.star_query_kdsearch_x(self, x, y, z, r, min_flux, min, max) def kdsearch_y(self, x: "float const", y: "float const", z: "float const", r: "float const", min_flux: "float", min: "int", max: "int") -> "void": return _beast.star_query_kdsearch_y(self, x, y, z, r, min_flux, min, max) def kdsearch_z(self, x: "float const", y: "float const", z: "float const", r: "float const", min_flux: "float", min: "int", max: "int") -> "void": return _beast.star_query_kdsearch_z(self, x, y, z, r, min_flux, min, max) def kdmask_filter_catalog(self) -> "void": return _beast.star_query_kdmask_filter_catalog(self) def kdmask_uniform_density(self, min_stars_per_fov: "int") -> "void": return _beast.star_query_kdmask_uniform_density(self, min_stars_per_fov) def from_kdmask(self) -> "star_db *": return _beast.star_query_from_kdmask(self) def from_kdresults(self) -> "star_db *": return _beast.star_query_from_kdresults(self) def DBG_(self, s: "char const *") -> "void": return _beast.star_query_DBG_(self, s) # Register star_query in _beast: _beast.star_query_swigregister(star_query) class constellation(object): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr p = property(_beast.constellation_p_get, _beast.constellation_p_set) s1 = property(_beast.constellation_s1_get, _beast.constellation_s1_set) s2 = property(_beast.constellation_s2_get, _beast.constellation_s2_set) idx = property(_beast.constellation_idx_get, _beast.constellation_idx_set) def DBG_(self, s: "char const *") -> "void": return _beast.constellation_DBG_(self, s) def __init__(self): _beast.constellation_swiginit(self, _beast.new_constellation()) __swig_destroy__ = _beast.delete_constellation # Register constellation in _beast: _beast.constellation_swigregister(constellation) class constellation_pair(object): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr totalscore = property(_beast.constellation_pair_totalscore_get, _beast.constellation_pair_totalscore_set) db_s1 = property(_beast.constellation_pair_db_s1_get, _beast.constellation_pair_db_s1_set) db_s2 = property(_beast.constellation_pair_db_s2_get, _beast.constellation_pair_db_s2_set) img_s1 = property(_beast.constellation_pair_img_s1_get, _beast.constellation_pair_img_s1_set) img_s2 = property(_beast.constellation_pair_img_s2_get, _beast.constellation_pair_img_s2_set) def flip(self) -> "void": return _beast.constellation_pair_flip(self) def DBG_(self, s: "char const *") -> "void": return _beast.constellation_pair_DBG_(self, s) def __init__(self): _beast.constellation_pair_swiginit(self, _beast.new_constellation_pair()) __swig_destroy__ = _beast.delete_constellation_pair # Register constellation_pair in _beast: _beast.constellation_pair_swigregister(constellation_pair) class constellation_lt(object): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr def __call__(self, c1: "constellation", c2: "constellation") -> "bool": return _beast.constellation_lt___call__(self, c1, c2) def __init__(self): _beast.constellation_lt_swiginit(self, _beast.new_constellation_lt()) __swig_destroy__ = _beast.delete_constellation_lt # Register constellation_lt in _beast: _beast.constellation_lt_swigregister(constellation_lt) def constellation_lt_s1(c1: "constellation", c2: "constellation") -> "bool": return _beast.constellation_lt_s1(c1, c2) def constellation_lt_s2(c1: "constellation", c2: "constellation") -> "bool": return _beast.constellation_lt_s2(c1, c2) def constellation_lt_p(c1: "constellation", c2: "constellation") -> "bool": return _beast.constellation_lt_p(c1, c2) class constellation_db(object): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr stars = property(_beast.constellation_db_stars_get, _beast.constellation_db_stars_set) results = property(_beast.constellation_db_results_get, _beast.constellation_db_results_set) map_size = property(_beast.constellation_db_map_size_get, _beast.constellation_db_map_size_set) map = property(_beast.constellation_db_map_get, _beast.constellation_db_map_set) def __init__(self, s: "star_db", stars_per_fov: "int", from_image: "int"): _beast.constellation_db_swiginit(self, _beast.new_constellation_db(s, stars_per_fov, from_image)) __swig_destroy__ = _beast.delete_constellation_db def DBG_(self, s: "char const *") -> "void": return _beast.constellation_db_DBG_(self, s) # Register constellation_db in _beast: _beast.constellation_db_swigregister(constellation_db) class match_result(object): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr R11 = property(_beast.match_result_R11_get, _beast.match_result_R11_set) R12 = property(_beast.match_result_R12_get, _beast.match_result_R12_set) R13 = property(_beast.match_result_R13_get, _beast.match_result_R13_set) R21 = property(_beast.match_result_R21_get, _beast.match_result_R21_set) R22 = property(_beast.match_result_R22_get, _beast.match_result_R22_set) R23 = property(_beast.match_result_R23_get, _beast.match_result_R23_set) R31 = property(_beast.match_result_R31_get, _beast.match_result_R31_set) R32 = property(_beast.match_result_R32_get, _beast.match_result_R32_set) R33 = property(_beast.match_result_R33_get, _beast.match_result_R33_set) match = property(_beast.match_result_match_get, _beast.match_result_match_set) dec = property(_beast.match_result_dec_get, _beast.match_result_dec_set) ra = property(_beast.match_result_ra_get, _beast.match_result_ra_set) ori = property(_beast.match_result_ori_get, _beast.match_result_ori_set) def __init__(self, db_: "constellation_db", img_: "constellation_db", img_mask_: "star_fov"): _beast.match_result_swiginit(self, _beast.new_match_result(db_, img_, img_mask_)) __swig_destroy__ = _beast.delete_match_result def size(self) -> "size_t": return _beast.match_result_size(self) def init(self, db_const_: "constellation", img_const_: "constellation") -> "void": return _beast.match_result_init(self, db_const_, img_const_) def copy_over(self, c: "match_result") -> "void": return _beast.match_result_copy_over(self, c) def related(self, m: "constellation_pair") -> "int": return _beast.match_result_related(self, m) def search(self) -> "void": return _beast.match_result_search(self) def clear_search(self) -> "void": return _beast.match_result_clear_search(self) def compute_score(self) -> "void": return _beast.match_result_compute_score(self) def from_match(self) -> "star_db *": return _beast.match_result_from_match(self) def weighted_triad(self) -> "void": return _beast.match_result_weighted_triad(self) def DBG_(self, s: "char const *") -> "void": return _beast.match_result_DBG_(self, s) def calc_ori(self) -> "void": return _beast.match_result_calc_ori(self) def get_dec(self) -> "double": return _beast.match_result_get_dec(self) def get_ra(self) -> "double": return _beast.match_result_get_ra(self) def get_ori(self) -> "double": return _beast.match_result_get_ori(self) # Register match_result in _beast: _beast.match_result_swigregister(match_result) class db_match(object): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr p_match = property(_beast.db_match_p_match_get, _beast.db_match_p_match_set) winner = property(_beast.db_match_winner_get, _beast.db_match_winner_set) def __init__(self, db: "constellation_db", img: "constellation_db"): _beast.db_match_swiginit(self, _beast.new_db_match(db, img)) __swig_destroy__ = _beast.delete_db_match # Register db_match in _beast: _beast.db_match_swigregister(db_match)
39.57554
150
0.712719
2,392
16,503
4.434783
0.094482
0.066176
0.063348
0.032051
0.479921
0.323812
0.280449
0.241327
0.212481
0.16365
0
0.009763
0.168333
16,503
416
151
39.670673
0.763133
0.044416
0
0.139373
1
0
0.086208
0
0
0
0
0
0
1
0.285714
false
0
0.020906
0.229965
0.84669
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
b261027bb447ffd4f357da57323ee5f92a50b62a
599
py
Python
todoapp/todos/models.py
Buddheshwar-Nath-Keshari/test-ubuntu
5e801ecd21503f160e52c091120a1a0c80c6600d
[ "MIT" ]
null
null
null
todoapp/todos/models.py
Buddheshwar-Nath-Keshari/test-ubuntu
5e801ecd21503f160e52c091120a1a0c80c6600d
[ "MIT" ]
null
null
null
todoapp/todos/models.py
Buddheshwar-Nath-Keshari/test-ubuntu
5e801ecd21503f160e52c091120a1a0c80c6600d
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.db import models from django.utils.encoding import smart_text as smart_unicode from django.utils.translation import ugettext_lazy as _ class Todo(models.Model): """ Needed fields - user (fk to User Model - Use AUTH_USER_MODEL from django.conf.settings) - name (max_length=1000) - done (boolean with default been false) - date_created (with default of creation time) - date_completed (set it when done is marked true) Add string representation for this model with todos name. """
31.526316
81
0.707846
82
599
5
0.682927
0.097561
0.073171
0
0
0
0
0
0
0
0
0.008715
0.233723
599
18
82
33.277778
0.884532
0.517529
0
0
0
0
0
0
0
0
0
0.055556
0
1
0
true
0
0.8
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
1
0
1
0
1
0
0
4
b2743a4c76c53ef106ccb49cbbfbe8057b1bd708
2,136
py
Python
input/utils/chi-squared-contingency-tests.py
g-p-m/GPM
00aa3ea664e14b99eedd6cbeabbc2b85edf2b208
[ "BSD-3-Clause" ]
null
null
null
input/utils/chi-squared-contingency-tests.py
g-p-m/GPM
00aa3ea664e14b99eedd6cbeabbc2b85edf2b208
[ "BSD-3-Clause" ]
null
null
null
input/utils/chi-squared-contingency-tests.py
g-p-m/GPM
00aa3ea664e14b99eedd6cbeabbc2b85edf2b208
[ "BSD-3-Clause" ]
null
null
null
import numpy, scipy.stats T1 = numpy.asarray([ [ 316, 378, 393, 355, 391, 371, 400, 397, 385, 371, 382, 371, ], [ 336, 339, 322, 341, 314, 311, 339, 310, 331, 355, 316, 306, ], [ 375, 364, 375, 381, 381, 401, 374, 396, 422, 417, 372, 435, ], [ 238, 231, 263, 268, 239, 259, 243, 206, 257, 228, 252, 203, ]]) T2 = numpy.asarray([ [ 378, 415, 389, 383, 369, 382, 382, 340, 359, 377, 372, 364, ], [ 312, 326, 356, 319, 294, 325, 345, 315, 326, 324, 346, 332, ], [ 368, 382, 384, 401, 367, 399, 417, 397, 387, 408, 415, 368, ], [ 246, 226, 264, 242, 229, 237, 227, 233, 251, 244, 262, 226, ]]) T3 = numpy.asarray([ [ 331, 409, 409, 392, 364, 336, 317, 345, 351, 414, 406, 436, ], [ 351, 355, 313, 328, 296, 291, 312, 320, 339, 307, 339, 369, ], [ 407, 416, 400, 363, 355, 350, 380, 388, 386, 391, 436, 421, ], [ 297, 270, 231, 236, 206, 243, 217, 222, 229, 246, 244, 246, ]]) print(scipy.stats.chi2_contingency(T1)[1]) # Pyswisseph print(scipy.stats.chi2_contingency(T2)[1]) print(scipy.stats.chi2_contingency(T3)[1]) print() T1 = numpy.asarray([ [ 316, 378, 393, 355, 391, 371, 400, 397, 385, 371, 382, 371, ], [ 336, 338, 323, 341, 314, 311, 339, 310, 331, 355, 316, 306, ], [ 375, 364, 375, 381, 381, 401, 374, 396, 422, 417, 372, 435, ], [ 238, 231, 263, 268, 239, 259, 243, 206, 257, 228, 252, 203, ]]) T2 = numpy.asarray([ [ 378, 415, 389, 383, 369, 382, 382, 340, 359, 377, 372, 364, ], [ 312, 326, 356, 319, 294, 325, 345, 315, 326, 324, 346, 332, ], [ 368, 382, 384, 401, 367, 399, 417, 397, 387, 409, 414, 368, ], [ 246, 226, 264, 242, 229, 237, 227, 234, 250, 244, 262, 226, ]]) T3 = numpy.asarray([ [ 331, 411, 406, 393, 364, 333, 322, 344, 350, 413, 408, 435, ], [ 352, 355, 313, 331, 291, 293, 314, 318, 339, 308, 338, 368, ], [ 406, 416, 400, 364, 356, 348, 380, 392, 383, 390, 437, 421, ], [ 296, 270, 231, 238, 202, 245, 217, 222, 229, 247, 244, 246, ]]) print(scipy.stats.chi2_contingency(T1)[1]) # Ephem print(scipy.stats.chi2_contingency(T2)[1]) print(scipy.stats.chi2_contingency(T3)[1])
46.434783
65
0.558521
355
2,136
3.343662
0.377465
0.058972
0.075821
0.09604
0.707666
0.707666
0.707666
0.663858
0.62342
0.557709
0
0.542456
0.233614
2,136
45
66
47.466667
0.182651
0.007491
0
0.578947
0
0
0
0
0
0
0
0
0
1
0
false
0
0.026316
0
0.026316
0.184211
0
0
0
null
0
0
0
0
1
1
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
b284e34183349b94655f2ba4c0ad549e6e0f8f3f
273
py
Python
dsfaker/generators/str.py
pajachiet/dsfaker
0e65ba336608c2ccc5e32a541f3b66dfad019b35
[ "MIT" ]
3
2017-03-12T22:08:59.000Z
2017-05-22T16:57:17.000Z
dsfaker/generators/str.py
pajachiet/dsfaker
0e65ba336608c2ccc5e32a541f3b66dfad019b35
[ "MIT" ]
12
2017-03-01T10:14:08.000Z
2017-04-23T12:15:10.000Z
dsfaker/generators/str.py
pajachiet/dsfaker
0e65ba336608c2ccc5e32a541f3b66dfad019b35
[ "MIT" ]
2
2017-05-04T15:36:21.000Z
2018-02-07T13:49:13.000Z
from random import Random from rstr import Rstr from . import Generator class Regex(Generator): def __init__(self, regex, seed=None): self.gen = Rstr(Random(seed)) self.regex = regex def get_single(self): return self.gen.xeger(self.regex)
22.75
41
0.677656
38
273
4.736842
0.447368
0.15
0
0
0
0
0
0
0
0
0
0
0.227106
273
11
42
24.818182
0.853081
0
0
0
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0.333333
0.111111
0.777778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
1
1
0
0
4
a231a6c5e1e9bfd374c54640c8a12d24c01e3857
93
py
Python
lattedb/linksmear/apps.py
callat-qcd/lattedb
75c06748f3d59332a84ec1b5794c215c5974a46f
[ "BSD-3-Clause" ]
1
2019-12-11T02:33:23.000Z
2019-12-11T02:33:23.000Z
lattedb/linksmear/apps.py
callat-qcd/lattedb
75c06748f3d59332a84ec1b5794c215c5974a46f
[ "BSD-3-Clause" ]
10
2020-01-29T17:06:01.000Z
2021-05-31T14:41:19.000Z
lattedb/linksmear/apps.py
callat-qcd/lattedb
75c06748f3d59332a84ec1b5794c215c5974a46f
[ "BSD-3-Clause" ]
null
null
null
from django.apps import AppConfig class LinkSmearConfig(AppConfig): name = "linksmear"
15.5
33
0.763441
10
93
7.1
0.9
0
0
0
0
0
0
0
0
0
0
0
0.16129
93
5
34
18.6
0.910256
0
0
0
0
0
0.096774
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
a246d1c2c2b92da01d8058201ebb138463ac4efe
105
py
Python
tests/pyxl_original/test_eof.py
adrienbrunet/mixt
d725ec752ce430d135e993bc988bfdf2b8457c4b
[ "MIT" ]
27
2018-06-04T19:11:42.000Z
2022-02-23T22:46:39.000Z
tests/pyxl_original/test_eof.py
adrienbrunet/mixt
d725ec752ce430d135e993bc988bfdf2b8457c4b
[ "MIT" ]
7
2018-06-09T15:27:51.000Z
2021-03-11T20:00:35.000Z
tests/pyxl_original/test_eof.py
adrienbrunet/mixt
d725ec752ce430d135e993bc988bfdf2b8457c4b
[ "MIT" ]
3
2018-07-29T10:20:02.000Z
2021-11-18T19:55:07.000Z
# coding: mixt from mixt import html def test(): assert str(<Fragment>'''</Fragment>) == """'''"""
15
53
0.571429
12
105
5
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.180952
105
6
54
17.5
0.697674
0
0
0
0
0
0.208791
0
0
0
0
0
0.333333
0
null
null
0
0.333333
null
null
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
1
0
0
0
1
0
0
0
0
4
a24a44290243b8973c58ac83bd9c32d62a1b7331
194
py
Python
contact/views.py
rsHalford/xhalford-django
970875bbcd23782af15f24361ec3bbda0230ee81
[ "MIT" ]
2
2020-11-02T22:04:01.000Z
2020-11-14T14:45:45.000Z
contact/views.py
rsHalford/xhalford-django
970875bbcd23782af15f24361ec3bbda0230ee81
[ "MIT" ]
null
null
null
contact/views.py
rsHalford/xhalford-django
970875bbcd23782af15f24361ec3bbda0230ee81
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.views.generic import ListView from contact.models import Profile class Contact(ListView): model = Profile template_name = "contact.html"
24.25
41
0.78866
25
194
6.08
0.64
0.131579
0
0
0
0
0
0
0
0
0
0
0.149485
194
7
42
27.714286
0.921212
0
0
0
0
0
0.061856
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
a2513b451ec5004528a7e01bf0d9f3485e85254c
64
py
Python
integraph/core/__init__.py
nleguillarme/inteGraph
65faae4b7c16977094c387f6359980a4e99f94cb
[ "Apache-2.0" ]
null
null
null
integraph/core/__init__.py
nleguillarme/inteGraph
65faae4b7c16977094c387f6359980a4e99f94cb
[ "Apache-2.0" ]
null
null
null
integraph/core/__init__.py
nleguillarme/inteGraph
65faae4b7c16977094c387f6359980a4e99f94cb
[ "Apache-2.0" ]
null
null
null
from .taxid import TaxId from .uri import URIManager, URIMapper
21.333333
38
0.8125
9
64
5.777778
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.140625
64
2
39
32
0.945455
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
a26076e09d7b45380034f14f9bab4f75147d9786
86
py
Python
run.py
tdavislab/mapper-stitching
09cb6949cea57ebece640b58ef5c449fb177db38
[ "MIT" ]
10
2019-06-12T01:18:44.000Z
2021-12-19T16:12:08.000Z
run.py
tdavislab/mapper-stitching
09cb6949cea57ebece640b58ef5c449fb177db38
[ "MIT" ]
7
2019-03-20T23:47:49.000Z
2019-04-10T19:23:41.000Z
run.py
tdavislab/mapper-stitching
09cb6949cea57ebece640b58ef5c449fb177db38
[ "MIT" ]
3
2020-10-16T04:30:09.000Z
2021-03-16T18:45:33.000Z
#!flask/bin/python from app import app app.run(host='127.0.0.1',port=8080,debug=True)
21.5
46
0.732558
18
86
3.5
0.833333
0
0
0
0
0
0
0
0
0
0
0.125
0.069767
86
3
47
28.666667
0.6625
0.197674
0
0
0
0
0.132353
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
a28511d4313faddcec24e963d4aea4b50f61ce85
135
py
Python
sopy/admin/__init__.py
AlexFrazer/sopython-site
4ede64cf6d04def596be13feeaa4d84ce8503ef3
[ "BSD-3-Clause" ]
81
2015-02-17T17:07:27.000Z
2021-08-15T17:46:13.000Z
sopy/admin/__init__.py
AlexFrazer/sopython-site
4ede64cf6d04def596be13feeaa4d84ce8503ef3
[ "BSD-3-Clause" ]
81
2015-02-17T17:04:16.000Z
2021-02-21T03:52:55.000Z
sopy/admin/__init__.py
AlexFrazer/sopython-site
4ede64cf6d04def596be13feeaa4d84ce8503ef3
[ "BSD-3-Clause" ]
29
2015-01-18T18:28:06.000Z
2022-02-05T03:11:04.000Z
from flask import Blueprint bp = Blueprint('admin', __name__) @bp.record_once def register(state): from sopy.admin import views
15
33
0.748148
19
135
5.052632
0.736842
0
0
0
0
0
0
0
0
0
0
0
0.162963
135
8
34
16.875
0.849558
0
0
0
0
0
0.037037
0
0
0
0
0
0
1
0.2
false
0
0.4
0
0.6
0.4
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
a28a52e59294caa6c7f0ce984c5ca19e80db8e8f
152
py
Python
block/admin.py
amirkh75/user_block_chain
f9bdba11c1d8b724787151480cd52155ad8718e4
[ "MIT" ]
null
null
null
block/admin.py
amirkh75/user_block_chain
f9bdba11c1d8b724787151480cd52155ad8718e4
[ "MIT" ]
null
null
null
block/admin.py
amirkh75/user_block_chain
f9bdba11c1d8b724787151480cd52155ad8718e4
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Block @admin.register(Block) class ActionAdmin(admin.ModelAdmin): list_filter = ('created',)
19
36
0.763158
19
152
6.052632
0.736842
0
0
0
0
0
0
0
0
0
0
0
0.131579
152
7
37
21.714286
0.871212
0
0
0
0
0
0.046053
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
a2cf483b7a318378a4b51126b7de177267f4c55e
23
py
Python
auto_ml/_version.py
amlanbanerjee/auto_ml
db8e1d2cfa93f13a21e55739acfc8d99837e91b0
[ "MIT" ]
1,671
2016-08-09T04:44:48.000Z
2022-03-27T01:29:23.000Z
auto_ml/_version.py
amlanbanerjee/auto_ml
db8e1d2cfa93f13a21e55739acfc8d99837e91b0
[ "MIT" ]
428
2016-08-08T00:13:04.000Z
2022-01-19T10:09:05.000Z
auto_ml/_version.py
amlanbanerjee/auto_ml
db8e1d2cfa93f13a21e55739acfc8d99837e91b0
[ "MIT" ]
334
2016-08-29T12:34:18.000Z
2022-01-31T09:14:30.000Z
__version__ = "2.9.10"
11.5
22
0.652174
4
23
2.75
1
0
0
0
0
0
0
0
0
0
0
0.2
0.130435
23
1
23
23
0.35
0
0
0
0
0
0.26087
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
a2ebe5b887b32f0561c68f37282697177b6753ec
3,880
py
Python
deep-rl/lib/python2.7/site-packages/OpenGL/GL/ATI/text_fragment_shader.py
ShujaKhalid/deep-rl
99c6ba6c3095d1bfdab81bd01395ced96bddd611
[ "MIT" ]
210
2016-04-09T14:26:00.000Z
2022-03-25T18:36:19.000Z
deep-rl/lib/python2.7/site-packages/OpenGL/GL/ATI/text_fragment_shader.py
ShujaKhalid/deep-rl
99c6ba6c3095d1bfdab81bd01395ced96bddd611
[ "MIT" ]
72
2016-09-04T09:30:19.000Z
2022-03-27T17:06:53.000Z
deep-rl/lib/python2.7/site-packages/OpenGL/GL/ATI/text_fragment_shader.py
ShujaKhalid/deep-rl
99c6ba6c3095d1bfdab81bd01395ced96bddd611
[ "MIT" ]
64
2016-04-09T14:26:49.000Z
2022-03-21T11:19:47.000Z
'''OpenGL extension ATI.text_fragment_shader This module customises the behaviour of the OpenGL.raw.GL.ATI.text_fragment_shader to provide a more Python-friendly API Overview (from the spec) The ATI_fragment_shader extension exposes a powerful fragment processing model that provides a very general means of expressing fragment color blending and dependent texture address modification. The processing is termed a fragment shader or fragment program and is specifed using a register-based model in which there are fixed numbers of instructions, texture lookups, read/write registers, and constants. ATI_fragment_shader provides a unified instruction set for operating on address or color data and eliminates the distinction between the two. That extension provides all the interfaces necessary to fully expose this programmable fragment processor in GL. ATI_text_fragment_shader is a redefinition of the ATI_fragment_shader functionality, using a slightly different interface. The intent of creating ATI_text_fragment_shader is to take a step towards treating fragment programs similar to other programmable parts of the GL rendering pipeline, specifically vertex programs. This new interface is intended to appear similar to the ARB_vertex_program API, within the limits of the feature set exposed by the original ATI_fragment_shader extension. The most significant differences between the two extensions are: (1) ATI_fragment_shader provides a procedural function call interface to specify the fragment program, whereas ATI_text_fragment_shader uses a textual string to specify the program. The fundamental syntax and constructs of the program "language" remain the same. (2) The program object managment portions of the interface, namely the routines used to create, bind, and delete program objects and set program constants are managed using the framework defined by ARB_vertex_program. (3) ATI_fragment_shader refers to the description of the programmable fragment processing as a "fragment shader". In keeping with the desire to treat all programmable parts of the pipeline consistently, ATI_text_fragment_shader refers to these as "fragment programs". The name of the extension is left as ATI_text_fragment_shader instead of ATI_text_fragment_program in order to indicate the underlying similarity between the API's of the two extensions, and to differentiate it from any other potential extensions that may be able to move even further in the direction of treating fragment programs as just another programmable area of the GL pipeline. Although ATI_fragment_shader was originally conceived as a device-independent extension that would expose the capabilities of future generations of hardware, changing trends in programmable hardware have affected the lifespan of this extension. For this reason you will now find a fixed set of features and resources exposed, and the queries to determine this set have been deprecated in ATI_fragment_shader. Further, in ATI_text_fragment_shader, most of these resource limits are fixed by the text grammar and the queries have been removed altogether. The official definition of this extension is available here: http://www.opengl.org/registry/specs/ATI/text_fragment_shader.txt ''' from OpenGL import platform, constant, arrays from OpenGL import extensions, wrapper import ctypes from OpenGL.raw.GL import _types, _glgets from OpenGL.raw.GL.ATI.text_fragment_shader import * from OpenGL.raw.GL.ATI.text_fragment_shader import _EXTENSION_NAME def glInitTextFragmentShaderATI(): '''Return boolean indicating whether this extension is available''' from OpenGL import extensions return extensions.hasGLExtension( _EXTENSION_NAME ) ### END AUTOGENERATED SECTION
46.190476
71
0.802835
565
3,880
5.412389
0.410619
0.096141
0.058862
0.07554
0.070634
0.037933
0.037933
0.027469
0.027469
0
0
0.000932
0.170361
3,880
84
72
46.190476
0.949053
1.001031
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
true
0
0.777778
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
0c3043c88aed8f6a40aafefe3d1e9548537a28e3
1,324
py
Python
management/api/v1/serializers.py
bwksoftware/cypetulip
4ea5c56d2d48a311220e144d094280a275109316
[ "MIT" ]
3
2019-08-03T12:00:22.000Z
2020-02-02T08:37:09.000Z
management/api/v1/serializers.py
basetwode/cypetulip
d6be294a288706c5661afb433215fe6c3ffea92b
[ "MIT" ]
47
2019-08-03T16:17:41.000Z
2022-03-11T23:15:48.000Z
management/api/v1/serializers.py
basetwode/cypetulip
d6be294a288706c5661afb433215fe6c3ffea92b
[ "MIT" ]
null
null
null
from rest_framework import serializers from management.models.main import MailSetting, LdapSetting, ShopSetting, LegalSetting, Header, CacheSetting, Footer class MailSettingSerializer(serializers.ModelSerializer): id = serializers.ReadOnlyField() class Meta: model = MailSetting fields = '__all__' class LdapSettingSerializer(serializers.ModelSerializer): id = serializers.ReadOnlyField() class Meta: model = LdapSetting fields = '__all__' class ShopSettingSerializer(serializers.ModelSerializer): id = serializers.ReadOnlyField() class Meta: model = ShopSetting fields = '__all__' class LegalSettingSerializer(serializers.ModelSerializer): id = serializers.ReadOnlyField() class Meta: model = LegalSetting fields = '__all__' class HeaderSerializer(serializers.ModelSerializer): id = serializers.ReadOnlyField() class Meta: model = Header fields = '__all__' class FooterSerializer(serializers.ModelSerializer): id = serializers.ReadOnlyField() class Meta: model = Footer fields = '__all__' class CacheSettingSerializer(serializers.ModelSerializer): id = serializers.ReadOnlyField() class Meta: model = CacheSetting fields = '__all__'
22.066667
116
0.702417
108
1,324
8.342593
0.277778
0.201998
0.217536
0.302997
0.512764
0.512764
0.512764
0.512764
0
0
0
0
0.22281
1,324
59
117
22.440678
0.875607
0
0
0.567568
0
0
0.037009
0
0
0
0
0
0
1
0
false
0
0.054054
0
0.621622
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
0c39dce08e2639d2b8e9721a52545154b1694858
196
py
Python
src/frr/tests/lib/test_nexthop_iter.py
zhouhaifeng/vpe
9c644ffd561988e5740021ed26e0f7739844353d
[ "Apache-2.0" ]
null
null
null
src/frr/tests/lib/test_nexthop_iter.py
zhouhaifeng/vpe
9c644ffd561988e5740021ed26e0f7739844353d
[ "Apache-2.0" ]
null
null
null
src/frr/tests/lib/test_nexthop_iter.py
zhouhaifeng/vpe
9c644ffd561988e5740021ed26e0f7739844353d
[ "Apache-2.0" ]
null
null
null
import frrtest class TestNexthopIter(frrtest.TestMultiOut): program = "./test_nexthop_iter" TestNexthopIter.onesimple("Simple test passed.") TestNexthopIter.onesimple("PRNG test passed.")
19.6
48
0.785714
20
196
7.6
0.65
0.315789
0
0
0
0
0
0
0
0
0
0
0.107143
196
9
49
21.777778
0.868571
0
0
0
0
0
0.280612
0
0
0
0
0
0
1
0
false
0.4
0.2
0
0.6
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
4
0c486c53d8fb3bd729143cb46efffc314acc492f
23
py
Python
Aulas/aula20/src/bb_circular.py
alexNeto/data-struct
f54917247a4e75ffe15783b0a025185d2215309a
[ "BSD-2-Clause" ]
5
2017-08-25T19:24:47.000Z
2020-01-19T15:52:02.000Z
Aulas/aula20/src/bb_circular.py
alexNeto/data-struct
f54917247a4e75ffe15783b0a025185d2215309a
[ "BSD-2-Clause" ]
null
null
null
Aulas/aula20/src/bb_circular.py
alexNeto/data-struct
f54917247a4e75ffe15783b0a025185d2215309a
[ "BSD-2-Clause" ]
5
2017-09-25T14:49:43.000Z
2019-11-27T00:05:56.000Z
class Circular():
11.5
18
0.565217
2
23
6.5
1
0
0
0
0
0
0
0
0
0
0
0
0.304348
23
2
19
11.5
0.8125
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
0c51490cf6a9e00d3f171f44d583a875d050c2af
244
py
Python
store/admin.py
salemzii/ChopFast
95ea88387ecfdb56bd643970b69425b1a1c6f388
[ "MIT" ]
null
null
null
store/admin.py
salemzii/ChopFast
95ea88387ecfdb56bd643970b69425b1a1c6f388
[ "MIT" ]
null
null
null
store/admin.py
salemzii/ChopFast
95ea88387ecfdb56bd643970b69425b1a1c6f388
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import (Dish, Payments, Order, Delivery, OrderItem) admin.site.register(Dish) admin.site.register(Payments) admin.site.register(Order) admin.site.register(Delivery) admin.site.register(OrderItem)
24.4
64
0.807377
33
244
5.969697
0.393939
0.228426
0.431472
0
0
0
0
0
0
0
0
0
0.077869
244
9
65
27.111111
0.875556
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.285714
0
0.285714
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
0c53db086eb0eb7f6a00e60d3b14eacbfe7ba92e
97
py
Python
instaphotos/apps.py
LekamCharity/insta-IG
0302440df3b2029297af54eb9c56090f82232973
[ "MIT" ]
null
null
null
instaphotos/apps.py
LekamCharity/insta-IG
0302440df3b2029297af54eb9c56090f82232973
[ "MIT" ]
null
null
null
instaphotos/apps.py
LekamCharity/insta-IG
0302440df3b2029297af54eb9c56090f82232973
[ "MIT" ]
null
null
null
from django.apps import AppConfig class InstaphotosConfig(AppConfig): name = 'instaphotos'
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
a7574a31d3793e68486c1afc1807fc0afcd14ce5
6,594
py
Python
project/apps/CI-producer/app/producers_test.py
Monxun/PortainerPractice
a3be077efe5c5eb2aa27b6a2fcf626989bdbbbe4
[ "MIT" ]
null
null
null
project/apps/CI-producer/app/producers_test.py
Monxun/PortainerPractice
a3be077efe5c5eb2aa27b6a2fcf626989bdbbbe4
[ "MIT" ]
1
2022-03-02T22:54:36.000Z
2022-03-02T22:54:36.000Z
project/apps/CI-producer/app/producers_test.py
Monxun/PortainerPractice
a3be077efe5c5eb2aa27b6a2fcf626989bdbbbe4
[ "MIT" ]
null
null
null
from os import strerror import os import pytest import datetime import sqlalchemy from sqlalchemy import inspect from sqlalchemy import select from sqlalchemy.orm import session from sqlalchemy.sql.expression import func ################################################# # DATABASE CONNECTOR user = 'user' password = 'root' host = 'localhost' port = 3306 name = 'alinedb' engine = sqlalchemy.create_engine( f'mysql+pymysql://{user}:{password}@{host}:{port}/{name}', echo=True ) inspector = inspect(engine) for table_name in inspector.get_table_names(): print(table_name) Session = session.sessionmaker() Session.configure(bind=engine) my_session = Session() ################################################# # TEST ''' Module to test producers ''' from models import ( Applicant, Bank, Merchant, Application, Branch, Member, Account, User, OneTimePasscode, Transaction, UserRegistrationToken ) def test_create_applicants() -> None: test_object = my_session.query(Applicant).first() assert isinstance(test_object.id, int) assert isinstance(test_object.address, str) assert isinstance(test_object.city, str) assert isinstance(test_object.created_at, datetime.datetime) assert isinstance(test_object.date_of_birth, datetime.date) assert isinstance(test_object.drivers_license, str) assert isinstance(test_object.email, str) assert isinstance(test_object.first_name, str) assert isinstance(test_object.gender, str) assert isinstance(test_object.income, int) assert isinstance(test_object.last_modified_at_at, datetime.datetime) assert isinstance(test_object.last_name, str) assert isinstance(test_object.mailing_address, str) assert isinstance(test_object.mailing_city, str) assert isinstance(test_object.mailing_state, str) assert isinstance(test_object.mailing_zipcode, str) assert isinstance(test_object.middle_name, str) assert isinstance(test_object.phone, str) assert isinstance(test_object.social_security, str) assert isinstance(test_object.state, str) assert isinstance(test_object.zipcode, str) def test_create_banks() -> None: test_object = my_session.query(Bank).first() assert isinstance(test_object.id, int) assert isinstance(test_object.address, str) assert isinstance(test_object.city, str) assert isinstance(test_object.routing_number, str) assert isinstance(test_object.state, str) assert isinstance(test_object.zipcode, str) def test_create_merchants() -> None: test_object = my_session.query(Merchant).first() assert isinstance(test_object.code, str) assert isinstance(test_object.address, str) assert isinstance(test_object.city, str) assert isinstance(test_object.description, str) assert isinstance(test_object.name, str) assert isinstance(test_object.registered_at, datetime.datetime) assert isinstance(test_object.state, str) assert isinstance(test_object.zipcode, str) def test_create_applications() -> None: test_object = my_session.query(Application).first() assert isinstance(test_object.id, int) assert isinstance(test_object.application_status, str) assert isinstance(test_object.application_type, str) assert isinstance(test_object.primary_applicant_id, int) def test_create_branches() -> None: test_object = my_session.query(Branch).first() assert isinstance(test_object.id, int) assert isinstance(test_object.address, str) assert isinstance(test_object.city, str) assert isinstance(test_object.name, str) assert isinstance(test_object.phone, str) assert isinstance(test_object.state, str) assert isinstance(test_object.zipcode, str) assert isinstance(test_object.bank_id, int) def test_create_members() -> None: test_object = my_session.query(Member).first() assert isinstance(test_object.id, int) assert isinstance(test_object.membership_id, str) assert isinstance(test_object.applicant_id, int) assert isinstance(test_object.branch_id, int) def test_create_accounts() -> None: test_object = my_session.query(Account).first() assert isinstance(test_object.account_type, str) assert isinstance(test_object.id, int) assert isinstance(test_object.account_number, str) assert isinstance(test_object.balance, int) assert isinstance(test_object.status, str) assert isinstance(test_object.available_balance, int) assert isinstance(test_object.apy, float) assert isinstance(test_object.primary_account_holder_id, int) def test_create_users() -> None: test_object = my_session.query(User).first() assert isinstance(test_object.role, str) assert isinstance(test_object.id, int) assert isinstance(test_object.enabled, int) assert isinstance(test_object.password, str) assert isinstance(test_object.username, str) assert isinstance(test_object.email, str) assert isinstance(test_object.first_name, str) assert isinstance(test_object.last_name, str) assert isinstance(test_object.phone, str) assert isinstance(test_object.member_id, int) def test_create_one_time_passcodes() -> None: test_object = my_session.query(OneTimePasscode).first() assert isinstance(test_object.id, int) assert isinstance(test_object.checked, int) assert isinstance(test_object.otp, str) assert isinstance(test_object.user_id, int) def test_create_transactions() -> None: test_object = my_session.query(Transaction).first() assert isinstance(test_object.id, int) assert isinstance(test_object.amount, int) assert isinstance(test_object.date, datetime.datetime) assert isinstance(test_object.description, str) assert isinstance(test_object.initial_balance, int) assert isinstance(test_object.last_modified, datetime.date) assert isinstance(test_object.method, str) assert isinstance(test_object.posted_balance, int) assert isinstance(test_object.state, str) assert isinstance(test_object.status, str) assert isinstance(test_object.type, str) assert isinstance(test_object.account_id, int) assert isinstance(test_object.merchant_code, str) def test_create_user_registration_tokens() -> None: test_object = my_session.query(UserRegistrationToken).first() assert isinstance(test_object.token, str) assert isinstance(test_object.created, datetime.datetime) assert isinstance(test_object.expiration_delay, int) assert isinstance(test_object.user_id, int)
30.957746
74
0.746588
825
6,594
5.741818
0.156364
0.213215
0.379987
0.493984
0.766519
0.654634
0.454296
0.40532
0.40532
0.40532
0
0.000714
0.15044
6,594
212
75
31.103774
0.844877
0.003488
0
0.288591
0
0
0.012117
0.008389
0
0
0
0
0.604027
1
0.073826
false
0.040268
0.067114
0
0.14094
0.006711
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
a75f0071595f1cf5e30f78a377181f6b55570f76
61
py
Python
core/models/__init__.py
Bhaskers-Blu-Org1/bLVNet-TAM
feadcd3a1a25723dc28bed867580032181e824a3
[ "Apache-2.0" ]
62
2019-10-22T14:52:30.000Z
2021-07-27T12:07:38.000Z
core/models/__init__.py
Bhaskers-Blu-Org1/bLVNet-TAM
feadcd3a1a25723dc28bed867580032181e824a3
[ "Apache-2.0" ]
6
2019-12-16T06:03:42.000Z
2020-08-31T07:59:04.000Z
core/models/__init__.py
IBM/bLVNet-TAM
feadcd3a1a25723dc28bed867580032181e824a3
[ "Apache-2.0" ]
16
2019-11-02T06:49:19.000Z
2021-12-30T14:51:48.000Z
from .blvnet_tam import bLVNet_TAM __all__ = ['bLVNet_TAM']
15.25
34
0.770492
9
61
4.444444
0.555556
0.675
0
0
0
0
0
0
0
0
0
0
0.131148
61
4
35
15.25
0.754717
0
0
0
0
0
0.163934
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
a76eab46ba07f0fb8885169ad3e849032ee2d76c
81
py
Python
tests/conf.py
xncbf/django-dynamodb-cache
be6d1b4b8e92d581041043bcd694f2a9f00ee386
[ "MIT" ]
21
2022-02-16T10:18:24.000Z
2022-03-31T23:40:06.000Z
tests/conf.py
xncbf/django-dynamodb-cache
be6d1b4b8e92d581041043bcd694f2a9f00ee386
[ "MIT" ]
9
2022-03-01T06:40:59.000Z
2022-03-26T08:12:31.000Z
tests/conf.py
xncbf/django-dynamodb-cache
be6d1b4b8e92d581041043bcd694f2a9f00ee386
[ "MIT" ]
null
null
null
from random import random TABLE_NAME = f"test-django-dynamodb-cache-{random()}"
20.25
53
0.765432
12
81
5.083333
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.098765
81
3
54
27
0.835616
0
0
0
0
0
0.45679
0.45679
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
a7857bc199ab6450358c23073cebf9f0bd31bb0d
352
py
Python
rules_default/castervoice/lib/ctrl/mgr/grammar_container/base_grammar_container.py
MLH-Fellowship/LarynxCode
840fee18c689a357052825607c27fc8e3e56571c
[ "MIT" ]
1
2021-09-17T06:11:02.000Z
2021-09-17T06:11:02.000Z
rules_default/castervoice/lib/ctrl/mgr/grammar_container/base_grammar_container.py
soma2000-lang/LarynxCode
840fee18c689a357052825607c27fc8e3e56571c
[ "MIT" ]
5
2021-02-03T05:29:41.000Z
2021-02-08T01:14:11.000Z
rules_default/castervoice/lib/ctrl/mgr/grammar_container/base_grammar_container.py
soma2000-lang/LarynxCode
840fee18c689a357052825607c27fc8e3e56571c
[ "MIT" ]
4
2021-02-03T05:05:00.000Z
2021-07-14T06:21:10.000Z
from castervoice.lib.ctrl.mgr.errors.base_class_error import DontUseBaseClassError class BaseGrammarContainer(object): def set_non_ccr(self, rcn, grammar): raise DontUseBaseClassError(self) def set_ccr(self, ccr_grammars): raise DontUseBaseClassError(self) def wipe_ccr(self): raise DontUseBaseClassError(self)
25.142857
82
0.75
40
352
6.425
0.575
0.081712
0.350195
0.256809
0
0
0
0
0
0
0
0
0.176136
352
13
83
27.076923
0.886207
0
0
0.375
0
0
0
0
0
0
0
0
0
1
0.375
false
0
0.125
0
0.625
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
a7b4c6f5823d6451d0e2b584c552a30bc5d41136
191
py
Python
portal/template.py
SlapBass/nx-portal
ee262079db1e5230a24ebbc205e44926f11f8da9
[ "Apache-2.0" ]
5
2019-10-04T04:46:44.000Z
2019-10-09T10:02:01.000Z
portal/template.py
SlapBass/nx-portal
ee262079db1e5230a24ebbc205e44926f11f8da9
[ "Apache-2.0" ]
9
2019-10-06T07:15:09.000Z
2020-09-24T02:19:40.000Z
portal/template.py
SlapBass/nx-portal
ee262079db1e5230a24ebbc205e44926f11f8da9
[ "Apache-2.0" ]
1
2020-06-19T13:26:08.000Z
2020-06-19T13:26:08.000Z
from django.conf import settings def shared_view_contexts(request): return { 'APP_NAME': settings.APPLICATION_NAME, 'SEASONABLE_EMOJI': settings.SEASONABLE_EMOJI, }
21.222222
54
0.712042
21
191
6.190476
0.761905
0.230769
0
0
0
0
0
0
0
0
0
0
0.204188
191
8
55
23.875
0.855263
0
0
0
0
0
0.125654
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0.166667
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
0
1
0
0
0
4
ac0aebc29b01daccd8a1302b366f51ee3eb40958
190
py
Python
intered/bin/django-admin.py
allenallen/interedregistration
d6b93bfc33d7bb9bfbabdcdb27b685f3a6be3ea9
[ "MIT" ]
null
null
null
intered/bin/django-admin.py
allenallen/interedregistration
d6b93bfc33d7bb9bfbabdcdb27b685f3a6be3ea9
[ "MIT" ]
6
2020-02-11T23:05:13.000Z
2021-06-10T20:43:51.000Z
intered/bin/django-admin.py
allenallen/interedregistration
d6b93bfc33d7bb9bfbabdcdb27b685f3a6be3ea9
[ "MIT" ]
null
null
null
#!/home/allen/Documents/TamarawTechProjects/interedregistration/intered/bin/python3 from django.core import management if __name__ == "__main__": management.execute_from_command_line()
31.666667
83
0.821053
21
190
6.904762
0.904762
0
0
0
0
0
0
0
0
0
0
0.005714
0.078947
190
5
84
38
0.822857
0.431579
0
0
0
0
0.074766
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
ac1910c0faa98f5af77a97256be74c749f17725a
279
py
Python
DeepRTS/__init__.py
cair/deep-rts
7aa5dde0c5df10ae3a3d057e7b89641aec58e115
[ "MIT" ]
144
2018-07-13T07:47:50.000Z
2022-03-31T06:29:50.000Z
DeepRTS/__init__.py
cair/DeepRTS
2ea4de0993ea0ca2677fdb36a172779db4ce7868
[ "MIT" ]
18
2019-03-29T10:37:01.000Z
2022-03-02T12:47:34.000Z
DeepRTS/__init__.py
cair/DeepRTS
2ea4de0993ea0ca2677fdb36a172779db4ce7868
[ "MIT" ]
23
2018-11-02T18:12:51.000Z
2022-02-15T20:32:18.000Z
try: from DeepRTS import Engine except ImportError: import Engine try: from DeepRTS.Engine import Map, UnitManager, Constants, Player from DeepRTS.Engine import Constants except ImportError: from Engine import Map, UnitManager, Constants, Player, Constants
23.25
69
0.763441
33
279
6.454545
0.333333
0.15493
0.131455
0.215962
0.384977
0.384977
0
0
0
0
0
0
0.189964
279
11
70
25.363636
0.942478
0
0
0.444444
0
0
0
0
0
0
0
0
0
1
0
true
0
0.777778
0
0.777778
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
ac3000c2861cfc54577cebc22127160c6d8e95fb
86
py
Python
ipfsApi/__init__.py
dardevelin/python-ipfs-api
841595f7d2b07db511eef34aa046163ee4a3020e
[ "MIT" ]
1
2018-08-14T02:10:35.000Z
2018-08-14T02:10:35.000Z
ipfsApi/__init__.py
ipfs-client-libraries/python-ipfs-api
841595f7d2b07db511eef34aa046163ee4a3020e
[ "MIT" ]
null
null
null
ipfsApi/__init__.py
ipfs-client-libraries/python-ipfs-api
841595f7d2b07db511eef34aa046163ee4a3020e
[ "MIT" ]
1
2022-01-28T13:37:31.000Z
2022-01-28T13:37:31.000Z
from __future__ import absolute_import from .client import * __version__ = '0.2.2'
12.285714
38
0.755814
12
86
4.666667
0.666667
0
0
0
0
0
0
0
0
0
0
0.041667
0.162791
86
6
39
14.333333
0.736111
0
0
0
0
0
0.05814
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
ac45e6abbbb88f1ae1939bcf71db99437c006d19
154
py
Python
desafios/des003/des003_p03.py
brenoedl0/python
92ee4ea141584e0bd140449c093f871c2140b1a5
[ "MIT" ]
null
null
null
desafios/des003/des003_p03.py
brenoedl0/python
92ee4ea141584e0bd140449c093f871c2140b1a5
[ "MIT" ]
null
null
null
desafios/des003/des003_p03.py
brenoedl0/python
92ee4ea141584e0bd140449c093f871c2140b1a5
[ "MIT" ]
null
null
null
nota1 = float(input('nota 1: ')) nota2 = float(input('nota 2: ')) media = (nota1 + nota2)/2 print('A media entre a nota 1 e a nota 2 é {}'.format(media))
30.8
61
0.62987
28
154
3.464286
0.5
0.206186
0.28866
0
0
0
0
0
0
0
0
0.070866
0.175325
154
4
62
38.5
0.692913
0
0
0
0
0
0.350649
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
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
ac4e9a7286b947fb0b00f67815da9872ce954025
161
py
Python
Estrutura_Decisao/pair_or_odd.py
M3nin0/supreme-broccoli
186c1ea3b839ba3139f9301660dec8fbd27a162e
[ "Apache-2.0" ]
null
null
null
Estrutura_Decisao/pair_or_odd.py
M3nin0/supreme-broccoli
186c1ea3b839ba3139f9301660dec8fbd27a162e
[ "Apache-2.0" ]
null
null
null
Estrutura_Decisao/pair_or_odd.py
M3nin0/supreme-broccoli
186c1ea3b839ba3139f9301660dec8fbd27a162e
[ "Apache-2.0" ]
null
null
null
num = int(input("Insira um numero para descobrir se este é par ou impar: ")) if num % 2 == 0: print("Este numero é par") else: print("Este numero é impar")
17.888889
76
0.658385
29
161
3.655172
0.655172
0.075472
0.283019
0.301887
0
0
0
0
0
0
0
0.015748
0.21118
161
8
77
20.125
0.818898
0
0
0
0
0
0.578616
0
0
0
0
0
0
1
0
false
0
0
0
0
0.4
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
ac53b737b7f7790c24745dd75f232a7019768317
7,968
py
Python
challenges/challenge1_test.py
jamiejamiebobamie/CS-2.2-Advanced-Recursion-and-Graphs
3de50122ed783ee9dee251ae87173286a861f33d
[ "MIT" ]
null
null
null
challenges/challenge1_test.py
jamiejamiebobamie/CS-2.2-Advanced-Recursion-and-Graphs
3de50122ed783ee9dee251ae87173286a861f33d
[ "MIT" ]
5
2019-07-26T05:39:34.000Z
2019-08-16T14:59:21.000Z
challenges/challenge1_test.py
jamiejamiebobamie/CS-2.2-Advanced-Recursion-and-Graphs
3de50122ed783ee9dee251ae87173286a861f33d
[ "MIT" ]
null
null
null
import unittest from challenge1 import * """class Test_Read_Graph_Method(unittest.TestCase): def __init__(self): super(TestingClass, self).__init__() self.filepath = "graph_data.txt" self.vertices, self.edges = read_graph(filepath) def test_read(self): self.assertTrue(self.vertices,['1', '2', '3', '4']) self.assertTrue(self.edges,[(1,2), (1,4), (2,3), (2,4)]) class Test_LLGraph_Methods(unittest.TestCase): def __init__(self): super(TestingClass, self).__init__() self.filepath = "graph_data.txt" self.vertices, self.edges = read_graph(filepath) self.LLGraph = LLGraph(self.vertices) def test_init_(self): self.assertTrue(self.LLGraph.numberOfVertices, 4) self.assertTrue(self.LLGraph.get_vertices(), ['1', '2', '3', '4']) def test_add_edges(self): self.LLGraph.add_edges(self.edges) self.assertTrue(self.LLGraph.get_edges(1), [(1, 2, 1), (1, 4, 1)]) self.assertTrue(self.LLGraph.get_edges(2), [(2, 3, 1), (2, 4, 1)]) self.assertTrue(self.LLGraph.get_edges(3), "No out-going edges.") self.assertTrue(self.LLGraph.get_edges(4), "No out-going edges.") self.LLGraph.add_edge(1, 3, 5) self.assertTrue(self.LLGraph.get_edges(1), [(1, 2, 1), (1, 4, 1), (1, 3, 5)]) self.LLGraph.add_edge(4, 3, 2) self.assertTrue(self.LLGraph.get_edges(4), (4, 3, 2)) self.LLGraph.add_edge(3, 4) # testing default weight of one if weight is not entered self.assertTrue(self.LLGraph.get_edges(3), (3, 4, 1)) def test_add_vertex(self): self.LLGraph.add_vertex() self.assertTrue(self.LLGraph.get_vertices(), ['1', '2', '3', '4', '5']) self.assertTrue(self.LLGraph.numberOfVertices, 5) # def test_iter_(self): # self.assertTrue(self.LLGraph.__iter__(), ['1', [(1, 2, 1), (1, 4, 1), (1, 3, 5)]], ['2', [(2, 3, 1), (2, 4, 1)]], ['3', (3, 4, 1)], ['4', (4, 3, 2)], ['5', 'No out-going edges.']]) def test_get_neighbors_of_a_vertex(self): self.assertTrue(self.LLGraph.get_neighbors_of_a_vertex(1), [2, 4, 3]) class Test_AM_Graph_Methods(unittest.TestCase): def __init__(self): super(TestingClass, self).__init__() self.filepath = "graph_data.txt" self.vertices, self.edges = read_graph(filepath) self.AMGraph = AMGraph(len(self.vertices)) def test_init_(self): self.assertTrue(self.AMGraph.numberOfVertices, 4) self.assertTrue(self.AMGraph.get_vertices(), [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]) def test_add_edges(self): self.AMGraph.add_edges(self.edges) self.assertTrue(self.AMGraph.get_edges(1), [0, 1, 0, 1]) self.assertTrue(self.AMGraph.get_edges(2), [0, 0, 1, 1]) self.assertTrue(self.AMGraph.get_edges(3), [0, 0, 0, 0]) self.assertTrue(self.AMGraph.get_edges(4), [0, 0, 0, 0]) selfAMLGraph.add_edge(1, 3, 5) self.assertTrue(self.AMGraph.get_edges(1), [0, 1, 5, 1]) self.AMGraph.add_edge(4, 3, 2) self.assertTrue(self.AMGraph.get_edges(4), [0, 0, 2, 0]) self.AMGraph.add_edge(3, 4) # testing default weight of one if weight is not entered self.assertTrue(self.AMGraph.get_edges(3), [0, 0, 0, 1]) def test_add_vertex(self): self.AMGraph.add_vertex() self.assertTrue(self.AMGraph.get_vertices(), [[0, 1, 5, 1, 0], [0, 0, 1, 1, 0], [0, 0, 0, 1, 0], [0, 0, 2, 0, 0], [0, 0, 0, 0, 0]]) self.assertTrue(self.AMGraph.numberOfVertices, 5) class Test_Dict_Graph_Methods(unittest.TestCase): def __init__(self): super(TestingClass, self).__init__() self.filepath = "graph_data.txt" self.vertices, self.edges = read_graph(filepath) self.Graph = Graph(len(self.vertices)) def test_init_(self): self.assertTrue(self.Graph.numberOfVertices, 4) self.assertTrue(self.Graph.get_vertices(), ['1', '2', '3', '4']) def test_add_edges(self): self.Graph.add_edges(self.edges) self.assertTrue(self.Graph.get_edges(1), [(1, 2, 1), (1, 4, 1)]) self.assertTrue(self.Graph.get_edges(2), [(2, 3, 1), (2, 4, 1)]) self.assertTrue(self.Graph.get_edges(3), "No out-going edges.") self.assertTrue(self.Graph.get_edges(4), "No out-going edges.") self.Graph.add_edge(1, 3, 5) self.assertTrue(self.Graph.get_edges(1), [(1, 2, 1), (1, 4, 1), (1, 3, 5)]) self.Graph.add_edge(4, 3, 2) self.assertTrue(self.Graph.get_edges(4), (4, 3, 2)) self.Graph.add_edge(3, 4) # testing default weight of one if weight is not entered self.assertTrue(self.Graph.get_edges(3), (3, 4, 1)) def test_add_vertex(self): self.Graph.add_vertex() self.assertTrue(self.Graph.get_vertices(), ['1', '2', '3', '4', '5']) self.assertTrue(self.Graph.numberOfVertices, 5) # def test_iter_(self): # self.assertTrue(self.LLGraph.__iter__(), ['1', [(1, 2, 1), (1, 4, 1), (1, 3, 5)]], ['2', [(2, 3, 1), (2, 4, 1)]], ['3', (3, 4, 1)], ['4', (4, 3, 2)], ['5', 'No out-going edges.']]) def test_get_neighbors_of_a_vertex(self): self.assertTrue(self.Graph.get_neighbors_of_a_vertex(1), [2, 4, 3]) if __name__ == '__main__': unittest.main()""" from challenge1 import * filepath = "graph_data.txt" data = read_graph(filepath) assert data[0] == ['1', '2', '3', '4'] assert data[1] == [(1,2), (1,4), (2,3), (2,4)] # linked list implementation print("\ntesting linked list implementation...") newGraph = LLGraph(data[0]) # adding the vertices assert newGraph.numberOfVertices == 4 assert newGraph.get_vertices() == ['1', '2', '3', '4'] newGraph.add_edges(data[1]) # adding edges assert newGraph.get_edges(1) == [(1, 2, 1), (1, 4, 1)] assert newGraph.get_edges(2) == [(2, 3, 1), (2, 4, 1)] assert newGraph.get_edges(3) and newGraph.get_edges(4) == "No out-going edges." newGraph.add_edge(1, 3, 5) assert newGraph.get_edges(1) == [(1, 2, 1), (1, 4, 1), (1, 3, 5)] newGraph.add_edge(4, 3, 2) assert newGraph.get_edges(4) == (4, 3, 2) newGraph.add_edge(3, 4) assert newGraph.get_edges(3) == (3, 4, 1) assert newGraph.get_vertices() == ['1','2','3','4'] assert newGraph.numberOfVertices == 4 newGraph.add_vertex() assert newGraph.get_vertices() == ['1','2','3','4','5'] assert newGraph.numberOfVertices == 5 assert newGraph.__iter__() == [['1', [(1, 2, 1), (1, 4, 1), (1, 3, 5)]], ['2', [(2, 3, 1), (2, 4, 1)]], ['3', (3, 4, 1)], ['4', (4, 3, 2)], ['5', 'No out-going edges.']] assert newGraph.get_neighbors_of_a_vertex(1) == [2, 4, 3] linkedL = LinkedList() newGraph.vertices.append(linkedL) newGraph.numberOfVertices += 1 # hacking my graph to test getVertex method assert newGraph.get_vertex(newGraph.numberOfVertices) == linkedL print("all linked-list-graph tests pass") # adjacency matrix implementation print("\ntesting adjacenecy matrix implementation...") newGraph = AMGraph(len(data[0])) # adding the vertices assert newGraph.numberOfVertices == 4 assert newGraph.vertices == [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]] assert newGraph.get_vertices() == [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]] newGraph.add_edges(data[1]) # adding edges assert newGraph.get_edges(1) == [0, 1, 0, 1] assert newGraph.get_edges(2) == [0, 0, 1, 1] assert newGraph.get_edges(3) and newGraph.get_edges(4) == [0, 0, 0, 0] newGraph.add_edge(1, 3, 5) assert newGraph.get_edges(1) == [0, 1, 5, 1] newGraph.add_edge(4, 3, 2) assert newGraph.get_edges(4) == [0, 0, 2, 0] newGraph.add_edge(3, 4) assert newGraph.get_edges(3) == [0, 0, 0, 1] newGraph.add_vertex() assert newGraph.numberOfVertices == 5 assert newGraph.vertices == [[0, 1, 5, 1, 0], [0, 0, 1, 1, 0], [0, 0, 0, 1, 0], [0, 0, 2, 0, 0], [0, 0, 0, 0, 0]] assert newGraph.get_vertices() == [[0, 1, 5, 1, 0], [0, 0, 1, 1, 0], [0, 0, 0, 1, 0], [0, 0, 2, 0, 0], [0, 0, 0, 0, 0]] print("all adjacenecy matrix graph tests pass")
41.717277
190
0.616717
1,272
7,968
3.713836
0.062107
0.04276
0.048899
0.048264
0.823243
0.781118
0.75
0.689035
0.627434
0.568586
0
0.07639
0.185115
7,968
190
191
41.936842
0.651163
0.020833
0
0.358491
0
0
0.090297
0
0
0
0
0
0.54717
1
0
false
0.037736
0.056604
0
0.056604
0.075472
0
0
0
null
0
0
0
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
4
ac6d9ecff3da360afd64ff653a18f8313213ea89
13,844
py
Python
evmosproto/evmos/incentives/v1/incentives_pb2.py
hanchon-live/evmosproto
141f336cf027a88c5bf227ab49069dd1cf2e4853
[ "MIT" ]
null
null
null
evmosproto/evmos/incentives/v1/incentives_pb2.py
hanchon-live/evmosproto
141f336cf027a88c5bf227ab49069dd1cf2e4853
[ "MIT" ]
null
null
null
evmosproto/evmos/incentives/v1/incentives_pb2.py
hanchon-live/evmosproto
141f336cf027a88c5bf227ab49069dd1cf2e4853
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: evmos/incentives/v1/incentives.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from evmosproto.gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 from evmosproto.cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 DESCRIPTOR = _descriptor.FileDescriptor( name='evmos/incentives/v1/incentives.proto', package='evmos.incentives.v1', syntax='proto3', serialized_options=b'Z+github.com/tharsis/evmos/x/incentives/types', create_key=_descriptor._internal_create_key, serialized_pb=b'\n$evmos/incentives/v1/incentives.proto\x12\x13\x65vmos.incentives.v1\x1a\x14gogoproto/gogo.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\"\xe2\x01\n\tIncentive\x12\x10\n\x08\x63ontract\x18\x01 \x01(\t\x12\x66\n\x0b\x61llocations\x18\x02 \x03(\x0b\x32\x1c.cosmos.base.v1beta1.DecCoinB3\xc8\xde\x1f\x00\xaa\xdf\x1f+github.com/cosmos/cosmos-sdk/types.DecCoins\x12\x0e\n\x06\x65pochs\x18\x03 \x01(\r\x12\x38\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\x90\xdf\x1f\x01\xc8\xde\x1f\x00\x12\x11\n\ttotal_gas\x18\x05 \x01(\x04\"I\n\x08GasMeter\x12\x10\n\x08\x63ontract\x18\x01 \x01(\t\x12\x13\n\x0bparticipant\x18\x02 \x01(\t\x12\x16\n\x0e\x63umulative_gas\x18\x03 \x01(\x04\"\xcf\x01\n\x19RegisterIncentiveProposal\x12\r\n\x05title\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x10\n\x08\x63ontract\x18\x03 \x01(\t\x12\x66\n\x0b\x61llocations\x18\x04 \x03(\x0b\x32\x1c.cosmos.base.v1beta1.DecCoinB3\xc8\xde\x1f\x00\xaa\xdf\x1f+github.com/cosmos/cosmos-sdk/types.DecCoins\x12\x0e\n\x06\x65pochs\x18\x05 \x01(\r:\x04\xe8\xa0\x1f\x00\"U\n\x17\x43\x61ncelIncentiveProposal\x12\r\n\x05title\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x10\n\x08\x63ontract\x18\x03 \x01(\t:\x04\xe8\xa0\x1f\x00\x42-Z+github.com/tharsis/evmos/x/incentives/typesb\x06proto3' , dependencies=[gogoproto_dot_gogo__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,cosmos_dot_base_dot_v1beta1_dot_coin__pb2.DESCRIPTOR,]) _INCENTIVE = _descriptor.Descriptor( name='Incentive', full_name='evmos.incentives.v1.Incentive', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='contract', full_name='evmos.incentives.v1.Incentive.contract', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='allocations', full_name='evmos.incentives.v1.Incentive.allocations', index=1, number=2, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\310\336\037\000\252\337\037+github.com/cosmos/cosmos-sdk/types.DecCoins', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='epochs', full_name='evmos.incentives.v1.Incentive.epochs', index=2, number=3, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='start_time', full_name='evmos.incentives.v1.Incentive.start_time', index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\220\337\037\001\310\336\037\000', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='total_gas', full_name='evmos.incentives.v1.Incentive.total_gas', index=4, number=5, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=149, serialized_end=375, ) _GASMETER = _descriptor.Descriptor( name='GasMeter', full_name='evmos.incentives.v1.GasMeter', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='contract', full_name='evmos.incentives.v1.GasMeter.contract', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='participant', full_name='evmos.incentives.v1.GasMeter.participant', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='cumulative_gas', full_name='evmos.incentives.v1.GasMeter.cumulative_gas', index=2, number=3, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=377, serialized_end=450, ) _REGISTERINCENTIVEPROPOSAL = _descriptor.Descriptor( name='RegisterIncentiveProposal', full_name='evmos.incentives.v1.RegisterIncentiveProposal', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='title', full_name='evmos.incentives.v1.RegisterIncentiveProposal.title', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='description', full_name='evmos.incentives.v1.RegisterIncentiveProposal.description', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='contract', full_name='evmos.incentives.v1.RegisterIncentiveProposal.contract', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='allocations', full_name='evmos.incentives.v1.RegisterIncentiveProposal.allocations', index=3, number=4, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\310\336\037\000\252\337\037+github.com/cosmos/cosmos-sdk/types.DecCoins', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='epochs', full_name='evmos.incentives.v1.RegisterIncentiveProposal.epochs', index=4, number=5, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=b'\350\240\037\000', is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=453, serialized_end=660, ) _CANCELINCENTIVEPROPOSAL = _descriptor.Descriptor( name='CancelIncentiveProposal', full_name='evmos.incentives.v1.CancelIncentiveProposal', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='title', full_name='evmos.incentives.v1.CancelIncentiveProposal.title', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='description', full_name='evmos.incentives.v1.CancelIncentiveProposal.description', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='contract', full_name='evmos.incentives.v1.CancelIncentiveProposal.contract', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=b'\350\240\037\000', is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=662, serialized_end=747, ) _INCENTIVE.fields_by_name['allocations'].message_type = cosmos_dot_base_dot_v1beta1_dot_coin__pb2._DECCOIN _INCENTIVE.fields_by_name['start_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP _REGISTERINCENTIVEPROPOSAL.fields_by_name['allocations'].message_type = cosmos_dot_base_dot_v1beta1_dot_coin__pb2._DECCOIN DESCRIPTOR.message_types_by_name['Incentive'] = _INCENTIVE DESCRIPTOR.message_types_by_name['GasMeter'] = _GASMETER DESCRIPTOR.message_types_by_name['RegisterIncentiveProposal'] = _REGISTERINCENTIVEPROPOSAL DESCRIPTOR.message_types_by_name['CancelIncentiveProposal'] = _CANCELINCENTIVEPROPOSAL _sym_db.RegisterFileDescriptor(DESCRIPTOR) Incentive = _reflection.GeneratedProtocolMessageType('Incentive', (_message.Message,), { 'DESCRIPTOR' : _INCENTIVE, '__module__' : 'evmos.incentives.v1.incentives_pb2' # @@protoc_insertion_point(class_scope:evmos.incentives.v1.Incentive) }) _sym_db.RegisterMessage(Incentive) GasMeter = _reflection.GeneratedProtocolMessageType('GasMeter', (_message.Message,), { 'DESCRIPTOR' : _GASMETER, '__module__' : 'evmos.incentives.v1.incentives_pb2' # @@protoc_insertion_point(class_scope:evmos.incentives.v1.GasMeter) }) _sym_db.RegisterMessage(GasMeter) RegisterIncentiveProposal = _reflection.GeneratedProtocolMessageType('RegisterIncentiveProposal', (_message.Message,), { 'DESCRIPTOR' : _REGISTERINCENTIVEPROPOSAL, '__module__' : 'evmos.incentives.v1.incentives_pb2' # @@protoc_insertion_point(class_scope:evmos.incentives.v1.RegisterIncentiveProposal) }) _sym_db.RegisterMessage(RegisterIncentiveProposal) CancelIncentiveProposal = _reflection.GeneratedProtocolMessageType('CancelIncentiveProposal', (_message.Message,), { 'DESCRIPTOR' : _CANCELINCENTIVEPROPOSAL, '__module__' : 'evmos.incentives.v1.incentives_pb2' # @@protoc_insertion_point(class_scope:evmos.incentives.v1.CancelIncentiveProposal) }) _sym_db.RegisterMessage(CancelIncentiveProposal) DESCRIPTOR._options = None _INCENTIVE.fields_by_name['allocations']._options = None _INCENTIVE.fields_by_name['start_time']._options = None _REGISTERINCENTIVEPROPOSAL.fields_by_name['allocations']._options = None _REGISTERINCENTIVEPROPOSAL._options = None _CANCELINCENTIVEPROPOSAL._options = None # @@protoc_insertion_point(module_scope)
48.069444
1,372
0.769142
1,786
13,844
5.663494
0.113662
0.041127
0.061987
0.043599
0.75917
0.722096
0.641621
0.634701
0.626594
0.618092
0
0.046591
0.106978
13,844
287
1,373
48.236934
0.771576
0.038284
0
0.647059
1
0.011765
0.243534
0.207519
0
0
0
0
0
1
0
false
0
0.027451
0
0.027451
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
ac79385f0f5c532c4496afb0999dcc78d78a4e70
174
py
Python
Python32/hackeandoface3.py
andersonsilvade/python_C
ffc00184883089f1c2d9b8a6c32503b2c8b8d035
[ "MIT" ]
null
null
null
Python32/hackeandoface3.py
andersonsilvade/python_C
ffc00184883089f1c2d9b8a6c32503b2c8b8d035
[ "MIT" ]
null
null
null
Python32/hackeandoface3.py
andersonsilvade/python_C
ffc00184883089f1c2d9b8a6c32503b2c8b8d035
[ "MIT" ]
1
2020-11-04T08:36:28.000Z
2020-11-04T08:36:28.000Z
import urllib.request import json url = 'http://graph.facebook.com/fmasanori' resp = urllib.request.urlopen(url).read() data = json.loads(resp.decode('utf-8')) print(data)
19.333333
43
0.735632
26
174
4.923077
0.730769
0.203125
0
0
0
0
0
0
0
0
0
0.006329
0.091954
174
8
44
21.75
0.803797
0
0
0
0
0
0.231214
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.166667
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
ac844765c4ce5c32dfa9aa2da4c0094d7fbd95aa
154
py
Python
convert.py
Resist4263/span-aste-1
13815a262638592506b445315d03df8db965947b
[ "Apache-2.0" ]
null
null
null
convert.py
Resist4263/span-aste-1
13815a262638592506b445315d03df8db965947b
[ "Apache-2.0" ]
null
null
null
convert.py
Resist4263/span-aste-1
13815a262638592506b445315d03df8db965947b
[ "Apache-2.0" ]
null
null
null
from gensim.scripts.glove2word2vec import glove2word2vec (count, dimensions) = glove2word2vec("dataset/glove.42B.300d.txt", "dataset/cropus/42B_w2v.txt")
51.333333
96
0.811688
19
154
6.526316
0.736842
0
0
0
0
0
0
0
0
0
0
0.096552
0.058442
154
3
96
51.333333
0.758621
0
0
0
0
0
0.335484
0.335484
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
3bb2017aa37b51490a6ff0089cf9d21b31b7addf
220
py
Python
basic_assignment/32.py
1212091/python-learning
30fad66460daf73fd3961cf667ee25b91dee923d
[ "MIT" ]
null
null
null
basic_assignment/32.py
1212091/python-learning
30fad66460daf73fd3961cf667ee25b91dee923d
[ "MIT" ]
null
null
null
basic_assignment/32.py
1212091/python-learning
30fad66460daf73fd3961cf667ee25b91dee923d
[ "MIT" ]
null
null
null
class Circle: def __init__(self, radius): self.radius = radius def compute_area(self): return self.radius ** 2 * 3.14 circle = Circle(2) print("Area of circuit: " + str(circle.compute_area()))
20
55
0.631818
30
220
4.433333
0.533333
0.225564
0
0
0
0
0
0
0
0
0
0.029762
0.236364
220
10
56
22
0.761905
0
0
0
0
0
0.077273
0
0
0
0
0
0
1
0.285714
false
0
0
0.142857
0.571429
0.142857
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
3bd475c386fa8a4a56cad45921819b936313ea64
162
py
Python
exercise/6.py
zhaoshengshi/practicepython-exercise
3e123eb602aaf1c9638c7a2199607146e860b96c
[ "Apache-2.0" ]
null
null
null
exercise/6.py
zhaoshengshi/practicepython-exercise
3e123eb602aaf1c9638c7a2199607146e860b96c
[ "Apache-2.0" ]
null
null
null
exercise/6.py
zhaoshengshi/practicepython-exercise
3e123eb602aaf1c9638c7a2199607146e860b96c
[ "Apache-2.0" ]
null
null
null
ss = input('Please give me a string: ') if ss == ss[::-1]: print("Yes, %s is a palindrome." % ss) else: print('Nevermind, %s isn\'t a palindrome.' % ss)
23.142857
52
0.574074
27
162
3.444444
0.666667
0.236559
0.27957
0
0
0
0
0
0
0
0
0.007937
0.222222
162
6
53
27
0.730159
0
0
0
0
0
0.41358
0
0
0
0
0
0
1
0
false
0
0
0
0
0.4
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
3bdb6220329725e793142bac8d5000ba99303cc3
989
py
Python
common/permissions.py
pedro-hs/financial-account
7e8e4d0f3ac888fa36a091d0e733a8e1926180d2
[ "MIT" ]
null
null
null
common/permissions.py
pedro-hs/financial-account
7e8e4d0f3ac888fa36a091d0e733a8e1926180d2
[ "MIT" ]
null
null
null
common/permissions.py
pedro-hs/financial-account
7e8e4d0f3ac888fa36a091d0e733a8e1926180d2
[ "MIT" ]
null
null
null
from rest_framework.permissions import BasePermission, IsAuthenticated class IsBackOffice(BasePermission): def has_permission(self, request, view): return bool(request.user and request.user.is_authenticated and request.user.role == 'collaborator') class IsUserBase(IsAuthenticated): def has_permission(self, request, view): return bool(request.user and request.user.is_authenticated and request.user.role in ('customer', 'collaborator')) class IsUser(IsUserBase): def has_object_permission(self, request, view, instance): if request.user.role == 'collaborator': return True return request.user.role == 'customer' and instance.user == request.user class IsUserCompany(IsUserBase): def has_object_permission(self, request, view, instance): if request.user.role == 'collaborator': return True return request.user.role == 'customer' and instance.company.user == request.user
34.103448
107
0.706775
112
989
6.160714
0.294643
0.191304
0.130435
0.144928
0.675362
0.675362
0.675362
0.675362
0.675362
0.675362
0
0
0.196158
989
28
108
35.321429
0.867925
0
0
0.444444
0
0
0.072801
0
0
0
0
0
0
1
0.222222
false
0
0.055556
0.111111
0.833333
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
3bfae0d38025f9ed469b1477352c2cbb4d204cae
9,752
py
Python
tests/metrics/test_metrics.py
HiromuHota/emmental
eb1e29b3406fc0ac301b2d29e06db5e6774eb9f0
[ "MIT" ]
null
null
null
tests/metrics/test_metrics.py
HiromuHota/emmental
eb1e29b3406fc0ac301b2d29e06db5e6774eb9f0
[ "MIT" ]
null
null
null
tests/metrics/test_metrics.py
HiromuHota/emmental
eb1e29b3406fc0ac301b2d29e06db5e6774eb9f0
[ "MIT" ]
null
null
null
import logging import numpy as np from emmental.metrics.accuracy import accuracy_scorer from emmental.metrics.accuracy_f1 import accuracy_f1_scorer from emmental.metrics.fbeta import f1_scorer, fbeta_scorer from emmental.metrics.matthews_correlation import ( matthews_correlation_coefficient_scorer, ) from emmental.metrics.mean_squared_error import mean_squared_error_scorer from emmental.metrics.pearson_correlation import pearson_correlation_scorer from emmental.metrics.pearson_spearman import pearson_spearman_scorer from emmental.metrics.precision import precision_scorer from emmental.metrics.recall import recall_scorer from emmental.metrics.roc_auc import roc_auc_scorer from emmental.metrics.spearman_correlation import spearman_correlation_scorer from tests.utils import isequal def test_accuracy(caplog): """Unit test of accuracy_scorer""" caplog.set_level(logging.INFO) golds = np.array([0, 1, 0, 1, 0, 1]) gold_probs = np.array( [[0.6, 0.4], [0.1, 0.9], [0.7, 0.3], [0.2, 0.8], [0.9, 0.1], [0.4, 0.6]] ) probs = np.array( [[0.9, 0.1], [0.6, 0.4], [1.0, 0.0], [0.8, 0.2], [0.6, 0.4], [0.05, 0.95]] ) preds = np.array([0, 0, 0, 0, 0, 1]) metric_dict = accuracy_scorer(golds, None, preds) assert isequal(metric_dict, {"accuracy": 0.6666666666666666}) metric_dict = accuracy_scorer(golds, probs, None) assert isequal(metric_dict, {"accuracy": 0.6666666666666666}) metric_dict = accuracy_scorer(golds, probs, preds, topk=2) assert isequal(metric_dict, {"accuracy@2": 1.0}) metric_dict = accuracy_scorer(gold_probs, None, preds) assert isequal(metric_dict, {"accuracy": 0.6666666666666666}) metric_dict = accuracy_scorer(gold_probs, probs, preds, topk=2) assert isequal(metric_dict, {"accuracy@2": 1.0}) metric_dict = accuracy_scorer(golds, None, preds, normalize=False) assert isequal(metric_dict, {"accuracy": 4}) metric_dict = accuracy_scorer(gold_probs, probs, preds, topk=2, normalize=False) assert isequal(metric_dict, {"accuracy@2": 6}) def test_precision(caplog): """Unit test of precision_scorer""" caplog.set_level(logging.INFO) golds = np.array([0, 1, 0, 1, 0, 1]) gold_probs = np.array( [[0.6, 0.4], [0.1, 0.9], [0.7, 0.3], [0.2, 0.8], [0.9, 0.1], [0.4, 0.6]] ) preds = np.array([0, 0, 0, 0, 0, 1]) metric_dict = precision_scorer(golds, None, preds, pos_label=1) assert isequal(metric_dict, {"precision": 1}) metric_dict = precision_scorer(golds, None, preds, pos_label=0) assert isequal(metric_dict, {"precision": 0.6}) metric_dict = precision_scorer(gold_probs, None, preds, pos_label=1) assert isequal(metric_dict, {"precision": 1}) metric_dict = precision_scorer(gold_probs, None, preds, pos_label=0) assert isequal(metric_dict, {"precision": 0.6}) def test_recall(caplog): """Unit test of recall_scorer""" caplog.set_level(logging.INFO) golds = np.array([0, 1, 0, 1, 0, 1]) gold_probs = np.array( [[0.6, 0.4], [0.1, 0.9], [0.7, 0.3], [0.2, 0.8], [0.9, 0.1], [0.4, 0.6]] ) preds = np.array([0, 0, 0, 0, 0, 1]) metric_dict = recall_scorer(golds, None, preds, pos_label=1) assert isequal(metric_dict, {"recall": 0.3333333333333333}) metric_dict = recall_scorer(golds, None, preds, pos_label=0) assert isequal(metric_dict, {"recall": 1}) metric_dict = recall_scorer(gold_probs, None, preds, pos_label=1) assert isequal(metric_dict, {"recall": 0.3333333333333333}) metric_dict = recall_scorer(gold_probs, None, preds, pos_label=0) assert isequal(metric_dict, {"recall": 1}) def test_f1(caplog): """Unit test of f1_scorer""" caplog.set_level(logging.INFO) golds = np.array([0, 1, 0, 1, 0, 1]) gold_probs = np.array( [[0.6, 0.4], [0.1, 0.9], [0.7, 0.3], [0.2, 0.8], [0.9, 0.1], [0.4, 0.6]] ) preds = np.array([0, 0, 0, 0, 0, 1]) metric_dict = f1_scorer(golds, None, preds, pos_label=1) assert isequal(metric_dict, {"f1": 0.5}) metric_dict = f1_scorer(golds, None, preds, pos_label=0) assert isequal(metric_dict, {"f1": 0.7499999999999999}) metric_dict = f1_scorer(gold_probs, None, preds, pos_label=1) assert isequal(metric_dict, {"f1": 0.5}) metric_dict = f1_scorer(gold_probs, None, preds, pos_label=0) assert isequal(metric_dict, {"f1": 0.7499999999999999}) def test_fbeta(caplog): """Unit test of fbeta_scorer""" caplog.set_level(logging.INFO) golds = np.array([0, 1, 0, 1, 0, 1]) gold_probs = np.array( [[0.6, 0.4], [0.1, 0.9], [0.7, 0.3], [0.2, 0.8], [0.9, 0.1], [0.4, 0.6]] ) preds = np.array([0, 0, 0, 0, 0, 1]) metric_dict = fbeta_scorer(golds, None, preds, pos_label=1, beta=2) assert isequal(metric_dict, {"f2": 0.3846153846153846}) metric_dict = fbeta_scorer(golds, None, preds, pos_label=0, beta=2) assert isequal(metric_dict, {"f2": 0.8823529411764706}) metric_dict = fbeta_scorer(gold_probs, None, preds, pos_label=1, beta=2) assert isequal(metric_dict, {"f2": 0.3846153846153846}) metric_dict = fbeta_scorer(gold_probs, None, preds, pos_label=0, beta=2) assert isequal(metric_dict, {"f2": 0.8823529411764706}) def test_matthews_corrcoef(caplog): """Unit test of matthews_correlation_coefficient_scorer""" caplog.set_level(logging.INFO) golds = np.array([0, 1, 0, 1, 0, 1]) preds = np.array([0, 0, 0, 0, 0, 1]) metric_dict = matthews_correlation_coefficient_scorer(golds, None, preds) assert isequal(metric_dict, {"matthews_corrcoef": 0.4472135954999579}) def test_mean_squared_error(caplog): """Unit test of mean_squared_error_scorer""" caplog.set_level(logging.INFO) golds = np.array([3, -0.5, 2, 7]) probs = np.array([2.5, 0.0, 2, 8]) metric_dict = mean_squared_error_scorer(golds, probs, None) assert isequal(metric_dict, {"mean_squared_error": 0.375}) golds = np.array([[0.5, 1], [-1, 1], [7, -6]]) probs = np.array([[0, 2], [-1, 2], [8, -5]]) metric_dict = mean_squared_error_scorer(golds, probs, None) assert isequal(metric_dict, {"mean_squared_error": 0.7083333333333334}) def test_pearson_correlation(caplog): """Unit test of pearson_correlation_scorer""" caplog.set_level(logging.INFO) golds = np.array([1, 0, 1, 0, 1, 0]) probs = np.array([0.8, 0.6, 0.9, 0.7, 0.7, 0.2]) metric_dict = pearson_correlation_scorer(golds, probs, None) assert isequal(metric_dict, {"pearson_correlation": 0.6764814252025461}) metric_dict = pearson_correlation_scorer(golds, probs, None, return_pvalue=True) assert isequal( metric_dict, { "pearson_correlation": 0.6764814252025461, "pearson_pvalue": 0.14006598491201777, }, ) def test_spearman_correlation(caplog): """Unit test of spearman_correlation_scorer""" caplog.set_level(logging.INFO) golds = np.array([1, 0, 1, 0, 1, 0]) probs = np.array([0.8, 0.6, 0.9, 0.7, 0.7, 0.2]) metric_dict = spearman_correlation_scorer(golds, probs, None) assert isequal(metric_dict, {"spearman_correlation": 0.7921180343813395}) metric_dict = spearman_correlation_scorer(golds, probs, None, return_pvalue=True) assert isequal( metric_dict, { "spearman_correlation": 0.7921180343813395, "spearman_pvalue": 0.06033056705743058, }, ) def test_pearson_spearman(caplog): """Unit test of pearson_spearman_scorer""" caplog.set_level(logging.INFO) golds = np.array([1, 0, 1, 0, 1, 0]) probs = np.array([0.8, 0.6, 0.9, 0.7, 0.7, 0.2]) metric_dict = pearson_spearman_scorer(golds, probs, None) assert isequal(metric_dict, {"pearson_spearman": 0.7342997297919428}) def test_roc_auc(caplog): """Unit test of roc_auc_scorer""" caplog.set_level(logging.INFO) golds = np.array([[1], [0], [1], [0], [1], [0]]) gold_probs = np.array( [[0.4, 0.6], [0.9, 0.1], [0.3, 0.7], [0.8, 0.2], [0.1, 0.9], [0.6, 0.4]] ) probs = np.array( [[0.2, 0.8], [0.4, 0.6], [0.1, 0.9], [0.3, 0.7], [0.3, 0.7], [0.8, 0.2]] ) preds = np.array([[0.8], [0.6], [0.9], [0.7], [0.7], [0.2]]) metric_dict = roc_auc_scorer(golds, probs, None) assert isequal(metric_dict, {"roc_auc": 0.9444444444444444}) metric_dict = roc_auc_scorer(gold_probs, probs, None) assert isequal(metric_dict, {"roc_auc": 0.9444444444444444}) metric_dict = roc_auc_scorer(golds, preds, None) assert isequal(metric_dict, {"roc_auc": 0.9444444444444444}) metric_dict = roc_auc_scorer(gold_probs, preds, None) assert isequal(metric_dict, {"roc_auc": 0.9444444444444444}) golds = np.array([1, 1, 1, 1, 1, 1]) metric_dict = roc_auc_scorer(golds, probs, None) assert isequal(metric_dict, {"roc_auc": float("nan")}) def test_accuracy_f1(caplog): """Unit test of accuracy_f1_scorer""" caplog.set_level(logging.INFO) golds = np.array([0, 1, 0, 1, 0, 1]) gold_probs = np.array( [[0.6, 0.4], [0.1, 0.9], [0.7, 0.3], [0.2, 0.8], [0.9, 0.1], [0.4, 0.6]] ) preds = np.array([0, 0, 0, 0, 0, 1]) metric_dict = accuracy_f1_scorer(golds, None, preds) assert isequal(metric_dict, {"accuracy_f1": 0.5833333333333333}) metric_dict = accuracy_f1_scorer(golds, None, preds, pos_label=1) assert isequal(metric_dict, {"accuracy_f1": 0.5833333333333333}) metric_dict = accuracy_f1_scorer(golds, None, preds, pos_label=0) assert isequal(metric_dict, {"accuracy_f1": 0.7083333333333333}) metric_dict = accuracy_f1_scorer(gold_probs, None, preds) assert isequal(metric_dict, {"accuracy_f1": 0.5833333333333333})
31.869281
85
0.658839
1,505
9,752
4.080399
0.056478
0.130272
0.123758
0.149813
0.793845
0.738805
0.737502
0.718775
0.679205
0.637355
0
0.120311
0.182629
9,752
305
86
31.97377
0.650107
0.041427
0
0.446237
0
0
0.04264
0
0
0
0
0
0.215054
1
0.064516
false
0
0.075269
0
0.139785
0
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
ce14a275a0957db889a40c045e5b451a0b8f836f
331
py
Python
examples/robot_mock.py
gmamaladze/robo-pi
f9affc63760774073a3b1de4e4ea064bde2eb074
[ "MIT" ]
1
2020-04-24T21:34:01.000Z
2020-04-24T21:34:01.000Z
examples/robot_mock.py
gmamaladze/robo-pi
f9affc63760774073a3b1de4e4ea064bde2eb074
[ "MIT" ]
10
2019-12-16T20:55:38.000Z
2022-02-09T23:33:51.000Z
examples/robot_mock.py
gmamaladze/tf-voice-pi
f9affc63760774073a3b1de4e4ea064bde2eb074
[ "MIT" ]
null
null
null
class Robot: def __init__(self, left="MOTOR4", right="MOTOR2", config=1): print("init") def forward(self): print("forward") def backward(self): print("backward") def left(self): print("left") def right(self): print("right") def stop(self): print("stop")
17.421053
64
0.537764
38
331
4.578947
0.394737
0.258621
0
0
0
0
0
0
0
0
0
0.012987
0.302115
331
18
65
18.388889
0.74026
0
0
0
0
0
0.132931
0
0
0
0
0
0
1
0.461538
false
0
0
0
0.538462
0.461538
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
1
0
4
ce313caa11cce1219bbc0ca784238958335d4a0b
529
py
Python
Python/leetcode/Triangle.py
darrencheng0817/AlgorithmLearning
aec1ddd0c51b619c1bae1e05f940d9ed587aa82f
[ "MIT" ]
2
2015-12-02T06:44:01.000Z
2016-05-04T21:40:54.000Z
Python/leetcode/Triangle.py
darrencheng0817/AlgorithmLearning
aec1ddd0c51b619c1bae1e05f940d9ed587aa82f
[ "MIT" ]
null
null
null
Python/leetcode/Triangle.py
darrencheng0817/AlgorithmLearning
aec1ddd0c51b619c1bae1e05f940d9ed587aa82f
[ "MIT" ]
null
null
null
''' Created on 1.12.2016 @author: Darren '''''' Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. For example, given the following triangle [ [2], [3,4], [6,5,7], [4,1,8,3] ] The minimum path sum from top to bottom is 11 (i.e., 2 + 3 + 5 + 1 = 11). Note: Bonus point if you are able to do this using only O(n) extra space, where n is the total number of rows in the triangle. " '''
18.892857
126
0.587902
91
529
3.417582
0.681319
0.064309
0.090032
0.109325
0.205788
0.205788
0.205788
0.205788
0
0
0
0.068306
0.308129
529
27
127
19.592593
0.781421
0.918715
0
0.142857
0
0.214286
0.984683
0
0
0
0
0
0
1
0
true
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
1
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
cbec06c90522fab416454e28ed3f8f1ea15d10d0
96
py
Python
startup.py
andreagia/WEBNMR
512a8cc04cf69300796585feae722614501389a9
[ "Apache-2.0" ]
null
null
null
startup.py
andreagia/WEBNMR
512a8cc04cf69300796585feae722614501389a9
[ "Apache-2.0" ]
null
null
null
startup.py
andreagia/WEBNMR
512a8cc04cf69300796585feae722614501389a9
[ "Apache-2.0" ]
null
null
null
from paste.deploy import loadapp app = loadapp("config:/home/webenmr/WebENMR/development.ini")
24
61
0.791667
13
96
5.846154
0.846154
0
0
0
0
0
0
0
0
0
0
0
0.083333
96
3
62
32
0.863636
0
0
0
0
0
0.463158
0.463158
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
cbf2dc049f1ccb6bed778490aa18d0ea3f007439
793
py
Python
src/opserver/plugins/alarm_process_connectivity/setup.py
biswajit-mandal/contrail-controller
80c4a7e8515f7296b18ba4c21a439bd3daefcc4a
[ "Apache-2.0" ]
3
2019-01-11T06:16:40.000Z
2021-02-24T23:48:21.000Z
src/opserver/plugins/alarm_process_connectivity/setup.py
biswajit-mandal/contrail-controller
80c4a7e8515f7296b18ba4c21a439bd3daefcc4a
[ "Apache-2.0" ]
null
null
null
src/opserver/plugins/alarm_process_connectivity/setup.py
biswajit-mandal/contrail-controller
80c4a7e8515f7296b18ba4c21a439bd3daefcc4a
[ "Apache-2.0" ]
18
2017-01-12T09:28:44.000Z
2019-04-18T20:47:42.000Z
# # Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. # from setuptools import setup, find_packages setup( name='alarm_process_connectivity', version='0.1dev', packages=find_packages(), entry_points = { 'contrail.analytics.alarms': [ 'ObjectCollectorInfo = alarm_process_connectivity.main:ProcessConnectivity', 'ObjectVRouter = alarm_process_connectivity.main:ProcessConnectivity', 'ObjectConfigNode = alarm_process_connectivity.main:ProcessConnectivity', 'ObjectBgpRouter = alarm_process_connectivity.main:ProcessConnectivity', 'ObjectDatabaseInfo = alarm_process_connectivity.main:ProcessConnectivity', ], }, zip_safe=False, long_description="ProcessConnectivity alarm" )
34.478261
88
0.717528
68
793
8.117647
0.573529
0.130435
0.26087
0.253623
0.425725
0
0
0
0
0
0
0.009375
0.192938
793
22
89
36.045455
0.853125
0.078184
0
0
0
0
0.595598
0.420908
0
0
0
0
0
1
0
true
0
0.058824
0
0.058824
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
1
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
024c8b636c73803ba5c14b996265676bb94e1dd0
592
py
Python
notebooks/shared/ipypublish/export_plugins/html_standard.py
leonbett/debuggingbook
ae1fa940c306160429232fbc93a7a7f14b44efb7
[ "MIT" ]
728
2018-09-21T03:51:04.000Z
2022-03-28T09:35:04.000Z
notebooks/shared/ipypublish/export_plugins/html_standard.py
leonbett/debuggingbook
ae1fa940c306160429232fbc93a7a7f14b44efb7
[ "MIT" ]
103
2018-09-02T12:26:32.000Z
2022-02-09T07:19:08.000Z
notebooks/shared/ipypublish/export_plugins/html_standard.py
leonbett/debuggingbook
ae1fa940c306160429232fbc93a7a7f14b44efb7
[ "MIT" ]
157
2018-09-02T08:00:50.000Z
2022-03-27T22:04:50.000Z
#!/usr/bin/env python """html in standard nbconvert format """ from ipypublish.html.create_tpl import create_tpl from ipypublish.html.standard import content from ipypublish.html.standard import content_tagging from ipypublish.html.standard import document from ipypublish.html.standard import inout_prompt from ipypublish.html.standard import mathjax from ipypublish.html.standard import widgets oformat = 'HTML' config = {} template = create_tpl([ document.tpl_dict, content.tpl_dict, content_tagging.tpl_dict, mathjax.tpl_dict, widgets.tpl_dict, inout_prompt.tpl_dict ])
28.190476
52
0.802365
81
592
5.703704
0.308642
0.212121
0.272727
0.337662
0.445887
0.168831
0
0
0
0
0
0
0.118243
592
20
53
29.6
0.885057
0.091216
0
0
0
0
0.007533
0
0
0
0
0
0
1
0
false
0
0.466667
0
0.466667
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
025c8c73c3dda45b9c81e36fafb6a8137598b6d5
254
py
Python
tests/unit/test_databeardb.py
chrisrycx/pyDataLogger
21094da9de54ab467519a26680247ddc3efa6696
[ "MIT" ]
1
2020-09-25T16:25:09.000Z
2020-09-25T16:25:09.000Z
tests/unit/test_databeardb.py
chrisrycx/pyDataLogger
21094da9de54ab467519a26680247ddc3efa6696
[ "MIT" ]
4
2020-10-06T17:16:58.000Z
2020-12-18T17:06:16.000Z
tests/unit/test_databeardb.py
chrisrycx/pyDataLogger
21094da9de54ab467519a26680247ddc3efa6696
[ "MIT" ]
2
2020-03-24T14:32:29.000Z
2020-08-05T17:38:24.000Z
''' A unit test for databearDB.py Runs manually at this point... ''' import unittest from databear.databearDB import DataBearDB #Tests class testDataBearDB(unittest.TestCase): def setUp(self): ''' Hmm ''' pass
14.111111
42
0.622047
28
254
5.642857
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.279528
254
18
43
14.111111
0.863388
0.275591
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0.2
0.4
0
0.8
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
1
0
0
4
026d6883b4b4ef48ca95ca7facd1d38932ace6a3
26
py
Python
env/lib/python3.7/site-packages/grpc/_grpcio_metadata.py
PrudhviGNV/speechemotion
c99b4a7f644e1fd495cb5e6750ada0dd50d8b86f
[ "MIT" ]
5
2019-04-16T20:43:47.000Z
2020-10-24T22:35:39.000Z
Lib/site-packages/grpc/_grpcio_metadata.py
caiyongji/Anaconda-py36.5-tensorflow-built-env
f4eb40b5ca3f49dfc929ff3ad2b4bb877e9663e2
[ "PSF-2.0" ]
2
2021-04-30T20:43:55.000Z
2021-06-10T21:34:23.000Z
Lib/site-packages/grpc/_grpcio_metadata.py
caiyongji/Anaconda-py36.5-tensorflow-built-env
f4eb40b5ca3f49dfc929ff3ad2b4bb877e9663e2
[ "PSF-2.0" ]
3
2019-08-03T13:47:09.000Z
2021-08-03T14:20:25.000Z
__version__ = """1.19.0"""
26
26
0.576923
4
26
2.75
1
0
0
0
0
0
0
0
0
0
0
0.166667
0.076923
26
1
26
26
0.291667
0
0
0
0
0
0.222222
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
02824286d75d00e50642afe49b18a9fd9681523d
22
py
Python
backend_server/backend_globals.py
MSNLAB/SmartEye
40b38190aeff5d5b970c8cbf43e8781634b38028
[ "MIT", "Unlicense" ]
17
2021-06-27T04:33:13.000Z
2022-03-21T02:54:52.000Z
backend_server/backend_globals.py
MSNLAB/SmartEye
40b38190aeff5d5b970c8cbf43e8781634b38028
[ "MIT", "Unlicense" ]
null
null
null
backend_server/backend_globals.py
MSNLAB/SmartEye
40b38190aeff5d5b970c8cbf43e8781634b38028
[ "MIT", "Unlicense" ]
2
2021-10-31T05:14:24.000Z
2022-03-25T18:53:49.000Z
global loaded_model
5.5
19
0.818182
3
22
5.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.181818
22
3
20
7.333333
0.944444
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
65fdd0400541291beac65b8a408eaf8121f2b56b
402
py
Python
server/resources/platform.py
simon-dube/CARMIN-server
1481d2c4231458d33119c57ab2e3e480375da63b
[ "MIT" ]
1
2018-03-12T23:08:12.000Z
2018-03-12T23:08:12.000Z
server/resources/platform.py
simon-dube/CARMIN-server
1481d2c4231458d33119c57ab2e3e480375da63b
[ "MIT" ]
15
2018-03-15T04:23:31.000Z
2018-06-28T21:46:15.000Z
server/resources/platform.py
simon-dube/CARMIN-server
1481d2c4231458d33119c57ab2e3e480375da63b
[ "MIT" ]
null
null
null
from flask_restful import Resource from server.platform_properties import PLATFORM_PROPERTIES from server.resources.models.platform_properties import PlatformPropertiesSchema from server.resources.decorators import marshal_response class Platform(Resource): @marshal_response(PlatformPropertiesSchema()) def get(self): return PlatformPropertiesSchema().load(PLATFORM_PROPERTIES).data
36.545455
80
0.840796
42
402
7.880952
0.5
0.217523
0.145015
0
0
0
0
0
0
0
0
0
0.10199
402
10
81
40.2
0.916898
0
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.5
0.125
0.875
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
1
1
0
0
4
5a0835b17e7c0f765c8aa93d7341da5395fe71d2
32
py
Python
provider/__init__.py
depop/django-oauth2-provider
afcdef72747233dc0259a4bc068a8086ba7a69d3
[ "MIT" ]
1
2020-05-10T00:11:05.000Z
2020-05-10T00:11:05.000Z
provider/__init__.py
depop/django-oauth2-provider
afcdef72747233dc0259a4bc068a8086ba7a69d3
[ "MIT" ]
1
2016-05-23T15:22:41.000Z
2016-05-23T15:22:41.000Z
provider/__init__.py
depop/django-oauth2-provider
afcdef72747233dc0259a4bc068a8086ba7a69d3
[ "MIT" ]
null
null
null
__version__ = "0.2.7+depop.6.1"
16
31
0.65625
7
32
2.428571
1
0
0
0
0
0
0
0
0
0
0
0.172414
0.09375
32
1
32
32
0.413793
0
0
0
0
0
0.46875
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
5a2a33ed323999913f0d3da3c440981176e3bcd7
159
py
Python
Dashboard with Django/updates/forms.py
reddyprasade/Data-Analysis-with-Python-
2440e23486856eea5556c8262467b3a618032bc2
[ "MIT" ]
1
2021-06-29T23:15:05.000Z
2021-06-29T23:15:05.000Z
Dashboard with Django/updates/forms.py
reddyprasade/Data-Analysis-with-Python-
2440e23486856eea5556c8262467b3a618032bc2
[ "MIT" ]
null
null
null
Dashboard with Django/updates/forms.py
reddyprasade/Data-Analysis-with-Python-
2440e23486856eea5556c8262467b3a618032bc2
[ "MIT" ]
1
2021-12-20T10:04:53.000Z
2021-12-20T10:04:53.000Z
from django.forms import ModelForm from updates.models import Post class Postform(ModelForm): class Meta: model = Post fields = ['title','body','date']
17.666667
34
0.72956
21
159
5.52381
0.761905
0
0
0
0
0
0
0
0
0
0
0
0.157233
159
8
35
19.875
0.865672
0
0
0
0
0
0.082278
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
5a41217fc99d7ef188d90f55041a7803b426c258
22
py
Python
gsb/rest/__init__.py
pfrancois/grisbi_django
4e27149522847c78ab9c0f0a06f0b1d371f7c205
[ "BSD-3-Clause" ]
null
null
null
gsb/rest/__init__.py
pfrancois/grisbi_django
4e27149522847c78ab9c0f0a06f0b1d371f7c205
[ "BSD-3-Clause" ]
null
null
null
gsb/rest/__init__.py
pfrancois/grisbi_django
4e27149522847c78ab9c0f0a06f0b1d371f7c205
[ "BSD-3-Clause" ]
null
null
null
# coding=utf-8 # init
7.333333
14
0.636364
4
22
3.5
1
0
0
0
0
0
0
0
0
0
0
0.055556
0.181818
22
2
15
11
0.722222
0.772727
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
5a4d72f7295e946813a914b8b8596cf8a6802ccb
2,691
py
Python
cocotb/_py_compat.py
lavanyajagan/cocotb
2f98612016e68510e264a2b4963303d3588d8404
[ "BSD-3-Clause" ]
350
2015-01-09T12:50:13.000Z
2019-07-12T09:08:17.000Z
cocotb/_py_compat.py
lavanyajagan/cocotb
2f98612016e68510e264a2b4963303d3588d8404
[ "BSD-3-Clause" ]
710
2015-01-05T16:42:29.000Z
2019-07-16T13:40:00.000Z
cocotb/_py_compat.py
lavanyajagan/cocotb
2f98612016e68510e264a2b4963303d3588d8404
[ "BSD-3-Clause" ]
182
2015-01-08T09:35:20.000Z
2019-07-12T18:41:37.000Z
# Copyright (c) cocotb contributors # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # * Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # * Neither the name of the copyright holder nor the # names of its contributors may be used to endorse or promote products # derived from this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE # DISCLAIMED. IN NO EVENT SHALL POTENTIAL VENTURES LTD BE LIABLE FOR ANY # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. """ Backports and compatibility shims for newer python features. These are for internal use - users should use a third party library like `six` if they want to use these shims in their own code """ import sys # backport of Python 3.7's contextlib.nullcontext class nullcontext: """Context manager that does no additional processing. Used as a stand-in for a normal context manager, when a particular block of code is only sometimes used with a normal context manager: cm = optional_cm if condition else nullcontext() with cm: # Perform operation, using optional_cm if condition is True """ def __init__(self, enter_result=None): self.enter_result = enter_result def __enter__(self): return self.enter_result def __exit__(self, *excinfo): pass # On python 3.7 onwards, `dict` is guaranteed to preserve insertion order. # Since `OrderedDict` is a little slower that `dict`, we prefer the latter # when possible. if sys.version_info[:2] >= (3, 7): insertion_ordered_dict = dict else: import collections insertion_ordered_dict = collections.OrderedDict
42.046875
81
0.751394
382
2,691
5.232984
0.52356
0.022011
0.022511
0.023012
0.092046
0.068034
0.068034
0.068034
0.068034
0.068034
0
0.003238
0.196581
2,691
63
82
42.714286
0.921369
0.822742
0
0
0
0
0
0
0
0
0
0
0
1
0.230769
false
0.076923
0.153846
0.076923
0.538462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
4
ce69ac58ca5435e4721a3c9bb26cdcd8b83c0839
160
py
Python
exercise/newfile45.py
LeeBeral/python
9f0d360d69ee5245e3ef13a9dc9fc666374587a4
[ "MIT" ]
null
null
null
exercise/newfile45.py
LeeBeral/python
9f0d360d69ee5245e3ef13a9dc9fc666374587a4
[ "MIT" ]
null
null
null
exercise/newfile45.py
LeeBeral/python
9f0d360d69ee5245e3ef13a9dc9fc666374587a4
[ "MIT" ]
null
null
null
show databases; show tables desc table名 use database名 delete from 库名.表名 where id=5; select * from 表名 where id=5; update 表名 set age=15,home='北京' where id=5
22.857143
41
0.73125
31
160
3.774194
0.677419
0.179487
0.205128
0.17094
0
0
0
0
0
0
0
0.038462
0.1875
160
7
41
22.857143
0.861538
0
0
0
0
0
0.012903
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
4