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
b115d178bc487457c51176ec9d3f14e8533c0c13
161
py
Python
tests/cases/build/const2.py
3e45/minpiler
993bdb38d1e4709a412bb551f7eb213376bfe7d2
[ "MIT" ]
null
null
null
tests/cases/build/const2.py
3e45/minpiler
993bdb38d1e4709a412bb551f7eb213376bfe7d2
[ "MIT" ]
5
2022-02-12T19:53:08.000Z
2022-03-02T04:30:32.000Z
tests/cases/build/const2.py
3e45/minpiler
993bdb38d1e4709a412bb551f7eb213376bfe7d2
[ "MIT" ]
null
null
null
from minpiler.std import Const, M, inline class A(Const): a = 1 b = 2 @inline def f(a: int): M.print(a) f(A.a) f(A.b) # > print 1 # > print 2
8.473684
41
0.540373
32
161
2.71875
0.5
0.068966
0.068966
0
0
0
0
0
0
0
0
0.035398
0.298137
161
18
42
8.944444
0.734513
0.118012
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0.111111
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
0
0
0
0
0
1
0
0
1
b124da036c96048b2b2b059b9e37a265d01e4e6b
808
py
Python
apps/ial/migrations/0014_auto_20191010_2008.py
onyxhealth/safhir-vmi
60ba90e9e8ba00347e0dc32e3061da5285df4ade
[ "Apache-2.0" ]
null
null
null
apps/ial/migrations/0014_auto_20191010_2008.py
onyxhealth/safhir-vmi
60ba90e9e8ba00347e0dc32e3061da5285df4ade
[ "Apache-2.0" ]
9
2021-03-19T11:43:09.000Z
2022-03-12T00:38:43.000Z
apps/ial/migrations/0014_auto_20191010_2008.py
onyxhealth/safhir-vmi
60ba90e9e8ba00347e0dc32e3061da5285df4ade
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2.4 on 2019-10-10 20:08 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('ial', '0013_auto_20191010_2006'), ] operations = [ migrations.RenameField( model_name='identityassuranceleveldocumentation', ...
28.857143
61
0.653465
80
808
6.1875
0.475
0.060606
0.141414
0.121212
0.448485
0.355556
0.355556
0.355556
0.355556
0.355556
0
0.051926
0.261139
808
27
62
29.925926
0.777219
0.055693
0
0.380952
1
0
0.370565
0.34297
0
0
0
0
0
1
0
false
0
0.047619
0
0.190476
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b127e3cb7e804903997dfe3de8739f7fa8798d32
1,165
py
Python
checkov/terraform/checks/resource/kubernetes/DropCapabilitiesPSP.py
pmalkki/checkov
b6cdf386dd976fe27c16fed6d550756a678a5d7b
[ "Apache-2.0" ]
null
null
null
checkov/terraform/checks/resource/kubernetes/DropCapabilitiesPSP.py
pmalkki/checkov
b6cdf386dd976fe27c16fed6d550756a678a5d7b
[ "Apache-2.0" ]
null
null
null
checkov/terraform/checks/resource/kubernetes/DropCapabilitiesPSP.py
pmalkki/checkov
b6cdf386dd976fe27c16fed6d550756a678a5d7b
[ "Apache-2.0" ]
null
null
null
from checkov.common.models.enums import CheckCategories, CheckResult from checkov.terraform.checks.resource.base_resource_check import BaseResourceCheck class DropCapabilitiesPSP(BaseResourceCheck): def __init__(self): # CIS-1.3 1.7.7 # CIS-1.5 5.2.7 name = "Do not admit containers with t...
37.580645
106
0.669528
134
1,165
5.589552
0.522388
0.037383
0.029373
0.050734
0.082777
0
0
0
0
0
0
0.015766
0.237768
1,165
30
107
38.833333
0.827703
0.072961
0
0
0
0
0.148699
0.076208
0
0
0
0
0
1
0.105263
false
0.052632
0.105263
0
0.368421
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
0
0
0
1
b1289630042f10cfe075ed032b3590282304701b
734
py
Python
common/oparmysqldatabase.py
jingshu-fk/FXTest_copy
150012f87021b6b8204fd342c62538c10d8dfa85
[ "MIT" ]
null
null
null
common/oparmysqldatabase.py
jingshu-fk/FXTest_copy
150012f87021b6b8204fd342c62538c10d8dfa85
[ "MIT" ]
2
2021-03-26T00:24:28.000Z
2022-03-22T22:06:39.000Z
common/oparmysqldatabase.py
jingshu-fk/FXTest_copy
150012f87021b6b8204fd342c62538c10d8dfa85
[ "MIT" ]
null
null
null
""" @author: lileilei @file: oparmysqldatabase.py @time: 2018/3/9 15:46 """ """ 接口用例测试查询测试数据库测试结果对比, 现在支持查询mysql,进行对比 """ from pymysql import * '''链接数据库,code为1即链接成功,error为错误信息,conne为返回的链接的实例''' def cursemsql(host,port,user,password,database): try: conne = connect(host=host, port=port, user=user, password=...
28.230769
88
0.647139
88
734
5.397727
0.590909
0.084211
0.046316
0.075789
0.147368
0.147368
0.147368
0.147368
0.147368
0
0
0.027073
0.194823
734
26
89
28.230769
0.77665
0.091281
0
0.4
0
0
0.070881
0
0
0
0
0
0
1
0.133333
false
0.133333
0.066667
0
0.466667
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
0
0
0
1
b12fbde188dedb75f53513d6c9ad69d14f377a9c
1,595
py
Python
setup.py
Parietal/blockfrost-python
9db5113e96ad40137128bce78917837f532e2a9d
[ "Apache-2.0" ]
1
2022-01-17T14:26:05.000Z
2022-01-17T14:26:05.000Z
setup.py
Parietal/blockfrost-python
9db5113e96ad40137128bce78917837f532e2a9d
[ "Apache-2.0" ]
null
null
null
setup.py
Parietal/blockfrost-python
9db5113e96ad40137128bce78917837f532e2a9d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import pathlib from setuptools import setup, find_packages HERE = pathlib.Path(__file__).parent long_description = (HERE / 'README.md').read_text(encoding='utf-8') setup( name='blockfrost-python', version='0.3.0', description='The official Python SDK for Blockfrost API v0.1.30', ...
29.537037
69
0.620063
171
1,595
5.684211
0.584795
0.117284
0.154321
0.160494
0
0
0
0
0
0
0
0.023908
0.239498
1,595
53
70
30.09434
0.777411
0.08652
0
0.076923
0
0
0.477241
0.014483
0
0
0
0
0
1
0
false
0
0.051282
0
0.051282
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
0
0
0
1
b1329038f4a65c348ba4eb709c98249fb99821b5
7,996
py
Python
recipes/python/backup-restore/mssql_db_backup_restore.py
ntbritton/netbackup-api-code-samples
b6ef1b79a133f35181506a2688711d391e9d362a
[ "MIT" ]
null
null
null
recipes/python/backup-restore/mssql_db_backup_restore.py
ntbritton/netbackup-api-code-samples
b6ef1b79a133f35181506a2688711d391e9d362a
[ "MIT" ]
null
null
null
recipes/python/backup-restore/mssql_db_backup_restore.py
ntbritton/netbackup-api-code-samples
b6ef1b79a133f35181506a2688711d391e9d362a
[ "MIT" ]
null
null
null
""" This script execute the MSSQL Instance backup and database restore scenario. """ ## The script can be run with Python 3.6 or higher version. ## The script requires 'requests' library to make the API calls. ## The library can be installed using the command: pip install requests. import argparse import common impo...
68.34188
299
0.737494
1,034
7,996
5.419729
0.195358
0.038544
0.05157
0.040685
0.408101
0.295682
0.241613
0.225553
0.180585
0.180585
0
0.002563
0.170585
7,996
116
300
68.931034
0.842431
0.105303
0
0.11236
0
0
0.264722
0.053001
0
0
0
0
0
1
0
false
0.067416
0.044944
0
0.044944
0.179775
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
0
0
0
1
b1336284b404e063ac3d9c785a824244175536ed
2,425
py
Python
lib/galaxy/model/view/__init__.py
rikeshi/galaxy
c536a877e4a9b3d12aa0d00fd4d5e705109a0d0a
[ "CC-BY-3.0" ]
4
2015-05-12T20:36:41.000Z
2017-06-26T15:34:02.000Z
lib/galaxy/model/view/__init__.py
rikeshi/galaxy
c536a877e4a9b3d12aa0d00fd4d5e705109a0d0a
[ "CC-BY-3.0" ]
52
2015-03-16T14:02:14.000Z
2021-12-24T09:50:23.000Z
lib/galaxy/model/view/__init__.py
rikeshi/galaxy
c536a877e4a9b3d12aa0d00fd4d5e705109a0d0a
[ "CC-BY-3.0" ]
1
2016-03-21T12:54:06.000Z
2016-03-21T12:54:06.000Z
""" Galaxy sql view models """ from sqlalchemy import Integer, MetaData from sqlalchemy.orm import mapper from sqlalchemy.sql import column, text from sqlalchemy_utils import create_view from .utils import View metadata = MetaData() class HistoryDatasetCollectionJobStateSummary(View): __view__ = text(""" ...
38.492063
98
0.641237
316
2,425
4.75
0.196203
0.060626
0.09527
0.086609
0.276482
0.185876
0.043304
0
0
0
0
0.014723
0.271753
2,425
62
99
39.112903
0.835221
0.009072
0
0
0
0
0.629228
0.083507
0
0
0
0
0
1
0
false
0
0.1
0
0.18
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
0
0
0
0
0
0
0
1
b1349a12d7fc08da9cabeff3de0cb5e7b0a7acf6
500
py
Python
misago/misago/faker/tests/test_fake_bans.py
vascoalramos/misago-deployment
20226072138403108046c0afad9d99eb4163cedc
[ "MIT" ]
2
2021-03-06T21:06:13.000Z
2021-03-09T15:05:12.000Z
misago/misago/faker/tests/test_fake_bans.py
vascoalramos/misago-deployment
20226072138403108046c0afad9d99eb4163cedc
[ "MIT" ]
null
null
null
misago/misago/faker/tests/test_fake_bans.py
vascoalramos/misago-deployment
20226072138403108046c0afad9d99eb4163cedc
[ "MIT" ]
null
null
null
from ...users.models import Ban from ..bans import get_fake_email_ban, get_fake_ip_ban, get_fake_username_ban def test_fake_username_ban_can_be_created(db, fake): assert get_fake_username_ban(fake) Ban.objects.get(check_type=Ban.USERNAME) def test_fake_email_ban_can_be_created(db, fake): assert get_fake...
27.777778
77
0.796
89
500
4.033708
0.235955
0.116992
0.100279
0.125348
0.551532
0.551532
0.551532
0.551532
0.284123
0
0
0
0.116
500
17
78
29.411765
0.812217
0
0
0
0
0
0
0
0
0
0
0
0.272727
1
0.272727
false
0
0.181818
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
0
0
0
0
0
0
1
b138353118b1753f6caf9bef0f42e06217d53944
269
py
Python
wave/transformold/core/q.py
jedhsu/wave
a05d8f4b0a96722bdc2f5a514646c7a44681982b
[ "Apache-2.0" ]
null
null
null
wave/transformold/core/q.py
jedhsu/wave
a05d8f4b0a96722bdc2f5a514646c7a44681982b
[ "Apache-2.0" ]
null
null
null
wave/transformold/core/q.py
jedhsu/wave
a05d8f4b0a96722bdc2f5a514646c7a44681982b
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass @dataclass class _Q: _value: float class Q(_Q): def __init__(self, value: float): super(Q, self).__init__(value) def create( self, anchor: FreqAnchor, band: FreqBand, ): ...
14.157895
38
0.572491
29
269
4.931034
0.586207
0.083916
0
0
0
0
0
0
0
0
0
0
0.32342
269
18
39
14.944444
0.785714
0
0
0
0
0
0
0
0
0
0
0
0
1
0.153846
false
0
0.076923
0
0.461538
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
0
0
0
1
b13c0236f453b5d15accb49d7a57b49243c3a1f5
1,800
py
Python
truco/carta.py
anthonyzutter/Truco-Jogo
846b5f96e83ff3d5499e209c1ad49ce54a601e37
[ "MIT" ]
1
2020-07-01T15:38:37.000Z
2020-07-01T15:38:37.000Z
truco/carta.py
anthonyzutter/Truco-Jogo
846b5f96e83ff3d5499e209c1ad49ce54a601e37
[ "MIT" ]
null
null
null
truco/carta.py
anthonyzutter/Truco-Jogo
846b5f96e83ff3d5499e209c1ad49ce54a601e37
[ "MIT" ]
null
null
null
class Carta(): CARTAS_VALORES = { "3": 10, "2": 9, "1": 8, "13": 7, "12": 6, "11": 5, "7": 4, "6": 3, "5": 2, "4": 1 } NAIPES_VALORES = { "Paus": 4, "Copas": 3, "Espadas": 2, ...
30.508475
136
0.543889
212
1,800
4.400943
0.235849
0.205788
0.120043
0.085745
0.55627
0.524116
0.411576
0.270096
0.270096
0.192926
0
0.05654
0.341667
1,800
59
137
30.508475
0.730802
0
0
0.137255
0
0
0.080895
0
0
0
0
0
0
1
0.117647
false
0
0
0.039216
0.313725
0.117647
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b13dc9d4b7f3393ba57952ce7e5a06cacd9e641c
613
py
Python
day09/01/solution.py
hunnybear/adventofcode2017
b2b520b7b012a4c5f060a0e70a8a614990b37254
[ "MIT" ]
1
2017-12-02T20:04:51.000Z
2017-12-02T20:04:51.000Z
day09/01/solution.py
hunnybear/adventofcode2017
b2b520b7b012a4c5f060a0e70a8a614990b37254
[ "MIT" ]
null
null
null
day09/01/solution.py
hunnybear/adventofcode2017
b2b520b7b012a4c5f060a0e70a8a614990b37254
[ "MIT" ]
null
null
null
import util def run(in_val): return util.read_stream(in_val)[1] def test(): """ <>, 0 characters. <random characters>, 17 characters. <<<<>, 3 characters. <{!>}>, 2 characters. <!!>, 0 characters. <!!!>>, 0 characters. <{o"i!a,<{i<a>, 10 characters. """ tests = { '<>': 0, '<rando...
18.575758
46
0.473083
70
613
4.057143
0.4
0.028169
0.126761
0.028169
0.049296
0.049296
0
0
0
0
0
0.043981
0.295269
613
32
47
19.15625
0.613426
0
0
0
0
0
0.131148
0
0
0
0
0
0.058824
0
null
null
0
0.058824
null
null
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
1
0
0
0
0
0
0
0
0
1
b141d47b62c38b78832c4200f474a8637c630585
699
py
Python
halogen/halogen.py
wroersma/halogen
ea80fb7d9c65e09d216db510d4e46baabf0198bb
[ "MIT" ]
174
2020-10-30T21:51:27.000Z
2022-03-29T10:31:01.000Z
halogen/halogen.py
stvemillertime/halogen
cb596288d02b1f2625b041011fe3d15b7efa2472
[ "MIT" ]
3
2020-11-04T17:27:29.000Z
2022-02-03T18:51:20.000Z
halogen/halogen.py
stvemillertime/halogen
cb596288d02b1f2625b041011fe3d15b7efa2472
[ "MIT" ]
28
2020-10-30T22:05:28.000Z
2022-02-03T18:39:25.000Z
# coding=utf-8 """ The mfbot Python3 CLI script """ from mfbot import MFBot def main() -> None: """ Main function to start things up for the command line use of mfbot """ mfbot = MFBot() mfbot.parse_args() if mfbot.dir: yara_rule_output = mfbot.dir_run() if len(yara_rule_out...
26.884615
79
0.586552
91
699
4.21978
0.472527
0.166667
0.21875
0.098958
0.34375
0.34375
0.34375
0.34375
0.34375
0.34375
0
0.008351
0.314735
699
25
80
27.96
0.793319
0.158798
0
0.388889
0
0
0.109091
0
0
0
0
0
0
1
0.055556
false
0
0.055556
0
0.111111
0.222222
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
0
0
0
0
1
b141fe9e0f2798e1a51da3fe5a92db2d1e41a467
157,608
py
Python
kddg/api/dbi.py
Kortemme-Lab/kddg
9fc09172abbefd4fef49261687c60a9bd9b6b29b
[ "MIT" ]
2
2016-06-14T00:32:02.000Z
2020-05-04T03:29:46.000Z
kddg/api/dbi.py
Kortemme-Lab/kddg
9fc09172abbefd4fef49261687c60a9bd9b6b29b
[ "MIT" ]
null
null
null
kddg/api/dbi.py
Kortemme-Lab/kddg
9fc09172abbefd4fef49261687c60a9bd9b6b29b
[ "MIT" ]
null
null
null
#!/usr/bin/python2.4 # -*- coding: iso-8859-15 -*- import sys, os import MySQLdb import MySQLdb.cursors import traceback import pickle import time from datetime import datetime, date from string import join, letters import math import getpass import itertools import urllib, urllib2 import pprint from klab.db.mysql im...
48.301563
518
0.595084
15,994
157,608
5.752345
0.087533
0.016141
0.013108
0.011717
0.523918
0.495071
0.457713
0.421378
0.396867
0.373477
0
0.012411
0.291952
157,608
3,262
519
48.31637
0.812033
0.045727
0
0.42154
0
0.016284
0.230409
0.042717
0
0
0
0.00092
0.03664
0
null
null
0.006662
0.009252
null
null
0.012213
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
0
0
1
b148a6167d79f39987cf13cb2932b522da9a3651
2,092
py
Python
openstack/clustering/v1/profile.py
nicolasochem/openstacksdk
34ea72ce5b0b7f16a038ca57b2a9f1ec2f90ce00
[ "Apache-2.0" ]
null
null
null
openstack/clustering/v1/profile.py
nicolasochem/openstacksdk
34ea72ce5b0b7f16a038ca57b2a9f1ec2f90ce00
[ "Apache-2.0" ]
null
null
null
openstack/clustering/v1/profile.py
nicolasochem/openstacksdk
34ea72ce5b0b7f16a038ca57b2a9f1ec2f90ce00
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed unde...
32.184615
75
0.701721
280
2,092
5.142857
0.417857
0.075
0.033333
0.022222
0.070833
0.038889
0
0
0
0
0
0.002427
0.212237
2,092
64
76
32.6875
0.871359
0.435468
0
0.0625
0
0
0.114853
0
0
0
0
0
0
1
0
false
0
0.0625
0
0.96875
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
0
1
0
0
1
b150d206afd2ee1ee016469cd9c9dd81f6459303
1,181
py
Python
resolwe/flow/tests/test_runtime.py
plojyon/resolwe
1bee6f0860fdd087534adf1680e9350d79ab97cf
[ "Apache-2.0" ]
27
2015-12-07T18:29:12.000Z
2022-03-16T08:01:47.000Z
resolwe/flow/tests/test_runtime.py
plojyon/resolwe
1bee6f0860fdd087534adf1680e9350d79ab97cf
[ "Apache-2.0" ]
681
2015-12-01T11:52:24.000Z
2022-03-21T07:43:37.000Z
resolwe/flow/tests/test_runtime.py
plojyon/resolwe
1bee6f0860fdd087534adf1680e9350d79ab97cf
[ "Apache-2.0" ]
28
2015-12-01T08:32:57.000Z
2021-12-14T00:04:16.000Z
# pylint: disable=missing-docstring from unittest import mock from resolwe.flow.execution_engines.bash import ExecutionEngine, ExecutionError from resolwe.flow.expression_engines.jinja import ExpressionEngine from resolwe.test import TestCase class ExecutionEngineTestCase(TestCase): def test_invalid_template(sel...
33.742857
79
0.694327
124
1,181
6.467742
0.475806
0.069825
0.074813
0.049875
0.174564
0
0
0
0
0
0
0
0.209145
1,181
34
80
34.735294
0.858672
0.083827
0
0
0
0
0.086191
0.033364
0
0
0
0
0.083333
1
0.083333
false
0.083333
0.166667
0
0.333333
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
0
0
0
1
b1534d63662d9e749411c4ea4b8ed9e3a86170db
1,976
py
Python
events/migrations/0036_auto_20190516_1050.py
RVHowarth/warwick_gg
a8a1a8f902dad76ba77025839c49fc34178af2b3
[ "MIT" ]
5
2018-03-08T13:02:07.000Z
2020-04-09T13:36:20.000Z
events/migrations/0036_auto_20190516_1050.py
RVHowarth/warwick_gg
a8a1a8f902dad76ba77025839c49fc34178af2b3
[ "MIT" ]
15
2018-05-29T13:22:40.000Z
2022-03-11T23:20:32.000Z
events/migrations/0036_auto_20190516_1050.py
RVHowarth/warwick_gg
a8a1a8f902dad76ba77025839c49fc34178af2b3
[ "MIT" ]
7
2018-05-26T15:15:43.000Z
2020-01-04T20:24:33.000Z
# Generated by Django 2.2.1 on 2019-05-16 09:50 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ...
38
192
0.604251
200
1,976
5.81
0.46
0.084337
0.081756
0.098967
0.325301
0.325301
0.325301
0.196213
0.094664
0.094664
0
0.027435
0.262146
1,976
51
193
38.745098
0.769547
0.022773
0
0.355556
1
0
0.157076
0.024883
0
0
0
0
0
1
0
false
0
0.088889
0
0.155556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b154da40c0f181941f18e205b725a59ebdc5efb9
1,860
py
Python
raiden/transfer/routes.py
ezdac/raiden
d7504996e6738b55d5a9dcf9a36ef66797f6f326
[ "MIT" ]
1
2020-10-19T15:00:42.000Z
2020-10-19T15:00:42.000Z
raiden/transfer/routes.py
ezdac/raiden
d7504996e6738b55d5a9dcf9a36ef66797f6f326
[ "MIT" ]
null
null
null
raiden/transfer/routes.py
ezdac/raiden
d7504996e6738b55d5a9dcf9a36ef66797f6f326
[ "MIT" ]
null
null
null
from typing import Dict, Tuple from raiden.transfer.state import NettingChannelState, NetworkState, RouteState from raiden.utils.typing import Address, ChannelID, List, NodeNetworkStateMap, TokenNetworkAddress def filter_reachable_routes( route_states: List[RouteState], nodeaddresses_to_networkstates: NodeNetwor...
35.769231
98
0.72957
228
1,860
5.780702
0.399123
0.050076
0.057663
0.056904
0.098634
0.051593
0.051593
0.051593
0
0
0
0.001349
0.202688
1,860
51
99
36.470588
0.88739
0.307527
0
0.322581
0
0
0
0
0
0
0
0.019608
0
1
0.096774
false
0
0.096774
0
0.290323
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
0
0
0
1
b157510bd4294ae0fadd282178328089909ffe14
3,792
py
Python
AnalyzeClique_fazowe.py
pirtim/complex_networks_sim
f669c83439d9386d1f4e33bcb60f16f0dac7278d
[ "MIT" ]
null
null
null
AnalyzeClique_fazowe.py
pirtim/complex_networks_sim
f669c83439d9386d1f4e33bcb60f16f0dac7278d
[ "MIT" ]
null
null
null
AnalyzeClique_fazowe.py
pirtim/complex_networks_sim
f669c83439d9386d1f4e33bcb60f16f0dac7278d
[ "MIT" ]
null
null
null
from __future__ import division #~ Domysle dzielenie int jako liczb float # from igraph import * #~ Niepotrzebne import random #~ Niepotrzebne import matplotlib.pyplot as plt #~ Do wykresow from matplotlib import rc import time #~ Niepotrzebne import os.path #~ Do sprawdzania ...
41.217391
140
0.6548
513
3,792
4.674464
0.424951
0.043369
0.025021
0.021685
0.175563
0.101751
0.101751
0.101751
0.043369
0.043369
0
0.018868
0.2173
3,792
91
141
41.67033
0.789084
0.234968
0
0
0
0
0.216197
0.061522
0
0
0
0
0
0
null
null
0
0.144928
null
null
0.014493
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
0
0
1
b15c7f3151ffc939634cc356176e0dd70d17746a
696
py
Python
coding_intereview/maximum_unsorted_subarray.py
Jahidul007/Python-Bootcamp
3c870587465ff66c2c1871c8d3c4eea72463abda
[ "MIT" ]
2
2020-12-07T16:07:07.000Z
2020-12-07T16:08:53.000Z
coding_intereview/maximum_unsorted_subarray.py
purusharthmalik/Python-Bootcamp
2ed1cf886d1081de200b0fdd4cb4e28008c7e3d1
[ "MIT" ]
null
null
null
coding_intereview/maximum_unsorted_subarray.py
purusharthmalik/Python-Bootcamp
2ed1cf886d1081de200b0fdd4cb4e28008c7e3d1
[ "MIT" ]
1
2020-10-03T16:38:02.000Z
2020-10-03T16:38:02.000Z
def subUnsort(A): n = len(A) for i in range(0, n - 1): if A[i] > A[i + 1]: break if i == n - 1: return -1 start = i for i in range(n - 1, start, -1): if A[i] < A[start] or A[i] < A[i - 1]: break end = i min = A[start] max = A[start] fo...
21.090909
46
0.392241
116
696
2.353448
0.232759
0.080586
0.087912
0.201465
0.296703
0.168498
0
0
0
0
0
0.05305
0.458333
696
32
47
21.75
0.671088
0
0
0.275862
0
0
0
0
0
0
0
0
0
1
0.034483
false
0
0
0
0.103448
0.034483
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
0
0
0
1
b15e34f38cef780c846c3d2b8326056f303c38ec
25,642
py
Python
flod_sak/domain/models.py
Trondheim-kommune/Tilskuddsbasen
4f8ce270ef7296069f8e43bfb4bf6a570a7a35d4
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
flod_sak/domain/models.py
Trondheim-kommune/Tilskuddsbasen
4f8ce270ef7296069f8e43bfb4bf6a570a7a35d4
[ "BSD-2-Clause-FreeBSD" ]
3
2021-03-31T18:23:12.000Z
2021-12-13T19:43:12.000Z
flod_sak/domain/models.py
Trondheim-kommune/Tilskuddsbasen
4f8ce270ef7296069f8e43bfb4bf6a570a7a35d4
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# -*- coding: utf-8 -*- from datetime import datetime from operator import attrgetter import os from sqlalchemy import Column, Integer, String, Date, ForeignKey, Enum, Boolean, UniqueConstraint, CheckConstraint, \ DateTime from sqlalchemy.dialects.postgresql import JSON from sqlalchemy.ext.associationproxy import ...
42.879599
120
0.641877
2,594
25,642
6.146106
0.136854
0.039955
0.039516
0.040018
0.518158
0.441824
0.409835
0.389638
0.362102
0.327103
0
0.004527
0.259067
25,642
597
121
42.951424
0.834623
0.03701
0
0.418947
0
0
0.13112
0.013002
0
0
0
0
0
1
0.052632
false
0.006316
0.023158
0.004211
0.536842
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
0
1
0
0
1
b165a59d106f796b902b38024b2240a4cbfd5f77
1,216
py
Python
telewater/settings.py
someoneonearthwholovestg/telewater
ced6810f60b6070d6de4637450a1ea87076e9b1d
[ "MIT" ]
1
2021-04-26T07:12:47.000Z
2021-04-26T07:12:47.000Z
telewater/settings.py
someoneonearthwholovestg/telewater
ced6810f60b6070d6de4637450a1ea87076e9b1d
[ "MIT" ]
null
null
null
telewater/settings.py
someoneonearthwholovestg/telewater
ced6810f60b6070d6de4637450a1ea87076e9b1d
[ "MIT" ]
null
null
null
''' This module defines the configuration used to run telewater. ''' import os from dotenv import load_dotenv load_dotenv('.env') API_ID = os.getenv('API_ID') API_HASH = os.getenv('API_HASH') WATERMARK = os.getenv( 'WATERMARK', 'https://user-images.githubusercontent.com/66209958/109513526-35883200-7acb-11eb-97e...
32.864865
125
0.713816
190
1,216
4.478947
0.5
0.056404
0.025852
0.075206
0.239718
0.204465
0.204465
0.204465
0.204465
0.204465
0
0.08624
0.151316
1,216
36
126
33.777778
0.738372
0.049342
0
0
0
0.115385
0.712544
0
0
0
0
0
0
1
0
false
0
0.076923
0
0.076923
0.076923
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
0
0
0
0
0
0
0
1
b1667fbe2095eabdc2b4d3b8c93ba573c9e0aaaa
1,388
py
Python
setup.py
inclement/p4a-experiment
4e120e08cc3c33af89948307628c8b28fdf76b87
[ "MIT" ]
1
2015-06-09T21:12:09.000Z
2015-06-09T21:12:09.000Z
setup.py
inclement/p4a-experiment
4e120e08cc3c33af89948307628c8b28fdf76b87
[ "MIT" ]
null
null
null
setup.py
inclement/p4a-experiment
4e120e08cc3c33af89948307628c8b28fdf76b87
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages # NOTE: All package data is set in MANIFEST.in setup(name='python-for-android', version='0.1', description='Android APK packager for Python scripts and apps', author='Alexander Taylor', author_email='kivy-dev@googlegroups.com', url='https://gi...
36.526316
76
0.573487
126
1,388
6.261905
0.68254
0.076046
0.060837
0
0
0
0
0
0
0
0
0.007187
0.298271
1,388
37
77
37.513514
0.802875
0.0317
0
0.090909
0
0
0.565996
0.101417
0
0
0
0
0
1
0
true
0
0.030303
0
0.030303
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
0
0
0
0
0
1
b17bbda4bda5e8e634c05505c0268d1938fc563c
1,346
py
Python
indexbams2.py
TaliaferroLab/AnalysisScripts
3df37d2f8fca9bc402afe5ea870c42200fca1ed3
[ "MIT" ]
null
null
null
indexbams2.py
TaliaferroLab/AnalysisScripts
3df37d2f8fca9bc402afe5ea870c42200fca1ed3
[ "MIT" ]
null
null
null
indexbams2.py
TaliaferroLab/AnalysisScripts
3df37d2f8fca9bc402afe5ea870c42200fca1ed3
[ "MIT" ]
1
2021-10-30T07:37:19.000Z
2021-10-30T07:37:19.000Z
import subprocess import os from datetime import datetime def mergebam(protein, bam1, bam2): print 'Merging bams for {0}...'.format(protein) print str(datetime.now()) subprocess.call(['samtools', 'merge', protein + '.merged.bam', bam1, bam2]) print 'Done merging bams for {0}!'.format(protein) def indexbam(bam): ...
48.071429
367
0.696137
189
1,346
4.925926
0.534392
0.083781
0.032223
0.05478
0.255639
0.255639
0.195489
0.107411
0.107411
0.107411
0
0.06506
0.075037
1,346
28
368
48.071429
0.682731
0.021545
0
0.086957
0
0.130435
0.458618
0.170843
0
0
0
0
0
0
null
null
0
0.130435
null
null
0.304348
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
0
0
1
b17e66a44e12e20a1328e28a8c979a445f6a6262
4,612
py
Python
src/student.py
RushiRaut/SRMS-using-Flask
1c9ee1236f94eedf8f5df91622bc404ba05a265a
[ "Apache-2.0" ]
null
null
null
src/student.py
RushiRaut/SRMS-using-Flask
1c9ee1236f94eedf8f5df91622bc404ba05a265a
[ "Apache-2.0" ]
null
null
null
src/student.py
RushiRaut/SRMS-using-Flask
1c9ee1236f94eedf8f5df91622bc404ba05a265a
[ "Apache-2.0" ]
null
null
null
from flask import * from src.connection import cursor, db add_student = Blueprint ('add_student', __name__) manage_student = Blueprint('manage_student', __name__) delete_student = Blueprint('delete_student',__name__) edit = Blueprint('pre_edit',__name__) @add_student.route ('/add_student1', methods=['GET', 'POST'])...
50.130435
113
0.671726
574
4,612
5.12892
0.125436
0.063519
0.065217
0.079484
0.715693
0.690217
0.647758
0.647758
0.647758
0.647758
0
0.001073
0.191891
4,612
92
114
50.130435
0.788838
0
0
0.52439
0
0
0.288749
0.008454
0
0
0
0
0
1
0.060976
false
0
0.02439
0
0.158537
0.04878
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b181a05731a931af7bcbf98d1e9a1e58eeaeda3a
1,302
py
Python
venv/Lib/site-packages/moderngl_window/meta/data.py
net-oil-man/Oilman-Manim-Tools
f93d54d586fcae69932c4f0820de96d83cdb9c5d
[ "Apache-2.0" ]
1
2021-02-10T08:41:10.000Z
2021-02-10T08:41:10.000Z
venv/Lib/site-packages/moderngl_window/meta/data.py
net-oil-man/Oilman-Manim-Tools
f93d54d586fcae69932c4f0820de96d83cdb9c5d
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/moderngl_window/meta/data.py
net-oil-man/Oilman-Manim-Tools
f93d54d586fcae69932c4f0820de96d83cdb9c5d
[ "Apache-2.0" ]
null
null
null
from moderngl_window.meta.base import ResourceDescription class DataDescription(ResourceDescription): """Describes data file to load. This is a generic resource description type for loading resources that are not textures, programs and scenes. That loaded class is used depends on the ``kind`` or the ...
29.590909
76
0.645929
157
1,302
5.286624
0.458599
0.021687
0.083133
0.040964
0.13253
0.13253
0.13253
0.13253
0.13253
0.13253
0
0
0.270353
1,302
43
77
30.27907
0.873684
0.655146
0
0
0
0
0.035714
0
0
0
0
0
0
1
0.111111
false
0
0.111111
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
0
0
1
0
0
1
b18b6687f054019068d0cb7e264883bb304c511d
2,720
py
Python
bot/cogs/sqcs_plugin/react.py
phantom0174/HSQCC_bot
93d4b40f7d8885bcf927590926370d67e05a5760
[ "MIT" ]
4
2020-11-25T16:31:41.000Z
2021-08-28T21:35:01.000Z
bot/cogs/sqcs_plugin/react.py
phantom0174/HSQCC_bot
93d4b40f7d8885bcf927590926370d67e05a5760
[ "MIT" ]
12
2020-12-21T09:42:13.000Z
2021-05-16T06:17:49.000Z
bot/cogs/sqcs_plugin/react.py
phantom0174/HSQCC_bot
93d4b40f7d8885bcf927590926370d67e05a5760
[ "MIT" ]
2
2021-04-13T08:28:12.000Z
2021-07-11T02:41:35.000Z
from discord.ext import commands import asyncio import time from ...core.db.jsonstorage import JsonApi from ...core.utils import Time from ...core.cog_config import CogExtension from ...core.fluctlight_ext import Fluct class React(CogExtension): @commands.Cog.listener() async def on_member_join(self, member)...
32.380952
95
0.616176
334
2,720
4.844311
0.314371
0.055624
0.074166
0.088999
0.304697
0.218171
0.125464
0.085909
0
0
0
0.022495
0.280882
2,720
83
96
32.771084
0.802658
0.011397
0
0.276923
0
0
0.077038
0.017492
0
0
0
0
0
1
0.030769
false
0.061538
0.107692
0.015385
0.2
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
0
0
0
1
b19304ae633e3e0c4eeece0d428f9cfd48461975
1,971
py
Python
autotest/autotest/product/migrations/0003_auto_20181121_0937.py
zhouxuerong/autotest
8a3ecf9f532ecf676ccafc2f15b03001806aa0e5
[ "MIT" ]
null
null
null
autotest/autotest/product/migrations/0003_auto_20181121_0937.py
zhouxuerong/autotest
8a3ecf9f532ecf676ccafc2f15b03001806aa0e5
[ "MIT" ]
null
null
null
autotest/autotest/product/migrations/0003_auto_20181121_0937.py
zhouxuerong/autotest
8a3ecf9f532ecf676ccafc2f15b03001806aa0e5
[ "MIT" ]
null
null
null
# Generated by Django 2.1.3 on 2018-11-21 01:37 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('product', '0002_auto_20181121_0740'), ] operations = [ migrations.CreateModel( name='Apistep', ...
42.847826
125
0.590056
200
1,971
5.65
0.405
0.126549
0.111504
0.148673
0.357522
0.263717
0.263717
0.263717
0.263717
0.263717
0
0.033887
0.266362
1,971
45
126
43.8
0.74758
0.022831
0
0.333333
1
0
0.142412
0.011954
0
0
0
0
0
1
0
false
0
0.051282
0
0.128205
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b19b580be510c1cce21c436598a8d12153e455f4
2,271
py
Python
source/apps/crawl_space/viz/plot.py
nasa-jpl-memex/memex-explorer
d2910496238359b3676b4467721017fc82f0b324
[ "BSD-2-Clause" ]
31
2018-02-26T11:28:14.000Z
2021-04-19T02:51:53.000Z
source/apps/crawl_space/viz/plot.py
danielguerra69/memex-explorer
d4c2e63fb982bb23f6cb9d7b0a93b21740a68f10
[ "BSD-2-Clause" ]
185
2015-01-01T16:54:08.000Z
2015-03-04T23:31:15.000Z
source/apps/crawl_space/viz/plot.py
danielguerra69/memex-explorer
d4c2e63fb982bb23f6cb9d7b0a93b21740a68f10
[ "BSD-2-Clause" ]
15
2018-03-23T14:01:35.000Z
2020-10-28T00:46:28.000Z
from StringIO import StringIO import pandas as pd from harvest import Harvest from domain import Domain from .stream import init_plot from django.conf import settings ENABLE_STREAM_VIZ = settings.ENABLE_STREAM_VIZ class PlotsNotReadyException(Exception): pass class AcheDashboard(object): def __init__(se...
28.037037
78
0.578159
255
2,271
4.996078
0.321569
0.049451
0.035322
0.036107
0.284144
0.284144
0.284144
0.230769
0.175824
0.175824
0
0.00262
0.327609
2,271
80
79
28.3875
0.831696
0.093791
0
0.283333
0
0
0.06527
0
0
0
0
0.0125
0
1
0.116667
false
0.016667
0.1
0
0.4
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
0
0
0
1
b1a6f478c9ce187ec7419597218572699f970be0
1,711
py
Python
exam_user_utilities/check_login.py
alex-mitrevski/brsu_digital_exam_tools
a93e6a2382c7c3393b4ef008a220a5ef181aea84
[ "MIT" ]
null
null
null
exam_user_utilities/check_login.py
alex-mitrevski/brsu_digital_exam_tools
a93e6a2382c7c3393b4ef008a220a5ef181aea84
[ "MIT" ]
null
null
null
exam_user_utilities/check_login.py
alex-mitrevski/brsu_digital_exam_tools
a93e6a2382c7c3393b4ef008a220a5ef181aea84
[ "MIT" ]
null
null
null
import os import argparse import yaml import requests import pandas as pd parser = argparse.ArgumentParser() parser.add_argument('--server', default='', help='The jupyterhub server') parser.add_argument('--user_list', default='', help='The list of the users in csv') FLAGS = parser.parse_args() SERVER = FLAGS.server U...
31.109091
122
0.653419
217
1,711
5.013825
0.391705
0.044118
0.03125
0.033088
0.130515
0.130515
0.068015
0
0
0
0
0.004511
0.222677
1,711
55
123
31.109091
0.813534
0
0
0.116279
0
0
0.23715
0
0
0
0
0
0
1
0.046512
false
0.116279
0.116279
0
0.302326
0.186047
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
0
0
0
1
b1ac9cbe7895499184689038a33bdfa633382e65
1,585
py
Python
tests/unitary/test_withdraw.py
pacdao/bonus-nft
a4a6dfa590dc2356eaf1172a499cf28f4fc9d692
[ "MIT" ]
null
null
null
tests/unitary/test_withdraw.py
pacdao/bonus-nft
a4a6dfa590dc2356eaf1172a499cf28f4fc9d692
[ "MIT" ]
null
null
null
tests/unitary/test_withdraw.py
pacdao/bonus-nft
a4a6dfa590dc2356eaf1172a499cf28f4fc9d692
[ "MIT" ]
null
null
null
def test_can_withdraw_as_alice(nft_funded, alice, bob, accounts, beneficiary): nft_funded.withdraw({"from": alice}) init_balance = beneficiary.balance() accounts[1].transfer(nft_funded, 10 ** 18) nft_funded.mint({"from": bob}) nft_funded.withdraw({"from": alice}) final_balance = beneficiary.bala...
35.222222
84
0.718612
203
1,585
5.330049
0.152709
0.124769
0.184843
0.116451
0.779113
0.690388
0.601664
0.582255
0.582255
0.582255
0
0.020942
0.156467
1,585
44
85
36.022727
0.788332
0
0
0.647059
0
0
0.022713
0
0
0
0
0
0.147059
1
0.147059
false
0
0
0
0.147059
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4908cc1051b8daef78161a4c4531e024e7de668f
2,931
py
Python
tests/test_examples/test_patterns.py
mshvartsman/hydra
65057c36c05187fdadd07db4f4b4e086a22fc030
[ "MIT" ]
1
2020-07-13T09:06:16.000Z
2020-07-13T09:06:16.000Z
tests/test_examples/test_patterns.py
mshvartsman/hydra
65057c36c05187fdadd07db4f4b4e086a22fc030
[ "MIT" ]
null
null
null
tests/test_examples/test_patterns.py
mshvartsman/hydra
65057c36c05187fdadd07db4f4b4e086a22fc030
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import sys from pathlib import Path from subprocess import check_output from typing import Any, List import pytest from omegaconf import DictConfig from hydra.test_utils.test_utils import ( TTaskRunner, chdir_hydra_root, verify_dir_out...
30.216495
105
0.590925
322
2,931
5.204969
0.397516
0.02506
0.0358
0.059666
0.380668
0.342482
0.317422
0.227924
0.227924
0.073986
0
0.009761
0.300921
2,931
96
106
30.53125
0.808199
0.102013
0
0.214286
0
0
0.196116
0.083397
0
0
0
0.010417
0.047619
1
0.035714
false
0.035714
0.083333
0
0.119048
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
0
0
0
1
490a6c00ba631d6e7c67e3702500d6f5bd798814
3,922
py
Python
ivory/core/layer.py
daizutabi/scratch
4c56fad47da0938eda89f3c2b6cb2f1919bee180
[ "MIT" ]
null
null
null
ivory/core/layer.py
daizutabi/scratch
4c56fad47da0938eda89f3c2b6cb2f1919bee180
[ "MIT" ]
null
null
null
ivory/core/layer.py
daizutabi/scratch
4c56fad47da0938eda89f3c2b6cb2f1919bee180
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from itertools import chain from typing import List from ivory.core.base import Base from ivory.core.parameter import Input, Loss, Output, Parameter, State, Weight from ivory.core.variable import Data, Shape, Variable @dataclass(repr=False, eq=False) class Layer(Base): sh...
34.104348
86
0.627486
499
3,922
4.815631
0.178357
0.029963
0.039534
0.047857
0.143987
0.104037
0.037453
0.037453
0
0
0
0.001386
0.264151
3,922
114
87
34.403509
0.831254
0.058899
0
0.114943
0
0
0.013896
0.010899
0
0
0
0
0
1
0.172414
false
0.011494
0.068966
0.045977
0.505747
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
0
1
0
0
1
49102ec78840355f23310e824ab414f2c57ab2a4
965
py
Python
pepdb/core/migrations/0044_auto_20151026_1133.py
dchaplinsky/pep.org.ua
8633a65fb657d7f04dbdb12eb8ae705fa6be67e3
[ "MIT" ]
7
2015-12-21T03:52:46.000Z
2020-07-24T19:17:23.000Z
pepdb/core/migrations/0044_auto_20151026_1133.py
dchaplinsky/pep.org.ua
8633a65fb657d7f04dbdb12eb8ae705fa6be67e3
[ "MIT" ]
12
2016-03-05T18:11:05.000Z
2021-06-17T20:20:03.000Z
pepdb/core/migrations/0044_auto_20151026_1133.py
dchaplinsky/pep.org.ua
8633a65fb657d7f04dbdb12eb8ae705fa6be67e3
[ "MIT" ]
4
2016-07-17T20:19:38.000Z
2021-03-23T12:47:20.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from core.models import Ua2EnDictionary def move_positions(apps, schema_editor): Person2Company = apps.get_model("core", "Person2Company") en_translations = {} for t in Ua2EnDictionary.objects.all():...
26.081081
70
0.667358
105
965
5.895238
0.52381
0.145396
0.184168
0
0
0
0
0
0
0
0
0.041389
0.223834
965
36
71
26.805556
0.785047
0.021762
0
0
0
0
0.047771
0.024416
0
0
0
0
0
1
0.041667
false
0
0.125
0
0.291667
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
491455e894e3981e46b70262bbac0f8a5aeeee57
349
py
Python
binarysearch/equivalentValueAndFrequency.py
Ry4nW/python-wars
76e3fb24b7ae2abf35db592f1ad59cf8d5f9e508
[ "MIT" ]
1
2021-06-06T19:55:22.000Z
2021-06-06T19:55:22.000Z
binarysearch/equivalentValueAndFrequency.py
Ry4nW/python-wars
76e3fb24b7ae2abf35db592f1ad59cf8d5f9e508
[ "MIT" ]
1
2022-01-20T19:20:33.000Z
2022-01-20T23:51:46.000Z
binarysearch/equivalentValueAndFrequency.py
Ry4nW/python-wars
76e3fb24b7ae2abf35db592f1ad59cf8d5f9e508
[ "MIT" ]
null
null
null
class Solution: def solve(self, nums): numsDict = {} for i in nums: if i in numsDict: numsDict[i] += 1 else: numsDict[i] = 1 for num in numsDict: if num == numsDict[num]: return True ...
19.388889
36
0.39255
34
349
4.029412
0.5
0.043796
0.145985
0
0
0
0
0
0
0
0
0.012422
0.538682
349
18
37
19.388889
0.838509
0
0
0
0
0
0
0
0
0
0
0
0
1
0.083333
false
0
0
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
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
1
491975608e5aee4389d4fd5a4d6f68e6c4c3a19a
4,377
py
Python
multimodal_seq2seq_gSCAN/GroundedScan/helpers.py
ModularCogSci2022/msa
303f00a6d0040cc92dabc589f32d34baef45772b
[ "MIT" ]
60
2020-03-12T13:03:26.000Z
2022-02-26T05:58:59.000Z
multimodal_seq2seq_gSCAN/GroundedScan/helpers.py
ModularCogSci2022/msa
303f00a6d0040cc92dabc589f32d34baef45772b
[ "MIT" ]
1
2021-11-21T10:44:51.000Z
2021-12-02T15:11:51.000Z
multimodal_seq2seq_gSCAN/GroundedScan/helpers.py
ModularCogSci2022/msa
303f00a6d0040cc92dabc589f32d34baef45772b
[ "MIT" ]
12
2020-04-03T05:48:23.000Z
2022-02-15T23:58:07.000Z
import numpy as np from typing import Tuple from typing import List from typing import Any import matplotlib.pyplot as plt import cv2 from GroundedScan.gym_minigrid.minigrid import DIR_TO_VEC # TODO faster def topo_sort(items, constraints): if not constraints: return items items = list(items) con...
33.412214
112
0.676719
676
4,377
4.164201
0.241124
0.05968
0.04476
0.045471
0.37087
0.31119
0.235879
0.194671
0.144227
0.144227
0
0.014947
0.205163
4,377
130
113
33.669231
0.794194
0.073566
0
0.210526
0
0
0.01713
0
0
0
0
0.015385
0.052632
1
0.115789
false
0
0.073684
0.021053
0.273684
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
0
0
0
1
491e457d2259129ac3bb2be9a0b1ac00be67dbdb
3,196
py
Python
biothings/utils/web/es_connection.py
dongbohu/biothings.api
9af8742566e1d77a361b9a2fa3595fa24ca81932
[ "Apache-2.0" ]
null
null
null
biothings/utils/web/es_connection.py
dongbohu/biothings.api
9af8742566e1d77a361b9a2fa3595fa24ca81932
[ "Apache-2.0" ]
null
null
null
biothings/utils/web/es_connection.py
dongbohu/biothings.api
9af8742566e1d77a361b9a2fa3595fa24ca81932
[ "Apache-2.0" ]
null
null
null
import logging from elasticsearch_async.connection import AIOHttpConnection logger = logging.getLogger("elasticsearch") tracer = logging.getLogger("elasticsearch.trace") class BiothingsAIOHttpConnection(AIOHttpConnection): def _log_trace(self, method, path, body, status_code, response, duration): if not...
31.96
89
0.529725
346
3,196
4.794798
0.303468
0.060277
0.047016
0.053044
0.368897
0.368897
0.302592
0.302592
0.302592
0.302592
0
0.007901
0.366395
3,196
99
90
32.282828
0.811358
0.163329
0
0.438356
0
0
0.093585
0
0
0
0
0.010101
0
1
0.041096
false
0.027397
0.027397
0
0.109589
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
0
0
0
1
492112e05dedc5a108a97a1988a53380ac2324a3
5,459
py
Python
TweetListener.py
namans3/Keyword-Extraction
fdce1cfff1339c8fbc794b918a99683f162fa79c
[ "MIT" ]
null
null
null
TweetListener.py
namans3/Keyword-Extraction
fdce1cfff1339c8fbc794b918a99683f162fa79c
[ "MIT" ]
null
null
null
TweetListener.py
namans3/Keyword-Extraction
fdce1cfff1339c8fbc794b918a99683f162fa79c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import tweepy import time from textblob import TextBlob import json import sys #Declaring a global variable to store the location name which would be used for accessing the location files global location #Variables that contains the user credentials to access Twitter API...
42.984252
138
0.641143
707
5,459
4.831683
0.326733
0.018443
0.022834
0.019321
0.155738
0.099532
0.08548
0.064988
0.064988
0.040984
0
0.009007
0.288148
5,459
126
139
43.325397
0.870046
0.414545
0
0.166667
0
0
0.098231
0.007581
0
0
0.004106
0
0
0
null
null
0
0.069444
null
null
0.069444
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
0
0
1
492be1f29e7e0014b06a8d70e785a6e628352050
8,761
py
Python
sensors/aoscx_websocket.py
cognifloyd/stackstorm-aoscx
bcdd4d3053872025e0b0bad697c1eef16f1fcf2e
[ "Apache-2.0" ]
null
null
null
sensors/aoscx_websocket.py
cognifloyd/stackstorm-aoscx
bcdd4d3053872025e0b0bad697c1eef16f1fcf2e
[ "Apache-2.0" ]
2
2020-11-06T18:57:15.000Z
2020-11-06T19:01:58.000Z
sensors/aoscx_websocket.py
cognifloyd/stackstorm-aoscx
bcdd4d3053872025e0b0bad697c1eef16f1fcf2e
[ "Apache-2.0" ]
3
2020-11-06T19:00:18.000Z
2021-03-31T21:36:45.000Z
# Copyright (C) 2020 Hewlett Packard Enterprise Development LP # All Rights Reserved. # # The contents of this software are proprietary and confidential # to the Hewlett Packard Enterprise Development LP. No part of this # program may be photocopied, reproduced, or translated into another # programming language without...
42.323671
79
0.519804
874
8,761
5.046911
0.251716
0.027205
0.032646
0.018136
0.242122
0.202448
0.140104
0.121514
0.101111
0.091589
0
0.008795
0.390024
8,761
206
80
42.529126
0.816617
0.060838
0
0.191011
0
0
0.111869
0.010834
0
0
0
0
0
1
0.05618
false
0.078652
0.073034
0
0.168539
0.033708
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
0
0
0
1
49354b7419a95b8bb7e0b0990829c5a4596bcc97
2,167
py
Python
xalanih/core/mysql/mysqlconnector.py
nhereman/Xalanih
e74e631115b8e1646788e5247f9d5bc7e890d3b8
[ "MIT" ]
null
null
null
xalanih/core/mysql/mysqlconnector.py
nhereman/Xalanih
e74e631115b8e1646788e5247f9d5bc7e890d3b8
[ "MIT" ]
10
2018-07-14T13:48:34.000Z
2019-01-02T14:47:53.000Z
xalanih/core/mysql/mysqlconnector.py
nhereman/Xalanih
e74e631115b8e1646788e5247f9d5bc7e890d3b8
[ "MIT" ]
null
null
null
import MySQLdb as db from xalanih.utils.parameters import Parameters from xalanih.core.dbconnector import DBConnector from xalanih.core.logger import Logger from xalanih.core.xalanihexception import XalanihException class MysqlConnector(DBConnector): def __init__(self, params, logger): """ Constru...
28.513158
77
0.604984
203
2,167
6.408867
0.320197
0.083013
0.034589
0.039969
0.11837
0.075327
0.075327
0.075327
0.075327
0.075327
0
0
0.310106
2,167
75
78
28.893333
0.870234
0.165205
0
0.051282
0
0
0.039427
0
0
0
0
0
0.051282
1
0.102564
false
0.076923
0.128205
0
0.333333
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
0
0
0
1
493a284ecaadf10f76f74bb10f6fcdf6a897b449
790
py
Python
examples/old-examples/GLWindow/01_hello_world.py
asnt/moderngl
b39cedd8cf216c34e43371b4aec822f6084f0f79
[ "MIT" ]
96
2020-01-13T00:54:02.000Z
2022-02-13T10:07:43.000Z
examples/old-examples/GLWindow/01_hello_world.py
asnt/moderngl
b39cedd8cf216c34e43371b4aec822f6084f0f79
[ "MIT" ]
null
null
null
examples/old-examples/GLWindow/01_hello_world.py
asnt/moderngl
b39cedd8cf216c34e43371b4aec822f6084f0f79
[ "MIT" ]
17
2020-02-04T01:56:07.000Z
2022-02-10T19:06:56.000Z
import struct import GLWindow import ModernGL # Window & Context wnd = GLWindow.create_window() ctx = ModernGL.create_context() # Shaders & Program prog = ctx.program( ctx.vertex_shader(''' #version 330 in vec2 vert; void main() { gl_Position = vec4(vert, 0.0, 1.0); ...
14.90566
50
0.541772
108
790
3.898148
0.462963
0.014252
0.07601
0.019002
0.023753
0.023753
0
0
0
0
0
0.074275
0.301266
790
52
51
15.192308
0.688406
0
0
0.1875
0
0
0.375176
0
0
0
0
0
0
0
null
null
0
0.09375
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
0
0
0
0
0
0
1
493bd7516d07013ed96ab2203e1e9721df0feb5c
5,267
py
Python
viewer/__init__.py
fwidmaier/mesh_handler
bba4144f5d525feef955369ed4fd446324024e6a
[ "MIT" ]
null
null
null
viewer/__init__.py
fwidmaier/mesh_handler
bba4144f5d525feef955369ed4fd446324024e6a
[ "MIT" ]
null
null
null
viewer/__init__.py
fwidmaier/mesh_handler
bba4144f5d525feef955369ed4fd446324024e6a
[ "MIT" ]
null
null
null
import math import time from tkinter import * from PIL import ImageTk from render.scene import Scene from linalg import Vector class SceneView(Canvas): def __init__(self, root, **kwargs): super().__init__(root, **kwargs) self.width = self.winfo_reqwidth() self.height = self.winfo_reqheight...
38.727941
197
0.633567
725
5,267
4.514483
0.193103
0.156737
0.153987
0.213871
0.468072
0.448213
0.434769
0.416438
0.371219
0.350443
0
0.016638
0.224036
5,267
136
198
38.727941
0.784194
0.175242
0
0.134615
0
0
0.032764
0
0
0
0
0
0
1
0.163462
false
0.009615
0.057692
0
0.25
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
0
0
0
1
4948327d6cb14b32bdd8d73013f78cb5f7267021
9,658
py
Python
SBaaS_base/sbaas_base_o.py
dmccloskey/SBaaS_base
04ce7b6560ea6bae9aad29ec2baebf272e74e019
[ "MIT" ]
null
null
null
SBaaS_base/sbaas_base_o.py
dmccloskey/SBaaS_base
04ce7b6560ea6bae9aad29ec2baebf272e74e019
[ "MIT" ]
null
null
null
SBaaS_base/sbaas_base_o.py
dmccloskey/SBaaS_base
04ce7b6560ea6bae9aad29ec2baebf272e74e019
[ "MIT" ]
null
null
null
from .sbaas_base import sbaas_base from .sbaas_base_query_select import sbaas_base_query_select # resources from io_utilities.base_exportData import base_exportData from ddt_python.ddt_container_table import ddt_container_table from ddt_python.ddt_container_SQL import ddt_container_SQL class sbaas_base_o(sbaas_base ...
39.420408
221
0.579312
1,051
9,658
5.01903
0.142721
0.020474
0.03128
0.016682
0.717536
0.694597
0.681137
0.676019
0.676019
0.676019
0
0.010842
0.341064
9,658
244
222
39.581967
0.818039
0.151791
0
0.668508
0
0
0.032531
0.0058
0
0
0
0.004098
0
1
0.016575
false
0
0.027624
0
0.066298
0.005525
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
494b7637a71a92394659017ed920e521f66a451a
9,399
py
Python
csrv/model/locations.py
mrroach/CentralServer
e377c65d8f3adf5a2d3273acd4f459be697aea56
[ "Apache-2.0" ]
null
null
null
csrv/model/locations.py
mrroach/CentralServer
e377c65d8f3adf5a2d3273acd4f459be697aea56
[ "Apache-2.0" ]
null
null
null
csrv/model/locations.py
mrroach/CentralServer
e377c65d8f3adf5a2d3273acd4f459be697aea56
[ "Apache-2.0" ]
1
2020-09-20T11:26:20.000Z
2020-09-20T11:26:20.000Z
import random from csrv.model import actions from csrv.model import errors from csrv.model import game_object from csrv.model import modifiers from csrv.model import timing_phases class Location(game_object.PlayerObject): def __init__(self, game, player, parent=None): game_object.PlayerObject.__init__(self, gam...
25.750685
77
0.7005
1,292
9,399
4.870743
0.116099
0.068648
0.048943
0.042269
0.679644
0.619895
0.547275
0.515335
0.486096
0.47243
0
0.001574
0.189063
9,399
364
78
25.821429
0.824062
0.038089
0
0.543396
0
0
0.024325
0
0
0
0
0
0
1
0.226415
false
0
0.022642
0.026415
0.415094
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
0
0
0
1
4958f2f66e71e920080c2b465a7b679162eb226b
2,385
py
Python
examples/python_loops.py
jonathanslenders/libpymux
ac8f8fe9771d15102eef6b753b6a70bd1354f4b5
[ "BSD-2-Clause-FreeBSD" ]
10
2015-05-07T23:44:49.000Z
2021-08-06T13:56:27.000Z
examples/python_loops.py
jonathanslenders/libpymux
ac8f8fe9771d15102eef6b753b6a70bd1354f4b5
[ "BSD-2-Clause-FreeBSD" ]
2
2017-12-16T20:34:27.000Z
2018-10-25T21:15:45.000Z
examples/python_loops.py
jonathanslenders/libpymux
ac8f8fe9771d15102eef6b753b6a70bd1354f4b5
[ "BSD-2-Clause-FreeBSD" ]
2
2016-05-24T20:03:56.000Z
2021-12-12T03:40:02.000Z
#!/usr/bin/env python """ Usage: python_loops.py Doesn't start any external processes. Just runs a Python while loop in the panes. """ from asyncio.protocols import BaseProtocol from libpymux.input import InputProtocol from libpymux.panes import ExecPane from libpymux.renderer import PipeRenderer from libpymux.ses...
27.732558
108
0.651992
285
2,385
5.273684
0.438596
0.055888
0.018629
0.029275
0
0
0
0
0
0
0
0.006232
0.259958
2,385
85
109
28.058824
0.845326
0.102725
0
0.04
0
0
0.017884
0
0
0
0
0
0
0
null
null
0
0.22
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
0
0
0
0
0
0
1
495ae43547c92f442df9b45a1e8a159e2dab1680
4,836
py
Python
src/apps/tco2_dashboard/constants.py
originalpkbims/dash-apps
ea84cbd3e7227fb3de40cd16000838dd088343c7
[ "MIT" ]
1
2022-02-19T01:37:29.000Z
2022-02-19T01:37:29.000Z
src/apps/tco2_dashboard/constants.py
originalpkbims/dash-apps
ea84cbd3e7227fb3de40cd16000838dd088343c7
[ "MIT" ]
12
2022-03-11T21:32:35.000Z
2022-03-30T13:45:12.000Z
src/apps/tco2_dashboard/constants.py
originalpkbims/dash-apps
ea84cbd3e7227fb3de40cd16000838dd088343c7
[ "MIT" ]
3
2022-02-05T17:13:47.000Z
2022-03-24T00:36:45.000Z
BCT_ADDRESS = '0x2f800db0fdb5223b3c3f354886d907a671414a7f' NCT_ADDRESS = '0xd838290e877e0188a4a44700463419ed96c16107' UBO_ADDRESS = '0x2b3ecb0991af0498ece9135bcd04013d7993110c' NBO_ADDRESS = '0x6bca3b77c1909ce1a4ba1a20d1103bde8d222e48' GRAY = '#232B2B' DARK_GRAY = '#343a40' FIGURE_BG_COLOR = '#202020' MCO2_ADDRESS = '0...
37.2
119
0.704508
435
4,836
7.581609
0.333333
0.04336
0.016374
0.01698
0.024864
0.024864
0.024864
0
0
0
0
0.044905
0.161911
4,836
129
120
37.488372
0.768813
0
0
0
0
0
0.6555
0.208023
0
0
0.052109
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
49602b6c8458a8b4aefbc794b3abd321c753458a
1,299
py
Python
client/utils/macos.py
amymariaparker2401/luci-py
c5902547adc12390df6b09c825a38370f1034e8b
[ "Apache-2.0" ]
74
2015-04-01T02:35:15.000Z
2021-12-17T22:10:56.000Z
client/utils/macos.py
amymariaparker2401/luci-py
c5902547adc12390df6b09c825a38370f1034e8b
[ "Apache-2.0" ]
123
2015-04-01T04:02:57.000Z
2022-03-02T12:49:55.000Z
client/utils/macos.py
Lees78/luci-py
7b854c55f63e648005ae8aa38e2e41cd8f99feda
[ "Apache-2.0" ]
32
2015-04-03T01:40:47.000Z
2021-11-13T15:20:13.000Z
# Copyright 2020 The LUCI Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 # that can be found in the LICENSE file. """This is simple wrapper of objc or Carbon.File/MacOS for macos.""" import sys import unicodedata import six if sys.platform == 'darwin': if ...
27.0625
77
0.644342
193
1,299
4.253886
0.53886
0.038977
0.024361
0.029233
0.036541
0
0
0
0
0
0
0.0174
0.247883
1,299
47
78
27.638298
0.822927
0.341801
0
0.148148
0
0
0.053381
0
0
0
0
0
0
1
0.148148
false
0
0.259259
0.037037
0.592593
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
0
1
0
0
1
4960454aadef102d431ec85525b2a01d9e248681
5,971
py
Python
Node_Services/scripts/forecast.py
ParnabBasak/Group3_Hackathon
fa5d56c82eeb3d3aae228eb647d14507ac064ec5
[ "MIT" ]
null
null
null
Node_Services/scripts/forecast.py
ParnabBasak/Group3_Hackathon
fa5d56c82eeb3d3aae228eb647d14507ac064ec5
[ "MIT" ]
11
2020-09-07T16:32:22.000Z
2022-02-13T00:19:18.000Z
Node_Services/scripts/forecast.py
ParnabBasak/Group3_Hackathon
fa5d56c82eeb3d3aae228eb647d14507ac064ec5
[ "MIT" ]
4
2019-11-06T05:50:10.000Z
2019-11-17T16:15:54.000Z
import sys import pandas as pd from datetime import datetime, timedelta import calendar import datetime from pymongo import MongoClient from pandas import read_csv from statsmodels.tsa.arima_model import ARIMA import numpy import json from bson.json_util import dumps ###################################################...
41.755245
804
0.609111
783
5,971
4.555556
0.314176
0.025231
0.020185
0.03196
0.15307
0.107093
0.091393
0.058312
0.039249
0.039249
0
0.072547
0.187406
5,971
143
805
41.755245
0.662613
0
0
0.024096
0
0
0.133684
0.029339
0
0
0
0
0
0
null
null
0
0.13253
null
null
0.108434
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
0
0
1
4966afab4a022a095d002870fb424aff7d804e8f
3,881
py
Python
pdata_app/migrations/0030_auto_20180207_0909.py
jonseddon/primavera-dmt
1239044e37f070b925a3d06db68351f285df780c
[ "BSD-3-Clause" ]
null
null
null
pdata_app/migrations/0030_auto_20180207_0909.py
jonseddon/primavera-dmt
1239044e37f070b925a3d06db68351f285df780c
[ "BSD-3-Clause" ]
49
2018-11-14T17:00:03.000Z
2021-12-20T11:04:22.000Z
pdata_app/migrations/0030_auto_20180207_0909.py
jonseddon/primavera-dmt
1239044e37f070b925a3d06db68351f285df780c
[ "BSD-3-Clause" ]
2
2018-07-04T10:58:43.000Z
2018-09-29T14:55:08.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-02-07 09:09 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('pdata_app', '0029_auto_20180206_1048'), ] operations...
58.80303
203
0.616336
448
3,881
5.174107
0.243304
0.113891
0.103538
0.117343
0.513374
0.437446
0.3956
0.336066
0.336066
0.317084
0
0.033813
0.230353
3,881
65
204
59.707692
0.742216
0.017006
0
0.275862
1
0
0.179433
0.013379
0
0
0
0
0
1
0
false
0
0.051724
0
0.103448
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
496ca34ca2fd32d0211376cd2c57cf3d00465ee5
1,537
py
Python
tests/__init__.py
mkay849/django-relativedelta
34e036906204213d9c42e586889e1190fb867cb3
[ "MIT" ]
null
null
null
tests/__init__.py
mkay849/django-relativedelta
34e036906204213d9c42e586889e1190fb867cb3
[ "MIT" ]
null
null
null
tests/__init__.py
mkay849/django-relativedelta
34e036906204213d9c42e586889e1190fb867cb3
[ "MIT" ]
null
null
null
from django import setup from django.conf import settings settings.configure(**{ 'DEBUG': True, 'DATABASES': { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'relativedelta-test', }, }, 'MIDDLEWARE': [ # TODO: Try to reduce the set of absolutely required middlewares 'request...
24.790323
79
0.703318
168
1,537
6.386905
0.625
0.046598
0.037279
0
0
0
0
0
0
0
0
0.002326
0.160703
1,537
61
80
25.196721
0.829457
0.211451
0
0.040816
0
0
0.38404
0.17207
0
0
0
0.016393
0
1
0
false
0
0.102041
0
0.102041
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
0
0
0
1
49716ba6fdc345786c58f28ac274e53d5d0d0b55
5,110
py
Python
model/user.py
JackMorris/CaiusHallHelper
38dc1ace1cd385376f6bd7c3b4552b9ca65bb58d
[ "MIT" ]
null
null
null
model/user.py
JackMorris/CaiusHallHelper
38dc1ace1cd385376f6bd7c3b4552b9ca65bb58d
[ "MIT" ]
null
null
null
model/user.py
JackMorris/CaiusHallHelper
38dc1ace1cd385376f6bd7c3b4552b9ca65bb58d
[ "MIT" ]
null
null
null
from error import BookingServiceError from service import booking_service, email_service class User: """ Represents a single user of the system, with a Raven login, booking preferences and friends. """ def __init__(self, crsid, password, friends, booking_preferences): """ Construct a new User...
40.555556
79
0.607632
628
5,110
4.794586
0.232484
0.036533
0.018266
0.034872
0.219861
0.177018
0.177018
0.151113
0.108602
0.108602
0
0.003107
0.307241
5,110
126
80
40.555556
0.847458
0.323875
0
0.123288
0
0
0.064577
0
0
0
0
0
0
1
0.150685
false
0.054795
0.027397
0.041096
0.342466
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
0
0
0
1
497d11c90eed0198abef3ec50f605e4ad88d26a6
1,308
py
Python
old_officers.py
compserv/elections
1ed5d957d637833adab93358551ecef60f8ecea7
[ "BSD-3-Clause" ]
2
2019-12-16T21:54:16.000Z
2019-12-28T17:24:48.000Z
old_officers.py
compserv/elections
1ed5d957d637833adab93358551ecef60f8ecea7
[ "BSD-3-Clause" ]
8
2019-12-11T20:14:13.000Z
2021-05-03T05:44:20.000Z
old_officers.py
compserv/elections
1ed5d957d637833adab93358551ecef60f8ecea7
[ "BSD-3-Clause" ]
5
2019-04-20T00:42:57.000Z
2021-12-06T23:18:06.000Z
# @author: Catherine Hu, James Zhu, Carolyn Wang (for add_users) from __future__ import (division, absolute_import, print_function, unicode_literals) from hknlib.election.settings import ELECTION_SPREADSHEET_ID, NEW_OFFICER_RANGE from hknlib.election.cred import get_credentials from hknlib.el...
38.470588
95
0.672783
165
1,308
4.993939
0.357576
0.06068
0.109223
0.067961
0.117718
0.117718
0.082524
0
0
0
0
0.007641
0.199541
1,308
33
96
39.636364
0.77937
0.467125
0
0
0
0
0.01173
0
0
0
0
0
0
1
0.076923
false
0
0.461538
0
0.538462
0.153846
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
0
0
0
1
497f19e380e896887a1ea0cb8701a16ea48bf7c5
34,691
py
Python
icor-src/icor/sentinel3.py
DHI-GRAS/docker-icor
40fa1cbca545f191916a6eedfd6e1b9cf053ec6f
[ "MIT" ]
3
2019-10-29T11:34:49.000Z
2021-05-17T15:16:05.000Z
icor-src/icor/sentinel3.py
DHI-GRAS/docker-icor
40fa1cbca545f191916a6eedfd6e1b9cf053ec6f
[ "MIT" ]
1
2021-12-17T21:33:17.000Z
2022-01-18T19:29:27.000Z
icor-src/icor/sentinel3.py
DHI-GRAS/docker-icor
40fa1cbca545f191916a6eedfd6e1b9cf053ec6f
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import os.path import glob import threading import context import sentinel3_metadata def process(context, path, dir=os.getcwd()): # ------------------------------------------------------------------------ # WORKFLOW Sentinel 3: iCOR # ------------------------------...
41.846803
207
0.434724
2,818
34,691
5.157559
0.122072
0.023118
0.026834
0.037567
0.516651
0.423903
0.362185
0.344365
0.334182
0.320627
0
0.020653
0.356577
34,691
829
208
41.846803
0.630483
0.118417
0
0.311024
0
0.015748
0.299309
0.151489
0.021654
0
0
0
0
0
null
null
0
0.011811
null
null
0.003937
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
0
0
1
49870cc27cd69c6ce2a0d7497b1c8d23f272bc5e
2,126
py
Python
DataPreparation/reddit_data_text_bias_unbias.py
SoumyaBarikeri/RedditBias
41e3656188ef4417739f3caf9012eda1be59159c
[ "MIT" ]
3
2021-08-07T06:06:31.000Z
2022-01-06T10:57:33.000Z
DataPreparation/reddit_data_text_bias_unbias.py
umanlp/RedditBias
61f9ae9458e26a64ae1113425192280503f8fb92
[ "MIT" ]
null
null
null
DataPreparation/reddit_data_text_bias_unbias.py
umanlp/RedditBias
61f9ae9458e26a64ae1113425192280503f8fb92
[ "MIT" ]
1
2021-05-31T08:47:11.000Z
2021-05-31T08:47:11.000Z
""" This script generates text files of train and test datasets of Counter attribute data augmentation """ import pandas as pd from sklearn.model_selection import train_test_split def build_dataset_manual_annot(df, dest_path): """ Writes data from Dataframe to a text file, each dataframe row line by line in...
37.298246
149
0.701787
305
2,126
4.495082
0.334426
0.056163
0.023341
0.037929
0.340627
0.245077
0.245077
0.195478
0.195478
0.195478
0
0.014053
0.163217
2,126
56
150
37.964286
0.756605
0.219661
0
0
1
0
0.3138
0.183365
0
0
0
0
0
1
0.035714
false
0
0.071429
0
0.107143
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4988afce8ab9c125874662fd9982048e6c9eb900
474
py
Python
cohesity_management_sdk/models/role_create_ip_config_parameters_enum.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
18
2019-09-24T17:35:53.000Z
2022-03-25T08:08:47.000Z
cohesity_management_sdk/models/role_create_ip_config_parameters_enum.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
18
2019-03-29T19:32:29.000Z
2022-01-03T23:16:45.000Z
cohesity_management_sdk/models/role_create_ip_config_parameters_enum.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
16
2019-02-27T06:54:12.000Z
2021-11-16T18:10:24.000Z
# -*- coding: utf-8 -*- # Copyright 2021 Cohesity Inc. class RoleCreateIpConfigParametersEnum(object): """Implementation of the 'Role_CreateIpConfigParameters' enum. Specifies the interface role. 'kPrimary' indicates a primary role. 'kSecondary' indicates a secondary role. Attributes: KP...
21.545455
66
0.687764
45
474
7.222222
0.644444
0.061538
0.116923
0.141538
0
0
0
0
0
0
0
0.01355
0.221519
474
21
67
22.571429
0.867209
0.677215
0
0
0
0
0.156522
0
0
0
0
0.095238
0
1
0
false
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
49898611af3d9e30efe3e3c019ad92c2d2087991
2,162
py
Python
instmakeplugins/report_dump.py
gilramir/instmake
7b083a5061be43e9b92bdcf0f3badda7c4107eef
[ "BSD-3-Clause" ]
null
null
null
instmakeplugins/report_dump.py
gilramir/instmake
7b083a5061be43e9b92bdcf0f3badda7c4107eef
[ "BSD-3-Clause" ]
null
null
null
instmakeplugins/report_dump.py
gilramir/instmake
7b083a5061be43e9b92bdcf0f3badda7c4107eef
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2010 by Cisco Systems, Inc. """ Show individual records. """ import getopt import sys from instmakelib import instmake_log as LOG def reverse_dump(records): records.reverse() return records def start_dump(records): def cmp_start(x, y): return cmp(x.times_start[x.REAL_TIME], y.times...
21.838384
74
0.589732
294
2,162
4.227891
0.333333
0.045052
0.026549
0.024135
0.172164
0.117458
0.117458
0.117458
0.117458
0.117458
0
0.009409
0.311748
2,162
98
75
22.061224
0.825941
0.07308
0
0.298507
0
0
0.156823
0
0
0
0
0
0.014925
0
null
null
0
0.044776
null
null
0.059701
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
0
0
1
4992a3eded54cc2cf35b012e891eeedc0a0ee704
256
py
Python
src/pages/tests.py
terencetwuo/docker-django-example
ea53c777b3cbb21d31ad8f5929be26638b27c191
[ "MIT" ]
null
null
null
src/pages/tests.py
terencetwuo/docker-django-example
ea53c777b3cbb21d31ad8f5929be26638b27c191
[ "MIT" ]
null
null
null
src/pages/tests.py
terencetwuo/docker-django-example
ea53c777b3cbb21d31ad8f5929be26638b27c191
[ "MIT" ]
null
null
null
from django.test import TestCase class ViewTests(TestCase): def test_home_page(self): """Home page should respond with a success 200.""" response = self.client.get("/", follow=True) self.assertEqual(response.status_code, 200)
28.444444
58
0.683594
33
256
5.212121
0.757576
0.093023
0
0
0
0
0
0
0
0
0
0.029412
0.203125
256
8
59
32
0.813725
0.171875
0
0
0
0
0.004854
0
0
0
0
0
0.2
1
0.2
false
0
0.2
0
0.6
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
0
0
0
0
0
1
499cea5fef2fa69fc62b1889e1c71b4b2671497b
2,316
py
Python
lilili/apis/api.py
poyo46/lilili
5a41491125e712acc2d1d7c8a0ab943964fab95a
[ "Apache-2.0" ]
null
null
null
lilili/apis/api.py
poyo46/lilili
5a41491125e712acc2d1d7c8a0ab943964fab95a
[ "Apache-2.0" ]
null
null
null
lilili/apis/api.py
poyo46/lilili
5a41491125e712acc2d1d7c8a0ab943964fab95a
[ "Apache-2.0" ]
null
null
null
import logging from abc import ABCMeta, abstractmethod from typing import List, Optional from sqlalchemy.orm.session import Session from lilili.apis.github import GithubRepository from lilili.db.defs import Library, License from lilili.db.helpers import add_library, query_library logger = logging.getLogger(__name__)...
28.95
79
0.642919
286
2,316
5.031469
0.265734
0.058374
0.072967
0.083391
0.123002
0.085476
0.085476
0.058374
0
0
0
0.001179
0.267271
2,316
79
80
29.316456
0.846788
0.027202
0
0.266667
0
0
0.017326
0
0
0
0
0
0
1
0.15
false
0.1
0.116667
0
0.35
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
0
0
0
1
49a094fa979b277f07d6bd2a0384047fa10daaf6
10,821
py
Python
src/core/src/tortuga/scripts/tortuga/script.py
sutasu/tortuga
48d7cde4fa652346600b217043b4a734fa2ba455
[ "Apache-2.0" ]
33
2018-03-02T17:07:39.000Z
2021-05-21T18:02:51.000Z
src/core/src/tortuga/scripts/tortuga/script.py
sutasu/tortuga
48d7cde4fa652346600b217043b4a734fa2ba455
[ "Apache-2.0" ]
201
2018-03-05T14:28:24.000Z
2020-11-23T19:58:27.000Z
src/core/src/tortuga/scripts/tortuga/script.py
sutasu/tortuga
48d7cde4fa652346600b217043b4a734fa2ba455
[ "Apache-2.0" ]
23
2018-03-02T17:21:59.000Z
2020-11-18T14:52:38.000Z
# Copyright 2008-2018 Univa Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
28.933155
78
0.575732
1,123
10,821
5.424755
0.24488
0.020683
0.02216
0.025115
0.153316
0.087984
0.051543
0.0348
0.020683
0
0
0.00317
0.329452
10,821
373
79
29.010724
0.836411
0.158396
0
0.163717
0
0
0.116074
0.007219
0
0
0
0
0
1
0.070796
false
0.084071
0.048673
0.00885
0.234513
0.013274
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
0
0
0
1
49a2929414087953eab56c0ebbbdc9b2265c3a1c
379
py
Python
server_client/constants.py
stfnylim/P2Ppersonal
988f870dff69efb843cc41ea454046f4a5affca2
[ "MIT" ]
1
2021-05-05T06:49:13.000Z
2021-05-05T06:49:13.000Z
server_client/constants.py
stfnylim/P2Ppersonal
988f870dff69efb843cc41ea454046f4a5affca2
[ "MIT" ]
null
null
null
server_client/constants.py
stfnylim/P2Ppersonal
988f870dff69efb843cc41ea454046f4a5affca2
[ "MIT" ]
1
2021-05-05T00:50:57.000Z
2021-05-05T00:50:57.000Z
""" This file is the constants of the peer to peer network """ import socket import threading import sys import time import os from random import randint # HEADERSIZE = 16 HOSTNAME = socket.gethostname() BYTE_SIZE = 1024 HOST = socket.gethostbyname(HOSTNAME) PORT = 5000 PEER_BYTE_DIFFERENTIATOR = b'\x11' RAN...
15.791667
58
0.751979
55
379
5.036364
0.727273
0.057762
0
0
0
0
0
0
0
0
0
0.044872
0.176781
379
23
59
16.478261
0.842949
0.187335
0
0
0
0
0.023729
0
0
0
0
0
0
1
0
false
0
0.428571
0
0.428571
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
0
0
0
1
b8cd954795fb59269913ee8f7e0d5cec47b062ce
14,327
py
Python
openapi_python_client/openapi_parser/properties.py
acgray/openapi-python-client
d47bc429660738dfd120797ddca032dca93ef210
[ "MIT" ]
null
null
null
openapi_python_client/openapi_parser/properties.py
acgray/openapi-python-client
d47bc429660738dfd120797ddca032dca93ef210
[ "MIT" ]
null
null
null
openapi_python_client/openapi_parser/properties.py
acgray/openapi-python-client
d47bc429660738dfd120797ddca032dca93ef210
[ "MIT" ]
null
null
null
from __future__ import annotations from dataclasses import InitVar, dataclass, field from typing import Any, ClassVar, Dict, Generic, List, Optional, Set, TypeVar, Union from openapi_python_client import utils from .errors import ParseError from .reference import Reference @dataclass class Property: """ De...
34.60628
120
0.639073
1,759
14,327
5.08357
0.116543
0.027958
0.01096
0.029524
0.5293
0.497204
0.484903
0.470365
0.430552
0.392865
0
0.000281
0.254834
14,327
413
121
34.690073
0.837299
0.218469
0
0.364754
0
0
0.153543
0.063273
0
0
0
0
0.004098
1
0.098361
false
0
0.209016
0
0.639344
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
0
1
0
0
1
b8df328e39920c72ed4661998893ab16a6c66172
2,042
py
Python
{{cookiecutter.app_name}}/forms.py
cericoda/cookiecutter-django-crud
dceb75c927957eb0cee34b926f1856b0597050b2
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.app_name}}/forms.py
cericoda/cookiecutter-django-crud
dceb75c927957eb0cee34b926f1856b0597050b2
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.app_name}}/forms.py
cericoda/cookiecutter-django-crud
dceb75c927957eb0cee34b926f1856b0597050b2
[ "BSD-3-Clause" ]
null
null
null
from django import forms from crispy_forms.helper import FormHelper from crispy_forms.layout import Submit from .models import {{ cookiecutter.model_name }} class {{ cookiecutter.model_name }}Form(forms.ModelForm): class Meta: model = {{ cookiecutter.model_name }} def __init__(self, *args, **kwargs):...
44.391304
111
0.567581
221
2,042
5.036199
0.361991
0.116801
0.075472
0.044924
0.233603
0.233603
0.233603
0.233603
0.17071
0.17071
0
0.006241
0.29383
2,042
45
112
45.377778
0.765603
0.615573
0
0
0
0
0.114058
0.038462
0
0
0
0
0
0
null
null
0
0.266667
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
0
0
0
0
0
0
1
b8e5ca442c3059851a83706eb8cfb2ed623bd665
1,561
py
Python
src/api/tasks.py
Ins-V/simple-todo-list
814224143c464021038012036ae94a775877a340
[ "MIT" ]
null
null
null
src/api/tasks.py
Ins-V/simple-todo-list
814224143c464021038012036ae94a775877a340
[ "MIT" ]
null
null
null
src/api/tasks.py
Ins-V/simple-todo-list
814224143c464021038012036ae94a775877a340
[ "MIT" ]
null
null
null
from typing import Optional from fastapi import APIRouter, Depends, Response, status from schemas.tasks import TaskSchema, TaskCreationSchema, TaskUpdateSchema from services.tasks import TaskService from models.users import User from services.auth import get_current_user router = APIRouter(prefix='/task', tags=['ta...
31.857143
74
0.672005
183
1,561
5.584699
0.262295
0.058708
0.082192
0.088063
0.393346
0.338552
0.267123
0.267123
0.267123
0.267123
0
0.002437
0.211403
1,561
48
75
32.520833
0.827782
0
0
0.264706
0
0
0.022422
0
0
0
0
0
0
1
0.147059
false
0
0.176471
0.117647
0.470588
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
0
0
0
1
b8e5d869dd9fe23332804081a7fb617d6e4fcc06
2,355
py
Python
heroes_of_code_and_logic_VII.py
GYosifov88/Python-Fundamentals
b46ba2822bd2dac6ff46830c6a520e559b448442
[ "MIT" ]
null
null
null
heroes_of_code_and_logic_VII.py
GYosifov88/Python-Fundamentals
b46ba2822bd2dac6ff46830c6a520e559b448442
[ "MIT" ]
null
null
null
heroes_of_code_and_logic_VII.py
GYosifov88/Python-Fundamentals
b46ba2822bd2dac6ff46830c6a520e559b448442
[ "MIT" ]
null
null
null
heroes_number = int(input()) heroes_list = dict() for heroes in range(heroes_number): hero = input().split(' ') hero_name = hero[0] hero_hit_points = int(hero[1]) hero_mana_points = int(hero[2]) heroes_list[hero_name] = {'HP': hero_hit_points, 'MP': hero_mana_points} command = input() while comm...
37.380952
129
0.616561
338
2,355
4.002959
0.183432
0.10643
0.177384
0.177384
0.475979
0.449372
0.379897
0.152254
0.065041
0.065041
0
0.016704
0.237367
2,355
62
130
37.983871
0.736637
0
0
0.117647
0
0.078431
0.296941
0.079864
0
0
0
0
0
1
0
false
0
0
0
0
0.215686
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
0
0
0
1
b8eaf31147f6764e0a7c4897c789ebeef0f50a89
471
py
Python
uri/2630.py
AdilsonTorres/programming-problems
d611870c5fe6464d83c9d2a6c6a79ccedbf110b9
[ "MIT" ]
null
null
null
uri/2630.py
AdilsonTorres/programming-problems
d611870c5fe6464d83c9d2a6c6a79ccedbf110b9
[ "MIT" ]
null
null
null
uri/2630.py
AdilsonTorres/programming-problems
d611870c5fe6464d83c9d2a6c6a79ccedbf110b9
[ "MIT" ]
null
null
null
import math T = int(input()) for i in range(T): conv = input() r, g, b = map(int, input().split(' ')) if conv == 'min': print("Caso #{}: {}".format(i + 1, min(r, g, b))) elif conv == 'mean': print("Caso #{}: {}".format(i + 1, math.floor((r + g + b) / 3))) elif conv == 'max': ...
29.4375
88
0.441614
74
471
2.810811
0.405405
0.038462
0.057692
0.307692
0.423077
0.259615
0.259615
0.259615
0
0
0
0.038576
0.284501
471
16
88
29.4375
0.578635
0
0
0
0
0
0.125
0
0
0
0
0
0
1
0
false
0
0.076923
0
0.076923
0.307692
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
0
0
0
1
b8ef4b1484f2ac7b12f5733397b5758b3b6ec62a
11,716
py
Python
main.py
berge35/Seat-Assignment
c78c807eb56e766229f45bb5e7464a736b634a24
[ "MIT" ]
null
null
null
main.py
berge35/Seat-Assignment
c78c807eb56e766229f45bb5e7464a736b634a24
[ "MIT" ]
null
null
null
main.py
berge35/Seat-Assignment
c78c807eb56e766229f45bb5e7464a736b634a24
[ "MIT" ]
null
null
null
''' Created on Feb 26, 2016 @author: Christopher Elliott ''' import random import numpy import pygame from numpy.ma.core import floor_divide from operator import attrgetter import sys if __name__ == '__main__': pass MAX_SEATS = 159 #maximum seats in the aircraft MAX_FIRST_CLASS = 12 ...
50.93913
215
0.567002
1,464
11,716
4.510246
0.189891
0.066788
0.084053
0.062699
0.365591
0.34454
0.30683
0.299561
0.289262
0.253975
0
0.026774
0.352851
11,716
230
216
50.93913
0.844104
0.289689
0
0.395833
0
0
0.023431
0.017918
0
0
0
0
0
1
0.020833
false
0.192708
0.03125
0
0.15625
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
0
0
0
1
b8fdeb92e7138fb308ffbfb755c70b89b63c1623
240
py
Python
students/k3342/laboratory_works/Evgenov_Sergei/laboratory_work_1/homework_project_evgenov/homework_app/forms.py
TonikX/ITMO_ICT_-WebProgramming_2020
ba566c1b3ab04585665c69860b713741906935a0
[ "MIT" ]
10
2020-03-20T09:06:12.000Z
2021-07-27T13:06:02.000Z
students/k3342/laboratory_works/Evgenov_Sergei/laboratory_work_1/homework_project_evgenov/homework_app/forms.py
TonikX/ITMO_ICT_-WebProgramming_2020
ba566c1b3ab04585665c69860b713741906935a0
[ "MIT" ]
134
2020-03-23T09:47:48.000Z
2022-03-12T01:05:19.000Z
students/k3342/laboratory_works/Evgenov_Sergei/laboratory_work_1/homework_project_evgenov/homework_app/forms.py
TonikX/ITMO_ICT_-WebProgramming_2020
ba566c1b3ab04585665c69860b713741906935a0
[ "MIT" ]
71
2020-03-20T12:45:56.000Z
2021-10-31T19:22:25.000Z
from django import forms from homework_app.models import Comment class CommentForm(forms.ModelForm): class Meta: model = Comment fields = [ "text", "type", "importance", ]
16
39
0.545833
22
240
5.909091
0.772727
0
0
0
0
0
0
0
0
0
0
0
0.375
240
14
40
17.142857
0.866667
0
0
0
0
0
0.075
0
0
0
0
0
0
1
0
false
0
0.3
0
0.5
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
0
0
0
1
b8fe44009e4f63c8b714cdd1b50691fe08bb4853
22,938
py
Python
examples/inspection/plot_linear_model_coefficient_interpretation.py
MarcinKonowalczyk/scikit-learn
8b18d4cbfc3a10ce85decec292d30470c69f40d7
[ "BSD-3-Clause" ]
3
2020-01-09T10:25:20.000Z
2020-08-29T08:16:01.000Z
examples/inspection/plot_linear_model_coefficient_interpretation.py
MarcinKonowalczyk/scikit-learn
8b18d4cbfc3a10ce85decec292d30470c69f40d7
[ "BSD-3-Clause" ]
1
2021-09-30T22:18:56.000Z
2021-10-16T18:01:14.000Z
examples/inspection/plot_linear_model_coefficient_interpretation.py
MarcinKonowalczyk/scikit-learn
8b18d4cbfc3a10ce85decec292d30470c69f40d7
[ "BSD-3-Clause" ]
1
2022-02-19T14:58:53.000Z
2022-02-19T14:58:53.000Z
""" ====================================================================== Common pitfalls in the interpretation of coefficients of linear models ====================================================================== In linear models, the target value is modeled as a linear combination of the features (see the :ref:`l...
33.437318
87
0.72866
3,336
22,938
4.928357
0.202338
0.010644
0.012712
0.010948
0.402409
0.374369
0.347181
0.342619
0.327048
0.315431
0
0.012503
0.152672
22,938
685
88
33.486131
0.833402
0.551181
0
0.739583
0
0
0.17469
0.023372
0
0
0
0
0
1
0
false
0.006944
0.079861
0
0.079861
0.003472
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b8ff9c9401f6a10076bc5d72c8b9f919e6b3a525
288
py
Python
01_PythonTutorial/035_CheckIfNot.py
EliazBobadilla/Python-Tutorial-W3Schools
0f22be2eea493c7e331d15b72847a34a4b748884
[ "MIT" ]
5
2021-05-29T23:30:57.000Z
2021-12-19T11:21:24.000Z
01_PythonTutorial/035_CheckIfNot.py
ChromeOwO/Python-Tutorial-W3Schools
0f22be2eea493c7e331d15b72847a34a4b748884
[ "MIT" ]
null
null
null
01_PythonTutorial/035_CheckIfNot.py
ChromeOwO/Python-Tutorial-W3Schools
0f22be2eea493c7e331d15b72847a34a4b748884
[ "MIT" ]
4
2021-06-04T20:23:48.000Z
2022-01-23T05:48:19.000Z
#Check if NOT txt = "Hello buddie unu!" print("owo" not in txt) txt = "The best things in life are free!" if "expensive" not in txt: print("Yes, 'expensive' is NOT present.") ''' Terminal: True Yes, 'expensive' is NOT present. ''' #https://www.w3schools.com/python/python_strings.asp
19.2
52
0.690972
46
288
4.304348
0.630435
0.050505
0.080808
0.171717
0.242424
0
0
0
0
0
0
0.004115
0.15625
288
15
52
19.2
0.8107
0.21875
0
0
0
0
0.556213
0
0
0
0
0
0
1
0
false
0
0
0
0
0.4
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
0
0
0
1
770342ee619c784fe66fe68c2533747294adc942
2,225
py
Python
tests/test_settings.py
waveform80/pisense
7e60fdac25d36ae2a5e16242907823230f4d4948
[ "BSD-3-Clause" ]
5
2018-05-02T15:50:28.000Z
2021-09-12T09:05:27.000Z
tests/test_settings.py
waveform80/pisense
7e60fdac25d36ae2a5e16242907823230f4d4948
[ "BSD-3-Clause" ]
4
2018-08-04T14:58:52.000Z
2018-08-06T23:42:39.000Z
tests/test_settings.py
waveform80/pisense
7e60fdac25d36ae2a5e16242907823230f4d4948
[ "BSD-3-Clause" ]
2
2019-09-29T20:36:43.000Z
2021-09-12T09:05:28.000Z
# vim: set et sw=4 sts=4 fileencoding=utf-8: # # Alternative API for the Sense HAT # Copyright (c) 2016-2018 Dave Jones <dave@waveform.org.uk> # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of...
39.732143
77
0.75191
305
2,225
5.436066
0.554098
0.021713
0.020507
0.027744
0.110977
0.082027
0.082027
0.082027
0.082027
0.082027
0
0.006098
0.189213
2,225
55
78
40.454545
0.912971
0.717753
0
0
0
0
0.075125
0
0
0
0
0
0.1
1
0.1
false
0
0.35
0
0.45
0.05
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
0
0
0
1
77079bc413e14ba4913a5384ab00efa03d35d0f0
9,021
py
Python
stackdio/server/formulas/migrations/0001_initial.py
WLPhoenix/stackdio
8dcd9967a9213bdeec666b14e55583c50bdaf57e
[ "Apache-2.0" ]
null
null
null
stackdio/server/formulas/migrations/0001_initial.py
WLPhoenix/stackdio
8dcd9967a9213bdeec666b14e55583c50bdaf57e
[ "Apache-2.0" ]
null
null
null
stackdio/server/formulas/migrations/0001_initial.py
WLPhoenix/stackdio
8dcd9967a9213bdeec666b14e55583c50bdaf57e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2014, Digital Reasoning # # 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 applica...
69.392308
209
0.608026
1,004
9,021
5.351594
0.184263
0.081891
0.140704
0.201005
0.704076
0.6823
0.656989
0.601898
0.567281
0.492648
0
0.010628
0.176034
9,021
130
210
69.392308
0.712229
0.07671
0
0.204082
0
0
0.529723
0.309146
0
0
0
0
0
1
0.020408
false
0.010204
0.040816
0
0.091837
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
0
0
0
1
770c4d0a746986cc8e8e0a3f7eeb1a06e520261c
882
py
Python
brickschool/schools/migrations/0004_auto_20190928_1443.py
urbrob/BrickSchool
20c72c6e8093c598263f68ad6331064f5f7919a6
[ "MIT" ]
null
null
null
brickschool/schools/migrations/0004_auto_20190928_1443.py
urbrob/BrickSchool
20c72c6e8093c598263f68ad6331064f5f7919a6
[ "MIT" ]
21
2019-09-27T15:41:41.000Z
2021-06-10T22:00:53.000Z
brickschool/schools/migrations/0004_auto_20190928_1443.py
urbrob/BrickSchool
20c72c6e8093c598263f68ad6331064f5f7919a6
[ "MIT" ]
4
2019-09-27T18:38:55.000Z
2020-03-17T18:36:14.000Z
# Generated by Django 2.2.2 on 2019-09-28 14:43 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('schools', '0003_auto_20190928_1320'), ] operations = [ migrations.CreateModel( name='Perspectiv...
31.5
153
0.596372
85
882
6.058824
0.647059
0.046602
0.054369
0.085437
0
0
0
0
0
0
0
0.048212
0.270975
882
27
154
32.666667
0.752722
0.05102
0
0.095238
1
0
0.153293
0.027545
0
0
0
0
0
1
0
false
0
0.095238
0
0.238095
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
77149c8527d1c529b7d0c0b61bf297da3736f72c
33,607
py
Python
acl/netscreen.py
jathanism/acl
3aab2fad4f999fc24915387672e24d418ae1145e
[ "Apache-2.0" ]
19
2015-01-29T23:34:51.000Z
2021-09-23T21:18:19.000Z
acl/netscreen.py
jathanism/acl
3aab2fad4f999fc24915387672e24d418ae1145e
[ "Apache-2.0" ]
1
2016-05-10T19:00:35.000Z
2016-05-10T19:00:35.000Z
acl/netscreen.py
jathanism/acl
3aab2fad4f999fc24915387672e24d418ae1145e
[ "Apache-2.0" ]
16
2015-07-30T19:14:49.000Z
2021-05-13T06:51:00.000Z
# -*- coding: utf-8 -*- """ Parses and manipulates firewall policy for Juniper NetScreen firewall devices. Broken apart from acl.parser because the approaches are vastly different from each other. """ __author__ = 'Jathan McCollum, Mark Thomas' __maintainer__ = 'Jathan McCollum' __email__ = 'jathan.mccollum@teamaol.c...
36.849781
104
0.492963
3,630
33,607
4.423967
0.113774
0.010835
0.007472
0.008095
0.283642
0.215331
0.182639
0.152562
0.118563
0.106981
0
0.018458
0.384176
33,607
911
105
36.890231
0.757489
0.028536
0
0.278249
0
0
0.116766
0.006568
0
0
0
0.001098
0.00565
0
null
null
0
0.00565
null
null
0.012712
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
0
0
1
7716306bd6fcc757562b55920065f2ff1eeb0e46
2,147
py
Python
testsuite/driver/cpu_features.py
haskellformac/ghc
6e96aa2d503ddeeef1fa1f37b45d5c744522b64d
[ "BSD-3-Clause" ]
11
2019-02-19T18:53:31.000Z
2021-01-07T02:20:56.000Z
testsuite/driver/cpu_features.py
haskellformac/ghc
6e96aa2d503ddeeef1fa1f37b45d5c744522b64d
[ "BSD-3-Clause" ]
34
2019-02-21T02:34:22.000Z
2022-03-02T15:09:01.000Z
testsuite/driver/cpu_features.py
haskellformac/ghc
6e96aa2d503ddeeef1fa1f37b45d5c744522b64d
[ "BSD-3-Clause" ]
2
2019-04-06T02:36:54.000Z
2019-05-28T12:05:34.000Z
import os from testglobals import config import subprocess import re # Feature names generally follow the naming used by Linux's /proc/cpuinfo. SUPPORTED_CPU_FEATURES = { # These aren't comprehensive; they are only CPU features that we care about # x86: 'sse', 'sse2', 'sse3', 'ssse3', 'sse4_1', 'sse4_2', ...
29.819444
81
0.624592
287
2,147
4.480836
0.414634
0.111198
0.069984
0.044323
0.045101
0
0
0
0
0
0
0.016393
0.261295
2,147
71
82
30.239437
0.794451
0.135072
0
0.041667
0
0
0.161308
0
0
0
0
0.014085
0.041667
1
0.0625
false
0
0.104167
0
0.270833
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
1
0
0
0
0
0
0
0
0
0
0
1
771c1d06b2180de3669ac59a7c59b86d6a915a8f
6,484
py
Python
geantval_scripts/CALICESiWTB/parser.py
lopezzot/CALICESiWTB
ea1cdbdad0c406d27065e350bf6cc2256aceedfa
[ "MIT" ]
1
2022-02-28T16:19:38.000Z
2022-02-28T16:19:38.000Z
geantval_scripts/CALICESiWTB/parser.py
lopezzot/CALICESiWTB
ea1cdbdad0c406d27065e350bf6cc2256aceedfa
[ "MIT" ]
null
null
null
geantval_scripts/CALICESiWTB/parser.py
lopezzot/CALICESiWTB
ea1cdbdad0c406d27065e350bf6cc2256aceedfa
[ "MIT" ]
null
null
null
##************************************************** ## \file parser.py ## \brief: Implementation of CALICESiWTB parser ## for geant-val usage ## \author: Lorenzo Pezzotti (CERN EP-SFT-sim) ## @lopezzot ## \start date: 11 April 2021 ##************************************************** #!/usr/bin/env p...
40.779874
138
0.531308
617
6,484
5.484603
0.28363
0.015366
0.02305
0.012411
0.536939
0.507979
0.474291
0.457742
0.418735
0.408983
0
0.012023
0.332973
6,484
158
139
41.037975
0.770405
0.110271
0
0.219178
0
0
0.149115
0.006459
0.013699
0
0
0
0
0
null
null
0
0.068493
null
null
0.054795
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
0
0
1
7725fc7e697f9ae2526b00b617d8be2310be8fdb
490
py
Python
src/Blog/migrations/0003_auto_20200202_2024.py
Chris-Ngu/DjangoEnviornment
443f30f2088c5f7e11c3e909cc5bed06526ccc6a
[ "bzip2-1.0.6" ]
1
2020-04-04T02:29:12.000Z
2020-04-04T02:29:12.000Z
src/Blog/migrations/0003_auto_20200202_2024.py
Chris-Ngu/DjangoEnviornment
443f30f2088c5f7e11c3e909cc5bed06526ccc6a
[ "bzip2-1.0.6" ]
null
null
null
src/Blog/migrations/0003_auto_20200202_2024.py
Chris-Ngu/DjangoEnviornment
443f30f2088c5f7e11c3e909cc5bed06526ccc6a
[ "bzip2-1.0.6" ]
null
null
null
# Generated by Django 3.0.2 on 2020-02-03 02:24 import datetime from django.db import migrations, models from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('Blog', '0002_auto_20200202_2022'), ] operations = [ migrations.AlterField( ...
23.333333
104
0.630612
59
490
5.169492
0.677966
0.065574
0
0
0
0
0
0
0
0
0
0.128415
0.253061
490
20
105
24.5
0.704918
0.091837
0
0
1
0
0.085779
0.051919
0
0
0
0
0
1
0
false
0
0.214286
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
77267f1618ab518071db92346440a70e0f35157d
767
py
Python
write.py
amexias/code-vault
d0cd0fc93637811a4f50b9bc4da0b9ebec457341
[ "Unlicense" ]
null
null
null
write.py
amexias/code-vault
d0cd0fc93637811a4f50b9bc4da0b9ebec457341
[ "Unlicense" ]
null
null
null
write.py
amexias/code-vault
d0cd0fc93637811a4f50b9bc4da0b9ebec457341
[ "Unlicense" ]
null
null
null
import json import datetime class fileop: def __init__(self,Text): self.text=Text self.tlength=len(self.text) def writetext(self): with open('settings.txt', 'w') as json_file: json.dump(self.text, json_file) def readtext(self): with...
23.242424
52
0.568449
92
767
4.565217
0.369565
0.095238
0.078571
0.095238
0.27619
0.166667
0.166667
0.166667
0.166667
0.166667
0
0
0.322034
767
32
53
23.96875
0.807692
0
0
0.08
0
0
0.039113
0
0
0
0
0
0
1
0.24
false
0.04
0.08
0
0.44
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
0
0
0
1
772f6e8f3bcedc9cbec66eab050585305eca1dc8
3,318
py
Python
thread_float_bbs.py
ikeikeikeike/scrapy-2ch-summary-spider
7142693f25025a09390377649a727cfd33d15af3
[ "MIT" ]
2
2015-01-12T08:23:35.000Z
2017-07-28T15:02:26.000Z
thread_float_bbs.py
ikeikeikeike/scrapy-2ch-summary-spider
7142693f25025a09390377649a727cfd33d15af3
[ "MIT" ]
null
null
null
thread_float_bbs.py
ikeikeikeike/scrapy-2ch-summary-spider
7142693f25025a09390377649a727cfd33d15af3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import itertools from scrapy.spider import BaseSpider from scrapy.selector import Selector from scrapy.http.request import Request import feedparser from scrapy_mongodb import MongoDBPipeline collection = None def _request_ignores(url, settings=None): """ すでに登録済みはリクエストしない """ ...
25.921875
73
0.57173
365
3,318
5.046575
0.30137
0.032573
0.021716
0.026059
0
0
0
0
0
0
0
0.00482
0.312236
3,318
127
74
26.125984
0.802366
0.006329
0
0.092105
0
0
0.02339
0
0
0
0
0
0
0
null
null
0
0.078947
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
0
0
0
0
0
0
1
773268dbf0f2043a479fbbdbdcb163a44664c76b
7,947
py
Python
tools/check_test.py
chivalry02/iotjs
a7007b88120a020c5ece835811cec9ded48f9f2b
[ "Apache-2.0" ]
null
null
null
tools/check_test.py
chivalry02/iotjs
a7007b88120a020c5ece835811cec9ded48f9f2b
[ "Apache-2.0" ]
null
null
null
tools/check_test.py
chivalry02/iotjs
a7007b88120a020c5ece835811cec9ded48f9f2b
[ "Apache-2.0" ]
1
2021-01-16T18:15:34.000Z
2021-01-16T18:15:34.000Z
#!/usr/bin/env python3 # Copyright 2015 Samsung Electronics Co., Ltd. # # 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 b...
27.786713
78
0.588021
1,008
7,947
4.467262
0.22123
0.037308
0.024872
0.013991
0.204308
0.168998
0.115257
0.115257
0.083278
0.070842
0
0.013081
0.288159
7,947
285
79
27.884211
0.782924
0.11627
0
0.142105
0
0
0.091923
0
0
0
0
0
0
1
0.052632
false
0.068421
0.042105
0.005263
0.205263
0.078947
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
0
0
0
1
773324b3d7dfdafb0e069eaec8ba350ce6ed19cc
3,875
py
Python
app/database/models.py
a2hsh/udacity-fsnd-capstone
545f78111784756f469127bcb4a656306a7fe242
[ "MIT" ]
null
null
null
app/database/models.py
a2hsh/udacity-fsnd-capstone
545f78111784756f469127bcb4a656306a7fe242
[ "MIT" ]
null
null
null
app/database/models.py
a2hsh/udacity-fsnd-capstone
545f78111784756f469127bcb4a656306a7fe242
[ "MIT" ]
null
null
null
# models.py # This file contains all models of the database, and their helper functions from app import db ''' Actors Should have unique names should have age and gender ''' class Actor(db.Model): __tablename__ = 'actors' id = db.Column(db.Integer, primary_key=True, nullable=False) name = d...
27.288732
88
0.553032
462
3,875
4.562771
0.190476
0.0574
0.06167
0.05408
0.613852
0.596774
0.567362
0.537951
0.476281
0.476281
0
0.003108
0.335742
3,875
141
89
27.48227
0.815851
0.021419
0
0.431373
0
0
0.071466
0
0
0
0
0
0
1
0.156863
false
0
0.019608
0.039216
0.529412
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
0
1
0
0
1
7734f6ea802e21966ca566fc4ced3f5fcc4943db
10,777
py
Python
tests/sync_test_megasync.py
lfcontato/meganz
59f3cd493acfcf7361cb6862f2e4a39fc4494e33
[ "BSD-2-Clause" ]
null
null
null
tests/sync_test_megasync.py
lfcontato/meganz
59f3cd493acfcf7361cb6862f2e4a39fc4494e33
[ "BSD-2-Clause" ]
null
null
null
tests/sync_test_megasync.py
lfcontato/meganz
59f3cd493acfcf7361cb6862f2e4a39fc4494e33
[ "BSD-2-Clause" ]
null
null
null
""" Application for testing syncing algorithm (c) 2013-2014 by Mega Limited, Wellsford, New Zealand This file is part of the MEGA SDK - Client Access Engine. Applications using the MEGA API must present a valid application key and comply with the the rules set forth in the Terms of Service. The MEGA SDK is di...
37.420139
160
0.634963
1,415
10,777
4.64311
0.209187
0.038356
0.044749
0.038356
0.378082
0.303349
0.206393
0.134247
0.079148
0.056925
0
0.008876
0.257771
10,777
287
161
37.550523
0.812477
0.023383
0
0.206704
0
0
0.182092
0.041756
0
0
0
0.003484
0
0
null
null
0.01676
0.072626
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
0
0
0
0
0
0
1
7738a36b85fe9b21d6de8298ff02b8d21a97bf92
2,725
py
Python
fuzzy_test.py
Quuxplusone/WideIntProofOfConcept
7a7100c431c1aeddfecea023be5b5153fff9052d
[ "MIT" ]
23
2018-11-15T15:04:33.000Z
2022-02-02T17:50:30.000Z
fuzzy_test.py
Quuxplusone/WideIntProofOfConcept
7a7100c431c1aeddfecea023be5b5153fff9052d
[ "MIT" ]
1
2021-04-05T11:23:35.000Z
2021-04-05T21:15:50.000Z
fuzzy_test.py
Quuxplusone/WideIntProofOfConcept
7a7100c431c1aeddfecea023be5b5153fff9052d
[ "MIT" ]
2
2020-08-08T03:48:03.000Z
2022-01-19T04:13:05.000Z
#!/usr/bin/env python import random BITS = 128 MAX = 2**BITS def hexit(n): result = hex(n) assert result[:2] == '0x' if result[-1] == 'L': result = result[:-1] return result def make_testcase(f, BITS): MAX = 2**BITS a = random.randint(0, MAX - 1) b = random.randint(0, MAX - 1) ...
50.462963
158
0.423119
389
2,725
2.92545
0.164524
0.147627
0.023726
0.084359
0.538664
0.478032
0.478032
0.478032
0.475395
0.475395
0
0.024896
0.292477
2,725
53
159
51.415094
0.565353
0.007339
0
0.085106
0
0.191489
0.443047
0
0
0
0
0
0.021277
1
0.042553
false
0
0.021277
0
0.085106
0.595745
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
0
0
1
0
1
77398de9d6e144b629c220c87a2ab10d9b6db8ba
24,318
py
Python
ipyannotator/bbox_canvas.py
itepifanio/ipyannotator
eac99f71d8d39e02a10c21807508b0c064077806
[ "Apache-2.0" ]
null
null
null
ipyannotator/bbox_canvas.py
itepifanio/ipyannotator
eac99f71d8d39e02a10c21807508b0c064077806
[ "Apache-2.0" ]
null
null
null
ipyannotator/bbox_canvas.py
itepifanio/ipyannotator
eac99f71d8d39e02a10c21807508b0c064077806
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/01_bbox_canvas.ipynb (unless otherwise specified). __all__ = ['points2bbox_coords', 'coords_scaled', 'BBoxCanvas', 'BBoxVideoCanvas'] # Internal Cell import io import attr from math import log from pubsub import pub from attr import asdict from pathlib import Path from ...
33.449794
117
0.602599
2,822
24,318
4.923104
0.110206
0.057583
0.031095
0.030231
0.567336
0.504643
0.448139
0.399266
0.373066
0.354135
0
0.005483
0.295049
24,318
727
118
33.449794
0.804935
0.092853
0
0.398496
1
0
0.038115
0.002687
0
0
0
0.001376
0
1
0.097744
false
0.007519
0.033835
0.016917
0.25188
0.007519
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7746b3a4185b3877e461fb9f0ea3202ee17a5cf4
1,648
py
Python
app/randomStrategy.py
funkyV/TowerOfHanoi
efc8c5fb3952ac897f42d92c5635de11cb0ea8f8
[ "MIT" ]
null
null
null
app/randomStrategy.py
funkyV/TowerOfHanoi
efc8c5fb3952ac897f42d92c5635de11cb0ea8f8
[ "MIT" ]
null
null
null
app/randomStrategy.py
funkyV/TowerOfHanoi
efc8c5fb3952ac897f42d92c5635de11cb0ea8f8
[ "MIT" ]
null
null
null
import stateSpace def randomMoveFrom(state): ok = False while ok == False: sourcePeg = state.randomValidPeg() # while sourcePeg.isValid() == False or sourcePeg.isEmpty() == True: # sourcePeg = state.randomValidPeg() targetPeg = state.randomValidPeg() # while targe...
28.912281
85
0.621359
151
1,648
6.781457
0.324503
0.074219
0.054688
0.044922
0.037109
0
0
0
0
0
0
0.005008
0.273058
1,648
57
86
28.912281
0.84975
0.185073
0
0.189189
0
0
0.080778
0
0
0
0
0
0
0
null
null
0
0.027027
null
null
0.324324
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
0
0
1
7748c40b580e5ee5e478ea202cd44aa92ddbabda
3,053
py
Python
bluebottle/payments_docdata/admin.py
maykinmedia/bluebottle
355d4729662b5e9a03398efb4fe882e0f8cfa28d
[ "BSD-3-Clause" ]
null
null
null
bluebottle/payments_docdata/admin.py
maykinmedia/bluebottle
355d4729662b5e9a03398efb4fe882e0f8cfa28d
[ "BSD-3-Clause" ]
null
null
null
bluebottle/payments_docdata/admin.py
maykinmedia/bluebottle
355d4729662b5e9a03398efb4fe882e0f8cfa28d
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from bluebottle.payments_logger.admin import PaymentLogEntryInline from django.core.urlresolvers import reverse from bluebottle.payments.models import Payment from bluebottle.payments_docdata.models import DocdataPayment, DocdataDirectdebitPayment, DocdataTransaction from polymorphic.ad...
42.402778
132
0.703243
335
3,053
6.122388
0.349254
0.058508
0.046806
0.026329
0.358849
0.25451
0.25451
0.25451
0.25451
0.209654
0
0.004
0.181133
3,053
71
133
43
0.8164
0
0
0.28
0
0
0.290206
0.040616
0
0
0
0
0
0
null
null
0
0.12
null
null
0.06
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
0
0
1
774a98d0c77993c0ff28c0df6d7498e909c8dc0b
841
py
Python
server/backend/app/db/utils/utils.py
chemetc/maskcam
4841c2c49235844765e8c2164f5dd03a7d28bdad
[ "MIT" ]
179
2021-03-16T15:15:49.000Z
2022-03-30T14:13:14.000Z
server/backend/app/db/utils/utils.py
chemetc/maskcam
4841c2c49235844765e8c2164f5dd03a7d28bdad
[ "MIT" ]
22
2021-04-10T17:04:47.000Z
2022-03-15T22:48:16.000Z
server/backend/app/db/utils/utils.py
chemetc/maskcam
4841c2c49235844765e8c2164f5dd03a7d28bdad
[ "MIT" ]
63
2021-03-24T13:35:32.000Z
2022-02-23T10:10:42.000Z
from datetime import datetime, timezone from .enums import StatisticTypeEnum def convert_timestamp_to_datetime(timestamp: float) -> datetime: """ Convert timestamp date format to datetime. Arguments: timestamp {float} -- Input timestamp. Returns: datetime -- Datetime formatted objec...
24.028571
66
0.681332
83
841
6.795181
0.481928
0.092199
0.056738
0
0
0
0
0
0
0
0
0
0.242568
841
34
67
24.735294
0.8854
0.43044
0
0
0
0
0.014563
0
0
0
0
0
0
1
0.2
false
0
0.2
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
0
0
1
0
0
1
774c11df8d20e51199df674782c44bd0465809e9
3,209
py
Python
Anki 2.0/shinmeikai_definitions/shinmeikai.py
kebifurai/-Anki-Shinmeikai-Addon
ae2e0947a52a1c8645b10f214712ec01ea2cfbf5
[ "MIT" ]
4
2019-04-29T02:16:57.000Z
2021-01-04T13:29:58.000Z
Anki 2.0/shinmeikai_definitions/shinmeikai.py
kebifurai/-Anki-Shinmeikai-Addon
ae2e0947a52a1c8645b10f214712ec01ea2cfbf5
[ "MIT" ]
6
2019-05-15T07:37:45.000Z
2020-12-09T15:46:30.000Z
Anki 2.0/shinmeikai_definitions/shinmeikai.py
kebifurai/-Anki-Shinmeikai-Addon
ae2e0947a52a1c8645b10f214712ec01ea2cfbf5
[ "MIT" ]
5
2019-05-12T00:23:24.000Z
2021-01-04T14:29:48.000Z
# coding: utf8 import re, os import jpParser from aqt import mw from aqt.utils import showInfo from aqt.qt import * #parserObj = parser.Parser() source_directory = os.path.join(os.path.dirname(__file__),'data\\') amountOfDictionaryFiles = 9 def getDefsOfWord(word, conf): #return u"私はバカです" return searchForWord...
32.744898
99
0.600499
338
3,209
5.692308
0.384615
0.015593
0.036383
0.026507
0.186071
0.162162
0.116424
0.116424
0.116424
0.116424
0
0.006817
0.26862
3,209
97
100
33.082474
0.811248
0.16516
0
0.263889
0
0
0.060481
0.00864
0
0
0
0
0
0
null
null
0
0.069444
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
0
0
0
0
0
0
1
774cb588fa81c48ffbba8e9be8d49c12d29e46ca
4,349
py
Python
portal/apps/core/utils.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
null
null
null
portal/apps/core/utils.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
null
null
null
portal/apps/core/utils.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import re from time import timezone from datetime import datetime, tzinfo, timedelta from dateutil import tz from math import copysign from os import path import pytz from pytz import country_timezones, country_names import requests from django.conf import settings from django.contrib.contentty...
32.455224
112
0.683375
544
4,349
5.205882
0.294118
0.014831
0.033898
0.050847
0.231638
0.163489
0.14089
0.097105
0.097105
0.097105
0
0.004745
0.176132
4,349
133
113
32.699248
0.785096
0.004829
0
0.102041
0
0.010204
0.12552
0.066805
0
0
0
0
0
0
null
null
0.040816
0.122449
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
0
0
0
0
0
0
1
775129792c47791250da3b9a3b537167c39c8d09
588
py
Python
saleor/dashboard/templatetags/utils.py
hongquan/saleor
557803e6f92e03f2d1765f1b9767d013d1cdd253
[ "BSD-3-Clause" ]
null
null
null
saleor/dashboard/templatetags/utils.py
hongquan/saleor
557803e6f92e03f2d1765f1b9767d013d1cdd253
[ "BSD-3-Clause" ]
null
null
null
saleor/dashboard/templatetags/utils.py
hongquan/saleor
557803e6f92e03f2d1765f1b9767d013d1cdd253
[ "BSD-3-Clause" ]
null
null
null
import json try: from urllib.parse import urlencode except ImportError: from urllib import urlencode from django.template import Library register = Library() @register.filter def format_json(data, indent=2): return json.dumps(json.loads(data), indent=indent) @register.simple_tag(takes_context=True) de...
22.615385
54
0.72449
77
588
5.376623
0.493506
0.096618
0.072464
0
0
0
0
0
0
0
0
0.002049
0.170068
588
25
55
23.52
0.846311
0
0
0
0
0
0.013605
0
0
0
0
0
0
1
0.105263
false
0
0.263158
0.052632
0.526316
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
0
1
0
0
1
77537d7e1fb96454aaa57bc328964e14e160cc13
623
py
Python
ConcursoCorregido/boston_train.py
binary-hideout/redes-neuronales
dd73cc56a1280b40028085c0240e423f0df145d7
[ "MIT" ]
null
null
null
ConcursoCorregido/boston_train.py
binary-hideout/redes-neuronales
dd73cc56a1280b40028085c0240e423f0df145d7
[ "MIT" ]
null
null
null
ConcursoCorregido/boston_train.py
binary-hideout/redes-neuronales
dd73cc56a1280b40028085c0240e423f0df145d7
[ "MIT" ]
null
null
null
''' Modelo de entrenamiento para una red neuronal de regresión para el dataset de Boston. ''' import pickle from sklearn.neural_network import MLPRegressor import numpy as np # leer datos de entrenamiento x_train = np.loadtxt('xbostonTrain.csv', delimiter=',') y_train = np.loadtxt('ybostonTrain.csv') # modelo de re...
29.666667
126
0.749599
99
623
4.616162
0.686869
0.035011
0.061269
0
0
0
0
0
0
0
0
0.033333
0.133226
623
20
127
31.15
0.812963
0.309791
0
0
0
0
0.150358
0.054893
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
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
0
0
0
1
775bc084b89b783b48f7d6b270d4bc9d67b8203d
6,881
py
Python
sdk/python/pulumi_aws/secretsmanager/outputs.py
RafalSumislawski/pulumi-aws
7c8a335d327c173aa32c8b3d98816e760db329fa
[ "ECL-2.0", "Apache-2.0" ]
260
2018-06-18T14:57:00.000Z
2022-03-29T11:41:03.000Z
sdk/python/pulumi_aws/secretsmanager/outputs.py
RafalSumislawski/pulumi-aws
7c8a335d327c173aa32c8b3d98816e760db329fa
[ "ECL-2.0", "Apache-2.0" ]
1,154
2018-06-19T20:38:20.000Z
2022-03-31T19:48:16.000Z
sdk/python/pulumi_aws/secretsmanager/outputs.py
RafalSumislawski/pulumi-aws
7c8a335d327c173aa32c8b3d98816e760db329fa
[ "ECL-2.0", "Apache-2.0" ]
115
2018-06-28T03:20:27.000Z
2022-03-29T11:41:06.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
34.405
147
0.650051
763
6,881
5.567497
0.158585
0.101695
0.124294
0.073446
0.673258
0.638418
0.621469
0.56403
0.56403
0.56403
0
0.000194
0.249818
6,881
199
148
34.577889
0.822743
0.177445
0
0.585938
1
0.023438
0.192843
0.090673
0
0
0
0
0
1
0.179688
false
0
0.039063
0.015625
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
775d87e1037ed77bb4204f05ac6a601080dc3dbd
24,481
py
Python
jira/resources.py
tsarnowski/jira-python
a215dd2592b40297448d4dc45216e3398b4dff16
[ "BSD-2-Clause" ]
null
null
null
jira/resources.py
tsarnowski/jira-python
a215dd2592b40297448d4dc45216e3398b4dff16
[ "BSD-2-Clause" ]
null
null
null
jira/resources.py
tsarnowski/jira-python
a215dd2592b40297448d4dc45216e3398b4dff16
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from __future__ import print_function """ This module implements the Resource classes that translate JSON from JIRA REST resources into usable objects. """ import re import sys import logging import random import pprint import json from six import iterit...
34.0961
148
0.602426
2,938
24,481
4.874404
0.153846
0.053767
0.032051
0.02444
0.352629
0.334474
0.316877
0.284617
0.278891
0.245653
0
0.003012
0.281116
24,481
717
149
34.143654
0.810728
0.039132
0
0.320413
0
0
0.127594
0.019752
0
0
0
0
0
0
null
null
0
0.028424
null
null
0.015504
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
0
0
1
775fb49c0673fd11edee5d45990ccaf9568f825e
2,657
py
Python
server/Auth.py
anconaesselmann/SwiftUI-Chant-Client
802f3743583d809dfef802e2dd32e446293aaea1
[ "Apache-2.0" ]
null
null
null
server/Auth.py
anconaesselmann/SwiftUI-Chant-Client
802f3743583d809dfef802e2dd32e446293aaea1
[ "Apache-2.0" ]
null
null
null
server/Auth.py
anconaesselmann/SwiftUI-Chant-Client
802f3743583d809dfef802e2dd32e446293aaea1
[ "Apache-2.0" ]
null
null
null
# For testing purposes only. Do not use in production import uuid from uuid import UUID import hashlib import os from datetime import datetime, timedelta from SQLLiteAuthStore import * from AuthToken import * TOKEN_VALID_FOR = 31 # in days class Authenticaton: def __init__(self): # sqlite3 prod.db < tables.sql ...
30.54023
85
0.728641
410
2,657
4.470732
0.190244
0.111293
0.065466
0.07856
0.182215
0.118931
0.118931
0.089471
0.056738
0
0
0.007731
0.172375
2,657
86
86
30.895349
0.82583
0.03312
0
0.197183
0
0
0.012866
0
0
0
0
0
0
1
0.140845
false
0.183099
0.098592
0.042254
0.464789
0.028169
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
0
0
0
1
91f193288ef7f8067a5cf0efcf4cd9395e24e1e9
4,664
py
Python
tests/test_squashnz_player.py
madduck/pytcnz
95be82e0bd513f7f86ae44bf1d2c4d993887eb54
[ "MIT" ]
null
null
null
tests/test_squashnz_player.py
madduck/pytcnz
95be82e0bd513f7f86ae44bf1d2c4d993887eb54
[ "MIT" ]
null
null
null
tests/test_squashnz_player.py
madduck/pytcnz
95be82e0bd513f7f86ae44bf1d2c4d993887eb54
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright © 2021–2022 martin f. krafft <tctools@pobox.madduck.net> # Released under the MIT Licence # import pytest from datetime import date from pytcnz.squashnz.player import Player from .test_playerbase import PLAYER PLAYER = PLAYER | dict( id=14, squash_code="WNTHJXD", poi...
24.677249
79
0.691467
629
4,664
4.869634
0.225755
0.101208
0.067907
0.03526
0.462945
0.311786
0.245837
0.235717
0.200131
0.169442
0
0.026893
0.178816
4,664
188
80
24.808511
0.772324
0.025515
0
0.25
0
0
0.089006
0
0
0
0
0
0.169355
1
0.225806
false
0
0.032258
0.048387
0.306452
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
0
0
0
1
91f3168fa7a6fc27d29bae915b9efa2a38e34c1a
218
py
Python
main.py
LiuYuWei/service-structure-data-extract
6a3d74cfd71e27364dc1cfc8d42787b72e0f738d
[ "Apache-2.0" ]
null
null
null
main.py
LiuYuWei/service-structure-data-extract
6a3d74cfd71e27364dc1cfc8d42787b72e0f738d
[ "Apache-2.0" ]
null
null
null
main.py
LiuYuWei/service-structure-data-extract
6a3d74cfd71e27364dc1cfc8d42787b72e0f738d
[ "Apache-2.0" ]
null
null
null
"""This file is main file.""" # import relation package. import uvicorn # import project package. from src import create_app app = create_app() if __name__ == '__main__': uvicorn.run('main:app', host='0.0.0.0')
18.166667
43
0.692661
33
218
4.272727
0.545455
0.042553
0.042553
0
0
0
0
0
0
0
0
0.021858
0.16055
218
11
44
19.818182
0.748634
0.334862
0
0
0
0
0.166667
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
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
91f66b9a35f205108623bc19cb0a1a39418f78cd
268
py
Python
Python/268 Missing Number (XOR).py
comicxmz001/LeetCode
6878fe4cad7daf7067014029d7aae303ad4c1182
[ "MIT" ]
2
2016-07-03T06:18:37.000Z
2016-07-03T06:22:55.000Z
Python/268 Missing Number (XOR).py
comicxmz001/LeetCode
6878fe4cad7daf7067014029d7aae303ad4c1182
[ "MIT" ]
null
null
null
Python/268 Missing Number (XOR).py
comicxmz001/LeetCode
6878fe4cad7daf7067014029d7aae303ad4c1182
[ "MIT" ]
null
null
null
class Solution(object): def missingNumber(self, nums): """ :type nums: List[int] :rtype: int """ res = len(nums) for i in xrange(len(nums)): res ^= nums[i] res ^= i return res
22.333333
35
0.432836
29
268
4
0.62069
0.12069
0
0
0
0
0
0
0
0
0
0
0.44403
268
12
36
22.333333
0.778523
0.123134
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.428571
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
0
0
0
1
91f69f8bab9e989138ac938ba6243838588b8b36
15,427
py
Python
cat/admin.py
uq-eresearch/uqam
b15e480e6c6e530c6d50a950ed289fce2ee53ef3
[ "BSD-3-Clause" ]
1
2017-12-14T12:49:39.000Z
2017-12-14T12:49:39.000Z
cat/admin.py
uq-eresearch/uqam
b15e480e6c6e530c6d50a950ed289fce2ee53ef3
[ "BSD-3-Clause" ]
7
2017-11-23T23:34:45.000Z
2017-11-23T23:35:08.000Z
cat/admin.py
uq-eresearch/uqam
b15e480e6c6e530c6d50a950ed289fce2ee53ef3
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from django.conf.urls.defaults import patterns, url from models import MuseumObject, FunctionalCategory from models import CulturalBloc, ArtefactType, Category from models import AcquisitionMethod, LoanStatus from models import AccessStatus, Obtained from models import RecordStatus from...
36.044393
112
0.637195
1,577
15,427
5.980977
0.204185
0.015267
0.019826
0.024809
0.276612
0.207591
0.141858
0.093511
0.075276
0.069656
0
0.001025
0.240876
15,427
427
113
36.128806
0.804372
0.014455
0
0.210682
0
0
0.236651
0.032499
0
0
0
0.002342
0
0
null
null
0.002967
0.05638
null
null
0.002967
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
0
0
1
91fbfcc73e51c4676a35928b628737792369ccf9
3,876
py
Python
problems/time-based-key-value-store.py
sailikhithk/tech-interview-prep
e833764cf98915d56118bddfa0e01871c58de75e
[ "Apache-2.0" ]
null
null
null
problems/time-based-key-value-store.py
sailikhithk/tech-interview-prep
e833764cf98915d56118bddfa0e01871c58de75e
[ "Apache-2.0" ]
null
null
null
problems/time-based-key-value-store.py
sailikhithk/tech-interview-prep
e833764cf98915d56118bddfa0e01871c58de75e
[ "Apache-2.0" ]
null
null
null
import collections import bisect class TimeMap(object): def __init__(self): self.t = collections.defaultdict(list) self.v = collections.defaultdict(list) def set(self, key, value, timestamp): self.t[key].append(timestamp) self.v[key].append(value) def get(self, key, times...
28.711111
165
0.582043
611
3,876
3.672668
0.237316
0.026738
0.028521
0.028966
0.371212
0.329768
0.285651
0.270945
0.270945
0.250446
0
0.019516
0.28612
3,876
134
166
28.925373
0.791471
0.027348
0
0.480519
0
0
0.014321
0
0
0
0
0
0
0
null
null
0
0.051948
null
null
0.064935
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
0
0
1
91fc073c89beafb6125ba73687cf7ada0801afd1
440
py
Python
mandelbrot/numba_vectorize.py
graeme-winter/sidewinder
c0c7f61dbf3aadad0f9dbf803051f6c81a255317
[ "BSD-3-Clause" ]
null
null
null
mandelbrot/numba_vectorize.py
graeme-winter/sidewinder
c0c7f61dbf3aadad0f9dbf803051f6c81a255317
[ "BSD-3-Clause" ]
null
null
null
mandelbrot/numba_vectorize.py
graeme-winter/sidewinder
c0c7f61dbf3aadad0f9dbf803051f6c81a255317
[ "BSD-3-Clause" ]
null
null
null
from numba import vectorize, int32, complex128 from __init__ import plot, field IMAX = 0xFFFF @vectorize([int32(complex128)], target="parallel") def mandelbrot_vector(c): z = 0 n = 0 while abs(z) <= 2 and n < IMAX: z = z * z + c n += 1 return n def main(): f = field(1024) m...
16.296296
50
0.586364
63
440
3.857143
0.52381
0.115226
0.197531
0
0
0
0
0
0
0
0
0.063291
0.281818
440
26
51
16.923077
0.705696
0
0
0
0
0
0.079545
0
0
0
0.013636
0
0
1
0.111111
false
0
0.111111
0
0.277778
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6200e384ba78dc02d02c5f2f49a696a82b7e0353
1,671
py
Python
app/accounts/forms.py
spitzc32/BookCare
75ef83ff6d69008ea9e7de7481eb76ee326f03a0
[ "MIT" ]
null
null
null
app/accounts/forms.py
spitzc32/BookCare
75ef83ff6d69008ea9e7de7481eb76ee326f03a0
[ "MIT" ]
null
null
null
app/accounts/forms.py
spitzc32/BookCare
75ef83ff6d69008ea9e7de7481eb76ee326f03a0
[ "MIT" ]
1
2021-05-28T14:15:30.000Z
2021-05-28T14:15:30.000Z
from .models import Account from django import forms from django.core.exceptions import ValidationError class CustomUserCreationForm(forms.ModelForm): first_name = forms.CharField(label='Enter First Name', min_length=4, max_length=150) last_name = forms.CharField(label='Enter Last Name', min_length=4, ...
36.326087
97
0.643327
186
1,671
5.677419
0.354839
0.066288
0.089962
0.090909
0.153409
0.073864
0.073864
0
0
0
0
0.015347
0.259126
1,671
45
98
37.133333
0.837641
0.025733
0
0
0
0
0.131562
0
0
0
0
0
0
1
0.083333
false
0.277778
0.083333
0
0.472222
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
0
0
0
1
62071a5c83db43b5601b1a4e3911b038c95ac946
8,804
py
Python
nanome/api/files.py
nanome-ai/nanome-plugin-api
f2ce6a5e3123ee7449a90c2659f3891124289f4a
[ "MIT" ]
1
2020-04-10T09:47:54.000Z
2020-04-10T09:47:54.000Z
nanome/api/files.py
nanome-ai/nanome-plugin-api
f2ce6a5e3123ee7449a90c2659f3891124289f4a
[ "MIT" ]
10
2019-05-30T18:29:10.000Z
2020-02-15T02:16:42.000Z
nanome/api/files.py
nanome-ai/nanome-plugin-api
f2ce6a5e3123ee7449a90c2659f3891124289f4a
[ "MIT" ]
2
2020-02-04T02:56:21.000Z
2020-04-25T20:05:16.000Z
from nanome._internal._files import _Files from nanome.util import FileErrorCode from nanome.util.enums import Permissions from nanome._internal._network._commands._callbacks import _Messages class Files(_Files): """ | Class to navigate through files and directories on the machine running Nanome using unix-li...
47.847826
122
0.672194
1,101
8,804
5.24614
0.128974
0.072715
0.028566
0.036184
0.740824
0.663781
0.653913
0.642832
0.620672
0.619633
0
0
0.243185
8,804
183
123
48.10929
0.866877
0.353021
0
0.475
0
0
0.103109
0
0
0
0
0
0
1
0.15
false
0
0.05
0
0.3375
0.0125
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1