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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c71a546240f7c071174fd45a93cc36d20aa838b4 | 5,388 | py | Python | barbican/common/resources.py | stanzikratel/barbican-2 | 10fae57c1cae3e140c19069a48f562d62ca53663 | [
"Apache-2.0"
] | null | null | null | barbican/common/resources.py | stanzikratel/barbican-2 | 10fae57c1cae3e140c19069a48f562d62ca53663 | [
"Apache-2.0"
] | null | null | null | barbican/common/resources.py | stanzikratel/barbican-2 | 10fae57c1cae3e140c19069a48f562d62ca53663 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2013-2014 Rackspace, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to ... | 37.416667 | 76 | 0.625464 | 627 | 5,388 | 5.189793 | 0.30941 | 0.027658 | 0.030117 | 0.040873 | 0.172711 | 0.05839 | 0.041795 | 0.041795 | 0.041795 | 0.041795 | 0 | 0.003482 | 0.306978 | 5,388 | 143 | 77 | 37.678322 | 0.86797 | 0.285264 | 0 | 0.17284 | 0 | 0 | 0.135005 | 0.012807 | 0 | 0 | 0 | 0.006993 | 0 | 1 | 0.037037 | false | 0 | 0.049383 | 0 | 0.123457 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c71ac734d6782f901c4c5400d878122dd11ea416 | 567 | py | Python | 7/prime.py | redfast00/euler | 98fc49a1fcb8b49415cc4384952a6447378bd4f4 | [
"MIT"
] | null | null | null | 7/prime.py | redfast00/euler | 98fc49a1fcb8b49415cc4384952a6447378bd4f4 | [
"MIT"
] | null | null | null | 7/prime.py | redfast00/euler | 98fc49a1fcb8b49415cc4384952a6447378bd4f4 | [
"MIT"
] | null | null | null | from math import sqrt
def stream_primes(num):
primes = []
candidate = 2
for i in range(num):
prime = next_prime(primes, candidate)
primes.append(prime)
candidate = prime + 1
yield prime
def next_prime(primes, candidate):
while True:
for prime in primes:
... | 22.68 | 45 | 0.560847 | 64 | 567 | 4.90625 | 0.453125 | 0.143312 | 0.095541 | 0.152866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02507 | 0.366843 | 567 | 24 | 46 | 23.625 | 0.849582 | 0 | 0 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.047619 | 0 | 0.238095 | 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 |
c71be407b214b6130f22496ab986a3ca003cfe56 | 777 | py | Python | app/utils.py | HealYouDown/flo-league | c729cad1daddfb89e997c101bd2da505b7137d98 | [
"MIT"
] | null | null | null | app/utils.py | HealYouDown/flo-league | c729cad1daddfb89e997c101bd2da505b7137d98 | [
"MIT"
] | 3 | 2021-05-03T19:05:11.000Z | 2021-06-12T09:43:02.000Z | app/utils.py | HealYouDown/flo-league | c729cad1daddfb89e997c101bd2da505b7137d98 | [
"MIT"
] | null | null | null | import datetime
from app.models import Log
from flask_login import current_user
from app.extensions import db
# https://stackoverflow.com/questions/6558535/find-the-date-for-the-first-monday-after-a-given-date
def next_weekday(
d: datetime.datetime = datetime.datetime.utcnow(),
weekday: int = 0,
) -> datetime... | 28.777778 | 99 | 0.705277 | 112 | 777 | 4.776786 | 0.535714 | 0.149533 | 0.08972 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015848 | 0.187902 | 777 | 26 | 100 | 29.884615 | 0.832013 | 0.227799 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.210526 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c71c6e80583baf2cb3846a4c3d378463d41f4b27 | 9,582 | py | Python | packages/gtmcore/gtmcore/environment/conda.py | gigabackup/gigantum-client | 70fe6b39b87b1c56351f2b4c551b6f1693813e4f | [
"MIT"
] | 60 | 2018-09-26T15:46:00.000Z | 2021-10-10T02:37:14.000Z | packages/gtmcore/gtmcore/environment/conda.py | gigabackup/gigantum-client | 70fe6b39b87b1c56351f2b4c551b6f1693813e4f | [
"MIT"
] | 1,706 | 2018-09-26T16:11:22.000Z | 2021-08-20T13:37:59.000Z | packages/gtmcore/gtmcore/environment/conda.py | griffinmilsap/gigantum-client | 70fe6b39b87b1c56351f2b4c551b6f1693813e4f | [
"MIT"
] | 11 | 2019-03-14T13:23:51.000Z | 2022-01-25T01:29:16.000Z | from typing import List, Dict
import json
from gtmcore.http import ConcurrentRequestManager, ConcurrentRequest
from gtmcore.environment.packagemanager import PackageManager, PackageResult, PackageMetadata
from gtmcore.container import container_for_context
from gtmcore.labbook import LabBook
from gtmcore.logging impor... | 40.774468 | 120 | 0.611668 | 1,073 | 9,582 | 5.340168 | 0.215284 | 0.026876 | 0.023211 | 0.017452 | 0.411518 | 0.369983 | 0.353229 | 0.343979 | 0.343979 | 0.329319 | 0 | 0.004512 | 0.306095 | 9,582 | 234 | 121 | 40.948718 | 0.857272 | 0.274995 | 0 | 0.474576 | 0 | 0 | 0.101608 | 0.016075 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076271 | false | 0 | 0.059322 | 0 | 0.228814 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c71da90915f08f68f935060eea6dba44dc3beaac | 1,147 | py | Python | netchos/io/io_mpl_to_px.py | brainets/netchos | ccfcd2ec85894adffbd20fbc67410dbdacfe6812 | [
"BSD-3-Clause"
] | 11 | 2021-04-20T19:45:23.000Z | 2021-11-17T15:18:33.000Z | netchos/io/io_mpl_to_px.py | brainets/netchos | ccfcd2ec85894adffbd20fbc67410dbdacfe6812 | [
"BSD-3-Clause"
] | 3 | 2021-04-26T09:01:42.000Z | 2021-06-30T12:09:15.000Z | netchos/io/io_mpl_to_px.py | brainets/netchos | ccfcd2ec85894adffbd20fbc67410dbdacfe6812 | [
"BSD-3-Clause"
] | 2 | 2021-05-06T20:28:46.000Z | 2021-05-24T10:36:44.000Z | """Conversion of Matplotlib / Seaborn inputs to plotly."""
import os.path as op
from pkg_resources import resource_filename
import json
def mpl_to_px_inputs(inputs, plt_types=None):
"""Convert typical matplotlib inputs to plotly to simplify API.
Parameters
----------
inputs : dict
Dictionary ... | 25.488889 | 77 | 0.62075 | 159 | 1,147 | 4.339623 | 0.490566 | 0.092754 | 0.04058 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.280732 | 1,147 | 44 | 78 | 26.068182 | 0.836364 | 0.401046 | 0 | 0 | 0 | 0 | 0.0288 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | 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 |
c71f19c3cf33a6be263067d8b8a273844fc916bd | 3,337 | py | Python | openstack_dashboard/dashboards/admin/volume_types/qos_specs/forms.py | hemantsonawane95/horizon-apelby | 01a5e72219aeca8c1451701ee85e232ed0618751 | [
"Apache-2.0"
] | null | null | null | openstack_dashboard/dashboards/admin/volume_types/qos_specs/forms.py | hemantsonawane95/horizon-apelby | 01a5e72219aeca8c1451701ee85e232ed0618751 | [
"Apache-2.0"
] | null | null | null | openstack_dashboard/dashboards/admin/volume_types/qos_specs/forms.py | hemantsonawane95/horizon-apelby | 01a5e72219aeca8c1451701ee85e232ed0618751 | [
"Apache-2.0"
] | null | null | null | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | 39.72619 | 77 | 0.585556 | 393 | 3,337 | 4.834606 | 0.389313 | 0.051579 | 0.037895 | 0.033684 | 0.375263 | 0.364737 | 0.336842 | 0.336842 | 0.263158 | 0.263158 | 0 | 0.007583 | 0.328139 | 3,337 | 83 | 78 | 40.204819 | 0.839875 | 0.247228 | 0 | 0.509434 | 0 | 0 | 0.114274 | 0.025662 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037736 | false | 0 | 0.132075 | 0 | 0.301887 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c71fc189fa6f73122afbe242bbfd89bd9a8a50ea | 9,050 | py | Python | data_structure/const_tree.py | alipay/StructuredLM_RTDT | 6edf2acf8747e17015523d78b6c580431a4f7b5c | [
"Apache-2.0"
] | 42 | 2021-06-01T07:07:12.000Z | 2022-03-18T02:38:53.000Z | data_structure/const_tree.py | alipay/StructuredLM_RTDT | 6edf2acf8747e17015523d78b6c580431a4f7b5c | [
"Apache-2.0"
] | 1 | 2021-12-15T03:50:24.000Z | 2021-12-15T08:46:56.000Z | data_structure/const_tree.py | alipay/StructuredLM_RTDT | 6edf2acf8747e17015523d78b6c580431a4f7b5c | [
"Apache-2.0"
] | 7 | 2021-06-02T02:28:01.000Z | 2022-01-14T06:59:29.000Z | # coding=utf-8
# Copyright (c) 2021 Ant Group
import sys
LABEL_SEP = '@'
INDENT_STRING1 = '│ '
INDENT_STRING2 = '├──'
EMPTY_TOKEN = '___EMPTY___'
def print_tree(const_tree, indent=0, out=sys.stdout):
for i in range(indent - 1):
out.write(INDENT_STRING1)
if indent > 0:
out.write(INDENT_STR... | 30.782313 | 98 | 0.575912 | 1,028 | 9,050 | 4.899805 | 0.140078 | 0.069089 | 0.031765 | 0.038912 | 0.290054 | 0.225928 | 0.185428 | 0.161604 | 0.135398 | 0.107604 | 0 | 0.006736 | 0.327403 | 9,050 | 293 | 99 | 30.887372 | 0.820108 | 0.022652 | 0 | 0.276786 | 0 | 0 | 0.032573 | 0.003745 | 0 | 0 | 0 | 0 | 0.008929 | 1 | 0.133929 | false | 0.013393 | 0.004464 | 0.026786 | 0.272321 | 0.008929 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c71fcfdd300a9f0f56bf5188a7e7a694d05f3faa | 4,098 | py | Python | tests/test_minimize.py | The-Ludwig/iminuit | 8eef7b711846d6c8db9fe1fc883f6fa0977eb514 | [
"MIT"
] | null | null | null | tests/test_minimize.py | The-Ludwig/iminuit | 8eef7b711846d6c8db9fe1fc883f6fa0977eb514 | [
"MIT"
] | null | null | null | tests/test_minimize.py | The-Ludwig/iminuit | 8eef7b711846d6c8db9fe1fc883f6fa0977eb514 | [
"MIT"
] | null | null | null | import pytest
from iminuit import minimize
import numpy as np
from numpy.testing import assert_allclose, assert_equal
opt = pytest.importorskip("scipy.optimize")
def func(x, *args):
c = args[0] if args else 1
return c + x[0] ** 2 + (x[1] - 1) ** 2 + (x[2] - 2) ** 2
def grad(x, *args):
return 2 * (x - (... | 26.269231 | 85 | 0.59346 | 658 | 4,098 | 3.630699 | 0.18997 | 0.020929 | 0.092507 | 0.064462 | 0.38468 | 0.366262 | 0.251151 | 0.240268 | 0.232733 | 0.149854 | 0 | 0.071769 | 0.231576 | 4,098 | 155 | 86 | 26.43871 | 0.686885 | 0 | 0 | 0.171171 | 0 | 0 | 0.044168 | 0 | 0 | 0 | 0 | 0 | 0.36036 | 1 | 0.18018 | false | 0 | 0.045045 | 0.009009 | 0.279279 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c72190831a83ec1b623a951d123f7148309fad86 | 2,468 | py | Python | murtanto/parsing.py | amandatv20/botfb | 2be3ce0265fd86f48f24d2b496d36fd346e49d29 | [
"MIT"
] | 1 | 2021-03-24T13:54:33.000Z | 2021-03-24T13:54:33.000Z | murtanto/parsing.py | amandatv20/botfb | 2be3ce0265fd86f48f24d2b496d36fd346e49d29 | [
"MIT"
] | 2 | 2020-06-15T08:10:55.000Z | 2020-06-16T15:03:19.000Z | murtanto/parsing.py | amandatv20/botfb | 2be3ce0265fd86f48f24d2b496d36fd346e49d29 | [
"MIT"
] | null | null | null | # coded by: salism3
# 23 - 05 - 2020 23:18 (Malam Takbir)
from bs4 import BeautifulSoup as parser
from . import sorting
import re
def to_bs4(html):
return parser(html, "html.parser")
def refsrc(html):
return True if re.search(r'http.+\Wrefsrc', html) else False
def parsing_href(html, href, one = Fals... | 31.641026 | 113 | 0.636548 | 395 | 2,468 | 3.883544 | 0.235443 | 0.026076 | 0.046936 | 0.050847 | 0.396349 | 0.377445 | 0.363755 | 0.363755 | 0.363755 | 0.363755 | 0 | 0.01506 | 0.192869 | 2,468 | 78 | 114 | 31.641026 | 0.75502 | 0.021475 | 0 | 0.344262 | 0 | 0 | 0.10488 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.163934 | false | 0 | 0.04918 | 0.032787 | 0.377049 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c724bce6559444b809161c07169a0eaf827f8a70 | 1,125 | py | Python | leetcode/0506_relative_ranks.py | chaosWsF/Python-Practice | ff617675b6bcd125933024bb4c246b63a272314d | [
"BSD-2-Clause"
] | null | null | null | leetcode/0506_relative_ranks.py | chaosWsF/Python-Practice | ff617675b6bcd125933024bb4c246b63a272314d | [
"BSD-2-Clause"
] | null | null | null | leetcode/0506_relative_ranks.py | chaosWsF/Python-Practice | ff617675b6bcd125933024bb4c246b63a272314d | [
"BSD-2-Clause"
] | null | null | null | """
Given scores of N athletes, find their relative ranks and the people with the top
three highest scores, who will be awarded medals: "Gold Medal", "Silver Medal" and
"Bronze Medal".
Example 1:
Input: [5, 4, 3, 2, 1]
Output: ["Gold Medal", "Silver Medal", "Bronze Medal", "4", "5"]
Explanation: The fir... | 32.142857 | 84 | 0.593778 | 161 | 1,125 | 4.136646 | 0.509317 | 0.054054 | 0.067568 | 0.09009 | 0.174174 | 0.102102 | 0.102102 | 0 | 0 | 0 | 0 | 0.021823 | 0.307556 | 1,125 | 34 | 85 | 33.088235 | 0.833119 | 0.584 | 0 | 0 | 0 | 0 | 0.073913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c72537aa56e0fec5c2e19ae544ffe17dd652b46b | 727 | py | Python | link_prob_show.py | Rheinwalt/spatial-effects-networks | 7b77a22b45341b024a57e1759b7b61cd91d90849 | [
"MIT"
] | 3 | 2018-12-21T20:19:18.000Z | 2021-01-02T12:58:56.000Z | link_prob_show.py | rick-foo/spatial-effects-networks | 7b77a22b45341b024a57e1759b7b61cd91d90849 | [
"MIT"
] | null | null | null | link_prob_show.py | rick-foo/spatial-effects-networks | 7b77a22b45341b024a57e1759b7b61cd91d90849 | [
"MIT"
] | 2 | 2020-09-03T14:18:37.000Z | 2021-10-01T18:06:42.000Z | import sys
import numpy as np
from sern import *
ids, lon, lat = np.loadtxt('nodes', unpack = True)
links = np.loadtxt('links', dtype = 'int')
A, b = AdjacencyMatrix(ids, links)
lon, lat = lon[b], lat[b]
n = A.shape[0]
# LinkProbability expects A as triu
A = A[np.triu_indices(n, 1)]
# play around with the scale, may... | 25.964286 | 63 | 0.707015 | 123 | 727 | 4.138211 | 0.528455 | 0.023576 | 0.019646 | 0.043222 | 0.184676 | 0.184676 | 0.184676 | 0.184676 | 0.184676 | 0.184676 | 0 | 0.00639 | 0.138927 | 727 | 27 | 64 | 26.925926 | 0.806709 | 0.130674 | 0 | 0.095238 | 0 | 0 | 0.228935 | 0.034976 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.190476 | 0 | 0.190476 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7268aa939534725180b033986da1a690622e70b | 3,899 | py | Python | controller/components/app.py | isabella232/flight-lab | bd666b1d2bcec6f928a2e8da9f13fd5dae21319f | [
"Apache-2.0"
] | 15 | 2018-10-18T07:50:46.000Z | 2021-10-21T03:40:55.000Z | controller/components/app.py | google/flight-lab | bd666b1d2bcec6f928a2e8da9f13fd5dae21319f | [
"Apache-2.0"
] | 9 | 2018-09-17T23:00:02.000Z | 2019-01-22T21:08:04.000Z | controller/components/app.py | isabella232/flight-lab | bd666b1d2bcec6f928a2e8da9f13fd5dae21319f | [
"Apache-2.0"
] | 12 | 2019-01-07T12:43:37.000Z | 2021-10-21T03:40:44.000Z | # Copyright 2018 Flight Lab authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in w... | 33.612069 | 77 | 0.691459 | 536 | 3,899 | 4.878731 | 0.276119 | 0.064245 | 0.058126 | 0.04283 | 0.423709 | 0.299426 | 0.225621 | 0.151434 | 0.118547 | 0.081836 | 0 | 0.009485 | 0.188766 | 3,899 | 116 | 78 | 33.612069 | 0.817262 | 0.257758 | 0 | 0.220588 | 0 | 0 | 0.082511 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.147059 | false | 0 | 0.073529 | 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 |
c72c87715b18d844a4d1e6b4c82ec44a40f2bde2 | 2,810 | py | Python | examples/pybullet/gym/pybullet_envs/minitaur/envs/env_randomizers/minitaur_alternating_legs_env_randomizer.py | felipeek/bullet3 | 6a59241074720e9df119f2f86bc01765917feb1e | [
"Zlib"
] | 9,136 | 2015-01-02T00:41:45.000Z | 2022-03-31T15:30:02.000Z | examples/pybullet/gym/pybullet_envs/minitaur/envs/env_randomizers/minitaur_alternating_legs_env_randomizer.py | felipeek/bullet3 | 6a59241074720e9df119f2f86bc01765917feb1e | [
"Zlib"
] | 2,424 | 2015-01-05T08:55:58.000Z | 2022-03-30T19:34:55.000Z | examples/pybullet/gym/pybullet_envs/minitaur/envs/env_randomizers/minitaur_alternating_legs_env_randomizer.py | felipeek/bullet3 | 6a59241074720e9df119f2f86bc01765917feb1e | [
"Zlib"
] | 2,921 | 2015-01-02T10:19:30.000Z | 2022-03-31T02:48:42.000Z | """Randomize the minitaur_gym_alternating_leg_env when reset() is called.
The randomization include swing_offset, extension_offset of all legs that mimics
bent legs, desired_pitch from user input, battery voltage and motor damping.
"""
import os, inspect
currentdir = os.path.dirname(os.path.abspath(inspect.getfile(in... | 45.322581 | 86 | 0.70605 | 331 | 2,810 | 5.661631 | 0.268882 | 0.058698 | 0.034685 | 0.064034 | 0.351121 | 0.233191 | 0.139274 | 0.101921 | 0.077908 | 0.077908 | 0 | 0.010772 | 0.207117 | 2,810 | 61 | 87 | 46.065574 | 0.830341 | 0.11032 | 0 | 0.046512 | 0 | 0 | 0.035772 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0 | 0.093023 | 0 | 0.162791 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c72ca1c8b4319d09d601fa708b5ddc14cb8e0859 | 14,704 | py | Python | pygsti/modelmembers/states/tensorprodstate.py | pyGSTi-Developers/pyGSTi | bfedc1de4d604f14b0f958615776fb80ddb59e33 | [
"Apache-2.0"
] | 73 | 2016-01-28T05:02:05.000Z | 2022-03-30T07:46:33.000Z | pygsti/modelmembers/states/tensorprodstate.py | pyGSTi-Developers/pyGSTi | bfedc1de4d604f14b0f958615776fb80ddb59e33 | [
"Apache-2.0"
] | 113 | 2016-02-25T15:32:18.000Z | 2022-03-31T13:18:13.000Z | pygsti/modelmembers/states/tensorprodstate.py | pyGSTi-Developers/pyGSTi | bfedc1de4d604f14b0f958615776fb80ddb59e33 | [
"Apache-2.0"
] | 41 | 2016-03-15T19:32:07.000Z | 2022-02-16T10:22:05.000Z | """
The TensorProductState class and supporting functionality.
"""
#***************************************************************************************************
# Copyright 2015, 2019 National Technology & Engineering Solutions of Sandia, LLC (NTESS).
# Under the terms of Contract DE-NA0003525 with NTESS, the U.... | 42.994152 | 118 | 0.609698 | 1,890 | 14,704 | 4.602646 | 0.251323 | 0.02529 | 0.014484 | 0.012875 | 0.124267 | 0.098402 | 0.080929 | 0.069663 | 0.054834 | 0.046557 | 0 | 0.00568 | 0.293526 | 14,704 | 341 | 119 | 43.120235 | 0.831729 | 0.45287 | 0 | 0.081967 | 0 | 0 | 0.033569 | 0 | 0 | 0 | 0 | 0.008798 | 0.016393 | 1 | 0.114754 | false | 0 | 0.065574 | 0.008197 | 0.295082 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c72e729bd791fda04d1f1bf87cc60496068da071 | 5,862 | py | Python | amazing/maze.py | danieloconell/maze-solver | f60e476d827d59bfa17cd2148787332707846882 | [
"MIT"
] | null | null | null | amazing/maze.py | danieloconell/maze-solver | f60e476d827d59bfa17cd2148787332707846882 | [
"MIT"
] | 2 | 2021-06-08T19:35:19.000Z | 2021-09-08T00:44:59.000Z | amazing/maze.py | danieloconell/amazing | f60e476d827d59bfa17cd2148787332707846882 | [
"MIT"
] | null | null | null | from .exceptions import MazeNotSolved, AlgorithmNotFound
from .dijkstra import Dijkstra
from .astar import Astar
from functools import wraps
import warnings
from daedalus import Maze as _maze
from PIL import Image
warnings.simplefilter("once", UserWarning)
class Maze:
"""
Create a maze and solve it.
A... | 32.932584 | 114 | 0.525589 | 677 | 5,862 | 4.463811 | 0.248154 | 0.045003 | 0.027796 | 0.017207 | 0.224355 | 0.176042 | 0.134348 | 0.134348 | 0.134348 | 0.134348 | 0 | 0.010052 | 0.372057 | 5,862 | 177 | 115 | 33.118644 | 0.810649 | 0.166496 | 0 | 0.171171 | 0 | 0.009009 | 0.082586 | 0.023688 | 0 | 0 | 0 | 0.00565 | 0 | 1 | 0.099099 | false | 0 | 0.063063 | 0 | 0.234234 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c72eaa2b73efe739c3a50690c7c96660b59023bd | 4,215 | py | Python | config.py | FarbodFarhangfar/midi_player_python | 924cd164b7867d294c761a70d06ab330fa1b8373 | [
"MIT"
] | null | null | null | config.py | FarbodFarhangfar/midi_player_python | 924cd164b7867d294c761a70d06ab330fa1b8373 | [
"MIT"
] | null | null | null | config.py | FarbodFarhangfar/midi_player_python | 924cd164b7867d294c761a70d06ab330fa1b8373 | [
"MIT"
] | null | null | null | import os
def get_note_dic():
_note_dic = {'C': 0, 'C#': 1, 'Db': 1, 'D': 2, 'D#': 3, 'Eb': 3, 'E': 4, 'F': 5, 'F#': 6,
'Gb': 6, 'G': 7,
'G#': 8, 'Ab': 8, 'A': 9, 'A#': 10, 'Bb': 10, 'B': 11}
return _note_dic
def get_value_list():
values = {"16": 16, "8": 8, "4": 4, "2"... | 38.669725 | 106 | 0.474496 | 523 | 4,215 | 3.804971 | 0.577438 | 0.010553 | 0.003015 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137164 | 0.285647 | 4,215 | 108 | 107 | 39.027778 | 0.523746 | 0.034164 | 0 | 0 | 0 | 0 | 0.46596 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042254 | false | 0 | 0.014085 | 0 | 0.098592 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c72f4c5b309a87813b09f64b422ca7519b3e740b | 2,182 | py | Python | roles/openshift_health_checker/library/ocutil.py | shgriffi/openshift-ansible | 6313f519307cf50055589c3876d8bec398bbc4d4 | [
"Apache-2.0"
] | 164 | 2015-07-29T17:35:04.000Z | 2021-12-16T16:38:04.000Z | roles/openshift_health_checker/library/ocutil.py | shgriffi/openshift-ansible | 6313f519307cf50055589c3876d8bec398bbc4d4 | [
"Apache-2.0"
] | 3,634 | 2015-06-09T13:49:15.000Z | 2022-03-23T20:55:44.000Z | roles/openshift_health_checker/library/ocutil.py | shgriffi/openshift-ansible | 6313f519307cf50055589c3876d8bec398bbc4d4 | [
"Apache-2.0"
] | 250 | 2015-06-08T19:53:11.000Z | 2022-03-01T04:51:23.000Z | #!/usr/bin/python
"""Interface to OpenShift oc command"""
import os
import shlex
import shutil
import subprocess
from ansible.module_utils.basic import AnsibleModule
ADDITIONAL_PATH_LOOKUPS = ['/usr/local/bin', os.path.expanduser('~/bin')]
def locate_oc_binary():
"""Find and return oc binary file"""
# htt... | 29.486486 | 91 | 0.636114 | 283 | 2,182 | 4.770318 | 0.409894 | 0.059259 | 0.024444 | 0.042222 | 0.066667 | 0.032593 | 0 | 0 | 0 | 0 | 0 | 0.002405 | 0.237855 | 2,182 | 73 | 92 | 29.890411 | 0.809381 | 0.186068 | 0 | 0.042553 | 0 | 0 | 0.064387 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0 | 0.106383 | 0 | 0.170213 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7300e0d4920ea9bf3233fb48ec01feb851a08ad | 4,125 | py | Python | code/network/__init__.py | michalochman/complex-networks | 49337376e32fac253d8de9919d5acd00a9b566bb | [
"MIT"
] | null | null | null | code/network/__init__.py | michalochman/complex-networks | 49337376e32fac253d8de9919d5acd00a9b566bb | [
"MIT"
] | null | null | null | code/network/__init__.py | michalochman/complex-networks | 49337376e32fac253d8de9919d5acd00a9b566bb | [
"MIT"
] | null | null | null | import fractions
class Network(object):
def __init__(self, network):
self.network = network
def degree(self, link_type, key):
return len(self.network.get(link_type).get(key))
def average_degree(self, link_type):
degree = 0
for link in self.network.get(link_type).itervalue... | 42.96875 | 109 | 0.615758 | 548 | 4,125 | 4.335766 | 0.091241 | 0.164141 | 0.10101 | 0.075758 | 0.717172 | 0.646465 | 0.565236 | 0.506734 | 0.430976 | 0.307239 | 0 | 0.012903 | 0.286061 | 4,125 | 95 | 110 | 43.421053 | 0.793888 | 0 | 0 | 0.435294 | 0 | 0 | 0.006061 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105882 | false | 0 | 0.011765 | 0.011765 | 0.305882 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c730483de9837a25bc1e629091819a776f0b1ff3 | 3,055 | py | Python | invoke_ansible.py | samvarankashyap/ansible_api_usage | d03c67b4606d2e101ef7341bd31161b4db39cd5b | [
"Apache-2.0"
] | null | null | null | invoke_ansible.py | samvarankashyap/ansible_api_usage | d03c67b4606d2e101ef7341bd31161b4db39cd5b | [
"Apache-2.0"
] | null | null | null | invoke_ansible.py | samvarankashyap/ansible_api_usage | d03c67b4606d2e101ef7341bd31161b4db39cd5b | [
"Apache-2.0"
] | null | null | null | import ansible
import pprint
from ansible import utils
from jinja2 import Environment, PackageLoader
from collections import namedtuple
from ansible import utils
from ansible.parsing.dataloader import DataLoader
from ansible.vars import VariableManager
from ansible.inventory import Inventory
from ansible.executor.playb... | 40.197368 | 89 | 0.466776 | 225 | 3,055 | 6.12 | 0.351111 | 0.055919 | 0.028322 | 0.031954 | 0.037763 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003092 | 0.470704 | 3,055 | 75 | 90 | 40.733333 | 0.848485 | 0.005237 | 0 | 0.056338 | 0 | 0 | 0.073243 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014085 | false | 0.028169 | 0.169014 | 0 | 0.197183 | 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 |
c733c87e85c1c4f5626af759efe7bb3290f415c6 | 2,336 | py | Python | bin/python/csv2es.py | reid-wagner/proteomics-pipelines | 2214c2ad4c14fabcb50a3c0800e9d383ce73df3d | [
"MIT"
] | 2 | 2018-09-06T14:05:59.000Z | 2022-02-18T10:09:06.000Z | bin/python/csv2es.py | reid-wagner/proteomics-pipelines | 2214c2ad4c14fabcb50a3c0800e9d383ce73df3d | [
"MIT"
] | 7 | 2018-09-30T00:49:04.000Z | 2022-01-27T07:55:26.000Z | bin/python/csv2es.py | reid-wagner/proteomics-pipelines | 2214c2ad4c14fabcb50a3c0800e9d383ce73df3d | [
"MIT"
] | 3 | 2019-10-29T12:20:45.000Z | 2021-10-06T14:38:43.000Z | #!/usr/bin/env python3
import itertools
import string
from elasticsearch import Elasticsearch,helpers
import sys
import os
from glob import glob
import pandas as pd
import json
host = sys.argv[1]
port = int(sys.argv[2])
alias = sys.argv[3]
print(host)
print(port)
print(alias)
es = Elasticsearch([{'host':... | 28.144578 | 99 | 0.644264 | 337 | 2,336 | 4.364985 | 0.311573 | 0.081577 | 0.018355 | 0.028552 | 0.17811 | 0.17811 | 0.17811 | 0.17811 | 0.17811 | 0.17811 | 0 | 0.010526 | 0.186644 | 2,336 | 82 | 100 | 28.487805 | 0.763684 | 0.074914 | 0 | 0.15625 | 0 | 0 | 0.08314 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015625 | false | 0 | 0.125 | 0 | 0.15625 | 0.078125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c735745b02553eb9e477617ad9c63df5e4730b1c | 3,793 | py | Python | bos_sarcat_scraper/__main__.py | hysds/bos_sarcat_scraper | 1bf3612e7d8fad80c8704a909087be19cc3e1db2 | [
"Apache-2.0"
] | 1 | 2020-06-24T00:25:30.000Z | 2020-06-24T00:25:30.000Z | bos_sarcat_scraper/__main__.py | aria-jpl/bos_sarcat_scraper | 1bf3612e7d8fad80c8704a909087be19cc3e1db2 | [
"Apache-2.0"
] | null | null | null | bos_sarcat_scraper/__main__.py | aria-jpl/bos_sarcat_scraper | 1bf3612e7d8fad80c8704a909087be19cc3e1db2 | [
"Apache-2.0"
] | 1 | 2019-05-08T17:15:00.000Z | 2019-05-08T17:15:00.000Z | from __future__ import absolute_import
from builtins import str
from builtins import input
import sys
import argparse
from . import bosart_scrape
import datetime
import json
def valid_date(s):
try:
try:
date = datetime.datetime.strptime(s, "%Y-%m-%dT%H:%M:%S.%fZ")
except:
d... | 39.926316 | 240 | 0.675718 | 528 | 3,793 | 4.755682 | 0.314394 | 0.004779 | 0.040621 | 0.015532 | 0.241338 | 0.202708 | 0.178813 | 0.123855 | 0.123855 | 0.123855 | 0 | 0.000336 | 0.215924 | 3,793 | 94 | 241 | 40.351064 | 0.843981 | 0.017137 | 0 | 0.093333 | 0 | 0.066667 | 0.397746 | 0.02496 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.106667 | 0 | 0.28 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c73803a506dad8312572b3d3624ec1ddd2985a19 | 23,181 | py | Python | vgm2electron.py | simondotm/vgm2electron | 38e340d2baeaa3e5722ac982c82e58fb9858f9d9 | [
"MIT"
] | 2 | 2021-03-08T13:55:02.000Z | 2021-05-02T12:50:38.000Z | vgm2electron.py | simondotm/vgm2electron | 38e340d2baeaa3e5722ac982c82e58fb9858f9d9 | [
"MIT"
] | null | null | null | vgm2electron.py | simondotm/vgm2electron | 38e340d2baeaa3e5722ac982c82e58fb9858f9d9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# vgm2electron.py
# Tool for converting SN76489-based PSG VGM data to Acorn Electron
# By Simon Morris (https://github.com/simondotm/)
# See https://github.com/simondotm/vgm-packer
#
# Copyright (c) 2019 Simon Morris. All rights reserved.
#
# "MIT License":
# Permission is hereby granted, free of ... | 31.798354 | 230 | 0.60981 | 3,154 | 23,181 | 4.383323 | 0.188015 | 0.002893 | 0.003906 | 0.004629 | 0.155805 | 0.120506 | 0.090127 | 0.059096 | 0.047089 | 0.046438 | 0 | 0.044968 | 0.225832 | 23,181 | 728 | 231 | 31.842033 | 0.725398 | 0.351926 | 0 | 0.148352 | 0 | 0.005495 | 0.130094 | 0 | 0 | 0 | 0.004588 | 0.001374 | 0 | 1 | 0.016484 | false | 0 | 0.03022 | 0 | 0.093407 | 0.134615 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c739f9c426d2980ab50d3acc428d5d636d5dd280 | 14,198 | py | Python | twitter_sent.py | rthorst/TwitterSentiment | b719feffbfed1dfe9028db0900b3158d19322284 | [
"MIT"
] | 6 | 2020-02-21T15:50:34.000Z | 2021-11-09T19:45:50.000Z | twitter_sent.py | rthorst/TwitterSentiment | b719feffbfed1dfe9028db0900b3158d19322284 | [
"MIT"
] | null | null | null | twitter_sent.py | rthorst/TwitterSentiment | b719feffbfed1dfe9028db0900b3158d19322284 | [
"MIT"
] | null | null | null | import webapp2
import tweepy
import json
import csv
import os
import statistics
import bokeh
from bokeh.io import show, output_file
from bokeh.plotting import figure
from bokeh.models import HoverTool, ColumnDataSource
from bokeh.embed import components, json_item
from bokeh.resources import INLINE
from bokeh.models.gl... | 33.885442 | 120 | 0.623257 | 1,763 | 14,198 | 4.913216 | 0.276234 | 0.025976 | 0.012006 | 0.015701 | 0.18206 | 0.124336 | 0.064188 | 0.042023 | 0.019164 | 0.011083 | 0 | 0.016143 | 0.284477 | 14,198 | 419 | 121 | 33.885442 | 0.8365 | 0.322369 | 0 | 0.046784 | 0 | 0 | 0.085939 | 0.022237 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035088 | false | 0.005848 | 0.105263 | 0 | 0.175439 | 0.011696 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c73a657eabaaa5580cd95fd8f430b160b1e8e216 | 8,956 | py | Python | tests/testcgatools.py | ereide/pyga-camcal | fd25748ddb11c5b05ef24a2deca2689e0d899875 | [
"MIT"
] | 5 | 2018-05-22T09:11:31.000Z | 2022-03-11T02:32:01.000Z | tests/testcgatools.py | ereide/pyga-camcal | fd25748ddb11c5b05ef24a2deca2689e0d899875 | [
"MIT"
] | null | null | null | tests/testcgatools.py | ereide/pyga-camcal | fd25748ddb11c5b05ef24a2deca2689e0d899875 | [
"MIT"
] | null | null | null | import unittest
import clifford as cl
from clifford import g3c
from numpy import pi, e
import numpy as np
from scipy.sparse.linalg.matfuncs import _sinch as sinch
from clifford import MultiVector
from pygacal.common.cgatools import ( Sandwich, Dilator, Translator, Reflector,
inversion, Ro... | 33.17037 | 125 | 0.546226 | 1,142 | 8,956 | 4.140105 | 0.16725 | 0.097716 | 0.055838 | 0.01692 | 0.530457 | 0.514805 | 0.473985 | 0.461506 | 0.461506 | 0.450508 | 0 | 0.02789 | 0.335418 | 8,956 | 269 | 126 | 33.29368 | 0.766465 | 0.124721 | 0 | 0.280488 | 0 | 0 | 0.043403 | 0 | 0 | 0 | 0 | 0 | 0.219512 | 1 | 0.067073 | false | 0 | 0.067073 | 0 | 0.140244 | 0.158537 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c73c3d02ecdfac6eb2c791e1853c9f4bcf52f552 | 6,909 | py | Python | router/posts.py | DiegoLing33/prestij.xyz-api | 69a11a2c93dd98975f9becbc4b8f596e4941a05f | [
"MIT"
] | null | null | null | router/posts.py | DiegoLing33/prestij.xyz-api | 69a11a2c93dd98975f9becbc4b8f596e4941a05f | [
"MIT"
] | null | null | null | router/posts.py | DiegoLing33/prestij.xyz-api | 69a11a2c93dd98975f9becbc4b8f596e4941a05f | [
"MIT"
] | null | null | null | # ██╗░░░░░██╗███╗░░██╗░██████╗░░░░██████╗░██╗░░░░░░█████╗░░█████╗░██╗░░██╗
# ██║░░░░░██║████╗░██║██╔════╝░░░░██╔══██╗██║░░░░░██╔══██╗██╔══██╗██║░██╔╝
# ██║░░░░░██║██╔██╗██║██║░░██╗░░░░██████╦╝██║░░░░░███████║██║░░╚═╝█████═╝░
# ██║░░░░░██║██║╚████║██║░░╚██╗░░░██╔══██╗██║░░░░░██╔══██║██║░░██╗██╔═██╗░
# ███████╗██║██... | 25.876404 | 118 | 0.568823 | 725 | 6,909 | 6.448276 | 0.172414 | 0.047059 | 0.025668 | 0.051337 | 0.577968 | 0.52877 | 0.497326 | 0.474225 | 0.465882 | 0.459037 | 0 | 0.005161 | 0.186713 | 6,909 | 266 | 119 | 25.973684 | 0.672718 | 0.22145 | 0 | 0.390533 | 0 | 0 | 0.08837 | 0.004591 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.053254 | 0.011834 | 0.289941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c73c5c8e9b60dd28827b865f9cd0c2682cc0cd16 | 3,216 | py | Python | toontown/catalog/CatalogChatBalloon.py | CrankySupertoon01/Toontown-2 | 60893d104528a8e7eb4aced5d0015f22e203466d | [
"MIT"
] | 1 | 2021-02-13T22:40:50.000Z | 2021-02-13T22:40:50.000Z | toontown/catalog/CatalogChatBalloon.py | CrankySupertoonArchive/Toontown-2 | 60893d104528a8e7eb4aced5d0015f22e203466d | [
"MIT"
] | 1 | 2018-07-28T20:07:04.000Z | 2018-07-30T18:28:34.000Z | toontown/catalog/CatalogChatBalloon.py | CrankySupertoonArchive/Toontown-2 | 60893d104528a8e7eb4aced5d0015f22e203466d | [
"MIT"
] | 2 | 2019-12-02T01:39:10.000Z | 2021-02-13T22:41:00.000Z | from pandac.PandaModules import *
class CatalogChatBalloon:
TEXT_SHIFT = (0.1, -0.05, 1.1)
TEXT_SHIFT_REVERSED = -0.05
TEXT_SHIFT_PROP = 0.08
NATIVE_WIDTH = 10.0
MIN_WIDTH = 2.5
MIN_HEIGHT = 1
BUBBLE_PADDING = 0.3
BUBBLE_PADDING_PROP = 0.05
BUTTON_SCALE = 6
BUTTON_SHIFT = (-0.2,... | 34.212766 | 81 | 0.589552 | 430 | 3,216 | 4.325581 | 0.318605 | 0.021505 | 0.027957 | 0.01828 | 0.068817 | 0.045161 | 0.032258 | 0 | 0 | 0 | 0 | 0.026822 | 0.304415 | 3,216 | 93 | 82 | 34.580645 | 0.804649 | 0.195896 | 0 | 0.090909 | 0 | 0 | 0.013608 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.015152 | 0 | 0.242424 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c73c9cd86a4a585bb09b4cbd3f15cf16c3ddc42d | 831 | py | Python | TTS/vocoder/tf/utils/io.py | mightmay/Mien-TTS | 8a22ff0a79558b3cf4981ce1b63f4d1485ea6338 | [
"MIT"
] | null | null | null | TTS/vocoder/tf/utils/io.py | mightmay/Mien-TTS | 8a22ff0a79558b3cf4981ce1b63f4d1485ea6338 | [
"MIT"
] | null | null | null | TTS/vocoder/tf/utils/io.py | mightmay/Mien-TTS | 8a22ff0a79558b3cf4981ce1b63f4d1485ea6338 | [
"MIT"
] | 1 | 2021-04-28T17:30:03.000Z | 2021-04-28T17:30:03.000Z | import datetime
import pickle
import tensorflow as tf
def save_checkpoint(model, current_step, epoch, output_path, **kwargs):
""" Save TF Vocoder model """
state = {
'model': model.weights,
'step': current_step,
'epoch': epoch,
'date': datetime.date.today().strftime("%B %d, %Y"... | 29.678571 | 74 | 0.65704 | 113 | 831 | 4.619469 | 0.39823 | 0.05364 | 0.061303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216607 | 831 | 27 | 75 | 30.777778 | 0.801843 | 0.052948 | 0 | 0 | 0 | 0 | 0.046572 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c73dae2399d233b79b4e4ba84ebee8f7d71a6c22 | 10,463 | py | Python | archive/old_plots/plot_supplemental_divergence_correlations.py | garudlab/mother_infant | 98a27c83bf5ece9497d5a030c6c9396a8c514781 | [
"BSD-2-Clause"
] | 2 | 2020-08-09T06:19:11.000Z | 2021-08-18T17:12:23.000Z | archive/old_plots/plot_supplemental_divergence_correlations.py | garudlab/mother_infant | 98a27c83bf5ece9497d5a030c6c9396a8c514781 | [
"BSD-2-Clause"
] | null | null | null | archive/old_plots/plot_supplemental_divergence_correlations.py | garudlab/mother_infant | 98a27c83bf5ece9497d5a030c6c9396a8c514781 | [
"BSD-2-Clause"
] | 8 | 2019-02-20T22:21:55.000Z | 2021-02-13T00:55:40.000Z | import matplotlib
matplotlib.use('Agg')
import config
import parse_midas_data
import parse_HMP_data
import os.path
import pylab
import sys
import numpy
import diversity_utils
import gene_diversity_utils
import calculate_substitution_rates
import stats_utils
import matplotlib.colors as colors
import matplotlib.cm a... | 38.047273 | 203 | 0.750454 | 1,531 | 10,463 | 4.772044 | 0.176355 | 0.057487 | 0.03504 | 0.037777 | 0.568163 | 0.487271 | 0.450041 | 0.378319 | 0.364084 | 0.353408 | 0 | 0.023441 | 0.111154 | 10,463 | 275 | 204 | 38.047273 | 0.762151 | 0.121476 | 0 | 0.147651 | 0 | 0 | 0.073887 | 0.013997 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.161074 | 0 | 0.161074 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c73e6e9b07e0e5afa67a521f170e1521081ec4b3 | 34,246 | py | Python | multivis/plotFeatures.py | brettChapman/cimcb_vis | b373ed426b24ece1dcc20febd7c8023921b024d6 | [
"MIT"
] | 1 | 2021-06-27T23:52:40.000Z | 2021-06-27T23:52:40.000Z | multivis/plotFeatures.py | brettChapman/cimcb_vis | b373ed426b24ece1dcc20febd7c8023921b024d6 | [
"MIT"
] | null | null | null | multivis/plotFeatures.py | brettChapman/cimcb_vis | b373ed426b24ece1dcc20febd7c8023921b024d6 | [
"MIT"
] | 2 | 2021-06-27T23:53:03.000Z | 2021-07-12T12:59:23.000Z | import sys
import copy
import matplotlib
import matplotlib.pyplot as plt
import seaborn as sns
from collections import Counter
from .utils import *
import numpy as np
import pandas as pd
class plotFeatures:
usage = """Produces different feature plots given a data table and peak table.
Initial_Paramete... | 52.605223 | 586 | 0.5464 | 3,903 | 34,246 | 4.585191 | 0.089931 | 0.02291 | 0.038556 | 0.039338 | 0.577839 | 0.543753 | 0.517825 | 0.495809 | 0.49363 | 0.485807 | 0 | 0.00362 | 0.36267 | 34,246 | 651 | 587 | 52.605223 | 0.81632 | 0.013023 | 0 | 0.469159 | 0 | 0.037383 | 0.208759 | 0.001509 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013084 | false | 0 | 0.016822 | 0 | 0.039252 | 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 |
c73eca01ba5620a706110aaabb7ea66ae754f7f0 | 1,183 | py | Python | core/data/DataWriter.py | berendkleinhaneveld/Registrationshop | 0d6f3ee5324865cdcb419369139f37c39dfe9a1c | [
"MIT"
] | 25 | 2015-11-08T16:36:54.000Z | 2022-01-20T16:03:28.000Z | core/data/DataWriter.py | berendkleinhaneveld/Registrationshop | 0d6f3ee5324865cdcb419369139f37c39dfe9a1c | [
"MIT"
] | 2 | 2016-12-01T23:13:08.000Z | 2017-07-25T02:40:49.000Z | core/data/DataWriter.py | berendkleinhaneveld/Registrationshop | 0d6f3ee5324865cdcb419369139f37c39dfe9a1c | [
"MIT"
] | 10 | 2016-07-05T14:39:16.000Z | 2022-01-01T02:05:55.000Z | """
DataWriter.py
"""
from DataController import DataController
from DataReader import DataReader
from vtk import vtkMetaImageWriter
from vtk import vtkXMLImageDataWriter
class DataWriter(DataController):
"""
DataWriter writes an image data object to
disk using the provided format.
"""
def __init__(self):
sup... | 27.511628 | 76 | 0.752325 | 114 | 1,183 | 7.736842 | 0.447368 | 0.061224 | 0.105442 | 0.12585 | 0.339002 | 0.339002 | 0.339002 | 0.339002 | 0.339002 | 0.339002 | 0 | 0 | 0.155537 | 1,183 | 42 | 77 | 28.166667 | 0.882883 | 0.073542 | 0 | 0.366667 | 0 | 0 | 0.033395 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.233333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c73ff4534e3b71c1974b4bf7835f8ec9472d9d62 | 7,483 | py | Python | parkings/models/permit.py | klemmari1/parkkihubi | 93218c6046c0910e8a4c723dc7128c6eec085b8c | [
"MIT"
] | 12 | 2016-11-29T15:13:10.000Z | 2021-06-12T06:45:38.000Z | parkings/models/permit.py | niuzhipeng123/parkkihubi | 93218c6046c0910e8a4c723dc7128c6eec085b8c | [
"MIT"
] | 154 | 2016-11-30T09:07:58.000Z | 2022-02-12T08:29:36.000Z | parkings/models/permit.py | niuzhipeng123/parkkihubi | 93218c6046c0910e8a4c723dc7128c6eec085b8c | [
"MIT"
] | 15 | 2016-11-29T19:32:48.000Z | 2022-01-05T11:31:39.000Z | from itertools import chain
from django.conf import settings
from django.contrib.gis.db import models as gis_models
from django.db import models, router, transaction
from django.utils import timezone
from django.utils.translation import gettext_lazy as _
from ..fields import CleaningJsonField
from ..validators import... | 37.415 | 103 | 0.667379 | 834 | 7,483 | 5.739808 | 0.197842 | 0.036766 | 0.033424 | 0.026321 | 0.263631 | 0.205766 | 0.17464 | 0.17464 | 0.131815 | 0.131815 | 0 | 0.00275 | 0.222371 | 7,483 | 199 | 104 | 37.603015 | 0.8199 | 0 | 0 | 0.201258 | 0 | 0.006289 | 0.071094 | 0.006949 | 0 | 0 | 0 | 0 | 0.006289 | 1 | 0.119497 | false | 0 | 0.075472 | 0.062893 | 0.490566 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c744286930e6918cebec7544521adbaf000c03cc | 4,265 | py | Python | poi_mining/biz/LSA/logEntropy.py | yummydeli/machine_learning | 54471182ac21ef0eee26557a7bd6f3a3dc3a09bd | [
"MIT"
] | 1 | 2019-09-29T13:36:29.000Z | 2019-09-29T13:36:29.000Z | poi_mining/biz/LSA/logEntropy.py | yummydeli/machine_learning | 54471182ac21ef0eee26557a7bd6f3a3dc3a09bd | [
"MIT"
] | null | null | null | poi_mining/biz/LSA/logEntropy.py | yummydeli/machine_learning | 54471182ac21ef0eee26557a7bd6f3a3dc3a09bd | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# encoding:utf-8
# ##############################################################################
# The MIT License (MIT)
#
# Copyright (c) [2015] [baidu.com]
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (th... | 35.541667 | 100 | 0.557562 | 516 | 4,265 | 4.54845 | 0.410853 | 0.03579 | 0.027269 | 0.03579 | 0.11078 | 0.095441 | 0.040903 | 0 | 0 | 0 | 0 | 0.093126 | 0.30762 | 4,265 | 119 | 101 | 35.840336 | 0.701659 | 0.298476 | 0 | 0 | 0 | 0 | 0.032258 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.108696 | 0 | 0.347826 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c746ec91b306e818609b2388a6f07e590b53157d | 10,961 | py | Python | a3/ga.py | mishless/LearningSystems | 635d9af9d00ae0360d7ca8571bf47f782fdcdfe9 | [
"MIT"
] | 1 | 2021-08-01T03:30:49.000Z | 2021-08-01T03:30:49.000Z | a3/ga.py | mishless/LearningSystems | 635d9af9d00ae0360d7ca8571bf47f782fdcdfe9 | [
"MIT"
] | null | null | null | a3/ga.py | mishless/LearningSystems | 635d9af9d00ae0360d7ca8571bf47f782fdcdfe9 | [
"MIT"
] | null | null | null | # Genetic Algorithm for solving the Traveling Salesman problem
# Authors: Mihaela Stoycheva, Vukan Turkulov
# Includes
import configparser
import math
import matplotlib.pyplot as plt
import numpy
import random
import sys
from operator import itemgetter
#Global variables(yay!)
# Configuration variables(read from co... | 26.159905 | 77 | 0.624487 | 1,283 | 10,961 | 5.147311 | 0.145752 | 0.033919 | 0.012114 | 0.014991 | 0.224258 | 0.172926 | 0.110539 | 0.08086 | 0.071169 | 0.05633 | 0 | 0.015013 | 0.234285 | 10,961 | 418 | 78 | 26.222488 | 0.771834 | 0.056564 | 0 | 0.183453 | 0 | 0 | 0.06716 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104317 | false | 0 | 0.02518 | 0.007194 | 0.208633 | 0.165468 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c74916514901ff1d3dbfb832b264c70329520805 | 3,063 | py | Python | src/config/svc-monitor/svc_monitor/services/loadbalancer/drivers/ha_proxy/custom_attributes/haproxy_validator.py | jnpr-pranav/contrail-controller | 428eee37c28c31830fd764315794e1a6e52720c1 | [
"Apache-2.0"
] | 37 | 2020-09-21T10:42:26.000Z | 2022-01-09T10:16:40.000Z | src/config/svc-monitor/svc_monitor/services/loadbalancer/drivers/ha_proxy/custom_attributes/haproxy_validator.py | jnpr-pranav/contrail-controller | 428eee37c28c31830fd764315794e1a6e52720c1 | [
"Apache-2.0"
] | null | null | null | src/config/svc-monitor/svc_monitor/services/loadbalancer/drivers/ha_proxy/custom_attributes/haproxy_validator.py | jnpr-pranav/contrail-controller | 428eee37c28c31830fd764315794e1a6e52720c1 | [
"Apache-2.0"
] | 21 | 2020-08-25T12:48:42.000Z | 2022-03-22T04:32:18.000Z | from builtins import str
from builtins import range
from builtins import object
import logging
import inspect
import os
class CustomAttr(object):
"""This type handles non-flat data-types like
int, str, bool.
"""
def __init__(self, key, value):
self._value = value
self._key = key
... | 39.269231 | 79 | 0.479595 | 291 | 3,063 | 4.872852 | 0.247423 | 0.073343 | 0.070522 | 0.076164 | 0.373766 | 0.304654 | 0.304654 | 0.304654 | 0.304654 | 0.304654 | 0 | 0.002307 | 0.433888 | 3,063 | 77 | 80 | 39.779221 | 0.815456 | 0.025139 | 0 | 0.369231 | 0 | 0 | 0.080863 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107692 | false | 0.030769 | 0.092308 | 0.030769 | 0.276923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c74949362f59fa0673a80dd80fbdd7f5a0af70d8 | 1,405 | py | Python | python/janitor/typecache.py | monkeyman79/janitor | a41187c1b58b736a5de2b0b30eb51d85a65b17c3 | [
"MIT"
] | 2 | 2018-11-06T13:02:27.000Z | 2021-02-22T19:07:22.000Z | python/janitor/typecache.py | monkeyman79/janitor | a41187c1b58b736a5de2b0b30eb51d85a65b17c3 | [
"MIT"
] | 1 | 2016-09-28T12:24:43.000Z | 2016-09-28T13:47:35.000Z | python/janitor/typecache.py | monkeyman79/janitor | a41187c1b58b736a5de2b0b30eb51d85a65b17c3 | [
"MIT"
] | null | null | null |
import gdb
class TypeCache(object):
def __init__(self):
self.cache = {}
self.intptr_type = False
def clear(self):
self.cache = {}
self.intptr_type = False
def get_type(self, typename):
if typename in self.cache:
return self.cache[typename]
... | 26.509434 | 59 | 0.540925 | 160 | 1,405 | 4.5125 | 0.23125 | 0.124654 | 0.155125 | 0.078947 | 0.401662 | 0.401662 | 0.32687 | 0.32687 | 0.130194 | 0.130194 | 0 | 0.001148 | 0.380071 | 1,405 | 52 | 60 | 27.019231 | 0.827784 | 0 | 0 | 0.44186 | 0 | 0 | 0.029915 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093023 | false | 0.046512 | 0.023256 | 0 | 0.348837 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c74a04a139575fe8c546ea452d0215d058b4fa6f | 805 | py | Python | key_phrase.py | Santara/autoSLR | 8c524b8a0023d1434cb7be4e110103605d0d2cab | [
"MIT"
] | 1 | 2020-08-12T23:17:38.000Z | 2020-08-12T23:17:38.000Z | key_phrase.py | Santara/autoSLR | 8c524b8a0023d1434cb7be4e110103605d0d2cab | [
"MIT"
] | null | null | null | key_phrase.py | Santara/autoSLR | 8c524b8a0023d1434cb7be4e110103605d0d2cab | [
"MIT"
] | 1 | 2019-08-29T09:36:46.000Z | 2019-08-29T09:36:46.000Z | import os
import sys
directory = sys.argv[1]
outfile = open("key_phrases.csv","w")
files = {}
for filename in os.listdir(directory):
text=[]
with open(os.path.join(directory, filename)) as f:
text=[l.strip() for l in f if len(l.strip())>2]
data=''
for t in text:
if len(t.split()) > 1:
data = data+'. '+t.s... | 25.15625 | 105 | 0.695652 | 117 | 805 | 4.726496 | 0.521368 | 0.028933 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011494 | 0.135404 | 805 | 31 | 106 | 25.967742 | 0.783046 | 0 | 0 | 0 | 0 | 0 | 0.185093 | 0.150311 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c74ab0b0f80631d9cb06c8040217e1f860dd10c2 | 1,127 | py | Python | tests/test_utils.py | aced-differentiate/dft-input-gen | 14bee323517714c433682bad2dcb897b223dd5ec | [
"Apache-2.0"
] | 1 | 2021-04-15T09:54:52.000Z | 2021-04-15T09:54:52.000Z | tests/test_utils.py | CitrineInformatics/dft-input-gen | 14bee323517714c433682bad2dcb897b223dd5ec | [
"Apache-2.0"
] | 1 | 2021-01-28T22:12:07.000Z | 2021-01-28T22:12:07.000Z | tests/test_utils.py | aced-differentiate/dft-input-gen | 14bee323517714c433682bad2dcb897b223dd5ec | [
"Apache-2.0"
] | 2 | 2020-12-08T18:14:13.000Z | 2020-12-18T19:01:11.000Z | """Unit tests for helper utilities in :mod:`dftinputgen.utils`."""
import os
import pytest
from ase import io as ase_io
from dftinputgen.utils import get_elem_symbol
from dftinputgen.utils import read_crystal_structure
from dftinputgen.utils import get_kpoint_grid_from_spacing
from dftinputgen.utils import DftInputG... | 28.897436 | 75 | 0.754215 | 168 | 1,127 | 4.744048 | 0.392857 | 0.070263 | 0.138018 | 0.130489 | 0.196989 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012618 | 0.156167 | 1,127 | 38 | 76 | 29.657895 | 0.825447 | 0.135759 | 0 | 0 | 0 | 0 | 0.040331 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.125 | false | 0 | 0.291667 | 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 |
c74b3631946b737bd9c4684c29b89101e0d8c544 | 6,044 | py | Python | core/models.py | nforesperance/Django-Channels-ChatApp | b244954206214f7dc1b8793291d957a5bf80f0e2 | [
"MIT"
] | 2 | 2020-07-18T05:19:36.000Z | 2020-07-18T05:19:38.000Z | core/models.py | nforesperance/Django-Channels-ChatApp | b244954206214f7dc1b8793291d957a5bf80f0e2 | [
"MIT"
] | 4 | 2021-03-19T02:37:45.000Z | 2021-06-04T23:02:41.000Z | core/models.py | nforesperance/Django-Channels-ChatApp | b244954206214f7dc1b8793291d957a5bf80f0e2 | [
"MIT"
] | null | null | null | from django.contrib.auth.models import User
from django.db.models import (Model, TextField, DateTimeField, ForeignKey,
CASCADE)
from asgiref.sync import async_to_sync
from channels.layers import get_channel_layer
from django.db import models
import json
class MessageModel(Model):
""... | 32.67027 | 93 | 0.603077 | 741 | 6,044 | 4.723347 | 0.174089 | 0.024 | 0.018857 | 0.024286 | 0.635714 | 0.563429 | 0.563429 | 0.502286 | 0.440286 | 0.358857 | 0 | 0.000467 | 0.290702 | 6,044 | 184 | 94 | 32.847826 | 0.815955 | 0.119126 | 0 | 0.398374 | 0 | 0 | 0.062647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.154472 | false | 0 | 0.04878 | 0.04065 | 0.398374 | 0.04065 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c74bed1c84a21dce43450d469d8869b0372e61e0 | 15,798 | py | Python | backup/model.py | jsikyoon/ASNP-RMR | ddd3e586b01ba3a7f8b3721582aca7403649400e | [
"MIT"
] | 8 | 2020-07-21T02:49:54.000Z | 2021-09-28T02:22:37.000Z | backup/model.py | jsikyoon/ASNP-RMR | ddd3e586b01ba3a7f8b3721582aca7403649400e | [
"MIT"
] | null | null | null | backup/model.py | jsikyoon/ASNP-RMR | ddd3e586b01ba3a7f8b3721582aca7403649400e | [
"MIT"
] | 1 | 2020-09-02T06:39:49.000Z | 2020-09-02T06:39:49.000Z | import tensorflow as tf
import numpy as np
# utility methods
def batch_mlp(input, output_sizes, variable_scope):
"""Apply MLP to the final axis of a 3D tensor (reusing already defined MLPs).
Args:
input: input tensor of shape [B,n,d_in].
output_sizes: An iterable containing the output sizes of the MLP a... | 36.068493 | 81 | 0.660653 | 2,261 | 15,798 | 4.433879 | 0.145953 | 0.044988 | 0.03192 | 0.053067 | 0.421347 | 0.364888 | 0.295362 | 0.257456 | 0.229127 | 0.224339 | 0 | 0.007579 | 0.239967 | 15,798 | 437 | 82 | 36.15103 | 0.827351 | 0.466641 | 0 | 0.169591 | 0 | 0 | 0.048275 | 0.009784 | 0 | 0 | 0 | 0 | 0 | 1 | 0.087719 | false | 0 | 0.011696 | 0 | 0.187135 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c74e4682a52e8afc4e35ad4f69f1a64dccbd1416 | 3,520 | py | Python | minotaur/_minotaur.py | giannitedesco/minotaur | 1a043818775e14054cc3467ba6d1c07cbf128c6b | [
"Apache-2.0"
] | 172 | 2020-08-24T14:34:00.000Z | 2021-12-29T21:56:33.000Z | minotaur/_minotaur.py | giannitedesco/minotaur | 1a043818775e14054cc3467ba6d1c07cbf128c6b | [
"Apache-2.0"
] | 3 | 2020-08-25T13:46:30.000Z | 2021-02-27T01:25:38.000Z | minotaur/_minotaur.py | giannitedesco/minotaur | 1a043818775e14054cc3467ba6d1c07cbf128c6b | [
"Apache-2.0"
] | 4 | 2020-08-24T17:21:18.000Z | 2021-12-29T21:57:42.000Z | from typing import Dict, Tuple, Optional
from pathlib import Path
import asyncio
from ._mask import Mask
from ._event import Event
from ._base import InotifyBase
__all__ = ('Minotaur',)
class Notification:
__slots__ = (
'_path',
'_type',
'_isdir',
'_unmount',
'_qoverflow... | 26.268657 | 75 | 0.559659 | 398 | 3,520 | 4.718593 | 0.31407 | 0.025559 | 0.022364 | 0.028754 | 0.124601 | 0.101171 | 0.070288 | 0.070288 | 0.070288 | 0.070288 | 0 | 0.000865 | 0.343182 | 3,520 | 133 | 76 | 26.466165 | 0.811419 | 0.130966 | 0 | 0.265306 | 0 | 0.010204 | 0.042673 | 0.012901 | 0 | 0 | 0 | 0.007519 | 0 | 1 | 0.122449 | false | 0 | 0.061224 | 0.05102 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c751066d68d4e91afb71f1ee11d13e9bcbb998a8 | 8,802 | py | Python | novelty-detection/train_wood_vgg19.py | matherm/python-data-science | bdb49b18c5ef6044f8a9e6f95c81d5f7bb1d511f | [
"MIT"
] | 1 | 2020-03-24T09:22:04.000Z | 2020-03-24T09:22:04.000Z | novelty-detection/train_wood_vgg19.py | matherm/python-data-science | bdb49b18c5ef6044f8a9e6f95c81d5f7bb1d511f | [
"MIT"
] | 1 | 2020-06-16T14:42:29.000Z | 2020-06-16T14:42:29.000Z | novelty-detection/train_wood_vgg19.py | matherm/python-data-science | bdb49b18c5ef6044f8a9e6f95c81d5f7bb1d511f | [
"MIT"
] | null | null | null | import argparse
import sys
import torch
import numpy as np
import torch.nn as nn
from torch.utils.data import DataLoader
from torchvision.datasets import MNIST
from torchvision.datasets import CIFAR10
import torchvision.transforms as transforms
import matplotlib.pyplot as plt
parser = argparse.ArgumentParser(descripti... | 34.249027 | 213 | 0.546353 | 893 | 8,802 | 5.204927 | 0.234043 | 0.025818 | 0.025602 | 0.017212 | 0.594664 | 0.577453 | 0.568847 | 0.545181 | 0.510757 | 0.498064 | 0 | 0.051189 | 0.311975 | 8,802 | 256 | 214 | 34.382813 | 0.716314 | 0.095546 | 0 | 0.503876 | 0 | 0 | 0.066952 | 0.009087 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015504 | false | 0 | 0.116279 | 0 | 0.147287 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c75685d19bc8be9c76eb30777f9bd2a54b73db11 | 682 | py | Python | tests/conftest.py | junjunjunk/torchgpipe | 3db11e1da0fc432eb3f3807ddcb22967973c8b28 | [
"Apache-2.0"
] | 532 | 2019-05-27T09:23:04.000Z | 2022-03-31T04:07:55.000Z | tests/conftest.py | junjunjunk/torchgpipe | 3db11e1da0fc432eb3f3807ddcb22967973c8b28 | [
"Apache-2.0"
] | 29 | 2019-07-01T19:49:54.000Z | 2021-11-28T00:51:00.000Z | tests/conftest.py | junjunjunk/torchgpipe | 3db11e1da0fc432eb3f3807ddcb22967973c8b28 | [
"Apache-2.0"
] | 68 | 2019-05-27T09:27:32.000Z | 2022-03-27T13:52:18.000Z | import pytest
import torch
@pytest.fixture(autouse=True)
def manual_seed_zero():
torch.manual_seed(0)
@pytest.fixture(scope='session')
def cuda_sleep():
# Warm-up CUDA.
torch.empty(1, device='cuda')
# From test/test_cuda.py in PyTorch.
start = torch.cuda.Event(enable_timing=True)
end = torc... | 22 | 62 | 0.696481 | 95 | 682 | 4.768421 | 0.484211 | 0.099338 | 0.05298 | 0.0883 | 0.13245 | 0.13245 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0.178886 | 682 | 30 | 63 | 22.733333 | 0.773214 | 0.070381 | 0 | 0 | 0 | 0 | 0.058637 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0.05 | 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 |
c756e2f724651746fcaf020b50f3e0f2bdeb6442 | 54,090 | py | Python | lib/python/treadmill/scheduler/__init__.py | drienyov/treadmill | ce21537cd9a2fdb0567ac2aa3de1afcb2f6861de | [
"Apache-2.0"
] | null | null | null | lib/python/treadmill/scheduler/__init__.py | drienyov/treadmill | ce21537cd9a2fdb0567ac2aa3de1afcb2f6861de | [
"Apache-2.0"
] | null | null | null | lib/python/treadmill/scheduler/__init__.py | drienyov/treadmill | ce21537cd9a2fdb0567ac2aa3de1afcb2f6861de | [
"Apache-2.0"
] | null | null | null | """Treadmill hierarchical scheduler.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import abc
import collections
import datetime
import heapq
import itertools
import logging
import operator
import sys
import tim... | 30.016648 | 79 | 0.578203 | 6,203 | 54,090 | 4.876028 | 0.102047 | 0.013489 | 0.01058 | 0.00972 | 0.268796 | 0.166303 | 0.112379 | 0.090888 | 0.0772 | 0.067315 | 0 | 0.003823 | 0.332612 | 54,090 | 1,801 | 80 | 30.033315 | 0.83404 | 0.198743 | 0 | 0.269159 | 0 | 0 | 0.039318 | 0.00052 | 0 | 0 | 0 | 0.00111 | 0.026168 | 1 | 0.124299 | false | 0.003738 | 0.014953 | 0.000935 | 0.253271 | 0.000935 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c758c753c3644ae1a4c381597cfe0cc82c7e378b | 1,260 | py | Python | banners/bannerRan.py | gothyyy/AIDungeon | c198371c34d914e9d996559ef850c87a76f572c4 | [
"MIT"
] | 1 | 2019-12-30T21:45:06.000Z | 2019-12-30T21:45:06.000Z | banners/bannerRan.py | gothyyy/AIDungeon | c198371c34d914e9d996559ef850c87a76f572c4 | [
"MIT"
] | null | null | null | banners/bannerRan.py | gothyyy/AIDungeon | c198371c34d914e9d996559ef850c87a76f572c4 | [
"MIT"
] | null | null | null | import random
import sys
import time
import json
import os
import warnings
import numpy as np
import glob, os
stat_mini = 1
stat_max = 0
listBanners = []
#HOW TO USE IT:
#1 copy the opening.txt
#2 remove the graphic (but do keep top logo for consistency)
#3 add ASCII art that is 78 or less characters in widt... | 14.823529 | 86 | 0.640476 | 183 | 1,260 | 4.278689 | 0.52459 | 0.0447 | 0.040868 | 0.048531 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011074 | 0.283333 | 1,260 | 84 | 87 | 15 | 0.856035 | 0.269841 | 0 | 0.166667 | 0 | 0 | 0.014301 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0.027778 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c758e049e83a8786ae62f5c9ab2545ec4624de3e | 511 | py | Python | BondMarket/app/theme_lib.py | Meith0717/BondMarket | 83d99bd5930758e73b4fe74a92e706c7bc0eadb6 | [
"Apache-2.0"
] | null | null | null | BondMarket/app/theme_lib.py | Meith0717/BondMarket | 83d99bd5930758e73b4fe74a92e706c7bc0eadb6 | [
"Apache-2.0"
] | null | null | null | BondMarket/app/theme_lib.py | Meith0717/BondMarket | 83d99bd5930758e73b4fe74a92e706c7bc0eadb6 | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass
@dataclass
class theme:
name : str
bg_color : str
fg_color : str
lb_color : str
ttk_theme : str
LIGHT = theme(
name='LIGHT',
bg_color=None,
fg_color='black',
lb_color='#f0f0f0',
ttk_them... | 19.653846 | 35 | 0.485323 | 53 | 511 | 4.45283 | 0.396226 | 0.114407 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0.412916 | 511 | 25 | 36 | 20.44 | 0.736667 | 0 | 0 | 0 | 0 | 0 | 0.109054 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.318182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7592054e40573b08b4d8a7a1efd9326b5695f4f | 3,877 | py | Python | run.py | rimijoker/CA-MTL | 068e25e0860a8ec81462018126eace4c004bacd4 | [
"MIT"
] | 1 | 2021-08-03T03:54:02.000Z | 2021-08-03T03:54:02.000Z | run.py | rimijoker/CA-MTL | 068e25e0860a8ec81462018126eace4c004bacd4 | [
"MIT"
] | null | null | null | run.py | rimijoker/CA-MTL | 068e25e0860a8ec81462018126eace4c004bacd4 | [
"MIT"
] | 1 | 2021-07-31T09:44:00.000Z | 2021-07-31T09:44:00.000Z | import os
import sys
import re
import json
import logging
import torch
from transformers import (
HfArgumentParser,
set_seed,
AutoTokenizer,
AutoConfig,
EvalPrediction,
)
from src.model.ca_mtl import CaMtl, CaMtlArguments
from src.utils.misc import MultiTaskDataArguments, Split
from src.mtl_traine... | 26.923611 | 98 | 0.660562 | 474 | 3,877 | 5.105485 | 0.280591 | 0.109091 | 0.040496 | 0.039669 | 0.273967 | 0.221901 | 0.158264 | 0.105372 | 0.072314 | 0.072314 | 0 | 0.004118 | 0.248388 | 3,877 | 143 | 99 | 27.111888 | 0.826356 | 0.020892 | 0 | 0.117117 | 0 | 0.009009 | 0.063802 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045045 | false | 0 | 0.108108 | 0 | 0.171171 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c75af988694e7b9961b260a9f014fab177797bfa | 1,033 | py | Python | examples/readWebsocket.py | uadlq/PhyPiDAQ-PiOS11 | fc6060551be2cc0143a157081341bf3c338d9fbd | [
"BSD-2-Clause"
] | null | null | null | examples/readWebsocket.py | uadlq/PhyPiDAQ-PiOS11 | fc6060551be2cc0143a157081341bf3c338d9fbd | [
"BSD-2-Clause"
] | null | null | null | examples/readWebsocket.py | uadlq/PhyPiDAQ-PiOS11 | fc6060551be2cc0143a157081341bf3c338d9fbd | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python3
"""Read data in CSV format from websocket
"""
import sys
import asyncio
import websockets
# read url from command line
if len(sys.argv) >= 2:
uri = sys.argv[1]
else:
# host url and port
uri = "ws://localhost:8314"
print("*==* ", sys.argv[0], " Lese Daten von url ", uri)
async def ... | 25.195122 | 72 | 0.580833 | 130 | 1,033 | 4.546154 | 0.576923 | 0.094755 | 0.060914 | 0.067682 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012295 | 0.291384 | 1,033 | 40 | 73 | 25.825 | 0.795082 | 0.157793 | 0 | 0.086957 | 0 | 0 | 0.160934 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.130435 | 0 | 0.130435 | 0.173913 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c75b6da97a2671884ced55ad3cbef590baf2e5c6 | 2,187 | py | Python | settings/__init__.py | arcana261/python-grpc-boilerplate | dd20767ad5540a49e1db802ce578c7b8e416ccbb | [
"Unlicense"
] | null | null | null | settings/__init__.py | arcana261/python-grpc-boilerplate | dd20767ad5540a49e1db802ce578c7b8e416ccbb | [
"Unlicense"
] | null | null | null | settings/__init__.py | arcana261/python-grpc-boilerplate | dd20767ad5540a49e1db802ce578c7b8e416ccbb | [
"Unlicense"
] | null | null | null | import os
import sys
import itertools
import json
_NONE = object()
class SettingManager:
_sentry = object()
def __init__(self):
self.env = os.getenv('ENV', 'prd')
try:
self._default = __import__('settings.default', fromlist=['*'])
except ModuleNotFoundError:
... | 27.683544 | 99 | 0.577503 | 227 | 2,187 | 5.259912 | 0.281938 | 0.035176 | 0.030151 | 0.061977 | 0.134003 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.313672 | 2,187 | 78 | 100 | 28.038462 | 0.79547 | 0 | 0 | 0.280702 | 0 | 0 | 0.027435 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.122807 | false | 0 | 0.105263 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c75d41f3ecd90250dc9544657aba89378f5765d0 | 2,150 | py | Python | services/UserService.py | erginbalta/FarmChain | a542d19212f176b7b5d12806078459da105e5afa | [
"Apache-2.0"
] | 1 | 2021-01-16T14:38:21.000Z | 2021-01-16T14:38:21.000Z | services/UserService.py | erginbalta/FarmChain | a542d19212f176b7b5d12806078459da105e5afa | [
"Apache-2.0"
] | null | null | null | services/UserService.py | erginbalta/FarmChain | a542d19212f176b7b5d12806078459da105e5afa | [
"Apache-2.0"
] | 1 | 2020-07-23T04:00:07.000Z | 2020-07-23T04:00:07.000Z | import mysql.connector
import socket
from contextlib import closing
import json
import random
packetType= ["INF","TRN","USR"]
database = mysql.connector.connect(
host="localhost",
user="root",
port="3307",
passwd="ergin00000",
database="farmchain"
)
def userIdCreator():
data = []
numericId... | 26.875 | 119 | 0.676744 | 239 | 2,150 | 6.07113 | 0.39749 | 0.02481 | 0.02481 | 0.027567 | 0.1847 | 0.152998 | 0.078567 | 0 | 0 | 0 | 0 | 0.020713 | 0.191628 | 2,150 | 79 | 120 | 27.21519 | 0.814154 | 0 | 0 | 0.090909 | 0 | 0 | 0.051724 | 0.012582 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121212 | false | 0.045455 | 0.075758 | 0 | 0.318182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c76014b2a087d9f2456ffc8e8847fb9b397481a4 | 8,148 | py | Python | sdcc2elf.py | Vector35/llil_transpiler | 6f6f368d34cb872460ad1634ddcbc4207276feb6 | [
"MIT"
] | 14 | 2019-08-23T13:49:07.000Z | 2021-12-24T20:09:57.000Z | sdcc2elf.py | Vector35/llil_transpiler | 6f6f368d34cb872460ad1634ddcbc4207276feb6 | [
"MIT"
] | null | null | null | sdcc2elf.py | Vector35/llil_transpiler | 6f6f368d34cb872460ad1634ddcbc4207276feb6 | [
"MIT"
] | 1 | 2021-12-24T20:10:00.000Z | 2021-12-24T20:10:00.000Z | #!/usr/bin/env python
#
# convert SDCC .rel files to 32-bit ELF relocatable
#
# resulting file is simple:
#
# ------------------------
# ELF header
# ------------------------
# .text section
# .shstrtab section
# .strtab section
# .symtab section
# ------------------------
# NULL elf32_shdr
# .text elf32_shdr
# .shstrt... | 27.714286 | 88 | 0.567624 | 1,200 | 8,148 | 3.65 | 0.179167 | 0.026027 | 0.022603 | 0.036986 | 0.299315 | 0.18242 | 0.171918 | 0.171918 | 0.17032 | 0.137443 | 0 | 0.030615 | 0.202258 | 8,148 | 293 | 89 | 27.808874 | 0.643231 | 0.232327 | 0 | 0.299517 | 0 | 0.004831 | 0.117742 | 0.021025 | 0 | 0 | 0.002426 | 0 | 0.038647 | 1 | 0.004831 | false | 0 | 0.019324 | 0 | 0.024155 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c760d11b6bcb337986c7f02b8372675729e8a684 | 3,743 | py | Python | eval.py | nikinsta/deep-siamese-text-similarity-on-python-3 | 80fffd86da1d9f6bc0cb154a9415ff767d944777 | [
"MIT"
] | null | null | null | eval.py | nikinsta/deep-siamese-text-similarity-on-python-3 | 80fffd86da1d9f6bc0cb154a9415ff767d944777 | [
"MIT"
] | null | null | null | eval.py | nikinsta/deep-siamese-text-similarity-on-python-3 | 80fffd86da1d9f6bc0cb154a9415ff767d944777 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
import tensorflow as tf
import numpy as np
import os
import time
import datetime
from tensorflow.contrib import learn
from input_helpers import InputHelper
# Parameters
# ==================================================
# Eval Parameters
tf.flags.DEFINE_integer("batch_size", 64, "Batch Size (... | 42.05618 | 167 | 0.696767 | 509 | 3,743 | 4.880157 | 0.3222 | 0.021739 | 0.05475 | 0.061192 | 0.124396 | 0.096618 | 0 | 0 | 0 | 0 | 0 | 0.018164 | 0.161635 | 3,743 | 88 | 168 | 42.534091 | 0.773423 | 0.142399 | 0 | 0 | 0 | 0 | 0.195931 | 0.022535 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.135593 | 0 | 0.135593 | 0.169492 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c76173ed74a504071f1116fc3a7dc17a1c832c39 | 4,626 | py | Python | accounts/views.py | nikhiljohn10/django-auth | 01d97e8173436c3446f039cfa6472ece3cd9f96a | [
"MIT"
] | null | null | null | accounts/views.py | nikhiljohn10/django-auth | 01d97e8173436c3446f039cfa6472ece3cd9f96a | [
"MIT"
] | null | null | null | accounts/views.py | nikhiljohn10/django-auth | 01d97e8173436c3446f039cfa6472ece3cd9f96a | [
"MIT"
] | null | null | null | from django.urls import reverse
from django.conf import settings
from django.contrib import messages
from django.shortcuts import render, redirect
from django.core.mail import send_mail
from django.contrib.auth import login, logout, views, authenticate
from django.views.generic.edit import CreateView
from django.contri... | 31.684932 | 78 | 0.671422 | 562 | 4,626 | 5.402135 | 0.234875 | 0.059947 | 0.05336 | 0.029644 | 0.409091 | 0.350461 | 0.318182 | 0.304348 | 0.304348 | 0.304348 | 0 | 0.000278 | 0.222655 | 4,626 | 145 | 79 | 31.903448 | 0.843993 | 0 | 0 | 0.425 | 0 | 0 | 0.141159 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.1 | 0 | 0.366667 | 0.016667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c769abd3fe7f81479f81afe9e3156873d7f5b0e2 | 17,050 | py | Python | utils/manisfestManager.py | ovitrac/pizza3 | 0f4dc6e362fd8665c72ec13328df05f9119dfbc3 | [
"MIT"
] | 1 | 2022-02-07T14:10:10.000Z | 2022-02-07T14:10:10.000Z | utils/manisfestManager.py | ovitrac/Pizza3 | 0f4dc6e362fd8665c72ec13328df05f9119dfbc3 | [
"MIT"
] | null | null | null | utils/manisfestManager.py | ovitrac/Pizza3 | 0f4dc6e362fd8665c72ec13328df05f9119dfbc3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
###############################################################################
# #
# manifestManager.py #
# ... | 44.285714 | 130 | 0.436716 | 1,545 | 17,050 | 4.709385 | 0.231068 | 0.018142 | 0.016493 | 0.013194 | 0.195574 | 0.150082 | 0.101842 | 0.061435 | 0.04508 | 0.037933 | 0 | 0.014996 | 0.358592 | 17,050 | 385 | 131 | 44.285714 | 0.650329 | 0.187977 | 0 | 0.199219 | 0 | 0 | 0.104642 | 0.032229 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042969 | false | 0 | 0.027344 | 0 | 0.132813 | 0.097656 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c76c70c2e310ab6dd7d23270c230a7b48cbff5cf | 729 | py | Python | temperature.py | rhwlr/TEST_PRELIM_SKILLS_EXAM | a776ab7631fac8bed1aea0470918e6250752ce8e | [
"MIT"
] | null | null | null | temperature.py | rhwlr/TEST_PRELIM_SKILLS_EXAM | a776ab7631fac8bed1aea0470918e6250752ce8e | [
"MIT"
] | null | null | null | temperature.py | rhwlr/TEST_PRELIM_SKILLS_EXAM | a776ab7631fac8bed1aea0470918e6250752ce8e | [
"MIT"
] | null | null | null | class Temperature:
def __init__(self, kelvin=None, celsius=None, fahrenheit=None):
values = [x for x in [kelvin, celsius, fahrenheit] if x]
if len(values) < 1:
raise ValueError('Need argument')
if len(values) > 1:
raise ValueError('Only one argument')
if ce... | 29.16 | 72 | 0.562414 | 86 | 729 | 4.674419 | 0.453488 | 0.149254 | 0.054726 | 0.059701 | 0.228856 | 0.134328 | 0 | 0 | 0 | 0 | 0 | 0.035639 | 0.345679 | 729 | 25 | 73 | 29.16 | 0.807128 | 0 | 0 | 0 | 0 | 0 | 0.143836 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0 | 0.058824 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c76ec369645b0f101be129ffedbb1f290be5f94b | 510 | py | Python | tests/test_ping.py | d-wysocki/flask-resty | 2a5e7d7ea7e2130dce44b8f50625df72ad0dcd19 | [
"MIT"
] | 86 | 2015-11-25T07:09:10.000Z | 2022-02-15T19:40:30.000Z | tests/test_ping.py | d-wysocki/flask-resty | 2a5e7d7ea7e2130dce44b8f50625df72ad0dcd19 | [
"MIT"
] | 180 | 2015-11-24T23:02:53.000Z | 2022-03-31T04:05:38.000Z | tests/test_ping.py | d-wysocki/flask-resty | 2a5e7d7ea7e2130dce44b8f50625df72ad0dcd19 | [
"MIT"
] | 17 | 2015-12-28T11:05:47.000Z | 2022-03-15T12:10:02.000Z | import pytest
from flask_resty import Api
from flask_resty.testing import assert_response
# -----------------------------------------------------------------------------
@pytest.fixture(autouse=True)
def routes(app):
api = Api(app, "/api")
api.add_ping("/ping")
# ------------------------------------------... | 23.181818 | 79 | 0.490196 | 50 | 510 | 4.8 | 0.5 | 0.175 | 0.116667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006682 | 0.119608 | 510 | 21 | 80 | 24.285714 | 0.52784 | 0.303922 | 0 | 0 | 0 | 0 | 0.039773 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 1 | 0.181818 | false | 0 | 0.272727 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c76f8dffc967eba49049f65ff4df98887b137c0d | 1,476 | py | Python | tests/test_vetters.py | pllim/exovetter | 75c6ca609331c04a55c0a6b4c858be71a4dfdfea | [
"MIT",
"BSD-3-Clause"
] | null | null | null | tests/test_vetters.py | pllim/exovetter | 75c6ca609331c04a55c0a6b4c858be71a4dfdfea | [
"MIT",
"BSD-3-Clause"
] | null | null | null | tests/test_vetters.py | pllim/exovetter | 75c6ca609331c04a55c0a6b4c858be71a4dfdfea | [
"MIT",
"BSD-3-Clause"
] | null | null | null | from numpy.testing import assert_allclose
from astropy.io import ascii
from astropy import units as u
import lightkurve as lk
from exovetter import const as exo_const
from exovetter import vetters
from exovetter.tce import Tce
from astropy.utils.data import get_pkg_data_filename
def get_wasp18_tce():
tce = Tce... | 25.894737 | 71 | 0.638889 | 205 | 1,476 | 4.37561 | 0.44878 | 0.06243 | 0.070234 | 0.040134 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070652 | 0.252033 | 1,476 | 56 | 72 | 26.357143 | 0.741848 | 0 | 0 | 0 | 0 | 0 | 0.060298 | 0.02168 | 0 | 0 | 0 | 0 | 0.105263 | 1 | 0.078947 | false | 0 | 0.210526 | 0 | 0.342105 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c770f106a56c64793bd9f4e329f2b5bb1fbfddef | 4,270 | py | Python | pyqtgraph/dockarea/DockDrop.py | hishizuka/pyqtgraph | 4820625d93ffb41f324431d0d29b395cf91f339e | [
"MIT"
] | 2,762 | 2015-01-02T14:34:10.000Z | 2022-03-30T14:06:07.000Z | pyqtgraph/dockarea/DockDrop.py | hishizuka/pyqtgraph | 4820625d93ffb41f324431d0d29b395cf91f339e | [
"MIT"
] | 1,901 | 2015-01-12T03:20:30.000Z | 2022-03-31T16:33:36.000Z | pyqtgraph/dockarea/DockDrop.py | hishizuka/pyqtgraph | 4820625d93ffb41f324431d0d29b395cf91f339e | [
"MIT"
] | 1,038 | 2015-01-01T04:05:49.000Z | 2022-03-31T11:57:51.000Z | # -*- coding: utf-8 -*-
from ..Qt import QtCore, QtGui
class DockDrop(object):
"""Provides dock-dropping methods"""
def __init__(self, allowedAreas=None):
object.__init__(self)
if allowedAreas is None:
allowedAreas = ['center', 'right', 'left', 'top', 'bottom']
self.allowedA... | 32.348485 | 91 | 0.525527 | 472 | 4,270 | 4.713983 | 0.313559 | 0.140225 | 0.043146 | 0.035955 | 0.141573 | 0.087191 | 0.069213 | 0.044944 | 0 | 0 | 0 | 0.011269 | 0.355738 | 4,270 | 131 | 92 | 32.59542 | 0.797528 | 0.112178 | 0 | 0.282828 | 0 | 0 | 0.031582 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.10101 | false | 0 | 0.010101 | 0 | 0.151515 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c773836d5d08ecba5ffb7e86e3b25bdc07e2351a | 3,927 | py | Python | cisco-ios-xr/ydk/models/cisco_ios_xr/SNMP_FRAMEWORK_MIB.py | bopopescu/ACI | dd717bc74739eeed4747b3ea9e36b239580df5e1 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | cisco-ios-xr/ydk/models/cisco_ios_xr/SNMP_FRAMEWORK_MIB.py | bopopescu/ACI | dd717bc74739eeed4747b3ea9e36b239580df5e1 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | cisco-ios-xr/ydk/models/cisco_ios_xr/SNMP_FRAMEWORK_MIB.py | bopopescu/ACI | dd717bc74739eeed4747b3ea9e36b239580df5e1 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-07-22T04:04:44.000Z | 2020-07-22T04:04:44.000Z | """ SNMP_FRAMEWORK_MIB
"""
from collections import OrderedDict
from ydk.types import Entity, EntityPath, Identity, Enum, YType, YLeaf, YLeafList, YList, LeafDataList, Bits, Empty, Decimal64
from ydk.filters import YFilter
from ydk.errors import YError, YModelError
from ydk.errors.error_handler import handle_type_er... | 28.456522 | 158 | 0.595111 | 363 | 3,927 | 6.170799 | 0.286501 | 0.063839 | 0.078571 | 0.026786 | 0.276786 | 0.261607 | 0.261607 | 0.261607 | 0.178571 | 0.178571 | 0 | 0.025285 | 0.28495 | 3,927 | 137 | 159 | 28.664234 | 0.772436 | 0.180545 | 0 | 0.245614 | 0 | 0 | 0.163279 | 0.050474 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070175 | false | 0 | 0.087719 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c773cb05d9fdb9aa7ea5543ac5440822be912b9e | 2,941 | py | Python | handlers/redirects.py | Bainky/Ventify | 638486dc5f265a4907a5a193ea2a7c9b44e8e943 | [
"MIT"
] | 6 | 2021-03-11T11:43:17.000Z | 2021-12-08T05:26:20.000Z | handlers/redirects.py | Bainky/Ventify | 638486dc5f265a4907a5a193ea2a7c9b44e8e943 | [
"MIT"
] | null | null | null | handlers/redirects.py | Bainky/Ventify | 638486dc5f265a4907a5a193ea2a7c9b44e8e943 | [
"MIT"
] | 2 | 2021-03-24T05:31:12.000Z | 2021-04-13T22:03:11.000Z | from aiogram.utils.markdown import hide_link
from aiogram.types import CallbackQuery
from loader import dp
from utils import (
get_object,
get_attributes_of_object
)
from keyboards import (
anime_choose_safe_category,
anime_sfw_categories,
anime_nsfw_categories,
animals_categories,
... | 23.717742 | 61 | 0.598776 | 346 | 2,941 | 4.919075 | 0.260116 | 0.042303 | 0.044066 | 0.06463 | 0.386016 | 0.237368 | 0.237368 | 0.228555 | 0.228555 | 0.115746 | 0 | 0.000483 | 0.296158 | 2,941 | 124 | 62 | 23.717742 | 0.819324 | 0.055763 | 0 | 0.303797 | 0 | 0 | 0.116736 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.063291 | 0 | 0.063291 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c77456702d5939c9da605c3d65de2f70c1b95b26 | 8,695 | py | Python | segmentation_test/Scripts/medpy_graphcut_voxel.py | rominashirazi/SpineSegmentation | fb08122ac6d9a598b60aecb4f1a1a2a31fba96ab | [
"MIT"
] | null | null | null | segmentation_test/Scripts/medpy_graphcut_voxel.py | rominashirazi/SpineSegmentation | fb08122ac6d9a598b60aecb4f1a1a2a31fba96ab | [
"MIT"
] | null | null | null | segmentation_test/Scripts/medpy_graphcut_voxel.py | rominashirazi/SpineSegmentation | fb08122ac6d9a598b60aecb4f1a1a2a31fba96ab | [
"MIT"
] | null | null | null | #!c:\users\hooma\documents\github\spinesegmentation\segmentation_test\scripts\python.exe
"""
Execute a graph cut on a voxel image based on some foreground and background markers.
Copyright (C) 2013 Oskar Maier
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General ... | 47.513661 | 328 | 0.692237 | 1,100 | 8,695 | 5.322727 | 0.295455 | 0.049189 | 0.026132 | 0.032792 | 0.293083 | 0.242869 | 0.21076 | 0.163279 | 0.138002 | 0.034159 | 0 | 0.003729 | 0.228867 | 8,695 | 183 | 329 | 47.513661 | 0.8695 | 0.151811 | 0 | 0 | 0 | 0.017544 | 0.46363 | 0.003483 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0 | 0.078947 | 0 | 0.122807 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c774862e87bf8aaea6f4bb5796d15dd56dc9ae0b | 2,968 | py | Python | _notes/book/conf.py | AstroMatt/astronaut-training-en | 6250af8e10358016dcebee54bb9ad5bc40cfe4d1 | [
"MIT"
] | 1 | 2020-08-08T00:37:28.000Z | 2020-08-08T00:37:28.000Z | _notes/book/conf.py | AstroMatt/astronaut-training-en | 6250af8e10358016dcebee54bb9ad5bc40cfe4d1 | [
"MIT"
] | null | null | null | _notes/book/conf.py | AstroMatt/astronaut-training-en | 6250af8e10358016dcebee54bb9ad5bc40cfe4d1 | [
"MIT"
] | null | null | null | author = 'Matt Harasymczuk'
email = 'matt@astrotech.io'
project = 'Astronaut Training Program'
description = 'Astronaut Training Program'
extensions = [
'sphinx.ext.todo',
'sphinx.ext.imgmath',
]
todo_emit_warnings = False
todo_include_todos = True
exclude_patterns = []
# ------------------------------------... | 24.130081 | 128 | 0.624326 | 331 | 2,968 | 5.377644 | 0.549849 | 0.020225 | 0.026966 | 0.022472 | 0.037079 | 0.037079 | 0 | 0 | 0 | 0 | 0 | 0.005969 | 0.153302 | 2,968 | 122 | 129 | 24.327869 | 0.702348 | 0.080526 | 0 | 0 | 0 | 0.010101 | 0.354258 | 0.040015 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.050505 | 0 | 0.050505 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c775a30ea8b55f2cd0df98a3a7cc00417a074bda | 18,286 | py | Python | data_structures/trees/tree.py | onyonkaclifford/data-structures-and-algorithms | e0ca4bfa878273d06bf22c303e47762b8ec3870b | [
"MIT"
] | null | null | null | data_structures/trees/tree.py | onyonkaclifford/data-structures-and-algorithms | e0ca4bfa878273d06bf22c303e47762b8ec3870b | [
"MIT"
] | null | null | null | data_structures/trees/tree.py | onyonkaclifford/data-structures-and-algorithms | e0ca4bfa878273d06bf22c303e47762b8ec3870b | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
from typing import Any, Generator, Iterable, List, Union
class Empty(Exception):
pass
class Tree(ABC):
"""A tree is a hierarchical collection of nodes containing items, with each node having a unique parent and zero,
one or many children items. The topmost element in ... | 39.240343 | 119 | 0.626107 | 2,429 | 18,286 | 4.567723 | 0.096336 | 0.015322 | 0.024335 | 0.035331 | 0.607301 | 0.535016 | 0.497792 | 0.452817 | 0.435511 | 0.42037 | 0 | 0.003606 | 0.302472 | 18,286 | 465 | 120 | 39.324731 | 0.866249 | 0.371268 | 0 | 0.310811 | 0 | 0 | 0.073674 | 0.003058 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.013514 | 0.009009 | 0 | 0.324324 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c775ae8fda6ca73f18c286d16c2c597ac2a87d30 | 6,857 | py | Python | nodes/audio.py | sddhrthrt/COVFEFE | bc74ff0b5ee4d675482928110dda81443d4bec63 | [
"Apache-2.0"
] | null | null | null | nodes/audio.py | sddhrthrt/COVFEFE | bc74ff0b5ee4d675482928110dda81443d4bec63 | [
"Apache-2.0"
] | null | null | null | nodes/audio.py | sddhrthrt/COVFEFE | bc74ff0b5ee4d675482928110dda81443d4bec63 | [
"Apache-2.0"
] | null | null | null |
from abc import ABC, abstractmethod
import os
import logging
from nodes.helper import FileOutputNode
from utils import file_utils
from utils import signal_processing as sp
from utils.shell_run import shell_run
from config import OPENSMILE_HOME
class Mp3ToWav(FileOutputNode):
def run(self, mp3_file):
self... | 36.865591 | 147 | 0.624763 | 980 | 6,857 | 4.17449 | 0.193878 | 0.046199 | 0.058176 | 0.039599 | 0.413835 | 0.388658 | 0.35737 | 0.285749 | 0.273527 | 0.273527 | 0 | 0.007708 | 0.262068 | 6,857 | 185 | 148 | 37.064865 | 0.800791 | 0.167858 | 0 | 0.259259 | 0 | 0 | 0.119655 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12037 | false | 0 | 0.074074 | 0.037037 | 0.37037 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c776010ff719981072eef5b7305ecf5eee272758 | 12,914 | py | Python | texar/torch/modules/pretrained/gpt2.py | VegB/VLN-Transformer | da1fa71e419d8d05c96749445230a77338edba09 | [
"Apache-2.0"
] | 19 | 2020-07-29T15:25:45.000Z | 2022-01-19T17:49:42.000Z | texar/torch/modules/pretrained/gpt2.py | VegB/VLN-Transformer | da1fa71e419d8d05c96749445230a77338edba09 | [
"Apache-2.0"
] | 3 | 2021-02-16T10:26:23.000Z | 2021-06-08T16:50:40.000Z | texar/torch/modules/pretrained/gpt2.py | VegB/VLN-Transformer | da1fa71e419d8d05c96749445230a77338edba09 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 The Texar Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | 40.73817 | 80 | 0.533065 | 1,440 | 12,914 | 4.53125 | 0.225 | 0.035249 | 0.018391 | 0.033103 | 0.321839 | 0.250881 | 0.17977 | 0.162452 | 0.155402 | 0.142529 | 0 | 0.015203 | 0.363327 | 12,914 | 316 | 81 | 40.867089 | 0.778399 | 0.160369 | 0 | 0.144068 | 0 | 0 | 0.190423 | 0.073658 | 0 | 0 | 0 | 0 | 0.050847 | 1 | 0.012712 | false | 0 | 0.042373 | 0 | 0.101695 | 0.008475 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c77641557884ec300d6f17e14694ed49328569cf | 4,930 | py | Python | Image classifier/train.py | anirudha-bs/Farm_assist | f824b7594befdb1132da2a5c03500a1885c6f036 | [
"MIT"
] | null | null | null | Image classifier/train.py | anirudha-bs/Farm_assist | f824b7594befdb1132da2a5c03500a1885c6f036 | [
"MIT"
] | null | null | null | Image classifier/train.py | anirudha-bs/Farm_assist | f824b7594befdb1132da2a5c03500a1885c6f036 | [
"MIT"
] | null | null | null | from __future__ import absolute_import, division, print_function, unicode_literals
import tensorflow as tf
from keras import regularizers
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, Conv2D, Flatten, Dropout, MaxPooling2D
from tensorflow.keras.preprocessing.image import Ima... | 29.878788 | 130 | 0.683773 | 663 | 4,930 | 4.846154 | 0.232278 | 0.014006 | 0.02521 | 0.036415 | 0.372238 | 0.303455 | 0.185496 | 0.175537 | 0.164332 | 0.150638 | 0 | 0.019847 | 0.20284 | 4,930 | 164 | 131 | 30.060976 | 0.79771 | 0.035294 | 0 | 0.239316 | 0 | 0 | 0.099221 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008547 | false | 0 | 0.111111 | 0 | 0.128205 | 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 |
c776c16efce7e570422a5d1752b829a85d1dbe4b | 686 | py | Python | questions/q118_linked_list_loop_removal/code.py | aadhityasw/Competitive-Programs | 901a48d35f024a3a87c32a45b7f4531e8004a203 | [
"MIT"
] | null | null | null | questions/q118_linked_list_loop_removal/code.py | aadhityasw/Competitive-Programs | 901a48d35f024a3a87c32a45b7f4531e8004a203 | [
"MIT"
] | 1 | 2021-05-15T07:56:51.000Z | 2021-05-15T07:56:51.000Z | questions/q118_linked_list_loop_removal/code.py | aadhityasw/Competitive-Programs | 901a48d35f024a3a87c32a45b7f4531e8004a203 | [
"MIT"
] | null | null | null | def removeLoop(head):
ptr = head
ptr2 = head
while True :
if ptr is None or ptr2 is None or ptr2.next is None :
return
ptr = ptr.next
ptr2 = ptr2.next.next
if ptr is ptr2 :
loopNode = ptr
break
ptr = loopNode.next
count = ... | 19.055556 | 61 | 0.478134 | 87 | 686 | 3.770115 | 0.218391 | 0.060976 | 0.091463 | 0.073171 | 0.371951 | 0.371951 | 0.140244 | 0 | 0 | 0 | 0 | 0.05914 | 0.457726 | 686 | 35 | 62 | 19.6 | 0.822581 | 0 | 0 | 0.321429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c779118332635de2c8ae2f98f07d435f86ed8e76 | 2,361 | py | Python | fastrunner/httprunner3/report/html/gen_report.py | Chankee/AutoTestRunner | 5f329b0dfac91ccd3541aabf46cc997cc4f01da3 | [
"MIT"
] | 1 | 2020-04-30T08:41:19.000Z | 2020-04-30T08:41:19.000Z | httprunner/report/html/gen_report.py | Barronliu/httprunner | 463b8c68cbd413fd2bb66852752149bc1609e98d | [
"Apache-2.0"
] | null | null | null | httprunner/report/html/gen_report.py | Barronliu/httprunner | 463b8c68cbd413fd2bb66852752149bc1609e98d | [
"Apache-2.0"
] | null | null | null | import io
import os
from datetime import datetime
from jinja2 import Template
from loguru import logger
from httprunner.exceptions import SummaryEmpty
def gen_html_report(summary, report_template=None, report_dir=None, report_file=None):
""" render html report with specified report name and template
Args:
... | 36.323077 | 110 | 0.674714 | 310 | 2,361 | 4.941935 | 0.33871 | 0.058747 | 0.027415 | 0.039164 | 0.054178 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011394 | 0.219399 | 2,361 | 64 | 111 | 36.890625 | 0.819859 | 0.182126 | 0 | 0.04878 | 0 | 0 | 0.169304 | 0.012131 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02439 | false | 0 | 0.146341 | 0 | 0.195122 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c779400f9f454e7ffcd25d7cea5b32ebe4fe996a | 730 | py | Python | SD/lab1/client.py | matheuscr30/UFU | e947e5a4ccd5c025cb8ef6e00b42ea1160742712 | [
"MIT"
] | null | null | null | SD/lab1/client.py | matheuscr30/UFU | e947e5a4ccd5c025cb8ef6e00b42ea1160742712 | [
"MIT"
] | 11 | 2020-01-28T22:59:24.000Z | 2022-03-11T23:59:04.000Z | SD/lab1/client.py | matheuscr30/UFU | e947e5a4ccd5c025cb8ef6e00b42ea1160742712 | [
"MIT"
] | null | null | null | #client.py
#!/usr/bin/python # This is client.py file
import socket # Import socket module
s = socket.socket() # Create a socket object
host = socket.gethostname() # Get local machine name
port = 12352 ... | 27.037037 | 82 | 0.536986 | 77 | 730 | 5.090909 | 0.675325 | 0.040816 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023158 | 0.349315 | 730 | 26 | 83 | 28.076923 | 0.802105 | 0.245205 | 0 | 0 | 0 | 0 | 0.180147 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c77b3c34564c716c04ed2a2e2297c397f73e511f | 1,741 | py | Python | homeassistant/components/kaiterra/const.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 30,023 | 2016-04-13T10:17:53.000Z | 2020-03-02T12:56:31.000Z | homeassistant/components/kaiterra/const.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 24,710 | 2016-04-13T08:27:26.000Z | 2020-03-02T12:59:13.000Z | homeassistant/components/kaiterra/const.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 11,956 | 2016-04-13T18:42:31.000Z | 2020-03-02T09:32:12.000Z | """Consts for Kaiterra integration."""
from datetime import timedelta
from homeassistant.const import (
CONCENTRATION_MICROGRAMS_PER_CUBIC_METER,
CONCENTRATION_MILLIGRAMS_PER_CUBIC_METER,
CONCENTRATION_PARTS_PER_BILLION,
CONCENTRATION_PARTS_PER_MILLION,
PERCENTAGE,
Platform,
)
DOMAIN = "kaite... | 22.907895 | 51 | 0.649627 | 184 | 1,741 | 5.804348 | 0.445652 | 0.029963 | 0.048689 | 0.097378 | 0.325843 | 0.325843 | 0.123596 | 0.123596 | 0.123596 | 0 | 0 | 0.043997 | 0.229753 | 1,741 | 75 | 52 | 23.213333 | 0.752424 | 0.01838 | 0 | 0.4375 | 0 | 0 | 0.222548 | 0.044627 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.03125 | 0 | 0.03125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c77bfffe662ca6c238ec477ceec482de486d7271 | 2,931 | py | Python | timeline/models.py | KolibriSolutions/BepMarketplace | c47d252fd744cde6b927e37c34d7a103c6162be5 | [
"BSD-3-Clause"
] | 1 | 2019-06-29T15:24:24.000Z | 2019-06-29T15:24:24.000Z | timeline/models.py | KolibriSolutions/BepMarketplace | c47d252fd744cde6b927e37c34d7a103c6162be5 | [
"BSD-3-Clause"
] | 2 | 2020-01-12T17:47:33.000Z | 2020-01-12T17:47:45.000Z | timeline/models.py | KolibriSolutions/BepMarketplace | c47d252fd744cde6b927e37c34d7a103c6162be5 | [
"BSD-3-Clause"
] | 2 | 2019-06-29T15:24:26.000Z | 2020-01-08T15:15:03.000Z | # Bep Marketplace ELE
# Copyright (c) 2016-2021 Kolibri Solutions
# License: See LICENSE file or https://github.com/KolibriSolutions/BepMarketplace/blob/master/LICENSE
#
from datetime import datetime
from django.core.exceptions import ValidationError
from django.db import models
class TimeSlot(models.Model):
... | 38.565789 | 119 | 0.643125 | 357 | 2,931 | 5.243697 | 0.392157 | 0.070513 | 0.061432 | 0.043269 | 0.342415 | 0.29594 | 0.228632 | 0.214744 | 0.214744 | 0.214744 | 0 | 0.009107 | 0.250768 | 2,931 | 75 | 120 | 39.08 | 0.843352 | 0.116343 | 0 | 0.313725 | 0 | 0 | 0.221049 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098039 | false | 0 | 0.058824 | 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 |
c77e4ddc9f8fe255a8511d43e707cc1ce8c44d20 | 19,717 | py | Python | timeflux/nodes/ml.py | OpenMindInnovation/timeflux | fd27ea6706df80fa52fb73ea3dba65e14ccd088c | [
"MIT"
] | null | null | null | timeflux/nodes/ml.py | OpenMindInnovation/timeflux | fd27ea6706df80fa52fb73ea3dba65e14ccd088c | [
"MIT"
] | null | null | null | timeflux/nodes/ml.py | OpenMindInnovation/timeflux | fd27ea6706df80fa52fb73ea3dba65e14ccd088c | [
"MIT"
] | null | null | null | """Machine Learning"""
import importlib
import numpy as np
import pandas as pd
import json
from jsonschema import validate
from sklearn.pipeline import make_pipeline
from timeflux.core.node import Node
from timeflux.core.exceptions import ValidationError, WorkerInterrupt
from timeflux.helpers.background import Task
fr... | 39.121032 | 103 | 0.502054 | 2,041 | 19,717 | 4.656541 | 0.149927 | 0.028935 | 0.0242 | 0.010943 | 0.284617 | 0.213173 | 0.162774 | 0.139625 | 0.103009 | 0.052609 | 0 | 0.003437 | 0.409799 | 19,717 | 503 | 104 | 39.198807 | 0.813268 | 0.125932 | 0 | 0.251969 | 0 | 0 | 0.058392 | 0.0017 | 0 | 0 | 0 | 0.001988 | 0 | 1 | 0.031496 | false | 0.007874 | 0.036745 | 0.002625 | 0.081365 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c781463cac684dcc8d5bd7e224347018ce45563c | 3,641 | py | Python | 1-lab-lambdaDynamoDB/source/cdk/app.py | donnieprakoso/workshop-buildingRESTAPIwithAWS | b3287d5749b65648710dde4e736ba55b73371c6b | [
"Apache-2.0"
] | 23 | 2021-04-24T06:32:58.000Z | 2022-03-27T11:04:57.000Z | 1-lab-lambdaDynamoDB/source/cdk/app.py | ivandi1980/workshop-restAPI | b3287d5749b65648710dde4e736ba55b73371c6b | [
"Apache-2.0"
] | null | null | null | 1-lab-lambdaDynamoDB/source/cdk/app.py | ivandi1980/workshop-restAPI | b3287d5749b65648710dde4e736ba55b73371c6b | [
"Apache-2.0"
] | 5 | 2021-04-24T12:10:02.000Z | 2021-11-18T13:34:33.000Z | #!/usr/bin/env python3
from aws_cdk import aws_iam as _iam
from aws_cdk import aws_lambda as _lambda
from aws_cdk import aws_dynamodb as _ddb
from aws_cdk import core
class CdkStack(core.Stack):
def __init__(self, scope: core.Construct, id: str, stack_prefix:str, **kwargs) -> None:
super().__init__(scope... | 44.950617 | 177 | 0.682505 | 413 | 3,641 | 5.692494 | 0.290557 | 0.079541 | 0.091876 | 0.095704 | 0.418545 | 0.327095 | 0.187154 | 0.122501 | 0 | 0 | 0 | 0.004159 | 0.207635 | 3,641 | 80 | 178 | 45.5125 | 0.810745 | 0.040099 | 0 | 0.193548 | 0 | 0 | 0.147405 | 0.078004 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016129 | false | 0 | 0.064516 | 0 | 0.096774 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7821ff30782af7bc27dc24920e0c07f5856c1a5 | 326 | py | Python | module_6_lets_make_a_web_app/webapp/yield.py | JCarlos831/python_getting_started_-pluralsight- | 5059a1019c46eb8174fc86989fab7cc0c4caffd4 | [
"MIT"
] | null | null | null | module_6_lets_make_a_web_app/webapp/yield.py | JCarlos831/python_getting_started_-pluralsight- | 5059a1019c46eb8174fc86989fab7cc0c4caffd4 | [
"MIT"
] | null | null | null | module_6_lets_make_a_web_app/webapp/yield.py | JCarlos831/python_getting_started_-pluralsight- | 5059a1019c46eb8174fc86989fab7cc0c4caffd4 | [
"MIT"
] | null | null | null | students = []
def read_file():
try:
f = open("students.txt", "r")
for student in read_students(f):
students.append(student)
f.close()
except Exception:
print("Could not read file")
def read_students(f):
for line in f:
yield line
read_file()
print(stu... | 16.3 | 40 | 0.57362 | 42 | 326 | 4.357143 | 0.5 | 0.131148 | 0.142077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.309816 | 326 | 20 | 41 | 16.3 | 0.813333 | 0 | 0 | 0 | 0 | 0 | 0.097859 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 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 |
c78545f3c73bfddebce8e778857a5662b6cdc383 | 610 | py | Python | pug/dj/miner/model_mixin.py | hobson/pug-dj | 55678b08755a55366ce18e7d3b8ea8fa4491ab04 | [
"MIT"
] | null | null | null | pug/dj/miner/model_mixin.py | hobson/pug-dj | 55678b08755a55366ce18e7d3b8ea8fa4491ab04 | [
"MIT"
] | 5 | 2021-09-07T23:53:24.000Z | 2022-03-11T23:22:04.000Z | pug/dj/miner/model_mixin.py | hobson/pug-dj | 55678b08755a55366ce18e7d3b8ea8fa4491ab04 | [
"MIT"
] | 1 | 2015-04-23T14:45:04.000Z | 2015-04-23T14:45:04.000Z | from pug.nlp.db import representation
from django.db import models
class RepresentationMixin(models.Model):
"""Produce a meaningful string representation of a model with `str(model.objects.all[0])`."""
__unicode__ = representation
class Meta:
abstract = True
class DateMixin(models.Model):
""... | 32.105263 | 150 | 0.727869 | 81 | 610 | 5.395062 | 0.617284 | 0.036613 | 0.077803 | 0.09611 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004024 | 0.185246 | 610 | 18 | 151 | 33.888889 | 0.875252 | 0.37377 | 0 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c785e70d66977d68cd692ad4e28b80dae9e1f5c0 | 4,255 | py | Python | custom_components/kodi_media_sensors/config_flow.py | JurajNyiri/kodi-media-sensors | 055065e52b34555df95a905fc556d3086626deee | [
"MIT"
] | 5 | 2021-03-20T23:32:58.000Z | 2022-03-12T02:01:39.000Z | custom_components/kodi_media_sensors/config_flow.py | JurajNyiri/kodi-media-sensors | 055065e52b34555df95a905fc556d3086626deee | [
"MIT"
] | 11 | 2021-02-09T16:40:34.000Z | 2022-03-20T11:43:06.000Z | custom_components/kodi_media_sensors/config_flow.py | JurajNyiri/kodi-media-sensors | 055065e52b34555df95a905fc556d3086626deee | [
"MIT"
] | 3 | 2021-02-09T17:01:25.000Z | 2022-02-23T22:21:16.000Z | import logging
from typing import Any, Dict, Optional
from homeassistant import config_entries
from homeassistant.components.kodi.const import DOMAIN as KODI_DOMAIN
from homeassistant.core import callback
import voluptuous as vol
from .const import (
OPTION_HIDE_WATCHED,
OPTION_USE_AUTH_URL,
OPTION_SEARCH... | 36.681034 | 88 | 0.624207 | 477 | 4,255 | 5.21174 | 0.224319 | 0.06436 | 0.057924 | 0.074014 | 0.360821 | 0.34473 | 0.176589 | 0.108608 | 0.045857 | 0.045857 | 0 | 0 | 0.302703 | 4,255 | 115 | 89 | 37 | 0.837883 | 0.042068 | 0 | 0.086957 | 0 | 0 | 0.019598 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021739 | false | 0 | 0.076087 | 0 | 0.173913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7879b591e4a17bc5cbafd6cd291d2d73183569a | 23,794 | py | Python | apps/project/views/issue.py | rainydaygit/testtcloudserver | 8037603efe4502726a4d794fb1fc0a3f3cc80137 | [
"MIT"
] | 349 | 2020-08-04T10:21:01.000Z | 2022-03-23T08:31:29.000Z | apps/project/views/issue.py | rainydaygit/testtcloudserver | 8037603efe4502726a4d794fb1fc0a3f3cc80137 | [
"MIT"
] | 2 | 2021-01-07T06:17:05.000Z | 2021-04-01T06:01:30.000Z | apps/project/views/issue.py | rainydaygit/testtcloudserver | 8037603efe4502726a4d794fb1fc0a3f3cc80137 | [
"MIT"
] | 70 | 2020-08-24T06:46:14.000Z | 2022-03-25T13:23:27.000Z | from flask import request
from apps.auth.auth_require import required
from apps.project.business.issue import IssueBusiness, IssueRecordBusiness, IssueDashBoardBusiness
from apps.project.extentions import parse_json_form, validation, parse_list_args2
from library.api.render import json_detail_render, json_list_render2... | 29.159314 | 114 | 0.504329 | 2,295 | 23,794 | 5.061438 | 0.125054 | 0.041667 | 0.021264 | 0.032197 | 0.592975 | 0.528065 | 0.507317 | 0.472624 | 0.445334 | 0.445334 | 0 | 0.035347 | 0.366269 | 23,794 | 815 | 115 | 29.195092 | 0.734996 | 0.617256 | 0 | 0.307692 | 0 | 0 | 0.118233 | 0.034384 | 0 | 0 | 0 | 0 | 0 | 1 | 0.138462 | false | 0 | 0.046154 | 0 | 0.330769 | 0.015385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c788076445fbf7d0da81cc5cf12ab9482e59b110 | 357 | py | Python | translator.py | liuprestin/pyninjaTUT-translator | 903642ff56f573ed9c58b6f7db4e6fbb4e722c8d | [
"MIT"
] | null | null | null | translator.py | liuprestin/pyninjaTUT-translator | 903642ff56f573ed9c58b6f7db4e6fbb4e722c8d | [
"MIT"
] | null | null | null | translator.py | liuprestin/pyninjaTUT-translator | 903642ff56f573ed9c58b6f7db4e6fbb4e722c8d | [
"MIT"
] | null | null | null | from translate import Translator
translator = Translator(to_lang="zh")
try:
with open('./example.md', mode='r') as in_file:
text = in_file.read()
with open('./example-tranlated.md', mode='w') as trans_file:
trans_file.write(translator.translate(text))
except FileNotFoundError as... | 27.461538 | 64 | 0.661064 | 48 | 357 | 4.8125 | 0.625 | 0.17316 | 0.12987 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207283 | 357 | 13 | 65 | 27.461538 | 0.816254 | 0 | 0 | 0 | 0 | 0 | 0.162011 | 0.061453 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c78915846f029ced4be55e06e50f81dcf24cc440 | 21,941 | py | Python | xcbgen/xtypes.py | tizenorg/framework.uifw.xorg.xcb.xcb-proto | d5ce7205c9bdd3e28d96d162617e32de1c126f8b | [
"X11"
] | 1 | 2022-03-21T15:39:01.000Z | 2022-03-21T15:39:01.000Z | targetfs/XSGX/lib/python2.6/site-packages/xcbgen/xtypes.py | jhofstee/Graphics_SDK | 805bd44f347ed40699a84979bc9f3e8eb085fd9e | [
"Fair",
"Unlicense"
] | null | null | null | targetfs/XSGX/lib/python2.6/site-packages/xcbgen/xtypes.py | jhofstee/Graphics_SDK | 805bd44f347ed40699a84979bc9f3e8eb085fd9e | [
"Fair",
"Unlicense"
] | null | null | null | '''
This module contains the classes which represent XCB data types.
'''
from xcbgen.expr import Field, Expression
import __main__
class Type(object):
'''
Abstract base class for all XCB data types.
Contains default fields, and some abstract methods.
'''
def __init__(self, name):
'''
... | 34.661927 | 112 | 0.593182 | 2,677 | 21,941 | 4.730669 | 0.121031 | 0.017056 | 0.018951 | 0.016582 | 0.589782 | 0.526532 | 0.481522 | 0.454517 | 0.436276 | 0.425063 | 0 | 0.006605 | 0.31685 | 21,941 | 632 | 113 | 34.716772 | 0.838281 | 0.250581 | 0 | 0.562842 | 0 | 0 | 0.033972 | 0 | 0 | 0 | 0 | 0.001582 | 0 | 1 | 0.120219 | false | 0.002732 | 0.005464 | 0.016393 | 0.237705 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c78a85d9115e200586e2ed2d790dc6b616c4151d | 3,769 | py | Python | BioKlustering-Website/mlmodel/parser/kmeans.py | solislemuslab/mycovirus-website | bc8d3d5f9a9472c35e40334f19e90bbf782f7a1b | [
"MIT"
] | 1 | 2021-11-23T15:07:58.000Z | 2021-11-23T15:07:58.000Z | BioKlustering-Website/mlmodel/parser/kmeans.py | solislemuslab/mycovirus-website | bc8d3d5f9a9472c35e40334f19e90bbf782f7a1b | [
"MIT"
] | 2 | 2020-10-23T15:40:49.000Z | 2020-10-28T13:21:16.000Z | BioKlustering-Website/mlmodel/parser/kmeans.py | solislemuslab/bioklustering | bc8d3d5f9a9472c35e40334f19e90bbf782f7a1b | [
"MIT"
] | 2 | 2021-11-04T20:01:36.000Z | 2021-11-23T15:13:34.000Z | # Copyright 2020 by Luke Selberg, Solis-Lemus Lab, WID.
# All rights reserved.
# This file is part of the BioKlustering Website.
import pandas as pd
from Bio import SeqIO
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.cluster import KMeans
from sklearn.decomposition import PCA
from sklearn.cl... | 37.316832 | 113 | 0.717166 | 453 | 3,769 | 5.781457 | 0.337748 | 0.034364 | 0.025964 | 0.030546 | 0.232913 | 0.232913 | 0.206949 | 0.143566 | 0.111493 | 0.111493 | 0 | 0.005156 | 0.176705 | 3,769 | 100 | 114 | 37.69 | 0.838866 | 0.047758 | 0 | 0.105263 | 0 | 0 | 0.049958 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065789 | false | 0 | 0.144737 | 0 | 0.276316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c78a9dbe76748ffc4b552241c18002c06e087035 | 1,920 | py | Python | workflow/src/routing.py | mibexsoftware/alfred-stash-workflow | 5cdba4d14c8998b937c1aa6af8e3417251fac540 | [
"MIT"
] | 13 | 2016-03-31T16:19:59.000Z | 2019-09-26T20:47:57.000Z | workflow/src/routing.py | mibexsoftware/alfred-stash-workflow | 5cdba4d14c8998b937c1aa6af8e3417251fac540 | [
"MIT"
] | 6 | 2015-09-18T15:24:43.000Z | 2019-10-23T16:51:39.000Z | workflow/src/routing.py | mibexsoftware/alfred-stash-workflow | 5cdba4d14c8998b937c1aa6af8e3417251fac540 | [
"MIT"
] | 3 | 2015-09-16T18:05:32.000Z | 2020-01-04T19:41:21.000Z | # -*- coding: utf-8 -*-
from src import icons, __version__
from src.actions import HOST_URL
from src.actions.configure import ConfigureWorkflowAction
from src.actions.help import HelpWorkflowAction
from src.actions.index import IndexWorkflowAction
from src.actions.projects import ProjectWorkflowAction
from src.actions.... | 39.183673 | 105 | 0.678125 | 203 | 1,920 | 6.226601 | 0.428571 | 0.049842 | 0.077532 | 0.041139 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002001 | 0.219271 | 1,920 | 48 | 106 | 40 | 0.841227 | 0.061979 | 0 | 0 | 0 | 0 | 0.109131 | 0.013363 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.225 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c78d0f81c7f3ce50a968bb140ed1caaa45e4bf4b | 547 | py | Python | PE032.py | CaptainSora/Python-Project-Euler | 056400f434eec837ece5ef06653b310ebfcc3d4e | [
"MIT"
] | null | null | null | PE032.py | CaptainSora/Python-Project-Euler | 056400f434eec837ece5ef06653b310ebfcc3d4e | [
"MIT"
] | null | null | null | PE032.py | CaptainSora/Python-Project-Euler | 056400f434eec837ece5ef06653b310ebfcc3d4e | [
"MIT"
] | null | null | null | from itertools import count
from _pandigital_tools import is_pandigital
def pand_products():
"""
Returns the sum of all numbers n which have a factorization a * b = n such
that a, b, n are (cumulatively) 1 through 9 pandigital.
"""
total = set()
for a in range(2, 100):
for b in count(... | 23.782609 | 78 | 0.570384 | 83 | 547 | 3.686747 | 0.554217 | 0.039216 | 0.019608 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02168 | 0.325411 | 547 | 22 | 79 | 24.863636 | 0.807588 | 0.23766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.153846 | 0.076923 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c78e2f38914cd69e3bd290dd0efeba4071626991 | 14,594 | py | Python | corehq/apps/accounting/utils.py | satyaakam/commcare-hq | 233f255ff20ab3a16013e9fdfdb9c1dcf632e415 | [
"BSD-3-Clause"
] | null | null | null | corehq/apps/accounting/utils.py | satyaakam/commcare-hq | 233f255ff20ab3a16013e9fdfdb9c1dcf632e415 | [
"BSD-3-Clause"
] | 1 | 2021-06-02T04:45:16.000Z | 2021-06-02T04:45:16.000Z | corehq/apps/accounting/utils.py | satyaakam/commcare-hq | 233f255ff20ab3a16013e9fdfdb9c1dcf632e415 | [
"BSD-3-Clause"
] | null | null | null | import datetime
import logging
from collections import defaultdict, namedtuple
from django.conf import settings
from django.template.loader import render_to_string
from django.urls import reverse
from django.utils.translation import ugettext_lazy as _
from django_prbac.models import Grant, Role, UserRole
from corehq... | 34.419811 | 114 | 0.688434 | 1,702 | 14,594 | 5.619859 | 0.190952 | 0.021955 | 0.024882 | 0.035128 | 0.217459 | 0.16644 | 0.139049 | 0.088866 | 0.051856 | 0.03701 | 0 | 0.002146 | 0.233658 | 14,594 | 423 | 115 | 34.501182 | 0.853094 | 0.023229 | 0 | 0.143713 | 0 | 0 | 0.050419 | 0.003943 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08982 | false | 0.005988 | 0.095808 | 0.01497 | 0.290419 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c78ed3281b65fd17334bed8b20f794b80892e233 | 802 | py | Python | RSA/Algorithm/EEA.py | Pumpkin-NN/Cryptography | 968e3f55fcc6a02d0badeec157776ca8f07607b8 | [
"MIT"
] | null | null | null | RSA/Algorithm/EEA.py | Pumpkin-NN/Cryptography | 968e3f55fcc6a02d0badeec157776ca8f07607b8 | [
"MIT"
] | null | null | null | RSA/Algorithm/EEA.py | Pumpkin-NN/Cryptography | 968e3f55fcc6a02d0badeec157776ca8f07607b8 | [
"MIT"
] | null | null | null |
def extended_euclidean_algorithm(a, b):
# Initial s = 1
s = 1
list_s = []
list_t = []
# Algorithm
while b > 0:
# Find the remainder of a, b
r = a % b
if r > 0:
# The t expression
t = (r - (a * s)) // b
list_t.append(t)
list... | 23.588235 | 57 | 0.438903 | 122 | 802 | 2.770492 | 0.295082 | 0.133136 | 0.071006 | 0.029586 | 0.035503 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020737 | 0.458853 | 802 | 33 | 58 | 24.30303 | 0.758065 | 0.24813 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c790fdff7571a6a4a1222a967671954a3b60828b | 1,468 | py | Python | source/documentModel/representations/DocumentNGramSymWinGraph.py | Vyvy-vi/Ngram-Graphs | 3b990e5fd92543f7152b4a2c8e689e771578c047 | [
"Apache-2.0"
] | 178 | 2016-09-21T19:51:28.000Z | 2021-09-07T17:37:06.000Z | source/documentModel/representations/DocumentNGramSymWinGraph.py | Vyvy-vi/Ngram-Graphs | 3b990e5fd92543f7152b4a2c8e689e771578c047 | [
"Apache-2.0"
] | null | null | null | source/documentModel/representations/DocumentNGramSymWinGraph.py | Vyvy-vi/Ngram-Graphs | 3b990e5fd92543f7152b4a2c8e689e771578c047 | [
"Apache-2.0"
] | 17 | 2016-10-21T02:11:13.000Z | 2020-10-07T19:11:54.000Z | """
DocumentNGramSymWinGraph.py
Created on May 23, 2017, 4:56 PM
"""
import networkx as nx
import pygraphviz as pgv
import matplotlib.pyplot as plt
from networkx.drawing.nx_agraph import graphviz_layout
from DocumentNGramGraph import DocumentNGramGraph
class DocumentNGramSymWinGraph(DocumentNGramGraph):
#... | 26.690909 | 55 | 0.52248 | 164 | 1,468 | 4.621951 | 0.530488 | 0.026385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020455 | 0.400545 | 1,468 | 54 | 56 | 27.185185 | 0.840909 | 0.241144 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.185185 | 0 | 0.296296 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c791642581cbd1a8e05d99ab1f306e65029dc666 | 2,212 | py | Python | examples/EC2Conditions.py | DrLuke/troposphere | 05672a2b0cf87215dbd6a2a656669e0d3c92d0e5 | [
"BSD-2-Clause"
] | 1 | 2021-04-03T22:24:36.000Z | 2021-04-03T22:24:36.000Z | examples/EC2Conditions.py | cartermeyers/troposphere | 4b42fa0d65f73cec28184b5349aa198fb8ee5b2e | [
"BSD-2-Clause"
] | 1 | 2021-06-25T15:20:46.000Z | 2021-06-25T15:20:46.000Z | examples/EC2Conditions.py | cartermeyers/troposphere | 4b42fa0d65f73cec28184b5349aa198fb8ee5b2e | [
"BSD-2-Clause"
] | 5 | 2020-05-10T13:50:32.000Z | 2021-09-09T09:06:54.000Z | from __future__ import print_function
from troposphere import (
Template, Parameter, Ref, Condition, Equals, And, Or, Not, If
)
from troposphere import ec2
parameters = {
"One": Parameter(
"One",
Type="String",
),
"Two": Parameter(
"Two",
Type="String",
),
"Thr... | 22.343434 | 77 | 0.573689 | 175 | 2,212 | 7.2 | 0.371429 | 0.039683 | 0.028571 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013109 | 0.275769 | 2,212 | 98 | 78 | 22.571429 | 0.773408 | 0 | 0 | 0.266667 | 0 | 0 | 0.292495 | 0.092224 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.033333 | 0 | 0.033333 | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c79252ab386af5d00249bc02769ec35279e30201 | 768 | py | Python | fist_phase/08_objects.py | kapuni/exercise_py | b60ba8462d2545cae57483bcb0b3428b03c5d522 | [
"MIT"
] | null | null | null | fist_phase/08_objects.py | kapuni/exercise_py | b60ba8462d2545cae57483bcb0b3428b03c5d522 | [
"MIT"
] | null | null | null | fist_phase/08_objects.py | kapuni/exercise_py | b60ba8462d2545cae57483bcb0b3428b03c5d522 | [
"MIT"
] | null | null | null | class Student(object):
# __init__是一个特殊方法用于在创建对象时进行初始化操作
# 通过这个方法我们可以为学生对象绑定name和age两个属性
def __init__(self, name, age):
self.name = name
self.age = age
def study(self, course_name):
print('%s正在学习%s.' % (self.name, course_name))
# PEP 8要求标识符的名字用全小写多个单词用下划线连接
# 但是部分程序员和公司... | 23.272727 | 53 | 0.605469 | 81 | 768 | 5.469136 | 0.493827 | 0.090293 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023009 | 0.264323 | 768 | 33 | 54 | 23.272727 | 0.761062 | 0.205729 | 0 | 0 | 0 | 0 | 0.102819 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.25 | 0.15 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c79307bf6012742aa0a7a562893d0160e400a873 | 1,108 | py | Python | lrtc_lib/data/load_dataset.py | MovestaDev/low-resource-text-classification-framework | 4380755a65b35265e84ecbf4b87e872d79e8f079 | [
"Apache-2.0"
] | 57 | 2020-11-18T15:13:06.000Z | 2022-03-28T22:33:26.000Z | lrtc_lib/data/load_dataset.py | MovestaDev/low-resource-text-classification-framework | 4380755a65b35265e84ecbf4b87e872d79e8f079 | [
"Apache-2.0"
] | 5 | 2021-02-23T22:11:07.000Z | 2021-12-13T00:13:48.000Z | lrtc_lib/data/load_dataset.py | MovestaDev/low-resource-text-classification-framework | 4380755a65b35265e84ecbf4b87e872d79e8f079 | [
"Apache-2.0"
] | 14 | 2021-02-10T08:55:27.000Z | 2022-02-23T22:37:54.000Z | # (c) Copyright IBM Corporation 2020.
# LICENSE: Apache License 2.0 (Apache-2.0)
# http://www.apache.org/licenses/LICENSE-2.0
import logging
from lrtc_lib.data_access import single_dataset_loader
from lrtc_lib.data_access.processors.dataset_part import DatasetPart
from lrtc_lib.oracle_data_access import gold_labels_... | 35.741935 | 115 | 0.730144 | 151 | 1,108 | 5.02649 | 0.430464 | 0.101449 | 0.043478 | 0.039526 | 0.055336 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014161 | 0.17148 | 1,108 | 31 | 116 | 35.741935 | 0.812636 | 0.168773 | 0 | 0.111111 | 0 | 0.055556 | 0.090611 | 0.027293 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.222222 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c79467938af160abb2d49f1add583ea15a8cc080 | 8,019 | py | Python | graphql_compiler/compiler/emit_match.py | BarracudaPff/code-golf-data-pythpn | 42e8858c2ebc6a061012bcadb167d29cebb85c5e | [
"MIT"
] | null | null | null | graphql_compiler/compiler/emit_match.py | BarracudaPff/code-golf-data-pythpn | 42e8858c2ebc6a061012bcadb167d29cebb85c5e | [
"MIT"
] | null | null | null | graphql_compiler/compiler/emit_match.py | BarracudaPff/code-golf-data-pythpn | 42e8858c2ebc6a061012bcadb167d29cebb85c5e | [
"MIT"
] | null | null | null | """Convert lowered IR basic blocks to MATCH query strings."""
from collections import deque
import six
from .blocks import Filter, MarkLocation, QueryRoot, Recurse, Traverse
from .expressions import TrueLiteral
from .helpers import get_only_element_from_collection, validate_safe_string
def _get_vertex_location_name(loc... | 52.411765 | 152 | 0.775907 | 1,190 | 8,019 | 4.907563 | 0.141176 | 0.061644 | 0.041096 | 0.040068 | 0.335616 | 0.252568 | 0.214555 | 0.176027 | 0.141781 | 0.084247 | 0 | 0.001538 | 0.107994 | 8,019 | 153 | 153 | 52.411765 | 0.814903 | 0.085921 | 0 | 0.147887 | 0 | 0 | 0.129759 | 0.00811 | 0 | 0 | 0 | 0 | 0.070423 | 1 | 0.070423 | false | 0.007042 | 0.035211 | 0 | 0.176056 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7964aa0abe4f31ae2f01cae5205b2c444d9f154 | 8,436 | py | Python | geocircles/backend/gamestate.py | tmick0/geocircles | 12845d006eeb0a4032679209a953c1cb072d06d7 | [
"MIT"
] | null | null | null | geocircles/backend/gamestate.py | tmick0/geocircles | 12845d006eeb0a4032679209a953c1cb072d06d7 | [
"MIT"
] | null | null | null | geocircles/backend/gamestate.py | tmick0/geocircles | 12845d006eeb0a4032679209a953c1cb072d06d7 | [
"MIT"
] | null | null | null | import sqlite3
from enum import Enum
import random
__all__ = ['state_mgr', 'game_state', 'next_state']
class game_state (Enum):
NEW_GAME = 0
WAITING_FOR_HOST = 1
HOST_CHOOSING = 2
GUEST_GUESSING = 3
GUEST_CHOOSING = 4
HOST_GUESSING = 5
def next_state(s):
if s == game_state.WAITING_FOR_H... | 36.838428 | 159 | 0.580844 | 1,026 | 8,436 | 4.616959 | 0.110136 | 0.045598 | 0.030399 | 0.050665 | 0.607346 | 0.523116 | 0.460207 | 0.434452 | 0.400464 | 0.251425 | 0 | 0.003111 | 0.31413 | 8,436 | 228 | 160 | 37 | 0.815589 | 0 | 0 | 0.363636 | 0 | 0.020202 | 0.455785 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.015152 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c79c07c8078e5f1d72628e2e7fc0c80e75f6489c | 12,955 | py | Python | addon_common/common/decorators.py | Unnoen/retopoflow | 73c7cfc10a0b58937198d60e308ba5248b446490 | [
"OML"
] | 1 | 2022-01-10T23:40:21.000Z | 2022-01-10T23:40:21.000Z | addon_common/common/decorators.py | Unnoen/retopoflow | 73c7cfc10a0b58937198d60e308ba5248b446490 | [
"OML"
] | null | null | null | addon_common/common/decorators.py | Unnoen/retopoflow | 73c7cfc10a0b58937198d60e308ba5248b446490 | [
"OML"
] | null | null | null | '''
Copyright (C) 2021 CG Cookie
http://cgcookie.com
hello@cgcookie.com
Created by Jonathan Denning, Jonathan Williamson
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 ... | 33.475452 | 143 | 0.542802 | 1,573 | 12,955 | 4.310871 | 0.192626 | 0.016812 | 0.019466 | 0.037163 | 0.239493 | 0.166052 | 0.110308 | 0.110308 | 0.10028 | 0.10028 | 0 | 0.010255 | 0.33763 | 12,955 | 386 | 144 | 33.562176 | 0.779979 | 0.076187 | 0 | 0.329114 | 0 | 0 | 0.09862 | 0.009118 | 0 | 0 | 0 | 0 | 0.015823 | 1 | 0.151899 | false | 0 | 0.022152 | 0.025316 | 0.303797 | 0.056962 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c79d02fd3237e472a6910ab89fe822c176242e9f | 11,414 | py | Python | venv/Lib/site-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py | ajayiagbebaku/NFL-Model | afcc67a85ca7138c58c3334d45988ada2da158ed | [
"MIT"
] | 28,899 | 2016-10-13T03:32:12.000Z | 2022-03-31T21:39:05.000Z | venv/Lib/site-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py | ajayiagbebaku/NFL-Model | afcc67a85ca7138c58c3334d45988ada2da158ed | [
"MIT"
] | 31,004 | 2016-10-12T23:22:27.000Z | 2022-03-31T23:17:38.000Z | venv/Lib/site-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py | ajayiagbebaku/NFL-Model | afcc67a85ca7138c58c3334d45988ada2da158ed | [
"MIT"
] | 15,149 | 2016-10-13T03:21:31.000Z | 2022-03-31T18:46:47.000Z | import numpy as np
import pytest
from pandas import (
DataFrame,
Series,
concat,
)
import pandas._testing as tm
@pytest.mark.parametrize("func", ["cov", "corr"])
def test_ewm_pairwise_cov_corr(func, frame):
result = getattr(frame.ewm(span=10, min_periods=5), func)()
result = result.loc[(slice(Non... | 34.173653 | 88 | 0.615297 | 1,694 | 11,414 | 3.932113 | 0.097403 | 0.121603 | 0.077766 | 0.081069 | 0.709203 | 0.631887 | 0.620327 | 0.600811 | 0.568834 | 0.550818 | 0 | 0.021289 | 0.251008 | 11,414 | 333 | 89 | 34.276276 | 0.757866 | 0.060364 | 0 | 0.498084 | 0 | 0 | 0.020553 | 0 | 0 | 0 | 0 | 0 | 0.091954 | 1 | 0.05364 | false | 0 | 0.015326 | 0 | 0.084291 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c79e030266cfddaf92e93230023130a13241d6c0 | 6,895 | py | Python | brainex/query.py | ebuntel/BrainExTemp | 991038155a6e9289af90da3d800210841ef23ff1 | [
"MIT"
] | 1 | 2020-09-04T16:15:26.000Z | 2020-09-04T16:15:26.000Z | brainex/query.py | ebuntel/Brainextemp | 991038155a6e9289af90da3d800210841ef23ff1 | [
"MIT"
] | null | null | null | brainex/query.py | ebuntel/Brainextemp | 991038155a6e9289af90da3d800210841ef23ff1 | [
"MIT"
] | null | null | null |
# TODO finish implementing query
import math
from pyspark import SparkContext
# from genex.cluster import sim_between_seq
from brainex.op.query_op import sim_between_seq
from brainex.parse import strip_function, remove_trailing_zeros
from .classes import Sequence
from brainex.database import genexengine
def query(... | 33.634146 | 119 | 0.639014 | 950 | 6,895 | 4.449474 | 0.215789 | 0.034067 | 0.022711 | 0.014194 | 0.198959 | 0.132955 | 0.106932 | 0.081382 | 0.081382 | 0.062929 | 0 | 0.006302 | 0.263524 | 6,895 | 204 | 120 | 33.79902 | 0.826113 | 0.407107 | 0 | 0.061728 | 0 | 0 | 0.068643 | 0 | 0 | 0 | 0 | 0.009804 | 0 | 1 | 0.098765 | false | 0.012346 | 0.074074 | 0 | 0.271605 | 0.08642 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c79e23eb5e67f7342ba09df2a42c01c2772ded3a | 4,161 | py | Python | main.py | orgr/arbitrage_bot | 39365dce0dcae0f6bb4baf1d7c32392e28b6c623 | [
"MIT"
] | null | null | null | main.py | orgr/arbitrage_bot | 39365dce0dcae0f6bb4baf1d7c32392e28b6c623 | [
"MIT"
] | 1 | 2021-12-13T03:48:08.000Z | 2021-12-13T04:58:36.000Z | main.py | orgr/arbitrage_bot | 39365dce0dcae0f6bb4baf1d7c32392e28b6c623 | [
"MIT"
] | null | null | null | import sys
import time
from typing import List
import asyncio
import ccxt.async_support as ccxt
# import ccxt
import itertools
from enum import Enum
class Color(Enum):
GREEN = '\033[92m'
YELLOW = '\033[93m'
RED = '\033[91m'
RESET = '\033[0m'
def colorize(s, color: Color):
#... | 30.152174 | 111 | 0.564768 | 483 | 4,161 | 4.768116 | 0.26294 | 0.015632 | 0.024316 | 0.020842 | 0.130699 | 0.065132 | 0.042553 | 0 | 0 | 0 | 0 | 0.016541 | 0.331651 | 4,161 | 137 | 112 | 30.372263 | 0.811579 | 0.084595 | 0 | 0.098901 | 0 | 0 | 0.056269 | 0 | 0 | 0 | 0 | 0 | 0.010989 | 1 | 0.098901 | false | 0 | 0.076923 | 0.065934 | 0.450549 | 0.054945 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c79ee6a1b6ebeba170b33fbfe523726f9f206dbb | 1,497 | py | Python | examples/click-ninja/clickninja-final.py | predicatemike/predigame | 096e8379beb1d40ccb3f19ed2bb3ad82b405bb7f | [
"Apache-2.0"
] | null | null | null | examples/click-ninja/clickninja-final.py | predicatemike/predigame | 096e8379beb1d40ccb3f19ed2bb3ad82b405bb7f | [
"Apache-2.0"
] | null | null | null | examples/click-ninja/clickninja-final.py | predicatemike/predigame | 096e8379beb1d40ccb3f19ed2bb3ad82b405bb7f | [
"Apache-2.0"
] | null | null | null | WIDTH = 20
HEIGHT = 14
TITLE = 'Click Ninja'
BACKGROUND = 'board'
def destroy(s):
sound('swoosh')
if s.name == 'taco':
score(50)
else:
score(5)
# draw a splatting image at the center position of the image
image('redsplat', center=s.event_pos, size=2).fade(1.0)
s.fade(0.25)
def ... | 24.145161 | 86 | 0.549766 | 212 | 1,497 | 3.858491 | 0.400943 | 0.02934 | 0.025672 | 0.026895 | 0.099022 | 0.056235 | 0.056235 | 0.056235 | 0 | 0 | 0 | 0.049405 | 0.269873 | 1,497 | 61 | 87 | 24.540984 | 0.698994 | 0.038744 | 0 | 0.042553 | 0 | 0 | 0.100905 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06383 | false | 0 | 0 | 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 |
c79f981e96642b4e8be1f381e054bf741fdc029f | 7,166 | py | Python | nni/retiarii/hub/pytorch/nasbench201.py | nbl97/nni | 1530339d3e964a5ea95a0afde1775ec9167cdcc0 | [
"MIT"
] | 2,305 | 2018-09-07T12:42:26.000Z | 2019-05-06T20:14:24.000Z | nni/retiarii/hub/pytorch/nasbench201.py | nbl97/nni | 1530339d3e964a5ea95a0afde1775ec9167cdcc0 | [
"MIT"
] | 379 | 2018-09-10T10:19:50.000Z | 2019-05-06T18:04:46.000Z | nni/retiarii/hub/pytorch/nasbench201.py | nbl97/nni | 1530339d3e964a5ea95a0afde1775ec9167cdcc0 | [
"MIT"
] | 314 | 2018-09-08T05:36:08.000Z | 2019-05-06T08:48:51.000Z | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
from typing import Callable, Dict
import torch
import torch.nn as nn
from nni.retiarii import model_wrapper
from nni.retiarii.nn.pytorch import NasBench201Cell
__all__ = ['NasBench201']
OPS_WITH_STRIDE = {
'none': lambda C_in, C_out, st... | 34.786408 | 110 | 0.579542 | 971 | 7,166 | 4.069001 | 0.175077 | 0.036446 | 0.028347 | 0.042521 | 0.314604 | 0.24981 | 0.219944 | 0.21387 | 0.181979 | 0.171096 | 0 | 0.027219 | 0.292492 | 7,166 | 205 | 111 | 34.956098 | 0.752071 | 0.029166 | 0 | 0.208589 | 0 | 0 | 0.027666 | 0 | 0 | 0 | 0 | 0 | 0.006135 | 1 | 0.08589 | false | 0 | 0.030675 | 0.01227 | 0.214724 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7a32b4c1d013fec417f68425b02fe13d88c171e | 9,292 | py | Python | authalligator_client/entities.py | closeio/authalligator-client | fe93c9d2333d2949e44c48a2dd0a9a266734e026 | [
"MIT"
] | null | null | null | authalligator_client/entities.py | closeio/authalligator-client | fe93c9d2333d2949e44c48a2dd0a9a266734e026 | [
"MIT"
] | null | null | null | authalligator_client/entities.py | closeio/authalligator-client | fe93c9d2333d2949e44c48a2dd0a9a266734e026 | [
"MIT"
] | 1 | 2021-01-31T13:08:48.000Z | 2021-01-31T13:08:48.000Z | import datetime
from enum import Enum
from typing import Any, Callable, Dict, List, Optional, Type, TypeVar, Union, cast
import attr
import ciso8601
import structlog
from attr import converters
from . import enums
from .utils import as_json_dict, to_snake_case
logger = structlog.get_logger()
class Omitted(Enum):
... | 35.19697 | 88 | 0.660461 | 1,075 | 9,292 | 5.616744 | 0.260465 | 0.028155 | 0.027327 | 0.034614 | 0.183173 | 0.10732 | 0.098377 | 0.097218 | 0.097218 | 0.097218 | 0 | 0.002141 | 0.246126 | 9,292 | 263 | 89 | 35.330798 | 0.859814 | 0.374839 | 0 | 0.244898 | 0 | 0 | 0.06595 | 0.013894 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020408 | false | 0.006803 | 0.061224 | 0 | 0.380952 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7a3e79d5fcb0530f653c35813c95268647570c7 | 9,739 | py | Python | library/device.py | lompal/USBIPManager | b03d8d9c0befcd70b7f67cfe61c0664f48d2939d | [
"MIT"
] | 24 | 2019-01-25T20:40:07.000Z | 2020-11-20T08:12:14.000Z | library/device.py | lompal/USBIPManager | b03d8d9c0befcd70b7f67cfe61c0664f48d2939d | [
"MIT"
] | 3 | 2018-11-28T14:04:57.000Z | 2020-09-14T08:35:09.000Z | library/device.py | lompal/USBIPManager | b03d8d9c0befcd70b7f67cfe61c0664f48d2939d | [
"MIT"
] | 6 | 2019-08-23T05:30:26.000Z | 2020-11-20T08:12:03.000Z | from library import config, ini, lang, log, performance, periphery, queue
from asyncio import get_event_loop
from threading import Thread, Event
from PyQt5.QtCore import QObject, pyqtSignal
from PyQt5.QtWidgets import QTreeWidgetItem
# noinspection PyPep8Naming
class Signal(QObject):
""" PyQt signals for correct... | 36.339552 | 118 | 0.618133 | 1,148 | 9,739 | 4.947735 | 0.158537 | 0.033803 | 0.03169 | 0.034507 | 0.446831 | 0.423063 | 0.388908 | 0.360211 | 0.335915 | 0.302465 | 0 | 0.003774 | 0.265325 | 9,739 | 267 | 119 | 36.475655 | 0.790077 | 0.133279 | 0 | 0.271186 | 0 | 0.00565 | 0.09487 | 0.054492 | 0 | 0 | 0 | 0 | 0 | 1 | 0.163842 | false | 0 | 0.028249 | 0 | 0.344633 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7a3f3c709f3111aed4b0e26101a434835f55c66 | 3,959 | py | Python | agent/minimax/submission.py | youkeyao/SJTU-CS410-Snakes-3V3-Group06 | 180ab3714686cdd879454cf103affc6bb03b7fcd | [
"MIT"
] | 1 | 2022-01-09T13:59:34.000Z | 2022-01-09T13:59:34.000Z | agent/minimax/submission.py | youkeyao/SJTU-CS410-Snakes-3V3-Group06 | 180ab3714686cdd879454cf103affc6bb03b7fcd | [
"MIT"
] | null | null | null | agent/minimax/submission.py | youkeyao/SJTU-CS410-Snakes-3V3-Group06 | 180ab3714686cdd879454cf103affc6bb03b7fcd | [
"MIT"
] | null | null | null | DEPTH = 3
# Action
class Action:
top = [1, 0, 0, 0]
bottom = [0, 1, 0, 0]
left = [0, 0, 1, 0]
right = [0, 0, 0, 1]
actlist = [(-1, 0), (1, 0), (0, -1), (0, 1)]
mapAct = {
actlist[0]: top,
actlist[1]: bottom,
actlist[2]: left,
actlist[3]: right
}
def go(s... | 32.186992 | 99 | 0.51023 | 481 | 3,959 | 4.128898 | 0.164241 | 0.009063 | 0.024673 | 0.050352 | 0.404834 | 0.355488 | 0.275932 | 0.252769 | 0.252769 | 0.222558 | 0 | 0.042303 | 0.35514 | 3,959 | 123 | 100 | 32.186992 | 0.735605 | 0.001516 | 0 | 0.196262 | 0 | 0 | 0.023026 | 0.005567 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093458 | false | 0 | 0 | 0.009346 | 0.35514 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7a95d54d497e531abccb6e65c1f8ff7b1fbb2e5 | 7,202 | py | Python | semester3/oop/lab3/parser/client/MasterService/client.py | no1sebomb/University-Labs | 1da5e7486f0b8a6119c077945aba8c89cdfc2e50 | [
"WTFPL"
] | null | null | null | semester3/oop/lab3/parser/client/MasterService/client.py | no1sebomb/University-Labs | 1da5e7486f0b8a6119c077945aba8c89cdfc2e50 | [
"WTFPL"
] | null | null | null | semester3/oop/lab3/parser/client/MasterService/client.py | no1sebomb/University-Labs | 1da5e7486f0b8a6119c077945aba8c89cdfc2e50 | [
"WTFPL"
] | 1 | 2020-11-01T23:54:52.000Z | 2020-11-01T23:54:52.000Z | # coding=utf-8
from parser.client import *
from parser.client.ResponseItem import *
with (Path(__file__).resolve().parent / "config.json").open("rt") as siteConfigFile:
SITE_CONFIG = json.load(siteConfigFile)
class MasterService(Client):
class Link:
main = "https://steering.com.ua/"
login =... | 43.648485 | 120 | 0.509303 | 791 | 7,202 | 4.461441 | 0.217446 | 0.045905 | 0.030604 | 0.038538 | 0.250213 | 0.181921 | 0.115897 | 0.098895 | 0.087844 | 0.087844 | 0 | 0.011882 | 0.345598 | 7,202 | 164 | 121 | 43.914634 | 0.736898 | 0.001666 | 0 | 0.231884 | 0 | 0.014493 | 0.168197 | 0.090568 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021739 | false | 0.028986 | 0.014493 | 0 | 0.130435 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7a9d270039cb319b1e7bd45460f8d2badbcbfe0 | 1,562 | py | Python | Tic-Tac-Pi/gameObjects/TextObject.py | mstubinis/Tic-Tac-Pi | b96db58332be4975f4a5b18b6dd45a0eac859528 | [
"MIT"
] | 2 | 2016-04-13T02:52:46.000Z | 2017-11-20T22:41:36.000Z | Tic-Tac-Pi/gameObjects/TextObject.py | mstubinis/Tic-Tac-Pi | b96db58332be4975f4a5b18b6dd45a0eac859528 | [
"MIT"
] | null | null | null | Tic-Tac-Pi/gameObjects/TextObject.py | mstubinis/Tic-Tac-Pi | b96db58332be4975f4a5b18b6dd45a0eac859528 | [
"MIT"
] | 3 | 2016-04-14T02:29:32.000Z | 2020-04-27T06:08:07.000Z | import pygame
from pygame.locals import *
import resourceManager
class TextObject(pygame.sprite.Sprite):
def __init__(self,pos,fontSize,fontcolor,textstring):
pygame.sprite.Sprite.__init__(self) #call Sprite initializer
self.position = pos
self.message = textstring
self.color = fon... | 31.24 | 68 | 0.596031 | 198 | 1,562 | 4.626263 | 0.277778 | 0.104803 | 0.039301 | 0.068777 | 0.159389 | 0.111354 | 0.067686 | 0.067686 | 0 | 0 | 0 | 0.010018 | 0.297055 | 1,562 | 49 | 69 | 31.877551 | 0.824226 | 0.014725 | 0 | 0.170732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.146341 | false | 0.02439 | 0.073171 | 0 | 0.414634 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |