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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b615798ba86de33143bd8b83d54e8c2cb5fd5d97 | 1,992 | py | Python | src/licma/tests/test_pyrules_m2crypto_oop.py | stg-tud/licma | b899e6e682f7716d19e79d6ce7b73c28c6efd4cf | [
"MIT"
] | 5 | 2021-09-13T11:24:13.000Z | 2022-03-18T21:56:58.000Z | src/licma/tests/test_pyrules_m2crypto_oop.py | stg-tud/licma | b899e6e682f7716d19e79d6ce7b73c28c6efd4cf | [
"MIT"
] | null | null | null | src/licma/tests/test_pyrules_m2crypto_oop.py | stg-tud/licma | b899e6e682f7716d19e79d6ce7b73c28c6efd4cf | [
"MIT"
] | 1 | 2021-09-13T06:02:20.000Z | 2021-09-13T06:02:20.000Z | import unittest
from licma.babel_fish.babel_fish import BabelFish
from licma.rules.python.pyrules_m2crypto.pyrule1_m2crypto import PyRule1M2Crypto
from licma.rules.python.pyrules_m2crypto.pyrule2_m2crypto import PyRule2M2Crypto
from licma.rules.python.pyrules_m2crypto.pyrule3_m2crypto import PyRule3M2Crypto
from licma... | 46.325581 | 98 | 0.703313 | 198 | 1,992 | 6.813131 | 0.242424 | 0.096368 | 0.133432 | 0.17791 | 0.485545 | 0.366938 | 0 | 0 | 0 | 0 | 0 | 0.041536 | 0.202309 | 1,992 | 42 | 99 | 47.428571 | 0.807426 | 0 | 0 | 0 | 0 | 0 | 0.310241 | 0.306225 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15625 | false | 0 | 0.25 | 0 | 0.46875 | 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 |
b616788026b220ba10bb555db6739d8f4ae8230d | 5,161 | py | Python | sparkdq/models/dbscan/DBSCAN.py | PasaLab/SparkDQ | 16d50210747ef7de03cf36d689ce26ff7445f63a | [
"Apache-2.0"
] | 1 | 2021-02-08T07:49:54.000Z | 2021-02-08T07:49:54.000Z | sparkdq/models/dbscan/DBSCAN.py | PasaLab/SparkDQ | 16d50210747ef7de03cf36d689ce26ff7445f63a | [
"Apache-2.0"
] | null | null | null | sparkdq/models/dbscan/DBSCAN.py | PasaLab/SparkDQ | 16d50210747ef7de03cf36d689ce26ff7445f63a | [
"Apache-2.0"
] | null | null | null | from operator import add
import numpy as np
from pyspark.sql.types import StructField, StructType, IntegerType
from scipy.spatial.distance import euclidean
import sklearn.cluster as skc
from sparkdq.conf.Context import Context
from sparkdq.models.CommonUtils import DEFAULT_CLUSTER_COL, DEFAULT_INDEX_COL
from sparkdq.... | 35.840278 | 120 | 0.606665 | 664 | 5,161 | 4.51506 | 0.268072 | 0.039026 | 0.010007 | 0.013342 | 0.167445 | 0.136758 | 0.124083 | 0.124083 | 0.124083 | 0.124083 | 0 | 0.0367 | 0.255571 | 5,161 | 143 | 121 | 36.090909 | 0.743623 | 0.200543 | 0 | 0.144578 | 0 | 0 | 0.021156 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060241 | false | 0.012048 | 0.108434 | 0 | 0.216867 | 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 | 0 | 0 | 1 | 0 |
b6176beeb32ae6064f09171a1d1d0db9edfa1f3a | 1,160 | py | Python | leflow/easy_example.py | santacml/Malware-as-Video | 12dc3954f2237cb34857a44eadbb5ca76f8e97b5 | [
"MIT"
] | 1 | 2019-05-26T22:40:00.000Z | 2019-05-26T22:40:00.000Z | leflow/easy_example.py | santacml/Malware-as-Video | 12dc3954f2237cb34857a44eadbb5ca76f8e97b5 | [
"MIT"
] | null | null | null | leflow/easy_example.py | santacml/Malware-as-Video | 12dc3954f2237cb34857a44eadbb5ca76f8e97b5 | [
"MIT"
] | 1 | 2019-06-27T20:21:49.000Z | 2019-06-27T20:21:49.000Z | import tensorflow as tf
import numpy as np
import sys
sys.path.append('../LeFlow/src')
import processMif as mif
# This creates a random 32-bit floating point input for your variables
def rand(dim):
#return np.random.random(dim).astype(np.float32)
return np.ones(dim).astype(np.float32)
nodes = 1
X = tf.place... | 25.777778 | 97 | 0.671552 | 183 | 1,160 | 4.191257 | 0.480874 | 0.027379 | 0.028683 | 0.046936 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042328 | 0.185345 | 1,160 | 44 | 98 | 26.363636 | 0.769312 | 0.347414 | 0 | 0 | 0 | 0 | 0.064343 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.181818 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b618335f706022104fc8e982cca8ccd5f542436e | 1,894 | py | Python | 123.py | zhirihuixin/wzh_private | b090a1f68093b180b83b4f3146e56d264f63d5bd | [
"MIT"
] | 1 | 2017-03-21T09:07:30.000Z | 2017-03-21T09:07:30.000Z | 123.py | zhirihuixin/wzh_private | b090a1f68093b180b83b4f3146e56d264f63d5bd | [
"MIT"
] | null | null | null | 123.py | zhirihuixin/wzh_private | b090a1f68093b180b83b4f3146e56d264f63d5bd | [
"MIT"
] | null | null | null | import pickle
import numpy as np
pkl_file = open('D:\wangzhihui\\123\wzh\ResNext101_32_4d_faster_rcnn_merge_bn_scale_iter_60000\\detections.pkl', 'rb')
data1 = pickle.load(pkl_file)
def py_cpu_nms(dets, thresh):
"""Pure Python NMS baseline."""
x1 = dets[:, 0]
y1 = dets[:, 1]
x2 = dets[:, 2]
y2 = d... | 23.675 | 118 | 0.534319 | 332 | 1,894 | 2.990964 | 0.286145 | 0.024169 | 0.050352 | 0.048338 | 0.125881 | 0.11279 | 0.09567 | 0.062437 | 0.062437 | 0.062437 | 0 | 0.086986 | 0.229145 | 1,894 | 79 | 119 | 23.974684 | 0.593151 | 0 | 0 | 0.153846 | 0 | 0 | 0.053311 | 0.052189 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.046154 | null | null | 0.261538 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b618d3e757516d28daaaf4e251eeb45623d8f192 | 1,398 | py | Python | hycu-demo/hycu-centos-8.py | halsayed/calm | 46c93ac2b02227663f0184d149f62d142b2638cc | [
"MIT"
] | null | null | null | hycu-demo/hycu-centos-8.py | halsayed/calm | 46c93ac2b02227663f0184d149f62d142b2638cc | [
"MIT"
] | null | null | null | hycu-demo/hycu-centos-8.py | halsayed/calm | 46c93ac2b02227663f0184d149f62d142b2638cc | [
"MIT"
] | 1 | 2021-11-16T10:28:42.000Z | 2021-11-16T10:28:42.000Z | from calm.dsl.builtins import basic_cred, CalmTask, action
from calm.dsl.builtins import SimpleDeployment, SimpleBlueprint
from calm.dsl.builtins import read_provider_spec
from calm.dsl.builtins import CalmVariable
from calm.dsl.store import Secret
CENTOS = basic_cred('nutanix', 'nutanix/4u', name='CENTOS', default=Tr... | 36.789474 | 90 | 0.73176 | 185 | 1,398 | 5.313514 | 0.443243 | 0.040692 | 0.055951 | 0.077314 | 0.225839 | 0.07528 | 0.07528 | 0 | 0 | 0 | 0 | 0.017544 | 0.143777 | 1,398 | 38 | 91 | 36.789474 | 0.803676 | 0.097997 | 0 | 0.076923 | 0 | 0 | 0.139793 | 0.019857 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.192308 | 0 | 0.653846 | 0.115385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
b619e86dde26d288681bc5bbb637fb6786e9878f | 2,695 | py | Python | lc/0101_SymmetricTree.py | xiangshiyin/coding-challenge | a75a644b96dec1b6c7146b952ca4333263f0a461 | [
"Apache-2.0"
] | null | null | null | lc/0101_SymmetricTree.py | xiangshiyin/coding-challenge | a75a644b96dec1b6c7146b952ca4333263f0a461 | [
"Apache-2.0"
] | null | null | null | lc/0101_SymmetricTree.py | xiangshiyin/coding-challenge | a75a644b96dec1b6c7146b952ca4333263f0a461 | [
"Apache-2.0"
] | null | null | null | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
# class Solution:
# def isSymmetric(self, root: TreeNode) -> bool:
# '''
# long, iterative solution
# ... | 29.615385 | 95 | 0.440074 | 294 | 2,695 | 4.020408 | 0.187075 | 0.055838 | 0.05753 | 0.064298 | 0.357868 | 0.334179 | 0.273266 | 0.273266 | 0.111675 | 0 | 0 | 0.057355 | 0.450093 | 2,695 | 91 | 96 | 29.615385 | 0.740216 | 0.696475 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.05 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b61b1f4f777fb497c659daccaa184cb2e2a702f6 | 920 | py | Python | checkboxes2.py | PiyushKumar186/programming | 4dc17488a2d197ccdb6acd6f80732da81147bb1b | [
"MIT"
] | null | null | null | checkboxes2.py | PiyushKumar186/programming | 4dc17488a2d197ccdb6acd6f80732da81147bb1b | [
"MIT"
] | null | null | null | checkboxes2.py | PiyushKumar186/programming | 4dc17488a2d197ccdb6acd6f80732da81147bb1b | [
"MIT"
] | null | null | null | #!/usr/bin/python2
from Tkinter import *
class Checkbar(Frame):
def __init__(self,parent=None,picks=[],side=LEFT,anchor=W):
Frame.__init__(self,parent)
self.vars = []
for pick in picks:
var = IntVar()
chk = Checkbutton(self,text=pick,variable=var)
chk.pac... | 34.074074 | 64 | 0.615217 | 124 | 920 | 4.435484 | 0.548387 | 0.072727 | 0.050909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00274 | 0.206522 | 920 | 27 | 65 | 34.074074 | 0.750685 | 0.018478 | 0 | 0 | 0 | 0 | 0.050941 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.041667 | 0.041667 | 0.25 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b61b86ab032b9a24da2c37b62cc30d9b56165a99 | 1,447 | py | Python | autodraft/draftHost/importers/positions.py | gnmerritt/autodraft | b4071f9cc5eaf57beb19ba1aec99377afdbfb09a | [
"MIT"
] | null | null | null | autodraft/draftHost/importers/positions.py | gnmerritt/autodraft | b4071f9cc5eaf57beb19ba1aec99377afdbfb09a | [
"MIT"
] | null | null | null | autodraft/draftHost/importers/positions.py | gnmerritt/autodraft | b4071f9cc5eaf57beb19ba1aec99377afdbfb09a | [
"MIT"
] | null | null | null | from draftHost.models import NflPosition, FantasyPosition
# path relative to manage.py
NFL_DATA_FILE = "draftHost/data/nfl_positions.txt"
FANTASY_DATA_FILE = "draftHost/data/fantasy_positions.txt"
class PositionImporter(object):
def add_positions(self):
try:
data = open(NFL_DATA_FILE, 'r')
... | 33.651163 | 73 | 0.54112 | 150 | 1,447 | 5.093333 | 0.406667 | 0.041885 | 0.028796 | 0.054974 | 0.246073 | 0.183246 | 0.183246 | 0.125654 | 0.125654 | 0.125654 | 0 | 0.004292 | 0.355909 | 1,447 | 42 | 74 | 34.452381 | 0.815451 | 0.017968 | 0 | 0.342857 | 0 | 0 | 0.10007 | 0.047921 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.057143 | null | null | 0.114286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b61c54672fad12557646d3ef16c482952b01520a | 2,572 | py | Python | code/Experiments/Lasagne_examples/modelzoo/cifar10_nin.py | matthijsvk/convNets | 7e65db7857a4e6abfbcab264953eb7741319de6c | [
"Apache-2.0"
] | 1,034 | 2015-05-21T12:47:50.000Z | 2022-03-17T19:27:29.000Z | modelzoo/cifar10_nin.py | nestyme/Recipes | 553f5cf671f164da71152e33253cd7ed737dd2ac | [
"MIT"
] | 111 | 2015-07-04T11:38:59.000Z | 2022-03-04T01:12:11.000Z | modelzoo/cifar10_nin.py | nestyme/Recipes | 553f5cf671f164da71152e33253cd7ed737dd2ac | [
"MIT"
] | 528 | 2015-07-03T22:15:02.000Z | 2022-03-27T10:01:21.000Z | # Network in Network CIFAR10 Model
# Original source: https://gist.github.com/mavenlin/e56253735ef32c3c296d
# License: unknown
# Download pretrained weights from:
# https://s3.amazonaws.com/lasagne/recipes/pretrained/cifar10/model.pkl
from lasagne.layers import InputLayer, DropoutLayer, FlattenLayer
from lasagne.laye... | 41.483871 | 73 | 0.515552 | 264 | 2,572 | 4.878788 | 0.310606 | 0.074534 | 0.111801 | 0.132764 | 0.361801 | 0.328416 | 0.300466 | 0.23059 | 0.173137 | 0.173137 | 0 | 0.061162 | 0.364308 | 2,572 | 61 | 74 | 42.163934 | 0.726606 | 0.087092 | 0 | 0.372549 | 0 | 0 | 0.0807 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019608 | false | 0 | 0.058824 | 0 | 0.098039 | 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 | 0 | 0 | 1 | 0 |
b61d0a638f24888cb68e4936a01c7b39a707cb01 | 2,969 | py | Python | src/backend/models/placeModel.py | oasis-art-project/oasis-server | 63e8093ebafa76c90393eec7828221e255100252 | [
"Artistic-2.0"
] | 3 | 2022-03-07T23:40:29.000Z | 2022-03-07T23:40:35.000Z | src/backend/models/placeModel.py | oasis-art-project/oasis-server | 63e8093ebafa76c90393eec7828221e255100252 | [
"Artistic-2.0"
] | null | null | null | src/backend/models/placeModel.py | oasis-art-project/oasis-server | 63e8093ebafa76c90393eec7828221e255100252 | [
"Artistic-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Part of the OASIS ART PROJECT - https://github.com/orgs/oasis-art-project
Copyright (c) 2019-22 TEAM OASIS
License Artistic-2.0
"""
from marshmallow import fields, validate, post_dump
from sqlalchemy.types import ARRAY
from src.backend.extensions import db
from src.backend.models.model im... | 43.661765 | 175 | 0.689795 | 393 | 2,969 | 5.127226 | 0.363868 | 0.043672 | 0.054591 | 0.063524 | 0.26799 | 0.26799 | 0.204467 | 0.17469 | 0.095285 | 0.048635 | 0 | 0.020698 | 0.170091 | 2,969 | 67 | 176 | 44.313433 | 0.797078 | 0.117885 | 0 | 0 | 0 | 0 | 0.064825 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0 | 0.12766 | 0 | 0.744681 | 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 | 0 | 0 | 1 | 0 |
b61ebeb23f8d54ceaf64080f94bfcc879df1a83f | 8,509 | py | Python | torcharc/module/perceiver_io/preprocessor.py | kengz/torcharc | e17043391c718a161956b4da98f9a7810efe62a2 | [
"MIT"
] | 1 | 2020-06-12T09:55:25.000Z | 2020-06-12T09:55:25.000Z | torcharc/module/perceiver_io/preprocessor.py | kengz/torcharc | e17043391c718a161956b4da98f9a7810efe62a2 | [
"MIT"
] | 5 | 2021-06-26T18:25:39.000Z | 2021-12-31T22:43:22.000Z | torcharc/module/perceiver_io/preprocessor.py | kengz/torcharc | e17043391c718a161956b4da98f9a7810efe62a2 | [
"MIT"
] | null | null | null | from einops import repeat, rearrange
from torch import nn
from torcharc import net_util
import math
import pydash as ps
import sys
import torch
def build_learned_pos_encoding(max_seq_len: int, embed_dim: int):
'''Build learned positional encoding with Deepmind's init'''
# learned position encoding
pos_enc... | 54.197452 | 269 | 0.678106 | 1,276 | 8,509 | 4.323668 | 0.198276 | 0.059815 | 0.026101 | 0.008157 | 0.12253 | 0.085735 | 0.039514 | 0.027914 | 0.027914 | 0.0087 | 0 | 0.009245 | 0.211893 | 8,509 | 156 | 270 | 54.544872 | 0.813451 | 0.401222 | 0 | 0.091954 | 0 | 0.011494 | 0.052859 | 0.004319 | 0 | 0 | 0 | 0 | 0.022989 | 1 | 0.137931 | false | 0 | 0.08046 | 0.011494 | 0.356322 | 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 | 0 | 0 | 1 | 0 |
b61f00da589e3e40dcc6ece3e1151abf782ac6ad | 3,027 | py | Python | utils/datafields.py | edgeless634/bilibili_spider | 589bbd029d3db3e9382d2e825250fe21b12edc39 | [
"MIT"
] | null | null | null | utils/datafields.py | edgeless634/bilibili_spider | 589bbd029d3db3e9382d2e825250fe21b12edc39 | [
"MIT"
] | null | null | null | utils/datafields.py | edgeless634/bilibili_spider | 589bbd029d3db3e9382d2e825250fe21b12edc39 | [
"MIT"
] | null | null | null | import os
import random
import logging
import threading
base_path = os.path.dirname(os.path.dirname(__file__))
base_path = os.path.join(base_path, "datafield")
if not os.path.exists(base_path):
os.mkdir(base_path)
def get_path(fieldname):
return os.path.join(base_path, fieldname)
class DataField:
'''
... | 29.105769 | 126 | 0.561612 | 364 | 3,027 | 4.475275 | 0.255495 | 0.077348 | 0.077348 | 0.098834 | 0.309392 | 0.2345 | 0.162063 | 0.162063 | 0.058932 | 0.058932 | 0 | 0.001946 | 0.32078 | 3,027 | 104 | 127 | 29.105769 | 0.79037 | 0.045259 | 0 | 0.104478 | 0 | 0 | 0.026691 | 0.008044 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104478 | false | 0 | 0.059701 | 0.014925 | 0.253731 | 0.059701 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
b61f12f0a57f2ac17e29150643fd1a3a0801bb75 | 1,468 | py | Python | 0.mccntt/domain-wide/gmail_quickstart.py | mccntt/googleworkspace-python-samples | c1a24d4e06f2b14af4b494db55ebad04fbf6cf89 | [
"Apache-2.0"
] | null | null | null | 0.mccntt/domain-wide/gmail_quickstart.py | mccntt/googleworkspace-python-samples | c1a24d4e06f2b14af4b494db55ebad04fbf6cf89 | [
"Apache-2.0"
] | null | null | null | 0.mccntt/domain-wide/gmail_quickstart.py | mccntt/googleworkspace-python-samples | c1a24d4e06f2b14af4b494db55ebad04fbf6cf89 | [
"Apache-2.0"
] | null | null | null |
# https://docs.microsoft.com/en-us/windows/python/beginners
# https://developers.google.com/identity/protocols/oauth2/service-account#python
from __future__ import print_function
from pathlib import Path
from googleapiclient.discovery import build
from google.oauth2 import service_account
SCOPES = ['https://www.go... | 28.784314 | 130 | 0.706403 | 180 | 1,468 | 5.605556 | 0.505556 | 0.111001 | 0.053518 | 0.035679 | 0.178394 | 0.075322 | 0.075322 | 0.075322 | 0.075322 | 0 | 0 | 0.009016 | 0.168937 | 1,468 | 50 | 131 | 29.36 | 0.818033 | 0.372616 | 0 | 0.111111 | 0 | 0 | 0.151885 | 0.079823 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.222222 | 0 | 0.277778 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b61fa6e0d30b3d5f87bf0ee960be776cf48333dc | 5,575 | py | Python | code/dpp/distributions/logistic_mixture.py | bsouhaib/qf-tpp | a5adf3f7203b920528c1c397329c4afd9039c3b4 | [
"MIT"
] | null | null | null | code/dpp/distributions/logistic_mixture.py | bsouhaib/qf-tpp | a5adf3f7203b920528c1c397329c4afd9039c3b4 | [
"MIT"
] | null | null | null | code/dpp/distributions/logistic_mixture.py | bsouhaib/qf-tpp | a5adf3f7203b920528c1c397329c4afd9039c3b4 | [
"MIT"
] | null | null | null | import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.distributions as td
from torch.distributions import constraints
from dpp.nn import BaseModule, Hypernet
from dpp.utils import clamp_preserve_gradients
def inverse_sigmoid(x):
# Clamp tiny values (<1e-38 for float3... | 38.986014 | 103 | 0.636233 | 741 | 5,575 | 4.561404 | 0.240216 | 0.069231 | 0.049704 | 0.050592 | 0.277515 | 0.243787 | 0.230769 | 0.20355 | 0.17574 | 0.17574 | 0 | 0.008049 | 0.264574 | 5,575 | 142 | 104 | 39.260563 | 0.816341 | 0.210583 | 0 | 0.125 | 0 | 0 | 0.009161 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.090909 | 0 | 0.340909 | 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 | 0 | 0 | 1 | 0 |
b61fd88f4b3a01a3aa6ca746cfeb284296cf724d | 15,173 | py | Python | register/urls.py | LucasHiago/pede_ja | 62609a32d045b167a96be79cc93113d32dcfe917 | [
"MIT"
] | null | null | null | register/urls.py | LucasHiago/pede_ja | 62609a32d045b167a96be79cc93113d32dcfe917 | [
"MIT"
] | null | null | null | register/urls.py | LucasHiago/pede_ja | 62609a32d045b167a96be79cc93113d32dcfe917 | [
"MIT"
] | null | null | null | from django.urls import path
from django.conf import settings
from django.conf.urls.static import static
from .views import *
urlpatterns = [
# Urls for authentication on noruh web
path('change_password/', RecoverPasswordByApi.as_view(), name='change_password'),
path('reset_passowrd/complete/', Recove... | 55.375912 | 126 | 0.701114 | 1,690 | 15,173 | 6.02426 | 0.149112 | 0.067184 | 0.111973 | 0.047441 | 0.254199 | 0.087418 | 0.049209 | 0.020332 | 0.009626 | 0 | 0 | 0 | 0.148685 | 15,173 | 273 | 127 | 55.578755 | 0.788186 | 0.037699 | 0 | 0 | 0 | 0 | 0.464815 | 0.394719 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.008811 | 0.017621 | 0 | 0.017621 | 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 | 0 | 0 | 1 | 0 |
b61fdd250445e3eab4d4df963d8cfba91ce0bd48 | 6,220 | py | Python | model/utils/config_helper.py | aashiqmuhamed/transformer-gan | 1ccc9f251c1b1d054c1acc8be36c1da7bf8cf11c | [
"Apache-2.0"
] | 32 | 2021-06-11T02:03:03.000Z | 2022-03-23T16:12:49.000Z | model/utils/config_helper.py | aashiqmuhamed/transformer-gan | 1ccc9f251c1b1d054c1acc8be36c1da7bf8cf11c | [
"Apache-2.0"
] | 3 | 2021-11-11T06:08:37.000Z | 2022-02-20T14:09:30.000Z | model/utils/config_helper.py | aashiqmuhamed/transformer-gan | 1ccc9f251c1b1d054c1acc8be36c1da7bf8cf11c | [
"Apache-2.0"
] | 7 | 2021-06-11T01:19:56.000Z | 2022-02-17T03:52:15.000Z | from yacs.config import CfgNode as CN
def model(cfg):
# For model
cfg.MODEL = CN()
cfg.MODEL.num_layers = 6
cfg.MODEL.num_heads = 10
cfg.MODEL.units = 500
cfg.MODEL.inner_size = 1000
cfg.MODEL.dropout = 0.1
cfg.MODEL.tie_embedding = True
cfg.MODEL.tie_proj = False
cfg.MODEL.atte... | 37.926829 | 133 | 0.694855 | 906 | 6,220 | 4.625828 | 0.257174 | 0.190885 | 0.047721 | 0.00859 | 0.161059 | 0.093295 | 0.060129 | 0.043904 | 0.024338 | 0.024338 | 0 | 0.040677 | 0.201608 | 6,220 | 163 | 134 | 38.159509 | 0.803262 | 0.213826 | 0 | 0.044444 | 0 | 0 | 0.029703 | 0.010726 | 0 | 0 | 0 | 0.006135 | 0 | 1 | 0.044444 | false | 0 | 0.007407 | 0 | 0.096296 | 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 | 0 | 0 | 1 | 0 |
b62114fe26c6e23da2c727e699637285d222ecc8 | 832 | py | Python | examples/yaml/main.py | pseeth/argbind | 1b953e370065d9f3c91dee5c93cc6447b72e3744 | [
"MIT"
] | 19 | 2020-10-14T00:00:13.000Z | 2022-02-20T23:21:18.000Z | examples/yaml/main.py | pseeth/argbind | 1b953e370065d9f3c91dee5c93cc6447b72e3744 | [
"MIT"
] | 3 | 2021-03-30T15:56:55.000Z | 2022-03-21T20:52:56.000Z | examples/yaml/main.py | pseeth/argbind | 1b953e370065d9f3c91dee5c93cc6447b72e3744 | [
"MIT"
] | 1 | 2021-04-13T18:51:29.000Z | 2021-04-13T18:51:29.000Z | import argbind
import typing
@argbind.bind()
def func(
arg1 : str = 'default',
arg2 : str = 'default',
arg3 : str = 'default',
arg4 : str = 'default',
arg5 : typing.List[str] = ['default'],
):
"""Dummy function for binding.
Parameters
----------
arg1 : str, optional
Argumen... | 22.486486 | 42 | 0.550481 | 99 | 832 | 4.535354 | 0.373737 | 0.111359 | 0.169265 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039792 | 0.305288 | 832 | 36 | 43 | 23.111111 | 0.737024 | 0.338942 | 0 | 0 | 0 | 0 | 0.282565 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.095238 | 0 | 0.142857 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
b6215c1441983e96ac508f482bf4dc70d993cca3 | 2,585 | py | Python | handlers/article.py | armaaar/Multi-Users-Blog | 8b28b2816337d8f023bc6c1741e91c86d3127874 | [
"MIT"
] | null | null | null | handlers/article.py | armaaar/Multi-Users-Blog | 8b28b2816337d8f023bc6c1741e91c86d3127874 | [
"MIT"
] | null | null | null | handlers/article.py | armaaar/Multi-Users-Blog | 8b28b2816337d8f023bc6c1741e91c86d3127874 | [
"MIT"
] | null | null | null | from handlers import tables, helper, Handler
import time
class ArticleHandler(Handler):
def __init__(self, *args, **kwargs):
super(ArticleHandler, self).__init__(*args, **kwargs)
self.body_class = 'article-page'
def get(self, article_id):
if not article_id.isdigit():
self.... | 41.693548 | 74 | 0.56441 | 276 | 2,585 | 5.09058 | 0.177536 | 0.102491 | 0.079715 | 0.074733 | 0.464769 | 0.323843 | 0.276868 | 0.276868 | 0.22847 | 0 | 0 | 0 | 0.324565 | 2,585 | 61 | 75 | 42.377049 | 0.804696 | 0 | 0 | 0.288462 | 0 | 0 | 0.081238 | 0.024371 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057692 | false | 0 | 0.038462 | 0 | 0.115385 | 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 | 0 | 0 | 1 | 0 |
b621e93761f39072896a2d33479068491b0d86fd | 428 | py | Python | Alignment/MuonAlignmentAlgorithms/python/MuonAlignmentPreFilter_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | Alignment/MuonAlignmentAlgorithms/python/MuonAlignmentPreFilter_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | Alignment/MuonAlignmentAlgorithms/python/MuonAlignmentPreFilter_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
MuonAlignmentPreFilter = cms.EDFilter("MuonAlignmentPreFilter",
tracksTag = cms.InputTag("ALCARECOMuAlCalIsolatedMu:GlobalMuon"),
minTrackPt = cms.double(20.),
minTrackP = cms.double(0.),
minTrackerHits = cms.int32(10),
minDTHits = cms.int32(6),
minCSCHits = cms.int... | 28.533333 | 67 | 0.728972 | 49 | 428 | 6.367347 | 0.612245 | 0.115385 | 0.064103 | 0.070513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045576 | 0.128505 | 428 | 14 | 68 | 30.571429 | 0.790885 | 0 | 0 | 0 | 0 | 0 | 0.135831 | 0.135831 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6239675b28fbe08cb92d202a432a29c5c6dfd60 | 13,299 | py | Python | widgets/KeyEvents.py | iubica/wx-portfolio | 12101986db72bcaffd9b744d514d6f9f651ad5a1 | [
"MIT"
] | 3 | 2018-03-19T07:57:10.000Z | 2021-07-05T08:55:14.000Z | widgets/KeyEvents.py | iubica/wx-portfolio | 12101986db72bcaffd9b744d514d6f9f651ad5a1 | [
"MIT"
] | 6 | 2020-03-24T15:40:18.000Z | 2021-12-13T19:46:09.000Z | widgets/KeyEvents.py | iubica/wx-portfolio | 12101986db72bcaffd9b744d514d6f9f651ad5a1 | [
"MIT"
] | 4 | 2018-03-29T21:59:55.000Z | 2019-12-16T14:56:38.000Z | #!/usr/bin/env python
import wx
import wx.lib.mixins.listctrl as listmix
from six import unichr
#----------------------------------------------------------------------
keyMap = {
wx.WXK_BACK : "WXK_BACK",
wx.WXK_TAB : "WXK_TAB",
wx.WXK_RETURN : "WXK_RETURN",
wx.WXK_ESCAPE : "WXK_ESCAPE",
wx.WXK_S... | 31 | 79 | 0.577788 | 1,672 | 13,299 | 4.356459 | 0.221292 | 0.08855 | 0.040774 | 0.023202 | 0.110242 | 0.086079 | 0.046266 | 0.035008 | 0.021691 | 0.021691 | 0 | 0.024121 | 0.264306 | 13,299 | 428 | 80 | 31.07243 | 0.72036 | 0.050756 | 0 | 0.075075 | 0 | 0 | 0.158775 | 0.005076 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072072 | false | 0 | 0.015015 | 0 | 0.102102 | 0.003003 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
b62433cd037f79979cfef4c3c7e8ba4b1fe36dc3 | 373 | py | Python | learner/time_callback.py | remmyzen/nqs-tensorflow2 | 2af5d5ebb108eac4d2daa5082bdef11c8107bd1b | [
"MIT"
] | 4 | 2021-07-29T17:52:54.000Z | 2022-02-15T06:32:15.000Z | learner/time_callback.py | remmyzen/nqs-tensorflow2 | 2af5d5ebb108eac4d2daa5082bdef11c8107bd1b | [
"MIT"
] | null | null | null | learner/time_callback.py | remmyzen/nqs-tensorflow2 | 2af5d5ebb108eac4d2daa5082bdef11c8107bd1b | [
"MIT"
] | null | null | null | import time
import tensorflow
from tensorflow import keras
class TimeCallback(keras.callbacks.Callback):
def __init__ (self):
super(TimeCallback, self).__init__()
def on_epoch_begin(self, epoch, logs):
self.epoch_time_start = time.time()
def on_epoch_end(self, batch, logs):
logs... | 21.941176 | 58 | 0.686327 | 48 | 373 | 5 | 0.416667 | 0.1125 | 0.083333 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209115 | 373 | 16 | 59 | 23.3125 | 0.813559 | 0 | 0 | 0 | 0 | 0 | 0.010753 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.3 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
b624ed925fddaa73c150d0b98d5fda740868dd65 | 4,071 | py | Python | app/movies/tests/test_view.py | NicolefAvella/ApiMovie | 4860b312f62dee73de6015c3029e75a6045f79a1 | [
"MIT"
] | null | null | null | app/movies/tests/test_view.py | NicolefAvella/ApiMovie | 4860b312f62dee73de6015c3029e75a6045f79a1 | [
"MIT"
] | null | null | null | app/movies/tests/test_view.py | NicolefAvella/ApiMovie | 4860b312f62dee73de6015c3029e75a6045f79a1 | [
"MIT"
] | null | null | null | from django.urls import reverse
from rest_framework.test import APITestCase, APIClient
from rest_framework.views import status
from movies.models import Movies
from movies.serializers import MoviesSerializer
from user.models import User
import json
class BaseViewTest(APITestCase):
client = APIClient()
def c... | 33.368852 | 123 | 0.590273 | 455 | 4,071 | 5.151648 | 0.287912 | 0.029863 | 0.058874 | 0.03413 | 0.325939 | 0.264505 | 0.226536 | 0.156997 | 0.156997 | 0.075939 | 0 | 0.011383 | 0.28789 | 4,071 | 121 | 124 | 33.644628 | 0.797171 | 0.07099 | 0 | 0.2 | 0 | 0 | 0.102695 | 0 | 0 | 0 | 0 | 0 | 0.077778 | 1 | 0.077778 | false | 0.022222 | 0.077778 | 0.022222 | 0.266667 | 0.011111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
b625420fbcf257af05779c352e7795a2abfb2733 | 5,426 | py | Python | examples/ConsumptionSaving/example_TractableBufferStockModel.py | HsinYiHung/HARK_HY | 086c46af5bd037fe1ced6906c6ea917ed58b134f | [
"Apache-2.0"
] | null | null | null | examples/ConsumptionSaving/example_TractableBufferStockModel.py | HsinYiHung/HARK_HY | 086c46af5bd037fe1ced6906c6ea917ed58b134f | [
"Apache-2.0"
] | null | null | null | examples/ConsumptionSaving/example_TractableBufferStockModel.py | HsinYiHung/HARK_HY | 086c46af5bd037fe1ced6906c6ea917ed58b134f | [
"Apache-2.0"
] | null | null | null | # %%
import numpy as np # numeric Python
from HARK.utilities import plotFuncs # basic plotting tools
from HARK.ConsumptionSaving.ConsMarkovModel import (
MarkovConsumerType,
) # An alternative, much longer way to solve the TBS model
from time import process_time # timing utility
from HARK.ConsumptionSaving.Trac... | 41.419847 | 116 | 0.71397 | 685 | 5,426 | 5.578102 | 0.354745 | 0.005758 | 0.031405 | 0.039257 | 0.200995 | 0.145512 | 0.132426 | 0.075373 | 0.075373 | 0.035069 | 0 | 0.021525 | 0.178032 | 5,426 | 130 | 117 | 41.738462 | 0.835202 | 0.441946 | 0 | 0.126214 | 0 | 0 | 0.181174 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.048544 | 0 | 0.048544 | 0.029126 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
b625948601304a37edf120d20921eb82fe58c66b | 3,299 | py | Python | util/utils.py | tanghaotommy/Self-supervised-Fewshot-Medical-Image-Segmentation | 9ff8cd2421ee2f7c038d8eec15b0296b365e0c46 | [
"MIT"
] | 176 | 2020-09-10T16:32:16.000Z | 2022-03-30T12:06:02.000Z | util/utils.py | tanghaotommy/Self-supervised-Fewshot-Medical-Image-Segmentation | 9ff8cd2421ee2f7c038d8eec15b0296b365e0c46 | [
"MIT"
] | 14 | 2020-09-18T02:56:53.000Z | 2022-03-16T00:31:12.000Z | util/utils.py | tanghaotommy/Self-supervised-Fewshot-Medical-Image-Segmentation | 9ff8cd2421ee2f7c038d8eec15b0296b365e0c46 | [
"MIT"
] | 29 | 2020-09-13T20:00:00.000Z | 2022-02-11T00:40:00.000Z | """Util functions
Extended from original PANet code
TODO: move part of dataset configurations to data_utils
"""
import random
import torch
import numpy as np
import operator
def set_seed(seed):
"""
Set the random seed
"""
random.seed(seed)
torch.manual_seed(seed)
torch.cuda.manual_seed_all(seed... | 27.722689 | 102 | 0.585935 | 501 | 3,299 | 3.668663 | 0.309381 | 0.038085 | 0.026115 | 0.006529 | 0.129489 | 0.100109 | 0.080522 | 0.025027 | 0.025027 | 0.025027 | 0 | 0.040316 | 0.270688 | 3,299 | 118 | 103 | 27.957627 | 0.723608 | 0.173992 | 0 | 0.0625 | 0 | 0 | 0.04084 | 0 | 0 | 0 | 0 | 0.008475 | 0 | 1 | 0.0875 | false | 0 | 0.05 | 0 | 0.2625 | 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 | 0 | 0 | 1 | 0 |
b625f6558f2741b2b169d86562822285a1812346 | 289 | py | Python | social/admin.py | ayushnanda21/Zingster | f23e9900b772c2e46f9ea4434a1266daa129b16b | [
"MIT"
] | 3 | 2021-05-11T16:31:34.000Z | 2022-03-08T05:54:30.000Z | social/admin.py | ayushnanda21/Zingster | f23e9900b772c2e46f9ea4434a1266daa129b16b | [
"MIT"
] | null | null | null | social/admin.py | ayushnanda21/Zingster | f23e9900b772c2e46f9ea4434a1266daa129b16b | [
"MIT"
] | 1 | 2021-10-09T18:35:48.000Z | 2021-10-09T18:35:48.000Z | from django.contrib import admin
from . models import Post,UserProfile,Notification,Comment,ThreadModel
# Register your models here.
admin.site.register(Post)
admin.site.register(UserProfile)
admin.site.register(Comment)
admin.site.register(Notification)
admin.site.register(ThreadModel) | 28.9 | 70 | 0.83391 | 37 | 289 | 6.513514 | 0.405405 | 0.186722 | 0.352697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069204 | 289 | 10 | 71 | 28.9 | 0.895911 | 0.089965 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 0 | 0.285714 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b626f7b18fa5d92ee89efc8f742da215c496b617 | 663 | py | Python | src/my_project/medium_problems/from1to50/final_prices_with_special_discount_shop.py | ivan1016017/LeetCodeAlgorithmProblems | 454284b76634cc34ed41f7fa30d857403cedf1bf | [
"MIT"
] | null | null | null | src/my_project/medium_problems/from1to50/final_prices_with_special_discount_shop.py | ivan1016017/LeetCodeAlgorithmProblems | 454284b76634cc34ed41f7fa30d857403cedf1bf | [
"MIT"
] | 1 | 2021-09-22T12:26:14.000Z | 2021-09-22T12:26:14.000Z | src/my_project/medium_problems/from1to50/final_prices_with_special_discount_shop.py | ivan1016017/LeetCodeAlgorithmProblems | 454284b76634cc34ed41f7fa30d857403cedf1bf | [
"MIT"
] | null | null | null | from typing import List
class Solution:
def finalPrices(self, prices: List[int]) -> List[int]:
# initialize variables
solution = list()
len_prices = len(prices)
flag = -1
for i in range(len_prices):
flag = -1
for j in range(i+1, len_prices):
... | 26.52 | 58 | 0.503771 | 76 | 663 | 4.355263 | 0.421053 | 0.108761 | 0.07855 | 0.084592 | 0.102719 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02457 | 0.386124 | 663 | 25 | 59 | 26.52 | 0.788698 | 0.030166 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.052632 | 0 | 0.210526 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b627c5785e80c08378e3b966c7612558816085f7 | 23,226 | py | Python | gammapy/estimators/ts_map.py | vikasj78/gammapy | 46deb872bbcbf36748df71e659dc3fa592f6dc27 | [
"BSD-3-Clause"
] | null | null | null | gammapy/estimators/ts_map.py | vikasj78/gammapy | 46deb872bbcbf36748df71e659dc3fa592f6dc27 | [
"BSD-3-Clause"
] | null | null | null | gammapy/estimators/ts_map.py | vikasj78/gammapy | 46deb872bbcbf36748df71e659dc3fa592f6dc27 | [
"BSD-3-Clause"
] | null | null | null | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""Functions to compute TS images."""
import functools
import logging
import warnings
import numpy as np
import scipy.optimize
from astropy.coordinates import Angle
from gammapy.datasets.map import MapEvaluator
from gammapy.maps import Map, WcsGeom
from ga... | 31.514247 | 94 | 0.592267 | 2,749 | 23,226 | 4.858858 | 0.157512 | 0.027551 | 0.034589 | 0.020214 | 0.30995 | 0.264356 | 0.22243 | 0.199221 | 0.161189 | 0.161189 | 0 | 0.008213 | 0.308017 | 23,226 | 736 | 95 | 31.557065 | 0.82286 | 0.331654 | 0 | 0.201681 | 0 | 0 | 0.060615 | 0 | 0 | 0 | 0 | 0.001359 | 0 | 1 | 0.047619 | false | 0 | 0.033613 | 0.005602 | 0.151261 | 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 | 0 | 0 | 1 | 0 |
b62a365f11a3573b0d239a3c19cd065df9a235b5 | 1,048 | py | Python | tests/middleware/test_secure_headers_middleware.py | Abeautifulsnow/masonite | f0ebb5ca05f5d88f21264e1cd0934435bd0a8791 | [
"MIT"
] | 1 | 2022-02-24T06:21:18.000Z | 2022-02-24T06:21:18.000Z | tests/middleware/test_secure_headers_middleware.py | Abeautifulsnow/masonite | f0ebb5ca05f5d88f21264e1cd0934435bd0a8791 | [
"MIT"
] | 1 | 2020-10-26T12:33:05.000Z | 2020-10-26T12:33:05.000Z | tests/middleware/test_secure_headers_middleware.py | Abeautifulsnow/masonite | f0ebb5ca05f5d88f21264e1cd0934435bd0a8791 | [
"MIT"
] | null | null | null | """ Test Secure Headers Midddleware """
from src.masonite.middleware import SecureHeadersMiddleware
from src.masonite.request import Request
from src.masonite.testing import TestCase, generate_wsgi
class TestSecureHeadersMiddleware(TestCase):
def setUp(self):
super().setUp()
self.request = Reque... | 40.307692 | 113 | 0.73187 | 118 | 1,048 | 6.389831 | 0.389831 | 0.116711 | 0.067639 | 0.095491 | 0.27321 | 0.27321 | 0.135279 | 0.135279 | 0 | 0 | 0 | 0.008979 | 0.149809 | 1,048 | 25 | 114 | 41.92 | 0.837262 | 0.02958 | 0 | 0.222222 | 1 | 0 | 0.136769 | 0.046581 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.388889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b62a7fea18f8f4556139383b37d4d565e04f0ab2 | 2,195 | py | Python | reporter/factories/slack.py | itsdkey/workreporter | daea921a03f4798c9acd689fc9bc6010e72cf886 | [
"MIT"
] | null | null | null | reporter/factories/slack.py | itsdkey/workreporter | daea921a03f4798c9acd689fc9bc6010e72cf886 | [
"MIT"
] | 21 | 2020-04-04T11:08:20.000Z | 2021-01-29T07:58:40.000Z | reporter/factories/slack.py | itsdkey/workreporter | daea921a03f4798c9acd689fc9bc6010e72cf886 | [
"MIT"
] | null | null | null | import string
from factory import Dict, DictFactory, Faker, List
from factory.fuzzy import FuzzyChoice, FuzzyText
from reporter.apps import __version__
class SectionButtonFactory(DictFactory):
"""A factory for a section with a button."""
type = 'section'
accessory = Dict({
'text': {
... | 24.662921 | 83 | 0.569021 | 208 | 2,195 | 5.947115 | 0.375 | 0.051738 | 0.092158 | 0.10671 | 0.224737 | 0.150364 | 0.101859 | 0.101859 | 0.101859 | 0.101859 | 0 | 0.001263 | 0.278815 | 2,195 | 88 | 84 | 24.943182 | 0.780164 | 0.153531 | 0 | 0.403509 | 0 | 0 | 0.175623 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.070175 | 0 | 0.368421 | 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 | 0 | 0 | 1 | 0 |
b62c2361b51ddd55b0ad6546bce400043a91ee1a | 362 | py | Python | tests/test_generator.py | skalarsystems/fhir-zeug | 19973438823c41247e3efb5b1d35e8942ae01fdb | [
"Apache-2.0"
] | 10 | 2020-04-23T18:13:13.000Z | 2020-11-25T07:45:26.000Z | tests/test_generator.py | skalarsystems/fhir-zeug | 19973438823c41247e3efb5b1d35e8942ae01fdb | [
"Apache-2.0"
] | 71 | 2020-05-20T09:11:22.000Z | 2020-10-26T14:01:03.000Z | tests/test_generator.py | skalarsystems/fhir-zeug | 19973438823c41247e3efb5b1d35e8942ae01fdb | [
"Apache-2.0"
] | 1 | 2020-06-03T11:55:47.000Z | 2020-06-03T11:55:47.000Z | from pathlib import Path
from fhirzeug.generator import generate
from fhirzeug.fhirspec import FHIRSpec
def test_write(spec: FHIRSpec, tmp_path: Path):
spec.generator_config.output_directory.destination = tmp_path
spec.generator_config.output_file.destination = Path("output.py")
generate(spec)
assert... | 30.166667 | 69 | 0.787293 | 49 | 362 | 5.632653 | 0.44898 | 0.076087 | 0.123188 | 0.166667 | 0.210145 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124309 | 362 | 11 | 70 | 32.909091 | 0.870662 | 0 | 0 | 0 | 1 | 0 | 0.049724 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
b62c3785b8faee0ef4f6c5a2aca7da2f7a1f610d | 4,040 | py | Python | pybrain/inspect_ops.py | Kevinfu510/TridentFrame | 9766b3642ad065662ca428212bfe3f3dca25139d | [
"MIT"
] | null | null | null | pybrain/inspect_ops.py | Kevinfu510/TridentFrame | 9766b3642ad065662ca428212bfe3f3dca25139d | [
"MIT"
] | null | null | null | pybrain/inspect_ops.py | Kevinfu510/TridentFrame | 9766b3642ad065662ca428212bfe3f3dca25139d | [
"MIT"
] | null | null | null | import os
import string
import math
from random import choices
from pprint import pprint
from urllib.parse import urlparse
from PIL import Image
from apng import APNG
from colorama import init, deinit
from hurry.filesize import size, alternative
from .config import IMG_EXTS, STATIC_IMG_EXTS, ANIMATED_IMG_EXTS
def _... | 35.752212 | 107 | 0.630446 | 572 | 4,040 | 4.298951 | 0.225524 | 0.0366 | 0.0122 | 0.02928 | 0.181781 | 0.125661 | 0.125661 | 0.102481 | 0.102481 | 0.102481 | 0 | 0.012317 | 0.256436 | 4,040 | 112 | 108 | 36.071429 | 0.806258 | 0.114851 | 0 | 0.113636 | 0 | 0 | 0.136709 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022727 | false | 0 | 0.125 | 0 | 0.170455 | 0.034091 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
b62dc7b9f4a6677f9a7cc3ff035bfd06aa2b42eb | 468 | py | Python | mlrun/data_types/__init__.py | yanburman/mlrun | f6d2bb1d99d163ab47774f15b86008bfd76f6ba1 | [
"Apache-2.0"
] | null | null | null | mlrun/data_types/__init__.py | yanburman/mlrun | f6d2bb1d99d163ab47774f15b86008bfd76f6ba1 | [
"Apache-2.0"
] | null | null | null | mlrun/data_types/__init__.py | yanburman/mlrun | f6d2bb1d99d163ab47774f15b86008bfd76f6ba1 | [
"Apache-2.0"
] | null | null | null | # flake8: noqa - this is until we take care of the F401 violations with respect to __all__ & sphinx
from .data_types import ValueType, pd_schema_to_value_type, InferOptions
from .infer import DFDataInfer
class BaseDataInfer:
infer_schema = None
get_preview = None
get_stats = None
def get_infer_interfa... | 24.631579 | 100 | 0.737179 | 61 | 468 | 5.42623 | 0.721311 | 0.042296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01084 | 0.211538 | 468 | 18 | 101 | 26 | 0.886179 | 0.209402 | 0 | 0 | 0 | 0 | 0.008152 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.909091 | 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 | 0 | 0 | 1 | 0 |
b62e3b273084a90d44d9b735364ee439b8417ee2 | 164 | py | Python | code/abc117_c_01.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | 3 | 2019-08-16T16:55:48.000Z | 2021-04-11T10:21:40.000Z | code/abc117_c_01.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | null | null | null | code/abc117_c_01.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | null | null | null | N,M=map(int,input().split())
X=sorted(set(list(map(int,input().split()))))
s=[]
for i in range(M-1):
s.append(X[i+1]-X[i])
s=sorted(s)[::-1]
print(sum(s[N-1:])) | 23.428571 | 45 | 0.573171 | 37 | 164 | 2.540541 | 0.513514 | 0.12766 | 0.234043 | 0.340426 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02649 | 0.079268 | 164 | 7 | 46 | 23.428571 | 0.596026 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | null | 0 | 1 | 1 | 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 | 3 |
b62e64b939d1bd9c03a4b5b970f6b1625a5fffd7 | 7,942 | py | Python | sanity_test.py | C2SM/clim-sanity-checker | 3d5d610b16ca7e87c841ef7ad06a94d0399b4773 | [
"MIT"
] | null | null | null | sanity_test.py | C2SM/clim-sanity-checker | 3d5d610b16ca7e87c841ef7ad06a94d0399b4773 | [
"MIT"
] | 3 | 2021-07-29T11:26:20.000Z | 2021-07-29T16:01:54.000Z | sanity_test.py | C2SM/clim-sanity-checker | 3d5d610b16ca7e87c841ef7ad06a94d0399b4773 | [
"MIT"
] | null | null | null | # standard modules
import argparse
import os
# aliased standard modules
import pandas as pd
# modules of sanity checker
import add_exp_to_ref
import lib.paths as paths
import lib.utils as utils
import perform_test
import process_data
import lib.logger_config as logger_config
import lib.test_config as test_config
# a... | 33.510549 | 78 | 0.559179 | 936 | 7,942 | 4.470085 | 0.251068 | 0.031788 | 0.02175 | 0.037285 | 0.131692 | 0.094407 | 0.039436 | 0.024857 | 0 | 0 | 0 | 0.001733 | 0.346134 | 7,942 | 236 | 79 | 33.652542 | 0.803967 | 0.05515 | 0 | 0.187879 | 0 | 0 | 0.179425 | 0.003005 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006061 | false | 0 | 0.072727 | 0 | 0.078788 | 0.006061 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
b62f88e0203b50c17277370c79cdacb1a42f5adc | 181 | py | Python | Statistics/Mean.py | Ra654/Stats-Calculator | 039ecaba3f8bb3ef69bb29e27f9c32d0fe2096b0 | [
"MIT"
] | null | null | null | Statistics/Mean.py | Ra654/Stats-Calculator | 039ecaba3f8bb3ef69bb29e27f9c32d0fe2096b0 | [
"MIT"
] | null | null | null | Statistics/Mean.py | Ra654/Stats-Calculator | 039ecaba3f8bb3ef69bb29e27f9c32d0fe2096b0 | [
"MIT"
] | null | null | null | from Calculator.Addition import addition
from Calculator.Division import division
def mean(num):
values = len(num)
total = sum(num)
return division(values, total)
| 13.923077 | 40 | 0.718232 | 23 | 181 | 5.652174 | 0.565217 | 0.215385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20442 | 181 | 12 | 41 | 15.083333 | 0.902778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 4 |
b62fba3135ecc22de76c3d70195022e9172fe712 | 144 | py | Python | notion2md/color.py | The-Soloist/notion2md | 1fb35b7798b273a89a4d280cd1a86b9cf9de88d5 | [
"MIT"
] | null | null | null | notion2md/color.py | The-Soloist/notion2md | 1fb35b7798b273a89a4d280cd1a86b9cf9de88d5 | [
"MIT"
] | null | null | null | notion2md/color.py | The-Soloist/notion2md | 1fb35b7798b273a89a4d280cd1a86b9cf9de88d5 | [
"MIT"
] | null | null | null | black = "\033[1;30m"
red = "\033[1;31m"
green = "\033[01;32m"
yellow = "\033[01;33m"
blue = "\033[01;34m"
white = "\033[01;37m"
end = "\033[0m"
| 18 | 22 | 0.569444 | 27 | 144 | 3.037037 | 0.62963 | 0.243902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.357724 | 0.145833 | 144 | 7 | 23 | 20.571429 | 0.308943 | 0 | 0 | 0 | 0 | 0 | 0.493056 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
b62ff9e5eec8b6d69d6eaf98f80cfd17b261bf8f | 253,617 | py | Python | src/MSI/optimization/matrix_loader.py | carlylagrotta/MSI | e958beb5df2a2d1018bbb2f96382b5c99b08c3ef | [
"MIT"
] | 1 | 2021-06-25T15:46:06.000Z | 2021-06-25T15:46:06.000Z | src/MSI/optimization/matrix_loader.py | TheBurkeLab/MSI | e958beb5df2a2d1018bbb2f96382b5c99b08c3ef | [
"MIT"
] | null | null | null | src/MSI/optimization/matrix_loader.py | TheBurkeLab/MSI | e958beb5df2a2d1018bbb2f96382b5c99b08c3ef | [
"MIT"
] | 2 | 2019-12-18T23:45:25.000Z | 2021-06-10T20:37:20.000Z | import numpy as np
import pandas as pd
from ..master_equation import master_equation as meq
#import MSI.master_equation.master_equation as meq
import copy
import re
import cantera as ct
class OptMatrix(object):
def __init__(self):
self.S_matrix = None
self.s_matrix = None
self.Y_matrix = N... | 62.590573 | 375 | 0.541718 | 24,945 | 253,617 | 5.133333 | 0.028864 | 0.013682 | 0.011386 | 0.015181 | 0.873394 | 0.838596 | 0.809342 | 0.782751 | 0.764367 | 0.747312 | 0 | 0.009446 | 0.365504 | 253,617 | 4,051 | 376 | 62.606023 | 0.786302 | 0.058624 | 0 | 0.703662 | 0 | 0.000378 | 0.086811 | 0.020438 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013213 | false | 0.00151 | 0.002643 | 0.000378 | 0.033975 | 0.001133 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
b630cb3736e98a7c40bd2693a526558233a1f22d | 745 | py | Python | meiduo_mall/meiduo_mall/utils/authenticate.py | yuluo0809/meiduo | 384935ee44bbbfa82314363ae0b886ca0a5ca70e | [
"MIT"
] | null | null | null | meiduo_mall/meiduo_mall/utils/authenticate.py | yuluo0809/meiduo | 384935ee44bbbfa82314363ae0b886ca0a5ca70e | [
"MIT"
] | null | null | null | meiduo_mall/meiduo_mall/utils/authenticate.py | yuluo0809/meiduo | 384935ee44bbbfa82314363ae0b886ca0a5ca70e | [
"MIT"
] | null | null | null | from django.contrib.auth.backends import ModelBackend
import re
from users.models import User
from django.db.models import Q
class MeiduoModelBackend(ModelBackend):
def authenticate(self, request, username=None, password=None, **kwargs):
if request is None:
try:
user = User.obj... | 32.391304 | 97 | 0.591946 | 82 | 745 | 5.341463 | 0.426829 | 0.045662 | 0.050228 | 0.082192 | 0.484018 | 0.484018 | 0.484018 | 0.484018 | 0.484018 | 0.484018 | 0 | 0 | 0.327517 | 745 | 22 | 98 | 33.863636 | 0.874252 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0.15 | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b6353c0bdb47d9dde56dcc48c5df873e0f1636bc | 1,278 | py | Python | api/rqst_getter.py | Maziar110/api_client_test | 52e5a2ffb0b46be71f34452132b13e5e941ae327 | [
"MIT"
] | null | null | null | api/rqst_getter.py | Maziar110/api_client_test | 52e5a2ffb0b46be71f34452132b13e5e941ae327 | [
"MIT"
] | null | null | null | api/rqst_getter.py | Maziar110/api_client_test | 52e5a2ffb0b46be71f34452132b13e5e941ae327 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from flask import Flask, request
from datetime import datetime
from flask_opentracing import FlaskTracing
from jaeger_client import Config
app = Flask(__name__)
config = Config(config=
{
'sampler': {'type': 'const', 'param': 1},
'local_agent':
{'reporting_host': '172.2.1.5'}
},
... | 22.034483 | 57 | 0.618153 | 171 | 1,278 | 4.444444 | 0.473684 | 0.082895 | 0.055263 | 0.034211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013065 | 0.22144 | 1,278 | 57 | 58 | 22.421053 | 0.750754 | 0.016432 | 0 | 0.046512 | 0 | 0 | 0.144338 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0 | 0.093023 | 0 | 0.186047 | 0.093023 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
b635f0d40cb3101837e75e9dc809c6fe5a254ffe | 149 | py | Python | problems/0493/compute.py | Dynortice/Project-Euler | 99a0201b5d5f147eab77fc52d9db8995045cded0 | [
"MIT"
] | null | null | null | problems/0493/compute.py | Dynortice/Project-Euler | 99a0201b5d5f147eab77fc52d9db8995045cded0 | [
"MIT"
] | null | null | null | problems/0493/compute.py | Dynortice/Project-Euler | 99a0201b5d5f147eab77fc52d9db8995045cded0 | [
"MIT"
] | null | null | null | from math import prod
def compute(n: int, k: int) -> float:
return round(7 * (1 - prod((i - k) / i for i in range(n // 7 * 6 + 1, n + 1))), 9)
| 24.833333 | 86 | 0.530201 | 30 | 149 | 2.633333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064815 | 0.275168 | 149 | 5 | 87 | 29.8 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 5 |
b636dd98793502ba5f717594cef6b13dafcec083 | 799 | py | Python | packages/core/minos-microservice-common/tests/test_common/test_model/test_abc.py | sorasful/minos-python | 1189330eebf6444627a2af6b29f347670f95a4dd | [
"MIT"
] | 247 | 2022-01-24T14:55:30.000Z | 2022-03-25T12:06:17.000Z | packages/core/minos-microservice-common/tests/test_common/test_model/test_abc.py | sorasful/minos-python | 1189330eebf6444627a2af6b29f347670f95a4dd | [
"MIT"
] | 400 | 2021-04-03T08:51:40.000Z | 2022-01-28T11:51:22.000Z | packages/core/minos-microservice-common/tests/test_common/test_model/test_abc.py | sorasful/minos-python | 1189330eebf6444627a2af6b29f347670f95a4dd | [
"MIT"
] | 21 | 2022-02-06T17:25:58.000Z | 2022-03-27T04:50:29.000Z | import unittest
from collections.abc import (
Mapping,
)
from uuid import (
UUID,
uuid4,
)
from minos.common import (
DeclarativeModel,
Field,
Model,
)
from tests.model_classes import (
FooBar,
)
class TestModel(unittest.TestCase):
def test_base(self):
self.assertTrue(issubcla... | 19.487805 | 87 | 0.628285 | 85 | 799 | 5.670588 | 0.435294 | 0.043568 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006711 | 0.254068 | 799 | 40 | 88 | 19.975 | 0.802013 | 0 | 0 | 0 | 0 | 0 | 0.035044 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 1 | 0.129032 | false | 0 | 0.16129 | 0.032258 | 0.387097 | 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 | 0 | 0 | 1 | 0 |
b63706705437012c6dcf007e355dcfa0951e03d3 | 7,197 | py | Python | twitterBattleGame/twitterbattlegame.py | ferrithemaker/makertrends-twitter | 6055a2437cf567f14aa513a906615488f7c35549 | [
"MIT"
] | null | null | null | twitterBattleGame/twitterbattlegame.py | ferrithemaker/makertrends-twitter | 6055a2437cf567f14aa513a906615488f7c35549 | [
"MIT"
] | null | null | null | twitterBattleGame/twitterbattlegame.py | ferrithemaker/makertrends-twitter | 6055a2437cf567f14aa513a906615488f7c35549 | [
"MIT"
] | null | null | null | from tweepy.streaming import StreamListener
from tweepy import OAuthHandler
from tweepy import Stream
import json
import threading
import sys
import pygame
import os
if len(sys.argv) == 3:
search_strings = [sys.argv[1],sys.argv[2]]
else:
print("Usage: twitterbattlegame.py [TREND1_STRING] [TREND2_STRING]")
sys.exit... | 25.888489 | 87 | 0.725163 | 923 | 7,197 | 5.605634 | 0.266522 | 0.023193 | 0.017395 | 0.024353 | 0.263433 | 0.232315 | 0.209123 | 0.192888 | 0.192888 | 0.153073 | 0 | 0.042928 | 0.155204 | 7,197 | 277 | 88 | 25.981949 | 0.808059 | 0.096707 | 0 | 0.247312 | 0 | 0 | 0.057368 | 0.024432 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026882 | false | 0 | 0.043011 | 0.010753 | 0.096774 | 0.005376 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
b6391b49ca6fcd9413c9bf008da249b350c2a41b | 568 | py | Python | am_instapound_backend/pictures/api/permissions.py | eryknn/am-instapound-backend | b7114ce323229e92b2770403cb72886726a461ef | [
"MIT"
] | null | null | null | am_instapound_backend/pictures/api/permissions.py | eryknn/am-instapound-backend | b7114ce323229e92b2770403cb72886726a461ef | [
"MIT"
] | null | null | null | am_instapound_backend/pictures/api/permissions.py | eryknn/am-instapound-backend | b7114ce323229e92b2770403cb72886726a461ef | [
"MIT"
] | null | null | null | from rest_framework import permissions
class IsPictureCreatorOrSafeOnly(permissions.BasePermission):
def has_object_permission(self, request, view, obj):
if request.method in permissions.SAFE_METHODS or view.action == 'like':
return True
return obj.uploaded_by == request.user
class... | 28.4 | 79 | 0.730634 | 63 | 568 | 6.444444 | 0.492063 | 0.123153 | 0.137931 | 0.152709 | 0.512315 | 0.512315 | 0.512315 | 0.512315 | 0.512315 | 0.512315 | 0 | 0 | 0.200704 | 568 | 19 | 80 | 29.894737 | 0.894273 | 0 | 0 | 0.363636 | 0 | 0 | 0.007042 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0 | 0.818182 | 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 |
b63a56f5ac4eb798614b96efdd9374c1833b3b4f | 5,597 | py | Python | focus/PhaseretrievalresultsTinyTim.py | sniemi/SamPy | e048756feca67197cf5f995afd7d75d8286e017b | [
"BSD-2-Clause"
] | 5 | 2016-05-28T14:12:28.000Z | 2021-04-22T10:23:12.000Z | focus/PhaseretrievalresultsTinyTim.py | sniemi/SamPy | e048756feca67197cf5f995afd7d75d8286e017b | [
"BSD-2-Clause"
] | null | null | null | focus/PhaseretrievalresultsTinyTim.py | sniemi/SamPy | e048756feca67197cf5f995afd7d75d8286e017b | [
"BSD-2-Clause"
] | 2 | 2015-07-13T10:04:10.000Z | 2021-04-22T10:23:23.000Z | """
TinyTim model PSF phase retrieval results.
HISTORY:
Created on March 3, 2011
:author: Sami-Matias Niemi
:contact: niemi@stsci.edu
:version: 0.1
"""
import matplotlib
matplotlib.use('PDF')
import pylab as P
import glob as G
import numpy as N
import os
from matplotlib import cm
import SamPy.focus.phaseretrievalres... | 31.44382 | 98 | 0.516527 | 740 | 5,597 | 3.867568 | 0.285135 | 0.033194 | 0.033543 | 0.025157 | 0.341719 | 0.314465 | 0.279874 | 0.177149 | 0.132075 | 0.104822 | 0 | 0.058224 | 0.334108 | 5,597 | 178 | 99 | 31.44382 | 0.709686 | 0.031803 | 0 | 0.193798 | 0 | 0 | 0.167243 | 0.006144 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.054264 | null | null | 0.093023 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b63aa4a552b83a7cbc88ec12fcd658dfebd4cd02 | 9,346 | py | Python | reachyAudio/reachyAudioAnswering.py | sizingservers/ReachyAudio | af91ed57015d693cc942620495541b482728a513 | [
"MIT"
] | 3 | 2021-04-28T15:16:50.000Z | 2021-11-01T17:36:09.000Z | reachyAudio/reachyAudioAnswering.py | sizingservers/Reachy.Audio | 7e515459b72f2bdc05ee73f159d6bcaaabaef6f5 | [
"MIT"
] | null | null | null | reachyAudio/reachyAudioAnswering.py | sizingservers/Reachy.Audio | 7e515459b72f2bdc05ee73f159d6bcaaabaef6f5 | [
"MIT"
] | 2 | 2021-11-22T13:43:37.000Z | 2022-03-03T09:44:16.000Z | """This module defines the ReachyAudioAnswering class."""
import nltk
import json
import torch
import random
import pickle
from nltk.stem.lancaster import LancasterStemmer
stemmer = LancasterStemmer()
CONFIDENCE_THRESHOLD = 0.7
class ReachyAudioAnswering():
"""ReachyAudioAnswering class.
Th... | 39.770213 | 80 | 0.581639 | 1,123 | 9,346 | 4.75512 | 0.247551 | 0.023408 | 0.01573 | 0.01573 | 0.148127 | 0.113858 | 0.09176 | 0.064794 | 0.035955 | 0.018727 | 0 | 0.00462 | 0.351594 | 9,346 | 234 | 81 | 39.940171 | 0.876568 | 0.398673 | 0 | 0.038462 | 0 | 0 | 0.048153 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048077 | false | 0 | 0.057692 | 0 | 0.153846 | 0.028846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
b63abdbbcdf468494ec4d6e1649a366257180326 | 4,937 | py | Python | mlp/mlp.py | sovrasov/mlp_sample | c27aa4893960e3531fb3135148a26fdf75a2f1d2 | [
"MIT"
] | null | null | null | mlp/mlp.py | sovrasov/mlp_sample | c27aa4893960e3531fb3135148a26fdf75a2f1d2 | [
"MIT"
] | null | null | null | mlp/mlp.py | sovrasov/mlp_sample | c27aa4893960e3531fb3135148a26fdf75a2f1d2 | [
"MIT"
] | null | null | null | import numpy as np
def softmax(x):
ex = np.exp(-x)
return ex / np.sum(ex)
def relu(x):
return x * (x > 0.)
def relu_der(x):
return np.ones_like(x) * (x > 0.)
class MLP:
def __init__(self, lr, bs, momentum, verbose, max_iters, eps=0., hidden_dims=[10]):
self.layers = []
self.label... | 38.570313 | 133 | 0.567956 | 652 | 4,937 | 4.075153 | 0.162577 | 0.103877 | 0.031615 | 0.028604 | 0.288671 | 0.24012 | 0.228453 | 0.164848 | 0.136244 | 0.072262 | 0 | 0.010715 | 0.300587 | 4,937 | 127 | 134 | 38.874016 | 0.758761 | 0.004254 | 0 | 0.075472 | 0 | 0 | 0.0407 | 0 | 0 | 0 | 0 | 0 | 0.056604 | 1 | 0.122642 | false | 0 | 0.009434 | 0.028302 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b63d8c3c7c6fd356106b5b059b25964eee3e6080 | 4,858 | py | Python | cap/path.py | ArashLab/CAP | 9e6d413e000ebfcade3020985fdedd9aa703d68a | [
"MIT"
] | null | null | null | cap/path.py | ArashLab/CAP | 9e6d413e000ebfcade3020985fdedd9aa703d68a | [
"MIT"
] | 8 | 2021-06-24T06:08:27.000Z | 2021-07-22T03:47:11.000Z | cap/path.py | ArashLab/CAP | 9e6d413e000ebfcade3020985fdedd9aa703d68a | [
"MIT"
] | null | null | null | import os
import subprocess
from munch import Munch
from .logutil import *
from .decorators import *
if __name__ == '__main__':
print('This module is not executable.')
exit(0)
FileSystems = [
'file',
'hdfs',
's3',
'gs',
'mysql',
'http',
'https'
]
# If a path could match more th... | 27.446328 | 132 | 0.550638 | 535 | 4,858 | 4.872897 | 0.257944 | 0.033755 | 0.026851 | 0.03529 | 0.084388 | 0.084388 | 0.084388 | 0.084388 | 0.062908 | 0.037591 | 0 | 0.002959 | 0.304446 | 4,858 | 176 | 133 | 27.602273 | 0.768571 | 0.087485 | 0 | 0.183099 | 0 | 0 | 0.140501 | 0.004744 | 0 | 0 | 0 | 0 | 0 | 1 | 0.126761 | false | 0 | 0.035211 | 0.049296 | 0.274648 | 0.007042 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
b63dbaf072cedc88a4143c750b428be483d16342 | 2,115 | py | Python | docdown/media.py | Mobelux/DocDown-Python | 7f6270dfe17678cc0f2e899f9665342a0784cffb | [
"BSD-3-Clause"
] | 1 | 2016-12-13T19:37:20.000Z | 2016-12-13T19:37:20.000Z | docdown/media.py | Mobelux/DocDown-Python | 7f6270dfe17678cc0f2e899f9665342a0784cffb | [
"BSD-3-Clause"
] | 2 | 2021-04-20T13:52:15.000Z | 2021-04-26T16:26:24.000Z | docdown/media.py | Mobelux/DocDown-Python | 7f6270dfe17678cc0f2e899f9665342a0784cffb | [
"BSD-3-Clause"
] | 4 | 2017-05-21T12:59:09.000Z | 2021-04-19T17:41:32.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals, print_function
from markdown.treeprocessors import Treeprocessor
from markdown.extensions import Extension
class MediaTreeprocessor(Treeprocessor):
def __init__(self, media_url=None, **kwargs):
self.media_url = media_url
... | 39.166667 | 112 | 0.597636 | 241 | 2,115 | 5.041494 | 0.369295 | 0.072428 | 0.115226 | 0.148148 | 0.148148 | 0.148148 | 0.148148 | 0.148148 | 0.148148 | 0.148148 | 0 | 0.001318 | 0.28227 | 2,115 | 53 | 113 | 39.90566 | 0.799078 | 0.242553 | 0 | 0 | 0 | 0 | 0.052963 | 0 | 0 | 0 | 0 | 0.018868 | 0 | 1 | 0.178571 | false | 0 | 0.107143 | 0.035714 | 0.392857 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
b63f2d5649a160a388ae34356632cd2b5e280e3f | 2,275 | py | Python | kymatio/phaseexp1d/pyscatwave/scatwave/scattering1d/examples/synthetic.py | sixin-zh/kymatio_wph | 237c0d2009766cf83b2145420a14d3c6e90dc983 | [
"BSD-3-Clause"
] | null | null | null | kymatio/phaseexp1d/pyscatwave/scatwave/scattering1d/examples/synthetic.py | sixin-zh/kymatio_wph | 237c0d2009766cf83b2145420a14d3c6e90dc983 | [
"BSD-3-Clause"
] | null | null | null | kymatio/phaseexp1d/pyscatwave/scatwave/scattering1d/examples/synthetic.py | sixin-zh/kymatio_wph | 237c0d2009766cf83b2145420a14d3c6e90dc983 | [
"BSD-3-Clause"
] | null | null | null | import torch
from torch.autograd import Variable
from scatwave import Scattering1D
import matplotlib.pyplot as plt
import numpy as np
from sklearn.utils import check_random_state
def generate_harmonic_signal(T, num_intervals=4, gamma=0.9, random_state=42):
"""
Generates a harmonic signal, which is made of pie... | 32.971014 | 77 | 0.638681 | 340 | 2,275 | 4.152941 | 0.35 | 0.031161 | 0.038244 | 0.048867 | 0.120397 | 0.120397 | 0.120397 | 0.077904 | 0.077904 | 0.077904 | 0 | 0.037543 | 0.227253 | 2,275 | 68 | 78 | 33.455882 | 0.765643 | 0.103736 | 0 | 0 | 1 | 0 | 0.051587 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039216 | false | 0 | 0.117647 | 0 | 0.176471 | 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 |
b640cb56865053f7246a487959ec18a980db1340 | 1,823 | py | Python | main.py | Vivektp/Image-UploadBot-1 | 01d70d4425d082639e46d954d0b900d478ad29c9 | [
"MIT"
] | null | null | null | main.py | Vivektp/Image-UploadBot-1 | 01d70d4425d082639e46d954d0b900d478ad29c9 | [
"MIT"
] | null | null | null | main.py | Vivektp/Image-UploadBot-1 | 01d70d4425d082639e46d954d0b900d478ad29c9 | [
"MIT"
] | 1 | 2021-01-07T02:26:26.000Z | 2021-01-07T02:26:26.000Z | from pyrogram import Client, filters
import os, shutil
from creds import my
from telegraph import upload_file
import logging
logging.basicConfig(level=logging.INFO)
TGraph = Client(
"Image upload bot",
bot_token = my.BOT_TOKEN,
api_id = my.API_ID,
api_hash = my.API_HASH
)
@TGraph.o... | 37.204082 | 302 | 0.64893 | 281 | 1,823 | 4.170819 | 0.459075 | 0.008532 | 0.038396 | 0.056314 | 0.199659 | 0.139932 | 0.061433 | 0.061433 | 0 | 0 | 0 | 0.002116 | 0.222161 | 1,823 | 48 | 303 | 37.979167 | 0.815938 | 0 | 0 | 0 | 0 | 0.052632 | 0.345352 | 0.017465 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.131579 | 0 | 0.157895 | 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 | 0 | 0 | 1 | 0 |
b64465faae2a9d77dbcd14ac084106824ac896e5 | 1,237 | py | Python | action-server/covidflow/utils/geocoding.py | nuecho/covidflow | 050665c629ea46bfebc0920ba1dba841c2268d08 | [
"MIT"
] | 7 | 2020-05-23T07:07:26.000Z | 2021-11-29T05:58:51.000Z | action-server/covidflow/utils/geocoding.py | dialoguemd/covidflow | b159b76dc68462f272614db4cbf716844872ebca | [
"MIT"
] | 210 | 2020-04-13T17:21:55.000Z | 2021-04-20T15:46:26.000Z | action-server/covidflow/utils/geocoding.py | dialoguemd/covidflow | b159b76dc68462f272614db4cbf716844872ebca | [
"MIT"
] | 3 | 2020-04-09T14:38:09.000Z | 2020-07-29T15:06:11.000Z | import os
from typing import Any, Dict, Optional
import googlemaps
import structlog
from geopy.point import Point
logger = structlog.get_logger()
DEFAULT_COUNTRY = "CA"
GOOGLE_API_KEY_ENV = "GOOGLE_GEOCODING_API_KEY"
GEOMETRY = "geometry"
LOCATION = "location"
LATITUDE = "lat"
LONGITUDE = "lng"
class Geocoding:
... | 26.319149 | 82 | 0.669361 | 149 | 1,237 | 5.33557 | 0.328859 | 0.050314 | 0.030189 | 0.037736 | 0.083019 | 0.083019 | 0.083019 | 0 | 0 | 0 | 0 | 0.002077 | 0.221504 | 1,237 | 46 | 83 | 26.891304 | 0.823468 | 0 | 0 | 0.125 | 0 | 0 | 0.067098 | 0.019402 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.15625 | 0 | 0.46875 | 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 | 0 | 0 | 1 | 0 |
b646b8cf155b631e43329c320bbdd520d22b745c | 5,319 | py | Python | calculadora.py | WelberthyGustavo/Calculadora | 2d01dba2db06796c8d237302f3ad024c8be359ea | [
"MIT"
] | 4 | 2020-04-21T01:42:30.000Z | 2020-10-26T01:59:33.000Z | calculadora.py | WelberthyGustavo/Calculadora | 2d01dba2db06796c8d237302f3ad024c8be359ea | [
"MIT"
] | null | null | null | calculadora.py | WelberthyGustavo/Calculadora | 2d01dba2db06796c8d237302f3ad024c8be359ea | [
"MIT"
] | null | null | null | from functools import partial
from tkinter import *
#program by~ Welberthy Gustavo Developer
def calc(btn):
if btn['text'].isdigit() or btn['text'] == '.':
lbl['text'] += btn['text']
def soma():
global sinal
sinal = 'soma'
global valor1
valor1 = lbl['text']
lb... | 29.065574 | 121 | 0.588644 | 764 | 5,319 | 4.102094 | 0.175393 | 0.080408 | 0.108488 | 0.114869 | 0.457243 | 0.438098 | 0.438098 | 0.395341 | 0.328334 | 0.328334 | 0 | 0.078087 | 0.217522 | 5,319 | 183 | 122 | 29.065574 | 0.674195 | 0.020493 | 0 | 0.280822 | 0 | 0 | 0.131396 | 0.005176 | 0.006849 | 0 | 0 | 0 | 0 | 1 | 0.068493 | false | 0 | 0.013699 | 0 | 0.082192 | 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 | 0 | 0 | 1 | 0 |
b6473eeb720250834546c75004a0f9e6557be8db | 1,928 | py | Python | fastfood/exc.py | enterstudio/fastfood | 6e18500b2d08698f6fa8d9d54daee6aa78f9efd0 | [
"Apache-2.0"
] | null | null | null | fastfood/exc.py | enterstudio/fastfood | 6e18500b2d08698f6fa8d9d54daee6aa78f9efd0 | [
"Apache-2.0"
] | null | null | null | fastfood/exc.py | enterstudio/fastfood | 6e18500b2d08698f6fa8d9d54daee6aa78f9efd0 | [
"Apache-2.0"
] | null | null | null | # Copyright 2015 Rackspace US, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 26.054054 | 76 | 0.708506 | 240 | 1,928 | 5.616667 | 0.554167 | 0.04451 | 0.019288 | 0.023739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008393 | 0.196577 | 1,928 | 73 | 77 | 26.410959 | 0.861846 | 0.528008 | 0 | 0.08 | 0 | 0 | 0.024706 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.04 | 0 | 0.32 | 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 | 0 | 0 | 1 | 0 |
b6476924d1d5ed2df7e1b8fbabacbac62cb195f4 | 2,320 | py | Python | script.py | Freakwill/nb-combination | 716227ba22f6c0c404898a00c18362a41ae3c701 | [
"MIT"
] | null | null | null | script.py | Freakwill/nb-combination | 716227ba22f6c0c404898a00c18362a41ae3c701 | [
"MIT"
] | null | null | null | script.py | Freakwill/nb-combination | 716227ba22f6c0c404898a00c18362a41ae3c701 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from nb_comb import *
from sklearn.naive_bayes import *
from sklearn.tree import *
from sklearn.neural_network import *
from sklearn.model_selection import *
import pandas as pd
data = pd.read_csv('dataset.csv', index_col=0)
X, Y = data.iloc[:, :-1], data.iloc[:, -1].va... | 31.351351 | 152 | 0.64181 | 284 | 2,320 | 5.137324 | 0.482394 | 0.06854 | 0.046607 | 0.024674 | 0.145305 | 0.145305 | 0.117889 | 0.117889 | 0 | 0 | 0 | 0.027055 | 0.171552 | 2,320 | 73 | 153 | 31.780822 | 0.73205 | 0.018534 | 0 | 0.04 | 0 | 0 | 0.194897 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.16 | 0 | 0.16 | 0.02 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
b648270cc7e72988968f45c3ecb5aa68300d62b6 | 397 | py | Python | Python/concatenation.py | aaavinash85/Python | cd58606f6f01c9bdccffb58e0f73825958679125 | [
"MIT"
] | null | null | null | Python/concatenation.py | aaavinash85/Python | cd58606f6f01c9bdccffb58e0f73825958679125 | [
"MIT"
] | null | null | null | Python/concatenation.py | aaavinash85/Python | cd58606f6f01c9bdccffb58e0f73825958679125 | [
"MIT"
] | null | null | null | name='avi'
print(name)
#name[0]='k' here this results in a error because strings are immutable
last_letters=name[1:]
print(last_letters)
print('k'+last_letters) #here is the string concateation
#here we replaced 'a' with 'k'
lname='koshal'
print("the concated string=",'Avinash'+ ln... | 33.083333 | 83 | 0.642317 | 60 | 397 | 4.2 | 0.566667 | 0.130952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019802 | 0.236776 | 397 | 11 | 84 | 36.090909 | 0.811881 | 0.453401 | 0 | 0 | 0 | 0 | 0.178404 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.555556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b64988acdfd787dd4e82daec7148ef1883880c19 | 25 | py | Python | python/testData/performance/overloads/fixture/overloads/__init__.py | 06needhamt/intellij-community | 63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b | [
"Apache-2.0"
] | null | null | null | python/testData/performance/overloads/fixture/overloads/__init__.py | 06needhamt/intellij-community | 63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b | [
"Apache-2.0"
] | null | null | null | python/testData/performance/overloads/fixture/overloads/__init__.py | 06needhamt/intellij-community | 63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b | [
"Apache-2.0"
] | null | null | null | def func(x, y):
pass
| 8.333333 | 15 | 0.52 | 5 | 25 | 2.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.32 | 25 | 2 | 16 | 12.5 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 5 |
b649d55b955af3b2e169f07a8038551b9e42e9ff | 17,165 | py | Python | placer/placer_lib_test.py | beomyeol/baechi | 796dd45f6db6eb11bb2fba2acfd56f51da024df8 | [
"NCSA"
] | 4 | 2020-09-27T01:32:23.000Z | 2022-03-06T22:49:19.000Z | placer/placer_lib_test.py | beomyeol/baechi | 796dd45f6db6eb11bb2fba2acfd56f51da024df8 | [
"NCSA"
] | null | null | null | placer/placer_lib_test.py | beomyeol/baechi | 796dd45f6db6eb11bb2fba2acfd56f51da024df8 | [
"NCSA"
] | 1 | 2021-11-15T06:36:29.000Z | 2021-11-15T06:36:29.000Z | # Copyright 2020 University of Illinois Board of Trustees. All Rights Reserved.
# Author: Beomyeol Jeon, DPRG (https://dprg.cs.uiuc.edu)
# This file is part of Baechi, which is released under specific terms. See file License.txt file for full license details.
# ==========================================================... | 45.651596 | 122 | 0.55887 | 2,159 | 17,165 | 4.192219 | 0.058824 | 0.092034 | 0.079549 | 0.085073 | 0.896034 | 0.878908 | 0.795161 | 0.777704 | 0.74942 | 0.723898 | 0 | 0.051886 | 0.267929 | 17,165 | 375 | 123 | 45.773333 | 0.668391 | 0.05785 | 0 | 0.726984 | 0 | 0 | 0.216766 | 0 | 0 | 0 | 0 | 0 | 0.260317 | 1 | 0.022222 | false | 0 | 0.009524 | 0 | 0.034921 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
b64a9935e9810f6c5f1a61a7b125688afb12a906 | 3,073 | py | Python | corehq/blobs/tests/test_export.py | roboton/commcare-hq | 3ccbe59508d98dd1963ca87cf249dd2df8af8ecc | [
"BSD-3-Clause"
] | null | null | null | corehq/blobs/tests/test_export.py | roboton/commcare-hq | 3ccbe59508d98dd1963ca87cf249dd2df8af8ecc | [
"BSD-3-Clause"
] | 1 | 2021-06-02T04:45:16.000Z | 2021-06-02T04:45:16.000Z | corehq/blobs/tests/test_export.py | roboton/commcare-hq | 3ccbe59508d98dd1963ca87cf249dd2df8af8ecc | [
"BSD-3-Clause"
] | null | null | null | import os
import uuid
from io import BytesIO
from tempfile import NamedTemporaryFile
from zipfile import ZipFile
from django.test import TestCase
from corehq.apps.hqmedia.models import CommCareAudio, CommCareVideo, CommCareImage
from corehq.blobs import CODES, get_blob_db
from corehq.blobs.export import EXPORTERS
fro... | 37.024096 | 99 | 0.617312 | 379 | 3,073 | 4.860158 | 0.324538 | 0.043431 | 0.045603 | 0.017372 | 0.248643 | 0.228013 | 0.153094 | 0.153094 | 0.115092 | 0.115092 | 0 | 0.00449 | 0.275301 | 3,073 | 82 | 100 | 37.47561 | 0.822631 | 0 | 0 | 0.144928 | 0 | 0 | 0.052392 | 0 | 0 | 0 | 0 | 0 | 0.057971 | 1 | 0.057971 | false | 0 | 0.144928 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b64f13ebbb17fadf2e674f33e8566118f8aa3dfa | 922 | py | Python | telescope/utils/annotation.py | froy0212/telescope | 05f6f058d8106c86cb4eb62239800ab2261eaaad | [
"MIT"
] | 25 | 2019-05-31T23:27:56.000Z | 2022-03-11T07:43:59.000Z | telescope/utils/annotation.py | jianguozhouzunyimedicaluniversity/telescope | 6cd55256c6016feffdbfe10346bfecfcb1e30965 | [
"MIT"
] | 24 | 2018-12-10T16:44:59.000Z | 2022-03-20T19:58:37.000Z | telescope/utils/annotation.py | jianguozhouzunyimedicaluniversity/telescope | 6cd55256c6016feffdbfe10346bfecfcb1e30965 | [
"MIT"
] | 8 | 2019-09-04T13:45:08.000Z | 2022-03-15T15:57:22.000Z | # -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import absolute_import
__author__ = 'Matthew L. Bendall'
__copyright__ = "Copyright (C) 2019 Matthew L. Bendall"
def get_annotation_class(annotation_class_name):
""" Get Annotation class matching provided name
Args:
annotat... | 34.148148 | 75 | 0.719089 | 96 | 922 | 6.53125 | 0.53125 | 0.191388 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006849 | 0.208243 | 922 | 26 | 76 | 35.461538 | 0.852055 | 0.321041 | 0 | 0 | 0 | 0 | 0.22973 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 0 | 0.416667 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b64f934d0ea49d49f24b9f5e245749b3e6460dfb | 6,012 | py | Python | web/frontend/views/config.py | tcsvn/activity-assistant | eeb0ef72a046a8a781ff31b384edec8243dd22a7 | [
"MIT"
] | 45 | 2020-11-06T20:31:13.000Z | 2022-03-24T06:14:18.000Z | web/frontend/views/config.py | tcsvn/activity-assistant | eeb0ef72a046a8a781ff31b384edec8243dd22a7 | [
"MIT"
] | 10 | 2020-12-14T00:17:11.000Z | 2022-02-06T19:39:01.000Z | web/frontend/views/config.py | tcsvn/activity-assistant | eeb0ef72a046a8a781ff31b384edec8243dd22a7 | [
"MIT"
] | 3 | 2020-12-15T22:50:09.000Z | 2022-03-13T21:12:28.000Z | from backend.models import *
from django.views.generic import TemplateView
from django.shortcuts import render, redirect
import os
import hass_api.rest as hass_rest
from frontend.util import get_server, refresh_hass_token, \
get_device_names, get_activity_names, get_person_hass_names, \
get_person_names, input... | 33.966102 | 83 | 0.614604 | 740 | 6,012 | 4.747297 | 0.178378 | 0.046968 | 0.031882 | 0.035867 | 0.356106 | 0.299744 | 0.281526 | 0.266154 | 0.221178 | 0.2078 | 0 | 0.002989 | 0.276447 | 6,012 | 176 | 84 | 34.159091 | 0.804598 | 0.03177 | 0 | 0.304054 | 0 | 0 | 0.088778 | 0.009654 | 0 | 0 | 0 | 0 | 0.027027 | 1 | 0.074324 | false | 0.006757 | 0.060811 | 0.006757 | 0.243243 | 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 | 0 | 0 | 1 | 0 |
b650cf8f96e44c66b3acac463da66cefb0635f96 | 1,843 | py | Python | File System/main.py | IRIDIUM-SUB/Sys_Course_Design | 52ec96378e9f9c8d7dc366efcba154df3f1cbc67 | [
"MIT"
] | null | null | null | File System/main.py | IRIDIUM-SUB/Sys_Course_Design | 52ec96378e9f9c8d7dc366efcba154df3f1cbc67 | [
"MIT"
] | null | null | null | File System/main.py | IRIDIUM-SUB/Sys_Course_Design | 52ec96378e9f9c8d7dc366efcba154df3f1cbc67 | [
"MIT"
] | null | null | null | import os
from toolbox import *
import pickle
import logging
import commandresolve
def console(data:dict,logger):
'''
Main console program
'''
consoleobj=commandresolve.commandresolve(data,logger)
flag=True# to mark if it is time to exit
while (flag):
rawcommand=input(">")
flag=c... | 26.710145 | 79 | 0.62344 | 203 | 1,843 | 5.62069 | 0.472906 | 0.052585 | 0.039439 | 0.031551 | 0.168273 | 0.168273 | 0.168273 | 0.168273 | 0.168273 | 0.168273 | 0 | 0.005908 | 0.265328 | 1,843 | 68 | 80 | 27.102941 | 0.83678 | 0.098209 | 0 | 0.186047 | 0 | 0 | 0.202989 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0 | 0.116279 | 0 | 0.162791 | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6511db93d9ed485759c7b0e96ca84109e977890 | 1,428 | py | Python | benchmarks/evaluate.py | benetech/Winnow2.0 | bc428d7f74bd7db71b6d70ab15dc7a5c37786c46 | [
"MIT"
] | 26 | 2019-12-16T21:22:14.000Z | 2022-03-25T16:05:32.000Z | benchmarks/evaluate.py | benetech/Winnow2.0 | bc428d7f74bd7db71b6d70ab15dc7a5c37786c46 | [
"MIT"
] | 325 | 2019-10-28T16:24:45.000Z | 2022-03-31T13:12:15.000Z | benchmarks/evaluate.py | benetech/Winnow2.0 | bc428d7f74bd7db71b6d70ab15dc7a5c37786c46 | [
"MIT"
] | 9 | 2019-10-09T16:20:38.000Z | 2021-12-22T18:44:45.000Z | import pandas as pd
from glob import glob
from utils import evaluate_augmented_dataset, evaluate_landmarks, evaluate_scene_detection
import os
from winnow.utils.config import resolve_config
import click
import numpy as np
import json
pd.options.mode.chained_assignment = None
@click.command()
@click.option("--benchma... | 26.444444 | 106 | 0.72549 | 179 | 1,428 | 5.592179 | 0.435754 | 0.077922 | 0.087912 | 0.111888 | 0.215784 | 0.13986 | 0.101898 | 0.101898 | 0 | 0 | 0 | 0 | 0.171569 | 1,428 | 53 | 107 | 26.943396 | 0.846154 | 0 | 0 | 0.157895 | 0 | 0 | 0.278711 | 0.015406 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0 | 0.210526 | 0 | 0.236842 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6513dae72381facd289c7f1890adba74d041c52 | 393 | py | Python | generate_azn.py | brunston/enigma | 3944fade43e100f3f631e308cf70fd28242a7b26 | [
"MIT"
] | null | null | null | generate_azn.py | brunston/enigma | 3944fade43e100f3f631e308cf70fd28242a7b26 | [
"MIT"
] | null | null | null | generate_azn.py | brunston/enigma | 3944fade43e100f3f631e308cf70fd28242a7b26 | [
"MIT"
] | null | null | null | # generate a*z_n = {ax : x in z_n} for any a in z_n
# brupoon
n = int(input("Z_n (integer n)? "))
a = int(input("a for a*Z_n (integer a)?"))
z_n = []
az_n = []
for i in range(n):
# standard set z_n
z_n.append(i)
for x in range(n):
value = (a*x) % n
# find ax in z_n
az_n.append(value)
#az_n = sort... | 18.714286 | 51 | 0.572519 | 88 | 393 | 2.363636 | 0.284091 | 0.115385 | 0.057692 | 0.048077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006601 | 0.229008 | 393 | 20 | 52 | 19.65 | 0.679868 | 0.274809 | 0 | 0 | 1 | 0 | 0.21147 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b653a28ba11c9bc2e835fdedaf5686ad56584df6 | 909 | py | Python | Symmetric/Stream-Cipher/LFSR/script.py | killua4564/Symmetric | 183ea2ec1d1342e9124e710a2de0fcad8b399f3d | [
"MIT"
] | 1 | 2021-05-05T14:03:10.000Z | 2021-05-05T14:03:10.000Z | Symmetric/Stream-Cipher/LFSR/script.py | killua4564/Symmetric | 183ea2ec1d1342e9124e710a2de0fcad8b399f3d | [
"MIT"
] | null | null | null | Symmetric/Stream-Cipher/LFSR/script.py | killua4564/Symmetric | 183ea2ec1d1342e9124e710a2de0fcad8b399f3d | [
"MIT"
] | null | null | null | from itertools import combinations
class LFSR:
def __init__(self, register, taps):
self.register = register
self.taps = taps
def next(self):
new = 0
ret = self.register[0]
for i in self.taps:
new ^= self.register[i]
self.register = self.register[1:]... | 24.567568 | 86 | 0.583058 | 130 | 909 | 4 | 0.338462 | 0.138462 | 0.023077 | 0.069231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023916 | 0.264026 | 909 | 36 | 87 | 25.25 | 0.753363 | 0 | 0 | 0 | 0 | 0 | 0.035204 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.034483 | 0 | 0.172414 | 0.103448 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
b653fd0336b468f5a851d3b61d250feb356b48bb | 39,571 | py | Python | _build/jupyter_execute/lectures/lecture4.py | hfboyce/tableau_course | 1480600c711bfa91d2169e999bbf194dd0332088 | [
"MIT"
] | null | null | null | _build/jupyter_execute/lectures/lecture4.py | hfboyce/tableau_course | 1480600c711bfa91d2169e999bbf194dd0332088 | [
"MIT"
] | null | null | null | _build/jupyter_execute/lectures/lecture4.py | hfboyce/tableau_course | 1480600c711bfa91d2169e999bbf194dd0332088 | [
"MIT"
] | null | null | null | # SVM with RBF Kernel and Feature Preprocessing
*Hayley Boyce, April 28th 2021*
# Importing our libraries
import pandas as pd
import altair as alt
import numpy as np
from sklearn.tree import DecisionTreeClassifier
from sklearn.dummy import DummyClassifier, DummyRegressor
from sklearn.neighbors import KNeighborsClassi... | 38.795098 | 354 | 0.753329 | 6,502 | 39,571 | 4.488465 | 0.146724 | 0.024877 | 0.00771 | 0.004523 | 0.226494 | 0.176227 | 0.152755 | 0.126028 | 0.106874 | 0.087171 | 0 | 0.012725 | 0.157969 | 39,571 | 1,019 | 355 | 38.83317 | 0.863145 | 0 | 0 | 0.150847 | 0 | 0.10339 | 0.043639 | 0.003104 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.00339 | 0.045763 | null | null | 0.025424 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b6547eff1c540120f338f2f7ef9eb6aa040c4692 | 169 | py | Python | HomeWork7.18.py | TiAmolj/Python-By-Joker | df37ddfb58c40d68298b4e862ba23671943de8cf | [
"Apache-2.0"
] | null | null | null | HomeWork7.18.py | TiAmolj/Python-By-Joker | df37ddfb58c40d68298b4e862ba23671943de8cf | [
"Apache-2.0"
] | null | null | null | HomeWork7.18.py | TiAmolj/Python-By-Joker | df37ddfb58c40d68298b4e862ba23671943de8cf | [
"Apache-2.0"
] | null | null | null | # 1
import math
r = float(input('输入五边形顶点到中心的距离:'))
s = 2*r*(math.sin(math.pi/5))
Area = 5*s*s/(4*math.tan(math.pi/5))
print('The area of the pentagon is %.2f'%Area) | 28.166667 | 46 | 0.633136 | 34 | 169 | 3.147059 | 0.617647 | 0.11215 | 0.130841 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048276 | 0.142012 | 169 | 6 | 46 | 28.166667 | 0.689655 | 0.005917 | 0 | 0 | 0 | 0 | 0.283951 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 |
b656698542559160e5320731eda58e8762740f15 | 20,918 | py | Python | app/models.py | LianYun/xing | de0656083133ca78bdbd42c64c2fa3ce1a4fe962 | [
"MIT"
] | 2 | 2015-12-20T15:21:30.000Z | 2016-08-25T08:56:31.000Z | app/models.py | LianYun/xing | de0656083133ca78bdbd42c64c2fa3ce1a4fe962 | [
"MIT"
] | 13 | 2015-12-13T15:57:30.000Z | 2016-03-06T09:46:17.000Z | app/models.py | LianYun/xing | de0656083133ca78bdbd42c64c2fa3ce1a4fe962 | [
"MIT"
] | null | null | null | # _*_ coding: utf-8 _*_
"""
本部分定义应用的所有数据库对象。
"""
from werkzeug.security import generate_password_hash, check_password_hash
from flask.ext.login import UserMixin, AnonymousUserMixin
from itsdangerous import TimedJSONWebSignatureSerializer as Serializer
from flask import current_app, url_for
import datetime
from markdow... | 34.747508 | 126 | 0.563295 | 2,285 | 20,918 | 4.978556 | 0.153611 | 0.031646 | 0.037799 | 0.025404 | 0.459124 | 0.360759 | 0.327444 | 0.268372 | 0.212377 | 0.171062 | 0 | 0.015569 | 0.321398 | 20,918 | 601 | 127 | 34.805324 | 0.78584 | 0.019074 | 0 | 0.29718 | 1 | 0.004338 | 0.079743 | 0.00511 | 0 | 0 | 0.001376 | 0 | 0 | 1 | 0.097614 | false | 0.023861 | 0.032538 | 0.030369 | 0.373102 | 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 |
b656d9867f056795fcb0613d2497677c41ee347e | 395 | py | Python | Curso Python/PythonExercicios/ex020.py | marcos-saba/Cursos | 1c063392867e9ed86d141dad8861a2a35488b1c6 | [
"MIT"
] | null | null | null | Curso Python/PythonExercicios/ex020.py | marcos-saba/Cursos | 1c063392867e9ed86d141dad8861a2a35488b1c6 | [
"MIT"
] | null | null | null | Curso Python/PythonExercicios/ex020.py | marcos-saba/Cursos | 1c063392867e9ed86d141dad8861a2a35488b1c6 | [
"MIT"
] | null | null | null | import random
al1 = input('Digite o nome do(a) primeiro(a) aluno(a): ')
al2 = input('Digite o nome do (a) segundo(a) aluno(a): ')
al3 = input('Digite o nome do(a) terceiro(a) aluno(a): ')
al4 = input('Digite o nome do(a) quarto(a) aluno(a): ')
lista = [al1, al2, al3, al4]
random.shuffle(lista)
print(f'A ordem dos aluno... | 24.6875 | 65 | 0.665823 | 70 | 395 | 3.757143 | 0.414286 | 0.1673 | 0.18251 | 0.243346 | 0.288973 | 0.288973 | 0 | 0 | 0 | 0 | 0 | 0.024242 | 0.164557 | 395 | 15 | 66 | 26.333333 | 0.772727 | 0.065823 | 0 | 0 | 0 | 0 | 0.610497 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.125 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b65918d8d15e00f6bff0edc5207846f79e249686 | 3,058 | py | Python | src/python_cryptography/4.signature.py | sudeep0901/python | 7a50af12e72d21ca4cad7f2afa4c6f929552043f | [
"MIT"
] | null | null | null | src/python_cryptography/4.signature.py | sudeep0901/python | 7a50af12e72d21ca4cad7f2afa4c6f929552043f | [
"MIT"
] | 3 | 2019-12-26T05:13:55.000Z | 2020-03-07T06:59:56.000Z | src/python_cryptography/4.signature.py | sudeep0901/python | 7a50af12e72d21ca4cad7f2afa4c6f929552043f | [
"MIT"
] | null | null | null | # RSA
# RSA Tool generate private public key
from Crypto.PublicKey import RSA
from Crypto.Cipher import PKCS1_OAEP
from Crypto import Random
from Crypto.Hash import SHA256
import base64
from Crypto.Signature import PKCS1_PSS
class CrptyoRSA:
PRIVATE_KEY_FILE = "private_key.pem"
PUBLIC_KEY_FILE = "public_key... | 31.854167 | 74 | 0.683126 | 384 | 3,058 | 5.138021 | 0.192708 | 0.082108 | 0.028383 | 0.03852 | 0.228586 | 0.130765 | 0.081095 | 0.081095 | 0 | 0 | 0 | 0.019789 | 0.223349 | 3,058 | 95 | 75 | 32.189474 | 0.810947 | 0.105625 | 0 | 0.031746 | 1 | 0 | 0.036357 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15873 | false | 0 | 0.15873 | 0.031746 | 0.47619 | 0.031746 | 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 |
b65951eb0ef82ffdc947697f22310dd635865642 | 4,122 | py | Python | src/mapping/cartographer.py | ThomasRanvier/map_maker | e36ddcc7d5959957d83fae778d8ef715c79712e7 | [
"MIT"
] | null | null | null | src/mapping/cartographer.py | ThomasRanvier/map_maker | e36ddcc7d5959957d83fae778d8ef715c79712e7 | [
"MIT"
] | null | null | null | src/mapping/cartographer.py | ThomasRanvier/map_maker | e36ddcc7d5959957d83fae778d8ef715c79712e7 | [
"MIT"
] | null | null | null | from utils.utils import bresenham_line
from math import hypot, cos, sin
from utils.position import Position
class Cartographer:
"""
Class that implements a Cartographer, used to update the map of the environment using the lasers echoes.
"""
def __init__(self, lasers_distance = 0.15, min_increment ... | 56.465753 | 161 | 0.63246 | 551 | 4,122 | 4.408348 | 0.170599 | 0.05599 | 0.065871 | 0.039522 | 0.361054 | 0.333059 | 0.272952 | 0.272952 | 0.272952 | 0.251544 | 0 | 0.009266 | 0.293062 | 4,122 | 72 | 162 | 57.25 | 0.824297 | 0.2705 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.075 | 0 | 0.175 | 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 | 0 | 0 | 1 | 0 |
b659d814fb65cdd70ff97f52711483193c63f987 | 5,106 | py | Python | demosys/opengl/texture.py | Contraz/demosys-py | 0479e0f3b0a3901f601bffd2d11e155f97b47555 | [
"0BSD"
] | 70 | 2017-03-31T12:01:41.000Z | 2022-01-05T06:30:57.000Z | demosys/opengl/texture.py | Contraz/demosys-py | 0479e0f3b0a3901f601bffd2d11e155f97b47555 | [
"0BSD"
] | 69 | 2017-06-18T22:37:46.000Z | 2020-01-23T04:02:22.000Z | demosys/opengl/texture.py | Contraz/demosys-py | 0479e0f3b0a3901f601bffd2d11e155f97b47555 | [
"0BSD"
] | 9 | 2017-05-13T21:13:02.000Z | 2020-10-01T18:09:49.000Z | """
Draw methods for textures and depth textures
"""
import moderngl
from demosys import context, geometry
class TextureHelper:
"""Draw methods for textures and depth textures"""
_quad = None
_texture2d_shader = None # Type: moderngl.Program
_texture2d_sampler = None # Type: moderngl.Sa... | 32.316456 | 102 | 0.526244 | 560 | 5,106 | 4.633929 | 0.1875 | 0.01079 | 0.009249 | 0.006166 | 0.601156 | 0.506358 | 0.506358 | 0.455491 | 0.426204 | 0.383815 | 0 | 0.034266 | 0.377007 | 5,106 | 157 | 103 | 32.522293 | 0.781515 | 0.159812 | 0 | 0.480769 | 0 | 0.028846 | 0.385503 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067308 | false | 0 | 0.028846 | 0.019231 | 0.173077 | 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 | 0 | 0 | 1 | 0 |
b65c498fb47fab313371a80e39143108433be373 | 1,136 | py | Python | avancado/POO/metaclasses.py | Nataliaartini/cursoPython | 01dc9cafd5cef1252ca84503e7a9011bd709ef46 | [
"MIT"
] | null | null | null | avancado/POO/metaclasses.py | Nataliaartini/cursoPython | 01dc9cafd5cef1252ca84503e7a9011bd709ef46 | [
"MIT"
] | null | null | null | avancado/POO/metaclasses.py | Nataliaartini/cursoPython | 01dc9cafd5cef1252ca84503e7a9011bd709ef46 | [
"MIT"
] | null | null | null | class Meta(type):
def __new__(mcs, name, bases, namespace):
print(name)
if name == "A":
return type.__new__(mcs, name, bases, namespace)
if "attr_classe" in namespace:
print(f"{name} tentou sobrescrever o atributo attr_classe")
del namespace["attr_classe"... | 25.818182 | 102 | 0.601232 | 164 | 1,136 | 4.006098 | 0.365854 | 0.106545 | 0.045662 | 0.068493 | 0.14003 | 0.103501 | 0.103501 | 0 | 0 | 0 | 0 | 0 | 0.277289 | 1,136 | 43 | 103 | 26.418605 | 0.800244 | 0.141725 | 0 | 0.066667 | 0 | 0 | 0.218557 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.333333 | 0.3 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
b65c6b66aba642829f6360c17136a6c5c24bf822 | 1,787 | py | Python | local_telegramListener/main.py | pratijayguha/AutomatedLightingControl | 0ce3b275b2734deb1695a28e43417784184dde84 | [
"MIT"
] | null | null | null | local_telegramListener/main.py | pratijayguha/AutomatedLightingControl | 0ce3b275b2734deb1695a28e43417784184dde84 | [
"MIT"
] | null | null | null | local_telegramListener/main.py | pratijayguha/AutomatedLightingControl | 0ce3b275b2734deb1695a28e43417784184dde84 | [
"MIT"
] | null | null | null | from utils import *
from bot import telegram_chatbot
from bulb import *
bot = telegram_chatbot(CONFIG_LOCATION)
print('Initialized Bot')
bulb = bulb(IP_RANGE)
print('Connected to bulb. IP address: {}'.format(bulb.address))
while True:
updates = bot.get_updates(offset=update_id)
updates = updates["r... | 36.469388 | 113 | 0.476777 | 175 | 1,787 | 4.771429 | 0.405714 | 0.052695 | 0.035928 | 0.045509 | 0.179641 | 0.064671 | 0.064671 | 0 | 0 | 0 | 0 | 0.000986 | 0.432569 | 1,787 | 48 | 114 | 37.229167 | 0.822485 | 0.029099 | 0 | 0.125 | 0 | 0 | 0.213436 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.075 | 0 | 0.075 | 0.075 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
b65c74d6a744f8c2e4b55ae69055df5a4d973d76 | 5,365 | py | Python | engines/email_engine.py | dho-IOD/futu_algo | f4bdf5edcc261efbd252e9e9c53a89563b0ed68f | [
"Apache-2.0"
] | 66 | 2020-12-29T15:03:21.000Z | 2022-03-29T01:24:59.000Z | engines/email_engine.py | dho-IOD/futu_algo | f4bdf5edcc261efbd252e9e9c53a89563b0ed68f | [
"Apache-2.0"
] | 22 | 2020-12-29T16:57:03.000Z | 2022-03-01T08:23:37.000Z | engines/email_engine.py | dho-IOD/futu_algo | f4bdf5edcc261efbd252e9e9c53a89563b0ed68f | [
"Apache-2.0"
] | 30 | 2021-01-07T07:33:22.000Z | 2022-03-17T11:37:02.000Z | # Futu Algo: Algorithmic High-Frequency Trading Framework
#
# 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 appli... | 33.742138 | 115 | 0.569618 | 614 | 5,365 | 4.938111 | 0.423453 | 0.03562 | 0.026385 | 0.029683 | 0.047493 | 0.031003 | 0.031003 | 0.031003 | 0.031003 | 0.031003 | 0 | 0.016816 | 0.312768 | 5,365 | 158 | 116 | 33.955696 | 0.805533 | 0.192917 | 0 | 0.0625 | 0 | 0.008929 | 0.578037 | 0.085047 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017857 | false | 0.026786 | 0.071429 | 0 | 0.098214 | 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 | 0 | 0 | 1 | 0 |
b65d709e70f3299340952e6028e59d6ffbba4e90 | 547 | py | Python | mundo_2/ex066.py | tseiiti/curso_em_video | 59565ce809c1f025fb41ab69de3b8c5b53c8f7b2 | [
"MIT"
] | null | null | null | mundo_2/ex066.py | tseiiti/curso_em_video | 59565ce809c1f025fb41ab69de3b8c5b53c8f7b2 | [
"MIT"
] | null | null | null | mundo_2/ex066.py | tseiiti/curso_em_video | 59565ce809c1f025fb41ab69de3b8c5b53c8f7b2 | [
"MIT"
] | null | null | null | from os import system, name
system('cls' if name == 'nt' else 'clear')
dsc = ('''DESAFIO 066:
Crie um programa que leia vários números inteiros pelo teclado. O
programa só vai parar quando o usuário digitar o valor 999, que é a
condição de parada. No final, mostre quantos números foram
digitados e qual foi a soma e... | 24.863636 | 68 | 0.670932 | 96 | 547 | 3.822917 | 0.71875 | 0.027248 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030516 | 0.221207 | 547 | 21 | 69 | 26.047619 | 0.830986 | 0 | 0 | 0 | 0 | 0 | 0.641682 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.055556 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b65ddb5d9166291914db0e277ccb00ba1af84adc | 502 | py | Python | ex03/ex03.py | cheng10/PythonExerciseBook | 11250020995c29e819540de787e91845b1bbbd99 | [
"MIT"
] | null | null | null | ex03/ex03.py | cheng10/PythonExerciseBook | 11250020995c29e819540de787e91845b1bbbd99 | [
"MIT"
] | null | null | null | ex03/ex03.py | cheng10/PythonExerciseBook | 11250020995c29e819540de787e91845b1bbbd99 | [
"MIT"
] | null | null | null | import string
import random
import redis
alpha = string.ascii_uppercase
l = []
while len(l) < 100:
res = ''
for i in range(16):
a = random.choice(alpha)
n = str(random.randrange(10))
rand = random.choice([a, n])
res += rand
if res not in l:
l.append(res)
# ... | 16.733333 | 56 | 0.589641 | 77 | 502 | 3.831169 | 0.558442 | 0.027119 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03252 | 0.26494 | 502 | 29 | 57 | 17.310345 | 0.766938 | 0.01992 | 0 | 0 | 0 | 0 | 0.067347 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.190476 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
b65e15ab134dbca7c02ad041522ed4d0b673d08e | 355 | py | Python | setup.py | hoogamaphone/world-manager | 8d4515b93d303cf91626f69257e7cf00e200807a | [
"MIT"
] | null | null | null | setup.py | hoogamaphone/world-manager | 8d4515b93d303cf91626f69257e7cf00e200807a | [
"MIT"
] | null | null | null | setup.py | hoogamaphone/world-manager | 8d4515b93d303cf91626f69257e7cf00e200807a | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
with open('requirements.txt') as f:
requirements = f.read()
setup(
name='World-Manager-CLI',
version='0.1.0',
packages=find_packages(),
include_package_data=True,
install_requires=requirements,
entry_points="""
[console_scripts]
w... | 22.1875 | 43 | 0.664789 | 43 | 355 | 5.325581 | 0.697674 | 0.104803 | 0.131004 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010601 | 0.202817 | 355 | 16 | 44 | 22.1875 | 0.798587 | 0 | 0 | 0 | 0 | 0 | 0.289326 | 0.070225 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 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 | 0 | 0 | 1 | 0 |
b65f74632dad7cb7cddacb4494d3a9d432840a4d | 1,886 | py | Python | main.py | Jelloeater/8266_web-relay | ac61a21bdfb1d6ff88be095f95059061f273c7b8 | [
"MIT"
] | null | null | null | main.py | Jelloeater/8266_web-relay | ac61a21bdfb1d6ff88be095f95059061f273c7b8 | [
"MIT"
] | null | null | null | main.py | Jelloeater/8266_web-relay | ac61a21bdfb1d6ff88be095f95059061f273c7b8 | [
"MIT"
] | null | null | null | import socket
import ure as re
import time
import machine
def run():
# Standard socket stuff:
host = ''
port = 80
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.bind((host, port))
sock.listen(1) # don't queue up any requests
while True:
csock, caddr = sock.accept()
... | 25.486486 | 108 | 0.544539 | 255 | 1,886 | 3.972549 | 0.364706 | 0.053307 | 0.035538 | 0.075025 | 0.347483 | 0.306022 | 0.256663 | 0.256663 | 0.16387 | 0.082922 | 0 | 0.026966 | 0.292153 | 1,886 | 73 | 109 | 25.835616 | 0.731835 | 0.039767 | 0 | 0.190476 | 0 | 0 | 0.39845 | 0.061981 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.079365 | 0 | 0.142857 | 0.095238 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
b66034e39bac2f1599e4b00ddf1f3159436715fb | 11,943 | py | Python | tools/pnfs_db_restore.py | moibenko/enstore | 6f2ff5b67ff73872a9e68f2a68b0bdaa70cef9b9 | [
"Intel",
"Unlicense"
] | 4 | 2021-10-17T11:17:59.000Z | 2022-02-28T16:58:40.000Z | tools/pnfs_db_restore.py | moibenko/enstore | 6f2ff5b67ff73872a9e68f2a68b0bdaa70cef9b9 | [
"Intel",
"Unlicense"
] | 17 | 2021-10-05T21:44:06.000Z | 2022-03-31T16:58:40.000Z | tools/pnfs_db_restore.py | moibenko/enstore | 6f2ff5b67ff73872a9e68f2a68b0bdaa70cef9b9 | [
"Intel",
"Unlicense"
] | 8 | 2021-09-02T18:55:49.000Z | 2022-03-09T21:05:28.000Z | #!/usr/bin/env python
###############################################################################
#
# This script is to be used to restore and start pnfs from live backup
#
#
# $Id$
###############################################################################
import getopt
import os
import pwd
import re
import s... | 33.928977 | 135 | 0.554635 | 1,463 | 11,943 | 4.416951 | 0.233766 | 0.01857 | 0.012999 | 0.010059 | 0.127669 | 0.113123 | 0.091767 | 0.079851 | 0.076447 | 0.051377 | 0 | 0.007341 | 0.292808 | 11,943 | 351 | 136 | 34.025641 | 0.757755 | 0 | 0 | 0.203571 | 0 | 0.010714 | 0.202183 | 0.026123 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.003571 | 0.05 | null | null | 0.078571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b6621346c805c1e140f63c6f56323e6a373a58b0 | 1,744 | py | Python | src_para/params.py | david-yoon/detecting-incongruity | 2e121fdba0da3a6a0c63df0c46a101a789fe7565 | [
"MIT"
] | 36 | 2018-11-25T21:43:10.000Z | 2022-03-13T10:47:50.000Z | src_para/params.py | david-yoon/detecting-incongruity | 2e121fdba0da3a6a0c63df0c46a101a789fe7565 | [
"MIT"
] | 1 | 2019-06-16T07:45:47.000Z | 2019-10-14T06:00:29.000Z | src_para/params.py | david-yoon/detecting-incongruity | 2e121fdba0da3a6a0c63df0c46a101a789fe7565 | [
"MIT"
] | 5 | 2018-12-09T06:40:19.000Z | 2019-10-17T22:07:58.000Z |
class Params:
################################
# dataset
################################
DATA_DIR = '../data/'
DATA_TRAIN_TITLE = 'train/train_title.npy'
DATA_TRAIN_BODY = 'train/train_body.npy'
DATA_TRAIN_LABEL = 'train/train_label.npy'
DATA_DEV_TITLE = 'dev/dev_title.n... | 26.830769 | 60 | 0.469037 | 193 | 1,744 | 3.818653 | 0.373057 | 0.066486 | 0.048847 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02385 | 0.326835 | 1,744 | 64 | 61 | 27.25 | 0.603918 | 0.053899 | 0 | 0 | 0 | 0 | 0.15736 | 0.065265 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b66267420e208edbe695e88c08255da8fc98c717 | 1,011 | py | Python | baselayer/services/webpack.py | yaowenxi/cesium | b87c8bcafc8a7707877f8b9e9b111a2a99b5aeee | [
"BSD-3-Clause"
] | null | null | null | baselayer/services/webpack.py | yaowenxi/cesium | b87c8bcafc8a7707877f8b9e9b111a2a99b5aeee | [
"BSD-3-Clause"
] | 6 | 2020-07-17T08:50:22.000Z | 2022-02-26T11:56:52.000Z | baselayer/services/webpack.py | yaowenxi/cesium | b87c8bcafc8a7707877f8b9e9b111a2a99b5aeee | [
"BSD-3-Clause"
] | null | null | null | # encoding: utf-8
from baselayer.app.env import load_env
import subprocess
import sys
import time
import os
from pathlib import Path
env, cfg = load_env()
bundle = Path(os.path.dirname(__file__))/'../../static/build/bundle.js'
def run(cmd):
print("开始了")
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stde... | 25.923077 | 78 | 0.672601 | 144 | 1,011 | 4.659722 | 0.534722 | 0.083458 | 0.084948 | 0.044709 | 0.154993 | 0.074516 | 0 | 0 | 0 | 0 | 0 | 0.004813 | 0.178042 | 1,011 | 38 | 79 | 26.605263 | 0.802647 | 0.088032 | 0 | 0.071429 | 0 | 0 | 0.314815 | 0.089325 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.214286 | 0 | 0.285714 | 0.178571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
b662cf2d0ef7d2f3d75fe691f2648a210b3ef79c | 2,911 | py | Python | tests/test_interfaces/test_to_binary.py | softwareunderground/subsurface | ad5a6d2d24e710ce7a78ec99b2075ddbb9dfeb7d | [
"Apache-2.0"
] | 55 | 2019-05-09T12:26:28.000Z | 2021-11-05T07:35:15.000Z | tests/test_interfaces/test_to_binary.py | softwareunderground/subsurface | ad5a6d2d24e710ce7a78ec99b2075ddbb9dfeb7d | [
"Apache-2.0"
] | 33 | 2019-05-09T16:28:19.000Z | 2022-03-30T13:40:21.000Z | tests/test_interfaces/test_to_binary.py | softwareunderground/subsurface | ad5a6d2d24e710ce7a78ec99b2075ddbb9dfeb7d | [
"Apache-2.0"
] | 14 | 2019-05-09T12:26:33.000Z | 2021-09-01T11:31:27.000Z | import imageio
import pytest
from subsurface.reader.read_netcdf import read_unstruct
import json
try:
import geopandas as gpd
GEOPANDAS_IMPORTED = True
except ImportError:
GEOPANDAS_IMPORTED = False
import pytest
import numpy as np
from subsurface import UnstructuredData, TriSurf, StructuredData
from subs... | 30.010309 | 98 | 0.671591 | 401 | 2,911 | 4.643392 | 0.254364 | 0.058002 | 0.064447 | 0.067669 | 0.336735 | 0.2116 | 0.093448 | 0.061224 | 0.061224 | 0.061224 | 0 | 0.010748 | 0.200962 | 2,911 | 96 | 99 | 30.322917 | 0.789768 | 0 | 0 | 0.166667 | 0 | 0 | 0.109584 | 0.017863 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.222222 | 0 | 0.319444 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b664480b84ef977aa0b729cdb4d540f18537ee31 | 185 | py | Python | Textual/ver.py | precla/plugins | 3bcfe83295264bc73e6dfe70ae15d9b3d6650f6e | [
"MIT"
] | 93 | 2015-01-05T23:19:59.000Z | 2022-02-16T00:56:50.000Z | Textual/ver.py | FichteForks/tingping-plugins | 85e07ccb3b66b78414dd5aa6f14f3a17bd384a2b | [
"MIT"
] | 7 | 2015-01-21T23:50:08.000Z | 2018-07-26T21:29:38.000Z | Textual/ver.py | FichteForks/tingping-plugins | 85e07ccb3b66b78414dd5aa6f14f3a17bd384a2b | [
"MIT"
] | 53 | 2015-01-19T12:16:58.000Z | 2021-08-30T01:18:29.000Z | #!/usr/bin/env python
import sys
if len(sys.argv) < 3 or not sys.argv[2]:
print('/echo nick required.')
sys.exit()
nick = sys.argv[2]
print('/ctcp {} VERSION'.format(nick))
| 15.416667 | 40 | 0.627027 | 31 | 185 | 3.741935 | 0.677419 | 0.181034 | 0.137931 | 0.224138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019737 | 0.178378 | 185 | 11 | 41 | 16.818182 | 0.743421 | 0.108108 | 0 | 0 | 0 | 0 | 0.219512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.333333 | 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 |
b666f9a2122d3e6d0251d1209907ba2b321af8c4 | 7,243 | py | Python | ticketsplease/ticketsplease/modules/adfs/envelope/sct.py | secureworks/whiskeysamlandfriends | 9334d0959aef64c06a716a5ed2e4f5582ab44a26 | [
"Apache-2.0"
] | 30 | 2021-11-10T16:28:34.000Z | 2022-03-03T19:46:21.000Z | ticketsplease/ticketsplease/modules/adfs/envelope/sct.py | secureworks/whiskeysamlandfriends | 9334d0959aef64c06a716a5ed2e4f5582ab44a26 | [
"Apache-2.0"
] | null | null | null | ticketsplease/ticketsplease/modules/adfs/envelope/sct.py | secureworks/whiskeysamlandfriends | 9334d0959aef64c06a716a5ed2e4f5582ab44a26 | [
"Apache-2.0"
] | 4 | 2021-11-11T19:29:11.000Z | 2021-11-15T15:56:57.000Z | # Copyright 2021 Secureworks
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 35.856436 | 477 | 0.620875 | 818 | 7,243 | 5.438875 | 0.304401 | 0.046977 | 0.02922 | 0.034615 | 0.205664 | 0.194426 | 0.152619 | 0.12677 | 0.080917 | 0.080917 | 0 | 0.030217 | 0.268949 | 7,243 | 201 | 478 | 36.034826 | 0.810009 | 0.312992 | 0 | 0.190909 | 0 | 0.009091 | 0.290131 | 0.097628 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027273 | false | 0 | 0.063636 | 0 | 0.127273 | 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 | 0 | 0 | 1 | 0 |
b6670f5cb5c8d632fc48bea8d155de2c30d4d414 | 1,014 | py | Python | tests/test_geometry.py | Zepmanbc/cps_workflow | 0926a01c3ef1f163b43edcdae84cc77a1842f3b0 | [
"MIT"
] | 35 | 2019-07-03T16:45:47.000Z | 2022-03-31T16:08:35.000Z | tests/test_geometry.py | Zepmanbc/cps_workflow | 0926a01c3ef1f163b43edcdae84cc77a1842f3b0 | [
"MIT"
] | 42 | 2019-07-03T17:12:34.000Z | 2022-03-17T12:46:40.000Z | tests/test_geometry.py | Zepmanbc/cps_workflow | 0926a01c3ef1f163b43edcdae84cc77a1842f3b0 | [
"MIT"
] | null | null | null | """Geometry testing."""
import creopyson
from .fixtures import mk_creoson_post_dict, mk_creoson_post_None, mk_getactivefile
def test_geometry_bound_box(mk_creoson_post_dict, mk_getactivefile):
"""Test bound_box."""
c = creopyson.Client()
result = c.geometry_bound_box(file_="file")
assert isinstance(re... | 32.709677 | 82 | 0.719921 | 132 | 1,014 | 5.181818 | 0.212121 | 0.061404 | 0.131579 | 0.099415 | 0.630117 | 0.489766 | 0.444444 | 0.266082 | 0.152047 | 0.152047 | 0 | 0.00927 | 0.148915 | 1,014 | 30 | 83 | 33.8 | 0.783314 | 0.067061 | 0 | 0.45 | 0 | 0 | 0.021622 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.15 | false | 0 | 0.1 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b667207fcb57bd4ec887cd84ed8d9aa150c17bab | 356 | py | Python | answers/Ananya Chandra/day4/question1.py | arc03/30-DaysOfCode-March-2021 | 6d6e11bf70280a578113f163352fa4fa8408baf6 | [
"MIT"
] | 22 | 2021-03-16T14:07:47.000Z | 2021-08-13T08:52:50.000Z | answers/Ananya Chandra/day4/question1.py | arc03/30-DaysOfCode-March-2021 | 6d6e11bf70280a578113f163352fa4fa8408baf6 | [
"MIT"
] | 174 | 2021-03-16T21:16:40.000Z | 2021-06-12T05:19:51.000Z | answers/Ananya Chandra/day4/question1.py | arc03/30-DaysOfCode-March-2021 | 6d6e11bf70280a578113f163352fa4fa8408baf6 | [
"MIT"
] | 135 | 2021-03-16T16:47:12.000Z | 2021-06-27T14:22:38.000Z | #print prime factorisation of a number
n= int(input("enter the number \n"))
def prime(t, j):
if(j<t):
if(t%j!=0):
return prime(t, j=j + 1)
else:
return 0
else:
return 1
i=2
while(n>1):
if (prime(i, 2) == 1):
while n % i == 0:
print(i, ","... | 17.8 | 38 | 0.429775 | 58 | 356 | 2.637931 | 0.396552 | 0.039216 | 0.091503 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046729 | 0.398876 | 356 | 19 | 39 | 18.736842 | 0.668224 | 0.103933 | 0 | 0.125 | 0 | 0 | 0.062893 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0 | 0 | 0.25 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b66835431fc34e47226d3889e3140fdd215f8887 | 1,865 | py | Python | awx/main/tests/functional/api/test_project.py | gitEdouble/awx | 5885654405ccaf465f08df4db998a6dafebd9b4d | [
"Apache-2.0"
] | 2 | 2018-11-12T18:52:24.000Z | 2020-05-22T18:41:21.000Z | awx/main/tests/functional/api/test_project.py | gitEdouble/awx | 5885654405ccaf465f08df4db998a6dafebd9b4d | [
"Apache-2.0"
] | 4 | 2022-02-15T01:33:35.000Z | 2022-03-02T12:47:41.000Z | awx/main/tests/functional/api/test_project.py | gitEdouble/awx | 5885654405ccaf465f08df4db998a6dafebd9b4d | [
"Apache-2.0"
] | 9 | 2019-05-11T00:03:30.000Z | 2021-07-07T16:09:17.000Z | import os
from backports.tempfile import TemporaryDirectory
from django.conf import settings
import pytest
from awx.api.versioning import reverse
@pytest.mark.django_db
class TestInsightsCredential:
def test_insights_credential(self, patch, insights_project, admin_user, insights_credential):
patch(insig... | 39.680851 | 97 | 0.716354 | 241 | 1,865 | 5.323651 | 0.282158 | 0.112237 | 0.049883 | 0.056118 | 0.590023 | 0.441933 | 0.357755 | 0.307872 | 0.144193 | 0.110678 | 0 | 0.009536 | 0.156568 | 1,865 | 46 | 98 | 40.543478 | 0.806103 | 0 | 0 | 0.257143 | 0 | 0 | 0.131903 | 0 | 0 | 0 | 0 | 0 | 0.085714 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.314286 | 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 | 0 | 0 | 1 | 0 |
b6688604687d78d27bb9bf2999491a71b429148b | 761 | py | Python | download codigo fontes/PythonExercicios/ex058.py | tidesjunior2018/Exercicios-da-linguagem-pyhton | 82bb9e7a121ce9fcb12591615120dd9f3a493555 | [
"MIT"
] | null | null | null | download codigo fontes/PythonExercicios/ex058.py | tidesjunior2018/Exercicios-da-linguagem-pyhton | 82bb9e7a121ce9fcb12591615120dd9f3a493555 | [
"MIT"
] | null | null | null | download codigo fontes/PythonExercicios/ex058.py | tidesjunior2018/Exercicios-da-linguagem-pyhton | 82bb9e7a121ce9fcb12591615120dd9f3a493555 | [
"MIT"
] | 1 | 2021-03-13T18:26:50.000Z | 2021-03-13T18:26:50.000Z | '''
58-Melhore o jogo do desafio 028 onde o computador vai "pensar" em um numero
entre 0 e 10.Só que agora vai tentar advinhar até acertar mostrando no final
quantos palpites foram necessários até vencer.
'''
import random
palpite=0
print('\033[33m{:=^40}'.format('JOGO DA ADVINHAÇÂO 2.0'))
print('\033[m')
numerosortead... | 29.269231 | 76 | 0.68594 | 110 | 761 | 4.745455 | 0.627273 | 0.114943 | 0.02682 | 0.034483 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046129 | 0.202365 | 761 | 25 | 77 | 30.44 | 0.813839 | 0.262812 | 0 | 0 | 0 | 0 | 0.280289 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.055556 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b66b0abcae2e9184f6893e0b8a75687e592b112c | 1,285 | py | Python | build/lib/bandwidth/voice/models/disconnect_cause_enum.py | Spaced-Out/python-bandwidth-sdk | 5332f29d1c093003444384f63a9d4a00843c954f | [
"MIT"
] | null | null | null | build/lib/bandwidth/voice/models/disconnect_cause_enum.py | Spaced-Out/python-bandwidth-sdk | 5332f29d1c093003444384f63a9d4a00843c954f | [
"MIT"
] | null | null | null | build/lib/bandwidth/voice/models/disconnect_cause_enum.py | Spaced-Out/python-bandwidth-sdk | 5332f29d1c093003444384f63a9d4a00843c954f | [
"MIT"
] | 1 | 2020-12-01T15:25:51.000Z | 2020-12-01T15:25:51.000Z | # -*- coding: utf-8 -*-
"""
bandwidth
This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
"""
class DisconnectCauseEnum(object):
"""Implementation of the 'DisconnectCause' enum.
TODO: type enum description here.
Attributes:
BUSY: TODO: type descript... | 23.363636 | 80 | 0.627237 | 120 | 1,285 | 6.716667 | 0.408333 | 0.129032 | 0.282878 | 0.342432 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003254 | 0.28249 | 1,285 | 54 | 81 | 23.796296 | 0.870933 | 0.577432 | 0 | 0 | 1 | 0 | 0.292271 | 0.05314 | 0 | 0 | 0 | 0.240741 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 5 |
b66b180fc94b3f3077d165f9eba30fc51374504c | 20,727 | py | Python | main.py | HeloiseKatharine/Analise-de-dados | e05e337c0ef03ef68815aa684bdf4466226e02cb | [
"MIT"
] | null | null | null | main.py | HeloiseKatharine/Analise-de-dados | e05e337c0ef03ef68815aa684bdf4466226e02cb | [
"MIT"
] | null | null | null | main.py | HeloiseKatharine/Analise-de-dados | e05e337c0ef03ef68815aa684bdf4466226e02cb | [
"MIT"
] | null | null | null | import pandas as pd
import matplotlib.pyplot as plt
from IPython.display import display
from pymongo import MongoClient
def get_database():
from pymongo import MongoClient
CONNECTION_STRING = "#"
from pymongo import MongoClient
client = MongoClient(CONNECTION_STRING) #conexão com o cliente
ret... | 58.716714 | 331 | 0.726444 | 2,819 | 20,727 | 5.184108 | 0.181979 | 0.022923 | 0.02395 | 0.037635 | 0.548241 | 0.523402 | 0.495415 | 0.455522 | 0.415287 | 0.372041 | 0 | 0.023087 | 0.157813 | 20,727 | 352 | 332 | 58.883523 | 0.814104 | 0.200174 | 0 | 0.230047 | 0 | 0.046948 | 0.493564 | 0.124459 | 0 | 0 | 0 | 0.002841 | 0 | 1 | 0.065728 | false | 0 | 0.028169 | 0 | 0.098592 | 0.093897 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
b66d2d5519a0ef3b8c25d34eaafb9a51b73e5edc | 2,235 | py | Python | utils/preprocess_word_embedding.py | JiaqiYao/dynamic_multi_label | dae8b34349f6da80e962fefd5349a29a0f5630f1 | [
"MIT"
] | 2 | 2020-11-29T07:09:29.000Z | 2020-12-22T07:40:24.000Z | utils/preprocess_word_embedding.py | JiaqiYao/dynamic_multi_label | dae8b34349f6da80e962fefd5349a29a0f5630f1 | [
"MIT"
] | null | null | null | utils/preprocess_word_embedding.py | JiaqiYao/dynamic_multi_label | dae8b34349f6da80e962fefd5349a29a0f5630f1 | [
"MIT"
] | null | null | null | import os
import json
from tqdm import tqdm
def build_vocabulary(data_dir):
with open(os.path.join(data_dir, 'train_texts.txt'), 'rt') as fin:
train_texts = json.load(fin)
print("train text cuts load done")
with open(os.path.join(data_dir, "Telegram", 'train_key_words.dat'), 'rb') as fin:... | 39.910714 | 103 | 0.632215 | 305 | 2,235 | 4.42623 | 0.259016 | 0.036296 | 0.044444 | 0.062222 | 0.257037 | 0.203704 | 0.138519 | 0.048889 | 0 | 0 | 0 | 0.013095 | 0.248322 | 2,235 | 55 | 104 | 40.636364 | 0.790476 | 0 | 0 | 0.041667 | 0 | 0 | 0.19229 | 0.055989 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.0625 | 0 | 0.104167 | 0.1875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
b66d60f785036a36c6d1ed53d8206d68665248c2 | 2,797 | py | Python | stories.py | grantat/news-similarity-core | 278399bb215954510fa265ba4bc5b28f7f02e1ee | [
"MIT"
] | null | null | null | stories.py | grantat/news-similarity-core | 278399bb215954510fa265ba4bc5b28f7f02e1ee | [
"MIT"
] | null | null | null | stories.py | grantat/news-similarity-core | 278399bb215954510fa265ba4bc5b28f7f02e1ee | [
"MIT"
] | null | null | null | import requests
import json
import hashlib
import os
import argparse
def load_links(filename):
with open(filename) as f:
data = json.load(f)
return data
def get_story(session, uri):
""" Get mementos for html using Internet Archive """
try:
print(uri)
r = session.get(uri,... | 34.530864 | 79 | 0.505899 | 302 | 2,797 | 4.539735 | 0.377483 | 0.023341 | 0.032093 | 0.032823 | 0.062728 | 0.062728 | 0.062728 | 0.062728 | 0.062728 | 0.062728 | 0 | 0.013411 | 0.386843 | 2,797 | 80 | 80 | 34.9625 | 0.786006 | 0.076153 | 0 | 0.032258 | 0 | 0 | 0.144134 | 0.035742 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.080645 | 0 | 0.16129 | 0.145161 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
b66d7aa9b11fd773a698acfd6bb25cc487a20615 | 3,564 | py | Python | python/downsample_images_in_rosbag.py | JzHuai0108/vio_common | 2d9c5fce761034cb4e55b3395d259ce392da8ee6 | [
"BSD-3-Clause"
] | 16 | 2017-06-02T07:22:31.000Z | 2022-03-23T02:39:39.000Z | python/downsample_images_in_rosbag.py | JzHuai0108/vio_common | 2d9c5fce761034cb4e55b3395d259ce392da8ee6 | [
"BSD-3-Clause"
] | 2 | 2020-08-10T04:01:35.000Z | 2021-01-18T08:21:17.000Z | python/downsample_images_in_rosbag.py | JzHuai0108/vio_common | 2d9c5fce761034cb4e55b3395d259ce392da8ee6 | [
"BSD-3-Clause"
] | 19 | 2017-08-03T02:23:11.000Z | 2021-09-22T02:17:46.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import os
import argparse
import rosbag
import rospy
from cv_bridge import CvBridge
import cv2
import play_images_in_rosbag
def decide_output_encoding(cv_img):
"""
For 16UC1 input image, we need to use mono16 as output enc... | 33.942857 | 84 | 0.623457 | 471 | 3,564 | 4.494692 | 0.314225 | 0.036372 | 0.033066 | 0.025508 | 0.16958 | 0.144544 | 0.144544 | 0.144544 | 0.085026 | 0.085026 | 0 | 0.021714 | 0.263468 | 3,564 | 104 | 85 | 34.269231 | 0.784762 | 0.076038 | 0 | 0.103896 | 0 | 0 | 0.192945 | 0.019939 | 0 | 0 | 0.001227 | 0 | 0 | 1 | 0.025974 | false | 0.025974 | 0.103896 | 0 | 0.142857 | 0.116883 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
b66e79df977dcaa16a976367fddaca5f9d45f186 | 1,770 | py | Python | gen_dataset.py | mantydze/knapsack-problem-py | 15caf65c8abde693f04eae0291933fa426aad1d9 | [
"MIT"
] | null | null | null | gen_dataset.py | mantydze/knapsack-problem-py | 15caf65c8abde693f04eae0291933fa426aad1d9 | [
"MIT"
] | null | null | null | gen_dataset.py | mantydze/knapsack-problem-py | 15caf65c8abde693f04eae0291933fa426aad1d9 | [
"MIT"
] | null | null | null | import json
import random
import sys
import time
sys.setrecursionlimit(2500)
memo = {}
def ks(capacity_left, n):
"""
capacity_left(int): remaining storage capacity of a bag
n(int): current item position
"""
if n == -1 or capacity_left == 0:
# No more items to add
return 0
... | 21.851852 | 82 | 0.564407 | 227 | 1,770 | 4.334802 | 0.38326 | 0.121951 | 0.066057 | 0.045732 | 0.079268 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027823 | 0.309605 | 1,770 | 81 | 83 | 21.851852 | 0.777414 | 0.210169 | 0 | 0.040816 | 0 | 0 | 0.051357 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020408 | false | 0 | 0.081633 | 0 | 0.183673 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b66f2f7d9d9618cebbca9ca3940382b757594d51 | 15,629 | py | Python | Juris_Cam.py | eugeniu1994/Stereo-Camera-LiDAR-calibration | 54eec1b911f78ca6b66c35803c47d016b7069499 | [
"Unlicense"
] | 6 | 2021-06-02T03:42:11.000Z | 2022-02-17T12:30:00.000Z | Juris_Cam.py | eugeniu1994/Stereo-Camera-LiDAR-calibration | 54eec1b911f78ca6b66c35803c47d016b7069499 | [
"Unlicense"
] | 1 | 2021-06-09T07:16:09.000Z | 2021-06-09T07:16:09.000Z | Juris_Cam.py | eugeniu1994/Stereo-Camera-LiDAR-calibration | 54eec1b911f78ca6b66c35803c47d016b7069499 | [
"Unlicense"
] | 1 | 2021-08-13T05:20:19.000Z | 2021-08-13T05:20:19.000Z | ''' CONFIDENTIAL
Copyright (c) 2021 Eugeniu Vezeteu,
Department of Remote Sensing and Photogrammetry,
Finnish Geospatial Research Institute (FGI), National Land Survey of Finland (NLS)
PERMISSION IS HEREBY LIMITED TO FGI'S INTERNAL USE ONLY. THE CODE
MAY BE RE-LICENSED, SHARED, OR TAKEN INTO... | 44.274788 | 134 | 0.550259 | 1,950 | 15,629 | 4.236923 | 0.161538 | 0.012709 | 0.018155 | 0.017429 | 0.298959 | 0.230816 | 0.183733 | 0.144275 | 0.10046 | 0.088356 | 0 | 0.032379 | 0.318255 | 15,629 | 352 | 135 | 44.400568 | 0.743031 | 0.173524 | 0 | 0.15311 | 0 | 0 | 0.072117 | 0.004552 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038278 | false | 0 | 0.023923 | 0 | 0.086124 | 0.129187 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
b670fa0f0102d71543d8ccaedc1d30fd90503e7f | 477 | py | Python | payroll/employee_management/migrations/0015_auto_20200302_1717.py | the-krafty-koder/pay-3 | 20426ef00b78c2a65fb4031a7692866bd22a991a | [
"MIT"
] | 1 | 2021-03-26T19:39:30.000Z | 2021-03-26T19:39:30.000Z | payroll/employee_management/migrations/0015_auto_20200302_1717.py | the-krafty-koder/pay-3 | 20426ef00b78c2a65fb4031a7692866bd22a991a | [
"MIT"
] | 12 | 2020-10-27T22:47:01.000Z | 2022-03-12T00:42:49.000Z | payroll/employee_management/migrations/0015_auto_20200302_1717.py | the-krafty-koder/pay-3 | 20426ef00b78c2a65fb4031a7692866bd22a991a | [
"MIT"
] | null | null | null | # Generated by Django 2.2.5 on 2020-03-02 17:17
from django.db import migrations, models
import employee_management.models
class Migration(migrations.Migration):
dependencies = [
('employee_management', '0014_auto_20200302_1716'),
]
operations = [
migrations.AlterField(
mode... | 23.85 | 93 | 0.66457 | 52 | 477 | 5.903846 | 0.692308 | 0.175896 | 0.156352 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085165 | 0.236897 | 477 | 19 | 94 | 25.105263 | 0.758242 | 0.09434 | 0 | 0 | 1 | 0 | 0.130233 | 0.053488 | 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 |
b67168bde4164840416443bfce8934cfcf44c9ab | 364 | py | Python | scripts/say-hello-world.py | OleBo/MathSo | 1f9fa0492d467c0bb0479768c503eee7723ae777 | [
"MIT"
] | 1 | 2022-01-08T23:52:57.000Z | 2022-01-08T23:52:57.000Z | scripts/say-hello-world.py | OleBo/MathSo | 1f9fa0492d467c0bb0479768c503eee7723ae777 | [
"MIT"
] | null | null | null | scripts/say-hello-world.py | OleBo/MathSo | 1f9fa0492d467c0bb0479768c503eee7723ae777 | [
"MIT"
] | 1 | 2022-01-02T21:14:30.000Z | 2022-01-02T21:14:30.000Z | # When your package is installed in editable mode, you can call
# instances of that package from any directory. For example, this
# script may be run by calling
#
# python scripts/say-hello-world.py
#
# and it will call methods inside our python_ml_template project.
from math_so.utils import say_hello_world
if __... | 28 | 65 | 0.760989 | 58 | 364 | 4.517241 | 0.827586 | 0.091603 | 0.148855 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175824 | 364 | 12 | 66 | 30.333333 | 0.873333 | 0.703297 | 0 | 0 | 0 | 0 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
b6726617c09fe5e7abbd64cdec30ed1653450f24 | 4,851 | py | Python | process_design.py | Multiscale-Genomics/C-HiC | 65e189acc79f5420a276a2f7fd740cb2a3ae8e27 | [
"Apache-2.0"
] | null | null | null | process_design.py | Multiscale-Genomics/C-HiC | 65e189acc79f5420a276a2f7fd740cb2a3ae8e27 | [
"Apache-2.0"
] | 1 | 2018-09-06T12:27:49.000Z | 2018-09-06T12:27:49.000Z | process_design.py | Multiscale-Genomics/CHi-C | 65e189acc79f5420a276a2f7fd740cb2a3ae8e27 | [
"Apache-2.0"
] | 1 | 2021-01-28T23:44:37.000Z | 2021-01-28T23:44:37.000Z | #!/usr/bin/env python
"""
.. See the NOTICE file distributed with this work for additional information
regarding copyright ownership.
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
... | 29.760736 | 76 | 0.59328 | 525 | 4,851 | 5.36 | 0.384762 | 0.027363 | 0.012793 | 0.029851 | 0.084932 | 0.024876 | 0.024876 | 0 | 0 | 0 | 0 | 0.002351 | 0.298495 | 4,851 | 162 | 77 | 29.944444 | 0.824567 | 0.37518 | 0 | 0.046154 | 0 | 0 | 0.161027 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046154 | false | 0 | 0.107692 | 0 | 0.2 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6743b740ca63e21a2b17bf0b3f68e580bd80f5d | 353 | py | Python | samples/sample.py | eduardo-vitral/BALRoGO | d4608aa861899fdd447613968fbd53019037bc46 | [
"MIT"
] | null | null | null | samples/sample.py | eduardo-vitral/BALRoGO | d4608aa861899fdd447613968fbd53019037bc46 | [
"MIT"
] | null | null | null | samples/sample.py | eduardo-vitral/BALRoGO | d4608aa861899fdd447613968fbd53019037bc46 | [
"MIT"
] | null | null | null | from balrogo import gaia
# Read HDU
print("Reading input...")
path = r"./samples/SCULPTOR.fits"
# Run sample code
print("Running code...")
final_data, results_sd, var_sd, results_pm, var_pm = gaia.extract_object(path)
print("results_pm:", results_pm)
print("var_pm:", var_pm)
print("results_sd:", result... | 22.0625 | 79 | 0.696884 | 54 | 353 | 4.296296 | 0.481481 | 0.116379 | 0.060345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147309 | 353 | 15 | 80 | 23.533333 | 0.770764 | 0.067989 | 0 | 0 | 0 | 0 | 0.289389 | 0.073955 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.666667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b6746a5b4942abdb9bcb80fa96fed7162930c929 | 5,136 | py | Python | em2/utils/web_push.py | samuelcolvin/em2 | a587eaa80c09a2b44d9c221d09a563aad5b05d78 | [
"MIT"
] | 5 | 2019-03-20T19:07:45.000Z | 2020-10-03T01:16:05.000Z | em2/utils/web_push.py | samuelcolvin/em2 | a587eaa80c09a2b44d9c221d09a563aad5b05d78 | [
"MIT"
] | 51 | 2019-03-12T16:19:46.000Z | 2021-03-09T00:52:24.000Z | em2/utils/web_push.py | samuelcolvin/em2 | a587eaa80c09a2b44d9c221d09a563aad5b05d78 | [
"MIT"
] | 1 | 2019-05-31T14:41:18.000Z | 2019-05-31T14:41:18.000Z | import asyncio
import base64
import hashlib
import logging
import re
import time
from typing import Optional
import http_ece
import ujson
from aiohttp import ClientSession
from arq import ArqRedis
from atoolbox import JsonErrors, RequestError
from cryptography.hazmat.backends import default_backend
from cryptography.h... | 33.350649 | 112 | 0.672702 | 681 | 5,136 | 4.9163 | 0.325991 | 0.030466 | 0.013142 | 0.016726 | 0.135603 | 0.096774 | 0.077061 | 0.061529 | 0.061529 | 0.037037 | 0 | 0.014353 | 0.213201 | 5,136 | 153 | 113 | 33.568627 | 0.814155 | 0.067757 | 0 | 0.035398 | 0 | 0 | 0.059455 | 0.005151 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035398 | false | 0 | 0.168142 | 0.026549 | 0.318584 | 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 | 0 | 0 | 1 | 0 |