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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
660bd601b31c2cdb55bcbc98f8dc987a833cfa02 | 2,743 | py | Python | af_scripts/tmp/blendShapeEditor.py | aaronfang/small-Scripts | 890b10ab19fa9cdf2415aaf2dc08b81cc64fc79d | [
"MIT"
] | 1 | 2018-03-08T16:34:00.000Z | 2018-03-08T16:34:00.000Z | af_scripts/tmp/blendShapeEditor.py | aaronfang/personal_scripts | 890b10ab19fa9cdf2415aaf2dc08b81cc64fc79d | [
"MIT"
] | null | null | null | af_scripts/tmp/blendShapeEditor.py | aaronfang/personal_scripts | 890b10ab19fa9cdf2415aaf2dc08b81cc64fc79d | [
"MIT"
] | null | null | null | import maya.cmds as cmds
class blendShapeEditor(object):
def __init__(self):
self.blendshape_node = blendshape_node = []
self.target_nodes = target_nodes = []
def prepareOrginialGeo(self,*args):
sel = cmds.ls(sl=True)[0]
if '_org' in sel:
blendshape_base_geo = cmds... | 49.872727 | 133 | 0.629603 | 350 | 2,743 | 4.797143 | 0.308571 | 0.066706 | 0.044669 | 0.066706 | 0.272186 | 0.226921 | 0.189994 | 0.107207 | 0.107207 | 0.06075 | 0 | 0.022107 | 0.224936 | 2,743 | 54 | 134 | 50.796296 | 0.767639 | 0.037915 | 0 | 0.086957 | 0 | 0 | 0.120546 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108696 | false | 0 | 0.021739 | 0 | 0.152174 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
660dfb4d814fae5a38c519d53465f866ae0f301e | 5,511 | py | Python | model.py | braemt/attentive-multi-task-deep-reinforcement-learning | 921feefce98076f88c892f0b7e6db8572f596763 | [
"MIT"
] | 12 | 2019-04-07T02:04:48.000Z | 2022-03-22T12:57:47.000Z | model.py | braemt/attentive-multi-task-deep-reinforcement-learning | 921feefce98076f88c892f0b7e6db8572f596763 | [
"MIT"
] | null | null | null | model.py | braemt/attentive-multi-task-deep-reinforcement-learning | 921feefce98076f88c892f0b7e6db8572f596763 | [
"MIT"
] | 7 | 2019-04-07T02:04:49.000Z | 2020-12-28T10:30:27.000Z | import numpy as np
import tensorflow as tf
def normalized_columns_initializer(std=1.0):
def _initializer(shape, dtype=None, partition_info=None):
out = np.random.randn(*shape).astype(np.float32)
out *= std / np.sqrt(np.square(out).sum(axis=0, keepdims=True))
return tf.constant(out)
ret... | 46.310924 | 119 | 0.577209 | 744 | 5,511 | 4.119624 | 0.227151 | 0.022839 | 0.063948 | 0.014682 | 0.225449 | 0.189886 | 0.102121 | 0.094617 | 0.064927 | 0.032626 | 0 | 0.02566 | 0.278715 | 5,511 | 119 | 120 | 46.310924 | 0.745409 | 0.047178 | 0 | 0.056818 | 0 | 0 | 0.014681 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.022727 | 0.022727 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
660ea1a100d2f6604cf5b576d0992caedb50b349 | 632 | py | Python | src/data/852.py | NULLCT/LOMC | 79a16474a8f21310e0fb47e536d527dd5dc6d655 | [
"MIT"
] | null | null | null | src/data/852.py | NULLCT/LOMC | 79a16474a8f21310e0fb47e536d527dd5dc6d655 | [
"MIT"
] | null | null | null | src/data/852.py | NULLCT/LOMC | 79a16474a8f21310e0fb47e536d527dd5dc6d655 | [
"MIT"
] | null | null | null | from collections import deque
n, q = map(int, input().split())
graph = [[] for _ in range(n + 1)]
for i in range(n - 1):
a, b = map(int, input().split())
graph[a].append(b)
graph[b].append(a)
CD = []
for i in range(q):
e, f = map(int, input().split())
CD.append([e, f])
dist = [-1] * (n + 1)
dis... | 16.631579 | 36 | 0.47943 | 109 | 632 | 2.770642 | 0.33945 | 0.05298 | 0.109272 | 0.15894 | 0.139073 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030162 | 0.318038 | 632 | 37 | 37 | 17.081081 | 0.670534 | 0 | 0 | 0 | 0 | 0 | 0.012658 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.034483 | 0 | 0.034483 | 0.068966 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6613dec8d628000fe7b472846f82eac73bd8f3ea | 49,047 | py | Python | autojail/config/memory.py | ekut-es/autojail | bc16e40e6df55c0a28a3059715851ffa59b14ba8 | [
"MIT"
] | 6 | 2020-08-12T08:16:15.000Z | 2022-03-05T02:25:53.000Z | autojail/config/memory.py | ekut-es/autojail | bc16e40e6df55c0a28a3059715851ffa59b14ba8 | [
"MIT"
] | 1 | 2021-03-30T10:34:51.000Z | 2021-06-09T11:24:00.000Z | autojail/config/memory.py | ekut-es/autojail | bc16e40e6df55c0a28a3059715851ffa59b14ba8 | [
"MIT"
] | 1 | 2021-11-21T09:30:58.000Z | 2021-11-21T09:30:58.000Z | import copy
import logging
import math
import sys
from collections import defaultdict
from functools import reduce
from typing import (
Any,
Callable,
Dict,
Iterable,
List,
Optional,
Sequence,
Tuple,
Union,
)
import tabulate
from ortools.sat.python import cp_model
from ..model impo... | 35.438584 | 140 | 0.538728 | 5,019 | 49,047 | 5.033672 | 0.084877 | 0.04453 | 0.041719 | 0.013379 | 0.419728 | 0.336843 | 0.262548 | 0.222016 | 0.167234 | 0.143366 | 0 | 0.007732 | 0.390911 | 49,047 | 1,383 | 141 | 35.464208 | 0.837953 | 0.04302 | 0 | 0.275212 | 0 | 0.001885 | 0.035627 | 0.005233 | 0 | 0 | 0.001687 | 0.001446 | 0.065975 | 1 | 0.040528 | false | 0.006598 | 0.013195 | 0.001885 | 0.075401 | 0.00754 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
661499e1d6e03e831ef662b0f10bed15a0e0160c | 806 | py | Python | tests/test_util.py | tsufeki/python-restclientaio | 2af2ded9e22ba5552ace193691ed3a4b520cadf8 | [
"BSD-2-Clause"
] | null | null | null | tests/test_util.py | tsufeki/python-restclientaio | 2af2ded9e22ba5552ace193691ed3a4b520cadf8 | [
"BSD-2-Clause"
] | null | null | null | tests/test_util.py | tsufeki/python-restclientaio | 2af2ded9e22ba5552ace193691ed3a4b520cadf8 | [
"BSD-2-Clause"
] | null | null | null |
import pytest
from restclientaio._util import *
class TestFullName:
@pytest.mark.parametrize('args,expected', [
((str,), 'builtins.str'),
((str, 'lower'), 'builtins.str.lower'),
])
def test_full_name(self, args, expected):
assert full_name(*args) == expected
class TestFormatRe... | 25.1875 | 74 | 0.555831 | 88 | 806 | 4.954545 | 0.454545 | 0.082569 | 0.123853 | 0.114679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017974 | 0.240695 | 806 | 31 | 75 | 26 | 0.694444 | 0 | 0 | 0.090909 | 0 | 0 | 0.146584 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.136364 | false | 0 | 0.090909 | 0 | 0.318182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6615213f91d714c671d2fcc45dfcb7ea7995394c | 1,112 | py | Python | experiments/test_experiments.py | srikarym/torchrl | fee98e78ac1657a2c9a4063dd8d63ba207a121e2 | [
"Apache-2.0"
] | 3 | 2019-02-27T19:00:32.000Z | 2020-07-19T03:18:28.000Z | experiments/test_experiments.py | srikarym/torchrl | fee98e78ac1657a2c9a4063dd8d63ba207a121e2 | [
"Apache-2.0"
] | null | null | null | experiments/test_experiments.py | srikarym/torchrl | fee98e78ac1657a2c9a4063dd8d63ba207a121e2 | [
"Apache-2.0"
] | null | null | null | # pylint: disable=redefined-outer-name
"""Test Experiments.
This test runs all problems and hyperparameter
pairs for 100 time steps. It only guarantees
correct API compatiblity and not the problem
performance metrics.
"""
import pytest
from torchrl import registry
from torchrl.cli.commands.run import do_run
proble... | 24.711111 | 72 | 0.714029 | 146 | 1,112 | 5.164384 | 0.486301 | 0.087533 | 0.058355 | 0.071618 | 0.05305 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012128 | 0.184353 | 1,112 | 44 | 73 | 25.272727 | 0.819184 | 0.192446 | 0 | 0 | 0 | 0 | 0.135802 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.111111 | 0 | 0.185185 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
661ea642755905b0144b877774494043f351d6cb | 1,316 | py | Python | magicauth/otp_forms.py | glibersat/django-magicauth | 545cb0df2b2368b27089e253fafa666ca8a870f1 | [
"MIT"
] | null | null | null | magicauth/otp_forms.py | glibersat/django-magicauth | 545cb0df2b2368b27089e253fafa666ca8a870f1 | [
"MIT"
] | null | null | null | magicauth/otp_forms.py | glibersat/django-magicauth | 545cb0df2b2368b27089e253fafa666ca8a870f1 | [
"MIT"
] | null | null | null | from django import forms
from django.core.validators import RegexValidator
from django.core.exceptions import ValidationError
from django_otp import user_has_device, devices_for_user
from magicauth import settings as magicauth_settings
class OTPForm(forms.Form):
OTP_NUM_DIGITS = magicauth_settings.OTP_NUM_DIGIT... | 37.6 | 173 | 0.705167 | 179 | 1,316 | 4.949721 | 0.47486 | 0.054176 | 0.06772 | 0.040632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000962 | 0.209726 | 1,316 | 34 | 174 | 38.705882 | 0.850962 | 0 | 0 | 0 | 0 | 0.038462 | 0.212766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.192308 | 0 | 0.423077 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
662336d44c462304b2b5f94e8721da8b5b0d3e73 | 7,450 | py | Python | supercache/engine/memory.py | Peter92/supercache | e85ae87e4c2fead6e2a6aa55c0983d249512f34d | [
"MIT"
] | 2 | 2020-03-02T01:22:25.000Z | 2020-05-18T16:52:11.000Z | supercache/engine/memory.py | huntfx/supercache | e85ae87e4c2fead6e2a6aa55c0983d249512f34d | [
"MIT"
] | null | null | null | supercache/engine/memory.py | huntfx/supercache | e85ae87e4c2fead6e2a6aa55c0983d249512f34d | [
"MIT"
] | null | null | null | import time
from collections import defaultdict
from .. import exceptions, utils
class Memory(object):
"""Cache directly in memory.
This is by far the fastest solution, but the cache cannot be shared
outside the current process.
This is not completely thread safe, but care has been taken to
avoid... | 32.251082 | 87 | 0.52094 | 902 | 7,450 | 4.242794 | 0.201774 | 0.087797 | 0.028743 | 0.021949 | 0.263392 | 0.159916 | 0.111314 | 0.082571 | 0.067416 | 0.067416 | 0 | 0.003882 | 0.377584 | 7,450 | 230 | 88 | 32.391304 | 0.821436 | 0.195839 | 0 | 0.357616 | 0 | 0 | 0.035265 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072848 | false | 0.019868 | 0.019868 | 0 | 0.264901 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6623eb16f8643fe3f8e712cd421dfd5fbd6d80c3 | 2,541 | py | Python | problem_1_falling/test_agent.py | victor-armegioiu/ai-mas-challenges | c449f4bb3fd7e7a5c1c9b00d22209532c92f39aa | [
"MIT"
] | null | null | null | problem_1_falling/test_agent.py | victor-armegioiu/ai-mas-challenges | c449f4bb3fd7e7a5c1c9b00d22209532c92f39aa | [
"MIT"
] | null | null | null | problem_1_falling/test_agent.py | victor-armegioiu/ai-mas-challenges | c449f4bb3fd7e7a5c1c9b00d22209532c92f39aa | [
"MIT"
] | null | null | null | from utils import read_cfg
from falling_objects_env import FallingObjects, PLAYER_KEYS, ACTIONS
from argparse import ArgumentParser
from demo_agent import DemoAgent
from dqn_agent import DDQNAgent
import importlib
import numpy as np
import cv2 as cv2
BATCH_SIZE = 32
if __name__ == "__main__":
arg_parser = Argumen... | 33.88 | 131 | 0.67375 | 384 | 2,541 | 4.257813 | 0.385417 | 0.033028 | 0.031804 | 0.024465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018173 | 0.220386 | 2,541 | 74 | 132 | 34.337838 | 0.807168 | 0.243998 | 0 | 0.043478 | 0 | 0 | 0.13023 | 0.013598 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.195652 | 0 | 0.195652 | 0.065217 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6629f9d2ad476bdf575b8d97233a3d2d8781d35e | 2,874 | py | Python | src/unpurple.py | rnbdev/purple-fringe | b372c13f0e4d7d7ba9da53d7e6a4326c0e6c453a | [
"BSD-3-Clause"
] | 2 | 2021-03-16T03:29:41.000Z | 2021-05-21T03:32:57.000Z | src/unpurple.py | rnbdev/purple-fringe | b372c13f0e4d7d7ba9da53d7e6a4326c0e6c453a | [
"BSD-3-Clause"
] | null | null | null | src/unpurple.py | rnbdev/purple-fringe | b372c13f0e4d7d7ba9da53d7e6a4326c0e6c453a | [
"BSD-3-Clause"
] | null | null | null | import cv2
import numpy as np
import argparse
def unpurple(params):
img = cv2.imread(params.input).astype(np.float64)
img_b = img[..., 0]
img_b = np.maximum(0, img_b - params.m * 255)
img_b *= params.i / (1 - params.m)
width = (params.r << 1) + 1
bl = cv2.blur(img_b, (width, width))
i... | 29.9375 | 76 | 0.4746 | 336 | 2,874 | 3.919643 | 0.261905 | 0.037965 | 0.098709 | 0.050114 | 0.258162 | 0.242976 | 0.198937 | 0.116932 | 0.059226 | 0 | 0 | 0.026903 | 0.392136 | 2,874 | 95 | 77 | 30.252632 | 0.726961 | 0 | 0 | 0.164557 | 0 | 0 | 0.138483 | 0 | 0 | 0 | 0 | 0 | 0.012658 | 1 | 0.012658 | false | 0 | 0.037975 | 0 | 0.050633 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
662b8a1aba28c4cad375998a888ed93da1fcc650 | 1,588 | py | Python | scripts/run_episodes.py | takuma-ynd/rrc_example_package | f53cf3191f4c38f4d1f394ccd55b1d935a6a70ba | [
"BSD-3-Clause"
] | null | null | null | scripts/run_episodes.py | takuma-ynd/rrc_example_package | f53cf3191f4c38f4d1f394ccd55b1d935a6a70ba | [
"BSD-3-Clause"
] | null | null | null | scripts/run_episodes.py | takuma-ynd/rrc_example_package | f53cf3191f4c38f4d1f394ccd55b1d935a6a70ba | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
import numpy as np
# from rrc_example_package.code.training_env import make_training_env
from rrc_example_package.code.training_env.env import ActionType
import rrc_example_package.move_cube
import rrc_example_package.cube_env
# env = make_training_env(visualization=False, **eval_config)
# env.... | 32.408163 | 82 | 0.687028 | 198 | 1,588 | 5.262626 | 0.348485 | 0.057582 | 0.065259 | 0.043186 | 0.18714 | 0.142035 | 0.142035 | 0.072937 | 0 | 0 | 0 | 0.016179 | 0.18262 | 1,588 | 48 | 83 | 33.083333 | 0.786595 | 0.316121 | 0 | 0 | 0 | 0 | 0.077425 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0 | false | 0 | 0.148148 | 0 | 0.148148 | 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 |
662db785b141a51d5e5c2d7a6ae200c6d7fc2fa6 | 1,458 | py | Python | src/sprite.py | GreenXenith/zoria | 30a16baab3643c820613a8c8669ee6235a2cd47c | [
"MIT"
] | null | null | null | src/sprite.py | GreenXenith/zoria | 30a16baab3643c820613a8c8669ee6235a2cd47c | [
"MIT"
] | null | null | null | src/sprite.py | GreenXenith/zoria | 30a16baab3643c820613a8c8669ee6235a2cd47c | [
"MIT"
] | null | null | null | import pygame
from . import assets
from .vector import *
global registered_sprites
registered_sprites = {}
def register_sprite(name, definition):
registered_sprites[name] = definition
class Sprite:
texture = "none.png"
rect = pygame.Rect(0, 0, 0, 0)
def __init__(self, name, pos, z):
self.nam... | 27 | 78 | 0.598765 | 218 | 1,458 | 3.87156 | 0.238532 | 0.099526 | 0.047393 | 0.042654 | 0.220379 | 0.220379 | 0.154028 | 0.101896 | 0.101896 | 0.101896 | 0 | 0.006635 | 0.276406 | 1,458 | 53 | 79 | 27.509434 | 0.793365 | 0 | 0 | 0.051282 | 0 | 0 | 0.0151 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.179487 | false | 0 | 0.076923 | 0.025641 | 0.358974 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
662f6bd952e2e4b17cde090c9644c4ad6ec3e3d7 | 5,873 | py | Python | pset1 /ps1.py | vnb/Data-Science | af2936b621d51a6839111b6c793f9a270cded16c | [
"MIT"
] | null | null | null | pset1 /ps1.py | vnb/Data-Science | af2936b621d51a6839111b6c793f9a270cded16c | [
"MIT"
] | null | null | null | pset1 /ps1.py | vnb/Data-Science | af2936b621d51a6839111b6c793f9a270cded16c | [
"MIT"
] | null | null | null | ###########################
# 6.00.2x Problem Set 1: Space Cows
from ps1_partition import get_partitions
import time
#================================
# Part A: Transporting Space Cows
#================================
def load_cows(filename):
"""
Read the contents of the given file. Assumes th... | 30.910526 | 90 | 0.604461 | 786 | 5,873 | 4.389313 | 0.260814 | 0.041739 | 0.027826 | 0.036522 | 0.327536 | 0.261449 | 0.213913 | 0.213913 | 0.188986 | 0.170435 | 0 | 0.007994 | 0.318406 | 5,873 | 189 | 91 | 31.074074 | 0.85386 | 0.429253 | 0 | 0.22619 | 0 | 0 | 0.017511 | 0 | 0 | 0 | 0 | 0.005291 | 0 | 1 | 0.059524 | false | 0 | 0.02381 | 0 | 0.154762 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6630cfae3164736554237dd2d66a2111da1f1715 | 6,080 | py | Python | blackboxopt/optimization_loops/dask_distributed.py | boschresearch/blackboxopt | 85abea86f01a4a9d50f05d15e7d850e3288baafd | [
"ECL-2.0",
"Apache-2.0"
] | 8 | 2021-07-05T13:37:22.000Z | 2022-03-11T12:23:27.000Z | blackboxopt/optimization_loops/dask_distributed.py | boschresearch/blackboxopt | 85abea86f01a4a9d50f05d15e7d850e3288baafd | [
"ECL-2.0",
"Apache-2.0"
] | 14 | 2021-07-07T13:55:23.000Z | 2022-02-07T13:09:01.000Z | blackboxopt/optimization_loops/dask_distributed.py | boschresearch/blackboxopt | 85abea86f01a4a9d50f05d15e7d850e3288baafd | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # Copyright (c) 2020 - for information on the respective copyright owner
# see the NOTICE file and/or the repository https://github.com/boschresearch/blackboxopt
#
# SPDX-License-Identifier: Apache-2.0
import logging
import time
from typing import Callable, List, Set, Union
try:
import dask.distributed as dd
exce... | 34.742857 | 88 | 0.659539 | 662 | 6,080 | 5.870091 | 0.314199 | 0.018528 | 0.014153 | 0.02316 | 0.099331 | 0.099331 | 0.081832 | 0.081832 | 0.081832 | 0.057643 | 0 | 0.003626 | 0.274178 | 6,080 | 174 | 89 | 34.942529 | 0.876954 | 0.232072 | 0 | 0.139344 | 0 | 0 | 0.045862 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057377 | false | 0 | 0.081967 | 0.016393 | 0.188525 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
66349dcef473158c517a2f6336f11fae97c3b0b4 | 2,156 | py | Python | app/Duration.py | joshuaMarple/phase-vocoder | d652a594da2b526eae758c4d0ca6e87e0497b89d | [
"Apache-2.0"
] | null | null | null | app/Duration.py | joshuaMarple/phase-vocoder | d652a594da2b526eae758c4d0ca6e87e0497b89d | [
"Apache-2.0"
] | null | null | null | app/Duration.py | joshuaMarple/phase-vocoder | d652a594da2b526eae758c4d0ca6e87e0497b89d | [
"Apache-2.0"
] | null | null | null | """
Authors: Fernando (UPDATE HIS INFO)
License: GPL 3.0
Description: This file contains functions that allows the user to
change the pitch of a .wav
Comments: None.
"""
import subprocess
import os
from sys import platform as _platform
from lib import pydub
def changeDuration(filename,percent):
"""
Input: file... | 34.222222 | 106 | 0.729128 | 281 | 2,156 | 5.52669 | 0.362989 | 0.034771 | 0.027044 | 0.030908 | 0.320026 | 0.309079 | 0.309079 | 0.309079 | 0.257566 | 0.257566 | 0 | 0.01261 | 0.153989 | 2,156 | 62 | 107 | 34.774194 | 0.838816 | 0.392857 | 0 | 0 | 0 | 0 | 0.137161 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.148148 | 0 | 0.296296 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6634c188bd630f307a7ad6ecabe91c09bac5af47 | 12,711 | py | Python | network-manager/varanuspy/utils.py | netx-ulx/varanus | 7df5ec70563253d72a4287566b1fbb6bdf804a4c | [
"Apache-2.0"
] | null | null | null | network-manager/varanuspy/utils.py | netx-ulx/varanus | 7df5ec70563253d72a4287566b1fbb6bdf804a4c | [
"Apache-2.0"
] | null | null | null | network-manager/varanuspy/utils.py | netx-ulx/varanus | 7df5ec70563253d72a4287566b1fbb6bdf804a4c | [
"Apache-2.0"
] | null | null | null | from Queue import Empty, Queue
import collections
import ipaddress
import netifaces
import pwd
import signal
import socket
from subprocess import Popen
from threading import Thread
################################################################################
#### String utils
def newline( *args ):
class Single... | 29.908235 | 119 | 0.571001 | 1,489 | 12,711 | 4.750168 | 0.175957 | 0.038173 | 0.022056 | 0.03888 | 0.337763 | 0.261275 | 0.193412 | 0.176163 | 0.142797 | 0.142797 | 0 | 0.00314 | 0.298482 | 12,711 | 424 | 120 | 29.978774 | 0.790064 | 0.15404 | 0 | 0.350746 | 0 | 0 | 0.084157 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.179104 | false | 0.007463 | 0.033582 | 0.05597 | 0.41791 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
66373663ff85fccb4333f1b45aed30d0b9af2c3c | 8,824 | py | Python | load/DBPLoadController.py | faithcomesbyhearing/dbp-etl | ffd849111e8e2d40e9b07663408d31b5a2d15ce7 | [
"MIT"
] | null | null | null | load/DBPLoadController.py | faithcomesbyhearing/dbp-etl | ffd849111e8e2d40e9b07663408d31b5a2d15ce7 | [
"MIT"
] | 4 | 2021-03-10T22:20:29.000Z | 2022-03-23T22:18:00.000Z | load/DBPLoadController.py | faithcomesbyhearing/dbp-etl | ffd849111e8e2d40e9b07663408d31b5a2d15ce7 | [
"MIT"
] | 1 | 2021-03-10T20:49:43.000Z | 2021-03-10T20:49:43.000Z | # DBPLoadController.py
# 1) Run Validate on the files to process
# 2) Move any Fileset that is accepted to uploading
# 3) Perform upload
# 4) Move any fully uploaded fileset to database
# 5) Update fileset related tables
# 6) Move updated fileset to complete
import os
from Config import *
from RunStatus import *
fro... | 40.477064 | 174 | 0.779012 | 1,185 | 8,824 | 5.750211 | 0.210127 | 0.075873 | 0.08145 | 0.102143 | 0.514529 | 0.461697 | 0.423687 | 0.368506 | 0.349134 | 0.315527 | 0 | 0.026631 | 0.119107 | 8,824 | 217 | 175 | 40.663594 | 0.849994 | 0.589869 | 0 | 0.168421 | 0 | 0 | 0.030656 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073684 | false | 0 | 0.147368 | 0 | 0.252632 | 0.021053 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6637a11d7303e4cb1649f5cb8e8396c1af55c974 | 671 | py | Python | examples/misc/30-macro_call_in_background.py | robert-anderson/pyscf | cdc56e168cb15f47e8cdc791a92d689fa9b655af | [
"Apache-2.0"
] | 501 | 2018-12-06T23:48:17.000Z | 2022-03-31T11:53:18.000Z | examples/misc/30-macro_call_in_background.py | robert-anderson/pyscf | cdc56e168cb15f47e8cdc791a92d689fa9b655af | [
"Apache-2.0"
] | 710 | 2018-11-26T22:04:52.000Z | 2022-03-30T03:53:12.000Z | examples/misc/30-macro_call_in_background.py | robert-anderson/pyscf | cdc56e168cb15f47e8cdc791a92d689fa9b655af | [
"Apache-2.0"
] | 273 | 2018-11-26T10:10:24.000Z | 2022-03-30T12:25:28.000Z | #!/usr/bin/env python
'''
This example shows how to use the call_in_background macro
'''
from pyscf import lib
import time
def fa():
print('a')
time.sleep(0.5)
def fb():
print('b')
time.sleep(0.8)
print('type 1')
w0 = time.time()
with lib.call_in_background(fa) as afa, lib.call_in_background(fb) as... | 20.333333 | 84 | 0.584203 | 117 | 671 | 3.282051 | 0.393162 | 0.0625 | 0.166667 | 0.148438 | 0.494792 | 0.494792 | 0.494792 | 0.494792 | 0.380208 | 0.197917 | 0 | 0.042718 | 0.232489 | 671 | 32 | 85 | 20.96875 | 0.702913 | 0.117735 | 0 | 0.363636 | 0 | 0.045455 | 0.188356 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.181818 | 0.272727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
663b9f98e1aef6a83eac108928f75e32ee2a2b00 | 859 | py | Python | problems/287.Find_the_Duplicate_Number/solution-36801_binary.py | subramp-prep/leetcode | d125201d9021ab9b1eea5e5393c2db4edd84e740 | [
"Unlicense"
] | null | null | null | problems/287.Find_the_Duplicate_Number/solution-36801_binary.py | subramp-prep/leetcode | d125201d9021ab9b1eea5e5393c2db4edd84e740 | [
"Unlicense"
] | null | null | null | problems/287.Find_the_Duplicate_Number/solution-36801_binary.py | subramp-prep/leetcode | d125201d9021ab9b1eea5e5393c2db4edd84e740 | [
"Unlicense"
] | null | null | null | class Solution(object):
def findDuplicate(self, nums):
low = 0
high = len(nums) - 1
mid = (high + low) / 2
while high - low > 1:
count = 0
for k in nums:
if mid < k <= high:
count += 1
if count > high - mid:
... | 37.347826 | 115 | 0.563446 | 126 | 859 | 3.84127 | 0.492063 | 0.066116 | 0.041322 | 0.045455 | 0.123967 | 0.123967 | 0 | 0 | 0 | 0 | 0 | 0.018315 | 0.364377 | 859 | 22 | 116 | 39.045455 | 0.868132 | 0.472643 | 0 | 0.125 | 0 | 0 | 0 | 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 |
663cc62975bf84eb8f4aa1091e6cd8fcbbd6b541 | 1,826 | py | Python | src/data/sets.py | HninPwint/adv_dsi_lab_2 | 0c350444046bf0f468985437b59d2cae3516817a | [
"MIT"
] | null | null | null | src/data/sets.py | HninPwint/adv_dsi_lab_2 | 0c350444046bf0f468985437b59d2cae3516817a | [
"MIT"
] | null | null | null | src/data/sets.py | HninPwint/adv_dsi_lab_2 | 0c350444046bf0f468985437b59d2cae3516817a | [
"MIT"
] | null | null | null | def subset_x_y(target, features, start_index:int, end_index:int):
'''
'''
return features[start_index:end_index], target[start_index:end_index]
def split_sets_by_time(df, target_col, test_ratio=0.2):
'''
'''
df_copy = df.copy()
target = df_copy.pop(target_col)
cutoff = int(len(target)/... | 32.607143 | 119 | 0.654984 | 308 | 1,826 | 3.642857 | 0.194805 | 0.037433 | 0.048128 | 0.058824 | 0.385027 | 0.262032 | 0.262032 | 0.262032 | 0.128342 | 0.128342 | 0 | 0.004264 | 0.229463 | 1,826 | 56 | 120 | 32.607143 | 0.793177 | 0.266156 | 0 | 0 | 0 | 0 | 0.072816 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.041667 | 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 |
663eb6c24c50403fabcf3408feba6dc17b7e3aa6 | 853 | py | Python | Bio_III/DPChange.py | BlackAdder84/Bioinformatics | 6cc662b6c4a3349a89f6fdd26f05f1f6228bd912 | [
"MIT"
] | 1 | 2017-06-09T03:06:21.000Z | 2017-06-09T03:06:21.000Z | Bio_III/DPChange.py | BlackAdder84/Bioinformatics | 6cc662b6c4a3349a89f6fdd26f05f1f6228bd912 | [
"MIT"
] | null | null | null | Bio_III/DPChange.py | BlackAdder84/Bioinformatics | 6cc662b6c4a3349a89f6fdd26f05f1f6228bd912 | [
"MIT"
] | 1 | 2017-05-01T21:15:11.000Z | 2017-05-01T21:15:11.000Z | # Works
"""
Given a quantity of money and a list of coins, return the minimum number of coins.
"""
def DPChange(money, coins):
MinNumCoins = [0]*(money+1)
MinNumCoins[0] = 0
for m in range(1, money+1):
MinNumCoins[m] = 100000
for i in range(0, len(coins)):
if m >= coins[i]: # ... | 25.088235 | 82 | 0.570926 | 129 | 853 | 3.651163 | 0.44186 | 0.127389 | 0.044586 | 0.076433 | 0.178344 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101613 | 0.273154 | 853 | 33 | 83 | 25.848485 | 0.658065 | 0.150059 | 0 | 0 | 0 | 0 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 1 | 0.095238 | false | 0 | 0 | 0 | 0.142857 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
66400ba0baa5a1b25e3daf468b7b3e31fa7361b6 | 30,286 | py | Python | venv/lib/python3.6/site-packages/feedgen/entry.py | jannahuang/blog | e1d8cfa9d79ac06097a0e55531bba9421fcbf283 | [
"MIT"
] | null | null | null | venv/lib/python3.6/site-packages/feedgen/entry.py | jannahuang/blog | e1d8cfa9d79ac06097a0e55531bba9421fcbf283 | [
"MIT"
] | null | null | null | venv/lib/python3.6/site-packages/feedgen/entry.py | jannahuang/blog | e1d8cfa9d79ac06097a0e55531bba9421fcbf283 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
'''
feedgen.entry
~~~~~~~~~~~~~
:copyright: 2013-2020, Lars Kiesow <lkiesow@uos.de>
:license: FreeBSD and LGPL, see license.* for more details.
'''
from datetime import datetime
import dateutil.parser
import dateutil.tz
import warnings
from lxml.etree import CDATA # nosec -... | 40.982409 | 80 | 0.589777 | 3,779 | 30,286 | 4.574755 | 0.112728 | 0.036094 | 0.014577 | 0.008908 | 0.323751 | 0.259139 | 0.207138 | 0.176654 | 0.158665 | 0.135875 | 0 | 0.001803 | 0.322327 | 30,286 | 738 | 81 | 41.03794 | 0.839846 | 0.361289 | 0 | 0.111399 | 0 | 0 | 0.095028 | 0.001191 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064767 | false | 0 | 0.033679 | 0 | 0.158031 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
66421e56797abbadff0d086947c6577be6113573 | 3,165 | py | Python | tools/reduce_dimension.py | AtsushiHashimoto/exp_idc | 9b79a02d3a8fc3950b5fe775e75353b37dc612cc | [
"BSD-2-Clause"
] | null | null | null | tools/reduce_dimension.py | AtsushiHashimoto/exp_idc | 9b79a02d3a8fc3950b5fe775e75353b37dc612cc | [
"BSD-2-Clause"
] | null | null | null | tools/reduce_dimension.py | AtsushiHashimoto/exp_idc | 9b79a02d3a8fc3950b5fe775e75353b37dc612cc | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
DESCRIPTION="This script reduce dimensionality of input data."
#from memory_profiler import profile
import numpy as np
import argparse
from sklearn.decomposition import PCA
from sklearn.decomposition import NMF
import logging
import sys
from os.path import dirname
sys.path.append... | 27.521739 | 89 | 0.618957 | 388 | 3,165 | 4.881443 | 0.353093 | 0.028511 | 0.053854 | 0.052798 | 0.26188 | 0.184794 | 0.114044 | 0.114044 | 0.114044 | 0.090813 | 0 | 0.005046 | 0.248657 | 3,165 | 114 | 90 | 27.763158 | 0.791421 | 0.033175 | 0 | 0.391304 | 0 | 0 | 0.185597 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.01087 | false | 0 | 0.086957 | 0 | 0.097826 | 0.01087 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6649fd3abee8b975b14bebfd695b9dead71ff67f | 834 | py | Python | coursebuilder/tests/test_views.py | gcallah/CourseBuilder | 68f3d175aba43e62b20e6c1c4c6a604601c2c60a | [
"Apache-2.0"
] | 2 | 2019-10-07T23:03:54.000Z | 2019-10-15T23:18:08.000Z | coursebuilder/tests/test_views.py | gcallah/CourseBuilder | 68f3d175aba43e62b20e6c1c4c6a604601c2c60a | [
"Apache-2.0"
] | 3 | 2019-12-11T15:49:38.000Z | 2021-06-10T22:04:41.000Z | coursebuilder/tests/test_views.py | gcallah/CourseBuilder | 68f3d175aba43e62b20e6c1c4c6a604601c2c60a | [
"Apache-2.0"
] | 1 | 2019-12-02T06:08:11.000Z | 2019-12-02T06:08:11.000Z | from django.test import TestCase
from django.urls import reverse
class CourseBuilderViewTest(TestCase):
def test_landing_page(self):
url = reverse("coursebuilder:landing_page")
response = self.client.post(url)
self.assertEqual(response.status_code, 200)
self.assertTemplateUsed(resp... | 36.26087 | 63 | 0.711031 | 94 | 834 | 6.148936 | 0.297872 | 0.036332 | 0.057093 | 0.093426 | 0.681661 | 0.628028 | 0.49654 | 0.49654 | 0.49654 | 0.49654 | 0 | 0.013314 | 0.189448 | 834 | 22 | 64 | 37.909091 | 0.841716 | 0 | 0 | 0.333333 | 0 | 0 | 0.159472 | 0.095923 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.166667 | false | 0 | 0.111111 | 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 |
664a09ed3a949b821074a7ea5edcf32f555375e2 | 336 | py | Python | LC/249.py | szhu3210/LeetCode_Solutions | 64747eb172c2ecb3c889830246f3282669516e10 | [
"MIT"
] | 2 | 2018-02-24T17:20:02.000Z | 2018-02-24T17:25:43.000Z | LC/249.py | szhu3210/LeetCode_Solutions | 64747eb172c2ecb3c889830246f3282669516e10 | [
"MIT"
] | null | null | null | LC/249.py | szhu3210/LeetCode_Solutions | 64747eb172c2ecb3c889830246f3282669516e10 | [
"MIT"
] | null | null | null | class Solution(object):
def groupStrings(self, strings):
"""
:type strings: List[str]
:rtype: List[List[str]]
"""
d=collections.defaultdict(list)
for s in strings:
d[tuple([((ord(s[i])-ord(s[0]))%26) for i in range(len(s))])].append(s)
return [d[ke... | 33.6 | 83 | 0.529762 | 47 | 336 | 3.787234 | 0.574468 | 0.078652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012658 | 0.294643 | 336 | 10 | 84 | 33.6 | 0.738397 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 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 |
664b6b48aac6edc74751d03dafd588e100ea7322 | 2,460 | py | Python | cfcc/cogs/stats.py | denuoweb/tipbot-v2 | bd25205fd4a0440ffe11b7e94905881d4c799282 | [
"Apache-2.0"
] | 2 | 2020-03-05T00:08:38.000Z | 2020-12-21T04:34:31.000Z | cfcc/cogs/stats.py | denuoweb/tipbot-v2 | bd25205fd4a0440ffe11b7e94905881d4c799282 | [
"Apache-2.0"
] | null | null | null | cfcc/cogs/stats.py | denuoweb/tipbot-v2 | bd25205fd4a0440ffe11b7e94905881d4c799282 | [
"Apache-2.0"
] | 2 | 2020-08-30T23:33:20.000Z | 2022-01-28T22:52:58.000Z | import discord, os
from discord.ext import commands
from utils import checks, output
from aiohttp import ClientSession
import urllib.request
import json
class Stats:
def __init__(self, bot: discord.ext.commands.Bot):
self.bot = bot
@commands.command()
async def stats(self, amount=1):
"""
... | 54.666667 | 148 | 0.579268 | 291 | 2,460 | 4.780069 | 0.415808 | 0.063264 | 0.102804 | 0.134436 | 0.20417 | 0.05895 | 0.05895 | 0.05895 | 0.05895 | 0.05895 | 0 | 0.033296 | 0.26748 | 2,460 | 44 | 149 | 55.909091 | 0.738624 | 0.3 | 0 | 0 | 0 | 0.037037 | 0.220084 | 0.051714 | 0 | 0 | 0.004811 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.222222 | 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 |
6651c8c1061de1521ef9b16fc164b0b76ba7d323 | 5,563 | py | Python | src/reinigung.py | infiniteloop-youth/reinigung | 1a16603ab97989b4180d51813c203ee81d9d7f5e | [
"MIT"
] | null | null | null | src/reinigung.py | infiniteloop-youth/reinigung | 1a16603ab97989b4180d51813c203ee81d9d7f5e | [
"MIT"
] | null | null | null | src/reinigung.py | infiniteloop-youth/reinigung | 1a16603ab97989b4180d51813c203ee81d9d7f5e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- Coding: utf-8 -*-
from argparse import ArgumentParser
from os import environ, makedirs
from datetime import datetime
from os.path import abspath, join, dirname, exists, splitext
from time import time
from dotenv import load_dotenv
import slack
DIR = dirname(dirname(abspath(__file__)))
l... | 30.398907 | 140 | 0.580262 | 680 | 5,563 | 4.560294 | 0.241176 | 0.035472 | 0.038697 | 0.021283 | 0.168655 | 0.155111 | 0.122219 | 0.117704 | 0.117704 | 0.079329 | 0 | 0.009508 | 0.262628 | 5,563 | 182 | 141 | 30.565934 | 0.746465 | 0.053748 | 0 | 0.016393 | 0 | 0 | 0.193561 | 0.004408 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016393 | false | 0 | 0.057377 | 0 | 0.081967 | 0.065574 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b0728c4bb800f77d5ab35c76ddb2e7148e9e9c1b | 6,856 | py | Python | main.py | KunalKatiyar/ChatBox-App | 2a53c7ed155aeb56a5304acf546762bf1c62569a | [
"MIT"
] | 1 | 2020-04-03T09:07:35.000Z | 2020-04-03T09:07:35.000Z | main.py | KunalKatiyar/ChatBox-App | 2a53c7ed155aeb56a5304acf546762bf1c62569a | [
"MIT"
] | null | null | null | main.py | KunalKatiyar/ChatBox-App | 2a53c7ed155aeb56a5304acf546762bf1c62569a | [
"MIT"
] | null | null | null | import kivy
from kivy.app import App
from kivy.uix.label import Label
from kivy.uix.gridlayout import GridLayout
from kivy.uix.textinput import TextInput
from kivy.uix.button import Button
from kivy.uix.screenmanager import ScreenManager, Screen
from kivy.clock import Clock
from kivy.core.window import Window
... | 35.895288 | 121 | 0.625292 | 883 | 6,856 | 4.608154 | 0.157418 | 0.048661 | 0.044728 | 0.029246 | 0.389039 | 0.315802 | 0.262472 | 0.218727 | 0.156795 | 0.133202 | 0 | 0.015804 | 0.261669 | 6,856 | 191 | 122 | 35.895288 | 0.788028 | 0 | 0 | 0.178344 | 0 | 0 | 0.046798 | 0.016949 | 0 | 0 | 0 | 0 | 0 | 1 | 0.11465 | false | 0 | 0.082803 | 0 | 0.242038 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b0747e6f6d9760d681c73f7d16222536711564c9 | 4,607 | py | Python | parlai/agents/recosa/recosa.py | ying-A/RED | 27971a5a6d6768e8a7052d8fba06e5056da7619e | [
"MIT"
] | 3 | 2020-12-04T07:29:18.000Z | 2021-04-08T06:23:20.000Z | parlai/agents/recosa/recosa.py | ying-A/RED | 27971a5a6d6768e8a7052d8fba06e5056da7619e | [
"MIT"
] | null | null | null | parlai/agents/recosa/recosa.py | ying-A/RED | 27971a5a6d6768e8a7052d8fba06e5056da7619e | [
"MIT"
] | 1 | 2020-12-04T07:29:04.000Z | 2020-12-04T07:29:04.000Z | # Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from parlai.core.agents import Agent
from parlai.core.utils import warn_once
from parlai.core.utils import padded_3d
from parlai.core.torch_gene... | 51.188889 | 135 | 0.674191 | 608 | 4,607 | 4.963816 | 0.320724 | 0.08383 | 0.06892 | 0.037773 | 0.202452 | 0.16004 | 0.133201 | 0.06163 | 0.05169 | 0 | 0 | 0.012507 | 0.20165 | 4,607 | 89 | 136 | 51.764045 | 0.808048 | 0.075103 | 0 | 0 | 0 | 0 | 0.343174 | 0.006849 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061538 | false | 0 | 0.092308 | 0 | 0.215385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b075806cabe0b1312272705ea0a85e81c75f2115 | 20,972 | py | Python | dataloading/nvidia.py | UT-ADL/lidar-as-camera | daccb2ae21b4899ecfd8611b7a27f91681617383 | [
"Apache-2.0"
] | null | null | null | dataloading/nvidia.py | UT-ADL/lidar-as-camera | daccb2ae21b4899ecfd8611b7a27f91681617383 | [
"Apache-2.0"
] | null | null | null | dataloading/nvidia.py | UT-ADL/lidar-as-camera | daccb2ae21b4899ecfd8611b7a27f91681617383 | [
"Apache-2.0"
] | null | null | null | import sys
from pathlib import Path
import cv2
import numpy as np
import pandas as pd
import torch
from torch.utils.data import Dataset
import torchvision
from torchvision import transforms
import torchvision.transforms.functional as F
from skimage.util import random_noise
from dataloading.camera import Camera
cl... | 44.716418 | 122 | 0.613961 | 2,907 | 20,972 | 4.099071 | 0.128311 | 0.06378 | 0.056395 | 0.040282 | 0.525848 | 0.454935 | 0.341725 | 0.27996 | 0.249245 | 0.212907 | 0 | 0.102562 | 0.257534 | 20,972 | 469 | 123 | 44.716418 | 0.662706 | 0.090359 | 0 | 0.168142 | 0 | 0 | 0.2395 | 0.177364 | 0 | 0 | 0 | 0.002132 | 0 | 1 | 0.058997 | false | 0 | 0.035398 | 0.0059 | 0.162242 | 0.014749 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b076c6afbdbadd2bb1cb6f1a1f6c0c794d322733 | 7,206 | py | Python | further/deployment.py | openfurther/further-open-fabric-deployment | d571d603dad43996c66d716c69a247547f6f0ba1 | [
"Apache-2.0"
] | null | null | null | further/deployment.py | openfurther/further-open-fabric-deployment | d571d603dad43996c66d716c69a247547f6f0ba1 | [
"Apache-2.0"
] | null | null | null | further/deployment.py | openfurther/further-open-fabric-deployment | d571d603dad43996c66d716c69a247547f6f0ba1 | [
"Apache-2.0"
] | null | null | null | # Copyright (C) [2013] [The FURTHeR Project]
#
# 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... | 45.0375 | 181 | 0.684707 | 936 | 7,206 | 5.180556 | 0.272436 | 0.03609 | 0.040214 | 0.058981 | 0.306867 | 0.255723 | 0.222108 | 0.192823 | 0.192823 | 0.129099 | 0 | 0.014874 | 0.197613 | 7,206 | 159 | 182 | 45.320755 | 0.823763 | 0.250486 | 0 | 0.093458 | 0 | 0.065421 | 0.369352 | 0.226468 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084112 | false | 0.009346 | 0.093458 | 0 | 0.196262 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b079078e2de1f33efb9b000ddc8a7958596a0333 | 1,461 | py | Python | Ene-Jun-2021/aguilar-cedillo-jonathan-ivan/Examen Especial/app/api.py | jarmarj/DAS_Sistemas | 36c876673e7abae503cc137c3f66585a0e45ed79 | [
"MIT"
] | 41 | 2017-09-26T09:36:32.000Z | 2022-03-19T18:05:25.000Z | Ene-Jun-2021/aguilar-cedillo-jonathan-ivan/Examen Especial/app/api.py | jarmarj/DAS_Sistemas | 36c876673e7abae503cc137c3f66585a0e45ed79 | [
"MIT"
] | 67 | 2017-09-11T05:06:12.000Z | 2022-02-14T04:44:04.000Z | Ene-Jun-2021/aguilar-cedillo-jonathan-ivan/Examen Especial/app/api.py | jarmarj/DAS_Sistemas | 36c876673e7abae503cc137c3f66585a0e45ed79 | [
"MIT"
] | 210 | 2017-09-01T00:10:08.000Z | 2022-03-19T18:05:12.000Z | from flask import Flask, render_template, jsonify
from mongo import mongo
import json
# from persona import persona
import time
app = Flask(__name__, static_url_path='/static')
cliente=mongo()
peoples=cliente['mydb']['people'].find()
def parsePerson(person):
return {
'id':person['id'],
... | 25.631579 | 63 | 0.576318 | 160 | 1,461 | 5.10625 | 0.39375 | 0.029376 | 0.041616 | 0.051408 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017958 | 0.275838 | 1,461 | 57 | 64 | 25.631579 | 0.754253 | 0.01848 | 0 | 0.043478 | 0 | 0 | 0.151779 | 0.018155 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.086957 | 0.065217 | 0.391304 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b07eaf9c823c7f4577dd939bb64e4ed246d82116 | 1,775 | py | Python | tests/test_main.py | openalto/alto | 294f4e1d45d5e3f0cc476a2f0cbb85164c7d32ae | [
"MIT"
] | null | null | null | tests/test_main.py | openalto/alto | 294f4e1d45d5e3f0cc476a2f0cbb85164c7d32ae | [
"MIT"
] | null | null | null | tests/test_main.py | openalto/alto | 294f4e1d45d5e3f0cc476a2f0cbb85164c7d32ae | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# The MIT License (MIT)
#
# Copyright (c) 2021 OpenALTO Community
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation t... | 34.134615 | 80 | 0.729014 | 261 | 1,775 | 4.904215 | 0.555556 | 0.06875 | 0.020313 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012448 | 0.185352 | 1,775 | 51 | 81 | 34.803922 | 0.872752 | 0.727324 | 0 | 0 | 0 | 0 | 0.114094 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.133333 | false | 0 | 0.133333 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b0808b108456f6e159e093505f69f5f9b21e00dc | 2,501 | py | Python | tradedate.py | Anton-Mu/finance_sentiment_analysis | e319073646f8b11a3f6b5140137a7f0205918c19 | [
"MIT"
] | null | null | null | tradedate.py | Anton-Mu/finance_sentiment_analysis | e319073646f8b11a3f6b5140137a7f0205918c19 | [
"MIT"
] | null | null | null | tradedate.py | Anton-Mu/finance_sentiment_analysis | e319073646f8b11a3f6b5140137a7f0205918c19 | [
"MIT"
] | 1 | 2022-02-08T06:11:51.000Z | 2022-02-08T06:11:51.000Z | import re
import requests
import json
# 从百度的php接口中获取到数据
def catch_url_from_baidu(calcultaion_year, month):
header = {
"Content-Type": "application/json;charset=UTF-8"
}
param = {
"query": str(calcultaion_year) + "年" + month + "月",
"resource_id": "39043",
"t":... | 30.13253 | 84 | 0.587765 | 294 | 2,501 | 4.765306 | 0.411565 | 0.034975 | 0.017131 | 0.024268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038932 | 0.281088 | 2,501 | 82 | 85 | 30.5 | 0.740267 | 0.120352 | 0 | 0.034483 | 0 | 0 | 0.121313 | 0.014272 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051724 | false | 0 | 0.051724 | 0 | 0.155172 | 0.051724 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b080d8609691c7b1384b852df88e37fc68699acb | 1,377 | py | Python | config/trainer_configs/model_config/mnist_conv_auto.py | jwspaeth/FAA-Project | afa9d3bec10deead48c4b17dff69df2e02691e41 | [
"MIT"
] | null | null | null | config/trainer_configs/model_config/mnist_conv_auto.py | jwspaeth/FAA-Project | afa9d3bec10deead48c4b17dff69df2e02691e41 | [
"MIT"
] | 2 | 2019-10-20T00:42:40.000Z | 2019-10-30T18:06:11.000Z | config/trainer_configs/model_config/mnist_conv_auto.py | jwspaeth/FAA-Project | afa9d3bec10deead48c4b17dff69df2e02691e41 | [
"MIT"
] | null | null | null |
from yacs.config import CfgNode as CN
from lib.classes.dataset_classes.SubjectDataset import SubjectDataset
from config.model_helper import get_size_input
_C = CN()
_C.framework = "Keras"
_C.model_type = "ConvAutoencoder"
_C.build_type = "subclass"
# Define encoder parameters
_C.Encoder = CN()
_C.Encoder.n_filters... | 35.307692 | 80 | 0.659405 | 227 | 1,377 | 3.784141 | 0.330396 | 0.030268 | 0.111758 | 0.111758 | 0.251455 | 0.204889 | 0.204889 | 0.204889 | 0.09546 | 0.09546 | 0 | 0.05017 | 0.14597 | 1,377 | 38 | 81 | 36.236842 | 0.680272 | 0.173566 | 0 | 0 | 0 | 0 | 0.106477 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.125 | 0 | 0.208333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b080e30a075631abb8736fd8c977482b5bcb3a76 | 577 | py | Python | src/graphviz/graphviz_5.py | lrodrin/TFG | b4199b5970deb7b7394ecac1c950acaa3cfde695 | [
"MIT"
] | 2 | 2017-01-16T12:08:34.000Z | 2017-01-16T13:00:12.000Z | src/graphviz/graphviz_5.py | lrodrin/TFG | b4199b5970deb7b7394ecac1c950acaa3cfde695 | [
"MIT"
] | null | null | null | src/graphviz/graphviz_5.py | lrodrin/TFG | b4199b5970deb7b7394ecac1c950acaa3cfde695 | [
"MIT"
] | null | null | null | import pydot
callgraph = pydot.Dot(graph_type='digraph', fontname="Verdana", compound='true')
cluster_foo = pydot.Cluster('foo', label='foo')
callgraph.add_subgraph(cluster_foo)
node_foo = pydot.Node('foo_method_1', label='method_1')
cluster_foo.add_node(node_foo)
cluster_bar = pydot.Cluster('bar', label='Component... | 28.85 | 110 | 0.785095 | 89 | 577 | 4.775281 | 0.337079 | 0.117647 | 0.094118 | 0.127059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007421 | 0.065858 | 577 | 19 | 111 | 30.368421 | 0.781076 | 0 | 0 | 0 | 0 | 0 | 0.143847 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b0833cf5f5755370727e1adbc3f27b3a23bd86c3 | 12,544 | py | Python | lfa.py | jwbensley/pyFRR | 7f5792586b528c9f7c0d84f263eaae5f1c718661 | [
"MIT"
] | 2 | 2021-08-12T06:57:59.000Z | 2021-09-09T19:28:04.000Z | lfa.py | jwbensley/pyFRR | 7f5792586b528c9f7c0d84f263eaae5f1c718661 | [
"MIT"
] | 1 | 2021-11-19T16:32:54.000Z | 2021-11-19T16:32:54.000Z | lfa.py | jwbensley/pyFRR | 7f5792586b528c9f7c0d84f263eaae5f1c718661 | [
"MIT"
] | null | null | null | import networkx as nx
import os
from diagram import Diagram
from spf import spf
class lfa:
"""This class provides RFC5286 lfa calculations"""
def __init__(self, debug=0):
"""
Init the lfa class.
:param int debug: debug level, 0 is disabled.
:return None: __init__ shouldn't re... | 39.949045 | 81 | 0.479034 | 1,519 | 12,544 | 3.817643 | 0.156682 | 0.010347 | 0.016555 | 0.020693 | 0.383342 | 0.341438 | 0.310226 | 0.289878 | 0.247112 | 0.176237 | 0 | 0.005913 | 0.447226 | 12,544 | 313 | 82 | 40.076677 | 0.830401 | 0.137755 | 0 | 0.309942 | 0 | 0.011696 | 0.127963 | 0.002648 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023392 | false | 0 | 0.023392 | 0 | 0.064327 | 0.064327 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b0836df3831634d69eba10f383e0ec13d3b01887 | 4,523 | py | Python | acapy_client/models/presentation_definition.py | dbluhm/acapy-client | d92ef607ba2ff1152ec15429f2edb20976991424 | [
"Apache-2.0"
] | 4 | 2021-08-05T09:20:34.000Z | 2021-08-08T19:37:29.000Z | acapy_client/models/presentation_definition.py | dbluhm/acapy-client | d92ef607ba2ff1152ec15429f2edb20976991424 | [
"Apache-2.0"
] | null | null | null | acapy_client/models/presentation_definition.py | dbluhm/acapy-client | d92ef607ba2ff1152ec15429f2edb20976991424 | [
"Apache-2.0"
] | 2 | 2021-08-12T18:18:45.000Z | 2021-08-14T13:22:28.000Z | from typing import Any, Dict, List, Type, TypeVar, Union
import attr
from ..models.claim_format import ClaimFormat
from ..models.input_descriptors import InputDescriptors
from ..models.submission_requirements import SubmissionRequirements
from ..types import UNSET, Unset
T = TypeVar("T", bound="PresentationDefinitio... | 36.475806 | 110 | 0.668804 | 494 | 4,523 | 5.827935 | 0.153846 | 0.138937 | 0.055575 | 0.031261 | 0.255644 | 0.159083 | 0.07711 | 0.045155 | 0.033345 | 0.033345 | 0 | 0 | 0.244307 | 4,523 | 123 | 111 | 36.772358 | 0.842305 | 0 | 0 | 0.085106 | 0 | 0 | 0.031222 | 0.015058 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074468 | false | 0 | 0.06383 | 0.031915 | 0.276596 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b085477d012b84ae2bc4a7c010866eb15378b909 | 12,344 | py | Python | aiodata/server.py | Exahilosys/aiodata | b4e475eac055f5f391219ae8b893a3e508b51fd8 | [
"MIT"
] | 1 | 2021-11-03T13:06:21.000Z | 2021-11-03T13:06:21.000Z | aiodata/server.py | Exahilosys/aiodata | b4e475eac055f5f391219ae8b893a3e508b51fd8 | [
"MIT"
] | null | null | null | aiodata/server.py | Exahilosys/aiodata | b4e475eac055f5f391219ae8b893a3e508b51fd8 | [
"MIT"
] | null | null | null |
"""
Launch a proxy for tranforming `/paths/like/these` to PostgREST filters.
Usage:
aiodata -h | --help
aiodata <file> [--host=<str>] [--port=<int>] [--query=<str>] [--state=<str>]
aiodata [--db-uri=<uri>] [--pr-uri=<uri>] [--host=<str>] [--port=<int>] [--schema=<str>] [--secret=<str>] [--query=<str>] [--... | 26.660907 | 141 | 0.577041 | 1,383 | 12,344 | 5.048445 | 0.248735 | 0.010026 | 0.006875 | 0.009166 | 0.076769 | 0.05328 | 0.026926 | 0.007161 | 0 | 0 | 0 | 0.004462 | 0.310029 | 12,344 | 462 | 142 | 26.718615 | 0.815311 | 0.196209 | 0 | 0.135135 | 0 | 0 | 0.051929 | 0.002355 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03861 | false | 0.030888 | 0.065637 | 0.011583 | 0.173745 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b0889dcb4a9fc459f520ba21dc747165ea106830 | 838 | py | Python | urldownload/DataOutput.py | MisterZhouZhou/pythonLearn | 8933c7a6d444d3d86a173984e6cf4c08dbf84039 | [
"Apache-2.0"
] | 1 | 2019-07-09T09:59:39.000Z | 2019-07-09T09:59:39.000Z | urldownload/DataOutput.py | MisterZhouZhou/pythonLearn | 8933c7a6d444d3d86a173984e6cf4c08dbf84039 | [
"Apache-2.0"
] | null | null | null | urldownload/DataOutput.py | MisterZhouZhou/pythonLearn | 8933c7a6d444d3d86a173984e6cf4c08dbf84039 | [
"Apache-2.0"
] | null | null | null | # coding:utf-8
import codecs
class DataOutput(object):
def __init__(self):
self.datas = []
def store_data(self, data):
if data is None:
return
self.datas.append(data)
def output_html(self, path, data):
fout = codecs.open(path, 'w+', encoding='utf-8')
f... | 26.1875 | 65 | 0.516706 | 101 | 838 | 4.19802 | 0.356436 | 0.106132 | 0.061321 | 0.080189 | 0.080189 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005172 | 0.307876 | 838 | 32 | 66 | 26.1875 | 0.725862 | 0.336516 | 0 | 0 | 0 | 0 | 0.06044 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.058824 | 0 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b089aca6a94743358087e5f0bbece897c4de4d3c | 2,600 | py | Python | ga4gh/htsget/compliance/schema_validator.py | jmtcsngr/htsget-compliance | 35521f0b1361307f887b22c559823f1ba9dd8052 | [
"Apache-2.0"
] | 1 | 2020-01-22T17:11:59.000Z | 2020-01-22T17:11:59.000Z | ga4gh/htsget/compliance/schema_validator.py | jmtcsngr/htsget-compliance | 35521f0b1361307f887b22c559823f1ba9dd8052 | [
"Apache-2.0"
] | null | null | null | ga4gh/htsget/compliance/schema_validator.py | jmtcsngr/htsget-compliance | 35521f0b1361307f887b22c559823f1ba9dd8052 | [
"Apache-2.0"
] | 2 | 2020-02-06T10:29:16.000Z | 2020-02-10T09:59:54.000Z | # -*- coding: utf-8 -*-
"""Validates htsget response matches JSON schema"""
import inspect
import json
import os
from jsonschema import validate
from jsonschema import RefResolver
from jsonschema.exceptions import ValidationError
from ga4gh.htsget.compliance.config import constants as c
class SchemaValidator(object):... | 35.616438 | 79 | 0.65 | 286 | 2,600 | 5.762238 | 0.342657 | 0.054612 | 0.023665 | 0.036408 | 0.048544 | 0.048544 | 0 | 0 | 0 | 0 | 0 | 0.002112 | 0.271538 | 2,600 | 72 | 80 | 36.111111 | 0.868004 | 0.398077 | 0 | 0 | 0 | 0 | 0.050929 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.2 | 0 | 0.371429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b08ef2d8e3033532d604bc5d0f9f77203768c894 | 16,116 | py | Python | monitor_ed/ed_monitor.py | Andywang201605/astro_tools | e1ceaeaa17d1391cb2d7f1eb15f9bdeced42b534 | [
"MIT"
] | null | null | null | monitor_ed/ed_monitor.py | Andywang201605/astro_tools | e1ceaeaa17d1391cb2d7f1eb15f9bdeced42b534 | [
"MIT"
] | null | null | null | monitor_ed/ed_monitor.py | Andywang201605/astro_tools | e1ceaeaa17d1391cb2d7f1eb15f9bdeced42b534 | [
"MIT"
] | 1 | 2021-02-15T06:00:47.000Z | 2021-02-15T06:00:47.000Z | # -*- coding: utf-8 -*-
"""
Created on Thu Mar 25 18:17:13 2021
@author: AndyWang
"""
from bs4 import BeautifulSoup
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from datetime import datetime
from time import sleep
import pandas as pd
import numpy as np
import os
... | 32.491935 | 97 | 0.584636 | 1,828 | 16,116 | 4.954048 | 0.219365 | 0.060733 | 0.037544 | 0.045053 | 0.358989 | 0.295163 | 0.246577 | 0.215769 | 0.185844 | 0.122239 | 0 | 0.010756 | 0.296227 | 16,116 | 496 | 98 | 32.491935 | 0.787692 | 0.139737 | 0 | 0.254181 | 0 | 0.006689 | 0.12183 | 0.017759 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.036789 | 0 | 0.183946 | 0.073579 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b09026b586af08d54afda4ec0f2c75827cc35592 | 419 | py | Python | Random-Programs/optimization/simonSays/simonSays.py | naumoff0/Archive | d4ad2da89abb1576dd5a7c72ded6bf9b45c3f610 | [
"MIT"
] | null | null | null | Random-Programs/optimization/simonSays/simonSays.py | naumoff0/Archive | d4ad2da89abb1576dd5a7c72ded6bf9b45c3f610 | [
"MIT"
] | null | null | null | Random-Programs/optimization/simonSays/simonSays.py | naumoff0/Archive | d4ad2da89abb1576dd5a7c72ded6bf9b45c3f610 | [
"MIT"
] | null | null | null | import random, time, os
def m():
l, t, d = 3,0.5,1
o=input("Opp\n0)Yes\n1)No\n:")
while l>0:
S=r(d,"")
print("Lives:"+str(l)+"\nSimon Says:"+str(S))
time.sleep(t*d)
os.system("clear")
if int(input("RPT\n>> "))!=S: l=(l - 1)
else: d+=1
print("PTS:"+str((d... | 26.1875 | 57 | 0.46778 | 78 | 419 | 2.5 | 0.551282 | 0.020513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0.28401 | 419 | 16 | 58 | 26.1875 | 0.61 | 0 | 0 | 0 | 0 | 0 | 0.130952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.0625 | 0 | 0.25 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b090822888b5d41d4c5adb4d5a180180c92743de | 1,572 | py | Python | quantarhei/symbolic/lang.py | slamavl/quantarhei | d822bc2db86152c418e330a9152e7866869776f7 | [
"MIT"
] | 14 | 2016-10-16T13:26:05.000Z | 2021-11-09T11:40:52.000Z | quantarhei/symbolic/lang.py | slamavl/quantarhei | d822bc2db86152c418e330a9152e7866869776f7 | [
"MIT"
] | 61 | 2016-09-19T10:45:56.000Z | 2021-11-10T13:53:06.000Z | quantarhei/symbolic/lang.py | slamavl/quantarhei | d822bc2db86152c418e330a9152e7866869776f7 | [
"MIT"
] | 21 | 2016-08-30T09:09:28.000Z | 2022-03-30T03:16:35.000Z | # -*- coding: utf-8 -*-
def rename_function(ss, oldname, newname):
"""Replaces all occurences of a name by a new name
"""
#return ss.replace("conjugate","numpy.conj")
return ss.replace(oldname, newname)
def fce2array(sr, pat):
"""Converts functions into arrays
"""
se = "".joi... | 24.952381 | 57 | 0.512087 | 196 | 1,572 | 4.071429 | 0.346939 | 0.087719 | 0.080201 | 0.0401 | 0.345865 | 0.285714 | 0.285714 | 0.213033 | 0.213033 | 0.090226 | 0 | 0.009756 | 0.347964 | 1,572 | 62 | 58 | 25.354839 | 0.76878 | 0.316794 | 0 | 0.228571 | 0 | 0 | 0.047939 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114286 | false | 0 | 0 | 0 | 0.228571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b093e8d1dc7ce6bd823606fd89573b9ddd010409 | 5,246 | py | Python | fashion_segmentation/code/main.py | TayaPenskaya/Diploma | dee4e13eccdd0d0ddc4f667d2eb94260a7ed3847 | [
"MIT"
] | null | null | null | fashion_segmentation/code/main.py | TayaPenskaya/Diploma | dee4e13eccdd0d0ddc4f667d2eb94260a7ed3847 | [
"MIT"
] | null | null | null | fashion_segmentation/code/main.py | TayaPenskaya/Diploma | dee4e13eccdd0d0ddc4f667d2eb94260a7ed3847 | [
"MIT"
] | null | null | null | import argparse
import os
import numpy as np
import matplotlib.pyplot as plt
import torch
import yaml
import cv2
from PIL import Image, ImageFilter
from base64 import b64decode, b64encode
import io
from predictors.predictor import Predictor
from src.models.modnet import MODNet
import torch
import torch.nn as nn
im... | 32.993711 | 139 | 0.573199 | 694 | 5,246 | 4.193084 | 0.298271 | 0.009278 | 0.013746 | 0.006873 | 0.038144 | 0.017526 | 0.004124 | 0.004124 | 0.004124 | 0.004124 | 0 | 0.027755 | 0.292604 | 5,246 | 158 | 140 | 33.202532 | 0.7564 | 0.026115 | 0 | 0.034483 | 0 | 0 | 0.087238 | 0.01784 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.137931 | 0 | 0.206897 | 0.008621 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b0975e691b95560eeb7040b6b852833062f50974 | 2,245 | py | Python | mmdet3d/ops/dgcnn_modules/dgcnn_fa_module.py | maskjp/mmdetection3d | 98f332372b1a4c82bc2d57588a5d764f4176c869 | [
"Apache-2.0"
] | 5 | 2022-01-26T13:03:12.000Z | 2022-01-27T03:59:09.000Z | mmdet3d/ops/dgcnn_modules/dgcnn_fa_module.py | maskjp/mmdetection3d | 98f332372b1a4c82bc2d57588a5d764f4176c869 | [
"Apache-2.0"
] | 1 | 2022-03-31T08:33:12.000Z | 2022-03-31T08:35:55.000Z | mmdet3d/ops/dgcnn_modules/dgcnn_fa_module.py | maskjp/mmdetection3d | 98f332372b1a4c82bc2d57588a5d764f4176c869 | [
"Apache-2.0"
] | 1 | 2022-03-30T04:08:39.000Z | 2022-03-30T04:08:39.000Z | # Copyright (c) OpenMMLab. All rights reserved.
import torch
from mmcv.cnn import ConvModule
from mmcv.runner import BaseModule, force_fp32
from torch import nn as nn
class DGCNNFAModule(BaseModule):
"""Point feature aggregation module used in DGCNN.
Aggregate all the features of points.
Args:
m... | 32.536232 | 77 | 0.559911 | 275 | 2,245 | 4.367273 | 0.367273 | 0.112406 | 0.041632 | 0.044963 | 0.283097 | 0.108243 | 0.071607 | 0.071607 | 0.071607 | 0.071607 | 0 | 0.018097 | 0.335412 | 2,245 | 68 | 78 | 33.014706 | 0.786863 | 0.279733 | 0 | 0.052632 | 0 | 0 | 0.014407 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.105263 | 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 |
b098cf5dfcf4280fa0a7565a9bca4ad07ebf52e7 | 1,653 | py | Python | dir_monch/dir_monch.py | shivaghose/nifty_tools | 587ed6403222ee959f8e0789e66e61f6f187f80b | [
"MIT"
] | 1 | 2016-08-11T18:49:44.000Z | 2016-08-11T18:49:44.000Z | dir_monch/dir_monch.py | shivaghose/nifty_tools | 587ed6403222ee959f8e0789e66e61f6f187f80b | [
"MIT"
] | null | null | null | dir_monch/dir_monch.py | shivaghose/nifty_tools | 587ed6403222ee959f8e0789e66e61f6f187f80b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
'''
dir_monch: a utility to help shorten paths.
'''
from __future__ import print_function
from os.path import expanduser
from os import sep as os_sep
from sys import exit
import sys
def dir_monch(path):
# Substitute ~ for the home dir path when possible
HOME = expanduser("~")
if pat... | 30.054545 | 99 | 0.61585 | 238 | 1,653 | 4.046218 | 0.344538 | 0.031153 | 0.040498 | 0.045691 | 0.146417 | 0.146417 | 0.146417 | 0.146417 | 0.145379 | 0.07892 | 0 | 0.011924 | 0.238959 | 1,653 | 54 | 100 | 30.611111 | 0.753577 | 0.068361 | 0 | 0.052632 | 0 | 0 | 0.178315 | 0.026127 | 0 | 0 | 0 | 0 | 0.026316 | 1 | 0.052632 | false | 0 | 0.131579 | 0 | 0.236842 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b099d05e9015241447612382401295c1e700fde0 | 8,519 | py | Python | ball_catching/easy_catch/planner.py | shoefer/ball_catching | 46b2e95894659347b563123c1c23742437755993 | [
"MIT"
] | 1 | 2017-07-22T11:36:02.000Z | 2017-07-22T11:36:02.000Z | ball_catching/easy_catch/planner.py | shoefer/ball_catching | 46b2e95894659347b563123c1c23742437755993 | [
"MIT"
] | null | null | null | ball_catching/easy_catch/planner.py | shoefer/ball_catching | 46b2e95894659347b563123c1c23742437755993 | [
"MIT"
] | null | null | null | import casadi as ca
import casadi.tools as cat
__author__ = 'belousov'
class Planner:
# ========================================================================
# Simple planning
# ========================================================================
@classmethod
de... | 32.515267 | 78 | 0.471182 | 994 | 8,519 | 3.853119 | 0.173038 | 0.009922 | 0.013316 | 0.016971 | 0.68564 | 0.64047 | 0.608616 | 0.585117 | 0.553786 | 0.518016 | 0 | 0.013565 | 0.35098 | 8,519 | 261 | 79 | 32.639847 | 0.679146 | 0.190985 | 0 | 0.621622 | 0 | 0 | 0.06561 | 0.027741 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047297 | false | 0 | 0.013514 | 0 | 0.114865 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b09a552321fe21418a22b65a3d6582f20e8c9eea | 4,526 | py | Python | commtrack/links/gerrit.py | bregman-arie/commtrack | 5359958dd07d1b9e868ec5276da6dde22f982d07 | [
"Apache-2.0"
] | 3 | 2020-01-14T10:15:40.000Z | 2020-12-01T14:32:01.000Z | commtrack/links/gerrit.py | bregman-arie/commit-tracker | 5359958dd07d1b9e868ec5276da6dde22f982d07 | [
"Apache-2.0"
] | 2 | 2018-12-24T12:16:58.000Z | 2019-02-18T07:16:42.000Z | commtrack/links/gerrit.py | bregman-arie/commit-tracker | 5359958dd07d1b9e868ec5276da6dde22f982d07 | [
"Apache-2.0"
] | 1 | 2019-07-15T08:27:36.000Z | 2019-07-15T08:27:36.000Z | # Copyright 2019 Arie Bregman
#
# 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 agree... | 35.085271 | 89 | 0.617543 | 564 | 4,526 | 4.804965 | 0.338652 | 0.035424 | 0.02214 | 0.030996 | 0.089668 | 0.059041 | 0 | 0 | 0 | 0 | 0 | 0.006757 | 0.280601 | 4,526 | 128 | 90 | 35.359375 | 0.825553 | 0.236191 | 0 | 0.075949 | 0 | 0 | 0.077014 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101266 | false | 0 | 0.101266 | 0.012658 | 0.303797 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b09e1dcc4651bbea3e5a05f15eded482f3e5b822 | 2,097 | py | Python | src/leetcode_106_construct_binary_tree_from_inorder_and_postorder_traversal.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | null | null | null | src/leetcode_106_construct_binary_tree_from_inorder_and_postorder_traversal.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | null | null | null | src/leetcode_106_construct_binary_tree_from_inorder_and_postorder_traversal.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | null | null | null | # @l2g 106 python3
# [106] Construct Binary Tree from Inorder and Postorder Traversal
# Difficulty: Medium
# https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal
#
# Given two integer arrays inorder and postorder where inorder is the inorder traversal of a binary tree and postorder i... | 26.884615 | 163 | 0.637577 | 284 | 2,097 | 4.605634 | 0.341549 | 0.038226 | 0.058104 | 0.035168 | 0.144495 | 0.077982 | 0.077982 | 0.077982 | 0 | 0 | 0 | 0.036352 | 0.252265 | 2,097 | 77 | 164 | 27.233766 | 0.797832 | 0.532189 | 0 | 0 | 0 | 0 | 0.025532 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.136364 | 0 | 0.409091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b0a07ddea1fef76e6d524883928e67b18be43ea3 | 2,695 | py | Python | tornado/models/Session.py | maqg/wcrobot | 7d026c1a34362c5434105c27c5bd25f08c6fabe2 | [
"MIT"
] | null | null | null | tornado/models/Session.py | maqg/wcrobot | 7d026c1a34362c5434105c27c5bd25f08c6fabe2 | [
"MIT"
] | null | null | null | tornado/models/Session.py | maqg/wcrobot | 7d026c1a34362c5434105c27c5bd25f08c6fabe2 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
from conf.dbconfig import TB_SESSION
from core.err_code import DB_ERR, OCT_SUCCESS
from core.log import WARNING,DEBUG
from utils.commonUtil import getUuid, transToStr, transToObj
from utils.timeUtil import get_current_time, getStrTime
SESSION_EXPIRE_TIME = 86400 * 30... | 21.733871 | 83 | 0.640445 | 364 | 2,695 | 4.615385 | 0.217033 | 0.057143 | 0.035714 | 0.021429 | 0.223214 | 0.21131 | 0.146429 | 0.097619 | 0.097619 | 0.097619 | 0 | 0.011527 | 0.227458 | 2,695 | 123 | 84 | 21.910569 | 0.795389 | 0.017811 | 0 | 0.209302 | 0 | 0 | 0.151131 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081395 | false | 0 | 0.05814 | 0.011628 | 0.348837 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b0a17272de31b01f9feb7f36322ad30ad949bc47 | 1,379 | py | Python | python/equalSubstring.py | l0latgithub/codediary | a0327d2ee1137a542886d0af85129692711cd68a | [
"MIT"
] | null | null | null | python/equalSubstring.py | l0latgithub/codediary | a0327d2ee1137a542886d0af85129692711cd68a | [
"MIT"
] | null | null | null | python/equalSubstring.py | l0latgithub/codediary | a0327d2ee1137a542886d0af85129692711cd68a | [
"MIT"
] | null | null | null | class Solution:
def equalSubstring(self, s: str, t: str, maxCost: int) -> int:
"""
You are given two strings s and t of the same length.
You want to change s to t. Changing the i-th character
of s to i-th character of t costs |s[i] - t[i]| that is,
the absolute difference b... | 33.634146 | 75 | 0.503263 | 196 | 1,379 | 3.540816 | 0.372449 | 0.011527 | 0.074928 | 0.080692 | 0.319885 | 0.319885 | 0.26513 | 0.26513 | 0.26513 | 0.26513 | 0 | 0.012107 | 0.401015 | 1,379 | 41 | 76 | 33.634146 | 0.828087 | 0.602611 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b0a5f7e6a00c493dc8a6dfec6c9d4ed52c54782b | 1,165 | py | Python | prog_vae/cfg_parser/parser_demo.py | Hanjun-Dai/sdvae | bd26ea949c496419634fd2cf4802fc8e19a9194c | [
"MIT"
] | 70 | 2018-02-24T07:50:59.000Z | 2021-12-27T02:42:37.000Z | prog_vae/cfg_parser/parser_demo.py | Hanjun-Dai/sdvae | bd26ea949c496419634fd2cf4802fc8e19a9194c | [
"MIT"
] | 7 | 2018-05-31T00:50:19.000Z | 2021-09-28T11:58:22.000Z | prog_vae/cfg_parser/parser_demo.py | Hanjun-Dai/sdvae | bd26ea949c496419634fd2cf4802fc8e19a9194c | [
"MIT"
] | 19 | 2019-01-11T10:56:00.000Z | 2022-03-23T23:09:39.000Z | #!/usr/bin/env python2
import os
import nltk
import cfg_parser as parser
def main():
cfg_grammar_file = '../../dropbox/context_free_grammars/prog_leftskew.grammar'
grammar = parser.Grammar(cfg_grammar_file)
ts = parser.parse(
'v1=sin(v0);v2=v0*4;v3=v1/v2;v4=cos(v0);v5=v0*3;v6=sin(v1);v7=v3-v6;... | 24.270833 | 113 | 0.572532 | 173 | 1,165 | 3.745665 | 0.491329 | 0.023148 | 0.04321 | 0.027778 | 0.030864 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031765 | 0.270386 | 1,165 | 47 | 114 | 24.787234 | 0.730588 | 0.018026 | 0 | 0.057143 | 0 | 0.057143 | 0.334208 | 0.132108 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0.114286 | 0 | 0.142857 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b0a7fba1d79fe97862c63c08c78298201ee28e87 | 5,857 | py | Python | cpf/python/training/auto_trade/action_suggester.py | nQuantums/tips | cdea2a0e778d2de14cd69882f6273c872c366f03 | [
"MIT"
] | 1 | 2018-12-11T14:51:43.000Z | 2018-12-11T14:51:43.000Z | cpf/python/training/auto_trade/action_suggester.py | nQuantums/tips | cdea2a0e778d2de14cd69882f6273c872c366f03 | [
"MIT"
] | null | null | null | cpf/python/training/auto_trade/action_suggester.py | nQuantums/tips | cdea2a0e778d2de14cd69882f6273c872c366f03 | [
"MIT"
] | null | null | null | import typing
import numpy as np
import trade_environment
def detect_turning_points(values: np.ndarray, gap: int) -> typing.Tuple[np.ndarray, np.ndarray]:
"""指定数列の折返しポイントの地点を検出する.
Args:
values: 数列.
gap: 折返し判定閾値、この値を超えて反転したら折返しと判断する.
Returns:
(折返しインデックス, 検出途中に生成した一定値以上距離を保って付いてくる値の数列) のタプル.
"""
indices = ... | 30.035897 | 111 | 0.701383 | 785 | 5,857 | 5.008917 | 0.185987 | 0.039166 | 0.030519 | 0.038657 | 0.315107 | 0.294252 | 0.247965 | 0.228637 | 0.209308 | 0.200661 | 0 | 0.013444 | 0.199932 | 5,857 | 194 | 112 | 30.190722 | 0.825651 | 0.21803 | 0 | 0.320313 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054688 | false | 0 | 0.023438 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b0a9f0bcb8836537939df03b6e758465264c1d2b | 330 | py | Python | mesyparams.py | jkrueger1/stm_ethernet | f9fc87222a6a12f64d033c79a3858e16405ea524 | [
"Apache-2.0"
] | 2 | 2019-08-02T10:00:46.000Z | 2020-07-27T02:25:23.000Z | mesyparams.py | jkrueger1/stm_ethernet | f9fc87222a6a12f64d033c79a3858e16405ea524 | [
"Apache-2.0"
] | null | null | null | mesyparams.py | jkrueger1/stm_ethernet | f9fc87222a6a12f64d033c79a3858e16405ea524 | [
"Apache-2.0"
] | 1 | 2019-12-21T11:40:30.000Z | 2019-12-21T11:40:30.000Z | import sys
import socket
from mesylib import send_cmd
try:
addr = sys.argv[1]
rate = int(sys.argv[2])
except (ValueError, IndexError):
print('usage: mesyparams.py ipaddr rate')
sys.exit(1)
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
send_cmd(sock, addr, 0xF1F0, 'IH', rate, 0)
print('confi... | 20.625 | 55 | 0.70303 | 51 | 330 | 4.470588 | 0.627451 | 0.061404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025362 | 0.163636 | 330 | 15 | 56 | 22 | 0.800725 | 0 | 0 | 0 | 0 | 0 | 0.139394 | 0 | 0 | 0 | 0.018182 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b0aa64db3850f67c0060437e85aa0d6cf6487d84 | 11,751 | py | Python | Data/Stocks/Stock.py | yangtx2009/finance | 5ba428f0495a16de89ea852e04e71bde8a00f9ba | [
"MIT"
] | null | null | null | Data/Stocks/Stock.py | yangtx2009/finance | 5ba428f0495a16de89ea852e04e71bde8a00f9ba | [
"MIT"
] | null | null | null | Data/Stocks/Stock.py | yangtx2009/finance | 5ba428f0495a16de89ea852e04e71bde8a00f9ba | [
"MIT"
] | null | null | null | # from bin.x64.iFinDPy import *
import urllib.request
import json
from abc import ABC
import matplotlib.pyplot as plt
import pandas as pd
import os
from bs4 import BeautifulSoup
import requests
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from datetime import datetime
import t... | 40.6609 | 117 | 0.580631 | 1,285 | 11,751 | 5.214786 | 0.255253 | 0.022385 | 0.031339 | 0.011342 | 0.187882 | 0.167288 | 0.119684 | 0.07193 | 0.039994 | 0.024474 | 0 | 0.011903 | 0.29223 | 11,751 | 288 | 118 | 40.802083 | 0.793796 | 0.047996 | 0 | 0.150442 | 0 | 0.013274 | 0.133762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057522 | false | 0 | 0.084071 | 0 | 0.163717 | 0.097345 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b0ad7ea0b53d5e610e64b17510e844460d79cd69 | 947 | py | Python | daily_learn/basic_pdf.py | thc128/limudScripts | 4d44f82b00b9cd7bca58b56cbc0fba08914c89a1 | [
"MIT"
] | null | null | null | daily_learn/basic_pdf.py | thc128/limudScripts | 4d44f82b00b9cd7bca58b56cbc0fba08914c89a1 | [
"MIT"
] | null | null | null | daily_learn/basic_pdf.py | thc128/limudScripts | 4d44f82b00b9cd7bca58b56cbc0fba08914c89a1 | [
"MIT"
] | null | null | null | from PyPDF2 import PdfFileWriter, PdfFileReader
import daily_learn
def read_book(path):
input1 = PdfFileReader(open(path, "rb"))
my_book=[]
for i in xrange(input1.getNumPages()):
my_book.append(input1.getPage(i))
return my_book
def write_files(output_file,folder,name):
j=0
output = []
... | 30.548387 | 75 | 0.674762 | 144 | 947 | 4.236111 | 0.416667 | 0.081967 | 0.078689 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041505 | 0.18585 | 947 | 30 | 76 | 31.566667 | 0.749676 | 0 | 0 | 0 | 0 | 0 | 0.063358 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.074074 | 0 | 0.185185 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b0ad9a13b69f0d5d58e42c1013c83345a35544ed | 592 | py | Python | firmware/polyfit.py | mfkiwl/OpenXcvr | 9bea6efd03cd246f16982f0fadafed684ac5ce1c | [
"MIT"
] | 14 | 2020-02-16T15:36:31.000Z | 2022-03-27T02:24:40.000Z | firmware/polyfit.py | mfkiwl/OpenXcvr | 9bea6efd03cd246f16982f0fadafed684ac5ce1c | [
"MIT"
] | 1 | 2020-11-23T16:16:33.000Z | 2020-11-23T16:16:33.000Z | firmware/polyfit.py | mfkiwl/OpenXcvr | 9bea6efd03cd246f16982f0fadafed684ac5ce1c | [
"MIT"
] | 4 | 2021-03-29T16:55:03.000Z | 2022-01-23T16:43:59.000Z | import numpy as np
from matplotlib import pyplot as plt
def function_to_approximate(x):
return 128*(np.sin((np.pi*x/256)-(0.5*np.pi))+1)
def calculate_poly(z, x):
return np.round(z[3]+x*(z[2]+x*(z[1]+z[0]*x)))
def quantize(z, fraction_bits):
q = 2.0**fraction_bits
z = z * q
z = np.round(z)
z ... | 17.939394 | 52 | 0.633446 | 119 | 592 | 3.067227 | 0.344538 | 0.076712 | 0.172603 | 0.120548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053061 | 0.172297 | 592 | 32 | 53 | 18.5 | 0.691837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.086957 | 0.086957 | 0.347826 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b0af71c36645d20ea3374d900810326b1c95631d | 11,718 | py | Python | apps/integration_tests/selenium_cases.py | CMSgov/bluebutton-web-server | 3e7bfb049a2b6bd64fdc4eeae7512b461ccbe682 | [
"Apache-2.0"
] | 25 | 2017-12-10T00:48:31.000Z | 2022-03-25T01:29:13.000Z | apps/integration_tests/selenium_cases.py | CMSgov/bluebutton-web-server | 3e7bfb049a2b6bd64fdc4eeae7512b461ccbe682 | [
"Apache-2.0"
] | 298 | 2017-12-05T05:53:32.000Z | 2022-03-21T19:29:03.000Z | apps/integration_tests/selenium_cases.py | CMSgov/bluebutton-web-server | 3e7bfb049a2b6bd64fdc4eeae7512b461ccbe682 | [
"Apache-2.0"
] | 31 | 2017-12-04T16:01:12.000Z | 2021-09-26T22:34:55.000Z | from django.conf import settings
from enum import Enum
from selenium.webdriver.common.by import By
class Action(Enum):
LOAD_PAGE = 1
FIND_CLICK = 2
FIND = 3
FIND_SEND_KEY = 4
CHECK = 5
BACK = 6
LOGIN = 7
CONTAIN_TEXT = 8
GET_SAMPLE_TOKEN_START = 9
SLEEP = 10
... | 32.55 | 115 | 0.628179 | 1,417 | 11,718 | 4.868031 | 0.12844 | 0.080023 | 0.055088 | 0.07002 | 0.695999 | 0.624529 | 0.613656 | 0.604523 | 0.592201 | 0.56915 | 0 | 0.016592 | 0.254224 | 11,718 | 359 | 116 | 32.640669 | 0.772743 | 0.014422 | 0 | 0.359517 | 0 | 0 | 0.299631 | 0.005847 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.012085 | 0.009063 | 0 | 0.042296 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b0b389c0a24e47982d3180a11aacaf35518b9f2f | 2,202 | py | Python | extraction/extract.py | ejuarezg/manga109-demos | 667da247683d467047a4bd03c171cb885a27c858 | [
"MIT"
] | 7 | 2021-03-17T04:26:27.000Z | 2021-04-21T16:48:40.000Z | extraction/extract.py | ejuarezg/manga109-demos | 667da247683d467047a4bd03c171cb885a27c858 | [
"MIT"
] | 4 | 2021-03-17T06:23:44.000Z | 2021-11-20T13:49:56.000Z | extraction/extract.py | ejuarezg/manga109-demos | 667da247683d467047a4bd03c171cb885a27c858 | [
"MIT"
] | 3 | 2021-03-17T05:50:40.000Z | 2021-04-26T02:12:12.000Z | import manga109api
import argparse
import os
import glob
from PIL import Image
def args_parser():
"""
:return: This function returns the manual input of book, annotation_type, and page count.
"""
parser = argparse.ArgumentParser()
parser.add_argument('--book', type=str, help='Name of b... | 44.938776 | 125 | 0.616712 | 286 | 2,202 | 4.576923 | 0.356643 | 0.034377 | 0.064935 | 0.015279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022975 | 0.248865 | 2,202 | 48 | 126 | 45.875 | 0.76844 | 0.040418 | 0 | 0 | 0 | 0 | 0.196193 | 0.013177 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0.125 | 0 | 0.175 | 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 |
b0b507ab20f27a7bafa822e29f3aeb4ce2fdbbe0 | 5,565 | py | Python | libraries/botframework-streaming/botframework/streaming/payloads/header_serializer.py | andreikop/botbuilder-python | 5e073e0c68fcbdc558133bdbd59a02453e597abe | [
"MIT"
] | 388 | 2019-05-07T15:53:21.000Z | 2022-03-28T20:29:46.000Z | libraries/botframework-streaming/botframework/streaming/payloads/header_serializer.py | andreikop/botbuilder-python | 5e073e0c68fcbdc558133bdbd59a02453e597abe | [
"MIT"
] | 1,286 | 2019-05-07T23:38:19.000Z | 2022-03-31T10:44:16.000Z | libraries/botframework-streaming/botframework/streaming/payloads/header_serializer.py | andreikop/botbuilder-python | 5e073e0c68fcbdc558133bdbd59a02453e597abe | [
"MIT"
] | 168 | 2019-05-14T20:23:25.000Z | 2022-03-16T06:49:14.000Z | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from uuid import UUID
from typing import List
from botframework.streaming.transport import TransportConstants
from .models import Header
_CHAR_TO_BINARY_INT = {val.decode(): list(val)[0] for val in [b".", b"\n", b"1", b"0"... | 32.54386 | 88 | 0.65319 | 592 | 5,565 | 5.883446 | 0.1875 | 0.107379 | 0.024117 | 0.030146 | 0.427218 | 0.294861 | 0.207867 | 0.052254 | 0 | 0 | 0 | 0.006393 | 0.269182 | 5,565 | 170 | 89 | 32.735294 | 0.850012 | 0.051932 | 0 | 0.125984 | 0 | 0 | 0.070642 | 0 | 0 | 0 | 0 | 0.005882 | 0 | 1 | 0.062992 | false | 0 | 0.031496 | 0.031496 | 0.267717 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b0b80838d88129627ee88f66e99dd63a8662a687 | 6,849 | py | Python | modules/tools/vehicle_calibration/preprocess.py | jzjonah/apollo | bc534789dc0548bf2d27f8d72fe255d5c5e4f951 | [
"Apache-2.0"
] | 22,688 | 2017-07-04T23:17:19.000Z | 2022-03-31T18:56:48.000Z | modules/tools/vehicle_calibration/preprocess.py | WJY-Mark/apollo | 463fb82f9e979d02dcb25044e60931293ab2dba0 | [
"Apache-2.0"
] | 4,804 | 2017-07-04T22:30:12.000Z | 2022-03-31T12:58:21.000Z | modules/tools/vehicle_calibration/preprocess.py | WJY-Mark/apollo | 463fb82f9e979d02dcb25044e60931293ab2dba0 | [
"Apache-2.0"
] | 9,985 | 2017-07-04T22:01:17.000Z | 2022-03-31T14:18:16.000Z | #!/usr/bin/env python3
###############################################################################
# Copyright 2020 The Apollo Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy... | 38.26257 | 79 | 0.604614 | 829 | 6,849 | 4.810615 | 0.268999 | 0.042126 | 0.017553 | 0.021314 | 0.181545 | 0.087262 | 0.07673 | 0.055667 | 0.053159 | 0 | 0 | 0.00825 | 0.274347 | 6,849 | 178 | 80 | 38.477528 | 0.794165 | 0.138414 | 0 | 0.085271 | 0 | 0.007752 | 0.15386 | 0.031299 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069767 | false | 0 | 0.085271 | 0 | 0.20155 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b0b9d81b27101a0308d3e4f404ef228daa426733 | 2,847 | py | Python | app/api/views.py | Olexsai2020/todo_app | f93faffefaaa78292930061867d4ecf772fa0add | [
"MIT"
] | null | null | null | app/api/views.py | Olexsai2020/todo_app | f93faffefaaa78292930061867d4ecf772fa0add | [
"MIT"
] | null | null | null | app/api/views.py | Olexsai2020/todo_app | f93faffefaaa78292930061867d4ecf772fa0add | [
"MIT"
] | null | null | null | from django.utils.decorators import method_decorator
from rest_framework import viewsets, status, generics
from rest_framework.response import Response
from rest_framework.permissions import AllowAny, IsAuthenticated
from rest_framework_jwt.authentication import JSONWebTokenAuthentication
from drf_yasg.utils import swa... | 36.5 | 75 | 0.736916 | 302 | 2,847 | 6.758278 | 0.307947 | 0.051445 | 0.058305 | 0.076433 | 0.385595 | 0.32876 | 0.291524 | 0.265066 | 0.181284 | 0.119549 | 0 | 0.002546 | 0.172111 | 2,847 | 77 | 76 | 36.974026 | 0.863386 | 0.031612 | 0 | 0.241379 | 0 | 0 | 0.157469 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.137931 | 0 | 0.396552 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b0bb6683aa9dcadc69b57d035b577b7055890820 | 8,244 | py | Python | django_sqltools/common.py | yang0/django_sqltools | 44e7208337815d2fe8361824d223ba518bf38221 | [
"MIT"
] | null | null | null | django_sqltools/common.py | yang0/django_sqltools | 44e7208337815d2fe8361824d223ba518bf38221 | [
"MIT"
] | null | null | null | django_sqltools/common.py | yang0/django_sqltools | 44e7208337815d2fe8361824d223ba518bf38221 | [
"MIT"
] | null | null | null | # _*_coding:utf-8_*_
from django.conf import settings
import uuid, os, json, logging, time, shutil
from datetime import datetime, date
from PIL import Image, ImageFile
import mimetypes
import re
logger = logging.getLogger(__name__)
def get_file_path(instance, filename):
folder = instance.__class__.__name__.lower... | 31.346008 | 149 | 0.548156 | 951 | 8,244 | 4.679285 | 0.211356 | 0.005393 | 0.02427 | 0.018876 | 0.337753 | 0.273933 | 0.200899 | 0.193708 | 0.142921 | 0.120899 | 0 | 0.024919 | 0.323387 | 8,244 | 262 | 150 | 31.465649 | 0.772858 | 0.10359 | 0 | 0.402116 | 0 | 0 | 0.022842 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.031746 | 0 | 0.248677 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b0bbdeb9ad8ad6836124106f4fb1414f2a3afe49 | 1,853 | py | Python | csn_searcher/loader.py | box-key/shanet | 6a2679a2dcb98dc4447af8eb453e297cd7585c79 | [
"Apache-2.0"
] | 2 | 2020-05-07T00:46:36.000Z | 2020-05-26T10:17:36.000Z | csn_searcher/loader.py | box-key/shanet | 6a2679a2dcb98dc4447af8eb453e297cd7585c79 | [
"Apache-2.0"
] | 2 | 2022-02-27T20:43:49.000Z | 2022-03-02T12:28:26.000Z | csn_searcher/loader.py | box-key/shanet | 6a2679a2dcb98dc4447af8eb453e297cd7585c79 | [
"Apache-2.0"
] | 1 | 2020-05-08T23:32:03.000Z | 2020-05-08T23:32:03.000Z | import requests
from tqdm import tqdm
from time import sleep
import os
class DataLoader():
"""
This class is used to download a pre-trained neural network model from url.
It stores model name and the link to a model.
"""
def __init__(self):
# url where model is stored
self.model_ur... | 38.604167 | 90 | 0.563411 | 243 | 1,853 | 4.18107 | 0.395062 | 0.05315 | 0.038386 | 0.050197 | 0.17126 | 0.17126 | 0.086614 | 0.086614 | 0.086614 | 0.086614 | 0 | 0.012998 | 0.335672 | 1,853 | 47 | 91 | 39.425532 | 0.812348 | 0.201295 | 0 | 0.133333 | 0 | 0.033333 | 0.143349 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.233333 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b0c2140b35a3bb72f96b2eb82a9fe58420a9a0cf | 4,419 | py | Python | airflow/providers/tesouro_gerencial/hooks/tesouro_gerencial.py | CarlosAdp/airflow-providers-tesouro-gerencial | f48ba321a5152dfd9b72107f640c66b217d59b9d | [
"MIT"
] | null | null | null | airflow/providers/tesouro_gerencial/hooks/tesouro_gerencial.py | CarlosAdp/airflow-providers-tesouro-gerencial | f48ba321a5152dfd9b72107f640c66b217d59b9d | [
"MIT"
] | null | null | null | airflow/providers/tesouro_gerencial/hooks/tesouro_gerencial.py | CarlosAdp/airflow-providers-tesouro-gerencial | f48ba321a5152dfd9b72107f640c66b217d59b9d | [
"MIT"
] | null | null | null | from enum import Enum
from typing import List, Union
from urllib.parse import urljoin
import warnings
from airflow.exceptions import AirflowException
from airflow.providers.siafi.hooks.siafi import SIAFIHook
import requests
warnings.filterwarnings('ignore', message='Unverified HTTPS request')
class TesouroGerencial... | 32.977612 | 76 | 0.605114 | 449 | 4,419 | 5.861915 | 0.36971 | 0.015957 | 0.025076 | 0.019377 | 0.12652 | 0.081687 | 0.081687 | 0.053571 | 0.053571 | 0 | 0 | 0.003153 | 0.282191 | 4,419 | 133 | 77 | 33.225564 | 0.826608 | 0.167006 | 0 | 0.101124 | 0 | 0 | 0.209904 | 0.00816 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044944 | false | 0 | 0.078652 | 0.011236 | 0.202247 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b0c27fbbd572c04635510356965faf39003f2e6a | 843 | py | Python | offensive_nn/models/offensive_lstm_model.py | TharinduDR/OffensiveNN | 336b377c44a7067d2e23ca4a8d331ce7f99157cc | [
"Apache-2.0"
] | null | null | null | offensive_nn/models/offensive_lstm_model.py | TharinduDR/OffensiveNN | 336b377c44a7067d2e23ca4a8d331ce7f99157cc | [
"Apache-2.0"
] | null | null | null | offensive_nn/models/offensive_lstm_model.py | TharinduDR/OffensiveNN | 336b377c44a7067d2e23ca4a8d331ce7f99157cc | [
"Apache-2.0"
] | null | null | null | import tensorflow as tf
from tensorflow import keras
from tensorflow.keras import layers
class OffensiveLSTMModel:
def __init__(self, args, embedding_matrix):
emb = layers.Embedding(args.max_features, args.embed_size, trainable=False,
name="embedding_layer")
inp = t... | 42.15 | 93 | 0.664294 | 110 | 843 | 4.936364 | 0.472727 | 0.051565 | 0.044199 | 0.095764 | 0.117864 | 0.117864 | 0 | 0 | 0 | 0 | 0 | 0.017778 | 0.199288 | 843 | 19 | 94 | 44.368421 | 0.786667 | 0 | 0 | 0 | 0 | 0 | 0.097272 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.2 | 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 |
b0c2f5602738aeed19e70471739de83515468bde | 566 | py | Python | examples/date-format.py | adamantonio/gooeypie | a60416a6a317f83e89541d6fdcac3559ace87cac | [
"MIT"
] | 1 | 2021-11-20T16:28:47.000Z | 2021-11-20T16:28:47.000Z | examples/date-format.py | adamantonio/gooeypie | a60416a6a317f83e89541d6fdcac3559ace87cac | [
"MIT"
] | null | null | null | examples/date-format.py | adamantonio/gooeypie | a60416a6a317f83e89541d6fdcac3559ace87cac | [
"MIT"
] | null | null | null | import gooeypie as gp
date_formats = ['28/8/20', '8/28/20', '28/08/2020', '08/28/2020', '2020-08-28',
'28-Aug-2020', 'Friday, August 28, 2020', 'Friday, 28 August, 2020',
'August 28, 2020', '28 August, 2020']
app = gp.GooeyPieApp('Time and date')
app.width = 250
label = gp.Label(app, ... | 25.727273 | 84 | 0.627208 | 98 | 566 | 3.561224 | 0.387755 | 0.051576 | 0.045845 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168831 | 0.183746 | 566 | 21 | 85 | 26.952381 | 0.58658 | 0 | 0 | 0 | 0 | 0 | 0.289753 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b0c3406b4cbc0b4a885af800bf5115dce13d7dd2 | 1,131 | py | Python | color_contrast_calc/converters/grayscale.py | nico-hn/color_contrast_calc_py | 92cf9eecbd8e5d000f284ec786103cb719df6026 | [
"MIT"
] | 2 | 2020-10-01T11:50:30.000Z | 2020-10-11T20:59:06.000Z | color_contrast_calc/converters/grayscale.py | nico-hn/color_contrast_calc_py | 92cf9eecbd8e5d000f284ec786103cb719df6026 | [
"MIT"
] | null | null | null | color_contrast_calc/converters/grayscale.py | nico-hn/color_contrast_calc_py | 92cf9eecbd8e5d000f284ec786103cb719df6026 | [
"MIT"
] | 1 | 2019-06-18T02:08:06.000Z | 2019-06-18T02:08:06.000Z | # https://www.w3.org/TR/filter-effects/#funcdef-grayscale
# https://www.w3.org/TR/filter-effects/#grayscaleEquivalent
# https://www.w3.org/TR/SVG/filters.html#feColorMatrixElement
import numpy as np
from . import rgb_clamp
_CONST_PART = np.array([[0.2126, 0.7152, 0.0722],
[0.2126, 0.7152, 0.... | 29.763158 | 65 | 0.612732 | 169 | 1,131 | 4.011834 | 0.390533 | 0.036873 | 0.044248 | 0.076696 | 0.306785 | 0.284661 | 0.284661 | 0.196165 | 0.196165 | 0.066372 | 0 | 0.11949 | 0.237843 | 1,131 | 37 | 66 | 30.567568 | 0.667053 | 0.465959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.153846 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b0c4a12b9a13aa11699c0f68047498ec12883a9b | 845 | py | Python | dictionary.py | LordGhostX/ECXBotsMastery | 199000f8c24b30734869e8bbdebb5901604cd0fa | [
"MIT"
] | 2 | 2021-07-17T20:09:24.000Z | 2021-08-09T13:48:38.000Z | dictionary.py | LordGhostX/ECXBotsMastery | 199000f8c24b30734869e8bbdebb5901604cd0fa | [
"MIT"
] | null | null | null | dictionary.py | LordGhostX/ECXBotsMastery | 199000f8c24b30734869e8bbdebb5901604cd0fa | [
"MIT"
] | 1 | 2021-07-17T00:12:07.000Z | 2021-07-17T00:12:07.000Z | import requests
from bs4 import BeautifulSoup
def find_word_meaning(word):
r = requests.get(f"https://www.dictionary.com/browse/{word}")
if r.status_code == 200:
page = BeautifulSoup(r.text, "html.parser")
luna_pos = page.find("span", {"class": "luna-pos"}).text
word_meaning = f"{word}... | 33.8 | 94 | 0.620118 | 112 | 845 | 4.5 | 0.544643 | 0.130952 | 0.059524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024427 | 0.224852 | 845 | 24 | 95 | 35.208333 | 0.745038 | 0 | 0 | 0 | 0 | 0 | 0.32071 | 0.036686 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.105263 | 0 | 0.315789 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b0c77869671d10fbedbed340a7a7c9b4e8912459 | 2,993 | py | Python | ocdsapi_outlet/utils.py | openprocurement/ocdsapi_outlet | e5aab856fbb833d34c4d56831cad7c09d7719a5e | [
"Apache-2.0"
] | null | null | null | ocdsapi_outlet/utils.py | openprocurement/ocdsapi_outlet | e5aab856fbb833d34c4d56831cad7c09d7719a5e | [
"Apache-2.0"
] | 6 | 2019-12-26T16:43:14.000Z | 2022-03-21T22:16:25.000Z | ocdsapi_outlet/utils.py | openprocurement/ocdsapi_outlet | e5aab856fbb833d34c4d56831cad7c09d7719a5e | [
"Apache-2.0"
] | 1 | 2018-07-27T16:19:27.000Z | 2018-07-27T16:19:27.000Z | """ utils.py - helper functions """
import logging
import functools
import operator
from repoze.lru import lru_cache
from gevent import spawn
from gevent.subprocess import Popen, PIPE
try:
import boto3
except ImportError:
boto3 = None
def dump(app, logger):
"""
Run dump script as separate process
... | 25.364407 | 74 | 0.559973 | 335 | 2,993 | 4.901493 | 0.397015 | 0.01827 | 0.021924 | 0.024361 | 0.073082 | 0.073082 | 0.048721 | 0.048721 | 0.048721 | 0 | 0 | 0.003791 | 0.295022 | 2,993 | 117 | 75 | 25.581197 | 0.774408 | 0.051453 | 0 | 0.084211 | 0 | 0 | 0.08935 | 0 | 0 | 0 | 0 | 0.008547 | 0 | 1 | 0.073684 | false | 0.010526 | 0.084211 | 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 |
b0c97b770b216db5c6e4a8a50cbc39cc9f11e3a2 | 1,467 | py | Python | venv/lib/python2.7/site-packages/daemon/pidfile.py | mutaihillary/mycalculator | 55685dd7c968861f18ae0701129f5af2bc682d67 | [
"MIT"
] | null | null | null | venv/lib/python2.7/site-packages/daemon/pidfile.py | mutaihillary/mycalculator | 55685dd7c968861f18ae0701129f5af2bc682d67 | [
"MIT"
] | 7 | 2021-02-08T20:22:15.000Z | 2022-03-11T23:19:41.000Z | venv/lib/python2.7/site-packages/daemon/pidfile.py | mutaihillary/mycalculator | 55685dd7c968861f18ae0701129f5af2bc682d67 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# daemon/pidfile.py
# Part of python-daemon, an implementation of PEP 3143.
#
# Copyright © 2008–2010 Ben Finney <ben+python@benfinney.id.au>
#
# This is free software: you may copy, modify, and/or distribute this work
# under the terms of the Python Software Foundation License, version 2 or
# ... | 34.116279 | 75 | 0.691888 | 185 | 1,467 | 5.4 | 0.52973 | 0.084084 | 0.054054 | 0.054054 | 0.082082 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013021 | 0.214724 | 1,467 | 42 | 76 | 34.928571 | 0.852431 | 0.560327 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b0c9cd685e3c553d9d38e5a73ed8bdcbc7f01131 | 11,258 | py | Python | zazi/apps/mpesa/utils/transaction.py | felixcheruiyot/zazi-core-banking | 0a2dac42235adcac3cf8c114961e407f54844223 | [
"Apache-2.0"
] | null | null | null | zazi/apps/mpesa/utils/transaction.py | felixcheruiyot/zazi-core-banking | 0a2dac42235adcac3cf8c114961e407f54844223 | [
"Apache-2.0"
] | 1 | 2021-08-20T06:41:57.000Z | 2021-08-20T06:41:57.000Z | zazi/apps/mpesa/utils/transaction.py | felixcheruiyot/zazi-core-banking | 0a2dac42235adcac3cf8c114961e407f54844223 | [
"Apache-2.0"
] | null | null | null | import logging
from django.db import transaction as db_transaction
from django.conf import settings
from django.utils import timezone
from django.urls import reverse_lazy
from zazi.core.utils import get_absolute_url, get_encrypted_text
from .. import api
from ..models import (
MpesaAccount,
MpesaAccountBala... | 38.162712 | 119 | 0.669213 | 1,090 | 11,258 | 6.526606 | 0.151376 | 0.049199 | 0.018977 | 0.022772 | 0.535704 | 0.479899 | 0.429013 | 0.361681 | 0.310655 | 0.271437 | 0 | 0.001203 | 0.261325 | 11,258 | 294 | 120 | 38.292517 | 0.854257 | 0 | 0 | 0.478599 | 0 | 0 | 0.091232 | 0.033757 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023346 | false | 0.003891 | 0.035019 | 0 | 0.081712 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b0d04d598a11b7e88dbf9f7dcbe48c016cf93d7f | 2,280 | py | Python | recsystem/embedder/post_embed.py | DOREMUS-ANR/recommender | 027e0dcb3639f03204c67777e2e10aac8505a70a | [
"MIT"
] | 2 | 2017-03-28T15:48:18.000Z | 2018-09-06T08:50:34.000Z | recsystem/embedder/post_embed.py | DOREMUS-ANR/recommender | 027e0dcb3639f03204c67777e2e10aac8505a70a | [
"MIT"
] | null | null | null | recsystem/embedder/post_embed.py | DOREMUS-ANR/recommender | 027e0dcb3639f03204c67777e2e10aac8505a70a | [
"MIT"
] | null | null | null | import os
import codecs
from shutil import copyfile
from gensim.models import KeyedVectors
from SPARQLWrapper import SPARQLWrapper, JSON
def ns_filter(embeddings_file, namespaces):
with open(embeddings_file) as file:
raw_embs = [l.strip() for l in file]
def belong_to_category(x):
for prefix i... | 31.232877 | 117 | 0.658333 | 316 | 2,280 | 4.60443 | 0.405063 | 0.09622 | 0.027491 | 0.030241 | 0.043986 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008385 | 0.215351 | 2,280 | 72 | 118 | 31.666667 | 0.804919 | 0.05614 | 0 | 0 | 0 | 0.019231 | 0.122383 | 0.010237 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.096154 | 0 | 0.269231 | 0.019231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b0d2ea6ce566b3bde93b03ec4fb9ce3e2422e739 | 6,292 | py | Python | clustering/track_visualization.py | XiaoSanGit/wda_tracker | b68ec0edb9daa6cc495815ba9ca549b36eec0369 | [
"MIT"
] | 24 | 2020-06-23T11:17:42.000Z | 2022-03-29T00:38:09.000Z | clustering/track_visualization.py | XiaoSanGit/wda_tracker | b68ec0edb9daa6cc495815ba9ca549b36eec0369 | [
"MIT"
] | 13 | 2020-07-07T03:59:02.000Z | 2022-03-30T04:28:06.000Z | clustering/track_visualization.py | XiaoSanGit/wda_tracker | b68ec0edb9daa6cc495815ba9ca549b36eec0369 | [
"MIT"
] | 9 | 2021-02-14T07:11:05.000Z | 2021-12-23T12:47:08.000Z |
import os
from tqdm import tqdm
import pandas as pd
from utilities.helper import get_bbox_middle_pos,drawBoundingBox
from clustering.clustering_utils import get_person_id_to_track,get_groundtruth_person_id_to_track
import cv2
from utilities.helper import *
from utilities.pandas_loader import load_csv
class Track_Visu... | 33.827957 | 139 | 0.665607 | 814 | 6,292 | 4.706388 | 0.179361 | 0.050117 | 0.036544 | 0.046985 | 0.381885 | 0.309058 | 0.22344 | 0.197076 | 0.142522 | 0.125816 | 0 | 0.010187 | 0.251113 | 6,292 | 185 | 140 | 34.010811 | 0.802844 | 0 | 0 | 0.057692 | 0 | 0 | 0.114785 | 0.08744 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086538 | false | 0 | 0.076923 | 0 | 0.221154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b0d30d1f5e1fa7c7ff3fa8d3f5343770ef436fc7 | 445 | py | Python | Src/ZenCoding/zencoding/coda.py | JetBrains/ReSharperPowerToys | 352d61acba98d71b4c7a63a1def9fe550b7a0e57 | [
"Apache-2.0"
] | 18 | 2015-01-22T18:18:17.000Z | 2021-11-08T09:49:53.000Z | Src/ZenCoding/zencoding/coda.py | JetBrains/ReSharperPowerToys | 352d61acba98d71b4c7a63a1def9fe550b7a0e57 | [
"Apache-2.0"
] | null | null | null | Src/ZenCoding/zencoding/coda.py | JetBrains/ReSharperPowerToys | 352d61acba98d71b4c7a63a1def9fe550b7a0e57 | [
"Apache-2.0"
] | 8 | 2015-05-15T19:34:04.000Z | 2022-03-19T07:00:15.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Coda plug-in
Created on Apr 20, 2009
@author: sergey
'''
import os
from zencoding import zen_core
from zencoding.settings import zen_settings
zen_core.newline = os.getenv('CODA_LINE_ENDING', zen_core.newline)
zen_core.insertion_point = '$$IP$$'
cur_line = 'hello wor... | 19.347826 | 66 | 0.74382 | 74 | 445 | 4.22973 | 0.581081 | 0.134185 | 0.089457 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023136 | 0.125843 | 445 | 22 | 67 | 20.227273 | 0.781491 | 0.21573 | 0 | 0 | 0 | 0 | 0.114706 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.3 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b0d43b5a5e1054b6e91b5c04e0aefe730f1c03da | 958 | py | Python | Scripts/simulation/world/rentable_lot_tuning.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | null | null | null | Scripts/simulation/world/rentable_lot_tuning.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | null | null | null | Scripts/simulation/world/rentable_lot_tuning.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | null | null | null | # uncompyle6 version 3.7.4
# Python bytecode 3.7 (3394)
# Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)]
# Embedded file name: T:\InGame\Gameplay\Scripts\Server\world\rentable_lot_tuning.py
# Compiled at: 2014-09-09 00:07:16
# Size of source mod 2**32: 925 byte... | 50.421053 | 116 | 0.685804 | 138 | 958 | 4.695652 | 0.615942 | 0.009259 | 0.046296 | 0.067901 | 0.138889 | 0.138889 | 0.138889 | 0.138889 | 0.138889 | 0.138889 | 0 | 0.09247 | 0.209812 | 958 | 19 | 117 | 50.421053 | 0.76354 | 0.322547 | 0 | 0.166667 | 0 | 0 | 0.346812 | 0.032659 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 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 |
b0d58a0cf4141bba29b28d7f0ec53b0cea18f50b | 7,099 | py | Python | grin-py/utils/MWGP_earningsEstimate.py | JPaulMora/grin-pool | c980fdbcae4edeaa661d36d5b6da6f7a49beed05 | [
"Apache-2.0"
] | null | null | null | grin-py/utils/MWGP_earningsEstimate.py | JPaulMora/grin-pool | c980fdbcae4edeaa661d36d5b6da6f7a49beed05 | [
"Apache-2.0"
] | null | null | null | grin-py/utils/MWGP_earningsEstimate.py | JPaulMora/grin-pool | c980fdbcae4edeaa661d36d5b6da6f7a49beed05 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
# Copyright 2018 Blade M. Doyle
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 35.318408 | 162 | 0.646993 | 861 | 7,099 | 5.311266 | 0.317073 | 0.013995 | 0.022742 | 0.006998 | 0.105839 | 0.076974 | 0.060354 | 0.060354 | 0.021867 | 0.021867 | 0 | 0.02341 | 0.21172 | 7,099 | 200 | 163 | 35.495 | 0.793781 | 0.170306 | 0 | 0.219178 | 0 | 0 | 0.224309 | 0.015193 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020548 | false | 0 | 0.047945 | 0.006849 | 0.075342 | 0.239726 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b0d7ebc0b913cd1eef91933fd5bfa8848faaf124 | 10,700 | py | Python | cpd_analysis.py | jfmalloy1/Patents | 734e62497acfbd9be42980b310379979415ab924 | [
"MIT"
] | null | null | null | cpd_analysis.py | jfmalloy1/Patents | 734e62497acfbd9be42980b310379979415ab924 | [
"MIT"
] | null | null | null | cpd_analysis.py | jfmalloy1/Patents | 734e62497acfbd9be42980b310379979415ab924 | [
"MIT"
] | null | null | null | # import igraph as ig
# import numpy as np
import pickle
import pandas as pd
from tqdm import tqdm
import os
import heapq
import scipy.stats as stats
from random import sample
def build_cpd_df(fp):
""" Takes 29 separate compound data files and combines them into a single pandas dataframe for ease of access
A... | 36.148649 | 113 | 0.622056 | 1,439 | 10,700 | 4.455872 | 0.246699 | 0.043668 | 0.021834 | 0.028696 | 0.279008 | 0.218497 | 0.171085 | 0.144261 | 0.097473 | 0.097473 | 0 | 0.048551 | 0.255047 | 10,700 | 295 | 114 | 36.271186 | 0.755865 | 0.330654 | 0 | 0.084967 | 0 | 0.039216 | 0.263647 | 0.143293 | 0 | 0 | 0 | 0.00339 | 0 | 1 | 0.045752 | false | 0 | 0.045752 | 0 | 0.098039 | 0.052288 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b0d801bb287e5fc7e3b701b27f659bf6cdfd48e3 | 303 | py | Python | src/tests/pyfrc_test.py | SpookyWoogin/robot2018 | a8ddf6a64b883904b15031e0ae13b2056faed4f5 | [
"MIT"
] | 1 | 2018-10-24T21:43:00.000Z | 2018-10-24T21:43:00.000Z | src/tests/pyfrc_test.py | SpookyWoogin/robot2018 | a8ddf6a64b883904b15031e0ae13b2056faed4f5 | [
"MIT"
] | 1 | 2018-03-10T01:25:47.000Z | 2018-03-10T03:33:36.000Z | src/tests/pyfrc_test.py | SpookyWoogin/robot2018 | a8ddf6a64b883904b15031e0ae13b2056faed4f5 | [
"MIT"
] | 6 | 2018-01-13T17:54:31.000Z | 2018-02-13T23:46:50.000Z | def test_drivetrain_nt(Notifier):
import networktables
from robot import Rockslide
robot = Rockslide()
robot.robotInit()
drivetrain = robot.drivetrain
drivetrain.periodic()
assert networktables.NetworkTables.getTable("/Drivetrain/Left").getNumber("Position", None) == 0.0
| 25.25 | 102 | 0.726073 | 31 | 303 | 7.032258 | 0.612903 | 0.12844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007968 | 0.171617 | 303 | 11 | 103 | 27.545455 | 0.860558 | 0 | 0 | 0 | 0 | 0 | 0.079208 | 0 | 0 | 0 | 0 | 0 | 0.125 | 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 |
b0da89a6bb254fa22755c06a1a618c46fe33ed81 | 3,775 | py | Python | media/limited_series.py | FellowHashbrown/MediaQueue | 0844649709698c66b7ed14e70436b3830ab18627 | [
"MIT"
] | null | null | null | media/limited_series.py | FellowHashbrown/MediaQueue | 0844649709698c66b7ed14e70436b3830ab18627 | [
"MIT"
] | null | null | null | media/limited_series.py | FellowHashbrown/MediaQueue | 0844649709698c66b7ed14e70436b3830ab18627 | [
"MIT"
] | null | null | null | import os
from json import dump
from typing import List
from media import Episode, Show
from options import options
class LimitedSeries(Show):
"""A LimitedSeries is a Show that has only 1 Season of Episodes.
In this, only the Episodes need to be specified
:param name: The name of this LimitedSeries
... | 45.481928 | 125 | 0.625166 | 464 | 3,775 | 4.931034 | 0.232759 | 0.042832 | 0.034965 | 0.03715 | 0.225524 | 0.191434 | 0.141608 | 0.11014 | 0.068182 | 0.034091 | 0 | 0.000712 | 0.255629 | 3,775 | 82 | 126 | 46.036585 | 0.813523 | 0.279205 | 0 | 0 | 0 | 0 | 0.133663 | 0.077304 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.098039 | 0.019608 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b0dc67e2fb068fd1e2da407f360e7696247d97ff | 8,104 | py | Python | api.py | gitroulette/gitroulette | 0c53cdf843b202efa7d0e7a3fcbcb0a7bc7f0b0b | [
"Apache-2.0"
] | null | null | null | api.py | gitroulette/gitroulette | 0c53cdf843b202efa7d0e7a3fcbcb0a7bc7f0b0b | [
"Apache-2.0"
] | null | null | null | api.py | gitroulette/gitroulette | 0c53cdf843b202efa7d0e7a3fcbcb0a7bc7f0b0b | [
"Apache-2.0"
] | null | null | null | import json
import random
from flask import Blueprint
from flask import request
from flask import session
from sqlalchemy import and_
from sqlalchemy import or_
from urlparse import urlparse
# from flask import current_app
from gitRoulette import auth
from gitRoulette import models
from gitRoulette.utils import reque... | 32.15873 | 101 | 0.659057 | 1,080 | 8,104 | 4.750926 | 0.167593 | 0.077958 | 0.043072 | 0.050672 | 0.479828 | 0.415708 | 0.330345 | 0.263302 | 0.233093 | 0.207952 | 0 | 0.001876 | 0.210513 | 8,104 | 251 | 102 | 32.286853 | 0.800094 | 0.083292 | 0 | 0.287356 | 0 | 0 | 0.110871 | 0.030213 | 0 | 0 | 0 | 0.003984 | 0 | 1 | 0.08046 | false | 0 | 0.063218 | 0 | 0.235632 | 0.022989 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b0ddf344239a48edf5e77538da1c1fa89461c624 | 1,556 | py | Python | translator/logger.py | dNationCloud/jsonnet-translator | 94d9d1b56d21a357fcab8adc555aa4630234d19c | [
"Apache-2.0"
] | 7 | 2021-04-14T11:30:03.000Z | 2021-05-17T11:26:50.000Z | translator/logger.py | dNationCloud/jsonnet-translator | 94d9d1b56d21a357fcab8adc555aa4630234d19c | [
"Apache-2.0"
] | 10 | 2021-01-14T07:18:55.000Z | 2021-10-01T12:56:39.000Z | translator/logger.py | dNationCloud/kubernetes-jsonnet-translator | 94d9d1b56d21a357fcab8adc555aa4630234d19c | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2020 The dNation Jsonnet Translator Authors. All Rights Reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | 27.785714 | 77 | 0.737147 | 202 | 1,556 | 5.60396 | 0.539604 | 0.053004 | 0.022968 | 0.028269 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007037 | 0.178021 | 1,556 | 55 | 78 | 28.290909 | 0.87803 | 0.482648 | 0 | 0 | 0 | 0 | 0.086728 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.181818 | 0.045455 | 0.409091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b0e1dfb1774454a45bec65b7f4f0e603d7f1da9e | 13,580 | py | Python | lib/Protocol/EmNetconfProtocol.py | multi-service-fabric/element-manager | e550d1b5ec9419f1fb3eb6e058ce46b57c92ee2f | [
"Apache-2.0"
] | null | null | null | lib/Protocol/EmNetconfProtocol.py | multi-service-fabric/element-manager | e550d1b5ec9419f1fb3eb6e058ce46b57c92ee2f | [
"Apache-2.0"
] | null | null | null | lib/Protocol/EmNetconfProtocol.py | multi-service-fabric/element-manager | e550d1b5ec9419f1fb3eb6e058ce46b57c92ee2f | [
"Apache-2.0"
] | 1 | 2020-04-02T01:17:43.000Z | 2020-04-02T01:17:43.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright(c) 2019 Nippon Telegraph and Telephone Corporation
# Filename: EmNetconfProtocol.py
'''
Protocol processing section (Netconf)
'''
import traceback
import time
import json
from ncclient import manager
from ncclient import operations
import GlobalModul... | 37.513812 | 80 | 0.546318 | 1,295 | 13,580 | 5.439382 | 0.169884 | 0.101363 | 0.133447 | 0.149063 | 0.495031 | 0.422487 | 0.367121 | 0.266752 | 0.209966 | 0.192788 | 0 | 0.00828 | 0.386377 | 13,580 | 361 | 81 | 37.617729 | 0.837033 | 0.189912 | 0 | 0.309179 | 0 | 0 | 0.144065 | 0.030246 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024155 | false | 0.009662 | 0.043478 | 0 | 0.144928 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b0e21640f79315d5678d2b1eb1562ded16d33050 | 1,935 | py | Python | policy/openbot/callbacks.py | januxnet/OpenBot | 04768161a552281e1e14acde98589a64628b86c7 | [
"MIT"
] | 1,971 | 2020-08-24T22:24:24.000Z | 2021-07-24T18:43:39.000Z | policy/openbot/callbacks.py | FlorentGuinier/OpenBot | 087b1c89fd61ee5e644a0b042c9e5f25540caeae | [
"MIT"
] | 145 | 2020-08-26T23:00:28.000Z | 2021-07-26T22:00:06.000Z | policy/openbot/callbacks.py | FlorentGuinier/OpenBot | 087b1c89fd61ee5e644a0b042c9e5f25540caeae | [
"MIT"
] | 342 | 2020-08-26T10:39:43.000Z | 2021-07-26T12:12:10.000Z | # Created by Matthias Mueller - Intel Intelligent Systems Lab - 2020
import os
import tensorflow as tf
def checkpoint_cb(checkpoint_path, steps_per_epoch=-1, num_epochs=10):
# Create a callback that saves the model's weights every epochs
checkpoint_callback = tf.keras.callbacks.ModelCheckpoint(
filep... | 26.148649 | 88 | 0.67907 | 247 | 1,935 | 5.089069 | 0.421053 | 0.033413 | 0.076372 | 0.095465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030976 | 0.232558 | 1,935 | 73 | 89 | 26.506849 | 0.815488 | 0.09199 | 0 | 0.109091 | 0 | 0 | 0.038791 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.127273 | false | 0 | 0.036364 | 0.018182 | 0.327273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b0e2cf5bd2ba70f93247b07879264830fda0661a | 856 | py | Python | generate_landmarks.py | PandaWhoCodes/chutya_rating | 88f73e37c517c1d68ebf518b40cf93667f39991b | [
"MIT"
] | null | null | null | generate_landmarks.py | PandaWhoCodes/chutya_rating | 88f73e37c517c1d68ebf518b40cf93667f39991b | [
"MIT"
] | null | null | null | generate_landmarks.py | PandaWhoCodes/chutya_rating | 88f73e37c517c1d68ebf518b40cf93667f39991b | [
"MIT"
] | null | null | null | import sys
import os
import dlib
import glob
from skimage import io
predictor_path = "data/shape_predictor_68_face_landmarks.dat"
faces_folder_path = "data/pics"
detector = dlib.get_frontal_face_detector()
predictor = dlib.shape_predictor(predictor_path)
def sortKeyFunc(s):
return int(os.path.basename(s)[:-4])
... | 25.939394 | 83 | 0.647196 | 130 | 856 | 4.1 | 0.476923 | 0.045028 | 0.056285 | 0.04878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010309 | 0.206776 | 856 | 32 | 84 | 26.75 | 0.774669 | 0 | 0 | 0 | 0 | 0 | 0.116822 | 0.049065 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.192308 | 0.038462 | 0.269231 | 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 |
b0e46a90af345235275bf125d7191b762e1c076e | 6,530 | py | Python | geoutils/misc.py | erikmannerfelt/GeoUtils | 96a044f7cca73f936e5b245a5e99e0d2102d279f | [
"BSD-3-Clause"
] | 23 | 2020-11-11T11:00:45.000Z | 2022-03-28T07:06:56.000Z | geoutils/misc.py | erikmannerfelt/GeoUtils | 96a044f7cca73f936e5b245a5e99e0d2102d279f | [
"BSD-3-Clause"
] | 223 | 2020-11-11T14:34:51.000Z | 2022-03-31T14:14:58.000Z | geoutils/misc.py | erikmannerfelt/GeoUtils | 96a044f7cca73f936e5b245a5e99e0d2102d279f | [
"BSD-3-Clause"
] | 14 | 2021-02-19T09:57:46.000Z | 2022-03-21T09:49:12.000Z | """Miscellaneous functions, mainly for testing."""
from __future__ import annotations
import functools
import warnings
import numpy as np
import rasterio as rio
import geoutils
from geoutils._typing import ArrayLike
from geoutils.georaster import Raster, RasterType
def array_equal(
array1: RasterType | ArrayLi... | 38.187135 | 113 | 0.622971 | 865 | 6,530 | 4.618497 | 0.277457 | 0.032541 | 0.017522 | 0.006758 | 0.033542 | 0.028536 | 0 | 0 | 0 | 0 | 0 | 0.014894 | 0.280245 | 6,530 | 170 | 114 | 38.411765 | 0.835106 | 0.456508 | 0 | 0.066667 | 0 | 0.013333 | 0.124359 | 0.032599 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.106667 | 0 | 0.28 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b0e7cd1cacbdf9713f6574f513c54cc6fc8be57b | 1,860 | py | Python | sorting/merge_sort.py | matuzalemmuller/algoritmos | 138e7c9747879a58fab48908541c175b8653da5c | [
"MIT"
] | null | null | null | sorting/merge_sort.py | matuzalemmuller/algoritmos | 138e7c9747879a58fab48908541c175b8653da5c | [
"MIT"
] | null | null | null | sorting/merge_sort.py | matuzalemmuller/algoritmos | 138e7c9747879a58fab48908541c175b8653da5c | [
"MIT"
] | null | null | null | # UFSC - Campus Trindade
# PPGEAS - Introducao a Algoritmos
# Matuzalem Muller dos Santos
# 2019/1
# Commented code is for calculating algorithm completixy and printing variables
from random import randint
import time
import sys
def merge_sort(array):
# n = 0
if len(array) > 1:
half = len(array) // 2
... | 26.956522 | 79 | 0.58172 | 234 | 1,860 | 4.354701 | 0.277778 | 0.070658 | 0.05103 | 0.050049 | 0.288518 | 0.245339 | 0.201178 | 0.180569 | 0.180569 | 0.104024 | 0 | 0.029482 | 0.325269 | 1,860 | 69 | 80 | 26.956522 | 0.78247 | 0.178495 | 0 | 0.261905 | 0 | 0 | 0.005291 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02381 | false | 0 | 0.071429 | 0 | 0.119048 | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b0e7ec352bf4d97e4861749ed21422b37bbf8b42 | 2,239 | py | Python | binsync/data/struct.py | zachsez/binsync | 39a53a84c640314adbf50e612177c4a56c43542c | [
"MIT"
] | 40 | 2021-05-09T03:24:46.000Z | 2022-03-31T23:01:50.000Z | binsync/data/struct.py | zachsez/binsync | 39a53a84c640314adbf50e612177c4a56c43542c | [
"MIT"
] | 53 | 2021-05-27T07:53:58.000Z | 2022-03-27T21:35:26.000Z | binsync/data/struct.py | zachsez/binsync | 39a53a84c640314adbf50e612177c4a56c43542c | [
"MIT"
] | 10 | 2021-05-13T22:09:38.000Z | 2022-03-31T23:51:27.000Z | import toml
from typing import List, Dict
from .artifact import Artifact
class StructMember(Artifact):
"""
Describes a struct member that corresponds to a struct.
"""
__slots__ = (
"last_change",
"member_name",
"offset",
"type",
"size",
)
def __init__... | 23.568421 | 102 | 0.590442 | 249 | 2,239 | 4.995984 | 0.216867 | 0.096463 | 0.038585 | 0.038585 | 0.16881 | 0.094855 | 0.051447 | 0 | 0 | 0 | 0 | 0 | 0.295668 | 2,239 | 94 | 103 | 23.819149 | 0.78884 | 0.03305 | 0 | 0.177419 | 0 | 0 | 0.065381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0 | 0.048387 | 0.016129 | 0.306452 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b0e84025ba8edc34831e545492abd9cc1b7a33c6 | 9,070 | py | Python | __init__.py | itsmepvr/list_images_to_excel | a4da3948a289c91cbcab90980364e989af7f1118 | [
"MIT"
] | null | null | null | __init__.py | itsmepvr/list_images_to_excel | a4da3948a289c91cbcab90980364e989af7f1118 | [
"MIT"
] | null | null | null | __init__.py | itsmepvr/list_images_to_excel | a4da3948a289c91cbcab90980364e989af7f1118 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Author: Venkata Ramana P
<github.com/itsmepvr>
List files to an excel sheet
"""
import os, glob
import sys
from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtWidgets import QMainWindow, QApplication, QFileDialog, QMessageBox
from PyQt5.QtWidgets import *
from PyQt5.QtGui import * ... | 43.190476 | 110 | 0.661632 | 1,027 | 9,070 | 5.765336 | 0.218111 | 0.056747 | 0.046107 | 0.041885 | 0.279851 | 0.25418 | 0.143726 | 0.143726 | 0.137815 | 0.063503 | 0 | 0.043872 | 0.208379 | 9,070 | 209 | 111 | 43.397129 | 0.78078 | 0.022381 | 0 | 0.148352 | 0 | 0.005495 | 0.160962 | 0.040777 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043956 | false | 0 | 0.054945 | 0 | 0.131868 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b0e8a0baacae15b6d64e13be86210039b28af7e3 | 1,215 | py | Python | exception.py | a2gs/pythonStudy | e790e223a05fd50a5bcaf1240ef24ff60f361cdd | [
"MIT"
] | null | null | null | exception.py | a2gs/pythonStudy | e790e223a05fd50a5bcaf1240ef24ff60f361cdd | [
"MIT"
] | null | null | null | exception.py | a2gs/pythonStudy | e790e223a05fd50a5bcaf1240ef24ff60f361cdd | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
class myBaseException(Exception):
def __init__(self, errNum, errMsg):
self.err = errNum
self.msg = errMsg
class myExcept_1(myBaseException):
def __init__(self):
super().__init__(13, "except 1")
class myExcept_2(myBaseException):
def __init__(self):
super().... | 19.918033 | 56 | 0.626337 | 187 | 1,215 | 3.909091 | 0.245989 | 0.114911 | 0.065663 | 0.073871 | 0.667579 | 0.667579 | 0.571819 | 0.571819 | 0.571819 | 0.571819 | 0 | 0.024038 | 0.144033 | 1,215 | 60 | 57 | 20.25 | 0.678846 | 0.035391 | 0 | 0.591837 | 0 | 0 | 0.332479 | 0.080342 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081633 | false | 0 | 0 | 0 | 0.163265 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b0e8e97e17556ae476f654f72b30433601cb2273 | 564 | py | Python | datachecker/processors/conditionals.py | jayclassless/datachecker | dd42b95f87eaaca428595fe5da639f9a710afba8 | [
"MIT"
] | null | null | null | datachecker/processors/conditionals.py | jayclassless/datachecker | dd42b95f87eaaca428595fe5da639f9a710afba8 | [
"MIT"
] | null | null | null | datachecker/processors/conditionals.py | jayclassless/datachecker | dd42b95f87eaaca428595fe5da639f9a710afba8 | [
"MIT"
] | null | null | null | from ..errors import DataRequiredError, ShortCircuitSignal
from ..util import processor
__all__ = (
'required',
'optional',
)
@processor
def required():
def required_processor(data):
if data is None:
raise DataRequiredError()
return data
return required_processor
@proce... | 18.8 | 58 | 0.64539 | 55 | 564 | 6.472727 | 0.345455 | 0.143258 | 0.08427 | 0.106742 | 0.140449 | 0.140449 | 0 | 0 | 0 | 0 | 0 | 0 | 0.287234 | 564 | 29 | 59 | 19.448276 | 0.885572 | 0 | 0 | 0.272727 | 0 | 0 | 0.028419 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b0eca7b772b3e9b8c51b6d9de56d789e01ceaffc | 226 | py | Python | python/args/multiple.py | jdurbin/sandbox | ee982f7386ae02c5937dbaee867710b5cd2cc71b | [
"MIT"
] | null | null | null | python/args/multiple.py | jdurbin/sandbox | ee982f7386ae02c5937dbaee867710b5cd2cc71b | [
"MIT"
] | null | null | null | python/args/multiple.py | jdurbin/sandbox | ee982f7386ae02c5937dbaee867710b5cd2cc71b | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import sys,argparse
parser = argparse.ArgumentParser()
parser.add_argument('-foo', nargs='+', help='foo values', required=False)
args = parser.parse_args()
for foo in args.foo:
print("Foo: ",foo) | 20.545455 | 73 | 0.70354 | 32 | 226 | 4.90625 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005051 | 0.123894 | 226 | 11 | 74 | 20.545455 | 0.787879 | 0.09292 | 0 | 0 | 0 | 0 | 0.097561 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b0ed0165784914f7dc8282f6f368dd72c90b41f2 | 1,594 | py | Python | src/parent_class/ParentPluralList.py | jameskabbes/parent_class | cecf938a2f9c66d8914967098b2064526bbec1c7 | [
"MIT"
] | null | null | null | src/parent_class/ParentPluralList.py | jameskabbes/parent_class | cecf938a2f9c66d8914967098b2064526bbec1c7 | [
"MIT"
] | null | null | null | src/parent_class/ParentPluralList.py | jameskabbes/parent_class | cecf938a2f9c66d8914967098b2064526bbec1c7 | [
"MIT"
] | null | null | null | from parent_class import ParentPlural
from typing import List
class ParentPluralList( ParentPlural ):
def __init__( self, att = 'list' ):
ParentPlural.__init__( self, att = att )
self.set_attr( self.att, [] )
def __len__( self ):
return len(self.get_list())
def __next__( self )... | 21.835616 | 95 | 0.527604 | 187 | 1,594 | 4.256684 | 0.320856 | 0.070352 | 0.055276 | 0.037688 | 0.090452 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001002 | 0.373902 | 1,594 | 73 | 96 | 21.835616 | 0.796593 | 0.0734 | 0 | 0.093023 | 0 | 0 | 0.00818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.186047 | false | 0 | 0.046512 | 0.046512 | 0.348837 | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b0ed1693b1a77aee2f28b941c3d753890e7d9408 | 1,454 | py | Python | prototypes/harvesters/cxidb_harvester.py | materials-data-facility/connect | 9ec5b61750bf6fa579bf3ec122f31880d3c049b8 | [
"Apache-2.0"
] | 1 | 2019-09-13T18:35:56.000Z | 2019-09-13T18:35:56.000Z | prototypes/harvesters/cxidb_harvester.py | materials-data-facility/connect_server | 9ec5b61750bf6fa579bf3ec122f31880d3c049b8 | [
"Apache-2.0"
] | 15 | 2018-11-01T18:08:11.000Z | 2021-12-06T17:55:03.000Z | prototypes/harvesters/cxidb_harvester.py | materials-data-facility/connect | 9ec5b61750bf6fa579bf3ec122f31880d3c049b8 | [
"Apache-2.0"
] | 1 | 2020-11-30T17:02:41.000Z | 2020-11-30T17:02:41.000Z | import requests
from json import dump
import os
from shutil import rmtree
from tqdm import tqdm
#Collects available data from CXIDB and saves to the given directory
#out_dir: The path to the directory (which will be created) for the data files
#existing_dir:
# -1: Remove out_dir if it exists
# 0: Error if... | 36.35 | 82 | 0.643741 | 221 | 1,454 | 4.072398 | 0.371041 | 0.086667 | 0.026667 | 0.028889 | 0.051111 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010949 | 0.246217 | 1,454 | 39 | 83 | 37.282051 | 0.810219 | 0.252407 | 0 | 0.076923 | 0 | 0 | 0.144847 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.192308 | 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 |
b0f238f39a9f9a11e1383c07dd66cb298f4de952 | 21,160 | py | Python | worldengine/cli/main.py | stefan-feltmann/lands | b2f1fc3aab4895763160a135d085a17dceb5f58e | [
"MIT"
] | null | null | null | worldengine/cli/main.py | stefan-feltmann/lands | b2f1fc3aab4895763160a135d085a17dceb5f58e | [
"MIT"
] | null | null | null | worldengine/cli/main.py | stefan-feltmann/lands | b2f1fc3aab4895763160a135d085a17dceb5f58e | [
"MIT"
] | null | null | null | import sys
from argparse import ArgumentParser
import os
import pickle
import random
import worldengine.generation as geo
from worldengine.common import array_to_matrix, set_verbose, print_verbose
from worldengine.draw import draw_ancientmap_on_file, draw_biome_on_file, draw_ocean_on_file, \
draw_precipitation_on_f... | 41.653543 | 98 | 0.57689 | 2,471 | 21,160 | 4.739781 | 0.148118 | 0.025359 | 0.023224 | 0.015369 | 0.277749 | 0.224129 | 0.176059 | 0.129525 | 0.088029 | 0.075564 | 0 | 0.008201 | 0.302694 | 21,160 | 507 | 99 | 41.7357 | 0.785564 | 0.065501 | 0 | 0.19202 | 0 | 0 | 0.256003 | 0.019696 | 0 | 0 | 0 | 0.001972 | 0 | 1 | 0.037406 | false | 0.002494 | 0.029925 | 0 | 0.104738 | 0.187032 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b0f3965138dd98bc050b860206e62e5235246cb0 | 1,432 | py | Python | poc-api-gateway/init-project.py | ronald-pineda/poc | b5bdb7eff963b251ea70cf02570c7d0b6cbef5e3 | [
"Apache-2.0"
] | null | null | null | poc-api-gateway/init-project.py | ronald-pineda/poc | b5bdb7eff963b251ea70cf02570c7d0b6cbef5e3 | [
"Apache-2.0"
] | null | null | null | poc-api-gateway/init-project.py | ronald-pineda/poc | b5bdb7eff963b251ea70cf02570c7d0b6cbef5e3 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import sys
import os
def create_project_folders(projectFolders):
create_folder(fullServicesFolder)
for projectIndex in range(len(projectFolders)):
projectFolder = fullServicesFolder + "/" + projectFolders[projectIndex]
create_folder(projectFolder)
open(projectFolder ... | 30.468085 | 109 | 0.672486 | 143 | 1,432 | 6.636364 | 0.41958 | 0.075869 | 0.03372 | 0.071654 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003484 | 0.198324 | 1,432 | 46 | 110 | 31.130435 | 0.823171 | 0.094274 | 0 | 0 | 0 | 0.032258 | 0.146285 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0.064516 | 0 | 0.16129 | 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 |
b0f74b9d843423b3b2ee4eb76a8944598071e925 | 10,133 | py | Python | lstm.py | mustyoshi/scikit-ta | c2a8f4ce2deadaa13d8bd8891aabd096b397e330 | [
"MIT"
] | 1 | 2018-03-12T19:50:14.000Z | 2018-03-12T19:50:14.000Z | lstm.py | mustyoshi/scikit-ta | c2a8f4ce2deadaa13d8bd8891aabd096b397e330 | [
"MIT"
] | null | null | null | lstm.py | mustyoshi/scikit-ta | c2a8f4ce2deadaa13d8bd8891aabd096b397e330 | [
"MIT"
] | 1 | 2020-02-22T21:59:39.000Z | 2020-02-22T21:59:39.000Z | from __future__ import print_function
import tensorflow as tf
from tensorflow.contrib import rnn
import pandas as pd
import numpy as np
import random
import time
import os
import datetime
from tensorflow.python.client import timeline
os.environ["CUDA_VISIBLE_DEVICES"] = "0"
from sklearn.model_selection import train_t... | 42.936441 | 220 | 0.589954 | 1,332 | 10,133 | 4.283784 | 0.24024 | 0.022082 | 0.056782 | 0.024536 | 0.269716 | 0.215738 | 0.188398 | 0.134595 | 0.080442 | 0.080442 | 0 | 0.027562 | 0.27672 | 10,133 | 235 | 221 | 43.119149 | 0.750989 | 0.192835 | 0 | 0.108434 | 0 | 0.006024 | 0.095794 | 0.01697 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012048 | false | 0 | 0.084337 | 0 | 0.108434 | 0.072289 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b0f85d4de8f913a7c50b0d59c38e3f8dc18c049b | 2,375 | py | Python | src/napari_live_recording/__init__.py | jethro33/napari-live-recording | 6c3fcc33bd18cd090e3f89971b630d1800e29e4d | [
"MIT"
] | 7 | 2021-10-11T17:45:33.000Z | 2022-02-07T16:10:42.000Z | src/napari_live_recording/__init__.py | jethro33/napari-live-recording | 6c3fcc33bd18cd090e3f89971b630d1800e29e4d | [
"MIT"
] | 2 | 2021-11-01T09:00:11.000Z | 2022-01-24T16:21:05.000Z | src/napari_live_recording/__init__.py | jethro33/napari-live-recording | 6c3fcc33bd18cd090e3f89971b630d1800e29e4d | [
"MIT"
] | null | null | null | from napari.viewer import Viewer
import napari_live_recording.devices as devices
from napari_live_recording.widgets import CameraSelection
from napari_live_recording.control import Controller
from qtpy.QtWidgets import QWidget, QFormLayout, QGroupBox
class NapariLiveRecording(QWidget):
def __init__(self, napari_vi... | 45.673077 | 105 | 0.663579 | 268 | 2,375 | 5.813433 | 0.414179 | 0.044929 | 0.041078 | 0.029525 | 0.080873 | 0.043646 | 0.043646 | 0 | 0 | 0 | 0 | 0 | 0.257263 | 2,375 | 52 | 106 | 45.673077 | 0.88322 | 0.218947 | 0 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121212 | false | 0 | 0.151515 | 0 | 0.30303 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b0f8a636893a665d94b32f86e052882874326b1a | 4,277 | py | Python | Chapter08/inceptionV3.py | wikibook/deep-learning-reference | 18d2ca2ded4256b2ddbac6e76d57531ca13e6e30 | [
"MIT"
] | 2 | 2020-02-13T05:45:20.000Z | 2020-04-11T05:58:02.000Z | Chapter08/inceptionV3.py | wikibook/deep-learning-reference | 18d2ca2ded4256b2ddbac6e76d57531ca13e6e30 | [
"MIT"
] | null | null | null | Chapter08/inceptionV3.py | wikibook/deep-learning-reference | 18d2ca2ded4256b2ddbac6e76d57531ca13e6e30 | [
"MIT"
] | null | null | null | # Deep Learning Quick Reference Chapter 8: Transfer Learning
# Mike Bernico <mike.bernico@gmail.com>
# seed random number generators before importing keras
import numpy as np
np.random.seed(42)
import tensorflow as tf
tf.set_random_seed(42)
from keras.applications.inception_v3 import InceptionV3
from keras.models im... | 34.491935 | 133 | 0.710545 | 547 | 4,277 | 5.323583 | 0.347349 | 0.037088 | 0.030907 | 0.039148 | 0.337912 | 0.296016 | 0.296016 | 0.296016 | 0.23489 | 0.208791 | 0 | 0.018556 | 0.193594 | 4,277 | 123 | 134 | 34.772358 | 0.825747 | 0.123451 | 0 | 0.296296 | 0 | 0 | 0.073399 | 0.008572 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061728 | false | 0 | 0.123457 | 0 | 0.234568 | 0.024691 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |