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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7c064547ee317bb0ee4b5cdf5223b837a5a7f321 | 56 | py | Python | src/rstatmon/random_int.py | git-ogawa/raspi-statmon | 619d7a8f697cad92437e2f558de2e0a626b5072f | [
"BSD-3-Clause"
] | null | null | null | src/rstatmon/random_int.py | git-ogawa/raspi-statmon | 619d7a8f697cad92437e2f558de2e0a626b5072f | [
"BSD-3-Clause"
] | null | null | null | src/rstatmon/random_int.py | git-ogawa/raspi-statmon | 619d7a8f697cad92437e2f558de2e0a626b5072f | [
"BSD-3-Clause"
] | null | null | null | import random
i = random.random()
print(i)
#"print(50)
| 9.333333 | 19 | 0.678571 | 9 | 56 | 4.222222 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 0.142857 | 56 | 5 | 20 | 11.2 | 0.75 | 0.178571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
9fd42b97c34b13a93659d6be724c9aa1ca2315f7 | 161 | py | Python | piccolo/apps/asgi/piccolo_app.py | coder3112/piccolo | f5f72c6b24782f1b6e04c31549654cd27fd3a148 | [
"MIT"
] | null | null | null | piccolo/apps/asgi/piccolo_app.py | coder3112/piccolo | f5f72c6b24782f1b6e04c31549654cd27fd3a148 | [
"MIT"
] | null | null | null | piccolo/apps/asgi/piccolo_app.py | coder3112/piccolo | f5f72c6b24782f1b6e04c31549654cd27fd3a148 | [
"MIT"
] | null | null | null | from piccolo.conf.apps import AppConfig
from .commands.new import new
APP_CONFIG = AppConfig(
app_name="asgi", migrations_folder_path="", commands=[new]
)
| 20.125 | 62 | 0.757764 | 22 | 161 | 5.363636 | 0.681818 | 0.186441 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 161 | 7 | 63 | 23 | 0.842857 | 0 | 0 | 0 | 0 | 0 | 0.024845 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
9fe0c3e55237ae1a6b07343eeaec55d0c2e90bd3 | 789 | py | Python | envs/d4rl/oracle/dummy_advice.py | AliengirlLiv/babyai | 51421ee11538bf110c5b2d0c84a15f783d854e7d | [
"MIT"
] | 2 | 2022-02-24T08:47:48.000Z | 2022-03-23T09:44:22.000Z | envs/d4rl/oracle/dummy_advice.py | AliengirlLiv/babyai | 51421ee11538bf110c5b2d0c84a15f783d854e7d | [
"MIT"
] | null | null | null | envs/d4rl/oracle/dummy_advice.py | AliengirlLiv/babyai | 51421ee11538bf110c5b2d0c84a15f783d854e7d | [
"MIT"
] | 1 | 2021-12-27T19:03:38.000Z | 2021-12-27T19:03:38.000Z | import numpy as np
from envs.d4rl.oracle.teacher import Teacher
class DummyAdvice(Teacher):
def __init__(self, *args, **kwargs):
super(DummyAdvice, self).__init__(*args, **kwargs)
# self.next_action = None
def empty_feedback(self):
"""
Return a tensor corresponding to no feedb... | 24.65625 | 60 | 0.595691 | 88 | 789 | 5.181818 | 0.443182 | 0.087719 | 0.092105 | 0.105263 | 0.289474 | 0.289474 | 0.289474 | 0.289474 | 0.289474 | 0.289474 | 0 | 0.001792 | 0.292776 | 789 | 32 | 61 | 24.65625 | 0.815412 | 0.214195 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.133333 | 0.133333 | 0.933333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 3 |
9fed4bbc78710f68c6a6c129f348d88062a6fdd1 | 887 | py | Python | core/preprocessing/base.py | mamalmaleki/machine-learning-a-z | 22d812c72e3d1790e7b9d0979a5b07f249168a5f | [
"MIT"
] | null | null | null | core/preprocessing/base.py | mamalmaleki/machine-learning-a-z | 22d812c72e3d1790e7b9d0979a5b07f249168a5f | [
"MIT"
] | null | null | null | core/preprocessing/base.py | mamalmaleki/machine-learning-a-z | 22d812c72e3d1790e7b9d0979a5b07f249168a5f | [
"MIT"
] | null | null | null | import pandas as pd
from sklearn.model_selection import train_test_split
class BasePreprocessor():
def __init__(self, file_name):
self._dataset = pd.read_csv(file_name)
self._x = self._dataset.iloc[:, :-1].values
self._y = self._dataset.iloc[:, -1].values
def get_dataset(self):
... | 22.74359 | 69 | 0.655017 | 131 | 887 | 4.038168 | 0.251908 | 0.066163 | 0.185255 | 0.085066 | 0.15879 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005988 | 0.2469 | 887 | 39 | 70 | 22.74359 | 0.785928 | 0 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.346154 | false | 0.038462 | 0.076923 | 0.269231 | 0.769231 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
9feec2e06b180daf0b13736c95620fc13e2c8a50 | 194 | py | Python | xue/classes/admin.py | team-xue/xue | e6bd9539803a2bf902f48b65a9df86356b5d46b2 | [
"BSD-3-Clause"
] | 1 | 2015-11-23T02:33:07.000Z | 2015-11-23T02:33:07.000Z | xue/classes/admin.py | team-xue/xue | e6bd9539803a2bf902f48b65a9df86356b5d46b2 | [
"BSD-3-Clause"
] | null | null | null | xue/classes/admin.py | team-xue/xue | e6bd9539803a2bf902f48b65a9df86356b5d46b2 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from xue.classes.models import *
from django.contrib import admin
admin.site.register(Major)
admin.site.register(LogicalClass)
# vim:ai:et:ts=4:sw=4:sts=4:fenc=utf-8
| 17.636364 | 38 | 0.721649 | 33 | 194 | 4.242424 | 0.69697 | 0.057143 | 0.242857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028902 | 0.108247 | 194 | 10 | 39 | 19.4 | 0.780347 | 0.298969 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
b02792b02c8236cc65aca48706d7909a87e126ee | 1,170 | py | Python | flit_core/flit_core/tests/test_versionno.py | ksunden/flit | 5ed24842e614af813bd67ecf6ee918961fbf0ac2 | [
"BSD-3-Clause"
] | 1,642 | 2015-03-26T18:22:25.000Z | 2021-12-01T00:10:52.000Z | flit_core/flit_core/tests/test_versionno.py | ksunden/flit | 5ed24842e614af813bd67ecf6ee918961fbf0ac2 | [
"BSD-3-Clause"
] | 427 | 2015-03-16T20:22:17.000Z | 2021-12-01T14:15:38.000Z | flit_core/flit_core/tests/test_versionno.py | ksunden/flit | 5ed24842e614af813bd67ecf6ee918961fbf0ac2 | [
"BSD-3-Clause"
] | 110 | 2015-03-28T02:50:28.000Z | 2021-11-27T09:36:37.000Z | import pytest
from flit_core.common import InvalidVersion
from flit_core.versionno import normalise_version
def test_normalise_version():
nv = normalise_version
assert nv('4.3.1') == '4.3.1'
assert nv('1.0b2') == '1.0b2'
assert nv('2!1.3') == '2!1.3'
# Prereleases
assert nv('1.0B2') == '1.0b2... | 28.536585 | 83 | 0.573504 | 197 | 1,170 | 3.360406 | 0.28934 | 0.241692 | 0.231118 | 0.120846 | 0.20997 | 0.072508 | 0.072508 | 0.072508 | 0 | 0 | 0 | 0.138412 | 0.203419 | 1,170 | 40 | 84 | 29.25 | 0.571888 | 0.039316 | 0 | 0.068966 | 0 | 0 | 0.305357 | 0.053571 | 0 | 0 | 0 | 0 | 0.689655 | 1 | 0.034483 | false | 0 | 0.103448 | 0 | 0.137931 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b0355df4d0557ea6b1c0005b55eca16851ac4de6 | 2,592 | py | Python | app/upload_service.py | LowerSilesians/geo-geschenk | aee75d9a3d5fc6653a5c918530ab3ddfa0723926 | [
"MIT"
] | 1 | 2016-03-11T12:33:47.000Z | 2016-03-11T12:33:47.000Z | app/upload_service.py | LowerSilesians/geo-geschenk | aee75d9a3d5fc6653a5c918530ab3ddfa0723926 | [
"MIT"
] | null | null | null | app/upload_service.py | LowerSilesians/geo-geschenk | aee75d9a3d5fc6653a5c918530ab3ddfa0723926 | [
"MIT"
] | null | null | null | from geosquizzy.squizzy import GeoSquizzy
from pymongo import MongoClient
import json
from utils import get_data
class UploadService:
def __init__(self, request=None, session=None, url=None):
self.data = self.__get__file(request=request, url=url)
self.file_raw = self.__read__data__(data=self.data)... | 34.56 | 117 | 0.668981 | 351 | 2,592 | 4.666667 | 0.245014 | 0.029304 | 0.034188 | 0.012821 | 0.031746 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003441 | 0.215278 | 2,592 | 75 | 118 | 34.56 | 0.801868 | 0.018519 | 0 | 0.070175 | 0 | 0 | 0.038144 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.245614 | false | 0 | 0.070175 | 0.105263 | 0.561404 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 3 |
b03aadfdbbb56089c9f71534a4007b8d00fee687 | 4,545 | py | Python | test_discretization/test_svm.py | wsgan001/AnomalyDetection | 397673dc6ce978361a3fc6f2fd34879f69bc962a | [
"MIT"
] | null | null | null | test_discretization/test_svm.py | wsgan001/AnomalyDetection | 397673dc6ce978361a3fc6f2fd34879f69bc962a | [
"MIT"
] | null | null | null | test_discretization/test_svm.py | wsgan001/AnomalyDetection | 397673dc6ce978361a3fc6f2fd34879f69bc962a | [
"MIT"
] | 1 | 2020-03-16T21:50:52.000Z | 2020-03-16T21:50:52.000Z | import pandas as pd
import math
import random
from sklearn import svm
headerfile = './nslkdd/data/kddcup.names'
datfile = './nslkdd/data/KDDTrain+_20Percent.txt'
headers=open(headerfile,'r').readlines()[1:]
headers = [h.split(':')[0] for h in headers]
headers.append('attack')
headers.append('attack_idx')
df = pd.re... | 34.172932 | 224 | 0.480088 | 774 | 4,545 | 2.79199 | 0.180879 | 0.15826 | 0.209625 | 0.246182 | 0.414623 | 0.368348 | 0.357242 | 0.291069 | 0.291069 | 0.275798 | 0 | 0.123324 | 0.327393 | 4,545 | 132 | 225 | 34.431818 | 0.583579 | 0.163256 | 0 | 0.106061 | 0 | 0 | 0.124177 | 0.027644 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.075758 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b051a718795026bc308f195e213eec77fd429171 | 184 | py | Python | python_solutions/numpy/Inner and Outer.py | ersincebi/hackerrank | 9475c8e88e9071544c10a939fe7307c8e62fe3a0 | [
"MIT"
] | null | null | null | python_solutions/numpy/Inner and Outer.py | ersincebi/hackerrank | 9475c8e88e9071544c10a939fe7307c8e62fe3a0 | [
"MIT"
] | null | null | null | python_solutions/numpy/Inner and Outer.py | ersincebi/hackerrank | 9475c8e88e9071544c10a939fe7307c8e62fe3a0 | [
"MIT"
] | null | null | null | import numpy as np
toInt = lambda x: list(map(int, x.strip().split()))
A = np.array([toInt(input())])
B = np.array([toInt(input())])
print(np.inner(A, B)[0,0])
print(np.outer(A, B)) | 20.444444 | 51 | 0.619565 | 35 | 184 | 3.257143 | 0.571429 | 0.122807 | 0.210526 | 0.298246 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012346 | 0.119565 | 184 | 9 | 52 | 20.444444 | 0.691358 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.333333 | 0 | 0 | 0 | null | 0 | 1 | 1 | 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 | 3 |
b05baf2e414031ea2f5c1a269a99b13d86ec524a | 170 | py | Python | prova02/questao01.py | RamonBomfim/lab-de-prog2 | fdc054cf092cd1a06d34a2bdc0edcb5826f79775 | [
"MIT"
] | null | null | null | prova02/questao01.py | RamonBomfim/lab-de-prog2 | fdc054cf092cd1a06d34a2bdc0edcb5826f79775 | [
"MIT"
] | null | null | null | prova02/questao01.py | RamonBomfim/lab-de-prog2 | fdc054cf092cd1a06d34a2bdc0edcb5826f79775 | [
"MIT"
] | null | null | null | def calcular(a, b):
if (a > b):
total = a * b
elif (a == b):
total = a * (b + 2)
else:
total = a
print(total)
calcular(10, 10)
| 13.076923 | 27 | 0.411765 | 25 | 170 | 2.8 | 0.44 | 0.142857 | 0.2 | 0.228571 | 0.257143 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051546 | 0.429412 | 170 | 12 | 28 | 14.166667 | 0.670103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.111111 | 0.111111 | 1 | 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 | 3 |
c67aa9d2f3d66a14ff0ce79951866368734a7c25 | 276 | py | Python | dynamic_image_networks/hmdb51/utilities/calculate_training_metrics.py | DoranLyong/dynamic-images-for-action-recognition | 06a68c2337b45c44a8c7ec50e94585a9b9615ad0 | [
"MIT"
] | 22 | 2018-09-14T00:32:41.000Z | 2020-10-23T11:19:12.000Z | dynamic_image_networks/hmdb51/utilities/calculate_training_metrics.py | DoranLyong/dynamic-images-for-action-recognition | 06a68c2337b45c44a8c7ec50e94585a9b9615ad0 | [
"MIT"
] | 1 | 2020-07-08T03:10:54.000Z | 2020-07-13T19:04:26.000Z | dynamic_image_networks/hmdb51/utilities/calculate_training_metrics.py | DoranLyong/dynamic-images-for-action-recognition | 06a68c2337b45c44a8c7ec50e94585a9b9615ad0 | [
"MIT"
] | 7 | 2018-11-01T02:32:09.000Z | 2020-10-03T12:19:02.000Z | import torch
import numpy as np
def calculate_accuracy(y_pred, y_true):
# Inspired from https://pytorch.org/tutorials/beginner/blitz/cifar10_tutorial.html.
_, predicted = torch.max(y_pred, 1)
acc = (predicted == y_true).sum().item() / len(y_pred)
return acc
| 27.6 | 87 | 0.710145 | 41 | 276 | 4.585366 | 0.731707 | 0.079787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012987 | 0.163043 | 276 | 9 | 88 | 30.666667 | 0.800866 | 0.293478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 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 | 1 | 0 | 0 | 3 |
c69187268fb4755676c5f0a1322e1a24d93ec526 | 39 | py | Python | setup/brython/__init__.py | ranjian0/brython | 6dd5f2e3e89638d1607f118cf25f6b0375890381 | [
"BSD-3-Clause"
] | null | null | null | setup/brython/__init__.py | ranjian0/brython | 6dd5f2e3e89638d1607f118cf25f6b0375890381 | [
"BSD-3-Clause"
] | null | null | null | setup/brython/__init__.py | ranjian0/brython | 6dd5f2e3e89638d1607f118cf25f6b0375890381 | [
"BSD-3-Clause"
] | null | null | null | __version__ = implementation = "3.10.1" | 39 | 39 | 0.74359 | 5 | 39 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 0.102564 | 39 | 1 | 39 | 39 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
c692d18861e644fb677d567ff36aadbc1246048e | 424 | py | Python | 2020-05-17-python-pytest/examples/test_code.py | Cheukting/python02hero | da6f0f0c1455237b47923a9a1ac6f10562034f9f | [
"MIT"
] | 12 | 2020-05-12T06:56:00.000Z | 2021-07-06T11:43:46.000Z | 2020-05-17-python-pytest/examples/test_code.py | Cheukting/python02hero | da6f0f0c1455237b47923a9a1ac6f10562034f9f | [
"MIT"
] | 1 | 2021-01-30T16:48:42.000Z | 2021-04-03T00:40:12.000Z | 2020-05-17-python-pytest/examples/test_code.py | Cheukting/python02hero | da6f0f0c1455237b47923a9a1ac6f10562034f9f | [
"MIT"
] | 3 | 2020-04-27T07:02:19.000Z | 2021-07-06T11:43:48.000Z | import pytest
from .code import *
class TestPub:
def test_serve_beer_legal(self):
adult = 25
assert serve_beer(adult) == "Have beer"
def test_serve_beer_illegal(self):
child = 10
assert serve_beer(child) == "No beer"
def test_serve_beer_no_age(self):
with ... | 23.555556 | 65 | 0.610849 | 56 | 424 | 4.392857 | 0.517857 | 0.219512 | 0.146341 | 0.195122 | 0.162602 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013514 | 0.301887 | 424 | 17 | 66 | 24.941176 | 0.817568 | 0 | 0 | 0 | 0 | 0 | 0.075472 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.230769 | false | 0 | 0.153846 | 0 | 0.461538 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c6a0da5cd31f2a9ab7aaac6a1be81d3fdb848af8 | 462 | py | Python | fastapi-alembic-sqlmodel-async/app/api/api_v1/api.py | jonra1993/fastapi-alembic-sqlmodel-async | 55c8a127bf17e6e5de95047a54a0ef913511f2d9 | [
"MIT"
] | 15 | 2022-03-07T05:57:01.000Z | 2022-03-25T14:08:56.000Z | fastapi-alembic-sqlmodel-async/app/api/api_v1/api.py | jonra1993/fastapi-alembic-sqlmodel-async | 55c8a127bf17e6e5de95047a54a0ef913511f2d9 | [
"MIT"
] | null | null | null | fastapi-alembic-sqlmodel-async/app/api/api_v1/api.py | jonra1993/fastapi-alembic-sqlmodel-async | 55c8a127bf17e6e5de95047a54a0ef913511f2d9 | [
"MIT"
] | 1 | 2022-03-08T04:54:14.000Z | 2022-03-08T04:54:14.000Z | from fastapi import APIRouter
from app.api.api_v1.endpoints import user, hero, team, login, role, group
api_router = APIRouter()
api_router.include_router(login.router, tags=['login_form'])
api_router.include_router(role.router, tags=['role'])
api_router.include_router(user.router, tags=['user'])
api_router.include_rou... | 46.2 | 73 | 0.785714 | 69 | 462 | 5.043478 | 0.26087 | 0.181034 | 0.275862 | 0.37931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002304 | 0.060606 | 462 | 9 | 74 | 51.333333 | 0.799539 | 0 | 0 | 0 | 0 | 0 | 0.0671 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 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 | 3 |
c6b1a8d5a063816aac0ae6a76851b33a16661b1a | 461 | py | Python | src/openprocurement/tender/location/tests/tender.py | BohdanBorkivskyi/openprocurement.api | 9f4134a15243f8a82a28de72c5ffac6f16e7f06b | [
"Apache-2.0"
] | null | null | null | src/openprocurement/tender/location/tests/tender.py | BohdanBorkivskyi/openprocurement.api | 9f4134a15243f8a82a28de72c5ffac6f16e7f06b | [
"Apache-2.0"
] | null | null | null | src/openprocurement/tender/location/tests/tender.py | BohdanBorkivskyi/openprocurement.api | 9f4134a15243f8a82a28de72c5ffac6f16e7f06b | [
"Apache-2.0"
] | null | null | null | import unittest
from copy import deepcopy
from openprocurement.api.tests.base import snitch
from openprocurement.tender.location.tests.base import test_tender_data, BaseApiWebTest
from openprocurement.tender.location.tests.tender_blanks import create_tender
tender_data = deepcopy(test_tender_data)
class TenderTest(... | 28.8125 | 87 | 0.81128 | 57 | 461 | 6.333333 | 0.403509 | 0.110803 | 0.083102 | 0.182825 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112798 | 461 | 15 | 88 | 30.733333 | 0.882641 | 0 | 0 | 0 | 0 | 0 | 0.023861 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.9 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
c6b25dc2f61f06fb3348a1ba99464e08a3d476a4 | 56 | py | Python | cotidia/stripe/__init__.py | guillaumepiot/cotidia-stripe | f23329e8363c3d8577acf9633966d6af61c090eb | [
"BSD-3-Clause"
] | null | null | null | cotidia/stripe/__init__.py | guillaumepiot/cotidia-stripe | f23329e8363c3d8577acf9633966d6af61c090eb | [
"BSD-3-Clause"
] | null | null | null | cotidia/stripe/__init__.py | guillaumepiot/cotidia-stripe | f23329e8363c3d8577acf9633966d6af61c090eb | [
"BSD-3-Clause"
] | null | null | null | default_app_config = 'cotidia.stripe.apps.StripeConfig'
| 28 | 55 | 0.839286 | 7 | 56 | 6.428571 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053571 | 56 | 1 | 56 | 56 | 0.849057 | 0 | 0 | 0 | 0 | 0 | 0.571429 | 0.571429 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c6b714b1307ffae42b91d2acf7253e138b1d3278 | 16,500 | py | Python | sppas/sppas/src/anndata/anndataexc.py | mirfan899/MTTS | 3167b65f576abcc27a8767d24c274a04712bd948 | [
"MIT"
] | null | null | null | sppas/sppas/src/anndata/anndataexc.py | mirfan899/MTTS | 3167b65f576abcc27a8767d24c274a04712bd948 | [
"MIT"
] | null | null | null | sppas/sppas/src/anndata/anndataexc.py | mirfan899/MTTS | 3167b65f576abcc27a8767d24c274a04712bd948 | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
"""
..
---------------------------------------------------------------------
___ __ __ __ ___
/ | \ | \ | \ / the automatic
\__ |__/ |__/ |___| \__ annotation and
\ | | | | \ ... | 26.066351 | 79 | 0.464667 | 1,483 | 16,500 | 4.91706 | 0.196224 | 0.117663 | 0.049781 | 0.072408 | 0.435134 | 0.387137 | 0.366566 | 0.358338 | 0.277153 | 0.219419 | 0 | 0.034417 | 0.274485 | 16,500 | 632 | 80 | 26.107595 | 0.574722 | 0.383939 | 0 | 0.396226 | 0 | 0 | 0.024372 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.311321 | false | 0 | 0.009434 | 0.15566 | 0.632075 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 3 |
c6c7dc9e22c5f8eb529bee396bd15a31c96c6e6d | 2,100 | py | Python | abides-markets/abides_markets/generators.py | jpmorganchase/ABIDES-jpmc-gym | 198736a1b1316190072356c980412569579f15a6 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2021-09-23T13:17:26.000Z | 2021-09-23T13:17:26.000Z | abides-markets/abides_markets/generators.py | jpmorganchase/ABIDES-gym | 198736a1b1316190072356c980412569579f15a6 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | abides-markets/abides_markets/generators.py | jpmorganchase/ABIDES-gym | 198736a1b1316190072356c980412569579f15a6 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | from abc import abstractmethod, ABC
import numpy as np
from abides_core.generators import BaseGenerator
################## ORDER SIZE MODEL ###############################
class OrderSizeGenerator(BaseGenerator[int], ABC):
pass
class ConstantOrderSizeGenerator(OrderSizeGenerator):
def __init__(self, order_... | 28.767123 | 88 | 0.658095 | 251 | 2,100 | 5.207171 | 0.159363 | 0.151492 | 0.109411 | 0.078041 | 0.679419 | 0.636572 | 0.524101 | 0.287682 | 0.157613 | 0.084162 | 0 | 0.003636 | 0.214286 | 2,100 | 72 | 89 | 29.166667 | 0.788485 | 0.016667 | 0 | 0.489796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.244898 | false | 0.040816 | 0.061224 | 0.163265 | 0.591837 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 3 |
05a30d0dbff653653fc618df07ed749747a331ce | 1,610 | py | Python | plugin/settings.py | andykingking/sublime-format | d1d9e2192729ffdecf9f09e54bdfc2c13890542f | [
"MIT"
] | null | null | null | plugin/settings.py | andykingking/sublime-format | d1d9e2192729ffdecf9f09e54bdfc2c13890542f | [
"MIT"
] | null | null | null | plugin/settings.py | andykingking/sublime-format | d1d9e2192729ffdecf9f09e54bdfc2c13890542f | [
"MIT"
] | null | null | null | import sublime
PLUGIN_NAME = 'Format'
PLUGIN_SETTINGS = '{}.sublime-settings'.format(PLUGIN_NAME)
class Settings:
@staticmethod
def load():
return sublime.load_settings(PLUGIN_SETTINGS)
@staticmethod
def save():
sublime.save_settings(PLUGIN_SETTINGS)
@staticmethod
def on_cha... | 24.769231 | 75 | 0.660248 | 184 | 1,610 | 5.521739 | 0.206522 | 0.103346 | 0.059055 | 0.050197 | 0.110236 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.218634 | 1,610 | 64 | 76 | 25.15625 | 0.807631 | 0 | 0 | 0.212766 | 0 | 0 | 0.059627 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.297872 | false | 0 | 0.021277 | 0.170213 | 0.531915 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 3 |
05ddd3c3d096c1965705a10e40ccb156bd30be61 | 321 | py | Python | test/ex1/ex1/common/misc.py | nrgxtra/web_framework | dd84968a77b84a03d66c5db190b28bffc479f05e | [
"MIT"
] | null | null | null | test/ex1/ex1/common/misc.py | nrgxtra/web_framework | dd84968a77b84a03d66c5db190b28bffc479f05e | [
"MIT"
] | null | null | null | test/ex1/ex1/common/misc.py | nrgxtra/web_framework | dd84968a77b84a03d66c5db190b28bffc479f05e | [
"MIT"
] | null | null | null | from ex1.expense_app.models import Expense
from ex1.profile_app.models import Profile
def get_profile():
return Profile.objects.first()
def get_budget_left():
user = Profile.objects.first()
expenses = Expense.objects.all()
result = user.budget - sum([ex.price for ex in expenses])
return result
... | 20.0625 | 61 | 0.722741 | 45 | 321 | 5.044444 | 0.511111 | 0.061674 | 0.132159 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007576 | 0.17757 | 321 | 15 | 62 | 21.4 | 0.852273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.111111 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
05df34fc367e1ccca6387acc1b54ed269d52abe7 | 21 | py | Python | openstack_dashboard/dashboards/admin/systemlogs/__init__.py | xuweiliang/Codelibrary | 54e45b2daa205132c05b0ff5a2c3db7fca2853a7 | [
"Apache-2.0"
] | null | null | null | openstack_dashboard/dashboards/admin/systemlogs/__init__.py | xuweiliang/Codelibrary | 54e45b2daa205132c05b0ff5a2c3db7fca2853a7 | [
"Apache-2.0"
] | null | null | null | openstack_dashboard/dashboards/admin/systemlogs/__init__.py | xuweiliang/Codelibrary | 54e45b2daa205132c05b0ff5a2c3db7fca2853a7 | [
"Apache-2.0"
] | null | null | null | __author__ = 'Zero'
| 10.5 | 20 | 0.666667 | 2 | 21 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 21 | 1 | 21 | 21 | 0.588235 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
05f95e2af6de14575c5e2a61d09d1dce5b1a1e4d | 162 | py | Python | CSCI3104_Question1_O(n^2).py | shng5175/Random-Python-Stuff | 6b6687da9195a36244f7b22de7ba2984ce78995d | [
"bzip2-1.0.6"
] | null | null | null | CSCI3104_Question1_O(n^2).py | shng5175/Random-Python-Stuff | 6b6687da9195a36244f7b22de7ba2984ce78995d | [
"bzip2-1.0.6"
] | null | null | null | CSCI3104_Question1_O(n^2).py | shng5175/Random-Python-Stuff | 6b6687da9195a36244f7b22de7ba2984ce78995d | [
"bzip2-1.0.6"
] | null | null | null | a = [8, 10, 2, 5, 20, 1]
count = 0
for i in range(len(a)):
for j in range(i + 1, len(a)):
if (a[i] > a[j]):
count += 1
print count
| 20.25 | 35 | 0.425926 | 32 | 162 | 2.15625 | 0.53125 | 0.202899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11 | 0.382716 | 162 | 7 | 36 | 23.142857 | 0.58 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.142857 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
05fa64741db475afdb8a2a8628222bd718e7bd0f | 185 | py | Python | src/api/models/article/author.py | nhardy/py-js-web-scaffold | adf3e3ada0b21cdb9620676de795579107442dd7 | [
"MIT"
] | null | null | null | src/api/models/article/author.py | nhardy/py-js-web-scaffold | adf3e3ada0b21cdb9620676de795579107442dd7 | [
"MIT"
] | null | null | null | src/api/models/article/author.py | nhardy/py-js-web-scaffold | adf3e3ada0b21cdb9620676de795579107442dd7 | [
"MIT"
] | null | null | null | from ..base import BaseModel
from ..href import HrefModel
class AuthorModel(BaseModel):
def init(self):
self.add_property('name')
self.add_model_property('link', HrefModel)
| 20.555556 | 46 | 0.740541 | 24 | 185 | 5.583333 | 0.666667 | 0.104478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145946 | 185 | 8 | 47 | 23.125 | 0.848101 | 0 | 0 | 0 | 0 | 0 | 0.043243 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
af2617356da33a1a2a443e9d75c0c43c7803552e | 682 | py | Python | forms.py | benjithorpe/puny | 4429bb6c4b99a3a5839054d863609e9f87e3a2d5 | [
"MIT"
] | null | null | null | forms.py | benjithorpe/puny | 4429bb6c4b99a3a5839054d863609e9f87e3a2d5 | [
"MIT"
] | null | null | null | forms.py | benjithorpe/puny | 4429bb6c4b99a3a5839054d863609e9f87e3a2d5 | [
"MIT"
] | null | null | null | from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField, PasswordField
from wtforms.validators import DataRequired
class LoginForm(FlaskForm):
username = StringField("Username", validators=[DataRequired()])
password = PasswordField("Password", validators=[DataRequired()])
login_btn = ... | 37.888889 | 69 | 0.747801 | 63 | 682 | 8.047619 | 0.428571 | 0.260355 | 0.106509 | 0.145957 | 0.43787 | 0.287968 | 0.287968 | 0 | 0 | 0 | 0 | 0 | 0.127566 | 682 | 17 | 70 | 40.117647 | 0.852101 | 0 | 0 | 0.307692 | 0 | 0 | 0.08651 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.230769 | 0.230769 | 0 | 1 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
af2b28257b96746d4ba4c68f60dc180d302ba0cc | 6,083 | py | Python | Lib/site-packages/numarray/random_array/dtest.py | raychorn/svn_Python-2.5.1 | 425005b1b489ba44ec0bb989e077297e8953d9be | [
"PSF-2.0"
] | null | null | null | Lib/site-packages/numarray/random_array/dtest.py | raychorn/svn_Python-2.5.1 | 425005b1b489ba44ec0bb989e077297e8953d9be | [
"PSF-2.0"
] | null | null | null | Lib/site-packages/numarray/random_array/dtest.py | raychorn/svn_Python-2.5.1 | 425005b1b489ba44ec0bb989e077297e8953d9be | [
"PSF-2.0"
] | null | null | null | """
>>> eps = 1e-4
>>> seed(104162795, 1578461743)
>>> int((random()-0.0780920758843) < eps)
1
Average of 10000 random numbers
>>> int((num.sum(random(10000))/10000. - 0.49829185756540684) < eps)
1
>>> x = random([10,1000])
>>> x.shape
(10, 1000)
>>> x.shape = 10000
Average of 100 by 100 random numbers
>>> int((num... | 28.032258 | 159 | 0.551701 | 1,020 | 6,083 | 3.232353 | 0.201961 | 0.006673 | 0.027298 | 0.025478 | 0.275705 | 0.167122 | 0.114346 | 0.094631 | 0.07886 | 0.051259 | 0 | 0.251768 | 0.23278 | 6,083 | 216 | 160 | 28.162037 | 0.454682 | 0 | 0 | 0 | 0 | 0 | 0.028195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.033333 | 0.133333 | null | null | 0.033333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
af3534a2a861870ac487e93e48edfb17b14c485c | 508 | py | Python | hashes.py | sorrge/goviaji | 6a9c1da82c7db2ddfbed374b1950f048d9d72fa3 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 4 | 2019-02-17T04:14:26.000Z | 2020-11-29T07:23:56.000Z | hashes.py | sorrge/goviaji | 6a9c1da82c7db2ddfbed374b1950f048d9d72fa3 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | hashes.py | sorrge/goviaji | 6a9c1da82c7db2ddfbed374b1950f048d9d72fa3 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | import random
hash_mask = 0xffffffffffffffff
combinator_value = 0xa0cf5a622e18b479
def new_hash():
return random.getrandbits(64)
def combine_hashes(h1, h2):
return h1 ^ ((h2 + combinator_value + (h1 << 6) + (h1 >> 2)) & hash_mask)
hashes_for_idx = []
def get_hash_for_idx(idx1, idx2):
while idx1 >= ... | 19.538462 | 77 | 0.685039 | 71 | 508 | 4.591549 | 0.380282 | 0.128834 | 0.220859 | 0.147239 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072816 | 0.188976 | 508 | 25 | 78 | 20.32 | 0.718447 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070866 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0.142857 | 0.5 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
af657aad155897d3c17e06bce26c4cee7d31f327 | 46 | py | Python | test.py | angel-2022cal/PyPoll_with_Python | d249376f787c131787210fde6e758b2591ea3555 | [
"MIT"
] | null | null | null | test.py | angel-2022cal/PyPoll_with_Python | d249376f787c131787210fde6e758b2591ea3555 | [
"MIT"
] | null | null | null | test.py | angel-2022cal/PyPoll_with_Python | d249376f787c131787210fde6e758b2591ea3555 | [
"MIT"
] | null | null | null | print("test")
type(3)
ballots = 1,342
ballots | 11.5 | 15 | 0.695652 | 8 | 46 | 4 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0.130435 | 46 | 4 | 16 | 11.5 | 0.675 | 0 | 0 | 0 | 0 | 0 | 0.085106 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 1 | 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 | 3 |
af7b94dadd7b719b7325535294a305fa3575be89 | 314 | py | Python | costflow/config.py | StdioA/costflow | 31335c0452d2a8a8b32014ef09cab62c1a4c244f | [
"MIT"
] | null | null | null | costflow/config.py | StdioA/costflow | 31335c0452d2a8a8b32014ef09cab62c1a4c244f | [
"MIT"
] | null | null | null | costflow/config.py | StdioA/costflow | 31335c0452d2a8a8b32014ef09cab62c1a4c244f | [
"MIT"
] | null | null | null | from dataclasses import dataclass, field
@dataclass
class Config:
default_currency: str = "CNY"
formulas: dict = field(default_factory=dict)
def get_formula(self, name):
return self.formulas.get(name, "")
# TODO: Beancount loader for default currency
# Global store
config = Config()
| 18.470588 | 49 | 0.700637 | 38 | 314 | 5.710526 | 0.684211 | 0.138249 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207006 | 314 | 16 | 50 | 19.625 | 0.871486 | 0.178344 | 0 | 0 | 0 | 0 | 0.011765 | 0 | 0 | 0 | 0 | 0.0625 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0.125 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
af7fd524b0e46b7ff4c1b2d866179e74bde84c16 | 853 | py | Python | src/bdbd/src/bdbd/analysis/motion/scratch.py | rkent/BDBD | c5d391da84faf5607c443078781f8b4e1c017dd5 | [
"MIT"
] | null | null | null | src/bdbd/src/bdbd/analysis/motion/scratch.py | rkent/BDBD | c5d391da84faf5607c443078781f8b4e1c017dd5 | [
"MIT"
] | null | null | null | src/bdbd/src/bdbd/analysis/motion/scratch.py | rkent/BDBD | c5d391da84faf5607c443078781f8b4e1c017dd5 | [
"MIT"
] | null | null | null | # just a scratchpad for test calculations
from numpy.lib.financial import nper
import numpy as np
from numpy.random import default_rng
import time
from math import sin, cos
from bdbd_common.utils import fstr, gstr
tp = -0.00111230739817
tc = -0.00106991938304
tm = -0.0010275313679
print((-tp -tm +2*tc)/(1.e-3)**2)
pr... | 38.772727 | 213 | 0.711606 | 118 | 853 | 5.127119 | 0.550847 | 0.029752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.456825 | 0.158265 | 853 | 22 | 214 | 38.772727 | 0.385794 | 0.045721 | 0 | 0 | 0 | 0 | 0.01968 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.352941 | 0 | 0.352941 | 0.176471 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
afa8d7c1ea0a81dfddb7555cdcb8127a8ebef6a6 | 229 | py | Python | src/notesdir/__init__.py | rjgibson/notesdir | 7f3c907654a37384eb42a52da82d907354b92512 | [
"MIT"
] | 11 | 2020-07-24T20:41:13.000Z | 2021-01-17T15:05:49.000Z | src/notesdir/__init__.py | dendronhq/notesdir | e7f264541927a26767058cff9dd53fad022e4af5 | [
"MIT"
] | 3 | 2020-07-25T08:44:21.000Z | 2020-12-12T21:15:22.000Z | src/notesdir/__init__.py | dendronhq/notesdir | e7f264541927a26767058cff9dd53fad022e4af5 | [
"MIT"
] | 4 | 2020-07-28T20:37:40.000Z | 2021-08-11T16:49:46.000Z | """Helps manage notes stored as plain files in the filesystem.
If you installed via ``pip``, run ``notesdir -h` to get help.
Or, run ``python3 -m notesdir -h``.
To use the Python API, look at :class:`notesdir.api.Notesdir`
"""
| 28.625 | 62 | 0.694323 | 38 | 229 | 4.184211 | 0.789474 | 0.113208 | 0.138365 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005236 | 0.165939 | 229 | 7 | 63 | 32.714286 | 0.827225 | 0.965066 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
afb1cfb3366ea588583be545f0d338f3152ccd59 | 281 | py | Python | video_streamer/comm.py | zhiyanliu/riverrun | c426139e0b4ea0b46d74c6152ede1d2cec8f836f | [
"MIT"
] | null | null | null | video_streamer/comm.py | zhiyanliu/riverrun | c426139e0b4ea0b46d74c6152ede1d2cec8f836f | [
"MIT"
] | null | null | null | video_streamer/comm.py | zhiyanliu/riverrun | c426139e0b4ea0b46d74c6152ede1d2cec8f836f | [
"MIT"
] | null | null | null | import constants
import sync_pkt_receiver
# Income
def create_sync_pkt_receiver(stat_queue, sync_pkt_queue_size=20):
port = constants.get_sync_pkt_server_port()
receiver = sync_pkt_receiver.SyncPacketTCPReceiver(stat_queue, sync_pkt_queue_size, port)
return receiver
| 28.1 | 93 | 0.825623 | 40 | 281 | 5.325 | 0.425 | 0.197183 | 0.211268 | 0.150235 | 0.234742 | 0.234742 | 0 | 0 | 0 | 0 | 0 | 0.008065 | 0.117438 | 281 | 9 | 94 | 31.222222 | 0.850806 | 0.021352 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 3 |
afb324a2e748ab5b49dcdbb2dda778536bc98729 | 14,300 | py | Python | temp/input_systemwin.py | Pugavkomm/NS-analyst | 698af0e94f57b431fd77c17c49d4a23f11d21d3f | [
"MIT"
] | null | null | null | temp/input_systemwin.py | Pugavkomm/NS-analyst | 698af0e94f57b431fd77c17c49d4a23f11d21d3f | [
"MIT"
] | null | null | null | temp/input_systemwin.py | Pugavkomm/NS-analyst | 698af0e94f57b431fd77c17c49d4a23f11d21d3f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'inpu_systemwin.ui'
#
# Created by: PyQt5 UI code generator 5.12
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_inpusystemWin(object):
def setupUi(self, inpusystemWin):
... | 50 | 149 | 0.682797 | 1,708 | 14,300 | 5.698478 | 0.112998 | 0.121545 | 0.073975 | 0.097092 | 0.748587 | 0.708415 | 0.692181 | 0.681496 | 0.681496 | 0.674818 | 0 | 0.051073 | 0.178462 | 14,300 | 285 | 150 | 50.175439 | 0.777409 | 0.013007 | 0 | 0.546125 | 1 | 0.00369 | 0.139667 | 0.009926 | 0 | 0 | 0 | 0 | 0 | 1 | 0.00738 | false | 0 | 0.00369 | 0 | 0.01476 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
afb7242c5bcd0d0c08e88abd77479bef7a7a0310 | 169 | py | Python | test.py | Thachj-Thw/module | a8b2dced1e821e40f4612851a3557830c503e2d4 | [
"MIT"
] | null | null | null | test.py | Thachj-Thw/module | a8b2dced1e821e40f4612851a3557830c503e2d4 | [
"MIT"
] | null | null | null | test.py | Thachj-Thw/module | a8b2dced1e821e40f4612851a3557830c503e2d4 | [
"MIT"
] | null | null | null | import subprocess
import module
import time
p = subprocess.Popen("C:\\WINDOWS\\system32\\notepad.exe")
time.sleep(.1)
note = module.Window.from_pid(p.pid)
print(note)
| 16.9 | 58 | 0.751479 | 26 | 169 | 4.846154 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019608 | 0.094675 | 169 | 9 | 59 | 18.777778 | 0.803922 | 0 | 0 | 0 | 0 | 0 | 0.201183 | 0.201183 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0.142857 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
bb6414e2036e8e527cb19bda583ab9e4a5c4e34a | 116 | py | Python | reverseString.py | shubham2704/codes_instagram | c95aab74aabb4af9d4baa5c7b26698d8f77a95eb | [
"MIT"
] | 1 | 2020-06-05T19:06:49.000Z | 2020-06-05T19:06:49.000Z | reverseString.py | shubham2704/codes_instagram | c95aab74aabb4af9d4baa5c7b26698d8f77a95eb | [
"MIT"
] | null | null | null | reverseString.py | shubham2704/codes_instagram | c95aab74aabb4af9d4baa5c7b26698d8f77a95eb | [
"MIT"
] | null | null | null | s = 'nothyp_onan@'
l = [1,2,3,4,5,6,7,8,9]
print(s[::-1])
print(l[::-1])
print(reversed(l))
l1 = l.reverse
print(l1) | 16.571429 | 23 | 0.577586 | 27 | 116 | 2.444444 | 0.62963 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0.103448 | 116 | 7 | 24 | 16.571429 | 0.509615 | 0 | 0 | 0 | 0 | 0 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.571429 | 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 | 1 | 0 | 3 |
bb7238a396f28205763ab25a37190dda49705fd7 | 1,961 | py | Python | WELCOME_BACK.py | noor20-meet/meet2018y1mini-proj | 088f385f972424a53e0c899a41a6fddce5fd342e | [
"MIT"
] | null | null | null | WELCOME_BACK.py | noor20-meet/meet2018y1mini-proj | 088f385f972424a53e0c899a41a6fddce5fd342e | [
"MIT"
] | null | null | null | WELCOME_BACK.py | noor20-meet/meet2018y1mini-proj | 088f385f972424a53e0c899a41a6fddce5fd342e | [
"MIT"
] | null | null | null | import turtle
'''
turtle.pencolor("Red")
turtle.pensize(10)
turtle.penup()
turtle.goto(-400,300)
turtle.pendown()
turtle.goto(-370,200)
turtle.goto(-340,300)
turtle.goto(-310,200)
turtle.goto(-280,300)
turtle.penup()
turtle.pencolor("Pink")
turtle.goto(-190,300)
turtle.pendown()
turtle.goto(-240,300)
turtle.goto(-240,... | 18.327103 | 25 | 0.73126 | 326 | 1,961 | 4.398773 | 0.122699 | 0.425384 | 0.108787 | 0.160391 | 0.69735 | 0.433054 | 0.152022 | 0.054393 | 0 | 0 | 0 | 0.181769 | 0.054564 | 1,961 | 106 | 26 | 18.5 | 0.591694 | 0 | 0 | 0.405405 | 0 | 0 | 0.017333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.027027 | 0 | 0.027027 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bb948c7bda543d997fe3f4ae4b24951905c81185 | 558 | py | Python | DesignPatterns/03_decorator/1_no_decorator/1_class/cars/economy.py | eduardormonteiro/PythonPersonalLibrary | 561733bb8305c4e25a08f99c28b60ec77251ad67 | [
"MIT"
] | null | null | null | DesignPatterns/03_decorator/1_no_decorator/1_class/cars/economy.py | eduardormonteiro/PythonPersonalLibrary | 561733bb8305c4e25a08f99c28b60ec77251ad67 | [
"MIT"
] | null | null | null | DesignPatterns/03_decorator/1_no_decorator/1_class/cars/economy.py | eduardormonteiro/PythonPersonalLibrary | 561733bb8305c4e25a08f99c28b60ec77251ad67 | [
"MIT"
] | null | null | null | from .abstract_car import AbstractCar
class Economy(AbstractCar):
def __init__(self, engine, paint, upholstery):
self._engine = engine
self._paint = paint
self._upholstery = upholstery
@property
def description(self):
return 'Economy'
@property
def engine(self):
... | 19.928571 | 50 | 0.625448 | 59 | 558 | 5.728814 | 0.338983 | 0.162722 | 0.12426 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017632 | 0.28853 | 558 | 27 | 51 | 20.666667 | 0.833753 | 0 | 0 | 0.238095 | 0 | 0 | 0.012545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.047619 | 0.238095 | 0.619048 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 3 |
bb99bd11afa645dd54dbcde8ef11240ffe806a17 | 312 | py | Python | infix_postfix_prefix.py | Chinmaykd21/python_practice | 9bee0bbdcf5f8b2d2b4b9d6671e85ca1d0388d4f | [
"MIT"
] | null | null | null | infix_postfix_prefix.py | Chinmaykd21/python_practice | 9bee0bbdcf5f8b2d2b4b9d6671e85ca1d0388d4f | [
"MIT"
] | null | null | null | infix_postfix_prefix.py | Chinmaykd21/python_practice | 9bee0bbdcf5f8b2d2b4b9d6671e85ca1d0388d4f | [
"MIT"
] | null | null | null | # Infix example : 2 + 3 = 5, 5 * 8 + 6 = 46 --> In infix operator is written between operands
# Prefix example: + 2 3, - p q, + a * b c --> In prefix operator is written before operands
# Postfix example: 2 3 +, p q -, a b c * + --> In Postfix operator is written after operands
# Tomorrow should be implemented
| 62.4 | 93 | 0.657051 | 52 | 312 | 3.942308 | 0.519231 | 0.117073 | 0.131707 | 0.097561 | 0.156098 | 0.156098 | 0.156098 | 0.156098 | 0.156098 | 0 | 0 | 0.050209 | 0.233974 | 312 | 4 | 94 | 78 | 0.807531 | 0.971154 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bba5f596ae6e2d920caadd1aeccf42f862bbb6ac | 958 | py | Python | mibs/pycopia/mibs/SNMP_FRAMEWORK_MIB_OID.py | kdart/pycopia | 1446fabaedf8c6bdd4ab1fc3f0ea731e0ef8da9d | [
"Apache-2.0"
] | 89 | 2015-03-26T11:25:20.000Z | 2022-01-12T06:25:14.000Z | mibs/pycopia/mibs/SNMP_FRAMEWORK_MIB_OID.py | kdart/pycopia | 1446fabaedf8c6bdd4ab1fc3f0ea731e0ef8da9d | [
"Apache-2.0"
] | 1 | 2015-07-05T03:27:43.000Z | 2015-07-11T06:21:20.000Z | mibs/pycopia/mibs/SNMP_FRAMEWORK_MIB_OID.py | kdart/pycopia | 1446fabaedf8c6bdd4ab1fc3f0ea731e0ef8da9d | [
"Apache-2.0"
] | 30 | 2015-04-30T01:35:54.000Z | 2022-01-12T06:19:49.000Z | # python
# This file is generated by a program (mib2py).
import SNMP_FRAMEWORK_MIB
OIDMAP = {
'1.3.6.1.6.3.10': SNMP_FRAMEWORK_MIB.snmpFrameworkMIB,
'1.3.6.1.6.3.10.1': SNMP_FRAMEWORK_MIB.snmpFrameworkAdmin,
'1.3.6.1.6.3.10.1.1': SNMP_FRAMEWORK_MIB.snmpAuthProtocols,
'1.3.6.1.6.3.10.1.2': SNMP_FRAMEWORK_MIB.snmpPriv... | 43.545455 | 69 | 0.751566 | 196 | 958 | 3.520408 | 0.173469 | 0.282609 | 0.347826 | 0.081159 | 0.337681 | 0.191304 | 0.191304 | 0.17971 | 0.101449 | 0 | 0 | 0.154945 | 0.050104 | 958 | 21 | 70 | 45.619048 | 0.603297 | 0.05428 | 0 | 0 | 1 | 0 | 0.279379 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bbbeb0d971dbfe8cd4f38d094bfbd3dbac0e70f2 | 738 | py | Python | epitran/test/test_spanish.py | dwijap/epitran | dab70c269710e73c1c7bf69c2de5d69b57a1d237 | [
"MIT"
] | 422 | 2016-05-19T09:07:38.000Z | 2022-03-31T15:06:36.000Z | epitran/test/test_spanish.py | dwijap/epitran | dab70c269710e73c1c7bf69c2de5d69b57a1d237 | [
"MIT"
] | 80 | 2017-05-22T14:58:19.000Z | 2022-03-28T19:23:31.000Z | epitran/test/test_spanish.py | dwijap/epitran | dab70c269710e73c1c7bf69c2de5d69b57a1d237 | [
"MIT"
] | 95 | 2017-05-06T04:19:53.000Z | 2022-03-21T10:41:42.000Z | # -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals
import unittest
import epitran
def assemble_ipa(xs):
return ''.join([x[3] for x in xs])
class TestSpanish(unittest.TestCase):
def setUp(self):
self.epi = epitran.Epitran(u'spa-Latn')
def _derivation(self, orth, co... | 23.0625 | 61 | 0.666667 | 98 | 738 | 4.826531 | 0.5 | 0.084567 | 0.15222 | 0.160677 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003396 | 0.201897 | 738 | 31 | 62 | 23.806452 | 0.79966 | 0.028455 | 0 | 0 | 0 | 0 | 0.082517 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.368421 | false | 0 | 0.157895 | 0.052632 | 0.631579 | 0.052632 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
bbd82630bcb1d4cfeb74fb9b710a94708ad0b947 | 47 | py | Python | pytype/__version__.py | domandinho/pytype | 95ebca39d72567ef5e8a4be86f1787893a39184d | [
"Apache-2.0"
] | null | null | null | pytype/__version__.py | domandinho/pytype | 95ebca39d72567ef5e8a4be86f1787893a39184d | [
"Apache-2.0"
] | null | null | null | pytype/__version__.py | domandinho/pytype | 95ebca39d72567ef5e8a4be86f1787893a39184d | [
"Apache-2.0"
] | null | null | null | # pylint: skip-file
__version__ = '2019.09.06'
| 15.666667 | 26 | 0.702128 | 7 | 47 | 4.142857 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195122 | 0.12766 | 47 | 2 | 27 | 23.5 | 0.512195 | 0.361702 | 0 | 0 | 0 | 0 | 0.357143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
bbf0074bba67ac1c109b101068ab7aa03a83f296 | 142 | py | Python | bluejay/interface.py | FundingOptions/customer-events-python-client | 4f5b5d1573990e62f2c1622cfaaf9baae6c078ec | [
"MIT"
] | null | null | null | bluejay/interface.py | FundingOptions/customer-events-python-client | 4f5b5d1573990e62f2c1622cfaaf9baae6c078ec | [
"MIT"
] | 1 | 2019-09-20T14:11:12.000Z | 2019-09-20T14:11:12.000Z | bluejay/interface.py | FundingOptions/bluejay-client | 4f5b5d1573990e62f2c1622cfaaf9baae6c078ec | [
"MIT"
] | null | null | null | from typing_extensions import Protocol
class IEvent(Protocol):
event_name = "" # type: str
def as_dict(self) -> dict:
...
| 15.777778 | 38 | 0.626761 | 17 | 142 | 5.058824 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.260563 | 142 | 8 | 39 | 17.75 | 0.819048 | 0.06338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.8 | 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 | 1 | 0 | 0 | 3 |
bbf9ea81ce6794bf24e59c4193e8d5df5878b9ef | 692 | py | Python | webapps/pypi_org/views/package_views.py | pavanrao/python-projects | 0e7be87fec827554a6375ab9b011f6a09e9a410e | [
"MIT"
] | null | null | null | webapps/pypi_org/views/package_views.py | pavanrao/python-projects | 0e7be87fec827554a6375ab9b011f6a09e9a410e | [
"MIT"
] | null | null | null | webapps/pypi_org/views/package_views.py | pavanrao/python-projects | 0e7be87fec827554a6375ab9b011f6a09e9a410e | [
"MIT"
] | null | null | null | import os
import sys
import flask
folder = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
sys.path.insert(0, folder)
from pypi_org.infrastructure.view_modifiers import response
import pypi_org.services.package_service as package_service
blueprint = flask.Blueprint('packages', __name__, template_folde... | 28.833333 | 78 | 0.776012 | 95 | 692 | 5.442105 | 0.442105 | 0.034816 | 0.077369 | 0.108317 | 0.255319 | 0.162476 | 0.162476 | 0 | 0 | 0 | 0 | 0.00159 | 0.09104 | 692 | 23 | 79 | 30.086957 | 0.82035 | 0.138728 | 0 | 0 | 0 | 0 | 0.228956 | 0.038721 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.357143 | 0.142857 | 0.642857 | 0.214286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 1 | 0 | 0 | 3 |
a51db0694c45457f81cd72b60386ee1c0b97f19a | 1,350 | py | Python | test/test_sources_api.py | chargio/using-koku-api-test | 2f41fd83ab730705352b116b7a6e05ae3d9a8ebd | [
"MIT"
] | 1 | 2020-03-18T11:32:09.000Z | 2020-03-18T11:32:09.000Z | test/test_sources_api.py | chargio/using-koku-api-test | 2f41fd83ab730705352b116b7a6e05ae3d9a8ebd | [
"MIT"
] | null | null | null | test/test_sources_api.py | chargio/using-koku-api-test | 2f41fd83ab730705352b116b7a6e05ae3d9a8ebd | [
"MIT"
] | null | null | null | # coding: utf-8
"""
Cost Management
The API for Project Koku and OpenShift cost management. You can find out more about Cost Management at [https://github.com/project-koku/](https://github.com/project-koku/). # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-gener... | 21.774194 | 190 | 0.645185 | 173 | 1,350 | 4.843931 | 0.381503 | 0.066826 | 0.052506 | 0.071599 | 0.337709 | 0.057279 | 0 | 0 | 0 | 0 | 0 | 0.025176 | 0.264444 | 1,350 | 61 | 191 | 22.131148 | 0.818731 | 0.442222 | 0 | 0.25 | 0 | 0 | 0.012618 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0.25 | 0.25 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
a52e960de2c7d39d0c7939e08a7c4b48419ebce8 | 1,236 | py | Python | leetcode/1295_find_numbers_with_even_number_of_digits.py | chaosWsF/Python-Practice | ff617675b6bcd125933024bb4c246b63a272314d | [
"BSD-2-Clause"
] | null | null | null | leetcode/1295_find_numbers_with_even_number_of_digits.py | chaosWsF/Python-Practice | ff617675b6bcd125933024bb4c246b63a272314d | [
"BSD-2-Clause"
] | null | null | null | leetcode/1295_find_numbers_with_even_number_of_digits.py | chaosWsF/Python-Practice | ff617675b6bcd125933024bb4c246b63a272314d | [
"BSD-2-Clause"
] | null | null | null | """
Given an array nums of integers, return how many of them contain an even number of digits.
Example 1:
Input: nums = [12,345,2,6,7896]
Output: 2
Explanation:
12 contains 2 digits (even number of digits).
345 contains 3 digits (odd number of digits).
2 contains 1 digit (odd ... | 25.75 | 90 | 0.573625 | 182 | 1,236 | 3.895604 | 0.384615 | 0.090268 | 0.157969 | 0.126939 | 0.377997 | 0.22567 | 0.22567 | 0 | 0 | 0 | 0 | 0.11589 | 0.322816 | 1,236 | 47 | 91 | 26.297872 | 0.731183 | 0.584142 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.076923 | 0.153846 | 0.846154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 3 |
a5487f624ee2b5cbdd8b1ff4998d5b1308c3f687 | 1,371 | py | Python | cgi_etc_test.py | hsergi/Roman_Coronagraph_ETC | b2cfb42d1d74cdcc1a65efeb7a78c904f9cee235 | [
"Apache-2.0"
] | 1 | 2021-11-16T21:29:10.000Z | 2021-11-16T21:29:10.000Z | cgi_etc_test.py | hsergi/Roman_Coronagraph_ETC | b2cfb42d1d74cdcc1a65efeb7a78c904f9cee235 | [
"Apache-2.0"
] | null | null | null | cgi_etc_test.py | hsergi/Roman_Coronagraph_ETC | b2cfb42d1d74cdcc1a65efeb7a78c904f9cee235 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Global constant
from config import INSTALLATION_PATH
# Generic packages
import numpy as np
import hjson
import json
import os
from pathlib import Path
# For integration times
import astropy.units as u
# For keep outs and to convert decimal dates into readable dates
impo... | 36.078947 | 93 | 0.835157 | 222 | 1,371 | 4.923423 | 0.45045 | 0.054895 | 0.087832 | 0.077768 | 0.20677 | 0.20677 | 0.150046 | 0.150046 | 0.150046 | 0 | 0 | 0.001653 | 0.117433 | 1,371 | 37 | 94 | 37.054054 | 0.901653 | 0.274252 | 0 | 0 | 0 | 0 | 0.130214 | 0.021363 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.913043 | 0 | 0.913043 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
a58341f8cd706eb200af365fd44d9183018efd5f | 1,151 | py | Python | qcloudsdkmonitor/ModifyAlarmRuleRequest.py | f3n9/qcloudcli | b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19 | [
"Apache-2.0"
] | null | null | null | qcloudsdkmonitor/ModifyAlarmRuleRequest.py | f3n9/qcloudcli | b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19 | [
"Apache-2.0"
] | null | null | null | qcloudsdkmonitor/ModifyAlarmRuleRequest.py | f3n9/qcloudcli | b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from qcloudsdkcore.request import Request
class ModifyAlarmRuleRequest(Request):
def __init__(self):
super(ModifyAlarmRuleRequest, self).__init__(
'monitor', 'qcloudcliV1', 'ModifyAlarmRule', 'monitor.api.qcloud.com')
def get_alarmRuleId(self):
return self... | 28.775 | 82 | 0.685491 | 125 | 1,151 | 6.088 | 0.24 | 0.039422 | 0.091984 | 0.111695 | 0.170828 | 0.170828 | 0 | 0 | 0 | 0 | 0 | 0.002151 | 0.192007 | 1,151 | 39 | 83 | 29.512821 | 0.816129 | 0.018245 | 0 | 0 | 0 | 0 | 0.140957 | 0.019504 | 0 | 0 | 0 | 0 | 0 | 1 | 0.44 | false | 0 | 0.04 | 0.2 | 0.72 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 3 |
a5b500d073fbbbe9cd375cf4ded9dc7d31094519 | 59 | py | Python | testing.py | EliasEriksson/CountryRoad | bfb0f5767e6c643591918f30090caf4dfe9ae860 | [
"MIT"
] | null | null | null | testing.py | EliasEriksson/CountryRoad | bfb0f5767e6c643591918f30090caf4dfe9ae860 | [
"MIT"
] | null | null | null | testing.py | EliasEriksson/CountryRoad | bfb0f5767e6c643591918f30090caf4dfe9ae860 | [
"MIT"
] | null | null | null | kwargs = {"a": 1, "b": 2, "c": 3}
print(kwargs.pop("d"))
| 11.8 | 33 | 0.457627 | 11 | 59 | 2.454545 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0.186441 | 59 | 4 | 34 | 14.75 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 | 1 | 0 | 3 |
3c0d33e14972e4353702fc89b41331682d2f5812 | 1,428 | py | Python | spacepackets/util.py | robamu-org/py-spacepackets | 522b021ba5690f97a4b74ae8b110762a32eb9b19 | [
"Apache-2.0"
] | null | null | null | spacepackets/util.py | robamu-org/py-spacepackets | 522b021ba5690f97a4b74ae8b110762a32eb9b19 | [
"Apache-2.0"
] | 3 | 2021-10-05T09:29:45.000Z | 2022-02-12T15:46:43.000Z | spacepackets/util.py | robamu-org/py-spacepackets | 522b021ba5690f97a4b74ae8b110762a32eb9b19 | [
"Apache-2.0"
] | 1 | 2022-03-04T17:25:29.000Z | 2022-03-04T17:25:29.000Z | import enum
class PrintFormats(enum.IntEnum):
HEX = 0
DEC = 1
BIN = 2
def get_printable_data_string(
print_format: PrintFormats, data: bytes, length: int = -1
) -> str:
"""Returns the TM data in a clean printable hex string format
:return: The string
"""
if length == -1:
leng... | 33.209302 | 70 | 0.573529 | 200 | 1,428 | 3.82 | 0.205 | 0.210733 | 0.215969 | 0.146597 | 0.349476 | 0.348168 | 0.348168 | 0.222513 | 0.08377 | 0 | 0 | 0.021063 | 0.301821 | 1,428 | 42 | 71 | 34 | 0.745236 | 0.054622 | 0 | 0.228571 | 0 | 0 | 0.158052 | 0.09588 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0.028571 | 0 | 0.371429 | 0.714286 | 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 | 1 | 0 | 3 |
3c0dea2c582bc2cd60514487b382dcee321bdf4d | 843 | py | Python | girder_rnascope/tilesource/pil.py | abcsFrederick/RNAScope | 9cb049f9c64f52e49afddfb32a286c90223bad78 | [
"Apache-2.0"
] | null | null | null | girder_rnascope/tilesource/pil.py | abcsFrederick/RNAScope | 9cb049f9c64f52e49afddfb32a286c90223bad78 | [
"Apache-2.0"
] | 8 | 2019-09-25T14:07:14.000Z | 2019-10-01T16:45:08.000Z | girder_rnascope/tilesource/pil.py | cj-abcs/RNAScope | 9cb049f9c64f52e49afddfb32a286c90223bad78 | [
"Apache-2.0"
] | null | null | null | import os.path
import six
from large_image.cache_util import LruCacheMetaclass
import large_image_source_pil as pil
from large_image_source_pil import girder_source
from large_image.exceptions import TileSourceException
@six.add_metaclass(LruCacheMetaclass)
class PILFileTileSource(pil.PILFileTileSource):
cacheNa... | 32.423077 | 80 | 0.746145 | 92 | 843 | 6.608696 | 0.532609 | 0.065789 | 0.069079 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001414 | 0.161329 | 843 | 25 | 81 | 33.72 | 0.858557 | 0.026097 | 0 | 0.222222 | 0 | 0 | 0.087912 | 0 | 0 | 0 | 0 | 0.04 | 0 | 1 | 0.055556 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
3c2058e0f2adebbf1e156bad76ebca4dd6c47154 | 168 | py | Python | gits-find.py | furas/python-git | 9ce447b05a59c31459e0005526ffc21ba5fafaca | [
"MIT"
] | null | null | null | gits-find.py | furas/python-git | 9ce447b05a59c31459e0005526ffc21ba5fafaca | [
"MIT"
] | null | null | null | gits-find.py | furas/python-git | 9ce447b05a59c31459e0005526ffc21ba5fafaca | [
"MIT"
] | null | null | null | import os
#path = os.path.expanduser('~')
path = os.path.expandvars('$HOME')
for root, folders, files in os.walk(path):
if '.git' in folders:
print(root)
| 18.666667 | 42 | 0.630952 | 25 | 168 | 4.24 | 0.6 | 0.169811 | 0.188679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196429 | 168 | 8 | 43 | 21 | 0.785185 | 0.178571 | 0 | 0 | 0 | 0 | 0.065693 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 1 | 0 | 0 | null | 0 | 1 | 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 | 3 |
3c57fedbf6b50d234e15b78713831e6d287ddfcd | 179 | py | Python | data/openpose.py | manu-18l/mueleak | 78c7cc9cfc2e11e61c552e4f38a525eb56d2c59c | [
"zlib-acknowledgement",
"CNRI-Python",
"Xnet",
"X11"
] | 66 | 2021-06-22T14:23:25.000Z | 2022-03-06T12:13:46.000Z | data/openpose.py | manu-18l/mueleak | 78c7cc9cfc2e11e61c552e4f38a525eb56d2c59c | [
"zlib-acknowledgement",
"CNRI-Python",
"Xnet",
"X11"
] | 5 | 2021-07-01T14:52:47.000Z | 2021-11-25T22:32:40.000Z | data/openpose.py | manu-18l/mueleak | 78c7cc9cfc2e11e61c552e4f38a525eb56d2c59c | [
"zlib-acknowledgement",
"CNRI-Python",
"Xnet",
"X11"
] | 6 | 2021-06-24T04:02:41.000Z | 2021-08-15T00:26:54.000Z | # output shape openpose keypoints for body, hands, and face
body_keypoints_num = 25
left_hand_keyp_num = 21
right_hand_keyp_num = 21
face_keyp_num = 51
face_contour_keyp_num = 17
| 25.571429 | 59 | 0.815642 | 32 | 179 | 4.15625 | 0.59375 | 0.210526 | 0.165414 | 0.195489 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064935 | 0.139665 | 179 | 6 | 60 | 29.833333 | 0.798701 | 0.318436 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 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 | 3 |
3c8804b88fcabce6d022239a9c8a7a89ba38d1b5 | 429 | py | Python | app/__init__.py | B02902008/TaipeiWater | 7364ce0bdfafddb7448cd8943c0c048f1a199dda | [
"MIT"
] | null | null | null | app/__init__.py | B02902008/TaipeiWater | 7364ce0bdfafddb7448cd8943c0c048f1a199dda | [
"MIT"
] | null | null | null | app/__init__.py | B02902008/TaipeiWater | 7364ce0bdfafddb7448cd8943c0c048f1a199dda | [
"MIT"
] | null | null | null | from flask import Flask
from flask import render_template
from app.module_load import blue_load
from app.module_user import blue_user
from app.module_util import blue_util
app = Flask(__name__)
app.register_blueprint(blue_load, url_prefix='/load')
app.register_blueprint(blue_user, url_prefix='/user')
app.register_blue... | 26.8125 | 53 | 0.799534 | 66 | 429 | 4.878788 | 0.318182 | 0.065217 | 0.121118 | 0.223602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095571 | 429 | 15 | 54 | 28.6 | 0.829897 | 0 | 0 | 0 | 0 | 0 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.416667 | 0.083333 | 0.583333 | 0.25 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
3c8ebb53a31eb998baa0945fbce7c0feb50280a2 | 1,985 | py | Python | app/models.py | marknesh/Blogging-website | e8baca97136dae0adc4c7bf895bf076152430bbc | [
"MIT"
] | null | null | null | app/models.py | marknesh/Blogging-website | e8baca97136dae0adc4c7bf895bf076152430bbc | [
"MIT"
] | 7 | 2020-02-20T13:58:44.000Z | 2021-02-08T20:40:59.000Z | app/models.py | marknesh/Blogging-website | e8baca97136dae0adc4c7bf895bf076152430bbc | [
"MIT"
] | null | null | null | from . import db
from werkzeug.security import generate_password_hash,check_password_hash
from flask_login import UserMixin
from . import login_manager
from datetime import datetime
class User(UserMixin,db.Model):
__tablename__ = 'person'
id = db.Column(db.Integer,primary_key = True)
email = db.Column(db... | 22.303371 | 72 | 0.689169 | 266 | 1,985 | 4.962406 | 0.296992 | 0.078788 | 0.098485 | 0.084848 | 0.304545 | 0.218182 | 0.218182 | 0.218182 | 0.115152 | 0.115152 | 0 | 0.013084 | 0.191436 | 1,985 | 88 | 73 | 22.556818 | 0.809346 | 0 | 0 | 0.188679 | 1 | 0 | 0.046146 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.150943 | false | 0.169811 | 0.09434 | 0.037736 | 0.735849 | 0 | 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 | 1 | 0 | 0 | 3 |
59384cff10fca9bffc86865641eeb507c473f32c | 719 | py | Python | tests/mocks.py | anthonycorletti/coinbasepro-scheduler | cc210bc165e3c1872facb84b43abcbe92be4149e | [
"MIT"
] | 1 | 2022-01-04T07:43:05.000Z | 2022-01-04T07:43:05.000Z | tests/mocks.py | anthonycorletti/coinbasepro-scheduler | cc210bc165e3c1872facb84b43abcbe92be4149e | [
"MIT"
] | null | null | null | tests/mocks.py | anthonycorletti/coinbasepro-scheduler | cc210bc165e3c1872facb84b43abcbe92be4149e | [
"MIT"
] | null | null | null | import uuid
from typing import Dict, List
class MockCoinbaseClient:
def get_accounts(self) -> List[Dict]:
return [{"balance": 100, "currency": "USD"}]
def get_payment_methods(self) -> List[Dict]:
return [
{
"id": "900229be-9eb0-4e54-96b2-6a7ccf2a7c51",
... | 27.653846 | 84 | 0.568846 | 83 | 719 | 4.783133 | 0.53012 | 0.100756 | 0.060453 | 0.09068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049407 | 0.296245 | 719 | 25 | 85 | 28.76 | 0.735178 | 0 | 0 | 0 | 0 | 0 | 0.126565 | 0.05007 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0.105263 | 0.263158 | 0.684211 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 3 |
594d5e92e130d324d2c217307807fc1f91da9376 | 193 | py | Python | Tools/python37/Lib/site-packages/keystone/systemz_const.py | xxroot/android_universal | af2d8627182f936383d792c1f775d87da50f2f6d | [
"MIT"
] | 207 | 2018-10-01T08:53:01.000Z | 2022-03-14T12:15:54.000Z | Tools/python37/Lib/site-packages/keystone/systemz_const.py | xxroot/android_universal | af2d8627182f936383d792c1f775d87da50f2f6d | [
"MIT"
] | 8 | 2019-06-29T14:18:51.000Z | 2022-02-19T07:30:27.000Z | Tools/python37/Lib/site-packages/keystone/systemz_const.py | xxroot/android_universal | af2d8627182f936383d792c1f775d87da50f2f6d | [
"MIT"
] | 53 | 2019-03-12T16:50:21.000Z | 2022-03-15T23:16:18.000Z | # For Keystone Engine. AUTO-GENERATED FILE, DO NOT EDIT [systemz_const.py]
KS_ERR_ASM_SYSTEMZ_INVALIDOPERAND = 512
KS_ERR_ASM_SYSTEMZ_MISSINGFEATURE = 513
KS_ERR_ASM_SYSTEMZ_MNEMONICFAIL = 514
| 38.6 | 74 | 0.849741 | 30 | 193 | 5.033333 | 0.7 | 0.099338 | 0.15894 | 0.298013 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051724 | 0.098446 | 193 | 4 | 75 | 48.25 | 0.816092 | 0.373057 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3cd1a40d0f37ae8f33e4cb9226b65daca2544a42 | 97 | py | Python | helper_functions.py | NickAlger/TensorTrainHigherDerivatives | 48530d3442953f64eca192fb9187f6b293b0b188 | [
"MIT"
] | 1 | 2020-09-30T22:59:38.000Z | 2020-09-30T22:59:38.000Z | helper_functions.py | NickAlger/TensorTrainHigherDerivatives | 48530d3442953f64eca192fb9187f6b293b0b188 | [
"MIT"
] | null | null | null | helper_functions.py | NickAlger/TensorTrainHigherDerivatives | 48530d3442953f64eca192fb9187f6b293b0b188 | [
"MIT"
] | null | null | null | import numpy as np
def unit_vector(k, N):
ek = np.zeros(N)
ek[k] = 1.0
return ek
| 9.7 | 22 | 0.556701 | 19 | 97 | 2.789474 | 0.736842 | 0.113208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 0.319588 | 97 | 9 | 23 | 10.777778 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 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 | 1 | 0 | 0 | 3 |
3cd1af276aafb82ab107346cef45a637f9d7b4fe | 6,354 | py | Python | unsorted/a2-debug/code-inject/a2-code-inject/src/main.py | turbobert/bits | 8e8fe7227a1dcb0ebb71a96330641dc290343929 | [
"MIT"
] | null | null | null | unsorted/a2-debug/code-inject/a2-code-inject/src/main.py | turbobert/bits | 8e8fe7227a1dcb0ebb71a96330641dc290343929 | [
"MIT"
] | null | null | null | unsorted/a2-debug/code-inject/a2-code-inject/src/main.py | turbobert/bits | 8e8fe7227a1dcb0ebb71a96330641dc290343929 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import subprocess
import sys
import re
# get lines from the definition file, strip empty line and comments
filename = sys.argv[1]
with open(filename, "r") as f:
lines = [ re.sub(r' +', ' ', x.strip()).strip().split(" ") for x in f.read().split("\n") if len(x.strip()) > 0 and x.strip()[0] ... | 39.465839 | 163 | 0.644476 | 879 | 6,354 | 4.511945 | 0.137656 | 0.011599 | 0.11649 | 0.144226 | 0.785174 | 0.750378 | 0.724407 | 0.682552 | 0.664397 | 0.641704 | 0 | 0.007301 | 0.202392 | 6,354 | 161 | 164 | 39.465839 | 0.775257 | 0.05288 | 0 | 0.439252 | 0 | 0.009346 | 0.17604 | 0.020965 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.028037 | 0 | 0.028037 | 0.093458 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
3cd7d73816f57e68979e71da9f663e1d4ccecb35 | 202 | py | Python | main/model/stat.py | vanessa-bell/hd-kiosk-v2 | 6e691c564ea3189bd81c9886fc39e5c5cbc19f8e | [
"MIT"
] | null | null | null | main/model/stat.py | vanessa-bell/hd-kiosk-v2 | 6e691c564ea3189bd81c9886fc39e5c5cbc19f8e | [
"MIT"
] | 1 | 2017-05-19T19:51:57.000Z | 2017-05-19T21:01:11.000Z | main/model/stat.py | vanessa-bell/hd-kiosk-v2 | 6e691c564ea3189bd81c9886fc39e5c5cbc19f8e | [
"MIT"
] | 1 | 2017-05-30T22:40:47.000Z | 2017-05-30T22:40:47.000Z | from google.appengine.ext import ndb
import model
class Stat(model.Base):
faq_key = ndb.KeyProperty(kind=model.Faq, required=True)
timestamp = ndb.DateTimeProperty(required=True, auto_now_add=True) | 33.666667 | 68 | 0.79703 | 30 | 202 | 5.266667 | 0.7 | 0.151899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09901 | 202 | 6 | 68 | 33.666667 | 0.868132 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 1 | 0 | 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 | 1 | 0 | 0 | 3 |
3ce40c981a899b20a681ec25e21ff943d14b0dff | 143 | py | Python | neuroptica/settings.py | bendavidsteel/neuroptica | 542b6aef63ab05f369dac129d1d45578cd5a03b3 | [
"MIT"
] | 161 | 2019-03-14T17:51:05.000Z | 2022-03-20T02:37:18.000Z | neuroptica/settings.py | Xoreus/neuroptica | 2ab6771ea3cfe94a62701078a83712d2a33409e3 | [
"MIT"
] | 2 | 2020-02-25T23:10:12.000Z | 2021-11-02T18:40:28.000Z | neuroptica/settings.py | Xoreus/neuroptica | 2ab6771ea3cfe94a62701078a83712d2a33409e3 | [
"MIT"
] | 37 | 2019-03-15T02:12:06.000Z | 2022-02-16T22:55:00.000Z | import numba
import numpy as np
NP_COMPLEX = np.complex128
NUMBA_COMPLEX = numba.complex128
NP_FLOAT = np.float64
NUMBA_FLOAT = numba.float64
| 17.875 | 32 | 0.811189 | 22 | 143 | 5.090909 | 0.409091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080645 | 0.132867 | 143 | 7 | 33 | 20.428571 | 0.822581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
a724148cc94e3c1a566d0233ec54bebd06e3f950 | 883 | py | Python | lifoid/data/backend.py | romaryd/lifoid | f0c96d2c58cc7980ef7a3747251928f6da9015f5 | [
"Apache-2.0"
] | 1 | 2018-06-27T07:04:24.000Z | 2018-06-27T07:04:24.000Z | lifoid/data/backend.py | LifoidLabs/lifoid | f0c96d2c58cc7980ef7a3747251928f6da9015f5 | [
"Apache-2.0"
] | 5 | 2018-05-23T07:06:45.000Z | 2018-10-09T20:08:29.000Z | lifoid/data/backend.py | LifoidLabs/lifoid | f0c96d2c58cc7980ef7a3747251928f6da9015f5 | [
"Apache-2.0"
] | 1 | 2019-03-25T17:34:28.000Z | 2019-03-25T17:34:28.000Z | # -*- coding: utf8 -*-
"""
Storage backend definition
Author: Romary Dupuis <romary@me.com>
Copyright (C) 2017 Romary Dupuis
"""
class Backend(object):
""" Basic backend class """
def __init__(self, prefix, secondary_indexes):
self._prefix = prefix
self._secondary_indexes = secondary_indexes... | 25.228571 | 59 | 0.639864 | 97 | 883 | 5.659794 | 0.443299 | 0.076503 | 0.245902 | 0.076503 | 0.149362 | 0.149362 | 0.149362 | 0 | 0 | 0 | 0 | 0.007496 | 0.244621 | 883 | 35 | 60 | 25.228571 | 0.815592 | 0.18573 | 0 | 0.333333 | 0 | 0 | 0.01 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.444444 | false | 0 | 0 | 0 | 0.555556 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
a735c077af38dac05bf11a9e0c1878bd6a44f896 | 493 | py | Python | configs/self6dpp/ssYCBV/ss_mlBCE_MaskFull_PredDouble_PBR05_woCenter_edgeLower_refinePM10/ss_mlBCE_MaskFull_PredDouble_PBR05_woCenter_edgeLower_refinePM10_13_24Bowl.py | THU-DA-6D-Pose-Group/self6dpp | c267cfa55e440e212136a5e9940598720fa21d16 | [
"Apache-2.0"
] | 33 | 2021-12-15T07:11:47.000Z | 2022-03-29T08:58:32.000Z | configs/self6dpp/ssYCBV/ss_mlBCE_MaskFull_PredDouble_PBR05_woCenter_edgeLower_refinePM10/ss_mlBCE_MaskFull_PredDouble_PBR05_woCenter_edgeLower_refinePM10_13_24Bowl.py | THU-DA-6D-Pose-Group/self6dpp | c267cfa55e440e212136a5e9940598720fa21d16 | [
"Apache-2.0"
] | 3 | 2021-12-15T11:39:54.000Z | 2022-03-29T07:24:23.000Z | configs/self6dpp/ssYCBV/ss_mlBCE_MaskFull_PredDouble_PBR05_woCenter_edgeLower_refinePM10/ss_mlBCE_MaskFull_PredDouble_PBR05_woCenter_edgeLower_refinePM10_13_24Bowl.py | THU-DA-6D-Pose-Group/self6dpp | c267cfa55e440e212136a5e9940598720fa21d16 | [
"Apache-2.0"
] | null | null | null | _base_ = "./ss_mlBCE_MaskFull_PredDouble_PBR05_woCenter_edgeLower_refinePM10_01_02MasterChefCan.py"
OUTPUT_DIR = "output/self6dpp/ssYCBV/ss_mlBCE_MaskFull_PredDouble_PBR05_woCenter_edgeLower_refinePM10/13_24Bowl"
DATASETS = dict(
TRAIN=("ycbv_024_bowl_train_real_aligned_Kuw",),
TRAIN2=("ycbv_024_bowl_train_pbr"... | 49.3 | 150 | 0.853955 | 65 | 493 | 5.846154 | 0.692308 | 0.036842 | 0.078947 | 0.131579 | 0.3 | 0.3 | 0.3 | 0.3 | 0 | 0 | 0 | 0.090517 | 0.058824 | 493 | 9 | 151 | 54.777778 | 0.728448 | 0 | 0 | 0 | 0 | 0 | 0.770791 | 0.770791 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
595484f7d5212e376beb76a0eef438849a9c2ee8 | 186 | py | Python | houmer_in_property/config.py | felipesanma/houmer-markers | 5f2e98e7254fb0dc9f436b681e6d45973c9fac66 | [
"MIT"
] | null | null | null | houmer_in_property/config.py | felipesanma/houmer-markers | 5f2e98e7254fb0dc9f436b681e6d45973c9fac66 | [
"MIT"
] | null | null | null | houmer_in_property/config.py | felipesanma/houmer-markers | 5f2e98e7254fb0dc9f436b681e6d45973c9fac66 | [
"MIT"
] | null | null | null | import logging
from dotenv import dotenv_values
def get_env():
return dotenv_values(".env")
logging.basicConfig(level=logging.INFO)
log = logging.getLogger(__name__)
| 15.5 | 40 | 0.725806 | 23 | 186 | 5.565217 | 0.652174 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182796 | 186 | 11 | 41 | 16.909091 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0.022857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0.166667 | 0.666667 | 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 | 1 | 0 | 0 | 0 | 3 |
595c120fe000f1c488d2017726f7ac3e120562e7 | 547 | py | Python | versions_scraper/sources/__init__.py | minedoscrazy/versions-getter | d65c2e992419057109358b995d083e5bac0adf19 | [
"MIT"
] | 4 | 2021-07-04T20:15:05.000Z | 2021-07-11T00:16:46.000Z | versions_scraper/sources/__init__.py | minedoscrazy/versions-scraper | d65c2e992419057109358b995d083e5bac0adf19 | [
"MIT"
] | 1 | 2021-07-04T23:11:29.000Z | 2021-07-05T19:12:11.000Z | versions_scraper/sources/__init__.py | minedoscrazy/versions-scraper | d65c2e992419057109358b995d083e5bac0adf19 | [
"MIT"
] | null | null | null | from abc import ABC
from abc import abstractmethod
from abc import abstractproperty
from bs4 import BeautifulSoup
class Source(ABC):
@abstractproperty
def URL(self) -> str:
'''
URL de onde os dados serão extraídos.
'''
...
@abstractproperty
def DATA(self) -> dict:
... | 18.233333 | 54 | 0.559415 | 55 | 547 | 5.545455 | 0.509091 | 0.068852 | 0.127869 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002786 | 0.343693 | 547 | 29 | 55 | 18.862069 | 0.846797 | 0.186472 | 0 | 0.357143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0 | 1 | 0.214286 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
597666c912cf15c877def29c166d551a022ff43a | 250 | py | Python | Scripts/003_hackerrank/Python/p076.py | OrangePeelFX/Python-Tutorial | 0d47f194553666304765f5bbc928374b7aec8a48 | [
"MIT"
] | null | null | null | Scripts/003_hackerrank/Python/p076.py | OrangePeelFX/Python-Tutorial | 0d47f194553666304765f5bbc928374b7aec8a48 | [
"MIT"
] | 1 | 2021-06-02T00:28:17.000Z | 2021-06-02T00:28:17.000Z | Scripts/003_hackerrank/Python/p076.py | florianwns/python-scripts | 0d47f194553666304765f5bbc928374b7aec8a48 | [
"MIT"
] | 1 | 2020-01-13T11:08:18.000Z | 2020-01-13T11:08:18.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Problem 076
Integers Come In All Sizes
Source : https://www.hackerrank.com/challenges/python-integers-come-in-all-sizes/problem
"""
a, b, c, d = (int(input()) for _ in range(4))
print(a**b + c**d)
| 20.833333 | 88 | 0.652 | 42 | 250 | 3.857143 | 0.738095 | 0.148148 | 0.17284 | 0.209877 | 0.271605 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.136 | 250 | 11 | 89 | 22.727273 | 0.722222 | 0.692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
5985c6d2ecec046c07523c3ed3f3fea497fb7b0c | 1,455 | py | Python | backend/contrib/newsletter_subscribe/views/newsletter_subscribe_resource.py | szkkteam/agrosys | a390332202f7200632d2ff3816e1b0f3cc76f586 | [
"MIT"
] | null | null | null | backend/contrib/newsletter_subscribe/views/newsletter_subscribe_resource.py | szkkteam/agrosys | a390332202f7200632d2ff3816e1b0f3cc76f586 | [
"MIT"
] | 2 | 2021-03-31T19:36:44.000Z | 2021-12-13T20:30:11.000Z | backend/contrib/newsletter_subscribe/views/newsletter_subscribe_resource.py | szkkteam/flask-starter | 7019036e7ee017ca5df9059d0b4a0d29005beab5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Common Python library imports
# Pip package imports
from flask import after_this_request, current_app
# Internal package imports
from backend.api import ModelResource, CREATE, PATCH
from backend.extensions.api import api
from backend.utils.mail import send_mail
from .b... | 39.324324 | 168 | 0.747079 | 178 | 1,455 | 5.994382 | 0.55618 | 0.124649 | 0.067479 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000839 | 0.180756 | 1,455 | 36 | 169 | 40.416667 | 0.894295 | 0.301031 | 0 | 0 | 0 | 0 | 0.113974 | 0.049554 | 0 | 0 | 0 | 0.027778 | 0 | 1 | 0.052632 | false | 0 | 0.368421 | 0 | 0.631579 | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 3 |
598f98cab89693af3ea70152d8189a5861bc66b3 | 486 | py | Python | adv_patch_bench/dataloaders/image_only_dataset.py | chawins/adv-patch-bench | 224c4a39f9322cd27312deffbf5e8c882bce3dd2 | [
"MIT"
] | 1 | 2021-09-05T05:23:29.000Z | 2021-09-05T05:23:29.000Z | adv_patch_bench/dataloaders/image_only_dataset.py | chawins/adv-patch-bench | 224c4a39f9322cd27312deffbf5e8c882bce3dd2 | [
"MIT"
] | null | null | null | adv_patch_bench/dataloaders/image_only_dataset.py | chawins/adv-patch-bench | 224c4a39f9322cd27312deffbf5e8c882bce3dd2 | [
"MIT"
] | null | null | null | from PIL import Image
from torch.utils.data import Dataset
class ImageOnlyFolder(Dataset):
def __init__(self, image_paths, transform=None):
self.image_paths = image_paths
self.transform = transform
def __getitem__(self, index):
image_path = self.image_paths[index]
x = Image.op... | 25.578947 | 52 | 0.658436 | 63 | 486 | 4.777778 | 0.412698 | 0.166113 | 0.186047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.261317 | 486 | 18 | 53 | 27 | 0.83844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 0.071429 | 0.571429 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
59cd2b289475bf79ab775c2fe48b78990f02ff5e | 507 | py | Python | api/comment/serializers.py | Pavel-qy/lx_classroom | dfa26c76bd934734cb3c0dc43a1fd42d56be4ad5 | [
"MIT"
] | null | null | null | api/comment/serializers.py | Pavel-qy/lx_classroom | dfa26c76bd934734cb3c0dc43a1fd42d56be4ad5 | [
"MIT"
] | null | null | null | api/comment/serializers.py | Pavel-qy/lx_classroom | dfa26c76bd934734cb3c0dc43a1fd42d56be4ad5 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from .models import Comment
class CommentSerializer(serializers.ModelSerializer):
owner = serializers.ReadOnlyField(source='owner.username')
course = serializers.ReadOnlyField(source='course.id')
lecture = serializers.ReadOnlyField(source='lecture.id')
hometask =... | 36.214286 | 96 | 0.721893 | 50 | 507 | 7.3 | 0.48 | 0.263014 | 0.328767 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149901 | 507 | 13 | 97 | 39 | 0.846868 | 0 | 0 | 0 | 0 | 0 | 0.179487 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.8 | 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 | 1 | 0 | 0 | 3 |
59d24bfdd35faf151eafc385a13580b3e65e2f67 | 3,053 | py | Python | devices/migrations/0014_auto_20140930_1330.py | lindseypack/NIM | 944de5b3f276242cd1b8d421b2f1d2fe3e86f1f6 | [
"MIT"
] | null | null | null | devices/migrations/0014_auto_20140930_1330.py | lindseypack/NIM | 944de5b3f276242cd1b8d421b2f1d2fe3e86f1f6 | [
"MIT"
] | null | null | null | devices/migrations/0014_auto_20140930_1330.py | lindseypack/NIM | 944de5b3f276242cd1b8d421b2f1d2fe3e86f1f6 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('devices', '0013_auto_20140925_1616'),
]
operations = [
migrations.AlterField(
model_name='switch',
n... | 35.917647 | 109 | 0.571896 | 313 | 3,053 | 5.434505 | 0.210863 | 0.164609 | 0.205761 | 0.238683 | 0.729571 | 0.71311 | 0.690182 | 0.624927 | 0.258083 | 0.149912 | 0 | 0.020418 | 0.294137 | 3,053 | 84 | 110 | 36.345238 | 0.76891 | 0.006878 | 0 | 0.538462 | 0 | 0 | 0.109571 | 0.007591 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.025641 | 0 | 0.064103 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 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 | 0 | 0 | 0 | 3 |
aba28e1fccd3d745ebc34e7474f1fa655128d471 | 2,397 | py | Python | pyExpenses/RecManip.py | JasonLai256/pyExpenses | a2fefa3b98f5978851f9c3868f62c57460b4309e | [
"BSD-3-Clause"
] | 1 | 2015-01-29T23:41:09.000Z | 2015-01-29T23:41:09.000Z | pyExpenses/RecManip.py | JasonLai256/pyExpenses | a2fefa3b98f5978851f9c3868f62c57460b4309e | [
"BSD-3-Clause"
] | null | null | null | pyExpenses/RecManip.py | JasonLai256/pyExpenses | a2fefa3b98f5978851f9c3868f62c57460b4309e | [
"BSD-3-Clause"
] | null | null | null | #! /usr/bin/env python
# -*- coding:utf-8 -*-
"""
pyExpenses.RecManip
~~~~~~~~~~~~~~~~~~~
Implements the interface's object that manipulator of records for pyExpenses.
:copyright: (c) 2012 by Jason Lai.
:license: BSD, see LICENSE for more details.
"""
from datetime import date, timedelta
from Co... | 28.879518 | 81 | 0.644556 | 294 | 2,397 | 5.187075 | 0.397959 | 0.078689 | 0.047213 | 0.031475 | 0.180328 | 0.141639 | 0.10623 | 0.10623 | 0.051148 | 0 | 0 | 0.00385 | 0.241552 | 2,397 | 82 | 82 | 29.231707 | 0.834984 | 0.303713 | 0 | 0 | 0 | 0 | 0.009156 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.416667 | false | 0.138889 | 0.166667 | 0.083333 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
abbfaee77fde1088ea7ca417cddf8082602a3111 | 390 | py | Python | src/c/ast.py | mihaimaruseac/ixcode | b4fdca68b1c4a5fff2ff7c26a6ee562df6ba5c28 | [
"MIT"
] | null | null | null | src/c/ast.py | mihaimaruseac/ixcode | b4fdca68b1c4a5fff2ff7c26a6ee562df6ba5c28 | [
"MIT"
] | 5 | 2015-09-09T22:18:47.000Z | 2015-09-09T22:19:35.000Z | src/c/ast.py | mihaimaruseac/ixcode | b4fdca68b1c4a5fff2ff7c26a6ee562df6ba5c28 | [
"MIT"
] | null | null | null | # IxCode - app for code spelunking :: block diagram
# AST from C code.
# Do this unsafe import to inject this code
from src.ast import *
class Include(Node):
"""
An include declaration, holds the included filename (assumed to be
correct).
"""
def __init__(self, fname):
self._fname = fname
... | 21.666667 | 70 | 0.64359 | 52 | 390 | 4.634615 | 0.692308 | 0.112033 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25641 | 390 | 17 | 71 | 22.941176 | 0.831034 | 0.476923 | 0 | 0 | 0 | 0 | 0.071823 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
abcb2e63359535602c1b4d8aab9498e4dd0e3a3a | 721 | py | Python | AC-OhmsLaw/polar.py | epccs/AC_Circuit_Analysis | da68a69ea7ca8bf841067e88ede66e4c5aadd0b2 | [
"MIT"
] | null | null | null | AC-OhmsLaw/polar.py | epccs/AC_Circuit_Analysis | da68a69ea7ca8bf841067e88ede66e4c5aadd0b2 | [
"MIT"
] | null | null | null | AC-OhmsLaw/polar.py | epccs/AC_Circuit_Analysis | da68a69ea7ca8bf841067e88ede66e4c5aadd0b2 | [
"MIT"
] | null | null | null | # This is a partial program to run interactively from the command line, e.g.
# linux: python3 -i polar.py
# win: python -i polar.py
import numpy
# Euler's Formula for Polar (magnitude, degrees) to Rectangular (x, yj) on complex plane.
def Pd2R(A, deg):
return A*( numpy.cos(numpy.deg2rad(deg)) + 1.0j*numpy.sin(num... | 37.947368 | 123 | 0.665742 | 110 | 721 | 4.363636 | 0.509091 | 0.025 | 0.075 | 0.116667 | 0.354167 | 0.354167 | 0.354167 | 0.225 | 0.225 | 0.225 | 0 | 0.036125 | 0.15534 | 721 | 19 | 124 | 37.947368 | 0.752053 | 0.368932 | 0 | 0.222222 | 0 | 0 | 0.080178 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.111111 | 0.111111 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
abd3cdbc03aad6d375755406461e6334fbbe7d8d | 979 | py | Python | fboss/system_tests/testutils/ip_conversion.py | fakeNetflix/facebook-repo-fboss | b4b64540c779022bcbeff72376549d0addf3f7e7 | [
"BSD-3-Clause"
] | 7 | 2016-09-22T22:53:09.000Z | 2016-10-05T13:19:16.000Z | fboss/system_tests/testutils/ip_conversion.py | fakeNetflix/facebook-repo-fboss | b4b64540c779022bcbeff72376549d0addf3f7e7 | [
"BSD-3-Clause"
] | 2 | 2018-10-06T18:29:44.000Z | 2018-10-07T16:46:04.000Z | fboss/system_tests/testutils/ip_conversion.py | fakeNetflix/facebook-repo-fboss | b4b64540c779022bcbeff72376549d0addf3f7e7 | [
"BSD-3-Clause"
] | 1 | 2018-02-28T06:57:20.000Z | 2018-02-28T06:57:20.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import socket
from facebook.network.Address.ttypes import BinaryAddress
def ip_addr_to_str(addr):
'''
:param addr: ip_types.BinaryAddress representing an ip ad... | 23.878049 | 71 | 0.722165 | 131 | 979 | 5.10687 | 0.381679 | 0.059791 | 0.095665 | 0.053812 | 0.179372 | 0.179372 | 0 | 0 | 0 | 0 | 0 | 0.006427 | 0.205312 | 979 | 40 | 72 | 24.475 | 0.85347 | 0.275792 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0.058824 | 0.352941 | 0 | 0.647059 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 3 |
abe5c0007aaec761aa4c061c6ddb989f441b0403 | 316 | py | Python | res/PyTorchExamples/examples/le/__init__.py | juitem/ONE | 8c6a4b7738074573b6ac5c82dcf1f6697520d1ed | [
"Apache-2.0"
] | 255 | 2020-05-22T07:45:29.000Z | 2022-03-29T23:58:22.000Z | res/PyTorchExamples/examples/le/__init__.py | juitem/ONE | 8c6a4b7738074573b6ac5c82dcf1f6697520d1ed | [
"Apache-2.0"
] | 5,102 | 2020-05-22T07:48:33.000Z | 2022-03-31T23:43:39.000Z | res/PyTorchExamples/examples/le/__init__.py | juitem/ONE | 8c6a4b7738074573b6ac5c82dcf1f6697520d1ed | [
"Apache-2.0"
] | 120 | 2020-05-22T07:51:08.000Z | 2022-02-16T19:08:05.000Z | import torch
import torch.nn as nn
# model
class net_le(nn.Module):
def __init__(self):
super().__init__()
def forward(self, inputs):
return torch.le(inputs[0], inputs[1])
_model_ = net_le()
# dummy input for onnx generation
_dummy_ = [torch.randn(1, 2, 3, 3), torch.randn(1, 2, 3, 3)]
| 17.555556 | 60 | 0.639241 | 50 | 316 | 3.76 | 0.52 | 0.117021 | 0.117021 | 0.12766 | 0.148936 | 0.148936 | 0 | 0 | 0 | 0 | 0 | 0.040323 | 0.21519 | 316 | 17 | 61 | 18.588235 | 0.717742 | 0.117089 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.111111 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
f9f2a98c8de0fbc2e9e602d677931d3eabd8a3d7 | 3,085 | py | Python | test/test_encoder.py | alexanderwhatley/pepnet | 82a3087262917d4780ed8facbd49b766f2ff9200 | [
"Apache-2.0"
] | 17 | 2018-02-02T16:24:23.000Z | 2021-08-08T08:04:03.000Z | test/test_encoder.py | alexanderwhatley/pepnet | 82a3087262917d4780ed8facbd49b766f2ff9200 | [
"Apache-2.0"
] | 1 | 2018-05-03T09:46:19.000Z | 2018-05-03T09:46:19.000Z | test/test_encoder.py | alexanderwhatley/pepnet | 82a3087262917d4780ed8facbd49b766f2ff9200 | [
"Apache-2.0"
] | 4 | 2018-04-22T14:47:47.000Z | 2021-01-07T08:41:15.000Z | from pepnet.encoder import Encoder
from nose.tools import eq_
import numpy as np
def test_encoder_index_lists():
encoder = Encoder()
S_idx = encoder.index_dict["S"]
A_idx = encoder.index_dict["A"]
index_lists = encoder.encode_index_lists(["SSS", "AAA", "SAS"])
eq_(index_lists, [
[S_idx, S_i... | 32.135417 | 80 | 0.669044 | 426 | 3,085 | 4.518779 | 0.171362 | 0.047273 | 0.094545 | 0.116364 | 0.758961 | 0.734545 | 0.710649 | 0.695065 | 0.695065 | 0.628571 | 0 | 0.01517 | 0.188006 | 3,085 | 95 | 81 | 32.473684 | 0.753293 | 0.042464 | 0 | 0.5 | 0 | 0 | 0.042712 | 0 | 0 | 0 | 0 | 0 | 0.039474 | 1 | 0.171053 | false | 0 | 0.039474 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
e6009e40ccedd7bf4540a03da55cefe34e59a556 | 240 | py | Python | HospitalManagement/Landing/views.py | yonathanF/Hospital_Management | b41d0a7ede7c0ebeaeff532f3134609ed730eecb | [
"MIT"
] | null | null | null | HospitalManagement/Landing/views.py | yonathanF/Hospital_Management | b41d0a7ede7c0ebeaeff532f3134609ed730eecb | [
"MIT"
] | null | null | null | HospitalManagement/Landing/views.py | yonathanF/Hospital_Management | b41d0a7ede7c0ebeaeff532f3134609ed730eecb | [
"MIT"
] | 2 | 2019-05-12T03:31:30.000Z | 2020-11-02T07:55:14.000Z | from django.http import HttpResponse
from django.shortcuts import render
def index(request):
''' renders the landing html page ... everything is in the html for this '''
return HttpResponse(render(request, 'Landing/index.html'))
| 26.666667 | 80 | 0.741667 | 32 | 240 | 5.5625 | 0.65625 | 0.11236 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1625 | 240 | 8 | 81 | 30 | 0.885572 | 0.283333 | 0 | 0 | 0 | 0 | 0.109756 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0 | 1 | 0 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
e6035244181c7fefef082800bc2c9bb93a5c8ca9 | 12,594 | py | Python | make_dinos.py | stegosaurus12/NFT-Rexx | aba444cc03a7b7063eb82575ec7ca531aa964fdf | [
"BSD-3-Clause"
] | null | null | null | make_dinos.py | stegosaurus12/NFT-Rexx | aba444cc03a7b7063eb82575ec7ca531aa964fdf | [
"BSD-3-Clause"
] | null | null | null | make_dinos.py | stegosaurus12/NFT-Rexx | aba444cc03a7b7063eb82575ec7ca531aa964fdf | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python3
from PIL import Image
import numpy as np
import os
import random
# get path
dirname = os.path.dirname(os.path.abspath(__file__))
# set final dimensions
dimensions = 480, 480
# preset background color options
backgrounds = [(128, 197, 204), (242, 212, 73), (161, 182, 248),
(134, 226, 2... | 50.782258 | 290 | 0.495712 | 2,660 | 12,594 | 2.330075 | 0.118797 | 0.44466 | 0.652469 | 0.851242 | 0.34737 | 0.321071 | 0.321071 | 0.3101 | 0.300904 | 0.300904 | 0 | 0.044899 | 0.266079 | 12,594 | 247 | 291 | 50.987854 | 0.625663 | 0.111323 | 0 | 0.189349 | 0 | 0 | 0.087222 | 0.011127 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.023669 | 0.023669 | 0 | 0.023669 | 0.005917 | 0 | 0 | 0 | null | 1 | 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 | 3 |
e6072801caacc27f1d3a4c89056b9fae553b97ae | 88 | py | Python | backend/livetracking/datasource/constants.py | wisnuprama/shipment-live-tracking | 1fabb374becea3489c28890e7b538b15f1229713 | [
"MIT"
] | null | null | null | backend/livetracking/datasource/constants.py | wisnuprama/shipment-live-tracking | 1fabb374becea3489c28890e7b538b15f1229713 | [
"MIT"
] | 8 | 2019-12-09T13:34:39.000Z | 2022-02-26T20:36:45.000Z | backend/livetracking/datasource/constants.py | wisnuprama/shipment-live-tracking | 1fabb374becea3489c28890e7b538b15f1229713 | [
"MIT"
] | 1 | 2019-11-30T07:51:22.000Z | 2019-11-30T07:51:22.000Z | K_STATUS_CREATED = 'Created'
K_STATUS_OTW = 'On The Way'
K_STATUS_FINISHED = 'Finished'
| 22 | 30 | 0.772727 | 14 | 88 | 4.428571 | 0.571429 | 0.33871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 88 | 3 | 31 | 29.333333 | 0.805195 | 0 | 0 | 0 | 0 | 0 | 0.284091 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 3 |
e60e95eda33677c0fd927f2403e9257861c1e9e5 | 503 | py | Python | server/pitches/migrations/0012_auto_20171216_2219.py | bholtbholt/unconf | beb33f93bad7f98d6bca1b0e3c70f0f93cdbc7e5 | [
"MIT"
] | 10 | 2018-04-21T20:09:00.000Z | 2021-08-05T20:03:52.000Z | server/pitches/migrations/0012_auto_20171216_2219.py | bholtbholt/unconf | beb33f93bad7f98d6bca1b0e3c70f0f93cdbc7e5 | [
"MIT"
] | 16 | 2018-04-24T00:41:12.000Z | 2020-06-05T17:30:10.000Z | server/pitches/migrations/0012_auto_20171216_2219.py | bholtbholt/unconf | beb33f93bad7f98d6bca1b0e3c70f0f93cdbc7e5 | [
"MIT"
] | 3 | 2018-06-13T20:38:51.000Z | 2019-08-17T22:56:54.000Z | # Generated by Django 2.0 on 2017-12-17 06:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pitches', '0011_schedule'),
]
operations = [
migrations.AlterField(
model_name='slot',
name='end_time',
fi... | 20.958333 | 45 | 0.548708 | 48 | 503 | 5.645833 | 0.666667 | 0.147601 | 0.184502 | 0.214022 | 0.273063 | 0.273063 | 0 | 0 | 0 | 0 | 0 | 0.053731 | 0.333996 | 503 | 23 | 46 | 21.869565 | 0.755224 | 0.085487 | 0 | 0.470588 | 1 | 0 | 0.100437 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e63de178a889a96744233d4e6af9be43d31c5d79 | 3,587 | py | Python | temboo/core/Library/Kiva/Teams/GetTeamByShortname.py | jordanemedlock/psychtruths | 52e09033ade9608bd5143129f8a1bfac22d634dd | [
"Apache-2.0"
] | 7 | 2016-03-07T02:07:21.000Z | 2022-01-21T02:22:41.000Z | temboo/core/Library/Kiva/Teams/GetTeamByShortname.py | jordanemedlock/psychtruths | 52e09033ade9608bd5143129f8a1bfac22d634dd | [
"Apache-2.0"
] | null | null | null | temboo/core/Library/Kiva/Teams/GetTeamByShortname.py | jordanemedlock/psychtruths | 52e09033ade9608bd5143129f8a1bfac22d634dd | [
"Apache-2.0"
] | 8 | 2016-06-14T06:01:11.000Z | 2020-04-22T09:21:44.000Z | # -*- coding: utf-8 -*-
###############################################################################
#
# GetTeamByShortname
# Returns detailed information about one or more teams, using team shortnames.
#
# Python versions 2.6, 2.7, 3.x
#
# Copyright 2014, Temboo Inc.
#
# Licensed under the Apache License, Version ... | 38.569892 | 139 | 0.693895 | 414 | 3,587 | 5.932367 | 0.39372 | 0.02443 | 0.022801 | 0.042345 | 0.177524 | 0.056596 | 0.030537 | 0 | 0 | 0 | 0 | 0.004806 | 0.187901 | 3,587 | 92 | 140 | 38.98913 | 0.838311 | 0.467243 | 0 | 0 | 0 | 0 | 0.048408 | 0.024204 | 0 | 0 | 0 | 0 | 0 | 1 | 0.344828 | false | 0 | 0.172414 | 0.172414 | 0.862069 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 3 |
e646a2e7e06bd6412557f932ab9eaccbfe4cb323 | 331 | py | Python | src/repositories/plot_data_repository.py | yasuaki-344/streamlit-docker | 5fc8ed174c69da86812b75517c75e94e4fcab9e3 | [
"MIT"
] | null | null | null | src/repositories/plot_data_repository.py | yasuaki-344/streamlit-docker | 5fc8ed174c69da86812b75517c75e94e4fcab9e3 | [
"MIT"
] | null | null | null | src/repositories/plot_data_repository.py | yasuaki-344/streamlit-docker | 5fc8ed174c69da86812b75517c75e94e4fcab9e3 | [
"MIT"
] | null | null | null | """プロットデータアクセスオブジェクトのサンプル."""
import numpy as np
class PlotDataRepository:
"""データアクセスオブジェクトの一例."""
def __init__(self):
"""Initialize a new instance of ExampleRepository."""
pass
def generate_data(self) -> np.array:
"""データ取得の一例."""
x_data = np.random.random(20)
ret... | 20.6875 | 61 | 0.619335 | 34 | 331 | 5.823529 | 0.764706 | 0.050505 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008065 | 0.250755 | 331 | 15 | 62 | 22.066667 | 0.790323 | 0.299094 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.142857 | 0.142857 | 0 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
e661ca840f1a069a68b7b45e04490e2388643c8c | 525 | py | Python | rsgeo-py/rsgeo/pandas_extension.py | YuRiTan/geofunc | 1757f13ec3777cb63a6de151f2aa216b88ad12ee | [
"MIT"
] | 3 | 2020-12-15T15:17:31.000Z | 2021-03-24T14:00:12.000Z | rsgeo-py/rsgeo/pandas_extension.py | YuRiTan/rsgeo | 1757f13ec3777cb63a6de151f2aa216b88ad12ee | [
"MIT"
] | null | null | null | rsgeo-py/rsgeo/pandas_extension.py | YuRiTan/rsgeo | 1757f13ec3777cb63a6de151f2aa216b88ad12ee | [
"MIT"
] | null | null | null | import pandas as pd
from rsgeo.geometry import Polygon
@pd.api.extensions.register_dataframe_accessor("rsgeo")
class GeoAccessor:
def __init__(self, pandas_obj):
self._obj = pandas_obj
self._x = "x_pos"
self._y = "y_pos"
def _get_xy(self):
return self._obj[self._x].values, sel... | 26.25 | 67 | 0.674286 | 72 | 525 | 4.597222 | 0.402778 | 0.084592 | 0.07855 | 0.145015 | 0.187311 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207619 | 525 | 19 | 68 | 27.631579 | 0.795673 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.214286 | 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 | 1 | 0 | 0 | 3 |
0515c3ed8038b98a12e73119b04357d41f7f6d65 | 419 | py | Python | largest_prime_factor.py | sookoor/PythonInterviewPrep | f9862511560894dba39cd06bb82996d1c9d695c6 | [
"MIT"
] | null | null | null | largest_prime_factor.py | sookoor/PythonInterviewPrep | f9862511560894dba39cd06bb82996d1c9d695c6 | [
"MIT"
] | null | null | null | largest_prime_factor.py | sookoor/PythonInterviewPrep | f9862511560894dba39cd06bb82996d1c9d695c6 | [
"MIT"
] | null | null | null | def get_largest_prime_factor(n):
d = 2
factors = []
while n > 1:
while n % d == 0:
factors.append(d)
n /= d;
d += 1
if d * d > n:
if n > 1:
factors.append(n)
break
return max(factors)
if __name__ == "__main__":... | 22.052632 | 48 | 0.501193 | 53 | 419 | 3.641509 | 0.45283 | 0.15544 | 0.233161 | 0.326425 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 0.398568 | 419 | 18 | 49 | 23.277778 | 0.670635 | 0 | 0 | 0 | 0 | 0 | 0.019093 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0 | null | null | 0 | 0 | null | null | 0.0625 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0517e46a19b5fd7f15289e6c2b40732c161bdaa3 | 1,019 | py | Python | tests/providers/test_namesilo.py | chibiegg/lexicon | 6230ea1e567a730243dc77c08ff6c4c16f136157 | [
"MIT"
] | null | null | null | tests/providers/test_namesilo.py | chibiegg/lexicon | 6230ea1e567a730243dc77c08ff6c4c16f136157 | [
"MIT"
] | null | null | null | tests/providers/test_namesilo.py | chibiegg/lexicon | 6230ea1e567a730243dc77c08ff6c4c16f136157 | [
"MIT"
] | null | null | null | # Test for one implementation of the interface
from lexicon.providers.namesilo import Provider
from integration_tests import IntegrationTests
from unittest import TestCase
import pytest
# Hook into testing framework by inheriting unittest.TestCase and reuse
# the tests which *each and every* implementation of the inte... | 37.740741 | 91 | 0.770363 | 121 | 1,019 | 6.297521 | 0.603306 | 0.041995 | 0.049869 | 0.073491 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161923 | 1,019 | 27 | 92 | 37.740741 | 0.892272 | 0.256133 | 0 | 0 | 0 | 0 | 0.135458 | 0 | 0 | 0 | 0 | 0.037037 | 0 | 1 | 0.176471 | false | 0 | 0.235294 | 0.117647 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
051b01ac7002e1a5db3dfc27fe2ee48e7aca7376 | 276 | py | Python | calc-app/mixins/json_mixin.py | t4d-classes/python_10042021 | e2c28448ad66784c429655ab766f902b76d6ac79 | [
"MIT"
] | null | null | null | calc-app/mixins/json_mixin.py | t4d-classes/python_10042021 | e2c28448ad66784c429655ab766f902b76d6ac79 | [
"MIT"
] | null | null | null | calc-app/mixins/json_mixin.py | t4d-classes/python_10042021 | e2c28448ad66784c429655ab766f902b76d6ac79 | [
"MIT"
] | null | null | null | import json
class JsonMixin:
def to_json(self):
# [ HistoryEntry(), HistoryEntry(), HistoryEntry() ]
return json.dumps(self._data_, indent=2, default=lambda o: o.__dict__)
def from_json(self, json_data):
self._data_ = json.loads(json_data)
| 23 | 78 | 0.65942 | 35 | 276 | 4.857143 | 0.542857 | 0.094118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00463 | 0.217391 | 276 | 11 | 79 | 25.090909 | 0.782407 | 0.181159 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
05474d7c7f75ef7b43eeee797c67bb6b538c612d | 949 | py | Python | CODE/DA_tagging/test_supervise_icsi.py | pegahani/REUS | 3de7505fcf971333e294c490371d7b429d8fc9d0 | [
"MIT"
] | null | null | null | CODE/DA_tagging/test_supervise_icsi.py | pegahani/REUS | 3de7505fcf971333e294c490371d7b429d8fc9d0 | [
"MIT"
] | null | null | null | CODE/DA_tagging/test_supervise_icsi.py | pegahani/REUS | 3de7505fcf971333e294c490371d7b429d8fc9d0 | [
"MIT"
] | null | null | null | import os
from supervised_learning import supervised
if __name__ == '__main__':
path = os.getcwd()
generate_file = open(path + '/icsi/svm.txt', 'w')
generate_file.write("******5 labels*****POS*** not blind sampling ***" + '\n')
model = supervised(corpus = 'icsi', text_to_vector_type = 'POS', n_taxo... | 43.136364 | 109 | 0.61117 | 120 | 949 | 4.533333 | 0.383333 | 0.198529 | 0.1875 | 0.069853 | 0.628676 | 0.628676 | 0.628676 | 0.628676 | 0.628676 | 0.628676 | 0 | 0.023428 | 0.145416 | 949 | 21 | 110 | 45.190476 | 0.647349 | 0 | 0 | 0.266667 | 1 | 0 | 0.219178 | 0.09589 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 3 |
054ade3006adfc31841d138a092ca012c6569ae5 | 768 | py | Python | grid/parsed_game.py | bschmeck/gnarl | 0e8501cbab0537987cf645b19311fe3a51608ce5 | [
"MIT"
] | null | null | null | grid/parsed_game.py | bschmeck/gnarl | 0e8501cbab0537987cf645b19311fe3a51608ce5 | [
"MIT"
] | null | null | null | grid/parsed_game.py | bschmeck/gnarl | 0e8501cbab0537987cf645b19311fe3a51608ce5 | [
"MIT"
] | null | null | null | class ParsedGame:
def __init__(self, parsed_data):
if len(parsed_data) == 5:
self.time_left = parsed_data[0]
self.away_team = parsed_data[1]
self.away_score = parsed_data[2]
self.home_team = parsed_data[3]
self.home_score = parsed_data[4]
e... | 34.909091 | 44 | 0.546875 | 97 | 768 | 4.020619 | 0.268041 | 0.25641 | 0.246154 | 0.174359 | 0.635897 | 0.471795 | 0.471795 | 0.471795 | 0.302564 | 0.302564 | 0 | 0.022133 | 0.352865 | 768 | 21 | 45 | 36.571429 | 0.762575 | 0 | 0 | 0.3 | 0 | 0 | 0.050781 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 1 | 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 | 3 |
055ba05742623dec15abf1e0f617403e177331b5 | 1,474 | py | Python | qatrack/api/units/serializers.py | randlet/qatrackplus-ci | ba11d39a07382b11394aaffd0df692b4ddc6239b | [
"MIT"
] | 4 | 2016-08-29T15:31:01.000Z | 2021-05-08T23:16:37.000Z | qatrack/api/units/serializers.py | randlet/qatrackplus-ci | ba11d39a07382b11394aaffd0df692b4ddc6239b | [
"MIT"
] | 5 | 2020-02-12T01:21:59.000Z | 2021-06-10T21:18:24.000Z | qatrack/api/units/serializers.py | randlet/qatrackplus-ci | ba11d39a07382b11394aaffd0df692b4ddc6239b | [
"MIT"
] | null | null | null | from rest_framework import serializers
from qatrack.units import models
class UnitListSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = models.Unit
fields = (
'url',
'name',
'number',
'site',
)
class UnitSerializer(s... | 20.472222 | 78 | 0.68114 | 112 | 1,474 | 8.669643 | 0.303571 | 0.342945 | 0.389289 | 0.426365 | 0.548919 | 0.548919 | 0.138002 | 0.138002 | 0 | 0 | 0 | 0 | 0.248982 | 1,474 | 71 | 79 | 20.760563 | 0.877145 | 0 | 0 | 0.44186 | 0 | 0 | 0.049525 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.046512 | 0 | 0.465116 | 0 | 0 | 0 | 0 | null | 1 | 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 | 3 |
056ba6b7bd34052e03731fc14f12b9aea3f2e971 | 255 | py | Python | config.py | AnshuKumar1467/parental_controls_ott | 2ff54ca6bd7a0aa71a7e96b255814ca9fc383487 | [
"Apache-2.0"
] | null | null | null | config.py | AnshuKumar1467/parental_controls_ott | 2ff54ca6bd7a0aa71a7e96b255814ca9fc383487 | [
"Apache-2.0"
] | null | null | null | config.py | AnshuKumar1467/parental_controls_ott | 2ff54ca6bd7a0aa71a7e96b255814ca9fc383487 | [
"Apache-2.0"
] | null | null | null | unsafe = ['EXPOSED_ANUS','EXPOSED_ARMPITS','COVERED_BELLY','EXPOSED_BELLY','COVERED_BUTTOCKS','EXPOSED_GENITALIA_M',
'EXPOSED_BUTTOCKS','EXPOSED_FEET','COVERED_BREAST_F','EXPOSED_BREAST_F','COVERED_GENITALIA_F','EXPOSED_GENITALIA_F','EXPOSED_BREAST_M']
| 85 | 137 | 0.815686 | 33 | 255 | 5.727273 | 0.363636 | 0.126984 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023529 | 255 | 2 | 138 | 127.5 | 0.759036 | 0 | 0 | 0 | 0 | 0 | 0.792157 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0571cf2a353cabf28d0d672629489d8f84973f53 | 183 | py | Python | todoism/apis/v1/__init__.py | zhaofangfang1991/airsupport- | b2599091dae6105ad7a01444acb9ab53d273675e | [
"MIT"
] | null | null | null | todoism/apis/v1/__init__.py | zhaofangfang1991/airsupport- | b2599091dae6105ad7a01444acb9ab53d273675e | [
"MIT"
] | null | null | null | todoism/apis/v1/__init__.py | zhaofangfang1991/airsupport- | b2599091dae6105ad7a01444acb9ab53d273675e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from flask import Blueprint
from flask_cors import CORS
api_v1 = Blueprint('api_v1', __name__)
CORS(api_v1) # 资源跨域保护
from todoism.apis.v1 import resources
| 16.636364 | 38 | 0.737705 | 28 | 183 | 4.535714 | 0.535714 | 0.11811 | 0.141732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0.153005 | 183 | 10 | 39 | 18.3 | 0.787097 | 0.153005 | 0 | 0 | 0 | 0 | 0.039474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0.4 | 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 | 1 | 0 | 0 | 3 |
0576f11db84ce75fe2a4bcf4c995d0545b69a0df | 1,712 | py | Python | 8 - Classes/ex11.py | oDallas/PythomBR | 7d3b3bcefe05ce483f6aa664bbc4962a1e0fd285 | [
"MIT"
] | 1 | 2019-06-02T18:59:18.000Z | 2019-06-02T18:59:18.000Z | 8 - Classes/ex11.py | oDallas/PythonBR | 7d3b3bcefe05ce483f6aa664bbc4962a1e0fd285 | [
"MIT"
] | null | null | null | 8 - Classes/ex11.py | oDallas/PythonBR | 7d3b3bcefe05ce483f6aa664bbc4962a1e0fd285 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Classe carro: Implemente uma classe chamada Carro com as seguintes propriedades:
# a. Um veículo tem um certo consumo de combustível (medidos em km/litro) e
# uma certa quantidade de combustível no tanque.
# b. O consumo é especificado no construtor e o nível de combustível inicia... | 34.24 | 96 | 0.609229 | 207 | 1,712 | 5.63285 | 0.425121 | 0.102916 | 0.038593 | 0.036021 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008191 | 0.215537 | 1,712 | 49 | 97 | 34.938776 | 0.755771 | 0.36507 | 0 | 0 | 0 | 0 | 0.259981 | 0.122563 | 0 | 0 | 0 | 0.020408 | 0 | 1 | 0.206897 | false | 0 | 0 | 0.103448 | 0.344828 | 0.068966 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
058953938808e4f3cabd8654c1603468682218c0 | 295 | py | Python | puro/errors.py | jvtm/puro | 653bf4ab8c8f65e8ef2050753d45d9b40af5d498 | [
"Apache-2.0"
] | 2 | 2018-03-01T00:31:34.000Z | 2018-03-01T08:04:42.000Z | puro/errors.py | jvtm/puro | 653bf4ab8c8f65e8ef2050753d45d9b40af5d498 | [
"Apache-2.0"
] | 1 | 2018-05-17T06:13:43.000Z | 2018-05-17T06:13:43.000Z | puro/errors.py | jvtm/puro | 653bf4ab8c8f65e8ef2050753d45d9b40af5d498 | [
"Apache-2.0"
] | null | null | null | class FlowException(Exception):
"""Internal exceptions for flow control etc.
Validation, config errors and such should use standard Python exception types"""
pass
class StopProcessing(FlowException):
"""Stop processing of single item without too much error logging"""
pass
| 29.5 | 84 | 0.745763 | 35 | 295 | 6.285714 | 0.885714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186441 | 295 | 9 | 85 | 32.777778 | 0.916667 | 0.613559 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
0593cd8305e8b3370c184e52270048775907be03 | 3,849 | py | Python | sims-g2/recover-dg/g8/plot-recon-p1.py | ammarhakim/ammar-simjournal | 85b64ddc9556f01a4fab37977864a7d878eac637 | [
"MIT",
"Unlicense"
] | 1 | 2019-12-19T16:21:13.000Z | 2019-12-19T16:21:13.000Z | sims-g2/recover-dg/g8/plot-recon-p1.py | ammarhakim/ammar-simjournal | 85b64ddc9556f01a4fab37977864a7d878eac637 | [
"MIT",
"Unlicense"
] | null | null | null | sims-g2/recover-dg/g8/plot-recon-p1.py | ammarhakim/ammar-simjournal | 85b64ddc9556f01a4fab37977864a7d878eac637 | [
"MIT",
"Unlicense"
] | 2 | 2020-01-08T06:23:33.000Z | 2020-01-08T07:06:50.000Z | from pylab import *
import postgkyl as pg
style.use('../code/postgkyl.mplstyle')
def calcSubCellFit_p1(fL, fI, fR):
x = linspace(-1, 1, 20)
dx = 2.0
return (23.57633877428808*fR[1]*x**5)/dx**5+(23.57633877428808*fL[1]*x**5)/dx**5+(81.44553394754065*fI[1]*x**5)/dx**5-(18.56155300614687*fR[0]*x**5)/dx**5+(18... | 85.533333 | 1,837 | 0.644583 | 772 | 3,849 | 3.202073 | 0.178756 | 0.023463 | 0.021036 | 0.026295 | 0.462379 | 0.414644 | 0.078479 | 0.023463 | 0.023463 | 0.023463 | 0 | 0.439747 | 0.05352 | 3,849 | 44 | 1,838 | 87.477273 | 0.238814 | 0.005456 | 0 | 0.205882 | 0 | 0 | 0.023262 | 0.022216 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088235 | false | 0 | 0.058824 | 0 | 0.205882 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
553e70d85701239d2cedc97a0f8a2e53bffe2061 | 53 | py | Python | test/login.py | qinganggang/testqgg | a62c9d13c710d4ae4a4431c105dc92b9d69f4d06 | [
"MIT"
] | null | null | null | test/login.py | qinganggang/testqgg | a62c9d13c710d4ae4a4431c105dc92b9d69f4d06 | [
"MIT"
] | null | null | null | test/login.py | qinganggang/testqgg | a62c9d13c710d4ae4a4431c105dc92b9d69f4d06 | [
"MIT"
] | null | null | null |
asd
num=212
asddedqdd
asdwqq
num=212w12
qdq
sadw
| 4.416667 | 10 | 0.754717 | 9 | 53 | 4.444444 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 0.207547 | 53 | 11 | 11 | 4.818182 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5550f848f5aafc99c57cef688d64005de22b077c | 65 | py | Python | pydocteur/__init__.py | awecx/PyDocTeur | 47188f7263661a40775e3b45cf611d88d7c9297b | [
"MIT"
] | 4 | 2020-11-30T10:14:32.000Z | 2021-02-18T00:44:30.000Z | pydocteur/__init__.py | awecx/PyDocTeur | 47188f7263661a40775e3b45cf611d88d7c9297b | [
"MIT"
] | 46 | 2020-11-27T09:21:02.000Z | 2021-06-08T07:43:33.000Z | pydocteur/__init__.py | awecx/PyDocTeur | 47188f7263661a40775e3b45cf611d88d7c9297b | [
"MIT"
] | 4 | 2020-11-27T06:52:11.000Z | 2022-02-22T20:06:35.000Z | from pydocteur.app import application
__all__ = ["application"]
| 16.25 | 37 | 0.784615 | 7 | 65 | 6.714286 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123077 | 65 | 3 | 38 | 21.666667 | 0.824561 | 0 | 0 | 0 | 0 | 0 | 0.169231 | 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 | 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 | 3 |
556b8586ede3746e15d4fba0953942b610f9d978 | 847 | py | Python | lidi/signup/management/commands/populate_proglang.py | campovski/lidi | 9699e62e70e679970816e29ca7618c9ed0146c7e | [
"Apache-2.0"
] | null | null | null | lidi/signup/management/commands/populate_proglang.py | campovski/lidi | 9699e62e70e679970816e29ca7618c9ed0146c7e | [
"Apache-2.0"
] | 21 | 2017-06-03T14:16:14.000Z | 2018-05-29T07:28:27.000Z | lidi/signup/management/commands/populate_proglang.py | campovski/lidi | 9699e62e70e679970816e29ca7618c9ed0146c7e | [
"Apache-2.0"
] | null | null | null | from django.core.management.base import BaseCommand
from signup.models import ProgrammingLanguage
class Command(BaseCommand):
def _create_tags(self):
language = ProgrammingLanguage(name="C")
language.save()
language = ProgrammingLanguage(name="C++")
language.save()
langua... | 25.666667 | 55 | 0.644628 | 77 | 847 | 7.038961 | 0.376623 | 0.398524 | 0.457565 | 0.50369 | 0.640221 | 0.560886 | 0.380074 | 0.380074 | 0.380074 | 0.321033 | 0 | 0.003115 | 0.242031 | 847 | 32 | 56 | 26.46875 | 0.841122 | 0 | 0 | 0.363636 | 0 | 0 | 0.046045 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.227273 | 0 | 0 | 0 | 0 | null | 1 | 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 | 3 |
55789589182e15ced2c3c5b6db8912b0a401aa9b | 154,456 | py | Python | pysnmp-with-texts/ENTERASYS-POLICY-PROFILE-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/ENTERASYS-POLICY-PROFILE-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/ENTERASYS-POLICY-PROFILE-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module ENTERASYS-POLICY-PROFILE-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ENTERASYS-POLICY-PROFILE-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:04:18 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python vers... | 242.855346 | 11,607 | 0.809629 | 17,597 | 154,456 | 7.105984 | 0.074558 | 0.041793 | 0.065801 | 0.074774 | 0.529782 | 0.452809 | 0.419916 | 0.410871 | 0.389527 | 0.375748 | 0 | 0.037197 | 0.094215 | 154,456 | 635 | 11,608 | 243.237795 | 0.856587 | 0.002266 | 0 | 0.065147 | 0 | 0.210098 | 0.547973 | 0.183235 | 0 | 0 | 0.000026 | 0 | 0.001629 | 1 | 0 | false | 0 | 0.02443 | 0 | 0.078176 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5582eaaf4b219e54f08863b41c38682cd3225524 | 99 | py | Python | aoj/ITP1/ITP1_3_B/solve.py | tobyapi/online-judge-solutions | 4088adb97ea592e8e6582ae7d2ecde2f85e2ed9c | [
"MIT"
] | null | null | null | aoj/ITP1/ITP1_3_B/solve.py | tobyapi/online-judge-solutions | 4088adb97ea592e8e6582ae7d2ecde2f85e2ed9c | [
"MIT"
] | null | null | null | aoj/ITP1/ITP1_3_B/solve.py | tobyapi/online-judge-solutions | 4088adb97ea592e8e6582ae7d2ecde2f85e2ed9c | [
"MIT"
] | null | null | null | i=0
while 1:
a = int(input())
if a == 0 : break
i+=1
print "Case %d: %d" % (i, a)
| 14.142857 | 33 | 0.414141 | 19 | 99 | 2.157895 | 0.631579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064516 | 0.373737 | 99 | 6 | 34 | 16.5 | 0.596774 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5591010aecec83ad72afd02059cdcfd2b3211333 | 1,953 | py | Python | sirbot/slack/store/store.py | Ovvovy/sirbot-slack | 2d27e49cfbc2cb12e87ef3814823d2ad68d0a788 | [
"MIT"
] | 7 | 2017-05-06T11:37:25.000Z | 2018-11-22T09:46:32.000Z | sirbot/slack/store/store.py | Ovvovy/sirbot-slack | 2d27e49cfbc2cb12e87ef3814823d2ad68d0a788 | [
"MIT"
] | 19 | 2017-05-07T16:25:02.000Z | 2017-09-22T08:02:59.000Z | sirbot/slack/store/store.py | Ovvovy/sirbot-slack | 2d27e49cfbc2cb12e87ef3814823d2ad68d0a788 | [
"MIT"
] | 3 | 2017-05-06T11:37:28.000Z | 2017-07-07T09:32:54.000Z | import logging
logger = logging.getLogger(__name__)
class SlackStore:
def __init__(self, client, refresh=3600):
self._client = client
self._refresh = refresh
async def all(self):
pass
async def get(self, id_, update=False):
pass
async def _add(self, item):
... | 18.6 | 56 | 0.612391 | 221 | 1,953 | 5.140271 | 0.19457 | 0.079225 | 0.098592 | 0.089789 | 0.411972 | 0.075704 | 0.075704 | 0.075704 | 0.075704 | 0.075704 | 0 | 0.002901 | 0.293907 | 1,953 | 104 | 57 | 18.778846 | 0.820885 | 0 | 0 | 0.305556 | 0 | 0 | 0.017409 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263889 | false | 0.055556 | 0.013889 | 0.111111 | 0.430556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 3 |
55bbf817176aec2ca9e5776d0e2b35bfa63da276 | 20,799 | py | Python | py_proto/modules/prediction/proto/feature_pb2.py | yujianyi/fusion_localization | c0057e29cbf690d6260f021080fd951c1a6b6baa | [
"Apache-2.0"
] | 2 | 2019-03-04T02:11:04.000Z | 2019-04-18T11:19:45.000Z | py_proto/modules/prediction/proto/feature_pb2.py | yujianyi/fusion_localization | c0057e29cbf690d6260f021080fd951c1a6b6baa | [
"Apache-2.0"
] | 1 | 2019-03-15T08:37:53.000Z | 2019-03-15T08:37:53.000Z | py_proto/modules/prediction/proto/feature_pb2.py | yujianyi/fusion_localization | c0057e29cbf690d6260f021080fd951c1a6b6baa | [
"Apache-2.0"
] | 1 | 2019-03-04T02:11:09.000Z | 2019-03-04T02:11:09.000Z | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: modules/prediction/proto/feature.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf im... | 51.355556 | 2,323 | 0.752777 | 2,896 | 20,799 | 5.095994 | 0.083909 | 0.060171 | 0.036997 | 0.063423 | 0.794213 | 0.725844 | 0.674617 | 0.649546 | 0.615802 | 0.583548 | 0 | 0.051687 | 0.120967 | 20,799 | 404 | 2,324 | 51.482673 | 0.755511 | 0.017741 | 0 | 0.649867 | 1 | 0.002653 | 0.229116 | 0.191117 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.023873 | 0 | 0.023873 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 | 3 |
e94f35d7fd1af3482c1b3a85068699d7bf27d20b | 159 | py | Python | doctests.py | inegm/hbforty | 18293cc5c834e9a46dde21a1fd938114f8b9a423 | [
"MIT"
] | null | null | null | doctests.py | inegm/hbforty | 18293cc5c834e9a46dde21a1fd938114f8b9a423 | [
"MIT"
] | null | null | null | doctests.py | inegm/hbforty | 18293cc5c834e9a46dde21a1fd938114f8b9a423 | [
"MIT"
] | null | null | null | if __name__ == "__main__":
import doctest
import hbforty
doctest.testmod(
hbforty,
optionflags=doctest.NORMALIZE_WHITESPACE
)
| 17.666667 | 48 | 0.647799 | 14 | 159 | 6.714286 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.283019 | 159 | 8 | 49 | 19.875 | 0.824561 | 0 | 0 | 0 | 0 | 0 | 0.050314 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 0 | 0.285714 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.