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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f4b574d7cdef14024f4196acbb3c4fcff7a56fac | 2,872 | py | Python | lib/local.py | sakyra01/CatPaw_OSINT | 7fd89d46c4059575effebaf1fffa3e05834ee22b | [
"MIT"
] | null | null | null | lib/local.py | sakyra01/CatPaw_OSINT | 7fd89d46c4059575effebaf1fffa3e05834ee22b | [
"MIT"
] | null | null | null | lib/local.py | sakyra01/CatPaw_OSINT | 7fd89d46c4059575effebaf1fffa3e05834ee22b | [
"MIT"
] | null | null | null | import sys
import time
import collections
import requests
nu = "\033[0m"
re = "\033[1;31m"
gr = "\033[0;32m"
cy = "\033[0;36m"
wh = "\033[0;37m"
ye = "\033[0;34m"
su = f"\033[1;31m[\033[1;36m+\033[1;31m]{nu}"
fa = f"\033[1;31m[\033[1;31m!\033[1;31m]{nu}"
er = f"\033[1;31m[\033[1;34m?\033[1;31m]{nu}"
def urlshortner... | 41.028571 | 149 | 0.405989 | 325 | 2,872 | 3.56 | 0.412308 | 0.034572 | 0.048401 | 0.034572 | 0.26707 | 0.22299 | 0.14866 | 0.117545 | 0.117545 | 0.117545 | 0 | 0.145684 | 0.366643 | 2,872 | 69 | 150 | 41.623188 | 0.490379 | 0 | 0 | 0 | 0 | 0.185185 | 0.78223 | 0.038676 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.074074 | 0 | 0.185185 | 0.018519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f4b63e75ff6ef6aeaf9f17c97e1b45c3da48ef64 | 24,323 | py | Python | push_db_to_stage.py | vanpattenmedia/vpmframe-module-scripts | 049c8e94543188b9b8fa51850c8094819da46b96 | [
"Unlicense"
] | null | null | null | push_db_to_stage.py | vanpattenmedia/vpmframe-module-scripts | 049c8e94543188b9b8fa51850c8094819da46b96 | [
"Unlicense"
] | null | null | null | push_db_to_stage.py | vanpattenmedia/vpmframe-module-scripts | 049c8e94543188b9b8fa51850c8094819da46b96 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python
#
#
# Push the current database to stage
#
# This script pushes the content in the site database for the current
# stage to another stage, for example, development -> staging.
#
# It automatically handles the rewriting of key WordPress options siteurl,
# home and upload_path, as well as rewriting... | 47.598826 | 606 | 0.689882 | 3,434 | 24,323 | 4.633663 | 0.131334 | 0.051156 | 0.014077 | 0.022876 | 0.502262 | 0.452552 | 0.407617 | 0.355958 | 0.333962 | 0.312154 | 0 | 0.002333 | 0.171607 | 24,323 | 510 | 607 | 47.692157 | 0.787384 | 0.109649 | 0 | 0.315457 | 0 | 0.015773 | 0.326369 | 0.017187 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.053628 | 0.037855 | null | null | 0.274448 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
f4b98386c6a7b40d890a6d2581517196d24b3ebc | 4,484 | py | Python | public_21CMvFAST_MC/Programs/CosmoHammer_21CMMC/sampler/MpiCosmoHammerSampler.py | NNSSA/21cmvFAST | 8f015427f3609a3051b4fa185bdbe55b379c930f | [
"MIT"
] | 5 | 2019-04-18T11:31:34.000Z | 2020-11-15T03:29:14.000Z | public_21CMvFAST_MC/Programs/CosmoHammer_21CMMC/sampler/MpiCosmoHammerSampler.py | NNSSA/21cmvFAST | 8f015427f3609a3051b4fa185bdbe55b379c930f | [
"MIT"
] | 1 | 2019-12-17T05:27:25.000Z | 2019-12-18T19:59:55.000Z | public_21CMvFAST_MC/Programs/CosmoHammer_21CMMC/sampler/MpiCosmoHammerSampler.py | NNSSA/21cmvFAST | 8f015427f3609a3051b4fa185bdbe55b379c930f | [
"MIT"
] | 2 | 2019-11-14T13:54:46.000Z | 2019-12-08T17:16:53.000Z | from .CosmoHammerSampler import CosmoHammerSampler
from collections import namedtuple
from cosmoHammer.util.SampleFileUtil import SampleFileUtil
from mpi4py import MPI
import emcee
import itertools
class MpiCosmoHammerSampler(CosmoHammerSampler):
"""
A sampler implementation extending the regular sampler in o... | 32.258993 | 106 | 0.605263 | 487 | 4,484 | 5.519507 | 0.326489 | 0.040179 | 0.022321 | 0.016741 | 0.108259 | 0.087054 | 0.087054 | 0.087054 | 0.087054 | 0.087054 | 0 | 0.003513 | 0.30174 | 4,484 | 139 | 107 | 32.258993 | 0.854998 | 0.261597 | 0 | 0.036364 | 0 | 0 | 0.03287 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.236364 | false | 0 | 0.109091 | 0 | 0.563636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
f4bbaf9fdd2dce71df55398ff5c5b020316d3bc0 | 511 | py | Python | utils.py | hyperionfalling/final_assignment | b6c4d7bada3c4da014af8dbf86c1b476877f670e | [
"MIT"
] | 1 | 2020-04-16T03:15:42.000Z | 2020-04-16T03:15:42.000Z | utils.py | hyperionfalling/final_assignment | b6c4d7bada3c4da014af8dbf86c1b476877f670e | [
"MIT"
] | 1 | 2020-07-14T07:21:39.000Z | 2020-07-14T07:47:28.000Z | utils.py | hyperionfalling/final_assignment | b6c4d7bada3c4da014af8dbf86c1b476877f670e | [
"MIT"
] | 1 | 2020-04-16T03:15:44.000Z | 2020-04-16T03:15:44.000Z | """
-*- coding:utf-8 -*-
@Time :2019/11/27 下午4:54
@Author :wts
@File :utils.py
@Version:1.0
"""
import torch
import torch.utils.data.sampler as Sampler
import torch.nn as nn
import torch.nn.functional as F
class Mish(nn.Module):
def __init__(self):
super().__init__()
#print("Mish activation loa... | 18.25 | 43 | 0.622309 | 74 | 511 | 4.081081 | 0.554054 | 0.145695 | 0.086093 | 0.099338 | 0.15894 | 0.15894 | 0 | 0 | 0 | 0 | 0 | 0.035176 | 0.221135 | 511 | 27 | 44 | 18.925926 | 0.723618 | 0.246575 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.307692 | 0 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
f4bfc2bf8e0be8a0cc0dce1252afc5410c6a1a34 | 2,028 | py | Python | tests/test_zonecontrolhumidistat.py | marcelosalles/pyidf | c2f744211572b5e14e29522aac1421ba88addb0e | [
"Apache-2.0"
] | 19 | 2015-12-08T23:33:51.000Z | 2022-01-31T04:41:10.000Z | tests/test_zonecontrolhumidistat.py | marcelosalles/pyidf | c2f744211572b5e14e29522aac1421ba88addb0e | [
"Apache-2.0"
] | 2 | 2019-10-04T10:57:00.000Z | 2021-10-01T06:46:17.000Z | tests/test_zonecontrolhumidistat.py | marcelosalles/pyidf | c2f744211572b5e14e29522aac1421ba88addb0e | [
"Apache-2.0"
] | 7 | 2015-11-04T02:25:01.000Z | 2021-12-08T03:14:28.000Z | import os
import tempfile
import unittest
import logging
from pyidf import ValidationLevel
import pyidf
from pyidf.idf import IDF
from pyidf.zone_hvac_controls_and_thermostats import ZoneControlHumidistat
log = logging.getLogger(__name__)
class TestZoneControlHumidistat(unittest.TestCase):
def setUp(self):
... | 40.56 | 171 | 0.755917 | 234 | 2,028 | 6.217949 | 0.273504 | 0.131959 | 0.197938 | 0.263918 | 0.598625 | 0.525086 | 0.362887 | 0.320275 | 0.320275 | 0.272165 | 0 | 0.005405 | 0.178994 | 2,028 | 50 | 171 | 40.56 | 0.868468 | 0.020217 | 0 | 0 | 0 | 0 | 0.078669 | 0.024206 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.083333 | false | 0 | 0.222222 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f4c75052bddc0c1e4d79dc02a3676d50d3354096 | 1,184 | py | Python | NSGA2/individual_selector.py | hirokuramoto/Optimizer | 6aeaff59c29798caa6cf8e398a3be205eba5dea7 | [
"MIT"
] | null | null | null | NSGA2/individual_selector.py | hirokuramoto/Optimizer | 6aeaff59c29798caa6cf8e398a3be205eba5dea7 | [
"MIT"
] | null | null | null | NSGA2/individual_selector.py | hirokuramoto/Optimizer | 6aeaff59c29798caa6cf8e398a3be205eba5dea7 | [
"MIT"
] | null | null | null | # 混雑度トーナメント選択により新たな探索母集団Qt+1を生成
import numpy as np
import random
import copy
class Tournament(object):
"""混雑度トーナメント選択
"""
def __init__(self, archive_set):
self._archive_set = copy.deepcopy(archive_set)
def tournament(self):
# アーカイブ母集団の個体数分の探索母集団を生成
size = int(self._archive_set... | 30.358974 | 78 | 0.608108 | 143 | 1,184 | 4.741259 | 0.314685 | 0.20649 | 0.268437 | 0.125369 | 0.41003 | 0.371681 | 0.371681 | 0.371681 | 0.371681 | 0.371681 | 0 | 0.027059 | 0.282095 | 1,184 | 38 | 79 | 31.157895 | 0.770588 | 0.076014 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.136364 | 0 | 0.318182 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f4e81431ce09e9309aaca3d4f759026e1dd6b24a | 985 | py | Python | src/the_tale/the_tale/accounts/exceptions.py | devapromix/the-tale | 2a10efd3270734f8cf482b4cfbc5353ef8f0494c | [
"BSD-3-Clause"
] | 1 | 2020-04-02T11:51:20.000Z | 2020-04-02T11:51:20.000Z | src/the_tale/the_tale/accounts/exceptions.py | devapromix/the-tale | 2a10efd3270734f8cf482b4cfbc5353ef8f0494c | [
"BSD-3-Clause"
] | null | null | null | src/the_tale/the_tale/accounts/exceptions.py | devapromix/the-tale | 2a10efd3270734f8cf482b4cfbc5353ef8f0494c | [
"BSD-3-Clause"
] | null | null | null |
import smart_imports
smart_imports.all()
class AccountError(utils_exceptions.TheTaleError):
MSG = 'account error'
class UnkwnownAchievementTypeError(AccountError):
MSG = 'unknown achievement type: %(achievement_type)r'
class EmailAndPasswordError(AccountError):
MSG = 'email & password must be specif... | 24.02439 | 72 | 0.788832 | 96 | 985 | 8.041667 | 0.427083 | 0.07772 | 0.07772 | 0.069948 | 0.132124 | 0.132124 | 0.132124 | 0 | 0 | 0 | 0 | 0 | 0.147208 | 985 | 40 | 73 | 24.625 | 0.919048 | 0 | 0 | 0 | 0 | 0 | 0.32622 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.2 | 0.1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
f4ee7c78dee6b26d7886274ee40c043aeeb512ed | 1,054 | py | Python | utility/Team.py | KilometersFan/SciOlyScheduler | 4371b04b342e4842e45030bf48cd48a2769685c1 | [
"MIT"
] | 1 | 2021-04-22T06:45:37.000Z | 2021-04-22T06:45:37.000Z | utility/Team.py | KilometersFan/SciOlyScheduler | 4371b04b342e4842e45030bf48cd48a2769685c1 | [
"MIT"
] | null | null | null | utility/Team.py | KilometersFan/SciOlyScheduler | 4371b04b342e4842e45030bf48cd48a2769685c1 | [
"MIT"
] | null | null | null | from Coach import Coach
class Team:
def __init__(self, number, name):
self.number = number
self.coaches = []
self.name = name
def add_coach(self, coach):
if isinstance(coach, Coach):
self.coaches.append(coach)
else:
print("Invalid argument passed.... | 29.277778 | 88 | 0.564516 | 126 | 1,054 | 4.515873 | 0.269841 | 0.096661 | 0.057996 | 0.063269 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00142 | 0.332068 | 1,054 | 35 | 89 | 30.114286 | 0.806818 | 0 | 0 | 0.147059 | 0 | 0 | 0.070209 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205882 | false | 0.058824 | 0.029412 | 0.088235 | 0.411765 | 0.235294 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
f4f3d97923bdb39667cc435733726cfcb69b6480 | 2,329 | py | Python | ampligraph/latent_features/__init__.py | wayne9qiu/AmpliGraph | a4e7afcc39a92737cee6edb74661b364fa841336 | [
"Apache-2.0"
] | null | null | null | ampligraph/latent_features/__init__.py | wayne9qiu/AmpliGraph | a4e7afcc39a92737cee6edb74661b364fa841336 | [
"Apache-2.0"
] | 1 | 2021-02-23T18:08:17.000Z | 2021-02-24T08:05:07.000Z | ampligraph/latent_features/__init__.py | isabella232/AmpliGraph | a4e7afcc39a92737cee6edb74661b364fa841336 | [
"Apache-2.0"
] | 1 | 2021-07-21T16:23:10.000Z | 2021-07-21T16:23:10.000Z | # Copyright 2019-2020 The AmpliGraph Authors. All Rights Reserved.
#
# This file is Licensed under the Apache License, Version 2.0.
# A copy of the Licence is available in LICENCE, or at:
#
# http://www.apache.org/licenses/LICENSE-2.0
#
r"""This module includes neural graph embedding models and support functions.
... | 55.452381 | 119 | 0.769429 | 261 | 2,329 | 6.747126 | 0.452107 | 0.045429 | 0.022714 | 0.029529 | 0.253265 | 0.052243 | 0.052243 | 0 | 0 | 0 | 0 | 0.007905 | 0.130957 | 2,329 | 41 | 120 | 56.804878 | 0.862154 | 0.309575 | 0 | 0 | 0 | 0 | 0.284191 | 0.013802 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.583333 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
f4f432f29b8b5180b84296f7d692e2fa12c5c17a | 86 | py | Python | exptools/viewing/__init__.py | Shiduo-zh/pybulletSim | a51c71adc328d2071d7faf53e4bc5cd695f03ab2 | [
"MIT"
] | 9 | 2020-04-03T10:41:04.000Z | 2021-12-24T05:18:37.000Z | exptools/viewing/__init__.py | Shiduo-zh/pybulletSim | a51c71adc328d2071d7faf53e4bc5cd695f03ab2 | [
"MIT"
] | null | null | null | exptools/viewing/__init__.py | Shiduo-zh/pybulletSim | a51c71adc328d2071d7faf53e4bc5cd695f03ab2 | [
"MIT"
] | 1 | 2022-03-25T06:30:50.000Z | 2022-03-25T06:30:50.000Z | ''' possible complement of viewing an experiment results
'''
__author__ = 'dementrock' | 28.666667 | 56 | 0.767442 | 9 | 86 | 6.888889 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127907 | 86 | 3 | 57 | 28.666667 | 0.826667 | 0.604651 | 0 | 0 | 0 | 0 | 0.37037 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f4fc6a7dd6890a5502b65f6ddbc298d068907c32 | 461 | py | Python | 0110.balanced_binary_tree/solution.py | WZMJ/Algorithms | 07f648541d38e24df38bda469665c12df6a50637 | [
"MIT"
] | 5 | 2020-05-23T02:18:26.000Z | 2021-07-05T05:36:01.000Z | 0110.balanced_binary_tree/solution.py | WZMJ/Algorithms | 07f648541d38e24df38bda469665c12df6a50637 | [
"MIT"
] | 1 | 2020-06-10T07:17:24.000Z | 2020-07-20T02:21:24.000Z | 0110.balanced_binary_tree/solution.py | WZMJ/Algorithms | 07f648541d38e24df38bda469665c12df6a50637 | [
"MIT"
] | 1 | 2019-04-23T13:01:50.000Z | 2019-04-23T13:01:50.000Z | from utils import TreeNode
class Solution:
def is_balance(self, root: TreeNode):
if not root:
return True
left = self.depth(root.left)
right = self.depth(root.right)
return abs(left - right) <= 1 and self.is_balance(root.left) and self.is_balance(root.right)
def de... | 28.8125 | 100 | 0.613883 | 65 | 461 | 4.307692 | 0.353846 | 0.128571 | 0.185714 | 0.128571 | 0.364286 | 0.221429 | 0.221429 | 0 | 0 | 0 | 0 | 0.009009 | 0.277657 | 461 | 15 | 101 | 30.733333 | 0.831832 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0 | 0.666667 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
f4ff86115bd19cce513fa80040156072d8fa3a79 | 1,167 | py | Python | cpdb/data_importer/tests/management/test_crawl_copa_data.py | invinst/CPDBv2_backend | b4e96d620ff7a437500f525f7e911651e4a18ef9 | [
"Apache-2.0"
] | 25 | 2018-07-20T22:31:40.000Z | 2021-07-15T16:58:41.000Z | cpdb/data_importer/tests/management/test_crawl_copa_data.py | invinst/CPDBv2_backend | b4e96d620ff7a437500f525f7e911651e4a18ef9 | [
"Apache-2.0"
] | 13 | 2018-06-18T23:08:47.000Z | 2022-02-10T07:38:25.000Z | cpdb/data_importer/tests/management/test_crawl_copa_data.py | invinst/CPDBv2_backend | b4e96d620ff7a437500f525f7e911651e4a18ef9 | [
"Apache-2.0"
] | 6 | 2018-05-17T21:59:43.000Z | 2020-11-17T00:30:26.000Z | from django.test import TestCase
from django.core.management import call_command
from mock import patch
from robber import expect
from data.factories import AttachmentFileFactory
from data.constants import AttachmentSourceType
class CrawlCopaPortalDataTestCase(TestCase):
@patch('data_importer.copa_crawler.impor... | 50.73913 | 116 | 0.836332 | 137 | 1,167 | 6.715328 | 0.386861 | 0.091304 | 0.055435 | 0.045652 | 0.233696 | 0.233696 | 0.091304 | 0 | 0 | 0 | 0 | 0.00572 | 0.101114 | 1,167 | 22 | 117 | 53.045455 | 0.871306 | 0 | 0 | 0 | 0 | 0 | 0.252785 | 0.239931 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.705882 | 0 | 0.823529 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
f4fff2cf7138e98bb31f202021f22e9fc10e2fec | 4,351 | py | Python | _django/migrations/0001_initial.py | zzzeek/imdbench | 4f95aa769e90bfbada84ecfe8a9478d895260b44 | [
"Apache-2.0"
] | 50 | 2022-03-23T00:34:34.000Z | 2022-03-31T01:50:09.000Z | _django/migrations/0001_initial.py | zzzeek/imdbench | 4f95aa769e90bfbada84ecfe8a9478d895260b44 | [
"Apache-2.0"
] | 13 | 2019-05-11T21:18:32.000Z | 2022-02-14T21:02:41.000Z | _django/migrations/0001_initial.py | zzzeek/imdbench | 4f95aa769e90bfbada84ecfe8a9478d895260b44 | [
"Apache-2.0"
] | 6 | 2019-05-08T21:59:10.000Z | 2022-02-12T10:58:55.000Z | # Generated by Django 2.1 on 2018-09-21 16:16
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Cast',
fields=[
... | 40.287037 | 131 | 0.564238 | 418 | 4,351 | 5.705742 | 0.188995 | 0.026834 | 0.040252 | 0.090566 | 0.750524 | 0.708176 | 0.633962 | 0.551363 | 0.515304 | 0.515304 | 0 | 0.012398 | 0.295564 | 4,351 | 107 | 132 | 40.663551 | 0.765742 | 0.009883 | 0 | 0.64 | 1 | 0 | 0.111008 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02 | 0 | 0.06 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7626115c3ac829923e17fccc9bad7ad74df6aac5 | 437 | py | Python | web/api/auth/views.py | FrankyTerra/broadcast | 5335e42a5c74c348fdae6cc6b0ebd32be1bfb43f | [
"MIT"
] | null | null | null | web/api/auth/views.py | FrankyTerra/broadcast | 5335e42a5c74c348fdae6cc6b0ebd32be1bfb43f | [
"MIT"
] | 6 | 2021-03-19T09:32:54.000Z | 2021-09-22T19:24:24.000Z | web/api/auth/views.py | FrankyTerra/broadcast | 5335e42a5c74c348fdae6cc6b0ebd32be1bfb43f | [
"MIT"
] | null | null | null | from api.auth.mixins import GetRequestUserAsObjectMixin
from api.auth.serializers import ProfileRetrieveSerializer
from core.api.views import CustomRetrieveAPIView
from user.models import User
class UserProfileRetrieveView(GetRequestUserAsObjectMixin, CustomRetrieveAPIView):
"""
Представление основной информа... | 31.214286 | 82 | 0.82151 | 39 | 437 | 9.179487 | 0.615385 | 0.039106 | 0.061453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125858 | 437 | 13 | 83 | 33.615385 | 0.937173 | 0.12357 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
5205e2b53f2a5be15bc51bded137303e99561293 | 1,051 | py | Python | TTI_computing/test.py | XDZhelheim/TrafficDataAnalysis | a73dde10f91fb88af3a7b2edd7a04adaa5ea57f5 | [
"MIT"
] | null | null | null | TTI_computing/test.py | XDZhelheim/TrafficDataAnalysis | a73dde10f91fb88af3a7b2edd7a04adaa5ea57f5 | [
"MIT"
] | null | null | null | TTI_computing/test.py | XDZhelheim/TrafficDataAnalysis | a73dde10f91fb88af3a7b2edd7a04adaa5ea57f5 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import numpy as np
from scipy import interpolate
# 设置距离
x = np.array([0, 1, 1.5, 2, 2.5, 3, 3.5, 4, 4.5, 5, 5.5, 6, 6.5, 70, 8, 9, 10])
# 设置相似度
y = np.array([0.8579087793827057, 0.8079087793827057, 0.7679087793827057, 0.679087793827057,
0.5579087793827057, 0.4579087793827... | 27.657895 | 93 | 0.699334 | 150 | 1,051 | 4.9 | 0.553333 | 0.008163 | 0.021769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.379977 | 0.163654 | 1,051 | 38 | 94 | 27.657895 | 0.4562 | 0.115128 | 0 | 0 | 0 | 0 | 0.107609 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15 | 0 | 0.15 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5208a5f8c415b1a941b3145b4f0415f0f4c96afc | 337 | py | Python | logger/logger_meta/__init__.py | JiahuiLei/Pix2Surf | ac56ce5a20adab8cb563d96c915e1cc253631bf8 | [
"MIT"
] | 26 | 2020-09-01T05:31:59.000Z | 2022-01-19T02:37:51.000Z | logger/logger_meta/__init__.py | JiahuiLei/Pix2Surf | ac56ce5a20adab8cb563d96c915e1cc253631bf8 | [
"MIT"
] | null | null | null | logger/logger_meta/__init__.py | JiahuiLei/Pix2Surf | ac56ce5a20adab8cb563d96c915e1cc253631bf8 | [
"MIT"
] | 5 | 2020-11-23T06:59:48.000Z | 2021-11-14T01:35:57.000Z | from .metric_logger import MetricLogger
from .image_logger import ImageLogger
from .model_logger import ModelLogger
from .xls_logger import XLSLogger
from .obj_logger import ObjectLogger
LOGGER_REGISTED = {
'metric': MetricLogger,
'image': ImageLogger,
'model': ModelLogger,
'xls': XLSLogger,
'obj':... | 24.071429 | 39 | 0.753709 | 37 | 337 | 6.702703 | 0.378378 | 0.241935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163205 | 337 | 13 | 40 | 25.923077 | 0.879433 | 0 | 0 | 0 | 0 | 0 | 0.065282 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.416667 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
5214863b2e170928f1dc508cec71000151a7131a | 1,064 | py | Python | paranestamol/__init__.py | appetrosyan/paranestamol | d0cdc430fc47897c96bf37b3395f23f17be7024a | [
"MIT"
] | 2 | 2021-03-03T03:43:24.000Z | 2021-03-07T07:56:46.000Z | paranestamol/__init__.py | appetrosyan/paranestamol | d0cdc430fc47897c96bf37b3395f23f17be7024a | [
"MIT"
] | null | null | null | paranestamol/__init__.py | appetrosyan/paranestamol | d0cdc430fc47897c96bf37b3395f23f17be7024a | [
"MIT"
] | null | null | null | import os
from paranestamol.utils import Legend, cleanupFileRoot
if os.getenv('QT_API') != "PySide2":
raise RuntimeError(f'TL;DR \n\n`QT_API=PySide2 python3 -m paranestamol `\n\n The moron who\
designed `matplotlib_backend_qtquick` hard-coded a preference for\
pyqt5 for their backend, despite supporting PySide2 ... | 50.666667 | 99 | 0.789474 | 164 | 1,064 | 5.04878 | 0.658537 | 0.082126 | 0.115942 | 0.067633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005482 | 0.142857 | 1,064 | 20 | 100 | 53.2 | 0.902412 | 0.360902 | 0 | 0 | 0 | 0.1 | 0.019316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
5217f79bd9b0f5ddfca9fda556d412b4c4e5556e | 133 | py | Python | date.py | himanshushukla254/Python_Semantics | 635ddc7a2bc62b9fce3e80922354d83b160d1c13 | [
"MIT"
] | null | null | null | date.py | himanshushukla254/Python_Semantics | 635ddc7a2bc62b9fce3e80922354d83b160d1c13 | [
"MIT"
] | null | null | null | date.py | himanshushukla254/Python_Semantics | 635ddc7a2bc62b9fce3e80922354d83b160d1c13 | [
"MIT"
] | null | null | null | from semantic.dates import DateService
service = DateService()
date = service.extractDate("On March 3 at 12:15pm...")
print(date);
| 19 | 54 | 0.744361 | 18 | 133 | 5.5 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043103 | 0.12782 | 133 | 6 | 55 | 22.166667 | 0.810345 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5227e7c808d0b3648ea5a2bf3c4a16408e8aa3d4 | 191 | py | Python | rmPython.py | emiliska/unix-commands-python3 | cb4c8b585ea7ad9fa729c39af2e8654dd9dafa63 | [
"MIT"
] | null | null | null | rmPython.py | emiliska/unix-commands-python3 | cb4c8b585ea7ad9fa729c39af2e8654dd9dafa63 | [
"MIT"
] | null | null | null | rmPython.py | emiliska/unix-commands-python3 | cb4c8b585ea7ad9fa729c39af2e8654dd9dafa63 | [
"MIT"
] | null | null | null | import sys, os
# How to use:
# python .\mvPython.py '.\mvPython.py' 'D:\USERNAME\DESTINATION_FOLDER...'
for arg in sys.argv[1:]: # loop through arguments from command line
os.remove(arg)
| 21.222222 | 74 | 0.701571 | 30 | 191 | 4.433333 | 0.833333 | 0.150376 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006135 | 0.146597 | 191 | 8 | 75 | 23.875 | 0.809816 | 0.65445 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 2 |
522842017fac35842f8cc71c24438fec0ecd2108 | 1,116 | py | Python | AutotestWebD/apps/myadmin/service/UserService.py | yangjourney/sosotest | 2e88099a829749910ca325253c9b1a2e368d21a0 | [
"MIT"
] | 422 | 2019-08-18T05:04:20.000Z | 2022-03-31T06:49:19.000Z | AutotestWebD/apps/myadmin/service/UserService.py | LinSongJian1985/sosotest | 091863dee531b5726650bb63efd6f169267cbeb4 | [
"MIT"
] | 10 | 2019-10-24T09:55:38.000Z | 2021-09-29T17:28:43.000Z | AutotestWebD/apps/myadmin/service/UserService.py | LinSongJian1985/sosotest | 091863dee531b5726650bb63efd6f169267cbeb4 | [
"MIT"
] | 202 | 2019-08-18T05:04:27.000Z | 2022-03-30T05:57:18.000Z | import apps.common.func.InitDjango
from all_models.models import TbUser, TbAdminUserPermissionRelation
from apps.common.func.WebFunc import *
class UserService(object):
@staticmethod
def getUsers():
return TbUser.objects.all()
@staticmethod
def getUserByLoginname(loginname):
return ... | 34.875 | 186 | 0.728495 | 98 | 1,116 | 8.183673 | 0.510204 | 0.05611 | 0.034913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004184 | 0.143369 | 1,116 | 31 | 187 | 36 | 0.834728 | 0.314516 | 0 | 0.1875 | 0 | 0 | 0.1321 | 0.055482 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.1875 | 0.125 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
5232d132e27047c7a538cbc1846233bbb3ac990f | 313 | py | Python | instaboost/exceptions.py | twangnh/Calibration_mrcnn | e5f3076cefbe35297a403a753bb57e11503db818 | [
"Apache-2.0"
] | 87 | 2020-07-24T01:28:39.000Z | 2021-08-29T08:40:18.000Z | instaboost/exceptions.py | twangnh/Calibration_mrcnn | e5f3076cefbe35297a403a753bb57e11503db818 | [
"Apache-2.0"
] | 3 | 2020-09-27T12:59:28.000Z | 2022-01-06T13:14:08.000Z | instaboost/exceptions.py | twangnh/Calibration_mrcnn | e5f3076cefbe35297a403a753bb57e11503db818 | [
"Apache-2.0"
] | 20 | 2020-09-05T04:37:19.000Z | 2021-12-13T02:25:48.000Z | class TrimapError(Exception):
"""
Error when creating matting trimap.
"""
def __init__(self, err):
super(TrimapError, self).__init__(err)
class AnnError(Exception):
"""
Error with Input annotation.
"""
def __init__(self, err):
super(AnnError, self).__init__(err)
| 20.866667 | 46 | 0.626198 | 33 | 313 | 5.454545 | 0.515152 | 0.155556 | 0.122222 | 0.155556 | 0.211111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.246006 | 313 | 14 | 47 | 22.357143 | 0.762712 | 0.204473 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
52381cf8791140f3db963f3f649a89f2c215238a | 312 | py | Python | modules/base.py | VinhLoiIT/stock-trend-predictions | 10d76d44c6c6690d712d131a151b4f52bdc87ff4 | [
"Apache-2.0"
] | 3 | 2022-03-14T10:00:12.000Z | 2022-03-15T16:15:27.000Z | modules/base.py | VinhLoiIT/stock-trend-predictions | 10d76d44c6c6690d712d131a151b4f52bdc87ff4 | [
"Apache-2.0"
] | null | null | null | modules/base.py | VinhLoiIT/stock-trend-predictions | 10d76d44c6c6690d712d131a151b4f52bdc87ff4 | [
"Apache-2.0"
] | null | null | null | class StockTrendPredictor:
def predict(self, headline: str) -> int:
r"""Predict stock trending from the given headline
Args:
headline: the news headline
Returns:
A prediction, 0 for not-changed or downward trend, 1 for upward trend
"""
pass
| 24 | 81 | 0.596154 | 36 | 312 | 5.166667 | 0.805556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009709 | 0.339744 | 312 | 12 | 82 | 26 | 0.893204 | 0.541667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.25 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
523ea396bd22c3906f3495b4d688366abaeb128c | 3,380 | py | Python | python_modules/dagster/dagster/core/types/config_schema.py | vishvananda/dagster | f6aa44714246bc770fe05a9c986fe8b7d848956b | [
"Apache-2.0"
] | null | null | null | python_modules/dagster/dagster/core/types/config_schema.py | vishvananda/dagster | f6aa44714246bc770fe05a9c986fe8b7d848956b | [
"Apache-2.0"
] | null | null | null | python_modules/dagster/dagster/core/types/config_schema.py | vishvananda/dagster | f6aa44714246bc770fe05a9c986fe8b7d848956b | [
"Apache-2.0"
] | null | null | null | from dagster import check
from dagster.utils import single_item
from .builtin_enum import BuiltinEnum
from .config import ConfigType, List, Nullable
from .wrapping import WrappingListType, WrappingNullableType
class InputSchema:
@property
def schema_type(self):
check.not_implemented(
'Mus... | 29.391304 | 84 | 0.728698 | 412 | 3,380 | 5.558252 | 0.150485 | 0.125764 | 0.055895 | 0.066376 | 0.727074 | 0.665066 | 0.594323 | 0.594323 | 0.562009 | 0.458515 | 0 | 0 | 0.2 | 3,380 | 114 | 85 | 29.649123 | 0.846893 | 0 | 0 | 0.481013 | 0 | 0 | 0.037278 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.265823 | false | 0 | 0.063291 | 0.075949 | 0.658228 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
5241cd4a2a96e3fca0d2cbddea0fd118cb276777 | 1,856 | py | Python | tests/test_dependencies/test_overrides.py | adriangb/xpresso | 43fcc360f7b19c00e0b78480f96390bcb4d28053 | [
"MIT"
] | 75 | 2022-01-18T02:17:57.000Z | 2022-03-24T02:30:04.000Z | tests/test_dependencies/test_overrides.py | adriangb/xpresso | 43fcc360f7b19c00e0b78480f96390bcb4d28053 | [
"MIT"
] | 73 | 2022-01-18T03:01:27.000Z | 2022-03-27T16:41:38.000Z | tests/test_dependencies/test_overrides.py | adriangb/xpresso | 43fcc360f7b19c00e0b78480f96390bcb4d28053 | [
"MIT"
] | 3 | 2022-01-18T22:47:06.000Z | 2022-01-25T02:03:53.000Z | from dataclasses import dataclass
from di.dependant import Marker
from xpresso import App, Depends, Path
from xpresso.dependencies import Injectable
from xpresso.testclient import TestClient
from xpresso.typing import Annotated
def test_override_with_marker() -> None:
def dep() -> int:
...
async de... | 22.361446 | 80 | 0.633082 | 234 | 1,856 | 4.923077 | 0.217949 | 0.069444 | 0.052083 | 0.045139 | 0.689236 | 0.689236 | 0.689236 | 0.689236 | 0.689236 | 0.689236 | 0 | 0.011165 | 0.227909 | 1,856 | 82 | 81 | 22.634146 | 0.792743 | 0 | 0 | 0.730769 | 0 | 0 | 0.018319 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.115385 | false | 0 | 0.115385 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
52449e58a570eae584389167e9cf60580a811ff3 | 2,034 | py | Python | mopidy_sevensegmentdisplay/actor.py | JuMalIO/mopidy-sevensegmentdisplay | ea3a99715ecf29f6a7d25b08429883c1918517e5 | [
"Apache-2.0"
] | null | null | null | mopidy_sevensegmentdisplay/actor.py | JuMalIO/mopidy-sevensegmentdisplay | ea3a99715ecf29f6a7d25b08429883c1918517e5 | [
"Apache-2.0"
] | 8 | 2018-11-05T12:42:15.000Z | 2019-05-25T13:46:05.000Z | mopidy_sevensegmentdisplay/actor.py | JuMalIO/mopidy-sevensegmentdisplay | ea3a99715ecf29f6a7d25b08429883c1918517e5 | [
"Apache-2.0"
] | null | null | null | from __future__ import unicode_literals
import pykka
import logging
from mopidy.core import CoreListener
from worker import Worker
logger = logging.getLogger('Frontend')
class Frontend(pykka.ThreadingActor, CoreListener):
worker = Worker()
def __init__(self, config, core):
self.config = config['sev... | 29.478261 | 69 | 0.677483 | 242 | 2,034 | 5.421488 | 0.247934 | 0.091463 | 0.082317 | 0.034299 | 0.214939 | 0.153963 | 0.153963 | 0.10061 | 0 | 0 | 0 | 0 | 0.210914 | 2,034 | 68 | 70 | 29.911765 | 0.817445 | 0.325959 | 0 | 0.121212 | 0 | 0 | 0.050222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.151515 | 0 | 0.515152 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
5244aedc000f48cb6e980077c724b8d1a7343111 | 3,208 | py | Python | src/secondaires/navigation/equipage/postes/__init__.py | stormi/tsunami | bdc853229834b52b2ee8ed54a3161a1a3133d926 | [
"BSD-3-Clause"
] | null | null | null | src/secondaires/navigation/equipage/postes/__init__.py | stormi/tsunami | bdc853229834b52b2ee8ed54a3161a1a3133d926 | [
"BSD-3-Clause"
] | null | null | null | src/secondaires/navigation/equipage/postes/__init__.py | stormi/tsunami | bdc853229834b52b2ee8ed54a3161a1a3133d926 | [
"BSD-3-Clause"
] | null | null | null | # -*-coding:Utf-8 -*
# Copyright (c) 2012 LE GOFF Vincent
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# lis... | 32.40404 | 79 | 0.721945 | 441 | 3,208 | 5.195011 | 0.489796 | 0.056744 | 0.014841 | 0.020079 | 0.09952 | 0.059363 | 0.059363 | 0.059363 | 0.059363 | 0.059363 | 0 | 0.002761 | 0.209788 | 3,208 | 98 | 80 | 32.734694 | 0.900986 | 0.685162 | 0 | 0 | 0 | 0 | 0.010929 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15625 | false | 0 | 0.40625 | 0.0625 | 0.78125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
524803d55a0242456d70a2be8c30f3b09b6f6de0 | 305 | py | Python | baseOptimizer.py | DanielMckenzie/HadRGD | 6071332c1af301a8f39b11c5d43bcf2b9faa069a | [
"MIT"
] | null | null | null | baseOptimizer.py | DanielMckenzie/HadRGD | 6071332c1af301a8f39b11c5d43bcf2b9faa069a | [
"MIT"
] | null | null | null | baseOptimizer.py | DanielMckenzie/HadRGD | 6071332c1af301a8f39b11c5d43bcf2b9faa069a | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Base class. Eventually all optimizers will be implemented as classes with this
as the base class.
"""
class BaseOptimizer(object):
'''
Placeholder for now. Will eventually convert all methods to
instances of this class.
'''
pass | 21.785714 | 79 | 0.668852 | 40 | 305 | 5.1 | 0.775 | 0.088235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008439 | 0.222951 | 305 | 14 | 80 | 21.785714 | 0.852321 | 0.747541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
524f24251f5fc25dfb566cabece8c5ff2293de03 | 1,295 | py | Python | buildbuild/properties/tests/test_available_language.py | buildbuild/buildbuild | ebf9e8abf7d5e018c6c5a8fc640d5cc0caaa43ac | [
"BSD-3-Clause"
] | 5 | 2015-07-22T08:13:45.000Z | 2018-12-10T05:21:41.000Z | buildbuild/properties/tests/test_available_language.py | buildbuild/buildbuild | ebf9e8abf7d5e018c6c5a8fc640d5cc0caaa43ac | [
"BSD-3-Clause"
] | 2 | 2020-06-05T18:39:48.000Z | 2021-06-10T20:36:06.000Z | buildbuild/properties/tests/test_available_language.py | buildbuild/buildbuild | ebf9e8abf7d5e018c6c5a8fc640d5cc0caaa43ac | [
"BSD-3-Clause"
] | 1 | 2015-07-22T08:13:49.000Z | 2015-07-22T08:13:49.000Z | from properties.models import AvailableLanguage
from django.test import TestCase
from django.core.exceptions import ObjectDoesNotExist
class TestLanguage(TestCase):
fixtures = ['properties_data.yaml']
def setUp(self):
self.non_exist_lang = "never_exist_lang"
self.lang_python = "Python"
... | 35 | 82 | 0.737452 | 158 | 1,295 | 5.727848 | 0.253165 | 0.070718 | 0.066298 | 0.171271 | 0.477348 | 0.346961 | 0.285083 | 0.262983 | 0.262983 | 0 | 0 | 0 | 0.179923 | 1,295 | 36 | 83 | 35.972222 | 0.852166 | 0 | 0 | 0 | 0 | 0 | 0.035576 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.259259 | false | 0 | 0.111111 | 0 | 0.444444 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5251c7472b02d5ae5c0f82e743c50363ef0b4a68 | 2,500 | py | Python | project/settings.py | AnttiKoistinen431a/parking-permits | be4dbb992d55b560d82534a7bd0d76520104100f | [
"MIT"
] | null | null | null | project/settings.py | AnttiKoistinen431a/parking-permits | be4dbb992d55b560d82534a7bd0d76520104100f | [
"MIT"
] | null | null | null | project/settings.py | AnttiKoistinen431a/parking-permits | be4dbb992d55b560d82534a7bd0d76520104100f | [
"MIT"
] | null | null | null | from os import getenv
from pathlib import Path
import dj_database_url
BASE_DIR = Path(__file__).resolve().parent.parent
SECRET_KEY = getenv("DJANGO_SECRET_KEY")
DEBUG = getenv("DEBUG") == "true"
ALLOWED_HOSTS = ["*"]
AUTH_USER_MODEL = "users_app.CustomUser"
INSTALLED_APPS = [
"django.contrib.admin",
"d... | 25.252525 | 95 | 0.6968 | 244 | 2,500 | 6.942623 | 0.471311 | 0.115112 | 0.070248 | 0.049587 | 0.09209 | 0.09209 | 0 | 0 | 0 | 0 | 0 | 0.00196 | 0.1836 | 2,500 | 98 | 96 | 25.510204 | 0.828025 | 0.0656 | 0 | 0 | 0 | 0 | 0.54865 | 0.448778 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 0.042857 | 0 | 0.042857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
525dde3f54a0bcd3849557d33fb1da717d002638 | 1,608 | py | Python | django_query_capture/utils.py | LeeHanYeong/django-query-capture | d95c2a838c38a65ea494193a896ec9d2df8ee881 | [
"MIT"
] | 62 | 2022-01-18T11:11:00.000Z | 2022-03-31T22:48:45.000Z | django_query_capture/utils.py | LeeHanYeong/django-query-capture | d95c2a838c38a65ea494193a896ec9d2df8ee881 | [
"MIT"
] | 46 | 2022-01-15T03:28:40.000Z | 2022-03-31T13:38:21.000Z | django_query_capture/utils.py | LeeHanYeong/django-query-capture | d95c2a838c38a65ea494193a896ec9d2df8ee881 | [
"MIT"
] | 4 | 2022-01-20T04:48:33.000Z | 2022-03-25T13:21:45.000Z | import io
import sys
from contextlib import ContextDecorator
from django.utils import termcolors
from django_query_capture.capture import CapturedQuery
from django_query_capture.settings import get_config
class CaptureStdOutToString(ContextDecorator):
def __enter__(self) -> sys.stdout:
self.old_stdout =... | 26.8 | 108 | 0.675995 | 195 | 1,608 | 5.384615 | 0.446154 | 0.042857 | 0.028571 | 0.041905 | 0.089524 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228856 | 1,608 | 59 | 109 | 27.254237 | 0.846774 | 0.304726 | 0 | 0 | 0 | 0 | 0.113924 | 0.090555 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.25 | 0 | 0.708333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
525fd8c03839fa973816e3288053cbdbb7868b83 | 590 | py | Python | diagrams/oci/edge.py | Shimpei-GANGAN/diagrams | 2bd4aa50a582bbf1fadb60a6f57443f0d62dfb3b | [
"MIT"
] | 1 | 2020-05-21T10:14:09.000Z | 2020-05-21T10:14:09.000Z | diagrams/oci/edge.py | Shimpei-GANGAN/diagrams | 2bd4aa50a582bbf1fadb60a6f57443f0d62dfb3b | [
"MIT"
] | 6 | 2021-03-01T21:21:44.000Z | 2022-02-27T09:33:31.000Z | diagrams/oci/edge.py | Shimpei-GANGAN/diagrams | 2bd4aa50a582bbf1fadb60a6f57443f0d62dfb3b | [
"MIT"
] | 1 | 2020-06-26T02:50:38.000Z | 2020-06-26T02:50:38.000Z | # This module is automatically generated by autogen.sh. DO NOT EDIT.
from . import _OCI
class _Edge(_OCI):
_type = "edge"
_icon_dir = "resources/oci/edge"
class CdnGrey(_Edge):
_icon = "cdn-grey.png"
class Cdn(_Edge):
_icon = "cdn.png"
class DnsGrey(_Edge):
_icon = "dns-grey.png"
class Dn... | 13.409091 | 68 | 0.655932 | 77 | 590 | 4.74026 | 0.402597 | 0.19726 | 0.131507 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213559 | 590 | 43 | 69 | 13.72093 | 0.786638 | 0.125424 | 0 | 0 | 1 | 0 | 0.230019 | 0.042885 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
5263369e8a669e0f141fcefd5af757de2b6ce20d | 45,411 | py | Python | sdk/python/pulumi_azure_native/servicefabricmesh/v20180701preview/_inputs.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/servicefabricmesh/v20180701preview/_inputs.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/servicefabricmesh/v20180701preview/_inputs.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | 38.289207 | 349 | 0.646914 | 5,221 | 45,411 | 5.481325 | 0.059184 | 0.122231 | 0.068488 | 0.042491 | 0.78524 | 0.666713 | 0.569432 | 0.485044 | 0.412048 | 0.369313 | 0 | 0.000696 | 0.240228 | 45,411 | 1,185 | 350 | 38.321519 | 0.828764 | 0.259475 | 0 | 0.440171 | 1 | 0 | 0.117826 | 0.035152 | 0 | 0 | 0 | 0 | 0 | 1 | 0.207977 | false | 0.011396 | 0.008547 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
52649a40d2e8c487c637841646d95601c3f76d6d | 2,848 | py | Python | src/scs_philips_hue/cmd/cmd_mqtt_subscriber.py | south-coast-science/scs_philips_hue | 80f4e7f0e7b3b7a11af2326b4c7e18871c5a7040 | [
"MIT"
] | null | null | null | src/scs_philips_hue/cmd/cmd_mqtt_subscriber.py | south-coast-science/scs_philips_hue | 80f4e7f0e7b3b7a11af2326b4c7e18871c5a7040 | [
"MIT"
] | null | null | null | src/scs_philips_hue/cmd/cmd_mqtt_subscriber.py | south-coast-science/scs_philips_hue | 80f4e7f0e7b3b7a11af2326b4c7e18871c5a7040 | [
"MIT"
] | null | null | null | """
Created on 23 Mar 2017
@author: Bruno Beloff (bruno.beloff@southcoastscience.com)
"""
import optparse
# --------------------------------------------------------------------------------------------------------------------
class CmdMQTTSubscriber(object):
"""unix command line handler"""
def __init__(sel... | 31.644444 | 118 | 0.486657 | 285 | 2,848 | 4.589474 | 0.308772 | 0.068807 | 0.069572 | 0.07263 | 0.125382 | 0.100917 | 0.100917 | 0.053517 | 0.053517 | 0 | 0 | 0.004673 | 0.248596 | 2,848 | 89 | 119 | 32 | 0.606542 | 0.211728 | 0 | 0.166667 | 0 | 0.02381 | 0.204628 | 0.017241 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.02381 | 0.142857 | 0.47619 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
527164036748663f63404382fc90abbd72dc4f19 | 768 | py | Python | medium/python/c0104_216_combination-sum-iii/00_leetcode_0104.py | drunkwater/leetcode | 8cc4a07763e71efbaedb523015f0c1eff2927f60 | [
"Ruby"
] | null | null | null | medium/python/c0104_216_combination-sum-iii/00_leetcode_0104.py | drunkwater/leetcode | 8cc4a07763e71efbaedb523015f0c1eff2927f60 | [
"Ruby"
] | null | null | null | medium/python/c0104_216_combination-sum-iii/00_leetcode_0104.py | drunkwater/leetcode | 8cc4a07763e71efbaedb523015f0c1eff2927f60 | [
"Ruby"
] | 3 | 2018-02-09T02:46:48.000Z | 2021-02-20T08:32:03.000Z | # DRUNKWATER TEMPLATE(add description and prototypes)
# Question Title and Description on leetcode.com
# Function Declaration and Function Prototypes on leetcode.com
#216. Combination Sum III
#Find all possible combinations of k numbers that add up to a number n, given that only numbers from 1 to 9 can be used and each... | 29.538462 | 175 | 0.667969 | 123 | 768 | 4.170732 | 0.609756 | 0.038986 | 0.050682 | 0.031189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039735 | 0.213542 | 768 | 26 | 176 | 29.538462 | 0.809603 | 0.936198 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5288a2615c9b78d8ae533beeda8503a2a807582b | 1,029 | py | Python | cascad/agents/aritifcial_system/chain.py | Will-Holden/cascadv2 | fd43d47d4be075d30e75053f9af3cd82c33b6623 | [
"Apache-2.0"
] | null | null | null | cascad/agents/aritifcial_system/chain.py | Will-Holden/cascadv2 | fd43d47d4be075d30e75053f9af3cd82c33b6623 | [
"Apache-2.0"
] | null | null | null | cascad/agents/aritifcial_system/chain.py | Will-Holden/cascadv2 | fd43d47d4be075d30e75053f9af3cd82c33b6623 | [
"Apache-2.0"
] | 1 | 2022-03-24T10:01:28.000Z | 2022-03-24T10:01:28.000Z | """Simulate the chain where all smartcontract stored
"""
import uuid
# from utils.myfuncs import Singleton
from cascad.utils.myfuncs import Singleton
from cascad.models.kb import Entity, Property
from cascad.utils.constant import *
from cascad.utils import get_id
has_contract = Property("has_contract", "has_contract")... | 28.583333 | 55 | 0.695821 | 127 | 1,029 | 5.433071 | 0.299213 | 0.057971 | 0.065217 | 0.078261 | 0.107246 | 0.107246 | 0 | 0 | 0 | 0 | 0 | 0.001218 | 0.202138 | 1,029 | 35 | 56 | 29.4 | 0.83922 | 0.083576 | 0 | 0 | 0 | 0 | 0.063034 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.12 | 0.64 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
5291bb9b357eccf50efd1ea2e6abc9259c76abb0 | 52 | py | Python | nith_results/__init__.py | sauravchandra1/Nith_results | 205f2f5c497bb051aaf9ce777cfe4ce572a1382e | [
"MIT"
] | 63 | 2018-04-19T05:08:58.000Z | 2021-12-25T05:13:30.000Z | nith_results/__init__.py | srbcheema1/Nith_results | ee63ff172cd3b46d03ed02b2c203fedcc9dcdbe6 | [
"MIT"
] | null | null | null | nith_results/__init__.py | srbcheema1/Nith_results | ee63ff172cd3b46d03ed02b2c203fedcc9dcdbe6 | [
"MIT"
] | 34 | 2018-06-06T10:02:28.000Z | 2020-09-18T09:58:06.000Z | __version__ = '0.0.1'
__mod_name__ = 'nith_results'
| 17.333333 | 29 | 0.730769 | 8 | 52 | 3.5 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065217 | 0.115385 | 52 | 2 | 30 | 26 | 0.543478 | 0 | 0 | 0 | 0 | 0 | 0.326923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
bfdc958a3a2f1ca51efda1ec8a24e9e8f9411465 | 720 | py | Python | tests/unit/service/test_business_super_man.py | thiagortz/justice-league | 386429862f31ee54a60ce0c6f8c855d48c1c1865 | [
"MIT"
] | 2 | 2018-05-07T03:39:38.000Z | 2018-05-24T22:27:52.000Z | tests/unit/service/test_business_super_man.py | thiagortz/justice-league | 386429862f31ee54a60ce0c6f8c855d48c1c1865 | [
"MIT"
] | null | null | null | tests/unit/service/test_business_super_man.py | thiagortz/justice-league | 386429862f31ee54a60ce0c6f8c855d48c1c1865 | [
"MIT"
] | null | null | null | from unittest import TestCase
from unittest.mock import patch
from app.service.business_service import SuperMan
class TestSuperMan(TestCase):
@classmethod
def setUpClass(cls):
pass
@classmethod
def tearDownClass(cls):
pass
def setUp(self):
pass
def tearDown(self):
... | 25.714286 | 116 | 0.701389 | 82 | 720 | 5.95122 | 0.512195 | 0.081967 | 0.07377 | 0.102459 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069808 | 0.204167 | 720 | 27 | 117 | 26.666667 | 0.78185 | 0 | 0 | 0.3 | 0 | 0 | 0.159722 | 0.102778 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.25 | false | 0.2 | 0.15 | 0 | 0.45 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
bfdee4ea86e4673e2cdc4d9b3ce5414546164bd9 | 1,953 | py | Python | renkler.py | 0xberkay/renkler | 43d1037a7d2e388ac51357103aedfe9efcc03a62 | [
"MIT"
] | 1 | 2021-01-18T07:36:49.000Z | 2021-01-18T07:36:49.000Z | renkler.py | 0xberkay/renkler | 43d1037a7d2e388ac51357103aedfe9efcc03a62 | [
"MIT"
] | null | null | null | renkler.py | 0xberkay/renkler | 43d1037a7d2e388ac51357103aedfe9efcc03a62 | [
"MIT"
] | null | null | null | #Berkay kucuk
#berkaykucuk.com.tr
#github.com/bksec
#####################################
###############RENKLER###############
#####################################
sifirla = '\033[0m'
beyaz = '\033[37m'
kirmizi= '\033[31m'
turuncu = '\u001b[38;5;208m'
yesil= '\033[32m'
sari= '\033[33m'
lacivert= '\033[34m'
pembe= ... | 31 | 717 | 0.638505 | 257 | 1,953 | 4.848249 | 0.552529 | 0.073034 | 0.083467 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.247078 | 0.079877 | 1,953 | 62 | 718 | 31.5 | 0.446299 | 0.058372 | 0 | 0 | 0 | 0 | 0.558517 | 0.054461 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0 | 0.022222 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
bfe58732ea681ee00d9c8c0462d590fee45e538f | 1,321 | py | Python | Week_2/02_pymongo_query_find.py | KartikKannapur/MongoDB_M101P | d1e7587e0b71a9b12b67ff83c498547f1952ffa3 | [
"MIT"
] | null | null | null | Week_2/02_pymongo_query_find.py | KartikKannapur/MongoDB_M101P | d1e7587e0b71a9b12b67ff83c498547f1952ffa3 | [
"MIT"
] | null | null | null | Week_2/02_pymongo_query_find.py | KartikKannapur/MongoDB_M101P | d1e7587e0b71a9b12b67ff83c498547f1952ffa3 | [
"MIT"
] | null | null | null | __author__ = "Kartik Kannapur"
# #Import Python Libraries
from pymongo import MongoClient
import json
# #Import Property Files
# import properties as prop
json_properties_file = open("properties.json")
json_properties = json.loads(json_properties_file.read())
# #Connect to the Mongo Database
client = MongoClient(jso... | 24.018182 | 99 | 0.723694 | 172 | 1,321 | 5.331395 | 0.459302 | 0.10687 | 0.039258 | 0.050164 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008795 | 0.139288 | 1,321 | 54 | 100 | 24.462963 | 0.797713 | 0.401211 | 0 | 0 | 0 | 0 | 0.269333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.105263 | null | null | 0.421053 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 2 |
bfe6fd886d388f05b827788f03375eee9d23ac8d | 165 | py | Python | kattis/python/quadrant_selection.py | PixPanz/VariousTomfoolery | a6e7a840dd42fdd1cfac4a01d659d5fb52e2278f | [
"Unlicense"
] | null | null | null | kattis/python/quadrant_selection.py | PixPanz/VariousTomfoolery | a6e7a840dd42fdd1cfac4a01d659d5fb52e2278f | [
"Unlicense"
] | null | null | null | kattis/python/quadrant_selection.py | PixPanz/VariousTomfoolery | a6e7a840dd42fdd1cfac4a01d659d5fb52e2278f | [
"Unlicense"
] | null | null | null | x = int(input())
y = int(input())
ans = 0
if x > 0:
if y > 0:
ans = 1
else: ans = 4
else:
if y > 0:
ans = 2
else: ans = 3
print(ans) | 13.75 | 17 | 0.424242 | 30 | 165 | 2.333333 | 0.433333 | 0.228571 | 0.114286 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0.418182 | 165 | 12 | 18 | 13.75 | 0.645833 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.083333 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
bfec8ca2b5fe73220d2748c33559462d19117262 | 8,850 | py | Python | csc_checks.py | mvollandt/csc | 73decff36bdf3aae5ff01970465d96ce3a4a3248 | [
"MIT"
] | 1 | 2018-05-08T13:53:32.000Z | 2018-05-08T13:53:32.000Z | csc_checks.py | mvollandt/csc | 73decff36bdf3aae5ff01970465d96ce3a4a3248 | [
"MIT"
] | 1 | 2018-05-08T12:09:10.000Z | 2018-05-08T12:09:10.000Z | csc_checks.py | mvollandt/csc | 73decff36bdf3aae5ff01970465d96ce3a4a3248 | [
"MIT"
] | 1 | 2018-05-08T12:06:11.000Z | 2018-05-08T12:06:11.000Z | # filename : csc_checks.py
# description : check definitions (security best practices and CVEs)
# create date : 2018-05-07 14:07:33.569768
csc1_1 = {'check_name': 'csc1_1',
'check_type': 'check_in_simple',
'match1': 'banner motd',
'match2': 'n/a',
'required': 'yes',
'result_ok': 'Test successful.... | 30.412371 | 84 | 0.591638 | 1,211 | 8,850 | 4.14616 | 0.137077 | 0.01434 | 0.072496 | 0.113922 | 0.754631 | 0.743278 | 0.677156 | 0.615814 | 0.504083 | 0.446724 | 0 | 0.063485 | 0.183051 | 8,850 | 290 | 85 | 30.517241 | 0.630982 | 0.015254 | 0 | 0.669231 | 0 | 0.030769 | 0.654157 | 0.022328 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.015385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
bff6ea4d53df3a5844f6190e0e5cfc6c72ee135f | 507 | py | Python | 0501-0600/0537-N-Gram (Map Reduce)/0537-N-Gram (Map Reduce).py | jiadaizhao/LintCode | a8aecc65c47a944e9debad1971a7bc6b8776e48b | [
"MIT"
] | 77 | 2017-12-30T13:33:37.000Z | 2022-01-16T23:47:08.000Z | 0501-0600/0537-N-Gram (Map Reduce)/0537-N-Gram (Map Reduce).py | jxhangithub/LintCode-1 | a8aecc65c47a944e9debad1971a7bc6b8776e48b | [
"MIT"
] | 1 | 2018-05-14T14:15:40.000Z | 2018-05-14T14:15:40.000Z | 0501-0600/0537-N-Gram (Map Reduce)/0537-N-Gram (Map Reduce).py | jxhangithub/LintCode-1 | a8aecc65c47a944e9debad1971a7bc6b8776e48b | [
"MIT"
] | 39 | 2017-12-07T14:36:25.000Z | 2022-03-10T23:05:37.000Z | class NGram:
# @param {int} n a integer
# @param {str} string a string
def mapper(self, _, n, string):
# Write your code here
# Please use 'yield key, value' here
for i in range(len(string) - n + 1):
yield string[i:i + n], 1
# @param key is from mapper
# @param... | 28.166667 | 55 | 0.571992 | 76 | 507 | 3.802632 | 0.486842 | 0.083045 | 0.089965 | 0.117647 | 0.297578 | 0.297578 | 0.297578 | 0.297578 | 0.297578 | 0.297578 | 0 | 0.0059 | 0.331361 | 507 | 17 | 56 | 29.823529 | 0.846608 | 0.475345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
bff984359d461969d79c2e3505307dd99df1ef21 | 488 | py | Python | tests/test_articles.py | Mzazi25/newsApp | 421b09cb913a4096232a0cfb39a0f903ab3a7bbc | [
"Unlicense"
] | null | null | null | tests/test_articles.py | Mzazi25/newsApp | 421b09cb913a4096232a0cfb39a0f903ab3a7bbc | [
"Unlicense"
] | null | null | null | tests/test_articles.py | Mzazi25/newsApp | 421b09cb913a4096232a0cfb39a0f903ab3a7bbc | [
"Unlicense"
] | null | null | null | import unittest
from app.models import Articles
class ArticleSourceTest(unittest.TestCase):
'''
Test Class to test the behavior of the Article Sources
'''
def setUp(self):
'''
setup method that runs before every test
'''
self.new_article = Articles("Mpasho","Mpasho Gram... | 32.533333 | 132 | 0.665984 | 62 | 488 | 5.193548 | 0.645161 | 0.043478 | 0.086957 | 0.136646 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005222 | 0.215164 | 488 | 14 | 133 | 34.857143 | 0.835509 | 0.194672 | 0 | 0 | 0 | 0 | 0.20904 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.285714 | false | 0 | 0.285714 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
8707b5f74692cb8140f47e93c6bb5a58f6037e7c | 271 | py | Python | test/test_add.py | mcraig2/uplink | 9a924c46b80c5fd3f4eb0c14fbf9ba188ce6bc38 | [
"MIT"
] | null | null | null | test/test_add.py | mcraig2/uplink | 9a924c46b80c5fd3f4eb0c14fbf9ba188ce6bc38 | [
"MIT"
] | null | null | null | test/test_add.py | mcraig2/uplink | 9a924c46b80c5fd3f4eb0c14fbf9ba188ce6bc38 | [
"MIT"
] | null | null | null | import os
import sys
import unittest
sys.path.insert(0, os.path.abspath('..'))
from uplink.add_entry import add_entry
class TestAddEntry(unittest.TestCase):
def test_one_one(self):
self.assertEqual(1 + 1, 2)
if __name__ == '__main__':
unittest.main()
| 18.066667 | 41 | 0.708487 | 39 | 271 | 4.615385 | 0.641026 | 0.088889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017699 | 0.166052 | 271 | 14 | 42 | 19.357143 | 0.778761 | 0 | 0 | 0 | 0 | 0 | 0.0369 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.1 | false | 0 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
8711d2b659f4d6fa411c32d75d6b5cbe9c4ae056 | 336 | py | Python | L1TriggerConfig/L1TConfigProducers/python/L1TMuonEndcapParamsOnlineProxy_cfi.py | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | L1TriggerConfig/L1TConfigProducers/python/L1TMuonEndcapParamsOnlineProxy_cfi.py | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | L1TriggerConfig/L1TConfigProducers/python/L1TMuonEndcapParamsOnlineProxy_cfi.py | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | import FWCore.ParameterSet.Config as cms
#from L1Trigger.L1TMuonEndcap.fakeEmtfParams_cff import *
L1TMuonEndcapParamsOnlineProxy = cms.ESProducer("L1TMuonEndcapParamsOnlineProxy",
PtAssignVersion = cms.untracked.uint32(1),
firmwareVersion = cms.untracked.uint32(47423),
changeDate = cms.untracked.uin... | 33.6 | 81 | 0.791667 | 31 | 336 | 8.548387 | 0.677419 | 0.135849 | 0.203774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081081 | 0.119048 | 336 | 9 | 82 | 37.333333 | 0.814189 | 0.166667 | 0 | 0 | 0 | 0 | 0.107527 | 0.107527 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
872c2c8c00997306d1de6921b2e377461f5257bf | 2,557 | py | Python | pycti/__init__.py | Cix-16/client-python | 91fd5a874f9bf3de9d6ae6dc12fecd4791fb3caf | [
"Apache-2.0"
] | null | null | null | pycti/__init__.py | Cix-16/client-python | 91fd5a874f9bf3de9d6ae6dc12fecd4791fb3caf | [
"Apache-2.0"
] | null | null | null | pycti/__init__.py | Cix-16/client-python | 91fd5a874f9bf3de9d6ae6dc12fecd4791fb3caf | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from .api.opencti_api_client import OpenCTIApiClient
from .api.opencti_api_connector import OpenCTIApiConnector
from .api.opencti_api_job import OpenCTIApiJob
from .connector.opencti_connector import ConnectorType
from .connector.opencti_connector import OpenCTIConnector
from .connector.opencti... | 32.782051 | 77 | 0.800548 | 260 | 2,557 | 7.642308 | 0.284615 | 0.144942 | 0.229492 | 0.069451 | 0.068445 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001793 | 0.127493 | 2,557 | 77 | 78 | 33.207792 | 0.888839 | 0.008213 | 0 | 0 | 0 | 0 | 0.166535 | 0.017364 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.458333 | 0 | 0.458333 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
873173f1d8f594ba24d0f0c4b70075cb1b1b6b72 | 68 | py | Python | settingfaz.py | INIDboyzz/Juliana | b768e7d4aa13eb1a97e8d8df7e331b99b8b082fb | [
"MIT"
] | 1 | 2021-07-15T05:48:57.000Z | 2021-07-15T05:48:57.000Z | settingfaz.py | INIDboyzz/Juliana | b768e7d4aa13eb1a97e8d8df7e331b99b8b082fb | [
"MIT"
] | null | null | null | settingfaz.py | INIDboyzz/Juliana | b768e7d4aa13eb1a97e8d8df7e331b99b8b082fb | [
"MIT"
] | null | null | null | x = input()
if x == ".helpf":
print(".help : to show help menu")
| 11.333333 | 35 | 0.544118 | 11 | 68 | 3.363636 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 68 | 5 | 36 | 13.6 | 0.711538 | 0 | 0 | 0 | 0 | 0 | 0.469697 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
873abe7c93cce7a885dd182d689626fc060bfa4d | 444 | py | Python | tap/tests/test_main.py | cans/tappy-pkg | d147b67fc0219e08a1d64a2cd3cd0c844fbc5ce5 | [
"BSD-2-Clause"
] | null | null | null | tap/tests/test_main.py | cans/tappy-pkg | d147b67fc0219e08a1d64a2cd3cd0c844fbc5ce5 | [
"BSD-2-Clause"
] | null | null | null | tap/tests/test_main.py | cans/tappy-pkg | d147b67fc0219e08a1d64a2cd3cd0c844fbc5ce5 | [
"BSD-2-Clause"
] | null | null | null | # Copyright (c) 2015, Matt Layman
import os
from tap.main import main
from tap.tests import TestCase
class TestMain(TestCase):
"""Tests for tap.main.main"""
def test_exits_with_error(self):
"""The main function returns an error status if there were failures."""
argv = ['/bin/fake', 'fake.ta... | 22.2 | 79 | 0.646396 | 61 | 444 | 4.655738 | 0.639344 | 0.049296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014663 | 0.231982 | 444 | 19 | 80 | 23.368421 | 0.818182 | 0.274775 | 0 | 0 | 0 | 0 | 0.057878 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
873dfb5d76397929d4682b8cac9ef71d7fcc5529 | 809 | py | Python | isi_mip/core/migrations/0006_auto_20170306_1515.py | ISI-MIP/isimip | c2a78c727337e38f3695031e00afd607da7d6dcb | [
"MIT"
] | 4 | 2017-07-05T08:06:18.000Z | 2021-03-01T17:23:18.000Z | isi_mip/core/migrations/0006_auto_20170306_1515.py | ISI-MIP/isimip | c2a78c727337e38f3695031e00afd607da7d6dcb | [
"MIT"
] | 4 | 2020-01-31T09:02:57.000Z | 2021-04-20T14:04:35.000Z | isi_mip/core/migrations/0006_auto_20170306_1515.py | ISI-MIP/isimip | c2a78c727337e38f3695031e00afd607da7d6dcb | [
"MIT"
] | 4 | 2017-10-12T01:48:55.000Z | 2020-04-29T13:50:03.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-03-06 14:15
from __future__ import unicode_literals
from django.db import migrations
import wagtail.core.blocks
import wagtail.core.fields
class Migration(migrations.Migration):
dependencies = [
('core', '0005_headerlink_menu_items'),
]
... | 35.173913 | 354 | 0.673671 | 93 | 809 | 5.731183 | 0.516129 | 0.185741 | 0.223265 | 0.118199 | 0.296435 | 0.232645 | 0.232645 | 0.232645 | 0.232645 | 0.232645 | 0 | 0.031111 | 0.165637 | 809 | 22 | 355 | 36.772727 | 0.758519 | 0.084054 | 0 | 0 | 1 | 0 | 0.113821 | 0.03523 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.266667 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8747e79442d124c360f241417596b1286b29f705 | 1,150 | py | Python | Python/Fundamentals/Extras/Stores_And_Products/store_test.py | handtjaxon1/Coding-Dojo-Development | 9cca0ae84749984a164541c476dc445b29b498b9 | [
"MIT"
] | null | null | null | Python/Fundamentals/Extras/Stores_And_Products/store_test.py | handtjaxon1/Coding-Dojo-Development | 9cca0ae84749984a164541c476dc445b29b498b9 | [
"MIT"
] | null | null | null | Python/Fundamentals/Extras/Stores_And_Products/store_test.py | handtjaxon1/Coding-Dojo-Development | 9cca0ae84749984a164541c476dc445b29b498b9 | [
"MIT"
] | null | null | null | from store import *
from product import *
# Create a store and some products
convenience_store = Store("Kwik E-Mart")
donut = Product("Donut", 1.99, ProductCategory.Food)
beer = Product("Beer", 6.99, ProductCategory.Beverages)
pacifier = Product("Pacifier", 4.99, ProductCategory.Baby)
broom = Product("Broom", 14.99, P... | 41.071429 | 106 | 0.823478 | 155 | 1,150 | 5.935484 | 0.387097 | 0.26087 | 0.130435 | 0.141304 | 0.153261 | 0.153261 | 0 | 0 | 0 | 0 | 0 | 0.024738 | 0.086087 | 1,150 | 28 | 107 | 41.071429 | 0.850618 | 0.197391 | 0 | 0.190476 | 0 | 0 | 0.042437 | 0 | 0 | 0 | 0 | 0.035714 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.095238 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
874bad77ca8430bbba0a77d082c85fcf80a72693 | 640 | py | Python | examples/VECs/microbench/test_switch.py | UTexas-PSAAP/Parla.py | 3d92a156be41983e32576940ef6baffd78d4eb84 | [
"BSD-3-Clause"
] | 11 | 2020-06-22T16:20:15.000Z | 2022-03-20T22:54:40.000Z | examples/VECs/microbench/test_switch.py | UTexas-PSAAP/Parla.py | 3d92a156be41983e32576940ef6baffd78d4eb84 | [
"BSD-3-Clause"
] | 86 | 2019-10-24T07:43:05.000Z | 2022-03-28T05:20:17.000Z | examples/VECs/microbench/test_switch.py | UTexas-PSAAP/Parla.py | 3d92a156be41983e32576940ef6baffd78d4eb84 | [
"BSD-3-Clause"
] | 7 | 2019-10-24T05:46:27.000Z | 2022-02-09T19:47:58.000Z | import time
t = time.perf_counter()
from parla.multiload import multiload_contexts
begin_multiload = time.perf_counter() - t
m = 12
import_times = []
for i in range(m):
with multiload_contexts[i]:
t = time.perf_counter()
import numpy as np
t = time.perf_counter() - t
import_times.a... | 20 | 46 | 0.64375 | 96 | 640 | 4.125 | 0.333333 | 0.121212 | 0.227273 | 0.20202 | 0.424242 | 0.277778 | 0.191919 | 0.191919 | 0 | 0 | 0 | 0.039014 | 0.239063 | 640 | 31 | 47 | 20.645161 | 0.774127 | 0 | 0 | 0.391304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.217391 | 0 | 0.217391 | 0.043478 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
874f674384fcf6ba9767add434d83bdb927afb44 | 14,796 | py | Python | django_sqlalchemy/models/query.py | brosner/django-sqlalchemy | 3f427d726acac2469ba2b39c59210bde574591e5 | [
"BSD-3-Clause"
] | 4 | 2015-11-14T13:54:56.000Z | 2020-06-05T15:04:48.000Z | django_sqlalchemy/models/query.py | brosner/django-sqlalchemy | 3f427d726acac2469ba2b39c59210bde574591e5 | [
"BSD-3-Clause"
] | null | null | null | django_sqlalchemy/models/query.py | brosner/django-sqlalchemy | 3f427d726acac2469ba2b39c59210bde574591e5 | [
"BSD-3-Clause"
] | 3 | 2015-11-25T10:56:46.000Z | 2021-07-13T19:19:42.000Z |
from django.db.models.query import QuerySet
from django.db.models.sql.constants import ORDER_PATTERN
from sqlalchemy.orm import attributes
from sqlalchemy.orm.query import _ColumnEntity
from sqlalchemy.sql import operators
from django_sqlalchemy.models import query_utils as utils
from django.db.models.query_utils im... | 36.80597 | 131 | 0.595499 | 1,778 | 14,796 | 4.821147 | 0.206412 | 0.017849 | 0.012599 | 0.015516 | 0.175922 | 0.121092 | 0.108843 | 0.099627 | 0.062762 | 0.040131 | 0 | 0.001247 | 0.295688 | 14,796 | 401 | 132 | 36.897756 | 0.821322 | 0.048121 | 0 | 0.217391 | 0 | 0 | 0.085608 | 0 | 0 | 0 | 0 | 0.012469 | 0.028986 | 0 | null | null | 0.009662 | 0.057971 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
87679f662220c341b695430720d900d2d1da7081 | 419 | py | Python | vispy/util/tests/test_key.py | MatthieuDartiailh/vispy | 09d429be361a148b0614a192f56d4070c624072c | [
"BSD-3-Clause"
] | null | null | null | vispy/util/tests/test_key.py | MatthieuDartiailh/vispy | 09d429be361a148b0614a192f56d4070c624072c | [
"BSD-3-Clause"
] | null | null | null | vispy/util/tests/test_key.py | MatthieuDartiailh/vispy | 09d429be361a148b0614a192f56d4070c624072c | [
"BSD-3-Clause"
] | null | null | null | from nose.tools import assert_raises, assert_true, assert_equal
from vispy.util.keys import Key, ENTER
def test_key():
"""Test basic key functionality"""
def bad():
return (ENTER == dict())
assert_raises(ValueError, bad)
assert_true(not (ENTER == None)) # noqa
assert_equal('Return', ENTE... | 26.1875 | 63 | 0.663484 | 56 | 419 | 4.75 | 0.553571 | 0.12406 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009063 | 0.210024 | 419 | 15 | 64 | 27.933333 | 0.794562 | 0.128878 | 0 | 0 | 0 | 0 | 0.019608 | 0 | 0 | 0 | 0 | 0 | 0.454545 | 1 | 0.181818 | true | 0 | 0.181818 | 0.090909 | 0.454545 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5e4a438e665aca10608ded0466aadfa972f85dfa | 1,144 | py | Python | 03 Queue/queue2Stacks.py | harshrajm/Python-Algo-DS | 02437fa923b2b6264b29bd7ba84ccbb7feb9c8f0 | [
"MIT"
] | null | null | null | 03 Queue/queue2Stacks.py | harshrajm/Python-Algo-DS | 02437fa923b2b6264b29bd7ba84ccbb7feb9c8f0 | [
"MIT"
] | null | null | null | 03 Queue/queue2Stacks.py | harshrajm/Python-Algo-DS | 02437fa923b2b6264b29bd7ba84ccbb7feb9c8f0 | [
"MIT"
] | null | null | null | class Queue2Stacks:
def __init__(self):
self.stack1 = []
self.stack2 = []
def size(self):
return len(self.stack1)
def isEmpty(self):
return self.stack1 == []
def enqueue(self,item):
self.stack1.append(item)
def d... | 21.584906 | 58 | 0.511364 | 140 | 1,144 | 4.15 | 0.242857 | 0.134251 | 0.268503 | 0.27883 | 0.371773 | 0.296041 | 0.296041 | 0.296041 | 0.223752 | 0.223752 | 0 | 0.021684 | 0.314685 | 1,144 | 53 | 59 | 21.584906 | 0.719388 | 0.008741 | 0 | 0.488889 | 0 | 0 | 0.013863 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0.044444 | 0.244444 | 0.288889 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5e4ab3bec5a410d98adeecd8e28a743a8990e61a | 1,260 | py | Python | Iterator.py | AutogenSh/design_patterns | ca8a89507c8eab29f40e50c63f7de77008d9948d | [
"MIT"
] | null | null | null | Iterator.py | AutogenSh/design_patterns | ca8a89507c8eab29f40e50c63f7de77008d9948d | [
"MIT"
] | null | null | null | Iterator.py | AutogenSh/design_patterns | ca8a89507c8eab29f40e50c63f7de77008d9948d | [
"MIT"
] | null | null | null | from abc import abstractmethod
'''
迭代器模式(Iterator Pattern)是 Java 和 .Net 编程环境中非常常用的设计模式。
这种模式用于顺序访问集合对象的元素,不需要知道集合对象的底层表示。
意图:提供一种方法顺序访问一个聚合对象中各个元素, 而又无须暴露该对象的内部表示。
主要解决:不同的方式来遍历整个整合对象。
何时使用:遍历一个聚合对象。
如何解决:把在元素之间游走的责任交给迭代器,而不是聚合对象。
关键代码:定义接口:hasNext, next。
'''
class Iterator:
@abstractmethod
def hasNext(... | 18.529412 | 56 | 0.613492 | 133 | 1,260 | 5.661654 | 0.473684 | 0.042497 | 0.037185 | 0.047809 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002167 | 0.26746 | 1,260 | 67 | 57 | 18.80597 | 0.813651 | 0 | 0 | 0.333333 | 0 | 0 | 0.028265 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.083333 | 0.027778 | 0.027778 | 0.472222 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
5e5c5fa4285f44fec87f8624929185f8f935914b | 109 | py | Python | code/day06.py | nbhh1234/test1 | 9ebb70761a0728e94fcd6a3c9b6f728ec90eb75c | [
"Apache-2.0"
] | null | null | null | code/day06.py | nbhh1234/test1 | 9ebb70761a0728e94fcd6a3c9b6f728ec90eb75c | [
"Apache-2.0"
] | null | null | null | code/day06.py | nbhh1234/test1 | 9ebb70761a0728e94fcd6a3c9b6f728ec90eb75c | [
"Apache-2.0"
] | null | null | null | v0,v1,t=eval(raw_input('Enter v0,v1,and t:'))
a=(v1-v0)/t
print('The average acceleration is {}'.format(a))
| 21.8 | 49 | 0.669725 | 22 | 109 | 3.272727 | 0.681818 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060606 | 0.091743 | 109 | 4 | 50 | 27.25 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
5e5e694ed225e751fa3497cd53859b3f8ef8c11f | 22,771 | py | Python | xsd-fu/python/generateDS/Demos/Xmlbehavior/po.py | jburel/ome-model | 4817c8dfcbe3bfbeafe899c489657769d7ebca60 | [
"BSD-2-Clause"
] | 11 | 2015-07-13T13:36:44.000Z | 2021-11-15T08:07:25.000Z | xsd-fu/python/generateDS/Demos/Xmlbehavior/po.py | jburel/ome-model | 4817c8dfcbe3bfbeafe899c489657769d7ebca60 | [
"BSD-2-Clause"
] | 13 | 2015-03-21T14:08:31.000Z | 2021-05-18T18:47:58.000Z | xsd-fu/python/generateDS/Demos/Xmlbehavior/po.py | jburel/ome-model | 4817c8dfcbe3bfbeafe899c489657769d7ebca60 | [
"BSD-2-Clause"
] | 30 | 2015-04-29T20:47:22.000Z | 2021-08-31T20:45:24.000Z | #!/usr/bin/env python
#
# Generated Fri Jul 2 13:32:06 2004 by generateDS.py.
#
import sys
import getopt
from xml.dom import minidom
from xml.dom import Node
#
# If you have installed IPython you can uncomment and use the following.
# IPython is available from http://ipython.scipy.org/.
#
## from IPython.Shell imp... | 35.691223 | 100 | 0.549207 | 2,456 | 22,771 | 4.989414 | 0.098127 | 0.045536 | 0.062837 | 0.080464 | 0.631794 | 0.573609 | 0.533295 | 0.50661 | 0.480415 | 0.395136 | 0 | 0.010208 | 0.328883 | 22,771 | 637 | 101 | 35.747253 | 0.79165 | 0.041588 | 0 | 0.593863 | 1 | 0 | 0.079794 | 0.010101 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.01083 | null | null | 0.00361 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5e5f8ef18bb0b7e7bca55174621eca6261105966 | 673 | py | Python | server/models/User.py | surbina/devocion-ar-server | 50ea6aeb1636f4ccf068b9dbf0a3a6a4bf8b5719 | [
"MIT"
] | null | null | null | server/models/User.py | surbina/devocion-ar-server | 50ea6aeb1636f4ccf068b9dbf0a3a6a4bf8b5719 | [
"MIT"
] | null | null | null | server/models/User.py | surbina/devocion-ar-server | 50ea6aeb1636f4ccf068b9dbf0a3a6a4bf8b5719 | [
"MIT"
] | null | null | null | """This module contains the class definition for Users."""
from sqlalchemy import Column, Integer, String
from sqlalchemy.orm import relationship
from server.models.Base import BaseModel
from server.models.Devotional import DevotionalModel
from server.models.Comment import CommentModel
class UserModel(BaseModel):
... | 35.421053 | 65 | 0.757801 | 81 | 673 | 6.209877 | 0.54321 | 0.059642 | 0.095427 | 0.071571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010471 | 0.148588 | 673 | 18 | 66 | 37.388889 | 0.867365 | 0.145617 | 0 | 0 | 0 | 0 | 0.030142 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.384615 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
5e7bd01e5e890aa3765c7b7dac5722e3101762a6 | 10,243 | py | Python | pyprometheus/values.py | Lispython/pyprometheus | d364b0dd01597b001102b5c8157f289f0eb18f5a | [
"BSD-3-Clause"
] | 13 | 2017-02-26T13:36:27.000Z | 2019-11-14T06:31:40.000Z | pyprometheus/values.py | Lispython/pyprometheus | d364b0dd01597b001102b5c8157f289f0eb18f5a | [
"BSD-3-Clause"
] | 8 | 2017-02-27T16:28:08.000Z | 2019-01-24T16:50:07.000Z | pyprometheus/values.py | Lispython/pyprometheus | d364b0dd01597b001102b5c8157f289f0eb18f5a | [
"BSD-3-Clause"
] | 3 | 2018-10-24T11:18:47.000Z | 2019-11-14T06:31:43.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
pyprometheus.values
~~~~~~~~~~~~~~~~~~~
Prometheus instrumentation library for Python applications
:copyright: (c) 2017 by Alexandr Lispython.
:license: , see LICENSE for more details.
:github: http://github.com/Lispython/pyprometheus
"""
import time
from pypromethe... | 31.324159 | 147 | 0.62306 | 1,170 | 10,243 | 5.191453 | 0.145299 | 0.074251 | 0.041982 | 0.038031 | 0.399901 | 0.370267 | 0.332071 | 0.263582 | 0.249095 | 0.249095 | 0 | 0.005348 | 0.251489 | 10,243 | 326 | 148 | 31.420245 | 0.786618 | 0.097042 | 0 | 0.367442 | 0 | 0.018605 | 0.064645 | 0.005956 | 0 | 0 | 0 | 0.003067 | 0 | 1 | 0.195349 | false | 0 | 0.018605 | 0.116279 | 0.516279 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
5e8e77da62017f691d8e18a6cf80c1b1ee15f895 | 1,207 | py | Python | sample_data/pytest_examples/calculator_example.py | AyTanase/ILAS- | 436dfc416a9ece37f2e9dde8036232e9ae48f89b | [
"MIT"
] | null | null | null | sample_data/pytest_examples/calculator_example.py | AyTanase/ILAS- | 436dfc416a9ece37f2e9dde8036232e9ae48f89b | [
"MIT"
] | null | null | null | sample_data/pytest_examples/calculator_example.py | AyTanase/ILAS- | 436dfc416a9ece37f2e9dde8036232e9ae48f89b | [
"MIT"
] | null | null | null | def test_calculator_add_returns_correct_result():
result = calc_add(2,2)
assert result == 4
# def calc_add(x,y):
# pass
# return x+y
# if isinstance(x, number_types) and isinstance(y, number_types):
# return x + y
# else:
# raise ValueError("Non-numeric inpu... | 25.680851 | 74 | 0.625518 | 145 | 1,207 | 4.868966 | 0.351724 | 0.05949 | 0.120397 | 0.135977 | 0.449009 | 0.449009 | 0.449009 | 0.286119 | 0.286119 | 0.15864 | 0 | 0.005701 | 0.273405 | 1,207 | 47 | 75 | 25.680851 | 0.799316 | 0.835128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5e973dd5c1290cf5e30f3533a7d2f82c46ec696a | 1,362 | py | Python | django_mfa/middleware.py | juwaini/django-mfa | 910b0f544ae5bebc02434cc6b176f74b5040f3b7 | [
"MIT"
] | null | null | null | django_mfa/middleware.py | juwaini/django-mfa | 910b0f544ae5bebc02434cc6b176f74b5040f3b7 | [
"MIT"
] | null | null | null | django_mfa/middleware.py | juwaini/django-mfa | 910b0f544ae5bebc02434cc6b176f74b5040f3b7 | [
"MIT"
] | null | null | null | from django.urls import reverse
from django.shortcuts import resolve_url
from django.contrib.auth import REDIRECT_FIELD_NAME as redirect_field_name
from .models import is_mfa_enabled, is_u2f_enabled
from .views import verify_rmb_cookie
try:
from django.utils.deprecation import MiddlewareMixin
except ImportError: ... | 46.965517 | 147 | 0.698238 | 169 | 1,362 | 5.349112 | 0.402367 | 0.05531 | 0.070796 | 0.097345 | 0.183628 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006692 | 0.232012 | 1,362 | 28 | 148 | 48.642857 | 0.857553 | 0.049192 | 0 | 0 | 0 | 0 | 0.098297 | 0.081269 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.347826 | 0 | 0.521739 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
5e9feecc93d61ec4a4a4d92a5a7b029eec002fa1 | 275 | py | Python | examples/autopipegen2/plugins/cpstuff.py | microns-ariadne/ariadne-pipeline-test-harness | 73e749c48d1ff103fee2044833778e33c70be73b | [
"MIT"
] | 2 | 2016-03-15T15:07:06.000Z | 2016-05-10T23:01:05.000Z | examples/autopipegen2/plugins/cpstuff.py | microns-ariadne/ariadne-pipeline-test-harness | 73e749c48d1ff103fee2044833778e33c70be73b | [
"MIT"
] | null | null | null | examples/autopipegen2/plugins/cpstuff.py | microns-ariadne/ariadne-pipeline-test-harness | 73e749c48d1ff103fee2044833778e33c70be73b | [
"MIT"
] | null | null | null | # generated by shell2pipe on 2016-03-17
import os
import plugin
plugin_class='cpstuff'
class cpstuff(plugin.AriadneOp):
name='cpstuff'
def run(self, args):
os.system('cp stuff/contents stuff/otherstuff')
os.system('cp stuff/contents morestuff/')
| 18.333333 | 55 | 0.698182 | 37 | 275 | 5.162162 | 0.648649 | 0.125654 | 0.104712 | 0.157068 | 0.240838 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040359 | 0.189091 | 275 | 14 | 56 | 19.642857 | 0.816144 | 0.134545 | 0 | 0 | 1 | 0 | 0.322034 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
5eba27fc313497054e50e1642291e6f0f73f741d | 499 | py | Python | examples/test_oscpart.py | Tarheel-Formal-Methods/kaa-optimize | 35fe7b580df3b5efe7de9314b821c257f68d74bf | [
"MIT"
] | null | null | null | examples/test_oscpart.py | Tarheel-Formal-Methods/kaa-optimize | 35fe7b580df3b5efe7de9314b821c257f68d74bf | [
"MIT"
] | 2 | 2020-12-11T17:34:46.000Z | 2020-12-11T21:43:13.000Z | examples/test_oscpart.py | Tarheel-Formal-Methods/kaa-optimize | 35fe7b580df3b5efe7de9314b821c257f68d74bf | [
"MIT"
] | 1 | 2020-12-11T17:31:16.000Z | 2020-12-11T17:31:16.000Z | from kaa.reach import ReachSet
from kaa.plotutil import Plot
from models.oscpart import OscPart
from kaa.timer import Timer
def test_OscPart():
model = OscPart()
#trajs = generate_traj(model, 10, 200)
mod_reach = ReachSet(model)
mod_flow = mod_reach.computeReachSet(20)
sir_plot = Plot()
#tra... | 22.681818 | 58 | 0.703407 | 73 | 499 | 4.657534 | 0.465753 | 0.061765 | 0.1 | 0.129412 | 0.158824 | 0.158824 | 0 | 0 | 0 | 0 | 0 | 0.037783 | 0.204409 | 499 | 21 | 59 | 23.761905 | 0.81864 | 0.148297 | 0 | 0 | 1 | 0 | 0.122931 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
5ed436f1d2fc25e544a63923e4ecd5bff1809e3d | 178 | py | Python | test.py | spokenlore/PythonCalendar | 77db4f3e41aec6ffe1fec145f9bcd3f4bca31057 | [
"MIT"
] | null | null | null | test.py | spokenlore/PythonCalendar | 77db4f3e41aec6ffe1fec145f9bcd3f4bca31057 | [
"MIT"
] | null | null | null | test.py | spokenlore/PythonCalendar | 77db4f3e41aec6ffe1fec145f9bcd3f4bca31057 | [
"MIT"
] | null | null | null | import time
def main():
start = time.time()
minimumElapsed = .5
while True:
if time.time() - start > minimumElapsed:
print "Loading..."
minimumElapsed += .5
main()
| 13.692308 | 42 | 0.640449 | 21 | 178 | 5.428571 | 0.571429 | 0.140351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014286 | 0.213483 | 178 | 12 | 43 | 14.833333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.05618 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.111111 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0d5c8bad0c0f949777da4e285dbd4289de4df916 | 94 | py | Python | tasks/task_viper/temp.py | chenyanghungry/person-reid-lib | 783e66c9bfedf582e2cf935b9f5be960b543ac3c | [
"MIT"
] | 81 | 2018-11-25T04:50:24.000Z | 2021-12-20T13:27:58.000Z | tasks/task_viper/temp.py | chenyanghungry/person-reid-lib | 783e66c9bfedf582e2cf935b9f5be960b543ac3c | [
"MIT"
] | 14 | 2018-12-26T09:37:23.000Z | 2020-11-02T10:56:32.000Z | tasks/task_viper/temp.py | chenyanghungry/person-reid-lib | 783e66c9bfedf582e2cf935b9f5be960b543ac3c | [
"MIT"
] | 18 | 2018-12-29T06:02:05.000Z | 2022-02-05T06:00:47.000Z | import numpy as np
a = [53, 13, 84, 32, 1]
b = np.random.choice(len(a), 3, True)
print(a[b]) | 15.666667 | 37 | 0.595745 | 21 | 94 | 2.666667 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131579 | 0.191489 | 94 | 6 | 38 | 15.666667 | 0.605263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0d707b8684b0472a7f0f4737c0ef02c87e94c0ce | 571 | py | Python | src/printBoard.py | Harry-Hopkinson/dots-and-boxes | 4b4edad98ca6fdb22419f94d5a53a948e687d8da | [
"MIT"
] | 1 | 2022-02-01T13:03:39.000Z | 2022-02-01T13:03:39.000Z | src/printBoard.py | Harry-Hopkinson/dots-and-boxes | 4b4edad98ca6fdb22419f94d5a53a948e687d8da | [
"MIT"
] | null | null | null | src/printBoard.py | Harry-Hopkinson/dots-and-boxes | 4b4edad98ca6fdb22419f94d5a53a948e687d8da | [
"MIT"
] | null | null | null | from checkDraw import *
from checkWin import *
from constants import *
from endGame import *
from play import *
from playAgain import *
from playerOneMove import *
from playerTwoMove import *
from board import *
def printBoard(board):
for i in range(len(board)):
for j in range(len(board[i])):... | 24.826087 | 39 | 0.521891 | 69 | 571 | 4.318841 | 0.405797 | 0.268456 | 0.07047 | 0.100671 | 0.134228 | 0.134228 | 0.134228 | 0 | 0 | 0 | 0 | 0.008043 | 0.34676 | 571 | 22 | 40 | 25.954545 | 0.790885 | 0 | 0 | 0 | 0 | 0 | 0.005464 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.45 | 0 | 0.5 | 0.3 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
0d74b4ba6a0f2b3e6686afdb8d25a5cfb67fbe31 | 82 | py | Python | Python/Loops/loops.py | boneskewer69/ifis | 926323f60bf8eac55ccc67b6f6e536fe19c6b4c2 | [
"MIT"
] | null | null | null | Python/Loops/loops.py | boneskewer69/ifis | 926323f60bf8eac55ccc67b6f6e536fe19c6b4c2 | [
"MIT"
] | null | null | null | Python/Loops/loops.py | boneskewer69/ifis | 926323f60bf8eac55ccc67b6f6e536fe19c6b4c2 | [
"MIT"
] | null | null | null | x = 1
while True:
x = input("Number:\n> ")
if int(x) == 0:
break
| 11.714286 | 28 | 0.439024 | 13 | 82 | 2.769231 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039216 | 0.378049 | 82 | 6 | 29 | 13.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.134146 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0d7de50df7f9997fcd255bc14de3f5eff6707601 | 583 | py | Python | pymeterreader/core/channel_upload_info.py | Schwaneberg/pymeterreader | b91a24b2da3899d2f485f17154db1cc816d64359 | [
"BSD-2-Clause"
] | 5 | 2020-10-20T20:36:31.000Z | 2022-03-18T07:23:05.000Z | pymeterreader/core/channel_upload_info.py | Schwaneberg/pymeterreader | b91a24b2da3899d2f485f17154db1cc816d64359 | [
"BSD-2-Clause"
] | 1 | 2022-02-28T20:15:49.000Z | 2022-02-28T21:25:13.000Z | pymeterreader/core/channel_upload_info.py | Schwaneberg/pymeterreader | b91a24b2da3899d2f485f17154db1cc816d64359 | [
"BSD-2-Clause"
] | 3 | 2021-01-01T17:28:42.000Z | 2021-01-18T16:47:12.000Z | import typing as tp
from dataclasses import dataclass
from datetime import datetime, timedelta
@dataclass()
class ChannelUploadInfo:
"""
Channel Upload info structure
:param uuid: uuid of db entry to feed
:param interval: interval between readings in seconds
:param factor: multiply to original val... | 27.761905 | 72 | 0.723842 | 79 | 583 | 5.291139 | 0.556962 | 0.07177 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.219554 | 583 | 20 | 73 | 29.15 | 0.918681 | 0.493997 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.3 | 0 | 0.9 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
0d82051952338ce4ede0c409131e8879793753db | 389 | py | Python | Course 01 - Getting Started with Python/Extra Studies/Functions/ex010.py | marcoshsq/python_practical_exercises | 77136cd4bc0f34acde3380ffdc5af74f7a960670 | [
"MIT"
] | 9 | 2022-03-22T16:45:17.000Z | 2022-03-25T20:22:35.000Z | Course 01 - Getting Started with Python/Extra Studies/Functions/ex010.py | marcoshsq/python_practical_exercises | 77136cd4bc0f34acde3380ffdc5af74f7a960670 | [
"MIT"
] | null | null | null | Course 01 - Getting Started with Python/Extra Studies/Functions/ex010.py | marcoshsq/python_practical_exercises | 77136cd4bc0f34acde3380ffdc5af74f7a960670 | [
"MIT"
] | 3 | 2022-03-22T17:03:38.000Z | 2022-03-29T17:20:55.000Z | # Exercise 105 - Parsing and Generating Dictionaries
'''Write a program that has a grades() function that can receive multiple grades
from students and will return a dictionary with the following information:
- Number of notes
- The highest grade
- The lowest grade
- The class average
- The situation (optional)
Als... | 29.923077 | 81 | 0.77635 | 57 | 389 | 5.298246 | 0.754386 | 0.05298 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009346 | 0.174807 | 389 | 12 | 82 | 32.416667 | 0.931464 | 0.976864 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0d8dd339b9c49c144057782863e9f04bfb719cec | 1,520 | py | Python | server/spells/__init__.py | zorlu/cards2-server | 81668bfae08998d0a6e2996d14869fea658f8410 | [
"Apache-2.0"
] | null | null | null | server/spells/__init__.py | zorlu/cards2-server | 81668bfae08998d0a6e2996d14869fea658f8410 | [
"Apache-2.0"
] | 2 | 2020-06-05T23:08:47.000Z | 2021-06-10T21:58:58.000Z | server/spells/__init__.py | zorlu/cards2-server | 81668bfae08998d0a6e2996d14869fea658f8410 | [
"Apache-2.0"
] | null | null | null | from .hpdp import HpDpSpell
from .damage import DamageSpell
from .hp import HpSpell
from .dp import DpSpell
from .draw import DrawSpell
from .execute import ExecuteSpell
from .swap import SwapSpell
from .restore import RestoreSpell
from .aura import AuraSpell
from .buff_add import AddBuffSpell
from .buff_remove import ... | 29.230769 | 40 | 0.697368 | 172 | 1,520 | 6.02907 | 0.290698 | 0.131148 | 0.173578 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2375 | 1,520 | 51 | 41 | 29.803922 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0.065789 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02 | false | 0 | 0.32 | 0 | 0.68 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
0d983e70e20f9bc2ef0e7a01cebbf97b62b0152d | 89 | py | Python | airflow/constants.py | vishwas78/python-workflow-test | 81c2336019265ee5c371f9f45dcae5ec22db35d3 | [
"Apache-2.0"
] | null | null | null | airflow/constants.py | vishwas78/python-workflow-test | 81c2336019265ee5c371f9f45dcae5ec22db35d3 | [
"Apache-2.0"
] | null | null | null | airflow/constants.py | vishwas78/python-workflow-test | 81c2336019265ee5c371f9f45dcae5ec22db35d3 | [
"Apache-2.0"
] | null | null | null | PROJECT_NAME = "rtheta-central"
BUCKET_NAME = "central.rtheta.in"
ZONE = "asia-south1-a"
| 22.25 | 33 | 0.741573 | 13 | 89 | 4.923077 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0125 | 0.101124 | 89 | 3 | 34 | 29.666667 | 0.7875 | 0 | 0 | 0 | 0 | 0 | 0.494382 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0db630e03a8333554ea3ac7681528879ac876ac7 | 1,232 | py | Python | proj04/proj04.py | scienceman44/SAVY | 5a9781a9d08288c40f883602dc3b6bab4d6c63c1 | [
"MIT"
] | null | null | null | proj04/proj04.py | scienceman44/SAVY | 5a9781a9d08288c40f883602dc3b6bab4d6c63c1 | [
"MIT"
] | null | null | null | proj04/proj04.py | scienceman44/SAVY | 5a9781a9d08288c40f883602dc3b6bab4d6c63c1 | [
"MIT"
] | null | null | null | # Name:
# Date:
"""
proj04
Asks the user for a string and prints out whether or not the string is a palindrome.
"""
loop_control = True
g = []
p = []
j = raw_input('I am the computer')
h = raw_input('I calculate palindromes')
k = raw_input('I know all')
while loop_control == True:
d = raw_input('type a word for ... | 28 | 84 | 0.585227 | 180 | 1,232 | 3.894444 | 0.422222 | 0.194009 | 0.128388 | 0.299572 | 0.028531 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023026 | 0.25974 | 1,232 | 44 | 85 | 28 | 0.745614 | 0.008929 | 0 | 0.114286 | 0 | 0 | 0.371199 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.114286 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0dc8cd06ae38e52c903c25790497e3514690ee30 | 6,526 | py | Python | ghost/engine.py | pikulet/ghost | 7f1a812ff5d89745e8d3738203eeaf2db559caeb | [
"MIT"
] | 1 | 2020-10-01T17:25:10.000Z | 2020-10-01T17:25:10.000Z | ghost/engine.py | pikulet/ghost | 7f1a812ff5d89745e8d3738203eeaf2db559caeb | [
"MIT"
] | 9 | 2020-10-01T21:34:18.000Z | 2021-01-01T19:00:40.000Z | ghost/engine.py | pikulet/ghost | 7f1a812ff5d89745e8d3738203eeaf2db559caeb | [
"MIT"
] | null | null | null | from bidict import bidict
from ghost.ghost import Ghost
from typing import List, Dict
import logging
class GhostEngine:
ERR_TOO_MANY_GAMES = 'Too many ongoing games... Please wait...'
ERR_GID_ALREADY_EXISTS = 'There is already an ongoing game in this group'
ERR_GID_DOES_NOT_EXIST = 'Game %d does not exi... | 35.857143 | 78 | 0.638676 | 945 | 6,526 | 4.111111 | 0.138624 | 0.039125 | 0.043758 | 0.054054 | 0.529472 | 0.376319 | 0.345946 | 0.306049 | 0.260232 | 0.197941 | 0 | 0.00063 | 0.269997 | 6,526 | 181 | 79 | 36.055249 | 0.814861 | 0.192001 | 0 | 0.273585 | 0 | 0 | 0.041187 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.216981 | false | 0 | 0.037736 | 0 | 0.603774 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
0dca18d2d4e55d1667ebc9186c5e16f320891ef3 | 2,252 | py | Python | model/common/runway.py | mlabru/visil | 73238a1ee10ce464ce21e5e4eb000a9978c1ef58 | [
"MIT"
] | null | null | null | model/common/runway.py | mlabru/visil | 73238a1ee10ce464ce21e5e4eb000a9978c1ef58 | [
"MIT"
] | null | null | null | model/common/runway.py | mlabru/visil | 73238a1ee10ce464ce21e5e4eb000a9978c1ef58 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
runway
revision 0.2 2015/dez mlabru
pep8 style conventions
revision 0.1 2014/nov mlabru
initial release (Linux/Python)
"""
# < imports >--------------------------------------------------------------------------------------
# model
import model.common.fix as CFix
# < class CRunway >--... | 28.871795 | 99 | 0.354796 | 190 | 2,252 | 3.852632 | 0.378947 | 0.081967 | 0.07377 | 0.053279 | 0.150273 | 0.068306 | 0.068306 | 0.068306 | 0.068306 | 0 | 0 | 0.008429 | 0.262433 | 2,252 | 77 | 100 | 29.246753 | 0.43227 | 0.546625 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0 | 0.055556 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0dd178edd5c764af19feeddaab183067294d16b2 | 204 | py | Python | test.py | csmets/CSSCrypt | 4444b9921ae82e89a9ad7955fe46f0ae887ca527 | [
"MIT"
] | null | null | null | test.py | csmets/CSSCrypt | 4444b9921ae82e89a9ad7955fe46f0ae887ca527 | [
"MIT"
] | null | null | null | test.py | csmets/CSSCrypt | 4444b9921ae82e89a9ad7955fe46f0ae887ca527 | [
"MIT"
] | null | null | null | # Testing CSSCrypt
import CSSCrypt
shiftKey = '3453465'
CSSCrypt = CSSCrypt.encryption()
encMsg = CSSCrypt.encrypt('My Secret Message', shiftKey)
print (encMsg)
print(CSSCrypt.decrypt(encMsg, shiftKey))
| 22.666667 | 56 | 0.779412 | 23 | 204 | 6.913043 | 0.565217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0.107843 | 204 | 8 | 57 | 25.5 | 0.835165 | 0.078431 | 0 | 0 | 0 | 0 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
0de0bb1f87690f704ff6249f6907e8b8d97bc270 | 409 | py | Python | biolabs/core/views.py | romgar/django-biolabs | 1e00dda07e72d29eb4d8e20e63f9e15d5e748abf | [
"BSD-2-Clause"
] | null | null | null | biolabs/core/views.py | romgar/django-biolabs | 1e00dda07e72d29eb4d8e20e63f9e15d5e748abf | [
"BSD-2-Clause"
] | null | null | null | biolabs/core/views.py | romgar/django-biolabs | 1e00dda07e72d29eb4d8e20e63f9e15d5e748abf | [
"BSD-2-Clause"
] | null | null | null |
# Create your views here.
from rest_framework import viewsets
from biolabs.core import models as core_models
from biolabs.core.serializers import LaboratorySerializer
class LaboratoryViewSet(viewsets.ModelViewSet):
"""
API endpoint that allows labs to be viewed or edited.
"""
queryset = core_models.... | 27.266667 | 71 | 0.787286 | 49 | 409 | 6.469388 | 0.734694 | 0.069401 | 0.094637 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154034 | 409 | 14 | 72 | 29.214286 | 0.916185 | 0.190709 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
219d0e5508544fb4e7e006b21aa0638f6bab195e | 207 | py | Python | sorting/quick_sort.py | allenyummy/SortingAlgo | 1bab3dfd3fa1d4227d2723e9fe19fbea81eda629 | [
"MIT"
] | null | null | null | sorting/quick_sort.py | allenyummy/SortingAlgo | 1bab3dfd3fa1d4227d2723e9fe19fbea81eda629 | [
"MIT"
] | null | null | null | sorting/quick_sort.py | allenyummy/SortingAlgo | 1bab3dfd3fa1d4227d2723e9fe19fbea81eda629 | [
"MIT"
] | null | null | null | # encoding=utf-8
# Author: Yu-Lun Chiang
# Description: Quick Sort
from __future__ import print_function
from typing import List
def quick_sort_1(arr: List[int], left, right):
def partition() -> int: | 18.818182 | 46 | 0.7343 | 31 | 207 | 4.677419 | 0.774194 | 0.124138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011561 | 0.164251 | 207 | 11 | 47 | 18.818182 | 0.82659 | 0.289855 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.5 | null | null | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
21a1d54f33006564d9fe2fb8115b6eec846775b4 | 857 | py | Python | gallery/models.py | otienotimothy/art-gallery | fce43016a574ef4624aae4dccdd2b2ec14b62fbf | [
"Unlicense"
] | null | null | null | gallery/models.py | otienotimothy/art-gallery | fce43016a574ef4624aae4dccdd2b2ec14b62fbf | [
"Unlicense"
] | null | null | null | gallery/models.py | otienotimothy/art-gallery | fce43016a574ef4624aae4dccdd2b2ec14b62fbf | [
"Unlicense"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
from cloudinary.models import CloudinaryField
# Create your models here.
class Photo(models.Model):
image = CloudinaryField('image')
image_name = models.CharField(max_length=100)
image_description = models.TextField()
added_by = m... | 29.551724 | 71 | 0.746791 | 107 | 857 | 5.738318 | 0.345794 | 0.053746 | 0.087948 | 0.117264 | 0.245928 | 0.169381 | 0.169381 | 0.169381 | 0.169381 | 0.169381 | 0 | 0.0125 | 0.15986 | 857 | 28 | 72 | 30.607143 | 0.840278 | 0.028005 | 0 | 0.15 | 0 | 0 | 0.025271 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.15 | 0.15 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
21a60b9dfafb8779f3fa08c6fcf4748ac8885bd3 | 1,577 | py | Python | src/kata/data/io/network.py | FlorianKempenich/kata | dfa83be391e2e1a51b3b64598281b1e5438873ba | [
"MIT"
] | null | null | null | src/kata/data/io/network.py | FlorianKempenich/kata | dfa83be391e2e1a51b3b64598281b1e5438873ba | [
"MIT"
] | null | null | null | src/kata/data/io/network.py | FlorianKempenich/kata | dfa83be391e2e1a51b3b64598281b1e5438873ba | [
"MIT"
] | null | null | null | import requests
from kata.domain.exceptions import ApiLimitReached, InvalidAuthToken
class GithubApi:
"""
Basic wrapper around the Github Api
"""
def __init__(self, auth_token: str):
self._requests = requests
self._auth_token = auth_token
def contents(self, user, repo, path=''):... | 28.672727 | 82 | 0.622067 | 180 | 1,577 | 5.177778 | 0.344444 | 0.05794 | 0.069742 | 0.038627 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007011 | 0.276474 | 1,577 | 54 | 83 | 29.203704 | 0.809816 | 0.022194 | 0 | 0 | 0 | 0 | 0.076016 | 0.013761 | 0 | 0 | 0 | 0 | 0 | 1 | 0.27027 | false | 0 | 0.054054 | 0.081081 | 0.594595 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
21a9aa1475afa3b1a3530298b81c2f6e3345b9d1 | 968 | py | Python | cosmic_ray/plugins.py | jkblume/cosmic-ray | 179e7ec87f4e34f0f3c84c94e50182d2495626ce | [
"MIT"
] | null | null | null | cosmic_ray/plugins.py | jkblume/cosmic-ray | 179e7ec87f4e34f0f3c84c94e50182d2495626ce | [
"MIT"
] | null | null | null | cosmic_ray/plugins.py | jkblume/cosmic-ray | 179e7ec87f4e34f0f3c84c94e50182d2495626ce | [
"MIT"
] | null | null | null | from stevedore import driver, ExtensionManager
def get_operator(name):
"""Get an operator class from a plugin.
Attrs:
name: The name of the plugin containing the operator class.
Returns: The operator *class object* (i.e. not an instance) provided by the
plugin named `name`.
"""
r... | 26.888889 | 79 | 0.695248 | 124 | 968 | 5.258065 | 0.354839 | 0.092025 | 0.128834 | 0.142638 | 0.203988 | 0.128834 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201446 | 968 | 35 | 80 | 27.657143 | 0.843467 | 0.345041 | 0 | 0 | 0 | 0 | 0.14527 | 0.077703 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.066667 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
21b57ebd4f37a8e5a438dac30aa21c506d294723 | 455 | py | Python | Conteudo das Aulas/126/gabarito.py | cerberus707/lab-python | ebba3c9cde873d70d4bb61084f79ce30b7f9e047 | [
"Apache-2.0"
] | null | null | null | Conteudo das Aulas/126/gabarito.py | cerberus707/lab-python | ebba3c9cde873d70d4bb61084f79ce30b7f9e047 | [
"Apache-2.0"
] | null | null | null | Conteudo das Aulas/126/gabarito.py | cerberus707/lab-python | ebba3c9cde873d70d4bb61084f79ce30b7f9e047 | [
"Apache-2.0"
] | null | null | null | """
Faça uma "fabrica decoradora" que retorna um decorador que decora funções com um único argumento. A fábrica deverá receber um argumento, um
tipo, e retornar um decorador em que a função verifica se o argumento passado é do tipo correto, senão levanta um TypeError.
"""
def decorador(função, tipo):
def nova_funç... | 35 | 139 | 0.694505 | 65 | 455 | 4.830769 | 0.615385 | 0.070064 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.243956 | 455 | 12 | 140 | 37.916667 | 0.912791 | 0.58022 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
21c174e13b064da0f2fb1afa3bf7a2d496314629 | 1,055 | py | Python | bitcodin/test/core/__init__.py | bitmovin/bitcodin-python | 117e755f6aac657f9bb0e95862d2e9a5e4f2abff | [
"Unlicense"
] | 27 | 2015-07-03T23:27:44.000Z | 2020-11-23T17:19:11.000Z | bitcodin/test/core/__init__.py | bitmovin/bitcodin-python | 117e755f6aac657f9bb0e95862d2e9a5e4f2abff | [
"Unlicense"
] | 8 | 2015-08-28T05:01:54.000Z | 2019-02-18T14:40:31.000Z | bitcodin/test/core/__init__.py | bitmovin/bitcodin-python | 117e755f6aac657f9bb0e95862d2e9a5e4f2abff | [
"Unlicense"
] | 10 | 2015-08-06T03:42:30.000Z | 2020-12-19T20:04:13.000Z | __author__ = 'Dominic Miglar <dominic.miglar@bitmovin.net>'
from unittest import TestSuite
from .testcase_api_key_authorized import ApiKeyAuthorizedTestCase
from .testcase_api_key_unauthorized import ApiKeyUnauthorizedTestCase
from .testcase_create_headers import CreateHttpHeadersTestCase
from .testcase_convert impor... | 40.576923 | 69 | 0.846445 | 101 | 1,055 | 8.524752 | 0.336634 | 0.114983 | 0.148664 | 0.041812 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094787 | 1,055 | 25 | 70 | 42.2 | 0.901571 | 0 | 0 | 0 | 0 | 0 | 0.041706 | 0.027488 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.428571 | 0 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
21d8665a7ff19f8887f944493e32c44a73c4539a | 313 | py | Python | scripts/normalization.py | ysy6868/STPF | b3d207cb2299fbecfcdfa617c0ef03f63825e290 | [
"MIT"
] | 958 | 2016-07-21T00:57:59.000Z | 2022-03-31T07:39:23.000Z | scripts/normalization.py | ciciandjojo/StockPricePrediction | c81f38dcf2465e595f20c2daf7bf9382ceb0c80b | [
"MIT"
] | 12 | 2016-12-13T03:13:33.000Z | 2022-03-01T08:31:24.000Z | scripts/normalization.py | ciciandjojo/StockPricePrediction | c81f38dcf2465e595f20c2daf7bf9382ceb0c80b | [
"MIT"
] | 387 | 2016-08-29T08:29:02.000Z | 2022-03-04T09:26:01.000Z | #! /usr/bin/python
'''
Data Normalization
'''
from sklearn import preprocessing
def normalize(file_dataframe, cols):
'''
Data Normalization.
'''
for col in cols:
preprocessing.normalize(file_dataframe[col], \
axis=1, norm='l2', copy=False)
return file_dataframe | 18.411765 | 54 | 0.629393 | 34 | 313 | 5.705882 | 0.705882 | 0.201031 | 0.226804 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008547 | 0.252396 | 313 | 17 | 55 | 18.411765 | 0.820513 | 0.178914 | 0 | 0 | 0 | 0 | 0.008811 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
21f05d2f0269898cbeb31c77480d70d59235d85b | 1,247 | py | Python | Tensorflow/my_tensorflow/src/activations/__init__.py | hywel1994/mac-workspace | 10c20555104ce6ebba77657c7605ce2b7fa2fc34 | [
"MIT"
] | 37 | 2018-10-18T06:19:08.000Z | 2022-03-20T08:13:08.000Z | github/Algorithm_Interview_Notes-Chinese/_codes/my_tensorflow/src/activations/__init__.py | keeya/Interview | 2b40108d39de9ca9e9ab069edb9d4fcf9fe5760c | [
"MIT"
] | 1 | 2019-01-27T14:21:21.000Z | 2019-01-27T14:21:21.000Z | github/Algorithm_Interview_Notes-Chinese/_codes/my_tensorflow/src/activations/__init__.py | keeya/Interview | 2b40108d39de9ca9e9ab069edb9d4fcf9fe5760c | [
"MIT"
] | 13 | 2018-10-23T12:39:55.000Z | 2022-02-25T10:54:01.000Z | """激活函数"""
from .relu import *
def linear(x):
""""""
return x
def identity(x):
""""""
return tf.identity(x)
def sigmoid(x):
""""""
return tf.nn.sigmoid(x)
def hard_sigmoid(x):
"""
x = 0. x < -2.5
= 1. x > 2.5
= 0.2 * x + 0.5 ot... | 16.407895 | 70 | 0.484362 | 178 | 1,247 | 3.342697 | 0.303371 | 0.053782 | 0.117647 | 0.07395 | 0.077311 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103155 | 0.339214 | 1,247 | 75 | 71 | 16.626667 | 0.618932 | 0.328789 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.384615 | false | 0 | 0.038462 | 0 | 0.807692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
21f8a32c38026ddd05c423ed85d17dcb2d26cabd | 179 | py | Python | PythonM3/senha.py | MiguelTeixeiraUFPB/PythonM3 | f470db37cb20215bfba78a35f70e1a780a3dc235 | [
"MIT"
] | null | null | null | PythonM3/senha.py | MiguelTeixeiraUFPB/PythonM3 | f470db37cb20215bfba78a35f70e1a780a3dc235 | [
"MIT"
] | null | null | null | PythonM3/senha.py | MiguelTeixeiraUFPB/PythonM3 | f470db37cb20215bfba78a35f70e1a780a3dc235 | [
"MIT"
] | null | null | null | while True:
senha=int(input('digite sua senha : '))
if senha==2:
print('acesso permitido')
break
else:
print('senha invalida, tente novamente') | 25.571429 | 48 | 0.586592 | 21 | 179 | 5 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007874 | 0.290503 | 179 | 7 | 48 | 25.571429 | 0.818898 | 0 | 0 | 0 | 0 | 0 | 0.366667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
21f9829d76b6504a3b7e5662edb453606048605c | 257 | py | Python | learn-python/simple-scripts/2.py | sirius1024/qwer | 54cb422e55c91a9d05dd6b7776e0e980bef7e0a2 | [
"MIT"
] | null | null | null | learn-python/simple-scripts/2.py | sirius1024/qwer | 54cb422e55c91a9d05dd6b7776e0e980bef7e0a2 | [
"MIT"
] | 2 | 2021-05-12T07:54:10.000Z | 2021-05-12T10:41:19.000Z | learn-python/simple-scripts/2.py | sirius1024/qwer | 54cb422e55c91a9d05dd6b7776e0e980bef7e0a2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
def myFunc(x, y):
if not isinstance(x, (int, float)):
raise TypeError('x has wrong type')
if not isinstance(y, (int, float)):
raise TypeError('y has wrong type')
else:
print(x + y)
myFunc(1, 3)
| 18.357143 | 43 | 0.575875 | 39 | 257 | 3.794872 | 0.564103 | 0.027027 | 0.202703 | 0.297297 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016129 | 0.276265 | 257 | 13 | 44 | 19.769231 | 0.77957 | 0.081712 | 0 | 0 | 0 | 0 | 0.13617 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.125 | 0.125 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1d00e8a40554c37d7f43f0aebb7f5824f88ae895 | 198 | py | Python | resources/_py/_req.py | gabru-md/faces | 308f8b257661b0a78b6b25386f45f4664231d4f3 | [
"BSD-3-Clause"
] | null | null | null | resources/_py/_req.py | gabru-md/faces | 308f8b257661b0a78b6b25386f45f4664231d4f3 | [
"BSD-3-Clause"
] | 2 | 2017-05-19T12:07:19.000Z | 2017-05-20T19:53:07.000Z | resources/_py/_req.py | gabru-md/faces | 308f8b257661b0a78b6b25386f45f4664231d4f3 | [
"BSD-3-Clause"
] | null | null | null | # PYTHON
# MANISH DEVGAN
# https://github.com/gabru-md
#BEGIN
#Containing import modules
import sys
import os
import cv2
import numpy as np
import math
import matplotlib.pyplot as plt
#END
| 9 | 31 | 0.747475 | 30 | 198 | 4.933333 | 0.766667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006211 | 0.186869 | 198 | 21 | 32 | 9.428571 | 0.913043 | 0.409091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
1d0ab9682edd63276132897c08505fee6cdfc346 | 871 | py | Python | rest_framework_docs/compat.py | harwee/django-rest-framework-docs | b424403eb7788843bcc821c84e1d413795142e05 | [
"BSD-2-Clause"
] | 4 | 2021-09-30T07:57:58.000Z | 2022-02-06T11:41:18.000Z | rest_framework_docs/compat.py | harwee/django-rest-framework-docs | b424403eb7788843bcc821c84e1d413795142e05 | [
"BSD-2-Clause"
] | 3 | 2020-02-12T02:56:06.000Z | 2021-06-10T21:40:02.000Z | rest_framework_docs/compat.py | harwee/django-rest-framework-docs | b424403eb7788843bcc821c84e1d413795142e05 | [
"BSD-2-Clause"
] | 12 | 2018-02-14T08:26:28.000Z | 2020-04-14T22:25:38.000Z | try:
from django.urls import (
URLPattern,
URLResolver,
)
except ImportError:
# Will be removed in Django 2.0
from django.urls import (
RegexURLPattern as URLPattern,
RegexURLResolver as URLResolver,
)
# This is from the similarly named compat.py file of django-rest... | 25.617647 | 78 | 0.687715 | 107 | 871 | 5.523364 | 0.53271 | 0.035533 | 0.040609 | 0.067682 | 0.081218 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012121 | 0.24225 | 871 | 33 | 79 | 26.393939 | 0.883333 | 0.313433 | 0 | 0.105263 | 0 | 0 | 0.012174 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.157895 | 0.105263 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
0dfd11a73353178b6f56d70eb2961f846003278b | 439 | py | Python | src/masonite/managers/QueueManager.py | Abeautifulsnow/masonite | f0ebb5ca05f5d88f21264e1cd0934435bd0a8791 | [
"MIT"
] | 1 | 2022-02-24T06:21:18.000Z | 2022-02-24T06:21:18.000Z | src/masonite/managers/QueueManager.py | Abeautifulsnow/masonite | f0ebb5ca05f5d88f21264e1cd0934435bd0a8791 | [
"MIT"
] | 1 | 2020-10-26T12:33:05.000Z | 2020-10-26T12:33:05.000Z | src/masonite/managers/QueueManager.py | Abeautifulsnow/masonite | f0ebb5ca05f5d88f21264e1cd0934435bd0a8791 | [
"MIT"
] | null | null | null | """Queue Manager Module."""
from ..contracts import QueueManagerContract
from .Manager import Manager
class QueueManager(Manager, QueueManagerContract):
"""Manages all queue drivers.
Arguments:
Manager {from .managers.Manager} -- The base Manager class.
"""
config = "queue"
driver_prefi... | 19.954545 | 81 | 0.685649 | 50 | 439 | 6 | 0.6 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216401 | 439 | 21 | 82 | 20.904762 | 0.872093 | 0.446469 | 0 | 0 | 0 | 0 | 0.046729 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0.285714 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
0dfdc524c3ef787225be18fd9d044e2609b86576 | 2,233 | py | Python | maestrowf/abstracts/containers/__init__.py | kennyweiss/maestrowf | 3ecc9b0749484bde5a7afa05c49384fb17852281 | [
"MIT"
] | 90 | 2017-07-10T17:10:35.000Z | 2022-03-06T02:46:51.000Z | maestrowf/abstracts/containers/__init__.py | kennyweiss/maestrowf | 3ecc9b0749484bde5a7afa05c49384fb17852281 | [
"MIT"
] | 253 | 2017-07-12T17:26:22.000Z | 2022-02-24T00:13:56.000Z | maestrowf/abstracts/containers/__init__.py | kennyweiss/maestrowf | 3ecc9b0749484bde5a7afa05c49384fb17852281 | [
"MIT"
] | 36 | 2017-07-10T17:44:56.000Z | 2022-02-21T15:20:39.000Z | ###############################################################################
# Copyright (c) 2017, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory
# Written by Francesco Di Natale, dinatale3@llnl.gov.
#
# LLNL-CODE-734340
# All rights reserved.
# This file is part ... | 42.942308 | 79 | 0.671742 | 299 | 2,233 | 4.996656 | 0.538462 | 0.058902 | 0.033467 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007756 | 0.19167 | 2,233 | 51 | 80 | 43.784314 | 0.819945 | 0.788625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
df0911d6c575d93f62e664af3de4466ca39edf1b | 1,666 | py | Python | Django 3 By Example-Book/My Shop/shop/models.py | ibnshayed/Python-Programming | a5c50b7ced5131b25260f4c3401f98d016ea8355 | [
"MIT"
] | null | null | null | Django 3 By Example-Book/My Shop/shop/models.py | ibnshayed/Python-Programming | a5c50b7ced5131b25260f4c3401f98d016ea8355 | [
"MIT"
] | null | null | null | Django 3 By Example-Book/My Shop/shop/models.py | ibnshayed/Python-Programming | a5c50b7ced5131b25260f4c3401f98d016ea8355 | [
"MIT"
] | null | null | null | from django.db import models
from django.urls import reverse
# Create your models here.
class Category(models.Model):
name = models.CharField(max_length=200, db_index=True)
slug = models.SlugField(max_length=200, unique=True)
class Meta:
ordering = ('name',)
verbose_name = 'category' # dj... | 34.708333 | 131 | 0.67527 | 211 | 1,666 | 5.161137 | 0.42654 | 0.033058 | 0.044077 | 0.038567 | 0.33517 | 0.289256 | 0.216713 | 0.216713 | 0.216713 | 0.216713 | 0 | 0.011485 | 0.216086 | 1,666 | 48 | 132 | 34.708333 | 0.822358 | 0.159064 | 0 | 0.375 | 0 | 0 | 0.075215 | 0.020774 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.0625 | 0.125 | 0.78125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
df0b93ef1b8ae5e9880ac10db6272b1d01d6b089 | 1,179 | py | Python | api/config.py | 114000/webapp-boilerplate | 0550396694b4f009e5d862b0098bf7d1f61a4a40 | [
"MIT"
] | null | null | null | api/config.py | 114000/webapp-boilerplate | 0550396694b4f009e5d862b0098bf7d1f61a4a40 | [
"MIT"
] | null | null | null | api/config.py | 114000/webapp-boilerplate | 0550396694b4f009e5d862b0098bf7d1f61a4a40 | [
"MIT"
] | 1 | 2021-06-10T02:08:30.000Z | 2021-06-10T02:08:30.000Z | # encoding: utf-8
from os import path, getenv
from datetime import timedelta
import ast
basedir = path.abspath(path.dirname(__file__))
class Config (object):
APP_NAME = getenv('APP_NAME', 'Python Flask Boilerplate')
DEV = ast.literal_eval(getenv('DEV', 'True'))
DEBUG = ast.literal_eval(getenv('... | 33.685714 | 118 | 0.724343 | 152 | 1,179 | 5.315789 | 0.565789 | 0.059406 | 0.07797 | 0.049505 | 0.061881 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052789 | 0.148431 | 1,179 | 35 | 119 | 33.685714 | 0.751992 | 0.220526 | 0 | 0 | 0 | 0 | 0.215854 | 0.091463 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1 | 0.15 | 0 | 0.9 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
df0d5e35328e5a78cd4a9f4a691e52a44b91f65c | 119 | py | Python | tests/core/urls.py | zhd785576549/flamingo | 5e8bf68bf5513862e4ec748490652e5e2c31b226 | [
"MIT"
] | null | null | null | tests/core/urls.py | zhd785576549/flamingo | 5e8bf68bf5513862e4ec748490652e5e2c31b226 | [
"MIT"
] | null | null | null | tests/core/urls.py | zhd785576549/flamingo | 5e8bf68bf5513862e4ec748490652e5e2c31b226 | [
"MIT"
] | null | null | null | from flamingo.url.conf import path
routers = [
path(url="/test", view_func_or_module="tapp.urls", name="test")
]
| 17 | 67 | 0.689076 | 18 | 119 | 4.388889 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 119 | 6 | 68 | 19.833333 | 0.77451 | 0 | 0 | 0 | 0 | 0 | 0.151261 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
df18a28cdd9bd471617bba3403f75b327d51317b | 2,245 | py | Python | dogey/exceptions.py | Shadofer/dogey | 1d9f1b82aa7ecfe6d9776feb03364ef9eb00bd63 | [
"MIT"
] | 3 | 2021-05-18T09:46:30.000Z | 2022-03-26T14:23:24.000Z | dogey/exceptions.py | Shadofer/dogey | 1d9f1b82aa7ecfe6d9776feb03364ef9eb00bd63 | [
"MIT"
] | null | null | null | dogey/exceptions.py | Shadofer/dogey | 1d9f1b82aa7ecfe6d9776feb03364ef9eb00bd63 | [
"MIT"
] | null | null | null | class DogeyError(Exception):
""" The base Dogey Exception, expect this as the main type of Dogey-specific errors such as InvalidCredentialsError. """
pass
class DogeyCommandError(Exception):
def __init__(self, command_name: str, message: str, *args):
""" The basic Dogey exception for commands, exp... | 31.180556 | 124 | 0.657906 | 260 | 2,245 | 5.461538 | 0.276923 | 0.201408 | 0.108451 | 0.050704 | 0.421831 | 0.371127 | 0.311268 | 0.153521 | 0.153521 | 0.153521 | 0 | 0 | 0.254788 | 2,245 | 71 | 125 | 31.619718 | 0.848775 | 0.332294 | 0 | 0.413793 | 0 | 0 | 0.088476 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 1 | 0.137931 | false | 0.137931 | 0 | 0 | 0.37931 | 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 | 0 | 0 | 0 | 2 |
df19455956152bab0833aca79a6013b63bad841b | 636 | py | Python | repos/system_upgrade/el7toel8/actors/opensshconfigscanner/actor.py | sm00th/leapp-repository | 1c171ec3a5f9260a3c6f84a9b15cad78a875ac61 | [
"Apache-2.0"
] | 21 | 2018-11-20T15:58:39.000Z | 2022-03-15T19:57:24.000Z | repos/system_upgrade/el7toel8/actors/opensshconfigscanner/actor.py | sm00th/leapp-repository | 1c171ec3a5f9260a3c6f84a9b15cad78a875ac61 | [
"Apache-2.0"
] | 732 | 2018-11-21T18:33:26.000Z | 2022-03-31T16:16:24.000Z | repos/system_upgrade/el7toel8/actors/opensshconfigscanner/actor.py | sm00th/leapp-repository | 1c171ec3a5f9260a3c6f84a9b15cad78a875ac61 | [
"Apache-2.0"
] | 85 | 2018-11-20T17:55:00.000Z | 2022-03-29T09:40:31.000Z | from leapp.actors import Actor
from leapp.libraries.actor import readopensshconfig
from leapp.models import OpenSshConfig
from leapp.tags import FactsPhaseTag, IPUWorkflowTag
class OpenSshConfigScanner(Actor):
"""
Collect information about the OpenSSH configuration.
Currently supporting the following opt... | 22.714286 | 56 | 0.716981 | 59 | 636 | 7.677966 | 0.677966 | 0.07947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213836 | 636 | 27 | 57 | 23.555556 | 0.906 | 0.273585 | 0 | 0 | 0 | 0 | 0.045131 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.909091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
df232c6d1f28f1645aed6cbb08749119ab0df7c0 | 6,928 | py | Python | notions/models/database.py | micktwomey/notions | b58b7491c802dd90f16bf525b42fd37bf54b8c76 | [
"MIT"
] | 1 | 2022-03-18T09:24:29.000Z | 2022-03-18T09:24:29.000Z | notions/models/database.py | micktwomey/notions | b58b7491c802dd90f16bf525b42fd37bf54b8c76 | [
"MIT"
] | null | null | null | notions/models/database.py | micktwomey/notions | b58b7491c802dd90f16bf525b42fd37bf54b8c76 | [
"MIT"
] | null | null | null | import datetime
import enum
import typing
import uuid
import pydantic
from .color import Color
from .number import Number
from .parent import DatabaseParents
from .rich_text import RichText
class NumberProperty(pydantic.BaseModel):
id: str
name: str
type: typing.Literal["number"] = "number"
number: ... | 22.640523 | 66 | 0.688655 | 812 | 6,928 | 5.720443 | 0.108374 | 0.058558 | 0.061572 | 0.083961 | 0.503552 | 0.484392 | 0.429709 | 0.429709 | 0.429709 | 0.281163 | 0 | 0 | 0.215791 | 6,928 | 305 | 67 | 22.714754 | 0.85496 | 0.00332 | 0 | 0.345455 | 0 | 0 | 0.066783 | 0.003187 | 0 | 0 | 0 | 0.003279 | 0 | 1 | 0.118182 | false | 0 | 0.040909 | 0.118182 | 0.854545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
df3a83d1c1fbb09726993ec6b13e70ad1d5c493f | 750 | py | Python | vanilla_segmentation/loss.py | drapado/densefusion | 9eb8f2a3bf765ad94d43c28244dc5bc662640403 | [
"MIT"
] | 1 | 2021-06-15T13:55:13.000Z | 2021-06-15T13:55:13.000Z | vanilla_segmentation/loss.py | drapado/densefusion | 9eb8f2a3bf765ad94d43c28244dc5bc662640403 | [
"MIT"
] | null | null | null | vanilla_segmentation/loss.py | drapado/densefusion | 9eb8f2a3bf765ad94d43c28244dc5bc662640403 | [
"MIT"
] | null | null | null | from torch.nn.modules.loss import _Loss
from torch.autograd import Variable
import torch
import time
import numpy as np
import torch.nn as nn
import random
import copy
import math
CEloss = nn.CrossEntropyLoss()
def loss_calculation(semantic, target):
bs = semantic.size()[0]
pix_num = 480 * 640
... | 24.193548 | 109 | 0.684 | 101 | 750 | 4.910891 | 0.39604 | 0.112903 | 0.092742 | 0.116935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021959 | 0.210667 | 750 | 30 | 110 | 25 | 0.815878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.409091 | 0.045455 | 0.681818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
df3da54a9e27201d0b777727e12255237a081abe | 2,115 | py | Python | app/models.py | awesome-archive/susnote | 402384e5de1a51ce6e41aea090376d5efef05fdc | [
"MIT"
] | null | null | null | app/models.py | awesome-archive/susnote | 402384e5de1a51ce6e41aea090376d5efef05fdc | [
"MIT"
] | null | null | null | app/models.py | awesome-archive/susnote | 402384e5de1a51ce6e41aea090376d5efef05fdc | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
from peewee import *
from playhouse.postgres_ext import *
import datetime
class BaseModel(Model):
id = PrimaryKeyField()
create_time = DateTimeField(verbose_name='create_time', constraints=[SQL('DEFAULT CURRENT_TIMESTAMP')])
class Notebook(BaseModel):
name = CharField(max_l... | 25.178571 | 104 | 0.760284 | 279 | 2,115 | 5.555556 | 0.232975 | 0.139355 | 0.209032 | 0.243871 | 0.62 | 0.487097 | 0.429032 | 0.429032 | 0.284516 | 0.20129 | 0 | 0.035003 | 0.121986 | 2,115 | 83 | 105 | 25.481928 | 0.799677 | 0.017021 | 0 | 0.396825 | 0 | 0 | 0.071257 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.031746 | 0.047619 | 0 | 0.873016 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
df47cf3eb0946668d1beaccb58160e7619e660a4 | 3,291 | py | Python | inventory/migrations/0001_initial.py | balexander85/inventory | a497d3a86d0803ba277bb5b25ba58fe0574fc474 | [
"MIT"
] | null | null | null | inventory/migrations/0001_initial.py | balexander85/inventory | a497d3a86d0803ba277bb5b25ba58fe0574fc474 | [
"MIT"
] | 1 | 2022-01-13T00:50:35.000Z | 2022-01-13T00:50:35.000Z | inventory/migrations/0001_initial.py | balexander85/inventory | a497d3a86d0803ba277bb5b25ba58fe0574fc474 | [
"MIT"
] | null | null | null | # Generated by Django 2.1 on 2018-08-18 20:50
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = []
operations = [
migrations.CreateModel(
name="Item",
fields=[
(... | 31.04717 | 86 | 0.368885 | 215 | 3,291 | 5.511628 | 0.372093 | 0.046414 | 0.035443 | 0.055696 | 0.437975 | 0.437975 | 0.395781 | 0.395781 | 0.395781 | 0.395781 | 0 | 0.018313 | 0.5354 | 3,291 | 105 | 87 | 31.342857 | 0.756704 | 0.013066 | 0 | 0.571429 | 1 | 0 | 0.063771 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.020408 | 0 | 0.061224 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
df4b1e1eba19ff7baa86a1358b8046b8b6138cce | 645 | py | Python | shuffleindex/utils.py | escudocloud/distributed-shuffleindex | b1a78ecae87149897df7e239b55daeda20503fac | [
"MIT"
] | 1 | 2017-01-23T13:27:55.000Z | 2017-01-23T13:27:55.000Z | shuffleindex/utils.py | escudocloud/distributed-shuffleindex | b1a78ecae87149897df7e239b55daeda20503fac | [
"MIT"
] | null | null | null | shuffleindex/utils.py | escudocloud/distributed-shuffleindex | b1a78ecae87149897df7e239b55daeda20503fac | [
"MIT"
] | null | null | null | from six.moves import xrange
import struct
ENC = 'UTF-16LE' # we use little endian (LE) to remove the BOM character
FMT = '60s' # format is a string of 60 characters
def encode(data, fmt=FMT, enc=ENC):
"""Encode data with specified format and encoding"""
data = data.encode(enc)
return struct.pack(fmt,... | 30.714286 | 72 | 0.663566 | 102 | 645 | 4.196078 | 0.5 | 0.046729 | 0.046729 | 0.060748 | 0.252336 | 0.17757 | 0.17757 | 0 | 0 | 0 | 0 | 0.017476 | 0.20155 | 645 | 20 | 73 | 32.25 | 0.813592 | 0.350388 | 0 | 0 | 0 | 0 | 0.032338 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.153846 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.