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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5d02f65a15a35f3f5f2205ff5270eaa60e785026 | 12,032 | py | Python | virtual/lib/python3.6/site-packages/sqlalchemy/sql/default_comparator.py | mzazakeith/flask-blog | 2833404cc5e96ffdbfb767f35b9caf2bdcce7997 | [
"MIT"
] | 207 | 2018-10-01T08:53:01.000Z | 2022-03-14T12:15:54.000Z | virtual/lib/python3.6/site-packages/sqlalchemy/sql/default_comparator.py | mzazakeith/flask-blog | 2833404cc5e96ffdbfb767f35b9caf2bdcce7997 | [
"MIT"
] | 32 | 2018-05-01T05:24:43.000Z | 2022-03-11T23:20:39.000Z | lib/python2.7/site-packages/sqlalchemy/sql/default_comparator.py | anish03/weather-dash | d517fa9da9028d1fc5d8fd71d77cee829ddee87b | [
"MIT"
] | 53 | 2019-03-12T16:50:21.000Z | 2022-03-15T23:16:18.000Z | # sql/default_comparator.py
# Copyright (C) 2005-2018 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""Default implementation of SQL comparison operations.
"""
from .. impor... | 36.907975 | 79 | 0.593251 | 1,297 | 12,032 | 5.184271 | 0.189668 | 0.0232 | 0.05815 | 0.026026 | 0.283611 | 0.180101 | 0.163147 | 0.133998 | 0.118084 | 0.092356 | 0 | 0.001312 | 0.303108 | 12,032 | 325 | 80 | 37.021538 | 0.800596 | 0.086769 | 0 | 0.262948 | 0 | 0 | 0.069476 | 0.004022 | 0 | 0 | 0 | 0.003077 | 0 | 1 | 0.059761 | false | 0 | 0.01992 | 0.007968 | 0.191235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d0300b0501feb02f7f7fdb3d0f6bb946c42313a | 2,153 | py | Python | recipes/serializers.py | klharshini/recipe-django-api | 7ceb00ab26f6e0d19196519ece297d2f4d616a5d | [
"Apache-2.0"
] | null | null | null | recipes/serializers.py | klharshini/recipe-django-api | 7ceb00ab26f6e0d19196519ece297d2f4d616a5d | [
"Apache-2.0"
] | 3 | 2020-06-05T21:58:22.000Z | 2021-06-10T21:40:50.000Z | recipes/serializers.py | klharshini/recipe-django-api | 7ceb00ab26f6e0d19196519ece297d2f4d616a5d | [
"Apache-2.0"
] | null | null | null | from django.contrib.auth.validators import UnicodeUsernameValidator
from rest_framework import serializers
from django.contrib.auth.models import User
from recipes.models import Recipe, Ingredient, Step
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = ("usernam... | 33.123077 | 69 | 0.672085 | 218 | 2,153 | 6.518349 | 0.261468 | 0.073188 | 0.059817 | 0.070373 | 0.401126 | 0.270232 | 0.270232 | 0.270232 | 0.270232 | 0.211119 | 0 | 0 | 0.228518 | 2,153 | 64 | 70 | 33.640625 | 0.855509 | 0 | 0 | 0.24 | 0 | 0 | 0.060845 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.08 | 0 | 0.38 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d0375507c268370ae9c58f1a6b3dd509a4f4999 | 1,652 | py | Python | tests/test_model/test_temporal_regression_head.py | jcwon0/BlurHPE | c97a57e92a8a7f171b0403aee640222a32513562 | [
"Apache-2.0"
] | null | null | null | tests/test_model/test_temporal_regression_head.py | jcwon0/BlurHPE | c97a57e92a8a7f171b0403aee640222a32513562 | [
"Apache-2.0"
] | null | null | null | tests/test_model/test_temporal_regression_head.py | jcwon0/BlurHPE | c97a57e92a8a7f171b0403aee640222a32513562 | [
"Apache-2.0"
] | null | null | null | import numpy as np
import pytest
import torch
from mmpose.models import TemporalRegressionHead
def test_temporal_regression_head():
"""Test temporal head."""
head = TemporalRegressionHead(
in_channels=1024,
num_joints=17,
loss_keypoint=dict(type='MPJPELoss', use_target_wei... | 28.982456 | 70 | 0.625303 | 215 | 1,652 | 4.613953 | 0.390698 | 0.100806 | 0.080645 | 0.060484 | 0.210685 | 0.194556 | 0.129032 | 0 | 0 | 0 | 0 | 0.041051 | 0.262712 | 1,652 | 56 | 71 | 29.5 | 0.773399 | 0.174334 | 0 | 0.212121 | 0 | 0 | 0.022817 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.060606 | false | 0 | 0.121212 | 0 | 0.212121 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d04161d9491b3b2bccc61b8d346c61f251d0a5b | 1,774 | py | Python | 353-Design-Snake-Game/solution.py | Tanych/CodeTracking | 86f1cb98de801f58c39d9a48ce9de12df7303d20 | [
"MIT"
] | null | null | null | 353-Design-Snake-Game/solution.py | Tanych/CodeTracking | 86f1cb98de801f58c39d9a48ce9de12df7303d20 | [
"MIT"
] | null | null | null | 353-Design-Snake-Game/solution.py | Tanych/CodeTracking | 86f1cb98de801f58c39d9a48ce9de12df7303d20 | [
"MIT"
] | null | null | null | class SnakeGame(object):
def __init__(self, width,height,food):
"""
Initialize your data structure here.
@param width - screen width
@param height - screen height
@param food - A list of food positions
E.g food = [[1,1], [1,0]] means the first food is positioned at ... | 35.48 | 102 | 0.567644 | 244 | 1,774 | 4.106557 | 0.348361 | 0.083832 | 0.02994 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02502 | 0.301578 | 1,774 | 50 | 103 | 35.48 | 0.783697 | 0.379369 | 0 | 0.08 | 0 | 0 | 0.00418 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0 | 0 | 0.24 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d046e78f1ff28c88e9dd3fba255e0d381257af6 | 975 | py | Python | scripts/register_sam.py | jessebrennan/azul | 65970a0947f38fae439a3bf8fd960d351787b7a3 | [
"Apache-2.0"
] | null | null | null | scripts/register_sam.py | jessebrennan/azul | 65970a0947f38fae439a3bf8fd960d351787b7a3 | [
"Apache-2.0"
] | null | null | null | scripts/register_sam.py | jessebrennan/azul | 65970a0947f38fae439a3bf8fd960d351787b7a3 | [
"Apache-2.0"
] | null | null | null | from itertools import (
chain,
)
import logging
from azul import (
config,
require,
)
from azul.logging import (
configure_script_logging,
)
from azul.terra import (
TDRClient,
TDRSourceName,
)
log = logging.getLogger(__name__)
def main():
configure_script_logging(log)
tdr = TDRClien... | 22.159091 | 78 | 0.644103 | 109 | 975 | 5.486239 | 0.431193 | 0.040134 | 0.050167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.262564 | 975 | 43 | 79 | 22.674419 | 0.831711 | 0 | 0 | 0 | 0 | 0 | 0.086154 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.138889 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d0497316627f4c13c17f9d3db674195ece95272 | 3,584 | py | Python | altitude/players.py | StamKaly/altitude-mod-foundation | 403befeba7d0e2e6afe3897081cd3e01f438e3d5 | [
"MIT"
] | 1 | 2018-07-11T16:55:49.000Z | 2018-07-11T16:55:49.000Z | altitude/players.py | StamKaly/altitude-mod-foundation | 403befeba7d0e2e6afe3897081cd3e01f438e3d5 | [
"MIT"
] | null | null | null | altitude/players.py | StamKaly/altitude-mod-foundation | 403befeba7d0e2e6afe3897081cd3e01f438e3d5 | [
"MIT"
] | null | null | null | class Player:
def __init__(self, nickname, vapor_id, player_id, ip):
self.nickname = nickname
self.vapor_id = vapor_id
self.player_id = player_id
self.ip = ip
self.not_joined = True
self.loads_map = True
self.joined_after_change_map = True
class Players:
... | 35.84 | 88 | 0.626395 | 457 | 3,584 | 4.647702 | 0.131291 | 0.088041 | 0.062147 | 0.077684 | 0.428437 | 0.353578 | 0.282486 | 0.198682 | 0.130885 | 0.130885 | 0 | 0.000797 | 0.300223 | 3,584 | 99 | 89 | 36.20202 | 0.846093 | 0 | 0 | 0.268293 | 0 | 0 | 0.00558 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.195122 | false | 0 | 0 | 0.02439 | 0.329268 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d0642e93e7a866ace737fc8f40342ddac2993c4 | 17,835 | py | Python | dsn/editor/construct.py | expressionsofchange/nerf0 | 788203619fc89c92e8c7301d62bbc4f1f4ee66e1 | [
"MIT"
] | 2 | 2019-04-30T05:42:05.000Z | 2019-08-11T19:17:20.000Z | dsn/editor/construct.py | expressionsofchange/nerf0 | 788203619fc89c92e8c7301d62bbc4f1f4ee66e1 | [
"MIT"
] | null | null | null | dsn/editor/construct.py | expressionsofchange/nerf0 | 788203619fc89c92e8c7301d62bbc4f1f4ee66e1 | [
"MIT"
] | null | null | null | """
Tools to "play notes for the editor clef", which may be thought of as "executing editor commands".
NOTE: in the below, we often connect notes together "manually", i.e. using NoteSlur(..., previous_hash). As an
alternative, we could consider `nouts_for_notes`.
"""
from s_address import node_for_s_address, s_dfs
f... | 47.18254 | 120 | 0.691786 | 2,549 | 17,835 | 4.635936 | 0.179678 | 0.033765 | 0.059575 | 0.025387 | 0.373784 | 0.329864 | 0.297707 | 0.266819 | 0.229923 | 0.18778 | 0 | 0.005173 | 0.230502 | 17,835 | 377 | 121 | 47.307692 | 0.855873 | 0.371124 | 0 | 0.317949 | 0 | 0 | 0.003376 | 0 | 0 | 0 | 0 | 0.002653 | 0 | 1 | 0.025641 | false | 0 | 0.030769 | 0.015385 | 0.225641 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d06e71f9e23ea91aab0fd29960c633c1cc96c2f | 636 | py | Python | src/pytong/base.py | richtong/pytong | 6ff07a1bdf1d5e2232bfc102cce2dd74783bb111 | [
"MIT"
] | null | null | null | src/pytong/base.py | richtong/pytong | 6ff07a1bdf1d5e2232bfc102cce2dd74783bb111 | [
"MIT"
] | null | null | null | src/pytong/base.py | richtong/pytong | 6ff07a1bdf1d5e2232bfc102cce2dd74783bb111 | [
"MIT"
] | null | null | null | """Base for all Classes.
Base mainly includes the description fields
"""
import logging
from typing import Optional
from .log import Log # type: ignore
class BaseLog:
"""
Set a base logging.
Use this as the base class for all your work. This adds a logging root.
"""
def __init__(self, log_roo... | 22.714286 | 75 | 0.610063 | 88 | 636 | 4.25 | 0.511364 | 0.093583 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.300314 | 636 | 27 | 76 | 23.555556 | 0.840449 | 0.349057 | 0 | 0 | 0 | 0 | 0.018325 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 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 |
5d073e43082666b4fb7e947816cf1a811338dbe3 | 620 | py | Python | subprocess-10.py | GuillaumeFalourd/poc-subprocess | 8f014a709ac2e471092d4ea1f61f1a9ff65ff571 | [
"Apache-2.0"
] | 1 | 2021-12-08T12:58:14.000Z | 2021-12-08T12:58:14.000Z | subprocess-10.py | GuillaumeFalourd/poc-subprocess | 8f014a709ac2e471092d4ea1f61f1a9ff65ff571 | [
"Apache-2.0"
] | null | null | null | subprocess-10.py | GuillaumeFalourd/poc-subprocess | 8f014a709ac2e471092d4ea1f61f1a9ff65ff571 | [
"Apache-2.0"
] | null | null | null | import subprocess
import re
programs = input('Separe the programs with a space: ').split()
secure_pattern = '[\w\d]'
for program in programs:
if not re.match(secure_pattern, program):
print("Sorry we can't check that program")
continue
process = subprocess. run(
['which', program],... | 22.962963 | 65 | 0.63871 | 82 | 620 | 4.792683 | 0.585366 | 0.045802 | 0.045802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002123 | 0.240323 | 620 | 27 | 66 | 22.962963 | 0.832272 | 0 | 0 | 0 | 0 | 0 | 0.320451 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.117647 | 0.352941 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d0751ff55112db535e551765b215e8ad53a88d2 | 2,320 | py | Python | authentication/socialaccount/forms.py | vo0doO/pydj-persweb | efcd6b7090230f7c0b9ec056008f6d1d9e876ed9 | [
"CC0-1.0"
] | null | null | null | authentication/socialaccount/forms.py | vo0doO/pydj-persweb | efcd6b7090230f7c0b9ec056008f6d1d9e876ed9 | [
"CC0-1.0"
] | 4 | 2020-05-06T17:22:00.000Z | 2021-12-13T20:43:30.000Z | authentication/socialaccount/forms.py | vo0doO/pydj-persweb | efcd6b7090230f7c0b9ec056008f6d1d9e876ed9 | [
"CC0-1.0"
] | null | null | null | from __future__ import absolute_import
from django import forms
from authentication.account.forms import BaseSignupForm
from . import app_settings, signals
from .adapter import get_adapter
from .models import SocialAccount
class SignupForm(BaseSignupForm):
def __init__(self, *args, **kwargs):
self.soc... | 35.692308 | 76 | 0.617241 | 226 | 2,320 | 6.110619 | 0.309735 | 0.036206 | 0.030413 | 0.021723 | 0.036206 | 0.036206 | 0 | 0 | 0 | 0 | 0 | 0 | 0.289655 | 2,320 | 64 | 77 | 36.25 | 0.837985 | 0 | 0 | 0.039216 | 0 | 0 | 0.036638 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.117647 | 0 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d0792b2d66082b8e779a07e75899ce616d825f2 | 12,110 | py | Python | pytheos/pytheos.py | nilsbeck/pytheos | de4f3a03330ddb28e68ddcaa7b4888ea9a25e238 | [
"MIT"
] | null | null | null | pytheos/pytheos.py | nilsbeck/pytheos | de4f3a03330ddb28e68ddcaa7b4888ea9a25e238 | [
"MIT"
] | 1 | 2021-10-30T16:31:41.000Z | 2021-10-30T16:31:41.000Z | pytheos/pytheos.py | nilsbeck/pytheos | de4f3a03330ddb28e68ddcaa7b4888ea9a25e238 | [
"MIT"
] | 1 | 2021-10-30T14:24:58.000Z | 2021-10-30T14:24:58.000Z | #!/usr/bin/env python
""" Provides the primary interface into the library """
from __future__ import annotations
import asyncio
import logging
from typing import Callable, Optional, Union
from . import utils
from . import controllers
from .networking.connection import Connection
from .networking.types import SSDPRes... | 31.952507 | 108 | 0.650372 | 1,394 | 12,110 | 5.416069 | 0.176471 | 0.042914 | 0.033377 | 0.039603 | 0.249007 | 0.189007 | 0.143046 | 0.101722 | 0.062517 | 0.029139 | 0 | 0.000896 | 0.262675 | 12,110 | 378 | 109 | 32.037037 | 0.844663 | 0.12981 | 0 | 0.138889 | 0 | 0 | 0.030354 | 0.009636 | 0 | 0 | 0 | 0.007937 | 0 | 1 | 0.15 | false | 0.011111 | 0.061111 | 0.027778 | 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 |
5d090b8cc45daaa469bff1113230ad77ae43f4b6 | 9,596 | py | Python | tianshou/data/collector.py | DZ9/tianshou | 04208e6cce722b7a2353d9a5f4d6f0fc05797d67 | [
"MIT"
] | 1 | 2020-04-01T04:47:39.000Z | 2020-04-01T04:47:39.000Z | tianshou/data/collector.py | TommeyChang/tianshou | 4f843d3f51789f488169131a5b5decba8bab2b31 | [
"MIT"
] | null | null | null | tianshou/data/collector.py | TommeyChang/tianshou | 4f843d3f51789f488169131a5b5decba8bab2b31 | [
"MIT"
] | 1 | 2022-01-23T10:52:48.000Z | 2022-01-23T10:52:48.000Z | import time
import torch
import warnings
import numpy as np
from tianshou.env import BaseVectorEnv
from tianshou.data import Batch, ReplayBuffer,\
ListReplayBuffer
from tianshou.utils import MovAvg
class Collector(object):
"""docstring for Collector"""
def __init__(self, policy, env, buffer=None, stat_si... | 40.150628 | 79 | 0.492393 | 1,100 | 9,596 | 4.080909 | 0.140909 | 0.032747 | 0.02896 | 0.021831 | 0.185342 | 0.056137 | 0.012029 | 0 | 0 | 0 | 0 | 0.009566 | 0.411734 | 9,596 | 238 | 80 | 40.319328 | 0.785651 | 0.021259 | 0 | 0.198198 | 0 | 0 | 0.034957 | 0 | 0 | 0 | 0 | 0 | 0.009009 | 1 | 0.045045 | false | 0 | 0.031532 | 0.004505 | 0.112613 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d0a9e073091c730b7a6a4929db2b2500c65ff5d | 1,591 | py | Python | drink_partners/partners/tests/views/test_search_partner_view.py | henriquebraga/drink-partners | 4702263ae3e43ea9403cff5a72b68245d61880c7 | [
"Apache-2.0"
] | null | null | null | drink_partners/partners/tests/views/test_search_partner_view.py | henriquebraga/drink-partners | 4702263ae3e43ea9403cff5a72b68245d61880c7 | [
"Apache-2.0"
] | 22 | 2020-05-02T19:32:24.000Z | 2021-10-17T21:19:46.000Z | drink_partners/partners/tests/views/test_search_partner_view.py | henriquebraga/drink-partners | 4702263ae3e43ea9403cff5a72b68245d61880c7 | [
"Apache-2.0"
] | null | null | null | from drink_partners.contrib.samples import partner_bar_legal
class TestSearchPartner:
async def test_should_return_bad_request_for_str_coordinates(
self,
client,
partner_search_with_str_coordinates_url
):
async with client.get(partner_search_with_str_coordinates_url) as respon... | 31.82 | 90 | 0.649906 | 174 | 1,591 | 5.574713 | 0.333333 | 0.136082 | 0.092784 | 0.094845 | 0.683505 | 0.547423 | 0.519588 | 0.437113 | 0.278351 | 0.278351 | 0 | 0.020193 | 0.284098 | 1,591 | 49 | 91 | 32.469388 | 0.831431 | 0.0088 | 0 | 0.432432 | 0 | 0 | 0.115702 | 0 | 0 | 0 | 0 | 0 | 0.216216 | 1 | 0 | false | 0 | 0.027027 | 0 | 0.054054 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d0d63268d357d52fa0b7327baa9d61702e3b1cd | 3,341 | py | Python | mjecv/io/base.py | mje-nz/mjecv | 9a02c005a0abc7d21594f65c348cfe5185c90184 | [
"MIT"
] | null | null | null | mjecv/io/base.py | mje-nz/mjecv | 9a02c005a0abc7d21594f65c348cfe5185c90184 | [
"MIT"
] | null | null | null | mjecv/io/base.py | mje-nz/mjecv | 9a02c005a0abc7d21594f65c348cfe5185c90184 | [
"MIT"
] | null | null | null | import multiprocessing
from typing import List, Optional
import numpy as np
from ..util import dill_for_apply
class ImageSequenceWriter:
def __init__(self, pattern, writer, *, max_index=None):
if type(pattern) is not str:
raise ValueError("Pattern must be string")
if pattern.format(1... | 33.079208 | 86 | 0.609398 | 393 | 3,341 | 4.977099 | 0.328244 | 0.03272 | 0.018405 | 0.026585 | 0.03681 | 0.03681 | 0.03681 | 0.03681 | 0 | 0 | 0 | 0.003409 | 0.297516 | 3,341 | 100 | 87 | 33.41 | 0.829996 | 0.161329 | 0 | 0.109589 | 0 | 0 | 0.02381 | 0 | 0 | 0 | 0 | 0 | 0.013699 | 1 | 0.150685 | false | 0.013699 | 0.054795 | 0 | 0.246575 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d0f2e44cd4703366dc6065304ee5f71411d41c4 | 1,495 | py | Python | 377_combination_sum_iv.py | gengwg/leetcode | 0af5256ec98149ef5863f3bba78ed1e749650f6e | [
"Apache-2.0"
] | 2 | 2018-04-24T19:17:40.000Z | 2018-04-24T19:33:52.000Z | 377_combination_sum_iv.py | gengwg/leetcode | 0af5256ec98149ef5863f3bba78ed1e749650f6e | [
"Apache-2.0"
] | null | null | null | 377_combination_sum_iv.py | gengwg/leetcode | 0af5256ec98149ef5863f3bba78ed1e749650f6e | [
"Apache-2.0"
] | 3 | 2020-06-17T05:48:52.000Z | 2021-01-02T06:08:25.000Z | # 377 Combination Sum IV
# Given an integer array with all positive numbers and no duplicates,
# find the number of possible combinations that add up to a positive integer target.
#
# Example:
#
# nums = [1, 2, 3]
# target = 4
#
# The possible combination ways are:
# (1, 1, 1, 1)
# (1, 1, 2)
# (1, 2, 1)
# (1, 3)
# (2,... | 24.508197 | 84 | 0.535786 | 208 | 1,495 | 3.850962 | 0.423077 | 0.017478 | 0.014981 | 0.014981 | 0.174782 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042596 | 0.340468 | 1,495 | 60 | 85 | 24.916667 | 0.769777 | 0.471572 | 0 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0 | 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 |
5d102888dd921effe96e5fc388b2a1b8ea50b383 | 3,440 | py | Python | nvidia-texture-tools/conanfile.py | koeleck/conan-packages | da43e82c2444e934e69a38e524998d028f8edcc3 | [
"Unlicense"
] | null | null | null | nvidia-texture-tools/conanfile.py | koeleck/conan-packages | da43e82c2444e934e69a38e524998d028f8edcc3 | [
"Unlicense"
] | null | null | null | nvidia-texture-tools/conanfile.py | koeleck/conan-packages | da43e82c2444e934e69a38e524998d028f8edcc3 | [
"Unlicense"
] | null | null | null | from conans import ConanFile, CMake, tools
import os
STATIC_LIBS = ["nvtt", "squish", "rg_etc1", "nvimage", "bc6h", "posh",
"bc7", "nvmath", "nvthread", "nvcore"]
SHARED_LIBS = ["nvtt", "nvimage", "nvthread", "nvmath", "nvcore"]
class NvidiatexturetoolsConan(ConanFile):
name = "nvidia-texture-tools... | 47.123288 | 184 | 0.627326 | 432 | 3,440 | 4.87037 | 0.30787 | 0.022814 | 0.038023 | 0.053232 | 0.269487 | 0.248574 | 0.217205 | 0.203897 | 0.203897 | 0.203897 | 0 | 0.011936 | 0.22064 | 3,440 | 72 | 185 | 47.777778 | 0.772846 | 0 | 0 | 0.145161 | 0 | 0.016129 | 0.23054 | 0.018789 | 0 | 0 | 0 | 0 | 0 | 1 | 0.080645 | false | 0 | 0.032258 | 0 | 0.322581 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d105ccb37935c70d4da4645c5743044452805b9 | 2,890 | py | Python | train_args.py | MyWay/Create-Your-Own-Image-Classifier | 70e5744084435af8a74b2cfe2098c25b0745c9af | [
"MIT"
] | null | null | null | train_args.py | MyWay/Create-Your-Own-Image-Classifier | 70e5744084435af8a74b2cfe2098c25b0745c9af | [
"MIT"
] | null | null | null | train_args.py | MyWay/Create-Your-Own-Image-Classifier | 70e5744084435af8a74b2cfe2098c25b0745c9af | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
""" train_args.py
train_args.py command-line args.
"""
import argparse
def get_args():
"""
"""
parser = argparse.ArgumentParser(
description="This script lets you train and save your model.",
usage="python3 train.py flowers/train --gpu --learning_rate 0.001 --epochs... | 30.104167 | 112 | 0.450173 | 259 | 2,890 | 4.868726 | 0.382239 | 0.087232 | 0.09437 | 0.031721 | 0.093577 | 0.093577 | 0.093577 | 0.093577 | 0.093577 | 0.093577 | 0 | 0.012369 | 0.440484 | 2,890 | 96 | 113 | 30.104167 | 0.767471 | 0.028374 | 0 | 0.227273 | 0 | 0.015152 | 0.261158 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.015152 | 0 | 0.060606 | 0.015152 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d12933f8b3900ae610ac625eadbf5cf407b20ba | 1,483 | py | Python | apps/payment/views.py | canadiyaman/thetask | 0f1cea1d8eea4966138ef0bdc303a53e3511e57d | [
"RSA-MD"
] | null | null | null | apps/payment/views.py | canadiyaman/thetask | 0f1cea1d8eea4966138ef0bdc303a53e3511e57d | [
"RSA-MD"
] | null | null | null | apps/payment/views.py | canadiyaman/thetask | 0f1cea1d8eea4966138ef0bdc303a53e3511e57d | [
"RSA-MD"
] | null | null | null | from django.http import HttpResponseRedirect
from django.conf import settings
from django.views.generic import TemplateView
from apps.payment.models import PaymentLog
from apps.payment.stripe import get_token, get_payment_charge
from apps.subscription.views import start_subscription
class ChargeView(TemplateView):
... | 34.488372 | 106 | 0.653405 | 177 | 1,483 | 5.316384 | 0.355932 | 0.058448 | 0.074389 | 0.036132 | 0.061637 | 0.061637 | 0.061637 | 0 | 0 | 0 | 0 | 0.006969 | 0.225893 | 1,483 | 42 | 107 | 35.309524 | 0.812718 | 0 | 0 | 0 | 0 | 0 | 0.084289 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0 | 0.171429 | 0 | 0.371429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d12e645166a3997ff332b7bb734f77bb3785c93 | 1,407 | py | Python | secure_data_store/cli.py | HumanBrainProject/secure-data-store | 69b615cf979fc08f4ae8474ca9cd3e6d2f04b7f0 | [
"MIT"
] | 1 | 2021-11-23T12:26:01.000Z | 2021-11-23T12:26:01.000Z | secure_data_store/cli.py | HumanBrainProject/secure-data-store | 69b615cf979fc08f4ae8474ca9cd3e6d2f04b7f0 | [
"MIT"
] | null | null | null | secure_data_store/cli.py | HumanBrainProject/secure-data-store | 69b615cf979fc08f4ae8474ca9cd3e6d2f04b7f0 | [
"MIT"
] | 1 | 2020-05-21T15:51:44.000Z | 2020-05-21T15:51:44.000Z | # -*- coding: utf-8 -*-
"""Console script for secure_data_store."""
import click
from . import secure_data_store as sds
CONFIG='~/.sdsrc'
@click.group()
def main():
"""Wrapper for GoCryptFS"""
@main.command()
@click.argument('name')
@click.option('--config', help='Path to config file', default='~/.sdsrc')
def cr... | 29.3125 | 88 | 0.663113 | 183 | 1,407 | 5.060109 | 0.311475 | 0.058315 | 0.051836 | 0.077754 | 0.633909 | 0.633909 | 0.633909 | 0.518359 | 0.518359 | 0.390929 | 0 | 0.000864 | 0.177683 | 1,407 | 47 | 89 | 29.93617 | 0.799481 | 0.183369 | 0 | 0.545455 | 0 | 0 | 0.111707 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121212 | false | 0 | 0.060606 | 0 | 0.181818 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d13dcd7f99f525058d1ada523c294f362a0d8b9 | 1,052 | py | Python | Support/Fuego/Pythia/pythia-0.4/packages/pyre/pyre/graph/Node.py | marient/PelePhysics | e6ad1839d77b194e09ab44ff850c9489652e5d81 | [
"BSD-3-Clause-LBNL"
] | 1 | 2019-04-24T13:32:23.000Z | 2019-04-24T13:32:23.000Z | Support/Fuego/Pythia/pythia-0.4/packages/pyre/pyre/graph/Node.py | marient/PelePhysics | e6ad1839d77b194e09ab44ff850c9489652e5d81 | [
"BSD-3-Clause-LBNL"
] | null | null | null | Support/Fuego/Pythia/pythia-0.4/packages/pyre/pyre/graph/Node.py | marient/PelePhysics | e6ad1839d77b194e09ab44ff850c9489652e5d81 | [
"BSD-3-Clause-LBNL"
] | null | null | null | #!/usr/bin/env python
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Michael A.G. Aivazis
# California Institute of Technology
# (C) 1998-2003 All Rights Reserved
#
# <LicenseText>
#
# ~~~~~~~~~~~~~~~~~... | 19.849057 | 82 | 0.429658 | 86 | 1,052 | 5.069767 | 0.593023 | 0.041284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011142 | 0.31749 | 1,052 | 52 | 83 | 20.230769 | 0.5961 | 0.403992 | 0 | 0 | 0 | 0 | 0.121911 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.043478 | 0.043478 | 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 |
5d13e82b9800d2ed9d73368f30bea490d35c562b | 3,522 | py | Python | cairis/gui/RiskScatterPanel.py | RachelLar/cairis_update | 0b1d6d17ce49bc74887d1684e28c53c1b06e2fa2 | [
"Apache-2.0"
] | null | null | null | cairis/gui/RiskScatterPanel.py | RachelLar/cairis_update | 0b1d6d17ce49bc74887d1684e28c53c1b06e2fa2 | [
"Apache-2.0"
] | null | null | null | cairis/gui/RiskScatterPanel.py | RachelLar/cairis_update | 0b1d6d17ce49bc74887d1684e28c53c1b06e2fa2 | [
"Apache-2.0"
] | null | null | null | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may... | 33.865385 | 141 | 0.70017 | 488 | 3,522 | 5 | 0.422131 | 0.032787 | 0.027049 | 0.018443 | 0.019672 | 0.019672 | 0.019672 | 0 | 0 | 0 | 0 | 0.027138 | 0.173481 | 3,522 | 103 | 142 | 34.194175 | 0.811061 | 0.216638 | 0 | 0 | 0 | 0 | 0.068953 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065789 | false | 0 | 0.118421 | 0 | 0.315789 | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d14d6320ca92dcf32c70f780204293a845032e6 | 21,539 | py | Python | contrib/memcache_whisper.py | TimWhalen/graphite-web | e150af45e01d01141a8767ec0597e218105b9914 | [
"Apache-2.0"
] | 1 | 2020-01-23T16:25:50.000Z | 2020-01-23T16:25:50.000Z | contrib/memcache_whisper.py | TimWhalen/graphite-web | e150af45e01d01141a8767ec0597e218105b9914 | [
"Apache-2.0"
] | 2 | 2016-07-28T20:55:46.000Z | 2016-08-02T13:59:28.000Z | contrib/memcache_whisper.py | TimWhalen/graphite-web | e150af45e01d01141a8767ec0597e218105b9914 | [
"Apache-2.0"
] | 1 | 2020-03-05T06:50:02.000Z | 2020-03-05T06:50:02.000Z | #!/usr/bin/env python
# Copyright 2008 Orbitz WorldWide
#
# 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 ... | 40.563089 | 160 | 0.720553 | 2,509 | 21,539 | 6.114388 | 0.182144 | 0.022163 | 0.025487 | 0.017209 | 0.242162 | 0.183169 | 0.166352 | 0.149273 | 0.120657 | 0.107425 | 0 | 0.004745 | 0.168299 | 21,539 | 530 | 161 | 40.639623 | 0.851624 | 0.282697 | 0 | 0.350923 | 0 | 0 | 0.084923 | 0 | 0 | 0 | 0 | 0.001887 | 0.021108 | 1 | 0.060686 | false | 0 | 0.013193 | 0.005277 | 0.108179 | 0.002639 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d15ebcd4b1cb7692dfb4253406f6c027f0525d0 | 17,824 | py | Python | venv/lib/python3.7/site-packages/Xlib/ext/xinput.py | umr-bot/sliding-puzzle-solver-bot | 826532a426f343bcc66034b241a42b3bd864e07c | [
"MIT"
] | null | null | null | venv/lib/python3.7/site-packages/Xlib/ext/xinput.py | umr-bot/sliding-puzzle-solver-bot | 826532a426f343bcc66034b241a42b3bd864e07c | [
"MIT"
] | null | null | null | venv/lib/python3.7/site-packages/Xlib/ext/xinput.py | umr-bot/sliding-puzzle-solver-bot | 826532a426f343bcc66034b241a42b3bd864e07c | [
"MIT"
] | null | null | null | # Xlib.ext.xinput -- XInput extension module
#
# Copyright (C) 2012 Outpost Embedded, LLC
# Forest Bond <forest.bond@rapidrollout.com>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public License
# as published by the Free Software... | 27.212214 | 96 | 0.601212 | 1,985 | 17,824 | 5.265491 | 0.226196 | 0.026024 | 0.018178 | 0.011481 | 0.381936 | 0.345388 | 0.298603 | 0.278129 | 0.248374 | 0.22656 | 0 | 0.033212 | 0.276986 | 17,824 | 654 | 97 | 27.253823 | 0.777838 | 0.090103 | 0 | 0.363289 | 0 | 0 | 0.085054 | 0.001355 | 0 | 0 | 0.000645 | 0 | 0.003824 | 1 | 0.047801 | false | 0.01912 | 0.011472 | 0.028681 | 0.151052 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d1b794c29c7e14b547cb2e45a43996ab2eb188a | 60,985 | py | Python | tests/api/test_attributes.py | DowneyTung/saleor | 50f299d8e276b594753ee439d9e1a212f85a91b1 | [
"CC-BY-4.0"
] | 19 | 2019-12-03T17:28:07.000Z | 2021-09-10T21:30:52.000Z | tests/api/test_attributes.py | DowneyTung/saleor | 50f299d8e276b594753ee439d9e1a212f85a91b1 | [
"CC-BY-4.0"
] | 51 | 2019-12-06T08:06:07.000Z | 2021-05-06T02:10:50.000Z | tests/api/test_attributes.py | DowneyTung/saleor | 50f299d8e276b594753ee439d9e1a212f85a91b1 | [
"CC-BY-4.0"
] | 20 | 2020-02-03T00:38:59.000Z | 2022-01-03T13:07:52.000Z | from typing import Union
from unittest import mock
import graphene
import pytest
from django.core.exceptions import ValidationError
from django.db.models import Q
from django.template.defaultfilters import slugify
from graphene.utils.str_converters import to_camel_case
from saleor.core.taxes import zero_money
from sa... | 31.598446 | 88 | 0.649504 | 6,532 | 60,985 | 5.785364 | 0.066748 | 0.025959 | 0.026674 | 0.025933 | 0.611802 | 0.541492 | 0.487722 | 0.455306 | 0.416433 | 0.392379 | 0 | 0.004877 | 0.24347 | 60,985 | 1,929 | 89 | 31.614826 | 0.814206 | 0.063967 | 0 | 0.469185 | 0 | 0 | 0.245785 | 0.017626 | 0 | 0 | 0 | 0 | 0.102054 | 1 | 0.033797 | false | 0 | 0.012591 | 0 | 0.046388 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d1c26b574f8d1aa48c37371f029724022116688 | 3,557 | py | Python | 3-photos/1-chromakey/app.py | rafacm/aws-serverless-workshop-innovator-island | 3f982ef6f70d28dfdc4e1d19103c181609b06b08 | [
"MIT-0"
] | 1 | 2020-11-26T16:12:16.000Z | 2020-11-26T16:12:16.000Z | 3-photos/1-chromakey/app.py | rafacm/aws-serverless-workshop-innovator-island | 3f982ef6f70d28dfdc4e1d19103c181609b06b08 | [
"MIT-0"
] | null | null | null | 3-photos/1-chromakey/app.py | rafacm/aws-serverless-workshop-innovator-island | 3f982ef6f70d28dfdc4e1d19103c181609b06b08 | [
"MIT-0"
] | 1 | 2020-11-26T16:12:21.000Z | 2020-11-26T16:12:21.000Z | import os
import json
import cv2
import logging
import boto3
import botocore
s3 = boto3.client('s3')
logger = logging.getLogger()
logger.setLevel(logging.INFO)
def upload_file(file_name, bucket, object_name=None):
"""Upload a file to an S3 bucket
:param file_name: File to upload
:param bucket: Bucket to ... | 30.663793 | 86 | 0.671633 | 502 | 3,557 | 4.571713 | 0.294821 | 0.043573 | 0.04183 | 0.031373 | 0.16732 | 0.088889 | 0.063617 | 0 | 0 | 0 | 0 | 0.022785 | 0.22266 | 3,557 | 115 | 87 | 30.930435 | 0.807233 | 0.22041 | 0 | 0.032258 | 0 | 0 | 0.12908 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048387 | false | 0 | 0.096774 | 0 | 0.225806 | 0.112903 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d1d2183e311c349b4e6a54b6abedc9e76fcc8d1 | 323 | py | Python | metrics/overflow.py | DEKHTIARJonathan/pyinstrument | cc4f3f6fc1b493d7cd058ecf41ad012e0030a512 | [
"BSD-3-Clause"
] | 1 | 2021-04-10T15:07:51.000Z | 2021-04-10T15:07:51.000Z | metrics/overflow.py | DEKHTIARJonathan/pyinstrument | cc4f3f6fc1b493d7cd058ecf41ad012e0030a512 | [
"BSD-3-Clause"
] | 1 | 2022-02-28T02:48:43.000Z | 2022-02-28T02:48:43.000Z | metrics/overflow.py | DEKHTIARJonathan/pyinstrument | cc4f3f6fc1b493d7cd058ecf41ad012e0030a512 | [
"BSD-3-Clause"
] | 1 | 2018-09-24T15:32:13.000Z | 2018-09-24T15:32:13.000Z | from pyinstrument import Profiler
p = Profiler(use_signal=False)
p.start()
def func(num):
if num == 0:
return
b = 0
for x in range(1,100000):
b += x
return func(num - 1)
func(900)
p.stop()
print(p.output_text())
with open('overflow_out.html', 'w') as f:
f.write(p.output_html(... | 13.458333 | 41 | 0.597523 | 53 | 323 | 3.566038 | 0.679245 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053942 | 0.25387 | 323 | 23 | 42 | 14.043478 | 0.73029 | 0 | 0 | 0 | 0 | 0 | 0.055728 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.266667 | 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 |
5d1d2acfb826681789b607d0aa918460c8853f38 | 12,995 | py | Python | scripts/gen_tee_bin.py | wawang621/optee_os | bf7298044beca7a4501ece95c6146b5987cecaa4 | [
"BSD-2-Clause"
] | null | null | null | scripts/gen_tee_bin.py | wawang621/optee_os | bf7298044beca7a4501ece95c6146b5987cecaa4 | [
"BSD-2-Clause"
] | null | null | null | scripts/gen_tee_bin.py | wawang621/optee_os | bf7298044beca7a4501ece95c6146b5987cecaa4 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python3
# SPDX-License-Identifier: BSD-2-Clause
#
# Copyright (c) 2019, Linaro Limited
#
from __future__ import print_function
from __future__ import division
import argparse
import sys
import struct
import re
import hashlib
try:
from elftools.elf.elffile import ELFFile
from elftools.elf.consta... | 33.066158 | 79 | 0.604309 | 1,660 | 12,995 | 4.408434 | 0.163855 | 0.042088 | 0.026237 | 0.020087 | 0.419923 | 0.319076 | 0.248975 | 0.221372 | 0.176004 | 0.176004 | 0 | 0.013428 | 0.260716 | 12,995 | 392 | 80 | 33.15051 | 0.748309 | 0.121431 | 0 | 0.233333 | 0 | 0 | 0.106433 | 0.008086 | 0 | 0 | 0.004394 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.051852 | 0 | 0.177778 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d1d311ba4f1a92388fbc36107c0bf393d5b97bc | 1,864 | py | Python | CircuitPython_JEplayer_mp3/repeat.py | gamblor21/Adafruit_Learning_System_Guides | f5dab4a758bc82d0bfc3c299683fe89dc093912a | [
"MIT"
] | 665 | 2017-09-27T21:20:14.000Z | 2022-03-31T09:09:25.000Z | CircuitPython_JEplayer_mp3/repeat.py | gamblor21/Adafruit_Learning_System_Guides | f5dab4a758bc82d0bfc3c299683fe89dc093912a | [
"MIT"
] | 641 | 2017-10-03T19:46:37.000Z | 2022-03-30T18:28:46.000Z | CircuitPython_JEplayer_mp3/repeat.py | gamblor21/Adafruit_Learning_System_Guides | f5dab4a758bc82d0bfc3c299683fe89dc093912a | [
"MIT"
] | 734 | 2017-10-02T22:47:38.000Z | 2022-03-30T14:03:51.000Z | # The MIT License (MIT)
#
# Copyright (c) 2020 Jeff Epler for Adafruit Industries LLC
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the r... | 38.833333 | 79 | 0.694742 | 272 | 1,864 | 4.735294 | 0.525735 | 0.068323 | 0.020186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007037 | 0.237661 | 1,864 | 47 | 80 | 39.659574 | 0.899367 | 0.70118 | 0 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.058824 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d1d5be9e9e0382909fb3777ed89becc272c0e93 | 767 | py | Python | Kapitel_1/_1_public_private.py | Geralonx/Classes_Tutorial | 9499db8159efce1e3c38975b66a9c649631c6727 | [
"MIT"
] | 1 | 2020-12-24T15:42:54.000Z | 2020-12-24T15:42:54.000Z | Kapitel_1/_1_public_private.py | Geralonx/Classes_Tutorial | 9499db8159efce1e3c38975b66a9c649631c6727 | [
"MIT"
] | null | null | null | Kapitel_1/_1_public_private.py | Geralonx/Classes_Tutorial | 9499db8159efce1e3c38975b66a9c649631c6727 | [
"MIT"
] | null | null | null | # --- Klassendeklaration mit Konstruktor --- #
class PC:
def __init__(self, cpu, gpu, ram):
self.cpu = cpu
self.gpu = gpu
self.__ram = ram
# --- Instanziierung einer Klasse ---#
# --- Ich bevorzuge die Initialisierung mit den Keywords --- #
pc_instanz = PC(cpu='Ryzen 7', gpu='RTX2070Super'... | 29.5 | 89 | 0.684485 | 95 | 767 | 5.242105 | 0.526316 | 0.108434 | 0.140562 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007924 | 0.177314 | 767 | 25 | 90 | 30.68 | 0.7813 | 0.588005 | 0 | 0 | 0 | 0 | 0.083893 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.2 | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d1d8a76e626c2ee6f2e02dabc04e268863c54e7 | 723 | py | Python | algorithm/dynamic_programming/coin_change/solution.py | delaanthonio/hackerrank | b1f2e1e93b3260be90eb3b8cb8e86e9a700acf27 | [
"MIT"
] | 1 | 2017-07-02T01:35:39.000Z | 2017-07-02T01:35:39.000Z | algorithm/dynamic_programming/coin_change/solution.py | delaanthonio/hackerrank | b1f2e1e93b3260be90eb3b8cb8e86e9a700acf27 | [
"MIT"
] | null | null | null | algorithm/dynamic_programming/coin_change/solution.py | delaanthonio/hackerrank | b1f2e1e93b3260be90eb3b8cb8e86e9a700acf27 | [
"MIT"
] | 1 | 2018-04-03T15:11:56.000Z | 2018-04-03T15:11:56.000Z | #!/usr/bin/env python3
"""
The Coin Change Problem
:author: Dela Anthonio
:hackerrank: https://hackerrank.com/delaanthonio
:problem: https://www.hackerrank.com/challenges/coin-change/problem
"""
from typing import List
def count_ways(amount: int, coins: List[int]) -> int:
"""Return the number of ways we can cou... | 24.1 | 85 | 0.625173 | 105 | 723 | 4.209524 | 0.495238 | 0.045249 | 0.076923 | 0.036199 | 0.113122 | 0.113122 | 0.113122 | 0.113122 | 0 | 0 | 0 | 0.008696 | 0.204703 | 723 | 29 | 86 | 24.931034 | 0.76 | 0.362379 | 0 | 0 | 0 | 0 | 0.017857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.076923 | 0 | 0.307692 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d1e73e0421ce77dfe2003f2cfbf66fd1ffd338e | 1,264 | py | Python | setup.py | TheMagicNacho/artemis-nozzle | 5c02672feb7b437a4ff0ccc45394de3010bcd5ab | [
"BSD-2-Clause"
] | null | null | null | setup.py | TheMagicNacho/artemis-nozzle | 5c02672feb7b437a4ff0ccc45394de3010bcd5ab | [
"BSD-2-Clause"
] | null | null | null | setup.py | TheMagicNacho/artemis-nozzle | 5c02672feb7b437a4ff0ccc45394de3010bcd5ab | [
"BSD-2-Clause"
] | null | null | null | # coding: utf-8
from runpy import run_path
from setuptools import setup
# Get the version from the relevant file
d = run_path('skaero/version.py')
__version__ = d['__version__']
setup(
name="scikit-aero",
version=__version__,
description="Aeronautical engineering calculations in Python.",
author="Juan... | 30.829268 | 70 | 0.625791 | 123 | 1,264 | 6.300813 | 0.650407 | 0.073548 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009269 | 0.231804 | 1,264 | 40 | 71 | 31.6 | 0.788877 | 0.041139 | 0 | 0.083333 | 0 | 0 | 0.54177 | 0.036394 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.055556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d1e977ff682cc24e27dda8c4298d920050e0d35 | 1,226 | py | Python | appendix/AI.by.Search/backtracking.search/3-1.eight.queens.py | royqh1979/programming_with_python | 7e1e8f88381151b803b6ae6ebda9809d9cc6664a | [
"MIT"
] | 5 | 2019-03-06T12:28:47.000Z | 2022-01-06T14:06:02.000Z | appendix/AI.by.Search/backtracking.search/3-1.eight.queens.py | royqh1979/programming_with_python | 7e1e8f88381151b803b6ae6ebda9809d9cc6664a | [
"MIT"
] | 6 | 2021-02-02T22:40:49.000Z | 2022-03-12T00:27:54.000Z | appendix/AI.by.Search/backtracking.search/3-1.eight.queens.py | royqh1979/programming_with_python | 7e1e8f88381151b803b6ae6ebda9809d9cc6664a | [
"MIT"
] | 4 | 2019-03-06T14:29:25.000Z | 2020-06-02T15:16:40.000Z | """
8皇后问题
使用栈实现回溯法
"""
def print_board(n,count):
print(f"------解.{count}------")
print(" ",end="")
for j in range(n):
print(f"{j:<2}" ,end="")
print()
for i in range(1,n+1):
print(f"{i:<2}",end="")
for j in range(1,n+1):
if queens[i] == j:
print("Q ",end="")
else:
print(" ",end="")
print... | 15.518987 | 67 | 0.58646 | 241 | 1,226 | 2.892116 | 0.232365 | 0.028694 | 0.050215 | 0.047346 | 0.261119 | 0.126255 | 0.04878 | 0 | 0 | 0 | 0 | 0.040486 | 0.194127 | 1,226 | 78 | 68 | 15.717949 | 0.66498 | 0.084013 | 0 | 0.155172 | 0 | 0 | 0.052299 | 0.018936 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0 | 0 | 0.172414 | 0.189655 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d1ef3d88231b985a99b51b59e99bc1d40f0567f | 24,820 | py | Python | multimodal_affinities/evaluation/analysis/plots_producer.py | amzn/multimodal-affinities | 23045eb6a9387ce0c9c6f5a15227cf1cc4282626 | [
"CC-BY-4.0"
] | 6 | 2021-07-06T12:48:18.000Z | 2021-12-06T01:52:24.000Z | multimodal_affinities/evaluation/analysis/plots_producer.py | amzn/multimodal-affinities | 23045eb6a9387ce0c9c6f5a15227cf1cc4282626 | [
"CC-BY-4.0"
] | null | null | null | multimodal_affinities/evaluation/analysis/plots_producer.py | amzn/multimodal-affinities | 23045eb6a9387ce0c9c6f5a15227cf1cc4282626 | [
"CC-BY-4.0"
] | 5 | 2021-07-10T08:09:17.000Z | 2022-03-24T16:27:15.000Z | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: CC-BY-4.0
import os
import cv2
from collections import namedtuple
import imageio
from PIL import Image
from random import randrange
import numpy as np
from sklearn.decomposition import PCA
from scipy.spatial.distance import... | 50.040323 | 148 | 0.621112 | 3,028 | 24,820 | 4.824967 | 0.136724 | 0.017796 | 0.00924 | 0.008624 | 0.48768 | 0.439288 | 0.418823 | 0.380972 | 0.359754 | 0.335387 | 0 | 0.010493 | 0.293473 | 24,820 | 495 | 149 | 50.141414 | 0.822651 | 0.11801 | 0 | 0.406077 | 0 | 0 | 0.027857 | 0.005953 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038674 | false | 0 | 0.049724 | 0 | 0.116022 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d208ff94339d61c9f91237707d44d87ad7cd192 | 6,294 | py | Python | openstates/openstates-master/openstates/de/legislators.py | Jgorsick/Advocacy_Angular | 8906af3ba729b2303880f319d52bce0d6595764c | [
"CC-BY-4.0"
] | null | null | null | openstates/openstates-master/openstates/de/legislators.py | Jgorsick/Advocacy_Angular | 8906af3ba729b2303880f319d52bce0d6595764c | [
"CC-BY-4.0"
] | null | null | null | openstates/openstates-master/openstates/de/legislators.py | Jgorsick/Advocacy_Angular | 8906af3ba729b2303880f319d52bce0d6595764c | [
"CC-BY-4.0"
] | null | null | null | import re
import lxml.html
from openstates.utils import LXMLMixin
from billy.scrape.legislators import LegislatorScraper, Legislator
class DELegislatorScraper(LegislatorScraper,LXMLMixin):
jurisdiction = 'de'
def scrape(self, chamber, term):
url = {
'upper': 'http://legis.delaware.gov/l... | 35.359551 | 82 | 0.522402 | 719 | 6,294 | 4.458971 | 0.258693 | 0.03088 | 0.015908 | 0.018715 | 0.125078 | 0.102308 | 0.049906 | 0.049906 | 0.026201 | 0.026201 | 0 | 0.005167 | 0.354306 | 6,294 | 177 | 83 | 35.559322 | 0.783711 | 0.058151 | 0 | 0.142857 | 0 | 0 | 0.127113 | 0.019777 | 0 | 0 | 0 | 0 | 0.022556 | 1 | 0.037594 | false | 0.007519 | 0.030075 | 0 | 0.135338 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d21c5c96591c41db957d015a344d7b68da97b7a | 4,396 | py | Python | dabing/DABING-MIB.py | SvajkaJ/dabing | 8ddd8c1056b182b52f76028e23cd2ba8418a0dec | [
"MIT"
] | null | null | null | dabing/DABING-MIB.py | SvajkaJ/dabing | 8ddd8c1056b182b52f76028e23cd2ba8418a0dec | [
"MIT"
] | null | null | null | dabing/DABING-MIB.py | SvajkaJ/dabing | 8ddd8c1056b182b52f76028e23cd2ba8418a0dec | [
"MIT"
] | null | null | null | #
# PySNMP MIB module DABING-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file://..\DABING-MIB.mib
# Produced by pysmi-0.3.4 at Tue Mar 22 12:53:47 2022
# On host ? platform ? version ? by user ?
# Using Python version 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 22:45:29) [MSC v.1916 32 bit (Intel)]
#
OctetString, Objec... | 93.531915 | 523 | 0.75364 | 511 | 4,396 | 6.479452 | 0.258317 | 0.012685 | 0.016309 | 0.021746 | 0.430384 | 0.295681 | 0.295681 | 0.228934 | 0.203564 | 0.125642 | 0 | 0.0856 | 0.08849 | 4,396 | 46 | 524 | 95.565217 | 0.740704 | 0.065287 | 0 | 0 | 0 | 0 | 0.174348 | 0.010729 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d228bf6a4bad705b90b99a4ee75f695228944a7 | 956 | py | Python | parameter_setup/run_setup_extra_vis.py | kharris/allen-voxel-network | 3c39cf7e7400c09f78ebe9d1d9f8a6d7b9ef6d7b | [
"BSD-2-Clause"
] | 7 | 2018-04-02T01:30:31.000Z | 2020-02-23T03:31:57.000Z | parameter_setup/run_setup_extra_vis.py | yijizhao/allen-voxel-network | 3c39cf7e7400c09f78ebe9d1d9f8a6d7b9ef6d7b | [
"BSD-2-Clause"
] | null | null | null | parameter_setup/run_setup_extra_vis.py | yijizhao/allen-voxel-network | 3c39cf7e7400c09f78ebe9d1d9f8a6d7b9ef6d7b | [
"BSD-2-Clause"
] | 2 | 2016-11-10T03:27:29.000Z | 2018-08-06T17:32:05.000Z | import os
import numpy as np
save_stem='extra_vis_friday_harbor'
data_dir='../../data/sdk_new_100'
resolution=100
cre=False
source_acronyms=['VISal','VISam','VISl','VISp','VISpl','VISpm',
'VISli','VISpor','VISrl','VISa']
lambda_list = np.logspace(3,12,10)
scale_lambda=True
min_vox=0
# save_file_name='... | 26.555556 | 77 | 0.789749 | 154 | 956 | 4.564935 | 0.61039 | 0.034139 | 0.042674 | 0.039829 | 0.082504 | 0.082504 | 0.082504 | 0 | 0 | 0 | 0 | 0.029345 | 0.073222 | 956 | 35 | 78 | 27.314286 | 0.764108 | 0.074268 | 0 | 0 | 0 | 0 | 0.257662 | 0.166856 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.064516 | 0 | 0.064516 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d246013ebe48dbfeb0d5a33d4837a599aed75ec | 396 | py | Python | examples/runall.py | GNiklas/MOSSEPy | fbae1294beefe48f321bc5dbbc70e6c72d3ffe1f | [
"MIT"
] | null | null | null | examples/runall.py | GNiklas/MOSSEPy | fbae1294beefe48f321bc5dbbc70e6c72d3ffe1f | [
"MIT"
] | null | null | null | examples/runall.py | GNiklas/MOSSEPy | fbae1294beefe48f321bc5dbbc70e6c72d3ffe1f | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Nov 20 09:42:39 2020
@author: niklas
"""
from mossepy.mosse_tracker import MOSSE
# choose position of object in first frame
# that should be done by mouse click
objPos = [256, 256]
# choose tracker type
tracker = MOSSE()
# initialize object position ... | 19.8 | 43 | 0.729798 | 59 | 396 | 4.881356 | 0.762712 | 0.048611 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060241 | 0.161616 | 396 | 20 | 44 | 19.8 | 0.807229 | 0.628788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d25df408d94ab31e94a89b3213ae144d0477893 | 5,761 | py | Python | manim/mobject/svg/style_utils.py | 5Points7Edges/manim | 1c2a5099133dbf0abdd5517b2ac93cfc8275b842 | [
"MIT"
] | null | null | null | manim/mobject/svg/style_utils.py | 5Points7Edges/manim | 1c2a5099133dbf0abdd5517b2ac93cfc8275b842 | [
"MIT"
] | null | null | null | manim/mobject/svg/style_utils.py | 5Points7Edges/manim | 1c2a5099133dbf0abdd5517b2ac93cfc8275b842 | [
"MIT"
] | null | null | null | """Utility functions for parsing SVG styles."""
__all__ = ["cascade_element_style", "parse_style", "parse_color_string"]
from xml.dom.minidom import Element as MinidomElement
from colour import web2hex
from ...utils.color import rgb_to_hex
from typing import Dict, List
CASCADING_STYLING_ATTRIBUTES: List[str] = [
... | 31.140541 | 119 | 0.635306 | 745 | 5,761 | 4.781208 | 0.303356 | 0.038181 | 0.022459 | 0.020213 | 0.112296 | 0.06064 | 0 | 0 | 0 | 0 | 0 | 0.00543 | 0.264711 | 5,761 | 184 | 120 | 31.309783 | 0.835458 | 0.453741 | 0 | 0.08 | 0 | 0 | 0.116438 | 0.007192 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053333 | false | 0.013333 | 0.053333 | 0 | 0.146667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d2760eb1387adc84de54a02742f29d1beeb4ef2 | 1,361 | py | Python | iotrigger.py | mm011106/iotrigger | 643ced0440a8c4fb95ade56399f813c88ac8ddd6 | [
"Apache-2.0"
] | null | null | null | iotrigger.py | mm011106/iotrigger | 643ced0440a8c4fb95ade56399f813c88ac8ddd6 | [
"Apache-2.0"
] | 1 | 2017-01-08T14:22:32.000Z | 2019-01-08T23:51:53.000Z | iotrigger.py | mm011106/iotrigger | 643ced0440a8c4fb95ade56399f813c88ac8ddd6 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#coding:utf-8
import os
import RPi.GPIO as GPIO #
import json
from time import sleep #
from twython import Twython
f=open("tw_config.json",'r')
config=json.load(f)
f.close()
CONSUMER_KEY =config['consumer_key']
CONSUMER_SECRET =config['consumer_secret']
ACCESS_TOKEN =config['access_token']
ACCE... | 21.951613 | 93 | 0.714916 | 196 | 1,361 | 4.785714 | 0.520408 | 0.051173 | 0.040512 | 0.053305 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013817 | 0.149155 | 1,361 | 61 | 94 | 22.311475 | 0.7962 | 0.045555 | 0 | 0 | 0 | 0 | 0.117738 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0.026316 | 0.131579 | 0 | 0.157895 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d2a93367402f8cedeb2edebdd44e28110111fbf | 4,209 | py | Python | save_tweets.py | iglesiasmanu/data_analysis | 61127c91ad0eb11ecdc7258e186e430e9dddb0b6 | [
"BSD-3-Clause"
] | null | null | null | save_tweets.py | iglesiasmanu/data_analysis | 61127c91ad0eb11ecdc7258e186e430e9dddb0b6 | [
"BSD-3-Clause"
] | null | null | null | save_tweets.py | iglesiasmanu/data_analysis | 61127c91ad0eb11ecdc7258e186e430e9dddb0b6 | [
"BSD-3-Clause"
] | null | null | null | import json
from os import path
from tweepy import OAuthHandler, Stream
from tweepy.streaming import StreamListener
from sqlalchemy.orm.exc import NoResultFound
from database import session, Tweet, Hashtag, User
consumer_key = "0qFf4T2xPWVIycLmAwk3rDQ55"
consumer_secret = "LcHpujASn4fIIrQ8sikbCTQ3oyU6T6opchFVWBBqwI... | 32.882813 | 80 | 0.623188 | 482 | 4,209 | 5.165975 | 0.290456 | 0.019679 | 0.025301 | 0.021687 | 0.049398 | 0.015261 | 0 | 0 | 0 | 0 | 0 | 0.015077 | 0.275125 | 4,209 | 127 | 81 | 33.141732 | 0.801049 | 0.029936 | 0 | 0.030612 | 0 | 0 | 0.130211 | 0.057626 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081633 | false | 0 | 0.061224 | 0 | 0.193878 | 0.010204 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d2b1bb602059e1df9b567f6022d9d62a73d9127 | 907 | py | Python | app/views/main.py | chrisjws-harness/flaskSaaS | f42558c523de23f03a098044df164ead3539a4dd | [
"MIT"
] | null | null | null | app/views/main.py | chrisjws-harness/flaskSaaS | f42558c523de23f03a098044df164ead3539a4dd | [
"MIT"
] | null | null | null | app/views/main.py | chrisjws-harness/flaskSaaS | f42558c523de23f03a098044df164ead3539a4dd | [
"MIT"
] | null | null | null | from flask import render_template, jsonify
from app import app
import random
@app.route('/')
@app.route('/index')
def index():
# Feature flags init goes here!
#
# noinspection PyDictCreation
flags = {
"welcome_text": "welcome to my python FF tutorial!"
}
# Flag goes here!
#... | 19.717391 | 59 | 0.61301 | 107 | 907 | 5.121495 | 0.476636 | 0.072993 | 0.109489 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051948 | 0.235943 | 907 | 45 | 60 | 20.155556 | 0.738817 | 0.080485 | 0 | 0 | 0 | 0 | 0.181159 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.111111 | 0.074074 | 0.407407 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d2e7fe7c422e728c2698140a25e0895a9bb3030 | 254 | py | Python | base_sample/numpy_mat.py | keepangry/ai_algorithm | 21d8024296a2f2d2797448ed34eb383359259684 | [
"Apache-2.0"
] | 2 | 2018-08-29T11:09:36.000Z | 2018-10-22T11:46:36.000Z | base_sample/numpy_mat.py | keepangry/ai_algorithm | 21d8024296a2f2d2797448ed34eb383359259684 | [
"Apache-2.0"
] | null | null | null | base_sample/numpy_mat.py | keepangry/ai_algorithm | 21d8024296a2f2d2797448ed34eb383359259684 | [
"Apache-2.0"
] | null | null | null | # encoding: utf-8
'''
@author: yangsen
@license:
@contact:
@software:
@file: numpy_mat.py
@time: 18-8-25 下午9:56
@desc:
'''
import numpy as np
a = np.arange(9).reshape(3,3)
# 行
a[1]
a[[1,2]]
a[np.array([1,2])]
# 列
a[:,1]
a[:,[1,2]]
a[:,np.array([1,2])] | 11.043478 | 29 | 0.574803 | 52 | 254 | 2.788462 | 0.596154 | 0.055172 | 0.041379 | 0.055172 | 0.206897 | 0.206897 | 0.206897 | 0.206897 | 0.206897 | 0.206897 | 0 | 0.100457 | 0.137795 | 254 | 23 | 30 | 11.043478 | 0.561644 | 0.46063 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d2ea06d1190699ab0cefe6b4179c68d747feca4 | 17,002 | py | Python | ai_traineree/agents/rainbow.py | laszukdawid/ai-traineree | af32940eba8e11012de87b60d78f10f5a3b96c79 | [
"Apache-2.0"
] | 22 | 2020-08-21T03:03:05.000Z | 2022-02-22T10:15:36.000Z | ai_traineree/agents/rainbow.py | laszukdawid/ai-traineree | af32940eba8e11012de87b60d78f10f5a3b96c79 | [
"Apache-2.0"
] | 23 | 2021-02-13T20:35:45.000Z | 2022-02-06T20:15:37.000Z | ai_traineree/agents/rainbow.py | laszukdawid/ai-traineree | af32940eba8e11012de87b60d78f10f5a3b96c79 | [
"Apache-2.0"
] | 6 | 2020-10-11T08:36:09.000Z | 2021-11-20T18:31:03.000Z | import copy
from typing import Callable, Dict, List, Optional
import torch
import torch.nn as nn
import torch.optim as optim
from ai_traineree import DEVICE
from ai_traineree.agents import AgentBase
from ai_traineree.agents.agent_utils import soft_update
from ai_traineree.buffers import NStepBuffer, PERBuffer
from ai... | 45.218085 | 118 | 0.648688 | 2,261 | 17,002 | 4.697037 | 0.199912 | 0.016573 | 0.025612 | 0.034652 | 0.229849 | 0.161111 | 0.141055 | 0.114689 | 0.082109 | 0.05951 | 0 | 0.008118 | 0.2465 | 17,002 | 375 | 119 | 45.338667 | 0.820857 | 0.272262 | 0 | 0.048077 | 0 | 0 | 0.05104 | 0.011588 | 0 | 0 | 0 | 0.002667 | 0.057692 | 1 | 0.086538 | false | 0 | 0.081731 | 0.014423 | 0.225962 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d2fb89dd83715259f4676be3c051b02287f606c | 4,169 | py | Python | nvvm/core/nvvm.py | uchytilc/PyCu | 9ba25281611bf4dbd70d37f4eba0574f817d6928 | [
"MIT"
] | null | null | null | nvvm/core/nvvm.py | uchytilc/PyCu | 9ba25281611bf4dbd70d37f4eba0574f817d6928 | [
"MIT"
] | null | null | null | nvvm/core/nvvm.py | uchytilc/PyCu | 9ba25281611bf4dbd70d37f4eba0574f817d6928 | [
"MIT"
] | null | null | null | from pycu.nvvm import (get_libdevice, ir_version, version, add_module_to_program, compile_program,
create_program, destroy_program, get_compiled_result, get_compiled_result_size,
get_program_log, get_program_log_size, lazy_add_module_to_program, verify_program)
import os
import sys
from ctypes import c... | 28.951389 | 181 | 0.708803 | 583 | 4,169 | 4.910806 | 0.291595 | 0.027943 | 0.048201 | 0.05868 | 0.22913 | 0.21446 | 0.21446 | 0.171149 | 0.155781 | 0.155781 | 0 | 0.02282 | 0.180139 | 4,169 | 143 | 182 | 29.153846 | 0.814804 | 0.611897 | 0 | 0.036364 | 0 | 0 | 0.096672 | 0.011622 | 0 | 0 | 0 | 0 | 0 | 1 | 0.145455 | false | 0.036364 | 0.090909 | 0.054545 | 0.345455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d332a4a020a6faa75a8b1522601b2bced79121d | 2,621 | py | Python | Codes/Data Processing.py | BrickerP/Investment- | 8b57c0d157a7eaa38d693c8d42ce1bc7dc7bdde9 | [
"Apache-2.0"
] | null | null | null | Codes/Data Processing.py | BrickerP/Investment- | 8b57c0d157a7eaa38d693c8d42ce1bc7dc7bdde9 | [
"Apache-2.0"
] | null | null | null | Codes/Data Processing.py | BrickerP/Investment- | 8b57c0d157a7eaa38d693c8d42ce1bc7dc7bdde9 | [
"Apache-2.0"
] | 1 | 2022-01-07T06:25:54.000Z | 2022-01-07T06:25:54.000Z | # -*- coding: utf-8 -*-
"""
Created on Sun Nov 21 14:51:01 2021
@author: 75638
"""
import pandas as pd
import numpy as np
pd.set_option('display.max_columns', None)
pd.set_option('display.width', 10000)
def process_data(path1,path2):
'''
1.path1: file path of different factor
2.path2:file path... | 33.177215 | 97 | 0.591759 | 365 | 2,621 | 4.158904 | 0.336986 | 0.059289 | 0.034256 | 0.029644 | 0.194993 | 0.129117 | 0.129117 | 0.054018 | 0.054018 | 0.054018 | 0 | 0.054724 | 0.260969 | 2,621 | 79 | 98 | 33.177215 | 0.728962 | 0.145364 | 0 | 0.125 | 0 | 0 | 0.142655 | 0.107227 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053571 | false | 0 | 0.035714 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d33f0625c53288d64064188bcbc357613405301 | 1,448 | py | Python | tests/test_env.py | Majanao/pytorch-blender | eb5effb033094d037e7bdc2238c00806be7012ae | [
"MIT"
] | 381 | 2019-07-03T14:15:16.000Z | 2022-03-30T08:58:26.000Z | tests/test_env.py | ANABUR920/pytorch-blender | eb5effb033094d037e7bdc2238c00806be7012ae | [
"MIT"
] | 18 | 2020-01-15T17:36:08.000Z | 2021-12-31T08:37:54.000Z | tests/test_env.py | ANABUR920/pytorch-blender | eb5effb033094d037e7bdc2238c00806be7012ae | [
"MIT"
] | 34 | 2019-07-09T03:15:02.000Z | 2022-01-13T17:36:20.000Z | import pytest
from pathlib import Path
from blendtorch import btt
BLENDDIR = Path(__file__).parent/'blender'
class MyEnv(btt.env.OpenAIRemoteEnv):
def __init__(self, background=True, **kwargs):
super().__init__(version='1.0.0')
self.launch(scene=BLENDDIR/'env.blend', script=BLENDDIR /
... | 26.814815 | 81 | 0.641575 | 208 | 1,448 | 4.322115 | 0.360577 | 0.050056 | 0.057842 | 0.07564 | 0.369299 | 0.351502 | 0.320356 | 0.320356 | 0.320356 | 0.249166 | 0 | 0.026079 | 0.232044 | 1,448 | 53 | 82 | 27.320755 | 0.782374 | 0.112569 | 0 | 0.435897 | 0 | 0 | 0.037471 | 0 | 0 | 0 | 0 | 0 | 0.384615 | 1 | 0.102564 | false | 0 | 0.076923 | 0 | 0.205128 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d36081f930dd6c0a745b46f1b5a299e738d247f | 20,670 | py | Python | deepvariant/runtime_by_region_vis.py | tahashmi/deepvariant | 441c1809d3290f4a20b29a0a0bbf8ecfb929a6e3 | [
"BSD-3-Clause"
] | 4 | 2019-03-30T13:25:25.000Z | 2020-10-14T18:47:21.000Z | deepvariant/runtime_by_region_vis.py | FrogEnthusiast7/deepvariant | 84516dfacd1ed856a34507becb21848aa12e77a8 | [
"BSD-3-Clause"
] | 1 | 2021-06-18T15:04:47.000Z | 2021-06-18T15:04:47.000Z | deepvariant/runtime_by_region_vis.py | FrogEnthusiast7/deepvariant | 84516dfacd1ed856a34507becb21848aa12e77a8 | [
"BSD-3-Clause"
] | 1 | 2019-09-04T16:59:18.000Z | 2019-09-04T16:59:18.000Z | # Copyright 2020 Google LLC.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
#
#... | 34.335548 | 97 | 0.677504 | 2,943 | 20,670 | 4.633367 | 0.192321 | 0.024641 | 0.0176 | 0.010267 | 0.221326 | 0.170065 | 0.125623 | 0.086242 | 0.079642 | 0.066588 | 0 | 0.011457 | 0.206144 | 20,670 | 601 | 98 | 34.392679 | 0.81955 | 0.346589 | 0 | 0.165584 | 0 | 0.006494 | 0.267398 | 0.033882 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058442 | false | 0 | 0.022727 | 0 | 0.12987 | 0.003247 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d373f0e4790917fc2d0b3ea420a4ad7a8c76024 | 4,096 | py | Python | xeofs/pandas/_transformer.py | nicrie/xeofs | 4c0ed49b45794ce0abb641c98b82638b2faa4828 | [
"MIT"
] | 3 | 2022-02-22T07:56:09.000Z | 2022-03-30T10:47:20.000Z | xeofs/pandas/_transformer.py | nicrie/xeofs | 4c0ed49b45794ce0abb641c98b82638b2faa4828 | [
"MIT"
] | 13 | 2022-02-15T13:44:34.000Z | 2022-03-15T22:51:01.000Z | xeofs/pandas/_transformer.py | nicrie/xeofs | 4c0ed49b45794ce0abb641c98b82638b2faa4828 | [
"MIT"
] | 2 | 2022-02-17T19:02:59.000Z | 2022-02-22T07:56:15.000Z | from typing import Union, Iterable, List
import numpy as np
import pandas as pd
from ..models._transformer import _ArrayTransformer, _MultiArrayTransformer
class _DataFrameTransformer(_ArrayTransformer):
'''`_ArrayTransformer` wrapper for `pandas.DataFrame`.
'''
def __init__(self):
super().__in... | 35.310345 | 101 | 0.616211 | 517 | 4,096 | 4.736944 | 0.193424 | 0.112291 | 0.0343 | 0.0343 | 0.562679 | 0.463046 | 0.42303 | 0.42303 | 0.373622 | 0.318906 | 0 | 0.006651 | 0.265869 | 4,096 | 115 | 102 | 35.617391 | 0.807782 | 0.04126 | 0 | 0.329545 | 0 | 0 | 0.062672 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.045455 | 0.079545 | 0.420455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d38d81bebcb78fdcd3ec6d9d6e334cd582c79d5 | 1,004 | py | Python | tests/bogus_python_model.py | FossilizedContainers/fossilized-controller | 5aa14112b3728a619a37233906366c1cda2a0a77 | [
"MIT"
] | 1 | 2022-01-24T21:54:46.000Z | 2022-01-24T21:54:46.000Z | tests/bogus_python_model.py | FossilizedContainers/fossilized-controller | 5aa14112b3728a619a37233906366c1cda2a0a77 | [
"MIT"
] | null | null | null | tests/bogus_python_model.py | FossilizedContainers/fossilized-controller | 5aa14112b3728a619a37233906366c1cda2a0a77 | [
"MIT"
] | null | null | null | import os
import sys
import lipd
# import pythonAdapter, assumes in ../python-adapter/
tests_dir = os.path.dirname(os.path.realpath(__file__))
fc_dir = os.path.dirname(tests_dir)
python_adapter_dir = os.path.join(fc_dir, "python-adapter")
sys.path.append(python_adapter_dir)
import adapter
def fake_model(adapter):
... | 26.421053 | 85 | 0.739044 | 157 | 1,004 | 4.55414 | 0.382166 | 0.072727 | 0.037762 | 0.044755 | 0.058741 | 0.058741 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167331 | 1,004 | 37 | 86 | 27.135135 | 0.855263 | 0.34761 | 0 | 0 | 0 | 0 | 0.132921 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.210526 | 0 | 0.315789 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d38e4a873930da8bc4504369cb7f1bca6894323 | 13,421 | py | Python | tello_control_ui.py | banne2266/UAV-autopilot-NCTU-2021 | 1a25d4add2de9659516d045054935e3b6e04d06d | [
"MIT"
] | null | null | null | tello_control_ui.py | banne2266/UAV-autopilot-NCTU-2021 | 1a25d4add2de9659516d045054935e3b6e04d06d | [
"MIT"
] | null | null | null | tello_control_ui.py | banne2266/UAV-autopilot-NCTU-2021 | 1a25d4add2de9659516d045054935e3b6e04d06d | [
"MIT"
] | null | null | null | from PIL import Image
from PIL import ImageTk
import tkinter as tki
from tkinter import Toplevel, Scale
import threading
import datetime
import cv2
import os
import time
import platform
class TelloUI:
"""Wrapper class to enable the GUI."""
def __init__(self,tello,outputpath):
"""
Initial all t... | 37.177285 | 113 | 0.580583 | 1,628 | 13,421 | 4.699631 | 0.203931 | 0.024703 | 0.027447 | 0.026663 | 0.319305 | 0.166253 | 0.120507 | 0.102732 | 0.092798 | 0.084172 | 0 | 0.010194 | 0.312942 | 13,421 | 360 | 114 | 37.280556 | 0.819542 | 0.154534 | 0 | 0.118943 | 0 | 0 | 0.107172 | 0.002176 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15859 | false | 0 | 0.044053 | 0.061674 | 0.268722 | 0.057269 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d3b019f7105ea70804aca52b749a325dbd4f20c | 416 | py | Python | Python/ML_DL/DL/Neural-Networks-Demystified-master/partOne.py | vbsteja/code | 0c8f4dc579f5de21b6c55fe6e65c3c8eb5473687 | [
"Apache-2.0"
] | 3 | 2018-08-06T15:34:58.000Z | 2022-02-11T14:19:05.000Z | Python/ML_DL/DL/Neural-Networks-Demystified-master/partOne.py | vbsteja/code | 0c8f4dc579f5de21b6c55fe6e65c3c8eb5473687 | [
"Apache-2.0"
] | null | null | null | Python/ML_DL/DL/Neural-Networks-Demystified-master/partOne.py | vbsteja/code | 0c8f4dc579f5de21b6c55fe6e65c3c8eb5473687 | [
"Apache-2.0"
] | 3 | 2018-08-06T15:35:01.000Z | 2020-08-08T07:53:07.000Z | # Neural Networks Demystified
# Part 1: Data + Architecture
#
# Supporting code for short YouTube series on artificial neural networks.
#
# Stephen Welch
# @stephencwelch
import numpy as np
# X = (hours sleeping, hours studying), y = Score on test
X = np.array(([3,5], [5,1], [10,2]), dtype=float)
y = np.array(([75], ... | 24.470588 | 73 | 0.673077 | 68 | 416 | 4.117647 | 0.676471 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061047 | 0.173077 | 416 | 17 | 74 | 24.470588 | 0.752907 | 0.584135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d3c91e42dac2041a621585dba8f1dfdc1e88107 | 19,048 | py | Python | manubot/process/util.py | benstear/manubot | df184a5c7e5eb98894a3edb43d9772d1ac3e01ab | [
"BSD-3-Clause"
] | null | null | null | manubot/process/util.py | benstear/manubot | df184a5c7e5eb98894a3edb43d9772d1ac3e01ab | [
"BSD-3-Clause"
] | null | null | null | manubot/process/util.py | benstear/manubot | df184a5c7e5eb98894a3edb43d9772d1ac3e01ab | [
"BSD-3-Clause"
] | null | null | null | import json
import logging
import os
import pathlib
import re
import textwrap
import warnings
from typing import List, Optional
import jinja2
import pandas
import requests
import requests_cache
import yaml
from manubot.util import read_serialized_data, read_serialized_dict
from manubot.process.bibliography import loa... | 37.496063 | 118 | 0.679546 | 2,318 | 19,048 | 5.406816 | 0.195427 | 0.031118 | 0.012208 | 0.011968 | 0.129418 | 0.078034 | 0.040373 | 0.03399 | 0.028724 | 0.026171 | 0 | 0.001896 | 0.224801 | 19,048 | 507 | 119 | 37.57002 | 0.846878 | 0.249108 | 0 | 0.147147 | 0 | 0.003003 | 0.211811 | 0.028016 | 0 | 0 | 0 | 0 | 0.012012 | 1 | 0.042042 | false | 0 | 0.057057 | 0 | 0.147147 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d4008c47be6196efe901a8e83cca011533d0bf1 | 2,648 | py | Python | pytorch_ares/pytorch_ares/attack_torch/mim.py | thu-ml/realsafe | 474d549aa402b4cdd5e3629d23d035c31b60a360 | [
"MIT"
] | 107 | 2020-06-15T09:55:11.000Z | 2020-12-20T11:27:11.000Z | pytorch_ares/pytorch_ares/attack_torch/mim.py | haichen-ber/ares | 474d549aa402b4cdd5e3629d23d035c31b60a360 | [
"MIT"
] | 7 | 2020-06-14T03:00:18.000Z | 2020-12-07T07:10:10.000Z | pytorch_ares/pytorch_ares/attack_torch/mim.py | haichen-ber/ares | 474d549aa402b4cdd5e3629d23d035c31b60a360 | [
"MIT"
] | 19 | 2020-06-14T08:35:33.000Z | 2020-12-19T13:43:41.000Z | import imp
import torch
import torch.nn as nn
import numpy as np
import torch.nn.functional as F
from pytorch_ares.attack_torch.utils import loss_adv
class MIM(object):
'''Projected Gradient Descent'''
def __init__(self, net, epsilon, p, stepsize, steps, decay_factor, data_name,target, loss, device):
... | 39.522388 | 118 | 0.583837 | 324 | 2,648 | 4.691358 | 0.305556 | 0.007895 | 0.036842 | 0.011842 | 0.063158 | 0.026316 | 0 | 0 | 0 | 0 | 0 | 0.015427 | 0.314577 | 2,648 | 67 | 119 | 39.522388 | 0.822039 | 0.064955 | 0 | 0.072727 | 0 | 0 | 0.017423 | 0 | 0 | 0 | 0 | 0 | 0.018182 | 1 | 0.036364 | false | 0 | 0.109091 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d4029e498cad9d638e5fe5f4c3a65f28490da96 | 303 | py | Python | src/utils/templatetags/menubutton.py | pwelzel/bornhack-website | af794e6a2fba06e09626259c7768feb30ff394be | [
"BSD-3-Clause"
] | null | null | null | src/utils/templatetags/menubutton.py | pwelzel/bornhack-website | af794e6a2fba06e09626259c7768feb30ff394be | [
"BSD-3-Clause"
] | null | null | null | src/utils/templatetags/menubutton.py | pwelzel/bornhack-website | af794e6a2fba06e09626259c7768feb30ff394be | [
"BSD-3-Clause"
] | null | null | null | from django import template
register = template.Library()
@register.simple_tag(takes_context=True)
def menubuttonclass(context, appname):
if appname == context['request'].resolver_match.func.view_class.__module__.split(".")[0]:
return "btn-primary"
else:
return "btn-default"
| 25.25 | 93 | 0.716172 | 36 | 303 | 5.805556 | 0.805556 | 0.086124 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003906 | 0.155116 | 303 | 11 | 94 | 27.545455 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0.099338 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d424aaa1fdb6fb518af8c5169d61b82bae9ef0f | 1,928 | py | Python | ares/defense/randomization.py | KuanKuanQAQ/ares | 40dbefc18f6438e1812021fe6d6c3195f22ca295 | [
"MIT"
] | 206 | 2020-12-31T09:43:11.000Z | 2022-03-30T07:02:41.000Z | ares/defense/randomization.py | afoolboy/ares | 89610d41fdde194e4ad916d29961aaed73383692 | [
"MIT"
] | 7 | 2021-01-26T06:45:44.000Z | 2022-02-26T05:25:48.000Z | ares/defense/randomization.py | afoolboy/ares | 89610d41fdde194e4ad916d29961aaed73383692 | [
"MIT"
] | 61 | 2020-12-29T14:02:41.000Z | 2022-03-26T14:21:10.000Z | ''' The randomization defense method, which applies random . '''
import tensorflow as tf
from ares.defense.input_transformation import input_transformation
def randomize(xs, scale_min=0.875, pad_value=0.0):
''' Apply random rescaling and padding to xs.
:param xs: A batch of inputs for some classifier.
... | 43.818182 | 110 | 0.688797 | 289 | 1,928 | 4.401384 | 0.304498 | 0.050314 | 0.035377 | 0.018868 | 0.268868 | 0.240566 | 0.240566 | 0.240566 | 0.205975 | 0.205975 | 0 | 0.023196 | 0.195021 | 1,928 | 43 | 111 | 44.837209 | 0.796392 | 0.320539 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0.090909 | 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 |
5d493476e5ae3fc5c2137c7a547ce012434fae4f | 4,927 | py | Python | inflateutils/exportmesh.py | arpruss/inflatemesh | ab4abfc7794fd4cf96f41bb797e1b2a61f687a46 | [
"MIT"
] | 8 | 2017-11-30T14:03:25.000Z | 2021-03-02T03:16:01.000Z | inflateutils/exportmesh.py | arpruss/inflatemesh | ab4abfc7794fd4cf96f41bb797e1b2a61f687a46 | [
"MIT"
] | 2 | 2019-03-15T04:10:04.000Z | 2021-01-11T17:44:31.000Z | inflateutils/exportmesh.py | arpruss/inflatemesh | ab4abfc7794fd4cf96f41bb797e1b2a61f687a46 | [
"MIT"
] | 2 | 2018-04-08T10:59:39.000Z | 2021-01-28T03:37:57.000Z | from struct import pack
from .vector import *
from .formatdecimal import decimal
from numbers import Number
import os
import sys
try:
basestring
except:
basestring = str
def isColorTriangleList(polys):
return isinstance(polys[0][1][0][0], Number)
def toPolyhedra(polys):
if isColorTriangleList(po... | 33.517007 | 166 | 0.558149 | 601 | 4,927 | 4.574043 | 0.27787 | 0.003638 | 0.004365 | 0.022554 | 0.201528 | 0.120771 | 0.090215 | 0.069116 | 0.029101 | 0.029101 | 0 | 0.024005 | 0.306677 | 4,927 | 147 | 167 | 33.517007 | 0.780738 | 0.137 | 0 | 0.151786 | 0 | 0 | 0.040317 | 0 | 0.008929 | 0 | 0.00144 | 0.006803 | 0 | 1 | 0.071429 | false | 0 | 0.0625 | 0.008929 | 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 |
5d4b0bc52d1482cd0028c140868e692cfb38b3c0 | 3,982 | py | Python | Assignment1/Identification/match_module.py | arywatt/FDS_2020_2021 | 392f360b219c6ef5e2c685da1f3c8aab7415ce32 | [
"MIT"
] | null | null | null | Assignment1/Identification/match_module.py | arywatt/FDS_2020_2021 | 392f360b219c6ef5e2c685da1f3c8aab7415ce32 | [
"MIT"
] | null | null | null | Assignment1/Identification/match_module.py | arywatt/FDS_2020_2021 | 392f360b219c6ef5e2c685da1f3c8aab7415ce32 | [
"MIT"
] | 1 | 2020-10-29T08:38:42.000Z | 2020-10-29T08:38:42.000Z | import numpy as np
from PIL import Image
import matplotlib.pyplot as plt
import histogram_module
import dist_module
def rgb2gray(rgb):
r, g, b = rgb[:, :, 0], rgb[:, :, 1], rgb[:, :, 2]
gray = 0.2989 * r + 0.5870 * g + 0.1140 * b
return gray
# model_images - list of file names of model images
# query_... | 33.745763 | 101 | 0.633852 | 563 | 3,982 | 4.26643 | 0.250444 | 0.054954 | 0.035387 | 0.036636 | 0.17985 | 0.146128 | 0.11657 | 0.090758 | 0.070774 | 0.070774 | 0 | 0.013213 | 0.27775 | 3,982 | 117 | 102 | 34.034188 | 0.821975 | 0.301356 | 0 | 0.096774 | 0 | 0 | 0.008724 | 0 | 0 | 0 | 0 | 0.008547 | 0 | 1 | 0.064516 | false | 0 | 0.080645 | 0 | 0.193548 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d4c8cdbc546fb237f365ef954c77cb12a3738d8 | 1,566 | py | Python | dycco/__main__.py | rojalator/dycco | 84ace8727aef84bb3d886cdaa3d3aef1089f1935 | [
"MIT"
] | null | null | null | dycco/__main__.py | rojalator/dycco | 84ace8727aef84bb3d886cdaa3d3aef1089f1935 | [
"MIT"
] | 1 | 2022-03-22T07:35:15.000Z | 2022-03-22T09:15:44.000Z | dycco/__main__.py | rojalator/dycco | 84ace8727aef84bb3d886cdaa3d3aef1089f1935 | [
"MIT"
] | null | null | null | import argparse
import logging
import sys
from .dycco import document
def main(paths, output_dir, use_ascii:bool, escape_html:bool, single_file:bool):
try:
document(paths, output_dir, use_ascii, escape_html, single_file)
except IOError as e:
logging.error('Unable to open file: %s', e)
... | 46.058824 | 121 | 0.707535 | 219 | 1,566 | 4.872146 | 0.43379 | 0.059044 | 0.056232 | 0.093721 | 0.128397 | 0.08716 | 0 | 0 | 0 | 0 | 0 | 0.00536 | 0.166028 | 1,566 | 33 | 122 | 47.454545 | 0.811639 | 0 | 0 | 0.074074 | 0 | 0 | 0.344189 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.148148 | 0 | 0.296296 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d4c9607e3defd3816cf4fbd7853e01e09dcb111 | 14,354 | py | Python | jumpy/jumpy/ndarray.py | rghwer/testdocs | 8fafa40407411ed7a3f8216e691e42e0c7d32083 | [
"Apache-2.0"
] | 13,006 | 2015-02-13T18:35:31.000Z | 2022-03-18T12:11:44.000Z | jumpy/jumpy/ndarray.py | pxiuqin/deeplearning4j | e11ddf3c24d355b43d36431687b807c8561aaae4 | [
"Apache-2.0"
] | 5,319 | 2015-02-13T08:21:46.000Z | 2019-06-12T14:56:50.000Z | jumpy/jumpy/ndarray.py | pxiuqin/deeplearning4j | e11ddf3c24d355b43d36431687b807c8561aaae4 | [
"Apache-2.0"
] | 4,719 | 2015-02-13T22:48:55.000Z | 2022-03-22T07:25:36.000Z | ################################################################################
# Copyright (c) 2015-2018 Skymind, Inc.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License, Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0.
#
# Unless... | 27.980507 | 106 | 0.544448 | 1,713 | 14,354 | 4.42732 | 0.161705 | 0.056962 | 0.026108 | 0.019778 | 0.396493 | 0.370649 | 0.337553 | 0.320675 | 0.307489 | 0.281646 | 0 | 0.008914 | 0.335656 | 14,354 | 512 | 107 | 28.035156 | 0.786388 | 0.0565 | 0 | 0.41 | 0 | 0 | 0.045182 | 0 | 0 | 0 | 0 | 0 | 0.0075 | 1 | 0.0825 | false | 0 | 0.0125 | 0.0125 | 0.2425 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d4e94cca5bcc101399e2e8aec4db86507599854 | 4,839 | py | Python | torchaudio/datasets/libritts.py | hahaxun/audio | 87a1886ecfa83b398a2a9a09d9a94bd9dabc5cf5 | [
"BSD-2-Clause"
] | 1 | 2021-04-20T09:04:24.000Z | 2021-04-20T09:04:24.000Z | torchaudio/datasets/libritts.py | hahaxun/audio | 87a1886ecfa83b398a2a9a09d9a94bd9dabc5cf5 | [
"BSD-2-Clause"
] | null | null | null | torchaudio/datasets/libritts.py | hahaxun/audio | 87a1886ecfa83b398a2a9a09d9a94bd9dabc5cf5 | [
"BSD-2-Clause"
] | null | null | null | import os
from typing import Tuple
import torchaudio
from torch import Tensor
from torch.utils.data import Dataset
from torchaudio.datasets.utils import (
download_url,
extract_archive,
walk_files,
)
URL = "train-clean-100"
FOLDER_IN_ARCHIVE = "LibriTTS"
_CHECKSUMS = {
"http://www.openslr.org/60/dev-c... | 32.046358 | 98 | 0.619963 | 589 | 4,839 | 4.887946 | 0.229202 | 0.020841 | 0.038902 | 0.047239 | 0.207711 | 0.207711 | 0.148663 | 0.097951 | 0.06669 | 0.041681 | 0 | 0.052543 | 0.260591 | 4,839 | 150 | 99 | 32.26 | 0.752096 | 0.198388 | 0 | 0 | 0 | 0 | 0.191614 | 0.059448 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040404 | false | 0 | 0.060606 | 0.010101 | 0.171717 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d4ed462393daeadb0c9bc3293879acfa5af3ab3 | 2,164 | py | Python | Others/Source/19/19.2/barh_test.py | silence0201/Learn-Python | 662da7c0e74221cedb445ba17d5cb1cd3af41c86 | [
"MIT"
] | 1 | 2018-05-30T01:38:23.000Z | 2018-05-30T01:38:23.000Z | Others/Source/19/19.2/barh_test.py | silence0201/Learn-Python | 662da7c0e74221cedb445ba17d5cb1cd3af41c86 | [
"MIT"
] | null | null | null | Others/Source/19/19.2/barh_test.py | silence0201/Learn-Python | 662da7c0e74221cedb445ba17d5cb1cd3af41c86 | [
"MIT"
] | null | null | null | # coding: utf-8
#########################################################################
# 网站: <a href="http://www.crazyit.org">疯狂Java联盟</a> #
# author yeeku.H.lee kongyeeku@163.com #
# #
# version... | 46.042553 | 74 | 0.420055 | 221 | 2,164 | 4.004525 | 0.515837 | 0.090395 | 0.045198 | 0.047458 | 0.255367 | 0.255367 | 0.144633 | 0.090395 | 0.090395 | 0.090395 | 0 | 0.104625 | 0.390481 | 2,164 | 46 | 75 | 47.043478 | 0.566338 | 0.490296 | 0 | 0 | 0 | 0 | 0.128995 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d4ed8a99839b3110a2db17a408cf4dde65b3291 | 2,336 | py | Python | 03_docker_compose/03_c_simple_case_with_mongodb_orm/app/app.py | kendny/study_docker | edb376fb69319a78e05f60faa5dcc88d527602c4 | [
"BSD-2-Clause"
] | 2 | 2019-05-09T01:41:16.000Z | 2022-01-06T01:06:07.000Z | 03_docker_compose/03_c_simple_case_with_mongodb_orm/app/app.py | walkacross/docker_in_practice | da24da76b4fa3eabca5004abd59d7eef7a48988b | [
"BSD-2-Clause"
] | null | null | null | 03_docker_compose/03_c_simple_case_with_mongodb_orm/app/app.py | walkacross/docker_in_practice | da24da76b4fa3eabca5004abd59d7eef7a48988b | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Dec 18 20:13:57 2018
@author: allen
"""
import random, os, json, datetime, time
from flask import Flask, Response
from pymongo import MongoClient
from bson import json_util
app = Flask(__name__)
MONGO_URI = "mongodb://mongodb:27017" # "mongodb:<con... | 26.545455 | 110 | 0.630137 | 296 | 2,336 | 4.844595 | 0.435811 | 0.036262 | 0.027197 | 0.033473 | 0.114365 | 0.069735 | 0.069735 | 0.050209 | 0.050209 | 0 | 0 | 0.026913 | 0.188784 | 2,336 | 87 | 111 | 26.850575 | 0.729815 | 0.133562 | 0 | 0 | 0 | 0 | 0.169388 | 0.044898 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075472 | false | 0 | 0.132075 | 0 | 0.377358 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d4f428d1c149bf1e2a1658ede1f6e9adcddbdd2 | 1,523 | py | Python | goethe/eval/analogy_space.py | HPI-DeepLearning/wort2vek | bc91c2752a8516665d270c7a7a793ec484c970c4 | [
"MIT"
] | 4 | 2017-05-01T01:02:40.000Z | 2022-02-03T16:14:19.000Z | goethe/eval/analogy_space.py | HPI-DeepLearning/wort2vek | bc91c2752a8516665d270c7a7a793ec484c970c4 | [
"MIT"
] | 6 | 2017-04-06T22:10:09.000Z | 2017-04-06T22:10:57.000Z | goethe/eval/analogy_space.py | HPI-DeepLearning/wort2vek | bc91c2752a8516665d270c7a7a793ec484c970c4 | [
"MIT"
] | null | null | null | #! /usr/bin/Python
from gensim.models.keyedvectors import KeyedVectors
from scipy import spatial
from numpy import linalg
import argparse
import sys
vector_file = sys.argv[1]
if len(sys.argv) != 6:
print('arguments wrong!')
print(len(sys.argv))
exit()
else:
words = [sys.argv[2], sys.argv[3], sys.arg... | 27.690909 | 91 | 0.644123 | 242 | 1,523 | 4.033058 | 0.297521 | 0.102459 | 0.098361 | 0.135246 | 0.110656 | 0.053279 | 0 | 0 | 0 | 0 | 0 | 0.064491 | 0.154957 | 1,523 | 54 | 92 | 28.203704 | 0.693862 | 0.06566 | 0 | 0.04878 | 0 | 0 | 0.137729 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.121951 | 0 | 0.121951 | 0.365854 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d5195b07f67a7785033de940e7003695bbf2ec4 | 2,497 | py | Python | localgraphclustering/algorithms/eig2_nL.py | vishalbelsare/LocalGraphClustering | a6325350997932d548a876deb259c2387fc2c809 | [
"MIT"
] | 106 | 2017-09-06T04:47:02.000Z | 2022-03-30T07:43:27.000Z | localgraphclustering/algorithms/eig2_nL.py | vishalbelsare/LocalGraphClustering | a6325350997932d548a876deb259c2387fc2c809 | [
"MIT"
] | 51 | 2017-09-06T02:22:09.000Z | 2021-12-15T11:39:28.000Z | localgraphclustering/algorithms/eig2_nL.py | vishalbelsare/LocalGraphClustering | a6325350997932d548a876deb259c2387fc2c809 | [
"MIT"
] | 38 | 2017-09-04T21:45:13.000Z | 2022-01-19T09:48:25.000Z | import numpy as np
import scipy as sp
import scipy.sparse.linalg as splinalg
def eig2_nL(g, tol_eigs = 1.0e-6, normalize:bool = True, dim:int=1):
"""
DESCRIPTION
-----------
Computes the eigenvector that corresponds to the second smallest eigenvalue
of the normalized Laplacian matrix ... | 33.293333 | 87 | 0.621946 | 353 | 2,497 | 4.260623 | 0.371105 | 0.031915 | 0.031915 | 0.043883 | 0.303191 | 0.292553 | 0.267287 | 0.240691 | 0.203457 | 0.163564 | 0 | 0.015292 | 0.26672 | 2,497 | 74 | 88 | 33.743243 | 0.806117 | 0.421706 | 0 | 0.086957 | 0 | 0 | 0.003597 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.130435 | 0 | 0.304348 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d52775ef423ec088ebd9b5618d6a0b7639f157e | 2,418 | py | Python | setup.py | xames3/vdoxa | 8fa945449bb34447ded0c421214c0252ff523d4a | [
"Apache-2.0"
] | 1 | 2020-02-04T08:18:54.000Z | 2020-02-04T08:18:54.000Z | setup.py | xames3/vdoxa | 8fa945449bb34447ded0c421214c0252ff523d4a | [
"Apache-2.0"
] | null | null | null | setup.py | xames3/vdoxa | 8fa945449bb34447ded0c421214c0252ff523d4a | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 XAMES3. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | 31 | 72 | 0.715054 | 322 | 2,418 | 5.273292 | 0.562112 | 0.035336 | 0.015312 | 0.018846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007371 | 0.158395 | 2,418 | 77 | 73 | 31.402597 | 0.827027 | 0.460711 | 0 | 0.04878 | 0 | 0 | 0.269592 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02439 | false | 0 | 0.04878 | 0 | 0.097561 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d52ada1ae418220d17ef038d3cc8e85cc6253d2 | 2,938 | py | Python | little_questions/utils/log.py | HelloChatterbox/little_questions | 04bee86244b42fdaed9f8d010c2f83037ad753f6 | [
"MIT"
] | null | null | null | little_questions/utils/log.py | HelloChatterbox/little_questions | 04bee86244b42fdaed9f8d010c2f83037ad753f6 | [
"MIT"
] | null | null | null | little_questions/utils/log.py | HelloChatterbox/little_questions | 04bee86244b42fdaed9f8d010c2f83037ad753f6 | [
"MIT"
] | null | null | null | # Copyright 2017 Mycroft AI Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 28.803922 | 74 | 0.596664 | 362 | 2,938 | 4.776243 | 0.400552 | 0.057837 | 0.037594 | 0.04627 | 0.08849 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018276 | 0.273656 | 2,938 | 101 | 75 | 29.089109 | 0.79194 | 0.357386 | 0 | 0.185185 | 0 | 0 | 0.063562 | 0.012603 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.055556 | 0 | 0.407407 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d53e848dc1be11f4d81bb7ffe655fc1c2f327c3 | 1,923 | py | Python | cvstudio/view/widgets/loading_dialog/loading_dialog.py | haruiz/PytorchCvStudio | ccf79dd0cc0d61f3fd01b1b5d96f7cda7b681eef | [
"MIT"
] | 32 | 2019-10-31T03:10:52.000Z | 2020-12-23T11:50:53.000Z | cvstudio/view/widgets/loading_dialog/loading_dialog.py | haruiz/CvStudio | ccf79dd0cc0d61f3fd01b1b5d96f7cda7b681eef | [
"MIT"
] | 19 | 2019-10-31T15:06:05.000Z | 2020-06-15T02:21:55.000Z | cvstudio/view/widgets/loading_dialog/loading_dialog.py | haruiz/PytorchCvStudio | ccf79dd0cc0d61f3fd01b1b5d96f7cda7b681eef | [
"MIT"
] | 8 | 2019-10-31T03:32:50.000Z | 2020-07-17T20:47:37.000Z | import os
from PyQt5 import QtCore
from PyQt5.QtCore import QRect, QPoint
from PyQt5.QtGui import QMovie, QCloseEvent, QShowEvent
from PyQt5.QtWidgets import QDialog, QLabel, QVBoxLayout, QApplication, QWidget
class QLoadingDialog(QDialog):
def __init__(self, parent=None):
super(QLoadingDialog, self).__i... | 36.283019 | 95 | 0.637546 | 200 | 1,923 | 6.05 | 0.43 | 0.044628 | 0.018182 | 0.026446 | 0.036364 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009729 | 0.25169 | 1,923 | 52 | 96 | 36.980769 | 0.831133 | 0.034841 | 0 | 0 | 0 | 0 | 0.021047 | 0.01565 | 0 | 0 | 0 | 0 | 0 | 1 | 0.116279 | false | 0 | 0.116279 | 0 | 0.302326 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d54ea522a32fa91aca889c9606f036f2de763c3 | 3,935 | py | Python | Assets/Editor/PostprocessBuildPlayer_MpireNxusMeasurementPostBuildiOS.py | mpire-nxus/nxus_unity_sdk | 34a1ebfc588c47c1c71fae11f29e82c1172c6dc2 | [
"MIT"
] | 1 | 2018-03-13T02:44:15.000Z | 2018-03-13T02:44:15.000Z | Assets/Editor/PostprocessBuildPlayer_MpireNxusMeasurementPostBuildiOS.py | mpire-nxus/nxus_unity_sdk | 34a1ebfc588c47c1c71fae11f29e82c1172c6dc2 | [
"MIT"
] | null | null | null | Assets/Editor/PostprocessBuildPlayer_MpireNxusMeasurementPostBuildiOS.py | mpire-nxus/nxus_unity_sdk | 34a1ebfc588c47c1c71fae11f29e82c1172c6dc2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import sys
import re
from subprocess import Popen, PIPE
import argparse
from pbxproj import XcodeProject, TreeType
from pbxproj import FileOptions
def main():
parser = argparse.ArgumentParser(description="MpireNxusMeasurement post build iOS script")
parser.add_argument('ios_project_path... | 38.578431 | 164 | 0.706226 | 516 | 3,935 | 5.131783 | 0.317829 | 0.086103 | 0.096299 | 0.087236 | 0.150302 | 0.135196 | 0.064955 | 0.064955 | 0 | 0 | 0 | 0.003803 | 0.198221 | 3,935 | 101 | 165 | 38.960396 | 0.835499 | 0.179161 | 0 | 0 | 0 | 0 | 0.175592 | 0.041719 | 0 | 0 | 0 | 0 | 0 | 1 | 0.118644 | false | 0 | 0.101695 | 0 | 0.288136 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d55a06354d86f35af5fb38858161328b7581a23 | 10,786 | py | Python | hack/dev/gh-replay-events.py | sm43/pipelines-as-code | bd21e48c96ab128d533701ecd1a2df7a0d136d65 | [
"Apache-2.0"
] | null | null | null | hack/dev/gh-replay-events.py | sm43/pipelines-as-code | bd21e48c96ab128d533701ecd1a2df7a0d136d65 | [
"Apache-2.0"
] | null | null | null | hack/dev/gh-replay-events.py | sm43/pipelines-as-code | bd21e48c96ab128d533701ecd1a2df7a0d136d65 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Author: Chmouel Boudjnah <chmouel@chmouel.com>
#
# 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... | 30.555241 | 113 | 0.623215 | 1,409 | 10,786 | 4.610362 | 0.203691 | 0.039717 | 0.022167 | 0.020474 | 0.356681 | 0.29064 | 0.2246 | 0.197506 | 0.187038 | 0.175954 | 0 | 0.012112 | 0.242166 | 10,786 | 352 | 114 | 30.642045 | 0.782603 | 0.067495 | 0 | 0.300676 | 0 | 0.016892 | 0.262225 | 0.080968 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040541 | false | 0.003378 | 0.047297 | 0 | 0.128378 | 0.060811 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d58e721508a643ec9487a7f661ca1a66cd5a971 | 3,659 | py | Python | 076_Minimum_Window_Substring.py | joshlyman/Josh-LeetCode | cc9e2cc406d2cbd5a90ee579efbcaeffb842c5ed | [
"MIT"
] | null | null | null | 076_Minimum_Window_Substring.py | joshlyman/Josh-LeetCode | cc9e2cc406d2cbd5a90ee579efbcaeffb842c5ed | [
"MIT"
] | null | null | null | 076_Minimum_Window_Substring.py | joshlyman/Josh-LeetCode | cc9e2cc406d2cbd5a90ee579efbcaeffb842c5ed | [
"MIT"
] | null | null | null |
# Other solution
# V2
def minWindow(s, t):
need = collections.Counter(t) #hash table to store char frequency
missing = len(t) #total number of chars we care
start, end = 0, 0
i = 0
for j, char in enumerate(s, 1): #index j from 1
if need[char] > 0... | 36.959596 | 179 | 0.52774 | 556 | 3,659 | 3.482014 | 0.296763 | 0.011364 | 0.018595 | 0.01343 | 0.052686 | 0.015496 | 0.015496 | 0.015496 | 0 | 0 | 0 | 0.017048 | 0.390817 | 3,659 | 98 | 180 | 37.336735 | 0.848811 | 0.52446 | 0 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0 | 0 | 0.12 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d5d633b271390741583d9b310e4391f6dfe899f | 4,673 | py | Python | fs_image/rpm/storage/tests/storage_base_test.py | singhaditya28/fs_image | 3d122da48eab8b26e5add6754cc1f91296139c58 | [
"MIT"
] | null | null | null | fs_image/rpm/storage/tests/storage_base_test.py | singhaditya28/fs_image | 3d122da48eab8b26e5add6754cc1f91296139c58 | [
"MIT"
] | null | null | null | fs_image/rpm/storage/tests/storage_base_test.py | singhaditya28/fs_image | 3d122da48eab8b26e5add6754cc1f91296139c58 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import unittest
from unittest.mock import patch, MagicMock
from typing import List, Tuple
from .. import Storage # M... | 41.723214 | 79 | 0.558742 | 549 | 4,673 | 4.661202 | 0.380692 | 0.014068 | 0.033216 | 0.029699 | 0.116843 | 0.094177 | 0.068386 | 0.045721 | 0.031262 | 0 | 0 | 0.004627 | 0.35245 | 4,673 | 111 | 80 | 42.099099 | 0.841044 | 0.283544 | 0 | 0.077922 | 0 | 0 | 0.059552 | 0.006191 | 0 | 0 | 0 | 0 | 0.116883 | 1 | 0.025974 | false | 0 | 0.051948 | 0 | 0.116883 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d5e98fd28e904d5e1f509a5b35e66ec3047cc56 | 353 | py | Python | lecture11/subsets.py | nd-cse-30872-fa20/cse-30872-fa20-examples | 7a991a0499e03bf91ac8ba40c99245d5d926e20c | [
"MIT"
] | null | null | null | lecture11/subsets.py | nd-cse-30872-fa20/cse-30872-fa20-examples | 7a991a0499e03bf91ac8ba40c99245d5d926e20c | [
"MIT"
] | null | null | null | lecture11/subsets.py | nd-cse-30872-fa20/cse-30872-fa20-examples | 7a991a0499e03bf91ac8ba40c99245d5d926e20c | [
"MIT"
] | 2 | 2020-08-10T15:05:39.000Z | 2020-08-12T15:16:01.000Z | #!/usr/bin/env python3
import itertools
# Constants
NUMBERS = range(0, 10)
# Main Execution
def main():
count = 0
for length in range(0, len(NUMBERS) + 1):
for subset in itertools.combinations(NUMBERS, length):
if sum(subset) % 3 == 0:
count += 1
print(count)
if __... | 16.045455 | 62 | 0.580737 | 45 | 353 | 4.377778 | 0.6 | 0.060914 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040161 | 0.294618 | 353 | 21 | 63 | 16.809524 | 0.751004 | 0.130312 | 0 | 0 | 0 | 0 | 0.026316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.181818 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d5ec924b9a968b7509ed5badaef99e8de842bde | 21,520 | py | Python | src/toil/batchSystems/abstractBatchSystem.py | Hexotical/toil | 312b6e1f221ee7f7f187dd6dbfce1aecffd00e09 | [
"Apache-2.0"
] | 348 | 2018-07-08T03:38:28.000Z | 2022-03-11T18:57:44.000Z | src/toil/batchSystems/abstractBatchSystem.py | Hexotical/toil | 312b6e1f221ee7f7f187dd6dbfce1aecffd00e09 | [
"Apache-2.0"
] | 1,700 | 2018-07-05T18:28:49.000Z | 2022-03-31T14:09:04.000Z | src/toil/batchSystems/abstractBatchSystem.py | Hexotical/toil | 312b6e1f221ee7f7f187dd6dbfce1aecffd00e09 | [
"Apache-2.0"
] | 126 | 2018-07-11T18:59:29.000Z | 2022-01-24T03:14:02.000Z | # Copyright (C) 2015-2021 Regents of the University of California
#
# 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 app... | 42.613861 | 188 | 0.660037 | 2,646 | 21,520 | 5.345805 | 0.239229 | 0.020997 | 0.009897 | 0.02029 | 0.12796 | 0.114811 | 0.107741 | 0.096854 | 0.091481 | 0.088936 | 0 | 0.00187 | 0.279275 | 21,520 | 504 | 189 | 42.698413 | 0.910123 | 0.535781 | 0 | 0.215116 | 0 | 0 | 0.093696 | 0.018418 | 0 | 0 | 0 | 0.005952 | 0.011628 | 1 | 0.145349 | false | 0.017442 | 0.075581 | 0 | 0.372093 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d61d078db118ba78d2af9ae995c1fa84aa2f450 | 2,306 | py | Python | arfit/cp_utils.py | farr/arfit | 7ff6def331ef98f43f623da2d9867d1ac967448b | [
"MIT"
] | 5 | 2015-04-29T21:46:52.000Z | 2021-05-13T04:59:23.000Z | arfit/cp_utils.py | afcarl/arfit | 7ff6def331ef98f43f623da2d9867d1ac967448b | [
"MIT"
] | null | null | null | arfit/cp_utils.py | afcarl/arfit | 7ff6def331ef98f43f623da2d9867d1ac967448b | [
"MIT"
] | 2 | 2015-12-03T12:08:32.000Z | 2018-05-26T16:20:31.000Z | import carmcmc as cm
from gatspy.periodic import LombScargleFast
import matplotlib.pyplot as plt
import numpy as np
def csample_from_files(datafile, chainfile, p, q):
data = np.loadtxt(datafile)
times, tind = np.unique(data[:,0], return_index=True)
data = data[tind, :]
chain = np.loadtxt(chainfil... | 37.193548 | 131 | 0.691674 | 359 | 2,306 | 4.328691 | 0.320334 | 0.092021 | 0.079794 | 0.095238 | 0.310811 | 0.258687 | 0.226512 | 0.171171 | 0.132561 | 0.132561 | 0 | 0.027509 | 0.148742 | 2,306 | 61 | 132 | 37.803279 | 0.764137 | 0 | 0 | 0.05 | 0 | 0 | 0.031223 | 0 | 0 | 0 | 0 | 0 | 0.025 | 1 | 0.1 | false | 0 | 0.1 | 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 |
5d65143322eb65bf3b9638c414999e21eb0323db | 1,319 | py | Python | pdiffcopy/hashing.py | xolox/python-pdiffcopy | ed765af92c0c0823818d545e61384753912a5725 | [
"MIT"
] | 5 | 2020-03-07T00:01:24.000Z | 2020-12-03T03:44:26.000Z | pdiffcopy/hashing.py | xolox/python-pdiffcopy | ed765af92c0c0823818d545e61384753912a5725 | [
"MIT"
] | null | null | null | pdiffcopy/hashing.py | xolox/python-pdiffcopy | ed765af92c0c0823818d545e61384753912a5725 | [
"MIT"
] | null | null | null | # Fast large file synchronization inspired by rsync.
#
# Author: Peter Odding <peter@peterodding.com>
# Last Change: March 6, 2020
# URL: https://pdiffcopy.readthedocs.io
"""Parallel hashing of files using :mod:`multiprocessing` and :mod:`pdiffcopy.mp`."""
# Standard library modules.
import functools
import hashlib
i... | 31.404762 | 106 | 0.720243 | 165 | 1,319 | 5.654545 | 0.587879 | 0.057878 | 0.036442 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00553 | 0.177407 | 1,319 | 41 | 107 | 32.170732 | 0.854378 | 0.353298 | 0 | 0 | 0 | 0 | 0.032569 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.25 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d65c01cd0ad11126b7931d199f6927d742a24e8 | 2,170 | py | Python | pyscf/nao/test/test_0003_na2_nao.py | robert-anderson/pyscf | cdc56e168cb15f47e8cdc791a92d689fa9b655af | [
"Apache-2.0"
] | 3 | 2021-02-28T00:52:53.000Z | 2021-03-01T06:23:33.000Z | pyscf/nao/test/test_0003_na2_nao.py | robert-anderson/pyscf | cdc56e168cb15f47e8cdc791a92d689fa9b655af | [
"Apache-2.0"
] | 36 | 2018-08-22T19:44:03.000Z | 2020-05-09T10:02:36.000Z | pyscf/nao/test/test_0003_na2_nao.py | robert-anderson/pyscf | cdc56e168cb15f47e8cdc791a92d689fa9b655af | [
"Apache-2.0"
] | 4 | 2018-02-14T16:28:28.000Z | 2019-08-12T16:40:30.000Z | # Copyright 2014-2018 The PySCF Developers. 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 appl... | 31.449275 | 87 | 0.657604 | 273 | 2,170 | 5.120879 | 0.553114 | 0.042918 | 0.018598 | 0.02289 | 0.040057 | 0.040057 | 0.040057 | 0 | 0 | 0 | 0 | 0.050155 | 0.25576 | 2,170 | 68 | 88 | 31.911765 | 0.81548 | 0.278802 | 0 | 0.086957 | 0 | 0 | 0.410323 | 0.042581 | 0 | 0 | 0 | 0 | 0.065217 | 1 | 0.021739 | false | 0.021739 | 0.130435 | 0 | 0.195652 | 0.065217 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d66c8be8ed85e591a27c5733a7d2e134250bc39 | 9,393 | py | Python | netbox/extras/forms/filtersets.py | cybarox/netbox | ea197eff5f4fe925bb354d1375912decd81752bd | [
"Apache-2.0"
] | null | null | null | netbox/extras/forms/filtersets.py | cybarox/netbox | ea197eff5f4fe925bb354d1375912decd81752bd | [
"Apache-2.0"
] | null | null | null | netbox/extras/forms/filtersets.py | cybarox/netbox | ea197eff5f4fe925bb354d1375912decd81752bd | [
"Apache-2.0"
] | null | null | null | from django import forms
from django.contrib.auth.models import User
from django.contrib.contenttypes.models import ContentType
from django.utils.translation import gettext as _
from dcim.models import DeviceRole, DeviceType, Platform, Region, Site, SiteGroup
from extras.choices import *
from extras.models import *
fr... | 29.261682 | 117 | 0.639519 | 783 | 9,393 | 7.453384 | 0.189017 | 0.093557 | 0.077108 | 0.063057 | 0.447395 | 0.39085 | 0.347498 | 0.332077 | 0.322995 | 0.275017 | 0 | 0 | 0.251144 | 9,393 | 320 | 118 | 29.353125 | 0.829684 | 0 | 0 | 0.366667 | 0 | 0 | 0.118918 | 0.025232 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.246667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d672137217c3f190c65f38cc034a58e8ab7815b | 1,440 | py | Python | dns/rdtypes/ANY/__init__.py | Ashiq5/dnspython | 5449af5318d88bada34f661247f3bcb16f58f057 | [
"ISC"
] | null | null | null | dns/rdtypes/ANY/__init__.py | Ashiq5/dnspython | 5449af5318d88bada34f661247f3bcb16f58f057 | [
"ISC"
] | null | null | null | dns/rdtypes/ANY/__init__.py | Ashiq5/dnspython | 5449af5318d88bada34f661247f3bcb16f58f057 | [
"ISC"
] | null | null | null | # Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license
# Copyright (C) 2003-2007, 2009-2011 Nominum, Inc.
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose with or without fee is hereby granted,
# provided that the above copyright notice and ... | 22.5 | 75 | 0.620833 | 180 | 1,440 | 4.944444 | 0.705556 | 0.040449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022367 | 0.254861 | 1,440 | 63 | 76 | 22.857143 | 0.807083 | 0.605556 | 0 | 0 | 0 | 0 | 0.326642 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d67812696614c7eac2050cda2d994e16e9201d7 | 10,519 | py | Python | 01_test.py | KhubbatulinMark/DCase2020-Task-2-on-Wigner-Ville-transform | 6653d7abbaafe09fb17768d9902bb77db24945d4 | [
"MIT"
] | 3 | 2020-09-18T10:33:37.000Z | 2020-11-04T12:53:50.000Z | 01_test.py | KhubbatulinMark/DCase2020-Task-2-on-Wigner-Ville-transform | 6653d7abbaafe09fb17768d9902bb77db24945d4 | [
"MIT"
] | 4 | 2020-09-26T01:07:55.000Z | 2022-02-10T01:30:27.000Z | 01_test.py | KhubbatulinMark/DCase2020-Task-2-on-Wigner-Ville-transform | 6653d7abbaafe09fb17768d9902bb77db24945d4 | [
"MIT"
] | null | null | null | """
@file 01_test.py
@brief Script for test
@author Toshiki Nakamura, Yuki Nikaido, and Yohei Kawaguchi (Hitachi Ltd.)
Copyright (C) 2020 Hitachi, Ltd. All right reserved.
"""
########################################################################
# import default python-library
###############################... | 42.587045 | 118 | 0.456412 | 1,032 | 10,519 | 4.416667 | 0.197674 | 0.026108 | 0.019746 | 0.017552 | 0.285432 | 0.224002 | 0.212154 | 0.191751 | 0.148749 | 0.097411 | 0 | 0.004042 | 0.341477 | 10,519 | 246 | 119 | 42.760163 | 0.653963 | 0.166746 | 0 | 0.2 | 0 | 0 | 0.127278 | 0.046739 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023077 | false | 0 | 0.084615 | 0 | 0.123077 | 0.061538 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d68067044bd41e0c94f3b4e115e6a6243c834c1 | 1,247 | py | Python | src/text_split/split.py | i1123581321/word_split | 6401cdc37f58aa8718793dd7cb9bf4d3a4b690a4 | [
"MIT"
] | null | null | null | src/text_split/split.py | i1123581321/word_split | 6401cdc37f58aa8718793dd7cb9bf4d3a4b690a4 | [
"MIT"
] | null | null | null | src/text_split/split.py | i1123581321/word_split | 6401cdc37f58aa8718793dd7cb9bf4d3a4b690a4 | [
"MIT"
] | null | null | null | import argparse
import os
parser = argparse.ArgumentParser(description="a simple parser")
parser.add_argument("filename", type=str)
parser.add_argument("lineno", nargs="+", type=int)
parser.add_argument("--same_length", action=argparse.BooleanOptionalAction)
def main():
args = parser.parse_args()
filename =... | 30.414634 | 77 | 0.585405 | 149 | 1,247 | 4.845638 | 0.42953 | 0.055402 | 0.070637 | 0.099723 | 0.16205 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018994 | 0.282277 | 1,247 | 40 | 78 | 31.175 | 0.78771 | 0 | 0 | 0.0625 | 0 | 0 | 0.061748 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.0625 | 0 | 0.09375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d68e4a866db0948470d395c5ba6d5ad5676d177 | 23,037 | py | Python | src/sentry/models/event.py | Ali-Tahir/sentry | aa7b306c5ea671ac002a3524982563679557cb31 | [
"BSD-3-Clause"
] | null | null | null | src/sentry/models/event.py | Ali-Tahir/sentry | aa7b306c5ea671ac002a3524982563679557cb31 | [
"BSD-3-Clause"
] | null | null | null | src/sentry/models/event.py | Ali-Tahir/sentry | aa7b306c5ea671ac002a3524982563679557cb31 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import absolute_import
import six
import string
import warnings
import pytz
from collections import OrderedDict
from dateutil.parser import parse as parse_date
from django.db import models
from django.utils import timezone
from django.utils.translation import ugettext_lazy as _
from hashlib import md5... | 33.778592 | 99 | 0.623996 | 2,869 | 23,037 | 4.874869 | 0.19519 | 0.03003 | 0.020449 | 0.010725 | 0.152224 | 0.110396 | 0.088374 | 0.075147 | 0.051266 | 0.038253 | 0 | 0.001451 | 0.282242 | 23,037 | 681 | 100 | 33.828194 | 0.844391 | 0.282545 | 0 | 0.186441 | 0 | 0 | 0.085907 | 0.002773 | 0 | 0 | 0 | 0.004405 | 0.002421 | 1 | 0.1477 | false | 0 | 0.067797 | 0.03632 | 0.46247 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d6b89b1e8e521a2e81232c6e63ef4c5529270e8 | 2,920 | py | Python | Assignment3/src/data/make_nowcast_dataset.py | shikashyam/BigDataSystemsCoursework | d7f9cabbfb18b0e3303292b65af1ffd530e24ccc | [
"MIT"
] | null | null | null | Assignment3/src/data/make_nowcast_dataset.py | shikashyam/BigDataSystemsCoursework | d7f9cabbfb18b0e3303292b65af1ffd530e24ccc | [
"MIT"
] | null | null | null | Assignment3/src/data/make_nowcast_dataset.py | shikashyam/BigDataSystemsCoursework | d7f9cabbfb18b0e3303292b65af1ffd530e24ccc | [
"MIT"
] | 4 | 2022-02-12T23:59:54.000Z | 2022-02-16T22:53:32.000Z | """
Makes training and test dataset for nowcasting model using SEVIR
"""
# -*- coding: utf-8 -*-
import argparse
import logging
import os
import h5py
os.environ["HDF5_USE_FILE_LOCKING"]='FALSE'
import sys
import numpy as np
import tensorflow as tf
from nowcast_generator import get_nowcast_test_generator
# parser = ... | 42.941176 | 117 | 0.7 | 433 | 2,920 | 4.542725 | 0.297921 | 0.030503 | 0.017794 | 0.028978 | 0.213523 | 0.155567 | 0.141332 | 0.104728 | 0.104728 | 0 | 0 | 0.018444 | 0.14589 | 2,920 | 67 | 118 | 43.58209 | 0.770249 | 0.373973 | 0 | 0.057143 | 0 | 0 | 0.10962 | 0.011745 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.228571 | 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 |
5d6e1f190b9f10fc581499ca4a914cfa2670ffb2 | 9,576 | py | Python | blender-plugin/import_cast.py | rtasan/ApexCastImporter | 17f833ab8ff9757e295ca8eadb0cb210bfdd6476 | [
"MIT"
] | null | null | null | blender-plugin/import_cast.py | rtasan/ApexCastImporter | 17f833ab8ff9757e295ca8eadb0cb210bfdd6476 | [
"MIT"
] | 3 | 2021-05-24T12:29:43.000Z | 2021-05-28T13:07:39.000Z | blender-plugin/import_cast.py | rtasan/ApexCastImporter | 17f833ab8ff9757e295ca8eadb0cb210bfdd6476 | [
"MIT"
] | null | null | null |
# The Original importer was created by Nick
# Copyright (c) 2020 Nick
import bpy
import bmesh
import os
import array
import math
from mathutils import *
from bpy_extras.image_utils import load_image
from .cast import Cast, Model, Animation, Curve, NotificationTrack, Mesh, Skeleton, Bone, Material, File
def utilityB... | 33.957447 | 130 | 0.631788 | 1,041 | 9,576 | 5.738713 | 0.290106 | 0.012052 | 0.021426 | 0.021091 | 0.152662 | 0.108637 | 0.060931 | 0.042518 | 0.042518 | 0.042518 | 0 | 0.008635 | 0.262322 | 9,576 | 281 | 131 | 34.078292 | 0.837061 | 0.064327 | 0 | 0.091837 | 0 | 0 | 0.042627 | 0 | 0 | 0 | 0.000448 | 0 | 0 | 1 | 0.045918 | false | 0.005102 | 0.091837 | 0 | 0.178571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d72ea525d5fca207b00f29574de0ed2864d8b1b | 7,229 | py | Python | cigeo/admin.py | CzechInvest/ciis | c6102598f564a717472e5e31e7eb894bba2c8104 | [
"MIT"
] | 1 | 2019-05-26T22:24:01.000Z | 2019-05-26T22:24:01.000Z | cigeo/admin.py | CzechInvest/ciis | c6102598f564a717472e5e31e7eb894bba2c8104 | [
"MIT"
] | 6 | 2019-01-22T14:53:43.000Z | 2020-09-22T16:20:28.000Z | cigeo/admin.py | CzechInvest/ciis | c6102598f564a717472e5e31e7eb894bba2c8104 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.contrib.gis import geos
from leaflet.admin import LeafletGeoAdmin, LeafletGeoAdminMixin
from .models import Lau1
from .models import Nuts3
from .models import Airport
from .models import Road
from .models import PublicTransportStop
from .models import RailwayStation
from dja... | 30.761702 | 80 | 0.580025 | 727 | 7,229 | 5.590096 | 0.240715 | 0.024606 | 0.023622 | 0.039862 | 0.218996 | 0.176673 | 0.159449 | 0.159449 | 0.159449 | 0.159449 | 0 | 0.025725 | 0.327846 | 7,229 | 234 | 81 | 30.893162 | 0.810661 | 0.080924 | 0 | 0.174699 | 0 | 0 | 0.030027 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048193 | false | 0 | 0.084337 | 0 | 0.385542 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d733960d2eb830da7ca11bb10495536367425c3 | 6,207 | py | Python | pycs/spells/hunters_mark.py | dwagon/pycs | 4d02acbf380526d3bf0380f6bb8b757a827024b8 | [
"MIT"
] | null | null | null | pycs/spells/hunters_mark.py | dwagon/pycs | 4d02acbf380526d3bf0380f6bb8b757a827024b8 | [
"MIT"
] | null | null | null | pycs/spells/hunters_mark.py | dwagon/pycs | 4d02acbf380526d3bf0380f6bb8b757a827024b8 | [
"MIT"
] | null | null | null | """https://www.dndbeyond.com/spells/hunters-mark"""
from unittest.mock import patch
import dice
from pycs.constant import ActionCategory
from pycs.constant import SpellType
from pycs.creature import Creature
from pycs.effect import Effect
from pycs.gear import Shortbow
from pycs.spell import SpellAction
from pycs.spel... | 41.10596 | 85 | 0.475914 | 584 | 6,207 | 4.943493 | 0.296233 | 0.049532 | 0.047108 | 0.043644 | 0.283339 | 0.254243 | 0.241773 | 0.226533 | 0.120887 | 0.120887 | 0 | 0.005668 | 0.204124 | 6,207 | 150 | 86 | 41.38 | 0.578745 | 0.161592 | 0 | 0.180723 | 0 | 0 | 0.078366 | 0.008396 | 0 | 0 | 0 | 0 | 0.084337 | 1 | 0.13253 | false | 0 | 0.108434 | 0 | 0.349398 | 0.060241 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5d7596fcdc1125f69dea760f3f07ca8ccf07185d | 7,509 | py | Python | src/pose/visualizations/visualizations.py | Idein/chainer-hand-pose | 45c7b629a74bf13da8cc9b47d0ded7099c139e9b | [
"Apache-2.0"
] | 11 | 2019-12-14T07:55:52.000Z | 2021-06-22T06:38:34.000Z | src/pose/visualizations/visualizations.py | terasakisatoshi/chainer-hand-pose | a47e0c61c4fea3369db566eea3d539d1c9398bf7 | [
"Apache-2.0"
] | 1 | 2020-06-17T21:39:48.000Z | 2020-06-26T13:16:43.000Z | src/pose/visualizations/visualizations.py | terasakisatoshi/chainer-hand-pose | a47e0c61c4fea3369db566eea3d539d1c9398bf7 | [
"Apache-2.0"
] | 3 | 2019-12-11T13:47:54.000Z | 2020-10-23T07:10:15.000Z | import logging
logger = logging.getLogger(__name__)
import random
import chainercv
import numpy as np
from matplotlib import pyplot as plt
from mpl_toolkits.mplot3d import Axes3D # NOQA
from pose.hand_dataset.geometry_utils import normalize_joint_zyx
from pose.hand_dataset.image_utils import normalize_depth
# Dec... | 31.953191 | 96 | 0.632574 | 1,172 | 7,509 | 3.888225 | 0.162116 | 0.02765 | 0.03138 | 0.0316 | 0.681589 | 0.666228 | 0.658986 | 0.623875 | 0.57889 | 0.57889 | 0 | 0.027383 | 0.231589 | 7,509 | 234 | 97 | 32.089744 | 0.762392 | 0.085764 | 0 | 0.622857 | 0 | 0 | 0.042756 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045714 | false | 0 | 0.057143 | 0 | 0.125714 | 0.011429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
536f43c7085300c239b6e7cb90378b2df33381ad | 1,134 | py | Python | tools/nn/speaker.py | mikiec84/speaking_detection | ed680138627c156e1f7b0af20d6517e2bea754cc | [
"MIT"
] | null | null | null | tools/nn/speaker.py | mikiec84/speaking_detection | ed680138627c156e1f7b0af20d6517e2bea754cc | [
"MIT"
] | null | null | null | tools/nn/speaker.py | mikiec84/speaking_detection | ed680138627c156e1f7b0af20d6517e2bea754cc | [
"MIT"
] | null | null | null | import os
import skimage.io
from torch.nn import Module
import torch.nn
from torchvision.models import resnet18
from nn.speaker_dataset import Dataset # @UnusedImport
os.environ['TORCH_MODEL_ZOO'] = '../data/'
VIDTIMIT_PATH = '../data/vidtimit/'
skimage.io.use_plugin('pil')
class Net(Module):
def __init__(s... | 23.625 | 74 | 0.613757 | 153 | 1,134 | 4.424837 | 0.470588 | 0.051699 | 0.050222 | 0.076809 | 0.100443 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014925 | 0.231922 | 1,134 | 47 | 75 | 24.12766 | 0.762342 | 0.078483 | 0 | 0.125 | 0 | 0 | 0.085495 | 0.026897 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.1875 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
536ff8da70c0647265f2448d9db35e0d757a366c | 1,551 | py | Python | tensorflow_model_analysis/util_test.py | mdreves/model-analysis | 73760b27b763e322a92ea80ff0a768ad9ef74526 | [
"Apache-2.0"
] | null | null | null | tensorflow_model_analysis/util_test.py | mdreves/model-analysis | 73760b27b763e322a92ea80ff0a768ad9ef74526 | [
"Apache-2.0"
] | null | null | null | tensorflow_model_analysis/util_test.py | mdreves/model-analysis | 73760b27b763e322a92ea80ff0a768ad9ef74526 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 Google LLC
#
# 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 writing, ... | 32.3125 | 74 | 0.691812 | 244 | 1,551 | 4.295082 | 0.479508 | 0.057252 | 0.015267 | 0.019084 | 0.14313 | 0.062977 | 0.022901 | 0 | 0 | 0 | 0 | 0.040388 | 0.201805 | 1,551 | 47 | 75 | 33 | 0.806139 | 0.419084 | 0 | 0 | 0 | 0 | 0.077185 | 0 | 0 | 0 | 0 | 0 | 0.208333 | 1 | 0.083333 | false | 0 | 0.208333 | 0 | 0.375 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5370c3d3d7c64120cfceac3826e677a88c4d71af | 3,556 | py | Python | laia/data/transforms/vision/random_beta_morphology.py | eivtho/PyLaia | 2a7a6e2eeb9b5af68c0faed0c564b02063e72be0 | [
"MIT"
] | 89 | 2018-12-12T23:06:26.000Z | 2022-02-03T09:04:21.000Z | laia/data/transforms/vision/random_beta_morphology.py | eivtho/PyLaia | 2a7a6e2eeb9b5af68c0faed0c564b02063e72be0 | [
"MIT"
] | 30 | 2019-03-06T14:29:48.000Z | 2022-03-16T14:53:43.000Z | laia/data/transforms/vision/random_beta_morphology.py | jpuigcerver/PyLaia | 1b2e864247f1bfb8d95ac1910de9c52df71c017a | [
"MIT"
] | 26 | 2018-12-13T17:48:19.000Z | 2022-02-28T12:52:29.000Z | from typing import List, Tuple, Union
import numpy as np
import scipy.special
from PIL import Image, ImageFilter
class RandomBetaMorphology:
def __init__(
self, filter_size_min: int, filter_size_max: int, alpha: float, beta: float
) -> None:
assert filter_size_min % 2 != 0, "Filter size must ... | 32.327273 | 86 | 0.615298 | 461 | 3,556 | 4.425163 | 0.240781 | 0.191176 | 0.095588 | 0.041667 | 0.385784 | 0.361765 | 0.311765 | 0.291176 | 0.258824 | 0.258824 | 0 | 0.010365 | 0.267435 | 3,556 | 109 | 87 | 32.623853 | 0.772745 | 0 | 0 | 0.224719 | 0 | 0 | 0.070304 | 0.031215 | 0 | 0 | 0 | 0 | 0.022472 | 1 | 0.101124 | false | 0 | 0.067416 | 0.022472 | 0.280899 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5374082003f5a0ab7717d7cbdda9e4ca3ac483ea | 1,236 | py | Python | Concurrency/codeSample/Part4_Thread_Synchronuzation_Primitives/sema_signal.py | Chyi341152/pyConPaper | 851190d59f8dc85b4f2a0b47c6505edd0367a6fe | [
"MIT"
] | 1 | 2018-05-30T02:36:46.000Z | 2018-05-30T02:36:46.000Z | Concurrency/codeSample/Part4_Thread_Synchronuzation_Primitives/sema_signal.py | Chyi341152/pyConPaper | 851190d59f8dc85b4f2a0b47c6505edd0367a6fe | [
"MIT"
] | null | null | null | Concurrency/codeSample/Part4_Thread_Synchronuzation_Primitives/sema_signal.py | Chyi341152/pyConPaper | 851190d59f8dc85b4f2a0b47c6505edd0367a6fe | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
# sema_signal.py
#
# An example of using a semaphore for signaling between threads
import threading
import time
done = threading.Semaphore(0) # Resource control.
item = None
def producer():
global item
print("I'm the producer and I produce data.")
... | 29.428571 | 145 | 0.669903 | 163 | 1,236 | 5.07362 | 0.546012 | 0.029021 | 0.016929 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011727 | 0.2411 | 1,236 | 41 | 146 | 30.146341 | 0.869936 | 0.207929 | 0 | 0 | 0 | 0 | 0.2832 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.095238 | 0 | 0.190476 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5375dec1385aae371f742bbb1feff08c0d14da3b | 3,199 | py | Python | temp_wc_analysis/analysis.py | KarrLab/wc_sim | 5b0ee03c3d19193fa67a3797d4258b753e6bc576 | [
"MIT"
] | 8 | 2018-03-27T21:35:25.000Z | 2022-01-18T08:32:20.000Z | temp_wc_analysis/analysis.py | KarrLab/wc_sim | 5b0ee03c3d19193fa67a3797d4258b753e6bc576 | [
"MIT"
] | 114 | 2018-02-27T14:14:39.000Z | 2020-12-30T15:06:51.000Z | temp_wc_analysis/analysis.py | KarrLab/wc_sim | 5b0ee03c3d19193fa67a3797d4258b753e6bc576 | [
"MIT"
] | 2 | 2019-04-05T16:17:28.000Z | 2020-05-17T12:55:20.000Z | '''Analysis utility functions.
:Author: Jonathan Karr <karr@mssm.edu>
:Date: 2016-03-26
:Copyright: 2016-2018, Karr Lab
:License: MIT
'''
# TODO(Arthur): IMPORTANT: refactor and replace
from matplotlib import pyplot
from matplotlib import ticker
from wc_lang import Model, Submodel
from scipy.constants import Avogadr... | 29.081818 | 96 | 0.56924 | 356 | 3,199 | 5 | 0.404494 | 0.020225 | 0.039326 | 0.042135 | 0.023596 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024256 | 0.316974 | 3,199 | 109 | 97 | 29.348624 | 0.790389 | 0.102845 | 0 | 0.057143 | 0 | 0.014286 | 0.073983 | 0.02244 | 0 | 0 | 0 | 0.009174 | 0 | 1 | 0.014286 | false | 0 | 0.085714 | 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 |
5378047f0579efdd010c7d57b8aefd313753aa1d | 907 | py | Python | setup.py | bstuddard/bonsai | 3610fc50a3b24818288d850048c2a23306215367 | [
"MIT"
] | 26 | 2021-07-18T14:52:47.000Z | 2022-01-27T10:35:44.000Z | setup.py | bstuddard/bonsai | 3610fc50a3b24818288d850048c2a23306215367 | [
"MIT"
] | null | null | null | setup.py | bstuddard/bonsai | 3610fc50a3b24818288d850048c2a23306215367 | [
"MIT"
] | 3 | 2021-07-20T03:25:22.000Z | 2021-08-17T04:06:27.000Z | from setuptools import setup, find_packages
with open("README.md", "r") as readme_file:
readme = readme_file.read()
requirements = [
'xgboost>=0.90',
'catboost>=0.26',
'bayesian-optimization>=1.2.0',
'numpy>=1.19.5',
'pandas>=1.1.5',
'matplotlib>=3.2.2',
'seaborn>=0.11.1',
'plotly>... | 25.914286 | 65 | 0.607497 | 113 | 907 | 4.80531 | 0.610619 | 0.104972 | 0.138122 | 0.143646 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052705 | 0.205072 | 907 | 35 | 66 | 25.914286 | 0.700416 | 0 | 0 | 0 | 0 | 0 | 0.437225 | 0.055066 | 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 |
537b221bff7d480fcdf886ab83757cc48372b358 | 823 | py | Python | _scripts/increment_version.py | clockhart/pathogen | 1764d4a7d2dd7c1f5dcc08afc016ec4edf809c36 | [
"MIT"
] | null | null | null | _scripts/increment_version.py | clockhart/pathogen | 1764d4a7d2dd7c1f5dcc08afc016ec4edf809c36 | [
"MIT"
] | null | null | null | _scripts/increment_version.py | clockhart/pathogen | 1764d4a7d2dd7c1f5dcc08afc016ec4edf809c36 | [
"MIT"
] | null | null | null | """
increment_version.py
written in Python3
author: C. Lockhart <chris@lockhartlab.org>
"""
import yaml
# Read in version
with open('version.yml', 'r') as f:
version = yaml.safe_load(f.read())
# Strip "dev" out of micro
version['micro'] = int(str(version['micro']).replace('dev', ''))
# Update patch
version['mi... | 22.243243 | 78 | 0.660996 | 120 | 823 | 4.458333 | 0.491667 | 0.134579 | 0.056075 | 0.082243 | 0.093458 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004292 | 0.150668 | 823 | 36 | 79 | 22.861111 | 0.761087 | 0.318348 | 0 | 0 | 0 | 0 | 0.212454 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
537c67be5a305675d3c345fd99a5e6be9b4b00c1 | 15,725 | py | Python | holoviews/core/data/ibis.py | TheoMathurin/holoviews | 0defcef994d6dd6d2054f75a0e332d02d121f8b0 | [
"BSD-3-Clause"
] | 1 | 2017-03-01T07:08:23.000Z | 2017-03-01T07:08:23.000Z | holoviews/core/data/ibis.py | chrinide/holoviews | e1234a60ae0809ac561c204b1998dff0452b2bf0 | [
"BSD-3-Clause"
] | null | null | null | holoviews/core/data/ibis.py | chrinide/holoviews | e1234a60ae0809ac561c204b1998dff0452b2bf0 | [
"BSD-3-Clause"
] | null | null | null | import sys
import numpy
try:
from collections.abc import Iterable
except ImportError:
from collections import Iterable
from .. import util
from ..element import Element
from ..ndmapping import NdMapping, item_check, sorted_context
from .interface import Interface
from . import pandas
from .util import cached
... | 35.022272 | 106 | 0.569348 | 1,776 | 15,725 | 4.945946 | 0.161036 | 0.030055 | 0.034836 | 0.006261 | 0.14367 | 0.088798 | 0.068989 | 0.04531 | 0.025273 | 0.025273 | 0 | 0.003155 | 0.334817 | 15,725 | 448 | 107 | 35.100446 | 0.836616 | 0.034658 | 0 | 0.217507 | 0 | 0 | 0.027348 | 0.001982 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.050398 | 0.029178 | 0.254642 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
537e41912df4cf73c680542167c1c109a8513d39 | 3,907 | py | Python | chess/models/tournament.py | S0Imyr/Projet-4 | 1d93e125bc6e44bc560f3ffc9b11e14e35291c98 | [
"MIT"
] | null | null | null | chess/models/tournament.py | S0Imyr/Projet-4 | 1d93e125bc6e44bc560f3ffc9b11e14e35291c98 | [
"MIT"
] | null | null | null | chess/models/tournament.py | S0Imyr/Projet-4 | 1d93e125bc6e44bc560f3ffc9b11e14e35291c98 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Handles the tournament logic
"""
import datetime
from chess.utils.utils import get_new_id
from chess.models.actors import Player
from chess.models.round import Round
TOURNAMENT_ID_WIDTH = 8
NB_ROUND = 4
NB_PLAYERS = 8
NB_MATCH = 4
class Tournament:
""" The class Tournament is t... | 33.393162 | 102 | 0.621449 | 449 | 3,907 | 5.158129 | 0.211581 | 0.067358 | 0.039292 | 0.046632 | 0.141192 | 0.02418 | 0.02418 | 0 | 0 | 0 | 0 | 0.002896 | 0.293064 | 3,907 | 116 | 103 | 33.681034 | 0.835626 | 0.176606 | 0 | 0.029851 | 0 | 0 | 0.045649 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089552 | false | 0 | 0.059701 | 0 | 0.19403 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
537f1ecf5b58054b91b3f560bcbfa1d5fc3ac88d | 16,328 | py | Python | tests/test_app.py | inmanta/inmanta-core | ae2153d57f124d00ad1b58e6d4bc6818364be4a8 | [
"Apache-2.0"
] | 6 | 2021-03-09T10:24:02.000Z | 2022-01-16T03:52:11.000Z | tests/test_app.py | inmanta/inmanta-core | ae2153d57f124d00ad1b58e6d4bc6818364be4a8 | [
"Apache-2.0"
] | 1,319 | 2020-12-18T08:52:29.000Z | 2022-03-31T18:17:32.000Z | tests/test_app.py | inmanta/inmanta-core | ae2153d57f124d00ad1b58e6d4bc6818364be4a8 | [
"Apache-2.0"
] | 4 | 2021-03-03T15:36:50.000Z | 2022-03-11T11:41:51.000Z | """
Copyright 2018 Inmanta
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 ... | 33.390593 | 125 | 0.614282 | 2,136 | 16,328 | 4.510768 | 0.164326 | 0.006642 | 0.004982 | 0.008718 | 0.506072 | 0.448573 | 0.394811 | 0.358588 | 0.348106 | 0.325272 | 0 | 0.013938 | 0.239833 | 16,328 | 488 | 126 | 33.459016 | 0.762327 | 0.052609 | 0 | 0.339523 | 0 | 0.045093 | 0.226046 | 0.047508 | 0 | 0 | 0 | 0 | 0.090186 | 1 | 0.066313 | false | 0.013263 | 0.029178 | 0.005305 | 0.124668 | 0.013263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
537fda8bf126c424a17def77a9e57731a1bb799c | 449 | py | Python | AtC_Beg_Con_021-030/ABC027/C.py | yosho-18/AtCoder | 50f6d5c92a01792552c31ac912ce1cd557b06fb0 | [
"MIT"
] | null | null | null | AtC_Beg_Con_021-030/ABC027/C.py | yosho-18/AtCoder | 50f6d5c92a01792552c31ac912ce1cd557b06fb0 | [
"MIT"
] | null | null | null | AtC_Beg_Con_021-030/ABC027/C.py | yosho-18/AtCoder | 50f6d5c92a01792552c31ac912ce1cd557b06fb0 | [
"MIT"
] | null | null | null | n = int(input())
row = 0
for i in range(100):
if 2 ** i <= n <= 2 ** (i + 1) - 1:
row = i
break
def seki(k, n):
for _ in range(n):
k = 4 * k + 2
return k
k = 0
if row % 2 != 0:
k = 2
cri = seki(k, row // 2)
if n < cri:
print("Aoki")
else:
print("Ta... | 14.966667 | 39 | 0.4098 | 72 | 449 | 2.541667 | 0.333333 | 0.081967 | 0.087432 | 0.120219 | 0.251366 | 0.251366 | 0.251366 | 0.251366 | 0.251366 | 0 | 0 | 0.065637 | 0.423163 | 449 | 29 | 40 | 15.482759 | 0.640927 | 0 | 0 | 0.44 | 0 | 0 | 0.057906 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0 | 0 | 0.08 | 0.16 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5382d0895ddebaa840fcd4f4a2179b700c0dfe67 | 21,396 | py | Python | extplugins/codvote.py | Desi-Boyz/cod4x-server-B3-configs | 03a323d7ea293efe1831ed315001391b9aaf532a | [
"MIT"
] | 1 | 2017-07-17T22:21:10.000Z | 2017-07-17T22:21:10.000Z | extplugins/codvote.py | Desi-Boyz/cod4x-server-B3-configs | 03a323d7ea293efe1831ed315001391b9aaf532a | [
"MIT"
] | null | null | null | extplugins/codvote.py | Desi-Boyz/cod4x-server-B3-configs | 03a323d7ea293efe1831ed315001391b9aaf532a | [
"MIT"
] | null | null | null | # CoDVote plugin for BigBrotherBot(B3) (www.bigbrotherbot.net)
# Copyright (C) 2015 ph03n1x
#
# 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 2 of the License, or
# (at your optio... | 37.081456 | 139 | 0.550804 | 2,445 | 21,396 | 4.736196 | 0.180368 | 0.026943 | 0.021762 | 0.01209 | 0.328756 | 0.260708 | 0.212263 | 0.181865 | 0.181865 | 0.165285 | 0 | 0.012919 | 0.33796 | 21,396 | 576 | 140 | 37.145833 | 0.804589 | 0.155403 | 0 | 0.403341 | 0 | 0 | 0.17158 | 0.002395 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071599 | false | 0.016706 | 0.00716 | 0 | 0.195704 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
538622f0e20beb2e31f0c54850a3e278464da569 | 1,323 | py | Python | indian-flag.py | aditya270520/indian-flag | 65851eefdd229cca150d2bbe8fa61c9e06e120e0 | [
"MIT"
] | null | null | null | indian-flag.py | aditya270520/indian-flag | 65851eefdd229cca150d2bbe8fa61c9e06e120e0 | [
"MIT"
] | null | null | null | indian-flag.py | aditya270520/indian-flag | 65851eefdd229cca150d2bbe8fa61c9e06e120e0 | [
"MIT"
] | null | null | null | import turtle
turtle.bgcolor('black')
wn=turtle.Screen()
tr=turtle.Turtle()
move=1
tr.speed("fastest")
for i in range (360):
tr.write("ADITYA",'false','center',font=('Showcard gothic',50))
tr.penup()
tr.goto(-200,100)
tr.pendown()
tr.color("orange")
tr.right(move)
tr.forward(100)
tr... | 17.64 | 67 | 0.543462 | 207 | 1,323 | 3.468599 | 0.299517 | 0.126741 | 0.058496 | 0.044568 | 0.275766 | 0.165738 | 0.05571 | 0 | 0 | 0 | 0 | 0.061162 | 0.258503 | 1,323 | 75 | 68 | 17.64 | 0.670744 | 0 | 0 | 0.465753 | 0 | 0 | 0.106495 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.013699 | 0 | 0.013699 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5389a92b434b224efc0d211777895516ff271648 | 1,023 | py | Python | update_readme.py | CalmScout/LeetCode | 62720934b5906e6b255c7e91d3a6fa1d713e4391 | [
"MIT"
] | null | null | null | update_readme.py | CalmScout/LeetCode | 62720934b5906e6b255c7e91d3a6fa1d713e4391 | [
"MIT"
] | null | null | null | update_readme.py | CalmScout/LeetCode | 62720934b5906e6b255c7e91d3a6fa1d713e4391 | [
"MIT"
] | null | null | null | """
Script updates `README.md` with respect to files at ./easy and ./medium folders.
"""
import os
curr_dir = os.path.dirname(__file__)
with open(os.path.join(curr_dir, "README.md"), 'w') as readme:
readme.write("# LeetCode\nDeliberate practice in coding.\n")
langs = [l for l in os.listdir(curr_dir) if os.path... | 39.346154 | 105 | 0.572825 | 146 | 1,023 | 3.890411 | 0.321918 | 0.073944 | 0.035211 | 0.049296 | 0.288732 | 0.140845 | 0.09507 | 0 | 0 | 0 | 0 | 0.00641 | 0.237537 | 1,023 | 25 | 106 | 40.92 | 0.721795 | 0.078201 | 0 | 0 | 0 | 0 | 0.154011 | 0.049198 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.047619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |