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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bebfe36afc8a169020e2b3f2d6602873133b4e74 | 884 | py | Python | tiddlyweb/filters/limit.py | tiddlyweb/tiddlyweb | 376bcad280e24d2de4d74883dc4d8369abcb2c28 | [
"BSD-3-Clause"
] | 57 | 2015-02-01T21:03:34.000Z | 2021-12-25T12:02:31.000Z | tiddlyweb/filters/limit.py | tiddlyweb/tiddlyweb | 376bcad280e24d2de4d74883dc4d8369abcb2c28 | [
"BSD-3-Clause"
] | 6 | 2016-02-05T11:43:32.000Z | 2019-09-05T13:38:49.000Z | tiddlyweb/filters/limit.py | tiddlyweb/tiddlyweb | 376bcad280e24d2de4d74883dc4d8369abcb2c28 | [
"BSD-3-Clause"
] | 17 | 2015-05-12T08:53:23.000Z | 2021-12-21T15:56:30.000Z | """
A :py:mod:`filter <tiddlyweb.filters>` type to limit a group of entities
using a syntax similar to SQL Limit::
limit=<index>,<count>
limit=<count>
"""
import itertools
def limit_parse(count='0'):
"""
Parse the argument of a ``limit`` :py:mod:`filter <tiddlyweb.filters>`
for a count and index... | 23.891892 | 78 | 0.64819 | 124 | 884 | 4.612903 | 0.443548 | 0.087413 | 0.038462 | 0.06993 | 0.094406 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007353 | 0.230769 | 884 | 36 | 79 | 24.555556 | 0.833824 | 0.469457 | 0 | 0 | 0 | 0 | 0.009456 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.083333 | 0.083333 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
bec9227899c9767af55354a2d39773951766ff07 | 486 | py | Python | tdx/abc.py | TrainerDex/DiscordBot | 7e7bb20c5ac76bed236a7458c31017b8ddd8b8be | [
"Apache-2.0"
] | 2 | 2020-09-18T12:43:48.000Z | 2020-11-10T00:34:15.000Z | tdx/abc.py | TrainerDex/DiscordBot | 7e7bb20c5ac76bed236a7458c31017b8ddd8b8be | [
"Apache-2.0"
] | 59 | 2020-07-24T00:04:53.000Z | 2022-03-29T11:15:48.000Z | tdx/abc.py | TrainerDex/DiscordBot | 7e7bb20c5ac76bed236a7458c31017b8ddd8b8be | [
"Apache-2.0"
] | 1 | 2022-01-12T12:33:15.000Z | 2022-01-12T12:33:15.000Z | from abc import ABC
from typing import Dict
from redbot.core import Config
from redbot.core.bot import Red
from trainerdex.client import Client
class MixinMeta(ABC):
"""
Base class for well behaved type hint detection with composite class.
Basically, to keep developers sane when not all attributes are d... | 23.142857 | 89 | 0.699588 | 68 | 486 | 4.926471 | 0.617647 | 0.059701 | 0.083582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.240741 | 486 | 20 | 90 | 24.3 | 0.907859 | 0.320988 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.454545 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
fe3dd2d72750bce0851326699b900d4e0689f605 | 690 | py | Python | Python/1238.py | ArikBartzadok/beecrowd-challenges | ddb0453d1caa75c87c4b3ed6a40309ab99da77f2 | [
"MIT"
] | null | null | null | Python/1238.py | ArikBartzadok/beecrowd-challenges | ddb0453d1caa75c87c4b3ed6a40309ab99da77f2 | [
"MIT"
] | null | null | null | Python/1238.py | ArikBartzadok/beecrowd-challenges | ddb0453d1caa75c87c4b3ed6a40309ab99da77f2 | [
"MIT"
] | null | null | null | def execucoes():
return int(input())
def entradas():
return input().split(' ')
def imprimir(v):
print(v)
def tamanho_a(a):
return len(a)
def tamanho_b(b):
return len(b)
def diferenca_tamanhos(a, b):
return (len(a) <= len(b))
def analisar(e, i, s):
a, b = e
if(diferenca_tamanhos(a, ... | 18.157895 | 60 | 0.510145 | 105 | 690 | 3.27619 | 0.257143 | 0.02907 | 0.078488 | 0.09593 | 0.145349 | 0.040698 | 0.040698 | 0 | 0 | 0 | 0 | 0 | 0.317391 | 690 | 38 | 61 | 18.157895 | 0.730361 | 0 | 0 | 0.137931 | 0 | 0 | 0.001447 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.275862 | false | 0 | 0 | 0.172414 | 0.482759 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
fe433c22e1af644dfc7ebbadd44ff0872fa4438b | 487 | py | Python | riddle.py | robertlit/monty-hall-problem | 746cab513dacdc1f47ce7269db35167df3520865 | [
"MIT"
] | null | null | null | riddle.py | robertlit/monty-hall-problem | 746cab513dacdc1f47ce7269db35167df3520865 | [
"MIT"
] | null | null | null | riddle.py | robertlit/monty-hall-problem | 746cab513dacdc1f47ce7269db35167df3520865 | [
"MIT"
] | null | null | null | import random
goat1 = random.randint(1, 3)
goat2 = random.randint(1, 3)
while goat1 == goat2:
goat2 = random.randint(1, 3)
success = 0
tries = 1_000_000
for _ in range(tries):
options = [1, 2, 3]
choice = random.randint(1, 3)
options.remove(choice)
if choice == goat1:
options.remove(goat... | 18.037037 | 43 | 0.61807 | 67 | 487 | 4.447761 | 0.343284 | 0.174497 | 0.187919 | 0.201342 | 0.134228 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086111 | 0.26078 | 487 | 26 | 44 | 18.730769 | 0.741667 | 0 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.052632 | 0.052632 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fe4725d5ecf06c13eb1ec7a97c57345acb7badcb | 760 | py | Python | tests/integration/test_interface.py | Synodic-Software/CPPython | 12e9acdf68e54d45bcf0b6c137d4fe627d1f6877 | [
"MIT"
] | null | null | null | tests/integration/test_interface.py | Synodic-Software/CPPython | 12e9acdf68e54d45bcf0b6c137d4fe627d1f6877 | [
"MIT"
] | 8 | 2021-11-28T23:46:36.000Z | 2022-03-15T09:00:43.000Z | tests/integration/test_interface.py | Synodic-Software/CPPython | 12e9acdf68e54d45bcf0b6c137d4fe627d1f6877 | [
"MIT"
] | 2 | 2021-11-28T23:17:49.000Z | 2021-11-28T23:36:03.000Z | """
Test the integrations related to the internal interface implementation and the 'Interface' interface itself
"""
import pytest
from cppython_core.schema import InterfaceConfiguration
from pytest_cppython.plugin import InterfaceIntegrationTests
from cppython.console import ConsoleInterface
class TestCLIInterface(... | 28.148148 | 107 | 0.735526 | 74 | 760 | 7.513514 | 0.540541 | 0.043165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205263 | 760 | 26 | 108 | 29.230769 | 0.92053 | 0.372368 | 0 | 0 | 0 | 0 | 0.021687 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.444444 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
fe509cc8fe00e2ec571d053ee6c5713299416d2c | 1,225 | py | Python | h/exceptions.py | ssin122/test-h | c10062ae23b690afaac0ab4af7b9a5a5e4b686a9 | [
"MIT"
] | 2 | 2021-11-07T23:14:54.000Z | 2021-11-17T10:11:55.000Z | h/exceptions.py | ssin122/test-h | c10062ae23b690afaac0ab4af7b9a5a5e4b686a9 | [
"MIT"
] | null | null | null | h/exceptions.py | ssin122/test-h | c10062ae23b690afaac0ab4af7b9a5a5e4b686a9 | [
"MIT"
] | 1 | 2017-03-12T00:18:33.000Z | 2017-03-12T00:18:33.000Z | # -*- coding: utf-8 -*-
"""Exceptions raised by the h application."""
from __future__ import unicode_literals
from h.i18n import TranslationString as _
# N.B. This class **only** covers exceptions thrown by API code provided by
# the h package. memex code has its own base APIError class.
class APIError(Exception):... | 27.222222 | 79 | 0.702041 | 150 | 1,225 | 5.466667 | 0.486667 | 0.085366 | 0.040244 | 0.065854 | 0.060976 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01227 | 0.201633 | 1,225 | 44 | 80 | 27.840909 | 0.826176 | 0.411429 | 0 | 0 | 0 | 0 | 0.046547 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
fe56cfdabfdb2c62e991e0ff5887c5fa113a7477 | 694 | py | Python | set.py | QUDUSKUNLE/Python-Flask | 5990572b17923c976907c2fa5c2a9790f3a7c869 | [
"MIT"
] | null | null | null | set.py | QUDUSKUNLE/Python-Flask | 5990572b17923c976907c2fa5c2a9790f3a7c869 | [
"MIT"
] | null | null | null | set.py | QUDUSKUNLE/Python-Flask | 5990572b17923c976907c2fa5c2a9790f3a7c869 | [
"MIT"
] | null | null | null | """
How to set up virtual environment
pip install virtualenv
pip install virtualenvwrapper
# export WORKON_HOME=~/Envs
source /usr/local/bin/virtualenvwrapper.sh
# To activate virtualenv and set up flask
1. mkvirtualenv my-venv
###2. workon my-venv
3. pip install Flask
4. pip freeze
5. #... | 30.173913 | 79 | 0.714697 | 97 | 694 | 5.103093 | 0.701031 | 0.060606 | 0.113131 | 0.137374 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013084 | 0.229107 | 694 | 23 | 80 | 30.173913 | 0.91215 | 0.936599 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fe5734aaedd2488a65c2f70b6e6de6bc38f3f4ec | 1,346 | py | Python | test/test_generate_data_coassembly.py | Badboy-16/SemiBin | 501bc1a7e310104c09475ca233a3f16d081f129a | [
"MIT"
] | null | null | null | test/test_generate_data_coassembly.py | Badboy-16/SemiBin | 501bc1a7e310104c09475ca233a3f16d081f129a | [
"MIT"
] | null | null | null | test/test_generate_data_coassembly.py | Badboy-16/SemiBin | 501bc1a7e310104c09475ca233a3f16d081f129a | [
"MIT"
] | null | null | null | from SemiBin.main import generate_data_single
import os
import pytest
import logging
import pandas as pd
def test_generate_data_coassembly():
logger = logging.getLogger('SemiBin')
logger.setLevel(logging.INFO)
sh = logging.StreamHandler()
sh.setFormatter(logging.Formatter('%(asctime)s - %(message)s'))
... | 42.0625 | 80 | 0.604012 | 147 | 1,346 | 5.292517 | 0.442177 | 0.107969 | 0.154242 | 0.18509 | 0.313625 | 0.239075 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 0.297177 | 1,346 | 32 | 81 | 42.0625 | 0.799154 | 0 | 0 | 0 | 1 | 0 | 0.288048 | 0.23905 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.035714 | false | 0 | 0.178571 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fe5e44d3d94cf663368e7d42480218daf9100e40 | 16,722 | py | Python | instahunter.py | Araekiel/instahunter | c07c10773bcf33bdc0d46b39a0dda3f55936b1f3 | [
"MIT"
] | 17 | 2020-09-06T18:10:51.000Z | 2021-12-04T07:04:00.000Z | instahunter.py | Araekiel/instahunter | c07c10773bcf33bdc0d46b39a0dda3f55936b1f3 | [
"MIT"
] | 1 | 2020-09-30T18:43:10.000Z | 2021-05-17T09:59:03.000Z | instahunter.py | Araekiel/instahunter | c07c10773bcf33bdc0d46b39a0dda3f55936b1f3 | [
"MIT"
] | 5 | 2020-11-10T15:08:37.000Z | 2022-01-02T21:20:24.000Z | '''
instahunter.py
Author: Araekiel
Copyright: Copyright © 2019, Araekiel
License: MIT
Version: 1.6.3
'''
import click
import requests
import json
from datetime import datetime
@click.group()
def cli():
"""Made by Araekiel | v1.6.3"""
headers = { "User-Agent": "Mozilla/5.0 (Macintosh; Inte... | 59.297872 | 425 | 0.57224 | 2,111 | 16,722 | 4.378494 | 0.113216 | 0.104728 | 0.092394 | 0.00779 | 0.759926 | 0.744888 | 0.697825 | 0.673483 | 0.653684 | 0.627502 | 0 | 0.004668 | 0.256967 | 16,722 | 281 | 426 | 59.508897 | 0.739155 | 0.075649 | 0 | 0.512605 | 0 | 0.054622 | 0.40625 | 0.044504 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021008 | false | 0 | 0.016807 | 0 | 0.037815 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fe60c7c64b76bb62e7927a82cb0d30249ff0793b | 1,840 | py | Python | src/main.py | Lidenbrock-ed/challenge-prework-backend-python | d2f46a5cf9ad649de90d4194d115cd9492eb583d | [
"MIT"
] | null | null | null | src/main.py | Lidenbrock-ed/challenge-prework-backend-python | d2f46a5cf9ad649de90d4194d115cd9492eb583d | [
"MIT"
] | null | null | null | src/main.py | Lidenbrock-ed/challenge-prework-backend-python | d2f46a5cf9ad649de90d4194d115cd9492eb583d | [
"MIT"
] | null | null | null | # Resolve the problem!!
import string
import random
SYMBOLS = list('!"#$%&\'()*+,-./:;?@[]^_`{|}~')
def generate_password():
# Start coding here
letters_min = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','x','y','z']
letters_may = ['A','B','C','D','E','F','G','H... | 27.058824 | 119 | 0.547283 | 234 | 1,840 | 4.111111 | 0.363248 | 0.049896 | 0.037422 | 0.070686 | 0.227651 | 0.227651 | 0.227651 | 0.227651 | 0.227651 | 0.149688 | 0 | 0.011407 | 0.285326 | 1,840 | 67 | 120 | 27.462687 | 0.720152 | 0.021196 | 0 | 0.166667 | 1 | 0 | 0.059511 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.375 | 0.041667 | 0 | 0.166667 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
fe6124434f4049e2a32ac1bce2dbe6c619c4fd73 | 222 | py | Python | pythonteste/aula08a.py | genisyskernel/cursoemvideo-python | dec301e33933388c886fe78010f38adfb24dae82 | [
"MIT"
] | 1 | 2020-10-26T04:33:14.000Z | 2020-10-26T04:33:14.000Z | pythonteste/aula08a.py | genisyskernel/cursoemvideo-python | dec301e33933388c886fe78010f38adfb24dae82 | [
"MIT"
] | null | null | null | pythonteste/aula08a.py | genisyskernel/cursoemvideo-python | dec301e33933388c886fe78010f38adfb24dae82 | [
"MIT"
] | null | null | null | from math import sqrt
import emoji
num = int(input("Digite um número: "))
raiz = sqrt(num)
print("A raiz do número {0} é {1:.2f}.".format(num, raiz))
print(emoji.emojize("Hello World! :earth_americas:", use_aliases=True))
| 31.714286 | 71 | 0.707207 | 37 | 222 | 4.189189 | 0.756757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015385 | 0.121622 | 222 | 6 | 72 | 37 | 0.779487 | 0 | 0 | 0 | 0 | 0 | 0.351351 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
fe6f28fa08fad0c5dcac3f523f0415850eb9e77c | 3,495 | py | Python | dcos_installer/test_cli.py | nkhanal0/dcos | fe0571b6519c86b6c33db4af42c63ab3e9087dcf | [
"Apache-2.0"
] | 3 | 2017-02-05T06:58:28.000Z | 2017-05-12T07:28:53.000Z | dcos_installer/test_cli.py | nkhanal0/dcos | fe0571b6519c86b6c33db4af42c63ab3e9087dcf | [
"Apache-2.0"
] | 720 | 2017-02-08T04:04:19.000Z | 2021-09-14T14:04:56.000Z | dcos_installer/test_cli.py | nkhanal0/dcos | fe0571b6519c86b6c33db4af42c63ab3e9087dcf | [
"Apache-2.0"
] | 14 | 2017-02-08T03:57:24.000Z | 2019-10-28T12:14:49.000Z | import pytest
import gen
from dcos_installer import cli
def test_default_arg_parser():
parser = cli.get_argument_parser().parse_args([])
assert parser.verbose is False
assert parser.port == 9000
assert parser.action == 'genconf'
def test_set_arg_parser():
argument_parser = cli.get_argument_pars... | 34.60396 | 76 | 0.571674 | 434 | 3,495 | 4.520737 | 0.239631 | 0.12844 | 0.107034 | 0.022936 | 0.279307 | 0.222222 | 0.222222 | 0.20999 | 0.155963 | 0.014271 | 0 | 0.017285 | 0.205436 | 3,495 | 100 | 77 | 34.95 | 0.689233 | 0.065522 | 0 | 0.136986 | 0 | 0 | 0.180479 | 0.046041 | 0 | 0 | 0 | 0 | 0.547945 | 1 | 0.054795 | false | 0.178082 | 0.041096 | 0.013699 | 0.109589 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
fe74b07194e48e39b48840554a34c0fb3e4605a4 | 13,815 | py | Python | telemetry/telemetry/testing/internal/fake_gpu_info.py | tingshao/catapult | a8fe19e0c492472a8ed5710be9077e24cc517c5c | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | telemetry/telemetry/testing/internal/fake_gpu_info.py | tingshao/catapult | a8fe19e0c492472a8ed5710be9077e24cc517c5c | [
"BSD-3-Clause"
] | 4,640 | 2015-07-08T16:19:08.000Z | 2019-12-02T15:01:27.000Z | telemetry/telemetry/testing/internal/fake_gpu_info.py | tingshao/catapult | a8fe19e0c492472a8ed5710be9077e24cc517c5c | [
"BSD-3-Clause"
] | 698 | 2015-06-02T19:18:35.000Z | 2022-03-29T16:57:15.000Z | # Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# This dictionary of GPU information was captured from a run of
# Telemetry on a Linux workstation with NVIDIA GPU. It helps test
# telemetry.internal.platfo... | 57.086777 | 78 | 0.668983 | 1,740 | 13,815 | 4.636782 | 0.262069 | 0.083044 | 0.043133 | 0.016857 | 0.055528 | 0.013014 | 0 | 0 | 0 | 0 | 0 | 0.014368 | 0.284618 | 13,815 | 241 | 79 | 57.323651 | 0.801983 | 0.06464 | 0 | 0 | 0 | 0 | 0.680902 | 0.493024 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.004545 | 0 | 0.004545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fe86745dc1d7b386636a2027dae3d2552bd3e833 | 2,412 | py | Python | test/dict_parameter_test.py | shouldsee/luigi | 54a347361ae1031f06105eaf30ff88f5ef65b00c | [
"Apache-2.0"
] | 14,755 | 2015-01-01T09:33:34.000Z | 2022-03-31T15:38:39.000Z | test/dict_parameter_test.py | shouldsee/luigi | 54a347361ae1031f06105eaf30ff88f5ef65b00c | [
"Apache-2.0"
] | 2,387 | 2015-01-01T09:16:13.000Z | 2022-03-12T13:55:43.000Z | test/dict_parameter_test.py | shouldsee/luigi | 54a347361ae1031f06105eaf30ff88f5ef65b00c | [
"Apache-2.0"
] | 2,630 | 2015-01-02T06:11:32.000Z | 2022-03-27T22:11:20.000Z | # -*- coding: utf-8 -*-
#
# Copyright 2012-2015 Spotify AB
#
# 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... | 37.6875 | 105 | 0.679934 | 282 | 2,412 | 5.719858 | 0.382979 | 0.100434 | 0.055797 | 0.074396 | 0.236826 | 0.109113 | 0.066956 | 0 | 0 | 0 | 0 | 0.00651 | 0.172056 | 2,412 | 63 | 106 | 38.285714 | 0.801202 | 0.236318 | 0 | 0 | 0 | 0 | 0.166575 | 0.019726 | 0 | 0 | 0 | 0 | 0.242424 | 1 | 0.212121 | false | 0.151515 | 0.151515 | 0 | 0.484848 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
feab2f73df218463681f43ce0d3584c476b63adb | 925 | py | Python | src/common/bio/smiles.py | duttaprat/proteinGAN | 92b32192ab959e327e1d713d09fc9b40dc01d757 | [
"MIT"
] | 8 | 2020-12-23T21:44:47.000Z | 2021-07-09T05:46:16.000Z | src/common/bio/smiles.py | duttaprat/proteinGAN | 92b32192ab959e327e1d713d09fc9b40dc01d757 | [
"MIT"
] | null | null | null | src/common/bio/smiles.py | duttaprat/proteinGAN | 92b32192ab959e327e1d713d09fc9b40dc01d757 | [
"MIT"
] | null | null | null | from common.bio.constants import SMILES_CHARACTER_TO_ID, ID_TO_SMILES_CHARACTER
def from_smiles_to_id(data, column):
"""Converts sequences from smiles to ids
Args:
data: data that contains characters that need to be converted to ids
column: a column of the dataframe that contains characters that ... | 28.030303 | 102 | 0.721081 | 140 | 925 | 4.635714 | 0.25 | 0.09245 | 0.061633 | 0.07396 | 0.625578 | 0.493066 | 0.493066 | 0.493066 | 0.409861 | 0.29584 | 0 | 0 | 0.219459 | 925 | 32 | 103 | 28.90625 | 0.898892 | 0.526486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
feb0e950cc084ec84da234840633db92453d5121 | 16,227 | py | Python | sdk/python/pulumi_aws/cloudformation/stack_set.py | mdop-wh/pulumi-aws | 05bb32e9d694dde1c3b76d440fd2cd0344d23376 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/cloudformation/stack_set.py | mdop-wh/pulumi-aws | 05bb32e9d694dde1c3b76d440fd2cd0344d23376 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/cloudformation/stack_set.py | mdop-wh/pulumi-aws | 05bb32e9d694dde1c3b76d440fd2cd0344d23376 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Dict, List, Mapping, Optional, Tuple, Union
from .. import ... | 57.747331 | 403 | 0.680841 | 1,929 | 16,227 | 5.522032 | 0.145671 | 0.055764 | 0.055201 | 0.033796 | 0.708787 | 0.668325 | 0.662974 | 0.644668 | 0.617161 | 0.611247 | 0 | 0.005918 | 0.229371 | 16,227 | 280 | 404 | 57.953571 | 0.845902 | 0.546127 | 0 | 0.278195 | 1 | 0 | 0.123449 | 0.023418 | 0 | 0 | 0 | 0 | 0 | 1 | 0.112782 | false | 0.007519 | 0.037594 | 0.015038 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2283d1768504ac50dd9ea43fb4e940fbaf88eee6 | 649 | py | Python | code/gcd_sequence/sol_443.py | bhavinjawade/project-euler-solutions | 56bf6a282730ed4b9b875fa081cf4509d9939d98 | [
"Apache-2.0"
] | 2 | 2020-07-16T08:16:32.000Z | 2020-10-01T07:16:48.000Z | code/gcd_sequence/sol_443.py | Psingh12354/project-euler-solutions | 56bf6a282730ed4b9b875fa081cf4509d9939d98 | [
"Apache-2.0"
] | null | null | null | code/gcd_sequence/sol_443.py | Psingh12354/project-euler-solutions | 56bf6a282730ed4b9b875fa081cf4509d9939d98 | [
"Apache-2.0"
] | 1 | 2021-05-07T18:06:08.000Z | 2021-05-07T18:06:08.000Z |
# -*- coding: utf-8 -*-
'''
File name: code\gcd_sequence\sol_443.py
Author: Vaidic Joshi
Date created: Oct 20, 2018
Python Version: 3.x
'''
# Solution to Project Euler Problem #443 :: GCD sequence
#
# For more information see:
# https://projecteuler.net/problem=443
# Problem Statement
'''
Let g(n) ... | 17.540541 | 62 | 0.644068 | 96 | 649 | 4.333333 | 0.666667 | 0.024038 | 0.014423 | 0.019231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216797 | 0.211094 | 649 | 36 | 63 | 18.027778 | 0.595703 | 0.454545 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
228f917fd03d25566ca49e7918c233c48b585119 | 88 | py | Python | fast-ml/main.py | gabrielstork/fast-ml | ce93c1263970ce7b958e1c3e932c70909bcc0e31 | [
"Apache-2.0"
] | 1 | 2021-07-26T15:37:30.000Z | 2021-07-26T15:37:30.000Z | fast-ml/main.py | gabrielstork/fast-ml | ce93c1263970ce7b958e1c3e932c70909bcc0e31 | [
"Apache-2.0"
] | null | null | null | fast-ml/main.py | gabrielstork/fast-ml | ce93c1263970ce7b958e1c3e932c70909bcc0e31 | [
"Apache-2.0"
] | null | null | null | import root
if __name__ == '__main__':
window = root.Root()
window.mainloop()
| 12.571429 | 26 | 0.636364 | 10 | 88 | 4.8 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227273 | 88 | 6 | 27 | 14.666667 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2298b7f13b630423d0c12d2422ae336ad2ea8774 | 71 | py | Python | damn_vulnerable_python/evil.py | CodyKochmann/damn_vulnerable_python | 8a90ee3b70dddae96f9f0a8500ed9ba5693f3082 | [
"MIT"
] | 1 | 2018-05-22T03:27:54.000Z | 2018-05-22T03:27:54.000Z | damn_vulnerable_python/evil.py | CodyKochmann/damn_vulnerable_python | 8a90ee3b70dddae96f9f0a8500ed9ba5693f3082 | [
"MIT"
] | 2 | 2018-05-22T02:04:39.000Z | 2018-05-22T12:46:31.000Z | damn_vulnerable_python/evil.py | CodyKochmann/damn_vulnerable_python | 8a90ee3b70dddae96f9f0a8500ed9ba5693f3082 | [
"MIT"
] | null | null | null | ''' static analyzers are annoying so lets rename eval '''
evil = eval
| 17.75 | 57 | 0.704225 | 10 | 71 | 5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197183 | 71 | 3 | 58 | 23.666667 | 0.877193 | 0.690141 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
22ad01968a4a3e4e8168ccbc68b9c73d312ea977 | 709 | py | Python | development/simple_email.py | gerold-penz/python-simplemail | 9cfae298743af2b771d6d779717b602de559689b | [
"MIT"
] | 16 | 2015-04-21T19:12:26.000Z | 2021-06-04T04:38:12.000Z | development/simple_email.py | gerold-penz/python-simplemail | 9cfae298743af2b771d6d779717b602de559689b | [
"MIT"
] | 3 | 2015-04-21T22:09:55.000Z | 2021-04-27T07:04:05.000Z | development/simple_email.py | gerold-penz/python-simplemail | 9cfae298743af2b771d6d779717b602de559689b | [
"MIT"
] | 4 | 2015-07-22T11:33:28.000Z | 2019-08-06T07:27:20.000Z | #!/usr/bin/env python
# coding: utf-8
# BEGIN --- required only for testing, remove in real world code --- BEGIN
import os
import sys
THISDIR = os.path.dirname(os.path.abspath(__file__))
APPDIR = os.path.abspath(os.path.join(THISDIR, os.path.pardir, os.path.pardir))
sys.path.insert(0, APPDIR)
# END --- required only f... | 22.870968 | 79 | 0.679831 | 106 | 709 | 4.45283 | 0.584906 | 0.076271 | 0.063559 | 0.09322 | 0.182203 | 0.182203 | 0.182203 | 0.182203 | 0.182203 | 0 | 0 | 0.008621 | 0.181946 | 709 | 30 | 80 | 23.633333 | 0.805172 | 0.248237 | 0 | 0 | 0 | 0 | 0.202268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.055556 | 0.166667 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
22ad976fe4002a0a8ca1f3ab36292229eb143691 | 2,040 | py | Python | common/irma/common/exceptions.py | vaginessa/irma | 02285080b67b25ef983a99a765044683bd43296c | [
"Apache-2.0"
] | null | null | null | common/irma/common/exceptions.py | vaginessa/irma | 02285080b67b25ef983a99a765044683bd43296c | [
"Apache-2.0"
] | null | null | null | common/irma/common/exceptions.py | vaginessa/irma | 02285080b67b25ef983a99a765044683bd43296c | [
"Apache-2.0"
] | null | null | null | #
# Copyright (c) 2013-2018 Quarkslab.
# This file is part of IRMA project.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License in the top-level directory
# of this distribution and at:
#
# http:... | 21.473684 | 78 | 0.701471 | 248 | 2,040 | 5.770161 | 0.471774 | 0.09434 | 0.055905 | 0.035639 | 0.033543 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007304 | 0.194608 | 2,040 | 94 | 79 | 21.702128 | 0.863664 | 0.526471 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
22b80f5d2e66e370817465d9b5b278c1f1dcbe4e | 282 | py | Python | Ejercicio/Ejercicio7.py | tavo1599/F.P2021 | a592804fb5ae30da55551d9e29819887919db041 | [
"Apache-2.0"
] | 1 | 2021-05-05T19:39:37.000Z | 2021-05-05T19:39:37.000Z | Ejercicio/Ejercicio7.py | tavo1599/F.P2021 | a592804fb5ae30da55551d9e29819887919db041 | [
"Apache-2.0"
] | null | null | null | Ejercicio/Ejercicio7.py | tavo1599/F.P2021 | a592804fb5ae30da55551d9e29819887919db041 | [
"Apache-2.0"
] | null | null | null | #Datos de entrada
num=int(input("Ingrese un numero: "))
# Proceso
if num==10:
print("Calificacion: A")
elif num==9:
print("Calificacion: B")
elif num==8:
print("Calificacion: C")
elif num==7 and num==6:
print("Calificacion: D")
elif num<=5 and num>=0:
print("Calificacion: F")
| 20.142857 | 37 | 0.673759 | 46 | 282 | 4.130435 | 0.586957 | 0.447368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032787 | 0.134752 | 282 | 13 | 38 | 21.692308 | 0.745902 | 0.085106 | 0 | 0 | 0 | 0 | 0.367188 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.454545 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
22b828cde8bc59acbcf210743592fd1c629c4095 | 417 | py | Python | 2015/day-2/part2.py | nairraghav/advent-of-code-2019 | 274a2a4a59a8be39afb323356c592af5e1921e54 | [
"MIT"
] | null | null | null | 2015/day-2/part2.py | nairraghav/advent-of-code-2019 | 274a2a4a59a8be39afb323356c592af5e1921e54 | [
"MIT"
] | null | null | null | 2015/day-2/part2.py | nairraghav/advent-of-code-2019 | 274a2a4a59a8be39afb323356c592af5e1921e54 | [
"MIT"
] | null | null | null | ribbon_needed = 0
with open("input.txt", "r") as puzzle_input:
for line in puzzle_input:
length, width, height = [int(item) for item in line.split("x")]
dimensions = [length, width, height]
smallest_side = min(dimensions)
dimensions.remove(smallest_side)
second_smallest_side = min(dimensions)
ribbon_n... | 26.0625 | 81 | 0.736211 | 59 | 417 | 5 | 0.474576 | 0.20339 | 0.172881 | 0.169492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008475 | 0.151079 | 417 | 15 | 82 | 27.8 | 0.824859 | 0 | 0 | 0 | 0 | 0 | 0.026379 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
22c0b1d42f5e6f6bbd43886632ceb253dedae7b6 | 4,243 | py | Python | h1st/tests/core/test_schemas_inferrer.py | Mou-Ikkai/h1st | da47a8f1ad6af532c549e075fba19e3b3692de89 | [
"Apache-2.0"
] | 2 | 2020-08-21T07:49:08.000Z | 2020-08-21T07:49:13.000Z | h1st/tests/core/test_schemas_inferrer.py | Mou-Ikkai/h1st | da47a8f1ad6af532c549e075fba19e3b3692de89 | [
"Apache-2.0"
] | 3 | 2020-11-13T19:06:07.000Z | 2022-02-10T02:06:03.000Z | h1st/tests/core/test_schemas_inferrer.py | Mou-Ikkai/h1st | da47a8f1ad6af532c549e075fba19e3b3692de89 | [
"Apache-2.0"
] | null | null | null | from unittest import TestCase
from datetime import datetime
import pyarrow as pa
import numpy as np
import pandas as pd
from h1st.schema import SchemaInferrer
class SchemaInferrerTestCase(TestCase):
def test_infer_python(self):
inferrer = SchemaInferrer()
self.assertEqual(inferrer.infer_schema(1)... | 27.732026 | 82 | 0.418572 | 395 | 4,243 | 4.422785 | 0.189873 | 0.128792 | 0.197481 | 0.240412 | 0.514596 | 0.412708 | 0.337722 | 0.289067 | 0.195764 | 0.141958 | 0 | 0.056543 | 0.416451 | 4,243 | 152 | 83 | 27.914474 | 0.649031 | 0 | 0 | 0.41791 | 0 | 0 | 0.078247 | 0 | 0 | 0 | 0 | 0 | 0.11194 | 1 | 0.037313 | false | 0 | 0.044776 | 0 | 0.089552 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
22c0ccfce68cfbaf9d19c13daf2d7c341cf47746 | 373 | py | Python | c_core_librairies/exercise_a.py | nicolasessisbreton/pyzehe | 7497a0095d974ac912ce9826a27e21fd9d513942 | [
"Apache-2.0"
] | 1 | 2018-05-31T19:36:36.000Z | 2018-05-31T19:36:36.000Z | c_core_librairies/exercise_a.py | nicolasessisbreton/pyzehe | 7497a0095d974ac912ce9826a27e21fd9d513942 | [
"Apache-2.0"
] | 1 | 2018-05-31T01:10:51.000Z | 2018-05-31T01:10:51.000Z | c_core_librairies/exercise_a.py | nicolasessisbreton/pyzehe | 7497a0095d974ac912ce9826a27e21fd9d513942 | [
"Apache-2.0"
] | null | null | null | """
# refactoring
Refactoring is the key to successfull projects.
Refactor:
1) annuity_factor such that:
conversion to integer is handled,
no extra printing
2) policy_book into a class such that:
a function generates the book and the premium
stats and visualizations functions are avalaible
3) book_report su... | 21.941176 | 50 | 0.772118 | 55 | 373 | 5.181818 | 0.745455 | 0.084211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009868 | 0.184987 | 373 | 17 | 51 | 21.941176 | 0.927632 | 1.16622 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
22c52f6029df65fcd8fa5837d73e5ae4e6fb61e1 | 1,087 | py | Python | test/functional/test_device.py | Jagadambass/Graph-Neural-Networks | c8f1d87f8cd67d645c2f05f370be039acf05ca52 | [
"MIT"
] | null | null | null | test/functional/test_device.py | Jagadambass/Graph-Neural-Networks | c8f1d87f8cd67d645c2f05f370be039acf05ca52 | [
"MIT"
] | null | null | null | test/functional/test_device.py | Jagadambass/Graph-Neural-Networks | c8f1d87f8cd67d645c2f05f370be039acf05ca52 | [
"MIT"
] | null | null | null | from graphgallery.functional import device
import tensorflow as tf
import torch
def test_device():
# how about other backend?
# tf
assert isinstance(device("cpu", "tf"), str)
assert device() == 'cpu'
assert device("cpu", "tf") == 'CPU'
assert device("cpu", "tf") == 'cpu'
assert device("de... | 26.512195 | 68 | 0.596136 | 130 | 1,087 | 4.892308 | 0.230769 | 0.113208 | 0.117925 | 0.099057 | 0.410377 | 0.259434 | 0.259434 | 0.259434 | 0.172956 | 0.172956 | 0 | 0 | 0.24563 | 1,087 | 40 | 69 | 27.175 | 0.77561 | 0.033119 | 0 | 0.275862 | 0 | 0 | 0.115568 | 0 | 0 | 0 | 0 | 0 | 0.448276 | 1 | 0.034483 | false | 0.068966 | 0.103448 | 0 | 0.137931 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
22c7a70f2a69982c24184228f6ed64f2bdc7679e | 1,948 | py | Python | credentials_test.py | tinatasha/passwordgenerator | ad161e14779e975e98ad989c5df976ac3662f8d8 | [
"MIT"
] | null | null | null | credentials_test.py | tinatasha/passwordgenerator | ad161e14779e975e98ad989c5df976ac3662f8d8 | [
"MIT"
] | null | null | null | credentials_test.py | tinatasha/passwordgenerator | ad161e14779e975e98ad989c5df976ac3662f8d8 | [
"MIT"
] | null | null | null | import unittest
from password import Credentials
class TestCredentials(unittest.TestCase):
"""
Class to test behaviour of the credentials class
"""
def setUp(self):
"""
Setup method that defines instructions
"""
self.new_credentials = Credentials("Github","Tina","blackfa... | 31.419355 | 88 | 0.658624 | 195 | 1,948 | 6.358974 | 0.323077 | 0.133065 | 0.116129 | 0.093548 | 0.46129 | 0.297581 | 0.297581 | 0.271774 | 0.225806 | 0 | 0 | 0.002705 | 0.24076 | 1,948 | 62 | 89 | 31.419355 | 0.8357 | 0 | 0 | 0.241379 | 0 | 0 | 0.063187 | 0 | 0 | 0 | 0 | 0 | 0.241379 | 0 | null | null | 0.068966 | 0.068966 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
22cecf207eb3150281c5d9ddc72a0ab1531e7bdb | 5,341 | py | Python | visual_genome/models.py | hayyubi/visual-genome-driver | 412223bf1552b1927fb1219cfcf90dcd2599bf34 | [
"MIT"
] | null | null | null | visual_genome/models.py | hayyubi/visual-genome-driver | 412223bf1552b1927fb1219cfcf90dcd2599bf34 | [
"MIT"
] | null | null | null | visual_genome/models.py | hayyubi/visual-genome-driver | 412223bf1552b1927fb1219cfcf90dcd2599bf34 | [
"MIT"
] | null | null | null | """
Visual Genome Python API wrapper, models
"""
class Image:
"""
Image.
ID int
url hyperlink string
width int
height int
"""
def __init__(self, id, url, width, height, coco_id, flickr_id):
self.id = id
self.url = url
self.width ... | 24.058559 | 74 | 0.52874 | 607 | 5,341 | 4.439868 | 0.153213 | 0.037848 | 0.036735 | 0.050464 | 0.331725 | 0.267161 | 0.224861 | 0.092393 | 0.031169 | 0.031169 | 0 | 0.004821 | 0.378581 | 5,341 | 221 | 75 | 24.167421 | 0.807171 | 0.24209 | 0 | 0.457944 | 0 | 0.009346 | 0.056045 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.224299 | false | 0 | 0 | 0.121495 | 0.448598 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
22d061bf4dd94ca94a7f507ce7fe9f9a517f47a3 | 274 | py | Python | global_info.py | AkagiYui/AzurLaneTool | f00fa6e5c6371db72ee399d7bd178a81f39afd8b | [
"Apache-2.0"
] | null | null | null | global_info.py | AkagiYui/AzurLaneTool | f00fa6e5c6371db72ee399d7bd178a81f39afd8b | [
"Apache-2.0"
] | null | null | null | global_info.py | AkagiYui/AzurLaneTool | f00fa6e5c6371db72ee399d7bd178a81f39afd8b | [
"Apache-2.0"
] | null | null | null | from time import sleep
debug_mode = False
time_to_exit = False
exiting = False
exit_code = 0
def get_debug_mode():
return debug_mode
def trigger_exit(_exit_code):
global time_to_exit, exit_code
exit_code = _exit_code
time_to_exit = True
sleep(0.1)
| 14.421053 | 34 | 0.729927 | 45 | 274 | 4.044444 | 0.422222 | 0.21978 | 0.164835 | 0.175824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013889 | 0.211679 | 274 | 18 | 35 | 15.222222 | 0.828704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0.083333 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
22d53110de1903196c37bd847b098f2456b54f16 | 1,441 | py | Python | windows_packages_gpu/torch/nn/intrinsic/qat/modules/linear_relu.py | codeproject/DeepStack | d96368a3db1bc0266cb500ba3701d130834da0e6 | [
"Apache-2.0"
] | 353 | 2020-12-10T10:47:17.000Z | 2022-03-31T23:08:29.000Z | windows_packages_gpu/torch/nn/intrinsic/qat/modules/linear_relu.py | codeproject/DeepStack | d96368a3db1bc0266cb500ba3701d130834da0e6 | [
"Apache-2.0"
] | 80 | 2020-12-10T09:54:22.000Z | 2022-03-30T22:08:45.000Z | windows_packages_gpu/torch/nn/intrinsic/qat/modules/linear_relu.py | codeproject/DeepStack | d96368a3db1bc0266cb500ba3701d130834da0e6 | [
"Apache-2.0"
] | 63 | 2020-12-10T17:10:34.000Z | 2022-03-28T16:27:07.000Z | from __future__ import absolute_import, division, print_function, unicode_literals
import torch.nn.qat as nnqat
import torch.nn.intrinsic
import torch.nn.functional as F
class LinearReLU(nnqat.Linear):
r"""
A LinearReLU module fused from Linear and ReLU modules, attached with
FakeQuantize modules f... | 34.309524 | 89 | 0.66898 | 179 | 1,441 | 5.223464 | 0.430168 | 0.04492 | 0.041711 | 0.055615 | 0.053476 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01275 | 0.238029 | 1,441 | 41 | 90 | 35.146341 | 0.838798 | 0.420541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.25 | 0.125 | 0.6875 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
22da304d7553bb5adf64e1d52f39170a3b5aca59 | 249 | py | Python | jumbo_api/objects/profile.py | rolfberkenbosch/python-jumbo-api | 9ca35cbea6225dcc6108093539e76f110b1840b0 | [
"MIT"
] | 3 | 2020-07-24T08:44:13.000Z | 2021-09-05T06:24:01.000Z | jumbo_api/objects/profile.py | rolfberkenbosch/python-jumbo-api | 9ca35cbea6225dcc6108093539e76f110b1840b0 | [
"MIT"
] | 6 | 2020-04-30T19:12:24.000Z | 2021-03-23T19:21:19.000Z | jumbo_api/objects/profile.py | rolfberkenbosch/python-jumbo-api | 9ca35cbea6225dcc6108093539e76f110b1840b0 | [
"MIT"
] | 2 | 2020-04-30T14:59:12.000Z | 2020-08-30T19:15:57.000Z | from jumbo_api.objects.store import Store
class Profile(object):
def __init__(self, data):
self.id = data.get("identifier")
self.store = Store(data.get("store"))
def __str__(self):
return f"{self.id} {self.store}"
| 22.636364 | 45 | 0.634538 | 34 | 249 | 4.382353 | 0.558824 | 0.080537 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220884 | 249 | 10 | 46 | 24.9 | 0.768041 | 0 | 0 | 0 | 0 | 0 | 0.148594 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
22db31f9f12a464c13a70cead5b1a18013bd0add | 365 | py | Python | lazyblacksmith/views/ajax/__init__.py | jonathonfletcher/LazyBlacksmith | f244f0a15c795707b64e7cc53f82c6d6270691b5 | [
"BSD-3-Clause"
] | 49 | 2016-10-24T13:51:56.000Z | 2022-02-18T06:07:47.000Z | lazyblacksmith/views/ajax/__init__.py | jonathonfletcher/LazyBlacksmith | f244f0a15c795707b64e7cc53f82c6d6270691b5 | [
"BSD-3-Clause"
] | 84 | 2015-04-29T10:24:51.000Z | 2022-02-17T19:18:01.000Z | lazyblacksmith/views/ajax/__init__.py | jonathonfletcher/LazyBlacksmith | f244f0a15c795707b64e7cc53f82c6d6270691b5 | [
"BSD-3-Clause"
] | 34 | 2017-01-23T13:19:17.000Z | 2022-02-02T17:32:08.000Z | # -*- encoding: utf-8 -*-
from flask import request
from lazyblacksmith.utils.request import is_xhr
import logging
logger = logging.getLogger('lb.ajax')
def is_not_ajax():
"""
Return True if request is not ajax
This function is used in @cache annotation
to not cache direct call (http 40... | 21.470588 | 48 | 0.665753 | 51 | 365 | 4.686275 | 0.627451 | 0.041841 | 0.075314 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014545 | 0.246575 | 365 | 16 | 49 | 22.8125 | 0.854545 | 0.378082 | 0 | 0 | 0 | 0 | 0.037433 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
22de394896bd7be748b49ef5d7072349cfcc8ff2 | 1,770 | py | Python | 09_multiprocessing/prime_validation/primes_factor_test.py | jumploop/high_performance_python | da5b11735601b51f141975f9d59f14293cab16bb | [
"MIT"
] | null | null | null | 09_multiprocessing/prime_validation/primes_factor_test.py | jumploop/high_performance_python | da5b11735601b51f141975f9d59f14293cab16bb | [
"MIT"
] | null | null | null | 09_multiprocessing/prime_validation/primes_factor_test.py | jumploop/high_performance_python | da5b11735601b51f141975f9d59f14293cab16bb | [
"MIT"
] | null | null | null | import math
import time
def check_prime(n):
if n % 2 == 0:
return False, 2
for i in range(3, int(math.sqrt(n)) + 1):
if n % i == 0:
return False, i
return True, None
if __name__ == "__main__":
primes = []
t1 = time.time()
# 100109100129100151 big prime
# htt... | 36.122449 | 170 | 0.654802 | 188 | 1,770 | 6.042553 | 0.574468 | 0.057218 | 0.021127 | 0.075704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.403061 | 0.224859 | 1,770 | 48 | 171 | 36.875 | 0.424927 | 0.450282 | 0 | 0 | 0 | 0 | 0.027168 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.074074 | 0 | 0.222222 | 0.148148 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
22ecf4bdf03fca4f671513bb4a4ebe6ea6f1152b | 225 | py | Python | cocotb_test/run.py | canerbulduk/cocotb-test | ece092446a1e5de932db12dfb60441d6f322d5f1 | [
"BSD-2-Clause"
] | null | null | null | cocotb_test/run.py | canerbulduk/cocotb-test | ece092446a1e5de932db12dfb60441d6f322d5f1 | [
"BSD-2-Clause"
] | null | null | null | cocotb_test/run.py | canerbulduk/cocotb-test | ece092446a1e5de932db12dfb60441d6f322d5f1 | [
"BSD-2-Clause"
] | null | null | null |
import cocotb_test.simulator
# For partial back compatibility
def run(simulator=None, **kwargs):
if simulator:
sim = simulator(**kwargs)
sim.run()
else:
cocotb_test.simulator.run(**kwargs)
| 17.307692 | 43 | 0.648889 | 26 | 225 | 5.538462 | 0.576923 | 0.138889 | 0.263889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.24 | 225 | 12 | 44 | 18.75 | 0.842105 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
22f45d29bee95fa69837bee8b207676703b1cb59 | 844 | py | Python | examples/hello_world/src/Algorithm.py | algorithmiaio/algorithmia-adk-python | 1e5c6b9de08fe34260f3b4c03eb4596cccb4d070 | [
"MIT"
] | 4 | 2021-03-15T16:51:27.000Z | 2021-07-25T16:47:00.000Z | examples/hello_world/src/Algorithm.py | algorithmiaio/algorithmia-adk-python | 1e5c6b9de08fe34260f3b4c03eb4596cccb4d070 | [
"MIT"
] | 2 | 2021-02-25T21:13:30.000Z | 2021-05-03T14:49:41.000Z | examples/hello_world/src/Algorithm.py | algorithmiaio/algorithmia-adk-python | 1e5c6b9de08fe34260f3b4c03eb4596cccb4d070 | [
"MIT"
] | 1 | 2021-03-02T00:06:55.000Z | 2021-03-02T00:06:55.000Z | from Algorithmia import ADK
# API calls will begin at the apply() method, with the request body passed as 'input'
# For more details, see algorithmia.com/developers/algorithm-development/languages
def apply(input):
# If your apply function uses state that's loaded into memory via load, you can pass that loaded s... | 44.421053 | 120 | 0.761848 | 131 | 844 | 4.908397 | 0.625954 | 0.041991 | 0.079316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170616 | 844 | 18 | 121 | 46.888889 | 0.918571 | 0.798578 | 0 | 0 | 0 | 0 | 0.118012 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
22fadcf738c9cad6b1e0cd6d9126f92326318681 | 1,088 | py | Python | main.py | vu-telab/DAKOTA-moga-post-processing-tool | 2f41561bd8ca44c693e5994f7f68a1edc1a82361 | [
"MIT"
] | null | null | null | main.py | vu-telab/DAKOTA-moga-post-processing-tool | 2f41561bd8ca44c693e5994f7f68a1edc1a82361 | [
"MIT"
] | 4 | 2017-02-06T18:20:25.000Z | 2017-02-06T20:50:34.000Z | main.py | caseynbrock/DAKOTA-moga-post-processing-tool | 2f41561bd8ca44c693e5994f7f68a1edc1a82361 | [
"MIT"
] | null | null | null | # main.py
#
# currently just an example script I use to test my optimization_results module
#
# WARNING: design point numbers 0-indexed in pandas database, but
# eval_id column is the original 1-indexed value given by DAKOTA
import optimization_results as optr
def main():
a4 = optr.MogaOptimizationResults()
... | 35.096774 | 97 | 0.596507 | 156 | 1,088 | 4.012821 | 0.74359 | 0.086262 | 0.028754 | 0.041534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207692 | 0.283088 | 1,088 | 30 | 98 | 36.266667 | 0.594872 | 0.421875 | 0 | 0 | 0 | 0 | 0.01318 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0 | null | null | 0 | 0.090909 | null | null | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fe099e17f120425cb619611e6ff40d2da802127d | 3,572 | py | Python | src/zope/app/content/__init__.py | zopefoundation/zope.app.content | d4c0276ff90bceed2156d808ab6b42b85d7b3810 | [
"ZPL-2.1"
] | null | null | null | src/zope/app/content/__init__.py | zopefoundation/zope.app.content | d4c0276ff90bceed2156d808ab6b42b85d7b3810 | [
"ZPL-2.1"
] | 1 | 2017-04-22T19:53:21.000Z | 2017-04-23T16:44:58.000Z | src/zope/app/content/__init__.py | zopefoundation/zope.app.content | d4c0276ff90bceed2156d808ab6b42b85d7b3810 | [
"ZPL-2.1"
] | 1 | 2015-04-03T07:35:01.000Z | 2015-04-03T07:35:01.000Z | ##############################################################################
#
# Copyright (c) 2002 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOF... | 27.060606 | 78 | 0.606663 | 367 | 3,572 | 5.798365 | 0.3297 | 0.033835 | 0.039944 | 0.054041 | 0.18562 | 0.148026 | 0.132989 | 0.132989 | 0.132989 | 0.132989 | 0 | 0.016643 | 0.226204 | 3,572 | 131 | 79 | 27.267176 | 0.753256 | 0.657335 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.722222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
fe10f333391851cb33d5c6c2715480481922b0d0 | 2,993 | py | Python | heat/tests/test_rpc_listener_client.py | noironetworks/heat | 7cdadf1155f4d94cf8f967635b98e4012a7acfb7 | [
"Apache-2.0"
] | 1 | 2015-12-18T21:46:55.000Z | 2015-12-18T21:46:55.000Z | heat/tests/test_rpc_listener_client.py | noironetworks/heat | 7cdadf1155f4d94cf8f967635b98e4012a7acfb7 | [
"Apache-2.0"
] | 5 | 2019-08-14T06:46:03.000Z | 2021-12-13T20:01:25.000Z | heat/tests/test_rpc_listener_client.py | noironetworks/heat | 7cdadf1155f4d94cf8f967635b98e4012a7acfb7 | [
"Apache-2.0"
] | 3 | 2018-07-19T17:43:37.000Z | 2019-11-15T22:13:30.000Z | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the... | 42.15493 | 74 | 0.687604 | 371 | 2,993 | 5.237197 | 0.293801 | 0.088008 | 0.061246 | 0.06176 | 0.647452 | 0.647452 | 0.647452 | 0.647452 | 0.610396 | 0.610396 | 0 | 0.007961 | 0.244571 | 2,993 | 70 | 75 | 42.757143 | 0.851393 | 0.173739 | 0 | 0.708333 | 0 | 0 | 0.078049 | 0.029268 | 0 | 0 | 0 | 0 | 0.208333 | 1 | 0.041667 | false | 0 | 0.104167 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fe116c1174a46647c502098395333cc909588b1c | 684 | py | Python | amadeus/travel/trip_parser_jobs/_status.py | akshitsingla/amadeus-python | d8f3595e556b674998156f98d8a318045bb4c21c | [
"MIT"
] | 125 | 2018-04-09T07:27:24.000Z | 2022-02-22T11:45:20.000Z | amadeus/travel/trip_parser_jobs/_status.py | akshitsingla/amadeus-python | d8f3595e556b674998156f98d8a318045bb4c21c | [
"MIT"
] | 58 | 2018-03-29T14:58:01.000Z | 2022-03-17T10:18:07.000Z | amadeus/travel/trip_parser_jobs/_status.py | akshitsingla/amadeus-python | d8f3595e556b674998156f98d8a318045bb4c21c | [
"MIT"
] | 58 | 2018-04-06T10:56:20.000Z | 2022-03-04T01:23:24.000Z | from amadeus.client.decorator import Decorator
class TripParserStatus(Decorator, object):
def __init__(self, client, job_id):
Decorator.__init__(self, client)
self.job_id = job_id
def get(self, **params):
'''
Returns the parsing status and the link to the result
in cas... | 28.5 | 76 | 0.627193 | 83 | 684 | 5 | 0.590361 | 0.048193 | 0.06747 | 0.096386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004008 | 0.270468 | 684 | 23 | 77 | 29.73913 | 0.827655 | 0.377193 | 0 | 0 | 0 | 0 | 0.085635 | 0.085635 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
a3b55358fffe0e7cc61738673a1b1895170d48c3 | 9,891 | py | Python | mbta_python/__init__.py | dougzor/mbta_python | f277f48f8bf8048cb5c9c6307e672c37292e57f7 | [
"MIT"
] | null | null | null | mbta_python/__init__.py | dougzor/mbta_python | f277f48f8bf8048cb5c9c6307e672c37292e57f7 | [
"MIT"
] | null | null | null | mbta_python/__init__.py | dougzor/mbta_python | f277f48f8bf8048cb5c9c6307e672c37292e57f7 | [
"MIT"
] | null | null | null | import datetime
import requests
from mbta_python.models import Stop, Direction, Schedule, Mode, \
TripSchedule, Alert, StopWithMode, Prediction
HOST = "http://realtime.mbta.com/developer/api/v2"
def datetime_to_epoch(dt):
epoch = datetime.datetime.utcfromtimestamp(0)
return int((dt - epoch).total_second... | 37.324528 | 83 | 0.586897 | 1,149 | 9,891 | 4.871192 | 0.142733 | 0.0268 | 0.023227 | 0.027872 | 0.750759 | 0.70377 | 0.67018 | 0.659103 | 0.637306 | 0.616223 | 0 | 0.003975 | 0.338692 | 9,891 | 264 | 84 | 37.465909 | 0.851705 | 0.387827 | 0 | 0.525926 | 0 | 0 | 0.126291 | 0.023783 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103704 | false | 0 | 0.022222 | 0 | 0.22963 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a3c068d2dc2c438793e5de5d6de56af20454dc8f | 507 | py | Python | diskcatalog/core/views.py | rywjhzd/Cataloging-and-Visualizing-Cradles-of-Planet-Formation | 6d59ea9d9a07630721e19c554651bae2775962ac | [
"MIT"
] | null | null | null | diskcatalog/core/views.py | rywjhzd/Cataloging-and-Visualizing-Cradles-of-Planet-Formation | 6d59ea9d9a07630721e19c554651bae2775962ac | [
"MIT"
] | null | null | null | diskcatalog/core/views.py | rywjhzd/Cataloging-and-Visualizing-Cradles-of-Planet-Formation | 6d59ea9d9a07630721e19c554651bae2775962ac | [
"MIT"
] | null | null | null | from django.shortcuts import render
from .models import Disk
import os
def index(request):
context = {}
disk_list = Disk.objects.all()
context['disk_list'] = disk_list
return render(request, 'index.html', context)
#def index(request):
# module_dir = os.path.dirname(__file__)
# file_path = os.p... | 25.35 | 53 | 0.672584 | 69 | 507 | 4.73913 | 0.405797 | 0.122324 | 0.137615 | 0.116208 | 0.214067 | 0.214067 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185404 | 507 | 19 | 54 | 26.684211 | 0.791768 | 0.510848 | 0 | 0 | 0 | 0 | 0.078838 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
a3cae716974e2bebe27ab17e3253013ab6b42f7b | 782 | py | Python | dragontail/content/models/basicpage.py | tracon/dragontail | aae860acb5fe400015557f659b6d4221b939747a | [
"MIT"
] | null | null | null | dragontail/content/models/basicpage.py | tracon/dragontail | aae860acb5fe400015557f659b6d4221b939747a | [
"MIT"
] | null | null | null | dragontail/content/models/basicpage.py | tracon/dragontail | aae860acb5fe400015557f659b6d4221b939747a | [
"MIT"
] | null | null | null | # encoding: utf-8
from django.db import models
from wagtail.wagtailcore.models import Page
from wagtail.wagtailcore.fields import StreamField
from wagtail.wagtailcore import blocks
from wagtail.wagtailadmin.edit_handlers import FieldPanel, StreamFieldPanel
from wagtail.wagtailimages.blocks import ImageChooserBlock
... | 28.962963 | 75 | 0.742967 | 80 | 782 | 7.15 | 0.525 | 0.096154 | 0.115385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001548 | 0.173913 | 782 | 27 | 76 | 28.962963 | 0.883901 | 0.019182 | 0 | 0 | 0 | 0 | 0.023499 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.388889 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
a3d04895a38a041247e2747afe97c42331c17ee1 | 3,866 | py | Python | src/mpass/mpass/migrations/0001_initial.py | haltu/velmu-mpass-demo | 19eb0e14fa6710e4aee5d47c898cf570bf7621e5 | [
"MIT"
] | null | null | null | src/mpass/mpass/migrations/0001_initial.py | haltu/velmu-mpass-demo | 19eb0e14fa6710e4aee5d47c898cf570bf7621e5 | [
"MIT"
] | 11 | 2018-08-16T12:09:57.000Z | 2018-08-22T14:26:15.000Z | src/mpass/mpass/migrations/0001_initial.py | haltu/velmu-mpass-demosp | 31b609d1413ab1bd9f833f42eac30366a6d3e6d0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.10 on 2018-03-20 08:34
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import parler.models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
... | 42.483516 | 180 | 0.58148 | 338 | 3,866 | 6.461538 | 0.289941 | 0.040293 | 0.045788 | 0.042125 | 0.64652 | 0.64652 | 0.56044 | 0.56044 | 0.5 | 0.5 | 0 | 0.014593 | 0.290998 | 3,866 | 90 | 181 | 42.955556 | 0.782196 | 0.017848 | 0 | 0.597561 | 1 | 0 | 0.191355 | 0.06932 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.060976 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
a3e0c5f65be532d1c0caf49217af9908f82568d1 | 574 | py | Python | tests/test_comment.py | uwase-diane/min_pitch | 514ab5da150244e900fd51b6563173a905ef4f29 | [
"Unlicense"
] | 1 | 2020-11-29T16:18:50.000Z | 2020-11-29T16:18:50.000Z | tests/test_comment.py | uwase-diane/min_pitch | 514ab5da150244e900fd51b6563173a905ef4f29 | [
"Unlicense"
] | null | null | null | tests/test_comment.py | uwase-diane/min_pitch | 514ab5da150244e900fd51b6563173a905ef4f29 | [
"Unlicense"
] | null | null | null | import unittest
from app.models import Comment, Pitch
from app import db
class TestPitchComment(unittest.TestCase):
def setUp(self):
self.new_pitch = Pitch(post = "doit", category='Quotes')
self.new_comment = Comment(comment = "good comment", pitch=self.new_pitch)
def test_instance(se... | 33.764706 | 82 | 0.716028 | 74 | 574 | 5.405405 | 0.391892 | 0.1225 | 0.14 | 0.1575 | 0.2525 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1777 | 574 | 17 | 83 | 33.764706 | 0.847458 | 0 | 0 | 0 | 0 | 0 | 0.067826 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
a3eb6e2df01a9295d0fd4c9d2d237ab568ea9c17 | 62 | py | Python | 07/c/3 - Square Census.py | Surferlul/csc-python-solutions | bea99e5e1e344d17fb2cb29d8bcbc6b108e24cee | [
"MIT"
] | null | null | null | 07/c/3 - Square Census.py | Surferlul/csc-python-solutions | bea99e5e1e344d17fb2cb29d8bcbc6b108e24cee | [
"MIT"
] | null | null | null | 07/c/3 - Square Census.py | Surferlul/csc-python-solutions | bea99e5e1e344d17fb2cb29d8bcbc6b108e24cee | [
"MIT"
] | null | null | null | n=int(input())
c = 1
while c**2 < n:
print(c**2)
c += 1
| 10.333333 | 15 | 0.451613 | 14 | 62 | 2 | 0.571429 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0.290323 | 62 | 5 | 16 | 12.4 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a3f7032251ab8fdd92446dda433cb7125e3c866d | 447 | py | Python | examples/py/async-basic.py | voBits/ccxt | edd2dd92053bd06232769a63465a43912b21eda0 | [
"MIT"
] | 73 | 2018-05-15T00:53:50.000Z | 2022-03-07T14:45:11.000Z | examples/py/async-basic.py | voBits/ccxt | edd2dd92053bd06232769a63465a43912b21eda0 | [
"MIT"
] | 46 | 2020-01-06T07:32:19.000Z | 2021-07-26T06:33:33.000Z | examples/py/async-basic.py | voBits/ccxt | edd2dd92053bd06232769a63465a43912b21eda0 | [
"MIT"
] | 11 | 2018-05-15T00:09:30.000Z | 2022-03-07T14:45:27.000Z | # -*- coding: utf-8 -*-
import asyncio
import os
import sys
root = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
sys.path.append(root + '/python')
import ccxt.async as ccxt # noqa: E402
async def test_gdax():
gdax = ccxt.gdax()
markets = await gdax.load_markets()
await g... | 21.285714 | 83 | 0.695749 | 65 | 447 | 4.492308 | 0.569231 | 0.082192 | 0.133562 | 0.15411 | 0.15411 | 0.15411 | 0.15411 | 0.15411 | 0 | 0 | 0 | 0.01061 | 0.1566 | 447 | 20 | 84 | 22.35 | 0.763926 | 0.071588 | 0 | 0 | 0 | 0 | 0.036408 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.307692 | null | null | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
a3f86c1b680627a4f18d2261e3c26090baebd672 | 261 | py | Python | xview/datasets/wrapper.py | ethz-asl/modular_semantic_segmentation | 7c950f24df11540a7ddae4ff806d5b31934a3210 | [
"BSD-3-Clause"
] | 20 | 2018-08-01T15:02:59.000Z | 2021-04-19T07:22:17.000Z | xview/datasets/wrapper.py | davesean/modular_semantic_segmentation | 5f9e34243915b862e8fef5e6195f1e29f4cebf50 | [
"BSD-3-Clause"
] | null | null | null | xview/datasets/wrapper.py | davesean/modular_semantic_segmentation | 5f9e34243915b862e8fef5e6195f1e29f4cebf50 | [
"BSD-3-Clause"
] | 9 | 2018-08-01T15:03:03.000Z | 2019-12-17T05:12:48.000Z | from abc import ABCMeta, abstractmethod
class DataWrapper:
"""Interface for access to datasets."""
__metaclass__ = ABCMeta
@abstractmethod
def next(self):
"""Returns next minibatch for training."""
return NotImplementedError
| 20.076923 | 50 | 0.685824 | 25 | 261 | 7 | 0.84 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.233716 | 261 | 12 | 51 | 21.75 | 0.875 | 0.268199 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.833333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a3f937683bc5952ca13a05b1c4f5742ed9f21027 | 2,307 | py | Python | partd/core.py | jrbourbeau/partd | 74016a296a760de9c7a0e0d4b012a3478c9a0831 | [
"BSD-3-Clause"
] | 2 | 2018-12-29T13:47:40.000Z | 2018-12-29T13:47:49.000Z | partd/core.py | jrbourbeau/partd | 74016a296a760de9c7a0e0d4b012a3478c9a0831 | [
"BSD-3-Clause"
] | 2 | 2021-05-11T16:00:55.000Z | 2021-08-23T20:45:22.000Z | partd/core.py | jrbourbeau/partd | 74016a296a760de9c7a0e0d4b012a3478c9a0831 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import absolute_import
import os
import shutil
import locket
import string
from toolz import memoize
from contextlib import contextmanager
from .utils import nested_get, flatten
# http://stackoverflow.com/questions/295135/turn-a-string-into-a-valid-filename-in-python
valid_chars = "-_.() " + string.... | 24.806452 | 89 | 0.604681 | 288 | 2,307 | 4.666667 | 0.34375 | 0.052083 | 0.035714 | 0.02381 | 0.154762 | 0.06994 | 0.06994 | 0.06994 | 0.06994 | 0.06994 | 0 | 0.004714 | 0.264413 | 2,307 | 92 | 90 | 25.076087 | 0.787272 | 0.118769 | 0 | 0.140351 | 0 | 0 | 0.003027 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.140351 | 0.052632 | 0.614035 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
a3ff284c249c767a8e6d1b66a73bf03b2d790a9e | 366 | py | Python | packages/starcheck/post_regress.py | sot/ska_testr | dd84b89d0b5ebf6158c6cda4c1df432138044e20 | [
"MIT"
] | null | null | null | packages/starcheck/post_regress.py | sot/ska_testr | dd84b89d0b5ebf6158c6cda4c1df432138044e20 | [
"MIT"
] | 27 | 2016-10-19T19:39:46.000Z | 2022-03-04T14:56:40.000Z | packages/starcheck/post_regress.py | sot/ska_testr | dd84b89d0b5ebf6158c6cda4c1df432138044e20 | [
"MIT"
] | null | null | null | import os
from testr.packages import make_regress_files
regress_files = ['starcheck.txt',
'starcheck/pcad_att_check.txt']
clean = {'starcheck.txt': [(r'\s*Run on.*[\n\r]*', ''),
(os.environ['SKA'], '')],
'starcheck/pcad_att_check.txt': [(os.environ['SKA'], '')]}
m... | 30.5 | 67 | 0.592896 | 45 | 366 | 4.6 | 0.466667 | 0.231884 | 0.154589 | 0.222222 | 0.502415 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215847 | 366 | 11 | 68 | 33.272727 | 0.721254 | 0 | 0 | 0 | 0 | 0 | 0.289617 | 0.153005 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4301cf37bd9ece6b54456c22562dfc5aa8e8a7cb | 748 | py | Python | product_details/utils.py | gene1wood/django-product-details | 53f245d76fa11d073ba686e0ece7b0293ec21942 | [
"BSD-3-Clause"
] | null | null | null | product_details/utils.py | gene1wood/django-product-details | 53f245d76fa11d073ba686e0ece7b0293ec21942 | [
"BSD-3-Clause"
] | null | null | null | product_details/utils.py | gene1wood/django-product-details | 53f245d76fa11d073ba686e0ece7b0293ec21942 | [
"BSD-3-Clause"
] | null | null | null | from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from product_details import settings_defaults
def settings_fallback(key):
"""Grab user-defined settings, or fall back to default."""
try:
return getattr(settings, key)
except (AttributeError, ImportError, Imp... | 29.92 | 63 | 0.720588 | 91 | 748 | 5.802198 | 0.43956 | 0.075758 | 0.079545 | 0.07197 | 0.094697 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003401 | 0.213904 | 748 | 24 | 64 | 31.166667 | 0.894558 | 0.156417 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.411765 | 0 | 0.823529 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
430bbb9266cf6f1301fe26015af1bcd016d7ae1a | 862 | py | Python | src/gauss_n.py | Konstantysz/InterGen | 1a1d0bde165f864daea70c6339a9b8426343fdd9 | [
"MIT"
] | null | null | null | src/gauss_n.py | Konstantysz/InterGen | 1a1d0bde165f864daea70c6339a9b8426343fdd9 | [
"MIT"
] | null | null | null | src/gauss_n.py | Konstantysz/InterGen | 1a1d0bde165f864daea70c6339a9b8426343fdd9 | [
"MIT"
] | null | null | null | from numba import jit
import numpy as np
@jit(nopython=True, parallel=True)
def gauss_n(X, Y, mu_x = 0.0, mu_y = 0.0, amp = 1.0, sigma = 3.0):
'''
Function that generates 2D discrete gaussian distribution.
Boosted with Numba: works in C and with parallel computing.
Parameters
----------
X : nu... | 26.121212 | 66 | 0.598608 | 120 | 862 | 4.241667 | 0.441667 | 0.157171 | 0.086444 | 0.11002 | 0.117878 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021595 | 0.301624 | 862 | 33 | 67 | 26.121212 | 0.82392 | 0.588167 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
430f3dd58c283b4aea777f240b325f4a7f3a3026 | 332 | py | Python | run.py | seanzhangJM/torch_model_demo | 3ab3e841e77cf780198516c1910c906acdd3082d | [
"MIT"
] | null | null | null | run.py | seanzhangJM/torch_model_demo | 3ab3e841e77cf780198516c1910c906acdd3082d | [
"MIT"
] | null | null | null | run.py | seanzhangJM/torch_model_demo | 3ab3e841e77cf780198516c1910c906acdd3082d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# _*_ coding: utf-8 _*_
# @Time : 2021/12/27 14:04
# @Author : zhangjianming
# @Email : YYDSPanda@163.com
# @File : run_task.py
# @Software: PyCharm
import sys
sys.path.extend(["."])
from torch_model_demo.task.run_task import train_fashion_demo
if __name__ == '__main__':
train_fas... | 19.529412 | 61 | 0.683735 | 47 | 332 | 4.404255 | 0.808511 | 0.067633 | 0.154589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057971 | 0.168675 | 332 | 16 | 62 | 20.75 | 0.692029 | 0.5 | 0 | 0 | 0 | 0 | 0.056604 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
43118cb0eb019b0c97db7741f34ce6ca041f8dc1 | 296 | py | Python | ASR_TransV1/Load_sp_model.py | HariKrishna-Vydana/ASR_Transformer | a37dc7f1add148b14ca1d265d72fc4e9d9dd0fc0 | [
"MIT"
] | 1 | 2020-10-25T00:21:40.000Z | 2020-10-25T00:21:40.000Z | ASR_TransV1/Load_sp_model.py | HariKrishna-Vydana/ASR_Transformer | a37dc7f1add148b14ca1d265d72fc4e9d9dd0fc0 | [
"MIT"
] | null | null | null | ASR_TransV1/Load_sp_model.py | HariKrishna-Vydana/ASR_Transformer | a37dc7f1add148b14ca1d265d72fc4e9d9dd0fc0 | [
"MIT"
] | 1 | 2021-09-08T10:32:55.000Z | 2021-09-08T10:32:55.000Z | #!/usr/bin/python
import sys
import os
from os.path import join, isdir
import sentencepiece as spm
#--------------------------
def Load_sp_models(PATH):
PATH_model = spm.SentencePieceProcessor()
PATH_model.Load(join(PATH))
return PATH_model
#--------------------------
| 19.733333 | 49 | 0.581081 | 34 | 296 | 4.911765 | 0.588235 | 0.161677 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172297 | 296 | 14 | 50 | 21.142857 | 0.681633 | 0.22973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.5 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
4312500ffaaa31023ff14a2c64c200a842122fb2 | 2,213 | py | Python | fiepipedesktoplib/gitlabserver/shell/manager.py | leith-bartrich/fiepipe_desktop | 5136141d67a59e9a2afb79f368a6a02f2d61d2da | [
"MIT"
] | null | null | null | fiepipedesktoplib/gitlabserver/shell/manager.py | leith-bartrich/fiepipe_desktop | 5136141d67a59e9a2afb79f368a6a02f2d61d2da | [
"MIT"
] | null | null | null | fiepipedesktoplib/gitlabserver/shell/manager.py | leith-bartrich/fiepipe_desktop | 5136141d67a59e9a2afb79f368a6a02f2d61d2da | [
"MIT"
] | null | null | null | import typing
from fiepipelib.gitlabserver.data.gitlab_server import GitLabServer
from fiepipelib.gitlabserver.routines.manager import GitLabServerManagerInteractiveRoutines
from fiepipedesktoplib.gitlabserver.shell.gitlab_hostname_input_ui import GitLabHostnameInputDefaultShellUI
from fiepipedesktoplib.gitlabserver.s... | 49.177778 | 129 | 0.770899 | 197 | 2,213 | 8.390863 | 0.335025 | 0.101633 | 0.099819 | 0.114943 | 0.079855 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001089 | 0.169905 | 2,213 | 44 | 130 | 50.295455 | 0.898748 | 0.019431 | 0 | 0 | 0 | 0 | 0.021679 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15625 | false | 0 | 0.34375 | 0.0625 | 0.65625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
4312e79aaad5f7fe2f84f838da0893835b628082 | 470 | py | Python | fairseq/models/wav2vec/eteh_model/transformer/repeat.py | gaochangfeng/fairseq | 70a468230b8fb558caa394322b02fface663e17a | [
"MIT"
] | null | null | null | fairseq/models/wav2vec/eteh_model/transformer/repeat.py | gaochangfeng/fairseq | 70a468230b8fb558caa394322b02fface663e17a | [
"MIT"
] | null | null | null | fairseq/models/wav2vec/eteh_model/transformer/repeat.py | gaochangfeng/fairseq | 70a468230b8fb558caa394322b02fface663e17a | [
"MIT"
] | null | null | null | import torch
class MultiSequential(torch.nn.Sequential):
"""Multi-input multi-output torch.nn.Sequential"""
def forward(self, *args):
for m in self:
args = m(*args)
return args
def repeat(N, fn):
"""repeat module N times
:param int N: repeat time
:param function fn:... | 21.363636 | 54 | 0.634043 | 61 | 470 | 4.885246 | 0.52459 | 0.04698 | 0.114094 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.255319 | 470 | 21 | 55 | 22.380952 | 0.851429 | 0.406383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
431afd38b43ccf5ad48d645a4d0327a638eb0852 | 441 | py | Python | dbestclient/ml/density.py | horeapinca/DBEstClient | 6ccbb24853c31f2a8cc567e03c09ca7aa31e2d26 | [
"BSD-2-Clause"
] | null | null | null | dbestclient/ml/density.py | horeapinca/DBEstClient | 6ccbb24853c31f2a8cc567e03c09ca7aa31e2d26 | [
"BSD-2-Clause"
] | null | null | null | dbestclient/ml/density.py | horeapinca/DBEstClient | 6ccbb24853c31f2a8cc567e03c09ca7aa31e2d26 | [
"BSD-2-Clause"
] | 1 | 2020-09-28T14:22:54.000Z | 2020-09-28T14:22:54.000Z | # Created by Qingzhi Ma at 2019-07-23
# All right reserved
# Department of Computer Science
# the University of Warwick
# Q.Ma.2@warwick.ac.uk
from sklearn.neighbors import KernelDensity
class DBEstDensity:
def __init__(self, kernel=None):
if kernel is None:
self.kernel = 'gaussian'
s... | 24.5 | 59 | 0.671202 | 62 | 441 | 4.709677 | 0.66129 | 0.10274 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026786 | 0.238095 | 441 | 18 | 60 | 24.5 | 0.842262 | 0.29932 | 0 | 0 | 0 | 0 | 0.026316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
43278d398c31ca35a7dadee17fca420abdd89662 | 608 | py | Python | api/urls.py | nf1s/covid-backend | 5529cccad2b0b596d8a720fd6211035e6376820f | [
"MIT"
] | null | null | null | api/urls.py | nf1s/covid-backend | 5529cccad2b0b596d8a720fd6211035e6376820f | [
"MIT"
] | 1 | 2020-03-21T16:20:28.000Z | 2020-03-21T16:20:28.000Z | api/urls.py | ahmednafies/covid-backend | 5529cccad2b0b596d8a720fd6211035e6376820f | [
"MIT"
] | null | null | null | from sanic import Blueprint
from sanic_transmute import add_route
from .views import (
get_all,
get_status_by_country_id,
get_status_by_country_name,
get_deaths,
get_active_cases,
get_recovered_cases,
get_confirmed_cases,
list_countries,
)
cases = Blueprint("cases", url_prefix="/cases")... | 26.434783 | 47 | 0.804276 | 93 | 608 | 4.774194 | 0.258065 | 0.162162 | 0.234234 | 0.252252 | 0.38964 | 0.13964 | 0.13964 | 0 | 0 | 0 | 0 | 0 | 0.121711 | 608 | 22 | 48 | 27.636364 | 0.831461 | 0 | 0 | 0 | 0 | 0 | 0.018092 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.095238 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
432938f7572380d6dce4bd872cd6f38e7889cce7 | 863 | py | Python | app/migrations/0005_auto_20210619_2310.py | hungitptit/boecdjango | a1125bd292b5fd3a0610eda6e592017f8268c96c | [
"MIT"
] | null | null | null | app/migrations/0005_auto_20210619_2310.py | hungitptit/boecdjango | a1125bd292b5fd3a0610eda6e592017f8268c96c | [
"MIT"
] | null | null | null | app/migrations/0005_auto_20210619_2310.py | hungitptit/boecdjango | a1125bd292b5fd3a0610eda6e592017f8268c96c | [
"MIT"
] | null | null | null | # Generated by Django 3.2.4 on 2021-06-19 16:10
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('app', '0004_auto_20210619_1802'),
]
operations = [
migrations.AddField(
model_name='comment',
... | 27.83871 | 116 | 0.602549 | 93 | 863 | 5.408602 | 0.537634 | 0.107356 | 0.137177 | 0.161034 | 0.357853 | 0.357853 | 0 | 0 | 0 | 0 | 0 | 0.054927 | 0.282735 | 863 | 30 | 117 | 28.766667 | 0.757674 | 0.052144 | 0 | 0.375 | 1 | 0 | 0.110294 | 0.028186 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.208333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
432e74ae233189ec17dd1f03b1127352c4327439 | 1,518 | py | Python | courses/models.py | Biswa5812/CaramelIT-Django-Backend | 1f896cb75295d17345a862b99837f0bdf60868b4 | [
"MIT"
] | 1 | 2021-08-06T08:36:40.000Z | 2021-08-06T08:36:40.000Z | courses/models.py | Biswa5812/CaramelIT-Django-Backend | 1f896cb75295d17345a862b99837f0bdf60868b4 | [
"MIT"
] | 7 | 2021-04-08T21:58:03.000Z | 2022-01-13T03:09:17.000Z | courses/models.py | Biswa5812/CaramelIT-Django-Backend | 1f896cb75295d17345a862b99837f0bdf60868b4 | [
"MIT"
] | 3 | 2020-07-21T07:01:31.000Z | 2021-01-16T10:47:30.000Z | from django.db import models
from django.utils import timezone
# Course Category
class Course_category(models.Model):
category_id = models.AutoField(primary_key=True)
category_name = models.CharField(max_length=100)
date_of_creation = models.DateTimeField(default=timezone.now)
# Course Subcategory
class ... | 42.166667 | 81 | 0.78722 | 189 | 1,518 | 6.100529 | 0.232804 | 0.117086 | 0.140503 | 0.187337 | 0.510841 | 0.510841 | 0.457069 | 0.355594 | 0.311362 | 0.311362 | 0 | 0.018713 | 0.119895 | 1,518 | 35 | 82 | 43.371429 | 0.844311 | 0.038208 | 0 | 0.296296 | 0 | 0 | 0.002062 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.074074 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
43335b3cc2cb4c21d4856a039a41d9b440f02982 | 951 | py | Python | Dominant_cell.py | xi6th/Python_Algorithm | 05852b6fe133df2d83ae464b779b0818b173919d | [
"MIT"
] | null | null | null | Dominant_cell.py | xi6th/Python_Algorithm | 05852b6fe133df2d83ae464b779b0818b173919d | [
"MIT"
] | null | null | null | Dominant_cell.py | xi6th/Python_Algorithm | 05852b6fe133df2d83ae464b779b0818b173919d | [
"MIT"
] | null | null | null | #!/bin/python3
import math
import os
import random
import re
import sys
from typing import Counter
#
# Complete the 'numCells' function below.
#
# The function is expected to return an INTEGER.
# The function accepts 2D_INTEGER_ARRAY grid as parameter.
#
def numCells(grid):
# Write your code here
n = []
... | 19.8125 | 63 | 0.602524 | 125 | 951 | 4.464 | 0.592 | 0.064516 | 0.046595 | 0.060932 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015385 | 0.24816 | 951 | 47 | 64 | 20.234043 | 0.765035 | 0.599369 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 0 | 1 | 0.0625 | false | 0 | 0.375 | 0 | 0.4375 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
433a593c55202319269a697379cad0ea0390e623 | 555 | py | Python | applications/serializers.py | junlegend/back-landing-career | cfc01b439629e48ff058fa1693af8d5a3a37949a | [
"MIT"
] | null | null | null | applications/serializers.py | junlegend/back-landing-career | cfc01b439629e48ff058fa1693af8d5a3a37949a | [
"MIT"
] | null | null | null | applications/serializers.py | junlegend/back-landing-career | cfc01b439629e48ff058fa1693af8d5a3a37949a | [
"MIT"
] | null | null | null | from rest_framework import serializers
from applications.models import Application
class ApplicationSerializer(serializers.Serializer):
content = serializers.JSONField()
portfolio = serializers.FileField()
class ApplicationAdminSerializer(serializers.ModelSerializer):
class Meta:
model = Appli... | 32.647059 | 86 | 0.736937 | 47 | 555 | 8.638298 | 0.574468 | 0.128079 | 0.152709 | 0.172414 | 0.280788 | 0.280788 | 0.280788 | 0 | 0 | 0 | 0 | 0 | 0.172973 | 555 | 17 | 87 | 32.647059 | 0.884532 | 0 | 0 | 0.307692 | 0 | 0 | 0.091727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
4a36242f8ee5ebc5d59f9cbb0e67fddbadbb4a7c | 729 | py | Python | questionanswering/models/pooling.py | lvying1991/KBQA-System | 55e69c8320df3f7b199860afc76e8a0ab66f540e | [
"Apache-2.0"
] | 2 | 2019-09-10T13:20:27.000Z | 2019-11-14T12:58:40.000Z | questionanswering/models/pooling.py | lvying1991/KBQA-System | 55e69c8320df3f7b199860afc76e8a0ab66f540e | [
"Apache-2.0"
] | null | null | null | questionanswering/models/pooling.py | lvying1991/KBQA-System | 55e69c8320df3f7b199860afc76e8a0ab66f540e | [
"Apache-2.0"
] | null | null | null | import torch
from torch import nn as nn
from torch import autograd
class LogSumExpPooling1d(nn.Module):
"""Applies a 1D LogSumExp pooling over an input signal composed of several input planes.
LogSumExp is a smooth approximation of the max function.
在由多个输入平面组成的输入信号上应用1D LogSumExp池。
LogSumExp是max函数的平滑近... | 25.137931 | 92 | 0.650206 | 87 | 729 | 5.195402 | 0.632184 | 0.039823 | 0.066372 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018116 | 0.242798 | 729 | 28 | 93 | 26.035714 | 0.800725 | 0.430727 | 0 | 0 | 0 | 0 | 0.005319 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.230769 | 0.076923 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
4a548d3916f1d9f7cfe21d9195722cae0fa08812 | 5,094 | py | Python | sympy/series/tests/test_demidovich.py | msgoff/sympy | 1e7daef7514902f5e89718fa957b7b36c6669a10 | [
"BSD-3-Clause"
] | null | null | null | sympy/series/tests/test_demidovich.py | msgoff/sympy | 1e7daef7514902f5e89718fa957b7b36c6669a10 | [
"BSD-3-Clause"
] | null | null | null | sympy/series/tests/test_demidovich.py | msgoff/sympy | 1e7daef7514902f5e89718fa957b7b36c6669a10 | [
"BSD-3-Clause"
] | null | null | null | from sympy import (
limit,
Symbol,
oo,
sqrt,
Rational,
log,
exp,
cos,
sin,
tan,
pi,
asin,
together,
root,
S,
)
# Numbers listed with the tests refer to problem numbers in the book
# "Anti-demidovich, problemas resueltos, Ed. URSS"
x = Symbol("x")
def test_... | 30.686747 | 86 | 0.458186 | 886 | 5,094 | 2.594808 | 0.145598 | 0.248804 | 0.024358 | 0.07438 | 0.286646 | 0.110483 | 0.035668 | 0.020009 | 0.020009 | 0 | 0 | 0.118101 | 0.313506 | 5,094 | 165 | 87 | 30.872727 | 0.539319 | 0.085395 | 0 | 0.076923 | 0 | 0 | 0.001957 | 0 | 0 | 0 | 0 | 0 | 0.461538 | 1 | 0.162393 | false | 0 | 0.008547 | 0.017094 | 0.188034 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4a618ed57cbfdde42c612f538425cdaf22f7923a | 20,082 | py | Python | yandex/cloud/access/access_pb2.py | IIKovalenko/python-sdk | 980e2c5d848eadb42799132b35a9f58ab7b27157 | [
"MIT"
] | 1 | 2019-06-07T10:45:58.000Z | 2019-06-07T10:45:58.000Z | yandex/cloud/access/access_pb2.py | IIKovalenko/python-sdk | 980e2c5d848eadb42799132b35a9f58ab7b27157 | [
"MIT"
] | null | null | null | yandex/cloud/access/access_pb2.py | IIKovalenko/python-sdk | 980e2c5d848eadb42799132b35a9f58ab7b27157 | [
"MIT"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: yandex/cloud/access/access.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf i... | 40.900204 | 1,963 | 0.7684 | 2,376 | 20,082 | 6.204545 | 0.100589 | 0.034731 | 0.065731 | 0.039886 | 0.651404 | 0.609212 | 0.518926 | 0.469271 | 0.447565 | 0.443495 | 0 | 0.045196 | 0.105368 | 20,082 | 490 | 1,964 | 40.983673 | 0.775353 | 0.044517 | 0 | 0.623288 | 1 | 0.015982 | 0.23245 | 0.191196 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.015982 | 0 | 0.015982 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4aa67ef1976bb462a8e4797f9376dea3623f23b3 | 4,432 | py | Python | test/test_random.py | kevinintel/neural-compressor | b57645566aeff8d3c18dc49d2739a583c072f940 | [
"Apache-2.0"
] | 100 | 2020-12-01T02:40:12.000Z | 2021-09-09T08:14:22.000Z | test/test_random.py | kevinintel/neural-compressor | b57645566aeff8d3c18dc49d2739a583c072f940 | [
"Apache-2.0"
] | 25 | 2021-01-05T00:16:17.000Z | 2021-09-10T03:24:01.000Z | test/test_random.py | kevinintel/neural-compressor | b57645566aeff8d3c18dc49d2739a583c072f940 | [
"Apache-2.0"
] | 25 | 2020-12-01T19:07:08.000Z | 2021-08-30T14:20:07.000Z | """Tests for quantization"""
import numpy as np
import unittest
import os
import shutil
import yaml
import tensorflow as tf
def build_fake_yaml():
fake_yaml = '''
model:
name: fake_yaml
framework: tensorflow
inputs: x
outputs: op_to_store
dev... | 32.115942 | 108 | 0.559792 | 495 | 4,432 | 4.818182 | 0.252525 | 0.036897 | 0.022642 | 0.055346 | 0.761426 | 0.748008 | 0.695178 | 0.695178 | 0.695178 | 0.695178 | 0 | 0.02168 | 0.333935 | 4,432 | 137 | 109 | 32.350365 | 0.786247 | 0.004964 | 0 | 0.573913 | 0 | 0 | 0.243262 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06087 | false | 0 | 0.086957 | 0 | 0.165217 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4aa9bbcefe6db481163c6d0a501873756cbebc17 | 565 | py | Python | src/sentry/receivers/experiments.py | FelixSchwarz/sentry | 7c92c4fa2b6b9f214764f48c82594acae1549e52 | [
"BSD-3-Clause"
] | null | null | null | src/sentry/receivers/experiments.py | FelixSchwarz/sentry | 7c92c4fa2b6b9f214764f48c82594acae1549e52 | [
"BSD-3-Clause"
] | null | null | null | src/sentry/receivers/experiments.py | FelixSchwarz/sentry | 7c92c4fa2b6b9f214764f48c82594acae1549e52 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import print_function, absolute_import
from sentry import analytics
from sentry.signals import join_request_created, join_request_link_viewed
@join_request_created.connect(weak=False)
def record_join_request_created(member, **kwargs):
analytics.record(
"join_request.created", member_id=me... | 33.235294 | 91 | 0.823009 | 74 | 565 | 5.878378 | 0.310811 | 0.202299 | 0.165517 | 0.193103 | 0.473563 | 0.305747 | 0.165517 | 0 | 0 | 0 | 0 | 0 | 0.095575 | 565 | 16 | 92 | 35.3125 | 0.851272 | 0 | 0 | 0 | 0 | 0 | 0.077876 | 0.042478 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0 | 0.454545 | 0.090909 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4abeb59415a08109665cd4a0b2b19c7296f2ab4d | 6,316 | py | Python | src/abaqus/Material/Elastic/Linear/Elastic.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | 7 | 2022-01-21T09:15:45.000Z | 2022-02-15T09:31:58.000Z | src/abaqus/Material/Elastic/Linear/Elastic.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | null | null | null | src/abaqus/Material/Elastic/Linear/Elastic.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | null | null | null | from abaqusConstants import *
from .FailStrain import FailStrain
from .FailStress import FailStress
class Elastic:
"""The Elastic object specifies elastic material properties.
Notes
-----
This object can be accessed by:
.. code-block:: python
import material
... | 32.22449 | 103 | 0.572198 | 681 | 6,316 | 5.28928 | 0.249633 | 0.033037 | 0.061355 | 0.070794 | 0.53859 | 0.507496 | 0.461133 | 0.425597 | 0.396446 | 0.396446 | 0 | 0.039389 | 0.356871 | 6,316 | 195 | 104 | 32.389744 | 0.847366 | 0.773908 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.166667 | 0.25 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
4ac2c45edfed557313913a01b6d6e982c2b62143 | 858 | py | Python | setup.py | methane/pymemcache | 0ff5430cdcef7ed52fb3edc2a90c1c7d208ad77f | [
"Apache-2.0"
] | null | null | null | setup.py | methane/pymemcache | 0ff5430cdcef7ed52fb3edc2a90c1c7d208ad77f | [
"Apache-2.0"
] | null | null | null | setup.py | methane/pymemcache | 0ff5430cdcef7ed52fb3edc2a90c1c7d208ad77f | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup, find_packages
from pymemcache import __version__
setup(
name = 'pymemcache',
version = __version__,
author = 'Charles Gordon',
author_email = 'charles@pinterest.com',
packages = find_packages(),
tests_require = ['nose>=1.0'],
install_req... | 29.586207 | 72 | 0.632867 | 90 | 858 | 5.877778 | 0.622222 | 0.143667 | 0.189036 | 0.098299 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015106 | 0.228438 | 858 | 28 | 73 | 30.642857 | 0.783988 | 0.02331 | 0 | 0 | 0 | 0 | 0.456938 | 0.02512 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.086957 | 0 | 0.086957 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4ac74e03723bd148ef8b0804cbefc4d25af183f4 | 2,577 | py | Python | orders/views.py | DobromirZlatkov/anteya | 9c66c64643350ad1710bcf60e2e38169e389a66b | [
"MIT"
] | null | null | null | orders/views.py | DobromirZlatkov/anteya | 9c66c64643350ad1710bcf60e2e38169e389a66b | [
"MIT"
] | null | null | null | orders/views.py | DobromirZlatkov/anteya | 9c66c64643350ad1710bcf60e2e38169e389a66b | [
"MIT"
] | null | null | null | from django.core.urlresolvers import reverse_lazy
from django.views import generic
from django.shortcuts import redirect, render
from django.http import HttpResponseRedirect
from django.core.urlresolvers import reverse
from . import forms
from . import models
from custommixins import mixins
class OrderView(generic.V... | 37.897059 | 102 | 0.67404 | 296 | 2,577 | 5.753378 | 0.236486 | 0.095126 | 0.075161 | 0.051674 | 0.72108 | 0.702877 | 0.617146 | 0.617146 | 0.617146 | 0.557252 | 0 | 0 | 0.215367 | 2,577 | 67 | 103 | 38.462687 | 0.842235 | 0 | 0 | 0.538462 | 0 | 0 | 0.083818 | 0.01785 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.519231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
434a5580172de0ca0736b7166ab6de48eed316fe | 121 | py | Python | output/models/ms_data/regex/re_g22_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/ms_data/regex/re_g22_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/ms_data/regex/re_g22_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.ms_data.regex.re_g22_xsd.re_g22 import (
Regex,
Doc,
)
__all__ = [
"Regex",
"Doc",
]
| 12.1 | 59 | 0.603306 | 17 | 121 | 3.823529 | 0.705882 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043956 | 0.247934 | 121 | 9 | 60 | 13.444444 | 0.67033 | 0 | 0 | 0 | 0 | 0 | 0.066116 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
434c335f1ca44ae4f15f8789642b629548cea61b | 659 | py | Python | students/K33402/Akhmetzhanov Alisher/lr2/main/forms.py | AlishKZ/ITMO_ICT_WebDevelopment_2020-2021 | b3ce82e17392d26d815e64343f5103f1bd46cd81 | [
"MIT"
] | null | null | null | students/K33402/Akhmetzhanov Alisher/lr2/main/forms.py | AlishKZ/ITMO_ICT_WebDevelopment_2020-2021 | b3ce82e17392d26d815e64343f5103f1bd46cd81 | [
"MIT"
] | null | null | null | students/K33402/Akhmetzhanov Alisher/lr2/main/forms.py | AlishKZ/ITMO_ICT_WebDevelopment_2020-2021 | b3ce82e17392d26d815e64343f5103f1bd46cd81 | [
"MIT"
] | null | null | null | from django.db.models import fields
from main.models import RoomReservation, UserRoom
from django import forms
from django.core.exceptions import ValidationError
from django.contrib.auth import authenticate, login
from django.contrib.auth import get_user_model
class ReservateRoomForm(forms.Form):
begin_date = for... | 31.380952 | 75 | 0.775417 | 79 | 659 | 6.379747 | 0.518987 | 0.099206 | 0.06746 | 0.083333 | 0.107143 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0053 | 0.141123 | 659 | 20 | 76 | 32.95 | 0.885159 | 0 | 0 | 0 | 0 | 0 | 0.027314 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
43580621cfd0f7e6c205651bbcde02772c3c846a | 628 | py | Python | subs2srs/gui/state.py | TFarla/subs2srs-cross-platform | 79158a313ca4099adb20df97207b19d7bc948697 | [
"MIT"
] | 3 | 2020-07-04T22:34:50.000Z | 2020-08-10T18:18:51.000Z | subs2srs/gui/state.py | TFarla/subs2srs-cross-platform | 79158a313ca4099adb20df97207b19d7bc948697 | [
"MIT"
] | 5 | 2020-07-04T08:34:36.000Z | 2021-05-19T01:27:04.000Z | subs2srs/gui/state.py | TFarla/subs2srs-cross-platform | 79158a313ca4099adb20df97207b19d7bc948697 | [
"MIT"
] | null | null | null | from typing import List
from subs2srs.core.preview_item import PreviewItem
class StatePreview:
items: List[PreviewItem] = []
inactive_items = set()
def __init__(self):
super().__init__()
self.items = []
self.inactive_items = set()
self.audio = None
class State:
deck_... | 27.304348 | 93 | 0.694268 | 74 | 628 | 5.675676 | 0.540541 | 0.064286 | 0.142857 | 0.207143 | 0.309524 | 0.309524 | 0.309524 | 0.309524 | 0.309524 | 0.309524 | 0 | 0.009881 | 0.194268 | 628 | 22 | 94 | 28.545455 | 0.820158 | 0 | 0 | 0 | 0 | 0 | 0.296178 | 0.296178 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.117647 | 0 | 0.764706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
4366c0b4bfc3d82921cf8860654a9fdf8156bfc0 | 893 | py | Python | src/states.py | amancevice/terraform-aws-slack-interactive-components | 819a9b6a408b36cd1a0100859801bc47c437fdc8 | [
"MIT"
] | 24 | 2018-10-17T04:42:56.000Z | 2022-03-03T10:27:56.000Z | src/states.py | amancevice/terraform-aws-slack-interactive-components | 819a9b6a408b36cd1a0100859801bc47c437fdc8 | [
"MIT"
] | 5 | 2019-03-01T17:14:48.000Z | 2022-01-21T23:11:39.000Z | src/states.py | amancevice/terraform-aws-slack-interactive-components | 819a9b6a408b36cd1a0100859801bc47c437fdc8 | [
"MIT"
] | 11 | 2019-03-01T15:16:24.000Z | 2022-03-03T10:27:59.000Z | import boto3
from logger import logger
class States:
def __init__(self, boto3_session=None):
self.boto3_session = boto3_session or boto3.Session()
self.client = self.boto3_session.client('stepfunctions')
def fail(self, task_token, error, cause):
params = dict(taskToken=task_token, er... | 35.72 | 69 | 0.693169 | 116 | 893 | 5.163793 | 0.275862 | 0.09015 | 0.080134 | 0.115192 | 0.345576 | 0.205342 | 0.205342 | 0.205342 | 0.205342 | 0 | 0 | 0.008345 | 0.194849 | 893 | 24 | 70 | 37.208333 | 0.824757 | 0 | 0 | 0 | 0 | 0 | 0.083987 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
436a24c432c8bd3a3066c5adcc757a189d209bf5 | 332 | py | Python | utils/path_utils.py | kuyu12/pygame_fight_game | 3bbc286b9f33c6d6d9db9bea21f9b7af15247df5 | [
"MIT"
] | 1 | 2020-08-03T07:54:59.000Z | 2020-08-03T07:54:59.000Z | utils/path_utils.py | kuyu12/pygame_fight_game | 3bbc286b9f33c6d6d9db9bea21f9b7af15247df5 | [
"MIT"
] | null | null | null | utils/path_utils.py | kuyu12/pygame_fight_game | 3bbc286b9f33c6d6d9db9bea21f9b7af15247df5 | [
"MIT"
] | null | null | null | import sys
IMAGES_PATH = sys.path[1] + "/Images"
BACKGROUND_IMAGES_PATH = IMAGES_PATH + '/background'
USER_INFO_BACKGROUND_PATH = BACKGROUND_IMAGES_PATH+"/blue_background.jpg"
SPRINT_IMAGE_PATH = IMAGES_PATH + '/sprite'
PROFILE_IMAGES_PATH = IMAGES_PATH + '/profile'
CONFIGURATION_FILES_PATH = sys.path[1] + "/configur... | 36.888889 | 73 | 0.795181 | 44 | 332 | 5.568182 | 0.363636 | 0.285714 | 0.171429 | 0.097959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006645 | 0.093373 | 332 | 9 | 74 | 36.888889 | 0.807309 | 0 | 0 | 0 | 0 | 0 | 0.219219 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
437984a8785d9b1726c62d66ab94644c9b6578d8 | 5,275 | py | Python | CAutomation/settings.py | Rich9rd/CAutomation | d1c1b963e806a216d4c825243c1c405336414413 | [
"MIT"
] | null | null | null | CAutomation/settings.py | Rich9rd/CAutomation | d1c1b963e806a216d4c825243c1c405336414413 | [
"MIT"
] | null | null | null | CAutomation/settings.py | Rich9rd/CAutomation | d1c1b963e806a216d4c825243c1c405336414413 | [
"MIT"
] | null | null | null | """
Django settings for CAutomation project.
Generated by 'django-admin startproject' using Django 3.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pat... | 27.473958 | 178 | 0.714123 | 578 | 5,275 | 6.351211 | 0.435986 | 0.060202 | 0.047943 | 0.054481 | 0.137565 | 0.126124 | 0.083628 | 0.083628 | 0.043585 | 0 | 0 | 0.022322 | 0.159242 | 5,275 | 191 | 179 | 27.617801 | 0.805412 | 0.250427 | 0 | 0.02521 | 1 | 0.016807 | 0.539383 | 0.441244 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.042017 | 0.02521 | 0 | 0.02521 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4389b795742ce4092fa55a8e1be92e8c6adf1239 | 2,945 | py | Python | neutron/plugins/ofagent/agent/ports.py | armando-migliaccio/neutron-1 | e31861c15bc73e65a7c22212df2a56f9e45aa0e4 | [
"Apache-2.0"
] | null | null | null | neutron/plugins/ofagent/agent/ports.py | armando-migliaccio/neutron-1 | e31861c15bc73e65a7c22212df2a56f9e45aa0e4 | [
"Apache-2.0"
] | null | null | null | neutron/plugins/ofagent/agent/ports.py | armando-migliaccio/neutron-1 | e31861c15bc73e65a7c22212df2a56f9e45aa0e4 | [
"Apache-2.0"
] | null | null | null | # Copyright (C) 2014 VA Linux Systems Japan K.K.
# Copyright (C) 2014 YAMAMOTO Takashi <yamamoto at valinux co jp>
# 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... | 33.089888 | 78 | 0.69202 | 428 | 2,945 | 4.586449 | 0.408879 | 0.089659 | 0.024452 | 0.016302 | 0.117168 | 0.076414 | 0.051961 | 0.051961 | 0.051961 | 0.051961 | 0 | 0.00873 | 0.222071 | 2,945 | 88 | 79 | 33.465909 | 0.848101 | 0.568761 | 0 | 0.166667 | 0 | 0 | 0.015358 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0.027778 | 0.527778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
438cea957a4d584b046abd2a8ee5c64fd504407c | 1,168 | py | Python | pipeline/validators/handlers.py | ZhuoZhuoCrayon/bk-nodeman | 76cb71fcc971c2a0c2be161fcbd6b019d4a7a8ab | [
"MIT"
] | 31 | 2021-07-28T13:06:11.000Z | 2022-03-10T12:16:44.000Z | pipeline/validators/handlers.py | ZhuoZhuoCrayon/bk-nodeman | 76cb71fcc971c2a0c2be161fcbd6b019d4a7a8ab | [
"MIT"
] | 483 | 2021-07-29T03:17:44.000Z | 2022-03-31T13:03:04.000Z | pipeline/validators/handlers.py | ZhuoZhuoCrayon/bk-nodeman | 76cb71fcc971c2a0c2be161fcbd6b019d4a7a8ab | [
"MIT"
] | 29 | 2021-07-28T13:06:21.000Z | 2022-03-25T06:18:18.000Z | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community
Edition) available.
Copyright (C) 2017-2019 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in co... | 46.72 | 115 | 0.808219 | 178 | 1,168 | 5.179775 | 0.623596 | 0.065076 | 0.032538 | 0.048807 | 0.074837 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010816 | 0.129281 | 1,168 | 24 | 116 | 48.666667 | 0.895772 | 0.618151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.5 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
43a01f33e82c9b00675c1f842c3ac9effea08533 | 7,335 | py | Python | api/config.py | sumesh-aot/namex | 53e11aed5ea550b71b7b983f1b57b65db5a06766 | [
"Apache-2.0"
] | 1 | 2020-03-23T21:43:15.000Z | 2020-03-23T21:43:15.000Z | api/config.py | sumesh-aot/namex | 53e11aed5ea550b71b7b983f1b57b65db5a06766 | [
"Apache-2.0"
] | null | null | null | api/config.py | sumesh-aot/namex | 53e11aed5ea550b71b7b983f1b57b65db5a06766 | [
"Apache-2.0"
] | null | null | null | """Config for initializing the namex-api."""
import os
from dotenv import find_dotenv, load_dotenv
# this will load all the envars from a .env file located in the project root (api)
load_dotenv(find_dotenv())
CONFIGURATION = {
'development': 'config.DevConfig',
'testing': 'config.TestConfig',
'production... | 43.402367 | 210 | 0.718609 | 765 | 7,335 | 6.588235 | 0.288889 | 0.063492 | 0.031746 | 0.02381 | 0.35377 | 0.314881 | 0.248611 | 0.248611 | 0.248611 | 0.248611 | 0 | 0.052597 | 0.180913 | 7,335 | 168 | 211 | 43.660714 | 0.786285 | 0.112474 | 0 | 0.264 | 0 | 0 | 0.479228 | 0.353668 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.056 | 0.016 | 0 | 0.504 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
43a26f9573c5f714eb41be0b40f5f0e94681fe54 | 1,013 | py | Python | gfworkflow/core.py | andersonbrands/gfworkflow | 81c646fd53b8227691bcd3e236f538fee0d9d93c | [
"MIT"
] | null | null | null | gfworkflow/core.py | andersonbrands/gfworkflow | 81c646fd53b8227691bcd3e236f538fee0d9d93c | [
"MIT"
] | null | null | null | gfworkflow/core.py | andersonbrands/gfworkflow | 81c646fd53b8227691bcd3e236f538fee0d9d93c | [
"MIT"
] | null | null | null | import re
import subprocess as sp
from typing import Union, List
from gfworkflow.exceptions import RunCommandException
def run(command: Union[str, List[str]]):
completed_process = sp.run(command, stdout=sp.PIPE, stderr=sp.PIPE, universal_newlines=True)
if completed_process.returncode:
raise RunComman... | 25.974359 | 96 | 0.722606 | 145 | 1,013 | 4.924138 | 0.482759 | 0.089636 | 0.039216 | 0.053221 | 0.05042 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001163 | 0.151037 | 1,013 | 38 | 97 | 26.657895 | 0.82907 | 0 | 0 | 0 | 0 | 0 | 0.266535 | 0.04541 | 0 | 0 | 0 | 0 | 0 | 1 | 0.304348 | false | 0 | 0.173913 | 0.043478 | 0.608696 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
43a4f6e31b5eece16d50c0585d3ecac08d080d46 | 5,919 | py | Python | orio/module/loop/cfg.py | zhjp0/Orio | 7dfb80527053c5697d1bce1bd8ed996b1ea192c8 | [
"MIT"
] | null | null | null | orio/module/loop/cfg.py | zhjp0/Orio | 7dfb80527053c5697d1bce1bd8ed996b1ea192c8 | [
"MIT"
] | null | null | null | orio/module/loop/cfg.py | zhjp0/Orio | 7dfb80527053c5697d1bce1bd8ed996b1ea192c8 | [
"MIT"
] | null | null | null | '''
Created on April 26, 2015
@author: norris
'''
import ast, sys, os, traceback
from orio.main.util.globals import *
from orio.tool.graphlib import graph
from orio.module.loop import astvisitors
class CFGVertex(graph.Vertex):
'''A CFG vertex is a basic block.'''
def __init__(self, name, node=None):
t... | 32.521978 | 107 | 0.478459 | 665 | 5,919 | 4.133835 | 0.216541 | 0.055657 | 0.04729 | 0.02801 | 0.268825 | 0.224809 | 0.204074 | 0.184431 | 0.157512 | 0.157512 | 0 | 0.003687 | 0.404291 | 5,919 | 181 | 108 | 32.701657 | 0.77595 | 0.047643 | 0 | 0.288889 | 0 | 0 | 0.034062 | 0.012386 | 0 | 0 | 0 | 0.005525 | 0 | 0 | null | null | 0.051852 | 0.02963 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
43a848be2ab70fca075a6b29e18609d29a8a5a7d | 1,109 | py | Python | newsapp/migrations/0003_news.py | adi112100/newsapp | 7cdf6070299b4a8dcc950e7fcdfb82cf1a1d98cb | [
"MIT"
] | null | null | null | newsapp/migrations/0003_news.py | adi112100/newsapp | 7cdf6070299b4a8dcc950e7fcdfb82cf1a1d98cb | [
"MIT"
] | null | null | null | newsapp/migrations/0003_news.py | adi112100/newsapp | 7cdf6070299b4a8dcc950e7fcdfb82cf1a1d98cb | [
"MIT"
] | null | null | null | # Generated by Django 3.0.8 on 2020-07-11 08:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('newsapp', '0002_auto_20200711_1124'),
]
operations = [
migrations.CreateModel(
name='News',
fields=[
... | 34.65625 | 114 | 0.538323 | 95 | 1,109 | 6.105263 | 0.557895 | 0.189655 | 0.360345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040736 | 0.313796 | 1,109 | 31 | 115 | 35.774194 | 0.721419 | 0.040577 | 0 | 0 | 1 | 0 | 0.176083 | 0.021657 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.16 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
43ad3e59d1619acb8d9309d2b2e5ad3161003839 | 2,664 | py | Python | tests/selenium/test_about/test_about_page.py | technolotrix/tests | ae5b9741e80a1fd735c66de93cc014f672c5afb2 | [
"Apache-2.0"
] | null | null | null | tests/selenium/test_about/test_about_page.py | technolotrix/tests | ae5b9741e80a1fd735c66de93cc014f672c5afb2 | [
"Apache-2.0"
] | null | null | null | tests/selenium/test_about/test_about_page.py | technolotrix/tests | ae5b9741e80a1fd735c66de93cc014f672c5afb2 | [
"Apache-2.0"
] | null | null | null | import unittest
from selenium import webdriver
import page
class AboutPage(unittest.TestCase):
def setUp(self):
self.driver = webdriver.Firefox()
self.driver.get("http://nicolesmith.nyc")
#self.driver.get("http://127.0.0.1:4747/about")
self.about_page = page.AboutPage(self.driver)
... | 36 | 98 | 0.703453 | 375 | 2,664 | 4.736 | 0.205333 | 0.111486 | 0.124437 | 0.141892 | 0.463964 | 0.351914 | 0.178491 | 0.158784 | 0.114865 | 0 | 0 | 0.007401 | 0.188438 | 2,664 | 74 | 99 | 36 | 0.814061 | 0.035285 | 0 | 0.06383 | 0 | 0 | 0.232051 | 0 | 0 | 0 | 0 | 0 | 0.255319 | 1 | 0.382979 | false | 0 | 0.06383 | 0.085106 | 0.553191 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
43b1df830b2abdb7a53300c3467f70be764c0f6f | 1,235 | py | Python | k_values_graph.py | leobouts/Skyline_top_k_queries | 5f5e8ab8f5e521dc20f33a69dd042917ff5d42f0 | [
"MIT"
] | null | null | null | k_values_graph.py | leobouts/Skyline_top_k_queries | 5f5e8ab8f5e521dc20f33a69dd042917ff5d42f0 | [
"MIT"
] | null | null | null | k_values_graph.py | leobouts/Skyline_top_k_queries | 5f5e8ab8f5e521dc20f33a69dd042917ff5d42f0 | [
"MIT"
] | null | null | null | from a_top_k import *
from b_top_k import *
import time
def main():
# test the generator for the top-k input
# starting time
values_k = [1, 2, 5, 10, 20, 50, 100]
times_topk_join_a = []
times_topk_join_b = []
number_of_valid_lines_a = []
number_of_valid_lines_b = []
for k in values_... | 24.7 | 70 | 0.673684 | 202 | 1,235 | 3.564356 | 0.20297 | 0.133333 | 0.216667 | 0.3 | 0.525 | 0.35 | 0.175 | 0.175 | 0.175 | 0.077778 | 0 | 0.012862 | 0.244534 | 1,235 | 49 | 71 | 25.204082 | 0.758842 | 0.042105 | 0 | 0.125 | 0 | 0 | 0.006785 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.09375 | 0 | 0.125 | 0.125 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
43c14b71a9e55a3f072d7e8094c999b91490df88 | 507 | py | Python | python_clean_architecture/use_cases/orderdata_use_case.py | jfsolarte/python_clean_architecture | 56b0c0eff50bc98774a0caee12e3030789476687 | [
"MIT"
] | null | null | null | python_clean_architecture/use_cases/orderdata_use_case.py | jfsolarte/python_clean_architecture | 56b0c0eff50bc98774a0caee12e3030789476687 | [
"MIT"
] | null | null | null | python_clean_architecture/use_cases/orderdata_use_case.py | jfsolarte/python_clean_architecture | 56b0c0eff50bc98774a0caee12e3030789476687 | [
"MIT"
] | null | null | null | from python_clean_architecture.shared import use_case as uc
from python_clean_architecture.shared import response_object as res
class OrderDataGetUseCase(uc.UseCase):
def __init__(self, repo):
self.repo = repo
def execute(self, request_object):
#if not request_object:
#return res... | 31.6875 | 89 | 0.755424 | 64 | 507 | 5.671875 | 0.515625 | 0.179063 | 0.082645 | 0.14876 | 0.214876 | 0.214876 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179487 | 507 | 16 | 90 | 31.6875 | 0.872596 | 0.193294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
43c4a0c547cce9ae68639184c6cd8640efc21e50 | 857 | py | Python | tests/metarl/tf/baselines/test_baselines.py | neurips2020submission11699/metarl | ae4825d21478fa1fd0aa6b116941ea40caa152a5 | [
"MIT"
] | 2 | 2021-02-07T12:14:52.000Z | 2021-07-29T08:07:22.000Z | tests/metarl/tf/baselines/test_baselines.py | neurips2020submission11699/metarl | ae4825d21478fa1fd0aa6b116941ea40caa152a5 | [
"MIT"
] | null | null | null | tests/metarl/tf/baselines/test_baselines.py | neurips2020submission11699/metarl | ae4825d21478fa1fd0aa6b116941ea40caa152a5 | [
"MIT"
] | null | null | null | """
This script creates a test that fails when
metarl.tf.baselines failed to initialize.
"""
import tensorflow as tf
from metarl.envs import MetaRLEnv
from metarl.tf.baselines import ContinuousMLPBaseline
from metarl.tf.baselines import GaussianMLPBaseline
from tests.fixtures import TfGraphTestCase
from tests.fixtures... | 31.740741 | 76 | 0.772462 | 102 | 857 | 6.284314 | 0.5 | 0.037442 | 0.079563 | 0.065523 | 0.162246 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001381 | 0.155193 | 857 | 26 | 77 | 32.961538 | 0.883978 | 0.13769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.4 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
43d418c8d833bba41481c7b2cbeab0fbbe8f44c5 | 548 | py | Python | example/example.py | saravanabalagi/imshowtools | ea81af888c69223ff8b42b5c4b8c034483eebe21 | [
"MIT"
] | 4 | 2019-07-18T17:24:02.000Z | 2020-10-14T06:09:05.000Z | example/example.py | saravanabalagi/imshowtools | ea81af888c69223ff8b42b5c4b8c034483eebe21 | [
"MIT"
] | 1 | 2020-04-18T01:05:22.000Z | 2020-04-18T01:10:53.000Z | example/example.py | saravanabalagi/imshowtools | ea81af888c69223ff8b42b5c4b8c034483eebe21 | [
"MIT"
] | null | null | null | from imshowtools import imshow
import cv2
if __name__ == '__main__':
image_lenna = cv2.imread("lenna.png")
imshow(image_lenna, mode='BGR', window_title="LennaWindow", title="Lenna")
image_lenna_bgr = cv2.imread("lenna_bgr.png")
imshow(image_lenna, image_lenna_bgr, mode=['BGR', 'RGB'], title=['lenna_... | 39.142857 | 109 | 0.678832 | 82 | 548 | 4.231707 | 0.329268 | 0.201729 | 0.184438 | 0.129683 | 0.204611 | 0.149856 | 0 | 0 | 0 | 0 | 0 | 0.038298 | 0.142336 | 548 | 13 | 110 | 42.153846 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0.171533 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
78db1f0ed3fd45150eca94cbff8fdb625dd1d917 | 156 | py | Python | testData/completion/classMethodCls.py | seandstewart/typical-pycharm-plugin | 4f6ec99766239421201faae9d75c32fa0ee3565a | [
"MIT"
] | null | null | null | testData/completion/classMethodCls.py | seandstewart/typical-pycharm-plugin | 4f6ec99766239421201faae9d75c32fa0ee3565a | [
"MIT"
] | null | null | null | testData/completion/classMethodCls.py | seandstewart/typical-pycharm-plugin | 4f6ec99766239421201faae9d75c32fa0ee3565a | [
"MIT"
] | null | null | null | from builtins import *
from pydantic import BaseModel
class A(BaseModel):
abc: str
@classmethod
def test(cls):
return cls.<caret>
| 11.142857 | 30 | 0.647436 | 19 | 156 | 5.315789 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.275641 | 156 | 13 | 31 | 12 | 0.893805 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.285714 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
78ddef69c8c618801719da4ee218c45f1df458b0 | 25,941 | py | Python | mars/tensor/execution/tests/test_base_execute.py | lmatz/mars | 45f9166b54eb91b21e66cef8b590a41aa8ac9569 | [
"Apache-2.0"
] | 1 | 2018-12-26T08:37:04.000Z | 2018-12-26T08:37:04.000Z | mars/tensor/execution/tests/test_base_execute.py | lmatz/mars | 45f9166b54eb91b21e66cef8b590a41aa8ac9569 | [
"Apache-2.0"
] | null | null | null | mars/tensor/execution/tests/test_base_execute.py | lmatz/mars | 45f9166b54eb91b21e66cef8b590a41aa8ac9569 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 1999-2018 Alibaba Group Holding Ltd.
#
# 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-... | 34.132895 | 110 | 0.596623 | 3,879 | 25,941 | 3.909255 | 0.068317 | 0.072804 | 0.11402 | 0.150026 | 0.761343 | 0.739976 | 0.710367 | 0.672118 | 0.615273 | 0.577025 | 0 | 0.050625 | 0.247677 | 25,941 | 759 | 111 | 34.177866 | 0.726378 | 0.024402 | 0 | 0.428571 | 0 | 0 | 0.002175 | 0 | 0 | 0 | 0 | 0 | 0.223092 | 1 | 0.062622 | false | 0 | 0.017613 | 0 | 0.082192 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
78df11b8ab67a00fef993f03b911ed0dd7fc3180 | 707 | py | Python | src/python_minifier/transforms/remove_pass.py | donno2048/python-minifier | 9a9ff4dd5d2bb8dc666cae5939c125d420c2ffd5 | [
"MIT"
] | null | null | null | src/python_minifier/transforms/remove_pass.py | donno2048/python-minifier | 9a9ff4dd5d2bb8dc666cae5939c125d420c2ffd5 | [
"MIT"
] | null | null | null | src/python_minifier/transforms/remove_pass.py | donno2048/python-minifier | 9a9ff4dd5d2bb8dc666cae5939c125d420c2ffd5 | [
"MIT"
] | null | null | null | import ast
from python_minifier.transforms.suite_transformer import SuiteTransformer
class RemovePass(SuiteTransformer):
"""
Remove Pass keywords from source
If a statement is syntactically necessary, use an empty expression instead
"""
def __call__(self, node):
return self.visit(node)
... | 27.192308 | 106 | 0.649222 | 90 | 707 | 4.955556 | 0.566667 | 0.073991 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00381 | 0.257426 | 707 | 25 | 107 | 28.28 | 0.845714 | 0.152758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.307692 | 0.153846 | 0.076923 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
78e0a22b8b4b6603603bcdb8feefa51265cf9c14 | 345 | py | Python | src/backend/common/models/favorite.py | ofekashery/the-blue-alliance | df0e47d054161fe742ac6198a6684247d0713279 | [
"MIT"
] | 266 | 2015-01-04T00:10:48.000Z | 2022-03-28T18:42:05.000Z | src/backend/common/models/favorite.py | ofekashery/the-blue-alliance | df0e47d054161fe742ac6198a6684247d0713279 | [
"MIT"
] | 2,673 | 2015-01-01T20:14:33.000Z | 2022-03-31T18:17:16.000Z | src/backend/common/models/favorite.py | ofekashery/the-blue-alliance | df0e47d054161fe742ac6198a6684247d0713279 | [
"MIT"
] | 230 | 2015-01-04T00:10:48.000Z | 2022-03-26T18:12:04.000Z | from backend.common.models.mytba import MyTBAModel
class Favorite(MyTBAModel):
"""
In order to make strongly consistent DB requests, instances of this class
should be created with a parent that is the associated Account key.
"""
def __init__(self, *args, **kwargs):
super(Favorite, self)._... | 28.75 | 77 | 0.704348 | 45 | 345 | 5.222222 | 0.844444 | 0.085106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.202899 | 345 | 11 | 78 | 31.363636 | 0.854545 | 0.408696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
78e3d8480adc030df86059c4a34f7c8aad96d287 | 306 | py | Python | day1/loops.py | alqmy/The-Garage-Summer-Of-Code | af310d5e5194a62962db2fc1e601099468251efa | [
"MIT"
] | null | null | null | day1/loops.py | alqmy/The-Garage-Summer-Of-Code | af310d5e5194a62962db2fc1e601099468251efa | [
"MIT"
] | null | null | null | day1/loops.py | alqmy/The-Garage-Summer-Of-Code | af310d5e5194a62962db2fc1e601099468251efa | [
"MIT"
] | null | null | null | # while True:
# # ejecuta esto
# print("Hola")
real = 7
print("Entre un numero entre el 1 y el 10")
guess = int(input())
# =/=
while guess != real:
print("Ese no es el numero")
print("Entre un numero entre el 1 y el 10")
guess = int(input())
# el resto
print("Yay! Lo sacastes!")
| 16.105263 | 47 | 0.591503 | 49 | 306 | 3.693878 | 0.510204 | 0.110497 | 0.132597 | 0.198895 | 0.486188 | 0.486188 | 0.486188 | 0.486188 | 0.486188 | 0.486188 | 0 | 0.030837 | 0.25817 | 306 | 18 | 48 | 17 | 0.76652 | 0.199346 | 0 | 0.5 | 0 | 0 | 0.436975 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
78f362e6e499abd6ba76d1b520e7369bf25061c9 | 257 | py | Python | retrieval/urls.py | aipassio/visual_retrieval | ce8dae2ad517a9edb5e278163dd6d0f7ffc1b5f4 | [
"MIT"
] | null | null | null | retrieval/urls.py | aipassio/visual_retrieval | ce8dae2ad517a9edb5e278163dd6d0f7ffc1b5f4 | [
"MIT"
] | null | null | null | retrieval/urls.py | aipassio/visual_retrieval | ce8dae2ad517a9edb5e278163dd6d0f7ffc1b5f4 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('retrieval_insert', views.retrieval_insert, name='retrieval_insert'),
path('retrieval_get', views.retrieval_get, name='retrieval_get')
] | 28.555556 | 78 | 0.723735 | 32 | 257 | 5.625 | 0.375 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132296 | 257 | 9 | 79 | 28.555556 | 0.807175 | 0 | 0 | 0 | 0 | 0 | 0.244186 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
78f63355867462f1a454c939b07a72f40e12bd55 | 955 | py | Python | src/net/pluto_ftp.py | WardenAllen/Uranus | 0d20cac631320b558254992c17678ddd1658587b | [
"MIT"
] | null | null | null | src/net/pluto_ftp.py | WardenAllen/Uranus | 0d20cac631320b558254992c17678ddd1658587b | [
"MIT"
] | null | null | null | src/net/pluto_ftp.py | WardenAllen/Uranus | 0d20cac631320b558254992c17678ddd1658587b | [
"MIT"
] | null | null | null | # !/usr/bin/python
# -*- coding: utf-8 -*-
# @Time : 2020/9/18 12:02
# @Author : WardenAllen
# @File : pluto_ftp.py
# @Brief :
import paramiko
class PlutoFtp :
# paramiko's Sftp() object.
__sftp = object
def connect_by_pass(self, host, port, uname, pwd):
transport = paramiko.Transport(... | 31.833333 | 73 | 0.655497 | 123 | 955 | 4.894309 | 0.414634 | 0.053156 | 0.039867 | 0.056478 | 0.378738 | 0.378738 | 0.378738 | 0.378738 | 0.209302 | 0 | 0 | 0.015979 | 0.213613 | 955 | 30 | 74 | 31.833333 | 0.785619 | 0.157068 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.25 | 0.0625 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
78ff50d0ef3b81ac606726766e87dc4af67964c3 | 480 | py | Python | test.py | KipCrossing/Micropython-AD9833 | c684f5a9543bc5b67dcbf357c50f4d8f4057b2bf | [
"MIT"
] | 11 | 2018-12-13T23:39:18.000Z | 2022-02-24T11:59:36.000Z | test.py | KipCrossing/Micropython-AD9833 | c684f5a9543bc5b67dcbf357c50f4d8f4057b2bf | [
"MIT"
] | 1 | 2019-12-02T20:54:05.000Z | 2019-12-04T00:34:25.000Z | test.py | KipCrossing/Micropython-AD9833 | c684f5a9543bc5b67dcbf357c50f4d8f4057b2bf | [
"MIT"
] | 2 | 2019-05-03T10:58:36.000Z | 2020-02-20T10:21:43.000Z | from ad9833 import AD9833
# DUMMY classes for testing without board
class SBI(object):
def __init__(self):
pass
def send(self, data):
print(data)
class Pin(object):
def __init__(self):
pass
def low(self):
print(" 0")
def high(self):
prin... | 13.333333 | 41 | 0.566667 | 63 | 480 | 4.142857 | 0.539683 | 0.068966 | 0.099617 | 0.130268 | 0.183908 | 0.183908 | 0 | 0 | 0 | 0 | 0 | 0.073171 | 0.316667 | 480 | 35 | 42 | 13.714286 | 0.722561 | 0.091667 | 0 | 0.2 | 0 | 0 | 0.078522 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.1 | 0.05 | 0 | 0.4 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
600fae89534379bad1faa45aa725f0ecd7646d79 | 142 | py | Python | util/infoclient/test_infoclient.py | cdla/murfi2 | 45dba5eb90e7f573f01706a50e584265f0f8ffa7 | [
"Apache-2.0"
] | 7 | 2015-02-10T17:00:49.000Z | 2021-07-27T22:09:43.000Z | util/infoclient/test_infoclient.py | cdla/murfi2 | 45dba5eb90e7f573f01706a50e584265f0f8ffa7 | [
"Apache-2.0"
] | 11 | 2015-02-22T19:15:53.000Z | 2021-08-04T17:26:18.000Z | util/infoclient/test_infoclient.py | cdla/murfi2 | 45dba5eb90e7f573f01706a50e584265f0f8ffa7 | [
"Apache-2.0"
] | 8 | 2015-07-06T22:31:51.000Z | 2019-04-22T21:22:07.000Z |
from infoclientLib import InfoClient
ic = InfoClient('localhost', 15002, 'localhost', 15003)
ic.add('roi-weightedave', 'active')
ic.start()
| 20.285714 | 55 | 0.739437 | 17 | 142 | 6.176471 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07874 | 0.105634 | 142 | 6 | 56 | 23.666667 | 0.748032 | 0 | 0 | 0 | 0 | 0 | 0.278571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6012d662e5b654522d75f6dba733bb788998a6c0 | 812 | py | Python | python/10.Authentication-&-API-Keys.py | 17nikhil/codecademy | 58fbd652691c9df8139544965ebb0e9748142538 | [
"Apache-2.0"
] | null | null | null | python/10.Authentication-&-API-Keys.py | 17nikhil/codecademy | 58fbd652691c9df8139544965ebb0e9748142538 | [
"Apache-2.0"
] | null | null | null | python/10.Authentication-&-API-Keys.py | 17nikhil/codecademy | 58fbd652691c9df8139544965ebb0e9748142538 | [
"Apache-2.0"
] | 1 | 2018-10-03T14:36:31.000Z | 2018-10-03T14:36:31.000Z | # Authentication & API Keys
# Many APIs require an API key. Just as a real-world key allows you to access something, an API key grants you access to a particular API. Moreover, an API key identifies you to the API, which helps the API provider keep track of how their service is used and prevent unauthorized or maliciou... | 81.2 | 303 | 0.777094 | 145 | 812 | 4.344828 | 0.655172 | 0.038095 | 0.038095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181034 | 812 | 9 | 304 | 90.222222 | 0.947368 | 0.958128 | 0 | 0 | 0 | 0 | 0.222222 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
601874835949dbb0ebb74e3019f720313e38011d | 2,763 | py | Python | quadpy/triangle/cools_haegemans.py | melvyniandrag/quadpy | ae28fc17351be8e76909033f03d71776c7ef8280 | [
"MIT"
] | 1 | 2019-01-02T19:04:42.000Z | 2019-01-02T19:04:42.000Z | quadpy/triangle/cools_haegemans.py | melvyniandrag/quadpy | ae28fc17351be8e76909033f03d71776c7ef8280 | [
"MIT"
] | null | null | null | quadpy/triangle/cools_haegemans.py | melvyniandrag/quadpy | ae28fc17351be8e76909033f03d71776c7ef8280 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
from mpmath import mp
from .helpers import untangle2
class CoolsHaegemans(object):
"""
R. Cools, A. Haegemans,
Construction of minimal cubature formulae for the square and the triangle
using invariant theory,
Department of Computer Science, K.U.Leuven,
TW Reports vol... | 38.375 | 108 | 0.534202 | 249 | 2,763 | 5.883534 | 0.481928 | 0.040956 | 0.028669 | 0.008191 | 0.008191 | 0.008191 | 0.008191 | 0.008191 | 0 | 0 | 0 | 0.496973 | 0.342381 | 2,763 | 71 | 109 | 38.915493 | 0.309301 | 0.396308 | 0 | 0.119048 | 0 | 0 | 0.25386 | 0.240889 | 0 | 0 | 0 | 0 | 0.02381 | 1 | 0.02381 | false | 0 | 0.047619 | 0 | 0.119048 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
603b5710a40e621c6b937d72101edf1cadc2be7f | 5,089 | py | Python | test/test_airfoil.py | chabotsi/pygmsh | f2c26d9193c63efd9fa7676ea0860a18de7e8b52 | [
"MIT"
] | null | null | null | test/test_airfoil.py | chabotsi/pygmsh | f2c26d9193c63efd9fa7676ea0860a18de7e8b52 | [
"MIT"
] | null | null | null | test/test_airfoil.py | chabotsi/pygmsh | f2c26d9193c63efd9fa7676ea0860a18de7e8b52 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
import numpy
import pygmsh
from helpers import compute_volume
def test():
# Airfoil coordinates
airfoil_coordinates = numpy.array([
[1.000000, 0.000000, 0.0],
[0.999023, 0.000209, 0.0],
[0.996095, 0.000832, 0.0],
[0.991228, 0.001... | 31.608696 | 69 | 0.503046 | 792 | 5,089 | 3.184343 | 0.353535 | 0.160983 | 0.117764 | 0.011102 | 0.012688 | 0.012688 | 0 | 0 | 0 | 0 | 0 | 0.457405 | 0.294164 | 5,089 | 160 | 70 | 31.80625 | 0.24471 | 0.041265 | 0 | 0.028169 | 0 | 0 | 0.008622 | 0 | 0 | 0 | 0 | 0 | 0.007042 | 1 | 0.007042 | false | 0 | 0.028169 | 0 | 0.042254 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
60484feb7046b3c272c1b83d25957af04879dd6e | 4,681 | py | Python | sppas/sppas/src/anndata/aio/__init__.py | mirfan899/MTTS | 3167b65f576abcc27a8767d24c274a04712bd948 | [
"MIT"
] | null | null | null | sppas/sppas/src/anndata/aio/__init__.py | mirfan899/MTTS | 3167b65f576abcc27a8767d24c274a04712bd948 | [
"MIT"
] | null | null | null | sppas/sppas/src/anndata/aio/__init__.py | mirfan899/MTTS | 3167b65f576abcc27a8767d24c274a04712bd948 | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
"""
..
---------------------------------------------------------------------
___ __ __ __ ___
/ | \ | \ | \ / the automatic
\__ |__/ |__/ |___| \__ annotation and
\ | | | | \ ... | 36.858268 | 216 | 0.554582 | 512 | 4,681 | 4.925781 | 0.394531 | 0.009516 | 0.015464 | 0.022601 | 0.083267 | 0.065028 | 0.035686 | 0.035686 | 0.035686 | 0.035686 | 0 | 0.003203 | 0.199744 | 4,681 | 126 | 217 | 37.150794 | 0.670048 | 0.384106 | 0 | 0 | 0 | 0 | 0.326916 | 0.033055 | 0 | 0 | 0 | 0.007937 | 0 | 1 | 0 | false | 0.115942 | 0.304348 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
6049a1eccd8b14db6687d766205e1b913a98cd6d | 226 | py | Python | models/__init__.py | dapengchen123/hfsoftmax | 467bd90814abdf3e5ad8384e6e05749172b68ae6 | [
"MIT"
] | 1 | 2018-10-11T09:27:53.000Z | 2018-10-11T09:27:53.000Z | models/__init__.py | dapengchen123/hfsoftmax | 467bd90814abdf3e5ad8384e6e05749172b68ae6 | [
"MIT"
] | null | null | null | models/__init__.py | dapengchen123/hfsoftmax | 467bd90814abdf3e5ad8384e6e05749172b68ae6 | [
"MIT"
] | null | null | null | from .resnet import *
from .hynet import *
from .classifier import Classifier, HFClassifier, HNSWClassifier
from .ext_layers import ParameterClient
samplerClassifier = {
'hf': HFClassifier,
'hnsw': HNSWClassifier,
}
| 20.545455 | 64 | 0.756637 | 22 | 226 | 7.727273 | 0.590909 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159292 | 226 | 10 | 65 | 22.6 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0.026549 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.