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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2bc827b81d318e5b08fd6be908891296ced5a47e | 3,350 | py | Python | src/bpyutils/util/request.py | achillesrasquinha/bpyutils | 84bbbf1dc37629413fbc14b909188a54995e95a1 | [
"MIT"
] | 1 | 2022-02-01T04:50:22.000Z | 2022-02-01T04:50:22.000Z | src/bpyutils/util/request.py | achillesrasquinha/bpyutils | 84bbbf1dc37629413fbc14b909188a54995e95a1 | [
"MIT"
] | 2 | 2021-12-07T10:40:44.000Z | 2021-12-23T13:42:07.000Z | src/bpyutils/util/request.py | achillesrasquinha/bpyutils | 84bbbf1dc37629413fbc14b909188a54995e95a1 | [
"MIT"
] | null | null | null | import re
import os.path as osp
import requests
# from fake_useragent import UserAgent
from bpyutils.db import get_connection
from bpyutils.util.proxy import get_random_requests_proxies
from bpyutils.util._dict import merge_dict
from bpyutils.util.imports import import_or_raise
from bpyutils.util.string ... | 30.18018 | 100 | 0.618806 | 429 | 3,350 | 4.682984 | 0.314685 | 0.047785 | 0.047785 | 0.035839 | 0.151319 | 0.040816 | 0.005973 | 0.005973 | 0.005973 | 0 | 0 | 0.010212 | 0.24 | 3,350 | 111 | 101 | 30.18018 | 0.778869 | 0.096716 | 0 | 0.106667 | 0 | 0.026667 | 0.120066 | 0.046434 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053333 | false | 0 | 0.186667 | 0 | 0.306667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2bcbff98a3b8f0e8db73d81591bf41ea08b8b323 | 1,845 | py | Python | bclearer_boson_1_2_source/b_code/configurations/getters/boson_1_2_2e_c3_configuration_getter_merge_inspire_bclearer_naming_pattern.py | teapowell/bclearer_boson_1_2 | 571b2e1ca6dee93ccc5cb4e30abe2660f40c2ac0 | [
"MIT"
] | null | null | null | bclearer_boson_1_2_source/b_code/configurations/getters/boson_1_2_2e_c3_configuration_getter_merge_inspire_bclearer_naming_pattern.py | teapowell/bclearer_boson_1_2 | 571b2e1ca6dee93ccc5cb4e30abe2660f40c2ac0 | [
"MIT"
] | null | null | null | bclearer_boson_1_2_source/b_code/configurations/getters/boson_1_2_2e_c3_configuration_getter_merge_inspire_bclearer_naming_pattern.py | teapowell/bclearer_boson_1_2 | 571b2e1ca6dee93ccc5cb4e30abe2660f40c2ac0 | [
"MIT"
] | 1 | 2021-11-19T13:05:53.000Z | 2021-11-19T13:05:53.000Z | from bclearer_source.b_code.common_knowledge.content_operation_types import ContentOperationTypes
from bclearer_source.b_code.common_knowledge.digitialisation_level_stereotype_matched_ea_objects import \
DigitalisationLevelStereotypeMatchedEaObjects
from bclearer_source.b_code.configurations.content_operation_confi... | 52.714286 | 138 | 0.852033 | 191 | 1,845 | 7.60733 | 0.303665 | 0.049553 | 0.045423 | 0.052306 | 0.348245 | 0.319339 | 0.26841 | 0.216105 | 0.096352 | 0.096352 | 0 | 0.015922 | 0.114905 | 1,845 | 34 | 139 | 54.264706 | 0.873852 | 0 | 0 | 0.074074 | 0 | 0 | 0.03794 | 0.03794 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.222222 | 0 | 0.37037 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2bcdc35a04b16095280a01dc75b1da9b3b40cc93 | 1,246 | py | Python | HackerRank/Interview Preparation Kit/Arrays/Dynamic Array/solution.py | ltdangkhoa/Computer-Science-Fundamental | b70ba714e1dd13fcb377125e047c5fc08d3a82b3 | [
"MIT"
] | null | null | null | HackerRank/Interview Preparation Kit/Arrays/Dynamic Array/solution.py | ltdangkhoa/Computer-Science-Fundamental | b70ba714e1dd13fcb377125e047c5fc08d3a82b3 | [
"MIT"
] | null | null | null | HackerRank/Interview Preparation Kit/Arrays/Dynamic Array/solution.py | ltdangkhoa/Computer-Science-Fundamental | b70ba714e1dd13fcb377125e047c5fc08d3a82b3 | [
"MIT"
] | null | null | null | """solution.py"""
import math
import os
import random
import re
import sys
import timeit
class SimpleXOR:
def xor(self, a, b):
return a ^ b
def dynamicArray(n, queries):
last_answer = 0
all_answer = []
arr = [[] for _ in range(n)]
xor = SimpleXOR()
for row in queries:
t = row... | 22.654545 | 79 | 0.539326 | 171 | 1,246 | 3.777778 | 0.403509 | 0.069659 | 0.06192 | 0.065015 | 0.111455 | 0.111455 | 0.111455 | 0.111455 | 0 | 0 | 0 | 0.01649 | 0.31862 | 1,246 | 54 | 80 | 23.074074 | 0.740872 | 0.020867 | 0 | 0.046512 | 0 | 0 | 0.029777 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069767 | false | 0 | 0.139535 | 0.023256 | 0.27907 | 0.046512 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2bcdd23129cd748120cb2b5f88558b1bd84fa70e | 9,644 | py | Python | prettifyoutput_fast.py | compbio-iitr/SRFv2 | b7350f15db4ff0f21f268b81d78d77004530a6e8 | [
"MIT"
] | null | null | null | prettifyoutput_fast.py | compbio-iitr/SRFv2 | b7350f15db4ff0f21f268b81d78d77004530a6e8 | [
"MIT"
] | null | null | null | prettifyoutput_fast.py | compbio-iitr/SRFv2 | b7350f15db4ff0f21f268b81d78d77004530a6e8 | [
"MIT"
] | null | null | null | import re
import json
from reading_json import modification_json
from downloadable_file_fast import downloadable
def _get_nucleotide_contributions(line):
patterns = line.split(' ')
contribution = [{'A': 0, 'C': 0, 'T': 0, 'G': 0} for i in range(len(patterns[0]))]
for pattern in patterns:
# print p... | 39.52459 | 219 | 0.501659 | 1,068 | 9,644 | 4.367978 | 0.153558 | 0.049303 | 0.021222 | 0.032797 | 0.598714 | 0.527331 | 0.434941 | 0.419293 | 0.403859 | 0.403859 | 0 | 0.018969 | 0.344048 | 9,644 | 244 | 220 | 39.52459 | 0.718463 | 0.282663 | 0 | 0.140741 | 0 | 0.014815 | 0.14177 | 0.044331 | 0.014815 | 0 | 0 | 0 | 0 | 1 | 0.02963 | false | 0 | 0.02963 | 0 | 0.088889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2bcf4ebb9b8e16ba99b810270dfd24d5a5b61f81 | 1,235 | py | Python | jsonscribe/filters.py | aweber/json-scribe | cc5ea2ed33afb0ffcee0c4610de77be83200c173 | [
"BSD-3-Clause"
] | null | null | null | jsonscribe/filters.py | aweber/json-scribe | cc5ea2ed33afb0ffcee0c4610de77be83200c173 | [
"BSD-3-Clause"
] | 1 | 2021-05-12T17:54:04.000Z | 2021-05-12T17:54:04.000Z | jsonscribe/filters.py | aweber/json-scribe | cc5ea2ed33afb0ffcee0c4610de77be83200c173 | [
"BSD-3-Clause"
] | 1 | 2021-05-12T12:16:39.000Z | 2021-05-12T12:16:39.000Z | import logging
import uuid
from jsonscribe import utils
class AttributeSetter(logging.Filter):
"""
Ensure that attributes exist on :class:`~logging.LogRecord` s.
:keyword dict add_fields: maps fields to create on
:class:`~logging.LogRecord` instances to their default
values
The valu... | 28.068182 | 71 | 0.595951 | 144 | 1,235 | 5.006944 | 0.527778 | 0.062413 | 0.038835 | 0.0638 | 0.061026 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004592 | 0.294737 | 1,235 | 43 | 72 | 28.72093 | 0.823192 | 0.397571 | 0 | 0 | 0 | 0 | 0.04246 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.157895 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2bd109992083f654ea69f6db60e377f6f8a7e5c8 | 831 | py | Python | sounds/.ipynb_checkpoints/preprocess_sound-checkpoint.py | yanisbahroun/NeurIPS_SM_ICA | 07a719564153be5732a9ad556337d0bb55c9cb1c | [
"BSD-2-Clause"
] | null | null | null | sounds/.ipynb_checkpoints/preprocess_sound-checkpoint.py | yanisbahroun/NeurIPS_SM_ICA | 07a719564153be5732a9ad556337d0bb55c9cb1c | [
"BSD-2-Clause"
] | null | null | null | sounds/.ipynb_checkpoints/preprocess_sound-checkpoint.py | yanisbahroun/NeurIPS_SM_ICA | 07a719564153be5732a9ad556337d0bb55c9cb1c | [
"BSD-2-Clause"
] | null | null | null | """The script makes the sources to have same length,
as well as have the same sampling rate"""
from scipy.io import wavfile
import utilities as utl
# Read the .wav files as numpy arrays
rate1, data1 = wavfile.read("sourceX.wav")
rate2, data2 = wavfile.read("sourceY.wav")
# Plot the sounds as time series data
utl.plot... | 37.772727 | 106 | 0.740072 | 135 | 831 | 4.540741 | 0.451852 | 0.058728 | 0.032626 | 0.052202 | 0.078303 | 0.078303 | 0.078303 | 0 | 0 | 0 | 0 | 0.035211 | 0.145608 | 831 | 22 | 107 | 37.772727 | 0.828169 | 0.43201 | 0 | 0 | 0 | 0 | 0.213823 | 0.082073 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2bd309d040112a1127680460018a592ca804766a | 1,389 | py | Python | swi_ml/classification/logistic_regression.py | aitikgupta/swi-ml | c7a44c71683a9bfb4adb13c7eb6117e652177807 | [
"MIT"
] | 16 | 2021-01-30T16:03:19.000Z | 2022-03-27T11:13:05.000Z | swi_ml/classification/logistic_regression.py | aitikgupta/swi-ml | c7a44c71683a9bfb4adb13c7eb6117e652177807 | [
"MIT"
] | 1 | 2021-01-30T19:28:05.000Z | 2021-01-30T19:28:05.000Z | swi_ml/classification/logistic_regression.py | aitikgupta/swi-ml | c7a44c71683a9bfb4adb13c7eb6117e652177807 | [
"MIT"
] | null | null | null | from swi_ml import activations
from swi_ml.regression.linear_regression import (
_BaseRegression,
L1_L2Regularisation,
)
class LogisticRegressionGD(_BaseRegression):
def __init__(
self,
num_iterations: int,
learning_rate: float,
multiply_factor=None,
l1_ratio=None,
... | 28.346939 | 65 | 0.596832 | 137 | 1,389 | 5.80292 | 0.489051 | 0.055346 | 0.022642 | 0.037736 | 0.083019 | 0.083019 | 0 | 0 | 0 | 0 | 0 | 0.011702 | 0.323254 | 1,389 | 48 | 66 | 28.9375 | 0.834043 | 0.080634 | 0 | 0 | 0 | 0 | 0.005622 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075 | false | 0 | 0.05 | 0.025 | 0.225 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2bd3ca214bb18b2244342ed2d4e2e70853a6ed4f | 1,721 | py | Python | ee/clickhouse/views/groups.py | csmatar/posthog | 4587cfe18625f302726c531f06a32c18e9749e9d | [
"MIT"
] | null | null | null | ee/clickhouse/views/groups.py | csmatar/posthog | 4587cfe18625f302726c531f06a32c18e9749e9d | [
"MIT"
] | 15 | 2021-11-09T10:49:34.000Z | 2021-11-09T16:11:01.000Z | ee/clickhouse/views/groups.py | csmatar/posthog | 4587cfe18625f302726c531f06a32c18e9749e9d | [
"MIT"
] | null | null | null | import json
from collections import defaultdict
from rest_framework import exceptions, request, response, serializers, viewsets
from rest_framework.decorators import action
from rest_framework.mixins import ListModelMixin, RetrieveModelMixin
from ee.clickhouse.client import sync_execute
from ee.clickhouse.sql.person ... | 39.113636 | 98 | 0.733876 | 193 | 1,721 | 6.321244 | 0.46114 | 0.081148 | 0.103279 | 0.039344 | 0.129508 | 0.065574 | 0 | 0 | 0 | 0 | 0 | 0.001443 | 0.194654 | 1,721 | 43 | 99 | 40.023256 | 0.878788 | 0 | 0 | 0 | 0 | 0 | 0.25276 | 0.057525 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.264706 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2bd55328213ae4ee50db668e28293c74adbf04e3 | 1,198 | py | Python | api/audit_trail/migrations/0009_control_code_payload.py | django-doctor/lite-api | 1ba278ba22ebcbb977dd7c31dd3701151cd036bf | [
"MIT"
] | null | null | null | api/audit_trail/migrations/0009_control_code_payload.py | django-doctor/lite-api | 1ba278ba22ebcbb977dd7c31dd3701151cd036bf | [
"MIT"
] | null | null | null | api/audit_trail/migrations/0009_control_code_payload.py | django-doctor/lite-api | 1ba278ba22ebcbb977dd7c31dd3701151cd036bf | [
"MIT"
] | null | null | null | from django.db import migrations
from api.audit_trail.enums import AuditType
def update_good_review_payload(apps, schema_editor):
"""
Convert old AuditType.verb with format to new AuditType.verb as enum value.
"""
if schema_editor.connection.alias != "default":
return
Audit = apps.get_mo... | 30.717949 | 105 | 0.641903 | 137 | 1,198 | 5.372263 | 0.459854 | 0.081522 | 0.043478 | 0.0625 | 0.192935 | 0.116848 | 0.116848 | 0 | 0 | 0 | 0 | 0.006674 | 0.249583 | 1,198 | 38 | 106 | 31.526316 | 0.812013 | 0.062604 | 0 | 0 | 0 | 0 | 0.183379 | 0.069557 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.074074 | 0 | 0.259259 | 0.074074 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2bd5f8544212e23f65b882d89a3c224ece175d41 | 2,882 | py | Python | src/App/tests/test_setConfiguration.py | tseaver/Zope-RFA | 08634f39b0f8b56403a2a9daaa6ee4479ef0c625 | [
"ZPL-2.1"
] | 2 | 2015-12-21T10:34:56.000Z | 2017-09-24T11:07:58.000Z | src/App/tests/test_setConfiguration.py | MatthewWilkes/Zope | 740f934fc9409ae0062e8f0cd6dcfd8b2df00376 | [
"ZPL-2.1"
] | null | null | null | src/App/tests/test_setConfiguration.py | MatthewWilkes/Zope | 740f934fc9409ae0062e8f0cd6dcfd8b2df00376 | [
"ZPL-2.1"
] | null | null | null | ##############################################################################
#
# Copyright (c) 2004 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOF... | 35.146341 | 78 | 0.644344 | 307 | 2,882 | 5.947883 | 0.381107 | 0.082147 | 0.078861 | 0.072289 | 0.290252 | 0.203724 | 0.133625 | 0.083242 | 0.083242 | 0.083242 | 0 | 0.002651 | 0.214781 | 2,882 | 81 | 79 | 35.580247 | 0.804242 | 0.200555 | 0 | 0.25 | 0 | 0 | 0.040433 | 0 | 0 | 0 | 0 | 0 | 0.192308 | 1 | 0.153846 | false | 0 | 0.25 | 0 | 0.480769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2bd9973a07e3156ff4a84bcb99cd3ef64fb4cedb | 2,066 | py | Python | surface/orig8_corpus_stats.py | megodoonch/birdsong | 582e7ddecf6c9c1b75f17418097f7bcbf6784d31 | [
"BSD-3-Clause-Clear"
] | null | null | null | surface/orig8_corpus_stats.py | megodoonch/birdsong | 582e7ddecf6c9c1b75f17418097f7bcbf6784d31 | [
"BSD-3-Clause-Clear"
] | null | null | null | surface/orig8_corpus_stats.py | megodoonch/birdsong | 582e7ddecf6c9c1b75f17418097f7bcbf6784d31 | [
"BSD-3-Clause-Clear"
] | null | null | null |
import random
import pandas as pd
import compare_bigrams
import sys
import os
import as_numeric
import quantify_copying
# The file that contains the base corpus
INPUT_FILE = "../corpus/cath8.txt"
# Each line should be a sentence, with the words separated by spaces
# Read the input file and obtain a list of list o... | 28.694444 | 97 | 0.690707 | 279 | 2,066 | 4.956989 | 0.376344 | 0.080983 | 0.043384 | 0.056399 | 0.060738 | 0.014461 | 0.014461 | 0 | 0 | 0 | 0 | 0.003056 | 0.208132 | 2,066 | 71 | 98 | 29.098592 | 0.842298 | 0.252662 | 0 | 0.058824 | 0 | 0 | 0.071195 | 0.015023 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.205882 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2bde73b9764fb0136ef3271756f67c6a2f1b95a4 | 2,406 | py | Python | update.py | cznull/dlpkuhole2 | 11f63f908749c6e0e643449c93a33644caa405dc | [
"MIT"
] | 2 | 2019-10-25T12:22:49.000Z | 2019-10-25T13:22:11.000Z | update.py | cznull/dlpkuhole2 | 11f63f908749c6e0e643449c93a33644caa405dc | [
"MIT"
] | null | null | null | update.py | cznull/dlpkuhole2 | 11f63f908749c6e0e643449c93a33644caa405dc | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import os
from utils import (
get_page,
internet_on,
my_log,
post_dict_to_list,
read_posts_dict,
write_posts,
)
cdname = os.path.dirname(__file__)
filename = os.path.join(cdname, 'pkuhole.txt')
filename_bak = os.path.join(cdname, 'pkuholebak.txt')
if __name__ == '__main__'... | 26.152174 | 79 | 0.582294 | 332 | 2,406 | 3.978916 | 0.253012 | 0.071915 | 0.06813 | 0.109008 | 0.458743 | 0.443603 | 0.355034 | 0.355034 | 0.321726 | 0.238456 | 0 | 0.008182 | 0.288861 | 2,406 | 91 | 80 | 26.43956 | 0.763881 | 0.011638 | 0 | 0.231884 | 0 | 0 | 0.170034 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.028986 | 0 | 0.028986 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2be01fdba7fd4a0fd0bcbe156a75252f384d72ef | 18,436 | py | Python | RECOVERED_FILES/root/ez-segway/simulator/ez_tracer.py | AlsikeE/Ez | 2f84ac1896a5b6d8f467c14d3618274bdcfd2cad | [
"Apache-2.0"
] | null | null | null | RECOVERED_FILES/root/ez-segway/simulator/ez_tracer.py | AlsikeE/Ez | 2f84ac1896a5b6d8f467c14d3618274bdcfd2cad | [
"Apache-2.0"
] | null | null | null | RECOVERED_FILES/root/ez-segway/simulator/ez_tracer.py | AlsikeE/Ez | 2f84ac1896a5b6d8f467c14d3618274bdcfd2cad | [
"Apache-2.0"
] | 1 | 2021-05-08T02:23:00.000Z | 2021-05-08T02:23:00.000Z | import argparse
import os
from misc import logger
from misc import constants
from collections import defaultdict, OrderedDict
import numpy
import re
class ExecutionResult:
def __init__(self):
self.test_number = 0
self.execution_time = ExecutionTime()
class ExecutionTime:
def __init__(self, to... | 41.804989 | 115 | 0.612118 | 2,419 | 18,436 | 4.319554 | 0.083506 | 0.055603 | 0.024117 | 0.0245 | 0.550579 | 0.469232 | 0.403962 | 0.350943 | 0.297253 | 0.261748 | 0 | 0.007726 | 0.276904 | 18,436 | 440 | 116 | 41.9 | 0.776086 | 0.095845 | 0 | 0.319767 | 0 | 0.002907 | 0.055201 | 0.011846 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093023 | false | 0 | 0.020349 | 0.023256 | 0.180233 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2be1a1fa8ec7479aeac3b69430ba8d4a6a93005c | 2,406 | py | Python | tests/test_potential_of_layers.py | calliope-project/solar-and-wind-potentials | a17000028b1c391d37b415859697aa71aea4affe | [
"MIT"
] | 8 | 2020-10-28T14:03:39.000Z | 2022-01-08T16:38:42.000Z | tests/test_potential_of_layers.py | calliope-project/solar-and-wind-potentials | a17000028b1c391d37b415859697aa71aea4affe | [
"MIT"
] | 18 | 2020-10-28T08:58:01.000Z | 2021-05-14T16:33:23.000Z | tests/test_potential_of_layers.py | timtroendle/solar-and-wind-potentials | 8b15f3d20a47ba3631f03026a4263ecd1fcbfd58 | [
"MIT"
] | 1 | 2020-12-07T03:13:28.000Z | 2020-12-07T03:13:28.000Z | """Test whether potential estimations between layers are similar."""
import os
from pathlib import Path
import pytest
import pandas as pd
from renewablepotentialslib.eligibility import Potential
TOLERANCE = 0.005 # 0.5%
BUILD_DIR = Path(os.path.abspath(__file__)).parent.parent / "build"
PATH_TO_CONTINENTAL_POTENTIA... | 45.396226 | 112 | 0.790524 | 303 | 2,406 | 6.019802 | 0.168317 | 0.052632 | 0.044408 | 0.103618 | 0.691886 | 0.623355 | 0.5625 | 0.5625 | 0.5625 | 0.5625 | 0 | 0.0055 | 0.093101 | 2,406 | 52 | 113 | 46.269231 | 0.830431 | 0.028263 | 0 | 0.315789 | 0 | 0 | 0.17753 | 0 | 0 | 0 | 0 | 0 | 0.078947 | 1 | 0.078947 | false | 0 | 0.131579 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2be7b6a4c3ecbf9fa56f76e517a0e77803b09915 | 7,231 | py | Python | pypeit/tests/tstutils.py | baileyji/PypeIt | eea71304f4a4bcf70148ea686967ed699dc36dfb | [
"BSD-3-Clause"
] | null | null | null | pypeit/tests/tstutils.py | baileyji/PypeIt | eea71304f4a4bcf70148ea686967ed699dc36dfb | [
"BSD-3-Clause"
] | null | null | null | pypeit/tests/tstutils.py | baileyji/PypeIt | eea71304f4a4bcf70148ea686967ed699dc36dfb | [
"BSD-3-Clause"
] | null | null | null | """
Odds and ends in support of tests
"""
import os
import pytest
import numpy as np
import copy
from astropy import time
from pypeit import arcimage
from pypeit import traceslits
from pypeit import wavecalib
from pypeit import wavetilts
from pypeit.masterframe import MasterFrame
from pypeit.core.wavecal import wavei... | 35.79703 | 102 | 0.637395 | 898 | 7,231 | 4.973274 | 0.285078 | 0.021496 | 0.015674 | 0.024631 | 0.180699 | 0.162785 | 0.138603 | 0.106807 | 0.055307 | 0.055307 | 0 | 0.025506 | 0.240907 | 7,231 | 201 | 103 | 35.975124 | 0.788122 | 0.185037 | 0 | 0.017699 | 0 | 0 | 0.111208 | 0.004553 | 0 | 0 | 0 | 0.004975 | 0 | 1 | 0.035398 | false | 0 | 0.115044 | 0 | 0.185841 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2be7c4031f35d62bfd049a33b25b2f6481558602 | 1,041 | py | Python | calaccess_processed/admin/tracking.py | dwillis/django-calaccess-processed-data | f228252df1b390967468b41d336839f1bd9ca192 | [
"MIT"
] | 1 | 2021-01-13T12:06:25.000Z | 2021-01-13T12:06:25.000Z | calaccess_processed/admin/tracking.py | anthonyjpesce/django-calaccess-processed-data | d99b461abb7b7f7973f90b49634c9262efcbe7bf | [
"MIT"
] | null | null | null | calaccess_processed/admin/tracking.py | anthonyjpesce/django-calaccess-processed-data | d99b461abb7b7f7973f90b49634c9262efcbe7bf | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Custom administration panels for tracking models.
"""
from __future__ import unicode_literals
from django.contrib import admin
from calaccess_processed import models
from calaccess_raw.admin.base import BaseAdmin
@admin.register(models.ProcessedDataVersion)
class Proc... | 25.390244 | 54 | 0.683958 | 106 | 1,041 | 6.40566 | 0.481132 | 0.064801 | 0.088365 | 0.067747 | 0.076583 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001211 | 0.206532 | 1,041 | 40 | 55 | 26.025 | 0.820823 | 0.179635 | 0 | 0.16 | 0 | 0 | 0.234356 | 0.148466 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.16 | 0 | 0.48 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2be8db748a16a1d91326b5c85994bfcde6e8d3f2 | 2,735 | py | Python | setup.py | arthurazs/ScreenPDF | 28d879e946cdc68271e9ca2fa7f35a2ab4972151 | [
"MIT"
] | null | null | null | setup.py | arthurazs/ScreenPDF | 28d879e946cdc68271e9ca2fa7f35a2ab4972151 | [
"MIT"
] | 3 | 2016-11-10T18:57:44.000Z | 2017-09-10T16:12:13.000Z | setup.py | arthurazs/ScreenPDF | 28d879e946cdc68271e9ca2fa7f35a2ab4972151 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# coding: utf-8
from setuptools import setup
import os.path as path
info_name = 'screenpdf'
info_url = 'https://github.com/arthurazs/{}/'.format(info_name)
author_name = 'Arthur Zopellaro'
email = 'arthurazsoares@gmail.com'
try:
with open(path.abspath(path.join(info_name,
... | 30.730337 | 68 | 0.603656 | 291 | 2,735 | 5.498282 | 0.491409 | 0.04 | 0.078125 | 0.0275 | 0.086875 | 0.06375 | 0.06375 | 0.06375 | 0.06375 | 0.06375 | 0 | 0.005952 | 0.262888 | 2,735 | 88 | 69 | 31.079545 | 0.787698 | 0.021572 | 0 | 0.126582 | 0 | 0 | 0.391695 | 0.016835 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.025316 | 0 | 0.025316 | 0.050633 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2bebba5f36f0fc773a08af1c42a4714df0febac4 | 597 | py | Python | 221/main.py | JanaSabuj/Leetcode-solutions | 78d10926b15252a969df598fbf1f9b69b2760b79 | [
"MIT"
] | 13 | 2019-10-12T14:36:32.000Z | 2021-06-08T04:26:30.000Z | 221/main.py | JanaSabuj/Leetcode-solutions | 78d10926b15252a969df598fbf1f9b69b2760b79 | [
"MIT"
] | 1 | 2020-02-29T14:02:39.000Z | 2020-02-29T14:02:39.000Z | 221/main.py | JanaSabuj/Leetcode-solutions | 78d10926b15252a969df598fbf1f9b69b2760b79 | [
"MIT"
] | 3 | 2020-02-08T12:04:28.000Z | 2020-03-17T11:53:00.000Z | class Solution:
def maximalSquare(self, mat: List[List[str]]) -> int:
n = len(mat)
m = len(mat[0])
mx = 0
dp = [[0 for _ in range(m)] for _ in range(n)]
for i in range(n):
for j in range(m):
if i == 0 or j == 0:
dp[... | 29.85 | 77 | 0.350084 | 93 | 597 | 2.225806 | 0.301075 | 0.101449 | 0.096618 | 0.10628 | 0.057971 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047923 | 0.475712 | 597 | 20 | 78 | 29.85 | 0.613419 | 0 | 0 | 0 | 0 | 0 | 0.003454 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2bed27e78e266549ed3fd0ab95fec60eddae005c | 3,481 | py | Python | bin/anthology/people.py | KhalilMrini/acl-anthology | ca36605b81b508ee3d70480a41e92f4e11c29032 | [
"Apache-2.0"
] | 1 | 2021-08-04T04:03:35.000Z | 2021-08-04T04:03:35.000Z | bin/anthology/people.py | KhalilMrini/acl-anthology | ca36605b81b508ee3d70480a41e92f4e11c29032 | [
"Apache-2.0"
] | 1 | 2021-04-19T17:14:31.000Z | 2021-04-19T17:14:31.000Z | bin/anthology/people.py | KhalilMrini/acl-anthology | ca36605b81b508ee3d70480a41e92f4e11c29032 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright 2019 Marcel Bollmann <marcel@bollmann.me>
#
# 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 r... | 31.645455 | 82 | 0.595806 | 436 | 3,481 | 4.665138 | 0.318807 | 0.044248 | 0.037365 | 0.036873 | 0.043265 | 0.023599 | 0 | 0 | 0 | 0 | 0 | 0.005289 | 0.293881 | 3,481 | 109 | 83 | 31.93578 | 0.822213 | 0.288423 | 0 | 0.171875 | 0 | 0 | 0.069719 | 0.01848 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.03125 | 0.078125 | 0.453125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2bf00f70f8211fba122e48124085551574fc2d0f | 8,150 | py | Python | launch.py | danif93/MLProject | d93fc647f2cc135dc531889ffde3cd54f56a7210 | [
"MIT"
] | null | null | null | launch.py | danif93/MLProject | d93fc647f2cc135dc531889ffde3cd54f56a7210 | [
"MIT"
] | null | null | null | launch.py | danif93/MLProject | d93fc647f2cc135dc531889ffde3cd54f56a7210 | [
"MIT"
] | null | null | null |
# coding: utf-8
# In[ ]:
import mnist_loader as load
import neural_network as neuronet
import activation_functions as af
import optimisation_functions as of
import cost_functions as cf
import learningStep_generators as lg
import numpy as np
import matplotlib.pyplot as plt
get_ipython().magic('matplotlib inline')
... | 38.084112 | 191 | 0.766503 | 963 | 8,150 | 6.474559 | 0.206646 | 0.038813 | 0.018765 | 0.031275 | 0.610906 | 0.564555 | 0.544186 | 0.525421 | 0.512911 | 0.496552 | 0 | 0.019932 | 0.101227 | 8,150 | 213 | 192 | 38.262911 | 0.831263 | 0.137546 | 0 | 0.487603 | 0 | 0 | 0.090363 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066116 | 0 | 0.066116 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2bf019712de59bf5b206a860d7ffb4d44cf73b61 | 8,005 | py | Python | python version/box_model.py | asiddi24/box_model | 011fb0e272c12019fa4c2533661c5eb1f8c0001a | [
"MIT"
] | null | null | null | python version/box_model.py | asiddi24/box_model | 011fb0e272c12019fa4c2533661c5eb1f8c0001a | [
"MIT"
] | null | null | null | python version/box_model.py | asiddi24/box_model | 011fb0e272c12019fa4c2533661c5eb1f8c0001a | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Jun 4 16:35:40 2019
@author: asiddi24
"""
'''Four box model'''
import numpy as np
import gsw as gsw
import time
import matplotlib.pyplot as plt
def fourbox(N,Kv,AI,Mek,Aredi,M_s,D0,T0s,T0n,T0l,T0d,S0s,S0n,S0l,S0d,Fws,Fwn,epsilon):
Area = 3... | 44.72067 | 145 | 0.484322 | 1,441 | 8,005 | 2.538515 | 0.104788 | 0.034445 | 0.017223 | 0.019136 | 0.693002 | 0.634773 | 0.591307 | 0.58912 | 0.56561 | 0.559869 | 0 | 0.048956 | 0.305934 | 8,005 | 179 | 146 | 44.72067 | 0.609431 | 0.053716 | 0 | 0.335878 | 0 | 0 | 0.006237 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007634 | false | 0 | 0.030534 | 0 | 0.045802 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2bf108d95891106d4dc930297e966511ec0c8d34 | 981 | py | Python | api/management/commands/pets_list.py | V-Holodov/pets_accounting | 300cb8748124b6f767e85404ee372b93b097098c | [
"MIT"
] | null | null | null | api/management/commands/pets_list.py | V-Holodov/pets_accounting | 300cb8748124b6f767e85404ee372b93b097098c | [
"MIT"
] | 1 | 2021-12-22T14:08:37.000Z | 2021-12-22T14:08:37.000Z | api/management/commands/pets_list.py | V-Holodov/pets_accounting | 300cb8748124b6f767e85404ee372b93b097098c | [
"MIT"
] | 1 | 2021-12-24T11:50:26.000Z | 2021-12-24T11:50:26.000Z | import io
from django.core.management.base import BaseCommand
from rest_framework.parsers import JSONParser
from rest_framework.renderers import JSONRenderer
from api.models import Pet
from api.serializers import PetSerializer
class Command(BaseCommand):
"""Uploading pets from the command line to stdout in JSON... | 29.727273 | 72 | 0.666667 | 118 | 981 | 5.457627 | 0.576271 | 0.055901 | 0.052795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.231397 | 981 | 32 | 73 | 30.65625 | 0.854111 | 0.063201 | 0 | 0 | 0 | 0 | 0.11391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.26087 | 0 | 0.434783 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2bf122809aba2074e678a428f5c1706ec17b6493 | 626 | py | Python | src/ocr/dataset/helper.py | AlessandroZanatta/ML-Captcha-Solver | 09d4eba3d277203eeb324440eb5641c9ce287963 | [
"MIT"
] | null | null | null | src/ocr/dataset/helper.py | AlessandroZanatta/ML-Captcha-Solver | 09d4eba3d277203eeb324440eb5641c9ce287963 | [
"MIT"
] | null | null | null | src/ocr/dataset/helper.py | AlessandroZanatta/ML-Captcha-Solver | 09d4eba3d277203eeb324440eb5641c9ce287963 | [
"MIT"
] | null | null | null | import numpy as np
def load_dataset(path):
# initialize the list of data and labels
data = []
labels = []
# retrieve data from CSV
for row in open(path):
# parse the label and image from the row
row = row.split(",")
label = ord(row[0]) - ord("A") # scale labels to be numbe... | 26.083333 | 88 | 0.583067 | 90 | 626 | 4.044444 | 0.544444 | 0.038462 | 0.049451 | 0.071429 | 0.142857 | 0.142857 | 0.142857 | 0 | 0 | 0 | 0 | 0.027335 | 0.298722 | 626 | 23 | 89 | 27.217391 | 0.801822 | 0.332268 | 0 | 0 | 0 | 0 | 0.019512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2bf1fa79fccb8a23dfa75ef82b9bf40360252990 | 3,284 | py | Python | cogs/moderator.py | theobori/bot-template | 3aba0ed127c435e25b29be163f870f5088a611d8 | [
"MIT"
] | null | null | null | cogs/moderator.py | theobori/bot-template | 3aba0ed127c435e25b29be163f870f5088a611d8 | [
"MIT"
] | null | null | null | cogs/moderator.py | theobori/bot-template | 3aba0ed127c435e25b29be163f870f5088a611d8 | [
"MIT"
] | null | null | null | """moderation cog"""
from discord.ext import commands
import discord
from utils.database import CursorDB
from utils.page import Pages, make_groups
from utils.utilities import basic_frame, basic_message
from utils.reactions import Reactions
class Moderator(commands.Cog, CursorDB, Pages):
"""
Commands for... | 29.321429 | 105 | 0.601705 | 395 | 3,284 | 4.891139 | 0.296203 | 0.021739 | 0.045549 | 0.072464 | 0.325052 | 0.298137 | 0.298137 | 0.266046 | 0.202899 | 0.096273 | 0 | 0.003386 | 0.280451 | 3,284 | 111 | 106 | 29.585586 | 0.812526 | 0.017661 | 0 | 0.208955 | 0 | 0 | 0.158143 | 0.02288 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029851 | false | 0 | 0.089552 | 0 | 0.179104 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2bf2f7c097096dee417521bb08ed9caad1bcf85b | 4,340 | py | Python | mpi_migration.py | max-509/distributed-kirchhoff-migration | 43c1dc2706f6ceb4e010ab005c34ff8ae6f51645 | [
"Apache-2.0"
] | null | null | null | mpi_migration.py | max-509/distributed-kirchhoff-migration | 43c1dc2706f6ceb4e010ab005c34ff8ae6f51645 | [
"Apache-2.0"
] | 1 | 2022-02-02T06:40:04.000Z | 2022-02-02T06:40:04.000Z | mpi_migration.py | max-509/distributed-kirchhoff-migration | 43c1dc2706f6ceb4e010ab005c34ff8ae6f51645 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import os.path
from mpi4py import MPI
import numpy as np
import pandas as pd
import tensorflow as tf
import configparser
import numba
import multiprocessing as mp
import sys
from concurrent.futures import ThreadPoolExecutor
from _migration import calculate_migration
@numba.njit(parallel=True)
... | 32.631579 | 124 | 0.66659 | 608 | 4,340 | 4.498355 | 0.294408 | 0.018282 | 0.014625 | 0.020841 | 0.073857 | 0.035832 | 0.024132 | 0 | 0 | 0 | 0 | 0.015579 | 0.216129 | 4,340 | 132 | 125 | 32.878788 | 0.78836 | 0.004608 | 0 | 0 | 0 | 0 | 0.062978 | 0.006946 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04902 | false | 0.009804 | 0.107843 | 0.019608 | 0.196078 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2bf3a2f0d26b50aa2cf1e968ebff3eed788af470 | 13,622 | py | Python | plugins/trakt/test/test_trakt.py | Tigge/platinumshrimp | fc5c8e825a714253b18b46cedafe28820a3a34b7 | [
"MIT"
] | 2 | 2017-12-20T16:56:37.000Z | 2021-01-19T18:41:53.000Z | plugins/trakt/test/test_trakt.py | Tigge/platinumshrimp | fc5c8e825a714253b18b46cedafe28820a3a34b7 | [
"MIT"
] | 18 | 2015-01-03T21:33:09.000Z | 2018-12-04T12:05:58.000Z | plugins/trakt/test/test_trakt.py | Tigge/platinumshrimp | fc5c8e825a714253b18b46cedafe28820a3a34b7 | [
"MIT"
] | 6 | 2015-01-02T01:16:38.000Z | 2021-09-04T01:28:38.000Z | import json
import os
import unittest
from unittest.mock import Mock, patch
import requests_mock
from dateutil import relativedelta
from plugins.trakt.trakt import Trakt
from plugins.trakt import api
""" Presets copied from Trakt's API """
ACTIVITY_PRESET_EPISODE_1 = {
"watched_at": "2014-03-31T09:28:53.000Z"... | 34.75 | 143 | 0.551681 | 1,490 | 13,622 | 4.881208 | 0.175839 | 0.040836 | 0.016499 | 0.019249 | 0.627389 | 0.576653 | 0.501306 | 0.487282 | 0.471195 | 0.458133 | 0 | 0.043524 | 0.308472 | 13,622 | 391 | 144 | 34.838875 | 0.728556 | 0.001835 | 0 | 0.409496 | 0 | 0.023739 | 0.244264 | 0.041756 | 0 | 0 | 0 | 0 | 0.118694 | 1 | 0.059347 | false | 0 | 0.023739 | 0.002967 | 0.106825 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2bf4cf97686269a46eb3ddc822b1a02b29a68eb9 | 5,675 | py | Python | psop.py | robalty/pysynth | aa7abf78079af5b6dee29b1b97af5aa31e7b64e8 | [
"MIT"
] | 1 | 2020-05-04T23:49:38.000Z | 2020-05-04T23:49:38.000Z | psop.py | robalty/pysynth | aa7abf78079af5b6dee29b1b97af5aa31e7b64e8 | [
"MIT"
] | 5 | 2020-05-06T01:22:37.000Z | 2020-05-28T18:13:04.000Z | psop.py | robalty/pysynth | aa7abf78079af5b6dee29b1b97af5aa31e7b64e8 | [
"MIT"
] | 1 | 2020-06-07T22:23:56.000Z | 2020-06-07T22:23:56.000Z | import math
import numpy as np
SAMPLERATE = 48000
class ADSR:
def __init__(self, a=0.1, d=0.2, s=0.6, r=0.5):
self.timings = {
0 : 0,
1 : 1 / ((a * SAMPLERATE) + 1),
2 : -1 / ((d * SAMPLERATE) + 1),
3 : 0,
4 : -1 / ((r * SAMP... | 29.868421 | 92 | 0.570396 | 815 | 5,675 | 3.890798 | 0.134969 | 0.12772 | 0.07947 | 0.036897 | 0.504573 | 0.474298 | 0.425418 | 0.360769 | 0.346578 | 0.296752 | 0 | 0.032714 | 0.288987 | 5,675 | 189 | 93 | 30.026455 | 0.75316 | 0.010573 | 0 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.164474 | false | 0 | 0.013158 | 0.019737 | 0.328947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2bf8e95176c9e685fb3202612e058ef1486d6f76 | 4,077 | py | Python | src/app.py | shivamshinde123/mushroom_classification | fbeb4be4fcd31625d9412a0cef58622780dddffc | [
"MIT"
] | 1 | 2022-03-30T08:21:12.000Z | 2022-03-30T08:21:12.000Z | src/app.py | shivamshinde123/mushroom_classification | fbeb4be4fcd31625d9412a0cef58622780dddffc | [
"MIT"
] | null | null | null | src/app.py | shivamshinde123/mushroom_classification | fbeb4be4fcd31625d9412a0cef58622780dddffc | [
"MIT"
] | null | null | null | import pathlib
from flask import Flask, redirect, render_template, request, Response, url_for, session
import secrets
import json
from Predictions_using_trained_model import predictionsUsingTheTrainedModels
from predictionDatabaseOperations import PredictionDBOperations
from predictionPreprocessing import PredictionPr... | 32.616 | 107 | 0.727005 | 418 | 4,077 | 6.301435 | 0.394737 | 0.031891 | 0.037965 | 0.019362 | 0.029233 | 0.029233 | 0.020501 | 0 | 0 | 0 | 0 | 0.010886 | 0.21143 | 4,077 | 124 | 108 | 32.879032 | 0.808398 | 0.357371 | 0 | 0 | 0 | 0 | 0.056713 | 0.008102 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070175 | false | 0 | 0.210526 | 0.052632 | 0.350877 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2bf9743b7839d926775ed3660be8f3a065cd08dd | 2,017 | py | Python | Python/Tweet/read_tweet.py | LilyYC/legendary-train | 214525afeeb2da2409f451bf269e792c6940a1ba | [
"MIT"
] | null | null | null | Python/Tweet/read_tweet.py | LilyYC/legendary-train | 214525afeeb2da2409f451bf269e792c6940a1ba | [
"MIT"
] | null | null | null | Python/Tweet/read_tweet.py | LilyYC/legendary-train | 214525afeeb2da2409f451bf269e792c6940a1ba | [
"MIT"
] | null | null | null | def read_tweets(file):
""" (file open for reading) -> dict of {str: list of tweet tuples}
Return a dictionary with the names of the candidates
as keys, and tweet tuple in the form of (candidate, tweet text, date,
source, favorite count, retweet count)as values
"""
dic = {}
key = ""
... | 35.385965 | 80 | 0.54239 | 274 | 2,017 | 3.934307 | 0.394161 | 0.044527 | 0.060297 | 0.044527 | 0.274583 | 0.274583 | 0.250464 | 0.19666 | 0.19666 | 0.139147 | 0 | 0.037762 | 0.291026 | 2,017 | 56 | 81 | 36.017857 | 0.716084 | 0.523054 | 0 | 0.185185 | 0 | 0 | 0.025612 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.037037 | 0 | 0.148148 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2bf9da14a8590cb2e410ccf84e328acb4bba5bef | 607 | py | Python | exe065a.py | Alexmachado81/ExerciciosPython_Resolvidos | 2774ba742788eb7b545f3f85e9438deb68a983d4 | [
"MIT"
] | null | null | null | exe065a.py | Alexmachado81/ExerciciosPython_Resolvidos | 2774ba742788eb7b545f3f85e9438deb68a983d4 | [
"MIT"
] | null | null | null | exe065a.py | Alexmachado81/ExerciciosPython_Resolvidos | 2774ba742788eb7b545f3f85e9438deb68a983d4 | [
"MIT"
] | null | null | null | cond = 'S'
num = quant = soma = maior = menor =0
while cond in 'Ss':
num = int(input(' Informe um numero:'))
quant += 1
soma += num
cond = str(input('Quer Continuar?[S/N]')).upper().strip()[0]
if quant == 1:
maior = menor = num
else:
if num > maior:
maior = num
... | 27.590909 | 76 | 0.532125 | 88 | 607 | 3.670455 | 0.431818 | 0.092879 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011905 | 0.308072 | 607 | 21 | 77 | 28.904762 | 0.757143 | 0 | 0 | 0 | 0 | 0 | 0.30313 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
2bfa633ea90ac984f4075624c6eb6d5ad5a3bbf4 | 6,206 | py | Python | scAnalysis/Segmentation.py | yuzhounaut/SpaceM | 0fed7f14bb7d378ed0a8cf2e075bc562d6eed497 | [
"Apache-2.0"
] | 8 | 2020-05-26T13:32:29.000Z | 2021-12-05T20:32:38.000Z | scAnalysis/Segmentation.py | yuzhounaut/SpaceM | 0fed7f14bb7d378ed0a8cf2e075bc562d6eed497 | [
"Apache-2.0"
] | 2 | 2021-06-08T21:39:05.000Z | 2022-03-12T00:31:50.000Z | scAnalysis/Segmentation.py | LRpz/SpaceM | 03f7b3b871ec70ed38df63adfc4efcd30c3896a5 | [
"Apache-2.0"
] | 3 | 2020-06-18T17:06:16.000Z | 2021-10-08T06:55:07.000Z | from subprocess import call
import matplotlib.pyplot as plt
import numpy as np
import tqdm
from scipy import ndimage
def callCP(MFA, cp_p, cppipe_p):
"""Call CellProfiler (http://cellprofiler.org/) to perform cell segmentation. CellProfiler segmentation pipeline
is in the spaceM folder with the '.cppipe' exte... | 38.7875 | 121 | 0.633742 | 828 | 6,206 | 4.624396 | 0.233092 | 0.052233 | 0.023505 | 0.020893 | 0.541917 | 0.5158 | 0.492818 | 0.472447 | 0.472447 | 0.422042 | 0 | 0.011688 | 0.255559 | 6,206 | 159 | 122 | 39.031447 | 0.8171 | 0.286175 | 0 | 0.37 | 0 | 0 | 0.061015 | 0.04844 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.05 | 0 | 0.09 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2bfb524c2e56d706d022852606cbc81b117c3933 | 1,612 | py | Python | py/camvid.py | StoneWST/Dataset-Tool-for-Segmentation- | 813c55e92a61f915424f2b1f0e6c4d5eb20b7ce5 | [
"MIT"
] | 4 | 2021-06-03T09:02:36.000Z | 2022-02-28T00:58:22.000Z | py/camvid.py | wusitong98/Dataset-Tool-Segmentation | 813c55e92a61f915424f2b1f0e6c4d5eb20b7ce5 | [
"MIT"
] | null | null | null | py/camvid.py | wusitong98/Dataset-Tool-Segmentation | 813c55e92a61f915424f2b1f0e6c4d5eb20b7ce5 | [
"MIT"
] | null | null | null | import os
import fire
def gen_camvid_txt():
camvid_train_list = []
camvid_val_list = []
camvid_test_list = []
camvid_train_img_folder = "data/CamVid/train"
camvid_val_img_folder = "data/CamVid/val"
camvid_test_img_folder = "data/CamVid/test"
camvid_train_img_list = os.listdir(camvid_trai... | 28.280702 | 72 | 0.694789 | 239 | 1,612 | 4.297071 | 0.188285 | 0.088608 | 0.064265 | 0.066212 | 0.435248 | 0.344693 | 0.290166 | 0.245375 | 0.137293 | 0.137293 | 0 | 0.004666 | 0.202233 | 1,612 | 56 | 73 | 28.785714 | 0.793935 | 0.019851 | 0 | 0.075 | 0 | 0 | 0.110266 | 0.028517 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.05 | 0 | 0.1 | 0.025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2bfc4f790355a7817532bd5b978db33d27b1e506 | 2,269 | py | Python | grapaold/layerfiles/gcomgraphcutter.py | psorus/grapa | 6af343bb35c466c971ded1876e7a9d00e77cef00 | [
"MIT"
] | null | null | null | grapaold/layerfiles/gcomgraphcutter.py | psorus/grapa | 6af343bb35c466c971ded1876e7a9d00e77cef00 | [
"MIT"
] | null | null | null | grapaold/layerfiles/gcomgraphcutter.py | psorus/grapa | 6af343bb35c466c971ded1876e7a9d00e77cef00 | [
"MIT"
] | null | null | null | import numpy as np
import math
from tensorflow.keras import backend as K
from tensorflow.keras.layers import Layer,Dense, Activation
import tensorflow.keras as keras# as k
import tensorflow as t
from tensorflow.keras.models import Sequential
from tensorflow.keras.optimizers import Adam,SGD
from tensorflow.linalg impor... | 21.205607 | 185 | 0.633759 | 349 | 2,269 | 4.028653 | 0.318052 | 0.032006 | 0.054054 | 0.01707 | 0.025605 | 0.025605 | 0.025605 | 0 | 0 | 0 | 0 | 0.01418 | 0.223006 | 2,269 | 106 | 186 | 21.40566 | 0.783324 | 0.226972 | 0 | 0 | 0 | 0 | 0.035963 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.125 | false | 0 | 0.1875 | 0.020833 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2bfd2325a2d75def166622b037138785dc2ae620 | 1,778 | py | Python | extract_feature.py | Doarakko/baseball-and-football-face-classification | 53e1ff21918aab1b9b881c2dae4473e6bb1194a8 | [
"MIT"
] | null | null | null | extract_feature.py | Doarakko/baseball-and-football-face-classification | 53e1ff21918aab1b9b881c2dae4473e6bb1194a8 | [
"MIT"
] | null | null | null | extract_feature.py | Doarakko/baseball-and-football-face-classification | 53e1ff21918aab1b9b881c2dae4473e6bb1194a8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import glob
import re
import os
import numpy as np
from keras.engine import Model
from keras.preprocessing.image import img_to_array, load_img
from keras.utils import plot_model
from keras_vggface.vggface import VGGFace
from keras_vggface import utils
layer_list = ['flatten', 'fc6', 'fc6/relu',... | 35.56 | 125 | 0.662542 | 254 | 1,778 | 4.326772 | 0.358268 | 0.087352 | 0.082803 | 0.086442 | 0.096451 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014706 | 0.19685 | 1,778 | 49 | 126 | 36.285714 | 0.754902 | 0.062992 | 0 | 0 | 0 | 0 | 0.103739 | 0.035585 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.264706 | 0 | 0.323529 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9201694101813be0a08afb3b5067429915a5f7d8 | 9,662 | py | Python | PyRNN/rnn-train.py | theThing92/rub-met21 | 9d3d2e128a458aeb682548f1f207ee7491ca83a3 | [
"MIT"
] | null | null | null | PyRNN/rnn-train.py | theThing92/rub-met21 | 9d3d2e128a458aeb682548f1f207ee7491ca83a3 | [
"MIT"
] | null | null | null | PyRNN/rnn-train.py | theThing92/rub-met21 | 9d3d2e128a458aeb682548f1f207ee7491ca83a3 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import sys
import argparse
import random
import operator
import pickle
import torch
from torch.optim.lr_scheduler import StepLR
sys.path.insert(0,'.')
from PyRNN.Data import Data
from PyRNN.RNNTagger import RNNTagger
from PyRNN.CRFTagger import CRFTagger
def build_optimizer(optim, model, learning... | 39.92562 | 95 | 0.608466 | 1,174 | 9,662 | 4.841567 | 0.229983 | 0.038001 | 0.07178 | 0.014075 | 0.204609 | 0.135116 | 0.093596 | 0.081985 | 0.070373 | 0.044335 | 0 | 0.010794 | 0.252122 | 9,662 | 241 | 96 | 40.091286 | 0.77581 | 0.04823 | 0 | 0.090909 | 0 | 0 | 0.17159 | 0.00947 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017045 | false | 0 | 0.056818 | 0 | 0.085227 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
92021bdc8a0aac4c752b56a0953aac9dec06b2cf | 4,281 | py | Python | tests/integrated/test_advertising_duration.py | teeheee/blatann | f8a75e68cd9d46b83d10482c5349842433dfa490 | [
"BSD-3-Clause"
] | 40 | 2018-03-01T19:49:20.000Z | 2022-03-31T11:35:06.000Z | tests/integrated/test_advertising_duration.py | teeheee/blatann | f8a75e68cd9d46b83d10482c5349842433dfa490 | [
"BSD-3-Clause"
] | 29 | 2019-03-12T18:29:57.000Z | 2022-03-30T04:21:22.000Z | tests/integrated/test_advertising_duration.py | teeheee/blatann | f8a75e68cd9d46b83d10482c5349842433dfa490 | [
"BSD-3-Clause"
] | 17 | 2019-03-27T19:11:12.000Z | 2022-03-16T06:00:08.000Z | import threading
import unittest
from blatann.gap.advertise_data import AdvertisingData, AdvertisingFlags
from blatann.gap.advertising import AdvertisingMode
from blatann.gap.scanning import ScanReport, Scanner
from blatann.utils import Stopwatch
from tests.integrated.base import BlatannTestCase, TestParams, ... | 40.386792 | 114 | 0.677412 | 517 | 4,281 | 5.381044 | 0.274662 | 0.034508 | 0.064702 | 0.023005 | 0.277858 | 0.244069 | 0.209921 | 0.209921 | 0.158879 | 0.129403 | 0 | 0.028843 | 0.238729 | 4,281 | 105 | 115 | 40.771429 | 0.824793 | 0.071946 | 0 | 0.136986 | 0 | 0 | 0.005177 | 0 | 0 | 0 | 0.001035 | 0.009524 | 0.123288 | 1 | 0.09589 | false | 0 | 0.09589 | 0 | 0.219178 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9202c623dbd158b2b50431053b72ebb94e3aa74e | 1,892 | py | Python | src/ngsildclient/__init__.py | Orange-OpenSource/python-ngsild-client | 23ff31506aabd23c75befece1fb3d4536903cb2a | [
"Apache-2.0"
] | 7 | 2022-02-25T09:55:28.000Z | 2022-03-25T20:48:01.000Z | src/ngsildclient/__init__.py | Orange-OpenSource/python-ngsild-client | 23ff31506aabd23c75befece1fb3d4536903cb2a | [
"Apache-2.0"
] | null | null | null | src/ngsildclient/__init__.py | Orange-OpenSource/python-ngsild-client | 23ff31506aabd23c75befece1fb3d4536903cb2a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# Software Name: ngsildclient
# SPDX-FileCopyrightText: Copyright (c) 2021 Orange
# SPDX-License-Identifier: Apache 2.0
#
# This software is distributed under the Apache 2.0;
# see the NOTICE file for more details.
#
# Author: Fabien BATTELLO <fabien.battello@orange.com> et al.
import http.clie... | 22.258824 | 88 | 0.717759 | 217 | 1,892 | 6.129032 | 0.488479 | 0.040602 | 0.01203 | 0.031579 | 0.034586 | 0.034586 | 0.034586 | 0.034586 | 0.034586 | 0 | 0 | 0.014696 | 0.172833 | 1,892 | 84 | 89 | 22.52381 | 0.835144 | 0.175476 | 0 | 0 | 0 | 0 | 0.192258 | 0.028387 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016393 | false | 0 | 0.245902 | 0 | 0.262295 | 0.032787 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9205e60845af979d57cfab6fce5c83182fed94a4 | 3,513 | py | Python | tests/test_gosubdag_children.py | flying-sheep/goatools | 1e3a74faa17cbdeef02550c7ddf17b65cf47d34a | [
"BSD-2-Clause"
] | 477 | 2015-02-10T06:54:42.000Z | 2022-03-15T12:36:11.000Z | tests/test_gosubdag_children.py | flying-sheep/goatools | 1e3a74faa17cbdeef02550c7ddf17b65cf47d34a | [
"BSD-2-Clause"
] | 174 | 2015-02-05T18:11:14.000Z | 2022-03-29T10:24:19.000Z | tests/test_gosubdag_children.py | flying-sheep/goatools | 1e3a74faa17cbdeef02550c7ddf17b65cf47d34a | [
"BSD-2-Clause"
] | 202 | 2015-01-21T12:29:23.000Z | 2022-03-01T13:26:05.000Z | #!/usr/bin/env python
"""Test creation of GoSubDag's rcntobj data member."""
from __future__ import print_function
__copyright__ = "Copyright (C) 2016-2018, DV Klopfenstein, H Tang. All rights reserved."
__author__ = "DV Klopfenstein"
import os
from goatools.base import get_godag
from goatools.gosubdag.gosubdag impo... | 43.37037 | 97 | 0.565329 | 419 | 3,513 | 4.560859 | 0.279236 | 0.047096 | 0.050235 | 0.058608 | 0.385139 | 0.3663 | 0.3663 | 0.310832 | 0.253271 | 0.253271 | 0 | 0.141363 | 0.265016 | 3,513 | 80 | 98 | 43.9125 | 0.598761 | 0.146598 | 0 | 0.203704 | 0 | 0 | 0.236585 | 0.011812 | 0 | 0 | 0 | 0 | 0.018519 | 1 | 0.092593 | false | 0 | 0.092593 | 0 | 0.203704 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
92071f8e67600ce7e492cbb22dfc9e21581246f3 | 5,078 | py | Python | lib_ddos_simulator/old/api/api.py | jfuruness/lib_ddos_simulator | 2d860fd3f35f4c25262f5269251eed89975f95e8 | [
"BSD-4-Clause"
] | 1 | 2020-04-01T22:42:36.000Z | 2020-04-01T22:42:36.000Z | lib_ddos_simulator/old/api/api.py | jfuruness/lib_ddos_simulator | 2d860fd3f35f4c25262f5269251eed89975f95e8 | [
"BSD-4-Clause"
] | null | null | null | lib_ddos_simulator/old/api/api.py | jfuruness/lib_ddos_simulator | 2d860fd3f35f4c25262f5269251eed89975f95e8 | [
"BSD-4-Clause"
] | 1 | 2020-02-16T17:55:46.000Z | 2020-02-16T17:55:46.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""This module creates the flask app to shuffle users
App must be here because flask explodes if you move to subdir"""
__Lisence__ = "BSD"
__maintainer__ = "Justin Furuness"
__email__ = "jfuruness@gmail.com"
__status__ = "Development"
import pkg_resources
from flasgge... | 32.551282 | 97 | 0.60575 | 623 | 5,078 | 4.720706 | 0.274478 | 0.032302 | 0.061884 | 0.034002 | 0.230874 | 0.196192 | 0.16355 | 0.125468 | 0.090445 | 0.053043 | 0 | 0.018858 | 0.258566 | 5,078 | 155 | 98 | 32.76129 | 0.762284 | 0.149665 | 0 | 0.126214 | 0 | 0 | 0.233365 | 0.0403 | 0 | 0 | 0 | 0 | 0.009709 | 1 | 0.067961 | false | 0 | 0.07767 | 0.019417 | 0.213592 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9207e392d5244627558a7eff04b6d9be4add7394 | 2,882 | py | Python | src/controllers/MPCController.py | MatthiasDR96/inverted_pendulum_simulator | c13314b625445c13a4225b88480e2bed772fe466 | [
"MIT"
] | null | null | null | src/controllers/MPCController.py | MatthiasDR96/inverted_pendulum_simulator | c13314b625445c13a4225b88480e2bed772fe466 | [
"MIT"
] | null | null | null | src/controllers/MPCController.py | MatthiasDR96/inverted_pendulum_simulator | c13314b625445c13a4225b88480e2bed772fe466 | [
"MIT"
] | null | null | null | import cvxpy
import numpy as np
class Control:
def __init__(self, model):
# Bind model
self.model = model
# Desired x_pos
self.xd = 0.0
# Control parameters
self.N = 100
# Control limits
self.umax = np.reshape... | 32.382022 | 118 | 0.497224 | 441 | 2,882 | 3.22449 | 0.226757 | 0.059072 | 0.067511 | 0.067511 | 0.224332 | 0.223629 | 0.123769 | 0.123769 | 0.085795 | 0.079466 | 0 | 0.058338 | 0.327897 | 2,882 | 88 | 119 | 32.75 | 0.675787 | 0.123525 | 0 | 0.083333 | 0 | 0 | 0.00319 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.041667 | 0 | 0.145833 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
920a0f56b7d98522ca08ddd15424f5561358eed0 | 5,211 | py | Python | aclpwn/pathfinding.py | aas-n/aclpwn.py | b447f20b2b2ea0905e6430f6e6bb85237f13e23f | [
"MIT"
] | 5 | 2021-05-18T21:25:46.000Z | 2022-03-09T05:09:32.000Z | aclpwn/pathfinding.py | aas-n/aclpwn.py | b447f20b2b2ea0905e6430f6e6bb85237f13e23f | [
"MIT"
] | null | null | null | aclpwn/pathfinding.py | aas-n/aclpwn.py | b447f20b2b2ea0905e6430f6e6bb85237f13e23f | [
"MIT"
] | null | null | null | from aclpwn import utils, database
# Cost map for relationships
costmap = {
'MemberOf': 0,
'AddMember': 1,
'GenericAll': 1,
'GenericWrite': 1,
'WriteOwner': 3,
'WriteDacl': 2,
'DCSync': 0,
'Owns': 2,
'GetChangesAll': 0,
'GetChanges': 0,
'AllExtendedRights': 2
}
def dijkst... | 39.778626 | 133 | 0.573211 | 631 | 5,211 | 4.700475 | 0.283677 | 0.024275 | 0.024275 | 0.033715 | 0.422792 | 0.390425 | 0.331086 | 0.302765 | 0.287256 | 0.26062 | 0 | 0.01574 | 0.268471 | 5,211 | 130 | 134 | 40.084615 | 0.762329 | 0.104203 | 0 | 0.203704 | 0 | 0.046296 | 0.300988 | 0.079004 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.009259 | 0 | 0.12037 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
920a9793f168d206e013f7bbb71c589069f6db3f | 6,343 | py | Python | src/data/load_data_from_text.py | dsridhar91/hstm | af943b3f34e443f6fda8115b300fc828ba2ff6ba | [
"MIT"
] | null | null | null | src/data/load_data_from_text.py | dsridhar91/hstm | af943b3f34e443f6fda8115b300fc828ba2ff6ba | [
"MIT"
] | null | null | null | src/data/load_data_from_text.py | dsridhar91/hstm | af943b3f34e443f6fda8115b300fc828ba2ff6ba | [
"MIT"
] | null | null | null | import os
import json
import numpy as np
import pandas as pd
import gzip
import argparse
from collections import Counter
def load_mixed_corpus():
grocery_file = '../dat/reviews_Grocery_and_Gourmet_Food_5.json'
office_file = '../dat/reviews_Office_Products_5.json'
doc_groc, _ = load_amazon(grocery_file, 5000, 'revi... | 29.640187 | 88 | 0.702034 | 907 | 6,343 | 4.689085 | 0.197354 | 0.069598 | 0.022572 | 0.023043 | 0.238655 | 0.180108 | 0.122972 | 0.116388 | 0.06419 | 0.046555 | 0 | 0.013153 | 0.148983 | 6,343 | 214 | 89 | 29.640187 | 0.774731 | 0.003311 | 0 | 0.16092 | 0 | 0 | 0.138247 | 0.046346 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051724 | false | 0 | 0.04023 | 0 | 0.137931 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
920dc979bbbe3c3f4d049b066bb2c9d6cdf12abd | 2,396 | py | Python | app/crud/address.py | oscarine/oscarine-api | ed4760724e42ac13aeaa3a566d19bf31113c9b8f | [
"MIT"
] | 7 | 2019-09-18T19:45:46.000Z | 2020-05-18T20:07:07.000Z | app/crud/address.py | oscarine/oscarine-api | ed4760724e42ac13aeaa3a566d19bf31113c9b8f | [
"MIT"
] | 252 | 2019-09-18T20:25:03.000Z | 2022-03-25T11:23:50.000Z | app/crud/address.py | oscarine/oscarine-api | ed4760724e42ac13aeaa3a566d19bf31113c9b8f | [
"MIT"
] | 8 | 2019-09-18T11:02:45.000Z | 2021-05-18T17:08:51.000Z | from datetime import datetime
from typing import List
from fastapi.encoders import jsonable_encoder
from sqlalchemy.orm import Session
from app.api.utils.db import clone_db_model
from app.db_models.address import Address
from app.models.address import EditAddress, UserAddress
def add_user_address(
db_session: S... | 32.378378 | 88 | 0.707429 | 316 | 2,396 | 5.18038 | 0.221519 | 0.07697 | 0.04887 | 0.036652 | 0.504582 | 0.434942 | 0.372022 | 0.227856 | 0.179597 | 0.179597 | 0 | 0 | 0.186561 | 2,396 | 73 | 89 | 32.821918 | 0.839918 | 0.020451 | 0 | 0.333333 | 0 | 0 | 0.064819 | 0.031983 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.116667 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
920dd0484a64f720a0513aad802820f70a897dcc | 2,493 | py | Python | Python/examples/AdvancedSpecificMultipleInstruments.py | william-richards-idexx/fgt-SDK | 674b572c714302be561b08ba63ff3358dfa13cea | [
"Apache-2.0"
] | 20 | 2019-05-21T17:43:07.000Z | 2022-03-22T16:38:59.000Z | Python/examples/AdvancedSpecificMultipleInstruments.py | william-richards-idexx/fgt-SDK | 674b572c714302be561b08ba63ff3358dfa13cea | [
"Apache-2.0"
] | 28 | 2019-05-21T17:36:24.000Z | 2022-03-21T07:21:51.000Z | Python/examples/AdvancedSpecificMultipleInstruments.py | william-richards-idexx/fgt-SDK | 674b572c714302be561b08ba63ff3358dfa13cea | [
"Apache-2.0"
] | 7 | 2020-09-18T23:47:25.000Z | 2022-03-03T09:36:48.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Advanced Specific Multiple Instruments
This example shows how to use specific channels ID and multiple connected
instruments
Requires at least two Fluigent pressure channels
Copyright (c) Fluigent 2019. All Rights Reserved.
"""
# Print function for Python 2 compatibi... | 35.112676 | 96 | 0.765744 | 331 | 2,493 | 5.679758 | 0.389728 | 0.028723 | 0.031915 | 0.044681 | 0.233511 | 0.18883 | 0.121277 | 0.121277 | 0.121277 | 0.121277 | 0 | 0.008447 | 0.145207 | 2,493 | 70 | 97 | 35.614286 | 0.873768 | 0.372242 | 0 | 0.125 | 0 | 0 | 0.225618 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15625 | 0 | 0.15625 | 0.375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9213947a6c459942a56f0c3d98a57e842bc0d8f6 | 875 | py | Python | _scripts/one-time/makeDecosNonCampaign.py | Son-Guhun/Titan-Land-Lands-of-Plenty | edeca1d5437a7397195799ebf4b9585ee4609fed | [
"MIT"
] | 12 | 2019-05-27T16:02:28.000Z | 2021-01-08T09:32:08.000Z | _scripts/one-time/makeDecosNonCampaign.py | Son-Guhun/Titan-Land-Lands-of-Plenty | edeca1d5437a7397195799ebf4b9585ee4609fed | [
"MIT"
] | 209 | 2019-04-06T15:16:52.000Z | 2021-07-03T02:11:53.000Z | _scripts/one-time/makeDecosNonCampaign.py | Son-Guhun/Titan-Land-Lands-of-Plenty | edeca1d5437a7397195799ebf4b9585ee4609fed | [
"MIT"
] | 1 | 2021-05-26T12:13:35.000Z | 2021-05-26T12:13:35.000Z | """This script iterates over all decorations in a .ini database and set their Specialart field
to the format expected by the SpecialEffect system.
"""
from myconfigparser import MyConfigParser, load_unit_data, get_decorations, Section
dataBase = '../development/table/unit.ini'
def configure_decorations(unit_data, dec... | 33.653846 | 95 | 0.668571 | 110 | 875 | 5.136364 | 0.472727 | 0.113274 | 0.100885 | 0.099115 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007299 | 0.217143 | 875 | 25 | 96 | 35 | 0.817518 | 0.163429 | 0 | 0 | 0 | 0 | 0.111724 | 0.04 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.0625 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
92162c36211ae5a295d2c5d9300ea4a55a55b0d5 | 4,135 | py | Python | gradient/cli/tensorboards.py | vishalbelsare/gradient-cli | c0e06252925cad3ad73d47ded1100f6b0cb0989a | [
"0BSD"
] | 52 | 2019-06-10T04:20:00.000Z | 2021-12-06T01:13:26.000Z | gradient/cli/tensorboards.py | vishalbelsare/gradient-cli | c0e06252925cad3ad73d47ded1100f6b0cb0989a | [
"0BSD"
] | 125 | 2019-06-05T16:34:19.000Z | 2022-03-30T18:46:06.000Z | gradient/cli/tensorboards.py | vishalbelsare/gradient-cli | c0e06252925cad3ad73d47ded1100f6b0cb0989a | [
"0BSD"
] | 11 | 2019-07-16T06:48:55.000Z | 2021-12-15T12:41:51.000Z | import click
from gradient.cli import common
from gradient.cli.cli import cli
from gradient.commands import tensorboards as tensorboards_commands
@cli.group("tensorboards", help="Manage tensorboards", cls=common.ClickGroup)
def tensorboards_group():
pass
@tensorboards_group.command("create", help="Create new t... | 26.677419 | 91 | 0.712696 | 457 | 4,135 | 6.291028 | 0.170678 | 0.050087 | 0.104 | 0.077913 | 0.640348 | 0.577391 | 0.550261 | 0.493217 | 0.441043 | 0.377391 | 0 | 0.001709 | 0.151149 | 4,135 | 154 | 92 | 26.850649 | 0.817379 | 0.08948 | 0 | 0.6 | 0 | 0 | 0.23498 | 0.007477 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058333 | false | 0.033333 | 0.033333 | 0 | 0.091667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
921710fe148b77c5af4c4630e1aea73b68d40f82 | 5,430 | py | Python | src/selena/services/sla.py | deejay1/selena | 16189ee57c8197ab4375727ef8a905d4f4561eb7 | [
"Apache-2.0"
] | 23 | 2015-01-10T18:17:58.000Z | 2021-12-21T03:01:38.000Z | src/selena/services/sla.py | deejay1/selena | 16189ee57c8197ab4375727ef8a905d4f4561eb7 | [
"Apache-2.0"
] | 20 | 2015-01-10T14:05:42.000Z | 2016-08-09T07:48:50.000Z | src/selena/services/sla.py | deejay1/selena | 16189ee57c8197ab4375727ef8a905d4f4561eb7 | [
"Apache-2.0"
] | 3 | 2015-01-10T18:27:30.000Z | 2020-04-07T16:17:43.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from django.db.models.aggregates import Min
from services.models import (Service, SlaDaily, SlaCache, ServiceHistory)
from ... | 37.448276 | 123 | 0.688029 | 716 | 5,430 | 4.949721 | 0.290503 | 0.027935 | 0.029628 | 0.03386 | 0.189898 | 0.167325 | 0.157731 | 0.157731 | 0.102991 | 0.102991 | 0 | 0.01627 | 0.218969 | 5,430 | 144 | 124 | 37.708333 | 0.819382 | 0.167035 | 0 | 0.128713 | 0 | 0 | 0.033408 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.049505 | false | 0 | 0.108911 | 0 | 0.19802 | 0.009901 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
921793e6129c6314d6f7c5cb0bd9274856e44cb1 | 2,960 | py | Python | examples/fashion_mnist_example.py | saugatkandel/cvnn | f6d7b5c17fd064a7eaa60e7af922914a974eb69a | [
"MIT"
] | 38 | 2020-09-16T14:47:36.000Z | 2022-03-30T13:35:05.000Z | examples/fashion_mnist_example.py | saugatkandel/cvnn | f6d7b5c17fd064a7eaa60e7af922914a974eb69a | [
"MIT"
] | 25 | 2020-10-03T19:30:16.000Z | 2022-03-29T15:24:44.000Z | examples/fashion_mnist_example.py | saugatkandel/cvnn | f6d7b5c17fd064a7eaa60e7af922914a974eb69a | [
"MIT"
] | 9 | 2021-01-18T10:48:57.000Z | 2022-02-11T10:34:52.000Z | # TensorFlow and tf.keras
import tensorflow as tf
# Helper libraries
import numpy as np
import matplotlib.pyplot as plt
from cvnn import layers
print(tf.__version__)
def get_fashion_mnist_dataset():
fashion_mnist = tf.keras.datasets.fashion_mnist
(train_images, train_labels), (test_images, test_labels) = fas... | 43.529412 | 119 | 0.714865 | 384 | 2,960 | 5.260417 | 0.255208 | 0.034653 | 0.079208 | 0.108911 | 0.612376 | 0.590099 | 0.590099 | 0.590099 | 0.527723 | 0.527723 | 0 | 0.027981 | 0.166892 | 2,960 | 67 | 120 | 44.179104 | 0.79116 | 0.064189 | 0 | 0.423077 | 0 | 0 | 0.071971 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.211538 | 0.057692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
921ae232934b3615fdba27bd605f3a627db67ede | 1,064 | py | Python | challenges/2021/06-lanternfish/py/__init__.py | codemicro/adventOfCode | 53574532ece1d19e5f5ba2f39e8e183c4c6225a1 | [
"MIT"
] | 9 | 2020-12-06T23:18:30.000Z | 2021-12-19T22:31:26.000Z | challenges/2021/06-lanternfish/py/__init__.py | codemicro/adventOfCode | 53574532ece1d19e5f5ba2f39e8e183c4c6225a1 | [
"MIT"
] | null | null | null | challenges/2021/06-lanternfish/py/__init__.py | codemicro/adventOfCode | 53574532ece1d19e5f5ba2f39e8e183c4c6225a1 | [
"MIT"
] | 3 | 2020-12-08T09:45:44.000Z | 2020-12-15T19:20:20.000Z | from typing import List, Dict
from aocpy import BaseChallenge
def parse(instr: str) -> List[int]:
return list(map(int, instr.strip().split(",")))
def count_fish_by_timer(all_fish: List[int]) -> Dict[int, int]:
m = {}
for fish in all_fish:
m[fish] = m.get(fish, 0) + 1
return m
def iterate_f... | 23.644444 | 63 | 0.608083 | 175 | 1,064 | 3.514286 | 0.297143 | 0.079675 | 0.043902 | 0.068293 | 0.193496 | 0.193496 | 0.162602 | 0.162602 | 0.162602 | 0.162602 | 0 | 0.025157 | 0.25282 | 1,064 | 44 | 64 | 24.181818 | 0.748428 | 0.023496 | 0 | 0.129032 | 0 | 0 | 0.000965 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.193548 | false | 0 | 0.064516 | 0.032258 | 0.483871 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ecf5d69ffbb4ac849872de070db13227e5f7d278 | 1,569 | py | Python | django_dhcp/urls.py | weijia/django-dhcp | 625c031f5b969d48e7ad15bca75c460ddad20a00 | [
"BSD-3-Clause"
] | 1 | 2016-12-24T21:00:03.000Z | 2016-12-24T21:00:03.000Z | django_dhcp/urls.py | weijia/django-dhcp | 625c031f5b969d48e7ad15bca75c460ddad20a00 | [
"BSD-3-Clause"
] | null | null | null | django_dhcp/urls.py | weijia/django-dhcp | 625c031f5b969d48e7ad15bca75c460ddad20a00 | [
"BSD-3-Clause"
] | null | null | null | from django.conf.urls import patterns, include, url
from django.contrib.auth.decorators import login_required
from django.core.urlresolvers import reverse, reverse_lazy
from django.views.generic import ListView, DetailView, UpdateView, CreateView
from django_dhcp.models import NetworkNode
urlpatterns = patterns('',
... | 43.583333 | 87 | 0.511791 | 142 | 1,569 | 5.478873 | 0.394366 | 0.064267 | 0.092545 | 0.113111 | 0.169666 | 0.169666 | 0.169666 | 0.169666 | 0 | 0 | 0 | 0.004145 | 0.384959 | 1,569 | 36 | 88 | 43.583333 | 0.802073 | 0 | 0 | 0.066667 | 0 | 0 | 0.126115 | 0.072611 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.033333 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ecf6c36593681a36f3dd9d09dc12399f3a5c1c70 | 8,604 | py | Python | alipay/aop/api/domain/SearchBrandBoxInfo.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 213 | 2018-08-27T16:49:32.000Z | 2021-12-29T04:34:12.000Z | alipay/aop/api/domain/SearchBrandBoxInfo.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 29 | 2018-09-29T06:43:00.000Z | 2021-09-02T03:27:32.000Z | alipay/aop/api/domain/SearchBrandBoxInfo.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 59 | 2018-08-27T16:59:26.000Z | 2022-03-25T10:08:15.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.BoxExclusiveBase import BoxExclusiveBase
from alipay.aop.api.domain.BoxOrderStatusInfo import BoxOrderStatusInfo
from alipay.aop.api.domain.BoxExclusiveKeyword import BoxExclusiveKe... | 35.553719 | 91 | 0.607508 | 1,000 | 8,604 | 4.93 | 0.066 | 0.070994 | 0.070588 | 0.043813 | 0.445639 | 0.381136 | 0.150913 | 0.130223 | 0.068154 | 0.023529 | 0 | 0.000499 | 0.30172 | 8,604 | 241 | 92 | 35.701245 | 0.820073 | 0.004881 | 0 | 0.179724 | 0 | 0 | 0.086001 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.124424 | false | 0 | 0.032258 | 0.0553 | 0.230415 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ecf7e96aed7bb38c108c65e6a088553ea5f5fcea | 4,921 | py | Python | dependencyinjection/internal/descriptors.py | Cologler/dependencyinjection-python | dc05c61571f10652d82929ebec4b255f109b840b | [
"MIT"
] | null | null | null | dependencyinjection/internal/descriptors.py | Cologler/dependencyinjection-python | dc05c61571f10652d82929ebec4b255f109b840b | [
"MIT"
] | null | null | null | dependencyinjection/internal/descriptors.py | Cologler/dependencyinjection-python | dc05c61571f10652d82929ebec4b255f109b840b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2017~2999 - cologler <skyoflw@gmail.com>
# ----------
#
# ----------
from abc import abstractmethod
import inspect
from .common import LifeTime, IServiceProvider, IDescriptor, ICallSiteMaker
from .param_type_resolver import ParameterTypeResolver
from .err... | 36.183824 | 106 | 0.655151 | 506 | 4,921 | 6.096838 | 0.231225 | 0.08201 | 0.038898 | 0.030794 | 0.266451 | 0.220421 | 0.176337 | 0.146191 | 0.084603 | 0 | 0 | 0.002481 | 0.262955 | 4,921 | 135 | 107 | 36.451852 | 0.848084 | 0.024182 | 0 | 0.117647 | 0 | 0 | 0.049009 | 0.005005 | 0 | 0 | 0 | 0 | 0 | 1 | 0.156863 | false | 0 | 0.058824 | 0.068627 | 0.382353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ecf8a661406818a230a4076d57178a508b0bd6f5 | 2,666 | py | Python | ilurl/core/ql/define.py | guilhermevarela/ilu | e4db9744c28f9e04ae82c884f131ee8cd9601cc8 | [
"MIT"
] | 2 | 2019-10-18T17:04:50.000Z | 2019-10-18T17:05:04.000Z | ilurl/core/ql/define.py | guilhermevarela/ilurl | e4db9744c28f9e04ae82c884f131ee8cd9601cc8 | [
"MIT"
] | 17 | 2019-11-20T09:33:50.000Z | 2020-01-30T14:57:40.000Z | ilurl/core/ql/define.py | gsavarela/ilurl | e4db9744c28f9e04ae82c884f131ee8cd9601cc8 | [
"MIT"
] | null | null | null | """The module helps define the q learning dictionary"""
__author__ = "Guilherme Varela"
__date__ = "2019-07-25"
from itertools import product as prod
def dpq_tls(state_rank, state_dim,
action_rank, action_dim, initial_value=0):
"""Prepares a dynamic programming Q-learning table
for a traffic ligh... | 24.685185 | 59 | 0.620405 | 370 | 2,666 | 4.389189 | 0.335135 | 0.051724 | 0.007389 | 0.007389 | 0.289409 | 0.253695 | 0.246305 | 0.246305 | 0.199507 | 0.199507 | 0 | 0.023709 | 0.288072 | 2,666 | 107 | 60 | 24.915888 | 0.831928 | 0.646287 | 0 | 0 | 0 | 0 | 0.037901 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.047619 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ecf92f0deadf2f7bda487207ea9032532498f896 | 296 | py | Python | Company_Based_Questions/Geometry/Count_number_of_rectangles_in_a_circle.py | Satyam-Bhalla/Competitive-Coding | 5814f5f60572f1e76495efe751b94bf4d2845198 | [
"MIT"
] | 1 | 2021-12-09T10:36:48.000Z | 2021-12-09T10:36:48.000Z | Company_Based_Questions/Geometry/Count_number_of_rectangles_in_a_circle.py | Satyam-Bhalla/Competitive-Coding | 5814f5f60572f1e76495efe751b94bf4d2845198 | [
"MIT"
] | null | null | null | Company_Based_Questions/Geometry/Count_number_of_rectangles_in_a_circle.py | Satyam-Bhalla/Competitive-Coding | 5814f5f60572f1e76495efe751b94bf4d2845198 | [
"MIT"
] | null | null | null | def countRectangles(r):
d = 2*r
dSq = d*d
rectangles = 0
for i in range(1,d):
for j in range(1,d):
if i**2+j**2 <= dSq:
rectangles += 1
return rectangles
t = int(input())
for _ in range(t):
r = int(input())
print(countRectangles(r)) | 22.769231 | 32 | 0.510135 | 46 | 296 | 3.26087 | 0.434783 | 0.14 | 0.106667 | 0.12 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036082 | 0.344595 | 296 | 13 | 33 | 22.769231 | 0.737113 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.153846 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ecf99972906a2664b8eb3161b627de2250acc67f | 546 | py | Python | siteapp/models.py | cbidici/cbsite | 594e327ad0c0bfa5015461eb243176c3aec7b68d | [
"MIT"
] | null | null | null | siteapp/models.py | cbidici/cbsite | 594e327ad0c0bfa5015461eb243176c3aec7b68d | [
"MIT"
] | 1 | 2020-05-10T14:45:22.000Z | 2020-05-10T15:06:50.000Z | siteapp/models.py | cbidici/cbsite | 594e327ad0c0bfa5015461eb243176c3aec7b68d | [
"MIT"
] | null | null | null | from django.db import models
from slugify import slugify
class Tag(models.Model):
id = models.AutoField(primary_key=True)
slug = models.CharField(max_length=128, unique=True)
tag = models.CharField(max_length=128)
def save(self, force_insert=False, force_update=False):
self.slug = slugify(sel... | 23.73913 | 59 | 0.695971 | 73 | 546 | 5.054795 | 0.479452 | 0.04878 | 0.097561 | 0.130081 | 0.146341 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013793 | 0.203297 | 546 | 22 | 60 | 24.818182 | 0.834483 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.133333 | 0.066667 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ecfb22412fbdd1ca40827fb6bcc73e85e6d1f7d3 | 392 | py | Python | file_rename_voc.py | GitEasonXu/Python_wheel | 52a495b4b90132d6980aeded099ff575f2ed58e4 | [
"MIT"
] | null | null | null | file_rename_voc.py | GitEasonXu/Python_wheel | 52a495b4b90132d6980aeded099ff575f2ed58e4 | [
"MIT"
] | null | null | null | file_rename_voc.py | GitEasonXu/Python_wheel | 52a495b4b90132d6980aeded099ff575f2ed58e4 | [
"MIT"
] | null | null | null | ##遍历指定path下所有文件,并将文件名d重命名为name
import os
path = './Image'
for (root,dirs,files) in os.walk(path) :
for item in files :
Olddir = os.path.join(root, item)
filename=os.path.split(Olddir)[0] #文件名
filetype=os.path.split(Olddir)[1][-4:] #文件扩展名
Newdir=os.path.join(path,str(coun... | 32.666667 | 62 | 0.609694 | 55 | 392 | 4.345455 | 0.527273 | 0.125523 | 0.083682 | 0.142259 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016667 | 0.234694 | 392 | 12 | 63 | 32.666667 | 0.78 | 0.091837 | 0 | 0 | 0 | 0 | 0.01983 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ecfe6cf1d1e3eb686af5893cb455fa42f77691d4 | 6,833 | py | Python | src/protocol_analysis/protocol_analysis.py | shelleyshuzhang/mon-iot-traffic-analysis | fb4cead55fed8163af5975ccf2ccea3c63b8c97a | [
"Apache-2.0"
] | 1 | 2020-10-18T07:56:47.000Z | 2020-10-18T07:56:47.000Z | src/protocol_analysis/protocol_analysis.py | shelleyshuzhang/mon-iot-traffic-analysis | fb4cead55fed8163af5975ccf2ccea3c63b8c97a | [
"Apache-2.0"
] | null | null | null | src/protocol_analysis/protocol_analysis.py | shelleyshuzhang/mon-iot-traffic-analysis | fb4cead55fed8163af5975ccf2ccea3c63b8c97a | [
"Apache-2.0"
] | null | null | null | import csv
import os
from multiprocessing import Manager
from multiprocessing import Process
####### must import the packet in scapy in order to see the results #######
from scapy import *
from scapy.layers import *
from scapy.layers.dns import *
from scapy.layers.inet import *
from scapy.utils import PcapReader
from... | 35.221649 | 103 | 0.536075 | 779 | 6,833 | 4.521181 | 0.213094 | 0.022147 | 0.017036 | 0.017888 | 0.089154 | 0.061897 | 0.056786 | 0.034639 | 0.034639 | 0.034639 | 0 | 0.011397 | 0.357969 | 6,833 | 193 | 104 | 35.404145 | 0.791429 | 0.072443 | 0 | 0.163265 | 0 | 0 | 0.08365 | 0.005862 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040816 | false | 0 | 0.081633 | 0 | 0.156463 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ecff03b69669e40823b94d33d2618c575448cad8 | 3,988 | py | Python | BayOptPy/tpot/notebooks/evaluate_results.py | Mind-the-Pineapple/tpot-age | 2969bfa6dc5c652d5b4f00f59e9b0b23869f6bef | [
"MIT"
] | 3 | 2020-04-09T16:53:54.000Z | 2020-04-21T16:49:52.000Z | BayOptPy/tpot/notebooks/evaluate_results.py | Mind-the-Pineapple/tpot-age | 2969bfa6dc5c652d5b4f00f59e9b0b23869f6bef | [
"MIT"
] | null | null | null | BayOptPy/tpot/notebooks/evaluate_results.py | Mind-the-Pineapple/tpot-age | 2969bfa6dc5c652d5b4f00f59e9b0b23869f6bef | [
"MIT"
] | null | null | null | '''
This scripts define functions that will be used by the different notebooks to
analyse the results
'''
import pandas as pd
from plotly import tools
import plotly.graph_objs as go
def predecessor_generation(results, curr_generation, verbose):
'''
Print the predecessor's generation for all the models in a spe... | 45.318182 | 121 | 0.614092 | 485 | 3,988 | 4.853608 | 0.323711 | 0.058624 | 0.044605 | 0.040357 | 0.146559 | 0.071368 | 0.029737 | 0.029737 | 0 | 0 | 0 | 0.009434 | 0.282347 | 3,988 | 87 | 122 | 45.83908 | 0.813068 | 0.161234 | 0 | 0.032258 | 0 | 0 | 0.164595 | 0.052743 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048387 | false | 0 | 0.048387 | 0 | 0.145161 | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a6018f719d55a7b7e6894dc15be94c1e0f710808 | 817 | py | Python | h/migrations/versions/77c2af032aca_add_document_uri_and_meta_docid_ix.py | y3g0r/h | a057144956fe25e669aeba5d0f0eb38f9dc09566 | [
"BSD-2-Clause"
] | 2 | 2019-08-04T07:22:11.000Z | 2020-07-17T05:01:41.000Z | h/migrations/versions/77c2af032aca_add_document_uri_and_meta_docid_ix.py | fuelpress/i.fuel.press | af7b25895d813af0fef656dcf483afe852a99d76 | [
"BSD-2-Clause"
] | 4 | 2020-03-24T17:38:24.000Z | 2022-03-02T05:45:01.000Z | h/migrations/versions/77c2af032aca_add_document_uri_and_meta_docid_ix.py | fuelpress/i.fuel.press | af7b25895d813af0fef656dcf483afe852a99d76 | [
"BSD-2-Clause"
] | null | null | null | """Add Document URI and Meta document_id index
Revision ID: 77c2af032aca
Revises: f3b8e76ae9f5
Create Date: 2016-05-13 15:06:55.496502
"""
# revision identifiers, used by Alembic.
revision = "77c2af032aca"
down_revision = "f3b8e76ae9f5"
from alembic import op
import sqlalchemy as sa
def upgrade():
op.execute(... | 22.694444 | 73 | 0.691554 | 105 | 817 | 5.057143 | 0.4 | 0.131827 | 0.105461 | 0.07533 | 0.512241 | 0.376648 | 0.376648 | 0.323917 | 0.323917 | 0.323917 | 0 | 0.066768 | 0.19339 | 817 | 35 | 74 | 23.342857 | 0.738998 | 0.210526 | 0 | 0.285714 | 0 | 0 | 0.339089 | 0.178964 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.095238 | 0 | 0.190476 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a60228f4b0493e204cf39ee8d4a76aafe56f57f7 | 4,410 | py | Python | performance.py | PudPawat/protest-detection-violence-estimation | 6469c3ae47a7d99308458174fe16bd2c5c7821aa | [
"MIT"
] | 2 | 2020-12-10T01:22:13.000Z | 2021-03-11T08:05:16.000Z | performance.py | PudPawat/protest-detection-violence-estimation | 6469c3ae47a7d99308458174fe16bd2c5c7821aa | [
"MIT"
] | null | null | null | performance.py | PudPawat/protest-detection-violence-estimation | 6469c3ae47a7d99308458174fe16bd2c5c7821aa | [
"MIT"
] | null | null | null | import os
import subprocess
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import argparse
import seaborn as sns # I love this package!
sns.set_style('white')
import torch
from sklearn.metrics import accuracy_score, roc_auc_score, roc_curve
import scipy.stats as stats
def plot_roc(attr, target... | 36.446281 | 80 | 0.594558 | 568 | 4,410 | 4.466549 | 0.288732 | 0.031533 | 0.030745 | 0.020102 | 0.292077 | 0.214821 | 0.214821 | 0.173827 | 0.148601 | 0.148601 | 0 | 0.015699 | 0.277778 | 4,410 | 121 | 81 | 36.446281 | 0.780848 | 0.057143 | 0 | 0.207921 | 0 | 0.009901 | 0.176315 | 0.034009 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019802 | false | 0 | 0.09901 | 0 | 0.128713 | 0.019802 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a60260497b4fa5807ca2464a85c90d77b9b013da | 6,071 | py | Python | tangent/anf.py | aayushi94/tangent | 4a8c5f1f0c69adc574a2643a6bc02521c5bdaa2a | [
"Apache-2.0"
] | null | null | null | tangent/anf.py | aayushi94/tangent | 4a8c5f1f0c69adc574a2643a6bc02521c5bdaa2a | [
"Apache-2.0"
] | null | null | null | tangent/anf.py | aayushi94/tangent | 4a8c5f1f0c69adc574a2643a6bc02521c5bdaa2a | [
"Apache-2.0"
] | 1 | 2019-12-06T11:51:41.000Z | 2019-12-06T11:51:41.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 32.994565 | 79 | 0.654423 | 834 | 6,071 | 4.731415 | 0.254197 | 0.049671 | 0.02965 | 0.036493 | 0.292448 | 0.193867 | 0.150532 | 0.128231 | 0.088697 | 0.088697 | 0 | 0.003884 | 0.236534 | 6,071 | 183 | 80 | 33.174863 | 0.847465 | 0.236864 | 0 | 0.333333 | 0 | 0 | 0.004999 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113821 | false | 0 | 0.056911 | 0 | 0.284553 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a602c20e6c62e465410e523f5014d66e68793385 | 1,565 | py | Python | tests/tagger_test.py | slouvan/anago | 99a8be0ba2ea42c9c686ff9697ea9e6ef60ca028 | [
"MIT"
] | null | null | null | tests/tagger_test.py | slouvan/anago | 99a8be0ba2ea42c9c686ff9697ea9e6ef60ca028 | [
"MIT"
] | 9 | 2020-01-28T22:26:05.000Z | 2022-02-09T23:47:51.000Z | tests/tagger_test.py | tungnt244/ie_tourism_model | f9d6a234af4ddeb632b63e6dcd05eea23a48b2a7 | [
"MIT"
] | 1 | 2021-06-23T13:35:51.000Z | 2021-06-23T13:35:51.000Z | import os
import unittest
from pprint import pprint
import anago
from anago.config import ModelConfig
from anago.models import SeqLabeling
from anago.preprocess import WordPreprocessor
SAVE_ROOT = os.path.join(os.path.dirname(__file__), 'models')
class TaggerTest(unittest.TestCase):
def setUp(self):
p ... | 30.686275 | 78 | 0.656869 | 206 | 1,565 | 4.883495 | 0.364078 | 0.139165 | 0.091451 | 0.050696 | 0.139165 | 0.067594 | 0 | 0 | 0 | 0 | 0 | 0.009756 | 0.214058 | 1,565 | 50 | 79 | 31.3 | 0.80813 | 0 | 0 | 0 | 0 | 0 | 0.063259 | 0 | 0 | 0 | 0 | 0 | 0.243243 | 1 | 0.108108 | false | 0 | 0.189189 | 0 | 0.324324 | 0.081081 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a6033320b86e6ca0f7d5044e4b6dd458c4e4c840 | 1,858 | py | Python | unittest/base/JobControllerTest.py | hamatoma/snakeboxx | de4609e0d980c7ce775060e3813e71752e8670aa | [
"CC0-1.0"
] | null | null | null | unittest/base/JobControllerTest.py | hamatoma/snakeboxx | de4609e0d980c7ce775060e3813e71752e8670aa | [
"CC0-1.0"
] | null | null | null | unittest/base/JobControllerTest.py | hamatoma/snakeboxx | de4609e0d980c7ce775060e3813e71752e8670aa | [
"CC0-1.0"
] | null | null | null | '''
Created on 12.04.2018
@author: hm
'''
import os
import time
from unittest.UnitTestCase import UnitTestCase
import base.MemoryLogger
import base.JobController
import base.StringUtils
DEBUG = False
class TestJobController (base.JobController.JobController):
def __init__(self, logger):
base.JobControll... | 32.034483 | 123 | 0.682454 | 197 | 1,858 | 6.213198 | 0.365482 | 0.102941 | 0.098039 | 0.056373 | 0.173203 | 0.05719 | 0 | 0 | 0 | 0 | 0 | 0.011266 | 0.187836 | 1,858 | 57 | 124 | 32.596491 | 0.799867 | 0.041981 | 0 | 0.04878 | 0 | 0 | 0.053612 | 0.013544 | 0.02439 | 0 | 0 | 0 | 0.146341 | 1 | 0.170732 | false | 0 | 0.146341 | 0 | 0.439024 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a605d79f8499b6ae4b9712a96390545d3da40661 | 7,829 | py | Python | online_recommend/first-release-version/online_recommend/movie_recall/cal_movie_sim.py | hfhfn/db_recommend | 3a9f03157bb81e295f8cff30fbc7ad2a8cfdf963 | [
"MIT"
] | null | null | null | online_recommend/first-release-version/online_recommend/movie_recall/cal_movie_sim.py | hfhfn/db_recommend | 3a9f03157bb81e295f8cff30fbc7ad2a8cfdf963 | [
"MIT"
] | null | null | null | online_recommend/first-release-version/online_recommend/movie_recall/cal_movie_sim.py | hfhfn/db_recommend | 3a9f03157bb81e295f8cff30fbc7ad2a8cfdf963 | [
"MIT"
] | null | null | null | from pyspark.ml.clustering import BisectingKMeans, BisectingKMeansModel
from utils import channelInfo
from utils import MovieDataApp
class BkmeansCossim(object):
def __init__(self, spark, database, group=0, recall_topK=50, k=100, minDCS=200, seed=10, channel='电影'):
"""
:param group: int 计算第几组聚类... | 40.989529 | 131 | 0.62013 | 839 | 7,829 | 5.606675 | 0.263409 | 0.028274 | 0.013818 | 0.013605 | 0.239371 | 0.224277 | 0.181335 | 0.146471 | 0.139031 | 0.116497 | 0 | 0.022505 | 0.256482 | 7,829 | 191 | 132 | 40.989529 | 0.785604 | 0.400817 | 0 | 0.084507 | 0 | 0.014085 | 0.097937 | 0.022217 | 0 | 0 | 0 | 0 | 0 | 1 | 0.140845 | false | 0.014085 | 0.126761 | 0.042254 | 0.408451 | 0.014085 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a605fb5e525f35f836c02ffad077a242234f3c4a | 32,138 | py | Python | src/gui/scroll.py | Epihaius/panda3dstudio | f5c62ca49617cae1aa5aa5b695200027da99e242 | [
"BSD-3-Clause"
] | 63 | 2016-01-02T16:28:47.000Z | 2022-01-19T11:29:51.000Z | src/gui/scroll.py | Epihaius/panda3dstudio | f5c62ca49617cae1aa5aa5b695200027da99e242 | [
"BSD-3-Clause"
] | 12 | 2016-06-12T14:14:15.000Z | 2020-12-18T16:11:45.000Z | src/gui/scroll.py | Epihaius/panda3dstudio | f5c62ca49617cae1aa5aa5b695200027da99e242 | [
"BSD-3-Clause"
] | 17 | 2016-05-23T00:02:27.000Z | 2021-04-25T17:48:27.000Z | from .base import *
MAX_TEX_SIZE = 4000 # TODO: make user-configurable
class ScrollThumb(Widget):
def __init__(self, parent, pane, gfx_ids, cull_bin, scroll_dir, inner_border_id):
Widget.__init__(self, "scrollthumb", parent, gfx_ids, "normal")
self._pane = pane
self.direction = scroll... | 33.166151 | 105 | 0.609434 | 4,299 | 32,138 | 4.215166 | 0.071645 | 0.031786 | 0.023674 | 0.038243 | 0.563048 | 0.47387 | 0.420838 | 0.359914 | 0.327631 | 0.303736 | 0 | 0.007158 | 0.291462 | 32,138 | 968 | 106 | 33.200413 | 0.788635 | 0.035783 | 0 | 0.399135 | 0 | 0 | 0.049958 | 0.006596 | 0 | 0 | 0 | 0.001033 | 0 | 1 | 0.103746 | false | 0.002882 | 0.001441 | 0.012968 | 0.151297 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a6089b93cf4c6a825b8066cca145aee395091e54 | 4,561 | py | Python | extraction_tool/extract_token.py | ohadlevy/homebridge-palgate-opener | 1dc2c4e00a7dc969221db6f571a75d2d4088a7a0 | [
"MIT"
] | 13 | 2020-10-24T22:17:31.000Z | 2022-03-04T22:31:23.000Z | extraction_tool/extract_token.py | ohadlevy/homebridge-palgate-opener | 1dc2c4e00a7dc969221db6f571a75d2d4088a7a0 | [
"MIT"
] | 7 | 2021-01-24T11:23:24.000Z | 2022-02-27T13:19:28.000Z | extraction_tool/extract_token.py | ohadlevy/homebridge-palgate-opener | 1dc2c4e00a7dc969221db6f571a75d2d4088a7a0 | [
"MIT"
] | 4 | 2020-10-24T22:17:42.000Z | 2022-01-20T08:01:31.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
########################################################
# PalGate Token Extraction Tool #
########################################################
# #
# Like my work? please consider buying me a ... | 42.626168 | 101 | 0.534093 | 499 | 4,561 | 4.723447 | 0.344689 | 0.074671 | 0.023759 | 0.020365 | 0.140008 | 0.114552 | 0.054306 | 0.038184 | 0.038184 | 0 | 0 | 0.006739 | 0.251699 | 4,561 | 106 | 102 | 43.028302 | 0.683856 | 0.085508 | 0 | 0.157895 | 0 | 0 | 0.402708 | 0.082999 | 0 | 0 | 0 | 0 | 0.065789 | 1 | 0.105263 | false | 0 | 0.039474 | 0 | 0.210526 | 0.315789 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a608ef057ab4973763dbb8b9d94aa73dd295ec64 | 3,335 | py | Python | main.py | Mnkai/GoogleTakeoutPhotosMigrationPrepare | d43c15dce87c937b2696dde16f62461ab504fdef | [
"WTFPL"
] | 1 | 2020-04-19T06:43:30.000Z | 2020-04-19T06:43:30.000Z | main.py | Mnkai/GoogleTakeoutPhotosMigrationPrepare | d43c15dce87c937b2696dde16f62461ab504fdef | [
"WTFPL"
] | null | null | null | main.py | Mnkai/GoogleTakeoutPhotosMigrationPrepare | d43c15dce87c937b2696dde16f62461ab504fdef | [
"WTFPL"
] | null | null | null | import os
import ArrayUtils
import GoogleMetadataUtils
from objects.ExportedObject import ExportedObject
from objects.Image import Image
counter = 0
def directory_walk(start_path, extension):
to_return = []
for (dirpath, dirnames, filenames) in os.walk(start_path):
for filename in filenames:
... | 37.055556 | 113 | 0.689055 | 362 | 3,335 | 6.052486 | 0.21547 | 0.142401 | 0.131447 | 0.098585 | 0.560018 | 0.472387 | 0.375628 | 0.375628 | 0.375628 | 0.375628 | 0 | 0.001544 | 0.223388 | 3,335 | 89 | 114 | 37.47191 | 0.844402 | 0.028186 | 0 | 0.15625 | 0 | 0 | 0.050649 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.078125 | 0 | 0.171875 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a60b9d285aa7339e1763df0a9faec446ada591b3 | 2,658 | py | Python | src/models/gan_bert.py | gchhablani/financial-sentiment-analysis | b18e9072f8edb9f09d0fef697892f2462d6d44e9 | [
"MIT"
] | 2 | 2021-10-03T14:24:52.000Z | 2021-11-17T14:55:53.000Z | src/models/gan_bert.py | gchhablani/financial-sentiment-analysis | b18e9072f8edb9f09d0fef697892f2462d6d44e9 | [
"MIT"
] | null | null | null | src/models/gan_bert.py | gchhablani/financial-sentiment-analysis | b18e9072f8edb9f09d0fef697892f2462d6d44e9 | [
"MIT"
] | 1 | 2021-10-03T14:25:36.000Z | 2021-10-03T14:25:36.000Z | # https://raw.githubusercontent.com/crux82/ganbert-pytorch/main/GANBERT_pytorch.ipynb
# [WIP], not finished
import torch
from torch.nn import Dropout, LeakyReLU, Linear, Module, Sequential
from transformers import AutoModel
class Generator(Module):
def __init__(
self, noise_size=100, output_size=768, hidd... | 34.519481 | 85 | 0.598194 | 315 | 2,658 | 4.796825 | 0.32381 | 0.101919 | 0.031767 | 0.033752 | 0.259431 | 0.207809 | 0.207809 | 0.16413 | 0.16413 | 0.16413 | 0 | 0.02487 | 0.27389 | 2,658 | 76 | 86 | 34.973684 | 0.758031 | 0.133935 | 0 | 0.310345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0.017241 | 0.051724 | 0 | 0.241379 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a60f47844b4e66c2b41b6d88b7e848c7e6e83731 | 1,761 | py | Python | reddit_client.py | spotify-companion/CLI | 29934cc715922263652235d0a9a4f0d8f57ecec5 | [
"MIT"
] | null | null | null | reddit_client.py | spotify-companion/CLI | 29934cc715922263652235d0a9a4f0d8f57ecec5 | [
"MIT"
] | null | null | null | reddit_client.py | spotify-companion/CLI | 29934cc715922263652235d0a9a4f0d8f57ecec5 | [
"MIT"
] | null | null | null | import praw
import pandas as pd
import reddit_constants
class RedditClient(object):
__shared_instance = "RedditClient"
@staticmethod
def get_instance():
""" To implement singleton pattern """
if RedditClient.__shared_instance == "RedditClient":
RedditClient()
... | 33.226415 | 193 | 0.570131 | 189 | 1,761 | 5.10582 | 0.328042 | 0.093264 | 0.124352 | 0.015544 | 0.325389 | 0.232124 | 0.178238 | 0.095337 | 0 | 0 | 0 | 0.007432 | 0.312323 | 1,761 | 53 | 194 | 33.226415 | 0.787779 | 0.0477 | 0 | 0 | 0 | 0 | 0.101198 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.078947 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a610ecc05f6f6e302f862afbc071148996b7ed46 | 19,020 | py | Python | ii_irods/ii_command.py | UtrechtUniversity/ii | 7d3899b4d6bbbf5a14be1d85296b3ea99ffe135b | [
"MIT"
] | null | null | null | ii_irods/ii_command.py | UtrechtUniversity/ii | 7d3899b4d6bbbf5a14be1d85296b3ea99ffe135b | [
"MIT"
] | null | null | null | ii_irods/ii_command.py | UtrechtUniversity/ii | 7d3899b4d6bbbf5a14be1d85296b3ea99ffe135b | [
"MIT"
] | null | null | null | import argparse
from fnmatch import fnmatch
import os.path
import re
import sys
from ii_irods.coll_utils import resolve_base_path, convert_to_absolute_path, get_dataobjects_in_collection
from ii_irods.coll_utils import get_direct_subcollections, get_subcollections, collection_exists
from ii_irods.do_utils import get_d... | 39.055441 | 114 | 0.601472 | 2,143 | 19,020 | 5.166589 | 0.175922 | 0.018696 | 0.033779 | 0.018967 | 0.273573 | 0.216402 | 0.165101 | 0.155708 | 0.140896 | 0.126084 | 0 | 0.002902 | 0.293323 | 19,020 | 486 | 115 | 39.135802 | 0.820847 | 0.109884 | 0 | 0.21547 | 0 | 0 | 0.198702 | 0.001251 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058011 | false | 0 | 0.035912 | 0 | 0.138122 | 0.077348 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a6117f3294c81246ee664c4b1aa72e59144f4cc8 | 6,998 | py | Python | tests/pyarxaas/models/test_Dataset.py | vinayranjan/pyarxaas | f304d360adf1a647d9daff0afda5290ca0fd7ec8 | [
"MIT"
] | 4 | 2020-07-14T16:36:09.000Z | 2020-11-24T14:28:02.000Z | tests/pyarxaas/models/test_Dataset.py | vinayranjan/pyarxaas | f304d360adf1a647d9daff0afda5290ca0fd7ec8 | [
"MIT"
] | 20 | 2020-06-19T04:37:33.000Z | 2021-07-26T04:27:46.000Z | tests/pyarxaas/models/test_Dataset.py | vinayranjan/pyarxaas | f304d360adf1a647d9daff0afda5290ca0fd7ec8 | [
"MIT"
] | 2 | 2020-11-11T11:52:06.000Z | 2020-12-03T10:22:47.000Z | import unittest
import pandas
from pyarxaas.models.attribute_type import AttributeType
from pyarxaas.models.dataset import Dataset
from tests.pyarxaas import data_generator
class DatasetTest(unittest.TestCase):
def setUp(self):
self.test_data = [['id', 'name'],
['0', 'Viktor']... | 43.7375 | 110 | 0.69577 | 789 | 6,998 | 5.858048 | 0.101394 | 0.048464 | 0.049329 | 0.057551 | 0.657075 | 0.609476 | 0.594115 | 0.558633 | 0.492211 | 0.448074 | 0 | 0.010152 | 0.183624 | 6,998 | 159 | 111 | 44.012579 | 0.79888 | 0.010003 | 0 | 0.372881 | 0 | 0 | 0.034378 | 0 | 0 | 0 | 0 | 0 | 0.279661 | 1 | 0.161017 | false | 0 | 0.042373 | 0 | 0.211864 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a612ee91d33761ed97242b786506ebee4d8f2061 | 6,955 | py | Python | perception/utils/visualization.py | jostl/masters-thesis | 211e1f12a07428d37507e2bddc808f6da1149efb | [
"MIT"
] | 3 | 2021-06-19T10:49:26.000Z | 2022-03-26T11:31:28.000Z | perception/utils/visualization.py | jostl/masters-thesis | 211e1f12a07428d37507e2bddc808f6da1149efb | [
"MIT"
] | 1 | 2021-10-12T15:40:55.000Z | 2021-10-12T15:40:55.000Z | perception/utils/visualization.py | jostl/masters-thesis | 211e1f12a07428d37507e2bddc808f6da1149efb | [
"MIT"
] | null | null | null | import random
import matplotlib.pyplot as plt
import numpy as np
import torch
from perception.utils.segmentation_labels import CARLA_CLASSES, DEFAULT_CLASSES
def get_segmentation_colors(n_classes, only_random=False, class_indxs=None, color_seed=73):
assert only_random or class_indxs
random.seed(color_seed)
... | 41.646707 | 137 | 0.68555 | 964 | 6,955 | 4.716805 | 0.18361 | 0.043545 | 0.024632 | 0.015835 | 0.363097 | 0.308115 | 0.261051 | 0.192655 | 0.168683 | 0.168683 | 0 | 0.020736 | 0.202588 | 6,955 | 166 | 138 | 41.89759 | 0.799135 | 0.182027 | 0 | 0.17757 | 0 | 0 | 0.017159 | 0 | 0 | 0 | 0 | 0.006024 | 0.018692 | 1 | 0.093458 | false | 0 | 0.046729 | 0 | 0.186916 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a613b9a8c301525a013a5679b0f23d6447d8344b | 7,214 | py | Python | nova3/engines/nyaapantsu.py | chr0nu5/qBittorrent-Plugins-Easy-Install | 2b905523671f3d75977d1dc399cf6a8c723f463e | [
"MIT"
] | null | null | null | nova3/engines/nyaapantsu.py | chr0nu5/qBittorrent-Plugins-Easy-Install | 2b905523671f3d75977d1dc399cf6a8c723f463e | [
"MIT"
] | null | null | null | nova3/engines/nyaapantsu.py | chr0nu5/qBittorrent-Plugins-Easy-Install | 2b905523671f3d75977d1dc399cf6a8c723f463e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#VERSION: 1.2
#AUTHORS: Joost Bremmer (toost.b@gmail.com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any... | 35.712871 | 83 | 0.530358 | 839 | 7,214 | 4.488677 | 0.312277 | 0.030271 | 0.045141 | 0.055762 | 0.275624 | 0.236325 | 0.141264 | 0.122677 | 0.071163 | 0.030271 | 0 | 0.008778 | 0.368312 | 7,214 | 201 | 84 | 35.890547 | 0.817643 | 0.305656 | 0 | 0.264463 | 0 | 0.008264 | 0.074685 | 0.01176 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057851 | false | 0.024793 | 0.049587 | 0 | 0.157025 | 0.008264 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a619383cde46a46920c9996c56eea79c404d6a6c | 8,342 | py | Python | trainer/audio_trainer.py | ryanwongsa/DeepFakeDetectionChallenge | b9902b88e89d5165190ad673d5dfb10cc821d5a1 | [
"Apache-2.0"
] | 5 | 2020-05-07T18:14:17.000Z | 2021-11-18T02:44:55.000Z | trainer/audio_trainer.py | ryanwongsa/DeepFakeDetectionChallenge | b9902b88e89d5165190ad673d5dfb10cc821d5a1 | [
"Apache-2.0"
] | 1 | 2021-08-17T09:40:28.000Z | 2021-09-20T16:57:29.000Z | trainer/audio_trainer.py | ryanwongsa/DeepFakeDetectionChallenge | b9902b88e89d5165190ad673d5dfb10cc821d5a1 | [
"Apache-2.0"
] | 1 | 2020-12-21T08:31:18.000Z | 2020-12-21T08:31:18.000Z | import torch
torch.backends.cudnn.benchmark = True
from trainer.base_audio_trainer import BaseAudioTrainer
from logger.new_callbacks import Callbacks
from torch.utils.data import DataLoader
from dataloader.audio_dataset import AudioDataset
from torch.optim.lr_scheduler import CosineAnnealingLR
from models.audio_mode... | 42.131313 | 296 | 0.649245 | 1,116 | 8,342 | 4.576165 | 0.171147 | 0.04347 | 0.043078 | 0.035246 | 0.262972 | 0.189348 | 0.125906 | 0.111807 | 0.087331 | 0.07617 | 0 | 0.009009 | 0.254855 | 8,342 | 198 | 297 | 42.131313 | 0.81258 | 0.011268 | 0 | 0.156863 | 0 | 0 | 0.017693 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071895 | false | 0.013072 | 0.091503 | 0 | 0.196078 | 0.006536 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a61e50a3bc6d9d83dac4e1176ba6bdfe1909c870 | 1,881 | py | Python | bin/taxid2lineage.py | twylie/viromatch | 44edca07c44308b17b9f19174c08175736fff53f | [
"MIT"
] | 5 | 2021-02-13T09:02:21.000Z | 2021-10-06T19:20:41.000Z | bin/taxid2lineage.py | twylie/viromatch | 44edca07c44308b17b9f19174c08175736fff53f | [
"MIT"
] | 4 | 2021-05-14T09:02:32.000Z | 2022-03-25T05:06:40.000Z | bin/taxid2lineage.py | twylie/viromatch | 44edca07c44308b17b9f19174c08175736fff53f | [
"MIT"
] | 1 | 2021-04-05T22:30:44.000Z | 2021-04-05T22:30:44.000Z | #! /usr/bin/python3.7
import argparse
from viromatch.lib.taxonomy import Taxonomy
import os
version = '1.0'
def eval_cli_arguments():
parser = argparse.ArgumentParser(
description='Resolve lineage given taxid.',
prog='taxid2lineage.py',
add_help=False
)
# Optional arguments.
... | 21.62069 | 70 | 0.600744 | 209 | 1,881 | 5.248804 | 0.4689 | 0.050137 | 0.04649 | 0.043756 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003715 | 0.284423 | 1,881 | 86 | 71 | 21.872093 | 0.811293 | 0.128655 | 0 | 0.181818 | 0 | 0 | 0.188725 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018182 | false | 0 | 0.054545 | 0 | 0.090909 | 0.036364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a61f07aff13fd36fc9ecc85e1e4a70ff58848de8 | 2,779 | py | Python | database.py | Konako1/osu-tg-bot | fc569b0a0fe2bc25947eb2fca443f809c84ef980 | [
"MIT"
] | 1 | 2022-03-26T16:55:33.000Z | 2022-03-26T16:55:33.000Z | database.py | Konako1/osu-tg-bot | fc569b0a0fe2bc25947eb2fca443f809c84ef980 | [
"MIT"
] | null | null | null | database.py | Konako1/osu-tg-bot | fc569b0a0fe2bc25947eb2fca443f809c84ef980 | [
"MIT"
] | null | null | null | from typing import Optional
import aiosqlite
from aiogram.dispatcher.middlewares import BaseMiddleware
import config
class OsuDb:
def __init__(self, path: str = config.ASSET_PATH / 'osu.db'):
self._conn = aiosqlite.connect(path)
async def connect(self):
self._conn = await self._conn
... | 38.068493 | 100 | 0.582944 | 349 | 2,779 | 4.401146 | 0.203438 | 0.083333 | 0.11849 | 0.104167 | 0.494792 | 0.421224 | 0.352214 | 0.322917 | 0.270833 | 0.123698 | 0 | 0.001064 | 0.323498 | 2,779 | 72 | 101 | 38.597222 | 0.815957 | 0 | 0 | 0.3 | 0 | 0 | 0.171644 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016667 | false | 0 | 0.066667 | 0 | 0.183333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a6238a7cdde1b28e0b8b179e20a5211a8bc243b8 | 8,423 | py | Python | module_utils/rsd_common.py | intel/ansible-rsd-provisioning | 757f4d5ca9447a22efdf56fda337dc19579c6380 | [
"Apache-2.0"
] | 2 | 2019-07-17T09:56:41.000Z | 2020-03-14T21:32:32.000Z | module_utils/rsd_common.py | intel/ansible-rsd-provisioning | 757f4d5ca9447a22efdf56fda337dc19579c6380 | [
"Apache-2.0"
] | null | null | null | module_utils/rsd_common.py | intel/ansible-rsd-provisioning | 757f4d5ca9447a22efdf56fda337dc19579c6380 | [
"Apache-2.0"
] | 4 | 2019-11-02T00:31:07.000Z | 2021-02-17T11:11:46.000Z | # Copyright (c) 2019 Intel Corporation. All rights reserved.
#
# GNU General Public License v3.0+
# (see LICENSE.GPL or https://www.gnu.org/licenses/gpl-3.0.txt)
#
# Authors:
# - Igor D.C. - <igor.duarte.cardoso@intel.com>
# - Marco Chiappero - <marco.chiappero@intel.com>
###########################################... | 31.429104 | 78 | 0.515256 | 846 | 8,423 | 4.917258 | 0.231678 | 0.03125 | 0.023558 | 0.030288 | 0.151202 | 0.111538 | 0.062019 | 0.0375 | 0.018269 | 0.018269 | 0 | 0.00675 | 0.384424 | 8,423 | 267 | 79 | 31.546816 | 0.795564 | 0.041672 | 0 | 0.215962 | 0 | 0 | 0.083833 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.079812 | false | 0.042254 | 0.028169 | 0.023474 | 0.183099 | 0.004695 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a62415e6af752f35b91e91cf93818faa54736ef9 | 5,309 | py | Python | src/dockerblade/daemon.py | ChrisTimperley/dockerblade | 2be99bb9b2919ac87831879e04d6739d6967a8f3 | [
"Apache-2.0"
] | 1 | 2020-06-27T23:21:00.000Z | 2020-06-27T23:21:00.000Z | src/dockerblade/daemon.py | ChrisTimperley/dockerblade | 2be99bb9b2919ac87831879e04d6739d6967a8f3 | [
"Apache-2.0"
] | 66 | 2019-10-12T22:20:49.000Z | 2021-12-08T20:15:28.000Z | src/dockerblade/daemon.py | ChrisTimperley/dockerblade | 2be99bb9b2919ac87831879e04d6739d6967a8f3 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
__all__ = ('DockerDaemon',)
from types import TracebackType
from typing import Any, Mapping, Optional, Type
from loguru import logger
import attr
import docker
from .container import Container
@attr.s(frozen=True)
class DockerDaemon:
"""Maintains a connection to a Docker daemon."""
... | 42.134921 | 78 | 0.569787 | 587 | 5,309 | 5.078365 | 0.258944 | 0.024153 | 0.032204 | 0.026837 | 0.127139 | 0.103656 | 0.096612 | 0.086548 | 0.062395 | 0.062395 | 0 | 0.000289 | 0.348465 | 5,309 | 125 | 79 | 42.472 | 0.861521 | 0.362403 | 0 | 0.058824 | 0 | 0 | 0.105643 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088235 | false | 0 | 0.088235 | 0.014706 | 0.279412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a6241a7c60cc25d87aeba3bf7a47f6e1a3cb5132 | 1,606 | py | Python | AreaFinder.py | karmatek/MinnoProto | cb231b44c055b910ce0e890f48fff0e0c7525c6e | [
"MIT"
] | null | null | null | AreaFinder.py | karmatek/MinnoProto | cb231b44c055b910ce0e890f48fff0e0c7525c6e | [
"MIT"
] | null | null | null | AreaFinder.py | karmatek/MinnoProto | cb231b44c055b910ce0e890f48fff0e0c7525c6e | [
"MIT"
] | null | null | null | """this module finds areas of image, it first finds edges in picture's pixel area.
then it makes contours of those edges, and draws biggest contours"""
import cv2
import numpy as np
from matplotlib import pyplot as plt
def smartSelectFunc(filepath):
#load image to analyze
img = cv2.imread(filepath,0)
#fin... | 37.348837 | 107 | 0.702366 | 218 | 1,606 | 5.151376 | 0.481651 | 0.021371 | 0.072128 | 0.035619 | 0.046305 | 0.046305 | 0 | 0 | 0 | 0 | 0 | 0.027314 | 0.179328 | 1,606 | 43 | 108 | 37.348837 | 0.824734 | 0.439601 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.136364 | 0 | 0.227273 | 0.227273 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a62b1c307fdb97895ca854309c5d81de1710a8df | 1,438 | py | Python | back/babar_twitter/serializers.py | dryvenn/babar3 | 6f193ddbc1170739d8b1bf39033ad64d9bc85747 | [
"MIT"
] | null | null | null | back/babar_twitter/serializers.py | dryvenn/babar3 | 6f193ddbc1170739d8b1bf39033ad64d9bc85747 | [
"MIT"
] | null | null | null | back/babar_twitter/serializers.py | dryvenn/babar3 | 6f193ddbc1170739d8b1bf39033ad64d9bc85747 | [
"MIT"
] | null | null | null | import json
from datetime import timedelta
from django.utils import timezone
from rest_framework import serializers
import tweepy
from .models import *
# Get secrets and create the API instance
secrets = open("./babar_twitter/SECRETS.json", 'r')
keychain = json.load(secrets)
secrets.close()
twitter_auth = tweepy.OAut... | 29.958333 | 95 | 0.656467 | 166 | 1,438 | 5.608434 | 0.572289 | 0.035446 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006434 | 0.243394 | 1,438 | 47 | 96 | 30.595745 | 0.849265 | 0.140473 | 0 | 0 | 0 | 0 | 0.096416 | 0.023891 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.033333 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a62c74b285e912ac651e99cb611624923fcd7697 | 1,105 | py | Python | examples/canopen/canopen_example.py | RobertoRoos/ingenialink-python | c5e82dfbff17898bb316f5dc3f91a7f3c049ba20 | [
"MIT"
] | null | null | null | examples/canopen/canopen_example.py | RobertoRoos/ingenialink-python | c5e82dfbff17898bb316f5dc3f91a7f3c049ba20 | [
"MIT"
] | null | null | null | examples/canopen/canopen_example.py | RobertoRoos/ingenialink-python | c5e82dfbff17898bb316f5dc3f91a7f3c049ba20 | [
"MIT"
] | null | null | null | import sys
from ingenialink.canopen.net import Network, CAN_DEVICE
def run_example():
net = None
try:
net = Network(device=CAN_DEVICE.PCAN)
nodes = net.detect_nodes()
net.scan('canopen_0.2.1.eds', 'registers_dictionary_canopen.xdf')
drives_connected = net.servos
if len(... | 30.694444 | 81 | 0.514932 | 123 | 1,105 | 4.439024 | 0.536585 | 0.082418 | 0.058608 | 0.065934 | 0.087912 | 0.087912 | 0 | 0 | 0 | 0 | 0 | 0.010309 | 0.38552 | 1,105 | 35 | 82 | 31.571429 | 0.793814 | 0 | 0 | 0.272727 | 0 | 0 | 0.159276 | 0.028959 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0.030303 | 0.060606 | 0 | 0.090909 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a62e5d77c05596c38b887d3ac6ee4a9230f19780 | 5,051 | py | Python | rnmu/test/test_acontrario_point.py | marianotepper/nmu_rfit | c726be892b928b884f81452697b9211cf273e03c | [
"BSD-3-Clause"
] | 8 | 2017-06-13T13:07:34.000Z | 2020-02-13T06:30:42.000Z | rnmu/test/test_acontrario_point.py | marianotepper/nmu_rfit | c726be892b928b884f81452697b9211cf273e03c | [
"BSD-3-Clause"
] | null | null | null | rnmu/test/test_acontrario_point.py | marianotepper/nmu_rfit | c726be892b928b884f81452697b9211cf273e03c | [
"BSD-3-Clause"
] | 3 | 2017-06-10T18:30:57.000Z | 2019-03-19T07:28:25.000Z | from __future__ import print_function
import matplotlib.pyplot as plt
import matplotlib.colors as plt_colors
import numpy as np
import scipy.io
import scipy.stats
from rnmu.pme.point import Point
from rnmu.pme.line import Line
import rnmu.pme.stats as stats
def plot_soft_point(ax, point, sigma, box, n_levels=64, colo... | 31.372671 | 82 | 0.567808 | 752 | 5,051 | 3.678191 | 0.230053 | 0.0094 | 0.03073 | 0.040492 | 0.199205 | 0.164497 | 0.095445 | 0.095445 | 0.07086 | 0.07086 | 0 | 0.043893 | 0.273807 | 5,051 | 160 | 83 | 31.56875 | 0.710196 | 0.036824 | 0 | 0.128205 | 0 | 0 | 0.012554 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034188 | false | 0 | 0.076923 | 0 | 0.136752 | 0.034188 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a62ea8307891d611a45992bc024911fc8e8e0da9 | 17,456 | py | Python | oldbabylonian/cookbook/poslib.py | sethbam9/tutorials | c259636682304cb516e9048ca8df5a3ab92c62cc | [
"MIT"
] | 2 | 2019-07-17T18:51:26.000Z | 2019-07-24T19:45:23.000Z | oldbabylonian/cookbook/poslib.py | sethbam9/tutorials | c259636682304cb516e9048ca8df5a3ab92c62cc | [
"MIT"
] | 3 | 2019-01-16T10:56:50.000Z | 2020-11-16T16:30:48.000Z | oldbabylonian/cookbook/poslib.py | sethbam9/tutorials | c259636682304cb516e9048ca8df5a3ab92c62cc | [
"MIT"
] | 2 | 2020-12-17T15:41:33.000Z | 2021-11-03T18:23:07.000Z | import os
import collections
from functools import reduce
import yaml
from tf.lib import writeSets
HERE_BASE = "."
DROPBOX_BASE = "~/Dropbox/obb"
SET_NAME = "sets.tfx"
MODULE = "pos"
TF_LOC = f"{MODULE}/tf"
def getCases(caseStr):
caseLines = caseStr.strip().split("\n")
result = {}
for caseLine in case... | 29.737649 | 103 | 0.507734 | 1,832 | 17,456 | 4.830786 | 0.158843 | 0.010847 | 0.025424 | 0.00791 | 0.256497 | 0.199548 | 0.139887 | 0.12791 | 0.116723 | 0.116723 | 0 | 0.00707 | 0.368011 | 17,456 | 586 | 104 | 29.788396 | 0.795141 | 0.011629 | 0 | 0.318681 | 0 | 0.013187 | 0.149336 | 0.02546 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035165 | false | 0 | 0.010989 | 0.008791 | 0.063736 | 0.035165 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a630e19b17abd22ec5eb9f8bfa6cd41dd44b3348 | 1,613 | py | Python | tcfcli/cmds/native/startapi/cli.py | tencentyun/scfcli | ef15508ad34a851cf0d2750dfaa5202f6a600887 | [
"Apache-2.0"
] | 103 | 2019-06-11T06:09:56.000Z | 2021-12-18T22:48:59.000Z | tcfcli/cmds/native/startapi/cli.py | TencentCloud/Serverless-cli | 57f98b24cfd10712770a4806212cfb69d981a11a | [
"Apache-2.0"
] | 8 | 2019-07-12T12:08:40.000Z | 2020-10-20T07:18:17.000Z | tcfcli/cmds/native/startapi/cli.py | TencentCloud/Serverless-cli | 57f98b24cfd10712770a4806212cfb69d981a11a | [
"Apache-2.0"
] | 49 | 2019-06-11T06:26:05.000Z | 2020-02-19T08:13:36.000Z | # -*- coding: utf-8 -*-
import click
from tcfcli.cmds.native.common.start_api_context import StartApiContext
from tcfcli.help.message import NativeHelp as help
DEF_TMP_FILENAME = "template.yaml"
@click.command(name='start-api', short_help=help.START_API_SHORT_HElP)
@click.option('--env-vars', '-n', help='JSON file ... | 36.659091 | 100 | 0.681959 | 200 | 1,613 | 5.295 | 0.35 | 0.05949 | 0.0661 | 0.067989 | 0.238905 | 0.155807 | 0.1322 | 0.1322 | 0.1322 | 0.1322 | 0 | 0.000776 | 0.201488 | 1,613 | 43 | 101 | 37.511628 | 0.821429 | 0.083075 | 0 | 0 | 0 | 0 | 0.123611 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.107143 | 0 | 0.178571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a6329ec460cd0fd9eb39a536eca18ce065e12138 | 712 | py | Python | core/models/bert/classifier.py | readerbench/PASTEL | bef88d05c37b68f62a76983e4c31d9591b9a679a | [
"Apache-2.0"
] | null | null | null | core/models/bert/classifier.py | readerbench/PASTEL | bef88d05c37b68f62a76983e4c31d9591b9a679a | [
"Apache-2.0"
] | null | null | null | core/models/bert/classifier.py | readerbench/PASTEL | bef88d05c37b68f62a76983e4c31d9591b9a679a | [
"Apache-2.0"
] | null | null | null | from torch.nn.functional import relu, softmax, sigmoid
from transformers import BertModel
import torch.nn as nn
class BERTClassifier(nn.Module):
def __init__(self, n_classes, pretrained_bert_model):
super(BERTClassifier, self).__init__()
self.bert = BertModel.from_pretrained(pretrained_bert_model)
self.... | 37.473684 | 84 | 0.75 | 101 | 712 | 5.019802 | 0.415842 | 0.078895 | 0.08284 | 0.118343 | 0.18146 | 0.18146 | 0.126233 | 0 | 0 | 0 | 0 | 0.003295 | 0.147472 | 712 | 19 | 85 | 37.473684 | 0.83196 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.176471 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a6333b4280980727cc41b230009b8b7911647e4a | 3,095 | py | Python | django/apps/audit/operations.py | wykys/project-thesaurus | f700396b30ed44e6b001c15397a25450ac068af4 | [
"MIT"
] | null | null | null | django/apps/audit/operations.py | wykys/project-thesaurus | f700396b30ed44e6b001c15397a25450ac068af4 | [
"MIT"
] | 93 | 2020-05-19T18:14:12.000Z | 2022-03-29T00:26:39.000Z | django/apps/audit/operations.py | wykys/project-thesaurus | f700396b30ed44e6b001c15397a25450ac068af4 | [
"MIT"
] | 1 | 2020-11-21T20:24:35.000Z | 2020-11-21T20:24:35.000Z | from typing import Type
from django.db.migrations.operations.base import Operation
from django.db.models import Model
class AddAuditOperation(Operation):
reduces_to_sql = True
reversible = True
enabled = True
def __init__(self, model_name, audit_rows=True, audit_text=False, excluded=('created', 'mod... | 34.388889 | 104 | 0.57189 | 321 | 3,095 | 5.23053 | 0.29595 | 0.071471 | 0.046456 | 0.071471 | 0.392496 | 0.392496 | 0.392496 | 0.392496 | 0.346039 | 0.30137 | 0 | 0.000972 | 0.33538 | 3,095 | 89 | 105 | 34.775281 | 0.815265 | 0.036511 | 0 | 0.315068 | 0 | 0 | 0.093047 | 0.007054 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109589 | false | 0.013699 | 0.041096 | 0.027397 | 0.260274 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a635f25e0d832aa8c213627d281f0fbe8a76415f | 9,791 | py | Python | train_due.py | BlackHC/DUE | e6370a89f9aab8bfbbafe0d9a544dd637867751d | [
"MIT"
] | 49 | 2021-02-23T14:34:04.000Z | 2022-03-24T22:50:02.000Z | train_due.py | BlackHC/DUE | e6370a89f9aab8bfbbafe0d9a544dd637867751d | [
"MIT"
] | 2 | 2021-12-06T22:25:41.000Z | 2022-02-02T12:38:08.000Z | train_due.py | BlackHC/DUE | e6370a89f9aab8bfbbafe0d9a544dd637867751d | [
"MIT"
] | 13 | 2021-03-05T01:35:12.000Z | 2022-02-22T11:24:14.000Z | import argparse
import json
import torch
import torch.nn.functional as F
from torch.utils.tensorboard.writer import SummaryWriter
from ignite.engine import Events, Engine
from ignite.metrics import Accuracy, Average, Loss
from ignite.contrib.handlers import ProgressBar
from gpytorch.mlls import VariationalELBO
from ... | 28.297688 | 88 | 0.629456 | 1,161 | 9,791 | 5.106804 | 0.234281 | 0.022769 | 0.043009 | 0.012818 | 0.165964 | 0.090066 | 0.069152 | 0.05802 | 0.045539 | 0.03913 | 0 | 0.009845 | 0.263405 | 9,791 | 345 | 89 | 28.37971 | 0.812257 | 0.019406 | 0 | 0.162791 | 0 | 0 | 0.13111 | 0.007504 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0 | 0.062016 | 0 | 0.096899 | 0.01938 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a6377793c412ebc024d19ecb586fc91e462e185d | 2,032 | py | Python | dataset/cifar10_c.py | xuanqing94/NeuralSDE | f3511799cfc9c3d6b95ff9bcb07563df88715e0c | [
"MIT"
] | 5 | 2020-06-28T07:15:35.000Z | 2022-01-20T01:52:31.000Z | dataset/cifar10_c.py | xuanqing94/NeuralSDE | f3511799cfc9c3d6b95ff9bcb07563df88715e0c | [
"MIT"
] | null | null | null | dataset/cifar10_c.py | xuanqing94/NeuralSDE | f3511799cfc9c3d6b95ff9bcb07563df88715e0c | [
"MIT"
] | null | null | null | from PIL import Image
import os
import numpy as np
import torch
import torch.utils.data as data
class CIFAR10_C(object):
def __init__(self, path, levels=[1,2,3,4,5]):
path = os.path.expanduser(path)
self.path = path
self.levels = levels
files = os.listdir(path)
datasets = [... | 30.328358 | 88 | 0.596457 | 260 | 2,032 | 4.5 | 0.284615 | 0.089744 | 0.030769 | 0.020513 | 0.213675 | 0.092308 | 0.05812 | 0 | 0 | 0 | 0 | 0.029861 | 0.291339 | 2,032 | 66 | 89 | 30.787879 | 0.782639 | 0 | 0 | 0.075472 | 0 | 0 | 0.022146 | 0 | 0 | 0 | 0 | 0 | 0.018868 | 1 | 0.113208 | false | 0 | 0.09434 | 0.056604 | 0.320755 | 0.018868 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a637a96d54f58cda8435da2b415a24a67ca1842e | 3,544 | py | Python | models/word2vec/cbow_model.py | ktodorov/eval-historical-texts | e2994d594525d1d92056a6398935376a96659abb | [
"MIT"
] | 9 | 2020-08-27T15:03:46.000Z | 2022-01-02T10:48:35.000Z | models/word2vec/cbow_model.py | ktodorov/eval-historical-texts | e2994d594525d1d92056a6398935376a96659abb | [
"MIT"
] | 16 | 2020-09-12T17:37:59.000Z | 2020-11-18T10:36:32.000Z | models/word2vec/cbow_model.py | ktodorov/eval-historical-texts | e2994d594525d1d92056a6398935376a96659abb | [
"MIT"
] | 1 | 2022-03-08T16:16:52.000Z | 2022-03-08T16:16:52.000Z | import os
from typing import Callable
import torch
from torch import nn
from torch.nn.utils.rnn import pad_packed_sequence, pack_padded_sequence
from overrides import overrides
from entities.metric import Metric
from entities.batch_representation import BatchRepresentation
from entities.options.embedding_layer_optio... | 38.945055 | 126 | 0.752822 | 381 | 3,544 | 6.619423 | 0.288714 | 0.057098 | 0.04996 | 0.039651 | 0.054718 | 0.036479 | 0.036479 | 0 | 0 | 0 | 0 | 0.004222 | 0.198081 | 3,544 | 91 | 127 | 38.945055 | 0.883181 | 0 | 0 | 0.028986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.26087 | 0 | 0.376812 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a637ff1c369797ef1abc4107c3a9bce38ee9b23d | 990 | py | Python | mri_works/NodeEditor/modules/File_IO/Deleting_files_folders.py | montigno/mri_works | 8ec6ff1500aa34d3540e44e4b0148023cf821f61 | [
"CECILL-B"
] | 2 | 2020-08-20T21:00:53.000Z | 2021-08-16T15:28:51.000Z | mri_works/NodeEditor/modules/File_IO/Deleting_files_folders.py | montigno/mri_works | 8ec6ff1500aa34d3540e44e4b0148023cf821f61 | [
"CECILL-B"
] | 3 | 2020-09-24T06:50:43.000Z | 2020-12-15T11:02:04.000Z | mri_works/NodeEditor/modules/File_IO/Deleting_files_folders.py | montigno/mri_works | 8ec6ff1500aa34d3540e44e4b0148023cf821f61 | [
"CECILL-B"
] | 1 | 2020-08-20T21:00:59.000Z | 2020-08-20T21:00:59.000Z | class deleting_folder:
def __init__(self, input_folder='path', ignore_errors=False):
import shutil
shutil.rmtree(input_folder, ignore_errors=ignore_errors)
##############################################################################
class deleting_file:
def __init__(self, input_file='path... | 26.756757 | 78 | 0.435354 | 94 | 990 | 4.308511 | 0.37234 | 0.096296 | 0.081481 | 0.118519 | 0.138272 | 0.138272 | 0.138272 | 0.138272 | 0 | 0 | 0 | 0 | 0.244444 | 990 | 36 | 79 | 27.5 | 0.541444 | 0 | 0 | 0.285714 | 0 | 0 | 0.062169 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.190476 | 0 | 0.47619 | 0.095238 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a63828f981b1214d9b5676be8d17b2e2e623a148 | 834 | py | Python | scripts/opts.py | RipZ/beerbox | b396c5f14ed088ac82c2ebcea9746456748d763d | [
"Apache-2.0"
] | null | null | null | scripts/opts.py | RipZ/beerbox | b396c5f14ed088ac82c2ebcea9746456748d763d | [
"Apache-2.0"
] | null | null | null | scripts/opts.py | RipZ/beerbox | b396c5f14ed088ac82c2ebcea9746456748d763d | [
"Apache-2.0"
] | null | null | null | import argparse
parser = argparse.ArgumentParser(description='oled arguments')
parser.add_argument(
'--port', '-p',
type=int,
default=0,
help='i2c bus number',
)
parser.add_argument(
'--parameter', '-t',
type=str,
default='',
help='parameter to display',
)
parser.add_argument(
'--va... | 20.341463 | 62 | 0.642686 | 104 | 834 | 5.096154 | 0.375 | 0.084906 | 0.160377 | 0.067925 | 0.132075 | 0.132075 | 0 | 0 | 0 | 0 | 0 | 0.026588 | 0.188249 | 834 | 40 | 63 | 20.85 | 0.756278 | 0 | 0 | 0.297297 | 0 | 0 | 0.236211 | 0 | 0 | 0 | 0.004796 | 0 | 0 | 1 | 0 | false | 0 | 0.054054 | 0 | 0.054054 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a639c17d6fd2fadfce0ccee6caacea6630ec1b9f | 1,931 | py | Python | deploy/app/pipeline.py | PBenavides/credit-fraud-API | 154b7ab2247f89649f8244b35d115cf352be23a5 | [
"MIT"
] | null | null | null | deploy/app/pipeline.py | PBenavides/credit-fraud-API | 154b7ab2247f89649f8244b35d115cf352be23a5 | [
"MIT"
] | null | null | null | deploy/app/pipeline.py | PBenavides/credit-fraud-API | 154b7ab2247f89649f8244b35d115cf352be23a5 | [
"MIT"
] | null | null | null | import pandas as pd
import datetime
import numpy as np
import json
from app import artifacts_dict as artifacts
from app.utils import get_time_now, get_time_sin_cos
class InferencePipeline():
"""Pipeline to receive data_dict and transform for inference.
---------
Parameters:
data_dict: from the reque... | 25.407895 | 102 | 0.616261 | 235 | 1,931 | 4.851064 | 0.323404 | 0.035088 | 0.017544 | 0.022807 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003595 | 0.279648 | 1,931 | 76 | 103 | 25.407895 | 0.81596 | 0.254272 | 0 | 0 | 0 | 0 | 0.019259 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.151515 | false | 0 | 0.181818 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a639e39129cf3e132136165ec24e35e67033099f | 1,054 | py | Python | setup.py | bfontaine/wpydumps | f01ff6fc7dfae75a5b1526d26e33d92410898971 | [
"MIT"
] | 1 | 2021-01-06T17:49:01.000Z | 2021-01-06T17:49:01.000Z | setup.py | bfontaine/wpydumps | f01ff6fc7dfae75a5b1526d26e33d92410898971 | [
"MIT"
] | null | null | null | setup.py | bfontaine/wpydumps | f01ff6fc7dfae75a5b1526d26e33d92410898971 | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
from setuptools import setup
# http://stackoverflow.com/a/7071358/735926
import re
VERSIONFILE = 'wpydumps/__init__.py'
verstrline = open(VERSIONFILE, 'rt').read()
VSRE = r'^__version__\s+=\s+[\'"]([^\'"]+)[\'"]'
mo = re.search(VSRE, verstrline, re.M)
if mo:
verstr = mo.group(1)
else:
... | 28.486486 | 76 | 0.634725 | 121 | 1,054 | 5.413223 | 0.652893 | 0.087023 | 0.114504 | 0.119084 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025731 | 0.188805 | 1,054 | 36 | 77 | 29.277778 | 0.740351 | 0.059772 | 0 | 0.064516 | 0 | 0 | 0.398785 | 0.021255 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.064516 | 0 | 0.064516 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a63bcfa9188011d5f54844e668d23332501081e1 | 36,617 | py | Python | xData/multiD_XYs.py | brown170/fudge | 4f818b0e0b0de52bc127dd77285b20ce3568c97a | [
"BSD-3-Clause"
] | 14 | 2019-08-29T23:46:24.000Z | 2022-03-21T10:16:25.000Z | xData/multiD_XYs.py | brown170/fudge | 4f818b0e0b0de52bc127dd77285b20ce3568c97a | [
"BSD-3-Clause"
] | 1 | 2020-08-04T16:14:45.000Z | 2021-12-01T01:54:34.000Z | xData/multiD_XYs.py | brown170/fudge | 4f818b0e0b0de52bc127dd77285b20ce3568c97a | [
"BSD-3-Clause"
] | 2 | 2022-03-03T22:41:41.000Z | 2022-03-03T22:54:43.000Z | # <<BEGIN-copyright>>
# Copyright 2021, Lawrence Livermore National Security, LLC.
# See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: BSD-3-Clause
# <<END-copyright>>
"""
This module contains the XYsnd classes for n > 1.
"""
__metaclass__ = type
"""
Missing methods
copyDataToGridWsAn... | 49.482432 | 198 | 0.598984 | 3,247 | 36,617 | 6.68956 | 0.144133 | 0.020027 | 0.017126 | 0.015331 | 0.259104 | 0.213112 | 0.179412 | 0.133281 | 0.125363 | 0.121311 | 0 | 0.016971 | 0.293579 | 36,617 | 739 | 199 | 49.549391 | 0.822747 | 0.122757 | 0 | 0.182731 | 0 | 0.002008 | 0.054762 | 0.008356 | 0 | 0 | 0 | 0.002706 | 0 | 1 | 0.080321 | false | 0 | 0.022088 | 0.026104 | 0.126506 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a6430c564af2fe8b504ab18c9fbc24d3c163cb63 | 41,339 | py | Python | src/api/datahub/access/deploy_plan_views.py | Chromico/bk-base | be822d9bbee544a958bed4831348185a75604791 | [
"MIT"
] | 84 | 2021-06-30T06:20:23.000Z | 2022-03-22T03:05:49.000Z | src/api/datahub/access/deploy_plan_views.py | Chromico/bk-base | be822d9bbee544a958bed4831348185a75604791 | [
"MIT"
] | 7 | 2021-06-30T06:21:16.000Z | 2022-03-29T07:36:13.000Z | src/api/datahub/access/deploy_plan_views.py | Chromico/bk-base | be822d9bbee544a958bed4831348185a75604791 | [
"MIT"
] | 40 | 2021-06-30T06:21:26.000Z | 2022-03-29T12:42:26.000Z | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available.
Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
BK-BASE 蓝鲸基础平台 is licensed under the MIT License.
License for BK-BASE 蓝鲸基础平台:
------------------------------------------... | 38.419145 | 120 | 0.497037 | 3,813 | 41,339 | 5.158668 | 0.137162 | 0.048754 | 0.02608 | 0.013726 | 0.700305 | 0.668378 | 0.647789 | 0.626894 | 0.604321 | 0.591917 | 0 | 0.02363 | 0.389874 | 41,339 | 1,075 | 121 | 38.454884 | 0.756245 | 0.3189 | 0 | 0.195804 | 0 | 0 | 0.085745 | 0.006596 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048951 | false | 0 | 0.104895 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a649eb74dba0e4238520088fa3858aec2514206f | 2,264 | py | Python | j.py | thatch/cloudmesh-iu | 903b897e8234904ea4637f6783e6c53fb9a3c7a8 | [
"Apache-2.0"
] | null | null | null | j.py | thatch/cloudmesh-iu | 903b897e8234904ea4637f6783e6c53fb9a3c7a8 | [
"Apache-2.0"
] | null | null | null | j.py | thatch/cloudmesh-iu | 903b897e8234904ea4637f6783e6c53fb9a3c7a8 | [
"Apache-2.0"
] | null | null | null | from cloudmesh.common.Shell import Shell
import subprocess
import asyncio
import sys
from subprocess import PIPE, Popen
import threading
from queue import Queue, Empty
import time
import os
import shlex
host = "r-003"
port = 9010
command = f'ssh juliet "ssh {host} ./ENV3/bin/jupyter-lab --ip localhost --port {port}"'
... | 29.789474 | 104 | 0.618816 | 282 | 2,264 | 4.957447 | 0.312057 | 0.060086 | 0.042918 | 0.040057 | 0.293276 | 0.293276 | 0.186695 | 0.142346 | 0.142346 | 0.142346 | 0 | 0.015187 | 0.243816 | 2,264 | 76 | 105 | 29.789474 | 0.801402 | 0.09364 | 0 | 0 | 0 | 0.025641 | 0.127088 | 0.015977 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0 | 0.25641 | 0 | 0.282051 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a64bbe192a36abeb0640fa965fed32d5ef6bad50 | 297 | py | Python | lib/data_coll/source_file.py | KentWangYQ/server-migration | 82b0eaac42db3eb697fd53b79d64bd0d39024842 | [
"MIT"
] | null | null | null | lib/data_coll/source_file.py | KentWangYQ/server-migration | 82b0eaac42db3eb697fd53b79d64bd0d39024842 | [
"MIT"
] | null | null | null | lib/data_coll/source_file.py | KentWangYQ/server-migration | 82b0eaac42db3eb697fd53b79d64bd0d39024842 | [
"MIT"
] | null | null | null | import os
import config
def walk():
"""
遍历源文件目录
:return: Generator
"""
for root in config.Source.include:
for path, _, files in os.walk(root):
if path not in config.Source.exclude:
for file in files:
yield (path, file)
| 19.8 | 49 | 0.535354 | 36 | 297 | 4.388889 | 0.555556 | 0.101266 | 0.177215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.373737 | 297 | 14 | 50 | 21.214286 | 0.849462 | 0.087542 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a6544ccff7f22122adea74703d79ead395520358 | 5,371 | py | Python | qa/L0_custom_legacy/custom_legacy_test.py | wiggin66/server | d32e253244be8539a087ba59fee5ab63f9f6a040 | [
"BSD-3-Clause"
] | 4 | 2021-06-02T02:37:53.000Z | 2022-01-20T19:32:57.000Z | qa/L0_custom_legacy/custom_legacy_test.py | wiggin66/server | d32e253244be8539a087ba59fee5ab63f9f6a040 | [
"BSD-3-Clause"
] | null | null | null | qa/L0_custom_legacy/custom_legacy_test.py | wiggin66/server | d32e253244be8539a087ba59fee5ab63f9f6a040 | [
"BSD-3-Clause"
] | 1 | 2021-12-17T03:07:54.000Z | 2021-12-17T03:07:54.000Z | #!/bin/bash
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of ... | 40.383459 | 83 | 0.633402 | 595 | 5,371 | 5.541176 | 0.364706 | 0.030027 | 0.024264 | 0.022748 | 0.313922 | 0.266606 | 0.266606 | 0.266606 | 0.266606 | 0.266606 | 0 | 0.011594 | 0.293428 | 5,371 | 132 | 84 | 40.689394 | 0.857181 | 0.329361 | 0 | 0.315789 | 0 | 0 | 0.042881 | 0.005886 | 0 | 0 | 0 | 0 | 0.039474 | 1 | 0.078947 | false | 0 | 0.118421 | 0 | 0.223684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a6551b4d98c72a4734c14321b779357ef66e0ea1 | 811 | py | Python | testsuite/sesstion_test.py | olegvg/telebot | e37bce862518a1addaf1db4624a62eaf9dfc4afa | [
"MIT"
] | null | null | null | testsuite/sesstion_test.py | olegvg/telebot | e37bce862518a1addaf1db4624a62eaf9dfc4afa | [
"MIT"
] | null | null | null | testsuite/sesstion_test.py | olegvg/telebot | e37bce862518a1addaf1db4624a62eaf9dfc4afa | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import unittest
from telebot.storage import EphemeralStorage
class TestEphemeralSession(unittest.TestCase):
def setUp(self):
from telebot.logger import init_root_logger
init_root_logger()
def test_session_storage_singleton(self):
session1 = EphemeralStorage()... | 23.852941 | 51 | 0.664612 | 102 | 811 | 5.029412 | 0.352941 | 0.048733 | 0.077973 | 0.070175 | 0.253411 | 0.175439 | 0 | 0 | 0 | 0 | 0 | 0.03231 | 0.236745 | 811 | 33 | 52 | 24.575758 | 0.796446 | 0.025894 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a65643a5cfe26a75ee90de2f3f498ab27ada61a1 | 1,856 | py | Python | logger.py | SoPudge/lib.py | 7e8e6cb76a1838c2af969bd1f3b7cf5ce6cb0441 | [
"MIT"
] | null | null | null | logger.py | SoPudge/lib.py | 7e8e6cb76a1838c2af969bd1f3b7cf5ce6cb0441 | [
"MIT"
] | null | null | null | logger.py | SoPudge/lib.py | 7e8e6cb76a1838c2af969bd1f3b7cf5ce6cb0441 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import logging
class Logger(object):
def __init__(self,logger,**kw):
'''
creat a logger class,port from default loggin module
Description:
对于不传入**kw参数的调用,为旧式调用,用于一些旧式程序
对于传输**kw的掉用,则支持如下功能
... | 26.898551 | 93 | 0.579741 | 225 | 1,856 | 4.68 | 0.377778 | 0.104463 | 0.041785 | 0.064577 | 0.049383 | 0.049383 | 0.049383 | 0 | 0 | 0 | 0 | 0.006116 | 0.295259 | 1,856 | 68 | 94 | 27.294118 | 0.79893 | 0.231681 | 0 | 0 | 0 | 0 | 0.077663 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |