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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a35602a1c5d4bcf343e77bdb5e4000c799357ee5 | 347 | py | Python | homeworks/kirill_shevchuk/hw05/level04.py | tgrx/Z22 | b2539682ff26c8b6d9f63a7670c8a9c6b614a8ff | [
"Apache-2.0"
] | null | null | null | homeworks/kirill_shevchuk/hw05/level04.py | tgrx/Z22 | b2539682ff26c8b6d9f63a7670c8a9c6b614a8ff | [
"Apache-2.0"
] | 8 | 2019-11-15T18:15:56.000Z | 2020-02-03T18:05:05.000Z | homeworks/kirill_shevchuk/hw05/level04.py | tgrx/Z22 | b2539682ff26c8b6d9f63a7670c8a9c6b614a8ff | [
"Apache-2.0"
] | null | null | null | from urllib.parse import urlparse
def host(url):
if not url:
return ""
data = urlparse(url)
if data.netloc:
return data.netloc
value = data.path.split("/")[0]
if "@" not in value or ":" not in value:
return value
from_ = value.find("@") + 1
for_ = value.find(":")
... | 21.6875 | 44 | 0.570605 | 47 | 347 | 4.12766 | 0.468085 | 0.051546 | 0.103093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00813 | 0.291066 | 347 | 15 | 45 | 23.133333 | 0.780488 | 0 | 0 | 0 | 0 | 0 | 0.014409 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a35af943a1738408edb737fd87daf987635bfda0 | 1,554 | py | Python | pertemuan_13/draw_utils.py | Muhammad-Yunus/Jetson-Nano-OpenCV-Learn | 933cb2594539a877030fb82dc3e6867409c1a557 | [
"Apache-2.0"
] | null | null | null | pertemuan_13/draw_utils.py | Muhammad-Yunus/Jetson-Nano-OpenCV-Learn | 933cb2594539a877030fb82dc3e6867409c1a557 | [
"Apache-2.0"
] | null | null | null | pertemuan_13/draw_utils.py | Muhammad-Yunus/Jetson-Nano-OpenCV-Learn | 933cb2594539a877030fb82dc3e6867409c1a557 | [
"Apache-2.0"
] | 2 | 2021-09-28T00:24:21.000Z | 2022-03-09T13:38:29.000Z | import cv2
import numpy as np
# draw_ped() function to draw bounding box with top labeled text
def draw_ped(img, label, x0, y0, xt, yt, font_size=0.4, alpha=0.5, bg_color=(255,0,0), ouline_color=(255,255,255), text_color=(0,0,0)):
overlay = np.zeros_like(img)
y0, yt = max(y0 - 15, 0) , min(yt + 15, img.shape[... | 39.846154 | 135 | 0.47426 | 199 | 1,554 | 3.59799 | 0.341709 | 0.03352 | 0.050279 | 0.03352 | 0.142458 | 0.142458 | 0.061453 | 0.061453 | 0 | 0 | 0 | 0.081808 | 0.402188 | 1,554 | 39 | 136 | 39.846154 | 0.688913 | 0.095882 | 0 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.060606 | 0 | 0.121212 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a35b39c11aff2330ec7aa6556e235a658417a015 | 2,204 | py | Python | Sensors/PortStart.py | cybertraining-dsc/boat | 32e4942b69059d1dd48d79c8e0f55bac438eb5e7 | [
"Apache-2.0"
] | null | null | null | Sensors/PortStart.py | cybertraining-dsc/boat | 32e4942b69059d1dd48d79c8e0f55bac438eb5e7 | [
"Apache-2.0"
] | null | null | null | Sensors/PortStart.py | cybertraining-dsc/boat | 32e4942b69059d1dd48d79c8e0f55bac438eb5e7 | [
"Apache-2.0"
] | null | null | null | """
Code modified from:
apps.fishandwhistle.net/archives/1155
"""
from __future__ import print_function
import serial
import sys
import glob
port_list = {}
def identifyPort(port):
"""
tests the port and identifies what device is attached to it from probing it
:param port:
:return: a port list dict w... | 26.878049 | 79 | 0.583031 | 271 | 2,204 | 4.656827 | 0.420664 | 0.044374 | 0.066561 | 0.017433 | 0.141046 | 0.141046 | 0.141046 | 0.141046 | 0.141046 | 0.141046 | 0 | 0.012298 | 0.299002 | 2,204 | 81 | 80 | 27.209877 | 0.804531 | 0.197822 | 0 | 0.163265 | 0 | 0 | 0.107965 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081633 | false | 0 | 0.081633 | 0 | 0.244898 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a35f847cfae16fa50a6998fa4b3afcf7165085cb | 883 | py | Python | tests/core/test_registered_plugins.py | MajesticFalcon/nornir | 75f82dbb7f492d0f283abcc5eb6b5fee08db9487 | [
"Apache-2.0"
] | 955 | 2018-05-16T17:10:12.000Z | 2022-03-30T20:14:26.000Z | tests/core/test_registered_plugins.py | MajesticFalcon/nornir | 75f82dbb7f492d0f283abcc5eb6b5fee08db9487 | [
"Apache-2.0"
] | 490 | 2018-05-16T08:00:22.000Z | 2022-03-28T21:14:39.000Z | tests/core/test_registered_plugins.py | MajesticFalcon/nornir | 75f82dbb7f492d0f283abcc5eb6b5fee08db9487 | [
"Apache-2.0"
] | 243 | 2018-05-17T11:07:24.000Z | 2022-03-27T18:01:07.000Z | from nornir.core.plugins.inventory import InventoryPluginRegister
from nornir.core.plugins.runners import RunnersPluginRegister
from nornir.plugins.inventory import SimpleInventory
from nornir.plugins.runners import SerialRunner, ThreadedRunner
from nornir_utils.plugins.inventory import YAMLInventory
class Test:
... | 33.961538 | 65 | 0.737259 | 72 | 883 | 8.916667 | 0.375 | 0.077882 | 0.102804 | 0.065421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197055 | 883 | 25 | 66 | 35.32 | 0.905501 | 0 | 0 | 0 | 0 | 0 | 0.047565 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.1 | false | 0 | 0.25 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a3670442cb8f6ed8744f92e8d59bbfa74b3455a4 | 481 | py | Python | app/collect/patch.py | luiscape/hdxscraper-unhcr-mediterranean-refugees | 372bd7f565569e1d3a8428e6f09e86a01842bb9c | [
"MIT"
] | null | null | null | app/collect/patch.py | luiscape/hdxscraper-unhcr-mediterranean-refugees | 372bd7f565569e1d3a8428e6f09e86a01842bb9c | [
"MIT"
] | 2 | 2015-10-08T15:41:56.000Z | 2015-10-08T15:50:48.000Z | app/collect/patch.py | luiscape/hdxscraper-unhcr-mediterranean-refugees | 372bd7f565569e1d3a8428e6f09e86a01842bb9c | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
import time
def Epoch(data):
'''Patching Epoch timestamps.'''
for record in data:
record['last_updated'] = time.strftime('%Y-%m-%d', time.localtime(record['last_updated']))
return data
def Date(data):
'''Patching date stamps.'''
for record in data:
m = t... | 20.041667 | 94 | 0.619543 | 67 | 481 | 4.402985 | 0.477612 | 0.081356 | 0.074576 | 0.101695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002506 | 0.170478 | 481 | 23 | 95 | 20.913043 | 0.736842 | 0.180873 | 0 | 0.363636 | 0 | 0 | 0.173228 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a3686d9e544eb4ac435a125dc81bd7efb5af661e | 1,875 | py | Python | datasets/nlmap/preprocess_nlmap.py | zhuang-li/pyaudio_with_tranx | 934d0431539564bb815c4c2c6399fe9d2fe7db55 | [
"Apache-2.0"
] | null | null | null | datasets/nlmap/preprocess_nlmap.py | zhuang-li/pyaudio_with_tranx | 934d0431539564bb815c4c2c6399fe9d2fe7db55 | [
"Apache-2.0"
] | null | null | null | datasets/nlmap/preprocess_nlmap.py | zhuang-li/pyaudio_with_tranx | 934d0431539564bb815c4c2c6399fe9d2fe7db55 | [
"Apache-2.0"
] | null | null | null | from nltk.tokenize import TweetTokenizer
import io
def read_en_lines(lines):
tknzr = TweetTokenizer()
result = []
for line in lines:
result.append(tknzr.tokenize(line))
return result
def read_mrl_lines(lines):
result = []
for line in lines:
tgt = ''
for i, ch in enume... | 29.296875 | 82 | 0.6208 | 273 | 1,875 | 3.930403 | 0.194139 | 0.045666 | 0.041007 | 0.063374 | 0.300093 | 0.149115 | 0.05219 | 0.05219 | 0 | 0 | 0 | 0.000716 | 0.255467 | 1,875 | 64 | 83 | 29.296875 | 0.767908 | 0 | 0 | 0.163265 | 0 | 0 | 0.060235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102041 | false | 0 | 0.040816 | 0 | 0.204082 | 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 |
a3697ddf813bc6d7c74b1660f1c7cbb233952678 | 2,228 | py | Python | ocr.py | RonLek/ALPR-and-Identification-for-Indian-Vehicles | 2c6cd5d6d883e67ed17a8dbb96830f813c6ab55e | [
"FTL",
"Xnet",
"X11"
] | 13 | 2020-09-25T16:48:06.000Z | 2022-01-31T01:36:33.000Z | ocr.py | RonLek/ALPR-and-Identification-for-Indian-Vehicles | 2c6cd5d6d883e67ed17a8dbb96830f813c6ab55e | [
"FTL",
"Xnet",
"X11"
] | 5 | 2021-01-19T09:36:59.000Z | 2022-03-25T06:56:08.000Z | ocr.py | RonLek/ALPR-and-Identification-for-Indian-Vehicles | 2c6cd5d6d883e67ed17a8dbb96830f813c6ab55e | [
"FTL",
"Xnet",
"X11"
] | 7 | 2020-09-24T01:15:52.000Z | 2022-03-23T06:50:55.000Z | states = ['AP', 'AR', 'AS', 'BR', 'CG', 'GA',
'GJ', 'HR', 'HP', 'JH', 'KA', 'KL',
'MP', 'MH', 'MN', 'ML', 'MZ', 'NL',
'OD', 'PB', 'RJ', 'SK', 'TN', 'TS',
'TR', 'UP', 'UK', 'WB', 'AN', 'CH',
'DD', 'DL', 'JK', 'LA', 'LD', 'PY']
def resultplate(plate):
result=... | 30.520548 | 75 | 0.508528 | 249 | 2,228 | 4.522088 | 0.526104 | 0.044405 | 0.060391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006631 | 0.32316 | 2,228 | 72 | 76 | 30.944444 | 0.740053 | 0.153501 | 0 | 0.098039 | 0 | 0 | 0.112222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.039216 | 0 | 0.137255 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a36a1929d767b48efa4751ceab577496580f2e66 | 667 | py | Python | setup.py | LehmRob/photorename | b499b08f225264e5c7be3b51988d8e8fcbeb088f | [
"MIT"
] | null | null | null | setup.py | LehmRob/photorename | b499b08f225264e5c7be3b51988d8e8fcbeb088f | [
"MIT"
] | null | null | null | setup.py | LehmRob/photorename | b499b08f225264e5c7be3b51988d8e8fcbeb088f | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from setuptools import setup
from distutils.util import convert_path
main_ns = {}
vpath = convert_path('photorename/version.py')
with open(vpath) as vfile:
exec(vfile.read(), main_ns)
setup(
name='photorename',
version=main_ns['__version__'],
description='bulk rename photos in ... | 23.821429 | 58 | 0.667166 | 79 | 667 | 5.443038 | 0.746835 | 0.04186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001838 | 0.184408 | 667 | 27 | 59 | 24.703704 | 0.788603 | 0.031484 | 0 | 0 | 0 | 0 | 0.325581 | 0.074419 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.086957 | 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 |
a36e85cc522d69fee1eb9747d2afca83c85e094a | 1,643 | py | Python | src/ctc/protocols/curve_utils/cli/curve_pools_command.py | fei-protocol/checkthechain | ec838f3d0d44af228f45394d9ba8d8eb7f677520 | [
"MIT"
] | 94 | 2022-02-15T19:34:49.000Z | 2022-03-26T19:26:22.000Z | src/ctc/protocols/curve_utils/cli/curve_pools_command.py | fei-protocol/checkthechain | ec838f3d0d44af228f45394d9ba8d8eb7f677520 | [
"MIT"
] | 7 | 2022-03-03T02:58:47.000Z | 2022-03-11T18:41:05.000Z | src/ctc/protocols/curve_utils/cli/curve_pools_command.py | fei-protocol/checkthechain | ec838f3d0d44af228f45394d9ba8d8eb7f677520 | [
"MIT"
] | 7 | 2022-02-15T17:53:07.000Z | 2022-03-17T19:14:17.000Z | from __future__ import annotations
import toolcli
from ctc.protocols import curve_utils
def get_command_spec() -> toolcli.CommandSpec:
return {
'f': async_curve_pools_command,
'help': 'list curve pools',
'args': [
{
'name': '--verbose',
'help'... | 26.934426 | 80 | 0.593427 | 149 | 1,643 | 6.375839 | 0.469799 | 0.031579 | 0.031579 | 0.046316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11827 | 0.310408 | 1,643 | 60 | 81 | 27.383333 | 0.720212 | 0.024954 | 0 | 0.044444 | 0 | 0 | 0.212008 | 0.131332 | 0 | 0 | 0.131332 | 0 | 0 | 1 | 0.022222 | false | 0 | 0.088889 | 0.022222 | 0.133333 | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a3724c66e413effcdf21b1d39aedb643be084706 | 218 | py | Python | constants/db.py | sshikshu/app.cavill.in | 4e9472ea9640dad920f17d29b9625c8485022a5e | [
"MIT"
] | null | null | null | constants/db.py | sshikshu/app.cavill.in | 4e9472ea9640dad920f17d29b9625c8485022a5e | [
"MIT"
] | null | null | null | constants/db.py | sshikshu/app.cavill.in | 4e9472ea9640dad920f17d29b9625c8485022a5e | [
"MIT"
] | null | null | null | """
db constants
"""
DB_HOST = 'localhost'
DB_PORT = 28015
# Database is cavilling
DB_NAME = 'cavilling'
DB_TABLE_CAVILLS = 'cavills'
DB_TABLE_HAIRDOS = 'hairdos'
DB_TABLE_POLRUS = 'polrus'
DB_TABLE_USERS = 'users'
| 14.533333 | 28 | 0.733945 | 30 | 218 | 4.966667 | 0.5 | 0.187919 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026882 | 0.146789 | 218 | 14 | 29 | 15.571429 | 0.774194 | 0.16055 | 0 | 0 | 0 | 0 | 0.245714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a37355a19aa8f440bb3300c6b512a843d8e672aa | 3,494 | py | Python | jdit/trainer/instances/fashionClassParallelTrainer.py | dingguanglei/jdit | ef878e696c9e2fad5069f106496289d4e4cc6154 | [
"Apache-2.0"
] | 28 | 2019-06-18T15:56:53.000Z | 2021-11-09T13:11:13.000Z | jdit/trainer/instances/fashionClassParallelTrainer.py | dingguanglei/jdit | ef878e696c9e2fad5069f106496289d4e4cc6154 | [
"Apache-2.0"
] | 2 | 2018-10-24T01:09:56.000Z | 2018-11-08T07:13:48.000Z | jdit/trainer/instances/fashionClassParallelTrainer.py | dingguanglei/jdit | ef878e696c9e2fad5069f106496289d4e4cc6154 | [
"Apache-2.0"
] | 8 | 2019-01-11T01:12:15.000Z | 2021-03-12T10:15:43.000Z | # coding=utf-8
import torch
import torch.nn as nn
import torch.nn.functional as F
from jdit.trainer.single.classification import ClassificationTrainer
from jdit.model import Model
from jdit.optimizer import Optimizer
from jdit.dataset import FashionMNIST
from jdit.parallel import SupParallelTrainer
class SimpleModel(... | 32.351852 | 105 | 0.634516 | 461 | 3,494 | 4.585683 | 0.286334 | 0.03122 | 0.038316 | 0.033113 | 0.139073 | 0.087985 | 0.087985 | 0.062441 | 0.062441 | 0.024598 | 0 | 0.032934 | 0.23526 | 3,494 | 107 | 106 | 32.654206 | 0.758234 | 0.030624 | 0 | 0.047619 | 0 | 0 | 0.054351 | 0.006237 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.095238 | 0 | 0.27381 | 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 |
a37644a1e11006bb540b7235f3216f75efbca584 | 5,711 | py | Python | movies_modeling.py | amotter443/movies | ae375d19befb8133c014199dc1bf1ae728fd0147 | [
"MIT"
] | 1 | 2022-01-13T21:46:40.000Z | 2022-01-13T21:46:40.000Z | movies_modeling.py | amotter443/movies | ae375d19befb8133c014199dc1bf1ae728fd0147 | [
"MIT"
] | null | null | null | movies_modeling.py | amotter443/movies | ae375d19befb8133c014199dc1bf1ae728fd0147 | [
"MIT"
] | null | null | null | #Initialize packages
import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
import sklearn.model_selection as model_selection
from sklearn import linear_model
import sklearn.metrics as metrics
from sklearn.preprocessing import StandardScaler
from sklearn.ensemble import Ra... | 38.073333 | 366 | 0.711959 | 845 | 5,711 | 4.64497 | 0.294675 | 0.015287 | 0.027516 | 0.030573 | 0.278981 | 0.263694 | 0.263694 | 0.246369 | 0.246369 | 0.221147 | 0 | 0.020563 | 0.122921 | 5,711 | 149 | 367 | 38.328859 | 0.763027 | 0.160392 | 0 | 0.117647 | 0 | 0 | 0.192402 | 0.009609 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.223529 | 0 | 0.223529 | 0.082353 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a3767371ed8f0cd8ffdd0f52e641dd47e92c68df | 1,287 | py | Python | Python/142.py | jaimeliew1/Project_Euler_Solutions | 963c9c6d6571cade8f87341f97a6a2cd1af202bb | [
"MIT"
] | null | null | null | Python/142.py | jaimeliew1/Project_Euler_Solutions | 963c9c6d6571cade8f87341f97a6a2cd1af202bb | [
"MIT"
] | 1 | 2018-04-16T21:01:50.000Z | 2018-04-16T21:01:50.000Z | Python/142.py | jaimeliew1/Project_Euler_Solutions | 963c9c6d6571cade8f87341f97a6a2cd1af202bb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Solution to Project Euler problem 142 - Perfect Square Collection
Author: Jaime Liew
https://github.com/jaimeliew1/Project_Euler_Solutions
"""
from itertools import combinations
import numpy as np
def run():
N = 1000000
candids = {}
# generate all pairs of squares which differ... | 28.6 | 79 | 0.529915 | 177 | 1,287 | 3.757062 | 0.480226 | 0.054135 | 0.018045 | 0.030075 | 0.033083 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032767 | 0.359751 | 1,287 | 44 | 80 | 29.25 | 0.774272 | 0.274281 | 0 | 0 | 0 | 0 | 0.008667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.071429 | 0 | 0.142857 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a37b1669512f165099c1e03b767ae6863a2fb2c7 | 7,754 | py | Python | csvdiff.py | bugph0bia/PyCsvDiff | 57d438d50e758e13834affd8d0e46f8a7bfe0ebe | [
"MIT"
] | null | null | null | csvdiff.py | bugph0bia/PyCsvDiff | 57d438d50e758e13834affd8d0e46f8a7bfe0ebe | [
"MIT"
] | null | null | null | csvdiff.py | bugph0bia/PyCsvDiff | 57d438d50e758e13834affd8d0e46f8a7bfe0ebe | [
"MIT"
] | null | null | null | import sys
import csv
import json
import argparse
from collections import namedtuple
# diff info
DiffInfo = namedtuple('DiffInfo', [
'mark', # diff kind (!, -, +)
'address', # row/column addresses of diff
'keyname', # row/column key names of diff
'value', # values of diff
])
def ... | 33.5671 | 131 | 0.554037 | 995 | 7,754 | 4.222111 | 0.171859 | 0.045227 | 0.040467 | 0.022614 | 0.265175 | 0.225184 | 0.191383 | 0.135682 | 0.11045 | 0.092359 | 0 | 0.026669 | 0.318158 | 7,754 | 230 | 132 | 33.713043 | 0.767921 | 0.203379 | 0 | 0.304348 | 0 | 0.021739 | 0.167703 | 0.014853 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050725 | false | 0 | 0.036232 | 0 | 0.15942 | 0.072464 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a37e9163f756c5b933aa7522cfc07f57edae5c1e | 3,431 | py | Python | setup.py | michael-borisov/django-omnibus | 3275ae41dcad5a140433f0bfcea5961dc837e913 | [
"BSD-3-Clause"
] | null | null | null | setup.py | michael-borisov/django-omnibus | 3275ae41dcad5a140433f0bfcea5961dc837e913 | [
"BSD-3-Clause"
] | 4 | 2020-08-19T08:39:55.000Z | 2021-03-31T08:23:26.000Z | setup.py | radiosilence/django-omnibus | c31337306c601e75fbdac9d6b9b62dcc980e04f5 | [
"BSD-3-Clause"
] | null | null | null | import codecs
import os
import sys
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
def read(*parts):
filename = os.path.join(os.path.dirname(__file__), *parts)
with codecs.open(filename, encoding='utf-8') as fp:
return fp.read()
test_requires = [
... | 27.669355 | 86 | 0.575051 | 378 | 3,431 | 5.126984 | 0.391534 | 0.088235 | 0.116099 | 0.029412 | 0.053664 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018733 | 0.268726 | 3,431 | 123 | 87 | 27.894309 | 0.753687 | 0 | 0 | 0 | 0 | 0 | 0.352084 | 0.006121 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029126 | false | 0 | 0.058252 | 0 | 0.126214 | 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 |
a37f43b419e3def4e72bb772a8952c0f709cee66 | 1,823 | py | Python | config.py | greatwallet/cosypose | e72ce7d521ef61870daef267cbbe65aaebe9d24d | [
"MIT"
] | null | null | null | config.py | greatwallet/cosypose | e72ce7d521ef61870daef267cbbe65aaebe9d24d | [
"MIT"
] | null | null | null | config.py | greatwallet/cosypose | e72ce7d521ef61870daef267cbbe65aaebe9d24d | [
"MIT"
] | null | null | null | import cosypose
import os
import yaml
from joblib import Memory
from pathlib import Path
import getpass
import socket
import torch.multiprocessing
torch.multiprocessing.set_sharing_strategy('file_system')
hostname = socket.gethostname()
username = getpass.getuser()
PROJECT_ROOT = Path(cosypose.__file__).... | 30.383333 | 88 | 0.765222 | 273 | 1,823 | 4.695971 | 0.304029 | 0.087363 | 0.093604 | 0.093604 | 0.25429 | 0.138846 | 0.102964 | 0 | 0 | 0 | 0 | 0.005067 | 0.133845 | 1,823 | 60 | 89 | 30.383333 | 0.80684 | 0.004937 | 0 | 0 | 0 | 0 | 0.18016 | 0.038198 | 0 | 0 | 0 | 0 | 0.021277 | 1 | 0 | false | 0.042553 | 0.170213 | 0 | 0.170213 | 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 |
a38463fb4d443f7e3aa2457876c06216a04ae227 | 1,010 | py | Python | tests/test_nodes.py | simonzabrocki/GraphModels | b43e44a189d663364ae08de9a1d1305320854d63 | [
"MIT"
] | null | null | null | tests/test_nodes.py | simonzabrocki/GraphModels | b43e44a189d663364ae08de9a1d1305320854d63 | [
"MIT"
] | null | null | null | tests/test_nodes.py | simonzabrocki/GraphModels | b43e44a189d663364ae08de9a1d1305320854d63 | [
"MIT"
] | null | null | null |
import pytest
from GraphModels.models.Sarah.model_agricultural_water import AgriculturalWaterNodes
from GraphModels.models.Sarah.model_freshwater_available import FreshwaterAvailableNodes
from GraphModels.models.Sarah.model_municipal_water import MunicipalWaterNodes
nodes_list = AgriculturalWaterNodes + FreshwaterAv... | 37.407407 | 116 | 0.773267 | 128 | 1,010 | 5.914063 | 0.3125 | 0.059445 | 0.083223 | 0.103038 | 0.286658 | 0.140026 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112871 | 1,010 | 26 | 117 | 38.846154 | 0.844866 | 0 | 0 | 0 | 0 | 0 | 0.060456 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 1 | 0.1875 | false | 0 | 0.25 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a3859a2bc6f5180117d2aa59a1b851252ca8c8a5 | 1,350 | py | Python | backend/telegram/methods/messages_and_media/get_updated_message_entity_types.py | appheap/social-media-analyzer | 0f9da098bfb0b4f9eb38e0244aa3a168cf97d51c | [
"Apache-2.0"
] | 5 | 2021-09-11T22:01:15.000Z | 2022-03-16T21:33:42.000Z | backend/telegram/methods/messages_and_media/get_updated_message_entity_types.py | iamatlasss/social-media-analyzer | 429d1d2bbd8bfce80c50c5f8edda58f87ace668d | [
"Apache-2.0"
] | null | null | null | backend/telegram/methods/messages_and_media/get_updated_message_entity_types.py | iamatlasss/social-media-analyzer | 429d1d2bbd8bfce80c50c5f8edda58f87ace668d | [
"Apache-2.0"
] | 3 | 2022-01-18T11:06:22.000Z | 2022-02-26T13:39:28.000Z | from django.db import transaction
from db.scaffold import Scaffold
from typing import List
from telegram import models as tg_models
from pyrogram import types
class GetUpdatedMessageEntityTypes(Scaffold):
def get_updated_message_entity_types(
self,
*,
db_message: 'tg_models.M... | 32.926829 | 92 | 0.565926 | 144 | 1,350 | 5.048611 | 0.333333 | 0.136176 | 0.089409 | 0.068776 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.376296 | 1,350 | 40 | 93 | 33.75 | 0.86342 | 0 | 0 | 0.0625 | 0 | 0 | 0.042222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.15625 | 0 | 0.3125 | 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 |
a389bd7328bfeb9809c940787f3815d94a0c7bd6 | 2,783 | py | Python | commands.py | abcxyz618/MovieGeek | 06029ed4202c63d3da4e306eb5d500ab81f2e1cb | [
"MIT"
] | null | null | null | commands.py | abcxyz618/MovieGeek | 06029ed4202c63d3da4e306eb5d500ab81f2e1cb | [
"MIT"
] | null | null | null | commands.py | abcxyz618/MovieGeek | 06029ed4202c63d3da4e306eb5d500ab81f2e1cb | [
"MIT"
] | null | null | null | import discord
from discord.ext import commands
from omdb_api import *
from tmdb_api import *
class Commands(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.command()
async def movie(self, ctx, *, in_str=""): # input format: *movie {movie name} / {year}
if in... | 36.618421 | 102 | 0.594682 | 379 | 2,783 | 4.237467 | 0.295515 | 0.024907 | 0.05604 | 0.080946 | 0.206102 | 0.182441 | 0.153798 | 0.12142 | 0.12142 | 0.12142 | 0 | 0.006455 | 0.276321 | 2,783 | 75 | 103 | 37.106667 | 0.790963 | 0.015092 | 0 | 0.135593 | 0 | 0 | 0.119745 | 0.008634 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050847 | false | 0 | 0.067797 | 0 | 0.271186 | 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 |
a38b317b32dcbc6c9dff08940ace5dc60a5e39cd | 1,853 | py | Python | examples/run_ranch_baseline.py | pinjutien/DeepExplain | a80d85dcd5adc90968b6924a7ef39528170830f0 | [
"MIT"
] | null | null | null | examples/run_ranch_baseline.py | pinjutien/DeepExplain | a80d85dcd5adc90968b6924a7ef39528170830f0 | [
"MIT"
] | null | null | null | examples/run_ranch_baseline.py | pinjutien/DeepExplain | a80d85dcd5adc90968b6924a7ef39528170830f0 | [
"MIT"
] | null | null | null | """
RANdom CHoice baseline (RANCH): random image from the target class
"""
import random
import numpy as np
import tensorflow_datasets as tfds
from tqdm import tqdm
# output_pattern = '/home/ec2-user/gan_submission_1/mnist/mnist_v2/ranch_baselines_%d'
# tfds_name = 'mnist'
# target_size = [28, 28, 1]
# num_class = 1... | 28.953125 | 88 | 0.67674 | 281 | 1,853 | 4.209964 | 0.291815 | 0.047337 | 0.043111 | 0.050719 | 0.274725 | 0.239222 | 0.152156 | 0.152156 | 0.05579 | 0.05579 | 0 | 0.043738 | 0.185645 | 1,853 | 64 | 89 | 28.953125 | 0.740225 | 0.247167 | 0 | 0 | 0 | 0 | 0.092956 | 0.050109 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.117647 | 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 |
a38b4a3c4607025ed47cb0e6994bcee905fa97f0 | 359 | py | Python | pageOne.py | 3bru/qt-tkinter-Test | 41eefe7621c6a0bf3a25b4503df7a7451fc363b2 | [
"MIT"
] | 1 | 2020-05-18T21:59:39.000Z | 2020-05-18T21:59:39.000Z | pageOne.py | 3bru/qt-tkinter-Test | 41eefe7621c6a0bf3a25b4503df7a7451fc363b2 | [
"MIT"
] | null | null | null | pageOne.py | 3bru/qt-tkinter-Test | 41eefe7621c6a0bf3a25b4503df7a7451fc363b2 | [
"MIT"
] | null | null | null | import sqlite3, os
con = sqlite3.connect('database.sqlite')
im = con.cursor()
tablo = """CREATE TABLE IF NOT EXISTS writes(day, topic, texti)"""
deger = """INSERT INTO writes VALUES('oneDay', 'nmap', 'nmaple ilgili bisiler')"""
im.execute(tablo)
im.execute(deger)
con.commit()
im.execute("""SELECT * FROM writes""")
... | 22.4375 | 82 | 0.696379 | 49 | 359 | 5.102041 | 0.714286 | 0.108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006349 | 0.122563 | 359 | 15 | 83 | 23.933333 | 0.787302 | 0 | 0 | 0 | 0 | 0 | 0.431755 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a38b9d380fbd10ce2b7350457ab818a75b222fac | 6,075 | py | Python | basicsr/metrics/psnr_ssim.py | BCV-Uniandes/RSR | dad60eedd3560f2655e3d1ed444153ed2616af2e | [
"zlib-acknowledgement"
] | 14 | 2021-08-28T04:15:37.000Z | 2021-12-28T17:00:33.000Z | basicsr/metrics/psnr_ssim.py | BCV-Uniandes/RSR | dad60eedd3560f2655e3d1ed444153ed2616af2e | [
"zlib-acknowledgement"
] | 2 | 2021-09-26T01:27:06.000Z | 2021-12-24T19:06:09.000Z | basicsr/metrics/psnr_ssim.py | BCV-Uniandes/RSR | dad60eedd3560f2655e3d1ed444153ed2616af2e | [
"zlib-acknowledgement"
] | 1 | 2021-10-18T15:48:56.000Z | 2021-10-18T15:48:56.000Z | import cv2
import numpy as np
from basicsr.metrics.metric_util import reorder_image, to_y_channel
def calculate_psnr(img1,
img2,
crop_border,
input_order='HWC',
test_y_channel=False):
"""Calculate PSNR (Peak Signal-to-Noise Ratio).
... | 33.379121 | 80 | 0.596708 | 836 | 6,075 | 4.202153 | 0.226077 | 0.062625 | 0.047822 | 0.068318 | 0.522061 | 0.509536 | 0.502704 | 0.493026 | 0.475377 | 0.453743 | 0 | 0.051919 | 0.270782 | 6,075 | 182 | 81 | 33.379121 | 0.741084 | 0.312428 | 0 | 0.428571 | 0 | 0 | 0.072891 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 1 | 0.071429 | false | 0 | 0.081633 | 0 | 0.234694 | 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 |
a38ee10bfa692aa23805d2d2b99b5f0481e7ce48 | 14,224 | py | Python | data/dataset.py | limingwu8/Pneumonia-Detection | 8541e0f34a72f6e94773bf234cfd071732229b2b | [
"MIT"
] | 7 | 2019-01-27T02:30:56.000Z | 2020-04-29T18:47:21.000Z | data/dataset.py | limingwu8/Pneumonia-Detection | 8541e0f34a72f6e94773bf234cfd071732229b2b | [
"MIT"
] | 1 | 2020-01-28T04:40:15.000Z | 2020-05-01T02:37:40.000Z | data/dataset.py | limingwu8/Pneumonia-Detection | 8541e0f34a72f6e94773bf234cfd071732229b2b | [
"MIT"
] | 3 | 2019-08-09T09:16:00.000Z | 2021-07-01T11:45:00.000Z | import os
import numpy as np
import torch
from tqdm import tqdm
from torch.utils.data import Dataset, DataLoader
from torchvision import transforms, utils
from skimage import io, transform
from utils.Config import opt
from skimage import exposure
import matplotlib.pylab as plt
from utils import array_tool as at
from sk... | 41.228986 | 113 | 0.646161 | 2,026 | 14,224 | 4.346496 | 0.148569 | 0.021008 | 0.01022 | 0.019078 | 0.568817 | 0.541563 | 0.532024 | 0.519305 | 0.457983 | 0.452305 | 0 | 0.024169 | 0.246625 | 14,224 | 344 | 114 | 41.348837 | 0.797592 | 0.394263 | 0 | 0.304348 | 0 | 0 | 0.025335 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.10559 | false | 0 | 0.093168 | 0.012422 | 0.310559 | 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 |
a38f9c51d087930a15e07db3d41e43fedee278f9 | 8,344 | py | Python | make_dataset/kor_sample_dataset.py | park-sungmoo/odqa_baseline_code | 45954be766e5f987bef18e5b8a2e47f1508742cd | [
"Apache-2.0"
] | 67 | 2021-05-12T15:54:28.000Z | 2022-03-12T15:55:35.000Z | make_dataset/kor_sample_dataset.py | park-sungmoo/odqa_baseline_code | 45954be766e5f987bef18e5b8a2e47f1508742cd | [
"Apache-2.0"
] | 71 | 2021-05-01T06:07:37.000Z | 2022-01-28T16:54:46.000Z | make_dataset/kor_sample_dataset.py | park-sungmoo/odqa_baseline_code | 45954be766e5f987bef18e5b8a2e47f1508742cd | [
"Apache-2.0"
] | 14 | 2021-05-24T10:57:27.000Z | 2022-02-18T06:34:11.000Z | import json
import os.path as p
from collections import defaultdict
import pandas as pd
from datasets import load_dataset
from datasets import concatenate_datasets
from datasets import Sequence, Value, Features, Dataset, DatasetDict
from utils.tools import get_args
f = Features(
{
"answers": Sequence(
... | 28.772414 | 112 | 0.65604 | 1,175 | 8,344 | 4.4 | 0.164255 | 0.10058 | 0.030948 | 0.034816 | 0.718956 | 0.673308 | 0.658801 | 0.63675 | 0.615087 | 0.575822 | 0 | 0.023662 | 0.225072 | 8,344 | 289 | 113 | 28.871972 | 0.775905 | 0.103667 | 0 | 0.5 | 0 | 0 | 0.102287 | 0 | 0 | 0 | 0 | 0 | 0.005814 | 1 | 0.069767 | false | 0 | 0.046512 | 0 | 0.162791 | 0.017442 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a392dab4e0208bcba731af6d1b6b1dd6d3c0e78a | 21,317 | py | Python | train.py | eapache/HawkEars | 3b979166ed09de9f9254b830bb57499e1da7a015 | [
"MIT"
] | null | null | null | train.py | eapache/HawkEars | 3b979166ed09de9f9254b830bb57499e1da7a015 | [
"MIT"
] | 1 | 2021-12-17T16:56:12.000Z | 2021-12-19T15:53:55.000Z | train.py | eapache/HawkEars | 3b979166ed09de9f9254b830bb57499e1da7a015 | [
"MIT"
] | 1 | 2021-12-17T16:59:04.000Z | 2021-12-17T16:59:04.000Z | # Train the selected neural network model on spectrograms for birds and a few other classes.
# Train the selected neural network model on spectrograms for birds and a few other classes.
# To see command-line arguments, run the script with -h argument.
import argparse
import math
import matplotlib.pyplot as plt
import ... | 47.476615 | 233 | 0.598208 | 2,620 | 21,317 | 4.701145 | 0.182443 | 0.037509 | 0.022083 | 0.011691 | 0.196801 | 0.142892 | 0.103515 | 0.073882 | 0.06966 | 0.055695 | 0 | 0.012996 | 0.303326 | 21,317 | 448 | 234 | 47.582589 | 0.816376 | 0.123751 | 0 | 0.122324 | 0 | 0.015291 | 0.148486 | 0.034947 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027523 | false | 0 | 0.06422 | 0 | 0.11315 | 0.024465 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a3943fc348baced6fa934c762ac87be734e9ae13 | 2,002 | py | Python | limix/heritability/estimate.py | fpcasale/limix | a6bc2850f243fe779991bb53a24ddbebe0ab74d2 | [
"Apache-2.0"
] | null | null | null | limix/heritability/estimate.py | fpcasale/limix | a6bc2850f243fe779991bb53a24ddbebe0ab74d2 | [
"Apache-2.0"
] | null | null | null | limix/heritability/estimate.py | fpcasale/limix | a6bc2850f243fe779991bb53a24ddbebe0ab74d2 | [
"Apache-2.0"
] | null | null | null | from __future__ import division
from numpy import ascontiguousarray, copy, ones, var
from numpy_sugar.linalg import economic_qs
from glimix_core.glmm import GLMMExpFam
def estimate(pheno, lik, K, covs=None, verbose=True):
r"""Estimate the so-called narrow-sense heritability.
It supports Normal, Bernoulli, ... | 24.414634 | 76 | 0.580919 | 251 | 2,002 | 4.565737 | 0.442231 | 0.031414 | 0.039267 | 0.052356 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015183 | 0.276224 | 2,002 | 81 | 77 | 24.716049 | 0.775707 | 0.5 | 0 | 0 | 0 | 0 | 0.010441 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.178571 | 0 | 0.321429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a394632989f95d229e000f46db6a73bbdcda0cf3 | 2,739 | py | Python | pyrat/__main__.py | gitmarek/pyrat | cbf918d5c23d5d39e62e00bb64b6d0596170c68b | [
"MIT"
] | null | null | null | pyrat/__main__.py | gitmarek/pyrat | cbf918d5c23d5d39e62e00bb64b6d0596170c68b | [
"MIT"
] | null | null | null | pyrat/__main__.py | gitmarek/pyrat | cbf918d5c23d5d39e62e00bb64b6d0596170c68b | [
"MIT"
] | null | null | null | import argparse, importlib, sys
import pyrat
from pyrat import name, version, logger
# This returns a function to be called by a subparser below
# We assume in the tool's submodule there's a function called 'start(args)'
# That takes over the execution of the program.
def tool_(tool_name):
def f(args):
s... | 36.039474 | 78 | 0.683826 | 367 | 2,739 | 4.986376 | 0.381471 | 0.054098 | 0.054645 | 0.034426 | 0.159563 | 0.097268 | 0.097268 | 0.097268 | 0 | 0 | 0 | 0.005888 | 0.193866 | 2,739 | 75 | 79 | 36.52 | 0.822917 | 0.11172 | 0 | 0.037037 | 0 | 0.018519 | 0.329897 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.074074 | 0 | 0.12963 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a3955ee346d7a3a5338cd528fa6afbec24d5527c | 2,007 | py | Python | python/projecteuler/src/longest_collatz_sequence.py | christopher-burke/warmups | 140c96ada87ec5e9faa4622504ddee18840dce4a | [
"MIT"
] | null | null | null | python/projecteuler/src/longest_collatz_sequence.py | christopher-burke/warmups | 140c96ada87ec5e9faa4622504ddee18840dce4a | [
"MIT"
] | 2 | 2022-03-10T03:49:14.000Z | 2022-03-14T00:49:54.000Z | python/projecteuler/src/longest_collatz_sequence.py | christopher-burke/warmups | 140c96ada87ec5e9faa4622504ddee18840dce4a | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""Longest Collatz sequence.
The following iterative sequence is defined
for the set of positive integers:
n → n/2 (n is even)
n → 3n + 1 (n is odd)
Using the rule above and starting with 13,
we generate the following sequence:
13 → 40 → 20 → 10 → 5 → 16 → 8 → 4 → 2 → 1
It can be seen that... | 23.611765 | 71 | 0.659691 | 320 | 2,007 | 4.075 | 0.3625 | 0.184049 | 0.101227 | 0.032209 | 0.154908 | 0.154908 | 0.122699 | 0.122699 | 0.122699 | 0.122699 | 0 | 0.043535 | 0.233184 | 2,007 | 84 | 72 | 23.892857 | 0.795971 | 0.523169 | 0 | 0.166667 | 0 | 0 | 0.01236 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.375 | 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 |
a396aa841a074ff27cad63b9fc597eb1d7fa8b7c | 1,823 | py | Python | examples/classify_pose.py | scottamain/aiy-maker-kit | 4cdb973067b83d27cf0601c811d887877d1bc253 | [
"Apache-2.0"
] | null | null | null | examples/classify_pose.py | scottamain/aiy-maker-kit | 4cdb973067b83d27cf0601c811d887877d1bc253 | [
"Apache-2.0"
] | null | null | null | examples/classify_pose.py | scottamain/aiy-maker-kit | 4cdb973067b83d27cf0601c811d887877d1bc253 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 35.745098 | 80 | 0.785518 | 278 | 1,823 | 5.053957 | 0.489209 | 0.042705 | 0.018505 | 0.022776 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005814 | 0.15085 | 1,823 | 50 | 81 | 36.46 | 0.901809 | 0.65277 | 0 | 0 | 0 | 0 | 0.08347 | 0.08347 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.230769 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a39afee8e197b6834391bc0d4c2a7ba0f29e4cdf | 622 | py | Python | tests/test_versions_in_sync.py | simon-graham/pure_interface | da7bf05151c1c906c753987fbf7e3251905b4ba0 | [
"MIT"
] | 10 | 2018-08-27T04:15:53.000Z | 2021-08-18T09:45:35.000Z | tests/test_versions_in_sync.py | simon-graham/pure_interface | da7bf05151c1c906c753987fbf7e3251905b4ba0 | [
"MIT"
] | 35 | 2018-08-27T04:17:44.000Z | 2021-09-22T05:39:57.000Z | tests/test_versions_in_sync.py | tim-mitchell/pure_interface | 46a2de2574f4543980303cafd89cfcbdb643fbbb | [
"MIT"
] | 3 | 2018-09-19T21:32:01.000Z | 2020-11-17T00:58:55.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
import os
import unittest
import pure_interface
class TestVersionsMatch(unittest.TestCase):
def test_versions(self):
setup_py = os.path.join(os.path.dirname(__file__), '..', 'setup.cfg')
wit... | 29.619048 | 82 | 0.636656 | 76 | 622 | 4.921053 | 0.644737 | 0.05615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002174 | 0.26045 | 622 | 20 | 83 | 31.1 | 0.81087 | 0.033762 | 0 | 0 | 0 | 0 | 0.088481 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.066667 | false | 0 | 0.266667 | 0 | 0.4 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a39ece0f6a490b1cd3625b5fef325786496075c3 | 2,973 | py | Python | train.py | Saaaber/urban-segmentation | fc893feb9208d3206d7c5329b1ccf4cfab97ed31 | [
"MIT"
] | 3 | 2020-11-16T20:21:25.000Z | 2021-06-11T13:09:30.000Z | train.py | Saaaber/urban-segmentation | fc893feb9208d3206d7c5329b1ccf4cfab97ed31 | [
"MIT"
] | null | null | null | train.py | Saaaber/urban-segmentation | fc893feb9208d3206d7c5329b1ccf4cfab97ed31 | [
"MIT"
] | 3 | 2020-11-11T23:43:15.000Z | 2022-03-17T09:03:42.000Z | # Copyright (c) Ville de Montreal. All rights reserved.
# Licensed under the MIT license.
# See LICENSE file in the project root for full license information.
import os
import json
import torch
import argparse
import datetime
from utils.factories import ModelFactory, OptimizerFactory, TrainerFactory
if __name__ == "... | 33.784091 | 83 | 0.636731 | 350 | 2,973 | 5.305714 | 0.34 | 0.056004 | 0.030156 | 0.029079 | 0.294023 | 0.198169 | 0.198169 | 0.164782 | 0.164782 | 0.164782 | 0 | 0 | 0.258325 | 2,973 | 87 | 84 | 34.172414 | 0.842177 | 0.200135 | 0 | 0.298246 | 0 | 0 | 0.140559 | 0.009738 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.105263 | 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 |
a3a1c89d1bcdd899b6c1712a17770e89aa6ef0b0 | 5,062 | py | Python | vivarium/lidar.py | Pyrofoux/vivarium | 90c07384929f6c34915f053fd8e95e91358c4e58 | [
"MIT"
] | 2 | 2020-10-30T15:28:06.000Z | 2022-01-31T17:13:25.000Z | vivarium/lidar.py | Pyrofoux/vivarium | 90c07384929f6c34915f053fd8e95e91358c4e58 | [
"MIT"
] | null | null | null | vivarium/lidar.py | Pyrofoux/vivarium | 90c07384929f6c34915f053fd8e95e91358c4e58 | [
"MIT"
] | null | null | null | from simple_playgrounds.entities.agents.sensors.sensor import *
from simple_playgrounds.entities.agents.sensors.semantic_sensors import *
from collections import defaultdict
from pymunk.vec2d import Vec2d
import math
#@SensorGenerator.register('lidar')
class LidarSensor(SemanticSensor):
def __init__(self, anchor... | 34.435374 | 111 | 0.600356 | 581 | 5,062 | 5.04475 | 0.283993 | 0.034118 | 0.022177 | 0.011259 | 0.186967 | 0.128966 | 0.100307 | 0.039577 | 0.039577 | 0.039577 | 0 | 0.014864 | 0.322205 | 5,062 | 146 | 112 | 34.671233 | 0.839405 | 0.280522 | 0 | 0.090909 | 0 | 0 | 0.005548 | 0 | 0 | 0 | 0 | 0.006849 | 0 | 1 | 0.045455 | false | 0.015152 | 0.075758 | 0 | 0.151515 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a3a3cd19889c828efa32a912a6cda2aa73fb4ca6 | 4,310 | py | Python | bin/allplots.py | Gabaldonlab/karyon | ba81828921b83b553f126892795253be1fd941ba | [
"MIT"
] | null | null | null | bin/allplots.py | Gabaldonlab/karyon | ba81828921b83b553f126892795253be1fd941ba | [
"MIT"
] | 2 | 2021-07-07T08:40:56.000Z | 2022-01-06T16:10:27.000Z | bin/allplots.py | Gabaldonlab/karyon | ba81828921b83b553f126892795253be1fd941ba | [
"MIT"
] | null | null | null | #!/bin/python
import sys, os, re, subprocess, math
import argparse
import psutil
from pysam import pysam
from Bio import SeqIO
import numpy as np
import numpy.random
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
#import seaborn as sns
import pandas as pd
import scipy.stats
from scipy.stats imp... | 35.916667 | 236 | 0.710905 | 629 | 4,310 | 4.739269 | 0.292528 | 0.039249 | 0.074136 | 0.020127 | 0.168735 | 0.147937 | 0.118081 | 0.05837 | 0 | 0 | 0 | 0.010721 | 0.134339 | 4,310 | 119 | 237 | 36.218487 | 0.788261 | 0.019026 | 0 | 0.020619 | 0 | 0.010309 | 0.215858 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020619 | false | 0 | 0.175258 | 0.010309 | 0.216495 | 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 |
6e55e971b17323a0b8342354a7a6ad601469f01e | 18,524 | py | Python | syntropynac/resolve.py | SyntropyNet/syntropy-nac | 8beddcd606d46fd909f51d0c53044be496cec995 | [
"MIT"
] | 3 | 2021-01-06T08:24:47.000Z | 2021-02-27T08:08:07.000Z | syntropynac/resolve.py | SyntropyNet/syntropy-nac | 8beddcd606d46fd909f51d0c53044be496cec995 | [
"MIT"
] | null | null | null | syntropynac/resolve.py | SyntropyNet/syntropy-nac | 8beddcd606d46fd909f51d0c53044be496cec995 | [
"MIT"
] | null | null | null | import functools
from dataclasses import dataclass
from itertools import combinations
import click
import syntropy_sdk as sdk
from syntropy_sdk import utils
from syntropynac.exceptions import ConfigureNetworkError
from syntropynac.fields import ALLOWED_PEER_TYPES, ConfigFields, PeerState, PeerType
@dataclass
class ... | 36.608696 | 125 | 0.589721 | 2,114 | 18,524 | 5.060549 | 0.113056 | 0.01075 | 0.022434 | 0.020938 | 0.567583 | 0.520938 | 0.495607 | 0.464105 | 0.431669 | 0.403533 | 0 | 0.004936 | 0.321961 | 18,524 | 505 | 126 | 36.681188 | 0.846815 | 0.201252 | 0 | 0.49162 | 0 | 0.002793 | 0.104254 | 0.026133 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036313 | false | 0 | 0.022346 | 0.002793 | 0.167598 | 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 |
6e56c45295d74ab6452768ca7c9600d73e511225 | 10,298 | py | Python | idact/detail/nodes/node_impl.py | garstka/idact | b9c8405c94db362c4a51d6bfdf418b14f06f0da1 | [
"MIT"
] | 5 | 2018-12-06T15:40:34.000Z | 2019-06-19T11:22:58.000Z | idact/detail/nodes/node_impl.py | garstka/idact | b9c8405c94db362c4a51d6bfdf418b14f06f0da1 | [
"MIT"
] | 9 | 2018-12-06T16:35:26.000Z | 2019-04-28T19:01:40.000Z | idact/detail/nodes/node_impl.py | garstka/idact | b9c8405c94db362c4a51d6bfdf418b14f06f0da1 | [
"MIT"
] | 2 | 2019-04-28T19:18:58.000Z | 2019-06-17T06:56:28.000Z | """This module contains the implementation of the cluster node interface."""
import datetime
from typing import Optional, Any, Callable
import bitmath
import fabric.operations
import fabric.tasks
import fabric.decorators
from fabric.exceptions import CommandTimeout
from fabric.state import env
from idact.core.retry ... | 37.721612 | 79 | 0.583026 | 1,071 | 10,298 | 5.390289 | 0.180205 | 0.032739 | 0.044171 | 0.018188 | 0.209077 | 0.088689 | 0.048155 | 0.035683 | 0.019401 | 0.019401 | 0 | 0.001026 | 0.337444 | 10,298 | 272 | 80 | 37.860294 | 0.845083 | 0.077005 | 0 | 0.185714 | 0 | 0 | 0.049669 | 0 | 0 | 0 | 0 | 0 | 0.004762 | 1 | 0.119048 | false | 0.004762 | 0.138095 | 0.061905 | 0.366667 | 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 |
6e5770f83af2ce49e0548c12ebb2126470694c34 | 2,012 | py | Python | geoportal/LUX_alembic/versions/17fb1559a5cd_create_table_for_hierarchy_of_accounts.py | arnaud-morvan/geoportailv3 | b9d676cf78e45e12894f7d1ceea99b915562d64f | [
"MIT"
] | 17 | 2015-01-14T08:40:22.000Z | 2021-05-08T04:39:50.000Z | geoportal/LUX_alembic/versions/17fb1559a5cd_create_table_for_hierarchy_of_accounts.py | arnaud-morvan/geoportailv3 | b9d676cf78e45e12894f7d1ceea99b915562d64f | [
"MIT"
] | 1,477 | 2015-01-05T09:58:41.000Z | 2022-03-18T11:07:09.000Z | geoportal/LUX_alembic/versions/17fb1559a5cd_create_table_for_hierarchy_of_accounts.py | arnaud-morvan/geoportailv3 | b9d676cf78e45e12894f7d1ceea99b915562d64f | [
"MIT"
] | 14 | 2015-07-24T07:33:13.000Z | 2021-03-02T13:51:48.000Z | """create table for hierarchy of accounts
Revision ID: 17fb1559a5cd
Revises: 3b7de32aebed
Create Date: 2015-09-16 14:20:30.972593
"""
# revision identifiers, used by Alembic.
revision = '17fb1559a5cd'
down_revision = '3b7de32aebed'
branch_labels = None
depends_on = None
from alembic import op, context
import sqlalc... | 27.944444 | 73 | 0.611332 | 227 | 2,012 | 5.193833 | 0.396476 | 0.102629 | 0.076336 | 0.039016 | 0.152672 | 0.152672 | 0.084818 | 0.084818 | 0.084818 | 0.084818 | 0 | 0.028787 | 0.274851 | 2,012 | 71 | 74 | 28.338028 | 0.779301 | 0.083002 | 0 | 0.214286 | 0 | 0 | 0.421339 | 0.0773 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.035714 | 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 |
6e5a5481a3630f1bb09ba60f327038cb691a80cf | 2,422 | py | Python | src/challenges/CtCI/dynamic/P1_triple_step.py | Ursidours/pythonic_interviews | a88e10b82ed2a163dfcc0bfd1d01a9e9e606c045 | [
"MIT"
] | 2 | 2021-11-13T01:30:25.000Z | 2022-02-11T18:17:22.000Z | src/challenges/CtCI/dynamic/P1_triple_step.py | arnaudblois/pythonic_interviews | a88e10b82ed2a163dfcc0bfd1d01a9e9e606c045 | [
"MIT"
] | null | null | null | src/challenges/CtCI/dynamic/P1_triple_step.py | arnaudblois/pythonic_interviews | a88e10b82ed2a163dfcc0bfd1d01a9e9e606c045 | [
"MIT"
] | null | null | null | """
Problem 1 of Chapter 8 in CtCi
Triple Step: A child is running up a staircase with N steps and can hop either
1 step, 2 steps, or 3 steps at a time. Return the number of possible ways exist
this can be done.
General idea of the solution: At any step N, the child must necessarily come
from the steps N-3, N-2 or N-1... | 31.454545 | 79 | 0.641618 | 411 | 2,422 | 3.632603 | 0.323601 | 0.037508 | 0.084394 | 0.048225 | 0.149364 | 0.105827 | 0.105827 | 0 | 0 | 0 | 0 | 0.043993 | 0.26796 | 2,422 | 76 | 80 | 31.868421 | 0.798082 | 0.454583 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108108 | false | 0 | 0.027027 | 0 | 0.297297 | 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 |
6e5d48ba91cb1100ebbf354d7f7d6405aa099be0 | 20,335 | py | Python | bots/invaders/agent.py | alv67/Lux-AI-challenge | 4fdd623a8ff578f769a6925ec0200170f84d4737 | [
"MIT"
] | null | null | null | bots/invaders/agent.py | alv67/Lux-AI-challenge | 4fdd623a8ff578f769a6925ec0200170f84d4737 | [
"MIT"
] | 27 | 2021-10-17T22:46:41.000Z | 2021-12-05T23:41:19.000Z | bots/invaders/agent.py | alv67/Lux-AI-challenge | 4fdd623a8ff578f769a6925ec0200170f84d4737 | [
"MIT"
] | 3 | 2021-11-14T19:22:16.000Z | 2021-12-04T06:46:33.000Z | import os
import math
import sys
from typing import List, Tuple
# for kaggle-environments
from abn.game_ext import GameExtended
from abn.jobs import Task, Job, JobBoard
from abn.actions import Actions
from lux.game_map import Position, Cell, RESOURCE_TYPES
from lux.game_objects import City
from lux.game_constants impo... | 47.847059 | 126 | 0.503369 | 2,352 | 20,335 | 4.18665 | 0.113946 | 0.038083 | 0.025998 | 0.050066 | 0.530517 | 0.474967 | 0.442571 | 0.405403 | 0.375851 | 0.310145 | 0 | 0.0055 | 0.383034 | 20,335 | 424 | 127 | 47.959906 | 0.779372 | 0.190214 | 0 | 0.474843 | 0 | 0 | 0.018227 | 0.001346 | 0 | 0 | 0 | 0.002358 | 0 | 1 | 0.012579 | false | 0 | 0.034591 | 0 | 0.059748 | 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 |
6e5de644fd911fb842013165cff69e62361a9159 | 12,503 | py | Python | PySRCG/src/Tabs/cyberware_tab.py | apampuch/PySRCG | bb3777aed3517b473e5860336c015e2e8d0905e9 | [
"MIT"
] | null | null | null | PySRCG/src/Tabs/cyberware_tab.py | apampuch/PySRCG | bb3777aed3517b473e5860336c015e2e8d0905e9 | [
"MIT"
] | null | null | null | PySRCG/src/Tabs/cyberware_tab.py | apampuch/PySRCG | bb3777aed3517b473e5860336c015e2e8d0905e9 | [
"MIT"
] | null | null | null | from copy import copy
from tkinter import *
from tkinter import ttk
from src import app_data
from src.CharData.augment import Cyberware
from src.Tabs.notebook_tab import NotebookTab
from src.statblock_modifier import StatMod
from src.utils import treeview_get, recursive_treeview_fill, calculate_attributes, get_variabl... | 38.589506 | 116 | 0.589698 | 1,485 | 12,503 | 4.783838 | 0.201347 | 0.047579 | 0.035895 | 0.013795 | 0.221143 | 0.148367 | 0.110642 | 0.067145 | 0.04589 | 0.030124 | 0 | 0.008727 | 0.312645 | 12,503 | 324 | 117 | 38.589506 | 0.817896 | 0.136927 | 0 | 0.224299 | 0 | 0 | 0.039435 | 0 | 0 | 0 | 0 | 0.003086 | 0 | 1 | 0.084112 | false | 0.009346 | 0.037383 | 0.009346 | 0.191589 | 0.023364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6e5f43493f76b33f089dfbae79e524b7b68ad4b5 | 337 | py | Python | myapp/mymetric/my-metric.py | affoliveira/hiring-engineers | 4064d8c7b6cead9a88197e95fcd6a0f2395e4d44 | [
"Apache-2.0"
] | null | null | null | myapp/mymetric/my-metric.py | affoliveira/hiring-engineers | 4064d8c7b6cead9a88197e95fcd6a0f2395e4d44 | [
"Apache-2.0"
] | null | null | null | myapp/mymetric/my-metric.py | affoliveira/hiring-engineers | 4064d8c7b6cead9a88197e95fcd6a0f2395e4d44 | [
"Apache-2.0"
] | null | null | null | from datadog import initialize, statsd
import time
import random
import os
options = {
'statsd_host':os.environ['DD_AGENT_HOST'],
'statsd_port':8125
}
initialize(**options)
i = 0
while(1):
i += 1
r = random.randint(0, 1000)
statsd.gauge('mymetric',r , tags=["environment:dev"])
time.sleep(int(os.envi... | 17.736842 | 55 | 0.68546 | 48 | 337 | 4.729167 | 0.625 | 0.079295 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042105 | 0.154303 | 337 | 19 | 56 | 17.736842 | 0.754386 | 0 | 0 | 0 | 0 | 0 | 0.195266 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.266667 | 0 | 0.266667 | 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 |
6e63b1a8022fa7d3c4dd2cc0d17b00043e002831 | 1,024 | py | Python | youtube_sync/tasks.py | abhayagiri/youtube-sync | ce3861f1b0c1448b1d48e5ba17925f5c082f04a2 | [
"MIT"
] | null | null | null | youtube_sync/tasks.py | abhayagiri/youtube-sync | ce3861f1b0c1448b1d48e5ba17925f5c082f04a2 | [
"MIT"
] | null | null | null | youtube_sync/tasks.py | abhayagiri/youtube-sync | ce3861f1b0c1448b1d48e5ba17925f5c082f04a2 | [
"MIT"
] | null | null | null | from datetime import datetime
import os
import re
import subprocess
from . import app, celery, db
from .database import Job
@celery.task()
def make_audio(youtube_id):
worker_path = os.path.join(app.root_path, 'worker.sh')
env = {
'DYNAMIC_AUDIO_NORMALIZER_BIN': app.config['DYNAMIC_AUDIO_NORMALIZER_BI... | 26.947368 | 84 | 0.682617 | 140 | 1,024 | 4.807143 | 0.421429 | 0.074294 | 0.065379 | 0.074294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003672 | 0.202148 | 1,024 | 37 | 85 | 27.675676 | 0.820073 | 0 | 0 | 0.0625 | 0 | 0 | 0.113281 | 0.099609 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.1875 | 0 | 0.28125 | 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 |
6e6bf3bcb9f6b04ecf66cf6829603687c806b677 | 4,140 | py | Python | markov.py | themichaelusa/zuckerkov | d68780f987b3f032d6382ea75118c84e7f205a39 | [
"MIT"
] | 1 | 2020-03-17T23:34:17.000Z | 2020-03-17T23:34:17.000Z | markov.py | themichaelusa/zuckerkov | d68780f987b3f032d6382ea75118c84e7f205a39 | [
"MIT"
] | null | null | null | markov.py | themichaelusa/zuckerkov | d68780f987b3f032d6382ea75118c84e7f205a39 | [
"MIT"
] | null | null | null | ### IMPORTS
import json
import glob
import string
import random
import spacy
from spacy.lang.en.stop_words import STOP_WORDS
import markovify
### CONSTANTS/GLOBALS/LAMBDAS
SYMBOLS_TO_RM = tuple(list(string.punctuation) + ['\xad'])
NUMBERS_TO_RM = tuple(string.digits)
spacy.prefer_gpu()
NLP_ENGINE = spacy.load("en_c... | 23 | 67 | 0.717874 | 670 | 4,140 | 4.126866 | 0.244776 | 0.035805 | 0.03038 | 0.03255 | 0.303797 | 0.214467 | 0.198553 | 0.176854 | 0.136347 | 0.093309 | 0 | 0.002933 | 0.17657 | 4,140 | 179 | 68 | 23.128492 | 0.808155 | 0.094444 | 0 | 0.104762 | 0 | 0 | 0.069818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.066667 | 0 | 0.190476 | 0.019048 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6e6ceb4b1bd05af797219ac67e3f71b01f520394 | 6,211 | py | Python | src/cnf_shuffler.py | jreeves3/BiPartGen-Artifact | d7c6db628cad25701a398da67ab87bb725513a61 | [
"MIT"
] | null | null | null | src/cnf_shuffler.py | jreeves3/BiPartGen-Artifact | d7c6db628cad25701a398da67ab87bb725513a61 | [
"MIT"
] | null | null | null | src/cnf_shuffler.py | jreeves3/BiPartGen-Artifact | d7c6db628cad25701a398da67ab87bb725513a61 | [
"MIT"
] | null | null | null | #/**********************************************************************************
# Copyright (c) 2021 Joseph Reeves and Cayden Codel, Carnegie Mellon University
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
# associated documentation files (the "Software"), t... | 34.893258 | 101 | 0.605378 | 867 | 6,211 | 4.264129 | 0.288351 | 0.043278 | 0.014606 | 0.014877 | 0.129565 | 0.105761 | 0.080876 | 0.080876 | 0.065188 | 0.056262 | 0 | 0.008465 | 0.258251 | 6,211 | 177 | 102 | 35.090395 | 0.794009 | 0.321526 | 0 | 0.318584 | 0 | 0 | 0.134961 | 0 | 0 | 0 | 0 | 0.00565 | 0 | 1 | 0 | false | 0 | 0.035398 | 0 | 0.035398 | 0.070796 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6e6dbb5cefe12073382965816c2a9d3f10ed725c | 4,171 | py | Python | test/app_page_scraper_test.py | googleinterns/betel | 2daa56081ccc753f5b7eafbd1e9a48e3aca4b657 | [
"Apache-2.0"
] | 1 | 2020-09-21T12:52:33.000Z | 2020-09-21T12:52:33.000Z | test/app_page_scraper_test.py | googleinterns/betel | 2daa56081ccc753f5b7eafbd1e9a48e3aca4b657 | [
"Apache-2.0"
] | null | null | null | test/app_page_scraper_test.py | googleinterns/betel | 2daa56081ccc753f5b7eafbd1e9a48e3aca4b657 | [
"Apache-2.0"
] | 1 | 2020-07-31T09:55:33.000Z | 2020-07-31T09:55:33.000Z | import pathlib
import pytest
from betel import app_page_scraper
from betel import betel_errors
from betel import utils
ICON_HTML = """
<img src="%s" class="T75of sHb2Xb">
"""
CATEGORY_HTML = """
<a itemprop="genre">Example</a>
"""
FILTERED_CATEGORY_HTML = """
<a itemprop="genre">Filtered</a>
"""
SIMPLE_HTML = """
<... | 28.182432 | 86 | 0.714217 | 606 | 4,171 | 4.521452 | 0.155116 | 0.066423 | 0.036131 | 0.04927 | 0.490511 | 0.429197 | 0.389781 | 0.34854 | 0.323723 | 0.253285 | 0 | 0.007695 | 0.189883 | 4,171 | 147 | 87 | 28.37415 | 0.803196 | 0 | 0 | 0.273684 | 0 | 0.010526 | 0.100695 | 0.025653 | 0 | 0 | 0 | 0 | 0.115789 | 1 | 0.147368 | false | 0 | 0.052632 | 0.031579 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6e734b51dd3ec79fecc1a0e0800072ebad29c909 | 556 | py | Python | lang/string/reverse-words.py | joez/letspy | 9f653bc0071821fdb49da8c19787dc7e12921457 | [
"Apache-2.0"
] | null | null | null | lang/string/reverse-words.py | joez/letspy | 9f653bc0071821fdb49da8c19787dc7e12921457 | [
"Apache-2.0"
] | null | null | null | lang/string/reverse-words.py | joez/letspy | 9f653bc0071821fdb49da8c19787dc7e12921457 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
def reverse_words(s):
return ' '.join(w[::-1] for w in s.split(' '))
def reverse_words_ext(s):
# support other whitespaces
strs, word = [], ''
for c in s:
if c.isspace():
if word:
strs.append(word[::-1])
word = ''
... | 19.857143 | 50 | 0.491007 | 72 | 556 | 3.597222 | 0.430556 | 0.185328 | 0.162162 | 0.123552 | 0.162162 | 0.162162 | 0 | 0 | 0 | 0 | 0 | 0.011111 | 0.352518 | 556 | 27 | 51 | 20.592593 | 0.708333 | 0.084532 | 0 | 0.210526 | 0 | 0 | 0.019724 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0 | 0.052632 | 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 |
6e74bf0ffc1a010178cf010d5be1824b1235b7ba | 11,166 | py | Python | python-scripts/gt_generate_python_curve.py | TrevisanGMW/maya | 4e3b45210d09a1cd2a1c0419defe6a5ffa97cf92 | [
"MIT"
] | 26 | 2020-11-16T12:49:05.000Z | 2022-03-09T20:39:22.000Z | python-scripts/gt_generate_python_curve.py | TrevisanGMW/maya | 4e3b45210d09a1cd2a1c0419defe6a5ffa97cf92 | [
"MIT"
] | 47 | 2020-11-08T23:35:49.000Z | 2022-03-10T03:43:00.000Z | python-scripts/gt_generate_python_curve.py | TrevisanGMW/maya | 4e3b45210d09a1cd2a1c0419defe6a5ffa97cf92 | [
"MIT"
] | 5 | 2021-01-27T06:10:34.000Z | 2021-10-30T23:29:44.000Z | """
Python Curve Generator
@Guilherme Trevisan - github.com/TrevisanGMW/gt-tools - 2020-01-02
1.1 - 2020-01-03
Minor patch adjustments to the script
1.2 - 2020-06-07
Fixed random window widthHeight issue.
Updated naming convention to make it clearer. (PEP8)
Added length checker for selection befor... | 40.901099 | 129 | 0.5729 | 1,450 | 11,166 | 4.304828 | 0.213793 | 0.028196 | 0.042615 | 0.039571 | 0.456104 | 0.414611 | 0.364627 | 0.323454 | 0.307113 | 0.275072 | 0 | 0.0353 | 0.266792 | 11,166 | 273 | 130 | 40.901099 | 0.727128 | 0.136934 | 0 | 0.323529 | 0 | 0.017647 | 0.143503 | 0.011304 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.094118 | 0 | 0.123529 | 0.017647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6e75ab3bf35f32714181bf627668b80eaa462378 | 1,766 | py | Python | client/core/scene/summary.py | krerkkiat/space-invader | 428b1041c9246b55cb63bc6c0b2ec20beb7a32ed | [
"MIT"
] | null | null | null | client/core/scene/summary.py | krerkkiat/space-invader | 428b1041c9246b55cb63bc6c0b2ec20beb7a32ed | [
"MIT"
] | null | null | null | client/core/scene/summary.py | krerkkiat/space-invader | 428b1041c9246b55cb63bc6c0b2ec20beb7a32ed | [
"MIT"
] | null | null | null | import pygame
from config import Config
from core.ui import Table, Button
from core.scene import Scene
from core.manager import SceneManager
from core.scene.preload import Preload
class SummaryScene(Scene):
def __init__(self, game):
super().__init__(game)
self._background = pygame.display.get_sur... | 34.627451 | 109 | 0.656285 | 207 | 1,766 | 5.405797 | 0.376812 | 0.053619 | 0.064343 | 0.032172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012391 | 0.223103 | 1,766 | 51 | 110 | 34.627451 | 0.803207 | 0.036806 | 0 | 0 | 0 | 0 | 0.017059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.146341 | false | 0.02439 | 0.146341 | 0 | 0.317073 | 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 |
6e78083845e016661893639e08ffab0d50cff621 | 546 | py | Python | src/python/intensity/components/shutdown_if_empty.py | kripken/intensityengine | 9ae352b4f526ecb180004ae4968db7f64f140762 | [
"MIT"
] | 31 | 2015-01-18T20:27:31.000Z | 2021-07-03T03:58:47.000Z | src/python/intensity/components/shutdown_if_empty.py | JamesLinus/intensityengine | 9ae352b4f526ecb180004ae4968db7f64f140762 | [
"MIT"
] | 4 | 2015-07-05T21:09:37.000Z | 2019-09-06T14:34:59.000Z | src/python/intensity/components/shutdown_if_empty.py | JamesLinus/intensityengine | 9ae352b4f526ecb180004ae4968db7f64f140762 | [
"MIT"
] | 11 | 2015-02-03T19:24:10.000Z | 2019-09-20T10:59:50.000Z |
# Copyright 2010 Alon Zakai ('kripken'). All rights reserved.
# This file is part of Syntensity/the Intensity Engine, an open source project. See COPYING.txt for licensing.
from intensity.signals import client_connect, client_disconnect
from intensity.base import quit
class Data:
counter = 0
def add(sender, **... | 22.75 | 110 | 0.717949 | 74 | 546 | 5.243243 | 0.635135 | 0.113402 | 0.061856 | 0.118557 | 0.123711 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018018 | 0.186813 | 546 | 23 | 111 | 23.73913 | 0.855856 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6e780b142bddebcec890df30277381a71e204488 | 694 | py | Python | pyforms/utils/timeit.py | dominic-dev/pyformsd | 23e31ceff2943bc0f7286d25dd14450a14b986af | [
"MIT"
] | null | null | null | pyforms/utils/timeit.py | dominic-dev/pyformsd | 23e31ceff2943bc0f7286d25dd14450a14b986af | [
"MIT"
] | null | null | null | pyforms/utils/timeit.py | dominic-dev/pyformsd | 23e31ceff2943bc0f7286d25dd14450a14b986af | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
__author__ = "Ricardo Ribeiro"
__credits__ = ["Ricardo Ribeiro"]
__license__ = "MIT"
__version__ = "0.0"
__maintainer__ = "Ricardo Ribeiro"
__email__ = "ricardojvr@gmail.com"
__status__ = "Development"
import time
from datetime import datetime, ... | 27.76 | 156 | 0.674352 | 89 | 694 | 4.831461 | 0.539326 | 0.153488 | 0.02093 | 0.018605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012153 | 0.170029 | 694 | 25 | 157 | 27.76 | 0.734375 | 0.054755 | 0 | 0 | 0 | 0 | 0.152672 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.333333 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6e7a4b454a8651618254290e5f7ef6b4e1cd99a9 | 1,388 | py | Python | cogs/botinfo.py | MM-coder/salbot-rewrite | 322c34ba85a2c852e02cd3c183d5a7a4a077ff6f | [
"Apache-2.0"
] | 1 | 2020-08-17T05:14:58.000Z | 2020-08-17T05:14:58.000Z | cogs/botinfo.py | MM-coder/salbot-rewrite | 322c34ba85a2c852e02cd3c183d5a7a4a077ff6f | [
"Apache-2.0"
] | null | null | null | cogs/botinfo.py | MM-coder/salbot-rewrite | 322c34ba85a2c852e02cd3c183d5a7a4a077ff6f | [
"Apache-2.0"
] | 1 | 2020-08-17T16:57:30.000Z | 2020-08-17T16:57:30.000Z | """
Created by vcokltfre at 2020-07-08
"""
import json
import logging
import time
from datetime import datetime
import discord
from discord.ext import commands
from discord.ext.commands import has_any_role
class BotInfo(commands.Cog):
def __init__(self, bot):
self.bot = bot
self.logger = logging.... | 28.326531 | 119 | 0.591499 | 174 | 1,388 | 4.62069 | 0.511494 | 0.068408 | 0.074627 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021869 | 0.275216 | 1,388 | 48 | 120 | 28.916667 | 0.777336 | 0.024496 | 0 | 0 | 0 | 0 | 0.112184 | 0 | 0 | 0 | 0.005944 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.184211 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6e7b6d33ac9f184e61e6b426b75d7acfe7a99f1e | 6,486 | py | Python | ninja_extra/pagination.py | eadwinCode/django-ninja-extra | 16246c466ab8895ba1bf29d69f3d3e9337031edd | [
"MIT"
] | 43 | 2021-09-09T14:20:59.000Z | 2022-03-28T00:38:52.000Z | ninja_extra/pagination.py | eadwinCode/django-ninja-extra | 16246c466ab8895ba1bf29d69f3d3e9337031edd | [
"MIT"
] | 6 | 2022-01-04T10:53:11.000Z | 2022-03-28T19:53:46.000Z | ninja_extra/pagination.py | eadwinCode/django-ninja-extra | 16246c466ab8895ba1bf29d69f3d3e9337031edd | [
"MIT"
] | null | null | null | import inspect
import logging
from collections import OrderedDict
from functools import wraps
from typing import TYPE_CHECKING, Any, Callable, Optional, Type, Union, cast, overload
from django.core.paginator import InvalidPage, Page, Paginator
from django.db.models import QuerySet
from django.http import HttpRequest
f... | 31.333333 | 101 | 0.665433 | 758 | 6,486 | 5.437995 | 0.217678 | 0.044639 | 0.016012 | 0.020378 | 0.141679 | 0.104561 | 0.104561 | 0.09704 | 0.09704 | 0.09704 | 0 | 0.003863 | 0.241751 | 6,486 | 206 | 102 | 31.485437 | 0.834282 | 0.019581 | 0 | 0.134969 | 0 | 0 | 0.051594 | 0.010887 | 0 | 0 | 0 | 0 | 0.006135 | 1 | 0.092025 | false | 0.006135 | 0.116564 | 0.018405 | 0.361963 | 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 |
6e7d261c65a6ddf389725d10b7241f84b3620572 | 501 | py | Python | toys/urls.py | julesc00/restful | 11b5312caf4affeaa06e3ceb5b86a7c73357eed1 | [
"MIT"
] | null | null | null | toys/urls.py | julesc00/restful | 11b5312caf4affeaa06e3ceb5b86a7c73357eed1 | [
"MIT"
] | null | null | null | toys/urls.py | julesc00/restful | 11b5312caf4affeaa06e3ceb5b86a7c73357eed1 | [
"MIT"
] | null | null | null | from django.urls import path
from toys.views import (toy_list_view, toy_detail_view, toy_sql_view, toy_raw_sql_view,
toy_aggregate_view)
app_name = "toys"
urlpatterns = [
path("toys/", toy_list_view, name="toys_list"),
path("toys_sql/", toy_sql_view, name="toys_sql_list"),
path("to... | 35.785714 | 87 | 0.692615 | 77 | 501 | 4.090909 | 0.25974 | 0.126984 | 0.152381 | 0.08254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159681 | 501 | 13 | 88 | 38.538462 | 0.748219 | 0 | 0 | 0 | 0 | 0 | 0.213573 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6e7ff5caf482e80185273f9434f18cc9786fbe99 | 692 | py | Python | setup.py | ellwise/kedro-light | 8f5a05d880f3ded23b024d5db72b5fc615e75230 | [
"MIT"
] | 2 | 2021-10-16T12:19:50.000Z | 2022-01-20T16:50:14.000Z | setup.py | ellwise/kedro-light | 8f5a05d880f3ded23b024d5db72b5fc615e75230 | [
"MIT"
] | null | null | null | setup.py | ellwise/kedro-light | 8f5a05d880f3ded23b024d5db72b5fc615e75230 | [
"MIT"
] | null | null | null | from setuptools import setup
from os import path
# read the contents of your README file
curr_dir = path.abspath(path.dirname(__file__))
with open(path.join(curr_dir, "README.md"), encoding="utf-8") as f:
long_description = f.read()
setup(
name="kedro-light",
version="0.1",
description="A lightweight... | 27.68 | 67 | 0.710983 | 94 | 692 | 5.042553 | 0.723404 | 0.126582 | 0.080169 | 0.126582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005128 | 0.154624 | 692 | 24 | 68 | 28.833333 | 0.805128 | 0.053468 | 0 | 0 | 0 | 0 | 0.260337 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6e812cd9d9f3ad6325c8b7be7fb0c2f7d95ff84f | 1,217 | py | Python | app.py | mh-github/mh-wtgw | 0e8d9b622954e14d1e24fda6fc6a4e63af2cd822 | [
"CC0-1.0"
] | null | null | null | app.py | mh-github/mh-wtgw | 0e8d9b622954e14d1e24fda6fc6a4e63af2cd822 | [
"CC0-1.0"
] | null | null | null | app.py | mh-github/mh-wtgw | 0e8d9b622954e14d1e24fda6fc6a4e63af2cd822 | [
"CC0-1.0"
] | null | null | null | import random
from flask import Flask, request, render_template, jsonify
app = Flask(__name__)
data_list = []
with open('data.txt', 'r') as data_file:
data_list = data_file.readlines()
@app.route("/", methods=['GET'])
def index():
index = random.randint(1, len(data_list) - 1)
clue = dat... | 27.659091 | 98 | 0.57765 | 155 | 1,217 | 4.367742 | 0.393548 | 0.094535 | 0.062038 | 0.05613 | 0.298375 | 0.298375 | 0.159527 | 0.159527 | 0.159527 | 0.159527 | 0 | 0.013043 | 0.244043 | 1,217 | 44 | 99 | 27.659091 | 0.722826 | 0 | 0 | 0.117647 | 0 | 0 | 0.110638 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.058824 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6e81c177879d88e6b010319496c61e52cdb196f1 | 13,606 | py | Python | imported_files/plotting_cswl05.py | SoumyaShreeram/Locating_AGN_in_DM_halos | 1cfbee69b2c000faee4ecb199d65c3235afbed42 | [
"MIT"
] | null | null | null | imported_files/plotting_cswl05.py | SoumyaShreeram/Locating_AGN_in_DM_halos | 1cfbee69b2c000faee4ecb199d65c3235afbed42 | [
"MIT"
] | null | null | null | imported_files/plotting_cswl05.py | SoumyaShreeram/Locating_AGN_in_DM_halos | 1cfbee69b2c000faee4ecb199d65c3235afbed42 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Plotting.py for notebook 05_Preliminary_comparison_of_simulations_AGN_fraction_with_data
This python file contains all the functions used for plotting graphs and maps in the 2nd notebook (.ipynb) of the repository: 05. Preliminary comparison of the 𝑓MM between simulation and data
Script wr... | 43.193651 | 269 | 0.648317 | 2,259 | 13,606 | 3.714475 | 0.170429 | 0.005482 | 0.033369 | 0.035753 | 0.373495 | 0.26445 | 0.206888 | 0.141461 | 0.104636 | 0.086879 | 0 | 0.029322 | 0.180362 | 13,606 | 315 | 270 | 43.193651 | 0.723099 | 0.129575 | 0 | 0.101064 | 0 | 0.021277 | 0.141278 | 0.003855 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085106 | false | 0 | 0.117021 | 0 | 0.287234 | 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 |
6e83557731c2fd4923e8fa481bc7d1048e5e106e | 985 | py | Python | codetree/cli.py | slank/codetree | c1aad059ad31aa1b3cca80a89861c659fce217ac | [
"MIT"
] | 2 | 2015-03-16T11:46:28.000Z | 2017-04-01T13:58:47.000Z | codetree/cli.py | slank/codetree | c1aad059ad31aa1b3cca80a89861c659fce217ac | [
"MIT"
] | null | null | null | codetree/cli.py | slank/codetree | c1aad059ad31aa1b3cca80a89861c659fce217ac | [
"MIT"
] | null | null | null | from argparse import ArgumentParser
import logging
from .config import Config
import sys
def main():
ap = ArgumentParser()
ap.add_argument("cfgfile", nargs="+", help="Codetree configuration file")
verbosity = ap.add_mutually_exclusive_group(required=False)
verbosity.add_argument("-v", "--verbose", act... | 30.78125 | 82 | 0.655838 | 117 | 985 | 5.42735 | 0.487179 | 0.069291 | 0.080315 | 0.11811 | 0.190551 | 0.148032 | 0.148032 | 0.148032 | 0 | 0 | 0 | 0.002567 | 0.209137 | 985 | 31 | 83 | 31.774194 | 0.81258 | 0 | 0 | 0 | 0 | 0 | 0.154315 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.153846 | 0 | 0.192308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6e85d5b6b7bc4a9b52702783da32bcd642bd2255 | 5,862 | py | Python | notebooks/utils.py | cognoma/ml-workers | 781763c8361d49023222c7349350c3c4774ce4fa | [
"BSD-3-Clause"
] | null | null | null | notebooks/utils.py | cognoma/ml-workers | 781763c8361d49023222c7349350c3c4774ce4fa | [
"BSD-3-Clause"
] | 13 | 2017-01-31T22:54:03.000Z | 2021-02-02T21:42:33.000Z | notebooks/utils.py | cognoma/ml-workers | 781763c8361d49023222c7349350c3c4774ce4fa | [
"BSD-3-Clause"
] | 7 | 2017-06-29T14:19:11.000Z | 2018-04-08T12:06:21.000Z | """
Methods for building Cognoma mutation classifiers
Usage - Import only
"""
import pandas as pd
from sklearn.metrics import roc_curve, roc_auc_score
import plotnine as gg
def theme_cognoma(fontsize_mult=1):
return (gg.theme_bw(base_size=14 * fontsize_mult) +
gg.theme(line=gg.element_line(color="#4... | 42.788321 | 85 | 0.638519 | 703 | 5,862 | 5.105263 | 0.280228 | 0.066871 | 0.060184 | 0.015046 | 0.092784 | 0.053775 | 0.042352 | 0.042352 | 0.042352 | 0.018947 | 0 | 0.009218 | 0.278233 | 5,862 | 136 | 86 | 43.102941 | 0.839045 | 0.330604 | 0 | 0.128571 | 0 | 0 | 0.080988 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0.014286 | 0.214286 | 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 |
6e85eafe88b2abc4b10f2eb6623ed07ecab6567b | 1,740 | py | Python | docs/fossil-help-cmd.py | smitty1eGH/pyphlogiston | 5134be190cdb31ace04ac5ce2e699a48e54e036e | [
"MIT"
] | null | null | null | docs/fossil-help-cmd.py | smitty1eGH/pyphlogiston | 5134be190cdb31ace04ac5ce2e699a48e54e036e | [
"MIT"
] | null | null | null | docs/fossil-help-cmd.py | smitty1eGH/pyphlogiston | 5134be190cdb31ace04ac5ce2e699a48e54e036e | [
"MIT"
] | null | null | null | from subprocess import run
cmds = [
"3-way-merge",
"ci",
"help",
"push",
"stash",
"add",
"clean",
"hook",
"rebuild",
"status",
"addremove",
"clone",
"http",
"reconstruct",
"sync",
"alerts",
"close",
"import",
"redo",
"tag",
"all",
... | 14.745763 | 77 | 0.440805 | 151 | 1,740 | 5.072848 | 0.907285 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012335 | 0.347701 | 1,740 | 117 | 78 | 14.871795 | 0.662555 | 0 | 0 | 0 | 0 | 0 | 0.399425 | 0.04023 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.017391 | 0 | 0.017391 | 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 |
6e8aa5fdaccdc2cf8e079b7b4e650e213a55472a | 1,154 | py | Python | monitor.py | projectsbyif/trillian-demo-audit | 5bb08ae3c359698d8beb47ced39d21e793539396 | [
"Apache-2.0"
] | null | null | null | monitor.py | projectsbyif/trillian-demo-audit | 5bb08ae3c359698d8beb47ced39d21e793539396 | [
"Apache-2.0"
] | 1 | 2021-06-02T02:13:46.000Z | 2021-06-02T02:13:46.000Z | monitor.py | projectsbyif/trillian-demo-audit | 5bb08ae3c359698d8beb47ced39d21e793539396 | [
"Apache-2.0"
] | null | null | null | import logging
import sys
from trillian import TrillianLog
from print_helper import Print
from pprint import pprint
def main(argv):
logging.basicConfig(level=logging.INFO)
trillian_log = TrillianLog.load_from_environment()
Print.status('Checking signature on signed log root')
validated_log_root = ... | 26.227273 | 70 | 0.707972 | 152 | 1,154 | 5.171053 | 0.427632 | 0.071247 | 0.101781 | 0.087786 | 0.21883 | 0.21883 | 0.096692 | 0.096692 | 0 | 0 | 0 | 0 | 0.195841 | 1,154 | 43 | 71 | 26.837209 | 0.846983 | 0.103986 | 0 | 0.083333 | 0 | 0 | 0.254122 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.208333 | 0 | 0.25 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6e8b21d90213008722c8b31b5d6059ea9e59aa07 | 875 | py | Python | src/geocurrency/units/urls.py | OpenPrunus/geocurrency | 23cc075377d47ac631634cd71fd0e7d6b0a57bad | [
"MIT"
] | 5 | 2021-01-28T16:45:49.000Z | 2021-08-15T06:47:17.000Z | src/geocurrency/units/urls.py | OpenPrunus/geocurrency | 23cc075377d47ac631634cd71fd0e7d6b0a57bad | [
"MIT"
] | 8 | 2020-10-01T15:12:45.000Z | 2021-10-05T14:45:33.000Z | src/geocurrency/units/urls.py | OpenPrunus/geocurrency | 23cc075377d47ac631634cd71fd0e7d6b0a57bad | [
"MIT"
] | 2 | 2021-01-28T16:43:16.000Z | 2021-10-05T14:25:25.000Z | """
Units module URLs
"""
from django.conf.urls import url, include
from django.urls import path
from rest_framework import routers
from .viewsets import UnitSystemViewset, UnitViewset, \
ConvertView, CustomUnitViewSet
from geocurrency.calculations.viewsets import ValidateViewSet, CalculationView
app_name = 'uni... | 31.25 | 78 | 0.726857 | 98 | 875 | 6.387755 | 0.438776 | 0.067093 | 0.071885 | 0.051118 | 0.185304 | 0.185304 | 0.185304 | 0 | 0 | 0 | 0 | 0 | 0.131429 | 875 | 27 | 79 | 32.407407 | 0.823684 | 0.019429 | 0 | 0 | 0 | 0 | 0.191765 | 0.148235 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.263158 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6e8f20f780d781f8cdc23f8a2e62a4a9d0aaaf14 | 6,451 | py | Python | randominette.py | Dutesier/randominette | 2260c0f521d9fcc97f30a8cceb36c94dbee3d474 | [
"MIT"
] | null | null | null | randominette.py | Dutesier/randominette | 2260c0f521d9fcc97f30a8cceb36c94dbee3d474 | [
"MIT"
] | null | null | null | randominette.py | Dutesier/randominette | 2260c0f521d9fcc97f30a8cceb36c94dbee3d474 | [
"MIT"
] | 2 | 2022-01-19T00:27:59.000Z | 2022-01-19T03:46:21.000Z | # **************************************************************************** #
# #
# ::: :::::::: #
# randominette.py :+: :+: :+: ... | 38.39881 | 148 | 0.509068 | 769 | 6,451 | 4.126138 | 0.217165 | 0.059565 | 0.102427 | 0.034037 | 0.338481 | 0.268831 | 0.208951 | 0.168925 | 0.105263 | 0.105263 | 0 | 0.024436 | 0.340257 | 6,451 | 167 | 149 | 38.628743 | 0.7211 | 0.196714 | 0 | 0.223881 | 0 | 0.007463 | 0.220769 | 0.016006 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037313 | false | 0 | 0.052239 | 0.007463 | 0.126866 | 0.179104 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6e918c5815dd4774b7932aa1ec3b9fffa1176641 | 750 | py | Python | newsman/factories.py | acapitanelli/newsman | 3f109f42afe6131383fba1e118b7b9457d76096b | [
"MIT"
] | null | null | null | newsman/factories.py | acapitanelli/newsman | 3f109f42afe6131383fba1e118b7b9457d76096b | [
"MIT"
] | null | null | null | newsman/factories.py | acapitanelli/newsman | 3f109f42afe6131383fba1e118b7b9457d76096b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""This module provides a way to initialize components for processing
pipeline.
Init functions are stored into a dictionary which can be used by `Pipeline` to
load components on demand.
"""
from .pipeline import Byte2html, Html2text, Html2image, Html2meta, Text2title
def build_factories():
... | 32.608696 | 78 | 0.698667 | 81 | 750 | 6.45679 | 0.54321 | 0.137667 | 0.08413 | 0.107075 | 0.156788 | 0.156788 | 0 | 0 | 0 | 0 | 0 | 0.0299 | 0.197333 | 750 | 22 | 79 | 34.090909 | 0.83887 | 0.329333 | 0 | 0 | 0 | 0 | 0.11609 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6e9740ebd2a997095586f788ec3e7c7b37619818 | 9,622 | py | Python | hbgd_data_store_server/studies/management/commands/load_idx.py | pcstout/study-explorer | b49a6853d8155f1586360138ed7f87d165793184 | [
"Apache-2.0"
] | 2 | 2019-04-02T14:31:27.000Z | 2020-04-13T20:41:46.000Z | hbgd_data_store_server/studies/management/commands/load_idx.py | pcstout/study-explorer | b49a6853d8155f1586360138ed7f87d165793184 | [
"Apache-2.0"
] | 7 | 2019-08-07T14:44:54.000Z | 2020-06-05T17:30:51.000Z | hbgd_data_store_server/studies/management/commands/load_idx.py | pcstout/study-explorer | b49a6853d8155f1586360138ed7f87d165793184 | [
"Apache-2.0"
] | 1 | 2019-03-27T01:32:30.000Z | 2019-03-27T01:32:30.000Z | # Copyright 2017-present, Bill & Melinda Gates Foundation
#
# 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 ... | 35.902985 | 84 | 0.610788 | 1,168 | 9,622 | 4.884418 | 0.224315 | 0.018405 | 0.014724 | 0.00894 | 0.206661 | 0.141455 | 0.100438 | 0.028046 | 0.019281 | 0 | 0 | 0.002214 | 0.295884 | 9,622 | 267 | 85 | 36.037453 | 0.839852 | 0.113074 | 0 | 0.139896 | 0 | 0 | 0.117187 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041451 | false | 0 | 0.036269 | 0 | 0.150259 | 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 |
6e98642f2b6b958a07ac0e545cf862d4394aa56c | 786 | py | Python | Thread.PY/thread-rlock.py | Phoebus-Ma/Python-Helper | d880729f0bbfbc2b1503602fd74c9177ecd4e970 | [
"MIT"
] | null | null | null | Thread.PY/thread-rlock.py | Phoebus-Ma/Python-Helper | d880729f0bbfbc2b1503602fd74c9177ecd4e970 | [
"MIT"
] | null | null | null | Thread.PY/thread-rlock.py | Phoebus-Ma/Python-Helper | d880729f0bbfbc2b1503602fd74c9177ecd4e970 | [
"MIT"
] | null | null | null | ###
# Thread rlock test.
#
# License - MIT.
###
import time
from threading import Thread, RLock
# thread_test2 - Thread test2 function.
def thread_test2(rlock):
# {
time.sleep(0.5)
rlock.acquire()
print('Third acquire.')
rlock.release()
# }
# thread_test1 - Thread test1 function.
def thread_test... | 14.290909 | 64 | 0.619593 | 90 | 786 | 5.222222 | 0.377778 | 0.093617 | 0.108511 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023217 | 0.232824 | 786 | 54 | 65 | 14.555556 | 0.756219 | 0.209924 | 0 | 0.272727 | 0 | 0 | 0.085142 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.090909 | 0 | 0.227273 | 0.136364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6e98aa2320fefc8b613e9eb26ab879e97d03ea24 | 1,319 | py | Python | api/python/tests/test_bingo_nosql.py | tsingdao-Tp/Indigo | b2d73faebb6a450e9b3d34fed553fad4f9d0012f | [
"Apache-2.0"
] | 204 | 2015-11-06T21:34:34.000Z | 2022-03-30T16:17:01.000Z | api/python/tests/test_bingo_nosql.py | tsingdao-Tp/Indigo | b2d73faebb6a450e9b3d34fed553fad4f9d0012f | [
"Apache-2.0"
] | 509 | 2015-11-05T13:54:43.000Z | 2022-03-30T22:15:30.000Z | api/python/tests/test_bingo_nosql.py | tsingdao-Tp/Indigo | b2d73faebb6a450e9b3d34fed553fad4f9d0012f | [
"Apache-2.0"
] | 89 | 2015-11-17T08:22:54.000Z | 2022-03-17T04:26:28.000Z | import shutil
import tempfile
from indigo.bingo import Bingo
from tests import TestIndigoBase
class TestBingo(TestIndigoBase):
def setUp(self) -> None:
super().setUp()
self.test_folder = tempfile.mkdtemp()
def tearDown(self) -> None:
shutil.rmtree(self.test_folder)
def test_mol... | 33.820513 | 87 | 0.64746 | 156 | 1,319 | 5.378205 | 0.326923 | 0.107271 | 0.104887 | 0.085816 | 0.126341 | 0.085816 | 0 | 0 | 0 | 0 | 0 | 0.026471 | 0.226687 | 1,319 | 38 | 88 | 34.710526 | 0.796078 | 0 | 0 | 0 | 0 | 0 | 0.025777 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 1 | 0.09375 | false | 0 | 0.125 | 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 |
6e9910237b294e11a1a1bbded611300e71f69a4f | 3,932 | py | Python | src/core/src/tortuga/scripts/get_kit.py | sutasu/tortuga | 48d7cde4fa652346600b217043b4a734fa2ba455 | [
"Apache-2.0"
] | 33 | 2018-03-02T17:07:39.000Z | 2021-05-21T18:02:51.000Z | src/core/src/tortuga/scripts/get_kit.py | sutasu/tortuga | 48d7cde4fa652346600b217043b4a734fa2ba455 | [
"Apache-2.0"
] | 201 | 2018-03-05T14:28:24.000Z | 2020-11-23T19:58:27.000Z | src/core/src/tortuga/scripts/get_kit.py | sutasu/tortuga | 48d7cde4fa652346600b217043b4a734fa2ba455 | [
"Apache-2.0"
] | 23 | 2018-03-02T17:21:59.000Z | 2020-11-18T14:52:38.000Z | # Copyright 2008-2018 Univa Corporation
#
# 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... | 31.96748 | 74 | 0.559003 | 403 | 3,932 | 5.37469 | 0.436725 | 0.027701 | 0.027701 | 0.014774 | 0.060942 | 0.028624 | 0 | 0 | 0 | 0 | 0 | 0.012734 | 0.320956 | 3,932 | 122 | 75 | 32.229508 | 0.798502 | 0.169125 | 0 | 0.081081 | 0 | 0 | 0.122064 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0 | 0.067568 | 0 | 0.135135 | 0.135135 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6e9f10181a7ecfeffe5b3e63362769aa8677cc14 | 12,338 | py | Python | eventide/message.py | blakev/python-eventide | ef547a622c52eec8acb9d7ca4cc01fae0ab7bad0 | [
"MIT"
] | 1 | 2021-01-14T18:35:44.000Z | 2021-01-14T18:35:44.000Z | eventide/message.py | blakev/python-eventide | ef547a622c52eec8acb9d7ca4cc01fae0ab7bad0 | [
"MIT"
] | null | null | null | eventide/message.py | blakev/python-eventide | ef547a622c52eec8acb9d7ca4cc01fae0ab7bad0 | [
"MIT"
] | 2 | 2021-04-20T22:09:02.000Z | 2021-07-29T21:52:30.000Z | #! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# >>
# python-eventide, 2020
# LiveViewTech
# <<
from uuid import UUID, uuid4
from datetime import datetime
from operator import attrgetter
from functools import total_ordering
from dataclasses import (
field,
asdict,
fields,
dataclass,
_process_... | 33.710383 | 92 | 0.623197 | 1,481 | 12,338 | 5.035787 | 0.220122 | 0.046929 | 0.018772 | 0.011397 | 0.208903 | 0.179941 | 0.128855 | 0.0893 | 0.038884 | 0.038884 | 0 | 0.001823 | 0.288702 | 12,338 | 365 | 93 | 33.80274 | 0.847995 | 0.249635 | 0 | 0.122951 | 0 | 0 | 0.052052 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.118852 | false | 0 | 0.036885 | 0.065574 | 0.42623 | 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 |
6e9f30208ea04fa7ad96c88e5f93a7fce170ab1e | 10,926 | py | Python | utils/minifier.py | MateuszDabrowski/elquent | 9ff9c57d01a8ade7ebc7a903f228d4b7ed7324c4 | [
"MIT"
] | 4 | 2021-05-26T19:48:31.000Z | 2022-03-01T03:52:39.000Z | utils/minifier.py | MateuszDabrowski/ELQuent | 9ff9c57d01a8ade7ebc7a903f228d4b7ed7324c4 | [
"MIT"
] | null | null | null | utils/minifier.py | MateuszDabrowski/ELQuent | 9ff9c57d01a8ade7ebc7a903f228d4b7ed7324c4 | [
"MIT"
] | 3 | 2021-03-05T23:06:38.000Z | 2021-10-05T19:56:28.000Z | #!/usr/bin/env python3.6
# -*- coding: utf8 -*-
'''
ELQuent.minifier
E-mail code minifier
Mateusz Dąbrowski
github.com/MateuszDabrowski
linkedin.com/in/mateusz-dabrowski-marketing/
'''
import os
import re
import sys
import json
import pyperclip
from colorama import Fore, Style, init
# ELQuent imports
import utils.a... | 33.618462 | 116 | 0.532857 | 1,365 | 10,926 | 4.190476 | 0.204396 | 0.070804 | 0.040909 | 0.049825 | 0.383741 | 0.327273 | 0.25035 | 0.225524 | 0.217483 | 0.175699 | 0 | 0.006299 | 0.258924 | 10,926 | 324 | 117 | 33.722222 | 0.69853 | 0.124016 | 0 | 0.305699 | 0 | 0.056995 | 0.330715 | 0.154396 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036269 | false | 0 | 0.036269 | 0 | 0.11399 | 0.07772 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6ea22002e9ef59fb7dc0ae80af6cf9fc57e8fc02 | 2,305 | py | Python | doc/conf.py | safay/uta | bf3cf5a531aec4cca61f8926e79a624d01c76682 | [
"Apache-2.0"
] | 48 | 2016-09-20T16:28:46.000Z | 2022-02-02T10:32:02.000Z | doc/conf.py | safay/uta | bf3cf5a531aec4cca61f8926e79a624d01c76682 | [
"Apache-2.0"
] | 45 | 2016-12-12T23:41:12.000Z | 2022-02-09T11:48:04.000Z | doc/conf.py | safay/uta | bf3cf5a531aec4cca61f8926e79a624d01c76682 | [
"Apache-2.0"
] | 20 | 2016-10-09T10:16:44.000Z | 2021-06-18T02:19:58.000Z | ############################################################################
# Theme setup
html_theme = 'invitae'
html_theme_path = ['themes']
if html_theme == 'sphinx_rtd_theme':
import sphinx_rtd_theme
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
elif html_theme == 'bootstrap':
import sphi... | 29.935065 | 77 | 0.647722 | 270 | 2,305 | 5.355556 | 0.5 | 0.049793 | 0.044952 | 0.024896 | 0.103734 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006507 | 0.133189 | 2,305 | 76 | 78 | 30.328947 | 0.717217 | 0.291106 | 0 | 0 | 0 | 0 | 0.348518 | 0.046999 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.069767 | 0 | 0.069767 | 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 |
6ea3527b6763af10afefd4e777c572e2ac4172fc | 997 | py | Python | exercises_gustguan/ex113.py | Ewerton12F/Python-Notebook | 85c4d38c35c6063fb475c25ebf4645688ec9dbcb | [
"MIT"
] | null | null | null | exercises_gustguan/ex113.py | Ewerton12F/Python-Notebook | 85c4d38c35c6063fb475c25ebf4645688ec9dbcb | [
"MIT"
] | null | null | null | exercises_gustguan/ex113.py | Ewerton12F/Python-Notebook | 85c4d38c35c6063fb475c25ebf4645688ec9dbcb | [
"MIT"
] | null | null | null | def leiaInt(msg):
while True:
try:
i = int(input(msg))
except (ValueError, TypeError):
print('\033[1;3;31mERRO: Por favor, digite um número inteiro válido.\033[0;0;0m')
continue
except (KeyboardInterrupt):
print('\n\033[1;3;33mUsuário preferiu ... | 33.233333 | 93 | 0.565697 | 137 | 997 | 4.116788 | 0.350365 | 0.035461 | 0.044326 | 0.062057 | 0.556738 | 0.556738 | 0.556738 | 0.556738 | 0.556738 | 0.556738 | 0 | 0.097242 | 0.308927 | 997 | 30 | 94 | 33.233333 | 0.721335 | 0 | 0 | 0.518519 | 0 | 0.185185 | 0.392786 | 0.042084 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0 | 0 | 0.222222 | 0.185185 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6ea43d3eb6ab1823ba2e818e55cba7f4297fc931 | 10,851 | py | Python | frameworks/kafka/tests/auth.py | minyk/dcos-activemq | 57a0cf01053a7e2dc59020ed5cbb93f0d1c9cff1 | [
"Apache-2.0"
] | null | null | null | frameworks/kafka/tests/auth.py | minyk/dcos-activemq | 57a0cf01053a7e2dc59020ed5cbb93f0d1c9cff1 | [
"Apache-2.0"
] | null | null | null | frameworks/kafka/tests/auth.py | minyk/dcos-activemq | 57a0cf01053a7e2dc59020ed5cbb93f0d1c9cff1 | [
"Apache-2.0"
] | null | null | null | import json
import logging
import retrying
import sdk_cmd
LOG = logging.getLogger(__name__)
def wait_for_brokers(client: str, brokers: list):
"""
Run bootstrap on the specified client to resolve the list of brokers
"""
LOG.info("Running bootstrap to wait for DNS resolution")
bootstrap_cmd = ['/o... | 35.345277 | 117 | 0.599853 | 1,285 | 10,851 | 4.881712 | 0.209339 | 0.030129 | 0.021043 | 0.02455 | 0.37765 | 0.337956 | 0.302567 | 0.243902 | 0.202774 | 0.131994 | 0 | 0.010093 | 0.278684 | 10,851 | 306 | 118 | 35.460784 | 0.791363 | 0.027739 | 0 | 0.290323 | 0 | 0.013825 | 0.2438 | 0.07696 | 0 | 0 | 0 | 0.003268 | 0.041475 | 1 | 0.078341 | false | 0.036866 | 0.032258 | 0.004608 | 0.202765 | 0.004608 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6ea45f9b51639f8a0b82e891df2cc0bae0501648 | 1,242 | py | Python | python/problem-060.py | mbuhot/mbuhot-euler-solutions | 30066543cfd2d84976beb0605839750b64f4b8ef | [
"MIT"
] | 1 | 2015-12-18T13:25:41.000Z | 2015-12-18T13:25:41.000Z | python/problem-060.py | mbuhot/mbuhot-euler-solutions | 30066543cfd2d84976beb0605839750b64f4b8ef | [
"MIT"
] | null | null | null | python/problem-060.py | mbuhot/mbuhot-euler-solutions | 30066543cfd2d84976beb0605839750b64f4b8ef | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
import prime
description = '''
Prime pair sets
Problem 60
The primes 3, 7, 109, and 673, are quite remarkable. By taking any two primes and concatenating them in any order the result will always be prime. For example, taking 7 and 109, both 7109 and 1097 are prime. The sum of these four primes... | 29.571429 | 313 | 0.681159 | 213 | 1,242 | 3.971831 | 0.42723 | 0.007092 | 0.028369 | 0.035461 | 0.080378 | 0.080378 | 0.049645 | 0 | 0 | 0 | 0 | 0.0316 | 0.210145 | 1,242 | 41 | 314 | 30.292683 | 0.830785 | 0.017713 | 0 | 0 | 0 | 0.064516 | 0.378179 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0 | 0.032258 | 0.064516 | 0.258065 | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6ea54be459981a2401f315126f120b27aa749589 | 5,298 | py | Python | multilanguage_frappe_website/hooks.py | developmentforpeople/frappe-multilingual-website | c0bf74453f3d1de6127ad174aab6c05360cc1ec1 | [
"MIT"
] | null | null | null | multilanguage_frappe_website/hooks.py | developmentforpeople/frappe-multilingual-website | c0bf74453f3d1de6127ad174aab6c05360cc1ec1 | [
"MIT"
] | null | null | null | multilanguage_frappe_website/hooks.py | developmentforpeople/frappe-multilingual-website | c0bf74453f3d1de6127ad174aab6c05360cc1ec1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from . import __version__ as app_version
app_name = "multilanguage_frappe_website"
app_title = "Multilanguage Frappe Website"
app_publisher = "DFP developmentforpeople"
app_description = "Multilanguage Frappe Framework website example"
app_icon = "octicon... | 29.597765 | 99 | 0.714232 | 633 | 5,298 | 5.723539 | 0.300158 | 0.120618 | 0.15788 | 0.042782 | 0.237924 | 0.143527 | 0.116754 | 0.085012 | 0.085012 | 0.085012 | 0 | 0.002596 | 0.127595 | 5,298 | 178 | 100 | 29.764045 | 0.781264 | 0.651755 | 0 | 0 | 0 | 0 | 0.419113 | 0.143351 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.055556 | 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 |
6ea618363d6a6f275346b95643dd61b27b8e3d12 | 12,045 | py | Python | RsNet/train_models.py | gehuangyi20/random_spiking | c98b550420ae4061b9d47ca475e86c981caf5514 | [
"MIT"
] | 1 | 2020-08-03T17:47:40.000Z | 2020-08-03T17:47:40.000Z | RsNet/train_models.py | gehuangyi20/random_spiking | c98b550420ae4061b9d47ca475e86c981caf5514 | [
"MIT"
] | null | null | null | RsNet/train_models.py | gehuangyi20/random_spiking | c98b550420ae4061b9d47ca475e86c981caf5514 | [
"MIT"
] | null | null | null | ## train_models.py -- train the neural network models for attacking
##
## Copyright (C) 2016, Nicholas Carlini <nicholas@carlini.com>.
##
## This program is licenced under the BSD 2-Clause licence,
## contained in the LICENCE file in this directory.
## Modified for the needs of MagNet.
import os
import argparse
impor... | 47.235294 | 118 | 0.703778 | 1,759 | 12,045 | 4.541217 | 0.149517 | 0.050075 | 0.051077 | 0.047571 | 0.461067 | 0.435653 | 0.397596 | 0.358287 | 0.302704 | 0.25313 | 0 | 0.018246 | 0.176422 | 12,045 | 254 | 119 | 47.42126 | 0.786996 | 0.03296 | 0 | 0.186603 | 0 | 0 | 0.130682 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019139 | false | 0 | 0.07177 | 0.004785 | 0.114833 | 0.033493 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6ea71b4513f1f9f11b82f5034de5e9e21242e450 | 3,151 | py | Python | link_crawler.py | Stevearzh/greedy-spider | ca8b1d892e4ac5066ab33aafe7755ee959ef630a | [
"MIT"
] | null | null | null | link_crawler.py | Stevearzh/greedy-spider | ca8b1d892e4ac5066ab33aafe7755ee959ef630a | [
"MIT"
] | null | null | null | link_crawler.py | Stevearzh/greedy-spider | ca8b1d892e4ac5066ab33aafe7755ee959ef630a | [
"MIT"
] | null | null | null | import datetime
import re
import time
import urllib
from urllib import robotparser
from urllib.request import urlparse
from downloader import Downloader
DEFAULT_DELAY = 5
DEFAULT_DEPTH = -1
DEFAULT_URL = -1
DEFAULT_AGENT = 'wswp'
DEFAULT_RETRY = 1
DEFAULT_TIMEOUT = 60
DEFAULT_IGNORE_ROBOTS = False
def link_crawler... | 28.645455 | 100 | 0.668042 | 438 | 3,151 | 4.643836 | 0.335616 | 0.030973 | 0.02704 | 0.012783 | 0.021632 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00588 | 0.244367 | 3,151 | 109 | 101 | 28.908257 | 0.848383 | 0.256744 | 0 | 0 | 0 | 0 | 0.026513 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081967 | false | 0.016393 | 0.114754 | 0 | 0.262295 | 0.016393 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6ea8ed0768136e88f53d0dbb5391ad2ceecced0d | 3,914 | py | Python | python/create_account_with_captcha.py | shivanshbindal9/MediaWiki-Action-API-Code-Samples | 7d673e73d7cabbf4342a18d275b271e7d4456808 | [
"MIT"
] | null | null | null | python/create_account_with_captcha.py | shivanshbindal9/MediaWiki-Action-API-Code-Samples | 7d673e73d7cabbf4342a18d275b271e7d4456808 | [
"MIT"
] | null | null | null | python/create_account_with_captcha.py | shivanshbindal9/MediaWiki-Action-API-Code-Samples | 7d673e73d7cabbf4342a18d275b271e7d4456808 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
"""
create_account_with_captcha.py
MediaWiki Action API Code Samples
Demo of `createaccount` module: Create an account on a wiki with a special
authentication extension installed. This example considers a case of a wiki
where captcha is enabled through extensions like ConfirmEdi... | 29.428571 | 94 | 0.625447 | 416 | 3,914 | 5.737981 | 0.350962 | 0.032677 | 0.023879 | 0.02765 | 0.120654 | 0.087977 | 0.03938 | 0.03938 | 0.03938 | 0.03938 | 0 | 0.003706 | 0.241696 | 3,914 | 132 | 95 | 29.651515 | 0.800539 | 0.168881 | 0 | 0.2 | 0 | 0 | 0.256981 | 0.069344 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047059 | false | 0.035294 | 0.023529 | 0 | 0.105882 | 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 |
6eabff19e23935994d6606bc2eb537d62eca55d2 | 498 | py | Python | referralnote/urls.py | fahimfarhan/cancer-web-app | 6c5d8c5c90b0909cbd161d2ae87b4f12549bdfef | [
"MIT"
] | null | null | null | referralnote/urls.py | fahimfarhan/cancer-web-app | 6c5d8c5c90b0909cbd161d2ae87b4f12549bdfef | [
"MIT"
] | 5 | 2021-03-18T20:13:38.000Z | 2022-01-13T00:35:37.000Z | referralnote/urls.py | fahimfarhan/cancer-web-app | 6c5d8c5c90b0909cbd161d2ae87b4f12549bdfef | [
"MIT"
] | null | null | null | from django.conf.urls import url
from referralnote import views
app_name = 'referral_note'
#view_obj = views.ReferralNotes()
urlpatterns = [
url(r'^(?P<p_id>[0-9]+)/delete_referralnote/(?P<notenum>[0-9]+)$', views.delete_refnote,
name='delete_referralnote'),
url(r'^(?P<p_id>[0-9]+)/edit_referralnote... | 31.125 | 120 | 0.688755 | 72 | 498 | 4.555556 | 0.361111 | 0.030488 | 0.045732 | 0.054878 | 0.329268 | 0.329268 | 0.164634 | 0.134146 | 0 | 0 | 0 | 0.022422 | 0.104418 | 498 | 15 | 121 | 33.2 | 0.713004 | 0.064257 | 0 | 0 | 0 | 0 | 0.462366 | 0.322581 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 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 |
6eac2fd4f481feb51a0c938cf7a2f928ddd2ec46 | 742 | py | Python | beetlesafari/io/_imread_raw.py | haesleinhuepf/beetle-safari | a6c90d10b6b4d67c153f87c83c02bd23f2b13843 | [
"BSD-3-Clause"
] | null | null | null | beetlesafari/io/_imread_raw.py | haesleinhuepf/beetle-safari | a6c90d10b6b4d67c153f87c83c02bd23f2b13843 | [
"BSD-3-Clause"
] | null | null | null | beetlesafari/io/_imread_raw.py | haesleinhuepf/beetle-safari | a6c90d10b6b4d67c153f87c83c02bd23f2b13843 | [
"BSD-3-Clause"
] | null | null | null | # thanks to max9111, https://stackoverflow.com/questions/41651998/python-read-and-convert-raw-3d-image-file
import numpy as np
from functools import lru_cache
@lru_cache(maxsize=2)
def imread_raw(filename : str, width : int = 1, height : int = 1, depth : int = 1, dtype = np.uint16):
"""Loads a raw image file (3D) ... | 27.481481 | 107 | 0.663073 | 104 | 742 | 4.663462 | 0.605769 | 0.049485 | 0.078351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034783 | 0.225067 | 742 | 27 | 108 | 27.481481 | 0.808696 | 0.469003 | 0 | 0 | 0 | 0 | 0.005831 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.444444 | 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 |
6eaef18c836b626ea67de2012928ab0468afa91b | 10,336 | py | Python | highest_iso.py | chem-william/helix_fit | b9921b0068f1a3084985ca820094a0db15b6aac2 | [
"MIT"
] | null | null | null | highest_iso.py | chem-william/helix_fit | b9921b0068f1a3084985ca820094a0db15b6aac2 | [
"MIT"
] | null | null | null | highest_iso.py | chem-william/helix_fit | b9921b0068f1a3084985ca820094a0db15b6aac2 | [
"MIT"
] | null | null | null | import os
from ase.visualize import view
from mpl_toolkits.mplot3d import Axes3D # noqa
from scipy.optimize import curve_fit
from tqdm import tqdm
import matplotlib.pyplot as plt
import numpy as np
import seaborn as sns
sns.set(
style="ticks",
rc={
"font.family": "Arial",
"font.size": 40,
... | 31.039039 | 95 | 0.544601 | 1,363 | 10,336 | 3.979457 | 0.217168 | 0.033186 | 0.028761 | 0.036504 | 0.24115 | 0.157448 | 0.143621 | 0.131822 | 0.131822 | 0.131822 | 0 | 0.028857 | 0.322755 | 10,336 | 332 | 96 | 31.13253 | 0.746 | 0.279605 | 0 | 0.107143 | 0 | 0 | 0.07233 | 0.010313 | 0 | 0 | 0 | 0.003012 | 0 | 1 | 0.020408 | false | 0 | 0.056122 | 0 | 0.096939 | 0.081633 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6eb3861496ef592c07af6ae7b192e47f4452b309 | 1,481 | py | Python | secure_ml/attack/model_inversion.py | Koukyosyumei/secure_ml | 9da24f4ce4782ec2f6dd63b0437f657a0e190e40 | [
"MIT"
] | 10 | 2021-02-23T01:32:48.000Z | 2021-11-16T06:02:26.000Z | secure_ml/attack/model_inversion.py | Koukyosyumei/secure_ml | 9da24f4ce4782ec2f6dd63b0437f657a0e190e40 | [
"MIT"
] | 2 | 2021-05-16T08:38:19.000Z | 2021-06-20T09:01:45.000Z | secure_ml/attack/model_inversion.py | Koukyosyumei/secure_ml | 9da24f4ce4782ec2f6dd63b0437f657a0e190e40 | [
"MIT"
] | 4 | 2021-02-25T04:33:06.000Z | 2021-08-17T05:43:47.000Z | import torch
from ..attack.base_attack import BaseAttacker
class Model_inversion(BaseAttacker):
def __init__(self, target_model, input_shape):
"""implementation of model inversion attack
reference https://dl.acm.org/doi/pdf/10.1145/2810103.2813677
Args:
target_model: model... | 30.854167 | 73 | 0.574612 | 178 | 1,481 | 4.58427 | 0.455056 | 0.080882 | 0.055147 | 0.044118 | 0.14951 | 0.14951 | 0.14951 | 0.14951 | 0.14951 | 0.14951 | 0 | 0.021191 | 0.330858 | 1,481 | 47 | 74 | 31.510638 | 0.80222 | 0.388251 | 0 | 0 | 0 | 0 | 0.003963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.105263 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6eb49308c616d061678bacc901cf34896446490d | 448 | py | Python | tests/integration_tests/data/service_utils_integration_test/main_service.py | ZacharyATanenbaum/service_framework | b5dde4407998350d1b7ad09284110b986fd4e12a | [
"MIT"
] | 1 | 2020-03-20T21:33:56.000Z | 2020-03-20T21:33:56.000Z | tests/integration_tests/data/service_utils_integration_test/main_service.py | ZacharyATanenbaum/service_framework | b5dde4407998350d1b7ad09284110b986fd4e12a | [
"MIT"
] | 1 | 2020-03-22T03:48:45.000Z | 2020-03-22T03:48:45.000Z | tests/integration_tests/data/service_utils_integration_test/main_service.py | ZacharyATanenbaum/service_framework | b5dde4407998350d1b7ad09284110b986fd4e12a | [
"MIT"
] | null | null | null | """ Basic service for testing the service_utils run_main """
def main(to_send, config):
print('Hello World Main...')
connection_models = {
'out': {
'out_connection_1': {
'connection_type': 'requester',
'required_arguments': {
'this_is_a_test_arg': str,
... | 22.4 | 60 | 0.517857 | 44 | 448 | 4.863636 | 0.681818 | 0.121495 | 0.140187 | 0.149533 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003472 | 0.357143 | 448 | 19 | 61 | 23.578947 | 0.739583 | 0.116071 | 0 | 0 | 0 | 0 | 0.368557 | 0.064433 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0 | 0 | 0.066667 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6eba2b9c96279d6bf89fd584cbe501fd83d1e0c7 | 2,708 | py | Python | wtdb_test.py | hughgrigg/wtdb | 6614053cbbc0086d5470ee7e9f2d6a68fdb9ed94 | [
"MIT"
] | null | null | null | wtdb_test.py | hughgrigg/wtdb | 6614053cbbc0086d5470ee7e9f2d6a68fdb9ed94 | [
"MIT"
] | null | null | null | wtdb_test.py | hughgrigg/wtdb | 6614053cbbc0086d5470ee7e9f2d6a68fdb9ed94 | [
"MIT"
] | null | null | null | import wtdb
import unittest
class TestWtdbFunctions(unittest.TestCase):
def test_n_swaps_zero(self):
self.assertEqual(
frozenset(),
wtdb.n_swaps('foo', 'bar', 0),
)
def test_n_swaps_single(self):
self.assertSequenceEqual(
{
frozense... | 28.505263 | 77 | 0.531388 | 277 | 2,708 | 4.945848 | 0.274368 | 0.112409 | 0.087591 | 0.054745 | 0.255474 | 0.169343 | 0.169343 | 0.169343 | 0.169343 | 0.113869 | 0 | 0.001596 | 0.305761 | 2,708 | 94 | 78 | 28.808511 | 0.727128 | 0 | 0 | 0.24359 | 0 | 0 | 0.113368 | 0 | 0 | 0 | 0 | 0 | 0.128205 | 1 | 0.128205 | false | 0 | 0.038462 | 0 | 0.192308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6ebb9230b1ec2e150157978f3bf6129f5b2db4e9 | 5,423 | py | Python | envisionpy/processor_network/BandstructureNetworkHandler.py | Vevn/ENVISIoN | d0e48a5ec38ed95375f632eafdc5814415f0f570 | [
"BSD-2-Clause"
] | null | null | null | envisionpy/processor_network/BandstructureNetworkHandler.py | Vevn/ENVISIoN | d0e48a5ec38ed95375f632eafdc5814415f0f570 | [
"BSD-2-Clause"
] | null | null | null | envisionpy/processor_network/BandstructureNetworkHandler.py | Vevn/ENVISIoN | d0e48a5ec38ed95375f632eafdc5814415f0f570 | [
"BSD-2-Clause"
] | 1 | 2020-05-15T14:52:19.000Z | 2020-05-15T14:52:19.000Z | # ENVISIoN
#
# Copyright (c) 2019 Jesper Ericsson
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this
# list o... | 47.570175 | 130 | 0.650009 | 582 | 5,423 | 5.919244 | 0.398625 | 0.025544 | 0.0418 | 0.022061 | 0.171843 | 0.085341 | 0.070247 | 0.039478 | 0.039478 | 0.039478 | 0 | 0.017879 | 0.247096 | 5,423 | 113 | 131 | 47.99115 | 0.825863 | 0.495667 | 0 | 0.1 | 0 | 0 | 0.148076 | 0.071901 | 0 | 0 | 0 | 0.00885 | 0 | 1 | 0.075 | false | 0 | 0.125 | 0.025 | 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 |
6ebdf946af2b4bf33b3b815af562307b2b1a73fd | 26,442 | py | Python | smt/decoder/stackdecoder.py | kenkov/smt | db0a9fff15876442f1895b3ef730e91f7c84ad9b | [
"MIT"
] | 83 | 2015-01-12T14:40:08.000Z | 2022-01-07T09:41:09.000Z | smt/decoder/stackdecoder.py | HimmelStein/smt | db0a9fff15876442f1895b3ef730e91f7c84ad9b | [
"MIT"
] | 1 | 2016-12-08T21:22:23.000Z | 2016-12-08T21:22:23.000Z | smt/decoder/stackdecoder.py | HimmelStein/smt | db0a9fff15876442f1895b3ef730e91f7c84ad9b | [
"MIT"
] | 38 | 2015-04-08T04:39:13.000Z | 2021-11-14T13:16:19.000Z | #! /usr/bin/env python
# coding:utf-8
from __future__ import division, print_function
import math
# sqlalchemy
import sqlalchemy
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import create_engine
from sqlalchemy import Column, TEXT, REAL, INTEGER
from sqlalchemy.orm import sessionmaker
from s... | 32.444172 | 79 | 0.514182 | 2,802 | 26,442 | 4.619914 | 0.104211 | 0.017304 | 0.025029 | 0.011124 | 0.337968 | 0.295558 | 0.214909 | 0.182928 | 0.171572 | 0.155504 | 0 | 0.014761 | 0.382535 | 26,442 | 814 | 80 | 32.484029 | 0.778098 | 0.095984 | 0 | 0.322259 | 0 | 0 | 0.03259 | 0.000935 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081395 | false | 0.003322 | 0.013289 | 0.039867 | 0.227575 | 0.008306 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6ebe31c36f436e8ae484085447aaa84df7e9db45 | 6,711 | py | Python | amoebaelib/generate_histogram_plot.py | laelbarlow/amoebae | 3c6607bcb64a60baee2f19f0a25e14b325e9725d | [
"Apache-2.0"
] | 8 | 2020-07-16T21:36:38.000Z | 2021-11-28T08:32:05.000Z | amoebaelib/generate_histogram_plot.py | laelbarlow/amoebae | 3c6607bcb64a60baee2f19f0a25e14b325e9725d | [
"Apache-2.0"
] | null | null | null | amoebaelib/generate_histogram_plot.py | laelbarlow/amoebae | 3c6607bcb64a60baee2f19f0a25e14b325e9725d | [
"Apache-2.0"
] | 1 | 2020-07-31T21:21:15.000Z | 2020-07-31T21:21:15.000Z | #!/usr/bin/env python3
# Copyright 2018 Lael D. Barlow
#
# 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 ... | 31.069444 | 119 | 0.58203 | 829 | 6,711 | 4.618818 | 0.289505 | 0.043876 | 0.018804 | 0.018804 | 0.462784 | 0.39906 | 0.375555 | 0.375555 | 0.375555 | 0.361974 | 0 | 0.01374 | 0.316793 | 6,711 | 215 | 120 | 31.213953 | 0.821374 | 0.477276 | 0 | 0.348315 | 0 | 0 | 0.064401 | 0 | 0 | 0 | 0 | 0 | 0.022472 | 1 | 0.044944 | false | 0 | 0.067416 | 0 | 0.11236 | 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 |
6ebfe39e2bd770fe4ca5a9e9da4a3af5efa9f58a | 12,838 | py | Python | fast_segmentation/core/evaluate.py | eilonshi/tevel-segmentation | bf9168fafa181ff4eac1d1eba0b0f8a06f5daae1 | [
"MIT"
] | null | null | null | fast_segmentation/core/evaluate.py | eilonshi/tevel-segmentation | bf9168fafa181ff4eac1d1eba0b0f8a06f5daae1 | [
"MIT"
] | null | null | null | fast_segmentation/core/evaluate.py | eilonshi/tevel-segmentation | bf9168fafa181ff4eac1d1eba0b0f8a06f5daae1 | [
"MIT"
] | null | null | null | import os
import os.path as osp
import logging
import argparse
import math
import yaml
from tabulate import tabulate
from torch.utils.data import Dataset
from tqdm import tqdm
from typing import Tuple, List
import torch
import torch.nn as nn
import torch.nn.functional as functional
import torch.distributed as dist
f... | 38.668675 | 119 | 0.621436 | 1,806 | 12,838 | 4.179402 | 0.150609 | 0.021198 | 0.033784 | 0.014308 | 0.352146 | 0.286963 | 0.205485 | 0.177663 | 0.139507 | 0.063328 | 0 | 0.01139 | 0.254557 | 12,838 | 331 | 120 | 38.785498 | 0.777325 | 0.019084 | 0 | 0.151261 | 0 | 0 | 0.062709 | 0.030837 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05042 | false | 0 | 0.084034 | 0 | 0.180672 | 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 |
6ec38b237400c36dd79206a7de24521d924c26b5 | 940 | py | Python | talent/urls.py | flannerykj/urbanapplause | c9b6c0f9a2f65b869fe1e6fa921972e7236e4fe5 | [
"MIT"
] | null | null | null | talent/urls.py | flannerykj/urbanapplause | c9b6c0f9a2f65b869fe1e6fa921972e7236e4fe5 | [
"MIT"
] | null | null | null | talent/urls.py | flannerykj/urbanapplause | c9b6c0f9a2f65b869fe1e6fa921972e7236e4fe5 | [
"MIT"
] | null | null | null | from django.conf.urls import url
from . import views
app_name = 'talent'
urlpatterns = [
url(r'^$', views.IndexView.as_view(), name='index'),
url(r'^musicians/$', views.MusicianIndex.as_view(), name='musicians'),
url(r'^musicians/(?P<pk>[0-9]+)/$', views.MusicianDetail.as_view(), name='musician-detail'),
... | 55.294118 | 98 | 0.659574 | 131 | 940 | 4.648855 | 0.290076 | 0.065681 | 0.164204 | 0.118227 | 0.182266 | 0.055829 | 0 | 0 | 0 | 0 | 0 | 0.004684 | 0.091489 | 940 | 17 | 99 | 55.294118 | 0.708431 | 0 | 0 | 0 | 0 | 0 | 0.341126 | 0.147715 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 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 |
6ec4b74ab4db122d30b5b736d0e106eb22df1a59 | 11,282 | py | Python | plazma.py | caos21/Grodi | 3ae09f9283f3e1afdd641943e2244afc78511053 | [
"Apache-2.0"
] | 2 | 2019-12-11T16:19:46.000Z | 2020-08-19T20:14:18.000Z | plazma.py | caos21/Grodi | 3ae09f9283f3e1afdd641943e2244afc78511053 | [
"Apache-2.0"
] | null | null | null | plazma.py | caos21/Grodi | 3ae09f9283f3e1afdd641943e2244afc78511053 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Benjamin Santos
#
# 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... | 34.713846 | 87 | 0.576139 | 1,378 | 11,282 | 4.56894 | 0.214078 | 0.050032 | 0.060991 | 0.012071 | 0.286055 | 0.129924 | 0.074809 | 0.064327 | 0.021601 | 0.021601 | 0 | 0.043301 | 0.306063 | 11,282 | 324 | 88 | 34.820988 | 0.760889 | 0.123028 | 0 | 0.0553 | 0 | 0 | 0.047087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.087558 | false | 0 | 0.018433 | 0 | 0.18894 | 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 |
6ec843c15f7247a66d7807de9b1b0eb37d884ff5 | 3,598 | py | Python | venvs/sitio_web/restaurantes/views.py | mmaguero/MII-SSBW16-17 | 25b6c340c63a2fbe8342b48ec7f730b68c58d1bc | [
"MIT"
] | 1 | 2017-04-22T11:02:38.000Z | 2017-04-22T11:02:38.000Z | venvs/sitio_web/restaurantes/views.py | mmaguero/MII-SSBW16-17 | 25b6c340c63a2fbe8342b48ec7f730b68c58d1bc | [
"MIT"
] | 4 | 2017-06-17T16:10:45.000Z | 2022-02-13T20:23:04.000Z | venvs/sitio_web/restaurantes/views.py | mmaguero/MII-SSBW16-17 | 25b6c340c63a2fbe8342b48ec7f730b68c58d1bc | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django.shortcuts import render, HttpResponse,redirect
from django.http import JsonResponse
from .forms import RestaurantesForm
from .models import restaurants, addr#, image
from django.contrib.auth.decorators import login_required
import logging
log = logging.getLogger(__name__)
# Create... | 30.491525 | 248 | 0.636465 | 434 | 3,598 | 5.221198 | 0.345622 | 0.024713 | 0.035305 | 0.052957 | 0.182701 | 0.127538 | 0.127538 | 0.127538 | 0.127538 | 0.090026 | 0 | 0.006113 | 0.227071 | 3,598 | 117 | 249 | 30.752137 | 0.808702 | 0.196776 | 0 | 0.194805 | 0 | 0.012987 | 0.184836 | 0.020964 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103896 | false | 0 | 0.077922 | 0 | 0.298701 | 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 |
6ecb10199a77a73ed62e4b61289eba8a812c02c6 | 342 | py | Python | products/urls.py | Tsatsubii/tsatsubii-helpdesk | baee05b4fd1aedfda8e4039c45f182f29e8db348 | [
"MIT"
] | null | null | null | products/urls.py | Tsatsubii/tsatsubii-helpdesk | baee05b4fd1aedfda8e4039c45f182f29e8db348 | [
"MIT"
] | null | null | null | products/urls.py | Tsatsubii/tsatsubii-helpdesk | baee05b4fd1aedfda8e4039c45f182f29e8db348 | [
"MIT"
] | null | null | null | from django.urls import path
from .views import *
app_name = 'products'
urlpatterns = [
path('create', CreateProduct.as_view(), name='create'),
path('view/<int:pk>', ProductDetail.as_view(), name='detail'),
path('list', ProductList.as_view(), name='list'),
path('<int:pk>/update', ProductUpdate.as_view... | 28.5 | 68 | 0.666667 | 44 | 342 | 5.068182 | 0.5 | 0.107623 | 0.179372 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131579 | 342 | 11 | 69 | 31.090909 | 0.750842 | 0 | 0 | 0 | 0 | 0 | 0.19883 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 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 |
6eceb56b5b2b3973a3c6557e579442305e42471b | 3,374 | py | Python | asyncspotify/album.py | minibox24/asyncspotify | 3767cf19cf598fb179883cffd878e2440c16a57c | [
"MIT"
] | 7 | 2020-06-16T21:24:42.000Z | 2022-03-10T20:23:29.000Z | asyncspotify/album.py | minibox24/asyncspotify | 3767cf19cf598fb179883cffd878e2440c16a57c | [
"MIT"
] | 13 | 2020-03-22T12:07:04.000Z | 2021-08-15T19:06:57.000Z | asyncspotify/album.py | minibox24/asyncspotify | 3767cf19cf598fb179883cffd878e2440c16a57c | [
"MIT"
] | 5 | 2020-03-22T18:21:55.000Z | 2021-10-03T06:30:30.000Z | from datetime import datetime
from .mixins import ArtistMixin, ExternalIDMixin, ExternalURLMixin, ImageMixin, TrackMixin
from .object import SpotifyObject
from .track import SimpleTrack
class _BaseAlbum(SpotifyObject, TrackMixin, ImageMixin, ExternalURLMixin, ArtistMixin):
_type = 'album'
_track_class = SimpleTrac... | 31.830189 | 224 | 0.727623 | 477 | 3,374 | 4.979036 | 0.339623 | 0.050947 | 0.037895 | 0.030316 | 0.053895 | 0.053895 | 0.053895 | 0.033684 | 0.033684 | 0 | 0 | 0.003537 | 0.162122 | 3,374 | 105 | 225 | 32.133333 | 0.836576 | 0.595436 | 0 | 0.162162 | 0 | 0 | 0.085357 | 0.015267 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0 | 0.108108 | 0 | 0.324324 | 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 |
6ed14769a9b989c5617ba6fd0d9b5db6ab25f970 | 2,948 | py | Python | tools_box/_hr/doctype/stationaries_log/stationaries_log.py | maisonarmani/Tools_Box | 4f8cc3a0deac1be50a3ac80758a10608faf58454 | [
"MIT"
] | 4 | 2017-09-25T23:34:08.000Z | 2020-07-17T23:52:26.000Z | tools_box/_hr/doctype/stationaries_log/stationaries_log.py | maisonarmani/Tools_Box | 4f8cc3a0deac1be50a3ac80758a10608faf58454 | [
"MIT"
] | null | null | null | tools_box/_hr/doctype/stationaries_log/stationaries_log.py | maisonarmani/Tools_Box | 4f8cc3a0deac1be50a3ac80758a10608faf58454 | [
"MIT"
] | 5 | 2017-06-02T01:58:32.000Z | 2022-02-22T16:59:01.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2017, masonarmani38@gmail.com and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class StationariesLog(Document):
def on_submit(self):
for item in self.... | 30.708333 | 123 | 0.640095 | 413 | 2,948 | 4.27845 | 0.276029 | 0.102999 | 0.113186 | 0.0515 | 0.162422 | 0.049802 | 0.028297 | 0 | 0 | 0 | 0 | 0.010082 | 0.259837 | 2,948 | 95 | 124 | 31.031579 | 0.799725 | 0.090909 | 0 | 0 | 0 | 0 | 0.109363 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.060606 | 0 | 0.166667 | 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 |
6ed320ed0b2ababd92ec43fa0249838c7f41091f | 1,119 | py | Python | build_scripts/yariv_shaders/yariv_to_hex.py | danilw/vulkan-shadertoy-launcher | 8a8a00f2f32d5c4dc64b625a9bdfe4adcdc5c4ec | [
"MIT"
] | 37 | 2020-03-16T00:21:03.000Z | 2022-03-04T23:30:30.000Z | build_scripts/yariv_shaders/yariv_to_hex.py | danilw/vulkan-shadertoy-launcher | 8a8a00f2f32d5c4dc64b625a9bdfe4adcdc5c4ec | [
"MIT"
] | 1 | 2020-06-04T12:29:24.000Z | 2021-03-14T21:31:55.000Z | example_game/shaders/yariv_to_hex.py | danilw/vulkan_shader_launcher | e41c5a9c0f35a72e12a5300f194e9faff83aa684 | [
"MIT"
] | 2 | 2021-03-27T06:28:53.000Z | 2021-09-05T20:29:36.000Z | import struct
import os
import sys
import subprocess
if len(sys.argv) != 2:
print('Usage: python %s filename \n output is *.spv *.yariv and *.hex file \n' % sys.argv[0])
quit()
inputfilepath = sys.argv[1]
outputname = os.path.basename(inputfilepath)
outdir = os.path.dirname(inputfilepath)
ginfile = os.path.basen... | 23.808511 | 98 | 0.670241 | 158 | 1,119 | 4.727848 | 0.398734 | 0.072289 | 0.066934 | 0.091031 | 0.174029 | 0.141901 | 0 | 0 | 0 | 0 | 0 | 0.019916 | 0.147453 | 1,119 | 46 | 99 | 24.326087 | 0.763103 | 0 | 0 | 0.114286 | 0 | 0 | 0.12958 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.114286 | 0 | 0.114286 | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6ed529dee684fd60fac1d8d89d7b4a98c0265b6b | 3,672 | py | Python | gui/cli.py | HaoZeke/prest | eec6b34bde4e060f52a391662347918995ded245 | [
"BSD-3-Clause"
] | null | null | null | gui/cli.py | HaoZeke/prest | eec6b34bde4e060f52a391662347918995ded245 | [
"BSD-3-Clause"
] | null | null | null | gui/cli.py | HaoZeke/prest | eec6b34bde4e060f52a391662347918995ded245 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
import sys
import logging
import argparse
import tqdm
import dataset.budgetary
from model import *
from test import MockWorker
from dataset import load_raw_csv
from gui.estimation import Options as EstimationOpts
from dataset.experimental_data import ExperimentalData
logging.basicConfig(level... | 31.655172 | 106 | 0.659586 | 434 | 3,672 | 5.419355 | 0.299539 | 0.044218 | 0.029762 | 0.024235 | 0.180272 | 0.159014 | 0.088435 | 0 | 0 | 0 | 0 | 0.002419 | 0.211874 | 3,672 | 115 | 107 | 31.930435 | 0.810297 | 0.005719 | 0 | 0.042105 | 0 | 0 | 0.119178 | 0 | 0.010526 | 0 | 0 | 0 | 0 | 1 | 0.063158 | false | 0 | 0.105263 | 0 | 0.178947 | 0.021053 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6ed8e2ed4b2704d5c1be4866ec0fcfee29634e45 | 1,932 | py | Python | api.py | amagrabi/oeb-importer-proto | f93b1ac1834e10595c8d89e23cde1fadfc88d009 | [
"Apache-2.0"
] | null | null | null | api.py | amagrabi/oeb-importer-proto | f93b1ac1834e10595c8d89e23cde1fadfc88d009 | [
"Apache-2.0"
] | null | null | null | api.py | amagrabi/oeb-importer-proto | f93b1ac1834e10595c8d89e23cde1fadfc88d009 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Functions to make API calls.
@author: amagrabi
"""
import requests
def login(client_id, client_secret, project_key, scope, host = 'EU'):
'''Authentification
Args:
client_id: client_id.
client_secret: client_secret.
project_key... | 29.272727 | 104 | 0.59058 | 249 | 1,932 | 4.493976 | 0.413655 | 0.071492 | 0.050045 | 0.053619 | 0.205541 | 0.078642 | 0.078642 | 0.078642 | 0.078642 | 0.078642 | 0 | 0.003544 | 0.269669 | 1,932 | 66 | 105 | 29.272727 | 0.789511 | 0.30176 | 0 | 0.333333 | 0 | 0 | 0.343598 | 0.057536 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.037037 | 0 | 0.185185 | 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 |
6ed978e5e0ccff6910a7ff36922b214818cfc125 | 769 | py | Python | model/addParams.py | thegricean/modals | 9bb267a64542ee30e2770d79d9cd5d9cce890be8 | [
"MIT"
] | null | null | null | model/addParams.py | thegricean/modals | 9bb267a64542ee30e2770d79d9cd5d9cce890be8 | [
"MIT"
] | null | null | null | model/addParams.py | thegricean/modals | 9bb267a64542ee30e2770d79d9cd5d9cce890be8 | [
"MIT"
] | null | null | null | import sys, re, string, numpy
p_strongs = numpy.arange(0.1, 0.9, 0.1)
costs = range(3, 10, 1)
for p_s in p_strongs:
p_meds = numpy.arange(0.1, 1-p_s, 0.1)
for p_m in p_meds:
p_w = 1 - p_s - p_m
for cost in costs:
filename = str(p_s) + "_" + str(p_m) + "_" + str(p_w) + "_" + str(cos... | 40.473684 | 186 | 0.461638 | 128 | 769 | 2.59375 | 0.34375 | 0.108434 | 0.045181 | 0.078313 | 0.054217 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03301 | 0.330299 | 769 | 18 | 187 | 42.722222 | 0.61165 | 0.087126 | 0 | 0 | 0 | 0 | 0.134094 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 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 |
6ee3a4796a1381dccf1edb9593a4f340f39bac8a | 9,750 | py | Python | main_cifar10.py | snu-ccl/approxCNN | 49cc0e6635682f678f8501424063102fe30d7dd6 | [
"CECILL-B"
] | 1 | 2022-01-16T03:45:43.000Z | 2022-01-16T03:45:43.000Z | main_cifar10.py | snu-ccl/approxCNN | 49cc0e6635682f678f8501424063102fe30d7dd6 | [
"CECILL-B"
] | null | null | null | main_cifar10.py | snu-ccl/approxCNN | 49cc0e6635682f678f8501424063102fe30d7dd6 | [
"CECILL-B"
] | null | null | null | from __future__ import print_function
from tqdm import *
import sys
import argparse
import torch
import torch.nn as nn
import torch.optim as optim
from torch.autograd import Variable
from torch.utils.data import DataLoader
from torch.optim import lr_scheduler
import torch.utils.data.distributed
import torchvision.tran... | 41.489362 | 136 | 0.643282 | 1,234 | 9,750 | 4.91248 | 0.233387 | 0.034312 | 0.032333 | 0.023755 | 0.212141 | 0.180304 | 0.116628 | 0.088255 | 0.070934 | 0.056087 | 0 | 0.029478 | 0.224103 | 9,750 | 234 | 137 | 41.666667 | 0.771844 | 0.005333 | 0 | 0.19171 | 0 | 0.005181 | 0.249226 | 0.015061 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015544 | false | 0 | 0.082902 | 0 | 0.103627 | 0.165803 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6ee540409b07f789b14091c60316fa04528be96a | 1,355 | py | Python | annotation_predictor/concat_detection_records.py | Inch4Tk/label_server | 3d0c39dd5a0c456794a1375051ca4f93a438ebf6 | [
"MIT"
] | null | null | null | annotation_predictor/concat_detection_records.py | Inch4Tk/label_server | 3d0c39dd5a0c456794a1375051ca4f93a438ebf6 | [
"MIT"
] | null | null | null | annotation_predictor/concat_detection_records.py | Inch4Tk/label_server | 3d0c39dd5a0c456794a1375051ca4f93a438ebf6 | [
"MIT"
] | null | null | null | import argparse
import json
import os
from datetime import datetime
from settings import annotation_predictor_metadata_dir
def concat_detection_record(record1: str, record2: str):
"""
Concatenates two detection records and saves them in a new file.
Args:
record1: Path to first record, saved in a ... | 32.261905 | 81 | 0.678967 | 194 | 1,355 | 4.494845 | 0.381443 | 0.09633 | 0.082569 | 0.044725 | 0.176606 | 0.176606 | 0 | 0 | 0 | 0 | 0 | 0.016114 | 0.221402 | 1,355 | 42 | 82 | 32.261905 | 0.810427 | 0.15572 | 0 | 0 | 0 | 0 | 0.169811 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.192308 | 0 | 0.269231 | 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 |
6ee9460f4f92c18fd62442a8f5aa3304ac1ef00f | 9,068 | py | Python | phot/command_test.py | SilverRon/gppy | 0ee56ca270af62afe1702fce37bef30add14f12a | [
"MIT"
] | 4 | 2019-05-08T08:08:59.000Z | 2021-12-22T08:57:46.000Z | phot/command_test.py | SilverRon/gppy | 0ee56ca270af62afe1702fce37bef30add14f12a | [
"MIT"
] | null | null | null | phot/command_test.py | SilverRon/gppy | 0ee56ca270af62afe1702fce37bef30add14f12a | [
"MIT"
] | 2 | 2019-05-08T08:09:02.000Z | 2019-06-27T13:41:44.000Z | # PHOTOMETRY CODE (TEST) FOR PYTHON 3.X
# 2019.03.09
# GREGORY S.H. PAEK
#============================================================
import os, glob
import numpy as np
import matplotlib.pyplot as plt
from astropy.io import ascii
from astropy.io import fits
#from imsng import zpcal
#===================================... | 41.031674 | 168 | 0.585686 | 1,174 | 9,068 | 4.399489 | 0.260647 | 0.010068 | 0.038335 | 0.023233 | 0.279187 | 0.25789 | 0.241239 | 0.200968 | 0.16244 | 0.16244 | 0 | 0.041147 | 0.150419 | 9,068 | 220 | 169 | 41.218182 | 0.629283 | 0.209969 | 0 | 0.22293 | 0 | 0.006369 | 0.172433 | 0.020816 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006369 | false | 0.038217 | 0.038217 | 0 | 0.044586 | 0.025478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6eef0375ed02fe1987ef09d32e826630ef2e2fef | 4,599 | py | Python | ponyo/train_vae_modules.py | ajlee21/ponyo | f68a461b2edd4ab3d9c0699a1e5e8dcd1308cc75 | [
"BSD-3-Clause"
] | 1 | 2020-12-17T17:34:53.000Z | 2020-12-17T17:34:53.000Z | ponyo/train_vae_modules.py | ajlee21/ponyo | f68a461b2edd4ab3d9c0699a1e5e8dcd1308cc75 | [
"BSD-3-Clause"
] | 37 | 2020-06-15T18:15:10.000Z | 2022-02-10T02:34:29.000Z | ponyo/train_vae_modules.py | ajlee21/ponyo | f68a461b2edd4ab3d9c0699a1e5e8dcd1308cc75 | [
"BSD-3-Clause"
] | 3 | 2020-06-12T19:56:16.000Z | 2021-04-21T15:22:33.000Z | """
Author: Alexandra Lee
Date Created: 11 March 2020
Scripts related to training the VAE including
1. Normalizing gene expression data
2. Wrapper function to input training parameters and run vae
training in `vae.tybalt_2layer_model`
"""
from ponyo import vae, utils
import os
import pickle
import pandas as pd
from s... | 27.375 | 112 | 0.68928 | 579 | 4,599 | 5.300518 | 0.355786 | 0.035191 | 0.033236 | 0.018573 | 0.222874 | 0.195503 | 0.162268 | 0.124471 | 0.090583 | 0.090583 | 0 | 0.012559 | 0.220918 | 4,599 | 167 | 113 | 27.538922 | 0.843985 | 0.378995 | 0 | 0.064935 | 0 | 0 | 0.123202 | 0.009222 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051948 | false | 0 | 0.116883 | 0 | 0.168831 | 0.038961 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |