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
6f5413a27793f434dd1cd2a5cce69099522b74aa
70
py
Python
data_process.py
Rin-The-QT-Bunny/Kabalium
ebb2ce611b715c7f9e212426e2d914418445d3b6
[ "CC0-1.0" ]
null
null
null
data_process.py
Rin-The-QT-Bunny/Kabalium
ebb2ce611b715c7f9e212426e2d914418445d3b6
[ "CC0-1.0" ]
null
null
null
data_process.py
Rin-The-QT-Bunny/Kabalium
ebb2ce611b715c7f9e212426e2d914418445d3b6
[ "CC0-1.0" ]
null
null
null
""" Title: Data-Loader Module """ print("data processer installed")
17.5
33
0.685714
8
70
6
0.875
0
0
0
0
0
0
0
0
0
0
0
0.142857
70
4
33
17.5
0.8
0.357143
0
0
0
0
0.685714
0
0
0
0
0
0
1
0
true
0
0
0
0
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
1
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
5
6f58c14a08ac589f75284c4cbd98fbbebc15406b
14,023
py
Python
tests/CLI/modules/user_tests.py
dkulchinsky/softlayer-python
3b54105d9cc4a552c1e22871a0bbbb6cac725dd5
[ "MIT" ]
1
2020-08-19T16:53:04.000Z
2020-08-19T16:53:04.000Z
tests/CLI/modules/user_tests.py
dkulchinsky/softlayer-python
3b54105d9cc4a552c1e22871a0bbbb6cac725dd5
[ "MIT" ]
null
null
null
tests/CLI/modules/user_tests.py
dkulchinsky/softlayer-python
3b54105d9cc4a552c1e22871a0bbbb6cac725dd5
[ "MIT" ]
null
null
null
""" SoftLayer.tests.CLI.modules.user_tests ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Tests for the user cli command """ import json import sys import mock import testtools from SoftLayer import testing class UserCLITests(testing.TestCase): """User list tests""" def test_user_list(self): result = self.run_command(['user', 'list']) self.assert_no_fail(result) self.assert_called_with('SoftLayer_Account', 'getUsers') def test_user_list_only_id(self): result = self.run_command(['user', 'list', '--columns=id']) self.assert_no_fail(result) self.assertEqual([{"id": 11100}, {"id": 11111}], json.loads(result.output)) """User detail tests""" def test_detail(self): result = self.run_command(['user', 'detail', '11100']) self.assert_no_fail(result) self.assert_called_with('SoftLayer_User_Customer', 'getObject') def test_detail_keys(self): result = self.run_command(['user', 'detail', '11100', '-k']) self.assert_no_fail(result) self.assertIn('APIKEY', result.output) def test_detail_permissions(self): result = self.run_command(['user', 'detail', '11100', '-p']) self.assert_no_fail(result) self.assert_called_with('SoftLayer_User_Customer', 'getPermissions') self.assertIn('ACCESS_ALL_HARDWARE', result.output) def test_detail_hardware(self): result = self.run_command(['user', 'detail', '11100', '-h']) self.assert_no_fail(result) self.assert_called_with( 'SoftLayer_User_Customer', 'getObject', identifier=11100, mask='mask[id, hardware, dedicatedHosts]' ) def test_detail_virtual(self): result = self.run_command(['user', 'detail', '11100', '-v']) self.assert_no_fail(result) self.assert_called_with( 'SoftLayer_User_Customer', 'getObject', identifier=11100, mask='mask[id, virtualGuests]' ) def test_detail_logins(self): result = self.run_command(['user', 'detail', '11100', '-l']) self.assert_no_fail(result) self.assert_called_with( 'SoftLayer_User_Customer', 'getLoginAttempts', identifier=11100 ) def test_detail_events(self): result = self.run_command(['user', 'detail', '11100', '-e']) self.assert_no_fail(result) self.assert_called_with('SoftLayer_Event_Log', 'getAllObjects') def test_print_hardware_access(self): mock = self.set_mock('SoftLayer_User_Customer', 'getObject') mock.return_value = { 'accountId': 12345, 'address1': '315 Test Street', 'city': 'Houston', 'companyName': 'SoftLayer Development Community', 'country': 'US', 'displayName': 'Test', 'email': 'test@us.ibm.com', 'firstName': 'Test', 'id': 244956, 'lastName': 'Testerson', 'postalCode': '77002', 'state': 'TX', 'statusDate': None, 'hardware': [ {'id': 1234, 'fullyQualifiedDomainName': 'test.test.test', 'provisionDate': '2018-05-08T15:28:32-06:00', 'primaryBackendIpAddress': '175.125.126.118', 'primaryIpAddress': '175.125.126.118'} ], 'dedicatedHosts': [ {'id': 1234, 'fullyQualifiedDomainName': 'test.test.test', 'provisionDate': '2018-05-08T15:28:32-06:00', 'primaryBackendIpAddress': '175.125.126.118', 'primaryIpAddress': '175.125.126.118'} ], } result = self.run_command(['user', 'detail', '11100', '-h']) self.assert_no_fail(result) self.assert_called_with('SoftLayer_User_Customer', 'getObject', identifier=11100, mask="mask[id, hardware, dedicatedHosts]") """User permissions tests""" def test_permissions_list(self): result = self.run_command(['user', 'permissions', '11100']) self.assert_no_fail(result) self.assert_called_with('SoftLayer_User_Customer_CustomerPermission_Permission', 'getAllObjects') self.assert_called_with( 'SoftLayer_User_Customer', 'getObject', identifier=11100, mask='mask[id, permissions, isMasterUserFlag, roles]' ) """User edit-permissions tests""" def test_edit_perms_on(self): result = self.run_command(['user', 'edit-permissions', '11100', '--enable', '-p', 'TEST']) self.assert_no_fail(result) self.assert_called_with('SoftLayer_User_Customer', 'addBulkPortalPermission', identifier=11100) def test_edit_perms_on_bad(self): result = self.run_command(['user', 'edit-permissions', '11100', '--enable', '-p', 'TEST_NOt_exist']) self.assertEqual(result.exit_code, 1) def test_edit_perms_off(self): result = self.run_command(['user', 'edit-permissions', '11100', '--disable', '-p', 'TEST']) self.assert_no_fail(result) self.assert_called_with('SoftLayer_User_Customer', 'removeBulkPortalPermission', identifier=11100) @mock.patch('SoftLayer.CLI.user.edit_permissions.click') def test_edit_perms_off_failure(self, click): permission_mock = self.set_mock('SoftLayer_User_Customer', 'removeBulkPortalPermission') permission_mock.return_value = False result = self.run_command(['user', 'edit-permissions', '11100', '--disable', '-p', 'TEST']) click.secho.assert_called_with('Failed to update permissions: TEST', fg='red') self.assert_no_fail(result) self.assert_called_with('SoftLayer_User_Customer', 'removeBulkPortalPermission', identifier=11100) def test_edit_perms_from_user(self): result = self.run_command(['user', 'edit-permissions', '11100', '-u', '1234']) self.assert_no_fail(result) self.assert_called_with('SoftLayer_User_Customer', 'getPermissions', identifier=1234) self.assert_called_with('SoftLayer_User_Customer', 'removeBulkPortalPermission', identifier=11100) self.assert_called_with('SoftLayer_User_Customer', 'addBulkPortalPermission', identifier=11100) """User create tests""" @mock.patch('SoftLayer.CLI.formatting.confirm') def test_create_user(self, confirm_mock): confirm_mock.return_value = True result = self.run_command(['user', 'create', 'test', '-e', 'test@us.ibm.com', '-p', 'testword']) self.assert_no_fail(result) self.assertIn('test@us.ibm.com', result.output) self.assert_called_with('SoftLayer_Account', 'getCurrentUser') self.assert_called_with('SoftLayer_User_Customer', 'createObject', args=mock.ANY) @mock.patch('SoftLayer.CLI.formatting.confirm') def test_create_user_no_confirm(self, confirm_mock): confirm_mock.return_value = False result = self.run_command(['user', 'create', 'test', '-e', 'test@us.ibm.com', '-p', 'testword']) self.assertEqual(result.exit_code, 2) @testtools.skipIf(sys.version_info < (3, 6), "Secrets module only exists in version 3.6+") @mock.patch('secrets.choice') @mock.patch('SoftLayer.CLI.formatting.confirm') def test_create_user_generate_password_36(self, confirm_mock, secrets): secrets.return_value = 'Q' confirm_mock.return_value = True result = self.run_command(['user', 'create', 'test', '-e', 'test@us.ibm.com', '-p', 'generate']) self.assert_no_fail(result) self.assertIn('test@us.ibm.com', result.output) self.assertIn('QQQQQQQQQQQQQQQQQQQQQQ', result.output) self.assert_called_with('SoftLayer_Account', 'getCurrentUser') self.assert_called_with('SoftLayer_User_Customer', 'createObject', args=mock.ANY) @mock.patch('SoftLayer.CLI.formatting.confirm') def test_create_user_generate_password_2(self, confirm_mock): if sys.version_info >= (3, 6): self.skipTest("Python needs to be < 3.6 for this test.") confirm_mock.return_value = True result = self.run_command(['user', 'create', 'test', '-e', 'test@us.ibm.com', '-p', 'generate']) self.assertIn(result.output, "ImportError") @mock.patch('SoftLayer.CLI.formatting.confirm') def test_create_user_and_apikey(self, confirm_mock): confirm_mock.return_value = True result = self.run_command(['user', 'create', 'test', '-e', 'test@us.ibm.com', '-a']) self.assert_no_fail(result) self.assert_called_with('SoftLayer_User_Customer', 'addApiAuthenticationKey') @mock.patch('SoftLayer.CLI.formatting.confirm') def test_create_user_with_template(self, confirm_mock): confirm_mock.return_value = True result = self.run_command(['user', 'create', 'test', '-e', 'test@us.ibm.com', '-t', '{"firstName": "Supermand"}']) self.assertIn('Supermand', result.output) @mock.patch('SoftLayer.CLI.formatting.confirm') def test_create_user_with_bad_template(self, confirm_mock): confirm_mock.return_value = True result = self.run_command(['user', 'create', 'test', '-e', 'test@us.ibm.com', '-t', '{firstName: "Supermand"}']) self.assertIn("Argument Error", result.exception.message) self.assertEqual(result.exit_code, 2) @mock.patch('SoftLayer.CLI.formatting.confirm') def test_create_user_with_no_confirm(self, confirm_mock): confirm_mock.return_value = False result = self.run_command(['user', 'create', 'test', '-e', 'test@us.ibm.com']) self.assertIn("Canceling creation!", result.exception.message) self.assertEqual(result.exit_code, 2) @mock.patch('SoftLayer.CLI.formatting.confirm') def test_create_user_from_user(self, confirm_mock): confirm_mock.return_value = True result = self.run_command(['user', 'create', 'test', '-e', 'test@us.ibm.com', '-u', '1234']) self.assert_no_fail(result) self.assert_called_with('SoftLayer_User_Customer', 'getObject', identifier=1234) """User edit-details tests""" @mock.patch('SoftLayer.CLI.user.edit_details.click') def test_edit_details(self, click): result = self.run_command(['user', 'edit-details', '1234', '-t', '{"firstName":"Supermand"}']) click.secho.assert_called_with('1234 updated successfully', fg='green') self.assert_no_fail(result) self.assert_called_with('SoftLayer_User_Customer', 'editObject', args=({'firstName': 'Supermand'},), identifier=1234) @mock.patch('SoftLayer.CLI.user.edit_details.click') def test_edit_details_failure(self, click): mock = self.set_mock('SoftLayer_User_Customer', 'editObject') mock.return_value = False result = self.run_command(['user', 'edit-details', '1234', '-t', '{"firstName":"Supermand"}']) click.secho.assert_called_with('Failed to update 1234', fg='red') self.assert_no_fail(result) self.assert_called_with('SoftLayer_User_Customer', 'editObject', args=({'firstName': 'Supermand'},), identifier=1234) def test_edit_details_bad_json(self): result = self.run_command(['user', 'edit-details', '1234', '-t', '{firstName:"Supermand"}']) self.assertIn("Argument Error", result.exception.message) self.assertEqual(result.exit_code, 2) """User delete tests""" @mock.patch('SoftLayer.CLI.user.delete.click') def test_delete(self, click): result = self.run_command(['user', 'delete', '12345']) click.secho.assert_called_with('12345 deleted successfully', fg='green') self.assert_no_fail(result) self.assert_called_with('SoftLayer_User_Customer', 'editObject', args=({'userStatusId': 1021},), identifier=12345) @mock.patch('SoftLayer.CLI.user.delete.click') def test_delete_failure(self, click): mock = self.set_mock('SoftLayer_User_Customer', 'editObject') mock.return_value = False result = self.run_command(['user', 'delete', '12345']) click.secho.assert_called_with('Failed to delete 12345', fg='red') self.assert_no_fail(result) self.assert_called_with('SoftLayer_User_Customer', 'editObject', args=({'userStatusId': 1021},), identifier=12345) """User vpn manual config tests""" @mock.patch('SoftLayer.CLI.user.vpn_manual.click') def test_vpn_manual(self, click): result = self.run_command(['user', 'vpn-manual', '12345', '--enable']) click.secho.assert_called_with('12345 vpn manual config enable', fg='green') self.assert_no_fail(result) def test_vpn_manual_fail(self): mock = self.set_mock('SoftLayer_User_Customer', 'editObject') mock.return_value = False result = self.run_command(['user', 'vpn-manual', '12345', '--enable']) self.assert_no_fail(result) """User vpn subnet tests""" @mock.patch('SoftLayer.CLI.user.vpn_subnet.click') def test_vpn_subnet_add(self, click): result = self.run_command(['user', 'vpn-subnet', '12345', '--add', '1234']) click.secho.assert_called_with('12345 updated successfully', fg='green') self.assert_no_fail(result) def test_vpn_subnet_add_fail(self): mock = self.set_mock('SoftLayer_Network_Service_Vpn_Overrides', 'createObjects') mock.return_value = False result = self.run_command(['user', 'vpn-subnet', '12345', '--add', '1234']) self.assert_no_fail(result) @mock.patch('SoftLayer.CLI.user.vpn_subnet.click') def test_vpn_subnet_remove(self, click): result = self.run_command(['user', 'vpn-subnet', '12345', '--remove', '1234']) click.secho.assert_called_with('12345 updated successfully', fg='green') self.assert_no_fail(result)
45.529221
108
0.642017
1,625
14,023
5.299692
0.126154
0.067348
0.052833
0.081282
0.815258
0.791105
0.769275
0.737459
0.69798
0.684046
0
0.035242
0.206803
14,023
307
109
45.677524
0.739009
0.008985
0
0.506173
0
0
0.296294
0.122473
0
0
0
0
0.320988
1
0.144033
false
0.00823
0.024691
0
0.17284
0.004115
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
6f6783f46daa834a69277a8ccf80e0cd54b7891e
423
py
Python
npc_engine/services/__init__.py
npc-engine/npc-engine
0047794e96369c23515f794a1e77009c516a382c
[ "MIT" ]
12
2021-11-10T21:03:19.000Z
2022-03-21T21:55:34.000Z
npc_engine/services/__init__.py
npc-engine/npc-engine
0047794e96369c23515f794a1e77009c516a382c
[ "MIT" ]
1
2021-12-05T14:51:44.000Z
2021-12-05T14:51:44.000Z
npc_engine/services/__init__.py
npc-engine/npc-engine
0047794e96369c23515f794a1e77009c516a382c
[ "MIT" ]
null
null
null
"""Module that contains everything related to deep learning models. For your model API to be discovered it must be imported here """ from .base_service import BaseService # noqa: F401 from .tts import * # noqa: F401,F403 from .text_generation import * # noqa: F401,F403 from .similarity import * # noqa: F401,F403 from .stt import * # noqa: F401,F403 from .sequence_classifier import * # noqa: F401,F403
35.25
68
0.72104
60
423
5.033333
0.566667
0.15894
0.231788
0.298013
0.291391
0
0
0
0
0
0
0.097059
0.196217
423
11
69
38.454545
0.791176
0.515366
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
6f7453087a7b300d5a27b1ca5a97a9ec61c57068
401
py
Python
PAL/Cross/pupy/pupylib/utils/obfuscate.py
infosecsecurity/OSPTF
df3f63dc882db6d7e0b7bd80476e9bbc8471ac1f
[ "MIT" ]
2
2017-11-23T01:07:37.000Z
2021-06-25T05:03:49.000Z
PAL/Cross/pupy/pupylib/utils/obfuscate.py
infosecsecurity/OSPTF
df3f63dc882db6d7e0b7bd80476e9bbc8471ac1f
[ "MIT" ]
null
null
null
PAL/Cross/pupy/pupylib/utils/obfuscate.py
infosecsecurity/OSPTF
df3f63dc882db6d7e0b7bd80476e9bbc8471ac1f
[ "MIT" ]
1
2018-05-22T02:28:43.000Z
2018-05-22T02:28:43.000Z
#!/usr/bin/env python # -*- coding: UTF8 -*- # Copyright (c) 2015, Nicolas VERDIER (contact@n1nj4.eu) # Pupy is under the BSD 3-Clause license. see the LICENSE file at the root of the project for the detailed licence terms import base64, zlib def compress_encode_obfs(code): return "import base64,zlib;exec zlib.decompress(base64.b64decode(%s))"%repr(base64.b64encode(zlib.compress(code+"\n")))
40.1
123
0.740648
62
401
4.758065
0.774194
0.081356
0.108475
0
0
0
0
0
0
0
0
0.057307
0.129676
401
9
124
44.555556
0.787966
0.53616
0
0
0
0
0.348066
0.20442
0
0
0
0
0
1
0.333333
false
0
0.666667
0.333333
1.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
1
1
0
0
5
6f7944c73d8c30bce7b2ee2151efd46d9cfdc65e
114
py
Python
constants.py
gpi-yama/easy_enc_pswords
6b90dfb2c50eb1b6b40e20671b89c577e17bc8b5
[ "MIT" ]
null
null
null
constants.py
gpi-yama/easy_enc_pswords
6b90dfb2c50eb1b6b40e20671b89c577e17bc8b5
[ "MIT" ]
null
null
null
constants.py
gpi-yama/easy_enc_pswords
6b90dfb2c50eb1b6b40e20671b89c577e17bc8b5
[ "MIT" ]
null
null
null
# constants db_name = "cryptodb" salt = b'\x04\xa8y#AN\xba\xb0u\x0c\xd2\xbd"\x002pFWFEQvba[e021efg@fsa' BS = 32
16.285714
70
0.710526
19
114
4.210526
1
0
0
0
0
0
0
0
0
0
0
0.138614
0.114035
114
6
71
19
0.653465
0.078947
0
0
0
0.333333
0.666667
0.588235
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
1
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
48b2b4fb59af00312b03d9a20705becb6859407e
58
py
Python
08_metaclasses/08_plugins_on_demand.py
varshashivhare/Mastering-Python
6101fa7855e57d0bbd194e936084bd64d9d38d76
[ "MIT" ]
30
2016-10-28T18:14:15.000Z
2021-08-29T15:20:56.000Z
08_metaclasses/08_plugins_on_demand.py
varshashivhare/Mastering-Python
6101fa7855e57d0bbd194e936084bd64d9d38d76
[ "MIT" ]
null
null
null
08_metaclasses/08_plugins_on_demand.py
varshashivhare/Mastering-Python
6101fa7855e57d0bbd194e936084bd64d9d38d76
[ "MIT" ]
31
2016-09-10T22:47:12.000Z
2022-03-13T04:50:35.000Z
import plugins print(plugins.PluginsOnDemand.get('spam'))
19.333333
42
0.810345
7
58
6.714286
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.051724
58
2
43
29
0.854545
0
0
0
0
0
0.068966
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
48ef49e60b7105baea7a8756e4bc00bb6d0d8a7d
37
py
Python
test/tests/getattr_nonstring.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
1
2020-02-06T14:28:45.000Z
2020-02-06T14:28:45.000Z
test/tests/getattr_nonstring.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
test/tests/getattr_nonstring.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
1
2020-02-06T14:29:00.000Z
2020-02-06T14:29:00.000Z
# should_error print getattr([], [])
12.333333
21
0.648649
4
37
5.75
1
0
0
0
0
0
0
0
0
0
0
0
0.135135
37
2
22
18.5
0.71875
0.324324
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
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
1
0
0
0
0
0
0
1
0
5
5b0565dc8cb600449d2e692905b013a429a7f5cf
152
py
Python
awschecker/classes/__init__.py
raeq/awschecker
dc2c7bf15d7024c076dc54cb9a712468df84e1c1
[ "MIT" ]
null
null
null
awschecker/classes/__init__.py
raeq/awschecker
dc2c7bf15d7024c076dc54cb9a712468df84e1c1
[ "MIT" ]
null
null
null
awschecker/classes/__init__.py
raeq/awschecker
dc2c7bf15d7024c076dc54cb9a712468df84e1c1
[ "MIT" ]
null
null
null
#Default Init Pi from .certificate import AWSCertificate from .arn import AWSARN from .awsobject import AWSObject from .ec2_instance import EC2Instance
25.333333
39
0.842105
20
152
6.35
0.65
0
0
0
0
0
0
0
0
0
0
0.015038
0.125
152
5
40
30.4
0.93985
0.098684
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
5b15dfbb9357895e16f413f6eeb29777e23325db
1,173
py
Python
futures/workflows/extract.py
TristenHarr/api2db
8c8b14280441f5153ff146c23359a0eb91022ddb
[ "MIT" ]
45
2021-05-05T01:34:20.000Z
2021-11-02T08:41:34.000Z
futures/workflows/extract.py
TristenHarr/api2db
8c8b14280441f5153ff146c23359a0eb91022ddb
[ "MIT" ]
1
2021-06-02T11:43:33.000Z
2021-06-02T20:32:29.000Z
futures/workflows/extract.py
TristenHarr/api2db
8c8b14280441f5153ff146c23359a0eb91022ddb
[ "MIT" ]
3
2021-05-08T21:49:24.000Z
2021-05-13T23:14:09.000Z
# TODO: Extract Class """ The Extract class will support data transformations and will be subclassed to allow for data to be transformed in more complex ways. The Extract feature should have support to be placed ANYWHERE within the ApiForm and should follow a pub-sub type model I.e. Extract allows for real-time summaries and features to be extracted from the data. pre_process = [ . . SubclassExtractFeaturePublishLatLong( subpub_model="firestore", lam=lamdba x: [ x["data"]["lat"], x["data"]["long"] ], mode="summary", fmt_str="New data has been received with coordinates Lat: {} Long: {}" ) . . ] stores = [ . . SubclassExtractFeatureSummarizeAverage( subpub_model="redis", lam=lambda x: . . . ) ] """ class Extract(object): def __init__(self): pass
30.076923
119
0.477408
105
1,173
5.257143
0.666667
0.021739
0
0
0
0
0
0
0
0
0
0
0.45098
1,173
38
120
30.868421
0.857143
0.937766
0
0
0
0
0
0
0
0
0
0.026316
0
1
0.333333
false
0.333333
0
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
1
0
0
1
0
1
0
0
1
0
0
5
5b16e9f488c9006983b781627943a12cb183edd6
101
py
Python
delivery/delivery/ext/toolbar/__init__.py
arilsonsouza/curso-flask
932f4efa2cb8cbdfb24f0c4f3fe09fb1692be89f
[ "Unlicense" ]
null
null
null
delivery/delivery/ext/toolbar/__init__.py
arilsonsouza/curso-flask
932f4efa2cb8cbdfb24f0c4f3fe09fb1692be89f
[ "Unlicense" ]
null
null
null
delivery/delivery/ext/toolbar/__init__.py
arilsonsouza/curso-flask
932f4efa2cb8cbdfb24f0c4f3fe09fb1692be89f
[ "Unlicense" ]
null
null
null
from flask_debugtoolbar import DebugToolbarExtension def init_app(app): DebugToolbarExtension(app)
20.2
52
0.861386
11
101
7.727273
0.727273
0
0
0
0
0
0
0
0
0
0
0
0.089109
101
4
53
25.25
0.923913
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
0
1
0
0
5
d29215eb2169816ff9d638f1e6dc92f1f7159c4c
344
py
Python
Windy World Experiment/a4code/utils.py
yfe3/Intelligent-Systems
14c22e144e1a7f8625b2ff3f63e9c0545f946f69
[ "MIT" ]
1
2019-11-18T03:34:55.000Z
2019-11-18T03:34:55.000Z
proto4/utils.py
Ravenshard/AI_Dominion
8def66aa8575ebc7c46d02f4797a50f603f64630
[ "Apache-2.0" ]
null
null
null
proto4/utils.py
Ravenshard/AI_Dominion
8def66aa8575ebc7c46d02f4797a50f603f64630
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ """ import numpy.random as rnd def rand_in_range(max): # returns integer, max: integer return rnd.randint(max) def rand_un(): # returns floating point return rnd.uniform() def rand_norm (mu, sigma): # returns floating point, mu: floating point, sigma: floating point return rnd.normal(mu, sigma)
20.235294
94
0.694767
50
344
4.7
0.52
0.221277
0.170213
0.187234
0
0
0
0
0
0
0
0
0.186047
344
16
95
21.5
0.839286
0.40407
0
0
0
0
0
0
0
0
0
0
0
1
0.428571
false
0
0.142857
0.428571
1
0
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
d2b55d989e26afe83701d029fe8a984401df4140
93
py
Python
src/webscrapper/unittest/page.py
sergiohgp/COVID_webscrapping
a1899c8af4f869db116d67844b9ec38aa0a15d8f
[ "MIT" ]
null
null
null
src/webscrapper/unittest/page.py
sergiohgp/COVID_webscrapping
a1899c8af4f869db116d67844b9ec38aa0a15d8f
[ "MIT" ]
null
null
null
src/webscrapper/unittest/page.py
sergiohgp/COVID_webscrapping
a1899c8af4f869db116d67844b9ec38aa0a15d8f
[ "MIT" ]
null
null
null
class BasePage(object): def __init__(self, driver) -> None: self.driver = driver
23.25
39
0.645161
11
93
5.090909
0.727273
0.357143
0
0
0
0
0
0
0
0
0
0
0.236559
93
3
40
31
0.788732
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.666667
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
5
d2cab193fecd720d014af32cce89295b7d25a0ef
504
py
Python
units/angle/milliradians.py
putridparrot/PyUnits
4f1095c6fc0bee6ba936921c391913dbefd9307c
[ "MIT" ]
null
null
null
units/angle/milliradians.py
putridparrot/PyUnits
4f1095c6fc0bee6ba936921c391913dbefd9307c
[ "MIT" ]
null
null
null
units/angle/milliradians.py
putridparrot/PyUnits
4f1095c6fc0bee6ba936921c391913dbefd9307c
[ "MIT" ]
null
null
null
# <auto-generated> # This code was generated by the UnitCodeGenerator tool # # Changes to this file will be lost if the code is regenerated # </auto-generated> from math import pi def to_degrees(value): return value * 180.0/(1000.0 * pi) def to_radians(value): return value / 1000.0 def to_gradians(value): return value * 200.0/(1000.0 * pi) def to_minute_of_arc(value): return value * (60.0 * 180.0)/(1000.0 * pi) def to_seconds_of_arc(value): return value * (3600.0 * 180.0)/(1000.0 * pi)
25.2
62
0.700397
88
504
3.909091
0.431818
0.072674
0.232558
0.093023
0.290698
0.168605
0.093023
0
0
0
0
0.117225
0.170635
504
19
63
26.526316
0.705742
0.295635
0
0
1
0
0
0
0
0
0
0
0
1
0.454545
false
0
0.090909
0.454545
1
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
d2e25636fdccd57b666f5742dd072225b6b8cd65
129
py
Python
ros_ws/src/baxter_examples/src/baxter_external_devices/__init__.py
mesneym/Baxter-Arm-PP
fdbf86309bc64c31af105daa026b2f8519710129
[ "MIT" ]
null
null
null
ros_ws/src/baxter_examples/src/baxter_external_devices/__init__.py
mesneym/Baxter-Arm-PP
fdbf86309bc64c31af105daa026b2f8519710129
[ "MIT" ]
null
null
null
ros_ws/src/baxter_examples/src/baxter_external_devices/__init__.py
mesneym/Baxter-Arm-PP
fdbf86309bc64c31af105daa026b2f8519710129
[ "MIT" ]
null
null
null
version https://git-lfs.github.com/spec/v1 oid sha256:661fef91feccef053ba69037052e0c047a83edcdb2d8dec045f50fb8eba4e4e1 size 1668
32.25
75
0.883721
13
129
8.769231
1
0
0
0
0
0
0
0
0
0
0
0.333333
0.046512
129
3
76
43
0.593496
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
d2ece9952bda3d3eb9297dd1ab03b3b0936a9966
33
py
Python
run.py
znsoooo/IDLE-Advance
cd52a2b0c7e4672884745df51a15e86fe77c2382
[ "MIT" ]
4
2021-06-09T12:18:01.000Z
2021-11-02T13:57:26.000Z
run.py
znsoooo/IDLE-Advance
cd52a2b0c7e4672884745df51a15e86fe77c2382
[ "MIT" ]
null
null
null
run.py
znsoooo/IDLE-Advance
cd52a2b0c7e4672884745df51a15e86fe77c2382
[ "MIT" ]
null
null
null
import idlealib idlealib.run()
11
16
0.757576
4
33
6.25
0.75
0
0
0
0
0
0
0
0
0
0
0
0.151515
33
2
17
16.5
0.892857
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
d2fe3fd6d3fe626c48ecdf96af2e80a272755a7d
302
py
Python
1041 - Coordinates of a Point.py
Shah-Shishir/URI-Solutions
fde523e7eefc58e2c319ca1d83c2626e86e12e05
[ "Apache-2.0" ]
null
null
null
1041 - Coordinates of a Point.py
Shah-Shishir/URI-Solutions
fde523e7eefc58e2c319ca1d83c2626e86e12e05
[ "Apache-2.0" ]
null
null
null
1041 - Coordinates of a Point.py
Shah-Shishir/URI-Solutions
fde523e7eefc58e2c319ca1d83c2626e86e12e05
[ "Apache-2.0" ]
null
null
null
x,y = input().split() x,y = [float(x),float(y)] if x == y == 0: print("Origem") elif x == 0: print("Eixo Y") elif y == 0: print("Eixo X") elif x > 0 and y > 0: print("Q1") elif x < 0 and y > 0: print("Q2") elif x < 0 and y < 0: print("Q3") else: print("Q4")
17.764706
26
0.460265
55
302
2.527273
0.309091
0.258993
0.251799
0.194245
0.345324
0.345324
0.345324
0
0
0
0
0.063725
0.324503
302
16
27
18.875
0.617647
0
0
0
0
0
0.090909
0
0
0
0
0
0
1
0
true
0
0
0
0
0.4375
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
5
961299f791981c36b902c7a0c491fcb1513c76cc
39
py
Python
utils/__init__.py
seen-idc/image-gen
025257cde07579a634aaefca1e17482f3c02ad45
[ "MIT" ]
null
null
null
utils/__init__.py
seen-idc/image-gen
025257cde07579a634aaefca1e17482f3c02ad45
[ "MIT" ]
null
null
null
utils/__init__.py
seen-idc/image-gen
025257cde07579a634aaefca1e17482f3c02ad45
[ "MIT" ]
null
null
null
from .get import * from .masks import *
19.5
20
0.717949
6
39
4.666667
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.179487
39
2
20
19.5
0.875
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
9623fc8fc984e4a196afb81bba407f6f0a5d7873
31
py
Python
src/binance/order/base.py
rvillebro/binance
1b92a35f8deb00afb904b4c25e84be064f1b07ca
[ "MIT" ]
5
2021-11-02T10:16:38.000Z
2022-01-28T21:39:41.000Z
src/binance/order/base.py
rvillebro/binance
1b92a35f8deb00afb904b4c25e84be064f1b07ca
[ "MIT" ]
null
null
null
src/binance/order/base.py
rvillebro/binance
1b92a35f8deb00afb904b4c25e84be064f1b07ca
[ "MIT" ]
null
null
null
""" """ class Order: pass
5.166667
12
0.451613
3
31
4.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.322581
31
6
13
5.166667
0.666667
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
826990f6467b5509423322eba6cd81566e5113ed
13,972
py
Python
SBaaS_quantification/stage01_quantification_averages_query.py
dmccloskey/SBaaS_quantification
b2a9c7a9a0d318f22ff20e311f94c213852ba914
[ "MIT" ]
null
null
null
SBaaS_quantification/stage01_quantification_averages_query.py
dmccloskey/SBaaS_quantification
b2a9c7a9a0d318f22ff20e311f94c213852ba914
[ "MIT" ]
null
null
null
SBaaS_quantification/stage01_quantification_averages_query.py
dmccloskey/SBaaS_quantification
b2a9c7a9a0d318f22ff20e311f94c213852ba914
[ "MIT" ]
null
null
null
#lims from SBaaS_LIMS.lims_experiment_postgresql_models import * from SBaaS_LIMS.lims_sample_postgresql_models import * from .stage01_quantification_averages_postgresql_models import * from SBaaS_base.sbaas_base_query_update import sbaas_base_query_update from SBaaS_base.sbaas_base_query_drop import sbaas_base_query_drop from SBaaS_base.sbaas_base_query_initialize import sbaas_base_query_initialize from SBaaS_base.sbaas_base_query_insert import sbaas_base_query_insert from SBaaS_base.sbaas_base_query_select import sbaas_base_query_select from SBaaS_base.sbaas_base_query_delete import sbaas_base_query_delete from SBaaS_base.sbaas_template_query import sbaas_template_query class stage01_quantification_averages_query(sbaas_template_query): def initialize_supportedTables(self): '''Set the supported tables dict for ''' tables_supported = {'data_stage01_quantification_averagesmi':data_stage01_quantification_averagesMI, 'data_stage01_quantification_averagesmigeo':data_stage01_quantification_averagesMIgeo, }; self.set_supportedTables(tables_supported); # Query data from data_stage01_quantification_averagesMI: def get_concentrations_experimentIDAndSampleNameAbbreviationAndTimePoint_dataStage01AveragesMI(self, experiment_id_I, sample_name_abbreviation_I, time_point_I): """get data from experiment ID, sample name abbreviation, and time point""" try: data = self.session.query(data_stage01_quantification_averagesMI.calculated_concentration_average, data_stage01_quantification_averagesMI.calculated_concentration_cv, data_stage01_quantification_averagesMI.calculated_concentration_units, data_stage01_quantification_averagesMI.component_group_name).filter( data_stage01_quantification_averagesMI.experiment_id.like(experiment_id_I), data_stage01_quantification_averagesMI.sample_name_abbreviation.like(sample_name_abbreviation_I), data_stage01_quantification_averagesMI.time_point.like(time_point_I), data_stage01_quantification_averagesMI.used_.is_(True)).all(); data_O = {}; for d in data: data_O[d.component_group_name] = {'concentration':d.calculated_concentration_average, 'concentration_cv':d.calculated_concentration_cv, 'concentration_units':d.calculated_concentration_units}; return data_O; except SQLAlchemyError as e: print(e); # Query sample names from data_stage01_quantification_averagesMIgeo: def get_sampleNameAbbreviations_experimentIDAndTimePointAndComponentName_dataStage01AveragesMIgeo(self,experiment_id_I,time_point_I,component_name_I): '''Querry sample names (i.e. unknowns) that are used from the experiment''' try: sample_names = self.session.query(data_stage01_quantification_averagesMIgeo.sample_name_abbreviation).filter( data_stage01_quantification_averagesMIgeo.experiment_id.like(experiment_id_I), data_stage01_quantification_averagesMIgeo.time_point.like(time_point_I), data_stage01_quantification_averagesMIgeo.component_name.like(component_name_I), data_stage01_quantification_averagesMIgeo.used_.is_(True)).group_by( data_stage01_quantification_averagesMIgeo.sample_name_abbreviation).order_by( data_stage01_quantification_averagesMIgeo.sample_name_abbreviation.asc()).all(); sample_names_O = []; for sn in sample_names: sample_names_O.append(sn.sample_name_abbreviation); return sample_names_O; except SQLAlchemyError as e: print(e); # Query data from data_stage01_quantification_averagesMIgeo: def get_concentrations_experimentIDAndSampleNameAbbreviationAndTimePoint_dataStage01AveragesMIgeo(self, experiment_id_I, sample_name_abbreviation_I, time_point_I): """get data from experiment ID, sample name abbreviation, and time point""" try: data = self.session.query(data_stage01_quantification_averagesMIgeo.calculated_concentration_average, data_stage01_quantification_averagesMIgeo.calculated_concentration_var, data_stage01_quantification_averagesMIgeo.calculated_concentration_lb, data_stage01_quantification_averagesMIgeo.calculated_concentration_ub, data_stage01_quantification_averagesMIgeo.calculated_concentration_units, data_stage01_quantification_averagesMIgeo.component_group_name).filter( data_stage01_quantification_averagesMIgeo.experiment_id.like(experiment_id_I), data_stage01_quantification_averagesMIgeo.sample_name_abbreviation.like(sample_name_abbreviation_I), data_stage01_quantification_averagesMIgeo.time_point.like(time_point_I), data_stage01_quantification_averagesMIgeo.used_.is_(True)).all(); data_O = {}; for d in data: data_O[d.component_group_name] = {'concentration':d.calculated_concentration_average, 'concentration_var':d.calculated_concentration_var, 'concentration_lb':d.calculated_concentration_lb, 'concentration_ub':d.calculated_concentration_ub, 'concentration_units':d.calculated_concentration_units}; return data_O; except SQLAlchemyError as e: print(e); def get_data_experimentIDAndSampleNameAbbreviationAndTimePointAndComponentName_dataStage01AveragesMIgeo(self, experiment_id_I, sample_name_abbreviation_I, time_point_I, component_name_I): """get data from experiment ID, sample name abbreviation, and time point""" try: data = self.session.query(data_stage01_quantification_averagesMIgeo).filter( data_stage01_quantification_averagesMIgeo.experiment_id.like(experiment_id_I), data_stage01_quantification_averagesMIgeo.sample_name_abbreviation.like(sample_name_abbreviation_I), data_stage01_quantification_averagesMIgeo.component_name.like(component_name_I), data_stage01_quantification_averagesMIgeo.time_point.like(time_point_I), data_stage01_quantification_averagesMIgeo.used_.is_(True)).all(); data_O = {}; if data: data_O={"experiment_id":data[0].experiment_id, "sample_name_abbreviation":data[0].sample_name_abbreviation, "time_point":data[0].time_point, "component_group_name":data[0].component_group_name, "component_name":data[0].component_name, "calculated_concentration_average":data[0].calculated_concentration_average, "calculated_concentration_var":data[0].calculated_concentration_var, "calculated_concentration_lb":data[0].calculated_concentration_lb, "calculated_concentration_ub":data[0].calculated_concentration_ub, "calculated_concentration_units":data[0].calculated_concentration_units, "used_":data[0].used_}; return data_O; except SQLAlchemyError as e: print(e); # Query time points from data_stage01_quantification_averagesMIgeo def get_timePoint_experimentID_dataStage01AveragesMIgeo(self,experiment_id_I): '''Querry time points that are used from the experiment''' try: time_points = self.session.query(data_stage01_quantification_averagesMIgeo.time_point).filter( data_stage01_quantification_averagesMIgeo.experiment_id.like(experiment_id_I), data_stage01_quantification_averagesMIgeo.used_.is_(True)).group_by( data_stage01_quantification_averagesMIgeo.time_point).order_by( data_stage01_quantification_averagesMIgeo.time_point.asc()).all(); time_points_O = []; for tp in time_points: time_points_O.append(tp.time_point); return time_points_O; except SQLAlchemyError as e: print(e); def get_timePoint_experimentIDAndComponentName_dataStage01AveragesMIgeo(self,experiment_id_I,component_name_I): '''Querry time points that are used from the experiment''' try: time_points = self.session.query(data_stage01_quantification_averagesMIgeo.time_point).filter( data_stage01_quantification_averagesMIgeo.experiment_id.like(experiment_id_I), data_stage01_quantification_averagesMIgeo.component_name.like(component_name_I), data_stage01_quantification_averagesMIgeo.used_.is_(True)).group_by( data_stage01_quantification_averagesMIgeo.time_point).order_by( data_stage01_quantification_averagesMIgeo.time_point.asc()).all(); time_points_O = []; for tp in time_points: time_points_O.append(tp.time_point); return time_points_O; except SQLAlchemyError as e: print(e); # Query component names from data_stage01_quantification_averagesMIgeo: def get_componentNames_experimentIDAndTimePoint_dataStage01AveragesMIgeo(self,experiment_id_I,time_point_I): '''Querry component Names that are used from the experiment''' try: component_names = self.session.query(data_stage01_quantification_averagesMIgeo.component_name).filter( data_stage01_quantification_averagesMIgeo.experiment_id.like(experiment_id_I), data_stage01_quantification_averagesMIgeo.time_point.like(time_point_I), data_stage01_quantification_averagesMIgeo.used_.is_(True)).group_by( data_stage01_quantification_averagesMIgeo.component_name).order_by( data_stage01_quantification_averagesMIgeo.component_name.asc()).all(); component_names_O = []; for cn in component_names: component_names_O.append(cn.component_name); return component_names_O; except SQLAlchemyError as e: print(e); def get_componentNames_experimentID_dataStage01AveragesMIgeo(self,experiment_id_I): '''Querry component Names that are used from the experiment''' try: component_names = self.session.query(data_stage01_quantification_averagesMIgeo.component_name).filter( data_stage01_quantification_averagesMIgeo.experiment_id.like(experiment_id_I), data_stage01_quantification_averagesMIgeo.used_.is_(True)).group_by( data_stage01_quantification_averagesMIgeo.component_name).order_by( data_stage01_quantification_averagesMIgeo.component_name.asc()).all(); component_names_O = []; for cn in component_names: component_names_O.append(cn.component_name); return component_names_O; except SQLAlchemyError as e: print(e); def reset_dataStage01_quantification_averagesMI(self,experiment_id_I): try: if experiment_id_I: reset = self.session.query(data_stage01_quantification_averagesMI).filter(data_stage01_quantification_averagesMI.experiment_id.like(experiment_id_I)).delete(synchronize_session=False); reset = self.session.query(data_stage01_quantification_averagesMIgeo).filter(data_stage01_quantification_averagesMIgeo.experiment_id.like(experiment_id_I)).delete(synchronize_session=False); self.session.commit(); except SQLAlchemyError as e: print(e); def drop_dataStage01_quantification_averagesMI(self): try: data_stage01_quantification_averagesMI.__table__.drop(self.engine,True); data_stage01_quantification_averagesMIgeo.__table__.drop(self.engine,True); except SQLAlchemyError as e: print(e); def initialize_dataStage01_quantification_averagesMI(self): try: data_stage01_quantification_averagesMI.__table__.create(self.engine,True); data_stage01_quantification_averagesMIgeo.__table__.create(self.engine,True); except SQLAlchemyError as e: print(e); # Query data from data_stage01_quantification_averagesMIgeo: def get_rows_experimentID_dataStage01AveragesMIgeo(self, experiment_id_I): """get data from experiment ID""" try: data = self.session.query(data_stage01_quantification_averagesMIgeo).filter( data_stage01_quantification_averagesMIgeo.experiment_id.like(experiment_id_I), data_stage01_quantification_averagesMIgeo.used_.is_(True)).all(); data_O = []; for d in data: data_O.append({"experiment_id":d.experiment_id, "sample_name_abbreviation":d.sample_name_abbreviation, "time_point":d.time_point, "component_group_name":d.component_group_name, "component_name":d.component_name, "n_replicates":d.n_replicates, "calculated_concentration_average":d.calculated_concentration_average, "calculated_concentration_var":d.calculated_concentration_var, "calculated_concentration_lb":d.calculated_concentration_lb, "calculated_concentration_ub":d.calculated_concentration_ub, "calculated_concentration_units":d.calculated_concentration_units, "used_":d.used_}) return data_O; except SQLAlchemyError as e: print(e);
66.218009
206
0.713212
1,457
13,972
6.368566
0.073439
0.172001
0.199375
0.241621
0.837051
0.791572
0.648777
0.598556
0.547365
0.531631
0
0.017211
0.222373
13,972
211
207
66.218009
0.836723
0.027197
0
0.543011
0
0
0.052489
0.032034
0
0
0
0
0
0
null
null
0
0.053763
null
null
0.064516
0
0
0
null
0
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
5
82798271a1ea72551611035a6d059312b855bfe7
145
py
Python
me_group/me_group/doctype/construction/test_construction.py
Eng-Mohanad-Alkrunz/me_group
8311f034a79c1b75c03a4b6be0b1a726b07a9d95
[ "MIT" ]
null
null
null
me_group/me_group/doctype/construction/test_construction.py
Eng-Mohanad-Alkrunz/me_group
8311f034a79c1b75c03a4b6be0b1a726b07a9d95
[ "MIT" ]
null
null
null
me_group/me_group/doctype/construction/test_construction.py
Eng-Mohanad-Alkrunz/me_group
8311f034a79c1b75c03a4b6be0b1a726b07a9d95
[ "MIT" ]
null
null
null
# Copyright (c) 2022, test and Contributors # See license.txt # import frappe import unittest class TestConstruction(unittest.TestCase): pass
16.111111
43
0.77931
18
145
6.277778
0.888889
0
0
0
0
0
0
0
0
0
0
0.032258
0.144828
145
8
44
18.125
0.879032
0.489655
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
827d077ad8585f9123f5e263a5ae2acf82e81015
58
py
Python
data_loader/__init__.py
arslansadiq/Combustion-Model
a193008f4285d792662155675ed75dcff1add61c
[ "MIT" ]
3
2019-03-26T14:12:10.000Z
2020-08-11T05:14:08.000Z
data_loader/__init__.py
arslansadiq/Combustion-Model
a193008f4285d792662155675ed75dcff1add61c
[ "MIT" ]
null
null
null
data_loader/__init__.py
arslansadiq/Combustion-Model
a193008f4285d792662155675ed75dcff1add61c
[ "MIT" ]
1
2019-03-12T19:28:49.000Z
2019-03-12T19:28:49.000Z
from .data_loaders import * from .combustion_data import *
29
30
0.810345
8
58
5.625
0.625
0
0
0
0
0
0
0
0
0
0
0
0.12069
58
2
30
29
0.882353
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
82b9474d9e6cf2129ed89afb07d2af86d8f7760b
207
py
Python
simple_machine_learning_models/models/decision_tree/__init__.py
lnblanke/OCR
b235faa85fedd9f764f71ea592e8693a2a7ac42a
[ "MIT" ]
null
null
null
simple_machine_learning_models/models/decision_tree/__init__.py
lnblanke/OCR
b235faa85fedd9f764f71ea592e8693a2a7ac42a
[ "MIT" ]
null
null
null
simple_machine_learning_models/models/decision_tree/__init__.py
lnblanke/OCR
b235faa85fedd9f764f71ea592e8693a2a7ac42a
[ "MIT" ]
null
null
null
# @Time: 10/7/2021 # @Author: lnblanke # @Email: fjh314.84@gmail.com # @File: __init__.py from .DecisionTreeClassifier import DecisionTreeClassifier from .DecisionTreeRegressor import DecisionTreeRegressor
25.875
58
0.801932
22
207
7.363636
0.818182
0
0
0
0
0
0
0
0
0
0
0.064516
0.101449
207
7
59
29.571429
0.806452
0.391304
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
7d6090e3bde547e2b4d512290b5dd1cc9f81a8a8
232
py
Python
session_keeper/storage/__init__.py
DavisDmitry/tg-session-keeper
26467fef4419405137cf2a0b057414de8465d654
[ "MIT" ]
14
2021-04-03T16:32:08.000Z
2022-03-16T23:36:13.000Z
session_keeper/storage/__init__.py
DavisDmitry/tg-session-keeper
26467fef4419405137cf2a0b057414de8465d654
[ "MIT" ]
11
2021-06-11T17:41:47.000Z
2022-03-28T18:20:08.000Z
session_keeper/storage/__init__.py
DavisDmitry/tg-session-keeper
26467fef4419405137cf2a0b057414de8465d654
[ "MIT" ]
5
2021-06-11T17:43:33.000Z
2022-02-21T19:23:31.000Z
from .abstract import AbstractStorage from .ejs import EncryptedJsonStorage from .exceptions import ( InvalidPassword, MismatchedVersionError, StorageNotFound, StorageSettedError, ) from .memory import MemoryStorage
23.2
37
0.797414
19
232
9.736842
0.684211
0
0
0
0
0
0
0
0
0
0
0
0.159483
232
9
38
25.777778
0.948718
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.111111
0.444444
0
0.444444
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
7d75a1d5103705713f7ac12cc9e1d2b32a3deab0
2,230
py
Python
DNS_Netassay/netassay_python_fullscript.py
jkim117/IWSpring2020
3ca93768cd94487223168a76381cfd779bbc3b80
[ "MIT" ]
1
2020-03-03T14:33:49.000Z
2020-03-03T14:33:49.000Z
DNS_Netassay/netassay_python_fullscript.py
jkim117/IWSpring2020
3ca93768cd94487223168a76381cfd779bbc3b80
[ "MIT" ]
null
null
null
DNS_Netassay/netassay_python_fullscript.py
jkim117/IWSpring2020
3ca93768cd94487223168a76381cfd779bbc3b80
[ "MIT" ]
1
2020-04-07T18:28:48.000Z
2020-04-07T18:28:48.000Z
import os fileNames = [ 'p4netassay_15mins_20200407T1504_ontasanony_dedupped_sliced_00000_20200407150432.pcap', 'p4netassay_15mins_20200407T1504_ontasanony_dedupped_sliced_00001_20200407150517.pcap', 'p4netassay_15mins_20200407T1504_ontasanony_dedupped_sliced_00002_20200407150602.pcap', 'p4netassay_15mins_20200407T1504_ontasanony_dedupped_sliced_00003_20200407150647.pcap', 'p4netassay_15mins_20200407T1504_ontasanony_dedupped_sliced_00004_20200407150732.pcap', 'p4netassay_15mins_20200407T1504_ontasanony_dedupped_sliced_00005_20200407150817.pcap', 'p4netassay_15mins_20200407T1504_ontasanony_dedupped_sliced_00006_20200407150902.pcap', 'p4netassay_15mins_20200407T1504_ontasanony_dedupped_sliced_00007_20200407150947.pcap', 'p4netassay_15mins_20200407T1504_ontasanony_dedupped_sliced_00008_20200407151032.pcap', 'p4netassay_15mins_20200407T1504_ontasanony_dedupped_sliced_00009_20200407151117.pcap', 'p4netassay_15mins_20200407T1504_ontasanony_dedupped_sliced_00010_20200407151202.pcap', 'p4netassay_15mins_20200407T1504_ontasanony_dedupped_sliced_00011_20200407151247.pcap', 'p4netassay_15mins_20200407T1504_ontasanony_dedupped_sliced_00012_20200407151332.pcap', 'p4netassay_15mins_20200407T1504_ontasanony_dedupped_sliced_00013_20200407151417.pcap', 'p4netassay_15mins_20200407T1504_ontasanony_dedupped_sliced_00014_20200407151502.pcap', 'p4netassay_15mins_20200407T1504_ontasanony_dedupped_sliced_00015_20200407151547.pcap', 'p4netassay_15mins_20200407T1504_ontasanony_dedupped_sliced_00016_20200407151632.pcap', 'p4netassay_15mins_20200407T1504_ontasanony_dedupped_sliced_00017_20200407151717.pcap', 'p4netassay_15mins_20200407T1504_ontasanony_dedupped_sliced_00018_20200407151802.pcap', 'p4netassay_15mins_20200407T1504_ontasanony_dedupped_sliced_00019_20200407151847.pcap', 'p4netassay_15mins_20200407T1504_ontasanony_dedupped_sliced_00020_20200407151932.pcap'] filePath = '/n/fs/p4netassay/data/new_trace/sliced/' outFile = open('output_netassay_python.txt', 'w') i = 0 for f in fileNames: print(f) res = os.popen('python3 netassay_python3.py ' + filePath + f + ' wildcard_knownlist.txt allowed_dns_dst.txt banned_dns_dst.txt ' + str(i)).read() outFile.write(res + '\n') i += 1 outFile.close()
58.684211
149
0.895964
246
2,230
7.487805
0.349594
0.18241
0.330619
0.444625
0.647666
0.647666
0.618893
0
0
0
0
0.335981
0.040359
2,230
37
150
60.27027
0.524766
0
0
0
0
0
0.862332
0.830045
0
0
0
0
0
1
0
false
0
0.03125
0
0.03125
0.03125
0
0
0
null
0
1
1
0
0
0
0
0
0
0
1
0
0
0
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
81647095411f8836fd8f65ac9aafa9c53dbe76d3
730
py
Python
users/api/serializers/__init__.py
heolin123/funcrowd
20167783de208394c09ed0429a5f02ec6dd79c42
[ "MIT" ]
null
null
null
users/api/serializers/__init__.py
heolin123/funcrowd
20167783de208394c09ed0429a5f02ec6dd79c42
[ "MIT" ]
11
2019-11-12T23:26:45.000Z
2021-06-10T17:37:23.000Z
users/api/serializers/__init__.py
heolin123/funcrowd
20167783de208394c09ed0429a5f02ec6dd79c42
[ "MIT" ]
null
null
null
from users.api.serializers.end_worker import ( EndWorkerSerializer, EndWorkerSimpleSerializer, EndWorkerStatusSerializer, ) from users.api.serializers.auth import ( EndWorkerLoginSerializer, EndWorkerRegistrationSerializer, EndWorkerTokenLoginSerializer, EndWorkerEmailInfoSerializer, EndWorkerUsernameInfoSerializer ) from users.api.serializers.mturk import MturkRegistrationSerializer from users.api.serializers.change_password import ChangePasswordSerializer from users.api.serializers.reset_password import ResetPasswordTokenSerializer from users.api.serializers.activation_token import ActivationTokenSerializer from users.api.serializers.change_settings import ChangeSettingsSerializer
30.416667
77
0.852055
60
730
10.283333
0.466667
0.102107
0.136143
0.26094
0.094003
0
0
0
0
0
0
0
0.10411
730
24
78
30.416667
0.943425
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.117647
0.411765
0
0.411765
0
0
0
1
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
0
0
0
5
819eb5df76e169d6300c0b1a02859a141512315a
291
py
Python
visualization/eolearn/visualization/__init__.py
rpitonak/eo-learn
246616903c600f9d85d8d7bfcaef3785356b9fd1
[ "MIT" ]
1
2020-08-30T12:40:50.000Z
2020-08-30T12:40:50.000Z
visualization/eolearn/visualization/__init__.py
rpitonak/eo-learn
246616903c600f9d85d8d7bfcaef3785356b9fd1
[ "MIT" ]
null
null
null
visualization/eolearn/visualization/__init__.py
rpitonak/eo-learn
246616903c600f9d85d8d7bfcaef3785356b9fd1
[ "MIT" ]
null
null
null
""" A collection of visualization utilities """ from .eoworkflow_visualization import EOWorkflowVisualization from .eoexecutor_visualization import EOExecutorVisualization try: from .eopatch_visualization import EOPatchVisualization except ImportError: pass __version__ = '0.7.6'
20.785714
61
0.817869
28
291
8.25
0.75
0.246753
0
0
0
0
0
0
0
0
0
0.011811
0.127148
291
13
62
22.384615
0.897638
0.134021
0
0
0
0
0.020492
0
0
0
0
0
0
1
0
false
0.142857
0.571429
0
0.571429
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
1
0
0
5
c4ad3a7753b52c275d4ced23c1d52d92a32c535a
9,362
py
Python
app/email.py
KaviMD/ppe-exchange
0ea53f331137f9e0c3385d28f6e934aa6e01e8e6
[ "MIT" ]
null
null
null
app/email.py
KaviMD/ppe-exchange
0ea53f331137f9e0c3385d28f6e934aa6e01e8e6
[ "MIT" ]
8
2020-05-11T17:41:29.000Z
2021-01-19T06:33:47.000Z
app/email.py
KaviMD/ppe-exchange
0ea53f331137f9e0c3385d28f6e934aa6e01e8e6
[ "MIT" ]
1
2020-06-12T18:22:23.000Z
2020-06-12T18:22:23.000Z
from flask_mail import Message from flask import render_template from app import mail from app import app def send_user_verification(username, auth_key, hostname, email): url = "http://"+hostname + "/verify?key="+auth_key msg = Message(subject="PPE Exchange User Verification", sender=app.config.get("MAIL_USERNAME"), recipients=[email], body="Click this link to set the admin password for PPE Exchange \n"+url, html=render_template("email_verify_user.html", username=username, link=url)) mail.send(msg) def send_hospital_exchange_creation(username, hostname, email, exchange_id): url = "http://"+hostname + "/index" text1="A new PPE exchange (exchange #" + exchange_id + ") was created for your hospital." text2="and verify your hospital's participation in the exchange." msg = Message(subject="PPE Exchange - New Exchange Created", sender=app.config.get("MAIL_USERNAME"), recipients=[email], body=" ", html=render_template("email_exchange.html", username=username, link=url, linking=True, id=exchange_id, text1=text1, text2=text2)) mail.send(msg) def send_hospital_exchange_verified_ship_address(username, hostname, email, exchange_id, packing_slip_info, packing_slip_url_param): url = "http://"+hostname + "/index" packing_slip_url = "http://"+ hostname + "/packing_slip?" + packing_slip_url_param msg = Message(subject="PPE Exchange - Ready to Ship", sender=app.config.get("MAIL_USERNAME"), recipients=[email], body=" ", html=render_template("email_ship.html", username=username, link=url, exchange_id=exchange_id, packing_slip_info=packing_slip_info, packing_slip_url=packing_slip_url)) mail.send(msg) # NOT USED def send_hospital_exchange_own_verified(username, hostname, email, exchange_id): url = "http://"+hostname + "/exchanges" text1="Thank you for verifying your participation in PPE exchange #" + exchange_id + "." text2="to indicate shipping and/or receiving of PPE." msg = Message(subject="PPE Exchange - Exchange Participation Verified", sender=app.config.get("MAIL_USERNAME"), recipients=[email], body=" ", html=render_template("email_exchange.html", username=username, link=url, linking=True, id=exchange_id, text1=text1, text2=text2)) mail.send(msg) # NOT USED def send_hospital_exchange_partner_verified(username, hostname, email, exchange_id): url = "http://"+hostname + "/exchanges" text1="A partner hospital in PPE exchange " + exchange_id + "has verified their participation." text2="to see the latest updates on this exchange, and once all partners have verified to indicate that you have shipped and received your PPE." msg = Message(subject="PPE Exchange - Partner Participation Verified", sender=app.config.get("MAIL_USERNAME"), recipients=[email], body=" ", html=render_template("email_exchange.html", text=text1, text2=text2, username=username, link=url, linking=True, id=exchange_id)) mail.send(msg) # NOT USED def send_hospital_exchange_all_verified(username, hostname, email, exchange_id): url = "http://"+hostname + "/index" text1="All partner hospitals (including yours) in PPE exchange " + exchange_id + "have verified their participation." text2="to see the latest updates on this exchange, and to indicate that you have shipped and received your PPE." msg = Message(subject="PPE Exchange - Partner Participation Verified", sender=app.config.get("MAIL_USERNAME"), recipients=[email], body=" ", html=render_template("email_exchange.html", text=text1, text2=text2, username=username, link=url, linking=True, id=exchange_id)) mail.send(msg) # NOT USED def send_hospital_exchange_own_shipped(username, hostname, email, exchange_id): url = "http://"+hostname + "/exchanges" text1="Thank you for confirming a shipment for PPE exchange" + exchange_id+"." text2="to see the latest updates on this exchange." msg = Message(subject="PPE Exchange - Exchange Shipping Verification", sender=app.config.get("MAIL_USERNAME"), recipients=[email], body = " ", html=render_template("email_exchange.html", text1=text1, text2=text2, username=username, link=url, linking=True, id=exchange_id)) mail.send(msg) def send_hospital_exchange_partner_shipped(username, hostname, email, exchange_id, name, count, ppe): url = "http://"+hostname + "/index" text1="As part of PPE exchange #" + exchange_id + " " + name + " has shipped " + str(count) + " boxes of PPE type " + ppe+ " to your hospital." text2="once the shipment has arrived to confirm your receipt of the exchange shipment." msg = Message(subject="PPE Exchange - Exchange Partner Shipped", sender=app.config.get("MAIL_USERNAME"), recipients=[email], body=" ", html=render_template("email_exchange.html", text1=text1, text2=text2, username=username, link=url, linking=True, id=exchange_id)) mail.send(msg) # NOT USED def send_hospital_exchange_own_received(username, hostname, email, exchange_id): url = "http://"+hostname + "/exchanges" text1="Thank you for confirming receipt of a shipment for PPE exchange" + exchange_id+"." text2="to see the latest updates on this exchange." msg = Message(subject="PPE Exchange - Exchange Receipt Verification", sender=app.config.get("MAIL_USERNAME"), recipients=[email], body=" ", html=render_template("email_exchange.html", text1=text1, text2=text2, username=username, link=url, linking=True, id=exchange_id)) mail.send(msg) def send_hospital_exchange_partner_received(username, hostname, email, exchange_id, name, count, ppe): url = "http://"+hostname + "/index" text1="As part of PPE exchange #" + exchange_id + " " + name + " has received " + str(count) + " boxes of PPE type " + ppe+ " from your hospital." text2="if you want to confirm these details." msg = Message(subject="PPE Exchange - Exchange Partner Received", sender=app.config.get("MAIL_USERNAME"), recipients=[email], body=" ", html=render_template("email_exchange.html", text1=text1, text2=text2, username=username, link=url, linking=True, id=exchange_id)) mail.send(msg) # NOT USED def send_hospital_exchange_all_received(username, hostname, email, exchange_id): url = "http://"+hostname + "/exchanges" text1="All partner hospitals (including yours) in PPE exchange " + exchange_id + "have received their expected PPE." text2="to see that this exchange is now complete." msg = Message(subject="PPE Exchange - Exchange Complete", sender=app.config.get("MAIL_USERNAME"), recipients=[email], body=" ", html=render_template("email_exchange.html", text=text1, text2=text2, username=username, link=url, linking=True, id=exchange_id)) mail.send(msg) def send_hospital_admin_canceled(username, hostname, email, exchange_id): url = "http://"+hostname + "/exchanges" text1="The PPE Exchange administrator has canceled PPE exchange " + exchange_id + "." text2="to see that this exchange has been canceled." msg = Message(subject="PPE Exchange - Exchange Canceled by Administrator", sender=app.config.get("MAIL_USERNAME"), recipients=[email], body=" ", html=render_template("email_exchange.html", text=text1, text2=text2, username=username, link=url, linking=True, id=exchange_id)) mail.send(msg) def send_hospital_hospital_canceled(username, hostname, email, exchange_id): url = "http://"+hostname + "/exchanges" text1="A partner hospital has canceled PPE exchange " + exchange_id + "." text2="to see that this exchange has been canceled. Please stay tuned for a new exchange to be created shortly." msg = Message(subject="PPE Exchange - Exchange Canceled by Hosptial Partner", sender=app.config.get("MAIL_USERNAME"), recipients=[email], body=" ", html=render_template("email_exchange.html", text=text1, text2=text2, username=username, link=url, linking=True, id=exchange_id)) mail.send(msg) def send_reset_password(hostname, email, auth_key, username): url = "http://" + hostname + "/change_password?key="+auth_key msg = Message(subject="PPE Exchange Password Reset", sender=app.config.get("MAIL_USERNAME"), recipients=[email], body="Click this link to set the admin password for PPE Exchange \n"+url, html=render_template("email_reset_password.html", username=username, link=url)) mail.send(msg)
57.435583
186
0.65157
1,128
9,362
5.269504
0.112589
0.060565
0.060734
0.047106
0.835633
0.817463
0.78247
0.739738
0.698688
0.692295
0
0.00852
0.235206
9,362
162
187
57.790123
0.821648
0.005661
0
0.597122
0
0.021583
0.309181
0.00731
0
0
0
0
0
1
0.100719
false
0.043165
0.028777
0
0.129496
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
c4c1587c52d6e5682a1d241d46b16257f7c85958
63
py
Python
src/Instructions.py
Lorisredstone/Forpy
769b291cd1c494cf979d1eb4ed37a5a07c88a2aa
[ "MIT" ]
2
2022-02-22T14:50:51.000Z
2022-02-22T14:51:48.000Z
src/Instructions.py
Lorisredstone/Forpy
769b291cd1c494cf979d1eb4ed37a5a07c88a2aa
[ "MIT" ]
null
null
null
src/Instructions.py
Lorisredstone/Forpy
769b291cd1c494cf979d1eb4ed37a5a07c88a2aa
[ "MIT" ]
null
null
null
from enum import Enum, IntEnum, auto class I(IntEnum): ...
15.75
36
0.666667
9
63
4.666667
0.777778
0
0
0
0
0
0
0
0
0
0
0
0.206349
63
4
37
15.75
0.84
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
c4e9606d7410d08e29233957ebaf66aa640b1979
2,262
py
Python
tests/test_typical_or_extreme_periods.py
mcassini/pyepw
8da1b22b7834eff3350906d2295ede3a6bd13a53
[ "Apache-2.0" ]
27
2015-05-18T20:16:12.000Z
2021-05-10T23:58:13.000Z
tests/test_typical_or_extreme_periods.py
mcassini/pyepw
8da1b22b7834eff3350906d2295ede3a6bd13a53
[ "Apache-2.0" ]
null
null
null
tests/test_typical_or_extreme_periods.py
mcassini/pyepw
8da1b22b7834eff3350906d2295ede3a6bd13a53
[ "Apache-2.0" ]
10
2015-03-11T18:03:18.000Z
2021-06-22T07:58:01.000Z
import os import tempfile import unittest from pyepw.epw import TypicalOrExtremePeriods, TypicalOrExtremePeriod, EPW class TestTypicalOrExtremePeriods(unittest.TestCase): def setUp(self): self.fd, self.path = tempfile.mkstemp() def tearDown(self): os.remove(self.path) def test_create_typical_or_extreme_periods(self): obj = TypicalOrExtremePeriods() typical_or_extreme_period_obj = TypicalOrExtremePeriod() var_typical_or_extreme_period_typical_or_extreme_period_name = "typical_or_extreme_period_name" typical_or_extreme_period_obj.typical_or_extreme_period_name = var_typical_or_extreme_period_typical_or_extreme_period_name var_typical_or_extreme_period_typical_or_extreme_period_type = "typical_or_extreme_period_type" typical_or_extreme_period_obj.typical_or_extreme_period_type = var_typical_or_extreme_period_typical_or_extreme_period_type var_typical_or_extreme_period_period_start_day = "period_start_day" typical_or_extreme_period_obj.period_start_day = var_typical_or_extreme_period_period_start_day var_typical_or_extreme_period_period_end_day = "period_end_day" typical_or_extreme_period_obj.period_end_day = var_typical_or_extreme_period_period_end_day obj.add_typical_or_extreme_period(typical_or_extreme_period_obj) epw = EPW(typical_or_extreme_periods=obj) epw.save(self.path, check=False) epw2 = EPW() epw2.read(self.path) self.assertEqual( epw2.typical_or_extreme_periods.typical_or_extreme_periods[0].typical_or_extreme_period_name, var_typical_or_extreme_period_typical_or_extreme_period_name) self.assertEqual( epw2.typical_or_extreme_periods.typical_or_extreme_periods[0].typical_or_extreme_period_type, var_typical_or_extreme_period_typical_or_extreme_period_type) self.assertEqual( epw2.typical_or_extreme_periods.typical_or_extreme_periods[0].period_start_day, var_typical_or_extreme_period_period_start_day) self.assertEqual( epw2.typical_or_extreme_periods.typical_or_extreme_periods[0].period_end_day, var_typical_or_extreme_period_period_end_day)
49.173913
131
0.792219
303
2,262
5.280528
0.138614
0.230625
0.41
0.42625
0.74
0.7225
0.7225
0.6875
0.65125
0.564375
0
0.00526
0.159593
2,262
45
132
50.266667
0.836402
0
0
0.108108
0
0
0.039788
0.026525
0
0
0
0
0.108108
1
0.081081
false
0
0.108108
0
0.216216
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
c4ea6464615fcbbd7fe34e0dcb653a513e8d2d1b
32
py
Python
tests/sample.py
evandroforks/lsp_utils
338e5055685c71501abb829ffc099fddd6db72be
[ "MIT" ]
9
2020-03-12T07:54:04.000Z
2021-09-18T06:33:46.000Z
tests/sample.py
evandroforks/lsp_utils
338e5055685c71501abb829ffc099fddd6db72be
[ "MIT" ]
54
2020-03-19T11:21:48.000Z
2021-12-27T15:50:53.000Z
tests/sample.py
evandroforks/lsp_utils
338e5055685c71501abb829ffc099fddd6db72be
[ "MIT" ]
4
2020-10-18T05:35:00.000Z
2021-06-18T03:14:53.000Z
import os os.path.join('a', 2)
8
20
0.625
7
32
2.857143
0.857143
0
0
0
0
0
0
0
0
0
0
0.037037
0.15625
32
3
21
10.666667
0.703704
0
0
0
0
0
0.03125
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
f21b91b143594a6df1db9aafce8606c67e4a06ae
2,635
py
Python
tests/unit/iotics/lib/identity/api/test_high_level_api.py
Iotic-Labs/iotics-identity-py
a55372915057c04b15cfa6a0c2391c39aed77a7e
[ "Apache-2.0" ]
9
2021-05-26T14:45:36.000Z
2021-06-25T13:02:37.000Z
tests/unit/iotics/lib/identity/api/test_high_level_api.py
Iotic-Labs/iotics-identity-py
a55372915057c04b15cfa6a0c2391c39aed77a7e
[ "Apache-2.0" ]
4
2021-06-01T13:49:26.000Z
2021-08-17T13:26:00.000Z
tests/unit/iotics/lib/identity/api/test_high_level_api.py
Iotic-Labs/iotics-identity-py
a55372915057c04b15cfa6a0c2391c39aed77a7e
[ "Apache-2.0" ]
null
null
null
# Copyright (c) IOTIC LABS LIMITED. All rights reserved. Licensed under the Apache License, Version 2.0. import pytest from iotics.lib.identity.error import IdentityRegisterDocumentKeyConflictError from iotics.lib.identity import HighLevelIdentityApi, AdvancedIdentityRegisterApi from tests.unit.iotics.lib.identity.fake import ResolverClientTest def test_create_user_and_agent_with_auth_delegation_duplicate_name_different_controller(valid_bip39_seed): resolver_client = ResolverClientTest(docs={}) api = HighLevelIdentityApi(AdvancedIdentityRegisterApi(resolver_client)) user_name = '#user' agent_name = '#agent' agent_name2 = '#agent2' deleg_name = '#AuthDeleg' api.create_user_and_agent_with_auth_delegation( user_seed=valid_bip39_seed, user_key_name=user_name, user_name=user_name, agent_seed=valid_bip39_seed, agent_key_name=agent_name, agent_name=agent_name, delegation_name=deleg_name ) with pytest.raises(IdentityRegisterDocumentKeyConflictError) as exc: api.create_user_and_agent_with_auth_delegation( user_seed=valid_bip39_seed, user_key_name=user_name, user_name=user_name, agent_seed=valid_bip39_seed, agent_key_name=agent_name2, agent_name=agent_name2, delegation_name=deleg_name ) assert "Authentication delegation name '#AuthDeleg' already in use" in str(exc.value) def test_create_user_and_agent_with_auth_delegation_unspecified_name_different_controller(valid_bip39_seed): resolver_client = ResolverClientTest(docs={}) api = HighLevelIdentityApi(AdvancedIdentityRegisterApi(resolver_client)) user_name = '#user' agent_name = '#agent' agent_name2 = '#agent2' user_did, _ = api.create_user_and_agent_with_auth_delegation( user_seed=valid_bip39_seed, user_key_name=user_name, user_name=user_name, agent_seed=valid_bip39_seed, agent_key_name=agent_name, agent_name=agent_name ) api.create_user_and_agent_with_auth_delegation( user_seed=valid_bip39_seed, user_key_name=user_name, user_name=user_name, agent_seed=valid_bip39_seed, agent_key_name=agent_name2, agent_name=agent_name2 ) user_doc = resolver_client.docs.get(user_did.did) assert len(user_doc.auth_delegation_proof) == 2 api.create_user_and_agent_with_auth_delegation( user_seed=valid_bip39_seed, user_key_name=user_name, user_name=user_name, agent_seed=valid_bip39_seed, agent_key_name=agent_name2, agent_name=agent_name2 ) user_doc = resolver_client.docs.get(user_did.did) assert len(user_doc.auth_delegation_proof) == 2
42.5
108
0.785579
354
2,635
5.381356
0.200565
0.089764
0.094488
0.094488
0.728609
0.728609
0.728609
0.728609
0.728609
0.683465
0
0.016851
0.144213
2,635
61
109
43.196721
0.827938
0.03871
0
0.6
0
0
0.04109
0
0
0
0
0
0.066667
1
0.044444
false
0
0.088889
0
0.133333
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
1ef6eee252f14d7da38941185eb1e76eb198233a
16
py
Python
parser/team23/instruccion/select.py
wendychamale/tytus
e5e6d9349f609360370edcfbb65b8c93b21f1bab
[ "MIT" ]
null
null
null
parser/team23/instruccion/select.py
wendychamale/tytus
e5e6d9349f609360370edcfbb65b8c93b21f1bab
[ "MIT" ]
null
null
null
parser/team23/instruccion/select.py
wendychamale/tytus
e5e6d9349f609360370edcfbb65b8c93b21f1bab
[ "MIT" ]
null
null
null
print("select")
8
15
0.6875
2
16
5.5
1
0
0
0
0
0
0
0
0
0
0
0
0.0625
16
1
16
16
0.733333
0
0
0
0
0
0.375
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
4821f2ec7c89609466dcd4e2f3d769c5e2a57999
176
py
Python
sellotape/sellotape_dj/main_app/admin.py
itzhaki1234/sellotape
326e52d3743ccc35309a96c89a30e1c6a7e77a3b
[ "MIT" ]
6
2020-08-11T07:28:35.000Z
2020-10-08T03:29:10.000Z
sellotape/sellotape_dj/main_app/admin.py
itzhaki1234/sellotape
326e52d3743ccc35309a96c89a30e1c6a7e77a3b
[ "MIT" ]
60
2020-08-14T15:20:10.000Z
2020-11-08T09:54:01.000Z
sellotape/sellotape_dj/main_app/admin.py
itzhaki1234/sellotape
326e52d3743ccc35309a96c89a30e1c6a7e77a3b
[ "MIT" ]
10
2020-08-11T07:40:39.000Z
2021-03-09T11:54:32.000Z
from django.contrib import admin from .models import Stream, Profile, UserFollower admin.site.register(Stream) admin.site.register(Profile) admin.site.register(UserFollower)
22
49
0.823864
23
176
6.304348
0.478261
0.186207
0.351724
0
0
0
0
0
0
0
0
0
0.085227
176
7
50
25.142857
0.900621
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.4
0
0.4
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
484049a7424851e5ae615ab1c1cf9182d5907535
216
py
Python
pyworkshop/1_intro_python/chapter7/name_lib.py
profread/python
0ac98fa29ed9854959b03ef6237c2ed5f5825428
[ "MIT" ]
389
2019-02-18T05:29:30.000Z
2022-02-09T11:40:55.000Z
pyworkshop/1_intro_python/chapter7/name_lib.py
profread/python
0ac98fa29ed9854959b03ef6237c2ed5f5825428
[ "MIT" ]
45
2019-04-16T17:29:23.000Z
2020-10-13T01:20:40.000Z
pyworkshop/1_intro_python/chapter7/name_lib.py
profread/python
0ac98fa29ed9854959b03ef6237c2ed5f5825428
[ "MIT" ]
257
2019-03-19T14:42:31.000Z
2022-03-19T07:28:35.000Z
def upper_case_name(name): return name.upper() if __name__ == "__main__": name = "Nina" name_upper = upper_case_name(name) print(f"Upper case name is {name_upper}") print("dunder name", __name__)
27
45
0.675926
31
216
4.129032
0.387097
0.210938
0.304688
0.265625
0
0
0
0
0
0
0
0
0.194444
216
8
46
27
0.735632
0
0
0
0
0
0.248848
0
0
0
0
0
0
1
0.142857
false
0
0
0.142857
0.285714
0.285714
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
5
486deba7bd1c21ee2f35bed1d2c21c49be38420e
257
py
Python
modules/ckanext-ytp_comments/ckanext/ytp_comments/logic/auth/get.py
eetumans/opendata
061f58550bcb820016a764cca4763ed0a5f627fe
[ "MIT" ]
16
2018-07-12T14:26:02.000Z
2022-02-24T12:10:00.000Z
modules/ckanext-ytp_comments/ckanext/ytp_comments/logic/auth/get.py
eetumans/opendata
061f58550bcb820016a764cca4763ed0a5f627fe
[ "MIT" ]
751
2017-09-28T07:47:50.000Z
2022-03-31T12:08:25.000Z
modules/ckanext-ytp_comments/ckanext/ytp_comments/logic/auth/get.py
vrk-kpa/opendata-ckan
8936e2d9e700b9e5534fe2a51eedc2d1ede8c10b
[ "MIT" ]
6
2017-10-31T07:47:07.000Z
2021-10-06T07:09:07.000Z
import logging log = logging.getLogger(__name__) def thread_show(context, data_dict): return {'success': True} def comment_show(context, data_dict): return {'success': True} def comment_count(context, data_dict): return {'success': True}
16.0625
38
0.715953
33
257
5.272727
0.484848
0.189655
0.258621
0.362069
0.712644
0.712644
0.528736
0.528736
0.528736
0
0
0
0.163424
257
15
39
17.133333
0.809302
0
0
0.375
0
0
0.081712
0
0
0
0
0
0
1
0.375
false
0
0.125
0.375
0.875
0
0
0
0
null
0
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
5
486e0f82bfeb88504e43b791d5e0f598964fb964
881
py
Python
Experiments/AliAsM/example/testlib.py
RedSerge/fun
8fbcb7a3a00c046e93cff1dbbafb1936afa4b25e
[ "MIT" ]
null
null
null
Experiments/AliAsM/example/testlib.py
RedSerge/fun
8fbcb7a3a00c046e93cff1dbbafb1936afa4b25e
[ "MIT" ]
null
null
null
Experiments/AliAsM/example/testlib.py
RedSerge/fun
8fbcb7a3a00c046e93cff1dbbafb1936afa4b25e
[ "MIT" ]
null
null
null
from ctypes import * from platform import system as platform name=''.join(("markov",".dll" if platform().lower()=="windows" else ".so" )) dll=cdll.LoadLibrary(name) class EulerStruct(Structure): _fields_ = [("first", POINTER(c_double)), ("second", POINTER(c_double)), ("third", c_int)] eulerstruct = EulerStruct() eulerstruct.first = (c_double * 30)(0.635578,0.000000,0.0,0.599658,0.726859,1.0,0.407514,0.316904,0.0,0.820063,0.860164,0.0,0.860408,0.690909,0.0,0.627155,0.270882,0.0,0.274728,0.080538,0.0,0.843379,0.617298,0.0,0.799341,0.168920,0.0,0.000000,0.531236,0.0); eulerstruct.second = (c_double * 30)(0.1,0.1,0.05,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0) eulerstruct.third = 10 dll.Euler(eulerstruct.first,eulerstruct.second,eulerstruct.third) for i in range(30): print(eulerstruct.first[i],end="\n")
55.0625
257
0.69353
192
881
3.145833
0.3125
0.235099
0.298013
0.337748
0.089404
0.089404
0.089404
0.089404
0.089404
0.089404
0
0.27657
0.060159
881
16
258
55.0625
0.452899
0
0
0
0
0
0.043084
0
0
0
0
0
0
1
0
false
0
0.153846
0
0.307692
0.076923
0
0
0
null
1
1
1
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
6fae78f92edd0d3e68d62c2820e4b929ea7711da
112
py
Python
src/tests/create_genesis_block.py
TimmMoetz/blockchain-lab
02bb55cc201586dbdc8fdc252a32381f525e83ff
[ "RSA-MD" ]
2
2021-11-08T12:00:02.000Z
2021-11-12T18:37:52.000Z
src/tests/create_genesis_block.py
TimmMoetz/blockchain-lab
02bb55cc201586dbdc8fdc252a32381f525e83ff
[ "RSA-MD" ]
null
null
null
src/tests/create_genesis_block.py
TimmMoetz/blockchain-lab
02bb55cc201586dbdc8fdc252a32381f525e83ff
[ "RSA-MD" ]
1
2022-03-28T13:49:37.000Z
2022-03-28T13:49:37.000Z
from src.blockchain.blockchain import Blockchain blockchain = Blockchain() blockchain.create_genesis_block()
28
49
0.830357
12
112
7.583333
0.583333
0.879121
0.659341
0
0
0
0
0
0
0
0
0
0.098214
112
4
50
28
0.90099
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
1
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
6fbbf45f0dd1256b03ae5f344302c2db494c1621
790
py
Python
mysite/polls/tests/test_rules/rule_4/test_rule_4.py
camilamaia/factory-boy-best-practices
5237981b4ade0ee56caab55c3a0a2afb4d712712
[ "MIT" ]
3
2021-07-06T18:15:09.000Z
2022-03-10T02:32:34.000Z
mysite/polls/tests/test_rules/rule_4/test_rule_4.py
camilamaia/factory-boy-best-practices
5237981b4ade0ee56caab55c3a0a2afb4d712712
[ "MIT" ]
null
null
null
mysite/polls/tests/test_rules/rule_4/test_rule_4.py
camilamaia/factory-boy-best-practices
5237981b4ade0ee56caab55c3a0a2afb4d712712
[ "MIT" ]
1
2021-12-21T14:53:00.000Z
2021-12-21T14:53:00.000Z
from pytest import mark from polls.models import Question from polls.tests.test_rules.rule_4.good_factories import PollFactory @mark.django_db def test_bad_to_string_with_non_premium_english_question_with_author(): question = PollFactory.create( question__question_text="Pepsi or Coke?", question__language=Question.EN, premium=False, with_author=True, ) assert str(question) == f"Pepsi or Coke? - By {question.author}" def test_good_to_string_with_non_premium_english_question_with_author(): question = PollFactory.build( question__question_text="Pepsi or Coke?", question__language=Question.EN, premium=False, with_author=True, ) assert str(question) == f"Pepsi or Coke? - By {question.author}"
30.384615
72
0.727848
103
790
5.23301
0.38835
0.074212
0.081633
0.055659
0.719852
0.719852
0.719852
0.719852
0.719852
0.719852
0
0.001558
0.187342
790
25
73
31.6
0.838006
0
0
0.5
0
0
0.129114
0
0
0
0
0
0.1
1
0.1
false
0
0.15
0
0.25
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
d23697f2beb9726743f35ad9793eb8811beb81c5
36
py
Python
Komoviebot/tests/test_bothub.py
drumcap/sentiment-analysis-system-of-movie-review
4b12e3399b3cf1acadd937d1a09b96b823729953
[ "Apache-2.0" ]
null
null
null
Komoviebot/tests/test_bothub.py
drumcap/sentiment-analysis-system-of-movie-review
4b12e3399b3cf1acadd937d1a09b96b823729953
[ "Apache-2.0" ]
2
2021-03-31T18:34:39.000Z
2021-06-01T22:08:42.000Z
Komoviebot/tests/test_bothub.py
drumcap/sentiment-analysis-system-of-movie-review
4b12e3399b3cf1acadd937d1a09b96b823729953
[ "Apache-2.0" ]
1
2018-05-16T14:57:27.000Z
2018-05-16T14:57:27.000Z
import os os.system ("bothub test")
12
25
0.722222
6
36
4.333333
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.138889
36
3
25
12
0.83871
0
0
0
0
0
0.305556
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
d245aa1c25bb886e9926992316d99e0c7cfc017e
136
py
Python
blind_blizzards/cogs/help/__init__.py
Starwort/code-jam-5
c11ab7508ca8c68fe64f33118a3a44956c0a8292
[ "MIT" ]
null
null
null
blind_blizzards/cogs/help/__init__.py
Starwort/code-jam-5
c11ab7508ca8c68fe64f33118a3a44956c0a8292
[ "MIT" ]
null
null
null
blind_blizzards/cogs/help/__init__.py
Starwort/code-jam-5
c11ab7508ca8c68fe64f33118a3a44956c0a8292
[ "MIT" ]
1
2019-06-28T21:59:41.000Z
2019-06-28T21:59:41.000Z
from discord.ext import commands from .cog import Help def setup(bot: commands.Bot): """Cog load.""" bot.add_cog(Help(bot))
13.6
32
0.669118
21
136
4.285714
0.571429
0
0
0
0
0
0
0
0
0
0
0
0.191176
136
9
33
15.111111
0.818182
0.066176
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.5
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
0
1
0
0
5
d25f402e3e8cc1a839640106e2350db020b21403
171
py
Python
river/models/managers/state.py
JohnieBraaf/django-river
58f49624c37e1e5d1bdb4c7680810126454e36a6
[ "BSD-3-Clause" ]
705
2015-07-23T16:09:06.000Z
2022-03-05T03:52:31.000Z
river/models/managers/state.py
JohnieBraaf/django-river
58f49624c37e1e5d1bdb4c7680810126454e36a6
[ "BSD-3-Clause" ]
188
2015-08-28T21:58:38.000Z
2021-12-15T06:39:37.000Z
river/models/managers/state.py
JohnieBraaf/django-river
58f49624c37e1e5d1bdb4c7680810126454e36a6
[ "BSD-3-Clause" ]
101
2015-08-30T04:22:57.000Z
2022-03-29T06:58:20.000Z
from river.models.managers.rivermanager import RiverManager class StateManager(RiverManager): def get_by_natural_key(self, slug): return self.get(slug=slug)
24.428571
59
0.77193
22
171
5.863636
0.727273
0
0
0
0
0
0
0
0
0
0
0
0.146199
171
6
60
28.5
0.883562
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0.25
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
d26a50649dc3424784912ad6a028e104eef48881
197
py
Python
slicedimage/__init__.py
kevinyamauchi/slicedimage
d1711fdefe52d3753a12e6f206f4c8df13bc1a06
[ "MIT" ]
null
null
null
slicedimage/__init__.py
kevinyamauchi/slicedimage
d1711fdefe52d3753a12e6f206f4c8df13bc1a06
[ "MIT" ]
null
null
null
slicedimage/__init__.py
kevinyamauchi/slicedimage
d1711fdefe52d3753a12e6f206f4c8df13bc1a06
[ "MIT" ]
null
null
null
from ._formats import ImageFormat from ._collection import Collection from ._tile import Tile from ._tileset import TileSet from .io import Reader, v0_0_0, v0_1_0, Writer, WriterContract, VERSIONS
32.833333
72
0.822335
29
197
5.310345
0.517241
0
0
0
0
0
0
0
0
0
0
0.034884
0.126904
197
5
73
39.4
0.860465
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
d271ed2693f402f207823f9c93021950ff11c1fc
50
py
Python
web/py/holamundo.py
hernandezpalo83/PyRiego
e082c8013bd591ae2546daed1678eb736a53a2c5
[ "Unlicense" ]
null
null
null
web/py/holamundo.py
hernandezpalo83/PyRiego
e082c8013bd591ae2546daed1678eb736a53a2c5
[ "Unlicense" ]
null
null
null
web/py/holamundo.py
hernandezpalo83/PyRiego
e082c8013bd591ae2546daed1678eb736a53a2c5
[ "Unlicense" ]
null
null
null
import variables print( variables.mensaje);
10
26
0.72
5
50
7.2
0.8
0
0
0
0
0
0
0
0
0
0
0
0.2
50
5
26
10
0.9
0
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
9636349356862ac0082de4f22f27d47e5c7e736b
59
py
Python
main.py
ChaeSongi/songbot
99acdfcb7fa8d309ba82ee15111855f665777eff
[ "MIT" ]
null
null
null
main.py
ChaeSongi/songbot
99acdfcb7fa8d309ba82ee15111855f665777eff
[ "MIT" ]
2
2018-08-07T03:12:18.000Z
2018-08-07T03:44:36.000Z
main.py
ChaeSongi/songbot
99acdfcb7fa8d309ba82ee15111855f665777eff
[ "MIT" ]
3
2018-08-07T02:50:29.000Z
2018-08-07T03:10:17.000Z
print("HELLO DAITGIRLS!!! Love you girls ❤️") print("🐷 🐸")
19.666667
45
0.610169
10
59
4
0.9
0
0
0
0
0
0
0
0
0
0
0
0.135593
59
2
46
29.5
0.705882
0
0
0
0
0
0.661017
0
0
0
0
0
0
1
0
true
0
0
0
0
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
1
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
5
964531687482ba45af74c45e35f1dc09949f1935
686
bzl
Python
third_party/libprotobuf_mutator/workspace.bzl
vixadd/tensorflow
8c624204eb686a91779149dc500e6c8c60096074
[ "Apache-2.0" ]
190,993
2015-11-09T13:17:30.000Z
2022-03-31T23:05:27.000Z
third_party/libprotobuf_mutator/workspace.bzl
vixadd/tensorflow
8c624204eb686a91779149dc500e6c8c60096074
[ "Apache-2.0" ]
48,461
2015-11-09T14:21:11.000Z
2022-03-31T23:17:33.000Z
third_party/libprotobuf_mutator/workspace.bzl
vixadd/tensorflow
8c624204eb686a91779149dc500e6c8c60096074
[ "Apache-2.0" ]
104,981
2015-11-09T13:40:17.000Z
2022-03-31T19:51:54.000Z
"""Provides the repo macro to import google libprotobuf_mutator""" load("//third_party:repo.bzl", "tf_http_archive") def repo(): """Imports libprotobuf_mutator.""" tf_http_archive( name = "com_google_libprotobuf_mutator", sha256 = "792f250fb546bde8590e72d64311ea00a70c175fd77df6bb5e02328fa15fe28e", strip_prefix = "libprotobuf-mutator-1.0", build_file = "//third_party/libprotobuf_mutator:BUILD.bazel", urls = [ "https://storage.googleapis.com/mirror.tensorflow.org/github.com/google/libprotobuf-mutator/archive/v1.0.tar.gz", "https://github.com/google/libprotobuf-mutator/archive/v1.0.tar.gz", ], )
40.352941
125
0.689504
75
686
6.12
0.533333
0.27451
0.20915
0.176471
0.20915
0.20915
0.20915
0.20915
0.20915
0.20915
0
0.086572
0.174927
686
16
126
42.875
0.724382
0.129738
0
0
0
0.166667
0.638225
0.313993
0
0
0
0
0
1
0.083333
true
0
0
0
0.083333
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
96773c52087eb58c56708817970e168bf495186e
135
py
Python
hpo_downloader/utils/__init__.py
LucaCappelletti94/hpo_downloader
14497478626c234539659b9f55b16496e6b6b86b
[ "MIT" ]
null
null
null
hpo_downloader/utils/__init__.py
LucaCappelletti94/hpo_downloader
14497478626c234539659b9f55b16496e6b6b86b
[ "MIT" ]
null
null
null
hpo_downloader/utils/__init__.py
LucaCappelletti94/hpo_downloader
14497478626c234539659b9f55b16496e6b6b86b
[ "MIT" ]
null
null
null
from .non_unique_mapping import non_unique_mapping from .overlap import overlap __all__ = [ "non_unique_mapping", "overlap" ]
16.875
50
0.755556
17
135
5.411765
0.411765
0.293478
0.521739
0
0
0
0
0
0
0
0
0
0.17037
135
7
51
19.285714
0.821429
0
0
0
0
0
0.185185
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
9679db869f177ae8fb35f765c45c95d26a40c998
75
py
Python
initialization/__init__.py
jiafeiyan/xops
fba70cc5282a040ae5f2f1266b86e12dd54edd65
[ "Apache-2.0" ]
1
2018-01-22T06:38:06.000Z
2018-01-22T06:38:06.000Z
initialization/__init__.py
jiafeiyan/my_python_util
fba70cc5282a040ae5f2f1266b86e12dd54edd65
[ "Apache-2.0" ]
null
null
null
initialization/__init__.py
jiafeiyan/my_python_util
fba70cc5282a040ae5f2f1266b86e12dd54edd65
[ "Apache-2.0" ]
null
null
null
# -*- coding: UTF-8 -*- from initialization.initScript import initScript
25
49
0.72
8
75
6.75
0.875
0
0
0
0
0
0
0
0
0
0
0.015625
0.146667
75
2
50
37.5
0.828125
0.28
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
967a3044cab5a234c30289918852f2184887e2bd
97
py
Python
examples/install/install.py
ibonn/python_avatars
2c49dc330b7022a79999394c2894d1ececbefd59
[ "MIT" ]
13
2021-03-20T12:42:25.000Z
2022-03-26T21:39:34.000Z
examples/install/install.py
ibonn/python_avatars
2c49dc330b7022a79999394c2894d1ececbefd59
[ "MIT" ]
null
null
null
examples/install/install.py
ibonn/python_avatars
2c49dc330b7022a79999394c2894d1ececbefd59
[ "MIT" ]
1
2021-12-28T09:09:12.000Z
2021-12-28T09:09:12.000Z
import python_avatars as pa # Install the new part pa.install_part('suit.svg', pa.ClothingType)
19.4
44
0.783505
16
97
4.625
0.75
0.243243
0
0
0
0
0
0
0
0
0
0
0.123711
97
4
45
24.25
0.870588
0.206186
0
0
0
0
0.106667
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
96a2a703d0f29058724ba07f0077729fc2197984
3,195
py
Python
tests/test_models/test_sngan_proj.py
plutoyuxie/mmgeneration
0a7f5d16c970de1766ebf049d7a0264fe506504b
[ "Apache-2.0" ]
718
2021-04-15T11:26:20.000Z
2022-03-31T03:11:56.000Z
tests/test_models/test_sngan_proj.py
plutoyuxie/mmgeneration
0a7f5d16c970de1766ebf049d7a0264fe506504b
[ "Apache-2.0" ]
191
2021-04-15T12:13:34.000Z
2022-03-31T16:04:36.000Z
tests/test_models/test_sngan_proj.py
plutoyuxie/mmgeneration
0a7f5d16c970de1766ebf049d7a0264fe506504b
[ "Apache-2.0" ]
107
2021-04-15T12:38:41.000Z
2022-03-27T02:47:16.000Z
import pytest import torch from mmgen.models.gans import BasicConditionalGAN class TestSNGAN_PROJ: @classmethod def setup_class(cls): cls.generator_cfg = dict( type='SNGANGenerator', output_scale=32, base_channels=256, num_classes=10) cls.discriminator_cfg = dict( type='ProjDiscriminator', input_scale=32, base_channels=128, num_classes=10) cls.disc_auxiliary_loss = None cls.gan_loss = dict(type='GANLoss', gan_type='hinge') cls.train_cfg = None def test_sngan_proj_cpu(self): # test default config snganproj = BasicConditionalGAN( self.generator_cfg, self.discriminator_cfg, self.gan_loss, disc_auxiliary_loss=None, train_cfg=self.train_cfg) # test sample from noise outputs = snganproj.sample_from_noise(None, num_batches=2) assert outputs.shape == (2, 3, 32, 32) outputs = snganproj.sample_from_noise( None, num_batches=2, return_noise=True, sample_model='orig') assert outputs['fake_img'].shape == (2, 3, 32, 32) # test train step img = torch.randn((2, 3, 32, 32)) lab = torch.randint(0, 10, (2, )) data_input = dict(img=img, gt_label=lab) optimizer_g = torch.optim.SGD( snganproj.generator.parameters(), lr=0.01) optimizer_d = torch.optim.SGD( snganproj.discriminator.parameters(), lr=0.01) optim_dict = dict(generator=optimizer_g, discriminator=optimizer_d) model_outputs = snganproj.train_step(data_input, optim_dict) assert 'results' in model_outputs assert 'log_vars' in model_outputs assert model_outputs['num_samples'] == 2 @pytest.mark.skipif(not torch.cuda.is_available(), reason='requires cuda') def test_sngan_proj_cuda(self): # test default config snganproj = BasicConditionalGAN( self.generator_cfg, self.discriminator_cfg, self.gan_loss, disc_auxiliary_loss=self.disc_auxiliary_loss, train_cfg=self.train_cfg).cuda() # test sample from noise outputs = snganproj.sample_from_noise(None, num_batches=2) assert outputs.shape == (2, 3, 32, 32) outputs = snganproj.sample_from_noise( None, num_batches=2, return_noise=True, sample_model='orig') assert outputs['fake_img'].shape == (2, 3, 32, 32) # test train step img = torch.randn((2, 3, 32, 32)).cuda() lab = torch.randint(0, 10, (2, )).cuda() data_input = dict(img=img, gt_label=lab) optimizer_g = torch.optim.SGD( snganproj.generator.parameters(), lr=0.01) optimizer_d = torch.optim.SGD( snganproj.discriminator.parameters(), lr=0.01) optim_dict = dict(generator=optimizer_g, discriminator=optimizer_d) model_outputs = snganproj.train_step(data_input, optim_dict) assert 'results' in model_outputs assert 'log_vars' in model_outputs assert model_outputs['num_samples'] == 2
35.10989
78
0.623161
391
3,195
4.867008
0.232737
0.050447
0.047294
0.018918
0.747241
0.726222
0.706253
0.706253
0.706253
0.706253
0
0.032844
0.275743
3,195
90
79
35.5
0.789542
0.03662
0
0.588235
0
0
0.042983
0
0
0
0
0
0.147059
1
0.044118
false
0
0.044118
0
0.102941
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
96a54b1e3df890be85a39ec3a32d1121562c0070
192
py
Python
drone_squadron/api/weapon_api.py
OrderAndCh4oS/drone_squadron_api_prototype
4d7c22cebb03576986d443634b17910cb460a60f
[ "MIT" ]
1
2020-05-20T09:44:37.000Z
2020-05-20T09:44:37.000Z
drone_squadron/api/weapon_api.py
sarcoma/drone_squadron_api_prototype
4d7c22cebb03576986d443634b17910cb460a60f
[ "MIT" ]
1
2021-06-01T22:30:10.000Z
2021-06-01T22:30:10.000Z
drone_squadron/api/weapon_api.py
OrderAndCh4oS/drone_squadron_api_prototype
4d7c22cebb03576986d443634b17910cb460a60f
[ "MIT" ]
null
null
null
from drone_squadron.api.base_api import BaseApi from drone_squadron.crud.weapon_crud import WeaponCrud class WeaponApi(BaseApi): def __init__(self): super().__init__(WeaponCrud)
24
54
0.78125
25
192
5.52
0.64
0.130435
0.246377
0
0
0
0
0
0
0
0
0
0.140625
192
7
55
27.428571
0.836364
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.4
0
0.8
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
7370c21b77949742a25ad5a75ac67dd428fbe550
91
py
Python
login_rest/api/admin.py
noctilukkas/api-login-token-drf
6f15571da8ecaf4588674b1e59dbe25c7520cc28
[ "MIT" ]
null
null
null
login_rest/api/admin.py
noctilukkas/api-login-token-drf
6f15571da8ecaf4588674b1e59dbe25c7520cc28
[ "MIT" ]
null
null
null
login_rest/api/admin.py
noctilukkas/api-login-token-drf
6f15571da8ecaf4588674b1e59dbe25c7520cc28
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Persona admin.site.register(Persona)
18.2
32
0.824176
13
91
5.769231
0.692308
0
0
0
0
0
0
0
0
0
0
0
0.10989
91
4
33
22.75
0.925926
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
737df03af6b166c7444da6d0569c2bc8cdb0d30f
162
py
Python
others/jeus/cluster/remove_session_cluster.py
codejsha/infrastructure
01ff58fea0a7980fce30e37cb02a7c1217c46d9f
[ "Apache-2.0" ]
4
2021-02-13T03:39:38.000Z
2022-01-30T19:41:43.000Z
others/jeus/cluster/remove_session_cluster.py
codejsha/infrastructure
01ff58fea0a7980fce30e37cb02a7c1217c46d9f
[ "Apache-2.0" ]
null
null
null
others/jeus/cluster/remove_session_cluster.py
codejsha/infrastructure
01ff58fea0a7980fce30e37cb02a7c1217c46d9f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python command('start-configuration-editing') command('cd /') command('delete-element /sessionClusterConfig') command('activate-configuration')
18
47
0.765432
17
162
7.294118
0.764706
0
0
0
0
0
0
0
0
0
0
0
0.067901
162
8
48
20.25
0.821192
0.123457
0
0
0
0
0.631206
0.496454
0
0
0
0
0
1
0
true
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
738c67dbad7bf43d3c65d893a5fb66d086186cc4
43
py
Python
kinopoisk_unofficial/client/exception/too_many_requests.py
masterWeber/kinopoisk-api-unofficial-client
5c95e1ec6e43bd302399b63a1525ee7e61724155
[ "MIT" ]
2
2021-11-13T12:23:41.000Z
2021-12-24T14:09:49.000Z
kinopoisk_unofficial/client/exception/too_many_requests.py
masterWeber/kinopoisk-api-unofficial-client
5c95e1ec6e43bd302399b63a1525ee7e61724155
[ "MIT" ]
1
2022-03-29T19:13:24.000Z
2022-03-30T18:57:23.000Z
kinopoisk_unofficial/client/exception/too_many_requests.py
masterWeber/kinopoisk-api-unofficial-client
5c95e1ec6e43bd302399b63a1525ee7e61724155
[ "MIT" ]
1
2021-11-13T12:30:01.000Z
2021-11-13T12:30:01.000Z
class TooManyRequests(Exception): pass
14.333333
33
0.767442
4
43
8.25
1
0
0
0
0
0
0
0
0
0
0
0
0.162791
43
2
34
21.5
0.916667
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
73c3c5901ebcbf4dede38067cba960e207f70592
180
py
Python
src/lib/mysql/migrator.py
arnulfojr/sanic-persistance-patterns
c3c433014401725ab60f1dde3c35848f9ce3ef88
[ "MIT" ]
null
null
null
src/lib/mysql/migrator.py
arnulfojr/sanic-persistance-patterns
c3c433014401725ab60f1dde3c35848f9ce3ef88
[ "MIT" ]
null
null
null
src/lib/mysql/migrator.py
arnulfojr/sanic-persistance-patterns
c3c433014401725ab60f1dde3c35848f9ce3ef88
[ "MIT" ]
null
null
null
from peewee import Database from peewee_moves import DatabaseManager def get(db: Database) -> DatabaseManager: """Get the Database Manager.""" return DatabaseManager(db)
22.5
41
0.755556
21
180
6.428571
0.571429
0.148148
0
0
0
0
0
0
0
0
0
0
0.161111
180
7
42
25.714286
0.89404
0.138889
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.5
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
0
1
0
0
5
73fe67799a24e1595e227b6ca474399680201f8d
63
py
Python
SourceCodeOnly/src/data/__init__.py
VamshiMalthummeda/NewsClassifierSourceCode
bc3cb7572465dd4740906d2940fbd1fd2fe15117
[ "MIT" ]
null
null
null
SourceCodeOnly/src/data/__init__.py
VamshiMalthummeda/NewsClassifierSourceCode
bc3cb7572465dd4740906d2940fbd1fd2fe15117
[ "MIT" ]
null
null
null
SourceCodeOnly/src/data/__init__.py
VamshiMalthummeda/NewsClassifierSourceCode
bc3cb7572465dd4740906d2940fbd1fd2fe15117
[ "MIT" ]
null
null
null
from . import BBCNewsCorpusReader from . import make_dataset
21
34
0.809524
7
63
7.142857
0.714286
0.4
0
0
0
0
0
0
0
0
0
0
0.15873
63
2
35
31.5
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
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
73ff8d2ff96a8bf57d13da4369b38dd8faef1dc4
816
py
Python
tests/__init__.py
stactools-packages/cop-dem
25a4bb69eb60caa339e11b8293291cdc192e2de8
[ "Apache-2.0" ]
null
null
null
tests/__init__.py
stactools-packages/cop-dem
25a4bb69eb60caa339e11b8293291cdc192e2de8
[ "Apache-2.0" ]
3
2021-07-29T16:58:52.000Z
2021-08-12T18:18:42.000Z
tests/__init__.py
stactools-packages/cop-dem
25a4bb69eb60caa339e11b8293291cdc192e2de8
[ "Apache-2.0" ]
1
2021-08-05T23:17:51.000Z
2021-08-05T23:17:51.000Z
from stactools.testing import TestData test_data = TestData( __file__, { "Copernicus_DSM_COG_10_N53_00_W115_00_DEM.tif": { "url": "s3://raster/COP30/COP30_hh/Copernicus_DSM_COG_10_N53_00_W115_00_DEM.tif", "s3": { "anon": True, "client_kwargs": { "endpoint_url": "https://opentopography.s3.sdsc.edu", } } }, "Copernicus_DSM_COG_30_N53_00_W115_00_DEM.tif": { "url": "s3://raster/COP90/COP90_hh/Copernicus_DSM_COG_30_N53_00_W115_00_DEM.tif", "s3": { "anon": True, "client_kwargs": { "endpoint_url": "https://opentopography.s3.sdsc.edu", } } } })
31.384615
86
0.496324
85
816
4.258824
0.388235
0.143646
0.176796
0.121547
0.78453
0.78453
0.78453
0.78453
0.78453
0.723757
0
0.115308
0.383578
816
25
87
32.64
0.604374
0
0
0.416667
0
0
0.448529
0.281863
0
0
0
0
0
1
0
false
0
0.041667
0
0.041667
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
fb65d61f143957ee6457ff3fc8a82fa40b563e93
127
py
Python
tests/RunTests/PythonTests/test2011_008.py
maurizioabba/rose
7597292cf14da292bdb9a4ef573001b6c5b9b6c0
[ "BSD-3-Clause" ]
488
2015-01-09T08:54:48.000Z
2022-03-30T07:15:46.000Z
tests/RunTests/PythonTests/test2011_008.py
sujankh/rose-matlab
7435d4fa1941826c784ba97296c0ec55fa7d7c7e
[ "BSD-3-Clause" ]
174
2015-01-28T18:41:32.000Z
2022-03-31T16:51:05.000Z
tests/RunTests/PythonTests/test2011_008.py
sujankh/rose-matlab
7435d4fa1941826c784ba97296c0ec55fa7d7c7e
[ "BSD-3-Clause" ]
146
2015-04-27T02:48:34.000Z
2022-03-04T07:32:53.000Z
# test 'pass' TODO: add classes def foo(): pass def bar(): pass print "bar!" pass foo() bar() print "done"
8.466667
31
0.543307
18
127
3.833333
0.555556
0.202899
0
0
0
0
0
0
0
0
0
0
0.307087
127
14
32
9.071429
0.784091
0.228346
0
0.333333
0
0
0.083333
0
0
0
0
0.071429
0
0
null
null
0.333333
0
null
null
0.222222
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
1
0
0
1
0
0
0
0
0
5
fb787d9f08dd7a90b7a248ee9bf44f3b5f4a3a84
5,520
py
Python
tests/test_eidas_bridge_utils_crypto.py
EgzonIseini/eidas-bridge
afa19194e933bb1624fbd1c0ec1befee30dc05d0
[ "Apache-2.0" ]
8
2020-06-05T08:08:05.000Z
2021-08-06T10:37:37.000Z
tests/test_eidas_bridge_utils_crypto.py
EgzonIseini/eidas-bridge
afa19194e933bb1624fbd1c0ec1befee30dc05d0
[ "Apache-2.0" ]
3
2020-05-27T11:59:14.000Z
2020-07-31T09:49:05.000Z
tests/test_eidas_bridge_utils_crypto.py
EgzonIseini/eidas-bridge
afa19194e933bb1624fbd1c0ec1befee30dc05d0
[ "Apache-2.0" ]
5
2019-12-31T18:48:21.000Z
2021-09-07T11:03:11.000Z
#test_eidas_bridge_utils_crypto.py """ Unit test for cryptographic functions from eidas_bridge/utils/crypto.py file for eIDAS Library """ import pytest from cryptography import x509 from cryptography.hazmat.primitives import serialization from demo.data.common_data import eidas_inputs, bad_obj_type_paddings, paddings, bad_type_paddings, \ PKCS1v15_PADDING, PSS_PADDING from eidas_bridge.utils.crypto import x509_load_certificate_from_data_bytes, check_args_padding, \ InvalidPaddingException, InvalidSignatureException, get_public_key_from_x509cert_obj, \ get_public_key_from_x509cert_pem, rsa_verify_pss, rsa_verify_pkcs1, rsa_verify from cryptography.hazmat.backends import default_backend @pytest.mark.parametrize("padding", paddings) def test_check_args_padding(padding): check_args_padding(padding, str) pass @pytest.mark.parametrize("padding", bad_obj_type_paddings) def test_check_args_padding_bad_obj_type(padding): with pytest.raises(TypeError): check_args_padding(padding, str) @pytest.mark.parametrize("padding", bad_type_paddings) def test_check_args_padding_bad_type(padding): with pytest.raises(InvalidPaddingException): check_args_padding(padding, str) @pytest.mark.parametrize("eidas_input", eidas_inputs) def test_x509_load_certificate_from_data_bytes(eidas_input): internal_cert = x509_load_certificate_from_data_bytes((eidas_input[0]).encode()) expected_cert = x509.load_pem_x509_certificate((eidas_input[0]).encode(), default_backend()) assert internal_cert == expected_cert @pytest.mark.parametrize("eidas_input", eidas_inputs) def test_get_public_key_from_x509cert_obj(eidas_input): x509cert_obj = x509_load_certificate_from_data_bytes((eidas_input[0]).encode()) pub_key_expected = x509cert_obj.public_key().public_bytes( encoding=serialization.Encoding.PEM, format=serialization.PublicFormat.SubjectPublicKeyInfo ) returned_pub_key = get_public_key_from_x509cert_obj(x509cert_obj).public_bytes( encoding=serialization.Encoding.PEM, format=serialization.PublicFormat.SubjectPublicKeyInfo ) assert pub_key_expected == returned_pub_key @pytest.mark.parametrize("eidas_input", eidas_inputs) def test_get_public_key_from_x509cert_pem(eidas_input): x509cert_obj = x509_load_certificate_from_data_bytes((eidas_input[0]).encode()) pub_key_expected = x509cert_obj.public_key().public_bytes( encoding=serialization.Encoding.PEM, format=serialization.PublicFormat.SubjectPublicKeyInfo ) returned_pub_key = get_public_key_from_x509cert_pem((eidas_input[0]).encode()).public_bytes( encoding=serialization.Encoding.PEM, format=serialization.PublicFormat.SubjectPublicKeyInfo ) assert pub_key_expected == returned_pub_key @pytest.mark.parametrize("eidas_input", eidas_inputs) def test_rsa_verify_pss(eidas_input): if eidas_input[2] == PSS_PADDING: rsa_verify_pss( bytes.fromhex(eidas_input[1]), eidas_input[3].encode('utf-8'), get_public_key_from_x509cert_pem((eidas_input[0]).encode()) ) pass @pytest.mark.parametrize("eidas_input", eidas_inputs) def test_rsa_verify_pss_invalid_signature(eidas_input): if eidas_input[2] == PSS_PADDING: with pytest.raises(InvalidSignatureException): bad_signature = bytes.fromhex('e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855') rsa_verify_pss(bad_signature, eidas_input[3].encode('utf-8'), get_public_key_from_x509cert_pem((eidas_input[0]).encode())) @pytest.mark.parametrize("eidas_input", eidas_inputs) def test_rsa_verify_pkcs1(eidas_input): if eidas_input[2] == PKCS1v15_PADDING: rsa_verify_pkcs1(bytes.fromhex(eidas_input[1]), eidas_input[3].encode('utf-8'), get_public_key_from_x509cert_pem((eidas_input[0]).encode())) pass @pytest.mark.parametrize("eidas_input", eidas_inputs) def test_rsa_verify_pkcs1_invalid_signature(eidas_input): if eidas_input[2] == PKCS1v15_PADDING: with pytest.raises(InvalidSignatureException): bad_signature = bytes.fromhex('e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855') rsa_verify_pkcs1(bad_signature, eidas_input[3].encode('utf-8'), get_public_key_from_x509cert_pem((eidas_input[0]).encode())) """ @pytest.mark.parametrize("eidas_input", eidas_inputs) def test_rsa_verify(eidas_input): rsa_verify( bytes.fromhex(eidas_input[1]), eidas_input[3].encode('utf-8'), get_public_key_from_x509cert_pem((eidas_input[0]).encode()), eidas_input[2] ) pass @pytest.mark.parametrize("eidas_input", eidas_inputs) def test_rsa_verify_invalid_signature(eidas_input): with pytest.raises(InvalidSignatureException): bad_signature = bytes.fromhex('e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855') rsa_verify( bad_signature, eidas_input[3].encode('utf-8'), get_public_key_from_x509cert_pem((eidas_input[0]).encode()), eidas_input[2] ) """
48.421053
121
0.713406
642
5,520
5.719626
0.124611
0.119826
0.039216
0.052288
0.813998
0.759804
0.726307
0.726307
0.629902
0.616558
0
0.056357
0.196377
5,520
114
122
48.421053
0.771416
0.02337
0
0.481013
0
0
0.054293
0.02825
0
0
0
0
0.037975
1
0.126582
false
0.037975
0.075949
0
0.202532
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
fb98250ef348e2a6a575d3b531bfd220aedecd3e
241
py
Python
src/genie/libs/parser/ios/show_memory.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
204
2018-06-27T00:55:27.000Z
2022-03-06T21:12:18.000Z
src/genie/libs/parser/ios/show_memory.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
468
2018-06-19T00:33:18.000Z
2022-03-31T23:23:35.000Z
src/genie/libs/parser/ios/show_memory.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
309
2019-01-16T20:21:07.000Z
2022-03-30T12:56:41.000Z
"""show_memory.py """ from genie.libs.parser.iosxe.show_memory import ShowMemoryStatistics as ShowMemoryStatistics_iosxe class ShowMemoryStatistics(ShowMemoryStatistics_iosxe): """Parser for show memory statistics""" pass
24.1
98
0.771784
25
241
7.28
0.6
0.164835
0
0
0
0
0
0
0
0
0
0
0.145228
241
10
99
24.1
0.883495
0.19917
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
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
1
0
0
5
fbc9293204b13fcd8baf91f862ec29a5759b9d41
543
py
Python
aplicacao.py
AndreaFGLS/AndreaFGLS.trabalhoLMS
db4c6b59442a20ea6dfe9ae1f22d57fc231da5ca
[ "bzip2-1.0.6" ]
null
null
null
aplicacao.py
AndreaFGLS/AndreaFGLS.trabalhoLMS
db4c6b59442a20ea6dfe9ae1f22d57fc231da5ca
[ "bzip2-1.0.6" ]
null
null
null
aplicacao.py
AndreaFGLS/AndreaFGLS.trabalhoLMS
db4c6b59442a20ea6dfe9ae1f22d57fc231da5ca
[ "bzip2-1.0.6" ]
null
null
null
from flask import Flask, render_template app = Flask(__name__) @app.route('/index') def index(): return render_template ('index.html') @app.route('/detalhescurso') def detalhescurso(): return render_template ('detalhescurso.html') @app.route('/disciplina') def disciplina(): return render_template ('disciplina.html') @app.route('/listacurso') def listacurso(): return render_template ('listacurso.html') @app.route('/noticias') def noticias(): return render_template ('noticias.html') app.run()
20.884615
53
0.690608
61
543
5.983607
0.278689
0.230137
0.273973
0
0
0
0
0
0
0
0
0
0.158379
543
25
54
21.72
0.798687
0
0
0
0
0
0.224678
0
0
0
0
0
0
1
0.277778
false
0
0.055556
0.277778
0.611111
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
83836f345f0206c0ca05e8c26f76bfe5eb8a4df7
90
py
Python
python/ovstest/PaxHeaders.127271/__init__.py
ictyangye/ovs-c2ratelimiter
c0e1ada35b3b5f2524fbba6324c9e996e84ac9bc
[ "Apache-2.0" ]
null
null
null
python/ovstest/PaxHeaders.127271/__init__.py
ictyangye/ovs-c2ratelimiter
c0e1ada35b3b5f2524fbba6324c9e996e84ac9bc
[ "Apache-2.0" ]
null
null
null
python/ovstest/PaxHeaders.127271/__init__.py
ictyangye/ovs-c2ratelimiter
c0e1ada35b3b5f2524fbba6324c9e996e84ac9bc
[ "Apache-2.0" ]
null
null
null
30 mtime=1527291425.661873739 30 atime=1527291425.777874152 30 ctime=1527291454.701972757
22.5
29
0.866667
12
90
6.5
0.75
0
0
0
0
0
0
0
0
0
0
0.75
0.066667
90
3
30
30
0.178571
0
0
0
0
0
0
0
0
0
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
1
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
5
83d2d585e007962a12c244ffa67c8c4b880c2e8c
159
py
Python
hubcare/metrics/community_metrics/contribution_guide/admin.py
aleronupe/2019.1-hubcare-api
3f031eac9559a10fdcf70a88ee4c548cf93e4ac2
[ "MIT" ]
7
2019-03-31T17:58:45.000Z
2020-02-29T22:44:27.000Z
hubcare/metrics/community_metrics/contribution_guide/admin.py
aleronupe/2019.1-hubcare-api
3f031eac9559a10fdcf70a88ee4c548cf93e4ac2
[ "MIT" ]
90
2019-03-26T01:14:54.000Z
2021-06-10T21:30:25.000Z
hubcare/metrics/community_metrics/contribution_guide/admin.py
aleronupe/2019.1-hubcare-api
3f031eac9559a10fdcf70a88ee4c548cf93e4ac2
[ "MIT" ]
null
null
null
from django.contrib import admin from contribution_guide.models import ContributionGuide # Register your models here. admin.site.register(ContributionGuide)
22.714286
55
0.849057
19
159
7.052632
0.684211
0
0
0
0
0
0
0
0
0
0
0
0.100629
159
6
56
26.5
0.937063
0.163522
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
83e28bd1f0a18b7bd1cb5bfa2d851536ff6439a7
86
py
Python
manti_by/apps/blog/constants.py
manti-by/manti.by
233882fc5e5758ff92f0b7940316f15e4d30af07
[ "BSD-3-Clause" ]
1
2021-12-11T11:34:04.000Z
2021-12-11T11:34:04.000Z
manti_by/apps/blog/constants.py
manti-by/manti.by
233882fc5e5758ff92f0b7940316f15e4d30af07
[ "BSD-3-Clause" ]
11
2021-03-23T13:59:39.000Z
2022-02-02T10:16:58.000Z
manti_by/apps/blog/constants.py
manti-by/manti.by
233882fc5e5758ff92f0b7940316f15e4d30af07
[ "BSD-3-Clause" ]
null
null
null
MP3_PREVIEW = "mp3_preview" OGG_PREVIEW = "ogg_preview" OGG_RELEASE = "ogg_release"
14.333333
27
0.767442
12
86
5
0.333333
0.5
0.566667
0.666667
0
0
0
0
0
0
0
0.026667
0.127907
86
5
28
17.2
0.773333
0
0
0
0
0
0.383721
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
83f0423a0b192b2d7f89ba5b316405ae17a195f9
170
py
Python
notebooks/strips/cdalvaro/properties/__init__.py
cdalvaro/machine-learning-notebooks
ec0e5331d28acf3db1efb73312f966a0535376f7
[ "MIT" ]
2
2020-06-05T15:38:45.000Z
2021-11-23T01:37:09.000Z
notebooks/strips/cdalvaro/properties/__init__.py
cdalvaro/machine-learning-notebooks
ec0e5331d28acf3db1efb73312f966a0535376f7
[ "MIT" ]
null
null
null
notebooks/strips/cdalvaro/properties/__init__.py
cdalvaro/machine-learning-notebooks
ec0e5331d28acf3db1efb73312f966a0535376f7
[ "MIT" ]
null
null
null
from .base_property import BaseProperty, Properties from .at_position import AtPosition from .at_level import AtLevel, Level, TopLevel, GroundLevel from .has import Has
28.333333
59
0.829412
23
170
6
0.608696
0.086957
0
0
0
0
0
0
0
0
0
0
0.123529
170
5
60
34
0.926175
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
f7c27f5f64820b3330a277af0a9b157ad7cf7edd
157
py
Python
UCP/news_event/admin.py
BuildmLearn/University-Campus-Portal-UCP
3cac50bd58f2ef4365522a76a8378d0a6f599832
[ "BSD-3-Clause" ]
13
2016-04-24T10:44:28.000Z
2020-09-07T01:23:18.000Z
UCP/news_event/admin.py
BuildmLearn/University-Campus-Portal-UCP
3cac50bd58f2ef4365522a76a8378d0a6f599832
[ "BSD-3-Clause" ]
16
2016-09-05T10:35:41.000Z
2018-08-25T10:27:13.000Z
UCP/news_event/admin.py
BuildmLearn/University-Campus-Portal-UCP
3cac50bd58f2ef4365522a76a8378d0a6f599832
[ "BSD-3-Clause" ]
24
2016-06-25T08:20:12.000Z
2018-01-11T20:46:24.000Z
from django.contrib import admin from news_event.models import News, Event # Register your models here. admin.site.register(News) admin.site.register(Event)
26.166667
41
0.815287
24
157
5.291667
0.5
0.141732
0.267717
0
0
0
0
0
0
0
0
0
0.101911
157
6
42
26.166667
0.900709
0.165605
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
f7cf3ae3dc95785d858f523b6eb215485bed01a9
22
py
Python
imutils/ml/pretrain/__init__.py
JacobARose/image-utils
aa0e005c0b4df5198d188b074f4e21f8d8f97962
[ "MIT" ]
null
null
null
imutils/ml/pretrain/__init__.py
JacobARose/image-utils
aa0e005c0b4df5198d188b074f4e21f8d8f97962
[ "MIT" ]
null
null
null
imutils/ml/pretrain/__init__.py
JacobARose/image-utils
aa0e005c0b4df5198d188b074f4e21f8d8f97962
[ "MIT" ]
null
null
null
from . import lr_tuner
22
22
0.818182
4
22
4.25
1
0
0
0
0
0
0
0
0
0
0
0
0.136364
22
1
22
22
0.894737
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
f7e87c6589b591eff2ca87c030db0ab5125343ff
1,177
py
Python
ignition/dsl/flame/tensors/tests/test_tensor_names.py
IgnitionProject/ignition
0eeb3a7878d828bc3c06d2cb2dd781e17776a8a6
[ "BSD-2-Clause-FreeBSD" ]
7
2015-01-25T18:15:48.000Z
2022-03-09T17:39:12.000Z
ignition/dsl/flame/tensors/tests/test_tensor_names.py
IgnitionProject/ignition
0eeb3a7878d828bc3c06d2cb2dd781e17776a8a6
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
ignition/dsl/flame/tensors/tests/test_tensor_names.py
IgnitionProject/ignition
0eeb3a7878d828bc3c06d2cb2dd781e17776a8a6
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
from ignition.dsl.flame.tensors.tensor_names import (convert_name, add_lower_ind, add_upper_ind, set_lower_ind, set_upper_ind, to_latex) def test_convert_name(): assert(convert_name("A", 2) == "A") assert(convert_name("A", 1) == "a") assert(convert_name("A", 0) == "alpha") assert(convert_name("a", 2) == "A") assert(convert_name("a", 1) == "a") assert(convert_name("a", 0) == "alpha") assert(convert_name("alpha", 2) == "A") assert(convert_name("alpha", 1) == "a") assert(convert_name("alpha", 0) == "alpha") assert(convert_name("A_TL", 2) == "A_TL") assert(convert_name("a^T", 2) == "A^T") assert(convert_name("alpha_01", 2) == "A_01") assert(convert_name("foo_bar", 1) == "foo_bar") def test_inds(): assert(set_upper_ind("A", "TL") == "A^TL") assert(set_upper_ind("A_01", "TL") == "A_01^TL") assert(set_upper_ind("A_TL^T", "TL") == "A_TL^TL") assert(set_lower_ind("A", "TL") == "A_TL") assert(set_lower_ind("A_01", "TL") == "A_TL") assert(set_lower_ind("A_TL^T", "TL") == "A_TL^T") def test_to_latex(): assert(to_latex("A_01^T") == "A_{01}^T") assert(to_latex("alpha") == "\\alpha")
39.233333
73
0.606627
192
1,177
3.40625
0.161458
0.252294
0.33792
0.220183
0.561162
0.477064
0.380734
0.292049
0.221713
0.221713
0
0.0273
0.159728
1,177
29
74
40.586207
0.633974
0
0
0
0
0
0.147833
0
0
0
0
0
0.807692
1
0.115385
true
0
0.038462
0
0.153846
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
1
0
0
1
0
0
0
0
0
0
5
f7f180435308626def06d4e63816ad7524eddfce
24,660
py
Python
ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocolstack/vicclientrange_fb32e8ad9c7d9ce20dedea60df43b92a.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocolstack/vicclientrange_fb32e8ad9c7d9ce20dedea60df43b92a.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocolstack/vicclientrange_fb32e8ad9c7d9ce20dedea60df43b92a.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
# MIT LICENSE # # Copyright 1997 - 2020 by IXIA Keysight # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify, merge, publish, distribute, sublicense, # and/or sell copies of the Software, and to permit persons to whom the # Software is furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. from ixnetwork_restpy.base import Base from ixnetwork_restpy.files import Files class VicClientRange(Base): """Range settings for VIC protocol The VicClientRange class encapsulates a list of vicClientRange resources that are managed by the user. A list of resources can be retrieved from the server using the VicClientRange.find() method. The list can be managed by using the VicClientRange.add() and VicClientRange.remove() methods. """ __slots__ = () _SDM_NAME = 'vicClientRange' _SDM_ATT_MAP = { 'ChannelIdIncrement': 'channelIdIncrement', 'ChannelIdStart': 'channelIdStart', 'Enabled': 'enabled', 'MacsPerVif': 'macsPerVif', 'Name': 'name', 'ObjectId': 'objectId', 'ProvInfoOui': 'provInfoOui', 'ProvInfoTlvs': 'provInfoTlvs', 'ProvInfoType': 'provInfoType', 'TlvOffset': 'tlvOffset', 'VifActive': 'vifActive', } def __init__(self, parent): super(VicClientRange, self).__init__(parent) @property def ChannelIdIncrement(self): """ Returns ------- - number: The increment step for channel ID. """ return self._get_attribute(self._SDM_ATT_MAP['ChannelIdIncrement']) @ChannelIdIncrement.setter def ChannelIdIncrement(self, value): self._set_attribute(self._SDM_ATT_MAP['ChannelIdIncrement'], value) @property def ChannelIdStart(self): """ Returns ------- - number: The channel ID within VIC session. """ return self._get_attribute(self._SDM_ATT_MAP['ChannelIdStart']) @ChannelIdStart.setter def ChannelIdStart(self, value): self._set_attribute(self._SDM_ATT_MAP['ChannelIdStart'], value) @property def Enabled(self): """ Returns ------- - bool: Disabled ranges won't be configured nor validated. """ return self._get_attribute(self._SDM_ATT_MAP['Enabled']) @Enabled.setter def Enabled(self, value): self._set_attribute(self._SDM_ATT_MAP['Enabled'], value) @property def MacsPerVif(self): """ Returns ------- - number: Number of MAC interfaces managed by a single VIF object. """ return self._get_attribute(self._SDM_ATT_MAP['MacsPerVif']) @MacsPerVif.setter def MacsPerVif(self, value): self._set_attribute(self._SDM_ATT_MAP['MacsPerVif'], value) @property def Name(self): """ Returns ------- - str: Name of range """ return self._get_attribute(self._SDM_ATT_MAP['Name']) @Name.setter def Name(self, value): self._set_attribute(self._SDM_ATT_MAP['Name'], value) @property def ObjectId(self): """ Returns ------- - str: Unique identifier for this object """ return self._get_attribute(self._SDM_ATT_MAP['ObjectId']) @property def ProvInfoOui(self): """ Returns ------- - str: IEEE OUI owning the provisioning information type space. """ return self._get_attribute(self._SDM_ATT_MAP['ProvInfoOui']) @ProvInfoOui.setter def ProvInfoOui(self, value): self._set_attribute(self._SDM_ATT_MAP['ProvInfoOui'], value) @property def ProvInfoTlvs(self): """ Returns ------- - str(None | /api/v1/sessions/1/ixnetwork/globals/.../vicOptionSet): The provisioning TLVs associated with this range. """ return self._get_attribute(self._SDM_ATT_MAP['ProvInfoTlvs']) @ProvInfoTlvs.setter def ProvInfoTlvs(self, value): self._set_attribute(self._SDM_ATT_MAP['ProvInfoTlvs'], value) @property def ProvInfoType(self): """ Returns ------- - number: The type of the provisioning information (defined in each namespace). """ return self._get_attribute(self._SDM_ATT_MAP['ProvInfoType']) @ProvInfoType.setter def ProvInfoType(self, value): self._set_attribute(self._SDM_ATT_MAP['ProvInfoType'], value) @property def TlvOffset(self): """ Returns ------- - number: The number of TLV increments to apply before using the TLV values for this range. """ return self._get_attribute(self._SDM_ATT_MAP['TlvOffset']) @TlvOffset.setter def TlvOffset(self, value): self._set_attribute(self._SDM_ATT_MAP['TlvOffset'], value) @property def VifActive(self): """ Returns ------- - bool: The initial state of this interface set: true for Active, false for Standby. """ return self._get_attribute(self._SDM_ATT_MAP['VifActive']) @VifActive.setter def VifActive(self, value): self._set_attribute(self._SDM_ATT_MAP['VifActive'], value) def update(self, ChannelIdIncrement=None, ChannelIdStart=None, Enabled=None, MacsPerVif=None, Name=None, ProvInfoOui=None, ProvInfoTlvs=None, ProvInfoType=None, TlvOffset=None, VifActive=None): """Updates vicClientRange resource on the server. Args ---- - ChannelIdIncrement (number): The increment step for channel ID. - ChannelIdStart (number): The channel ID within VIC session. - Enabled (bool): Disabled ranges won't be configured nor validated. - MacsPerVif (number): Number of MAC interfaces managed by a single VIF object. - Name (str): Name of range - ProvInfoOui (str): IEEE OUI owning the provisioning information type space. - ProvInfoTlvs (str(None | /api/v1/sessions/1/ixnetwork/globals/.../vicOptionSet)): The provisioning TLVs associated with this range. - ProvInfoType (number): The type of the provisioning information (defined in each namespace). - TlvOffset (number): The number of TLV increments to apply before using the TLV values for this range. - VifActive (bool): The initial state of this interface set: true for Active, false for Standby. Raises ------ - ServerError: The server has encountered an uncategorized error condition """ return self._update(self._map_locals(self._SDM_ATT_MAP, locals())) def add(self, ChannelIdIncrement=None, ChannelIdStart=None, Enabled=None, MacsPerVif=None, Name=None, ProvInfoOui=None, ProvInfoTlvs=None, ProvInfoType=None, TlvOffset=None, VifActive=None): """Adds a new vicClientRange resource on the server and adds it to the container. Args ---- - ChannelIdIncrement (number): The increment step for channel ID. - ChannelIdStart (number): The channel ID within VIC session. - Enabled (bool): Disabled ranges won't be configured nor validated. - MacsPerVif (number): Number of MAC interfaces managed by a single VIF object. - Name (str): Name of range - ProvInfoOui (str): IEEE OUI owning the provisioning information type space. - ProvInfoTlvs (str(None | /api/v1/sessions/1/ixnetwork/globals/.../vicOptionSet)): The provisioning TLVs associated with this range. - ProvInfoType (number): The type of the provisioning information (defined in each namespace). - TlvOffset (number): The number of TLV increments to apply before using the TLV values for this range. - VifActive (bool): The initial state of this interface set: true for Active, false for Standby. Returns ------- - self: This instance with all currently retrieved vicClientRange resources using find and the newly added vicClientRange resources available through an iterator or index Raises ------ - ServerError: The server has encountered an uncategorized error condition """ return self._create(self._map_locals(self._SDM_ATT_MAP, locals())) def remove(self): """Deletes all the contained vicClientRange resources in this instance from the server. Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition """ self._delete() def find(self, ChannelIdIncrement=None, ChannelIdStart=None, Enabled=None, MacsPerVif=None, Name=None, ObjectId=None, ProvInfoOui=None, ProvInfoTlvs=None, ProvInfoType=None, TlvOffset=None, VifActive=None): """Finds and retrieves vicClientRange resources from the server. All named parameters are evaluated on the server using regex. The named parameters can be used to selectively retrieve vicClientRange resources from the server. To retrieve an exact match ensure the parameter value starts with ^ and ends with $ By default the find method takes no parameters and will retrieve all vicClientRange resources from the server. Args ---- - ChannelIdIncrement (number): The increment step for channel ID. - ChannelIdStart (number): The channel ID within VIC session. - Enabled (bool): Disabled ranges won't be configured nor validated. - MacsPerVif (number): Number of MAC interfaces managed by a single VIF object. - Name (str): Name of range - ObjectId (str): Unique identifier for this object - ProvInfoOui (str): IEEE OUI owning the provisioning information type space. - ProvInfoTlvs (str(None | /api/v1/sessions/1/ixnetwork/globals/.../vicOptionSet)): The provisioning TLVs associated with this range. - ProvInfoType (number): The type of the provisioning information (defined in each namespace). - TlvOffset (number): The number of TLV increments to apply before using the TLV values for this range. - VifActive (bool): The initial state of this interface set: true for Active, false for Standby. Returns ------- - self: This instance with matching vicClientRange resources retrieved from the server available through an iterator or index Raises ------ - ServerError: The server has encountered an uncategorized error condition """ return self._select(self._map_locals(self._SDM_ATT_MAP, locals())) def read(self, href): """Retrieves a single instance of vicClientRange data from the server. Args ---- - href (str): An href to the instance to be retrieved Returns ------- - self: This instance with the vicClientRange resources from the server available through an iterator or index Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition """ return self._read(href) def CustomProtocolStack(self, *args, **kwargs): """Executes the customProtocolStack operation on the server. Create custom protocol stack under /vport/protocolStack customProtocolStack(Arg2=list, Arg3=enum) ----------------------------------------- - Arg2 (list(str)): List of plugin types to be added in the new custom stack - Arg3 (str(kAppend | kMerge | kOverwrite)): Append, merge or overwrite existing protocol stack Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition """ payload = { "Arg1": self } for i in range(len(args)): payload['Arg%s' % (i + 2)] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('customProtocolStack', payload=payload, response_object=None) def DisableProtocolStack(self, *args, **kwargs): """Executes the disableProtocolStack operation on the server. Disable a protocol under protocolStack using the class name disableProtocolStack(Arg2=string)string --------------------------------------- - Arg2 (str): Protocol class name to disable - Returns str: Status of the exec Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition """ payload = { "Arg1": self.href } for i in range(len(args)): payload['Arg%s' % (i + 2)] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('disableProtocolStack', payload=payload, response_object=None) def EnableProtocolStack(self, *args, **kwargs): """Executes the enableProtocolStack operation on the server. Enable a protocol under protocolStack using the class name enableProtocolStack(Arg2=string)string -------------------------------------- - Arg2 (str): Protocol class name to enable - Returns str: Status of the exec Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition """ payload = { "Arg1": self.href } for i in range(len(args)): payload['Arg%s' % (i + 2)] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('enableProtocolStack', payload=payload, response_object=None) def VicClientActivate(self): """Executes the vicClientActivate operation on the server. Send VIF-ACTIVATE for selected ranges Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition """ payload = { "Arg1": self } return self._execute('vicClientActivate', payload=payload, response_object=None) def VicClientCreate(self): """Executes the vicClientCreate operation on the server. Send VIF-CREATE for selected ranges Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition """ payload = { "Arg1": self } return self._execute('vicClientCreate', payload=payload, response_object=None) def VicClientDeactivate(self): """Executes the vicClientDeactivate operation on the server. Send VIF-DEACTIVATE for selected ranges Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition """ payload = { "Arg1": self } return self._execute('vicClientDeactivate', payload=payload, response_object=None) def VicClientDelete(self): """Executes the vicClientDelete operation on the server. Send VIF-DELETE for selected ranges Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition """ payload = { "Arg1": self } return self._execute('vicClientDelete', payload=payload, response_object=None) def VicClientDisable(self): """Executes the vicClientDisable operation on the server. Send VIF-DISABLE for selected ranges Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition """ payload = { "Arg1": self } return self._execute('vicClientDisable', payload=payload, response_object=None) def VicClientEnable(self): """Executes the vicClientEnable operation on the server. Send VIF-ENABLE for selected ranges Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition """ payload = { "Arg1": self } return self._execute('vicClientEnable', payload=payload, response_object=None) def VicClientStart(self, *args, **kwargs): """Executes the vicClientStart operation on the server. Negotiate VIC sessions for selected ranges The IxNetwork model allows for multiple method Signatures with the same name while python does not. vicClientStart(Arg2=enum) ------------------------- - Arg2 (str(async | sync)): kArray[kObjref=/vport/protocolStack/ethernet/dcbxEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/dhcpEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/dhcpServerEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/emulatedRouter/dhcpEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/emulatedRouter/dhcpServerEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/emulatedRouter/ip/egtpPcrfEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/emulatedRouter/ip/egtpPcrfS5S8SgwEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/emulatedRouter/ip/egtpS5S8PgwEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/emulatedRouter/ip/egtpS5S8SgwEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/emulatedRouter/ip/egtpSgwEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/emulatedRouter/ip/egtpUeS5S8SgwEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/emulatedRouter/ip/l2tp/dhcpoLacEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/emulatedRouter/ip/l2tp/dhcpoLnsEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/emulatedRouter/ip/l2tpEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/emulatedRouter/ip/smDnsEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/emulatedRouter/ipEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/emulatedRouterEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/fcoeClientEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/fcoeFwdEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/ip/egtpPcrfEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/ip/egtpPcrfS5S8SgwEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/ip/egtpS5S8PgwEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/ip/egtpS5S8SgwEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/ip/egtpSgwEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/ip/egtpUeS5S8SgwEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/ip/l2tp/dhcpoLacEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/ip/l2tp/dhcpoLnsEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/ip/l2tpEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/ip/smDnsEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/ipEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/pppox/dhcpoPppClientEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/pppox/dhcpoPppServerEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/pppoxEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/vepaEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/vicClient,/vport/protocolStack/ethernetEndpoint/range/vicClientRange,/vport/protocolStack/ethernetEndpoint/vicClient] Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition """ payload = { "Arg1": self } for i in range(len(args)): payload['Arg%s' % (i + 2)] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('vicClientStart', payload=payload, response_object=None) def VicClientStop(self, *args, **kwargs): """Executes the vicClientStop operation on the server. Teardown VIC sessions for selected ranges The IxNetwork model allows for multiple method Signatures with the same name while python does not. vicClientStop(Arg2=enum) ------------------------ - Arg2 (str(async | sync)): kArray[kObjref=/vport/protocolStack/ethernet/dcbxEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/dhcpEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/dhcpServerEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/emulatedRouter/dhcpEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/emulatedRouter/dhcpServerEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/emulatedRouter/ip/egtpPcrfEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/emulatedRouter/ip/egtpPcrfS5S8SgwEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/emulatedRouter/ip/egtpS5S8PgwEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/emulatedRouter/ip/egtpS5S8SgwEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/emulatedRouter/ip/egtpSgwEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/emulatedRouter/ip/egtpUeS5S8SgwEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/emulatedRouter/ip/l2tp/dhcpoLacEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/emulatedRouter/ip/l2tp/dhcpoLnsEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/emulatedRouter/ip/l2tpEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/emulatedRouter/ip/smDnsEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/emulatedRouter/ipEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/emulatedRouterEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/fcoeClientEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/fcoeFwdEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/ip/egtpPcrfEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/ip/egtpPcrfS5S8SgwEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/ip/egtpS5S8PgwEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/ip/egtpS5S8SgwEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/ip/egtpSgwEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/ip/egtpUeS5S8SgwEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/ip/l2tp/dhcpoLacEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/ip/l2tp/dhcpoLnsEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/ip/l2tpEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/ip/smDnsEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/ipEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/pppox/dhcpoPppClientEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/pppox/dhcpoPppServerEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/pppoxEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/vepaEndpoint/range/vicClientRange,/vport/protocolStack/ethernet/vicClient,/vport/protocolStack/ethernetEndpoint/range/vicClientRange,/vport/protocolStack/ethernetEndpoint/vicClient] Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition """ payload = { "Arg1": self } for i in range(len(args)): payload['Arg%s' % (i + 2)] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('vicClientStop', payload=payload, response_object=None)
52.805139
2,809
0.707015
2,691
24,660
6.417317
0.131178
0.078175
0.105391
0.14998
0.769645
0.744977
0.699693
0.695755
0.678499
0.633216
0
0.004924
0.192903
24,660
466
2,810
52.918455
0.862734
0.647283
0
0.235294
0
0
0.104103
0
0
0
0
0
0
1
0.279412
false
0
0.014706
0
0.514706
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
5
79142f6d0e79609f93a0b3321fb32823b0937cf1
151
py
Python
cride/rides/admin.py
LhernerRemon/Rider
30783cf58513698d23730f5fa477dfeddda8ee6b
[ "MIT" ]
null
null
null
cride/rides/admin.py
LhernerRemon/Rider
30783cf58513698d23730f5fa477dfeddda8ee6b
[ "MIT" ]
null
null
null
cride/rides/admin.py
LhernerRemon/Rider
30783cf58513698d23730f5fa477dfeddda8ee6b
[ "MIT" ]
null
null
null
#Django from django.contrib import admin #Model from cride.rides.models import Ride @admin.register(Ride) class RideAdmin(admin.ModelAdmin): pass
16.777778
35
0.788079
21
151
5.666667
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.125828
151
9
36
16.777778
0.901515
0.072848
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.2
0.4
0
0.6
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
0
0
0
5
7932b99e495c62754eb6de49d9a4ebef4752ce88
52
py
Python
main.py
kctzstyle/git-actions-tutorial
79f322b5c63351ea1819f4c1d709dee614a533bf
[ "MIT" ]
null
null
null
main.py
kctzstyle/git-actions-tutorial
79f322b5c63351ea1819f4c1d709dee614a533bf
[ "MIT" ]
null
null
null
main.py
kctzstyle/git-actions-tutorial
79f322b5c63351ea1819f4c1d709dee614a533bf
[ "MIT" ]
null
null
null
print('My First GitHub Actions!') print('Run main')
17.333333
33
0.711538
8
52
4.625
0.875
0
0
0
0
0
0
0
0
0
0
0
0.115385
52
2
34
26
0.804348
0
0
0
0
0
0.615385
0
0
0
0
0
0
1
0
true
0
0
0
0
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
1
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
5
793b6d43751e812daf83b8ccfb7c4de2e7b06010
119
py
Python
data/dataset/__init__.py
ming71/SLA
7024b093bc0d456b274314ebeae3bc500c2db65a
[ "MIT" ]
9
2021-05-26T05:51:19.000Z
2021-12-25T02:31:55.000Z
data/dataset/__init__.py
ming71/SLA
7024b093bc0d456b274314ebeae3bc500c2db65a
[ "MIT" ]
4
2021-09-17T11:24:20.000Z
2022-03-16T02:07:33.000Z
data/dataset/__init__.py
ming71/SLA
7024b093bc0d456b274314ebeae3bc500c2db65a
[ "MIT" ]
null
null
null
from .dataset import DetDataset from .dota import DOTA from .hrsc2016 import HRSC2016 from .ucas_aod import UCAS_AOD
17
31
0.815126
18
119
5.277778
0.444444
0.147368
0
0
0
0
0
0
0
0
0
0.079208
0.151261
119
6
32
19.833333
0.861386
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
f702d8d44ce7219920cb5618642b42930ac1bfe7
48
py
Python
datasets/__init__.py
riccardodelutio/superpixel_fcn
d30a690836d7d6673b0a9f136019779f9e753f84
[ "MIT" ]
291
2020-03-25T17:37:46.000Z
2022-03-31T12:32:29.000Z
datasets/__init__.py
wangyxxjtu/PCNet
ae4db30eeab92a1cbb30c6ef1c9878d8dbddbaf8
[ "MIT" ]
32
2020-04-05T09:01:25.000Z
2022-03-13T00:37:12.000Z
datasets/__init__.py
wangyxxjtu/PCNet
ae4db30eeab92a1cbb30c6ef1c9878d8dbddbaf8
[ "MIT" ]
71
2020-04-02T01:03:52.000Z
2022-03-25T12:12:11.000Z
from .BSD500 import BSD500 __all__ = ('BSD500')
16
26
0.729167
6
48
5.166667
0.666667
0
0
0
0
0
0
0
0
0
0
0.219512
0.145833
48
2
27
24
0.536585
0
0
0
0
0
0.125
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
1
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
f76d64257eb711550446c4156f193f3c4dda02f7
94
py
Python
backend/schedule/admin.py
LloydTao/Hackathon-NASA-2020-II
6617f2dd3bafe1ccf5f086090c4fb92cae69012c
[ "MIT" ]
null
null
null
backend/schedule/admin.py
LloydTao/Hackathon-NASA-2020-II
6617f2dd3bafe1ccf5f086090c4fb92cae69012c
[ "MIT" ]
1
2020-10-03T08:24:12.000Z
2020-10-03T08:24:12.000Z
backend/schedule/admin.py
LloydTao/Hackathon-NASA-2020-II
6617f2dd3bafe1ccf5f086090c4fb92cae69012c
[ "MIT" ]
1
2020-10-04T11:07:12.000Z
2020-10-04T11:07:12.000Z
from django.contrib import admin from .models import Schedule admin.site.register(Schedule)
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
f7747f51a298c043df90d448b0c6acf7ea057797
267
py
Python
pyramda/logic/__init__.py
sergiors/pyramda
5bf200888809b1bc946e813e29460f204bccd13e
[ "MIT" ]
124
2015-07-30T21:34:25.000Z
2022-02-19T08:45:50.000Z
pyramda/logic/__init__.py
sergiors/pyramda
5bf200888809b1bc946e813e29460f204bccd13e
[ "MIT" ]
37
2015-08-31T23:02:20.000Z
2022-02-04T04:45:28.000Z
pyramda/logic/__init__.py
sergiors/pyramda
5bf200888809b1bc946e813e29460f204bccd13e
[ "MIT" ]
20
2015-08-04T18:59:09.000Z
2021-12-13T08:08:59.000Z
from .all_pass import all_pass from .and_func import and_func from .any_pass import any_pass from .both import both from .complement import complement from .either import either from .if_else import if_else from .not_func import not_func from .or_func import or_func
26.7
34
0.831461
48
267
4.375
0.291667
0.142857
0
0
0
0
0
0
0
0
0
0
0.134831
267
9
35
29.666667
0.909091
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.222222
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
1
0
0
5
f785bc9dfa942561b3c58fb916a0c5e173ca105e
487
py
Python
day06/test_main.py
aschmied/advent-of-code-2020
4112cebaf4dc4c6a931824da89ab894d21595673
[ "BSD-2-Clause" ]
null
null
null
day06/test_main.py
aschmied/advent-of-code-2020
4112cebaf4dc4c6a931824da89ab894d21595673
[ "BSD-2-Clause" ]
null
null
null
day06/test_main.py
aschmied/advent-of-code-2020
4112cebaf4dc4c6a931824da89ab894d21595673
[ "BSD-2-Clause" ]
null
null
null
import unittest from main import intersection_of_chars class TestIntersectionOfChars(unittest.TestCase): def test_empty(self): self.assertEqual(intersection_of_chars([]), set()) def test_one_string(self): self.assertEqual(intersection_of_chars(['abc']), set(list('abc'))) def test_many_strings(self): self.assertEqual(intersection_of_chars(['abc', 'ab', 'c']), set()) self.assertEqual(intersection_of_chars(['abc', 'ab', 'ac']), set('a'))
32.466667
78
0.689938
60
487
5.35
0.433333
0.218069
0.29595
0.361371
0.501558
0.501558
0.383178
0
0
0
0
0
0.151951
487
14
79
34.785714
0.77724
0
0
0
0
0
0.041068
0
0
0
0
0
0.4
1
0.3
false
0
0.2
0
0.6
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
e3a780fa466413cf40db1b3084565d5504165bc2
198
py
Python
Factory/EllipsePen.py
aurora314156/Design-Pattern_python
f00982dd32b2b7ac3698b8a673c23d2f534aeefb
[ "MIT" ]
null
null
null
Factory/EllipsePen.py
aurora314156/Design-Pattern_python
f00982dd32b2b7ac3698b8a673c23d2f534aeefb
[ "MIT" ]
null
null
null
Factory/EllipsePen.py
aurora314156/Design-Pattern_python
f00982dd32b2b7ac3698b8a673c23d2f534aeefb
[ "MIT" ]
null
null
null
from Pen import Pen from PenType import PenType class EllipsePen(Pen): def __init__(self, name): super().__init__(name) def getType(self): return PenType.PenTypeEllipse
22
37
0.681818
24
198
5.291667
0.583333
0
0
0
0
0
0
0
0
0
0
0
0.237374
198
9
37
22
0.84106
0
0
0
0
0
0
0
0
0
0
0
0
1
0.285714
false
0
0.285714
0.142857
0.857143
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
e3abdbca084f151308388652ec132885ddeac7f2
8,451
py
Python
libs/python/qumranica/models/__init__.py
Scripta-Qumranica-Electronica/SQE_API_Connectors
aaa9b9eb8709d4257c32ea57321a179c6b1e041a
[ "MIT" ]
null
null
null
libs/python/qumranica/models/__init__.py
Scripta-Qumranica-Electronica/SQE_API_Connectors
aaa9b9eb8709d4257c32ea57321a179c6b1e041a
[ "MIT" ]
null
null
null
libs/python/qumranica/models/__init__.py
Scripta-Qumranica-Electronica/SQE_API_Connectors
aaa9b9eb8709d4257c32ea57321a179c6b1e041a
[ "MIT" ]
null
null
null
# coding: utf-8 # flake8: noqa """ SQE API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import # import models into model package from qumranica.models.account_activation_request_dto import AccountActivationRequestDTO from qumranica.models.admin_editor_request_dto import AdminEditorRequestDTO from qumranica.models.admin_editor_request_list_dto import AdminEditorRequestListDTO from qumranica.models.artefact_dto import ArtefactDTO from qumranica.models.artefact_data_dto import ArtefactDataDTO from qumranica.models.artefact_data_list_dto import ArtefactDataListDTO from qumranica.models.artefact_group_dto import ArtefactGroupDTO from qumranica.models.artefact_group_list_dto import ArtefactGroupListDTO from qumranica.models.artefact_list_dto import ArtefactListDTO from qumranica.models.artefact_text_fragment_match_dto import ArtefactTextFragmentMatchDTO from qumranica.models.artefact_text_fragment_match_list_dto import ArtefactTextFragmentMatchListDTO from qumranica.models.attribute_dto import AttributeDTO from qumranica.models.attribute_list_dto import AttributeListDTO from qumranica.models.attribute_value_dto import AttributeValueDTO from qumranica.models.batch_edit_roi_dto import BatchEditRoiDTO from qumranica.models.batch_edit_roi_response_dto import BatchEditRoiResponseDTO from qumranica.models.batch_update_artefact_placement_dto import BatchUpdateArtefactPlacementDTO from qumranica.models.batch_updated_artefact_transform_dto import BatchUpdatedArtefactTransformDTO from qumranica.models.catalogue_match_dto import CatalogueMatchDTO from qumranica.models.catalogue_match_input_dto import CatalogueMatchInputDTO from qumranica.models.catalogue_match_list_dto import CatalogueMatchListDTO from qumranica.models.character_shape_dto import CharacterShapeDTO from qumranica.models.commentary_create_dto import CommentaryCreateDTO from qumranica.models.commentary_dto import CommentaryDTO from qumranica.models.create_artefact_dto import CreateArtefactDTO from qumranica.models.create_artefact_group_dto import CreateArtefactGroupDTO from qumranica.models.create_attribute_dto import CreateAttributeDTO from qumranica.models.create_attribute_value_dto import CreateAttributeValueDTO from qumranica.models.create_text_fragment_dto import CreateTextFragmentDTO from qumranica.models.delete_dto import DeleteDTO from qumranica.models.delete_token_dto import DeleteTokenDTO from qumranica.models.detailed_editor_rights_dto import DetailedEditorRightsDTO from qumranica.models.detailed_user_dto import DetailedUserDTO from qumranica.models.detailed_user_token_dto import DetailedUserTokenDTO from qumranica.models.direction import Direction from qumranica.models.edition_copy_dto import EditionCopyDTO from qumranica.models.edition_dto import EditionDTO from qumranica.models.edition_entities import EditionEntities from qumranica.models.edition_group_dto import EditionGroupDTO from qumranica.models.edition_list_dto import EditionListDTO from qumranica.models.edition_manuscript_metrics_dto import EditionManuscriptMetricsDTO from qumranica.models.edition_script_collection_dto import EditionScriptCollectionDTO from qumranica.models.edition_script_lines_dto import EditionScriptLinesDTO from qumranica.models.edition_update_request_dto import EditionUpdateRequestDTO from qumranica.models.editor_dto import EditorDTO from qumranica.models.editor_invitation_dto import EditorInvitationDTO from qumranica.models.editor_invitation_list_dto import EditorInvitationListDTO from qumranica.models.image_dto import ImageDTO from qumranica.models.image_institution_dto import ImageInstitutionDTO from qumranica.models.image_institution_list_dto import ImageInstitutionListDTO from qumranica.models.image_stack_dto import ImageStackDTO from qumranica.models.imaged_object_dto import ImagedObjectDTO from qumranica.models.imaged_object_list_dto import ImagedObjectListDTO from qumranica.models.imaged_object_text_fragment_match_dto import ImagedObjectTextFragmentMatchDTO from qumranica.models.imaged_object_text_fragment_match_list_dto import ImagedObjectTextFragmentMatchListDTO from qumranica.models.institutional_image_dto import InstitutionalImageDTO from qumranica.models.institutional_image_list_dto import InstitutionalImageListDTO from qumranica.models.interpretation_attribute_create_dto import InterpretationAttributeCreateDTO from qumranica.models.interpretation_attribute_dto import InterpretationAttributeDTO from qumranica.models.interpretation_roi_dto import InterpretationRoiDTO from qumranica.models.interpretation_roi_dto_list import InterpretationRoiDTOList from qumranica.models.invite_editor_dto import InviteEditorDTO from qumranica.models.lighting import Lighting from qumranica.models.line_dto import LineDTO from qumranica.models.line_data_dto import LineDataDTO from qumranica.models.line_data_list_dto import LineDataListDTO from qumranica.models.line_text_dto import LineTextDTO from qumranica.models.login_request_dto import LoginRequestDTO from qumranica.models.new_user_request_dto import NewUserRequestDTO from qumranica.models.next_sign_interpretation_dto import NextSignInterpretationDTO from qumranica.models.permission_dto import PermissionDTO from qumranica.models.placement_dto import PlacementDTO from qumranica.models.resend_user_account_activation_request_dto import ResendUserAccountActivationRequestDTO from qumranica.models.reset_forgotten_user_password_request_dto import ResetForgottenUserPasswordRequestDTO from qumranica.models.reset_logged_in_user_password_request_dto import ResetLoggedInUserPasswordRequestDTO from qumranica.models.reset_user_password_request_dto import ResetUserPasswordRequestDTO from qumranica.models.script_artefact_characters_dto import ScriptArtefactCharactersDTO from qumranica.models.script_line_dto import ScriptLineDTO from qumranica.models.script_text_fragment_dto import ScriptTextFragmentDTO from qumranica.models.set_interpretation_roi_dto import SetInterpretationRoiDTO from qumranica.models.set_interpretation_roi_dto_list import SetInterpretationRoiDTOList from qumranica.models.side_designation import SideDesignation from qumranica.models.sign_dto import SignDTO from qumranica.models.sign_interpretation_create_dto import SignInterpretationCreateDTO from qumranica.models.sign_interpretation_dto import SignInterpretationDTO from qumranica.models.sign_interpretation_list_dto import SignInterpretationListDTO from qumranica.models.simple_image_dto import SimpleImageDTO from qumranica.models.simple_image_list_dto import SimpleImageListDTO from qumranica.models.text_edition_dto import TextEditionDTO from qumranica.models.text_fragment_dto import TextFragmentDTO from qumranica.models.text_fragment_data_dto import TextFragmentDataDTO from qumranica.models.text_fragment_data_list_dto import TextFragmentDataListDTO from qumranica.models.translate_dto import TranslateDTO from qumranica.models.unactivated_email_update_request_dto import UnactivatedEmailUpdateRequestDTO from qumranica.models.update_artefact_dto import UpdateArtefactDTO from qumranica.models.update_artefact_group_dto import UpdateArtefactGroupDTO from qumranica.models.update_artefact_placement_dto import UpdateArtefactPlacementDTO from qumranica.models.update_attribute_dto import UpdateAttributeDTO from qumranica.models.update_attribute_value_dto import UpdateAttributeValueDTO from qumranica.models.update_edition_manuscript_metrics_dto import UpdateEditionManuscriptMetricsDTO from qumranica.models.update_editor_rights_dto import UpdateEditorRightsDTO from qumranica.models.update_interpretation_roi_dto import UpdateInterpretationRoiDTO from qumranica.models.update_interpretation_roi_dto_list import UpdateInterpretationRoiDTOList from qumranica.models.update_text_fragment_dto import UpdateTextFragmentDTO from qumranica.models.updated_artefact_placement_dto import UpdatedArtefactPlacementDTO from qumranica.models.updated_interpretation_roi_dto import UpdatedInterpretationRoiDTO from qumranica.models.updated_interpretation_roi_dto_list import UpdatedInterpretationRoiDTOList from qumranica.models.user_dto import UserDTO from qumranica.models.user_update_request_dto import UserUpdateRequestDTO from qumranica.models.wkt_polygon_dto import WktPolygonDTO
66.543307
124
0.91078
991
8,451
7.473259
0.218971
0.193087
0.282204
0.033756
0.31758
0.10262
0.060762
0.012962
0
0
0
0.000755
0.059638
8,451
126
125
67.071429
0.931169
0.032659
0
0
1
0
0
0
0
0
0
0
0
1
0
true
0.027027
1
0
1
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
e3b717d6bb790e4129c8f2b2714c172eaba9557b
95
py
Python
lithops/storage/backends/infinispan/__init__.py
kpavel/lithops
395eef8b283512bd714d3633dcd94258e1df620c
[ "Apache-2.0" ]
158
2020-09-16T13:22:03.000Z
2022-03-28T20:01:31.000Z
lithops/storage/backends/infinispan/__init__.py
kpavel/lithops
395eef8b283512bd714d3633dcd94258e1df620c
[ "Apache-2.0" ]
256
2018-05-20T13:01:51.000Z
2020-09-16T09:09:54.000Z
lithops/storage/backends/infinispan/__init__.py
kpavel/lithops
395eef8b283512bd714d3633dcd94258e1df620c
[ "Apache-2.0" ]
48
2020-09-19T15:29:53.000Z
2022-03-23T17:08:24.000Z
from lithops.storage.backends.infinispan.infinispan import InfinispanBackend as StorageBackend
47.5
94
0.894737
10
95
8.5
0.9
0
0
0
0
0
0
0
0
0
0
0
0.063158
95
1
95
95
0.955056
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
e3cd1dd1eb644b6e3d79956fa3eddf0c3f232445
54
py
Python
bayesaxs/basis/__init__.py
mariuskausas/bayesaxs
7eb85425a082b20b047767384af79e9b15201e20
[ "MIT" ]
null
null
null
bayesaxs/basis/__init__.py
mariuskausas/bayesaxs
7eb85425a082b20b047767384af79e9b15201e20
[ "MIT" ]
8
2019-10-02T18:05:29.000Z
2020-01-04T23:14:23.000Z
bayesaxs/basis/__init__.py
mariuskausas/bayesaxs
7eb85425a082b20b047767384af79e9b15201e20
[ "MIT" ]
null
null
null
from .curve import Curve from .scatter import Scatter
18
28
0.814815
8
54
5.5
0.5
0
0
0
0
0
0
0
0
0
0
0
0.148148
54
2
29
27
0.956522
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
e3ebd07f82901c2366bb9f6f8736a6b88a8fa244
213
py
Python
samples/LuceneInAction/MultiPhraseQueryTest.py
romanchyla/pylucene-trunk
990079ff0c76b972ce5ef2bac9b85334a0a1f27a
[ "Apache-2.0" ]
15
2015-05-21T09:28:01.000Z
2022-03-18T23:41:49.000Z
samples/LuceneInAction/MultiPhraseQueryTest.py
fnp/pylucene
fb16ac375de5479dec3919a5559cda02c899e387
[ "Apache-2.0" ]
1
2021-09-30T03:59:43.000Z
2021-09-30T03:59:43.000Z
samples/LuceneInAction/MultiPhraseQueryTest.py
romanchyla/pylucene-trunk
990079ff0c76b972ce5ef2bac9b85334a0a1f27a
[ "Apache-2.0" ]
13
2015-04-18T23:05:11.000Z
2021-11-29T21:23:26.000Z
import os, sys, unittest, lucene lucene.initVM() sys.path.append(os.path.dirname(os.path.abspath(sys.argv[0]))) import lia.advsearching.MultiPhraseQueryTest unittest.main(lia.advsearching.MultiPhraseQueryTest)
23.666667
62
0.807512
28
213
6.142857
0.571429
0.069767
0.406977
0
0
0
0
0
0
0
0
0.005
0.061033
213
8
63
26.625
0.855
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.4
0
0.4
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
58294732b61e696a996a332b613019a1db387342
14,067
py
Python
gov/cca/__init__.py
jmhal/CCAPython
f853e53b74cd791fc81318acf63921aeaca66ffd
[ "Apache-2.0" ]
null
null
null
gov/cca/__init__.py
jmhal/CCAPython
f853e53b74cd791fc81318acf63921aeaca66ffd
[ "Apache-2.0" ]
null
null
null
gov/cca/__init__.py
jmhal/CCAPython
f853e53b74cd791fc81318acf63921aeaca66ffd
[ "Apache-2.0" ]
null
null
null
VERSION = "0.1a" class Port(object): def __init__(self): raise NotImplementedError("Abstract Class!") def __init__(self, portType): self.portType = portType return def isType(self, _type): if _type == self.portType: return True return False class Component(object): def __init__(self): raise NotImplementedError("Abstract Class!") def setServices(self, services): """ input: services object. output: void """ raise NotImplementedError("Abstract Class!") class ComponentRelease(object): def __init__(self): raise NotImplementedError("Abstract Class!") def releaseServices(self, services): """ input: services object. output: void """ raise NotImplementedError("Abstract Class!") class ComponentID(object): def __init__(self): raise NotImplementedError("Abstract Class!") def getInstanceName(self): """ input: none output: a string identifier for the component (uuid?). throws CCAException. """ raise NotImplementedError("Abstract Class!") def getSerialization(self): """ input: none output: a serialization of the object sufficient for saving the component's state to disk and restart at a different time. throws CCAException. """ raise NotImplementedError("Abstract Class!") class Services(object): def __init__(self): raise NotImplementedError("Abstract Class!") def getComponentID(self): """ input: none output: a ComponentID object """ raise NotImplementedError("Abstract Class!") def createTypeMap(self): """ input: none output: a TypeMap object throws CCAException """ raise NotImplementedError("Abstract Class!") def registerUsesPort(self, portName, type, properties): """ input: string portName, string type, and TypeMap properties output: void throws CCAException """ raise NotImplementedError("Abstract Class!") def unregisterUsesPort(self, portName): """ input: string portName output: void throws CCAException """ raise NotImplementedError("Abstract Class!") def addProvidesPort(self, inPort, portName, type, properties): """ input: Port inPort, string portName, string type, and TypeMap properties output: void throws CCAException """ raise NotImplementedError("Abstract Class!") def removeProvidesPort(self, portName): """ input: string portName output: void throws CCAException """ raise NotImplementedError("Abstract Class!") def getPortProperties(self, portName): """ input: string portName output: a TypeMap object """ raise NotImplementedError("Abstract Class!") def getPort(self, portName): """ input: string portName output: a Port object throws CCAException """ raise NotImplementedError("Abstract Class!") def getPortNonblocking(self, portName): """ input: string portName output: a Port object throws CCAException """ raise NotImplementedError("Abstract Class!") def releasePort(self, portName): """ input: string portName output: void throws CCAException """ raise NotImplementedError("Abstract Class!") def registerForRelease(self, callback): """ input: a gov.cca.ComponentRelease object callback output: void """ raise NotImplementedError("Abstract Class!") class AbstractFramework(object): def __init__(self): raise NotImplementedError("Abstract Class!") def createTypeMap(self): """ input: none output: a TypeMap object throws CCAException """ raise NotImplementedError("Abstract Class!") def createEmptyFramework(self): """ input: none output: a AbstractFramework object throws CCAException """ raise NotImplementedError("Abstract Class!") def getServices(self, selfInstanceName, selfClassName, selfProperties): """ input: a string selfInstanceName, string selfClassName, TypeMap selfProperties output: a Services object throws CCAException """ raise NotImplementedError("Abstract Class!") def releaseServices(self, services): """ input: a Services object output: a AbstractFramework object throws CCAException """ raise NotImplementedError("Abstract Class!") def shutdownFramework(self): """ input: none output: void throws CCAException """ raise NotImplementedError("Abstract Class!") class ComponentClassDescription(object): def __init__(self): raise NotImplementedError("Abstract Class!") def getComponentClassName(self): """ input: none output: a string throws CCAException """ raise NotImplementedError("Abstract Class!") class ConnectionID(object): def __init__(self): raise NotImplementedError("Abstract Class!") def getProvider(self): """ input: none output: a ComponentID object throws CCAException """ raise NotImplementedError("Abstract Class!") def getUser(self): """ input: none output: a ComponentID object throws CCAException """ raise NotImplementedError("Abstract Class!") def getProviderPortName(self): """ input: none output: a string throws CCAException """ raise NotImplementedError("Abstract Class!") def getUserPortName(self): """ input: none output: a string throws CCAException """ raise NotImplementedError("Abstract Class!") class Type(object): none, Int, Long, Float, Double, Fcomplex, Dcomplex, String, Bool, IntArray, LongArray, FloatArray, DoubleArray, FcomplexArray, DComplexArray, StringArray, BoolArray = range(17) def __init__(self): raise NotImplementedError("Enumeration!") class TypeMap(object): def __init__(self): raise NotImplementedError("Abstract Class!") def getInt(self, key, dflt): """ input: string key, integer dflt output: a integer throws TypeMismatchException """ raise NotImplementedError("Abstract Class!") def getLong(self, key, dflt): """ input: string key, long dflt output: a long throws TypeMismatchException """ raise NotImplementedError("Abstract Class!") def getFloat(self, key, dflt): """ input: string key, float dflt output: a float throws TypeMismatchException """ raise NotImplementedError("Abstract Class!") def getDouble(self, key, dflt): """ input: string key, double dflt output: a double throws TypeMismatchException """ raise NotImplementedError("Abstract Class!") def getFcomplex(self, key, dflt): """ input: string key, fcomplex dflt output: a fcomplex throws TypeMismatchException """ raise NotImplementedError("Abstract Class!") def getDcomplex(self, key, dflt): """ input: string key, dcomplex dflt output: a dcomplex throws TypeMismatchException """ raise NotImplementedError("Abstract Class!") def getString(self, key, dflt): """ input: string key, string dflt output: a integer throws TypeMismatchException """ raise NotImplementedError("Abstract Class!") def getBool(self, key, dflt): """ input: string key, bool dflt output: a boolean throws TypeMismatchException """ raise NotImplementedError("Abstract Class!") def getIntArray(self, key, dflt): """ input: string key, int dflt output: a list of int """ raise NotImplementedError("Abstract Class!") def getLongArray(self, key, dflt): """ input: string key, long dflt output: a list of long """ raise NotImplementedError("Abstract Class!") def getFloatArray(self, key, dflt): """ input: string key, float dflt output: a list of float """ raise NotImplementedError("Abstract Class!") def getDoubleArray(self, key, dflt): """ input: string key, double dflt output: a list of double """ raise NotImplementedError("Abstract Class!") def getFcomplexArray(self, key, dflt): """ input: string key, fcomplex dflt output: a list of fcomplex """ raise NotImplementedError("Abstract Class!") def getDcomplexArray(self, key, dflt): """ input: string key, dcomplex dflt output: a list of dcomplex """ raise NotImplementedError("Abstract Class!") def getStringArray(self, key, dflt): """ input: string key, string dflt output: a list of string """ raise NotImplementedError("Abstract Class!") def getBoolArray(self, key, dflt): """ input: string key, bool dflt output: a list of bool """ raise NotImplementedError("Abstract Class!") def putInt(self, key, value): """ input: string key, integer value output: void throws TypeMismatchException """ raise NotImplementedError("Abstract Class!") def putLong(self, key, value): """ input: string key, long value output: void throws TypeMismatchException """ raise NotImplementedError("Abstract Class!") def putFloat(self, key, value): """ input: string key, float value output: void throws TypeMismatchException """ raise NotImplementedError("Abstract Class!") def putDouble(self, key, value): """ input: string key, double value output: void throws TypeMismatchException """ raise NotImplementedError("Abstract Class!") def putFcomplex(self, key, value): """ input: string key, fcomplex value output: void throws TypeMismatchException """ raise NotImplementedError("Abstract Class!") def putDcomplex(self, key, value): """ input: string key, dcomplex value output: void throws TypeMismatchException """ raise NotImplementedError("Abstract Class!") def putString(self, key, value): """ input: string key, string value output: void throws TypeMismatchException """ raise NotImplementedError("Abstract Class!") def putBool(self, key, value): """ input: string key, bool value output: void throws TypeMismatchException """ raise NotImplementedError("Abstract Class!") def putIntArray(self, key, value): """ input: string key, int list value output: void """ raise NotImplementedError("Abstract Class!") def putLongArray(self, key, value): """ input: string key, long list value output: void """ raise NotImplementedError("Abstract Class!") def putFloatArray(self, key, value): """ input: string key, float list value output: void """ raise NotImplementedError("Abstract Class!") def putDoubleArray(self, key, value): """ input: string key, double list value output: void """ raise NotImplementedError("Abstract Class!") def putFcomplexArray(self, key, value): """ input: string key, fcomplex list value output: void """ raise NotImplementedError("Abstract Class!") def putDcomplexArray(self, key, value): """ input: string key, dcomplex list value output: void """ raise NotImplementedError("Abstract Class!") def putStringArray(self, key, value): """ input: string key, string list value output: void """ raise NotImplementedError("Abstract Class!") def putBoolArray(self, key, value): """ input: string key, bool list value output: void """ raise NotImplementedError("Abstract Class!") def cloneTypeMap(self): """ input: none output: a TypeMap object """ raise NotImplementedError("Abstract Class!") def cloneEmpty(self): """ input: none output: a TypeMap object """ raise NotImplementedError("Abstract Class!") def remove(self, key): """ input: a string key output: void """ raise NotImplementedError("Abstract Class!") def getAllKeys(self, t): """ input: Type object t output: a list of strings """ raise NotImplementedError("Abstract Class!") def hasKey(self, key): """ input: a string key output: boolean """ raise NotImplementedError("Abstract Class!") def typeOf(self, key): """ input: a string key output: a Type object """ raise NotImplementedError("Abstract Class!") class CCAExceptionType(object): Unexpected = -1 Nonstandard = 1 PortNotDefined = 2 PortAlreadyDefined = 3 PortNotConnected = 4 PortNotInUse = 5 UsesPortNotReleased = 6 BadPortName = 7 BadPortType = 8 BadProperties = 9 BadPortInfo = 10 OutOfMemory = 11 NetworkError = 12 def __init__(self): raise NotImplementedError("Enumeration!") class CCAException(Exception): def __init__(self): raise NotImplementedError("Abstract Class!") def getCCAExceptionType(self): """ input: none output: a CCAException object """ raise NotImplementedError("Abstract Class!") def setCCAExceptionType(self, exceptionType): """ input: a field from CCAExceptionType output: a CCAException object """ raise NotImplementedError("Abstract Class!")
24.72232
179
0.621668
1,307
14,067
6.649579
0.138485
0.212634
0.276148
0.319296
0.772868
0.709239
0.694166
0.541825
0.511449
0.385801
0
0.001979
0.281439
14,067
568
180
24.765845
0.857835
0.289259
0
0.494681
0
0
0.141403
0
0
0
0
0
0
1
0.420213
false
0
0
0
0.569149
0
0
0
0
null
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
5
583717067a09e74d7763c6fc298dba354c92ed3e
112
py
Python
examples/example_bot_1/example_t_room.py
Soycid/chai_py
235e477f6834e98bcb778a880e7be46432b5834f
[ "Apache-2.0" ]
14
2021-04-28T11:06:56.000Z
2022-03-10T10:28:51.000Z
examples/example_bot_1/example_t_room.py
Soycid/chai_py
235e477f6834e98bcb778a880e7be46432b5834f
[ "Apache-2.0" ]
null
null
null
examples/example_bot_1/example_t_room.py
Soycid/chai_py
235e477f6834e98bcb778a880e7be46432b5834f
[ "Apache-2.0" ]
4
2022-01-21T14:04:35.000Z
2022-03-06T12:54:43.000Z
from chai_py import TRoom from bot.example_bot import ExampleBot t_room = TRoom([ExampleBot()]) t_room.start()
18.666667
38
0.785714
18
112
4.666667
0.611111
0.261905
0.357143
0
0
0
0
0
0
0
0
0
0.116071
112
5
39
22.4
0.848485
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
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
583e5f920ad0648fcee238fa5342c17ab14d4f25
183
py
Python
TWLight/common/apps.py
thatandromeda/TWLight
b0030b8272285490b48ee9796a26e4d86ba8e15d
[ "MIT" ]
null
null
null
TWLight/common/apps.py
thatandromeda/TWLight
b0030b8272285490b48ee9796a26e4d86ba8e15d
[ "MIT" ]
null
null
null
TWLight/common/apps.py
thatandromeda/TWLight
b0030b8272285490b48ee9796a26e4d86ba8e15d
[ "MIT" ]
null
null
null
from django.apps import AppConfig class MiddlewareConfig(AppConfig): name = "TWLight.common" label = "common" def ready(self): import TWLight.common.middleware
18.3
40
0.699454
20
183
6.4
0.75
0.203125
0
0
0
0
0
0
0
0
0
0
0.213115
183
9
41
20.333333
0.888889
0
0
0
0
0
0.10929
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
5849392180c7cbe7c9f98818019af3e5590033da
81
py
Python
beaver/model/__init__.py
YuxueShi/transformerNMT
4ec660aa46f5edfeb5db749c73776d50c02c9324
[ "BSD-3-Clause" ]
13
2018-11-13T09:13:08.000Z
2022-03-07T13:02:53.000Z
beaver/model/__init__.py
yuanyangeli/transformer-spelling-correction
c392b8e4925a13908f957371faacb20889f849f5
[ "BSD-3-Clause" ]
null
null
null
beaver/model/__init__.py
yuanyangeli/transformer-spelling-correction
c392b8e4925a13908f957371faacb20889f849f5
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from beaver.model.nmt_model import FullModel, NMTModel
16.2
54
0.703704
11
81
5.090909
0.909091
0
0
0
0
0
0
0
0
0
0
0.014493
0.148148
81
4
55
20.25
0.797101
0.259259
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
584e64bec1cb737112815d55ea5f9b8b2f7f5723
23
py
Python
1_Python/Desafios/021_Reproduzir_audio_MP3.py
guilhermebaos/Curso-em-Video-Python
0e67f6f59fa3216889bd2dde4a26b532c7c545fd
[ "MIT" ]
null
null
null
1_Python/Desafios/021_Reproduzir_audio_MP3.py
guilhermebaos/Curso-em-Video-Python
0e67f6f59fa3216889bd2dde4a26b532c7c545fd
[ "MIT" ]
null
null
null
1_Python/Desafios/021_Reproduzir_audio_MP3.py
guilhermebaos/Curso-em-Video-Python
0e67f6f59fa3216889bd2dde4a26b532c7c545fd
[ "MIT" ]
null
null
null
# Não consegui resolver
23
23
0.826087
3
23
6.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.130435
23
1
23
23
0.95
0.913043
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
5851ca5f4fc9fc61fb756badf6dd807d98a9a862
117
py
Python
aggregatorbroker/__init__.py
othmanemoumni88/aggregatorbroker
c9f4befc42f0ccf534ac7ff755540f8118c24d8b
[ "Apache-2.0" ]
null
null
null
aggregatorbroker/__init__.py
othmanemoumni88/aggregatorbroker
c9f4befc42f0ccf534ac7ff755540f8118c24d8b
[ "Apache-2.0" ]
null
null
null
aggregatorbroker/__init__.py
othmanemoumni88/aggregatorbroker
c9f4befc42f0ccf534ac7ff755540f8118c24d8b
[ "Apache-2.0" ]
null
null
null
from aggregator_handler import AggregatorHandler from mqtt_client import MqttClient from sql_writer import SqlWriter
29.25
48
0.897436
15
117
6.8
0.733333
0
0
0
0
0
0
0
0
0
0
0
0.102564
117
3
49
39
0.971429
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
588cf7e93eef01b82eaf24c87c36df22ea21dade
24
py
Python
sklearn/linear_model/_glm/tests/__init__.py
emarkou/scikit-learn
d73822f84f2832dcc25f0ff58769f60871a78025
[ "BSD-3-Clause" ]
50,961
2015-01-01T06:06:31.000Z
2022-03-31T23:40:12.000Z
sklearn/linear_model/_glm/tests/__init__.py
emarkou/scikit-learn
d73822f84f2832dcc25f0ff58769f60871a78025
[ "BSD-3-Clause" ]
17,065
2015-01-01T02:01:58.000Z
2022-03-31T23:48:34.000Z
sklearn/linear_model/_glm/tests/__init__.py
emarkou/scikit-learn
d73822f84f2832dcc25f0ff58769f60871a78025
[ "BSD-3-Clause" ]
26,886
2015-01-01T00:59:27.000Z
2022-03-31T18:03:23.000Z
# License: BSD 3 clause
12
23
0.708333
4
24
4.25
1
0
0
0
0
0
0
0
0
0
0
0.052632
0.208333
24
1
24
24
0.842105
0.875
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
5893cc1c4d30391328fea4cda2adc8786a359a4f
103
py
Python
lib/learning/__init__.py
fumish/lva
3a980818b4d9fc7785493c4eb17153c191abbae8
[ "MIT" ]
null
null
null
lib/learning/__init__.py
fumish/lva
3a980818b4d9fc7785493c4eb17153c191abbae8
[ "MIT" ]
null
null
null
lib/learning/__init__.py
fumish/lva
3a980818b4d9fc7785493c4eb17153c191abbae8
[ "MIT" ]
null
null
null
__all__ = ["HyperbolicSecantMixtureVB", "GaussianMixtureModelVB"] from learning.MixtureModel import *
25.75
65
0.815534
7
103
11.428571
1
0
0
0
0
0
0
0
0
0
0
0
0.087379
103
3
66
34.333333
0.851064
0
0
0
0
0
0.456311
0.456311
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
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
1
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
545dae72f435dc6ee059c77edcf0455b07f6ff4c
710
py
Python
PyFHD/io/pyfhd_io.py
ADACS-Australia/PyFHD
f4b9c254bbea699e1cf66f1400b05f8dace69f9f
[ "MIT" ]
2
2022-02-21T05:55:58.000Z
2022-03-15T02:41:00.000Z
PyFHD/io/pyfhd_io.py
ADACS-Australia/PyFHD
f4b9c254bbea699e1cf66f1400b05f8dace69f9f
[ "MIT" ]
null
null
null
PyFHD/io/pyfhd_io.py
ADACS-Australia/PyFHD
f4b9c254bbea699e1cf66f1400b05f8dace69f9f
[ "MIT" ]
null
null
null
def save(): """ For now this function is a placeholder for the eventual function which will save the state of the FHD program at certain points depending on community feedback. """ print("If you're seeing this, then fhd_save_io hasn't been made yet.") print("If you have ideas on how we should save the state of FHD throughout its runtime.") print("Please raise an issue on the repository") def restore(): """ For now this function is a placeholder for the eventual function which will restore the state of the FHD program at certain points depending on community feedback. """ print("If you're seeing this the restore function hasn't been created yet")
41.764706
93
0.711268
112
710
4.491071
0.455357
0.047714
0.059642
0.071571
0.600398
0.600398
0.600398
0.600398
0.600398
0.600398
0
0
0.228169
710
17
94
41.764706
0.917883
0.456338
0
0
0
0
0.723529
0
0
0
0
0
0
1
0.333333
true
0
0
0
0.333333
0.666667
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
1
1
0
0
0
0
1
0
5
546f5cecb4f303537bc6577130c5ad730ce0b610
173
py
Python
guikit/extensions/example_plugin/central.py
ImperialCollegeLondon/guikit
721b3ac976d254f0f95c3f0bebb43669f310fd02
[ "BSD-3-Clause" ]
3
2022-01-20T12:13:26.000Z
2022-01-20T12:42:03.000Z
guikit/extensions/example_plugin/central.py
ImperialCollegeLondon/python-gui-template
721b3ac976d254f0f95c3f0bebb43669f310fd02
[ "BSD-3-Clause" ]
14
2021-09-21T15:19:36.000Z
2021-11-28T00:05:32.000Z
guikit/extensions/example_plugin/central.py
ImperialCollegeLondon/guikit
721b3ac976d254f0f95c3f0bebb43669f310fd02
[ "BSD-3-Clause" ]
null
null
null
import wx from guikit.plugins import PluginBase class CentralPlugin(PluginBase): def central(self, parent): return wx.TextCtrl(parent, style=wx.TE_MULTILINE)
19.222222
57
0.751445
22
173
5.863636
0.772727
0
0
0
0
0
0
0
0
0
0
0
0.16763
173
8
58
21.625
0.895833
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.4
0.2
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
1
1
0
0
5
5477586470d55fe97e58cfb041a3492274137f52
44
py
Python
Autokey/CapsKeybinds/shift alt/delete.py
MisaghM/Capslock-Keybindings
00332c7d39cf776c43fe13aa08e1c2969747425d
[ "MIT" ]
1
2021-11-05T19:39:36.000Z
2021-11-05T19:39:36.000Z
Autokey/CapsKeybinds/shift alt/delete.py
MisaghM/Capslock-Keybindings
00332c7d39cf776c43fe13aa08e1c2969747425d
[ "MIT" ]
null
null
null
Autokey/CapsKeybinds/shift alt/delete.py
MisaghM/Capslock-Keybindings
00332c7d39cf776c43fe13aa08e1c2969747425d
[ "MIT" ]
null
null
null
keyboard.send_keys("<shift>+<alt>+<delete>")
44
44
0.704545
6
44
5
1
0
0
0
0
0
0
0
0
0
0
0
0
44
1
44
44
0.681818
0
0
0
0
0
0.488889
0.488889
0
0
0
0
0
1
0
true
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
49bb44ca2f06c0f03cf7092a7f4966fb7b9c09f6
150
py
Python
.jupyter/jupyter_notebook_config.py
mfernandes61/pybasic_in_gitpod
795c92e641793db93cba8fce948f46f5acf68f8c
[ "Unlicense" ]
null
null
null
.jupyter/jupyter_notebook_config.py
mfernandes61/pybasic_in_gitpod
795c92e641793db93cba8fce948f46f5acf68f8c
[ "Unlicense" ]
null
null
null
.jupyter/jupyter_notebook_config.py
mfernandes61/pybasic_in_gitpod
795c92e641793db93cba8fce948f46f5acf68f8c
[ "Unlicense" ]
null
null
null
c.NotebookApp.ip = '0.0.0.0' c.NotebookApp.allow_origin = '*' c.NotebookApp.open_browser = False c.NotebookApp.token = '' c.NotebookApp.password = ''
25
34
0.72
22
150
4.818182
0.5
0.566038
0.056604
0
0
0
0
0
0
0
0
0.02963
0.1
150
5
35
30
0.755556
0
0
0
0
0
0.053333
0
0
0
0
0
0
1
0
true
0.2
0
0
0
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
5
49d67398cea02b5a65c4a98216a5e99216b062d6
28
py
Python
pingo/test/__init__.py
willingc/pingo
0890bf5ed763e9061320093fc3fb5f7543c5cc2c
[ "MIT" ]
null
null
null
pingo/test/__init__.py
willingc/pingo
0890bf5ed763e9061320093fc3fb5f7543c5cc2c
[ "MIT" ]
null
null
null
pingo/test/__init__.py
willingc/pingo
0890bf5ed763e9061320093fc3fb5f7543c5cc2c
[ "MIT" ]
null
null
null
import level0 import level1
9.333333
13
0.857143
4
28
6
0.75
0
0
0
0
0
0
0
0
0
0
0.083333
0.142857
28
2
14
14
0.916667
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
b70693399819e4ce833e0e11623700878070fe6a
8,394
py
Python
tests/sentry/test_canonical.py
uandco/sentry
5b8d45cb71c6617dac8e64265848623fbfce9c99
[ "BSD-3-Clause" ]
2
2019-03-04T12:45:54.000Z
2019-03-04T12:45:55.000Z
tests/sentry/test_canonical.py
uandco/sentry
5b8d45cb71c6617dac8e64265848623fbfce9c99
[ "BSD-3-Clause" ]
196
2019-06-10T08:34:10.000Z
2022-02-22T01:26:13.000Z
tests/sentry/test_canonical.py
uandco/sentry
5b8d45cb71c6617dac8e64265848623fbfce9c99
[ "BSD-3-Clause" ]
1
2017-02-09T06:36:57.000Z
2017-02-09T06:36:57.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function import unittest from collections import OrderedDict from sentry.utils.canonical import CanonicalKeyView, CanonicalKeyDict class CanonicalKeyViewTests(unittest.TestCase): canonical_data = OrderedDict([ ('release', 'asdf'), ('exception', {'type': 'DemoException'}), ('user', {'id': 'DemoUser'}), ]) legacy_data = OrderedDict([ ('release', 'asdf'), ('sentry.interfaces.Exception', {'type': 'DemoException'}), ('sentry.interfaces.User', {'id': 'DemoUser'}), ]) mixed_data = OrderedDict([ ('release', 'asdf'), ('sentry.interfaces.User', {'id': 'INVALID'}), ('exception', {'type': 'DemoException'}), ('user', {'id': 'DemoUser'}), ('sentry.interfaces.Exception', {'type': 'INVALID'}), ]) def test_len(self): assert len(CanonicalKeyView(self.canonical_data)) == 3 assert len(CanonicalKeyView(self.legacy_data)) == 3 assert len(CanonicalKeyView(self.mixed_data)) == 3 def test_iter(self): assert CanonicalKeyView(self.canonical_data).keys() == ['release', 'exception', 'user'] assert CanonicalKeyView(self.legacy_data).keys() == ['release', 'exception', 'user'] assert CanonicalKeyView(self.mixed_data).keys() == ['release', 'exception', 'user'] def test_contains(self): assert 'user' in CanonicalKeyView(self.canonical_data) assert 'user' in CanonicalKeyView(self.legacy_data) assert 'user' in CanonicalKeyView(self.mixed_data) assert 'sentry.interfaces.User' in CanonicalKeyView(self.canonical_data) assert 'sentry.interfaces.User' in CanonicalKeyView(self.legacy_data) assert 'sentry.interfaces.User' in CanonicalKeyView(self.mixed_data) def test_getitem(self): assert CanonicalKeyView(self.canonical_data)['user'] == {'id': 'DemoUser'} assert CanonicalKeyView(self.legacy_data)['user'] == {'id': 'DemoUser'} assert CanonicalKeyView(self.mixed_data)['user'] == {'id': 'DemoUser'} assert CanonicalKeyView(self.canonical_data)['sentry.interfaces.User'] == {'id': 'DemoUser'} assert CanonicalKeyView(self.legacy_data)['sentry.interfaces.User'] == {'id': 'DemoUser'} assert CanonicalKeyView(self.mixed_data)['sentry.interfaces.User'] == {'id': 'DemoUser'} class CanonicalKeyDictTests(unittest.TestCase): canonical_data = { 'release': 'asdf', 'exception': {'type': 'DemoException'}, 'user': {'id': 'DemoUser'}, } def test_canonical(self): assert CanonicalKeyDict({ 'release': 'asdf', 'exception': {'type': 'DemoException'}, 'user': {'id': 'DemoUser'}, }) == self.canonical_data def test_legacy(self): assert CanonicalKeyDict({ 'release': 'asdf', 'sentry.interfaces.Exception': {'type': 'DemoException'}, 'sentry.interfaces.User': {'id': 'DemoUser'}, }) == self.canonical_data def test_mixed(self): assert CanonicalKeyDict({ 'release': 'asdf', 'exception': {'type': 'DemoException'}, 'user': {'id': 'DemoUser'}, 'sentry.interfaces.Exception': {'type': 'INVALID'}, 'sentry.interfaces.User': {'id': 'INVALID'}, }) == self.canonical_data def test_getitem_setitem(self): d = CanonicalKeyDict({'user': {'id': 'DemoUser'}}) d['user'] = {'id': 'other'} assert d['user'] == {'id': 'other'} assert d['sentry.interfaces.User'] == {'id': 'other'} d = CanonicalKeyDict({'user': {'id': 'DemoUser'}}) d['sentry.interfaces.User'] = {'id': 'other'} assert d['user'] == {'id': 'other'} assert d['sentry.interfaces.User'] == {'id': 'other'} def test_delitem(self): d = CanonicalKeyDict({'user': {'id': 'DemoUser'}}) del d['user'] assert d == {} d = CanonicalKeyDict({'user': {'id': 'DemoUser'}}) del d['sentry.interfaces.User'] assert d == {} def test_contains(self): d = CanonicalKeyDict({'user': {'id': 'DemoUser'}}) 'user' in d 'sentry.interfaces.User' in d def test_len(self): assert len(CanonicalKeyDict({ 'release': 'asdf', 'exception': {'type': 'DemoException'}, 'user': {'id': 'DemoUser'}, 'sentry.interfaces.Exception': {'type': 'INVALID'}, 'sentry.interfaces.User': {'id': 'INVALID'}, })) == 3 class LegacyCanonicalKeyDictTests(unittest.TestCase): canonical_data = { 'release': 'asdf', 'sentry.interfaces.Exception': {'type': 'DemoException'}, 'sentry.interfaces.User': {'id': 'DemoUser'}, } def test_canonical(self): assert CanonicalKeyDict({ 'release': 'asdf', 'exception': {'type': 'DemoException'}, 'user': {'id': 'DemoUser'}, }, legacy=True) == self.canonical_data def test_legacy(self): assert CanonicalKeyDict({ 'release': 'asdf', 'sentry.interfaces.Exception': {'type': 'DemoException'}, 'sentry.interfaces.User': {'id': 'DemoUser'}, }, legacy=True) == self.canonical_data def test_mixed(self): assert CanonicalKeyDict({ 'release': 'asdf', 'sentry.interfaces.Exception': {'type': 'DemoException'}, 'sentry.interfaces.User': {'id': 'DemoUser'}, 'exception': {'type': 'INVALID'}, 'user': {'id': 'INVALID'}, }, legacy=True) == self.canonical_data def test_getitem_setitem(self): d = CanonicalKeyDict({'user': {'id': 'DemoUser'}}, legacy=True) d['user'] = {'id': 'other'} assert d['user'] == {'id': 'other'} assert d['sentry.interfaces.User'] == {'id': 'other'} d = CanonicalKeyDict({'user': {'id': 'DemoUser'}}, legacy=True) d['sentry.interfaces.User'] = {'id': 'other'} assert d['user'] == {'id': 'other'} assert d['sentry.interfaces.User'] == {'id': 'other'} class DoubleAliasingTests(unittest.TestCase): def test_canonical(self): view = CanonicalKeyView({'logentry': 'foo'}) assert len(view) == 1 assert view.keys() == ['logentry'] assert 'logentry' in view assert 'sentry.interfaces.Message' in view assert 'message' in view assert view['logentry'] == 'foo' assert view['sentry.interfaces.Message'] == 'foo' assert view['message'] == 'foo' def test_legacy_first(self): view = CanonicalKeyView({'sentry.interfaces.Message': 'foo'}) assert len(view) == 1 assert view.keys() == ['logentry'] assert 'logentry' in view assert 'sentry.interfaces.Message' in view assert 'message' in view assert view['logentry'] == 'foo' assert view['sentry.interfaces.Message'] == 'foo' assert view['message'] == 'foo' def test_legacy_second(self): view = CanonicalKeyView({'message': 'foo'}) assert len(view) == 1 assert view.keys() == ['logentry'] assert 'logentry' in view assert 'sentry.interfaces.Message' in view assert 'message' in view assert view['logentry'] == 'foo' assert view['sentry.interfaces.Message'] == 'foo' assert view['message'] == 'foo' def test_override(self): view = CanonicalKeyView({'logentry': 'foo', 'sentry.interfaces.Message': 'bar'}) assert len(view) == 1 assert view.keys() == ['logentry'] assert 'logentry' in view assert 'sentry.interfaces.Message' in view assert 'message' in view assert view['logentry'] == 'foo' assert view['sentry.interfaces.Message'] == 'foo' assert view['message'] == 'foo' def test_two_legacy(self): view = CanonicalKeyView({'message': 'bar', 'sentry.interfaces.Message': 'foo'}) assert len(view) == 1 assert view.keys() == ['logentry'] assert 'logentry' in view assert 'sentry.interfaces.Message' in view assert 'message' in view assert view['logentry'] == 'foo' assert view['sentry.interfaces.Message'] == 'foo' assert view['message'] == 'foo'
35.871795
100
0.579819
816
8,394
5.890931
0.077206
0.143125
0.07281
0.077803
0.853963
0.826087
0.739546
0.692532
0.602039
0.565217
0
0.001581
0.246605
8,394
233
101
36.025751
0.758539
0.002502
0
0.701087
0
0
0.275833
0.122447
0
0
0
0
0.407609
1
0.108696
false
0
0.021739
0
0.179348
0.005435
0
0
0
null
0
0
0
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
5
b70b64b01ebfb80e985adbf939045ef832acac12
100
py
Python
matrixre/__init__.py
aar015/matrix-regex
8fe0e3c68c4187883559bc5cdb2d93da3458fb9e
[ "MIT" ]
null
null
null
matrixre/__init__.py
aar015/matrix-regex
8fe0e3c68c4187883559bc5cdb2d93da3458fb9e
[ "MIT" ]
null
null
null
matrixre/__init__.py
aar015/matrix-regex
8fe0e3c68c4187883559bc5cdb2d93da3458fb9e
[ "MIT" ]
null
null
null
'''Package containing Thompson's regex algorithm implemented with numpy''' from .functions import *
33.333333
74
0.79
12
100
6.583333
1
0
0
0
0
0
0
0
0
0
0
0
0.12
100
2
75
50
0.897727
0.68
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
b71b2df428f81e7494755aaf10fe78fe052b03b9
147
py
Python
Fun Excercise/factorial new.py
NirmalSilwal/Python-
6d23112db8366360f0b79bdbf21252575e8eab3e
[ "MIT" ]
32
2020-04-05T08:29:40.000Z
2022-01-08T03:10:00.000Z
Fun Excercise/factorial new.py
NirmalSilwal/Python-
6d23112db8366360f0b79bdbf21252575e8eab3e
[ "MIT" ]
3
2021-06-02T04:09:11.000Z
2022-03-02T14:55:03.000Z
Fun Excercise/factorial new.py
NirmalSilwal/Python-
6d23112db8366360f0b79bdbf21252575e8eab3e
[ "MIT" ]
3
2020-07-13T05:44:04.000Z
2021-03-03T07:07:58.000Z
import math def fact(n): return math.factorial(n) def mainFunction(): for i in range(1,21,1): print(i,":",fact(i)) mainFunction()
16.333333
28
0.619048
23
147
3.956522
0.652174
0
0
0
0
0
0
0
0
0
0
0.034483
0.210884
147
9
29
16.333333
0.75
0
0
0
0
0
0.006757
0
0
0
0
0
0
1
0.285714
false
0
0.142857
0.142857
0.571429
0.142857
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
b71f86e32638a68ccfd99fb19527c5bd99143f13
231
py
Python
02_basic_data_types/01_print().py
r7asmu7s/art_of_doing_python
62a03bcca084046c319976fc308bf3de3a2d412d
[ "Unlicense" ]
null
null
null
02_basic_data_types/01_print().py
r7asmu7s/art_of_doing_python
62a03bcca084046c319976fc308bf3de3a2d412d
[ "Unlicense" ]
null
null
null
02_basic_data_types/01_print().py
r7asmu7s/art_of_doing_python
62a03bcca084046c319976fc308bf3de3a2d412d
[ "Unlicense" ]
null
null
null
print('Hello World!') print('This is how we print on the screen.') print() print('What just happened?') print('This is a message on this line.', end=' ') print('This is a message on the same line.') print('Learning Python is FUN!')
33
49
0.69697
40
231
4.025
0.525
0.167702
0.204969
0.149068
0.26087
0.26087
0
0
0
0
0
0
0.147186
231
7
50
33
0.817259
0
0
0
0
0
0.672414
0
0
0
0
0
0
1
0
true
0
0
0
0
1
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
1
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
5
b7215cb911bd51e45ca4aacc6bd9c557cd576839
259
py
Python
harmony_hub_nodes/__init__.py
jimboca/udi-harmony-poly-V2
af2441a9d00a0eb1ee9a2276ee3d2f71785ee5ed
[ "MIT" ]
8
2018-07-12T06:30:18.000Z
2021-12-29T01:16:42.000Z
harmony_hub_nodes/__init__.py
jimboca/udi-harmony-poly-V2
af2441a9d00a0eb1ee9a2276ee3d2f71785ee5ed
[ "MIT" ]
30
2018-01-20T02:16:57.000Z
2021-05-08T19:09:47.000Z
harmony_hub_nodes/__init__.py
jimboca/udi-harmony-poly-V2
af2441a9d00a0eb1ee9a2276ee3d2f71785ee5ed
[ "MIT" ]
2
2019-05-08T08:07:29.000Z
2020-04-17T19:34:23.000Z
""" Node classes used by the Harmony Hub Node Server. """ import polyinterface from .HarmonyDevice import HarmonyDevice from .HarmonyActivity import HarmonyActivity from .HarmonyHub import HarmonyHub from .HarmonyController import HarmonyController
28.777778
58
0.80695
27
259
7.740741
0.555556
0
0
0
0
0
0
0
0
0
0
0
0.150579
259
8
59
32.375
0.95
0.189189
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
b72cd9e77a51a570b63e06492e6499a8f1536c09
185
wsgi
Python
sktimeline.wsgi
aaronmauro/sktimeline
3a83b8973959c2d6bf49021cd8efb0ead81b9395
[ "MIT" ]
2
2016-06-14T17:02:42.000Z
2016-10-24T14:49:25.000Z
sktimeline.wsgi
aaronmauro/sktimeline
3a83b8973959c2d6bf49021cd8efb0ead81b9395
[ "MIT" ]
3
2016-06-27T13:20:53.000Z
2017-03-18T14:21:27.000Z
sktimeline.wsgi
aaronmauro/sktimeline
3a83b8973959c2d6bf49021cd8efb0ead81b9395
[ "MIT" ]
2
2016-06-14T17:03:05.000Z
2016-09-01T14:18:44.000Z
#!/usr/bin/python import sys import logging import os logging.basicConfig(stream=sys.stderr) sys.path.insert(0, os.path.dirname(__file__) ) from sktimeline import app as application
18.5
46
0.789189
28
185
5.071429
0.714286
0
0
0
0
0
0
0
0
0
0
0.006061
0.108108
185
9
47
20.555556
0.854545
0.086486
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
b72d34038135bd30c2a44bf091250eab1870c26e
154
py
Python
talktracker/__init__.py
alTeska/talktracker
7d2c507bda78a6faf92568291190ea9300e878dc
[ "MIT" ]
1
2018-08-22T09:07:04.000Z
2018-08-22T09:07:04.000Z
talktracker/__init__.py
alTeska/talktracker
7d2c507bda78a6faf92568291190ea9300e878dc
[ "MIT" ]
1
2018-10-14T20:06:51.000Z
2018-10-14T20:06:51.000Z
talktracker/__init__.py
alTeska/talktracker
7d2c507bda78a6faf92568291190ea9300e878dc
[ "MIT" ]
3
2018-09-21T15:09:26.000Z
2018-10-13T13:58:06.000Z
from __future__ import absolute_import from .talktracker import Member, Team, Session from .analysis import time_diff, time_add, dissect_time, to_seconds
38.5
67
0.844156
22
154
5.5
0.681818
0
0
0
0
0
0
0
0
0
0
0
0.11039
154
4
67
38.5
0.883212
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