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
addb7ed850ec0a7f2e4073095bb1957572d51f81
748
py
Python
ChasingTrainFramework_GeneralOneClassDetection/data_provider_base/base_provider.py
dvt0101/A-Light-and-Fast-Face-Detector-for-Edge-Devices
3cb12d0f7a4f4f0357a265ef21fb61c897ff2395
[ "MIT" ]
1,172
2019-08-09T09:59:15.000Z
2020-12-14T03:20:08.000Z
ChasingTrainFramework_GeneralOneClassDetection/data_provider_base/base_provider.py
vicwer/A-Light-and-Fast-Face-Detector-for-Edge-Devices
cea550ae7999394da9c02ec15cb58b44c154e306
[ "MIT" ]
95
2019-08-19T01:15:49.000Z
2020-12-15T05:34:39.000Z
ChasingTrainFramework_GeneralOneClassDetection/data_provider_base/base_provider.py
vicwer/A-Light-and-Fast-Face-Detector-for-Edge-Devices
cea550ae7999394da9c02ec15cb58b44c154e306
[ "MIT" ]
317
2019-08-11T05:52:06.000Z
2020-12-14T13:34:53.000Z
""" This module takes an adapter as data supplier, pack data and provide data for data iterators """ class ProviderBaseclass(object): """ This is the baseclass of packer. Any other detailed packer must inherit this class. """ def __init__(self): pass def __str__(self): return se...
19.179487
92
0.59893
81
748
5.160494
0.604938
0.038278
0.052632
0
0
0
0
0
0
0
0
0
0.312834
748
38
93
19.684211
0.81323
0.334225
0
0.285714
0
0
0.019417
0
0
0
0
0
0
1
0.357143
false
0.142857
0
0.071429
0.5
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
ade88088e8f955cbe34c6ded8b0c012686c73686
6,690
py
Python
feffery_antd_components/AntdTable.py
ReilYoung/feffery-antd-components
594fb1284c7fec53da4dd1a64f0d505b71b859c3
[ "MIT" ]
1
2022-02-26T10:02:08.000Z
2022-02-26T10:02:08.000Z
feffery_antd_components/AntdTable.py
ReilYoung/feffery-antd-components
594fb1284c7fec53da4dd1a64f0d505b71b859c3
[ "MIT" ]
null
null
null
feffery_antd_components/AntdTable.py
ReilYoung/feffery-antd-components
594fb1284c7fec53da4dd1a64f0d505b71b859c3
[ "MIT" ]
null
null
null
# AUTO GENERATED FILE - DO NOT EDIT from dash.development.base_component import Component, _explicitize_args class AntdTable(Component): """An AntdTable component. Keyword arguments: - id (string; optional) - bordered (boolean; default False) - className (string; optional) - clickedContent...
37.166667
1,046
0.684604
640
6,690
7.089063
0.275
0.119021
0.021821
0.025788
0.203659
0.179634
0.156491
0.156491
0.156491
0.156491
0
0.000186
0.198206
6,690
179
1,047
37.374302
0.845638
0.556652
0
0
1
0
0.286691
0.07446
0
0
0
0
0
1
0.052632
false
0
0.052632
0
0.157895
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
adf206dc860c9c91bab8d0dc4ab9028af528520b
228
py
Python
setup.py
libffcv/tf-ffcv
6bf91d4874bf7d7a8b86ca971eaf38953891820a
[ "MIT" ]
7
2022-01-31T17:16:13.000Z
2022-03-03T09:17:11.000Z
setup.py
libffcv/tf-ffcv
6bf91d4874bf7d7a8b86ca971eaf38953891820a
[ "MIT" ]
null
null
null
setup.py
libffcv/tf-ffcv
6bf91d4874bf7d7a8b86ca971eaf38953891820a
[ "MIT" ]
null
null
null
from setuptools import setup setup( name="tf-ffcv", version="0.0.2", packages=["tf_ffcv"], description='Utilitaries to integrate tensorflow to FFCV', author='MadryLab', author_email='leclerc@mit.edu', )
20.727273
62
0.671053
29
228
5.206897
0.758621
0.07947
0
0
0
0
0
0
0
0
0
0.016129
0.184211
228
10
63
22.8
0.795699
0
0
0
0
0
0.372807
0
0
0
0
0
0
1
0
true
0
0.111111
0
0.111111
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
0
0
0
0
0
0
2
adff7c6003a817ff024583f158e4dba594047aef
1,030
py
Python
ref/signature.py
bbbbbr/porklike.gb
a6306f98d8aa75b042806488092f2919e9502dda
[ "MIT" ]
14
2021-09-30T17:08:45.000Z
2022-03-26T13:08:34.000Z
ref/signature.py
bbbbbr/porklike.gb
a6306f98d8aa75b042806488092f2919e9502dda
[ "MIT" ]
4
2021-10-01T16:31:22.000Z
2022-02-22T20:56:59.000Z
ref/signature.py
bbbbbr/porklike.gb
a6306f98d8aa75b042806488092f2919e9502dda
[ "MIT" ]
1
2021-12-31T05:43:46.000Z
2021-12-31T05:43:46.000Z
# Carve # sigs = [255,214,124,179,233] # msks = [0,9,3,12,6] # Door # sigs = [192,48] # msks = [15,15] # Freestanding # sigs=[0,0,0,0,16,64,32,128,161,104,84,146] # msks=[8,4,2,1,6,12,9,3,10,5,10,5] # Walls sigs=[251,233,253,84,146,80,16,144,112,208,241,248,210,177,225,120,179,0,124,104,161,64,240,128,224,176,242,24...
22.391304
181
0.509709
229
1,030
2.292576
0.379913
0.038095
0.034286
0.030476
0.118095
0.106667
0.072381
0
0
0
0
0.336996
0.204854
1,030
45
182
22.888889
0.304029
0.180583
0
0.115385
0
0
0.045618
0
0
0
0
0
0
1
0
false
0
0
0
0
0.153846
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
0
0
0
0
0
0
0
0
0
2
bc0df9983d1b2106c29db964a69d44ad5101ce40
568
py
Python
app/models.py
agailloty/api
7e706a1331a53a8440b4505cacde2871fd3c73ec
[ "MIT" ]
null
null
null
app/models.py
agailloty/api
7e706a1331a53a8440b4505cacde2871fd3c73ec
[ "MIT" ]
null
null
null
app/models.py
agailloty/api
7e706a1331a53a8440b4505cacde2871fd3c73ec
[ "MIT" ]
null
null
null
from sqlalchemy.sql.expression import null, text from sqlalchemy.sql.sqltypes import TIMESTAMP from .database import Base from sqlalchemy import Column, Integer, String, Boolean class Post(Base): __tablename__ = "user_posts" id = Column(Integer, primary_key=True, nullable=False) title = Column(String, nul...
37.866667
69
0.727113
68
568
5.941176
0.514706
0.128713
0.084158
0.123762
0
0
0
0
0
0
0
0
0.172535
568
14
70
40.571429
0.859574
0
0
0
0
0
0.033451
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.916667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
bc298a741fbdfe8a438e54c1f5c715a39b4fecea
637
py
Python
ml/rl/polyfill/decorators.py
sailfish009/ReAgent
cb425ca6a161b687c81a74a0cbad849cf43803f8
[ "BSD-3-Clause" ]
null
null
null
ml/rl/polyfill/decorators.py
sailfish009/ReAgent
cb425ca6a161b687c81a74a0cbad849cf43803f8
[ "BSD-3-Clause" ]
null
null
null
ml/rl/polyfill/decorators.py
sailfish009/ReAgent
cb425ca6a161b687c81a74a0cbad849cf43803f8
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. class ClassPropertyDescriptor: def __init__(self, fget): self.fget = fget def __get__(self, obj, klass=None): if klass is None: klass = type(obj) return self.fget.__get__(obj, kl...
25.48
80
0.66876
76
637
5.447368
0.671053
0.057971
0
0
0
0
0
0
0
0
0
0.016129
0.22135
637
24
81
26.541667
0.818548
0.340659
0
0
0
0
0
0
0
0
0
0
0
1
0.272727
false
0
0
0
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
70ac4b8866361736b8dccdec635e8aa522bb5941
930
py
Python
flask/migrations/versions/324666fdfa8a_.py
schinke/solid-fortnight-ba
221ad998e51e9b2634d1cfb17c84ad28dbc9a7d5
[ "MIT" ]
1
2016-08-19T09:33:09.000Z
2016-08-19T09:33:09.000Z
flask/migrations/versions/324666fdfa8a_.py
schinke/solid-fortnight-ba
221ad998e51e9b2634d1cfb17c84ad28dbc9a7d5
[ "MIT" ]
null
null
null
flask/migrations/versions/324666fdfa8a_.py
schinke/solid-fortnight-ba
221ad998e51e9b2634d1cfb17c84ad28dbc9a7d5
[ "MIT" ]
null
null
null
"""empty message Revision ID: 324666fdfa8a Revises: f18180ede802 Create Date: 2016-08-04 13:45:37.492317 """ # revision identifiers, used by Alembic. revision = '324666fdfa8a' down_revision = 'f18180ede802' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - ...
32.068966
133
0.735484
114
930
5.745614
0.447368
0.100763
0.201527
0.177099
0.574046
0.574046
0.574046
0.485496
0.485496
0.354198
0
0.061958
0.132258
930
28
134
33.214286
0.74969
0.312903
0
0
0
0
0.437294
0.290429
0
0
0
0
0
1
0.2
false
0
0.2
0
0.4
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
70c0ef14e09fd44371569e9fdd1ab84a1035a489
5,318
py
Python
time_utils/__init__.py
weihuchao/py2_tools
622b3c91ffa8b5bddac5e0a4870f97451588871b
[ "MIT" ]
null
null
null
time_utils/__init__.py
weihuchao/py2_tools
622b3c91ffa8b5bddac5e0a4870f97451588871b
[ "MIT" ]
null
null
null
time_utils/__init__.py
weihuchao/py2_tools
622b3c91ffa8b5bddac5e0a4870f97451588871b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2019-10-12 10:42 # @Author : weihuchao import datetime import os import time CHRONOS_DEFAULT_TIME_ZONE = 8 CHRONOS_DEFAULT_TIME_ZONE_NAME = "CHRONOS_DEFAULT_TIME_ZONE" class ChronosTable(object): def __init__(self, chronos): self._chronos = ch...
24.967136
102
0.549455
624
5,318
4.432692
0.19391
0.048807
0.022777
0.039769
0.36804
0.270788
0.180766
0.118583
0.094722
0
0
0.029997
0.329259
5,318
212
103
25.084906
0.745444
0.327191
0
0.104651
0
0
0.024895
0.007499
0
0
0
0
0
0
null
null
0.05814
0.034884
null
null
0.034884
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
70c7b845395996be991d1bf85b62cceac8c75d9b
547
py
Python
students/K33401/Tikhonova_Elena/Lr2/django_project_tikhonova/project_first_app/migrations/0005_auto_20201019_1532.py
TikhonovaElena/ITMO_ICT_WebDevelopment_2020-2021
a0ceb17b3ec0e53fa4b92af507251381a6760e6c
[ "MIT" ]
null
null
null
students/K33401/Tikhonova_Elena/Lr2/django_project_tikhonova/project_first_app/migrations/0005_auto_20201019_1532.py
TikhonovaElena/ITMO_ICT_WebDevelopment_2020-2021
a0ceb17b3ec0e53fa4b92af507251381a6760e6c
[ "MIT" ]
null
null
null
students/K33401/Tikhonova_Elena/Lr2/django_project_tikhonova/project_first_app/migrations/0005_auto_20201019_1532.py
TikhonovaElena/ITMO_ICT_WebDevelopment_2020-2021
a0ceb17b3ec0e53fa4b92af507251381a6760e6c
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-10-19 12:32 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('project_first_app', '0004_auto_20201019_0022'), ] operations = [ migrations.AlterField( model_name='license', name='...
22.791667
61
0.572212
55
547
5.545455
0.745455
0.131148
0.163934
0.190164
0
0
0
0
0
0
0
0.084656
0.308958
547
23
62
23.782609
0.722222
0.082267
0
0.235294
1
0
0.128
0.046
0
0
0
0
0
1
0
false
0
0.058824
0
0.235294
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
70c9bebc9af1ddbf6b8b1dbb89d5a80d378ba251
287
py
Python
acceptance_tests/04-xanes-scan.py
mrakitin/profile_collection-srx
639f0a73e8d8db3e07b7278545714c65e3d043c4
[ "BSD-3-Clause" ]
3
2019-11-14T19:19:08.000Z
2021-01-29T18:20:54.000Z
acceptance_tests/04-xanes-scan.py
mrakitin/profile_collection-srx
639f0a73e8d8db3e07b7278545714c65e3d043c4
[ "BSD-3-Clause" ]
25
2019-01-11T16:37:29.000Z
2022-01-18T16:32:09.000Z
acceptance_tests/04-xanes-scan.py
mrakitin/profile_collection-srx
639f0a73e8d8db3e07b7278545714c65e3d043c4
[ "BSD-3-Clause" ]
6
2019-06-25T19:00:37.000Z
2021-12-28T16:10:11.000Z
print('4. testing integrated scan functions:') print('testing xanes') xanes(erange = [7112-30, 7112-20, 7112+30], estep = [2, 5], harmonic = None, acqtime=0.2, roinum=1, i0scale = 1e8, itscale = 1e8,samplename='test',filename='test')
31.888889
98
0.567944
35
287
4.657143
0.742857
0.07362
0
0
0
0
0
0
0
0
0
0.140097
0.278746
287
8
99
35.875
0.647343
0
0
0
0
0
0.203509
0
0
0
0
0
0
1
0
true
0
0
0
0
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
70cc3470af89b798295488f6515a33ea344eb3d4
531
py
Python
sga/tests/management_test.py
mitodl/sga-l
8a0c1e5509f77211897744984d568085a49ac61f
[ "BSD-3-Clause" ]
3
2016-06-11T07:03:05.000Z
2018-06-19T18:13:18.000Z
sga/tests/management_test.py
mitodl/sga-l
8a0c1e5509f77211897744984d568085a49ac61f
[ "BSD-3-Clause" ]
58
2016-06-10T10:39:32.000Z
2021-01-16T16:20:25.000Z
sga/tests/management_test.py
mitodl/sga-l
8a0c1e5509f77211897744984d568085a49ac61f
[ "BSD-3-Clause" ]
5
2016-06-09T22:03:03.000Z
2019-05-02T04:27:12.000Z
""" Test management commands """ from io import StringIO from sga.management.commands.createmockdata import CreateMockDataCommand from sga.tests.common import SGATestCase class ManagementTest(SGATestCase): """ Class for management tests """ def test_create_mock_data(self): """ Test cr...
24.136364
72
0.683616
54
531
6.62963
0.537037
0.067039
0.078212
0.100559
0
0
0
0
0
0
0
0
0.224105
531
21
73
25.285714
0.868932
0.152542
0
0
0
0
0.076733
0
0
0
0
0
0.111111
1
0.111111
false
0
0.333333
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
70eea6e6d2ea4c87fb26645ee4b62c2dfc5dbde0
351
py
Python
systori/lib/middleware.py
systori/systori
e309c63e735079ff6032fdaf1db354ec872b28b1
[ "BSD-3-Clause" ]
12
2018-01-30T00:44:06.000Z
2020-07-13T05:20:48.000Z
systori/lib/middleware.py
systori/systori
e309c63e735079ff6032fdaf1db354ec872b28b1
[ "BSD-3-Clause" ]
36
2018-03-06T17:49:50.000Z
2020-06-23T19:26:00.000Z
systori/lib/middleware.py
systori/systori
e309c63e735079ff6032fdaf1db354ec872b28b1
[ "BSD-3-Clause" ]
3
2018-08-03T07:03:09.000Z
2020-07-09T20:21:10.000Z
import time from django.utils.deprecation import MiddlewareMixin class StatsMiddleware(MiddlewareMixin): def process_request(selfs, request): request.start_time = time.time() def process_response(self, request, response): total = time.time() - request.start_time print(f"cycle took {to...
27
52
0.709402
40
351
6.125
0.55
0.097959
0.130612
0
0
0
0
0
0
0
0
0
0.202279
351
12
53
29.25
0.875
0
0
0
0
0
0.051282
0
0
0
0
0
0
1
0.222222
false
0
0.222222
0
0.666667
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
70fc93bad65517c31e49fb79c34256b7922a6372
63
py
Python
fsociety/__version__.py
kernel1337/fsociety
a3cc7d65208228938e137f356b3e319e9577bfa4
[ "MIT" ]
1
2021-04-26T04:49:54.000Z
2021-04-26T04:49:54.000Z
fsociety/__version__.py
kernel1337/fsociety
a3cc7d65208228938e137f356b3e319e9577bfa4
[ "MIT" ]
null
null
null
fsociety/__version__.py
kernel1337/fsociety
a3cc7d65208228938e137f356b3e319e9577bfa4
[ "MIT" ]
null
null
null
VERSION = (3, 2, 4) __version__ = ".".join(map(str, VERSION))
15.75
41
0.603175
9
63
3.777778
0.777778
0
0
0
0
0
0
0
0
0
0
0.056604
0.15873
63
3
42
21
0.584906
0
0
0
0
0
0.015873
0
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
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
cb05a43e8f120afcf8e3ab4ebe53fa3c7724bf1d
6,980
py
Python
tests/test_with_simple_ontology.py
irbraun/oats
aec733fc492b65b25201d978cfd11ab4433446f1
[ "MIT" ]
1
2020-08-10T02:41:10.000Z
2020-08-10T02:41:10.000Z
tests/test_with_simple_ontology.py
irbraun/oats
aec733fc492b65b25201d978cfd11ab4433446f1
[ "MIT" ]
2
2020-03-30T14:26:29.000Z
2020-08-05T21:25:13.000Z
tests/test_with_simple_ontology.py
irbraun/oats
aec733fc492b65b25201d978cfd11ab4433446f1
[ "MIT" ]
1
2020-03-28T23:10:10.000Z
2020-03-28T23:10:10.000Z
import pytest import sys import pandas as pd sys.path.append("../oats") import oats # From the test ontology file: #! This ontology is set up to contain two branches below the root. #! #! #! --> 2 --> 5 #! The first branch of the ontology goes like: 1 -...
38.351648
130
0.705444
988
6,980
4.899798
0.123482
0.14749
0.118984
0.066928
0.778971
0.730221
0.659161
0.57674
0.449287
0.279901
0
0.17981
0.124355
6,980
181
131
38.563536
0.612238
0.166619
0
0.068182
0
0
0.183652
0.004828
0
0
0
0
0.738636
1
0.079545
false
0
0.056818
0
0.136364
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
2
cb1588f0a55918e1e5a8dfeb57dee8313a635c02
700
py
Python
src/config.py
cityiot/electric-bus-data-collector
6d2bc48ddc73938fd28df6415b7683ff50ead46e
[ "BSD-3-Clause" ]
1
2021-09-14T11:26:57.000Z
2021-09-14T11:26:57.000Z
src/config.py
cityiot/electric-bus-data-collector
6d2bc48ddc73938fd28df6415b7683ff50ead46e
[ "BSD-3-Clause" ]
null
null
null
src/config.py
cityiot/electric-bus-data-collector
6d2bc48ddc73938fd28df6415b7683ff50ead46e
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2019 Tampere University # This software was developed as a part of the CityIoT project: https://www.cityiot.fi/english # This source code is licensed under the 3-clause BSD license. See license.txt in the repository root directory. # Author(s): Otto Hylli <otto.hylli@tuni.fi> ''' Hel...
35
112
0.711429
99
700
5.030303
0.747475
0.02008
0
0
0
0
0
0
0
0
0
0.010638
0.194286
700
20
113
35
0.87234
0.682857
0
0
0
0
0.026042
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
cb16d3e1a8ca79407d6f457ba987507dcfd2a929
283
py
Python
quiz_bot/cli/utils.py
livestreamx/quiz-bot
e08e9161d908ce9cb851cd6c689f04703db1928f
[ "MIT" ]
1
2022-03-05T13:42:08.000Z
2022-03-05T13:42:08.000Z
quiz_bot/cli/utils.py
livestreamx/quiz-bot
e08e9161d908ce9cb851cd6c689f04703db1928f
[ "MIT" ]
null
null
null
quiz_bot/cli/utils.py
livestreamx/quiz-bot
e08e9161d908ce9cb851cd6c689f04703db1928f
[ "MIT" ]
2
2021-06-20T10:40:25.000Z
2022-02-15T04:26:58.000Z
import io from typing import Optional, Type from pydantic import BaseSettings def get_settings(file: Optional[io.StringIO], settings_type: Type[BaseSettings]) -> BaseSettings: if file is not None: return settings_type.parse_raw(file.read()) return settings_type()
25.727273
97
0.756184
38
283
5.5
0.552632
0.172249
0.172249
0
0
0
0
0
0
0
0
0
0.162544
283
10
98
28.3
0.881857
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.428571
0
0.857143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
cb1a49602fb635412d36eb92f6bb7d3519b87eac
55
py
Python
custom_components/senseme/version.py
bdraco/senseme-hacs
1e590c7780794fb7bf9d8a37be84ff1cb896ed04
[ "MIT" ]
null
null
null
custom_components/senseme/version.py
bdraco/senseme-hacs
1e590c7780794fb7bf9d8a37be84ff1cb896ed04
[ "MIT" ]
null
null
null
custom_components/senseme/version.py
bdraco/senseme-hacs
1e590c7780794fb7bf9d8a37be84ff1cb896ed04
[ "MIT" ]
null
null
null
"""Version for senseme-hacs.""" __version__ = "2.2.3"
13.75
31
0.636364
8
55
3.875
0.75
0
0
0
0
0
0
0
0
0
0
0.0625
0.127273
55
3
32
18.333333
0.583333
0.454545
0
0
0
0
0.208333
0
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
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
cb1bb33bd93e6ca40c9efa9ecbbd98b5e898c0bd
66
py
Python
server_python/config.py
dkvirus/py-novel
46a092c00c7134eba5ddbccbabdd3cf6cc00369f
[ "MIT" ]
145
2018-11-05T07:20:14.000Z
2022-01-05T01:28:44.000Z
server_python/config.py
xusos/py-novel
c7d0ec2bdfd5a8398b27a2d02ffd811041ae1592
[ "MIT" ]
42
2018-10-05T11:29:06.000Z
2019-11-21T12:31:21.000Z
server_python/config.py
xusos/py-novel
c7d0ec2bdfd5a8398b27a2d02ffd811041ae1592
[ "MIT" ]
49
2018-10-30T08:02:53.000Z
2021-09-11T07:37:41.000Z
# config.py # encoding:utf-8 DEBUG = True JSON_AS_ASCII = False
11
21
0.712121
11
66
4.090909
1
0
0
0
0
0
0
0
0
0
0
0.018519
0.181818
66
5
22
13.2
0.814815
0.363636
0
0
0
0
0
0
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
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
cb2ba17dbfbfd04212662a9ec488b257532e97e1
591
py
Python
the_josephus_problem02.py
manofern/the-josephus-problem
3cffae8365df0ac8f2e22533cbd2c636ed8dfb53
[ "MIT" ]
null
null
null
the_josephus_problem02.py
manofern/the-josephus-problem
3cffae8365df0ac8f2e22533cbd2c636ed8dfb53
[ "MIT" ]
null
null
null
the_josephus_problem02.py
manofern/the-josephus-problem
3cffae8365df0ac8f2e22533cbd2c636ed8dfb53
[ "MIT" ]
null
null
null
num = 42 list_of_numbers = [] for i in range(1, num+1): list_of_numbers.append(i) print(list_of_numbers) death = 3 for i in list_of_numbers: if i == num: if i == death: print("XX") else: print(i) elif i < 10: if i == death: print(f"XX", end=" -...
16.885714
37
0.411168
79
591
2.974684
0.278481
0.06383
0.221277
0.221277
0.314894
0.314894
0.314894
0.212766
0
0
0
0.033133
0.43824
591
34
38
17.382353
0.674699
0
0
0.518519
0
0
0.040678
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
cb36dc992596135b80545f02d3812d0a69b4f67c
2,044
py
Python
aliyun-python-sdk-csb/aliyunsdkcsb/request/v20171118/FindApproveServiceListRequest.py
xiaozhao1/aliyun-openapi-python-sdk
7297b69619fbe18a053ce552df9ab378b7c5719f
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-csb/aliyunsdkcsb/request/v20171118/FindApproveServiceListRequest.py
xiaozhao1/aliyun-openapi-python-sdk
7297b69619fbe18a053ce552df9ab378b7c5719f
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-csb/aliyunsdkcsb/request/v20171118/FindApproveServiceListRequest.py
xiaozhao1/aliyun-openapi-python-sdk
7297b69619fbe18a053ce552df9ab378b7c5719f
[ "Apache-2.0" ]
1
2021-01-26T05:01:42.000Z
2021-01-26T05:01:42.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
33.508197
81
0.762231
277
2,044
5.458484
0.371841
0.039683
0.055556
0.06746
0.123016
0.123016
0.123016
0
0
0
0
0.006818
0.138943
2,044
61
82
33.508197
0.852273
0.368885
0
0
0
0
0.128745
0.017814
0
0
0
0
0
1
0.448276
false
0
0.034483
0.206897
0.724138
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
cb4344869c1da4c69be005184747d36f3931c4ca
1,603
py
Python
source/framework/python/test/to_numpy_test.py
pcraster/lue
e64c18f78a8b6d8a602b7578a2572e9740969202
[ "MIT" ]
1
2019-04-14T15:51:12.000Z
2019-04-14T15:51:12.000Z
source/framework/python/test/to_numpy_test.py
pcraster/lue
e64c18f78a8b6d8a602b7578a2572e9740969202
[ "MIT" ]
262
2016-08-11T10:12:02.000Z
2020-10-13T18:09:16.000Z
source/framework/python/test/to_numpy_test.py
pcraster/lue
e64c18f78a8b6d8a602b7578a2572e9740969202
[ "MIT" ]
1
2020-03-11T09:49:41.000Z
2020-03-11T09:49:41.000Z
import lue.framework as lfr import lue_test import numpy as np def setUpModule(): lue_test.start_hpx_runtime() def tearDownModule(): return lue_test.stop_hpx_runtime() class ToNumPyTest(lue_test.TestCase): @lue_test.framework_test_case def test_array(self): array_shape = (60, 40) ...
27.637931
97
0.676856
225
1,603
4.537778
0.222222
0.107738
0.047013
0.058766
0.729677
0.729677
0.705191
0.674829
0.632713
0.562194
0
0.026549
0.224579
1,603
57
98
28.122807
0.794851
0.028072
0
0.540541
0
0
0
0
0
0
0
0
0.135135
1
0.135135
false
0
0.081081
0
0.27027
0
0
0
0
null
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
cb4d6065d60c4afb58ad10ab1458d72c382b24ce
1,797
py
Python
components/geniuswrapper.py
JLiekenbrock/lyrics-visualiser
dedc3159296816760565300a31ad455641da2158
[ "MIT" ]
null
null
null
components/geniuswrapper.py
JLiekenbrock/lyrics-visualiser
dedc3159296816760565300a31ad455641da2158
[ "MIT" ]
null
null
null
components/geniuswrapper.py
JLiekenbrock/lyrics-visualiser
dedc3159296816760565300a31ad455641da2158
[ "MIT" ]
null
null
null
import lyricsgenius # wrapper for lyrics which remembers last search # if there are several providers implemented this class should be inherited class geniuslyrics: """ Class for searching for lyrics """ def __init__(self,_token = "u41cjDZINLUj4yX8g6x-4BaejLoZtqel0vN-jEsXag4gjfp85C9NA0oxzaf9Oxk1",_time...
32.672727
137
0.674457
198
1,797
5.69697
0.277778
0.049645
0.062057
0.044326
0.035461
0
0
0
0
0
0
0.013383
0.25153
1,797
55
138
32.672727
0.825279
0.084585
0
0.2
0
0
0.039288
0.039288
0
0
0
0
0
1
0.25
false
0
0.025
0.125
0.45
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
cb88e00bb0c20efde3cae16030f83756b0c816ab
291
py
Python
quora/wsgi.py
alexricheburton/gittest
c8ff102a323716a494dc1b7a7f9a10a15bc9d85f
[ "MIT" ]
116
2016-02-15T00:41:02.000Z
2022-02-12T09:01:53.000Z
quora/wsgi.py
dynamikcodez/quora-clone
c8ff102a323716a494dc1b7a7f9a10a15bc9d85f
[ "MIT" ]
3
2016-04-21T00:37:11.000Z
2020-02-14T22:08:29.000Z
quora/wsgi.py
dynamikcodez/quora-clone
c8ff102a323716a494dc1b7a7f9a10a15bc9d85f
[ "MIT" ]
65
2016-05-28T00:04:44.000Z
2022-03-23T09:46:53.000Z
import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "quora.settings") from django.core.wsgi import get_wsgi_application from dj_static import Cling from whitenoise.django import DjangoWhiteNoise application = Cling(get_wsgi_application()) application = DjangoWhiteNoise(application)
29.1
65
0.845361
36
291
6.638889
0.5
0.058577
0.150628
0
0
0
0
0
0
0
0
0
0.082474
291
9
66
32.333333
0.895131
0
0
0
0
0
0.123711
0.075601
0
0
0
0
0
1
0
false
0
0.571429
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
cb9925a5fef2157ca68c024166a270405960b432
346
py
Python
IT Workshop on Python Lab Scripts/4c-ii Selection sort.py
AswinBarath/IT-Workshop-on-Python
07392c849546b0fec8c14a41ee8a2327c598345d
[ "MIT" ]
null
null
null
IT Workshop on Python Lab Scripts/4c-ii Selection sort.py
AswinBarath/IT-Workshop-on-Python
07392c849546b0fec8c14a41ee8a2327c598345d
[ "MIT" ]
null
null
null
IT Workshop on Python Lab Scripts/4c-ii Selection sort.py
AswinBarath/IT-Workshop-on-Python
07392c849546b0fec8c14a41ee8a2327c598345d
[ "MIT" ]
null
null
null
array = list(map(int, input('Enter the array of integers to be sorted(separated by spaces):').split())) for i in range(len(array)): min_idx = i for j in range(i + 1, len(array)): if array[min_idx] > array[j]: min_idx = j array[i], array[min_idx] = array[min_idx], array[i] print("Sorted ...
31.454545
103
0.621387
59
346
3.559322
0.474576
0.142857
0.209524
0.228571
0
0
0
0
0
0
0
0.003704
0.219653
346
10
104
34.6
0.774074
0
0
0
0
0
0.225434
0
0
0
0
0
0
1
0
false
0
0
0
0
0.222222
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
cb9efd7b6c5f27d56ddaa15195456dd9d292c5b9
1,077
py
Python
pyclesperanto_prototype/_tier0/_available_device_names.py
tlambert-forks/pyclesperanto_prototype
aea964a75e691f19b7753040daa8b276d57ccf36
[ "BSD-3-Clause" ]
64
2020-03-18T12:11:22.000Z
2022-03-31T08:19:18.000Z
pyclesperanto_prototype/_tier0/_available_device_names.py
clEsperanto/pyclesperanto_prototype
3dc09daf3f2068b5b7dab897d617ced8f1e3b741
[ "BSD-3-Clause" ]
148
2020-05-14T06:14:11.000Z
2022-03-26T15:02:31.000Z
pyclesperanto_prototype/_tier0/_available_device_names.py
clEsperanto/pyclesperanto_prototype
3dc09daf3f2068b5b7dab897d617ced8f1e3b741
[ "BSD-3-Clause" ]
16
2020-05-31T00:53:44.000Z
2022-03-23T13:20:57.000Z
from .._tier0._device import filter_devices from typing import List def available_device_names(dev_type: str = None, score_key = None) -> List[str]: """Retrieve a list of names of available OpenCL-devices Parameters ---------- dev_type : str 'cpu', 'gpu', or None; None means any type of device...
31.676471
80
0.666667
139
1,077
4.964029
0.352518
0.111594
0.086957
0.1
0.146377
0.107246
0.107246
0
0
0
0
0.001186
0.21727
1,077
34
81
31.676471
0.817319
0.634169
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
cba3ee468728c6015b58e90d45bd5e3580675d99
645
py
Python
src/html_http_dao.py
Alan-Greene/wcag
bd502eae346dad85b0c64fb4e0b59c1aa85a0f19
[ "MIT" ]
null
null
null
src/html_http_dao.py
Alan-Greene/wcag
bd502eae346dad85b0c64fb4e0b59c1aa85a0f19
[ "MIT" ]
null
null
null
src/html_http_dao.py
Alan-Greene/wcag
bd502eae346dad85b0c64fb4e0b59c1aa85a0f19
[ "MIT" ]
2
2020-05-28T22:10:58.000Z
2020-05-28T22:11:58.000Z
import requests class HtmlHttpDao(): def get_html(self, url): try: html = requests.get(url,timeout=3) html.raise_for_status() return html.text except requests.exceptions.RequestException as err: print ("Html Http Dao Fatal Error:", err) excep...
33.947368
59
0.623256
75
645
5.32
0.44
0.140351
0.240602
0.160401
0
0
0
0
0
0
0
0.002193
0.293023
645
18
60
35.833333
0.872807
0
0
0
0
0
0.170807
0
0
0
0
0
0
1
0.066667
false
0
0.066667
0
0.266667
0.266667
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
cba9fc39b8e8d4f31911bf4bcef0a5a33f505c02
61
py
Python
Utils/UserGroups.py
Mihai925/EduCoding-Legacy
7c6de105deb186c3442f8d7f9f1b9f99708f8fb6
[ "MIT" ]
null
null
null
Utils/UserGroups.py
Mihai925/EduCoding-Legacy
7c6de105deb186c3442f8d7f9f1b9f99708f8fb6
[ "MIT" ]
null
null
null
Utils/UserGroups.py
Mihai925/EduCoding-Legacy
7c6de105deb186c3442f8d7f9f1b9f99708f8fb6
[ "MIT" ]
null
null
null
__author__ = 'varun' TEACHER = 'Teacher' STUDENT = 'Student'
15.25
20
0.704918
6
61
6.5
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.147541
61
4
21
15.25
0.75
0
0
0
0
0
0.306452
0
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
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
cbaa8ea4b8d39b8d85ad40f761dca49b3734c6da
1,472
py
Python
core/schema/category.py
1uy31/learning-diary
80a5dd29a8a5c0718f7e5129d8e95d1ece40e136
[ "MIT" ]
null
null
null
core/schema/category.py
1uy31/learning-diary
80a5dd29a8a5c0718f7e5129d8e95d1ece40e136
[ "MIT" ]
null
null
null
core/schema/category.py
1uy31/learning-diary
80a5dd29a8a5c0718f7e5129d8e95d1ece40e136
[ "MIT" ]
null
null
null
import graphene from graphene import relay from graphene_sqlalchemy import SQLAlchemyObjectType from core.models import Category as CategoryModel from core.models import CategoryConnector category_connector = CategoryConnector() class CategoryNode(SQLAlchemyObjectType): class Meta: model = CategoryModel...
24.949153
68
0.658967
143
1,472
6.601399
0.328671
0.090042
0.029661
0.042373
0.497881
0.497881
0.497881
0.497881
0.271186
0.271186
0
0
0.263587
1,472
58
69
25.37931
0.870849
0.095109
0
0.322581
0
0
0
0
0
0
0
0.034483
0
1
0.064516
false
0
0.16129
0
0.548387
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
1
0
0
2
cbb2aff5fa646beddc9851dfc595d18baa91688b
1,826
py
Python
snap/models.py
Imma7/Snap
b5d3895ff7feb2a365c63aa1f48d13c5ee4344e7
[ "MIT" ]
null
null
null
snap/models.py
Imma7/Snap
b5d3895ff7feb2a365c63aa1f48d13c5ee4344e7
[ "MIT" ]
4
2020-06-05T18:37:23.000Z
2021-09-07T23:55:59.000Z
snap/models.py
Imma7/Snap
b5d3895ff7feb2a365c63aa1f48d13c5ee4344e7
[ "MIT" ]
null
null
null
from django.db import models import datetime as dt # Create your models here. class Category(models.Model): category_name = models.CharField(max_length = 50) # image = models.ForeignKey(Image) def __str__(self): return self.category_name class Location(models.Model): location_name = models....
26.085714
82
0.673056
219
1,826
5.351598
0.278539
0.071672
0.054608
0.056314
0.225256
0.129693
0.129693
0.129693
0.129693
0.129693
0
0.005739
0.236583
1,826
70
83
26.085714
0.835007
0.049288
0
0.3125
0
0
0.00981
0
0
0
0
0
0
1
0.25
false
0
0.041667
0.0625
0.6875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
cbc4e45a278ad2841e9741eb96d606f27a3888be
1,271
py
Python
pf_flask/pff_utils.py
problemfighter/pf-flask
c13a0d13284506cd5543ba596cc1077fe85c1075
[ "Apache-2.0" ]
5
2021-09-14T18:37:01.000Z
2022-01-06T06:44:16.000Z
pf_flask/pff_utils.py
problemfighter/pf-flask
c13a0d13284506cd5543ba596cc1077fe85c1075
[ "Apache-2.0" ]
null
null
null
pf_flask/pff_utils.py
problemfighter/pf-flask
c13a0d13284506cd5543ba596cc1077fe85c1075
[ "Apache-2.0" ]
null
null
null
import os.path import sys from functools import reduce from os.path import exists from werkzeug.utils import ImportStringError def import_from_string(import_name: str, silent: bool = False): import_name = import_name.replace(":", ".") try: try: __import__(import_name) except Import...
25.938776
85
0.63572
167
1,271
4.60479
0.377246
0.104031
0.039012
0.036411
0
0
0
0
0
0
0
0.003233
0.269866
1,271
48
86
26.479167
0.825431
0
0
0.081081
0
0
0.003147
0
0
0
0
0
0
1
0.108108
false
0
0.432432
0.027027
0.72973
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
cbcca23a7e0b3b6ea38a993a34eab833f283c1d3
544
py
Python
template/tests/test_calc_mass.py
ajmaurais/peptide_analyzer
62f37d88fefd0a8cfb57a8c157cfc85692956360
[ "MIT" ]
null
null
null
template/tests/test_calc_mass.py
ajmaurais/peptide_analyzer
62f37d88fefd0a8cfb57a8c157cfc85692956360
[ "MIT" ]
null
null
null
template/tests/test_calc_mass.py
ajmaurais/peptide_analyzer
62f37d88fefd0a8cfb57a8c157cfc85692956360
[ "MIT" ]
null
null
null
import unittest from collections import Counter import load_dat import std_functions from molecular_formula import calc_mass class TestCalcMass(unittest.TestCase): def test_calc_mass(self): for i, row in load_dat.dat_std.iterrows(): self.assertAlmostEqual(float(row['mass']), ...
28.631579
96
0.604779
60
544
5.133333
0.566667
0.068182
0
0
0
0
0
0
0
0
0
0.002688
0.316176
544
18
97
30.222222
0.825269
0
0
0
0
0
0.027624
0
0
0
0
0
0.076923
1
0.076923
false
0
0.384615
0
0.538462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
cbccfeeb7952c594fcd0df121518a5941154650f
518
py
Python
gan/train.py
TIBHannover/formula_gan
fa01c0101938de254baae8facf479c965ec93ced
[ "MIT" ]
6
2021-06-22T09:53:44.000Z
2022-01-26T03:56:13.000Z
gan/train.py
ai-motive/formula_gan
fa01c0101938de254baae8facf479c965ec93ced
[ "MIT" ]
2
2021-07-14T16:57:42.000Z
2021-09-15T03:05:07.000Z
gan/train.py
ai-motive/formula_gan
fa01c0101938de254baae8facf479c965ec93ced
[ "MIT" ]
2
2021-07-27T02:56:23.000Z
2021-08-24T03:57:29.000Z
import sys import os import re import argparse import logging import torch from pytorch_lightning import Trainer import wap_model import formula_model from config import Config def main(): config = Config() print(config.to_args()) print(vars(config.to_flat_args())) model = formula_model.FormulaOC...
16.709677
89
0.727799
71
518
5.042254
0.464789
0.089385
0.067039
0.089385
0
0
0
0
0
0
0
0
0.179537
518
30
90
17.266667
0.842353
0.073359
0
0
0
0
0.016736
0
0
0
0
0
0
1
0.052632
false
0
0.526316
0
0.578947
0.105263
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
cbd410cde941555b48d5b1cc68a98dede4eed3c7
240
py
Python
examples/test_context.py
stephenpardy/scopr
8d09721bb6372b92ef47a96bc0e6a8c1bb690faf
[ "MIT" ]
null
null
null
examples/test_context.py
stephenpardy/scopr
8d09721bb6372b92ef47a96bc0e6a8c1bb690faf
[ "MIT" ]
null
null
null
examples/test_context.py
stephenpardy/scopr
8d09721bb6372b92ef47a96bc0e6a8c1bb690faf
[ "MIT" ]
null
null
null
from scopr import scope a = 1 def test(): return "Hello, World!" with scope(): b = 1 a = 2 def test(): return "Goodbye, World!" print(test()) print("a: {}".format(a)) print(test()) print("b: {}".format(b))
12
32
0.529167
34
240
3.735294
0.5
0.110236
0.204724
0
0
0
0
0
0
0
0
0.017143
0.270833
240
19
33
12.631579
0.708571
0
0
0.307692
0
0
0.158333
0
0
0
0
0
0
1
0.153846
false
0
0.076923
0.153846
0.384615
0.307692
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
2
cbd553f42c41f4d58d7a4b4bcf1edceda9edeef0
260
py
Python
project1.py
chanseeliu/jupyter-notebook
ff4db4f6c3c6238d16eb061ca49b0b15f204e401
[ "BSD-2-Clause" ]
null
null
null
project1.py
chanseeliu/jupyter-notebook
ff4db4f6c3c6238d16eb061ca49b0b15f204e401
[ "BSD-2-Clause" ]
null
null
null
project1.py
chanseeliu/jupyter-notebook
ff4db4f6c3c6238d16eb061ca49b0b15f204e401
[ "BSD-2-Clause" ]
null
null
null
numbers = [1,2,3,4,5,6] bignumbers = [a*1000 for a in numbers] bign=[str(item) for item in bignumbers] print (bignumbers) print bign print "\t".join([str(i) for i in bign]) #m="\t".join([str(i) for i in bign]) #print m #mm=[int(p) for p in bign] #print mm
17.333333
39
0.646154
54
260
3.111111
0.425926
0.160714
0.095238
0.107143
0.22619
0.22619
0.22619
0.22619
0
0
0
0.046083
0.165385
260
14
40
18.571429
0.728111
0.288462
0
0
0
0
0.011236
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
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
1
0
2
cbd72a4509b32b8d9afce2c944fe60484d2625ec
191
py
Python
examples/consts/linewidth.py
strakam/PyEasyGraphics
57a586aa92385d26725d4ec3d61b2bbbe970195d
[ "BSD-3-Clause" ]
5
2019-09-23T05:15:47.000Z
2021-01-17T08:06:47.000Z
examples/consts/linewidth.py
strakam/PyEasyGraphics
57a586aa92385d26725d4ec3d61b2bbbe970195d
[ "BSD-3-Clause" ]
3
2019-05-03T05:25:17.000Z
2021-04-15T04:53:16.000Z
examples/consts/linewidth.py
strakam/PyEasyGraphics
57a586aa92385d26725d4ec3d61b2bbbe970195d
[ "BSD-3-Clause" ]
4
2019-05-04T13:42:40.000Z
2021-04-15T10:38:48.000Z
from easygraphics import * def main(): init_graph(800, 600) line(50, 50, 400, 400) set_line_width(20) line(50, 400, 400, 50) pause() close_graph() easy_run(main)
12.733333
26
0.612565
29
191
3.862069
0.655172
0.107143
0.142857
0
0
0
0
0
0
0
0
0.197183
0.256545
191
15
27
12.733333
0.591549
0
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
true
0
0.111111
0
0.222222
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
0
0
0
0
0
0
2
cbd9aecff8c91d7b8311d5176e7b4be93967db35
80
py
Python
Ago-Dic-2019/Ricardo_Romero_Medina/Practica1/Practica_4-7.py
Arbupa/DAS_Sistemas
52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1
[ "MIT" ]
41
2017-09-26T09:36:32.000Z
2022-03-19T18:05:25.000Z
Ago-Dic-2019/Ricardo_Romero_Medina/Practica1/Practica_4-7.py
Arbupa/DAS_Sistemas
52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1
[ "MIT" ]
67
2017-09-11T05:06:12.000Z
2022-02-14T04:44:04.000Z
Ago-Dic-2019/Ricardo_Romero_Medina/Practica1/Practica_4-7.py
Arbupa/DAS_Sistemas
52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1
[ "MIT" ]
210
2017-09-01T00:10:08.000Z
2022-03-19T18:05:12.000Z
numbers=list(range(3,31,3)) for i in range(len(numbers)): print(numbers[i])
20
29
0.675
15
80
3.6
0.666667
0
0
0
0
0
0
0
0
0
0
0.057143
0.125
80
4
30
20
0.714286
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
cbe2ab90b5dc7de955133df9d4c742fc2e889c5f
1,416
py
Python
ddht/base_message.py
pipermerriam/ddht
7e0b66ac96591a590e40c7e15d880af01e1f1a36
[ "MIT" ]
2
2021-06-20T19:47:22.000Z
2021-07-04T17:16:29.000Z
ddht/base_message.py
pipermerriam/ddht
7e0b66ac96591a590e40c7e15d880af01e1f1a36
[ "MIT" ]
null
null
null
ddht/base_message.py
pipermerriam/ddht
7e0b66ac96591a590e40c7e15d880af01e1f1a36
[ "MIT" ]
null
null
null
from dataclasses import dataclass from typing import Generic, TypeVar from eth_typing import NodeID from eth_utils import int_to_big_endian import rlp from ddht.endpoint import Endpoint class BaseMessage(rlp.Serializable): # type: ignore message_type: int def to_bytes(self) -> bytes: return b"".jo...
26.716981
81
0.737994
156
1,416
6.275641
0.301282
0.024515
0.016343
0.028601
0.132789
0.132789
0.132789
0.132789
0.132789
0.132789
0
0
0.172316
1,416
52
82
27.230769
0.835324
0.008475
0
0.166667
0
0
0.10271
0.085592
0
0
0
0
0
1
0.111111
false
0
0.166667
0.111111
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
cbe507017075204b30d833a3fe193a57c90c9411
12,547
py
Python
homeassistant/external/wink/pywink.py
hemantsangwan/home-assistant
28b397030d2f66bb084f80d8a237d0a2c11bac79
[ "MIT" ]
2
2021-05-25T01:08:57.000Z
2022-01-09T21:02:46.000Z
homeassistant/external/wink/pywink.py
hemantsangwan/home-assistant
28b397030d2f66bb084f80d8a237d0a2c11bac79
[ "MIT" ]
null
null
null
homeassistant/external/wink/pywink.py
hemantsangwan/home-assistant
28b397030d2f66bb084f80d8a237d0a2c11bac79
[ "MIT" ]
1
2022-02-04T10:11:57.000Z
2022-02-04T10:11:57.000Z
__author__ = 'JOHNMCL' import json import time import requests baseUrl = "https://winkapi.quirky.com" headers = {} class wink_sensor_pod(object): """ represents a wink.py sensor json_obj holds the json stat at init (and if there is a refresh it's updated it's the native format for this objects methods...
30.677262
86
0.584522
1,363
12,547
5.119589
0.212032
0.034824
0.020493
0.023073
0.485956
0.433649
0.390656
0.348381
0.332044
0.313987
0
0.047715
0.288435
12,547
408
87
30.752451
0.733871
0.51853
0
0.437037
0
0
0.101644
0.003889
0
0
0
0
0
1
0.251852
false
0
0.022222
0.133333
0.474074
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
1daec62d97b74a2877bfb5a57c2361f944a9c395
658
py
Python
pandemic/chat/models.py
RubenBranco/Pandemic
21cc7c1c2245dd530761f0c928fd0f4817a005b9
[ "MIT" ]
1
2020-08-27T20:57:55.000Z
2020-08-27T20:57:55.000Z
pandemic/chat/models.py
RubenBranco/Pandemic
21cc7c1c2245dd530761f0c928fd0f4817a005b9
[ "MIT" ]
9
2020-06-05T18:26:04.000Z
2022-03-11T23:24:17.000Z
pandemic/chat/models.py
RubenBranco/Pandemic
21cc7c1c2245dd530761f0c928fd0f4817a005b9
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User from game.models import Session import uuid class Chat(models.Model): session = models.ForeignKey(Session, on_delete=models.CASCADE) def __str__(self): return f"session={self.session!s}" class Message(models.Model): chat = m...
32.9
91
0.740122
91
658
5.153846
0.450549
0.102345
0.089552
0.134328
0.072495
0
0
0
0
0
0
0.005329
0.144377
658
19
92
34.631579
0.827709
0
0
0.133333
0
0
0.136778
0.071429
0
0
0
0
0
1
0.133333
false
0
0.266667
0.133333
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
1dc7176364b3b4cbebb62898d3768742dd306597
602
py
Python
B03898_02_Codes/B03898_02_02.py
prakharShuklaOfficial/Mastering-Python-for-Finance-source-codes
7b3a74a0dc78aaa977f8fe752cc3fa4f54063f33
[ "MIT" ]
446
2015-06-10T06:15:51.000Z
2022-03-28T22:16:03.000Z
B03898_02_Codes/B03898_02_02.py
prakharShuklaOfficial/Mastering-Python-for-Finance-source-codes
7b3a74a0dc78aaa977f8fe752cc3fa4f54063f33
[ "MIT" ]
8
2016-11-25T09:27:15.000Z
2020-07-14T21:00:26.000Z
B03898_02_Codes/B03898_02_02.py
prakharShuklaOfficial/Mastering-Python-for-Finance-source-codes
7b3a74a0dc78aaa977f8fe752cc3fa4f54063f33
[ "MIT" ]
277
2015-06-11T07:50:18.000Z
2022-03-22T12:54:46.000Z
""" README ====== This is a Python code. ====== """ """ Least squares regression with statsmodels """ import numpy as np import statsmodels.api as sm # Generate some sample data num_periods = 9 all_values = np.array([np.random.random(8) for i in range(num_periods)]) # Filter the data y_values ...
23.153846
71
0.686047
93
602
4.311828
0.591398
0.069825
0.074813
0
0
0
0
0
0
0
0
0.008247
0.194352
602
25
72
24.08
0.818557
0.225914
0
0
1
0
0
0
0
0
0
0
0
0
null
null
0
0.181818
null
null
0.181818
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
1dd442309955e451e7fdbc4e6413186ad94be8e3
350
py
Python
test/conftest.py
Thhhza/sqlalchemy
f2b267043e17b2b769dc2a5b8139f6be2a3d4e84
[ "MIT" ]
1
2019-06-22T08:17:03.000Z
2019-06-22T08:17:03.000Z
test/conftest.py
Thhhza/sqlalchemy
f2b267043e17b2b769dc2a5b8139f6be2a3d4e84
[ "MIT" ]
1
2021-08-07T12:14:52.000Z
2021-08-07T12:14:52.000Z
test/conftest.py
Thhhza/sqlalchemy
f2b267043e17b2b769dc2a5b8139f6be2a3d4e84
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ pytest plugin script. This script is an extension to py.test which installs SQLAlchemy's testing plugin into the local environment. """ import sys from os import path for pth in ['../lib']: sys.path.insert(0, path.join(path.dirname(path.abspath(__file__)), pth)) from sqlalchemy.testing...
21.875
76
0.742857
53
350
4.830189
0.735849
0.101563
0
0
0
0
0
0
0
0
0
0.003311
0.137143
350
15
77
23.333333
0.844371
0.437143
0
0
0
0
0.031915
0
0
0
0
0
0
1
0
false
0
0.6
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
1de614e35301689eb73b2c0b0cf97a5825fd08ce
3,162
py
Python
tests/test_codemelli.py
HanifBirgani/codemelli
7dc1768bf7889ea92026bc8abcc13745756574c4
[ "MIT" ]
3
2021-08-10T07:09:28.000Z
2022-02-05T17:35:10.000Z
tests/test_codemelli.py
hanifbirgani/codemelli
7dc1768bf7889ea92026bc8abcc13745756574c4
[ "MIT" ]
null
null
null
tests/test_codemelli.py
hanifbirgani/codemelli
7dc1768bf7889ea92026bc8abcc13745756574c4
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Tests for `codemelli` package.""" import pytest from re import search from codemelli import codemelli def test_city_codes_data_returns_dict_type(): assert isinstance(codemelli.city_codes_data(), dict) def test_validator_valid_input_is_true(): assert codemelli.validator(1493933957)...
26.35
75
0.773877
409
3,162
5.537897
0.200489
0.071082
0.098896
0.137748
0.698896
0.671523
0.54702
0.403532
0.212804
0
0
0.040411
0.139152
3,162
119
76
26.571429
0.791697
0.016129
0
0.289855
0
0
0.020934
0
0
0
0
0
0.130435
1
0.333333
true
0
0.043478
0
0.376812
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
0
0
0
0
0
2
1dec33f90621b8a0762ab48b1cf86d32de2a6306
212
py
Python
scripts/npc/goNinja.py
Snewmy/swordie
ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17
[ "MIT" ]
9
2021-04-26T11:59:29.000Z
2021-12-20T13:15:27.000Z
scripts/npc/goNinja.py
Snewmy/swordie
ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17
[ "MIT" ]
null
null
null
scripts/npc/goNinja.py
Snewmy/swordie
ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17
[ "MIT" ]
6
2021-07-14T06:32:05.000Z
2022-02-06T02:32:56.000Z
# Palanquin (9110107) | Outside Ninja Castle (800040000) mushroomShrine = 800000000 response = sm.sendAskYesNo("Would you like to go to #m" + str(mushroomShrine) + "m#?") if response: sm.warp(mushroomShrine)
35.333333
86
0.731132
26
212
5.961538
0.769231
0.129032
0
0
0
0
0
0
0
0
0
0.138122
0.146226
212
6
87
35.333333
0.718232
0.254717
0
0
0
0
0.184713
0
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
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
1df18eef8972b5159c3f8fb81d20e90ffd69da7a
543
py
Python
backend/api/views.py
ankitgehlot123/TheDevCom_ProjectChatroom
6351412d98db13d4c9fc805d6f5e6bf6e9d38725
[ "MIT" ]
null
null
null
backend/api/views.py
ankitgehlot123/TheDevCom_ProjectChatroom
6351412d98db13d4c9fc805d6f5e6bf6e9d38725
[ "MIT" ]
null
null
null
backend/api/views.py
ankitgehlot123/TheDevCom_ProjectChatroom
6351412d98db13d4c9fc805d6f5e6bf6e9d38725
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.utils.safestring import mark_safe from django.http import HttpResponse import json alias_set = set() def home(request): return render(request,'home.html',{}) def room(request, room_name, user): return render(request, 'room.html', { 'alias': mark_safe(js...
23.608696
45
0.699816
73
543
5.09589
0.438356
0.086022
0.102151
0
0
0
0
0
0
0
0
0.013699
0.19337
543
23
46
23.608696
0.835616
0
0
0
0
0
0.042279
0
0
0
0
0
0
1
0.166667
false
0
0.222222
0.111111
0.611111
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
1df7935d8118c59d3b1dbd34c15e335ef0fc0468
501
py
Python
src/misc/gpu_running.py
Brunopaes/python-sandbox
c51f716785bf11789b13f9bb24bfd76108eaec08
[ "MIT" ]
5
2020-08-04T00:13:06.000Z
2022-03-18T09:18:29.000Z
src/misc/gpu_running.py
Brunopaes/python-sandbox
c51f716785bf11789b13f9bb24bfd76108eaec08
[ "MIT" ]
null
null
null
src/misc/gpu_running.py
Brunopaes/python-sandbox
c51f716785bf11789b13f9bb24bfd76108eaec08
[ "MIT" ]
2
2020-06-26T13:42:17.000Z
2020-08-04T00:13:10.000Z
#!-*- coding: utf8 -*- from numba import jit import datetime import numpy def func(a): for i in range(len(a)): a[i] += 1 @jit def func2(a): for i in range(len(a)): a[i] += 1 if __name__ == "__main__": n_ = numpy.ones(1000000000, dtype=numpy.float64) start = datetime.datetime.now(...
17.275862
58
0.600798
71
501
4.084507
0.450704
0.22069
0.262069
0.048276
0.317241
0.131034
0.131034
0.131034
0.131034
0.131034
0
0.044386
0.235529
501
28
59
17.892857
0.712794
0.041916
0
0.333333
0
0
0.060543
0
0
0
0
0
0
1
0.111111
false
0
0.166667
0
0.277778
0.111111
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
3813ff86e93a113deb0f9b85cc43bfbee87e8ab2
2,555
py
Python
books/migrations/0008_auto_20210621_0054.py
Aki-qiu/DATA130039.01-MyBookDB
d853bfc1a26a1b0ea3c8d08bb572a24a25395ec6
[ "Apache-2.0" ]
3
2021-06-06T21:24:23.000Z
2021-07-04T04:33:23.000Z
books/migrations/0008_auto_20210621_0054.py
Aki-qiu/DATA130039.01-MyBookDB
d853bfc1a26a1b0ea3c8d08bb572a24a25395ec6
[ "Apache-2.0" ]
null
null
null
books/migrations/0008_auto_20210621_0054.py
Aki-qiu/DATA130039.01-MyBookDB
d853bfc1a26a1b0ea3c8d08bb572a24a25395ec6
[ "Apache-2.0" ]
1
2021-06-17T16:55:36.000Z
2021-06-17T16:55:36.000Z
# Generated by Django 3.2.3 on 2021-06-20 16:54 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('publishers', '0002_auto_20210608_2151'), ('writers', '0004_auto_20210621_0054'), ('books', '0007_alter_books...
35.985915
140
0.597652
249
2,555
5.951807
0.313253
0.072874
0.103914
0.195682
0.506073
0.506073
0.377868
0.225371
0.225371
0.225371
0
0.033009
0.276712
2,555
70
141
36.5
0.768939
0.017613
0
0.5
1
0
0.176236
0.055821
0
0
0
0
0
1
0
false
0
0.03125
0
0.078125
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
3817288d26c496bd4100f9171c57c59460e997e1
335
py
Python
competitive-programming/codeforces/edu/binary-search/step1b.py
sanchopanca/coding-for-pleasure
fed1910e8a5a4241bd55aed333afd79b4405a71d
[ "MIT" ]
null
null
null
competitive-programming/codeforces/edu/binary-search/step1b.py
sanchopanca/coding-for-pleasure
fed1910e8a5a4241bd55aed333afd79b4405a71d
[ "MIT" ]
null
null
null
competitive-programming/codeforces/edu/binary-search/step1b.py
sanchopanca/coding-for-pleasure
fed1910e8a5a4241bd55aed333afd79b4405a71d
[ "MIT" ]
null
null
null
def bin_search_lower(a, x): l, r = -1, len(a) while l + 1 < r: m = (l + r) // 2 if a[m] <= x: l = m else: r = m return l n, k = map(int, input().split()) array = list(map(int, input().split())) for x in map(int, input().split()): print(bin_search_lower(...
19.705882
41
0.456716
56
335
2.660714
0.482143
0.120805
0.221477
0.322148
0
0
0
0
0
0
0
0.018519
0.355224
335
16
42
20.9375
0.671296
0
0
0
0
0
0
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.153846
0.076923
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
382703898f45170e78826a944f1a9e8fbd026883
996
py
Python
moarri_profile_iacs/utils/enumeratings.py
moarri/moarri_profile_iacs
c0529fdd5fe1d2f14903c3466e281fe8898cbbb3
[ "Apache-2.0" ]
null
null
null
moarri_profile_iacs/utils/enumeratings.py
moarri/moarri_profile_iacs
c0529fdd5fe1d2f14903c3466e281fe8898cbbb3
[ "Apache-2.0" ]
null
null
null
moarri_profile_iacs/utils/enumeratings.py
moarri/moarri_profile_iacs
c0529fdd5fe1d2f14903c3466e281fe8898cbbb3
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018 Moarri Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
26.210526
74
0.693775
143
996
4.734266
0.657343
0.088626
0.038405
0.047267
0
0
0
0
0
0
0
0.011688
0.226908
996
37
75
26.918919
0.867532
0.571285
0
0
0
0
0.033981
0
0
0
0
0
0
1
0.214286
false
0
0.071429
0.071429
0.642857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
38366f63f47564af1c918f70904577718a39e190
497
py
Python
data/quantum/ts/g-bQOOHIsom/TS.py
goldmanm/butanol_paper_data
20d25a8287de63a762ac18d66d660c153325a2c7
[ "MIT" ]
null
null
null
data/quantum/ts/g-bQOOHIsom/TS.py
goldmanm/butanol_paper_data
20d25a8287de63a762ac18d66d660c153325a2c7
[ "MIT" ]
null
null
null
data/quantum/ts/g-bQOOHIsom/TS.py
goldmanm/butanol_paper_data
20d25a8287de63a762ac18d66d660c153325a2c7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- spinMultiplicity = 2 energy = { 'CCSD(T)-F12/cc-pVTZ-F12': MolproLog('TSN09_f12.out'), } frequencies = GaussianLog('ts3-freq.log') rotors = [HinderedRotor(scanLog=ScanLog('scan_0.log'), pivots=[4,10], top=[10,11,12,13,14], symmetry=1, fit='best'), HinderedRotor(scanLog=...
35.5
116
0.672032
79
497
4.177215
0.556962
0.181818
0.245455
0.281818
0.309091
0.309091
0.309091
0.309091
0.309091
0.309091
0
0.09628
0.080483
497
13
117
38.230769
0.625821
0.084507
0
0
0
0
0.198676
0.050773
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
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
2
697ebd4333e66a08d5ab0a574a5d5d3519853bd9
453
py
Python
ddpro_website/base_ui/admin.py
Rolloniel/ddpro_website_backend
eddf3cbfb32bd9dfdd7210f624ee29508cb1c67c
[ "MIT" ]
null
null
null
ddpro_website/base_ui/admin.py
Rolloniel/ddpro_website_backend
eddf3cbfb32bd9dfdd7210f624ee29508cb1c67c
[ "MIT" ]
2
2022-02-19T06:45:20.000Z
2022-02-27T10:45:04.000Z
ddpro_website/base_ui/admin.py
Rolloniel/ddpro_website_backend
eddf3cbfb32bd9dfdd7210f624ee29508cb1c67c
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import About, TeamMember, Product @admin.register(About) class AboutAdmin(admin.ModelAdmin): list_display = ['heading', 'text_html'] @admin.register(TeamMember) class TeamMemberAdmin(admin.ModelAdmin): list_display = ['first_name', 'last_name', 'image', 'priority'...
26.647059
75
0.750552
52
453
6.403846
0.557692
0.117117
0.171171
0.234234
0
0
0
0
0
0
0
0
0.108168
453
17
76
26.647059
0.824257
0
0
0
0
0
0.176211
0
0
0
0
0
0
1
0
false
0
0.181818
0
0.727273
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
697f8da753bb235bfb034e42eb040997f9370a53
1,093
py
Python
ingenico/connect/sdk/log/sys_out_communicator_logger.py
Ingenico-ePayments/connect-sdk-python2
d10ba6937680b7fbd17e95d13861fcc2c8f738bb
[ "MIT" ]
2
2017-01-24T09:19:31.000Z
2020-01-09T11:52:15.000Z
ingenico/connect/sdk/log/sys_out_communicator_logger.py
Ingenico-ePayments/connect-sdk-python2
d10ba6937680b7fbd17e95d13861fcc2c8f738bb
[ "MIT" ]
1
2018-04-30T10:08:48.000Z
2020-05-19T08:08:33.000Z
ingenico/connect/sdk/log/sys_out_communicator_logger.py
Ingenico-ePayments/connect-sdk-python2
d10ba6937680b7fbd17e95d13861fcc2c8f738bb
[ "MIT" ]
5
2016-09-15T10:39:09.000Z
2020-01-24T16:04:17.000Z
from __future__ import print_function from datetime import datetime from threading import Lock from ingenico.connect.sdk.log.python_communicator_logger import \ CommunicatorLogger class SysOutCommunicatorLogger(CommunicatorLogger): """ A communicator logger that prints its message to sys.stdout It i...
26.658537
82
0.702653
136
1,093
5.301471
0.536765
0.099861
0.038835
0.066574
0.088766
0
0
0
0
0
0
0
0.215919
1,093
40
83
27.325
0.841307
0.181153
0
0
0
0
0.020571
0
0
0
0
0
0
1
0.217391
false
0
0.173913
0.086957
0.608696
0.26087
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
698b8891e40be54024be64ebfad00abf94927aec
1,733
py
Python
setup.py
bhalevy/scylla-stress-orchestrator
89fb3f55a48af69bf0ea6d694b97fd4185503100
[ "Apache-2.0" ]
3
2021-04-06T16:06:41.000Z
2021-10-05T09:53:11.000Z
setup.py
bhalevy/scylla-stress-orchestrator
89fb3f55a48af69bf0ea6d694b97fd4185503100
[ "Apache-2.0" ]
32
2021-04-19T08:01:27.000Z
2021-12-08T12:38:44.000Z
setup.py
bhalevy/scylla-stress-orchestrator
89fb3f55a48af69bf0ea6d694b97fd4185503100
[ "Apache-2.0" ]
5
2021-05-18T18:12:38.000Z
2021-12-29T08:36:43.000Z
from setuptools import setup, find_packages setup( name='scyllaso', version='0.1.dev3', author='Peter Veentjer', author_email='peter.veentjer@scylladb.com', description='The Scylla Stress Orchestrator is Python 3 based framework for running various ' 'benchmark tools including cassa...
44.435897
102
0.683208
190
1,733
6.021053
0.457895
0.086538
0.083916
0.045455
0.390734
0.324301
0.324301
0.243881
0.243881
0.243881
0
0.005827
0.207732
1,733
38
103
45.605263
0.827385
0
0
0.108108
0
0
0.626659
0.2412
0
0
0
0
0
1
0
true
0
0.027027
0
0.027027
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
6991139f83e7f82ad37c12eb39f8814a407af79e
428
py
Python
OOP/classes.py
AndreiHustiuc/IT_Factory_Course
c6f3e4a9282a1c19c0f52c79f0c81f026814a02a
[ "MIT" ]
null
null
null
OOP/classes.py
AndreiHustiuc/IT_Factory_Course
c6f3e4a9282a1c19c0f52c79f0c81f026814a02a
[ "MIT" ]
null
null
null
OOP/classes.py
AndreiHustiuc/IT_Factory_Course
c6f3e4a9282a1c19c0f52c79f0c81f026814a02a
[ "MIT" ]
1
2022-03-16T10:39:03.000Z
2022-03-16T10:39:03.000Z
class Human: def __init__(self, name, age): self.name = name self.age = age def greeting(self): print(f"Hello {self.name}!") def get_name(self): return self.name def get_age(self): return self.age def set_age(self, age): self.ag...
15.285714
36
0.53972
61
428
3.622951
0.295082
0.144796
0.090498
0.126697
0
0
0
0
0
0
0
0.013889
0.327103
428
27
37
15.851852
0.753472
0
0
0.117647
0
0
0.056471
0
0
0
0
0
0
1
0.294118
false
0
0
0.117647
0.470588
0.176471
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
6993bf6a1ede8249b6ca28150c8c72724fa7c7c1
1,967
py
Python
src/zope/keyreference/testing.py
zopefoundation/zope.keyreference
8be39563e7f47f372144c14f7e9a4600bab6ad75
[ "ZPL-2.1" ]
1
2021-05-24T22:12:45.000Z
2021-05-24T22:12:45.000Z
src/zope/keyreference/testing.py
zopefoundation/zope.keyreference
8be39563e7f47f372144c14f7e9a4600bab6ad75
[ "ZPL-2.1" ]
9
2016-03-24T15:25:33.000Z
2020-08-07T12:50:42.000Z
src/zope/keyreference/testing.py
zopefoundation/zope.keyreference
8be39563e7f47f372144c14f7e9a4600bab6ad75
[ "ZPL-2.1" ]
2
2015-04-03T09:08:00.000Z
2016-03-26T20:51:03.000Z
############################################################################## # # Copyright (c) 2001, 2002 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # TH...
27.704225
78
0.615658
251
1,967
4.557769
0.370518
0.020979
0.061189
0.057692
0.259615
0.259615
0.259615
0.259615
0.212413
0.212413
0
0.006489
0.216573
1,967
70
79
28.1
0.735886
0.281139
0
0.171429
0
0
0.022857
0.022857
0
0
0
0
0
1
0.285714
false
0
0.085714
0.057143
0.714286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
699ca3bb341e12470b38aefb21b47fcbdfd99e19
111
py
Python
HeadFirstPython/code/chapter3/setTest.py
BlossomRain/Read
76332eac192b856090fac930cb0e8e8bd34d64c6
[ "Apache-2.0" ]
null
null
null
HeadFirstPython/code/chapter3/setTest.py
BlossomRain/Read
76332eac192b856090fac930cb0e8e8bd34d64c6
[ "Apache-2.0" ]
null
null
null
HeadFirstPython/code/chapter3/setTest.py
BlossomRain/Read
76332eac192b856090fac930cb0e8e8bd34d64c6
[ "Apache-2.0" ]
null
null
null
odds = {1, 3, 5, 7} evens = set([0, 2, 4, 6, 8]) print(odds.union(evens)) odds.intersection() odds.difference()
22.2
28
0.630631
20
111
3.5
0.8
0
0
0
0
0
0
0
0
0
0
0.09375
0.135135
111
5
29
22.2
0.635417
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.2
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
0
0
0
0
0
2
69a2e628982da79fe6615adbd325b88f5c7f655a
2,517
py
Python
src/design.py
pbishnupuri/cse518-final-project
efe289a3aab44cea58a1324d88c3a1b7bf75e5ab
[ "MIT" ]
null
null
null
src/design.py
pbishnupuri/cse518-final-project
efe289a3aab44cea58a1324d88c3a1b7bf75e5ab
[ "MIT" ]
null
null
null
src/design.py
pbishnupuri/cse518-final-project
efe289a3aab44cea58a1324d88c3a1b7bf75e5ab
[ "MIT" ]
null
null
null
# Will probably split into multiple files and then have app.py put it all together # QUESTION - Can we use ANNs??? Surely we should be able to right? ##### Graph # Characteristics of the graph # 1. Will be a complete graph # 2. Nodes represent a person's political stance # 3. Edges represent a news sou...
48.403846
140
0.673421
393
2,517
4.312977
0.483461
0.053097
0.028319
0.030089
0.134513
0.113274
0.113274
0.113274
0.113274
0.113274
0
0.022857
0.235201
2,517
52
141
48.403846
0.857662
0.880016
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
69ab5b922efaa9939118483148f73d1e16ffe934
331
py
Python
algs/TRKNN/test.py
mbs8/ENaN
092c52353600ebeae92177374fefa1c93548f63b
[ "MIT" ]
1
2020-11-04T17:35:27.000Z
2020-11-04T17:35:27.000Z
algs/TRKNN/test.py
mbs8/ENaN
092c52353600ebeae92177374fefa1c93548f63b
[ "MIT" ]
null
null
null
algs/TRKNN/test.py
mbs8/ENaN
092c52353600ebeae92177374fefa1c93548f63b
[ "MIT" ]
1
2020-11-04T17:35:31.000Z
2020-11-04T17:35:31.000Z
import trknn from sklearn import datasets dataset = datasets.load_iris() # dataset = datasets.load_breast_cancer() # dataset = datasets.load_boston() # dataset = datasets.load_diabetes() # dataset = datasets.load_digits() n = len(dataset.data) subset = trknn.run(dataset.data, dataset.target, 1.2) print(n) print(len(...
23.642857
53
0.752266
46
331
5.282609
0.5
0.308642
0.390947
0
0
0
0
0
0
0
0
0.010204
0.111782
331
14
54
23.642857
0.816327
0.422961
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0.285714
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
69afe4fcddba8489fbfe7106157ccf5880ef3b5d
27,377
py
Python
mtgcompiler/frontend/AST/statements.py
rmmilewi/mtgcompiler
b79b1608dbc1aa0b1eb427c8eb58dd40676b406d
[ "MIT" ]
4
2018-09-06T03:56:59.000Z
2021-10-30T21:41:37.000Z
mtgcompiler/frontend/AST/statements.py
rmmilewi/mtgcompiler
b79b1608dbc1aa0b1eb427c8eb58dd40676b406d
[ "MIT" ]
null
null
null
mtgcompiler/frontend/AST/statements.py
rmmilewi/mtgcompiler
b79b1608dbc1aa0b1eb427c8eb58dd40676b406d
[ "MIT" ]
null
null
null
import mtgcompiler.AST.core as core from enum import Enum class MgAbstractStatement(core.MgNode): """An ability is made of one or more statements, organized into an instruction sequence. A statement encapsulates a subtree of expressions, usually terminated by a period.""" def __init__(self): ...
46.480475
156
0.566424
2,608
27,377
5.809433
0.153374
0.048908
0.015973
0.042769
0.518448
0.48175
0.417002
0.373969
0.300772
0.192859
0
0.003895
0.352851
27,377
589
157
46.480475
0.851273
0.235855
0
0.486486
0
0
0.01806
0.001605
0
0
0
0.001698
0
1
0.297297
false
0.006006
0.006006
0.087087
0.594595
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
69c40dd3aa5d1a5184cc2ea788ef460a3fd3e31e
1,309
py
Python
paperpy/interfaces.py
paperpy/paperpy
98554f813ed6404ce7952bd0ccbfa7e8c5909cd4
[ "MIT" ]
null
null
null
paperpy/interfaces.py
paperpy/paperpy
98554f813ed6404ce7952bd0ccbfa7e8c5909cd4
[ "MIT" ]
5
2020-05-22T16:51:47.000Z
2020-05-24T19:26:24.000Z
paperpy/interfaces.py
paperpy/paperpy
98554f813ed6404ce7952bd0ccbfa7e8c5909cd4
[ "MIT" ]
null
null
null
""" This module contains all public interfaces that you can use to create plugins. """ import abc class Action(abc.ABC): """ An action registers a subcommand in the paperpy command. To register an action in your plugin add an ``paperpy.action`` entry point in the setup:: ...
27.270833
89
0.582124
149
1,309
5.053691
0.469799
0.067729
0.079681
0.063745
0
0
0
0
0
0
0
0
0.344538
1,309
47
90
27.851064
0.877622
0.616501
0
0.545455
0
0
0
0
0
0
0
0
0
1
0.272727
false
0.272727
0.090909
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
69d5716a97b6642a971a5454e5b236438fb8e5a2
1,151
py
Python
bugbuzz_service/db/tables/files.py
fangpenlin/bugbuzz-api
5ed6810f65f1edabf65282359eabc3845df26a67
[ "MIT" ]
1
2019-08-31T06:15:40.000Z
2019-08-31T06:15:40.000Z
bugbuzz_service/db/tables/files.py
fangpenlin/bugbuzz-api
5ed6810f65f1edabf65282359eabc3845df26a67
[ "MIT" ]
null
null
null
bugbuzz_service/db/tables/files.py
fangpenlin/bugbuzz-api
5ed6810f65f1edabf65282359eabc3845df26a67
[ "MIT" ]
1
2020-05-02T02:57:16.000Z
2020-05-02T02:57:16.000Z
from __future__ import unicode_literals from sqlalchemy import Column from sqlalchemy import Table from sqlalchemy import Unicode from sqlalchemy.dialects.postgresql import BYTEA from sqlalchemy.schema import ForeignKey from . import metadata from . import now_func from ...utils import GUIDFactory from .utc_dt import...
27.404762
77
0.685491
138
1,151
5.601449
0.449275
0.090556
0.07762
0.059508
0.069858
0
0
0
0
0
0
0.00882
0.21199
1,151
41
78
28.073171
0.84344
0.123371
0
0
0
0
0.0998
0
0
0
0
0.02439
0
1
0
false
0
0.322581
0
0.322581
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
1
0
0
0
0
2
0e078ceb06db4aeb1f0dc9a917845b9757b9e103
1,051
py
Python
serv/api/errors.py
jnhu76/ImageServ
222231ce361a7b29fb25318c8bc9fedc65f236ee
[ "MIT" ]
null
null
null
serv/api/errors.py
jnhu76/ImageServ
222231ce361a7b29fb25318c8bc9fedc65f236ee
[ "MIT" ]
null
null
null
serv/api/errors.py
jnhu76/ImageServ
222231ce361a7b29fb25318c8bc9fedc65f236ee
[ "MIT" ]
null
null
null
from typing import Union from fastapi import HTTPException from fastapi.exceptions import RequestValidationError from fastapi.openapi.constants import REF_PREFIX from fastapi.openapi.utils import validation_error_response_definition from pydantic import ValidationError from starlette.requests import Request fr...
30.911765
79
0.730733
109
1,051
6.834862
0.412844
0.05906
0.048322
0.088591
0.104698
0
0
0
0
0
0
0.011574
0.177926
1,051
33
80
31.848485
0.850694
0
0
0
0
0
0.073674
0
0
0
0
0
0
1
0
true
0
0.346154
0
0.423077
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
2
0e11da2836ffcf45507a41dcb3cec36041b415d8
348
py
Python
ymir/backend/src/ymir_viz/tests/controllers/conftest.py
Zhang-SJ930104/ymir
dd6481be6f229ade4cf8fba64ef44a15357430c4
[ "Apache-2.0" ]
64
2021-11-15T03:48:00.000Z
2022-03-25T07:08:46.000Z
ymir/backend/src/ymir_viz/tests/controllers/conftest.py
Zhang-SJ930104/ymir
dd6481be6f229ade4cf8fba64ef44a15357430c4
[ "Apache-2.0" ]
35
2021-11-23T04:14:35.000Z
2022-03-26T09:03:43.000Z
ymir/backend/src/ymir_viz/tests/controllers/conftest.py
Aryalfrat/ymir
d4617ed00ef67a77ab4e1944763f608bface4be6
[ "Apache-2.0" ]
57
2021-11-11T10:15:40.000Z
2022-03-29T07:27:54.000Z
import json import pytest from flask import Response from flask.testing import FlaskClient class APIResponse(Response): def json(self): return json.loads(self.data) @pytest.fixture() def test_client(core_app): core_app.test_client_class = FlaskClient core_app.response_class = APIResponse re...
19.333333
44
0.761494
47
348
5.446809
0.425532
0.109375
0.085938
0.132813
0
0
0
0
0
0
0
0
0.166667
348
17
45
20.470588
0.882759
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0.083333
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
0e16293546d6afbe947e67489792492dc7a0b202
670
py
Python
desec.py
desec-utils/debug
9364ffda27d146985cc06635ccaad39357e21be7
[ "MIT" ]
null
null
null
desec.py
desec-utils/debug
9364ffda27d146985cc06635ccaad39357e21be7
[ "MIT" ]
null
null
null
desec.py
desec-utils/debug
9364ffda27d146985cc06635ccaad39357e21be7
[ "MIT" ]
1
2022-02-23T17:57:55.000Z
2022-02-23T17:57:55.000Z
from socket import getaddrinfo def _resolve(name): try: return getaddrinfo(name, 53)[0][4][0] except OSError: print(f'Unknown server: {name}') quit(1) frontend_servers = { _resolve(s): s for s in [ 'lhr-1.b.desec.io', 'vie-1.b.desec.io', 'fra-1.a.desec...
20.9375
45
0.483582
107
670
3
0.392523
0.327103
0.174455
0.224299
0.077882
0.077882
0
0
0
0
0
0.045652
0.313433
670
31
46
21.612903
0.652174
0
0
0
0
0
0.391045
0
0
0
0
0
0
1
0.037037
false
0
0.037037
0
0.111111
0.037037
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
0e167e6a6767ff43fcf5cc358c02629ca4d39fa2
260
py
Python
bestbid/bidding/routing.py
wh0th3h3llam1/bestbid
c84141fb513c39ca32bf9aa2767dd504e524daa1
[ "MIT" ]
1
2020-05-04T11:14:07.000Z
2020-05-04T11:14:07.000Z
bestbid/bidding/routing.py
wh0th3h3llam1/bestbid
c84141fb513c39ca32bf9aa2767dd504e524daa1
[ "MIT" ]
9
2020-04-08T11:46:09.000Z
2022-03-12T00:26:54.000Z
bestbid/bidding/routing.py
wh0th3h3llam1/bestbid
c84141fb513c39ca32bf9aa2767dd504e524daa1
[ "MIT" ]
null
null
null
from django.urls import path from django.conf.urls import url, re_path from . import consumers websocket_urlpatterns = [ # path(r'asset/<int:id>/', consumers.LiveAuctioningConsumer), url(r'^asset/(?P<id>[0-9]+)/$', consumers.LiveAuctioningConsumer), ]
32.5
70
0.726923
34
260
5.5
0.558824
0.106952
0
0
0
0
0
0
0
0
0
0.008696
0.115385
260
8
71
32.5
0.804348
0.226923
0
0
0
0
0.115
0.115
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
386987bf299a249912dfc83824330968c91fcb46
4,345
py
Python
blog/models.py
tylerpitcher/flask-blog
5fc6ad67a645d71090e07a22e9b865b6d9447568
[ "MIT" ]
null
null
null
blog/models.py
tylerpitcher/flask-blog
5fc6ad67a645d71090e07a22e9b865b6d9447568
[ "MIT" ]
null
null
null
blog/models.py
tylerpitcher/flask-blog
5fc6ad67a645d71090e07a22e9b865b6d9447568
[ "MIT" ]
null
null
null
''' Defines database models. ''' from flask_login import UserMixin from flask_sqlalchemy import SQLAlchemy from sqlalchemy.sql import func from hashids import Hashids import bcrypt from blog.helpers import is_username, is_email, is_password, in_database from blog import app db = SQLAlchemy(app) class User(db.Model...
27.15625
75
0.652244
597
4,345
4.691792
0.21608
0.045698
0.057122
0.034273
0.305962
0.279543
0.226348
0.162799
0.162799
0.162799
0
0.008631
0.226697
4,345
159
76
27.327044
0.825
0.147296
0
0.30303
0
0
0.062693
0
0
0
0
0
0
1
0.050505
false
0.10101
0.070707
0
0.515152
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
3870a1bf0c74b42a8bceece5b1a6e4cb06243cb1
723
py
Python
pyt/__main__.py
jayvdb/pyt
f234173350a9490201bf90105b10d61c666c91df
[ "MIT" ]
1
2019-10-21T16:06:37.000Z
2019-10-21T16:06:37.000Z
pyt/__main__.py
jayvdb/pyt
f234173350a9490201bf90105b10d61c666c91df
[ "MIT" ]
39
2015-04-07T20:52:01.000Z
2020-05-27T01:26:55.000Z
pyt/__main__.py
jayvdb/pyt
f234173350a9490201bf90105b10d61c666c91df
[ "MIT" ]
1
2020-01-14T05:33:40.000Z
2020-01-14T05:33:40.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import unicode_literals, division, print_function, absolute_import import sys import platform import argparse import os from pyt import tester, __version__, main from pyt.compat import * def console(): # ripped from unittest.__main__.py if sys.arg...
24.1
107
0.701245
101
723
4.693069
0.564356
0.029536
0.067511
0.063291
0
0
0
0
0
0
0
0.006944
0.20332
723
29
108
24.931034
0.815972
0.244813
0
0
0
0
0.048059
0
0
0
0
0
0
1
0.058824
false
0
0.470588
0
0.529412
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
388024670e436b4fd5683f684fcbf6ba8fced831
5,154
py
Python
app/wrapper/models.py
Sirius-social/TMTM
5b4d426e358fc9fd6cff7ec84861c0388d3785ce
[ "Apache-2.0" ]
null
null
null
app/wrapper/models.py
Sirius-social/TMTM
5b4d426e358fc9fd6cff7ec84861c0388d3785ce
[ "Apache-2.0" ]
null
null
null
app/wrapper/models.py
Sirius-social/TMTM
5b4d426e358fc9fd6cff7ec84861c0388d3785ce
[ "Apache-2.0" ]
null
null
null
import os import hashlib import secrets from django.db import models from django.core.cache import cache from django.db.models.signals import pre_save, pre_delete, post_migrate from django.conf import settings from django.contrib.auth.models import User from django.contrib.postgres.fields import JSONField, ArrayField ...
35.30137
117
0.719635
672
5,154
5.331845
0.233631
0.108847
0.130617
0.174156
0.465253
0.381245
0.310634
0.148758
0.127547
0.127547
0
0.020389
0.172099
5,154
145
118
35.544828
0.819311
0
0
0.077586
0
0
0.021925
0.008343
0
0
0
0
0
1
0.060345
false
0.017241
0.103448
0.008621
0.672414
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
389681739021fcc543aff41ba73b7b8cc43b0aa9
298
py
Python
oneRing/urls/timeslot.py
TylerRudie/narvi
a4d08b00b38cc1c1dad424c138577dd583b7aa19
[ "MIT" ]
1
2018-02-21T15:59:48.000Z
2018-02-21T15:59:48.000Z
oneRing/urls/timeslot.py
TylerRudie/narvi
a4d08b00b38cc1c1dad424c138577dd583b7aa19
[ "MIT" ]
null
null
null
oneRing/urls/timeslot.py
TylerRudie/narvi
a4d08b00b38cc1c1dad424c138577dd583b7aa19
[ "MIT" ]
null
null
null
from django.conf.urls import url, include from oneRing.restInterface.timeSlot.validate_v1 import timeSlot_validate_interface urlpatterns = [ url(r'^v1/validate/(?P<oneTimeCode>[0-9a-zA-Z_-]+)$', timeSlot_validate_interface.as_view(), name= 'timeSlot_validate' ) ]
27.090909
82
0.701342
36
298
5.583333
0.666667
0.318408
0.248756
0
0
0
0
0
0
0
0
0.01626
0.174497
298
11
83
27.090909
0.800813
0
0
0
0
0
0.207358
0.150502
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
389ab3cc0702ec71e0743933549edd38b0379f41
501
py
Python
fuse/ext/__init__.py
hanslovsky/gunpowder-nodes
0a8e9d4df88dcb7f22b968e02fc3514edae76648
[ "BSD-2-Clause" ]
1
2020-12-26T02:54:14.000Z
2020-12-26T02:54:14.000Z
fuse/ext/__init__.py
hanslovsky/gunpowder-nodes
0a8e9d4df88dcb7f22b968e02fc3514edae76648
[ "BSD-2-Clause" ]
null
null
null
fuse/ext/__init__.py
hanslovsky/gunpowder-nodes
0a8e9d4df88dcb7f22b968e02fc3514edae76648
[ "BSD-2-Clause" ]
1
2019-02-19T18:42:23.000Z
2019-02-19T18:42:23.000Z
from __future__ import print_function import logging import traceback import sys logger = logging.getLogger(__name__) class NoSuchModule(object): def __init__(self, name): self.__name = name self.__traceback_str = traceback.format_tb(sys.exc_info()[2]) errtype, value = sys.exc_info()[:2]...
21.782609
69
0.696607
60
501
5.333333
0.55
0.05
0.0625
0.06875
0
0
0
0
0
0
0
0.012626
0.209581
501
23
70
21.782609
0.795455
0
0
0
0
0
0.007968
0
0
0
0
0
0
1
0.117647
false
0
0.352941
0
0.529412
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
38bdb1932465c2fc47e9941a203d285d02dfe041
3,161
py
Python
cmsplugin_contact_form/models.py
cesarrdz999/djangocms-contact-form
fcc72c9c55b7c591631ca15e6425c017ac7c0a54
[ "MIT" ]
2
2020-03-06T17:56:48.000Z
2020-07-24T17:30:05.000Z
cmsplugin_contact_form/models.py
cesarrdz999/djangocms-contact-form
fcc72c9c55b7c591631ca15e6425c017ac7c0a54
[ "MIT" ]
2
2020-07-24T17:29:14.000Z
2021-01-12T15:21:50.000Z
cmsplugin_contact_form/models.py
cesarrdz999/djangocms-contact-form
fcc72c9c55b7c591631ca15e6425c017ac7c0a54
[ "MIT" ]
3
2020-07-24T17:13:11.000Z
2021-06-24T00:15:46.000Z
from django.db import models from django.utils.encoding import python_2_unicode_compatible from cms.models import CMSPlugin @python_2_unicode_compatible class ContactFormCMS(CMSPlugin): smtp_server = models.CharField( blank=False, max_length=255 ) smtp_port = models.CharField( bla...
21.951389
61
0.648213
314
3,161
6.27707
0.197452
0.109589
0.233384
0.170472
0.738711
0.694571
0.677321
0.523592
0.461695
0.461695
0
0.030039
0.273331
3,161
144
62
21.951389
0.828037
0
0
0.544
0
0
0.006958
0
0
0
0
0
0
1
0.016
false
0.008
0.024
0.016
0.352
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
38db2f496d9e0178d2e56c1a588b387637e2185d
1,019
py
Python
tests/test_dataset_reader.py
ReyRiordan/GoEmotions-pytorch
d0f58261b353c6995c35fc5cff631cb55f9c482f
[ "Apache-2.0" ]
null
null
null
tests/test_dataset_reader.py
ReyRiordan/GoEmotions-pytorch
d0f58261b353c6995c35fc5cff631cb55f9c482f
[ "Apache-2.0" ]
null
null
null
tests/test_dataset_reader.py
ReyRiordan/GoEmotions-pytorch
d0f58261b353c6995c35fc5cff631cb55f9c482f
[ "Apache-2.0" ]
null
null
null
from classifier.dataset_readers.dataset_reader import ClassificationTsvReader from classifier.dataset_readers.dataset_reader_pt import ClassificationPtTsvReader from allennlp.common.util import ensure_list def test_rey_reader_1(project_root_dir_path, test_fixtures_dir_path, test_log): data_file_path = test_fixtur...
39.192308
82
0.766438
135
1,019
5.459259
0.318519
0.056988
0.059701
0.103121
0.746269
0.746269
0.635007
0.635007
0.635007
0.635007
0
0.022472
0.126595
1,019
26
83
39.192308
0.805618
0.033366
0
0.555556
0
0
0.052846
0
0
0
0
0
0.222222
1
0.111111
false
0
0.166667
0
0.277778
0.166667
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
38e0cbc2d8aad69e8850df0df4c0735080557e2e
1,122
py
Python
app/routes/error.py
Chartes-TNAH/CollectArt
f5410ca9ce6d833b333296c3a6a50de81f8a983c
[ "CC-BY-4.0" ]
null
null
null
app/routes/error.py
Chartes-TNAH/CollectArt
f5410ca9ce6d833b333296c3a6a50de81f8a983c
[ "CC-BY-4.0" ]
null
null
null
app/routes/error.py
Chartes-TNAH/CollectArt
f5410ca9ce6d833b333296c3a6a50de81f8a983c
[ "CC-BY-4.0" ]
null
null
null
from flask import render_template, url_for # importation de render_template (pour relier les templates aux routes) et d'url_for (pour construire des URL vers les # fonctions et les pages html) from ..app import app # importation de la variable app qui instancie l'application # | ROUTES POUR LES ERREURS COURANTES | @...
29.526316
118
0.716578
166
1,122
4.771084
0.337349
0.088384
0.056818
0.068182
0.39899
0.323232
0.323232
0.164141
0.164141
0.118687
0
0.059603
0.192513
1,122
37
119
30.324324
0.81457
0.58467
0
0.181818
0
0
0.10687
0
0
0
0
0
0
1
0.272727
false
0
0.181818
0
0.727273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
38e51fc9994106602ba50fbf9dad6c2a4cf4ad97
307
py
Python
python/GravaCnpj.py
mozarthasse/cnpjs
b79f556bd3f384de7b1a35c5c25f3c6225935822
[ "MIT" ]
null
null
null
python/GravaCnpj.py
mozarthasse/cnpjs
b79f556bd3f384de7b1a35c5c25f3c6225935822
[ "MIT" ]
null
null
null
python/GravaCnpj.py
mozarthasse/cnpjs
b79f556bd3f384de7b1a35c5c25f3c6225935822
[ "MIT" ]
1
2020-04-15T10:23:26.000Z
2020-04-15T10:23:26.000Z
import psycopg2 from FilaDeLinhas import FilaDeLinhas def GravacaoPgCopy(origem : FilaDeLinhas, tabela : str): cond = psycopg2.connect(host='postgres-compose', dbname="postgres", user="postgres", password="postgres") curd = cond.cursor() curd.copy_from(origem,tabela,sep=';',null='') cond.commit()
34.111111
107
0.742671
36
307
6.305556
0.638889
0
0
0
0
0
0
0
0
0
0
0.007299
0.107492
307
8
108
38.375
0.821168
0
0
0
0
0
0.13355
0
0
0
0
0
0
1
0.142857
false
0.142857
0.285714
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
c7ff125e11d16c9b6b1d51fdbbca2ac426183915
2,679
py
Python
djauth/bin/ldap_modify.py
carthagecollege/django-djauth
3ef7b7ad80ff0361a3eff662bfd15f356df65ad2
[ "BSD-3-Clause" ]
null
null
null
djauth/bin/ldap_modify.py
carthagecollege/django-djauth
3ef7b7ad80ff0361a3eff662bfd15f356df65ad2
[ "BSD-3-Clause" ]
8
2020-06-05T19:21:15.000Z
2022-01-25T16:42:01.000Z
djauth/bin/ldap_modify.py
carthagecollege/django-djauth
3ef7b7ad80ff0361a3eff662bfd15f356df65ad2
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Shell script to search LDAP store by username or ID """ from django.conf import settings from djauth.LDAPManager import LDAPManager import sys import hashlib, base64 import argparse import ldap.modlist as modlist import ldap # set up command-line options desc = """ Accepts as input: c...
22.70339
83
0.590519
330
2,679
4.718182
0.357576
0.040462
0.035967
0.032113
0
0
0
0
0
0
0
0.014021
0.254573
2,679
117
84
22.897436
0.765648
0.108249
0
0.121951
0
0
0.197597
0.024032
0
0
0
0
0
0
null
null
0.060976
0.085366
null
null
0.097561
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
c7ffc107fefc4a247f1cc36fe79d7d6cb75d992a
1,034
py
Python
shopping_cart/models.py
devsingh-code/django-digital-marketplace
f0f0d2daebaeedeb7ff5b83154313fcce21b2886
[ "MIT" ]
1
2020-06-13T11:23:18.000Z
2020-06-13T11:23:18.000Z
shopping_cart/models.py
devsingh-code/django-digital-marketplace
f0f0d2daebaeedeb7ff5b83154313fcce21b2886
[ "MIT" ]
null
null
null
shopping_cart/models.py
devsingh-code/django-digital-marketplace
f0f0d2daebaeedeb7ff5b83154313fcce21b2886
[ "MIT" ]
null
null
null
from django.db import models from django.conf import settings from books.models import Book from django.db.models import Sum # Create your models here. class OrderItem(models.Model): book = models.ForeignKey(Book, on_delete=models.CASCADE) def __str__(self): return self.book.title class Order(models...
30.411765
90
0.740812
139
1,034
5.266187
0.438849
0.054645
0.076503
0.086066
0.081967
0
0
0
0
0
0
0.00576
0.160542
1,034
33
91
31.333333
0.837558
0.023211
0
0.125
0
0
0.021825
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0.166667
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
2a00eaabf0b46c2c56cf72e126130e26e1263401
173
py
Python
master/testdata/var/db/baetyl/cmd/bin/cmd.py
winnerineast/openedge
14033ce017fcc01d1ea2acf5b799cb25a2ac455f
[ "Apache-2.0" ]
2
2021-01-18T05:54:25.000Z
2021-08-03T06:25:39.000Z
master/testdata/var/db/baetyl/cmd/bin/cmd.py
winnerineast/openedge
14033ce017fcc01d1ea2acf5b799cb25a2ac455f
[ "Apache-2.0" ]
3
2021-10-04T20:35:14.000Z
2022-03-03T13:37:01.000Z
master/testdata/var/db/baetyl/cmd/bin/cmd.py
winnerineast/openedge
14033ce017fcc01d1ea2acf5b799cb25a2ac455f
[ "Apache-2.0" ]
1
2020-09-15T07:48:36.000Z
2020-09-15T07:48:36.000Z
#!/usr/bin/env python # import time if __name__ == '__main__': while True: try: time.sleep(10) except KeyboardInterrupt: break
14.416667
33
0.543353
18
173
4.777778
0.944444
0
0
0
0
0
0
0
0
0
0
0.018018
0.358382
173
11
34
15.727273
0.756757
0.115607
0
0
0
0
0.05298
0
0
0
0
0
0
1
0
true
0
0.142857
0
0.142857
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
0
0
0
0
0
0
2
2a0de64fe952fd213674a16498838b01a57f6114
1,449
py
Python
api/modules/users/model.py
nikochiko/server
299953687be7adbd35df608b288546c8df90371c
[ "MIT" ]
43
2018-05-23T10:03:40.000Z
2021-09-02T15:55:52.000Z
api/modules/users/model.py
nikochiko/server
299953687be7adbd35df608b288546c8df90371c
[ "MIT" ]
141
2018-05-24T16:03:12.000Z
2021-04-30T23:47:59.000Z
api/modules/users/model.py
nikochiko/server
299953687be7adbd35df608b288546c8df90371c
[ "MIT" ]
77
2018-06-13T13:51:31.000Z
2021-06-16T16:10:18.000Z
from django.contrib.auth.models import User from django.core.validators import URLValidator from django.db import models from django.db.models.signals import post_save from django.dispatch import receiver from api.modules.users.enums import PasswordVerificationModeChoice class Profile(models.Model): user = model...
36.225
97
0.73913
170
1,449
6.205882
0.423529
0.047393
0.022749
0.03981
0.176303
0.12891
0
0
0
0
0
0.002479
0.164941
1,449
39
98
37.153846
0.869421
0.017253
0
0.137931
0
0
0.004923
0
0
0
0
0
0
1
0.068966
false
0.137931
0.206897
0
0.655172
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
2a181be997ee8aea6598ea3be22d5962ae0729a9
265
py
Python
samples/my_strategy_2.py
fredmontet/tars
922786e8c6456fc0cc1a9db07714f11dd78219d9
[ "MIT" ]
3
2022-02-06T14:41:07.000Z
2022-03-25T16:27:45.000Z
samples/my_strategy_2.py
fredmontet/tars
922786e8c6456fc0cc1a9db07714f11dd78219d9
[ "MIT" ]
6
2021-09-20T03:33:31.000Z
2022-03-24T09:00:48.000Z
samples/my_strategy_2.py
fredmontet/tars
922786e8c6456fc0cc1a9db07714f11dd78219d9
[ "MIT" ]
null
null
null
from tars import portfolios, traders, strategies def func(): portfolio = portfolios.VirtualPortfolio({'ZUSD': 1000}) trader = traders.VirtualCryptoTrader(portfolio) strategy = strategies.PredictionStrategy(trader, 'XETHZUSD', 0.2) return strategy
29.444444
69
0.74717
26
265
7.615385
0.769231
0
0
0
0
0
0
0
0
0
0
0.026667
0.150943
265
8
70
33.125
0.853333
0
0
0
0
0
0.045283
0
0
0
0
0
0
1
0.166667
false
0
0.166667
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
0
0
0
0
0
0
0
2
2a276324ee8b03fc4e261d3ead4f5a9baf8bad3c
1,187
py
Python
third_party/universal-ctags/ctags/Units/parser-python.r/python2-arglists.d/input.py
f110/wing
31b259f723b57a6481252a4b8b717fcee6b01ff4
[ "MIT" ]
4
2017-02-07T20:04:31.000Z
2022-01-30T14:04:45.000Z
third_party/universal-ctags/ctags/Units/parser-python.r/python2-arglists.d/input.py
f110/wing
31b259f723b57a6481252a4b8b717fcee6b01ff4
[ "MIT" ]
1
2018-01-07T19:14:53.000Z
2018-01-07T19:14:53.000Z
third_party/universal-ctags/ctags/Units/parser-python.r/python2-arglists.d/input.py
f110/wing
31b259f723b57a6481252a4b8b717fcee6b01ff4
[ "MIT" ]
1
2021-04-26T09:00:06.000Z
2021-04-26T09:00:06.000Z
#!/usr/bin/env python2 def func01(): pass def func02(a): pass def func03(a, b = 2): pass def func04(a = 1, b = 2): pass def func05(*args): pass def func06(**kwargs): pass def func07(*args, **kwargs): pass def func08(a, b = 2, *args): pass def func09(a = [1, 2], b = 2, **kwargs): pas...
21.981481
51
0.565291
205
1,187
3.273171
0.234146
0.135618
0.098361
0.023845
0.157973
0.083458
0.059613
0
0
0
0
0.142064
0.240944
1,187
53
52
22.396226
0.602664
0.039596
0
0.326087
0
0
0
0
0
0
0
0
0
0
null
null
0.326087
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
2a2e1e5c159babd36ad2b4067c52b256afd704d8
1,545
py
Python
satori.core/satori/core/entities/Role.py
Cloud11665/satori-git
ea1855a920c98b480423bf247bce6e5626985c4a
[ "MIT" ]
4
2021-01-05T01:35:36.000Z
2021-12-13T00:05:14.000Z
satori.core/satori/core/entities/Role.py
Cloud11665/satori-git
ea1855a920c98b480423bf247bce6e5626985c4a
[ "MIT" ]
2
2020-06-06T01:12:07.000Z
2020-06-06T01:16:01.000Z
satori.core/satori/core/entities/Role.py
Cloud11665/satori-git
ea1855a920c98b480423bf247bce6e5626985c4a
[ "MIT" ]
2
2021-01-05T01:33:30.000Z
2021-03-06T13:48:21.000Z
# vim:ts=4:sts=4:sw=4:expandtab import logging from django.db import models, DatabaseError from satori.core.dbev import Events from satori.core.models import Entity @ExportModel class Role(Entity): """Model. Base for authorization "levels". """ parent_entity = models.OneToOneField(Entity, parent_link=...
27.589286
116
0.649838
181
1,545
5.38674
0.469613
0.030769
0.028718
0.049231
0.055385
0
0
0
0
0
0
0.008333
0.223301
1,545
55
117
28.090909
0.804167
0.051133
0
0
0
0
0.063742
0
0
0
0
0.018182
0
1
0.135135
false
0.027027
0.108108
0.054054
0.648649
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
1
0
0
2
2a3862b248e25b6074495214c9aa1a1bc5ef3966
680
py
Python
q2_protein_pca/__init__.py
misialq/q2-protein-pca
885862b0a048b96c7c69648db9807b328abfd89c
[ "BSD-3-Clause" ]
2
2021-04-05T19:32:18.000Z
2021-08-02T11:50:15.000Z
q2_protein_pca/__init__.py
misialq/q2-protein-pca
885862b0a048b96c7c69648db9807b328abfd89c
[ "BSD-3-Clause" ]
13
2020-10-12T15:44:00.000Z
2020-10-19T14:52:48.000Z
q2_protein_pca/__init__.py
misialq/q2-protein-pca
885862b0a048b96c7c69648db9807b328abfd89c
[ "BSD-3-Clause" ]
1
2020-10-19T15:04:59.000Z
2020-10-19T15:04:59.000Z
# ---------------------------------------------------------------------------- # Copyright (c) 2021, QIIME 2 development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. # -----------------------------------------------------...
32.380952
78
0.592647
72
680
5.236111
0.555556
0.087533
0.090186
0
0
0
0
0
0
0
0
0.018242
0.113235
680
20
79
34
0.606965
0.483824
0
0
0
0
0.180758
0
0
0
0
0
0
1
0
false
0
0.555556
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
2a3aa4e4f1b3831c1f89cd8735493584f3ed1c63
714
py
Python
PBO_18099/Latihan_3.2.Penugasan.py
viviyanti/PBO
2f9ab22a10f94d007bbe5407c91287c53f10a435
[ "MIT" ]
null
null
null
PBO_18099/Latihan_3.2.Penugasan.py
viviyanti/PBO
2f9ab22a10f94d007bbe5407c91287c53f10a435
[ "MIT" ]
null
null
null
PBO_18099/Latihan_3.2.Penugasan.py
viviyanti/PBO
2f9ab22a10f94d007bbe5407c91287c53f10a435
[ "MIT" ]
1
2020-03-25T03:48:40.000Z
2020-03-25T03:48:40.000Z
#OPERATOR PENUGASAN #input mengisi nilai nilai_x=int(input("masukan nilai x: ")) #operator penjumlahan nilai_x +=20 print("hasil jumlah: ", nilai_x) nilai_x=int(input("masukan nilai x: ")) #operator pengurangan nilai_x -=10 print("hasil kurang:",nilai_x) nilai_x=int(input("masukan nilai x: ")) #opera...
21
40
0.70028
109
714
4.422018
0.238532
0.298755
0.112033
0.174274
0.572614
0.497925
0.497925
0.497925
0.425311
0.425311
0
0.018182
0.152661
714
33
41
21.636364
0.778512
0.212885
0
0.333333
0
0
0.347409
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
2a4218fb37d49b84f88d634770b1b219b38561fd
148
py
Python
trustpayments/models/subscription_charge_type.py
TrustPayments/python-sdk
6fde6eb8cfce270c3612a2903a845c13018c3bb9
[ "Apache-2.0" ]
2
2020-01-16T13:24:06.000Z
2020-11-21T17:40:17.000Z
trustpayments/models/subscription_charge_type.py
TrustPayments/python-sdk
6fde6eb8cfce270c3612a2903a845c13018c3bb9
[ "Apache-2.0" ]
4
2019-10-14T17:33:23.000Z
2021-10-01T14:49:11.000Z
trustpayments/models/subscription_charge_type.py
TrustPayments/python-sdk
6fde6eb8cfce270c3612a2903a845c13018c3bb9
[ "Apache-2.0" ]
2
2019-10-15T14:17:10.000Z
2021-09-17T13:07:09.000Z
# coding: utf-8 from enum import Enum, unique @unique class SubscriptionChargeType(Enum): MANUAL = "MANUAL" AUTOMATIC = "AUTOMATIC"
13.454545
35
0.682432
16
148
6.3125
0.6875
0
0
0
0
0
0
0
0
0
0
0.008696
0.222973
148
10
36
14.8
0.869565
0.087838
0
0
0
0
0.113636
0
0
0
0
0
0
1
0
false
0
0.2
0
0.8
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
2a457ad3f8e219a4452629e0db8bad7d1f65df0d
1,238
py
Python
scrapy_auto_trans/exceptions.py
jiansongyang/scrapy-auto-translation-middelware
8107338275f2b1fbebc1e72a5512d4e44435cb57
[ "MIT" ]
4
2020-07-03T11:46:01.000Z
2021-11-15T08:07:45.000Z
scrapy_auto_trans/exceptions.py
jiansongyang/scrapy-auto-translation-middelware
8107338275f2b1fbebc1e72a5512d4e44435cb57
[ "MIT" ]
null
null
null
scrapy_auto_trans/exceptions.py
jiansongyang/scrapy-auto-translation-middelware
8107338275f2b1fbebc1e72a5512d4e44435cb57
[ "MIT" ]
1
2021-11-15T08:32:23.000Z
2021-11-15T08:32:23.000Z
from scrapy.exceptions import IgnoreRequest class TranslationResult(IgnoreRequest): """A translation response was received""" def __init__(self, response, *args, **kwargs): self.response = response super(TranslationResult, self).__init__(*args, **kwargs) class TranslationError(Exception): ...
26.913043
83
0.669628
122
1,238
6.565574
0.303279
0.104869
0.054931
0.06367
0.193508
0.162297
0.11236
0.11236
0.11236
0
0
0
0.234249
1,238
45
84
27.511111
0.844937
0.028271
0
0.290323
0
0
0.104428
0
0
0
0
0
0
1
0.322581
false
0.032258
0.032258
0.193548
0.677419
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
2a46827baff9132d7ed9f6695b8e144d4ceb1359
999
py
Python
Graph/Graph/users/models.py
MGijon/TheGraph.es
34fc54e8d14625eb033f7506f12a615e3078c98b
[ "MIT" ]
null
null
null
Graph/Graph/users/models.py
MGijon/TheGraph.es
34fc54e8d14625eb033f7506f12a615e3078c98b
[ "MIT" ]
30
2020-01-10T21:20:52.000Z
2022-03-12T00:25:41.000Z
Graph/Graph/users/models.py
MGijon/TheGraph.es
34fc54e8d14625eb033f7506f12a615e3078c98b
[ "MIT" ]
null
null
null
"""Users Models.""" # Django from django.db import models from django.contrib.auth.models import User class Profile(models.Model): """Profile extended: Proxy model that extends the base data with other information. """ # this links Profile with the User profile, one to one relationship profile_use...
31.21875
71
0.698699
121
999
5.586777
0.520661
0.053254
0.06213
0.073965
0.08284
0
0
0
0
0
0
0.006329
0.209209
999
31
72
32.225806
0.849367
0.232232
0
0
0
0
0.018996
0
0
0
0
0.032258
0
1
0.066667
false
0
0.133333
0
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
1
0
0
2
2a5914b8ddfcbc935eaa588a88621cda94bbc086
1,608
py
Python
postcodeinfo/apps/postcode_api/management/commands/download_and_import_postcode_gss_codes.py
UKHomeOffice/postcodeinfo
f268a6b6d6d7ac55cb2fb307e98275348e30a287
[ "MIT" ]
null
null
null
postcodeinfo/apps/postcode_api/management/commands/download_and_import_postcode_gss_codes.py
UKHomeOffice/postcodeinfo
f268a6b6d6d7ac55cb2fb307e98275348e30a287
[ "MIT" ]
null
null
null
postcodeinfo/apps/postcode_api/management/commands/download_and_import_postcode_gss_codes.py
UKHomeOffice/postcodeinfo
f268a6b6d6d7ac55cb2fb307e98275348e30a287
[ "MIT" ]
1
2021-04-11T09:12:19.000Z
2021-04-11T09:12:19.000Z
import os from django.core.management.base import BaseCommand from postcode_api.utils import ZipExtractor from postcode_api.downloaders import PostcodeGssCodeDownloader from postcode_api.importers.postcode_gss_code_importer \ import PostcodeGssCodeImporter class Command(BaseCommand): args = '<destination_dir...
32.816327
71
0.654851
160
1,608
6.3625
0.425
0.11002
0.044204
0.047151
0
0
0
0
0
0
0
0.000838
0.257463
1,608
48
72
33.5
0.851759
0.012438
0
0
0
0
0.136192
0.015132
0
0
0
0
0
0
null
null
0
0.333333
null
null
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
2
2a62a803f7c8790fb3f002b9ff2b091895a92c9b
181
py
Python
codility_python_tests/04_frog_jump_across_road.py
sreedhar-venkatesan/codility-python-tests
b9536eb1bced90ba9a5a192d3cc424be4367b406
[ "MIT" ]
null
null
null
codility_python_tests/04_frog_jump_across_road.py
sreedhar-venkatesan/codility-python-tests
b9536eb1bced90ba9a5a192d3cc424be4367b406
[ "MIT" ]
null
null
null
codility_python_tests/04_frog_jump_across_road.py
sreedhar-venkatesan/codility-python-tests
b9536eb1bced90ba9a5a192d3cc424be4367b406
[ "MIT" ]
null
null
null
import math def solution(X,Y,D): distance = Y-X return math.ceil(distance/D) if __name__ =="__main__": X=10 Y=85 D=30 ans = solution(X,Y, D) print (ans)
16.454545
32
0.585635
31
181
3.16129
0.580645
0.183673
0.204082
0.22449
0
0
0
0
0
0
0
0.045455
0.270718
181
11
33
16.454545
0.69697
0
0
0
0
0
0.043956
0
0
0
0
0
0
1
0.1
false
0
0.1
0
0.3
0.1
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
2a69d5953f33305986d8a30830484b607111345a
919
py
Python
pages/02_multipage.py
sebastiandres/stb_chapter_demo_v070
3ca5e53ececc678a39b9c79728f427b3e31746fe
[ "MIT" ]
null
null
null
pages/02_multipage.py
sebastiandres/stb_chapter_demo_v070
3ca5e53ececc678a39b9c79728f427b3e31746fe
[ "MIT" ]
null
null
null
pages/02_multipage.py
sebastiandres/stb_chapter_demo_v070
3ca5e53ececc678a39b9c79728f427b3e31746fe
[ "MIT" ]
null
null
null
import streamlit as st import streamlit_book as stb st.title("Multipage") st.markdown("There are several user cases for having multipages on streamlit. We'll explore each one of those") st.header("Basic or interactive single page") st.markdown(""" You use only streamlit (no need can use streamlit_book). Optionall...
32.821429
146
0.767138
146
919
4.780822
0.527397
0.057307
0.037249
0.054441
0.140401
0.140401
0
0
0
0
0
0
0.146899
919
27
147
34.037037
0.890306
0
0
0.315789
0
0.052632
0.79543
0.071817
0
0
0
0
0
1
0
true
0
0.105263
0
0.105263
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
2a7b4839624180e430c9e521c3f8130935f815eb
824
py
Python
data/stream/electricityTest.py
PseudoAj/MyInsightRepo
90418d444714acfdfb5ee26bc9a819269a913fc4
[ "MIT" ]
5
2017-05-23T17:43:22.000Z
2018-11-15T03:07:45.000Z
data/stream/electricityTest.py
PseudoAj/MyInsightRepo
90418d444714acfdfb5ee26bc9a819269a913fc4
[ "MIT" ]
null
null
null
data/stream/electricityTest.py
PseudoAj/MyInsightRepo
90418d444714acfdfb5ee26bc9a819269a913fc4
[ "MIT" ]
3
2017-03-18T21:23:53.000Z
2021-04-10T15:11:32.000Z
#!/usr/bin/env python #title :electricityTest.py #description :Class to test the electricity logic #author :Ajay Krishna Teja Kavuri #date :02122017 #version :0.1 #============================================================================== # Libraries import unittest from ele...
24.969697
79
0.529126
76
824
5.631579
0.671053
0.056075
0
0
0
0
0
0
0
0
0
0.015456
0.214806
824
32
80
25.75
0.646059
0.583738
0
0
0
0
0.02439
0
0
0
0
0
0.111111
1
0.222222
false
0
0.222222
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
2a84c16b2a37e6a8b687b91340631b0d09c60fa3
1,978
py
Python
astropy/coordinates/builtin_frames/fk5.py
REMeyer/astropy
28c49fb618538a01812e586cd07bccdf0591a6c6
[ "BSD-3-Clause" ]
3
2018-03-20T15:09:16.000Z
2021-05-27T11:17:33.000Z
astropy/coordinates/builtin_frames/fk5.py
REMeyer/astropy
28c49fb618538a01812e586cd07bccdf0591a6c6
[ "BSD-3-Clause" ]
null
null
null
astropy/coordinates/builtin_frames/fk5.py
REMeyer/astropy
28c49fb618538a01812e586cd07bccdf0591a6c6
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import (absolute_import, unicode_literals, division, print_function) from ..baseframe import frame_transform_graph from ..attributes import TimeAttribute from ..transformations import Dynamic...
30.90625
78
0.694641
232
1,978
5.767241
0.469828
0.059791
0.033632
0.040359
0.069507
0.050822
0.050822
0
0
0
0
0.02544
0.224975
1,978
63
79
31.396825
0.847358
0.473711
0
0
0
0
0
0
0
0
0
0
0
1
0.117647
false
0
0.411765
0.058824
0.764706
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
2a89353b40f24ca9e881f78a5fc5cb9bfb9f607d
1,020
py
Python
application/KitchenMagician/kitchen_magician/groups/db/init_groups.py
AsuPaul19/Kitchen-Magician
8c22bc1a45942d22c183096f8e92f858983d351d
[ "MIT" ]
null
null
null
application/KitchenMagician/kitchen_magician/groups/db/init_groups.py
AsuPaul19/Kitchen-Magician
8c22bc1a45942d22c183096f8e92f858983d351d
[ "MIT" ]
8
2021-04-08T20:50:25.000Z
2022-03-12T00:53:18.000Z
application/KitchenMagician/kitchen_magician/groups/db/init_groups.py
AsuPaul19/Kitchen-Magician
8c22bc1a45942d22c183096f8e92f858983d351d
[ "MIT" ]
null
null
null
groups = [ { "img": "groups/images/vegan.png", "name": "Vegan Group", }, { "img": "groups/images/ketogenic-diet.png", "name": "Keto Group", }, { "img": "groups/images/vegetables.png", "name": "Vegetarian Group", }, { "img...
23.72093
68
0.481373
103
1,020
4.718447
0.339806
0.148148
0.246914
0.246914
0
0
0
0
0
0
0
0
0.342157
1,020
43
69
23.72093
0.724292
0
0
0
0
0
0.403526
0.210578
0
0
0
0
0
1
0.025
false
0
0.025
0
0.05
0.025
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
2a8f9be3f3aea3bc3bfab57b5b2c452dbd9535a5
1,078
py
Python
app.py
dylan0stewart/data-science
17e2f5322feeebae3dd0e78a66a822153b081214
[ "MIT" ]
null
null
null
app.py
dylan0stewart/data-science
17e2f5322feeebae3dd0e78a66a822153b081214
[ "MIT" ]
null
null
null
app.py
dylan0stewart/data-science
17e2f5322feeebae3dd0e78a66a822153b081214
[ "MIT" ]
null
null
null
# https://spotipy.readthedocs.io/en/2.13.0/ # pip install spotipy --upgrade # pipenv install python-dotenv import spotipy from spotipy.oauth2 import SpotifyClientCredentials import sys import time from flask import Flask, jsonify, Response, render_template, request from flask_sqlalchemy import SQLAlchemy import pandas ...
25.666667
88
0.767161
146
1,078
5.479452
0.493151
0.04
0.0525
0.05
0
0
0
0
0
0
0
0.006417
0.132653
1,078
42
89
25.666667
0.849198
0.163265
0
0
0
0
0.091518
0.023438
0
0
0
0
0
1
0.076923
false
0
0.384615
0.038462
0.538462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
aa4ee59a8140d82cfe702aa32234bfc9458bbaa9
479
py
Python
sged/data.py
pygongnlp/gramcorrector
1b5b7f46f7185675b46341e40b2a866fd6d1d7ad
[ "MIT" ]
5
2022-02-07T12:35:18.000Z
2022-03-09T05:10:33.000Z
sged/data.py
pygongnlp/gramcorrector
1b5b7f46f7185675b46341e40b2a866fd6d1d7ad
[ "MIT" ]
null
null
null
sged/data.py
pygongnlp/gramcorrector
1b5b7f46f7185675b46341e40b2a866fd6d1d7ad
[ "MIT" ]
null
null
null
from torch.utils.data import Dataset from utils import load_data, get_labels class SGEDDataset(Dataset): def __init__(self, file_path, mode): src_lst, trg_lst = load_data(file_path, mode) self.src_lst = src_lst self.trg_lst = trg_lst self.labels = get_labels(src_lst, trg_lst) d...
26.611111
72
0.682672
72
479
4.152778
0.333333
0.100334
0.090301
0.080268
0
0
0
0
0
0
0
0
0.221294
479
17
73
28.176471
0.801609
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.166667
0.166667
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
aa52b2cbf2e4326c5de6febc44593fb257d322b3
234
py
Python
Craps/testGame.py
Kevin7196/CrapsIsFun
c7240281e0171f6e603956d3e2637d6814383965
[ "MIT" ]
null
null
null
Craps/testGame.py
Kevin7196/CrapsIsFun
c7240281e0171f6e603956d3e2637d6814383965
[ "MIT" ]
null
null
null
Craps/testGame.py
Kevin7196/CrapsIsFun
c7240281e0171f6e603956d3e2637d6814383965
[ "MIT" ]
null
null
null
__author__ = 'Lisbeth Alvarez' from craps import CrapsGame aCrapsGame = CrapsGame() print(aCrapsGame.getCurrentBank()) aCrapsGame.placeBet(50) aCrapsGame.throwDice() aCrapsGame.throwDice() print(aCrapsGame.getCurrentBank())
23.4
35
0.782051
22
234
8.136364
0.590909
0.167598
0.324022
0
0
0
0
0
0
0
0
0.009615
0.111111
234
10
36
23.4
0.850962
0
0
0.5
0
0
0.066372
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.25
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
0
0
0
0
0
0
0
2
aa61000f2d5d739516aed85e5f0e38ae50afc0b4
1,660
py
Python
api/importer/importer/domain/product_line.py
manisharmagarg/qymatix
0dc240970359429ae5105db79f9aebf1a99ba6fd
[ "Apache-2.0" ]
null
null
null
api/importer/importer/domain/product_line.py
manisharmagarg/qymatix
0dc240970359429ae5105db79f9aebf1a99ba6fd
[ "Apache-2.0" ]
null
null
null
api/importer/importer/domain/product_line.py
manisharmagarg/qymatix
0dc240970359429ae5105db79f9aebf1a99ba6fd
[ "Apache-2.0" ]
null
null
null
from datetime import datetime class ProductLine(): def __init__(self, name): super().__init__() self._name = name #Column(String(255), nullable=False, unique=True) self._product_class_id = None #Column(ForeignKey('product_class.id'), nullable=False, index=True) self._description ...
25.538462
105
0.636145
191
1,660
5.308901
0.198953
0.094675
0.096647
0.068047
0.140039
0.071006
0.071006
0
0
0
0
0.00817
0.262651
1,660
64
106
25.9375
0.820261
0.186145
0
0.125
0
0
0
0
0
0
0
0
0
1
0.270833
false
0
0.020833
0.125
0.4375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
aa648b930905d111b2c7068ca187bc0efd648346
682
py
Python
lst/12-functional.py
tilorenz/vorlesung-psu
0a635c411470a2a22ef4933036443e916478cbfb
[ "CC-BY-4.0" ]
6
2020-04-09T09:34:20.000Z
2022-02-17T17:10:38.000Z
lst/12-functional.py
tilorenz/vorlesung-psu
0a635c411470a2a22ef4933036443e916478cbfb
[ "CC-BY-4.0" ]
1
2020-08-17T12:43:18.000Z
2020-08-17T12:43:18.000Z
lst/12-functional.py
tilorenz/vorlesung-psu
0a635c411470a2a22ef4933036443e916478cbfb
[ "CC-BY-4.0" ]
3
2020-07-12T19:16:54.000Z
2020-08-11T21:31:19.000Z
from functools import partial,reduce from math import sqrt import inspect def nargs(function): print(inspect.getfullargspec(function)) def inc(x): return x + 1 def compose(f, g): return lambda x: f(g(x)) x = compose(inc, inc) print(x(0)) def partial(f, arg0): return lambda *args: f(arg0, *args) de...
16.238095
43
0.592375
114
682
3.526316
0.377193
0.019901
0.014925
0
0
0
0
0
0
0
0
0.045889
0.233138
682
41
44
16.634146
0.722753
0
0
0
0
0
0
0
0
0
0
0
0
1
0.214286
false
0
0.107143
0.142857
0.5
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
aa7efbcc6f852d797203a3e2a334f0562f90f9bb
149
py
Python
docs/examples/led_board_2.py
NotBobTheBuilder/gpiozero
aeb9d30056ec97e6bf896152e71a870bd0099b4e
[ "BSD-3-Clause" ]
743
2019-07-31T02:57:08.000Z
2022-03-31T08:48:30.000Z
docs/examples/led_board_2.py
NotBobTheBuilder/gpiozero
aeb9d30056ec97e6bf896152e71a870bd0099b4e
[ "BSD-3-Clause" ]
259
2019-07-29T14:26:40.000Z
2022-03-27T00:17:56.000Z
docs/examples/led_board_2.py
NotBobTheBuilder/gpiozero
aeb9d30056ec97e6bf896152e71a870bd0099b4e
[ "BSD-3-Clause" ]
127
2019-08-03T19:30:18.000Z
2022-02-24T14:33:50.000Z
from gpiozero import LEDBoard from signal import pause leds = LEDBoard(5, 6, 13, 19, 26, pwm=True) leds.value = (0.2, 0.4, 0.6, 0.8, 1.0) pause()
16.555556
43
0.657718
30
149
3.266667
0.666667
0
0
0
0
0
0
0
0
0
0
0.147541
0.181208
149
8
44
18.625
0.655738
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
aa864dd8d0914123986be26f7ef15e849266ef28
899
py
Python
scripts/mass_2_weight.py
architectureofthings/openmeta-vahana
81f7590765ccf8b14b6dea5473be6cefb0677284
[ "MIT" ]
11
2018-04-18T02:53:29.000Z
2021-11-06T00:53:51.000Z
scripts/mass_2_weight.py
architectureofthings/openmeta-vahana
81f7590765ccf8b14b6dea5473be6cefb0677284
[ "MIT" ]
2
2017-11-14T21:18:34.000Z
2017-11-15T16:04:36.000Z
scripts/mass_2_weight.py
metamorph-inc/openmeta-vahana
f526f5ad36f735ebf719fd0489e6a707523e1f74
[ "MIT" ]
10
2018-01-17T01:28:00.000Z
2021-01-24T05:08:00.000Z
''' # Name: mass_2_weight # Company: MetaMorph, Inc. # Author(s): Joseph Coombe # Email: jcoombe@metamorphsoftware.com # Create Date: 6/9/2017 # Edit Date: 6/9/2017 # Conversion of Airbus A^3's vahanaTradeStudy>reserveMission.mat code # (located here: https://github.com/VahanaOpenSource/vahanaTradeStudy ) # to Python ...
25.685714
71
0.68743
122
899
4.885246
0.614754
0.025168
0.055369
0.033557
0
0
0
0
0
0
0
0.032609
0.181313
899
35
72
25.685714
0.777174
0.568409
0
0
0
0
0.052493
0
0
0
0
0
0
1
0.222222
false
0
0.222222
0
0.555556
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
aa8a5ff770b56c9e3a9003f4284cf03bf7630f6c
1,201
py
Python
lib/security.py
qvant/stackexchange_bot
36f9f13ee3ba58d4277d4ecdae567ead003870f8
[ "MIT" ]
null
null
null
lib/security.py
qvant/stackexchange_bot
36f9f13ee3ba58d4277d4ecdae567ead003870f8
[ "MIT" ]
null
null
null
lib/security.py
qvant/stackexchange_bot
36f9f13ee3ba58d4277d4ecdae567ead003870f8
[ "MIT" ]
null
null
null
import base64 from cryptography.fernet import Fernet from cryptography.hazmat.primitives import hashes from cryptography.hazmat.primitives.kdf.pbkdf2 import PBKDF2HMAC CONFIG_PARAM_SECRET_CONST = "2fggbre34AAftr54" def is_password_encrypted(password: str) -> bool: return password is not None and password[-4:] =...
32.459459
105
0.685262
156
1,201
5.128205
0.397436
0.075
0.05625
0.07875
0.30625
0.2025
0.2025
0.2025
0.2025
0.2025
0
0.032158
0.197336
1,201
36
106
33.361111
0.797718
0.048293
0
0.083333
0
0
0.042982
0
0
0
0
0.027778
0
1
0.166667
false
0.333333
0.166667
0.041667
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
1
0
0
0
0
0
2
aa967ab92a5a4a02432630964ae78a7791ab5607
505
py
Python
pypaste/pypaste.py
pypaste/pypaste
1b08708d3ff79a2a80592b324ad6fe87ce65015a
[ "MIT" ]
null
null
null
pypaste/pypaste.py
pypaste/pypaste
1b08708d3ff79a2a80592b324ad6fe87ce65015a
[ "MIT" ]
246
2019-03-29T01:56:26.000Z
2022-03-28T06:02:19.000Z
pypaste/pypaste.py
pypaste/pypaste
1b08708d3ff79a2a80592b324ad6fe87ce65015a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Main module.""" # from abc import ABC as _ABC from contextlib import AbstractContextManager as _AbstractContextManager from abc import abstractmethod as _abstractmethod # from abc import abstractclassmethod as _abstractclassmethod class PyPasteBase(_AbstractContextManager): @property ...
24.047619
72
0.742574
50
505
7.32
0.44
0.057377
0.106557
0.163934
0
0
0
0
0
0
0
0.002433
0.186139
505
20
73
25.25
0.888078
0.243564
0
0.181818
0
0
0
0
0
0
0
0
0
1
0.181818
false
0
0.181818
0.090909
0.545455
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2