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
e5638a18a8416a8144a5d7eafecd3e28d87cca25
611
py
Python
scytale/crypto/rsa.py
MarcoYLyu/scytale
f2a38770c190f6be4ae775e956de539d9d8e2b72
[ "Apache-2.0" ]
null
null
null
scytale/crypto/rsa.py
MarcoYLyu/scytale
f2a38770c190f6be4ae775e956de539d9d8e2b72
[ "Apache-2.0" ]
null
null
null
scytale/crypto/rsa.py
MarcoYLyu/scytale
f2a38770c190f6be4ae775e956de539d9d8e2b72
[ "Apache-2.0" ]
null
null
null
from .. import algorithm as algo from .pkc_template import PKC import numpy as np __all__ = ['RSA'] class RSA(PKC): def __init__(self, e, p, q): assert(algo.gcd(e, (p - 1) * (q - 1)) == 1) self.e = e self.p = p self.q = q self.d = algo.inverse_mod(e, (p - 1) * (q - 1)) ...
22.62963
55
0.531915
95
611
3.294737
0.357895
0.047923
0.019169
0.025559
0.031949
0
0
0
0
0
0
0.01199
0.317512
611
27
56
22.62963
0.738609
0
0
0
0
0
0.004902
0
0
0
0
0
0.05
1
0.25
false
0
0.15
0.2
0.65
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
e56558a1732e58828a32646e884d6dcfe417803a
1,123
py
Python
contraste/examples/example.py
gmilare/ser-347
a7400043cc2a37dae7072b960961ac18283ff728
[ "MIT" ]
null
null
null
contraste/examples/example.py
gmilare/ser-347
a7400043cc2a37dae7072b960961ac18283ff728
[ "MIT" ]
null
null
null
contraste/examples/example.py
gmilare/ser-347
a7400043cc2a37dae7072b960961ac18283ff728
[ "MIT" ]
null
null
null
# # This file is part of Contraste. # Copyright (C) 2021 INPE. # # Contraste is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. # ##Instalação do pacote gdal como pré-requisito do pacote from osgeo import gdal ##instalação do...
36.225806
167
0.759573
162
1,123
5.265432
0.567901
0.037515
0.042204
0.039859
0.269637
0.206331
0.206331
0.206331
0.206331
0.206331
0
0.01087
0.180766
1,123
30
168
37.433333
0.916304
0.77382
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0.5
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
1
0
0
0
0
2
e580a1612aa71b800bfe00cb6b7452b8a94e7be5
516
py
Python
tests/credentials/credentials.py
Acidburn0zzz/dfvfs
3db8c4e520e3e7527faffeea8f52187c861fa3b6
[ "Apache-2.0" ]
1
2019-08-28T23:47:16.000Z
2019-08-28T23:47:16.000Z
tests/credentials/credentials.py
Acidburn0zzz/dfvfs
3db8c4e520e3e7527faffeea8f52187c861fa3b6
[ "Apache-2.0" ]
null
null
null
tests/credentials/credentials.py
Acidburn0zzz/dfvfs
3db8c4e520e3e7527faffeea8f52187c861fa3b6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for the credentials interface.""" from __future__ import unicode_literals import unittest from dfvfs.credentials import credentials from tests import test_lib as shared_test_lib class Credentials(shared_test_lib.BaseTestCase): """Tests the credentials inter...
20.64
48
0.738372
61
516
5.885246
0.590164
0.058496
0.128134
0
0
0
0
0
0
0
0
0.002278
0.149225
516
24
49
21.5
0.81549
0.273256
0
0
0
0
0.022346
0
0
0
0
0
0.1
1
0.1
false
0
0.4
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
e58925dd800b37da057cb6a81d1193f7def79b6a
1,285
py
Python
tests/routing/test_handle.py
antonrh/django-apirouter
29a8415c3d7bd201c123eb3a28bdc28276bf2e54
[ "MIT" ]
7
2020-07-23T12:39:03.000Z
2021-05-05T11:03:02.000Z
tests/routing/test_handle.py
antonrh/django-apirouter
29a8415c3d7bd201c123eb3a28bdc28276bf2e54
[ "MIT" ]
6
2021-03-19T10:14:39.000Z
2021-09-22T19:33:02.000Z
tests/routing/test_handle.py
antonrh/django-apirouter
29a8415c3d7bd201c123eb3a28bdc28276bf2e54
[ "MIT" ]
1
2020-10-27T19:18:25.000Z
2020-10-27T19:18:25.000Z
import pytest from django.http import HttpResponse from apirouter import APIRouter from apirouter.exceptions import APIException pytestmark = [pytest.mark.urls(__name__)] def exception_handler(request, exc): return HttpResponse(str(exc), status=400) router = APIRouter(exception_handler=exception_handler) @r...
19.469697
55
0.705837
165
1,285
5.351515
0.30303
0.12684
0.05889
0.10419
0.164213
0.152888
0.152888
0.152888
0
0
0
0.025998
0.161868
1,285
65
56
19.769231
0.793872
0
0
0.081081
0
0
0.057588
0
0
0
0
0
0.216216
1
0.243243
false
0
0.108108
0.108108
0.459459
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
e58f4325704bbc2aa42b28f7bd1fd7bd864fc1c5
470
py
Python
custom/icds_reports/migrations/0067_ccsrecordmonthly_dob.py
tobiasmcnulty/commcare-hq
234aa1fba98a96de1b625bbd70b2066fc877eed1
[ "BSD-3-Clause" ]
1
2020-07-14T13:00:23.000Z
2020-07-14T13:00:23.000Z
custom/icds_reports/migrations/0067_ccsrecordmonthly_dob.py
tobiasmcnulty/commcare-hq
234aa1fba98a96de1b625bbd70b2066fc877eed1
[ "BSD-3-Clause" ]
null
null
null
custom/icds_reports/migrations/0067_ccsrecordmonthly_dob.py
tobiasmcnulty/commcare-hq
234aa1fba98a96de1b625bbd70b2066fc877eed1
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 1.10.7 on 2018-09-25 13:50 from corehq.sql_db.operations import RawSQLMigration from django.db import migrations from custom.icds_reports.const import SQL_TEMPLATES_ROOT migrator = RawSQLMigration((SQL_TEMPLATES_ROOT,)) class Migration(migrations.Migration): dependencies = [ ('icd...
24.736842
76
0.755319
58
470
5.87931
0.672414
0.064516
0.093842
0
0
0
0
0
0
0
0
0.055556
0.157447
470
18
77
26.111111
0.805556
0.097872
0
0
1
0
0.184834
0.111374
0
0
0
0
0
1
0
false
0
0.272727
0
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
e5a079fdccf1bc8b11c44da27d763fe4291c561f
340
py
Python
isbn-verifier/isbn_verifier.py
rdlu/exercism-python
61e89f4969af5bcad028e843aaae6a8869b0187d
[ "MIT" ]
null
null
null
isbn-verifier/isbn_verifier.py
rdlu/exercism-python
61e89f4969af5bcad028e843aaae6a8869b0187d
[ "MIT" ]
null
null
null
isbn-verifier/isbn_verifier.py
rdlu/exercism-python
61e89f4969af5bcad028e843aaae6a8869b0187d
[ "MIT" ]
null
null
null
def is_valid(isbn: str) -> bool: # filter nums, convert to list of int l = [int(x) for x in filter(str.isnumeric, isbn)] # handle the edge case: X if isbn and isbn[-1] == 'X': l.append(10) # check len and sum the product of digits x position return len(l) == 10 and sum([l[10-i] * i for i in rang...
42.5
77
0.605882
65
340
3.153846
0.584615
0.058537
0
0
0
0
0
0
0
0
0
0.05098
0.25
340
7
78
48.571429
0.752941
0.323529
0
0
0
0
0.004425
0
0
0
0
0
0
1
0.25
false
0
0
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
e5af2f5d93002ed3ec62091397268eae09761e58
208
py
Python
src/models/__init__.py
imhgchoi/Project-Template
dd6cce6f337456e77767fc63f08e20105344607c
[ "MIT" ]
2
2021-11-04T12:05:14.000Z
2021-12-03T02:44:32.000Z
src/models/__init__.py
imhgchoi/Project-Template
dd6cce6f337456e77767fc63f08e20105344607c
[ "MIT" ]
null
null
null
src/models/__init__.py
imhgchoi/Project-Template
dd6cce6f337456e77767fc63f08e20105344607c
[ "MIT" ]
1
2021-11-04T12:05:21.000Z
2021-11-04T12:05:21.000Z
from models.sample import SampleModel def build_model(args): if args.model == 'sample': return SampleModel(args) else : raise NotImplementedError(f"check model name : {args.model}")
23.111111
69
0.677885
25
208
5.6
0.68
0.128571
0
0
0
0
0
0
0
0
0
0
0.221154
208
9
69
23.111111
0.864198
0
0
0
0
0
0.177885
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
e5b5af0e94feb02bffa010827ceb7ec985ee58ea
7,424
py
Python
des.py
ybbarng/des
cf01ad0cef47aab76004349589e078c6c56c39ff
[ "MIT" ]
null
null
null
des.py
ybbarng/des
cf01ad0cef47aab76004349589e078c6c56c39ff
[ "MIT" ]
null
null
null
des.py
ybbarng/des
cf01ad0cef47aab76004349589e078c6c56c39ff
[ "MIT" ]
null
null
null
from itertools import accumulate # Initial Permutation IP = [ 57, 49, 41, 33, 25, 17, 9, 1, 59, 51, 43, 35, 27, 19, 11, 3, 61, 53, 45, 37, 29, 21, 13, 5, 63, 55, 47, 39, 31, 23, 15, 7, 56, 48, 40, 32, 24, 16, 8, 0, 58, 50, 42, 34, 26, 18, 10, 2, 60, 52, 44, 36, 28, 20, 12, 4, ...
25.6
86
0.470905
1,408
7,424
2.423295
0.12429
0.006448
0.007034
0.007034
0.204865
0.200176
0.188159
0.188159
0.107562
0.084408
0
0.286153
0.342403
7,424
289
87
25.688581
0.412741
0.026266
0
0.147465
0
0
0.010147
0
0
0
0
0
0
1
0.078341
false
0
0.009217
0.018433
0.147465
0.013825
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
e5b7224b64c56ea687a8c6cabb5a5f7bb0ec22a0
1,171
py
Python
app/models/__init__.py
cybrnode/zkt-sdk-rest-api
79aca088965cf2e29845bbd1f16d56a03b76cf6d
[ "MIT" ]
null
null
null
app/models/__init__.py
cybrnode/zkt-sdk-rest-api
79aca088965cf2e29845bbd1f16d56a03b76cf6d
[ "MIT" ]
null
null
null
app/models/__init__.py
cybrnode/zkt-sdk-rest-api
79aca088965cf2e29845bbd1f16d56a03b76cf6d
[ "MIT" ]
null
null
null
from typing import Optional from pydantic.main import BaseModel class User(BaseModel): CardNo: int Pin: int Password: str Group: int StartTime: str EndTime: str SuperAuthorize: bool class ConnectionParams(BaseModel): protocol: Optional[str] = "TCP" ip_address: str = "192.168.10....
25.456522
131
0.448335
96
1,171
5.395833
0.510417
0.042471
0
0
0
0
0
0
0
0
0
0.05295
0.435525
1,171
45
132
26.022222
0.730711
0
0
0
0
0.027027
0.17848
0.096499
0
0
0
0
0
1
0.027027
false
0.108108
0.054054
0.027027
0.540541
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
e5d995608ee412d2f4246aacc21db4da9cfb07a6
1,273
py
Python
config.py
ufo-project/minepool-data-server
ece93f8d069ea4c55b2c3471ba422016ec0a4ff7
[ "MIT" ]
3
2020-06-04T06:53:34.000Z
2022-03-23T23:42:56.000Z
config.py
ufo-project/minepool-data-server
ece93f8d069ea4c55b2c3471ba422016ec0a4ff7
[ "MIT" ]
null
null
null
config.py
ufo-project/minepool-data-server
ece93f8d069ea4c55b2c3471ba422016ec0a4ff7
[ "MIT" ]
1
2020-11-26T04:42:05.000Z
2020-11-26T04:42:05.000Z
#!/usr/bin/env python # encoding: utf-8 import os basedir = os.path.abspath(os.path.dirname(__file__)) class Config(object): SECRET_KEY = os.environ.get('SECRET_KEY') or 'SUPER-SECRET' LOGFILE = "server.log" class DevelopmentConfig(Config): DEBUG = True LOG_BACKTRACE = True LOG_LEVEL = 'DEBUG'...
18.185714
63
0.632364
172
1,273
4.401163
0.401163
0.023778
0.015852
0.023778
0.428005
0.385733
0.359313
0.274769
0.274769
0.274769
0
0.072176
0.249018
1,273
69
64
18.449275
0.719665
0.02828
0
0.382979
0
0
0.139271
0
0
0
0
0
0
1
0.042553
false
0.085106
0.021277
0
0.787234
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
e5e05fc91e008294b1123e380962f1142491817e
747
py
Python
music_tag/wave.py
gyozaaaa/music-tag
64c4075fd27e5d0a8b7b96688d343b2764a18860
[ "MIT" ]
28
2019-11-19T16:05:59.000Z
2022-02-27T00:01:10.000Z
music_tag/wave.py
gyozaaaa/music-tag
64c4075fd27e5d0a8b7b96688d343b2764a18860
[ "MIT" ]
28
2020-05-14T16:06:35.000Z
2022-01-24T11:50:45.000Z
music_tag/wave.py
gyozaaaa/music-tag
64c4075fd27e5d0a8b7b96688d343b2764a18860
[ "MIT" ]
7
2020-05-14T16:08:33.000Z
2022-02-26T18:58:57.000Z
#!/usr/bin/env python # coding: utf-8 try: import mutagen.wave from music_tag.id3 import Id3File class WaveId3File(Id3File): tag_format = "Wave[Id3]" mutagen_kls = mutagen.wave.WAVE def __init__(self, filename, **kwargs): super(WaveId3File, self).__init__(filename, *...
27.666667
86
0.522088
78
747
4.74359
0.576923
0.081081
0.081081
0.091892
0.189189
0.189189
0.189189
0.189189
0
0
0
0.016878
0.365462
747
26
87
28.730769
0.763713
0.413655
0
0
0
0
0.021077
0
0
0
0
0
0
1
0.1
false
0.1
0.3
0
0.7
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
e5e2f9dc42b31907a1d2c4a1fb2034efb8ed61e1
889
py
Python
app/extractor/__init__.py
ken-pan/wallpaper-downloader
b39efce45d1634452879c8e41824f861b439fabd
[ "Apache-2.0" ]
2
2020-02-18T09:23:02.000Z
2020-02-18T09:23:04.000Z
app/extractor/__init__.py
ken-pan/wallpaper-downloader
b39efce45d1634452879c8e41824f861b439fabd
[ "Apache-2.0" ]
null
null
null
app/extractor/__init__.py
ken-pan/wallpaper-downloader
b39efce45d1634452879c8e41824f861b439fabd
[ "Apache-2.0" ]
null
null
null
""" request(method, url, params=None, data=None, headers=None, cookies=None, files=None, auth=None, timeout=None, allow_redirects=True, proxies=None, hooks=None, stream=None, verify=None, cert=None, json=None) 参数: method -- 请求方法 url -- 网址 params -- url中传递参数,字典类型{'key':'value'},http://www.ba...
42.333333
206
0.632171
98
889
5.714286
0.571429
0.05
0
0
0
0
0
0
0
0
0
0
0.231721
889
20
207
44.45
0.819912
0.969629
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
e5e40c8b1403ee4f63e307f6d0904ec682aa1c1f
264
py
Python
templates/server.py
eatsleeplim/ansible-role-install-root-cert
0f3dea05867148cc14707c193e9ed17103611d71
[ "MIT" ]
7
2019-07-29T06:57:40.000Z
2022-01-05T03:16:08.000Z
templates/server.py
eatsleeplim/ansible-role-install-root-cert
0f3dea05867148cc14707c193e9ed17103611d71
[ "MIT" ]
3
2019-01-10T08:40:43.000Z
2020-03-26T16:47:42.000Z
templates/server.py
eatsleeplim/ansible-role-install-root-cert
0f3dea05867148cc14707c193e9ed17103611d71
[ "MIT" ]
17
2016-12-21T09:25:06.000Z
2022-01-31T11:50:47.000Z
import BaseHTTPServer, SimpleHTTPServer import ssl httpd = BaseHTTPServer.HTTPServer(('0.0.0.0', 443), SimpleHTTPServer.SimpleHTTPRequestHandler) httpd.socket = ssl.wrap_socket (httpd.socket, certfile='{{ certfile_pem }}', server_side=True) httpd.serve_forever()
37.714286
94
0.795455
31
264
6.645161
0.580645
0.029126
0.029126
0
0
0
0
0
0
0
0
0.028689
0.075758
264
6
95
44
0.815574
0
0
0
0
0
0.094697
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
e5e532e0c75b86044df72b046e83fb1815cb8bb1
686
py
Python
release/stubs.min/System/Windows/Forms/__init___parts/TreeNodeMouseClickEventArgs.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/System/Windows/Forms/__init___parts/TreeNodeMouseClickEventArgs.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/System/Windows/Forms/__init___parts/TreeNodeMouseClickEventArgs.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
class TreeNodeMouseClickEventArgs(MouseEventArgs): """ Provides data for the System.Windows.Forms.TreeView.NodeMouseClick and System.Windows.Forms.TreeView.NodeMouseDoubleClick events. TreeNodeMouseClickEventArgs(node: TreeNode,button: MouseButtons,clicks: int,x: int,y: int) """ @staticmethod ...
27.44
131
0.685131
76
686
6.078947
0.526316
0.064935
0.077922
0.112554
0.203463
0.203463
0.203463
0.203463
0.203463
0.203463
0
0
0.196793
686
24
132
28.583333
0.838476
0.443149
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0.2
0
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
1
0
0
1
0
0
2
f91b7984d93fe6dd2ca96c5873e943846397b2c4
9,145
py
Python
services/workers/src/workers/jobs/models/__init__.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
services/workers/src/workers/jobs/models/__init__.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
services/workers/src/workers/jobs/models/__init__.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Green Valley Belgium NV # # 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 appl...
33.01444
123
0.716785
1,111
9,145
5.720072
0.257426
0.026436
0.028324
0.024548
0.216994
0.182533
0.162234
0.161133
0.140205
0.134068
0
0.003238
0.189393
9,145
276
124
33.134058
0.85404
0.154948
0
0.228723
0
0
0.024317
0
0
0
0
0.003623
0
1
0.12766
false
0
0.031915
0.12234
0.792553
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
f921a24eb8c84d97501282d49b2fb77e1265c617
384
py
Python
app/config/default_config.py
vonsago/service_platform
2433761be021968889af4c7b08b6d801453ab3b1
[ "MIT" ]
6
2018-09-08T13:18:15.000Z
2019-06-08T06:45:25.000Z
app/config/default_config.py
vonsago/service_platform
2433761be021968889af4c7b08b6d801453ab3b1
[ "MIT" ]
null
null
null
app/config/default_config.py
vonsago/service_platform
2433761be021968889af4c7b08b6d801453ab3b1
[ "MIT" ]
2
2018-09-06T01:32:24.000Z
2018-09-09T14:35:17.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2018/9/8 下午9:22 # @Author : Vassago # @File : default_config.py # @Software: PyCharm import os class DefaultConfig(): CONFIG_NAME = 'DEFAULT' DEBUG = True TEMPLATE_DIR = "." STATIC_DIR = "." class DevConfig(): CONFIG_NAME = 'PRO' ...
19.2
30
0.59375
47
384
4.702128
0.702128
0.090498
0.153846
0.180995
0
0
0
0
0
0
0
0.034483
0.244792
384
20
31
19.2
0.727586
0.354167
0
0.181818
0
0
0.090535
0
0
0
0
0
0
1
0
false
0
0.090909
0
1
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
f92412ae5a8aedeea76689520de7bccc06cb41fd
500
py
Python
EulerProblem5.py
JonathanFox1993/PythonCode
5d67d3e63f3d5f0c351bf634a568c0ca949ecd34
[ "Apache-2.0" ]
null
null
null
EulerProblem5.py
JonathanFox1993/PythonCode
5d67d3e63f3d5f0c351bf634a568c0ca949ecd34
[ "Apache-2.0" ]
null
null
null
EulerProblem5.py
JonathanFox1993/PythonCode
5d67d3e63f3d5f0c351bf634a568c0ca949ecd34
[ "Apache-2.0" ]
null
null
null
# Greatest common divisor of more than 2 numbers def gcd(x,y): return y and gcd(y, x % y) or x #Lowest common multiple of 2 integers def lcm(x,y): return x * y / gcd(x,y) # loops through number 1 to 20 and puts them into the lcm fucntion to calculate the lowest common mulitple of 2 intergers # Keeps l...
33.333333
123
0.672
97
500
3.463918
0.556701
0.029762
0.029762
0
0
0
0
0
0
0
0
0.040761
0.264
500
14
124
35.714286
0.872283
0.638
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0.333333
0.333333
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
005a496eca0b0912ea27bee93515d19d56ec1ebc
1,074
py
Python
test/test_file_generators.py
fluxtransport/hazel2
4121df2fa6bf96bf8f193f287bbf11c70c5a519e
[ "MIT" ]
null
null
null
test/test_file_generators.py
fluxtransport/hazel2
4121df2fa6bf96bf8f193f287bbf11c70c5a519e
[ "MIT" ]
null
null
null
test/test_file_generators.py
fluxtransport/hazel2
4121df2fa6bf96bf8f193f287bbf11c70c5a519e
[ "MIT" ]
null
null
null
import hazel import glob import os def test_file_generators(): tmp = hazel.tools.File_observation(mode='single') tmp.set_size(n_lambda=128, n_pixel=1) tmp.save('test') tmp = hazel.tools.File_observation(mode='multi') tmp.set_size(n_lambda=128, n_pixel=10) tmp.save('test2') tmp = hazel.to...
22.851064
54
0.623836
148
1,074
4.378378
0.243243
0.074074
0.12037
0.157407
0.776235
0.720679
0.419753
0.419753
0.339506
0.339506
0
0.021924
0.235568
1,074
47
55
22.851064
0.767357
0
0
0.432432
0
0
0.117209
0
0
0
0
0
0
1
0.027027
false
0.081081
0.081081
0
0.108108
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
005a4e204b2d76317fcacfafe86497f575f082cf
204
py
Python
pyscripts/city_to_graph.py
ElvinLord12/cara_v2
891713b20e7b154c050e7d24ce1b621760148b87
[ "BSD-2-Clause" ]
null
null
null
pyscripts/city_to_graph.py
ElvinLord12/cara_v2
891713b20e7b154c050e7d24ce1b621760148b87
[ "BSD-2-Clause" ]
2
2021-05-10T23:17:47.000Z
2022-02-26T22:02:03.000Z
pyscripts/city_to_graph.py
ElvinLord12/cara_v2
891713b20e7b154c050e7d24ce1b621760148b87
[ "BSD-2-Clause" ]
null
null
null
import osmnx as ox import networkx as nx ox.config(use_cache=True, log_console=False) graph = ox.graph_from_address('953 Danby Rd, Ithaca, New York', network_type='walk') fig, ax = ox.plot_graph(graph)
25.5
84
0.764706
36
204
4.166667
0.777778
0
0
0
0
0
0
0
0
0
0
0.01676
0.122549
204
8
85
25.5
0.821229
0
0
0
0
0
0.165854
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
005be66dd4f663661a5a03c68280d23fbd25ddf1
486
py
Python
tests/unit/test_simple_collectible.py
Sam44323/nft-mix-opensea
05f85412d6e088094ea18d2b0372578cbab2ebc4
[ "MIT" ]
null
null
null
tests/unit/test_simple_collectible.py
Sam44323/nft-mix-opensea
05f85412d6e088094ea18d2b0372578cbab2ebc4
[ "MIT" ]
null
null
null
tests/unit/test_simple_collectible.py
Sam44323/nft-mix-opensea
05f85412d6e088094ea18d2b0372578cbab2ebc4
[ "MIT" ]
null
null
null
from scripts.utils.helpful_scripts import get_account, LOCAL_BLOCKCHAIN_ENVIRONMENTS from scripts.simple_collectible.deploy_and_create import deploy_and_create from brownie import network import pytest def network_checker(): if network.show_active() not in LOCAL_BLOCKCHAIN_ENVIRONMENTS: pytest.skip() de...
30.375
84
0.812757
62
486
5.983871
0.5
0.183288
0.121294
0.140162
0.172507
0
0
0
0
0
0
0.002353
0.125514
486
15
85
32.4
0.870588
0
0
0
0
0
0
0
0
0
0
0
0.090909
1
0.181818
false
0
0.363636
0
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
005ee24e380d7b614fe6db37ad6fbb4ad57707af
1,198
py
Python
test_script.py
stu314159/pyGAS
68463b7a9b4d1fcec5e3f8bec0e2562b7a96e559
[ "MIT" ]
null
null
null
test_script.py
stu314159/pyGAS
68463b7a9b4d1fcec5e3f8bec0e2562b7a96e559
[ "MIT" ]
null
null
null
test_script.py
stu314159/pyGAS
68463b7a9b4d1fcec5e3f8bec0e2562b7a96e559
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Aug 10 17:36:05 2017 @author: stu """ import pyGAS as pg helium = pg.He(); To = 273.15; # K T1 = 800; #K P = 101.3; # kPa cp1 = helium.Cp(T1) cv1 = helium.Cv(T1) k1 = helium.k(T1) print "Cp = %g \n"%cp1 print "Cv = %g \n"%cv1 print "k = %g \n"%k1 h0 = helium.enthalpy(To) ...
23.490196
65
0.594324
260
1,198
2.723077
0.273077
0.025424
0.056497
0.042373
0.25
0.230226
0.230226
0.230226
0.230226
0.211864
0
0.099695
0.179466
1,198
51
66
23.490196
0.620549
0.023372
0
0.117647
0
0.029412
0.382326
0
0
0
0
0
0
0
null
null
0
0.029412
null
null
0.411765
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
1
0
2
0062adfac42e5569680e08b0ba27721fc11bf83e
3,205
py
Python
quark/network_strategy.py
Cerberus98/quark
53848e357a1b4d5d23f565963f22115d8997e38f
[ "Apache-2.0" ]
null
null
null
quark/network_strategy.py
Cerberus98/quark
53848e357a1b4d5d23f565963f22115d8997e38f
[ "Apache-2.0" ]
null
null
null
quark/network_strategy.py
Cerberus98/quark
53848e357a1b4d5d23f565963f22115d8997e38f
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 Openstack Foundation # All Rights Reserved. # # 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 requ...
32.704082
79
0.664275
424
3,205
4.790094
0.28066
0.076809
0.053176
0.023634
0.157558
0.094535
0.072871
0.041359
0.041359
0.041359
0
0.003324
0.248986
3,205
97
80
33.041237
0.840465
0.18908
0
0.064516
0
0
0.043731
0
0
0
0
0
0
1
0.225806
false
0
0.048387
0.112903
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
006744cf123ce2a944636a2d4703584e87b23966
465
py
Python
Lib/api.py
evi1hack/viperpython
04bf8e31e21385edb58ea9d25296df062197df39
[ "BSD-3-Clause" ]
null
null
null
Lib/api.py
evi1hack/viperpython
04bf8e31e21385edb58ea9d25296df062197df39
[ "BSD-3-Clause" ]
null
null
null
Lib/api.py
evi1hack/viperpython
04bf8e31e21385edb58ea9d25296df062197df39
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # @File : api.py # @Date : 2021/2/25 # @Desc : import random import string def get_random_str(len): value = ''.join(random.sample(string.ascii_letters + string.digits, len)) return value def data_return(code=500, data=None, msg_zh="服务器发生错误,请检查服务器", ...
25.833333
84
0.623656
68
465
4.117647
0.617647
0.053571
0.057143
0
0
0
0
0
0
0
0
0.030471
0.223656
465
17
85
27.352941
0.745152
0.139785
0
0
0
0
0.23038
0
0
0
0
0
0
1
0.222222
false
0
0.222222
0.111111
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
006f4fd47f2fe5c7b5642ac752acf4224af1e709
167
py
Python
algospot/drawrect/answer.py
BK-Yoo/everyday-study
a7a52f0ee76053f4d693a1717047eb674d994c2c
[ "MIT" ]
1
2016-10-17T14:57:54.000Z
2016-10-17T14:57:54.000Z
algospot/drawrect/answer.py
BK-Yoo/everyday-study
a7a52f0ee76053f4d693a1717047eb674d994c2c
[ "MIT" ]
1
2019-04-28T21:42:05.000Z
2019-04-28T21:42:05.000Z
algospot/drawrect/answer.py
BK-Yoo/algospot
a7a52f0ee76053f4d693a1717047eb674d994c2c
[ "MIT" ]
null
null
null
from operator import ixor for _ in range(int(input())): a = [0, 0] for i in range(3): a = list(map(ixor, a, map(int, input().split()))) print(*a)
20.875
57
0.54491
28
167
3.214286
0.607143
0.155556
0
0
0
0
0
0
0
0
0
0.02439
0.263473
167
7
58
23.857143
0.707317
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.166667
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
007058e50c3d63652db41001463200413a3da7c2
1,229
py
Python
inst/python/rpytools/output.py
Mormukut11/R-interface-to-Python
43664503884625f55cd4d452228a7a855ce86ce2
[ "Apache-2.0" ]
null
null
null
inst/python/rpytools/output.py
Mormukut11/R-interface-to-Python
43664503884625f55cd4d452228a7a855ce86ce2
[ "Apache-2.0" ]
null
null
null
inst/python/rpytools/output.py
Mormukut11/R-interface-to-Python
43664503884625f55cd4d452228a7a855ce86ce2
[ "Apache-2.0" ]
1
2019-12-16T13:09:28.000Z
2019-12-16T13:09:28.000Z
import sys try: from StringIO import StringIO except ImportError: from io import StringIO def start_stdout_capture(): restore = sys.stdout sys.stdout = StringIO() return restore def end_stdout_capture(restore): output = sys.stdout.getvalue() sys.stdout.close() sys.stdout = restore return output de...
17.811594
55
0.684296
164
1,229
4.993902
0.256098
0.087912
0.04884
0.058608
0.065934
0
0
0
0
0
0
0.00104
0.21725
1,229
68
56
18.073529
0.850312
0
0
0.130435
0
0
0
0
0
0
0
0
0
1
0.23913
false
0
0.086957
0.086957
0.565217
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
00816b6f8a51080d4ef82bdcb3622f1ac7a0adb1
11,192
py
Python
bin/yap_log.py
Novartis/yap
8399e87e6083e6394d1f9340e308a01751465a03
[ "Apache-2.0" ]
23
2015-01-14T21:32:11.000Z
2021-07-19T12:59:10.000Z
bin/yap_log.py
Novartis/yap
8399e87e6083e6394d1f9340e308a01751465a03
[ "Apache-2.0" ]
1
2017-06-30T10:54:57.000Z
2017-06-30T10:54:57.000Z
bin/yap_log.py
Novartis/yap
8399e87e6083e6394d1f9340e308a01751465a03
[ "Apache-2.0" ]
9
2015-09-02T17:44:24.000Z
2021-07-05T18:59:16.000Z
#!/usr/bin/env python """ Copyright 2014 Novartis Institutes for Biomedical Research 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 ...
42.717557
104
0.589081
1,488
11,192
4.162634
0.172043
0.030029
0.021795
0.027123
0.344204
0.312399
0.275751
0.222796
0.2031
0.189861
0
0.006014
0.286812
11,192
261
105
42.881226
0.769982
0.018674
0
0.309179
0
0.009662
0.135936
0.002734
0.004831
0
0
0
0
0
null
null
0.125604
0.028986
null
null
0.009662
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
0083465324c10bdda5cb0c1b9b3a279bfe2032f4
1,151
py
Python
hot_word.py
andyrenpanlong/soubu_app
abe56cbb3f21062ec3a8ef256131513484400c27
[ "MIT" ]
null
null
null
hot_word.py
andyrenpanlong/soubu_app
abe56cbb3f21062ec3a8ef256131513484400c27
[ "MIT" ]
null
null
null
hot_word.py
andyrenpanlong/soubu_app
abe56cbb3f21062ec3a8ef256131513484400c27
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from bs4 import BeautifulSoup from pymongo import MongoClient import requests from cookielib import CookieJar import json import time import urllib import urllib2 import ssl import sys from soubu_setting import headers reload(sys) sys.setdefaultencoding('utf8') # 搜布网app数据抓取 requests = requests....
26.159091
120
0.742832
167
1,151
4.88024
0.461078
0.060123
0.058896
0.03681
0.093252
0
0
0
0
0
0
0.066802
0.141616
1,151
43
121
26.767442
0.758097
0.027802
0
0
0
0.029412
0.189068
0.092294
0
0
0
0
0
0
null
null
0
0.323529
null
null
0.117647
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
2
008597b7a337edf8a0eec8631280a7da0f5e732b
23,210
py
Python
CNN network.py
shohamda/deep-learning
160296c403cefd5351ffe5161e07789c22637284
[ "MIT" ]
null
null
null
CNN network.py
shohamda/deep-learning
160296c403cefd5351ffe5161e07789c22637284
[ "MIT" ]
null
null
null
CNN network.py
shohamda/deep-learning
160296c403cefd5351ffe5161e07789c22637284
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Shoham Danino 204287635 Yehonatan Moshkovitz 314767674 - DL Assignment 2 Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1hUnIpK7OVBXyQ1r-V6VKu_XqQLcy9UdX **Assignment # 2, CNN over Fasion MNIST** In this assignment you are ...
34.182622
538
0.637355
3,118
23,210
4.662284
0.162604
0.023526
0.029717
0.014033
0.647314
0.629979
0.614088
0.588223
0.578937
0.569856
0
0.033211
0.250151
23,210
679
539
34.182622
0.802057
0.089832
0
0.850543
1
0
0.060332
0
0
0
0
0
0
1
0.024457
false
0
0.032609
0
0.081522
0.040761
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
00b08044d00f660e391d7660d76f271b386f347f
4,218
py
Python
pysnmp/ChrComAtmVplTpVp-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/ChrComAtmVplTpVp-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/ChrComAtmVplTpVp-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module ChrComAtmVplTpVp-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ChrComAtmVplTpVp-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 18:19:02 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (defau...
117.166667
483
0.787814
423
4,218
7.855792
0.281324
0.006019
0.008125
0.010834
0.377671
0.29341
0.262113
0.262113
0.262113
0.262113
0
0.066359
0.07468
4,218
35
484
120.514286
0.785037
0.079184
0
0
0
0
0.189419
0.016774
0
0
0
0
0
1
0
false
0
0.321429
0
0.321429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
00b90247b7a06d69d8c24c57a9c4c773e2f46b70
1,161
py
Python
ai2business/datasets/test/test_sample_generator.py
Maximilianpy/ai2business
ebe37b7c05a5ee18c86b2bf74cc27e5292a76ca5
[ "Apache-2.0" ]
null
null
null
ai2business/datasets/test/test_sample_generator.py
Maximilianpy/ai2business
ebe37b7c05a5ee18c86b2bf74cc27e5292a76ca5
[ "Apache-2.0" ]
null
null
null
ai2business/datasets/test/test_sample_generator.py
Maximilianpy/ai2business
ebe37b7c05a5ee18c86b2bf74cc27e5292a76ca5
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 AI2Business. All Rights Reserved. # # 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 ...
36.28125
80
0.714901
148
1,161
5.459459
0.608108
0.074257
0.059406
0.092822
0.183168
0.089109
0
0
0
0
0
0.010989
0.137812
1,161
31
81
37.451613
0.796204
0.593454
0
0
0
0
0.064018
0
0
0
0
0
0.333333
1
0.333333
false
0
0.222222
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
00d47f29bd67cdeaaf97aa229371db87c7a7ca8e
2,012
py
Python
pyvizio/api/base.py
jezzab/pyvizio
8086f9e5aac49d1d99ade02684ca35c05e03a7eb
[ "MIT" ]
72
2017-08-08T19:32:12.000Z
2022-03-18T03:18:41.000Z
pyvizio/api/base.py
raman325/pyvizio
9cf45fcc9b409caf223a38d8f79c775742ab4127
[ "MIT" ]
48
2017-09-16T16:37:54.000Z
2022-01-23T20:43:42.000Z
pyvizio/api/base.py
ConnectionMaster/pyvizio
0fe4558557917509d3da3bb24f9221f15ba901ce
[ "MIT" ]
42
2017-09-04T22:59:21.000Z
2022-03-18T03:18:30.000Z
"""Vizio SmartCast API base commands.""" from abc import abstractmethod from typing import Any, Dict class CommandBase(object): """Base command to send data to Vizio device.""" def __init__(self, url: str = "") -> None: """Initialize base command to send data to Vizio device.""" self._url = ...
27.561644
94
0.611332
252
2,012
4.662698
0.242063
0.041702
0.042553
0.033191
0.652766
0.652766
0.652766
0.652766
0.57617
0.497872
0
0
0.263917
2,012
72
95
27.944444
0.793383
0.279324
0
0.461538
0
0
0.031907
0.027556
0
0
0
0
0
1
0.358974
false
0
0.051282
0.076923
0.717949
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
00dad23581d239840fa2436877c8654dbfac0ec6
705
py
Python
cc2541/sensor.py
robotice-devices/cc2541-device
6b0b4c0ff88ed32e5332ffe361c3ccb7f621992f
[ "Apache-2.0" ]
1
2018-04-30T16:17:10.000Z
2018-04-30T16:17:10.000Z
cc2541/sensor.py
robotice-devices/cc2541-device
6b0b4c0ff88ed32e5332ffe361c3ccb7f621992f
[ "Apache-2.0" ]
null
null
null
cc2541/sensor.py
robotice-devices/cc2541-device
6b0b4c0ff88ed32e5332ffe361c3ccb7f621992f
[ "Apache-2.0" ]
null
null
null
from cc2541 import CC2541 def get_data(sensor): name = sensor.get('name') mac = sensor.get('mac') data = [] cc2541 = CC2541(mac) METRIC_STR = "%s.{0}.{0}" % name data.append((METRIC_STR.format(mac, "temperature"), cc2541.temperature)) data.append((METRIC_STR.format(mac, "humidity"), c...
29.375
80
0.678014
89
705
5.280899
0.314607
0.134043
0.204255
0.242553
0.357447
0.357447
0
0
0
0
0
0.077703
0.160284
705
23
81
30.652174
0.716216
0.04539
0
0
0
0
0.108955
0
0
0
0
0
0
1
0.066667
false
0
0.066667
0
0.2
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
00e762255828d69e20fbebe7d5c90af59e18f995
245
py
Python
setup.py
damcio/-Bio-Projekt-semestralny
717d6e3334664306cadb3699cd72ea8b3e58dff7
[ "Apache-2.0" ]
null
null
null
setup.py
damcio/-Bio-Projekt-semestralny
717d6e3334664306cadb3699cd72ea8b3e58dff7
[ "Apache-2.0" ]
null
null
null
setup.py
damcio/-Bio-Projekt-semestralny
717d6e3334664306cadb3699cd72ea8b3e58dff7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from setuptools import setup setup(name='bio', version='0.1', description='Bioinformatics project', author='Damian Goworko', setup_requires=['pytest-runner'], tests_require=['pytest'] )
20.416667
43
0.640816
27
245
5.740741
0.888889
0
0
0
0
0
0
0
0
0
0
0.010363
0.212245
245
11
44
22.272727
0.792746
0.081633
0
0
0
0
0.272321
0
0
0
0
0
0
1
0
true
0
0.125
0
0.125
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
da97130109d950371686eb50fef1e29f4f6104a1
3,515
py
Python
smartteddy.basket.computer/web/smartteddydashboard/smartteddydashboard/settings.py
smart-teddy-project-hhs/SmartTeddy
24df02705d50e4cb604973366e0fd961e9c21eaa
[ "MIT" ]
2
2020-10-14T14:47:01.000Z
2020-10-27T15:44:19.000Z
smartteddy.basket.computer/web/smartteddydashboard/smartteddydashboard/settings.py
smart-teddy-project-hhs/SmartTeddy
24df02705d50e4cb604973366e0fd961e9c21eaa
[ "MIT" ]
9
2020-10-24T11:06:26.000Z
2020-10-30T14:52:36.000Z
smartteddy.basket.computer/web/smartteddydashboard/smartteddydashboard/settings.py
smart-teddy-project-hhs/SmartTeddy
24df02705d50e4cb604973366e0fd961e9c21eaa
[ "MIT" ]
null
null
null
from pathlib import Path import environ env = environ.Env( # set casting, default value DEBUG=(bool, False) ) environ.Env.read_env() # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent # SECURITY WARNING: keep the secret key used in production se...
26.832061
91
0.691607
360
3,515
6.613889
0.466667
0.087358
0.057119
0.041999
0.123478
0.123478
0.057959
0.033599
0.033599
0
0
0.005563
0.181792
3,515
130
92
27.038462
0.822323
0.260028
0
0.023256
0
0
0.552927
0.484684
0
0
0
0.007692
0
1
0
false
0.05814
0.023256
0
0.023256
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
1
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
daa0049dd44673c0d9241c40a74acd5c7ad64faf
852
py
Python
src/spaceone/inventory/model/collection_state_model.py
whdalsrnt/inventory
5d1cfb3a9cb72156c48a0118b80e6ed2d67e8028
[ "Apache-2.0" ]
9
2020-06-04T23:01:38.000Z
2021-06-03T03:38:59.000Z
src/spaceone/inventory/model/collection_state_model.py
whdalsrnt/inventory
5d1cfb3a9cb72156c48a0118b80e6ed2d67e8028
[ "Apache-2.0" ]
10
2020-08-20T01:34:30.000Z
2022-03-14T04:59:48.000Z
src/spaceone/inventory/model/collection_state_model.py
whdalsrnt/inventory
5d1cfb3a9cb72156c48a0118b80e6ed2d67e8028
[ "Apache-2.0" ]
9
2020-06-08T22:03:02.000Z
2021-12-06T06:12:30.000Z
from mongoengine import * from spaceone.core.model.mongo_model import MongoModel class CollectionState(MongoModel): collector_id = StringField(max_length=40) job_task_id = StringField(max_length=40) secret_id = StringField(max_length=40) resource_id = StringField(max_length=40) resource_type = Str...
26.625
54
0.611502
88
852
5.579545
0.431818
0.171079
0.244399
0.224033
0.276986
0.130346
0
0
0
0
0
0.023256
0.293427
852
31
55
27.483871
0.792359
0
0
0.148148
0
0
0.170388
0
0
0
0
0
0
1
0
false
0
0.074074
0
0.444444
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
daa069014e4a5175cf7760a0977fdc2fbcc1f987
428
py
Python
OOSqrt.py
sidhu177/pythonprog
a75285e9e4d3cd6f1257b9a79dc39e49c68a695d
[ "MIT" ]
2
2019-05-01T04:32:07.000Z
2019-05-04T02:22:16.000Z
OOSqrt.py
sidhu177/pythonprog
a75285e9e4d3cd6f1257b9a79dc39e49c68a695d
[ "MIT" ]
null
null
null
OOSqrt.py
sidhu177/pythonprog
a75285e9e4d3cd6f1257b9a79dc39e49c68a695d
[ "MIT" ]
null
null
null
""" Created on Sun Jun 10 17:33:07 2018 Taken from Python 3 Object Oriented Programming by Dusty Phillips, Apress """ import math class Point: def move(self, x,y): self.x = x self.y = y def reset(self): self.move(0,0) def calculate_distance(self,other_point): ...
17.12
79
0.565421
63
428
3.777778
0.587302
0.063025
0
0
0
0
0
0
0
0
0
0.058621
0.32243
428
24
80
17.833333
0.762069
0.259346
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.111111
0.111111
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
daa5b81a81023809021279574743b9bfa2a05f4a
552
py
Python
data_analysis_byPro/Day09-01.py
yunjung-lee/class_python_data
67ceab73e67ec63d408894a6ab016a8d25a4e30b
[ "MIT" ]
null
null
null
data_analysis_byPro/Day09-01.py
yunjung-lee/class_python_data
67ceab73e67ec63d408894a6ab016a8d25a4e30b
[ "MIT" ]
null
null
null
data_analysis_byPro/Day09-01.py
yunjung-lee/class_python_data
67ceab73e67ec63d408894a6ab016a8d25a4e30b
[ "MIT" ]
null
null
null
# SQLite 접속하기. import sqlite3 con = sqlite3.connect('c:/temp/userDB') # 데이터베이스 지정(또는 연결) cur = con.cursor() # 연결 통로 생성 (쿼리문을 날릴 통로) # 테이블 만들기 try : sql = "CREATE TABLE userTable(userID CHAR(10), userName CHAR(5), userAge INT)" cur.execute(sql) except : pass sql = "INSERT INTO userTable VALUES('GGG','에이',...
24
82
0.661232
87
552
4.195402
0.609195
0.109589
0.142466
0.180822
0.30137
0.224658
0.224658
0.224658
0
0
0
0.023758
0.161232
552
23
83
24
0.764579
0.130435
0
0.222222
0
0
0.467368
0
0
0
0
0
0
1
0
false
0.055556
0.055556
0
0.055556
0.055556
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
1
0
0
0
0
0
2
dac167f463c43ece1cb614320325aa7993a66d62
119
py
Python
sample/ch6/ma-janome.py
wagase/scraping
81e886abe0f8a88830507c978f10f92faf4f19c6
[ "MIT" ]
null
null
null
sample/ch6/ma-janome.py
wagase/scraping
81e886abe0f8a88830507c978f10f92faf4f19c6
[ "MIT" ]
null
null
null
sample/ch6/ma-janome.py
wagase/scraping
81e886abe0f8a88830507c978f10f92faf4f19c6
[ "MIT" ]
2
2017-11-21T07:30:01.000Z
2018-10-18T01:45:58.000Z
from janome.tokenizer import Tokenizer t = Tokenizer() malist = t.tokenize("庭には二羽鶏がいる。") for n in malist: print(n)
19.833333
38
0.722689
17
119
5.058824
0.705882
0
0
0
0
0
0
0
0
0
0
0
0.159664
119
5
39
23.8
0.86
0
0
0
0
0
0.084034
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.2
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
dac19daba24bb178c42056ee3077cf23142a66a2
1,001
py
Python
website/CMS/models.py
bubai666sen/Visitor-Manager
9ecfa087f332d368e2a52dd812c272d30c3a55df
[ "MIT" ]
null
null
null
website/CMS/models.py
bubai666sen/Visitor-Manager
9ecfa087f332d368e2a52dd812c272d30c3a55df
[ "MIT" ]
null
null
null
website/CMS/models.py
bubai666sen/Visitor-Manager
9ecfa087f332d368e2a52dd812c272d30c3a55df
[ "MIT" ]
1
2020-09-14T14:37:02.000Z
2020-09-14T14:37:02.000Z
from django.db import models # Create your models here. class Page(models.Model): STATUS_CHOICES = ( (1, 'Active'), (2, 'Inactive'), ) PAGE_CHOICES = ( (1, 'Home'), (2, 'About Us'), ) page = models.PositiveSmallIntegerField(choices=PAGE_CHOICES,unique=True) tit...
41.708333
96
0.68032
124
1,001
5.322581
0.395161
0.084848
0.137879
0.180303
0.487879
0.487879
0.487879
0.487879
0.487879
0.354545
0
0.020859
0.185814
1,001
24
97
41.708333
0.788957
0.048951
0
0
0
0
0.070526
0
0
0
0
0
0
1
0.05
false
0
0.05
0.05
0.7
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
dac7b74f5cd46d3336092c19170b2bedb8b81180
697
py
Python
scheme/tests/16.py
sfailsthy/CS-61A
8c3d6e2ed87c42ba6ceaf9b7853ef4ad3af099fc
[ "MIT" ]
null
null
null
scheme/tests/16.py
sfailsthy/CS-61A
8c3d6e2ed87c42ba6ceaf9b7853ef4ad3af099fc
[ "MIT" ]
null
null
null
scheme/tests/16.py
sfailsthy/CS-61A
8c3d6e2ed87c42ba6ceaf9b7853ef4ad3af099fc
[ "MIT" ]
null
null
null
test = { 'name': 'Problem 16', 'points': 1, 'suites': [ { 'cases': [ { 'code': r""" scm> (define y 1) 7f8ce7b9b26d2b5922718b99265fafdc # locked scm> (define f (mu (x) (+ x y))) 17c5c9131eea78a6dfb3175a8e97e160 # locked ...
21.121212
52
0.428981
52
697
5.75
0.634615
0.090301
0.100334
0
0
0
0
0
0
0
0
0.219144
0.430416
697
32
53
21.78125
0.534005
0
0
0.125
0
0
0.691535
0.183644
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
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
2
dacd7494d542600a7d08536df1419f33f5d65e44
3,790
py
Python
hawkweed/classes/future.py
hellerve/hawkweed
0cdb378f7dac5ab76ad53d6c1917f0ac5687793c
[ "MIT" ]
20
2016-06-13T19:24:20.000Z
2022-01-26T14:08:11.000Z
hawkweed/classes/future.py
hellerve/hawkweed
0cdb378f7dac5ab76ad53d6c1917f0ac5687793c
[ "MIT" ]
null
null
null
hawkweed/classes/future.py
hellerve/hawkweed
0cdb378f7dac5ab76ad53d6c1917f0ac5687793c
[ "MIT" ]
null
null
null
"""A Future class""" from hawkweed.functional.primitives import reduce from hawkweed.classes.repr import Repr class Future(Repr): """A Future class""" def __init__(self, value): """ Takes a binary function (taking success and error, respectively) and builds a Future from it. Co...
28.712121
81
0.551451
440
3,790
4.731818
0.279545
0.043708
0.034582
0.051873
0.183477
0.133525
0.133525
0.120077
0.120077
0.075889
0
0.002951
0.374142
3,790
131
82
28.931298
0.874789
0.470712
0
0.175
0
0
0.007008
0
0
0
0
0
0
1
0.275
false
0
0.05
0.025
0.65
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
dadc730a6ccd89a6a5f416f644953be399c82f56
3,742
py
Python
checkio/Scientific Expedition/Morse Clock/test_morse_clock.py
KenMercusLai/checkio
c7702221e1bc0b0b30425859ffa6c09722949d65
[ "MIT" ]
39
2015-02-09T13:24:12.000Z
2019-05-16T17:51:19.000Z
checkio/Scientific Expedition/Morse Clock/test_morse_clock.py
KenMercusLai/checkio
c7702221e1bc0b0b30425859ffa6c09722949d65
[ "MIT" ]
1
2019-10-21T16:18:14.000Z
2019-10-21T16:18:14.000Z
checkio/Scientific Expedition/Morse Clock/test_morse_clock.py
KenMercusLai/checkio
c7702221e1bc0b0b30425859ffa6c09722949d65
[ "MIT" ]
22
2015-01-30T18:00:05.000Z
2021-05-22T02:57:23.000Z
import unittest from morse_clock import checkio, to_binary def test_to_binary(): assert to_binary('0') == '0000' assert to_binary('1') == '0001' assert to_binary('2') == '0010' assert to_binary('3') == '0011' assert to_binary('4') == '0100' assert to_binary('5') == '0101' assert to_binary...
30.177419
65
0.315874
279
3,742
4.114695
0.326165
0.15331
0.243902
0.026132
0.121951
0.08885
0.055749
0.055749
0
0
0
0.122633
0.435596
3,742
123
66
30.422764
0.420928
0.004276
0
0.035398
0
0
0.296992
0
0
0
0
0
0.19469
1
0.026549
false
0
0.017699
0
0.061947
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
dadca579fffe4770b3caed7d35dfc370aafb3178
396
py
Python
Ejercicios/Diccionarios y sus metodos.py
dannieldev/Fundamentos-de-Python
63bf92c7256b373b631cae3ae9a80a3a5071f61d
[ "MIT" ]
null
null
null
Ejercicios/Diccionarios y sus metodos.py
dannieldev/Fundamentos-de-Python
63bf92c7256b373b631cae3ae9a80a3a5071f61d
[ "MIT" ]
null
null
null
Ejercicios/Diccionarios y sus metodos.py
dannieldev/Fundamentos-de-Python
63bf92c7256b373b631cae3ae9a80a3a5071f61d
[ "MIT" ]
null
null
null
dicionario = { "redes_sociales":['Twitter','Facebook','LinkedIn'], 3:"Tres", "Hola":"Mundo", "eli":"elininame" } print (dicionario) print (dicionario.pop(3)) del(dicionario["eli"]) print (dicionario) dicionario.clear() print (dicionario) dicionario["clave_nueva"] = "Valor" print...
13.2
56
0.616162
38
396
6.368421
0.552632
0.309917
0.206612
0
0
0
0
0
0
0
0
0.012862
0.214646
396
29
57
13.655172
0.765273
0
0
0.25
0
0
0.223141
0
0
0
0
0
0
1
0
false
0
0
0
0
0.375
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
dadda6ac7f7d0efd4aba4ed0d7336697201926a7
588
py
Python
EX.py/EX0010.py
Allen-Lee-Junior/ex-em-python
db58c61c8f5319bf6c5393adac176b6d0d44c878
[ "MIT" ]
1
2021-05-02T21:09:16.000Z
2021-05-02T21:09:16.000Z
EX.py/EX0010.py
Allen-Lee-Junior/ex-em-python
db58c61c8f5319bf6c5393adac176b6d0d44c878
[ "MIT" ]
null
null
null
EX.py/EX0010.py
Allen-Lee-Junior/ex-em-python
db58c61c8f5319bf6c5393adac176b6d0d44c878
[ "MIT" ]
null
null
null
real = float(input('Quanto dinheiro voce tem na carteira?:')) Dolar = real / 5.34 Renminbi = real / 0.81 Eurofrançes = real / 6.35 EuroPortugal = real / 6.35 Libras = real / 7.13 peso = real / 15.17 print('com {} RS$ voce compra US${:.2f}'.format(real, Dolar, )) print('com {} RS$ voce compra 人民币{:.2f}'.format(real, Ren...
45.230769
68
0.641156
92
588
4.130435
0.380435
0.126316
0.157895
0.221053
0.384211
0.173684
0.173684
0.173684
0.173684
0
0
0.049603
0.142857
588
13
69
45.230769
0.698413
0
0
0
0
0
0.37691
0
0
0
0
0
0
1
0
false
0
0
0
0
0.461538
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
1
0
2
daec952747e9b07bba4e0805a13a679196af9d3a
259
py
Python
decharges/parametre/tests/test_models.py
Brndan/decharges-sudeducation
6807b619f48b3c0b1dda4cd56d0a1cf46695e1f3
[ "MIT" ]
null
null
null
decharges/parametre/tests/test_models.py
Brndan/decharges-sudeducation
6807b619f48b3c0b1dda4cd56d0a1cf46695e1f3
[ "MIT" ]
null
null
null
decharges/parametre/tests/test_models.py
Brndan/decharges-sudeducation
6807b619f48b3c0b1dda4cd56d0a1cf46695e1f3
[ "MIT" ]
null
null
null
import pytest from decharges.parametre.models import ParametresDApplication pytestmark = pytest.mark.django_db def test_instanciate_parameters(): params = ParametresDApplication.objects.create() assert f"{params}" == "Paramètres de l'application"
23.545455
61
0.791506
28
259
7.214286
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.123552
259
10
62
25.9
0.889868
0
0
0
0
0
0.135135
0
0
0
0
0
0.166667
1
0.166667
false
0
0.333333
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
1
0
0
0
0
2
9710bab99e8e211bc8d0555a6afeaf0335b40f8d
1,338
py
Python
LineByLineEqualEvaluator.py
revygabor/HWTester
5a0c59ebe686de1f34638f6361fcd27b56e529e2
[ "MIT" ]
null
null
null
LineByLineEqualEvaluator.py
revygabor/HWTester
5a0c59ebe686de1f34638f6361fcd27b56e529e2
[ "MIT" ]
null
null
null
LineByLineEqualEvaluator.py
revygabor/HWTester
5a0c59ebe686de1f34638f6361fcd27b56e529e2
[ "MIT" ]
2
2019-11-11T12:44:17.000Z
2020-11-20T11:08:53.000Z
import Evaluator class LineByLineEqualEvaluator(Evaluator.Evaluator): def __init__(self, details): pass def evaluate(self, input, target_output, output, log): if output != target_output: output_lines = output.split("\n") target_output_lines = target_output.split("\n") ...
49.555556
199
0.57997
167
1,338
4.467066
0.275449
0.22118
0.182306
0.107239
0.375335
0.375335
0.375335
0.375335
0.321716
0.182306
0
0.007384
0.29148
1,338
26
200
51.461538
0.779536
0.076981
0
0.095238
0
0.095238
0.099026
0
0
0
0
0
0
1
0.095238
false
0.047619
0.047619
0
0.380952
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
971692b57d5c0d515f987997338e4a2b68b88c6b
6,546
py
Python
iss/south_migrations/0002_auto__del_countrycode.py
rerb/iss
134816ab0700ac04a5a55c44c4cb8f98fc6a6f9c
[ "MIT" ]
null
null
null
iss/south_migrations/0002_auto__del_countrycode.py
rerb/iss
134816ab0700ac04a5a55c44c4cb8f98fc6a6f9c
[ "MIT" ]
18
2015-11-12T11:23:32.000Z
2021-03-25T21:27:49.000Z
iss/south_migrations/0002_auto__del_countrycode.py
AASHE/iss
134816ab0700ac04a5a55c44c4cb8f98fc6a6f9c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Deleting model 'CountryCode' db.delete_table('iss_countrycode') d...
73.550562
138
0.566606
678
6,546
5.355457
0.179941
0.116772
0.200496
0.286422
0.70862
0.686037
0.644726
0.605343
0.557698
0.291655
0
0.010917
0.188359
6,546
89
139
73.550562
0.672501
0.011763
0
0.038462
0
0
0.549644
0.31163
0
0
0
0
0
1
0.025641
false
0
0.051282
0
0.115385
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
971b056ebff8c75215e9b23c17b715ba4a390358
1,077
py
Python
introduction_frechette/models.py
Charlotte-exp/Multichannel-Games
83ebb452454ed5d1a8535b59dac49099a9509be4
[ "MIT" ]
null
null
null
introduction_frechette/models.py
Charlotte-exp/Multichannel-Games
83ebb452454ed5d1a8535b59dac49099a9509be4
[ "MIT" ]
1
2021-01-20T11:48:18.000Z
2021-01-20T11:48:18.000Z
introduction_frechette/models.py
Charlotte-exp/Multichannel-Games
83ebb452454ed5d1a8535b59dac49099a9509be4
[ "MIT" ]
2
2021-01-21T15:29:19.000Z
2022-03-29T09:26:36.000Z
from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range ) import itertools author = 'Charlotte' doc = """ The instructions and consent for the control treatment. I decided to have them in a separate app so that there can be ...
22.4375
117
0.679666
140
1,077
5.157143
0.735714
0.024931
0.033241
0
0
0
0
0
0
0
0
0.024691
0.247911
1,077
47
118
22.914894
0.865432
0
0
0.1
0
0.033333
0.386243
0.02328
0
0
0
0
0
1
0
false
0.1
0.066667
0
0.566667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
974a501a06ed8556347988fc6c5c4fb487de88ab
1,192
py
Python
geartracker/admin.py
pigmonkey/django-geartracker
9255435869384201d47355a45a2b40f49674cd6e
[ "BSD-3-Clause" ]
1
2017-03-27T22:07:35.000Z
2017-03-27T22:07:35.000Z
geartracker/admin.py
pigmonkey/django-geartracker
9255435869384201d47355a45a2b40f49674cd6e
[ "BSD-3-Clause" ]
null
null
null
geartracker/admin.py
pigmonkey/django-geartracker
9255435869384201d47355a45a2b40f49674cd6e
[ "BSD-3-Clause" ]
1
2021-05-29T09:26:06.000Z
2021-05-29T09:26:06.000Z
from django.contrib import admin from geartracker.models import * class ItemAdmin(admin.ModelAdmin): prepopulated_fields = {"slug": ("make", "model", "size")} list_display = ('__unicode__', 'type', 'metric_weight', 'acquired') list_filter = ('archived', 'category', 'type', 'make') search_fields = ('ma...
30.564103
76
0.684564
121
1,192
6.512397
0.404959
0.076142
0.137056
0.167513
0.230964
0.18401
0.13198
0.13198
0
0
0
0.000996
0.157718
1,192
38
77
31.368421
0.783865
0
0
0.107143
0
0
0.188758
0
0
0
0
0
0
1
0
false
0
0.071429
0
0.821429
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
9750c310b4c5bbe755929c34d47d50d3e6a9757b
11,663
py
Python
comdirect_api/comdirect_client.py
maxpautsch/comdirect-api-simple
1e1d961eb7e1603d10d70ac95585e3f024f0a39b
[ "MIT" ]
1
2021-06-14T21:06:32.000Z
2021-06-14T21:06:32.000Z
comdirect_api/comdirect_client.py
maxpautsch/comdirect-api-simple
1e1d961eb7e1603d10d70ac95585e3f024f0a39b
[ "MIT" ]
null
null
null
comdirect_api/comdirect_client.py
maxpautsch/comdirect-api-simple
1e1d961eb7e1603d10d70ac95585e3f024f0a39b
[ "MIT" ]
null
null
null
import requests import pickle from comdirect_api.auth.auth_service import AuthService from comdirect_api.service.account_service import AccountService from comdirect_api.service.depot_service import DepotService from comdirect_api.service.document_service import DocumentService from comdirect_api.service.report_servic...
44.857692
186
0.678642
1,450
11,663
5.272414
0.202069
0.023545
0.039241
0.047613
0.283453
0.230347
0.168607
0.135121
0.083715
0.065795
0
0.008355
0.24059
11,663
259
187
45.030888
0.854804
0.444911
0
0
0
0
0.030778
0
0
0
0
0
0
1
0.280488
false
0
0.170732
0.012195
0.682927
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
97637785ddb252f95f72fa92106330d88772874f
194
py
Python
farms2face/payments/apps.py
dev1farms2face/f2f
54e58187a68574bf2bd0dfb7e58a2b416336106a
[ "MIT" ]
null
null
null
farms2face/payments/apps.py
dev1farms2face/f2f
54e58187a68574bf2bd0dfb7e58a2b416336106a
[ "MIT" ]
null
null
null
farms2face/payments/apps.py
dev1farms2face/f2f
54e58187a68574bf2bd0dfb7e58a2b416336106a
[ "MIT" ]
2
2018-06-19T12:12:08.000Z
2018-06-25T18:45:36.000Z
from __future__ import unicode_literals from django.apps import AppConfig class PaymentsConfig(AppConfig): name = 'payments' def ready(self): import payments.signals # noqa
17.636364
39
0.731959
22
194
6.227273
0.772727
0
0
0
0
0
0
0
0
0
0
0
0.206186
194
10
40
19.4
0.88961
0.020619
0
0
0
0
0.042553
0
0
0
0
0
0
1
0.166667
false
0
0.5
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
97692353633b6e4c966993e9fab4557a2bccecd6
155
py
Python
tests/format-keys/examples/test.py
looking-for-a-job/format-keys.py
52e32024966d2d5ce53e649191618917783e44c3
[ "Unlicense" ]
null
null
null
tests/format-keys/examples/test.py
looking-for-a-job/format-keys.py
52e32024966d2d5ce53e649191618917783e44c3
[ "Unlicense" ]
null
null
null
tests/format-keys/examples/test.py
looking-for-a-job/format-keys.py
52e32024966d2d5ce53e649191618917783e44c3
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python import format_keys string = "https://api.travis-ci.org/{fullname}.svg?branch={branch}" keys = format_keys.keys(string) print(keys)
19.375
67
0.735484
24
155
4.666667
0.708333
0.178571
0
0
0
0
0
0
0
0
0
0
0.083871
155
7
68
22.142857
0.788732
0.129032
0
0
0
0
0.41791
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.25
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
978f155097f0adc32a50b2803eec778ad3c9d8fe
317
py
Python
heyyz/core.py
CarlHey/heyyz
0fe0c412be4b0abb787bc36a89b6443a37e17d38
[ "MIT" ]
null
null
null
heyyz/core.py
CarlHey/heyyz
0fe0c412be4b0abb787bc36a89b6443a37e17d38
[ "MIT" ]
null
null
null
heyyz/core.py
CarlHey/heyyz
0fe0c412be4b0abb787bc36a89b6443a37e17d38
[ "MIT" ]
null
null
null
import heyy from .dbf_utils import ( dbf2objs, try_dbf2objs, str2objs, read_fields, compare_fields, split_multiline, ) pt = heyy.pt dbf2objs = dbf2objs try_dbf2objs = try_dbf2objs str2objs = str2objs read_fields = read_fields compare_fields = compare_fields split_multiline = split_multiline
17.611111
33
0.760252
39
317
5.846154
0.358974
0.144737
0.25
0.236842
0.289474
0
0
0
0
0
0
0.034884
0.18612
317
17
34
18.647059
0.848837
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
97a2dd23b8e0a1f1e4b1bd8559fef3bf530dc502
1,012
py
Python
hsms/meta/make_sized_bytes.py
Quexington/hsms
d472877a9c5767f7850dc502e449af18f3984067
[ "Apache-2.0" ]
2
2022-03-27T01:57:25.000Z
2022-03-27T21:06:26.000Z
hsms/meta/make_sized_bytes.py
Quexington/hsms
d472877a9c5767f7850dc502e449af18f3984067
[ "Apache-2.0" ]
null
null
null
hsms/meta/make_sized_bytes.py
Quexington/hsms
d472877a9c5767f7850dc502e449af18f3984067
[ "Apache-2.0" ]
1
2022-03-25T19:39:51.000Z
2022-03-25T19:39:51.000Z
from typing import Any, BinaryIO from .bin_methods import bin_methods from .hexbytes import hexbytes def make_sized_bytes(size): """ Create a streamable type that subclasses "hexbytes" but requires instances to be a certain, fixed size. """ name = "bytes%d" % size def __new__(self, v): ...
24.095238
87
0.610672
132
1,012
4.280303
0.431818
0.053097
0.028319
0
0
0
0
0
0
0
0
0
0.271739
1,012
41
88
24.682927
0.766621
0.101779
0
0
0
0
0.040495
0
0
0
0
0
0.038462
1
0.230769
false
0
0.115385
0.076923
0.538462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
97b3ae8516542123c88e8fe52d29f91099feb6b7
758
py
Python
test/graph_test.py
luisalves05/dsa-python
ebbfd8105e49ccc905edf786e155b58b289c29b7
[ "MIT" ]
1
2017-08-26T00:11:19.000Z
2017-08-26T00:11:19.000Z
test/graph_test.py
luisalves05/dsa-python
ebbfd8105e49ccc905edf786e155b58b289c29b7
[ "MIT" ]
null
null
null
test/graph_test.py
luisalves05/dsa-python
ebbfd8105e49ccc905edf786e155b58b289c29b7
[ "MIT" ]
null
null
null
import sys sys.path.append('..') import unittest from graphs.Graph import Graph class TestGraph(unittest.TestCase): def setUp(self): self.G = Graph(5) self.G.add_edge(1, 2) self.G.add_edge(1, 3) self.G.add_edge(1, 4) self.G.add_edge(2, 4) self.G.add_edge(...
22.969697
48
0.580475
111
758
3.801802
0.297297
0.14218
0.270142
0.28436
0.424171
0
0
0
0
0
0
0.041367
0.266491
758
32
49
23.6875
0.717626
0
0
0
0
0
0.013193
0
0
0
0
0
0.26087
1
0.173913
false
0
0.130435
0
0.347826
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
97b7da0a639205760469233e82f97ec003593575
188
py
Python
python/class/foo.py
trammell/test
ccac5e1dac947032e64d813e53cb961417a58d05
[ "Artistic-2.0" ]
null
null
null
python/class/foo.py
trammell/test
ccac5e1dac947032e64d813e53cb961417a58d05
[ "Artistic-2.0" ]
null
null
null
python/class/foo.py
trammell/test
ccac5e1dac947032e64d813e53cb961417a58d05
[ "Artistic-2.0" ]
null
null
null
#!/usr/bin/env python2.4 """ """ class Foo(object): bar = {} bar['x'] = "apple" bar['y'] = "banana" def __call__(self): print self.bar['x'] f = Foo() f()
8.545455
27
0.457447
25
188
3.28
0.72
0.097561
0
0
0
0
0
0
0
0
0
0.015267
0.303191
188
21
28
8.952381
0.610687
0.12234
0
0
0
0
0.089744
0
0
0
0
0
0
0
null
null
0
0
null
null
0.125
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
1
0
0
0
0
0
0
0
0
2
97b9a7626e6a849024a1c7ea11cffc071c38508a
1,283
py
Python
django/localConflict/breaking_news/views.py
martinez-zea/localconflict
9b47c92b93315efe6a0a485a645d080f3ecf7e9a
[ "MIT" ]
1
2015-05-02T11:29:58.000Z
2015-05-02T11:29:58.000Z
django/localConflict/breaking_news/views.py
martinez-zea/localconflict
9b47c92b93315efe6a0a485a645d080f3ecf7e9a
[ "MIT" ]
null
null
null
django/localConflict/breaking_news/views.py
martinez-zea/localconflict
9b47c92b93315efe6a0a485a645d080f3ecf7e9a
[ "MIT" ]
null
null
null
from breaking_news.models import * from django.shortcuts import render_to_response, get_object_or_404 from django.http import HttpResponseRedirect, HttpResponse from django.template import RequestContext def index(request): n_image = new.objects.filter(image__startswith='img_up').order_by('-when')[:3] n_t...
40.09375
111
0.610288
141
1,283
5.269504
0.361702
0.064603
0.086137
0.088829
0.325707
0.137281
0
0
0
0
0
0.009793
0.28371
1,283
31
112
41.387097
0.798694
0
0
0
0
0
0.103744
0.055382
0
0
0
0
0
1
0.227273
false
0
0.181818
0.090909
0.636364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
97bf69ab5788120ed201d74372b50ab39a761c61
1,540
py
Python
test/prediction_variations.py
dsosnoski/irvideo-classification
894e0bf00039fb35e870e682eb62f68e7ec00334
[ "Apache-2.0" ]
null
null
null
test/prediction_variations.py
dsosnoski/irvideo-classification
894e0bf00039fb35e870e682eb62f68e7ec00334
[ "Apache-2.0" ]
null
null
null
test/prediction_variations.py
dsosnoski/irvideo-classification
894e0bf00039fb35e870e682eb62f68e7ec00334
[ "Apache-2.0" ]
null
null
null
import copy import numpy as np class PredictionVariation: def __init__(self, description, evaluatefn): self.description = description self.evaluatefn = evaluatefn self.accumulated_results = [] def evaluate(self, predicts, certainties, track): self.accumulated_results.append(...
36.666667
149
0.72987
190
1,540
5.736842
0.247368
0.014679
0.109174
0.115596
0.363303
0.297248
0.270642
0.243119
0.214679
0.214679
0
0.005368
0.153247
1,540
41
150
37.560976
0.830521
0
0
0.071429
0
0
0.156595
0
0
0
0
0
0
1
0.214286
false
0
0.071429
0.107143
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
1
0
0
0
1
0
0
0
2
8adab2f8c09d683e1d8ed9a89a916095003820ce
16,365
py
Python
projects/01_fyyur/starter_code/app/main/views.py
oyasr/FSND
3353878e1011a35f69bf028a60c8aee07b339028
[ "MIT" ]
null
null
null
projects/01_fyyur/starter_code/app/main/views.py
oyasr/FSND
3353878e1011a35f69bf028a60c8aee07b339028
[ "MIT" ]
null
null
null
projects/01_fyyur/starter_code/app/main/views.py
oyasr/FSND
3353878e1011a35f69bf028a60c8aee07b339028
[ "MIT" ]
1
2020-07-01T18:56:47.000Z
2020-07-01T18:56:47.000Z
import sys from datetime import datetime from . import main from flask import render_template, request, redirect, url_for, flash from ..models import db, Artist, Venue, Show from .forms import ShowForm, VenueForm, ArtistForm, DeleteArtist, DeleteVenue @main.route('/') def index(): return render_template('pages/ho...
30.588785
87
0.600672
2,000
16,365
4.77
0.073
0.039623
0.032285
0.037736
0.779455
0.712369
0.68543
0.654193
0.638574
0.625157
0
0
0.276444
16,365
534
88
30.646067
0.805675
0.110174
0
0.637119
0
0
0.148123
0.021564
0
0
0
0
0
1
0.049862
false
0
0.016621
0.00277
0.152355
0.038781
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
8ae0023941ffec7102bd0bfe88a5667fede5bdaa
381
py
Python
src/Week1Bonus_PalindromePermutation_test.py
ruarfff/leetcode-jan-2021
9436c0d6b82e83c0b21a498c998fa9e41d443d3c
[ "MIT" ]
null
null
null
src/Week1Bonus_PalindromePermutation_test.py
ruarfff/leetcode-jan-2021
9436c0d6b82e83c0b21a498c998fa9e41d443d3c
[ "MIT" ]
null
null
null
src/Week1Bonus_PalindromePermutation_test.py
ruarfff/leetcode-jan-2021
9436c0d6b82e83c0b21a498c998fa9e41d443d3c
[ "MIT" ]
null
null
null
import pytest from .Week1Bonus_PalindromePermutation import Solution s = Solution() @pytest.mark.parametrize("test_input", ["code", "abc"]) def test_cannot_permute(test_input): assert not s.canPermutePalindrome(test_input) @pytest.mark.parametrize("test_input", ["aab", "carerac", "a", "aa"]) def test_can_permu...
27.214286
69
0.76378
48
381
5.833333
0.5
0.192857
0.15
0.178571
0.214286
0
0
0
0
0
0
0.002915
0.099738
381
14
70
27.214286
0.813411
0
0
0
0
0
0.104712
0
0
0
0
0
0.222222
1
0.222222
false
0
0.222222
0
0.444444
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
8ae5a7278af56a6b4aac0abbf66e4aa2f5a0a27f
695
py
Python
audio/views.py
cyaiox/dreamsgen
07546208c3e03b93987c1ad44d40eef6a12eeb4a
[ "MIT" ]
null
null
null
audio/views.py
cyaiox/dreamsgen
07546208c3e03b93987c1ad44d40eef6a12eeb4a
[ "MIT" ]
null
null
null
audio/views.py
cyaiox/dreamsgen
07546208c3e03b93987c1ad44d40eef6a12eeb4a
[ "MIT" ]
null
null
null
from rest_framework import viewsets from rest_framework.permissions import IsAuthenticated from .models import Group, Audio from .serializers import GroupSerializer, AudioSerializer class GroupViewSet(viewsets.ModelViewSet): """ API endpoint that allows group to be created, viewed, edited or deleted. """ ...
28.958333
76
0.752518
73
695
7.082192
0.465753
0.030948
0.065764
0.119923
0.437137
0.437137
0.27853
0.27853
0.27853
0.27853
0
0
0.174101
695
24
77
28.958333
0.900697
0.208633
0
0.166667
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
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
0
0
0
0
0
0
1
0
1
0
0
2
8aefcea7903ab0d7679cc65bbb4aa6e24149cff4
1,198
py
Python
src/cltl_service/backend/schema.py
leolani/cltl-backend
4ecc6227f9d48e40b9f59e6d78e0fcee9cdadbd4
[ "MIT" ]
null
null
null
src/cltl_service/backend/schema.py
leolani/cltl-backend
4ecc6227f9d48e40b9f59e6d78e0fcee9cdadbd4
[ "MIT" ]
null
null
null
src/cltl_service/backend/schema.py
leolani/cltl-backend
4ecc6227f9d48e40b9f59e6d78e0fcee9cdadbd4
[ "MIT" ]
null
null
null
from dataclasses import dataclass from typing import List from emissor.representation.scenario import Modality from cltl.backend.api.storage import AudioParameters @dataclass class SignalEvent: type: str signal_id: str timestamp: float modality: Modality files: List[str] @dataclass class Signa...
22.603774
101
0.736227
136
1,198
6.345588
0.308824
0.06489
0.050985
0.0927
0.349942
0.320973
0.320973
0.320973
0.273465
0
0
0
0.176127
1,198
52
102
23.038462
0.874367
0
0
0.314286
0
0
0
0
0
0
0
0
0
1
0.085714
false
0.057143
0.114286
0.085714
0.685714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
8aeff2c035fb0fcac00ccc78de1397d21495df0b
458
py
Python
tests/test_decorators.py
adamchainz/django-GNU-Terry-Pratchett
3292af0d93c0e97515fce3ca513ec7eda1ba7c20
[ "BSD-3-Clause" ]
26
2015-03-19T23:13:35.000Z
2020-11-02T20:16:34.000Z
tests/test_decorators.py
adamchainz/django-GNU-Terry-Pratchett
3292af0d93c0e97515fce3ca513ec7eda1ba7c20
[ "BSD-3-Clause" ]
4
2015-03-20T12:02:23.000Z
2021-03-12T15:03:35.000Z
tests/test_decorators.py
adamchainz/django-GNU-Terry-Pratchett
3292af0d93c0e97515fce3ca513ec7eda1ba7c20
[ "BSD-3-Clause" ]
9
2015-03-20T11:43:14.000Z
2021-04-15T14:16:30.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.http import HttpResponse from django.test import RequestFactory from nose.tools import eq_ from gnu_terry_pratchett.decorators import clacks_overhead @clacks_overhead def view(request): return HttpResponse("Death can't have him") def test_view_decorat...
20.818182
61
0.737991
60
458
5.5
0.6
0.127273
0.10303
0
0
0
0
0
0
0
0
0.002558
0.146288
458
21
62
21.809524
0.841432
0.091703
0
0
0
0
0.138015
0
0
0
0
0
0
1
0.181818
false
0
0.363636
0.090909
0.636364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
8afe0fcadfd57737f0b7b74da719af5b3472dcc4
559
py
Python
cracking_the_coding_interview/chapter_09/staircase.py
yasserglez/programming-problems
08cef1186b182430b231ed9772d8f92ec1d2365b
[ "MIT" ]
2
2017-02-17T01:40:27.000Z
2018-04-22T12:47:28.000Z
cracking_the_coding_interview/chapter_09/staircase.py
yasserglez/programming-problems
08cef1186b182430b231ed9772d8f92ec1d2365b
[ "MIT" ]
null
null
null
cracking_the_coding_interview/chapter_09/staircase.py
yasserglez/programming-problems
08cef1186b182430b231ed9772d8f92ec1d2365b
[ "MIT" ]
1
2016-10-14T06:00:42.000Z
2016-10-14T06:00:42.000Z
# Interview Question 9.1 import sys def count_ways(steps_left, memory=None): if memory is None: memory = [None] * steps_left if steps_left == 0: return 1 else: ways = 0 for k in {1, 2, 3}: if steps_left - k >= 0: if memory[steps_left - k] is No...
22.36
79
0.538462
77
559
3.662338
0.38961
0.255319
0.177305
0.170213
0
0
0
0
0
0
0
0.025
0.355993
559
24
80
23.291667
0.758333
0.039356
0
0
0
0
0.014953
0
0
0
0
0
0
1
0.058824
false
0
0.058824
0
0.235294
0.058824
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
c117c420a19eba188bad17244f5520e65d8c56cf
36,043
py
Python
pysnmp-with-texts/RADLAN-OSPF-LSDB-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/RADLAN-OSPF-LSDB-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/RADLAN-OSPF-LSDB-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module RADLAN-OSPF-LSDB-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/RADLAN-OSPF-LSDB-MIB # Produced by pysmi-0.3.4 at Wed May 1 14:47:47 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (defau...
137.045627
3,549
0.804456
4,155
36,043
6.977617
0.088568
0.071192
0.124586
0.009658
0.584127
0.470785
0.443295
0.428498
0.356271
0.346268
0
0.046077
0.088977
36,043
262
3,550
137.568702
0.836856
0.009267
0
0
0
0.082677
0.31944
0.013361
0
0
0
0
0
1
0
false
0
0.035433
0
0.035433
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
c12002e0786bb7c169f91ef54cbbd04a2ac00701
270
py
Python
src/model/__init__.py
521xueweihan/fpage
2b9280f8e8008ddf719514a200e5a246aaf9f6b6
[ "WTFPL" ]
null
null
null
src/model/__init__.py
521xueweihan/fpage
2b9280f8e8008ddf719514a200e5a246aaf9f6b6
[ "WTFPL" ]
null
null
null
src/model/__init__.py
521xueweihan/fpage
2b9280f8e8008ddf719514a200e5a246aaf9f6b6
[ "WTFPL" ]
1
2020-09-14T07:09:34.000Z
2020-09-14T07:09:34.000Z
# coding:utf-8 import config from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from sqlalchemy.ext.declarative import declarative_base db = create_engine(config.DATABASE_URI) BaseModel = declarative_base() DBSession = sessionmaker(bind=db)
24.545455
55
0.833333
36
270
6.138889
0.583333
0.190045
0
0
0
0
0
0
0
0
0
0.004115
0.1
270
10
56
27
0.901235
0.044444
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0.571429
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
1
0
0
0
0
2
c12df5cf9c1dd23fc43685cded3dd4ab1570b5c9
187
py
Python
csvjson/__init__.py
gecBurton/csv-json
27cdf1cddcd6afa9c0d13baacdef13d89a002122
[ "MIT" ]
null
null
null
csvjson/__init__.py
gecBurton/csv-json
27cdf1cddcd6afa9c0d13baacdef13d89a002122
[ "MIT" ]
4
2021-01-31T11:15:12.000Z
2021-01-31T11:19:56.000Z
csvjson/__init__.py
gecBurton/csvjson
27cdf1cddcd6afa9c0d13baacdef13d89a002122
[ "MIT" ]
null
null
null
"""Top-level package for csvjson.""" __author__ = """George EC Burton""" __email__ = "g.e.c.burton@gmail.com" __version__ = "0.1.0" __all__ = ["load"] from csvjson.csvjson import load
18.7
36
0.684492
27
187
4.148148
0.814815
0
0
0
0
0
0
0
0
0
0
0.018519
0.13369
187
9
37
20.777778
0.67284
0.160428
0
0
0
0
0.311258
0.145695
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
c141644b6be3ea3506ad7f3660016ddef39fc413
132
py
Python
scripts/user.py
GabrielTavernini/TelegramMap
96879d037a3e65b555a8f13f4f468645a02cf1f2
[ "MIT" ]
3
2021-02-19T21:43:49.000Z
2022-03-30T07:50:06.000Z
scripts/user.py
GabrielTavernini/TelegramMap
96879d037a3e65b555a8f13f4f468645a02cf1f2
[ "MIT" ]
null
null
null
scripts/user.py
GabrielTavernini/TelegramMap
96879d037a3e65b555a8f13f4f468645a02cf1f2
[ "MIT" ]
2
2021-02-20T16:50:48.000Z
2022-01-25T15:15:07.000Z
class User: def __init__(self, name, time, point, dist): self.name = name self.time = time self.points = {point: dist}
26.4
46
0.636364
19
132
4.210526
0.526316
0.2
0
0
0
0
0
0
0
0
0
0
0.234848
132
5
47
26.4
0.792079
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
0
0.4
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
c14cd4eca9357c36ce713eab12621b15756e10d1
571
py
Python
tk_basic_as_possible.py
alvaro-root/pa2_2021
fee3931f9e10a7d39af9bf2ce5f033e41621bbda
[ "MIT" ]
1
2019-09-25T20:37:31.000Z
2019-09-25T20:37:31.000Z
tk_basic_as_possible.py
destop4u/gisp2019
aaef5f96b500de5257c15bcdbfa243395e1257d9
[ "MIT" ]
null
null
null
tk_basic_as_possible.py
destop4u/gisp2019
aaef5f96b500de5257c15bcdbfa243395e1257d9
[ "MIT" ]
null
null
null
""" Tkinter generic tasks 1. LOOK: Define the look of the screen 2. DO; Define the event handler routines 3. LOOK associated with DO: Associate interesting keyboard events with their handlers. 4. LISTEN: Loop forever, observing events. Exit when an exit event occurs. """ from tkinter import * # Contain top level win...
24.826087
86
0.749562
90
571
4.755556
0.744444
0.042056
0
0
0
0
0
0
0
0
0
0.012903
0.185639
571
22
87
25.954545
0.907527
0.870403
0
0
0
0
0
0
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
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
c1511c1301b0f3f6290820226fb19077dc9673b2
4,537
py
Python
temboo/core/Library/DataGov/GetCensusIDByTypeAndName.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
7
2016-03-07T02:07:21.000Z
2022-01-21T02:22:41.000Z
temboo/core/Library/DataGov/GetCensusIDByTypeAndName.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
null
null
null
temboo/core/Library/DataGov/GetCensusIDByTypeAndName.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
8
2016-06-14T06:01:11.000Z
2020-04-22T09:21:44.000Z
# -*- coding: utf-8 -*- ############################################################################### # # GetCensusIDByTypeAndName # Retrieve the U.S. census ID for a specified geography type and name. # # Python versions 2.6, 2.7, 3.x # # Copyright 2014, Temboo Inc. # # Licensed under the Apache License, Version 2....
44.048544
277
0.701124
518
4,537
6.067568
0.361004
0.011136
0.017817
0.033089
0.215717
0.073178
0.056634
0
0
0
0
0.004331
0.185806
4,537
102
278
44.480392
0.846508
0.499449
0
0
0
0
0.056794
0.021762
0
0
0
0
0
1
0.363636
false
0
0.151515
0.151515
0.848485
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
c152eff34778142b18319dcf04a44579a1d61a3e
1,527
py
Python
51cto.py
hmilyfe/web-get
5e461cecb3caf8512ed4a996f2bb6ba68ecc2f78
[ "Apache-2.0" ]
null
null
null
51cto.py
hmilyfe/web-get
5e461cecb3caf8512ed4a996f2bb6ba68ecc2f78
[ "Apache-2.0" ]
null
null
null
51cto.py
hmilyfe/web-get
5e461cecb3caf8512ed4a996f2bb6ba68ecc2f78
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python2.6 #coding=utf-8 #51cto自动领豆 by 2016-07-27 import requests import time from bs4 import BeautifulSoup import random def freedown(username,passwd): header = {'User-Agent':'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20100101 Firefox/14.0.1','Referer':'http://home.51cto.com/index'} req = re...
37.243902
144
0.645711
219
1,527
4.3379
0.43379
0.050526
0.054737
0.067368
0.198947
0.132632
0.132632
0.132632
0.132632
0.132632
0
0.048544
0.19057
1,527
40
145
38.175
0.720065
0.294041
0
0
0
0.037037
0.261033
0.019718
0
0
0
0
0
0
null
null
0.074074
0.148148
null
null
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
1
0
0
1
0
0
0
0
0
2
c15f7c9442000de9c6cc766e9c5c8afa9ef2c83f
876
py
Python
src/compas_assembly/geometry/_geometry.py
GeneKao/compas_assembly
92fde9cd3948c1b9bb41b4ea7fc866392905182d
[ "MIT" ]
null
null
null
src/compas_assembly/geometry/_geometry.py
GeneKao/compas_assembly
92fde9cd3948c1b9bb41b4ea7fc866392905182d
[ "MIT" ]
null
null
null
src/compas_assembly/geometry/_geometry.py
GeneKao/compas_assembly
92fde9cd3948c1b9bb41b4ea7fc866392905182d
[ "MIT" ]
null
null
null
from __future__ import print_function from __future__ import absolute_import from __future__ import division __all__ = ['Geometry'] class Geometry(object): def __init__(self): pass def blocks(self): raise NotImplementedError def interfaces(self): raise NotImplementedError ...
23.052632
80
0.528539
77
876
5.584416
0.532468
0.069767
0.111628
0.144186
0
0
0
0
0
0
0
0.003008
0.240868
876
37
81
23.675676
0.643609
0.422374
0
0.333333
0
0
0.036281
0
0
0
0
0
0
1
0.266667
false
0.133333
0.2
0
0.533333
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
c166861299dcbf8fefd833150b4e3b1b609e1860
1,937
py
Python
untws/position.py
maanbsat/untws
176801ee3d95ed5fa346b7c3511fd3d9a9ee0989
[ "MIT" ]
11
2015-02-21T15:02:50.000Z
2021-01-11T19:42:39.000Z
untws/position.py
maanbsat/untws
176801ee3d95ed5fa346b7c3511fd3d9a9ee0989
[ "MIT" ]
null
null
null
untws/position.py
maanbsat/untws
176801ee3d95ed5fa346b7c3511fd3d9a9ee0989
[ "MIT" ]
9
2015-02-22T12:55:25.000Z
2017-04-02T04:47:28.000Z
#!/usr/bin/env python # encoding: utf-8 # position.py # # Created by Maan Bsat on 2013-09-02. # Copyright (c) 2013 Maan Bsat. All rights reserved. from untws.instrument import create_instrument class Position(object): """Represents a single position""" def __init__(self, connection, account_name, inst...
25.826667
77
0.634486
217
1,937
5.414747
0.281106
0.084255
0.038298
0.042553
0
0
0
0
0
0
0
0.009174
0.268456
1,937
74
78
26.175676
0.820042
0.186887
0
0.209302
0
0
0.014483
0
0
0
0
0
0
1
0.255814
false
0
0.023256
0.023256
0.534884
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
c178f5ed20fb73af1be0895217f9bd43eb7d7300
704
py
Python
tethys_quotas/models/tethys_app_quota.py
msouff/tethys
45795d1e6561d5db8fddd838f4d1ae1d91dbb837
[ "BSD-2-Clause" ]
79
2015-10-05T13:13:28.000Z
2022-02-01T12:30:33.000Z
tethys_quotas/models/tethys_app_quota.py
msouff/tethys
45795d1e6561d5db8fddd838f4d1ae1d91dbb837
[ "BSD-2-Clause" ]
542
2015-08-12T22:11:32.000Z
2022-03-29T22:18:08.000Z
tethys_quotas/models/tethys_app_quota.py
msouff/tethys
45795d1e6561d5db8fddd838f4d1ae1d91dbb837
[ "BSD-2-Clause" ]
71
2016-01-16T01:03:41.000Z
2022-03-31T17:55:54.000Z
""" ******************************************************************************** * Name: tethys_app_quota.py * Author: tbayer, mlebarron * Created On: April 2, 2019 * Copyright: (c) Aquaveo 2018 ******************************************************************************** """ import logging from django.db impor...
26.074074
80
0.558239
68
704
5.602941
0.602941
0.052493
0.068241
0.094488
0
0
0
0
0
0
0
0.014803
0.136364
704
26
81
27.076923
0.611842
0.453125
0
0
0
0
0.063536
0
0
0
0
0
0
1
0
false
0
0.444444
0
0.777778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
c180b0efd8a97d097a386eaa9dcbe2d1680c7aa5
1,309
py
Python
modules/timer.py
DMCTruong/MoosikBot
d00e231ab4d3beed8e1b454bff0400bee3d8c823
[ "MIT" ]
1
2017-08-07T02:36:39.000Z
2017-08-07T02:36:39.000Z
modules/timer.py
DMCTruong/Discord-Bot
d00e231ab4d3beed8e1b454bff0400bee3d8c823
[ "MIT" ]
null
null
null
modules/timer.py
DMCTruong/Discord-Bot
d00e231ab4d3beed8e1b454bff0400bee3d8c823
[ "MIT" ]
null
null
null
########################################################################################## # Program Name : Discord Bot # Author : DMCTruong # Last Updated : August 31, 2017 # License : MIT # Description : A general purpose bot written for Discord #########################...
32.725
90
0.553094
152
1,309
4.690789
0.493421
0.039271
0.039271
0.058906
0.092567
0.092567
0.092567
0
0
0
0
0.007843
0.220779
1,309
40
91
32.725
0.691176
0.200917
0
0.090909
0
0.045455
0.104326
0
0
0
0
0
0
1
0.045455
false
0.090909
0.363636
0
0.454545
0.045455
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
1
0
0
0
0
2
c1848c834e87eed55ade22dcf15e656253fefef8
2,407
py
Python
tests_scripts/Sprint1-f19/Sprint1-f19/tests/loginpageui.py
uno-isqa-8950/uno-cpi
c8fa01eb253e6a56046009c551a84c36c28cd8da
[ "MIT" ]
13
2018-08-30T16:03:18.000Z
2019-11-25T07:08:43.000Z
tests_scripts/Sprint1-f19/Sprint1-f19/tests/loginpageui.py
uno-isqa-8950/uno-cpi
c8fa01eb253e6a56046009c551a84c36c28cd8da
[ "MIT" ]
814
2018-08-30T02:28:55.000Z
2022-03-11T23:31:45.000Z
tests_scripts/Sprint1-f19/Sprint1-f19/tests/loginpageui.py
uno-isqa-8950/uno-cpi
c8fa01eb253e6a56046009c551a84c36c28cd8da
[ "MIT" ]
6
2018-09-16T05:35:49.000Z
2019-10-17T02:44:19.000Z
from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys class LoginPageUi: ## URL URL = 'https://uno-cpi-dev.herokuapp.com/' # Locators for Login Login_link = (By.XPATH, '//*[@id="target"]/ul/li[4]/a') Username_field = (By.XPATH, '/html/body/div/div/div/div/div...
32.972603
98
0.676361
327
2,407
4.804281
0.217125
0.068746
0.080204
0.076384
0.314449
0.24825
0.19669
0.136856
0.092934
0.092934
0
0.007591
0.179061
2,407
72
99
33.430556
0.787449
0.088492
0
0
0
0.071429
0.171824
0.151963
0
0
0
0
0.119048
1
0.238095
false
0.095238
0.047619
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
c19007a67a0e096744fc21209365684299499a8f
230
py
Python
examples/cpu_usage/models.py
reesezxf/infi.clickhouse_orm
2155f4617873b71a1801418a87efb362b24d6863
[ "BSD-3-Clause" ]
3
2021-01-18T19:40:12.000Z
2021-11-16T13:33:03.000Z
examples/cpu_usage/models.py
meanmail/infi.clickhouse_orm
6a5889280d7072ff7e57ad8bbc8f33baeac0568c
[ "BSD-3-Clause" ]
4
2021-07-16T12:34:49.000Z
2022-03-15T12:54:14.000Z
examples/cpu_usage/models.py
meanmail/infi.clickhouse_orm
6a5889280d7072ff7e57ad8bbc8f33baeac0568c
[ "BSD-3-Clause" ]
1
2022-03-19T17:08:25.000Z
2022-03-19T17:08:25.000Z
from infi.clickhouse_orm import Model, DateTimeField, UInt16Field, Float32Field, Memory class CPUStats(Model): timestamp = DateTimeField() cpu_id = UInt16Field() cpu_percent = Float32Field() engine = Memory()
19.166667
87
0.726087
23
230
7.130435
0.73913
0
0
0
0
0
0
0
0
0
0
0.042781
0.186957
230
11
88
20.909091
0.834225
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.166667
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
c191c5e2439e9a47eb8ecf1fab0040800767e5ea
2,210
py
Python
simulation/utilities/util.py
0xDBFB7/ionprinter
ac47f4f73aac2c169a714388505d4cf34337125e
[ "MIT" ]
null
null
null
simulation/utilities/util.py
0xDBFB7/ionprinter
ac47f4f73aac2c169a714388505d4cf34337125e
[ "MIT" ]
null
null
null
simulation/utilities/util.py
0xDBFB7/ionprinter
ac47f4f73aac2c169a714388505d4cf34337125e
[ "MIT" ]
null
null
null
import math import unittest epsilon = 8.85*(10**-12.0) #vacuum permittivity def electron_charge(): return 1.602*10**-19 def scharge_efield(beam_current,beam_velocity,beam_radius,sample_radius=None): """Calculate the electric field at the edge of a beam Eq. 44 at https://arxiv.org/pdf/1401.3951.pdf re...
35.645161
109
0.717195
332
2,210
4.566265
0.328313
0.063325
0.049472
0.075858
0.363456
0.363456
0.341689
0.341689
0.203166
0.203166
0
0.091538
0.149774
2,210
61
110
36.229508
0.715274
0.524434
0
0
0
0
0
0
0
0
0
0
0.052632
1
0.263158
false
0
0.105263
0.052632
0.631579
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
c1acd38542bedda388799598c826c295caa2d888
2,312
py
Python
src/crumblebundle/input/keycodes.py
Peilonrayz/crumblebundle
cffb3b0b16e9bc6497e9ba43f9c7cc3fd008c3ee
[ "MIT" ]
null
null
null
src/crumblebundle/input/keycodes.py
Peilonrayz/crumblebundle
cffb3b0b16e9bc6497e9ba43f9c7cc3fd008c3ee
[ "MIT" ]
null
null
null
src/crumblebundle/input/keycodes.py
Peilonrayz/crumblebundle
cffb3b0b16e9bc6497e9ba43f9c7cc3fd008c3ee
[ "MIT" ]
null
null
null
class _KeyCode: __slots__ = ("_windows", "_unix") raw = False def __init__(self, windows, unix): self._windows = windows self._unix = unix def __repr__(self): return "_KeyCode(windows={self._windows!r}, unix={self._unix!r})".format( self=self ) class KeyCo...
36.698413
81
0.591696
262
2,312
4.900763
0.343511
0.436137
0.092679
0.114486
0
0
0
0
0
0
0
0.047286
0.195069
2,312
62
82
37.290323
0.642665
0.022491
0
0
0
0
0.113818
0.0155
0
0
0
0
0
1
0.055556
false
0
0
0.018519
0.907407
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
c1af967a87459c64822bbb412b02d2b9a5b05e77
484
py
Python
app/api/v1/routes.py
antonnifo/StackOverflow-lite
77aaf52836127353795c58717be29f55f4b8c72a
[ "MIT" ]
8
2019-01-23T10:47:43.000Z
2019-02-26T13:54:23.000Z
app/api/v1/routes.py
antonnifo/StackOverflow-lite
77aaf52836127353795c58717be29f55f4b8c72a
[ "MIT" ]
null
null
null
app/api/v1/routes.py
antonnifo/StackOverflow-lite
77aaf52836127353795c58717be29f55f4b8c72a
[ "MIT" ]
2
2019-02-26T09:59:15.000Z
2019-09-20T17:02:06.000Z
"""all routes""" from flask import Blueprint from flask_restful import Api from .questions.views import Questions, Question, UpdateTitle, UpdateQuestion VERSION_UNO = Blueprint('api', __name__, url_prefix='/api/v1') API = Api(VERSION_UNO) API.add_resource(Questions, '/questions') API.add_resource(Question, '/question...
37.230769
77
0.78719
63
484
5.809524
0.380952
0.065574
0.153005
0.180328
0
0
0
0
0
0
0
0.002227
0.072314
484
12
78
40.333333
0.812918
0.020661
0
0
0
0
0.254274
0.211538
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.222222
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
1
0
0
0
0
2
c1b21b1296bf5b5890787756246a27c720fa157a
301
py
Python
compiled/construct/position_in_seq.py
smarek/ci_targets
c5edee7b0901fd8e7f75f85245ea4209b38e0cb3
[ "MIT" ]
4
2017-04-08T12:55:11.000Z
2020-12-05T21:09:31.000Z
compiled/construct/position_in_seq.py
smarek/ci_targets
c5edee7b0901fd8e7f75f85245ea4209b38e0cb3
[ "MIT" ]
7
2018-04-23T01:30:33.000Z
2020-10-30T23:56:14.000Z
compiled/construct/position_in_seq.py
smarek/ci_targets
c5edee7b0901fd8e7f75f85245ea4209b38e0cb3
[ "MIT" ]
6
2017-04-08T11:41:14.000Z
2020-10-30T22:47:31.000Z
from construct import * from construct.lib import * position_in_seq__header_obj = Struct( 'qty_numbers' / Int32ul, ) position_in_seq = Struct( 'numbers' / Array(this.header.qty_numbers, Int8ub), 'header' / Pointer(16, LazyBound(lambda: position_in_seq__header_obj)), ) _schema = position_in_seq
21.5
72
0.767442
41
301
5.219512
0.512195
0.186916
0.242991
0.17757
0.205607
0
0
0
0
0
0
0.018939
0.122924
301
13
73
23.153846
0.791667
0
0
0
0
0
0.079734
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
c1b6faa38d75c4263d35625b089c9b8adf1cbc8c
939
py
Python
spinta/datasets/commands/error.py
atviriduomenys/spinta
77a10e201f8cdc63143fce7996fd0898acb1ff58
[ "MIT" ]
2
2019-03-14T06:41:14.000Z
2019-03-26T11:48:14.000Z
spinta/datasets/commands/error.py
sirex/spinta
77a10e201f8cdc63143fce7996fd0898acb1ff58
[ "MIT" ]
44
2019-04-05T15:52:45.000Z
2022-03-30T07:41:33.000Z
spinta/datasets/commands/error.py
sirex/spinta
77a10e201f8cdc63143fce7996fd0898acb1ff58
[ "MIT" ]
1
2019-04-01T09:54:27.000Z
2019-04-01T09:54:27.000Z
from typing import Dict from spinta import commands from spinta.datasets.components import Resource, Entity, Attribute @commands.get_error_context.register(Resource) def get_error_context(resource: Resource, *, prefix='this') -> Dict[str, str]: context = commands.get_error_context(resource.dataset, prefix=f'{pre...
36.115385
86
0.743344
121
939
5.619835
0.214876
0.105882
0.198529
0.202941
0.607353
0.485294
0.485294
0.405882
0.405882
0.405882
0
0
0.118211
939
25
87
37.56
0.821256
0
0
0.277778
0
0
0.125666
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.5
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
c1d96b6a547b5bc298ac7bf736f9da6ed30b99a1
160
py
Python
test/tests/del_name_scoping.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
1
2020-02-06T14:28:45.000Z
2020-02-06T14:28:45.000Z
test/tests/del_name_scoping.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
test/tests/del_name_scoping.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
1
2020-02-06T14:29:00.000Z
2020-02-06T14:29:00.000Z
x = 1 def f(): if 0: # the del marks 'x' as a name written to in this scope del x print x try: f() except NameError, e: print e
14.545455
62
0.525
29
160
2.896552
0.758621
0
0
0
0
0
0
0
0
0
0
0.020619
0.39375
160
10
63
16
0.845361
0.325
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0.222222
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
1
0
0
0
0
0
0
0
0
2
c1e9a9facf7e7fcbc8dcde6921660204db2ca0fa
3,033
py
Python
tests/test_gendata.py
arappaport/gendata
e6cf359bb4aa7af2db8dc5b468266088134a09d7
[ "MIT" ]
null
null
null
tests/test_gendata.py
arappaport/gendata
e6cf359bb4aa7af2db8dc5b468266088134a09d7
[ "MIT" ]
null
null
null
tests/test_gendata.py
arappaport/gendata
e6cf359bb4aa7af2db8dc5b468266088134a09d7
[ "MIT" ]
null
null
null
import pytest import json from collections import OrderedDict from gendata import gen_permutations, gen_random, prepare_col_opts @pytest.fixture def col_opts_test_data_one_level(): col_opts = OrderedDict() col_opts["Col0"] = { "Value0_A": 0.1, "Value0_B": 0.2, "Value0_C": 0.7 } ...
31.926316
85
0.697989
460
3,033
4.13913
0.186957
0.210084
0.121324
0.165441
0.682773
0.672269
0.596113
0.564601
0.548845
0.518908
0
0.024542
0.207385
3,033
94
86
32.265957
0.767471
0.098912
0
0.375
0
0
0.127817
0.008496
0
0
0
0
0.138889
1
0.125
false
0
0.055556
0
0.25
0
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
c1fa0798324698d795225942f379f13a7ac34606
1,257
py
Python
backend/Hrplatform/migrations/0001_initial.py
iamavichawla/AI-based-video-analysis
167e3a670df692dc6aa5594b536eeb819d471791
[ "Unlicense" ]
null
null
null
backend/Hrplatform/migrations/0001_initial.py
iamavichawla/AI-based-video-analysis
167e3a670df692dc6aa5594b536eeb819d471791
[ "Unlicense" ]
null
null
null
backend/Hrplatform/migrations/0001_initial.py
iamavichawla/AI-based-video-analysis
167e3a670df692dc6aa5594b536eeb819d471791
[ "Unlicense" ]
null
null
null
# Generated by Django 3.2.4 on 2021-07-05 08:53 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Audio_store1', fields=[ ('id', models.BigAu...
36.970588
117
0.566428
121
1,257
5.818182
0.520661
0.102273
0.147727
0.193182
0.389205
0.389205
0
0
0
0
0
0.022396
0.289578
1,257
33
118
38.090909
0.765957
0.0358
0
0
1
0
0.109917
0
0
0
0
0
0
1
0
false
0
0.038462
0
0.192308
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
c1fb630246e72a34cde7dc6f8f828c8847e7def2
1,906
py
Python
code/python/netmiko_router_config.py
opsec7/refs
90c5cd8fef2dd0c36726559d585e5e8595da5c0a
[ "Unlicense" ]
null
null
null
code/python/netmiko_router_config.py
opsec7/refs
90c5cd8fef2dd0c36726559d585e5e8595da5c0a
[ "Unlicense" ]
null
null
null
code/python/netmiko_router_config.py
opsec7/refs
90c5cd8fef2dd0c36726559d585e5e8595da5c0a
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # lima 6/16/2017 # multiprocessing works better in linux... forking is not supported in windows # ... just run this in linux and move on... # # from __future__ import absolute_import, division, print_function import netmiko from multiprocessing import Pool # import my toolbox.py functions import...
26.84507
89
0.660021
265
1,906
4.618868
0.501887
0.068627
0.085784
0.029412
0.076797
0.076797
0
0
0
0
0
0.023777
0.227702
1,906
70
90
27.228571
0.807745
0.397692
0
0.074074
0
0
0.118627
0
0
0
0
0
0
0
null
null
0.074074
0.185185
null
null
0.148148
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
de0618ee7e5a17491480d6ba82753b958dba341e
245
py
Python
lino_book/projects/migs/__init__.py
lino-framework/lino_book
4eab916832cd8f48ff1b9fc8c2789f0b437da0f8
[ "BSD-2-Clause" ]
3
2016-08-25T05:58:09.000Z
2019-12-05T11:13:45.000Z
lino_book/projects/migs/__init__.py
lino-framework/lino_book
4eab916832cd8f48ff1b9fc8c2789f0b437da0f8
[ "BSD-2-Clause" ]
18
2016-11-12T21:38:58.000Z
2019-12-03T17:54:38.000Z
lino_book/projects/migs/__init__.py
lino-framework/lino_book
4eab916832cd8f48ff1b9fc8c2789f0b437da0f8
[ "BSD-2-Clause" ]
9
2016-10-15T11:12:33.000Z
2021-09-22T04:37:37.000Z
# -*- coding: UTF-8 -*- # Copyright 2015-2017 Rumma & Ko Ltd # License: BSD (see file COPYING for details) """A copy of the :ref:`noi` as a ticket management demo, for testing Django migrations. .. autosummary:: :toctree: settings """
18.846154
87
0.661224
34
245
4.764706
0.941176
0
0
0
0
0
0
0
0
0
0
0.045918
0.2
245
12
88
20.416667
0.780612
0.938776
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
de096822fbff36fca0af3934bdde07d3d5efe2db
5,694
py
Python
crystallus/wyckoff_cfg_generator.py
yoshida-lab/crystallus
eecf81788e6e4a2cc860ac7849da2866efcc8e19
[ "Apache-2.0" ]
null
null
null
crystallus/wyckoff_cfg_generator.py
yoshida-lab/crystallus
eecf81788e6e4a2cc860ac7849da2866efcc8e19
[ "Apache-2.0" ]
1
2022-03-23T10:20:44.000Z
2022-03-23T10:20:44.000Z
crystallus/wyckoff_cfg_generator.py
yoshida-lab/crystallus
eecf81788e6e4a2cc860ac7849da2866efcc8e19
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 TsumiNa # # 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, soft...
37.96
107
0.61679
727
5,694
4.722146
0.281981
0.056802
0.032625
0.016604
0.329741
0.305855
0.305855
0.305855
0.305855
0.305855
0
0.012618
0.29013
5,694
149
108
38.214765
0.836715
0.582894
0
0.166667
0
0
0
0
0
0
0
0
0
1
0.208333
false
0
0.0625
0.104167
0.4375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
de15a8b4211dc7afd7167d36412de7217193f1c3
974
py
Python
readme_generator/test_scaffold.py
chelseadole/401-final-project
0d7aaa41464faf2ca29ea938637977ecef59a324
[ "MIT" ]
6
2017-12-22T20:55:26.000Z
2021-02-08T01:52:00.000Z
readme_generator/test_scaffold.py
chelseadole/401-final-project
0d7aaa41464faf2ca29ea938637977ecef59a324
[ "MIT" ]
13
2017-12-18T21:31:41.000Z
2017-12-21T01:37:24.000Z
readme_generator/test_scaffold.py
chelseadole/401-final-project
0d7aaa41464faf2ca29ea938637977ecef59a324
[ "MIT" ]
2
2017-12-23T17:45:31.000Z
2018-01-09T21:39:06.000Z
"""Test file for ensure scaffolding functionality.""" # from readme_generator.make_scaffold import dependencies, license, setup_dict, user_data # def test_user_data_populated_in_make_scaffold(): # """Test that make_scaffold creates a populated user_data dict.""" # assert len(user_data) > 0 # assert "url"...
33.586207
89
0.729979
124
974
5.451613
0.33871
0.12426
0.112426
0.059172
0.186391
0.109467
0.109467
0
0
0
0
0.002457
0.164271
974
28
90
34.785714
0.82801
0.947639
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
a9a47077a5d35080b5da6c8d7eb195ec7fdd328d
306
py
Python
SecureWitness/accounts/admin.py
vivianbuan/cs3240-s15-team20
14830bf0949b0b1c93a50cf3ac4dc51bd88ade6b
[ "MIT" ]
null
null
null
SecureWitness/accounts/admin.py
vivianbuan/cs3240-s15-team20
14830bf0949b0b1c93a50cf3ac4dc51bd88ade6b
[ "MIT" ]
6
2015-03-02T21:27:36.000Z
2015-04-25T19:25:08.000Z
SecureWitness/accounts/admin.py
vivianbuan/cs3240-s15-team20
14830bf0949b0b1c93a50cf3ac4dc51bd88ade6b
[ "MIT" ]
null
null
null
from django.contrib import admin from accounts.models import UserGroup, UserProfile # Register your models here. class UserAdmin(admin.ModelAdmin): pass class GroupAdmin(admin.ModelAdmin): pass admin.site.register(UserProfile, UserAdmin) admin.site.register(UserGroup, GroupAdmin)
21.857143
51
0.764706
35
306
6.685714
0.514286
0.119658
0.162393
0
0
0
0
0
0
0
0
0
0.160131
306
14
52
21.857143
0.910506
0.084967
0
0.25
0
0
0
0
0
0
0
0
0
1
0
true
0.25
0.25
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
2
a9b81bebf9e7b863fc8053fbb20cb6d642d6f29c
219
py
Python
example/change_date.py
MadSkittles/Switch-Fightstick
342a049716977f5ea5099f07df2ac9fc75f06051
[ "MIT" ]
null
null
null
example/change_date.py
MadSkittles/Switch-Fightstick
342a049716977f5ea5099f07df2ac9fc75f06051
[ "MIT" ]
null
null
null
example/change_date.py
MadSkittles/Switch-Fightstick
342a049716977f5ea5099f07df2ac9fc75f06051
[ "MIT" ]
null
null
null
from NXController import Controller ctr = Controller() for i in range(30): ctr.A() if i == 0: ctr.RIGHT() ctr.RIGHT() else: ctr.LEFT() ctr.LEFT() ctr.LEFT() ctr.UP() ctr.RIGHT(0.4) ctr.A() ctr.close()
12.166667
35
0.611872
37
219
3.621622
0.513514
0.179104
0.223881
0.208955
0.179104
0
0
0
0
0
0
0.028571
0.200913
219
18
36
12.166667
0.737143
0
0
0.466667
0
0
0
0
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
a9be521e4436ba6c20b2c028b54db28bb0ba0a67
1,076
py
Python
scheduler/migrations/0001_initial.py
FelixTheC/beak_emailer_list
8bb34681f1d6b35a8d0cc8a81e03d1044cf74f06
[ "MIT" ]
null
null
null
scheduler/migrations/0001_initial.py
FelixTheC/beak_emailer_list
8bb34681f1d6b35a8d0cc8a81e03d1044cf74f06
[ "MIT" ]
null
null
null
scheduler/migrations/0001_initial.py
FelixTheC/beak_emailer_list
8bb34681f1d6b35a8d0cc8a81e03d1044cf74f06
[ "MIT" ]
null
null
null
# Generated by Django 3.1.1 on 2021-04-15 20:05 from django.db import migrations, models import uuid class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='ScheduleCommander', fields=[ ('...
30.742857
96
0.55855
100
1,076
5.9
0.55
0.101695
0.122034
0.162712
0.410169
0.227119
0.227119
0.227119
0.227119
0.227119
0
0.039084
0.310409
1,076
34
97
31.647059
0.756065
0.041822
0
0.37037
1
0
0.091351
0.022352
0
0
0
0
0
1
0
false
0
0.074074
0
0.222222
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
a9c3dce3558c1784bb23a5ce7cc270f6fa6627bf
426
py
Python
labml_db/serializer/pickle.py
labmlai/db
00e1c0a243b5841df292088683c3380e101d3033
[ "MIT" ]
4
2020-10-17T04:13:55.000Z
2021-02-16T14:12:52.000Z
labml_db/serializer/pickle.py
labmlai/db
00e1c0a243b5841df292088683c3380e101d3033
[ "MIT" ]
1
2021-04-21T05:29:14.000Z
2021-04-21T05:29:14.000Z
labml_db/serializer/pickle.py
labmlai/db
00e1c0a243b5841df292088683c3380e101d3033
[ "MIT" ]
1
2021-03-24T17:14:49.000Z
2021-03-24T17:14:49.000Z
import pickle from typing import Optional from . import Serializer from ..types import ModelDict class PickleSerializer(Serializer): file_extension = 'pkl' is_bytes = True def to_string(self, data: ModelDict) -> bytes: return pickle.dumps(data) def from_string(self, data: Optional[bytes]) -...
22.421053
72
0.680751
52
426
5.5
0.5
0.06993
0.097902
0
0
0
0
0
0
0
0
0
0.237089
426
18
73
23.666667
0.88
0
0
0
0
0
0.007042
0
0
0
0
0
0
1
0.153846
false
0
0.307692
0.076923
0.923077
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
a9c52be544f2f5d7f04ef34877775596ce3b9a50
10,307
py
Python
quotes/luckyitem.py
sumaneko/discordpy-startup
362156452d025837c0a36f64b9e47e605b3a3cc8
[ "MIT" ]
null
null
null
quotes/luckyitem.py
sumaneko/discordpy-startup
362156452d025837c0a36f64b9e47e605b3a3cc8
[ "MIT" ]
null
null
null
quotes/luckyitem.py
sumaneko/discordpy-startup
362156452d025837c0a36f64b9e47e605b3a3cc8
[ "MIT" ]
null
null
null
from mylib.mymodule import get_quotes from mymodule.ryonage_bot import RyonageBot def get_lucky(bot, m): pre = "" suf = "" name = m.author.name if m.author.nick is None else m.author.nick #元気状態なら if bot.dying_hp < bot.get_hp(): pre = f"{name}さんのラッキーアイテムは・・・・・・『" quotes = [ ...
28.952247
68
0.292617
773
10,307
3.941785
0.507115
0.006892
0.00722
0.002626
0
0
0
0
0
0
0
0.197191
0.502571
10,307
355
69
29.033803
0.389897
0.003105
0
0.017192
0
0
0.175331
0.00662
0
0
0
0
0
1
0.002865
false
0
0.005731
0
0.011461
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
a9c8f5a4f1ed9a51f56fec5415975808e36ba44f
497
py
Python
downloadbot_common/messaging/consuming/handlers.py
dnguyen0304/downloadbot.common
25b3ef3d09764e9f8d7969c692b1e6bb87ff24d5
[ "MIT" ]
null
null
null
downloadbot_common/messaging/consuming/handlers.py
dnguyen0304/downloadbot.common
25b3ef3d09764e9f8d7969c692b1e6bb87ff24d5
[ "MIT" ]
null
null
null
downloadbot_common/messaging/consuming/handlers.py
dnguyen0304/downloadbot.common
25b3ef3d09764e9f8d7969c692b1e6bb87ff24d5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import abc class Handler(metaclass=abc.ABCMeta): @abc.abstractmethod def handle(self, message): """ Parameters ---------- message : downloadbot_common.messaging.messages.Message Returns ------- None Raises ---...
18.407407
69
0.561368
42
497
6.595238
0.809524
0.122744
0.187726
0
0
0
0
0
0
0
0
0.002967
0.321932
497
26
70
19.115385
0.818991
0.496982
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
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
1
0
0
2
a9d213a387aa5726b9076d55a72e41eff3631b4f
1,402
py
Python
recupero/migrations/0002_auto_20191103_1159.py
cluster311/ggg
262173c66fe40ada30083d439a79f16f841f5772
[ "BSD-3-Clause" ]
6
2020-03-16T02:51:16.000Z
2020-11-10T00:58:01.000Z
recupero/migrations/0002_auto_20191103_1159.py
cluster311/ggg
262173c66fe40ada30083d439a79f16f841f5772
[ "BSD-3-Clause" ]
204
2019-09-19T02:00:57.000Z
2022-02-10T10:48:52.000Z
recupero/migrations/0002_auto_20191103_1159.py
cluster311/ggg
262173c66fe40ada30083d439a79f16f841f5772
[ "BSD-3-Clause" ]
3
2019-09-16T22:59:24.000Z
2022-03-21T22:52:44.000Z
# Generated by Django 2.2.4 on 2019-11-03 14:59 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('recupero', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='prestacion', name='nomenclador', ...
32.604651
171
0.582026
130
1,402
6.192308
0.538462
0.067081
0.142857
0.167702
0.337888
0.337888
0.226087
0.226087
0
0
0
0.042169
0.289586
1,402
42
172
33.380952
0.766064
0.032097
0
0.472222
1
0
0.185978
0
0
0
0
0
0
1
0
false
0
0.027778
0
0.111111
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
a9d64481d0b30f68f992ca93c28e945ab6ce47f2
630
py
Python
tests/test_inventory.py
mavroskardia/oworld
840421818b04c0d7242881519f83acf348efbb5e
[ "MIT" ]
null
null
null
tests/test_inventory.py
mavroskardia/oworld
840421818b04c0d7242881519f83acf348efbb5e
[ "MIT" ]
null
null
null
tests/test_inventory.py
mavroskardia/oworld
840421818b04c0d7242881519f83acf348efbb5e
[ "MIT" ]
null
null
null
# # Tests for Overworld character inventory # import sys sys.path.append('../components') from items import NewInventory as Inventory from items import NewItem as Item from items import Material class Test_Inventory: def setup_class(cls): cls.inv = Inventory() def test_construction(self): ...
22.5
44
0.647619
81
630
4.925926
0.432099
0.070175
0.112782
0
0
0
0
0
0
0
0
0.002174
0.269841
630
28
45
22.5
0.865217
0.061905
0
0
0
0
0.022109
0
0
0
0
0
0.176471
1
0.235294
false
0
0.235294
0
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
1
0
0
0
0
1
0
0
2
a9dae681fc53a5fee3c4cb49020d93673bf86585
758
py
Python
drl/envs/wrappers/stateful/abstract.py
lucaslingle/pytorch_drl
6b2c1142a36553ce5dcb0a5768767579676d5791
[ "MIT" ]
null
null
null
drl/envs/wrappers/stateful/abstract.py
lucaslingle/pytorch_drl
6b2c1142a36553ce5dcb0a5768767579676d5791
[ "MIT" ]
null
null
null
drl/envs/wrappers/stateful/abstract.py
lucaslingle/pytorch_drl
6b2c1142a36553ce5dcb0a5768767579676d5791
[ "MIT" ]
null
null
null
""" Abstract wrapper definitions. """ from typing import Mapping, Any import abc import torch as tc from drl.envs.wrappers.stateless import Wrapper class TrainableWrapper(Wrapper, metaclass=abc.ABCMeta): """ Wrapper with trainable parameters. """ @abc.abstractmethod def learn( self,...
23.6875
80
0.614776
77
758
6.051948
0.649351
0.085837
0.081545
0.081545
0
0
0
0
0
0
0
0
0.283641
758
31
81
24.451613
0.858195
0.39314
0
0
0
0
0
0
0
0
0
0.032258
0
1
0.1
false
0
0.4
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
1
0
0
0
0
0
1
0
0
0
0
2
a9f1e2c8777a2c76acaf942b9242b60e314414ad
2,209
py
Python
torchio/transforms/__init__.py
soumickmj/torchio
5ec12c7ea9bf9cfd70e17e90fcc03621272cef9c
[ "MIT" ]
null
null
null
torchio/transforms/__init__.py
soumickmj/torchio
5ec12c7ea9bf9cfd70e17e90fcc03621272cef9c
[ "MIT" ]
null
null
null
torchio/transforms/__init__.py
soumickmj/torchio
5ec12c7ea9bf9cfd70e17e90fcc03621272cef9c
[ "MIT" ]
null
null
null
from .transform import Transform, TypeTransformInput from .spatial_transform import SpatialTransform from .intensity_transform import IntensityTransform from .interpolation import Interpolation, get_sitk_interpolator # Generic from .lambda_transform import Lambda # Augmentation from .augmentation.composition import O...
29.065789
87
0.787687
192
2,209
8.96875
0.25
0.139373
0.130662
0.162021
0
0
0
0
0
0
0
0
0.140335
2,209
75
88
29.453333
0.906793
0.015392
0
0
0
0
0.199908
0.031783
0
0
0
0
0
1
0
false
0
0.446154
0
0.446154
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
1
0
0
0
0
2
a9f8eaf25f84110e0ce2082acf955f8aec4a2b56
218
py
Python
solutions/problem_108.py
ksvr444/daily-coding-problem
5d9f488f81c616847ee4e9e48974523ec2d598d7
[ "MIT" ]
1,921
2018-11-13T18:19:56.000Z
2021-11-15T14:25:41.000Z
solutions/problem_108.py
MohitIndian/daily-coding-problem
5d9f488f81c616847ee4e9e48974523ec2d598d7
[ "MIT" ]
2
2019-07-19T01:06:16.000Z
2019-08-01T22:21:36.000Z
solutions/problem_108.py
MohitIndian/daily-coding-problem
5d9f488f81c616847ee4e9e48974523ec2d598d7
[ "MIT" ]
1,066
2018-11-19T19:06:55.000Z
2021-11-13T12:33:56.000Z
def can_shift(target, string): return \ target and string and \ len(target) == len(string) and \ string in target * 2 assert can_shift("abcde", "cdeab") assert not can_shift("abc", "acb")
21.8
40
0.610092
30
218
4.333333
0.533333
0.184615
0
0
0
0
0
0
0
0
0
0.006211
0.261468
218
9
41
24.222222
0.801242
0
0
0
0
0
0.073395
0
0
0
0
0
0.285714
1
0.142857
false
0
0
0.142857
0.285714
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
1
0
0
0
2