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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a3383085131297da62a18b0b84d4d93e73f72236 | 1,592 | py | Python | main.py | xfgryujk/blivetts | 9694b32775c2b28fd98a75545c96394ff13325f5 | [
"MIT"
] | 8 | 2019-11-18T14:33:57.000Z | 2021-09-07T01:41:41.000Z | main.py | xfgryujk/blivetts | 9694b32775c2b28fd98a75545c96394ff13325f5 | [
"MIT"
] | null | null | null | main.py | xfgryujk/blivetts | 9694b32775c2b28fd98a75545c96394ff13325f5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import asyncio
import pyttsx3
import translate
import blivedm.blivedm as blivedm
class BLiveTts(blivedm.BLiveClient):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
# 翻译
self._translator = translate.Translator(from_lang='zh', to_lang='ja')... | 27.929825 | 126 | 0.649497 | 199 | 1,592 | 4.869347 | 0.417085 | 0.057792 | 0.047472 | 0.026832 | 0.059856 | 0.059856 | 0.059856 | 0 | 0 | 0 | 0 | 0.007299 | 0.225503 | 1,592 | 56 | 127 | 28.428571 | 0.778589 | 0.122487 | 0 | 0 | 0 | 0 | 0.090909 | 0.059885 | 0 | 0 | 0 | 0.017857 | 0 | 1 | 0.129032 | false | 0 | 0.129032 | 0 | 0.322581 | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a33d44ea50e938d692bf5521c33c70a0e5a1a8b3 | 1,505 | py | Python | src/data/utils.py | HemuManju/integrated-gradients-weighted-ica | 01112419a0d1242c24ea3f35aa6fb577872489c1 | [
"MIT"
] | null | null | null | src/data/utils.py | HemuManju/integrated-gradients-weighted-ica | 01112419a0d1242c24ea3f35aa6fb577872489c1 | [
"MIT"
] | null | null | null | src/data/utils.py | HemuManju/integrated-gradients-weighted-ica | 01112419a0d1242c24ea3f35aa6fb577872489c1 | [
"MIT"
] | null | null | null | import collections
from pathlib import Path
import deepdish as dd
import pandas as pd
def nested_dict():
return collections.defaultdict(nested_dict)
def save_dataset(path, dataset, save):
"""save the dataset.
Parameters
----------
path : str
path to save.
dataset : dataset
... | 18.580247 | 60 | 0.609302 | 190 | 1,505 | 4.615789 | 0.242105 | 0.054732 | 0.054732 | 0.086659 | 0.443558 | 0.443558 | 0.391106 | 0.327252 | 0.327252 | 0.249715 | 0 | 0.006369 | 0.269767 | 1,505 | 80 | 61 | 18.8125 | 0.791629 | 0.249834 | 0 | 0.290323 | 0 | 0 | 0.017787 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.193548 | false | 0 | 0.129032 | 0.032258 | 0.516129 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a3421ac7eaff81c8f0e2818c45edd0febd4af086 | 2,214 | py | Python | autokeras/constant.py | chosungsu/autokeras | ab0b10a003b65093bc4b756540e9a865a1f625a5 | [
"MIT"
] | 1 | 2019-04-16T00:28:02.000Z | 2019-04-16T00:28:02.000Z | autokeras/constant.py | chosungsu/autokeras | ab0b10a003b65093bc4b756540e9a865a1f625a5 | [
"MIT"
] | 6 | 2020-01-28T23:06:50.000Z | 2022-02-10T01:19:01.000Z | autokeras/constant.py | chosungsu/autokeras | ab0b10a003b65093bc4b756540e9a865a1f625a5 | [
"MIT"
] | 2 | 2019-04-24T05:52:50.000Z | 2022-02-19T13:30:21.000Z | from collections import namedtuple
GoogleDriveFile = namedtuple('GoogleDriveFile', ['google_drive_id', 'local_name'])
class Constant:
BACKEND = 'torch'
# Data
VALIDATION_SET_SIZE = 0.08333
CUTOUT_HOLES = 1
CUTOUT_RATIO = 0.5
# Searcher
MAX_MODEL_NUM = 1000
BETA = 2.576
KERNEL_LAM... | 24.6 | 99 | 0.69196 | 282 | 2,214 | 5.067376 | 0.492908 | 0.046186 | 0.090973 | 0.097971 | 0.137859 | 0.117565 | 0.117565 | 0 | 0 | 0 | 0 | 0.074662 | 0.231707 | 2,214 | 89 | 100 | 24.876404 | 0.765432 | 0.081752 | 0 | 0 | 0 | 0 | 0.138119 | 0.065347 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.017544 | 0 | 0.912281 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a34278036738d9bb79cb7437246ff6e9d2723bfd | 6,640 | py | Python | dfvfs/vfs/file_entry.py | Defense-Cyber-Crime-Center/dfvfs | da2ccbc4c989ced5ad651057bd8f5a4b18af6d37 | [
"Apache-2.0"
] | 2 | 2016-02-18T12:46:26.000Z | 2022-03-13T03:05:05.000Z | dfvfs/vfs/file_entry.py | Defense-Cyber-Crime-Center/dfvfs | da2ccbc4c989ced5ad651057bd8f5a4b18af6d37 | [
"Apache-2.0"
] | null | null | null | dfvfs/vfs/file_entry.py | Defense-Cyber-Crime-Center/dfvfs | da2ccbc4c989ced5ad651057bd8f5a4b18af6d37 | [
"Apache-2.0"
] | 5 | 2016-12-18T08:05:39.000Z | 2019-11-19T21:18:00.000Z | # -*- coding: utf-8 -*-
"""The Virtual File System (VFS) file entry object interface.
The file entry can be various file system elements like a regular file,
a directory or file system metadata.
"""
import abc
from dfvfs.resolver import resolver
class Directory(object):
"""Class that implements the VFS directory... | 31.619048 | 78 | 0.698795 | 900 | 6,640 | 4.932222 | 0.16 | 0.066907 | 0.09777 | 0.04866 | 0.4287 | 0.362469 | 0.348277 | 0.317189 | 0.255913 | 0.2451 | 0 | 0.000571 | 0.208886 | 6,640 | 209 | 79 | 31.770335 | 0.84447 | 0.374849 | 0 | 0.290909 | 0 | 0 | 0.014559 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.245455 | false | 0 | 0.018182 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a343e5e26958eb671ec5ae9a088216f1178fbf00 | 321 | py | Python | ca_qc_saguenay/__init__.py | tor-councilmatic/scrapers-ca | 821be4ccfc4f5aef3f8272b626b031e225aef7ee | [
"MIT"
] | 2 | 2017-06-02T09:41:28.000Z | 2017-11-17T15:27:07.000Z | ca_qc_saguenay/__init__.py | tor-councilmatic/scrapers-ca | 821be4ccfc4f5aef3f8272b626b031e225aef7ee | [
"MIT"
] | null | null | null | ca_qc_saguenay/__init__.py | tor-councilmatic/scrapers-ca | 821be4ccfc4f5aef3f8272b626b031e225aef7ee | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from utils import CanadianJurisdiction
class Saguenay(CanadianJurisdiction):
classification = 'legislature'
division_id = 'ocd-division/country:ca/csd:2494068'
division_name = 'Saguenay'
name = 'Conseil municipal de Saguenay'
url = 'http://ville.saguenay.ca'... | 29.181818 | 55 | 0.757009 | 35 | 321 | 6.742857 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02583 | 0.155763 | 321 | 10 | 56 | 32.1 | 0.845018 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 0.109034 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a34b825f7ac83c2072c1db6891f7299a22a32f4a | 7,888 | py | Python | tests/components/mqtt/test_camera.py | pcaston/Open-Peer-Power | 81805d455c548e0f86b0f7fedc793b588b2afdfd | [
"Apache-2.0"
] | null | null | null | tests/components/mqtt/test_camera.py | pcaston/Open-Peer-Power | 81805d455c548e0f86b0f7fedc793b588b2afdfd | [
"Apache-2.0"
] | null | null | null | tests/components/mqtt/test_camera.py | pcaston/Open-Peer-Power | 81805d455c548e0f86b0f7fedc793b588b2afdfd | [
"Apache-2.0"
] | 1 | 2019-04-24T14:10:08.000Z | 2019-04-24T14:10:08.000Z | """The tests for mqtt camera component."""
import json
from unittest.mock import ANY
from openpeerpower.components import camera, mqtt
from openpeerpower.components.mqtt.discovery import async_start
from openpeerpower.setup import async_setup_component
from tests.common import (
MockConfigEntry,
async_fire_mq... | 31.935223 | 80 | 0.619549 | 938 | 7,888 | 5.012793 | 0.135394 | 0.035091 | 0.033177 | 0.051042 | 0.740536 | 0.693109 | 0.656316 | 0.633986 | 0.621225 | 0.61761 | 0 | 0.008409 | 0.246197 | 7,888 | 246 | 81 | 32.065041 | 0.782375 | 0.004564 | 0 | 0.603175 | 0 | 0 | 0.198981 | 0.037409 | 0 | 0 | 0 | 0 | 0.179894 | 1 | 0 | false | 0 | 0.031746 | 0 | 0.031746 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a350d7912a125a213c1da0b686084c88e8831c6b | 3,372 | py | Python | c2vqa-verbs/dataset/dataset-editable.py | andeeptoor/qar-qae | 60d61b0c6b5686dda471c727227cee2cc365f836 | [
"Apache-2.0"
] | null | null | null | c2vqa-verbs/dataset/dataset-editable.py | andeeptoor/qar-qae | 60d61b0c6b5686dda471c727227cee2cc365f836 | [
"Apache-2.0"
] | null | null | null | c2vqa-verbs/dataset/dataset-editable.py | andeeptoor/qar-qae | 60d61b0c6b5686dda471c727227cee2cc365f836 | [
"Apache-2.0"
] | 2 | 2018-06-09T01:05:18.000Z | 2021-02-16T06:17:32.000Z | import pandas as pd
import os
import spacy
from spacy.symbols import VERB, NOUN
import random
from pattern.en import conjugate, PROGRESSIVE, INDICATIVE
from utils import read_json
from common import save_data
print "Loading feature extractors..."
nlp = spacy.load('en')
dataset_dir = '/sb-personal/cvqa/data/visual-gen... | 37.88764 | 119 | 0.755042 | 462 | 3,372 | 5.225108 | 0.28355 | 0.04971 | 0.028998 | 0.02237 | 0.214167 | 0.145402 | 0.097349 | 0.056752 | 0.041425 | 0.041425 | 0 | 0.011166 | 0.096975 | 3,372 | 88 | 120 | 38.318182 | 0.781609 | 0.017497 | 0 | 0 | 0 | 0.044118 | 0.279021 | 0.108827 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.117647 | null | null | 0.029412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a356309ca8fd005a73aae82b3f3391cb1d95d9a9 | 279 | py | Python | tutorial/de.digits.mg/graph.py | matomatical/memograph | 0560e246cc9485c0d1792836d4a52db65a3354ad | [
"MIT"
] | 13 | 2020-11-26T07:23:16.000Z | 2022-02-20T05:46:34.000Z | tutorial/de.digits.mg/graph.py | matomatical/memograph | 0560e246cc9485c0d1792836d4a52db65a3354ad | [
"MIT"
] | null | null | null | tutorial/de.digits.mg/graph.py | matomatical/memograph | 0560e246cc9485c0d1792836d4a52db65a3354ad | [
"MIT"
] | 1 | 2021-02-19T08:49:24.000Z | 2021-02-19T08:49:24.000Z | from mg.graph import Node
D = ['null','eins','zwei','drei','vier','fünf','sechs','sieben','acht','neun']
def graph():
for i, n in enumerate(D):
yield (
Node(i, speak_str=i, speak_voice="en"),
Node(n, speak_str=n, speak_voice="de"),
)
| 27.9 | 78 | 0.541219 | 41 | 279 | 3.585366 | 0.682927 | 0.081633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.243728 | 279 | 9 | 79 | 31 | 0.696682 | 0 | 0 | 0 | 0 | 0 | 0.168459 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a373d1e3875b76e042a791db1927c66606b0d748 | 30,865 | py | Python | extractor_de_aspectos/tests/extractor/test_extractor_de_aspectos.py | XrossFox/maquina-de-aspectos | e124167154cac2355278f309e2b3153e723a8c47 | [
"MIT"
] | null | null | null | extractor_de_aspectos/tests/extractor/test_extractor_de_aspectos.py | XrossFox/maquina-de-aspectos | e124167154cac2355278f309e2b3153e723a8c47 | [
"MIT"
] | null | null | null | extractor_de_aspectos/tests/extractor/test_extractor_de_aspectos.py | XrossFox/maquina-de-aspectos | e124167154cac2355278f309e2b3153e723a8c47 | [
"MIT"
] | 1 | 2019-01-22T21:21:46.000Z | 2019-01-22T21:21:46.000Z | import sys
sys.path.append('../../extractor_de_aspectos')
import unittest
from extractor import extractor_de_aspectos
from cliente_corenlp import cliente_corenlp
from lematizador import lematizador
import nltk
class Test(unittest.TestCase):
def setUp(self):
self.ex = extractor_de_aspectos.ExtractorDeAsp... | 44.861919 | 803 | 0.560635 | 3,488 | 30,865 | 4.784117 | 0.130447 | 0.023371 | 0.034937 | 0.017978 | 0.675496 | 0.641338 | 0.625697 | 0.595853 | 0.561395 | 0.533769 | 0 | 0.011528 | 0.314272 | 30,865 | 688 | 804 | 44.861919 | 0.776896 | 0.161866 | 0 | 0.522427 | 0 | 0.010554 | 0.177838 | 0.00109 | 0 | 0 | 0 | 0.03343 | 0.092348 | 1 | 0.100264 | false | 0 | 0.015831 | 0 | 0.121372 | 0.005277 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a38137c1fae7ba5fb582d563ed793aeddaae3adb | 2,040 | py | Python | src/04_Mokaro/register_new_user.py | UltiRequiem/Basic-Selenium-whit-Python | 7f4339050f96931365429450053fea564ab92a50 | [
"MIT"
] | 3 | 2021-05-29T23:30:16.000Z | 2021-06-05T15:17:41.000Z | src/04_Mokaro/register_new_user.py | UltiRequiem/Basic-Selenium-whit-Python | 7f4339050f96931365429450053fea564ab92a50 | [
"MIT"
] | null | null | null | src/04_Mokaro/register_new_user.py | UltiRequiem/Basic-Selenium-whit-Python | 7f4339050f96931365429450053fea564ab92a50 | [
"MIT"
] | 2 | 2021-06-04T20:20:19.000Z | 2021-06-05T15:17:43.000Z | import unittest
from selenium import webdriver
from api_data_mock import ApiDataMock
class RegisterNewUser(unittest.TestCase):
def setUp(self):
self.driver = webdriver.Chrome(executable_path='./../chromedriver')
driver = self.driver
driver.implicitly_wait(10)
driver.maximize_windo... | 38.490566 | 104 | 0.669118 | 236 | 2,040 | 5.436441 | 0.338983 | 0.062354 | 0.106002 | 0.118472 | 0.190959 | 0.103663 | 0 | 0 | 0 | 0 | 0 | 0.003211 | 0.236765 | 2,040 | 52 | 105 | 39.230769 | 0.820809 | 0 | 0 | 0.04878 | 0 | 0 | 0.114706 | 0.023529 | 0 | 0 | 0 | 0 | 0.04878 | 1 | 0.073171 | false | 0.146341 | 0.073171 | 0 | 0.170732 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a3828aedaf58b1a782b106f6e1e1a5497ea59527 | 8,647 | py | Python | tests/test_edgeql_enums.py | sfermigier/edgedb | 13aff7004aa682777287157dea52642c374967e8 | [
"Apache-2.0"
] | 7,302 | 2018-05-10T18:36:31.000Z | 2022-03-31T17:49:36.000Z | tests/test_edgeql_enums.py | sfermigier/edgedb | 13aff7004aa682777287157dea52642c374967e8 | [
"Apache-2.0"
] | 1,602 | 2018-05-10T17:45:38.000Z | 2022-03-31T23:46:19.000Z | tests/test_edgeql_enums.py | sfermigier/edgedb | 13aff7004aa682777287157dea52642c374967e8 | [
"Apache-2.0"
] | 236 | 2018-05-13T14:15:29.000Z | 2022-03-29T19:39:19.000Z | #
# This source file is part of the EdgeDB open source project.
#
# Copyright 2019-present MagicStack Inc. and the EdgeDB authors.
#
# 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... | 30.12892 | 78 | 0.494044 | 860 | 8,647 | 4.783721 | 0.198837 | 0.070005 | 0.058337 | 0.092368 | 0.731162 | 0.718765 | 0.617404 | 0.569276 | 0.546427 | 0.44142 | 0 | 0.007488 | 0.413091 | 8,647 | 286 | 79 | 30.234266 | 0.803153 | 0.090667 | 0 | 0.568966 | 0 | 0 | 0.225862 | 0.029494 | 0 | 0 | 0 | 0 | 0.143678 | 1 | 0 | false | 0 | 0.017241 | 0 | 0.028736 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a3985b845aba2fc8c2e3107ca3c6d11760987455 | 356 | py | Python | backend/logger/migrations/0029_rename_httprequest_payload.py | AstroMatt/esa-subjective-time-perception | e23b09d1f13a8f51057178509beebd697789721f | [
"MIT"
] | 1 | 2017-02-25T10:32:01.000Z | 2017-02-25T10:32:01.000Z | backend/logger/migrations/0029_rename_httprequest_payload.py | AstroMatt/esa-subjective-time-perception | e23b09d1f13a8f51057178509beebd697789721f | [
"MIT"
] | 23 | 2017-10-02T13:59:20.000Z | 2017-12-27T21:32:17.000Z | backend/logger/migrations/0029_rename_httprequest_payload.py | AstroMatt/esa-time-perception | e23b09d1f13a8f51057178509beebd697789721f | [
"MIT"
] | null | null | null | # Generated by Django 4.0.4 on 2022-05-07 09:51
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('logger', '0028_remove_httprequest_api_version_and_more'),
]
operations = [
migrations.RenameModel(
old_name='HTTPRequest',
n... | 19.777778 | 67 | 0.623596 | 39 | 356 | 5.487179 | 0.820513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073359 | 0.272472 | 356 | 17 | 68 | 20.941176 | 0.752896 | 0.126404 | 0 | 0 | 1 | 0 | 0.220065 | 0.142395 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a3a27a757089970cb62cd0072c339f912dfe3469 | 456 | py | Python | oldp/apps/cases/migrations/0010_case_abstract.py | docsuleman/oldp | 8dcaa8e6e435794c872346b5014945ace885adb4 | [
"MIT"
] | 66 | 2018-05-07T12:34:39.000Z | 2022-02-23T20:14:24.000Z | oldp/apps/cases/migrations/0010_case_abstract.py | Justice-PLP-DHV/oldp | eadf235bb0925453d9a5b81963a0ce53afeb17fd | [
"MIT"
] | 68 | 2018-06-11T16:13:17.000Z | 2022-02-10T08:03:26.000Z | oldp/apps/cases/migrations/0010_case_abstract.py | Justice-PLP-DHV/oldp | eadf235bb0925453d9a5b81963a0ce53afeb17fd | [
"MIT"
] | 15 | 2018-06-23T19:41:13.000Z | 2021-08-18T08:21:49.000Z | # Generated by Django 2.1.1 on 2018-09-18 08:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cases', '0009_auto_20180430_1225'),
]
operations = [
migrations.AddField(
model_name='case',
name='abstract',
... | 24 | 124 | 0.625 | 52 | 456 | 5.384615 | 0.807692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091988 | 0.260965 | 456 | 18 | 125 | 25.333333 | 0.738872 | 0.098684 | 0 | 0 | 1 | 0 | 0.224939 | 0.056235 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a3a29fab2b8510924f14dc053b1c7302e72f9303 | 9,774 | py | Python | tests/connectors/mock/test_mockdata.py | gvasold/papilotte | 7683da0a56daf77450f962caaf58b7cfe3acf408 | [
"Apache-2.0"
] | 3 | 2019-10-28T08:27:32.000Z | 2021-03-01T02:30:26.000Z | tests/connectors/mock/test_mockdata.py | gvasold/papilotte | 7683da0a56daf77450f962caaf58b7cfe3acf408 | [
"Apache-2.0"
] | null | null | null | tests/connectors/mock/test_mockdata.py | gvasold/papilotte | 7683da0a56daf77450f962caaf58b7cfe3acf408 | [
"Apache-2.0"
] | null | null | null | """Test creation of mock data.
"""
import datetime
from papilotte.connectors.mock import mockdata
def test_generate_person():
"Make sure generate_person() doesn not create more than 15 different persons."
num_of_different_objects = 15
generator = mockdata.generate_person(num_of_different_objects)
o... | 34.174825 | 88 | 0.600368 | 1,336 | 9,774 | 4.290419 | 0.172904 | 0.020935 | 0.039079 | 0.033147 | 0.449232 | 0.3791 | 0.253315 | 0.22889 | 0.22889 | 0.22889 | 0 | 0.107346 | 0.24514 | 9,774 | 285 | 89 | 34.294737 | 0.669558 | 0.120115 | 0 | 0.295652 | 1 | 0 | 0.304334 | 0.080257 | 0 | 0 | 0 | 0 | 0.221739 | 1 | 0.078261 | false | 0 | 0.008696 | 0 | 0.091304 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6e569466288799d56769c2fa89aec11ea55de387 | 7,588 | py | Python | sdk/python/pulumi_spotinst/aws/ocean.py | 346/pulumi-spotinst | 7a9805f2f5ce96174c8122225772baffb87252c3 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2019-06-28T00:48:35.000Z | 2019-06-28T00:48:35.000Z | sdk/python/pulumi_spotinst/aws/ocean.py | 346/pulumi-spotinst | 7a9805f2f5ce96174c8122225772baffb87252c3 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2019-12-10T22:44:29.000Z | 2019-12-10T22:44:29.000Z | sdk/python/pulumi_spotinst/aws/ocean.py | 346/pulumi-spotinst | 7a9805f2f5ce96174c8122225772baffb87252c3 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2019-07-21T11:19:13.000Z | 2019-07-21T11:19:13.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import json
import warnings
import pulumi
import pulumi.runtime
from .. import utilities, tables
class Ocean(pulumi.CustomResource):
... | 41.23913 | 436 | 0.6903 | 967 | 7,588 | 5.172699 | 0.190279 | 0.043982 | 0.060776 | 0.026589 | 0.462415 | 0.394642 | 0.37585 | 0.319472 | 0.305878 | 0.291483 | 0 | 0.002555 | 0.226278 | 7,588 | 183 | 437 | 41.464481 | 0.849429 | 0.298629 | 0 | 0 | 1 | 0 | 0.153952 | 0.013721 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042254 | false | 0 | 0.070423 | 0.028169 | 0.422535 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6e575e68acf50d650dd29e127937dd9f1b78bf6a | 1,464 | py | Python | init.py | yuryyu/SmartHome | f47825eeed030991e2ce1419690129f14d151439 | [
"MIT"
] | null | null | null | init.py | yuryyu/SmartHome | f47825eeed030991e2ce1419690129f14d151439 | [
"MIT"
] | null | null | null | init.py | yuryyu/SmartHome | f47825eeed030991e2ce1419690129f14d151439 | [
"MIT"
] | 1 | 2020-12-09T20:07:48.000Z | 2020-12-09T20:07:48.000Z | # configuration module
import socket
nb=1 # 0- HIT-"139.162.222.115", 1 - open HiveMQ - broker.hivemq.com
brokers=[str(socket.gethostbyname('vmm1.saaintertrade.com')), str(socket.gethostbyname('broker.hivemq.com')),"18 .194.176.210"]
ports=['80','1883','1883']
usernames = ['','',''] # should be modified for HIT
passw... | 25.684211 | 127 | 0.692623 | 233 | 1,464 | 4.23176 | 0.484979 | 0.030426 | 0.030426 | 0.03854 | 0.196755 | 0.15213 | 0.15213 | 0.099391 | 0.099391 | 0 | 0 | 0.053968 | 0.139344 | 1,464 | 57 | 128 | 25.684211 | 0.728571 | 0.460383 | 0 | 0.258065 | 0 | 0 | 0.149803 | 0.057819 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.096774 | 0.032258 | 0 | 0.032258 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6e5cca7b4903459188938e347ff2f3edef3d7c9c | 8,038 | py | Python | image_styles/views.py | fotorius/django-image-styles | 29680851faf413c14b8b3e78c651725ce1e9c071 | [
"BSD-2-Clause"
] | null | null | null | image_styles/views.py | fotorius/django-image-styles | 29680851faf413c14b8b3e78c651725ce1e9c071 | [
"BSD-2-Clause"
] | null | null | null | image_styles/views.py | fotorius/django-image-styles | 29680851faf413c14b8b3e78c651725ce1e9c071 | [
"BSD-2-Clause"
] | null | null | null | from django.shortcuts import render, HttpResponse, get_object_or_404
from django.http import Http404
from django.utils.decorators import method_decorator
from django.contrib.auth.decorators import login_required
from django.contrib.admin.views.decorators import staff_member_required
from django.urls import reverse,reve... | 32.152 | 95 | 0.625031 | 941 | 8,038 | 5.108395 | 0.126461 | 0.02746 | 0.025172 | 0.023299 | 0.531309 | 0.468067 | 0.436031 | 0.34533 | 0.256085 | 0.229457 | 0 | 0.003696 | 0.259393 | 8,038 | 249 | 96 | 32.281125 | 0.803796 | 0 | 0 | 0.463415 | 0 | 0 | 0.094563 | 0.02924 | 0 | 0 | 0 | 0 | 0 | 1 | 0.146341 | false | 0.009756 | 0.073171 | 0.019512 | 0.546341 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6e68d83d3216419a43d8743d749dc9ffd3060494 | 1,343 | py | Python | Test/FunctionalTests/LegacyTests/FsmEditorLegacyTestScripts/TestGetBounds.py | migueldeicaza/ATF | f8b4c53ce2d7d544fd1a2faa722b2024be4ccea3 | [
"Apache-2.0"
] | 1 | 2021-07-07T10:41:27.000Z | 2021-07-07T10:41:27.000Z | Test/FunctionalTests/LegacyTests/FsmEditorLegacyTestScripts/TestGetBounds.py | gamebytes/ATF | 8af69110600a853f2763da80f93b92eaf4af5064 | [
"Apache-2.0"
] | null | null | null | Test/FunctionalTests/LegacyTests/FsmEditorLegacyTestScripts/TestGetBounds.py | gamebytes/ATF | 8af69110600a853f2763da80f93b92eaf4af5064 | [
"Apache-2.0"
] | null | null | null | #Copyright (c) 2014 Sony Computer Entertainment America LLC. See License.txt.
import System.Xml
import Scea.Dom
import Test
#create new document
print editor
fsmDocument = atfFile.OpenNewDocument(editor)
fsmDocument.CircuitControl.Style.SnapToGrid = False
#create 2 states
namespace = r'http://www.scea.com... | 38.371429 | 88 | 0.787789 | 160 | 1,343 | 6.6125 | 0.525 | 0.102079 | 0.147448 | 0.130435 | 0.242911 | 0.172968 | 0 | 0 | 0 | 0 | 0 | 0.026778 | 0.110201 | 1,343 | 35 | 89 | 38.371429 | 0.857741 | 0.156366 | 0 | 0 | 0 | 0 | 0.131627 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.130435 | null | null | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6e6c704ce3dd5ff164e16736ec3aa22702a2b2ab | 3,232 | py | Python | python/frame.py | ramity/apexcv | f3da9bd8f9b7c7cbc26d04011cfa1a4af7381ed7 | [
"Unlicense"
] | 13 | 2019-04-16T15:39:30.000Z | 2022-02-23T20:59:48.000Z | python/frame.py | ramity/apexcv | f3da9bd8f9b7c7cbc26d04011cfa1a4af7381ed7 | [
"Unlicense"
] | 10 | 2019-04-26T23:41:00.000Z | 2019-04-28T01:14:34.000Z | python/frame.py | ramity/apexcv | f3da9bd8f9b7c7cbc26d04011cfa1a4af7381ed7 | [
"Unlicense"
] | null | null | null | import os
import numpy as np
class Frame:
path = ""
frameNumber = 1
image
cols = 0
rows = 0
# default configured opencv settings
simpleBlurAmount = 25
thresholdType = cv2.THRESH_BINARY
bilateralKernelSize = 9
bilateralSigmaSpace = 9
countourRetrivalMode = cv2.RETR_LIST
... | 30.490566 | 139 | 0.611077 | 392 | 3,232 | 5.005102 | 0.214286 | 0.055046 | 0.01682 | 0.022426 | 0.409786 | 0.329256 | 0.237003 | 0.173802 | 0.173802 | 0.173802 | 0 | 0.039724 | 0.283416 | 3,232 | 105 | 140 | 30.780952 | 0.807427 | 0.01052 | 0 | 0.352941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.164706 | false | 0 | 0.023529 | 0.035294 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6e6caa32b56cfd95ce31e1c71e715faa8c6a5090 | 7,075 | py | Python | external_tools/src/main/python/images/CopyOnlyFilesSpecifiedInSolr.py | amccoy95/PhenotypeData | c06a2e32c148de3c7e8f8716e92247286f938891 | [
"Apache-2.0"
] | 1 | 2018-04-03T06:44:47.000Z | 2018-04-03T06:44:47.000Z | external_tools/src/main/python/images/CopyOnlyFilesSpecifiedInSolr.py | amccoy95/PhenotypeData | c06a2e32c148de3c7e8f8716e92247286f938891 | [
"Apache-2.0"
] | 655 | 2016-05-16T13:04:02.000Z | 2022-03-25T14:06:36.000Z | external_tools/src/main/python/images/CopyOnlyFilesSpecifiedInSolr.py | amccoy95/PhenotypeData | c06a2e32c148de3c7e8f8716e92247286f938891 | [
"Apache-2.0"
] | 6 | 2017-06-16T13:43:37.000Z | 2020-02-27T12:57:07.000Z | #!/usr/bin/python
"""this program gets the download_file_paths (http mousephenotype uris) from the experiment core and then downloads the images"""
import os
import requests
import json
import sys
import os.path
import sys
import argparse
import mysql.connector
import shutil
from common import splitString
from databas... | 48.458904 | 337 | 0.715901 | 809 | 7,075 | 6.126082 | 0.31026 | 0.03067 | 0.035513 | 0.043785 | 0.267353 | 0.24314 | 0.222357 | 0.222357 | 0.20682 | 0.160613 | 0 | 0.016753 | 0.181625 | 7,075 | 145 | 338 | 48.793103 | 0.839206 | 0.127774 | 0 | 0.038095 | 0 | 0.009524 | 0.252027 | 0.069174 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.038095 | 0.114286 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6e7d7bc53f1612c9c65901ae57b4df5eb4293f01 | 11,002 | py | Python | raster_info_car.py | leandromet/Geoprocessamento---Geoprocessing | 21e72dc6ac51d958a5570c35ea9db6f976c30a03 | [
"MIT"
] | 2 | 2016-05-29T14:46:54.000Z | 2022-03-31T13:05:52.000Z | raster_info_car.py | leandromet/Geoprocessamento---Geoprocessing | 21e72dc6ac51d958a5570c35ea9db6f976c30a03 | [
"MIT"
] | null | null | null | raster_info_car.py | leandromet/Geoprocessamento---Geoprocessing | 21e72dc6ac51d958a5570c35ea9db6f976c30a03 | [
"MIT"
] | 1 | 2016-06-22T12:18:41.000Z | 2016-06-22T12:18:41.000Z | #-------------------------------------------------------------------------------
# Name: Raster information from vector relations
# Purpose: Classify features of interest based on a raster with pixels that have classification values.
# Having a catalog in a vector layer with adresses of images ... | 45.841667 | 113 | 0.545719 | 1,133 | 11,002 | 5.225949 | 0.299206 | 0.037831 | 0.044925 | 0.066205 | 0.254518 | 0.217531 | 0.209424 | 0.108428 | 0.108428 | 0.090863 | 0 | 0.026915 | 0.344846 | 11,002 | 239 | 114 | 46.033473 | 0.794534 | 0.408017 | 0 | 0.090164 | 0 | 0 | 0.068306 | 0.018982 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.040984 | null | null | 0.090164 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6e8e4a2dde32cc63f7a411d6d56f5280279d5a33 | 5,222 | py | Python | skyline/functions/database/queries/related_to_metric_groups.py | datastreaming/skyline-1 | b02de2f40f8deb6ed1fddd0eace5b19a9b59d0de | [
"MIT-0",
"MIT"
] | 396 | 2015-01-08T12:47:53.000Z | 2022-03-23T10:46:50.000Z | skyline/functions/database/queries/related_to_metric_groups.py | datastreaming/skyline-1 | b02de2f40f8deb6ed1fddd0eace5b19a9b59d0de | [
"MIT-0",
"MIT"
] | 68 | 2015-03-16T13:42:36.000Z | 2022-01-07T10:10:45.000Z | skyline/functions/database/queries/related_to_metric_groups.py | datastreaming/skyline-1 | b02de2f40f8deb6ed1fddd0eace5b19a9b59d0de | [
"MIT-0",
"MIT"
] | 70 | 2015-01-28T13:03:19.000Z | 2022-02-11T03:31:04.000Z | """
Get anomalies for a metric id
"""
import logging
import traceback
from ast import literal_eval
from sqlalchemy.sql import select
from database import get_engine, engine_disposal, metric_group_table_meta
from functions.metrics.get_base_name_from_metric_id import get_base_name_from_metric_id
def related_to_metric_... | 58.674157 | 182 | 0.697817 | 690 | 5,222 | 4.844928 | 0.147826 | 0.129225 | 0.139097 | 0.188453 | 0.618606 | 0.574634 | 0.545618 | 0.5172 | 0.491774 | 0.491774 | 0 | 0.000243 | 0.212371 | 5,222 | 88 | 183 | 59.340909 | 0.812546 | 0.028725 | 0 | 0.222222 | 0 | 0 | 0.227174 | 0.056447 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013889 | false | 0 | 0.083333 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6e9045af389637641c68b504b536ceddaf7f106e | 10,908 | py | Python | mwbase/admin.py | uw-ictd/mwbase | 6a46b5c5459a6bb6e1ba84ea74f689da8efe9687 | [
"Apache-2.0"
] | 1 | 2021-07-17T00:18:06.000Z | 2021-07-17T00:18:06.000Z | mwbase/admin.py | akettel/mwbase | 873b4fe8038f16feba5273990b0eb2109f8f05c6 | [
"Apache-2.0"
] | 4 | 2017-08-31T17:09:53.000Z | 2018-11-28T06:01:00.000Z | mwbase/admin.py | akettel/mwbase | 873b4fe8038f16feba5273990b0eb2109f8f05c6 | [
"Apache-2.0"
] | 2 | 2018-09-17T22:06:16.000Z | 2021-07-17T00:18:09.000Z | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth.models import User
from django.http.response import HttpResponse
from django.http import JsonResponse
from django.template.response import SimpleTemplateResponse, TemplateResponse
from django.urls import path, reve... | 39.810219 | 242 | 0.685919 | 1,193 | 10,908 | 6.019279 | 0.204526 | 0.019496 | 0.021167 | 0.038992 | 0.311934 | 0.270993 | 0.240078 | 0.228241 | 0.191478 | 0.142599 | 0 | 0.001025 | 0.195361 | 10,908 | 273 | 243 | 39.956044 | 0.817136 | 0.025211 | 0 | 0.180412 | 0 | 0.005155 | 0.23561 | 0.080075 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061856 | false | 0.005155 | 0.134021 | 0.010309 | 0.57732 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6e9636a98f6c1a242f7d79fa5d89f4866c8639a0 | 2,231 | py | Python | Ver.1/Main.py | AbdAlazezAhmed/TilesPy | a7b2a14f35cf340e5b2448ea75da77dc81f521c5 | [
"MIT"
] | null | null | null | Ver.1/Main.py | AbdAlazezAhmed/TilesPy | a7b2a14f35cf340e5b2448ea75da77dc81f521c5 | [
"MIT"
] | null | null | null | Ver.1/Main.py | AbdAlazezAhmed/TilesPy | a7b2a14f35cf340e5b2448ea75da77dc81f521c5 | [
"MIT"
] | null | null | null | import numpy as np
from grabscreen import grab_screen
from directkeys import Up , Down , PressKey , ReleaseKey , Move1 , Move2
import time
from getkeys import key_check
import cv2
def main () :
while(True) :
#Resize the game window to about less than quarter of the screen at 1920*1080 resolution
... | 37.183333 | 97 | 0.50874 | 289 | 2,231 | 3.868512 | 0.228374 | 0.096601 | 0.078712 | 0.093918 | 0.492844 | 0.480322 | 0.480322 | 0.480322 | 0.480322 | 0.480322 | 0 | 0.202878 | 0.376961 | 2,231 | 59 | 98 | 37.813559 | 0.601439 | 0.085612 | 0 | 0.489796 | 0 | 0 | 0.002536 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020408 | false | 0 | 0.122449 | 0 | 0.142857 | 0.081633 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6e974bb32b851e4690871bfcfc0ff1a8c3561fcf | 337 | py | Python | src/backend/graph/api/urls.py | pawlaczyk/KTZgraph | 3707cd60a3ccfe90aee8ae5838e8e87b7879bdbe | [
"MIT"
] | null | null | null | src/backend/graph/api/urls.py | pawlaczyk/KTZgraph | 3707cd60a3ccfe90aee8ae5838e8e87b7879bdbe | [
"MIT"
] | null | null | null | src/backend/graph/api/urls.py | pawlaczyk/KTZgraph | 3707cd60a3ccfe90aee8ae5838e8e87b7879bdbe | [
"MIT"
] | null | null | null | from django.urls import path
from graph.api import views
urlpatterns = [
path('', views.GraphList.as_view(), name='graph-list'),
path('<int:pk>', views.GraphDetail.as_view(), name='graph-list'),
path('create/', views.GraphCreate.as_view(), name='graph-list'),
path('get_graphs/', views.get_graphs, name... | 33.7 | 69 | 0.682493 | 47 | 337 | 4.765957 | 0.446809 | 0.080357 | 0.133929 | 0.200893 | 0.308036 | 0.308036 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121662 | 337 | 10 | 70 | 33.7 | 0.756757 | 0 | 0 | 0 | 0 | 0 | 0.195266 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6e9a85e06a01f2ea074117db02a0e1763fae2379 | 3,145 | py | Python | tests/test_rigraph.py | tipech/OverlapGraph | 0aa132802f2e174608ce33c6bfc24ff14551bf4a | [
"MIT"
] | null | null | null | tests/test_rigraph.py | tipech/OverlapGraph | 0aa132802f2e174608ce33c6bfc24ff14551bf4a | [
"MIT"
] | 1 | 2018-10-07T08:06:01.000Z | 2018-10-07T08:06:01.000Z | tests/test_rigraph.py | tipech/OverlapGraph | 0aa132802f2e174608ce33c6bfc24ff14551bf4a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
Unit tests for Regional Intersection Graph -- NetworkX
- test_nxgraph_create
- test_nxgraph_sweepctor
- test_nxgraph_mdsweepctor
- test_nxgraph_sweepctor_graph
- test_nxgraph_sweepctor_random
"""
from io import StringIO
from typing import List, Tuple
from unittest import TestCase
from pprin... | 28.590909 | 78 | 0.704928 | 427 | 3,145 | 5 | 0.177986 | 0.175176 | 0.23185 | 0.119906 | 0.519438 | 0.442155 | 0.428103 | 0.428103 | 0.4 | 0.4 | 0 | 0.018667 | 0.165342 | 3,145 | 110 | 79 | 28.590909 | 0.794667 | 0.067727 | 0 | 0.359375 | 0 | 0 | 0.032137 | 0 | 0 | 0 | 0 | 0 | 0.109375 | 1 | 0.109375 | false | 0 | 0.109375 | 0 | 0.25 | 0.015625 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6e9c0e49300a9331849140f0161083c33564550f | 1,156 | py | Python | TWLight/users/migrations/0060_auto_20200804_1634.py | saloniig/TWLight | cd92e690b79676299d95394abf9e66885eac9d73 | [
"MIT"
] | null | null | null | TWLight/users/migrations/0060_auto_20200804_1634.py | saloniig/TWLight | cd92e690b79676299d95394abf9e66885eac9d73 | [
"MIT"
] | 11 | 2022-03-18T18:05:40.000Z | 2022-03-18T18:06:04.000Z | TWLight/users/migrations/0060_auto_20200804_1634.py | saloniig/TWLight | cd92e690b79676299d95394abf9e66885eac9d73 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.9 on 2020-08-04 16:34
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
("resources", "0083_auto_20200804_1634"),
("users", "0059_auto_20200706_1659"),
]
operations = [
migr... | 30.421053 | 79 | 0.554498 | 119 | 1,156 | 5.201681 | 0.521008 | 0.038772 | 0.045234 | 0.071082 | 0.374798 | 0.310178 | 0.161551 | 0.161551 | 0.161551 | 0.161551 | 0 | 0.066754 | 0.3391 | 1,156 | 37 | 80 | 31.243243 | 0.743456 | 0.038927 | 0 | 0.322581 | 1 | 0 | 0.206492 | 0.041479 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.064516 | 0 | 0.16129 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6ea0bc0d2b1ad3adfb2f77506b8457065172f268 | 13,766 | py | Python | cogs/rolemanager.py | yaansz/RoleManager | fbde2ab4a8d0721dfe5a7f258981a298787c20f6 | [
"MIT"
] | 1 | 2021-11-12T04:25:56.000Z | 2021-11-12T04:25:56.000Z | cogs/rolemanager.py | yaansz/RoleManager | fbde2ab4a8d0721dfe5a7f258981a298787c20f6 | [
"MIT"
] | 1 | 2021-10-21T04:28:53.000Z | 2021-10-21T04:28:53.000Z | cogs/rolemanager.py | yaansz/RoleManager | fbde2ab4a8d0721dfe5a7f258981a298787c20f6 | [
"MIT"
] | null | null | null | import discord
from discord.ext import commands, tasks
from discord.ext.commands import has_permissions, CheckFailure
from utils.converters import CtxRoleConverter
from utils.utils import str2bool
from functools import reduce
import random
import json
import utils.embed as embed
from utils.colors impor... | 36.3219 | 152 | 0.556807 | 1,537 | 13,766 | 4.872479 | 0.23162 | 0.01816 | 0.028041 | 0.03405 | 0.361063 | 0.302577 | 0.266791 | 0.244358 | 0.218454 | 0.167179 | 0 | 0.017794 | 0.33866 | 13,766 | 378 | 153 | 36.417989 | 0.804701 | 0.0624 | 0 | 0.240506 | 0 | 0.008439 | 0.209614 | 0.005443 | 0 | 0 | 0 | 0.010582 | 0 | 1 | 0.012658 | false | 0.012658 | 0.059072 | 0 | 0.118143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6ea0e4507a182e247e92897902d14701ed34921a | 1,530 | py | Python | app/models/__init__.py | woodybriggs/attribute-store | 24554c46eee1099488298697fafaeb3b3b39d23c | [
"Apache-2.0"
] | null | null | null | app/models/__init__.py | woodybriggs/attribute-store | 24554c46eee1099488298697fafaeb3b3b39d23c | [
"Apache-2.0"
] | null | null | null | app/models/__init__.py | woodybriggs/attribute-store | 24554c46eee1099488298697fafaeb3b3b39d23c | [
"Apache-2.0"
] | null | null | null | from sqlalchemy import Column, String, Boolean, ForeignKey, Integer, Float
from ..db import Base
class Attribute(Base):
__tablename__ = "attribute"
id = Column(Integer, autoincrement=True, primary_key=True, unique=True, nullable=False)
type = Column(String(length=256), nullable=False)
remote_reference... | 27.818182 | 91 | 0.698693 | 157 | 1,530 | 6.318471 | 0.267516 | 0.099798 | 0.085685 | 0.120968 | 0.282258 | 0.282258 | 0.282258 | 0.282258 | 0.282258 | 0.282258 | 0 | 0.010492 | 0.190196 | 1,530 | 55 | 92 | 27.818182 | 0.790153 | 0 | 0 | 0.225 | 0 | 0 | 0.160026 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.725 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6ea1744028e87393e63da97eab5dfe8eb8e4ef8d | 1,822 | py | Python | qctool/src/mode.py | meghasin/icees-api-config | 92a2263428fdfa21fc03c74be2928c70adb064c9 | [
"MIT"
] | null | null | null | qctool/src/mode.py | meghasin/icees-api-config | 92a2263428fdfa21fc03c74be2928c70adb064c9 | [
"MIT"
] | 18 | 2021-06-07T17:29:25.000Z | 2022-03-07T16:13:04.000Z | qctool/src/mode.py | meghasin/icees-api-config | 92a2263428fdfa21fc03c74be2928c70adb064c9 | [
"MIT"
] | 1 | 2021-06-28T02:42:08.000Z | 2021-06-28T02:42:08.000Z | from typing import Dict, List, Optional
from dataclasses import dataclass, field
from file import YAMLFile
@dataclass
class CacheTables:
tables: Dict[str, list] = field(default_factory=dict)
table_names: List[str] = field(default_factory=list)
current_table: Optional[int] = 0
def update_tables(self, c... | 26.405797 | 67 | 0.682217 | 241 | 1,822 | 4.925311 | 0.224066 | 0.045493 | 0.064027 | 0.04802 | 0.281382 | 0.281382 | 0.281382 | 0.222409 | 0.222409 | 0.133109 | 0 | 0.002872 | 0.235456 | 1,822 | 68 | 68 | 26.794118 | 0.849246 | 0 | 0 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070175 | false | 0 | 0.052632 | 0 | 0.701754 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6ea929747cd5c38bdba8bb96b3692384f6a69853 | 1,645 | py | Python | min_win_substr.py | skokal01/Interview-Practice | 3432f31e45ac70c3e570bd8f832c828b2836e622 | [
"Apache-2.0"
] | null | null | null | min_win_substr.py | skokal01/Interview-Practice | 3432f31e45ac70c3e570bd8f832c828b2836e622 | [
"Apache-2.0"
] | null | null | null | min_win_substr.py | skokal01/Interview-Practice | 3432f31e45ac70c3e570bd8f832c828b2836e622 | [
"Apache-2.0"
] | null | null | null | # https://discuss.leetcode.com/topic/30941/here-is-a-10-line-template-that-can-solve-most-substring-problems/12
#1. Use two pointers: start and end to represent a window.
#2. Move end to find a valid window.
#3. When a valid window is found, move start to find a smaller window.
from collections import defaultdict
... | 42.179487 | 136 | 0.608511 | 244 | 1,645 | 4.004098 | 0.389344 | 0.057318 | 0.045036 | 0.030706 | 0.074719 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021239 | 0.31307 | 1,645 | 38 | 137 | 43.289474 | 0.843363 | 0.399392 | 0 | 0 | 0 | 0 | 0.017058 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.107143 | null | null | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6eaa7b5ec2883ad4ec43a22334b737620d3551a3 | 957 | py | Python | zhuangzhuangml/api/state.py | Alpaca-Hub/zhuangzhuangml | f8e4536c546c0c1de322ed2eabc83949e3b5ee9e | [
"MIT"
] | 2 | 2020-12-23T16:21:04.000Z | 2020-12-24T02:09:28.000Z | zhuangzhuangml/api/state.py | Alpaca-Hub/zhuangzhuangml | f8e4536c546c0c1de322ed2eabc83949e3b5ee9e | [
"MIT"
] | null | null | null | zhuangzhuangml/api/state.py | Alpaca-Hub/zhuangzhuangml | f8e4536c546c0c1de322ed2eabc83949e3b5ee9e | [
"MIT"
] | 1 | 2021-02-16T08:32:56.000Z | 2021-02-16T08:32:56.000Z | from notebook.utils import url_path_join as ujoin
from notebook.base.handlers import IPythonHandler
import os, json, git, urllib, requests
from git import Repo, GitCommandError
from subprocess import check_output
import subprocess
repo = None
htable = []
config = {
"GIT_USER": "alpaca",
"GIT_PARENT_DIR": os.path.... | 29.90625 | 133 | 0.679206 | 122 | 957 | 5.155738 | 0.557377 | 0.038156 | 0.038156 | 0.044515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168234 | 957 | 31 | 134 | 30.870968 | 0.790201 | 0.549634 | 0 | 0 | 0 | 0 | 0.180723 | 0.06747 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.461538 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6eada2afae64da2df1789618b6a069e9869686b9 | 6,342 | py | Python | tests/samples.py | ewerybody/svg.charts | eb77a381f0721b3d59ae9461765ac9e9cffef586 | [
"MIT"
] | 26 | 2016-05-04T09:57:13.000Z | 2021-08-23T17:59:20.000Z | tests/samples.py | ewerybody/svg.charts | eb77a381f0721b3d59ae9461765ac9e9cffef586 | [
"MIT"
] | 21 | 2016-03-22T00:39:51.000Z | 2021-08-14T00:43:21.000Z | tests/samples.py | ewerybody/svg.charts | eb77a381f0721b3d59ae9461765ac9e9cffef586 | [
"MIT"
] | 15 | 2016-04-06T09:57:38.000Z | 2021-08-17T03:56:40.000Z | """
Samples of the various charts. Run this script to generate the reference
samples.
"""
import os
from svg.charts.plot import Plot
from svg.charts import bar
from svg.charts import time_series
from svg.charts import pie
from svg.charts import schedule
from svg.charts import line
def sample_Plot():
g = Plot(
... | 25.067194 | 78 | 0.534216 | 812 | 6,342 | 3.988916 | 0.242611 | 0.022229 | 0.044458 | 0.055573 | 0.387157 | 0.324174 | 0.277246 | 0.277246 | 0.264897 | 0.264897 | 0 | 0.061159 | 0.316777 | 6,342 | 252 | 79 | 25.166667 | 0.68636 | 0.037685 | 0 | 0.401015 | 1 | 0 | 0.137274 | 0.004105 | 0 | 0 | 0 | 0 | 0.005076 | 1 | 0.060914 | false | 0 | 0.040609 | 0 | 0.162437 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6eb141b37262ba3a67723cec52b7bc4e837f4bd2 | 298 | py | Python | SUL1/sample/data_reader_example/reader_sample.py | ddddwee1/SULT | 0ff31b602d20dd8bc5cf4a6f4f5bc193d636e784 | [
"WTFPL"
] | 18 | 2017-12-19T07:55:17.000Z | 2020-03-12T11:07:45.000Z | SUL1/sample/data_reader_example/reader_sample.py | ddddwee1/SULT | 0ff31b602d20dd8bc5cf4a6f4f5bc193d636e784 | [
"WTFPL"
] | 1 | 2019-04-18T10:31:41.000Z | 2019-05-23T06:47:24.000Z | SUL1/sample/data_reader_example/reader_sample.py | ddddwee1/SULT | 0ff31b602d20dd8bc5cf4a6f4f5bc193d636e784 | [
"WTFPL"
] | 5 | 2018-06-06T00:51:48.000Z | 2020-03-12T11:07:46.000Z | import data_reader
import time
import tensorflow as tf
def worker(num):
time.sleep(0.5)
print(num)
return num
if __name__=='__main__':
data = list(range(100))
bsize = 10
reader = data_reader.data_reader(data, worker, bsize)
for i in range(10):
a = reader.get_next_batch()
print(a)
| 15.684211 | 54 | 0.708054 | 49 | 298 | 4.040816 | 0.612245 | 0.151515 | 0.161616 | 0.20202 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036585 | 0.174497 | 298 | 18 | 55 | 16.555556 | 0.768293 | 0 | 0 | 0 | 0 | 0 | 0.026846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.214286 | 0 | 0.357143 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6eb1622b3e77be74581e641027498547c04e498c | 655 | py | Python | ariadna/__init__.py | dacabdi/ariadna | 96cdc0c23676e2dfb7e57707565d6fcf6d46576a | [
"MIT"
] | null | null | null | ariadna/__init__.py | dacabdi/ariadna | 96cdc0c23676e2dfb7e57707565d6fcf6d46576a | [
"MIT"
] | 1 | 2020-02-16T01:08:33.000Z | 2020-02-16T01:08:33.000Z | ariadna/__init__.py | dacabdi/ariadna | 96cdc0c23676e2dfb7e57707565d6fcf6d46576a | [
"MIT"
] | null | null | null | from .PathSplitter import PathSplitter
from .PathSplitter import RegexSplitter
__DEFAULT_PATH_SPLITTER__ = RegexSplitter
__cajas__ = [
'Caja',
'CajaMapping',
'CajaMutableMapping',
'CajaMutableSequence',
'CajaMutableSet',
'CajaSequence',
'CajaSet'
]
from .Caja import Caja
from .CajaMapping... | 25.192308 | 55 | 0.79542 | 56 | 655 | 8.875 | 0.303571 | 0.064386 | 0.088531 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138931 | 655 | 26 | 55 | 25.192308 | 0.881206 | 0 | 0 | 0 | 0 | 0 | 0.167683 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
6eb385689e7f62965f0e2b2dfe740a0b37b720ec | 604 | py | Python | test/SentimentAnalyzerTest.py | fractalbass/bayesian_trump | 0fa495bc8d33c99d2eb1e6520ffcd5616ab06ba7 | [
"Apache-2.0"
] | null | null | null | test/SentimentAnalyzerTest.py | fractalbass/bayesian_trump | 0fa495bc8d33c99d2eb1e6520ffcd5616ab06ba7 | [
"Apache-2.0"
] | null | null | null | test/SentimentAnalyzerTest.py | fractalbass/bayesian_trump | 0fa495bc8d33c99d2eb1e6520ffcd5616ab06ba7 | [
"Apache-2.0"
] | null | null | null | #--------------------------------------------------------------
# By Miles R. Porter
# Painted Harmony Group, Inc
# June 26, 2017
# Please See LICENSE.txt
#--------------------------------------------------------------
import unittest
import SentimentAnalyzer as analyzer
class SentimentAnalyzerTest(unittest.Test... | 28.761905 | 96 | 0.559603 | 62 | 604 | 5.387097 | 0.758065 | 0.143713 | 0.095808 | 0.137725 | 0.191617 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011719 | 0.152318 | 604 | 20 | 97 | 30.2 | 0.640625 | 0.349338 | 0 | 0 | 0 | 0 | 0.220207 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6ebda2fd048070945d9e0c0bd2688c3da06e3808 | 1,708 | py | Python | tests/test_problem_solving_algorithms_warmup.py | mxdzi/hackerrank | 4455f73e4479a4204b2e1167253f6a02351aa5b7 | [
"MIT"
] | null | null | null | tests/test_problem_solving_algorithms_warmup.py | mxdzi/hackerrank | 4455f73e4479a4204b2e1167253f6a02351aa5b7 | [
"MIT"
] | null | null | null | tests/test_problem_solving_algorithms_warmup.py | mxdzi/hackerrank | 4455f73e4479a4204b2e1167253f6a02351aa5b7 | [
"MIT"
] | null | null | null | from problem_solving.algorithms.warmup import *
def test_solve_me_first():
assert 5 == q1_solve_me_first.solveMeFirst(2, 3)
assert 1100 == q1_solve_me_first.solveMeFirst(100, 1000)
def test_simple_array_sum():
assert 31 == q2_simple_array_sum.simpleArraySum([1, 2, 3, 4, 10, 11])
def test_compare_the_t... | 29.448276 | 116 | 0.681499 | 249 | 1,708 | 4.425703 | 0.409639 | 0.063521 | 0.087114 | 0.108893 | 0.263158 | 0.149728 | 0.084392 | 0 | 0 | 0 | 0 | 0.145173 | 0.169204 | 1,708 | 57 | 117 | 29.964912 | 0.631431 | 0 | 0 | 0.222222 | 0 | 0 | 0.066159 | 0.017564 | 0 | 0 | 0 | 0 | 0.361111 | 1 | 0.277778 | false | 0 | 0.027778 | 0 | 0.305556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6ec37eb4a456fb710e5b1524f22e081473a6ba11 | 1,051 | py | Python | readonly/readonly/test_runner.py | WimpyAnalytics/django-readonly-schema | a9edd29ecc4d97da48662b1e6cddf1f220b36ae3 | [
"MIT"
] | null | null | null | readonly/readonly/test_runner.py | WimpyAnalytics/django-readonly-schema | a9edd29ecc4d97da48662b1e6cddf1f220b36ae3 | [
"MIT"
] | null | null | null | readonly/readonly/test_runner.py | WimpyAnalytics/django-readonly-schema | a9edd29ecc4d97da48662b1e6cddf1f220b36ae3 | [
"MIT"
] | null | null | null | import contextlib
import os
import logging
from django.test.runner import DiscoverRunner
from django.conf import settings
from django.db import connections
logger = logging.getLogger(__name__)
class LegacyDiscoverRunner(DiscoverRunner):
"""
See https://docs.djangoproject.com/en/1.7/topics/testing/advanced/#... | 32.84375 | 98 | 0.702188 | 131 | 1,051 | 5.534351 | 0.618321 | 0.055172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002372 | 0.197907 | 1,051 | 32 | 99 | 32.84375 | 0.857651 | 0.272122 | 0 | 0 | 0 | 0 | 0.084677 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.352941 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6ecf657f894d096d6832858fb378cbe5339f89f5 | 10,354 | py | Python | espresso.py | isikdos/Espresso | c606bef5a949d94a1886d7cafbf90588f48fd19c | [
"MIT"
] | null | null | null | espresso.py | isikdos/Espresso | c606bef5a949d94a1886d7cafbf90588f48fd19c | [
"MIT"
] | null | null | null | espresso.py | isikdos/Espresso | c606bef5a949d94a1886d7cafbf90588f48fd19c | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Mar 20 22:08:31 2019
@author: iaricanli
"""
import copy
T = True
F = False
D = "_"
"""
Generate the inputs for the algorithm. A list of dictionarys.
Each element of the list represents a different boolean expression input --
say if we are trying to r... | 33.4 | 86 | 0.598899 | 1,286 | 10,354 | 4.7014 | 0.269051 | 0.018194 | 0.009924 | 0.015217 | 0.125041 | 0.110486 | 0.110486 | 0.097254 | 0.082369 | 0.082369 | 0 | 0.011791 | 0.344698 | 10,354 | 309 | 87 | 33.508091 | 0.879293 | 0.208422 | 0 | 0.057377 | 1 | 0 | 0.00534 | 0.004235 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098361 | false | 0 | 0.008197 | 0.04918 | 0.204918 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6ed89114b857defa7a6939a979f1ef5418284cfe | 3,833 | py | Python | finetune.py | kbehouse/vgg-face-keras | 3fa86c32b9b7487066a47c66a5c92ec8b7cc5ea3 | [
"MIT"
] | 3 | 2018-04-19T08:46:44.000Z | 2019-01-17T15:40:18.000Z | finetune.py | kbehouse/vgg-face-keras | 3fa86c32b9b7487066a47c66a5c92ec8b7cc5ea3 | [
"MIT"
] | 1 | 2019-04-14T11:11:11.000Z | 2019-04-14T11:11:11.000Z | finetune.py | kbehouse/vgg-face-keras | 3fa86c32b9b7487066a47c66a5c92ec8b7cc5ea3 | [
"MIT"
] | 3 | 2018-02-06T06:51:55.000Z | 2021-05-12T22:37:44.000Z | from keras.engine import Model
from keras.layers import Flatten, Dense, Input
from keras import optimizers
from keras.preprocessing.image import ImageDataGenerator
from vggface import VGGFace
from sklearn.metrics import log_loss
from one_face_predict import prdict_one_face
from load_face_data import load_face_data
... | 31.677686 | 98 | 0.650926 | 514 | 3,833 | 4.544747 | 0.282101 | 0.058219 | 0.077911 | 0.023116 | 0.223887 | 0.187072 | 0.175942 | 0.114726 | 0.081336 | 0.081336 | 0 | 0.017383 | 0.20454 | 3,833 | 121 | 99 | 31.677686 | 0.74877 | 0.203757 | 0 | 0.046154 | 0 | 0 | 0.081188 | 0.031023 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.138462 | null | null | 0.061538 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6ed8da6da189ba8a484a059fc6aed4672f0c2f0d | 662 | py | Python | assets_new_new/data/2021-03-05/json_for_classification/get_classification_file_with_padim_segment.py | ggzhang0071/PaDiM-Anomaly-Detection-Localization-master | 823404d45be078348328c7c6cd16e8ac11a51587 | [
"Apache-2.0"
] | null | null | null | assets_new_new/data/2021-03-05/json_for_classification/get_classification_file_with_padim_segment.py | ggzhang0071/PaDiM-Anomaly-Detection-Localization-master | 823404d45be078348328c7c6cd16e8ac11a51587 | [
"Apache-2.0"
] | null | null | null | assets_new_new/data/2021-03-05/json_for_classification/get_classification_file_with_padim_segment.py | ggzhang0071/PaDiM-Anomaly-Detection-Localization-master | 823404d45be078348328c7c6cd16e8ac11a51587 | [
"Apache-2.0"
] | null | null | null | from get_classification_file_with_original_annotation import get_image_label_dict_from_original_annotation, get_classification_file_based_on_label
original_annotation_path="/git/PaDiM-master/assets_new_new/data/2021-03-05/json_for_classification"
image_data_root="/git/PaDiM-master/kangqiang_result/segment_image_resul... | 66.2 | 147 | 0.906344 | 98 | 662 | 5.489796 | 0.367347 | 0.167286 | 0.104089 | 0.063197 | 0.405204 | 0.297398 | 0.297398 | 0 | 0 | 0 | 0 | 0.017107 | 0.028701 | 662 | 9 | 148 | 73.555556 | 0.819596 | 0 | 0 | 0 | 0 | 0 | 0.36858 | 0.36858 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6edcdf57c3c391a58239cdc84220f102e6e920b1 | 3,902 | py | Python | PythonCode/MathModule.py | janw23/Ballance | f085d2d03c31a8e3be74d4c82300f571cc3cad65 | [
"MIT"
] | 2 | 2019-05-16T21:24:24.000Z | 2019-05-19T15:24:03.000Z | PythonCode/MathModule.py | janw23/Ballance | f085d2d03c31a8e3be74d4c82300f571cc3cad65 | [
"MIT"
] | null | null | null | PythonCode/MathModule.py | janw23/Ballance | f085d2d03c31a8e3be74d4c82300f571cc3cad65 | [
"MIT"
] | null | null | null | #PRZYDATNE FUNKCJE MATEMATYCZNE
import math
import heapq
#zwrca znak liczby
def sign(num):
if num > 0: return 1.0
if num < 0: return -1.0
return 0.0
def softsign(num):
if num < 0: return num / (1 - num)
return num / (1 + num)
#zwraca kwadrat liczby, ale z jej znakiem
def signedSqr(num):
if nu... | 26.187919 | 90 | 0.59918 | 607 | 3,902 | 3.818781 | 0.248764 | 0.009491 | 0.012942 | 0.025884 | 0.262295 | 0.209664 | 0.123382 | 0.056083 | 0.048318 | 0.015531 | 0 | 0.027728 | 0.279088 | 3,902 | 149 | 91 | 26.187919 | 0.796303 | 0.276012 | 0 | 0.094737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.273684 | false | 0 | 0.021053 | 0.073684 | 0.547368 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6ee9fc7a20a0b4ea583558435345044eb6c11fe1 | 870 | py | Python | bgg4py/valueobject/search.py | hiroaqii/bgg4py | ba3d8ef31f23b8ec6464c1142672b5e7b6f3c87d | [
"MIT"
] | 1 | 2020-06-07T07:10:21.000Z | 2020-06-07T07:10:21.000Z | bgg4py/valueobject/search.py | hiroaqii/bgg4py | ba3d8ef31f23b8ec6464c1142672b5e7b6f3c87d | [
"MIT"
] | null | null | null | bgg4py/valueobject/search.py | hiroaqii/bgg4py | ba3d8ef31f23b8ec6464c1142672b5e7b6f3c87d | [
"MIT"
] | null | null | null | from collections import OrderedDict
from typing import List, Optional, Union
from .bgg import Bgg
class Item(Bgg):
id: int
type: str
name: Optional[str]
yearpublished: Optional[int]
@classmethod
def create(cls, itme: OrderedDict):
_item = Item(
id=Bgg.parse_int(itme.get("@... | 23.513514 | 85 | 0.596552 | 104 | 870 | 4.913462 | 0.336538 | 0.054795 | 0.078278 | 0.09002 | 0.07045 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.281609 | 870 | 36 | 86 | 24.166667 | 0.8176 | 0 | 0 | 0.074074 | 0 | 0 | 0.035632 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6eee685db06749a32854e6ddc579c70b4af2db0b | 2,517 | py | Python | Python tripartite framework/Django/code/mysite/app_model/models.py | Ljazz/studyspace | b235e7d16fecf93dd64ad785833d4de5bb17db64 | [
"MIT"
] | null | null | null | Python tripartite framework/Django/code/mysite/app_model/models.py | Ljazz/studyspace | b235e7d16fecf93dd64ad785833d4de5bb17db64 | [
"MIT"
] | null | null | null | Python tripartite framework/Django/code/mysite/app_model/models.py | Ljazz/studyspace | b235e7d16fecf93dd64ad785833d4de5bb17db64 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
from django.urls import reverse
from django.utils.timezone import now
from django.template.defaultfilters import slugify
import uuid
import os
class Article(models.Model):
STATUS_CHOICES = (
('d', '草稿'),
('p', '发表'),
)
... | 32.269231 | 87 | 0.680175 | 322 | 2,517 | 5.180124 | 0.431677 | 0.032374 | 0.041367 | 0.043165 | 0.111511 | 0.111511 | 0.07554 | 0.07554 | 0.07554 | 0.07554 | 0 | 0.008268 | 0.183155 | 2,517 | 77 | 88 | 32.688312 | 0.803016 | 0.018276 | 0 | 0.035088 | 0 | 0 | 0.048217 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.122807 | false | 0 | 0.122807 | 0.070175 | 0.77193 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6ef0714c67b0e270b9a385ba58aaf7bc7c22e31a | 353 | py | Python | uwsgi_sloth/commands/echo_conf.py | 365moods/uwsgi | 8097c08b1090aa08a0a241cb8772a803486e0759 | [
"Apache-2.0"
] | null | null | null | uwsgi_sloth/commands/echo_conf.py | 365moods/uwsgi | 8097c08b1090aa08a0a241cb8772a803486e0759 | [
"Apache-2.0"
] | null | null | null | uwsgi_sloth/commands/echo_conf.py | 365moods/uwsgi | 8097c08b1090aa08a0a241cb8772a803486e0759 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import pkg_resources
def echo_conf(args):
print pkg_resources.resource_string('uwsgi_sloth', "sample.conf")
def load_subcommand(subparsers):
"""Load this subcommand"""
parser_analyze = subparsers.add_parser('echo_conf', help='Echo sample configuration file')
parser_analyze.se... | 23.533333 | 94 | 0.730878 | 45 | 353 | 5.466667 | 0.644444 | 0.097561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003311 | 0.144476 | 353 | 14 | 95 | 25.214286 | 0.811258 | 0.05949 | 0 | 0 | 0 | 0 | 0.20132 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
42b56ce5cd9d4546f69bdbf3a72a82d90e866180 | 3,647 | py | Python | agent/src/Basic_linux_commands/copy_move_delete.py | ekbanasolutions/aditas | 2e8291202cb6781a1a0855a1cccb86348b710b71 | [
"MIT"
] | 2 | 2019-01-03T07:42:45.000Z | 2019-03-15T09:06:12.000Z | agent/src/Basic_linux_commands/copy_move_delete.py | ekbanatechnology/aditas | 2e8291202cb6781a1a0855a1cccb86348b710b71 | [
"MIT"
] | null | null | null | agent/src/Basic_linux_commands/copy_move_delete.py | ekbanatechnology/aditas | 2e8291202cb6781a1a0855a1cccb86348b710b71 | [
"MIT"
] | 2 | 2019-01-21T10:34:44.000Z | 2021-07-06T08:49:41.000Z | import os
import time
import run_services
from Basic_linux_commands.chown_chmod import chown
from bigdata_logs.logger import getLoggingInstance
log = getLoggingInstance()
username = os.getenv("user")
groupname = username
def copy(src, file_list, dest, user_pass, *args):
log.info("\nCopying\n")
try:
... | 33.768519 | 125 | 0.542364 | 465 | 3,647 | 4.021505 | 0.163441 | 0.072193 | 0.083422 | 0.063636 | 0.736364 | 0.697861 | 0.613369 | 0.575401 | 0.575401 | 0.504813 | 0 | 0.006822 | 0.316699 | 3,647 | 107 | 126 | 34.084112 | 0.743579 | 0 | 0 | 0.559524 | 0 | 0 | 0.169594 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0.107143 | 0.059524 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
42b5ac0f4117222a3115ca8c30b2a95c0278d53d | 645 | py | Python | pytest_use_postgresql.py | admariner/django-sql-dashboard | 59b71ea470f3bfa0be45abddf912ac3890c9308f | [
"Apache-2.0"
] | 293 | 2021-03-13T04:46:29.000Z | 2022-03-19T17:40:04.000Z | pytest_use_postgresql.py | admariner/django-sql-dashboard | 59b71ea470f3bfa0be45abddf912ac3890c9308f | [
"Apache-2.0"
] | 143 | 2021-03-13T04:12:00.000Z | 2022-03-28T09:25:32.000Z | pytest_use_postgresql.py | admariner/django-sql-dashboard | 59b71ea470f3bfa0be45abddf912ac3890c9308f | [
"Apache-2.0"
] | 26 | 2021-03-15T00:06:46.000Z | 2022-03-29T01:39:41.000Z | import os
import pytest
from dj_database_url import parse
from django.conf import settings
from testing.postgresql import Postgresql
postgres = os.environ.get("POSTGRESQL_PATH")
initdb = os.environ.get("INITDB_PATH")
_POSTGRESQL = Postgresql(postgres=postgres, initdb=initdb)
@pytest.hookimpl(tryfirst=True)
def pyte... | 29.318182 | 88 | 0.789147 | 80 | 645 | 6.1375 | 0.45 | 0.05499 | 0.04888 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100775 | 645 | 21 | 89 | 30.714286 | 0.846552 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 0.068217 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.333333 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
42b83286667d1ae28850c13c39863cbce82c75af | 2,874 | py | Python | tests/test_db_url.py | Swamii/django-bananas | 40269ece17f7bbb68af181e9c9556d7f0c973139 | [
"MIT"
] | null | null | null | tests/test_db_url.py | Swamii/django-bananas | 40269ece17f7bbb68af181e9c9556d7f0c973139 | [
"MIT"
] | null | null | null | tests/test_db_url.py | Swamii/django-bananas | 40269ece17f7bbb68af181e9c9556d7f0c973139 | [
"MIT"
] | null | null | null | from urllib.parse import quote
from django.test import TestCase
from bananas import url
__test__ = {
'Doctest': url
}
class DBURLTest(TestCase):
def test_sqlite_memory(self):
conf = url.database_conf_from_url('sqlite://')
self.assertDictEqual(conf, {
'ENGINE': 'django.db.backen... | 30.903226 | 77 | 0.519137 | 294 | 2,874 | 4.935374 | 0.278912 | 0.038594 | 0.010338 | 0.052378 | 0.29428 | 0.29428 | 0.258442 | 0.186079 | 0.148863 | 0.071675 | 0 | 0.010277 | 0.322895 | 2,874 | 92 | 78 | 31.23913 | 0.735355 | 0 | 0 | 0.428571 | 0 | 0 | 0.217815 | 0.074113 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.103896 | false | 0.051948 | 0.038961 | 0 | 0.155844 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
42cc23b129f8ef97a79b9c784780abd45af099d6 | 4,102 | py | Python | tfx/utils/channel.py | Bumbleblo/tfx | 1e7c23d339160c80534da0ca96eee3ba2e32e80f | [
"Apache-2.0"
] | null | null | null | tfx/utils/channel.py | Bumbleblo/tfx | 1e7c23d339160c80534da0ca96eee3ba2e32e80f | [
"Apache-2.0"
] | null | null | null | tfx/utils/channel.py | Bumbleblo/tfx | 1e7c23d339160c80534da0ca96eee3ba2e32e80f | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 33.080645 | 79 | 0.696733 | 537 | 4,102 | 5.197393 | 0.342644 | 0.060193 | 0.030097 | 0.011465 | 0.080975 | 0.063776 | 0.063776 | 0.063776 | 0.063776 | 0.040129 | 0 | 0.011076 | 0.229644 | 4,102 | 123 | 80 | 33.349594 | 0.872152 | 0.479035 | 0 | 0.081633 | 0 | 0 | 0.109555 | 0 | 0 | 0 | 0 | 0.01626 | 0 | 1 | 0.142857 | false | 0 | 0.183673 | 0.040816 | 0.44898 | 0.020408 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
42cc313b89f4868c876e95db5f44803b03c0524d | 12,126 | py | Python | charity_donation_app/users/views.py | ikolokotronis/donation_app | c9c67e3845ff407e62f4c343f1851c3c09127d02 | [
"MIT"
] | null | null | null | charity_donation_app/users/views.py | ikolokotronis/donation_app | c9c67e3845ff407e62f4c343f1851c3c09127d02 | [
"MIT"
] | null | null | null | charity_donation_app/users/views.py | ikolokotronis/donation_app | c9c67e3845ff407e62f4c343f1851c3c09127d02 | [
"MIT"
] | null | null | null | from django.shortcuts import render, redirect
from django.views import View
from main.models import Donation, DonationCategories, \
TokenTemporaryStorage
from django.contrib.auth.models import User
from django.contrib.auth import authenticate, login, logout
from django.contrib import messages
from django.core.mail ... | 42.697183 | 115 | 0.62601 | 1,356 | 12,126 | 5.507375 | 0.139381 | 0.038297 | 0.048741 | 0.016872 | 0.651714 | 0.575254 | 0.497724 | 0.435994 | 0.376406 | 0.328736 | 0 | 0.00813 | 0.269668 | 12,126 | 283 | 116 | 42.848057 | 0.83514 | 0 | 0 | 0.581301 | 0 | 0 | 0.179532 | 0.015834 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065041 | false | 0.239837 | 0.052846 | 0.012195 | 0.321138 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
42d56375a81fc9730d4810f020a02d83545b98c3 | 1,739 | py | Python | tests/us23_test.py | pdamiano-11/Team-4-Code | 39736f258ca14b96410d74e30e1f57d5e0fe18ba | [
"MIT"
] | 4 | 2020-09-19T21:23:47.000Z | 2020-10-02T19:17:04.000Z | tests/us23_test.py | pdamiano-11/Team-4-Code | 39736f258ca14b96410d74e30e1f57d5e0fe18ba | [
"MIT"
] | 1 | 2020-10-05T15:19:24.000Z | 2020-10-05T15:19:24.000Z | tests/us23_test.py | pdamiano-11/Team-4-Code | 39736f258ca14b96410d74e30e1f57d5e0fe18ba | [
"MIT"
] | 1 | 2020-10-02T19:36:23.000Z | 2020-10-02T19:36:23.000Z | # -*- coding: utf-8 -*-
"""
Created on Mon Oct 5 14:29:04 2020
@author: ptrda
"""
import os
os.chdir(os.path.dirname(os.path.abspath('../tests')))
import sys
sys.path.append(os.path.abspath('../Team-4-Code/src/UserStories'))
sys.path.append(os.path.abspath('../Team-4-Code/src'))
cwd = os.getcwd()
os.chdir(os.path.j... | 29.474576 | 70 | 0.632547 | 218 | 1,739 | 5.022936 | 0.334862 | 0.027397 | 0.109589 | 0.228311 | 0.720548 | 0.612785 | 0.612785 | 0.612785 | 0.547032 | 0.222831 | 0 | 0.046392 | 0.219091 | 1,739 | 59 | 71 | 29.474576 | 0.759941 | 0.042553 | 0 | 0.365854 | 0 | 0 | 0.098311 | 0.018094 | 0 | 0 | 0 | 0 | 0.121951 | 1 | 0.121951 | false | 0 | 0.121951 | 0 | 0.268293 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
42e1fff7b1cfcb03a5a9e106c7573b7184b839bc | 3,602 | py | Python | socket_server.py | afinello/simple-echo-server | 2d3bdd6f747b1590b7a4998eb12eb607c456c388 | [
"MIT"
] | null | null | null | socket_server.py | afinello/simple-echo-server | 2d3bdd6f747b1590b7a4998eb12eb607c456c388 | [
"MIT"
] | null | null | null | socket_server.py | afinello/simple-echo-server | 2d3bdd6f747b1590b7a4998eb12eb607c456c388 | [
"MIT"
] | null | null | null |
import socket, select
import signal
class SimpleSignalHandler:
should_exit = False
def __init__(self):
signal.signal(signal.SIGINT, self.exit_gracefully)
signal.signal(signal.SIGTERM, self.exit_gracefully)
def exit_gracefully(self,signum, frame):
self.should_exit = True
class Client:
addr = ... | 29.768595 | 123 | 0.576624 | 400 | 3,602 | 5.0125 | 0.3275 | 0.053865 | 0.06384 | 0.03591 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008475 | 0.344808 | 3,602 | 120 | 124 | 30.016667 | 0.841102 | 0.134647 | 0 | 0.092105 | 0 | 0 | 0.032893 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.026316 | null | null | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
42e2a2c9cecb27055bd1b70025a72ee44f38d6b7 | 880 | py | Python | restApi/product/migrations/0002_auto_20201219_1633.py | rtx-abir/ecom | 87a7ae00ca06934151155ae0dca4230397386cd7 | [
"MIT"
] | null | null | null | restApi/product/migrations/0002_auto_20201219_1633.py | rtx-abir/ecom | 87a7ae00ca06934151155ae0dca4230397386cd7 | [
"MIT"
] | null | null | null | restApi/product/migrations/0002_auto_20201219_1633.py | rtx-abir/ecom | 87a7ae00ca06934151155ae0dca4230397386cd7 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.8 on 2020-12-19 21:33
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('category', '0001_initial'),
('product', '0001_initial'),
]
operations = [
migrations.AddField(
... | 28.387097 | 129 | 0.595455 | 92 | 880 | 5.597826 | 0.5 | 0.046602 | 0.093204 | 0.116505 | 0.15534 | 0.15534 | 0 | 0 | 0 | 0 | 0 | 0.036107 | 0.276136 | 880 | 30 | 130 | 29.333333 | 0.77237 | 0.051136 | 0 | 0.333333 | 1 | 0 | 0.127251 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.208333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
42e2f4c92e532617bc2d276661ef28f9f4ec3af9 | 1,078 | py | Python | setup.py | anapaulagomes/pardal-python | d67ba1e0e67677320f37cab1288881ad7845612b | [
"MIT"
] | 2 | 2019-01-30T22:35:44.000Z | 2019-01-30T22:41:06.000Z | setup.py | anapaulagomes/pardal-python | d67ba1e0e67677320f37cab1288881ad7845612b | [
"MIT"
] | null | null | null | setup.py | anapaulagomes/pardal-python | d67ba1e0e67677320f37cab1288881ad7845612b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import codecs
import os
from setuptools import find_packages, setup
def read(fname):
file_path = os.path.join(os.path.dirname(__file__), fname)
return codecs.open(file_path, encoding="utf-8").read()
setup(
name="pardal",
version="0.1.0",
author="An... | 27.641026 | 64 | 0.641002 | 124 | 1,078 | 5.467742 | 0.66129 | 0.011799 | 0.038348 | 0.064897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016355 | 0.205937 | 1,078 | 38 | 65 | 28.368421 | 0.775701 | 0.044527 | 0 | 0 | 0 | 0 | 0.410906 | 0 | 0 | 0 | 0 | 0.026316 | 0 | 1 | 0.033333 | false | 0 | 0.1 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
42e66bf8c5863ba13a744c6ac2f6698f859d5c5f | 5,156 | py | Python | test/language/constraints/python/StructureConstraintsTest.py | dkBrazz/zserio | 29dd8145b7d851fac682d3afe991185ea2eac318 | [
"BSD-3-Clause"
] | 86 | 2018-09-06T09:30:53.000Z | 2022-03-27T01:12:36.000Z | test/language/constraints/python/StructureConstraintsTest.py | dkBrazz/zserio | 29dd8145b7d851fac682d3afe991185ea2eac318 | [
"BSD-3-Clause"
] | 362 | 2018-09-04T20:21:24.000Z | 2022-03-30T15:14:38.000Z | test/language/constraints/python/StructureConstraintsTest.py | dkBrazz/zserio | 29dd8145b7d851fac682d3afe991185ea2eac318 | [
"BSD-3-Clause"
] | 20 | 2018-09-10T15:59:02.000Z | 2021-12-01T15:38:22.000Z | import unittest
import zserio
from testutils import getZserioApi
class StructureConstraintsTest(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.api = getZserioApi(__file__, "constraints.zs").structure_constraints
def testReadCorrectColors(self):
writer = zserio.BitStreamWriter()... | 52.080808 | 95 | 0.628782 | 402 | 5,156 | 7.962687 | 0.156716 | 0.085286 | 0.106217 | 0.054983 | 0.720087 | 0.720087 | 0.69697 | 0.69697 | 0.610747 | 0.577007 | 0 | 0.001101 | 0.295384 | 5,156 | 98 | 96 | 52.612245 | 0.879989 | 0 | 0 | 0.60241 | 0 | 0 | 0.002715 | 0 | 0 | 0 | 0 | 0 | 0.156627 | 1 | 0.120482 | false | 0 | 0.036145 | 0 | 0.168675 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
42f787a32816c72328e9d4a8b9cf2052d423aa05 | 1,677 | py | Python | pokemon_entities/models.py | A1exander-Pro/pokemon_go_lesson | 4306df977654ffc888e12c956a58679ef78a1c37 | [
"MIT"
] | null | null | null | pokemon_entities/models.py | A1exander-Pro/pokemon_go_lesson | 4306df977654ffc888e12c956a58679ef78a1c37 | [
"MIT"
] | null | null | null | pokemon_entities/models.py | A1exander-Pro/pokemon_go_lesson | 4306df977654ffc888e12c956a58679ef78a1c37 | [
"MIT"
] | null | null | null | from django.db import models
class Pokemon(models.Model):
title = models.CharField(max_length=200, verbose_name="Русское название")
title_en = models.CharField(max_length=200, verbose_name="Английское название", blank=True)
title_jp = models.CharField(max_length=200, verbose_name="Японское название", blan... | 52.40625 | 95 | 0.711986 | 203 | 1,677 | 5.704434 | 0.310345 | 0.142487 | 0.090674 | 0.114853 | 0.327288 | 0.327288 | 0.16753 | 0 | 0 | 0 | 0 | 0.006456 | 0.168754 | 1,677 | 31 | 96 | 54.096774 | 0.824247 | 0 | 0 | 0.08 | 0 | 0 | 0.129398 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.04 | 0.08 | 0.92 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
42fb4e237af2980d353ad77fab00bed058124571 | 840 | py | Python | tests/test_py33_exceptions.py | haypo/trollius | 2df073c33c7fe8ab0ac60cad4826de730a411a8c | [
"Apache-2.0"
] | 175 | 2015-07-09T00:18:14.000Z | 2017-11-06T17:40:42.000Z | tests/test_py33_exceptions.py | haypo/trollius | 2df073c33c7fe8ab0ac60cad4826de730a411a8c | [
"Apache-2.0"
] | 9 | 2015-07-17T16:44:13.000Z | 2016-09-14T17:47:13.000Z | tests/test_py33_exceptions.py | haypo/trollius | 2df073c33c7fe8ab0ac60cad4826de730a411a8c | [
"Apache-2.0"
] | 21 | 2015-07-14T14:10:15.000Z | 2017-04-05T07:03:48.000Z | # -*- coding: utf-8 -*-
"""
Tests for py33_exceptions.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import unittest
from trollius import py33_exceptions
class TestWrapErrors(unittest.TestCase):
def test_ebadf_wrapped_to_OSError(self):
... | 23.333333 | 58 | 0.677381 | 103 | 840 | 5.23301 | 0.504854 | 0.077922 | 0.089054 | 0.033395 | 0.189239 | 0.189239 | 0.189239 | 0.189239 | 0.189239 | 0.189239 | 0 | 0.013761 | 0.221429 | 840 | 35 | 59 | 24 | 0.810398 | 0.114286 | 0 | 0.1 | 0 | 0 | 0.019074 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.05 | false | 0 | 0.4 | 0 | 0.5 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6e0473d599aadf3133919e392d7d9e9a1e5377e4 | 553 | py | Python | classification/migrations/0019_auto_20210201_1625.py | SACGF/variantgrid | 515195e2f03a0da3a3e5f2919d8e0431babfd9c9 | [
"RSA-MD"
] | 5 | 2021-01-14T03:34:42.000Z | 2022-03-07T15:34:18.000Z | classification/migrations/0019_auto_20210201_1625.py | SACGF/variantgrid | 515195e2f03a0da3a3e5f2919d8e0431babfd9c9 | [
"RSA-MD"
] | 551 | 2020-10-19T00:02:38.000Z | 2022-03-30T02:18:22.000Z | classification/migrations/0019_auto_20210201_1625.py | SACGF/variantgrid | 515195e2f03a0da3a3e5f2919d8e0431babfd9c9 | [
"RSA-MD"
] | null | null | null | # Generated by Django 3.1 on 2021-02-01 05:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('classification', '0018_auto_20210201_1004'),
]
operations = [
migrations.AlterField(
model_name='conditiontext',
name=... | 29.105263 | 205 | 0.603978 | 61 | 553 | 5.393443 | 0.786885 | 0.079027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07277 | 0.229656 | 553 | 18 | 206 | 30.722222 | 0.699531 | 0.077758 | 0 | 0 | 1 | 0 | 0.275591 | 0.045276 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6e08031aba8de4c90190c75d7ce65db070a8ec49 | 3,683 | py | Python | tests/tfTests/tfSim.py | Los-Phoenix/Word2vec_LP | c645bdc08bb81d5b70afe3f3e0b6a1549c1a1802 | [
"MIT"
] | 1 | 2018-09-09T08:34:02.000Z | 2018-09-09T08:34:02.000Z | tests/tfTests/tfSim.py | Los-Phoenix/Word2vec_LP | c645bdc08bb81d5b70afe3f3e0b6a1549c1a1802 | [
"MIT"
] | null | null | null | tests/tfTests/tfSim.py | Los-Phoenix/Word2vec_LP | c645bdc08bb81d5b70afe3f3e0b6a1549c1a1802 | [
"MIT"
] | null | null | null | #coding:UTF-8
#这个文件用tf实现一个单层神经网络,用来判断两个词是否是同义词
#输入是readerX产生的X@200 和Y@1
#划分测试集和监督集、测试集
#使用三层神经网进行训练,n个隐藏层和1个输出层??
import readerX
import tensorflow as tf
import numpy as np
import random
import gc
data_dim = 200#输入数据的维度
# piece = 999999
# sample_num = piece * 49
xInTemp, yInTemp = readerX.genAllXY()
yInTemp = [[i,1 ... | 32.883929 | 93 | 0.577518 | 508 | 3,683 | 4.047244 | 0.287402 | 0.043774 | 0.040856 | 0.061284 | 0.320039 | 0.287938 | 0.209144 | 0.209144 | 0.209144 | 0.209144 | 0 | 0.05524 | 0.282379 | 3,683 | 111 | 94 | 33.18018 | 0.722664 | 0.212055 | 0 | 0.088235 | 0 | 0 | 0.049739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.073529 | null | null | 0.220588 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6e0b3c739a1a452d0da237190f2c5bb2a87e3a13 | 1,534 | py | Python | tests/conftest.py | Rshep3087/log-five-three-one | b30f95ba66a7e57061454f9a476200d71cc77d82 | [
"MIT"
] | 2 | 2020-11-21T03:36:59.000Z | 2021-04-18T15:13:55.000Z | tests/conftest.py | Rshep3087/log-five-three-one | b30f95ba66a7e57061454f9a476200d71cc77d82 | [
"MIT"
] | 20 | 2020-11-21T03:37:30.000Z | 2020-12-13T20:16:41.000Z | tests/conftest.py | Rshep3087/log-five-three-one | b30f95ba66a7e57061454f9a476200d71cc77d82 | [
"MIT"
] | 1 | 2020-12-13T02:43:13.000Z | 2020-12-13T02:43:13.000Z | from strength_log.models import User
from strength_log import create_app, db
from strength_log.config import Config
from helium import start_firefox, kill_browser, click, Link, write
import pytest
HOME_PAGE = "https://www.strengthlog.app/"
class TestConfig(Config):
TESTING = True
BCRYPT_LOG_ROUNDS = 4
S... | 21.013699 | 73 | 0.695567 | 202 | 1,534 | 5.123762 | 0.39604 | 0.062802 | 0.043478 | 0.069565 | 0.206763 | 0.141063 | 0.07343 | 0 | 0 | 0 | 0 | 0.005587 | 0.183181 | 1,534 | 72 | 74 | 21.305556 | 0.820431 | 0.054759 | 0 | 0.234043 | 0 | 0 | 0.127336 | 0.031834 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106383 | false | 0.06383 | 0.106383 | 0 | 0.340426 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6e176656e821269f1d0a9f877b251d96e129f641 | 1,966 | py | Python | codecast_client.py | pitchaim/codecast | 883c543a49528e2baa7cd0d0ee20fe451af6e94b | [
"MIT"
] | null | null | null | codecast_client.py | pitchaim/codecast | 883c543a49528e2baa7cd0d0ee20fe451af6e94b | [
"MIT"
] | null | null | null | codecast_client.py | pitchaim/codecast | 883c543a49528e2baa7cd0d0ee20fe451af6e94b | [
"MIT"
] | null | null | null | import os, subprocess
from socket import *
from threading import Thread
import jack
class Client():
def __init__(self):
#@todo:
# ---ESTABLISH SOCKET CONNECTION WITH SERVER--- #
# ---ONCE ESTABLISHED, PROCEED--- #
#slave - open jackd with net backend
cmd0 = ... | 35.107143 | 97 | 0.50763 | 212 | 1,966 | 4.608491 | 0.575472 | 0.056295 | 0.046059 | 0.067554 | 0.059365 | 0.059365 | 0.059365 | 0 | 0 | 0 | 0 | 0.006316 | 0.275178 | 1,966 | 55 | 98 | 35.745455 | 0.679298 | 0.274161 | 0 | 0.225806 | 0 | 0.032258 | 0.306875 | 0.1382 | 0 | 0 | 0 | 0.018182 | 0 | 1 | 0.064516 | false | 0 | 0.129032 | 0 | 0.258065 | 0.290323 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6e1af007fb9761df149355049f2336bc7259e157 | 506 | py | Python | apps/comment/models.py | luismayta/python-example-elasticsearch | 4572b03c425f525094d5892ef8c625cfa991174a | [
"MIT"
] | 4 | 2019-08-04T19:23:39.000Z | 2021-04-10T08:26:44.000Z | apps/comment/models.py | luismayta/python-example-elasticsearch | 4572b03c425f525094d5892ef8c625cfa991174a | [
"MIT"
] | 3 | 2019-07-08T20:08:02.000Z | 2019-07-09T19:47:25.000Z | apps/comment/models.py | luismayta/python-example-elasticsearch | 4572b03c425f525094d5892ef8c625cfa991174a | [
"MIT"
] | 1 | 2019-08-05T05:15:26.000Z | 2019-08-05T05:15:26.000Z | # -*- coding: utf-8 -*-
from django.db import models
from model_utils.models import TimeStampedModel
from apps.post.models import Post
class Comment(TimeStampedModel):
"""Comment for Post
"""
class Meta:
db_table = "comment"
ordering = ["-created"]
post = models.ForeignKey(Post, on_... | 23 | 85 | 0.681818 | 62 | 506 | 5.403226 | 0.612903 | 0.071642 | 0.107463 | 0.143284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014925 | 0.205534 | 506 | 21 | 86 | 24.095238 | 0.818408 | 0.088933 | 0 | 0 | 0 | 0 | 0.050549 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 0.083333 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6e2f83e867c1d5e2121f1ed0562804a65606c18b | 1,095 | py | Python | proxy_check.py | Vaibhav/ProxyTools | e63985d9d42be76ada95f077df023773ceef90ff | [
"MIT"
] | 1 | 2016-09-25T16:56:04.000Z | 2016-09-25T16:56:04.000Z | proxy_check.py | Vaibhav/ProxyTools | e63985d9d42be76ada95f077df023773ceef90ff | [
"MIT"
] | null | null | null | proxy_check.py | Vaibhav/ProxyTools | e63985d9d42be76ada95f077df023773ceef90ff | [
"MIT"
] | null | null | null | import urllib2, socket
socket.setdefaulttimeout(180)
# read the list of proxy IPs in proxyList
def is_bad_proxy(pip):
try:
proxy_handler = urllib2.ProxyHandler({'http': pip})
opener = urllib2.build_opener(proxy_handler)
opener.addheaders = [('User-agent', 'Mozilla/5.0'... | 21.9 | 83 | 0.616438 | 148 | 1,095 | 4.506757 | 0.527027 | 0.035982 | 0.029985 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036765 | 0.254795 | 1,095 | 49 | 84 | 22.346939 | 0.780637 | 0.061187 | 0 | 0 | 0 | 0 | 0.134634 | 0.032195 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.027778 | null | null | 0.138889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6e38b0f8581b83ded2e4d349b42fc5c6ddd9f24f | 548 | py | Python | noah/VersionInfo.py | dasong2410/dataloader | 9c6826a1e6a6f78af321dfd24f76699abfa88c4e | [
"MIT"
] | null | null | null | noah/VersionInfo.py | dasong2410/dataloader | 9c6826a1e6a6f78af321dfd24f76699abfa88c4e | [
"MIT"
] | null | null | null | noah/VersionInfo.py | dasong2410/dataloader | 9c6826a1e6a6f78af321dfd24f76699abfa88c4e | [
"MIT"
] | null | null | null | #! /usr/bin/env python
#_*_encoding:utf-8_*_
class VersionInfo:
def __init__(self, program, version, date, author):
self.program = program
self.version = version
self.date = date
self.author = author
#打印版本信息
def info(self):
print """
Name: \033[33;2m%s\033[0m
Version: \033[33;2m%s\033[0... | 20.296296 | 61 | 0.618613 | 82 | 548 | 4.036585 | 0.353659 | 0.132931 | 0.084592 | 0.096677 | 0.1571 | 0.1571 | 0 | 0 | 0 | 0 | 0 | 0.095128 | 0.213504 | 548 | 27 | 62 | 20.296296 | 0.672854 | 0.096715 | 0 | 0.105263 | 0 | 0 | 0.339431 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6e3d47b523bea275cbb674f0d307ef7161d45fd8 | 568 | py | Python | ospi_addon.py | noisymime/OSPi | f484f5799a00fa3354957993dd1c7148548fb73b | [
"CC-BY-3.0"
] | 1 | 2021-04-29T15:52:49.000Z | 2021-04-29T15:52:49.000Z | ospi_addon.py | noisymime/OSPi | f484f5799a00fa3354957993dd1c7148548fb73b | [
"CC-BY-3.0"
] | null | null | null | ospi_addon.py | noisymime/OSPi | f484f5799a00fa3354957993dd1c7148548fb73b | [
"CC-BY-3.0"
] | null | null | null | #!/usr/bin/python
import ospi
#### Add any new page urls here ####
ospi.urls.extend(['/c1', 'ospi_addon.custom_page_1']) # example: (['/c1', 'ospi_addon.custom_page_1', '/c2', 'ospi_addon.custom_page_2', '/c3', 'ospi_addon.custom_page_3'])
#### add new functions and classes here ####
### Example custom c... | 28.4 | 173 | 0.614437 | 77 | 568 | 4.337662 | 0.532468 | 0.134731 | 0.179641 | 0.227545 | 0.131737 | 0.131737 | 0 | 0 | 0 | 0 | 0 | 0.020134 | 0.213028 | 568 | 19 | 174 | 29.894737 | 0.727069 | 0.464789 | 0 | 0 | 0 | 0 | 0.352941 | 0.094118 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6e3f59f537e1d5816acebb0324a21a601014c82b | 2,526 | py | Python | panflute/utils.py | robert-shade/panflute | 6df0a347b00f361df9b0067cdcf2c6492f479377 | [
"BSD-3-Clause"
] | null | null | null | panflute/utils.py | robert-shade/panflute | 6df0a347b00f361df9b0067cdcf2c6492f479377 | [
"BSD-3-Clause"
] | null | null | null | panflute/utils.py | robert-shade/panflute | 6df0a347b00f361df9b0067cdcf2c6492f479377 | [
"BSD-3-Clause"
] | null | null | null | """
Auxiliary functions that have no dependencies
"""
# ---------------------------
# Imports
# ---------------------------
from collections import OrderedDict
import sys
import os.path as p
from importlib import import_module
# ---------------------------
# Functions
# ---------------------------
def check_type(va... | 28.066667 | 67 | 0.547902 | 300 | 2,526 | 4.48 | 0.33 | 0.065476 | 0.026786 | 0.02381 | 0.165179 | 0.136905 | 0.096726 | 0.044643 | 0.044643 | 0 | 0 | 0.001649 | 0.279889 | 2,526 | 89 | 68 | 28.382022 | 0.737218 | 0.405384 | 0 | 0.27027 | 0 | 0 | 0.042931 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.189189 | false | 0 | 0.162162 | 0.054054 | 0.513514 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6e41de73111ee88069a3f338670e99b557d93c6f | 2,160 | py | Python | arvan_client/vod/video.py | Sajadrahimi/arvan-client | 34c68a719a90fa2d2d04eeda4c6652316c79c4b5 | [
"MIT"
] | 1 | 2021-07-12T12:20:42.000Z | 2021-07-12T12:20:42.000Z | arvan_client/vod/video.py | Sajadrahimi/arvan-client | 34c68a719a90fa2d2d04eeda4c6652316c79c4b5 | [
"MIT"
] | null | null | null | arvan_client/vod/video.py | Sajadrahimi/arvan-client | 34c68a719a90fa2d2d04eeda4c6652316c79c4b5 | [
"MIT"
] | null | null | null | from typing import List
from arvan_client.arvan.types import DynamicType
class FileInfo(DynamicType):
class General(DynamicType):
duration: int
format: str
bit_rate: int
size: int
class Video(DynamicType):
codec: str
width: int
height: int
frame_rate: str
bit_rate: str
class Audio(DynamicType)... | 20.377358 | 59 | 0.708796 | 300 | 2,160 | 4.826667 | 0.246667 | 0.075967 | 0.038674 | 0.033149 | 0.114641 | 0.048343 | 0.048343 | 0.048343 | 0 | 0 | 0 | 0.002807 | 0.175463 | 2,160 | 105 | 60 | 20.571429 | 0.810219 | 0.007407 | 0 | 0.174419 | 0 | 0 | 0.079365 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069767 | false | 0 | 0.023256 | 0.046512 | 0.511628 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6e4f137e8c59b418614f08563fa808f8ea79ec7f | 2,288 | py | Python | common/xrd-ui-tests-python/tests/xroad_cs_view_trusted_anchor/view_trusted_anchor.py | ria-ee/XTM | 6103f3f5bbba387b8b59b050c0c4f1fb2180fc37 | [
"MIT"
] | 3 | 2018-03-15T14:22:50.000Z | 2021-11-08T10:30:35.000Z | common/xrd-ui-tests-python/tests/xroad_cs_view_trusted_anchor/view_trusted_anchor.py | ria-ee/XTM | 6103f3f5bbba387b8b59b050c0c4f1fb2180fc37 | [
"MIT"
] | 11 | 2017-04-06T09:25:41.000Z | 2018-06-04T09:08:48.000Z | common/xrd-ui-tests-python/tests/xroad_cs_view_trusted_anchor/view_trusted_anchor.py | ria-ee/XTM | 6103f3f5bbba387b8b59b050c0c4f1fb2180fc37 | [
"MIT"
] | 20 | 2017-03-14T07:21:58.000Z | 2019-05-21T09:26:30.000Z | import re
from selenium.webdriver.common.by import By
from tests.xroad_cs_upload_trusted_anchor.upload_trusted_anchor import get_generated_at
from view_models.global_configuration import TRUSTED_ANCHORS_TAB_CSS
from view_models.sidebar import GLOBAL_CONFIGURATION_CSS
from view_models.trusted_anchor import TRUSTED_ANC... | 60.210526 | 119 | 0.746066 | 348 | 2,288 | 4.62931 | 0.258621 | 0.088765 | 0.055866 | 0.052142 | 0.361266 | 0.276847 | 0.230912 | 0.192427 | 0.170701 | 0.096834 | 0 | 0.01671 | 0.163024 | 2,288 | 37 | 120 | 61.837838 | 0.824543 | 0 | 0 | 0 | 1 | 0 | 0.255682 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.1875 | 0 | 0.28125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6e510c7e69d1c10e4a1f13a06328e422101135ca | 2,202 | py | Python | tests/test_rebar.py | SurajDadral/pyconcrete | 479cce3fbe6754243b1df7c555ed1ac66ab6b23e | [
"MIT"
] | 19 | 2019-03-27T18:34:38.000Z | 2021-10-29T23:44:04.000Z | tests/test_rebar.py | SurajDadral/pyconcrete | 479cce3fbe6754243b1df7c555ed1ac66ab6b23e | [
"MIT"
] | 1 | 2019-07-19T02:48:47.000Z | 2019-07-23T04:40:54.000Z | tests/test_rebar.py | SurajDadral/pyconcrete | 479cce3fbe6754243b1df7c555ed1ac66ab6b23e | [
"MIT"
] | 7 | 2019-05-20T05:49:37.000Z | 2021-12-27T23:41:23.000Z | import pytest
import copy
from pyconcrete import rebar
@pytest.fixture
def r1():
r = rebar.Rebar(
length=5,
diameter=20,
count=1,
insert=(0, 0))
return r
@pytest.fixture
def lr1():
r = rebar.LRebar(
length=5,
diameter=20,
count=2,
insert=(... | 17.902439 | 71 | 0.565395 | 352 | 2,202 | 3.420455 | 0.181818 | 0.093023 | 0.045681 | 0.043189 | 0.237542 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129838 | 0.27248 | 2,202 | 122 | 72 | 18.04918 | 0.621723 | 0.060854 | 0 | 0.126582 | 0 | 0 | 0.015996 | 0 | 0 | 0 | 0 | 0 | 0.367089 | 1 | 0.227848 | false | 0 | 0.037975 | 0 | 0.303797 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
280d4e3ad010a62da0f554f4ee04505e4ea2c3d1 | 2,558 | py | Python | test_module.py | EdvardasDlugauskas/Auto-Rain | 40c992a0253cc7affead821a3a31982b77c5027e | [
"MIT"
] | 1 | 2019-01-07T17:10:25.000Z | 2019-01-07T17:10:25.000Z | test_module.py | EdvardasDlugauskas/Auto-Rain | 40c992a0253cc7affead821a3a31982b77c5027e | [
"MIT"
] | null | null | null | test_module.py | EdvardasDlugauskas/Auto-Rain | 40c992a0253cc7affead821a3a31982b77c5027e | [
"MIT"
] | null | null | null | import icon_get
import unittest
import mainutils
import iconmanager
test_ini = """
[Rainmeter]
Author=tibneo.deviantart.com
Name=Mid Dock
------------------------------------------------------------------------
;Metadata added by RainBrowser
;http://rainmeter.net/RainCMS/?q=Rainmeter101_AnatomyOfASkin
[Metadata]
N... | 24.132075 | 120 | 0.681001 | 290 | 2,558 | 5.906897 | 0.403448 | 0.037361 | 0.056042 | 0.074723 | 0.304729 | 0.295388 | 0.196147 | 0.196147 | 0.095738 | 0 | 0 | 0.004942 | 0.129789 | 2,558 | 105 | 121 | 24.361905 | 0.7646 | 0 | 0 | 0.1875 | 0 | 0 | 0.727522 | 0.246677 | 0 | 0 | 0 | 0 | 0.05 | 1 | 0.025 | false | 0 | 0.05 | 0 | 0.0875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
280f6bcf49a5faa939af44021ab777c1afa7275d | 759 | py | Python | preprocessor/__init__.py | AntonYermilov/gec-dataset-analyzer | 671781ce20fa1cf36833cae5346b1b3631edb1bd | [
"MIT"
] | null | null | null | preprocessor/__init__.py | AntonYermilov/gec-dataset-analyzer | 671781ce20fa1cf36833cae5346b1b3631edb1bd | [
"MIT"
] | null | null | null | preprocessor/__init__.py | AntonYermilov/gec-dataset-analyzer | 671781ce20fa1cf36833cae5346b1b3631edb1bd | [
"MIT"
] | null | null | null | from .aesw import AESWPreprocessor
from .lang8 import Lang8Preprocessor
from .fce import FCEPreprocessor
from .jfleg import JFLEGPreprocessor
class DatasetPreprocessorNotFoundError(ValueError):
def __init__(self, preprocessor_name: str):
super().__init__()
self.message = f'Dataset preprocessor wit... | 33 | 91 | 0.750988 | 71 | 759 | 7.788732 | 0.464789 | 0.202532 | 0.068716 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006431 | 0.180501 | 759 | 22 | 92 | 34.5 | 0.882637 | 0 | 0 | 0 | 0 | 0 | 0.108037 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2810308737243bfe43d07cf8a28717e28ac4446e | 729 | py | Python | tests/test_base_element.py | oiakinat/shawl | 699aa28aa405ce4afc171b109567975f3d3a00f6 | [
"MIT"
] | 3 | 2021-09-24T07:40:40.000Z | 2022-03-09T14:15:31.000Z | tests/test_base_element.py | oiakinat/shawl | 699aa28aa405ce4afc171b109567975f3d3a00f6 | [
"MIT"
] | 1 | 2022-01-23T17:21:29.000Z | 2022-01-23T17:35:53.000Z | tests/test_base_element.py | oiakinat/shawl | 699aa28aa405ce4afc171b109567975f3d3a00f6 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# pylint:disable=protected-access
from shawl import BaseElement
def test_load_elements():
b_element = BaseElement('driver', **{'xpath': '//div'})
assert b_element._element is None
assert b_element._selector == ('xpath', '//div')
def test_check_str_repr():
b_element = BaseElem... | 29.16 | 77 | 0.615912 | 86 | 729 | 4.976744 | 0.337209 | 0.130841 | 0.17757 | 0.175234 | 0.278037 | 0.278037 | 0.278037 | 0 | 0 | 0 | 0 | 0.001664 | 0.175583 | 729 | 24 | 78 | 30.375 | 0.710483 | 0.072702 | 0 | 0.2 | 0 | 0 | 0.231798 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.2 | false | 0 | 0.066667 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2818348b92e52ccf47b38a679175099d163b812e | 255 | py | Python | answers/justshivam/Day 3/question2.py | arc03/30-DaysOfCode-March-2021 | 6d6e11bf70280a578113f163352fa4fa8408baf6 | [
"MIT"
] | 22 | 2021-03-16T14:07:47.000Z | 2021-08-13T08:52:50.000Z | answers/justshivam/Day 3/question2.py | arc03/30-DaysOfCode-March-2021 | 6d6e11bf70280a578113f163352fa4fa8408baf6 | [
"MIT"
] | 174 | 2021-03-16T21:16:40.000Z | 2021-06-12T05:19:51.000Z | answers/justshivam/Day 3/question2.py | arc03/30-DaysOfCode-March-2021 | 6d6e11bf70280a578113f163352fa4fa8408baf6 | [
"MIT"
] | 135 | 2021-03-16T16:47:12.000Z | 2021-06-27T14:22:38.000Z | def check(num):
stage = []
for i in num:
if i in stage:
print(f"{num} is not a Unique Number.")
return
stage.append(i)
print(f'{num} is a Unique Number.')
num = input('Enter the number: ')
check(num)
| 18.214286 | 51 | 0.52549 | 38 | 255 | 3.526316 | 0.526316 | 0.119403 | 0.134328 | 0.164179 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.345098 | 255 | 13 | 52 | 19.615385 | 0.802395 | 0 | 0 | 0 | 0 | 0 | 0.282353 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.2 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
281878eacb679efa67a39036bbe1c3dbdb6e1071 | 1,458 | py | Python | nginx_log_monitor/clients/overwatch_client.py | messa/nginx-log-monitor | 696cbd88b4de0882254a875423b978067c55bd8b | [
"MIT"
] | null | null | null | nginx_log_monitor/clients/overwatch_client.py | messa/nginx-log-monitor | 696cbd88b4de0882254a875423b978067c55bd8b | [
"MIT"
] | null | null | null | nginx_log_monitor/clients/overwatch_client.py | messa/nginx-log-monitor | 696cbd88b4de0882254a875423b978067c55bd8b | [
"MIT"
] | null | null | null | from aiohttp import ClientSession
from logging import getLogger
from reprlib import repr as smart_repr
logger = getLogger(__name__)
post_timeout_s = 30
class OverwatchClientNotConfiguredError (Exception):
pass
class OverwatchClientReportError (Exception):
pass
class OverwatchClient:
def __init__(s... | 31.695652 | 118 | 0.656379 | 164 | 1,458 | 5.54878 | 0.408537 | 0.079121 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001859 | 0.262003 | 1,458 | 45 | 119 | 32.4 | 0.843866 | 0 | 0 | 0.058824 | 0 | 0 | 0.11797 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 1 | 0.029412 | false | 0.058824 | 0.088235 | 0 | 0.205882 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
282a55f230f7c5f99145d4d3d2132ac58158a9f0 | 2,258 | py | Python | _templates/jinja2/cookiecutter-py/{{cookiecutter.name}}/choices/testfrwk/pytest/tests/test_classic.py | thebridge0491/intro_py | c8ef32d8df10fa07a3c7b191474074b2dfd640c3 | [
"CECILL-B"
] | null | null | null | _templates/jinja2/cookiecutter-py/{{cookiecutter.name}}/choices/testfrwk/pytest/tests/test_classic.py | thebridge0491/intro_py | c8ef32d8df10fa07a3c7b191474074b2dfd640c3 | [
"CECILL-B"
] | null | null | null | _templates/jinja2/cookiecutter-py/{{cookiecutter.name}}/choices/testfrwk/pytest/tests/test_classic.py | thebridge0491/intro_py | c8ef32d8df10fa07a3c7b191474074b2dfd640c3 | [
"CECILL-B"
] | null | null | null | # -*- coding: utf-8 -*-
'''Test cases for Classic module.'''from __future__ import (absolute_import, division, print_function,
unicode_literals)
import pytest
from future.builtins import (ascii, filter, hex, map, oct, zip, object, range)
from {{cookiecutter.parent}}.{{cookiecutter.project}} import classic
def in... | 37.633333 | 102 | 0.651019 | 368 | 2,258 | 3.755435 | 0.244565 | 0.02026 | 0.02026 | 0.023155 | 0.277135 | 0.191028 | 0.130246 | 0.036179 | 0.036179 | 0 | 0 | 0.036158 | 0.179362 | 2,258 | 59 | 103 | 38.271186 | 0.70966 | 0.126218 | 0 | 0 | 0 | 0 | 0.077242 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0 | null | null | 0 | 0.1 | null | null | 0.175 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
282b8d75881ced96b9fbb80f1c1b829a40e36f6e | 375 | py | Python | help/examples/only_analyze_demo.py | foxrenderfarm/rayvision_clarisse | d2f2dd4ef5394899b1b2e9ecc0d56c943ce56b1c | [
"Apache-2.0"
] | 1 | 2021-01-14T08:06:39.000Z | 2021-01-14T08:06:39.000Z | help/examples/only_analyze_demo.py | renderbus/rayvision_clarisse | 7971e4178a85ab9b98c7dd626a5c5fc655f67f8a | [
"Apache-2.0"
] | null | null | null | help/examples/only_analyze_demo.py | renderbus/rayvision_clarisse | 7971e4178a85ab9b98c7dd626a5c5fc655f67f8a | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""only analyze clarisse"""
from rayvision_clarisse.analyse_clarisse import AnalyzeClarisse
analyze_info = {
"cg_file": r"D:\files\CG FILE\clarisse_test1.project",
"workspace": "c:/workspace",
"software_version": "clarisse_ifx_4.0_sp3",
"project_name": "Project1",
"plugin_c... | 26.785714 | 63 | 0.698667 | 44 | 375 | 5.681818 | 0.704545 | 0.176 | 0.208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018462 | 0.133333 | 375 | 14 | 64 | 26.785714 | 0.750769 | 0.117333 | 0 | 0 | 0 | 0 | 0.417178 | 0.082822 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2830156d2e2c6c6599de21cec4f4443e7590f5da | 5,048 | py | Python | main.py | daniel20159050454/Biblioteca | e74b7a5a1e226edc57534cdc911e73b4be1f6e2b | [
"MIT"
] | null | null | null | main.py | daniel20159050454/Biblioteca | e74b7a5a1e226edc57534cdc911e73b4be1f6e2b | [
"MIT"
] | null | null | null | main.py | daniel20159050454/Biblioteca | e74b7a5a1e226edc57534cdc911e73b4be1f6e2b | [
"MIT"
] | null | null | null | import PyQt5
from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtWidgets import QMainWindow, QMessageBox, QApplication
import sys
from Telas_Usuario.tela_de_login import Ui_Tela_Login
from Telas_Usuario.adm_livro import Ui_MainWindow as Ui_Adm_Livro
from Telas_Usuario.cad_livro import Ui_MainWindow as Ui_Cadastro_L... | 36.57971 | 93 | 0.698296 | 598 | 5,048 | 5.66388 | 0.212375 | 0.051963 | 0.074402 | 0.042516 | 0.189844 | 0.106879 | 0.067021 | 0.054916 | 0.042516 | 0 | 0 | 0.022744 | 0.198693 | 5,048 | 138 | 94 | 36.57971 | 0.814586 | 0.012282 | 0 | 0.038835 | 0 | 0 | 0.059387 | 0.022296 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.126214 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2831a97f5a085c42862d5343ff1a5c44e658ee3c | 2,839 | py | Python | analysis.py | lanl/SHELTIE | e892461c693745bd40b61d3e876423c4daf7bd7b | [
"BSD-3-Clause"
] | 2 | 2020-03-19T08:22:05.000Z | 2020-09-02T20:57:39.000Z | analysis.py | lanl/SHELTIE | e892461c693745bd40b61d3e876423c4daf7bd7b | [
"BSD-3-Clause"
] | null | null | null | analysis.py | lanl/SHELTIE | e892461c693745bd40b61d3e876423c4daf7bd7b | [
"BSD-3-Clause"
] | 1 | 2020-03-19T08:22:06.000Z | 2020-03-19T08:22:06.000Z | #!/usr/bin/env python2
from test_json import test_json
from cleansing import parse_sublogs, build_graph
import os.path
import subprocess
import sys
import json
import argparse
from git import Repo
import re
import pprint
import git
import matplotlib
import binascii
parser = argparse.ArgumentParser()
parser.add_argum... | 31.544444 | 187 | 0.69285 | 386 | 2,839 | 4.940415 | 0.290155 | 0.066072 | 0.028841 | 0.029366 | 0.159413 | 0.159413 | 0.11956 | 0.056633 | 0.056633 | 0.056633 | 0 | 0.013912 | 0.164495 | 2,839 | 89 | 188 | 31.898876 | 0.790051 | 0.090877 | 0 | 0.089552 | 0 | 0 | 0.151963 | 0.008939 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.014925 | 0.208955 | null | null | 0.089552 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2838c828fb9767c6c133411c567136f2fd2dc258 | 7,241 | py | Python | pickle_details.py | garudlab/mother_infant | 98a27c83bf5ece9497d5a030c6c9396a8c514781 | [
"BSD-2-Clause"
] | null | null | null | pickle_details.py | garudlab/mother_infant | 98a27c83bf5ece9497d5a030c6c9396a8c514781 | [
"BSD-2-Clause"
] | null | null | null | pickle_details.py | garudlab/mother_infant | 98a27c83bf5ece9497d5a030c6c9396a8c514781 | [
"BSD-2-Clause"
] | null | null | null | # Script to pickle very specific information (allele identity and counts)
# for small set of given QP pairs at given sites
from utils import sample_utils as su, parse_midas_data, substitution_rates_utils, config, temporal_changes_utils, snps_utils, core_gene_utils, gene_diversity_utils
import numpy as np
from numpy.ra... | 37.713542 | 364 | 0.685126 | 956 | 7,241 | 4.961297 | 0.287657 | 0.014337 | 0.039427 | 0.021084 | 0.319418 | 0.295804 | 0.245625 | 0.192073 | 0.192073 | 0.192073 | 0 | 0.104697 | 0.126778 | 7,241 | 191 | 365 | 37.910995 | 0.645421 | 0.339732 | 0 | 0.291262 | 0 | 0 | 0.138273 | 0.05552 | 0 | 0 | 0 | 0.005236 | 0 | 0 | null | null | 0 | 0.087379 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
283b28b914382a569945bfeaab850d1576479f90 | 303 | py | Python | aedes_server/core/management/commands/compute_clusters.py | henriquenogueira/aedes | 43b8376a091c57dd45d342dea78301c0a79b5df0 | [
"MIT"
] | null | null | null | aedes_server/core/management/commands/compute_clusters.py | henriquenogueira/aedes | 43b8376a091c57dd45d342dea78301c0a79b5df0 | [
"MIT"
] | 8 | 2016-03-27T03:15:42.000Z | 2016-03-28T23:59:55.000Z | aedes_server/core/management/commands/compute_clusters.py | henriquenogueira/aedes | 43b8376a091c57dd45d342dea78301c0a79b5df0 | [
"MIT"
] | null | null | null | from aedes_server.core.clusters import compute_clusters
from django.core.management import BaseCommand
class Command(BaseCommand):
help = 'Calculate clusters for AedeSpot app.'
def handle(self, *args, **options):
'''
Computing clusters.
'''
compute_clusters()
| 23.307692 | 55 | 0.679868 | 32 | 303 | 6.34375 | 0.71875 | 0.147783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227723 | 303 | 12 | 56 | 25.25 | 0.867521 | 0.062706 | 0 | 0 | 0 | 0 | 0.138462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
283dcff01be6addeb48a806fe71f73fcc7803e9e | 431 | py | Python | jcasts/podcasts/migrations/0043_alter_podcast_hub_token.py | danjac/jcasts | 04f5ef1f536d51962c0433d092817c0153acb6af | [
"MIT"
] | 13 | 2021-09-17T07:41:00.000Z | 2022-02-10T10:00:48.000Z | jcasts/podcasts/migrations/0043_alter_podcast_hub_token.py | danjac/radiofeed | 06e2b10396345f0afcf7c1dfee67c41fbff153e1 | [
"MIT"
] | 167 | 2021-07-17T09:41:38.000Z | 2021-08-31T06:03:34.000Z | jcasts/podcasts/migrations/0043_alter_podcast_hub_token.py | danjac/jcasts | 04f5ef1f536d51962c0433d092817c0153acb6af | [
"MIT"
] | 3 | 2020-12-25T12:31:58.000Z | 2021-02-13T11:49:49.000Z | # Generated by Django 3.2.7 on 2021-09-18 10:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("podcasts", "0042_podcast_hub_exception"),
]
operations = [
migrations.AlterField(
model_name="podcast",
name="hub_to... | 22.684211 | 87 | 0.61949 | 48 | 431 | 5.458333 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059937 | 0.264501 | 431 | 18 | 88 | 23.944444 | 0.766562 | 0.104408 | 0 | 0 | 1 | 0 | 0.130208 | 0.067708 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2848f91bbd6c45fdb78b131b4902661b459c2a4a | 1,039 | py | Python | Web/sessionManager.py | cmd2001/Open-TesutoHime | 2c30aa35650383adfb99496aebd425dffd287eda | [
"MIT"
] | 11 | 2020-11-28T16:45:35.000Z | 2021-08-31T07:56:26.000Z | Web/sessionManager.py | cmd2001/Open-TesutoHime | 2c30aa35650383adfb99496aebd425dffd287eda | [
"MIT"
] | null | null | null | Web/sessionManager.py | cmd2001/Open-TesutoHime | 2c30aa35650383adfb99496aebd425dffd287eda | [
"MIT"
] | 2 | 2021-05-16T03:09:58.000Z | 2021-08-21T07:24:58.000Z | from userManager import UserManager
from flask import request
class SessionManager:
def __init__(self):
self.mem = {}
return
def check_user_status(self) -> bool: # to check whether current user has logged in properly
lid = request.cookies.get('Login_ID')
return lid in self.me... | 28.861111 | 96 | 0.635226 | 138 | 1,039 | 4.630435 | 0.318841 | 0.098592 | 0.106416 | 0.125196 | 0.28169 | 0.28169 | 0.28169 | 0.220657 | 0.156495 | 0.156495 | 0 | 0.001305 | 0.262753 | 1,039 | 35 | 97 | 29.685714 | 0.832898 | 0.076997 | 0 | 0.307692 | 0 | 0 | 0.033473 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0 | 0.653846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
28516547cc95cdd8dc1c7ee00a48b4f45b6b2b7a | 2,546 | py | Python | DataConnector/AppDataPublisher.py | twatteynelinear/dustlink_sierra | 9dac02d4fdfdee240a8a9da2e6abc2d7fda3443b | [
"BSD-3-Clause"
] | 4 | 2016-09-07T05:46:20.000Z | 2020-05-31T21:34:27.000Z | DataConnector/AppDataPublisher.py | twatteynelinear/dustlink_sierra | 9dac02d4fdfdee240a8a9da2e6abc2d7fda3443b | [
"BSD-3-Clause"
] | null | null | null | DataConnector/AppDataPublisher.py | twatteynelinear/dustlink_sierra | 9dac02d4fdfdee240a8a9da2e6abc2d7fda3443b | [
"BSD-3-Clause"
] | 6 | 2015-01-22T10:14:24.000Z | 2020-05-31T21:34:30.000Z | #!/usr/bin/python
import logging
class NullHandler(logging.Handler):
def emit(self, record):
pass
log = logging.getLogger('AppDataPublisher')
log.setLevel(logging.ERROR)
log.addHandler(NullHandler())
import copy
import threading
from DustLinkData import DustLinkData
from EventBus import EventBusClient
... | 31.04878 | 83 | 0.505892 | 222 | 2,546 | 5.711712 | 0.441441 | 0.05205 | 0.047319 | 0.06388 | 0.15694 | 0.064669 | 0.064669 | 0 | 0 | 0 | 0 | 0.00187 | 0.369992 | 2,546 | 82 | 84 | 31.04878 | 0.788653 | 0.240377 | 0 | 0.227273 | 0 | 0 | 0.065435 | 0.017942 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068182 | false | 0.090909 | 0.113636 | 0 | 0.227273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
285f8b1e1f0cc59cad170fea916955dbdcf710cd | 759 | py | Python | branchdb/git_tools.py | CalgaryMichael/branchdb-python | 77b467105cdcaa7346c19c3882f05d85bc238268 | [
"MIT"
] | null | null | null | branchdb/git_tools.py | CalgaryMichael/branchdb-python | 77b467105cdcaa7346c19c3882f05d85bc238268 | [
"MIT"
] | null | null | null | branchdb/git_tools.py | CalgaryMichael/branchdb-python | 77b467105cdcaa7346c19c3882f05d85bc238268 | [
"MIT"
] | null | null | null | # coding=utf-8
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import os
from git import Repo
def get_repo():
"""Returns the Repo of the current directory"""
call_dir = os.getcwd()
return Repo(call_dir, s... | 26.172414 | 76 | 0.736495 | 113 | 759 | 4.637168 | 0.433628 | 0.076336 | 0.122137 | 0.068702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001608 | 0.180501 | 759 | 28 | 77 | 27.107143 | 0.840836 | 0.243742 | 0 | 0.117647 | 0 | 0 | 0.026882 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.352941 | 0 | 0.705882 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
28607043774032856385bb4bbe15be45439a3133 | 1,190 | py | Python | player.py | duct-tape/taped-car-stereo | b6d3aa82e694bc0607726defec65171e9396d7e1 | [
"BSD-3-Clause"
] | null | null | null | player.py | duct-tape/taped-car-stereo | b6d3aa82e694bc0607726defec65171e9396d7e1 | [
"BSD-3-Clause"
] | null | null | null | player.py | duct-tape/taped-car-stereo | b6d3aa82e694bc0607726defec65171e9396d7e1 | [
"BSD-3-Clause"
] | null | null | null | import pifacecad
import asyncore
from mplayer.async import AsyncPlayer
def handle_data(data):
if not data.startswith('EOF code'):
print('log: %s' % (data, ))
else:
player.quit()
def init_player():
# Don't autospawn because we want to setup the args later
player = AsyncPlayer(autospaw... | 21.636364 | 69 | 0.652941 | 155 | 1,190 | 4.890323 | 0.567742 | 0.026385 | 0.047493 | 0.05277 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005388 | 0.220168 | 1,190 | 54 | 70 | 22.037037 | 0.811422 | 0.17563 | 0 | 0 | 0 | 0 | 0.097636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.103448 | null | null | 0.068966 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2867a0b2de719615fc2aae5986977f44b48e36f0 | 1,502 | py | Python | bookorbooks/school/models/class_model.py | talhakoylu/SummerInternshipBackend | 4ecedf5c97f73e3d32d5a534769e86aac3e4b6d3 | [
"MIT"
] | 1 | 2021-08-10T22:24:17.000Z | 2021-08-10T22:24:17.000Z | bookorbooks/school/models/class_model.py | talhakoylu/SummerInternshipBackend | 4ecedf5c97f73e3d32d5a534769e86aac3e4b6d3 | [
"MIT"
] | null | null | null | bookorbooks/school/models/class_model.py | talhakoylu/SummerInternshipBackend | 4ecedf5c97f73e3d32d5a534769e86aac3e4b6d3 | [
"MIT"
] | null | null | null | from django.core.exceptions import ValidationError
from constants.school_strings import SchoolStrings
from django.db import models
from school.models.abstract_base_model import AbstractSchoolBaseModel
class Class(AbstractSchoolBaseModel):
school = models.ForeignKey(
"school.School",
on_delete=mode... | 40.594595 | 108 | 0.731025 | 164 | 1,502 | 6.45122 | 0.396341 | 0.124764 | 0.113422 | 0.170132 | 0.215501 | 0.060491 | 0 | 0 | 0 | 0 | 0 | 0.001647 | 0.191744 | 1,502 | 37 | 109 | 40.594595 | 0.869852 | 0.066578 | 0 | 0.068966 | 0 | 0.034483 | 0.096447 | 0.018129 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.137931 | 0.034483 | 0.448276 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
286a024f6549af62ec73d6dcb54fc1bc5a25e9f3 | 346 | py | Python | cstorage/tests/listen-gcs.py | sebgoa/triggers | 592db253c74806220712b3b872b3ed2c55c9cdf9 | [
"Apache-2.0"
] | 4 | 2019-02-21T20:01:49.000Z | 2021-11-08T10:26:44.000Z | cstorage/tests/listen-gcs.py | sebgoa/triggers | 592db253c74806220712b3b872b3ed2c55c9cdf9 | [
"Apache-2.0"
] | null | null | null | cstorage/tests/listen-gcs.py | sebgoa/triggers | 592db253c74806220712b3b872b3ed2c55c9cdf9 | [
"Apache-2.0"
] | 3 | 2018-02-15T21:51:49.000Z | 2021-07-29T19:36:49.000Z | #!/usr/bin/env python
from google.cloud import pubsub_v1
sub = pubsub_v1.SubscriberClient()
#topic = 'project/skippbox/topics/barfoo'
sub_name = 'projects/skippbox/subscriptions/carogoasub'
subscription = sub.subscribe(sub_name)
def callback(message):
print message
message.ack()
future = subscription.open(... | 20.352941 | 55 | 0.768786 | 43 | 346 | 6.093023 | 0.72093 | 0.061069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006536 | 0.115607 | 346 | 16 | 56 | 21.625 | 0.849673 | 0.17341 | 0 | 0 | 0 | 0 | 0.147887 | 0.147887 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
286d5b9d2e04078fa4c32e1cc640012049719cbd | 2,136 | py | Python | Jasper/Light.py | Granyy/maison_intelligente | 651baa0b368d16e8c3abe10ed4c560ad0ee75ea4 | [
"MIT"
] | null | null | null | Jasper/Light.py | Granyy/maison_intelligente | 651baa0b368d16e8c3abe10ed4c560ad0ee75ea4 | [
"MIT"
] | null | null | null | Jasper/Light.py | Granyy/maison_intelligente | 651baa0b368d16e8c3abe10ed4c560ad0ee75ea4 | [
"MIT"
] | null | null | null | #******************************************************************************#
#* @TITRE : Light.py *#
#* @VERSION : 1.0 *#
#* @CREATION : 05 01, 2017 ... | 36.20339 | 80 | 0.411049 | 169 | 2,136 | 5.177515 | 0.633136 | 0.022857 | 0.020571 | 0.038857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037066 | 0.406367 | 2,136 | 58 | 81 | 36.827586 | 0.652997 | 0.511236 | 0 | 0 | 0 | 0 | 0.250984 | 0.035433 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.28125 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
28706e766963600d673c5f045c6e4eb8e8cd473a | 1,283 | py | Python | nc/migrations/0035_portfolio_rawportfoliodata.py | kfarrelly/nucleo | 096fa9fdfac39383269904f5d58b3714ce2d2f46 | [
"Apache-2.0"
] | 1 | 2022-01-10T23:35:53.000Z | 2022-01-10T23:35:53.000Z | nc/migrations/0035_portfolio_rawportfoliodata.py | kfarrelly/nucleo | 096fa9fdfac39383269904f5d58b3714ce2d2f46 | [
"Apache-2.0"
] | null | null | null | nc/migrations/0035_portfolio_rawportfoliodata.py | kfarrelly/nucleo | 096fa9fdfac39383269904f5d58b3714ce2d2f46 | [
"Apache-2.0"
] | 1 | 2022-01-10T23:36:32.000Z | 2022-01-10T23:36:32.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-07-16 15:20
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('nc', '0034_auto_20180710_2209'),
]
operations = [... | 34.675676 | 173 | 0.58145 | 128 | 1,283 | 5.664063 | 0.53125 | 0.044138 | 0.057931 | 0.091034 | 0.102069 | 0.102069 | 0.102069 | 0 | 0 | 0 | 0 | 0.038961 | 0.279813 | 1,283 | 36 | 174 | 35.638889 | 0.745671 | 0.05378 | 0 | 0.275862 | 1 | 0 | 0.135425 | 0.018993 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.103448 | 0 | 0.206897 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
287870d5ce270739edbc8b0c70e9f1bb117810dc | 9,797 | py | Python | dqn_cartpole.py | subinlab/dqn | e1b9175a5c9dc2fb7b633b4df54c33fbba7e1e15 | [
"MIT"
] | 1 | 2021-01-11T14:42:42.000Z | 2021-01-11T14:42:42.000Z | dqn_cartpole.py | subinlab/dqn | e1b9175a5c9dc2fb7b633b4df54c33fbba7e1e15 | [
"MIT"
] | null | null | null | dqn_cartpole.py | subinlab/dqn | e1b9175a5c9dc2fb7b633b4df54c33fbba7e1e15 | [
"MIT"
] | null | null | null | import gym
import math
import random
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
from collections import namedtuple
from itertools import count
from PIL import Image
import torch
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional as F
import torchvision.transforms as... | 32.656667 | 113 | 0.617332 | 1,286 | 9,797 | 4.534215 | 0.255832 | 0.021609 | 0.015606 | 0.011662 | 0.135654 | 0.086435 | 0.047333 | 0.027783 | 0.027783 | 0.014406 | 0 | 0.022638 | 0.274063 | 9,797 | 299 | 114 | 32.765886 | 0.797244 | 0 | 0 | 0.118227 | 0 | 0 | 0.024379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1133 | null | null | 0.009852 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
287c90c0949e613a63246eaf36228f52c5fc0f46 | 470 | py | Python | latextools_utils/is_tex_file.py | MPvHarmelen/MarkdownCiteCompletions | 7a14978a295550203cef96347fb1342599b46899 | [
"MIT"
] | null | null | null | latextools_utils/is_tex_file.py | MPvHarmelen/MarkdownCiteCompletions | 7a14978a295550203cef96347fb1342599b46899 | [
"MIT"
] | null | null | null | latextools_utils/is_tex_file.py | MPvHarmelen/MarkdownCiteCompletions | 7a14978a295550203cef96347fb1342599b46899 | [
"MIT"
] | null | null | null | from .settings import get_setting
strbase = str
def get_tex_extensions():
tex_file_exts = get_setting('tex_file_exts', ['.tex'])
return [s.lower() for s in set(tex_file_exts)]
def is_tex_file(file_name):
if not isinstance(file_name, strbase):
raise TypeError('file_name must be a string')
te... | 24.736842 | 58 | 0.689362 | 72 | 470 | 4.194444 | 0.458333 | 0.139073 | 0.182119 | 0.092715 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214894 | 470 | 18 | 59 | 26.111111 | 0.818428 | 0 | 0 | 0 | 0 | 0 | 0.091489 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.076923 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
288b3de14a7f5f916d773623da75a9cfed90da4f | 1,780 | py | Python | example/paywall/migrations/0002_auto_20200417_2107.py | wuuuduu/django-getpaid | d864de53bc947e2d1ab4f2d3879a803cab1216d3 | [
"MIT"
] | 6 | 2020-05-26T08:49:10.000Z | 2022-01-03T17:44:19.000Z | example/paywall/migrations/0002_auto_20200417_2107.py | wuuuduu/django-getpaid | d864de53bc947e2d1ab4f2d3879a803cab1216d3 | [
"MIT"
] | null | null | null | example/paywall/migrations/0002_auto_20200417_2107.py | wuuuduu/django-getpaid | d864de53bc947e2d1ab4f2d3879a803cab1216d3 | [
"MIT"
] | 1 | 2021-08-23T06:59:05.000Z | 2021-08-23T06:59:05.000Z | # Generated by Django 3.0.5 on 2020-04-17 21:07
import uuid
import django_fsm
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("paywall", "0001_initial"),
]
operations = [
migrations.RemoveField(model_name="paymententry", name="payment",... | 30.689655 | 86 | 0.462921 | 137 | 1,780 | 5.883212 | 0.518248 | 0.044665 | 0.104218 | 0.124069 | 0.354839 | 0.246898 | 0 | 0 | 0 | 0 | 0 | 0.025739 | 0.410674 | 1,780 | 57 | 87 | 31.22807 | 0.742612 | 0.025281 | 0 | 0.42 | 1 | 0 | 0.212349 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.06 | 0 | 0.12 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
288ba8fd6c9ffb0727ac3f45907e3bead5651c75 | 470 | py | Python | python/search_in_binary_search_tree.py | anishLearnsToCode/leetcode-algorithms | d5a84e9179a4c3427890313a933fe1950fbcdabc | [
"MIT"
] | 17 | 2020-06-13T15:05:55.000Z | 2022-03-16T18:28:53.000Z | python/search_in_binary_search_tree.py | anishLearnsToCode/leetcode-algorithms | d5a84e9179a4c3427890313a933fe1950fbcdabc | [
"MIT"
] | null | null | null | python/search_in_binary_search_tree.py | anishLearnsToCode/leetcode-algorithms | d5a84e9179a4c3427890313a933fe1950fbcdabc | [
"MIT"
] | 9 | 2020-12-27T19:17:58.000Z | 2022-03-22T07:02:19.000Z | # Definition for a binary tree node.
from typing import Optional
class TreeNode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
class Solution:
def searchBST(self, root: Optional[TreeNode], val: int) -> Optional[TreeNode]:
... | 29.375 | 100 | 0.665957 | 68 | 470 | 4.544118 | 0.426471 | 0.058252 | 0.064725 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00277 | 0.231915 | 470 | 15 | 101 | 31.333333 | 0.853186 | 0.07234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
288c0574b1e953436d412d6f3e5b251fc447bcd2 | 439 | py | Python | sdk/python/feast/infra/offline_stores/contrib/postgres_repo_configuration.py | ibnummuhammad/feast | 1fd9c2def1fbaca68e865a7c67336793ddb25582 | [
"Apache-2.0"
] | null | null | null | sdk/python/feast/infra/offline_stores/contrib/postgres_repo_configuration.py | ibnummuhammad/feast | 1fd9c2def1fbaca68e865a7c67336793ddb25582 | [
"Apache-2.0"
] | null | null | null | sdk/python/feast/infra/offline_stores/contrib/postgres_repo_configuration.py | ibnummuhammad/feast | 1fd9c2def1fbaca68e865a7c67336793ddb25582 | [
"Apache-2.0"
] | null | null | null | from feast.infra.offline_stores.contrib.postgres_offline_store.tests.data_source import (
PostgreSQLDataSourceCreator,
)
from tests.integration.feature_repos.integration_test_repo_config import (
IntegrationTestRepoConfig,
)
FULL_REPO_CONFIGS = [
IntegrationTestRepoConfig(
provider="local",
... | 29.266667 | 89 | 0.792711 | 39 | 439 | 8.564103 | 0.666667 | 0.071856 | 0.233533 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14123 | 439 | 14 | 90 | 31.357143 | 0.885942 | 0 | 0 | 0 | 0 | 0 | 0.01139 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
288d3fc9f06ba493a58b89d8e59af71e0019ce3f | 727 | py | Python | preprocessor/constants.py | AhsanAliLodhi/statistical_data_preprocessing | cd36dbbb08f1a8e5aa9f68be7c2fcc6bc52e1d5d | [
"MIT"
] | null | null | null | preprocessor/constants.py | AhsanAliLodhi/statistical_data_preprocessing | cd36dbbb08f1a8e5aa9f68be7c2fcc6bc52e1d5d | [
"MIT"
] | null | null | null | preprocessor/constants.py | AhsanAliLodhi/statistical_data_preprocessing | cd36dbbb08f1a8e5aa9f68be7c2fcc6bc52e1d5d | [
"MIT"
] | null | null | null | # TODO: Substitue all strings with constants
# Column types (in context of data science)
TYPE = {
'numerical',
'categorical',
'datetime'
}
# List of date time features available in pandas date time columns
DATE_TIME_FEATURES = {
'NUMERICS':['year', 'month', 'day', 'hour', 'dayofyear', 'weekofyear', 'w... | 27.961538 | 95 | 0.660248 | 90 | 727 | 5.133333 | 0.544444 | 0.051948 | 0.069264 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196699 | 727 | 26 | 96 | 27.961538 | 0.791096 | 0.345254 | 0 | 0 | 0 | 0 | 0.460722 | 0 | 0 | 0 | 0 | 0.038462 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2890dba0eacc48fdae4a57c4389c9a75f2aca255 | 207 | py | Python | Chapter 6/Code/servo_minimum.py | professor-li/book-dow-iot-projects | 5b2b16459298a6503b87c17ac550e635299aa945 | [
"MIT"
] | 17 | 2018-05-26T13:00:57.000Z | 2021-11-11T09:07:18.000Z | Chapter 6/Code/servo_minimum.py | professor-li/book-dow-iot-projects | 5b2b16459298a6503b87c17ac550e635299aa945 | [
"MIT"
] | null | null | null | Chapter 6/Code/servo_minimum.py | professor-li/book-dow-iot-projects | 5b2b16459298a6503b87c17ac550e635299aa945 | [
"MIT"
] | 16 | 2018-05-14T09:04:41.000Z | 2021-11-11T09:07:22.000Z | from gpiozero import Servo
servoPin=17
servoCorrection=0.5
maxPW=(2.0+servoCorrection)/1000
minPW=(1.0-servoCorrection)/1000
servo=Servo(servoPin, min_pulse_width=minPW, max_pulse_width=maxPW)
servo.min() | 20.7 | 67 | 0.811594 | 32 | 207 | 5.125 | 0.5625 | 0.158537 | 0.243902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082902 | 0.067633 | 207 | 10 | 68 | 20.7 | 0.766839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
289593ee313b01db2e14c4b2e194410b9398c92a | 245 | py | Python | manage.py | larryTheGeek/ride_my_way_v2 | b5f20095308a9230dc4fc63fcacae278c8f8ed71 | [
"MIT"
] | null | null | null | manage.py | larryTheGeek/ride_my_way_v2 | b5f20095308a9230dc4fc63fcacae278c8f8ed71 | [
"MIT"
] | 5 | 2021-03-18T20:54:03.000Z | 2022-03-11T23:27:31.000Z | manage.py | LarryKarani/ride_my_way_v2 | b5f20095308a9230dc4fc63fcacae278c8f8ed71 | [
"MIT"
] | null | null | null | import os
from app.app import create_app
from app.models.db import Db
environment = os.getenv('config_name')
app = create_app(environment)
#creates database tables if they don't exist
Db.create_tables()
if __name__ == '__main__':
app.run() | 22.272727 | 44 | 0.759184 | 39 | 245 | 4.461538 | 0.538462 | 0.08046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138776 | 245 | 11 | 45 | 22.272727 | 0.824645 | 0.17551 | 0 | 0 | 0 | 0 | 0.094059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
289b05f3d499c83127ffda59982522f5afc40e2c | 2,532 | py | Python | albackup/__main__.py | campenberger/albackup | ac23fc22716b852883a58762bd631496789e376b | [
"MIT"
] | null | null | null | albackup/__main__.py | campenberger/albackup | ac23fc22716b852883a58762bd631496789e376b | [
"MIT"
] | null | null | null | albackup/__main__.py | campenberger/albackup | ac23fc22716b852883a58762bd631496789e376b | [
"MIT"
] | null | null | null | import argparse
import logging
import json
import sqlalchemy as sa
from .dump import Dump
from .restore import Restore
from . import Password
if __name__ == '__main__':
parser=argparse.ArgumentParser("python -m albackup")
parser.add_argument('mode',metavar='MODE',choices=('dump','restore','chg-password'), help="mo... | 33.315789 | 142 | 0.706161 | 363 | 2,532 | 4.801653 | 0.327824 | 0.06311 | 0.048766 | 0.025818 | 0.052783 | 0.027539 | 0 | 0 | 0 | 0 | 0 | 0.002245 | 0.120458 | 2,532 | 76 | 143 | 33.315789 | 0.780422 | 0 | 0 | 0.03125 | 0 | 0 | 0.344256 | 0.058034 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 0.109375 | 0 | 0.109375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
289b55bb1fb1a327e6fb705b7ba124950dd74478 | 7,013 | py | Python | train/utils.py | mcclow12/chatbot | 63d3ca2102d30e9af7b4e4e8a43af3041e578ceb | [
"MIT"
] | null | null | null | train/utils.py | mcclow12/chatbot | 63d3ca2102d30e9af7b4e4e8a43af3041e578ceb | [
"MIT"
] | null | null | null | train/utils.py | mcclow12/chatbot | 63d3ca2102d30e9af7b4e4e8a43af3041e578ceb | [
"MIT"
] | null | null | null | import random
def utils_min_required():
responses = [
"Sorry, I need your opinion on a movie "\
"before I can give you quality recommendations.",
"Sorry, I don't have enough information yet "\
"to make a good recommendation.",
"I can't give a good recomme... | 43.290123 | 82 | 0.580493 | 969 | 7,013 | 4.185759 | 0.198142 | 0.031065 | 0.024408 | 0.046598 | 0.510108 | 0.464004 | 0.392258 | 0.310404 | 0.294132 | 0.294132 | 0 | 0.005551 | 0.332098 | 7,013 | 161 | 83 | 43.559006 | 0.860376 | 0 | 0 | 0.348993 | 0 | 0 | 0.607958 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060403 | false | 0 | 0.006711 | 0 | 0.127517 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
289f92c113167bfa4805c22d6325e4ea08fdeeaf | 309 | py | Python | padinfo/view_state/otherinfo.py | chasehult/padbot-cogs | 627b2e7be6103ca6fbe0cb8b6e0500ea8fc21bbb | [
"MIT"
] | null | null | null | padinfo/view_state/otherinfo.py | chasehult/padbot-cogs | 627b2e7be6103ca6fbe0cb8b6e0500ea8fc21bbb | [
"MIT"
] | null | null | null | padinfo/view_state/otherinfo.py | chasehult/padbot-cogs | 627b2e7be6103ca6fbe0cb8b6e0500ea8fc21bbb | [
"MIT"
] | null | null | null | from padinfo.pane_names import IdMenuPaneNames
from padinfo.view_state.base_id import ViewStateBaseId
class OtherInfoViewState(ViewStateBaseId):
def serialize(self):
ret = super().serialize()
ret.update({
'pane_type': IdMenuPaneNames.otherinfo,
})
return ret
| 25.75 | 54 | 0.68932 | 31 | 309 | 6.741935 | 0.709677 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.229773 | 309 | 11 | 55 | 28.090909 | 0.878151 | 0 | 0 | 0 | 0 | 0 | 0.029126 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.