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
a8157d99529c50ecf9937f05030a004829cd209a
26
py
Python
tools/__init__.py
jduanen/SensorNet
82a440f23f6ee3b103ad1a0f79245ef6779bff93
[ "MIT" ]
null
null
null
tools/__init__.py
jduanen/SensorNet
82a440f23f6ee3b103ad1a0f79245ef6779bff93
[ "MIT" ]
null
null
null
tools/__init__.py
jduanen/SensorNet
82a440f23f6ee3b103ad1a0f79245ef6779bff93
[ "MIT" ]
null
null
null
''' SensorNet package '''
6.5
17
0.615385
2
26
8
1
0
0
0
0
0
0
0
0
0
0
0
0.153846
26
3
18
8.666667
0.727273
0.653846
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
b527a0ab2819ec30ca059e458d302f0dec6cb7ec
81
py
Python
tests/perfs/test_ozone_perf_measure_MASE.py
shaido987/pyaf
b9afd089557bed6b90b246d3712c481ae26a1957
[ "BSD-3-Clause" ]
377
2016-10-13T20:52:44.000Z
2022-03-29T18:04:14.000Z
tests/perfs/test_ozone_perf_measure_MASE.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
160
2016-10-13T16:11:53.000Z
2022-03-28T04:21:34.000Z
tests/perfs/test_ozone_perf_measure_MASE.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
63
2017-03-09T14:51:18.000Z
2022-03-27T20:52:57.000Z
import tests.perfs.test_ozone_perf_measure as tperf tperf.build_model("MASE");
16.2
51
0.814815
13
81
4.769231
0.923077
0
0
0
0
0
0
0
0
0
0
0
0.08642
81
4
52
20.25
0.837838
0
0
0
0
0
0.05
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
b56d9a94fd4d11b8f5df1f95dda69d147de8b59d
4,781
py
Python
tests/sample_apps/how_to/_achievement.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
null
null
null
tests/sample_apps/how_to/_achievement.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
1
2021-10-13T03:46:58.000Z
2021-10-13T03:46:58.000Z
tests/sample_apps/how_to/_achievement.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
null
null
null
from ._integration_test_case import IntegrationTestCase from accelbyte_py_sdk.api.achievement.models import ModelsAchievementRequest class AchievementTestCase(IntegrationTestCase): exist: bool = False models_achievement_request: ModelsAchievementRequest = ModelsAchievementRequest.create( achievement_code="CODE", default_language="EN", description={"EN": "DESCRIPTION"}, goal_value=1, hidden=False, incremental=False, locked_icons=[], name={"EN": "NAME"}, stat_code="STAT_CODE", tags=["TAG"], unlocked_icons=[] ) def tearDown(self) -> None: from accelbyte_py_sdk.api.achievement import admin_delete_achievement if self.exist: _, error = admin_delete_achievement(achievement_code=self.models_achievement_request.achievement_code) self.log_warning(msg=f"Failed to tear down achievement. {str(error)}", condition=error is not None) self.exist = error is not None super().tearDown() def test_admin_create_new_achievement(self): from accelbyte_py_sdk.api.achievement import admin_create_new_achievement from accelbyte_py_sdk.api.achievement import admin_delete_achievement # arrange _, error = admin_delete_achievement(achievement_code=self.models_achievement_request.achievement_code) self.exist = error is not None # act result, error = admin_create_new_achievement(body=self.models_achievement_request) self.exist = error is None # assert self.assertIsNone(error, error) def test_admin_delete_achievement(self): from accelbyte_py_sdk.api.achievement import admin_create_new_achievement from accelbyte_py_sdk.api.achievement import admin_delete_achievement # arrange _, error = admin_create_new_achievement(body=self.models_achievement_request) self.log_warning(msg=f"Failed to set up achievement. {str(error)}", condition=error is not None) self.exist = error is None # act result, error = admin_delete_achievement(achievement_code=self.models_achievement_request.achievement_code) self.exist = error is not None # assert self.assertIsNone(error, error) def test_admin_get_achievement(self): from accelbyte_py_sdk.api.achievement import admin_create_new_achievement from accelbyte_py_sdk.api.achievement import admin_get_achievement # arrange _, error = admin_create_new_achievement(body=self.models_achievement_request) self.log_warning(msg=f"Failed to set up achievement. {str(error)}", condition=error is not None) self.exist = error is None # act _, error = admin_get_achievement(achievement_code=self.models_achievement_request.achievement_code) # assert self.assertIsNone(error, error) def test_admin_list_achievements(self): from accelbyte_py_sdk.api.achievement import admin_create_new_achievement from accelbyte_py_sdk.api.achievement import admin_list_achievements # arrange _, error = admin_create_new_achievement(body=self.models_achievement_request) self.log_warning(msg=f"Failed to set up achievement. {str(error)}", condition=error is not None) self.exist = error is None # act _, error = admin_list_achievements() # assert self.assertIsNone(error, error) def test_admin_update_achievement(self): from accelbyte_py_sdk.api.achievement import admin_create_new_achievement from accelbyte_py_sdk.api.achievement import admin_update_achievement from accelbyte_py_sdk.api.achievement.models import ModelsAchievementUpdateRequest # arrange _, error = admin_create_new_achievement(body=self.models_achievement_request) self.log_warning(msg=f"Failed to set up achievement. {str(error)}", condition=error is not None) self.exist = error is None # act result, error = admin_update_achievement( achievement_code=self.models_achievement_request.achievement_code, body=ModelsAchievementUpdateRequest.create( default_language="ID", description={"ID": "KETERANGAN"}, goal_value=1, hidden=False, incremental=False, locked_icons=[], name={"ID": "NAMA"}, stat_code="KODE_STATUS", tags=["MENANDAI"], unlocked_icons=[] ) ) # assert self.assertIsNone(error, error) self.assertIn("ID", result.name) self.assertEqual("NAMA", result.name["ID"])
38.556452
115
0.684585
540
4,781
5.77037
0.148148
0.054236
0.06258
0.075096
0.783055
0.766046
0.7638
0.753209
0.696727
0.622914
0
0.000549
0.238444
4,781
123
116
38.869919
0.85526
0.019661
0
0.5
0
0
0.063584
0
0
0
0
0
0.085366
1
0.073171
false
0
0.170732
0
0.280488
0
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
b58867dd400575f882348dda4607432a6f0c9a31
3,242
py
Python
213_house_robber2.py
claytonjwong/leetcode-py
16bbf8ac0ba5c80fe3ef67ade0d61a12991270a7
[ "MIT" ]
1
2020-07-15T14:16:23.000Z
2020-07-15T14:16:23.000Z
213_house_robber2.py
claytonjwong/leetcode-py
16bbf8ac0ba5c80fe3ef67ade0d61a12991270a7
[ "MIT" ]
null
null
null
213_house_robber2.py
claytonjwong/leetcode-py
16bbf8ac0ba5c80fe3ef67ade0d61a12991270a7
[ "MIT" ]
null
null
null
# # 213. House Robber II # # Q: https://leetcode.com/problems/house-robber-ii/ # A: https://leetcode.com/problems/house-robber-ii/discuss/894504/Kt-Js-Py3-Cpp-The-ART-of-Dynamic-Programming # from typing import List # brute-force class Solution: def rob(self, A: List[int]) -> int: N = len(A) def go(i, first, last): if i == N: # 🛑 base case return 0 if last + 1 == i or (first and i + 1 == N and 1 < N): # 🚫 without i-th house (due to adjacent neighbor constraint) return go(i + 1, first, last) return max(A[i] + go(i + 1, first, i), go(i + 1, first, last)) # ✅ with i-th house xor 🚫 without i-th house return max(go(0, True, -123), go(1, False, -123)) # ✅ with first house xor 🚫 without first house # top-down memo class Solution: def rob(self, A: List[int]) -> int: m = {} N = len(A) def go(i, first, last): key = f'{i},{first},{last}' if key in m: # 🤔 memo return m[key] if i == N: # 🛑 base case m[key] = 0 elif last + 1 == i or (first and i + 1 == N and 1 < N): # 🚫 without i-th house (due to adjacent neighbor constraint) m[key] = go(i + 1, first, last) else: m[key] = max(A[i] + go(i + 1, first, i), go(i + 1, first, last)) # ✅ with i-th house xor 🚫 without i-th house return m[key] return max(go(0, True, -123), go(1, False, -123)) # ✅ with first house xor 🚫 without first house # bottom-up class Solution: def rob(self, A: List[int]) -> int: N = len(A) if N == 1: # 💎 corner case return A[0] def best(start): dp = [0] * (N + 2) # 🤔 memo + 🛑 base cases (ie. dp[N] = 0 and dp[N + 1] = 0) for i in range(N - 1 - (0 if start else 1), -1, -1): dp[i] = max(A[i] + dp[i + 2], dp[i + 1]) # ✅ with i-th house xor 🚫 without i-th house return dp[start] return max(best(0), best(1)) # ✅ with first house xor 🚫 without first house # bottom-up memory optimization class Solution: def rob(self, A: List[int]) -> int: N = len(A) if N == 1: # 💎 corner case return A[0] def best(start): a, b, c = 0, 0, 0 # 🤔 memo + 🛑 base cases (ie. a = 0 and b = 0) for i in range(N - 1 - (0 if start else 1), start - 1, -1): c = max(A[i] + a, b) # ✅ with i-th house xor 🚫 without i-th house a = b; b = c # 👉 slide window return c return max(best(0), best(1)) # ✅ with first house xor 🚫 without first house
49.121212
142
0.413017
455
3,242
3.004396
0.202198
0.058522
0.058522
0.093636
0.77981
0.76079
0.716898
0.662765
0.637162
0.61229
0
0.040299
0.46422
3,242
65
143
49.876923
0.73057
0.274213
0
0.56
0
0
0.007745
0
0
0
0
0
0
1
0.16
false
0
0.02
0
0.52
0
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
4
b58e534cdffd126bdfcd681ed9d7dbcf4f7ed934
81
py
Python
django_docutils/favicon/tests/test_app/__init__.py
tony/django-docutils
ed3e089728507a0f579a62bcb182f283bc59929c
[ "MIT" ]
10
2017-04-28T00:19:10.000Z
2020-07-22T15:27:09.000Z
django_docutils/favicon/tests/test_app/__init__.py
tony/django-docutils
ed3e089728507a0f579a62bcb182f283bc59929c
[ "MIT" ]
231
2017-01-17T04:47:51.000Z
2022-03-30T03:03:42.000Z
django_docutils/favicon/tests/test_app/__init__.py
tony/django-docutils
ed3e089728507a0f579a62bcb182f283bc59929c
[ "MIT" ]
1
2019-01-25T14:42:15.000Z
2019-01-25T14:42:15.000Z
default_app_config = 'django_docutils.favicon.tests.test_app.apps.TestAppConfig'
40.5
80
0.864198
11
81
6
0.909091
0
0
0
0
0
0
0
0
0
0
0
0.037037
81
1
81
81
0.846154
0
0
0
0
0
0.703704
0.703704
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
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
b59faa7e9838f5167c2d608c55bd65460affe39f
394
py
Python
mock_useragent/__init__.py
awesome-archive/mock-useragent
0e745be7316cd2f85d3aef19ee914244d84e4019
[ "MIT" ]
1
2020-03-18T11:33:39.000Z
2020-03-18T11:33:39.000Z
mock_useragent/__init__.py
awesome-archive/mock-useragent
0e745be7316cd2f85d3aef19ee914244d84e4019
[ "MIT" ]
null
null
null
mock_useragent/__init__.py
awesome-archive/mock-useragent
0e745be7316cd2f85d3aef19ee914244d84e4019
[ "MIT" ]
1
2020-03-18T11:33:41.000Z
2020-03-18T11:33:41.000Z
# VERSION = (0, 0, 1, 'final', 0) # __title__ = 'mock-useragent' # __version_info__ = VERSION # __version__ = '.'.join(map(str, VERSION[:3])) + ('-{}{}'.format( # VERSION[3], VERSION[4] or '') if VERSION[3] != 'final' else '') # __author__ = 'find456789' # __license__ = 'MIT' # __copyright__ = 'Copyright 2018-2019 find456789 ' from mock_useragent.mock import MockUserAgent, UserAgent
28.142857
69
0.652284
45
394
5.133333
0.6
0.103896
0
0
0
0
0
0
0
0
0
0.084337
0.15736
394
13
70
30.307692
0.611446
0.80203
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
a90efed1a5a2a4f806c8acf4ae5f3d4bccaed3d4
58
py
Python
devel/.private/custommsg/lib/python2.7/dist-packages/custommsg/msg/__init__.py
arijitnoobstar/Flapping-Wing-MAV_DeepRL
461d31d5ae18da00204b63ebdbe53bbd2f72f0fa
[ "Apache-2.0" ]
4
2021-05-16T15:49:51.000Z
2021-05-31T16:23:40.000Z
devel/.private/custommsg/lib/python2.7/dist-packages/custommsg/msg/__init__.py
mion666459/Flapping-Wing-MAV_DeepRL
461d31d5ae18da00204b63ebdbe53bbd2f72f0fa
[ "Apache-2.0" ]
null
null
null
devel/.private/custommsg/lib/python2.7/dist-packages/custommsg/msg/__init__.py
mion666459/Flapping-Wing-MAV_DeepRL
461d31d5ae18da00204b63ebdbe53bbd2f72f0fa
[ "Apache-2.0" ]
1
2021-05-16T15:16:11.000Z
2021-05-16T15:16:11.000Z
from ._kinematicstamped import * from ._ppmchnls import *
19.333333
32
0.793103
6
58
7.333333
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.137931
58
2
33
29
0.88
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
a9210785e5ac3c2c3ff97cf2d1b1e72fc23e4a52
4,817
py
Python
django_form/encounters/models.py
joncinque/django_form
2f0e5921498d3338f6612dd0b80bbea71d84d4d3
[ "MIT" ]
null
null
null
django_form/encounters/models.py
joncinque/django_form
2f0e5921498d3338f6612dd0b80bbea71d84d4d3
[ "MIT" ]
2
2021-03-30T12:53:41.000Z
2021-06-10T18:43:56.000Z
django_form/encounters/models.py
joncinque/django_form
2f0e5921498d3338f6612dd0b80bbea71d84d4d3
[ "MIT" ]
null
null
null
from django.db import models from django.urls import reverse MAX_NAME_LENGTH = 200 MAX_ADDRESS_LENGTH = 200 MAX_SSN_LENGTH = 15 MAX_PHONE_LENGTH = 30 class Sex(models.TextChoices): MALE = 'Male' FEMALE = 'Female' OTHER = 'Other' DECLINE = 'Decline to answer' class EncounterType(models.TextChoices): INPATIENT = 'Inpatient' OUTPATIENT_AMBULANCE = 'Outpatient Ambulance' OUTPATIENT_OFFICE = 'Outpatient Office' class Patient(models.Model): name = models.CharField(max_length=MAX_NAME_LENGTH, db_index=True) email = models.EmailField(blank=True) ssn = models.CharField(max_length=MAX_SSN_LENGTH, blank=True) address = models.CharField(max_length=MAX_NAME_LENGTH, blank=True) city = models.CharField(max_length=MAX_NAME_LENGTH, blank=True) state = models.CharField(max_length=MAX_NAME_LENGTH, blank=True) zipcode = models.CharField(max_length=MAX_PHONE_LENGTH, blank=True) phone = models.CharField(max_length=MAX_PHONE_LENGTH, blank=True) birthdate = models.DateField(blank=True, null=True) sex = models.CharField( max_length=MAX_PHONE_LENGTH, choices=Sex.choices, default=Sex.OTHER, ) def get_absolute_url(self): return reverse('patients-detail', args=[self.id]) def get_delete_url(self): return reverse('patients-delete', args=[self.id]) def __str__(self): return self.name class Meta: ordering = ['name'] verbose_name = 'Patient' verbose_name_plural = 'Patients' class Facility(models.Model): name = models.CharField(max_length=MAX_NAME_LENGTH, db_index=True) email = models.EmailField(blank=True) taxid = models.CharField(max_length=MAX_SSN_LENGTH, blank=True) address = models.CharField(max_length=MAX_NAME_LENGTH, blank=True) city = models.CharField(max_length=MAX_NAME_LENGTH, blank=True) state = models.CharField(max_length=MAX_NAME_LENGTH, blank=True) zipcode = models.CharField(max_length=MAX_PHONE_LENGTH, blank=True) phone = models.CharField(max_length=MAX_PHONE_LENGTH, blank=True) fax = models.CharField(max_length=MAX_PHONE_LENGTH, blank=True) admin = models.CharField(max_length=MAX_NAME_LENGTH, blank=True) def get_absolute_url(self): return reverse('facilities-detail', args=[self.id]) def get_delete_url(self): return reverse('facilities-delete', args=[self.id]) def __str__(self): return self.name class Meta: ordering = ['name'] verbose_name = 'Facility' verbose_name_plural = 'Facilities' class Physician(models.Model): name = models.CharField(max_length=MAX_NAME_LENGTH, db_index=True) email = models.EmailField(blank=True) taxid = models.CharField(max_length=MAX_SSN_LENGTH, blank=True) address = models.CharField(max_length=MAX_NAME_LENGTH, blank=True) city = models.CharField(max_length=MAX_NAME_LENGTH, blank=True) state = models.CharField(max_length=MAX_NAME_LENGTH, blank=True) zipcode = models.CharField(max_length=MAX_PHONE_LENGTH, blank=True) phone = models.CharField(max_length=MAX_PHONE_LENGTH, blank=True) fax = models.CharField(max_length=MAX_PHONE_LENGTH, blank=True) def get_absolute_url(self): return reverse('physicians-detail', args=[self.id]) def get_delete_url(self): return reverse('physicians-delete', args=[self.id]) def __str__(self): return self.name class Meta: ordering = ['name'] verbose_name = 'Physician' verbose_name_plural = 'Physicians' class Encounter(models.Model): requested_type = models.CharField( max_length=MAX_PHONE_LENGTH, choices=EncounterType.choices, default=EncounterType.INPATIENT, ) assigned_type = models.CharField( max_length=MAX_PHONE_LENGTH, choices=EncounterType.choices, default=EncounterType.INPATIENT, ) patient = models.ForeignKey(Patient, on_delete=models.CASCADE) facility = models.ForeignKey(Facility, on_delete=models.CASCADE) physician = models.ForeignKey(Physician, on_delete=models.CASCADE) created = models.DateTimeField(auto_now_add=True) last_modified = models.DateTimeField(auto_now=True) charting = models.TextField(blank=True) # TODO formset reviews = models.TextField(null=True, blank=True) # TODO formset def get_absolute_url(self): return reverse('encounters-detail', args=[self.id]) def get_delete_url(self): return reverse('encounters-delete', args=[self.id]) def __str__(self): return self.created.strftime('%Y/%m/%d %H:%M') + ' - ' + self.patient.name class Meta: ordering = ['last_modified', 'created'] verbose_name = 'Encounter' verbose_name_plural = 'Encounters'
33.922535
82
0.710816
608
4,817
5.388158
0.154605
0.123626
0.148352
0.197802
0.685897
0.662698
0.662698
0.641941
0.628205
0.607753
0
0.00254
0.182686
4,817
141
83
34.163121
0.829566
0.00519
0
0.495413
0
0
0.068908
0
0
0
0
0.007092
0
1
0.110092
false
0
0.018349
0.110092
0.743119
0
0
0
0
null
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
4
a94ededacf0db7e7202927d0cada73593460b027
265
py
Python
custom/_legacy/pathfinder/__init__.py
dslowikowski/commcare-hq
ad8885cf8dab69dc85cb64f37aeaf06106124797
[ "BSD-3-Clause" ]
1
2015-02-10T23:26:39.000Z
2015-02-10T23:26:39.000Z
custom/_legacy/pathfinder/__init__.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
null
null
null
custom/_legacy/pathfinder/__init__.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
null
null
null
from pathfinder.models import (PathfinderHBCReport, PathfinderProviderReport, PathfinderWardSummaryReport) CUSTOM_REPORTS = ( ('Custom Reports', ( PathfinderHBCReport, PathfinderProviderReport, PathfinderWardSummaryReport )), )
24.090909
77
0.728302
14
265
13.714286
0.642857
0.447917
0.729167
0
0
0
0
0
0
0
0
0
0.203774
265
10
78
26.5
0.909953
0
0
0
0
0
0.05283
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0
1
0
1
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
a95023ae84eed7cfb9981701e9ae34f532131e32
3,890
py
Python
keep_backend/tests/test_orgs/test_views.py
9929105/KEEP
a3e8b00f82367e13835e5137bd5c0eaa7c8d26d2
[ "MIT" ]
null
null
null
keep_backend/tests/test_orgs/test_views.py
9929105/KEEP
a3e8b00f82367e13835e5137bd5c0eaa7c8d26d2
[ "MIT" ]
null
null
null
keep_backend/tests/test_orgs/test_views.py
9929105/KEEP
a3e8b00f82367e13835e5137bd5c0eaa7c8d26d2
[ "MIT" ]
null
null
null
import json from django.core.urlresolvers import reverse from tests import ViewTestCase from organizations.models import Organization class OrgViewTests( ViewTestCase ): def test_add_member_accept( self ): org = self.test_new() self.login() # Request a member to join url = reverse( 'organization_member_add', kwargs={'org': org.name, 'user': 'test_user'} ) response = self.client.post( url ) self.assertEqual( response.status_code, 200 ) # Attempt to accept member invitation under another account url = reverse( 'organization_member_accept', kwargs={'org': org.name, 'user': 'test_user'}) response = self.client.get( url ) self.assertEqual( response.status_code, 404 ) self.logout() # Login with our test user and accept the member invitation self.login( username='test_user', password='test' ) response = self.client.get( url ) self.assertEqual( response.status_code, 302 ) self.logout() org.delete() def test_add_member_ignore( self ): org = self.test_new() self.login() # Request a member to join url = reverse( 'organization_member_add', kwargs={'org': org.name, 'user': 'test_user'} ) response = self.client.post( url ) self.assertEqual( response.status_code, 200 ) # Attempt to accept member invitation under another account url = reverse( 'organization_member_ignore', kwargs={'org': org.name, 'user': 'test_user'}) response = self.client.get( url ) self.assertEqual( response.status_code, 404 ) self.logout() # Login with our test user and accept the member invitation self.login( username='test_user', password='test' ) response = self.client.get( url ) self.assertEqual( response.status_code, 302 ) self.logout() org.delete() def test_dashboard( self ): org = self.test_new() url = reverse( 'organization_dashboard', kwargs={ 'org': org.name } ) self.login() response = self.client.get( url ) self.assertEqual( response.status_code, 200 ) self.logout() org.delete() def test_delete( self ): org = self.test_new() url = reverse( 'organization_delete', kwargs={ 'org': org.name } ) self.login() response = self.client.get( url ) self.assertEqual( response.status_code, 302 ) self.logout() def test_new( self ): self.login() url = reverse( 'organization_new' ) # Test GET response response = self.client.get( url ) self.assertEqual( response.status_code, 200 ) # Test POST response org_data = { 'name': 'test_org', 'gravatar': '' } response = self.client.post( url, org_data ) self.assertEqual( response.status_code, 302 ) self.logout() return Organization.objects.get( name='test_org' ) def test_new_repo( self ): org = self.test_new() self.login() url = reverse( 'organization_repo_new', kwargs={'org': org.name} ) # Test GET response response = self.client.get( url ) self.assertEqual( response.status_code, 200 ) # Test POST response repo_data = { 'name': 'new_test', 'desc': 'description', 'privacy': 'private', 'survey_json': json.dumps( { 'type': 'survey', 'children': [ { 'type': 'text', 'name': 'name', 'label': 'What\'s your name?' }] }) } response = self.client.post( url, repo_data ) self.assertEqual( response.status_code, 302 ) self.logout() org.delete()
29.029851
99
0.580977
428
3,890
5.151869
0.172897
0.065306
0.097959
0.157823
0.786848
0.740136
0.728345
0.7161
0.679819
0.655329
0
0.013269
0.302571
3,890
134
100
29.029851
0.799484
0.09126
0
0.590361
0
0
0.113191
0.04
0
0
0
0
0.144578
1
0.072289
false
0.024096
0.048193
0
0.144578
0
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
8d17295fe63b848e30bd98e754b7abf4f1f02cbd
171
py
Python
SOLID/LSP/step_0/main.py
musen-rse/examples_python_starting_point
f97b0ac02e07724204de16e7bd810031f2f0d706
[ "MIT" ]
1
2022-01-23T14:02:47.000Z
2022-01-23T14:02:47.000Z
SOLID/LSP/step_0/main.py
musen-rse/examples_python_starting_point
f97b0ac02e07724204de16e7bd810031f2f0d706
[ "MIT" ]
1
2021-09-12T07:00:30.000Z
2021-09-12T07:00:30.000Z
SOLID/LSP/step_0/main.py
musen-rse/examples_python_starting_point
f97b0ac02e07724204de16e7bd810031f2f0d706
[ "MIT" ]
1
2022-01-23T14:02:29.000Z
2022-01-23T14:02:29.000Z
from core.app import Application, Rectangle def main() -> None: Application([Rectangle(2.0, 3.0), Rectangle(4.0, 2.1)]).run() if __name__ == "__main__": main()
19
65
0.643275
25
171
4.08
0.68
0.392157
0
0
0
0
0
0
0
0
0
0.056338
0.169591
171
8
66
21.375
0.661972
0
0
0
0
0
0.046784
0
0
0
0
0
0
1
0.2
true
0
0.2
0
0.4
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
8d6f0c1280030401b1c898691109cda676addce6
218
py
Python
alphabetrangoli.py
rishavpramanik/hackerrankpers
b452731af65239f152a4578de4a1a20588a94d86
[ "MIT" ]
1
2021-08-19T21:28:43.000Z
2021-08-19T21:28:43.000Z
alphabetrangoli.py
rishavpramanik/hackerrankpers
b452731af65239f152a4578de4a1a20588a94d86
[ "MIT" ]
2
2021-09-29T20:02:44.000Z
2021-09-29T20:07:05.000Z
alphabetrangoli.py
rishavpramanik/hackerrankpers
b452731af65239f152a4578de4a1a20588a94d86
[ "MIT" ]
null
null
null
from string import ascii_lowercase as chars def print_rangoli(size): heap = [(('-'.join(chars[i:n])[::-1]+'-'.join(chars[i:n])[1:])).center(4*n-3, '-')for i in range(n)] print(*(heap[::-1]+heap[1:]), sep="\n")
43.6
104
0.577982
38
218
3.263158
0.605263
0.145161
0.16129
0.177419
0.193548
0
0
0
0
0
0
0.031088
0.114679
218
4
105
54.5
0.611399
0
0
0
0
0
0.022936
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.5
0.5
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
1
0
4
57362101aca76cfb4ecdaca7adb6d513023e0ac9
1,269
py
Python
2018/day01/test_day01.py
kfarnung/advent-of-code
74604578379c518bd7ad959e0088ca55a6986515
[ "MIT" ]
1
2017-12-11T07:08:52.000Z
2017-12-11T07:08:52.000Z
2018/day01/test_day01.py
kfarnung/advent-of-code
74604578379c518bd7ad959e0088ca55a6986515
[ "MIT" ]
2
2020-12-01T08:16:42.000Z
2021-05-12T04:54:34.000Z
2018/day01/test_day01.py
kfarnung/advent-of-code
74604578379c518bd7ad959e0088ca55a6986515
[ "MIT" ]
null
null
null
""" Tests for Advent of Code Day 1. https://adventofcode.com/2018/day/1 """ from os import path from .day01 import calculate_frequency, calculate_frequency_two_match _CURRENT_FILE_DIR = path.dirname(__file__) def test_part1(): """Tests for Part 1.""" assert calculate_frequency(['+1', '-2', '+3', '+1']) == 3 assert calculate_frequency(['+1', '+1', '+1']) == 3 assert calculate_frequency(['+1', '+1', '-2']) == 0 assert calculate_frequency(['-1', '-2', '-3']) == -6 with open(path.join(_CURRENT_FILE_DIR, 'input'), 'r') as input_file: file_content = input_file.readlines() assert calculate_frequency(file_content) == 477 def test_part2(): """Tests for Part 2.""" assert calculate_frequency_two_match(['+1', '-2', '+3', '+1']) == 2 assert calculate_frequency_two_match(['+1', '-1']) == 0 assert calculate_frequency_two_match(['+3', '+3', '+4', '-2', '-4']) == 10 assert calculate_frequency_two_match(['-6', '+3', '+8', '+5', '-6']) == 5 assert calculate_frequency_two_match(['+7', '+7', '-2', '-7', '-4']) == 14 with open(path.join(_CURRENT_FILE_DIR, 'input'), 'r') as input_file: file_content = input_file.readlines() assert calculate_frequency_two_match(file_content) == 390
35.25
78
0.624901
174
1,269
4.270115
0.287356
0.314939
0.355316
0.244953
0.648721
0.508748
0.43607
0.269179
0.269179
0.269179
0
0.059716
0.168637
1,269
35
79
36.257143
0.64455
0.081954
0
0.2
0
0
0.069747
0
0
0
0
0
0.55
1
0.1
false
0
0.1
0
0.2
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
0
0
0
0
0
0
0
4
5745a9373f6dd9287ff0c8121c2d5affb135d4b6
121
py
Python
slides/20160516-Python_Loop_CommonFunctions/for_loop_3.py
she02789222/test
fa10bd5be351ca3d4bef4f7d6c4510e65666de7c
[ "MIT" ]
4
2018-11-29T04:06:29.000Z
2021-11-29T07:00:44.000Z
slides/20160516-Python_Loop_CommonFunctions/for_loop_3.py
NTNUCIC/108
52961e76d299842c2d44d142d5c56ad665420ee6
[ "MIT" ]
6
2016-05-17T02:34:57.000Z
2021-02-05T17:33:28.000Z
slides/20160516-Python_Loop_CommonFunctions/for_loop_3.py
NTNUCIC/108
52961e76d299842c2d44d142d5c56ad665420ee6
[ "MIT" ]
3
2019-02-17T05:58:46.000Z
2019-02-18T15:09:55.000Z
names_scores = (('Amy',82,90),('John',33,64),('Zoe',91,94)) for x,y,z in names_scores: print(x) print(y,z) print('End')
24.2
59
0.619835
25
121
2.92
0.72
0.30137
0
0
0
0
0
0
0
0
0
0.109091
0.090909
121
5
60
24.2
0.554545
0
0
0
0
0
0.106557
0
0
0
0
0
0
1
0
false
0
0
0
0
0.6
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
4
93bf8cb9d3697f3c7a4aa7abd067c25bb8bb1100
97
py
Python
module_2/util.py
mandalbiswadip/MLLearn
8d1b80a229a2e3990126d66c9001928fc8193fa9
[ "MIT" ]
null
null
null
module_2/util.py
mandalbiswadip/MLLearn
8d1b80a229a2e3990126d66c9001928fc8193fa9
[ "MIT" ]
null
null
null
module_2/util.py
mandalbiswadip/MLLearn
8d1b80a229a2e3990126d66c9001928fc8193fa9
[ "MIT" ]
null
null
null
def load_text(file): with open(file, "r") as file: text = file.read() return text
24.25
33
0.587629
15
97
3.733333
0.666667
0.285714
0
0
0
0
0
0
0
0
0
0
0.278351
97
4
34
24.25
0.8
0
0
0
0
0
0.010204
0
0
0
0
0
0
1
0.25
false
0
0
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
4
93c3bd3da6d204bda8647ca4f63c901dacc1ada8
356
py
Python
ogc_search/open_data/admin.py
open-data/ogc_search
cd089ce6fa1113710989299fc0cc663c5ef40e3c
[ "MIT" ]
null
null
null
ogc_search/open_data/admin.py
open-data/ogc_search
cd089ce6fa1113710989299fc0cc663c5ef40e3c
[ "MIT" ]
30
2019-11-19T22:29:48.000Z
2022-03-31T15:37:24.000Z
ogc_search/open_data/admin.py
open-data/ogc_search
cd089ce6fa1113710989299fc0cc663c5ef40e3c
[ "MIT" ]
1
2020-07-15T16:13:06.000Z
2020-07-15T16:13:06.000Z
from django.contrib import admin from .models import CatalogType, Organization, QueryLog # Register your models here. @admin.register(CatalogType) class CatalogTypeAdmin(admin.ModelAdmin): pass @admin.register(Organization) class OrganizationAdmin(admin.ModelAdmin): pass @admin.register(QueryLog) class QueryLogAdmin(admin.ModelAdmin): pass
23.733333
55
0.800562
39
356
7.307692
0.461538
0.136842
0.2
0.168421
0.224561
0
0
0
0
0
0
0
0.115169
356
15
56
23.733333
0.904762
0.073034
0
0.272727
0
0
0
0
0
0
0
0
0
1
0
true
0.272727
0.181818
0
0.454545
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
1
0
0
0
0
0
4
93d7591726b1b0999e90fd5491300fd226a3a0bb
229
py
Python
socialdistribution/views.py
cmput404F21/CMPUT404-project-socialdistribution
47f108b43886a4e482c6b6f9c6fdef6dcc005c3f
[ "W3C-20150513" ]
null
null
null
socialdistribution/views.py
cmput404F21/CMPUT404-project-socialdistribution
47f108b43886a4e482c6b6f9c6fdef6dcc005c3f
[ "W3C-20150513" ]
48
2021-10-12T21:41:39.000Z
2021-12-08T19:40:25.000Z
socialdistribution/views.py
cmput404F21/CMPUT404-project-socialdistribution
47f108b43886a4e482c6b6f9c6fdef6dcc005c3f
[ "W3C-20150513" ]
1
2022-01-11T04:07:43.000Z
2022-01-11T04:07:43.000Z
from django.shortcuts import render from django.http import HttpResponseNotFound from django.template.loader import get_template def error_404(request, exception): context = {} return render(request, '404.html', context)
32.714286
47
0.790393
29
229
6.172414
0.62069
0.167598
0
0
0
0
0
0
0
0
0
0.030151
0.131004
229
7
48
32.714286
0.869347
0
0
0
0
0
0.034783
0
0
0
0
0
0
1
0.166667
false
0
0.5
0
0.833333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
93f0ce282fd1945c7beb5689a3fd1bfbdb91d187
2,693
py
Python
DailyProgrammer/DP20141124A.py
DayGitH/Python-Challenges
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
[ "MIT" ]
2
2020-12-23T18:59:22.000Z
2021-04-14T13:16:09.000Z
DailyProgrammer/DP20141124A.py
DayGitH/Python-Challenges
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
[ "MIT" ]
null
null
null
DailyProgrammer/DP20141124A.py
DayGitH/Python-Challenges
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
[ "MIT" ]
null
null
null
""" [2014-11-24] Challenge #190 [Easy] Webscraping sentiments https://www.reddit.com/r/dailyprogrammer/comments/2nauiv/20141124_challenge_190_easy_webscraping_sentiments/ #Description Webscraping is the delicate process of gathering information from a website (usually) without the assistance of an API. Without an API, it often involves finding what ID or CLASS a certain HTML element has and then targeting it. In our latest challenge, we'll need to do this (you're free to use an API, but, where's the fun in that!?) to find out the overall sentiment of a sample size of people. We will be performing very basic sentiment analysis on a YouTube video of your choosing. #Task Your task is to scrape N (You decide but generally, the higher the sample, the more accurate) number of comments from a YouTube video of your choice and then analyse their sentiments based on a short list of happy/sad keywords Analysis will be done by seeing how many Happy/Sad keywords are in each comment. If a comment contains more sad keywords than happy, then it can be deemed sad. Here's a basic list of keywords for you to test against. I've ommited expletives to please all readers... happy = ['love','loved','like','liked','awesome','amazing','good','great','excellent'] sad = ['hate','hated','dislike','disliked','awful','terrible','bad','painful','worst'] Feel free to share a bigger list of keywords if you find one. A larger one would be much appreciated if you can find one. #Formal inputs and outputs ##Input description On console input, you should pass the URL of your video to be analysed. ##Output description The output should consist of a statement stating something along the lines of - "From a sample size of" N "Persons. This sentence is mostly" [Happy|Sad] "It contained" X "amount of Happy keywords and" X "amount of sad keywords. The general feelings towards this video were" [Happy|Sad] #Notes As pointed out by /u/pshatmsft , YouTube loads the comments via AJAX so there's a slight workaround that's been posted by /u/threeifbywhiskey . Given the URL below, all you need to do is replace FullYoutubePathHere with your URL https://plus.googleapis.com/u/0/_/widget/render/comments?first_party_property=YOUTUBE&href=FullYoutubePathHere Remember to append your url in full (https://www.youtube.com/watch?v=dQw4w9WgXcQ as an example) #Hints The string for a Youtube comment is the following <div class="CT">Youtube comment here</div> #Finally We have an IRC channel over at webchat.freenode.net in #reddit-dailyprogrammer Stop on by :D Have a good challenge idea? Consider submitting it to /r/dailyprogrammer_ideas """ def main(): pass if __name__ == "__main__": main()
50.811321
119
0.773115
446
2,693
4.630045
0.53139
0.015496
0.015496
0.02615
0.054237
0
0
0
0
0
0
0.011359
0.150019
2,693
52
120
51.788462
0.890782
0.973264
0
0
0
0
0.125
0
0
0
0
0
0
1
0.25
true
0.25
0
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
1
1
1
0
0
0
0
0
4
93f502a8cf278387183acc45d1c9ad930d6f706d
417
py
Python
pickles/pickles.py
nadavborenstein/SuperPickle
7837eaa8fef263ee93f6bb416589e6fabb970535
[ "Apache-2.0" ]
null
null
null
pickles/pickles.py
nadavborenstein/SuperPickle
7837eaa8fef263ee93f6bb416589e6fabb970535
[ "Apache-2.0" ]
null
null
null
pickles/pickles.py
nadavborenstein/SuperPickle
7837eaa8fef263ee93f6bb416589e6fabb970535
[ "Apache-2.0" ]
null
null
null
# Made by Nadav Borenstein import pickle def dump(obj, fp, protocol=None, *, fix_imports=True): with open(fp, "wb") as file: pickle.dump(obj, file, protocol=protocol, fix_imports=fix_imports) def load(fp, *, fix_imports=True, encoding="ASCII", errors="strict"): with open(fp, "rb") as file: obj = pickle.load(file, fix_imports=fix_imports, encoding=encoding, errors=errors) return obj
29.785714
90
0.690647
61
417
4.622951
0.442623
0.212766
0.099291
0.141844
0
0
0
0
0
0
0
0
0.17506
417
14
91
29.785714
0.819767
0.057554
0
0
0
0
0.038265
0
0
0
0
0
0
1
0.25
false
0
0.625
0
1
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
0
1
0
0
4
f51498c2901bb8b1bc8c6137d747f0edc9f70c5d
74
py
Python
09. Functions Advanced - Lab/01_absolute_values.py
elenaborisova/Python-Advanced
4c266d81f294372c3599741e8ba53f59fdc834c5
[ "MIT" ]
2
2021-04-04T06:26:13.000Z
2022-02-18T22:21:49.000Z
09. Functions Advanced - Lab/01_absolute_values.py
elenaborisova/Python-Advanced
4c266d81f294372c3599741e8ba53f59fdc834c5
[ "MIT" ]
null
null
null
09. Functions Advanced - Lab/01_absolute_values.py
elenaborisova/Python-Advanced
4c266d81f294372c3599741e8ba53f59fdc834c5
[ "MIT" ]
3
2021-02-01T12:32:03.000Z
2021-04-12T13:45:20.000Z
numbers = list(map(float, input().split())) print(list(map(abs, numbers)))
37
43
0.689189
11
74
4.636364
0.727273
0.27451
0
0
0
0
0
0
0
0
0
0
0.067568
74
2
44
37
0.73913
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
4
f517888d20ff6bb30c1f66e8472877d1c6c03dca
106
py
Python
kaoz/tests/__init__.py
fishilico/kaoz
5757a10af8dc83e1c37b022c24514855362040ec
[ "MIT" ]
null
null
null
kaoz/tests/__init__.py
fishilico/kaoz
5757a10af8dc83e1c37b022c24514855362040ec
[ "MIT" ]
3
2015-06-16T13:03:17.000Z
2018-10-21T15:57:26.000Z
kaoz/tests/__init__.py
fishilico/kaoz
5757a10af8dc83e1c37b022c24514855362040ec
[ "MIT" ]
2
2015-06-15T19:40:16.000Z
2015-06-15T20:24:39.000Z
# -*- coding: utf-8 -*- # Copyright © 2011-2013 Binet Réseau # See the LICENCE file for more informations
26.5
44
0.698113
16
106
4.6875
1
0
0
0
0
0
0
0
0
0
0
0.103448
0.179245
106
3
45
35.333333
0.747126
0.933962
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
f52cd56b83810cbe62cf710b8031dee8b49a885d
1,095
py
Python
apps/goods/migrations/0032_auto_20190104_1621.py
lianxiaopang/camel-store-api
b8021250bf3d8cf7adc566deebdba55225148316
[ "Apache-2.0" ]
12
2020-02-01T01:52:01.000Z
2021-04-28T15:06:43.000Z
apps/goods/migrations/0032_auto_20190104_1621.py
lianxiaopang/camel-store-api
b8021250bf3d8cf7adc566deebdba55225148316
[ "Apache-2.0" ]
5
2020-02-06T08:07:58.000Z
2020-06-02T13:03:45.000Z
apps/goods/migrations/0032_auto_20190104_1621.py
lianxiaopang/camel-store-api
b8021250bf3d8cf7adc566deebdba55225148316
[ "Apache-2.0" ]
11
2020-02-03T13:07:46.000Z
2020-11-29T01:44:06.000Z
# Generated by Django 2.1.4 on 2019-01-04 08:21 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('goods', '0031_auto_20181223_2001'), ] operations = [ migrations.RemoveField( model_name='subgoodstemplate', name='banners', ), migrations.RemoveField( model_name='subgoodstemplate', name='category', ), migrations.RemoveField( model_name='subgoodstemplate', name='details', ), migrations.RemoveField( model_name='subgoodstemplate', name='gtypes', ), migrations.RemoveField( model_name='subgoodstemplate', name='image', ), migrations.RemoveField( model_name='subgoodstemplate', name='poster', ), migrations.RemoveField( model_name='subgoodstemplate', name='shop', ), migrations.DeleteModel( name='SubGoodsTemplate', ), ]
24.333333
47
0.53516
81
1,095
7.111111
0.45679
0.277778
0.315972
0.364583
0.607639
0.607639
0
0
0
0
0
0.044097
0.357991
1,095
44
48
24.886364
0.775249
0.041096
0
0.578947
1
0
0.189886
0.021947
0
0
0
0
0
1
0
false
0
0.026316
0
0.105263
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
f5677de790f73610dc92456f8cdd6deef971c849
89
py
Python
Mailbox/apps.py
Positron11/Corkran
53f463ca4f02e2617205bf67c123923dda2ce403
[ "MIT" ]
null
null
null
Mailbox/apps.py
Positron11/Corkran
53f463ca4f02e2617205bf67c123923dda2ce403
[ "MIT" ]
3
2020-06-23T17:13:11.000Z
2021-04-08T19:57:20.000Z
Mailbox/apps.py
Positron11/Corkran
53f463ca4f02e2617205bf67c123923dda2ce403
[ "MIT" ]
null
null
null
from django.apps import AppConfig class MailboxConfig(AppConfig): name = 'Mailbox'
14.833333
33
0.752809
10
89
6.7
0.9
0
0
0
0
0
0
0
0
0
0
0
0.168539
89
5
34
17.8
0.905405
0
0
0
0
0
0.078652
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
f5a05be7a1bb1ebd7795f9af708f803a611cc3d9
206
py
Python
app/schemas/session.py
coolexplorer/py-session
86ffbd3f1744df18d2deeaa77eebe5dd9980c6ae
[ "MIT" ]
2
2021-08-17T07:15:46.000Z
2021-08-17T07:18:15.000Z
app/schemas/session.py
coolexplorer/py-session
86ffbd3f1744df18d2deeaa77eebe5dd9980c6ae
[ "MIT" ]
1
2022-02-24T06:52:08.000Z
2022-02-24T06:52:08.000Z
app/schemas/session.py
coolexplorer/py-session
86ffbd3f1744df18d2deeaa77eebe5dd9980c6ae
[ "MIT" ]
null
null
null
from pydantic import BaseModel class SessionBase(BaseModel): data: dict class SessionIn(SessionBase): expired_time: str expired_time_unit: str pass class SessionOut(SessionBase): pass
17.166667
30
0.747573
24
206
6.291667
0.625
0.145695
0
0
0
0
0
0
0
0
0
0
0.194175
206
12
31
17.166667
0.909639
0
0
0.222222
0
0
0
0
0
0
0
0
0
1
0
true
0.222222
0.111111
0
0.777778
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
0
0
1
0
0
4
191be4dffb192b1c7f5d04bc2afe71fac6a2e221
61
py
Python
src/apps/spam/domain/models.py
SlonSky/django-grasped
97ea2f6d2e10232fc084a6407fa089df2cdf086e
[ "MIT" ]
null
null
null
src/apps/spam/domain/models.py
SlonSky/django-grasped
97ea2f6d2e10232fc084a6407fa089df2cdf086e
[ "MIT" ]
null
null
null
src/apps/spam/domain/models.py
SlonSky/django-grasped
97ea2f6d2e10232fc084a6407fa089df2cdf086e
[ "MIT" ]
null
null
null
""" Put here your models and custom Django model managers """
20.333333
53
0.737705
9
61
5
1
0
0
0
0
0
0
0
0
0
0
0
0.163934
61
3
54
20.333333
0.882353
0.868852
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
191ed76386bbc17c7f9c3708e69f82edff41d1e9
92
py
Python
gdrive/drive/apps.py
amirasaad/googledrivelike
e192f5be45a997f643d8fafce5278ef37d0dc1c4
[ "MIT" ]
1
2021-01-14T05:14:05.000Z
2021-01-14T05:14:05.000Z
gdrive/drive/apps.py
amirasaad/googledrivelike
e192f5be45a997f643d8fafce5278ef37d0dc1c4
[ "MIT" ]
4
2020-10-29T17:52:33.000Z
2020-11-04T01:14:34.000Z
gdrive/drive/apps.py
amirasaad/googledrivelike
e192f5be45a997f643d8fafce5278ef37d0dc1c4
[ "MIT" ]
null
null
null
from django.apps import AppConfig class DriveConfig(AppConfig): name = "gdrive.drive"
15.333333
33
0.75
11
92
6.272727
0.909091
0
0
0
0
0
0
0
0
0
0
0
0.163043
92
5
34
18.4
0.896104
0
0
0
0
0
0.130435
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
19228c1fb1504ea87d6dcdefed727ebf9e1ecbe8
340
py
Python
spec/python/test_imports_abs_rel.py
DarkShadow44/kaitai_struct_tests
4bb13cef82965cca66dda2eb2b77cd64e9f70a12
[ "MIT" ]
11
2018-04-01T03:58:15.000Z
2021-08-14T09:04:55.000Z
spec/python/test_imports_abs_rel.py
DarkShadow44/kaitai_struct_tests
4bb13cef82965cca66dda2eb2b77cd64e9f70a12
[ "MIT" ]
73
2016-07-20T10:27:15.000Z
2020-12-17T18:56:46.000Z
spec/python/test_imports_abs_rel.py
DarkShadow44/kaitai_struct_tests
4bb13cef82965cca66dda2eb2b77cd64e9f70a12
[ "MIT" ]
37
2016-08-15T08:25:56.000Z
2021-08-28T14:48:46.000Z
import unittest from imports_abs_rel import ImportsAbsRel class TestImportsAbsRel(unittest.TestCase): def test_imports_abs_rel(self): with ImportsAbsRel.from_file('src/fixed_struct.bin') as r: self.assertEqual(r.one, 80) self.assertEqual(r.two.one, 65) self.assertEqual(r.two.two.one, 67)
28.333333
66
0.694118
46
340
4.978261
0.586957
0.196507
0.209607
0.165939
0
0
0
0
0
0
0
0.022305
0.208824
340
11
67
30.909091
0.828996
0
0
0
0
0
0.058824
0
0
0
0
0
0.375
1
0.125
false
0
0.625
0
0.875
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
193103d5578553900e27759f78703655367ec16b
133
py
Python
project/__init__.py
wanwanjiajia/adversarial_attacks_defense
d22dbfa7de5c6af901dbd2ed26e7eb079bd0c215
[ "BSD-2-Clause" ]
null
null
null
project/__init__.py
wanwanjiajia/adversarial_attacks_defense
d22dbfa7de5c6af901dbd2ed26e7eb079bd0c215
[ "BSD-2-Clause" ]
null
null
null
project/__init__.py
wanwanjiajia/adversarial_attacks_defense
d22dbfa7de5c6af901dbd2ed26e7eb079bd0c215
[ "BSD-2-Clause" ]
null
null
null
# _*_coding:utf-8 _*_ # @Time :2020/01/02 16:49 # @Author : Wanjia Zheng # @File :__init__.py # @Software :PyCharm
13.3
30
0.571429
17
133
4
1
0
0
0
0
0
0
0
0
0
0
0.134021
0.270677
133
9
31
14.777778
0.56701
0.887218
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
1953381eddd06d4b43a40978913e61c012a6b299
109
py
Python
napari_mosquito_bb_annotations/_tests/test_writer.py
czbiohub/napari-mosquito-species-bb-annotations
f05740cb37396bb59c3763a043884b61e1537723
[ "BSD-3-Clause" ]
null
null
null
napari_mosquito_bb_annotations/_tests/test_writer.py
czbiohub/napari-mosquito-species-bb-annotations
f05740cb37396bb59c3763a043884b61e1537723
[ "BSD-3-Clause" ]
9
2021-06-21T23:54:03.000Z
2021-08-03T17:42:39.000Z
napari_mosquito_bb_annotations/_tests/test_writer.py
czbiohub/napari-mosquito-species-bb-annotations
f05740cb37396bb59c3763a043884b61e1537723
[ "BSD-3-Clause" ]
null
null
null
# from napari_mosquito_bb_annotations import napari_get_writer, napari_write_image # add your tests here...
27.25
82
0.834862
16
109
5.25
0.875
0
0
0
0
0
0
0
0
0
0
0
0.110092
109
3
83
36.333333
0.865979
0.944954
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
195b7b8b95bc23f8874897cbe71f72bcbb416f22
176
py
Python
Aulas/Mundo 2/049.py
JoaoEmanuell/Meus-Estudos-Python
f6f6eeb6016919e594613785ffe7136d74241ada
[ "MIT" ]
2
2021-07-29T18:58:02.000Z
2021-10-29T21:11:22.000Z
Aulas/Mundo 2/049.py
JoaoEmanuell/Meus-Estudos-Python
f6f6eeb6016919e594613785ffe7136d74241ada
[ "MIT" ]
null
null
null
Aulas/Mundo 2/049.py
JoaoEmanuell/Meus-Estudos-Python
f6f6eeb6016919e594613785ffe7136d74241ada
[ "MIT" ]
null
null
null
num = int(input('\033[1;31mDigite um numero \033[m')) for c in range(1, 11): print('\033[1;32m{}\033[m x \033[1;33m{}\033[m = \033[1;34m{}\033[m'.format(num, c, num*c))
44
96
0.585227
38
176
2.710526
0.526316
0.15534
0
0
0
0
0
0
0
0
0
0.258278
0.142045
176
3
97
58.666667
0.423841
0
0
0
0
0.333333
0.537572
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
19746c81e9be941de4eec9b20542c2bbd6325de9
1,443
py
Python
stubs.min/System/Windows/Automation/Peers_parts/DocumentViewerAutomationPeer.py
denfromufa/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
1
2017-07-07T11:15:45.000Z
2017-07-07T11:15:45.000Z
stubs.min/System/Windows/Automation/Peers_parts/DocumentViewerAutomationPeer.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
stubs.min/System/Windows/Automation/Peers_parts/DocumentViewerAutomationPeer.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
class DocumentViewerAutomationPeer(DocumentViewerBaseAutomationPeer): """ Exposes System.Windows.Controls.DocumentViewer types to UI Automation. DocumentViewerAutomationPeer(owner: DocumentViewer) """ def GetPattern(self,patternInterface): """ GetPattern(self: DocumentViewerAutomationPeer,patternInterface: PatternInterface) -> object Gets the control pattern for the System.Windows.Controls.DocumentViewer that is associated with this System.Windows.Automation.Peers.DocumentViewerAutomationPeer. patternInterface: One of the enumeration values. Returns: If patternInterface is System.Windows.Automation.Peers.PatternInterface.ScrollItem,this method returns the System.Windows.Automation.Peers.ScrollViewerAutomationPeer for this System.Windows.Automation.Peers.DocumentViewerAutomationPeer. This method also sets System.Windows.Automation.Peers.DocumentViewerAutomationPeer as the System.Windows.Automation.Peers.AutomationPeer.EventsSource. """ pass @staticmethod def __new__(self,owner): """ __new__(cls: type,owner: DocumentViewer) """ pass IsHwndHost=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets a value that indicates whether the element that is associated with this System.Windows.Automation.Peers.AutomationPeer hosts hwnds in Windows Presentation Foundation (WPF). """
41.228571
183
0.765766
143
1,443
7.671329
0.447552
0.106655
0.146764
0.178669
0.308113
0.175023
0.094804
0.094804
0.094804
0
0
0
0.158697
1,443
34
184
42.441176
0.903624
0.628552
0
0.285714
0
0
0
0
0
0
0
0
0
1
0.285714
false
0.285714
0
0
0.571429
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
4
19927bb5d32057b7faadf011fcb0f62dc2588a26
8,344
py
Python
train_util.py
datadrivenempathy/who-wrote-this-training
66ccb65837de24d004b70d39a1e8522a7d1e184f
[ "MIT" ]
1
2019-08-24T04:21:15.000Z
2019-08-24T04:21:15.000Z
train_util.py
datadrivenempathy/who-wrote-this-training
66ccb65837de24d004b70d39a1e8522a7d1e184f
[ "MIT" ]
8
2020-01-28T22:42:36.000Z
2022-02-10T00:21:57.000Z
train_util.py
datadrivenempathy/who-wrote-this-training
66ccb65837de24d004b70d39a1e8522a7d1e184f
[ "MIT" ]
null
null
null
"""Utility to train keras models. ---- Copyright 2019 Data Driven Empathy LLC Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ import keras import sklearn.utils import numpy import wandb import wandb.keras class Trainer: """Interface for strategies to train different keras models.""" def train(self, data_frame, model, epochs=None): """Train a new keras model. Args: data_frame: The data frame from which article data should be read. model: The keras.models.Model to be trained. epochs: The number of epochs over which the model should be trained. """ raise NotImplementedError('Must use implementor.') class OccurrenceTrainer(Trainer): """Strategy to train a feed forward network on word occurrences / co-ocurrences.""" def __init__(self, train_vector_col, source_id_vector_col, source_col, fox_weight, epochs=30, set_assignment_col='set_assignment', use_wandb=True): """Create a new occurrence training strategy. Args: train_vector_col: The name of the column with the input vector. source_id_vector_col: The name of the column with the output. source_col: The column with the name of the news source. fox_weight: The amount of fox resampling from 0 (no resampling) to 1 (every article resampled once). epochs: The number of epochs for which the model should be trained. Defaults to 30. set_assignment_col: The column indicating in which set (train, test, validation) an instance is assigned. Defaults to set_assignment. use_wandb: Flag indicating if results should be reported to W&B. Defaults to True. """ self.__set_assignment_col = set_assignment_col self.__train_vector_col = train_vector_col self.__source_id_vector_col = source_id_vector_col self.__source_col = source_col self.__fox_weight = fox_weight self.__epochs = epochs self.__use_wandb = use_wandb def train(self, data_frame, model): """Train a feed forward model. Args: data_frame: The data frame from which article data should be read. model: The keras.models.Model to be trained. """ training_data = data_frame[data_frame[self.__set_assignment_col] == 'train'] training_data_fox = data_frame[data_frame[self.__source_col] == 'Fox'] x_train_reg = numpy.array(training_data[self.__train_vector_col].tolist()) y_train_reg = numpy.array(training_data[self.__source_id_vector_col].tolist()) x_train_fox = numpy.array(training_data_fox[self.__train_vector_col].tolist()) x_train_fox = x_train_fox[:round(self.__fox_weight * training_data_fox.shape[0])] y_train_fox = numpy.array(training_data_fox[self.__source_id_vector_col].tolist()) y_train_fox = y_train_fox[:round(self.__fox_weight * training_data_fox.shape[0])] if self.__fox_weight > 0: x_train = numpy.concatenate((x_train_reg, x_train_fox)) y_train = numpy.concatenate((y_train_reg, y_train_fox)) else: x_train = x_train_reg y_train = y_train_reg training_data_valid = data_frame[data_frame[self.__set_assignment_col] == 'validation'] x_train_valid = numpy.array(training_data_valid[self.__train_vector_col].tolist()) y_train_valid = numpy.array(training_data_valid[self.__source_id_vector_col].tolist()) callbacks = [] if self.__use_wandb: callbacks.append(wandb.keras.WandbCallback()) model.fit( x_train, y_train, epochs=self.__epochs, validation_data=(x_train_valid, y_train_valid), callbacks=callbacks ) class SequenceTrainer(Trainer): """Strategy to train an LSTM network.""" def __init__(self, train_vector_col, source_id_vector_col, source_col, max_seq_len, fox_weight, epochs=30, set_assignment_col='set_assignment', use_wandb=True): """Create a new LSTM training strategy. Args: train_vector_col: The name of the column with the input vector. source_id_vector_col: The name of the column with the output. source_col: The column with the name of the news source. fox_weight: The amount of fox resampling from 0 (no resampling) to 1 (every article resampled once). epochs: The number of epochs for which the model should be trained. Defaults to 30. set_assignment_col: The column indicating in which set (train, test, validation) an instance is assigned. Defaults to set_assignment. use_wandb: Flag indicating if results should be reported to W&B. Defaults to True. """ self.__set_assignment_col = set_assignment_col self.__train_vector_col = train_vector_col self.__source_id_vector_col = source_id_vector_col self.__source_col = source_col self.__max_seq_len = max_seq_len self.__fox_weight = fox_weight self.__set_assignment_col = set_assignment_col self.__epochs = epochs self.__use_wandb = use_wandb def train(self, data_frame, model): """Train a sequence model. Args: data_frame: The data frame from which article data should be read. model: The keras.models.Model to be trained. """ training_data = data_frame[data_frame[self.__set_assignment_col] == 'train'] training_data_fox = data_frame[data_frame[self.__source_col] == 'Fox'] x_train_reg = numpy.array(training_data[self.__train_vector_col].tolist()) y_train_reg = numpy.array(training_data[self.__source_id_vector_col].tolist()) x_train_fox = numpy.array(training_data_fox[self.__train_vector_col].tolist()) x_train_fox = x_train_fox[:round(self.__fox_weight * training_data_fox.shape[0])] y_train_fox = numpy.array(training_data_fox[self.__source_id_vector_col].tolist()) y_train_fox = y_train_fox[:round(self.__fox_weight * training_data_fox.shape[0])] if self.__fox_weight > 0: x_train = numpy.concatenate((x_train_reg, x_train_fox)) y_train = numpy.concatenate((y_train_reg, y_train_fox)) else: x_train = x_train_reg y_train = y_train_reg x_train_pad = keras.preprocessing.sequence.pad_sequences( x_train, maxlen=self.__max_seq_len ) training_data_valid = data_frame[data_frame[self.__set_assignment_col] == 'validation'] x_train_valid = numpy.array(training_data_valid[self.__train_vector_col].tolist()) y_train_valid = numpy.array(training_data_valid[self.__source_id_vector_col].tolist()) x_train_pad_valid = keras.preprocessing.sequence.pad_sequences( x_train_valid, maxlen=self.__max_seq_len ) callbacks = [] if self.__use_wandb: callbacks.append(wandb.keras.WandbCallback()) model.fit( x_train_pad, y_train, epochs=self.__epochs, validation_data=(x_train_pad_valid, y_train_valid), callbacks=callbacks )
43.010309
100
0.687081
1,149
8,344
4.641427
0.174935
0.047253
0.036752
0.044628
0.753047
0.741609
0.711232
0.694731
0.686855
0.671104
0
0.00347
0.240173
8,344
193
101
43.233161
0.837697
0.377996
0
0.734043
0
0
0.017497
0
0
0
0
0
0
1
0.053191
false
0
0.053191
0
0.138298
0
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
5fe89c7ef013b0dc020e852f6b4310d175d948e6
127
py
Python
python/pyTIR/__init__.py
folivetti/tir
5db7c8fa62975f7ce901fce68a560156b2dc6745
[ "BSD-3-Clause" ]
null
null
null
python/pyTIR/__init__.py
folivetti/tir
5db7c8fa62975f7ce901fce68a560156b2dc6745
[ "BSD-3-Clause" ]
null
null
null
python/pyTIR/__init__.py
folivetti/tir
5db7c8fa62975f7ce901fce68a560156b2dc6745
[ "BSD-3-Clause" ]
null
null
null
from .TIRRegressor import TIRRegressor from .TIRClassifier import TIRClassifier __all__ = ['TIRRegressor', 'TIRClassifier']
25.4
43
0.80315
11
127
8.909091
0.454545
0
0
0
0
0
0
0
0
0
0
0
0.11811
127
4
44
31.75
0.875
0
0
0
0
0
0.19685
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
2716f2dcae45f7c10fb20e1b2e3209a67174ab2b
222
py
Python
API_testes/tests/test_put.py
tavares-douglas/S206_testes
49bce4e12d58296250a5af68efe87d9a25e86bad
[ "MIT" ]
null
null
null
API_testes/tests/test_put.py
tavares-douglas/S206_testes
49bce4e12d58296250a5af68efe87d9a25e86bad
[ "MIT" ]
null
null
null
API_testes/tests/test_put.py
tavares-douglas/S206_testes
49bce4e12d58296250a5af68efe87d9a25e86bad
[ "MIT" ]
null
null
null
from scripts.putting_data import put_data as pd def test_put_new_data(): raw_response, _, data = pd.put_data() if raw_response.status_code == 200: assert raw_response == data else: assert False
27.75
47
0.689189
33
222
4.30303
0.606061
0.232394
0.211268
0
0
0
0
0
0
0
0
0.017647
0.234234
222
8
48
27.75
0.817647
0
0
0
0
0
0
0
0
0
0
0
0.285714
1
0.142857
true
0
0.142857
0
0.285714
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
271728b84a7d61e6a579c03d79441a4e8bab9831
607
py
Python
extra_tests/snippets/builtin_ord.py
mainsail-org/RustPython
5d2d87c24f1ff7201fcc8d4fcffadb0ec12dc127
[ "CC-BY-4.0", "MIT" ]
11,058
2018-05-29T07:40:06.000Z
2022-03-31T11:38:42.000Z
extra_tests/snippets/builtin_ord.py
mainsail-org/RustPython
5d2d87c24f1ff7201fcc8d4fcffadb0ec12dc127
[ "CC-BY-4.0", "MIT" ]
2,105
2018-06-01T10:07:16.000Z
2022-03-31T14:56:42.000Z
extra_tests/snippets/builtin_ord.py
mainsail-org/RustPython
5d2d87c24f1ff7201fcc8d4fcffadb0ec12dc127
[ "CC-BY-4.0", "MIT" ]
914
2018-07-27T09:36:14.000Z
2022-03-31T19:56:34.000Z
from testutils import assert_raises assert ord("a") == 97 assert ord("é") == 233 assert ord("🤡") == 129313 assert ord(b'a') == 97 assert ord(bytearray(b'a')) == 97 assert_raises(TypeError, ord, _msg='ord() is called with no argument') assert_raises(TypeError, ord, "", _msg='ord() is called with an empty string') assert_raises(TypeError, ord, "ab", _msg='ord() is called with more than one character') assert_raises(TypeError, ord, b"ab", _msg='ord() expected a character, but string of length 2 found') assert_raises(TypeError, ord, 1, _msg='ord() expected a string, bytes or bytearray, but found int')
43.357143
101
0.716639
98
607
4.336735
0.397959
0.169412
0.247059
0.282353
0.24
0.197647
0.197647
0.197647
0.197647
0
0
0.032319
0.133443
607
13
102
46.692308
0.773764
0
0
0
0
0
0.38715
0
0
0
0
0
1
1
0
true
0
0.090909
0
0.090909
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
1
0
0
0
0
0
0
4
2733d29e5ef28c5ab03fc6a5c4e8aea259f37a32
338
py
Python
task_1/solution.py
kristyanYochev/python-course
52d136179de210bd7edefe3085e50550e3862f62
[ "MIT" ]
2
2019-12-30T13:26:55.000Z
2020-01-18T14:03:25.000Z
task_1/solution.py
kristyanYochev/python-course
52d136179de210bd7edefe3085e50550e3862f62
[ "MIT" ]
3
2019-11-05T16:47:54.000Z
2020-10-31T18:50:31.000Z
task_1/solution.py
kristyanYochev/python-course
52d136179de210bd7edefe3085e50550e3862f62
[ "MIT" ]
24
2019-10-10T19:17:40.000Z
2020-10-25T10:42:00.000Z
def accumulate_left(func, acc, collection): if len(collection) == 0: return acc return accumulate_left(func, func(acc, collection[0]), collection[1:]) def accumulate_right(func, acc, collection): if len(collection) == 0: return acc return func(collection[0], accumulate_right(func, acc, collection[1:]))
30.727273
75
0.680473
44
338
5.136364
0.272727
0.123894
0.300885
0.168142
0.632743
0.424779
0.424779
0.424779
0.424779
0.424779
0
0.021898
0.189349
338
10
76
33.8
0.80292
0
0
0.5
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0
0
0.75
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
274e7f667721bb683da64ec7e512d20dd2fb81b1
158
py
Python
examples/hello2.py
VictorVaquero/geneticPendulum
60e20ec8148d4949ae3b3e1597433763498cd2e5
[ "MIT" ]
null
null
null
examples/hello2.py
VictorVaquero/geneticPendulum
60e20ec8148d4949ae3b3e1597433763498cd2e5
[ "MIT" ]
null
null
null
examples/hello2.py
VictorVaquero/geneticPendulum
60e20ec8148d4949ae3b3e1597433763498cd2e5
[ "MIT" ]
null
null
null
'''A very simple program, showing how short a Python program can be! Authors: ___, ___ ''' print('Hello world!') #This is a stupid comment after the # mark
22.571429
65
0.708861
24
158
4.416667
0.875
0
0
0
0
0
0
0
0
0
0
0
0.183544
158
6
66
26.333333
0.821705
0.78481
0
0
0
0
0.461538
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
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
4
274e9eee4f8d9bbb7747e5600d0f55a629d614df
239
py
Python
schema.py
zxt50330/blogdemo
21e05e108d1703b0d7d312a04afd26afd6834ded
[ "MIT" ]
null
null
null
schema.py
zxt50330/blogdemo
21e05e108d1703b0d7d312a04afd26afd6834ded
[ "MIT" ]
null
null
null
schema.py
zxt50330/blogdemo
21e05e108d1703b0d7d312a04afd26afd6834ded
[ "MIT" ]
null
null
null
from base import ma from models import Post, Comment from marshmallow import post_load class PostSchema(ma.ModelSchema): class Meta: model = Post class CommentSchema(ma.ModelSchema): class Meta: model = Comment
17.071429
36
0.715481
30
239
5.666667
0.5
0.117647
0.211765
0.258824
0.317647
0
0
0
0
0
0
0
0.230126
239
13
37
18.384615
0.923913
0
0
0.222222
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.777778
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
276b8b638934e6d273479fe6fe7c2e2a34c2b60c
106
py
Python
test/test_dtmf.py
d0wler/DTMF
beb5be415ac7ea89f28fbe328c9c17fd7cb95163
[ "MIT" ]
null
null
null
test/test_dtmf.py
d0wler/DTMF
beb5be415ac7ea89f28fbe328c9c17fd7cb95163
[ "MIT" ]
3
2021-06-08T22:45:26.000Z
2022-01-13T03:27:38.000Z
test/test_dtmf.py
d0wler/DTMF
beb5be415ac7ea89f28fbe328c9c17fd7cb95163
[ "MIT" ]
null
null
null
import pytest import src.dtmf as dtmf def test_main(): sig = dtmf.Signal() assert sig.sr== 8000
13.25
24
0.669811
17
106
4.117647
0.764706
0
0
0
0
0
0
0
0
0
0
0.04878
0.226415
106
7
25
15.142857
0.804878
0
0
0
0
0
0
0
0
0
0
0
0.2
1
0.2
false
0
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
0
0
1
0
1
0
0
4
276d41c8d4a2bc435b7dd338a397377918048da3
3,666
py
Python
resource_rc.py
jkkim74/kw_condition
97b2d8bdb7680858e40a12cf7f12d46e538bf649
[ "MIT" ]
null
null
null
resource_rc.py
jkkim74/kw_condition
97b2d8bdb7680858e40a12cf7f12d46e538bf649
[ "MIT" ]
null
null
null
resource_rc.py
jkkim74/kw_condition
97b2d8bdb7680858e40a12cf7f12d46e538bf649
[ "MIT" ]
1
2021-03-05T05:59:19.000Z
2021-03-05T05:59:19.000Z
# -*- coding: utf-8 -*- # Resource object code # # Created by: The Resource Compiler for PyQt5 (Qt v5.6.2) # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore qt_resource_data = b"\ \x00\x00\x02\xa4\ \x00\ \x00\x0b\x49\x78\x9c\xc5\x56\xcd\x6e\xd3\x40\x10\xbe\xe7\x29\x56\ \xb9\x24\xb9\x98\xa4\x2a\x15\xf2\x0d\xa2\x0a\x81\xc4\xa1\x3f\x52\ \x8f\xd5\xc6\xde\x38\x4b\x36\x3b\x66\x3d\xa6\x0d\x88\x0b\x27\x50\ \x4f\x48\x14\x10\x42\x15\x07\x0e\x1c\x40\x42\x21\x4f\x45\xdd\x77\ \x60\xd7\x71\x12\x3b\xde\x44\x8d\x1a\xe8\x4a\x89\x3c\x7f\x3b\xe3\ \xef\x5b\xcf\x0e\x1f\x84\xa0\x90\xec\xe1\x5e\xcc\xbd\x3e\xd9\x72\ \x76\x2a\xbc\xa0\x72\xda\x20\x51\x81\x88\x48\xcb\xd9\xae\x54\xee\ \x87\xa1\xe0\x1e\x45\x0e\xf2\x88\x4b\x1f\x4e\xc8\xcb\x0a\xd1\x8b\ \xfb\x2e\x19\x50\x2e\x53\xe1\x39\x8f\x78\x47\x30\x97\xa0\x8a\x59\ \xaa\x41\x8e\x46\xae\xd2\x18\x61\x40\x91\xf9\x24\xc2\x6a\x6a\x39\ \xe1\x3e\xf6\x5c\xb2\xdd\x6c\xa6\x62\x8f\xf1\xa0\x87\x2e\x69\xdd\ \x9b\xc8\x11\x0f\x24\x15\xda\x9b\x2a\x6c\xeb\xcc\x7d\xe6\xd7\x1b\ \x79\x8b\x62\xab\x6c\xcf\x62\x6d\x7e\x4c\x65\x00\x56\x07\xaf\xc7\ \x82\x21\x03\x61\x35\xa2\x0e\x9d\x1a\x22\x54\x5c\x06\x84\xaa\xa0\ \x51\x49\x7d\xda\x20\xe2\x81\xcc\x5e\xde\x2c\x2a\xbd\x1e\xa8\xc8\ \xe9\x72\x21\x5c\x12\x52\xc5\x24\xce\x8c\x51\x48\x3d\x1d\xef\x92\ \xad\x99\xea\xa1\xe2\xfe\x3c\x7a\x0a\x61\xa0\xb5\x05\x65\x06\xcf\ \x64\x3f\x27\x95\x0a\x76\x2f\xad\x23\xca\xef\xbc\x24\xa1\x59\x0f\ \x62\x44\x90\xc5\xb4\xd3\xd4\x1d\x94\x07\x06\xc9\x92\xd1\x52\xc2\ \x1d\x53\xa7\x93\xe5\x2e\x05\x20\x3b\xd5\x0c\x56\x93\xb3\x2f\xc9\ \xc5\xbb\x6a\xc9\xbc\xcf\x3c\xd4\x8c\x08\x56\xae\xc3\xac\x95\x40\ \x2e\xbc\x3a\x28\x9d\xa7\x23\x62\x56\xce\x62\x16\x18\x14\x70\xe8\ \x92\xa6\x73\xb7\xe4\xf0\xaa\xa4\x01\x99\xd1\xed\x12\x7b\x69\x1e\ \xc8\x08\x04\x73\x04\x04\xf5\x5a\xfe\xd8\xd5\x1a\x56\x7f\xf3\x41\ \x38\x96\xe3\x59\x2c\xa3\x52\x14\xf3\xd2\x84\x2f\x4b\x35\x33\xc2\ \x20\xdc\x1c\x5f\x17\x3f\xfe\x17\x65\x8a\xf9\xb7\xc2\x18\x84\xd7\ \x20\xcc\xda\x51\x8a\x75\xdc\x84\xb3\xfd\x5c\x53\xda\x1c\x77\x5f\ \xcf\x2f\x7f\x8f\x93\xcf\xef\x93\xd1\xcf\x7f\x4f\xdf\x90\x09\x01\ \x27\xb7\xc0\xa0\xa5\xa1\xaf\x66\x72\x59\xff\x5f\x5e\xd4\x7a\x64\ \xb6\xb3\x0b\x64\x73\x44\x8e\xc6\x7f\x46\xbf\x2e\x5f\x8f\x93\x8f\ \x16\x22\xd7\x43\x6b\xe1\x76\x5b\x85\x94\xfd\x22\xdc\x14\x4a\xbb\ \xa7\xcc\x8b\x91\x6d\x0c\xa4\xab\xf3\xef\xc9\x9b\x4f\x24\x39\xfb\ \x76\xf5\xe1\xed\x0d\x51\xc2\x53\x3c\xd4\x67\xc4\x31\x5b\xaf\x00\ \x28\x3f\x0c\xac\x0e\x59\x06\xd4\xfc\xe9\x50\xc7\xed\xfa\x1c\xcb\ \xd7\x7f\xb6\xf3\x5a\x13\xc0\x6c\x62\xca\x26\xa8\xe9\xea\x82\x17\ \x47\xb9\x11\x6c\xb6\x9f\xa2\xe1\x13\xf0\xf5\x34\x36\xad\xc3\x39\ \xd2\xaa\x85\x58\x9d\x2a\x04\x2e\xf1\x80\xbf\xd0\x9e\xad\x9d\x82\ \x79\xd6\x4f\x2c\xf8\x5e\xab\x99\x4c\x1b\x89\x30\xa5\xeb\xa1\x87\ \x0e\x2d\x2c\x2e\x6b\x24\x8b\x90\x4e\xfe\x0d\xe9\x10\xa5\x33\xcf\ \xbc\xa8\xc2\xe7\x30\xa0\x7d\x46\x9e\x9a\x5e\x40\xb8\xec\x02\xe9\ \xb0\x2e\x28\x46\xbc\x49\x58\xee\xeb\x28\x11\x5e\x33\xc2\xb1\x89\ \x3f\x4e\xe3\x1f\xe9\xf0\x7a\x23\x8b\x30\xb7\x81\xfe\xfd\x05\x0f\ \xde\xda\x80\ " qt_resource_name = b"\ \x00\x03\ \x00\x00\x78\x3c\ \x00\x71\ \x00\x6d\x00\x6c\ \x00\x08\ \x08\x01\x5a\x5c\ \x00\x6d\ \x00\x61\x00\x69\x00\x6e\x00\x2e\x00\x71\x00\x6d\x00\x6c\ " qt_resource_struct = b"\ \x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x01\ \x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x02\ \x00\x00\x00\x0c\x00\x01\x00\x00\x00\x01\x00\x00\x00\x00\ " def qInitResources(): QtCore.qRegisterResourceData(0x01, qt_resource_struct, qt_resource_name, qt_resource_data) def qCleanupResources(): QtCore.qUnregisterResourceData(0x01, qt_resource_struct, qt_resource_name, qt_resource_data) qInitResources()
44.168675
96
0.727769
828
3,666
3.200483
0.330918
0.058868
0.047547
0.022642
0.096226
0.096226
0.082642
0.078113
0.078113
0.078113
0
0.279366
0.036279
3,666
82
97
44.707317
0.470705
0.041189
0
0
0
0.676471
0
0
0
1
0.002281
0
0
1
0.029412
false
0
0.014706
0
0.044118
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
4
276e7ffc5446de6071d22f966e785db79fa2364e
213
py
Python
my_environments/djangoPy3Env/bin/django-admin.py
webmaaster/python_stack
703f1cf762d75d5fb86725a44e43866f3649e19a
[ "MIT" ]
null
null
null
my_environments/djangoPy3Env/bin/django-admin.py
webmaaster/python_stack
703f1cf762d75d5fb86725a44e43866f3649e19a
[ "MIT" ]
null
null
null
my_environments/djangoPy3Env/bin/django-admin.py
webmaaster/python_stack
703f1cf762d75d5fb86725a44e43866f3649e19a
[ "MIT" ]
null
null
null
#!/Users/softwareengineer/Desktop/python_assignments/python_stack/my_environments/djangoPy3Env/bin/python3 from django.core import management if __name__ == "__main__": management.execute_from_command_line()
35.5
106
0.835681
25
213
6.56
0.88
0
0
0
0
0
0
0
0
0
0
0.010101
0.070423
213
5
107
42.6
0.818182
0.492958
0
0
0
0
0.074766
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
278c06c849dfe3b9e7b6258f87f78e5d28de1610
884
py
Python
setup.py
ChangLabUcsf/electrode_grid
a12d49c919adc5490e122283794f040ea3cf928a
[ "MIT" ]
1
2021-02-01T03:05:37.000Z
2021-02-01T03:05:37.000Z
setup.py
ChangLabUcsf/electrode_grid
a12d49c919adc5490e122283794f040ea3cf928a
[ "MIT" ]
null
null
null
setup.py
ChangLabUcsf/electrode_grid
a12d49c919adc5490e122283794f040ea3cf928a
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name='electrodeGrid', version='0.0.1', description='Analyses for neural control of larynx', author='Ben Dichter', author_email='ben.dichter@gmail.com', classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Science/Research', 'Topic :: Scientific/Engineering', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.2', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', ], packages=find_packages(), install_requires=['matplotlib', 'numpy', 'tqdm', 'brewer2mpl', 'seaborn'], )
35.36
78
0.608597
89
884
6
0.606742
0.249064
0.327715
0.194757
0.101124
0
0
0
0
0
0
0.025335
0.24095
884
24
79
36.833333
0.770492
0
0
0
0
0
0.582579
0.048643
0
0
0
0
0
1
0
true
0
0.043478
0
0.043478
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
2793d718a79932c67fab6609c22199ac18ce44de
160
py
Python
opendata/transformers/opendata/operations.py
entrepreneur-interet-general/predisauvetage
4d985ee79355652709da322db48daffb3e5a895a
[ "MIT" ]
6
2018-02-16T15:07:17.000Z
2020-10-09T09:34:29.000Z
opendata/transformers/opendata/operations.py
entrepreneur-interet-general/predisauvetage
4d985ee79355652709da322db48daffb3e5a895a
[ "MIT" ]
107
2018-03-29T14:55:33.000Z
2021-12-13T19:44:50.000Z
opendata/transformers/opendata/operations.py
entrepreneur-interet-general/predisauvetage
4d985ee79355652709da322db48daffb3e5a895a
[ "MIT" ]
1
2021-03-03T21:02:33.000Z
2021-03-03T21:02:33.000Z
# -*- coding: utf-8 -*- from transformers.opendata.default import DefaultTransformer class OperationsTransformer(DefaultTransformer): MODEL = "Operation"
22.857143
60
0.76875
14
160
8.785714
0.928571
0
0
0
0
0
0
0
0
0
0
0.007143
0.125
160
6
61
26.666667
0.871429
0.13125
0
0
0
0
0.065693
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
27a6271fd810effc8d82c844c6118357de0fd353
188
py
Python
hana/errors.py
mayo/hana
e0cbea362f278f8b229d1b709118d1f4e0357130
[ "MIT" ]
2
2018-01-08T23:43:02.000Z
2018-05-06T00:54:31.000Z
hana/errors.py
mayo/hana
e0cbea362f278f8b229d1b709118d1f4e0357130
[ "MIT" ]
7
2018-05-14T18:58:55.000Z
2019-01-20T06:04:12.000Z
hana/errors.py
mayo/hana
e0cbea362f278f8b229d1b709118d1f4e0357130
[ "MIT" ]
null
null
null
class HanaError(Exception): pass class HanaPluginError(HanaError): pass class InvalidPluginsDirectory(HanaError): pass class PluginNotFoundError(HanaPluginError): pass
14.461538
43
0.765957
16
188
9
0.4375
0.1875
0.25
0
0
0
0
0
0
0
0
0
0.170213
188
12
44
15.666667
0.923077
0
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
4
27bddb2ca1cf36dc542e810c0dbdbda7ca5594c3
10
py
Python
notes/algo-ds-practice/problems/heap/merge_k_sorted.py
Anmol-Singh-Jaggi/interview-notes
65af75e2b5725894fa5e13bb5cd9ecf152a0d652
[ "MIT" ]
6
2020-07-05T05:15:19.000Z
2021-01-24T20:17:14.000Z
notes/algo-ds-practice/problems/heap/merge_k_sorted.py
Anmol-Singh-Jaggi/interview-notes
65af75e2b5725894fa5e13bb5cd9ecf152a0d652
[ "MIT" ]
null
null
null
notes/algo-ds-practice/problems/heap/merge_k_sorted.py
Anmol-Singh-Jaggi/interview-notes
65af75e2b5725894fa5e13bb5cd9ecf152a0d652
[ "MIT" ]
2
2020-09-14T06:46:37.000Z
2021-06-15T09:17:21.000Z
# Simple!
5
9
0.6
1
10
6
1
0
0
0
0
0
0
0
0
0
0
0
0.2
10
1
10
10
0.75
0.7
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
27e8d636b5b5489f12c3901756ba76b99a38fc60
161
py
Python
mayan/apps/lock_manager/runtime.py
sophiawa/Mayan-EDMS
42f20576d0c690b645a60bf53c5169cda4264231
[ "Apache-2.0" ]
1
2021-06-17T18:24:25.000Z
2021-06-17T18:24:25.000Z
mayan/apps/lock_manager/runtime.py
sophiawa/Mayan-EDMS
42f20576d0c690b645a60bf53c5169cda4264231
[ "Apache-2.0" ]
10
2021-03-20T00:01:17.000Z
2022-03-12T00:48:43.000Z
mayan/apps/lock_manager/runtime.py
sophiawa/Mayan-EDMS
42f20576d0c690b645a60bf53c5169cda4264231
[ "Apache-2.0" ]
1
2020-12-17T02:35:09.000Z
2020-12-17T02:35:09.000Z
from django.utils.module_loading import import_string from .settings import setting_backend locking_backend = import_string(dotted_path=setting_backend.value)
26.833333
66
0.869565
22
161
6.045455
0.636364
0.180451
0
0
0
0
0
0
0
0
0
0
0.080745
161
5
67
32.2
0.898649
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
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
0
0
1
0
1
0
0
4
27ec434cde5b668ad7345d5a379c1776abfcbd48
221
py
Python
py_pdf_term/endtoend/_endtoend/caches/styling/__init__.py
kumachan-mis/pdf-slides-term
cf3319e4de723bd9424d23141803342d3c649103
[ "MIT" ]
1
2021-01-08T16:05:30.000Z
2021-01-08T16:05:30.000Z
py_pdf_term/endtoend/_endtoend/caches/styling/__init__.py
kumachan-mis/py-slides-term
1e9337b97ae8968950489e728fc7aeeeb7eb1f4b
[ "MIT" ]
21
2021-01-03T13:50:59.000Z
2021-06-17T00:27:49.000Z
py_pdf_term/endtoend/_endtoend/caches/styling/__init__.py
kumachan-mis/pdf-slides-term
cf3319e4de723bd9424d23141803342d3c649103
[ "MIT" ]
null
null
null
from .base import BaseStylingLayerCache from .nocache import StylingLayerNoCache from .file import StylingLayerFileCache __all__ = [ "BaseStylingLayerCache", "StylingLayerNoCache", "StylingLayerFileCache", ]
22.1
40
0.78733
16
221
10.625
0.5625
0
0
0
0
0
0
0
0
0
0
0
0.144796
221
9
41
24.555556
0.899471
0
0
0
0
0
0.276018
0.190045
0
0
0
0
0
1
0
false
0
0.375
0
0.375
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
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
27fd9c5e62bb985f8f907235175944fc0953fb49
182
py
Python
InformationBoard/forms.py
insung151/Pwannar
9f0be39e763dfc709a4b43a2498a95a19bfa435f
[ "MIT" ]
null
null
null
InformationBoard/forms.py
insung151/Pwannar
9f0be39e763dfc709a4b43a2498a95a19bfa435f
[ "MIT" ]
4
2018-02-14T11:58:51.000Z
2018-02-14T14:03:16.000Z
InformationBoard/forms.py
insung151/Pwannar
9f0be39e763dfc709a4b43a2498a95a19bfa435f
[ "MIT" ]
null
null
null
from django import forms from .models import Info_Article class ArticleForm(forms.ModelForm): class Meta: model = Info_Article exclude = ('like_set', 'author')
20.222222
40
0.692308
22
182
5.590909
0.727273
0.178862
0
0
0
0
0
0
0
0
0
0
0.225275
182
8
41
22.75
0.87234
0
0
0
0
0
0.076923
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
fd9d25aa5a57152b84138bcf5cc5f2de354deb60
96
py
Python
web_request/apps.py
YevgeniiKaidashov/book-store
dda5e8b1560699a6d20249d1ef92f65a60f1eadd
[ "MIT" ]
1
2019-04-28T08:30:43.000Z
2019-04-28T08:30:43.000Z
web_request/apps.py
YevgeniiKaidashov/book-store
dda5e8b1560699a6d20249d1ef92f65a60f1eadd
[ "MIT" ]
null
null
null
web_request/apps.py
YevgeniiKaidashov/book-store
dda5e8b1560699a6d20249d1ef92f65a60f1eadd
[ "MIT" ]
null
null
null
from django.apps import AppConfig class WebRequestConfig(AppConfig): name = 'web_request'
16
34
0.770833
11
96
6.636364
0.909091
0
0
0
0
0
0
0
0
0
0
0
0.15625
96
5
35
19.2
0.901235
0
0
0
0
0
0.114583
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
fdb8d4ad9e024d22642989ac31914b61be886261
168
py
Python
recipes/Python/52265_Read_data_from_zip_files/recipe-52265.py
tdiprima/code
61a74f5f93da087d27c70b2efe779ac6bd2a3b4f
[ "MIT" ]
2,023
2017-07-29T09:34:46.000Z
2022-03-24T08:00:45.000Z
recipes/Python/52265_Read_data_from_zip_files/recipe-52265.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
32
2017-09-02T17:20:08.000Z
2022-02-11T17:49:37.000Z
recipes/Python/52265_Read_data_from_zip_files/recipe-52265.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
780
2017-07-28T19:23:28.000Z
2022-03-25T20:39:41.000Z
import zipfile z = zipfile.ZipFile("zipfile.zip", "rb") for filename in z.namelist(): print filename bytes = z.read(filename) print len(bytes)
21
40
0.630952
22
168
4.818182
0.590909
0.264151
0
0
0
0
0
0
0
0
0
0
0.25
168
7
41
24
0.84127
0
0
0
0
0
0.077381
0
0
0
0
0
0
0
null
null
0
0.166667
null
null
0.333333
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
4
fdbcb5215ee58aaee2629dac3e6cf68c2bbcf7d0
148
py
Python
ex006.py
arthurfas123/Curso-De-Python
c4a15d92811bd101a8562d2c3a90fe2d5a3c360d
[ "MIT" ]
null
null
null
ex006.py
arthurfas123/Curso-De-Python
c4a15d92811bd101a8562d2c3a90fe2d5a3c360d
[ "MIT" ]
null
null
null
ex006.py
arthurfas123/Curso-De-Python
c4a15d92811bd101a8562d2c3a90fe2d5a3c360d
[ "MIT" ]
null
null
null
print('DOBRO TRIPLO RAIZ') n = int(input('Digite um numero: ')) print(f'DOBRO: {n * 2}') print(f'TRIPLO: {n * 3}') print(f'RAIZ: {n ** (1/2):.2f}')
24.666667
36
0.574324
27
148
3.148148
0.555556
0.211765
0
0
0
0
0
0
0
0
0
0.03937
0.141892
148
5
37
29.6
0.629921
0
0
0
0
0
0.581081
0
0
0
0
0
0
1
0
false
0
0
0
0
0.8
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
4
fdccf14111d442a99f9d40e01fa453965647b90a
143
py
Python
05_syntax_lab/02.py
ynonp/python-examples-verint-2016-07
fe225d32053b80cffb3ba2c3019c8532e427fc0c
[ "MIT" ]
2
2016-07-06T08:47:01.000Z
2019-12-15T05:09:24.000Z
05_syntax_lab/02.py
ynonp/python-examples-verint-2016-07
fe225d32053b80cffb3ba2c3019c8532e427fc0c
[ "MIT" ]
42
2016-07-04T06:38:28.000Z
2016-07-31T04:47:38.000Z
05_syntax_lab/02.py
ynonp/python-examples-verint-2016-07
fe225d32053b80cffb3ba2c3019c8532e427fc0c
[ "MIT" ]
37
2016-06-29T08:26:28.000Z
2021-01-21T11:44:56.000Z
""" Write a Python program that randomizes 7 numbers and prints their sum total. If the sum is divisable by 7, also print the word "Boom" """
20.428571
56
0.734266
25
143
4.2
0.88
0
0
0
0
0
0
0
0
0
0
0.017391
0.195804
143
6
57
23.833333
0.895652
0.93007
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
fdcdb205f4d239f4b4c47aa7a6d5cf1e3df6a196
127
py
Python
splunk_base/stackstate_checks/splunk/saved_search_helper/__init__.py
Mathieu-Dirkx/stackstate-agent-integrations
76bb486f2560e1cdcd5aabb65ef8a19ff36297c1
[ "BSD-3-Clause" ]
2
2020-03-10T13:21:37.000Z
2021-04-01T07:52:16.000Z
splunk_base/stackstate_checks/splunk/saved_search_helper/__init__.py
Mathieu-Dirkx/stackstate-agent-integrations
76bb486f2560e1cdcd5aabb65ef8a19ff36297c1
[ "BSD-3-Clause" ]
33
2020-02-05T16:18:32.000Z
2022-03-21T14:08:04.000Z
splunk_base/stackstate_checks/splunk/saved_search_helper/__init__.py
Mathieu-Dirkx/stackstate-agent-integrations
76bb486f2560e1cdcd5aabb65ef8a19ff36297c1
[ "BSD-3-Clause" ]
7
2020-03-10T13:21:39.000Z
2021-03-11T07:16:44.000Z
from stackstate_checks.splunk.saved_search_helper.saved_search_helper import SavedSearches __all__ = [ 'SavedSearches', ]
21.166667
90
0.818898
14
127
6.785714
0.714286
0.231579
0.357895
0
0
0
0
0
0
0
0
0
0.110236
127
5
91
25.4
0.840708
0
0
0
0
0
0.102362
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
fdd18c6be1bbc7be10391b8c36f7dc709dad7d7c
20,319
py
Python
corepy/arch/ppc/isa/ppc_isa.py
matthiaskramm/corepy
b2aad4e86adca10420e825fb65dcbd031cf44bb1
[ "BSD-3-Clause" ]
8
2016-02-20T03:52:58.000Z
2022-01-24T15:04:14.000Z
corepy/arch/ppc/isa/ppc_isa.py
matthiaskramm/corepy
b2aad4e86adca10420e825fb65dcbd031cf44bb1
[ "BSD-3-Clause" ]
null
null
null
corepy/arch/ppc/isa/ppc_isa.py
matthiaskramm/corepy
b2aad4e86adca10420e825fb65dcbd031cf44bb1
[ "BSD-3-Clause" ]
6
2015-12-11T05:21:15.000Z
2020-12-11T10:59:15.000Z
# Copyright (c) 2006-2009 The Trustees of Indiana University. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # - Redistributions of source code must retain the above copyright notice, this # list of conditions and the following disclaimer. # # - Redistributions in binary form must reproduce the above copyright notice, # this list of conditions and the following disclaimer in the documentation # and/or other materials provided with the distribution. # # - Neither the Indiana University nor the names of its contributors may be used # to endorse or promote products derived from this software without specific # prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. from corepy.spre.spe import Instruction, DispatchInstruction from ppc_insts import * __doc__=""" PowerPC User Model Instruction Set Architectre (ISA) and User Model Virtual Environment Architecture (VEA). To use, import this module and call the Instructions as Python functions to generate a properly coded version. For example, to create an addx instruction: import ppc_isa as ppc inst = ppc.addx(3, 4, 5) # add r4 to r5 and place the result in r3 Operands are in the same order as presented in the Programming Environments manual. For a complete reference and details for all instructions, please referer to: 'PowerPC Microprocessor Family: The Programming Environments for 32-Bit Microprocessors' from IBM. URL (valid as of June 1, 2006): http://www-306.ibm.com/chips/techlib/techlib.nsf/techdocs/852569B20050FF778525699600719DF2 """ class addx(Instruction): machine_inst = OPCD_D_A_B_OE_XO_2_Rc params = {'OPCD':31, 'XO':266} class addcx(Instruction): machine_inst = OPCD_D_A_B_OE_XO_2_Rc params = {'OPCD':31, 'XO':10} class addex(Instruction): machine_inst = OPCD_D_A_B_OE_XO_2_Rc params = {'OPCD':31, 'XO':138} class addi(Instruction): machine_inst = OPCD_D_A_SIMM params = {'OPCD':14} class addic(Instruction): machine_inst = OPCD_D_A_SIMM params = {'OPCD':12} class addic_(Instruction): machine_inst = OPCD_D_A_SIMM params = {'OPCD':13} class addis(Instruction): machine_inst = OPCD_D_A_SIMM params = {'OPCD':15} class addmex(Instruction): machine_inst = OPCD_D_A_OE_XO_2_Rc params = {'OPCD':31, 'XO':234} class addzex(Instruction): machine_inst = OPCD_D_A_OE_XO_2_Rc params = {'OPCD':31, 'XO':202} class andx(Instruction): machine_inst = OPCD_S_A_B_XO_1_Rc params = {'OPCD':31, 'XO':28} class andcx(Instruction): machine_inst = OPCD_S_A_B_XO_1_Rc params = {'OPCD':31, 'XO':60} class andi(Instruction): machine_inst = OPCD_S_A_UIMM params = {'OPCD':28} class andis(Instruction): machine_inst = OPCD_S_A_UIMM params = {'OPCD':29} class bx(DispatchInstruction): dispatch = ( (OPCD_LI_AA_LK, {'OPCD':18}), (OPCD_LILBL_AA_LK, {'OPCD':18})) class bcx(DispatchInstruction): dispatch = ( (OPCD_BO_BI_BD_AA_LK, {'OPCD':16}), (OPCD_BO_BI_BDLBL_AA_LK, {'OPCD':16})) class bcctrx(Instruction): machine_inst = OPCD_BO_BI_XO_1_LK params = {'OPCD':19, 'XO':528} class bclrx(Instruction): machine_inst = OPCD_BO_BI_XO_1_LK params = {'OPCD':19, 'XO':16} class cmp_(Instruction): machine_inst = OPCD_crfD_L_A_B params = {'OPCD':31} class cmpi(Instruction): machine_inst = OPCD_crfD_L_A_SIMM params = {'OPCD':11} class cmpl(Instruction): machine_inst = OPCD_crfD_L_A_B_XO_1 params = {'OPCD':31, 'XO':32} class cmpli(Instruction): machine_inst = OPCD_crfD_L_A_UIMM params = {'OPCD':10} class cntlzwx(Instruction): machine_inst = OPCD_S_A_XO_1_Rc params = {'OPCD':31, 'XO':26} class crand(Instruction): machine_inst = OPCD_crbD_crbA_crbB_XO_1 params = {'OPCD':19, 'XO':257} class crandc(Instruction): machine_inst = OPCD_crbD_crbA_crbB_XO_1 params = {'OPCD':19, 'XO':129} class creqv(Instruction): machine_inst = OPCD_crbD_crbA_crbB_XO_1 params = {'OPCD':19, 'XO':289} class crnand(Instruction): machine_inst = OPCD_crbD_crbA_crbB_XO_1 params = {'OPCD':19, 'XO':225} class crnor(Instruction): machine_inst = OPCD_crbD_crbA_crbB_XO_1 params = {'OPCD':19, 'XO':33} class cror(Instruction): machine_inst = OPCD_crbD_crbA_crbB_XO_1 params = {'OPCD':19, 'XO':449} class crorc(Instruction): machine_inst = OPCD_crbD_crbA_crbB_XO_1 params = {'OPCD':19, 'XO':417} class crxor(Instruction): machine_inst = OPCD_crbD_crbA_crbB_XO_1 params = {'OPCD':19, 'XO':193} class dcba(Instruction): machine_inst = OPCD_A_B_XO_1 params = {'OPCD':31, 'XO':758} class dcbf(Instruction): machine_inst = OPCD_A_B_XO_1 params = {'OPCD':31, 'XO':86} class dcbi(Instruction): machine_inst = OPCD_A_B_XO_1 params = {'OPCD':31, 'XO':470} class dcbst(Instruction): machine_inst = OPCD_A_B_XO_1 params = {'OPCD':31, 'XO':54} class dcbt(Instruction): machine_inst = OPCD_A_B_XO_1 params = {'OPCD':31, 'XO':278} class dcbtst(Instruction): machine_inst = OPCD_A_B_XO_1 params = {'OPCD':31, 'XO':246} class dcbz(Instruction): machine_inst = OPCD_A_B_XO_1 params = {'OPCD':31, 'XO':1014} class divwx(Instruction): machine_inst = OPCD_D_A_B_OE_XO_2_Rc params = {'OPCD':31, 'XO':491} class divwux(Instruction): machine_inst = OPCD_D_A_B_OE_XO_2_Rc params = {'OPCD':31, 'XO':459} class eciwx(Instruction): machine_inst = OPCD_D_A_B_XO_1 params = {'OPCD':31, 'XO':310} class ecowx(Instruction): machine_inst = OPCD_S_A_B_XO_1 params = {'OPCD':31, 'XO':438} class eieio(Instruction): machine_inst = OPCD_XO_1 params = {'OPCD':31, 'XO':854} class eqvx(Instruction): machine_inst = OPCD_S_A_B_XO_1_Rc params = {'OPCD':31, 'XO':284} class extsbx(Instruction): machine_inst = OPCD_S_A_XO_1_Rc params = {'OPCD':31, 'XO':954} class extshx(Instruction): machine_inst = OPCD_S_A_XO_1_Rc params = {'OPCD':31, 'XO':922} class fabsx(Instruction): machine_inst = OPCD_D_B_XO_1_Rc params = {'OPCD':63, 'XO':264} class faddx(Instruction): machine_inst = OPCD_D_A_B_XO_3_Rc params = {'OPCD':63, 'XO':21} class faddsx(Instruction): machine_inst = OPCD_D_A_B_XO_3_Rc params = {'OPCD':59, 'XO':21} class fcmpo(Instruction): machine_inst = OPCD_crfD_A_B_XO_1 params = {'OPCD':63, 'XO':32} class fcmpu(Instruction): machine_inst = OPCD_crfD_A_B params = {'OPCD':63} class fctiwx(Instruction): machine_inst = OPCD_D_B_XO_1_Rc params = {'OPCD':63, 'XO':14} class fctiwzx(Instruction): machine_inst = OPCD_D_B_XO_1_Rc params = {'OPCD':63, 'XO':15} class fdivx(Instruction): machine_inst = OPCD_D_A_B_XO_3_Rc params = {'OPCD':63, 'XO':18} class fdivsx(Instruction): machine_inst = OPCD_D_A_B_XO_3_Rc params = {'OPCD':59, 'XO':18} class fmaddx(Instruction): machine_inst = OPCD_D_A_B_C_XO_3_Rc params = {'OPCD':63, 'XO':29} class fmaddsx(Instruction): machine_inst = OPCD_D_A_B_C_XO_3_Rc params = {'OPCD':59, 'XO':29} class fmrx(Instruction): machine_inst = OPCD_D_B_XO_1_Rc params = {'OPCD':63, 'XO':72} class fmsubx(Instruction): machine_inst = OPCD_D_A_B_C_XO_3_Rc params = {'OPCD':63, 'XO':28} class fmsubsx(Instruction): machine_inst = OPCD_D_A_B_C_XO_3_Rc params = {'OPCD':59, 'XO':28} class fmulx(Instruction): machine_inst = OPCD_D_A_C_XO_3_Rc params = {'OPCD':63, 'XO':25} class fmulsx(Instruction): machine_inst = OPCD_D_A_C_XO_3_Rc params = {'OPCD':59, 'XO':25} class fnabsx(Instruction): machine_inst = OPCD_D_B_XO_1_Rc params = {'OPCD':63, 'XO':136} class fnegx(Instruction): machine_inst = OPCD_D_B_XO_1_Rc params = {'OPCD':63, 'XO':40} class fnmaddx(Instruction): machine_inst = OPCD_D_A_B_C_XO_3_Rc params = {'OPCD':63, 'XO':31} class fnmaddsx(Instruction): machine_inst = OPCD_D_A_B_C_XO_3_Rc params = {'OPCD':59, 'XO':31} class fnmsubx(Instruction): machine_inst = OPCD_D_A_B_C_XO_3_Rc params = {'OPCD':63, 'XO':30} class fnmsubsx(Instruction): machine_inst = OPCD_D_A_B_C_XO_3_Rc params = {'OPCD':59, 'XO':30} class fresx(Instruction): machine_inst = OPCD_D_B_XO_3_Rc params = {'OPCD':59, 'XO':24} class frspx(Instruction): machine_inst = OPCD_D_B_XO_1_Rc params = {'OPCD':63, 'XO':12} class frsqrtex(Instruction): machine_inst = OPCD_D_B_XO_3_Rc params = {'OPCD':63, 'XO':26} class fselx(Instruction): machine_inst = OPCD_D_A_B_C_XO_3_Rc params = {'OPCD':63, 'XO':23} class fsqrtx(Instruction): machine_inst = OPCD_D_B_XO_3_Rc params = {'OPCD':63, 'XO':22} class fsqrtsx(Instruction): machine_inst = OPCD_D_B_XO_3_Rc params = {'OPCD':59, 'XO':22} class fsubx(Instruction): machine_inst = OPCD_D_A_B_XO_3_Rc params = {'OPCD':63, 'XO':20} class fsubsx(Instruction): machine_inst = OPCD_D_A_B_XO_3_Rc params = {'OPCD':59, 'XO':20} class icbi(Instruction): machine_inst = OPCD_A_B_XO_1 params = {'OPCD':31, 'XO':982} class isync(Instruction): machine_inst = OPCD_XO_1 params = {'OPCD':19, 'XO':150} class lbz(Instruction): machine_inst = OPCD_D_A_d params = {'OPCD':34} class lbzu(Instruction): machine_inst = OPCD_D_A_d params = {'OPCD':35} class lbzux(Instruction): machine_inst = OPCD_D_A_B_XO_1 params = {'OPCD':31, 'XO':119} class lbzx(Instruction): machine_inst = OPCD_D_A_B_XO_1 params = {'OPCD':31, 'XO':87} class lfd(Instruction): machine_inst = OPCD_D_A_d params = {'OPCD':50} class lfdu(Instruction): machine_inst = OPCD_D_A_d params = {'OPCD':51} class lfdux(Instruction): machine_inst = OPCD_D_A_B_XO_1 params = {'OPCD':31, 'XO':631} class lfdx(Instruction): machine_inst = OPCD_D_A_B_XO_1 params = {'OPCD':31, 'XO':599} class lfs(Instruction): machine_inst = OPCD_D_A_d params = {'OPCD':48} class lfsu(Instruction): machine_inst = OPCD_D_A_d params = {'OPCD':49} class lfsux(Instruction): machine_inst = OPCD_D_A_B_XO_1 params = {'OPCD':31, 'XO':567} class lfsx(Instruction): machine_inst = OPCD_D_A_B_XO_1 params = {'OPCD':31, 'XO':535} class lha(Instruction): machine_inst = OPCD_D_A_d params = {'OPCD':42} class lhau(Instruction): machine_inst = OPCD_D_A_d params = {'OPCD':43} class lhaux(Instruction): machine_inst = OPCD_D_A_B_XO_1 params = {'OPCD':31, 'XO':375} class lhax(Instruction): machine_inst = OPCD_D_A_B_XO_1 params = {'OPCD':31, 'XO':343} class lhbrx(Instruction): machine_inst = OPCD_D_A_B_XO_1 params = {'OPCD':31, 'XO':790} class lhz(Instruction): machine_inst = OPCD_D_A_d params = {'OPCD':40} class lhzu(Instruction): machine_inst = OPCD_D_A_d params = {'OPCD':41} class lhzux(Instruction): machine_inst = OPCD_D_A_B_XO_1 params = {'OPCD':31, 'XO':311} class lhzx(Instruction): machine_inst = OPCD_D_A_B_XO_1 params = {'OPCD':31, 'XO':279} class lmw(Instruction): machine_inst = OPCD_D_A_d params = {'OPCD':46} class lswi(Instruction): machine_inst = OPCD_D_A_NB_XO_1 params = {'OPCD':31, 'XO':597} class lswx(Instruction): machine_inst = OPCD_D_A_B_XO_1 params = {'OPCD':31, 'XO':533} class lwarx(Instruction): machine_inst = OPCD_D_A_B_XO_1 params = {'OPCD':31, 'XO':20} class lwbrx(Instruction): machine_inst = OPCD_D_A_B_XO_1 params = {'OPCD':31, 'XO':534} class lwz(Instruction): machine_inst = OPCD_D_A_d params = {'OPCD':32} class lwzu(Instruction): machine_inst = OPCD_D_A_d params = {'OPCD':33} class lwzux(Instruction): machine_inst = OPCD_D_A_B_XO_1 params = {'OPCD':31, 'XO':55} class lwzx(Instruction): machine_inst = OPCD_D_A_B_XO_1 params = {'OPCD':31, 'XO':23} class mcrf(Instruction): machine_inst = OPCD_crfD_crfS params = {'OPCD':19} class mcrfs(Instruction): machine_inst = OPCD_crfD_crfS_XO_1 params = {'OPCD':63, 'XO':64} class mcrxr(Instruction): machine_inst = OPCD_crfD_XO_1 params = {'OPCD':31, 'XO':512} class mfcr(Instruction): machine_inst = OPCD_D_XO_1 params = {'OPCD':31, 'XO':19} class mffsx(Instruction): machine_inst = OPCD_D_XO_1_Rc params = {'OPCD':63, 'XO':583} class mfmsr(Instruction): machine_inst = OPCD_D_XO_1 params = {'OPCD':31, 'XO':83} class mfspr(Instruction): machine_inst = OPCD_D_spr_XO_1 params = {'OPCD':31, 'XO':339} class mfsr(Instruction): machine_inst = OPCD_D_SR_XO_1 params = {'OPCD':31, 'XO':595} class mfsrin(Instruction): machine_inst = OPCD_D_B_XO_1 params = {'OPCD':31, 'XO':659} class mftb(Instruction): machine_inst = OPCD_D_tbr_XO_1 params = {'OPCD':31, 'XO':371} class mtcrf(Instruction): machine_inst = OPCD_S_CRM_XO_1 params = {'OPCD':31, 'XO':144} class mtfsb0x(Instruction): machine_inst = OPCD_crbD_XO_1_Rc params = {'OPCD':63, 'XO':70} class mtfsb1x(Instruction): machine_inst = OPCD_crbD_XO_1_Rc params = {'OPCD':63, 'XO':38} class mtfsfx(Instruction): machine_inst = OPCD_FM_B_XO_1_Rc params = {'OPCD':63, 'XO':711} class mtfsfix(Instruction): machine_inst = OPCD_crfD_IMM_XO_1_Rc params = {'OPCD':63, 'XO':134} class mtmsr(Instruction): machine_inst = OPCD_S_XO_1 params = {'OPCD':31, 'XO':146} class mtspr(Instruction): machine_inst = OPCD_S_spr_XO_1 params = {'OPCD':31, 'XO':467} class mtsr(Instruction): machine_inst = OPCD_S_SR_XO_1 params = {'OPCD':31, 'XO':210} class mtsrin(Instruction): machine_inst = OPCD_S_B_XO_1 params = {'OPCD':31, 'XO':242} class mulhwx(Instruction): machine_inst = OPCD_D_A_B_XO_2_Rc params = {'OPCD':31, 'XO':75} class mulhwux(Instruction): machine_inst = OPCD_D_A_B_XO_2_Rc params = {'OPCD':31, 'XO':11} class mulli(Instruction): machine_inst = OPCD_D_A_SIMM params = {'OPCD':7} class mullwx(Instruction): machine_inst = OPCD_D_A_B_OE_XO_2_Rc params = {'OPCD':31, 'XO':235} class nandx(Instruction): machine_inst = OPCD_S_A_B_XO_1_Rc params = {'OPCD':31, 'XO':476} class negx(Instruction): machine_inst = OPCD_D_A_OE_XO_2_Rc params = {'OPCD':31, 'XO':104} class norx(Instruction): machine_inst = OPCD_S_A_B_XO_1_Rc params = {'OPCD':31, 'XO':124} class orx(Instruction): machine_inst = OPCD_S_A_B_XO_1_Rc params = {'OPCD':31, 'XO':444} class orcx(Instruction): machine_inst = OPCD_S_A_B_XO_1_Rc params = {'OPCD':31, 'XO':412} class ori(Instruction): machine_inst = OPCD_S_A_UIMM params = {'OPCD':24} class oris(Instruction): machine_inst = OPCD_S_A_UIMM params = {'OPCD':25} class rfi(Instruction): machine_inst = OPCD_XO_1 params = {'OPCD':19, 'XO':50} class rlwimix(Instruction): machine_inst = OPCD_S_A_SH_MB_ME_Rc params = {'OPCD':20} class rlwinmx(Instruction): machine_inst = OPCD_S_A_SH_MB_ME_Rc params = {'OPCD':21} class rlwnmx(Instruction): machine_inst = OPCD_S_A_B_MB_ME_Rc params = {'OPCD':23} class sc(Instruction): machine_inst = OPCD_SC_ONE params = {'OPCD':17} class slwx(Instruction): machine_inst = OPCD_S_A_B_XO_1_Rc params = {'OPCD':31, 'XO':24} class srawx(Instruction): machine_inst = OPCD_S_A_B_XO_1_Rc params = {'OPCD':31, 'XO':792} class srawix(Instruction): machine_inst = OPCD_S_A_SH_XO_1_Rc params = {'OPCD':31, 'XO':824} class srwx(Instruction): machine_inst = OPCD_S_A_B_XO_1_Rc params = {'OPCD':31, 'XO':536} class stb(Instruction): machine_inst = OPCD_S_A_d params = {'OPCD':38} class stbu(Instruction): machine_inst = OPCD_S_A_d params = {'OPCD':39} class stbux(Instruction): machine_inst = OPCD_S_A_B_XO_1 params = {'OPCD':31, 'XO':247} class stbx(Instruction): machine_inst = OPCD_S_A_B_XO_1 params = {'OPCD':31, 'XO':215} class stfd(Instruction): machine_inst = OPCD_S_A_d params = {'OPCD':54} class stfdu(Instruction): machine_inst = OPCD_S_A_d params = {'OPCD':55} class stfdux(Instruction): machine_inst = OPCD_S_A_B_XO_1 params = {'OPCD':31, 'XO':759} class stfdx(Instruction): machine_inst = OPCD_S_A_B_XO_1 params = {'OPCD':31, 'XO':727} class stfiwx(Instruction): machine_inst = OPCD_S_A_B_XO_1 params = {'OPCD':31, 'XO':983} class stfs(Instruction): machine_inst = OPCD_S_A_d params = {'OPCD':52} class stfsu(Instruction): machine_inst = OPCD_S_A_d params = {'OPCD':53} class stfsux(Instruction): machine_inst = OPCD_S_A_B_XO_1 params = {'OPCD':31, 'XO':695} class stfsx(Instruction): machine_inst = OPCD_S_A_B_XO_1 params = {'OPCD':31, 'XO':663} class sth(Instruction): machine_inst = OPCD_S_A_d params = {'OPCD':44} class sthbrx(Instruction): machine_inst = OPCD_S_A_B_XO_1 params = {'OPCD':31, 'XO':918} class sthu(Instruction): machine_inst = OPCD_S_A_d params = {'OPCD':45} class sthux(Instruction): machine_inst = OPCD_S_A_B_XO_1 params = {'OPCD':31, 'XO':439} class sthx(Instruction): machine_inst = OPCD_S_A_B_XO_1 params = {'OPCD':31, 'XO':407} class stmw(Instruction): machine_inst = OPCD_S_A_d params = {'OPCD':47} class stswi(Instruction): machine_inst = OPCD_S_A_NB_XO_1 params = {'OPCD':31, 'XO':725} class stswx(Instruction): machine_inst = OPCD_S_A_B_XO_1 params = {'OPCD':31, 'XO':661} class stw(Instruction): machine_inst = OPCD_S_A_d params = {'OPCD':36} class stwbrx(Instruction): machine_inst = OPCD_S_A_B_XO_1 params = {'OPCD':31, 'XO':662} class stwcx_(Instruction): machine_inst = OPCD_S_A_B_XO_1_STWCX_ONE params = {'OPCD':31, 'XO':150} class stwu(Instruction): machine_inst = OPCD_S_A_d params = {'OPCD':37} class stwux(Instruction): machine_inst = OPCD_S_A_B_XO_1 params = {'OPCD':31, 'XO':183} class stwx(Instruction): machine_inst = OPCD_S_A_B_XO_1 params = {'OPCD':31, 'XO':151} class subfx(Instruction): machine_inst = OPCD_D_A_B_OE_XO_2_Rc params = {'OPCD':31, 'XO':40} class subfcx(Instruction): machine_inst = OPCD_D_A_B_OE_XO_2_Rc params = {'OPCD':31, 'XO':8} class subfex(Instruction): machine_inst = OPCD_D_A_B_OE_XO_2_Rc params = {'OPCD':31, 'XO':136} class subfic(Instruction): machine_inst = OPCD_D_A_SIMM params = {'OPCD':8} class subfmex(Instruction): machine_inst = OPCD_D_A_OE_XO_2_Rc params = {'OPCD':31, 'XO':232} class subfzex(Instruction): machine_inst = OPCD_D_A_OE_XO_2_Rc params = {'OPCD':31, 'XO':200} class sync(Instruction): machine_inst = OPCD_XO_1 params = {'OPCD':31, 'XO':598} class tlbia(Instruction): machine_inst = OPCD_XO_1 params = {'OPCD':31, 'XO':370} class tlbie(Instruction): machine_inst = OPCD_B_XO_1 params = {'OPCD':31, 'XO':306} class tlbsync1(Instruction): machine_inst = OPCD_XO_1 params = {'OPCD':31, 'XO':566} class tw(Instruction): machine_inst = OPCD_TO_A_B_XO_1 params = {'OPCD':31, 'XO':4} class twi(Instruction): machine_inst = OPCD_TO_A_SIMM params = {'OPCD':3} class xorx(Instruction): machine_inst = OPCD_S_A_B_XO_1_Rc params = {'OPCD':31, 'XO':316} class xori(Instruction): machine_inst = OPCD_S_A_UIMM params = {'OPCD':26} class xoris(Instruction): machine_inst = OPCD_S_A_UIMM params = {'OPCD':27} if __name__=='__main__': from corepy.spre.syn_util import DecToBin a = addx(1,2,3) d = a.render() print '0x%08X: %s' % (d, DecToBin(d))
24.839853
90
0.69152
3,231
20,319
4.01269
0.177344
0.258234
0.315619
0.373004
0.659391
0.633166
0.611492
0.580717
0.565214
0.458157
0
0.056646
0.179832
20,319
817
91
24.870257
0.721332
0.104434
0
0.267797
0
0.00339
0.0994
0
0
0
0
0
0
0
null
null
0
0.008475
null
null
0.001695
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
1
0
0
0
0
0
0
0
0
4
e3246aeefe8883a4a990a7b20ed4be2d841e741d
51
py
Python
Data Engineering Coding Challenge/pymongoexample/settings.py
khmira/Data_Engineering_Coding_Challenge
104af0119fb184e69b13c627982a572288059cb0
[ "MIT" ]
null
null
null
Data Engineering Coding Challenge/pymongoexample/settings.py
khmira/Data_Engineering_Coding_Challenge
104af0119fb184e69b13c627982a572288059cb0
[ "MIT" ]
null
null
null
Data Engineering Coding Challenge/pymongoexample/settings.py
khmira/Data_Engineering_Coding_Challenge
104af0119fb184e69b13c627982a572288059cb0
[ "MIT" ]
null
null
null
import os MONGO__URI = os.environ.get('MONGO_URI')
17
40
0.764706
9
51
4
0.666667
0.444444
0
0
0
0
0
0
0
0
0
0
0.098039
51
3
40
17
0.782609
0
0
0
0
0
0.173077
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
e3730d58426d7a533fd74dab66f5eaef50b5417a
162
py
Python
rest_framework_captcha/generators.py
atados/rest-framework-captcha
c1b2fea380c99c23d3e8bc580f2ff21e73e08580
[ "MIT" ]
null
null
null
rest_framework_captcha/generators.py
atados/rest-framework-captcha
c1b2fea380c99c23d3e8bc580f2ff21e73e08580
[ "MIT" ]
null
null
null
rest_framework_captcha/generators.py
atados/rest-framework-captcha
c1b2fea380c99c23d3e8bc580f2ff21e73e08580
[ "MIT" ]
null
null
null
import random import string def default(): digits = string.ascii_uppercase secret = ''.join(random.choice(digits) for _ in range(6)) return secret
16.2
61
0.697531
21
162
5.285714
0.761905
0
0
0
0
0
0
0
0
0
0
0.007752
0.203704
162
9
62
18
0.852713
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
8b9f4f1729fc6fe101a54148a0e149f37a683683
82
py
Python
scripts/portal/cygnusre01.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
54
2019-04-16T23:24:48.000Z
2021-12-18T11:41:50.000Z
scripts/portal/cygnusre01.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
3
2019-05-19T15:19:41.000Z
2020-04-27T16:29:16.000Z
scripts/portal/cygnusre01.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
49
2020-11-25T23:29:16.000Z
2022-03-26T16:20:24.000Z
# 100000200 - Henesys Park -> Pet-Walking Road sm.warp(100000202, 5) sm.dispose()
20.5
46
0.719512
12
82
4.916667
0.916667
0
0
0
0
0
0
0
0
0
0
0.267606
0.134146
82
3
47
27.333333
0.56338
0.536585
0
0
0
0
0
0
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
1
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
8bb68e2cb42120e4f19f97ca86c9fc394e28654a
143
py
Python
lista_ex7.py/exercicio6.py
robinson-1985/mentoria_exercises
8359cead6ee5351851b04cb45f252e3881b79117
[ "MIT" ]
null
null
null
lista_ex7.py/exercicio6.py
robinson-1985/mentoria_exercises
8359cead6ee5351851b04cb45f252e3881b79117
[ "MIT" ]
null
null
null
lista_ex7.py/exercicio6.py
robinson-1985/mentoria_exercises
8359cead6ee5351851b04cb45f252e3881b79117
[ "MIT" ]
null
null
null
''' 6. Faça um programa que carregue uma matriz M 4x6 e uma segunda matriz N 6x4, calcule e imprima a soma das linhas M com as colunas de N.'''
71.5
89
0.734266
29
143
3.62069
0.827586
0
0
0
0
0
0
0
0
0
0
0.04386
0.202797
143
2
90
71.5
0.877193
0.951049
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
4782582676de4f00330e00936ea5ecaf1056d977
192
py
Python
craft/keyframe_extractor.py
4ML-ndvr/ndvr
0f7a1f138fa36fe7b69f76c45311f224147ac30b
[ "MIT" ]
17
2020-09-22T05:09:31.000Z
2022-02-04T08:10:06.000Z
craft/keyframe_extractor.py
4ML-ndvr/ndvr
0f7a1f138fa36fe7b69f76c45311f224147ac30b
[ "MIT" ]
1
2021-02-25T07:24:25.000Z
2021-02-25T07:24:25.000Z
craft/keyframe_extractor.py
4ML-ndvr/ndvr
0f7a1f138fa36fe7b69f76c45311f224147ac30b
[ "MIT" ]
null
null
null
from Katna.video import Video def get_keyframes_from_video(video_path, num_frames): video = Video() images = video.extract_frames_as_images(num_frames, video_path) return images
24
67
0.776042
28
192
4.964286
0.5
0.143885
0.201439
0
0
0
0
0
0
0
0
0
0.15625
192
7
68
27.428571
0.858025
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
4
4788e8965f6af78118c116d38f1341c50a2b4d0d
145
py
Python
app/api/apps.py
kwahome/pycon-monitoring-workshop
24ff177352fb13b686ab46a96c30066556d2e92d
[ "MIT" ]
7
2018-10-25T08:31:05.000Z
2021-12-31T11:41:50.000Z
app/api/apps.py
nknganda/pycon-monitoring-workshop
24ff177352fb13b686ab46a96c30066556d2e92d
[ "MIT" ]
null
null
null
app/api/apps.py
nknganda/pycon-monitoring-workshop
24ff177352fb13b686ab46a96c30066556d2e92d
[ "MIT" ]
5
2018-10-24T10:18:24.000Z
2019-09-13T09:15:59.000Z
from django.apps import AppConfig class ApiAppConfig(AppConfig): name = "app.api" label = "app.api" def ready(self): pass
14.5
33
0.634483
18
145
5.111111
0.833333
0.130435
0
0
0
0
0
0
0
0
0
0
0.262069
145
9
34
16.111111
0.859813
0
0
0
0
0
0.096552
0
0
0
0
0
0
1
0.166667
false
0.166667
0.166667
0
0.833333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
4
47a9e13bb2feb92bdb48a1598b5b3c8630f03649
64
py
Python
v1-v2/test-programs/class_test_2.py
ambadhan/OnlinePythonTutor
857bab941fbde20f1f020b05b7723094ddead62a
[ "MIT" ]
17
2021-12-09T11:31:44.000Z
2021-12-29T03:07:14.000Z
v1-v2/test-programs/class_test_2.py
heysachin/OnlinePythonTutor
0dcdacc7ff5be504dd6a47236ebc69dc0069f991
[ "MIT" ]
22
2017-09-17T03:59:16.000Z
2017-11-14T17:33:57.000Z
v1-v2/test-programs/class_test_2.py
heysachin/OnlinePythonTutor
0dcdacc7ff5be504dd6a47236ebc69dc0069f991
[ "MIT" ]
12
2021-12-09T11:31:46.000Z
2022-01-07T03:14:46.000Z
class Outer(): pass o = Outer() o.a = 5 o.b = "Hi" print o
7.111111
14
0.515625
13
64
2.538462
0.692308
0
0
0
0
0
0
0
0
0
0
0.022222
0.296875
64
8
15
8
0.711111
0
0
0
0
0
0.031746
0
0
0
0
0
0
0
null
null
0.166667
0
null
null
0.166667
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
4
47e2c3369a9b251152ba2a94c6d872e032565ddc
109
py
Python
Python/Tutorial - 2/Condition_1.py
JC2295/FCC_Tutorial_Projects
990e1221b2177acb9e4db0264adab518620404a0
[ "MIT" ]
null
null
null
Python/Tutorial - 2/Condition_1.py
JC2295/FCC_Tutorial_Projects
990e1221b2177acb9e4db0264adab518620404a0
[ "MIT" ]
null
null
null
Python/Tutorial - 2/Condition_1.py
JC2295/FCC_Tutorial_Projects
990e1221b2177acb9e4db0264adab518620404a0
[ "MIT" ]
null
null
null
x = 12 if x < 10: print("x is less than 10") elif x >= 10: print("x is greater than or equal to 10")
18.166667
45
0.577982
23
109
2.73913
0.565217
0.095238
0.253968
0.285714
0.349206
0
0
0
0
0
0
0.12987
0.293578
109
6
45
18.166667
0.688312
0
0
0
0
0
0.445455
0
0
0
0
0
0
1
0
false
0
0
0
0
0.4
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
9a59238ad57fd0949d3b59b7fad8506c3ae04d53
45,760
py
Python
catboost/python-package/ut/medium/canondata/test.test_export_to_python_no_cat_features_CPU-40_/model.py
mikiec84/catboost
d16aa349ba7af265b053967b1938917fbddbca9d
[ "Apache-2.0" ]
null
null
null
catboost/python-package/ut/medium/canondata/test.test_export_to_python_no_cat_features_CPU-40_/model.py
mikiec84/catboost
d16aa349ba7af265b053967b1938917fbddbca9d
[ "Apache-2.0" ]
null
null
null
catboost/python-package/ut/medium/canondata/test.test_export_to_python_no_cat_features_CPU-40_/model.py
mikiec84/catboost
d16aa349ba7af265b053967b1938917fbddbca9d
[ "Apache-2.0" ]
null
null
null
### Model data class catboost_model(object): float_features_index = [ 0, 1, 2, 5, 6, 7, 8, 10, 12, 13, 14, 15, 16, 17, 20, 22, 24, 27, 28, 31, 32, 33, 34, 35, 37, 38, 39, 46, 47, 48, 49, ] float_feature_count = 50 cat_feature_count = 0 binary_feature_count = 31 tree_count = 40 float_feature_borders = [ [0.175395012, 0.1838945, 0.378224492, 0.646430016, 0.794435978], [0.00386904506, 0.0143127497, 0.0237283502, 0.113178, 0.117846504, 0.140969992, 0.151769012, 0.156479999, 0.202911496, 0.38756001, 0.485974014], [0.00861673057, 0.557633996, 0.758180022, 0.817595959, 0.888193488, 0.902011514, 0.903753996, 0.937548518, 0.937671542, 0.937812984], [0.5], [0.5], [0.5], [0.5], [0.5], [0.5], [0.5], [0.386274517, 0.413725495, 0.421568513, 0.496078491, 0.566666484, 0.598039031], [0.46657151, 0.550505519, 0.587584972, 0.626136005, 0.658094525, 0.669399023, 0.748417497, 0.76047051, 0.778998971, 0.81042254, 0.834022045, 0.941508055], [0.0252820998, 0.0504557006, 0.0924388021, 0.240712494, 0.254698515, 0.318728, 0.333916008, 0.365603, 0.37875849, 0.387778997, 0.39003402, 0.540594995, 0.586225033, 0.651247025, 0.692146003, 0.735934496, 0.795647502], [0.0704644024, 0.1199295, 0.126112998, 0.128601998, 0.143661499, 0.149134487, 0.149136499, 0.150786504, 0.260086477, 0.261237979, 0.26285702, 0.277716517, 0.277717501, 0.277720511], [0.339215517, 0.382353008, 0.390195996, 0.394117475, 0.398038983, 0.413725495, 0.488235474, 0.492156982, 0.507843018, 0.531372488, 0.711764991, 0.750980496], [0.5], [0.0225447994, 0.0261416994, 0.182705492, 0.937511444, 0.939667463, 0.945958018, 0.952567995, 0.954834998], [0.5], [0.5], [0.0867389515, 0.0950040966, 0.141615003, 0.148920506, 0.348527014, 0.513378978, 0.516897023, 0.724137545], [0.5], [0.172385991, 0.185759991, 0.198566005, 0.451892495, 0.84256053], [0.5], [-0.0314164981, 0.0439245999, 0.117502004, 0.166823998, 0.245040998, 0.318073004, 0.344751, 0.345134497, 0.348299503, 0.361798525, 0.423586994, 0.476337016, 0.681255519], [0.00143194001, 0.00513814017, 0.0090128053, 0.0309973005, 0.0367250517], [0.02983425, 0.0453458503, 0.189270005, 0.357340515, 0.651507497, 0.654693007, 0.656473994, 0.726830006], [0.000425621984, 0.000653013994, 0.00177894998, 0.001926005, 0.00270928489, 0.00354014011, 0.00393318012, 0.005463365, 0.00603085477, 0.00666473527, 0.00760281505, 0.0188514516], [0.231252998, 0.42613101, 0.49158749, 0.599743009, 0.641760468], [0.432520002, 0.460792005, 0.472368002, 0.502859473, 0.525056005, 0.549761534, 0.595171452, 0.60571146, 0.695415974, 0.711432993, 0.715005994, 0.725735545, 0.772307515, 0.778638482, 0.873877525, 0.982075989], [0.261609018, 0.264095008, 0.273368478, 0.276944995, 0.340994507, 0.46727401, 0.48003298, 0.547486544, 0.640262485, 0.662613511, 0.718292952, 0.748547494, 0.758205533, 0.870769978, 0.911834955], [0.5], ] tree_depth = [6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6] tree_split_border = [1, 8, 8, 7, 2, 11, 1, 3, 5, 6, 2, 2, 10, 5, 12, 9, 6, 1, 8, 13, 13, 12, 2, 1, 1, 8, 3, 5, 4, 1, 9, 13, 14, 8, 5, 5, 5, 7, 15, 13, 1, 5, 12, 1, 3, 2, 10, 3, 1, 3, 6, 4, 14, 4, 6, 10, 3, 4, 3, 1, 12, 7, 1, 5, 2, 5, 9, 2, 10, 5, 4, 6, 8, 6, 2, 12, 9, 5, 13, 3, 4, 1, 7, 4, 14, 7, 15, 10, 8, 7, 1, 1, 5, 1, 4, 1, 11, 16, 1, 7, 7, 4, 4, 2, 3, 11, 8, 1, 1, 11, 1, 6, 7, 1, 1, 9, 2, 9, 4, 14, 9, 3, 7, 3, 5, 12, 3, 4, 16, 6, 14, 1, 5, 15, 3, 1, 3, 4, 7, 8, 1, 1, 9, 15, 1, 9, 5, 5, 3, 6, 7, 9, 2, 10, 4, 1, 11, 9, 7, 2, 2, 4, 2, 2, 8, 11, 1, 2, 2, 14, 11, 8, 12, 8, 1, 7, 7, 3, 1, 12, 1, 2, 2, 8, 7, 5, 6, 4, 4, 4, 5, 1, 4, 2, 3, 13, 10, 6, 1, 4, 6, 3, 6, 6, 8, 3, 1, 1, 11, 9, 1, 1, 7, 1, 5, 11, 10, 8, 5, 6, 1, 4, 10, 14, 10, 1, 1, 1, 15, 6, 1, 1, 8, 13, 4, 10, 17, 14, 5, 1] tree_split_feature_index = [19, 1, 26, 11, 24, 23, 20, 26, 14, 23, 12, 21, 28, 29, 14, 1, 14, 6, 29, 12, 28, 13, 25, 21, 20, 12, 11, 1, 25, 18, 26, 29, 12, 25, 28, 23, 16, 26, 28, 12, 22, 14, 29, 9, 2, 11, 23, 16, 20, 1, 2, 0, 29, 25, 28, 2, 12, 24, 10, 1, 28, 12, 2, 13, 14, 10, 28, 1, 12, 26, 16, 10, 28, 1, 2, 23, 13, 11, 28, 26, 13, 3, 13, 21, 28, 1, 12, 1, 11, 29, 20, 9, 21, 26, 12, 14, 26, 12, 30, 14, 25, 2, 19, 29, 0, 1, 25, 25, 20, 12, 17, 26, 16, 0, 20, 2, 10, 23, 27, 12, 2, 23, 14, 21, 26, 12, 19, 26, 28, 10, 12, 17, 19, 12, 24, 17, 27, 13, 2, 23, 30, 11, 29, 12, 20, 11, 2, 12, 25, 29, 28, 14, 0, 29, 1, 18, 28, 12, 25, 24, 27, 29, 19, 26, 16, 29, 5, 23, 28, 12, 13, 14, 26, 13, 20, 23, 2, 13, 7, 11, 29, 28, 13, 25, 14, 0, 2, 11, 14, 23, 27, 3, 28, 16, 29, 13, 11, 25, 28, 13, 19, 14, 16, 11, 2, 28, 10, 8, 14, 12, 29, 13, 19, 3, 14, 11, 2, 19, 24, 12, 12, 10, 26, 12, 13, 24, 4, 15, 29, 13, 23, 16, 2, 23, 28, 14, 12, 13, 25, 27] tree_split_xor_mask = [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, 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, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] cat_features_index = [] one_hot_cat_feature_index = [] one_hot_hash_values = [ ] ctr_feature_borders = [ ] ## Aggregated array of leaf values for trees. Each tree is represented by a separate line: leaf_values = [ 0.05960256437951928, 0.06070146909282823, 0.06015918889076437, 0.05959448117928647, 0.0599721206163218, 0.06062821605892021, 0.0605089520658085, 0.06288086010413954, 0.05955195210314157, 0.06099448115395449, 0.06229438070265529, 0.06050201132893562, 0.06192215820207864, 0.06190509985324542, 0.06176463823760008, 0.06162483396958104, 0.06005946608783778, 0.06062279438329973, 0.06004824625411104, 0.06064448116028749, 0.06103598718641752, 0.06270338815639177, 0.06267781612256605, 0.06172957858253918, 0.05938985894333002, 0.06132279437063375, 0.0613444811476215, 0.06109824623511206, 0.0616944811412885, 0.0620775132274143, 0.06146759860387622, 0.06253466764112585, 0.05988602370841774, 0.0604175986228752, 0.05969421006123277, 0.06050201132893562, 0.06009357756463582, 0.0597648340096226, 0.06094687741927594, 0.06145321607326258, 0.06024776317952554, 0.06096483398790947, 0.06303508723080734, 0.06050201132893562, 0.0608775135811513, 0.06275863771560382, 0.06071954670341606, 0.06099448115395449, 0.05989259863237469, 0.0648667073624649, 0.06050201132893562, 0.06050201132893562, 0.06050201132893562, 0.06221517819009029, 0.06050201132893562, 0.06404448115730725, 0.05957821609654565, 0.06004824625411104, 0.06050201132893562, 0.06050201132893562, 0.06050201132893562, 0.06240996302870024, 0.06057324624461156, 0.06019598720161671, -0.0009068310388559024, 0.0005823790048818268, 0.0003022397759053274, 0.001236387425717793, -0.001110814547534013, 0, -0.0009955282825560336, 0.0005900790335013008, -0.0007270945767319858, -0.0004503618368394611, -0.0004830951003004704, 0, -0.0007312046291846942, 0, -0.0003228709852496245, 0.001331784484289174, -0.0009001571778393695, 0.0008336580731940341, 0.0001846719011632316, 0.001297891181080824, -0.0009618816738515486, 0, -8.710280354874739e-05, 0.000935069827523146, -0.000469122101802195, 0.000927062975956497, 0.0009596543982336384, 0.0001628772571593989, -0.0005596775005835593, 6.159951384984342e-05, -0.0003414199319814777, 0.002115943356260228, 0, -0.001142222399221946, 0, 0.001164318208439542, -0.000457458598429662, 0.0005900790335013008, 0, 9.584290627186962e-05, 0.001870434369045688, 0.0005927637363117251, 0.0005925413825713574, 0.0005833861550049742, 0.0002303670248576997, 0.005328653757534604, -0.000235488818658018, 0, 0, -0.0003494213597650448, -0.0003075385840448801, 0.001911465205838799, 0, 0, 0.0003968806892349656, 0.001932862827397617, -7.592085855706009e-05, 0, 0.001140556113073425, 0.002650395860214851, 0.0002143034913390684, 0, -0.0003199517355933474, 0.002342043877120708, -0.0008255076879879013, 0, 2.963474536994075e-05, 0.00133157584475381, 0, 0, 0, 0, 0.0007332090569434432, 0, 0.0008839420666393279, 0.0005411137808915025, 0, 0, 0, 0, -0.001174172258888733, 0, -4.880608934416334e-05, 0.00304220442197527, -0.0005631011493398127, 0.0005856534408489607, -0.0005797420271229933, 0.0004137618636092113, -0.0008903556334588118, 0, 0.000323080433781681, 0.002877251136554585, 0, 0, -0.00110589081834929, 0, 0.0006752537541109018, 0, 0.000859004559224972, 0.001944385151182034, 0, 0, 0, 0, 0.000903436633701007, 0, 9.139636452584899e-07, 0.003837850096914544, 0, 0, 0, 0, -0.0001616476694876037, 0.0005893602117203287, -0.0005399148187012325, 0.001545423564299556, -0.0007188761029023953, 0, -0.0006385464476446567, -0.0004582376131230649, 0.0003343360984731416, 0, -0.0002103706994374059, 0.00156091289019888, -0.0004528359406640871, 0, -0.0009069158758616088, 0, -0.000401568779496549, 0.000126501580156415, -0.0006511481172762662, 0.000624371256332249, 0.0009127066324430423, 0.001309104305710209, 0, 0, -0.0008082733811971049, 0.001317802216441966, 0.005863355179659432, -0.0002214717502162596, 0, 0, 0, 0, -0.000130804229269851, 0.0002501883127191267, 0, 0.0006507025885549615, 0.0005601015702535238, 0.001205826632256492, 0, 0.0003921999650066529, -0.000977879599203093, 0.0001450362731798309, -0.0003189307834865347, 0.002300871759266034, 0, 0, 0, 0, 0.001046991258519593, 0.0002194142615655317, 0, 0, 0, 0.004095668452432496, 0, 0, -0.001146915860843075, 0.002602714598010289, 0, 0, 0, 0, 0, 0, 0.0001941932952346267, -7.773571156871769e-06, 0, -0.0004107193418927222, 0.001420769828524477, 0.002088915532621854, 0, 0, -0.0004531241522537246, 0.00058433738518943, 0, 0, 0, 0.004054731721198525, 0, 0, -0.0008986334950566576, -0.0003815477805714486, 0.0001680492376123468, 0, -0.0008152289339438823, 0.001241603629413865, 6.038870670514412e-05, 0, -0.0006777894151986823, 0.002102271045086913, 0.0004503061015964687, 6.11546265669483e-05, 0.0001038563561778671, 0.0007176545796428096, 0.003414784714422588, -0.0009525145408156789, -0.0008958140255386376, 0.00578281017516635, -0.0005853509346225964, 2.475672695798763e-05, -0.0003011946281607049, 0.001594888585597788, -0.0002152025968347746, 0, 0.0006538688771301455, 0.0006035505368545839, 0.0004687583720916312, 0.0005727045197730552, 0.0002980731734116802, 0.001841195473683457, 0.00102922626796895, 0.0004567081468439011, -0.000345977341587908, 5.912827139725208e-05, 0, 0, 0.001843387323466271, 0, 0.0005850660534626809, 0, -0.0004503988499311936, 0.00302899319613218, 0.0007598776450626112, 0.0003016918923439847, 0.0007711134900818612, 0.003650110205298897, 0.002103213104474725, 0.0007489497931014422, -0.001014163973340277, -0.0001379779160878587, 0, 0, -0.0004398661035316483, 0.001115304487633738, 0, 0, -0.0007906387768084228, 0.0007188906932456458, -0.000489375435877958, -0.0004817550370255072, 0.0002620610283638666, 0.001626712002241777, -0.0005226102083038629, 0, -0.0007948534981611709, 0.0005256298072493532, 0, -0.0004549889615015632, 0.003689839804145559, 0.001351341131338389, 0, 0.001698023934270857, -0.0005047437686986064, -0.00122029721761542, 0, 0, 0, -0.0005946516372080023, 0, -0.0005829890844505032, 0.0004829617451990933, 0.001274351667237778, 0.0003364182016724926, 0.0007998888509950559, 0, 0, 0, 0, 0.001119482876265136, 0.001105979857942378, -0.0004952809722155348, 0.002478559937691653, 0, 0, 0, 0.0001484914796241115, -0.0004451098185261131, 0.0005219659759947921, 0.002625771677078105, -0.0004622626688093997, 0.003180176853643922, 0.000500793877487153, 0, 0, -0.0002482971942041805, -0.0007280251509266012, 0, -3.037432140477268e-05, 0, 0, 0, -0.0004793245006222285, 0.0004976954132640868, 0.001931034063756475, 0.002701688975660498, 0.002544442354066031, 0, 0, 0, 0, -0.0003050469065930951, 0.0005443530127708044, 0.002513587434501194, 0.001189114549536518, 0, 0, 0, -0.0004588780301996969, -0.0006018063431015334, -0.001027882254846747, 2.096042226701643e-05, 0.001465262300263499, 0, 0, 0, 0, 0.005799503978290448, 0, 0.0005145142843527017, -0.0007292303078440648, 0, 0, 0, 0, -0.0001376545879859117, 0.000638494729025773, 0.0005716629263118272, 0.001346967505691378, -0.0007881469465385549, -0.0001152312742054467, 0, 0.001811460642135851, 0, 0, -0.0003250594153976753, 0, 0, 0, 0, 0.0003776421757637712, -0.0008928773470896611, -0.0005702509148721005, 0.0001669308364415138, -0.0002957771092143147, 0, 0, 0, 0, 0.0017671583786665, 2.837842173810271e-05, 0.0008905397402366979, 0, 0, 0, 0, 0, -0.0004902131531725223, -0.0002656417725737849, -0.0003088892837797236, 0.0004202085992080763, 0, 0.005003087301980368, -0.0005056454655113847, 0.00214035032465187, -0.0004989248653304542, 0, 0.0003890801386909085, 0.002138011279776907, 0, 0, 0, 0, -0.0007755504715727673, 0, -0.0004204031612023624, 0, 0, 0, 0, 0, -0.0004779051632618724, 0.0001444596925768664, 0.0007942280630878249, 0.000476885076201495, 0, 0, 5.94703731287996e-05, 0, -0.0009695591590630888, -3.306461497428595e-05, -0.0003411943477162227, 0, 0, 0, 0, 0, -0.0005915237194839268, -0.0007328653361691701, 0.001887835849914902, -0.0002159006130392399, 0, 0, -0.0004753391459828818, 0, -0.0004557268087725886, 0.0003625714795935948, 0, 0, -0.00046934253069617, 0.001482074976041942, 0, 0, -6.246485911476739e-05, 0.0006197511774949764, 0, 0, 0.0005291375057499191, 0.001811277370933497, 0, 0, -0.000251463684539595, 0.0003647218287826905, 0, 0, -0.00032442822753098, 0.008879695687050524, 0, 0, 0.0002095073790056473, 0.001286106916419528, 0, 0, 0.003316247698205191, 0.001868766907544536, 0, 0, -0.0009064867939690254, -6.289037836985422e-05, 0.000116801339250223, 0.0005817873910002115, 0, 0, -0.0004317378022444221, 0.003432489374344434, -0.0008790418360227249, 0.001456067401118563, 8.891999216473525e-05, 0.000246647422399483, 0, 0, 0, 0.002353324402389184, 0, 0, 0, 0, 0, -0.0004816708203667504, 0, 0, 0, 0, 0, 0.0005288136498155091, 0, 0, 0, 0.0005183401916112455, -0.0006703698588571763, -0.0002763252466532651, -2.992403102921954e-05, 0.001095334115751643, 0, 0, 0, 0.001145794722112049, -0.0003978397558084178, -0.0004953502641970411, -0.0001049304671522831, 0.001116795384311774, 0, 0, 0, 0.00113992338296903, 0, 0, 0, 0.002121715232935706, 0, 0, 0, 0, 0, -0.0005056097778732027, 0, 0.001630175745346752, 0, 0.005957641231429225, 0, 0.002564929792739056, -0.001309906402417095, -0.000483219173206812, 0, 0, 0, 0, 0, 0, 0, 0.0008790466595663336, 0, 0.003547242719709221, 0, 0, 0, 0, -0.0008567939602030077, -0.0001547517035176911, 0, 0, -0.0009220552743975222, 0, 0, 0, -0.000624409975612866, 0.002543656756142583, 0, -0.0004780582892947462, 0, 0, 0, 0, -0.0003446552011669872, 0.000713508286506049, 0, 0, 0.000333324690501642, 0.0009309298456827793, 0, 0.006240501932570201, 0, 0.001105751986493601, 0, 0, 0, 0.0005431102649102487, 0, 0.0008188683761877446, -0.0005535329218846543, 0.0008259885125883971, 0, 0.0005037592164560795, -1.835854270367367e-05, 0.001023440203380021, 0, 0.003560756342014944, -0.0007074878200965966, 0.000864907039003376, 0, 0, 0.0001366822670473724, 0.001582580905874072, 0, 0.002009939296764808, 0.0003865646072311214, 0, -0.0008022744565057487, 0, 0.0001632846231533874, 0.001101093882966966, 0.0009836600790513049, 1.398142836853892e-05, -0.000374276171862653, 0, 0.001090262096296609, 0, 0.0001759454007802445, 0.001428484187277461, 0.0009458415932637716, 0.0004677293190348015, -1.742515794061892e-05, 0, -0.000343364609050618, 0, -0.0003360883810472326, 0.0009711315628411175, -0.0007338417623763982, 0, -0.000790314139660284, 0, 0.002384392712423223, 0, 9.287363993105999e-06, 0.008189467692436558, 0.0005459256059258664, -0.00051786086249799, -0.0003552316262792518, 0, -0.0004572245615290128, 0, 0.0001095514616914518, 0.0009859674542951899, 0, 0, -0.0007204364400038682, 0, 0.0001850400591086591, 0, -0.0001150445134624198, 0.0005181616065208171, -0.0002437024959346003, 0, -0.0005240347212904336, 0, 0.0005750370476711794, 0, -0.000614637991021733, 0.001275885379234661, -0.0002186738053273664, 0.0001359248737806769, -0.0005628950067992402, 0, -8.330462968408475e-05, 0, -0.0004761528023739025, 0.0006668078737590364, 0.0003572580400984975, 0, -0.0009001456906606895, -0.0002887659605542936, -0.0003515075237394754, 0.0004660212511978738, 0, 0, 0.002884480251599634, 0, 0, 0, 1.967507107508503e-05, 0.001771653557518016, 0, 0, 0.0005239154188415987, -0.0001882160496348641, -0.000687330590958533, 0.00166661365481144, -0.0006774512019157835, 2.551181828164668e-05, 0, 0, 0.004519848792368262, -0.0003359477889158661, 0, 0, 0.0004363189612620683, 0.001778564661499693, 0, 0, 0.001309672216024785, 0.0006387400933526047, -0.0008897036182301449, 0, -0.0005687562950168401, 0, 0, 0, -0.0006682742383678824, 0, 0, 0, -0.0007895223815884316, 0.0006628195359962189, 0, 0, 0.0003208173185581129, 0, -0.0007436005351330468, 0.0004782120703594316, -0.0002993695759214539, 3.039771926011296e-05, 0, 0, -0.0004796557737105838, 0, 0, 0, 6.468464286064302e-05, 0.001231496653325923, 0, 0, 0.001351524381337044, 0, -0.0003607182746953023, 8.342659088005351e-05, -3.792485417691867e-05, 8.817478793318804e-05, 0.0004880137981154884, 0.002484633514056119, 0, 0.001539689968499958, -0.0004282892981098389, -0.0003787189308900001, 0.0004008838190664932, 0.0003382436136607516, -0.0004369668631456094, 0.005731073223260426, -0.0007165090810477431, -6.266960112617123e-05, -0.001005195742726514, 0, -0.000181415913445249, 0.0005060823612388878, 0, 0, 0, 0.003441934923247753, -0.0009982404651869968, 0.0006026634813043485, -0.0002925558123018868, 0.002543357705137985, 0, 0, -0.0007424316702627211, 0, -0.0004905369333963455, 0.001149670303717321, 0.0005271261641667226, 0.00131379082929632, -0.0004323341899003385, 0.0009195897287224263, 0.0005409085001641943, 0.001096147558352679, -4.444355793990361e-05, 0.0009018695044673152, -8.348759645998456e-05, 0.001027546298176011, 0, 0.001191740669631401, 0.001692944189272718, 0.0009039104341932828, -0.0009256239077937749, 0, 0.001610759470532655, 0.0008078862658923336, -0.0005041237934756058, 0.0004427882565628611, 0, 0.0005004867514804085, -0.0006142319257543264, 0, 0.00138205603554294, -0.0006616966980226391, -0.0004361756037415079, 0, 0, 0, -0.0003100762260366763, 0.0005696936735416498, -0.0002918711983689358, 0.0004593402181207647, -0.000778661499824759, 0.0006116415209738039, 0.0006892953674784969, 0.0005878839074900504, -0.001060813685411268, 0.0005252972770325391, -0.001037450897828913, 0.001309701813685781, 0.003833236617364886, -0.0005249132206310229, 0.001447892532411102, 0.001158230973475296, 0, 0, 0, 0, -0.0007023432640979511, 0.004055782447849766, 0.0002341090218033136, 0.00190906921612172, 0, 0, 0, 0, -0.0006513892268303017, 0, 0.0004214039553883565, 0.00408685473834532, 0.0004032546202407829, 0, -0.0006407252348500854, -5.47490988155267e-05, 0.000542852879399722, 0, 0, 0.0004552664164403495, -0.0008495864871459278, 0, -0.0008037785404702064, 0.0007687984699275836, 0, 0, 0.002964992637824279, 0.001199003947783432, 0, 0, 0, 0, -4.492563327991082e-05, -0.0003359607325220134, -0.0002737350398622196, -0.0001896911528852687, 0, 0, 0, 0, 0, 0, 0.001367005591721463, 0.000830415177474601, -0.0005922975104928046, 0, -0.0002480988775373451, 0, 0, 0, 0, 0, 0, 0, 0.0006300483373515697, 0, 0, 0, 0, 0, -0.0004573144983907264, 0.001091286583576242, 0.0006781599344728608, 0, 5.220755221257915e-05, 0, 0.005911611998946679, 0, 0, 0, 4.770673375686409e-05, 0, 0, 0, -0.0005130205348262159, 0, -0.00041308456890122, 0.001909674138879147, 0.000383437532933237, 0.0004161818696863879, -0.0004896711466610244, 0, -0.0002900618477335762, 0, 0, 0, -0.0003307083655943042, 0.002626984287612892, 0, 0, 0.0002640217245480382, 0, 0.001570042096149993, 0.001160225995206928, 0.00121195767908835, 0.001103270466016039, 0.0004788168363280853, 0, -0.0002974760073579056, 0, 0, 0, 0.0008375239849161263, 0.001706877074256596, 0, 0, 0.0007901085765057678, 0, -0.0008387326569321425, -0.0004642837694419319, 2.181429570635729e-05, 0, 0, -0.0008061889169466293, 0, 0, -3.925903689521952e-05, 0.00136495183055822, 0.002242724811532508, 0, 0, 0.0006855129230870715, 0, 0, 0.0006705576703690303, 0, 0, 0, 0, 0, 0, 0, 0.0006912675860396959, 0.0005585556655232268, 0.0006990797894025085, 0.0004363114999228074, -5.988204721918203e-06, -0.0004875327988745257, 0, 0.000413904701489834, -0.0006541348408683491, 0.003226841606081217, -0.0009869128987286229, 0, 0, 0, 0, 0, -0.0004377378582959458, 0.001569843629875625, -7.432269969368904e-05, 0, 2.655706602049429e-05, 0.0002076499189021399, 0, 0, -0.001008540852362397, 0, 0, 0, 0, 0, 0, 0, 0.0001940196895036954, 0.00336833367407989, 0.0008940397976919873, 0.0004842171419448333, -0.0003707399394992528, -0.0001033286697848498, 0, 0, -0.0005139220607384141, 0.001775236067285709, -0.0005687552437221291, 0, -0.0002194256267725268, 0.0007155913442701823, 0.005479792935000214, 0.001186950352176549, -0.001132634030268097, 0, 0, 0, -0.000705799754490351, -0.0001586375554354446, -0.0004110954725492704, 0.001529213011242933, -0.0003766097537268949, 0, 0, 0, 8.527385754213993e-05, 0.0004972480261598167, 0, -0.0004786355054041181, 0, 0, 0, 0, -0.0004734754903939497, -0.0002957624214630304, 0, -0.0004087209808542659, -0.001300094971946572, 0.003741889257338882, 0, 0, 0.002202131882873028, 0.001439775380401392, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.003167897360479746, 0.001749597467107576, 0, 0, 0, 0, 0, 0, 0.0004739922980191623, 0.001468015654403102, 0, 0, -0.000622314904225307, 0, 0.0003134535719556414, -0.0003624597139854685, -0.0007929047594539491, 0, -2.367167995594775e-05, 0.0006747441463032731, -0.000114788188616411, 0, -0.0004223239573958123, 0, -0.000453759659388407, 0, -0.0001519841334618926, 0.004100217728614046, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -0.0006842704547596028, 0, 0.0002156382771227791, 0.000207984113747602, -0.0004700797825847387, 0, -2.130000782661794e-05, 0.001587087583474172, 0.0007358198907464121, 0, 0.001941534311444831, 0.0004553721207502129, 0, 0, 0.000561174267045249, 0.0008762647566410481, 0.001328211590084119, 0, -0.0007818994481840134, 0.0009873076954653806, -0.0007770184610725231, 0.0007511802721041597, -0.0002976638527397413, 0.001427583446161596, 0, 0, -0.001407053598288401, -0.000499720546954694, 0, 0, -0.0002820000580067373, 0, -0.0007121509139062339, 0.000545779281095246, 0.001638452947966536, 0, -0.0005993326630697737, 0, 0.001614248317967841, 0, 0.0002075824980779936, 0.0002121679715456194, 0.0002792272663735482, -0.000495972642936306, -0.0004638996061298007, 0, 0.0002652262481260234, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -0.0004849211793977274, -1.125866561964281e-05, -0.001124295734614309, -0.0006140674987412387, -0.0001820533274725534, -0.0006044343068696831, 0.005400193231371145, 0, -5.952932211337427e-05, 0.001460719425495643, 5.99519812220615e-05, 3.163632177783052e-05, 0.0002108827238377316, -0.0005727924288831483, 0.001059972699607035, 0, -0.0003312741266880956, 0.001352313815616286, 0, 0, -0.0007377622855610496, 0.003577101740925375, 0, 0, 0.0006293174032087056, 0.001665066137564511, 0.002578211126730629, 0.0004929500714340629, 0, 0, 0, 0, -0.0002954664654785278, 0.0005864951594561294, 0, 0.0004292170709723919, -0.0003678688386845924, 0.0007907772826995123, 0, 0.001410770032307654, 5.167076618149004e-05, 0.0001642540840871912, 0, 0.007099257722754547, -0.0001620825513834635, 0.001314893255463926, 0, 0.002565456540710643, 0.0002306712774533697, -7.503449526130569e-05, 0, 0.0004425928003907333, -0.000124808261503574, 0.0005913553847132798, 0, 0, 0.0005683253383494204, -0.0001263605406442943, 0, 0, 0.0006762044569247078, 0.000445064788991649, 0, 0, 0.002081016406742053, 0, 0, 0, 0.002276941158701923, 0, 0, 0, 0.0002745193509923116, 0, 0, 0, 0.003662801783120258, 0, 0, 0, 0.0003099890211700397, 0, 0, 0, 0.0008544658059229007, 0, 0, 0, -0.0004595678089089375, 0, 0, 0, -0.0002681262942474649, 0, 0, 0, -0.0005164660968982846, 0, -0.0002373327515847143, 0, -0.0009331602091881144, 0, -0.0006924634468301878, 0, -0.001022379356392579, -0.0005964951120262703, 0.0003827667300133501, 0.003236939617934735, 0, 0.0004543071689330743, -0.0002757331170716728, 0, 0.0001046403722499957, 3.910978939640275e-05, 0.0007461238688411341, 0.0006885325537591038, -0.0003514871762202412, 0, -0.0004274930061124242, 0, 0.001262710308043749, 0.001016177180217889, 0.0009849488025742603, 0.005433817975342444, 0.0001108466517519861, 0, -0.0004484491192819035, 0, 0.004314607478882627, 0, 0.002868688759800591, 0, 8.004071405398389e-06, 0, -0.0004528168820165058, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.0006568356507558093, 0, 0.0004801916916196813, 0, 0.0001868232974729486, 0, 0.001517376569213835, 0, 0, 0, -0.0006342705971868537, 0, 0, 0, -0.0002696963169297153, 0, -0.0005490173569461329, -0.0001340495986542373, 0.0001213378867074721, 0.001385420315328806, 0, 0.003212662571342859, 0, 0.001004435995980675, -0.0006514345221694063, 0.0004743332878228256, -0.000310072754311124, 0.00118507695410458, 0, 0, 0, 0.0003972999755034745, 0, 0, -8.884719077989255e-05, 0, 0, 0, 0, 0, -0.0004494207554772914, 0, 0.0008696431996384465, 0, 0, 0, 0, 0, -0.0003075955366866102, -0.0003189384833181915, 0.0002288081633146235, -0.0008653145118880545, 0, 0.003542191774869639, 0, 0, -0.000601992412989241, 0, -0.0002451877797700906, 0, 0, 0, 0, 0, 0.002223659505501968, 0, 0.004457345773998951, 0, 0, 0, 0, 0, 0.0003898688372761953, 0, 0.0009113323558796048, 0, 0, 0, 0, 0, -0.0009298210936643685, 0, 0, 0, 0.0001918506870822903, 0.001174761782469818, 0, 0, 0.0006125696462225585, -0.0006156726296602181, 0, 0, 0, 0, 0, 0, -0.0007610297484814893, 0, 0, 0, 0.0005594831841794762, 0.001086946744903949, 0, 0, -0.0002938202678815602, 0, 0, 0, 0, 0, 0, 0, -2.63091358902451e-05, -0.0002674717551010742, -0.0005404558560990199, 0, 3.818680382773025e-05, 0.002440858092546885, 0, 0, -0.0004170517139701833, -0.0007800662685253654, 0.004934259806461191, 0, -0.0005272982156458914, 0.003515625337151924, 0, 0, 0.000150587100402028, -0.0006475498690433246, -6.016406895805747e-07, 0, 0.0006473780236736808, 0.0008173536257096155, 0, 0, 0.0006154896162386124, 0, 0.001021397324993505, 0, 0, 0, 0, 0, -0.0003564239863574717, 0, -0.0005877639344017601, -0.0003811996155322642, -0.0003900110459469533, 0, -0.0002907570941250383, 0, -0.0006006553018258077, 0, -0.000283577328365979, 0, -0.0001307989646531506, 0.000675198928393724, 1.104233521540729e-06, 0, 0, -0.0005187609670918384, 0, 0, 0.0006689918457123774, -0.0003599038145766204, -3.375269414606901e-05, 0.006829657202815936, -0.0006188722928075964, -0.0008483284527585267, 0.0007393156859175925, 0.003581893815559212, 0.0005541668542417684, 0.001461992489605764, 0.00082729471351968, 0.002276291049118271, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.002663000588130968, 0, 0.003814515035982651, 0, 0, 0, 0, 0, 0, 0, 0, 0, -0.000572435684179715, 0, 0, 0, 0.0006554829023213472, 0, -0.0004940502778910688, 0, -0.0003267745820650328, 0.0005061486131920225, -0.0006151674680893025, 0.0006999933772083161, -0.0003783406184796758, 0, -0.0003730021806642698, 0, 0.0001259916804019506, 0, 0.001797643619101716, 0, 0, 0, 0, 0, -0.000454927157795191, 0, 0.0001365473147184122, 0.0008297204915911099, 0, 0, 0, 0.0004239719385283957, 0.0003529897406152163, 0, 0.0005877473418613826, 0, 0, 0, 0, 0, 4.617635398262631e-05, 0.0001268717288902811, 0.0001519364689357805, 0.0008704841129007411, 0, -0.0006643455402924513, 0, 0.003112594298011938, 0.0004387517001378052, -0.0003374664051804209, 0.0003011028935926374, -0.0005781299826153703, 0, 0.001916803730313133, 0, 0.0004996671530416345, -0.0002134592950447389, 0.0009425299330270606, 0.0018344168117877, 0.0004919047643965695, 0, 0.005476842504188078, 0, 0.0009918242109488592, -0.0001563250074356722, 0.0005490852136023757, 0.0009435446389567662, 0.0006923468696776089, 0, 0.0004466933583437723, 0, 0.0006369016091912105, -0.0005282870613335487, 0.001164750535880678, -0.0006500975831864442, 0, -0.0003211551204138777, 0.0005073961848738282, -0.0006295947814313941, 0.0002488064575398137, -0.001152510224490547, -0.0003736621141331776, 0, 0, -0.0005285520018591814, 0.00153065609810009, 0.00154354034014039, 0.0006972519686044536, 3.08337813351038e-05, 4.513487173893473e-05, 0.0001397077526529754, 0, 0.0008559301837598657, 0.001046030219598251, -0.0008190859123006262, 0.0005705770105138656, 0.00176026098265257, 0, 0.001080942098513618, 0, -0.0001587238537807499, 0.0007816692426686664, -0.0004338588575163995, 0.0006691116691897825, 0.001067148026708977, 0.0005716566605524993, 0, 0, 0.0003065614874568282, 0.001130292401740543, -0.0007031955874265024, 0.0003808231333064229, 0.000552893851487825, 0, 0, 0, 0, 0.0001245824883600074, 0, -0.0005588373145581342, 0.0001087599119672953, 0.0003544213616152003, -0.0002547337175303834, 0, -0.0001130783214176591, 0.001235597718790671, -0.0006035464145972088, -0.0004370510152119622, -0.0007705729055050389, -0.0006540913947198707, 0, 0, 0.001093292360008058, 0.001997031967964288, -0.0001522603513047267, 0.001083159594598593, -0.0005212883554332246, 0, -0.0005457506879040557, 0, 0.0002674765091751264, 0, 0, 0, -0.0007045391883735327, 0, 0, 0, -0.0002274488269852339, 0.0006762459961299487, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -0.0003494179056361881, 0.001743523501035028, 0.003794356117983103, 0, -4.506726852210933e-05, 0.001310141360035129, 0.0001767868159900574, 0, 0.0002954900302020207, 0.0007195148749204074, 0, 0, 0.002178761334721822, 0.0008786159966304981, 0, 0, 7.708171176717179e-05, 0.0004031017552062904, 0.001092522840136322, -0.0004003610819198207, -0.0003404918119365091, 0.0007308747937094636, -0.0007581476516083152, -0.0002527545377436355, 0.0003363710204594922, 0.001684596369058767, 0, 8.771696968696337e-05, 0.0008897924014884419, 0.001408073519623692, 0, 0.0002117706211589884, -0.0006489279187611513, -0.0006496790457515377, -8.19825080629857e-05, 0.0002804007764078078, 2.161815475317778e-05, 0, -0.0002268126265638601, 0.0002824219052038137, 0, -0.0007675136187038781, 0.0009025345903105603, 4.717121651475738e-05, 0, 0, 0, 0.0002292485613595359, -0.0005062216632379406, 0, -0.0002380613551378201, 0.0008127284971336846, 0.0006887688189069004, 0.0004668110823582373, -0.000231675859922827, 0.000777332392265498, 0, 0, -0.0006518092457060098, 0.001352495779847311, 0, 0, 0, 0.0009186396322635862, -0.0006217921191886096, 0.0006482066252931012, 0.0002279883658830245, 0.0005261735323241207, -0.0005481730391160244, 0.0002187817437202093, -0.0002670045935624739, 0.0004957964923713062, 0, -0.0008581990322169832, 0.0007631848214097291, -0.0003192906942932084, 0, 0.00515198080105444, 0, 0.003985630503046841, 0.0009989950452279036, -0.0004553944350423184, -1.343000898998412e-05, 0.001582895324361249, 0, 0.0004487144391311561, 0.0005630409334113288, 0.0001525096336135096, 0, 0, -0.0004984969843695291, 0.001042742218003058, 0, -0.0006629163943397248, 0, 0.0005974963428309149, 0.0002170516517067603, 0.0007876691162149943, 0, 0, 0, 0, 0, 0, -0.001227363843474566, -0.0001959653515594488, 0, 0, 0, 0, 0, 0, -0.0002738808046290202, 0.0008760049422652747, -0.0002435244701737321, 0, 0, 0, 0, 0, -0.0002081103897847562, 0.0004923749999335665, -0.0007524813141046461, 8.630338282124273e-05, 0, 0, 0, 0, -0.0001624026256651176, 0.001179731392183913, -0.0006670678980145242, 0, -0.0005047805703074567, 0.0006101444780928422, 0.00453947875577079, 0, -0.0002037045197158563, 0.0001131818975487894, -0.0008240513885296781, 0, -0.0007522565669970368, -0.0003854408539137314, 0.0006645940830078677, 0, 0.000463350318690323, 0.001203692749810378, 0.0007373113971671686, -0.0004540528115840883, 0.001547257736448999, 0.003321969206038651, 0.0003546746628225741, 0, -0.000149590475343146, 0.0005052568723440818, 0.001794912678994772, 0, 0.0003455629400171498, 0, 0, 0, -0.0007178045831724404, 0.0004981141330407629, -0.0007413049323460104, 0.0007176546558266867, 0, 0.0006719808420729147, 0, 0.0006401913796706865, -8.648541259663579e-05, 0.0005647415188083905, 0.0002431695626356949, 0.0001718953718876683, 0, 0.0006381675699296855, -0.0003759369360740713, 0.008359108087644859, 0, 0, 0, 0, 0, 0, 0, 0, -0.0004908405536888504, 0, 0.0005578160467455592, 0, 0, 0, 0, 0, 0, 0.000316895437906948, 0.0001646367805070749, 0.0003056773486273509, 0, 0, 0, 0, -0.0004625278811514009, 0.0003812279482689163, 0.0001159732456521491, 0, 0, 0, 0, 0, 0, 0, 0.0006562265859483474, 0, 0, 0, 0, 0, 0, 0, -0.0004460578265720108, 0, 0, 0.0004099122607782437, 0, 0, -0.0001492009029290907, -0.00102239269719246, 0, 0.0002044452526835818, -0.0004545848407270164, 0.0005075177602549989, 0, 0.001156840928155775, 0.0008300127274579861, -0.0008800641041021749, 0, 0.0003215921067677863, 0.001155386645134764, -0.001162004333830272, 0, 0.001529548718265837, -0.0009069117477607764, -0.001212147995933681, 0, -0.0003730627555454459, -0.0008913310084429557, 8.656304142661673e-05, -0.0003834198468969425, -0.0003552160191481757, -0.0007149363131029685, -0.000823902034391087, 0.0006513048866637434, -0.001260553662433046, 0.0003785527225481859, -0.0007151696065013957, 0.0006575345050523648, 0.0004538570028157858, -0.0003544467984384763, 0, 0, 0, -4.943593271473418e-05, 3.954479014106659e-06, 0.0006783441752209699, 0.0017957794504069, 0, 0, 0, 0.0008965856659345148, 0, 0, 0, 0.001085454369968988, 0, 0, 0, 0.001308680832429898, -0.0004740393752326749, 0, 0, 0, 0, 0, 0, 0.0007842538652205567, 0, 0, 0, 0, -0.0003990439790792018, -0.0004821798621621384, -0.0001610181462574562, 0.0001812106301363981, -0.0004842377701748443, 0, -0.000313526598776884, 0.0004019064102134589, 0.0001398245991767389, -0.0007298768234984797, 0.0002712268035926581, 0, -0.0003941612738160007, 0.007523308813294868, -0.0001727919708742731, -0.0009198036745743803, -0.0003822364643729187, 0, 0.0008166578112086133, 0, 0.0002863703775662639, 0, 0.001259227691181283, 0, -0.0004534517794160874, 0, 0.0005106077299911373, 0, 0.0009571485105116197, 0, 9.820775528159011e-05, 0, 0.0003349416146725067, 0.0003247936514508687, 0.0006054085177667196, 0.0007588970077844595, -0.0002091979780888813, 0, -0.0001336568646210719, 0, -0.0002805793407344189, 0.002838169782467469, 0.001382679845247175, 0.00259482323628804, -0.0003246220769437881, 0, 4.681568791377165e-05, 0.0005197850405744152, -0.0006203826967449353, 0, 5.013671940523663e-05, 0, -0.0003771225364869941, 0, -0.0003776715590948656, 0, 0.001254260438740283, 0, -2.365777722300138e-05, 0, -0.0003279144903418348, 0, 0.0002952192710481339, 0, 0.001950926019104994, 0, -0.0004391774904989133, 0, 0.002363808193670278, 0.0003167381924902551, -0.0001383792491355885, 0.0007493790789657993, -9.70890722003898e-05, 0, -0.0007946085354110022, 0, -0.0003345984748509313, 0, -0.0001347184630481842, 0.003882936652888907, 0.0005369145169917057, 0, -0.0005214826386612436, 0.001213626075023118, -0.0009913315473734105, 0.0009220740168859722, 0.0005636825495963616, 0.0003023144047971629, -0.0005450454563014517, 0, -0.0006339723495278656, -0.0003792482583569007, 0.002010136166101576, 0, 0.002725946089059442, 0, 0, 0, -4.82901356976868e-05, 0, 0.0004408673298967711, -0.0007823578545713906, -0.0002728427067274949, 0.0005466275895905316, 0, 0, -0.0007223512565759855, 0, 0, 0, 3.405200399439516e-05, 0, 0, 0, 0.001045376630608383, 0.0009707414832563971, 0, 0, 0.0002712607141750527, 0.001084054353192081, 0, 0, -0.0005581563941268185, 0, 0, 0, -0.0003903918401243576, 0, -0.0006196315075538793, -0.0006910808662165247, -0.0001224844696092987, 0.0004372800138754034, 0, 0, 0, 0.0002643545500720938, -0.0009016923513010417, -0.000502039427749442, -0.0002501073088144953, -2.636440591673881e-05, 0, 0, 0, 0.0002889054197344695, -0.0004448019513303728, -0.000149423189539613, -0.0006597652095123425, 0.001021912159850919, 0, 0.0002102371002153657, 0, -0.0002348707332558688, 0, -0.0001874366538054503, 0.00152545293901053, 0.0001003363571303032, 0, 0.0008885366086245015, 0, 0.007383229179610353, -0.0006537754648640992, 0.0008824374100991473, 0.000189756051287432, 0.001433249544531068, 0, 0.0004721834240045291, 0, -0.000826918112725304, -0.0007066478084070252, -0.0003706131212316381, -0.0001005326458544585, 0.0003884941284693943, 0, 0, 0, -0.0006042728820981026, -0.000331348575189331, 0.0003059213717272676, -0.000890828175888655, 0.001015675831128037, 0, 0.0008480768642623447, 0, 0.0002671648727907882, 0.0006122201642172175, 0.0002548830621356045, -0.0005276261756635031, 0.0006063373753815434, 0, 0.0006489374277132869, 0, -0.000421531151114674, -0.0003028029447608651, 0, 0.0005671044360817967, 0.006326465553354869, -0.0002549711739616011, -0.0003573557494494941, 0.0006819780034247841, 0.001454577563701034, 0.0006978168232710413, 0, 0, 0, 0.000634914215912555, 0, 0.0005663694569396666, 0, -0.0003538570653655576, 0, -7.076106198656742e-06, 0, -0.0003793820376887636, 0, -0.0005412562390712661, 0.0003947730348052385, 0, 0, 0, 0, -0.0005155821699022753, 0, 0, 0, 0.0009927257619761528, 0, -0.000777280663870836, 0.0001042517826894126, 0.0006899901350452442, 0, 0.0005379696905653081, 0.0003411723466078882, 0, 0, 0, 0, -0.0004190607392562176, 0, 0, 0, 0, 0, 0, 0, 0.0006604985196359605, 0, 0.0002044225907176652, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -0.0004790298681194371, -6.084865826307465e-05, 0, 0, 0, -0.0002985383587053768, -0.0006219172558178527, -0.0009571965072128961, 0.0002658954599601075, 0.0008785582417795095, 0, 0.0003320327359693916, 0, 0.0007188922001779683, 0, 0, -0.0005577359513191936, -4.22211306120087e-05, 0, 0, 0, 0.005744979510954894, -0.0008207710558717742, -0.001142843563589792, -0.0009091361688109104, 0.0002567476460294396, 0, 0.0005901896568524734, 0, 0.0003801276698525161, 0, 0, -0.000274992120253715, 0.001769636848654943, 0, 0, 0, -0.0005668374388053646, -0.0004005890778079432, -0.0003714104902645104, 0.0001813038235686789, 0.001905230460963107, 0, 0, 0, 0.0007816327419452349, 0, 0, -0.0007403123384074313, 0.0002046207893103826, 0, 0, 0.0003918122371103782, -0.0006037756081727216, 0.0004227607285998697, 0.0004135684627064461, -7.490850316681599e-05, 0.0001919459138017029, 0, -0.0003462981641958502, 0, 0.0005809499545792391, -0.0003182639234446333, 0, 0, -0.0006439838281657654, -9.494123887528625e-05, 0, -0.0006842956041700521, 0.002735136248791789, 0, 0, 0, 0, 0, 0, 0, 0, -8.765859462163949e-07, 0.005565822262220705, 0, 0, 0.0003858611934078806, 0, 3.896566534528896e-05, 0.0005065105476583948, 0.0006932240681061522, 0.0002140379785965487, 0, 0, -0.000207483518248694, 0.0001057089319769625, 0, 0.0003408525917057664, -0.0003260785896606366, 0, 0, 0, -0.0001316860150293959, 0, 0.002705962304439181, 0, 0, 0, 0, 0, 0, 0, 0, 0, -0.0002488975340399148, 0.002903603485576867, 0, -0.0009693606834261898, 0.0006487094220706277, 0.0002286173899828995, 0.0005494269090367431, 0.0003855587781572249, 0.0003870529225646728, 0, 0, 0, 0, 0, 0, 0, -5.914629769825754e-05, -0.0005467523423352674, 0, 0, -0.0008513663318191743, -0.000614287409260388, 0.001767711873079536, 0.001235741821954771, -0.0009429718581874365, -0.00045386011948859, 0, 0, 0, 0, 0, 0, -0.001024242660951422, -0.0001759683617931722, 0, 0, -0.0006710675856555387, -0.0008938056615604784, 0, 0, 0.0006883566792430163, -0.0008360598211957873, 0, 0, 0, 0, 0, 0, -0.0002392374126647858, 0.0004806332682152521, -0.001155015825976419, 0.0003882085323759743, -0.0005728430790727283, 0.0005458730236805303, 0.004512295579590315, 0.0006112723535823212, -2.94945851289714e-05, 0.001163856715909844, -0.0004323706494783549, 0, -0.0008736287787364131, 0.00242202187119025, 0, 0, -0.0001007143929565747, 4.688255259934234e-05, 0, -0.0002754882566175649, 0.0007879244202505447, 0.0001822096387112598, 0, 0, 0.0005739455927955991, 0.0009693967008349033, 0, 4.086877401605567e-05, 0.0001044315758125341, 0.002907775779334374, 0, 0, 0, 0, 0, 0, 0.001771328915377654, 0, -0.0001007219900669079, 0, 0.0006319104299630602, 0, -0.0005173571047440836, 0.0002446014639993832, -0.0001139898416681879, 0.0007350425942402013, -8.043788126631233e-05, 0.002171037291017734, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.0002186169021259087, 0.0003009141470916593, -0.0001431914528465128, 0.0005679099332130239, 0.0003078136225201359, 0.004961537213062171, 0.00483771823107261, 0, 0, 0, 0, 0.003914938106033923, 0, 0.001728321204643142, 0, 0, 0, 0, 0, -4.300248158907024e-05, 0.0001307406857818204, -9.059367360635358e-05, 0.003065354677328261, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.0003401921548586373, 0, -0.0003449198029973474, 0, -0.0002178882251001709, 0.0008243863670617161, -0.0007575799171595997, -0.0006337646686780659, -0.0005748483118481625, 0, 0, 0, -0.0004277301005829455, -0.0002743954119729782, -0.0009160066759920216, 0, 0, 0, 0, 0, 0.0006304646283294304, 0.000638115377111812, -0.0006605611919280644, 0.0009593354840779701, 0, 0, 0, 0, -0.0008903084074489298, 0, -0.0005372884568307658, 0, 0, 0, 0, 0, 2.150196152513088e-05, 0.0007776101381981827, -0.0001711685514697422, -0.0002229922709993225, -0.0009520258388259406, 0, -7.056861560987551e-05, 0, -0.0002752557886519012, 0.004408171398760844, -0.0001405285219829221, 0, 0.004682814486391671, 0, 0, 0, 0.0001204471272110709, 0.000698671873143744, -0.0006103476220301672, -0.000214438262646315, 4.74931585642979e-05, 0, 0.001002780171725195, 6.968070654529998e-05, -0.0004074984376355384, 0, -0.0004313439368570032, 0, 0.000424210449110337, 0, 0, 0 ] cat_features_hashes = { } def hash_uint64(string): return cat_features_hashes.get(str(string), 0x7fFFffFF) ### Applicator for the CatBoost model def apply_catboost_model(float_features, cat_features=[], ntree_start=0, ntree_end=catboost_model.tree_count): """ Applies the model built by CatBoost. Parameters ---------- float_features : list of float features cat_features : list of categorical features You need to pass float and categorical features separately in the same order they appeared in train dataset. For example if you had features f1,f2,f3,f4, where f2 and f4 were considered categorical, you need to pass here float_features=f1,f3, cat_features=f2,f4 Returns ------- prediction : formula value for the model and the features """ if ntree_end == 0: ntree_end = catboost_model.tree_count else: ntree_end = min(ntree_end, catboost_model.tree_count) model = catboost_model assert len(float_features) >= model.float_feature_count assert len(cat_features) >= model.cat_feature_count # Binarise features binary_features = [0] * model.binary_feature_count binary_feature_index = 0 for i in range(len(model.float_feature_borders)): for border in model.float_feature_borders[i]: binary_features[binary_feature_index] += 1 if (float_features[model.float_features_index[i]] > border) else 0 binary_feature_index += 1 transposed_hash = [0] * model.cat_feature_count for i in range(model.cat_feature_count): transposed_hash[i] = hash_uint64(cat_features[i]) if len(model.one_hot_cat_feature_index) > 0: cat_feature_packed_indexes = {} for i in range(model.cat_feature_count): cat_feature_packed_indexes[model.cat_features_index[i]] = i for i in range(len(model.one_hot_cat_feature_index)): cat_idx = cat_feature_packed_indexes[model.one_hot_cat_feature_index[i]] hash = transposed_hash[cat_idx] for border_idx in range(len(model.one_hot_hash_values[i])): binary_features[binary_feature_index] |= (1 if hash == model.one_hot_hash_values[i][border_idx] else 0) * (border_idx + 1) binary_feature_index += 1 if hasattr(model, 'model_ctrs') and model.model_ctrs.used_model_ctrs_count > 0: ctrs = [0.] * model.model_ctrs.used_model_ctrs_count; calc_ctrs(model.model_ctrs, binary_features, transposed_hash, ctrs) for i in range(len(model.ctr_feature_borders)): for border in model.ctr_feature_borders[i]: binary_features[binary_feature_index] += 1 if ctrs[i] > border else 0 binary_feature_index += 1 # Extract and sum values from trees result = 0. tree_splits_index = 0 current_tree_leaf_values_index = 0 for tree_id in range(ntree_start, ntree_end): current_tree_depth = model.tree_depth[tree_id] index = 0 for depth in range(current_tree_depth): border_val = model.tree_split_border[tree_splits_index + depth] feature_index = model.tree_split_feature_index[tree_splits_index + depth] xor_mask = model.tree_split_xor_mask[tree_splits_index + depth] index |= ((binary_features[feature_index] ^ xor_mask) >= border_val) << depth result += model.leaf_values[current_tree_leaf_values_index + index] tree_splits_index += current_tree_depth current_tree_leaf_values_index += (1 << current_tree_depth) return result
247.351351
1,342
0.753584
5,830
45,760
5.87976
0.297599
0.078357
0.074477
0.072231
0.055019
0.043992
0.03384
0.022609
0.016074
0.015811
0
0.774934
0.110402
45,760
184
1,343
248.695652
0.067137
0.014816
0
0.123288
0
0
0.000222
0
0
0
0.000222
0
0.013699
1
0.013699
false
0
0
0.006849
0.136986
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
1
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
7bec5b5a875f97df811654025bf49d39b4b6507c
81
py
Python
apps/edu/apps.py
local-host-club/cms
136fb075f11011ea77672b3468f69262a43eb500
[ "MIT" ]
null
null
null
apps/edu/apps.py
local-host-club/cms
136fb075f11011ea77672b3468f69262a43eb500
[ "MIT" ]
null
null
null
apps/edu/apps.py
local-host-club/cms
136fb075f11011ea77672b3468f69262a43eb500
[ "MIT" ]
null
null
null
from django.apps import AppConfig class CnbConfig(AppConfig): name = 'edu'
13.5
33
0.728395
10
81
5.9
0.9
0
0
0
0
0
0
0
0
0
0
0
0.185185
81
5
34
16.2
0.893939
0
0
0
0
0
0.037037
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
d022e34598be0e881fe3584837b00d26acd1951a
131
py
Python
Aulas/exercicio03.py
GabrielGustavoMS/programacaoDeComputadores
4eb3735b2393f241da78e2b259fde30ff2566a4c
[ "MIT" ]
null
null
null
Aulas/exercicio03.py
GabrielGustavoMS/programacaoDeComputadores
4eb3735b2393f241da78e2b259fde30ff2566a4c
[ "MIT" ]
null
null
null
Aulas/exercicio03.py
GabrielGustavoMS/programacaoDeComputadores
4eb3735b2393f241da78e2b259fde30ff2566a4c
[ "MIT" ]
null
null
null
h =float(input("Digite sua altura: ")) p = float(input("Digite seu peso: ")) imc = p/(h*h) print("seu imc é", imc)
14.555556
41
0.541985
21
131
3.380952
0.571429
0.28169
0.450704
0
0
0
0
0
0
0
0
0
0.259542
131
8
42
16.375
0.731959
0
0
0
0
0
0.398374
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
d0446c6fd04898362ed4c8cce879d03bce7c2ec1
372
py
Python
Mycroft/mircette-restriction-skill/__init__.py
wyutong1997/SmartMedicineDispenser
5033b355f4a1fec688a1bd5dd6987611afb8feaa
[ "MIT" ]
5
2020-03-22T22:49:24.000Z
2020-04-08T14:56:23.000Z
Mycroft/mircette-restriction-skill/__init__.py
mcboyd-bu/EC544-Smart-Pill-Dispenser
f1267c5ba2b11c6e0c61ccf3d050dc63cff48091
[ "MIT" ]
1
2021-09-12T21:01:09.000Z
2021-09-12T21:01:09.000Z
Mycroft/mircette-restriction-skill/__init__.py
wyutong1997/SmartMedicineDispenser
5033b355f4a1fec688a1bd5dd6987611afb8feaa
[ "MIT" ]
2
2020-03-28T16:30:23.000Z
2020-04-14T00:03:46.000Z
from mycroft import MycroftSkill, intent_file_handler class MircetteRestriction(MycroftSkill): def __init__(self): MycroftSkill.__init__(self) @intent_file_handler('restriction.mircette.intent') def handle_restriction_mircette(self, message): self.speak_dialog('restriction.mircette') def create_skill(): return MircetteRestriction()
23.25
55
0.760753
38
372
7.026316
0.552632
0.213483
0.127341
0
0
0
0
0
0
0
0
0
0.153226
372
15
56
24.8
0.847619
0
0
0
0
0
0.126685
0.072776
0
0
0
0
0
1
0.333333
false
0
0.111111
0.111111
0.666667
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
d048bcfb1b4bdbfb005a15c0dd5b83a1fa221535
329
py
Python
shared/skep/docker/stack.py
bobf/skep
4b77ff9c3d4e49dd29f430e9e1354d589cc12cf0
[ "MIT" ]
33
2019-07-16T10:03:20.000Z
2021-11-06T23:56:07.000Z
shared/skep/docker/stack.py
bobf/skep
4b77ff9c3d4e49dd29f430e9e1354d589cc12cf0
[ "MIT" ]
42
2019-05-26T16:15:37.000Z
2022-02-26T10:45:38.000Z
shared/skep/docker/stack.py
bobf/skep
4b77ff9c3d4e49dd29f430e9e1354d589cc12cf0
[ "MIT" ]
7
2019-09-02T02:30:35.000Z
2021-01-09T14:13:58.000Z
class Stack: def __init__(self, name, service_list): self.name = name self.service_list = service_list def services(self): return [x.attrs() for x in self.service_list] def serializable(self): return { "name": self.name, "services": self.services() }
23.5
53
0.568389
38
329
4.710526
0.394737
0.24581
0.167598
0
0
0
0
0
0
0
0
0
0.325228
329
13
54
25.307692
0.806306
0
0
0
0
0
0.036474
0
0
0
0
0
0
1
0.272727
false
0
0
0.181818
0.545455
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
d062c3a2dc7737624351c2f374cd36f8bcf2130b
68
py
Python
src/onapsdk/clamp/__init__.py
krasm/python-onapsdk
87cd3017fc542a8afd3be51fbd89934ed87ed3a7
[ "Apache-2.0" ]
4
2020-06-13T04:51:27.000Z
2021-01-06T15:00:51.000Z
src/onapsdk/clamp/__init__.py
krasm/python-onapsdk
87cd3017fc542a8afd3be51fbd89934ed87ed3a7
[ "Apache-2.0" ]
10
2021-09-20T15:42:47.000Z
2021-09-23T12:49:51.000Z
src/onapsdk/clamp/__init__.py
krasm/python-onapsdk
87cd3017fc542a8afd3be51fbd89934ed87ed3a7
[ "Apache-2.0" ]
8
2020-08-28T10:56:02.000Z
2022-02-11T17:06:03.000Z
# SPDX-License-Identifier: Apache-2.0 """ONAP SDK CLAMP package."""
22.666667
37
0.705882
10
68
4.8
1
0
0
0
0
0
0
0
0
0
0
0.032787
0.102941
68
2
38
34
0.754098
0.882353
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
d07105f4cd9a6df63a776e59d9aa591aee5c80eb
903
py
Python
app.py
Bharath-Gowda-P/Weather-App
7f63c692120f0c0eaf3c1d6e2c24e12d8714b20a
[ "MIT" ]
1
2021-09-18T16:14:16.000Z
2021-09-18T16:14:16.000Z
app.py
Bharath-Gowda-P/Weather-App
7f63c692120f0c0eaf3c1d6e2c24e12d8714b20a
[ "MIT" ]
null
null
null
app.py
Bharath-Gowda-P/Weather-App
7f63c692120f0c0eaf3c1d6e2c24e12d8714b20a
[ "MIT" ]
null
null
null
from flask import Flask, render_template, request import requests app = Flask(__name__) @app.route('/', methods=["POST", "GET"]) def search(): url = '' //api key city = request.form.get('city') r = requests.get(url.format(city)).json() weather = { 'city': city, 'description': r['weather'][0]['description'], 'temp': r['main']['temp'], 'humidity': r['main']['humidity'], 'country': r['sys']['country'] } return render_template('search.html', weather=weather) if __name__ == '__main__': app.run(debug=False) """ This is a comment written in a a a a a a a a aaa aa a This comment is used to ignore the html file for github tags so yeah a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a aa a a a a more than just one line """
5.901961
60
0.560354
158
903
3.113924
0.379747
0.235772
0.335366
0.422764
0.115854
0.115854
0.115854
0.115854
0.099594
0.099594
0
0.001587
0.302326
903
152
61
5.940789
0.779365
0
0
0
0
0
0.178797
0
0
0
0
0
0
0
null
null
0
0.111111
null
null
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
1
0
0
0
0
0
0
0
0
4
d08366c41b8b25ee12a34e5c205aba17e95683e2
106
py
Python
manpower_reports/apps.py
hisham2k9/IMS-and-CAPA
9f70988a6411c72ab4f0cbc818b84db58a28076f
[ "MIT" ]
null
null
null
manpower_reports/apps.py
hisham2k9/IMS-and-CAPA
9f70988a6411c72ab4f0cbc818b84db58a28076f
[ "MIT" ]
15
2021-03-19T03:43:56.000Z
2022-03-12T00:30:55.000Z
manpower_reports/apps.py
hisham2k9/IMS-and-CAPA
9f70988a6411c72ab4f0cbc818b84db58a28076f
[ "MIT" ]
null
null
null
from django.apps import AppConfig class ManpowerReportsConfig(AppConfig): name = 'manpower_reports'
17.666667
39
0.792453
11
106
7.545455
0.909091
0
0
0
0
0
0
0
0
0
0
0
0.141509
106
5
40
21.2
0.912088
0
0
0
0
0
0.150943
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
d0ac275005698e74eb9d547ddb568a8ba7c1253d
171
py
Python
Trab002/trabalho.py
gustavodiel/PIM
9e001887bc67943f7f7d210d87dda49768bc00e7
[ "MIT" ]
null
null
null
Trab002/trabalho.py
gustavodiel/PIM
9e001887bc67943f7f7d210d87dda49768bc00e7
[ "MIT" ]
null
null
null
Trab002/trabalho.py
gustavodiel/PIM
9e001887bc67943f7f7d210d87dda49768bc00e7
[ "MIT" ]
null
null
null
from numpy import * x,y,z = mgrid[-100:101:25., -100:101:25., -100:101:25.] V = 2*x**2 + 3*y**2 - 4*z # just a random function for the potential Ex,Ey,Ez = gradient(V)
21.375
68
0.614035
37
171
2.837838
0.675676
0.171429
0.228571
0.209524
0.228571
0.228571
0
0
0
0
0
0.205674
0.175439
171
7
69
24.428571
0.539007
0.233918
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
ef6c20345d49e67c8547f7cb3de99341446ce8fd
71
py
Python
mtml/toy/avimadsen.py
crb479/mcdevitt-trauma-ml
9ed7ed7cd1e4be0071a18f9bbf375414088d5ed2
[ "MIT" ]
5
2020-03-02T23:38:36.000Z
2021-01-22T04:00:23.000Z
mtml/toy/avimadsen.py
crb479/mcdevitt-trauma-ml
9ed7ed7cd1e4be0071a18f9bbf375414088d5ed2
[ "MIT" ]
null
null
null
mtml/toy/avimadsen.py
crb479/mcdevitt-trauma-ml
9ed7ed7cd1e4be0071a18f9bbf375414088d5ed2
[ "MIT" ]
null
null
null
def add_user_tag(fctn): fctn.__user_tag__ = 'avimadsen'; return fctn
17.75
33
0.760563
11
71
4.272727
0.636364
0.297872
0
0
0
0
0
0
0
0
0
0
0.126761
71
4
34
17.75
0.758065
0
0
0
0
0
0.125
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
0
0
0
4
efa1b631ea9fde7b8edc5636beee8ddf979c7969
76
py
Python
23 Recursion/main.py
codewithsandy/Python-Basic-Exp
4c70ada4a042923a94301453c7bd76e704cd2989
[ "MIT" ]
3
2021-05-08T13:11:41.000Z
2021-05-14T02:43:20.000Z
23 Recursion/main.py
codewithsandy/Python-Basic-Exp
4c70ada4a042923a94301453c7bd76e704cd2989
[ "MIT" ]
null
null
null
23 Recursion/main.py
codewithsandy/Python-Basic-Exp
4c70ada4a042923a94301453c7bd76e704cd2989
[ "MIT" ]
null
null
null
def fun1(str1): fun1(str1) print("This is " + str1) fun1("Issue")
10.857143
28
0.565789
11
76
3.909091
0.636364
0.372093
0
0
0
0
0
0
0
0
0
0.105263
0.25
76
6
29
12.666667
0.649123
0
0
0
0
0
0.171053
0
0
0
0
0
0
1
0.25
false
0
0
0
0.25
0.25
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
4
efbf751fb3225da1502da80ae8e0cbc35cc769ff
87
py
Python
bot/recognizer_bot/yolo/__init__.py
kprokofi/animal-recognition-with-voice
e9e5235315255eb6e17df3dba616b2ed4c902c92
[ "MIT" ]
1
2021-03-18T05:51:10.000Z
2021-03-18T05:51:10.000Z
bot/recognizer_bot/yolo/__init__.py
kprokofi/animal-recognition-with-voice
e9e5235315255eb6e17df3dba616b2ed4c902c92
[ "MIT" ]
3
2021-04-11T20:52:44.000Z
2021-06-13T13:46:08.000Z
bot/recognizer_bot/yolo/__init__.py
kprokofi/animal-recognition-with-voice
e9e5235315255eb6e17df3dba616b2ed4c902c92
[ "MIT" ]
null
null
null
# Used postprocessing pipeline from https://github.com/david8862/keras-YOLOv3-model-set
87
87
0.827586
12
87
6
1
0
0
0
0
0
0
0
0
0
0
0.060976
0.057471
87
1
87
87
0.817073
0.977011
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
efd357a6d7aa44fba8b78858721bafbff80f12bc
39
py
Python
dsbox/ml/text/__init__.py
Pandinosaurus/dsbox
aea56049025ed7e6e66427f8636286f8be1b6e03
[ "Apache-2.0" ]
16
2020-05-11T09:10:15.000Z
2021-04-13T08:43:28.000Z
dsbox/ml/text/__init__.py
Pandinosaurus/dsbox
aea56049025ed7e6e66427f8636286f8be1b6e03
[ "Apache-2.0" ]
1
2020-12-03T20:02:32.000Z
2020-12-03T20:02:32.000Z
dsbox/ml/text/__init__.py
Pandinosaurus/dsbox
aea56049025ed7e6e66427f8636286f8be1b6e03
[ "Apache-2.0" ]
1
2020-05-11T17:22:20.000Z
2020-05-11T17:22:20.000Z
from .lsh import LSH __all__ = ["LSH"]
13
20
0.666667
6
39
3.666667
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.179487
39
3
21
13
0.6875
0
0
0
0
0
0.075
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
efe83fba59bcf55aecf4ac2e76c35aed8cef6b2d
244
py
Python
src/plugins/snorkel_advanced_views/__init__.py
jdiaz/snorkel
d553480f3193f105d6f5befa04afb3656cd94d49
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
src/plugins/snorkel_advanced_views/__init__.py
jdiaz/snorkel
d553480f3193f105d6f5befa04afb3656cd94d49
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
src/plugins/snorkel_advanced_views/__init__.py
jdiaz/snorkel
d553480f3193f105d6f5befa04afb3656cd94d49
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
from __future__ import absolute_import from .timeline import TimelineView from .overview import OverviewView from .forecasting import ForecastView from .drilldown import DrilldownView from .weco import WecoView from .digraph import DigraphView
30.5
38
0.860656
29
244
7.068966
0.551724
0
0
0
0
0
0
0
0
0
0
0
0.114754
244
7
39
34.857143
0.949074
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
efed352e69f0a89be54e958119f19ab50212540e
220
py
Python
course-2:combining-building-blocks/subject-1:collections/lesson-6:Dictionaries.py
regnart-tech-club/python
069df070059de662d4104de8192e45407a7e94ce
[ "Apache-2.0" ]
null
null
null
course-2:combining-building-blocks/subject-1:collections/lesson-6:Dictionaries.py
regnart-tech-club/python
069df070059de662d4104de8192e45407a7e94ce
[ "Apache-2.0" ]
null
null
null
course-2:combining-building-blocks/subject-1:collections/lesson-6:Dictionaries.py
regnart-tech-club/python
069df070059de662d4104de8192e45407a7e94ce
[ "Apache-2.0" ]
1
2016-04-03T00:53:37.000Z
2016-04-03T00:53:37.000Z
spells = { 'levitate': 'Levioso', 'make fire': 'Incendio', 'open locked door': 'Alohomora' } # dictionary operators print(spells['open locked door']) print(spells['levitate']) print(spells.keys()) print(dir(spells))
18.333333
33
0.690909
26
220
5.846154
0.576923
0.217105
0.184211
0
0
0
0
0
0
0
0
0
0.118182
220
11
34
20
0.783505
0.090909
0
0
0
0
0.409091
0
0
0
0
0
0
1
0
false
0
0
0
0
0.444444
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
4
effba8d9bc38c8e65ea79c9147883605bb8360e7
56
py
Python
deferred_driller/__init__.py
andreafioraldi/deferred_driller
92e7d773c78c0f791118984741cb998f3f9ad626
[ "BSD-2-Clause" ]
12
2019-02-02T16:42:42.000Z
2020-03-14T11:10:01.000Z
deferred_driller/__init__.py
andreafioraldi/deferred_driller
92e7d773c78c0f791118984741cb998f3f9ad626
[ "BSD-2-Clause" ]
null
null
null
deferred_driller/__init__.py
andreafioraldi/deferred_driller
92e7d773c78c0f791118984741cb998f3f9ad626
[ "BSD-2-Clause" ]
null
null
null
from .runner import PinRunner from .core import Driller
18.666667
29
0.821429
8
56
5.75
0.75
0
0
0
0
0
0
0
0
0
0
0
0.142857
56
2
30
28
0.958333
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
4be54fdfdddf88646958ec8640d9533e2ef06714
91
py
Python
update.py
erowley2501/fixlet-historian
c1aae462f7385ad4948415a2f26fd09d674e2275
[ "Apache-2.0" ]
5
2018-04-26T20:17:22.000Z
2022-02-03T03:13:25.000Z
update.py
erowley2501/fixlet-historian
c1aae462f7385ad4948415a2f26fd09d674e2275
[ "Apache-2.0" ]
3
2016-08-11T21:04:38.000Z
2020-03-10T15:29:06.000Z
update.py
erowley2501/fixlet-historian
c1aae462f7385ad4948415a2f26fd09d674e2275
[ "Apache-2.0" ]
2
2016-08-11T21:06:00.000Z
2019-11-20T15:39:30.000Z
#!/usr/bin/env python import dataminer if __name__ == '__main__': dataminer.update()
13
26
0.692308
11
91
5
0.909091
0
0
0
0
0
0
0
0
0
0
0
0.164835
91
6
27
15.166667
0.723684
0.21978
0
0
0
0
0.114286
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
322f173db26795eb33d34ff5e120e19f049d64b7
28,775
py
Python
pyatv/protocols/mrp/protobuf/SendCommandResultMessage_pb2.py
Jacobs4/pyatv
52956adf3b79198be52cc03649f3ddeee19f9e6c
[ "MIT" ]
532
2017-02-01T19:23:28.000Z
2022-03-29T09:57:39.000Z
pyatv/protocols/mrp/protobuf/SendCommandResultMessage_pb2.py
Jacobs4/pyatv
52956adf3b79198be52cc03649f3ddeee19f9e6c
[ "MIT" ]
1,639
2017-02-01T19:22:04.000Z
2022-03-31T17:26:40.000Z
pyatv/protocols/mrp/protobuf/SendCommandResultMessage_pb2.py
bdraco/pyatv
9541d21e6101c60866d832626be97bf962774cd5
[ "MIT" ]
102
2017-02-02T01:42:13.000Z
2022-02-26T08:49:34.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: pyatv/protocols/mrp/protobuf/SendCommandResultMessage.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from pyatv.protocols.mrp.protobuf import ProtocolMessage_pb2 as pyatv_dot_protocols_dot_mrp_dot_protobuf_dot_ProtocolMessage__pb2 from pyatv.protocols.mrp.protobuf import PlayerPath_pb2 as pyatv_dot_protocols_dot_mrp_dot_protobuf_dot_PlayerPath__pb2 DESCRIPTOR = _descriptor.FileDescriptor( name='pyatv/protocols/mrp/protobuf/SendCommandResultMessage.proto', package='', syntax='proto2', serialized_options=None, create_key=_descriptor._internal_create_key, serialized_pb=b'\n;pyatv/protocols/mrp/protobuf/SendCommandResultMessage.proto\x1a\x32pyatv/protocols/mrp/protobuf/ProtocolMessage.proto\x1a-pyatv/protocols/mrp/protobuf/PlayerPath.proto\"\xfc\x01\n\tSendError\"\xee\x01\n\x04\x45num\x12\x0b\n\x07NoError\x10\x00\x12\x17\n\x13\x41pplicationNotFound\x10\x01\x12\x14\n\x10\x43onnectionFailed\x10\x02\x12\x0b\n\x07Ignored\x10\x03\x12\x1d\n\x19\x43ouldNotLaunchApplication\x10\x04\x12\x0c\n\x08TimedOut\x10\x05\x12\x16\n\x12OriginDoesNotExist\x10\x06\x12\x12\n\x0eInvalidOptions\x10\x07\x12\x15\n\x11NoCommandHandlers\x10\x08\x12\x1b\n\x17\x41pplicationNotInstalled\x10\t\x12\x10\n\x0cNotSupported\x10\n\"\xf3\x03\n\x13HandlerReturnStatus\"\xdb\x03\n\x04\x45num\x12\x0b\n\x07Success\x10\x00\x12\x11\n\rNoSuchContent\x10\x01\x12\x11\n\rCommandFailed\x10\x02\x12\x1e\n\x1aNoActionableNowPlayingItem\x10\n\x12\x12\n\x0e\x44\x65viceNotFound\x10\x14\x12\x0f\n\x0bUIKitLegacy\x10\x03\x12\x14\n\x10SkipAdProhibited\x10\x64\x12\x16\n\x12QueueIsUserCurated\x10\x65\x12\x1d\n\x19UserModifiedQueueDisabled\x10\x66\x12\x33\n/UserQueueModificationNotSupportedForCurrentItem\x10g\x12&\n\"SubscriptionRequiredForSharedQueue\x10h\x12!\n\x1dInsertionPositionNotSpecified\x10i\x12\x1c\n\x18InvalidInsertionPosition\x10j\x12 \n\x1cRequestParametersOutOfBounds\x10k\x12\x14\n\x10SkipLimitReached\x10l\x12\x1a\n\x15\x41uthenticationFailure\x10\x91\x03\x12\x1c\n\x17MediaServiceUnavailable\x10\xf5\x03\"\xf5\x03\n\x15SendCommandStatusCode\"\xdb\x03\n\x04\x45num\x12\x0b\n\x07Success\x10\x00\x12\x11\n\rNoSuchContent\x10\x01\x12\x11\n\rCommandFailed\x10\x02\x12\x1e\n\x1aNoActionableNowPlayingItem\x10\n\x12\x12\n\x0e\x44\x65viceNotFound\x10\x14\x12\x0f\n\x0bUIKitLegacy\x10\x03\x12\x14\n\x10SkipAdProhibited\x10\x64\x12\x16\n\x12QueueIsUserCurated\x10\x65\x12\x1d\n\x19UserModifiedQueueDisabled\x10\x66\x12\x33\n/UserQueueModificationNotSupportedForCurrentItem\x10g\x12&\n\"SubscriptionRequiredForSharedQueue\x10h\x12!\n\x1dInsertionPositionNotSpecified\x10i\x12\x1c\n\x18InvalidInsertionPosition\x10j\x12 \n\x1cRequestParametersOutOfBounds\x10k\x12\x14\n\x10SkipLimitReached\x10l\x12\x1a\n\x15\x41uthenticationFailure\x10\x91\x03\x12\x1c\n\x17MediaServiceUnavailable\x10\xf5\x03\"C\n\x15SendCommandResultType\"*\n\x04\x45num\x12\n\n\x06\x44ialog\x10\x01\x12\t\n\x05\x45rror\x10\x02\x12\x0b\n\x06\x43ustom\x10\xe7\x07\"\xa1\x01\n\x17SendCommandResultStatus\x12/\n\nstatusCode\x18\x01 \x01(\x0e\x32\x1b.SendCommandStatusCode.Enum\x12)\n\x04type\x18\x02 \x01(\x0e\x32\x1b.SendCommandResultType.Enum\x12\x12\n\ncustomData\x18\x05 \x01(\x0c\x12\x16\n\x0e\x63ustomDataType\x18\x06 \x01(\t\"\x84\x01\n\x11SendCommandResult\x12\x1f\n\nplayerPath\x18\x01 \x01(\x0b\x32\x0b.PlayerPath\x12\"\n\tsendError\x18\x02 \x01(\x0e\x32\x0f.SendError.Enum\x12*\n\x08statuses\x18\x03 \x03(\x0b\x32\x18.SendCommandResultStatus\"\xf7\x01\n\x18SendCommandResultMessage\x12\"\n\tsendError\x18\x01 \x01(\x0e\x32\x0f.SendError.Enum\x12\x36\n\x13handlerReturnStatus\x18\x02 \x01(\x0e\x32\x19.HandlerReturnStatus.Enum\x12 \n\x18handlerReturnStatusDatas\x18\x03 \x03(\x0c\x12\x11\n\tcommandID\x18\x04 \x01(\t\x12\x1f\n\nplayerPath\x18\x05 \x01(\x0b\x32\x0b.PlayerPath\x12)\n\rcommandResult\x18\x06 \x01(\x0b\x32\x12.SendCommandResult:M\n\x18sendCommandResultMessage\x12\x10.ProtocolMessage\x18\x07 \x01(\x0b\x32\x19.SendCommandResultMessage' , dependencies=[pyatv_dot_protocols_dot_mrp_dot_protobuf_dot_ProtocolMessage__pb2.DESCRIPTOR,pyatv_dot_protocols_dot_mrp_dot_protobuf_dot_PlayerPath__pb2.DESCRIPTOR,]) SENDCOMMANDRESULTMESSAGE_FIELD_NUMBER = 7 sendCommandResultMessage = _descriptor.FieldDescriptor( name='sendCommandResultMessage', full_name='sendCommandResultMessage', index=0, number=7, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=True, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key) _SENDERROR_ENUM = _descriptor.EnumDescriptor( name='Enum', full_name='SendError.Enum', filename=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name='NoError', index=0, number=0, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='ApplicationNotFound', index=1, number=1, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='ConnectionFailed', index=2, number=2, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='Ignored', index=3, number=3, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='CouldNotLaunchApplication', index=4, number=4, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='TimedOut', index=5, number=5, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='OriginDoesNotExist', index=6, number=6, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='InvalidOptions', index=7, number=7, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='NoCommandHandlers', index=8, number=8, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='ApplicationNotInstalled', index=9, number=9, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='NotSupported', index=10, number=10, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), ], containing_type=None, serialized_options=None, serialized_start=177, serialized_end=415, ) _sym_db.RegisterEnumDescriptor(_SENDERROR_ENUM) _HANDLERRETURNSTATUS_ENUM = _descriptor.EnumDescriptor( name='Enum', full_name='HandlerReturnStatus.Enum', filename=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name='Success', index=0, number=0, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='NoSuchContent', index=1, number=1, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='CommandFailed', index=2, number=2, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='NoActionableNowPlayingItem', index=3, number=10, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='DeviceNotFound', index=4, number=20, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='UIKitLegacy', index=5, number=3, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='SkipAdProhibited', index=6, number=100, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='QueueIsUserCurated', index=7, number=101, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='UserModifiedQueueDisabled', index=8, number=102, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='UserQueueModificationNotSupportedForCurrentItem', index=9, number=103, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='SubscriptionRequiredForSharedQueue', index=10, number=104, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='InsertionPositionNotSpecified', index=11, number=105, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='InvalidInsertionPosition', index=12, number=106, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='RequestParametersOutOfBounds', index=13, number=107, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='SkipLimitReached', index=14, number=108, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='AuthenticationFailure', index=15, number=401, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='MediaServiceUnavailable', index=16, number=501, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), ], containing_type=None, serialized_options=None, serialized_start=442, serialized_end=917, ) _sym_db.RegisterEnumDescriptor(_HANDLERRETURNSTATUS_ENUM) _SENDCOMMANDSTATUSCODE_ENUM = _descriptor.EnumDescriptor( name='Enum', full_name='SendCommandStatusCode.Enum', filename=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name='Success', index=0, number=0, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='NoSuchContent', index=1, number=1, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='CommandFailed', index=2, number=2, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='NoActionableNowPlayingItem', index=3, number=10, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='DeviceNotFound', index=4, number=20, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='UIKitLegacy', index=5, number=3, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='SkipAdProhibited', index=6, number=100, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='QueueIsUserCurated', index=7, number=101, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='UserModifiedQueueDisabled', index=8, number=102, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='UserQueueModificationNotSupportedForCurrentItem', index=9, number=103, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='SubscriptionRequiredForSharedQueue', index=10, number=104, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='InsertionPositionNotSpecified', index=11, number=105, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='InvalidInsertionPosition', index=12, number=106, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='RequestParametersOutOfBounds', index=13, number=107, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='SkipLimitReached', index=14, number=108, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='AuthenticationFailure', index=15, number=401, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='MediaServiceUnavailable', index=16, number=501, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), ], containing_type=None, serialized_options=None, serialized_start=442, serialized_end=917, ) _sym_db.RegisterEnumDescriptor(_SENDCOMMANDSTATUSCODE_ENUM) _SENDCOMMANDRESULTTYPE_ENUM = _descriptor.EnumDescriptor( name='Enum', full_name='SendCommandResultType.Enum', filename=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name='Dialog', index=0, number=1, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='Error', index=1, number=2, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='Custom', index=2, number=999, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), ], containing_type=None, serialized_options=None, serialized_start=1448, serialized_end=1490, ) _sym_db.RegisterEnumDescriptor(_SENDCOMMANDRESULTTYPE_ENUM) _SENDERROR = _descriptor.Descriptor( name='SendError', full_name='SendError', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ ], extensions=[ ], nested_types=[], enum_types=[ _SENDERROR_ENUM, ], serialized_options=None, is_extendable=False, syntax='proto2', extension_ranges=[], oneofs=[ ], serialized_start=163, serialized_end=415, ) _HANDLERRETURNSTATUS = _descriptor.Descriptor( name='HandlerReturnStatus', full_name='HandlerReturnStatus', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ ], extensions=[ ], nested_types=[], enum_types=[ _HANDLERRETURNSTATUS_ENUM, ], serialized_options=None, is_extendable=False, syntax='proto2', extension_ranges=[], oneofs=[ ], serialized_start=418, serialized_end=917, ) _SENDCOMMANDSTATUSCODE = _descriptor.Descriptor( name='SendCommandStatusCode', full_name='SendCommandStatusCode', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ ], extensions=[ ], nested_types=[], enum_types=[ _SENDCOMMANDSTATUSCODE_ENUM, ], serialized_options=None, is_extendable=False, syntax='proto2', extension_ranges=[], oneofs=[ ], serialized_start=920, serialized_end=1421, ) _SENDCOMMANDRESULTTYPE = _descriptor.Descriptor( name='SendCommandResultType', full_name='SendCommandResultType', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ ], extensions=[ ], nested_types=[], enum_types=[ _SENDCOMMANDRESULTTYPE_ENUM, ], serialized_options=None, is_extendable=False, syntax='proto2', extension_ranges=[], oneofs=[ ], serialized_start=1423, serialized_end=1490, ) _SENDCOMMANDRESULTSTATUS = _descriptor.Descriptor( name='SendCommandResultStatus', full_name='SendCommandResultStatus', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='statusCode', full_name='SendCommandResultStatus.statusCode', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='type', full_name='SendCommandResultStatus.type', index=1, number=2, type=14, cpp_type=8, label=1, has_default_value=False, default_value=1, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='customData', full_name='SendCommandResultStatus.customData', index=2, number=5, type=12, cpp_type=9, label=1, has_default_value=False, default_value=b"", message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='customDataType', full_name='SendCommandResultStatus.customDataType', index=3, number=6, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto2', extension_ranges=[], oneofs=[ ], serialized_start=1493, serialized_end=1654, ) _SENDCOMMANDRESULT = _descriptor.Descriptor( name='SendCommandResult', full_name='SendCommandResult', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='playerPath', full_name='SendCommandResult.playerPath', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='sendError', full_name='SendCommandResult.sendError', index=1, number=2, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='statuses', full_name='SendCommandResult.statuses', index=2, number=3, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto2', extension_ranges=[], oneofs=[ ], serialized_start=1657, serialized_end=1789, ) _SENDCOMMANDRESULTMESSAGE = _descriptor.Descriptor( name='SendCommandResultMessage', full_name='SendCommandResultMessage', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='sendError', full_name='SendCommandResultMessage.sendError', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='handlerReturnStatus', full_name='SendCommandResultMessage.handlerReturnStatus', index=1, number=2, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='handlerReturnStatusDatas', full_name='SendCommandResultMessage.handlerReturnStatusDatas', index=2, number=3, type=12, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='commandID', full_name='SendCommandResultMessage.commandID', index=3, number=4, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='playerPath', full_name='SendCommandResultMessage.playerPath', index=4, number=5, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='commandResult', full_name='SendCommandResultMessage.commandResult', index=5, number=6, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto2', extension_ranges=[], oneofs=[ ], serialized_start=1792, serialized_end=2039, ) _SENDERROR_ENUM.containing_type = _SENDERROR _HANDLERRETURNSTATUS_ENUM.containing_type = _HANDLERRETURNSTATUS _SENDCOMMANDSTATUSCODE_ENUM.containing_type = _SENDCOMMANDSTATUSCODE _SENDCOMMANDRESULTTYPE_ENUM.containing_type = _SENDCOMMANDRESULTTYPE _SENDCOMMANDRESULTSTATUS.fields_by_name['statusCode'].enum_type = _SENDCOMMANDSTATUSCODE_ENUM _SENDCOMMANDRESULTSTATUS.fields_by_name['type'].enum_type = _SENDCOMMANDRESULTTYPE_ENUM _SENDCOMMANDRESULT.fields_by_name['playerPath'].message_type = pyatv_dot_protocols_dot_mrp_dot_protobuf_dot_PlayerPath__pb2._PLAYERPATH _SENDCOMMANDRESULT.fields_by_name['sendError'].enum_type = _SENDERROR_ENUM _SENDCOMMANDRESULT.fields_by_name['statuses'].message_type = _SENDCOMMANDRESULTSTATUS _SENDCOMMANDRESULTMESSAGE.fields_by_name['sendError'].enum_type = _SENDERROR_ENUM _SENDCOMMANDRESULTMESSAGE.fields_by_name['handlerReturnStatus'].enum_type = _HANDLERRETURNSTATUS_ENUM _SENDCOMMANDRESULTMESSAGE.fields_by_name['playerPath'].message_type = pyatv_dot_protocols_dot_mrp_dot_protobuf_dot_PlayerPath__pb2._PLAYERPATH _SENDCOMMANDRESULTMESSAGE.fields_by_name['commandResult'].message_type = _SENDCOMMANDRESULT DESCRIPTOR.message_types_by_name['SendError'] = _SENDERROR DESCRIPTOR.message_types_by_name['HandlerReturnStatus'] = _HANDLERRETURNSTATUS DESCRIPTOR.message_types_by_name['SendCommandStatusCode'] = _SENDCOMMANDSTATUSCODE DESCRIPTOR.message_types_by_name['SendCommandResultType'] = _SENDCOMMANDRESULTTYPE DESCRIPTOR.message_types_by_name['SendCommandResultStatus'] = _SENDCOMMANDRESULTSTATUS DESCRIPTOR.message_types_by_name['SendCommandResult'] = _SENDCOMMANDRESULT DESCRIPTOR.message_types_by_name['SendCommandResultMessage'] = _SENDCOMMANDRESULTMESSAGE DESCRIPTOR.extensions_by_name['sendCommandResultMessage'] = sendCommandResultMessage _sym_db.RegisterFileDescriptor(DESCRIPTOR) SendError = _reflection.GeneratedProtocolMessageType('SendError', (_message.Message,), { 'DESCRIPTOR' : _SENDERROR, '__module__' : 'pyatv.protocols.mrp.protobuf.SendCommandResultMessage_pb2' # @@protoc_insertion_point(class_scope:SendError) }) _sym_db.RegisterMessage(SendError) HandlerReturnStatus = _reflection.GeneratedProtocolMessageType('HandlerReturnStatus', (_message.Message,), { 'DESCRIPTOR' : _HANDLERRETURNSTATUS, '__module__' : 'pyatv.protocols.mrp.protobuf.SendCommandResultMessage_pb2' # @@protoc_insertion_point(class_scope:HandlerReturnStatus) }) _sym_db.RegisterMessage(HandlerReturnStatus) SendCommandStatusCode = _reflection.GeneratedProtocolMessageType('SendCommandStatusCode', (_message.Message,), { 'DESCRIPTOR' : _SENDCOMMANDSTATUSCODE, '__module__' : 'pyatv.protocols.mrp.protobuf.SendCommandResultMessage_pb2' # @@protoc_insertion_point(class_scope:SendCommandStatusCode) }) _sym_db.RegisterMessage(SendCommandStatusCode) SendCommandResultType = _reflection.GeneratedProtocolMessageType('SendCommandResultType', (_message.Message,), { 'DESCRIPTOR' : _SENDCOMMANDRESULTTYPE, '__module__' : 'pyatv.protocols.mrp.protobuf.SendCommandResultMessage_pb2' # @@protoc_insertion_point(class_scope:SendCommandResultType) }) _sym_db.RegisterMessage(SendCommandResultType) SendCommandResultStatus = _reflection.GeneratedProtocolMessageType('SendCommandResultStatus', (_message.Message,), { 'DESCRIPTOR' : _SENDCOMMANDRESULTSTATUS, '__module__' : 'pyatv.protocols.mrp.protobuf.SendCommandResultMessage_pb2' # @@protoc_insertion_point(class_scope:SendCommandResultStatus) }) _sym_db.RegisterMessage(SendCommandResultStatus) SendCommandResult = _reflection.GeneratedProtocolMessageType('SendCommandResult', (_message.Message,), { 'DESCRIPTOR' : _SENDCOMMANDRESULT, '__module__' : 'pyatv.protocols.mrp.protobuf.SendCommandResultMessage_pb2' # @@protoc_insertion_point(class_scope:SendCommandResult) }) _sym_db.RegisterMessage(SendCommandResult) SendCommandResultMessage = _reflection.GeneratedProtocolMessageType('SendCommandResultMessage', (_message.Message,), { 'DESCRIPTOR' : _SENDCOMMANDRESULTMESSAGE, '__module__' : 'pyatv.protocols.mrp.protobuf.SendCommandResultMessage_pb2' # @@protoc_insertion_point(class_scope:SendCommandResultMessage) }) _sym_db.RegisterMessage(SendCommandResultMessage) sendCommandResultMessage.message_type = _SENDCOMMANDRESULTMESSAGE pyatv_dot_protocols_dot_mrp_dot_protobuf_dot_ProtocolMessage__pb2.ProtocolMessage.RegisterExtension(sendCommandResultMessage) # @@protoc_insertion_point(module_scope)
42.068713
3,336
0.772546
3,134
28,775
6.758137
0.091257
0.06289
0.114825
0.094334
0.711001
0.6856
0.664636
0.649339
0.645373
0.645373
0
0.040155
0.121564
28,775
683
3,337
42.130307
0.797761
0.022902
0
0.744882
1
0.001575
0.223851
0.188512
0
0
0
0
0
1
0
false
0
0.009449
0
0.009449
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
324d76819e5cad6b67bdcba956078668928bbb7b
1,375
py
Python
Python/search.py
saqibns/standard-algorithms
aa0e87253dd2f78409b14f78a7eb7929697a3b31
[ "MIT" ]
null
null
null
Python/search.py
saqibns/standard-algorithms
aa0e87253dd2f78409b14f78a7eb7929697a3b31
[ "MIT" ]
null
null
null
Python/search.py
saqibns/standard-algorithms
aa0e87253dd2f78409b14f78a7eb7929697a3b31
[ "MIT" ]
null
null
null
def linear(listt, element, start_from = 0): for i in range(start_from, len(listt)): if listt[i] == element: return i def binary(listt, element): mini = 0 maxi = len(listt) - 1 while mini <= maxi: mid = (mini + maxi) // 2 if listt[mid] == element: return mid elif listt[mid] > element: maxi = mid - 1 else: mini = mid + 1 #Tests for Linear Search print "Linear Search:" print linear([99, 42, 32, 8, 45, 44, 63, 1, 69, 82, 42, 13, 12, 34, 73], 8) #3 print linear([99, 42, 32, 8, 45, 44, 63, 1, 69, 82, 42, 13, 12, 34, 73], 73) #14 print linear([99, 42, 32, 8, 45, 44, 63, 1, 69, 82, 42, 13, 12, 34, 73], 81) #None print linear([99, 42, 32, 8, 45, 44, 63, 1, 69, 82, 42, 13, 12, 34, 73], 11) #None print linear([99, 42, 32, 8, 45, 44, 63, 1, 69, 82, 42, 13, 12, 34, 73], 99) #0 print linear([99, 42, 32, 8, 45, 44, 63, 1, 69, 82, 42, 13, 12, 34, 73], 8, 4) #None #Tests for Binary Search print "\nBinary Search" print binary([4, 5, 9, 13, 18, 19, 26, 29, 33, 36, 40], 4) #0 print binary([4, 5, 9, 13, 18, 19, 26, 29, 33, 36, 40], 40) #10 print binary([4, 5, 9, 13, 18, 19, 26, 29, 33, 36, 40], 91) #None print binary([4, 5, 9, 13, 18, 19, 26, 29, 33, 36, 40], 12) #None print binary([4, 5, 9, 13, 18, 19, 26, 29, 33, 36, 40], 13) #3
41.666667
85
0.522909
259
1,375
2.76834
0.220077
0.107392
0.108787
0.125523
0.560669
0.560669
0.560669
0.560669
0.560669
0.560669
0
0.303992
0.289455
1,375
33
86
41.666667
0.429887
0.053818
0
0
0
0
0.022498
0
0
0
0
0
0
0
null
null
0
0
null
null
0.464286
0
0
0
null
0
0
0
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
1
0
0
0
0
0
0
1
0
4
3253ce0c48ae22accaa19f92824530e13f045767
233
py
Python
event/tests/test_models.py
RevolutionTech/carrier-owl
f72f47e39ea819681fa7b50de2b52e393edeeb96
[ "0BSD" ]
null
null
null
event/tests/test_models.py
RevolutionTech/carrier-owl
f72f47e39ea819681fa7b50de2b52e393edeeb96
[ "0BSD" ]
130
2019-04-04T04:27:43.000Z
2022-03-07T01:13:56.000Z
event/tests/test_models.py
RevolutionTech/carrier-owl
f72f47e39ea819681fa7b50de2b52e393edeeb96
[ "0BSD" ]
null
null
null
from django.test import TestCase from event.tests.factories import EventFactory class EventModelsTestCase(TestCase): def test_event_str(self): event = EventFactory() self.assertEqual(event.subject, str(event))
23.3
51
0.746781
27
233
6.37037
0.592593
0
0
0
0
0
0
0
0
0
0
0
0.171674
233
9
52
25.888889
0.891192
0
0
0
0
0
0
0
0
0
0
0
0.166667
1
0.166667
false
0
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
325cbff2bae35a6bc7ed13b934ebcb1e4a2e46ac
20,700
py
Python
test/extensions/filters/network/thrift_proxy/driver/generated/example/Example.py
dcillera/envoy
cb54ba8eec26f768f8c1ae412113b07bacde7321
[ "Apache-2.0" ]
17,703
2017-09-14T18:23:43.000Z
2022-03-31T22:04:17.000Z
test/extensions/filters/network/thrift_proxy/driver/generated/example/Example.py
dcillera/envoy
cb54ba8eec26f768f8c1ae412113b07bacde7321
[ "Apache-2.0" ]
15,957
2017-09-14T16:38:22.000Z
2022-03-31T23:56:30.000Z
test/extensions/filters/network/thrift_proxy/driver/generated/example/Example.py
dcillera/envoy
cb54ba8eec26f768f8c1ae412113b07bacde7321
[ "Apache-2.0" ]
3,780
2017-09-14T18:58:47.000Z
2022-03-31T17:10:47.000Z
# # Autogenerated by Thrift Compiler (0.11.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # # options string: py # from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException from thrift.protocol.TProtocol import TProtocolException from thrift.TRecursive import fix_spec import sys import logging from .ttypes import * from thrift.Thrift import TProcessor from thrift.transport import TTransport all_structs = [] class Iface(object): def ping(self): pass def poke(self): pass def add(self, a, b): """ Parameters: - a - b """ pass def execute(self, input): """ Parameters: - input """ pass class Client(Iface): def __init__(self, iprot, oprot=None): self._iprot = self._oprot = iprot if oprot is not None: self._oprot = oprot self._seqid = 0 def ping(self): self.send_ping() self.recv_ping() def send_ping(self): self._oprot.writeMessageBegin('ping', TMessageType.CALL, self._seqid) args = ping_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_ping(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = ping_result() result.read(iprot) iprot.readMessageEnd() return def poke(self): self.send_poke() def send_poke(self): self._oprot.writeMessageBegin('poke', TMessageType.ONEWAY, self._seqid) args = poke_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def add(self, a, b): """ Parameters: - a - b """ self.send_add(a, b) return self.recv_add() def send_add(self, a, b): self._oprot.writeMessageBegin('add', TMessageType.CALL, self._seqid) args = add_args() args.a = a args.b = b args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_add(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = add_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success raise TApplicationException(TApplicationException.MISSING_RESULT, "add failed: unknown result") def execute(self, input): """ Parameters: - input """ self.send_execute(input) return self.recv_execute() def send_execute(self, input): self._oprot.writeMessageBegin('execute', TMessageType.CALL, self._seqid) args = execute_args() args.input = input args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_execute(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = execute_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.appex is not None: raise result.appex raise TApplicationException(TApplicationException.MISSING_RESULT, "execute failed: unknown result") class Processor(Iface, TProcessor): def __init__(self, handler): self._handler = handler self._processMap = {} self._processMap["ping"] = Processor.process_ping self._processMap["poke"] = Processor.process_poke self._processMap["add"] = Processor.process_add self._processMap["execute"] = Processor.process_execute def process(self, iprot, oprot): (name, type, seqid) = iprot.readMessageBegin() if name not in self._processMap: iprot.skip(TType.STRUCT) iprot.readMessageEnd() x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name)) oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid) x.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() return else: self._processMap[name](self, seqid, iprot, oprot) return True def process_ping(self, seqid, iprot, oprot): args = ping_args() args.read(iprot) iprot.readMessageEnd() result = ping_result() try: self._handler.ping() msg_type = TMessageType.REPLY except TTransport.TTransportException: raise except TApplicationException as ex: logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("ping", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_poke(self, seqid, iprot, oprot): args = poke_args() args.read(iprot) iprot.readMessageEnd() try: self._handler.poke() except TTransport.TTransportException: raise except Exception: logging.exception('Exception in oneway handler') def process_add(self, seqid, iprot, oprot): args = add_args() args.read(iprot) iprot.readMessageEnd() result = add_result() try: result.success = self._handler.add(args.a, args.b) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise except TApplicationException as ex: logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("add", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_execute(self, seqid, iprot, oprot): args = execute_args() args.read(iprot) iprot.readMessageEnd() result = execute_result() try: result.success = self._handler.execute(args.input) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise except AppException as appex: msg_type = TMessageType.REPLY result.appex = appex except TApplicationException as ex: logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("execute", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() # HELPER FUNCTIONS AND STRUCTURES class ping_args(object): def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('ping_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) all_structs.append(ping_args) ping_args.thrift_spec = ( ) class ping_result(object): def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('ping_result') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) all_structs.append(ping_result) ping_result.thrift_spec = ( ) class poke_args(object): def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('poke_args') oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) all_structs.append(poke_args) poke_args.thrift_spec = ( ) class add_args(object): """ Attributes: - a - b """ def __init__(self, a=None, b=None,): self.a = a self.b = b def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 1: if ftype == TType.I32: self.a = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I32: self.b = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('add_args') if self.a is not None: oprot.writeFieldBegin('a', TType.I32, 1) oprot.writeI32(self.a) oprot.writeFieldEnd() if self.b is not None: oprot.writeFieldBegin('b', TType.I32, 2) oprot.writeI32(self.b) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) all_structs.append(add_args) add_args.thrift_spec = ( None, # 0 (1, TType.I32, 'a', None, None, ), # 1 (2, TType.I32, 'b', None, None, ), # 2 ) class add_result(object): """ Attributes: - success """ def __init__(self, success=None,): self.success = success def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 0: if ftype == TType.I32: self.success = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('add_result') if self.success is not None: oprot.writeFieldBegin('success', TType.I32, 0) oprot.writeI32(self.success) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) all_structs.append(add_result) add_result.thrift_spec = ( (0, TType.I32, 'success', None, None, ), # 0 ) class execute_args(object): """ Attributes: - input """ def __init__(self, input=None,): self.input = input def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 1: if ftype == TType.STRUCT: self.input = Param() self.input.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('execute_args') if self.input is not None: oprot.writeFieldBegin('input', TType.STRUCT, 1) self.input.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) all_structs.append(execute_args) execute_args.thrift_spec = ( None, # 0 (1, TType.STRUCT, 'input', [Param, None], None, ), # 1 ) class execute_result(object): """ Attributes: - success - appex """ def __init__(self, success=None, appex=None,): self.success = success self.appex = appex def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 0: if ftype == TType.STRUCT: self.success = Result() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.appex = AppException() self.appex.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('execute_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.appex is not None: oprot.writeFieldBegin('appex', TType.STRUCT, 1) self.appex.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) all_structs.append(execute_result) execute_result.thrift_spec = ( (0, TType.STRUCT, 'success', [Result, None], None, ), # 0 (1, TType.STRUCT, 'appex', [AppException, None], None, ), # 1 ) fix_spec(all_structs) del all_structs
31.316188
134
0.586908
2,230
20,700
5.198206
0.072197
0.016391
0.029503
0.014493
0.75854
0.705487
0.681504
0.659334
0.655452
0.649413
0
0.004266
0.309179
20,700
660
135
31.363636
0.806364
0.017343
0
0.711538
1
0
0.02995
0
0
0
0
0
0
1
0.130769
false
0.007692
0.015385
0.040385
0.259615
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
32603680c3393bee4e46c1ae84c7814e6c012fd4
384
py
Python
PINp/2015/GOLOVIN_A_I/task_1_7.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2015/GOLOVIN_A_I/task_1_7.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2015/GOLOVIN_A_I/task_1_7.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 1. Вариант 7. # Напишите программу, которая будет сообщать род деятельности и псевдоним под которым скрывается # Эдуард Георгиевич Зюбин. После вывода информации программа должна дожидаться пока пользователь # нажмет Enter для выхода.# Golovin.A.I # 02.06.2016 print ("Эдуард Георгиевич Зюбин, более известный как Шубин - писатель") input("\n\nНажмите Enter для выхода.")
54.857143
233
0.783854
53
384
5.698113
0.886792
0.10596
0.139073
0
0
0
0
0
0
0
0
0.030303
0.140625
384
6
234
64
0.881818
0.677083
0
0
0
0
0.784483
0
0
0
0
0
0
0
null
null
0
0
null
null
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
1
0
0
0
0
0
0
1
0
4
3292d76d5ac1d0d76c86dc6b79580d69ecf50ec7
215
py
Python
projects/admin.py
octaviodive/blog-portfolio
7a02128ca43392b0e4d5d8f2272abfa15ce60178
[ "MIT" ]
null
null
null
projects/admin.py
octaviodive/blog-portfolio
7a02128ca43392b0e4d5d8f2272abfa15ce60178
[ "MIT" ]
null
null
null
projects/admin.py
octaviodive/blog-portfolio
7a02128ca43392b0e4d5d8f2272abfa15ce60178
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Project # Register your models here. class ProjectAdmin(admin.ModelAdmin): list_display = ('title', 'description') admin.site.register(Project, ProjectAdmin)
30.714286
43
0.786047
26
215
6.461538
0.692308
0
0
0
0
0
0
0
0
0
0
0
0.116279
215
7
44
30.714286
0.884211
0.12093
0
0
0
0
0.085106
0
0
0
0
0
0
1
0
false
0
0.4
0
0.8
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
32a875eb97d7774f5de6ad1c51b8d4e285d70fdd
194
py
Python
tests/unit/test_main.py
RahulHP/lore
9c3df92c76a9b46bfb4e5488ece5dbf5835cc065
[ "MIT" ]
null
null
null
tests/unit/test_main.py
RahulHP/lore
9c3df92c76a9b46bfb4e5488ece5dbf5835cc065
[ "MIT" ]
null
null
null
tests/unit/test_main.py
RahulHP/lore
9c3df92c76a9b46bfb4e5488ece5dbf5835cc065
[ "MIT" ]
2
2020-07-10T11:49:12.000Z
2021-12-18T08:09:16.000Z
import unittest class TestConnection(unittest.TestCase): def test_connection(self): # make sure this at least gets loaded import lore.__main__ self.assertTrue(True)
24.25
45
0.701031
23
194
5.695652
0.869565
0
0
0
0
0
0
0
0
0
0
0
0.237113
194
7
46
27.714286
0.885135
0.180412
0
0
0
0
0
0
0
0
0
0
0.2
1
0.2
false
0
0.4
0
0.8
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
32c00f3b3bd588bd011b8aef42b3209843c38367
196
py
Python
tests/wrappers/fastapi/conftest.py
sturmianseq/thundra-agent-python
4cee02d790eb7b8e4dea4e2e9dcd1f67533b1c56
[ "Apache-2.0" ]
22
2018-03-05T20:02:46.000Z
2021-04-09T12:00:18.000Z
tests/wrappers/fastapi/conftest.py
sturmianseq/thundra-agent-python
4cee02d790eb7b8e4dea4e2e9dcd1f67533b1c56
[ "Apache-2.0" ]
13
2018-03-26T07:57:57.000Z
2021-06-29T14:22:52.000Z
tests/wrappers/fastapi/conftest.py
thundra-io/thundra-agent-python
448e18c17d8730c381b2e2a773782cf80c5a7cfb
[ "Apache-2.0" ]
3
2021-08-07T14:19:23.000Z
2021-12-08T15:35:40.000Z
from main import app import pytest from starlette.testclient import TestClient @pytest.fixture(autouse=True) def test_app(): client = TestClient(app) yield client # testing happens here
21.777778
43
0.770408
26
196
5.769231
0.653846
0
0
0
0
0
0
0
0
0
0
0
0.163265
196
9
44
21.777778
0.914634
0.102041
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.428571
0
0.571429
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
0898559975b101d0a33b266d667c69a9d96a195b
107
py
Python
AndroidFTPBackup/apps.py
SanketRevankar/AndroidFTP-DataBackup
54d740be49305ca993ebd541bb4998817886bdfd
[ "Apache-2.0" ]
6
2019-02-06T18:14:54.000Z
2022-01-25T15:30:10.000Z
AndroidFTPBackup/apps.py
SanketRevankar/AndroidFTP-DataBackup
54d740be49305ca993ebd541bb4998817886bdfd
[ "Apache-2.0" ]
null
null
null
AndroidFTPBackup/apps.py
SanketRevankar/AndroidFTP-DataBackup
54d740be49305ca993ebd541bb4998817886bdfd
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig class AndroidftpbackupConfig(AppConfig): name = 'AndroidFTPBackup'
17.833333
40
0.794393
10
107
8.5
0.9
0
0
0
0
0
0
0
0
0
0
0
0.140187
107
5
41
21.4
0.923913
0
0
0
0
0
0.149533
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
08cc60d3fdff2844b70105bc1bd55a02cf0af8ee
147
py
Python
src/pyggui/defaults/__welcome_page.py
15minutOdmora/python-pyggui
6675aeecfc7c47dac54a475dfb87d9e6b641041c
[ "MIT" ]
null
null
null
src/pyggui/defaults/__welcome_page.py
15minutOdmora/python-pyggui
6675aeecfc7c47dac54a475dfb87d9e6b641041c
[ "MIT" ]
null
null
null
src/pyggui/defaults/__welcome_page.py
15minutOdmora/python-pyggui
6675aeecfc7c47dac54a475dfb87d9e6b641041c
[ "MIT" ]
null
null
null
from pyggui.gui.page import Page class _WelcomePage(Page): def __init__(self, controller): super().__init__(controller) pass
18.375
36
0.680272
17
147
5.352941
0.764706
0
0
0
0
0
0
0
0
0
0
0
0.22449
147
7
37
21
0.798246
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0.2
0.2
0
0.6
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
4
08d81f675f70ba25e6add48eca139ddf57e7ce68
293
py
Python
repo_project/apps/ramos/models.py
CEEINF-UTFSM/utfsm-repositorio-material
4b0c3b94cda68984e960dd4577253c0180aa10a6
[ "MIT" ]
6
2020-07-15T21:18:05.000Z
2020-09-26T04:35:02.000Z
repo_project/apps/ramos/models.py
CEEINF-UTFSM/utfsm-repositorio-material
4b0c3b94cda68984e960dd4577253c0180aa10a6
[ "MIT" ]
null
null
null
repo_project/apps/ramos/models.py
CEEINF-UTFSM/utfsm-repositorio-material
4b0c3b94cda68984e960dd4577253c0180aa10a6
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Ramo(models.Model): sigla = models.CharField(max_length=50) nombre = models.CharField(max_length=255) class Carrera(models.Model): nombre = models.CharField(max_length=255) ramos = models.ManyToManyField(Ramo)
20.928571
45
0.740614
39
293
5.487179
0.538462
0.21028
0.252336
0.336449
0.308411
0.308411
0
0
0
0
0
0.032389
0.156997
293
13
46
22.538462
0.834008
0.081911
0
0.285714
0
0
0
0
0
0
0
0
0
1
0
false
0
0.142857
0
1
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
4
3ea8e2a4f0139664b193cbc8e2ed11e719ac0a15
198
py
Python
data/repository/__init__.py
wax911/anime-meta
5a707a75b277a9c0dc5b9d9447cea44a73d2f83c
[ "Apache-2.0" ]
2
2021-04-08T19:55:02.000Z
2021-04-08T19:57:07.000Z
data/repository/__init__.py
wax911/anime-meta
5a707a75b277a9c0dc5b9d9447cea44a73d2f83c
[ "Apache-2.0" ]
null
null
null
data/repository/__init__.py
wax911/anime-meta
5a707a75b277a9c0dc5b9d9447cea44a73d2f83c
[ "Apache-2.0" ]
null
null
null
from .repositories import \ AuthenticationRepository, \ EpisodeRepository,\ IndexRepository, \ MovieRepository, \ PanelRepository, \ SeasonRepository, \ SeriesRepository
22
31
0.707071
10
198
14
1
0
0
0
0
0
0
0
0
0
0
0
0.222222
198
8
32
24.75
0.909091
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.125
0
0.125
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
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
3ed15865d4a0a540f22e0bd1eaa110b17cca53d7
39
py
Python
cobra/basico/aula4/aula4-1.py
Matheusblz/learning_things
69c16d30db8a79dffd5b83e91070aec7ab376b8a
[ "MIT" ]
null
null
null
cobra/basico/aula4/aula4-1.py
Matheusblz/learning_things
69c16d30db8a79dffd5b83e91070aec7ab376b8a
[ "MIT" ]
null
null
null
cobra/basico/aula4/aula4-1.py
Matheusblz/learning_things
69c16d30db8a79dffd5b83e91070aec7ab376b8a
[ "MIT" ]
null
null
null
texto = 'python s2' print(texto[2:8])
9.75
19
0.641026
7
39
3.571429
0.857143
0
0
0
0
0
0
0
0
0
0
0.090909
0.153846
39
3
20
13
0.666667
0
0
0
0
0
0.230769
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
4
3ed94433a172beda77ad6b45ea8f4f8d64cfef97
104
py
Python
def2.py
ranjithvbr/test
37cb7a876c402fc68e4624071924b2851ab7b1c4
[ "MIT" ]
1
2018-07-15T13:36:22.000Z
2018-07-15T13:36:22.000Z
def2.py
ranjithvbr/test
37cb7a876c402fc68e4624071924b2851ab7b1c4
[ "MIT" ]
null
null
null
def2.py
ranjithvbr/test
37cb7a876c402fc68e4624071924b2851ab7b1c4
[ "MIT" ]
1
2018-07-15T13:39:05.000Z
2018-07-15T13:39:05.000Z
def printinfo(name,age): print 'name:',name print 'age:',age return printinfo('ranjith',21)
17.333333
24
0.644231
14
104
4.785714
0.571429
0
0
0
0
0
0
0
0
0
0
0.02381
0.192308
104
5
25
20.8
0.77381
0
0
0
0
0
0.153846
0
0
0
0
0
0
0
null
null
0
0
null
null
0.8
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
1
0
4
f5ce96687eec4324698eddde92d2cc80bb19910b
189
py
Python
techsscraper/processors.py
TechsHQ/techs-scraper
e09dd6a1dd2ca146bb6a48e261a511f655fbf02e
[ "MIT" ]
null
null
null
techsscraper/processors.py
TechsHQ/techs-scraper
e09dd6a1dd2ca146bb6a48e261a511f655fbf02e
[ "MIT" ]
null
null
null
techsscraper/processors.py
TechsHQ/techs-scraper
e09dd6a1dd2ca146bb6a48e261a511f655fbf02e
[ "MIT" ]
null
null
null
import pytz from dateutil import parser def clean(data): return data.replace('\\n', "").strip('\n\t') def parse_date(t): return parser.parse(t).astimezone(pytz.timezone('UTC'))
17.181818
59
0.677249
28
189
4.535714
0.642857
0
0
0
0
0
0
0
0
0
0
0
0.142857
189
10
60
18.9
0.783951
0
0
0
0
0
0.05291
0
0
0
0
0
0
1
0.333333
false
0
0.333333
0.333333
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
1
0
0
0
4
f5d830cf158711d8dbe120ec9cbb57554905d702
64
py
Python
inspect_png.py
aljazmedic/inspect-png
6e1f14150742e8ea94d1f984fc9afbe63ae57b93
[ "MIT" ]
5
2021-08-30T10:14:51.000Z
2021-09-22T07:32:28.000Z
inspect_png.py
aljazmedic/inspect-png
6e1f14150742e8ea94d1f984fc9afbe63ae57b93
[ "MIT" ]
1
2021-09-23T14:40:21.000Z
2021-09-24T20:17:54.000Z
inspect_png.py
aljazmedic/inspect-png
6e1f14150742e8ea94d1f984fc9afbe63ae57b93
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from inspect_png.main import main main()
16
33
0.765625
11
64
4.363636
0.818182
0
0
0
0
0
0
0
0
0
0
0.017544
0.109375
64
4
34
16
0.824561
0.328125
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
eb2b7d0debeda0fa4231bd8326c321d61e31805e
39
py
Python
q2_cscs/__init__.py
oolonek/q2-cscs
2115f82fe8a125c0eb2f0f10433d4d5c26cd2173
[ "MIT" ]
2
2018-10-11T09:17:46.000Z
2018-10-22T21:36:35.000Z
q2_cscs/__init__.py
oolonek/q2-cscs
2115f82fe8a125c0eb2f0f10433d4d5c26cd2173
[ "MIT" ]
2
2018-08-27T14:45:11.000Z
2019-02-19T08:37:56.000Z
q2_cscs/__init__.py
oolonek/q2-cscs
2115f82fe8a125c0eb2f0f10433d4d5c26cd2173
[ "MIT" ]
2
2018-11-08T01:02:29.000Z
2021-03-17T11:47:45.000Z
name = "q2_cscs" __version__ = "0.0.1"
13
21
0.641026
7
39
2.857143
0.857143
0
0
0
0
0
0
0
0
0
0
0.121212
0.153846
39
2
22
19.5
0.484848
0
0
0
0
0
0.307692
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
eb3f7e309d6f94448ee9fc6d63200d9d635f06da
67
py
Python
bash/__init__.py
jack1142/GrandeCogs-V3
3a92096c96c98abe5d34998b00dea4967a30647f
[ "MIT" ]
3
2018-06-09T21:56:58.000Z
2018-08-26T01:34:55.000Z
bash/__init__.py
jack1142/GrandeCogs-V3
3a92096c96c98abe5d34998b00dea4967a30647f
[ "MIT" ]
4
2018-10-06T16:37:57.000Z
2020-12-01T14:16:11.000Z
bash/__init__.py
jack1142/GrandeCogs-V3
3a92096c96c98abe5d34998b00dea4967a30647f
[ "MIT" ]
8
2018-08-26T01:29:41.000Z
2020-01-17T16:06:31.000Z
from .bash import Bash def setup(bot): bot.add_cog(Bash(bot))
13.4
26
0.686567
12
67
3.75
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.179104
67
4
27
16.75
0.818182
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
0
0
0
4
de271302a41e4576bf266417671e1df3dbf3c965
79
py
Python
micro-benchmark/snippets/args/imported_assigned_call/main.py
WenJinfeng/PyCG
b45e8e04fe697d8301cf27222a8f37646d69f168
[ "Apache-2.0" ]
121
2020-12-16T20:31:37.000Z
2022-03-21T20:32:43.000Z
micro-benchmark/snippets/args/imported_assigned_call/main.py
WenJinfeng/PyCG
b45e8e04fe697d8301cf27222a8f37646d69f168
[ "Apache-2.0" ]
24
2021-03-13T00:04:00.000Z
2022-03-21T17:28:11.000Z
micro-benchmark/snippets/args/imported_assigned_call/main.py
WenJinfeng/PyCG
b45e8e04fe697d8301cf27222a8f37646d69f168
[ "Apache-2.0" ]
19
2021-03-23T10:58:47.000Z
2022-03-24T19:46:50.000Z
from to_import import func def param_func(): pass a = param_func func(a)
9.875
26
0.708861
14
79
3.785714
0.571429
0.339623
0
0
0
0
0
0
0
0
0
0
0.21519
79
7
27
11.285714
0.854839
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0.2
0.2
0
0.4
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
4
de61320e2ee2460783c4cfccd0b4fb0df560b82b
65
py
Python
example/simple_uploader/__init__.py
jeremylow/dri
66ea49d08bd91d8f0729ee1cf4873734c562c35d
[ "MIT" ]
null
null
null
example/simple_uploader/__init__.py
jeremylow/dri
66ea49d08bd91d8f0729ee1cf4873734c562c35d
[ "MIT" ]
null
null
null
example/simple_uploader/__init__.py
jeremylow/dri
66ea49d08bd91d8f0729ee1cf4873734c562c35d
[ "MIT" ]
null
null
null
default_app_config = 'simple_uploader.apps.SimpleUploaderConfig'
32.5
64
0.876923
7
65
7.714286
1
0
0
0
0
0
0
0
0
0
0
0
0.046154
65
1
65
65
0.870968
0
0
0
0
0
0.630769
0.630769
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
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
de8209682437fdeda1ced6569f293fcfb04e8a7a
260
py
Python
python/django/capiccount/budget/admin.py
Zen-CODE/zenprojects
fa20844258c7d0953641469cac26b82abcba02d0
[ "MIT" ]
1
2018-05-05T19:06:57.000Z
2018-05-05T19:06:57.000Z
python/django/capiccount/budget/admin.py
Zen-CODE/zenprojects
fa20844258c7d0953641469cac26b82abcba02d0
[ "MIT" ]
7
2021-04-05T11:28:30.000Z
2022-03-07T20:07:31.000Z
python/django/capiccount/budget/admin.py
Zen-CODE/zenprojects
fa20844258c7d0953641469cac26b82abcba02d0
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. from .models import Account, Transaction, Category, Categorization admin.site.register(Account) admin.site.register(Category) admin.site.register(Categorization) admin.site.register(Transaction)
23.636364
66
0.823077
32
260
6.6875
0.4375
0.168224
0.317757
0.28972
0
0
0
0
0
0
0
0
0.088462
260
10
67
26
0.902954
0.1
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4