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
d88d31ef6681884bf0fcd8335d6ce3822f6d4332
121
py
Python
sites_and_links/admin.py
DrSn2/Simple-Site-Monitor
94eb46180d3f572e3a5fdb7d4c61da3b56d5f1cd
[ "MIT" ]
null
null
null
sites_and_links/admin.py
DrSn2/Simple-Site-Monitor
94eb46180d3f572e3a5fdb7d4c61da3b56d5f1cd
[ "MIT" ]
null
null
null
sites_and_links/admin.py
DrSn2/Simple-Site-Monitor
94eb46180d3f572e3a5fdb7d4c61da3b56d5f1cd
[ "MIT" ]
1
2018-08-10T08:48:32.000Z
2018-08-10T08:48:32.000Z
from django.contrib import admin from .models import Domain, Link admin.site.register(Domain) admin.site.register(Link)
20.166667
32
0.809917
18
121
5.444444
0.555556
0.183673
0.346939
0
0
0
0
0
0
0
0
0
0.099174
121
5
33
24.2
0.899083
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
d8a52367122aa5b4affa745658f9acd0e929067f
1,385
py
Python
presqt/targets/figshare/utilities/get_figshare_project_data.py
djordjetrajkovic/presqt
8424b61b1c5b8d29de74c7a333889d9e9eb7aee8
[ "Apache-2.0" ]
3
2019-01-29T19:45:25.000Z
2020-12-01T18:24:51.000Z
presqt/targets/figshare/utilities/get_figshare_project_data.py
djordjetrajkovic/presqt
8424b61b1c5b8d29de74c7a333889d9e9eb7aee8
[ "Apache-2.0" ]
419
2018-09-13T23:11:15.000Z
2021-09-22T17:49:00.000Z
presqt/targets/figshare/utilities/get_figshare_project_data.py
djordjetrajkovic/presqt
8424b61b1c5b8d29de74c7a333889d9e9eb7aee8
[ "Apache-2.0" ]
2
2020-04-10T08:19:41.000Z
2021-01-04T15:29:42.000Z
import requests from presqt.utilities import update_process_info, increment_process_info def get_figshare_project_data(initial_data, headers, resources): """ Get all top level figshare projects. Parameters ---------- initial_data: list List of all top level projects headers: dict The authorization header that Figshare expects resources: list A list of resources to append to Returns ------- A list of resources. """ for project in initial_data: resources.append({ "kind": "container", "kind_name": "project", "container": None, "id": project['id'], "title": project['title'] }) return resources def get_search_project_data(initial_data, headers, resources): """ Get all top level figshare projects with search query. Parameters ---------- initial_data: list List of all top level projects headers: dict The authorization header that Figshare expects resources: list A list of resources to append to Returns ------- A list of resources. """ resources.append({ "kind": "container", "kind_name": "project", "container": None, "id": initial_data['id'], "title": initial_data['title'] }) return resources
22.704918
72
0.598556
150
1,385
5.4
0.306667
0.095062
0.054321
0.079012
0.716049
0.716049
0.716049
0.716049
0.716049
0.716049
0
0
0.299639
1,385
60
73
23.083333
0.835052
0.402166
0
0.571429
0
0
0.146685
0
0
0
0
0
0
1
0.095238
false
0
0.095238
0
0.285714
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
d8d4ead9eaf07e51a9128562b744685e5c304ded
101
py
Python
nilmlab/lab_exceptions.py
ChristoferNal/multi-nilm
0ec1d1a834b04da121963bf82eb0f540d76a8409
[ "MIT" ]
32
2020-04-29T07:03:08.000Z
2021-12-21T02:24:43.000Z
nilmlab/lab_exceptions.py
qiu-2020/multi-nilm
0ec1d1a834b04da121963bf82eb0f540d76a8409
[ "MIT" ]
3
2020-10-23T07:26:42.000Z
2021-09-30T11:07:10.000Z
nilmlab/lab_exceptions.py
qiu-2020/multi-nilm
0ec1d1a834b04da121963bf82eb0f540d76a8409
[ "MIT" ]
10
2020-05-31T02:02:32.000Z
2022-02-10T01:42:37.000Z
class NoSiteMeterException(Exception): pass class LabelNormalizationError(Exception): pass
14.428571
41
0.782178
8
101
9.875
0.625
0.329114
0
0
0
0
0
0
0
0
0
0
0.158416
101
6
42
16.833333
0.929412
0
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
5
d8dbeab86e45f031ff02960fa81ebcbf291d3c4f
135
py
Python
src/autorun_test.py
vt-sailbot/sailbot-18
55b4c4c18f24ff0e7476a7aedea6089fd78c6a99
[ "MIT" ]
1
2018-09-07T16:47:20.000Z
2018-09-07T16:47:20.000Z
src/autorun_test.py
vt-sailbot/sailbot-18
55b4c4c18f24ff0e7476a7aedea6089fd78c6a99
[ "MIT" ]
null
null
null
src/autorun_test.py
vt-sailbot/sailbot-18
55b4c4c18f24ff0e7476a7aedea6089fd78c6a99
[ "MIT" ]
null
null
null
""" This is called in delayed_main but it doesn't appear to be used """ from subprocess import call call(["mkdir", "autogenerated"])
16.875
63
0.718519
21
135
4.571429
0.952381
0
0
0
0
0
0
0
0
0
0
0
0.162963
135
7
64
19.285714
0.849558
0.466667
0
0
1
0
0.28125
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
1
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
d8e625047beaddf958e82c6c355c180a6215101e
208
py
Python
tests/checkio/elementary/test_digits_multiplication.py
zoido/checkio_python_solutions
858cc7eafbbf55c8506e14cce260d17406fbf09c
[ "MIT" ]
null
null
null
tests/checkio/elementary/test_digits_multiplication.py
zoido/checkio_python_solutions
858cc7eafbbf55c8506e14cce260d17406fbf09c
[ "MIT" ]
2
2017-10-14T17:44:17.000Z
2018-04-06T18:53:37.000Z
tests/checkio/elementary/test_digits_multiplication.py
zoido/checkio_python_solutions
858cc7eafbbf55c8506e14cce260d17406fbf09c
[ "MIT" ]
null
null
null
from checkio.elementary.digits_multiplication import checkio def test_checkio(): assert checkio(123405) == 120 assert checkio(999) == 729 assert checkio(1000) == 1 assert checkio(1111) == 1
23.111111
60
0.706731
26
208
5.576923
0.615385
0.358621
0
0
0
0
0
0
0
0
0
0.14881
0.192308
208
8
61
26
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.666667
1
0.166667
true
0
0.166667
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
1
0
0
1
0
0
0
0
0
0
5
2b03fedad1fdb30671072f3ca2e5d3026a592bce
313
py
Python
ConfigFiles/NeuropsychDataFolder.py
NCMlab/CognitiveTasks
cd613990f59aac2c6c8f9b553ecb178124bfe171
[ "MIT" ]
5
2019-06-20T03:27:55.000Z
2022-03-06T07:31:36.000Z
ConfigFiles/NeuropsychDataFolder.py
NCMlab/CognitiveTasks
cd613990f59aac2c6c8f9b553ecb178124bfe171
[ "MIT" ]
9
2018-10-23T02:11:00.000Z
2019-07-03T15:29:07.000Z
ConfigFiles/NeuropsychDataFolder.py
NCMlab/CognitiveTasks
cd613990f59aac2c6c8f9b553ecb178124bfe171
[ "MIT" ]
2
2020-08-24T13:55:57.000Z
2022-03-06T07:31:40.000Z
# NeuropsychDataFolder = '/Volumes/GoogleDrive/Shared drives/NCMLab/NCM002-MRIStudy/Data/NeuroPsych' #NeuropsychDataFolder = '/media/jsteffen/Data001/NCMTeamDrive/NCMLab/NCM002-MRIStudy/Data/NeuroPsych' NeuropsychDataFolder = '/media/jsteffener/Data001/NCMLab/TeamDrive/NCMLab/NCM002-MRIStudy/Data/NeuroPsych'
44.714286
106
0.833866
31
313
8.419355
0.516129
0.137931
0.229885
0.275862
0.582375
0.452107
0.452107
0
0
0
0
0.050167
0.044728
313
6
107
52.166667
0.822742
0.632588
0
0
0
0
0.736364
0.736364
0
0
0
0
0
1
0
false
0
0
0
0
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
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
2b5cd78c39807731f42336cedfa5d86c34633584
171
py
Python
aiounittest/__init__.py
kwarunek/aiounittest
682a6913d8307e4f1ca5900cb7b3d5fe96b79834
[ "MIT" ]
55
2017-08-18T10:24:05.000Z
2022-03-21T08:29:19.000Z
aiounittest/__init__.py
kwarunek/aiounittest
682a6913d8307e4f1ca5900cb7b3d5fe96b79834
[ "MIT" ]
15
2017-09-22T13:14:43.000Z
2022-01-23T16:29:22.000Z
aiounittest/__init__.py
kwarunek/aiounittest
682a6913d8307e4f1ca5900cb7b3d5fe96b79834
[ "MIT" ]
4
2019-11-26T18:08:43.000Z
2021-06-01T22:12:00.000Z
from .case import AsyncTestCase from .helpers import futurized, run_sync, async_test __all__ = [ "AsyncTestCase", "futurized", "run_sync", "async_test" ]
17.1
52
0.690058
19
171
5.789474
0.578947
0.218182
0.290909
0.381818
0.454545
0
0
0
0
0
0
0
0.204678
171
9
53
19
0.808824
0
0
0
0
0
0.233918
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
41e2b7e80925535b9faef70cc366a074dbfffc9e
3,122
py
Python
tests/test_btc.py
uilyam/coinbase-pricing-python
71d81454b2ed6e5d0cb63f33ce39443b5926d935
[ "MIT" ]
null
null
null
tests/test_btc.py
uilyam/coinbase-pricing-python
71d81454b2ed6e5d0cb63f33ce39443b5926d935
[ "MIT" ]
null
null
null
tests/test_btc.py
uilyam/coinbase-pricing-python
71d81454b2ed6e5d0cb63f33ce39443b5926d935
[ "MIT" ]
null
null
null
import unittest from unittest.mock import patch from cbp.btc import get_btc_buy, get_btc_sell, get_btc_spot, get_btc from cbp.constants import CURRENCY_BTC, EXCHANGE_RATE_USD, PRICE_BUY, PRICE_SELL, PRICE_SPOT class TestBTC(unittest.TestCase): """Unit tests for cbp.btc.py""" def test_get_btc_exists(self): """Test that the get_btc function exists/""" self.assertIsNotNone(get_btc) @patch('cbp.btc.get_price') def test_get_btc_calls_get_price(self, get_price_patch): """Test get_btc calls get_price with the parameters it is called with plus BTC.""" get_btc(EXCHANGE_RATE_USD, PRICE_BUY) get_price_patch.assert_called_with(EXCHANGE_RATE_USD, PRICE_BUY, CURRENCY_BTC) @patch('cbp.btc.get_price') def test_get_btc_calls_returns_get_price(self, get_price_patch): """Test get_btc returns the result of get_price.""" get_price_patch.return_value = 70.2 price = get_btc(EXCHANGE_RATE_USD, PRICE_BUY) self.assertEqual(price, 70.2) def test_get_btc_buy_exists(self): """Test that the get_btc_buy function exists.""" self.assertIsNotNone(get_btc_buy) @patch('cbp.btc.get_btc') def test_get_btc_buy_calls_get_btc(self, get_btc_patch): """Test get_btc_buy calls get_btc with correct parameters.""" get_btc_buy(EXCHANGE_RATE_USD) get_btc_patch.assert_called_with(EXCHANGE_RATE_USD, PRICE_BUY) @patch('cbp.btc.get_btc') def test_get_btc_buy_returns_get_btc(self, get_btc_patch): """Test get_btc_buy returns the value of get_btc.""" get_btc_patch.return_value = 70.2 price = get_btc_buy(EXCHANGE_RATE_USD) self.assertEqual(price, 70.2) def test_get_btc_sell_exists(self): """Test that the get_btc_sell function exists.""" self.assertIsNotNone(get_btc_sell) @patch('cbp.btc.get_btc') def test_get_btc_sell_calls_get_btc(self, get_btc_patch): """Test get_btc_sell calls get_btc with correct parameters.""" get_btc_sell(EXCHANGE_RATE_USD) get_btc_patch.assert_called_with(EXCHANGE_RATE_USD, PRICE_SELL) @patch('cbp.btc.get_btc') def test_get_btc_sell_returns_get_btc(self, get_btc_patch): """Test get_btc_sell returns the value of get_btc.""" get_btc_patch.return_value = 70.2 price = get_btc_sell(EXCHANGE_RATE_USD) self.assertEqual(price, 70.2) def test_get_btc_spot_exists(self): """Test that the get_btc_spot function exists.""" self.assertIsNotNone(get_btc_spot) @patch('cbp.btc.get_btc') def test_get_btc_spot_calls_get_btc(self, get_btc_patch): """Test get_btc_spot calls get_btc with correct parameters.""" get_btc_spot(EXCHANGE_RATE_USD) get_btc_patch.assert_called_with(EXCHANGE_RATE_USD, PRICE_SPOT) @patch('cbp.btc.get_btc') def test_get_btc_spot_returns_get_btc(self, get_btc_patch): """Test get_btc_spot returns the value of get_btc.""" get_btc_patch.return_value = 70.2 price = get_btc_spot(EXCHANGE_RATE_USD) self.assertEqual(price, 70.2)
41.626667
92
0.71909
491
3,122
4.148676
0.099796
0.206186
0.098184
0.076583
0.849288
0.843888
0.738832
0.660285
0.570938
0.4973
0
0.009471
0.188341
3,122
75
93
41.626667
0.794396
0.202114
0
0.306122
0
0
0.051113
0
0
0
0
0
0.244898
1
0.244898
false
0
0.081633
0
0.346939
0
0
0
0
null
1
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
0
0
1
0
0
0
0
0
0
0
5
510f60de47d3f6ca45d7bcf4e65203de6dc5d67c
22
py
Python
proj/folder3/test3.py
pkreddy/python-sample-vscode-flask-tutorial
50f858e61459080cbcd993ea656013f5b72e8cfe
[ "MIT" ]
null
null
null
proj/folder3/test3.py
pkreddy/python-sample-vscode-flask-tutorial
50f858e61459080cbcd993ea656013f5b72e8cfe
[ "MIT" ]
null
null
null
proj/folder3/test3.py
pkreddy/python-sample-vscode-flask-tutorial
50f858e61459080cbcd993ea656013f5b72e8cfe
[ "MIT" ]
null
null
null
print("fodler2.test3")
22
22
0.772727
3
22
5.666667
1
0
0
0
0
0
0
0
0
0
0
0.090909
0
22
1
22
22
0.681818
0
0
0
0
0
0.565217
0
0
0
0
0
0
1
0
true
0
0
0
0
1
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
5
51116240472410571e998a0e1e2d02600d2add2a
67
py
Python
xparse/parser/__init__.py
aiyogi01/xparse
e50f48493ec1835cc79195a8805a74e0d003860f
[ "MIT" ]
null
null
null
xparse/parser/__init__.py
aiyogi01/xparse
e50f48493ec1835cc79195a8805a74e0d003860f
[ "MIT" ]
null
null
null
xparse/parser/__init__.py
aiyogi01/xparse
e50f48493ec1835cc79195a8805a74e0d003860f
[ "MIT" ]
1
2020-05-08T09:42:23.000Z
2020-05-08T09:42:23.000Z
from xparse.parser.recursive_descent import RecursiveDescentParser
33.5
66
0.910448
7
67
8.571429
1
0
0
0
0
0
0
0
0
0
0
0
0.059701
67
1
67
67
0.952381
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
51136bf87cc0821a322a996e094fa7f3cc7fd940
122
py
Python
reportes/admin.py
SurielRuano/backend-mi-primer-empleo
394849947fc7cda8b7a736e8605ad2c4c66523a9
[ "MIT" ]
null
null
null
reportes/admin.py
SurielRuano/backend-mi-primer-empleo
394849947fc7cda8b7a736e8605ad2c4c66523a9
[ "MIT" ]
null
null
null
reportes/admin.py
SurielRuano/backend-mi-primer-empleo
394849947fc7cda8b7a736e8605ad2c4c66523a9
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Reportes # Register your models here. admin.site.register(Reportes)
20.333333
32
0.811475
17
122
5.823529
0.647059
0
0
0
0
0
0
0
0
0
0
0
0.122951
122
6
33
20.333333
0.925234
0.213115
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
512eecb7649f7bc0709953dd76e9df27ce311df4
86
py
Python
utility/__init__.py
rusty-electron/neural-style-transfer-pytorch
3c721867c2b0fec1360b2dcce0138ca2ad4b26e2
[ "MIT" ]
2
2021-06-29T03:17:39.000Z
2022-02-08T20:51:58.000Z
utility/__init__.py
rusty-electron/neural-style-transfer-pytorch
3c721867c2b0fec1360b2dcce0138ca2ad4b26e2
[ "MIT" ]
null
null
null
utility/__init__.py
rusty-electron/neural-style-transfer-pytorch
3c721867c2b0fec1360b2dcce0138ca2ad4b26e2
[ "MIT" ]
null
null
null
from .utility import load_and_process_img, deprocess_img, create_timedir, load_config
43
85
0.872093
13
86
5.307692
0.846154
0
0
0
0
0
0
0
0
0
0
0
0.081395
86
1
86
86
0.873418
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
514654147432766bdfeb32f77b978fb9532f67a8
205
py
Python
tests/tasks/sodaspark/__init__.py
suryatmodulus/prefect
e4ac9f6aa831140c7fba0397f3e5e0884b1b9e42
[ "Apache-2.0" ]
8,633
2019-03-23T17:51:03.000Z
2022-03-31T22:17:42.000Z
tests/tasks/sodaspark/__init__.py
suryatmodulus/prefect
e4ac9f6aa831140c7fba0397f3e5e0884b1b9e42
[ "Apache-2.0" ]
3,903
2019-03-23T19:11:21.000Z
2022-03-31T23:21:23.000Z
tests/tasks/sodaspark/__init__.py
suryatmodulus/prefect
e4ac9f6aa831140c7fba0397f3e5e0884b1b9e42
[ "Apache-2.0" ]
937
2019-03-23T18:49:44.000Z
2022-03-31T21:45:13.000Z
import pytest pytest.importorskip("sodaspark") try: from sodasql.scan.dialect import SPARK except ImportError: pytest.skip("Intermittent issue with SPARK installation.", allow_module_level=True)
22.777778
87
0.790244
25
205
6.4
0.84
0
0
0
0
0
0
0
0
0
0
0
0.126829
205
8
88
25.625
0.893855
0
0
0
0
0
0.253659
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
5abc4edfc1cf6a65ca2a4d30ea461963775017d0
128
py
Python
usergroups/admin.py
strange/django-usergroups
4677fc1546da5610e504de8776ae1d513c0ce274
[ "BSD-3-Clause" ]
2
2015-01-13T18:47:33.000Z
2020-04-23T10:58:37.000Z
usergroups/admin.py
strange/django-usergroups
4677fc1546da5610e504de8776ae1d513c0ce274
[ "BSD-3-Clause" ]
null
null
null
usergroups/admin.py
strange/django-usergroups
4677fc1546da5610e504de8776ae1d513c0ce274
[ "BSD-3-Clause" ]
2
2015-01-13T06:01:31.000Z
2020-10-19T14:05:33.000Z
from django.contrib import admin from usergroups.models import UserGroupApplication admin.site.register(UserGroupApplication)
21.333333
50
0.867188
14
128
7.928571
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.085938
128
5
51
25.6
0.948718
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
5acbecfb709b8495948fad46011c1e3dc060cf96
82
py
Python
Python/VEI_06.py
lucsap/APC
344011552dccdf8210d65cee0531460a1a2d6fae
[ "MIT" ]
null
null
null
Python/VEI_06.py
lucsap/APC
344011552dccdf8210d65cee0531460a1a2d6fae
[ "MIT" ]
null
null
null
Python/VEI_06.py
lucsap/APC
344011552dccdf8210d65cee0531460a1a2d6fae
[ "MIT" ]
null
null
null
c = input('') print(c) print(c*2) print(f'{c} {c}') print(f'2{c}') print(f'[{c}]')
13.666667
17
0.512195
18
82
2.333333
0.277778
0.428571
0.333333
0
0
0
0
0
0
0
0
0.027027
0.097561
82
6
18
13.666667
0.540541
0
0
0
0
0
0.192771
0
0
0
0
0
0
1
0
false
0
0
0
0
0.833333
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
5
850015f9cdc41acf6f0f9ef6d7fa6c16db8f31fb
16
py
Python
tests/test_liu.py
ImYJLiu/IRT
9c0ff5cad0ef362d45052a802fe9f8e7604264ee
[ "MIT" ]
4
2019-12-05T07:37:32.000Z
2021-03-12T06:28:12.000Z
tests/test_liu.py
ImYJLiu/IRT
9c0ff5cad0ef362d45052a802fe9f8e7604264ee
[ "MIT" ]
1
2021-11-15T17:49:02.000Z
2021-11-15T17:49:02.000Z
tests/test_liu.py
ImYJLiu/IRT
9c0ff5cad0ef362d45052a802fe9f8e7604264ee
[ "MIT" ]
null
null
null
i=3//5 print(i)
5.333333
8
0.5625
5
16
1.8
0.8
0
0
0
0
0
0
0
0
0
0
0.142857
0.125
16
2
9
8
0.5
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
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
1
0
5
851bc8a9d9c5aa45583385dfc40587c8bb134ef0
1,359
py
Python
tests/integration/test_link_token.py
InspiredMember/plaid-python
8bee5a907e0fd03c406b24a7b62166f86a42ca6b
[ "MIT" ]
null
null
null
tests/integration/test_link_token.py
InspiredMember/plaid-python
8bee5a907e0fd03c406b24a7b62166f86a42ca6b
[ "MIT" ]
null
null
null
tests/integration/test_link_token.py
InspiredMember/plaid-python
8bee5a907e0fd03c406b24a7b62166f86a42ca6b
[ "MIT" ]
null
null
null
import time from tests.integration.util import create_client def test_link_token_create_required(): client = create_client() # build the configs configs = { 'user': { 'client_user_id': str(time.time()), }, 'products': ["auth", "transactions"], 'client_name': "Plaid Test", 'country_codes': ['GB'], 'language': 'en', } # create link token response = client.LinkToken.create(configs) # assert on response assert response['link_token'] is not None assert response['expiration'] is not None def test_link_token_create_optional(): client = create_client() # build the configs configs = { 'user': { 'client_user_id': str(time.time()), }, 'products': ["auth", "transactions"], 'client_name': "Plaid Test", 'country_codes': ['GB'], 'language': 'en', 'webhook': 'https://sample-webhook-uri.com', 'link_customization_name': 'default', 'account_filters': { 'depository': { 'account_subtypes': ['checking', 'savings'], }, }, } # create link token response = client.LinkToken.create(configs) # assert on response assert response['link_token'] is not None assert response['expiration'] is not None
24.709091
60
0.575423
138
1,359
5.485507
0.369565
0.071334
0.047556
0.042272
0.760898
0.702774
0.702774
0.702774
0.702774
0.702774
0
0
0.288447
1,359
54
61
25.166667
0.782834
0.080206
0
0.594595
0
0
0.272727
0.018504
0
0
0
0
0.108108
1
0.054054
false
0
0.054054
0
0.108108
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
517420f0ac41873ee50fb3571ce3acb1e03fd15e
106
py
Python
Leetcode/0561. Array Partition I.py
luckyrabbit85/Python
ed134fd70b4a7b84b183b87b85ad5190f54c9526
[ "MIT" ]
1
2021-07-15T18:40:26.000Z
2021-07-15T18:40:26.000Z
Leetcode/0561. Array Partition I.py
luckyrabbit85/Python
ed134fd70b4a7b84b183b87b85ad5190f54c9526
[ "MIT" ]
null
null
null
Leetcode/0561. Array Partition I.py
luckyrabbit85/Python
ed134fd70b4a7b84b183b87b85ad5190f54c9526
[ "MIT" ]
null
null
null
class Solution: def arrayPairSum(self, nums: list[int]) -> int: return sum(sorted(nums)[::2])
26.5
51
0.622642
14
106
4.714286
0.857143
0
0
0
0
0
0
0
0
0
0
0.011905
0.207547
106
3
52
35.333333
0.77381
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0.333333
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
51e424241938055cf4e6baebdf15adb89c32213c
478
py
Python
tests/test_query.py
Ultru/ultru-client
b8dae2869804fea166e33d5d4fc05dc6dbc363be
[ "MIT" ]
null
null
null
tests/test_query.py
Ultru/ultru-client
b8dae2869804fea166e33d5d4fc05dc6dbc363be
[ "MIT" ]
null
null
null
tests/test_query.py
Ultru/ultru-client
b8dae2869804fea166e33d5d4fc05dc6dbc363be
[ "MIT" ]
null
null
null
from ultru_client.utils.query import Query from ultru_client.utils.record_types import Types from ultru_client.utils.scores import Scores def test_create_query_just_record_type(): tmp_query = Query(record_type='process') assert tmp_query.body == {'record_type':'process'} def test_create_query_recordtype_and_score(): tmp_query = Query(record_type='process', score='benign') assert tmp_query.body == {'record_type': 'process', 'score_low': 0, 'score_high': 5}
39.833333
88
0.769874
70
478
4.914286
0.371429
0.145349
0.197674
0.174419
0.377907
0.377907
0.203488
0
0
0
0
0.004717
0.112971
478
12
88
39.833333
0.806604
0
0
0
0
0
0.156576
0
0
0
0
0
0.222222
1
0.222222
false
0
0.333333
0
0.555556
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
0
1
0
0
5
51ec3e9f8957701cd880fb57bc926975fdeb54c0
154
py
Python
server/config.py
jideobs/flask-gae-ndb-starter
776a9ea967524f4a88debb6f00e4d39f15b4e799
[ "MIT" ]
2
2017-08-13T09:20:17.000Z
2017-08-13T18:19:09.000Z
server/config.py
jideobs/flask-gae-ndb-starter
776a9ea967524f4a88debb6f00e4d39f15b4e799
[ "MIT" ]
null
null
null
server/config.py
jideobs/flask-gae-ndb-starter
776a9ea967524f4a88debb6f00e4d39f15b4e799
[ "MIT" ]
null
null
null
APP_CONFIG = { 'DEBUG': True, 'SECRET_KEY': 'This is supposed to be a secret', 'WTF_CSRF_SECRET_KEY': 'This is supposed to also be a secret' }
30.8
65
0.662338
25
154
3.88
0.6
0.185567
0.268041
0.309278
0.515464
0.515464
0
0
0
0
0
0
0.220779
154
5
66
30.8
0.808333
0
0
0
0
0
0.651613
0
0
0
0
0
0
1
0
false
0
0
0
0
0
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
cf9884e0ba6b6b58af25b4da34e7ad4a5c817130
48
py
Python
lab2/e2.py
daem-uni/dagdim-lab-informatica
9a5c3f829e8372ef994efb28e81a2f7d77c88681
[ "MIT" ]
null
null
null
lab2/e2.py
daem-uni/dagdim-lab-informatica
9a5c3f829e8372ef994efb28e81a2f7d77c88681
[ "MIT" ]
null
null
null
lab2/e2.py
daem-uni/dagdim-lab-informatica
9a5c3f829e8372ef994efb28e81a2f7d77c88681
[ "MIT" ]
1
2020-12-03T15:17:29.000Z
2020-12-03T15:17:29.000Z
n = 12345 print(str(n).replace("", "\n")[1:-1])
16
37
0.520833
9
48
2.777778
0.666667
0
0
0
0
0
0
0
0
0
0
0.162791
0.104167
48
3
37
16
0.418605
0
0
0
0
0
0.040816
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
5
cf9b174980b0e5175af1a4719f8959dd8133ce12
170
py
Python
megumin/__init__.py
davitudoplugins1234/WhiterKang
f4779d2c440849fa97e7014cd856f885b0abbc87
[ "MIT" ]
2
2022-02-01T17:55:44.000Z
2022-03-27T17:21:55.000Z
megumin/__init__.py
davitudoplugins1234/WhiterKang
f4779d2c440849fa97e7014cd856f885b0abbc87
[ "MIT" ]
null
null
null
megumin/__init__.py
davitudoplugins1234/WhiterKang
f4779d2c440849fa97e7014cd856f885b0abbc87
[ "MIT" ]
null
null
null
# Copyright (C) 2022 by fnixdev # from .config import Config from .bot import megux, START_TIME from .utils.logger import logging # nao_meche from . import cus_filters
21.25
46
0.770588
26
170
4.923077
0.730769
0
0
0
0
0
0
0
0
0
0
0.028169
0.164706
170
7
47
24.285714
0.873239
0.229412
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
cfbc8c08c09961247af4c06256abd3d9b316bffd
139
py
Python
1-9/pep_01.py
sayantan3/project-euler
9b856c84a0b174754819ed15f86eb0f30181e94e
[ "MIT" ]
null
null
null
1-9/pep_01.py
sayantan3/project-euler
9b856c84a0b174754819ed15f86eb0f30181e94e
[ "MIT" ]
null
null
null
1-9/pep_01.py
sayantan3/project-euler
9b856c84a0b174754819ed15f86eb0f30181e94e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import math print (sum(number for number in range(1000) if not (number % 3 and number % 5))) # Answer: 233168
15.444444
80
0.676259
23
139
4.086957
0.869565
0
0
0
0
0
0
0
0
0
0
0.117117
0.201439
139
8
81
17.375
0.72973
0.258993
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0.5
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
1
0
5
cfd79889051d4d3a986f7c42d3a694a568c1479a
90
py
Python
eco_connect/src/errors.py
ecorithm/eco_connect_public
2c185ffabf09b3f276dca5bb52d3c397e691eabf
[ "MIT" ]
null
null
null
eco_connect/src/errors.py
ecorithm/eco_connect_public
2c185ffabf09b3f276dca5bb52d3c397e691eabf
[ "MIT" ]
95
2018-01-30T19:34:48.000Z
2020-02-01T15:45:11.000Z
eco_connect/src/errors.py
ecorithm/eco_connect_public
2c185ffabf09b3f276dca5bb52d3c397e691eabf
[ "MIT" ]
null
null
null
class InvalidRequest(Exception): pass class RequestParserError(Exception): pass
12.857143
36
0.755556
8
90
8.5
0.625
0.382353
0
0
0
0
0
0
0
0
0
0
0.177778
90
6
37
15
0.918919
0
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
5
5c639e88082c0d57d9ebd95c330e0b6f06ea1a01
162
py
Python
pca/data/dao/__init__.py
daniel-butler/python-clean-architecture
a95da91fffb1120e1e748c9ee7717a622647288e
[ "MIT" ]
null
null
null
pca/data/dao/__init__.py
daniel-butler/python-clean-architecture
a95da91fffb1120e1e748c9ee7717a622647288e
[ "MIT" ]
null
null
null
pca/data/dao/__init__.py
daniel-butler/python-clean-architecture
a95da91fffb1120e1e748c9ee7717a622647288e
[ "MIT" ]
1
2019-12-11T01:32:08.000Z
2019-12-11T01:32:08.000Z
from .abstract import ( # noqa: F401 AbstractDao, QueryChain, ) from .file import FileDao # noqa: F401 from .in_memory import InMemoryDao # noqa: F401
23.142857
48
0.703704
20
162
5.65
0.6
0.212389
0
0
0
0
0
0
0
0
0
0.070866
0.216049
162
6
49
27
0.818898
0.197531
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
5c80510c74859643a23b0660a59840bd5aff7fed
96
py
Python
venv/lib/python3.8/site-packages/numpy/core/tests/test_indexerrors.py
Retraces/UkraineBot
3d5d7f8aaa58fa0cb8b98733b8808e5dfbdb8b71
[ "MIT" ]
2
2022-03-13T01:58:52.000Z
2022-03-31T06:07:54.000Z
venv/lib/python3.8/site-packages/numpy/core/tests/test_indexerrors.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
19
2021-11-20T04:09:18.000Z
2022-03-23T15:05:55.000Z
venv/lib/python3.8/site-packages/numpy/core/tests/test_indexerrors.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
null
null
null
/home/runner/.cache/pip/pool/90/df/71/2e5e85553ce623b7ee9a7fdcb99de4d289979d37ad82d0a73d8e3872fc
96
96
0.895833
9
96
9.555556
1
0
0
0
0
0
0
0
0
0
0
0.395833
0
96
1
96
96
0.5
0
0
0
0
0
0
0
0
1
0
0
0
0
null
null
0
0
null
null
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
null
1
0
0
0
1
0
0
0
0
0
0
0
0
5
5cc3610b3eeed91461fb277dcaad7e8fe95f847f
151
py
Python
code/scripts/click.py
PetropoulakisPanagiotis/BSc_thesis
1afb670b7ef250795127a50001734c5203b241b7
[ "MIT" ]
2
2020-10-19T11:38:09.000Z
2022-03-30T04:46:28.000Z
code/scripts/click.py
PetropoulakisPanagiotis/BSc_thesis
1afb670b7ef250795127a50001734c5203b241b7
[ "MIT" ]
null
null
null
code/scripts/click.py
PetropoulakisPanagiotis/BSc_thesis
1afb670b7ef250795127a50001734c5203b241b7
[ "MIT" ]
1
2021-10-08T08:19:43.000Z
2021-10-08T08:19:43.000Z
from pymouse import PyMouse import time m = PyMouse() while True: m.click(600, 424) #time.sleep(5) #m.click(790, 424) time.sleep(150)
15.1
27
0.642384
24
151
4.041667
0.583333
0.268041
0.247423
0
0
0
0
0
0
0
0
0.136752
0.225166
151
9
28
16.777778
0.692308
0.198676
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
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
5cdbdcec8b47cf8f558fe9098e8a5171cd527aa5
1,567
py
Python
scripts/genetic_algo/parsing.py
marcelomf/tbfix
14873dddcd2d35a332efdeb334dbdfc677ba781b
[ "MIT" ]
9
2021-04-03T04:27:09.000Z
2021-11-29T04:33:47.000Z
scripts/genetic_algo/parsing.py
marcelomf/tbfix
14873dddcd2d35a332efdeb334dbdfc677ba781b
[ "MIT" ]
3
2021-03-31T17:09:11.000Z
2021-07-01T13:31:59.000Z
scripts/genetic_algo/parsing.py
marcelomf/tbfix
14873dddcd2d35a332efdeb334dbdfc677ba781b
[ "MIT" ]
4
2021-04-13T19:48:15.000Z
2022-01-02T19:30:52.000Z
import shlex import subprocess import re def parse_trades(stuff): """ >>> parse_trades("1 trades over 17 days (avg 0.06 trades/day)") '0.06' :param stuff: :return: """ return stuff.split(b'avg')[-1].strip().split()[0] def args_for_strategy(strat): ansi_escape = re.compile(b'\x1b[^m]*m') available = subprocess.check_output(shlex.split('env node zenbot.js list-strategies')) strats = [ansi_escape.sub(b'', strat.strip()) for strat in available.split(b'\n\n')] groups = [group.splitlines() for group in strats] output = {split[0].split()[0]: split[1:] for split in groups if split} result = {strategy: [line.strip().strip(b'-').split(b'=')[0] for line in lines if b'--' in line] for strategy, lines in output.items()} result = {key.decode(): [p.decode() for p in val] for key, val in result.items()} return result[strat] def strategies(): ansi_escape = re.compile(b'\x1b[^m]*m') available = subprocess.check_output(shlex.split('env node zenbot.js list-strategies')) strats = [ansi_escape.sub(b'', strat.strip()) for strat in available.split(b'\n\n')] groups = [group.splitlines() for group in strats] output = {split[0].split()[0]: split[1:] for split in groups if split} result = {strategy: [line.strip().strip(b'-').split(b'=')[0] for line in lines if b'--' in line] for strategy, lines in output.items()} result = [key.decode() for key, val in result.items()] return result
37.309524
90
0.611997
228
1,567
4.162281
0.241228
0.031612
0.046365
0.040042
0.783983
0.783983
0.783983
0.783983
0.712329
0.712329
0
0.017213
0.221442
1,567
41
91
38.219512
0.760656
0.059349
0
0.571429
0
0
0.073997
0
0
0
0
0
0
1
0.107143
false
0
0.107143
0
0.321429
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
7a430ed9ca7d3669c651021e3236ad9f88017045
2,135
py
Python
tests/test_matmul.py
gavinuhma/tf-encrypted
4e18d78a151bbe91489a1773fb839b889ff5b460
[ "Apache-2.0" ]
3
2018-10-18T19:36:02.000Z
2020-07-05T19:46:23.000Z
tests/test_matmul.py
dropoutlabs/tf-encrypted
48c9dc7419163425e736ad05bb19980d134fc851
[ "Apache-2.0" ]
null
null
null
tests/test_matmul.py
dropoutlabs/tf-encrypted
48c9dc7419163425e736ad05bb19980d134fc851
[ "Apache-2.0" ]
null
null
null
# pylint: disable=missing-docstring import unittest import numpy as np import tensorflow as tf import tf_encrypted as tfe class TestMatMul(unittest.TestCase): def setUp(self): tf.reset_default_graph() def test_matmul(self) -> None: with tfe.protocol.Pond() as prot: input_shape = [4, 5] x_in = np.random.normal(size=input_shape) filter_shape = [5, 4] filter_values = np.random.normal(size=filter_shape) input_input = prot.define_private_variable(x_in) filter_filter = prot.define_private_variable(filter_values) out = prot.matmul(input_input, filter_filter) with tfe.Session() as sess: sess.run(tf.global_variables_initializer()) out_pond = sess.run(out.reveal()) # reset graph tf.reset_default_graph() with tf.Session() as sess: x = tf.Variable(x_in, dtype=tf.float32) filters_tf = tf.Variable(filter_values, dtype=tf.float32) out = tf.matmul(x, filters_tf) sess.run(tf.global_variables_initializer()) out_tensorflow = sess.run(out) np.testing.assert_array_almost_equal(out_pond, out_tensorflow, decimal=2) def test_big_middle_matmul(self) -> None: with tfe.protocol.Pond() as prot: input_shape = [64, 4500] x_in = np.random.normal(size=input_shape) filter_shape = [4500, 64] filter_values = np.random.normal(size=filter_shape) input_input = prot.define_private_variable(x_in) filter_filter = prot.define_private_variable(filter_values) out = prot.matmul(input_input, filter_filter) with tfe.Session() as sess: sess.run(tf.global_variables_initializer()) out_pond = sess.run(out.reveal()) # reset graph tf.reset_default_graph() with tf.Session() as sess: x = tf.Variable(x_in, dtype=tf.float32) filters_tf = tf.Variable(filter_values, dtype=tf.float32) out = tf.matmul(x, filters_tf) sess.run(tf.global_variables_initializer()) out_tensorflow = sess.run(out) np.testing.assert_allclose(out_pond, out_tensorflow, atol=.1) if __name__ == '__main__': unittest.main()
25.722892
77
0.68993
299
2,135
4.662207
0.237458
0.040172
0.040172
0.05165
0.784792
0.784792
0.784792
0.784792
0.784792
0.784792
0
0.015258
0.201874
2,135
82
78
26.036585
0.802817
0.026698
0
0.673469
0
0
0.003857
0
0
0
0
0
0.040816
1
0.061224
false
0
0.081633
0
0.163265
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
7a851596e75aedba8d743a280b4b9117cdc2933b
3,423
py
Python
src/GL/sim/random_eff_ell.py
kylmcgr/RL-RNN-SURF
5d6db3e6ff4534003f2a7e832f221b5e529775d5
[ "Apache-2.0" ]
2
2021-03-12T11:12:23.000Z
2021-05-19T08:32:47.000Z
src/GL/sim/random_eff_ell.py
kylmcgr/RL-RNN-SURF
5d6db3e6ff4534003f2a7e832f221b5e529775d5
[ "Apache-2.0" ]
6
2019-12-16T21:54:13.000Z
2022-02-10T00:16:08.000Z
src/GL/sim/random_eff_ell.py
kylmcgr/RL-RNN-SURF
5d6db3e6ff4534003f2a7e832f221b5e529775d5
[ "Apache-2.0" ]
3
2019-11-07T22:44:21.000Z
2021-02-22T05:51:59.000Z
# Calculates ELL for the models fitted to each subject separately. # This file operates on the output of file 'fit/gql_ml_rand_opt.py', 'fit/ql_ml_rand_opt.py', 'fit/qlp_ml_rand_opt.py'. from actionflow.qrl.gql import GQL from actionflow.qrl.opt_ml import OptML from actionflow.qrl.ql import QL from actionflow.qrl.simulate import Simulator from BD.data.data_reader import DataReader import tensorflow as tf from BD.util.paths import Paths def evaluate_gql_random(): data = DataReader.read_BD() base_input_folder = Paths.rest_path + 'archive/beh/gql-ml-rand-opt/' base_output_folder = Paths.local_path + 'BD/evals/gql-ml-rand/' model_iters = ['model-final'] folds = {'Healthy': ['fold' + str(x) for x in range(0, 34)], 'Bipolar': ['fold' + str(x) for x in range(0, 33)], 'Depression': ['fold' + str(x) for x in range(0, 34)] } tf.reset_default_graph() worker = GQL.get_instance(2, 2, {}) worker.set_params(OptML.get_variables(worker.get_params())) def test_and_save(sess, test, output_folder): return OptML.test_and_save("", output_folder, None, sess, test, worker) Simulator.evaluate_CV(base_input_folder, base_output_folder, test_and_save, data, folds, model_iters, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], random_tie=True) def evaluate_ql_random(): data = DataReader.read_BD() base_input_folder = Paths.rest_path + 'archive/beh/ql-ml-rand-opt/' base_output_folder = Paths.local_path + 'BD/evals/ql-ml-rand/' model_iters = ['model-final'] folds = {'Healthy': ['fold' + str(x) for x in range(0, 34)], 'Bipolar': ['fold' + str(x) for x in range(0, 33)], 'Depression': ['fold' + str(x) for x in range(0, 34)] } tf.reset_default_graph() worker = QL.get_instance_without_pser(2, 0.1, 0.2) worker.set_params(OptML.get_variables(worker.get_params())) def test_and_save(sess, test, output_folder): return OptML.test_and_save("", output_folder, None, sess, test, worker) Simulator.evaluate_CV(base_input_folder, base_output_folder, test_and_save, data, folds, model_iters, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], random_tie=True) def evaluate_qlp_random(): data = DataReader.read_BD() base_input_folder = Paths.rest_path + 'archive/beh/qlp-ml-rand-opt/' base_output_folder = Paths.local_path + 'BD/evals/qlp-ml-rand/' model_iters = ['model-final'] folds = {'Healthy': ['fold' + str(x) for x in range(0, 34)], 'Bipolar': ['fold' + str(x) for x in range(0, 33)], 'Depression': ['fold' + str(x) for x in range(0, 34)] } tf.reset_default_graph() worker = QL.get_instance_with_pser(2, 0.1, 0.2, 0.3) worker.set_params(OptML.get_variables(worker.get_params())) def test_and_save(sess, test, output_folder): return OptML.test_and_save("", output_folder, None, sess, test, worker) Simulator.evaluate_CV(base_input_folder, base_output_folder, test_and_save, data, folds, model_iters, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], random_tie=True) if __name__ == '__main__': evaluate_gql_random() evaluate_ql_random() evaluate_qlp_random()
42.7875
119
0.628396
507
3,423
4.001972
0.205128
0.070971
0.035485
0.048793
0.781666
0.767866
0.759487
0.759487
0.759487
0.759487
0
0.033013
0.238972
3,423
79
120
43.329114
0.745873
0.05317
0
0.580645
0
0
0.090797
0.038604
0
0
0
0
0
1
0.096774
false
0
0.112903
0.048387
0.258065
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
7a88f3941ab094a068b215d0954fb8d5529661be
424
py
Python
pages/views.py
smandal047/portfolio
5208a2e80b410302c7a8060c128b04fdb2bc561f
[ "MIT" ]
null
null
null
pages/views.py
smandal047/portfolio
5208a2e80b410302c7a8060c128b04fdb2bc561f
[ "MIT" ]
null
null
null
pages/views.py
smandal047/portfolio
5208a2e80b410302c7a8060c128b04fdb2bc561f
[ "MIT" ]
null
null
null
from django.shortcuts import render # Create your views here. # homepage def homepage_view(request): return render(request, 'homepage.html', {}) # about page def about_view(request): return render(request, 'about.html', {}) # myRhythm page def portfolio_view(request): return render(request, 'portfolio.html', {}) # contact page def contact_view(request): return render(request, 'contact.html', {})
17.666667
48
0.707547
52
424
5.692308
0.384615
0.148649
0.22973
0.310811
0.405405
0
0
0
0
0
0
0
0.162736
424
23
49
18.434783
0.833803
0.165094
0
0
0
0
0.140805
0
0
0
0
0
0
1
0.444444
false
0
0.111111
0.444444
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
7aa8421e4cae21be80c336a26749c26d33844566
114
py
Python
upload_video_by_user/app/admin.py
farhan3a/3D-HumanPoseEstimation
906b972749371c8fb16cb851e9a069df1cf76053
[ "CC0-1.0" ]
1
2021-04-10T07:39:39.000Z
2021-04-10T07:39:39.000Z
upload_video_by_user/app/admin.py
farhan3a/3D-HumanPoseEstimation
906b972749371c8fb16cb851e9a069df1cf76053
[ "CC0-1.0" ]
null
null
null
upload_video_by_user/app/admin.py
farhan3a/3D-HumanPoseEstimation
906b972749371c8fb16cb851e9a069df1cf76053
[ "CC0-1.0" ]
2
2021-01-05T18:27:11.000Z
2021-04-24T00:53:42.000Z
from django.contrib import admin # Register your models here. from .models import Video admin.site.register(Video)
28.5
32
0.815789
17
114
5.470588
0.647059
0
0
0
0
0
0
0
0
0
0
0
0.114035
114
4
33
28.5
0.920792
0.22807
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
8f44895a1fad47c6ab9257c59323b48f52ffcc22
179
py
Python
blitzortung/builder/__init__.py
wuan/bo-python
86c90e437ff456092bf7c9eff8c85daffdd220f0
[ "Apache-2.0" ]
3
2015-04-09T22:33:59.000Z
2019-02-12T12:52:16.000Z
blitzortung/builder/__init__.py
wuan/bo-python
86c90e437ff456092bf7c9eff8c85daffdd220f0
[ "Apache-2.0" ]
7
2015-05-23T13:38:14.000Z
2019-12-13T20:43:12.000Z
blitzortung/builder/__init__.py
wuan/bo-python
86c90e437ff456092bf7c9eff8c85daffdd220f0
[ "Apache-2.0" ]
4
2015-12-13T12:40:40.000Z
2021-07-09T10:48:16.000Z
from .base import Timestamp, Event, BuilderError from .raw_signal import RawWaveformEvent, ChannelWaveform from .station import Station, StationOffline from .strike import Strike
35.8
57
0.843575
21
179
7.142857
0.619048
0
0
0
0
0
0
0
0
0
0
0
0.111732
179
4
58
44.75
0.943396
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
56b947a7641db50ca88e6c8c9cc9eb0b570124f2
108
py
Python
src/onceml/types/__init__.py
lzmchina/OnceML
f30d9037d2e492d8d45b858f2be3b27fc5258356
[ "MIT" ]
1
2022-01-01T07:15:03.000Z
2022-01-01T07:15:03.000Z
src/onceml/types/__init__.py
lzmchina/OnceML
f30d9037d2e492d8d45b858f2be3b27fc5258356
[ "MIT" ]
null
null
null
src/onceml/types/__init__.py
lzmchina/OnceML
f30d9037d2e492d8d45b858f2be3b27fc5258356
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- ''' @Description : @Date :2021/04/19 15:53:18 @Author :lzm @version :0.0.1 '''
9.818182
26
0.555556
17
108
3.529412
0.941176
0
0
0
0
0
0
0
0
0
0
0.202247
0.175926
108
10
27
10.8
0.47191
1.018519
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
1
0
0
0
0
0
1
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
711ae8765dead38e3e378a5cebdfa995168a15ff
24,159
py
Python
codegen/droptakefilter_testgen.py
m1griffin/arrayfunc
df57097699c25d3e949e1ade307ed61eaa5728c2
[ "Apache-2.0" ]
2
2017-08-28T08:41:16.000Z
2018-05-29T03:49:36.000Z
codegen/droptakefilter_testgen.py
m1griffin/arrayfunc
df57097699c25d3e949e1ade307ed61eaa5728c2
[ "Apache-2.0" ]
null
null
null
codegen/droptakefilter_testgen.py
m1griffin/arrayfunc
df57097699c25d3e949e1ade307ed61eaa5728c2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 ############################################################################## # Project: arrayfunc # Purpose: Generate the unit tests for afilter, dropwhile, takewhile. # Language: Python 3.4 # Date: 22-May-2014 # ############################################################################### # # Copyright 2014 - 2019 Michael Griffin <m12.griffin@gmail.com> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ############################################################################## # ============================================================================== import itertools import codegen_common # ============================================================================== # The template used to generate the basic operator tests. op_template = ''' ############################################################################## class %(funcname)s_operator_%(typecode)s(unittest.TestCase): """Test for basic operator function. """ ######################################################## def setUp(self): """Initialise. """ self.TypeCode = '%(typecode)s' self.TestData = [97%(zeropad)s, 97%(zeropad)s, 97%(zeropad)s, 98%(zeropad)s, 99%(zeropad)s, 101%(zeropad)s, 101%(zeropad)s, 102%(zeropad)s, 95%(zeropad)s, 103%(zeropad)s] self.zerofill = 0%(zeropad)s self.data = array.array(self.TypeCode, self.TestData) self.dataout = array.array(self.TypeCode, itertools.repeat(self.zerofill, len(self.data))) # These are the compare operators to use when testing the function. self.opvals = { '<' : operator.lt, '<=' : operator.le, '==' : operator.eq, '!=' : operator.ne, '>=' : operator.ge, '>' : operator.gt } ######################################################## def %(pyfuncname)s(self, op, data, param, maxlen=0): """Emulate the test function. """ # If the maxlen parameter is used, trim the source data accordingly. if maxlen > 0: testdata = data[:maxlen] else: testdata = data # Get the type of compare operation we want, and convert it into a # function we can use as a predicate. opfunc = self.opvals[op] opval = lambda x: opfunc(x, param) # Peform the operation. result = list(%(pyfunccall)s(opval, testdata)) copiedlength = len(result) # Pad out with the same fill used for the output array, and return # the number of items copied. trimmed = result + list(itertools.repeat(self.zerofill, len(data) - len(result))) return trimmed, copiedlength ######################################################## def test_operator_eq_01(self): """Test eq - Array code %(typecode)s. """ param = 97%(zeropad)s result = arrayfunc.%(funcname)s('==', self.data, self.dataout, param) expected, explength = self.%(pyfuncname)s('==', self.data, param) # Check the test to make sure it is working as intended. self.assertTrue((result > 0) and (result < len(self.data))) self.assertEqual(result, explength) for dataoutitem, expecteditem in zip(list(self.dataout), expected): self.assertEqual(dataoutitem, expecteditem) ######################################################## def test_operator_gt_01(self): """Test gt - Array code %(typecode)s. """ param = 96%(zeropad)s result = arrayfunc.%(funcname)s('>', self.data, self.dataout, param) expected, explength = self.%(pyfuncname)s('>', self.data, param) # Check the test to make sure it is working as intended. self.assertTrue((result > 0) and (result < len(self.data))) self.assertEqual(result, explength) for dataoutitem, expecteditem in zip(list(self.dataout), expected): self.assertEqual(dataoutitem, expecteditem) ######################################################## def test_operator_gte_01(self): """Test gte - Array code %(typecode)s. """ param = 96%(zeropad)s result = arrayfunc.%(funcname)s('>=', self.data, self.dataout, param) expected, explength = self.%(pyfuncname)s('>=', self.data, param) # Check the test to make sure it is working as intended. self.assertTrue((result > 0) and (result < len(self.data))) self.assertEqual(result, explength) for dataoutitem, expecteditem in zip(list(self.dataout), expected): self.assertEqual(dataoutitem, expecteditem) ######################################################## def test_operator_lt_01(self): """Test lt - Array code %(typecode)s. """ param = 98%(zeropad)s result = arrayfunc.%(funcname)s('<', self.data, self.dataout, param) expected, explength = self.%(pyfuncname)s('<', self.data, param) # Check the test to make sure it is working as intended. self.assertTrue((result > 0) and (result < len(self.data))) self.assertEqual(result, explength) for dataoutitem, expecteditem in zip(list(self.dataout), expected): self.assertEqual(dataoutitem, expecteditem) ######################################################## def test_operator_lte_01(self): """Test lte - Array code %(typecode)s. """ param = 98%(zeropad)s result = arrayfunc.%(funcname)s('<=', self.data, self.dataout, param) expected, explength = self.%(pyfuncname)s('<=', self.data, param) # Check the test to make sure it is working as intended. self.assertTrue((result > 0) and (result < len(self.data))) self.assertEqual(result, explength) for dataoutitem, expecteditem in zip(list(self.dataout), expected): self.assertEqual(dataoutitem, expecteditem) ######################################################## def test_operator_ne_01(self): """Test ne - Array code %(typecode)s. """ param = 98%(zeropad)s result = arrayfunc.%(funcname)s('!=', self.data, self.dataout, param) expected, explength = self.%(pyfuncname)s('!=', self.data, param) # Check the test to make sure it is working as intended. self.assertTrue((result > 0) and (result < len(self.data))) self.assertEqual(result, explength) for dataoutitem, expecteditem in zip(list(self.dataout), expected): self.assertEqual(dataoutitem, expecteditem) ######################################################## def test_operator_lim_01(self): """Test array limits - Array code %(typecode)s. """ param = 97%(zeropad)s result = arrayfunc.%(funcname)s('==', self.data, self.dataout, param, maxlen=len(self.data)//2) expected, explength = self.%(pyfuncname)s('==', self.data, param, maxlen=len(self.data)//2) # Check the test to make sure it is working as intended. self.assertTrue((result > 0) and (result < len(self.data))) self.assertEqual(result, explength) for dataoutitem, expecteditem in zip(list(self.dataout), expected): self.assertEqual(dataoutitem, expecteditem) ######################################################## def test_operator_lim_02(self): """Test array limits - Array code %(typecode)s. """ param = 97%(zeropad)s result = arrayfunc.%(funcname)s('==', self.data, self.dataout, param, maxlen=-1) expected, explength = self.%(pyfuncname)s('==', self.data, param, maxlen=-1) # Check the test to make sure it is working as intended. self.assertTrue((result > 0) and (result < len(self.data))) self.assertEqual(result, explength) for dataoutitem, expecteditem in zip(list(self.dataout), expected): self.assertEqual(dataoutitem, expecteditem) ############################################################################## ''' # ============================================================================== # The template used to generate the parameter tests. param_template = ''' ############################################################################## class %(funcname)s_params_%(typecode)s(unittest.TestCase): """Test for basic parameter function. """ ######################################################## def setUp(self): """Initialise. """ self.TypeCode = '%(typecode)s' self.TestData = [97%(zeropad)s, 97%(zeropad)s, 97%(zeropad)s, 98%(zeropad)s, 99%(zeropad)s, 101%(zeropad)s, 101%(zeropad)s, 102%(zeropad)s, 102%(zeropad)s, 103%(zeropad)s] self.zerofill = 0%(zeropad)s self.data = array.array(self.TypeCode, self.TestData) self.dataout = array.array(self.TypeCode, itertools.repeat(self.zerofill, len(self.data))) # This is used in testing parameters. self.dataempty = array.array(self.TypeCode) ######################################################## def test_param_no_params(self): """Test exception when no parameters passed - Array code %(typecode)s. """ with self.assertRaises(TypeError): result = arrayfunc.%(funcname)s() # Check that the exception raised corresponds to the native Python behaviour. with self.assertRaises(TypeError): result = %(pyfunccall)s() ######################################################## def test_param_one_params(self): """Test exception when one parameter passed - Array code %(typecode)s. """ with self.assertRaises(TypeError): result = arrayfunc.%(funcname)s('==') # Check that the exception raised corresponds to the native Python behaviour. with self.assertRaises(TypeError): result = %(pyfunccall)s(lambda x: x < 1) ######################################################## def test_param_two_params(self): """Test exception when two parameters passed - Array code %(typecode)s. """ with self.assertRaises(TypeError): result = arrayfunc.%(funcname)s('==', self.data) # Check that the exception raised corresponds to the native Python behaviour. with self.assertRaises(TypeError): result = %(pyfunccall)s(lambda x: x < 1) ######################################################## def test_param_three_params(self): """Test exception when three parameters passed - Array code %(typecode)s. """ with self.assertRaises(TypeError): result = arrayfunc.%(funcname)s('==', self.data, self.dataout) # Check that the exception raised corresponds to the native Python behaviour. with self.assertRaises(TypeError): result = %(pyfunccall)s(lambda x: x < 1) ######################################################## def test_param_six_params(self): """Test exception when too many (six) parameters passed - Array code %(typecode)s. """ param = 101%(zeropad)s with self.assertRaises(TypeError): result = arrayfunc.%(funcname)s('==', self.data, self.dataout, param, 3, maxlen=2) # Check that the exception raised corresponds to the native Python behaviour. with self.assertRaises(TypeError): result = %(pyfunccall)s(lambda x: x < 1, [1, 2, 3, 4], 3) ######################################################## def test_param_invalid_keyword_params(self): """Test exception with invalid keyword parameters passed - Array code %(typecode)s. """ with self.assertRaises(TypeError): result = arrayfunc.%(funcname)s('==', self.data, self.dataout, 100%(zeropad)s, xx=2) # Check that the exception raised corresponds to the native Python behaviour. with self.assertRaises(TypeError): result = %(pyfunccall)s(lambda x: x < 1, [0, 1, 2, 3, 4], xx=2) ######################################################## def test_param_invalid_keyword_param_type(self): """Test exception with invalid keyword parameter type passed - Array code %(typecode)s. """ with self.assertRaises(TypeError): result = arrayfunc.%(funcname)s('==', self.data, self.dataout, 100%(zeropad)s, maxlen='x') # Check that the exception raised corresponds to the native Python behaviour. with self.assertRaises(TypeError): result = %(pyfunccall)s(lambda x: x < 1, [0, 1, 2, 3, 4], maxlen='x') ######################################################## def test_param_invalid_opcode_param_value(self): """Test exception with invalid first parameter value - Array code %(typecode)s. """ with self.assertRaises(ValueError): result = arrayfunc.%(funcname)s('!', self.data, self.dataout, 100%(zeropad)s) ######################################################## def test_param_invalid_opcode_param_type(self): """Test exception with invalid first parameter type - Array code %(typecode)s. """ with self.assertRaises(TypeError): result = arrayfunc.%(funcname)s(62, self.data, self.dataout, 100%(zeropad)s) # Check that the exception raised corresponds to the native Python behaviour. with self.assertRaises(TypeError): result = list(%(pyfunccall)s('a', [0, 1, 2, 3, 4])) ######################################################## def test_param_invalid_input_array_param_value(self): """Test exception with invalid array input parameter value - Array code %(typecode)s. """ with self.assertRaises(TypeError): result = arrayfunc.%(funcname)s('==', 99, self.dataout, 100%(zeropad)s) # Check that the exception raised corresponds to the native Python behaviour. with self.assertRaises(TypeError): result = %(pyfunccall)s(lambda x: x < 1, 99) ######################################################## def test_param_invalid_output_array_param_value(self): """Test exception with invalid array output parameter type - Array code %(typecode)s. """ with self.assertRaises(TypeError): result = arrayfunc.%(funcname)s('==', self.data, 99, 100%(zeropad)s) # Check that the exception raised corresponds to the native Python behaviour. with self.assertRaises(TypeError): result = %(pyfunccall)s(lambda x: x < 1, 99) ######################################################## def test_param_invalid_input_array_param_length(self): """Test exception with empty input array parameter type - Array code %(typecode)s. """ with self.assertRaises(IndexError): result = arrayfunc.%(funcname)s('==', self.dataempty, self.dataout, 100%(zeropad)s) ######################################################## def test_param_invalid_output_array_param_length(self): """Test exception with empty output array parameter type - Array code %(typecode)s. """ with self.assertRaises(IndexError): result = arrayfunc.%(funcname)s('==', self.data, self.dataempty, 100%(zeropad)s) ######################################################## def test_param_invalid_array_param_type_01(self): """Test exception with invalid compare parameter type - Array code %(typecode)s. """ with self.assertRaises(TypeError): result = arrayfunc.%(funcname)s('==', self.data, self.dataout, 'e') # Check that the exception raised corresponds to the native Python behaviour. with self.assertRaises(TypeError): result = %(pyfunccall)s(lambda x: x < 1, 99) ######################################################## def test_param_invalid_array_param_type_02(self): """Test exception with invalid compare parameter type - Array code %(typecode)s. """ with self.assertRaises(TypeError): result = arrayfunc.%(funcname)s('==', self.data, self.dataout, 100%(invalidzeropad)s) # Check that the exception raised corresponds to the native Python behaviour. with self.assertRaises(TypeError): result = %(pyfunccall)s(lambda x: x < 1, 99) ############################################################################## ''' # ============================================================================== # Overflow testing. This can't be used with all types. overflow_template = ''' ############################################################################## class %(funcname)s_paramovfl_%(typecode)s(unittest.TestCase): """Test for testing parameter overflow. """ ######################################################## def setUp(self): """Initialise. """ self.TypeCode = '%(typecode)s' self.zerofill = 0%(zeropad)s # These values are used for testing parameter overflows. self.dataovfl = array.array(self.TypeCode, range(97, 107)) self.dataoutovfl = array.array(self.TypeCode, itertools.repeat(self.zerofill, len(self.dataovfl))) self.MinVal = arrayfunc.arraylimits.%(typecode)s_min self.Maxval = arrayfunc.arraylimits.%(typecode)s_max ######################################################## def test_overflow_min(self): """Test parameter overflow min - Array code %(typecode)s. """ with self.assertRaises(OverflowError): result = arrayfunc.%(funcname)s('==', self.dataovfl, self.dataoutovfl, self.MinVal %(overflowdec)s) ######################################################## def test_overflow_max(self): """Test parameter overflow max - Array code %(typecode)s. """ with self.assertRaises(OverflowError): result = arrayfunc.%(funcname)s('==', self.dataovfl, self.dataoutovfl, self.Maxval %(overflowinc)s) ######################################################## def test_overflow_ok(self): """Test no overflow. These should not overflow - Array code %(typecode)s. """ result = arrayfunc.%(funcname)s('==', self.dataovfl, self.dataoutovfl, self.MinVal) result = arrayfunc.%(funcname)s('==', self.dataovfl, self.dataoutovfl, self.Maxval) ############################################################################## ''' # ============================================================================== # The template used to generate the tests for nan, inf, -inf. nonfinite_template = ''' ############################################################################## class %(funcname)s_nonfinite_%(typecode)s(unittest.TestCase): """Test for nan, inf, -inf. """ ######################################################## def setUp(self): """Initialise. """ self.data = array.array('%(typecode)s', [100.0] * 10) self.dataout = array.array('%(typecode)s', itertools.repeat(0.0, len(self.data))) self.zerofill = 0.0 # These are the compare operators to use when testing the function. self.opvals = { '<' : operator.lt, '<=' : operator.le, '==' : operator.eq, '!=' : operator.ne, '>=' : operator.ge, '>' : operator.gt } ######################################################## def %(pyfuncname)s(self, op, data, param, maxlen=0): """Emulate the test function. """ # If the maxlen parameter is used, trim the source data accordingly. if maxlen > 0: testdata = data[:maxlen] else: testdata = data # Get the type of compare operation we want, and convert it into a # function we can use as a predicate. opfunc = self.opvals[op] opval = lambda x: opfunc(x, param) # Peform the operation. result = list(%(pyfunccall)s(opval, testdata)) copiedlength = len(result) # Pad out with the same fill used for the output array, and return # the number of items copied. trimmed = result + list(itertools.repeat(self.zerofill, len(data) - len(result))) return trimmed, copiedlength ######################################################## def test_nonfinite_01(self): """Test for param of nan - Array code %(typecode)s. """ param = math.nan result = arrayfunc.%(funcname)s('==', self.data, self.dataout, param) expected, explength = self.%(pyfuncname)s('==', self.data, param) self.assertEqual(result, explength) for dataoutitem, expecteditem in zip(list(self.dataout), expected): self.assertEqual(dataoutitem, expecteditem) ######################################################## def test_nonfinite_02(self): """Test for param of inf - Array code %(typecode)s. """ param = math.inf result = arrayfunc.%(funcname)s('==', self.data, self.dataout, param) expected, explength = self.%(pyfuncname)s('==', self.data, param) self.assertEqual(result, explength) for dataoutitem, expecteditem in zip(list(self.dataout), expected): self.assertEqual(dataoutitem, expecteditem) ######################################################## def test_nonfinite_03(self): """Test for param of -inf - Array code %(typecode)s. """ param = -math.inf result = arrayfunc.%(funcname)s('==', self.data, self.dataout, param) expected, explength = self.%(pyfuncname)s('==', self.data, param) self.assertEqual(result, explength) for dataoutitem, expecteditem in zip(list(self.dataout), expected): self.assertEqual(dataoutitem, expecteditem) ######################################################## def test_nonfinite_04(self): """Test for maxlen of nan - Array code %(typecode)s. """ with self.assertRaises(TypeError): result = arrayfunc.%(funcname)s('==', self.data, self.dataout, 100.0, maxlen=math.nan) ######################################################## def test_nonfinite_05(self): """Test for maxlen of inf - Array code %(typecode)s. """ with self.assertRaises(TypeError): result = arrayfunc.%(funcname)s('==', self.data, self.dataout, 100.0, maxlen=math.inf) ######################################################## def test_nonfinite_06(self): """Test for maxlen of -inf - Array code %(typecode)s. """ with self.assertRaises(TypeError): result = arrayfunc.%(funcname)s('==', self.data, self.dataout, 100.0, maxlen=-math.inf) ############################################################################## ''' # ============================================================================== # ============================================================================== # The names of the functions which implement the equivalent Python operations # for test purposes. pyfuncname = {'afilter' : 'PyFilter', 'dropwhile' : 'DropWhile', 'takewhile' : 'TakeWhile' } # The Python native version function call. pyfunccall = {'afilter' : 'filter', 'dropwhile' : 'itertools.dropwhile', 'takewhile' : 'itertools.takewhile' } # ============================================================================== # This defines the module name. modulename = 'arrayfunc' # Import the array module for testing. arrayimport = 'import array' # The functions which are implemented by this program. completefuncnames = ('afilter', 'dropwhile', 'takewhile') # ============================================================================== # Output the functions which implement the individual non-SIMD # implementation functions. for funcname in completefuncnames: filenamebase = 'test_' + funcname filename = filenamebase + '.py' headerdate = codegen_common.FormatHeaderData(filenamebase, '18-Jun-2014', funcname) # Add additional header data. headerdate['modulename'] = modulename headerdate['arrayimport'] = arrayimport with open(filename, 'w') as f: # The copyright header. f.write(codegen_common.HeaderTemplate % headerdate) ##### # Basic tests. # Check each array type. for arraycode in codegen_common.arraycodes: if arraycode in codegen_common.floatarrays: zeropad = '.0' invalidzeropad = '' overflowinc = '* 1.1' overflowdec = '* 1.1' else: zeropad = '' invalidzeropad = '.5' overflowinc = '+ 1' overflowdec = '- 1' opdata = {'funcname' : funcname, 'typecode' : arraycode, 'zeropad' : zeropad, 'invalidzeropad' : invalidzeropad, 'pyfuncname' : pyfuncname[funcname], 'overflowinc' : overflowinc, 'overflowdec' : overflowdec, 'pyfunccall' : pyfunccall[funcname] } f.write(op_template % opdata) f.write(param_template % opdata) # Parameter overflow tests do not work with all array types. if arraycode not in ('L', 'Q', 'd'): f.write(overflow_template % opdata) # Non finite tests for parameter tests for floating point arrays. for arraycode in codegen_common.floatarrays: opdata = {'funcname' : funcname, 'pyfuncname' : pyfuncname[funcname], 'typecode' : arraycode, 'pyfunccall' : pyfunccall[funcname] } f.write(nonfinite_template % opdata) ##### # The code which initiates the unit test. f.write(codegen_common.testendtemplate % {'funcname' : funcname, 'testprefix' : 'af'}) # ==============================================================================
34.562232
173
0.585579
2,662
24,159
5.262585
0.118332
0.029695
0.02377
0.056535
0.767221
0.7326
0.708759
0.686559
0.680563
0.653723
0
0.012445
0.141893
24,159
698
174
34.611748
0.663306
0.097935
0
0.622318
1
0.060086
0.923946
0.372128
0
0
0
0
0.133047
1
0
false
0.015021
0.008584
0
0.012876
0
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
7124f65a5250d291959b14f8ee2a9e8c0b48a455
7,531
py
Python
external/devlib/devlib/module/biglittle.py
qais-yousef/lisa
8343e26bf0565589928a69ccbe67b1be03403db7
[ "Apache-2.0" ]
159
2016-01-25T11:08:39.000Z
2022-03-28T05:20:41.000Z
external/devlib/devlib/module/biglittle.py
qais-yousef/lisa
8343e26bf0565589928a69ccbe67b1be03403db7
[ "Apache-2.0" ]
656
2016-01-25T11:16:56.000Z
2022-03-23T16:03:28.000Z
external/devlib/devlib/module/biglittle.py
qais-yousef/lisa
8343e26bf0565589928a69ccbe67b1be03403db7
[ "Apache-2.0" ]
116
2016-01-25T12:06:31.000Z
2022-03-28T08:43:28.000Z
# Copyright 2018 ARM Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # from devlib.module import Module class BigLittleModule(Module): name = 'bl' @staticmethod def probe(target): return target.big_core is not None @property def bigs(self): return [i for i, c in enumerate(self.target.platform.core_names) if c == self.target.platform.big_core] @property def littles(self): return [i for i, c in enumerate(self.target.platform.core_names) if c == self.target.platform.little_core] @property def bigs_online(self): return list(sorted(set(self.bigs).intersection(self.target.list_online_cpus()))) @property def littles_online(self): return list(sorted(set(self.littles).intersection(self.target.list_online_cpus()))) # hotplug def online_all_bigs(self): self.target.hotplug.online(*self.bigs) def offline_all_bigs(self): self.target.hotplug.offline(*self.bigs) def online_all_littles(self): self.target.hotplug.online(*self.littles) def offline_all_littles(self): self.target.hotplug.offline(*self.littles) # cpufreq def list_bigs_frequencies(self): bigs_online = self.bigs_online if bigs_online: return self.target.cpufreq.list_frequencies(bigs_online[0]) def list_bigs_governors(self): bigs_online = self.bigs_online if bigs_online: return self.target.cpufreq.list_governors(bigs_online[0]) def list_bigs_governor_tunables(self): bigs_online = self.bigs_online if bigs_online: return self.target.cpufreq.list_governor_tunables(bigs_online[0]) def list_littles_frequencies(self): littles_online = self.littles_online if littles_online: return self.target.cpufreq.list_frequencies(littles_online[0]) def list_littles_governors(self): littles_online = self.littles_online if littles_online: return self.target.cpufreq.list_governors(littles_online[0]) def list_littles_governor_tunables(self): littles_online = self.littles_online if littles_online: return self.target.cpufreq.list_governor_tunables(littles_online[0]) def get_bigs_governor(self): bigs_online = self.bigs_online if bigs_online: return self.target.cpufreq.get_governor(bigs_online[0]) def get_bigs_governor_tunables(self): bigs_online = self.bigs_online if bigs_online: return self.target.cpufreq.get_governor_tunables(bigs_online[0]) def get_bigs_frequency(self): bigs_online = self.bigs_online if bigs_online: return self.target.cpufreq.get_frequency(bigs_online[0]) def get_bigs_min_frequency(self): bigs_online = self.bigs_online if bigs_online: return self.target.cpufreq.get_min_frequency(bigs_online[0]) def get_bigs_max_frequency(self): bigs_online = self.bigs_online if bigs_online: return self.target.cpufreq.get_max_frequency(bigs_online[0]) def get_littles_governor(self): littles_online = self.littles_online if littles_online: return self.target.cpufreq.get_governor(littles_online[0]) def get_littles_governor_tunables(self): littles_online = self.littles_online if littles_online: return self.target.cpufreq.get_governor_tunables(littles_online[0]) def get_littles_frequency(self): littles_online = self.littles_online if littles_online: return self.target.cpufreq.get_frequency(littles_online[0]) def get_littles_min_frequency(self): littles_online = self.littles_online if littles_online: return self.target.cpufreq.get_min_frequency(littles_online[0]) def get_littles_max_frequency(self): littles_online = self.littles_online if littles_online: return self.target.cpufreq.get_max_frequency(littles_online[0]) def set_bigs_governor(self, governor, **kwargs): bigs_online = self.bigs_online if bigs_online: self.target.cpufreq.set_governor(bigs_online[0], governor, **kwargs) else: raise ValueError("All bigs appear to be offline") def set_bigs_governor_tunables(self, governor, **kwargs): bigs_online = self.bigs_online if bigs_online: self.target.cpufreq.set_governor_tunables(bigs_online[0], governor, **kwargs) else: raise ValueError("All bigs appear to be offline") def set_bigs_frequency(self, frequency, exact=True): bigs_online = self.bigs_online if bigs_online: self.target.cpufreq.set_frequency(bigs_online[0], frequency, exact) else: raise ValueError("All bigs appear to be offline") def set_bigs_min_frequency(self, frequency, exact=True): bigs_online = self.bigs_online if bigs_online: self.target.cpufreq.set_min_frequency(bigs_online[0], frequency, exact) else: raise ValueError("All bigs appear to be offline") def set_bigs_max_frequency(self, frequency, exact=True): bigs_online = self.bigs_online if bigs_online: self.target.cpufreq.set_max_frequency(bigs_online[0], frequency, exact) else: raise ValueError("All bigs appear to be offline") def set_littles_governor(self, governor, **kwargs): littles_online = self.littles_online if littles_online: self.target.cpufreq.set_governor(littles_online[0], governor, **kwargs) else: raise ValueError("All littles appear to be offline") def set_littles_governor_tunables(self, governor, **kwargs): littles_online = self.littles_online if littles_online: self.target.cpufreq.set_governor_tunables(littles_online[0], governor, **kwargs) else: raise ValueError("All littles appear to be offline") def set_littles_frequency(self, frequency, exact=True): littles_online = self.littles_online if littles_online: self.target.cpufreq.set_frequency(littles_online[0], frequency, exact) else: raise ValueError("All littles appear to be offline") def set_littles_min_frequency(self, frequency, exact=True): littles_online = self.littles_online if littles_online: self.target.cpufreq.set_min_frequency(littles_online[0], frequency, exact) else: raise ValueError("All littles appear to be offline") def set_littles_max_frequency(self, frequency, exact=True): littles_online = self.littles_online if littles_online: self.target.cpufreq.set_max_frequency(littles_online[0], frequency, exact) else: raise ValueError("All littles appear to be offline")
35.861905
92
0.684637
963
7,531
5.116303
0.120457
0.107571
0.08971
0.071443
0.837832
0.827278
0.734727
0.676274
0.652121
0.652121
0
0.005895
0.234099
7,531
209
93
36.033493
0.848301
0.07489
0
0.513158
0
0
0.044192
0
0
0
0
0
0
1
0.230263
false
0
0.006579
0.032895
0.388158
0
0
0
0
null
0
0
0
1
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
5
8548b9c248e709d206a03a414372aaacd9d234d6
19
py
Python
lib/stripe/version.py
linuxpi/hypoconn_gcloud
ebf06c44dc754ac446a0915a0db028f18e3f35a7
[ "Apache-2.0" ]
null
null
null
lib/stripe/version.py
linuxpi/hypoconn_gcloud
ebf06c44dc754ac446a0915a0db028f18e3f35a7
[ "Apache-2.0" ]
1
2021-03-31T18:36:41.000Z
2021-03-31T18:36:41.000Z
lib/stripe/version.py
linuxpi/hypoconn_gcloud
ebf06c44dc754ac446a0915a0db028f18e3f35a7
[ "Apache-2.0" ]
null
null
null
VERSION = '1.82.2'
9.5
18
0.578947
4
19
2.75
1
0
0
0
0
0
0
0
0
0
0
0.25
0.157895
19
1
19
19
0.4375
0
0
0
0
0
0.315789
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
1
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
5
857d1dd2cf59fa785f415543c53b17a4441189f5
73
py
Python
gaea/gaea/redis/__init__.py
Yo-main/akingbee.com
144940df99900226073eb4bf721a6ab407a3911d
[ "MIT" ]
null
null
null
gaea/gaea/redis/__init__.py
Yo-main/akingbee.com
144940df99900226073eb4bf721a6ab407a3911d
[ "MIT" ]
20
2019-10-06T20:24:49.000Z
2022-02-28T01:55:49.000Z
gaea/gaea/redis/__init__.py
yo-main/akingbee
a8b4b307e2262f98eb93459c6dd4207e707cee1e
[ "MIT" ]
null
null
null
from .client import RedisClient from .constants import QUEUE_EMAIL_RESET
24.333333
40
0.863014
10
73
6.1
0.8
0
0
0
0
0
0
0
0
0
0
0
0.109589
73
2
41
36.5
0.938462
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
85a75737d40a7094199439c3c139c1a9dd32c50c
90
py
Python
wallace/heroku/psiturkapp.py
sourcery-ai-bot/Wallace
64a29065a4d2cc7d9de9520fa3a09a6c2df41b99
[ "MIT" ]
21
2016-06-30T13:14:21.000Z
2021-01-02T14:29:25.000Z
wallace/heroku/psiturkapp.py
sourcery-ai-bot/Wallace
64a29065a4d2cc7d9de9520fa3a09a6c2df41b99
[ "MIT" ]
180
2015-07-03T18:42:11.000Z
2016-06-30T02:59:24.000Z
wallace/heroku/psiturkapp.py
sourcery-ai-bot/Wallace
64a29065a4d2cc7d9de9520fa3a09a6c2df41b99
[ "MIT" ]
8
2016-08-06T13:42:49.000Z
2016-09-05T21:46:06.000Z
"""Launch the experiment server.""" import psiturk.experiment_server as exp exp.launch()
18
39
0.766667
12
90
5.666667
0.666667
0.470588
0
0
0
0
0
0
0
0
0
0
0.111111
90
4
40
22.5
0.85
0.322222
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
a42961c9e18c401d0201ad59ef73f073fa1c8d56
19
py
Python
create.py
God-status/PyPC
d2db55b1a24f4149cb4a69ebed6d36a160d92d76
[ "MIT" ]
1
2021-11-26T19:09:09.000Z
2021-11-26T19:09:09.000Z
create.py
God-status/PyPC
d2db55b1a24f4149cb4a69ebed6d36a160d92d76
[ "MIT" ]
null
null
null
create.py
God-status/PyPC
d2db55b1a24f4149cb4a69ebed6d36a160d92d76
[ "MIT" ]
null
null
null
from pypc import *
9.5
18
0.736842
3
19
4.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.210526
19
1
19
19
0.933333
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
f12b6af8ea8f90f74bf706eac607d06dab78cabf
315
py
Python
applications/tenant/__init__.py
dev-easyshares/mighty
a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b
[ "MIT" ]
null
null
null
applications/tenant/__init__.py
dev-easyshares/mighty
a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b
[ "MIT" ]
1
2022-03-12T00:57:37.000Z
2022-03-12T00:57:37.000Z
applications/tenant/__init__.py
dev-easyshares/mighty
a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b
[ "MIT" ]
null
null
null
default_app_config = 'mighty.applications.tenant.apps.TenantConfig' from django.apps import apps as django_apps from mighty.applications.tenant.apps import TenantConfig as conf def get_tenant_model(model=conf.ForeignKey.tenant): tenant = model.split('.') return django_apps.get_model(tenant[0], tenant[1])
39.375
67
0.796825
45
315
5.422222
0.466667
0.122951
0.196721
0.229508
0
0
0
0
0
0
0
0.007067
0.101587
315
8
68
39.375
0.855124
0
0
0
0
0
0.142405
0.139241
0
0
0
0
0
1
0.166667
false
0
0.333333
0
0.666667
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
f13d8881aed53884b54105cd5cbf30c3b7de22bb
21
py
Python
refresh/__init__.py
squebe/refresh
bd86239c299e49bac78dbff80d56a6b15f822b0b
[ "MIT" ]
null
null
null
refresh/__init__.py
squebe/refresh
bd86239c299e49bac78dbff80d56a6b15f822b0b
[ "MIT" ]
null
null
null
refresh/__init__.py
squebe/refresh
bd86239c299e49bac78dbff80d56a6b15f822b0b
[ "MIT" ]
null
null
null
from refresh import *
21
21
0.809524
3
21
5.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.142857
21
1
21
21
0.944444
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
f17319ec0843bca21806dd20e386e265a3c241e1
17
py
Python
Infosec_Virtual_Labs/InfosecLabs.py
RedaMastouri/IoT-PenTesting-Research-
102e45ece6150f65b92f12331cc0162084f7fb4e
[ "MIT" ]
null
null
null
Infosec_Virtual_Labs/InfosecLabs.py
RedaMastouri/IoT-PenTesting-Research-
102e45ece6150f65b92f12331cc0162084f7fb4e
[ "MIT" ]
null
null
null
Infosec_Virtual_Labs/InfosecLabs.py
RedaMastouri/IoT-PenTesting-Research-
102e45ece6150f65b92f12331cc0162084f7fb4e
[ "MIT" ]
1
2022-03-11T04:53:33.000Z
2022-03-11T04:53:33.000Z
# InfosecLabs.py
8.5
16
0.764706
2
17
6.5
1
0
0
0
0
0
0
0
0
0
0
0
0.117647
17
1
17
17
0.866667
0.823529
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
f18c18729fe93d6738c4eaf6e35b7dfb196284e1
39
py
Python
printarlista.py
joseigorgomes/Listas
c23a9a0adc9f13473552751d4f0dbddce38a5627
[ "MIT" ]
null
null
null
printarlista.py
joseigorgomes/Listas
c23a9a0adc9f13473552751d4f0dbddce38a5627
[ "MIT" ]
null
null
null
printarlista.py
joseigorgomes/Listas
c23a9a0adc9f13473552751d4f0dbddce38a5627
[ "MIT" ]
11
2019-10-01T13:52:31.000Z
2019-10-19T16:43:04.000Z
lista = ['1','2','3','4'] print(lista)
13
25
0.487179
7
39
2.714286
0.857143
0
0
0
0
0
0
0
0
0
0
0.114286
0.102564
39
2
26
19.5
0.428571
0
0
0
0
0
0.102564
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
5
f18cef009fed114a36704f4e8ea27bc95c59a335
100
py
Python
tests/test_import.py
BlockResearchGroup/singular
660245618ef99a6bf6fdb767719e4377e6b4d761
[ "MIT" ]
6
2019-02-12T17:49:41.000Z
2020-04-15T10:28:49.000Z
tests/test_import.py
BlockResearchGroup/singular
660245618ef99a6bf6fdb767719e4377e6b4d761
[ "MIT" ]
3
2020-07-01T13:45:44.000Z
2020-10-07T14:40:52.000Z
tests/test_import.py
BlockResearchGroup/singular
660245618ef99a6bf6fdb767719e4377e6b4d761
[ "MIT" ]
6
2019-02-21T11:20:19.000Z
2020-04-02T10:20:00.000Z
import compas_singular def test_trivial(): print(compas_singular.__version__) assert True
14.285714
38
0.77
12
100
5.833333
0.833333
0.4
0
0
0
0
0
0
0
0
0
0
0.17
100
6
39
16.666667
0.843373
0
0
0
0
0
0
0
0
0
0
0
0.25
1
0.25
true
0
0.25
0
0.5
0.25
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
0
0
0
0
0
5
74b5a74195967d4066702892ce842f44c3022639
3,940
py
Python
Model 2/lib/Data_Preprocessing.py
luminousking/2021_IIAC_Competition
31ec46cd4c6feb03a868546dc7003d96411a8589
[ "MIT" ]
2
2021-08-15T10:50:10.000Z
2021-08-16T08:28:01.000Z
Model 2/lib/Data_Preprocessing.py
luminousking/2021_IIAC_Competition
31ec46cd4c6feb03a868546dc7003d96411a8589
[ "MIT" ]
null
null
null
Model 2/lib/Data_Preprocessing.py
luminousking/2021_IIAC_Competition
31ec46cd4c6feb03a868546dc7003d96411a8589
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from scipy.stats import kurtosis def q2q(x): return x.quantile(0.75) - x.quantile(0.25) def get_feature(filename, mode='Train'): df = pd.read_excel(filename) df.dropna(axis=1, how="all", inplace=True) df.fillna(method="ffill", inplace=True) if mode == 'Train': df.columns = ['worktime', 'workorder', 'workpieceNo', 'SmallHeadThickness1', 'SmallHeadThickness2', 'InnerHole', 'SlopeThickness1', 'SlopeThickness2', 'BigEndThickness1', 'BigEndThickness2', 'BigEndHole1', 'BigEndHole2', 'TotalLength', 'CentralJump', 'QJump', 'Note', 'TM', 'X_R', 'X_I', 'Z_R', 'Z_L', 'X2_R', 'X2_L', 'X3_R', 'X3_L', 'FEED_ACT', 'FEED_SET', 'SPINDLE_ACT', 'SPINDLE_SET', 'SPINDLE_PER', 'CODE_L1', 'CODE_L2', 'CODE_L3', 'C_R', 'C_L' ] else: df.columns = ['worktime', 'workorder', 'workpieceNo', 'SmallHeadThickness1', 'SmallHeadThickness2', 'InnerHole', 'SlopeThickness1', 'SlopeThickness2', 'BigEndThickness1', 'BigEndThickness2', 'BigEndHole1', 'BigEndHole2', 'TotalLength', 'TM', 'X_R', 'X_I', 'Z_R', 'Z_L', 'X2_R', 'X2_L', 'X3_R', 'X3_L', 'FEED_ACT', 'FEED_SET', 'SPINDLE_ACT', 'SPINDLE_SET', 'SPINDLE_PER', 'CODE_L1', 'CODE_L2', 'CODE_L3', 'C_R', 'C_L' ] df['diff'] = np.abs(df['X_R'].diff() / df['Z_R'].diff()) df = df.query(f'diff<0.05&8<X_R<20') if mode == 'Train': fea_agg = { 'CentralJump': ['mean'], 'QJump': ['mean'], "X_R": ['mean', 'std', q2q, "max", "min", 'skew', kurtosis], "X_I": ['mean', 'std', q2q, "max", "min", 'skew', kurtosis], "Z_R": ['mean', 'std', q2q, "max", "min", 'skew', kurtosis], "Z_L": ['mean', 'std', q2q, "max", "min", 'skew', kurtosis], "X2_R": ['mean', 'std', q2q, "max", "min", 'skew', kurtosis], "X2_L": ['mean', 'std', q2q, "max", "min", 'skew', kurtosis], "X3_R": ['mean', 'std', q2q, "max", "min", 'skew', kurtosis], # "X3_L":['mean','std',q2q,"max","min",'skew',kurtosis], "FEED_ACT": ['mean'], "FEED_SET": ['mean'], "SPINDLE_ACT": ['mean'], "SPINDLE_SET": ['mean'], "SPINDLE_PER": ['mean'], "C_R": ['mean', 'std', q2q, "max", "min", 'skew', kurtosis], "C_L": ['mean', 'std', q2q, "max", "min", 'skew', kurtosis] } else: fea_agg = { "X_R": ['mean', 'std', q2q, "max", "min", 'skew', kurtosis], "X_I": ['mean', 'std', q2q, "max", "min", 'skew', kurtosis], "Z_R": ['mean', 'std', q2q, "max", "min", 'skew', kurtosis], "Z_L": ['mean', 'std', q2q, "max", "min", 'skew', kurtosis], "X2_R": ['mean', 'std', q2q, "max", "min", 'skew', kurtosis], "X2_L": ['mean', 'std', q2q, "max", "min", 'skew', kurtosis], "X3_R": ['mean', 'std', q2q, "max", "min", 'skew', kurtosis], # "X3_L":['mean','std',q2q,"max","min",'skew',kurtosis], "FEED_ACT": ['mean'], "FEED_SET": ['mean'], "SPINDLE_ACT": ['mean'], "SPINDLE_SET": ['mean'], "SPINDLE_PER": ['mean'], "C_R": ['mean', 'std', q2q, "max", "min", 'skew', kurtosis], "C_L": ['mean', 'std', q2q, "max", "min", 'skew', kurtosis] } feature = df.groupby(by=['worktime', 'workorder', 'workpieceNo', 'SmallHeadThickness1', 'SmallHeadThickness2', 'InnerHole', 'SlopeThickness1', 'SlopeThickness2', 'BigEndThickness1', 'BigEndThickness2', 'BigEndHole1', 'BigEndHole2', 'TotalLength']).agg(fea_agg).reset_index() feature.columns = ["".join(col) for col in feature.columns] return feature
52.533333
120
0.494924
439
3,940
4.271071
0.214123
0.074667
0.106667
0.138667
0.768
0.768
0.768
0.768
0.768
0.768
0
0.02809
0.277157
3,940
74
121
53.243243
0.630267
0.027665
0
0.651515
0
0
0.345269
0
0
0
0
0
0
1
0.030303
false
0
0.045455
0.015152
0.106061
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
74bae220a062a67d3732ab11f33b1726163abbad
232
py
Python
src/services/database/exceptions.py
Fom123/fastapi-project
ce7926367824ad3836fbdbfec366f19e2c6f5b4c
[ "MIT" ]
17
2021-09-12T14:08:30.000Z
2022-03-29T12:07:31.000Z
src/services/database/exceptions.py
Fom123/fastapi-project
ce7926367824ad3836fbdbfec366f19e2c6f5b4c
[ "MIT" ]
null
null
null
src/services/database/exceptions.py
Fom123/fastapi-project
ce7926367824ad3836fbdbfec366f19e2c6f5b4c
[ "MIT" ]
4
2021-09-30T13:06:42.000Z
2022-03-29T15:05:59.000Z
from typing import Optional class UnableToDelete(Exception): def __init__(self, msg: Optional[str] = None): self.message = msg def __str__(self) -> str: return f"<Exception {self} message={self.message}>"
23.2
59
0.663793
28
232
5.214286
0.571429
0.226027
0
0
0
0
0
0
0
0
0
0
0.215517
232
9
60
25.777778
0.802198
0
0
0
0
0
0.176724
0.099138
0
0
0
0
0
1
0.333333
false
0
0.166667
0.166667
0.833333
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
5
74126015d8378f32f30a2da5d4163d542e0631a2
84
py
Python
ilms/exception.py
leVirve/iLms-nthu-API
0b57fad9782716d280c444d0ef8ae525359d921d
[ "MIT" ]
20
2018-01-21T17:16:59.000Z
2021-01-23T09:43:01.000Z
ilms/exception.py
leVirve/iLms-nthu-API
0b57fad9782716d280c444d0ef8ae525359d921d
[ "MIT" ]
null
null
null
ilms/exception.py
leVirve/iLms-nthu-API
0b57fad9782716d280c444d0ef8ae525359d921d
[ "MIT" ]
2
2021-01-23T09:48:04.000Z
2022-02-24T05:12:56.000Z
class PermissionDenied(Exception): pass class LoginError(Exception): pass
12
34
0.738095
8
84
7.75
0.625
0.419355
0
0
0
0
0
0
0
0
0
0
0.190476
84
6
35
14
0.911765
0
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
5
743f167e4c26acac15fc0fe8e6d3705fac198b50
136
py
Python
src/dx/share/data/__init__.py
lmmx/dx
063e8f8cfc24dfdf09a12001b58b4017a75ea3e8
[ "MIT" ]
null
null
null
src/dx/share/data/__init__.py
lmmx/dx
063e8f8cfc24dfdf09a12001b58b4017a75ea3e8
[ "MIT" ]
2
2021-01-03T16:22:11.000Z
2021-02-07T08:41:57.000Z
src/dx/share/data/__init__.py
lmmx/dx
063e8f8cfc24dfdf09a12001b58b4017a75ea3e8
[ "MIT" ]
null
null
null
from . import __path__ as _dir_nspath from pathlib import Path as _Path __all__ = ["dir_path"] dir_path = _Path(list(_dir_nspath)[0])
19.428571
38
0.757353
22
136
3.954545
0.454545
0.229885
0.275862
0
0
0
0
0
0
0
0
0.008621
0.147059
136
6
39
22.666667
0.741379
0
0
0
0
0
0.058824
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
7447101681929c0bccc3e274520074bf2ba49464
10
py
Python
client.py
kbsec/SpeedRun
65fb5c26e7b4f43eff3dd5e323b5d187cfaaec52
[ "MIT" ]
1
2022-03-28T01:51:08.000Z
2022-03-28T01:51:08.000Z
client.py
kbsec/SpeedRun
65fb5c26e7b4f43eff3dd5e323b5d187cfaaec52
[ "MIT" ]
null
null
null
client.py
kbsec/SpeedRun
65fb5c26e7b4f43eff3dd5e323b5d187cfaaec52
[ "MIT" ]
null
null
null
# TODO :D
5
9
0.5
2
10
2.5
1
0
0
0
0
0
0
0
0
0
0
0
0.3
10
1
10
10
0.714286
0.7
0
null
0
null
0
0
null
0
0
1
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
1
0
0
0
1
0
0
0
0
0
0
5
74aa16591535c8fc2ca1bf8936ddf6dd868a6af0
130
py
Python
forum/admin.py
WolodjaZ/django_project
8bc7bb486f51085823456f2efee8ebbc467761eb
[ "Apache-2.0" ]
null
null
null
forum/admin.py
WolodjaZ/django_project
8bc7bb486f51085823456f2efee8ebbc467761eb
[ "Apache-2.0" ]
null
null
null
forum/admin.py
WolodjaZ/django_project
8bc7bb486f51085823456f2efee8ebbc467761eb
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from forum.models import Topic, Comment admin.site.register(Topic) admin.site.register(Comment)
26
40
0.823077
19
130
5.631579
0.578947
0.168224
0.317757
0
0
0
0
0
0
0
0
0
0.092308
130
5
41
26
0.90678
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
7763aa47b1bedc9d47a3cc904c0790922ac51f98
125
py
Python
wirepas_networktool_messaging/proto/__init__.py
wirepas/wirepas-networktool-messaging-python
b2913d68454e2e9ab0e026f2fc03d2c982292d81
[ "Apache-2.0" ]
null
null
null
wirepas_networktool_messaging/proto/__init__.py
wirepas/wirepas-networktool-messaging-python
b2913d68454e2e9ab0e026f2fc03d2c982292d81
[ "Apache-2.0" ]
null
null
null
wirepas_networktool_messaging/proto/__init__.py
wirepas/wirepas-networktool-messaging-python
b2913d68454e2e9ab0e026f2fc03d2c982292d81
[ "Apache-2.0" ]
1
2021-09-30T06:39:41.000Z
2021-09-30T06:39:41.000Z
import sys, os sys.path.append(os.path.dirname(__file__)) # Protobuf files will be compiled here from .message_pb2 import *
20.833333
42
0.776
20
125
4.6
0.8
0
0
0
0
0
0
0
0
0
0
0.009174
0.128
125
5
43
25
0.834862
0.288
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
77866fc20082c8617301c42148df9fc6940e32e4
191
py
Python
mealbot/misc.py
arzhna/meal-bot
384f75e4846492b78a88c0f46bac924beefb6b2e
[ "MIT" ]
null
null
null
mealbot/misc.py
arzhna/meal-bot
384f75e4846492b78a88c0f46bac924beefb6b2e
[ "MIT" ]
null
null
null
mealbot/misc.py
arzhna/meal-bot
384f75e4846492b78a88c0f46bac924beefb6b2e
[ "MIT" ]
null
null
null
import json import random def pretty_dump(data): return json.dumps(data, sort_keys=True, indent=4, separators=(',', ': ')) def pick_number(max): return random.randint(0, max - 1)
17.363636
77
0.680628
28
191
4.535714
0.75
0
0
0
0
0
0
0
0
0
0
0.018868
0.167539
191
10
78
19.1
0.779874
0
0
0
0
0
0.015707
0
0
0
0
0
0
1
0.333333
false
0
0.333333
0.333333
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
1
1
0
0
5
779b126c15fbf72e2bd95e1594bd9c117ccfa832
94
py
Python
effector_database/admin.py
LuukHenk/effector_database
d9702f89ffd2a23b4f5233d4ece69c1ceebd6164
[ "MIT" ]
null
null
null
effector_database/admin.py
LuukHenk/effector_database
d9702f89ffd2a23b4f5233d4ece69c1ceebd6164
[ "MIT" ]
null
null
null
effector_database/admin.py
LuukHenk/effector_database
d9702f89ffd2a23b4f5233d4ece69c1ceebd6164
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Sequence admin.site.register(Sequence)
15.666667
32
0.819149
13
94
5.923077
0.692308
0
0
0
0
0
0
0
0
0
0
0
0.117021
94
5
33
18.8
0.927711
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
77c44e4bf9d0ebe2e739ad275fa9d578a86cf3cc
129
py
Python
Semana-IoT-AIG/take_picture.py
tec-csf/reto-iot-en-supermercado-2019-las-ardillas-intergalacticas
24b23ba508cb6372d826d8bd923ea7d9fddcc9d8
[ "MIT" ]
1
2020-10-10T04:28:12.000Z
2020-10-10T04:28:12.000Z
Semana-IoT-AIG/take_picture.py
tec-csf/reto-iot-en-supermercado-2019-las-ardillas-intergalacticas
24b23ba508cb6372d826d8bd923ea7d9fddcc9d8
[ "MIT" ]
null
null
null
Semana-IoT-AIG/take_picture.py
tec-csf/reto-iot-en-supermercado-2019-las-ardillas-intergalacticas
24b23ba508cb6372d826d8bd923ea7d9fddcc9d8
[ "MIT" ]
null
null
null
import subprocess subprocess.call(['fswebcam --no-banner -l 2 /home/pi/Semana-IoT-AIG/current_image.png', '-1'], shell=True)
43
106
0.713178
20
129
4.55
0.95
0
0
0
0
0
0
0
0
0
0
0.017241
0.100775
129
3
107
43
0.767241
0
0
0
0
0.5
0.530769
0.315385
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
1
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
77c5506fcc3cdedd783c1747b0057a52b9aeb40b
93
py
Python
siptrackdlib/storage/stmysql/__init__.py
sii/siptrackd
f124f750c5c826156c31ae8699e90ff95a964a02
[ "Apache-2.0" ]
null
null
null
siptrackdlib/storage/stmysql/__init__.py
sii/siptrackd
f124f750c5c826156c31ae8699e90ff95a964a02
[ "Apache-2.0" ]
14
2016-03-18T13:28:16.000Z
2019-06-02T21:11:29.000Z
siptrackdlib/storage/stmysql/__init__.py
sii/siptrackd
f124f750c5c826156c31ae8699e90ff95a964a02
[ "Apache-2.0" ]
7
2016-03-18T13:04:54.000Z
2021-06-22T10:39:04.000Z
"""A mysql based storage backend.""" from siptrackdlib.storage.stmysql.base import Storage
18.6
53
0.774194
12
93
6
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.11828
93
4
54
23.25
0.878049
0.322581
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
77cb6fd931991dfa5f5c45bd0ca81c5bcf067e90
5,120
py
Python
resources/dot_PyCharm/system/python_stubs/-762174762/PySide/QtGui/QFileSystemModel.py
basepipe/developer_onboarding
05b6a776f8974c89517868131b201f11c6c2a5ad
[ "MIT" ]
1
2020-04-20T02:27:20.000Z
2020-04-20T02:27:20.000Z
resources/dot_PyCharm/system/python_stubs/cache/8cdc475d469a13122bc4bc6c3ac1c215d93d5f120f5cc1ef33a8f3088ee54d8e/PySide/QtGui/QFileSystemModel.py
basepipe/developer_onboarding
05b6a776f8974c89517868131b201f11c6c2a5ad
[ "MIT" ]
null
null
null
resources/dot_PyCharm/system/python_stubs/cache/8cdc475d469a13122bc4bc6c3ac1c215d93d5f120f5cc1ef33a8f3088ee54d8e/PySide/QtGui/QFileSystemModel.py
basepipe/developer_onboarding
05b6a776f8974c89517868131b201f11c6c2a5ad
[ "MIT" ]
null
null
null
# encoding: utf-8 # module PySide.QtGui # from C:\Python27\lib\site-packages\PySide\QtGui.pyd # by generator 1.147 # no doc # imports import PySide.QtCore as __PySide_QtCore import Shiboken as __Shiboken class QFileSystemModel(__PySide_QtCore.QAbstractItemModel): # no doc def canFetchMore(self, *args, **kwargs): # real signature unknown pass def columnCount(self, *args, **kwargs): # real signature unknown pass def data(self, *args, **kwargs): # real signature unknown pass def directoryLoaded(self, *args, **kwargs): # real signature unknown """ Signal """ pass def dropMimeData(self, *args, **kwargs): # real signature unknown pass def event(self, *args, **kwargs): # real signature unknown pass def fetchMore(self, *args, **kwargs): # real signature unknown pass def fileIcon(self, *args, **kwargs): # real signature unknown pass def fileInfo(self, *args, **kwargs): # real signature unknown pass def fileName(self, *args, **kwargs): # real signature unknown pass def filePath(self, *args, **kwargs): # real signature unknown pass def fileRenamed(self, *args, **kwargs): # real signature unknown """ Signal """ pass def filter(self, *args, **kwargs): # real signature unknown pass def flags(self, *args, **kwargs): # real signature unknown pass def hasChildren(self, *args, **kwargs): # real signature unknown pass def headerData(self, *args, **kwargs): # real signature unknown pass def iconProvider(self, *args, **kwargs): # real signature unknown pass def index(self, *args, **kwargs): # real signature unknown pass def isDir(self, *args, **kwargs): # real signature unknown pass def isReadOnly(self, *args, **kwargs): # real signature unknown pass def lastModified(self, *args, **kwargs): # real signature unknown pass def mimeData(self, *args, **kwargs): # real signature unknown pass def mimeTypes(self, *args, **kwargs): # real signature unknown pass def mkdir(self, *args, **kwargs): # real signature unknown pass def myComputer(self, *args, **kwargs): # real signature unknown pass def nameFilterDisables(self, *args, **kwargs): # real signature unknown pass def nameFilters(self, *args, **kwargs): # real signature unknown pass def parent(self, *args, **kwargs): # real signature unknown pass def permissions(self, *args, **kwargs): # real signature unknown pass def remove(self, *args, **kwargs): # real signature unknown pass def resolveSymlinks(self, *args, **kwargs): # real signature unknown pass def rmdir(self, *args, **kwargs): # real signature unknown pass def rootDirectory(self, *args, **kwargs): # real signature unknown pass def rootPath(self, *args, **kwargs): # real signature unknown pass def rootPathChanged(self, *args, **kwargs): # real signature unknown """ Signal """ pass def rowCount(self, *args, **kwargs): # real signature unknown pass def setData(self, *args, **kwargs): # real signature unknown pass def setFilter(self, *args, **kwargs): # real signature unknown pass def setIconProvider(self, *args, **kwargs): # real signature unknown pass def setNameFilterDisables(self, *args, **kwargs): # real signature unknown pass def setNameFilters(self, *args, **kwargs): # real signature unknown pass def setReadOnly(self, *args, **kwargs): # real signature unknown pass def setResolveSymlinks(self, *args, **kwargs): # real signature unknown pass def setRootPath(self, *args, **kwargs): # real signature unknown pass def size(self, *args, **kwargs): # real signature unknown pass def sort(self, *args, **kwargs): # real signature unknown pass def supportedDropActions(self, *args, **kwargs): # real signature unknown pass def timerEvent(self, *args, **kwargs): # real signature unknown pass def type(self, *args, **kwargs): # real signature unknown pass def __init__(self, *args, **kwargs): # real signature unknown pass @staticmethod # known case of __new__ def __new__(S, *more): # real signature unknown; restored from __doc__ """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ pass FileIconRole = PySide.QtGui.QFileSystemModel.Roles.FileIconRole FileNameRole = PySide.QtGui.QFileSystemModel.Roles.FileNameRole FilePathRole = PySide.QtGui.QFileSystemModel.Roles.FilePathRole FilePermissions = PySide.QtGui.QFileSystemModel.Roles.FilePermissions Roles = None # (!) real value is "<type 'PySide.QtGui.QFileSystemModel.Roles'>" staticMetaObject = None # (!) real value is '<PySide.QtCore.QMetaObject object at 0x0000000004C27408>'
28.444444
106
0.638672
566
5,120
5.727915
0.196113
0.204503
0.314621
0.277606
0.636953
0.636953
0.636953
0.625231
0.043492
0
0
0.006002
0.251563
5,120
179
107
28.603352
0.840031
0.307813
0
0.455357
0
0
0
0
0
0
0
0
0
1
0.455357
false
0.455357
0.017857
0
0.535714
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
1
0
1
0
0
0
0
0
5
77f34f2de5b1a590bf4864e9f1d94a0c84361ce8
15,331
py
Python
graphs/romeo_juliet_graph_gen.py
jachym/model-m
0c157079cc287b49cc38f2defe9d42e1ab6438c5
[ "MIT" ]
null
null
null
graphs/romeo_juliet_graph_gen.py
jachym/model-m
0c157079cc287b49cc38f2defe9d42e1ab6438c5
[ "MIT" ]
null
null
null
graphs/romeo_juliet_graph_gen.py
jachym/model-m
0c157079cc287b49cc38f2defe9d42e1ab6438c5
[ "MIT" ]
null
null
null
# from graphviz import Graph from graph_gen import GraphGenerator import networkx as nx import scipy.stats as stats class RomeoAndJuliet(GraphGenerator): layer_probs = [0.9, 0.8, 0.9, 0.8, 0.7, 0.9, 1, 0.7, 0.5, 0.9, 0.9, 0.5, 0.3, 0.7] def __init__(self, **kwargs): super().__init__(**kwargs) self.G.graph['layer_probs'] = self.layer_probs # Romeo and Juliet self.G.add_node(1, label='Romeo', sex=0, age=18) self.G.add_node(2, label='Juliet', sex=1, age=13) self.G.add_edge(1, 2, label='F') # House of Montague self.G.add_node(3, label='Lord Montague', sex=0, age=58) self.G.add_node(4, label='Lady Montague', sex=1, age=40) self.G.add_edge(3, 4, label='F') self.G.add_edge(3, 1, label='F') self.G.add_edge(4, 1, label='F') self.G.add_edge(3, 4, label='D') self.G.add_edge(3, 1, label='D') self.G.add_edge(4, 1, label='D') self.G.add_node(5, label='Benvolio', sex=0, age=17) self.G.add_edge(1, 5, label='F') self.G.add_edge(3, 5, label='F') self.G.add_edge(4, 5, label='F') # House of Capulet self.G.add_node(6, label='Lord Capulet', sex=0, age=50) self.G.add_node(7, label='Lady Capulet', sex=1, age=35) self.G.add_edge(2, 6, label='F') self.G.add_edge(2, 7, label='F') self.G.add_edge(6, 7, label='F') self.G.add_edge(2, 6, label='D') self.G.add_edge(2, 7, label='D') self.G.add_edge(6, 7, label='D') self.G.add_node(8, label='Tybalt', sex=0, age=17) self.G.add_edge(8, 2, label='F') self.G.add_edge(8, 6, label='F') self.G.add_edge(8, 7, label='F') self.G.add_edge(8, 2, label='D') self.G.add_edge(8, 6, label='D') self.G.add_edge(8, 7, label='D') # House of Prince of Verona self.G.add_node(9, label='Prince Escalus', sex=0, age=60) self.G.add_node(10, label='Paris', sex=0, age=24) self.G.add_node(11, label='Mercutio', sex=0, age=20) self.G.add_edge(9, 10, label='F') self.G.add_edge(9, 10, label='D') self.G.add_edge(9, 11, label='F') self.G.add_edge(10, 11, label='F') self.G.add_edge(1, 11, label='Z') # Servants self.G.add_node(12, label='Nurse', sex=1, age=28) self.G.add_edge(2, 12, label='P') self.G.add_edge(2, 12, label='D') self.G.add_edge(2, 6, label='D') self.G.add_edge(2, 7, label='D') self.G.add_edge(2, 8, label='D') self.G.add_node(13, label='Peter', sex=0, age=60) self.G.add_edge(13, 12, label='P') self.G.add_edge(13, 12, label='D') self.G.add_edge(13, 6, label='D') self.G.add_edge(13, 7, label='D') self.G.add_edge(13, 1, label='D') self.G.add_edge(13, 8, label='D') self.G.add_node(14, label='Balthasar', sex=0, age=23) self.G.add_edge(1, 14, label='P') self.G.add_edge(1, 14, label='Z') self.G.add_edge(1, 14, label='D') self.G.add_edge(14, 3, label='D') self.G.add_edge(14, 4, label='D') self.G.add_node(15, label='Abram', sex=0, age=68) self.G.add_edge(3, 15, label='P') self.G.add_edge(4, 15, label='P') self.G.add_edge(3, 15, label='D') self.G.add_edge(4, 15, label='D') self.G.add_edge(1, 15, label='D') self.G.add_edge(14, 15, label='D') self.G.add_node(16, label='Gregory', sex=0, age=34) self.G.add_node(17, label='Sampson', sex=0, age=36) self.G.add_edge(6, 16, label='P') self.G.add_edge(7, 16, label='P') self.G.add_edge(8, 16, label='P') self.G.add_edge(8, 17, label='P') self.G.add_edge(6, 17, label='P') self.G.add_edge(7, 17, label='P') self.G.add_edge(8, 16, label='Z') self.G.add_edge(8, 17, label='Z') self.G.add_node(18, label='Page', sex=0, age=11) self.G.add_edge(18, 10, label='P') self.G.add_edge(18, 10, label='D') # Friars and Merchants self.G.add_node(19, label='Friar Lawrence', sex=0, age=68) self.G.add_node(20, label='Friar John', sex=0, age=42) self.G.add_edge(19, 20, label='P') self.G.add_edge(19, 1, label='C') self.G.add_edge(19, 2, label='C') self.G.add_edge(19, 20, label='C') self.G.add_node(21, label='Apothacary', sex=0, age=75) self.G.add_edge(21, 1, label='O') self.G.add_edge(21, 2, label='O') # Former love interest of Romeo self.G.add_node(22, label='Rosaline', sex=1, age=16) self.G.add_edge(1, 22, label='Z') # Fairy Quenn Mab visits Romeo in a dream self.G.add_node(23, label='Queen Mab', sex=1, age=20) self.G.add_edge(1, 23, label='T') # self.Grandpa Capulet self.G.add_node(24, label='Old Capulet', sex=0, age=82) self.G.add_edge(24, 2, label='F') self.G.add_edge(24, 6, label='F') self.G.add_edge(24, 7, label='F') self.G.add_edge(24, 8, label='F') # Capulets Servants self.G.add_node(25, label='Anthony', sex=0, age=38) self.G.add_node(26, label='Potpan', sex=0, age=35) self.G.add_node(27, label='Servant 1', sex=0, age=49) self.G.add_node(28, label='Servant 2', sex=0, age=31) self.G.add_edge(6, 25, label='P') self.G.add_edge(6, 26, label='P') self.G.add_edge(6, 27, label='P') self.G.add_edge(6, 28, label='P') self.G.add_edge(7, 25, label='P') self.G.add_edge(7, 26, label='P') self.G.add_edge(7, 27, label='P') self.G.add_edge(7, 28, label='P') # Petruchio is a ghost at Capulet party self.G.add_node(29, label='Ghost Petruchio', sex=0, age=27) self.G.add_edge(2, 29, label='T') # Valentine is Mercutio brother at a party self.G.add_node(30, label='Valentine', sex=0, age=26) self.G.add_edge(9, 30, label='F') self.G.add_edge(10, 30, label='F') self.G.add_edge(11, 30, label='F') # Watchmen at a fight self.G.add_node(31, label='Watchmen 1', sex=0, age=29) self.G.add_node(32, label='Watchmen 2', sex=0, age=25) self.G.add_node(33, label='Watchmen 3', sex=0, age=30) self.G.add_edge(31, 32, label='P') self.G.add_edge(31, 33, label='P') self.G.add_edge(33, 32, label='P') # Musicians at a party self.G.add_node(34, label='Musician 1', sex=0, age=39) self.G.add_node(35, label='Musician 2', sex=0, age=31) self.G.add_node(36, label='Musician 3', sex=0, age=49) self.G.add_edge(34, 35, label='P') self.G.add_edge(34, 36, label='P') self.G.add_edge(35, 36, label='P') # One-man chorus self.G.add_node(37, label='Chorus', sex=0, age=61) # party at Capulet - is now a complete subgraph self.G.add_edge(1, 2, label='K') self.G.add_edge(1, 5, label='K') self.G.add_edge(1, 6, label='K') self.G.add_edge(1, 7, label='K') self.G.add_edge(1, 8, label='K') self.G.add_edge(1, 9, label='K') self.G.add_edge(1, 10, label='K') self.G.add_edge(1, 11, label='K') self.G.add_edge(1, 16, label='K') self.G.add_edge(1, 17, label='K') self.G.add_edge(1, 22, label='K') self.G.add_edge(1, 25, label='K') self.G.add_edge(1, 26, label='K') self.G.add_edge(1, 27, label='K') self.G.add_edge(1, 28, label='K') self.G.add_edge(1, 29, label='K') self.G.add_edge(1, 34, label='K') self.G.add_edge(1, 35, label='K') self.G.add_edge(1, 36, label='K') self.G.add_edge(2, 5, label='K') self.G.add_edge(2, 6, label='K') self.G.add_edge(2, 7, label='K') self.G.add_edge(2, 8, label='K') self.G.add_edge(2, 9, label='K') self.G.add_edge(2, 10, label='K') self.G.add_edge(2, 11, label='K') self.G.add_edge(2, 16, label='K') self.G.add_edge(2, 17, label='K') self.G.add_edge(2, 22, label='K') self.G.add_edge(2, 25, label='K') self.G.add_edge(2, 26, label='K') self.G.add_edge(2, 27, label='K') self.G.add_edge(2, 28, label='K') self.G.add_edge(2, 29, label='K') self.G.add_edge(2, 34, label='K') self.G.add_edge(2, 35, label='K') self.G.add_edge(2, 36, label='K') self.G.add_edge(5, 6, label='K') self.G.add_edge(5, 7, label='K') self.G.add_edge(5, 8, label='K') self.G.add_edge(5, 9, label='K') self.G.add_edge(5, 10, label='K') self.G.add_edge(5, 11, label='K') self.G.add_edge(5, 16, label='K') self.G.add_edge(5, 17, label='K') self.G.add_edge(5, 22, label='K') self.G.add_edge(5, 25, label='K') self.G.add_edge(5, 26, label='K') self.G.add_edge(5, 27, label='K') self.G.add_edge(5, 28, label='K') self.G.add_edge(5, 29, label='K') self.G.add_edge(5, 34, label='K') self.G.add_edge(5, 35, label='K') self.G.add_edge(5, 36, label='K') self.G.add_edge(6, 7, label='K') self.G.add_edge(6, 8, label='K') self.G.add_edge(6, 8, label='K') self.G.add_edge(6, 10, label='K') self.G.add_edge(6, 11, label='K') self.G.add_edge(6, 16, label='K') self.G.add_edge(6, 17, label='K') self.G.add_edge(6, 22, label='K') self.G.add_edge(6, 25, label='K') self.G.add_edge(6, 26, label='K') self.G.add_edge(6, 27, label='K') self.G.add_edge(6, 28, label='K') self.G.add_edge(6, 29, label='K') self.G.add_edge(6, 34, label='K') self.G.add_edge(6, 35, label='K') self.G.add_edge(6, 36, label='K') self.G.add_edge(7, 8, label='K') self.G.add_edge(7, 9, label='K') self.G.add_edge(7, 10, label='K') self.G.add_edge(7, 11, label='K') self.G.add_edge(7, 16, label='K') self.G.add_edge(7, 17, label='K') self.G.add_edge(7, 22, label='K') self.G.add_edge(7, 25, label='K') self.G.add_edge(7, 26, label='K') self.G.add_edge(7, 27, label='K') self.G.add_edge(7, 28, label='K') self.G.add_edge(7, 29, label='K') self.G.add_edge(7, 34, label='K') self.G.add_edge(7, 35, label='K') self.G.add_edge(7, 36, label='K') self.G.add_edge(8, 9, label='K') self.G.add_edge(8, 10, label='K') self.G.add_edge(8, 11, label='K') self.G.add_edge(8, 16, label='K') self.G.add_edge(8, 17, label='K') self.G.add_edge(8, 22, label='K') self.G.add_edge(8, 25, label='K') self.G.add_edge(8, 26, label='K') self.G.add_edge(8, 27, label='K') self.G.add_edge(8, 28, label='K') self.G.add_edge(8, 29, label='K') self.G.add_edge(8, 34, label='K') self.G.add_edge(8, 35, label='K') self.G.add_edge(8, 36, label='K') self.G.add_edge(9, 10, label='K') self.G.add_edge(9, 11, label='K') self.G.add_edge(9, 16, label='K') self.G.add_edge(9, 17, label='K') self.G.add_edge(9, 22, label='K') self.G.add_edge(9, 25, label='K') self.G.add_edge(9, 26, label='K') self.G.add_edge(9, 27, label='K') self.G.add_edge(9, 28, label='K') self.G.add_edge(9, 29, label='K') self.G.add_edge(9, 34, label='K') self.G.add_edge(9, 35, label='K') self.G.add_edge(9, 36, label='K') self.G.add_edge(10, 11, label='K') self.G.add_edge(10, 16, label='K') self.G.add_edge(10, 17, label='K') self.G.add_edge(10, 22, label='K') self.G.add_edge(10, 25, label='K') self.G.add_edge(10, 26, label='K') self.G.add_edge(10, 27, label='K') self.G.add_edge(10, 28, label='K') self.G.add_edge(10, 29, label='K') self.G.add_edge(10, 34, label='K') self.G.add_edge(10, 35, label='K') self.G.add_edge(10, 36, label='K') self.G.add_edge(11, 16, label='K') self.G.add_edge(11, 17, label='K') self.G.add_edge(11, 22, label='K') self.G.add_edge(11, 25, label='K') self.G.add_edge(11, 26, label='K') self.G.add_edge(11, 27, label='K') self.G.add_edge(11, 28, label='K') self.G.add_edge(11, 29, label='K') self.G.add_edge(11, 34, label='K') self.G.add_edge(11, 35, label='K') self.G.add_edge(11, 36, label='K') self.G.add_edge(16, 17, label='K') self.G.add_edge(16, 22, label='K') self.G.add_edge(16, 25, label='K') self.G.add_edge(16, 26, label='K') self.G.add_edge(16, 27, label='K') self.G.add_edge(16, 28, label='K') self.G.add_edge(16, 29, label='K') self.G.add_edge(16, 34, label='K') self.G.add_edge(16, 35, label='K') self.G.add_edge(16, 36, label='K') self.G.add_edge(17, 22, label='K') self.G.add_edge(17, 25, label='K') self.G.add_edge(17, 26, label='K') self.G.add_edge(17, 27, label='K') self.G.add_edge(17, 28, label='K') self.G.add_edge(17, 29, label='K') self.G.add_edge(17, 34, label='K') self.G.add_edge(17, 35, label='K') self.G.add_edge(17, 36, label='K') self.G.add_edge(22, 25, label='K') self.G.add_edge(22, 26, label='K') self.G.add_edge(22, 27, label='K') self.G.add_edge(22, 28, label='K') self.G.add_edge(22, 29, label='K') self.G.add_edge(22, 34, label='K') self.G.add_edge(22, 35, label='K') self.G.add_edge(22, 36, label='K') self.G.add_edge(25, 26, label='K') self.G.add_edge(25, 27, label='K') self.G.add_edge(25, 28, label='K') self.G.add_edge(25, 29, label='K') self.G.add_edge(25, 34, label='K') self.G.add_edge(25, 35, label='K') self.G.add_edge(25, 36, label='K') self.G.add_edge(26, 27, label='K') self.G.add_edge(26, 28, label='K') self.G.add_edge(26, 29, label='K') self.G.add_edge(26, 34, label='K') self.G.add_edge(26, 35, label='K') self.G.add_edge(26, 36, label='K') self.G.add_edge(27, 28, label='K') self.G.add_edge(27, 29, label='K') self.G.add_edge(27, 34, label='K') self.G.add_edge(27, 35, label='K') self.G.add_edge(27, 36, label='K') self.G.add_edge(28, 29, label='K') self.G.add_edge(28, 34, label='K') self.G.add_edge(28, 35, label='K') self.G.add_edge(28, 36, label='K') self.G.add_edge(29, 34, label='K') self.G.add_edge(29, 35, label='K') self.G.add_edge(29, 36, label='K') self.G.add_edge(34, 35, label='K') self.G.add_edge(34, 36, label='K') self.G.add_edge(35, 36, label='K') # weights from trunc norm for now lower, upper = 0, 1 mu, sigma = 0.7, 0.3 for (u, v, k, d) in self.G.edges(data=True, keys=True): self.G[u][v][k]['weight'] = stats.truncnorm.rvs( (lower - mu) / sigma, (upper - mu) / sigma, loc=mu, scale=sigma)
39.512887
80
0.540343
2,839
15,331
2.802395
0.059528
0.200478
0.317748
0.420814
0.781926
0.754651
0.736425
0.038839
0.027024
0.020488
0
0.096973
0.258757
15,331
387
81
39.614987
0.603133
0.029744
0
0.018182
0
0
0.041936
0
0
0
0
0
0
1
0.00303
false
0
0.009091
0
0.018182
0
0
0
0
null
1
1
1
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
7ae33b0699d5a1b73b04ce28768aaf7b78ad31de
42
py
Python
001113StepikPyGEK/StepikPyGEK001113сh02p05st08C04_20200407.py
SafonovMikhail/python_000577
739f764e80f1ca354386f00b8e9db1df8c96531d
[ "Apache-2.0" ]
null
null
null
001113StepikPyGEK/StepikPyGEK001113сh02p05st08C04_20200407.py
SafonovMikhail/python_000577
739f764e80f1ca354386f00b8e9db1df8c96531d
[ "Apache-2.0" ]
null
null
null
001113StepikPyGEK/StepikPyGEK001113сh02p05st08C04_20200407.py
SafonovMikhail/python_000577
739f764e80f1ca354386f00b8e9db1df8c96531d
[ "Apache-2.0" ]
null
null
null
v = float(input()) print(v * 3600 / 1000)
14
22
0.595238
7
42
3.571429
0.857143
0
0
0
0
0
0
0
0
0
0
0.235294
0.190476
42
2
23
21
0.5
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
1
1
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
5
bb3b89bca3dfc55a7e2ce456459f325565bd70d4
42
py
Python
tests/__init__.py
HighDimensionalEconLab/econ_layers
de6b7b34168eba6a5c449498abd9574ec090e76e
[ "MIT" ]
1
2021-10-05T14:13:18.000Z
2021-10-05T14:13:18.000Z
tests/__init__.py
HighDimensionalEconLab/econ_layers
de6b7b34168eba6a5c449498abd9574ec090e76e
[ "MIT" ]
22
2021-09-29T23:50:36.000Z
2022-01-14T17:58:04.000Z
tests/__init__.py
HighDimensionalEconLab/econ_layers
de6b7b34168eba6a5c449498abd9574ec090e76e
[ "MIT" ]
null
null
null
"""Unit test package for econ_layers."""
21
41
0.690476
6
42
4.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.142857
42
1
42
42
0.777778
0.809524
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
2475fcb2aa87e90c75564816dfa485a44af0184e
45
py
Python
config.py
PerryBhandal/cross_system_livereload
ea3ac583dedb7403d2e535a4778f95e1624bc859
[ "MIT" ]
null
null
null
config.py
PerryBhandal/cross_system_livereload
ea3ac583dedb7403d2e535a4778f95e1624bc859
[ "MIT" ]
null
null
null
config.py
PerryBhandal/cross_system_livereload
ea3ac583dedb7403d2e535a4778f95e1624bc859
[ "MIT" ]
null
null
null
RELOAD_IP = "192.168.1.5" RELOAD_PORT = 5000
15
25
0.711111
9
45
3.333333
0.888889
0
0
0
0
0
0
0
0
0
0
0.307692
0.133333
45
2
26
22.5
0.461538
0
0
0
0
0
0.244444
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
1
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
5
247769b79119366534e712527c207ee0e9e34e18
34
py
Python
xcept/__init__.py
Abstract-X/xcept
cb4886f5adeb9d36b6954c8ff6f6dd0f348326f1
[ "MIT" ]
2
2021-12-19T18:49:32.000Z
2022-02-20T17:51:06.000Z
xcept/__init__.py
Abstract-X/xcept
cb4886f5adeb9d36b6954c8ff6f6dd0f348326f1
[ "MIT" ]
null
null
null
xcept/__init__.py
Abstract-X/xcept
cb4886f5adeb9d36b6954c8ff6f6dd0f348326f1
[ "MIT" ]
null
null
null
from .exception import Exception_
17
33
0.852941
4
34
7
0.75
0
0
0
0
0
0
0
0
0
0
0
0.117647
34
1
34
34
0.933333
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
24b2d7038ca52c9b7d0bc916486f7b2c78becc81
2,513
py
Python
gcp_server/apis.py
anthonytyk/T2020_Orange1
81a10f03e682c04feb6d4f1e422099ddee20e444
[ "CC-BY-3.0" ]
null
null
null
gcp_server/apis.py
anthonytyk/T2020_Orange1
81a10f03e682c04feb6d4f1e422099ddee20e444
[ "CC-BY-3.0" ]
7
2020-06-06T00:21:32.000Z
2022-02-10T13:54:59.000Z
gcp_server/apis.py
anthonytyk/T2020_Orange1
81a10f03e682c04feb6d4f1e422099ddee20e444
[ "CC-BY-3.0" ]
null
null
null
import requests def getUserDetails(customerID): httpstring = "http://techtrek-api-gateway.ap-southeast-1.elasticbeanstalk.com/customers/"+ str(customerID) + "/details" r = requests.get(httpstring, headers={"token":"aa9a045b-4279-4d49-b099-d322a2eaecac", "identity": "Group10"}) return r.json() def getTransactions(customerID): accID = accountID(customerID) httpstring = "http://techtrek-api-gateway.ap-southeast-1.elasticbeanstalk.com/transactions/" + str(accID) + "?from=01-01-2018&to=01-10-2019" r = requests.get(httpstring, headers={"token":"aa9a045b-4279-4d49-b099-d322a2eaecac", "identity": "Group10"}) return r.json() def getMonthlyExpenditure(customerID, year, month): accID = accountID(customerID) httpstring = "http://techtrek-api-gateway.ap-southeast-1.elasticbeanstalk.com/transactions/" + str(accID) + "?from="+ str(month) + "-01-" + str(year) + "&to=01-30-2019" r = requests.get(httpstring, headers={"token":"aa9a045b-4279-4d49-b099-d322a2eaecac", "identity": "Group10"}) expenditure = 0 for i in r.json(): expenditure += float(i["amount"]) return expenditure def getMonthlyTransactions(customerID, year, month): accID = accountID(customerID) httpstring = "http://techtrek-api-gateway.ap-southeast-1.elasticbeanstalk.com/transactions/" + str(accID) + "?from="+ str(month) + "-01-" + str(year) + "&to="+ str(month)+ "-28-" + str(year) print(httpstring) r = requests.get(httpstring, headers={"token":"aa9a045b-4279-4d49-b099-d322a2eaecac", "identity": "Group10"}) print(r) return r.json() def accountID(customerID): httpstring = "http://techtrek-api-gateway.ap-southeast-1.elasticbeanstalk.com/accounts/deposit/" + str(customerID) r = requests.get(httpstring, headers={"token":"aa9a045b-4279-4d49-b099-d322a2eaecac", "identity": "Group10"}) return r.json()[0]['accountId'] def getMonthlyTransactionsBreakDown(customerID, year, month): accID = accountID(customerID) httpstring = "http://techtrek-api-gateway.ap-southeast-1.elasticbeanstalk.com/transactions/" + str(accID) + "?from="+ str(month) + "-01-" + str(year) + "&to="+ str(month)+ "-28-" + str(year) r = requests.get(httpstring, headers={"token":"aa9a045b-4279-4d49-b099-d322a2eaecac", "identity": "Group10"}) breakdown = {"F&B":0, "TRANSPORT":0, "ATM":0, "TRANSFER":0} for i in r.json(): print(i) if i['type'] == "DEBIT": breakdown[i['tag']] += float(i['amount']) return breakdown
51.285714
196
0.677676
298
2,513
5.714765
0.228188
0.070464
0.084557
0.112742
0.765708
0.765708
0.751615
0.751615
0.751615
0.751615
0
0.076462
0.136092
2,513
48
197
52.354167
0.707969
0
0
0.435897
0
0.025641
0.379379
0.09793
0
0
0
0
0
1
0.153846
false
0
0.025641
0
0.333333
0.076923
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
24d6e9a187050bfc7eae66ea9116d8ed7293c542
220
py
Python
SirvPy/__init__.py
TechniCollins/SirvPy
df82c2081616c3653f03e24028ff5677ef492395
[ "MIT" ]
2
2020-07-14T08:13:48.000Z
2021-01-05T02:53:14.000Z
SirvPy/__init__.py
TechniCollins/SirvPy
df82c2081616c3653f03e24028ff5677ef492395
[ "MIT" ]
null
null
null
SirvPy/__init__.py
TechniCollins/SirvPy
df82c2081616c3653f03e24028ff5677ef492395
[ "MIT" ]
null
null
null
from SirvPy.Sirv import * #from SirvPy.Sirv import get_access, upload_files, search_files, storage_info, storage_stats from SirvPy.file_handling import retrieve_time, retrieve_access_token, store_time, store_access_token
73.333333
101
0.863636
33
220
5.393939
0.545455
0.168539
0.157303
0.224719
0
0
0
0
0
0
0
0
0.081818
220
3
101
73.333333
0.881188
0.413636
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
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
1
0
1
0
1
0
0
5
24d97d1dea227f317a5f9901b4bd077bf8891ab5
262
py
Python
nanome/_internal/_network/_commands/_callbacks/_complex_list.py
devanshuDesai/nanome
aabb536ef498044e97bc97ed71af940358bf36f2
[ "MIT" ]
null
null
null
nanome/_internal/_network/_commands/_callbacks/_complex_list.py
devanshuDesai/nanome
aabb536ef498044e97bc97ed71af940358bf36f2
[ "MIT" ]
null
null
null
nanome/_internal/_network/_commands/_callbacks/_complex_list.py
devanshuDesai/nanome
aabb536ef498044e97bc97ed71af940358bf36f2
[ "MIT" ]
null
null
null
def _receive_complex_list(network, arg, request_id): network._call(request_id, arg) def _receive_complexes(network, arg, request_id): for i in range(len(arg)): if arg[i]._index == -1: arg[i] = None network._call(request_id, arg)
29.111111
52
0.660305
39
262
4.128205
0.487179
0.223602
0.21118
0.236025
0.285714
0
0
0
0
0
0
0.004854
0.21374
262
8
53
32.75
0.776699
0
0
0.285714
0
0
0
0
0
0
0
0
0
1
0.285714
false
0
0
0
0.285714
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
5
24ec0b5450d3efb279ad5fecef5792d93ba4cc78
31
py
Python
autoprep/encoding/missing_encoder.py
haginot/auto-prep
b1de3eceba5b82432e7042e7e62270df467ed828
[ "Apache-2.0" ]
null
null
null
autoprep/encoding/missing_encoder.py
haginot/auto-prep
b1de3eceba5b82432e7042e7e62270df467ed828
[ "Apache-2.0" ]
4
2019-01-15T01:55:46.000Z
2019-02-21T04:15:25.000Z
autoprep/encoding/missing_encoder.py
haginot/auto-prep
b1de3eceba5b82432e7042e7e62270df467ed828
[ "Apache-2.0" ]
null
null
null
class MissingEncoder: pass
10.333333
21
0.741935
3
31
7.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.225806
31
2
22
15.5
0.958333
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
5
7057416951e65bb8449e7ee4d83adc765eb56524
123
py
Python
EventFilter/RPCRawToDigi/python/RPCTwinMuxRawToDigi_cff.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
EventFilter/RPCRawToDigi/python/RPCTwinMuxRawToDigi_cff.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
EventFilter/RPCRawToDigi/python/RPCTwinMuxRawToDigi_cff.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
import FWCore.ParameterSet.Config as cms from EventFilter.RPCRawToDigi.RPCTwinMuxRawToDigi_cfi import RPCTwinMuxRawToDigi
30.75
80
0.894309
13
123
8.384615
0.846154
0
0
0
0
0
0
0
0
0
0
0
0.073171
123
3
81
41
0.95614
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
7059655121ac33084ea64e65d7f6ba2d1b3b7420
160
py
Python
django-app/main/textanalyzers/abstractanalyzer.py
honchardev/crypto-sentiment-app
176a6ed61246490c42d2a2b7af4d45f67e3c7499
[ "MIT" ]
9
2019-07-07T02:57:50.000Z
2022-01-07T10:03:30.000Z
django-app/main/textanalyzers/abstractanalyzer.py
honchardev/crypto-sentiment-app
176a6ed61246490c42d2a2b7af4d45f67e3c7499
[ "MIT" ]
null
null
null
django-app/main/textanalyzers/abstractanalyzer.py
honchardev/crypto-sentiment-app
176a6ed61246490c42d2a2b7af4d45f67e3c7499
[ "MIT" ]
null
null
null
from abc import ABCMeta, abstractmethod class AbstractAnalyzer(metaclass=ABCMeta): @abstractmethod def analyze(self, text_content): pass
17.777778
42
0.71875
16
160
7.125
0.875
0.368421
0
0
0
0
0
0
0
0
0
0
0.21875
160
8
43
20
0.912
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0.2
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
1
0
0
5
707a4f9b27f2e3e35cbea884a365f9f02e938846
112
py
Python
awesome_sso/store/minio.py
MoBagel/awesome-sso
dbcd06ac3f6fbf69d07b48073a7486879ea8011e
[ "Apache-2.0" ]
8
2021-12-13T21:45:19.000Z
2022-03-24T02:28:12.000Z
awesome_sso/store/minio.py
MoBagel/awesome-sso
dbcd06ac3f6fbf69d07b48073a7486879ea8011e
[ "Apache-2.0" ]
3
2021-11-25T08:38:13.000Z
2022-02-09T04:07:01.000Z
awesome_sso/store/minio.py
MoBagel/awesome-sso
dbcd06ac3f6fbf69d07b48073a7486879ea8011e
[ "Apache-2.0" ]
1
2022-01-04T07:43:34.000Z
2022-01-04T07:43:34.000Z
from awesome_minio.minio import MinioStore as AwesomeMinioStore class MinioStore(AwesomeMinioStore): pass
18.666667
63
0.830357
12
112
7.666667
0.75
0
0
0
0
0
0
0
0
0
0
0
0.133929
112
5
64
22.4
0.948454
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.333333
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
0
0
0
5
70861be8d098f556a61db8c5b08a5553f7d5846b
120
py
Python
fiasko_bro/__init__.py
SerejkaSJ/fiasko_bro
dfb8c30109f317c1e5b6d211e002fd148695809e
[ "MIT" ]
25
2018-01-24T10:45:35.000Z
2020-12-05T21:47:20.000Z
fiasko_bro/__init__.py
SerejkaSJ/fiasko_bro
dfb8c30109f317c1e5b6d211e002fd148695809e
[ "MIT" ]
110
2018-01-21T12:25:13.000Z
2021-06-10T19:27:22.000Z
fiasko_bro/__init__.py
SerejkaSJ/fiasko_bro
dfb8c30109f317c1e5b6d211e002fd148695809e
[ "MIT" ]
13
2017-12-12T22:19:01.000Z
2019-01-29T18:08:05.000Z
from .code_validator import validate, get_error_slugs from .repository_info import ProjectFolder from . import defaults
30
53
0.858333
16
120
6.1875
0.75
0
0
0
0
0
0
0
0
0
0
0
0.108333
120
3
54
40
0.925234
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
70a37ab3470ebbc194df38a9e23b6b4018d41b4e
556
py
Python
tests/kyu_6_tests/test_next_version.py
the-zebulan/CodeWars
1eafd1247d60955a5dfb63e4882e8ce86019f43a
[ "MIT" ]
40
2016-03-09T12:26:20.000Z
2022-03-23T08:44:51.000Z
tests/kyu_6_tests/test_next_version.py
akalynych/CodeWars
1eafd1247d60955a5dfb63e4882e8ce86019f43a
[ "MIT" ]
null
null
null
tests/kyu_6_tests/test_next_version.py
akalynych/CodeWars
1eafd1247d60955a5dfb63e4882e8ce86019f43a
[ "MIT" ]
36
2016-11-07T19:59:58.000Z
2022-03-31T11:18:27.000Z
import unittest from katas.kyu_6.next_version import next_version class NextVersionTestCase(unittest.TestCase): def test_equals(self): self.assertEqual(next_version('1.2.3'), '1.2.4') def test_equals_2(self): self.assertEqual(next_version('0.9.9'), '1.0.0') def test_equals_3(self): self.assertEqual(next_version('1'), '2') def test_equals_4(self): self.assertEqual(next_version('1.2.3.4.5.6.7.8'), '1.2.3.4.5.6.7.9') def test_equals_5(self): self.assertEqual(next_version('9.9'), '10.0')
26.47619
76
0.658273
93
556
3.752688
0.27957
0.22063
0.186246
0.329513
0.484241
0.312321
0.312321
0.189112
0
0
0
0.086768
0.170863
556
20
77
27.8
0.670282
0
0
0
0
0
0.106115
0
0
0
0
0
0.384615
1
0.384615
false
0
0.153846
0
0.615385
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
1
0
0
0
0
1
0
0
5
56147972a5e6111fef029e806a2cefa079c25195
502
py
Python
codenames/handlers/special_types/__init__.py
LordShowMercy/codenames-duet-bot
acfb01d94e5ac0a3df218ab4dae27500417c857d
[ "MIT" ]
1
2020-02-09T11:39:32.000Z
2020-02-09T11:39:32.000Z
codenames/handlers/special_types/__init__.py
LordShowMercy/codenames-duet-bot
acfb01d94e5ac0a3df218ab4dae27500417c857d
[ "MIT" ]
10
2019-10-12T12:15:53.000Z
2020-01-23T11:49:29.000Z
codenames/handlers/special_types/__init__.py
cekc/codenames-tgbot
a97a57696aca2344eb5ce9e9056d768b998e358d
[ "MIT" ]
3
2021-04-16T11:14:19.000Z
2022-02-12T10:27:00.000Z
from codenames.handlers.special_types.deep_linked import DeepLinkedCallbackQueryHandler from codenames.handlers.special_types.deep_linked import DeepLinkedStartCommandHandler from codenames.handlers.special_types.localized import LocalizedCallbackQueryHandler from codenames.handlers.special_types.localized import LocalizedCommandHandler from codenames.handlers.special_types.localized import LocalizedInlineQueryHandler from codenames.handlers.special_types.localized import LocalizedMessageHandler
62.75
87
0.914343
50
502
9.02
0.3
0.172949
0.279379
0.372506
0.643016
0.643016
0.643016
0.217295
0
0
0
0
0.049801
502
7
88
71.714286
0.945493
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
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
1
0
1
0
0
0
0
5
5637cb9a4011e99f37e6a2196e1ec854ae53cf62
44
py
Python
src/temp_data/__init__.py
caheredia/caiso_connector
a445bddd0eb953800b07accbd639864d3f8289d1
[ "MIT" ]
2
2021-09-09T12:25:40.000Z
2022-01-29T02:30:47.000Z
src/temp_data/__init__.py
caheredia/caiso_connector
a445bddd0eb953800b07accbd639864d3f8289d1
[ "MIT" ]
43
2020-06-14T02:13:23.000Z
2020-08-08T20:11:21.000Z
src/temp_data/__init__.py
caheredia/caiso_connector
a445bddd0eb953800b07accbd639864d3f8289d1
[ "MIT" ]
null
null
null
"""# file used for creation of directory"""
22
43
0.681818
6
44
5
1
0
0
0
0
0
0
0
0
0
0
0
0.159091
44
1
44
44
0.810811
0.840909
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
565bc6d46532ffc2df95b12333a79e9fd5475920
243
py
Python
jnumpy/__init__.py
JacobFV/jumpy
3a58e31a50460e455192f1ddb11318638092f5e6
[ "MIT" ]
null
null
null
jnumpy/__init__.py
JacobFV/jumpy
3a58e31a50460e455192f1ddb11318638092f5e6
[ "MIT" ]
null
null
null
jnumpy/__init__.py
JacobFV/jumpy
3a58e31a50460e455192f1ddb11318638092f5e6
[ "MIT" ]
1
2021-10-20T18:20:31.000Z
2021-10-20T18:20:31.000Z
# Jnumpy: Jacob's numpy library for machine learning # Copyright (c) 2021 Jacob F. Valdez. Released under the MIT license. """Jnumpy: Jacob's numpy library for machine learning.""" from jnumpy.core import * import jnumpy.nn import jnumpy.rl
27
69
0.757202
37
243
4.972973
0.621622
0.119565
0.130435
0.184783
0.456522
0.456522
0.456522
0.456522
0
0
0
0.019417
0.152263
243
8
70
30.375
0.873786
0.703704
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
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
1
0
1
0
1
0
0
5
56675757a6b6c2508d347eb831cb17aac864d614
37
py
Python
owl_system/__init__.py
HammerDev99/GestionExpedienteElectronico_Version1
ab99385117b96af9dcdf795874f1973822d80070
[ "MIT" ]
null
null
null
owl_system/__init__.py
HammerDev99/GestionExpedienteElectronico_Version1
ab99385117b96af9dcdf795874f1973822d80070
[ "MIT" ]
null
null
null
owl_system/__init__.py
HammerDev99/GestionExpedienteElectronico_Version1
ab99385117b96af9dcdf795874f1973822d80070
[ "MIT" ]
null
null
null
# This directory is a Python package.
37
37
0.783784
6
37
4.833333
1
0
0
0
0
0
0
0
0
0
0
0
0.162162
37
1
37
37
0.935484
0.945946
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
56982bc37d29903f5aede782ffe0cc4714842e20
1,038
py
Python
tests/integrations/serverless/test_serverless.py
cameronmaske/sentry-python
de970486665cfe0b8bcae8ab1a9ac7695f0b3868
[ "BSD-2-Clause" ]
1
2020-11-02T11:31:01.000Z
2020-11-02T11:31:01.000Z
tests/integrations/serverless/test_serverless.py
cameronmaske/sentry-python
de970486665cfe0b8bcae8ab1a9ac7695f0b3868
[ "BSD-2-Clause" ]
null
null
null
tests/integrations/serverless/test_serverless.py
cameronmaske/sentry-python
de970486665cfe0b8bcae8ab1a9ac7695f0b3868
[ "BSD-2-Clause" ]
1
2021-02-17T01:38:03.000Z
2021-02-17T01:38:03.000Z
import pytest from sentry_sdk.integrations.serverless import serverless_function def test_basic(sentry_init, capture_exceptions, monkeypatch): sentry_init() exceptions = capture_exceptions() flush_calls = [] @serverless_function def foo(): monkeypatch.setattr( "sentry_sdk.Hub.current.flush", lambda: flush_calls.append(1) ) 1 / 0 with pytest.raises(ZeroDivisionError): foo() exception, = exceptions assert isinstance(exception, ZeroDivisionError) assert flush_calls == [1] def test_flush_disabled(sentry_init, capture_exceptions, monkeypatch): sentry_init() exceptions = capture_exceptions() flush_calls = [] monkeypatch.setattr("sentry_sdk.Hub.current.flush", lambda: flush_calls.append(1)) @serverless_function(flush=False) def foo(): 1 / 0 with pytest.raises(ZeroDivisionError): foo() exception, = exceptions assert isinstance(exception, ZeroDivisionError) assert flush_calls == []
22.085106
86
0.688825
108
1,038
6.407407
0.305556
0.086705
0.060694
0.078035
0.765896
0.765896
0.765896
0.765896
0.765896
0.765896
0
0.008621
0.217726
1,038
46
87
22.565217
0.843596
0
0
0.6
0
0
0.05395
0.05395
0
0
0
0
0.133333
1
0.133333
false
0
0.066667
0
0.2
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
3b3f207fbe15a66304a63b147ac1c5d450490761
42
py
Python
tests/tests/__init__.py
chrahunt/quicken
2dd00a5f024d7b114b211aad8a2618ec8f101956
[ "MIT" ]
3
2019-11-12T17:56:08.000Z
2022-03-12T03:43:10.000Z
tests/tests/__init__.py
chrahunt/quicken
2dd00a5f024d7b114b211aad8a2618ec8f101956
[ "MIT" ]
47
2018-12-10T04:08:58.000Z
2022-03-20T14:54:36.000Z
tests/tests/__init__.py
chrahunt/quicken
2dd00a5f024d7b114b211aad8a2618ec8f101956
[ "MIT" ]
1
2019-11-12T17:55:17.000Z
2019-11-12T17:55:17.000Z
"""Tests for utilities used in tests. """
14
37
0.666667
6
42
4.666667
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.166667
42
2
38
21
0.8
0.809524
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
3b4245230e48b083683e26ecbd976bf2b29f19fc
44
py
Python
auth.py
beothorn/ArcoexBot
ef349d25903aeec72a31fe7c8f4775b0770ae68e
[ "MIT" ]
13
2017-08-26T15:49:32.000Z
2021-04-15T12:00:54.000Z
auth.py
beothorn/ArcoexBot
ef349d25903aeec72a31fe7c8f4775b0770ae68e
[ "MIT" ]
33
2017-08-25T07:23:12.000Z
2019-11-11T14:27:43.000Z
auth.py
beothorn/ArcoexBot
ef349d25903aeec72a31fe7c8f4775b0770ae68e
[ "MIT" ]
20
2017-08-30T07:14:07.000Z
2020-02-11T22:44:37.000Z
bot_token = "INSERT DISCORD BOT TOKEN HERE"
22
43
0.772727
7
44
4.714286
0.714286
0.484848
0
0
0
0
0
0
0
0
0
0
0.159091
44
1
44
44
0.891892
0
0
0
0
0
0.659091
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
3ba1a2ae5ee67c2d134caea51a50dbba5583bd0a
539
py
Python
tests/conftest.py
JonasHablitzel/spaczz
9f79fe9d35a25787f926b4c4955c2650f4600073
[ "MIT" ]
153
2020-07-07T01:26:25.000Z
2022-03-31T23:47:00.000Z
tests/conftest.py
JonasHablitzel/spaczz
9f79fe9d35a25787f926b4c4955c2650f4600073
[ "MIT" ]
38
2020-07-15T02:29:34.000Z
2021-08-15T21:32:54.000Z
tests/conftest.py
JonasHablitzel/spaczz
9f79fe9d35a25787f926b4c4955c2650f4600073
[ "MIT" ]
20
2020-07-07T15:41:05.000Z
2022-02-21T19:28:22.000Z
"""Package-wide test fixures.""" from pathlib import Path import pytest import spacy from spacy.language import Language @pytest.fixture(scope="session") def fixtures() -> Path: """Path to test fixtures.""" return Path(__file__).parent / "fixtures" @pytest.fixture(scope="session") def model() -> Language: """Medium English Core spaCy model.""" return spacy.load("en_core_web_md") @pytest.fixture(scope="session") def nlp() -> Language: """Empty spaCy English language pipeline.""" return spacy.blank("en")
21.56
48
0.693878
68
539
5.397059
0.470588
0.106267
0.147139
0.20436
0.228883
0
0
0
0
0
0
0
0.153989
539
24
49
22.458333
0.804825
0.22449
0
0.230769
0
0
0.11335
0
0
0
0
0
0
1
0.230769
true
0
0.307692
0
0.769231
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
1
0
1
0
1
0
0
5
8e8e02232503d1ceb0e33041b46d8f0516209684
527
py
Python
srag_data/_nbdev.py
victor-marchesini/covid_colab
ab529d341c99f6e812d902f12eb78952bd094764
[ "Apache-2.0" ]
null
null
null
srag_data/_nbdev.py
victor-marchesini/covid_colab
ab529d341c99f6e812d902f12eb78952bd094764
[ "Apache-2.0" ]
null
null
null
srag_data/_nbdev.py
victor-marchesini/covid_colab
ab529d341c99f6e812d902f12eb78952bd094764
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED BY NBDEV! DO NOT EDIT! __all__ = ["index", "modules", "custom_doc_links", "git_url"] index = {"get_last_bd_srag_csv_url": "00_srag_data.ipynb", "get_srag_data": "00_srag_data.ipynb", "get_cities_states_dictionaries": "00_srag_data.ipynb", "treat_srag_data": "00_srag_data.ipynb"} modules = ["srag_data.py"] doc_url = "https://victor-marchesini.github.io/srag_data/" git_url = "https://github.com/victor-marchesini/srag_data/tree/master/" def custom_doc_links(name): return None
31
71
0.717268
78
527
4.410256
0.5
0.209302
0.116279
0.174419
0.194767
0.133721
0
0
0
0
0
0.017467
0.13093
527
16
72
32.9375
0.733624
0.068311
0
0
1
0
0.625767
0.110429
0
0
0
0
0
1
0.111111
false
0
0
0.111111
0.111111
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
1
0
1
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
5
8ea46a6450b01cc21ea913542cb0f486e4415c62
81
py
Python
5-module/module/testmodule.py
quockhai/PythonByExamples
eda1abfc7405af4c894852d7dd298ef52b935006
[ "MIT" ]
null
null
null
5-module/module/testmodule.py
quockhai/PythonByExamples
eda1abfc7405af4c894852d7dd298ef52b935006
[ "MIT" ]
null
null
null
5-module/module/testmodule.py
quockhai/PythonByExamples
eda1abfc7405af4c894852d7dd298ef52b935006
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 def printModuleName(): print('This is: Test Module.')
20.25
34
0.679012
11
81
5
1
0
0
0
0
0
0
0
0
0
0
0.014493
0.148148
81
4
34
20.25
0.782609
0.259259
0
0
0
0
0.35
0
0
0
0
0
0
1
0.5
true
0
0
0
0.5
1
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
0
0
0
1
0
5
8eae90fb6ccc462cd684453b98bd221fe3f0f879
199
py
Python
robolfd/__init__.py
mohanksriram/robolfd
6db4d0ed469b177dd03e2bb86dd925f12604719a
[ "Apache-2.0" ]
null
null
null
robolfd/__init__.py
mohanksriram/robolfd
6db4d0ed469b177dd03e2bb86dd925f12604719a
[ "Apache-2.0" ]
null
null
null
robolfd/__init__.py
mohanksriram/robolfd
6db4d0ed469b177dd03e2bb86dd925f12604719a
[ "Apache-2.0" ]
null
null
null
"""Robolfd is a framework for robot learning from demonstration.""" # Make __version__ accessible. from robolfd._metadata import __version__ # Internal core import. from robolfd.core import Learner
28.428571
67
0.80402
25
199
6.04
0.68
0.145695
0
0
0
0
0
0
0
0
0
0
0.130653
199
7
68
28.428571
0.872832
0.567839
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
8ebbb5248e62970988d3e4896e4eb9aea8417d45
178
py
Python
web/transiq/team/search.py
manibhushan05/transiq
763fafb271ce07d13ac8ce575f2fee653cf39343
[ "Apache-2.0" ]
null
null
null
web/transiq/team/search.py
manibhushan05/transiq
763fafb271ce07d13ac8ce575f2fee653cf39343
[ "Apache-2.0" ]
14
2020-06-05T23:06:45.000Z
2022-03-12T00:00:18.000Z
web/transiq/team/search.py
manibhushan05/transiq
763fafb271ce07d13ac8ce575f2fee653cf39343
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from team.models import ManualBooking def booking_search(): bookings = ManualBooking.objects.filter(booking_id__search='AaHO06001')
22.25
75
0.820225
21
178
6.52381
0.714286
0
0
0
0
0
0
0
0
0
0
0.031646
0.11236
178
7
76
25.428571
0.835443
0
0
0
0
0
0.050562
0
0
0
0
0
0
1
0.25
false
0
0.5
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
0
1
0
0
5
8ec26b6bebf74d32f34f3933b8e5ca25db533d5f
108
py
Python
infiniteloop.py
Speedy905/randomscripts
d98a5b7b9307065dae74f6ec997b55a6902884e3
[ "MIT" ]
null
null
null
infiniteloop.py
Speedy905/randomscripts
d98a5b7b9307065dae74f6ec997b55a6902884e3
[ "MIT" ]
null
null
null
infiniteloop.py
Speedy905/randomscripts
d98a5b7b9307065dae74f6ec997b55a6902884e3
[ "MIT" ]
null
null
null
# Prints out an infinite loop of hello world # That's literally it. while True: print ("Hello World")
18
44
0.694444
17
108
4.411765
0.882353
0.266667
0
0
0
0
0
0
0
0
0
0
0.222222
108
5
45
21.6
0.892857
0.583333
0
0
0
0
0.268293
0
0
0
0
0
0
1
0
true
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
1
0
0
0
0
1
0
5
8ecc79a137529066fa829898b7b9fd27211649ff
246
py
Python
pcapkit/const/ipx/__init__.py
chellvs/PyPCAPKit
f8d66f9955904196b71a6143e49ff4ec4c4922dc
[ "BSD-3-Clause" ]
131
2018-10-12T09:45:44.000Z
2022-03-31T18:58:14.000Z
pcapkit/const/ipx/__init__.py
chellvs/PyPCAPKit
f8d66f9955904196b71a6143e49ff4ec4c4922dc
[ "BSD-3-Clause" ]
39
2018-08-18T12:15:04.000Z
2022-03-07T20:28:08.000Z
pcapkit/const/ipx/__init__.py
chellvs/PyPCAPKit
f8d66f9955904196b71a6143e49ff4ec4c4922dc
[ "BSD-3-Clause" ]
23
2018-10-12T09:45:52.000Z
2022-03-05T15:23:00.000Z
# -*- coding: utf-8 -*- # pylint: disable=unused-import """IPX constant enumerations.""" from pcapkit.const.ipx.packet import Packet as IPX_Packet from pcapkit.const.ipx.socket import Socket as IPX_Socket __all__ = ['IPX_Packet', 'IPX_Socket']
27.333333
57
0.743902
35
246
5
0.485714
0.154286
0.182857
0.217143
0
0
0
0
0
0
0
0.004608
0.117886
246
8
58
30.75
0.801843
0.321138
0
0
0
0
0.125
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
8ecfa9041b692b11a1f34cf393d3a4d348e1c3ad
1,474
py
Python
src/awkward/_v2/operations/reducers/__init__.py
BioGeek/awkward-1.0
0cfb4e43c41d5c7d9830cc7b1d750485c0a93eb2
[ "BSD-3-Clause" ]
null
null
null
src/awkward/_v2/operations/reducers/__init__.py
BioGeek/awkward-1.0
0cfb4e43c41d5c7d9830cc7b1d750485c0a93eb2
[ "BSD-3-Clause" ]
null
null
null
src/awkward/_v2/operations/reducers/__init__.py
BioGeek/awkward-1.0
0cfb4e43c41d5c7d9830cc7b1d750485c0a93eb2
[ "BSD-3-Clause" ]
null
null
null
# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE from awkward._v2.operations.reducers.ak_count import count # noqa: F401 from awkward._v2.operations.reducers.ak_count_nonzero import count_nonzero # noqa: F401 from awkward._v2.operations.reducers.ak_sum import sum # noqa: F401 from awkward._v2.operations.reducers.ak_prod import prod # noqa: F401 from awkward._v2.operations.reducers.ak_any import any # noqa: F401 from awkward._v2.operations.reducers.ak_all import all # noqa: F401 from awkward._v2.operations.reducers.ak_min import min # noqa: F401 from awkward._v2.operations.reducers.ak_max import max # noqa: F401 from awkward._v2.operations.reducers.ak_ptp import ptp # noqa: F401 from awkward._v2.operations.reducers.ak_argmin import argmin # noqa: F401 from awkward._v2.operations.reducers.ak_argmax import argmax # noqa: F401 from awkward._v2.operations.reducers.ak_moment import moment # noqa: F401 from awkward._v2.operations.reducers.ak_mean import mean # noqa: F401 from awkward._v2.operations.reducers.ak_var import var # noqa: F401 from awkward._v2.operations.reducers.ak_std import std # noqa: F401 from awkward._v2.operations.reducers.ak_covar import covar # noqa: F401 from awkward._v2.operations.reducers.ak_corr import corr # noqa: F401 from awkward._v2.operations.reducers.ak_linear_fit import linear_fit # noqa: F401 from awkward._v2.operations.reducers.ak_softmax import softmax # noqa: F401
67
88
0.804613
229
1,474
4.995633
0.187773
0.182692
0.215909
0.381993
0.682692
0.682692
0.682692
0.645105
0
0
0
0.060076
0.10787
1,474
21
89
70.190476
0.809886
0.199457
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
d91ff157d04047d6fe7ff8d220e1f21af9d25ccc
7,997
py
Python
Packs/Tanium/Integrations/Tanium/Tanium_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Tanium/Integrations/Tanium/Tanium_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Tanium/Integrations/Tanium/Tanium_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
RAW_JSON_RESPONSE_1 = [ { "row0": [ { "column.display_name": "header1", "column.result_type": "DataSize", "column.values": [ "col1" ], "column.what_hash": 0 }, { "column.display_name": "header2", "column.result_type": "NumericDecimal", "column.values": [ "col2" ], "column.what_hash": 0 }, { "column.display_name": "header3", "column.result_type": "NumericDecimal", "column.values": [ "col3" ], "column.what_hash": 0 } ] }, { "row1": [ { "column.display_name": "header1", "column.result_type": "DataSize", "column.values": [ "col1" ], "column.what_hash": 0 }, { "column.display_name": "header2", "column.result_type": "NumericDecimal", "column.values": [ "col2" ], "column.what_hash": 0 }, { "column.display_name": "header3", "column.result_type": "NumericDecimal", "column.values": [ "col3" ], "column.what_hash": 0 } ] } ] RAW_JSON_RESPONSE_2 = [ { "row0": [ { "column.display_name": "header1", "column.result_type": "DataSize", "column.values": [ "col1" ], "column.what_hash": 0 }, { "column.display_name": "header2", "column.result_type": "NumericDecimal", "column.values": [ "col2_1", "col2_2" ], "column.what_hash": 0 }, { "column.display_name": "header3", "column.result_type": "NumericDecimal", "column.values": [ "col3" ], "column.what_hash": 0 } ] }, { "row1": [ { "column.display_name": "header1", "column.result_type": "DataSize", "column.values": [ "col1" ], "column.what_hash": 0 }, { "column.display_name": "header2", "column.result_type": "NumericDecimal", "column.values": [ "col2" ], "column.what_hash": 0 }, { "column.display_name": "header3", "column.result_type": "NumericDecimal", "column.values": [ "col3" ], "column.what_hash": 0 } ] } ] RAW_JSON_RESPONSE_3 = [ { "row0": [ { "column.display_name": "header1", "column.result_type": "DataSize", "column.values": [ None ], "column.what_hash": 0 }, { "column.display_name": "header2", "column.result_type": "NumericDecimal", "column.values": [ "data_2", ], "column.what_hash": 0 }, { "column.display_name": "header3", "column.result_type": "NumericDecimal", "column.values": [ "data_3" ], "column.what_hash": 0 }, { "column.display_name": "header4", "column.result_type": "NumericDecimal", "column.values": [ "data_4" ], "column.what_hash": 0 }, { "column.display_name": "header5", "column.result_type": "NumericDecimal", "column.values": [ "data_5_1", "data_5_2" ], "column.what_hash": 0 }, { "column.display_name": "header6", "column.result_type": "NumericDecimal", "column.values": [ "data_6" ], "column.what_hash": 0 }, { "column.display_name": "header7", "column.result_type": "NumericDecimal", "column.values": [ "data_7" ], "column.what_hash": 0 }, { "column.display_name": "header8", "column.result_type": "NumericDecimal", "column.values": [ "data_8_1", "data_8_2", "data_8_3" ], "column.what_hash": 0 }, ] }, ] RESULT_DICT_1 = [ { "header1": "col1", "header2": "col2", "header3": "col3" }, { "header1": "col1", "header2": "col2", "header3": "col3" } ] RESULT_DICT_2 = [ { "header1": "col1", "header2": "col2_1\ncol2_2", "header3": "col3" }, { "header1": "col1", "header2": "col2", "header3": "col3" } ] RESULT_DICT_3 = [ { "header1": None, "header2": "data_2", "header3": "data_3", "header4": "data_4", "header5": "data_5_1\ndata_5_2", "header6": "data_6", "header7": "data_7", "header8": "data_8_1\ndata_8_2\ndata_8_3" } ] RESULT_DICT_4 = [ { "header1": "col1", "header2": "col2_1\ncol2_2\ncol2_3", "header3": "col3" }, { "header1": "col1", "header2": "col2", "header3": "col3" } ] CONTEXT_RESULT_DICT_2 = [ { "header1": "col1", "header2": ["col2_1", "col2_2"], "header3": "col3" }, { "header1": "col1", "header2": "col2", "header3": "col3" } ] CONTEXT_RESULT_DICT_3 = [ { "header1": None, "header2": "data_2", "header3": "data_3", "header4": "data_4", "header5": ["data_5_1", "data_5_2"], "header6": "data_6", "header7": "data_7", "header8": ["data_8_1", "data_8_2", "data_8_3"] } ] CONTEXT_RESULT_DICT_4 = [ { "header1": "col1", "header2": ["col2_1", "col2_2", "col2_3"], "header3": "col3" }, { "header1": "col1", "header2": "col2", "header3": "col3" } ] def test_raw_response_to_json_1(): from Tanium import raw_response_to_json res = raw_response_to_json(RAW_JSON_RESPONSE_1) assert res == RESULT_DICT_1 def test_raw_response_to_json_2(): from Tanium import raw_response_to_json res = raw_response_to_json(RAW_JSON_RESPONSE_2) assert res == RESULT_DICT_2 def test_raw_response_to_json_3(): from Tanium import raw_response_to_json res = raw_response_to_json(RAW_JSON_RESPONSE_3) assert res == RESULT_DICT_3 def test_format_context(): from Tanium import format_context res = format_context(RESULT_DICT_2) assert res == CONTEXT_RESULT_DICT_2 res = format_context(RESULT_DICT_3) assert res == CONTEXT_RESULT_DICT_3 res = format_context(RESULT_DICT_4) assert res == CONTEXT_RESULT_DICT_4
25.387302
55
0.404402
635
7,997
4.759055
0.07874
0.086036
0.112508
0.099272
0.92323
0.866314
0.831569
0.705162
0.655857
0.630046
0
0.051966
0.4658
7,997
314
56
25.468153
0.655431
0
0
0.517007
0
0
0.311906
0.006253
0
0
0
0
0.020408
1
0.013605
false
0
0.013605
0
0.027211
0
0
0
0
null
0
0
0
1
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
d949bb4fc5c1c2a804da63fc37a1680183a0fe79
178
py
Python
profiles_api/admin.py
nantthet739/profiles-rest-api-new
c449108360ed7a39f8ffcefa38b32bca57d732c2
[ "MIT" ]
null
null
null
profiles_api/admin.py
nantthet739/profiles-rest-api-new
c449108360ed7a39f8ffcefa38b32bca57d732c2
[ "MIT" ]
null
null
null
profiles_api/admin.py
nantthet739/profiles-rest-api-new
c449108360ed7a39f8ffcefa38b32bca57d732c2
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. from profiles_api import models #to be able to access from admin portal admin.site.register(models.UserProfile)
17.8
39
0.803371
27
178
5.259259
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.146067
178
9
40
19.777778
0.934211
0.359551
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
d957aa79bfc74aa30a637062882fc2b8546cf37a
154
py
Python
src/image_caption_machine/__init__.py
brandontrabucco/ros-image-captioner
5fd18317f2ec600cdc61628028292a22eef45fc2
[ "MIT" ]
3
2018-09-08T10:28:59.000Z
2019-09-08T00:11:33.000Z
src/image_caption_machine/__init__.py
brandontrabucco/ros-image-captioner
5fd18317f2ec600cdc61628028292a22eef45fc2
[ "MIT" ]
null
null
null
src/image_caption_machine/__init__.py
brandontrabucco/ros-image-captioner
5fd18317f2ec600cdc61628028292a22eef45fc2
[ "MIT" ]
2
2019-04-17T17:24:28.000Z
2019-06-10T18:16:44.000Z
"""Author: Brandon Trabucco. Expose a public API for the Image Captioner. """ from image_caption_machine.machine import Client as ImageCaptionMachine
17.111111
71
0.792208
20
154
6
0.9
0
0
0
0
0
0
0
0
0
0
0
0.142857
154
8
72
19.25
0.909091
0.454545
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
795260edc9b41a9d3c0c76ccf0622e352e51fd4a
132
py
Python
myproj/api/routes/hello_v1/__init__.py
jbarguil/python-rest-server
d050d095555c9bad3e2e94b4e0c51075cc6ad3bc
[ "MIT" ]
null
null
null
myproj/api/routes/hello_v1/__init__.py
jbarguil/python-rest-server
d050d095555c9bad3e2e94b4e0c51075cc6ad3bc
[ "MIT" ]
null
null
null
myproj/api/routes/hello_v1/__init__.py
jbarguil/python-rest-server
d050d095555c9bad3e2e94b4e0c51075cc6ad3bc
[ "MIT" ]
null
null
null
"""v1 of the Hello API """ from .api import api, blueprint from .hello import namespace as ns_hello api.add_namespace(ns_hello)
13.2
40
0.742424
22
132
4.318182
0.545455
0.168421
0
0
0
0
0
0
0
0
0
0.009091
0.166667
132
9
41
14.666667
0.854545
0.143939
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
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
1
0
0
5
79687fb6fb10526acd265410a1145ee31aa05114
75
py
Python
app/application.py
celinegilet/python-kata
bea1e56bf6cb4574200fd5c2688a78608e798975
[ "MIT" ]
null
null
null
app/application.py
celinegilet/python-kata
bea1e56bf6cb4574200fd5c2688a78608e798975
[ "MIT" ]
null
null
null
app/application.py
celinegilet/python-kata
bea1e56bf6cb4574200fd5c2688a78608e798975
[ "MIT" ]
null
null
null
class Application(object): def say_hello(self): return "Hello"
18.75
26
0.653333
9
75
5.333333
0.888889
0
0
0
0
0
0
0
0
0
0
0
0.24
75
3
27
25
0.842105
0
0
0
0
0
0.066667
0
0
0
0
0
0
1
0.333333
false
0
0
0.333333
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
799511b4437eca2d816e0cf228a3f3208862f42f
62
py
Python
neuro_pypes/interfaces/fsl/__init__.py
Neurita/pypes
e88d27ebba842e8fa1f36b52ca12a0b9d5777e89
[ "Apache-2.0" ]
14
2015-11-30T19:32:08.000Z
2021-11-16T05:35:20.000Z
neuro_pypes/interfaces/fsl/__init__.py
Neurita/pypes
e88d27ebba842e8fa1f36b52ca12a0b9d5777e89
[ "Apache-2.0" ]
42
2015-11-28T23:18:42.000Z
2021-02-23T01:45:02.000Z
neuro_pypes/interfaces/fsl/__init__.py
Neurita/pypes
e88d27ebba842e8fa1f36b52ca12a0b9d5777e89
[ "Apache-2.0" ]
9
2015-12-09T17:10:59.000Z
2022-01-03T17:26:40.000Z
from neuro_pypes.interfaces.fsl.epi import Eddy, EddyCorrect
20.666667
60
0.83871
9
62
5.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.096774
62
2
61
31
0.910714
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
79dc54cb3eedb1cfc63fa64d59e155abe95062a2
134
py
Python
projetos/views.py
techtuxbr/FsocietyBrasilIdeasPlace
6cb3606542897a4ec95207a30c06534cd047fa5b
[ "MIT" ]
null
null
null
projetos/views.py
techtuxbr/FsocietyBrasilIdeasPlace
6cb3606542897a4ec95207a30c06534cd047fa5b
[ "MIT" ]
null
null
null
projetos/views.py
techtuxbr/FsocietyBrasilIdeasPlace
6cb3606542897a4ec95207a30c06534cd047fa5b
[ "MIT" ]
null
null
null
from django.shortcuts import render def contact(request): return render(request,'about/contact.html') # Create your views here.
19.142857
47
0.761194
18
134
5.666667
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.141791
134
6
48
22.333333
0.886957
0.171642
0
0
0
0
0.165138
0
0
0
0
0
0
1
0.333333
false
0
0.333333
0.333333
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
1
0
0
0
5
8dc77e8eabb63838c3fdf576f05475c3fb50af16
364
py
Python
guid/guid.py
logileifs/guid
719e8395ee4b7cff578a11a7fd32ed6ec1490cbb
[ "MIT" ]
1
2020-01-19T19:57:13.000Z
2020-01-19T19:57:13.000Z
guid/guid.py
logileifs/guid
719e8395ee4b7cff578a11a7fd32ed6ec1490cbb
[ "MIT" ]
null
null
null
guid/guid.py
logileifs/guid
719e8395ee4b7cff578a11a7fd32ed6ec1490cbb
[ "MIT" ]
null
null
null
from uuid import UUID from uuid import uuid4 from base64 import urlsafe_b64decode from base64 import urlsafe_b64encode def uuid_to_guid(uuid): return urlsafe_b64encode(uuid.bytes).rstrip(b'=').decode() def guid_to_uuid(slug): return UUID(bytes=urlsafe_b64decode(slug + '==')) class GUID(): def __new__(self): return uuid_to_guid(uuid4())
20.222222
62
0.736264
52
364
4.884615
0.384615
0.062992
0.110236
0.181102
0
0
0
0
0
0
0
0.045752
0.159341
364
17
63
21.411765
0.784314
0
0
0
0
0
0.008242
0
0
0
0
0
0
1
0.272727
false
0
0.363636
0.272727
1
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
1
1
0
0
5
30a3f845185bb4b60a852dbda4ba47a531d5a5d8
81
py
Python
vnpy/api/tap/__init__.py
funrunskypalace/vnpy
2d87aede685fa46278d8d3392432cc127b797926
[ "MIT" ]
19,529
2015-03-02T12:17:35.000Z
2022-03-31T17:18:27.000Z
vnpy/api/tap/__init__.py
funrunskypalace/vnpy
2d87aede685fa46278d8d3392432cc127b797926
[ "MIT" ]
2,186
2015-03-04T23:16:33.000Z
2022-03-31T03:44:01.000Z
vnpy/api/tap/__init__.py
funrunskypalace/vnpy
2d87aede685fa46278d8d3392432cc127b797926
[ "MIT" ]
8,276
2015-03-02T05:21:04.000Z
2022-03-31T13:13:13.000Z
from .vntapmd import MdApi from .vntaptd import TdApi from .tap_constant import *
27
27
0.814815
12
81
5.416667
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.135802
81
3
27
27
0.928571
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
30df4f86cb3f64c689d1a8b42768268f478ade53
253
py
Python
gefapi/routes/api/v1/__init__.py
ConservationInternational/trends.earth-API
120042c6eb17734404f739d1764718c8332c9e03
[ "X11" ]
null
null
null
gefapi/routes/api/v1/__init__.py
ConservationInternational/trends.earth-API
120042c6eb17734404f739d1764718c8332c9e03
[ "X11" ]
4
2020-04-27T12:46:56.000Z
2021-02-25T12:29:53.000Z
gefapi/routes/api/v1/__init__.py
ConservationInternational/trends.earth-API
120042c6eb17734404f739d1764718c8332c9e03
[ "X11" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from flask import Blueprint v1_endpoints = Blueprint('v1_endpoints', __name__) import gefapi.routes.api.v1.gef_api_router # noqa: autoimport
28.111111
62
0.841897
34
253
5.617647
0.558824
0.157068
0.251309
0
0
0
0
0
0
0
0
0.013333
0.110672
253
8
63
31.625
0.835556
0.063241
0
0
0
0
0.051064
0
0
0
0
0
0
1
0
false
0
0.833333
0
0.833333
0.5
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
1
0
5
eb9869a73a9da55432c96a2050a5902602b33415
51
py
Python
social/backends/naver.py
raccoongang/python-social-auth
81c0a542d158772bd3486d31834c10af5d5f08b0
[ "BSD-3-Clause" ]
1,987
2015-01-01T16:12:45.000Z
2022-03-29T14:24:25.000Z
social/backends/naver.py
raccoongang/python-social-auth
81c0a542d158772bd3486d31834c10af5d5f08b0
[ "BSD-3-Clause" ]
731
2015-01-01T22:55:25.000Z
2022-03-10T15:07:51.000Z
virtual/lib/python3.6/site-packages/social/backends/naver.py
dennismwaniki67/awards
80ed10541f5f751aee5f8285ab1ad54cfecba95f
[ "MIT" ]
1,082
2015-01-01T16:27:26.000Z
2022-03-22T21:18:33.000Z
from social_core.backends.naver import NaverOAuth2
25.5
50
0.882353
7
51
6.285714
1
0
0
0
0
0
0
0
0
0
0
0.021277
0.078431
51
1
51
51
0.914894
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
ebb4f88234d59c33d736abbb9b1faf17558df1a5
100
py
Python
tests/test_import.py
BlockResearchGroup/compas_skeleton
f05916fc044d5ada3227c3037d6b425f49aa12c0
[ "MIT" ]
4
2020-07-05T17:12:44.000Z
2021-11-13T09:30:23.000Z
tests/test_import.py
BlockResearchGroup/compas_skeleton
f05916fc044d5ada3227c3037d6b425f49aa12c0
[ "MIT" ]
1
2020-05-15T00:08:16.000Z
2020-05-15T09:11:50.000Z
tests/test_import.py
BlockResearchGroup/compas_skeleton
f05916fc044d5ada3227c3037d6b425f49aa12c0
[ "MIT" ]
null
null
null
import compas_skeleton def test_trivial(): print(compas_skeleton.__version__) assert True
14.285714
38
0.77
12
100
5.833333
0.833333
0.4
0
0
0
0
0
0
0
0
0
0
0.17
100
6
39
16.666667
0.843373
0
0
0
0
0
0
0
0
0
0
0
0.25
1
0.25
true
0
0.25
0
0.5
0.25
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
0
0
0
0
0
5
ebc6c006fdfad5160002f0a01903122d08341450
35
py
Python
run.py
cash/happybot
79f8b25f6d0d1eb23c8da2ce96a3dd2ab577190e
[ "BSD-3-Clause" ]
null
null
null
run.py
cash/happybot
79f8b25f6d0d1eb23c8da2ce96a3dd2ab577190e
[ "BSD-3-Clause" ]
null
null
null
run.py
cash/happybot
79f8b25f6d0d1eb23c8da2ce96a3dd2ab577190e
[ "BSD-3-Clause" ]
null
null
null
from happybot import app app.run()
11.666667
24
0.771429
6
35
4.5
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.142857
35
2
25
17.5
0.9
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
ebcced0be444ded133512f87d94a07c90b77d7a1
53
py
Python
tests/__init__.py
sairamreddy94/oopt-gnpy
e9b287ceaccc7f701af976012701c1b30118aff6
[ "BSD-3-Clause" ]
1
2020-05-24T03:28:56.000Z
2020-05-24T03:28:56.000Z
tests/__init__.py
sairamreddy94/oopt-gnpy
e9b287ceaccc7f701af976012701c1b30118aff6
[ "BSD-3-Clause" ]
null
null
null
tests/__init__.py
sairamreddy94/oopt-gnpy
e9b287ceaccc7f701af976012701c1b30118aff6
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from .test_utilities import *
13.25
29
0.735849
8
53
4.75
1
0
0
0
0
0
0
0
0
0
0
0
0.132075
53
3
30
17.666667
0.826087
0.377358
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5