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
c68e5add13f063fbcdf222fe47050eb0edc40e67
1,970
py
Python
src/container/cni/cni/test/kube_cni/test_kube_params.py
Dmitry-Eremeev/contrail-controller
1238bcff697981662225ec5a15bc4d3d2237ae93
[ "Apache-2.0" ]
null
null
null
src/container/cni/cni/test/kube_cni/test_kube_params.py
Dmitry-Eremeev/contrail-controller
1238bcff697981662225ec5a15bc4d3d2237ae93
[ "Apache-2.0" ]
2
2018-12-04T02:20:52.000Z
2018-12-22T06:16:30.000Z
src/container/cni/cni/test/kube_cni/test_kube_params.py
Dmitry-Eremeev/contrail-controller
1238bcff697981662225ec5a15bc4d3d2237ae93
[ "Apache-2.0" ]
1
2018-12-04T02:07:47.000Z
2018-12-04T02:07:47.000Z
import sys import mock import unittest import os import types from mock import patch, Mock docker = Mock() docker.client = Mock() sys.modules['docker'] = docker from cni.kube_cni import kube_params class DockerClientMock(object): def __init__(self): pass def inspect_container(self, id): retu...
30.78125
84
0.63198
236
1,970
5.033898
0.317797
0.06734
0.027778
0.040404
0.446128
0.414141
0.383838
0.260943
0.260943
0.260943
0
0.025291
0.25736
1,970
63
85
31.269841
0.78674
0
0
0.25
0
0
0.162519
0.093448
0
0
0
0
0.134615
1
0.096154
false
0.057692
0.134615
0.019231
0.288462
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
c696f39c84a65ece0fb68103ccf754b71fcc536c
1,249
py
Python
scripts/devicereload/reload_cisco_device.py
chrisbalmer/netauto-helper-scripts
1855085f899fa1cfbf86d6515330e0a2b002ec6a
[ "MIT" ]
null
null
null
scripts/devicereload/reload_cisco_device.py
chrisbalmer/netauto-helper-scripts
1855085f899fa1cfbf86d6515330e0a2b002ec6a
[ "MIT" ]
null
null
null
scripts/devicereload/reload_cisco_device.py
chrisbalmer/netauto-helper-scripts
1855085f899fa1cfbf86d6515330e0a2b002ec6a
[ "MIT" ]
null
null
null
# coding: utf-8 import sys import yaml import paramiko import base64 import time import keychain import re import console def connect_to_device(ssh): print "\n\nConnecting to device..." keys = ssh.get_host_keys() keys.add(hostname,'ssh-rsa',public_key) password = keychain.get_password(hostname, ...
22.303571
70
0.72458
173
1,249
5.104046
0.421965
0.050963
0.057758
0.04077
0.052095
0
0
0
0
0
0
0.016807
0.142514
1,249
56
71
22.303571
0.807656
0.040032
0
0
0
0
0.153846
0
0
0
0
0
0
0
null
null
0.05
0.2
null
null
0.125
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
c69cba0e213110d86560b0464617fbc29e061f5e
1,409
py
Python
parkings/management/commands/create_init_user.py
PICTEC/pgs
c5e8fd78d411937ce60e733316d4d425410153bc
[ "MIT" ]
1
2021-03-26T05:49:08.000Z
2021-03-26T05:49:08.000Z
parkings/management/commands/create_init_user.py
PICTEC/PGS
813721b3bdbaf173d68cb81b3dc0886e542b9a4e
[ "MIT" ]
null
null
null
parkings/management/commands/create_init_user.py
PICTEC/PGS
813721b3bdbaf173d68cb81b3dc0886e542b9a4e
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Create superuser and monitoring group """ from django.core.management.base import BaseCommand from django.contrib.auth.models import Group from django.contrib.auth.models import Permission from django.contrib.auth.models import User from parkings.models import Monitor from parkings.models imp...
35.225
111
0.698368
160
1,409
6.0125
0.43125
0.094595
0.091476
0.065489
0.262994
0.262994
0
0
0
0
0
0
0.20582
1,409
39
112
36.128205
0.859696
0.041164
0
0
0
0
0.171258
0
0
0
0
0
0
1
0.071429
false
0.107143
0.214286
0
0.392857
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
c6afea6ff7fcfa0cc419b40bc7e78312c3c4768e
1,983
py
Python
third_party/blink/renderer/bindings/scripts/web_idl/make_copy_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
third_party/blink/renderer/bindings/scripts/web_idl/make_copy_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
third_party/blink/renderer/bindings/scripts/web_idl/make_copy_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
# Copyright 2019 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 from .composition_parts import Component from .composition_parts import Identifier from .make_copy import make_copy class MakeCopyTest(uni...
34.189655
73
0.616742
255
1,983
4.713725
0.4
0.066556
0.099834
0.043261
0
0
0
0
0
0
0
0.035714
0.265759
1,983
57
74
34.789474
0.789835
0.234997
0
0
0
0
0.005316
0
0
0
0
0
0.472222
1
0.111111
false
0.027778
0.111111
0
0.305556
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
c6b2c3233e24382da55f5267e87bb737b994481e
11,384
py
Python
abcdeep/argsutils.py
Conchylicultor/AbcDeep
6fcfc03a1a516ccd760201bb004098e6f6fe0e7e
[ "Apache-2.0" ]
1
2017-09-10T14:13:39.000Z
2017-09-10T14:13:39.000Z
abcdeep/argsutils.py
Conchylicultor/AbcDeep
6fcfc03a1a516ccd760201bb004098e6f6fe0e7e
[ "Apache-2.0" ]
null
null
null
abcdeep/argsutils.py
Conchylicultor/AbcDeep
6fcfc03a1a516ccd760201bb004098e6f6fe0e7e
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Conchylicultor. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
45.903226
236
0.634048
1,437
11,384
4.938761
0.286708
0.021558
0.038326
0.012681
0.108919
0.043962
0.043962
0.036353
0.036353
0.036353
0
0.004603
0.274772
11,384
247
237
46.089069
0.855015
0.379041
0
0.126984
0
0.015873
0.184588
0
0
0
0
0.024292
0
1
0.103175
false
0
0.047619
0.007937
0.261905
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
1
0
0
0
0
0
0
0
0
0
0
1
c6b65a93ba4bfc063204ecefff708893dd868984
265
py
Python
listas/gabarito/lista4CT/exe-1.py
yujinishioka/computacional-thinking-python
38abfc00d94c45cc5a7d4303e57cb8f0cab4272a
[ "MIT" ]
1
2022-03-08T21:54:49.000Z
2022-03-08T21:54:49.000Z
listas/gabarito/lista4CT/exe-1.py
yujinishioka/computacional-thinking-python
38abfc00d94c45cc5a7d4303e57cb8f0cab4272a
[ "MIT" ]
null
null
null
listas/gabarito/lista4CT/exe-1.py
yujinishioka/computacional-thinking-python
38abfc00d94c45cc5a7d4303e57cb8f0cab4272a
[ "MIT" ]
null
null
null
soma = 0 print("0 para parar") numero = int(input("Digite numero: ")) while numero != 0: if numero %2 == 0: soma += numero if numero == 0: break print("0 para parar") numero = int(input("Digite numero: ")) print("O total é", soma)
18.928571
42
0.562264
38
265
3.921053
0.421053
0.080537
0.134228
0.201342
0.550336
0.550336
0.550336
0.550336
0.550336
0
0
0.036649
0.279245
265
14
43
18.928571
0.743456
0
0
0.363636
0
0
0.236842
0
0
0
0
0
0
1
0
false
0
0
0
0
0.272727
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
c6b71b4c3e09976fe7726eb682b74cdf5af82966
990
py
Python
django_boost/admin/sites.py
toshiki-tosshi/django-boost
2431b743af2d976571d491ae232a5cb03c760b7e
[ "MIT" ]
null
null
null
django_boost/admin/sites.py
toshiki-tosshi/django-boost
2431b743af2d976571d491ae232a5cb03c760b7e
[ "MIT" ]
null
null
null
django_boost/admin/sites.py
toshiki-tosshi/django-boost
2431b743af2d976571d491ae232a5cb03c760b7e
[ "MIT" ]
null
null
null
from django.contrib import admin from django.db.models import Model __all__ = ["register_all"] def register_all(models, admin_class=admin.ModelAdmin): """ Easily register Models to Django admin site. :: from yourapp import models from django_boost.admin.sites import register_all regi...
26.052632
70
0.651515
121
990
5.181818
0.38843
0.122807
0.108453
0.066986
0.263158
0.263158
0.188198
0.188198
0.188198
0.188198
0
0
0.279798
990
37
71
26.756757
0.879383
0.441414
0
0
0
0
0.024341
0
0
0
0
0
0
1
0.083333
false
0.083333
0.166667
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
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
c6c065b4b597b12187960a9bbab5ef9b81fb5b2a
3,318
py
Python
src/webserver.py
sadjadeb/qrCode_ticket
36e5762e6fcb77315385922bb4568f2e0b67888c
[ "MIT" ]
10
2021-12-25T16:58:45.000Z
2022-03-21T02:25:10.000Z
src/webserver.py
sadjadeb/qrCode_ticket
36e5762e6fcb77315385922bb4568f2e0b67888c
[ "MIT" ]
2
2021-12-31T10:48:57.000Z
2022-01-01T12:05:02.000Z
src/webserver.py
sadjadeb/qrCode_ticket
36e5762e6fcb77315385922bb4568f2e0b67888c
[ "MIT" ]
null
null
null
from config import * from excel_handler import get_users_from_excel from fastapi import FastAPI, HTTPException, status, Request from fastapi.middleware.cors import CORSMiddleware from fastapi.responses import HTMLResponse from fastapi.staticfiles import StaticFiles from fastapi.templating import Jinja2Templates from ty...
34.926316
98
0.61965
359
3,318
5.501393
0.284123
0.06481
0.031899
0.042532
0.290127
0.172152
0.118481
0.118481
0.036456
0.036456
0
0.009587
0.276974
3,318
94
99
35.297872
0.813672
0
0
0.164384
0
0
0.112719
0.014768
0
0
0
0
0
1
0.027397
false
0.123288
0.136986
0
0.260274
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
c6c2c18414f129c6c748df8b453b0adccb5dbf36
2,010
py
Python
generate.py
xphip/feather
18a9c88bdb545e4f33a35e0e771b07d8c5c8c56e
[ "MIT" ]
null
null
null
generate.py
xphip/feather
18a9c88bdb545e4f33a35e0e771b07d8c5c8c56e
[ "MIT" ]
null
null
null
generate.py
xphip/feather
18a9c88bdb545e4f33a35e0e771b07d8c5c8c56e
[ "MIT" ]
null
null
null
#!/usr/bin/python # import os import subprocess import sys def CSSMaker(): output = 'css/icons_list.css' css = '' for icon in os.listdir('./icons'): [name, ext] = icon.split('.') css += 'i[data-feather="{}"]:after {{ background-image: url(../icons/{}); }}\n'.format(name, icon); f = open(output, 'w+') f.wri...
21.612903
101
0.593035
291
2,010
3.965636
0.268041
0.048527
0.04766
0.055459
0.531196
0.531196
0.511265
0.457539
0.336222
0.289428
0
0.005458
0.179602
2,010
92
102
21.847826
0.69436
0.258209
0
0.301887
0
0
0.324049
0.066576
0
0
0
0
0
0
null
null
0.018868
0.056604
null
null
0.075472
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
c6c6489454579f788af2d644a9acb3a3264844fe
1,245
py
Python
froide/publicbody/search_indexes.py
rufuspollock/froide
8ef4dbdd54a74f8c986d59e90348dfdbd85c5da4
[ "MIT" ]
null
null
null
froide/publicbody/search_indexes.py
rufuspollock/froide
8ef4dbdd54a74f8c986d59e90348dfdbd85c5da4
[ "MIT" ]
null
null
null
froide/publicbody/search_indexes.py
rufuspollock/froide
8ef4dbdd54a74f8c986d59e90348dfdbd85c5da4
[ "MIT" ]
null
null
null
from django.conf import settings from haystack import indexes from celery_haystack.indexes import CelerySearchIndex from .models import PublicBody PUBLIC_BODY_BOOSTS = settings.FROIDE_CONFIG.get("public_body_boosts", {}) class PublicBodyIndex(CelerySearchIndex, indexes.Indexable): text = indexes.EdgeNgramField...
37.727273
81
0.727711
153
1,245
5.705882
0.437909
0.061856
0.07331
0.114548
0.077892
0
0
0
0
0
0
0.001931
0.167871
1,245
32
82
38.90625
0.840734
0
0
0
0
0
0.09068
0
0
0
0
0
0
0
null
null
0
0.173913
null
null
0.043478
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
c6d2c43f2fbd2525762b6b965846526e85874c64
1,451
py
Python
qiskit_experiments/framework/matplotlib.py
QuantumHardware/qiskit-experiments
c09cf35bb922419354955abe8d536a97a9ea286b
[ "Apache-2.0" ]
72
2021-02-24T19:28:51.000Z
2022-03-27T02:56:59.000Z
qiskit_experiments/framework/matplotlib.py
dongcc/qiskit-experiments
894dcf41ac69ace9e6a0a3c4800d4b6994ac3b5a
[ "Apache-2.0" ]
509
2021-03-04T13:46:00.000Z
2022-03-31T18:09:16.000Z
qiskit_experiments/framework/matplotlib.py
dongcc/qiskit-experiments
894dcf41ac69ace9e6a0a3c4800d4b6994ac3b5a
[ "Apache-2.0" ]
70
2021-02-24T19:21:39.000Z
2022-03-05T04:00:12.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
36.275
89
0.751206
222
1,451
4.864865
0.518018
0.011111
0.022222
0.038889
0.077778
0.077778
0.077778
0.077778
0.077778
0.077778
0
0.006689
0.175741
1,451
39
90
37.205128
0.896321
0.61337
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
c6d82f38c4cf48f9145d5b9fdd0bf2b8b2b2ea04
552
py
Python
removeModule.py
ahmedwab/MMM-ModularHandlet.py
8bdc59730507333d280f2120849c5881dac7b1ad
[ "MIT" ]
1
2022-01-16T20:21:15.000Z
2022-01-16T20:21:15.000Z
removeModule.py
ahmedwab/MMM-ModuleHandler
8bdc59730507333d280f2120849c5881dac7b1ad
[ "MIT" ]
null
null
null
removeModule.py
ahmedwab/MMM-ModuleHandler
8bdc59730507333d280f2120849c5881dac7b1ad
[ "MIT" ]
null
null
null
import subprocess import os def removeModule(filename): try: path = os.path.abspath(os.path.join(os.path.dirname(__file__),"..")) path = path +"/modules" shellCommand = "cd " + path + " && rm -r -f " + filename subprocess.call(shellCommand, shell=True) shellCommand = "node ...
27.6
76
0.565217
54
552
5.703704
0.574074
0.058442
0.142857
0.220779
0.279221
0.279221
0
0
0
0
0
0
0.262681
552
19
77
29.052632
0.756757
0
0
0.142857
0
0
0.201818
0.049091
0
0
0
0
0
1
0.071429
false
0
0.142857
0
0.214286
0.214286
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
c6e54cd48762f141a1090fb8f2221a27cae5656e
136
py
Python
introduction/model_answer/python/09_tenka1_programmer_contest_1998.py
AAAR-Salmon/procon
d65865e7c7d98f7194f93610b4f06df8fff3332c
[ "MIT" ]
null
null
null
introduction/model_answer/python/09_tenka1_programmer_contest_1998.py
AAAR-Salmon/procon
d65865e7c7d98f7194f93610b4f06df8fff3332c
[ "MIT" ]
null
null
null
introduction/model_answer/python/09_tenka1_programmer_contest_1998.py
AAAR-Salmon/procon
d65865e7c7d98f7194f93610b4f06df8fff3332c
[ "MIT" ]
null
null
null
# 空の固定長配列はNoneを入れておくと高速に生成できます a=[None] * 20 a[0]=a[1]=100 a[2]=200 for i in range(3,20): a[i] = a[i-1] + a[i-2] + a[i-3] print(a[19])
17
32
0.588235
32
136
2.5
0.5
0.1
0
0
0
0
0
0
0
0
0
0.163793
0.147059
136
7
33
19.428571
0.525862
0.205882
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.166667
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
c6f0d37f8bd7df7e6ea000ba0009d2402adc88b8
8,523
py
Python
z42/z42/web/boot/css_js.py
jumploop/collection_python
f66f18dc5ae50fce95679e0f4aee5e28b2543432
[ "MIT" ]
null
null
null
z42/z42/web/boot/css_js.py
jumploop/collection_python
f66f18dc5ae50fce95679e0f4aee5e28b2543432
[ "MIT" ]
null
null
null
z42/z42/web/boot/css_js.py
jumploop/collection_python
f66f18dc5ae50fce95679e0f4aee5e28b2543432
[ "MIT" ]
null
null
null
# coding:utf-8 import _env from os.path import join, dirname, abspath, exists, splitext from os import walk, mkdir, remove, makedirs from collections import defaultdict from hashlib import md5 from glob import glob from base64 import urlsafe_b64encode import envoy import os from tempfile import mktemp from json import...
30.010563
96
0.516837
1,049
8,523
4.041945
0.170639
0.031132
0.011321
0.011321
0.120283
0.064387
0.025236
0.013443
0.013443
0.013443
0
0.009903
0.336501
8,523
283
97
30.116608
0.739876
0.06547
0
0.127854
0
0.018265
0.121
0.020655
0
0
0
0
0
0
null
null
0.004566
0.086758
null
null
0.027397
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
c6f5b6dd280b07a2399dbf6e91ec39c3acaaae3c
3,471
py
Python
projects/migrations/0001_initial.py
Zefarak/illidius_plan
78dd9cc4da374ff88fc507e4870712d87e9ff6c3
[ "MIT" ]
1
2019-02-18T14:31:57.000Z
2019-02-18T14:31:57.000Z
projects/migrations/0001_initial.py
Zefarak/illidius_plan
78dd9cc4da374ff88fc507e4870712d87e9ff6c3
[ "MIT" ]
null
null
null
projects/migrations/0001_initial.py
Zefarak/illidius_plan
78dd9cc4da374ff88fc507e4870712d87e9ff6c3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2017-07-21 04:59 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import django.db.models.manager class Migration(migrations.Migration): initial = True dependencies = [ ] operatio...
47.547945
141
0.589455
352
3,471
5.653409
0.28125
0.09799
0.054271
0.060302
0.572362
0.477387
0.419598
0.375377
0.375377
0.331156
0
0.020071
0.267934
3,471
72
142
48.208333
0.763085
0.019015
0
0.328125
1
0
0.149324
0.013228
0
0
0
0
0
1
0
false
0
0.0625
0
0.125
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
c6fa00680fcfe377a498032a4d31cbf4682bc376
1,071
py
Python
2015/07/puzzle2.py
jsvennevid/adventofcode
c6d5e3e3a166ffad5e8a7cc829599f49607a1efe
[ "MIT" ]
null
null
null
2015/07/puzzle2.py
jsvennevid/adventofcode
c6d5e3e3a166ffad5e8a7cc829599f49607a1efe
[ "MIT" ]
null
null
null
2015/07/puzzle2.py
jsvennevid/adventofcode
c6d5e3e3a166ffad5e8a7cc829599f49607a1efe
[ "MIT" ]
null
null
null
import re wires = {} for i in open('day7.txt'): set = re.match(r'([a-z0-9]+) -> ([a-z]+)',i) if set: wires[set.group(2)] = set.group(1) op1 = re.match(r'(NOT) ([a-z0-9]+) -> ([a-z]+)',i) if op1: wires[op1.group(3)] = [op1.group(1), op1.group(2)] op2 = re.match(r'([a-z0-9]+) (AND|OR|LSHIFT|RSHIFT) ([a-z0-9]+) ...
31.5
80
0.5845
189
1,071
3.306878
0.253968
0.0864
0.096
0.104
0.3488
0.3488
0.2832
0.24
0.24
0.24
0
0.061135
0.144725
1,071
33
81
32.454545
0.621179
0
0
0
0
0.032258
0.139122
0.020542
0
0
0
0
0
0
null
null
0
0.032258
null
null
0.032258
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
c6fb2216661678548d14f34f7328e08d3f4c59ba
1,254
py
Python
my_project/urls.py
stripathi669/codepal-sample-login
f553cc7f7794dd20197b1df336ed7953ac7a62dc
[ "MIT" ]
2
2017-04-23T08:54:09.000Z
2017-12-19T17:51:38.000Z
my_project/urls.py
stripathi669/codepal-sample-login
f553cc7f7794dd20197b1df336ed7953ac7a62dc
[ "MIT" ]
null
null
null
my_project/urls.py
stripathi669/codepal-sample-login
f553cc7f7794dd20197b1df336ed7953ac7a62dc
[ "MIT" ]
1
2019-10-01T17:51:13.000Z
2019-10-01T17:51:13.000Z
"""my_project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class...
32.153846
79
0.725678
194
1,254
4.57732
0.381443
0.036036
0.067568
0.027027
0.221847
0.192568
0.084459
0.084459
0
0
0
0.010377
0.154705
1,254
38
80
33
0.827358
0.547847
0
0
0
0
0.157424
0.096601
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
059afd391bdb4d5d0ce5e8f183cba9cadeed7065
3,451
py
Python
state/GameState.py
philippehenri-gosselin/tankgame
ceabbee7c348bfd4c95d2ee2ae0015d6d761154b
[ "X11" ]
4
2020-09-15T02:00:39.000Z
2021-05-11T17:23:28.000Z
state/GameState.py
philippehenri-gosselin/tankgame
ceabbee7c348bfd4c95d2ee2ae0015d6d761154b
[ "X11" ]
null
null
null
state/GameState.py
philippehenri-gosselin/tankgame
ceabbee7c348bfd4c95d2ee2ae0015d6d761154b
[ "X11" ]
null
null
null
""" MIT License Copyrights © 2020, Philippe-Henri Gosselin. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, m...
34.51
85
0.654593
449
3,451
5.024499
0.398664
0.039007
0.027926
0.015957
0.140957
0.099291
0.099291
0.070035
0
0
0
0.013535
0.272095
3,451
99
86
34.858586
0.884156
0.49319
0
0.190476
0
0
0.003137
0
0
0
0
0
0
1
0.214286
false
0
0.047619
0
0.452381
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
05afa4697f046e6af89220c07fb5a8db5f7b4cae
2,466
py
Python
odata/tests/test_context.py
suhrawardi/python-odata
8a8f88329ca0f5b893e114bcf7ab02f3a8106ef0
[ "MIT" ]
74
2015-04-13T15:12:44.000Z
2022-01-24T08:06:16.000Z
odata/tests/test_context.py
suhrawardi/python-odata
8a8f88329ca0f5b893e114bcf7ab02f3a8106ef0
[ "MIT" ]
43
2015-04-11T15:08:08.000Z
2021-04-14T16:08:43.000Z
odata/tests/test_context.py
suhrawardi/python-odata
8a8f88329ca0f5b893e114bcf7ab02f3a8106ef0
[ "MIT" ]
63
2016-06-22T03:52:39.000Z
2022-02-25T10:56:34.000Z
# -*- coding: utf-8 -*- import json import base64 import decimal from unittest import TestCase import requests import responses from odata.tests import Service, Product, DemoUnboundAction class TestContext(TestCase): def test_context_query_without_auth(self): def request_callback(request): ...
34.732394
92
0.623277
248
2,466
5.96371
0.306452
0.018932
0.037863
0.073022
0.444895
0.444895
0.393509
0.342123
0.342123
0.342123
0
0.008994
0.278589
2,466
70
93
35.228571
0.822372
0.008516
0
0.372549
0
0
0.059763
0.023741
0
0
0
0
0.058824
1
0.117647
false
0.078431
0.137255
0
0.313725
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
05ba89852c4740460e1cce9740e5ab37d0b77443
582
py
Python
minitf/kernel/_numpy_math.py
guocuimi/minitf
f272a6b1546b82aaec41ec7d2c2d34fa40a40385
[ "MIT" ]
7
2020-02-10T08:16:30.000Z
2021-01-31T14:08:02.000Z
minitf/kernel/_numpy_math.py
guocuimi/minitf
f272a6b1546b82aaec41ec7d2c2d34fa40a40385
[ "MIT" ]
1
2020-02-29T01:57:54.000Z
2020-02-29T01:57:54.000Z
minitf/kernel/_numpy_math.py
guocuimi/minitf
f272a6b1546b82aaec41ec7d2c2d34fa40a40385
[ "MIT" ]
null
null
null
import numpy as _np from minitf.kernel.core import notrace_primitive from minitf.kernel.core import primitive # ----- Differentiable functions ----- add = primitive(_np.add) subtract = primitive(_np.subtract) multiply = primitive(_np.multiply) divide = primitive(_np.divide) dot = primitive(_np.dot) square = primitive...
27.714286
48
0.780069
77
582
5.675325
0.415584
0.30206
0.073227
0.091533
0.118993
0
0
0
0
0
0
0
0.109966
582
20
49
29.1
0.843629
0.135739
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
05bdd1c7fb73fc917e7e9bacb41962e3873e9769
5,802
py
Python
map/migrations/0001_initial.py
matthewoconnor/mapplot-cdp
19513e6617f878d717ab4e917ffc9d22270edcfe
[ "MIT" ]
null
null
null
map/migrations/0001_initial.py
matthewoconnor/mapplot-cdp
19513e6617f878d717ab4e917ffc9d22270edcfe
[ "MIT" ]
null
null
null
map/migrations/0001_initial.py
matthewoconnor/mapplot-cdp
19513e6617f878d717ab4e917ffc9d22270edcfe
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.2 on 2017-01-10 20:41 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migration...
62.387097
275
0.608239
629
5,802
5.440382
0.211447
0.071011
0.077148
0.119229
0.587668
0.536528
0.498539
0.477499
0.443308
0.416715
0
0.0213
0.2313
5,802
92
276
63.065217
0.745964
0.011548
0
0.392857
1
0
0.177251
0.005059
0
0
0
0
0
1
0
false
0
0.047619
0
0.095238
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
05c54a12ada174aedbee75dcfaa2218242c10ec6
1,270
py
Python
edgecast/command_line.py
ganguera/edgecast
43ab240698a50c1382eb11bdb79acc5683bc10ea
[ "MIT" ]
null
null
null
edgecast/command_line.py
ganguera/edgecast
43ab240698a50c1382eb11bdb79acc5683bc10ea
[ "MIT" ]
null
null
null
edgecast/command_line.py
ganguera/edgecast
43ab240698a50c1382eb11bdb79acc5683bc10ea
[ "MIT" ]
null
null
null
import argparse import arrow import json import config from . import EdgecastReportReader from media_type import PLATFORM def main(): parser = argparse.ArgumentParser( description='EdgeCast Usage Report Reader' ) parser.add_argument('-g', '--granularity', dest='granularity', action='store', type=str, ...
27.608696
108
0.684252
156
1,270
5.512821
0.442308
0.04186
0.07907
0.083721
0.116279
0
0
0
0
0
0
0.000926
0.149606
1,270
45
109
28.222222
0.79537
0
0
0
0
0
0.248819
0.01811
0
0
0
0
0
0
null
null
0
0.176471
null
null
0.029412
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
05d462566b4d5254250d288dd86dc436b3f67818
2,144
py
Python
einshape/src/jax/jax_ops.py
LaudateCorpus1/einshape
b1a0e696c20c025074f09071790b97b42754260d
[ "Apache-2.0" ]
38
2021-07-23T12:00:08.000Z
2022-03-18T08:40:33.000Z
einshape/src/jax/jax_ops.py
LaudateCorpus1/einshape
b1a0e696c20c025074f09071790b97b42754260d
[ "Apache-2.0" ]
1
2021-10-05T16:20:23.000Z
2021-10-05T16:20:23.000Z
einshape/src/jax/jax_ops.py
LaudateCorpus1/einshape
b1a0e696c20c025074f09071790b97b42754260d
[ "Apache-2.0" ]
3
2021-08-04T16:18:29.000Z
2021-11-13T14:33:20.000Z
# coding=utf-8 # Copyright 2021 DeepMind Technologies Limited. # # 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 applic...
33.5
80
0.726213
311
2,144
4.954984
0.453376
0.064893
0.015574
0.029202
0.05451
0.05451
0.05451
0
0
0
0
0.005119
0.180037
2,144
63
81
34.031746
0.871445
0.510728
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.208333
0.083333
0.583333
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
05df1e31c5373f19f615a0dfa51f726a3fbefbbb
634
py
Python
plugins/startHelp.py
REX-BOTZ/MegaUploaderbot-1
025fd97344da388fe607f5db73ad9f4435f51baa
[ "Apache-2.0" ]
2
2021-11-12T13:15:03.000Z
2021-11-13T12:17:33.000Z
plugins/startHelp.py
REX-BOTZ/MegaUploaderbot-1
025fd97344da388fe607f5db73ad9f4435f51baa
[ "Apache-2.0" ]
null
null
null
plugins/startHelp.py
REX-BOTZ/MegaUploaderbot-1
025fd97344da388fe607f5db73ad9f4435f51baa
[ "Apache-2.0" ]
1
2022-01-07T09:55:53.000Z
2022-01-07T09:55:53.000Z
#!/usr/bin/env python3 """Importing""" # Importing Common Files from botModule.importCommon import * """Start Handler""" @Client.on_message(filters.private & filters.command("start")) async def start_handler(bot:Update, msg:Message): if await search_user_in_community(bot, msg): await msg.reply_text(BotM...
26.416667
71
0.728707
86
634
5.186047
0.44186
0.053812
0.067265
0.098655
0.713004
0.61435
0.61435
0.61435
0.390135
0.390135
0
0.001832
0.138801
634
23
72
27.565217
0.815018
0.085174
0
0.363636
0
0
0.031776
0
0
0
0
0
0
1
0
true
0
0.090909
0
0.272727
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
05e43c552c5879146cf3f036c106616fa493ebaa
5,487
py
Python
priorgen/pca_utils.py
joshjchayes/PriorGen
228be0b06dca29ad2ad33ae216f494eaead6161f
[ "MIT" ]
1
2021-12-09T10:29:20.000Z
2021-12-09T10:29:20.000Z
priorgen/pca_utils.py
joshjchayes/PriorGen
228be0b06dca29ad2ad33ae216f494eaead6161f
[ "MIT" ]
null
null
null
priorgen/pca_utils.py
joshjchayes/PriorGen
228be0b06dca29ad2ad33ae216f494eaead6161f
[ "MIT" ]
null
null
null
''' pca_utils.py Module containing functions to run PCAs, and generate diagnostic plots ''' from sklearn.decomposition import PCA import matplotlib.pyplot as plt import numpy as np def run_PCA(parameters, observables, n_components): ''' Runs a principal component analysis to reduce dimensionality of o...
35.862745
111
0.686896
780
5,487
4.751282
0.246154
0.035618
0.026444
0.028332
0.473556
0.433891
0.413384
0.413384
0.413384
0.413384
0
0.007007
0.245672
5,487
152
112
36.098684
0.888379
0.63696
0
0
1
0
0.134499
0
0
0
0
0
0
1
0.085714
false
0
0.085714
0
0.257143
0.028571
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
af01a3ec2accdacee77c90151e5eed151050b732
383
py
Python
PythonMundoDois/ex048.py
HendrylNogueira/CursoPython3
c3d9d4e2a27312b83d744aaf0f8d01b26e6faf4f
[ "MIT" ]
null
null
null
PythonMundoDois/ex048.py
HendrylNogueira/CursoPython3
c3d9d4e2a27312b83d744aaf0f8d01b26e6faf4f
[ "MIT" ]
null
null
null
PythonMundoDois/ex048.py
HendrylNogueira/CursoPython3
c3d9d4e2a27312b83d744aaf0f8d01b26e6faf4f
[ "MIT" ]
null
null
null
'''Faça um programa que calcule a soma entre todos os números impares que são múltiplos de três e que se encontram no intervalo de 1 até 500. ''' cont = 0 total = 0 for soma in range(1, 501, 2): if soma % 3 == 0: cont += 1 total += soma print(f'Foram encontrados {cont} valores coma as característic...
31.916667
114
0.67624
66
383
3.924242
0.69697
0.03861
0
0
0
0
0
0
0
0
0
0.047619
0.232376
383
11
115
34.818182
0.833333
0.360313
0
0
0
0
0.432773
0
0
0
0
0.090909
0
1
0
false
0
0
0
0
0.25
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
af0a0e2a3cb4cd7ca612fe33ee2283d0d807bbec
2,759
py
Python
abstract_tiles.py
CompassMentis/towers_of_strength
405af4dc114bd15fed24135b050267a2126c9d52
[ "MIT" ]
null
null
null
abstract_tiles.py
CompassMentis/towers_of_strength
405af4dc114bd15fed24135b050267a2126c9d52
[ "MIT" ]
1
2019-10-12T10:31:24.000Z
2019-10-12T10:31:24.000Z
abstract_tiles.py
CompassMentis/towers_of_strength
405af4dc114bd15fed24135b050267a2126c9d52
[ "MIT" ]
null
null
null
import pygame from settings import Settings from vector import Vector import utils class AbstractTile: pass class AbstractStaticTile(AbstractTile): IMAGE_FOLDER = 'static_tiles' def __init__(self, code, filename, with_sparkle=False): self.code = code self.filename = filename se...
29.98913
119
0.642987
359
2,759
4.724234
0.236769
0.056604
0.057783
0.074292
0.43691
0.357901
0.357901
0.334906
0.23467
0.142689
0
0.003737
0.223994
2,759
91
120
30.318681
0.788417
0
0
0.123077
0
0
0.154766
0.121421
0
0
0
0
0
1
0.169231
false
0.015385
0.061538
0.123077
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
af0a3c55728ddc9080f992028fc9b392f3c49b8c
657
py
Python
code/examples/classifier_compression/save_weights_cifar10.py
he-actlab/waveq.code
024d55af6d989d4074d3e555d03b76a2f7eac209
[ "CNRI-Python" ]
1
2020-04-09T03:21:32.000Z
2020-04-09T03:21:32.000Z
code/examples/classifier_compression/save_weights_cifar10.py
he-actlab/waveq.code
024d55af6d989d4074d3e555d03b76a2f7eac209
[ "CNRI-Python" ]
4
2020-09-26T00:53:47.000Z
2022-02-10T01:23:34.000Z
code/examples/classifier_compression/save_weights_cifar10.py
sinreq-learn/sinreq-learn.code
a205d3fa22a41d5f4fc1ef1e5698c4f1dbb11e6a
[ "BSD-4-Clause-UC" ]
null
null
null
import torch import numpy as np filename = '2020.01.12-044406' model = torch.load('logs/'+filename+'/checkpoint.pth.tar') k1 = model['state_dict']['module.conv1.weight'].data.cpu().numpy() k2 = model['state_dict']['module.conv2.weight'].data.cpu().numpy() k3 = model['state_dict']['module.fc1.weight'].data.cpu().numpy(...
41.0625
66
0.721461
104
657
4.461538
0.394231
0.107759
0.150862
0.215517
0.290948
0
0
0
0
0
0
0.078526
0.050228
657
15
67
43.8
0.665064
0
0
0
0
0
0.471842
0.197869
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
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
af0fe57c93b0182742617678b6b627538eed3937
673
py
Python
exhibit/catalogue/migrations/0008_auto_20190809_1822.py
yrhooke/exhibit-proj
899f340390761423f8d2fe7f1edbad4e9f79435e
[ "MIT" ]
null
null
null
exhibit/catalogue/migrations/0008_auto_20190809_1822.py
yrhooke/exhibit-proj
899f340390761423f8d2fe7f1edbad4e9f79435e
[ "MIT" ]
null
null
null
exhibit/catalogue/migrations/0008_auto_20190809_1822.py
yrhooke/exhibit-proj
899f340390761423f8d2fe7f1edbad4e9f79435e
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2019-08-09 18:22 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('catalogue', '0007_auto_20190809_1735'), ] operations = [ migrations.AlterField( model_name='artwo...
26.92
130
0.619614
73
673
5.60274
0.575342
0.05868
0.06846
0.107579
0.195599
0.195599
0
0
0
0
0
0.06012
0.258544
673
24
131
28.041667
0.759519
0.063893
0
0.333333
1
0
0.133758
0.036624
0
0
0
0
0
1
0
false
0
0.111111
0
0.277778
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
af13b442639e939a58e7ab827a12150bdfb1b715
3,455
py
Python
utils.py
cedias/Hierarchical-Sentiment
19dbbae45707839d380f07e09e24f47c8267e72e
[ "MIT" ]
107
2018-01-16T13:57:54.000Z
2022-03-14T14:44:31.000Z
utils.py
cedias/Hierarchical-Sentiment
19dbbae45707839d380f07e09e24f47c8267e72e
[ "MIT" ]
5
2018-07-05T06:01:11.000Z
2019-11-16T13:14:09.000Z
utils.py
cedias/Hierarchical-Sentiment
19dbbae45707839d380f07e09e24f47c8267e72e
[ "MIT" ]
25
2018-02-02T05:46:42.000Z
2021-03-23T17:08:15.000Z
#utils.py import torch from tqdm import tqdm from torch.autograd import Variable from fmtl import FMTL def tuple2var(tensors,data): def copy2tensor(t,data): t.resize_(data.size()).copy_(data,async=True) return Variable(t) return tuple(map(copy2tensor,tensors,data)) def new_tensors(n,cuda,type...
30.848214
121
0.621708
507
3,455
4.145957
0.335306
0.009515
0.017127
0.015224
0
0
0
0
0
0
0
0.018293
0.240521
3,455
112
122
30.848214
0.782774
0.04081
0
0.0375
0
0
0.140814
0
0
0
0
0
0.0125
0
null
null
0
0.05
null
null
0.1125
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
af18b963242e252b6522312070b2c7035181de3d
3,781
py
Python
aether-ui/aether/ui/api/migrations/0005_project.py
eHealthAfrica/aether
6845d7eeebd4ae57332f73d74db3617e00032204
[ "Apache-2.0" ]
14
2018-08-09T20:57:16.000Z
2020-10-11T12:22:18.000Z
aether-ui/aether/ui/api/migrations/0005_project.py
eHealthAfrica/aether
6845d7eeebd4ae57332f73d74db3617e00032204
[ "Apache-2.0" ]
148
2018-07-24T10:52:29.000Z
2022-02-10T09:06:44.000Z
aether-ui/aether/ui/api/migrations/0005_project.py
eHealthAfrica/aether
6845d7eeebd4ae57332f73d74db3617e00032204
[ "Apache-2.0" ]
6
2018-07-25T13:33:10.000Z
2019-09-23T03:02:09.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.20 on 2019-02-21 09:42 from __future__ import unicode_literals from django.db import migrations, models from django.conf import settings import django.db.models.deletion import django.utils.timezone import model_utils.fields import uuid def migrate_create_projects(a...
41.097826
196
0.638191
408
3,781
5.747549
0.343137
0.042217
0.027292
0.028145
0.238806
0.238806
0.208955
0.208955
0.167164
0.073348
0
0.009908
0.252579
3,781
91
197
41.549451
0.819887
0.112933
0
0.202899
1
0
0.146188
0.0287
0
0
0
0
0
1
0.014493
false
0
0.101449
0
0.15942
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
af1a49eb92cc6d5d66baa56866caa452bb8f70bb
1,116
py
Python
classification/migrations/0055_new_ekey_lrg_identifier.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
5
2021-01-14T03:34:42.000Z
2022-03-07T15:34:18.000Z
classification/migrations/0055_new_ekey_lrg_identifier.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
551
2020-10-19T00:02:38.000Z
2022-03-30T02:18:22.000Z
classification/migrations/0055_new_ekey_lrg_identifier.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
null
null
null
# Generated by Django 3.2.4 on 2021-09-08 04:50 from django.db import migrations def _insert_lrg_id_key(apps, schema_editor): """ This can be deleted if there is a blat_keys migration after it """ EvidenceKey = apps.get_model("classification", "EvidenceKey") EvidenceKey.objects.get_or_create( ke...
33.818182
234
0.646953
128
1,116
5.46875
0.78125
0.021429
0.031429
0.04
0
0
0
0
0
0
0
0.023866
0.249104
1,116
32
235
34.875
0.811456
0.121864
0
0
1
0.043478
0.437693
0.035015
0
0
0
0
0
1
0.043478
false
0
0.043478
0
0.217391
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
af2025817a250b509240a41f88f09a6209dab649
317
py
Python
0-python-tutorial/16-forLoops09.py
luis2ra/py3-00-w3schools
6bb851837f8ef9520491d13fa2c909047c9b18cf
[ "MIT" ]
null
null
null
0-python-tutorial/16-forLoops09.py
luis2ra/py3-00-w3schools
6bb851837f8ef9520491d13fa2c909047c9b18cf
[ "MIT" ]
null
null
null
0-python-tutorial/16-forLoops09.py
luis2ra/py3-00-w3schools
6bb851837f8ef9520491d13fa2c909047c9b18cf
[ "MIT" ]
null
null
null
# Demo Python For Loops - Else in For Loop ''' Else in For Loop The else keyword in a for loop specifies a block of code to be executed when the loop is finished: ''' # Print all numbers from 0 to 5, and print a message when the loop has ended: for x in range(6): print(x) else: print("Finally finished!")
24.384615
98
0.700315
59
317
3.762712
0.576271
0.094595
0.081081
0.117117
0
0
0
0
0
0
0
0.012245
0.227129
317
13
99
24.384615
0.893878
0.73817
0
0
0
0
0.22973
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
af277517a9ae94e0e93ae316044261745639cbc5
381
py
Python
australia.py/real para dolar.py
Godofcoffe/Australia
9d33e5f96dac99e670887d51411476a1220e43af
[ "MIT" ]
null
null
null
australia.py/real para dolar.py
Godofcoffe/Australia
9d33e5f96dac99e670887d51411476a1220e43af
[ "MIT" ]
null
null
null
australia.py/real para dolar.py
Godofcoffe/Australia
9d33e5f96dac99e670887d51411476a1220e43af
[ "MIT" ]
null
null
null
try: real = float(input('R$:')) except ValueError: print(f'Digite uma quantia valida.') real = float(input('R$:')) while len(str(real)) > 5: print('Quantia não reconhecida, digite novamente com "." para separar os centavos') real = float(input('R$:')) print(f'Voce pode comprar {real/5.55:.2f} dol...
29.307692
88
0.650919
58
381
4.275862
0.62069
0.108871
0.169355
0.181452
0
0
0
0
0
0
0
0.028481
0.170604
381
12
89
31.75
0.756329
0
0
0.3
0
0
0.509186
0
0
0
0
0
0
1
0
false
0
0
0
0
0.4
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
af2a14c5a1ecce93ffbb2b29cf3a4a7b86e5ec05
6,482
py
Python
urlazy.py
i-trofimtschuk/urlazy
bdd6b3fd817f49ec35f590a7b01bb93ce290019a
[ "Unlicense" ]
1
2021-02-02T13:33:46.000Z
2021-02-02T13:33:46.000Z
urlazy.py
i-trofimtschuk/urlazy
bdd6b3fd817f49ec35f590a7b01bb93ce290019a
[ "Unlicense" ]
null
null
null
urlazy.py
i-trofimtschuk/urlazy
bdd6b3fd817f49ec35f590a7b01bb93ce290019a
[ "Unlicense" ]
null
null
null
from __future__ import annotations from dataclasses import dataclass, field from typing import List, Tuple, Union from urllib.parse import ParseResult, urlencode __version__ = '0.0.1.dev' Query = List[Tuple[str, str]] Path = List[str] @dataclass() class URL: """Build URLs incrementally # one way >>> u...
31.619512
227
0.568343
738
6,482
4.787263
0.135501
0.050948
0.066233
0.045853
0.423436
0.367393
0.331446
0.314181
0.303425
0.287291
0
0.010572
0.255785
6,482
204
228
31.77451
0.721808
0.374421
0
0.239316
0
0
0.024929
0.008738
0
0
0
0
0
1
0.162393
false
0.068376
0.042735
0.051282
0.470085
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
af2f99ce0b83f78345650ccae1cccf6756b809c0
555
py
Python
test.py
BLovegrove/CPR-Tools
0dda4409410c5b2c47a913ac611e53870ef33cf7
[ "Apache-2.0" ]
2
2022-01-30T07:29:04.000Z
2022-01-31T02:42:37.000Z
test.py
BLovegrove/cpr-tools
0dda4409410c5b2c47a913ac611e53870ef33cf7
[ "Apache-2.0" ]
1
2022-02-13T21:46:44.000Z
2022-02-14T20:38:31.000Z
test.py
BLovegrove/cpr-tools
0dda4409410c5b2c47a913ac611e53870ef33cf7
[ "Apache-2.0" ]
null
null
null
import pyautogui as pgui pgui.PAUSE = 0 def apply_sauce(): sauce_pos = (365, 548) pizza_pos = (968, 638) pgui.moveTo(sauce_pos[0], sauce_pos[1]) # pgui.mouseDown() print("mouse down") pgui.moveTo(pizza_pos[0], pizza_pos[1]) speed = 0.11 drift = 50 for i ...
20.555556
74
0.565766
80
555
3.775
0.425
0.18543
0.149007
0.178808
0.288079
0.225166
0.225166
0.225166
0.225166
0.225166
0
0.076142
0.29009
555
27
75
20.555556
0.690355
0.055856
0
0
0
0
0.034483
0
0
0
0
0
0
1
0.0625
false
0
0.0625
0
0.1875
0.125
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
af304f834ba45b345b4105da4802d1c8a9c5c35b
296
py
Python
project/common/regular.py
mizxc/kispower
38d88c4c5a983a90009cb8c7012cb4295b1aec06
[ "MIT" ]
12
2020-03-12T08:13:52.000Z
2022-01-19T05:27:35.000Z
project/common/regular.py
kqqian/kispower
38d88c4c5a983a90009cb8c7012cb4295b1aec06
[ "MIT" ]
4
2020-07-18T05:07:52.000Z
2022-01-13T02:21:58.000Z
project/common/regular.py
kqqian/kispower
38d88c4c5a983a90009cb8c7012cb4295b1aec06
[ "MIT" ]
3
2020-04-30T02:49:25.000Z
2022-01-19T05:27:38.000Z
# -*- coding: utf-8 -*- # @Time : 2019-12-22 # @Author : mizxc # @Email : xiangxianjiao@163.com import re def reEmail(str): return re.match(r'^[0-9a-zA-Z_]{0,19}@[0-9a-zA-Z]{1,13}\.[com,cn,net]{1,3}$', str) if __name__ == '__main__': print (reEmail('')) print (len('12222'))
21.142857
86
0.564189
48
296
3.291667
0.770833
0.037975
0.063291
0.075949
0
0
0
0
0
0
0
0.119342
0.179054
296
14
87
21.142857
0.530864
0.314189
0
0
0
0.166667
0.351759
0.286432
0
0
0
0
0
1
0.166667
false
0
0.166667
0.166667
0.5
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
af3189d1de387336103e54ce753d23af15e912bb
2,615
py
Python
tests/test_markers.py
opoplawski/pytest-mpi
9ad369af744a47cedf5025245f051e793703c748
[ "BSD-3-Clause" ]
9
2019-07-12T11:31:29.000Z
2022-03-11T19:31:17.000Z
tests/test_markers.py
opoplawski/pytest-mpi
9ad369af744a47cedf5025245f051e793703c748
[ "BSD-3-Clause" ]
38
2019-12-18T05:08:39.000Z
2022-03-25T02:45:00.000Z
tests/test_markers.py
opoplawski/pytest-mpi
9ad369af744a47cedf5025245f051e793703c748
[ "BSD-3-Clause" ]
6
2020-05-10T23:37:19.000Z
2022-03-21T13:34:22.000Z
from pytest_mpi._helpers import _fix_plural MPI_TEST_CODE = """ import pytest @pytest.mark.mpi def test_size(): from mpi4py import MPI comm = MPI.COMM_WORLD assert comm.size > 0 @pytest.mark.mpi(min_size=2) def test_size_min_2(): from mpi4py import MPI com...
21.61157
76
0.669981
358
2,615
4.592179
0.131285
0.059611
0.121655
0.057786
0.762165
0.678832
0.622871
0.515207
0.460462
0.43309
0
0.018868
0.229828
2,615
120
77
21.791667
0.797418
0
0
0.4625
0
0
0.386998
0.045889
0
0
0
0
0.225
1
0.0875
false
0.0875
0.125
0
0.2125
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
af406546a6f0ed26414148fc4236cb5e5b9c721d
53,251
py
Python
src/SOAPpy/Types.py
ramoncreager/SOAPpy
8f157e9612e0e140980a909b0e3e4a316c7a4e92
[ "BSD-3-Clause" ]
null
null
null
src/SOAPpy/Types.py
ramoncreager/SOAPpy
8f157e9612e0e140980a909b0e3e4a316c7a4e92
[ "BSD-3-Clause" ]
null
null
null
src/SOAPpy/Types.py
ramoncreager/SOAPpy
8f157e9612e0e140980a909b0e3e4a316c7a4e92
[ "BSD-3-Clause" ]
null
null
null
""" ############################################################################### # Copyright (c) 2003, Pfizer # Copyright (c) 2001, Cayce Ullman. # Copyright (c) 2001, Brian Matthews. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provide...
28.400533
80
0.520009
5,973
53,251
4.511636
0.094257
0.027015
0.015957
0.022339
0.638081
0.608617
0.569838
0.550987
0.522154
0.507719
0
0.020134
0.364819
53,251
1,874
81
28.415688
0.776579
0.024488
0
0.599681
0
0
0.066238
0.00059
0.000797
0
0
0.000534
0
0
null
null
0.011164
0.010367
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
af4aa6d6dc3668051cf943238abd945caf290ab8
610
py
Python
Code/utils/Load_model.py
rezacsedu/Detection-of-Hate-Speech-in-Multimodal-Memes
9c66be09d4d12c0f9630e4fe4060dd1aa7c5fd0b
[ "CC0-1.0" ]
8
2021-03-14T00:37:44.000Z
2022-03-06T07:41:27.000Z
Code/utils/Load_model.py
rezacsedu/Detection-of-Hate-Speech-in-Multimodal-Memes
9c66be09d4d12c0f9630e4fe4060dd1aa7c5fd0b
[ "CC0-1.0" ]
1
2021-03-30T14:29:22.000Z
2022-01-31T18:21:25.000Z
Code/utils/Load_model.py
rezacsedu/Detection-of-Hate-Speech-in-Multimodal-Memes
9c66be09d4d12c0f9630e4fe4060dd1aa7c5fd0b
[ "CC0-1.0" ]
2
2021-03-01T02:51:53.000Z
2021-08-10T09:18:26.000Z
import torch ######### Load saved model from checkpoint ######### def load(modelpath, model, optimizer, lr_scheduler): checkpoint = torch.load(modelpath) model.load_state_dict(checkpoint['model_state_dict']) optimizer.load_state_dict(checkpoint['optimizer_state_dict']) train_loss = checkpoint['Traini...
35.882353
75
0.736066
75
610
5.64
0.32
0.106383
0.092199
0.163121
0
0
0
0
0
0
0
0
0.140984
610
16
76
38.125
0.807252
0.052459
0
0
0
0
0.206463
0.043088
0
0
0
0
0
1
0.090909
false
0
0.090909
0
0.272727
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
af5046173b41ba95d5ae8b44b58b6a5a51e8848f
1,979
py
Python
beerhunter/hops/migrations/0001_initial.py
zhukovvlad/beerhunt-project
e841f4946c08275e9d189605ffe9026d6657d63f
[ "MIT" ]
null
null
null
beerhunter/hops/migrations/0001_initial.py
zhukovvlad/beerhunt-project
e841f4946c08275e9d189605ffe9026d6657d63f
[ "MIT" ]
null
null
null
beerhunter/hops/migrations/0001_initial.py
zhukovvlad/beerhunt-project
e841f4946c08275e9d189605ffe9026d6657d63f
[ "MIT" ]
null
null
null
# Generated by Django 3.0.9 on 2020-08-24 17:29 import autoslug.fields from django.db import migrations, models import django.utils.timezone import model_utils.fields class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( ...
41.229167
147
0.587671
199
1,979
5.728643
0.346734
0.067544
0.110526
0.131579
0.484211
0.433333
0.433333
0.231579
0.231579
0.138596
0
0.014553
0.270844
1,979
47
148
42.106383
0.775468
0.022739
0
0.35
1
0
0.097308
0
0
0
0
0
0
1
0
false
0
0.1
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
af52d7912236214a17650c5aa0f534f092aa2d20
624
py
Python
iot-sandbox/sandbox/sandbox/routing.py
d-hrytsenko/virgil-iotkit
5e7baa122cd0adeb96bcc45afac7d091e8fd0432
[ "BSD-3-Clause" ]
null
null
null
iot-sandbox/sandbox/sandbox/routing.py
d-hrytsenko/virgil-iotkit
5e7baa122cd0adeb96bcc45afac7d091e8fd0432
[ "BSD-3-Clause" ]
null
null
null
iot-sandbox/sandbox/sandbox/routing.py
d-hrytsenko/virgil-iotkit
5e7baa122cd0adeb96bcc45afac7d091e8fd0432
[ "BSD-3-Clause" ]
null
null
null
from channels.auth import AuthMiddlewareStack from channels.routing import ProtocolTypeRouter, URLRouter from django.urls import path from sandbox.apps.devices.consumers import FactoryDevicesConsumer, UserDevicesConsumer from sandbox.libs.logs.consumers import SandboxLogsConsumer application = ProtocolTypeRouter({ ...
34.666667
86
0.735577
58
624
7.913793
0.534483
0.039216
0.056645
0
0
0
0
0
0
0
0
0
0.176282
624
17
87
36.705882
0.892996
0.064103
0
0
0
0
0.097938
0
0
0
0
0
0
1
0
false
0
0.357143
0
0.357143
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
af58316a61820a09a31e0f30a7a6aca3f04dde99
861
py
Python
chap6/6-4.py
StewedChickenwithStats/Answers-to-Python-Crash-Course
9ffbe02abba5d111f702d920db7932303daf59d4
[ "MIT" ]
1
2022-02-21T07:05:48.000Z
2022-02-21T07:05:48.000Z
chap6/6-4.py
StewedChickenwithStats/Answers-to-Python-Crash-Course
9ffbe02abba5d111f702d920db7932303daf59d4
[ "MIT" ]
null
null
null
chap6/6-4.py
StewedChickenwithStats/Answers-to-Python-Crash-Course
9ffbe02abba5d111f702d920db7932303daf59d4
[ "MIT" ]
null
null
null
codewords={ 'array':'an arrangement of aerials spaced to give desired directional characteristics', 'byte':'computer memory unit', 'boolean':'a data type with only two possible values: true or false', 'debug':'locate and correct errors in a computer program code', 'address':'the code that identifies where a piece ...
45.315789
168
0.759582
130
861
5.030769
0.715385
0.009174
0
0
0
0
0
0
0
0
0
0
0.140534
861
18
169
47.833333
0.883784
0.034843
0
0
0
0.071429
0.774155
0
0
0
0
0
0
1
0
false
0
0
0
0
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
af5fcb0196a0a9c57b0c130032cf305a83d559c5
1,036
py
Python
flask_monitoringdashboard/test/db/test_codeline.py
jlane9/Flask-MonitoringDashboard
b989bcf8f870ccd9141210eb4b2b8f716873c4fe
[ "MIT" ]
null
null
null
flask_monitoringdashboard/test/db/test_codeline.py
jlane9/Flask-MonitoringDashboard
b989bcf8f870ccd9141210eb4b2b8f716873c4fe
[ "MIT" ]
null
null
null
flask_monitoringdashboard/test/db/test_codeline.py
jlane9/Flask-MonitoringDashboard
b989bcf8f870ccd9141210eb4b2b8f716873c4fe
[ "MIT" ]
null
null
null
""" This file contains all unit tests that count a number of results in the database. (Corresponding to the file: 'flask_monitoringdashboard/database/count.py') See info_box.py for how to run the test-cases. """ import unittest from flask_monitoringdashboard.database import session_scope from flask_monito...
35.724138
113
0.726834
144
1,036
4.986111
0.381944
0.075209
0.132312
0.167131
0.086351
0.086351
0.086351
0.086351
0.086351
0
0
0.016706
0.19112
1,036
28
114
37
0.840095
0.195946
0
0
0
0
0.01845
0
0
0
0
0
0.294118
1
0.058824
false
0
0.176471
0
0.294118
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
af6294e18a82ba001ab631ad5741ea18cea1db0a
849
py
Python
Sec 2 - Python Refresher/13_Destructuring_Variables/DestructVars.py
BrentLittle/WebDevPython
14f646c10643ab06ac4217a44b7ad6c47a7270d8
[ "MIT" ]
null
null
null
Sec 2 - Python Refresher/13_Destructuring_Variables/DestructVars.py
BrentLittle/WebDevPython
14f646c10643ab06ac4217a44b7ad6c47a7270d8
[ "MIT" ]
null
null
null
Sec 2 - Python Refresher/13_Destructuring_Variables/DestructVars.py
BrentLittle/WebDevPython
14f646c10643ab06ac4217a44b7ad6c47a7270d8
[ "MIT" ]
null
null
null
t = (5,11) x , y = t print(x,y) attendance = {"Rolf": 96, "Bob": 80, "Anne" :100} print(list(attendance.items())) for t in attendance.items() : print(t) # print(f"{student}: {attended}") for student, attended in attendance.items() : print(f"{student}: {attended}") # Blog post: https://blog.tecladocode.com/d...
22.945946
80
0.638398
127
849
4.251969
0.377953
0.044444
0.062963
0.081481
0.222222
0.155556
0.155556
0.155556
0.155556
0.155556
0
0.042466
0.140165
849
37
81
22.945946
0.69726
0.113074
0
0.24
0
0.04
0.250333
0
0
0
0
0
0
1
0
false
0
0
0
0
0.52
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
af650e570346dc05a0790bc50a568e6fc7bd4055
811
py
Python
registry/smart_contract/migrations/0009_auto_20180717_1242.py
RustamSultanov/Python-test-registry-
1d779a8135567a0b3aeca0151b2d7f0905014e88
[ "MIT" ]
1
2019-01-16T14:52:37.000Z
2019-01-16T14:52:37.000Z
registry/smart_contract/migrations/0009_auto_20180717_1242.py
RustamSultanov/Python-test-registry-
1d779a8135567a0b3aeca0151b2d7f0905014e88
[ "MIT" ]
8
2019-10-21T16:18:33.000Z
2021-06-08T20:33:14.000Z
registry/smart_contract/migrations/0009_auto_20180717_1242.py
RustamSultanov/Python-test-registry-
1d779a8135567a0b3aeca0151b2d7f0905014e88
[ "MIT" ]
null
null
null
# Generated by Django 2.0.7 on 2018-07-17 12:42 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('smart_contract', '0008_useraccept_company'), ] operations = [ migrations.CreateModel( name='Com...
30.037037
136
0.61529
85
811
5.741176
0.647059
0.04918
0.057377
0.090164
0
0
0
0
0
0
0
0.036728
0.261406
811
26
137
31.192308
0.777963
0.055487
0
0.1
1
0
0.141361
0.062827
0
0
0
0
0
1
0
false
0
0.1
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
af688d46de52f6336abb6ee7980f7d6335c0a120
569
py
Python
django/company/util/models.py
shortintern2020-A-labyrinth/TeamD
64245c837afd5c19f6383c5c68320ee4d1693021
[ "WTFPL" ]
4
2020-08-21T05:09:23.000Z
2020-09-10T14:27:22.000Z
django/company/util/models.py
shortintern2020-A-labyrinth/TeamD
64245c837afd5c19f6383c5c68320ee4d1693021
[ "WTFPL" ]
46
2020-08-21T07:00:10.000Z
2020-08-27T20:26:55.000Z
django/company/util/models.py
shortintern2020-A-labyrinth/TeamD
64245c837afd5c19f6383c5c68320ee4d1693021
[ "WTFPL" ]
null
null
null
from django.core.mail import send_mail from django.http import HttpResponse from session.redis import SessionRedis # Create your models here. # 一応テスト用に引数デフォルトで設定 def post_mail(subject="題名", from_email="A4sittyo@gmail.com", to_email=["naoki@mail.com"], body="本文"): send_mail(subject, body, from_email, to_email) ...
25.863636
101
0.752197
77
569
5.376623
0.519481
0.065217
0.067633
0.077295
0
0
0
0
0
0
0
0.006135
0.140598
569
21
102
27.095238
0.840491
0.13884
0
0
0
0
0.134298
0
0
0
0
0
0
1
0.2
false
0
0.3
0
0.7
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
af68e340a99686bea5c7fac8eebb634ebfbce94a
657
py
Python
gui/objects/graph/line_plot.py
abraker95/ultimate_osu_analyzer
bea58c997d13c3f461ccbe682f52799f0f88fdea
[ "MIT" ]
23
2019-02-27T06:20:15.000Z
2022-03-31T22:54:11.000Z
gui/objects/graph/line_plot.py
abraker95/ultimate_osu_analyzer
bea58c997d13c3f461ccbe682f52799f0f88fdea
[ "MIT" ]
38
2019-03-03T17:35:39.000Z
2021-08-23T20:43:34.000Z
gui/objects/graph/line_plot.py
abraker95/ultimate_osu_analyzer
bea58c997d13c3f461ccbe682f52799f0f88fdea
[ "MIT" ]
4
2020-03-30T20:43:14.000Z
2022-03-06T19:40:15.000Z
from pyqtgraph.Qt import QtGui, QtCore import pyqtgraph import numpy as np class LinePlot(pyqtgraph.PlotCurveItem): def __init__(self): super().__init__() def update_data(self, data_x, data_y): if type(data_x) == type(None) or type(data_y) == type(None): self.setData(x=[], y=[]...
24.333333
68
0.630137
99
657
3.878788
0.343434
0.117188
0.09375
0.104167
0.192708
0.119792
0.119792
0.119792
0
0
0
0.004082
0.254186
657
27
69
24.333333
0.779592
0.031963
0
0.125
0
0
0
0
0
0
0
0
0
1
0.1875
false
0
0.1875
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
af7521356a79a5c1bee31c5535d67e69471269c6
531
py
Python
widgets/migrations/0003_widgets_widget_type.py
briansok/derpi
0e111a84b17ce8caeb60d2899957a0a24cab47b3
[ "MIT" ]
null
null
null
widgets/migrations/0003_widgets_widget_type.py
briansok/derpi
0e111a84b17ce8caeb60d2899957a0a24cab47b3
[ "MIT" ]
null
null
null
widgets/migrations/0003_widgets_widget_type.py
briansok/derpi
0e111a84b17ce8caeb60d2899957a0a24cab47b3
[ "MIT" ]
1
2019-03-07T04:30:36.000Z
2019-03-07T04:30:36.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-06-12 10:39 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('widgets', '0002_auto_20170612_1201'), ] operations = [ migrations.AddField(...
25.285714
126
0.619586
60
531
5.3
0.783333
0
0
0
0
0
0
0
0
0
0
0.083951
0.237288
531
20
127
26.55
0.701235
0.12806
0
0
1
0
0.156522
0.05
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
af77fe8c502d0a33488b3425f1fba0230262d786
1,072
py
Python
expansions/config/insc.py
croot/blacksmith-2
3bb544139a18184a709ca7668f8e69f3ca361475
[ "Apache-2.0" ]
null
null
null
expansions/config/insc.py
croot/blacksmith-2
3bb544139a18184a709ca7668f8e69f3ca361475
[ "Apache-2.0" ]
null
null
null
expansions/config/insc.py
croot/blacksmith-2
3bb544139a18184a709ca7668f8e69f3ca361475
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 if DefLANG in ("RU", "UA"): AnsBase_temp = tuple([line.decode("utf-8") for line in ( "Изменённые пункты: %s", # 0 "Очевидно параметры неверны.", # 1 "Настройки:\n", # 2 "Конфиг пуст.", # 3 "Вниание! Текущий jid сейчас удаляется, сейчас я зайду с нового.", # 4 "смена jid'а", # 5 "Теперь '...
31.529412
72
0.602612
165
1,072
3.927273
0.684848
0.012346
0.009259
0
0
0
0
0
0
0
0
0.040865
0.223881
1,072
34
73
31.529412
0.733173
0.066231
0
0
0
0
0.701232
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
af814a1fa869942dd97f9544736806c049599941
1,810
py
Python
projects/migrations/0086_auto_20201202_0818.py
SuviVappula/kaavapino
0e3687c94afff10527c9bee9627fc30bd2dfab4f
[ "MIT" ]
3
2019-02-07T14:47:00.000Z
2022-02-15T14:09:38.000Z
projects/migrations/0086_auto_20201202_0818.py
SuviVappula/kaavapino
0e3687c94afff10527c9bee9627fc30bd2dfab4f
[ "MIT" ]
74
2017-12-13T09:18:04.000Z
2022-03-11T23:29:59.000Z
projects/migrations/0086_auto_20201202_0818.py
SuviVappula/kaavapino
0e3687c94afff10527c9bee9627fc30bd2dfab4f
[ "MIT" ]
8
2017-12-13T09:31:20.000Z
2022-02-15T13:10:34.000Z
# Generated by Django 2.2.13 on 2020-12-02 06:18 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('projects', '0085_auto_20201201_1705'), ] operations = [ migrations.CreateModel( name='ProjectP...
40.222222
190
0.633702
155
1,810
7.264516
0.451613
0.068384
0.0373
0.058615
0.156306
0.111901
0.111901
0.111901
0.111901
0.111901
0
0.02439
0.252486
1,810
44
191
41.136364
0.807834
0.025414
0
0.236842
1
0
0.300227
0.15891
0
0
0
0
0
1
0
false
0
0.052632
0
0.131579
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
af879e6f69f0e9817c68bf41b7101a7b9761611c
2,935
py
Python
src/api/models/user.py
ThaDeveloper/grind
fa90b65d12e6d9b3d658b132874801ecda08c57f
[ "MIT" ]
1
2019-11-06T22:26:26.000Z
2019-11-06T22:26:26.000Z
src/api/models/user.py
ThaDeveloper/grind
fa90b65d12e6d9b3d658b132874801ecda08c57f
[ "MIT" ]
5
2021-03-19T02:49:44.000Z
2021-06-10T19:13:00.000Z
src/api/models/user.py
ThaDeveloper/grind
fa90b65d12e6d9b3d658b132874801ecda08c57f
[ "MIT" ]
null
null
null
"""User model module""" import jwt from datetime import datetime, timedelta from django.db import models from django.utils import timezone from django.contrib.auth.models import AbstractBaseUser, PermissionsMixin from django.conf import settings from django.core.validators import RegexValidator from .base_model impor...
29.35
78
0.635775
345
2,935
5.275362
0.388406
0.02967
0.049451
0.065934
0.10989
0.095604
0.042857
0.042857
0
0
0
0.008178
0.250085
2,935
99
79
29.646465
0.818719
0.094719
0
0.088235
0
0
0.078447
0
0
0
0
0
0
1
0.132353
false
0.014706
0.132353
0.044118
0.661765
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
af89871525ce046c30aacd0f640b5f99e4205cd0
2,254
py
Python
deferred/handler.py
potatolondon/djangoappengine-1-4
ae4993597f5afcfa0df42f0fa50913f4c85e2b74
[ "BSD-3-Clause" ]
null
null
null
deferred/handler.py
potatolondon/djangoappengine-1-4
ae4993597f5afcfa0df42f0fa50913f4c85e2b74
[ "BSD-3-Clause" ]
null
null
null
deferred/handler.py
potatolondon/djangoappengine-1-4
ae4993597f5afcfa0df42f0fa50913f4c85e2b74
[ "BSD-3-Clause" ]
null
null
null
# Initialize Django. from djangoappengine import main from django.utils.importlib import import_module from django.conf import settings # Load all models.py to ensure signal handling installation or index # loading of some apps for app in settings.INSTALLED_APPS: try: import_module('%s.models' % (app)) ...
33.641791
111
0.676575
260
2,254
5.703846
0.446154
0.030344
0.040459
0.044504
0.103844
0
0
0
0
0
0
0.004728
0.249335
2,254
66
112
34.151515
0.871749
0.122449
0
0.045455
0
0
0.134957
0.039066
0
0
0
0
0
0
null
null
0.022727
0.227273
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
af8eb22a7a8fbb0ab152b78c299a3fc57959c738
163
py
Python
79.py
tarunbodapati/sum.c
c343d6ac530b7f433093138ac52474df4c9c4441
[ "MIT" ]
null
null
null
79.py
tarunbodapati/sum.c
c343d6ac530b7f433093138ac52474df4c9c4441
[ "MIT" ]
null
null
null
79.py
tarunbodapati/sum.c
c343d6ac530b7f433093138ac52474df4c9c4441
[ "MIT" ]
null
null
null
x,y=map(int,input().split(" ")) count=0 for i in range(0,1000): if(x*y==i*i): count+=1 if(count==1): print("yes") else: print("no")
14.818182
31
0.484663
29
163
2.724138
0.655172
0.050633
0
0
0
0
0
0
0
0
0
0.067227
0.269939
163
10
32
16.3
0.596639
0
0
0
0
0
0.03681
0
0
0
0
0
0
1
0
false
0
0
0
0
0.222222
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
af92ace02dba087d489cb1e5f3f4aa495505fa6e
654
py
Python
examples/basic_elasticache_password_protected.py
rtkefreure/redis-py-cluster
f0627c91ce23e8784dbc996078428c9bdbacb20b
[ "MIT" ]
1,075
2015-01-01T17:46:25.000Z
2022-03-31T17:55:18.000Z
examples/basic_elasticache_password_protected.py
rtkefreure/redis-py-cluster
f0627c91ce23e8784dbc996078428c9bdbacb20b
[ "MIT" ]
397
2015-01-04T08:39:03.000Z
2022-03-22T01:59:18.000Z
examples/basic_elasticache_password_protected.py
rtkefreure/redis-py-cluster
f0627c91ce23e8784dbc996078428c9bdbacb20b
[ "MIT" ]
373
2015-01-13T08:44:40.000Z
2022-03-29T02:18:20.000Z
from rediscluster import RedisCluster rc = RedisCluster( host='clustercfg.cfg-endpoint-name.aq25ta.euw1.cache.amazonaws.com', port=6379, password='password_is_protected', skip_full_coverage_check=True, # Bypass Redis CONFIG call to elasticache decode_responses=True, # decode_responses mu...
40.875
148
0.704893
86
654
5.255814
0.744186
0.066372
0.084071
0
0
0
0
0
0
0
0
0.015009
0.185015
654
15
149
43.6
0.833021
0.412844
0
0
0
0
0.238095
0.214286
0
0
0
0
0
1
0
false
0.083333
0.083333
0
0.083333
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
afaa3f5a9633f887b543c143ac5957ba0b5db6a8
145
py
Python
pythontraining/unittesting.py
srikanteswartalluri/pyutils
bf8d56ac9e9b0786861c08ef32eae49b021f20a3
[ "0BSD" ]
null
null
null
pythontraining/unittesting.py
srikanteswartalluri/pyutils
bf8d56ac9e9b0786861c08ef32eae49b021f20a3
[ "0BSD" ]
null
null
null
pythontraining/unittesting.py
srikanteswartalluri/pyutils
bf8d56ac9e9b0786861c08ef32eae49b021f20a3
[ "0BSD" ]
null
null
null
__author__ = 'talluri' def sum(*args): if len(args) == 0: return None s = 0 for arg in args: s += arg return s
13.181818
22
0.496552
21
145
3.238095
0.666667
0
0
0
0
0
0
0
0
0
0
0.022727
0.393103
145
10
23
14.5
0.75
0
0
0
0
0
0.048951
0
0
0
0
0
0
1
0.125
false
0
0
0
0.375
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
afb90e0689a3fd6f900cf89c2141c1e4deace929
365
py
Python
blog/models.py
adityabisoi/personal-portfolio
34e9f9dc1b78b12bf27f934ae71efa0058450c0d
[ "MIT" ]
1
2020-02-19T09:45:28.000Z
2020-02-19T09:45:28.000Z
blog/models.py
adityabisoi/personal-portfolio
34e9f9dc1b78b12bf27f934ae71efa0058450c0d
[ "MIT" ]
6
2021-03-19T04:39:19.000Z
2022-02-10T13:52:14.000Z
blog/models.py
adityabisoi/personal-portfolio
34e9f9dc1b78b12bf27f934ae71efa0058450c0d
[ "MIT" ]
null
null
null
from django.db import models class Blog(models.Model): title = models.CharField(max_length=15) date = models.DateField(auto_now_add=True) body = models.TextField() image = models.ImageField(upload_to='images/') #To return title to admin page def __str__(self): return self.title de...
26.071429
50
0.679452
50
365
4.8
0.68
0.083333
0.116667
0
0
0
0
0
0
0
0
0.017422
0.213699
365
14
51
26.071429
0.818815
0.079452
0
0
0
0
0.020833
0
0
0
0
0
0
1
0.2
false
0
0.1
0.2
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
afc811788a0b3ab1c60a2765e44c7a8fefe57ab0
2,010
py
Python
Chest X-Ray Analysis/model.py
HarshShah03325/Emotion_Recognition
d1760bbdedc55014896f0e1c7db47ee5e5a19dae
[ "MIT" ]
20
2021-11-08T05:43:31.000Z
2021-11-09T15:39:03.000Z
Chest X-Ray Analysis/model.py
HarshShah03325/Emotion_Recognition
d1760bbdedc55014896f0e1c7db47ee5e5a19dae
[ "MIT" ]
null
null
null
Chest X-Ray Analysis/model.py
HarshShah03325/Emotion_Recognition
d1760bbdedc55014896f0e1c7db47ee5e5a19dae
[ "MIT" ]
1
2021-10-31T02:53:05.000Z
2021-10-31T02:53:05.000Z
from tensorflow.keras.applications.densenet import DenseNet121 from tensorflow.keras.layers import Dense, GlobalAveragePooling2D from tensorflow.keras.models import Model from keras import backend as K from settings import Settings import numpy as np from helper import get_train_labels, compute_class_freqs from tensorf...
30
201
0.698507
260
2,010
5.234615
0.415385
0.044085
0.041881
0.044085
0.066128
0.051433
0.051433
0
0
0
0
0.011307
0.20796
2,010
66
202
30.454545
0.843593
0.218408
0
0.066667
0
0
0.031459
0.014056
0
0
0
0
0
1
0.133333
false
0
0.266667
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
afd436ddbf34c2bee6a32af594d6e66622817288
8,626
py
Python
qurkexp/join/cron.py
marcua/qurk_experiments
453c207ff50e730aefb6e1118e0f93e33babdb0b
[ "BSD-3-Clause" ]
1
2015-09-30T00:09:06.000Z
2015-09-30T00:09:06.000Z
qurkexp/join/cron.py
marcua/qurk_experiments
453c207ff50e730aefb6e1118e0f93e33babdb0b
[ "BSD-3-Clause" ]
null
null
null
qurkexp/join/cron.py
marcua/qurk_experiments
453c207ff50e730aefb6e1118e0f93e33babdb0b
[ "BSD-3-Clause" ]
null
null
null
import sys,os,base64,time,traceback from datetime import datetime ROOT = os.path.abspath('%s/../..' % os.path.abspath(os.path.dirname(__file__))) sys.path.append(ROOT) os.environ['DJANGO_SETTINGS_MODULE'] = 'qurkexp.settings' SLEEP_TIME = 10 if __name__ == '__main__': from django.conf import settings from qur...
40.308411
131
0.504405
1,020
8,626
4.098039
0.177451
0.009091
0.007177
0.033014
0.588756
0.525598
0.455981
0.42201
0.357177
0.336603
0
0.037419
0.392766
8,626
213
132
40.497653
0.760596
0.148736
0
0.494048
0
0
0.079951
0.008747
0
0
0
0
0
0
null
null
0
0.029762
null
null
0.065476
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
bb5e3228f03e7078fb5aaf1eab536edafbe9b383
1,639
py
Python
gotools_rename.py
liuhewei/gotools-sublime
2c44f84024f9fd27ca5c347cab080b80397a32c2
[ "MIT" ]
60
2016-04-06T15:28:11.000Z
2021-01-26T13:08:19.000Z
gotools_rename.py
liuhewei/gotools-sublime
2c44f84024f9fd27ca5c347cab080b80397a32c2
[ "MIT" ]
19
2016-04-07T02:28:22.000Z
2019-05-16T14:32:14.000Z
gotools_rename.py
liuhewei/gotools-sublime
2c44f84024f9fd27ca5c347cab080b80397a32c2
[ "MIT" ]
18
2016-04-19T18:23:49.000Z
2021-08-31T14:32:03.000Z
import sublime import sublime_plugin import os from .gotools_util import Buffers from .gotools_util import GoBuffers from .gotools_util import Logger from .gotools_util import ToolRunner class GotoolsRenameCommand(sublime_plugin.TextCommand): def is_enabled(self): return GoBuffers.is_go_source(self.view) def...
38.116279
95
0.698597
228
1,639
4.868421
0.464912
0.064865
0.054054
0.075676
0
0
0
0
0
0
0
0.004357
0.159854
1,639
42
96
39.02381
0.801743
0.123856
0
0
0
0
0.166899
0.014665
0
0
0
0.02381
0
1
0.090909
false
0
0.212121
0.030303
0.393939
0.030303
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
bb601bdac4b627b652ca2cc549c648ed9d7b4ddf
1,286
py
Python
{{cookiecutter.project_slug}}/setup.py
mathemaphysics/cookiecutter-cpp-devcontainer
d9a8e23e165e3698b4a1cb4516a397450355466a
[ "MIT" ]
null
null
null
{{cookiecutter.project_slug}}/setup.py
mathemaphysics/cookiecutter-cpp-devcontainer
d9a8e23e165e3698b4a1cb4516a397450355466a
[ "MIT" ]
null
null
null
{{cookiecutter.project_slug}}/setup.py
mathemaphysics/cookiecutter-cpp-devcontainer
d9a8e23e165e3698b4a1cb4516a397450355466a
[ "MIT" ]
null
null
null
{%- set modname = cookiecutter.project_slug.replace('-', '') -%} from skbuild import setup {%- if cookiecutter.use_submodules == "No" %} import os import pybind11 {%- endif %} setup( name='{{ modname }}', version='0.0.1', author='{{ cookiecutter.full_name }}', author_email='your@email.com', descri...
31.365854
83
0.604977
138
1,286
5.5
0.528986
0.100132
0.094862
0.071146
0.137022
0.060606
0
0
0
0
0
0.016699
0.208398
1,286
40
84
32.15
0.72888
0
0
0.184211
0
0
0.403577
0.060653
0
0
0
0
0
0
null
null
0
0.078947
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
bb612a43c5e00fdec79d5ed2d464c2583287acfd
603
py
Python
lang/modules/os.py
pranavbaburaj/sh
dc0da9e10e7935310ae40d350c1897fcd65bce8f
[ "MIT" ]
4
2021-01-30T12:25:21.000Z
2022-03-13T07:23:19.000Z
lang/modules/os.py
pranavbaburaj/sh
dc0da9e10e7935310ae40d350c1897fcd65bce8f
[ "MIT" ]
3
2021-02-26T13:11:17.000Z
2021-06-04T17:26:05.000Z
lang/modules/os.py
pranavbaburaj/sh
dc0da9e10e7935310ae40d350c1897fcd65bce8f
[ "MIT" ]
1
2021-02-08T10:18:29.000Z
2021-02-08T10:18:29.000Z
import os, platform from clint.textui import colored as color class OperatingSystem(): @staticmethod def os_name(): return platform.system() @staticmethod def user_name(): return platform.uname().node @staticmethod def path(): return os.getcwd() de...
22.333333
42
0.593698
71
603
4.971831
0.549296
0.127479
0.101983
0
0
0
0
0
0
0
0
0
0.300166
603
26
43
23.192308
0.836493
0
0
0.15
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.1
0.15
0.5
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
bb67b96194c55ddd1e174b93f999f14cfde628ec
803
py
Python
backend/src/api/routes.py
gideonmandu/image-difference
50007e5a899f5f10f519ac76312cd60f76c2ddd2
[ "MIT" ]
null
null
null
backend/src/api/routes.py
gideonmandu/image-difference
50007e5a899f5f10f519ac76312cd60f76c2ddd2
[ "MIT" ]
null
null
null
backend/src/api/routes.py
gideonmandu/image-difference
50007e5a899f5f10f519ac76312cd60f76c2ddd2
[ "MIT" ]
null
null
null
import uuid from typing import Optional from fastapi import UploadFile, APIRouter from src.services.image_processing import ImageProcessor router = APIRouter(prefix="/file", tags=["passport & ID upload"]) # @router.get("",) # async def index(): # return {"test": "hello world"} @router.post("/upload/") async de...
28.678571
78
0.671233
100
803
5.31
0.52
0.135593
0.07533
0
0
0
0
0
0
0
0
0.001513
0.176837
803
27
79
29.740741
0.801815
0.087173
0
0
0
0
0.223594
0.075446
0
0
0
0
0
1
0
false
0.055556
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
0
1
0
0
0
0
0
1
bb69473a0d64dae39589b39408b2ff33e2930247
1,486
py
Python
data_loading.py
dahouda2pro/deep-learned-embedding
a4428cf99eae86691286ec18a0656e632fbc4600
[ "CC0-1.0" ]
null
null
null
data_loading.py
dahouda2pro/deep-learned-embedding
a4428cf99eae86691286ec18a0656e632fbc4600
[ "CC0-1.0" ]
null
null
null
data_loading.py
dahouda2pro/deep-learned-embedding
a4428cf99eae86691286ec18a0656e632fbc4600
[ "CC0-1.0" ]
1
2021-12-21T05:27:19.000Z
2021-12-21T05:27:19.000Z
import pandas as pd import numpy as np print("Data Loading....") #data = pd.read_csv("adult.csv") data = pd.read_csv("adult_2.csv") # print(data) # print(data.columns) # print(data.shape) # print(data.info()) # print(data.nunique()) data.describe() data.isin(['?']).sum() data = data.replace('?', np.Na...
29.72
94
0.669583
189
1,486
5.169312
0.380952
0.073695
0.053224
0.058342
0.197544
0.137155
0.137155
0.137155
0.137155
0.137155
0
0.006314
0.147376
1,486
49
95
30.326531
0.764799
0.170256
0
0.137931
0
0
0.266383
0
0
0
0
0
0
1
0
false
0
0.068966
0
0.068966
0.482759
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
bb6a551fb3c28dd9d932bdf287bf2fe78a03a168
1,313
py
Python
FilterPackets.py
aj351/peershark
80e06319f61381fe163383e5984d70a5f23760b4
[ "MIT" ]
31
2015-02-11T14:32:24.000Z
2022-02-10T11:08:23.000Z
FilterPackets.py
aj351/peershark
80e06319f61381fe163383e5984d70a5f23760b4
[ "MIT" ]
1
2015-12-29T11:17:45.000Z
2017-10-11T08:48:49.000Z
FilterPackets.py
aj351/peershark
80e06319f61381fe163383e5984d70a5f23760b4
[ "MIT" ]
26
2015-06-05T04:51:46.000Z
2022-03-22T20:28:52.000Z
## Module to obtain packet data from a pcap/dump file ## and save it in csv format using tshark. ## Filenames of input pcap files are taken from InputFiles.txt ## Tshark options are present in TsharkOptions.txt ## TsharkOptions.txt should not contain the -r option. ## usage: python FilterPackets.py #import global con...
27.93617
75
0.770754
166
1,313
6.090361
0.566265
0.053412
0
0
0
0
0
0
0
0
0
0.000891
0.145468
1,313
47
76
27.93617
0.900178
0.35872
0
0
0
0
0.024242
0
0
0
0
0
0
0
null
null
0
0.16
null
null
0.08
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
bb723206badf8174dc3f8ba35066d0a2d790ceab
2,110
py
Python
server/grading/models.py
jauhararifin/ugrade
c5bc0ce3920534cf289c739ffe8b83ceed9f52e8
[ "MIT" ]
15
2019-02-27T19:28:23.000Z
2019-07-20T17:54:46.000Z
server/grading/models.py
jauhararifin/ugrade
c5bc0ce3920534cf289c739ffe8b83ceed9f52e8
[ "MIT" ]
9
2020-09-04T18:30:56.000Z
2022-03-25T18:41:11.000Z
server/grading/models.py
jauhararifin/ugrade
c5bc0ce3920534cf289c739ffe8b83ceed9f52e8
[ "MIT" ]
2
2019-03-29T14:15:47.000Z
2019-04-12T06:08:11.000Z
import os import random from django.db import models from contests.models import Submission, User, Contest VERDICT = ( ('RTE', 'Run Time Error'), ('MLE', 'Memory Limit Exceeded'), ('TLE', 'Time Limit Exceeded'), ('WA', 'Wrong Answer'), ('CE', 'Compilation Error'), ('IE', 'Internal Error'), ...
32.96875
92
0.694313
241
2,110
5.921162
0.406639
0.031535
0.039243
0.044149
0.274702
0.242467
0.194814
0.085494
0.085494
0.085494
0
0.009217
0.177251
2,110
63
93
33.492063
0.812788
0.056872
0
0.136364
0
0
0.150706
0.03125
0
0
0
0
0
1
0.068182
false
0
0.090909
0.045455
0.590909
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
bb77128dc910f27388f4e518fef5f850a41210e0
357
py
Python
web/impact/impact/graphql/types/location_type.py
masschallenge/impact-api
81075ced8fcc95de9390dd83c15e523e67fc48c0
[ "MIT" ]
5
2017-10-19T15:11:52.000Z
2020-03-08T07:16:21.000Z
web/impact/impact/graphql/types/location_type.py
masschallenge/impact-api
81075ced8fcc95de9390dd83c15e523e67fc48c0
[ "MIT" ]
182
2017-06-21T19:32:13.000Z
2021-03-22T13:38:16.000Z
web/impact/impact/graphql/types/location_type.py
masschallenge/impact-api
81075ced8fcc95de9390dd83c15e523e67fc48c0
[ "MIT" ]
1
2018-06-23T11:53:18.000Z
2018-06-23T11:53:18.000Z
from graphene_django import DjangoObjectType from accelerator.models import Location class LocationType(DjangoObjectType): class Meta: model = Location only_fields = ( 'street_address', 'timezone', 'country', 'state', 'name', ...
18.789474
44
0.521008
27
357
6.777778
0.814815
0
0
0
0
0
0
0
0
0
0
0
0.397759
357
18
45
19.833333
0.851163
0
0
0
0
0
0.123249
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.285714
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
bb86c442b96d2055b1909d4bb39b8d492cac5efe
1,131
py
Python
plotdotroot/plotdot/svgDraw/transform.py
hodeld/axidraw
b5009779d01f209b7fe712a92aa9c117ce32f70a
[ "MIT" ]
1
2020-07-28T15:09:57.000Z
2020-07-28T15:09:57.000Z
plotdotroot/plotdot/svgDraw/transform.py
hodeld/axidraw
b5009779d01f209b7fe712a92aa9c117ce32f70a
[ "MIT" ]
4
2021-04-08T21:33:10.000Z
2021-09-22T19:29:10.000Z
plotdotroot/plotdot/svgDraw/transform.py
hodeld/axidraw
b5009779d01f209b7fe712a92aa9c117ce32f70a
[ "MIT" ]
1
2022-03-18T18:07:27.000Z
2022-03-18T18:07:27.000Z
import random def scale(ele, sx, sy=None): if sy is None: sy = sx ele.scale(sx, sy) def translate(ele, sx, sy=0): ele.translate(sx, sy) def skew_x(ele, angle, sy=None): ele.skewX(angle) def skew_y(ele, angle, sy=None): ele.skewX(angle) def rotate(ele, angle, sy=None): ele.skewX(...
17.952381
57
0.568523
184
1,131
3.288043
0.25
0.052893
0.034711
0.069421
0.249587
0.249587
0.143802
0.099174
0
0
0
0.027743
0.298851
1,131
62
58
18.241935
0.735183
0.011494
0
0.131579
0
0
0
0
0
0
0
0
0
1
0.210526
false
0
0.026316
0.026316
0.263158
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
bb8dd51539cdab9536825a57382500f121007993
524
py
Python
api/applications/migrations/0046_partyonapplication_flags.py
uktrade/lite-ap
4e1a57956bd921992b4a6e2b8fbacbba5720960d
[ "MIT" ]
3
2019-05-15T09:30:39.000Z
2020-04-22T16:14:23.000Z
api/applications/migrations/0046_partyonapplication_flags.py
uktrade/lite-ap
4e1a57956bd921992b4a6e2b8fbacbba5720960d
[ "MIT" ]
85
2019-04-24T10:39:35.000Z
2022-03-21T14:52:12.000Z
api/applications/migrations/0046_partyonapplication_flags.py
uktrade/lite-ap
4e1a57956bd921992b4a6e2b8fbacbba5720960d
[ "MIT" ]
1
2021-01-17T11:12:19.000Z
2021-01-17T11:12:19.000Z
# Generated by Django 2.2.17 on 2021-01-27 14:27 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("flags", "0010_flaggingrule_excluded_values"), ("applications", "0045_remove_denialmatchonapplication_denial"), ] operations = [ mig...
26.2
97
0.65458
52
524
6.403846
0.769231
0
0
0
0
0
0
0
0
0
0
0.059701
0.232824
524
19
98
27.578947
0.768657
0.087786
0
0
1
0
0.310924
0.205882
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
bb929e575f401e612607d5e41db450d40dd8a099
2,430
py
Python
django-ingredient-field/dj_ingredient_field/widgets.py
makspll/django-ingredient-field
8f2067d1546a45d0c8b9c5dc551571b1f5ccf7b2
[ "MIT" ]
null
null
null
django-ingredient-field/dj_ingredient_field/widgets.py
makspll/django-ingredient-field
8f2067d1546a45d0c8b9c5dc551571b1f5ccf7b2
[ "MIT" ]
10
2021-08-29T11:21:29.000Z
2021-09-14T17:09:45.000Z
django-ingredient-field/dj_ingredient_field/widgets.py
makspll/django-ingredient-field
8f2067d1546a45d0c8b9c5dc551571b1f5ccf7b2
[ "MIT" ]
null
null
null
""" The list of ingredient choices is quite large, so this module provides lazy loaded widgets which help reducing loading times. """ from django import forms class LazyWidget(): """ Base class for lazy loaded, choice based widgets. offloads option generation to the client, relies on correct endpoint ...
33.287671
216
0.635802
264
2,430
5.69697
0.469697
0.047872
0.056516
0.027926
0
0
0
0
0
0
0
0.001142
0.279424
2,430
73
217
33.287671
0.857796
0.514815
0
0.086957
0
0
0.14959
0.10041
0
0
0
0
0
1
0.086957
false
0.086957
0.043478
0
0.391304
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
bb9bcfeb2dd370b17ad9dca9fef16bbcfa8e0721
583
py
Python
2020/08-1.py
matteodelabre/advent-of-code
a6f51222b52f948cec6aa94cb7c50bcfd4f53dc1
[ "CC0-1.0" ]
1
2021-12-02T05:16:11.000Z
2021-12-02T05:16:11.000Z
2020/08-1.py
matteodelabre/advent-of-code
a6f51222b52f948cec6aa94cb7c50bcfd4f53dc1
[ "CC0-1.0" ]
null
null
null
2020/08-1.py
matteodelabre/advent-of-code
a6f51222b52f948cec6aa94cb7c50bcfd4f53dc1
[ "CC0-1.0" ]
null
null
null
import re instruction_regex = re.compile(r'(nop|acc|jmp) ([+-][0-9]+)') program = [] try: while True: name, arg = instruction_regex.match(input()).groups() program.append([name, arg, 0]) except EOFError: pass pc = 0 accu = 0 while program[pc][2] == 0: program[pc][2] = 1 if program[p...
19.433333
61
0.535163
82
583
3.780488
0.414634
0.232258
0.129032
0.090323
0.109677
0.109677
0
0
0
0
0
0.039627
0.264151
583
29
62
20.103448
0.682984
0
0
0.086957
0
0
0.09434
0
0
0
0
0
0
1
0
false
0.043478
0.043478
0
0.043478
0.086957
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
bb9be141e5411cc766db75440f10f9dcc54c52eb
736
py
Python
Apps/aulas/migrations/0017_alter_planejamento_data_envio_alter_resposta_data.py
arthur-asilva/rc_plataforma
7e6f7eb7f9a3b9089c02db98518b60d8e481ce4c
[ "BSD-2-Clause" ]
null
null
null
Apps/aulas/migrations/0017_alter_planejamento_data_envio_alter_resposta_data.py
arthur-asilva/rc_plataforma
7e6f7eb7f9a3b9089c02db98518b60d8e481ce4c
[ "BSD-2-Clause" ]
null
null
null
Apps/aulas/migrations/0017_alter_planejamento_data_envio_alter_resposta_data.py
arthur-asilva/rc_plataforma
7e6f7eb7f9a3b9089c02db98518b60d8e481ce4c
[ "BSD-2-Clause" ]
null
null
null
# Generated by Django 4.0 on 2022-01-14 13:45 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('aulas', '0016_alter_planejamento_data_envio_alter_resposta_data'), ] operations = [ migrations.AlterField( model_n...
29.44
122
0.629076
83
736
5.457831
0.506024
0.039735
0.110375
0.128035
0.304636
0.304636
0.304636
0.304636
0.304636
0.304636
0
0.101818
0.252717
736
24
123
30.666667
0.721818
0.058424
0
0.222222
1
0
0.134588
0.078148
0
0
0
0
0
1
0
false
0
0.111111
0
0.277778
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
bba2237b5b7c85261e503e0da56569ea8a05972a
5,018
py
Python
models/lenet.py
calinbiberea/imperial-individual-project
86f224f183b8348d21b4c7a4aed408cd1ca41df1
[ "MIT" ]
null
null
null
models/lenet.py
calinbiberea/imperial-individual-project
86f224f183b8348d21b4c7a4aed408cd1ca41df1
[ "MIT" ]
null
null
null
models/lenet.py
calinbiberea/imperial-individual-project
86f224f183b8348d21b4c7a4aed408cd1ca41df1
[ "MIT" ]
null
null
null
''' A LeNet-5 in PyTorch. Reference: Yann LeCun et al, 1998. Gradient-Based Learning Applied to Document Recognition. [Paper] Available at: <http://yann.lecun.com/exdb/publis/pdf/lecun-01a.pdf> [Accessed 26 December 2021]. ''' import torch.nn as nn import torch.nn.functional as F # Defining the Network (LeNet-5) c...
28.191011
86
0.559785
621
5,018
4.436393
0.21256
0.101633
0.059891
0.092559
0.688203
0.658076
0.639201
0.639201
0.610163
0.610163
0
0.06102
0.343563
5,018
177
87
28.350282
0.775349
0.285971
0
0.683673
0
0
0.005364
0
0
0
0
0
0
1
0.05102
false
0
0.020408
0
0.142857
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
bbadddc2fe8f7e7eaa30c11c13f2a1d11f2721db
1,757
py
Python
scripts/latency/filebench.py
huangvincent170/cyclone
737af617ab1472dfb16e6c20a079e88dccf85850
[ "Apache-2.0" ]
2
2019-04-16T01:33:36.000Z
2021-02-23T08:34:38.000Z
scripts/latency/filebench.py
huangvincent170/cyclone
737af617ab1472dfb16e6c20a079e88dccf85850
[ "Apache-2.0" ]
null
null
null
scripts/latency/filebench.py
huangvincent170/cyclone
737af617ab1472dfb16e6c20a079e88dccf85850
[ "Apache-2.0" ]
4
2020-03-27T18:06:33.000Z
2021-03-24T09:56:17.000Z
#!/usr/bin/env python import argparse import sys import os import shutil DBG = 1 __home = os.getcwd() __fbench_home = '/home/pfernando/filebench' #binary __empty = '' __micro_rread = 'micro_rread' __workload_l = [] __workload_l.append(__micro_rread) parser = argparse.ArgumentParser(prog="runscript", description="...
17.928571
90
0.575413
222
1,757
4.234234
0.396396
0.053191
0.034043
0.035106
0
0
0
0
0
0
0
0.004739
0.279454
1,757
97
91
18.113402
0.737757
0.050655
0
0.242424
0
0
0.118389
0.015024
0.015152
0
0
0
0
0
null
null
0
0.060606
null
null
0.060606
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
bbb5023852d401d52fa04fa5275d3dce5dbc5d18
3,790
py
Python
Cartwheel/lib/Python26/Lib/site-packages/OpenGL/raw/GL/NV/geometry_program4.py
MontyThibault/centre-of-mass-awareness
58778f148e65749e1dfc443043e9fc054ca3ff4d
[ "MIT" ]
null
null
null
Cartwheel/lib/Python26/Lib/site-packages/OpenGL/raw/GL/NV/geometry_program4.py
MontyThibault/centre-of-mass-awareness
58778f148e65749e1dfc443043e9fc054ca3ff4d
[ "MIT" ]
null
null
null
Cartwheel/lib/Python26/Lib/site-packages/OpenGL/raw/GL/NV/geometry_program4.py
MontyThibault/centre-of-mass-awareness
58778f148e65749e1dfc443043e9fc054ca3ff4d
[ "MIT" ]
null
null
null
'''OpenGL extension NV.geometry_program4 The official definition of this extension is available here: http://oss.sgi.com/projects/ogl-sample/registry/NV/geometry_program4.txt Automatically generated by the get_gl_extensions script, do not edit! ''' from OpenGL import platform, constants, constant, arrays from OpenGL...
54.927536
129
0.814248
442
3,790
6.640271
0.248869
0.087223
0.098126
0.093015
0.585349
0.474957
0.282794
0.204429
0.1523
0.1523
0
0.013494
0.081003
3,790
68
130
55.735294
0.82917
0.082586
0
0.145455
1
0.054545
0.327477
0.212558
0
0
0.024194
0
0
1
0.018182
false
0
0.072727
0
0.109091
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
bbc4c27f8757a25bed0fa10e2091d91ec6470472
1,090
py
Python
investment_report/urls.py
uktrade/pir-api
79747ceab042c42c287e2b7471f6dade70f68693
[ "MIT" ]
1
2021-02-02T19:08:55.000Z
2021-02-02T19:08:55.000Z
investment_report/urls.py
uktrade/invest-pir-api
be56efddf9dfdf81c8557441a9a54d9a4dd4bab1
[ "MIT" ]
21
2018-07-10T10:20:47.000Z
2022-03-24T09:36:29.000Z
investment_report/urls.py
uktrade/pir-api
79747ceab042c42c287e2b7471f6dade70f68693
[ "MIT" ]
1
2021-02-04T11:28:37.000Z
2021-02-04T11:28:37.000Z
from django.conf.urls import url from investment_report.views import utils urlpatterns = [ url('preview/(?P<lang>[\w-]+)/(?P<market>[\w-]+)/(?P<sector>[\w-]+)/pdf', utils.investment_report_pdf, {'moderated': False}, name='preview_investment_report_pdf'), url('current/(?P<lang>[\w-]+)/...
32.058824
78
0.589908
140
1,090
4.371429
0.235714
0.235294
0.039216
0.045752
0.504902
0.421569
0.421569
0.421569
0.421569
0.421569
0
0
0.179817
1,090
33
79
33.030303
0.684564
0
0
0.423077
0
0.153846
0.433028
0.330275
0
0
0
0
0
1
0
false
0
0.076923
0
0.076923
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bbc5bdb8d114fadf0d6064c5f98954f19d27c09e
2,823
py
Python
docc/image.py
pirate42/docc
de8e27ce5ec2e1288bff8c17a1566bbc7a26ade1
[ "MIT" ]
1
2017-08-18T08:03:55.000Z
2017-08-18T08:03:55.000Z
docc/image.py
pirate42/docc
de8e27ce5ec2e1288bff8c17a1566bbc7a26ade1
[ "MIT" ]
null
null
null
docc/image.py
pirate42/docc
de8e27ce5ec2e1288bff8c17a1566bbc7a26ade1
[ "MIT" ]
null
null
null
# coding=utf-8 from docc.exceptions import APIError class Image(object): """Represent an Image object (name and distribution information)""" def __init__(self, identifier, name, distribution): self.id = identifier self.name = name self.distribution = distribution def __repr__(se...
29.715789
77
0.597237
318
2,823
5.103774
0.27673
0.05915
0.044362
0.05915
0.248922
0.181146
0.161429
0.161429
0.161429
0.161429
0
0.000507
0.301098
2,823
95
78
29.715789
0.822098
0.252922
0
0.090909
0
0
0.066532
0
0
0
0
0.010526
0
1
0.2
false
0
0.018182
0.072727
0.436364
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
bbc710f8e283a69d3d2753dd21f132cb54a0681b
1,607
py
Python
ml_app_profile_analysis/ml_usage_analysis/fw_purpose_stat.py
RiS3-Lab/ModelXRay
60a98718eaa91eeb15d0737a9728cee4d714edd2
[ "Apache-2.0" ]
13
2021-04-05T08:37:37.000Z
2021-12-27T13:14:02.000Z
ml_app_profile_analysis/ml_usage_analysis/fw_purpose_stat.py
RiS3-Lab/ModelXRay
60a98718eaa91eeb15d0737a9728cee4d714edd2
[ "Apache-2.0" ]
1
2021-05-21T01:54:51.000Z
2021-11-19T07:36:47.000Z
ml_app_profile_analysis/ml_usage_analysis/fw_purpose_stat.py
RiS3-Lab/ModelXRay
60a98718eaa91eeb15d0737a9728cee4d714edd2
[ "Apache-2.0" ]
2
2022-01-18T07:37:31.000Z
2022-03-10T19:42:35.000Z
#!/usr/bin/env python import argparse fwmap = {'tensorflow':1,'caffe':2,'sensetime':3,'ncnn':4,'other':5,'mxnet':6,'uls':7,'mace':8,'tflite':9} def printres(th, res): th.append('sum') print "%15s"%(" "), for i in th: print i, print "" for use in res: print "%15s"%(use), fwre...
29.218182
141
0.514001
208
1,607
3.913462
0.495192
0.018428
0.025799
0.031941
0.034398
0
0
0
0
0
0
0.035874
0.306161
1,607
54
142
29.759259
0.69417
0.068451
0
0.090909
0
0
0.13807
0
0
0
0
0
0
0
null
null
0
0.022727
null
null
0.204545
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
bbcbf2b2a1cb0a8d47a18b0768f2227527626ab0
7,784
py
Python
services/temperature_bands/temperature_bands_pb2.py
phgupta/XBOS
acc59f33600943569d62c145dae11a1775296b44
[ "BSD-2-Clause" ]
27
2016-04-26T17:26:56.000Z
2021-08-22T15:11:55.000Z
services/temperature_bands/temperature_bands_pb2.py
phgupta/XBOS
acc59f33600943569d62c145dae11a1775296b44
[ "BSD-2-Clause" ]
75
2017-02-17T18:00:37.000Z
2019-06-20T04:12:08.000Z
services/temperature_bands/temperature_bands_pb2.py
vishalbelsare/XBOS
1fea0b024d97ae142d97b3a94510403928ed44b7
[ "BSD-2-Clause" ]
20
2017-07-28T14:50:04.000Z
2020-01-16T05:04:54.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temperature_bands.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.pr...
38.92
784
0.751413
965
7,784
5.78342
0.173057
0.04587
0.057337
0.064505
0.650421
0.53503
0.517828
0.517828
0.517828
0.517828
0
0.038642
0.125642
7,784
199
785
39.115578
0.781369
0.041752
0
0.598837
1
0.005814
0.224534
0.186686
0
0
0
0
0
1
0
false
0
0.02907
0
0.02907
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
bbd06fd058120fffbc5ec8c48b2f8310d80c11b4
2,265
py
Python
test_proj/tests/test_runner.py
andrewbird2/django-data-validation
8c3a8e14440f0299a5f4b188dfaa7864b53b5123
[ "MIT" ]
1
2020-08-05T16:42:48.000Z
2020-08-05T16:42:48.000Z
test_proj/tests/test_runner.py
andrewbird2/django-data-validation
8c3a8e14440f0299a5f4b188dfaa7864b53b5123
[ "MIT" ]
1
2020-11-04T07:06:37.000Z
2020-11-04T07:06:37.000Z
test_proj/tests/test_runner.py
andrewbird2/django-data-validation
8c3a8e14440f0299a5f4b188dfaa7864b53b5123
[ "MIT" ]
1
2020-11-04T02:16:05.000Z
2020-11-04T02:16:05.000Z
from unittest import mock from django.core.management import call_command import pytest from app1.models import TestModel from datavalidation.models import Validator from datavalidation.results import Status from datavalidation.runners import ModelValidationRunner, ObjectValidationRunner def test_model_runner_with_...
31.458333
80
0.72362
280
2,265
5.625
0.335714
0.022222
0.030476
0.045714
0.395556
0.36254
0.314921
0.314921
0.177778
0.064762
0
0.007008
0.181015
2,265
71
81
31.901408
0.842049
0.124062
0
0.234043
0
0
0.099897
0
0
0
0
0
0.234043
1
0.106383
false
0.06383
0.148936
0
0.255319
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
bbd2f4baf55ab29dd9d52744e70bd79da375026a
2,361
py
Python
db_cloudant2.py
trishasarkar/IBM-PLS-deployed
959fef4c43a6a33bcb6e96b14046dcbd220e0b2a
[ "MIT" ]
null
null
null
db_cloudant2.py
trishasarkar/IBM-PLS-deployed
959fef4c43a6a33bcb6e96b14046dcbd220e0b2a
[ "MIT" ]
null
null
null
db_cloudant2.py
trishasarkar/IBM-PLS-deployed
959fef4c43a6a33bcb6e96b14046dcbd220e0b2a
[ "MIT" ]
null
null
null
from ibmcloudant.cloudant_v1 import CloudantV1, Document from ibm_cloud_sdk_core.authenticators import IAMAuthenticator CLOUDANT_URL="https://apikey-v2-1mfs4kqo2nmnc2sdtgp9ji8myznbgm6mivk0o93pfopt:f70c9a73c52d287d3271ddc3dba6a30a@dc1a5ff5-996b-475c-8b7e-da87f4bf33a3-bluemix.cloudantnosqldb.appdomain.cloud" CLOUDANT_AP...
26.829545
187
0.710292
262
2,361
6.175573
0.29771
0.054388
0.034611
0.054388
0.213844
0.148331
0.148331
0.097651
0.097651
0.097651
0
0.061155
0.134265
2,361
87
188
27.137931
0.730431
0.583227
0
0
0
0.0625
0.363942
0.145577
0
0
0
0
0
1
0
false
0.0625
0.125
0
0.125
0.0625
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
bbd5dfeac5416aaa4e83e0b9d53270b2988a24ca
2,995
py
Python
kit_django/content/apps.py
safakoner/kit
aec36a70137febfb5f3e3a9205ea58879736eea4
[ "MIT" ]
6
2020-06-29T20:36:15.000Z
2021-09-08T23:34:01.000Z
kit_django/content/apps.py
safakoner/kit
aec36a70137febfb5f3e3a9205ea58879736eea4
[ "MIT" ]
9
2021-03-30T13:46:29.000Z
2022-03-12T00:38:27.000Z
kit_django/content/apps.py
safakoner/kit
aec36a70137febfb5f3e3a9205ea58879736eea4
[ "MIT" ]
1
2020-07-20T18:40:24.000Z
2020-07-20T18:40:24.000Z
# # ---------------------------------------------------------------------------------------------------- # DESCRIPTION # ---------------------------------------------------------------------------------------------------- ## @package content @brief [ PACKAGE ] - Content. ## @dir content ...
42.785714
102
0.444741
240
2,995
5.508333
0.216667
0.121029
0.102874
0.12708
0.131619
0
0
0
0
0
0
0
0.265442
2,995
69
103
43.405797
0.600909
0.72621
0
0
0
0
0.018543
0
0
0
0
0
0
1
0.071429
false
0
0.285714
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
bbd7d9dde1e4ce541f94c7b201986c3d8dd7319a
727
py
Python
home/migrations/0022_auto_20210409_1256.py
witty-technologies-empowerment/codeupblood
a0aa1725e5776d80e083b6d4e9e67476bb97e983
[ "MIT" ]
null
null
null
home/migrations/0022_auto_20210409_1256.py
witty-technologies-empowerment/codeupblood
a0aa1725e5776d80e083b6d4e9e67476bb97e983
[ "MIT" ]
null
null
null
home/migrations/0022_auto_20210409_1256.py
witty-technologies-empowerment/codeupblood
a0aa1725e5776d80e083b6d4e9e67476bb97e983
[ "MIT" ]
1
2022-01-19T11:09:13.000Z
2022-01-19T11:09:13.000Z
# Generated by Django 3.1.6 on 2021-04-09 19:56 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('home', '0021_auto_20210409_1118'), ] operations = [ migrations.AddField( model_name='blog', name='show', ...
25.068966
68
0.566713
73
727
5.506849
0.616438
0.067164
0.124378
0.144279
0.189055
0.189055
0.189055
0
0
0
0
0.074
0.312242
727
28
69
25.964286
0.73
0.061898
0
0.318182
1
0
0.110294
0.033824
0
0
0
0
0
1
0
false
0
0.045455
0
0.181818
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
bbdb2c2c522ffff022d41a4d62480d42fe180e58
2,586
py
Python
Gui/CustomWidgets/PlottingWidgets/mayaViWidget.py
jpesperidiao/MOPA
6fbf097a22d42d82eeb36c6f247eb0d8fb6ac586
[ "MIT" ]
null
null
null
Gui/CustomWidgets/PlottingWidgets/mayaViWidget.py
jpesperidiao/MOPA
6fbf097a22d42d82eeb36c6f247eb0d8fb6ac586
[ "MIT" ]
1
2020-06-07T00:19:54.000Z
2020-06-07T00:19:54.000Z
Gui/CustomWidgets/PlottingWidgets/mayaViWidget.py
jpesperidiao/MOPA
6fbf097a22d42d82eeb36c6f247eb0d8fb6ac586
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ /*************************************************************************** MOPA An independet project Método de Obtenção da Posição de Atirador ------------------- begin : 2018-12-21 git sha ...
39.784615
95
0.496906
255
2,586
4.976471
0.611765
0.01182
0.020489
0.020489
0
0
0
0
0
0
0
0.014615
0.312065
2,586
65
96
39.784615
0.698707
0.659706
0
0
0
0
0.024938
0
0
0
0
0.015385
0
1
0.111111
false
0
0.222222
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
bbdd2e1f7b9f04c68b368c1e67ead84b604e9837
526
py
Python
amqp_2phase/migrations/0002_create_event_index.py
cloud-taxi/django-amqp-2phase
d4825fa68bfba6a21c310b45f39a740840e7cae1
[ "BSD-3-Clause" ]
null
null
null
amqp_2phase/migrations/0002_create_event_index.py
cloud-taxi/django-amqp-2phase
d4825fa68bfba6a21c310b45f39a740840e7cae1
[ "BSD-3-Clause" ]
null
null
null
amqp_2phase/migrations/0002_create_event_index.py
cloud-taxi/django-amqp-2phase
d4825fa68bfba6a21c310b45f39a740840e7cae1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-05-08 05:45 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('amqp_2phase', '0001_create_events_table'), ] atomic = False operations = [ migrati...
29.222222
119
0.671103
63
526
5.333333
0.68254
0.089286
0.119048
0.142857
0.220238
0.220238
0
0
0
0
0
0.053659
0.220532
526
17
120
30.941176
0.765854
0.125475
0
0
1
0
0.369803
0.155361
0
0
0
0
0
1
0
false
0
0.181818
0
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bbdfbb10eaebeeb5ca5805687d46a1d1d278b849
1,567
py
Python
test/SI_to_Conc/test_SI2Conc_OG_MO_AUMC_ICR_RMH.py
notZaki/DCE-DSC-MRI_CodeCollection
9e258e10559894951c7e6c5c00876e74ce103258
[ "Apache-2.0" ]
null
null
null
test/SI_to_Conc/test_SI2Conc_OG_MO_AUMC_ICR_RMH.py
notZaki/DCE-DSC-MRI_CodeCollection
9e258e10559894951c7e6c5c00876e74ce103258
[ "Apache-2.0" ]
1
2020-11-19T04:49:28.000Z
2020-11-19T04:49:28.000Z
test/SI_to_Conc/test_SI2Conc_OG_MO_AUMC_ICR_RMH.py
notZaki/DCE-DSC-MRI_CodeCollection
9e258e10559894951c7e6c5c00876e74ce103258
[ "Apache-2.0" ]
null
null
null
import pytest import numpy as np from ..helpers import osipi_parametrize from . import SI2Conc_data from src.original.OG_MO_AUMC_ICR_RMH.ExtendedTofts.DCE import dce_to_r1eff from src.original.OG_MO_AUMC_ICR_RMH.ExtendedTofts.DCE import r1eff_to_conc # All tests will use the same arguments and same data... arg_name...
40.179487
157
0.734525
281
1,567
3.88968
0.3879
0.038426
0.021958
0.030192
0.188472
0.175663
0.175663
0.175663
0.175663
0.175663
0
0.029366
0.174218
1,567
38
158
41.236842
0.815301
0.414167
0
0
0
0
0.054144
0
0
0
0
0
0.0625
1
0.0625
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
bbe0157ae7f26883dcb131a2958451cdb126b2d0
1,415
py
Python
app.py
hendrapaiton/mandalika
6ecbde9e3582d6532006e58531d5fc52feaa8854
[ "MIT" ]
1
2020-02-19T07:45:53.000Z
2020-02-19T07:45:53.000Z
app.py
hendrapaiton/mandalika
6ecbde9e3582d6532006e58531d5fc52feaa8854
[ "MIT" ]
1
2020-02-20T05:35:49.000Z
2020-02-26T08:14:41.000Z
app.py
hendrapaiton/mandalika
6ecbde9e3582d6532006e58531d5fc52feaa8854
[ "MIT" ]
2
2020-02-25T16:46:39.000Z
2020-02-26T09:02:06.000Z
# Import from system libraries from flask import Flask from flask_bcrypt import Bcrypt from flask_cors import CORS from flask_jwt_extended import JWTManager from flask_restful import Api # Import from application modules from errors import errors from models.User import User from models.db import initialize_db from ro...
25.727273
78
0.786572
197
1,415
5.472081
0.411168
0.041744
0.068646
0.033395
0
0
0
0
0
0
0
0.002459
0.137809
1,415
54
79
26.203704
0.881148
0.351943
0
0
0
0
0.073171
0
0
0
0
0
0
1
0.066667
false
0.066667
0.3
0.066667
0.433333
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
bbe30cef5cf3479058d3d846d89799afd1e7069c
3,997
py
Python
lib/galaxy/webapps/tool_shed/util/shed_statistics.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
2
2016-02-23T00:09:14.000Z
2019-02-11T07:48:44.000Z
lib/galaxy/webapps/tool_shed/util/shed_statistics.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/webapps/tool_shed/util/shed_statistics.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
6
2015-05-27T13:09:50.000Z
2019-02-11T07:48:46.000Z
from time import strftime, gmtime class ShedCounter( object ): def __init__( self, model ): # TODO: Enhance the ShedCounter to retrieve information from the db instead of displaying what's currently in memory. self.model = model self.generation_time = strftime( "%b %d, %Y", gmtime() ) ...
49.345679
131
0.536652
380
3,997
5.394737
0.239474
0.036585
0.049756
0.039512
0.221951
0.210732
0.178537
0.178537
0.14439
0.14439
0
0.0105
0.404303
3,997
80
132
49.9625
0.850483
0.12059
0
0.238806
0
0
0.033152
0
0
0
0
0.0125
0
1
0.044776
false
0
0.014925
0
0.089552
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
bbec33adffc946520b52f5157928147efe6188be
5,941
py
Python
HIS_void/rbac/admin.py
YuanchenZhu2020/HIS_void
7289bf537e9fc4b09750bbca76a4cc8354dc770f
[ "MIT" ]
null
null
null
HIS_void/rbac/admin.py
YuanchenZhu2020/HIS_void
7289bf537e9fc4b09750bbca76a4cc8354dc770f
[ "MIT" ]
null
null
null
HIS_void/rbac/admin.py
YuanchenZhu2020/HIS_void
7289bf537e9fc4b09750bbca76a4cc8354dc770f
[ "MIT" ]
null
null
null
from django import forms from django.contrib import admin from django.contrib.auth.models import Group from django.contrib.auth.admin import UserAdmin as BaseUserAdmin from django.contrib.auth.forms import ReadOnlyPasswordHashField from django.utils.translation import gettext_lazy as _ from .models import ( ...
32.113514
96
0.56068
536
5,941
6.014925
0.266791
0.027916
0.047457
0.069479
0.32072
0.234491
0.156638
0.136787
0.072581
0.072581
0
0.003484
0.275375
5,941
184
97
32.288043
0.745412
0.065982
0
0.304348
0
0
0.236549
0
0
0
0
0
0
1
0.021739
false
0.115942
0.050725
0.007246
0.391304
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
bbed960d66995a862622a4fef9dc7cece3c6c141
361
py
Python
spark_auto_mapper_fhir/generator/test_generator_get_types_for_codeable_concepts.py
imranq2/SparkAutoMapper.FHIR
dd23b218fb0097d1edc2f3e688e8d6d4d7278bd2
[ "Apache-2.0" ]
1
2020-10-31T23:25:07.000Z
2020-10-31T23:25:07.000Z
spark_auto_mapper_fhir/generator/test_generator_get_types_for_codeable_concepts.py
icanbwell/SparkAutoMapper.FHIR
98f368e781b46523142c7cb513c670d659a93c9b
[ "Apache-2.0" ]
null
null
null
spark_auto_mapper_fhir/generator/test_generator_get_types_for_codeable_concepts.py
icanbwell/SparkAutoMapper.FHIR
98f368e781b46523142c7cb513c670d659a93c9b
[ "Apache-2.0" ]
null
null
null
from typing import List from spark_auto_mapper_fhir.generator.fhir_xml_schema_parser import ( FhirXmlSchemaParser, FhirCodeableType, ) def test_generator_get_types_for_codeable_concepts() -> None: print("") codeable_types: List[ FhirCodeableType ] = FhirXmlSchemaParser.get_types_for_codea...
24.066667
69
0.772853
40
361
6.525
0.575
0.061303
0.084291
0.145594
0.206897
0
0
0
0
0
0
0
0.160665
361
14
70
25.785714
0.861386
0
0
0
0
0
0
0
0
0
0
0
0
1
0.090909
true
0
0.181818
0
0.272727
0.181818
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
bbef40d1d77a7ea412c5b45aa8b16fa7be4ecbe1
23,124
py
Python
authkit/authenticate/__init__.py
bobrock/AuthKit
ba82501d9dff699be9eef33266aecd03d016cec2
[ "MIT" ]
null
null
null
authkit/authenticate/__init__.py
bobrock/AuthKit
ba82501d9dff699be9eef33266aecd03d016cec2
[ "MIT" ]
null
null
null
authkit/authenticate/__init__.py
bobrock/AuthKit
ba82501d9dff699be9eef33266aecd03d016cec2
[ "MIT" ]
1
2020-06-24T19:20:13.000Z
2020-06-24T19:20:13.000Z
"""Authentication middleware This module provides one piece of middleware named ``authkit.authenticate.middleware`` which is used to intercept responses with a specified status code, present a user with a means of authenticating themselves and handle the sign in process. Each of the authentication methods supported...
38.604341
84
0.625195
2,774
23,124
5.113194
0.182048
0.015228
0.01692
0.006345
0.155527
0.121545
0.092992
0.065214
0.050409
0.036309
0
0.003959
0.290002
23,124
598
85
38.668896
0.859971
0.03252
0
0.207831
0
0
0.183157
0.005373
0
0
0
0
0.003012
0
null
null
0.048193
0.051205
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
bbf0d14e96a9123beca18b5184daaba1114c19e3
4,129
py
Python
simulated_crowds/simulated_heterogeneous_crowd_study.py
aburnap/JMD2015-When-Crowdsourcing-Fails
b0bdcba7e35a1678c5c42c8f69461d724887fb35
[ "MIT" ]
3
2015-03-19T11:49:05.000Z
2019-06-06T22:25:49.000Z
simulated_crowds/simulated_heterogeneous_crowd_study.py
aburnap/JMD2015-When-Crowdsourcing-Fails
b0bdcba7e35a1678c5c42c8f69461d724887fb35
[ "MIT" ]
null
null
null
simulated_crowds/simulated_heterogeneous_crowd_study.py
aburnap/JMD2015-When-Crowdsourcing-Fails
b0bdcba7e35a1678c5c42c8f69461d724887fb35
[ "MIT" ]
null
null
null
#----------------------------------------------------------------------------- # # Paper: When Crowdsourcing Fails: A Study of Expertise on Crowdsourced # Design Evaluation # Author: Alex Burnap - aburnap@umich.edu # Date: October 10, 2014 # License: Apache v2 # Descrip...
43.463158
118
0.627755
458
4,129
5.358079
0.318777
0.07335
0.046455
0.06357
0.114914
0.109209
0.09943
0.09943
0.030155
0
0
0.021384
0.184548
4,129
94
119
43.925532
0.707455
0.166142
0
0
0
0
0.224168
0.095155
0
0
0
0
0
0
null
null
0
0.072464
null
null
0.072464
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
bbfe214e8149d499ea33bd81fda220abbce8fdef
3,578
py
Python
fabfile.py
nprapps/sitemaps
6be4393d881b3c8766d35fbe479873247f05c13b
[ "FSFAP" ]
null
null
null
fabfile.py
nprapps/sitemaps
6be4393d881b3c8766d35fbe479873247f05c13b
[ "FSFAP" ]
null
null
null
fabfile.py
nprapps/sitemaps
6be4393d881b3c8766d35fbe479873247f05c13b
[ "FSFAP" ]
1
2021-02-18T11:24:28.000Z
2021-02-18T11:24:28.000Z
#!/usr/bin/env python from fabric.api import * import app import app_config """ Environments Changing environment requires a full-stack test. An environment points to both a server and an S3 bucket. """ def production(): env.settings = 'production' env.s3_buckets = app_config.PRODUCTION_S3_BUCKETS def stag...
27.312977
186
0.66322
504
3,578
4.577381
0.404762
0.027308
0.020806
0.014304
0.251409
0.181621
0.14521
0.124837
0.083225
0.053749
0
0.012487
0.216601
3,578
130
187
27.523077
0.81056
0.02152
0
0.107143
0
0.053571
0.290244
0.057317
0
0
0
0
0
0
null
null
0
0.053571
null
null
0.017857
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
a5269b57489ba167b642f9b77a2ffe4af1010998
1,777
py
Python
tests/integration/cli/test_compile.py
miohtama/ape
622deb25076d33de0edb3a23449ccdc04c3288cd
[ "Apache-2.0" ]
null
null
null
tests/integration/cli/test_compile.py
miohtama/ape
622deb25076d33de0edb3a23449ccdc04c3288cd
[ "Apache-2.0" ]
null
null
null
tests/integration/cli/test_compile.py
miohtama/ape
622deb25076d33de0edb3a23449ccdc04c3288cd
[ "Apache-2.0" ]
null
null
null
def test_compile(ape_cli, runner, project): if not (project.path / "contracts").exists(): result = runner.invoke(ape_cli, ["compile"]) assert result.exit_code == 0 assert "WARNING" in result.output assert "No 'contracts/' directory detected" in result.output return # Nothing...
40.386364
97
0.655037
228
1,777
5.030702
0.254386
0.062772
0.109852
0.109852
0.667829
0.64952
0.622493
0.622493
0.622493
0.583261
0
0.004418
0.235791
1,777
43
98
41.325581
0.840206
0.116488
0
0.545455
0
0
0.195777
0.014715
0
0
0
0
0.454545
1
0.030303
false
0
0
0
0.121212
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
a528fb1f9441de07bad65e4dc6932a2f3895273e
3,720
py
Python
gpg_reaper.py
kacperszurek/gpg_reaper
8fd0de32944900c813f8dbb5b83bb83abcea037f
[ "MIT" ]
95
2018-03-05T18:20:00.000Z
2021-09-28T18:51:40.000Z
gpg_reaper.py
n0ncetonic/gpg_reaper
8fd0de32944900c813f8dbb5b83bb83abcea037f
[ "MIT" ]
null
null
null
gpg_reaper.py
n0ncetonic/gpg_reaper
8fd0de32944900c813f8dbb5b83bb83abcea037f
[ "MIT" ]
15
2018-03-13T01:44:00.000Z
2021-12-20T09:59:26.000Z
# GPG Reaper # # MIT License # # Copyright (c) 2018 Kacper Szurek # https://security.szurek.pl/ from pgpy.packet.fields import MPI, RSAPriv from pgpy.constants import PubKeyAlgorithm, KeyFlags, HashAlgorithm, SymmetricKeyAlgorithm, CompressionAlgorithm from pgpy import PGPKey from pgpy.packet.packets import PrivKeyV4 ...
35.09434
112
0.552419
412
3,720
4.786408
0.38835
0.031947
0.027383
0.017241
0.032454
0.032454
0.032454
0.032454
0
0
0
0.025683
0.340591
3,720
106
113
35.09434
0.778231
0.044624
0
0.094118
0
0
0.046249
0
0
0
0
0
0
0
null
null
0
0.094118
null
null
0.094118
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
a5323fdb26fc504a82070a2ba96f6ac67837b9e8
1,545
py
Python
application_form/migrations/0005_occupancy_id_to_int.py
frwickst/apartment-application-service
40387327a0f82ba01bfcb6ab8532ea4aec40d37a
[ "MIT" ]
1
2021-03-15T11:29:12.000Z
2021-03-15T11:29:12.000Z
application_form/migrations/0005_occupancy_id_to_int.py
frwickst/apartment-application-service
40387327a0f82ba01bfcb6ab8532ea4aec40d37a
[ "MIT" ]
130
2020-09-07T08:30:29.000Z
2022-03-29T11:49:27.000Z
application_form/migrations/0005_occupancy_id_to_int.py
frwickst/apartment-application-service
40387327a0f82ba01bfcb6ab8532ea4aec40d37a
[ "MIT" ]
4
2020-09-07T05:34:13.000Z
2021-11-07T12:51:21.000Z
# Generated by Django 2.2.16 on 2020-10-28 06:58 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("application_form", "0004_add_apartment"), ] operations = [ migrations.AlterModelOptions( name="hasoapartmentpriority", ...
31.530612
84
0.487379
113
1,545
6.539823
0.460177
0.05954
0.125846
0.048714
0.216509
0.086604
0
0
0
0
0
0.022198
0.416828
1,545
48
85
32.1875
0.798002
0.029773
0
0.309524
1
0
0.323981
0.028056
0
0
0
0
0
1
0
false
0
0.02381
0
0.095238
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
a534ca263cb0f9b6e64a0efc7bf4cd98c4b776a8
1,237
py
Python
aiogithub/objects/rate_limit.py
flying-sheep/aiogithub
566252cac036d9abe2b1eb2acb268547e01ca63e
[ "BSD-3-Clause" ]
10
2016-09-13T15:50:10.000Z
2021-05-27T15:36:58.000Z
aiogithub/objects/rate_limit.py
flying-sheep/aiogithub
566252cac036d9abe2b1eb2acb268547e01ca63e
[ "BSD-3-Clause" ]
5
2017-03-26T13:51:40.000Z
2020-04-22T19:46:36.000Z
aiogithub/objects/rate_limit.py
flying-sheep/aiogithub
566252cac036d9abe2b1eb2acb268547e01ca63e
[ "BSD-3-Clause" ]
2
2020-03-05T06:07:18.000Z
2022-02-11T14:23:46.000Z
from datetime import datetime from dateutil.tz import tzutc from aiogithub.objects.response import BaseResponseObject from aiogithub.utils import return_key class RateLimitDetail(BaseResponseObject): def _normalise_key(self, document, key): if key == 'reset' and not isinstance(document['reset'], datetim...
22.089286
74
0.611964
118
1,237
6.271186
0.338983
0.072973
0.114865
0.135135
0.097297
0
0
0
0
0
0
0
0.299919
1,237
55
75
22.490909
0.854503
0
0
0.365854
0
0
0.039612
0
0
0
0
0
0
1
0.195122
false
0.121951
0.097561
0.02439
0.414634
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
a5357ab347b4e01cb284298a5ffef482b143a7cb
736
py
Python
python/basic_opertions.py
runningforlife/CodingExamples
808b12cdb996390225d40a687bf6215c4b7d1822
[ "Apache-2.0" ]
null
null
null
python/basic_opertions.py
runningforlife/CodingExamples
808b12cdb996390225d40a687bf6215c4b7d1822
[ "Apache-2.0" ]
null
null
null
python/basic_opertions.py
runningforlife/CodingExamples
808b12cdb996390225d40a687bf6215c4b7d1822
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python """how to user basic math operations in python """ def math_operations(): a = 5 + 3 assert a == 8 b = 5 - 3 assert b == 2 c = 5 * 3 assert c == 15 assert isinstance(c, int) assert 5 / 3 == 1.666666666666666666666667 assert 8 / 2 == 4 assert 5 % 3 == 2 ...
16
50
0.539402
106
736
3.613208
0.339623
0.046997
0.125326
0.070496
0.078329
0
0
0
0
0
0
0.145161
0.326087
736
45
51
16.355556
0.627016
0.108696
0
0
0
0
0.077519
0
0
0
0
0
0.615385
1
0.076923
false
0
0
0
0.076923
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
a5411aefaed2b9a42a7bcdc0b02b6093311e2594
277
py
Python
Algo and DSA/LeetCode-Solutions-master/Python/vowels-of-all-substrings.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
3,269
2018-10-12T01:29:40.000Z
2022-03-31T17:58:41.000Z
Algo and DSA/LeetCode-Solutions-master/Python/vowels-of-all-substrings.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
53
2018-12-16T22:54:20.000Z
2022-02-25T08:31:20.000Z
Algo and DSA/LeetCode-Solutions-master/Python/vowels-of-all-substrings.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
1,236
2018-10-12T02:51:40.000Z
2022-03-30T13:30:37.000Z
# Time: O(n) # Space: O(1) class Solution(object): def countVowels(self, word): """ :type word: str :rtype: int """ VOWELS = set("aeiou") return sum((i-0+1) * ((len(word)-1)-i+1) for i, c in enumerate(word) if c in VOWELS)
23.083333
92
0.505415
41
277
3.414634
0.707317
0.042857
0
0
0
0
0
0
0
0
0
0.026455
0.31769
277
11
93
25.181818
0.714286
0.187726
0
0
0
0
0.026042
0
0
0
0
0
0
1
0.25
false
0
0
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
a548314328afb7d3cb5f380d9d16cde6403fb2e0
1,275
py
Python
lintcode/Easy/085_Insert_Node_in_a_Binary_Search_Tree.py
Rhadow/leetcode
43209626720321113dbfbac67b3841e6efb4fab3
[ "MIT" ]
3
2017-04-03T12:18:24.000Z
2018-06-25T08:31:04.000Z
lintcode/Easy/085_Insert_Node_in_a_Binary_Search_Tree.py
Rhadow/leetcode
43209626720321113dbfbac67b3841e6efb4fab3
[ "MIT" ]
null
null
null
lintcode/Easy/085_Insert_Node_in_a_Binary_Search_Tree.py
Rhadow/leetcode
43209626720321113dbfbac67b3841e6efb4fab3
[ "MIT" ]
null
null
null
""" Definition of TreeNode: class TreeNode: def __init__(self, val): self.val = val self.left, self.right = None, None """ class Solution: """ @param root: The root of the binary search tree. @param node: insert this node into the binary search tree. @return: The root of the new bina...
27.12766
62
0.481569
136
1,275
4.485294
0.286765
0.059016
0.078689
0.039344
0.072131
0.072131
0
0
0
0
0
0
0.426667
1,275
46
63
27.717391
0.834473
0.401569
0
0.090909
0
0
0.017981
0
0
0
0
0.021739
0
1
0.045455
false
0
0
0
0.181818
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