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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
eed75ce868931dabebd40ef5cd1f3bab8cc08cc7 | 10,094 | py | Python | torchrec/distributed/test_utils/test_sharding.py | samiwilf/torchrec | 50ff0973d5d01ec80fe36ba5f1d524c92c799836 | [
"BSD-3-Clause"
] | 1 | 2022-03-07T09:06:11.000Z | 2022-03-07T09:06:11.000Z | torchrec/distributed/test_utils/test_sharding.py | samiwilf/torchrec | 50ff0973d5d01ec80fe36ba5f1d524c92c799836 | [
"BSD-3-Clause"
] | null | null | null | torchrec/distributed/test_utils/test_sharding.py | samiwilf/torchrec | 50ff0973d5d01ec80fe36ba5f1d524c92c799836 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
from enum import Enum
from typing import cast, Dict, List, Optional, Tuple, Union
impor... | 36.705455 | 86 | 0.645928 | 1,121 | 10,094 | 5.587868 | 0.236396 | 0.018678 | 0.025543 | 0.020115 | 0.260057 | 0.220945 | 0.150224 | 0.110951 | 0.087963 | 0.087963 | 0 | 0.005716 | 0.272043 | 10,094 | 274 | 87 | 36.839416 | 0.846761 | 0.058649 | 0 | 0.200913 | 0 | 0 | 0.025881 | 0.00804 | 0 | 0 | 0 | 0.007299 | 0.022831 | 1 | 0.027397 | false | 0 | 0.063927 | 0.004566 | 0.146119 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
eed9c6dd573fe2bb3afc30e2202d6ac77f9cb554 | 330 | py | Python | examples/optimizers/science/create_hgso.py | anukaal/opytimizer | 5f1ccc0da80e6a4cabd99578fa24cf4f6466f9b9 | [
"Apache-2.0"
] | 528 | 2018-10-01T20:00:09.000Z | 2022-03-27T11:15:31.000Z | examples/optimizers/science/create_hgso.py | anukaal/opytimizer | 5f1ccc0da80e6a4cabd99578fa24cf4f6466f9b9 | [
"Apache-2.0"
] | 17 | 2019-10-30T00:47:03.000Z | 2022-03-21T11:39:28.000Z | examples/optimizers/science/create_hgso.py | anukaal/opytimizer | 5f1ccc0da80e6a4cabd99578fa24cf4f6466f9b9 | [
"Apache-2.0"
] | 35 | 2018-10-01T20:03:23.000Z | 2022-03-20T03:54:15.000Z | from opytimizer.optimizers.science import HGSO
# One should declare a hyperparameters object based
# on the desired algorithm that will be used
params = {
'n_clusters': 2,
'l1': 0.0005,
'l2': 100,
'l3': 0.001,
'alpha': 1.0,
'beta': 1.0,
'K': 1.0
}
# Creates an HGSO optimizer
o = HGSO(param... | 19.411765 | 51 | 0.633333 | 50 | 330 | 4.16 | 0.8 | 0.028846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 0.233333 | 330 | 16 | 52 | 20.625 | 0.735178 | 0.357576 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
eeddefbcddacdcd31162977b74fe0703603b2f9f | 2,668 | py | Python | adverse/urls.py | michael-xander/communique-webapp | 85b450d7f6d0313c5e5ef53a262a850b7e93c3d6 | [
"MIT"
] | null | null | null | adverse/urls.py | michael-xander/communique-webapp | 85b450d7f6d0313c5e5ef53a262a850b7e93c3d6 | [
"MIT"
] | null | null | null | adverse/urls.py | michael-xander/communique-webapp | 85b450d7f6d0313c5e5ef53a262a850b7e93c3d6 | [
"MIT"
] | null | null | null | from django.conf.urls import url
from .views import (EmergencyContactCreateView, EmergencyContactUpdateView, EmergencyContactDeleteView,
EmergencyContactDetailView, EmergencyContactListView, AdverseEventTypeUpdateView,
AdverseEventTypeCreateView, AdverseEventTypeDeleteView, Adve... | 86.064516 | 172 | 0.725262 | 302 | 2,668 | 6.178808 | 0.182119 | 0.036442 | 0.091104 | 0.154877 | 0.386388 | 0.284566 | 0.096463 | 0.072347 | 0 | 0 | 0 | 0.01495 | 0.097451 | 2,668 | 31 | 173 | 86.064516 | 0.759967 | 0 | 0 | 0 | 0 | 0.034483 | 0.38329 | 0.325965 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068966 | 0 | 0.068966 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
eee0e160c355877e9ab99acba82ef48b402d10db | 2,795 | py | Python | termlog/interpret.py | brianbruggeman/termlog | 361883f790ab6fae158095585370672e3ca8e354 | [
"MIT"
] | 1 | 2019-11-22T09:32:25.000Z | 2019-11-22T09:32:25.000Z | termlog/interpret.py | brianbruggeman/termlog | 361883f790ab6fae158095585370672e3ca8e354 | [
"MIT"
] | null | null | null | termlog/interpret.py | brianbruggeman/termlog | 361883f790ab6fae158095585370672e3ca8e354 | [
"MIT"
] | null | null | null | """Interprets each AST node"""
import ast
import textwrap
from typing import Any, Dict, List
def extract_fields(code: str) -> Dict[str, Any]:
"""Extracts data from code block searching for variables
Args:
code: the code block to parse
"""
# Parsing expects that the code have no indentation
... | 34.9375 | 132 | 0.544544 | 315 | 2,795 | 4.822222 | 0.342857 | 0.119816 | 0.142199 | 0.138249 | 0.113232 | 0.113232 | 0.113232 | 0.113232 | 0.05925 | 0.05925 | 0 | 0.003757 | 0.333453 | 2,795 | 79 | 133 | 35.379747 | 0.811594 | 0.218247 | 0 | 0.033898 | 0 | 0 | 0.018605 | 0 | 0 | 0 | 0 | 0 | 0.016949 | 1 | 0.016949 | false | 0.033898 | 0.067797 | 0 | 0.101695 | 0.016949 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
eee600143ae9d2506a33cc7fd8cd95666e09cf2a | 453 | py | Python | 2/2.py | pyl/AdventOfCode | 575a8ba2eb6bd597201986444a799a4384ac3983 | [
"MIT"
] | null | null | null | 2/2.py | pyl/AdventOfCode | 575a8ba2eb6bd597201986444a799a4384ac3983 | [
"MIT"
] | null | null | null | 2/2.py | pyl/AdventOfCode | 575a8ba2eb6bd597201986444a799a4384ac3983 | [
"MIT"
] | null | null | null | import os
import re
# from .m.red import readInput
data = open("2\\input.txt").read().split('\n')
parsedData = []
for x in data:
parsedData.append(list(filter(None, re.split("[- :]", x))))
parsedData.pop()
count = 0
for x in parsedData:
print(x)
if(x[3][int(x[0])-1] != x[3][int(x[1])-1]
and (... | 15.62069 | 63 | 0.527594 | 79 | 453 | 3.025316 | 0.443038 | 0.033473 | 0.083682 | 0.100418 | 0.138075 | 0.138075 | 0.075314 | 0 | 0 | 0 | 0 | 0.048159 | 0.220751 | 453 | 28 | 64 | 16.178571 | 0.628895 | 0.06181 | 0 | 0 | 0 | 0 | 0.059102 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.1875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
eee72143266c2f7d061e2031c509c2b48483a480 | 1,183 | py | Python | dd3/visitor/views.py | za/dd3 | b70d795fb3bd3ff805696b632beabf6d1f342389 | [
"Apache-2.0"
] | null | null | null | dd3/visitor/views.py | za/dd3 | b70d795fb3bd3ff805696b632beabf6d1f342389 | [
"Apache-2.0"
] | null | null | null | dd3/visitor/views.py | za/dd3 | b70d795fb3bd3ff805696b632beabf6d1f342389 | [
"Apache-2.0"
] | null | null | null | from django.shortcuts import render
from django.http import JsonResponse
from django.db import connections
from django.db.models import Count
from django.contrib import admin
from visitor.models import Apache
import json
admin.site.register(Apache)
# Create your views here.
def text(request):
apachelogs_list = Ap... | 26.886364 | 55 | 0.718512 | 165 | 1,183 | 5.036364 | 0.430303 | 0.079422 | 0.091456 | 0.064982 | 0.086643 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048181 | 0.140321 | 1,183 | 43 | 56 | 27.511628 | 0.768928 | 0.035503 | 0 | 0 | 0 | 0 | 0.140598 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121212 | false | 0 | 0.212121 | 0.030303 | 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 |
eee9f9f542f197693a4587a809d1d13007ab6153 | 8,391 | py | Python | features/steps/zz_08_materials_steps.py | tewarfel/RayTracerChallenge_1 | 736cc5d159c267c9bcc14d42abb03eedc2f7e5f1 | [
"MIT"
] | 2 | 2020-05-13T20:54:50.000Z | 2021-06-06T03:37:41.000Z | features/steps/zz_08_materials_steps.py | tewarfel/RayTracerChallenge_1 | 736cc5d159c267c9bcc14d42abb03eedc2f7e5f1 | [
"MIT"
] | null | null | null | features/steps/zz_08_materials_steps.py | tewarfel/RayTracerChallenge_1 | 736cc5d159c267c9bcc14d42abb03eedc2f7e5f1 | [
"MIT"
] | null | null | null | from behave import *
from hamcrest import assert_that, equal_to
from vec3 import Vec3, vec3
from vec4 import Vec4, point, vector
from base import equal, normalize, transform, ray, lighting
import numpy as np
from shape import material, sphere, test_shape, normal_at, set_transform, intersect, glass_sphere, point_light
f... | 45.603261 | 196 | 0.725539 | 1,195 | 8,391 | 4.87113 | 0.121339 | 0.055661 | 0.030923 | 0.037794 | 0.689572 | 0.645937 | 0.627899 | 0.583061 | 0.560385 | 0.552826 | 0 | 0.003402 | 0.124181 | 8,391 | 183 | 197 | 45.852459 | 0.786365 | 0 | 0 | 0.410448 | 0 | 0.097015 | 0.185198 | 0.073531 | 0 | 0 | 0 | 0 | 0.171642 | 1 | 0.119403 | false | 0 | 0.074627 | 0 | 0.19403 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
eeea7ce35f96919784a10c51746fa125d0fb04fb | 741 | py | Python | data/thread_generator.py | beesk135/ReID-Survey | d1467c0ce5d3ca78640196360a05df9ff9f9f42a | [
"MIT"
] | null | null | null | data/thread_generator.py | beesk135/ReID-Survey | d1467c0ce5d3ca78640196360a05df9ff9f9f42a | [
"MIT"
] | null | null | null | data/thread_generator.py | beesk135/ReID-Survey | d1467c0ce5d3ca78640196360a05df9ff9f9f42a | [
"MIT"
] | null | null | null | import threading
import time
import numpy as np
from collections import deque
class ThreadGenerator(threading.Thread):
def __init__(self, generator, max_queue_size=10):
threading.Thread.__init__(self)
self.generator = ThreadGenerator
self.buffer = deque(maxlen=max_queue_size)
self.m... | 29.64 | 55 | 0.62753 | 95 | 741 | 4.705263 | 0.4 | 0.089485 | 0.134228 | 0.071588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012963 | 0.271255 | 741 | 24 | 56 | 30.875 | 0.814815 | 0 | 0 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.173913 | 0 | 0.434783 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
eeee2179bf362d1c71b12b2f474e4d3a6d80e573 | 1,544 | py | Python | spug/data_pipeline/sources/stock.py | syeehyn/spug | 216976e0171bbc14042377fbbb535180bd2efaf3 | [
"Apache-2.0"
] | null | null | null | spug/data_pipeline/sources/stock.py | syeehyn/spug | 216976e0171bbc14042377fbbb535180bd2efaf3 | [
"Apache-2.0"
] | null | null | null | spug/data_pipeline/sources/stock.py | syeehyn/spug | 216976e0171bbc14042377fbbb535180bd2efaf3 | [
"Apache-2.0"
] | 1 | 2021-12-05T22:54:28.000Z | 2021-12-05T22:54:28.000Z | """
fetch historical stocks prices
"""
from tqdm import tqdm
import pandas as pd
import pandas_datareader as pdr
from .base import DataFetcher
def get_stock_price(symbol, start, end):
"""get stock price of a company over a time range
Args:
symbol (str): ticker symbol of a stock
start (datetime... | 31.510204 | 87 | 0.613342 | 199 | 1,544 | 4.658291 | 0.361809 | 0.03452 | 0.038835 | 0.06041 | 0.332255 | 0.332255 | 0.31068 | 0.31068 | 0.238403 | 0.170442 | 0 | 0.001784 | 0.273964 | 1,544 | 48 | 88 | 32.166667 | 0.825156 | 0.340026 | 0 | 0 | 0 | 0 | 0.061202 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.166667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
eeef030e3640987cf35e25ed5365b60fde947fe0 | 2,963 | py | Python | src/gluonts/nursery/tsbench/src/tsbench/evaluations/metrics/performance.py | RingoIngo/gluon-ts | 62fb20c36025fc969653accaffaa783671709564 | [
"Apache-2.0"
] | 1 | 2022-03-28T01:17:00.000Z | 2022-03-28T01:17:00.000Z | src/gluonts/nursery/tsbench/src/tsbench/evaluations/metrics/performance.py | RingoIngo/gluon-ts | 62fb20c36025fc969653accaffaa783671709564 | [
"Apache-2.0"
] | null | null | null | src/gluonts/nursery/tsbench/src/tsbench/evaluations/metrics/performance.py | RingoIngo/gluon-ts | 62fb20c36025fc969653accaffaa783671709564 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 31.521277 | 98 | 0.59433 | 348 | 2,963 | 4.979885 | 0.445402 | 0.034622 | 0.01558 | 0.027698 | 0.038084 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007448 | 0.320284 | 2,963 | 93 | 99 | 31.860215 | 0.853029 | 0.335471 | 0 | 0.087719 | 0 | 0 | 0.026867 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.105263 | 0 | 0.385965 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
eef6f9b0de74e501a4d4981b8350d4bf8e08d58a | 4,403 | py | Python | kerascv/layers/matchers/argmax_matcher.py | tanzhenyu/keras-cv | b7208ee25735c492ccc171874e34076111dcf637 | [
"Apache-2.0"
] | null | null | null | kerascv/layers/matchers/argmax_matcher.py | tanzhenyu/keras-cv | b7208ee25735c492ccc171874e34076111dcf637 | [
"Apache-2.0"
] | null | null | null | kerascv/layers/matchers/argmax_matcher.py | tanzhenyu/keras-cv | b7208ee25735c492ccc171874e34076111dcf637 | [
"Apache-2.0"
] | null | null | null | import tensorflow as tf
from kerascv.layers.iou_similarity import IOUSimilarity
iou_layer = IOUSimilarity()
class ArgMaxMatcher(tf.keras.layers.Layer):
"""ArgMax matcher"""
# [pos, neutral, neg]
def __init__(self, matched_threshold, unmatched_threshold):
self.matched_threshold = matched_threshol... | 39.666667 | 87 | 0.661821 | 508 | 4,403 | 5.375984 | 0.173228 | 0.105456 | 0.059319 | 0.076895 | 0.410839 | 0.295496 | 0.264738 | 0.204687 | 0.184182 | 0.134017 | 0 | 0.010488 | 0.242108 | 4,403 | 111 | 88 | 39.666667 | 0.807911 | 0.071315 | 0 | 0.162791 | 0 | 0 | 0.008867 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0 | 0.023256 | 0 | 0.127907 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
eef840e020a73705ee971a6562f13c86679b8ac7 | 538 | py | Python | Atv1-Distribuida/servidorBackup.py | rodolfotr/Computacao_Distribuida | 1d9db06ef4ab7290a6ce9666b5cb83987cc74e9d | [
"MIT"
] | null | null | null | Atv1-Distribuida/servidorBackup.py | rodolfotr/Computacao_Distribuida | 1d9db06ef4ab7290a6ce9666b5cb83987cc74e9d | [
"MIT"
] | null | null | null | Atv1-Distribuida/servidorBackup.py | rodolfotr/Computacao_Distribuida | 1d9db06ef4ab7290a6ce9666b5cb83987cc74e9d | [
"MIT"
] | null | null | null | import socket
import struct
IP_BACKUP = '127.0.0.1'
PORTA_BACKUP = 5000
ARQUIVO_BACKUP = "/home/aluno-uffs/Documentos/Trab_Final/Atv1-Distribuida/cliente_BACKUP.c"
#Recebe o arquivo.
sockReceber = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP)
sockReceber.setsockopt(socket.SOL_SOCKET, socket.SO_... | 25.619048 | 91 | 0.734201 | 76 | 538 | 5.026316 | 0.605263 | 0.094241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047516 | 0.139405 | 538 | 21 | 92 | 25.619048 | 0.777538 | 0.031599 | 0 | 0 | 0 | 0 | 0.159309 | 0.138196 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
eef8835ed3e8db9f839217b35bfd1e4b67953a9b | 634 | py | Python | examples/example_regression.py | QuantLet/localpoly | 7db50e3fb2caf39af8f9db1f2108fd1a81fc51bc | [
"MIT"
] | 1 | 2021-04-28T09:39:53.000Z | 2021-04-28T09:39:53.000Z | examples/example_regression.py | QuantLet/localpoly | 7db50e3fb2caf39af8f9db1f2108fd1a81fc51bc | [
"MIT"
] | null | null | null | examples/example_regression.py | QuantLet/localpoly | 7db50e3fb2caf39af8f9db1f2108fd1a81fc51bc | [
"MIT"
] | 1 | 2021-05-11T19:06:17.000Z | 2021-05-11T19:06:17.000Z | import numpy as np
from matplotlib import pyplot as plt
from localpoly.base import LocalPolynomialRegression
# simulate data
np.random.seed(1)
X = np.linspace(-np.pi, np.pi, num=150)
y_real = np.sin(X)
y = np.random.normal(0, 0.3, len(X)) + y_real
# local polynomial regression
model = LocalPolynomialRegression(X=X, ... | 27.565217 | 86 | 0.706625 | 106 | 634 | 4.179245 | 0.528302 | 0.022573 | 0.027088 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033808 | 0.113565 | 634 | 22 | 87 | 28.818182 | 0.754448 | 0.072555 | 0 | 0 | 0 | 0 | 0.05137 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
eefc3d409d2d8b66094f301c43a67fdc4a9f6792 | 2,829 | py | Python | utils/phase0/state_transition.py | hwwhww/eth2.0-specs | 729757d4279db4535b176361d67d1567c0df314b | [
"CC0-1.0"
] | 3 | 2020-07-22T14:51:07.000Z | 2022-01-02T12:02:45.000Z | utils/phase0/state_transition.py | hwwhww/eth2.0-specs | 729757d4279db4535b176361d67d1567c0df314b | [
"CC0-1.0"
] | null | null | null | utils/phase0/state_transition.py | hwwhww/eth2.0-specs | 729757d4279db4535b176361d67d1567c0df314b | [
"CC0-1.0"
] | null | null | null | from . import spec
from typing import ( # noqa: F401
Any,
Callable,
List,
NewType,
Tuple,
)
from .spec import (
BeaconState,
BeaconBlock,
)
def process_transaction_type(state: BeaconState,
transactions: List[Any],
max_transactio... | 28.009901 | 80 | 0.653588 | 303 | 2,829 | 5.818482 | 0.257426 | 0.081112 | 0.087351 | 0.107204 | 0.195122 | 0.195122 | 0.113443 | 0.063528 | 0.063528 | 0 | 0 | 0.00337 | 0.265818 | 2,829 | 100 | 81 | 28.29 | 0.84545 | 0.003535 | 0 | 0.162791 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 1 | 0.05814 | false | 0 | 0.034884 | 0 | 0.093023 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
eefe78a5c5393bb02f57187df46d42fbd870dd68 | 2,460 | py | Python | openghg/client/_search.py | openghg/openghg | 9a05dd6fe3cee6123898b8f390cfaded08dbb408 | [
"Apache-2.0"
] | 5 | 2021-03-02T09:04:07.000Z | 2022-01-25T09:58:16.000Z | openghg/client/_search.py | openghg/openghg | 9a05dd6fe3cee6123898b8f390cfaded08dbb408 | [
"Apache-2.0"
] | 229 | 2020-09-30T15:08:39.000Z | 2022-03-31T14:23:55.000Z | openghg/client/_search.py | openghg/openghg | 9a05dd6fe3cee6123898b8f390cfaded08dbb408 | [
"Apache-2.0"
] | null | null | null | from __future__ import annotations
from typing import TYPE_CHECKING, Dict, List, Optional, Union
from Acquire.Client import Wallet
if TYPE_CHECKING:
from openghg.dataobjects import SearchResults
__all__ = ["Search"]
class Search:
def __init__(self, service_url: Optional[str] = None):
if service_url... | 29.638554 | 96 | 0.597561 | 284 | 2,460 | 5 | 0.309859 | 0.054225 | 0.044366 | 0.05493 | 0.08169 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.31748 | 2,460 | 82 | 97 | 30 | 0.845742 | 0.110976 | 0 | 0.038462 | 0 | 0 | 0.114762 | 0.012857 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.096154 | 0 | 0.192308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e101989a4d6808941cf59d0b6ca5c8dec9a09fac | 4,467 | py | Python | models/seeding/base.py | Sanzeed/balanced_influence_maximization | 0797b8a8f536cac8023e128ab13eb532f902bcad | [
"MIT"
] | 4 | 2021-06-03T02:53:46.000Z | 2022-01-25T07:07:08.000Z | models/seeding/base.py | Sanzeed/balanced_influence_maximization | 0797b8a8f536cac8023e128ab13eb532f902bcad | [
"MIT"
] | null | null | null | models/seeding/base.py | Sanzeed/balanced_influence_maximization | 0797b8a8f536cac8023e128ab13eb532f902bcad | [
"MIT"
] | 1 | 2021-06-17T02:17:22.000Z | 2021-06-17T02:17:22.000Z | import numpy as np
from scipy.stats import bernoulli
import heapq
class DiffusionModel:
def __init__(self, graph, majority, get_diffusion_probability, num_rels):
self.graph = graph
self.majority = majority
nodes = sorted(self.graph.nodes())
self.node_index_map = {nodes[i] :... | 44.227723 | 120 | 0.591896 | 561 | 4,467 | 4.411765 | 0.183601 | 0.033939 | 0.035556 | 0.031111 | 0.367677 | 0.309899 | 0.198384 | 0.146667 | 0.126061 | 0.08404 | 0 | 0.001935 | 0.305798 | 4,467 | 100 | 121 | 44.67 | 0.796195 | 0 | 0 | 0.077922 | 0 | 0 | 0.019028 | 0 | 0 | 0 | 0 | 0 | 0.012987 | 1 | 0.116883 | false | 0.025974 | 0.038961 | 0 | 0.233766 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e103652358a900837a67abd9fbc1244e03d12a88 | 2,631 | py | Python | RedditReader/redditReader.py | Semicolon42/PythonProjects | eb6ec5d13594013a2703af43eb0d1c29406faaad | [
"Apache-2.0"
] | null | null | null | RedditReader/redditReader.py | Semicolon42/PythonProjects | eb6ec5d13594013a2703af43eb0d1c29406faaad | [
"Apache-2.0"
] | null | null | null | RedditReader/redditReader.py | Semicolon42/PythonProjects | eb6ec5d13594013a2703af43eb0d1c29406faaad | [
"Apache-2.0"
] | null | null | null | import logging
import csv
import time
from bs4 import BeautifulSoup
import requests
logging.basicConfig(
format='%(asctime)s %(levelname)s:%(message)s',
level=logging.INFO)
class Crawler:
def __init__(self, urls=[]):
self.visited_urls = []
self.urls_to_visit = urls
def download_url... | 30.241379 | 79 | 0.542379 | 310 | 2,631 | 4.454839 | 0.332258 | 0.047791 | 0.021723 | 0.032585 | 0.10572 | 0.10572 | 0.10572 | 0 | 0 | 0 | 0 | 0.005537 | 0.313569 | 2,631 | 87 | 80 | 30.241379 | 0.759136 | 0 | 0 | 0.117647 | 0 | 0 | 0.158055 | 0.037614 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102941 | false | 0 | 0.073529 | 0 | 0.235294 | 0.102941 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e10557e7b3374a814dff92034c545370c1354b22 | 2,605 | py | Python | asteroid/repl.py | asteroid-lang/asteroid | 537c60dd639e4f83fdefff4d36e1d63c3b4139a4 | [
"MIT"
] | 2 | 2022-02-09T20:33:05.000Z | 2022-02-09T20:33:08.000Z | asteroid/repl.py | asteroid-lang/asteroid | 537c60dd639e4f83fdefff4d36e1d63c3b4139a4 | [
"MIT"
] | 40 | 2022-01-22T02:29:51.000Z | 2022-03-31T14:45:31.000Z | asteroid/repl.py | asteroid-lang/asteroid | 537c60dd639e4f83fdefff4d36e1d63c3b4139a4 | [
"MIT"
] | 2 | 2022-01-20T18:20:11.000Z | 2022-02-12T22:35:22.000Z | from asteroid.interp import interp
from asteroid.version import VERSION
from asteroid.state import state
from asteroid.globals import ExpectationError
from asteroid.walk import function_return_value
from asteroid.support import term2string
from sys import stdin
import readline
def repl():
state.initialize()
p... | 26.581633 | 83 | 0.554702 | 285 | 2,605 | 4.954386 | 0.382456 | 0.073654 | 0.063739 | 0.084986 | 0.07932 | 0.05949 | 0.05949 | 0.05949 | 0.05949 | 0 | 0 | 0.003054 | 0.371593 | 2,605 | 97 | 84 | 26.85567 | 0.859499 | 0.185413 | 0 | 0.396552 | 0 | 0 | 0.035515 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051724 | false | 0.017241 | 0.137931 | 0 | 0.189655 | 0.189655 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e106417c74eb34df2f46cb1cc4d7afaf1c61501e | 1,762 | py | Python | apis/file_state.py | brockpalen/ltfsee-globus | 5cb322ef09cd4f883951de96e5cb242f876ccd9c | [
"MIT"
] | null | null | null | apis/file_state.py | brockpalen/ltfsee-globus | 5cb322ef09cd4f883951de96e5cb242f876ccd9c | [
"MIT"
] | null | null | null | apis/file_state.py | brockpalen/ltfsee-globus | 5cb322ef09cd4f883951de96e5cb242f876ccd9c | [
"MIT"
] | null | null | null | """API for eeadm file state."""
from http import HTTPStatus
from flask import request
from flask_restx import Namespace, Resource, fields
from core.eeadm.file_state import EEADM_File_State
from ltfsee_globus.auth import token_required
api = Namespace(
"file_state", description="Get state of a file in archive eea... | 32.036364 | 100 | 0.713394 | 253 | 1,762 | 4.822134 | 0.391304 | 0.132787 | 0.103279 | 0.027869 | 0.127869 | 0.127869 | 0.127869 | 0.127869 | 0.127869 | 0.127869 | 0 | 0.005533 | 0.179342 | 1,762 | 54 | 101 | 32.62963 | 0.838174 | 0.289444 | 0 | 0 | 0 | 0 | 0.167758 | 0.017185 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.16129 | 0 | 0.258065 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e106968b5aabed3c4faf9536ea2f316b06ae7ec9 | 7,925 | py | Python | 130_html_to_csv/150_mkcsv_t_info_d.py | takobouzu/BOAT_RACE_DB | f16ed8f55aef567c0ecc6ebd3ad0e917f5c600d8 | [
"MIT"
] | 6 | 2020-12-23T01:06:04.000Z | 2022-01-12T10:18:36.000Z | 130_html_to_csv/150_mkcsv_t_info_d.py | takobouzu/BOAT_RACE_DB | f16ed8f55aef567c0ecc6ebd3ad0e917f5c600d8 | [
"MIT"
] | 15 | 2021-03-02T05:59:24.000Z | 2021-09-12T08:12:38.000Z | 130_html_to_csv/150_mkcsv_t_info_d.py | takobouzu/BOAT_RACE_DB | f16ed8f55aef567c0ecc6ebd3ad0e917f5c600d8 | [
"MIT"
] | 1 | 2021-05-09T10:47:21.000Z | 2021-05-09T10:47:21.000Z | '''
【システム】BOAT_RACE_DB2
【ファイル】140_mkcsv_t_info_d.py
【機能仕様】直前情報HTMLファイルから直前情報明細テーブル「t_info_d」のインポートCSVファイルを作成する
【動作環境】macOS 11.1/Raspbian OS 10.4/python 3.9.1/sqlite3 3.32.3
【来 歴】2021.02.01 ver 1.00
'''
import os
import datetime
from bs4 import BeautifulSoup
#インストールディレクトの定義
BASE_DIR = '/home/pi/BOAT_RACE_DB'
'''
【関 数】... | 48.323171 | 120 | 0.418801 | 844 | 7,925 | 3.533175 | 0.204976 | 0.130785 | 0.156942 | 0.096579 | 0.60228 | 0.546278 | 0.516767 | 0.483233 | 0.43226 | 0.293092 | 0 | 0.027347 | 0.487823 | 7,925 | 163 | 121 | 48.619632 | 0.707317 | 0.082397 | 0 | 0.282051 | 0 | 0 | 0.05391 | 0.030605 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008547 | false | 0 | 0.025641 | 0 | 0.034188 | 0.025641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e1088f7eca5eb9b2a0d3d520b6c9dd794d84bb1c | 2,194 | py | Python | onetabtobear.py | vinceblake/saveTabToBear | 4b3a79c06e9130c95fa1f87b30999f2fbfe2e017 | [
"MIT"
] | null | null | null | onetabtobear.py | vinceblake/saveTabToBear | 4b3a79c06e9130c95fa1f87b30999f2fbfe2e017 | [
"MIT"
] | null | null | null | onetabtobear.py | vinceblake/saveTabToBear | 4b3a79c06e9130c95fa1f87b30999f2fbfe2e017 | [
"MIT"
] | null | null | null | #!/usr/local/bin/python3
from subprocess import Popen, PIPE
from urllib.parse import quote
import sqlite3, datetime, sys, re
# Global Variables
removeCheckedItems = True # Set to false if you want to keep "completed" to-do items when this is run
bearDbFile = str(sys.argv[3])
oneTabID = str(sys.argv[4])
# Methods
de... | 30.054795 | 115 | 0.639927 | 285 | 2,194 | 4.873684 | 0.473684 | 0.020158 | 0.014399 | 0.017279 | 0.051116 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006399 | 0.2165 | 2,194 | 73 | 116 | 30.054795 | 0.801629 | 0.228806 | 0 | 0 | 0 | 0.021739 | 0.218335 | 0.086248 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.065217 | 0 | 0.26087 | 0.021739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e1093ea692aa40b78e1fe9867c9ec44b0222ae19 | 1,319 | py | Python | defects4cpp/d++.py | HansolChoe/defects4cpp | cb9e3db239c50e6ec38127cec117865f0ee7a5cf | [
"MIT"
] | 10 | 2021-06-23T01:53:19.000Z | 2022-03-31T03:14:01.000Z | defects4cpp/d++.py | HansolChoe/defects4cpp | cb9e3db239c50e6ec38127cec117865f0ee7a5cf | [
"MIT"
] | 34 | 2021-05-27T01:09:04.000Z | 2022-03-28T07:53:35.000Z | defects4cpp/d++.py | HansolChoe/defects4cpp | cb9e3db239c50e6ec38127cec117865f0ee7a5cf | [
"MIT"
] | 6 | 2021-09-03T07:16:56.000Z | 2022-03-29T07:30:35.000Z | import sys
from time import perf_counter
from command import CommandList
from errors import DppArgparseError, DppDockerError, DppError
from message import message
def _handle_cmdline_error(e: DppError):
if isinstance(e, DppArgparseError):
message.stdout_argparse_error(str(e))
elif isinstance(e, DppDo... | 24.425926 | 79 | 0.639121 | 158 | 1,319 | 5.139241 | 0.386076 | 0.080049 | 0.077586 | 0.046798 | 0.14532 | 0.073892 | 0 | 0 | 0 | 0 | 0 | 0.010309 | 0.264594 | 1,319 | 53 | 80 | 24.886792 | 0.826804 | 0 | 0 | 0.15 | 0 | 0 | 0.082638 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075 | false | 0 | 0.15 | 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 |
e109e7b0486674fec7a7133e0f5ef96b64e2f7e2 | 9,962 | py | Python | wz/ui/choice_grid.py | gradgrind/WZ | 672d93a3c9d7806194d16d6d5b9175e4046bd068 | [
"Apache-2.0"
] | null | null | null | wz/ui/choice_grid.py | gradgrind/WZ | 672d93a3c9d7806194d16d6d5b9175e4046bd068 | [
"Apache-2.0"
] | null | null | null | wz/ui/choice_grid.py | gradgrind/WZ | 672d93a3c9d7806194d16d6d5b9175e4046bd068 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
ui/choice_grid.py
Last updated: 2021-05-04
Manage the grid for the puil-subject-choice-editor.
=+LICENCE=============================
Copyright 2021 Michael Towers
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with ... | 36.490842 | 76 | 0.511443 | 1,163 | 9,962 | 4.262253 | 0.251935 | 0.025419 | 0.036716 | 0.020173 | 0.159371 | 0.128505 | 0.104297 | 0.104297 | 0.058907 | 0.043575 | 0 | 0.020867 | 0.374624 | 9,962 | 272 | 77 | 36.625 | 0.774799 | 0.249046 | 0 | 0.248619 | 0 | 0 | 0.034111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044199 | false | 0 | 0.022099 | 0.005525 | 0.093923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e10b54355c9e418ed2013419152b910332c40ec9 | 5,585 | py | Python | EPH_CORE_SkyObjectMgr.py | polsterc16/ephem | 70ac6c079c80344b83499b96edaff57fb5881efc | [
"MIT"
] | null | null | null | EPH_CORE_SkyObjectMgr.py | polsterc16/ephem | 70ac6c079c80344b83499b96edaff57fb5881efc | [
"MIT"
] | null | null | null | EPH_CORE_SkyObjectMgr.py | polsterc16/ephem | 70ac6c079c80344b83499b96edaff57fb5881efc | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Feb 5 16:25:45 2019
@author: polsterc16
==============================================================================
LICENCE INFORMATION
==============================================================================
This Software uses Code (spg4) provided by "Brandon Rho... | 34.263804 | 78 | 0.476813 | 489 | 5,585 | 5.331288 | 0.361963 | 0.044879 | 0.026084 | 0.034522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004585 | 0.375112 | 5,585 | 163 | 79 | 34.263804 | 0.742407 | 0.271083 | 0 | 0.152778 | 0 | 0 | 0.062161 | 0 | 0 | 0 | 0 | 0.006135 | 0 | 1 | 0.069444 | false | 0 | 0.069444 | 0.027778 | 0.236111 | 0.013889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e10cde8f79b9f8a7e8e8be18b130895124b76c09 | 3,370 | py | Python | integration-test-reports/run_reports.py | sutoiku/autostat | b0e6588e587450c4cbdb19a021d847f7571ba466 | [
"MIT"
] | null | null | null | integration-test-reports/run_reports.py | sutoiku/autostat | b0e6588e587450c4cbdb19a021d847f7571ba466 | [
"MIT"
] | 1 | 2022-03-16T19:05:46.000Z | 2022-03-16T19:05:46.000Z | integration-test-reports/run_reports.py | sutoiku/autostat | b0e6588e587450c4cbdb19a021d847f7571ba466 | [
"MIT"
] | 1 | 2021-07-14T19:37:44.000Z | 2021-07-14T19:37:44.000Z | from autostat.run_settings import RunSettings, Backend
from autostat.kernel_search import kernel_search, get_best_kernel_info
from autostat.dataset_adapters import Dataset
from autostat.utils.test_data_loader import load_test_dataset
from html_reports import Report
from markdown import markdown
import matplotlib.py... | 26.124031 | 88 | 0.651929 | 439 | 3,370 | 4.753986 | 0.396355 | 0.042166 | 0.040249 | 0.031624 | 0.045999 | 0.045999 | 0 | 0 | 0 | 0 | 0 | 0.019651 | 0.199703 | 3,370 | 128 | 89 | 26.328125 | 0.754171 | 0.076558 | 0 | 0.037975 | 0 | 0 | 0.132149 | 0.035218 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075949 | false | 0 | 0.151899 | 0.012658 | 0.253165 | 0.151899 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e1124f5104c7b2ddd81c1b4c389bcffa152ee3a4 | 44,393 | py | Python | srt_gc_launchGui.py | OrigamiAztec/LaunchGUITesting | e097afb075b313e13550937f450adf6653f88812 | [
"MIT"
] | null | null | null | srt_gc_launchGui.py | OrigamiAztec/LaunchGUITesting | e097afb075b313e13550937f450adf6653f88812 | [
"MIT"
] | null | null | null | srt_gc_launchGui.py | OrigamiAztec/LaunchGUITesting | e097afb075b313e13550937f450adf6653f88812 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
'''
Texas A&M University Sounding Rocketry Team
SRT-6 | 2018-2019
SRT-9 | 2021-2022
%-------------------------------------------------------------%
TAMU SRT
_____ __ _____ __ __
/ ___/______ __ _____ ___/ / / ___... | 39.530721 | 193 | 0.493974 | 4,647 | 44,393 | 4.686034 | 0.186142 | 0.013685 | 0.005786 | 0.003123 | 0.238933 | 0.197144 | 0.13919 | 0.116504 | 0.104197 | 0.096115 | 0 | 0.032256 | 0.375667 | 44,393 | 1,123 | 194 | 39.530721 | 0.753247 | 0.182799 | 0 | 0.217886 | 0 | 0 | 0.109502 | 0.002438 | 0.001626 | 0 | 0 | 0 | 0 | 1 | 0.042276 | false | 0.001626 | 0.030894 | 0 | 0.074797 | 0.013008 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e11508b726f072695da36af59f196eefb588d2a7 | 1,359 | py | Python | setup.py | charettes/cricket | ed3ef911e0776e225291a370220f0d9476afdd4e | [
"BSD-3-Clause"
] | 1 | 2015-11-06T07:51:04.000Z | 2015-11-06T07:51:04.000Z | setup.py | charettes/cricket | ed3ef911e0776e225291a370220f0d9476afdd4e | [
"BSD-3-Clause"
] | null | null | null | setup.py | charettes/cricket | ed3ef911e0776e225291a370220f0d9476afdd4e | [
"BSD-3-Clause"
] | null | null | null | #/usr/bin/env python
import sys
from setuptools import setup
from cricket import VERSION
try:
readme = open('README.rst')
long_description = str(readme.read())
finally:
readme.close()
required_pkgs = [
'tkreadonly',
]
if sys.version_info < (2, 7):
required_pkgs.extend(['argparse', 'unittest2', 'p... | 25.641509 | 66 | 0.61663 | 138 | 1,359 | 5.927536 | 0.623188 | 0.055012 | 0.041565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004883 | 0.246505 | 1,359 | 52 | 67 | 26.134615 | 0.793945 | 0.013981 | 0 | 0.042553 | 0 | 0 | 0.429425 | 0.060493 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.06383 | 0 | 0.06383 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e117f67f0c631749e3bd721fb7eedb16a22bb6f3 | 2,701 | py | Python | experimentation/tools/sorald/legacy/violation_scraper_apache_commons.py | gothius/sorald | 4c8761da495e528389c033660fae1f3c3a18cac3 | [
"MIT"
] | 49 | 2020-06-04T20:30:20.000Z | 2022-03-16T01:30:20.000Z | experimentation/tools/sorald/legacy/violation_scraper_apache_commons.py | gothius/sorald | 4c8761da495e528389c033660fae1f3c3a18cac3 | [
"MIT"
] | 551 | 2020-06-02T13:33:56.000Z | 2022-03-31T15:58:17.000Z | experimentation/tools/sorald/legacy/violation_scraper_apache_commons.py | gothius/sorald | 4c8761da495e528389c033660fae1f3c3a18cac3 | [
"MIT"
] | 12 | 2020-06-04T11:39:43.000Z | 2022-03-27T20:04:30.000Z | import requests;
import json;
from collections import Counter # Counts and orders the list of violations
import sys;
from urllib.parse import quote_plus # Make sysarg url-safe
# List of Apache Commons libraries which I know can be analyzed (without crashing/failing their tests)
commonsList = ["bcel",
"beanutils",
... | 28.734043 | 157 | 0.640133 | 345 | 2,701 | 4.878261 | 0.524638 | 0.041592 | 0.01426 | 0.01426 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017013 | 0.216586 | 2,701 | 93 | 158 | 29.043011 | 0.778355 | 0.218067 | 0 | 0 | 0 | 0 | 0.153115 | 0.028055 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061728 | false | 0 | 0.061728 | 0 | 0.160494 | 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 |
e11b19ef6b4d98bab620857b523abf42ea96c9a9 | 8,782 | py | Python | train.py | genisplaja/tf-diffwave | 32b0b403e7ca157f015f9af9f7dcdfa79e312a6a | [
"MIT"
] | 23 | 2020-09-29T08:38:09.000Z | 2022-03-16T03:00:44.000Z | train.py | genisplaja/tf-diffwave | 32b0b403e7ca157f015f9af9f7dcdfa79e312a6a | [
"MIT"
] | 1 | 2020-10-03T08:36:48.000Z | 2020-10-03T08:36:48.000Z | train.py | genisplaja/tf-diffwave | 32b0b403e7ca157f015f9af9f7dcdfa79e312a6a | [
"MIT"
] | 7 | 2020-09-29T19:11:53.000Z | 2022-01-06T14:29:21.000Z | import argparse
import json
import os
import matplotlib.pyplot as plt
import numpy as np
import tensorflow as tf
import tqdm
from config import Config
from dataset import LJSpeech
from model import DiffWave
class Trainer:
"""WaveGrad trainer.
"""
def __init__(self, model, lj, config):
"""Initial... | 37.370213 | 86 | 0.535186 | 1,060 | 8,782 | 4.341509 | 0.216981 | 0.059757 | 0.029335 | 0.024337 | 0.260756 | 0.17123 | 0.126467 | 0.126467 | 0.119079 | 0.059539 | 0 | 0.007885 | 0.335687 | 8,782 | 234 | 87 | 37.529915 | 0.780939 | 0.131861 | 0 | 0.073826 | 0 | 0 | 0.032626 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033557 | false | 0 | 0.067114 | 0 | 0.127517 | 0.013423 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e1215b8a95ad1e693c4f500b1993173740393e02 | 14,101 | py | Python | cogs/fun.py | Der-Eddy/discord_bot | bc2511e6d030ee2e099410bd846ea871fe3f109d | [
"MIT"
] | 122 | 2016-08-05T02:27:31.000Z | 2022-03-21T07:53:10.000Z | cogs/fun.py | Der-Eddy/discord_bot | bc2511e6d030ee2e099410bd846ea871fe3f109d | [
"MIT"
] | 15 | 2017-12-07T14:28:20.000Z | 2021-11-19T13:03:37.000Z | cogs/fun.py | Der-Eddy/discord_bot | bc2511e6d030ee2e099410bd846ea871fe3f109d | [
"MIT"
] | 100 | 2016-08-21T18:12:29.000Z | 2022-02-19T11:21:23.000Z | import random
import urllib.parse
import sqlite3
import asyncio
import aiohttp
import discord
from discord.ext import commands
import loadconfig
class fun(commands.Cog):
def __init__(self, bot):
self.bot = bot
async def cog_command_error(self, ctx, error):
print('Error in {0.comm... | 55.956349 | 226 | 0.582654 | 1,700 | 14,101 | 4.820588 | 0.441176 | 0.014643 | 0.021965 | 0.008542 | 0.08432 | 0.069799 | 0.029042 | 0.020988 | 0.01147 | 0.01147 | 0 | 0.018271 | 0.309127 | 14,101 | 251 | 227 | 56.179283 | 0.822932 | 0.009999 | 0 | 0.088542 | 0 | 0.041667 | 0.556054 | 0.039285 | 0 | 0 | 0 | 0.003984 | 0 | 1 | 0.015625 | false | 0.005208 | 0.041667 | 0 | 0.083333 | 0.005208 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e122eb0c0e3191c6ed28f670de3cb045fb8a32e8 | 1,866 | py | Python | asconnect/models/beta_detail.py | guojiubo/asconnect | 1c725dc2036f0617854f19b9a310a91c42239c72 | [
"MIT"
] | 14 | 2020-09-30T14:45:38.000Z | 2022-03-04T09:49:26.000Z | asconnect/models/beta_detail.py | guojiubo/asconnect | 1c725dc2036f0617854f19b9a310a91c42239c72 | [
"MIT"
] | 8 | 2020-09-30T14:50:18.000Z | 2022-01-25T06:18:20.000Z | asconnect/models/beta_detail.py | guojiubo/asconnect | 1c725dc2036f0617854f19b9a310a91c42239c72 | [
"MIT"
] | 7 | 2020-10-09T18:06:18.000Z | 2022-01-25T05:21:12.000Z | """Build beta detail models for the API"""
import enum
from typing import Dict, Optional
import deserialize
from asconnect.models.common import BaseAttributes, Links, Relationship, Resource
class ExternalBetaState(enum.Enum):
"""External beta state."""
PROCESSING = "PROCESSING"
PROCESSING_EXCEPTION = ... | 32.172414 | 81 | 0.758307 | 201 | 1,866 | 6.661692 | 0.283582 | 0.095594 | 0.053771 | 0.056759 | 0.40478 | 0.356983 | 0.356983 | 0.356983 | 0.285288 | 0.285288 | 0 | 0 | 0.156484 | 1,866 | 57 | 82 | 32.736842 | 0.850699 | 0.084673 | 0 | 0.368421 | 0 | 0 | 0.275862 | 0.116528 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.815789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e1284d4bbaf6bf582868bfb66265b4397932b66a | 385 | py | Python | scripts/compile-tests.py | PENGUINLIONG/liella | d0d4bc3e05419705712384b15d1c5db00ee12f73 | [
"Apache-2.0",
"MIT"
] | null | null | null | scripts/compile-tests.py | PENGUINLIONG/liella | d0d4bc3e05419705712384b15d1c5db00ee12f73 | [
"Apache-2.0",
"MIT"
] | null | null | null | scripts/compile-tests.py | PENGUINLIONG/liella | d0d4bc3e05419705712384b15d1c5db00ee12f73 | [
"Apache-2.0",
"MIT"
] | null | null | null | from os import listdir
import subprocess
for f in listdir("tests/vulkan"):
if f.endswith(".spv"):
continue
print(f"-- compiling test {f}")
p = subprocess.run(["glslangValidator", f"tests/vulkan/{f}", "-H", "-o", f"tests/vulkan/{f}.spv"], shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)... | 29.615385 | 162 | 0.644156 | 54 | 385 | 4.592593 | 0.574074 | 0.133065 | 0.096774 | 0.104839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003145 | 0.174026 | 385 | 12 | 163 | 32.083333 | 0.77673 | 0 | 0 | 0 | 0 | 0 | 0.241558 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e1297aff417ed953bdd6f0365aac41a401e15814 | 5,769 | py | Python | collections/nemo_asr/nemo_asr/parts/dataset.py | petermartigny/NeMo | b20821e637314940e36b63d32c601c43d1b74051 | [
"Apache-2.0"
] | 1 | 2020-03-22T11:23:11.000Z | 2020-03-22T11:23:11.000Z | collections/nemo_asr/nemo_asr/parts/dataset.py | petermartigny/NeMo | b20821e637314940e36b63d32c601c43d1b74051 | [
"Apache-2.0"
] | null | null | null | collections/nemo_asr/nemo_asr/parts/dataset.py | petermartigny/NeMo | b20821e637314940e36b63d32c601c43d1b74051 | [
"Apache-2.0"
] | 1 | 2020-08-25T06:43:34.000Z | 2020-08-25T06:43:34.000Z | # Taken straight from Patter https://github.com/ryanleary/patter
# TODO: review, and copyright and fix/add comments
import torch
from torch.utils.data import Dataset
from .manifest import Manifest
def seq_collate_fn(batch):
def find_max_len(seq, index):
max_len = -1
for item in seq:
i... | 39.244898 | 78 | 0.600277 | 722 | 5,769 | 4.648199 | 0.282548 | 0.011919 | 0.02503 | 0.008045 | 0.123361 | 0.075685 | 0.075685 | 0 | 0 | 0 | 0 | 0.017318 | 0.299359 | 5,769 | 146 | 79 | 39.513699 | 0.812964 | 0.281678 | 0 | 0.023256 | 0 | 0 | 0.031026 | 0 | 0 | 0 | 0 | 0.006849 | 0 | 1 | 0.069767 | false | 0 | 0.034884 | 0.011628 | 0.174419 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e129ccfbd3be47531b273fb3289a20523a49c675 | 5,277 | py | Python | HandSComp.py | CRZaug/NonlinearWaves | 2adfc2cc5e0c18576c6b73420a913ef1ce23000d | [
"MIT"
] | null | null | null | HandSComp.py | CRZaug/NonlinearWaves | 2adfc2cc5e0c18576c6b73420a913ef1ce23000d | [
"MIT"
] | null | null | null | HandSComp.py | CRZaug/NonlinearWaves | 2adfc2cc5e0c18576c6b73420a913ef1ce23000d | [
"MIT"
] | null | null | null | """
~~~ IMPORT EXPERIMENTAL DATA, PROCESS, AND NONDIMENSIONALIZE ~~~
This code reads in the rescaled Snodgrass data and compares parameters
to known parameters found in the Henderson and Segur paper.
1. Get distances
2. Read in the gauge data for each event (get frequencies and Fourier magnitudes)
3. Adjust the y ax... | 28.370968 | 95 | 0.548607 | 744 | 5,277 | 3.887097 | 0.33871 | 0.020747 | 0.013831 | 0.013485 | 0.106846 | 0.100277 | 0.086445 | 0.054633 | 0.030429 | 0.030429 | 0 | 0.047416 | 0.332575 | 5,277 | 185 | 96 | 28.524324 | 0.773708 | 0.312299 | 0 | 0.12 | 0 | 0 | 0.048699 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.01 | false | 0 | 0.08 | 0.01 | 0.1 | 0.11 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e12b12da65a67d3755d54e62e2738980186e27db | 15,542 | py | Python | src/services/explorer/core.py | solomonricky/epic-awesome-gamer | a6ecff90a716bb145931bb4042f9510e68698694 | [
"Apache-2.0"
] | null | null | null | src/services/explorer/core.py | solomonricky/epic-awesome-gamer | a6ecff90a716bb145931bb4042f9510e68698694 | [
"Apache-2.0"
] | null | null | null | src/services/explorer/core.py | solomonricky/epic-awesome-gamer | a6ecff90a716bb145931bb4042f9510e68698694 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Time : 2022/1/17 15:20
# Author : QIN2DIM
# Github : https://github.com/QIN2DIM
# Description:
import os.path
import time
from hashlib import sha256
from typing import List, Optional, Union, Dict
import cloudscraper
import yaml
from lxml import etree # skipcq: BAN-B410 - Ignore... | 33.786957 | 140 | 0.559452 | 1,631 | 15,542 | 5.133047 | 0.272839 | 0.020067 | 0.011467 | 0.015767 | 0.26517 | 0.218586 | 0.182155 | 0.167941 | 0.147874 | 0.122312 | 0 | 0.009858 | 0.334256 | 15,542 | 459 | 141 | 33.860566 | 0.798686 | 0.11929 | 0 | 0.160279 | 0 | 0.020906 | 0.128864 | 0.048296 | 0 | 0 | 0 | 0 | 0.055749 | 1 | 0.041812 | false | 0.003484 | 0.059233 | 0.003484 | 0.233449 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e12b30211ce2a1a3e4ccda61c62066c6b101ba25 | 7,312 | py | Python | model/utils.py | Tiamat-Tech/VAENAR-TTS | 69b6b5be1ab5168cfd3c6ab902075638e76a3b8d | [
"MIT"
] | 62 | 2021-07-15T10:09:56.000Z | 2022-03-31T02:53:09.000Z | model/utils.py | Tiamat-Tech/VAENAR-TTS | 69b6b5be1ab5168cfd3c6ab902075638e76a3b8d | [
"MIT"
] | 3 | 2021-07-19T14:45:26.000Z | 2022-03-31T02:38:57.000Z | model/utils.py | Tiamat-Tech/VAENAR-TTS | 69b6b5be1ab5168cfd3c6ab902075638e76a3b8d | [
"MIT"
] | 10 | 2021-07-19T03:20:44.000Z | 2022-02-21T07:07:38.000Z | import torch
import torch.nn as nn
from torch.nn import functional as F
class LinearNorm(nn.Module):
def __init__(self, in_features, out_features, activation=None,
use_bias=True, kernel_initializer='glorot_uniform', bias_initializer='zeros'):
super(LinearNorm, self).__init__()
... | 37.88601 | 112 | 0.583425 | 841 | 7,312 | 4.812128 | 0.154578 | 0.031628 | 0.021745 | 0.029652 | 0.475167 | 0.398073 | 0.342229 | 0.28169 | 0.229306 | 0.162095 | 0 | 0.016677 | 0.319338 | 7,312 | 192 | 113 | 38.083333 | 0.796464 | 0.021745 | 0 | 0.183007 | 0 | 0 | 0.012462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104575 | false | 0 | 0.019608 | 0 | 0.228758 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0100201d7067edc12b14792aa66df0f99a8f5f65 | 2,306 | py | Python | lib/galaxy/webapps/galaxy/services/jobs.py | itisAliRH/galaxy | b3b693ea0788f773442c8481472a87f43ccb10d7 | [
"CC-BY-3.0"
] | null | null | null | lib/galaxy/webapps/galaxy/services/jobs.py | itisAliRH/galaxy | b3b693ea0788f773442c8481472a87f43ccb10d7 | [
"CC-BY-3.0"
] | 6 | 2021-11-11T20:57:49.000Z | 2021-12-10T15:30:33.000Z | lib/galaxy/webapps/galaxy/services/jobs.py | itisAliRH/galaxy | b3b693ea0788f773442c8481472a87f43ccb10d7 | [
"CC-BY-3.0"
] | null | null | null | from enum import Enum
from typing import (
Any,
Dict,
)
from galaxy import (
exceptions,
model,
)
from galaxy.managers import hdas
from galaxy.managers.context import ProvidesUserContext
from galaxy.managers.jobs import (
JobManager,
JobSearch,
view_show_job,
)
from galaxy.schema.fields imp... | 28.469136 | 98 | 0.662186 | 265 | 2,306 | 5.532075 | 0.30566 | 0.040928 | 0.049113 | 0.057299 | 0.162347 | 0.140518 | 0.140518 | 0.084584 | 0.084584 | 0.084584 | 0 | 0 | 0.262359 | 2,306 | 80 | 99 | 28.825 | 0.861846 | 0 | 0 | 0.101449 | 0 | 0 | 0.039462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.115942 | 0 | 0.318841 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0101f0c173a9caa73adb1fcaf5f05657435355f6 | 1,984 | py | Python | tests/deephub/trainer/test_early_stopping.py | deeplab-ai/deephub | b1d271436fab69cdfad14f19fa2e29c5338f18d6 | [
"Apache-2.0"
] | 8 | 2019-10-17T12:46:13.000Z | 2020-03-12T08:09:40.000Z | tests/deephub/trainer/test_early_stopping.py | deeplab-ai/deephub | b1d271436fab69cdfad14f19fa2e29c5338f18d6 | [
"Apache-2.0"
] | 12 | 2019-10-22T13:11:56.000Z | 2022-02-10T00:23:30.000Z | tests/deephub/trainer/test_early_stopping.py | deeplab-ai/deephub | b1d271436fab69cdfad14f19fa2e29c5338f18d6 | [
"Apache-2.0"
] | 1 | 2019-10-17T13:21:27.000Z | 2019-10-17T13:21:27.000Z | import pytest
import numpy as np
from deephub.models.registry.toy import DebugToyModel
from deephub.models.feeders import MemorySamplesFeeder
from deephub.trainer import Trainer
@pytest.mark.slow
def test_early_stopping(tmpdir):
model_params = {
'type': 'toy:DebugToyModel',
'model_dir': str(tmpd... | 36.072727 | 107 | 0.594758 | 232 | 1,984 | 4.866379 | 0.418103 | 0.069088 | 0.030115 | 0.06023 | 0.253322 | 0.253322 | 0.178919 | 0.178919 | 0.178919 | 0.178919 | 0 | 0.037846 | 0.30746 | 1,984 | 54 | 108 | 36.740741 | 0.783843 | 0.076109 | 0 | 0.157895 | 0 | 0 | 0.158817 | 0.075575 | 0 | 0 | 0 | 0 | 0.026316 | 1 | 0.026316 | false | 0 | 0.131579 | 0 | 0.157895 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0104208de3be81be65db916a9965b3d5c0b060ef | 10,742 | py | Python | hf/protocol/frame.py | HashFast/hashfast-tools | 9617691ac997f12085b688c3ecc6746e8510976d | [
"BSD-3-Clause"
] | 1 | 2020-12-15T02:49:36.000Z | 2020-12-15T02:49:36.000Z | hf/protocol/frame.py | HashFast/hashfast-tools | 9617691ac997f12085b688c3ecc6746e8510976d | [
"BSD-3-Clause"
] | null | null | null | hf/protocol/frame.py | HashFast/hashfast-tools | 9617691ac997f12085b688c3ecc6746e8510976d | [
"BSD-3-Clause"
] | 3 | 2015-09-02T00:31:06.000Z | 2020-12-15T02:52:06.000Z | # Copyright (c) 2014, HashFast Technologies LLC
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of... | 41.474903 | 106 | 0.67129 | 1,465 | 10,742 | 4.771331 | 0.279181 | 0.026323 | 0.030043 | 0.016309 | 0.165236 | 0.11774 | 0.079256 | 0.060372 | 0.058226 | 0.030329 | 0 | 0.027394 | 0.231987 | 10,742 | 259 | 107 | 41.474903 | 0.819879 | 0.37749 | 0 | 0.134831 | 0 | 0 | 0.150621 | 0 | 0 | 0 | 0.001817 | 0 | 0.078652 | 1 | 0.08427 | false | 0.02809 | 0.016854 | 0 | 0.146067 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
010633c8fe4a1f8f50f2cbc160f034fdd91b60e5 | 11,162 | py | Python | src/command.py | 2minchul/chip-helper | 437d33938a19bab7e7380ff9dd0e7e98ec26fdb7 | [
"Apache-2.0"
] | 2 | 2020-05-12T06:11:39.000Z | 2020-07-17T10:45:20.000Z | src/command.py | 2minchul/chip-helper | 437d33938a19bab7e7380ff9dd0e7e98ec26fdb7 | [
"Apache-2.0"
] | 3 | 2021-06-08T21:30:59.000Z | 2022-03-12T00:28:26.000Z | src/command.py | 2minchul/chip-helper | 437d33938a19bab7e7380ff9dd0e7e98ec26fdb7 | [
"Apache-2.0"
] | null | null | null | import argparse
import os
import re
import sys
from operator import itemgetter
from typing import Optional
import sentry_sdk
import youtube_dl
from selenium.common.exceptions import SessionNotCreatedException
from cmd_tool import (
get_execution_path,
exit_enter,
get_input_path_or_exit,
get_chrome_dri... | 34.450617 | 110 | 0.610554 | 1,497 | 11,162 | 4.336673 | 0.213761 | 0.034196 | 0.032348 | 0.020025 | 0.255083 | 0.168361 | 0.138324 | 0.10382 | 0.094886 | 0.066081 | 0 | 0.010888 | 0.267694 | 11,162 | 323 | 111 | 34.557276 | 0.783337 | 0.003404 | 0 | 0.237548 | 0 | 0 | 0.186044 | 0.01097 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030651 | false | 0.011494 | 0.05364 | 0 | 0.091954 | 0.153257 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01092c860365112e2ab6bab4644a012763fb75a9 | 3,729 | py | Python | Soccer_league_project1.py | denisela1/Soccer_League_P1 | 5bc6de71259643ed2a6d9791ddbc70773f1c259d | [
"BSD-3-Clause-Clear"
] | 1 | 2018-02-26T08:47:15.000Z | 2018-02-26T08:47:15.000Z | Soccer_league_project1.py | denisela1/Soccer_League_P1 | 5bc6de71259643ed2a6d9791ddbc70773f1c259d | [
"BSD-3-Clause-Clear"
] | null | null | null | Soccer_league_project1.py | denisela1/Soccer_League_P1 | 5bc6de71259643ed2a6d9791ddbc70773f1c259d | [
"BSD-3-Clause-Clear"
] | null | null | null | import csv
#global variables for teams:
sharks = []
dragons = []
raptors = []
#read the csv file with the player info and create a player dictionary:
def read_players():
player_reader = csv.reader(open('soccer_players.csv'))
player_dictionary = {}
for row in player_reader:
key = row[0]
play... | 33.594595 | 97 | 0.61196 | 467 | 3,729 | 4.770878 | 0.246253 | 0.058348 | 0.046679 | 0.05386 | 0.302065 | 0.271095 | 0.235189 | 0.235189 | 0.235189 | 0.235189 | 0 | 0.01295 | 0.254492 | 3,729 | 110 | 98 | 33.9 | 0.788489 | 0.159024 | 0 | 0.235955 | 0 | 0 | 0.104033 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078652 | false | 0 | 0.011236 | 0 | 0.146067 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
010b4ad2a97b357a77ffe35ad3089e6223aec664 | 2,312 | py | Python | Gobot-Mecanum/robot.py | FRC1076/2019-Parade | 3824449ed10e33b401efb646fd2e6470c3941c8b | [
"MIT"
] | null | null | null | Gobot-Mecanum/robot.py | FRC1076/2019-Parade | 3824449ed10e33b401efb646fd2e6470c3941c8b | [
"MIT"
] | 2 | 2019-06-17T23:38:23.000Z | 2019-06-17T23:39:43.000Z | Gobot-Mecanum/robot.py | FRC1076/2019-Parade | 3824449ed10e33b401efb646fd2e6470c3941c8b | [
"MIT"
] | null | null | null | import wpilib
import wpilib.drive
import ctre
import robotmap
from wpilib.interfaces import GenericHID
RIGHT_HAND = GenericHID.Hand.kRight
LEFT_HAND = GenericHID.Hand.kLeft
class Robot(wpilib.TimedRobot):
def robotInit(self):
front_left_motor = ctre.WPI_TalonSRX(robotmap.mecanum['front_left_motor'])
... | 27.2 | 86 | 0.608564 | 263 | 2,312 | 5.174905 | 0.296578 | 0.052902 | 0.041146 | 0.05878 | 0.303453 | 0.303453 | 0.192506 | 0.063189 | 0 | 0 | 0 | 0.013333 | 0.286332 | 2,312 | 85 | 87 | 27.2 | 0.811515 | 0.061419 | 0 | 0.042553 | 0 | 0 | 0.03913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06383 | false | 0 | 0.106383 | 0 | 0.255319 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0118814a3663bee91c59984af98f47d72c8f9e4c | 2,555 | py | Python | machine-learning-and-ai/handwriting-classifier/neural_network_handwriting_classifier.py | fraserlove/python | b449259c02e73102e37a4cd42018dbcc6b04d0ba | [
"Apache-2.0"
] | 16 | 2020-06-11T16:54:55.000Z | 2022-01-07T01:36:05.000Z | machine-learning-and-ai/handwriting-classifier/neural_network_handwriting_classifier.py | fraserlove/python-projects | b449259c02e73102e37a4cd42018dbcc6b04d0ba | [
"Apache-2.0"
] | null | null | null | machine-learning-and-ai/handwriting-classifier/neural_network_handwriting_classifier.py | fraserlove/python-projects | b449259c02e73102e37a4cd42018dbcc6b04d0ba | [
"Apache-2.0"
] | 15 | 2020-06-14T08:29:50.000Z | 2021-08-05T17:25:42.000Z | import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets('MNIST_data', one_hot = True)
# Network hyperparameters
learning_rate = 0.0001 # 1.95 for sigmoid activation function
batch_size = 10
update_step = 10
input_nodes = 784 # 28x38 images as input
layer_1_... | 46.454545 | 132 | 0.768689 | 400 | 2,555 | 4.58 | 0.26 | 0.032751 | 0.052402 | 0.078603 | 0.260917 | 0.192686 | 0.167031 | 0.134279 | 0.134279 | 0.08952 | 0 | 0.033718 | 0.117808 | 2,555 | 54 | 133 | 47.314815 | 0.779059 | 0.065753 | 0 | 0 | 0 | 0 | 0.02521 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.047619 | 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 |
011929cc6bf535432cf049cfeb608476447f32f5 | 1,157 | py | Python | 202_happyNumber.py | stuti-rastogi/leetcode-python-solutions | 73593fe642a06a83cde974ba5e6de3a7b396ec84 | [
"MIT"
] | 4 | 2018-07-24T08:36:42.000Z | 2019-08-25T17:48:47.000Z | 202_happyNumber.py | stuti-rastogi/leetcodesolutions | 73593fe642a06a83cde974ba5e6de3a7b396ec84 | [
"MIT"
] | null | null | null | 202_happyNumber.py | stuti-rastogi/leetcodesolutions | 73593fe642a06a83cde974ba5e6de3a7b396ec84 | [
"MIT"
] | null | null | null | class Solution(object):
def isHappy(self, n):
"""
:type n: int
:rtype: bool
"""
seen = set()
while (True):
sumOfSquaredDigits = 0
while n > 0:
digit = n % 10
n = n // 10
sumOfSquaredDigits += digi... | 26.906977 | 46 | 0.395851 | 103 | 1,157 | 4.446602 | 0.339806 | 0.026201 | 0.030568 | 0.021834 | 0.030568 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027586 | 0.498704 | 1,157 | 43 | 47 | 26.906977 | 0.762069 | 0.503889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0 | 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 |
011b749c0cb7168d1d612e734d1940a1245eb56c | 9,091 | py | Python | entity.py | PIRXrav/pyhack | af5c86fb721053d8a3e819ab772c8144a23b86bf | [
"MIT"
] | null | null | null | entity.py | PIRXrav/pyhack | af5c86fb721053d8a3e819ab772c8144a23b86bf | [
"MIT"
] | null | null | null | entity.py | PIRXrav/pyhack | af5c86fb721053d8a3e819ab772c8144a23b86bf | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# pylint: disable=C0103
"""
Définie la classe entity
Permet de modeliser le personnage et des monstre
"""
from random import choice
from vect import Vect
from astar import calc_path_astart
import chars
class Player():
"""
Classe Player :
"""
BULLET_MAX = 10
HP_MAX = 10
... | 24.438172 | 79 | 0.494995 | 1,066 | 9,091 | 4.082552 | 0.206379 | 0.054688 | 0.035846 | 0.016085 | 0.29136 | 0.168658 | 0.144531 | 0.123392 | 0.085938 | 0.068015 | 0 | 0.014882 | 0.401276 | 9,091 | 371 | 80 | 24.504043 | 0.784678 | 0.146739 | 0 | 0.3125 | 0 | 0 | 0.009295 | 0 | 0 | 0 | 0 | 0.002695 | 0.015625 | 1 | 0.15625 | false | 0.010417 | 0.020833 | 0.010417 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
011dbd3f8e4f3dc4a3cd128fe4d90224e86d26f2 | 3,488 | py | Python | apps/Ipo.py | KiloSat/FirstNivesh | 0fe200e08bb9f7d89de91f59eb14448fa7b972b9 | [
"MIT"
] | null | null | null | apps/Ipo.py | KiloSat/FirstNivesh | 0fe200e08bb9f7d89de91f59eb14448fa7b972b9 | [
"MIT"
] | null | null | null | apps/Ipo.py | KiloSat/FirstNivesh | 0fe200e08bb9f7d89de91f59eb14448fa7b972b9 | [
"MIT"
] | 2 | 2021-04-03T16:39:23.000Z | 2021-08-15T08:09:21.000Z | import streamlit as st
def app():
import plotly.express as px
import plotly.graph_objects as go
from textblob import TextBlob
import tweepy
import sys
import pandas as pd
api_key = 'q7QHHHAKEwd5igoUvVrx5sCiw'
api_secret_key = 'i7uhcFirM38bnbYscv32beJnMpsmMxFdYSHitwfSCPIeMj7L... | 35.591837 | 109 | 0.610952 | 375 | 3,488 | 5.549333 | 0.322667 | 0.047573 | 0.033157 | 0.025949 | 0.203748 | 0.180682 | 0.169149 | 0.169149 | 0.169149 | 0.169149 | 0 | 0.024537 | 0.287271 | 3,488 | 97 | 110 | 35.958763 | 0.81255 | 0.059633 | 0 | 0.253333 | 0 | 0 | 0.157332 | 0.053493 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.093333 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
011ec6d9a369d9cd8fa960e87d7fc5aabbdb09f6 | 2,447 | py | Python | tests/test_unit_varfilter.py | gomibaya/pyVarfilter | 098414223e575dda3fabe7b8ccb1b16f6f8da3a0 | [
"MIT"
] | null | null | null | tests/test_unit_varfilter.py | gomibaya/pyVarfilter | 098414223e575dda3fabe7b8ccb1b16f6f8da3a0 | [
"MIT"
] | null | null | null | tests/test_unit_varfilter.py | gomibaya/pyVarfilter | 098414223e575dda3fabe7b8ccb1b16f6f8da3a0 | [
"MIT"
] | null | null | null | import unittest
import logging
from varfilter import varfilter, filter
class TestVarfilter(unittest.TestCase):
def setUp(self):
print("Preparando el contexto")
self.source1 = {"teststr1": "Value teststr1",
"testint1": 10}
self.source2 = {"teststr2": "Value teststr2... | 34.464789 | 73 | 0.495709 | 224 | 2,447 | 5.28125 | 0.28125 | 0.053254 | 0.05579 | 0.08115 | 0.487743 | 0.398986 | 0.326289 | 0.174979 | 0.071006 | 0 | 0 | 0.021008 | 0.416428 | 2,447 | 70 | 74 | 34.957143 | 0.807423 | 0 | 0 | 0.288136 | 0 | 0 | 0.211279 | 0 | 0 | 0 | 0 | 0 | 0.101695 | 1 | 0.118644 | false | 0 | 0.050847 | 0 | 0.186441 | 0.118644 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01203f70632858bfabcba480840b28432e8c773f | 4,989 | py | Python | tests/test_extensions/test_arithmatex.py | pawamoy/pymdown-extensions | 90de4c0c52456751141e898af3941c729914a80e | [
"MIT"
] | null | null | null | tests/test_extensions/test_arithmatex.py | pawamoy/pymdown-extensions | 90de4c0c52456751141e898af3941c729914a80e | [
"MIT"
] | null | null | null | tests/test_extensions/test_arithmatex.py | pawamoy/pymdown-extensions | 90de4c0c52456751141e898af3941c729914a80e | [
"MIT"
] | null | null | null | """Test cases for Arithmatex."""
from .. import util
class TestArithmatexLimit(util.MdCase):
"""Test limiting Arithmatex inline and block inputs."""
extension = [
'pymdownx.arithmatex'
]
extension_configs = {'pymdownx.arithmatex': {'inline_syntax': ['round'], 'block_syntax': ['square']}}
... | 28.83815 | 371 | 0.453999 | 596 | 4,989 | 3.651007 | 0.152685 | 0.016544 | 0.022059 | 0.074449 | 0.692096 | 0.557904 | 0.479779 | 0.451287 | 0.37454 | 0.37454 | 0 | 0.043044 | 0.357386 | 4,989 | 172 | 372 | 29.005814 | 0.635683 | 0.119062 | 0 | 0.585714 | 0 | 0 | 0.060268 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.014286 | 0 | 0.257143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0121afa2ee5440a70a9a651bed1ddda312a2e7ae | 891 | py | Python | code/roman2int.py | wp-lai/xpython | 3d90362e56173052d8dd66817feffd67dc07db91 | [
"MIT"
] | 5 | 2016-11-17T07:35:05.000Z | 2018-04-07T16:34:16.000Z | code/roman2int.py | wp-lai/xpython | 3d90362e56173052d8dd66817feffd67dc07db91 | [
"MIT"
] | null | null | null | code/roman2int.py | wp-lai/xpython | 3d90362e56173052d8dd66817feffd67dc07db91 | [
"MIT"
] | null | null | null | """
Task:
Given a roman numeral, convert it to an integer.
Input is guaranteed to be within the range from 1 to 3999.
Symbol Value
I 1 (unus)
V 5 (quinque)
X 10 (decem)
L 50 (quinquaginta)
C 100 (centum)
D 500 (quingenti)
M 1,000 (mille)
>>> roman_to_int("DCXXI")
621
>>> roman_to_int("VI")
6
>>> roman_to_int... | 18.183673 | 62 | 0.539843 | 139 | 891 | 3.302158 | 0.496403 | 0.106754 | 0.152505 | 0.091503 | 0.082789 | 0.082789 | 0 | 0 | 0 | 0 | 0 | 0.083861 | 0.290685 | 891 | 48 | 63 | 18.5625 | 0.642405 | 0.464646 | 0 | 0.25 | 0 | 0 | 0.031983 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01243d69b6f9b70a1311214737f35975b0a644a4 | 2,082 | py | Python | test/test_upstream.py | bninja/rump | 3b6c4ff29974b3c04a260d8275567beebb296e5d | [
"0BSD"
] | 6 | 2015-07-27T09:02:36.000Z | 2018-07-18T11:11:33.000Z | test/test_upstream.py | bninja/rump | 3b6c4ff29974b3c04a260d8275567beebb296e5d | [
"0BSD"
] | null | null | null | test/test_upstream.py | bninja/rump | 3b6c4ff29974b3c04a260d8275567beebb296e5d | [
"0BSD"
] | null | null | null | import mock
import pytest
from rump import parser, Server, Upstream, Selection, exc
@pytest.fixture
def parse():
return parser.for_upstream()
def test_upstream_valid(parse):
cases = [
('hi',
Upstream(Selection(Server('http', 'hi'), 1))),
('https://hi',
Upstream(Selection(S... | 28.135135 | 66 | 0.583573 | 250 | 2,082 | 4.792 | 0.24 | 0.100167 | 0.062604 | 0.070117 | 0.416528 | 0.339733 | 0.265442 | 0.265442 | 0.265442 | 0.213689 | 0 | 0.041069 | 0.263208 | 2,082 | 73 | 67 | 28.520548 | 0.739896 | 0 | 0 | 0.2 | 0 | 0.016667 | 0.14073 | 0.013449 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.1 | false | 0 | 0.05 | 0.016667 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
012579b5541f7896f0ff2928c89b8dec890eb8d1 | 414 | py | Python | Ago-Dic-2020/sena-martinez-angel-david/Primer Parcial/Gui.py | bryanbalderas/DAS_Sistemas | 1e31f088c0de7134471025a5730b0abfc19d936e | [
"MIT"
] | 41 | 2017-09-26T09:36:32.000Z | 2022-03-19T18:05:25.000Z | Ago-Dic-2020/sena-martinez-angel-david/Primer Parcial/Gui.py | bryanbalderas/DAS_Sistemas | 1e31f088c0de7134471025a5730b0abfc19d936e | [
"MIT"
] | 67 | 2017-09-11T05:06:12.000Z | 2022-02-14T04:44:04.000Z | Ago-Dic-2020/sena-martinez-angel-david/Primer Parcial/Gui.py | bryanbalderas/DAS_Sistemas | 1e31f088c0de7134471025a5730b0abfc19d936e | [
"MIT"
] | 210 | 2017-09-01T00:10:08.000Z | 2022-03-19T18:05:12.000Z | from tkinter import *
from tkinter.ttk import *
# creando ventana tkinter
root = Tk()
# Agregando herramientas a la ventana
Label(root, text = 'PuntosExtra', font =(
'Verdana', 15)).pack(side = TOP, pady = 10)
# Insertando la imagen de login
foto = PhotoImage(file = r"C:\Users\david\OneDrive\Imágenes\lo... | 25.875 | 72 | 0.669082 | 56 | 414 | 4.946429 | 0.75 | 0.079422 | 0.079422 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012012 | 0.195652 | 414 | 16 | 73 | 25.875 | 0.81982 | 0.217391 | 0 | 0 | 0 | 0 | 0.218069 | 0.130841 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 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 |
012711b60afee7420df0f399f035f95d78d3df36 | 2,200 | py | Python | custom/ewsghana/urls.py | johan--/commcare-hq | 86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd | [
"BSD-3-Clause"
] | null | null | null | custom/ewsghana/urls.py | johan--/commcare-hq | 86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd | [
"BSD-3-Clause"
] | 1 | 2022-03-12T01:03:25.000Z | 2022-03-12T01:03:25.000Z | custom/ewsghana/urls.py | johan--/commcare-hq | 86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd | [
"BSD-3-Clause"
] | null | null | null | from django.conf.urls import patterns, url, include
from corehq.apps.api.urls import CommCareHqApi
from custom.ewsghana.resources.v0_1 import EWSLocationResource
from custom.ewsghana.views import EWSConfigView, EWSGlobalStats, InputStockView, EWSUserExtensionView, \
DashboardRedirectReportView
hq_api = CommCareHqA... | 64.705882 | 108 | 0.753636 | 299 | 2,200 | 5.150502 | 0.270903 | 0.051948 | 0.027273 | 0.031169 | 0.038961 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002481 | 0.084091 | 2,200 | 33 | 109 | 66.666667 | 0.761787 | 0.009091 | 0 | 0 | 0 | 0 | 0.487144 | 0.269972 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.137931 | 0 | 0.137931 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01274e1a8dfe413246f9258fed40ee9356e14195 | 9,288 | py | Python | ee559/hw2/classifier.py | chenying-wang/usc-ee-coursework-public | 5bc94c2350bcebf1036fb058fe7dc4f7e31e1de1 | [
"MIT"
] | 1 | 2021-03-24T10:46:20.000Z | 2021-03-24T10:46:20.000Z | ee559/hw2/classifier.py | chenying-wang/usc-ee-coursework-public | 5bc94c2350bcebf1036fb058fe7dc4f7e31e1de1 | [
"MIT"
] | null | null | null | ee559/hw2/classifier.py | chenying-wang/usc-ee-coursework-public | 5bc94c2350bcebf1036fb058fe7dc4f7e31e1de1 | [
"MIT"
] | 1 | 2021-03-25T09:18:45.000Z | 2021-03-25T09:18:45.000Z | import numpy as np
from scipy.spatial.distance import cdist
import sys
from plot_area import plot_area
COLOR = ['tab:blue', 'tab:orange', 'tab:green']
class BaseClassifier:
d = -1
c = -1
def __init__(self, d):
super().__init__()
if (d <= 0):
raise RuntimeError("Classifier.D/... | 42.605505 | 135 | 0.602498 | 1,117 | 9,288 | 4.815577 | 0.135184 | 0.089236 | 0.04908 | 0.017847 | 0.429634 | 0.32032 | 0.242052 | 0.176427 | 0.16267 | 0.137758 | 0 | 0.013461 | 0.280146 | 9,288 | 217 | 136 | 42.801843 | 0.791056 | 0 | 0 | 0.25 | 0 | 0 | 0.051141 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.022222 | 0.011111 | 0.261111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0127942a3e99b818d3bf03948c616cc5027b74c1 | 1,920 | py | Python | Web/discussManager.py | cmd2001/Open-TesutoHime | 2c30aa35650383adfb99496aebd425dffd287eda | [
"MIT"
] | 11 | 2020-11-28T16:45:35.000Z | 2021-08-31T07:56:26.000Z | Web/discussManager.py | cmd2001/Open-TesutoHime | 2c30aa35650383adfb99496aebd425dffd287eda | [
"MIT"
] | null | null | null | Web/discussManager.py | cmd2001/Open-TesutoHime | 2c30aa35650383adfb99496aebd425dffd287eda | [
"MIT"
] | 2 | 2021-05-16T03:09:58.000Z | 2021-08-21T07:24:58.000Z | import sys
from utils import *
class DiscussManager:
def add_discuss(self, problem_id: int, username: str, data: str):
db = db_connect()
cursor = db.cursor()
try:
cursor.execute("INSERT INTO Discuss(Problem_ID, Username, Data, Time) VALUES(%s, %s, %s, %s)",
... | 32 | 106 | 0.577604 | 231 | 1,920 | 4.666667 | 0.242424 | 0.050093 | 0.05102 | 0.07885 | 0.601113 | 0.553803 | 0.509276 | 0.465677 | 0.465677 | 0.450835 | 0 | 0.000758 | 0.3125 | 1,920 | 59 | 107 | 32.542373 | 0.815909 | 0 | 0 | 0.568627 | 0 | 0.019608 | 0.203125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098039 | false | 0 | 0.039216 | 0 | 0.254902 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0128d2dc205aef3ebf52d764565e44d09f889dd0 | 1,977 | py | Python | casimir/force_calc/force_calc_mc.py | charlesblakemore/opt_lev_analysis | 704f174e9860907de349688ed82b5812bbb07c2d | [
"MIT"
] | null | null | null | casimir/force_calc/force_calc_mc.py | charlesblakemore/opt_lev_analysis | 704f174e9860907de349688ed82b5812bbb07c2d | [
"MIT"
] | null | null | null | casimir/force_calc/force_calc_mc.py | charlesblakemore/opt_lev_analysis | 704f174e9860907de349688ed82b5812bbb07c2d | [
"MIT"
] | 1 | 2019-11-27T19:10:25.000Z | 2019-11-27T19:10:25.000Z | import math, sys, random, mcint
from scipy import integrate
import numpy as np
gap = float(sys.argv[1])
lam = float(sys.argv[2])
print(gap, lam)
## calculate the yukawa force over a distributed test mass assumed to be cube
D = 5 # diameter of bead (um)
rhob = 2e3 # density bead (kg/m^3)
rhoa = 19.3e3 # density attr... | 27.082192 | 121 | 0.616591 | 335 | 1,977 | 3.59403 | 0.39403 | 0.009967 | 0.022425 | 0.019934 | 0.116279 | 0.053156 | 0 | 0 | 0 | 0 | 0 | 0.051735 | 0.227618 | 1,977 | 72 | 122 | 27.458333 | 0.736739 | 0.273141 | 0 | 0 | 0 | 0 | 0.009168 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068182 | false | 0 | 0.068182 | 0.022727 | 0.181818 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
012a1022a18b104991ad25c5bfeca0df7e5858c1 | 8,823 | py | Python | robot-server/robot_server/robot/calibration/tip_length/user_flow.py | Axel-Jacobsen/opentrons | c543d95c25003f2e784560efaa6a91f051d4cd33 | [
"Apache-2.0"
] | 1 | 2022-03-17T20:38:04.000Z | 2022-03-17T20:38:04.000Z | robot-server/robot_server/robot/calibration/tip_length/user_flow.py | Axel-Jacobsen/opentrons | c543d95c25003f2e784560efaa6a91f051d4cd33 | [
"Apache-2.0"
] | null | null | null | robot-server/robot_server/robot/calibration/tip_length/user_flow.py | Axel-Jacobsen/opentrons | c543d95c25003f2e784560efaa6a91f051d4cd33 | [
"Apache-2.0"
] | null | null | null | import logging
from typing import (
Dict, Awaitable, Callable, Any, Set, List, Optional,
TYPE_CHECKING)
from opentrons.types import Mount, Point, Location
from opentrons.config import feature_flags as ff
from opentrons.hardware_control import ThreadManager, CriticalPoint
from opentrons.protocol_api import labwa... | 38.867841 | 99 | 0.656693 | 1,070 | 8,823 | 5.062617 | 0.217757 | 0.031013 | 0.026398 | 0.014399 | 0.1235 | 0.062212 | 0.045228 | 0.03286 | 0.03286 | 0.017353 | 0 | 0.003733 | 0.271336 | 8,823 | 226 | 100 | 39.039823 | 0.838855 | 0.043749 | 0 | 0.011696 | 0 | 0 | 0.016605 | 0.002602 | 0 | 0 | 0 | 0.004425 | 0.011696 | 1 | 0.05848 | false | 0.005848 | 0.093567 | 0.017544 | 0.204678 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
012c3b0eb2f715797ab316942c7962c44dea54d6 | 1,885 | py | Python | dj_warning_forms/forms.py | dnmellen/dj-warning-forms | 25213821f41ad6864cb7eda7bd2f6640d4418561 | [
"BSD-3-Clause"
] | 3 | 2022-03-15T09:09:08.000Z | 2022-03-23T12:30:47.000Z | dj_warning_forms/forms.py | dnmellen/dj-warning-forms | 25213821f41ad6864cb7eda7bd2f6640d4418561 | [
"BSD-3-Clause"
] | 1 | 2022-03-16T08:04:07.000Z | 2022-03-18T21:18:38.000Z | dj_warning_forms/forms.py | dnmellen/dj-warning-forms | 25213821f41ad6864cb7eda7bd2f6640d4418561 | [
"BSD-3-Clause"
] | null | null | null | from collections import namedtuple
import inspect
from django import forms
FormFieldWarning = namedtuple("FormFieldWarning", ["message", "description"])
class WarningFormMixin:
"""Classes using WarningFormMixin should implement methods to catch warnings
>>> def warning_mailboxes(self) -> List[FormFieldWarn... | 33.660714 | 80 | 0.523607 | 158 | 1,885 | 6.06962 | 0.398734 | 0.052138 | 0.050052 | 0.039625 | 0.043796 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000867 | 0.388329 | 1,885 | 55 | 81 | 34.272727 | 0.830876 | 0.111406 | 0 | 0.047619 | 0 | 0 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0.02381 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01314db002cc9b5ea847e74d9af1164332434719 | 8,791 | py | Python | ai/ai.py | TED-996/pro-evolution-foosball | ced46dd7340664d7c7ca7679c6582c7636e2c2a8 | [
"MIT"
] | null | null | null | ai/ai.py | TED-996/pro-evolution-foosball | ced46dd7340664d7c7ca7679c6582c7636e2c2a8 | [
"MIT"
] | null | null | null | ai/ai.py | TED-996/pro-evolution-foosball | ced46dd7340664d7c7ca7679c6582c7636e2c2a8 | [
"MIT"
] | null | null | null | from numpy import array, arange, argmax
from numpy.random import choice
from itertools import product
from ai.NN import NN
import pickle
from random import random, randrange, randint
from collections import deque
from math import floor
class AI:
MEMORY_DIMENSION = 90000
def __init__(self, load: bool = False,... | 41.079439 | 110 | 0.615402 | 1,167 | 8,791 | 4.407883 | 0.17395 | 0.052877 | 0.034992 | 0.046656 | 0.335148 | 0.220062 | 0.188958 | 0.122278 | 0.122278 | 0.106726 | 0 | 0.014098 | 0.289956 | 8,791 | 213 | 111 | 41.2723 | 0.809997 | 0.118303 | 0 | 0.144654 | 0 | 0 | 0.017972 | 0 | 0 | 0 | 0 | 0.004695 | 0.012579 | 1 | 0.09434 | false | 0 | 0.050314 | 0.006289 | 0.232704 | 0.012579 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01343ef465fcba8903301425b1e7414924d1fd27 | 1,686 | py | Python | Shared_Files/Music_Pallete.py | EricCacciavillani/LyreBird | 858657faef39d1adcba19ff0213210ba490b4afa | [
"MIT"
] | 1 | 2019-05-04T02:34:20.000Z | 2019-05-04T02:34:20.000Z | Shared_Files/Music_Pallete.py | EricCacciavillani/LyreBird | 858657faef39d1adcba19ff0213210ba490b4afa | [
"MIT"
] | null | null | null | Shared_Files/Music_Pallete.py | EricCacciavillani/LyreBird | 858657faef39d1adcba19ff0213210ba490b4afa | [
"MIT"
] | 1 | 2019-04-04T19:14:09.000Z | 2019-04-04T19:14:09.000Z | import pretty_midi
import sys
import numpy as np
from tqdm import tqdm
from collections import Counter
sys.path.append('..')
from Pre_Production.Midi_Pre_Processor import *
from Shared_Files.Global_Util import *
class MusicPallete:
def __init__(self, pre_processor_obj):
self.__all_possible_instr_note_pai... | 33.058824 | 129 | 0.682681 | 230 | 1,686 | 4.491304 | 0.317391 | 0.182962 | 0.163601 | 0.101646 | 0.376573 | 0.322362 | 0.236205 | 0.166505 | 0.166505 | 0.075508 | 0 | 0.00546 | 0.23962 | 1,686 | 51 | 129 | 33.058824 | 0.800312 | 0.027877 | 0 | 0 | 0 | 0 | 0.003667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.212121 | 0 | 0.272727 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0139cdb76dae20ff11cf54b33120c3d867395d2f | 9,566 | py | Python | GoogleCalendar.py | InRong/Glance | cc15659436bba2b4bee396b4a3e595a157f31401 | [
"Apache-2.0"
] | null | null | null | GoogleCalendar.py | InRong/Glance | cc15659436bba2b4bee396b4a3e595a157f31401 | [
"Apache-2.0"
] | null | null | null | GoogleCalendar.py | InRong/Glance | cc15659436bba2b4bee396b4a3e595a157f31401 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#
# Module for adding Google Calendar Functionality.
#
# by Peter Juett
# References:https://developers.google.com/calendar/quickstart/python
#
# Copyright 2018
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
#... | 37.810277 | 146 | 0.569935 | 1,094 | 9,566 | 4.817185 | 0.294333 | 0.03074 | 0.041746 | 0.042505 | 0.098292 | 0.053131 | 0.024288 | 0.024288 | 0.024288 | 0.018216 | 0 | 0.008301 | 0.332532 | 9,566 | 252 | 147 | 37.960317 | 0.817071 | 0.147292 | 0 | 0.096774 | 0 | 0.006452 | 0.105112 | 0.009726 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070968 | false | 0.012903 | 0.109677 | 0 | 0.212903 | 0.006452 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
013c7f4681cad6f22cf85afe8bfe0932af367f65 | 6,940 | py | Python | postprocessing/science/compute_diff_seissol_data.py | jrekoske/SeisSol | 63087cf5fabc6e1b09a4d6b1e0ac46aaee2a1dfe | [
"BSD-3-Clause"
] | null | null | null | postprocessing/science/compute_diff_seissol_data.py | jrekoske/SeisSol | 63087cf5fabc6e1b09a4d6b1e0ac46aaee2a1dfe | [
"BSD-3-Clause"
] | null | null | null | postprocessing/science/compute_diff_seissol_data.py | jrekoske/SeisSol | 63087cf5fabc6e1b09a4d6b1e0ac46aaee2a1dfe | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
import h5py
import numpy as np
import argparse
import os
import seissolxdmf as sx
import seissolxdmfwriter as sw
# These 2 latter modules are on pypi (e.g. pip install seissolxdmf)
def read_reshape2d(sx, dataname):
"""read seissol dataset
and if there is only one time stamp
create... | 31.689498 | 97 | 0.65072 | 987 | 6,940 | 4.488349 | 0.303951 | 0.018962 | 0.019187 | 0.01535 | 0.079458 | 0.058691 | 0.058691 | 0.043341 | 0.017156 | 0.017156 | 0 | 0.034987 | 0.221614 | 6,940 | 218 | 98 | 31.834862 | 0.78508 | 0.138905 | 0 | 0.125 | 0 | 0.00625 | 0.116978 | 0.011036 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04375 | false | 0 | 0.05 | 0.00625 | 0.14375 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
013f03299525978dd3d212a41f6f91fa29b63b14 | 1,262 | py | Python | classes/announcement.py | jamflcjamflc/TopRace | 5c02941c8787884302a91f33f6b26bbdc13d79ce | [
"Apache-2.0"
] | null | null | null | classes/announcement.py | jamflcjamflc/TopRace | 5c02941c8787884302a91f33f6b26bbdc13d79ce | [
"Apache-2.0"
] | null | null | null | classes/announcement.py | jamflcjamflc/TopRace | 5c02941c8787884302a91f33f6b26bbdc13d79ce | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf8 -*-
# announcement
# helper class for toprace
# Alfredo Martin 2021
import pygame
version = 'announcement.v.1.0.0'
class Announcement:
def __init__(self, screen=None, text='', time=5, color=(255, 0, 0)):
"""initiallizes the Announcement instance
screen: pygame canvas instance... | 28.681818 | 80 | 0.594295 | 164 | 1,262 | 4.439024 | 0.487805 | 0.020604 | 0.049451 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024636 | 0.292393 | 1,262 | 43 | 81 | 29.348837 | 0.790594 | 0.333597 | 0 | 0 | 0 | 0 | 0.04799 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.045455 | 0 | 0.227273 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
013f53227578c72e73628747ce0b65e0ad1aa92b | 3,633 | py | Python | policies/regularizers.py | IST-DASLab/ACDC | ac53210b6adc1f2506ff909de08172ed9cad25d5 | [
"Apache-2.0"
] | 6 | 2021-11-26T01:21:03.000Z | 2022-01-10T15:41:50.000Z | policies/regularizers.py | IST-DASLab/ACDC | ac53210b6adc1f2506ff909de08172ed9cad25d5 | [
"Apache-2.0"
] | 1 | 2021-11-28T10:51:08.000Z | 2021-11-30T01:30:29.000Z | policies/regularizers.py | IST-DASLab/ACDC | ac53210b6adc1f2506ff909de08172ed9cad25d5 | [
"Apache-2.0"
] | 1 | 2021-12-21T13:25:43.000Z | 2021-12-21T13:25:43.000Z | """
Implement regularization policies here
"""
import torch
import torch.nn as nn
from policies.policy import PolicyBase
import logging
def build_reg_from_config(model, reg_config):
"""
This function build regularizer given the model (only need for weigths typically)
and regularizer configuration.
""... | 33.330275 | 93 | 0.624002 | 444 | 3,633 | 4.880631 | 0.290541 | 0.029072 | 0.016613 | 0.024919 | 0.23258 | 0.222427 | 0.214121 | 0.115367 | 0.115367 | 0.115367 | 0 | 0.007061 | 0.25929 | 3,633 | 109 | 94 | 33.330275 | 0.798216 | 0.219378 | 0 | 0.290323 | 0 | 0 | 0.075368 | 0.009191 | 0 | 0 | 0 | 0 | 0 | 1 | 0.145161 | false | 0.016129 | 0.064516 | 0 | 0.33871 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
014128990469de76bed3ac346da105ea98a96243 | 5,527 | py | Python | web_api/bearings/resources/inventory.py | zhanghe06/flask_restful | 6ef54f3f7efbbaff6169e963dcf45ab25e11e593 | [
"MIT"
] | 1 | 2020-12-04T03:15:47.000Z | 2020-12-04T03:15:47.000Z | web_api/bearings/resources/inventory.py | zhanghe06/flask_restful | 6ef54f3f7efbbaff6169e963dcf45ab25e11e593 | [
"MIT"
] | 1 | 2021-06-01T22:24:27.000Z | 2021-06-01T22:24:27.000Z | web_api/bearings/resources/inventory.py | zhanghe06/flask_restful | 6ef54f3f7efbbaff6169e963dcf45ab25e11e593 | [
"MIT"
] | 2 | 2020-12-04T03:16:18.000Z | 2021-09-04T14:10:12.000Z | #!/usr/bin/env python
# encoding: utf-8
"""
@author: zhanghe
@software: PyCharm
@file: inventory.py
@time: 2018-06-28 00:22
"""
from __future__ import unicode_literals
from flask import jsonify, make_response
from flask_restful import Resource, marshal, reqparse
from web_api.bearings.outputs.inventory import field... | 30.368132 | 106 | 0.616971 | 636 | 5,527 | 5.089623 | 0.216981 | 0.014829 | 0.014829 | 0.024714 | 0.612913 | 0.587272 | 0.525178 | 0.492122 | 0.480383 | 0.434971 | 0 | 0.029486 | 0.28207 | 5,527 | 181 | 107 | 30.535912 | 0.78629 | 0.227248 | 0 | 0.388235 | 0 | 0 | 0.025493 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070588 | false | 0 | 0.105882 | 0 | 0.341176 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01417896f15a60c73ebefea3a8b55b1d8117b7c4 | 2,141 | py | Python | bob/db/swan/query_bio.py | bioidiap/bob.db.swan | 676510d47cb08b65be04f51d45746127c36bf2ce | [
"BSD-3-Clause"
] | null | null | null | bob/db/swan/query_bio.py | bioidiap/bob.db.swan | 676510d47cb08b65be04f51d45746127c36bf2ce | [
"BSD-3-Clause"
] | null | null | null | bob/db/swan/query_bio.py | bioidiap/bob.db.swan | 676510d47cb08b65be04f51d45746127c36bf2ce | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# from bob.bio.spear.database import AudioBioFile
import bob.bio.base
import bob.io.base
import bob.io.video
from bob.extension import rc
from .common import SwanVideoFile, SwanAudioFile, SwanVideoDatabase
# class SwanAudioBioFile(SwanAudioFile, AudioBioFile):
# """SwanAudioBioFile are vide... | 38.927273 | 79 | 0.683793 | 239 | 2,141 | 5.92887 | 0.401674 | 0.012703 | 0.025406 | 0.021171 | 0.064926 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.229799 | 2,141 | 54 | 80 | 39.648148 | 0.859309 | 0.218589 | 0 | 0.058824 | 0 | 0 | 0.03961 | 0.028641 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.176471 | 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 |
014639d9ec97c6ecdda8d9da8e1c9b7abc9b6d28 | 2,008 | py | Python | scripts/smilx_pv_visualisation.py | aneube/smili-spine | 3cd8f95077d4bc1f5ac6146bc5356c3131f22e4b | [
"BSD-2-Clause"
] | 17 | 2015-03-09T19:22:07.000Z | 2021-05-24T20:25:08.000Z | scripts/smilx_pv_visualisation.py | oddway/smili | 4205b08e5fdcf5ae4fa94747a6dbeac0bb5e0cf0 | [
"BSD-2-Clause"
] | 16 | 2015-08-20T03:30:15.000Z | 2019-10-22T12:21:14.000Z | scripts/smilx_pv_visualisation.py | oddway/smili | 4205b08e5fdcf5ae4fa94747a6dbeac0bb5e0cf0 | [
"BSD-2-Clause"
] | 11 | 2015-06-22T00:11:01.000Z | 2021-12-26T21:29:52.000Z | #!/usr/bin/smilx
'''=========================================================================
The Software is copyright (c) Commonwealth Scientific and Industrial Research Organisation (CSIRO)
ABN 41 687 119 230.
All rights reserved.
Licensed under the CSIRO BSD 3-Clause License
You may not use this file exc... | 38.615385 | 149 | 0.728586 | 264 | 2,008 | 5.507576 | 0.590909 | 0.034388 | 0.017882 | 0.042641 | 0.060523 | 0.060523 | 0.060523 | 0 | 0 | 0 | 0 | 0.012557 | 0.12749 | 2,008 | 51 | 150 | 39.372549 | 0.817352 | 0.553287 | 0 | 0 | 0 | 0 | 0.159375 | 0.128125 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0148eac89948dbf7e99bb94cb77565537c9937b2 | 6,869 | py | Python | binary_eight_queens_enhanced_num.py | MiniMarvin/oito-rainhas | 67be60d798a99ac218b2bbc53eabf47a563dce7b | [
"MIT"
] | null | null | null | binary_eight_queens_enhanced_num.py | MiniMarvin/oito-rainhas | 67be60d798a99ac218b2bbc53eabf47a563dce7b | [
"MIT"
] | null | null | null | binary_eight_queens_enhanced_num.py | MiniMarvin/oito-rainhas | 67be60d798a99ac218b2bbc53eabf47a563dce7b | [
"MIT"
] | null | null | null | import random
import math
from collections import OrderedDict
class BinaryEightQueensEnhancedNum:
def __init__(self, populationSize, crossOverMethod=1, selectMethod=1, mutationMethod=1, entireFit=False):
'''
inicializa a classe.
@params populationSize o tamanho da população.
'''
... | 32.709524 | 125 | 0.526569 | 676 | 6,869 | 5.344675 | 0.217456 | 0.065873 | 0.017714 | 0.018267 | 0.27152 | 0.234154 | 0.174094 | 0.158594 | 0.122336 | 0.09189 | 0 | 0.023624 | 0.365264 | 6,869 | 209 | 126 | 32.866029 | 0.805046 | 0.086767 | 0 | 0.232394 | 0 | 0 | 0.006225 | 0 | 0 | 0 | 0 | 0.004785 | 0 | 1 | 0.084507 | false | 0.007042 | 0.021127 | 0 | 0.190141 | 0.014085 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
014a513ce67d34f43fbb3d224139ad39fdd0d756 | 639 | py | Python | problems/07/solution_07.py | r1cc4rdo/daily_coding_problem | 6ac85309fad2f64231ac7ab94aa4158e18bdec40 | [
"Unlicense"
] | 158 | 2018-01-25T06:33:30.000Z | 2022-03-14T23:18:05.000Z | problems/07/solution_07.py | r1cc4rdo/daily_coding_problem | 6ac85309fad2f64231ac7ab94aa4158e18bdec40 | [
"Unlicense"
] | 9 | 2018-07-04T00:31:57.000Z | 2020-05-16T21:02:30.000Z | problems/07/solution_07.py | r1cc4rdo/daily_coding_problem | 6ac85309fad2f64231ac7ab94aa4158e18bdec40 | [
"Unlicense"
] | 50 | 2018-06-22T16:48:44.000Z | 2022-01-11T16:45:48.000Z | def coding_problem_07(s):
"""
Given the mapping a = 1, b = 2, ... z = 26, and an encoded message, count the number of ways it can be decoded.
Examples:
>>> coding_problem_07('111') # possible interpretations: 'aaa', 'ka', 'ak'
3
>>> coding_problem_07('2626') # 'zz', 'zbf', 'bfz', 'bfbf'
4... | 26.625 | 115 | 0.610329 | 89 | 639 | 4.202247 | 0.741573 | 0.139037 | 0.160428 | 0.085562 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051653 | 0.242567 | 639 | 23 | 116 | 27.782609 | 0.721074 | 0.410016 | 0 | 0 | 0 | 0 | 0.02346 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
014ca2e3d1790bdd33dbe16cd9e24261132907eb | 5,160 | py | Python | ph5/utilities/tests/test_seg2toph5.py | iris-edu-int/PH5 | 2056191ec3db1dbcbbd18facba56750d3c5cc5b4 | [
"MIT"
] | 21 | 2016-12-07T20:09:31.000Z | 2022-03-07T22:23:57.000Z | ph5/utilities/tests/test_seg2toph5.py | iris-edu-int/PH5 | 2056191ec3db1dbcbbd18facba56750d3c5cc5b4 | [
"MIT"
] | 395 | 2016-11-03T03:43:55.000Z | 2022-03-08T20:54:22.000Z | ph5/utilities/tests/test_seg2toph5.py | iris-edu-int/PH5 | 2056191ec3db1dbcbbd18facba56750d3c5cc5b4 | [
"MIT"
] | 6 | 2016-10-25T22:22:38.000Z | 2021-05-10T18:19:45.000Z | '''
Tests for seg2toph5
'''
import os
import sys
import unittest
import logging
from mock import patch
from testfixtures import OutputCapture, LogCapture
from ph5.utilities import seg2toph5, initialize_ph5
from ph5.core.tests.test_base import LogTestCase, TempDirTestCase,\
initialize_ex
from ph5.core import ph5ap... | 43 | 77 | 0.605426 | 640 | 5,160 | 4.517188 | 0.270313 | 0.088551 | 0.044275 | 0.027672 | 0.39744 | 0.386372 | 0.352473 | 0.273954 | 0.273954 | 0.273954 | 0 | 0.137931 | 0.28062 | 5,160 | 119 | 78 | 43.361345 | 0.640894 | 0.03876 | 0 | 0.340426 | 0 | 0 | 0.300525 | 0.079022 | 0 | 0 | 0 | 0 | 0.053191 | 1 | 0.031915 | false | 0 | 0.095745 | 0 | 0.138298 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
014d7f5347c2db899cb4f07a82d8e90ce6a5c1f4 | 1,251 | py | Python | zcash/test_node.py | gwynethallwright/cs291d_project | 7d9bbb32acec855e777b93b88153869393d458d3 | [
"Apache-2.0"
] | null | null | null | zcash/test_node.py | gwynethallwright/cs291d_project | 7d9bbb32acec855e777b93b88153869393d458d3 | [
"Apache-2.0"
] | null | null | null | zcash/test_node.py | gwynethallwright/cs291d_project | 7d9bbb32acec855e777b93b88153869393d458d3 | [
"Apache-2.0"
] | null | null | null | import time
from zcash.node import *
node1 = Node(8002, "node 1")
node1.start()
# wait for string
time.sleep(2)
node1.print_blockchain()
time.sleep(2)
node2 = Node(8003, "node 2")
node2.start()
# wait for string
time.sleep(2)
node2.print_blockchain()
node1.get_balance()
node2.get_balance()
# node1 mint and... | 18.397059 | 118 | 0.751399 | 211 | 1,251 | 4.255924 | 0.255924 | 0.060134 | 0.066815 | 0.066815 | 0.347439 | 0.302895 | 0.302895 | 0.240535 | 0.146993 | 0.146993 | 0 | 0.068284 | 0.110312 | 1,251 | 67 | 119 | 18.671642 | 0.738544 | 0.242206 | 0 | 0.5 | 0 | 0 | 0.012793 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
014f313e34df031bf86f179460a6096cdeb0e1a1 | 535 | py | Python | hr_timesheet_invoice_release/account_invoice.py | sunflowerit/odoo-modules | 77e11c4868c3f94c031542b48e5d83797cf4a28d | [
"MIT"
] | null | null | null | hr_timesheet_invoice_release/account_invoice.py | sunflowerit/odoo-modules | 77e11c4868c3f94c031542b48e5d83797cf4a28d | [
"MIT"
] | 4 | 2016-10-19T17:01:04.000Z | 2018-01-12T18:34:58.000Z | hr_timesheet_invoice_release/account_invoice.py | sunflowerit/odoo-modules | 77e11c4868c3f94c031542b48e5d83797cf4a28d | [
"MIT"
] | 1 | 2018-03-08T16:23:52.000Z | 2018-03-08T16:23:52.000Z | # -*- coding: utf-8 -*-
# © 2017 Sunflower IT (http://sunflowerweb.nl)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from openerp import fields, models, api, _
from openerp.exceptions import Warning
class AccountInvoice(models.Model):
_inherit = 'account.invoice'
@api.multi
def release... | 29.722222 | 72 | 0.665421 | 69 | 535 | 5.043478 | 0.782609 | 0.063218 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015909 | 0.17757 | 535 | 17 | 73 | 31.470588 | 0.772727 | 0.239252 | 0 | 0 | 0 | 0 | 0.141439 | 0.052109 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | 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 |
01507b0361d9bced76109c780b90eccee027d206 | 4,205 | py | Python | blocklenium/selenium_worker.py | jpunkt/blocklenium | dbe81b900d9c9781443d2cac2920815cb5f0a779 | [
"MIT"
] | null | null | null | blocklenium/selenium_worker.py | jpunkt/blocklenium | dbe81b900d9c9781443d2cac2920815cb5f0a779 | [
"MIT"
] | 1 | 2020-07-17T10:11:42.000Z | 2020-07-17T14:44:59.000Z | blocklenium/selenium_worker.py | jpunkt/blocklenium | dbe81b900d9c9781443d2cac2920815cb5f0a779 | [
"MIT"
] | null | null | null | import configparser
import logging
import threading
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium import webdriver
logger = logging.getLogger(__name__)
class SeleniumWorker(threading.... | 36.885965 | 75 | 0.572889 | 435 | 4,205 | 5.416092 | 0.37931 | 0.095076 | 0.02674 | 0.023769 | 0.078098 | 0.040747 | 0.040747 | 0.040747 | 0.040747 | 0 | 0 | 0.002171 | 0.342687 | 4,205 | 113 | 76 | 37.212389 | 0.850217 | 0.14459 | 0 | 0.08 | 0 | 0 | 0.13644 | 0.024705 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0.026667 | 0.093333 | 0 | 0.146667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0150a51530726ef3c2430cedd19b6ce0d322142d | 1,595 | py | Python | setup.py | LaudateCorpus1/evohome-async | 333223df05b7881d6d9b831eb41d209846dd9a98 | [
"Apache-2.0"
] | 2 | 2020-11-18T14:33:49.000Z | 2021-12-27T14:52:54.000Z | setup.py | LaudateCorpus1/evohome-async | 333223df05b7881d6d9b831eb41d209846dd9a98 | [
"Apache-2.0"
] | 4 | 2021-03-10T16:54:31.000Z | 2022-01-21T10:16:33.000Z | setup.py | LaudateCorpus1/evohome-async | 333223df05b7881d6d9b831eb41d209846dd9a98 | [
"Apache-2.0"
] | 9 | 2020-12-06T08:07:45.000Z | 2022-02-08T07:03:53.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
"""The setup.py file."""
import os
import sys
from setuptools import find_packages, setup
from setuptools.command.install import install
VERSION = "0.3.15"
URL = "https://github.com/zxdavb/evohome-async"
with open("README.md", "r") as fh:
LONG_DESCRIPTION = fh.re... | 28.482143 | 86 | 0.648276 | 195 | 1,595 | 5.235897 | 0.651282 | 0.058766 | 0.01763 | 0.058766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008703 | 0.207524 | 1,595 | 55 | 87 | 29 | 0.799051 | 0.077743 | 0 | 0 | 0 | 0 | 0.387517 | 0.020576 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0.1 | 0 | 0.15 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01584c384f8f8eea463542d1db5fde7c51f316cc | 3,166 | py | Python | yubin/__init__.py | mritu301/NLP-Labeling | 403b06c25984646be9ed8f37c5777d32acc3dec1 | [
"MIT"
] | 3 | 2019-10-28T00:07:25.000Z | 2020-01-17T05:25:08.000Z | yubin/__init__.py | alvations/yubin | 403b06c25984646be9ed8f37c5777d32acc3dec1 | [
"MIT"
] | null | null | null | yubin/__init__.py | alvations/yubin | 403b06c25984646be9ed8f37c5777d32acc3dec1 | [
"MIT"
] | null | null | null | import re
from itertools import chain
from collections import defaultdict, namedtuple
import pandas as pd
from tqdm import tqdm
Address = namedtuple('Address', ['to', 'kai', 'ku', 'mune', 'chome', 'ban',
'go', 'postal', 'endgo', 'tokens'])
class Postman:
"""
Converts Japanese... | 40.075949 | 93 | 0.549905 | 372 | 3,166 | 4.580645 | 0.317204 | 0.091549 | 0.035211 | 0.026408 | 0.036972 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01153 | 0.287745 | 3,166 | 78 | 94 | 40.589744 | 0.736142 | 0.126027 | 0 | 0 | 0 | 0 | 0.132721 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051724 | false | 0.017241 | 0.086207 | 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 |
015973c0cde41c6d39371ea08957e73b3b7deff2 | 476 | py | Python | setup.py | vmraid/vitalpbx | 3debc302763e53393ccb9610cb117a7d4872d59a | [
"MIT"
] | null | null | null | setup.py | vmraid/vitalpbx | 3debc302763e53393ccb9610cb117a7d4872d59a | [
"MIT"
] | null | null | null | setup.py | vmraid/vitalpbx | 3debc302763e53393ccb9610cb117a7d4872d59a | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
with open('requirements.txt') as f:
install_requires = f.read().strip().split('\n')
# get version from __version__ variable in vitalpbx/__init__.py
from vitalpbx import __version__ as version
setup(
name='vitalpbx',
version=version,
description='Something',
author='So... | 23.8 | 63 | 0.781513 | 62 | 476 | 5.66129 | 0.645161 | 0.128205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105042 | 476 | 19 | 64 | 25.052632 | 0.823944 | 0.128151 | 0 | 0 | 0 | 0 | 0.152542 | 0.050847 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
015a892c046052f40a511917cfd969000101e5c9 | 8,215 | py | Python | onionstudio.py | jarret/onionstudio | 5ebf0a75cf1e7960822c96a987668be5ed82aa41 | [
"MIT"
] | 11 | 2020-01-09T19:48:20.000Z | 2020-11-21T19:59:36.000Z | onionstudio.py | jarret/onionstudio | 5ebf0a75cf1e7960822c96a987668be5ed82aa41 | [
"MIT"
] | null | null | null | onionstudio.py | jarret/onionstudio | 5ebf0a75cf1e7960822c96a987668be5ed82aa41 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# Copyright (c) 2020 Jarret Dyrbye
# Distributed under the MIT software license, see the accompanying
# file LICENSE or http://www.opensource.org/licenses/mit-license.php
import time
import sys
import json
import argparse
from twisted.internet import reactor
from twisted.internet.task import Loo... | 37.340909 | 79 | 0.597687 | 925 | 8,215 | 5.100541 | 0.262703 | 0.015897 | 0.013565 | 0.012081 | 0.228487 | 0.114879 | 0.067825 | 0.067825 | 0.019076 | 0 | 0 | 0.009352 | 0.21899 | 8,215 | 219 | 80 | 37.511416 | 0.725998 | 0.03031 | 0 | 0.057325 | 0 | 0 | 0.136039 | 0 | 0 | 0 | 0 | 0 | 0.006369 | 1 | 0.10828 | false | 0 | 0.095541 | 0 | 0.242038 | 0.089172 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
015a901776e9ca3956396eb5890b4a755eb6a932 | 4,078 | py | Python | mavsim_holodeck/rosflight_holodeck.py | sethmnielsen/mavsim_template_files | 453ec4f7d38fc2d1162198b554834b5bdb7de96f | [
"MIT"
] | null | null | null | mavsim_holodeck/rosflight_holodeck.py | sethmnielsen/mavsim_template_files | 453ec4f7d38fc2d1162198b554834b5bdb7de96f | [
"MIT"
] | null | null | null | mavsim_holodeck/rosflight_holodeck.py | sethmnielsen/mavsim_template_files | 453ec4f7d38fc2d1162198b554834b5bdb7de96f | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from __future__ import print_function
from rosflight_holodeck_interface import ROSflightHolodeck
import numpy as np
import matplotlib.pyplot as plt
from tqdm import tqdm
import time
import holodeck
from holodeck import agents
from holodeck.environments import *
from holodeck import sensors
from I... | 34.268908 | 92 | 0.540216 | 563 | 4,078 | 3.83659 | 0.358792 | 0.022222 | 0.018056 | 0.007407 | 0.052778 | 0.040741 | 0.024074 | 0 | 0 | 0 | 0 | 0.076166 | 0.327121 | 4,078 | 119 | 93 | 34.268908 | 0.711006 | 0.212849 | 0 | 0.101124 | 0 | 0 | 0.038014 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.146067 | 0 | 0.146067 | 0.033708 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
015c37dadd907a823b8a57e0e66db4c591cdd0d4 | 3,294 | py | Python | pyinsar/processing/discovery/coherence.py | MITeaps/pyinsar | 4d22e3ef90ef842d6b390074a8b5deedc7658a2b | [
"MIT"
] | 8 | 2019-03-15T19:51:27.000Z | 2022-02-16T07:27:36.000Z | pyinsar/processing/discovery/coherence.py | MITeaps/pyinsar | 4d22e3ef90ef842d6b390074a8b5deedc7658a2b | [
"MIT"
] | 1 | 2022-02-08T03:48:56.000Z | 2022-02-09T01:33:27.000Z | pyinsar/processing/discovery/coherence.py | MITeaps/pyinsar | 4d22e3ef90ef842d6b390074a8b5deedc7658a2b | [
"MIT"
] | 2 | 2021-01-12T05:32:21.000Z | 2021-01-13T08:35:26.000Z | # The MIT License (MIT)
# Copyright (c) 2017 Massachusetts Institute of Technology
#
# Authors: Cody Rude
# This software is part of the NSF DIBBS Project "An Infrastructure for
# Computer Aided Discovery in Geoscience" (PI: V. Pankratius) and
# NASA AIST Project "Computer-Aided Discovery of Earth Surface
# Deformation... | 38.302326 | 104 | 0.697936 | 415 | 3,294 | 5.433735 | 0.489157 | 0.039024 | 0.031042 | 0.015965 | 0.022173 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00479 | 0.239526 | 3,294 | 85 | 105 | 38.752941 | 0.895409 | 0.575896 | 0 | 0 | 0 | 0 | 0.012618 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.190476 | 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 |
015dfc2575ba43d461c6f8e236abfb9df3bf731f | 997 | py | Python | conf.py | Kurento/doc-fiware | 053537edec34fff65e7044f0310ac8c539e011a7 | [
"Apache-2.0"
] | null | null | null | conf.py | Kurento/doc-fiware | 053537edec34fff65e7044f0310ac8c539e011a7 | [
"Apache-2.0"
] | 1 | 2018-11-22T12:48:37.000Z | 2018-11-22T12:48:37.000Z | conf.py | Kurento/doc-fiware | 053537edec34fff65e7044f0310ac8c539e011a7 | [
"Apache-2.0"
] | 3 | 2018-05-13T09:46:50.000Z | 2018-12-31T13:06:48.000Z | # -*- coding: utf-8 -*-
#
# on_rtd is whether we are on readthedocs.org
import os
import sys
sys.path.insert(0, os.path.abspath('.'))
sys.path.append(os.path.abspath('extensions'))
extensions = [
'sphinx.ext.graphviz',
'sphinx.ext.todo',
'wikipedia',
'examplecode'
]
on_rtd = os.environ.get('READTHEDOC... | 24.925 | 82 | 0.706118 | 143 | 997 | 4.713287 | 0.503497 | 0.066766 | 0.103858 | 0.053412 | 0.218101 | 0.115727 | 0.115727 | 0 | 0 | 0 | 0 | 0.002384 | 0.158475 | 997 | 39 | 83 | 25.564103 | 0.800954 | 0.357071 | 0 | 0 | 0 | 0 | 0.434231 | 0.0729 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.086957 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
015e1ccb959f266ccad863b921198255b5930975 | 2,372 | py | Python | Day21/dice.py | squidbot/aoc2021 | aae5cf2017562150ec01d6cce5200ebc2b02f19d | [
"MIT"
] | null | null | null | Day21/dice.py | squidbot/aoc2021 | aae5cf2017562150ec01d6cce5200ebc2b02f19d | [
"MIT"
] | null | null | null | Day21/dice.py | squidbot/aoc2021 | aae5cf2017562150ec01d6cce5200ebc2b02f19d | [
"MIT"
] | null | null | null | test_input = [4, 8]
puzzle_input = [4, 9]
def part1():
position = puzzle_input
score = [0,0]
die_roll = 0
num_rolls = 0
cur_player = 0
while True:
die_total = 0
for _ in range(3):
num_rolls += 1
die_roll += 1
if die_roll > 100:
... | 32.493151 | 124 | 0.544266 | 304 | 2,372 | 4.013158 | 0.190789 | 0.139344 | 0.083607 | 0.068852 | 0.459836 | 0.411475 | 0.411475 | 0.411475 | 0.411475 | 0.411475 | 0 | 0.063523 | 0.356239 | 2,372 | 72 | 125 | 32.944444 | 0.735429 | 0.002951 | 0 | 0.311475 | 0 | 0 | 0.022429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032787 | false | 0 | 0.016393 | 0 | 0.04918 | 0.032787 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0163e63b0f0a4b6a54cef6dce6ac42cdbc68fb82 | 1,200 | py | Python | tests/test_write_simple.py | ZELLMECHANIK-DRESDEN/fcswrite | 3b696a0fd4a34f7d3999d4e28bd7981fe38494d2 | [
"BSD-3-Clause"
] | 8 | 2018-03-15T00:04:47.000Z | 2021-11-15T09:32:18.000Z | tests/test_write_simple.py | ZELLMECHANIK-DRESDEN/fcswrite | 3b696a0fd4a34f7d3999d4e28bd7981fe38494d2 | [
"BSD-3-Clause"
] | 6 | 2017-05-03T10:19:55.000Z | 2021-11-17T01:57:56.000Z | tests/test_write_simple.py | ZELLMECHANIK-DRESDEN/fcswrite | 3b696a0fd4a34f7d3999d4e28bd7981fe38494d2 | [
"BSD-3-Clause"
] | 2 | 2018-06-28T19:18:01.000Z | 2018-11-05T15:20:04.000Z | import hashlib
import os
import tempfile
import numpy as np
import fcswrite
def test_write_fcs():
"""test that fcm can read the data files"""
fname = tempfile.mktemp(suffix=".fcs", prefix="write_test")
data = 1.0*np.arange(400).reshape((100, 4))
chn_names = ['cha', 'chb', 'ch3', 'ch4']
# monkey-... | 27.906977 | 69 | 0.615833 | 149 | 1,200 | 4.798658 | 0.563758 | 0.083916 | 0.064336 | 0.083916 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048533 | 0.261667 | 1,200 | 42 | 70 | 28.571429 | 0.758465 | 0.13 | 0 | 0 | 0 | 0 | 0.083092 | 0.030918 | 0 | 0 | 0 | 0 | 0.032258 | 1 | 0.032258 | false | 0 | 0.16129 | 0 | 0.193548 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0165ca0a608b2f11c5571565ecd2b89540a7f4ec | 1,810 | py | Python | adam_visual_perception/preprocessor.py | isi-vista/adam-visual-perception | 8ad6ed883b184b5407a1bf793617b226c78b3a13 | [
"MIT"
] | 1 | 2020-07-21T10:52:26.000Z | 2020-07-21T10:52:26.000Z | adam_visual_perception/preprocessor.py | isi-vista/adam-visual-perception | 8ad6ed883b184b5407a1bf793617b226c78b3a13 | [
"MIT"
] | null | null | null | adam_visual_perception/preprocessor.py | isi-vista/adam-visual-perception | 8ad6ed883b184b5407a1bf793617b226c78b3a13 | [
"MIT"
] | 2 | 2020-07-21T15:30:42.000Z | 2021-01-20T21:54:09.000Z | from moviepy.editor import VideoFileClip
from datetime import datetime
import numpy as np
import time
import os
def manage_time(timestamp):
"""
Given the string representation of a the time using the
"minutes:seconds[:miliseconds]" representation, returns the number
of seconds using double precision
... | 29.672131 | 83 | 0.654696 | 242 | 1,810 | 4.756198 | 0.433884 | 0.048653 | 0.07298 | 0.033015 | 0.045178 | 0.045178 | 0.045178 | 0 | 0 | 0 | 0 | 0.011687 | 0.243646 | 1,810 | 60 | 84 | 30.166667 | 0.829072 | 0.21989 | 0 | 0 | 0 | 0 | 0.092972 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.138889 | 0 | 0.25 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0166496ddadc3242ff31aa5f6df7726900b884d0 | 505 | py | Python | test/demo-random.py | ruth-ann/snap-python | fe98de7b5697b3d60eb3497893e24801ae1916f9 | [
"BSD-3-Clause"
] | 242 | 2015-01-01T08:40:28.000Z | 2022-03-18T05:22:09.000Z | test/demo-random.py | ruth-ann/snap-python | fe98de7b5697b3d60eb3497893e24801ae1916f9 | [
"BSD-3-Clause"
] | 99 | 2015-01-24T07:55:27.000Z | 2021-10-30T18:20:13.000Z | test/demo-random.py | ruth-ann/snap-python | fe98de7b5697b3d60eb3497893e24801ae1916f9 | [
"BSD-3-Clause"
] | 105 | 2015-03-03T06:45:17.000Z | 2022-02-24T15:52:40.000Z | import snap
G = snap.GenFull(snap.PNEANet, 100)
# get a new random generator, provide the seed value
Rnd = snap.TRnd(42)
# randomize the generator, every execution will produce a different sequence.
# Comment out the line to get the same sequence on every execution.
Rnd.Randomize()
for i in range(0,10):
# provi... | 25.25 | 77 | 0.724752 | 79 | 505 | 4.632911 | 0.670886 | 0.081967 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019753 | 0.19802 | 505 | 19 | 78 | 26.578947 | 0.883951 | 0.645545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0168c916329d1339e42f8c2b7773aa690c463962 | 3,562 | py | Python | smdebug/core/logger.py | jsspric/sagemaker-debugger | d7010869e19ae49c4f371935f27afcb585195f79 | [
"Apache-2.0"
] | 133 | 2019-12-03T18:56:27.000Z | 2022-03-18T19:54:49.000Z | smdebug/core/logger.py | jsspric/sagemaker-debugger | d7010869e19ae49c4f371935f27afcb585195f79 | [
"Apache-2.0"
] | 384 | 2019-12-04T03:04:14.000Z | 2022-03-31T20:42:48.000Z | smdebug/core/logger.py | jsspric/sagemaker-debugger | d7010869e19ae49c4f371935f27afcb585195f79 | [
"Apache-2.0"
] | 64 | 2019-12-05T20:39:51.000Z | 2022-03-25T13:30:54.000Z | # Standard Library
import logging
import os
import socket
import sys
from collections import defaultdict
# First Party
from smdebug.core.config_constants import LOG_DUPLICATION_THRESHOLD
_logger_initialized = False
class MaxLevelFilter(logging.Filter):
"""Filters (lets through) all messages with level < LEVEL""... | 31.803571 | 91 | 0.635598 | 412 | 3,562 | 5.300971 | 0.313107 | 0.054945 | 0.021978 | 0.034799 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001145 | 0.264458 | 3,562 | 111 | 92 | 32.09009 | 0.832443 | 0.110051 | 0 | 0.075 | 0 | 0 | 0.091976 | 0.03457 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075 | false | 0 | 0.075 | 0.0125 | 0.225 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
016a2008401fbef8b48e430f13646f4e48a823a9 | 1,292 | py | Python | datacube_classification/models.py | brazil-data-cube/datacube-classification | 727c045c58c06fd87cb26d408201e34b9e471e9c | [
"MIT"
] | 2 | 2021-04-20T03:26:50.000Z | 2021-04-20T21:20:27.000Z | datacube_classification/models.py | brazil-data-cube/datacube-classification | 727c045c58c06fd87cb26d408201e34b9e471e9c | [
"MIT"
] | 2 | 2021-04-20T03:14:09.000Z | 2021-04-20T03:14:53.000Z | datacube_classification/models.py | brazil-data-cube/datacube-classification | 727c045c58c06fd87cb26d408201e34b9e471e9c | [
"MIT"
] | null | null | null | #
# This file is part of datacube-classification
# Copyright (C) 2021 INPE.
#
# datacube-classification Library is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
#
"""classification models module"""
import pandas as pd
def train_sklear... | 35.888889 | 120 | 0.745356 | 178 | 1,292 | 5.314607 | 0.522472 | 0.125793 | 0.046512 | 0.05074 | 0.069767 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003813 | 0.188081 | 1,292 | 35 | 121 | 36.914286 | 0.897998 | 0.732972 | 0 | 0 | 0 | 0 | 0.017921 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
016d5efe3c27993b8afc080b9aed799c0438da3c | 2,304 | py | Python | main.py | RushanNotOfficial/adminweapons | d9738fb0302b64ef7d54b22b14e913d1ff7de79e | [
"Apache-2.0"
] | 1 | 2021-09-17T17:13:10.000Z | 2021-09-17T17:13:10.000Z | main.py | RushanNotOfficial/adminweapons | d9738fb0302b64ef7d54b22b14e913d1ff7de79e | [
"Apache-2.0"
] | null | null | null | main.py | RushanNotOfficial/adminweapons | d9738fb0302b64ef7d54b22b14e913d1ff7de79e | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 RushanNotOfficial#1146. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 53.581395 | 150 | 0.601997 | 287 | 2,304 | 4.801394 | 0.494774 | 0.043541 | 0.018868 | 0.023222 | 0.055152 | 0.055152 | 0.055152 | 0.055152 | 0.055152 | 0 | 0 | 0.007524 | 0.307726 | 2,304 | 43 | 151 | 53.581395 | 0.856426 | 0.589844 | 0 | 0.117647 | 0 | 0 | 0.067107 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.117647 | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
016d6e7e508bdd3f4bc8579c90a03098e462920c | 1,076 | py | Python | src/classes/widgets/engine_gauge.py | bergthor13/VehicleGPS | 643413b3cb910102689081d692223a4a03fccea4 | [
"MIT"
] | 3 | 2019-06-21T23:39:22.000Z | 2020-08-17T03:39:04.000Z | src/classes/widgets/engine_gauge.py | bergthor13/VehicleGPS | 643413b3cb910102689081d692223a4a03fccea4 | [
"MIT"
] | null | null | null | src/classes/widgets/engine_gauge.py | bergthor13/VehicleGPS | 643413b3cb910102689081d692223a4a03fccea4 | [
"MIT"
] | 1 | 2020-02-04T16:13:06.000Z | 2020-02-04T16:13:06.000Z | """File containing a class for the main gauge."""
from tkinter import font, Label, Frame
from classes.widgets.main_gauge import MainGauge
from classes.pub_sub import Subscriber
class EngineGauge(MainGauge, Subscriber):
"""
A gauge that displays the speed, acceleration and average speed.
"""
def __... | 32.606061 | 72 | 0.572491 | 125 | 1,076 | 4.8 | 0.424 | 0.1 | 0.16 | 0.065 | 0.145 | 0.145 | 0.145 | 0 | 0 | 0 | 0 | 0.002681 | 0.306691 | 1,076 | 33 | 73 | 32.606061 | 0.798928 | 0.100372 | 0 | 0.26087 | 0 | 0 | 0.055085 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.130435 | 0 | 0.26087 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0170b972d86c93a3e3cdb19cde4605229cdb91d4 | 4,358 | py | Python | packages/augur-core/tests/gov/test_gov.py | jeremyschlatter/augur | 4dbfe476905c1c032231ac18b5e4e9cb817c90d4 | [
"MIT"
] | 3 | 2021-05-10T06:44:19.000Z | 2021-06-16T00:04:27.000Z | packages/augur-core/tests/gov/test_gov.py | Penny-Admixture/augur | 374366d15f455a1814cc1d10b1219455a9ac71d0 | [
"MIT"
] | null | null | null | packages/augur-core/tests/gov/test_gov.py | Penny-Admixture/augur | 374366d15f455a1814cc1d10b1219455a9ac71d0 | [
"MIT"
] | 1 | 2021-04-02T12:47:01.000Z | 2021-04-02T12:47:01.000Z | from eth_tester.exceptions import TransactionFailed
from utils import captureFilteredLogs, AssertLog, nullAddress, TokenDelta, PrintGasUsed
from pytest import raises, mark
pytestmark = mark.skip(reason="We might not even need governance and currently dont account for transfering ownership")
def test_gov(contractsFixt... | 39.981651 | 172 | 0.750344 | 463 | 4,358 | 7.021598 | 0.311015 | 0.027684 | 0.069209 | 0.083667 | 0.334359 | 0.277453 | 0.188865 | 0.188865 | 0.188865 | 0.188865 | 0 | 0.033 | 0.151675 | 4,358 | 108 | 173 | 40.351852 | 0.846362 | 0.113355 | 0 | 0.066667 | 0 | 0 | 0.089987 | 0.050975 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.016667 | false | 0 | 0.05 | 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 |
01718641d209b93e71922a83a09841a7c405d585 | 3,153 | py | Python | setup.py | insolor/pymorphy2 | 92d546f042ff14601376d3646242908d5ab786c1 | [
"MIT"
] | 859 | 2015-01-05T00:48:23.000Z | 2022-03-19T07:42:23.000Z | setup.py | insolor/pymorphy2 | 92d546f042ff14601376d3646242908d5ab786c1 | [
"MIT"
] | 106 | 2015-01-03T12:21:56.000Z | 2022-03-30T11:07:46.000Z | setup.py | insolor/pymorphy2 | 92d546f042ff14601376d3646242908d5ab786c1 | [
"MIT"
] | 118 | 2015-01-05T21:10:35.000Z | 2022-03-15T14:29:29.000Z | #!/usr/bin/env python
import sys
import platform
from setuptools import setup
# from Cython.Build import cythonize
def get_version():
with open("pymorphy2/version.py", "rt") as f:
return f.readline().split("=")[1].strip(' "\n')
# TODO: use environment markres instead of Python code in order to
# allow b... | 31.217822 | 96 | 0.625119 | 351 | 3,153 | 5.507123 | 0.450142 | 0.098293 | 0.129333 | 0.067253 | 0.098293 | 0.030005 | 0.030005 | 0 | 0 | 0 | 0 | 0.02814 | 0.222328 | 3,153 | 100 | 97 | 31.53 | 0.760196 | 0.232794 | 0 | 0.03125 | 0 | 0 | 0.503543 | 0.032097 | 0 | 0 | 0 | 0.01 | 0 | 1 | 0.015625 | false | 0 | 0.046875 | 0 | 0.078125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01737ac1253524fca8701279c0c0189f76386d90 | 8,031 | py | Python | habitat/tasks/rearrange/utils.py | elombardi2/habitat-lab | 02326fffe1c781fda69b23d7d89ac6d11bd37ca2 | [
"MIT"
] | null | null | null | habitat/tasks/rearrange/utils.py | elombardi2/habitat-lab | 02326fffe1c781fda69b23d7d89ac6d11bd37ca2 | [
"MIT"
] | null | null | null | habitat/tasks/rearrange/utils.py | elombardi2/habitat-lab | 02326fffe1c781fda69b23d7d89ac6d11bd37ca2 | [
"MIT"
] | 1 | 2021-09-09T08:15:24.000Z | 2021-09-09T08:15:24.000Z | #!/usr/bin/env python3
# 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.
import hashlib
import os
import os.path as osp
import pickle
import time
import attr
import gym
import magnum as mn
imp... | 28.784946 | 78 | 0.625949 | 1,142 | 8,031 | 4.162872 | 0.24606 | 0.020194 | 0.018511 | 0.013462 | 0.092764 | 0.056374 | 0.022297 | 0.022297 | 0.022297 | 0 | 0 | 0.014022 | 0.271822 | 8,031 | 278 | 79 | 28.888489 | 0.798906 | 0.087536 | 0 | 0.054187 | 0 | 0 | 0.041049 | 0.007002 | 0 | 0 | 0 | 0 | 0.004926 | 1 | 0.108374 | false | 0 | 0.064039 | 0.024631 | 0.330049 | 0.019704 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0174f6ef49b2600601fc8286f239c0c51ed868ee | 1,867 | py | Python | 0382_LinkedListRandomNode/python/solution.py | jeffvswanson/LeetCode | 6bc7d6cad3c2b1bd6ccb2616ec081fb5eb51ccc8 | [
"MIT"
] | null | null | null | 0382_LinkedListRandomNode/python/solution.py | jeffvswanson/LeetCode | 6bc7d6cad3c2b1bd6ccb2616ec081fb5eb51ccc8 | [
"MIT"
] | null | null | null | 0382_LinkedListRandomNode/python/solution.py | jeffvswanson/LeetCode | 6bc7d6cad3c2b1bd6ccb2616ec081fb5eb51ccc8 | [
"MIT"
] | null | null | null | """
382. Linked List Random Node
Given a singly linked list, return a random node's value from the linked list. Each node
must have the same probability of being chosen.
Implement the Solution class:
Solution(ListNode head) Initializes the object with the integer array nums.
int getRandom() Chooses a node ran... | 28.723077 | 88 | 0.644885 | 254 | 1,867 | 4.673228 | 0.374016 | 0.085931 | 0.096883 | 0.060657 | 0.059815 | 0.059815 | 0.059815 | 0 | 0 | 0 | 0 | 0.028169 | 0.239422 | 1,867 | 64 | 89 | 29.171875 | 0.807746 | 0.698982 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.117647 | 0.058824 | 0.470588 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01756befa2192d53cb57f12407d058724b5d5f3a | 3,833 | py | Python | tests/app/models/test_broadcast_message.py | alphagov/notify-admin-frontend | 70f2a6a97aefe2432d7a3b54dc1555c030dd3693 | [
"MIT"
] | 33 | 2016-01-11T20:16:17.000Z | 2021-11-23T12:50:29.000Z | tests/app/models/test_broadcast_message.py | alphagov/notify-admin-frontend | 70f2a6a97aefe2432d7a3b54dc1555c030dd3693 | [
"MIT"
] | 1,249 | 2015-11-30T16:43:21.000Z | 2022-03-24T13:04:55.000Z | tests/app/models/test_broadcast_message.py | alphagov/notify-admin-frontend | 70f2a6a97aefe2432d7a3b54dc1555c030dd3693 | [
"MIT"
] | 36 | 2015-12-02T09:49:26.000Z | 2021-04-10T18:05:41.000Z | import pytest
from app.broadcast_areas.models import CustomBroadcastAreas
from app.models.broadcast_message import BroadcastMessage
from tests import broadcast_message_json
@pytest.mark.parametrize('areas, expected_area_ids', [
({'simple_polygons': []}, []),
({'ids': ['123'], 'simple_polygons': []}, ['123'])... | 28.604478 | 89 | 0.604226 | 424 | 3,833 | 5.257075 | 0.334906 | 0.165096 | 0.062808 | 0.110363 | 0.366981 | 0.327501 | 0.224316 | 0.157021 | 0.061014 | 0 | 0 | 0.069935 | 0.276285 | 3,833 | 133 | 90 | 28.819549 | 0.733598 | 0.146882 | 0 | 0.45283 | 0 | 0 | 0.134686 | 0.01107 | 0 | 0 | 0 | 0 | 0.066038 | 1 | 0.056604 | false | 0 | 0.037736 | 0 | 0.09434 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
017a9e7cf566c8e735c6560428aeffefe5652de2 | 9,460 | py | Python | nilmtk_contrib/disaggregate/dsc.py | PiaDiepman/NILMTK-contrib | cd0b4337c9d87d71b3e88ad6581e5377ed8d82aa | [
"Apache-2.0"
] | 75 | 2019-07-05T06:43:10.000Z | 2022-03-30T09:18:51.000Z | nilmtk_contrib/disaggregate/dsc.py | PiaDiepman/NILMTK-contrib | cd0b4337c9d87d71b3e88ad6581e5377ed8d82aa | [
"Apache-2.0"
] | 52 | 2019-06-10T14:36:40.000Z | 2022-03-25T16:28:05.000Z | nilmtk_contrib/disaggregate/dsc.py | PiaDiepman/NILMTK-contrib | cd0b4337c9d87d71b3e88ad6581e5377ed8d82aa | [
"Apache-2.0"
] | 50 | 2019-06-14T05:31:28.000Z | 2022-03-23T17:38:39.000Z | from __future__ import print_function, division
from warnings import warn
from nilmtk.disaggregate import Disaggregator
import pandas as pd
import numpy as np
from collections import OrderedDict
import matplotlib.pyplot as plt
from sklearn.decomposition import MiniBatchDictionaryLearning, SparseCoder
from sklearn.met... | 46.146341 | 175 | 0.647992 | 1,142 | 9,460 | 5.110333 | 0.189142 | 0.023132 | 0.01645 | 0.017478 | 0.269191 | 0.186772 | 0.160555 | 0.141707 | 0.141707 | 0.105038 | 0 | 0.009517 | 0.255814 | 9,460 | 204 | 176 | 46.372549 | 0.81946 | 0.048732 | 0 | 0.13245 | 0 | 0 | 0.064257 | 0.002493 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039735 | false | 0 | 0.072848 | 0 | 0.13245 | 0.15894 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
017df8740dfde25e6ca97dee8d4e923144b40c7c | 7,033 | py | Python | deprecated/demo/tutorial_5/qr_code.py | mfkiwl/GAAS | 29ab17d3e8a4ba18edef3a57c36d8db6329fac73 | [
"BSD-3-Clause"
] | 2,111 | 2019-01-29T07:01:32.000Z | 2022-03-29T06:48:14.000Z | demo/tutorial_5/qr_code.py | Wayne-xixi/GAAS | 308ff4267ccc6fcad77eef07e21fa006cc2cdd5f | [
"BSD-3-Clause"
] | 131 | 2019-02-18T10:56:18.000Z | 2021-09-27T12:07:00.000Z | demo/tutorial_5/qr_code.py | Wayne-xixi/GAAS | 308ff4267ccc6fcad77eef07e21fa006cc2cdd5f | [
"BSD-3-Clause"
] | 421 | 2019-02-12T07:59:18.000Z | 2022-03-27T05:22:01.000Z | from __future__ import print_function
import pyzbar.pyzbar as pyzbar
import numpy as np
import cv2
class QRdetect:
def __init__(self, QRcode_image, k=np.array([[376.0, 0, 376], [0, 376.0, 240.0], [0, 0, 1]])):
if QRcode_image is None:
return
self.query_image = QRcode_image
s... | 30.578261 | 116 | 0.570027 | 825 | 7,033 | 4.682424 | 0.201212 | 0.083355 | 0.06394 | 0.028475 | 0.217706 | 0.15299 | 0.135128 | 0.135128 | 0.135128 | 0.135128 | 0 | 0.027572 | 0.329589 | 7,033 | 229 | 117 | 30.71179 | 0.791729 | 0.253661 | 0 | 0.093458 | 0 | 0 | 0.03181 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084112 | false | 0 | 0.037383 | 0 | 0.271028 | 0.074766 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
017f2c1c96c787b6d2e75710df80d07ac95d8ea9 | 881 | py | Python | utils/Logger.py | Team-Squad-Up/multigraph_transformer | 180a4dc172695d305ab8a945698cd24401d42e66 | [
"MIT"
] | 268 | 2019-12-24T05:27:57.000Z | 2022-03-31T13:59:30.000Z | utils/Logger.py | Team-Squad-Up/multigraph_transformer | 180a4dc172695d305ab8a945698cd24401d42e66 | [
"MIT"
] | 2 | 2020-08-10T02:57:57.000Z | 2021-01-05T06:19:40.000Z | utils/Logger.py | PengBoXiangShang/multigraph_transformer | 04aaf575a5242d44e08910a9583c623f14b61b62 | [
"MIT"
] | 26 | 2019-12-24T13:24:58.000Z | 2022-03-21T08:42:20.000Z | import logging
import os
class Logger(object):
"""
set logger
"""
def __init__(self, logger_path):
self.logger = logging.getLogger()
self.logger.setLevel(logging.DEBUG)
self.logfile = logging.FileHandler(logger_path)
#
self.logfile.setLevel(logging.DEBUG)
... | 29.366667 | 95 | 0.631101 | 92 | 881 | 5.967391 | 0.326087 | 0.10929 | 0.10929 | 0.087432 | 0.189435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.239501 | 881 | 29 | 96 | 30.37931 | 0.819403 | 0.110102 | 0 | 0 | 0 | 0.055556 | 0.086275 | 0.031373 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0.055556 | 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 |
018015cf927908eea70db9b02fdbb5cdefd59ff5 | 6,224 | py | Python | LineNotifyBot/orderManager.py | cryptocat-miner/BitMexLineNotifyBot | 2388d5fbccd3e8b7110484a1c10bd490e4b13859 | [
"MIT"
] | 1 | 2019-09-23T12:34:18.000Z | 2019-09-23T12:34:18.000Z | LineNotifyBot/orderManager.py | cryptocat-miner/BitMexLineNotifyBot | 2388d5fbccd3e8b7110484a1c10bd490e4b13859 | [
"MIT"
] | null | null | null | LineNotifyBot/orderManager.py | cryptocat-miner/BitMexLineNotifyBot | 2388d5fbccd3e8b7110484a1c10bd490e4b13859 | [
"MIT"
] | null | null | null | import ccxt
from datetime import datetime
from datetime import timedelta
import calendar
import time
from enum import Enum
import ccxtWrapper
import math
import LineNotify
import orderInfo
class orderManagementEnum(Enum):
NO_POSITION = 0
HAVE_POSITION = 1
class orderManager(ccxtWrapper.ccxtWrapper):
or... | 38.9 | 171 | 0.621144 | 545 | 6,224 | 7.073395 | 0.216514 | 0.049287 | 0.024903 | 0.054475 | 0.190921 | 0.136965 | 0.062776 | 0 | 0 | 0 | 0 | 0.013336 | 0.265103 | 6,224 | 159 | 172 | 39.144654 | 0.829471 | 0.026671 | 0 | 0.150794 | 0 | 0 | 0.103226 | 0.012572 | 0 | 0 | 0 | 0 | 0 | 1 | 0.063492 | false | 0 | 0.079365 | 0 | 0.34127 | 0.039683 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
018153b0720e76bdbfa6aa63e1ed23fa87f47eb2 | 1,917 | py | Python | 강의 자료/02-알고리즘/autoindex.py | rhs0266/FastCampus | 88b5f4c18ebfb9ebf141ace644e40d2975ff665a | [
"MIT"
] | 407 | 2020-11-14T02:25:56.000Z | 2022-03-31T04:12:17.000Z | 강의 자료/02-알고리즘/autoindex.py | rhs0266/FastCampus | 88b5f4c18ebfb9ebf141ace644e40d2975ff665a | [
"MIT"
] | 48 | 2020-11-16T15:29:10.000Z | 2022-03-14T06:32:16.000Z | 강의 자료/02-알고리즘/autoindex.py | rhs0266/FastCampus | 88b5f4c18ebfb9ebf141ace644e40d2975ff665a | [
"MIT"
] | 78 | 2020-11-28T08:29:39.000Z | 2022-03-29T06:54:48.000Z | import os
from lxml import html
import requests
def get_dir_list(path):
return [p for p in os.listdir(path) if os.path.isdir(p)]
def get_file_list(path):
return [p for p in os.listdir(path) if os.path.isfile(p)]
def get_number(str):
res = ''.join(list(filter(lambda x: '0'<=x<='9', str)))
if res:
... | 34.854545 | 176 | 0.521127 | 278 | 1,917 | 3.521583 | 0.384892 | 0.024515 | 0.044944 | 0.024515 | 0.105209 | 0.105209 | 0.085802 | 0.085802 | 0.085802 | 0.085802 | 0 | 0.035088 | 0.316119 | 1,917 | 54 | 177 | 35.5 | 0.71167 | 0 | 0 | 0.041667 | 0 | 0.020833 | 0.150235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.0625 | 0.041667 | 0.270833 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01886934cd30258f1bbd5bc214cc5822c242b7c6 | 504 | py | Python | general/kneeOsteoarthritisDataset/KneeDataset_utility.py | duennbart/masterthesis_VAE | 1a161bc5c234acc0a021d84cde8cd69e784174e1 | [
"BSD-3-Clause"
] | 14 | 2020-06-28T15:38:48.000Z | 2021-12-05T01:49:50.000Z | general/kneeOsteoarthritisDataset/KneeDataset_utility.py | duennbart/masterthesis_VAE | 1a161bc5c234acc0a021d84cde8cd69e784174e1 | [
"BSD-3-Clause"
] | null | null | null | general/kneeOsteoarthritisDataset/KneeDataset_utility.py | duennbart/masterthesis_VAE | 1a161bc5c234acc0a021d84cde8cd69e784174e1 | [
"BSD-3-Clause"
] | 3 | 2020-06-28T15:38:49.000Z | 2022-02-13T22:04:34.000Z | import numpy as np
from kneeOsteoarthritisDataset.KneeOsteoarthritsDataset import KneeOsteoarthritsDataset
data_path = '/home/biomech/Documents/OsteoData/KneeXrayData/ClsKLData/kneeKL299'
kneeosteo = KneeOsteoarthritsDataset(data_path = data_path)
imgs, labels = kneeosteo.load_imgs()
rand_idx = np.random.randint(lo... | 26.526316 | 87 | 0.781746 | 65 | 504 | 5.938462 | 0.6 | 0.062176 | 0.165803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015801 | 0.121032 | 504 | 19 | 88 | 26.526316 | 0.85553 | 0 | 0 | 0 | 0 | 0 | 0.130693 | 0.130693 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
018a6d7e60dff23b8dbdde473c02f7669ed70154 | 1,551 | py | Python | src/main.py | ubirch/pycom-bootloader | 6510eb34ec198ef74e15bb757bb67e88aaf15b74 | [
"Apache-2.0"
] | null | null | null | src/main.py | ubirch/pycom-bootloader | 6510eb34ec198ef74e15bb757bb67e88aaf15b74 | [
"Apache-2.0"
] | null | null | null | src/main.py | ubirch/pycom-bootloader | 6510eb34ec198ef74e15bb757bb67e88aaf15b74 | [
"Apache-2.0"
] | null | null | null | print("SD bootloader")
import pycom
import time
import machine
import sys
import uos
#paths for the code/lib/mount locations
SD_MOUNTPOINT = '/sd'
CODE_PATH = '/sd/src'
LIB_PATH = '/sd/src/lib'
#LED colors
#for errors (full brightness)
C_YELLOW = 0xffff00
C_RED = 0xff0000
C_PURPLE = 0xff00ff
C_BLUE = 0x0000ff
#for n... | 20.142857 | 49 | 0.654417 | 226 | 1,551 | 4.349558 | 0.380531 | 0.024415 | 0.039674 | 0.024415 | 0.056968 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03204 | 0.235332 | 1,551 | 76 | 50 | 20.407895 | 0.796796 | 0.152805 | 0 | 0.169811 | 0 | 0 | 0.112828 | 0 | 0 | 0 | 0.037094 | 0 | 0 | 1 | 0.037736 | false | 0 | 0.09434 | 0 | 0.169811 | 0.188679 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
018d436c5de06e246b9aa736124eb44597086ab1 | 122,321 | py | Python | gui.py | michael11892/picoscopeDataLogger | f50d26f33b5a42731e52261e52c6fe8574ca2bbc | [
"MIT"
] | 3 | 2021-07-02T10:34:16.000Z | 2021-07-03T10:27:22.000Z | gui.py | michael11892/picoscopeDataLogger | f50d26f33b5a42731e52261e52c6fe8574ca2bbc | [
"MIT"
] | null | null | null | gui.py | michael11892/picoscopeDataLogger | f50d26f33b5a42731e52261e52c6fe8574ca2bbc | [
"MIT"
] | null | null | null | import os
import sys
import copy
from math import gcd
from driver_config_macros import *
from data_capture_macros import *
from signal_generator_macros import *
from power_operation_macros import *
from capture_config_macros import *
from trig_config_macros import *
from data_processing_macros import *
from PyQt5 impor... | 65.412299 | 357 | 0.692931 | 10,725 | 122,321 | 7.869464 | 0.055758 | 0.046825 | 0.040071 | 0.026588 | 0.617263 | 0.501386 | 0.4284 | 0.353152 | 0.322192 | 0.310592 | 0 | 0.019782 | 0.178825 | 122,321 | 1,869 | 358 | 65.447298 | 0.820463 | 0.004235 | 0 | 0.414286 | 0 | 0 | 0.075156 | 0.007218 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010989 | false | 0.000549 | 0.009341 | 0 | 0.024176 | 0.000549 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |