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
0075e7c2b0ec67cabc446d6a8b63244da4be6d58
4,673
py
Python
test/pyaz/netappfiles/volume/__init__.py
bigdatamoore/py-az-cli
54383a4ee7cc77556f6183e74e992eec95b28e01
[ "MIT" ]
null
null
null
test/pyaz/netappfiles/volume/__init__.py
bigdatamoore/py-az-cli
54383a4ee7cc77556f6183e74e992eec95b28e01
[ "MIT" ]
9
2021-09-24T16:37:24.000Z
2021-12-24T00:39:19.000Z
test/pyaz/netappfiles/volume/__init__.py
bigdatamoore/py-az-cli
54383a4ee7cc77556f6183e74e992eec95b28e01
[ "MIT" ]
null
null
null
import json, subprocess from ... pyaz_utils import get_cli_name, get_params def show(resource_group, account_name, pool_name, volume_name): params = get_params(locals()) command = "az netappfiles volume show " + params print(command) output = subprocess.run(command, shell=True, stdout=subprocess.PI...
45.813725
910
0.71239
605
4,673
5.333884
0.185124
0.060738
0.043384
0.041215
0.734428
0.699101
0.663465
0.663465
0.624419
0.546638
0
0.005214
0.179114
4,673
101
911
46.267327
0.836027
0
0
0.827957
0
0
0.058635
0
0
0
0
0
0
1
0.075269
false
0
0.021505
0
0.172043
0.225806
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0076532ec1f0da7b28b9b0955abd9db2b3d5e4b0
2,178
py
Python
qgsWriter/_qgsLayerTree.py
milieuinfo/arcgis2qgs
d0d2e4da7cb9d6f08ef82b6c6f94d3340b96f9ba
[ "MIT" ]
18
2015-11-24T20:08:35.000Z
2021-11-12T15:10:22.000Z
qgsWriter/_qgsLayerTree.py
canglangshushu/arcgis2qgs
d0d2e4da7cb9d6f08ef82b6c6f94d3340b96f9ba
[ "MIT" ]
1
2021-04-08T14:21:01.000Z
2021-04-08T14:21:01.000Z
qgsWriter/_qgsLayerTree.py
canglangshushu/arcgis2qgs
d0d2e4da7cb9d6f08ef82b6c6f94d3340b96f9ba
[ "MIT" ]
9
2017-06-09T04:31:52.000Z
2021-11-22T11:32:14.000Z
# -*- coding: utf-8 -*- import xml.etree.cElementTree as ET class qgsLayerTree: def __init__(self, rootName=""): """ :param rootName: the name of the rootlayer """ self.tree = dict(name=rootName, layers=[], checked='Qt::Checked', expanded='1') def addLayer(self, layerId, name="...
32.507463
103
0.573003
245
2,178
5.065306
0.269388
0.032232
0.025786
0.032232
0.433521
0.393231
0.393231
0.393231
0.299758
0.235294
0
0.00459
0.299816
2,178
66
104
33
0.80918
0.009642
0
0.333333
0
0
0.109131
0
0
0
0
0
0
0
null
null
0
0.027778
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
007c54b830f9389130fcc6c2c52752cb388f4887
2,639
py
Python
imperative/python/megengine/module/elemwise.py
mozre/MegEngine
b8ea63927e92b707f20419d06d51f35d410f9498
[ "Apache-2.0" ]
3
2021-08-08T12:55:53.000Z
2021-12-10T06:01:04.000Z
imperative/python/megengine/module/elemwise.py
MediosZ/MegEngine
5c775d02dd0b8f20b5acc6b400cf722e92f2e86b
[ "Apache-2.0" ]
6
2020-04-24T08:52:06.000Z
2021-08-16T06:38:23.000Z
imperative/python/megengine/module/elemwise.py
MediosZ/MegEngine
5c775d02dd0b8f20b5acc6b400cf722e92f2e86b
[ "Apache-2.0" ]
null
null
null
# MegEngine is Licensed under the Apache License, Version 2.0 (the "License") # # Copyright (c) 2014-2021 Megvii Inc. All rights reserved. # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY ...
31.795181
112
0.523304
346
2,639
3.83815
0.416185
0.019578
0.024849
0.027108
0
0
0
0
0
0
0
0.015573
0.318681
2,639
82
113
32.182927
0.723026
0.783251
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.3
0.1
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
0
0
0
1
0
0
1
0081981d8fb33114fcdb82bb75640e1e6abdb39f
334
py
Python
apps/bitacoras/migrations/0005_remove_bitacora_receta.py
Monse200599/sistema_medico
c220c5278d96bb9cd86f92fbac1bc66d6eebfd56
[ "MIT" ]
null
null
null
apps/bitacoras/migrations/0005_remove_bitacora_receta.py
Monse200599/sistema_medico
c220c5278d96bb9cd86f92fbac1bc66d6eebfd56
[ "MIT" ]
null
null
null
apps/bitacoras/migrations/0005_remove_bitacora_receta.py
Monse200599/sistema_medico
c220c5278d96bb9cd86f92fbac1bc66d6eebfd56
[ "MIT" ]
1
2021-11-30T06:02:11.000Z
2021-11-30T06:02:11.000Z
# Generated by Django 3.2.6 on 2021-11-29 00:48 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('bitacoras', '0004_remove_bitacora_area'), ] operations = [ migrations.RemoveField( model_name='bitacora', name='receta', ...
18.555556
51
0.598802
35
334
5.6
0.828571
0
0
0
0
0
0
0
0
0
0
0.080169
0.290419
334
17
52
19.647059
0.746835
0.134731
0
0
1
0
0.167247
0.087108
0
0
0
0
0
1
0
false
0
0.090909
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
00861680b21067747a30cfe7ab5eb5b8d1b71809
5,916
py
Python
address/migrations/0001_initial.py
jacinda/django-address
c9a351b20e29c4fa9841a4bda849befa68f1c3de
[ "BSD-3-Clause" ]
2
2015-08-11T08:21:40.000Z
2016-01-24T05:51:08.000Z
address/migrations/0001_initial.py
jacinda/django-address
c9a351b20e29c4fa9841a4bda849befa68f1c3de
[ "BSD-3-Clause" ]
null
null
null
address/migrations/0001_initial.py
jacinda/django-address
c9a351b20e29c4fa9841a4bda849befa68f1c3de
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'Country' db.create_table(u'address_country', ( (u'id', self.gf('django.db.models...
55.28972
142
0.592123
680
5,916
5.036765
0.110294
0.081752
0.138978
0.19854
0.733431
0.677372
0.66219
0.624234
0.55708
0.526131
0
0.007983
0.195402
5,916
107
143
55.28972
0.711555
0.079953
0
0.184211
0
0
0.45709
0.225599
0
0
0
0
0
1
0.026316
false
0
0.052632
0
0.118421
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0086270d0a19cda3cb8698c97a9c6c48e1262a62
14,096
py
Python
fables/tree.py
bk521234/fables
6e3d461c597610ae2e954a0d30869e1e962d69a4
[ "Apache-2.0" ]
2
2019-05-06T18:51:56.000Z
2019-05-25T05:50:56.000Z
fables/tree.py
bk521234/fables
6e3d461c597610ae2e954a0d30869e1e962d69a4
[ "Apache-2.0" ]
52
2019-05-06T19:46:03.000Z
2021-08-05T18:54:19.000Z
fables/tree.py
bk521234/fables
6e3d461c597610ae2e954a0d30869e1e962d69a4
[ "Apache-2.0" ]
6
2019-05-06T17:59:25.000Z
2021-01-14T03:25:34.000Z
""" Define nodes of the detection tree. Nodes are responsible for how they list their children, detecting if they are pw-protected, and in some cases how they can be identified (e.g. by a heuristic on their mimetype and extension) Also implements the module-level function: `node_from_file()` which determines what node...
34.213592
152
0.58889
1,575
14,096
5.125714
0.214603
0.017837
0.011148
0.02081
0.251332
0.177877
0.130311
0.113465
0.084479
0.05921
0
0.006309
0.325341
14,096
411
153
34.296837
0.842587
0.155505
0
0.322917
0
0
0.057382
0.027069
0
0
0.000256
0.002433
0
1
0.090278
false
0.118056
0.034722
0.010417
0.34375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
008b6bb82571cbc668561b2da75801f2e8dc130f
1,271
py
Python
cepelblog/core/views.py
tolgahancepel/cepelblog
db5b1446c98dbeadc0218af4c85df2b42798cc0b
[ "MIT" ]
null
null
null
cepelblog/core/views.py
tolgahancepel/cepelblog
db5b1446c98dbeadc0218af4c85df2b42798cc0b
[ "MIT" ]
null
null
null
cepelblog/core/views.py
tolgahancepel/cepelblog
db5b1446c98dbeadc0218af4c85df2b42798cc0b
[ "MIT" ]
null
null
null
""" cepelblog/core/views.py """ from cepelblog.models import BlogPost, Tag from flask import render_template, request, Blueprint core = Blueprint('core', __name__) # ----------------------------------------------------------------------------- # INDEX VIEW # ----------------------------------------------------------...
34.351351
112
0.440598
114
1,271
4.754386
0.394737
0.099631
0.071956
0.081181
0.405904
0.405904
0.405904
0.166052
0.166052
0
0
0.003463
0.091267
1,271
37
113
34.351351
0.465801
0.412274
0
0.117647
0
0
0.06694
0
0
0
0
0
0
1
0.176471
false
0
0.117647
0.058824
0.470588
0.117647
0
0
0
null
0
0
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
1
008c91bbe182609bbcf29088b05910eb2c3fcb19
286
py
Python
examples/observer_easy_vs_easy.py
james-m-tubbs/python-sc2
6753cbbf745bc5b64f6882d4d0cbd31998e584ea
[ "MIT" ]
null
null
null
examples/observer_easy_vs_easy.py
james-m-tubbs/python-sc2
6753cbbf745bc5b64f6882d4d0cbd31998e584ea
[ "MIT" ]
null
null
null
examples/observer_easy_vs_easy.py
james-m-tubbs/python-sc2
6753cbbf745bc5b64f6882d4d0cbd31998e584ea
[ "MIT" ]
null
null
null
from sc2 import Race, Difficulty from sc2.player import Computer def main(): sc2.run_game(sc2.maps.get("Abyssal Reef LE"), [ Bot(Race.Protoss, CannonRushBot()), Computer(Race.Protoss, Difficulty.Medium) ], realtime=True) if __name__ == '__main__': main()
22
51
0.667832
36
286
5.055556
0.666667
0.076923
0
0
0
0
0
0
0
0
0
0.017467
0.199301
286
12
52
23.833333
0.777293
0
0
0
0
0
0.08042
0
0
0
0
0
0
1
0.111111
true
0
0.222222
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
008e6eba28b58655ef68e670cfbd027e175076b3
288
py
Python
pico/blink.py
raushanraja/IOTExmaples
1973381b99e4a4bd3303b9e3c2739c7482b27ea4
[ "Unlicense" ]
null
null
null
pico/blink.py
raushanraja/IOTExmaples
1973381b99e4a4bd3303b9e3c2739c7482b27ea4
[ "Unlicense" ]
null
null
null
pico/blink.py
raushanraja/IOTExmaples
1973381b99e4a4bd3303b9e3c2739c7482b27ea4
[ "Unlicense" ]
null
null
null
from machine import Pin import utime #button = Pin(6,Pin.OUT,Pin.PULL_DOWN) button = Pin(4,Pin.IN,Pin.PULL_UP) print(button.value()) utime.sleep(2) button.init(button.IN, button.PULL_DOWN) print(button.value()) utime.sleep(2) button.init(button.IN, button.PULL_UP) print(button.value())
22.153846
40
0.756944
51
288
4.196078
0.352941
0.154206
0.224299
0.158879
0.626168
0.514019
0.514019
0.514019
0.514019
0.514019
0
0.015038
0.076389
288
12
41
24
0.789474
0.128472
0
0.5
0
0
0
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.3
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
009224dcb6a4b12ef4a8c46809d2c7ca17b267ae
4,241
py
Python
launcher.py
illusion0001/py-patcher
77d08fec6bbf30f9d2820fb8e6baac5ef6a46933
[ "MIT" ]
6
2022-03-06T14:20:09.000Z
2022-03-20T22:38:32.000Z
launcher.py
illusion0001/py-patcher
77d08fec6bbf30f9d2820fb8e6baac5ef6a46933
[ "MIT" ]
null
null
null
launcher.py
illusion0001/py-patcher
77d08fec6bbf30f9d2820fb8e6baac5ef6a46933
[ "MIT" ]
null
null
null
from src.main import loadConfig import argparse import base64 import logging as logs import coloredlogs if __name__ == "__main__": # Basic Logs Config logs.basicConfig() coloredlogs.install(level=logs.INFO) # Basic CLI config parser = argparse.ArgumentParser( prog="launcher.py", des...
50.488095
140
0.640887
227
4,241
11.828194
0.484582
0.026816
0.050652
0.044693
0.047672
0.047672
0
0
0
0
0
0.035035
0.293327
4,241
83
141
51.096386
0.860861
0.018628
0
0.155844
0
0
0.484608
0.387686
0
0
0
0
0
1
0
false
0
0.064935
0
0.064935
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0093532f37326f017db6a1a9dfc68504c15785c8
585
py
Python
backend/configuration/urls.py
victor-42/pws-secrets
108aa442801e2133a954a3e55054c0a12e7f563b
[ "MIT" ]
3
2021-08-06T22:41:09.000Z
2021-12-23T10:28:39.000Z
backend/configuration/urls.py
victor-42/pws-secrets
108aa442801e2133a954a3e55054c0a12e7f563b
[ "MIT" ]
null
null
null
backend/configuration/urls.py
victor-42/pws-secrets
108aa442801e2133a954a3e55054c0a12e7f563b
[ "MIT" ]
null
null
null
from django.conf import settings from django.conf.urls import url from django.conf.urls.static import static from api.views import SecretView, AngularTemplateView, SecretImageView, SecretImageFileView urlpatterns = [ url(r'^api/secret/$', SecretView.as_view(), name='secret'), url(r'^api/secret-image/$', Secre...
45
92
0.748718
76
585
5.671053
0.342105
0.037123
0.092807
0.090487
0.180974
0
0
0
0
0
0
0
0.095727
585
12
93
48.75
0.814745
0
0
0
0
0
0.164103
0.037607
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
00967bd637a23b787021aa1f3d54debbff3ab5fb
5,669
py
Python
reference-markers.py
kunal-kadam/matplotlib
424bc92d804e140eaa43a9659c14ccab60523105
[ "BSD-2-Clause" ]
2,960
2019-08-11T15:36:09.000Z
2022-03-31T15:42:36.000Z
reference-markers.py
HongLau/matplotlib-cheatsheet
424bc92d804e140eaa43a9659c14ccab60523105
[ "BSD-2-Clause" ]
4
2019-08-15T11:32:20.000Z
2021-01-12T16:50:19.000Z
reference-markers.py
HongLau/matplotlib-cheatsheet
424bc92d804e140eaa43a9659c14ccab60523105
[ "BSD-2-Clause" ]
445
2019-08-12T06:56:26.000Z
2022-03-25T06:18:02.000Z
import numpy as np import matplotlib.pyplot as plt fig = plt.figure(figsize=(4.25,8*.55)) ax = fig.add_axes([0,0,1,1], xlim=[0,11], ylim=[0.5,8.5], frameon=False, xticks=[], yticks=[]) #, aspect=1) X = np.linspace(1,10,10) Y = np.zeros(len(X)) y = 8 # Marker edge color # ----------------------...
40.205674
87
0.491445
882
5,669
3.157596
0.143991
0.043088
0.033034
0.028725
0.674327
0.67289
0.643806
0.609695
0.605027
0.605027
0
0.056237
0.165638
5,669
140
88
40.492857
0.530021
0.133886
0
0.401961
0
0
0.198651
0.004292
0
0
0
0
0
1
0
false
0
0.019608
0
0.019608
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
00a0af81b21a72f468dace443b20c2e72d9f2027
6,530
py
Python
xen/xen-4.2.2/tools/python/xen/xm/setpolicy.py
zhiming-shen/Xen-Blanket-NG
47e59d9bb92e8fdc60942df526790ddb983a5496
[ "Apache-2.0" ]
1
2018-02-02T00:15:26.000Z
2018-02-02T00:15:26.000Z
xen/xen-4.2.2/tools/python/xen/xm/setpolicy.py
zhiming-shen/Xen-Blanket-NG
47e59d9bb92e8fdc60942df526790ddb983a5496
[ "Apache-2.0" ]
null
null
null
xen/xen-4.2.2/tools/python/xen/xm/setpolicy.py
zhiming-shen/Xen-Blanket-NG
47e59d9bb92e8fdc60942df526790ddb983a5496
[ "Apache-2.0" ]
1
2019-05-27T09:47:18.000Z
2019-05-27T09:47:18.000Z
#============================================================================ # This library is free software; you can redistribute it and/or # modify it under the terms of version 2.1 of the GNU Lesser General Public # License as published by the Free Software Foundation. # # This library is distributed in the hope th...
35.879121
77
0.56294
745
6,530
4.797315
0.332886
0.015109
0.023783
0.026581
0.29155
0.277001
0.238109
0.13822
0.13822
0.13822
0
0.01319
0.315008
6,530
181
78
36.077348
0.785826
0.150689
0
0.229008
0
0
0.182121
0.010365
0
0
0.00111
0
0
0
null
null
0
0.091603
null
null
0.015267
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
00a7637a92f956e02ad596c11a1c04c9cf79ecf8
1,269
py
Python
class_exercises/loop_split.py
klp/cuny_gc_python_class_sp2022
5614d5a1c790bac211f1221b7c727b59e9e05ca1
[ "BSD-2-Clause" ]
null
null
null
class_exercises/loop_split.py
klp/cuny_gc_python_class_sp2022
5614d5a1c790bac211f1221b7c727b59e9e05ca1
[ "BSD-2-Clause" ]
null
null
null
class_exercises/loop_split.py
klp/cuny_gc_python_class_sp2022
5614d5a1c790bac211f1221b7c727b59e9e05ca1
[ "BSD-2-Clause" ]
null
null
null
from os import nice random_string = """Vermont is famous for its verdant summer landscapes and postcard-worthy fall colors. But it’s the Green Mountain State’s winter landscape that truly sparks my photographic eye. New snow transforms the dull shades of stick season into a fresh palette of photographic possibilit...
31.725
80
0.751773
205
1,269
4.604878
0.6
0.042373
0.027542
0.027542
0
0
0
0
0
0
0
0.001953
0.193065
1,269
39
81
32.538462
0.919922
0.37037
0
0
0
0
0.711367
0
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
00a855c635dc5c650f9f0a5260b347e1a3e75402
1,224
py
Python
medium/simplefyPath.py
jayzane/leetcodePy
27fbad4a4a94a60bed6cfa89cbef6ce17fa5e7d5
[ "Apache-2.0" ]
null
null
null
medium/simplefyPath.py
jayzane/leetcodePy
27fbad4a4a94a60bed6cfa89cbef6ce17fa5e7d5
[ "Apache-2.0" ]
null
null
null
medium/simplefyPath.py
jayzane/leetcodePy
27fbad4a4a94a60bed6cfa89cbef6ce17fa5e7d5
[ "Apache-2.0" ]
null
null
null
class Solution: def simplifyPath(self, path: str) -> str: markMap = {'/': '/', '.': '.'} stack = [] for s in path: if s in markMap: topEle = stack.pop() if stack else None if topEle != markMap[s]: if topEle: ...
27.2
55
0.392974
121
1,224
3.909091
0.355372
0.038055
0.080338
0.097252
0
0
0
0
0
0
0
0.012121
0.460784
1,224
44
56
27.818182
0.704545
0.022059
0
0.166667
0
0
0.036052
0.018026
0
0
0
0
0
1
0.055556
false
0.055556
0
0
0.166667
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
00ad6aa94b11109ec3cb9247063643c7576d5364
2,015
py
Python
compare.py
fralomba/Forensics-Analysis-Of-Audio-Files
35d87aeb8a9511a361f75a35d1588cc3da4d353b
[ "MIT" ]
2
2019-07-02T12:04:25.000Z
2021-02-24T21:49:19.000Z
compare.py
fralomba/Forensics-Analysis-Of-Audio-Files
35d87aeb8a9511a361f75a35d1588cc3da4d353b
[ "MIT" ]
null
null
null
compare.py
fralomba/Forensics-Analysis-Of-Audio-Files
35d87aeb8a9511a361f75a35d1588cc3da4d353b
[ "MIT" ]
null
null
null
#http://pymysql.readthedocs.io/en/latest/user/examples.html import sys import utils def perpareToJSON(dic1, dic2, blackList, ignoredList): string = '[\n' for key in dic1: if key not in ignoredList: if key in dic2: string += "{ 'label':'" + str(key).replace("'",'"') + "', 'alert':'" + str((key in blackLis...
34.152542
241
0.633747
250
2,015
4.92
0.304
0.05122
0.019512
0.02439
0.282927
0.282927
0.206504
0.164228
0.121951
0.121951
0
0.019332
0.152854
2,015
58
242
34.741379
0.70123
0.086849
0
0.186047
0
0
0.135224
0
0
0
0
0
0
0
null
null
0
0.046512
null
null
0.046512
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
00b22e77ecc8a89b1345ee8da020bb63be57db18
2,419
py
Python
tests/cp2/test_cp2_ccall_fast.py
capt-hb/cheritest
d3b3637a81a0005ee7272eca0f33a9f9911fdb32
[ "Apache-2.0" ]
null
null
null
tests/cp2/test_cp2_ccall_fast.py
capt-hb/cheritest
d3b3637a81a0005ee7272eca0f33a9f9911fdb32
[ "Apache-2.0" ]
2
2020-06-02T13:44:55.000Z
2020-06-02T14:06:29.000Z
tests/cp2/test_cp2_ccall_fast.py
capt-hb/cheritest
d3b3637a81a0005ee7272eca0f33a9f9911fdb32
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2016 Alexandre Joannou # Copyright (c) 2013 Michael Roe # All rights reserved. # # This software was developed by SRI International and the University of # Cambridge Computer Laboratory under DARPA/AFRL contract FA8750-10-C-0237 # ("CTSRD"), as part of the DARPA CRASH research programme. # # @BERI_LIC...
40.316667
77
0.725506
351
2,419
4.908832
0.438746
0.058038
0.041788
0.055717
0.267557
0.184562
0.135229
0.10679
0.10679
0.10679
0
0.029851
0.196776
2,419
59
78
41
0.856922
0.577925
0
0
0
0
0.256729
0
0
0
0.022774
0
0.277778
1
0.277778
false
0
0.055556
0
0.388889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
00b81ef6f7ced40946716530efb6216a3a20e7ee
1,782
py
Python
pickles/migrations/0001_initial.py
horatius83/thepicklebook
caf02e1c560bfd1ef7077d85d055d9dfdd6e9073
[ "MIT" ]
null
null
null
pickles/migrations/0001_initial.py
horatius83/thepicklebook
caf02e1c560bfd1ef7077d85d055d9dfdd6e9073
[ "MIT" ]
null
null
null
pickles/migrations/0001_initial.py
horatius83/thepicklebook
caf02e1c560bfd1ef7077d85d055d9dfdd6e9073
[ "MIT" ]
null
null
null
# Generated by Django 4.0.3 on 2022-03-20 02:34 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Pickle', fields=[ ...
37.125
117
0.570707
175
1,782
5.702857
0.325714
0.04008
0.056112
0.088176
0.539078
0.539078
0.539078
0.539078
0.539078
0.539078
0
0.01735
0.28844
1,782
47
118
37.914894
0.769716
0.025253
0
0.55
1
0
0.07781
0
0
0
0
0
0
1
0
false
0
0.05
0
0.15
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
00b9b121653ccb416fff5c294fbe6e27a119a9be
377
py
Python
setup.py
truenas/py-fenced
31f63df842134349952be9b17e40723a3b76b98c
[ "BSD-3-Clause" ]
1
2021-04-02T20:01:15.000Z
2021-04-02T20:01:15.000Z
setup.py
truenas/py-fenced
31f63df842134349952be9b17e40723a3b76b98c
[ "BSD-3-Clause" ]
1
2022-02-21T12:20:15.000Z
2022-02-21T12:55:11.000Z
setup.py
truenas/py-fenced
31f63df842134349952be9b17e40723a3b76b98c
[ "BSD-3-Clause" ]
null
null
null
from setuptools import find_packages, setup setup( name='fenced', version='0.0.1', description='TrueNAS SCALE Fencing Daemon', packages=find_packages(), classifiers=[ 'Programming Language :: Python :: 3', ], install_requires=[], entry_points={ 'console_scripts': [ ...
19.842105
47
0.583554
36
377
5.972222
0.777778
0.111628
0
0
0
0
0
0
0
0
0
0.014706
0.278515
377
18
48
20.944444
0.775735
0
0
0.125
0
0
0.302387
0
0
0
0
0
0
1
0
true
0
0.0625
0
0.0625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
00bab63c362727001a4c6ce7f81b111d198c544f
904
py
Python
src/request_executors.py
adelbertkuhl/simple-data-pipeline
e99d9015e862745f34b7e32c24399a780463ec4a
[ "MIT" ]
null
null
null
src/request_executors.py
adelbertkuhl/simple-data-pipeline
e99d9015e862745f34b7e32c24399a780463ec4a
[ "MIT" ]
null
null
null
src/request_executors.py
adelbertkuhl/simple-data-pipeline
e99d9015e862745f34b7e32c24399a780463ec4a
[ "MIT" ]
null
null
null
from apis import IEXAPI class RequestExecutor: message = """{ticker},{epoch_timestamp},{price}""" tickers = ['BTCUSDT'] def _reformat_response(self, deserialized_response): tickers = next(item for item in deserialized_response) quotes = list(deserialized_response.values()) prices...
33.481481
81
0.667035
94
904
6.202128
0.414894
0.205832
0.046312
0.051458
0
0
0
0
0
0
0
0
0.237832
904
26
82
34.769231
0.846154
0
0
0
0
0
0.081858
0.037611
0
0
0
0
0
1
0.095238
false
0
0.047619
0
0.380952
0.047619
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
00bc63dc8e3839f301fef7682c2c63e16590ce48
510
py
Python
Monte-Carlo-Pythonista.py
Steftet/Monte-Carlo
b24aa10728b0b5e5556ce337fe1461a052f74d4e
[ "MIT" ]
null
null
null
Monte-Carlo-Pythonista.py
Steftet/Monte-Carlo
b24aa10728b0b5e5556ce337fe1461a052f74d4e
[ "MIT" ]
null
null
null
Monte-Carlo-Pythonista.py
Steftet/Monte-Carlo
b24aa10728b0b5e5556ce337fe1461a052f74d4e
[ "MIT" ]
null
null
null
import math import random import canvas f = 200 h = 0 canvas.set_size(f, f) canvas.set_fill_color(1, 1, 1) canvas.fill_rect(0,0,f,f) k = int(input('Number of dots: ')) for i in range(0,k): x = (random.randint(0,f)/f) y = (random.randint(0,f)/f) if math.sqrt(math.pow(x,2)+math.pow(y,2))<=1: h+=1 ...
18.214286
49
0.603922
105
510
2.838095
0.333333
0.120805
0.130872
0.181208
0.369128
0.134228
0.134228
0.134228
0
0
0
0.067164
0.211765
510
27
50
18.888889
0.674129
0
0
0.090909
0
0
0.031373
0
0
0
0
0
0
1
0
false
0
0.136364
0
0.136364
0.090909
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
00c22c75141de861b8fbd50f7ca02d4edecc1385
5,578
py
Python
Competitive Programming/Design Patterns/Behavioural/Visitor.py
shreejitverma/GeeksforGeeks
d7bcb166369fffa9a031a258e925b6aff8d44e6c
[ "MIT" ]
2
2022-02-18T05:14:28.000Z
2022-03-08T07:00:08.000Z
Competitive Programming/Design Patterns/Behavioural/Visitor.py
shivaniverma1/Competitive-Programming-1
d7bcb166369fffa9a031a258e925b6aff8d44e6c
[ "MIT" ]
6
2022-01-13T04:31:04.000Z
2022-03-12T01:06:16.000Z
Competitive Programming/Design Patterns/Behavioural/Visitor.py
shivaniverma1/Competitive-Programming-1
d7bcb166369fffa9a031a258e925b6aff8d44e6c
[ "MIT" ]
2
2022-02-14T19:53:53.000Z
2022-02-18T05:14:30.000Z
""" Visitor Method is a Behavioral Design Pattern which allows us to separate the algorithm from an object structure on which it operates. It helps us to add new features to an existing class hierarchy dynamically without changing it. All the behavioral patterns proved as the best methods to handle the communication be...
40.715328
437
0.778415
866
5,578
4.987298
0.311778
0.0301
0.019449
0.013892
0.083353
0.054179
0.041676
0.041676
0.041676
0.021301
0
0.000218
0.177304
5,578
136
438
41.014706
0.937241
0.464145
0
0.257143
0
0
0.023516
0
0
0
0
0
0
1
0.2
false
0.085714
0
0.057143
0.457143
0.057143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
00c926c130f69bc16bafa916d0ec7a727b57af9c
3,279
py
Python
agentpycell/__init__.py
kjph/py-agentmdl
3ea4dc483ccc689f172de408de9de55f723349a3
[ "MIT" ]
null
null
null
agentpycell/__init__.py
kjph/py-agentmdl
3ea4dc483ccc689f172de408de9de55f723349a3
[ "MIT" ]
null
null
null
agentpycell/__init__.py
kjph/py-agentmdl
3ea4dc483ccc689f172de408de9de55f723349a3
[ "MIT" ]
null
null
null
""" ABM: Agent Based Modelling The base class Cell provides one method update() that will be called on every tick. Ticks are generated by Grids - a collection of Cell object """ import abc import copy from . import utils class SimpleCell(abc.ABC): """ The simple cell only exposes an .update method which sh...
30.64486
80
0.593169
464
3,279
4.047414
0.297414
0.01278
0.017572
0.011182
0.162939
0.13951
0.13951
0.088392
0.088392
0.046858
0
0.009599
0.301006
3,279
106
81
30.933962
0.809773
0.282708
0
0.172414
1
0
0.013399
0
0
0
0
0
0
1
0.155172
false
0.034483
0.051724
0.017241
0.275862
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
00cb7f50c7dd6da029e4eff65652d1030d53d5ce
5,227
py
Python
commandServer.py
caiorss/vboxcontrol
02fb84effb9e07ee66499a768622e495b79e90a9
[ "Unlicense" ]
null
null
null
commandServer.py
caiorss/vboxcontrol
02fb84effb9e07ee66499a768622e495b79e90a9
[ "Unlicense" ]
null
null
null
commandServer.py
caiorss/vboxcontrol
02fb84effb9e07ee66499a768622e495b79e90a9
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ """ from subprocess import PIPE, Popen import platform import os import sys import re import zlib from socket import socket from socket import AF_INET, SOCK_STREAM, SHUT_RDWR from socket import SOL_SOCKET, SO_REUSEADDR localhost = '127.0.0.1' allhosts = '0.0.0.0' ...
24.890476
94
0.515783
545
5,227
4.891743
0.352294
0.007502
0.006752
0.004501
0.045761
0.024006
0
0
0
0
0
0.022446
0.335183
5,227
209
95
25.009569
0.744748
0.09164
0
0.160305
0
0.007634
0.206257
0.024804
0
0
0
0.004785
0
0
null
null
0.022901
0.083969
null
null
0.038168
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
00d097b5b235d9dd4d146287f7356c8fd7da08c0
2,718
py
Python
tests/instance_properties/test_core.py
sad2project/descriptor-tools
ebeaba07e8519dbda25ddaa34ce9a9c49891e2bb
[ "CC0-1.0" ]
10
2015-12-15T02:17:49.000Z
2021-08-15T12:25:06.000Z
tests/instance_properties/test_core.py
sad2project/descriptor-tools
ebeaba07e8519dbda25ddaa34ce9a9c49891e2bb
[ "CC0-1.0" ]
1
2016-06-26T22:21:08.000Z
2016-06-27T05:29:53.000Z
tests/instance_properties/test_core.py
sad2project/descriptor-tools
ebeaba07e8519dbda25ddaa34ce9a9c49891e2bb
[ "CC0-1.0" ]
3
2017-11-19T01:16:30.000Z
2019-10-08T23:22:29.000Z
# coding=utf-8 from unittest import TestCase from descriptor_tools.instance_properties import ( InstanceProperty) class MockDelegatedProperty: def __init__(self, value): self.value = value self.get_called = False self.set_called = False def set...
28.610526
103
0.676968
290
2,718
5.982759
0.217241
0.110663
0.064553
0.084726
0.460519
0.4317
0.385014
0.385014
0.287032
0.287032
0
0.006423
0.255335
2,718
94
104
28.914894
0.850791
0.004415
0
0.365079
0
0
0.013314
0
0
0
0
0
0.126984
1
0.206349
false
0.015873
0.031746
0
0.31746
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
00d3ce7a80766d039b044013c2ae2d16aa1b7e3d
5,252
py
Python
lm_training/utils/train_lm.py
jagadeesh6jaga/indicAsr--inference
569f867ed2d72cbd225f83d9b004666cf5c76c35
[ "MIT" ]
8
2021-12-11T12:26:20.000Z
2022-03-22T13:38:42.000Z
lm_training/utils/train_lm.py
jagadeesh6jaga/indicAsr--inference
569f867ed2d72cbd225f83d9b004666cf5c76c35
[ "MIT" ]
15
2022-01-08T11:59:49.000Z
2022-03-26T15:52:36.000Z
lm_training/utils/train_lm.py
jagadeesh6jaga/indicAsr--inference
569f867ed2d72cbd225f83d9b004666cf5c76c35
[ "MIT" ]
2
2022-01-27T22:58:04.000Z
2022-02-22T09:53:50.000Z
#This code has been taken from https://github.com/mozilla/DeepSpeech/blob/master/data/lm/generate_lm.py import argparse import os import subprocess from tqdm import tqdm import shutil def convert_and_filter_topk(args): """ Convert to lowercase, count word occurrences and save top-k words to a file """ lexico...
30.183908
142
0.582254
658
5,252
4.471125
0.264438
0.024473
0.040789
0.057104
0.396669
0.373216
0.305574
0.209041
0.110469
0.032631
0
0.000536
0.289033
5,252
173
143
30.358382
0.787359
0.069878
0
0.244898
1
0.020408
0.262272
0
0
0
0
0
0
1
0.020408
false
0
0.034014
0
0.061224
0.034014
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
00e0fa8917594d6c0c8aa901c5548f92fa1fe7c9
424
py
Python
python/py-sets/py-check-strict-superset.py
PingHuskar/hackerrank
1bfdbc63de5d0f94cd9e6ae250476b4a267662f2
[ "Unlicense" ]
41
2018-05-11T07:54:34.000Z
2022-03-29T19:02:32.000Z
python/py-sets/py-check-strict-superset.py
PingHuskar/hackerrank
1bfdbc63de5d0f94cd9e6ae250476b4a267662f2
[ "Unlicense" ]
2
2021-09-13T10:03:26.000Z
2021-10-04T10:21:05.000Z
python/py-sets/py-check-strict-superset.py
PingHuskar/hackerrank
1bfdbc63de5d0f94cd9e6ae250476b4a267662f2
[ "Unlicense" ]
21
2019-01-23T19:06:59.000Z
2021-12-23T16:03:47.000Z
# Python > Sets > Check Strict Superset # Check if A is a strict superset of the other given sets. # # https://www.hackerrank.com/challenges/py-check-strict-superset/problem # a = set(map(int, input().split())) strict_superset = True for _ in range(int(input())): x = set(map(int, input().split())) if not ((len...
28.266667
72
0.648585
65
424
4.169231
0.553846
0.309963
0.140221
0.103321
0.140221
0
0
0
0
0
0
0.005865
0.195755
424
14
73
30.285714
0.788856
0.389151
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.125
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
00e25504336e5532acd0e82c245ee8d575ad44d6
289
py
Python
CLIP/bin/calc_reads_per_bin.py
asclab/pub-ews-clip
a6722a711c658bf8c6797558e9afe89d1a1b2dab
[ "BSD-3-Clause" ]
null
null
null
CLIP/bin/calc_reads_per_bin.py
asclab/pub-ews-clip
a6722a711c658bf8c6797558e9afe89d1a1b2dab
[ "BSD-3-Clause" ]
null
null
null
CLIP/bin/calc_reads_per_bin.py
asclab/pub-ews-clip
a6722a711c658bf8c6797558e9afe89d1a1b2dab
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # Input file: EWS.enriched.bins.txt import sys counter = {} for line in sys.stdin: if line[0] == '#': continue cols = line.strip().split('\t') if 'count' in cols[4]: continue # just print EWS1 + EWS2 print int(cols[4]) + int(cols[5])
20.642857
37
0.574394
43
289
3.860465
0.72093
0.060241
0
0
0
0
0
0
0
0
0
0.027907
0.256055
289
13
38
22.230769
0.744186
0.252595
0
0.222222
0
0
0.037559
0
0
0
0
0
0
0
null
null
0
0.111111
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
0
0
0
0
0
0
1
00ed19520d1c449e39b8934c5dbc29a5d479a3f8
5,763
py
Python
scripts/agents/metrics.py
bhillmann/hexalys
c6c102b90e2684f1c85992eaae6325b8be0c8aa6
[ "MIT" ]
null
null
null
scripts/agents/metrics.py
bhillmann/hexalys
c6c102b90e2684f1c85992eaae6325b8be0c8aa6
[ "MIT" ]
null
null
null
scripts/agents/metrics.py
bhillmann/hexalys
c6c102b90e2684f1c85992eaae6325b8be0c8aa6
[ "MIT" ]
null
null
null
# By Nick Erickson # Contains functions related to metrics import sys import numpy as np from utils import graph_helper from utils.data_utils import save_class class Metrics: # TODO: Save this to a pickle file? def __init__(self, metric_type='a3c'): self.type = metric_type # self.survival_time...
37.422078
321
0.575221
735
5,763
4.35102
0.163265
0.060038
0.058474
0.041276
0.318324
0.256098
0.213884
0.179487
0.152908
0.098812
0
0.015731
0.283012
5,763
153
322
37.666667
0.758228
0.132049
0
0.12
0
0
0.07102
0
0
0
0
0.013072
0
1
0.14
false
0
0.04
0
0.22
0.03
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
00f3bbc97594d25a8b1ca1dd47690402eccbf5d5
1,846
py
Python
api/serializers.py
SergioLeguizamon/prueba_tecnica_quick
1d09afa6ba4ed60221a88f7f2bd0811482860733
[ "MIT" ]
null
null
null
api/serializers.py
SergioLeguizamon/prueba_tecnica_quick
1d09afa6ba4ed60221a88f7f2bd0811482860733
[ "MIT" ]
null
null
null
api/serializers.py
SergioLeguizamon/prueba_tecnica_quick
1d09afa6ba4ed60221a88f7f2bd0811482860733
[ "MIT" ]
null
null
null
from rest_framework import serializers from django.db.models import fields from django.contrib.auth.models import User from .models import Clients, Products, Bills, BillsProducts class UserSerializer(serializers.Serializer): id = serializers.ReadOnlyField() first_name = serializers.CharField() last_name =...
34.185185
98
0.678765
196
1,846
6.244898
0.367347
0.058824
0.061275
0.114379
0.184641
0
0
0
0
0
0
0.000681
0.204767
1,846
54
99
34.185185
0.833106
0
0
0.095238
0
0
0.134813
0
0
0
0
0
0
1
0.047619
false
0.047619
0.095238
0
0.547619
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
da9b63878204a63022e41fc407896dede115d369
863
py
Python
phasespace/fromdecay/__init__.py
eduardo-rodrigues/phasespace
d6bfca58862cbbb8a9bdfd4ab8af659991ea0da6
[ "BSD-3-Clause" ]
null
null
null
phasespace/fromdecay/__init__.py
eduardo-rodrigues/phasespace
d6bfca58862cbbb8a9bdfd4ab8af659991ea0da6
[ "BSD-3-Clause" ]
null
null
null
phasespace/fromdecay/__init__.py
eduardo-rodrigues/phasespace
d6bfca58862cbbb8a9bdfd4ab8af659991ea0da6
[ "BSD-3-Clause" ]
null
null
null
"""This submodule makes it possible for `phasespace` and `DecayLanguage` to work together. More generally, the `GenMultiDecay` object can also be used as a high-level interface for simulating particles that can decay in multiple different ways. """ import sys from typing import Tuple from .genmultidecay impor...
30.821429
111
0.707995
104
863
5.75
0.605769
0.053512
0.050167
0.073579
0
0
0
0
0
0
0
0.017884
0.22248
863
27
112
31.962963
0.873323
0.332561
0
0
0
0
0.29128
0.038961
0
0
0
0
0
1
0.0625
false
0
0.375
0.0625
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
0
0
1
0
0
0
0
1
da9d63b81e0afe17146282e05fee0b0892122bb6
457
py
Python
covidframe/ml/imagenet.py
covid-frame/covid-frame
32d50cafa3ba3388cd44cdb49136727b870def62
[ "Apache-2.0" ]
null
null
null
covidframe/ml/imagenet.py
covid-frame/covid-frame
32d50cafa3ba3388cd44cdb49136727b870def62
[ "Apache-2.0" ]
null
null
null
covidframe/ml/imagenet.py
covid-frame/covid-frame
32d50cafa3ba3388cd44cdb49136727b870def62
[ "Apache-2.0" ]
null
null
null
from keras.applications import VGG16 def create_model(img_width, img_height): conv_base = VGG16(weights='imagenet', include_top=False, input_shape=( img_width, img_height, 3)) # 3 = number of channels in RGB pictures return conv_base def compile_model(model): model.compile(optimizer=optimizer...
21.761905
76
0.665208
58
457
5.034483
0.689655
0.10274
0.075342
0.116438
0
0
0
0
0
0
0
0.017045
0.229759
457
20
77
22.85
0.8125
0.083151
0
0
0
0
0.071942
0
0
0
0
0
0
1
0.272727
false
0
0.090909
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
daa047340a12357e898e0edbb403a1a9c7111301
1,324
py
Python
src/options/timer_options.py
anglixjtu/MeshCNN_
83826e66d8989ed4967047c2ed6d099568c5781c
[ "MIT" ]
2
2021-08-02T05:39:43.000Z
2021-08-04T04:15:02.000Z
src/options/timer_options.py
anglixjtu/MeshCNN_
83826e66d8989ed4967047c2ed6d099568c5781c
[ "MIT" ]
null
null
null
src/options/timer_options.py
anglixjtu/MeshCNN_
83826e66d8989ed4967047c2ed6d099568c5781c
[ "MIT" ]
null
null
null
from .base_options import BaseOptions class TimerOptions(BaseOptions): def initialize(self): BaseOptions.initialize(self) self.parser.add_argument('--results_dir', type=str, default='./results/', help='saves results here.') self.parser.add_argument('--feature_dir', type=str, default='./fea...
77.882353
147
0.699396
181
1,324
4.955801
0.381215
0.111483
0.144928
0.234114
0.284281
0.098105
0.098105
0.098105
0
0
0
0.007958
0.14577
1,324
17
148
77.882353
0.785146
0
0
0
0
0
0.353962
0
0
0
0
0
0
1
0.066667
false
0
0.066667
0
0.2
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
daa528c94b1125fa8f5f9603f88f3f3061379760
18,429
py
Python
ntopo/train.py
JonasZehn/ntopo
d3e17ca4cfb1d7a71c4c4f0c965cfcdc67d53fa9
[ "MIT" ]
4
2021-10-30T15:10:31.000Z
2021-12-27T08:56:17.000Z
ntopo/train.py
liyuesolo/ntopo-1
d3e17ca4cfb1d7a71c4c4f0c965cfcdc67d53fa9
[ "MIT" ]
null
null
null
ntopo/train.py
liyuesolo/ntopo-1
d3e17ca4cfb1d7a71c4c4f0c965cfcdc67d53fa9
[ "MIT" ]
1
2022-01-02T13:09:15.000Z
2022-01-02T13:09:15.000Z
import os import time import numpy as np import tensorflow as tf from tqdm import tqdm from ntopo.monitors import SimulationMonitor from ntopo.physics import compute_elasticity_energies, compute_opt_energy, compute_volume_penalty from ntopo.filter import apply_sensitivity_filter from ntopo.utils import write_to_file...
44.514493
169
0.675566
2,249
18,429
5.128946
0.08715
0.045774
0.028088
0.040052
0.778674
0.714348
0.673429
0.640659
0.619506
0.586909
0
0.004672
0.245103
18,429
413
170
44.622276
0.824468
0
0
0.603659
0
0.003049
0.036846
0.008845
0
0
0
0
0.009146
1
0.04878
false
0
0.033537
0
0.103659
0.015244
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
0
0
0
0
0
0
1
daa71efd1db40a31c64d874f50729bf5397d345d
1,906
py
Python
tests/tableTests.py
AlexImmer/WikitablesToTriples
5d86489483ca32d19fc11c48707b671fb9dbfcb1
[ "MIT" ]
3
2015-09-10T15:18:53.000Z
2016-06-18T14:12:36.000Z
tests/tableTests.py
AlexImmer/WikitablesToTriples
5d86489483ca32d19fc11c48707b671fb9dbfcb1
[ "MIT" ]
2
2020-05-28T11:08:30.000Z
2021-03-31T18:40:30.000Z
tests/tableTests.py
AlexImmer/WikitablesToTriples
5d86489483ca32d19fc11c48707b671fb9dbfcb1
[ "MIT" ]
1
2020-01-29T09:20:11.000Z
2020-01-29T09:20:11.000Z
import unittest from wikitables.table import Table from testClasses import TestPage with open ("tests/data/List_of_national_parks_of_the_United_States.html", "r") as html_page: text = html_page.read().replace('\n', '') class TestTableInit(unittest.TestCase): def setUp(self): self.page = TestPage(tex...
32.862069
109
0.675236
258
1,906
4.767442
0.290698
0.109756
0.035772
0.045528
0.372358
0.336585
0.243902
0.195122
0.195122
0.117073
0
0.009785
0.195698
1,906
57
110
33.438596
0.792564
0.016264
0
0.097561
0
0
0.128137
0.0315
0
0
0
0
0.341463
1
0.268293
false
0
0.073171
0
0.390244
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
daae9df32d246183515db8e74d555c8793c010e1
488
py
Python
shop/migrations/0014_auto_20200120_2035.py
rafkolacz/PodajLape
be7358ffa6c6e5e6f6fe4bc7ada46f0d7df055d6
[ "PostgreSQL" ]
null
null
null
shop/migrations/0014_auto_20200120_2035.py
rafkolacz/PodajLape
be7358ffa6c6e5e6f6fe4bc7ada46f0d7df055d6
[ "PostgreSQL" ]
null
null
null
shop/migrations/0014_auto_20200120_2035.py
rafkolacz/PodajLape
be7358ffa6c6e5e6f6fe4bc7ada46f0d7df055d6
[ "PostgreSQL" ]
null
null
null
# Generated by Django 3.0.1 on 2020-01-20 19:35 from django.db import migrations, models import shop.models class Migration(migrations.Migration): dependencies = [ ('shop', '0013_auto_20200120_1949'), ] operations = [ migrations.AlterField( model_name='product', ...
24.4
136
0.639344
58
488
5.258621
0.775862
0.065574
0
0
0
0
0
0
0
0
0
0.099462
0.237705
488
19
137
25.684211
0.72043
0.092213
0
0
1
0
0.14966
0.052154
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
daaeb5f227baa564bbc4e4ee7a2ab88b1d145fb1
416
py
Python
users/migrations/0007_alter_starred_concerts_id.py
MorganRoberts00/MyConcerts
650185a8421d52d052763fbf03ec046583863632
[ "MIT" ]
1
2022-01-12T23:08:39.000Z
2022-01-12T23:08:39.000Z
users/migrations/0007_alter_starred_concerts_id.py
Zachhi/MyConcerts
650185a8421d52d052763fbf03ec046583863632
[ "MIT" ]
null
null
null
users/migrations/0007_alter_starred_concerts_id.py
Zachhi/MyConcerts
650185a8421d52d052763fbf03ec046583863632
[ "MIT" ]
null
null
null
# Generated by Django 3.2.9 on 2021-12-01 16:33 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0006_auto_20211117_2144'), ] operations = [ migrations.AlterField( model_name='starred_concerts', name='id'...
21.894737
76
0.620192
45
416
5.6
0.866667
0
0
0
0
0
0
0
0
0
0
0.101974
0.269231
416
18
77
23.111111
0.726974
0.108173
0
0
1
0
0.124661
0.062331
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
dab7ff6f7d5580767751c098903a37a2703ecd3c
468
py
Python
Google It-Cert-Automation/f-Automating-Real-World-Tasks-with-Python/W1/os_walk_three_genx_fail.py
JAL-code/google
3989af94bb72b6fabde95ed50bac1493640d4cf6
[ "MIT" ]
null
null
null
Google It-Cert-Automation/f-Automating-Real-World-Tasks-with-Python/W1/os_walk_three_genx_fail.py
JAL-code/google
3989af94bb72b6fabde95ed50bac1493640d4cf6
[ "MIT" ]
null
null
null
Google It-Cert-Automation/f-Automating-Real-World-Tasks-with-Python/W1/os_walk_three_genx_fail.py
JAL-code/google
3989af94bb72b6fabde95ed50bac1493640d4cf6
[ "MIT" ]
null
null
null
import os import os.path def get_location_for_code(): # :releative location access_area = '/home/joseph/Desktop' # access_area = os.getcwd() return access_area def select_case(): case = 4 return case home_address = get_location_for_code() case = select_case() os.walk(home_address).next()[0] ...
23.4
81
0.707265
72
468
4.388889
0.472222
0.139241
0.094937
0.161392
0.306962
0.240506
0.240506
0.240506
0.240506
0
0
0.020202
0.153846
468
19
82
24.631579
0.777778
0.267094
0
0
0
0
0.059172
0
0
0
0
0
0
1
0.153846
false
0
0.153846
0
0.461538
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
dac8c3ed489595ae8af03592386194327a0affcc
257
py
Python
Exercicios/Ex23.py
angeloridolfi/Python-CEV
fd11b7ea0725f83c84336b99304c50f183514245
[ "MIT" ]
null
null
null
Exercicios/Ex23.py
angeloridolfi/Python-CEV
fd11b7ea0725f83c84336b99304c50f183514245
[ "MIT" ]
null
null
null
Exercicios/Ex23.py
angeloridolfi/Python-CEV
fd11b7ea0725f83c84336b99304c50f183514245
[ "MIT" ]
null
null
null
num = int(input('Digite um número de 0 a 9999:\n')) u = num // 1 % 10 d = num // 10 % 10 c = num // 100 % 100 m = num // 1000 % 1000 print(f'Analisando o número {num}') print(f'Unidade:{u}') print(f'Dezena:{d}') print(f'Centena:{c}') print(f'Milhar:{m}')
19.769231
51
0.587549
49
257
3.081633
0.55102
0.198676
0
0
0
0
0
0
0
0
0
0.12381
0.182879
257
12
52
21.416667
0.595238
0
0
0
0
0
0.381323
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
dacba558be9c5556dc97deb7330b68ccc601680a
167
py
Python
Diena_13_Visualization/random/miss_num.py
edzya/Python_RTU_08_20
d2921d998c611c18328dd523daf976a27ce858c1
[ "MIT" ]
8
2020-08-31T16:10:54.000Z
2021-11-24T06:37:37.000Z
Diena_13_Visualization/random/miss_num.py
edzya/Python_RTU_08_20
d2921d998c611c18328dd523daf976a27ce858c1
[ "MIT" ]
8
2021-06-08T22:30:29.000Z
2022-03-12T00:48:55.000Z
Diena_13_Visualization/random/miss_num.py
edzya/Python_RTU_08_20
d2921d998c611c18328dd523daf976a27ce858c1
[ "MIT" ]
12
2020-09-28T17:06:52.000Z
2022-02-17T12:12:46.000Z
import random nums = [str(n)+"\n" for n in range(1, 51)] random.shuffle(nums) print(nums) nums.pop() with open("missing_number.txt", "w") as f: f.writelines(nums)
20.875
42
0.670659
30
167
3.7
0.733333
0
0
0
0
0
0
0
0
0
0
0.020833
0.137725
167
7
43
23.857143
0.75
0
0
0
0
0
0.125749
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
daccefc813bcf6533f739ab7e77855039705a38d
1,963
py
Python
Trie/634.Word Squares/Solution.py
Zhenye-Na/LxxxCode
afd79d790d0a7495d75e6650f80adaa99bd0ff07
[ "MIT" ]
12
2019-05-04T04:21:27.000Z
2022-03-02T07:06:57.000Z
Trie/634.Word Squares/Solution.py
Zhenye-Na/LxxxCode
afd79d790d0a7495d75e6650f80adaa99bd0ff07
[ "MIT" ]
1
2019-07-24T18:43:53.000Z
2019-07-24T18:43:53.000Z
Trie/634.Word Squares/Solution.py
Zhenye-Na/LxxxCode
afd79d790d0a7495d75e6650f80adaa99bd0ff07
[ "MIT" ]
10
2019-07-01T04:03:04.000Z
2022-03-09T03:57:37.000Z
class TrieNode: def __init__(self): self.children = {} self.is_word = False self.word_list = [] class Trie: def __init__(self): self.root = TrieNode() def add(self, word): node = self.root for ch in word: if ch not in node.children: ...
24.848101
77
0.538971
246
1,963
4.199187
0.239837
0.087125
0.03485
0.046467
0.127783
0.060019
0.060019
0.060019
0.060019
0
0
0.001592
0.360163
1,963
78
78
25.166667
0.82086
0.055527
0
0.185185
0
0
0
0
0
0
0
0.012821
0
1
0.148148
false
0
0
0
0.351852
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
dadf3ed9b04f6470f12f0113ed470f0b639c3816
291
py
Python
setup.py
WolfyLPDC/spanish2datetime
3c5db5b0e6e59567286c9f394890557d9d50e162
[ "MIT" ]
1
2021-11-22T17:40:27.000Z
2021-11-22T17:40:27.000Z
setup.py
msolefonte/spanish2datetime
3c5db5b0e6e59567286c9f394890557d9d50e162
[ "MIT" ]
null
null
null
setup.py
msolefonte/spanish2datetime
3c5db5b0e6e59567286c9f394890557d9d50e162
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='spanish2datetime', version='1.0', description='Python3 script able to turn spanish text into datetime.', author="Marc Solé", author_email="marcsole@insomniacwolves.com", license='LICENSE', packages=['spanish2datetime'] )
26.454545
74
0.707904
32
291
6.40625
0.875
0
0
0
0
0
0
0
0
0
0
0.020747
0.171821
291
11
75
26.454545
0.829876
0
0
0
0
0
0.458904
0.09589
0
0
0
0
0
1
0
true
0
0.1
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
dae25a006d1cb1117ed8b2fe4c8f61d85c1dfe71
476
py
Python
classes/inheritance.py
VictorPinas/python-basics
63358322166becf69bbd2d96c6bffa531456ac5d
[ "MIT" ]
null
null
null
classes/inheritance.py
VictorPinas/python-basics
63358322166becf69bbd2d96c6bffa531456ac5d
[ "MIT" ]
null
null
null
classes/inheritance.py
VictorPinas/python-basics
63358322166becf69bbd2d96c6bffa531456ac5d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Jan 22 18:36:34 2022 @author: victor """ class SARDog(Dog): """Represent a search dog.""" def __init__(self, name): """Initilize the sar dog.""" super().__init__(name) def search(self): """Simulate sear...
19.833333
43
0.565126
64
476
4.015625
0.609375
0.077821
0.077821
0
0
0
0
0
0
0
0
0.039548
0.256303
476
24
44
19.833333
0.686441
0.336134
0
0
0
0
0.12628
0
0
0
0
0
0
1
0.222222
false
0
0
0
0.333333
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
dae800ffa6f6c81d8205d99c1a64fe8460eb79e8
21,339
py
Python
fastpapers/carion2020end.py
ababino/papers
31b6502d150160f697ce34ac888d37ac0e7ad9f2
[ "Apache-2.0" ]
2
2020-11-30T11:01:39.000Z
2021-05-21T00:07:28.000Z
fastpapers/carion2020end.py
ababino/fastpapers
31b6502d150160f697ce34ac888d37ac0e7ad9f2
[ "Apache-2.0" ]
null
null
null
fastpapers/carion2020end.py
ababino/fastpapers
31b6502d150160f697ce34ac888d37ac0e7ad9f2
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: 04_carion2020end.ipynb (unless otherwise specified). __all__ = ['coco_vocab', 'bb_pad', 'ParentSplitter', 'box_cxcywh_to_xyxy', 'box_xyxy_to_cxcywh', 'TensorBBoxWH', 'TensorBBoxTL', 'ToWH', 'ToXYXY', 'ToTL', 'box_area', 'all_op', 'generalized_box_iou', 'DETRLoss',...
45.69379
215
0.634753
3,069
21,339
4.215705
0.184751
0.019555
0.012985
0.017623
0.349127
0.298578
0.276859
0.254522
0.254522
0.231952
0
0.01994
0.212709
21,339
467
216
45.69379
0.750179
0.049018
0
0.181081
1
0
0.106126
0.00592
0
0
0
0
0.016216
1
0.143243
false
0.005405
0.045946
0.056757
0.286486
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
daea62739f3ebdaefddcd10908b331885bbe8bcd
1,063
py
Python
tests/test_models/test_author.py
OliverHofkens/dephell
6303f416018910668f1635b70cd828a2fd2b2d9e
[ "MIT" ]
1,880
2019-03-21T10:08:25.000Z
2022-03-31T12:41:55.000Z
tests/test_models/test_author.py
rachmadaniHaryono/dephell
0ef500c8f2d5f05244bac191b1b1383f68464cd2
[ "MIT" ]
356
2019-03-21T19:08:56.000Z
2021-01-08T17:45:43.000Z
tests/test_models/test_author.py
rachmadaniHaryono/dephell
0ef500c8f2d5f05244bac191b1b1383f68464cd2
[ "MIT" ]
157
2019-04-23T01:13:37.000Z
2022-03-24T22:41:18.000Z
# external import pytest # project from dephell.models.author import Author @pytest.mark.parametrize('name, mail, formatted', [ ('gram', 'example@mail.com', 'gram <example@mail.com>'), ('gram', None, 'gram'), ('Грам @orsinium', 'example_mail@mail.com'...
34.290323
94
0.557855
112
1,063
5.241071
0.223214
0.149915
0.115843
0.122658
0.715503
0.616695
0.616695
0.616695
0.616695
0.616695
0
0
0.28222
1,063
30
95
35.433333
0.769332
0.015052
0
0.571429
0
0
0.331418
0.084291
0
0
0
0
0.142857
1
0.095238
false
0
0.095238
0
0.190476
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
daed5c9ed5fbf2bcdac59913e3386fad0938a9cb
831
py
Python
scripts/warm_ex.py
cp4cds/cmip6_range_check_2
6fca2632029a2adb9736bfc1382b39f82d8a27e1
[ "Apache-2.0" ]
null
null
null
scripts/warm_ex.py
cp4cds/cmip6_range_check_2
6fca2632029a2adb9736bfc1382b39f82d8a27e1
[ "Apache-2.0" ]
1
2021-09-27T15:18:39.000Z
2021-09-27T15:18:39.000Z
scripts/warm_ex.py
cp4cds/cmip6_range_check_2
6fca2632029a2adb9736bfc1382b39f82d8a27e1
[ "Apache-2.0" ]
null
null
null
import warnings def get_user_warning(data): class HERE(UserWarning): pass setattr( HERE, 'data', data ) return HERE class Message(object): def __init__(self,a,b): self.a = a self.b = b def fxn(): ##warnings.warn(Message('sample text','b'), UserWarning ) warnings.warn(...
25.96875
88
0.637786
112
831
4.651786
0.473214
0.023033
0.06334
0.095969
0.115163
0.115163
0
0
0
0
0
0.012232
0.212996
831
31
89
26.806452
0.784404
0.270758
0
0
0
0
0.065436
0
0
0
0
0
0.105263
1
0.157895
false
0.052632
0.052632
0
0.368421
0.105263
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
daef2527ac6d9f73a92aca7b8ece3f66a8db4875
198
py
Python
aulaszeus/modules/buscaCep.py
zerossB/aulas_zeus
002fc29578aed3aa36a9b400882e638b68c123ea
[ "BSD-3-Clause" ]
null
null
null
aulaszeus/modules/buscaCep.py
zerossB/aulas_zeus
002fc29578aed3aa36a9b400882e638b68c123ea
[ "BSD-3-Clause" ]
null
null
null
aulaszeus/modules/buscaCep.py
zerossB/aulas_zeus
002fc29578aed3aa36a9b400882e638b68c123ea
[ "BSD-3-Clause" ]
null
null
null
import re import urllib def get_cep(cep): """.""" url = "" cepCorrigido = re.sub('[^\d]', '', cep) if len(cepCorrigido) != 8: return False; payload = {'relaxation'}
13.2
43
0.520202
22
198
4.636364
0.772727
0
0
0
0
0
0
0
0
0
0
0.007092
0.287879
198
14
44
14.142857
0.716312
0.005051
0
0
0
0
0.078534
0
0
0
0
0
0
1
0.125
false
0
0.25
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
daf3263299ef088c986b08d37248e5a9199e71b6
250
py
Python
python/resistor-color-duo/resistor_color_duo.py
Victor-Chinewubeze/algorithms-exercism
34669348762eef69b68a2f43260ab10ac1c4eb2a
[ "MIT" ]
1
2020-04-16T23:06:33.000Z
2020-04-16T23:06:33.000Z
python/resistor-color-duo/resistor_color_duo.py
Victor-Chinewubeze/algorithms-exercism
34669348762eef69b68a2f43260ab10ac1c4eb2a
[ "MIT" ]
7
2021-05-08T11:46:15.000Z
2021-05-10T19:31:11.000Z
python/resistor-color-duo/resistor_color_duo.py
Victor-Chinewubeze/algorithms-exercism
34669348762eef69b68a2f43260ab10ac1c4eb2a
[ "MIT" ]
1
2020-01-09T16:33:39.000Z
2020-01-09T16:33:39.000Z
def value(colors): colorList = ["black","brown","red","orange","yellow","green","blue","violet","grey","white"] code = "" for color in colors: if len(code) < 2: code += str(colorList.index(color)) return int(code)
31.25
96
0.564
31
250
4.548387
0.806452
0
0
0
0
0
0
0
0
0
0
0.005181
0.228
250
7
97
35.714286
0.725389
0
0
0
0
0
0.196
0
0
0
0
0
0
1
0.142857
false
0
0
0
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
0
0
0
0
1
dafc15205b01c79014e37b7285dde88b163902fd
383
py
Python
hack_chat_related/cynthiabot/word_sources/scratch_4.py
Cynthia7979/tools-programs
0bf0b8bf33205c11d584b216d35c1ca3d23f04f2
[ "MIT" ]
2
2021-02-09T15:58:29.000Z
2021-10-08T04:34:51.000Z
hack_chat_related/cynthiabot/word_sources/scratch_4.py
Cynthia7979/tools-programs
0bf0b8bf33205c11d584b216d35c1ca3d23f04f2
[ "MIT" ]
null
null
null
hack_chat_related/cynthiabot/word_sources/scratch_4.py
Cynthia7979/tools-programs
0bf0b8bf33205c11d584b216d35c1ca3d23f04f2
[ "MIT" ]
null
null
null
f = open('essay_material_word_sources.txt', encoding='utf-16-le') fw = open('essay_material_word_sources_.txt', 'w', encoding='utf-8') output = [] for l in f.readlines(): print(l) if l and (l != ' ') and (l != '\n') and ('【' not in l) and ('】' not in l): fw.write(l.strip(' ')) # print(o...
29.461538
79
0.545692
58
383
3.482759
0.517241
0.059406
0.168317
0.207921
0.306931
0.306931
0
0
0
0
0
0.013559
0.229765
383
12
80
31.916667
0.671186
0.104439
0
0
0
0
0.262195
0.192073
0
0
0
0
0
1
0
false
0
0
0
0
0.25
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
970230cccc075c9262639a742440eb46e3401e42
1,922
py
Python
src/Application/PythonScriptModule/pymodules_old/apitest/thread_test.py
antont/tundra
5c9b0a3957071f08ab425dff701cdbb34f9e1868
[ "Apache-2.0" ]
1
2018-04-02T15:38:10.000Z
2018-04-02T15:38:10.000Z
src/Application/PythonScriptModule/pymodules_old/apitest/thread_test.py
antont/tundra
5c9b0a3957071f08ab425dff701cdbb34f9e1868
[ "Apache-2.0" ]
null
null
null
src/Application/PythonScriptModule/pymodules_old/apitest/thread_test.py
antont/tundra
5c9b0a3957071f08ab425dff701cdbb34f9e1868
[ "Apache-2.0" ]
1
2021-09-04T12:37:34.000Z
2021-09-04T12:37:34.000Z
import time from collections import deque try: import rexviewer as r except ImportError: #not running under rex import mockviewer as r import circuits from circuits.core import handler class TestThread(circuits.Thread): """ A threaded circuits component inside Naali, now testing how this behaves,...
24.961039
79
0.570239
237
1,922
4.531646
0.421941
0.055866
0.03352
0.022346
0
0
0
0
0
0
0
0.005529
0.341311
1,922
76
80
25.289474
0.842812
0.114984
0
0.218182
0
0
0.083706
0
0
0
0
0
0
0
null
null
0.018182
0.145455
null
null
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
970296f462844f00061a21409ca5bc6695b20b6a
5,113
py
Python
PlotlyandPython/Lessons/(02) Lineplots/Notebooks/Python Scripts/Lineplots (07) - Making dashed and dotted lines.py
peternewman22/Python_Courses
07a798b6f264fc6069eb1205c9d429f00fb54bc5
[ "MIT" ]
null
null
null
PlotlyandPython/Lessons/(02) Lineplots/Notebooks/Python Scripts/Lineplots (07) - Making dashed and dotted lines.py
peternewman22/Python_Courses
07a798b6f264fc6069eb1205c9d429f00fb54bc5
[ "MIT" ]
null
null
null
PlotlyandPython/Lessons/(02) Lineplots/Notebooks/Python Scripts/Lineplots (07) - Making dashed and dotted lines.py
peternewman22/Python_Courses
07a798b6f264fc6069eb1205c9d429f00fb54bc5
[ "MIT" ]
null
null
null
# coding: utf-8 # # Lineplots (07) - Making dashed and dotted lines # In the last lesson we saw how to change the colour and thickness of the lines in our plot. # # In this lesson we'll learn how to displayed a dashed or dotted line instead of a solid line. In the next lesson we'll find out how to set the marker s...
32.157233
376
0.687463
819
5,113
4.282051
0.332112
0.011406
0.01939
0.026233
0.305389
0.282007
0.26661
0.256059
0.251212
0.231252
0
0.023239
0.192059
5,113
158
377
32.360759
0.825708
0.557207
0
0.414634
0
0.073171
0.414155
0.157534
0
0
0
0
0
1
0
false
0.073171
0.121951
0
0.121951
0.04878
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
9707987edbffdd07707988c15199cd2d6df39cc8
1,289
py
Python
web/models.py
naturaln0va/flask-ackermann-io
85916aaf93b0635f18f164da3e2c6ce86edadfc0
[ "MIT" ]
1
2019-12-09T07:26:43.000Z
2019-12-09T07:26:43.000Z
web/models.py
naturaln0va/flask-ackermann-io
85916aaf93b0635f18f164da3e2c6ce86edadfc0
[ "MIT" ]
4
2019-06-17T15:21:28.000Z
2021-03-20T05:05:42.000Z
web/models.py
naturaln0va/flask-ackermann-io
85916aaf93b0635f18f164da3e2c6ce86edadfc0
[ "MIT" ]
null
null
null
from app import db from datetime import datetime as dt from slugify import slugify class Post(db.Model): id = db.Column(db.Integer, primary_key = True) title = db.Column(db.String, nullable=False) description = db.Column(db.String, nullable=False) content = db.Column(db.String, nullable=False) slu...
32.225
87
0.657099
170
1,289
4.870588
0.270588
0.096618
0.120773
0.096618
0.259662
0.236715
0.096618
0.096618
0.096618
0.096618
0
0.001969
0.211792
1,289
40
88
32.225
0.812992
0
0
0.129032
0
0
0.054306
0
0
0
0
0
0
1
0.16129
false
0
0.096774
0.096774
0.774194
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
970bb5ea492f11426c0a5b6357ef8e845eea6ad9
2,181
py
Python
terse/ParserFactory.py
talipovm/Terse
e6bfd3ac0d411b18d5167019623d5451695e787c
[ "MIT" ]
2
2015-04-08T21:28:35.000Z
2015-04-08T23:25:04.000Z
terse/ParserFactory.py
talipovm/Terse
e6bfd3ac0d411b18d5167019623d5451695e787c
[ "MIT" ]
null
null
null
terse/ParserFactory.py
talipovm/Terse
e6bfd3ac0d411b18d5167019623d5451695e787c
[ "MIT" ]
1
2015-04-08T21:29:22.000Z
2015-04-08T21:29:22.000Z
import logging import os from Interface.Isosurface import Isosurface from Interface.JVXL import JVXL from Interface.NBOinteractions import NBOinteractions from Top import Top log = logging.getLogger(__name__) class ParserFactory(Top): @staticmethod def interface_by_command_line(frecord): """ ...
27.961538
75
0.56121
223
2,181
5.421525
0.336323
0.044665
0.044665
0.052109
0.280397
0.232423
0.208437
0.160463
0.079404
0.079404
0
0.007714
0.346171
2,181
77
76
28.324675
0.840112
0.048602
0
0.322034
0
0
0.128698
0
0
0
0
0.012987
0
1
0.050847
false
0
0.118644
0
0.338983
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
971117541cde3e1903caaf3ca3390e530dc8443b
615
py
Python
tests/testapp/models.py
marteinn/wagtail-automatic-move-redirects
2321b6037d00284d447e346faf7841061e33495e
[ "BSD-3-Clause" ]
13
2020-02-13T20:55:32.000Z
2021-12-11T21:20:20.000Z
tests/testapp/models.py
marteinn/wagtail-automatic-move-redirects
2321b6037d00284d447e346faf7841061e33495e
[ "BSD-3-Clause" ]
6
2020-05-19T21:06:20.000Z
2021-05-28T13:31:09.000Z
tests/testapp/models.py
marteinn/wagtail-automatic-move-redirects
2321b6037d00284d447e346faf7841061e33495e
[ "BSD-3-Clause" ]
4
2020-05-19T13:40:05.000Z
2021-03-03T21:36:48.000Z
from django.db import models from wagtail.admin.edit_handlers import FieldPanel from wagtail.core.fields import RichTextField from wagtail.core.models import Page class AutomaticRedirectsTestIndexPage(Page): subtitle = models.CharField(max_length=255, blank=True, default='') body = RichTextField(blank=True, ...
25.625
71
0.720325
65
615
6.723077
0.430769
0.118993
0.10984
0.118993
0.334096
0.334096
0.334096
0.334096
0.334096
0.334096
0
0.005906
0.173984
615
23
72
26.73913
0.854331
0
0
0.375
0
0
0.026016
0
0
0
0
0
0
1
0
false
0
0.25
0
0.6875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
9717e91cb315ebe35fe1860cce1799a4251fd302
526
py
Python
Leetcode/Python/_46.py
Xrenya/algorithms
aded82cacde2f4f2114241907861251e0e2e5638
[ "MIT" ]
1
2021-11-28T15:03:32.000Z
2021-11-28T15:03:32.000Z
Leetcode/Python/_46.py
Xrenya/algorithms
aded82cacde2f4f2114241907861251e0e2e5638
[ "MIT" ]
null
null
null
Leetcode/Python/_46.py
Xrenya/algorithms
aded82cacde2f4f2114241907861251e0e2e5638
[ "MIT" ]
null
null
null
class Solution: result = [] def backtrack(self, current, nums): if current == len(nums): self.result.append(nums[:]) return for i in range(current, len(nums)): nums[i], nums[current] = nums[current], nums[i] self.backtrack(current + 1, nums) ...
29.222222
59
0.536122
63
526
4.47619
0.333333
0.195035
0.212766
0.092199
0.255319
0.255319
0.255319
0.255319
0.255319
0
0
0.005587
0.319392
526
17
60
30.941176
0.782123
0
0
0.142857
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.428571
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
971abf76c98ab4aa78f28ff46f0d741cb4ec54f3
11,484
py
Python
run/create_yaml_onenode.py
nnzhaocs/docker-performance
2b6ba870b9a0f8c78837e794bbac678094f0c230
[ "Apache-2.0" ]
null
null
null
run/create_yaml_onenode.py
nnzhaocs/docker-performance
2b6ba870b9a0f8c78837e794bbac678094f0c230
[ "Apache-2.0" ]
null
null
null
run/create_yaml_onenode.py
nnzhaocs/docker-performance
2b6ba870b9a0f8c78837e794bbac678094f0c230
[ "Apache-2.0" ]
3
2018-12-12T23:35:51.000Z
2018-12-15T23:52:32.000Z
import os import sys import string import yaml from argparse import ArgumentParser import time # default setting traces = {} realblobfiles = {} limitamount = 1500 # 24 32 48 64 warmupthreads = 1 # number of total clients hotratio = 0.25 #nondedupreplicas = 2 replicalevel = 1 wait = True dir = '/home/nannan/docker-pe...
38.152824
158
0.572362
1,290
11,484
5.036434
0.189922
0.07388
0.036632
0.033862
0.378636
0.349392
0.303986
0.265199
0.150223
0.033554
0
0.123849
0.281435
11,484
300
159
38.28
0.663476
0.092651
0
0.046948
0
0.004695
0.358623
0.238124
0
0
0
0
0
0
null
null
0
0.028169
null
null
0.00939
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
971c3238d99d6b81b26f0ad03df611e633858062
511
py
Python
blog/migrations/0002_auto_20171219_2246.py
EESTECist/BumBumTamTam
92bbae9808080e0d9e1ae1215e52fa955c6263a5
[ "MIT" ]
1
2017-12-28T17:54:55.000Z
2017-12-28T17:54:55.000Z
blog/migrations/0002_auto_20171219_2246.py
EESTECist/BumBumTamTam
92bbae9808080e0d9e1ae1215e52fa955c6263a5
[ "MIT" ]
null
null
null
blog/migrations/0002_auto_20171219_2246.py
EESTECist/BumBumTamTam
92bbae9808080e0d9e1ae1215e52fa955c6263a5
[ "MIT" ]
null
null
null
# Generated by Django 2.0 on 2017-12-19 19:46 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0001_initial'), ] operations = [ migrations.AlterModelOptions( name='category', options={'verbose_name_plural'...
22.217391
58
0.577299
49
511
5.897959
0.795918
0
0
0
0
0
0
0
0
0
0
0.050704
0.305284
511
22
59
23.227273
0.76338
0.084149
0
0.125
1
0
0.130901
0
0
0
0
0
0
1
0
false
0
0.0625
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9722c58ffd556781f330720efd82b006fd5b1e87
2,164
py
Python
lambda_proxy_helpers_pkg/lambda_proxy_response_wrapper.py
depster26/public-lambda-helpers
6fa3e1a7ba1e281e11ea85e384471f6abc300efd
[ "MIT" ]
null
null
null
lambda_proxy_helpers_pkg/lambda_proxy_response_wrapper.py
depster26/public-lambda-helpers
6fa3e1a7ba1e281e11ea85e384471f6abc300efd
[ "MIT" ]
null
null
null
lambda_proxy_helpers_pkg/lambda_proxy_response_wrapper.py
depster26/public-lambda-helpers
6fa3e1a7ba1e281e11ea85e384471f6abc300efd
[ "MIT" ]
null
null
null
import traceback from functools import wraps from collections import namedtuple from .constants import HttpStatusCodes from . import lambda_errors from .lambda_proxy_response import LambdaProxyResponse KNOWN_ERRORS = [lambda_errors.AlreadyExistsError, lambda_errors.NotFoundError, lamb...
34.903226
104
0.695933
237
2,164
6.232068
0.472574
0.081246
0.025728
0
0
0
0
0
0
0
0
0.001834
0.243993
2,164
61
105
35.47541
0.900978
0.298059
0
0
0
0
0.050779
0
0
0
0
0.016393
0
1
0.121212
false
0
0.181818
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
9730235a2588992f4dab3fea8ad9fcef5294af5c
2,086
py
Python
src/thex/apps/navbar.py
harris-2374/THEx
04c4f56eb2cf86b8f55ddd6edd3f48029296bf5a
[ "MIT" ]
null
null
null
src/thex/apps/navbar.py
harris-2374/THEx
04c4f56eb2cf86b8f55ddd6edd3f48029296bf5a
[ "MIT" ]
null
null
null
src/thex/apps/navbar.py
harris-2374/THEx
04c4f56eb2cf86b8f55ddd6edd3f48029296bf5a
[ "MIT" ]
null
null
null
import dash_bootstrap_components as dbc import dash_html_components as html def Navbar(current_program=None): if not current_program: brand_title = "Tree House Explorer" else: brand_title = f"Tree House Explorer: {current_program}" navbar = dbc.NavbarSimple( children=[ h...
32.59375
63
0.370086
142
2,086
5.316901
0.450704
0.055629
0.045033
0.050331
0.150993
0.090066
0.090066
0
0
0
0
0.014228
0.528284
2,086
64
64
32.59375
0.753049
0
0
0.370968
0
0
0.188309
0.011021
0
0
0
0
0
1
0.016129
false
0
0.032258
0
0.064516
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
97348f780608c2e22491e403239f8bc0672b5b08
3,006
py
Python
analytics/tests/unittest_service.py
sadikovi/Pulsar
3267426cf5bd676a3c4c20cbee88a80b89e65b0f
[ "Apache-2.0" ]
null
null
null
analytics/tests/unittest_service.py
sadikovi/Pulsar
3267426cf5bd676a3c4c20cbee88a80b89e65b0f
[ "Apache-2.0" ]
29
2015-02-23T07:59:13.000Z
2015-04-05T09:49:53.000Z
analytics/tests/unittest_service.py
sadikovi/Pulsar
3267426cf5bd676a3c4c20cbee88a80b89e65b0f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # import libs import unittest import json import sys import os from types import DictType # import classes import analytics.utils.misc as misc import analytics.exceptions.exceptions as ex import analytics.service as service import projectpaths as paths from analytics.loading.jsonloader import Jso...
32.673913
74
0.657685
334
3,006
5.817365
0.335329
0.1158
0.055584
0.013381
0.218219
0.110139
0.084406
0.084406
0.084406
0.084406
0
0.014605
0.225549
3,006
91
75
33.032967
0.820017
0.047239
0
0.140845
0
0
0.056022
0
0
0
0
0
0.225352
0
null
null
0
0.15493
null
null
0.042254
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
9743466cb5125ec3881d32d72b7b6f465fa359a6
887
py
Python
rest/campi/views.py
cmu-lib/campi
c2c4bfbf2d5932dde1dde985d7b5c8786b9f2ab2
[ "MIT" ]
12
2020-10-09T18:12:30.000Z
2021-03-23T16:17:40.000Z
rest/campi/views.py
cmu-lib/campi
c2c4bfbf2d5932dde1dde985d7b5c8786b9f2ab2
[ "MIT" ]
1
2020-08-11T17:11:43.000Z
2020-08-11T17:29:58.000Z
rest/campi/views.py
cmu-lib/campi
c2c4bfbf2d5932dde1dde985d7b5c8786b9f2ab2
[ "MIT" ]
null
null
null
from rest_framework import status from rest_framework.views import APIView from rest_framework.response import Response from campi import serializers class GetSerializerClassMixin(object): def get_queryset(self): try: return self.queryset_action_classes[self.action] except (KeyError, A...
31.678571
72
0.70124
96
887
6.28125
0.40625
0.039801
0.084577
0.056385
0.215589
0.215589
0.215589
0.215589
0.215589
0.215589
0
0.004354
0.223224
887
27
73
32.851852
0.870827
0
0
0.181818
0
0
0.007892
0
0
0
0
0
0
1
0.136364
false
0
0.181818
0
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
0
0
1
0
0
1
974de7e9ef11df44462edd9f4f62ba2943c48f7c
2,446
py
Python
nvim/pythonx/r_snippet_helpers.py
ryan-heslin/dotfiles
f447bcb10156044171ab6bf123decce515649dde
[ "MIT" ]
null
null
null
nvim/pythonx/r_snippet_helpers.py
ryan-heslin/dotfiles
f447bcb10156044171ab6bf123decce515649dde
[ "MIT" ]
null
null
null
nvim/pythonx/r_snippet_helpers.py
ryan-heslin/dotfiles
f447bcb10156044171ab6bf123decce515649dde
[ "MIT" ]
null
null
null
import re from regex import sub as rsub from all_snippet_helpers import * # Produce roxygen documentation def render_roxygen(snip, args, signature, line): mark = "#'" # Only generate argument tabstops if function actually has them args_text = ( [mark + " @param " + arg + " $" + str(num + 6) for num...
33.506849
87
0.513083
306
2,446
4.04902
0.379085
0.032284
0.014528
0.033898
0.09201
0.054883
0
0
0
0
0
0.008518
0.280049
2,446
72
88
33.972222
0.69506
0.152085
0
0.071429
1
0
0.136628
0.051357
0
0
0
0
0
1
0.071429
false
0
0.053571
0
0.178571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9755d328b0477713a97ca1a400e325ba08ea0b28
316
py
Python
testCluster.py
Jubas/index-cost-sim
e99a6142b1d76ec12c957b84fd256cf61c30b3ea
[ "MIT" ]
1
2021-02-09T06:49:45.000Z
2021-02-09T06:49:45.000Z
testCluster.py
Jubas/index-cost-sim
e99a6142b1d76ec12c957b84fd256cf61c30b3ea
[ "MIT" ]
null
null
null
testCluster.py
Jubas/index-cost-sim
e99a6142b1d76ec12c957b84fd256cf61c30b3ea
[ "MIT" ]
null
null
null
import ClusterCreator import math c = ClusterCreator.ClusterCreator(35484770, 100, 30, 30, 20, math.floor(131072 / 132)) leaders, clusters, l, c_id = c.create_clusters() print(len(leaders)) print(len(clusters)) print("---") print(clusters[0].count) n = 0 for i in clusters: n += i.count print(n)
21.066667
87
0.677215
46
316
4.608696
0.521739
0.122642
0
0
0
0
0
0
0
0
0
0.10728
0.174051
316
15
88
21.066667
0.704981
0
0
0
0
0
0.009901
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.416667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
976edec8e9c1b856d33be95bedc79d5a511c5930
1,229
py
Python
mysite/calls/migrations/0003_auto_20190130_1853.py
gurupratap-matharu/django-calls-registration-app
6c2c8f06c2dc8559b1fbb60c9f843c5c0dc11524
[ "MIT" ]
null
null
null
mysite/calls/migrations/0003_auto_20190130_1853.py
gurupratap-matharu/django-calls-registration-app
6c2c8f06c2dc8559b1fbb60c9f843c5c0dc11524
[ "MIT" ]
4
2021-04-08T20:34:00.000Z
2021-09-22T19:41:24.000Z
mysite/calls/migrations/0003_auto_20190130_1853.py
gurupratap-matharu/django-calls-registration-app
6c2c8f06c2dc8559b1fbb60c9f843c5c0dc11524
[ "MIT" ]
null
null
null
# Generated by Django 2.1.5 on 2019-01-30 18:53 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('calls', '0002_auto_20190130_1811'), ] operations = [ migrations.CreateModel( name='Type', ...
30.725
156
0.566314
120
1,229
5.658333
0.533333
0.070692
0.076583
0.07511
0.194404
0.111929
0
0
0
0
0
0.03815
0.296176
1,229
39
157
31.512821
0.746821
0.036615
0
0.333333
1
0
0.13198
0.019459
0
0
0
0
0
1
0
false
0
0.060606
0
0.151515
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
976efa5b7a4cfc7372d6598e6e598ede5da9f96e
5,230
py
Python
ooobuild/lo/util/duration.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/util/duration.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/util/duration.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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 applicab...
27.671958
313
0.585277
597
5,230
5.011725
0.281407
0.024064
0.039773
0.042112
0.077874
0.02373
0
0
0
0
0
0.008813
0.305736
5,230
188
314
27.819149
0.815202
0.310899
0
0.089888
0
0
0.059192
0.016286
0
0
0
0
0
1
0.202247
false
0
0.022472
0
0.382022
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
97748de95cef6ee43f337f0e5e20ea4c436fc422
601
py
Python
tools/metrics/ukm/codegen_test.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
tools/metrics/ukm/codegen_test.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
113
2015-05-04T09:58:14.000Z
2022-01-31T19:35:03.000Z
tools/metrics/ukm/codegen_test.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
#!/usr/bin/env python # Copyright 2020 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import unittest import codegen class CodegenTest(unittest.TestCase): def testHash(self): # Must match those in //base/metrics/...
28.619048
72
0.760399
76
601
5.881579
0.75
0.100671
0.147651
0.201342
0
0
0
0
0
0
0
0.069498
0.138103
601
20
73
30.05
0.793436
0.397671
0
0
0
0
0.070028
0
0
0
0.151261
0
0.333333
1
0.111111
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
0
0
0
0
0
0
0
0
1
97770588e1dec8dd9dbd77471c7aa4e18adc3dbe
1,158
py
Python
performancetests/extract_useful_stats.py
phillbarber/polling-vs-sockets
c777c19359c76abfcd13e5ebb55938b03aef11e8
[ "MIT" ]
null
null
null
performancetests/extract_useful_stats.py
phillbarber/polling-vs-sockets
c777c19359c76abfcd13e5ebb55938b03aef11e8
[ "MIT" ]
null
null
null
performancetests/extract_useful_stats.py
phillbarber/polling-vs-sockets
c777c19359c76abfcd13e5ebb55938b03aef11e8
[ "MIT" ]
null
null
null
#!/usr/bin/env python import json import os import sys directory = os.getcwd() + "/" + sys.argv[1] print ("Stats for" + directory) def getTxBytes(json): return json["networks"]["eth0"]["tx_bytes"] def getRxBytes(json): return json["networks"]["eth0"]["rx_bytes"] def getCPUUsage(json): return json["cp...
28.95
94
0.653713
141
1,158
5.333333
0.312057
0.095745
0.101064
0.12766
0.43617
0.367021
0.367021
0.340426
0.18883
0.18883
0
0.050308
0.158895
1,158
39
95
29.692308
0.721766
0.017271
0
0
0
0
0.190853
0
0
0
0
0
0
0
null
null
0
0.125
null
null
0.208333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
977874df3b07698f1618d522fb5395d30d8fd9da
212
py
Python
annotate/processing/base_annotation.py
dojo-modeling/dojo
8abc71790cbb8639a56c89791535b3df59c725ac
[ "MIT" ]
3
2022-01-28T01:43:30.000Z
2022-02-24T21:42:13.000Z
annotate/processing/base_annotation.py
dojo-modeling/dojo
8abc71790cbb8639a56c89791535b3df59c725ac
[ "MIT" ]
8
2022-01-12T16:39:57.000Z
2022-01-31T19:05:45.000Z
annotate/processing/base_annotation.py
dojo-modeling/dojo
8abc71790cbb8639a56c89791535b3df59c725ac
[ "MIT" ]
null
null
null
import typing import pandas as pd class BaseProcessor: @staticmethod def run( input_data: typing.Any, context: typing.Dict[str, typing.Any] ) -> pd.DataFrame: raise NotImplemented()
19.272727
69
0.669811
25
212
5.64
0.76
0.12766
0
0
0
0
0
0
0
0
0
0
0.240566
212
10
70
21.2
0.875776
0
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.25
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
97817d510af0a172a3fa90c3a96fd9cbcae0aadb
1,307
py
Python
mailmorth/app/api_version/v1/__init__.py
lintosh/mailship
ce02962a8928417c5837524a63f414498da2b49f
[ "MIT" ]
null
null
null
mailmorth/app/api_version/v1/__init__.py
lintosh/mailship
ce02962a8928417c5837524a63f414498da2b49f
[ "MIT" ]
null
null
null
mailmorth/app/api_version/v1/__init__.py
lintosh/mailship
ce02962a8928417c5837524a63f414498da2b49f
[ "MIT" ]
null
null
null
#~ version one of the mailMorth api which would hold all the functionalities of our version one #(@: Name): "mailMorth" #(@:Description): "email Management, and automation api code" #(@:Author): "inteliJence development team" #under the license of Apache License 2.0 and intelijence Protective Rights please ed...
35.324324
129
0.554705
136
1,307
5.257353
0.544118
0.020979
0.022378
0
0
0
0
0
0
0
0
0.004386
0.127774
1,307
36
130
36.305556
0.622807
0.689365
0
0
0
0
0.235127
0.21813
0
0
0
0
0
1
0
false
0
0.428571
0
0.428571
0.285714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
97875158322222de017110d6d1abc2e7a57acacd
1,077
py
Python
makePlane.py
dluman/NaNoGenMo-2017-2
d5daea27d9f8bbfbfb1d5ea4d246993c8dc60bd0
[ "Unlicense" ]
null
null
null
makePlane.py
dluman/NaNoGenMo-2017-2
d5daea27d9f8bbfbfb1d5ea4d246993c8dc60bd0
[ "Unlicense" ]
null
null
null
makePlane.py
dluman/NaNoGenMo-2017-2
d5daea27d9f8bbfbfb1d5ea4d246993c8dc60bd0
[ "Unlicense" ]
null
null
null
import random class Plane(): name = None bearing = None captain = None origin = None destination = None img = None squawk = None def __init__(self): self.name = self.createName() self.bearing = self.setBearing() self.captain = self.createCaptain() self.origin = self.setOrigin() self.destination = s...
23.413043
90
0.680594
136
1,077
5.360294
0.514706
0.032922
0.045267
0
0
0
0
0
0
0
0
0.013274
0.160631
1,077
45
91
23.933333
0.793142
0
0
0.083333
0
0
0.18013
0
0
0
0
0
0
1
0.194444
false
0.083333
0.027778
0.027778
0.527778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
97970c5a1a0f3349fb93a725c6270efcd0b82297
874
py
Python
train.py
groverkds/hand_sign_recognition
4ae05c43af869e990acc636b0a031f903709dfbc
[ "Apache-2.0" ]
3
2020-02-18T07:12:42.000Z
2022-01-07T14:35:42.000Z
train.py
polawarrushi/hand_sign_recognition
493b3568c462280533a33cab592008c91da1f999
[ "Apache-2.0" ]
null
null
null
train.py
polawarrushi/hand_sign_recognition
493b3568c462280533a33cab592008c91da1f999
[ "Apache-2.0" ]
8
2019-05-22T15:45:17.000Z
2021-09-15T17:28:50.000Z
import numpy as np import pickle from sklearn.model_selection import train_test_split from sklearn import svm from sklearn import metrics import pandas as pd with open('data/dataframe.pickle', 'rb') as handle: df = pickle.load(handle) data = df.copy() data.drop('alphabet', axis=1) target = df.alphabet X_train, X_tes...
30.137931
125
0.771167
144
874
4.541667
0.479167
0.050459
0.042813
0
0
0
0
0
0
0
0
0.013055
0.12357
874
29
126
30.137931
0.840731
0.218535
0
0
0
0
0.109306
0.069424
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
979eeaea89fd74c57893ede5d89f60a48b582ae8
2,394
py
Python
source/script/FASelector_SRC/Type/.JPG.py
onsoim/FuzzBuilderEx
d0e8bada27677a0f676e92dc48aaa764ba679508
[ "Apache-2.0" ]
6
2021-03-27T06:07:01.000Z
2022-03-29T04:54:03.000Z
source/script/FASelector_SRC/Type/.JPG.py
onsoim/FuzzBuilderEx
d0e8bada27677a0f676e92dc48aaa764ba679508
[ "Apache-2.0" ]
4
2021-03-24T00:10:59.000Z
2022-03-28T13:41:28.000Z
source/script/FASelector_SRC/Type/.JPG.py
onsoim/FuzzBuilderEx
d0e8bada27677a0f676e92dc48aaa764ba679508
[ "Apache-2.0" ]
2
2021-04-05T06:22:20.000Z
2021-10-01T21:07:18.000Z
#-*- coding:utf-8 -*- import os import re class folder(): def __init__(self,path): self.path = path if path[-1] != '/': self.path += '/' self.filelist = [] self.get_filelist() def get_filelist(self): tmp = os.listdir(self.path) for test in tmp: test = self.path + test if os.path.isfile(test):...
27.837209
81
0.621554
370
2,394
3.916216
0.264865
0.033816
0.037957
0.020704
0.060041
0
0
0
0
0
0
0.015003
0.192565
2,394
85
82
28.164706
0.734609
0.02548
0
0
0
0
0.112876
0
0
0
0.001717
0
0
0
null
null
0
0.044118
null
null
0.102941
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
979f6be94ead98ea08a3e58188d707e4861320f7
3,656
py
Python
Constants.py
unmonk/Project-Infinity
63c22fcf4086adf868967cb172434e3ceba4bac5
[ "CC0-1.0" ]
null
null
null
Constants.py
unmonk/Project-Infinity
63c22fcf4086adf868967cb172434e3ceba4bac5
[ "CC0-1.0" ]
null
null
null
Constants.py
unmonk/Project-Infinity
63c22fcf4086adf868967cb172434e3ceba4bac5
[ "CC0-1.0" ]
null
null
null
__author__ = 'Scott' import os import pygame SCREEN_WIDTH = 1280 SCREEN_HEIGHT = 720 GAME_TITLE = "Project Infinity" MAP_COLLISION_LAYER = 2 MAP_DEATH_LAYER = 3 MAP_BACKGROUND_LAYER = 0 MAP_FORGROUND_LAYER = 1 MAP_ENDOFLEVEL_LAYER = 5 MAP_ITEM_LAYER = 4 BACKGROUND_COLOR = (20, 20, 20) screen = pygame.display.set_mode(...
34.490566
105
0.671772
472
3,656
5.061441
0.230932
0.086647
0.055253
0.073671
0.545416
0.426957
0.294684
0.257011
0.17748
0.147342
0
0.019212
0.145788
3,656
106
106
34.490566
0.745757
0.027899
0
0.240964
0
0
0.239088
0.018586
0
0
0
0
0
0
null
null
0
0.024096
null
null
0.012048
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
97a29197dc50e799d9651b87306ebbcdd023348a
458
py
Python
loader.py
AmaRocket/TMDBMovieBotTelegram
07d248da0ee5c20e788612814f964917748474ba
[ "MIT" ]
null
null
null
loader.py
AmaRocket/TMDBMovieBotTelegram
07d248da0ee5c20e788612814f964917748474ba
[ "MIT" ]
null
null
null
loader.py
AmaRocket/TMDBMovieBotTelegram
07d248da0ee5c20e788612814f964917748474ba
[ "MIT" ]
null
null
null
import logging import asyncio from aiogram import Bot, Dispatcher from aiogram.contrib.fsm_storage.memory import MemoryStorage import config loop = asyncio.get_event_loop() bot = Bot(token=config.token, parse_mode='HTML') storage = MemoryStorage() dp = Dispatcher(bot, storage=storage) logging.basicConfig(format=u'%...
26.941176
105
0.69869
57
458
5.54386
0.614035
0.06962
0
0
0
0
0
0
0
0
0
0.002653
0.176856
458
16
106
28.625
0.835544
0
0
0
0
0.083333
0.170306
0
0
0
0
0
0
1
0
false
0
0.416667
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
97a4368e398e0b9f09d0d9196d816ae5a12f9c17
4,729
py
Python
animator/entity/basic_shape.py
sherlockdoyle/Animator
5c1bec50e7e120db36a8a333fa7ddcdaf10dda3b
[ "MIT" ]
null
null
null
animator/entity/basic_shape.py
sherlockdoyle/Animator
5c1bec50e7e120db36a8a333fa7ddcdaf10dda3b
[ "MIT" ]
null
null
null
animator/entity/basic_shape.py
sherlockdoyle/Animator
5c1bec50e7e120db36a8a333fa7ddcdaf10dda3b
[ "MIT" ]
null
null
null
import math from animator.entity import Entity from animator.constant import * __all__ = ["Circle", "Ellipse", "Rect", "Square", "Poly"] class Circle(Entity): """ Draws a circle on the scene. :param r: The radius of the circle. Default is 0 """ def __init__(self, r=UNIT, **kwargs): ...
33.778571
117
0.550011
728
4,729
3.387363
0.130495
0.043796
0.058394
0.019465
0.609489
0.560016
0.539335
0.461071
0.403487
0.403487
0
0.015292
0.294777
4,729
139
118
34.021583
0.724138
0.356524
0
0.164384
0
0
0.009051
0
0
0
0
0.007194
0
1
0.232877
false
0
0.041096
0.054795
0.452055
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
97aa46050ee4e69349797e69e7c1131f9730f6f8
5,155
py
Python
panoptes_aggregation/tests/reducer_tests/test_survey_reducer.py
CKrawczyk/python-reducers-for-caesar
9c5d9e072906d3fde2497fa61a66e4c8c0113ec2
[ "Apache-2.0" ]
1
2018-11-27T16:43:37.000Z
2018-11-27T16:43:37.000Z
panoptes_aggregation/tests/reducer_tests/test_survey_reducer.py
CKrawczyk/python-reducers-for-caesar
9c5d9e072906d3fde2497fa61a66e4c8c0113ec2
[ "Apache-2.0" ]
2
2017-07-27T09:05:03.000Z
2019-04-03T20:28:31.000Z
panoptes_aggregation/tests/reducer_tests/test_survey_reducer.py
CKrawczyk/python-reducers-for-caesar
9c5d9e072906d3fde2497fa61a66e4c8c0113ec2
[ "Apache-2.0" ]
2
2017-07-26T17:30:17.000Z
2017-07-27T09:14:51.000Z
import unittest from collections import Counter import copy import flask import json from panoptes_aggregation.reducers.survey_reducer import process_data, survey_reducer from panoptes_aggregation.reducers.test_utils import extract_in_data extracted_data = [ {'answers_howmanyanimalsdoyousee': {'1': 1.0}, 'answers_...
39.653846
212
0.628904
447
5,155
6.997763
0.154362
0.012788
0.03165
0.079284
0.65633
0.647698
0.634591
0.634591
0.634591
0.634591
0
0.022905
0.229292
5,155
129
213
39.96124
0.76441
0
0
0.29661
0
0
0.374976
0.280504
0
0
0
0
0.042373
1
0.042373
false
0
0.059322
0
0.110169
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
97b17d951641a10dde5adb0978a509ff02ff1d9c
812
py
Python
libapp/migrations/0010_notification.py
Nyagah-Tech/library
2ae1df4e89257c9c7d7f2328ab6c5f6352867997
[ "MIT" ]
null
null
null
libapp/migrations/0010_notification.py
Nyagah-Tech/library
2ae1df4e89257c9c7d7f2328ab6c5f6352867997
[ "MIT" ]
8
2020-06-06T01:24:32.000Z
2022-02-10T12:26:48.000Z
libapp/migrations/0010_notification.py
Nyagah-Tech/library
2ae1df4e89257c9c7d7f2328ab6c5f6352867997
[ "MIT" ]
null
null
null
# Generated by Django 2.2.8 on 2020-01-23 06:58 from django.conf import settings from django.db import migrations, models import tinymce.models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('libapp', '0009_comment'), ] ...
31.230769
119
0.626847
84
812
5.928571
0.642857
0.040161
0.064257
0.084337
0
0
0
0
0
0
0
0.036125
0.25
812
25
120
32.48
0.781609
0.055419
0
0
1
0
0.086275
0
0
0
0
0
0
1
0
false
0
0.157895
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
97bb0bfb2e83efd2bcd29357e37506cc837d9359
2,704
py
Python
arraycw.py
cs-fullstack-2019-spring/python-arraycollections-cw-MelaatiJ
1337dacf9568e8e5249ce6aa13bd0e425b31e940
[ "Apache-2.0" ]
null
null
null
arraycw.py
cs-fullstack-2019-spring/python-arraycollections-cw-MelaatiJ
1337dacf9568e8e5249ce6aa13bd0e425b31e940
[ "Apache-2.0" ]
null
null
null
arraycw.py
cs-fullstack-2019-spring/python-arraycollections-cw-MelaatiJ
1337dacf9568e8e5249ce6aa13bd0e425b31e940
[ "Apache-2.0" ]
null
null
null
def main(): # problem1() # problem2() # problem3() # problem4() # problem5() def problem1(): awesomePeeps = ["kenn", "Kevin", "Erin", "Meka"] #made an array print(awesomePeeps[2]) #printing the second element print(len(awesomePeeps)) #printing the length and how many inside aweso...
23.719298
144
0.628698
354
2,704
4.779661
0.39548
0.023641
0.026596
0.020095
0.095745
0
0
0
0
0
0
0.020906
0.257027
2,704
114
145
23.719298
0.821304
0.504068
0
0.047619
0
0
0.086381
0
0
0
0
0
0
0
null
null
0
0
null
null
0.214286
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
97ca9e6d4a2bc51de1e8a75b509fdde60fa6a362
1,312
py
Python
app/Product.py
krishotte/web_sperky
fec2e150c146c69d3b002085407c2cd2d749ec6a
[ "MIT" ]
null
null
null
app/Product.py
krishotte/web_sperky
fec2e150c146c69d3b002085407c2cd2d749ec6a
[ "MIT" ]
null
null
null
app/Product.py
krishotte/web_sperky
fec2e150c146c69d3b002085407c2cd2d749ec6a
[ "MIT" ]
null
null
null
"""Product Model.""" from config.database import Model from orator.orm import belongs_to, belongs_to_many, has_many, has_one class Product(Model): """Product Model.""" __fillable__ = ['name', 'category_id', 'price', 'description', 'image_folder', 'detail', 'note'] @belongs_to('category_id', 'id') de...
27.914894
119
0.681402
159
1,312
5.408805
0.301887
0.073256
0.076744
0.037209
0
0
0
0
0
0
0
0
0.233994
1,312
46
120
28.521739
0.855721
0.125
0
0
0
0
0.091549
0
0
0
0
0
0
1
0.21875
false
0
0.28125
0
0.78125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
8ad9c64ca58eeecc2c0887b2257ecd48066ce9be
6,097
py
Python
task3.py
Anchorboy/PR_FinalProject
e744723c9c9dd55e6995ae5929eb45f90c70819b
[ "MIT" ]
null
null
null
task3.py
Anchorboy/PR_FinalProject
e744723c9c9dd55e6995ae5929eb45f90c70819b
[ "MIT" ]
null
null
null
task3.py
Anchorboy/PR_FinalProject
e744723c9c9dd55e6995ae5929eb45f90c70819b
[ "MIT" ]
null
null
null
import os import random from itertools import cycle import cv2 import matplotlib.pyplot as plt import numpy as np from scipy import interp from skimage import exposure from skimage.feature import hog from sklearn import metrics from sklearn.decomposition import PCA from sklearn.preprocessing import label_binarize from...
36.951515
135
0.626866
959
6,097
3.779979
0.211679
0.031448
0.014897
0.023172
0.430897
0.413241
0.32469
0.266207
0.266207
0.266207
0
0.027114
0.231753
6,097
165
136
36.951515
0.746798
0.114483
0
0.15
0
0
0.060955
0
0
0
0
0
0
0
null
null
0
0.108333
null
null
0.041667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8adcaaa5e04f3df5fcea316f738bf758a8c1621e
665
py
Python
backend/models.py
FoamyGuy/PyPortal_Signage_System
46515841bdb413b25e97604697901c2ad6ad471e
[ "MIT" ]
1
2022-03-27T20:51:28.000Z
2022-03-27T20:51:28.000Z
backend/models.py
FoamyGuy/PyPortal_Signage_System
46515841bdb413b25e97604697901c2ad6ad471e
[ "MIT" ]
null
null
null
backend/models.py
FoamyGuy/PyPortal_Signage_System
46515841bdb413b25e97604697901c2ad6ad471e
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django.db import models import uuid # Create your models here. from django.db.models import CASCADE class Plan(models.Model): name = models.CharField(max_length=128) content_image = models.FileField(upload_to="content", blank=True, default='') content_json...
30.227273
81
0.697744
88
665
5.170455
0.545455
0.065934
0.052747
0
0
0
0
0
0
0
0
0.007407
0.18797
665
22
82
30.227273
0.835185
0.03609
0
0
0
0
0.021875
0
0
0
0
0
0
1
0.066667
false
0
0.266667
0
0.866667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
8adf4e176f915ff5864e25390bfbffbbd957feee
179
py
Python
jinja2_error/__init__.py
mumubin/jiaja2_error
f2f2df42ec60a99442f61d480ffbf8c67071a737
[ "MIT" ]
2
2020-06-12T09:50:09.000Z
2021-06-25T16:06:11.000Z
jinja2_error/__init__.py
mumubin/jiaja2_error
f2f2df42ec60a99442f61d480ffbf8c67071a737
[ "MIT" ]
null
null
null
jinja2_error/__init__.py
mumubin/jiaja2_error
f2f2df42ec60a99442f61d480ffbf8c67071a737
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from .jinja2_error import ErrorExtension __author__ = 'Robin Hu' __email__ = 'given.hubin@gmail.com' __version__ = '0.1.0' __all__ = ['ErrorExtension']
17.9
40
0.698324
22
179
4.909091
0.909091
0
0
0
0
0
0
0
0
0
0
0.032468
0.139665
179
10
41
17.9
0.668831
0.117318
0
0
0
0
0.305732
0.133758
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
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8ae079fb5cc787087019878ddc15a079fc9ed4df
2,165
py
Python
elements/python/9/14/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
11
2019-02-08T06:54:34.000Z
2021-08-07T18:57:39.000Z
elements/python/9/14/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
1
2019-05-21T08:14:10.000Z
2019-05-21T08:14:10.000Z
elements/python/9/14/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
null
null
null
import collections class MaxQueue(object): """ MaxQueue provides a base queue API and tracks the largest item contained in the queue. """ def __init__(self): self.items = [] self.peaks = [] def enqueue(self, x): self.items.append(x) while len(self.peaks) > 0 an...
23.031915
81
0.50485
278
2,165
3.856115
0.266187
0.067164
0.027985
0.011194
0.094216
0.007463
0
0
0
0
0
0.045255
0.367206
2,165
93
82
23.27957
0.737226
0
0
0.057143
0
0
0.019851
0
0
0
0
0
0.028571
0
null
null
0.014286
0.014286
null
null
0.014286
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8ae23495524de5ac2aff79dd30996961f889e7e8
486
py
Python
bot/plugins/bongo.py
JastLucy/twitch-chat-bot
df7cde7e4f78d4789c69e63d0920063bf493d1ca
[ "MIT" ]
null
null
null
bot/plugins/bongo.py
JastLucy/twitch-chat-bot
df7cde7e4f78d4789c69e63d0920063bf493d1ca
[ "MIT" ]
null
null
null
bot/plugins/bongo.py
JastLucy/twitch-chat-bot
df7cde7e4f78d4789c69e63d0920063bf493d1ca
[ "MIT" ]
null
null
null
from __future__ import annotations from bot.config import Config from bot.data import command from bot.data import esc from bot.data import format_msg from bot.message import Message @command('!bongo') async def cmd_bongo(config: Config, msg: Message) -> str: _, _, rest = msg.msg.partition(' ') rest = rest.s...
23.142857
76
0.683128
66
486
4.893939
0.363636
0.108359
0.102167
0.157895
0
0
0
0
0
0
0
0
0.218107
486
20
77
24.3
0.85
0
0
0
0
0
0.160494
0
0
0
0
0
0
1
0
false
0
0.375
0
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
0
0
0
1
0
0
0
0
1
8ae89e6b4029a557bbcd06a8ce74401ad918eb08
899
py
Python
tests/strawpoll_api_reader_tests.py
vaibhav-y/py-strawpoll
d725beb9a0e42ced84f9ae648bdf8a7216bd6e55
[ "MIT" ]
null
null
null
tests/strawpoll_api_reader_tests.py
vaibhav-y/py-strawpoll
d725beb9a0e42ced84f9ae648bdf8a7216bd6e55
[ "MIT" ]
1
2016-05-12T21:25:09.000Z
2016-07-20T08:58:57.000Z
tests/strawpoll_api_reader_tests.py
vaibhav-y/py-strawpoll
d725beb9a0e42ced84f9ae648bdf8a7216bd6e55
[ "MIT" ]
null
null
null
from strawpoll import StrawpollAPIReader from random import randrange import requests # Setup test fixtures for poll id `id` id = randrange(1, 1000) BASE_URL = 'https://strawpoll.me' API_PATH = 'api/v2/polls' json = requests.get('/'.join([BASE_URL, API_PATH, str(id)])) sp = dict(json=json.text, api=StrawpollAPIReader...
35.96
128
0.74416
140
899
4.571429
0.428571
0.171875
0.065625
0.09375
0.309375
0.309375
0.16875
0.16875
0.16875
0.16875
0
0.008827
0.117909
899
24
129
37.458333
0.798235
0.256952
0
0
0
0
0.081571
0
0
0
0
0
0.214286
1
0.214286
false
0
0.214286
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
8af06ba56b9d9246907fcee08895d969c1f3947a
429
py
Python
hostel/devices/migrations/0003_device_photos.py
phylocko/hostel
ff9fb7eb2d38e8cbe4feb096a07f0c5cea1a5365
[ "Apache-2.0" ]
null
null
null
hostel/devices/migrations/0003_device_photos.py
phylocko/hostel
ff9fb7eb2d38e8cbe4feb096a07f0c5cea1a5365
[ "Apache-2.0" ]
null
null
null
hostel/devices/migrations/0003_device_photos.py
phylocko/hostel
ff9fb7eb2d38e8cbe4feb096a07f0c5cea1a5365
[ "Apache-2.0" ]
1
2020-10-31T17:33:52.000Z
2020-10-31T17:33:52.000Z
# Generated by Django 2.0.5 on 2021-10-05 00:52 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('common', '0004_photos'), ('devices', '0002_auto_20201017_2132'), ] operations = [ migrations.AddField( model_name='devic...
21.45
60
0.589744
45
429
5.511111
0.822222
0
0
0
0
0
0
0
0
0
0
0.113636
0.282051
429
19
61
22.578947
0.691558
0.104895
0
0
1
0
0.185864
0.060209
0
0
0
0
0
1
0
false
0
0.076923
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8af66fdc8a9ee446bc7b0332263e370019166959
2,130
py
Python
t_system/db_fetching.py
sevgiun/T_System
2664e38843c36578bfb6c61e2642b56bd537352a
[ "MIT" ]
7
2019-11-06T10:00:39.000Z
2021-06-29T20:31:54.000Z
imline/db_fetching.py
MCYBA/ImLine
0d1bde9d196432905f3ed00b41cb048c97cf1b44
[ "MIT" ]
741
2019-11-01T11:23:33.000Z
2022-03-31T13:49:17.000Z
imline/db_fetching.py
MCYBA/ImLine
0d1bde9d196432905f3ed00b41cb048c97cf1b44
[ "MIT" ]
6
2019-11-01T11:49:27.000Z
2022-03-18T03:04:16.000Z
#!/usr/bin/python3 # -*- coding: utf-8 -*- """ .. module:: database :platform: Unix :synopsis: the top-level submodule of T_System that contains the functions and classes related to T_System's database and table creation ability. Powered by TinyDB. .. moduleauthor:: Cem Baybars GÜÇLÜ <cem.baybars@gmail.com> "...
34.354839
168
0.615493
259
2,130
4.96139
0.393822
0.063035
0.04358
0.056031
0.116732
0.116732
0.116732
0.116732
0.116732
0.116732
0
0.001347
0.302817
2,130
61
169
34.918033
0.863973
0.646948
0
0
0
0
0.050505
0.050505
0
0
0
0
0
1
0.2
false
0
0.066667
0
0.533333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
8aff5ab7850fa3bfa7318217948a0adf3698bd28
532
py
Python
otk/test/test_rii.py
draustin/otk
c6e91423ec79b85b380ee9385f6d27c91f92503d
[ "MIT" ]
7
2020-05-17T14:26:42.000Z
2022-02-14T04:52:54.000Z
otk/test/test_rii.py
uamhforever/otk
c6e91423ec79b85b380ee9385f6d27c91f92503d
[ "MIT" ]
17
2020-04-10T22:50:00.000Z
2020-06-18T04:54:19.000Z
otk/test/test_rii.py
uamhforever/otk
c6e91423ec79b85b380ee9385f6d27c91f92503d
[ "MIT" ]
1
2022-02-14T04:52:45.000Z
2022-02-14T04:52:45.000Z
import numpy as np from otk import rii def test_rii(): pages = rii.search('Eimerl-o', 'BaB2O4') assert len(pages) == 1 entry = rii.load_page(pages[0]) index = rii.parse_entry(entry) assert (abs(index(220e-9) - 1.8284) < 1e-3) def test_lookup_index(): assert (abs(rii.lookup_index('Malitson', ...
31.294118
93
0.640977
94
532
3.542553
0.510638
0.132132
0.126126
0.108108
0.174174
0.174174
0
0
0
0
0
0.125843
0.163534
532
16
94
33.25
0.622472
0
0
0
0
0
0.086466
0
0
0
0
0
0.416667
1
0.166667
false
0
0.166667
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
c1041af258749524bc55eafa1ab81f6db8f7fd21
1,188
py
Python
erhsh/utils/file_util.py
erhsh/erhsh-python
aeb04352948a2e1f8125a2681b80104b5146bff8
[ "Apache-2.0" ]
3
2021-04-20T11:23:58.000Z
2022-01-17T02:57:33.000Z
erhsh/utils/file_util.py
erhsh/erhsh-python
aeb04352948a2e1f8125a2681b80104b5146bff8
[ "Apache-2.0" ]
null
null
null
erhsh/utils/file_util.py
erhsh/erhsh-python
aeb04352948a2e1f8125a2681b80104b5146bff8
[ "Apache-2.0" ]
null
null
null
import os from datetime import datetime def list_sub_dirs(dir_path): if not os.path.exists(dir_path): raise RuntimeError("invalid dir path.") if not os.path.isdir(dir_path): raise RuntimeError("invalid dir path.") sub_dirs = [] sub_files = os.listdir(dir_path) for sub_file_name i...
31.263158
79
0.677609
192
1,188
3.807292
0.223958
0.239398
0.095759
0.060192
0.444596
0.300958
0.28591
0.084815
0.084815
0
0
0
0.223906
1,188
37
80
32.108108
0.792842
0
0
0.137931
0
0
0.078283
0
0
0
0
0
0
1
0.103448
false
0
0.068966
0
0.275862
0.034483
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c10e02e2fe07318224fa852f647944dd03346223
422
py
Python
omnipark/api/v1/login/views.py
ryanpineo/omnipark-back
2b8fa6a4e576a6c187c3ad1ce42a95d7accbe29f
[ "Apache-2.0" ]
null
null
null
omnipark/api/v1/login/views.py
ryanpineo/omnipark-back
2b8fa6a4e576a6c187c3ad1ce42a95d7accbe29f
[ "Apache-2.0" ]
null
null
null
omnipark/api/v1/login/views.py
ryanpineo/omnipark-back
2b8fa6a4e576a6c187c3ad1ce42a95d7accbe29f
[ "Apache-2.0" ]
null
null
null
from rest_framework import response, viewsets from .serializers import LoginSerializer class LoginViewSet(viewsets.GenericViewSet): serializer_class = LoginSerializer def create(self, request, *args, **kwargs): serializer = self.get_serializer(data=request.data) serializer.is_valid(raise_exc...
30.142857
59
0.734597
45
422
6.777778
0.644444
0
0
0
0
0
0
0
0
0
0
0
0.172986
422
13
60
32.461538
0.873926
0
0
0
0
0
0.011848
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
c1151c01209f2be4a1e7c4a0edc5ad3a63d4466c
3,425
py
Python
generate_text/generate_tensorflow.py
renjunxiang/Text_Generate
209f2fcf58aed7661de71f34549d555e33feae53
[ "MIT" ]
101
2018-07-31T16:02:57.000Z
2022-03-20T22:50:33.000Z
generate_text/generate_tensorflow.py
renjunxiang/generate_text
209f2fcf58aed7661de71f34549d555e33feae53
[ "MIT" ]
1
2020-12-07T04:32:38.000Z
2021-08-18T04:47:49.000Z
generate_text/generate_tensorflow.py
Jiaogh/Text_Generate
209f2fcf58aed7661de71f34549d555e33feae53
[ "MIT" ]
26
2019-01-21T06:36:00.000Z
2022-03-15T06:29:45.000Z
import os import numpy as np import tensorflow as tf from .rnn import model_tensorflow import re import pickle DIR = os.path.dirname(os.path.abspath(__file__)) def generate_tensorflow(process_path=DIR + '/model/poem/poem.pkl', model_path=DIR + '/model/poem/train', maxl...
36.052632
89
0.494891
357
3,425
4.518207
0.333333
0.044637
0.018599
0.039678
0.16491
0.133912
0.099194
0.099194
0.099194
0.099194
0
0.007257
0.396496
3,425
94
90
36.43617
0.773101
0.036788
0
0.081081
1
0
0.061487
0.019578
0
0
0
0
0
1
0.013514
false
0
0.081081
0
0.094595
0.108108
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c1162fbd326c2f2b744b4495ef4678ed8f97bd59
1,042
py
Python
ymir/backend/src/ymir-app/app/models/model.py
elliotmessi/ymir
3ec8145a1f894778116eb5218de223f6dd805b70
[ "Apache-2.0" ]
null
null
null
ymir/backend/src/ymir-app/app/models/model.py
elliotmessi/ymir
3ec8145a1f894778116eb5218de223f6dd805b70
[ "Apache-2.0" ]
null
null
null
ymir/backend/src/ymir-app/app/models/model.py
elliotmessi/ymir
3ec8145a1f894778116eb5218de223f6dd805b70
[ "Apache-2.0" ]
null
null
null
from datetime import datetime from sqlalchemy import ( Boolean, Column, DateTime, Float, Integer, String, Text, UniqueConstraint, ) from app.config import settings from app.db.base_class import Base class Model(Base): __tablename__ = "model" id = Column(Integer, primary_key=T...
28.162162
82
0.696737
124
1,042
5.653226
0.379032
0.077033
0.064194
0.094151
0.191155
0.122682
0
0
0
0
0
0
0.199616
1,042
36
83
28.944444
0.840528
0
0
0.0625
0
0
0.028791
0
0
0
0
0
0
1
0
false
0
0.125
0
0.5625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
c117e2d8b5f1b909c31dcd1e8e67fe7c83ac1b66
2,348
py
Python
apps/checkout/views.py
amyhoo/django-oscar-alipay
eacad65416428c6e09974219487a206577d34312
[ "BSD-3-Clause" ]
59
2015-08-29T10:51:34.000Z
2021-11-03T10:00:25.000Z
apps/checkout/views.py
amyhoo/django-oscar-alipay
eacad65416428c6e09974219487a206577d34312
[ "BSD-3-Clause" ]
4
2015-09-02T08:55:42.000Z
2017-05-15T10:33:00.000Z
apps/checkout/views.py
amyhoo/django-oscar-alipay
eacad65416428c6e09974219487a206577d34312
[ "BSD-3-Clause" ]
22
2015-08-10T10:46:18.000Z
2020-04-04T07:11:55.000Z
####################################################################################### # 重写 PaymentMethodView 提供多种支付方法的选择, # 重写 PaymentDetailsView 支付细节在具体支付方法包(例如alipay)中实现 ####################################################################################### from oscar.apps.checkout.views import PaymentMethodView,Pa...
44.301887
101
0.668654
235
2,348
6.519149
0.374468
0.022846
0.027415
0.035248
0.165796
0.077024
0
0
0
0
0
0
0.171635
2,348
53
102
44.301887
0.787661
0.142249
0
0.057143
0
0
0.116227
0.053902
0
0
0
0
0
1
0.114286
false
0
0.171429
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
c1241bde09017aa407e82068b3e6ddb900708f43
508
py
Python
old/LongestSubStringWithoutRepeatingsCharcters.py
jonathanjosef91/LeetCode
68dd91b1d0e0c607e50378ea7f5529fd47445c4b
[ "MIT" ]
null
null
null
old/LongestSubStringWithoutRepeatingsCharcters.py
jonathanjosef91/LeetCode
68dd91b1d0e0c607e50378ea7f5529fd47445c4b
[ "MIT" ]
4
2022-02-18T10:08:51.000Z
2022-02-18T13:12:09.000Z
old/LongestSubStringWithoutRepeatingsCharcters.py
jonathanjosef91/LeetCode
68dd91b1d0e0c607e50378ea7f5529fd47445c4b
[ "MIT" ]
null
null
null
class Solution: def lengthOfLongestSubstring(self, s: str) -> int: if len(s) == 0: return 0 NUM_OF_CHARS = 256 hist = [0] * NUM_OF_CHARS l = 0 r = 0 max = 0 while r < len(s): hist_i = ord(s[r]) hist[hist_i] += 1 ...
23.090909
54
0.374016
67
508
2.731343
0.358209
0.043716
0.065574
0.120219
0
0
0
0
0
0
0
0.064777
0.51378
508
22
55
23.090909
0.676113
0
0
0
0
0
0
0
0
0
0
0
0
1
0.052632
false
0
0
0
0.210526
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c133b53053daca0e859c64e76f3f3420f8594a0a
1,827
py
Python
MR-OCP/MROCPdjango/computation/algs/max_avg_degree/max_avg_deg.py
justi/m2g
09e8b889889ee8d8fb08b9b6fcd726fb3d901644
[ "Apache-2.0" ]
12
2015-03-11T22:07:17.000Z
2016-01-29T21:24:29.000Z
MR-OCP/MROCPdjango/computation/algs/max_avg_degree/max_avg_deg.py
youngmook/m2g
09e8b889889ee8d8fb08b9b6fcd726fb3d901644
[ "Apache-2.0" ]
213
2015-01-30T16:02:57.000Z
2016-01-29T21:45:02.000Z
MR-OCP/MROCPdjango/computation/algs/max_avg_degree/max_avg_deg.py
youngmook/m2g
09e8b889889ee8d8fb08b9b6fcd726fb3d901644
[ "Apache-2.0" ]
5
2015-02-04T13:58:12.000Z
2016-01-29T21:24:46.000Z
#!/usr/bin/env python # Copyright 2014 Open Connectome Project (http://openconnecto.me) # # 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 # #...
38.0625
104
0.749316
303
1,827
4.419142
0.541254
0.036594
0.029126
0.023898
0.035848
0
0
0
0
0
0
0.016556
0.173508
1,827
47
105
38.87234
0.870199
0.488232
0
0.133333
0
0
0.135093
0
0
0
0
0
0
0
null
null
0
0.266667
null
null
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
1
0
0
0
0
0
0
0
0
1
c134bdbfe11dbc33ecbecbfb4d500d8cdb08c69d
3,511
py
Python
src/accounts/views.py
m2jobe/tafseer
8f7d4bddbcd8a73c607f39a2b1d27c78aef86a15
[ "MIT" ]
null
null
null
src/accounts/views.py
m2jobe/tafseer
8f7d4bddbcd8a73c607f39a2b1d27c78aef86a15
[ "MIT" ]
null
null
null
src/accounts/views.py
m2jobe/tafseer
8f7d4bddbcd8a73c607f39a2b1d27c78aef86a15
[ "MIT" ]
null
null
null
from django.shortcuts import get_object_or_404 from django_rest_logger import log from knox.auth import TokenAuthentication from knox.models import AuthToken from rest_framework import status from rest_framework.authentication import BasicAuthentication from rest_framework.generics import GenericAPIView from rest_frame...
36.195876
117
0.710339
382
3,511
6.358639
0.311518
0.023055
0.041993
0.039111
0.162618
0.069988
0
0
0
0
0
0.010469
0.211051
3,511
96
118
36.572917
0.866426
0.076901
0
0.123077
0
0
0.065143
0
0
0
0
0
0
1
0.061538
false
0.015385
0.261538
0
0.676923
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
c13aeff29bda001891c8cf3e8b1bc374fc0c165c
754
py
Python
autoimpute/analysis/__init__.py
gjdv/autoimpute
aa418102d3b64fc7e0c0dafa6839746f0b9a6545
[ "MIT" ]
191
2019-03-16T17:00:33.000Z
2022-03-11T12:14:17.000Z
autoimpute/analysis/__init__.py
MlataIbrahim/autoimpute
d22cd86db6facd4a68746c8c0fcb3fae70071dac
[ "MIT" ]
57
2019-03-09T23:59:38.000Z
2022-03-01T08:17:33.000Z
autoimpute/analysis/__init__.py
MlataIbrahim/autoimpute
d22cd86db6facd4a68746c8c0fcb3fae70071dac
[ "MIT" ]
19
2019-04-13T19:01:23.000Z
2021-05-14T08:59:27.000Z
"""Manage the analysis folder from the autoimpute package. This module handles imports from the analysis folder that should be accessible whenever someone imports autoimpute.analysis. The list below specifies the methods and classes that are available on import. This module handles `from autoimpute.analysis import *`...
31.416667
78
0.802387
91
754
6.483516
0.472527
0.091525
0.057627
0.061017
0
0
0
0
0
0
0
0
0.145889
754
23
79
32.782609
0.916149
0.567639
0
0
0
0
0.22884
0
0
0
0
0
0
1
0
false
0
0.363636
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
c144afd84ce935554287482e6c1ce7b3ab3a0525
5,596
py
Python
Python/split-array-into-fibonacci-sequence.py
RideGreg/LeetCode
b70818b1e6947bf29519a24f78816e022ebab59e
[ "MIT" ]
1
2022-01-30T06:55:28.000Z
2022-01-30T06:55:28.000Z
Python/split-array-into-fibonacci-sequence.py
RideGreg/LeetCode
b70818b1e6947bf29519a24f78816e022ebab59e
[ "MIT" ]
null
null
null
Python/split-array-into-fibonacci-sequence.py
RideGreg/LeetCode
b70818b1e6947bf29519a24f78816e022ebab59e
[ "MIT" ]
1
2021-12-31T03:56:39.000Z
2021-12-31T03:56:39.000Z
# Time: O(n^3) # Space: O(n) # 842 # Given a string S of digits, such as S = "123456579", # we can split it into a Fibonacci-like sequence [123, 456, 579]. # # Formally, a Fibonacci-like sequence is a list F of non-negative # integers such that: # # 0 <= F[i] <= 2^31 - 1, # (that is, each integer fits a 32-bit signed...
32.16092
120
0.454789
746
5,596
3.406166
0.261394
0.01889
0.011806
0.023613
0.069264
0.051161
0.033845
0.014168
0.014168
0.014168
0
0.092398
0.42173
5,596
174
121
32.16092
0.692831
0.312545
0
0.259615
0
0
0.011284
0
0
0
0
0
0
0
null
null
0
0
null
null
0.048077
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
c14cdcac7d3354fc54dac9a43c5883bc3c65d04c
2,161
py
Python
cyphercat/datadefs/cifar10_dataset.py
arafin-lab/model_inversion_experiments
8e491f22ae847d8d0f2f31caed6ad0078c9b6a49
[ "Apache-2.0" ]
101
2018-10-26T14:39:19.000Z
2022-03-28T11:38:45.000Z
cyphercat/datadefs/cifar10_dataset.py
zhampel/cyphercat
4029ae8683b9056013e6424d8931afe79afa618e
[ "Apache-2.0" ]
32
2018-10-10T23:02:04.000Z
2019-11-11T21:30:57.000Z
cyphercat/datadefs/cifar10_dataset.py
zhampel/cyphercat
4029ae8683b9056013e6424d8931afe79afa618e
[ "Apache-2.0" ]
49
2018-10-05T17:54:49.000Z
2022-02-10T07:47:25.000Z
import torch from torch.utils.data import Dataset, ConcatDataset import torchvision from cyphercat.definitions import DATASETS_DIR, DATASPLITS_DIR from tqdm import tqdm import pandas as pd import numpy as np import pickle import os from .splitter import splitter, dataset_split def Cifar10_preload_and_split(path=None,...
32.742424
105
0.690421
276
2,161
5.300725
0.42029
0.043062
0.016405
0.02324
0.120301
0
0
0
0
0
0
0.015339
0.215641
2,161
65
106
33.246154
0.847788
0.220731
0
0
0
0
0.110769
0
0
0
0
0.015385
0
1
0.027778
false
0
0.277778
0
0.333333
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
1
0
0
0
0
0
0
0
0
0
0
1
c15423c94eae9054e142abda74c8200dd59d29fa
6,484
py
Python
calendarserver/tools/validcalendardata.py
eventable/CalendarServer
384444edb1966b530bc391789afbe3fb9cd6fd3e
[ "Apache-2.0" ]
1
2017-02-18T19:22:19.000Z
2017-02-18T19:22:19.000Z
calendarserver/tools/validcalendardata.py
eventable/CalendarServer
384444edb1966b530bc391789afbe3fb9cd6fd3e
[ "Apache-2.0" ]
null
null
null
calendarserver/tools/validcalendardata.py
eventable/CalendarServer
384444edb1966b530bc391789afbe3fb9cd6fd3e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python ## # Copyright (c) 2012-2015 Apple Inc. 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 re...
27.35865
120
0.609963
693
6,484
5.646465
0.349206
0.021467
0.006133
0.008178
0.214413
0.209047
0.168157
0.145668
0.102734
0.081268
0
0.004748
0.285318
6,484
236
121
27.474576
0.839663
0.100401
0
0.253731
0
0
0.095702
0
0
0
0
0
0
0
null
null
0.007463
0.08209
null
null
0.044776
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1