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
a643c170360fd65c1fce02757aabe7bff1085035
1,532
py
Python
combined.py
witchOfTheEast/tkinter_tutorial
aeff45ce01cfca88795ec3b9c1be5835553cd907
[ "MIT" ]
null
null
null
combined.py
witchOfTheEast/tkinter_tutorial
aeff45ce01cfca88795ec3b9c1be5835553cd907
[ "MIT" ]
null
null
null
combined.py
witchOfTheEast/tkinter_tutorial
aeff45ce01cfca88795ec3b9c1be5835553cd907
[ "MIT" ]
null
null
null
from Tkinter import * import tkMessageBox def callback(): print 'called the callback!' def setStatus(): myBar.set("%s", 'STATUS BAR INFO') def exitNow(): exit() def confirmExit(): if tkMessageBox.askyesno('Exit dialog', 'Really exit?'): exitNow() root = Tk() # create a menu menu = Menu...
23.569231
88
0.686684
213
1,532
4.859155
0.356808
0.054106
0.057971
0.066667
0.13913
0.13913
0.044444
0.044444
0
0
0
0.00541
0.155352
1,532
64
89
23.9375
0.794436
0.041775
0
0.093023
0
0
0.077186
0
0
0
0
0
0
0
null
null
0
0.046512
null
null
0.023256
0
0
0
null
0
0
0
0
0
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
a64617babb2bab4f4378a4b38e453efba462a25c
8,000
py
Python
phipkit/score.py
openvax/phipkit
267a9b0bb3b79b3ff416e07ce390e43b84a02be4
[ "Apache-2.0" ]
null
null
null
phipkit/score.py
openvax/phipkit
267a9b0bb3b79b3ff416e07ce390e43b84a02be4
[ "Apache-2.0" ]
null
null
null
phipkit/score.py
openvax/phipkit
267a9b0bb3b79b3ff416e07ce390e43b84a02be4
[ "Apache-2.0" ]
null
null
null
''' Analyze PHiP-seq read counts matrix to generate enrichment-over-beads-only scores. Algorithm sketch: [I] For each bead-only sample: [1] Bin the read counts across clones into some number of bins (default 50). [2] For each set of clones c associated with each bin: For each other sample s: ...
34.934498
100
0.628375
1,024
8,000
4.726563
0.271484
0.033058
0.039669
0.03843
0.11157
0.063636
0.02686
0.012397
0.012397
0.012397
0
0.007145
0.28275
8,000
228
101
35.087719
0.836354
0.199125
0
0.134969
1
0
0.160169
0.014717
0
0
0
0
0.006135
1
0.01227
false
0
0.06135
0
0.079755
0.067485
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
a6517756a3a14e9acb42f1ecdbdc81a9baa0b501
888
py
Python
utils.py
TobyBoyne/gogen-solver
59f74591fe48bede8d7cff8f6460cfb74b8e3ebd
[ "MIT" ]
null
null
null
utils.py
TobyBoyne/gogen-solver
59f74591fe48bede8d7cff8f6460cfb74b8e3ebd
[ "MIT" ]
null
null
null
utils.py
TobyBoyne/gogen-solver
59f74591fe48bede8d7cff8f6460cfb74b8e3ebd
[ "MIT" ]
null
null
null
from string import ascii_lowercase from itertools import product # the letter z is not found in gogen puzzles lowercase_letters = ascii_lowercase[:-1] def get_connections(word_list): """Returns a dictionary of each letter in the alphabet, where the value is a set of all the letters that are linked to it based on a...
31.714286
75
0.727477
157
888
3.955414
0.394904
0.077295
0.10628
0.028986
0
0
0
0
0
0
0
0.014845
0.165541
888
28
76
31.714286
0.823212
0.396396
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.133333
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
a6533118b46e76f56bec90a679a74b2a3469e5cd
2,728
py
Python
Utilities/MS_UT_Stack2Dir.py
JaneliaSciComp/MetaSegmenter
6db3e8e26677b49be999773daee6ea475985df55
[ "Unlicense" ]
null
null
null
Utilities/MS_UT_Stack2Dir.py
JaneliaSciComp/MetaSegmenter
6db3e8e26677b49be999773daee6ea475985df55
[ "Unlicense" ]
null
null
null
Utilities/MS_UT_Stack2Dir.py
JaneliaSciComp/MetaSegmenter
6db3e8e26677b49be999773daee6ea475985df55
[ "Unlicense" ]
null
null
null
#! /usr/local/python-2.7.6/bin/python # # Copyright (C) 2015 by Howard Hughes Medical Institute. # # Purpose: given a segmentation stack, # produce a directory of RGB files import os, sys, re, h5py import tifffile as tiff import numpy from skimage.morphology import label from scipy.ndimage import measurements from sk...
35.894737
100
0.603006
385
2,728
4.062338
0.350649
0.076726
0.058184
0.033248
0.147698
0.059463
0.059463
0.059463
0.059463
0.059463
0
0.037608
0.239736
2,728
75
101
36.373333
0.71649
0.119135
0
0.035714
0
0
0.108278
0
0
0
0
0
0
0
null
null
0
0.142857
null
null
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
a656dc09ee6ec9003928f2504f93fd239a261cd0
1,287
py
Python
docs/examples/config_manager_test.py
tbeckham/DeploymentManager
c1b2ba47d1732859ff458eb934da671fb0dad37f
[ "Apache-2.0" ]
null
null
null
docs/examples/config_manager_test.py
tbeckham/DeploymentManager
c1b2ba47d1732859ff458eb934da671fb0dad37f
[ "Apache-2.0" ]
null
null
null
docs/examples/config_manager_test.py
tbeckham/DeploymentManager
c1b2ba47d1732859ff458eb934da671fb0dad37f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from config_manager.eucalyptus import Eucalyptus from config_manager.eucalyptus.enterprise import Enterprise from config_manager.eucalyptus.topology import Topology from config_manager.eucalyptus.topology.cluster import Cluster from config_manager.eucalyptus.topology.cluster.nodecontroller import ...
35.75
84
0.742813
149
1,287
6.228188
0.389262
0.053879
0.091595
0.145474
0.128233
0.090517
0
0
0
0
0
0.01259
0.135975
1,287
35
85
36.771429
0.821942
0.408702
0
0
0
0
0.127049
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
a658fb18c246abf8c825b53218e1569f28081bc2
2,592
py
Python
MyPython/wifi-scanner.py
LairdStreak/MyPyPlayGround
e999cfd179d457a6d17c81bf1bacaa7c90e3e1dc
[ "MIT" ]
null
null
null
MyPython/wifi-scanner.py
LairdStreak/MyPyPlayGround
e999cfd179d457a6d17c81bf1bacaa7c90e3e1dc
[ "MIT" ]
null
null
null
MyPython/wifi-scanner.py
LairdStreak/MyPyPlayGround
e999cfd179d457a6d17c81bf1bacaa7c90e3e1dc
[ "MIT" ]
null
null
null
#!/usr/bin/python from scapy.all import * import sys import signal import os #Function to handle Crtl+C def signal_handler(signal, frame): print('\n=================') print('Execution aborted') print('=================') os.system("kill -9 " + str(os.getpid())) sys.exit(1) def signal_exit(signal, frame): prin...
24
100
0.629244
372
2,592
4.325269
0.400538
0.030454
0.019888
0.02051
0.007458
0
0
0
0
0
0
0.046081
0.187886
2,592
108
101
24
0.71829
0.015818
0
0.168421
0
0.010526
0.196471
0.057647
0
0
0
0
0
0
null
null
0.010526
0.042105
null
null
0.168421
0
0
0
null
0
0
0
0
0
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
a65ef392a6bb4a69f0aea268aa1ebea4dbe1f81a
2,271
py
Python
download/gnosis/xml/pickle/test/test_paranoia.py
DavidMertz/gnosis-web
df5ab0d470a02ed6c51c971f2b40f1dcdc7d7350
[ "CC0-1.0" ]
null
null
null
download/gnosis/xml/pickle/test/test_paranoia.py
DavidMertz/gnosis-web
df5ab0d470a02ed6c51c971f2b40f1dcdc7d7350
[ "CC0-1.0" ]
null
null
null
download/gnosis/xml/pickle/test/test_paranoia.py
DavidMertz/gnosis-web
df5ab0d470a02ed6c51c971f2b40f1dcdc7d7350
[ "CC0-1.0" ]
null
null
null
"Test that the PARANOIA setting works --fpm" import gnosis.xml.pickle as xml_pickle from gnosis.xml.pickle.util import \ setParanoia, getParanoia, add_class_to_store import funcs funcs.set_parser() ud_xml = """<?xml version="1.0"?> <!DOCTYPE PyObject SYSTEM "PyObjects.dtd"> <PyObject module="UserDict" class="Us...
19.747826
60
0.660942
341
2,271
4.304985
0.369501
0.067439
0.038147
0.047684
0.305177
0.257493
0.257493
0.241144
0.222071
0.222071
0
0.02067
0.211801
2,271
114
61
19.921053
0.799441
0.295905
0
0.527027
0
0
0.345351
0
0
0
0
0
0
0
null
null
0.013514
0.054054
null
null
0.216216
0
0
0
null
0
0
0
0
0
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
a6656df6119176760b7920afa00e05c68143461d
6,448
py
Python
herald.py
z33kz33k/warriors
7730557a0770058419b7b8d36888d9b5d883e066
[ "MIT" ]
null
null
null
herald.py
z33kz33k/warriors
7730557a0770058419b7b8d36888d9b5d883e066
[ "MIT" ]
null
null
null
herald.py
z33kz33k/warriors
7730557a0770058419b7b8d36888d9b5d883e066
[ "MIT" ]
null
null
null
""" Functions bundled in this module make various announcements about the current game state to the standard output """ import math def introduce_battle(attacker, defender): print() print("********* BATTLE *********") print("Two brave warriors came to fight today:") print(str(attacker)) print(str...
45.408451
299
0.623604
781
6,448
5.052497
0.163892
0.032438
0.044602
0.024328
0.279777
0.21186
0.135327
0.117081
0.117081
0.117081
0
0.001907
0.186725
6,448
141
300
45.730496
0.750572
0.021402
0
0.144144
0
0.009009
0.234053
0.043478
0
0
0
0
0
1
0.081081
false
0
0.009009
0
0.09009
0.477477
0
0
0
null
0
0
0
0
0
0
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
a666a0e5f19e2e19dcb19fdfde8d96921a4a61f8
9,912
py
Python
tests/test_as_json_p.py
malexer/flask-json
ef7c20f9f5e9bc82f13243290df1eddb3733738c
[ "BSD-3-Clause" ]
41
2015-04-23T21:33:26.000Z
2021-12-10T01:25:16.000Z
tests/test_as_json_p.py
malexer/flask-json
ef7c20f9f5e9bc82f13243290df1eddb3733738c
[ "BSD-3-Clause" ]
7
2015-09-27T06:34:12.000Z
2021-11-21T04:44:33.000Z
tests/test_as_json_p.py
malexer/flask-json
ef7c20f9f5e9bc82f13243290df1eddb3733738c
[ "BSD-3-Clause" ]
18
2015-09-26T12:11:20.000Z
2021-07-02T16:21:22.000Z
""" This module provides tests for @as_json_p() decorator. """ import sys import pytest from werkzeug.exceptions import BadRequest from flask import Response, json from flask_json import json_response, _json_p_handler, as_json_p @pytest.fixture def theapp(app): # Disable pretty print to have smaller result string...
39.177866
79
0.55801
1,259
9,912
4.242256
0.135028
0.051114
0.030331
0.043812
0.714286
0.669725
0.653061
0.644449
0.639393
0.627972
0
0.018043
0.312248
9,912
252
80
39.333333
0.765439
0.159403
0
0.662921
0
0
0.140306
0.038485
0
0
0
0
0.247191
1
0.151685
false
0
0.02809
0.05618
0.247191
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
a6686f130b7b18b5246514e791fb407dc6aced56
8,143
py
Python
src/04/bayes.py
LittleNewton/Data_Mining_Report
4f91c238cdb2faa733af0de332beea0964cc2caf
[ "Apache-2.0" ]
1
2020-10-29T13:33:57.000Z
2020-10-29T13:33:57.000Z
src/04/bayes.py
LittleNewton/Data_Mining_Report
4f91c238cdb2faa733af0de332beea0964cc2caf
[ "Apache-2.0" ]
null
null
null
src/04/bayes.py
LittleNewton/Data_Mining_Report
4f91c238cdb2faa733af0de332beea0964cc2caf
[ "Apache-2.0" ]
null
null
null
# Load libraries import pandas import numpy as np import scipy.stats as stats import matplotlib.pyplot as plt from sklearn import model_selection # 模型比较和选择包 from sklearn.naive_bayes import GaussianNB class Bayes_Test(): # 读取样本 数据集 def load_dataset(self): url = 'Iris.csv' names = ['sepal-lengt...
31.319231
91
0.518728
1,265
8,143
3.041897
0.168379
0.025988
0.024948
0.006237
0.31289
0.255977
0.199844
0.160083
0.122661
0.112266
0
0.084141
0.353432
8,143
260
92
31.319231
0.646344
0.081297
0
0.113514
0
0
0.048615
0
0
0
0
0
0
0
null
null
0.010811
0.032432
null
null
0.091892
0
0
0
null
0
0
0
0
0
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
a66b9ccf2bf348065b63a0f36a81c1cbb5d98f94
2,175
py
Python
SampleFunctionAPI/services/dummy_data.py
ms-us-rcg-app-innovation/secure-retail-chat-bot
486c35ca1a0e63dfcbf8f1ad46081f7f3ffc9f44
[ "MIT" ]
null
null
null
SampleFunctionAPI/services/dummy_data.py
ms-us-rcg-app-innovation/secure-retail-chat-bot
486c35ca1a0e63dfcbf8f1ad46081f7f3ffc9f44
[ "MIT" ]
null
null
null
SampleFunctionAPI/services/dummy_data.py
ms-us-rcg-app-innovation/secure-retail-chat-bot
486c35ca1a0e63dfcbf8f1ad46081f7f3ffc9f44
[ "MIT" ]
null
null
null
data = { "recent_sales": [ { "id": 1, "item": 'shirt', "size": 'large', "color": 'blue', "price": '13.99' }, { "id": 2, "item": 'shirt', "size": 'large', "color": 'orange', "price": '15.99' }, { "i...
19.419643
49
0.388046
228
2,175
3.570175
0.29386
0.121622
0.154791
0.163391
0.471744
0.280098
0.280098
0.239558
0.239558
0.239558
0
0.050466
0.407816
2,175
111
50
19.594595
0.581522
0
0
0.386792
0
0
0.234023
0
0
0
0
0
0
1
0.018868
false
0
0
0
0.028302
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
a66b9f7d8fd4fa6e0e8466e1fbc8a8bfb48006d8
1,695
py
Python
tests/unit/test_binary_tree.py
ali92hm/data-structure-implementation
c0b0bd7d711db3085312565dc509c6d8efad03fa
[ "MIT" ]
null
null
null
tests/unit/test_binary_tree.py
ali92hm/data-structure-implementation
c0b0bd7d711db3085312565dc509c6d8efad03fa
[ "MIT" ]
null
null
null
tests/unit/test_binary_tree.py
ali92hm/data-structure-implementation
c0b0bd7d711db3085312565dc509c6d8efad03fa
[ "MIT" ]
null
null
null
import pytest from data_structure_implementation.binary_tree import BinaryTree, BinaryTreeNode class TestBinaryTree: @pytest.fixture def gen_tree(self) -> BinaryTree[int]: root = BinaryTreeNode( 25, BinaryTreeNode( 15, BinaryTreeNode(10, Binary...
36.847826
82
0.639528
213
1,695
4.826291
0.211268
0.272374
0.124514
0.061284
0.447471
0.400778
0.400778
0.145914
0.145914
0.145914
0
0.099842
0.255457
1,695
45
83
37.666667
0.714739
0
0
0.235294
0
0
0.011209
0
0
0
0
0
0.147059
1
0.147059
false
0
0.058824
0
0.264706
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
a66e33c225390d6454c298d14ea6a0904b017ead
426
py
Python
challengenews/migrations/0005_alter_articles_slug.py
scpaes/jungledevs-challenge
188bc7a4aacbb278a9486c57685db53be0477d51
[ "MIT" ]
null
null
null
challengenews/migrations/0005_alter_articles_slug.py
scpaes/jungledevs-challenge
188bc7a4aacbb278a9486c57685db53be0477d51
[ "MIT" ]
6
2021-08-10T02:19:35.000Z
2021-08-10T02:24:05.000Z
challengenews/migrations/0005_alter_articles_slug.py
scpaes/jungledevs-challenge
188bc7a4aacbb278a9486c57685db53be0477d51
[ "MIT" ]
null
null
null
# Generated by Django 3.2.6 on 2021-08-15 04:36 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('challengenews', '0004_articles_slug'), ] operations = [ migrations.AlterField( model_name='articles', name='slug', ...
22.421053
89
0.610329
46
426
5.543478
0.782609
0
0
0
0
0
0
0
0
0
0
0.067093
0.265258
426
18
90
23.666667
0.747604
0.105634
0
0
1
0
0.139842
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a66f409d426b89c09b0d5bd141819f3ea9e8e14f
5,094
py
Python
gocardless_pro/services/customer_bank_accounts_service.py
gdvalderrama/gocardless-pro-python
0ff8001f5bba11673c4fa0f30d26eca61a1219ba
[ "MIT" ]
null
null
null
gocardless_pro/services/customer_bank_accounts_service.py
gdvalderrama/gocardless-pro-python
0ff8001f5bba11673c4fa0f30d26eca61a1219ba
[ "MIT" ]
null
null
null
gocardless_pro/services/customer_bank_accounts_service.py
gdvalderrama/gocardless-pro-python
0ff8001f5bba11673c4fa0f30d26eca61a1219ba
[ "MIT" ]
null
null
null
# WARNING: Do not edit by hand, this file was generated by Crank: # # https://github.com/gocardless/crank # from . import base_service from .. import resources from ..paginator import Paginator from .. import errors class CustomerBankAccountsService(base_service.BaseService): """Service class that provides acce...
31.060976
90
0.586965
511
5,094
5.729941
0.311155
0.065574
0.054645
0.035861
0.500683
0.423839
0.377732
0.35485
0.32138
0.32138
0
0
0.335296
5,094
163
91
31.251534
0.864737
0.376914
0
0.509091
1
0
0.084382
0.067728
0
0
0
0
0
1
0.109091
false
0
0.072727
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a673b3a3ead6195386323a5ae506ff90585ffcf7
529
py
Python
tests/deployment/test_deployment.py
ChristianHinge/ml_ops_project_lectures
34c8cd222526d1af0db3998bfc993fbdccef5b16
[ "MIT" ]
null
null
null
tests/deployment/test_deployment.py
ChristianHinge/ml_ops_project_lectures
34c8cd222526d1af0db3998bfc993fbdccef5b16
[ "MIT" ]
null
null
null
tests/deployment/test_deployment.py
ChristianHinge/ml_ops_project_lectures
34c8cd222526d1af0db3998bfc993fbdccef5b16
[ "MIT" ]
null
null
null
import requests import json import torch import numpy as np x_new = np.zeros((1,1,28,28)) # Convert the array to a serializable list in a JSON document input_json = json.dumps({"data": x_new.tolist()}) # Set the content type headers = { 'Content-Type':'application/json' } predictions = requests.post("http://127.0.0....
29.388889
89
0.727788
84
529
4.488095
0.559524
0.04244
0
0
0
0
0
0
0
0
0
0.034557
0.124764
529
18
90
29.388889
0.779698
0.151229
0
0
0
0
0.154362
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
a67495135f219838eddc7cc161b252690978c0c7
3,943
py
Python
app.py
yeojin-dev/leo
20e4bd7dbd409bee8ff26a713f83cfb3d0a443ba
[ "MIT" ]
null
null
null
app.py
yeojin-dev/leo
20e4bd7dbd409bee8ff26a713f83cfb3d0a443ba
[ "MIT" ]
null
null
null
app.py
yeojin-dev/leo
20e4bd7dbd409bee8ff26a713f83cfb3d0a443ba
[ "MIT" ]
null
null
null
import datetime import os import uuid from urllib.parse import urlparse import slack from flask import ( Flask, jsonify, render_template, request, send_from_directory, ) from flask.cli import load_dotenv from pymongo import MongoClient from pytz import timezone app = Flask(__name__) load_dotenv() ...
33.134454
103
0.67512
508
3,943
4.988189
0.26378
0.039069
0.029597
0.028414
0.210734
0.210734
0.131018
0.101815
0.038674
0.038674
0
0.006732
0.171189
3,943
118
104
33.415254
0.768666
0
0
0.078652
0
0
0.214811
0.043622
0
0
0
0
0
1
0.05618
false
0.05618
0.101124
0.011236
0.224719
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
a6753cc917302d9905a242a41ec0d71e8e1a5d5d
1,408
py
Python
core/migrations/0002_foodweight.py
MakuZo/nutrigo
e50e10d497bcf9e01294565d42012d777f5c98d0
[ "MIT" ]
30
2019-03-28T18:01:58.000Z
2022-02-26T02:19:28.000Z
core/migrations/0002_foodweight.py
MakuZo/nutrigo
e50e10d497bcf9e01294565d42012d777f5c98d0
[ "MIT" ]
8
2019-06-06T19:33:08.000Z
2022-02-10T13:10:34.000Z
core/migrations/0002_foodweight.py
MakuZo/nutrigo
e50e10d497bcf9e01294565d42012d777f5c98d0
[ "MIT" ]
10
2019-04-04T19:19:28.000Z
2021-06-05T05:29:40.000Z
# Generated by Django 2.1.5 on 2019-02-09 18:55 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("core", "0001_initial")] operations = [ migrations.CreateModel( name="FoodWeight", fields=[ ...
32
83
0.440341
112
1,408
5.419643
0.571429
0.039539
0.046129
0.072488
0.075783
0
0
0
0
0
0
0.035019
0.452415
1,408
43
84
32.744186
0.75227
0.03196
0
0.162162
1
0
0.06025
0
0
0
0
0
0
1
0
false
0
0.054054
0
0.135135
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
a67579557fd6c58769b6d554c5405a8d2d779881
236
py
Python
tests/unit/cli/conftest.py
trainML/trainml-cli
3065ed4cacf415964bcfc8c3854dd8acbc3729c5
[ "MIT" ]
1
2021-02-11T16:08:05.000Z
2021-02-11T16:08:05.000Z
tests/unit/cli/conftest.py
trainML/trainml-cli
3065ed4cacf415964bcfc8c3854dd8acbc3729c5
[ "MIT" ]
1
2021-05-04T00:20:28.000Z
2021-07-07T16:21:35.000Z
tests/unit/cli/conftest.py
trainML/trainml-cli
3065ed4cacf415964bcfc8c3854dd8acbc3729c5
[ "MIT" ]
null
null
null
from click.testing import CliRunner from pytest import fixture, mark from unittest.mock import Mock, AsyncMock, patch, create_autospec pytestmark = [mark.cli,mark.unit] @fixture def runner(): runner = CliRunner() yield runner
21.454545
65
0.762712
31
236
5.774194
0.645161
0
0
0
0
0
0
0
0
0
0
0
0.15678
236
11
66
21.454545
0.899497
0
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.375
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
a67b1d8de6adb0040480f42eafab24154419c297
425
py
Python
encrypt_decrypt_app/migrations/0019_auto_20200727_0833.py
Chika-Jinanwa/chikas-cipher
91e7139f11132c885bd8872d705ffe3d0ca51b7d
[ "MIT" ]
null
null
null
encrypt_decrypt_app/migrations/0019_auto_20200727_0833.py
Chika-Jinanwa/chikas-cipher
91e7139f11132c885bd8872d705ffe3d0ca51b7d
[ "MIT" ]
9
2021-03-30T14:05:43.000Z
2022-03-12T00:44:58.000Z
encrypt_decrypt_app/migrations/0019_auto_20200727_0833.py
Chika-Jinanwa/chikas-cipher
91e7139f11132c885bd8872d705ffe3d0ca51b7d
[ "MIT" ]
null
null
null
# Generated by Django 3.0.8 on 2020-07-27 15:33 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('encrypt_decrypt_app', '0018_ciphergame_solved'), ] operations = [ migrations.AlterField( model_name='ciphergame', na...
22.368421
74
0.616471
46
425
5.586957
0.804348
0
0
0
0
0
0
0
0
0
0
0.060897
0.265882
425
18
75
23.611111
0.762821
0.105882
0
0
1
0
0.161376
0.058201
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a67cead0877f8b98f05986d181f9f977da542551
333
py
Python
analyzer/migrations/0006_remove_attachment_added_by.py
JackShen1/sentimento-web
19d1973c555fe7d8b745d5ce23555c0fd8c479e2
[ "MIT" ]
1
2021-04-02T10:00:28.000Z
2021-04-02T10:00:28.000Z
analyzer/migrations/0006_remove_attachment_added_by.py
JackShen1/sentimento-web
19d1973c555fe7d8b745d5ce23555c0fd8c479e2
[ "MIT" ]
null
null
null
analyzer/migrations/0006_remove_attachment_added_by.py
JackShen1/sentimento-web
19d1973c555fe7d8b745d5ce23555c0fd8c479e2
[ "MIT" ]
null
null
null
# Generated by Django 3.2 on 2021-04-26 10:27 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('analyzer', '0005_auto_20210425_2245'), ] operations = [ migrations.RemoveField( model_name='attachment', name='added_by', ...
18.5
48
0.600601
35
333
5.571429
0.828571
0
0
0
0
0
0
0
0
0
0
0.127119
0.291291
333
17
49
19.588235
0.699153
0.129129
0
0
1
0
0.170139
0.079861
0
0
0
0
0
1
0
false
0
0.090909
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a68a71c2d5af7592d3f37e6fb0303698943d7a06
1,698
py
Python
lms_app/urls.py
sashanight/LMS
8290805d9c3fd2b7ae50896ba75ee112b50619e3
[ "MIT" ]
null
null
null
lms_app/urls.py
sashanight/LMS
8290805d9c3fd2b7ae50896ba75ee112b50619e3
[ "MIT" ]
null
null
null
lms_app/urls.py
sashanight/LMS
8290805d9c3fd2b7ae50896ba75ee112b50619e3
[ "MIT" ]
null
null
null
from django.conf.urls import url from . import views app_name = 'lms_app' urlpatterns = [ url(r'^$', views.index, name='index'), url(r'^authentication$', views.auth, name='authentication'), url(r'^registration$', views.registration, name='registration'), url(r'^my_profile$', views.my_profile_request,...
58.551724
115
0.677856
263
1,698
4.114068
0.186312
0.05915
0.04159
0.049908
0.315157
0.290203
0.237523
0.193161
0.193161
0.193161
0
0.014407
0.100707
1,698
29
116
58.551724
0.694172
0.084806
0
0
0
0.125
0.481959
0.316366
0
0
0
0
0
1
0
false
0.083333
0.083333
0
0.083333
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
a6909423f35884be1c89cea4b72e30e85d038b38
425
py
Python
accounts/migrations/0005_auto_20190819_1447.py
jacobfelknor/sterling
aa4e7a22feb47814e5fae12078f4d9a849d17642
[ "MIT" ]
null
null
null
accounts/migrations/0005_auto_20190819_1447.py
jacobfelknor/sterling
aa4e7a22feb47814e5fae12078f4d9a849d17642
[ "MIT" ]
22
2019-09-02T18:03:08.000Z
2021-06-10T18:38:30.000Z
accounts/migrations/0005_auto_20190819_1447.py
jacobfelknor/sterling
aa4e7a22feb47814e5fae12078f4d9a849d17642
[ "MIT" ]
null
null
null
# Generated by Django 2.2.4 on 2019-08-19 20:47 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0004_auto_20190819_1441'), ] operations = [ migrations.AlterField( model_name='account', n...
22.368421
70
0.585882
43
425
5.674419
0.767442
0.090164
0
0
0
0
0
0
0
0
0
0.105085
0.305882
425
18
71
23.611111
0.722034
0.105882
0
0
1
0
0.161111
0.063889
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a697f19eca0e1bf447aac534db1c805ae86bf32e
4,095
py
Python
python/api/config/serializers.py
dimuha-rs/adcm
0f49cc9ece16c1e257be12375a64b65a34b3a3ae
[ "Apache-2.0" ]
null
null
null
python/api/config/serializers.py
dimuha-rs/adcm
0f49cc9ece16c1e257be12375a64b65a34b3a3ae
[ "Apache-2.0" ]
null
null
null
python/api/config/serializers.py
dimuha-rs/adcm
0f49cc9ece16c1e257be12375a64b65a34b3a3ae
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
38.271028
80
0.723077
480
4,095
6.041667
0.329167
0.035862
0.028966
0.022069
0.186897
0.156552
0.132414
0.032414
0.032414
0.032414
0
0.001202
0.187302
4,095
106
81
38.632075
0.870192
0.151893
0
0.084507
0
0
0.037016
0.006362
0
0
0
0
0
1
0.084507
false
0
0.112676
0.028169
0.690141
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
a69c4256c8120424bda3b8934dfaa52b9fbb2738
326
py
Python
testes/test_polinomios.py
DiegoAscanio/matriztdd
eabd8b2bc05e20a062f8b2a23b032637d88bbbeb
[ "MIT" ]
null
null
null
testes/test_polinomios.py
DiegoAscanio/matriztdd
eabd8b2bc05e20a062f8b2a23b032637d88bbbeb
[ "MIT" ]
6
2021-04-06T18:22:48.000Z
2022-03-12T00:52:18.000Z
testes/test_polinomios.py
DiegoAscanio/matriztdd
eabd8b2bc05e20a062f8b2a23b032637d88bbbeb
[ "MIT" ]
null
null
null
from polinomios.polinomios import p_de_A import numpy as np def test_p_de_A(): A = np.array([[-1, 4], [2, 1]]) p = [1, 0, -9] assert np.allclose(p_de_A(p, A), np.zeros((2,2))) def test_q_de_A(): A = np.array([[-1, 4], [2, 1]]) q = [2, 3] assert np.allclose(p_de_A(q, A), np.array([[1, 8], [4, 5...
23.285714
64
0.546012
68
326
2.441176
0.352941
0.090361
0.096386
0.162651
0.421687
0.421687
0.180723
0.180723
0.180723
0
0
0.07451
0.217791
326
13
65
25.076923
0.576471
0
0
0.2
0
0
0
0
0
0
0
0
0.2
1
0.2
false
0
0.2
0
0.4
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
a69c769295af960c87c6100c3fb68c7509427ad5
1,045
py
Python
reverse number.py
TheVishwajeetJagtap/Python-Day-4-Assignments-05-03-21-
e26a95bbc4ce07a369bef44fa15281e5d0e398ec
[ "MIT" ]
null
null
null
reverse number.py
TheVishwajeetJagtap/Python-Day-4-Assignments-05-03-21-
e26a95bbc4ce07a369bef44fa15281e5d0e398ec
[ "MIT" ]
null
null
null
reverse number.py
TheVishwajeetJagtap/Python-Day-4-Assignments-05-03-21-
e26a95bbc4ce07a369bef44fa15281e5d0e398ec
[ "MIT" ]
null
null
null
#wirte a program to read number from keyboard and print it in reverse number=input("Enter the number") reverse=0 for i in range(len(number)): reminder = int(number) % 10 reverse = (reverse * 10) + reminder number = int(number) / 10 print(reverse) #********************************using slice************...
26.794872
100
0.453589
118
1,045
4.016949
0.313559
0.105485
0.109705
0.160338
0.251055
0
0
0
0
0
0
0.020925
0.1311
1,045
38
101
27.5
0.501101
0.427751
0
0.125
0
0
0.173693
0
0
0
0
0
0
1
0
false
0
0
0
0
0.208333
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
a6a3f751ce40c9a7f003cbfe5731b5ed130383b1
437
py
Python
src/split_data.py
ABHISHEKVALSAN/ML-Arrhythmia-Dataset
c8adaf02d90c096cb332daafb0d1cf2ec8f24307
[ "MIT" ]
null
null
null
src/split_data.py
ABHISHEKVALSAN/ML-Arrhythmia-Dataset
c8adaf02d90c096cb332daafb0d1cf2ec8f24307
[ "MIT" ]
null
null
null
src/split_data.py
ABHISHEKVALSAN/ML-Arrhythmia-Dataset
c8adaf02d90c096cb332daafb0d1cf2ec8f24307
[ "MIT" ]
null
null
null
import pandas as pd import constants as const data = pd.read_csv('data/data_with_headers.csv') data_class_1 = data[data.diagnosis==1] for name,grouped_data in data[data.diagnosis!=1].groupby(const.LABEL): data_class =grouped_data.append(data_class_1) #print(data_class.head()) #print(data_class.tail()) d...
39.727273
70
0.757437
72
437
4.347222
0.444444
0.230032
0.070288
0.115016
0
0
0
0
0
0
0
0.010178
0.100687
437
10
71
43.7
0.78626
0.10984
0
0
0
0
0.118863
0.067183
0
0
0
0
0
1
0
false
0
0.25
0
0.25
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
a6a55b219d63b7c395eca9c18373794462505020
662
py
Python
tests/ingestors/test_directory.py
EruditePanda/ingestors
7084092e610597fa75eb0d87c6d67e80687296f2
[ "MIT" ]
null
null
null
tests/ingestors/test_directory.py
EruditePanda/ingestors
7084092e610597fa75eb0d87c6d67e80687296f2
[ "MIT" ]
null
null
null
tests/ingestors/test_directory.py
EruditePanda/ingestors
7084092e610597fa75eb0d87c6d67e80687296f2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from pprint import pprint # noqa from ..support import TestCase class DirectoryTest(TestCase): def test_normal_directory(self): fixture_path = self.fixture('testdir') result = self.manager.ingest(fixture_path) self.assertEqual(result.status, result.STATUS_SUCCESS...
31.52381
62
0.690332
77
662
5.831169
0.415584
0.13363
0.066815
0.10245
0.489978
0.347439
0.347439
0.347439
0.347439
0.347439
0
0.005618
0.193353
662
20
63
33.1
0.835206
0.039275
0
0.285714
0
0
0.039494
0
0
0
0
0
0.428571
1
0.142857
false
0
0.142857
0
0.357143
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
a6a8339ae7cdc4108489e9be1ac51505ff62d038
260
py
Python
social_media/__init__.py
atharva-naik/social_media
520964efe938fb89d3b1caa64b231ab1a63e6c76
[ "BSD-3-Clause" ]
7
2020-12-13T13:31:16.000Z
2020-12-31T12:26:07.000Z
social_media/__init__.py
atharva-naik/social_media
520964efe938fb89d3b1caa64b231ab1a63e6c76
[ "BSD-3-Clause" ]
4
2021-04-06T18:41:34.000Z
2021-09-08T02:52:35.000Z
social_media/__init__.py
atharva-naik/social_media
520964efe938fb89d3b1caa64b231ab1a63e6c76
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # This is to tell python that this is a package __version__ = '1.0' # __path__ = __import__('pkgutil').extend_path(__path__, __name__) __all__ = ['facebook', 'gmail', 'hangouts', 'nlp', 'quora', 'twitter', 'whatsapp', 'youtube', 'instagram']
43.333333
106
0.692308
33
260
4.69697
0.848485
0.077419
0
0
0
0
0
0
0
0
0
0.008734
0.119231
260
6
106
43.333333
0.668122
0.488462
0
0
0
0
0.480916
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
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
a6abc2008f51df97882b2fb02ac278c4faf29ad5
5,507
py
Python
sdk/python/pulumi_alicloud/hbr/get_backup_jobs.py
pulumi/pulumi-alicloud
9c34d84b4588a7c885c6bec1f03b5016e5a41683
[ "ECL-2.0", "Apache-2.0" ]
42
2019-03-18T06:34:37.000Z
2022-03-24T07:08:57.000Z
sdk/python/pulumi_alicloud/hbr/get_backup_jobs.py
pulumi/pulumi-alicloud
9c34d84b4588a7c885c6bec1f03b5016e5a41683
[ "ECL-2.0", "Apache-2.0" ]
152
2019-04-15T21:03:44.000Z
2022-03-29T18:00:57.000Z
sdk/python/pulumi_alicloud/hbr/get_backup_jobs.py
pulumi/pulumi-alicloud
9c34d84b4588a7c885c6bec1f03b5016e5a41683
[ "ECL-2.0", "Apache-2.0" ]
3
2020-08-26T17:30:07.000Z
2021-07-05T01:37:45.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
36.713333
141
0.650263
644
5,507
5.295031
0.214286
0.060997
0.037537
0.070381
0.171261
0.080059
0.080059
0
0
0
0
0.001439
0.242782
5,507
149
142
36.959732
0.816307
0.133285
0
0.116071
1
0
0.149702
0.032794
0
0
0
0
0
1
0.098214
false
0
0.0625
0.0625
0.267857
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
a6b08c775b7b2475824f80a8fc46557292ab0d77
506
py
Python
tests/conftest.py
securemailbox/api
6e6c594c1e6588f15e2d78018074808dbe0ada57
[ "Apache-2.0" ]
2
2020-04-02T02:37:53.000Z
2020-06-11T04:45:06.000Z
tests/conftest.py
securemailbox/api
6e6c594c1e6588f15e2d78018074808dbe0ada57
[ "Apache-2.0" ]
28
2020-02-11T03:11:25.000Z
2020-06-11T01:49:22.000Z
tests/conftest.py
securemailbox/api
6e6c594c1e6588f15e2d78018074808dbe0ada57
[ "Apache-2.0" ]
null
null
null
import pytest import securemailbox from securemailbox.models import Message, Mailbox @pytest.fixture def client(): securemailbox.app.config["TESTING"] = True with securemailbox.app.test_client() as client: yield client # Force fixture to be used if not explicitly imported @pytest.fixture(autouse=T...
21.083333
66
0.735178
65
506
5.692308
0.630769
0.07027
0
0
0
0
0
0
0
0
0
0
0.187747
506
23
67
22
0.900243
0.262846
0
0
0
0
0.01897
0
0
0
0
0
0
1
0.153846
true
0
0.230769
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
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
a6c365cf6c521aa3c897c34e14be7483d8cd12a0
1,846
py
Python
users/migrations/0004_profile.py
david5010/sheliak
39d0cef25d4df0dd4cb8c5153b18be4eab1a0029
[ "MIT" ]
6
2022-02-24T00:04:24.000Z
2022-03-21T08:46:46.000Z
users/migrations/0004_profile.py
david5010/sheliak
39d0cef25d4df0dd4cb8c5153b18be4eab1a0029
[ "MIT" ]
null
null
null
users/migrations/0004_profile.py
david5010/sheliak
39d0cef25d4df0dd4cb8c5153b18be4eab1a0029
[ "MIT" ]
8
2022-02-24T00:07:32.000Z
2022-03-21T01:59:46.000Z
# Generated by Django 3.2.11 on 2022-02-06 16:03 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone import model_utils.fields import timezone_field.fields import uuid class Migration(migrations.Migration): dependencies = [ ...
45.02439
147
0.621885
198
1,846
5.676768
0.474747
0.064057
0.088968
0.106762
0.240214
0.217082
0.158363
0.094306
0.094306
0
0
0.027465
0.230769
1,846
40
148
46.15
0.764085
0.024919
0
0
1
0
0.102336
0.013904
0
0
0
0
0
1
0
false
0
0.205882
0
0.294118
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
a6ca293c9d16753c2a9c1ac455d47a6f3dec1401
392
py
Python
miniworld/model/spatial/__init__.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
5
2019-05-11T14:57:15.000Z
2021-07-05T00:35:25.000Z
miniworld/model/spatial/__init__.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
27
2017-03-17T07:11:02.000Z
2019-05-26T23:36:56.000Z
miniworld/model/spatial/__init__.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
6
2017-05-03T12:11:33.000Z
2020-04-03T11:44:27.000Z
# TODO: RENAME MODULE! import logging from miniworld.log import get_logger from miniworld.util import PathUtil _logger = None # TODO: BETTER WAY THAN LOG FUNCTION? def logger(): global _logger if _logger is None: _logger = get_logger("Spatial Backend") _logger.addHandler(logging.FileHandler...
21.777778
98
0.739796
51
392
5.45098
0.568627
0.093525
0
0
0
0
0
0
0
0
0
0
0.183673
392
17
99
23.058824
0.86875
0.142857
0
0
0
0
0.10241
0
0
0
0
0.058824
0
1
0.1
false
0
0.3
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
a6ce292a4977aea957e48be215ebaa74515a3808
1,713
py
Python
vkbottle/tests/test_exception_handling.py
delvinru/vkbottle
16f4cbd9b6603e58e9d82083fa452ffe2e7fbd93
[ "MIT" ]
null
null
null
vkbottle/tests/test_exception_handling.py
delvinru/vkbottle
16f4cbd9b6603e58e9d82083fa452ffe2e7fbd93
[ "MIT" ]
null
null
null
vkbottle/tests/test_exception_handling.py
delvinru/vkbottle
16f4cbd9b6603e58e9d82083fa452ffe2e7fbd93
[ "MIT" ]
1
2022-02-16T15:25:41.000Z
2022-02-16T15:25:41.000Z
import pytest from vkbottle import CodeException, ErrorHandler, swear def test_code_error(): class CodeError(CodeException): pass try: raise CodeError[1]() except CodeError[2]: assert False except CodeError[3, 4]: # type: ignore assert False except CodeError[1, 2...
23.465753
75
0.671337
210
1,713
5.295238
0.252381
0.118705
0.048561
0.055755
0.226619
0.226619
0.181655
0.181655
0.107914
0
0
0.015945
0.231173
1,713
72
76
23.791667
0.828398
0.022183
0
0.28
0
0
0.010772
0
0
0
0
0
0.2
1
0.1
false
0.08
0.04
0
0.26
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
a6ce2c48b405342f875064a4a2f03734f841e78b
1,269
py
Python
experimental/sql/simple.py
webmiche/iree-llvm-sandbox
7511f8c210c586b44fc47a836a9cbfaa438acaf0
[ "Apache-2.0" ]
null
null
null
experimental/sql/simple.py
webmiche/iree-llvm-sandbox
7511f8c210c586b44fc47a836a9cbfaa438acaf0
[ "Apache-2.0" ]
null
null
null
experimental/sql/simple.py
webmiche/iree-llvm-sandbox
7511f8c210c586b44fc47a836a9cbfaa438acaf0
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License v2.0 with LLVM Exceptions. # See https://llvm.org/LICENSE.txt for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception # This file contains a simple testcase, that defines a table and runs a selection query on it. import ibis import os import sys import p...
28.2
101
0.745469
197
1,269
4.700508
0.441624
0.048596
0.019438
0.049676
0.056156
0.056156
0.056156
0
0
0
0
0.009208
0.144208
1,269
44
102
28.840909
0.843462
0.449173
0
0.090909
0
0
0.085756
0
0
0
0
0
0
1
0
false
0
0.363636
0
0.363636
0.318182
0
0
0
null
0
0
0
0
0
0
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
a6ce2eb4ccd558a7106ea8591bdedada4526ade7
381
py
Python
RecentCounter.py
couyang24/Leetcode_way2master
fd90012ea6a41da701fbe378ef1b3e7045bb7d90
[ "Apache-2.0" ]
null
null
null
RecentCounter.py
couyang24/Leetcode_way2master
fd90012ea6a41da701fbe378ef1b3e7045bb7d90
[ "Apache-2.0" ]
6
2021-01-18T14:59:04.000Z
2021-02-15T21:34:33.000Z
RecentCounter.py
couyang24/leetcode
fd90012ea6a41da701fbe378ef1b3e7045bb7d90
[ "Apache-2.0" ]
null
null
null
class RecentCounter: def __init__(self): self.record = [] def ping(self, t: int) -> int: self.record.append(t) record = self.record.copy() count = 0 rm_list = [] for i in record: if i in range(t-3000, t+1): count += 1 else...
22.411765
39
0.467192
46
381
3.76087
0.543478
0.231214
0
0
0
0
0
0
0
0
0
0.031818
0.422572
381
16
40
23.8125
0.754545
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.285714
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
a6ce6749de8cedc773b1ea3833d86f9e1e6d4944
324
py
Python
pset_challenging_ext/exercises/p100.py
mottaquikarim/pydev-psets
9749e0d216ee0a5c586d0d3013ef481cc21dee27
[ "MIT" ]
5
2019-04-08T20:05:37.000Z
2019-12-04T20:48:45.000Z
pset_challenging_ext/exercises/p100.py
mottaquikarim/pydev-psets
9749e0d216ee0a5c586d0d3013ef481cc21dee27
[ "MIT" ]
8
2019-04-15T15:16:05.000Z
2022-02-12T10:33:32.000Z
pset_challenging_ext/exercises/p100.py
mottaquikarim/pydev-psets
9749e0d216ee0a5c586d0d3013ef481cc21dee27
[ "MIT" ]
2
2019-04-10T00:14:42.000Z
2020-02-26T20:35:21.000Z
""" Write a program to solve a classic ancient Chinese puzzle: """ """Question: Write a program to solve a classic ancient Chinese puzzle: We count 35 heads and 94 legs among the chickens and rabbits in a farm. How many rabbits and how many chickens do we have? Hint: Use for loop to iterate all possible solutions. ...
27
122
0.75
55
324
4.418182
0.636364
0.049383
0.106996
0.123457
0.395062
0.395062
0.395062
0.395062
0.395062
0.395062
0
0.015267
0.191358
324
11
123
29.454545
0.912214
0.179012
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
a6cfb3021f6c8e66e245f2674a8a1b2b84f40f99
1,072
py
Python
examples/django_app/tests/test_views.py
priyashengole/Chatterbot
49708c479226d6650a4cadf33a1bacd233c2ca0c
[ "BSD-3-Clause" ]
5
2021-03-21T06:26:02.000Z
2021-08-11T09:58:44.000Z
examples/django_app/tests/test_views.py
priyashengole/Chatterbot
49708c479226d6650a4cadf33a1bacd233c2ca0c
[ "BSD-3-Clause" ]
null
null
null
examples/django_app/tests/test_views.py
priyashengole/Chatterbot
49708c479226d6650a4cadf33a1bacd233c2ca0c
[ "BSD-3-Clause" ]
1
2020-05-23T09:51:30.000Z
2020-05-23T09:51:30.000Z
from django.test import TestCase from example_app.views import ChatterBotApiView class MockResponse(object): def __init__(self, pk): self.session = {'conversation_id': pk} class ViewTestCase(TestCase): def setUp(self): super(ViewTestCase, self).setUp() self.view = ChatterBotApiView...
28.972973
76
0.714552
118
1,072
6.254237
0.29661
0.113821
0.130081
0.089431
0.337398
0.275068
0.275068
0.222222
0.222222
0.222222
0
0.001156
0.193097
1,072
36
77
29.777778
0.852023
0
0
0.173913
0
0
0.041978
0
0
0
0
0
0.130435
1
0.217391
false
0
0.086957
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
1
0
0
0
0
0
0
0
1
a6d292b5151c8e18e798d9878149e438822e3099
160
py
Python
Day1/Chap1/Ex5.py
ssahn0806/kw-SW_Preparatory
1ebed10bfc664d16d2d71440547f61ab3577ab64
[ "MIT" ]
null
null
null
Day1/Chap1/Ex5.py
ssahn0806/kw-SW_Preparatory
1ebed10bfc664d16d2d71440547f61ab3577ab64
[ "MIT" ]
null
null
null
Day1/Chap1/Ex5.py
ssahn0806/kw-SW_Preparatory
1ebed10bfc664d16d2d71440547f61ab3577ab64
[ "MIT" ]
null
null
null
import os import turtle import time t = turtle.Pen() t.shape("turtle") t.width(10) t.forward(100) t.left(90) time.sleep(1) t.forward(100) os.system("Pause")
10.666667
18
0.7
30
160
3.733333
0.566667
0.142857
0.196429
0
0
0
0
0
0
0
0
0.078014
0.11875
160
15
18
10.666667
0.716312
0
0
0.181818
0
0
0.068323
0
0
0
0
0
0
1
0
false
0
0.272727
0
0.272727
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a6d3349994031ab7aaeebc772afadeb51c37f1e9
819
py
Python
autobuyfast/cars/migrations/0029_auto_20210905_0220.py
dark-codr/autouyfast
d0fa2dd6fc10a4a5497da71466916302ea8655f9
[ "MIT" ]
null
null
null
autobuyfast/cars/migrations/0029_auto_20210905_0220.py
dark-codr/autouyfast
d0fa2dd6fc10a4a5497da71466916302ea8655f9
[ "MIT" ]
1
2022-03-02T14:56:29.000Z
2022-03-02T14:56:29.000Z
autobuyfast/cars/migrations/0029_auto_20210905_0220.py
dark-codr/autouyfast
d0fa2dd6fc10a4a5497da71466916302ea8655f9
[ "MIT" ]
null
null
null
# Generated by Django 3.1.13 on 2021-09-05 01:20 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('cars', '0028_auto_20210...
30.333333
142
0.655678
95
819
5.494737
0.568421
0.045977
0.05364
0.084291
0.164751
0.164751
0
0
0
0
0
0.055644
0.23199
819
26
143
31.5
0.774245
0.056166
0
0.3
1
0
0.090791
0.029831
0
0
0
0
0
1
0
false
0
0.15
0
0.3
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
a6d73ed12bfaf051625c8c3f40b3c6b7406b513e
1,793
py
Python
release/api/views.py
fbrump/msh-python
8f3211d3ff12d0b070d7ace3f114c6e244d64b45
[ "MIT" ]
null
null
null
release/api/views.py
fbrump/msh-python
8f3211d3ff12d0b070d7ace3f114c6e244d64b45
[ "MIT" ]
null
null
null
release/api/views.py
fbrump/msh-python
8f3211d3ff12d0b070d7ace3f114c6e244d64b45
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # msh-python/release/api/views.py from django.http import HttpResponse, JsonResponse from django.views.decorators.csrf import csrf_exempt from rest_framework.renderers import JSONRenderer from rest_framework.parsers import JSONParser from rest_framework import mixins from rest_framework import ...
23.906667
52
0.711099
214
1,793
5.925234
0.336449
0.086751
0.134069
0.082808
0.226341
0.162461
0.162461
0.162461
0.162461
0.162461
0
0.00067
0.167875
1,793
75
53
23.906667
0.849196
0.260457
0
0.333333
0
0
0.015008
0
0
0
0
0
0
1
0.138889
false
0
0.222222
0
0.666667
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
0
0
0
1
0
0
1
a6d89172413387f308d847f46a5ea578e6d4ef31
753
py
Python
web/transiq/team/migrations/0079_auto_20180329_1130.py
manibhushan05/transiq
763fafb271ce07d13ac8ce575f2fee653cf39343
[ "Apache-2.0" ]
null
null
null
web/transiq/team/migrations/0079_auto_20180329_1130.py
manibhushan05/transiq
763fafb271ce07d13ac8ce575f2fee653cf39343
[ "Apache-2.0" ]
14
2020-06-05T23:06:45.000Z
2022-03-12T00:00:18.000Z
web/transiq/team/migrations/0079_auto_20180329_1130.py
manibhushan05/transiq
763fafb271ce07d13ac8ce575f2fee653cf39343
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2018-03-29 11:30 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('team', '0078_auto_20180328_1204'), ] operations = [ migrations.RenameModel( ...
26.892857
138
0.608234
71
753
6.197183
0.676056
0.095455
0.109091
0.127273
0
0
0
0
0
0
0
0.059783
0.266932
753
27
139
27.888889
0.737319
0.090305
0
0.25
1
0
0.271261
0.033724
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
a6dde0a86d21574139da3d1efce4d33ab90853a1
9,486
py
Python
models/VGG16_trained_on_Place365/vgg16_place365_keras.py
guozifeng91/numpy-weights-for-pretrained-CNNs
0570986a5cce5a841341d14b32517fd4fcfdc024
[ "MIT" ]
null
null
null
models/VGG16_trained_on_Place365/vgg16_place365_keras.py
guozifeng91/numpy-weights-for-pretrained-CNNs
0570986a5cce5a841341d14b32517fd4fcfdc024
[ "MIT" ]
null
null
null
models/VGG16_trained_on_Place365/vgg16_place365_keras.py
guozifeng91/numpy-weights-for-pretrained-CNNs
0570986a5cce5a841341d14b32517fd4fcfdc024
[ "MIT" ]
null
null
null
import keras # build VGG16 Place365 net based on the weight value and net architecture accessed from https://github.com/CSAILVision/places365 # the weight value is for caffe model and are parsed to npy files, the sequence are kept unchanged (channel first, BGR) def _build_net(): model = keras.Sequential() # ...
39.360996
128
0.462576
1,007
9,486
4.210526
0.186693
0.077358
0.125708
0.179245
0.667925
0.618396
0.587264
0.463679
0.448585
0.448585
0
0.05693
0.420409
9,486
241
129
39.360996
0.71426
0.111111
0
0.514286
0
0
0.085911
0
0
0
0
0
0
1
0.04
false
0
0.022857
0
0.085714
0.011429
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
a6de26216871065795b5b7ec53ecb77c0a4e4942
1,313
py
Python
main.py
JareBear12418/AutoNetworkLogin
d68ef2d918c31bfa49e9c5e0921903034d87ca26
[ "MIT" ]
null
null
null
main.py
JareBear12418/AutoNetworkLogin
d68ef2d918c31bfa49e9c5e0921903034d87ca26
[ "MIT" ]
null
null
null
main.py
JareBear12418/AutoNetworkLogin
d68ef2d918c31bfa49e9c5e0921903034d87ca26
[ "MIT" ]
null
null
null
import time import yaml from selenium import webdriver def main(): conf = yaml.safe_load(open('config.yml')) USERNAME: str = conf['USERNAME'] PASSWORD: str = conf['PASSWORD'] BROWSER: str = conf['BROWSER'] if USERNAME == 'yourusername' or PASSWORD == 'yourpassword': print('Set y...
36.472222
214
0.668698
156
1,313
5.512821
0.538462
0.046512
0.07907
0.088372
0.095349
0.04186
0.04186
0
0
0
0
0.076336
0.201828
1,313
35
215
37.514286
0.744275
0
0
0.129032
0
0.032258
0.364632
0.024257
0
0
0
0
0
1
0.032258
false
0.129032
0.096774
0
0.193548
0.064516
0
0
0
null
0
0
0
0
0
0
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
a6e5bdb34d091a567adddc14e86bdafd20d04947
53,246
py
Python
karlovaboardzatorMain.py
vincseize/MG
bceae7d11f6e93426f14b6f6596078a3f6104472
[ "MIT" ]
null
null
null
karlovaboardzatorMain.py
vincseize/MG
bceae7d11f6e93426f14b6f6596078a3f6104472
[ "MIT" ]
null
null
null
karlovaboardzatorMain.py
vincseize/MG
bceae7d11f6e93426f14b6f6596078a3f6104472
[ "MIT" ]
null
null
null
#!/usr/bin/env python # ################################################################################## # MG ILLUMINATION # # Author : cPOTTIER # # Date : 07-07-2016 ...
33.7
232
0.602036
5,808
53,246
5.362087
0.12655
0.011367
0.015027
0.009826
0.480911
0.390296
0.333622
0.278586
0.239315
0.223453
0
0.0169
0.163224
53,246
1,579
233
33.721343
0.682078
0.293412
0
0.367893
0
0
0.114205
0.028931
0
0
0
0.000633
0
0
null
null
0.018952
0.014493
null
null
0.046823
0
0
0
null
0
0
0
0
0
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
a6e9b64ebf89f7747641cac9670f46bce97b86d5
15,989
py
Python
scripts/old/join_compound_prt.py
thorunna/UDConverter
c37bb84fd43c8a19896835909789981c6417cb59
[ "Apache-2.0" ]
2
2021-04-28T15:19:53.000Z
2022-01-10T13:59:22.000Z
scripts/old/join_compound_prt.py
thorunna/UDConverter
c37bb84fd43c8a19896835909789981c6417cb59
[ "Apache-2.0" ]
null
null
null
scripts/old/join_compound_prt.py
thorunna/UDConverter
c37bb84fd43c8a19896835909789981c6417cb59
[ "Apache-2.0" ]
null
null
null
import re import sys import os ''' # TODO: tripartite verbs (verb is third node) in files: 1659.pislarsaga.bio-aut.conllu (3) 1745.klim.nar-fic.conllu (2) 1790.fimmbraedra.nar-sag.conllu (1) 1791.jonsteingrims.bio-aut.conllu (1) 1985.sagan.nar-fic.conllu (1) Hinrik Hafsteinsson 2019 Part of UniTre...
43.685792
135
0.568829
2,082
15,989
4.225744
0.134966
0.103319
0.092294
0.023187
0.676176
0.650943
0.637418
0.632871
0.626733
0.612526
0
0.013799
0.283883
15,989
365
136
43.805479
0.754585
0.328851
0
0.446809
0
0.035461
0.12363
0.090751
0
0
0
0.00274
0
1
0.06383
false
0.007092
0.021277
0
0.148936
0.014184
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
a6ee8822b04b21b7f73e7ccfc8bbb8838769706d
2,313
py
Python
api_yamdb/api/serializers.py
Xewus/YamDB-Final
70e531d397c2e708416734156b104e4bb32f4895
[ "BSD-2-Clause" ]
null
null
null
api_yamdb/api/serializers.py
Xewus/YamDB-Final
70e531d397c2e708416734156b104e4bb32f4895
[ "BSD-2-Clause" ]
null
null
null
api_yamdb/api/serializers.py
Xewus/YamDB-Final
70e531d397c2e708416734156b104e4bb32f4895
[ "BSD-2-Clause" ]
null
null
null
from datetime import datetime from django.db.models import Avg from rest_framework.relations import SlugRelatedField from rest_framework.serializers import (CurrentUserDefault, ModelSerializer, SerializerMethodField, ValidationError) from reviews.models import Comment, Rev...
32.125
80
0.61738
227
2,313
6.185022
0.370044
0.039886
0.039886
0.034188
0.126781
0.126781
0.094017
0.094017
0.094017
0
0
0.000592
0.26978
2,313
71
81
32.577465
0.830669
0
0
0.166667
0
0
0.1124
0
0
0
0
0
0
1
0.055556
false
0
0.111111
0.018519
0.518519
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
a6f60346a907a00957cfe6749394bef422ba2990
2,643
py
Python
clock/views.py
thiagobrez/Tracker
42dabef578cdf7b15214d0f2868e8ab237807ad6
[ "MIT" ]
null
null
null
clock/views.py
thiagobrez/Tracker
42dabef578cdf7b15214d0f2868e8ab237807ad6
[ "MIT" ]
null
null
null
clock/views.py
thiagobrez/Tracker
42dabef578cdf7b15214d0f2868e8ab237807ad6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib.auth import authenticate, login from django.contrib.auth.models import User from django.shortcuts import render, redirect from django.utils import timezone from clock.forms import SignUpForm, ProjectForm from clock.models import Project...
29.366667
85
0.669315
327
2,643
5.351682
0.195719
0.054857
0.086857
0.034286
0.372
0.302286
0.254857
0.174857
0.121143
0.121143
0
0.000929
0.185774
2,643
89
86
29.696629
0.812268
0.007946
0
0.423077
0
0
0.093511
0
0
0
0
0
0
0
null
null
0.025641
0.089744
null
null
0.012821
0
0
0
null
0
0
0
0
0
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
a6f7fa95396751bf03ddf7fadbef9071a84e83d9
41,794
py
Python
pulsar/core/lens.py
HawkCorrigan/pulsar
1658d4d6428209d4a72811f4d12719586988ea75
[ "BSD-3-Clause" ]
null
null
null
pulsar/core/lens.py
HawkCorrigan/pulsar
1658d4d6428209d4a72811f4d12719586988ea75
[ "BSD-3-Clause" ]
null
null
null
pulsar/core/lens.py
HawkCorrigan/pulsar
1658d4d6428209d4a72811f4d12719586988ea75
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python import re import random import urllib import operator from util import scanTokens, scanNgrams from Levenshtein import distance from random import choice LEXER_TOKENS = "TOKENS" LEXER_NGRAMS = "NGRAMS" OFS_TRANSITION = 3 def pickIndex(counts): total = sum(counts) dice = random.randint(1, t...
38.950606
111
0.53979
4,658
41,794
4.718119
0.106483
0.011467
0.009282
0.00637
0.39737
0.337262
0.299313
0.252582
0.224143
0.18897
0
0.005577
0.373618
41,794
1,072
112
38.98694
0.833913
0.086759
0
0.422481
0
0.001292
0.042673
0.001831
0
0
0
0.000933
0
0
null
null
0.003876
0.009044
null
null
0.031008
0
0
0
null
0
0
0
0
0
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
a6fd44e35db6be0b5eb9450f40d3c49baabc7d7d
949
py
Python
snapshot_queries/testing/pytest_plugin.py
cedar-team/snapshot-queries
e033d7f8cc221617e1922e913cae2f32b409faf6
[ "MIT" ]
null
null
null
snapshot_queries/testing/pytest_plugin.py
cedar-team/snapshot-queries
e033d7f8cc221617e1922e913cae2f32b409faf6
[ "MIT" ]
6
2022-03-30T16:19:01.000Z
2022-03-30T16:32:08.000Z
snapshot_queries/testing/pytest_plugin.py
cedar-team/snapshot-queries
e033d7f8cc221617e1922e913cae2f32b409faf6
[ "MIT" ]
1
2022-03-31T19:22:22.000Z
2022-03-31T19:22:22.000Z
import snapshot_queries.optional_dependencies if snapshot_queries.optional_dependencies.SNAPSHOTTEST_INSTALLED: from contextlib import contextmanager import pytest from snapshottest.pytest import PyTestSnapshotTest from .assert_queries_match_mixin import AssertQueriesMatchMixin class PyTestQuer...
35.148148
81
0.735511
95
949
7.073684
0.368421
0.049107
0.068452
0.104167
0
0
0
0
0
0
0
0
0.210748
949
26
82
36.5
0.897196
0
0
0
0
0
0
0
0
0
0
0
0.315789
1
0.157895
false
0
0.263158
0.052632
0.526316
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
470174818a48bf6ce0247816ece5e1ea9f5c8144
4,194
py
Python
Code/resnet.py
arp95/rcnn_object_detection
e0821cdde5753862d6ff738e8b09f5b95ba9ad1f
[ "MIT" ]
2
2020-08-08T07:34:52.000Z
2021-07-29T23:42:05.000Z
Code/resnet.py
arp95/rcnn_object_detection
e0821cdde5753862d6ff738e8b09f5b95ba9ad1f
[ "MIT" ]
null
null
null
Code/resnet.py
arp95/rcnn_object_detection
e0821cdde5753862d6ff738e8b09f5b95ba9ad1f
[ "MIT" ]
1
2020-05-16T18:35:10.000Z
2020-05-16T18:35:10.000Z
import numpy as np import torch import torchvision import torch.nn.functional as F from torch.utils.data import DataLoader from torchvision import transforms, models, datasets import matplotlib.pyplot as plt %matplotlib inline # Implementation of the ResNet-50 Architecture class ResidualBlock(torch.nn.Modu...
34.95
126
0.664521
607
4,194
4.461285
0.224053
0.051699
0.037666
0.054284
0.425037
0.355613
0.187223
0.155465
0.070901
0.070901
0
0.046591
0.227229
4,194
120
127
34.95
0.788954
0.120887
0
0.181818
0
0
0
0
0
0
0
0
0
0
null
null
0
0.090909
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
47082baa4e7989bb5b9aca7bfcf972c10b053741
1,640
py
Python
euler.py
Epitrochoid/biophys-class
622bc8c6cfd3e22abf2473115b878843545f29d3
[ "Zlib" ]
null
null
null
euler.py
Epitrochoid/biophys-class
622bc8c6cfd3e22abf2473115b878843545f29d3
[ "Zlib" ]
null
null
null
euler.py
Epitrochoid/biophys-class
622bc8c6cfd3e22abf2473115b878843545f29d3
[ "Zlib" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt # define constants g_l = 2.0 g_ca = 4.0 g_k = 8.0 e_l = -50.0 e_ca = 100.0 e_k = -70.0 tau = 0.1 v1 = -1.2 v2 = 18.0 v3 = 2.0 v4 = 30.0 cap = 20.0 # steady state functions def m_ss(v): return (1.0/2.0) * (1.0 + np.tanh((v - v1)/v2)) def n_ss(v): return (1.0/...
21.298701
80
0.628049
350
1,640
2.834286
0.271429
0.012097
0.012097
0.027218
0.114919
0.114919
0.114919
0.082661
0.082661
0.082661
0
0.088534
0.159756
1,640
76
81
21.578947
0.63135
0.098171
0
0
0
0
0.053742
0
0
0
0
0
0
1
0.122807
false
0
0.035088
0.122807
0.280702
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
47082ce9e469b71dd433d3cc99431608afdc8cec
12,059
py
Python
prepare_data.py
ondrejklejch/acoustic_punctuation
a58b79d838ca0cdd82186189be290289ed70b106
[ "Apache-2.0" ]
10
2020-02-12T18:35:27.000Z
2021-06-09T03:28:44.000Z
prepare_data.py
choko/acoustic_punctuation
a58b79d838ca0cdd82186189be290289ed70b106
[ "Apache-2.0" ]
2
2020-03-30T07:58:33.000Z
2020-05-09T02:12:09.000Z
prepare_data.py
choko/acoustic_punctuation
a58b79d838ca0cdd82186189be290289ed70b106
[ "Apache-2.0" ]
4
2019-10-08T07:35:35.000Z
2020-10-16T08:33:19.000Z
import h5py import kaldi_io import numpy as np from collections import defaultdict from config import get_config from fuel.datasets.hdf5 import H5PYDataset from lexicon import create_dictionary_from_lexicon, create_dictionary_from_punctuation_marks def get_uttids_from_text_file(path): uttids = set() with open...
43.222222
195
0.623518
1,437
12,059
4.954767
0.124565
0.058427
0.029494
0.025843
0.432303
0.321489
0.254073
0.240309
0.229354
0.148034
0
0.012198
0.272577
12,059
278
196
43.377698
0.799476
0.006054
0
0.258216
0
0
0.065676
0.009013
0
0
0
0
0
0
null
null
0.014085
0.032864
null
null
0.037559
0
0
0
null
0
0
0
0
0
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
47101f05f02766f88ec6f7f2f38dd2a79a508d4e
7,696
py
Python
script/balance_stream_weights.py
oliverwatts/snickery
6d7e0b48cbb21760089bbbe85f6d7bd206f89821
[ "Apache-2.0" ]
28
2018-06-26T02:57:45.000Z
2021-12-01T01:07:23.000Z
script/balance_stream_weights.py
oliverwatts/snickery
6d7e0b48cbb21760089bbbe85f6d7bd206f89821
[ "Apache-2.0" ]
1
2018-11-02T09:29:29.000Z
2018-11-02T10:20:28.000Z
script/balance_stream_weights.py
oliverwatts/snickery
6d7e0b48cbb21760089bbbe85f6d7bd206f89821
[ "Apache-2.0" ]
5
2018-12-21T08:05:06.000Z
2021-01-16T16:43:42.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ## Project: ## Author: Oliver Watts - owatts@staffmail.ed.ac.uk import sys import os import glob import re import timeit import math from argparse import ArgumentParser import numpy as np from synth_halfphone import Synthesiser import copy # import pylab if __name__...
33.903084
124
0.588617
961
7,696
4.566077
0.261186
0.031905
0.012762
0.017548
0.359161
0.329991
0.304011
0.287603
0.287603
0.271194
0
0.015434
0.275988
7,696
227
125
33.903084
0.772075
0.171907
0
0.342466
0
0
0.119936
0.021053
0
0
0
0.004405
0.006849
0
null
null
0
0.068493
null
null
0.191781
0
0
0
null
0
0
0
0
0
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
4712fd08313b612b844d6ece1a959125317b1b34
9,044
py
Python
usaspending_api/database_scripts/matview_generator/matview_sql_generator.py
Theyfeartruthfedgov2020/usaspending-api
579a981282302a0e6dc0f19bebf9d446d0a12e75
[ "CC0-1.0" ]
null
null
null
usaspending_api/database_scripts/matview_generator/matview_sql_generator.py
Theyfeartruthfedgov2020/usaspending-api
579a981282302a0e6dc0f19bebf9d446d0a12e75
[ "CC0-1.0" ]
null
null
null
usaspending_api/database_scripts/matview_generator/matview_sql_generator.py
Theyfeartruthfedgov2020/usaspending-api
579a981282302a0e6dc0f19bebf9d446d0a12e75
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 import argparse import glob import hashlib import os from shared_sql_generator import ( COMPONENT_DIR, generate_uid, HERE, ingest_json, make_indexes_sql, make_matview_refresh, make_modification_sql, make_stats_sql, split_indexes_chunks, TEMPLATE, ) # Usa...
34.128302
118
0.685648
1,175
9,044
4.902979
0.197447
0.069432
0.036452
0.015622
0.391599
0.317653
0.254817
0.193369
0.16386
0.117341
0
0.003901
0.206435
9,044
264
119
34.257576
0.798802
0.062472
0
0.191358
1
0
0.121058
0.00329
0
0
0
0
0
1
0.055556
false
0
0.030864
0
0.111111
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4716481bbd0431d8beee38613c06cbb5f7bf0cd1
822
py
Python
material/week1/py/w1e1d.py
mpambasange/MachineLearning
8b813345264513a57934317b01e1311628dc5b01
[ "MIT" ]
16
2016-09-01T08:50:59.000Z
2022-02-15T20:56:07.000Z
material/week1/py/w1e1d.py
olehermanse/INF3490-PythonAI
8b813345264513a57934317b01e1311628dc5b01
[ "MIT" ]
2
2016-10-20T09:36:19.000Z
2017-08-29T00:28:54.000Z
material/week1/py/w1e1d.py
olehermanse/INF3490-PythonAI
8b813345264513a57934317b01e1311628dc5b01
[ "MIT" ]
15
2016-10-31T12:30:37.000Z
2021-03-15T12:12:50.000Z
#!/usr/bin/env python3 import numpy as np import matplotlib.pyplot as plt import random def f(x): return -x**4 + 2 * x**3 + 2 * x**2 - x def exhaustive(function, start, stop, step): x = start best = (x, function(x)) while x < stop: y = function(x) if y > best[1]: best = (x,...
25.6875
70
0.599757
127
822
3.80315
0.409449
0.093168
0.142857
0.167702
0.128364
0
0
0
0
0
0
0.033281
0.23236
822
31
71
26.516129
0.732171
0.025547
0
0
0
0
0.04375
0
0
0
0
0
0
1
0.12
false
0
0.12
0.04
0.32
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
471b8e5515166730fbb412862998cac37508651d
394
py
Python
ckanext/__init__.py
keitaroinc/ckanext-visualize
eb53fd00b6a99efd9d8924543ec3bb22774ec083
[ "MIT" ]
13
2019-10-29T22:50:42.000Z
2021-12-13T09:31:33.000Z
ckanext/__init__.py
keitaroinc/ckanext-visualize
eb53fd00b6a99efd9d8924543ec3bb22774ec083
[ "MIT" ]
10
2019-11-04T00:01:09.000Z
2021-04-23T10:59:04.000Z
ckanext/__init__.py
keitaroinc/ckanext-visualize
eb53fd00b6a99efd9d8924543ec3bb22774ec083
[ "MIT" ]
6
2020-02-17T15:29:29.000Z
2021-04-01T15:55:00.000Z
# encoding: utf-8 """ Copyright (c) 2019 Keitaro AB Use of this source code is governed by an MIT license that can be found in the LICENSE file or at https://opensource.org/licenses/MIT. """ # this is a namespace package try: import pkg_resources pkg_resources.declare_namespace(__name__) except ImportError: ...
21.888889
54
0.751269
58
394
4.758621
0.793103
0.086957
0
0
0
0
0
0
0
0
0
0.015385
0.175127
394
17
55
23.176471
0.833846
0.532995
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
471f52f2f33824650411aa0f802cfadb11f387c5
179
py
Python
des050.py
LeonardoPereirajr/Curso_em_video_Python
9d8a97ba3389c8e86b37dfd089fab5d04adc146d
[ "MIT" ]
null
null
null
des050.py
LeonardoPereirajr/Curso_em_video_Python
9d8a97ba3389c8e86b37dfd089fab5d04adc146d
[ "MIT" ]
null
null
null
des050.py
LeonardoPereirajr/Curso_em_video_Python
9d8a97ba3389c8e86b37dfd089fab5d04adc146d
[ "MIT" ]
null
null
null
soma = 0 for c in range(0,6): c = int(input('Digite um numero : ')) if c%2==1 : soma = soma+c print(' A soma dos impares dara {}'.format(soma)) print('FIM ')
25.571429
50
0.541899
31
179
3.129032
0.709677
0
0
0
0
0
0
0
0
0
0
0.03876
0.27933
179
7
51
25.571429
0.713178
0
0
0
0
0
0.287356
0
0
0
0
0
0
1
0
false
0
0
0
0
0.285714
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
47215d1dcdc8fe290f39a9541fde0fa54188307f
6,325
py
Python
scenic/projects/vivit/configs/epic_kitchens/vivit_large_factorised_encoder.py
NielsRogge/scenic
4418bf4c6954fffe61d9bafc802981baa9440e49
[ "Apache-2.0" ]
1
2022-02-17T18:48:43.000Z
2022-02-17T18:48:43.000Z
scenic/projects/vivit/configs/epic_kitchens/vivit_large_factorised_encoder.py
NielsRogge/scenic
4418bf4c6954fffe61d9bafc802981baa9440e49
[ "Apache-2.0" ]
null
null
null
scenic/projects/vivit/configs/epic_kitchens/vivit_large_factorised_encoder.py
NielsRogge/scenic
4418bf4c6954fffe61d9bafc802981baa9440e49
[ "Apache-2.0" ]
null
null
null
r"""ViViT Factorised Encoder model for Epic Kitchens. """ from absl import logging import ml_collections EPIC_TRAIN_SIZE = 67217 EPIC_VALID_SIZE = 9668 def get_config(): """Returns the base experiment configuration.""" config = ml_collections.ConfigDict() config.experiment_name = 'vivit_large_factorised_enc...
39.53125
129
0.784348
856
6,325
5.508178
0.30257
0.082715
0.123012
0.092259
0.347826
0.22948
0.063203
0.022481
0.022481
0
0
0.021323
0.13249
6,325
159
130
39.779874
0.837981
0.142292
0
0
0
0
0.071469
0.025336
0
0
0
0
0
0
null
null
0
0.017699
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
47243b3e8295742da8d317aaf12c06c679cc0aca
972
py
Python
tests/trac/test-trac-0058.py
thorstenb/pyxb
634e86f61dfb73a2900f32fc3d819e9c25365a49
[ "Apache-2.0" ]
null
null
null
tests/trac/test-trac-0058.py
thorstenb/pyxb
634e86f61dfb73a2900f32fc3d819e9c25365a49
[ "Apache-2.0" ]
null
null
null
tests/trac/test-trac-0058.py
thorstenb/pyxb
634e86f61dfb73a2900f32fc3d819e9c25365a49
[ "Apache-2.0" ]
null
null
null
import pyxb.binding.generate import pyxb.binding.datatypes as xs import pyxb.binding.basis import pyxb.utils.domutils import os.path xsd=''' <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="iopt" nillable="true" type="xs:integer"/> </xs:schema> ''' #file('schema.xsd', 'w').write(xsd) code =...
27
98
0.696502
129
972
5.147287
0.511628
0.060241
0.076807
0.036145
0.075301
0.075301
0
0
0
0
0
0.017878
0.136831
972
35
99
27.771429
0.77354
0.078189
0
0
1
0.04
0.257559
0.024636
0
0
0
0
0.16
1
0.04
false
0
0.28
0
0.36
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
4727ec432d8a9e9863602a7ee35cae1cb0d9b01d
1,862
py
Python
getHostsPerf.py
yungbyr/jri-spb
63b69ef7e842419d8346930b982b385224308a88
[ "Beerware" ]
null
null
null
getHostsPerf.py
yungbyr/jri-spb
63b69ef7e842419d8346930b982b385224308a88
[ "Beerware" ]
null
null
null
getHostsPerf.py
yungbyr/jri-spb
63b69ef7e842419d8346930b982b385224308a88
[ "Beerware" ]
null
null
null
#!/bin/env python import os import sys from XenServer import XenServer from GELF import GELF import traceback try: xs_session = XenServer().make_session() pool = xs_session.xenapi.pool.get_all()[0] pool_uuid = xs_session.xenapi.pool.get_uuid(pool) hosts = xs_session.xenapi.host.get_all() for ho...
32.103448
80
0.529538
210
1,862
4.452381
0.366667
0.048128
0.064171
0.048128
0.094118
0
0
0
0
0
0
0.007621
0.365736
1,862
57
81
32.666667
0.784081
0.089151
0
0.105263
0
0
0.069272
0
0
0
0
0
0
0
null
null
0
0.131579
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
472f5b894c74ee5cb53c8c6e4af3b516896e2691
2,682
py
Python
pyethapp/console_service.py
heikoheiko/pyethapp
17a560abe8f8742bf5e30fa8f7e5495faf3cb101
[ "BSD-3-Clause" ]
48
2015-12-23T14:38:14.000Z
2022-01-19T06:01:57.000Z
pyethapp/console_service.py
WEI-HE/pyethapp
17a560abe8f8742bf5e30fa8f7e5495faf3cb101
[ "BSD-3-Clause" ]
2
2016-05-08T02:27:47.000Z
2017-03-06T23:37:47.000Z
pyethapp/console_service.py
WEI-HE/pyethapp
17a560abe8f8742bf5e30fa8f7e5495faf3cb101
[ "BSD-3-Clause" ]
27
2015-04-05T05:26:14.000Z
2022-02-05T16:43:20.000Z
""" Essential parts borrowed from https://github.com/ipython/ipython/pull/1654 """ import signal from devp2p.service import BaseService import gevent from gevent.event import Event import IPython import IPython.core.shellapp from IPython.lib.inputhook import inputhook_manager, stdin_ready from ethereum import slogging ...
27.9375
84
0.637211
316
2,682
5.291139
0.424051
0.02512
0.061005
0.028708
0.035885
0
0
0
0
0
0
0.005598
0.267338
2,682
95
85
28.231579
0.845293
0.024609
0
0
0
0
0.044568
0
0
0
0
0
0
0
null
null
0.018868
0.169811
null
null
0.037736
0
0
0
null
0
0
0
0
0
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
472fb90bf8e9c1984e67a20df2a05e17dc5e6ff0
670
py
Python
adventure/migrations/0008_auto_20160320_2237.py
matthew-macgregor/eamon
e59d14e790fd8e95f5f1a91d1965f549c2b673ba
[ "MIT" ]
22
2016-03-22T07:28:42.000Z
2022-02-12T16:03:17.000Z
adventure/migrations/0008_auto_20160320_2237.py
matthew-macgregor/eamon
e59d14e790fd8e95f5f1a91d1965f549c2b673ba
[ "MIT" ]
103
2017-04-14T23:19:19.000Z
2022-01-27T03:05:36.000Z
adventure/migrations/0008_auto_20160320_2237.py
matthew-macgregor/eamon
e59d14e790fd8e95f5f1a91d1965f549c2b673ba
[ "MIT" ]
7
2019-04-09T16:12:10.000Z
2021-12-15T17:09:32.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.2 on 2016-03-21 05:37 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('adventure', '0007_auto_20160306_0055'), ] operations = [ migrations.RenameFi...
25.769231
127
0.604478
79
670
4.924051
0.734177
0.046272
0.046272
0
0
0
0
0
0
0
0
0.066806
0.285075
670
25
128
26.8
0.745303
0.1
0
0.111111
1
0
0.218333
0.038333
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
5b259cabbea070c2cb0e3c57684d6e4cf99916c1
1,069
py
Python
src/advanced_plot/vertical_bar.py
ikedaosushi/advanced-plot
8a2ef3f0fc7921cdfe990fdf1e2044af664dc7b0
[ "MIT" ]
null
null
null
src/advanced_plot/vertical_bar.py
ikedaosushi/advanced-plot
8a2ef3f0fc7921cdfe990fdf1e2044af664dc7b0
[ "MIT" ]
null
null
null
src/advanced_plot/vertical_bar.py
ikedaosushi/advanced-plot
8a2ef3f0fc7921cdfe990fdf1e2044af664dc7b0
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import pandas as pd import seaborn as sns def vertical_bar(data: pd.DataFrame, label: str, value: str, ax=None, ratio=True, fontsize=14): if ax is None: n = data.shape[0] fig = plt.figure(figsize=(16, 1 * n)) ax = fig.add_subplot(1, 1, 1) labels = getatt...
32.393939
95
0.614593
163
1,069
3.95092
0.509202
0.006211
0.037267
0
0
0
0
0
0
0
0
0.017136
0.235734
1,069
33
96
32.393939
0.771114
0.024322
0
0
0
0
0.050864
0
0
0
0
0.030303
0
1
0.038462
false
0
0.115385
0
0.192308
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
5b2da810c7adee849036ab5f31a31b82ac508c08
5,346
py
Python
src/addnn/node/proto/neural_network_pb2.py
MatthiasJReisinger/addnn
1d68648e81faf478cfb1f7d9a3f944a014fa3867
[ "MIT" ]
4
2022-01-25T23:09:24.000Z
2022-03-30T20:57:18.000Z
src/addnn/node/proto/neural_network_pb2.py
MatthiasJReisinger/addnn
1d68648e81faf478cfb1f7d9a3f944a014fa3867
[ "MIT" ]
null
null
null
src/addnn/node/proto/neural_network_pb2.py
MatthiasJReisinger/addnn
1d68648e81faf478cfb1f7d9a3f944a014fa3867
[ "MIT" ]
1
2022-01-25T23:08:50.000Z
2022-01-25T23:08:50.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: addnn/node/proto/neural_network.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflec...
35.403974
467
0.770857
633
5,346
6.194313
0.225908
0.041316
0.072941
0.061974
0.564652
0.541699
0.451926
0.425402
0.41571
0.401173
0
0.026776
0.112795
5,346
150
468
35.64
0.799916
0.071642
0
0.544715
1
0.00813
0.22036
0.176732
0
0
0
0
0
1
0
false
0
0.03252
0
0.03252
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
5b2ff50acd81015198f76d11e3cd2e26119bee9b
990
py
Python
templates/event-source.py
mediatemple/ReC2
c4074050cad99ddc7b0190cbbc278e0d37c361c7
[ "MIT" ]
3
2016-12-17T02:19:36.000Z
2017-03-20T05:22:37.000Z
templates/event-source.py
mediatemple/ReC2
c4074050cad99ddc7b0190cbbc278e0d37c361c7
[ "MIT" ]
null
null
null
templates/event-source.py
mediatemple/ReC2
c4074050cad99ddc7b0190cbbc278e0d37c361c7
[ "MIT" ]
2
2016-07-29T22:40:11.000Z
2019-09-09T17:46:29.000Z
#!/usr/bin/env python from troposphere import Template, Output, GetAtt, Parameter, Ref, events, awslambda t = Template() lambda_arn = t.add_parameter(Parameter( 'LambdaArn', Type='String', Description='Lambda Arn' )) rule = t.add_resource( events.Rule( "ReC2Rule", Targets=[events.Tar...
20.204082
83
0.588889
98
990
5.785714
0.530612
0.063492
0.024691
0
0
0
0
0
0
0
0
0.008415
0.279798
990
48
84
20.625
0.786816
0.020202
0
0.05
0
0
0.178535
0.021672
0
0
0
0
0
0
null
null
0
0.025
null
null
0.025
0
0
0
null
0
0
0
0
0
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
5b305aaea3f5ffab82ca7d9b11d0a932e9ea8b70
3,716
py
Python
errorguimonitor/report_retriever.py
imalkevich/errorguimonitor
73280bd81027949a11e3facd60a2fb41c2c4a1d1
[ "MIT" ]
null
null
null
errorguimonitor/report_retriever.py
imalkevich/errorguimonitor
73280bd81027949a11e3facd60a2fb41c2c4a1d1
[ "MIT" ]
null
null
null
errorguimonitor/report_retriever.py
imalkevich/errorguimonitor
73280bd81027949a11e3facd60a2fb41c2c4a1d1
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Report retriever module. Grab HTML from the url provided. """ import random import requests from urllib.parse import quote as url_quote from pyquery import PyQuery as pq USER_AGENTS = ('Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:11.0) Gecko/20100101 Firefox/11.0', 'Mo...
39.531915
134
0.640743
514
3,716
4.490272
0.373541
0.024263
0.033362
0.02773
0.230936
0.213605
0.213605
0.19714
0.157279
0.157279
0
0.041003
0.205867
3,716
93
135
39.956989
0.741105
0.051399
0
0
0
0.140625
0.380763
0.155948
0
0
0
0
0
1
0.046875
false
0.078125
0.0625
0
0.15625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
5b3441a35ce26d50d34036f034d95f41123e550e
3,564
py
Python
003-longest-substring-without-repeating-characters.py
mvj3/leetcode
3111199beeaefbb3a74173e783ed21c9e53ab203
[ "MIT" ]
null
null
null
003-longest-substring-without-repeating-characters.py
mvj3/leetcode
3111199beeaefbb3a74173e783ed21c9e53ab203
[ "MIT" ]
null
null
null
003-longest-substring-without-repeating-characters.py
mvj3/leetcode
3111199beeaefbb3a74173e783ed21c9e53ab203
[ "MIT" ]
null
null
null
""" Question: Longest Substring Without Repeating Characters Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the length is 3. For "bbbbb" the longest substring is "b", with the len...
34.601942
263
0.614478
438
3,564
4.83105
0.283105
0.030246
0.10775
0.10397
0.172495
0.127599
0.05104
0.05104
0.05104
0.05104
0
0.007874
0.287318
3,564
102
264
34.941176
0.825197
0.080808
0
0.105263
0
0
0.035517
0
0
0
0
0
0.122807
0
null
null
0
0
null
null
0.017544
0
0
0
null
0
0
0
0
0
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
5b3cf373d640df91c859693048fae4d02399c861
2,848
py
Python
mqtt/mqtt.py
luchosr/dht11Streams
f51922257c4aa4703556f546e43cf3a3219d203f
[ "Apache-2.0" ]
1
2020-10-11T03:04:48.000Z
2020-10-11T03:04:48.000Z
mqtt/mqtt.py
luchosr/dht11Streams
f51922257c4aa4703556f546e43cf3a3219d203f
[ "Apache-2.0" ]
null
null
null
mqtt/mqtt.py
luchosr/dht11Streams
f51922257c4aa4703556f546e43cf3a3219d203f
[ "Apache-2.0" ]
1
2020-10-11T11:48:21.000Z
2020-10-11T11:48:21.000Z
from sense_hat import SenseHat #from collections import OrderedDict import paho.mqtt.client as mqttClient import time import config import json sense=SenseHat() sense.clear() def on_connect(client, userdata, flags, rc): if rc == 0: print("Connected to MQTT Broker") global Connected ...
27.921569
159
0.554424
304
2,848
5.042763
0.3125
0.058708
0.039139
0.017613
0
0
0
0
0
0
0
0.001958
0.282654
2,848
101
160
28.19802
0.748409
0.08427
0
0
0
0
0.147149
0.059322
0
0
0
0
0
1
0.016949
false
0.101695
0.084746
0
0.101695
0.033898
0
0
0
null
0
0
0
0
0
0
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
5b4664424009b5bcedec6cac5e139fe193b9a090
6,777
py
Python
train_bayes_nn.py
afcarl/Fall2017_Individual_Study
620dbeaa557105a7444fa01e6d78e4e59c646eac
[ "MIT" ]
1
2019-04-22T16:42:09.000Z
2019-04-22T16:42:09.000Z
train_bayes_nn.py
afcarl/Fall2017_Individual_Study
620dbeaa557105a7444fa01e6d78e4e59c646eac
[ "MIT" ]
null
null
null
train_bayes_nn.py
afcarl/Fall2017_Individual_Study
620dbeaa557105a7444fa01e6d78e4e59c646eac
[ "MIT" ]
null
null
null
import os from os.path import join as pjoin import cPickle as cp import numpy as np import tensorflow as tf from sklearn.metrics import accuracy_score from models.bnn import BNN # command line arguments flags = tf.flags flags.DEFINE_integer("batchSize", 128, "batch size.") flags.DEFINE_integer("nEpochs", 1500, "numb...
42.892405
231
0.645418
848
6,777
4.897406
0.258255
0.069347
0.060197
0.03034
0.191669
0.175295
0.175295
0.148808
0.134842
0.102576
0
0.011392
0.235798
6,777
157
232
43.165605
0.7905
0.107422
0
0.041667
0
0
0.153936
0.022418
0.010417
0
0
0
0
0
null
null
0
0.072917
null
null
0.072917
0
0
0
null
0
0
0
0
0
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
5b59e6ee04f97441e3d69e0a51c1f84e9553c272
4,233
py
Python
acl18/layers.py
tzshi/mh4-parser-acl18
20234703d6a2824fb6f76d45499db0a6ec6e27fb
[ "MIT" ]
4
2018-08-22T13:54:38.000Z
2021-05-16T16:22:36.000Z
acl18/layers.py
tzshi/mh4-parser-acl18
20234703d6a2824fb6f76d45499db0a6ec6e27fb
[ "MIT" ]
null
null
null
acl18/layers.py
tzshi/mh4-parser-acl18
20234703d6a2824fb6f76d45499db0a6ec6e27fb
[ "MIT" ]
1
2019-05-19T16:59:20.000Z
2019-05-19T16:59:20.000Z
#!/usr/bin/env python # encoding: utf-8 from dynet import parameter, transpose, dropout, rectify from dynet import layer_norm, affine_transform from dynet import concatenate, zeroes, dot_product from dynet import GlorotInitializer, ConstInitializer, SaxeInitializer import math class Dense(object): def __init__(...
29.601399
110
0.613749
534
4,233
4.719101
0.149813
0.056746
0.066667
0.03373
0.453175
0.426984
0.327778
0.300794
0.239683
0.239683
0
0.007069
0.264824
4,233
142
111
29.809859
0.802699
0.008505
0
0.358491
0
0
0
0
0
0
0
0
0
1
0.226415
false
0
0.04717
0.066038
0.490566
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
5b5aa95c7ad2759e3e5ddaf4a2bed48b5f164af1
222
py
Python
palindrome_number.py
I8PI/Blueberry
4b21fa170614cc15810e5aff6e8f6c0520ade078
[ "MIT" ]
1
2020-02-27T09:41:33.000Z
2020-02-27T09:41:33.000Z
palindrome_number.py
I8PI/Blueberry
4b21fa170614cc15810e5aff6e8f6c0520ade078
[ "MIT" ]
null
null
null
palindrome_number.py
I8PI/Blueberry
4b21fa170614cc15810e5aff6e8f6c0520ade078
[ "MIT" ]
null
null
null
n=int(input("enter the number: ")) temp=n rev=0 while n>0: dig=n%10 rev=rev*10+dig n=n//10 if temp==rev: print ("number is a palindrome", sep='a') else: print("number is not a palindrome")
17.076923
46
0.576577
40
222
3.2
0.5
0.0625
0.203125
0
0
0
0
0
0
0
0
0.04878
0.261261
222
12
47
18.5
0.731707
0
0
0
0
0
0.320574
0
0
0
0
0
0
1
0
false
0
0
0
0
0.181818
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5b5d9409fdb39d2207c6932a117449e41deba2c3
15,427
py
Python
percolation/text/ks.py
ttm/percolate
cfdf5380c8d155424ab97bdab85edde8b6f0ec9f
[ "MIT" ]
1
2020-06-11T01:34:25.000Z
2020-06-11T01:34:25.000Z
percolation/text/ks.py
ttm/percolate
cfdf5380c8d155424ab97bdab85edde8b6f0ec9f
[ "MIT" ]
null
null
null
percolation/text/ks.py
ttm/percolate
cfdf5380c8d155424ab97bdab85edde8b6f0ec9f
[ "MIT" ]
null
null
null
__doc__="routines for selected Kolmogorov-Smirnov related statistics on text analysis" import numbers def ksComparisons(sectors_analysis): multigroup_measures=[] isnot_numeric_measures=[] detached_measures=[] ks_measures=P.utils.nestedDict() for measure_domain in sectors_analysis["peripherals"]: ...
82.497326
251
0.652168
1,580
15,427
6.036709
0.086076
0.056616
0.062906
0.045293
0.697316
0.572447
0.443175
0.366848
0.244391
0.204131
0
0.002126
0.237765
15,427
186
252
82.94086
0.808997
0
0
0.066667
0
0.006061
0.126239
0.003259
0
0
0
0
0
0
null
null
0
0.006061
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
5b67f1793b6c11e57fe44b1e696b1c4e3fffbe2b
343
py
Python
core/forms.py
olunx/xTrade
6d9c7651c46d8d53c4a6998b76f372802745c1f0
[ "Apache-2.0" ]
null
null
null
core/forms.py
olunx/xTrade
6d9c7651c46d8d53c4a6998b76f372802745c1f0
[ "Apache-2.0" ]
null
null
null
core/forms.py
olunx/xTrade
6d9c7651c46d8d53c4a6998b76f372802745c1f0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = 'olunx' from django.forms import ModelForm from core.models import ProductItem class ProductItemForm(ModelForm): class Meta: model = ProductItem fields = ['income_url', 'title', 'content', 'images', 'images_checked', 'purchasing_location', 'purchasing_price',...
28.583333
145
0.705539
36
343
6.472222
0.777778
0
0
0
0
0
0
0
0
0
0
0.003484
0.163265
343
12
145
28.583333
0.808362
0.061224
0
0
0
0
0.314642
0
0
0
0
0
0
1
0
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
5b6bb41cad09b43e1affc7f6d78a3d1d1f98f54b
567
py
Python
realtors/models.py
TonyKioko/PropertySasa
58182174e2ac3caacf2cc6623d184d165b20c70c
[ "MIT" ]
null
null
null
realtors/models.py
TonyKioko/PropertySasa
58182174e2ac3caacf2cc6623d184d165b20c70c
[ "MIT" ]
null
null
null
realtors/models.py
TonyKioko/PropertySasa
58182174e2ac3caacf2cc6623d184d165b20c70c
[ "MIT" ]
null
null
null
from django.db import models from datetime import datetime # Create your models here class Realtor(models.Model): name = models.CharField(max_length=200) photo = models.ImageField(upload_to='photos/%Y/%m/%d/',blank=True) description = models.TextField(max_length=400,blank=True) phone = models.Positive...
33.352941
70
0.742504
76
567
5.407895
0.644737
0.087591
0
0
0
0
0
0
0
0
0
0.016529
0.146384
567
16
71
35.4375
0.832645
0.040564
0
0
0
0
0.02952
0
0
0
0
0
0
1
0.083333
false
0
0.166667
0.083333
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
0
1
0
0
1
5b6d0b9a2cc4d233d101441bb10f47418da9b63d
472
py
Python
cookies/resources/set.py
ziransun/wpt
ab8f451eb39eb198584d547f5d965ef54df2a86a
[ "BSD-3-Clause" ]
8
2019-04-09T21:13:05.000Z
2021-11-23T17:25:18.000Z
cookies/resources/set.py
ziransun/wpt
ab8f451eb39eb198584d547f5d965ef54df2a86a
[ "BSD-3-Clause" ]
21
2021-03-31T19:48:22.000Z
2022-03-12T00:24:53.000Z
cookies/resources/set.py
ziransun/wpt
ab8f451eb39eb198584d547f5d965ef54df2a86a
[ "BSD-3-Clause" ]
11
2019-04-12T01:20:16.000Z
2021-11-23T17:25:02.000Z
import helpers import urllib def main(request, response): """Respond to `/cookie/set?{cookie}` by echoing `{cookie}` as a `Set-Cookie` header.""" headers = helpers.setNoCacheAndCORSHeaders(request, response) # Cookies may require whitespace (e.g. in the `Expires` attribute), so the # query string shou...
33.714286
91
0.699153
59
472
5.576271
0.694915
0.082067
0
0
0
0
0
0
0
0
0
0
0.167373
472
13
92
36.307692
0.83715
0.396186
0
0
0
0
0.097122
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
5b6eeef2c71aa760c9baadb4c5a6e2140938fb6a
4,992
py
Python
iqa_common/executor/command_base.py
fgiorgetti/qpid-dispatch-tests
164c609d28db87692eed53d5361aa1ee5c97375c
[ "Apache-2.0" ]
1
2020-12-21T14:06:52.000Z
2020-12-21T14:06:52.000Z
iqa_common/executor/command_base.py
fgiorgetti/qpid-dispatch-tests
164c609d28db87692eed53d5361aa1ee5c97375c
[ "Apache-2.0" ]
6
2018-10-19T17:04:50.000Z
2019-05-20T19:54:40.000Z
iqa_common/executor/command_base.py
fgiorgetti/qpid-dispatch-tests
164c609d28db87692eed53d5361aa1ee5c97375c
[ "Apache-2.0" ]
1
2018-09-19T13:43:35.000Z
2018-09-19T13:43:35.000Z
""" Provides representation for Commands that can be executed against Executor instances. """ class Command(object): """ Represents a command that can be executed against different executors, behaving similarly across them. """ def __init__(self, args: list, stdout: bool=False, stderr: bool=False,...
37.253731
108
0.64984
609
4,992
5.180624
0.206897
0.026624
0.022821
0.024089
0.374326
0.323613
0.260856
0.238669
0.238669
0.206339
0
0.000565
0.290865
4,992
133
109
37.533835
0.890678
0.532652
0
0.051282
0
0
0.002902
0
0
0
0
0
0
1
0.282051
false
0
0
0.025641
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
1
0
0
0
0
0
0
0
1
5b761dac9e8c8e3725ba145eacfb8d3f0a3908ed
4,914
py
Python
srcSim/model_neuronmodels.py
Olimaol/BOLDpaper2021
a5aaa7f69b6938b4c7b46446ce73e2967c08bbf6
[ "MIT" ]
1
2021-11-02T18:55:22.000Z
2021-11-02T18:55:22.000Z
srcSim/model_neuronmodels.py
hamkerlab/Maith2021_ANNarchyBOLDmonitor
e50af332703ee257a0cd8e30437cdfa4f44893aa
[ "MIT" ]
null
null
null
srcSim/model_neuronmodels.py
hamkerlab/Maith2021_ANNarchyBOLDmonitor
e50af332703ee257a0cd8e30437cdfa4f44893aa
[ "MIT" ]
null
null
null
from ANNarchy import * from ANNarchy.extensions.bold.PredefinedModels import balloon_two_inputs from ANNarchy.extensions.bold import BoldModel from parameters import params, rng setup(dt=params['dt']) setup(num_threads=params['num_threads']) setup(seed=params['seed']) Constant('RS_v_r',params['RS_v_r']) Constant('FS_v...
32.328947
132
0.47558
576
4,914
3.809028
0.178819
0.011851
0.025524
0.016408
0.52051
0.507748
0.507748
0.507748
0.507748
0.451231
0
0.018226
0.330077
4,914
151
133
32.543046
0.648238
0.012007
0
0.529851
0
0.014925
0.763193
0.01364
0
0
0
0
0
1
0
false
0
0.029851
0
0.029851
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
5b7677628f641cd87d475d7900b08a0f1f9a0cc8
2,641
py
Python
tests/domain/test_Instrument_perform.py
josiah-wolf-oberholtzer/tloen
731e57f2a0634d5e472c5878ff5b9cc7b4d84974
[ "MIT" ]
3
2020-02-09T09:29:45.000Z
2021-12-29T01:37:45.000Z
tests/domain/test_Instrument_perform.py
josiah-wolf-oberholtzer/tloen
731e57f2a0634d5e472c5878ff5b9cc7b4d84974
[ "MIT" ]
null
null
null
tests/domain/test_Instrument_perform.py
josiah-wolf-oberholtzer/tloen
731e57f2a0634d5e472c5878ff5b9cc7b4d84974
[ "MIT" ]
1
2020-12-12T22:29:48.000Z
2020-12-12T22:29:48.000Z
import asyncio import pytest from supriya.assets.synthdefs import default from uqbar.strings import normalize from tloen.domain import Application, Instrument from tloen.midi import NoteOnMessage @pytest.fixture async def application(): application = Application() context = await application.add_context(nam...
37.728571
97
0.595608
330
2,641
4.733333
0.254545
0.019206
0.03073
0.026889
0.689501
0.669014
0.669014
0.669014
0.669014
0.653009
0
0.078198
0.268838
2,641
69
98
38.275362
0.730709
0
0
0.317073
0
0
0.023567
0
0
0
0
0
0.097561
1
0
false
0
0.146341
0
0.146341
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
5b784884f3f3becd440432e2e673aa3c849de8b5
915
py
Python
tests/test_webhook.py
unfoldingWord-dev/door43-catalog-job-handler
d08ac8d6b31fb16063c103113cf338b624f10257
[ "MIT" ]
null
null
null
tests/test_webhook.py
unfoldingWord-dev/door43-catalog-job-handler
d08ac8d6b31fb16063c103113cf338b624f10257
[ "MIT" ]
null
null
null
tests/test_webhook.py
unfoldingWord-dev/door43-catalog-job-handler
d08ac8d6b31fb16063c103113cf338b624f10257
[ "MIT" ]
null
null
null
import json from unittest import TestCase, skip from unittest.mock import patch from app_settings.app_settings import AppSettings from rq_settings import prefix, webhook_queue_name from webhook import process_webhook_job def my_get_current_job(): class Result: id = 12345 origin = webhook_queue_na...
27.727273
77
0.734426
123
915
5.195122
0.487805
0.062598
0.081377
0.046948
0
0
0
0
0
0
0
0.006821
0.198907
915
32
78
28.59375
0.864939
0.056831
0
0
0
0
0.070848
0.068525
0
0
0
0
0.045455
1
0.181818
false
0
0.272727
0
0.727273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
5b81b6e72801fe7e0ba9d0279ad1862ad020abe7
4,286
py
Python
aldryn_accounts/utils.py
conformist-mw/aldryn-accounts
e4bd60354547945a8e80cc692c0080582dd0d846
[ "MIT" ]
null
null
null
aldryn_accounts/utils.py
conformist-mw/aldryn-accounts
e4bd60354547945a8e80cc692c0080582dd0d846
[ "MIT" ]
1
2019-05-29T03:49:39.000Z
2019-05-29T09:40:04.000Z
aldryn_accounts/utils.py
conformist-mw/aldryn-accounts
e4bd60354547945a8e80cc692c0080582dd0d846
[ "MIT" ]
6
2019-03-05T15:19:26.000Z
2021-12-16T20:50:21.000Z
# -*- coding: utf-8 -*- import hashlib import logging import os import uuid import importlib from django.conf import settings from django.contrib.auth.models import User from django.utils.crypto import random import pygeoip logger = logging.getLogger('aldryn_accounts') def user_display(user, fallback_to_username=...
34.564516
173
0.716052
596
4,286
4.92953
0.261745
0.047651
0.052417
0.049013
0.408441
0.37951
0.35228
0.275698
0.223962
0.223962
0
0.00462
0.192021
4,286
123
174
34.845528
0.843777
0.130191
0
0.209302
0
0
0.052788
0
0
0
0
0.00813
0
1
0.116279
false
0.046512
0.174419
0.023256
0.55814
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
5b88727c1bb9ddfbd158eac61ace6a98bdd56aa2
1,294
py
Python
ParabuildScripts/coverageScriptTest.py
FusionBox2/MAF2
b576955f4f6b954467021f12baedfebcaf79a382
[ "Apache-2.0" ]
1
2018-01-23T09:13:40.000Z
2018-01-23T09:13:40.000Z
ParabuildScripts/coverageScriptTest.py
gradicosmo/MAF2
86ddf1f52a2de4479c09fd3f43dc321ff412af42
[ "Apache-2.0" ]
null
null
null
ParabuildScripts/coverageScriptTest.py
gradicosmo/MAF2
86ddf1f52a2de4479c09fd3f43dc321ff412af42
[ "Apache-2.0" ]
3
2020-09-24T16:04:53.000Z
2020-09-24T16:50:30.000Z
#----------------------------------------------------------------------------- # Heuristic for coverage calculation # author: Stefano Perticoni #----------------------------------------------------------------------------- import coverageScript import os import sys, string import unittest import urllib, urllib2 cla...
29.409091
82
0.621329
121
1,294
6.578512
0.520661
0.060302
0.128141
0.095477
0.226131
0.226131
0.226131
0.226131
0.226131
0.226131
0
0.013699
0.153787
1,294
43
83
30.093023
0.713242
0.166924
0
0.172414
0
0
0.136872
0
0
0
0
0
0
0
null
null
0
0.172414
null
null
0.137931
0
0
0
null
0
0
0
0
0
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
5b9656355bf2915fa910a51fa152a1040b905388
1,529
py
Python
ore/urls.py
lukegb/Ore-python
1d1c73795406fa52ae969726feb89f7aedbc4afc
[ "MIT" ]
1
2016-05-24T14:49:42.000Z
2016-05-24T14:49:42.000Z
ore/urls.py
gratimax/ore-old
1d1c73795406fa52ae969726feb89f7aedbc4afc
[ "MIT" ]
null
null
null
ore/urls.py
gratimax/ore-old
1d1c73795406fa52ae969726feb89f7aedbc4afc
[ "MIT" ]
null
null
null
import actstream.urls from django.conf import settings from django.conf.urls import include, url from django.conf.urls.static import static from django.contrib import admin import ore.core.urls import ore.accounts.urls import ore.projects.urls import ore.versions.urls import ore.teams.urls import ore.discourse_sso.urls...
31.204082
77
0.708306
203
1,529
5.251232
0.256158
0.041276
0.072233
0.091932
0.245779
0.161351
0.161351
0.161351
0.161351
0.161351
0
0.018279
0.141269
1,529
48
78
31.854167
0.793602
0
0
0.142857
0
0
0.138653
0.073905
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
5ba4c64906e7a419a6059b65c07ed6e7d5ed5000
8,226
py
Python
cogs/covid.py
RuiL1904/ruibot-discord.py
588406ef2dbebd7d976237f1d876054d641933f6
[ "MIT" ]
null
null
null
cogs/covid.py
RuiL1904/ruibot-discord.py
588406ef2dbebd7d976237f1d876054d641933f6
[ "MIT" ]
null
null
null
cogs/covid.py
RuiL1904/ruibot-discord.py
588406ef2dbebd7d976237f1d876054d641933f6
[ "MIT" ]
null
null
null
import io from datetime import datetime import nextcord as discord from nextcord.ext import commands import aiohttp import pandas # Load config from config import config color = config.color class Covid(commands.Cog): def __init__(self, client): self.client = client @commands.command(name = 'covid')...
48.105263
146
0.384877
605
8,226
5.14876
0.27438
0.017978
0.017657
0.022472
0.475762
0.475762
0.450722
0.450722
0.431461
0.359872
0
0.015393
0.54194
8,226
170
147
48.388235
0.811306
0.062363
0
0.423729
0
0.008475
0.1366
0.012087
0
0
0
0
0
1
0.016949
false
0
0.059322
0
0.084746
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5ba7e43dc702d76be95efe5fd1760983ebf60da6
5,404
py
Python
iml_common/test/command_capture_testcase.py
AlexTalker/iml-common
5617e9c89a3a5d2f02f499a3497035faf942bf1d
[ "MIT" ]
null
null
null
iml_common/test/command_capture_testcase.py
AlexTalker/iml-common
5617e9c89a3a5d2f02f499a3497035faf942bf1d
[ "MIT" ]
null
null
null
iml_common/test/command_capture_testcase.py
AlexTalker/iml-common
5617e9c89a3a5d2f02f499a3497035faf942bf1d
[ "MIT" ]
null
null
null
# Copyright (c) 2018 DDN. All rights reserved. # Use of this source code is governed by a MIT-style # license that can be found in the LICENSE file. import mock import errno from iml_common.lib.shell import Shell from iml_unit_testcase import ImlUnitTestCase class CommandCaptureCommand(object): def __init__(se...
36.026667
124
0.65285
672
5,404
5.11756
0.276786
0.05932
0.038674
0.027043
0.284676
0.209945
0.190753
0.173306
0.109334
0
0
0.007824
0.266839
5,404
149
125
36.268456
0.860172
0.304034
0
0.088235
0
0
0.050103
0.016701
0
0
0
0.006711
0.147059
1
0.205882
false
0
0.058824
0.029412
0.367647
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
5bc2952588678d234203b37d2a39a4f5f14434b3
856
py
Python
Health_Reminders/Health_reminder.py
balajeraam/BaSh_Python
fd76f4061fb27713a5285b7da898337a42326390
[ "MIT" ]
null
null
null
Health_Reminders/Health_reminder.py
balajeraam/BaSh_Python
fd76f4061fb27713a5285b7da898337a42326390
[ "MIT" ]
null
null
null
Health_Reminders/Health_reminder.py
balajeraam/BaSh_Python
fd76f4061fb27713a5285b7da898337a42326390
[ "MIT" ]
null
null
null
# importing tkinter module that will handle display window and text import tkinter as tk #Create a class that will generate new tkinter window with message for a given text def Reminder(reminder_text): app_window = tk.Tk() app_window.title("Health Reminder") # The bell method will adds a bell sound app...
42.8
100
0.719626
127
856
4.771654
0.582677
0.089109
0
0
0
0
0
0
0
0
0
0.020029
0.183411
856
19
101
45.052632
0.846924
0.445093
0
0
1
0
0.241453
0
0
0
0
0
0
1
0.090909
false
0
0.090909
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
5bc51fad17b918c59dfbd3c6e2853790185f1367
2,921
py
Python
apps/lti_app/models.py
PremierLangage/premierlangage
7134a2aadffee2bf264abee6c4b23ea33f1b390b
[ "CECILL-B" ]
8
2019-01-30T13:51:59.000Z
2022-01-08T03:26:53.000Z
apps/lti_app/models.py
PremierLangage/premierlangage
7134a2aadffee2bf264abee6c4b23ea33f1b390b
[ "CECILL-B" ]
286
2019-01-18T21:35:51.000Z
2022-03-24T18:53:59.000Z
apps/lti_app/models.py
PremierLangage/premierlangage
7134a2aadffee2bf264abee6c4b23ea33f1b390b
[ "CECILL-B" ]
4
2019-02-11T13:38:30.000Z
2021-03-02T20:59:00.000Z
import logging from django.apps import apps from django.conf import settings from django.contrib.auth.models import User from django.db import models from django.http import Http404 logger = logging.getLogger(__name__) class LTIModel(models.Model): """Mixin for models that can be created through LTI. ...
38.434211
97
0.683328
363
2,921
5.349862
0.352617
0.025747
0.037075
0.049434
0.123584
0.036045
0
0
0
0
0
0.008119
0.241013
2,921
75
98
38.946667
0.867839
0.244437
0
0.097561
0
0
0.139282
0.032578
0
0
0
0
0
1
0.02439
false
0
0.146341
0
0.512195
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
5bcb12dcfb1374d0b8ca8119dc8c19584b673c4b
384
py
Python
pavement.py
alesgaco/PyOptimizer
0b9f47a72d0288df828ef575eac993c31564d1f1
[ "MIT" ]
null
null
null
pavement.py
alesgaco/PyOptimizer
0b9f47a72d0288df828ef575eac993c31564d1f1
[ "MIT" ]
null
null
null
pavement.py
alesgaco/PyOptimizer
0b9f47a72d0288df828ef575eac993c31564d1f1
[ "MIT" ]
null
null
null
from paver.easy import * import paver.doctools from paver.setuputils import setup setup( name='PyOptimizer', version='1.0', packages=['PyOptimizer'], url='https://github.com/alesgaco/PyOptimizer', license='MIT', author='Aldo Esteban Garces Correa', author_email='aegarcesc@unal.edu.co', d...
27.428571
66
0.713542
47
384
5.808511
0.808511
0.065934
0
0
0
0
0
0
0
0
0
0.006192
0.158854
384
13
67
29.538462
0.839009
0
0
0
0
0
0.421875
0.054688
0
0
0
0
0
1
0
true
0
0.230769
0
0.230769
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
5bd6578ea2175e2c0717d77a3e1374d7b421f590
1,710
py
Python
files/example6/cartesian.py
ARCCA/intro-mpi
90f286f244e6d966ea8eddfe02697b94e1004629
[ "CC-BY-4.0" ]
null
null
null
files/example6/cartesian.py
ARCCA/intro-mpi
90f286f244e6d966ea8eddfe02697b94e1004629
[ "CC-BY-4.0" ]
null
null
null
files/example6/cartesian.py
ARCCA/intro-mpi
90f286f244e6d966ea8eddfe02697b94e1004629
[ "CC-BY-4.0" ]
null
null
null
#!/bin/env python # Demonstration of the imposition of a simple cartesian geometry on a set of # processes. In this case we generate a uniform 2-D grid in which each # element passes a value to its nearest neighbour to the right. from mpi4py import MPI import numpy as np import sys if __name__ == "__main__": # I...
38.863636
79
0.673684
256
1,710
4.453125
0.503906
0.028947
0.029825
0
0
0
0
0
0
0
0
0.005327
0.231579
1,710
43
80
39.767442
0.862253
0.499415
0
0
1
0
0.086801
0
0
0
0
0
0
1
0
false
0
0.15
0
0.15
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5bdf01b0a0a5bb6669ac8ad449e7895990ac364b
945
py
Python
meregistro/apps/reportes/views/titulo_nacional.py
MERegistro/meregistro
6cde3cab2bd1a8e3084fa38147de377d229391e3
[ "BSD-3-Clause" ]
null
null
null
meregistro/apps/reportes/views/titulo_nacional.py
MERegistro/meregistro
6cde3cab2bd1a8e3084fa38147de377d229391e3
[ "BSD-3-Clause" ]
null
null
null
meregistro/apps/reportes/views/titulo_nacional.py
MERegistro/meregistro
6cde3cab2bd1a8e3084fa38147de377d229391e3
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: UTF-8 -*- from django.http import HttpResponse, HttpResponseRedirect from datetime import datetime, date from apps.seguridad.decorators import login_required, credential_required from apps.seguridad.models import Usuario, Perfil from apps.titulos.models.TituloNacional import TituloNacional import csv fro...
37.8
159
0.767196
124
945
5.717742
0.508065
0.045134
0.047955
0.087447
0
0
0
0
0
0
0
0.004728
0.104762
945
24
160
39.375
0.833333
0.022222
0
0
0
0
0.127983
0.030369
0
0
0
0
0
1
0.052632
false
0
0.368421
0
0.473684
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
5be1b30055f7a9152abd85250240eb463b7bd006
2,624
py
Python
src/get_matches_api.py
AminuHabib/sky_bet_league_competition
c8180dd38b6b5a2e7378948e3f323095257215aa
[ "MIT" ]
null
null
null
src/get_matches_api.py
AminuHabib/sky_bet_league_competition
c8180dd38b6b5a2e7378948e3f323095257215aa
[ "MIT" ]
null
null
null
src/get_matches_api.py
AminuHabib/sky_bet_league_competition
c8180dd38b6b5a2e7378948e3f323095257215aa
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """get_matches_api.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1QpfVmsmtCPV9dhTsq6pRW7l7bXjwzKzr Author: Aminu Habib Import Libraries """ import requests import json from prettytable import PrettyTable #import sqlite...
31.238095
332
0.739329
360
2,624
5.094444
0.3
0.065431
0.030534
0.037077
0.386587
0.276445
0.264449
0.252999
0.231189
0.231189
0
0.008711
0.125
2,624
84
333
31.238095
0.79007
0.106707
0
0
1
0.027027
0.25679
0
0
0
0
0
0
1
0
false
0
0.081081
0
0.081081
0.081081
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
5be64c3df5a23af2df35e9b3ccd2de6766d07112
576
py
Python
proxy_server/helpers.py
lmanzurv/django_proxy_server
20304829ef1ddcbb281e1373d308e5fa826fcd39
[ "Apache-2.0" ]
11
2015-07-18T02:23:43.000Z
2021-11-15T11:43:21.000Z
proxy_server/helpers.py
lmanzurv/django_proxy_server
20304829ef1ddcbb281e1373d308e5fa826fcd39
[ "Apache-2.0" ]
null
null
null
proxy_server/helpers.py
lmanzurv/django_proxy_server
20304829ef1ddcbb281e1373d308e5fa826fcd39
[ "Apache-2.0" ]
5
2015-02-24T15:37:36.000Z
2021-10-10T16:42:22.000Z
import base64 def generate_service_url(function_path, params=None, encrypted=False): if not params: return function_path else: path_end = str() for key, value in params.iteritems(): if encrypted: value = base64.urlsafe_b64encode(str(value)).replace('=', '') ...
30.315789
77
0.534722
65
576
4.569231
0.446154
0.117845
0.121212
0.060606
0.154882
0.154882
0.154882
0
0
0
0
0.026596
0.347222
576
18
78
32
0.763298
0
0
0.1875
1
0
0.029514
0
0
0
0
0
0
1
0.0625
false
0
0.0625
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5bfebd468f13a1c5d7579d8f57fd8f03fb649c4e
1,726
py
Python
gpg.py
counsyl/glacier-cli
1b99931a31690841f9d33a576c638f8b1cccecf8
[ "MIT" ]
null
null
null
gpg.py
counsyl/glacier-cli
1b99931a31690841f9d33a576c638f8b1cccecf8
[ "MIT" ]
null
null
null
gpg.py
counsyl/glacier-cli
1b99931a31690841f9d33a576c638f8b1cccecf8
[ "MIT" ]
null
null
null
import gnupg import os GNUPG_KEY_TYPE = "RSA" GNUPG_KEY_LENGTH = 2048 class Encryptor(object): def __init__(self): self.gpg = gnupg.GPG() self.gpg.encoding = "utf-8" if self.gpg.list_keys() == []: self.generate_keypair() def generate_keypair(self): """Generate th...
31.962963
77
0.6292
214
1,726
4.82243
0.242991
0.081395
0.02907
0.02907
0.358527
0.323643
0.160853
0.160853
0.077519
0.077519
0
0.004713
0.262457
1,726
53
78
32.566038
0.80597
0.15759
0
0.060606
0
0
0.014758
0
0
0
0
0
0
1
0.242424
false
0
0.060606
0
0.484848
0.121212
0
0
0
null
0
0
0
0
0
0
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
7504ff9da64147dd9f11150a10c7e67cc0d2ab82
895
py
Python
075.err.py
liuyang1/euler
ba6c79b3f809711eec07a7843ec60c86990564d1
[ "MIT" ]
null
null
null
075.err.py
liuyang1/euler
ba6c79b3f809711eec07a7843ec60c86990564d1
[ "MIT" ]
null
null
null
075.err.py
liuyang1/euler
ba6c79b3f809711eec07a7843ec60c86990564d1
[ "MIT" ]
null
null
null
from itertools import count from common import mymath def GouGu(): for m in count(1): for n in xrange(1, m): if mymath.gcd(m, n) == 1 and (m % 2 == 0 or n % 2 == 0): mm = m * m nn = n * n mn = 2 * m * n pp = mm * 2 + mn ...
21.309524
68
0.46257
134
895
3.089552
0.343284
0.038647
0.024155
0.038647
0.048309
0
0
0
0
0
0
0.039139
0.42905
895
41
69
21.829268
0.771037
0.053631
0
0.057143
0
0
0
0
0
0
0
0
0
0
null
null
0
0.085714
null
null
0.114286
0
0
0
null
0
0
0
0
0
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
750c2cbca31d1cd5b27e82c3d58caffc08d7d742
1,650
py
Python
trojsten/submit/migrations/0005_auto_20180915_2002.py
MvonK/web
b701a6ea8fb6f0bdfb720e66d0a430db13db8bff
[ "MIT" ]
5
2018-04-22T22:44:02.000Z
2021-04-26T20:44:44.000Z
trojsten/submit/migrations/0005_auto_20180915_2002.py
MvonK/web
b701a6ea8fb6f0bdfb720e66d0a430db13db8bff
[ "MIT" ]
250
2018-04-24T12:04:11.000Z
2022-03-09T06:56:47.000Z
trojsten/submit/migrations/0005_auto_20180915_2002.py
MvonK/web
b701a6ea8fb6f0bdfb720e66d0a430db13db8bff
[ "MIT" ]
8
2019-04-28T11:33:03.000Z
2022-02-26T13:30:36.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.12 on 2018-09-15 20:02 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("old_submit", "0004_submit_protocol")] operations = [ migrations.AlterField( model_name="submit", name="p...
31.730769
98
0.485455
145
1,650
5.37931
0.572414
0.064103
0.128205
0.148718
0.370513
0.2
0
0
0
0
0
0.033764
0.389697
1,650
51
99
32.352941
0.740814
0.041818
0
0.466667
1
0
0.202788
0
0
0
0
0
0
1
0
false
0
0.022222
0
0.088889
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
750d6d782ee25a5fe5c2ee7163c23181ca5c4289
281
py
Python
src/todos/serializers.py
vishaltanwar96/iTrack
1d57e2d57a61a309632673b7bde8fc559eea09c0
[ "MIT" ]
3
2020-11-20T15:44:14.000Z
2020-11-21T12:18:15.000Z
src/todos/serializers.py
vishaltanwar96/iTrack
1d57e2d57a61a309632673b7bde8fc559eea09c0
[ "MIT" ]
null
null
null
src/todos/serializers.py
vishaltanwar96/iTrack
1d57e2d57a61a309632673b7bde8fc559eea09c0
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import Todo class TodoSerializer(serializers.ModelSerializer): """.""" class Meta: model = Todo fields = "__all__" read_only_fields = ("belongs_to", "is_complete", "created_at", "updated_at")
20.071429
84
0.669039
30
281
5.9
0.766667
0
0
0
0
0
0
0
0
0
0
0
0.220641
281
13
85
21.615385
0.808219
0.003559
0
0
0
0
0.175182
0
0
0
0
0
0
1
0
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
750f1f7f1d0eb84c9cf6a66afb31539b4f352e2a
2,246
py
Python
root/os/DSAA/DataStructuresAndAlgorithms/python/chutils/chutils/chdb/redisClient.py
chyidl/chyidlTutorial
a033e0a57abf84fdbb61e57736822f9126db6ff7
[ "MIT" ]
5
2018-10-17T05:57:39.000Z
2021-07-05T15:38:24.000Z
root/os/DSAA/DataStructuresAndAlgorithms/python/chutils/chutils/chdb/redisClient.py
chyidl/chyidlTutorial
a033e0a57abf84fdbb61e57736822f9126db6ff7
[ "MIT" ]
2
2021-04-14T00:48:43.000Z
2021-04-14T02:20:50.000Z
root/os/DSAA/DataStructuresAndAlgorithms/python/chutils/chutils/chdb/redisClient.py
chyidl/chyidlTutorial
a033e0a57abf84fdbb61e57736822f9126db6ff7
[ "MIT" ]
3
2019-03-02T14:36:19.000Z
2022-03-18T10:12:09.000Z
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # # redisClient.py # chdb # # 🎂"Here's to the crazy ones. The misfits. The rebels. # The troublemakers. The round pegs in the square holes. # The ones who see things differently. They're not found # of rules. And they have no respect for the status quo. # You can quote t...
31.194444
86
0.675868
314
2,246
4.687898
0.480892
0.040761
0.050951
0.036685
0.109375
0
0
0
0
0
0
0.013613
0.215049
2,246
71
87
31.633803
0.820193
0.412734
0
0
0
0
0.076104
0.015982
0
0
0
0
0
1
0.121212
false
0.151515
0.060606
0
0.333333
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
0
0
0
1
0
0
0
0
0
1
7517b754bad63bbf7e6aee8bffbb95a5574b2ca6
3,066
py
Python
pjon_python/utils/RedisConn.py
Girgitt/PJON-python
a2653d46eefa6ce8339eb780074f10f20c4db49c
[ "Apache-2.0" ]
21
2016-08-25T10:26:44.000Z
2022-03-23T00:43:19.000Z
pjon_python/utils/RedisConn.py
Girgitt/PJON-python
a2653d46eefa6ce8339eb780074f10f20c4db49c
[ "Apache-2.0" ]
9
2016-08-30T23:49:51.000Z
2020-12-22T09:05:58.000Z
pjon_python/utils/RedisConn.py
Girgitt/PJON-python
a2653d46eefa6ce8339eb780074f10f20c4db49c
[ "Apache-2.0" ]
7
2017-05-21T17:39:31.000Z
2020-07-04T12:37:30.000Z
import time import json from redis import ConnectionError import logging import jsonpickle from retrying import retry log = logging.getLogger("redis-conn") def retry_if_connection_error(exception): return isinstance(exception, ConnectionError) class RedisConn(object): def __init__(self, redis_conn, sub_cha...
33.326087
94
0.639596
382
3,066
4.874346
0.230366
0.085929
0.083781
0.087003
0.409237
0.382385
0.382385
0.240602
0.240602
0.240602
0
0.02124
0.247554
3,066
91
95
33.692308
0.785869
0
0
0.169014
0
0
0.045988
0
0
0
0
0
0
1
0.183099
false
0.014085
0.084507
0.126761
0.450704
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
752440db344a6e89f896a64ed24d2a9cb97df493
522
py
Python
repos_module/utils.py
irongomme/heyvector
eb2d3c08a1cb6ed8d4e31d935ab6d54e857d446f
[ "MIT" ]
1
2019-03-11T15:10:16.000Z
2019-03-11T15:10:16.000Z
repos_module/utils.py
irongomme/heyvector
eb2d3c08a1cb6ed8d4e31d935ab6d54e857d446f
[ "MIT" ]
null
null
null
repos_module/utils.py
irongomme/heyvector
eb2d3c08a1cb6ed8d4e31d935ab6d54e857d446f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from heyvector import cache, github @cache.memoize(50) def list_user_repositories(user, **kwargs): return github.get('/users/%s/repos' % user, params = { 'visibility': 'public', 'affiliation': 'owner', 'sort': 'created', **kwargs}) @...
24.857143
58
0.559387
55
522
5.236364
0.563636
0.145833
0.097222
0.118056
0
0
0
0
0
0
0
0.013193
0.273946
522
20
59
26.1
0.746702
0.04023
0
0.266667
0
0
0.18
0
0
0
0
0
0
1
0.133333
false
0
0.066667
0.133333
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
7531279b17d08fe57f535c79acfe22fd680a12a8
434
py
Python
JSON2OWL/grass/test.py
houzw/knowledge-base-data
60771e8bf300227e1a26c9e77f56b09d23acd64a
[ "MIT" ]
null
null
null
JSON2OWL/grass/test.py
houzw/knowledge-base-data
60771e8bf300227e1a26c9e77f56b09d23acd64a
[ "MIT" ]
null
null
null
JSON2OWL/grass/test.py
houzw/knowledge-base-data
60771e8bf300227e1a26c9e77f56b09d23acd64a
[ "MIT" ]
1
2018-12-17T06:40:53.000Z
2018-12-17T06:40:53.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # author: houzhiwei # time: 2019/7/13 19:12 import json import os import re from JSON2OWL.OwlConvert.OwlUtils import OWLUtils module_path = os.path.dirname(__file__) with open(module_path + '/grass.json', 'r') as f: jdata = json.load(f) # list for i,d in enumerate(jdat...
21.7
49
0.705069
70
434
4.257143
0.7
0.067114
0
0
0
0
0
0
0
0
0
0.037736
0.145161
434
19
50
22.842105
0.765499
0.232719
0
0
0
0
0.04893
0
0
0
0
0
0
1
0
false
0
0.363636
0
0.363636
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
7534ae5cc5b96433aa0f386fbb142a34d3826eed
932
py
Python
api/tests/postTest.py
zhininghjl/Communiti-404F21
68bd67b6e6a8cdf70201fce8b15b96ef9195b394
[ "MIT" ]
2
2021-09-27T01:17:01.000Z
2021-10-17T01:44:37.000Z
api/tests/postTest.py
zhininghjl/Communiti-404F21
68bd67b6e6a8cdf70201fce8b15b96ef9195b394
[ "MIT" ]
17
2021-10-21T04:22:12.000Z
2021-12-07T00:39:43.000Z
api/tests/postTest.py
zhininghjl/Communiti-404F21
68bd67b6e6a8cdf70201fce8b15b96ef9195b394
[ "MIT" ]
2
2021-10-21T03:38:45.000Z
2021-12-21T23:38:49.000Z
from rest_framework.test import APITestCase, APIClient from django.urls import include, path, reverse from ..views import posts from ..utils import methods, generate_id # https://www.django-rest-framework.org/api-guide/testing/ class TestPost(APITestCase): urlpatterns = [ path("author/<str:authorID>/post...
44.380952
176
0.714592
120
932
5.316667
0.45
0.068966
0.079937
0.103448
0.191223
0.109718
0.109718
0
0
0
0
0.003788
0.150215
932
21
177
44.380952
0.801768
0.060086
0
0
1
0
0.267429
0.168
0
0
0
0
0.0625
1
0.0625
false
0
0.25
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1