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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
097c50a96728dff3d3f2f66802f6917cbcd87b74 | 20,517 | py | Python | scripts/all_to_all_analyzer.py | jweckstr/westmetro_scripts | a16385b00ac8d80f0068f348226ed89e2d0425a9 | [
"MIT"
] | null | null | null | scripts/all_to_all_analyzer.py | jweckstr/westmetro_scripts | a16385b00ac8d80f0068f348226ed89e2d0425a9 | [
"MIT"
] | null | null | null | scripts/all_to_all_analyzer.py | jweckstr/westmetro_scripts | a16385b00ac8d80f0068f348226ed89e2d0425a9 | [
"MIT"
] | null | null | null | import sqlite3
import pandas
import itertools
import networkx as nx
from gtfspy.gtfs import GTFS
from gtfspy.util import timeit
from scripts.all_to_all_settings import *
def attach_database(conn, other_db_path, name="other"):
cur = conn.cursor()
cur.execute("ATTACH '%s' AS '%s'" % (str(other_db_path), name)... | 53.569191 | 173 | 0.561096 | 2,521 | 20,517 | 4.267751 | 0.107497 | 0.049726 | 0.040338 | 0.013384 | 0.513059 | 0.447346 | 0.401803 | 0.374012 | 0.331443 | 0.322614 | 0 | 0.016798 | 0.344251 | 20,517 | 383 | 174 | 53.569191 | 0.78289 | 0.057318 | 0 | 0.326316 | 0 | 0.077193 | 0.393647 | 0.054255 | 0.007018 | 0 | 0 | 0 | 0.007018 | 1 | 0.05614 | false | 0.003509 | 0.024561 | 0 | 0.129825 | 0.017544 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
097cf870cfdf8eb690e3cbf5e80ead9f28adc1b0 | 2,258 | py | Python | tests/test_flow/test_snakemake_tutorial.py | flowsaber/flowsaber | 7d68d085bbd9165d2bc0e0acd7826e70569c5fa3 | [
"MIT"
] | 31 | 2021-05-08T06:35:07.000Z | 2022-03-05T05:58:24.000Z | tests/test_flow/test_snakemake_tutorial.py | flowsaber/flowsaber | 7d68d085bbd9165d2bc0e0acd7826e70569c5fa3 | [
"MIT"
] | 3 | 2021-05-10T12:36:57.000Z | 2021-05-15T14:01:15.000Z | tests/test_flow/test_snakemake_tutorial.py | zhqu1148980644/flowsaber | 7d68d085bbd9165d2bc0e0acd7826e70569c5fa3 | [
"MIT"
] | 1 | 2021-03-09T06:18:17.000Z | 2021-03-09T06:18:17.000Z | from flowsaber.api import *
def test_snakemake_workflow():
# EnvTask is the real dependent task when using conda/image option
@shell
def bwa(self, fa: File, fastq: File): # input will be automatically converted if has type annotation
"""bwa mem -t {self.config.cpu} {fa} {fastq} | samtools view -... | 30.931507 | 105 | 0.59876 | 296 | 2,258 | 4.483108 | 0.452703 | 0.026375 | 0.03165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002468 | 0.282108 | 2,258 | 72 | 106 | 31.361111 | 0.816163 | 0.320638 | 0 | 0.047619 | 0 | 0 | 0.121463 | 0.058661 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.02381 | 0.095238 | 0.02381 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
098125b6bdbfea383598e527bbb70b034cf26260 | 1,324 | py | Python | py_ad_1_4.py | aisolab/con-par-python | e74cb9c30acfdd78c12c9f7aba039d16ed1f7e78 | [
"MIT"
] | 1 | 2022-02-20T03:14:50.000Z | 2022-02-20T03:14:50.000Z | py_ad_1_4.py | aisolab/con-par-python | e74cb9c30acfdd78c12c9f7aba039d16ed1f7e78 | [
"MIT"
] | null | null | null | py_ad_1_4.py | aisolab/con-par-python | e74cb9c30acfdd78c12c9f7aba039d16ed1f7e78 | [
"MIT"
] | null | null | null | """
Section 1
Multithreading - Thread (2) - Daemon, Join
Keyword - DaemonThread, Join
"""
"""
DaemonThread(데몬스레드)
(1). 백그라운드에서 실행
(2). 메인스레드 종료시 즉시 종료 (서브 스레드의 경우는 메인 스레드와 상관없이 자기 작업을 끝까지 수행함.)
(3). 주로 백그라운드 무한 대기 이벤트 발생 실행하는 부분 담당 -> JVM(가비지 컬렉션), 자동 저장
(4). 일반 스레드는 작업 종료시까지 실행
"""
import logging
import threading
# 스... | 24.981132 | 85 | 0.632175 | 199 | 1,324 | 4.150754 | 0.552764 | 0.09322 | 0.072639 | 0.101695 | 0.200969 | 0.084746 | 0 | 0 | 0 | 0 | 0 | 0.010669 | 0.221299 | 1,324 | 52 | 86 | 25.461538 | 0.790495 | 0.179003 | 0 | 0 | 0 | 0 | 0.259132 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.1 | 0 | 0.15 | 0.15 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
09821682a814779b24686f7214f05d5600259f1a | 287 | py | Python | listTest.py | diallog/GCPpy | dabd55ece1c12c1a390a228cd04cb7eb110e564b | [
"Unlicense"
] | null | null | null | listTest.py | diallog/GCPpy | dabd55ece1c12c1a390a228cd04cb7eb110e564b | [
"Unlicense"
] | null | null | null | listTest.py | diallog/GCPpy | dabd55ece1c12c1a390a228cd04cb7eb110e564b | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
# PURPOSE: studying function side effects
import os
os.system('clear')
orgList = [5, 3, 2, 1, 4]
def sumList(myList):
for i in range(1, len(myList)):
myList[i] += myList[i-1]
return myList[len(myList)-1]
print(sumList(orgList))
print(orgList)
| 16.882353 | 41 | 0.655052 | 45 | 287 | 4.177778 | 0.644444 | 0.095745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0.184669 | 287 | 16 | 42 | 17.9375 | 0.764957 | 0.212544 | 0 | 0 | 0 | 0 | 0.022321 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.333333 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
09828a4b8ceea5e0df2ba0674a51b0b2f6523586 | 2,029 | py | Python | class/pandas_class.py | Danigore25/python2 | de6d582fcc35107aa21a1bd73fdf04a0d4209d31 | [
"MIT"
] | null | null | null | class/pandas_class.py | Danigore25/python2 | de6d582fcc35107aa21a1bd73fdf04a0d4209d31 | [
"MIT"
] | null | null | null | class/pandas_class.py | Danigore25/python2 | de6d582fcc35107aa21a1bd73fdf04a0d4209d31 | [
"MIT"
] | 2 | 2021-09-07T00:30:49.000Z | 2021-10-19T15:14:54.000Z | import pandas as pd
import numpy as np
serie = pd.Series(['a', 'b', 'c', 'd', 'e'],
index=['a', 'b', 'c', 'd', 'e'],
name="Ejemplo Serie")
print(serie)
ecoli_matraz = pd.Series([0.1, 0.15, 0.19, 0.5,
0.9, 1.4, 1.8, 2.1, 2.3],
... | 30.283582 | 110 | 0.485461 | 274 | 2,029 | 3.507299 | 0.332117 | 0.074922 | 0.012487 | 0.008325 | 0.027055 | 0.012487 | 0 | 0 | 0 | 0 | 0 | 0.066537 | 0.237063 | 2,029 | 66 | 111 | 30.742424 | 0.554264 | 0.127649 | 0 | 0 | 0 | 0 | 0.114319 | 0.01591 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0.05 | 0 | 0.125 | 0.325 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0986c2b4d466c529bcf1de02d35647e1f00797b3 | 6,209 | py | Python | scripts/datasets/mit67_install.py | cclauss/archai | a5fb8f937f7f1319e3204120803b2a045e9f768b | [
"MIT"
] | 344 | 2020-06-12T22:12:56.000Z | 2022-03-29T06:48:20.000Z | scripts/datasets/mit67_install.py | cclauss/archai | a5fb8f937f7f1319e3204120803b2a045e9f768b | [
"MIT"
] | 29 | 2020-06-13T19:56:49.000Z | 2022-03-30T20:26:48.000Z | scripts/datasets/mit67_install.py | cclauss/archai | a5fb8f937f7f1319e3204120803b2a045e9f768b | [
"MIT"
] | 68 | 2020-06-12T19:32:43.000Z | 2022-03-05T06:58:40.000Z | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
""" Script to prepare mit67 dataset for pytorch dataloader.
"""
from typing import List, Dict, Tuple, Union, Optional
import os
import pdb
import time
import argparse
import os
import tempfile
import requests
from torchvision.datasets.utils imp... | 35.683908 | 204 | 0.671445 | 876 | 6,209 | 4.619863 | 0.244292 | 0.037064 | 0.049419 | 0.059303 | 0.410427 | 0.355819 | 0.324191 | 0.309859 | 0.270324 | 0.255498 | 0 | 0.026562 | 0.223869 | 6,209 | 173 | 205 | 35.890173 | 0.813239 | 0.144146 | 0 | 0.258929 | 0 | 0.053571 | 0.158354 | 0.004931 | 0 | 0 | 0 | 0 | 0.035714 | 1 | 0.053571 | false | 0 | 0.133929 | 0 | 0.241071 | 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 |
09887c8ffc4485168a4cf1dc2d552eb82e642cda | 713 | py | Python | src/python/T0/WMBS/Oracle/RunConfig/InsertRecoReleaseConfig.py | silviodonato/T0 | a093729d08b31175ed35cd20e889bd7094ce152a | [
"Apache-2.0"
] | 6 | 2016-03-09T14:36:19.000Z | 2021-07-27T01:28:00.000Z | src/python/T0/WMBS/Oracle/RunConfig/InsertRecoReleaseConfig.py | silviodonato/T0 | a093729d08b31175ed35cd20e889bd7094ce152a | [
"Apache-2.0"
] | 193 | 2015-01-07T21:03:43.000Z | 2022-03-31T12:22:18.000Z | src/python/T0/WMBS/Oracle/RunConfig/InsertRecoReleaseConfig.py | silviodonato/T0 | a093729d08b31175ed35cd20e889bd7094ce152a | [
"Apache-2.0"
] | 36 | 2015-01-28T19:01:54.000Z | 2021-12-15T17:18:20.000Z | """
_InsertRecoReleaseConfig_
Oracle implementation of InsertRecoReleaseConfig
"""
from WMCore.Database.DBFormatter import DBFormatter
class InsertRecoReleaseConfig(DBFormatter):
def execute(self, binds, conn = None, transaction = False):
sql = """INSERT INTO reco_release_config
(RUN_I... | 28.52 | 79 | 0.548387 | 59 | 713 | 6.491525 | 0.677966 | 0.046997 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004505 | 0.377279 | 713 | 24 | 80 | 29.708333 | 0.858108 | 0.105189 | 0 | 0 | 0 | 0 | 0.505564 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.285714 | 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 |
0988ffb2a91dd9ac6ea127ee5939338c9d7b530e | 1,652 | py | Python | split_wav.py | tanacchi/sound-dataset-generator | a74363c35652dbb7e7cb2dfd390cf89302f3827e | [
"MIT"
] | 1 | 2020-12-02T02:31:33.000Z | 2020-12-02T02:31:33.000Z | split_wav.py | tanacchi/sound_dataset_generator | a74363c35652dbb7e7cb2dfd390cf89302f3827e | [
"MIT"
] | null | null | null | split_wav.py | tanacchi/sound_dataset_generator | a74363c35652dbb7e7cb2dfd390cf89302f3827e | [
"MIT"
] | null | null | null | import wave
import os
import sys
from glob import glob
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("--length", type=int, default=30)
parser.add_argument("--offset", type=int, default=15)
args = parser.parse_args()
unit_time_length = args.length
start_time_offset = args.offset
output_dir =... | 33.714286 | 99 | 0.696126 | 221 | 1,652 | 4.963801 | 0.352941 | 0.027347 | 0.036463 | 0.082042 | 0.082042 | 0.082042 | 0 | 0 | 0 | 0 | 0 | 0.006711 | 0.188257 | 1,652 | 48 | 100 | 34.416667 | 0.811335 | 0.014528 | 0 | 0 | 0 | 0 | 0.070726 | 0.021525 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.128205 | 0 | 0.128205 | 0.051282 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
098a8775723a6e3a315440de72e96cd1befcdb31 | 2,454 | py | Python | ex075A.py | gabrieleliasdev/python-cev | 45390963b5112a982e673f6a6866da422bf9ae6d | [
"MIT"
] | null | null | null | ex075A.py | gabrieleliasdev/python-cev | 45390963b5112a982e673f6a6866da422bf9ae6d | [
"MIT"
] | null | null | null | ex075A.py | gabrieleliasdev/python-cev | 45390963b5112a982e673f6a6866da422bf9ae6d | [
"MIT"
] | null | null | null | from tkinter import *
janela = Tk()
lista = []
texto1 = StringVar()
texto2 = StringVar()
texto3 = StringVar()
texto4 = StringVar()
#--------------------- PROCESSAMENTO DO COMANDO ------
def click_bt1():
lista.append(int(et1.get()))
lista.append(int(et2.get()))
lista.append(int(et3.get()))
lista.appe... | 31.87013 | 86 | 0.601059 | 351 | 2,454 | 4.150997 | 0.327635 | 0.048044 | 0.037749 | 0.041181 | 0.087165 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051893 | 0.128362 | 2,454 | 77 | 87 | 31.87013 | 0.629266 | 0.149552 | 0 | 0 | 0 | 0 | 0.180596 | 0.023055 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017857 | false | 0 | 0.017857 | 0 | 0.035714 | 0.017857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
098d7c6c55f7415535fddaa88a483e5bc3bc96a3 | 650 | py | Python | Python/[4 kyu] Sum of Intervals.py | KonstantinosAng/CodeWars | 9ec9da9ed95b47b9656a5ecf77f486230fd15e3a | [
"MIT"
] | null | null | null | Python/[4 kyu] Sum of Intervals.py | KonstantinosAng/CodeWars | 9ec9da9ed95b47b9656a5ecf77f486230fd15e3a | [
"MIT"
] | null | null | null | Python/[4 kyu] Sum of Intervals.py | KonstantinosAng/CodeWars | 9ec9da9ed95b47b9656a5ecf77f486230fd15e3a | [
"MIT"
] | null | null | null | # More details on this kata
# https://www.codewars.com/kata/52b7ed099cdc285c300001cd
def sum_of_intervals(intervals):
s, ret = [list(x) for x in sorted(intervals)], 0
if len(s) == 1: return abs(s[0][0] - s[0][1])
for i in range(len(s)):
if i + 1 > len(s) - 1: break
if s[i][0] <= s[i + 1][0]... | 32.5 | 56 | 0.432308 | 118 | 650 | 2.364407 | 0.271186 | 0.09319 | 0.096774 | 0.057348 | 0.290323 | 0.290323 | 0.290323 | 0.189964 | 0.189964 | 0.189964 | 0 | 0.106796 | 0.366154 | 650 | 19 | 57 | 34.210526 | 0.570388 | 0.123077 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0 | 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 |
0990bfe14e23c72b11bf2defe5e3302294dbdd91 | 11,197 | py | Python | unit_list.py | guliverza/AdditionalPylons | 37336dcd1678c6cdfa22d881c2178ba65cb1fd61 | [
"MIT"
] | null | null | null | unit_list.py | guliverza/AdditionalPylons | 37336dcd1678c6cdfa22d881c2178ba65cb1fd61 | [
"MIT"
] | null | null | null | unit_list.py | guliverza/AdditionalPylons | 37336dcd1678c6cdfa22d881c2178ba65cb1fd61 | [
"MIT"
] | null | null | null | import sc2
from sc2.constants import *
#our own classes
from unit_counters import UnitCounter
from warpprism import WarpPrism as wpControl
from immortal import Immortal as imControl
from stalker import Stalker as skControl
from zealot import Zealot as zlControl
from sentry import Sentry as snControl
from ade... | 34.24159 | 155 | 0.703224 | 1,573 | 11,197 | 4.91227 | 0.149396 | 0.06212 | 0.10871 | 0.049178 | 0.556231 | 0.551314 | 0.533713 | 0.508477 | 0.484794 | 0.484794 | 0 | 0.004752 | 0.191926 | 11,197 | 326 | 156 | 34.346626 | 0.849248 | 0.10476 | 0 | 0.408 | 0 | 0 | 0.025129 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104 | false | 0 | 0.092 | 0.008 | 0.336 | 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 |
09912f75595653975287507558557321b7720adb | 619 | py | Python | src/lib/bver/Versioned/Addon.py | backboneHQ/bver | c3c929442fadb28a3f39d0ddec19fb2dfc7a4732 | [
"MIT"
] | 1 | 2021-09-09T01:22:37.000Z | 2021-09-09T01:22:37.000Z | src/lib/bver/Versioned/Addon.py | backboneHQ/bver | c3c929442fadb28a3f39d0ddec19fb2dfc7a4732 | [
"MIT"
] | null | null | null | src/lib/bver/Versioned/Addon.py | backboneHQ/bver | c3c929442fadb28a3f39d0ddec19fb2dfc7a4732 | [
"MIT"
] | 1 | 2021-09-03T18:45:15.000Z | 2021-09-03T18:45:15.000Z | from .Versioned import Versioned
class Addon(Versioned):
"""
Implements the addon support to the versioned.
"""
def __init__(self, *args, **kwargs):
"""
Create an addon object.
"""
super(Addon, self).__init__(*args, **kwargs)
# setting default options
s... | 23.807692 | 77 | 0.568659 | 60 | 619 | 5.683333 | 0.566667 | 0.082111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.308562 | 619 | 25 | 78 | 24.76 | 0.796729 | 0.266559 | 0 | 0 | 0 | 0 | 0.063939 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 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 |
09928e74c332f7b48d51ab003cf566958a601031 | 5,988 | py | Python | backend/filing/admin.py | bhardwajRahul/sec-filings-app | 8cf7f5956717db8fee1f9a20445986ad9cb831ca | [
"MIT"
] | 36 | 2020-12-04T08:16:38.000Z | 2022-03-22T02:30:49.000Z | backend/filing/admin.py | bhardwajRahul/sec-filings-app | 8cf7f5956717db8fee1f9a20445986ad9cb831ca | [
"MIT"
] | 1 | 2021-10-14T22:20:40.000Z | 2021-10-17T17:29:50.000Z | backend/filing/admin.py | briancaffey/sec-filings-app | 8cf7f5956717db8fee1f9a20445986ad9cb831ca | [
"MIT"
] | 16 | 2020-11-30T18:46:51.000Z | 2022-01-20T23:01:58.000Z | from datetime import date
from django.contrib import admin, messages
from django.core.management import call_command
from django.utils.html import format_html
from django.http import HttpResponseRedirect
from django.urls import path
# Register your models here.
from .models import (
FilingList,
Filing,
H... | 27.981308 | 129 | 0.644122 | 671 | 5,988 | 5.530551 | 0.223547 | 0.056589 | 0.037726 | 0.045271 | 0.271625 | 0.158448 | 0.158448 | 0.145783 | 0.137968 | 0.113177 | 0 | 0.005861 | 0.230628 | 5,988 | 213 | 130 | 28.112676 | 0.799653 | 0.06513 | 0 | 0.202614 | 0 | 0.026144 | 0.217508 | 0.065879 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071895 | false | 0 | 0.052288 | 0.03268 | 0.437909 | 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 |
0996f3d1f1ac8a9ea6f99a214f2486805b79d23f | 3,742 | py | Python | __init__.py | FabienBasset/evolucare-skill | 4ecce1615cb11d72196ea745d2753fec19117b12 | [
"Apache-2.0"
] | null | null | null | __init__.py | FabienBasset/evolucare-skill | 4ecce1615cb11d72196ea745d2753fec19117b12 | [
"Apache-2.0"
] | null | null | null | __init__.py | FabienBasset/evolucare-skill | 4ecce1615cb11d72196ea745d2753fec19117b12 | [
"Apache-2.0"
] | null | null | null | # TODO: Add an appropriate license to your skill before publishing. See
# the LICENSE file for more information.
# Below is the list of outside modules you'll be using in your skill.
# They might be built-in to Python, from mycroft-core or from external
# libraries. If you use an external library, be sure to include... | 33.711712 | 84 | 0.638696 | 401 | 3,742 | 5.820449 | 0.366584 | 0.034704 | 0.057841 | 0.065981 | 0.172665 | 0.161525 | 0.142245 | 0.062554 | 0.062554 | 0.062554 | 0 | 0.001442 | 0.258685 | 3,742 | 110 | 85 | 34.018182 | 0.839942 | 0.312667 | 0 | 0.288462 | 0 | 0 | 0.171777 | 0.052673 | 0 | 0 | 0 | 0.009091 | 0 | 1 | 0.153846 | false | 0 | 0.076923 | 0.019231 | 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 |
0997cd0a89022a9406ffd19fb23a90e8f3cec543 | 300 | py | Python | web/searching.py | Kabanosk/JAVRIS | f3fac115eb537e689c59bd093da34e7f0b34a035 | [
"MIT"
] | null | null | null | web/searching.py | Kabanosk/JAVRIS | f3fac115eb537e689c59bd093da34e7f0b34a035 | [
"MIT"
] | null | null | null | web/searching.py | Kabanosk/JAVRIS | f3fac115eb537e689c59bd093da34e7f0b34a035 | [
"MIT"
] | null | null | null | import webbrowser as web
from bs4 import BeautifulSoup
STARTING_URL = 'https://www.google.com/search?q='
def get_first_website(phrase):
phrase_split = phrase.split()
phrase_url = '+'.join(phrase_split)
search_url = STARTING_URL + phrase_url
web.open_new_tab(search_url)
| 25 | 50 | 0.716667 | 42 | 300 | 4.833333 | 0.595238 | 0.162562 | 0.167488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004082 | 0.183333 | 300 | 11 | 51 | 27.272727 | 0.82449 | 0 | 0 | 0 | 0 | 0 | 0.114583 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.375 | 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 |
099c6d4626feec61b7b00c6c857042abd77c6c2a | 2,039 | py | Python | ai_script_writer.py | FLWL/aoc-ai-parser | 2e08fc7b0909579aced5a84bda3645dbe8834d39 | [
"MIT"
] | 10 | 2019-03-17T00:48:35.000Z | 2022-02-06T18:15:48.000Z | ai_script_writer.py | FLWL/aoc-ai-parser | 2e08fc7b0909579aced5a84bda3645dbe8834d39 | [
"MIT"
] | null | null | null | ai_script_writer.py | FLWL/aoc-ai-parser | 2e08fc7b0909579aced5a84bda3645dbe8834d39 | [
"MIT"
] | 1 | 2022-01-16T12:38:52.000Z | 2022-01-16T12:38:52.000Z | from ai_constants import *
import ai_generator
def get_tab_string(tabment):
return '\t' * tabment
def express_node(cur_node, tabment = 0):
child_nodes = cur_node.children
if cur_node.type == 'DEFRULE':
return "(defrule\n" \
+ express_node(child_nodes[0], tabment + 1) \
... | 30.432836 | 91 | 0.650809 | 262 | 2,039 | 4.698473 | 0.221374 | 0.062551 | 0.178716 | 0.061738 | 0.415922 | 0.3355 | 0.3355 | 0.243704 | 0.243704 | 0.207961 | 0 | 0.003901 | 0.245709 | 2,039 | 66 | 92 | 30.893939 | 0.796489 | 0.026974 | 0 | 0.130435 | 0 | 0 | 0.047451 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.043478 | 0.021739 | 0.282609 | 0.021739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
099d1dd35cd095ae208ec87e7df60676dd935b0a | 1,316 | py | Python | euler-148.py | simonolander/euler | 4d7c4cd9333201cd0065419a511f111b6d75d90c | [
"MIT"
] | null | null | null | euler-148.py | simonolander/euler | 4d7c4cd9333201cd0065419a511f111b6d75d90c | [
"MIT"
] | null | null | null | euler-148.py | simonolander/euler | 4d7c4cd9333201cd0065419a511f111b6d75d90c | [
"MIT"
] | null | null | null | import numpy as np
from tabulate import tabulate
np.set_printoptions(linewidth=400, threshold=100000)
def product(gen):
ans = 1
for g in gen:
ans *= g + 1
return ans
def count_divs_pow(p):
if p == 0 or p == 1:
return 0
else:
full_size = 7**(p-1) * (7**(p-1) - 1) // 2
... | 19.939394 | 70 | 0.506839 | 215 | 1,316 | 3.046512 | 0.293023 | 0.042748 | 0.036641 | 0.039695 | 0.036641 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0.338146 | 1,316 | 65 | 71 | 20.246154 | 0.675086 | 0 | 0 | 0.104167 | 0 | 0 | 0.015198 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.145833 | false | 0 | 0.041667 | 0.020833 | 0.333333 | 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 |
099e3f2b24bd01bfd5b7e1350533a5d17bf7ffdd | 1,695 | py | Python | abandoned-ideas/yml-generator.py | HenryZheng1/sengrep-cli-py | 89d2ffad813706a534290f248220f0d32aeb4c3c | [
"Apache-2.0"
] | null | null | null | abandoned-ideas/yml-generator.py | HenryZheng1/sengrep-cli-py | 89d2ffad813706a534290f248220f0d32aeb4c3c | [
"Apache-2.0"
] | null | null | null | abandoned-ideas/yml-generator.py | HenryZheng1/sengrep-cli-py | 89d2ffad813706a534290f248220f0d32aeb4c3c | [
"Apache-2.0"
] | 2 | 2021-07-23T16:46:16.000Z | 2021-07-30T02:59:43.000Z | from csv import reader
import yaml
import json
def splitrow(row, DELIMETER):
x = row.split(DELIMETER)
return ([] if row == '' else x)
def get_data_from_csv(settings, DELIMETER = '|'):
rules = []
with open(settings['CSV_FILENAME'], 'r') as csv_file:
csv_reader = reader(csv_file)
for r... | 35.3125 | 150 | 0.60118 | 207 | 1,695 | 4.724638 | 0.323672 | 0.056237 | 0.04908 | 0.055215 | 0.205521 | 0.160532 | 0.132924 | 0 | 0 | 0 | 0 | 0.005752 | 0.282006 | 1,695 | 47 | 151 | 36.06383 | 0.797864 | 0 | 0 | 0 | 0 | 0 | 0.100945 | 0.014758 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114286 | false | 0 | 0.085714 | 0 | 0.257143 | 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 |
099e6785d5350ed75115c74f1a4e9bf333839d99 | 4,018 | py | Python | linearizer/utils.py | Max1993Liu/Linearizer | 739c47c0d98d262a0bc962a450729bcf83c61212 | [
"MIT"
] | null | null | null | linearizer/utils.py | Max1993Liu/Linearizer | 739c47c0d98d262a0bc962a450729bcf83c61212 | [
"MIT"
] | null | null | null | linearizer/utils.py | Max1993Liu/Linearizer | 739c47c0d98d262a0bc962a450729bcf83c61212 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
from types import FunctionType
import warnings
from .transform import BaseTransformer
def drop_na(x, y, according='both'):
""" Drop the values in both x and y if the element in `according` is missing
ex. drop_na([1, 2, np.nan], [1, 2, 3], 'x') => [1, 2], [1, 2]
... | 31.637795 | 106 | 0.612245 | 561 | 4,018 | 4.26025 | 0.253119 | 0.007531 | 0.020084 | 0.021339 | 0.250209 | 0.220084 | 0.153975 | 0.127197 | 0.099582 | 0.099582 | 0 | 0.009174 | 0.267546 | 4,018 | 126 | 107 | 31.888889 | 0.802922 | 0.245893 | 0 | 0.078947 | 0 | 0 | 0.100952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.065789 | 0.013158 | 0.236842 | 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 |
09a082c5b766d52ac4bd284843a07b1bfbf38eba | 325 | py | Python | testings.py | GYosifov88/Python-Fundamentals | b46ba2822bd2dac6ff46830c6a520e559b448442 | [
"MIT"
] | null | null | null | testings.py | GYosifov88/Python-Fundamentals | b46ba2822bd2dac6ff46830c6a520e559b448442 | [
"MIT"
] | null | null | null | testings.py | GYosifov88/Python-Fundamentals | b46ba2822bd2dac6ff46830c6a520e559b448442 | [
"MIT"
] | null | null | null | class Object:
def __init__(self, type):
self.type = type
def square(self, a, b):
if self.type == 'square':
return a * b
if self.type == 'triangle':
return (a * b) / 2
vid = input()
object = Object(vid)
a = int(input())
b = int(input())
print(f'{object.square(a,b... | 18.055556 | 35 | 0.52 | 46 | 325 | 3.586957 | 0.391304 | 0.193939 | 0.048485 | 0.09697 | 0.145455 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004464 | 0.310769 | 325 | 17 | 36 | 19.117647 | 0.732143 | 0 | 0 | 0 | 0 | 0 | 0.104615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0 | 0 | 0.384615 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
09a0e0698bb4f209bcf75379d2f58d655b33426a | 809 | py | Python | argdeco/__main__.py | klorenz/python-argdeco | eb614d63430c5da68a972bdc40f8a1541070089d | [
"MIT"
] | null | null | null | argdeco/__main__.py | klorenz/python-argdeco | eb614d63430c5da68a972bdc40f8a1541070089d | [
"MIT"
] | null | null | null | argdeco/__main__.py | klorenz/python-argdeco | eb614d63430c5da68a972bdc40f8a1541070089d | [
"MIT"
] | null | null | null | from .main import Main
from .arguments import arg
from textwrap import dedent
main = Main()
command = main.command
@command('install-bash-completions',
arg('--dest', help="destination file. Typically ~/.bashrc or ~/.profile", default="~/.bashrc"),
arg('script_name'),
)
def install_bash_completions(dest, scr... | 28.892857 | 100 | 0.700865 | 100 | 809 | 5.5 | 0.31 | 0.163636 | 0.101818 | 0.08 | 0.614545 | 0.614545 | 0.494545 | 0.494545 | 0.341818 | 0.341818 | 0 | 0 | 0.15204 | 809 | 27 | 101 | 29.962963 | 0.801749 | 0 | 0 | 0.181818 | 0 | 0 | 0.352287 | 0.061805 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.136364 | 0 | 0.227273 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
09a25fafbbc8341875cf49512a6963ebb67af9a9 | 1,092 | py | Python | working-with-data/part1/reading-and-writing-text-files.py | LucasHelal/data-science | 9b243be1dea23a521e6ebb49dc358708a9b17dbd | [
"MIT"
] | null | null | null | working-with-data/part1/reading-and-writing-text-files.py | LucasHelal/data-science | 9b243be1dea23a521e6ebb49dc358708a9b17dbd | [
"MIT"
] | null | null | null | working-with-data/part1/reading-and-writing-text-files.py | LucasHelal/data-science | 9b243be1dea23a521e6ebb49dc358708a9b17dbd | [
"MIT"
] | null | null | null | import sys
import pandas as pd
# Can open csv files as a dataframe
dframe = pd.read_csv('lec25.csv')
# Can also use read_table with ',' as a delimiter
dframe = pd.read_table('lec25.csv', sep=',')
# If we dont want the header to be the first row
dframe = pd.read_csv('lec25.csv', header=None)
# We can also indicate a... | 28.736842 | 79 | 0.739011 | 199 | 1,092 | 4 | 0.492462 | 0.030151 | 0.055276 | 0.052764 | 0.187186 | 0.16206 | 0.067839 | 0 | 0 | 0 | 0 | 0.014254 | 0.164835 | 1,092 | 37 | 80 | 29.513514 | 0.858553 | 0.636447 | 0 | 0 | 0 | 0 | 0.149215 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
09a2b27d6e9143175c3eaab5d912857ca2f60085 | 1,428 | py | Python | comments/urls.py | ggetzie/greaterdebater | fb1739f3db42717f3d63fe6c9dbf0c2402fb1fd5 | [
"MIT"
] | null | null | null | comments/urls.py | ggetzie/greaterdebater | fb1739f3db42717f3d63fe6c9dbf0c2402fb1fd5 | [
"MIT"
] | 1 | 2020-05-02T02:03:08.000Z | 2020-05-02T02:03:08.000Z | comments/urls.py | ggetzie/greaterdebater | fb1739f3db42717f3d63fe6c9dbf0c2402fb1fd5 | [
"MIT"
] | null | null | null |
from django.conf.urls import patterns
from comments.views import CommentDebateList
# This url file is included from items.urls with the prefix /comments/
urlpatterns = patterns('',
# Add a comment to a topic
(r'^(?P<topic_id>\d+)/add/$', 'comments.views.add'),
... | 42 | 93 | 0.464286 | 142 | 1,428 | 4.577465 | 0.450704 | 0.14 | 0.041538 | 0.027692 | 0.067692 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00241 | 0.418768 | 1,428 | 33 | 94 | 43.272727 | 0.780723 | 0.217787 | 0 | 0 | 0 | 0 | 0.293852 | 0.203436 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 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 |
09a4876d8faaee60c05b563c48e7b9207133b300 | 2,022 | py | Python | src/engine/app.py | vxlk/stoinks | afea92824a21d203098dd41137957f2343ec363d | [
"MIT"
] | 1 | 2020-12-30T23:54:58.000Z | 2020-12-30T23:54:58.000Z | src/engine/app.py | vxlk/stoinks | afea92824a21d203098dd41137957f2343ec363d | [
"MIT"
] | null | null | null | src/engine/app.py | vxlk/stoinks | afea92824a21d203098dd41137957f2343ec363d | [
"MIT"
] | null | null | null | import sys
from threading import Thread
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
from PyQt5.QtCore import *
from pyqtconsole.console import PythonConsole
from view.console import Console
from view.gui_dock import *
from util.logger import *
from model.engine import *
# clear logs
logge... | 27.69863 | 67 | 0.787834 | 218 | 2,022 | 7.275229 | 0.481651 | 0.031526 | 0.039723 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008479 | 0.125124 | 2,022 | 73 | 68 | 27.69863 | 0.888072 | 0.137488 | 0 | 0 | 0 | 0 | 0.022864 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.217391 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
09a65708ef251f13b9781f1e9b250a16f7eb5521 | 8,710 | py | Python | Agents/agent.py | TylerJamesMalloy/bullet3 | e357853815c1e0297683218273de79e586b574c8 | [
"Zlib"
] | null | null | null | Agents/agent.py | TylerJamesMalloy/bullet3 | e357853815c1e0297683218273de79e586b574c8 | [
"Zlib"
] | null | null | null | Agents/agent.py | TylerJamesMalloy/bullet3 | e357853815c1e0297683218273de79e586b574c8 | [
"Zlib"
] | null | null | null | import logging, os, time, multiprocessing, sys, signal
logging.disable(logging.WARNING)
os.environ["TF_CPP_MIN_LOG_LEVEL"] = "3"
import tensorflow as tf
import gym
import pybullet, pybullet_envs, pybullet_data
import numpy as np
import pandas as pd
from stable_baselines.sac.policies import MlpPolicy
from stable_ba... | 46.57754 | 186 | 0.666475 | 1,083 | 8,710 | 5.036934 | 0.171745 | 0.054445 | 0.026398 | 0.032997 | 0.520257 | 0.492759 | 0.474427 | 0.458845 | 0.426581 | 0.426581 | 0 | 0.010124 | 0.2062 | 8,710 | 186 | 187 | 46.827957 | 0.778855 | 0.042939 | 0 | 0.120301 | 0 | 0 | 0.115301 | 0.048523 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022556 | false | 0 | 0.075188 | 0 | 0.105263 | 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 |
09a9810fc20f0e86e48fafc4f5dbb9adb6c5702a | 1,274 | py | Python | ToDoApp/todo/urls.py | akmcinto/ToDoApp | 2176294c1cfc33a2e651f613f23922a2c8879a84 | [
"Apache-2.0"
] | null | null | null | ToDoApp/todo/urls.py | akmcinto/ToDoApp | 2176294c1cfc33a2e651f613f23922a2c8879a84 | [
"Apache-2.0"
] | null | null | null | ToDoApp/todo/urls.py | akmcinto/ToDoApp | 2176294c1cfc33a2e651f613f23922a2c8879a84 | [
"Apache-2.0"
] | null | null | null | """
Copyright 2016 Andrea McIntosh
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 i... | 39.8125 | 79 | 0.689953 | 188 | 1,274 | 4.62766 | 0.515957 | 0.041379 | 0.055172 | 0.036782 | 0.02069 | 0.02069 | 0 | 0 | 0 | 0 | 0 | 0.011194 | 0.158556 | 1,274 | 31 | 80 | 41.096774 | 0.800373 | 0.435636 | 0 | 0 | 0 | 0 | 0.360294 | 0.148529 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 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 |
09a9fcdb559137e2907018a24bc26f28eb5ecd69 | 81,886 | py | Python | froi/main.py | sunshineDrizzle/FreeROI | e2bae1a19835667988e9dbe4a1a88e5b2778d819 | [
"BSD-3-Clause"
] | 13 | 2016-02-12T05:10:23.000Z | 2021-01-13T01:40:12.000Z | froi/main.py | sunshineDrizzle/FreeROI | e2bae1a19835667988e9dbe4a1a88e5b2778d819 | [
"BSD-3-Clause"
] | 14 | 2015-05-04T05:56:45.000Z | 2021-01-24T11:49:13.000Z | froi/main.py | sunshineDrizzle/FreeROI | e2bae1a19835667988e9dbe4a1a88e5b2778d819 | [
"BSD-3-Clause"
] | 8 | 2016-03-07T06:29:51.000Z | 2017-10-30T13:59:27.000Z | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
"""Graphic User Interface."""
import sys
import os
import glob
import ConfigParser
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from version import __version__
from algorithm.imtool import label... | 46.97992 | 120 | 0.591078 | 8,508 | 81,886 | 5.415609 | 0.084391 | 0.084751 | 0.030602 | 0.013369 | 0.546532 | 0.449822 | 0.367198 | 0.31218 | 0.251519 | 0.219919 | 0 | 0.003673 | 0.301737 | 81,886 | 1,742 | 121 | 47.006889 | 0.802162 | 0.07624 | 0 | 0.338685 | 0 | 0 | 0.087442 | 0.002332 | 0 | 0 | 0 | 0.000574 | 0 | 1 | 0.070336 | false | 0 | 0.037462 | 0 | 0.120031 | 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 |
09abc457e5bd1caa1d8046d6ee92bbfdae5edefe | 1,475 | py | Python | backend/naki/naki/model/digital_item.py | iimcz/emod | 432094c020247597a94e95f76cc524c20b68b685 | [
"MIT"
] | null | null | null | backend/naki/naki/model/digital_item.py | iimcz/emod | 432094c020247597a94e95f76cc524c20b68b685 | [
"MIT"
] | 6 | 2021-03-08T23:32:15.000Z | 2022-02-26T08:11:38.000Z | backend/naki/naki/model/digital_item.py | iimcz/emod | 432094c020247597a94e95f76cc524c20b68b685 | [
"MIT"
] | null | null | null | import colander
from sqlalchemy import Column, ForeignKey
from sqlalchemy.types import DateTime, Integer, Unicode, UnicodeText
from naki.model.meta import Base
class DigitalItem(Base):
__tablename__ = "tDigitalItem"
id_item = Column('sID_Item', Unicode(64), primary_key = True, info={'colanderalchemy': {'m... | 34.302326 | 110 | 0.602034 | 165 | 1,475 | 5.206061 | 0.30303 | 0.055879 | 0.046566 | 0.032596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006452 | 0.264407 | 1,475 | 42 | 111 | 35.119048 | 0.785253 | 0.03661 | 0 | 0 | 0 | 0 | 0.137518 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.121212 | 0.030303 | 0.484848 | 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 |
09ae724cdc803309af6a236723605a5ad5b9d098 | 4,389 | py | Python | z3/labeled_dice.py | Wikunia/hakank | 030bc928d2efe8dcbc5118bda3f8ae9575d0fd13 | [
"MIT"
] | 279 | 2015-01-10T09:55:35.000Z | 2022-03-28T02:34:03.000Z | z3/labeled_dice.py | Wikunia/hakank | 030bc928d2efe8dcbc5118bda3f8ae9575d0fd13 | [
"MIT"
] | 10 | 2017-10-05T15:48:50.000Z | 2021-09-20T12:06:52.000Z | z3/labeled_dice.py | Wikunia/hakank | 030bc928d2efe8dcbc5118bda3f8ae9575d0fd13 | [
"MIT"
] | 83 | 2015-01-20T03:44:00.000Z | 2022-03-13T23:53:06.000Z | #!/usr/bin/python -u
# -*- coding: latin-1 -*-
#
# Labeled dice and Building block problems in Z3
#
# * Labeled dice
#
# From Jim Orlin 'Colored letters, labeled dice: a logic puzzle'
# http://jimorlin.wordpress.com/2009/02/17/colored-letters-labeled-dice-a-logic-puzzle/
# '''
# My daughter Jenn bough a puzzle... | 26.281437 | 99 | 0.549784 | 790 | 4,389 | 3.003797 | 0.275949 | 0.029499 | 0.007585 | 0.010114 | 0.245259 | 0.212811 | 0.196797 | 0.170249 | 0.13485 | 0.13485 | 0 | 0.015077 | 0.259512 | 4,389 | 166 | 100 | 26.439759 | 0.715077 | 0.398724 | 0 | 0.216867 | 0 | 0 | 0.063154 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036145 | false | 0 | 0.024096 | 0 | 0.060241 | 0.156627 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
09b071406342703275a6a5f8df9c8ce73299146c | 1,602 | py | Python | scripts/ai/mle/test_ai.py | AlexGustafsson/word-frequencies | 21a73dc1e56770f5563f928b7e3943874c995bd9 | [
"Unlicense"
] | null | null | null | scripts/ai/mle/test_ai.py | AlexGustafsson/word-frequencies | 21a73dc1e56770f5563f928b7e3943874c995bd9 | [
"Unlicense"
] | null | null | null | scripts/ai/mle/test_ai.py | AlexGustafsson/word-frequencies | 21a73dc1e56770f5563f928b7e3943874c995bd9 | [
"Unlicense"
] | null | null | null | import pickle
import random
from argparse import ArgumentParser
# Requires NLTK to be installed:
# python3 -m pip install nltk
# python3 -c 'import nltk;nltk.download("punkt")'
# May be slow at first start due to NLTK preparing its dependencies
from nltk.tokenize.treebank import TreebankWordDetokenizer
from nltk.lm im... | 32.693878 | 115 | 0.692884 | 210 | 1,602 | 5.214286 | 0.495238 | 0.024658 | 0.046575 | 0.052055 | 0.071233 | 0.071233 | 0 | 0 | 0 | 0 | 0 | 0.006197 | 0.194132 | 1,602 | 48 | 116 | 33.375 | 0.841983 | 0.189139 | 0 | 0 | 0 | 0 | 0.177156 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.178571 | 0 | 0.285714 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
09b38cadc8a5b66d765f9f62596709fa7325c773 | 7,529 | py | Python | lib/common/render_utils.py | YuliangXiu/ICON | ece5a09aa2d56aec28017430e65a0352622a0f30 | [
"Intel"
] | 486 | 2021-12-16T03:13:31.000Z | 2022-03-30T04:26:48.000Z | lib/common/render_utils.py | YuliangXiu/ICON | ece5a09aa2d56aec28017430e65a0352622a0f30 | [
"Intel"
] | 33 | 2021-12-30T07:28:10.000Z | 2022-03-30T08:04:06.000Z | lib/common/render_utils.py | YuliangXiu/ICON | ece5a09aa2d56aec28017430e65a0352622a0f30 | [
"Intel"
] | 38 | 2021-12-17T10:55:01.000Z | 2022-03-30T23:25:39.000Z |
# -*- coding: utf-8 -*-
# Max-Planck-Gesellschaft zur Förderung der Wissenschaften e.V. (MPG) is
# holder of all proprietary rights on this computer program.
# You can only use this computer program if you have closed
# a license agreement with MPG or you get the right to use the computer
# program from someone who i... | 33.914414 | 79 | 0.592376 | 919 | 7,529 | 4.723613 | 0.311208 | 0.045151 | 0.014513 | 0.003686 | 0.156876 | 0.130615 | 0.10182 | 0.096752 | 0.096752 | 0.075098 | 0 | 0.023652 | 0.298048 | 7,529 | 221 | 80 | 34.067873 | 0.79754 | 0.321424 | 0 | 0.037037 | 0 | 0 | 0.021409 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064815 | false | 0.009259 | 0.064815 | 0 | 0.212963 | 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 |
09b41443c1ba334ee6ad9dc77418ea29db20354e | 456 | py | Python | merge_string.py | mrillusi0n/compete | ac798e2b1ff27abddd8bebf113d079228f038e56 | [
"MIT"
] | null | null | null | merge_string.py | mrillusi0n/compete | ac798e2b1ff27abddd8bebf113d079228f038e56 | [
"MIT"
] | null | null | null | merge_string.py | mrillusi0n/compete | ac798e2b1ff27abddd8bebf113d079228f038e56 | [
"MIT"
] | null | null | null | ######################### AABCAAADA
from collections import OrderedDict
def remove_duplicates(block):
"""
>>> remove_duplicates('AAB')
>>> 'AB'
"""
freq = OrderedDict()
for c in block:
freq[c] = freq.get(c, 0) + 1
return ''.join(freq.keys())
def solve(text, block_size):
re... | 18.24 | 65 | 0.58114 | 59 | 456 | 4.389831 | 0.525424 | 0.185328 | 0.100386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011019 | 0.203947 | 456 | 24 | 66 | 19 | 0.702479 | 0.105263 | 0 | 0 | 0 | 0 | 0.03022 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0.1 | 0.5 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
09b5d250f780316cd9c06c021e66be29bc76a8ed | 884 | py | Python | tests/views/test_is_component_field_model_or_unicorn_field.py | nerdoc/django-unicorn | e512b8f64f5c276a78127db9a05d9d5c042232d5 | [
"MIT"
] | 1 | 2021-12-21T16:20:49.000Z | 2021-12-21T16:20:49.000Z | tests/views/test_is_component_field_model_or_unicorn_field.py | teury/django-unicorn | 5e9142b8a7e13b862ece419d567e805cc783b517 | [
"MIT"
] | null | null | null | tests/views/test_is_component_field_model_or_unicorn_field.py | teury/django-unicorn | 5e9142b8a7e13b862ece419d567e805cc783b517 | [
"MIT"
] | 1 | 2022-02-10T07:47:01.000Z | 2022-02-10T07:47:01.000Z | from django_unicorn.components import UnicornView
from django_unicorn.views.utils import _is_component_field_model_or_unicorn_field
from example.coffee.models import Flavor
class TypeHintView(UnicornView):
model: Flavor = None
class ModelInstanceView(UnicornView):
model = Flavor()
def test_type_hint():
... | 27.625 | 81 | 0.7681 | 110 | 884 | 5.890909 | 0.3 | 0.067901 | 0.074074 | 0.097222 | 0.566358 | 0.566358 | 0.566358 | 0.512346 | 0.512346 | 0.512346 | 0 | 0 | 0.154977 | 884 | 31 | 82 | 28.516129 | 0.86747 | 0 | 0 | 0.47619 | 0 | 0 | 0.029412 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.095238 | false | 0 | 0.142857 | 0 | 0.428571 | 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 |
09bb144937911126f0899a4f90a8ca7646246b73 | 431 | py | Python | data_wrangling/data_manipulation/check_if_even.py | dkedar7/Notes | 08a9e710a774fd46ec525e0041c1cbd67fbe6c20 | [
"MIT"
] | 3 | 2021-05-28T09:00:56.000Z | 2021-12-21T01:12:20.000Z | data_wrangling/data_manipulation/check_if_even.py | dkedar7/Notes | 08a9e710a774fd46ec525e0041c1cbd67fbe6c20 | [
"MIT"
] | null | null | null | data_wrangling/data_manipulation/check_if_even.py | dkedar7/Notes | 08a9e710a774fd46ec525e0041c1cbd67fbe6c20 | [
"MIT"
] | null | null | null |
import pytest
testdata = [
(2, True),
(3, False),
(4, True),
(5, True) # We expect this test to fail
]
def check_if_even(a):
"""
Returns True if 'a' is an even number
"""
return a % 2 == 0
@pytest.mark.parametrize('sample, expected_output', testdata)
def test_check_if_even(sample... | 17.958333 | 61 | 0.612529 | 59 | 431 | 4.305085 | 0.576271 | 0.082677 | 0.129921 | 0.133858 | 0.244094 | 0.244094 | 0 | 0 | 0 | 0 | 0 | 0.01875 | 0.257541 | 431 | 23 | 62 | 18.73913 | 0.775 | 0.194896 | 0 | 0 | 0 | 0 | 0.073016 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.166667 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
09c0c79a0b5cfaa45266d9d9675a6a0f9435dae8 | 6,234 | py | Python | orwell/agent/main.py | dchilot/agent-server-game-python | ce8db9560047a06960343cc66a9eddb11e77f5a1 | [
"BSD-3-Clause"
] | null | null | null | orwell/agent/main.py | dchilot/agent-server-game-python | ce8db9560047a06960343cc66a9eddb11e77f5a1 | [
"BSD-3-Clause"
] | null | null | null | orwell/agent/main.py | dchilot/agent-server-game-python | ce8db9560047a06960343cc66a9eddb11e77f5a1 | [
"BSD-3-Clause"
] | null | null | null | import logging
import sys
import socket
from cliff.app import App
from cliff.command import Command
from cliff.commandmanager import CommandManager
class RegisteredCommand(Command):
def __init__(self, app, app_args):
super(RegisteredCommand, self).__init__(app, app_args)
@classmethod
def registe... | 26.193277 | 76 | 0.611806 | 722 | 6,234 | 4.984765 | 0.185596 | 0.033065 | 0.063351 | 0.076688 | 0.331759 | 0.315643 | 0.278411 | 0.19172 | 0.127258 | 0.106141 | 0 | 0.007539 | 0.276548 | 6,234 | 237 | 77 | 26.303797 | 0.790466 | 0.031601 | 0 | 0.24581 | 0 | 0 | 0.111862 | 0.003541 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089385 | false | 0 | 0.044693 | 0 | 0.374302 | 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 |
09c267a3cb1cc17f6f5bb5ef69492d09f87a64fa | 1,475 | py | Python | tests/test_models.py | jimimvp/CausalProb | 900527725ad43eac258df2b16ef93fd1643deb3a | [
"MIT"
] | 3 | 2021-11-04T16:37:45.000Z | 2022-03-08T10:24:19.000Z | tests/test_models.py | jimimvp/CausalProb | 900527725ad43eac258df2b16ef93fd1643deb3a | [
"MIT"
] | 13 | 2021-11-07T11:11:54.000Z | 2021-11-20T10:40:39.000Z | tests/test_models.py | jimimvp/CausalProb | 900527725ad43eac258df2b16ef93fd1643deb3a | [
"MIT"
] | 1 | 2021-11-17T21:40:49.000Z | 2021-11-17T21:40:49.000Z | from causalprob import CausalProb
import unittest
import jax.numpy as jnp
import numpy as np
class TestNFConfounderModel(unittest.TestCase):
def test_is_inverse_function(self):
from models.nf_confounder_model import define_model
dim = 2
model = define_model(dim=dim)
cp = CausalPr... | 39.864865 | 122 | 0.547119 | 213 | 1,475 | 3.671362 | 0.276995 | 0.046036 | 0.053708 | 0.071611 | 0.567775 | 0.567775 | 0.567775 | 0.567775 | 0.567775 | 0.567775 | 0 | 0.007035 | 0.325424 | 1,475 | 36 | 123 | 40.972222 | 0.778894 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.071429 | false | 0 | 0.214286 | 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 |
09c9a15d0f7a17f53680be679c2a6066d5b21c97 | 1,335 | py | Python | tools/prepare_data.py | xrick/CTC_DySpeechCommands | d92cb97f7344fb5acdb6aa3fc3dfb7c022fffc6e | [
"MIT"
] | 74 | 2018-05-05T18:43:28.000Z | 2022-03-21T13:00:14.000Z | tools/prepare_data.py | xrick/CTC_DySpeechCommands | d92cb97f7344fb5acdb6aa3fc3dfb7c022fffc6e | [
"MIT"
] | 5 | 2018-07-20T16:18:57.000Z | 2021-01-26T11:52:31.000Z | tools/prepare_data.py | xrick/CTC_DySpeechCommands | d92cb97f7344fb5acdb6aa3fc3dfb7c022fffc6e | [
"MIT"
] | 21 | 2018-06-18T07:21:19.000Z | 2021-04-11T06:49:03.000Z | """Downloads the training dataset and removes bad samples.
"""
import csv
import os
import urllib.request
import tarfile
import glob
DATA_URL = 'http://download.tensorflow.org/data/speech_commands_v0.01.tar.gz'
TRAIN_DIR = '../dataset/train/audio/'
FILE_BAD = 'bad_samples.txt'
def maybe_download(data_url, dest_di... | 26.7 | 77 | 0.698876 | 191 | 1,335 | 4.691099 | 0.413613 | 0.053571 | 0.037946 | 0.044643 | 0.037946 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006272 | 0.164045 | 1,335 | 49 | 78 | 27.244898 | 0.796595 | 0.102622 | 0 | 0 | 0 | 0 | 0.18713 | 0.019475 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.03125 | 0.15625 | 0 | 0.21875 | 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 |
09caab87d8b63d185ae16695cb5079d8b60078ed | 4,232 | py | Python | Dashboard_Relay/tests/unit/api/test_authorization.py | weiwa6/SecValidation | e899b7aa3f46ded3b39aeb6a1eeab95cc8dc21b5 | [
"BSD-3-Clause"
] | null | null | null | Dashboard_Relay/tests/unit/api/test_authorization.py | weiwa6/SecValidation | e899b7aa3f46ded3b39aeb6a1eeab95cc8dc21b5 | [
"BSD-3-Clause"
] | null | null | null | Dashboard_Relay/tests/unit/api/test_authorization.py | weiwa6/SecValidation | e899b7aa3f46ded3b39aeb6a1eeab95cc8dc21b5 | [
"BSD-3-Clause"
] | null | null | null | from http import HTTPStatus
from authlib.jose import jwt
from pytest import fixture
from .utils import get_headers
from api.errors import AUTH_ERROR
def routes():
yield '/health'
yield '/deliberate/observables'
yield '/observe/observables'
yield '/refer/observables'
yield '/respond/observables'
... | 27.660131 | 79 | 0.712193 | 493 | 4,232 | 5.821501 | 0.204868 | 0.086063 | 0.1223 | 0.154007 | 0.479443 | 0.416028 | 0.366551 | 0.366551 | 0.322648 | 0.303136 | 0 | 0.00324 | 0.197779 | 4,232 | 152 | 80 | 27.842105 | 0.842121 | 0.012287 | 0 | 0.268519 | 0 | 0 | 0.107707 | 0.005505 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.138889 | false | 0 | 0.064815 | 0.018519 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
09cbcab75f8e35ba54cb7a9b30b5581da605210d | 1,562 | py | Python | ops-implementations/ads-ml-service/app/gunicorn.init.py | IBM/open-prediction-service-hub | 8b7db98f46a81b731d0dddfde8e3fb6f91ebc71a | [
"Apache-2.0"
] | 1 | 2021-09-14T18:40:33.000Z | 2021-09-14T18:40:33.000Z | ops-implementations/ads-ml-service/app/gunicorn.init.py | IBM/open-prediction-service-hub | 8b7db98f46a81b731d0dddfde8e3fb6f91ebc71a | [
"Apache-2.0"
] | 7 | 2021-04-23T13:41:39.000Z | 2021-08-12T09:33:10.000Z | ops-implementations/ads-ml-service/app/gunicorn.init.py | IBM/open-prediction-service-hub | 8b7db98f46a81b731d0dddfde8e3fb6f91ebc71a | [
"Apache-2.0"
] | 5 | 2020-12-10T14:27:23.000Z | 2022-03-29T08:44:22.000Z | #!/usr/bin/env python3
#
# Copyright 2020 IBM
# 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 t... | 33.956522 | 111 | 0.734955 | 247 | 1,562 | 4.558704 | 0.518219 | 0.056838 | 0.085258 | 0.067496 | 0.171403 | 0.083481 | 0 | 0 | 0 | 0 | 0 | 0.01673 | 0.158131 | 1,562 | 45 | 112 | 34.711111 | 0.839544 | 0.50064 | 0 | 0 | 0 | 0 | 0.283465 | 0.055118 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 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 |
09ce6912201c289c5c7f36b054105384590d7dc8 | 2,143 | py | Python | graphics/place_camera.py | bdemin/M113_Visualization | bf863af9dfc2902ae9123afeae8d5bd413a4bedb | [
"MIT"
] | null | null | null | graphics/place_camera.py | bdemin/M113_Visualization | bf863af9dfc2902ae9123afeae8d5bd413a4bedb | [
"MIT"
] | null | null | null | graphics/place_camera.py | bdemin/M113_Visualization | bf863af9dfc2902ae9123afeae8d5bd413a4bedb | [
"MIT"
] | null | null | null | import numpy as np
def place_camera(time, data, camera, camera_distance, view):
# Define camera parameters
camera.SetViewUp([0,0,1])
if view == 1:
# General view
chs_pos = data[0][0].path_loc[time] # Chassis CG @ time
cam_d = 12 # [m]
cam_h = 4.5 # [m]
chs2cam... | 31.985075 | 133 | 0.585161 | 340 | 2,143 | 3.476471 | 0.2 | 0.023689 | 0.035533 | 0.042301 | 0.471235 | 0.380711 | 0.348562 | 0.329103 | 0.329103 | 0.308799 | 0 | 0.053665 | 0.286981 | 2,143 | 67 | 134 | 31.985075 | 0.719895 | 0.20532 | 0 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0 | 0.026316 | 0 | 0.052632 | 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 |
09cf011d62fddefba9f4507356da24e66db71898 | 16,405 | py | Python | src/tools/api_compiler/compiler.py | facade-technologies-inc/facile | 4c9134dced71734641fed605e152880cd9ddefe3 | [
"MIT"
] | 2 | 2020-09-17T20:51:18.000Z | 2020-11-03T15:58:10.000Z | src/tools/api_compiler/compiler.py | facade-technologies-inc/facile | 4c9134dced71734641fed605e152880cd9ddefe3 | [
"MIT"
] | 97 | 2020-08-26T05:07:08.000Z | 2022-03-28T16:01:49.000Z | src/tools/api_compiler/compiler.py | facade-technologies-inc/facile | 4c9134dced71734641fed605e152880cd9ddefe3 | [
"MIT"
] | null | null | null | """
..
/------------------------------------------------------------------------------\
| -- FACADE TECHNOLOGIES INC. CONFIDENTIAL -- |
|------------------------------------------------------------------------------|
| ... | 40.208333 | 120 | 0.585431 | 1,801 | 16,405 | 5.262077 | 0.247085 | 0.024058 | 0.027435 | 0.019204 | 0.271288 | 0.22887 | 0.188773 | 0.128522 | 0.082093 | 0.048328 | 0 | 0.002521 | 0.298689 | 16,405 | 407 | 121 | 40.307125 | 0.821208 | 0.271381 | 0 | 0.255507 | 0 | 0 | 0.134869 | 0.010355 | 0 | 0 | 0 | 0.007371 | 0 | 1 | 0.057269 | false | 0 | 0.061674 | 0 | 0.145374 | 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 |
09d4d5139b90907a08147b1f476920cdd503f04c | 15,484 | py | Python | src/testing/functionaltests/webtest.py | pgecsenyi/piepy | 37bf6cb5bc8c4f9da3f695216beda7353d79fb29 | [
"MIT"
] | 1 | 2018-03-26T22:39:36.000Z | 2018-03-26T22:39:36.000Z | src/testing/functionaltests/webtest.py | pgecsenyi/piepy | 37bf6cb5bc8c4f9da3f695216beda7353d79fb29 | [
"MIT"
] | null | null | null | src/testing/functionaltests/webtest.py | pgecsenyi/piepy | 37bf6cb5bc8c4f9da3f695216beda7353d79fb29 | [
"MIT"
] | null | null | null | """
Web unit tests
"""
# pylint: disable=too-many-public-methods
import time
import unittest
import requests
from testing.communicationhelper import get_json, put_json
from testing.functions import are_expected_items_in_list, are_expected_kv_pairs_in_list, \
get_item_from_embedded_dict... | 32.529412 | 120 | 0.58822 | 1,703 | 15,484 | 5.018203 | 0.11744 | 0.05406 | 0.046806 | 0.065528 | 0.685116 | 0.647905 | 0.623684 | 0.55956 | 0.497192 | 0.444184 | 0 | 0.014447 | 0.266856 | 15,484 | 475 | 121 | 32.597895 | 0.738372 | 0.091837 | 0 | 0.429167 | 0 | 0 | 0.191525 | 0.034052 | 0 | 0 | 0 | 0 | 0.033333 | 1 | 0.104167 | false | 0 | 0.033333 | 0 | 0.141667 | 0.004167 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
09d79f0d227847749db1ddb7eb6acbb60326e8b8 | 862 | py | Python | 10_Name_Card_Detection/pytorch-faster-rcnn/lib/datasets/factory.py | ZeroWeight/Pattern-Recognize | ce18ab7d218840978f546a94d02d4183c9dc1aac | [
"MIT"
] | 4 | 2018-07-30T01:46:22.000Z | 2019-04-09T12:23:52.000Z | 10_Name_Card_Detection/pytorch-faster-rcnn/lib/datasets/factory.py | ZeroWeight/Pattern-Recognize | ce18ab7d218840978f546a94d02d4183c9dc1aac | [
"MIT"
] | null | null | null | 10_Name_Card_Detection/pytorch-faster-rcnn/lib/datasets/factory.py | ZeroWeight/Pattern-Recognize | ce18ab7d218840978f546a94d02d4183c9dc1aac | [
"MIT"
] | 1 | 2020-02-25T05:09:06.000Z | 2020-02-25T05:09:06.000Z | # --------------------------------------------------------
# Fast R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick
# --------------------------------------------------------
"""Factory method for easily getting imdbs by name."""
__sets = {}
fro... | 29.724138 | 79 | 0.612529 | 106 | 862 | 4.754717 | 0.575472 | 0.095238 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005355 | 0.133411 | 862 | 28 | 80 | 30.785714 | 0.669344 | 0.406032 | 0 | 0 | 0 | 0 | 0.203666 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.153846 | 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 |
09dbc482da6f2620a0ec95d44dab6ffbe0c052f9 | 4,439 | py | Python | monopoly.py | michaelhutton/monopoly | d3adcf524dfb015dbdaaadf905ca8cc4396fde3e | [
"MIT"
] | null | null | null | monopoly.py | michaelhutton/monopoly | d3adcf524dfb015dbdaaadf905ca8cc4396fde3e | [
"MIT"
] | null | null | null | monopoly.py | michaelhutton/monopoly | d3adcf524dfb015dbdaaadf905ca8cc4396fde3e | [
"MIT"
] | null | null | null | import random
squares = [
"Go",
"Mediterranean Ave.",
"Community Chest",
"Baltic Ave.",
"Income Tax",
"Reading Railroad",
"Oriental Ave.",
"Chance",
"Vermont Ave.",
"Connecticut Ave.",
"Jail",
"St. Charles Place",
"Electric Company",
"States Ave.",
"Virginia ... | 29.593333 | 80 | 0.581437 | 586 | 4,439 | 4.354949 | 0.331058 | 0.067006 | 0.018809 | 0.020376 | 0.185345 | 0.098746 | 0.018809 | 0.018809 | 0 | 0 | 0 | 0.032807 | 0.272133 | 4,439 | 149 | 81 | 29.791946 | 0.757041 | 0.060149 | 0 | 0.130435 | 0 | 0 | 0.457823 | 0 | 0 | 0 | 0 | 0.006711 | 0 | 1 | 0.014493 | false | 0 | 0.007246 | 0.007246 | 0.036232 | 0.065217 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
09ddae526c3cd9bcfe820b2b4ae3706b5e1e7c32 | 7,769 | py | Python | coinzdense/app.py | pibara/coinzdense-python | f051770b71fa0afe935eb0d2079dab21eea9432d | [
"BSD-3-Clause"
] | null | null | null | coinzdense/app.py | pibara/coinzdense-python | f051770b71fa0afe935eb0d2079dab21eea9432d | [
"BSD-3-Clause"
] | null | null | null | coinzdense/app.py | pibara/coinzdense-python | f051770b71fa0afe935eb0d2079dab21eea9432d | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python3
from coinzdense.signing import SigningKey as _SigningKey
from coinzdense.validation import ValidationEnv as _ValidationEnv
from coinzdense.wallet import create_wallet as _create_wallet
from coinzdense.wallet import open_wallet as _open_wallet
def _keys_per_signature(hashlen, otsbits):
return 2*(... | 50.122581 | 132 | 0.635603 | 945 | 7,769 | 5.10582 | 0.113228 | 0.048497 | 0.102383 | 0.123938 | 0.52 | 0.490363 | 0.426736 | 0.399378 | 0.372228 | 0.319378 | 0 | 0.010256 | 0.259493 | 7,769 | 154 | 133 | 50.448052 | 0.828437 | 0.002188 | 0 | 0.134752 | 0 | 0 | 0.218036 | 0 | 0 | 0 | 0 | 0 | 0.212766 | 1 | 0.106383 | false | 0.028369 | 0.028369 | 0.028369 | 0.234043 | 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 |
09de00e54d3860203b7729e1854754335ac141d7 | 1,296 | py | Python | src/asyncdataflow/inspector.py | tomaszkingukrol/async-data-flow | 1572ef101cb0e6a0f27a77401538a4620ee9939f | [
"Apache-2.0"
] | null | null | null | src/asyncdataflow/inspector.py | tomaszkingukrol/async-data-flow | 1572ef101cb0e6a0f27a77401538a4620ee9939f | [
"Apache-2.0"
] | null | null | null | src/asyncdataflow/inspector.py | tomaszkingukrol/async-data-flow | 1572ef101cb0e6a0f27a77401538a4620ee9939f | [
"Apache-2.0"
] | null | null | null | from collections.abc import Iterable
from typing import Callable, Tuple
import inspect
from .definition import DataFlowInspector
from .exceptions import DataFlowFunctionArgsError, DataFlowNotCallableError, DataFlowEmptyError, DataFlowNotTupleError
class DataFlowInspect(DataFlowInspector):
''' Function inspectio... | 35.027027 | 118 | 0.655864 | 120 | 1,296 | 6.883333 | 0.416667 | 0.058111 | 0.09201 | 0.058111 | 0.067797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.280093 | 1,296 | 36 | 119 | 36 | 0.885316 | 0.08179 | 0 | 0.12 | 0 | 0 | 0.017918 | 0.017918 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.2 | 0 | 0.32 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
09e5ab892fd8685aedec11f8378615ed2931fa1c | 891 | py | Python | processing_pipeline/extractionless_registration.py | SijRa/Brain-Image-Analysis-using-Deep-Learning | a35411bda6e39eff57f715a695b7fb6a30997706 | [
"MIT"
] | 2 | 2022-01-04T16:54:20.000Z | 2022-01-24T03:01:14.000Z | processing_pipeline/extractionless_registration.py | SijRa/Brain-Image-Analysis-using-Deep-Learning | a35411bda6e39eff57f715a695b7fb6a30997706 | [
"MIT"
] | null | null | null | processing_pipeline/extractionless_registration.py | SijRa/Brain-Image-Analysis-using-Deep-Learning | a35411bda6e39eff57f715a695b7fb6a30997706 | [
"MIT"
] | 1 | 2020-07-05T09:30:11.000Z | 2020-07-05T09:30:11.000Z | from ants import registration, image_read, image_write, resample_image, crop_image
from os import listdir
mri_directory = "ADNI_baseline_raw/"
template_loc = "MNI152_2009/mni_icbm152_t1_tal_nlin_sym_09a.nii"
template = image_read(template_loc)
template = resample_image(template, (192, 192, 160), True, 4)
#template = ... | 40.5 | 89 | 0.751964 | 122 | 891 | 5.213115 | 0.467213 | 0.042453 | 0.059748 | 0.040881 | 0.044025 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048593 | 0.122334 | 891 | 22 | 90 | 40.5 | 0.764706 | 0.089787 | 0 | 0 | 0 | 0 | 0.169136 | 0.088889 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.117647 | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
09e7e9329ecb594a1ce5f26cf6f1dcdac3d78aef | 15,237 | py | Python | sp_api/api/finances/models/shipment_item.py | lionsdigitalsolutions/python-amazon-sp-api | 7374523ebc65e2e01e37d03fc4009a44fabf2c3b | [
"MIT"
] | null | null | null | sp_api/api/finances/models/shipment_item.py | lionsdigitalsolutions/python-amazon-sp-api | 7374523ebc65e2e01e37d03fc4009a44fabf2c3b | [
"MIT"
] | null | null | null | sp_api/api/finances/models/shipment_item.py | lionsdigitalsolutions/python-amazon-sp-api | 7374523ebc65e2e01e37d03fc4009a44fabf2c3b | [
"MIT"
] | null | null | null | # coding: utf-8
"""
Selling Partner API for Finances
The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You ... | 35.270833 | 377 | 0.671458 | 1,881 | 15,237 | 5.1042 | 0.095694 | 0.083116 | 0.09749 | 0.089366 | 0.695136 | 0.595563 | 0.505156 | 0.431622 | 0.369441 | 0.262993 | 0 | 0.013961 | 0.257268 | 15,237 | 431 | 378 | 35.352668 | 0.834408 | 0.376386 | 0 | 0.091398 | 0 | 0 | 0.106636 | 0.053739 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172043 | false | 0 | 0.016129 | 0 | 0.306452 | 0.010753 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
09e89b2450d77d8cea8acdf70dfa8deb4095af90 | 3,370 | py | Python | my_plugins/youcompleteme/python/ycm/tests/diagnostic_interface_test.py | VirtualLG/vimrc | 33f961b0e465b852753479bc4aa0a32a6ff017cf | [
"MIT"
] | null | null | null | my_plugins/youcompleteme/python/ycm/tests/diagnostic_interface_test.py | VirtualLG/vimrc | 33f961b0e465b852753479bc4aa0a32a6ff017cf | [
"MIT"
] | null | null | null | my_plugins/youcompleteme/python/ycm/tests/diagnostic_interface_test.py | VirtualLG/vimrc | 33f961b0e465b852753479bc4aa0a32a6ff017cf | [
"MIT"
] | null | null | null | # Copyright (C) 2015-2018 YouCompleteMe contributors
#
# This file is part of YouCompleteMe.
#
# YouCompleteMe is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your opt... | 32.403846 | 77 | 0.625223 | 373 | 3,370 | 5.50134 | 0.380697 | 0.035088 | 0.011696 | 0.02924 | 0.23538 | 0.22271 | 0.195419 | 0.119396 | 0.103314 | 0.068226 | 0 | 0.025809 | 0.275668 | 3,370 | 103 | 78 | 32.718447 | 0.81483 | 0.230861 | 0 | 0.272727 | 0 | 0 | 0.106143 | 0 | 0 | 0 | 0 | 0 | 0.025974 | 1 | 0.038961 | false | 0 | 0.051948 | 0.025974 | 0.12987 | 0.012987 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
09edfb321e8839956c0dd18d657713402150647f | 2,043 | py | Python | examples/design_studies/ihm_fingergait/check_progress.py | cbteeple/somo | 53a1a94f7d9d624bc4c43e582c80f24a0e98df24 | [
"MIT"
] | null | null | null | examples/design_studies/ihm_fingergait/check_progress.py | cbteeple/somo | 53a1a94f7d9d624bc4c43e582c80f24a0e98df24 | [
"MIT"
] | null | null | null | examples/design_studies/ihm_fingergait/check_progress.py | cbteeple/somo | 53a1a94f7d9d624bc4c43e582c80f24a0e98df24 | [
"MIT"
] | null | null | null | # Be sure to run this file from the "palm_sweeps" folder
# cd examples/palm_sweeps
import os
import sys
from datetime import datetime
path = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", ".."))
sys.path.insert(0, path)
from somo.sweep import iter_utils
config_file = "sweeps/grid_diam_height.yam... | 29.185714 | 94 | 0.708762 | 335 | 2,043 | 4.008955 | 0.298507 | 0.067014 | 0.067014 | 0.050633 | 0.216679 | 0.067014 | 0.028295 | 0.028295 | 0.028295 | 0 | 0 | 0.030251 | 0.142438 | 2,043 | 69 | 95 | 29.608696 | 0.736301 | 0.101322 | 0 | 0.104167 | 0 | 0.041667 | 0.211939 | 0.051479 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0.208333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
09f226a5810e82fde46ce6d76eb7db7321ca355b | 3,998 | py | Python | Projects/Project 1/Handin/program.py | ymirthor/T-215-STY1 | b888da1e88c5aa16eac03353f525e9e0b9d901df | [
"MIT"
] | null | null | null | Projects/Project 1/Handin/program.py | ymirthor/T-215-STY1 | b888da1e88c5aa16eac03353f525e9e0b9d901df | [
"MIT"
] | null | null | null | Projects/Project 1/Handin/program.py | ymirthor/T-215-STY1 | b888da1e88c5aa16eac03353f525e9e0b9d901df | [
"MIT"
] | null | null | null | from collections import deque as LL
class Process:
def __init__(self, parent, priority):
self.state = 1 # State: 1=ready / 0=blocked
self.parent = parent
self.children = LL()
self.resources = LL()
self.priority = priority
self.blocked_on = None
class Resource:
d... | 35.070175 | 79 | 0.598049 | 477 | 3,998 | 4.907757 | 0.171908 | 0.047843 | 0.041008 | 0.034173 | 0.166595 | 0.105083 | 0.105083 | 0.053823 | 0.053823 | 0.053823 | 0 | 0.009369 | 0.305903 | 3,998 | 114 | 80 | 35.070175 | 0.834234 | 0.076538 | 0 | 0.106383 | 0 | 0 | 0.059799 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106383 | false | 0 | 0.010638 | 0 | 0.234043 | 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 |
09f240acbe9b8fa80d51945cdcc670845719d41c | 2,394 | py | Python | pg_methods/interfaces/state_processors.py | zafarali/policy-gradient-methods | f0d83a80ddc772dcad0c851aac9bfd41d436c274 | [
"MIT"
] | 28 | 2018-06-12T21:37:20.000Z | 2021-12-27T15:13:14.000Z | pg_methods/interfaces/state_processors.py | zafarali/policy-gradient-methods | f0d83a80ddc772dcad0c851aac9bfd41d436c274 | [
"MIT"
] | 3 | 2018-05-10T16:33:05.000Z | 2018-06-19T18:17:37.000Z | pg_methods/interfaces/state_processors.py | zafarali/policy-gradient-methods | f0d83a80ddc772dcad0c851aac9bfd41d436c274 | [
"MIT"
] | 7 | 2018-05-08T04:13:21.000Z | 2021-04-02T12:31:55.000Z | import gym
import torch
import numpy as np
from pg_methods.interfaces import common_interfaces as common
class SimpleStateProcessor(common.Interface):
"""
Allows one to interface states between a single instance of gym
"""
def __init__(self, environment_observation_space, one_hot=False, use_cuda=False... | 36.272727 | 102 | 0.575188 | 269 | 2,394 | 4.921933 | 0.245353 | 0.067976 | 0.07855 | 0.031722 | 0.305136 | 0.26284 | 0.202417 | 0.145015 | 0.145015 | 0.145015 | 0 | 0.010237 | 0.347118 | 2,394 | 66 | 103 | 36.272727 | 0.836852 | 0.035923 | 0 | 0.321429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053571 | false | 0 | 0.071429 | 0 | 0.267857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
09f69dea9d9541fb1a471fe9f8d7ffca1d756933 | 3,935 | py | Python | tests/test_emlib.py | mjpekala/faster-membranes | f203fc8608603bc7b16a1abeac324d52e9dfe96a | [
"Apache-2.0"
] | null | null | null | tests/test_emlib.py | mjpekala/faster-membranes | f203fc8608603bc7b16a1abeac324d52e9dfe96a | [
"Apache-2.0"
] | null | null | null | tests/test_emlib.py | mjpekala/faster-membranes | f203fc8608603bc7b16a1abeac324d52e9dfe96a | [
"Apache-2.0"
] | null | null | null | """Unit test for emlib.py
To run:
PYTHONPATH=../src python test_emlib.py
"""
__author__ = "Mike Pekala"
__copyright__ = "Copyright 2015, JHU/APL"
__license__ = "Apache 2.0"
import unittest
import numpy as np
from sklearn.metrics import precision_recall_fscore_support as smetrics
import emlib
class TestEmlib... | 33.067227 | 88 | 0.519695 | 550 | 3,935 | 3.634545 | 0.26 | 0.015008 | 0.015008 | 0.066533 | 0.395198 | 0.330665 | 0.283642 | 0.252126 | 0.235118 | 0.145073 | 0 | 0.057074 | 0.265311 | 3,935 | 118 | 89 | 33.347458 | 0.634383 | 0.205083 | 0 | 0.264706 | 0 | 0 | 0.016753 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.058824 | false | 0 | 0.058824 | 0 | 0.132353 | 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 |
09f91afeaca4a61947c025a6985fde971a2433a0 | 727 | py | Python | app/core/bluetooth/models.py | FHellmann/MLWTF | 582c3505d638907a848d5a6c739ee99981300f17 | [
"Apache-2.0"
] | null | null | null | app/core/bluetooth/models.py | FHellmann/MLWTF | 582c3505d638907a848d5a6c739ee99981300f17 | [
"Apache-2.0"
] | null | null | null | app/core/bluetooth/models.py | FHellmann/MLWTF | 582c3505d638907a848d5a6c739ee99981300f17 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
"""
Author: Fabio Hellmann <info@fabio-hellmann.de>
"""
from attr import s, ib
from attr.validators import instance_of
@s(frozen=True)
class BLEDevice(object):
"""
Device MAC address (as a hex string separated by colons).
"""
addr = ib(validator=instance_of(str), type=str)
"... | 27.961538 | 114 | 0.68088 | 103 | 727 | 4.76699 | 0.640777 | 0.081466 | 0.11609 | 0.12831 | 0.126273 | 0.126273 | 0.126273 | 0 | 0 | 0 | 0 | 0.001748 | 0.213205 | 727 | 25 | 115 | 29.08 | 0.856643 | 0.167813 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.857143 | 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 |
09f949d20672656308f4b25b2fb52c7d29555163 | 1,511 | py | Python | Algorithms_medium/1102. Path With Maximum Minimum Value.py | VinceW0/Leetcode_Python_solutions | 09e9720afce21632372431606ebec4129eb79734 | [
"Xnet",
"X11"
] | 4 | 2020-08-11T20:45:15.000Z | 2021-03-12T00:33:34.000Z | Algorithms_medium/1102. Path With Maximum Minimum Value.py | VinceW0/Leetcode_Python_solutions | 09e9720afce21632372431606ebec4129eb79734 | [
"Xnet",
"X11"
] | null | null | null | Algorithms_medium/1102. Path With Maximum Minimum Value.py | VinceW0/Leetcode_Python_solutions | 09e9720afce21632372431606ebec4129eb79734 | [
"Xnet",
"X11"
] | null | null | null | """
1102. Path With Maximum Minimum Value
Medium
Given a matrix of integers A with R rows and C columns, find the maximum score of a path starting at [0,0] and ending at [R-1,C-1].
The score of a path is the minimum value in that path. For example, the value of the path 8 → 4 → 5 → 9 is 4.
A path moves some numb... | 26.982143 | 154 | 0.536069 | 287 | 1,511 | 2.825784 | 0.337979 | 0.014797 | 0.011097 | 0.014797 | 0.014797 | 0.014797 | 0.014797 | 0.014797 | 0 | 0 | 0 | 0.093809 | 0.294507 | 1,511 | 56 | 155 | 26.982143 | 0.664165 | 0.547981 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
09f9da8e8fb3a2cb6c40b0627a6fdbf5844460e0 | 1,436 | py | Python | tests/extractor/test_factory.py | albertteoh/data_pipeline | a99f1c7412375b3e9f4115108fcdde517b2e71a6 | [
"Apache-2.0"
] | null | null | null | tests/extractor/test_factory.py | albertteoh/data_pipeline | a99f1c7412375b3e9f4115108fcdde517b2e71a6 | [
"Apache-2.0"
] | null | null | null | tests/extractor/test_factory.py | albertteoh/data_pipeline | a99f1c7412375b3e9f4115108fcdde517b2e71a6 | [
"Apache-2.0"
] | null | null | null | import pytest
import data_pipeline.db.factory as db_factory
import data_pipeline.extractor.factory as extractor_factory
import tests.unittest_utils as utils
import data_pipeline.constants.const as const
from pytest_mock import mocker
from data_pipeline.db.exceptions import UnsupportedDbTypeError
@pytest.fixture()
def... | 34.190476 | 79 | 0.766017 | 181 | 1,436 | 5.78453 | 0.337017 | 0.051576 | 0.091691 | 0.114613 | 0.114613 | 0.064947 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137187 | 1,436 | 41 | 80 | 35.02439 | 0.845036 | 0 | 0 | 0.0625 | 0 | 0 | 0.103064 | 0.038301 | 0 | 0 | 0 | 0 | 0.03125 | 1 | 0.09375 | false | 0 | 0.25 | 0 | 0.34375 | 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 |
09fa1379267ff36d7eaf0c8f04ba9a7c23bd124b | 3,424 | py | Python | suremco/tracker.py | modsim/SurEmCo | 71fc0cfc62f8733de93ee2736421574a154e3db3 | [
"BSD-2-Clause"
] | null | null | null | suremco/tracker.py | modsim/SurEmCo | 71fc0cfc62f8733de93ee2736421574a154e3db3 | [
"BSD-2-Clause"
] | null | null | null | suremco/tracker.py | modsim/SurEmCo | 71fc0cfc62f8733de93ee2736421574a154e3db3 | [
"BSD-2-Clause"
] | null | null | null | # SurEmCo - C++ tracker wrapper
import ctypes
from enum import IntEnum
import sys
import os
import numpy
import numpy.ctypeslib
class Tracker(object):
class Mode(IntEnum):
MOVING = 0
STATIC = 1
class Strategy(IntEnum):
BRUTE_FORCE = 0
KD_TREE = 1
track_input_type = {'dty... | 29.517241 | 101 | 0.580023 | 396 | 3,424 | 4.775253 | 0.323232 | 0.051824 | 0.037017 | 0.015865 | 0.231095 | 0.209942 | 0.194606 | 0.143839 | 0.101534 | 0.101534 | 0 | 0.013036 | 0.305491 | 3,424 | 115 | 102 | 29.773913 | 0.78217 | 0.061916 | 0 | 0.166667 | 0 | 0 | 0.065876 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059524 | false | 0 | 0.083333 | 0.011905 | 0.25 | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
09fb1d9a7c357f2bc49fb2f43274b073bfff333e | 4,026 | py | Python | foreign_languages/anderson.py | ds-modules/NESTUD-190A | 54ca1cd9a8f369f48946147f72377f874738f7d5 | [
"MIT"
] | 6 | 2017-11-06T03:18:12.000Z | 2019-10-02T19:41:06.000Z | foreign_languages/anderson.py | admndrsn/NESTUD-190A | 54ca1cd9a8f369f48946147f72377f874738f7d5 | [
"MIT"
] | null | null | null | foreign_languages/anderson.py | admndrsn/NESTUD-190A | 54ca1cd9a8f369f48946147f72377f874738f7d5 | [
"MIT"
] | 2 | 2018-02-09T01:04:58.000Z | 2019-06-19T17:45:34.000Z | from IPython.core.display import display, HTML
import translation
class translate(object):
id_start = 0
def __init__(self, column_types, language_to='en'):
self.num_of_columns = len(column_types) + 1
column_types.insert(0, 'original text')
self.column_types = column_types
self.language_to = language_to... | 31.209302 | 132 | 0.721063 | 611 | 4,026 | 4.607201 | 0.327332 | 0.025577 | 0.02238 | 0.039787 | 0.13357 | 0.120071 | 0.10373 | 0.10373 | 0.10373 | 0.10373 | 0 | 0.00507 | 0.167163 | 4,026 | 128 | 133 | 31.453125 | 0.834477 | 0.23696 | 0 | 0.03125 | 0 | 0 | 0.15498 | 0.024902 | 0 | 0 | 0 | 0 | 0 | 1 | 0.171875 | false | 0 | 0.078125 | 0.03125 | 0.40625 | 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 |
61cb92b7eff849f550f556cfcf71f302f039dac7 | 1,315 | py | Python | landdox/core.py | natefduncan/landdox | 58908554034577cc20c6f89ee6056da90cbfbd4e | [
"MIT"
] | 1 | 2019-12-13T16:19:56.000Z | 2019-12-13T16:19:56.000Z | landdox/core.py | natefduncan/landdox | 58908554034577cc20c6f89ee6056da90cbfbd4e | [
"MIT"
] | null | null | null | landdox/core.py | natefduncan/landdox | 58908554034577cc20c6f89ee6056da90cbfbd4e | [
"MIT"
] | null | null | null | import requests
import json
import pandas as pd
import os
from .endpoints import *
class Client:
endpoints = {
"contacts" : contacts,
"leases" : leases,
"units" : units,
"wells" : wells,
"custom" : custom,
"tracts" : tracts,
"payments" : payments
}
... | 26.3 | 62 | 0.580989 | 137 | 1,315 | 5.364964 | 0.416058 | 0.068027 | 0.04898 | 0.073469 | 0.157823 | 0.092517 | 0.092517 | 0 | 0 | 0 | 0 | 0.004415 | 0.311027 | 1,315 | 49 | 63 | 26.836735 | 0.806843 | 0 | 0 | 0 | 0 | 0 | 0.14688 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.128205 | 0 | 0.282051 | 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 |
61cd1b7623e09e8563a60f3d87a7caf270f2faa2 | 589 | py | Python | src/signalplotter/qt/makePyUI.py | jowanpittevils/Databasemanager_Signalplotter | 993152ad15793054df2acf386eb1c9a76610b789 | [
"BSD-3-Clause"
] | null | null | null | src/signalplotter/qt/makePyUI.py | jowanpittevils/Databasemanager_Signalplotter | 993152ad15793054df2acf386eb1c9a76610b789 | [
"BSD-3-Clause"
] | null | null | null | src/signalplotter/qt/makePyUI.py | jowanpittevils/Databasemanager_Signalplotter | 993152ad15793054df2acf386eb1c9a76610b789 | [
"BSD-3-Clause"
] | null | null | null | #%%
def makeUI(uiNames):
import sys, os
print('Check the pwd first, It must be at .../SignalPlotter/qt.')
print(os.getcwd())
p0 = os.path.dirname(sys.executable)
for uiName in (uiNames):
print('===== for: ',uiName,' ======')
p1 = '"'+p0+'\Scripts\pyuic5.exe'+'" '
p1 += ' -x... | 21.035714 | 69 | 0.50764 | 68 | 589 | 4.382353 | 0.647059 | 0.087248 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02148 | 0.288625 | 589 | 27 | 70 | 21.814815 | 0.689737 | 0.008489 | 0 | 0 | 0 | 0 | 0.266323 | 0.036082 | 0.058824 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.117647 | 0 | 0.176471 | 0.352941 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
61cea84c27bf7df9b0289ed47ffee2781ddbdc17 | 3,148 | py | Python | mpcontribs-users/mpcontribs/users/swf/pre_submission.py | josuav1/MPContribs | 3cbf0e83ba6cd749dd4fc988c9f6ad076b05f935 | [
"MIT"
] | 1 | 2019-07-03T04:38:58.000Z | 2019-07-03T04:38:58.000Z | mpcontribs-users/mpcontribs/users/swf/pre_submission.py | josuav1/MPContribs | 3cbf0e83ba6cd749dd4fc988c9f6ad076b05f935 | [
"MIT"
] | null | null | null | mpcontribs-users/mpcontribs/users/swf/pre_submission.py | josuav1/MPContribs | 3cbf0e83ba6cd749dd4fc988c9f6ad076b05f935 | [
"MIT"
] | 1 | 2019-07-03T04:39:04.000Z | 2019-07-03T04:39:04.000Z | from mpcontribs.config import mp_level01_titles
from mpcontribs.io.core.recdict import RecursiveDict
from mpcontribs.io.core.utils import clean_value, get_composition_from_string
from mpcontribs.users.utils import duplicate_check
def round_to_100_percent(number_set, digit_after_decimal=1):
unround_numbers = [
... | 43.123288 | 91 | 0.656607 | 422 | 3,148 | 4.699052 | 0.303318 | 0.027736 | 0.034291 | 0.036309 | 0.228946 | 0.216339 | 0.195159 | 0.169945 | 0.169945 | 0.140696 | 0 | 0.019013 | 0.21474 | 3,148 | 72 | 92 | 43.722222 | 0.783172 | 0.025095 | 0 | 0.098361 | 0 | 0 | 0.086162 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032787 | false | 0 | 0.114754 | 0 | 0.163934 | 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 |
61cf7342efb940a3f5d7c9b44e90c3d3f4d12610 | 21,205 | py | Python | src/trails/flow_model.py | BenDickens/trails | a89a1a901c7be38cdcb7a59339587e518ab8f14d | [
"MIT"
] | 4 | 2020-09-14T07:20:19.000Z | 2021-04-22T14:23:04.000Z | src/trails/flow_model.py | BenDickens/trails | a89a1a901c7be38cdcb7a59339587e518ab8f14d | [
"MIT"
] | 5 | 2021-03-17T17:02:27.000Z | 2021-08-31T10:09:38.000Z | src/trails/flow_model.py | BenDickens/trails | a89a1a901c7be38cdcb7a59339587e518ab8f14d | [
"MIT"
] | 3 | 2020-09-07T07:35:28.000Z | 2021-04-22T14:23:39.000Z | import os,sys
import numpy as np
import pandas as pd
import geopandas as gpd
import matplotlib.pyplot as plt
import pygeos
from osgeo import gdal
from tqdm import tqdm
import igraph as ig
import contextily as ctx
from rasterstats import zonal_stats
import time
import pylab as pl
from IPython import display
import seabo... | 35.400668 | 145 | 0.636831 | 2,919 | 21,205 | 4.438164 | 0.188421 | 0.029641 | 0.019298 | 0.022076 | 0.343342 | 0.274334 | 0.209031 | 0.183404 | 0.163952 | 0.149904 | 0 | 0.021345 | 0.217873 | 21,205 | 599 | 146 | 35.400668 | 0.759301 | 0.212497 | 0 | 0.126183 | 0 | 0.003155 | 0.107006 | 0.005622 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059937 | false | 0 | 0.07571 | 0 | 0.223975 | 0.012618 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
61cffba0eebf31780c12f21faf032f94e065f6a5 | 1,238 | py | Python | offsite/core/utils.py | wh1te909/backup-offsite | 694f773583eb825b44ff20c51598ac9e1106cd32 | [
"MIT"
] | 4 | 2021-01-20T15:45:35.000Z | 2021-07-09T02:15:31.000Z | offsite/core/utils.py | wh1te909/backup-offsite | 694f773583eb825b44ff20c51598ac9e1106cd32 | [
"MIT"
] | 6 | 2020-08-02T23:31:07.000Z | 2021-09-22T19:19:50.000Z | offsite/core/utils.py | wh1te909/backup-offsite | 694f773583eb825b44ff20c51598ac9e1106cd32 | [
"MIT"
] | null | null | null | from channels.auth import AuthMiddlewareStack
from knox.auth import TokenAuthentication
from django.contrib.auth.models import AnonymousUser
from channels.db import database_sync_to_async
@database_sync_to_async
def get_user(access_token):
try:
auth = TokenAuthentication()
token = access_token.de... | 25.265306 | 86 | 0.697092 | 136 | 1,238 | 6.132353 | 0.411765 | 0.064748 | 0.046763 | 0.045564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006129 | 0.209208 | 1,238 | 48 | 87 | 25.791667 | 0.845761 | 0.037157 | 0 | 0 | 0 | 0 | 0.02466 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.133333 | 0.033333 | 0.466667 | 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 |
61d14e7bc92cdd86e7f3f92f3039ee396ac2a457 | 6,841 | py | Python | unik/indexing.py | balbasty/unik | 7b8b2a0989495eec7bc0db6c672ce904cbcb1063 | [
"MIT"
] | null | null | null | unik/indexing.py | balbasty/unik | 7b8b2a0989495eec7bc0db6c672ce904cbcb1063 | [
"MIT"
] | null | null | null | unik/indexing.py | balbasty/unik | 7b8b2a0989495eec7bc0db6c672ce904cbcb1063 | [
"MIT"
] | null | null | null | """Access / change tensor shape."""
import tensorflow as tf
import numpy as np
from .magik import tensor_compat
from .alloc import zeros_like
from .types import has_tensor, as_tensor, cast, dtype
from .shapes import shape, reshape, flatten, transpose, unstack
from ._math_for_indexing import cumprod, minimum, maximum
f... | 35.262887 | 77 | 0.582517 | 874 | 6,841 | 4.45881 | 0.217391 | 0.04311 | 0.029253 | 0.021812 | 0.220683 | 0.185014 | 0.126508 | 0.126508 | 0.089556 | 0.089556 | 0 | 0.005427 | 0.299664 | 6,841 | 193 | 78 | 35.445596 | 0.807973 | 0.2887 | 0 | 0.357143 | 0 | 0 | 0.030647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044643 | false | 0 | 0.071429 | 0 | 0.232143 | 0.008929 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
61d192d69ecdae0462072ff12464ac90f01f69d0 | 1,478 | py | Python | aleph/views/alerts_api.py | adikadashrieq/aleph | acc03197c10e511a279ae3a05120187223f173d2 | [
"MIT"
] | 1 | 2019-06-18T21:35:59.000Z | 2019-06-18T21:35:59.000Z | aleph/views/alerts_api.py | heartofstone/aleph | d66b6615d2bfa10c291c63754f53b468de8bebde | [
"MIT"
] | null | null | null | aleph/views/alerts_api.py | heartofstone/aleph | d66b6615d2bfa10c291c63754f53b468de8bebde | [
"MIT"
] | null | null | null | from flask import Blueprint, request
from aleph.core import db
from aleph.model import Alert
from aleph.search import DatabaseQueryResult
from aleph.views.forms import AlertSchema
from aleph.views.serializers import AlertSerializer
from aleph.views.util import require, obj_or_404
from aleph.views.util import parse_req... | 31.446809 | 71 | 0.750338 | 207 | 1,478 | 5.198068 | 0.2657 | 0.066915 | 0.065056 | 0.066915 | 0.472119 | 0.288104 | 0.230483 | 0.230483 | 0.230483 | 0.230483 | 0 | 0.012327 | 0.121786 | 1,478 | 46 | 72 | 32.130435 | 0.816641 | 0 | 0 | 0.277778 | 0 | 0 | 0.075101 | 0.037889 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.25 | 0 | 0.472222 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
61d210a06894e407303586520efa2e44fe445461 | 11,283 | py | Python | run.py | Acforest/LogPrompt | 199766cea9988bc6e8b1c71352b090da68bbb71d | [
"Apache-2.0"
] | null | null | null | run.py | Acforest/LogPrompt | 199766cea9988bc6e8b1c71352b090da68bbb71d | [
"Apache-2.0"
] | null | null | null | run.py | Acforest/LogPrompt | 199766cea9988bc6e8b1c71352b090da68bbb71d | [
"Apache-2.0"
] | null | null | null | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under th... | 58.46114 | 119 | 0.660197 | 1,498 | 11,283 | 4.781709 | 0.215621 | 0.056541 | 0.106799 | 0.02122 | 0.226721 | 0.17744 | 0.160128 | 0.107078 | 0.107078 | 0.074131 | 0 | 0.006516 | 0.238323 | 11,283 | 192 | 120 | 58.765625 | 0.826972 | 0.070637 | 0 | 0 | 0 | 0.006667 | 0.329542 | 0.016821 | 0 | 0 | 0 | 0 | 0.006667 | 1 | 0.006667 | false | 0.006667 | 0.06 | 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 |
61d24122d7792980c0b72c95b9dc3ec6c9efd631 | 2,282 | py | Python | data/external/repositories_2to3/253384/national_data_science_bowl_2-master/alexcode/code/model.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | null | null | null | data/external/repositories_2to3/253384/national_data_science_bowl_2-master/alexcode/code/model.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | null | null | null | data/external/repositories_2to3/253384/national_data_science_bowl_2-master/alexcode/code/model.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | 1 | 2019-12-04T08:23:33.000Z | 2019-12-04T08:23:33.000Z |
from keras.models import Sequential
from keras.layers.convolutional import Convolution2D, MaxPooling2D, ZeroPadding2D
from keras.layers.core import Activation, Dense, Flatten, Dropout
from keras.optimizers import Adam
from keras.regularizers import l2
from keras import backend as K
def center_normalize(x)... | 34.575758 | 82 | 0.659509 | 318 | 2,282 | 4.672956 | 0.226415 | 0.193809 | 0.133244 | 0.148048 | 0.631225 | 0.631225 | 0.611036 | 0.611036 | 0.583445 | 0.583445 | 0 | 0.064293 | 0.175285 | 2,282 | 65 | 83 | 35.107692 | 0.725292 | 0.030675 | 0 | 0.44898 | 0 | 0 | 0.039455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040816 | false | 0 | 0.122449 | 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 |
61d29e48cb817ece86e476bffbf91b00d5532c33 | 8,685 | py | Python | BuildDeb.py | KOLANICH/GraalVM_deb_packages_CI | f41786b4daa11efebe24402f5000111137365b4f | [
"Apache-2.0",
"Unlicense"
] | null | null | null | BuildDeb.py | KOLANICH/GraalVM_deb_packages_CI | f41786b4daa11efebe24402f5000111137365b4f | [
"Apache-2.0",
"Unlicense"
] | null | null | null | BuildDeb.py | KOLANICH/GraalVM_deb_packages_CI | f41786b4daa11efebe24402f5000111137365b4f | [
"Apache-2.0",
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
import sys
import struct
import re
import os
from itertools import chain
import warnings
import tarfile
import sh
from tqdm import tqdm
from pydebhelper import *
from getLatestVersionAndURLWithGitHubAPI import getTargets
def genGraalProvides(start=6, end=8): # java 12 still not supported ye... | 32.773585 | 691 | 0.687737 | 1,041 | 8,685 | 5.705091 | 0.331412 | 0.021889 | 0.027277 | 0.034854 | 0.146658 | 0.134534 | 0.103553 | 0.097491 | 0.097491 | 0.086378 | 0 | 0.003736 | 0.137018 | 8,685 | 264 | 692 | 32.897727 | 0.788659 | 0.006102 | 0 | 0.081731 | 0 | 0.004808 | 0.338355 | 0.045423 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043269 | false | 0.004808 | 0.052885 | 0 | 0.125 | 0.009615 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
61d2ae9ec01343c7273afc66fcb5912f5895801a | 6,267 | py | Python | mergify_engine/utils.py | Madhu-1/mergify-engine | 9ca4f4697cc825230b1584f5587f10393cabc971 | [
"Apache-2.0"
] | null | null | null | mergify_engine/utils.py | Madhu-1/mergify-engine | 9ca4f4697cc825230b1584f5587f10393cabc971 | [
"Apache-2.0"
] | null | null | null | mergify_engine/utils.py | Madhu-1/mergify-engine | 9ca4f4697cc825230b1584f5587f10393cabc971 | [
"Apache-2.0"
] | null | null | null | # -*- encoding: utf-8 -*-
#
# Copyright © 2017 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 27.977679 | 88 | 0.6322 | 749 | 6,267 | 5.142857 | 0.368491 | 0.054517 | 0.036345 | 0.043614 | 0.126947 | 0.095535 | 0.031153 | 0 | 0 | 0 | 0 | 0.006811 | 0.250359 | 6,267 | 223 | 89 | 28.103139 | 0.812686 | 0.1251 | 0 | 0.107595 | 0 | 0 | 0.129677 | 0.035583 | 0 | 0 | 0 | 0 | 0 | 1 | 0.094937 | false | 0.018987 | 0.094937 | 0.012658 | 0.272152 | 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 |
61d440e6d71c032e6b0102e0319c9ad174f35ff4 | 1,750 | py | Python | milefrienddb/models/vehicles.py | jcrjaci/mil_test | ed54f55c5aacd8ffd110b7c173422dbd0cac631f | [
"MIT"
] | null | null | null | milefrienddb/models/vehicles.py | jcrjaci/mil_test | ed54f55c5aacd8ffd110b7c173422dbd0cac631f | [
"MIT"
] | null | null | null | milefrienddb/models/vehicles.py | jcrjaci/mil_test | ed54f55c5aacd8ffd110b7c173422dbd0cac631f | [
"MIT"
] | null | null | null | """Vehicle's app models."""
import uuid
from django.db import models
from .clients import Client
class Vehicle(models.Model):
"""Model representing a vehicle."""
road_worthiness_path = 'vehicles/certs/road_worthiness'
ownership_path = 'vehicles/certs/ownership'
photo_path = 'vehicles/photos'
id... | 38.043478 | 87 | 0.737714 | 222 | 1,750 | 5.594595 | 0.418919 | 0.057971 | 0.072464 | 0.096618 | 0.136876 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011494 | 0.154857 | 1,750 | 45 | 88 | 38.888889 | 0.828262 | 0.050286 | 0 | 0 | 0 | 0 | 0.066829 | 0.032807 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.088235 | 0 | 0.941176 | 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 |
61d6182a3cde9be8c7c4791931417d4e0d9e7b55 | 187 | py | Python | ejercicio_4.py | Laurardila440/taller-de-secuencias | 9db216d2431661e0777273fc5b8360a316d7dbd2 | [
"Apache-2.0"
] | null | null | null | ejercicio_4.py | Laurardila440/taller-de-secuencias | 9db216d2431661e0777273fc5b8360a316d7dbd2 | [
"Apache-2.0"
] | null | null | null | ejercicio_4.py | Laurardila440/taller-de-secuencias | 9db216d2431661e0777273fc5b8360a316d7dbd2 | [
"Apache-2.0"
] | null | null | null | """
Entradas
compra-->int-->c
salidas
Descuento-->flot-->d
"""
c=float(input("digite compra"))
#caja negra
d=(c*0.15)
total=(c-d)
#Salidas
print("el total a pagar es de :"+str(total))
| 14.384615 | 44 | 0.641711 | 32 | 187 | 3.75 | 0.71875 | 0.033333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018293 | 0.122995 | 187 | 12 | 45 | 15.583333 | 0.713415 | 0.395722 | 0 | 0 | 0 | 0 | 0.359223 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
61d6aa3833e84422d5bd54157900ea1d35ffca0b | 878 | py | Python | 429.py | geethakamath18/Leetcode | 8e55e0a47ee35ed100b30dda6682c7ce1033d4b2 | [
"MIT"
] | null | null | null | 429.py | geethakamath18/Leetcode | 8e55e0a47ee35ed100b30dda6682c7ce1033d4b2 | [
"MIT"
] | null | null | null | 429.py | geethakamath18/Leetcode | 8e55e0a47ee35ed100b30dda6682c7ce1033d4b2 | [
"MIT"
] | null | null | null | #LeetCode problem 429: N-ary Tree Level Order Traversal
"""
# Definition for a Node.
class Node:
def __init__(self, val=None, children=None):
self.val = val
self.children = children
"""
class Solution:
def levelOrder(self, root: 'Node') -> List[List[int]]:
res=[]
h=self.getHeig... | 26.606061 | 61 | 0.544419 | 116 | 878 | 4.086207 | 0.362069 | 0.050633 | 0.075949 | 0.059072 | 0.092827 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017094 | 0.333713 | 878 | 32 | 62 | 27.4375 | 0.793162 | 0.223235 | 0 | 0.095238 | 0 | 0 | 0.017831 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
61d7cc4850de782acf97ce8fd6bae60d5d5eb06f | 544 | py | Python | PyhonServer/app-client.py | sixfourtwo/auhack19 | 65b94c6cbdbfbd50e355c12b8ca2792b3b086321 | [
"Apache-2.0"
] | null | null | null | PyhonServer/app-client.py | sixfourtwo/auhack19 | 65b94c6cbdbfbd50e355c12b8ca2792b3b086321 | [
"Apache-2.0"
] | null | null | null | PyhonServer/app-client.py | sixfourtwo/auhack19 | 65b94c6cbdbfbd50e355c12b8ca2792b3b086321 | [
"Apache-2.0"
] | null | null | null | # importing the requests library
import requests
import json
# api-endpoint
URL = "http://127.0.0.1:80/water_mark"
# defining a params dict for the parameters to be sent to the API
# data is picture data
# tagString is the text to embed into picture.
data = {
"data":"This is the original text",
"tagStri... | 22.666667 | 66 | 0.6875 | 83 | 544 | 4.493976 | 0.554217 | 0.058981 | 0.075067 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022624 | 0.1875 | 544 | 23 | 67 | 23.652174 | 0.821267 | 0.430147 | 0 | 0 | 0 | 0 | 0.298013 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 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 |
61d90f523acdcf1af2ba8df7242ffe2e2fdeac93 | 9,827 | py | Python | memnet.py | 404akhan/memnet | a8cf9e0a480575d9d36de6fa3357f667d64e0b05 | [
"BSD-3-Clause"
] | 1 | 2018-02-01T05:17:13.000Z | 2018-02-01T05:17:13.000Z | memnet.py | 404akhan/memnet | a8cf9e0a480575d9d36de6fa3357f667d64e0b05 | [
"BSD-3-Clause"
] | null | null | null | memnet.py | 404akhan/memnet | a8cf9e0a480575d9d36de6fa3357f667d64e0b05 | [
"BSD-3-Clause"
] | null | null | null | import torch
import torch.nn.functional as F
import torch.nn.init as init
from torch import nn, autograd
from torch.utils.data import DataLoader
from babi import BabiDataset, pad_collate
from torch.nn.utils import clip_grad_norm
torch.backends.cudnn.benchmark = True
torch.backends.cudnn.fastest = True
class MemoryC... | 37.083019 | 110 | 0.623792 | 1,189 | 9,827 | 4.936081 | 0.176619 | 0.021469 | 0.020617 | 0.025558 | 0.427671 | 0.381496 | 0.335492 | 0.313341 | 0.292213 | 0.279605 | 0 | 0.01646 | 0.270479 | 9,827 | 265 | 111 | 37.083019 | 0.802204 | 0.035413 | 0 | 0.302703 | 0 | 0.005405 | 0.02893 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021622 | false | 0 | 0.037838 | 0 | 0.081081 | 0.021622 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
61d93349709f00bb603d8566d8afdb83080026fb | 3,444 | py | Python | tests/test_tba.py | StanfordAHA/Lake | 34df001db107e1a0824b7fdb05b9f2145bf49a3e | [
"BSD-3-Clause"
] | 11 | 2019-10-14T02:05:38.000Z | 2022-03-10T14:10:22.000Z | tests/test_tba.py | StanfordAHA/Lake | 34df001db107e1a0824b7fdb05b9f2145bf49a3e | [
"BSD-3-Clause"
] | 29 | 2019-09-02T05:49:40.000Z | 2022-02-26T00:57:54.000Z | tests/test_tba.py | StanfordAHA/Lake | 34df001db107e1a0824b7fdb05b9f2145bf49a3e | [
"BSD-3-Clause"
] | 1 | 2021-04-16T20:26:13.000Z | 2021-04-16T20:26:13.000Z | from lake.models.tba_model import TBAModel
from lake.modules.transpose_buffer_aggregation import TransposeBufferAggregation
from lake.passes.passes import lift_config_reg
import magma as m
from magma import *
import fault
import tempfile
import kratos as k
import random as rand
import pytest
def test_tba(word_width=1... | 29.947826 | 94 | 0.594948 | 440 | 3,444 | 4.313636 | 0.259091 | 0.143836 | 0.094837 | 0.075869 | 0.310327 | 0.114858 | 0.092729 | 0.092729 | 0.055848 | 0.055848 | 0 | 0.026237 | 0.324913 | 3,444 | 114 | 95 | 30.210526 | 0.790108 | 0.006678 | 0 | 0.170455 | 0 | 0 | 0.036268 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011364 | false | 0.011364 | 0.113636 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
61da398102287561106f2583dbf3dd6a0d400ea3 | 1,442 | py | Python | 2018/02/py/run.py | Bigsby/aoc | 409fefbb0467628fa298288064acb622bb53ee58 | [
"CC0-1.0"
] | 1 | 2021-06-11T17:24:05.000Z | 2021-06-11T17:24:05.000Z | 2018/02/py/run.py | Bigsby/aoc | 409fefbb0467628fa298288064acb622bb53ee58 | [
"CC0-1.0"
] | null | null | null | 2018/02/py/run.py | Bigsby/aoc | 409fefbb0467628fa298288064acb622bb53ee58 | [
"CC0-1.0"
] | null | null | null | #! /usr/bin/python3
import sys, os, time
from typing import List, Tuple
from itertools import combinations
def part1(ids: List[str]) -> int:
twice_count = 0
thrice_count = 0
for id in ids:
id_counts = { id.count(c) for c in id }
twice_count += 2 in id_counts
thrice_count += 3 in i... | 25.75 | 72 | 0.615811 | 207 | 1,442 | 4.135266 | 0.36715 | 0.046729 | 0.035047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027959 | 0.255895 | 1,442 | 56 | 73 | 25.75 | 0.769804 | 0.012483 | 0 | 0 | 0 | 0 | 0.074438 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.075 | 0.025 | 0.3 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
61df694948c2ba5c7d34c79e97268eab5f090a30 | 3,272 | py | Python | palette/core/color_transfer.py | SuziKim/PaletteSelection | cfc0052996b5c8dc1da2d6e30798dd1fed138ebe | [
"MIT"
] | 23 | 2015-08-25T12:31:44.000Z | 2021-12-15T03:18:12.000Z | palette/core/color_transfer.py | SuziKim/PaletteSelection | cfc0052996b5c8dc1da2d6e30798dd1fed138ebe | [
"MIT"
] | null | null | null | palette/core/color_transfer.py | SuziKim/PaletteSelection | cfc0052996b5c8dc1da2d6e30798dd1fed138ebe | [
"MIT"
] | 7 | 2017-07-27T10:57:36.000Z | 2022-02-22T06:51:44.000Z | # -*- coding: utf-8 -*-
## @package palette.core.color_transfer
#
# Color transfer.
# @author tody
# @date 2015/09/16
import numpy as np
from scipy.interpolate import Rbf
import matplotlib.pyplot as plt
from palette.core.lab_slices import LabSlice, LabSlicePlot, Lab2rgb_py
## Color transfer for ab co... | 37.181818 | 93 | 0.652812 | 457 | 3,272 | 4.38512 | 0.201313 | 0.071856 | 0.063872 | 0.062874 | 0.365269 | 0.336327 | 0.191617 | 0.160679 | 0.132735 | 0.096806 | 0 | 0.022673 | 0.231663 | 3,272 | 87 | 94 | 37.609195 | 0.774463 | 0.17665 | 0 | 0.113208 | 0 | 0 | 0.00075 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.150943 | false | 0 | 0.075472 | 0 | 0.339623 | 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 |
61dfafddb5a99f013e5962a29c6779ac49a5f150 | 1,447 | py | Python | CursoEmVideoPython/desafio95.py | miguelabreuss/scripts_python | cf33934731a9d1b731672d4309aaea0a24ae151a | [
"MIT"
] | null | null | null | CursoEmVideoPython/desafio95.py | miguelabreuss/scripts_python | cf33934731a9d1b731672d4309aaea0a24ae151a | [
"MIT"
] | 1 | 2020-07-04T16:27:25.000Z | 2020-07-04T16:27:25.000Z | CursoEmVideoPython/desafio95.py | miguelabreuss/scripts_python | cf33934731a9d1b731672d4309aaea0a24ae151a | [
"MIT"
] | null | null | null | scoult = dict()
gols = list()
time = list()
temp = 0
while True:
scoult['Jogador'] = str(input('Qual o nome do jogador: '))
scoult['Número partidas'] = int(input('Quantas partidas foram jogadas? '))
for i in range(0,scoult['Número partidas']):
gols.append(int(input(f'Quantos gols foram marcados na p... | 38.078947 | 109 | 0.561852 | 206 | 1,447 | 3.946602 | 0.325243 | 0.04305 | 0.054121 | 0.04059 | 0.189422 | 0.174662 | 0.078721 | 0.078721 | 0 | 0 | 0 | 0.031858 | 0.219074 | 1,447 | 37 | 110 | 39.108108 | 0.687611 | 0 | 0 | 0.324324 | 0 | 0.027027 | 0.422944 | 0.078093 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.27027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
61e1ff665914cfb40790ee569edb6f9cb201dad5 | 3,668 | py | Python | Algorithms/On-Policy/A2C/DISCOVER_A2C.py | baturaysaglam/DISCOVER | 423158c84a5935ca5755ccad06ea5fe20fb57d76 | [
"MIT"
] | null | null | null | Algorithms/On-Policy/A2C/DISCOVER_A2C.py | baturaysaglam/DISCOVER | 423158c84a5935ca5755ccad06ea5fe20fb57d76 | [
"MIT"
] | null | null | null | Algorithms/On-Policy/A2C/DISCOVER_A2C.py | baturaysaglam/DISCOVER | 423158c84a5935ca5755ccad06ea5fe20fb57d76 | [
"MIT"
] | null | null | null | import numpy as np
import torch
import torch.nn as nn
import torch.optim as optim
from utils import init
class Explorer(nn.Module):
def __init__(self, state_dim, max_action, exp_regularization):
super(Explorer, self).__init__()
init_ = lambda m: init(m, nn.init.orthogonal_, lambda x: nn.init.con... | 37.050505 | 104 | 0.638768 | 464 | 3,668 | 4.771552 | 0.206897 | 0.022584 | 0.029359 | 0.036134 | 0.503162 | 0.45122 | 0.409666 | 0.409666 | 0.370822 | 0.291328 | 0 | 0.016619 | 0.245365 | 3,668 | 98 | 105 | 37.428571 | 0.783237 | 0.006816 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069444 | false | 0 | 0.069444 | 0.013889 | 0.194444 | 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 |
61e3abea3e991562a75549fe727c93817d1999de | 3,400 | py | Python | user/beaninfo_Global.py | dvdrm/gd | c004724344577bb608fa0611d10c16b211995f72 | [
"Apache-2.0"
] | null | null | null | user/beaninfo_Global.py | dvdrm/gd | c004724344577bb608fa0611d10c16b211995f72 | [
"Apache-2.0"
] | null | null | null | user/beaninfo_Global.py | dvdrm/gd | c004724344577bb608fa0611d10c16b211995f72 | [
"Apache-2.0"
] | null | null | null | from telethon import events, Button
from .login import user
from .. import jdbot
from ..bot.utils import cmd, TASK_CMD,split_list, press_event
from ..diy.utils import read, write
import asyncio
import re
@user.on(events.NewMessage(pattern=r'^setbd', outgoing=True))
async def SetBeanDetailInfo(event):
try:
... | 33.009709 | 134 | 0.516471 | 406 | 3,400 | 4.219212 | 0.362069 | 0.024518 | 0.032691 | 0.035026 | 0.38704 | 0.371862 | 0.336836 | 0.318739 | 0.283713 | 0.283713 | 0 | 0.005809 | 0.341765 | 3,400 | 103 | 135 | 33.009709 | 0.758266 | 0 | 0 | 0.516854 | 0 | 0 | 0.142017 | 0.040282 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.078652 | 0 | 0.101124 | 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 |
61e6fadc19dca2b7aaa1c0e67b41806d94ed6219 | 12,263 | py | Python | pyemits/core/ml/regression/trainer.py | thompson0012/PyEmits | 9cb6fbf27ca7e8952ed5aca26118055e04492c23 | [
"Apache-2.0"
] | 6 | 2021-10-21T14:13:25.000Z | 2021-12-26T12:22:51.000Z | pyemits/core/ml/regression/trainer.py | thompson0012/PyEmits | 9cb6fbf27ca7e8952ed5aca26118055e04492c23 | [
"Apache-2.0"
] | null | null | null | pyemits/core/ml/regression/trainer.py | thompson0012/PyEmits | 9cb6fbf27ca7e8952ed5aca26118055e04492c23 | [
"Apache-2.0"
] | null | null | null | from sklearn.ensemble import RandomForestRegressor, GradientBoostingRegressor, AdaBoostRegressor
from sklearn.neural_network import MLPRegressor
from sklearn.linear_model import ElasticNet, Ridge, Lasso, BayesianRidge, HuberRegressor
from xgboost import XGBRegressor
from lightgbm import LGBMRegressor
from pyemits.core.... | 40.471947 | 125 | 0.644133 | 1,455 | 12,263 | 5.160825 | 0.171821 | 0.057265 | 0.038354 | 0.031163 | 0.408443 | 0.368491 | 0.352777 | 0.306299 | 0.28619 | 0.281928 | 0 | 0.000793 | 0.279785 | 12,263 | 302 | 126 | 40.60596 | 0.849411 | 0.166925 | 0 | 0.338308 | 0 | 0 | 0.02892 | 0.002116 | 0 | 0 | 0 | 0 | 0.00995 | 1 | 0.084577 | false | 0 | 0.079602 | 0.004975 | 0.308458 | 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 |
61e7231e5da397e138846e32322894665e310b28 | 7,092 | py | Python | network_core/network_graph.py | markusgl/SocialCompanion | e816af21c600b33dbcac25d088d4d75957d0349a | [
"MIT"
] | 2 | 2018-12-21T12:55:21.000Z | 2019-05-29T06:35:58.000Z | network_core/network_graph.py | markusgl/SocialCompanion | e816af21c600b33dbcac25d088d4d75957d0349a | [
"MIT"
] | 8 | 2019-12-16T21:08:36.000Z | 2021-03-31T18:58:35.000Z | network_core/network_graph.py | markusgl/SocialCompanion | e816af21c600b33dbcac25d088d4d75957d0349a | [
"MIT"
] | null | null | null | """
knowledge graph representation using neo4j
this class uses py2neo with will be the final version
"""
import os
import json
from py2neo import Graph, Relationship, NodeMatcher, Node
from network_core.ogm.node_objects import Me, Contact, Misc
USERTYPE = "User"
CONTACTTYPE = "Contact"
ROOT_DIR = os.path.dirname(os.p... | 30.437768 | 129 | 0.563593 | 820 | 7,092 | 4.756098 | 0.181707 | 0.032308 | 0.017949 | 0.023077 | 0.351282 | 0.258205 | 0.223846 | 0.223846 | 0.223846 | 0.223846 | 0 | 0.006321 | 0.330795 | 7,092 | 232 | 130 | 30.568966 | 0.815424 | 0.164834 | 0 | 0.269504 | 0 | 0.007092 | 0.102432 | 0.012249 | 0 | 0 | 0 | 0.00431 | 0 | 1 | 0.092199 | false | 0.014184 | 0.028369 | 0 | 0.212766 | 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 |
61ea28b84ee81d7761635919c06d71cde4b781c4 | 2,355 | py | Python | src/train_and_evaluate.py | rajeevteejwal/mlops_wine_quality | 970ce27712932ca535309230da69fc5c29d82c38 | [
"MIT"
] | null | null | null | src/train_and_evaluate.py | rajeevteejwal/mlops_wine_quality | 970ce27712932ca535309230da69fc5c29d82c38 | [
"MIT"
] | null | null | null | src/train_and_evaluate.py | rajeevteejwal/mlops_wine_quality | 970ce27712932ca535309230da69fc5c29d82c38 | [
"MIT"
] | null | null | null | import os
import pandas as pd
from sklearn.linear_model import ElasticNet
from sklearn.metrics import r2_score, mean_squared_error, mean_absolute_error
import argparse
import numpy as np
import json
import joblib
from get_data import read_config
def evaluate_metrics(actual, pred):
r2 = r2_score(actual,pred)
ma... | 31.824324 | 77 | 0.675159 | 331 | 2,355 | 4.52568 | 0.280967 | 0.037383 | 0.032043 | 0.034045 | 0.17757 | 0.11215 | 0 | 0 | 0 | 0 | 0 | 0.011992 | 0.185563 | 2,355 | 73 | 78 | 32.260274 | 0.76903 | 0 | 0 | 0 | 0 | 0 | 0.143161 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.15 | 0 | 0.2 | 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 |
61ebdb6920b4b4c3e3a8b0b2f9c1a74ed61083fb | 961 | py | Python | examples/plot_magnitudes.py | zsiciarz/pygcvs | ed5522ab9cf9237592a6af7a0bc8cad079afeb67 | [
"MIT"
] | null | null | null | examples/plot_magnitudes.py | zsiciarz/pygcvs | ed5522ab9cf9237592a6af7a0bc8cad079afeb67 | [
"MIT"
] | null | null | null | examples/plot_magnitudes.py | zsiciarz/pygcvs | ed5522ab9cf9237592a6af7a0bc8cad079afeb67 | [
"MIT"
] | null | null | null | """
Visualisation of maximum/minimum magnitude for GCVS stars.
"""
import sys
import matplotlib.pyplot as plot
from pygcvs import read_gcvs
if __name__ == '__main__':
try:
gcvs_file = sys.argv[1]
except IndexError:
print('Usage: python plot_magnitudes.py <path to iii.dat>')
else:
... | 30.03125 | 73 | 0.64204 | 115 | 961 | 5.147826 | 0.513043 | 0.065878 | 0.054054 | 0.087838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001389 | 0.25078 | 961 | 31 | 74 | 31 | 0.820833 | 0.127992 | 0 | 0 | 0 | 0 | 0.218072 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.136364 | 0 | 0.136364 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
61ed3298ce258d1708cb601b97ca2bb3d32448c9 | 18,023 | py | Python | netor/tinydb/scripts/netorconf.py | aegiacometti/neto | 4169a93a4d789facfe9a41d214b1a6c15e8f2fb9 | [
"Apache-2.0"
] | 1 | 2020-01-02T04:31:11.000Z | 2020-01-02T04:31:11.000Z | netor/tinydb/scripts/netorconf.py | aegiacometti/neto | 4169a93a4d789facfe9a41d214b1a6c15e8f2fb9 | [
"Apache-2.0"
] | null | null | null | netor/tinydb/scripts/netorconf.py | aegiacometti/neto | 4169a93a4d789facfe9a41d214b1a6c15e8f2fb9 | [
"Apache-2.0"
] | 1 | 2021-02-23T04:34:48.000Z | 2021-02-23T04:34:48.000Z | #!/usr/bin/env python3
import os
import sys
import configparser
import fileinput
import netorlogging
import datetime
from shutil import copyfile
def _netor_config():
"""
It is used for updating the Neto home directory in the configuration files and scripts.
This is useful, if you want to have 2 working ... | 42.011655 | 119 | 0.668146 | 2,364 | 18,023 | 4.887902 | 0.140017 | 0.082562 | 0.089139 | 0.123583 | 0.648897 | 0.623107 | 0.59524 | 0.563479 | 0.525314 | 0.44855 | 0 | 0.000983 | 0.209455 | 18,023 | 428 | 120 | 42.109813 | 0.810008 | 0.195972 | 0 | 0.453815 | 0 | 0.02008 | 0.378009 | 0.045221 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060241 | false | 0 | 0.028112 | 0 | 0.092369 | 0.128514 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
61edb2c25c99c318b707a55fcdfcaaf007b47999 | 4,780 | py | Python | test/api/mutations/test_check_repository_by_commit.py | uliana291/the-zoo | a15a4162c39553abe91224f4feff5d3b66f9413e | [
"MIT"
] | null | null | null | test/api/mutations/test_check_repository_by_commit.py | uliana291/the-zoo | a15a4162c39553abe91224f4feff5d3b66f9413e | [
"MIT"
] | null | null | null | test/api/mutations/test_check_repository_by_commit.py | uliana291/the-zoo | a15a4162c39553abe91224f4feff5d3b66f9413e | [
"MIT"
] | null | null | null | import pytest
from zoo.auditing.models import Issue
from zoo.auditing.check_discovery import Effort, Kind, Severity
pytestmark = pytest.mark.django_db
@pytest.fixture
def scenario(mocker, repository_factory, issue_factory, check_factory, fake_path):
owner, name, sha = "games", "lemmings", "GINLNNIIJL"
repo... | 34.142857 | 88 | 0.604393 | 526 | 4,780 | 5.385932 | 0.19962 | 0.039534 | 0.022944 | 0.028239 | 0.43911 | 0.326509 | 0.310272 | 0.222379 | 0.163784 | 0.163784 | 0 | 0.000826 | 0.240167 | 4,780 | 139 | 89 | 34.388489 | 0.779185 | 0.011297 | 0 | 0.192661 | 0 | 0 | 0.262389 | 0.042567 | 0 | 0 | 0 | 0 | 0.045872 | 1 | 0.045872 | false | 0 | 0.027523 | 0 | 0.073395 | 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 |
61f65e88bb74b76264401d01893c2004742b5044 | 1,919 | py | Python | build.py | micklenguyen/hw2-scripting | 3603a2c4d7518890eacc4f071f347f90dd295ee6 | [
"MIT"
] | null | null | null | build.py | micklenguyen/hw2-scripting | 3603a2c4d7518890eacc4f071f347f90dd295ee6 | [
"MIT"
] | null | null | null | build.py | micklenguyen/hw2-scripting | 3603a2c4d7518890eacc4f071f347f90dd295ee6 | [
"MIT"
] | null | null | null | def main():
content_pages = auto_populate_content_files()
for page in content_pages:
filepath = page['filepath']
output = page['output']
title = page['title']
# Read content of html pages
content = open(filepath).read()
# Invoke function to return finished_page (base.html with filled in content)
fi... | 24.922078 | 97 | 0.730589 | 281 | 1,919 | 4.790036 | 0.266904 | 0.053492 | 0.035661 | 0.042348 | 0.181278 | 0.142645 | 0.142645 | 0.142645 | 0.142645 | 0.142645 | 0 | 0.000628 | 0.16988 | 1,919 | 77 | 98 | 24.922078 | 0.844319 | 0.364773 | 0 | 0.05 | 0 | 0 | 0.077944 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.075 | 0 | 0.225 | 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 |
61f94a0bece7deb448882a08f6a458e64ef93c8e | 35,113 | py | Python | src/jote/jote.py | InformaticsMatters/data-manager-job-tester | f8915e005f16685d159535a2455628eb1d7ac518 | [
"MIT"
] | null | null | null | src/jote/jote.py | InformaticsMatters/data-manager-job-tester | f8915e005f16685d159535a2455628eb1d7ac518 | [
"MIT"
] | 1 | 2022-01-28T10:06:28.000Z | 2022-01-31T14:51:52.000Z | src/jote/jote.py | InformaticsMatters/data-manager-job-tester | f8915e005f16685d159535a2455628eb1d7ac518 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""Informatics Matters Job Tester (JOTE).
Get help running this utility with 'jote --help'
"""
import argparse
import os
import shutil
import stat
from stat import S_IRGRP, S_IRUSR, S_IWGRP, S_IWUSR
import subprocess
import sys
from typing import Any, Dict, List, Optional, Tuple
from munch impo... | 35.183367 | 100 | 0.584741 | 4,265 | 35,113 | 4.637749 | 0.124033 | 0.034176 | 0.012235 | 0.016987 | 0.277199 | 0.207634 | 0.14909 | 0.108443 | 0.088827 | 0.076188 | 0 | 0.003386 | 0.318771 | 35,113 | 997 | 101 | 35.218656 | 0.823537 | 0.183123 | 0 | 0.245199 | 0 | 0 | 0.196027 | 0.023108 | 0 | 0 | 0 | 0 | 0.023634 | 1 | 0.023634 | false | 0.013294 | 0.022157 | 0 | 0.100443 | 0.134417 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
61f9d61ddf16dfe982de5cd443717f5e39b05a82 | 7,027 | py | Python | transforms/waveform.py | koukyo1994/kaggle-rfcx | c3573d014d99312b58882e7b939de6c1055129b1 | [
"MIT"
] | 6 | 2021-02-18T05:18:17.000Z | 2022-02-19T02:49:32.000Z | transforms/waveform.py | koukyo1994/kaggle-rfcx | c3573d014d99312b58882e7b939de6c1055129b1 | [
"MIT"
] | null | null | null | transforms/waveform.py | koukyo1994/kaggle-rfcx | c3573d014d99312b58882e7b939de6c1055129b1 | [
"MIT"
] | 2 | 2021-02-18T11:31:50.000Z | 2022-02-19T02:49:07.000Z | import colorednoise as cn
import librosa
import numpy as np
def get_waveform_transforms(config: dict, phase: str):
transforms = config.get("transforms")
if transforms is None:
return None
else:
if transforms[phase] is None:
return None
trns_list = []
for trns_co... | 31.231111 | 104 | 0.605237 | 974 | 7,027 | 4.106776 | 0.13347 | 0.06875 | 0.028 | 0.056 | 0.56375 | 0.53925 | 0.47825 | 0.45725 | 0.414 | 0.414 | 0 | 0.019654 | 0.268678 | 7,027 | 224 | 105 | 31.370536 | 0.758708 | 0 | 0 | 0.479042 | 0 | 0 | 0.028889 | 0 | 0 | 0 | 0 | 0 | 0.011976 | 1 | 0.173653 | false | 0 | 0.017964 | 0.011976 | 0.407186 | 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 |
61fa91668b7e930a4d4c6429b8910bfdb88b86e5 | 1,095 | py | Python | plyplus/test/test_trees.py | rubycandy/test-plyplus | ced9377e6c26dcf308dd9f480411af9c8dbe9c56 | [
"MIT"
] | 169 | 2015-01-16T12:48:23.000Z | 2021-12-09T16:00:13.000Z | plyplus/test/test_trees.py | rubycandy/test-plyplus | ced9377e6c26dcf308dd9f480411af9c8dbe9c56 | [
"MIT"
] | 26 | 2015-01-23T16:30:28.000Z | 2018-07-07T09:14:18.000Z | plyplus/test/test_trees.py | rubycandy/test-plyplus | ced9377e6c26dcf308dd9f480411af9c8dbe9c56 | [
"MIT"
] | 53 | 2015-01-22T20:20:10.000Z | 2021-12-05T13:39:57.000Z | from __future__ import absolute_import
import unittest
import logging
import copy
import pickle
from plyplus.plyplus import STree
logging.basicConfig(level=logging.INFO)
class TestSTrees(unittest.TestCase):
def setUp(self):
self.tree1 = STree('a', [STree(x, y) for x, y in zip('bcd', 'xyz')])
def te... | 24.886364 | 76 | 0.613699 | 149 | 1,095 | 4.342282 | 0.315436 | 0.083462 | 0.098918 | 0.12983 | 0.293663 | 0.244204 | 0.139104 | 0.139104 | 0.139104 | 0.139104 | 0 | 0.012531 | 0.271233 | 1,095 | 43 | 77 | 25.465116 | 0.798246 | 0 | 0 | 0.272727 | 0 | 0 | 0.013699 | 0 | 0 | 0 | 0 | 0 | 0.212121 | 1 | 0.151515 | false | 0 | 0.181818 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
61fae1b5b671ac52f912549b4f9c186cb38b0495 | 1,563 | py | Python | misaligned.py | clean-code-craft-tcq-2/test-failer-in-py-yashaswin-mayya | 1861f2db11a508e9c1e2f7ce351d11d87c0c734c | [
"MIT"
] | null | null | null | misaligned.py | clean-code-craft-tcq-2/test-failer-in-py-yashaswin-mayya | 1861f2db11a508e9c1e2f7ce351d11d87c0c734c | [
"MIT"
] | null | null | null | misaligned.py | clean-code-craft-tcq-2/test-failer-in-py-yashaswin-mayya | 1861f2db11a508e9c1e2f7ce351d11d87c0c734c | [
"MIT"
] | null | null | null |
MAJOR_COLORS = ["White", "Red", "Black", "Yellow", "Violet"]
MINOR_COLORS = ["Blue", "Orange", "Green", "Brown", "Slate"]
def get_color_from_pair_number(pair_number):
zero_based_pair_number = pair_number - 1
major_index = zero_based_pair_number // len(MINOR_COLORS)
minor_index = zero_based_pair_number % ... | 36.348837 | 129 | 0.685861 | 237 | 1,563 | 4.122363 | 0.303797 | 0.139202 | 0.171955 | 0.065507 | 0.325486 | 0.28045 | 0.28045 | 0.18219 | 0.104401 | 0 | 0 | 0.021622 | 0.171465 | 1,563 | 42 | 130 | 37.214286 | 0.732819 | 0.060141 | 0 | 0.064516 | 0 | 0 | 0.209413 | 0.060027 | 0 | 0 | 0 | 0 | 0.032258 | 1 | 0.096774 | false | 0 | 0 | 0 | 0.129032 | 0.16129 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
61fe5553a131ad8494dec157c4505511e27beecb | 611 | py | Python | examples/embed_cmd.py | bentettmar/discord.py-self_embed | 4253ea7977b17972de2e15de3606a183f70b22b0 | [
"MIT"
] | 2 | 2022-03-31T04:06:05.000Z | 2022-03-31T16:39:40.000Z | examples/embed_cmd.py | bentettmar/discord.py-self_embed | 4253ea7977b17972de2e15de3606a183f70b22b0 | [
"MIT"
] | 3 | 2022-03-29T11:58:16.000Z | 2022-03-31T16:41:13.000Z | examples/embed_cmd.py | bentettmar/discord.py-self_embed | 4253ea7977b17972de2e15de3606a183f70b22b0 | [
"MIT"
] | null | null | null | import discord_self_embed
from discord.ext import commands
bot = commands.Bot(command_prefix=".", self_bot=True)
@bot.event
async def on_ready():
print("ready")
@bot.command(name="embed")
async def embed_cmd(ctx):
embed = discord_self_embed.Embed("discord.py-self_embed", description="A way for selfbots to se... | 33.944444 | 193 | 0.749591 | 97 | 611 | 4.57732 | 0.57732 | 0.081081 | 0.072072 | 0.081081 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007463 | 0.12275 | 611 | 17 | 194 | 35.941176 | 0.820896 | 0.129296 | 0 | 0 | 0 | 0 | 0.283019 | 0.039623 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 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 |
1101b9ca063e23e2fd57ae664425f377c0723f09 | 8,823 | py | Python | analysis.py | liunx/lmms | ea54f64934d90887a38446ef02ed2baed91548db | [
"MIT"
] | null | null | null | analysis.py | liunx/lmms | ea54f64934d90887a38446ef02ed2baed91548db | [
"MIT"
] | null | null | null | analysis.py | liunx/lmms | ea54f64934d90887a38446ef02ed2baed91548db | [
"MIT"
] | null | null | null | import re
import copy
from operator import itemgetter
import music21 as m21
class Core:
meter_len = 192
notes = {'C': 60, 'D': 62, 'E': 64, 'F': 65, 'G': 67, 'A': 69, 'B': 71}
percussion = {
35: 'AcousticBassDrum', 36: 'BassDrum1', 37: 'SideStick', 38: 'AcousticSnare',
39: 'HandClap', 40: ... | 33.804598 | 115 | 0.438286 | 999 | 8,823 | 3.744745 | 0.264264 | 0.028067 | 0.036354 | 0.027265 | 0.262229 | 0.221866 | 0.193264 | 0.139 | 0.109596 | 0.109596 | 0 | 0.050727 | 0.39227 | 8,823 | 260 | 116 | 33.934615 | 0.64696 | 0.017908 | 0 | 0.295652 | 0 | 0 | 0.129752 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069565 | false | 0 | 0.017391 | 0 | 0.152174 | 0.008696 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
11025303e524cbae387748d4c806d2a09276590a | 6,302 | py | Python | tests/server/utils.py | csadorf/aiida-optimade | 99ee1113cfc109a40a83bb43af8d07ce7e1601e6 | [
"MIT"
] | null | null | null | tests/server/utils.py | csadorf/aiida-optimade | 99ee1113cfc109a40a83bb43af8d07ce7e1601e6 | [
"MIT"
] | null | null | null | tests/server/utils.py | csadorf/aiida-optimade | 99ee1113cfc109a40a83bb43af8d07ce7e1601e6 | [
"MIT"
] | null | null | null | # pylint: disable=no-name-in-module,too-many-arguments
import json
import re
import typing
from urllib.parse import urlparse
import warnings
from requests import Response
from fastapi.testclient import TestClient
from pydantic import BaseModel
import pytest
from starlette import testclient
from optimade import __api... | 32.65285 | 86 | 0.60822 | 704 | 6,302 | 5.292614 | 0.261364 | 0.032206 | 0.045089 | 0.020934 | 0.31562 | 0.254697 | 0.214707 | 0.190553 | 0.164788 | 0.164788 | 0 | 0.005367 | 0.290384 | 6,302 | 192 | 87 | 32.822917 | 0.827818 | 0.125674 | 0 | 0.209459 | 0 | 0 | 0.100663 | 0.0265 | 0 | 0 | 0 | 0 | 0.033784 | 1 | 0.074324 | false | 0.006757 | 0.087838 | 0 | 0.256757 | 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 |
11026c0c5eee347310533201a00163d72346ee00 | 3,673 | py | Python | super_topic/main.py | susmote/WeiboTools | 659232b4525bcbedf350da1127d382ff6c6e9e71 | [
"MIT"
] | 3 | 2018-11-11T22:07:23.000Z | 2019-03-08T08:20:31.000Z | super_topic/main.py | susmote/WeiboTools | 659232b4525bcbedf350da1127d382ff6c6e9e71 | [
"MIT"
] | null | null | null | super_topic/main.py | susmote/WeiboTools | 659232b4525bcbedf350da1127d382ff6c6e9e71 | [
"MIT"
] | 1 | 2021-08-31T06:44:54.000Z | 2021-08-31T06:44:54.000Z | # -*- coding: utf-8 -*-
"""
Created on 2018/11/5
@author: susmote
"""
import time
import requests
import json
# 查看自己关注的超话
if __name__ == '__main__':
username = input("请输入用户名: ")
password = input("请输入密码: ")
login_url = "https://passport.weibo.cn/sso/login"
headers = {
"Referer": "https://... | 37.865979 | 118 | 0.58263 | 453 | 3,673 | 4.505519 | 0.267108 | 0.065164 | 0.053895 | 0.044586 | 0.302793 | 0.292994 | 0.231259 | 0.165605 | 0.079863 | 0.055855 | 0 | 0.018949 | 0.238497 | 3,673 | 97 | 119 | 37.865979 | 0.710762 | 0.024231 | 0 | 0.142857 | 0 | 0.02381 | 0.238109 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.047619 | 0.035714 | 0 | 0.035714 | 0.095238 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
11028d4ec017320409e77b44e5459cd4e2c1cd81 | 1,163 | py | Python | websupportsk_ddns/notifiers.py | JozefGalbicka/websupportsk-ddns | 8fe1408121dc5f14f42e6603d9a50bcaa5afabee | [
"MIT"
] | 2 | 2021-07-28T09:09:58.000Z | 2021-07-28T10:28:45.000Z | websupportsk_ddns/notifiers.py | JozefGalbicka/websupportsk-ddns | 8fe1408121dc5f14f42e6603d9a50bcaa5afabee | [
"MIT"
] | 1 | 2021-11-14T11:31:38.000Z | 2021-11-19T22:38:44.000Z | websupportsk_ddns/notifiers.py | JozefGalbicka/websupportsk-ddns | 8fe1408121dc5f14f42e6603d9a50bcaa5afabee | [
"MIT"
] | null | null | null | import requests
import logging
logger = logging.getLogger(__name__)
def send_notifications(notifiers, message):
for notifier in notifiers:
notifier.send_notification(message)
class Pushover:
def __init__(self, api_token, user_key):
self.api_token = api_token
self.user_key = user_key... | 29.075 | 65 | 0.618229 | 147 | 1,163 | 4.70068 | 0.285714 | 0.092619 | 0.069465 | 0.04631 | 0.416787 | 0.272069 | 0.147612 | 0.147612 | 0.147612 | 0.147612 | 0 | 0.001161 | 0.259673 | 1,163 | 40 | 66 | 29.075 | 0.801394 | 0 | 0 | 0.322581 | 0 | 0 | 0.216495 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16129 | false | 0 | 0.064516 | 0 | 0.290323 | 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 |
11070c63ba36e05b385352144090c398a2ed7415 | 15,806 | py | Python | code/plotting/plot_lsst.py | modichirag/21cm_cleaning | 1615fea4e2d617bb6ef00770a49698901227daa8 | [
"MIT"
] | 1 | 2019-08-27T10:05:41.000Z | 2019-08-27T10:05:41.000Z | code/plotting/plot_lsst.py | modichirag/21cm_cleaning | 1615fea4e2d617bb6ef00770a49698901227daa8 | [
"MIT"
] | null | null | null | code/plotting/plot_lsst.py | modichirag/21cm_cleaning | 1615fea4e2d617bb6ef00770a49698901227daa8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
#
# Plots the power spectra and Fourier-space biases for the HI.
#
import warnings
from mpi4py import MPI
rank = MPI.COMM_WORLD.rank
#warnings.filterwarnings("ignore")
if rank!=0: warnings.filterwarnings("ignore")
import numpy as np
import os, sys
import matplotlib.pyplot as plt
fro... | 41.704485 | 210 | 0.575161 | 2,619 | 15,806 | 3.412753 | 0.148148 | 0.012531 | 0.011748 | 0.016447 | 0.624636 | 0.571828 | 0.554486 | 0.535131 | 0.521369 | 0.510517 | 0 | 0.06259 | 0.211565 | 15,806 | 378 | 211 | 41.814815 | 0.65463 | 0.067696 | 0 | 0.337165 | 0 | 0.084291 | 0.208203 | 0.156901 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019157 | false | 0.003831 | 0.068966 | 0 | 0.095785 | 0.022989 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1107964a13a8c587e9dedd0f0fb6a2581ecb0887 | 3,999 | py | Python | ndfinance/strategies/basic/__init__.py | gomtinQQ/NDFinance | 522bf0486e5f5337c522d0e34b088f386c7c3290 | [
"MIT"
] | 35 | 2020-09-26T16:31:45.000Z | 2022-01-01T12:12:21.000Z | ndfinance/strategies/basic/__init__.py | gomtinQQ/NDFinance | 522bf0486e5f5337c522d0e34b088f386c7c3290 | [
"MIT"
] | 1 | 2020-09-27T08:54:23.000Z | 2020-09-27T08:54:23.000Z | ndfinance/strategies/basic/__init__.py | gomtinQQ/NDFinance | 522bf0486e5f5337c522d0e34b088f386c7c3290 | [
"MIT"
] | 8 | 2020-10-06T23:51:22.000Z | 2022-02-16T12:11:10.000Z | from ndfinance.strategies import Strategy, PeriodicRebalancingStrategy
from ndfinance.brokers.base import order
from ndfinance.brokers.base.order import *
from ndfinance.strategies.utils import *
class SameWeightBuyHold(Strategy):
def __init__(self):
super(SameWeightBuyHold, self).__init__()
self.... | 44.932584 | 127 | 0.68017 | 473 | 3,999 | 5.490486 | 0.17759 | 0.100116 | 0.073931 | 0.053908 | 0.363496 | 0.253369 | 0.210243 | 0.182518 | 0.182518 | 0.182518 | 0 | 0.004147 | 0.216054 | 3,999 | 88 | 128 | 45.443182 | 0.824242 | 0 | 0 | 0.132353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.058824 | 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 |
110af0aa9cc468fbee2f90b29540e3ee61251308 | 1,975 | py | Python | daemon.py | hletrd/TRIPOL_polarizer | 124d202bf876635bd402306fb5d7572fd45ce599 | [
"MIT"
] | null | null | null | daemon.py | hletrd/TRIPOL_polarizer | 124d202bf876635bd402306fb5d7572fd45ce599 | [
"MIT"
] | null | null | null | daemon.py | hletrd/TRIPOL_polarizer | 124d202bf876635bd402306fb5d7572fd45ce599 | [
"MIT"
] | null | null | null | from flask import Flask, render_template, send_from_directory
import serial
import serial.tools.list_ports
import threading
app = Flask(__name__)
def run_server():
app.run(host=bind_ip, debug=True, port=bind_port)
@app.route('/')
def index():
return render_template('_basic.html', ports=serialhandler.get_port_list(... | 23.511905 | 75 | 0.698228 | 301 | 1,975 | 4.401993 | 0.27907 | 0.075472 | 0.013585 | 0.030189 | 0.083019 | 0.083019 | 0.05283 | 0.05283 | 0 | 0 | 0 | 0.025088 | 0.132152 | 1,975 | 84 | 76 | 23.511905 | 0.747958 | 0 | 0 | 0.092308 | 0 | 0 | 0.083502 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.184615 | false | 0 | 0.061538 | 0.061538 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
110ec99e58e5ce9d328a5556af8ee117cc5ebd9a | 3,304 | py | Python | src/utils.py | senadkurtisi/neural-style-transfer | 0048d8b184959de095f0821f63205c8ce3ff2dff | [
"MIT"
] | null | null | null | src/utils.py | senadkurtisi/neural-style-transfer | 0048d8b184959de095f0821f63205c8ce3ff2dff | [
"MIT"
] | null | null | null | src/utils.py | senadkurtisi/neural-style-transfer | 0048d8b184959de095f0821f63205c8ce3ff2dff | [
"MIT"
] | null | null | null | from PIL import Image
import numpy as np
import torch
import torchvision.transforms.transforms as transforms
import os
from config import cfg
def preprocess_img(img_path):
""" Loads the desired image and prepares it
for VGG19 model.
Parameters:
img_path: path to the image
Returns:
... | 29.765766 | 106 | 0.553874 | 408 | 3,304 | 4.414216 | 0.384804 | 0.031094 | 0.02221 | 0.051083 | 0.161022 | 0.161022 | 0.122154 | 0.122154 | 0.122154 | 0.122154 | 0 | 0.041265 | 0.339891 | 3,304 | 110 | 107 | 30.036364 | 0.784503 | 0.251211 | 0 | 0.181818 | 0 | 0 | 0.042979 | 0 | 0 | 0 | 0 | 0 | 0.036364 | 1 | 0.090909 | false | 0.018182 | 0.109091 | 0 | 0.290909 | 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 |