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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
eac56c80b826119870d8bb0f4a988cbd07be6358 | 2,597 | py | Python | pysnmp/CYCLADES-ACS-ADM-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/CYCLADES-ACS-ADM-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/CYCLADES-ACS-ADM-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module CYCLADES-ACS-ADM-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CYCLADES-ACS-ADM-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 18:18:44 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (defau... | 108.208333 | 477 | 0.778976 | 277 | 2,597 | 7.296029 | 0.429603 | 0.079664 | 0.041564 | 0.025235 | 0.425532 | 0.327561 | 0.285007 | 0.285007 | 0.285007 | 0.27907 | 0 | 0.064315 | 0.072006 | 2,597 | 23 | 478 | 112.913043 | 0.774274 | 0.12861 | 0 | 0 | 0 | 0 | 0.277728 | 0.019521 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4375 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
ead84eeefd70332698bb5734f57cefaab436a5bb | 524 | py | Python | examples/geocalc/common.py | EliAndrewC/protlib | 2c9302d4ecc941478bae886ee2d36e3055757c35 | [
"BSD-3-Clause"
] | 14 | 2017-02-21T10:12:40.000Z | 2022-03-30T18:06:34.000Z | examples/geocalc/common.py | EliAndrewC/protlib | 2c9302d4ecc941478bae886ee2d36e3055757c35 | [
"BSD-3-Clause"
] | 1 | 2018-08-27T14:33:26.000Z | 2018-08-27T14:33:26.000Z | examples/geocalc/common.py | EliAndrewC/protlib | 2c9302d4ecc941478bae886ee2d36e3055757c35 | [
"BSD-3-Clause"
] | null | null | null | import logging
logging.basicConfig(level = logging.INFO)
from protlib import *
SERVER_ADDR = ("127.0.0.1", 32123)
class Point(CStruct):
code = CShort(always = 1)
x = CFloat()
y = CFloat()
class Vector(CStruct):
code = CShort(always = 2)
p1 = Point.get_type()
p2 = Point.get_type()
... | 20.153846 | 41 | 0.620229 | 67 | 524 | 4.80597 | 0.537313 | 0.136646 | 0.21118 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04557 | 0.246183 | 524 | 25 | 42 | 20.96 | 0.76962 | 0 | 0 | 0 | 0 | 0 | 0.026718 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.894737 | 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 |
eaf6dc6458809d4cc738ff6ca99da2346d4b1527 | 16,550 | py | Python | networkapi/equipamento/resource/EquipamentoAcessoResource.py | vinicius-marinho/GloboNetworkAPI | 94651d3b4dd180769bc40ec966814f3427ccfb5b | [
"Apache-2.0"
] | 73 | 2015-04-13T17:56:11.000Z | 2022-03-24T06:13:07.000Z | networkapi/equipamento/resource/EquipamentoAcessoResource.py | leopoldomauricio/GloboNetworkAPI | 3b5b2e336d9eb53b2c113977bfe466b23a50aa29 | [
"Apache-2.0"
] | 99 | 2015-04-03T01:04:46.000Z | 2021-10-03T23:24:48.000Z | networkapi/equipamento/resource/EquipamentoAcessoResource.py | leopoldomauricio/GloboNetworkAPI | 3b5b2e336d9eb53b2c113977bfe466b23a50aa29 | [
"Apache-2.0"
] | 64 | 2015-08-05T21:26:29.000Z | 2022-03-22T01:06:28.000Z | # -*- coding: utf-8 -*-
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "Lic... | 43.667546 | 118 | 0.626828 | 1,837 | 16,550 | 5.444747 | 0.148612 | 0.055889 | 0.044391 | 0.062088 | 0.667766 | 0.60238 | 0.523095 | 0.469006 | 0.429814 | 0.407519 | 0 | 0.00717 | 0.309003 | 16,550 | 378 | 119 | 43.783069 | 0.867436 | 0.147795 | 0 | 0.528139 | 0 | 0 | 0.091729 | 0.003459 | 0 | 0 | 0 | 0.002646 | 0 | 0 | null | null | 0.073593 | 0.099567 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
d81800173dc4a465b8851bbca0c6e1d24df14890 | 112 | py | Python | master/src/utils/openstack/config.py | rezabojnordi/Kangaroo | 4640acdcceeb1c3f6fe9947662d2b2a936790f56 | [
"MIT"
] | 1 | 2022-02-03T16:34:39.000Z | 2022-02-03T16:34:39.000Z | master/src/utils/openstack/config.py | rezabojnordi/Kangaroo | 4640acdcceeb1c3f6fe9947662d2b2a936790f56 | [
"MIT"
] | null | null | null | master/src/utils/openstack/config.py | rezabojnordi/Kangaroo | 4640acdcceeb1c3f6fe9947662d2b2a936790f56 | [
"MIT"
] | null | null | null |
user_name = "user"
password = "pass"
url= "ip address"
project_scope_name = "username"
domain_id = "defa"
| 9.333333 | 31 | 0.678571 | 15 | 112 | 4.8 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 112 | 11 | 32 | 10.181818 | 0.791209 | 0 | 0 | 0 | 0 | 0 | 0.283019 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.2 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
d81ea41a76599bebe4fb7004a50b159933ded1e7 | 1,406 | py | Python | Cactus.py | lwunruh/dino_game_clone | aada4928447051fc8e28d8cd713b648a311e44cc | [
"CC0-1.0"
] | null | null | null | Cactus.py | lwunruh/dino_game_clone | aada4928447051fc8e28d8cd713b648a311e44cc | [
"CC0-1.0"
] | null | null | null | Cactus.py | lwunruh/dino_game_clone | aada4928447051fc8e28d8cd713b648a311e44cc | [
"CC0-1.0"
] | null | null | null | import pygame as pg
big_cactus = pg.image.load("assets/big_cactus.png")
#small = pg.image.load("assets/small_cactus.png")
#small_double = pg.image.load("assets/small_double_cactus.png")
#small_triple = pg.image.load("assets/small_triple_cactus.png")
class Cactus(object):
def __init__(self, x, ground_y, velocity, ... | 29.291667 | 183 | 0.603129 | 211 | 1,406 | 3.872038 | 0.251185 | 0.04896 | 0.053856 | 0.083231 | 0.188494 | 0.095471 | 0.095471 | 0.095471 | 0.095471 | 0.095471 | 0 | 0.010638 | 0.26458 | 1,406 | 48 | 184 | 29.291667 | 0.779497 | 0.140825 | 0 | 0.060606 | 0 | 0 | 0.017427 | 0.017427 | 0 | 0 | 0 | 0.020833 | 0 | 0 | null | null | 0 | 0.030303 | 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 |
d83009f2802a6ac2db20accfc0bb345ee47e6601 | 446 | py | Python | DQMOffline/Hcal/python/HcalNoiseRatesParam_cfi.py | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | DQMOffline/Hcal/python/HcalNoiseRatesParam_cfi.py | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | DQMOffline/Hcal/python/HcalNoiseRatesParam_cfi.py | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | import FWCore.ParameterSet.Config as cms
hcalNoiseRates = cms.EDAnalyzer('HcalNoiseRates',
# outputFile = cms.untracked.string('NoiseRatesRelVal.root'),
outputFile = cms.untracked.string(''),
rbxCollName = cms.untracked.InputTag('hcalnoise'),
minRBXEnergy = cms.untracked.double(20.0),
minHitEne... | 37.166667 | 66 | 0.717489 | 46 | 446 | 6.956522 | 0.586957 | 0.225 | 0.1375 | 0.175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013123 | 0.14574 | 446 | 11 | 67 | 40.545455 | 0.826772 | 0.136771 | 0 | 0 | 0 | 0 | 0.084211 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d830dc95647c12fc5e7b19cd67c9d88fa1b5e05a | 932 | py | Python | backend/settings/dbrouters.py | vtr0n/PlayMusicStats | 2de1ef03d363fcfc33cc41506ded6e682e1c6b65 | [
"MIT"
] | 9 | 2019-09-09T01:07:52.000Z | 2021-11-08T12:55:20.000Z | backend/settings/dbrouters.py | vtr0n/PlayMusicStats | 2de1ef03d363fcfc33cc41506ded6e682e1c6b65 | [
"MIT"
] | 18 | 2019-09-08T16:30:11.000Z | 2022-02-12T20:20:45.000Z | backend/settings/dbrouters.py | vtr0n/PlayMusicStats | 2de1ef03d363fcfc33cc41506ded6e682e1c6b65 | [
"MIT"
] | null | null | null | from backend.stats.models import PlayMusicStats
class DBRouter(object):
def db_for_read(self, model, **hints):
""" reading PlayMusicStats from mongo """
if model == PlayMusicStats:
return 'mongo'
return None
def db_for_write(self, model, **hints):
""" writing Play... | 27.411765 | 69 | 0.57618 | 107 | 932 | 4.88785 | 0.411215 | 0.053537 | 0.086042 | 0.099426 | 0.248566 | 0.191205 | 0.191205 | 0.191205 | 0.191205 | 0 | 0 | 0.006349 | 0.324034 | 932 | 33 | 70 | 28.242424 | 0.82381 | 0.157725 | 0 | 0.421053 | 0 | 0 | 0.044138 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.052632 | 0 | 0.736842 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d832fbd439796738f32ca5c752214d1896604972 | 207 | py | Python | example_app/model/my_dto.py | keotl/jivago | 892dfb0cae773e36245083c3e56f0f8523145523 | [
"MIT"
] | 12 | 2018-03-19T20:57:44.000Z | 2020-01-27T14:11:24.000Z | example_app/model/my_dto.py | keotl/jivago | 892dfb0cae773e36245083c3e56f0f8523145523 | [
"MIT"
] | 73 | 2018-04-20T22:26:00.000Z | 2021-12-01T14:17:37.000Z | example_app/model/my_dto.py | keotl/jivago | 892dfb0cae773e36245083c3e56f0f8523145523 | [
"MIT"
] | 1 | 2019-02-28T13:33:45.000Z | 2019-02-28T13:33:45.000Z | from jivago.lang.annotations import Serializable
@Serializable
class MyDto(object):
name: str
age: int
def __init__(self, name: str, age: int):
self.name = name
self.age = age
| 17.25 | 48 | 0.647343 | 27 | 207 | 4.814815 | 0.592593 | 0.107692 | 0.153846 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.26087 | 207 | 11 | 49 | 18.818182 | 0.849673 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.625 | 0 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d83707332a0b67b51a0a31668deb0a45af2bb8c5 | 558 | py | Python | costools/__init__.py | stsci-hack/costools | e6c63e4529b2be2f5ecaff9def6319ecd8955a7b | [
"BSD-3-Clause"
] | 1 | 2021-04-24T12:57:59.000Z | 2021-04-24T12:57:59.000Z | costools/__init__.py | stsci-hack/costools | e6c63e4529b2be2f5ecaff9def6319ecd8955a7b | [
"BSD-3-Clause"
] | 16 | 2016-12-07T16:20:39.000Z | 2021-01-22T15:53:29.000Z | costools/__init__.py | stsci-hack/costools | e6c63e4529b2be2f5ecaff9def6319ecd8955a7b | [
"BSD-3-Clause"
] | 7 | 2016-03-29T19:50:52.000Z | 2021-09-30T15:18:59.000Z | from __future__ import absolute_import, division # confidence high
from pkg_resources import get_distribution, DistributionNotFound
try:
__version__ = get_distribution(__name__).version
except DistributionNotFound:
# package is not installed
__version__ = 'UNKNOWN'
from . import timefilter
from .... | 27.9 | 74 | 0.78853 | 70 | 558 | 5.871429 | 0.657143 | 0.072993 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002132 | 0.159498 | 558 | 19 | 75 | 29.368421 | 0.8742 | 0.24552 | 0 | 0 | 0 | 0 | 0.016827 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.583333 | 0 | 0.583333 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d8372781303ce5bbebc98e16c9d65ea953476b9b | 1,633 | py | Python | poputils/utils/cidr.py | GaretJax/pop-utils | 2cdfaf24c2f8678edfab1f430c07611d488247d5 | [
"MIT"
] | null | null | null | poputils/utils/cidr.py | GaretJax/pop-utils | 2cdfaf24c2f8678edfab1f430c07611d488247d5 | [
"MIT"
] | 1 | 2021-03-22T17:12:51.000Z | 2021-03-22T17:12:51.000Z | poputils/utils/cidr.py | GaretJax/pop-utils | 2cdfaf24c2f8678edfab1f430c07611d488247d5 | [
"MIT"
] | null | null | null |
class CIDR(object):
def __init__(self, base, size=None):
try:
base, _size = base.split('/')
except ValueError:
pass
else:
if size is None:
size = _size
self.size = 2 ** (32 - int(size))
self._mask = ~(self.size - ... | 25.920635 | 84 | 0.492345 | 185 | 1,633 | 4.135135 | 0.297297 | 0.094118 | 0.094118 | 0.044444 | 0.227451 | 0.065359 | 0 | 0 | 0 | 0 | 0 | 0.024024 | 0.388243 | 1,633 | 63 | 85 | 25.920635 | 0.741742 | 0 | 0 | 0.085106 | 0 | 0 | 0.006127 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.234043 | false | 0.021277 | 0 | 0.170213 | 0.468085 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
dc1b2755b683015ebb50f623614bb311ce90648d | 99 | py | Python | src/api/constants.py | massenergize/portalBackEnd | 7ed971b2be13901667a216d8c8a46f0bed6d6ccd | [
"MIT"
] | 1 | 2019-04-17T20:39:55.000Z | 2019-04-17T20:39:55.000Z | src/api/constants.py | massenergize/portalBackEnd | 7ed971b2be13901667a216d8c8a46f0bed6d6ccd | [
"MIT"
] | 8 | 2019-04-15T14:52:18.000Z | 2019-04-17T13:18:03.000Z | src/api/constants.py | massenergize/portalBackEnd | 7ed971b2be13901667a216d8c8a46f0bed6d6ccd | [
"MIT"
] | null | null | null | USERS = "users"
COMMUNITIES = 'communities'
TEAMS = 'teams'
METRICS = 'metrics'
ACTIONS = 'actions' | 19.8 | 27 | 0.707071 | 10 | 99 | 7 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141414 | 99 | 5 | 28 | 19.8 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0.35 | 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 |
dc631f72e2e5e0fca75a20f429877d881f1ac1cf | 1,229 | py | Python | build/lib/CameraControl/Record.py | uwdrone/Abzu | 9617dd036402d347c40c2e30f823b51f5236e895 | [
"FSFAP"
] | null | null | null | build/lib/CameraControl/Record.py | uwdrone/Abzu | 9617dd036402d347c40c2e30f823b51f5236e895 | [
"FSFAP"
] | null | null | null | build/lib/CameraControl/Record.py | uwdrone/Abzu | 9617dd036402d347c40c2e30f823b51f5236e895 | [
"FSFAP"
] | null | null | null | from threading import Thread
import time
class VideoRecorder(Thread):
def __init__(self, inputMonitor):
Thread.__init__(self)
self.inputMap = inputMonitor["inputMap"]
self.readLock = inputMonitor["readLock"]
self.writeLock = inputMonitor["writeLock"]
self.inputMonitor = inpu... | 30.725 | 89 | 0.574451 | 113 | 1,229 | 6.159292 | 0.362832 | 0.206897 | 0.12931 | 0.08908 | 0.100575 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010778 | 0.320586 | 1,229 | 39 | 90 | 31.512821 | 0.822754 | 0.007323 | 0 | 0.064516 | 0 | 0 | 0.090238 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0.064516 | 0.064516 | 0 | 0.193548 | 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 |
dc7384b6301a40b03f6ddbdae785f78fa5c0fbc8 | 2,378 | py | Python | datahub/mi_dashboard/test/test_tasks.py | alixedi/data-hub-api-cd-poc | a5e5ea45bb496c0d2a06635864514af0c7d4291a | [
"MIT"
] | null | null | null | datahub/mi_dashboard/test/test_tasks.py | alixedi/data-hub-api-cd-poc | a5e5ea45bb496c0d2a06635864514af0c7d4291a | [
"MIT"
] | 16 | 2020-04-01T15:25:35.000Z | 2020-04-14T14:07:30.000Z | datahub/mi_dashboard/test/test_tasks.py | alixedi/data-hub-api-cd-poc | a5e5ea45bb496c0d2a06635864514af0c7d4291a | [
"MIT"
] | null | null | null | from unittest.mock import Mock
import pytest
from django.conf import settings
from datahub.mi_dashboard.tasks import mi_investment_project_etl_pipeline
# mark the whole module for db use
pytestmark = pytest.mark.django_db
def test_mi_dashboard_feed(monkeypatch):
"""Test that the fdi_dashboard_pipeline gets cal... | 33.971429 | 92 | 0.760303 | 316 | 2,378 | 5.259494 | 0.234177 | 0.122744 | 0.194344 | 0.22503 | 0.615523 | 0.541516 | 0.516847 | 0.516847 | 0.456679 | 0.456679 | 0 | 0.007534 | 0.162742 | 2,378 | 69 | 93 | 34.463768 | 0.827223 | 0.087889 | 0 | 0.354167 | 0 | 0 | 0.165351 | 0.136089 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.0625 | false | 0 | 0.083333 | 0 | 0.145833 | 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 |
dc8a3888bc122de88d26ed8b8845cc00d1016249 | 486 | py | Python | src/modules/print.py | wuttinanhi/dumb-lang | 031679717d7ae8dbc5024a676d3c34c684aedc3c | [
"Apache-2.0"
] | null | null | null | src/modules/print.py | wuttinanhi/dumb-lang | 031679717d7ae8dbc5024a676d3c34c684aedc3c | [
"Apache-2.0"
] | null | null | null | src/modules/print.py | wuttinanhi/dumb-lang | 031679717d7ae8dbc5024a676d3c34c684aedc3c | [
"Apache-2.0"
] | null | null | null | from typing import Dict
from src.token import Token
from src.modules.content import ContentParser
from src.variable_storage import VariableStorage
class PrintModule:
@staticmethod
def execute(token: Token, variable_storage: VariableStorage):
# seperate text by space
content = token.line.script.... | 28.588235 | 66 | 0.711934 | 57 | 486 | 6.017544 | 0.561404 | 0.061224 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005277 | 0.220165 | 486 | 16 | 67 | 30.375 | 0.899736 | 0.12963 | 0 | 0 | 0 | 0 | 0.002387 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.4 | 0 | 0.6 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
dca66bc2807efbe25d7332dc3fe606e37dd87a3a | 60 | py | Python | src/cscli/views/__init__.py | ryohare/python-cscli | 9455e2758fea2c1a1025c40d785fdb502ebee7ca | [
"MIT"
] | null | null | null | src/cscli/views/__init__.py | ryohare/python-cscli | 9455e2758fea2c1a1025c40d785fdb502ebee7ca | [
"MIT"
] | null | null | null | src/cscli/views/__init__.py | ryohare/python-cscli | 9455e2758fea2c1a1025c40d785fdb502ebee7ca | [
"MIT"
] | null | null | null | from .hosts import HostsView
__all__ = [
"HostsView"
]
| 10 | 28 | 0.666667 | 6 | 60 | 6 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.233333 | 60 | 5 | 29 | 12 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0.15 | 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 |
dcb96c7eb3a980ffbe3345807b1bf75a37150344 | 588 | py | Python | donations/payment_gateways/stripe/constants.py | diffractive/newstream | cf1a1f230e18d01c63b50ab9d360aa44ac5a486f | [
"MIT"
] | 1 | 2020-05-03T12:33:42.000Z | 2020-05-03T12:33:42.000Z | donations/payment_gateways/stripe/constants.py | diffractive/newstream | cf1a1f230e18d01c63b50ab9d360aa44ac5a486f | [
"MIT"
] | 14 | 2020-07-06T20:05:57.000Z | 2022-03-12T00:39:11.000Z | donations/payment_gateways/stripe/constants.py | diffractive/newstream | cf1a1f230e18d01c63b50ab9d360aa44ac5a486f | [
"MIT"
] | null | null | null | from site_settings.models import GATEWAY_CAN_EDIT_SUBSCRIPTION, GATEWAY_CAN_TOGGLE_SUBSCRIPTION, GATEWAY_CAN_CANCEL_SUBSCRIPTION
API_CAPABILITIES = [GATEWAY_CAN_EDIT_SUBSCRIPTION, GATEWAY_CAN_TOGGLE_SUBSCRIPTION, GATEWAY_CAN_CANCEL_SUBSCRIPTION]
EVENT_CHECKOUT_SESSION_COMPLETED = 'checkout.session.completed'
EVENT_PAY... | 65.333333 | 128 | 0.891156 | 69 | 588 | 7.057971 | 0.376812 | 0.123203 | 0.180698 | 0.106776 | 0.336756 | 0.336756 | 0.336756 | 0.336756 | 0.336756 | 0.336756 | 0 | 0 | 0.04932 | 588 | 9 | 129 | 65.333333 | 0.871199 | 0 | 0 | 0 | 0 | 0 | 0.229202 | 0.183362 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 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 |
f49b517e78ed6d123cf31f145b7c30127f527799 | 1,054 | py | Python | setup.py | sozforex/pygments-plugins-serv | 436be1719056c3aeb34bbf32f002932d7d9e7301 | [
"BSD-3-Clause"
] | null | null | null | setup.py | sozforex/pygments-plugins-serv | 436be1719056c3aeb34bbf32f002932d7d9e7301 | [
"BSD-3-Clause"
] | null | null | null | setup.py | sozforex/pygments-plugins-serv | 436be1719056c3aeb34bbf32f002932d7d9e7301 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
from setuptools import setup
setup(name='pygments-plugins-serv',
version='0.0.1',
description='Pygments plugins.',
keywords='pygments plugins',
license='BSD',
author='Kichatov Feodor',
author_email='sozforex@gmail.com',
url='https://github.com/sozforex/pyg... | 31.939394 | 84 | 0.609108 | 99 | 1,054 | 6.393939 | 0.59596 | 0.165877 | 0.150079 | 0.078989 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014031 | 0.256167 | 1,054 | 32 | 85 | 32.9375 | 0.793367 | 0.01518 | 0 | 0 | 0 | 0 | 0.612343 | 0.145612 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.041667 | 0 | 0.041667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f4a029c309ef0408c208afdd3383c1e3ab1af1d7 | 203 | py | Python | src/setup.py | litosly/atec | 1632531f58c5c15f4d2072c29c22ab1f7464b4f8 | [
"MIT"
] | 1 | 2018-12-03T16:38:47.000Z | 2018-12-03T16:38:47.000Z | src/setup.py | litosly/atec | 1632531f58c5c15f4d2072c29c22ab1f7464b4f8 | [
"MIT"
] | null | null | null | src/setup.py | litosly/atec | 1632531f58c5c15f4d2072c29c22ab1f7464b4f8 | [
"MIT"
] | null | null | null | # python environment setup
from distutils.core import setup
setup(
name='ATEC_wenle',
version='0.1dev',
packages=['',],
license='',
# long_description=open('README.txt').read(),
) | 18.454545 | 49 | 0.635468 | 23 | 203 | 5.521739 | 0.913043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012195 | 0.192118 | 203 | 11 | 50 | 18.454545 | 0.762195 | 0.339901 | 0 | 0 | 0 | 0 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.142857 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f4b3d03e1ff6948ba2e7cf92e698642597cb5418 | 1,897 | py | Python | project2/tests/q3_1_1.py | DrRossTaylor/intro-DS-Assignments | 88f0747b89869cae4e4227e6f3a936f0f1583937 | [
"CC0-1.0"
] | null | null | null | project2/tests/q3_1_1.py | DrRossTaylor/intro-DS-Assignments | 88f0747b89869cae4e4227e6f3a936f0f1583937 | [
"CC0-1.0"
] | null | null | null | project2/tests/q3_1_1.py | DrRossTaylor/intro-DS-Assignments | 88f0747b89869cae4e4227e6f3a936f0f1583937 | [
"CC0-1.0"
] | null | null | null | test = {
'name': 'q3_1_1',
'points': 1,
'suites': [
{
'cases': [
{
'code': r"""
>>> len(my_20_features)
20
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> np.all([f in test_movies.labels f... | 28.742424 | 94 | 0.448603 | 211 | 1,897 | 3.933649 | 0.364929 | 0.03012 | 0.072289 | 0.13253 | 0.728916 | 0.728916 | 0.660241 | 0.660241 | 0.568675 | 0.568675 | 0 | 0.022026 | 0.401687 | 1,897 | 65 | 95 | 29.184615 | 0.709251 | 0 | 0 | 0.461538 | 0 | 0.030769 | 0.706906 | 0.117027 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 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 |
f4baf5c1af6d47d513d1578fbc685f36061ce7c3 | 1,086 | py | Python | flask_wiki/backend/models.py | gcavalcante8808/flask-wiki | a2c0af2e7fa6ce64faeb38e678a2e207ff63f3a6 | [
"BSD-2-Clause"
] | null | null | null | flask_wiki/backend/models.py | gcavalcante8808/flask-wiki | a2c0af2e7fa6ce64faeb38e678a2e207ff63f3a6 | [
"BSD-2-Clause"
] | 35 | 2015-10-08T21:00:22.000Z | 2021-06-25T15:29:41.000Z | flask_wiki/backend/models.py | gcavalcante8808/flask-wiki | a2c0af2e7fa6ce64faeb38e678a2e207ff63f3a6 | [
"BSD-2-Clause"
] | 1 | 2019-07-09T14:17:48.000Z | 2019-07-09T14:17:48.000Z | import uuid
import markdown2
from flask_sqlalchemy import SQLAlchemy
from sqlalchemy import UniqueConstraint, event
from flask_wiki.backend.custom_fields import GUIDField
from slugify import slugify
db = SQLAlchemy()
# TODO: Add Owner and other security fields later.
class Page(db.Model):
"""
Implements the ... | 27.15 | 69 | 0.736648 | 143 | 1,086 | 5.405594 | 0.412587 | 0.051746 | 0.051746 | 0.089263 | 0.225097 | 0.100906 | 0.100906 | 0.100906 | 0 | 0 | 0 | 0.003286 | 0.1593 | 1,086 | 39 | 70 | 27.846154 | 0.843373 | 0.069982 | 0 | 0 | 0 | 0 | 0.041247 | 0 | 0 | 0 | 0 | 0.025641 | 0 | 1 | 0.166667 | false | 0 | 0.25 | 0.083333 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
f4c10b691dc7f8fee363bd796f93466d86266daf | 196 | py | Python | lib/_version.py | ppizarror/FI3104-Template | 730b2b2d2af2c205e068fd7499ac3fd1bdd4fdfa | [
"MIT"
] | null | null | null | lib/_version.py | ppizarror/FI3104-Template | 730b2b2d2af2c205e068fd7499ac3fd1bdd4fdfa | [
"MIT"
] | null | null | null | lib/_version.py | ppizarror/FI3104-Template | 730b2b2d2af2c205e068fd7499ac3fd1bdd4fdfa | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
VERSION
Control de versiones.
Autor: PABLO PIZARRO @ github.com/ppizarror
Fecha: SEPTIEMBRE 2016
Licencia: MiT licence
"""
__version__ = '1.0.0'
| 16.333333 | 43 | 0.693878 | 27 | 196 | 4.888889 | 0.925926 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0.142857 | 196 | 11 | 44 | 17.818182 | 0.738095 | 0.826531 | 0 | 0 | 0 | 0 | 0.2 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f4cb01b0a60cdc67597b31e3763ce3d157d00e7c | 860 | py | Python | sarpy/io/general/nitf_elements/tres/unclass/CSPROA.py | pressler-vsc/sarpy | fa6c951c42b9a7d9df2edfa53c771494cb0246fb | [
"MIT"
] | 1 | 2021-02-04T08:44:18.000Z | 2021-02-04T08:44:18.000Z | sarpy/io/general/nitf_elements/tres/unclass/CSPROA.py | pressler-vsc/sarpy | fa6c951c42b9a7d9df2edfa53c771494cb0246fb | [
"MIT"
] | null | null | null | sarpy/io/general/nitf_elements/tres/unclass/CSPROA.py | pressler-vsc/sarpy | fa6c951c42b9a7d9df2edfa53c771494cb0246fb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from ..tre_elements import TREExtension, TREElement
__classification__ = "UNCLASSIFIED"
__author__ = "Thomas McCullough"
class CSPROAType(TREElement):
def __init__(self, value):
super(CSPROAType, self).__init__()
self.add_field('RESERVED_0', 's', 12, value)
self.a... | 31.851852 | 52 | 0.632558 | 113 | 860 | 4.460177 | 0.345133 | 0.138889 | 0.238095 | 0.357143 | 0.484127 | 0.484127 | 0.444444 | 0 | 0 | 0 | 0 | 0.043988 | 0.206977 | 860 | 26 | 53 | 33.076923 | 0.695015 | 0.024419 | 0 | 0 | 0 | 0 | 0.164875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.052632 | 0 | 0.315789 | 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 |
f4cbf31b94fe29159209492373bfb6b4758ce678 | 6,165 | py | Python | python/pyspark/mllib/feature.py | loleek/spark | 671d709ad8abc85666d09d75c84b39f2a1c5d360 | [
"Apache-2.0"
] | 1 | 2019-10-14T03:56:23.000Z | 2019-10-14T03:56:23.000Z | python/pyspark/mllib/feature.py | loleek/spark | 671d709ad8abc85666d09d75c84b39f2a1c5d360 | [
"Apache-2.0"
] | null | null | null | python/pyspark/mllib/feature.py | loleek/spark | 671d709ad8abc85666d09d75c84b39f2a1c5d360 | [
"Apache-2.0"
] | null | null | null | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 31.454082 | 98 | 0.641038 | 730 | 6,165 | 5.328767 | 0.354795 | 0.020823 | 0.01671 | 0.010797 | 0.08946 | 0.059126 | 0.046787 | 0.01491 | 0.01491 | 0.01491 | 0 | 0.01369 | 0.265369 | 6,165 | 195 | 99 | 31.615385 | 0.84522 | 0.142741 | 0 | 0.104478 | 0 | 0 | 0.019016 | 0 | 0 | 0 | 0 | 0.010256 | 0 | 0 | null | null | 0 | 0.059701 | 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 |
f4cee5e426a1bbbea73b22b5c9fb0dfb7cd7931d | 1,250 | py | Python | linebot/models/video_play_complete.py | coman1024/line-bot-sdk-python | f4fbc8abd1b0b287902344d33590f4fab48e1c75 | [
"Apache-2.0"
] | 2 | 2021-09-07T13:06:50.000Z | 2021-09-14T08:14:45.000Z | linebot/models/video_play_complete.py | coman1024/line-bot-sdk-python | f4fbc8abd1b0b287902344d33590f4fab48e1c75 | [
"Apache-2.0"
] | null | null | null | linebot/models/video_play_complete.py | coman1024/line-bot-sdk-python | f4fbc8abd1b0b287902344d33590f4fab48e1c75 | [
"Apache-2.0"
] | 1 | 2021-01-13T10:08:53.000Z | 2021-01-13T10:08:53.000Z | # -*- coding: utf-8 -*-
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | 32.051282 | 76 | 0.7136 | 167 | 1,250 | 5.191617 | 0.616766 | 0.069204 | 0.029988 | 0.036909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008065 | 0.2064 | 1,250 | 38 | 77 | 32.894737 | 0.865927 | 0.6512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.5 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
f4e5a55e3445ecc038625e6feaeb7d1f89ef7717 | 544 | py | Python | jianzhioffer/translateNum.py | summer-vacation/AlgoExec | 55c6c3e7890b596b709b50cafa415b9594c03edd | [
"MIT"
] | null | null | null | jianzhioffer/translateNum.py | summer-vacation/AlgoExec | 55c6c3e7890b596b709b50cafa415b9594c03edd | [
"MIT"
] | 2 | 2019-12-09T06:12:51.000Z | 2019-12-16T14:38:34.000Z | jianzhioffer/translateNum.py | summer-vacation/AlgoExec | 55c6c3e7890b596b709b50cafa415b9594c03edd | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
File Name: translateNum
Author : jing
Date: 2020/4/26
把数字翻译成字符串,求不同的翻译个数
"""
class Solution:
def translateNum(self, num: int) -> int:
if num is None or num < 0:
return 0
if 0 <= num <= 9:
return 1
mod = nu... | 20.923077 | 79 | 0.512868 | 65 | 544 | 4.292308 | 0.523077 | 0.172043 | 0.204301 | 0.179211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089595 | 0.363971 | 544 | 25 | 80 | 21.76 | 0.716763 | 0.211397 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.5 | 0.083333 | 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 |
761c18c04e36dc554e9567b8569af372d958e27f | 141 | py | Python | launcher.py | CircuitsBots/AutoSnipe | 59908d217f9f4c373ca383c91c27c735e9fc24f2 | [
"MIT"
] | 1 | 2021-04-22T17:51:51.000Z | 2021-04-22T17:51:51.000Z | launcher.py | CircuitsBots/AutoSnipe | 59908d217f9f4c373ca383c91c27c735e9fc24f2 | [
"MIT"
] | null | null | null | launcher.py | CircuitsBots/AutoSnipe | 59908d217f9f4c373ca383c91c27c735e9fc24f2 | [
"MIT"
] | null | null | null | import os
import dotenv
from app.bot import AutoSnipe
bot = AutoSnipe(".")
dotenv.load_dotenv()
token = os.getenv("TOKEN")
bot.run(token)
| 12.818182 | 29 | 0.730496 | 21 | 141 | 4.857143 | 0.52381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134752 | 141 | 10 | 30 | 14.1 | 0.836066 | 0 | 0 | 0 | 0 | 0 | 0.042553 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
5213641b0265b67149013504431a63ae12d41600 | 301 | py | Python | courses/urls.py | amandasavluchinske/mooc | 3d83748b2ddda646597b5a3b57f838ed0fb99b3e | [
"MIT"
] | null | null | null | courses/urls.py | amandasavluchinske/mooc | 3d83748b2ddda646597b5a3b57f838ed0fb99b3e | [
"MIT"
] | 2 | 2021-05-07T01:37:50.000Z | 2022-02-10T10:08:41.000Z | courses/urls.py | amandasavluchinske/mooc | 3d83748b2ddda646597b5a3b57f838ed0fb99b3e | [
"MIT"
] | null | null | null | from django.conf import settings
from django.conf.urls import include, url # noqa
from django.contrib import admin
from django.views.generic import TemplateView, FormView
import django_js_reverse.views
urlpatterns = [
url(r'^$', TemplateView.as_view(template_name='index.html'), name='home'),
] | 30.1 | 78 | 0.777409 | 42 | 301 | 5.47619 | 0.619048 | 0.173913 | 0.121739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116279 | 301 | 10 | 79 | 30.1 | 0.864662 | 0.013289 | 0 | 0 | 0 | 0 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.625 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
5218eea41bed8e9fd45d629d2f0b3249c3bbac54 | 165 | py | Python | examples/python/simple/func_global.py | airgiser/ucb | d03e62a17f35a9183ed36662352f603f0f673194 | [
"MIT"
] | 1 | 2022-01-08T14:59:44.000Z | 2022-01-08T14:59:44.000Z | examples/python/simple/func_global.py | airgiser/just-for-fun | d03e62a17f35a9183ed36662352f603f0f673194 | [
"MIT"
] | null | null | null | examples/python/simple/func_global.py | airgiser/just-for-fun | d03e62a17f35a9183ed36662352f603f0f673194 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# Filename: func_global.py
def func():
global x
print 'x is', x
x = 2
print 'x is change to', x
x = 50
func()
print 'x is now',x
| 12.692308 | 29 | 0.569697 | 31 | 165 | 3 | 0.516129 | 0.193548 | 0.258065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025424 | 0.284848 | 165 | 12 | 30 | 13.75 | 0.762712 | 0.248485 | 0 | 0 | 0 | 0 | 0.213115 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.375 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5233c68bce71ec8a0f235408ac38a757b34a3140 | 1,140 | py | Python | tackle/providers/tackle/tests/block/test_provider_tackle_block.py | geometry-labs/tackle-box | 83424a10416955ba983f0c14ec89bd79673a4282 | [
"BSD-3-Clause"
] | 1 | 2021-04-13T23:10:11.000Z | 2021-04-13T23:10:11.000Z | tackle/providers/tackle/tests/block/test_provider_tackle_block.py | geometry-labs/tackle-box | 83424a10416955ba983f0c14ec89bd79673a4282 | [
"BSD-3-Clause"
] | 4 | 2021-01-27T00:06:12.000Z | 2021-02-12T01:20:32.000Z | tackle/providers/tackle/tests/block/test_provider_tackle_block.py | geometry-labs/tackle-box | 83424a10416955ba983f0c14ec89bd79673a4282 | [
"BSD-3-Clause"
] | 1 | 2021-05-07T05:07:29.000Z | 2021-05-07T05:07:29.000Z | """Tests dict input objects for `tackle.providers.tackle.block` module."""
from tackle.main import tackle
def test_provider_system_hook_block_tackle(change_dir):
"""Simple block test."""
output = tackle('basic.yaml', no_input=True)
assert output['stuff'] == 'here'
assert 'things' not in output
def ... | 27.804878 | 74 | 0.695614 | 152 | 1,140 | 4.960526 | 0.296053 | 0.095491 | 0.09947 | 0.139257 | 0.399204 | 0.371353 | 0.180371 | 0 | 0 | 0 | 0 | 0.00104 | 0.15614 | 1,140 | 40 | 75 | 28.5 | 0.782744 | 0.149123 | 0 | 0 | 0 | 0 | 0.15229 | 0 | 0 | 0 | 0 | 0 | 0.421053 | 1 | 0.263158 | false | 0 | 0.052632 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
526064e8f9352f549958bdfdba4da287f5d5cbc8 | 1,452 | py | Python | venv/Lib/site-packages/tests/smoke/device_info.py | melihteke/ebook_study | 4848ea42e37ee1d6ec777bfc33f49984653ace34 | [
"MIT"
] | 1 | 2020-04-17T18:53:02.000Z | 2020-04-17T18:53:02.000Z | venv/Lib/site-packages/tests/smoke/device_info.py | melihteke/ebook_study | 4848ea42e37ee1d6ec777bfc33f49984653ace34 | [
"MIT"
] | null | null | null | venv/Lib/site-packages/tests/smoke/device_info.py | melihteke/ebook_study | 4848ea42e37ee1d6ec777bfc33f49984653ace34 | [
"MIT"
] | null | null | null | import os
host = os.getenv("SCRAPLI_SMOKE_HOST", None)
port = os.getenv("SCRAPLI_SMOKE_PORT", None)
user = os.getenv("SCRAPLI_SMOKE_USER", None)
password = os.getenv("SCRAPLI_SMOKE_PASS", None)
iosxe_device = {
"host": host or "172.18.0.11",
"port": port or 22,
"auth_username": user or "vrnetlab",
"au... | 23.047619 | 48 | 0.610882 | 176 | 1,452 | 4.818182 | 0.244318 | 0.058962 | 0.035377 | 0.112028 | 0.685142 | 0.60967 | 0.60967 | 0.60967 | 0.60967 | 0.60967 | 0 | 0.051993 | 0.205234 | 1,452 | 62 | 49 | 23.419355 | 0.682842 | 0 | 0 | 0.571429 | 0 | 0 | 0.469697 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.107143 | 0.017857 | 0 | 0.017857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
5261073fd1db37b28c63f34abc35676da5fa9abd | 298 | py | Python | tests/test_rqscheduler.py | dymaxionlabs/nb_workflows | 336e4d83dd5f8a7edfbaacfa426b23a42c0a68a9 | [
"Apache-2.0"
] | 4 | 2022-02-17T19:47:52.000Z | 2022-02-17T20:11:06.000Z | tests/test_rqscheduler.py | dymaxionlabs/nb_workflows | 336e4d83dd5f8a7edfbaacfa426b23a42c0a68a9 | [
"Apache-2.0"
] | 2 | 2022-03-26T00:07:05.000Z | 2022-03-30T21:20:00.000Z | tests/test_rqscheduler.py | dymaxionlabs/nb_workflows | 336e4d83dd5f8a7edfbaacfa426b23a42c0a68a9 | [
"Apache-2.0"
] | 1 | 2022-02-18T13:33:00.000Z | 2022-02-18T13:33:00.000Z | from labfunctions.conf.server_settings import settings
from labfunctions.control_plane import rqscheduler
def test_rqscheduler_run(mocker):
mocker.patch(
"labfunctions.control_plane.rqscheduler.Scheduler.run", return_value=None
)
rqscheduler.run(settings.RQ_REDIS, 5, "INFO")
| 29.8 | 81 | 0.785235 | 36 | 298 | 6.305556 | 0.611111 | 0.140969 | 0.211454 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003861 | 0.130872 | 298 | 9 | 82 | 33.111111 | 0.872587 | 0 | 0 | 0 | 0 | 0 | 0.187919 | 0.174497 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.428571 | 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 |
5272cfded6807b3a8d9d5917b0e18331709aafd1 | 3,540 | py | Python | src/sagemaker/workflow/entities.py | mufaddal-rohawala/sagemaker-python-sdk | 72c12bb1481c368f799b17c38d07c5fc34864093 | [
"Apache-2.0"
] | null | null | null | src/sagemaker/workflow/entities.py | mufaddal-rohawala/sagemaker-python-sdk | 72c12bb1481c368f799b17c38d07c5fc34864093 | [
"Apache-2.0"
] | 20 | 2021-09-17T20:50:11.000Z | 2021-12-09T00:29:02.000Z | src/sagemaker/workflow/entities.py | mufaddal-rohawala/sagemaker-python-sdk | 72c12bb1481c368f799b17c38d07c5fc34864093 | [
"Apache-2.0"
] | null | null | null | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompan... | 32.181818 | 90 | 0.686158 | 438 | 3,540 | 5.429224 | 0.374429 | 0.025231 | 0.03995 | 0.046257 | 0.296888 | 0.257359 | 0.216569 | 0.198486 | 0.198486 | 0.168209 | 0 | 0.001456 | 0.224011 | 3,540 | 109 | 91 | 32.477064 | 0.864216 | 0.450565 | 0 | 0.214286 | 0 | 0 | 0.195773 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.119048 | 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 |
5278bc829279f7e15d79fd95354c40b02e9c04cc | 2,565 | py | Python | zntrack/zn/dependencies.py | zincware/ZnTrack | 7767e133720a75ccb289a5b19d7960584e9dc74f | [
"Apache-2.0"
] | 16 | 2021-12-08T15:35:22.000Z | 2022-03-29T09:43:31.000Z | zntrack/zn/dependencies.py | zincware/ZnTrack | 7767e133720a75ccb289a5b19d7960584e9dc74f | [
"Apache-2.0"
] | 108 | 2021-10-20T08:00:57.000Z | 2022-03-30T14:52:30.000Z | zntrack/zn/dependencies.py | zincware/ZnTrack | 7767e133720a75ccb289a5b19d7960584e9dc74f | [
"Apache-2.0"
] | 2 | 2021-11-18T07:41:52.000Z | 2022-03-17T15:39:56.000Z | from __future__ import annotations
import dataclasses
import pathlib
from typing import TYPE_CHECKING, List, Union
import znjson
from zntrack.utils import utils
if TYPE_CHECKING:
from zntrack import Node
@dataclasses.dataclass
class NodeAttribute:
module: str
cls: str
name: str
attribute: str
... | 28.5 | 87 | 0.695127 | 308 | 2,565 | 5.691558 | 0.37013 | 0.044495 | 0.03765 | 0.044495 | 0.133485 | 0.133485 | 0.133485 | 0.095836 | 0.095836 | 0.095836 | 0 | 0.001499 | 0.219493 | 2,565 | 89 | 88 | 28.820225 | 0.874126 | 0.25614 | 0 | 0.041667 | 0 | 0 | 0.082785 | 0 | 0 | 0 | 0 | 0.011236 | 0 | 1 | 0.083333 | false | 0 | 0.145833 | 0 | 0.520833 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
527d6947d76baee892980b6d09552e88ce1b4422 | 2,676 | py | Python | tests/conftest.py | FFY00/python-uhid | 99f459aef3934a146d1954ae372b1a107b1f34eb | [
"MIT"
] | 7 | 2020-08-28T01:57:58.000Z | 2021-10-16T10:49:58.000Z | tests/conftest.py | FFY00/python-uhid | 99f459aef3934a146d1954ae372b1a107b1f34eb | [
"MIT"
] | 4 | 2020-08-28T00:25:35.000Z | 2021-04-08T19:13:48.000Z | tests/conftest.py | FFY00/python-uhid | 99f459aef3934a146d1954ae372b1a107b1f34eb | [
"MIT"
] | null | null | null | import pytest
@pytest.fixture
def basic_mouse_rdesc():
return [
# Generic mouse report descriptor
0x05, 0x01, # Usage Page (Generic Desktop) 0
0x09, 0x02, # Usage (Mouse) 2
0xa1, 0x01, # Collection (Application) 4
0x09, 0x02, # .U... | 46.137931 | 61 | 0.420777 | 258 | 2,676 | 4.352713 | 0.372093 | 0.032057 | 0.060552 | 0.050757 | 0.196794 | 0.121995 | 0 | 0 | 0 | 0 | 0 | 0.219888 | 0.466368 | 2,676 | 57 | 62 | 46.947368 | 0.566527 | 0.547459 | 0 | 0.411765 | 0 | 0 | 0 | 0 | 0 | 0 | 0.281304 | 0 | 0 | 1 | 0.039216 | true | 0 | 0.019608 | 0.039216 | 0.098039 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
52803545f3b8b643a3ef5b1ddbc0043fdf710aed | 269 | py | Python | vk_types/base.py | kz159/vk_types | 84496ca22e34f0991a2d8dc353601272fb9f2108 | [
"MIT"
] | null | null | null | vk_types/base.py | kz159/vk_types | 84496ca22e34f0991a2d8dc353601272fb9f2108 | [
"MIT"
] | null | null | null | vk_types/base.py | kz159/vk_types | 84496ca22e34f0991a2d8dc353601272fb9f2108 | [
"MIT"
] | null | null | null | import pydantic
class BaseModel(pydantic.BaseModel):
class Config:
allow_mutation = False
def __str__(self):
return str(self.dict())
def __repr__(self):
return f"{self.__class__} {getattr(self, 'id', getattr(self, 'type', ''))}"
| 20.692308 | 83 | 0.628253 | 31 | 269 | 5.032258 | 0.580645 | 0.089744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230483 | 269 | 12 | 84 | 22.416667 | 0.753623 | 0 | 0 | 0 | 0 | 0.125 | 0.241636 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.25 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
528dac7ca562f7233e511a674159e4616f0c822c | 268 | py | Python | src/core/migrations/0107_merge_20191024_0737.py | metabolism-of-cities/ARCHIVED-metabolism-of-cities-platform-v3 | c754d3b1b401906a21640b8eacb6b724a448b31c | [
"MIT"
] | null | null | null | src/core/migrations/0107_merge_20191024_0737.py | metabolism-of-cities/ARCHIVED-metabolism-of-cities-platform-v3 | c754d3b1b401906a21640b8eacb6b724a448b31c | [
"MIT"
] | null | null | null | src/core/migrations/0107_merge_20191024_0737.py | metabolism-of-cities/ARCHIVED-metabolism-of-cities-platform-v3 | c754d3b1b401906a21640b8eacb6b724a448b31c | [
"MIT"
] | null | null | null | # Generated by Django 2.1.2 on 2019-10-24 07:37
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('core', '0106_auto_20191024_0738'),
('core', '0106_merge_20191024_0726'),
]
operations = [
]
| 17.866667 | 47 | 0.641791 | 33 | 268 | 5.030303 | 0.787879 | 0.096386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.229268 | 0.235075 | 268 | 14 | 48 | 19.142857 | 0.580488 | 0.16791 | 0 | 0 | 1 | 0 | 0.248869 | 0.21267 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
5290f8333d19eb6ffaf139cb721b7ffed661d212 | 787 | py | Python | TopQuarkAnalysis/TopJetCombination/python/TtFullLepHypKinSolution_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | TopQuarkAnalysis/TopJetCombination/python/TtFullLepHypKinSolution_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | TopQuarkAnalysis/TopJetCombination/python/TtFullLepHypKinSolution_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
#
# module to make the kinematic solution hypothesis
#
ttFullLepHypKinSolution = cms.EDProducer("TtFullLepHypKinSolution",
electrons = cms.InputTag("selectedPatElectrons"),
muons = cms.InputTag("selectedPatMuons"),
jets = cms.InputTag("selectedPatJets"), ... | 39.35 | 99 | 0.717916 | 56 | 787 | 10.089286 | 0.625 | 0.155752 | 0.325664 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001543 | 0.17662 | 787 | 19 | 100 | 41.421053 | 0.87037 | 0.060991 | 0 | 0 | 0 | 0 | 0.375171 | 0.222374 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 1 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5292cfd908f895829e2b11e6368eeccc4e342901 | 285 | py | Python | tests/guinea-pigs/unittest/test_changes_name.py | Tirzono/teamcity-messages | e7f7334e2956a9e707222e4c83de9ffeb15b8ac0 | [
"Apache-2.0"
] | 105 | 2015-06-24T15:40:41.000Z | 2022-02-04T10:30:34.000Z | tests/guinea-pigs/unittest/test_changes_name.py | Tirzono/teamcity-messages | e7f7334e2956a9e707222e4c83de9ffeb15b8ac0 | [
"Apache-2.0"
] | 145 | 2015-06-24T15:26:28.000Z | 2022-03-22T20:04:19.000Z | tests/guinea-pigs/unittest/test_changes_name.py | Tirzono/teamcity-messages | e7f7334e2956a9e707222e4c83de9ffeb15b8ac0 | [
"Apache-2.0"
] | 76 | 2015-07-20T08:18:21.000Z | 2022-03-18T20:03:53.000Z | import unittest
from teamcity.unittestpy import TeamcityTestRunner
class Foo(unittest.TestCase):
a = 1
def test_aa(self): pass
def shortDescription(self):
s = str(self.a)
self.a += 10
return s
unittest.main(testRunner=TeamcityTestRunner())
| 14.25 | 50 | 0.666667 | 34 | 285 | 5.558824 | 0.676471 | 0.05291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013953 | 0.245614 | 285 | 19 | 51 | 15 | 0.865116 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.1 | 0.2 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bfeb3cf6ef4f13f92d0eb22554aad60508da4fa4 | 52 | py | Python | eogrow/__init__.py | sentinel-hub/eo-grow | 458202fc55c01cc95a17b442144ef2c935103c80 | [
"MIT"
] | 17 | 2022-01-27T11:50:23.000Z | 2022-02-12T10:01:03.000Z | eogrow/__init__.py | sentinel-hub/eo-grow | 458202fc55c01cc95a17b442144ef2c935103c80 | [
"MIT"
] | 5 | 2022-02-10T11:15:09.000Z | 2022-02-28T10:46:47.000Z | eogrow/__init__.py | sentinel-hub/eo-grow | 458202fc55c01cc95a17b442144ef2c935103c80 | [
"MIT"
] | null | null | null | """
The main init module
"""
__version__ = "1.1.0"
| 8.666667 | 21 | 0.596154 | 8 | 52 | 3.375 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0.192308 | 52 | 5 | 22 | 10.4 | 0.571429 | 0.384615 | 0 | 0 | 0 | 0 | 0.208333 | 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 |
bff343ffa167026068c12f5adf92282e0b8a9b2a | 2,243 | py | Python | src/modules/routerbox/routerboxReportsOS.py | tsuriu/integra | 94aea81852087aef37f994d4db9dece012d10fd1 | [
"MIT"
] | 1 | 2021-08-13T00:53:32.000Z | 2021-08-13T00:53:32.000Z | src/modules/routerbox/routerboxReportsOS.py | tsuriu/integra | 94aea81852087aef37f994d4db9dece012d10fd1 | [
"MIT"
] | null | null | null | src/modules/routerbox/routerboxReportsOS.py | tsuriu/integra | 94aea81852087aef37f994d4db9dece012d10fd1 | [
"MIT"
] | null | null | null | from .odbc_mysql import mysqldb
from decimal import Decimal
class RouterboxBDReports(object):
def __init__(self):
self.host = "172.31.254.41"
self.user = "squid"
self.passwd = "***root*fistel@kaua2020dbrbx"
self.schema = "isupergaus"
self.rbxdb = mysqldb(self.host, self.us... | 59.026316 | 698 | 0.695497 | 300 | 2,243 | 5.023333 | 0.303333 | 0.086264 | 0.08361 | 0.107498 | 0.61712 | 0.61712 | 0.578633 | 0.578633 | 0.578633 | 0.578633 | 0 | 0.012101 | 0.189478 | 2,243 | 37 | 699 | 60.621622 | 0.816832 | 0 | 0 | 0 | 0 | 0.076923 | 0.604102 | 0.200624 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.076923 | 0.076923 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
bff9c45e794d4ee590261bc60152b42109a1677b | 649 | py | Python | class-example/todo.py | nadernashaatn/python-course | da5681d87cc9e9358848d0211b8c22a1512b9f42 | [
"MIT"
] | null | null | null | class-example/todo.py | nadernashaatn/python-course | da5681d87cc9e9358848d0211b8c22a1512b9f42 | [
"MIT"
] | null | null | null | class-example/todo.py | nadernashaatn/python-course | da5681d87cc9e9358848d0211b8c22a1512b9f42 | [
"MIT"
] | null | null | null | class Todo:
"""
Implement the Todo Class
"""
def __init__(self, name, description, points, completed=False):
self.name = name
self.description = description
self.points = points
self.completed = completed
def __repr__(self):
return (f" Task Nam... | 22.37931 | 109 | 0.567026 | 73 | 649 | 4.863014 | 0.356164 | 0.101408 | 0.061972 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002315 | 0.334361 | 649 | 28 | 110 | 23.178571 | 0.819444 | 0.03698 | 0 | 0 | 0 | 0.0625 | 0.148532 | 0 | 0 | 0 | 0 | 0.035714 | 0 | 1 | 0.25 | false | 0 | 0 | 0.0625 | 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 |
8705594c7f19d3db86599b60803ccba51ca08a67 | 450 | py | Python | crawlers/scholarly.py | narayana1043/g-scholar-rank | d1ceae9e2e0a5c517af8f9b6199c405b3e2310fd | [
"Apache-2.0"
] | null | null | null | crawlers/scholarly.py | narayana1043/g-scholar-rank | d1ceae9e2e0a5c517af8f9b6199c405b3e2310fd | [
"Apache-2.0"
] | null | null | null | crawlers/scholarly.py | narayana1043/g-scholar-rank | d1ceae9e2e0a5c517af8f9b6199c405b3e2310fd | [
"Apache-2.0"
] | null | null | null | from fp.fp import FreeProxy
from scholarly import scholarly
class Scholarly:
def __init__(self):
proxy = FreeProxy(rand=True, timeout=1, country_id=['US', 'CA']).get()
scholarly.use_proxy(http=proxy, https=proxy)
def get_author_details(self, name):
"""
:return:
"""
... | 22.5 | 78 | 0.628889 | 54 | 450 | 5.037037 | 0.555556 | 0.044118 | 0.088235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002994 | 0.257778 | 450 | 20 | 79 | 22.5 | 0.811377 | 0.017778 | 0 | 0 | 0 | 0 | 0.009569 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0.090909 | 0.181818 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
870f08effff527b1225f25140e0421a9b4dc341c | 303 | py | Python | utils.py | yonlif/CitySimulator | ca0d0de41cc37ef17f22af2c1a329319d2dbbeb2 | [
"Apache-2.0"
] | null | null | null | utils.py | yonlif/CitySimulator | ca0d0de41cc37ef17f22af2c1a329319d2dbbeb2 | [
"Apache-2.0"
] | null | null | null | utils.py | yonlif/CitySimulator | ca0d0de41cc37ef17f22af2c1a329319d2dbbeb2 | [
"Apache-2.0"
] | null | null | null |
class Location:
def __init__(self, lat: float, lon: float):
self.lat = lat
self.lon = lon
def __repr__(self) -> str:
return f"({self.lat}, {self.lon})"
def str_between(input_str: str, left: str, right: str) -> str:
return input_str.split(left)[1].split(right)[0]
| 23.307692 | 62 | 0.60396 | 45 | 303 | 3.822222 | 0.422222 | 0.122093 | 0.116279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008658 | 0.237624 | 303 | 12 | 63 | 25.25 | 0.735931 | 0 | 0 | 0 | 0 | 0 | 0.07947 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0 | 0.25 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
871194bf2671cc303426cf2916a1b4e3c707ad19 | 72 | py | Python | inchestocm.py | toobythedragontamer/My-work | d1d013523268cdbdcef6b67bbf493dd7b51a202f | [
"CC0-1.0"
] | null | null | null | inchestocm.py | toobythedragontamer/My-work | d1d013523268cdbdcef6b67bbf493dd7b51a202f | [
"CC0-1.0"
] | null | null | null | inchestocm.py | toobythedragontamer/My-work | d1d013523268cdbdcef6b67bbf493dd7b51a202f | [
"CC0-1.0"
] | null | null | null | cm_calculator = cm = input('cm')
inches = int(cm) / 2.54
print(inches) | 24 | 34 | 0.652778 | 12 | 72 | 3.833333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0.166667 | 72 | 3 | 35 | 24 | 0.716667 | 0 | 0 | 0 | 0 | 0 | 0.027397 | 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 |
8712f2c035bb10fafd24c86f27cbc463f2ce0e8f | 94 | py | Python | chapter3/condel/condel/__init__.py | chris-zen/phd-thesis | 1eefdff8e7ca1910304e27ae42551dc64496b101 | [
"Unlicense"
] | 1 | 2015-12-22T00:53:18.000Z | 2015-12-22T00:53:18.000Z | chapter3/condel/condel/__init__.py | chris-zen/phd-thesis | 1eefdff8e7ca1910304e27ae42551dc64496b101 | [
"Unlicense"
] | null | null | null | chapter3/condel/condel/__init__.py | chris-zen/phd-thesis | 1eefdff8e7ca1910304e27ae42551dc64496b101 | [
"Unlicense"
] | null | null | null | VERSION="2.0-dev"
AUTHORS="Barcelona Biomedical Genomics"
AUTHORS_EMAIL="nuria.lopez@upf.edu"
| 23.5 | 39 | 0.797872 | 14 | 94 | 5.285714 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022472 | 0.053191 | 94 | 3 | 40 | 31.333333 | 0.808989 | 0 | 0 | 0 | 0 | 0 | 0.585106 | 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 |
871719d3e6dc5235af8b87adea9772adb011a473 | 101 | py | Python | credentials.sample.py | fuadajip/sentiment-analysis | 3d9fd2e29540a0b774aba3e878759ac64721149c | [
"Apache-2.0"
] | 1 | 2021-04-21T17:58:52.000Z | 2021-04-21T17:58:52.000Z | credentials.sample.py | fuadajip/sentiment-analysis | 3d9fd2e29540a0b774aba3e878759ac64721149c | [
"Apache-2.0"
] | null | null | null | credentials.sample.py | fuadajip/sentiment-analysis | 3d9fd2e29540a0b774aba3e878759ac64721149c | [
"Apache-2.0"
] | null | null | null | # Consume:
CONSUMER_KEY = ''
CONSUMER_SECRET = ''
# Access:
ACCESS_TOKEN = ''
ACCESS_SECRET = '' | 14.428571 | 20 | 0.643564 | 10 | 101 | 6.1 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19802 | 101 | 7 | 21 | 14.428571 | 0.753086 | 0.158416 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8717b33347ca0cf2a3132ed3f31931fa028e9844 | 496 | py | Python | invitation/management/commands/cleanupinvitations.py | volrath/django-invitation-backend | aaab733be53c3626efcb762f5a85793a0963e876 | [
"BSD-3-Clause"
] | 1 | 2019-06-27T13:58:43.000Z | 2019-06-27T13:58:43.000Z | invitation/management/commands/cleanupinvitations.py | volrath/django-invitation-backend | aaab733be53c3626efcb762f5a85793a0963e876 | [
"BSD-3-Clause"
] | null | null | null | invitation/management/commands/cleanupinvitations.py | volrath/django-invitation-backend | aaab733be53c3626efcb762f5a85793a0963e876 | [
"BSD-3-Clause"
] | 3 | 2015-03-29T17:45:02.000Z | 2021-05-10T15:49:40.000Z | """
A management command which deletes expired invitation keys from the database.
Calls ``Invitation.objects.delete_expired_keys()``, which contains the actual
logic for determining which accounts are deleted.
"""
from django.core.management.base import NoArgsCommand
from invitation.models import Invitation
class ... | 27.555556 | 77 | 0.782258 | 61 | 496 | 6.278689 | 0.57377 | 0.101828 | 0.109661 | 0.130548 | 0.365535 | 0.18799 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143145 | 496 | 17 | 78 | 29.176471 | 0.901176 | 0.415323 | 0 | 0 | 0 | 0 | 0.170213 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
871a7d8fb38c3257f2c99e1726e0b23388b2e00c | 334 | py | Python | user.py | paramsingh/lazycoin | 834f58fcbc1e8fd1ff911760992589bd2671c602 | [
"MIT"
] | 14 | 2017-04-01T12:16:01.000Z | 2021-11-25T04:41:38.000Z | user.py | paramsingh/lazycoin | 834f58fcbc1e8fd1ff911760992589bd2671c602 | [
"MIT"
] | 2 | 2017-04-01T22:24:56.000Z | 2017-04-03T08:13:23.000Z | user.py | paramsingh/lazycoin | 834f58fcbc1e8fd1ff911760992589bd2671c602 | [
"MIT"
] | 8 | 2017-04-01T16:30:03.000Z | 2021-01-02T22:34:54.000Z | import rsa
import json
class LazyUser(object):
def __init__(self):
self.pub, self.priv = rsa.newkeys(512)
def sign(self, transaction):
message = json.dumps(transaction.to_dict(), sort_keys=True).encode('utf-8')
signature = rsa.sign(message, self.priv, 'SHA-256')
return (messag... | 25.692308 | 83 | 0.655689 | 44 | 334 | 4.840909 | 0.659091 | 0.075117 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026515 | 0.209581 | 334 | 12 | 84 | 27.833333 | 0.780303 | 0 | 0 | 0 | 0 | 0 | 0.035928 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 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 |
871e13829b34616baf459ddcb84ea6555ac560aa | 9,875 | py | Python | deps/cndict/bundle_friso.py | rrelledge/RediSearch | 096f7cc7557c27cd6a0352a954cb75041d7c38a9 | [
"Apache-2.0",
"Ruby",
"BSD-3-Clause",
"MIT"
] | 2,098 | 2019-05-13T09:11:54.000Z | 2022-03-31T06:24:50.000Z | deps/cndict/bundle_friso.py | rrelledge/RediSearch | 096f7cc7557c27cd6a0352a954cb75041d7c38a9 | [
"Apache-2.0",
"Ruby",
"BSD-3-Clause",
"MIT"
] | 1,659 | 2019-05-13T07:55:29.000Z | 2022-03-31T02:42:57.000Z | deps/cndict/bundle_friso.py | rrelledge/RediSearch | 096f7cc7557c27cd6a0352a954cb75041d7c38a9 | [
"Apache-2.0",
"Ruby",
"BSD-3-Clause",
"MIT"
] | 227 | 2019-05-17T07:54:49.000Z | 2022-03-28T03:50:19.000Z | #!/usr/bin/env python
"""
This script gathers settings and dictionaries from friso (a chinese
tokenization library) and generates a C source file that can later be
compiled into RediSearch, allowing the module to have a built-in chinese
dictionary. By default this script will generate a C source file of
compressed dat... | 28.214286 | 86 | 0.618228 | 1,312 | 9,875 | 4.425305 | 0.256098 | 0.031347 | 0.011195 | 0.008784 | 0.054771 | 0.038925 | 0.038925 | 0.00999 | 0 | 0 | 0 | 0.008829 | 0.243038 | 9,875 | 349 | 87 | 28.295129 | 0.767893 | 0.096 | 0 | 0.140969 | 1 | 0 | 0.126018 | 0.019348 | 0 | 0 | 0.001527 | 0 | 0 | 0 | null | null | 0.008811 | 0.039648 | null | null | 0.004405 | 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 |
87281bfe92af024794b209dfb5797780add7ab8b | 1,508 | py | Python | transaction/migrations/0001_initial.py | chromity/pawnshop-app | 582fe8d14f46d954adb3cbd9c04c2455f6a95fbd | [
"MIT"
] | null | null | null | transaction/migrations/0001_initial.py | chromity/pawnshop-app | 582fe8d14f46d954adb3cbd9c04c2455f6a95fbd | [
"MIT"
] | null | null | null | transaction/migrations/0001_initial.py | chromity/pawnshop-app | 582fe8d14f46d954adb3cbd9c04c2455f6a95fbd | [
"MIT"
] | null | null | null | # Generated by Django 2.1.1 on 2018-09-30 15:16
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='PawnTransaction',
fields=[
('id', models.Au... | 40.756757 | 114 | 0.549735 | 150 | 1,508 | 5.386667 | 0.54 | 0.100248 | 0.155941 | 0.207921 | 0.209158 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047222 | 0.28382 | 1,508 | 36 | 115 | 41.888889 | 0.700926 | 0.029841 | 0 | 0 | 1 | 0 | 0.121834 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.034483 | 0 | 0.172414 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
873b745b14e2b75a79763fdf5ea994b776d78270 | 751 | py | Python | hard/python/c0056_301_remove-invalid-parentheses/00_leetcode_0056.py | drunkwater/leetcode | 8cc4a07763e71efbaedb523015f0c1eff2927f60 | [
"Ruby"
] | null | null | null | hard/python/c0056_301_remove-invalid-parentheses/00_leetcode_0056.py | drunkwater/leetcode | 8cc4a07763e71efbaedb523015f0c1eff2927f60 | [
"Ruby"
] | null | null | null | hard/python/c0056_301_remove-invalid-parentheses/00_leetcode_0056.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
#301. Remove Invalid Parentheses
#Remove the minimum number of invalid parentheses in order to make the input string valid. Return all possible results.
#... | 34.136364 | 119 | 0.652463 | 90 | 751 | 5.444444 | 0.722222 | 0.040816 | 0.053061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004894 | 0.183755 | 751 | 22 | 120 | 34.136364 | 0.794454 | 0.945406 | 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 |
8744c053c8a2f59cb096e1d1d7ebdcccca50306e | 442 | py | Python | user43_xNecki6wqa_0.py | KuanZhasulan/Python-Games | b26f12cc5f052844c056a3922be3371acd114bc5 | [
"Apache-2.0"
] | null | null | null | user43_xNecki6wqa_0.py | KuanZhasulan/Python-Games | b26f12cc5f052844c056a3922be3371acd114bc5 | [
"Apache-2.0"
] | null | null | null | user43_xNecki6wqa_0.py | KuanZhasulan/Python-Games | b26f12cc5f052844c056a3922be3371acd114bc5 | [
"Apache-2.0"
] | null | null | null | # Conditionals Examples
# Return True if year is a leap year, false otherwise
def is_leap_year(year):
if (year % 400) == 0:
return True
elif (year % 100) == 0:
return False
elif (year % 4) == 0:
return True
else:
return False
year = 2012
leap_year = is_l... | 19.217391 | 54 | 0.563348 | 63 | 442 | 3.857143 | 0.333333 | 0.230453 | 0.111111 | 0.090535 | 0.255144 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048951 | 0.352941 | 442 | 22 | 55 | 20.090909 | 0.800699 | 0.165158 | 0 | 0.4 | 0 | 0 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.133333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8758aab1c3714c91f4dd1173d9d4c023be3f749b | 138 | py | Python | mangadex/__init__.py | mansuf/mangadex.py | 42d6278f4383c99fb64add179dff3df3e82b2baa | [
"MIT"
] | null | null | null | mangadex/__init__.py | mansuf/mangadex.py | 42d6278f4383c99fb64add179dff3df3e82b2baa | [
"MIT"
] | null | null | null | mangadex/__init__.py | mansuf/mangadex.py | 42d6278f4383c99fb64add179dff3df3e82b2baa | [
"MIT"
] | null | null | null | """
MangaDex API wrapper for Python
:copyright: (c), 2021 Mansuf
:license: MIT, see LICENSE for more details.
"""
__version__ = 'v0.0.1' | 17.25 | 44 | 0.695652 | 20 | 138 | 4.6 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060345 | 0.15942 | 138 | 8 | 45 | 17.25 | 0.732759 | 0.768116 | 0 | 0 | 0 | 0 | 0.24 | 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 |
8763eb38dc3f40c354c9aeb76e6cac51e465fdfc | 252 | py | Python | django/website/publisher/views.py | aptivate/opendatacomparison | 49784acee56108e37b98744686e1f648a97bd960 | [
"MIT"
] | null | null | null | django/website/publisher/views.py | aptivate/opendatacomparison | 49784acee56108e37b98744686e1f648a97bd960 | [
"MIT"
] | null | null | null | django/website/publisher/views.py | aptivate/opendatacomparison | 49784acee56108e37b98744686e1f648a97bd960 | [
"MIT"
] | null | null | null | from django.views.generic import DetailView, ListView
from .models import Publisher
class PublisherListView(ListView):
queryset = Publisher.objects.all().order_by('country', 'name')
class PublisherDetailView(DetailView):
model = Publisher
| 21 | 66 | 0.77381 | 27 | 252 | 7.185185 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130952 | 252 | 11 | 67 | 22.909091 | 0.885845 | 0 | 0 | 0 | 0 | 0 | 0.043651 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
8771604e56cd07e6e69d1b7bd930f4f7e74538cf | 994 | py | Python | src/nes.py | psykad/pytendo | f8e1eb66b2fcae3dfb69229650eafefd7b5d63d3 | [
"MIT"
] | null | null | null | src/nes.py | psykad/pytendo | f8e1eb66b2fcae3dfb69229650eafefd7b5d63d3 | [
"MIT"
] | null | null | null | src/nes.py | psykad/pytendo | f8e1eb66b2fcae3dfb69229650eafefd7b5d63d3 | [
"MIT"
] | null | null | null | from cpu import CPU
from mmu import MMU
from ppu import PPU
from cartridge import Cartridge
import time
class NES:
def __init__(self):
self.cpu = CPU(self)
self.mmu = MMU(self)
self.ppu = PPU(self)
self.cartridge = None
self.ram = [0xFF] * 2048
self._clock = 0
d... | 23.116279 | 53 | 0.567404 | 120 | 994 | 4.625 | 0.383333 | 0.100901 | 0.059459 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016616 | 0.334004 | 994 | 43 | 54 | 23.116279 | 0.821752 | 0.090543 | 0 | 0.066667 | 0 | 0 | 0.015538 | 0 | 0 | 0 | 0.015538 | 0.023256 | 0 | 1 | 0.233333 | false | 0 | 0.166667 | 0 | 0.433333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
8778653a79b57395882c239baa2288b19a4c9d43 | 912 | py | Python | second/utils/reading pickle.py | mayanks888/second.pytorch_ros | 9915bc0ed827b9e3fe8ba14eb5702a1b75e32d63 | [
"MIT"
] | 1 | 2021-09-29T12:01:22.000Z | 2021-09-29T12:01:22.000Z | second/utils/reading pickle.py | mayanks888/second.pytorch_ros | 9915bc0ed827b9e3fe8ba14eb5702a1b75e32d63 | [
"MIT"
] | null | null | null | second/utils/reading pickle.py | mayanks888/second.pytorch_ros | 9915bc0ed827b9e3fe8ba14eb5702a1b75e32d63 | [
"MIT"
] | null | null | null | import pickle
# datapath_file ='/home/mayank_sati/pycharm_projects/pytorch/second_nuscene_mayank/second/save_pkl/nuscenes_infos_train.pkl'
# datapath_file ='/home/mayank_sati/pycharm_projects/tensorflow/traffic_light_detection_classification-master/traffic_light_classification/autokeras/model_file/test_autokeras_model.... | 60.8 | 185 | 0.781798 | 131 | 912 | 5.122137 | 0.526718 | 0.089419 | 0.09538 | 0.131148 | 0.274218 | 0.274218 | 0.230999 | 0.230999 | 0.160954 | 0 | 0 | 0.029197 | 0.098684 | 912 | 15 | 186 | 60.8 | 0.787105 | 0.725877 | 0 | 0 | 0 | 0.25 | 0.592437 | 0.584034 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8779c5bc5ca9213250c4f3135843cad9ca3a624e | 560 | py | Python | Django/ML/helper.py | webclub/CFI | 122c8ae6fbde6d48398ce938fac28d40ccb6cabc | [
"Apache-2.0"
] | null | null | null | Django/ML/helper.py | webclub/CFI | 122c8ae6fbde6d48398ce938fac28d40ccb6cabc | [
"Apache-2.0"
] | null | null | null | Django/ML/helper.py | webclub/CFI | 122c8ae6fbde6d48398ce938fac28d40ccb6cabc | [
"Apache-2.0"
] | null | null | null | import datetime
import random
import numpy as np
from main import predict
def learn_and_predict(dates, attendance, date_predict):
date = []
for i in dates:
date.append([int(datetime.datetime.strptime(str(i), '%Y-%m-%d').strftime('%u'))])
Y = []
for i in attendance:
Y.append([int(i)]... | 20 | 89 | 0.610714 | 82 | 560 | 4.02439 | 0.439024 | 0.081818 | 0.036364 | 0.163636 | 0.254545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216071 | 560 | 27 | 90 | 20.740741 | 0.751708 | 0 | 0 | 0 | 0 | 0 | 0.055357 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.222222 | null | null | 0.055556 | 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 |
5e428e5aec28226af1b032e091b687431f220a39 | 496 | py | Python | mmdet/models/necks/__init__.py | Gitgigabyte/mmd | 02cf37884d3ac9a6018656d1871695669966dfb3 | [
"Apache-2.0"
] | 1 | 2020-03-13T08:37:35.000Z | 2020-03-13T08:37:35.000Z | mmdet/models/necks/__init__.py | Gitgigabyte/mmd | 02cf37884d3ac9a6018656d1871695669966dfb3 | [
"Apache-2.0"
] | null | null | null | mmdet/models/necks/__init__.py | Gitgigabyte/mmd | 02cf37884d3ac9a6018656d1871695669966dfb3 | [
"Apache-2.0"
] | null | null | null | from .bfp import BFP
from .fpn import FPN
from .hrfpn import HRFPN
from .PAfpn import PAFPN
from .FPXN import FPXN
from .fuseFPN import FuseFPN
from .segprocess_head_neck import SemanticProcessNeck
from .SPN import SemanticPyramidNeck
from .NSPN import NSemanticPyramidNeck
from .GAS import GAS
from .Fuse import FuseNec... | 31 | 80 | 0.745968 | 58 | 496 | 6.275862 | 0.344828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 496 | 15 | 81 | 33.066667 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0.193548 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.785714 | 0 | 0.785714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5e4bdca235cf4fb3e690652fd03dfc87638e77b0 | 953 | py | Python | user.py | GituMbugua/password-locker | efe5b9ed56cb103cbfa53d36a4e4bc7af45dd5fc | [
"MIT"
] | null | null | null | user.py | GituMbugua/password-locker | efe5b9ed56cb103cbfa53d36a4e4bc7af45dd5fc | [
"MIT"
] | null | null | null | user.py | GituMbugua/password-locker | efe5b9ed56cb103cbfa53d36a4e4bc7af45dd5fc | [
"MIT"
] | null | null | null | import pyperclip
import string
import secrets
global user_list
class User:
'''
class that will create accounts for users
'''
user_list = []
def __init__(self, login_name, password):
self.login_name = login_name
self.password = password
def save_user(self):
'''
... | 23.243902 | 70 | 0.583421 | 109 | 953 | 4.954128 | 0.458716 | 0.074074 | 0.048148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00158 | 0.335782 | 953 | 41 | 71 | 23.243902 | 0.851501 | 0.156348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0.333333 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
5e4c28e8f3111626fb3dd065ce6e00ea6bd43be5 | 1,623 | py | Python | tests/test_coordinates.py | seignovert/pyvims | a70b5b9b8bc5c37fa43b7db4d15407f312a31849 | [
"BSD-3-Clause"
] | 4 | 2019-09-16T15:50:22.000Z | 2021-04-08T15:32:48.000Z | tests/test_coordinates.py | seignovert/pyvims | a70b5b9b8bc5c37fa43b7db4d15407f312a31849 | [
"BSD-3-Clause"
] | 3 | 2018-05-04T09:28:24.000Z | 2018-12-03T09:00:31.000Z | tests/test_coordinates.py | seignovert/pyvims | a70b5b9b8bc5c37fa43b7db4d15407f312a31849 | [
"BSD-3-Clause"
] | 1 | 2020-10-12T15:14:17.000Z | 2020-10-12T15:14:17.000Z | """Test coordinates module."""
from pyvims.coordinates import salt, slat, slon, slon_e, slon_w
def test_lon():
"""Test longitude string."""
assert slon(0) == slon(.001) == slon(-.001) == slon(360) == '0°'
assert slon(180) == slon(180.001) == slon(-180) == '180°'
assert slon(90) == slon(-270) == '90°W... | 29.509091 | 68 | 0.557609 | 287 | 1,623 | 3.139373 | 0.146341 | 0.199778 | 0.062153 | 0.09323 | 0.539401 | 0.490566 | 0.332963 | 0.237514 | 0.234184 | 0.105438 | 0 | 0.157731 | 0.207024 | 1,623 | 54 | 69 | 30.055556 | 0.525253 | 0.090573 | 0 | 0 | 0 | 0 | 0.087889 | 0 | 0 | 0 | 0 | 0 | 0.818182 | 1 | 0.151515 | true | 0 | 0.030303 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5e4f22294e9cd518d04b0ddca09a221358daf2f0 | 1,584 | py | Python | hacking/checks.py | platform9/omni-devstack-fixes | bc94150974fe181840ab3c5d618fa5ce3db44805 | [
"Apache-2.0"
] | null | null | null | hacking/checks.py | platform9/omni-devstack-fixes | bc94150974fe181840ab3c5d618fa5ce3db44805 | [
"Apache-2.0"
] | 1 | 2020-03-03T13:53:23.000Z | 2020-03-03T13:53:23.000Z | hacking/checks.py | platform9/omni-devstack-fixes | bc94150974fe181840ab3c5d618fa5ce3db44805 | [
"Apache-2.0"
] | 1 | 2020-09-03T20:54:21.000Z | 2020-09-03T20:54:21.000Z | # Copyright (c) 2017 OpenStack Foundation.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | 32.326531 | 77 | 0.71654 | 236 | 1,584 | 4.762712 | 0.576271 | 0.053381 | 0.023132 | 0.02847 | 0.05516 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013932 | 0.184343 | 1,584 | 48 | 78 | 33 | 0.856037 | 0.390783 | 0 | 0 | 0 | 0 | 0.279683 | 0.166227 | 0 | 0 | 0 | 0 | 0.444444 | 1 | 0.222222 | false | 0 | 0.111111 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5e51751cd124add61435bcb1aa88de3c44a84b13 | 163 | py | Python | examples/libraries/spectralist.py | zxkjack123/pypact | 8b37f42007e0accabc9fb31d4ab76935b559d817 | [
"Apache-2.0"
] | 18 | 2018-01-22T14:00:18.000Z | 2022-03-08T06:29:22.000Z | examples/libraries/spectralist.py | listato/pypact | a418ba218cdf4a25ae3e7d72e0919905d027d2ba | [
"Apache-2.0"
] | 28 | 2018-12-07T14:30:46.000Z | 2022-02-27T20:33:06.000Z | examples/libraries/spectralist.py | listato/pypact | a418ba218cdf4a25ae3e7d72e0919905d027d2ba | [
"Apache-2.0"
] | 8 | 2018-05-29T13:41:59.000Z | 2021-01-21T01:33:41.000Z | import pypact as pp
with pp.SpectrumLibJSONReader() as lib:
manager = pp.SpectrumLibManager(lib)
for spectrum in manager.list():
print(spectrum)
| 20.375 | 40 | 0.705521 | 20 | 163 | 5.75 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208589 | 163 | 7 | 41 | 23.285714 | 0.891473 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5e5252473d85d0780b3334dd888d13cf0eccf693 | 878 | py | Python | utils/Clean_news_function.py | jasonjgarcia24/global-crypto-behavior-1 | 46ec6ab32715fefb541e11f6e274f692c2f303dd | [
"MIT"
] | null | null | null | utils/Clean_news_function.py | jasonjgarcia24/global-crypto-behavior-1 | 46ec6ab32715fefb541e11f6e274f692c2f303dd | [
"MIT"
] | 6 | 2021-08-05T18:15:56.000Z | 2021-08-17T01:34:01.000Z | utils/Clean_news_function.py | jasonjgarcia24/global-crypto-behavior-1 | 46ec6ab32715fefb541e11f6e274f692c2f303dd | [
"MIT"
] | 4 | 2021-08-22T21:21:58.000Z | 2021-10-16T12:22:18.000Z | import sys
sys.path.append('.')
import pandas as pd
def date_str_func(suffix):
return f"./data/ticker-news_data_{suffix}.csv"
def data_pull(date_var):
filename = date_str_func(date_var)
data_crypto_news = pd.read_csv(filename)
data_crypto_news = data_crypto_news[data_crypto_news["tickers"].... | 25.823529 | 108 | 0.705011 | 136 | 878 | 4.110294 | 0.375 | 0.232558 | 0.275492 | 0.128801 | 0.254025 | 0.189624 | 0.11449 | 0 | 0 | 0 | 0 | 0.013774 | 0.173121 | 878 | 33 | 109 | 26.606061 | 0.756198 | 0 | 0 | 0 | 0 | 0 | 0.100228 | 0.041002 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.1 | 0.05 | 0.35 | 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 |
5e611abbba142d234b552db1e9df1e6e0c79c01b | 1,422 | py | Python | problems/chapter14/Ysi/arc005_3.py | tokuma09/algorithm_problems | 58534620df73b230afbeb12de126174362625a78 | [
"CC0-1.0"
] | 1 | 2021-07-07T15:46:58.000Z | 2021-07-07T15:46:58.000Z | problems/chapter14/Ysi/arc005_3.py | tokuma09/algorithm_problems | 58534620df73b230afbeb12de126174362625a78 | [
"CC0-1.0"
] | 5 | 2021-06-05T14:16:41.000Z | 2021-07-10T07:08:28.000Z | problems/chapter14/Ysi/arc005_3.py | tokuma09/algorithm_problems | 58534620df73b230afbeb12de126174362625a78 | [
"CC0-1.0"
] | null | null | null | def main():
H, W = map(int, input().split())
C = []
for i in range(H):
row = list(input())
C.append(row)
for i in range(H):
for j in range(W):
if C[i][j] == "s":
sx = i
sy = j
if C[i][j] == "g":
gx = i
... | 30.255319 | 81 | 0.400844 | 208 | 1,422 | 2.5625 | 0.254808 | 0.131332 | 0.202627 | 0.225141 | 0.393996 | 0.322702 | 0.322702 | 0.322702 | 0.322702 | 0.322702 | 0 | 0.017032 | 0.421941 | 1,422 | 47 | 82 | 30.255319 | 0.631387 | 0 | 0 | 0.095238 | 0 | 0 | 0.016866 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02381 | false | 0 | 0.02381 | 0 | 0.047619 | 0.02381 | 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 |
5e7a74f82a7b6160e942893b7a29ce4b45674a85 | 502 | py | Python | api/tests/opentrons/hardware_control/integration/conftest.py | Corey-ONeal/opentrons-app_ws-remote | a255b76c8a07457787d575da12b2d5bdb6220a91 | [
"Apache-2.0"
] | null | null | null | api/tests/opentrons/hardware_control/integration/conftest.py | Corey-ONeal/opentrons-app_ws-remote | a255b76c8a07457787d575da12b2d5bdb6220a91 | [
"Apache-2.0"
] | null | null | null | api/tests/opentrons/hardware_control/integration/conftest.py | Corey-ONeal/opentrons-app_ws-remote | a255b76c8a07457787d575da12b2d5bdb6220a91 | [
"Apache-2.0"
] | null | null | null | import pytest
import threading
import asyncio
from opentrons.hardware_control.emulation.app import run
@pytest.fixture(scope="session")
def emulation_app():
"""Run the emulators"""
def runit():
asyncio.run(run())
# TODO 20210219
# The emulators must be run in a separate thread because our ser... | 25.1 | 72 | 0.689243 | 69 | 502 | 4.985507 | 0.652174 | 0.069767 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020566 | 0.2251 | 502 | 19 | 73 | 26.421053 | 0.863753 | 0.358566 | 0 | 0 | 0 | 0 | 0.022364 | 0 | 0 | 0 | 0 | 0.052632 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
5e804c1b152a4ded18aa30f3c4305b2d71ffaa50 | 1,774 | py | Python | Day 24/DrawingBook.py | sandeep-krishna/100DaysOfCode | af4594fb6933e4281d298fa921311ccc07295a7c | [
"MIT"
] | null | null | null | Day 24/DrawingBook.py | sandeep-krishna/100DaysOfCode | af4594fb6933e4281d298fa921311ccc07295a7c | [
"MIT"
] | null | null | null | Day 24/DrawingBook.py | sandeep-krishna/100DaysOfCode | af4594fb6933e4281d298fa921311ccc07295a7c | [
"MIT"
] | null | null | null | '''
A teacher asks the class to open their books to a page number. A student can either start turning pages from the front of the book or from the back of the book. They always turn pages one at a time. When they open the book, page is always on the right side:
When they flip page , they see pages and . Each page e... | 30.586207 | 357 | 0.718151 | 323 | 1,774 | 3.916409 | 0.371517 | 0.055336 | 0.051383 | 0.035573 | 0.166008 | 0.085375 | 0.085375 | 0 | 0 | 0 | 0 | 0.006508 | 0.220406 | 1,774 | 57 | 358 | 31.122807 | 0.908171 | 0.82469 | 0 | 0 | 0 | 0 | 0.073826 | 0 | 0 | 0 | 0 | 0.017544 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0.090909 | 0.363636 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5e88c415b780584efc174063f84bfc10c22db2b3 | 7,286 | py | Python | code/figures/8.0-plot-fig-S5.py | edunnsigouin/ds21grl | b6544cbc97529943da86e48a437ce68dc00e0f82 | [
"MIT"
] | 1 | 2021-04-08T18:13:47.000Z | 2021-04-08T18:13:47.000Z | code/figures/8.0-plot-fig-S5.py | edunnsigouin/ds21grl | b6544cbc97529943da86e48a437ce68dc00e0f82 | [
"MIT"
] | null | null | null | code/figures/8.0-plot-fig-S5.py | edunnsigouin/ds21grl | b6544cbc97529943da86e48a437ce68dc00e0f82 | [
"MIT"
] | 1 | 2021-06-10T14:48:04.000Z | 2021-06-10T14:48:04.000Z | """
Plots figure S5:
yt correlation of zonal-mean downward long wave radiation at the surface (top)
and longwave cloud radiative forcing at the surface (bottom)
with vertically and zonally integrated eddy moisture transport at 70N for
(left) reanalysis data (left) and aquaplanet control simulation data (right).
"""
... | 46.113924 | 131 | 0.656053 | 1,175 | 7,286 | 3.905532 | 0.162553 | 0.097625 | 0.087165 | 0.027893 | 0.806276 | 0.740031 | 0.638919 | 0.552626 | 0.493354 | 0.457616 | 0 | 0.065448 | 0.106643 | 7,286 | 157 | 132 | 46.407643 | 0.639576 | 0.089212 | 0 | 0.192982 | 0 | 0.017544 | 0.113647 | 0.028714 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04386 | 0 | 0.04386 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5e9e87a9fd58b451185c65c43b2b61efd3f695fd | 1,033 | py | Python | rpass/__main__.py | surajkarki66/rpass | 0d6d91007cebb4e00b42ef9cb08bfe7ee7031237 | [
"MIT"
] | 1 | 2021-07-24T04:22:51.000Z | 2021-07-24T04:22:51.000Z | rpass/__main__.py | surajkarki66/rpass | 0d6d91007cebb4e00b42ef9cb08bfe7ee7031237 | [
"MIT"
] | null | null | null | rpass/__main__.py | surajkarki66/rpass | 0d6d91007cebb4e00b42ef9cb08bfe7ee7031237 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
import click
import pyperclip
from rpass.utils.create_password import generate_password
CONTEXT_SETTINGS = dict(help_option_names=["-h", "--help"])
@click.command(context_settings=CONTEXT_SETTINGS)
@click.version_option(version="0.0.2")
@click.option(
"-l", "--length", type=in... | 30.382353 | 80 | 0.704743 | 148 | 1,033 | 4.777027 | 0.486486 | 0.077793 | 0.056577 | 0.079208 | 0.121641 | 0.121641 | 0.062235 | 0 | 0 | 0 | 0 | 0.007735 | 0.123911 | 1,033 | 33 | 81 | 31.30303 | 0.773481 | 0.088093 | 0 | 0 | 1 | 0 | 0.258547 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0.272727 | 0.181818 | 0 | 0.227273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
5ea3228abed648307f151eab63fdf5047c1e43e4 | 1,083 | py | Python | lib/log.py | sergei-dyshel/tmux-clost | 699723565cfecc2ef2d6ededb258d57d467792f4 | [
"MIT"
] | null | null | null | lib/log.py | sergei-dyshel/tmux-clost | 699723565cfecc2ef2d6ededb258d57d467792f4 | [
"MIT"
] | null | null | null | lib/log.py | sergei-dyshel/tmux-clost | 699723565cfecc2ef2d6ededb258d57d467792f4 | [
"MIT"
] | null | null | null | import logging
import sys
_logger = logging.getLogger()
def configure(log_file=None, level=logging.DEBUG):
if not log_file or log_file == '-' or log_file == 'stdout':
formatter = logging.Formatter('%(message)s')
handler = logging.StreamHandler(sys.stderr)
else:
formatter = logging.Fo... | 27.075 | 78 | 0.630656 | 132 | 1,083 | 5.05303 | 0.287879 | 0.149925 | 0.175412 | 0.113943 | 0.211394 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172669 | 1,083 | 39 | 79 | 27.769231 | 0.74442 | 0 | 0 | 0 | 0 | 0 | 0.102493 | 0.051708 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0 | 0.08 | 0.16 | 0.48 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5ea53b19d47371b65a141712722feda58a513224 | 176 | py | Python | ex051.py | pepev123/PythonEx | 8f39751bf87a9099d7b733aa829988595dab2344 | [
"MIT"
] | null | null | null | ex051.py | pepev123/PythonEx | 8f39751bf87a9099d7b733aa829988595dab2344 | [
"MIT"
] | null | null | null | ex051.py | pepev123/PythonEx | 8f39751bf87a9099d7b733aa829988595dab2344 | [
"MIT"
] | null | null | null | pt = int(input('Digite o primeiro termo da PA: '))
r = int(input('Digite a razão : '))
s = 0
for c in range(0, 11):
s = pt + (c * r)
print('A{} = {}'.format(c + 1, s)) | 29.333333 | 50 | 0.517045 | 33 | 176 | 2.757576 | 0.666667 | 0.175824 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038168 | 0.255682 | 176 | 6 | 51 | 29.333333 | 0.656489 | 0 | 0 | 0 | 0 | 0 | 0.316384 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 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 |
5ec5bff68ba343e8e74d637b819a3106942edcbc | 455 | py | Python | main.py | mjalkio/parallel-python-tutorial | 86e77cb6b1e0e21aa2b09270c249e232761f78e5 | [
"MIT"
] | null | null | null | main.py | mjalkio/parallel-python-tutorial | 86e77cb6b1e0e21aa2b09270c249e232761f78e5 | [
"MIT"
] | null | null | null | main.py | mjalkio/parallel-python-tutorial | 86e77cb6b1e0e21aa2b09270c249e232761f78e5 | [
"MIT"
] | null | null | null | """TODO."""
import os
import pandas as pd
from dotenv import load_dotenv
from facebook_client import FacebookClient
load_dotenv()
fb = FacebookClient(access_token=os.getenv('FACEBOOK_ACCESS_TOKEN'))
nonprofit_df = pd.read_csv('nonprofit_facebook.csv')
nonprofit_df['fan_count'] = nonprofit_df['facebook'].map(fb.get_... | 28.4375 | 79 | 0.795604 | 68 | 455 | 5.014706 | 0.441176 | 0.193548 | 0.099707 | 0.111437 | 0.181818 | 0.181818 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0.074725 | 455 | 15 | 80 | 30.333333 | 0.809976 | 0.010989 | 0 | 0 | 0 | 0 | 0.186937 | 0.096847 | 0 | 0 | 0 | 0.066667 | 0 | 1 | 0 | false | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
0d62c0c732aab7f1a0ff9ecebf4569c07f75adc9 | 980 | py | Python | qutipy/general_functions/unitary_distance.py | sumeetkhatri/QuTIPy | ca2a3344c1caa818504425496ea37278d80b1c44 | [
"Apache-2.0"
] | 19 | 2020-11-11T13:00:22.000Z | 2022-03-14T11:18:04.000Z | qutipy/general_functions/unitary_distance.py | sumeetkhatri/QuTIPy | ca2a3344c1caa818504425496ea37278d80b1c44 | [
"Apache-2.0"
] | null | null | null | qutipy/general_functions/unitary_distance.py | sumeetkhatri/QuTIPy | ca2a3344c1caa818504425496ea37278d80b1c44 | [
"Apache-2.0"
] | 1 | 2022-03-03T15:20:15.000Z | 2022-03-03T15:20:15.000Z | '''
This code is part of QuTIpy.
(c) Copyright Sumeet Khatri, 2021
This code is licensed under the Apache License, Version 2.0. You may
obtain a copy of this license in the LICENSE.txt file in the root directory
of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
Any modifications or derivative wor... | 29.69697 | 119 | 0.711224 | 173 | 980 | 4.023121 | 0.612717 | 0.034483 | 0.028736 | 0.022989 | 0.043103 | 0.043103 | 0 | 0 | 0 | 0 | 0 | 0.016861 | 0.213265 | 980 | 33 | 120 | 29.69697 | 0.884566 | 0.782653 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
0d65df46c2e0a9418cc23e22ff2135213963baa4 | 121 | py | Python | output/models/ms_data/regex/re_k70_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/ms_data/regex/re_k70_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/ms_data/regex/re_k70_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.ms_data.regex.re_k70_xsd.re_k70 import (
Regex,
Doc,
)
__all__ = [
"Regex",
"Doc",
]
| 12.1 | 59 | 0.603306 | 17 | 121 | 3.823529 | 0.705882 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043956 | 0.247934 | 121 | 9 | 60 | 13.444444 | 0.67033 | 0 | 0 | 0 | 0 | 0 | 0.066116 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0d66ec2c7785e9dfea830ef490f1edb10189c3b1 | 6,959 | py | Python | Template Generator.py | Tripwire-VERT/Protocol-Independent-Fuzzer | 0389e41940c8e5615f4ab6097f14d2527fdb01b7 | [
"BSD-2-Clause"
] | 8 | 2015-10-13T08:47:39.000Z | 2022-02-09T04:50:55.000Z | Template Generator.py | Tripwire-VERT/Protocol-Independent-Fuzzer | 0389e41940c8e5615f4ab6097f14d2527fdb01b7 | [
"BSD-2-Clause"
] | null | null | null | Template Generator.py | Tripwire-VERT/Protocol-Independent-Fuzzer | 0389e41940c8e5615f4ab6097f14d2527fdb01b7 | [
"BSD-2-Clause"
] | 8 | 2015-02-23T21:09:13.000Z | 2021-04-22T12:23:55.000Z | #################################################################
# Generates Template files for fuzzer.py
# Does a couple things so far
# 1. flips bytes
# 2. minimizes and maximizes values
# TODO add more functionality and ways to fuzz.
#################################################################
import re
impor... | 33.946341 | 274 | 0.598506 | 921 | 6,959 | 4.277959 | 0.186754 | 0.022843 | 0.022335 | 0.020305 | 0.185279 | 0.099492 | 0.035025 | 0.035025 | 0.019289 | 0.019289 | 0 | 0.008729 | 0.242707 | 6,959 | 204 | 275 | 34.112745 | 0.738899 | 0.031757 | 0 | 0.10625 | 1 | 0 | 0.116689 | 0.018257 | 0 | 0 | 0.003043 | 0.004902 | 0 | 0 | null | null | 0 | 0.0375 | null | null | 0.0125 | 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 |
0d6b2734fd2fb44f1f0ee68d4472c14046681e25 | 1,647 | py | Python | luminoth/utils/test/gt_boxes.py | czbiohub/luminoth | 3b4d57a9b4c3704c64816bbcbd6126a2ac23a069 | [
"BSD-3-Clause"
] | 3 | 2020-01-29T12:04:28.000Z | 2021-04-05T16:30:57.000Z | luminoth/utils/test/gt_boxes.py | czbiohub/luminoth-uv-imaging | 3b4d57a9b4c3704c64816bbcbd6126a2ac23a069 | [
"BSD-3-Clause"
] | 9 | 2019-11-20T16:57:45.000Z | 2021-03-18T06:57:10.000Z | luminoth/utils/test/gt_boxes.py | czbiohub/luminoth | 3b4d57a9b4c3704c64816bbcbd6126a2ac23a069 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
def generate_gt_boxes(total_boxes, image_size, min_size=10, total_classes=None):
"""
Generate `total_boxes` fake (but consistent) ground-truth boxes for an
image of size `image_size` (height, width).
Args:
total_boxes (int): The total number of boxes.
image_size (tu... | 33.612245 | 88 | 0.665452 | 236 | 1,647 | 4.440678 | 0.322034 | 0.100191 | 0.034351 | 0.045802 | 0.207061 | 0.129771 | 0.049618 | 0 | 0 | 0 | 0 | 0.011737 | 0.224044 | 1,647 | 48 | 89 | 34.3125 | 0.808294 | 0.273224 | 0 | 0.090909 | 1 | 0 | 0.129004 | 0 | 0 | 0 | 0 | 0.020833 | 0.181818 | 1 | 0.045455 | false | 0 | 0.045455 | 0 | 0.136364 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0d83b3928eb305e87244b1c78b0cfa1d89f6eb0a | 664 | py | Python | demos/parsing_table_report.py | wannaphong/pycfg | ffa67958ed1c3deb73cadb3969ac086336fb1269 | [
"MIT"
] | 8 | 2017-12-18T08:51:27.000Z | 2020-11-26T02:21:06.000Z | demos/parsing_table_report.py | wannaphong/pycfg | ffa67958ed1c3deb73cadb3969ac086336fb1269 | [
"MIT"
] | 1 | 2020-01-09T15:41:09.000Z | 2020-01-09T15:41:09.000Z | demos/parsing_table_report.py | wannaphong/pycfg | ffa67958ed1c3deb73cadb3969ac086336fb1269 | [
"MIT"
] | 6 | 2017-06-12T16:58:40.000Z | 2019-11-27T06:55:07.000Z | '''Compute the SLR parsing table for a grammar read from stdin in extended
sytax, printing the original grammar, augmented grammar, first sets, follow
sets, and table to stdout in HTML.'''
import sys
from cfg.cfg_reader import *
from cfg.slr import *
try:
G = parse_cfg(sys.stdin.read())
except ValueError, e:
... | 23.714286 | 75 | 0.722892 | 107 | 664 | 4.401869 | 0.383178 | 0.07431 | 0.084926 | 0.063694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019332 | 0.143072 | 664 | 27 | 76 | 24.592593 | 0.808436 | 0 | 0 | 0 | 0 | 0 | 0.235789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.157895 | null | null | 0.578947 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0dad717dfbc5eeed64dd36fae969c7a582eb5210 | 1,032 | py | Python | corehq/apps/userreports/migrations/0001_initial.py | kkrampa/commcare-hq | d64d7cad98b240325ad669ccc7effb07721b4d44 | [
"BSD-3-Clause"
] | 1 | 2020-05-05T13:10:01.000Z | 2020-05-05T13:10:01.000Z | corehq/apps/userreports/migrations/0001_initial.py | kkrampa/commcare-hq | d64d7cad98b240325ad669ccc7effb07721b4d44 | [
"BSD-3-Clause"
] | 1 | 2019-12-09T14:00:14.000Z | 2019-12-09T14:00:14.000Z | corehq/apps/userreports/migrations/0001_initial.py | MaciejChoromanski/commcare-hq | fd7f65362d56d73b75a2c20d2afeabbc70876867 | [
"BSD-3-Clause"
] | 5 | 2015-11-30T13:12:45.000Z | 2019-07-01T19:27:07.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from __future__ import absolute_import
from django.conf import settings
from django.db import migrations
from corehq.apps.userreports.models import DataSourceConfiguration
from corehq.preindex import get_preindex_plugin
from corehq.sql_db.connections impo... | 30.352941 | 76 | 0.725775 | 130 | 1,032 | 5.453846 | 0.453846 | 0.056417 | 0.045134 | 0.053597 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001211 | 0.199612 | 1,032 | 33 | 77 | 31.272727 | 0.857143 | 0.020349 | 0 | 0 | 0 | 0 | 0.028741 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.375 | 0 | 0.541667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0dc27f3ffdf014d5dfe5a97390e8398ed9cc26aa | 716 | py | Python | solution.py | ashok-arora/HashCode | 7f30ea0ce0eeda5f6cf8bcb0e1cda4ce27b8bf32 | [
"MIT"
] | null | null | null | solution.py | ashok-arora/HashCode | 7f30ea0ce0eeda5f6cf8bcb0e1cda4ce27b8bf32 | [
"MIT"
] | null | null | null | solution.py | ashok-arora/HashCode | 7f30ea0ce0eeda5f6cf8bcb0e1cda4ce27b8bf32 | [
"MIT"
] | null | null | null | import sys
from parse import *
from output import *
from basicGreedy import *
from greedyLookahead import *
# TODO:
# Convert bidirectional edges to 2 unidirectional edges by:
# if Edge.direction == 2, then Edge.is_visited == True and Edge_2nd.is_visited == True
# map banaae a, street and if bi-dirctional insert in ma... | 31.130435 | 97 | 0.727654 | 109 | 716 | 4.504587 | 0.522936 | 0.065173 | 0.07943 | 0.10998 | 0.254582 | 0.254582 | 0.203666 | 0.203666 | 0.203666 | 0.203666 | 0 | 0.005059 | 0.171788 | 716 | 22 | 98 | 32.545455 | 0.822934 | 0.407821 | 0 | 0 | 0 | 0 | 0.074163 | 0 | 0 | 0 | 0 | 0.045455 | 0 | 1 | 0.083333 | false | 0 | 0.416667 | 0 | 0.5 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
0dc35c4faad340d3f69ae7965d8bc7c3d2065621 | 2,055 | py | Python | models/Conv2d.py | Apollo1840/DeepECG | 5132b5fc8f6b40c4b2f175cd5e56c4aec128ab3e | [
"MIT"
] | 2 | 2020-11-16T10:50:56.000Z | 2020-11-23T12:31:30.000Z | models/Conv2d.py | Apollo1840/DeepECG | 5132b5fc8f6b40c4b2f175cd5e56c4aec128ab3e | [
"MIT"
] | null | null | null | models/Conv2d.py | Apollo1840/DeepECG | 5132b5fc8f6b40c4b2f175cd5e56c4aec128ab3e | [
"MIT"
] | 1 | 2020-08-05T00:23:54.000Z | 2020-08-05T00:23:54.000Z | from keras.models import Sequential
from keras.layers import Dense, Dropout, Conv2D, GlobalAveragePooling2D, MaxPooling2D, Flatten
def conv2d(input_dim, output_dim=4):
model = Sequential()
# model.load_weights('my_model_weights.h5')
# 64 conv
model.add(Conv2D(64, (3, 3), activation='relu', input_shap... | 41.938776 | 94 | 0.644282 | 288 | 2,055 | 4.548611 | 0.184028 | 0.170992 | 0.170992 | 0.19542 | 0.700763 | 0.692366 | 0.692366 | 0.692366 | 0.655725 | 0.655725 | 0 | 0.087156 | 0.151338 | 2,055 | 48 | 95 | 42.8125 | 0.663991 | 0.293431 | 0 | 0.541667 | 0 | 0 | 0.085136 | 0.016748 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.083333 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0df6d6ea0927c077739bfaea6e0cf23ee1ad49b4 | 725 | py | Python | train.py | samkugji/chatbot_from_scratch | 9aa448db2bbc7e9a2fd9d2b536e311ccda42c2e8 | [
"MIT"
] | 1 | 2017-08-16T08:46:59.000Z | 2017-08-16T08:46:59.000Z | train.py | samkugji/chatbot_from_scratch | 9aa448db2bbc7e9a2fd9d2b536e311ccda42c2e8 | [
"MIT"
] | null | null | null | train.py | samkugji/chatbot_from_scratch | 9aa448db2bbc7e9a2fd9d2b536e311ccda42c2e8 | [
"MIT"
] | null | null | null | import numpy as np
import tensorflow as tf
import time
import math
import os
import sys
from lib import model_utils
from configs import model_config
def main(_):
config = model_config.Config()
#TODO: 클래스의 모든 변수를 출력할 수 있는 법
print("batch size: ", config.batch_size)
with tf.Session() as sess:
#... | 25 | 93 | 0.689655 | 108 | 725 | 4.388889 | 0.5 | 0.056962 | 0.067511 | 0.063291 | 0.156118 | 0.156118 | 0.156118 | 0.156118 | 0.156118 | 0 | 0 | 0 | 0.217931 | 725 | 29 | 94 | 25 | 0.835979 | 0.182069 | 0 | 0 | 0 | 0 | 0.076271 | 0 | 0 | 0 | 0 | 0.034483 | 0 | 1 | 0.055556 | false | 0 | 0.444444 | 0 | 0.5 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
218bdae0da9e333918ad4d976fa4fa191a9140ec | 368 | py | Python | mldictionary_api/models/requests.py | PabloEmidio/api-dictionary | 4eb1d4d02a133b96bcb905575d8bccb3cf0311c3 | [
"MIT"
] | 7 | 2021-06-13T23:21:14.000Z | 2022-01-04T01:35:47.000Z | mldictionary_api/models/requests.py | PabloEmidio/MLDictionaryAPI | 501f203802c1f6aafe213c0fb7a5808f9a9ad3ab | [
"MIT"
] | null | null | null | mldictionary_api/models/requests.py | PabloEmidio/MLDictionaryAPI | 501f203802c1f6aafe213c0fb7a5808f9a9ad3ab | [
"MIT"
] | 1 | 2021-06-28T07:26:54.000Z | 2021-06-28T07:26:54.000Z | __all__ = ['RedisRequests']
from mldictionary_api.models.base import RedisBaseModel
class RedisRequests(RedisBaseModel):
def __init__(self):
super().__init__()
def get(self, match: str) -> int:
requests = self.db.get(match) or 0
return int(requests)
def set(self, key, value, ttl... | 23 | 55 | 0.649457 | 47 | 368 | 4.808511 | 0.595745 | 0.097345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003509 | 0.225543 | 368 | 15 | 56 | 24.533333 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0.035326 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.1 | 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 |
21b5b3d371035661a22cc5c973d6a552f5dc156d | 69 | py | Python | section_5_price_alert/src/config.py | sagarnildass/The-complete-python-web-course | d5c21eebeeea466a0fa46c9dfac203c0e5b01433 | [
"MIT"
] | null | null | null | section_5_price_alert/src/config.py | sagarnildass/The-complete-python-web-course | d5c21eebeeea466a0fa46c9dfac203c0e5b01433 | [
"MIT"
] | null | null | null | section_5_price_alert/src/config.py | sagarnildass/The-complete-python-web-course | d5c21eebeeea466a0fa46c9dfac203c0e5b01433 | [
"MIT"
] | null | null | null |
DEBUG = True
ADMINS = frozenset([
"yourname@yourdomain.com"
])
| 9.857143 | 29 | 0.652174 | 7 | 69 | 6.428571 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.202899 | 69 | 6 | 30 | 11.5 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0.343284 | 0.343284 | 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 |
21b8dae6932c806248b39abe76b7b480656aadce | 4,944 | py | Python | sdk/python/pulumi_aws/ec2/eip_association.py | pulumi-bot/pulumi-aws | 756c60135851e015232043c8206567101b8ebd85 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/ec2/eip_association.py | pulumi-bot/pulumi-aws | 756c60135851e015232043c8206567101b8ebd85 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/ec2/eip_association.py | pulumi-bot/pulumi-aws | 756c60135851e015232043c8206567101b8ebd85 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import pulumi
import pulumi.runtime
class EipAssociation(pulumi.CustomResource):
"""
Provides an AWS EIP Association as a top ... | 47.085714 | 251 | 0.680016 | 596 | 4,944 | 5.347315 | 0.265101 | 0.039536 | 0.055224 | 0.060245 | 0.127079 | 0.076247 | 0 | 0 | 0 | 0 | 0 | 0.00162 | 0.250809 | 4,944 | 104 | 252 | 47.538462 | 0.858801 | 0.164644 | 0 | 0 | 1 | 0 | 0.235843 | 0.011905 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037736 | false | 0.056604 | 0.037736 | 0 | 0.09434 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
21d9a8a635118bbf38f19b0d7f09b499f8f323e1 | 903 | py | Python | src/api/serializers.py | Dakhnovskiy/social-network | 51a78ce2bfbf7f8e38f1f5e0b72756a79880e494 | [
"Apache-2.0"
] | null | null | null | src/api/serializers.py | Dakhnovskiy/social-network | 51a78ce2bfbf7f8e38f1f5e0b72756a79880e494 | [
"Apache-2.0"
] | null | null | null | src/api/serializers.py | Dakhnovskiy/social-network | 51a78ce2bfbf7f8e38f1f5e0b72756a79880e494 | [
"Apache-2.0"
] | null | null | null | import datetime
from typing import List, Optional
from constants import RelationStatus, Sex
from pydantic import BaseModel, conint
class City(BaseModel):
id: int
name: str
class CitiesOut(BaseModel):
data: List[City]
class UserIn(BaseModel):
login: str
password: str
first_name: str
la... | 15.05 | 41 | 0.683278 | 116 | 903 | 5.232759 | 0.353448 | 0.080725 | 0.059308 | 0.079077 | 0.270181 | 0.182867 | 0.144975 | 0.144975 | 0.144975 | 0.144975 | 0 | 0.002911 | 0.239203 | 903 | 59 | 42 | 15.305085 | 0.88064 | 0 | 0 | 0.475 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.05 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
21ef18dfc3cb3cd300b565c0404c36df3f912cc7 | 265 | py | Python | code/abc075_c_01.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | 3 | 2019-08-16T16:55:48.000Z | 2021-04-11T10:21:40.000Z | code/abc075_c_01.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | null | null | null | code/abc075_c_01.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | null | null | null | N,M=map(int,input().split())
edges=[list(map(int,input().split())) for i in range(M)]
ans=0
for x in edges:
l=list(range(N))
for y in edges:
if y!=x:l=[l[y[0]-1] if l[i]==l[y[1]-1] else l[i] for i in range(N)]
if len(set(l))!=1:ans+=1
print(ans) | 29.444444 | 76 | 0.562264 | 63 | 265 | 2.365079 | 0.365079 | 0.080537 | 0.147651 | 0.214765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0.181132 | 265 | 9 | 77 | 29.444444 | 0.654378 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
21faecb8e43196d43ddcc06306bc7efc72f33466 | 430 | py | Python | multiplepagesproject/prodmodels.py | mandeep-django/admin-panel | 30c65730e74004ec21cf891627fbbaa027f626db | [
"MIT"
] | null | null | null | multiplepagesproject/prodmodels.py | mandeep-django/admin-panel | 30c65730e74004ec21cf891627fbbaa027f626db | [
"MIT"
] | null | null | null | multiplepagesproject/prodmodels.py | mandeep-django/admin-panel | 30c65730e74004ec21cf891627fbbaa027f626db | [
"MIT"
] | null | null | null | from django.db import connections
from django.db import models
class proddisplay(models.Model):
categoryid = models.IntegerField()
pname = models.CharField(max_length=100)
pprice = models.IntegerField()
pcontent = models.TextField(max_length=100)
pimage = models.FileField()
pdisplayord... | 33.076923 | 48 | 0.702326 | 46 | 430 | 6.5 | 0.565217 | 0.240803 | 0.080268 | 0.120401 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017544 | 0.204651 | 430 | 13 | 49 | 33.076923 | 0.856725 | 0 | 0 | 0 | 0 | 0 | 0.016706 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.916667 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
df1f4f30fef8818539f455ac084622401ca3ae51 | 31,670 | py | Python | src/nbtucker_sparse.py | vibinabraham/FermiCluster | 2264b343d15c9e23ab964810c99ba0af60abe985 | [
"Apache-2.0"
] | 3 | 2020-10-21T00:51:09.000Z | 2021-12-26T17:27:07.000Z | src/nbtucker_sparse.py | vibinabraham/FermiCluster | 2264b343d15c9e23ab964810c99ba0af60abe985 | [
"Apache-2.0"
] | null | null | null | src/nbtucker_sparse.py | vibinabraham/FermiCluster | 2264b343d15c9e23ab964810c99ba0af60abe985 | [
"Apache-2.0"
] | 1 | 2020-10-29T03:05:00.000Z | 2020-10-29T03:05:00.000Z | import math
import sys
import numpy as np
import scipy
import itertools
import copy as cp
from helpers import *
import opt_einsum as oe
import tools
import time
from ClusteredOperator import *
from ClusteredState import *
from Cluster import *
from ham_build import *
def compute_rspt2_correction(ci_vector, clustered... | 34.386536 | 186 | 0.521756 | 4,271 | 31,670 | 3.671037 | 0.076563 | 0.056636 | 0.029466 | 0.042095 | 0.751579 | 0.725238 | 0.677786 | 0.655654 | 0.628994 | 0.608904 | 0 | 0.032301 | 0.357752 | 31,670 | 920 | 187 | 34.423913 | 0.738545 | 0.110388 | 0 | 0.693312 | 0 | 0 | 0.047976 | 0 | 0 | 0 | 0 | 0 | 0.009788 | 1 | 0.017945 | false | 0 | 0.022839 | 0 | 0.058728 | 0.169657 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
df27bb6b52edc78f27182407541613f7179a0bdc | 229,849 | py | Python | pysnmp-with-texts/EMC-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/EMC-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/EMC-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module EMC-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/EMC-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:02:38 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)... | 134.650849 | 10,647 | 0.781282 | 30,473 | 229,849 | 5.814721 | 0.043941 | 0.071448 | 0.125034 | 0.01289 | 0.639199 | 0.538749 | 0.474068 | 0.380835 | 0.320144 | 0.273641 | 0 | 0.055999 | 0.097055 | 229,849 | 1,706 | 10,648 | 134.729777 | 0.79777 | 0.00134 | 0 | 0.004162 | 0 | 0.08918 | 0.304489 | 0.019997 | 0 | 0 | 0.000732 | 0 | 0 | 1 | 0 | false | 0.000595 | 0.003567 | 0 | 0.032699 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
df3578e4f5fe9045f0e8c3053785c4e1bf584e5c | 12,964 | py | Python | python/src/main/python/pygw/query/statistics/statistic_query_builder.py | radiant-maxar/geowave | 2d9f39d32e4621c8f5965a4dffff0623c1c03231 | [
"Apache-2.0"
] | 280 | 2017-06-14T01:26:19.000Z | 2022-03-28T15:45:23.000Z | python/src/main/python/pygw/query/statistics/statistic_query_builder.py | radiant-maxar/geowave | 2d9f39d32e4621c8f5965a4dffff0623c1c03231 | [
"Apache-2.0"
] | 458 | 2017-06-12T20:00:59.000Z | 2022-03-31T04:41:59.000Z | python/src/main/python/pygw/query/statistics/statistic_query_builder.py | radiant-maxar/geowave | 2d9f39d32e4621c8f5965a4dffff0623c1c03231 | [
"Apache-2.0"
] | 135 | 2017-06-12T20:39:34.000Z | 2022-03-15T13:42:30.000Z | #
# Copyright (c) 2013-2020 Contributors to the Eclipse Foundation
#
# See the NOTICE file distributed with this work for additional information regarding copyright
# ownership. All rights reserved. This program and the accompanying materials are made available
# under the terms of the Apache License, Version 2.0 whic... | 32.248756 | 116 | 0.653193 | 1,355 | 12,964 | 6.078229 | 0.141697 | 0.086693 | 0.11984 | 0.101506 | 0.612797 | 0.597742 | 0.565444 | 0.538368 | 0.388417 | 0.326858 | 0 | 0.001269 | 0.270827 | 12,964 | 401 | 117 | 32.329177 | 0.869988 | 0.333539 | 0 | 0.444444 | 0 | 0 | 0.009197 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.229167 | false | 0 | 0.041667 | 0 | 0.513889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
df4568fa3ce1d1a711aae12215e7303c88faa3d0 | 1,024 | py | Python | 213. House Robber II.py | minyoungan/coding-interview | 56cf90d8e65690c0cb49512b6d06a4de3f129a41 | [
"MIT"
] | 1 | 2021-11-24T01:30:38.000Z | 2021-11-24T01:30:38.000Z | 213. House Robber II.py | minyoungan/Coding-Interview | 56cf90d8e65690c0cb49512b6d06a4de3f129a41 | [
"MIT"
] | null | null | null | 213. House Robber II.py | minyoungan/Coding-Interview | 56cf90d8e65690c0cb49512b6d06a4de3f129a41 | [
"MIT"
] | null | null | null | class Solution:
def rob(self, nums: List[int]) -> int:
def recur(arr):
memo = {}
def dfs(i):
if i in memo:
return memo[i]
if i >= len(arr):
return 0
... | 23.272727 | 63 | 0.367188 | 113 | 1,024 | 3.265487 | 0.283186 | 0.065041 | 0.097561 | 0.121951 | 0.249322 | 0.200542 | 0.200542 | 0.200542 | 0.200542 | 0 | 0 | 0.026639 | 0.523438 | 1,024 | 43 | 64 | 23.813953 | 0.729508 | 0 | 0 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.185185 | false | 0 | 0 | 0 | 0.518519 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
df47f5365cf4dd879f12f60b05bf5870f8c06119 | 7,103 | py | Python | runesanalyzer/data.py | clemsciences/runes-analyzer | 0af8baaf604179c31dcbf28b1a023ca650a9ff34 | [
"MIT"
] | 5 | 2018-10-17T15:35:51.000Z | 2022-01-23T10:57:55.000Z | runesanalyzer/data.py | clemsciences/runes-analyzer | 0af8baaf604179c31dcbf28b1a023ca650a9ff34 | [
"MIT"
] | 5 | 2018-06-25T16:06:00.000Z | 2018-09-09T13:50:16.000Z | runesanalyzer/data.py | clemsciences/runes-analyzer | 0af8baaf604179c31dcbf28b1a023ca650a9ff34 | [
"MIT"
] | null | null | null | """
Sources:
- Viking Language 1 by Jessie L. Byock 2013
Unicode: 16A0–16FF
Swedish runic inscriptions
http://runes.verbix.com/index.html
http://runes.verbix.com/vikingage/Uppland.html
"""
import json
from runesanalyzer.runes import RunicAlphabetName, Rune, Transcriber
__author__ = ["Clément Besnier <clemsciences@a... | 50.021127 | 114 | 0.678727 | 988 | 7,103 | 4.816802 | 0.314777 | 0.255936 | 0.13112 | 0.166422 | 0.528893 | 0.449674 | 0.339147 | 0.19668 | 0 | 0 | 0 | 0.029977 | 0.135858 | 7,103 | 141 | 115 | 50.375887 | 0.729879 | 0.092918 | 0 | 0 | 0 | 0.074468 | 0.245213 | 0.060097 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010638 | false | 0 | 0.021277 | 0 | 0.042553 | 0.117021 | 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 |
df4a81a9acda59ab397d3b7d2b0f2552fa3a9ecb | 351 | py | Python | errorHandler.py | LWollatz/mendeley2bibtex | eadda877fc08c51e4572bb7498021fa2e324c050 | [
"Apache-2.0"
] | null | null | null | errorHandler.py | LWollatz/mendeley2bibtex | eadda877fc08c51e4572bb7498021fa2e324c050 | [
"Apache-2.0"
] | null | null | null | errorHandler.py | LWollatz/mendeley2bibtex | eadda877fc08c51e4572bb7498021fa2e324c050 | [
"Apache-2.0"
] | null | null | null | AllErrors=[]
AllWarnings=[]
mainVerbose=True
def raiseError(msg,verbose=mainVerbose):
global AllErrors
AllErrors.append(msg)
if verbose:
print "ERROR: "+msg
return None
def raiseWarning(msg,verbose=mainVerbose):
global AllWarnings
AllWarnings.append(msg)
if verbose:
print "... | 19.5 | 42 | 0.68661 | 38 | 351 | 6.342105 | 0.447368 | 0.082988 | 0.174274 | 0.224066 | 0.190871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.219373 | 351 | 17 | 43 | 20.647059 | 0.879562 | 0 | 0 | 0.266667 | 0 | 0 | 0.045584 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.133333 | 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 |
df584c511c38c63a4d478cb89958f0881f65aa76 | 8,312 | py | Python | sdk/python/pulumi_scaleway/instance_security_group.py | Kamaradeivanov/pulumi-scaleway | a93249741b95b164f3ee651b1798c0b6f245b12d | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-10-16T09:09:09.000Z | 2020-10-16T09:09:09.000Z | sdk/python/pulumi_scaleway/instance_security_group.py | Kamaradeivanov/pulumi-scaleway | a93249741b95b164f3ee651b1798c0b6f245b12d | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_scaleway/instance_security_group.py | Kamaradeivanov/pulumi-scaleway | a93249741b95b164f3ee651b1798c0b6f245b12d | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Union
from . import utilities, tables
class InstanceSecurityGr... | 44.212766 | 297 | 0.6564 | 969 | 8,312 | 5.357069 | 0.143447 | 0.089 | 0.086303 | 0.064727 | 0.700443 | 0.67906 | 0.645926 | 0.639376 | 0.607975 | 0.601233 | 0 | 0.000159 | 0.240977 | 8,312 | 187 | 298 | 44.449198 | 0.822634 | 0.397377 | 0 | 0.029851 | 1 | 0 | 0.153078 | 0.039957 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059701 | false | 0.014925 | 0.074627 | 0.029851 | 0.343284 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
df6a5a6667316fd4402654e44db52f177022ad5f | 649 | py | Python | djangobench/benchmarks/template_compilation/benchmark.py | Bouke/djangobench | 94fc28d99f95c65d26d0fad8af44e46c49282220 | [
"BSD-3-Clause"
] | 3 | 2016-11-27T22:25:34.000Z | 2018-12-12T20:06:40.000Z | djangobench/benchmarks/template_compilation/benchmark.py | Bouke/djangobench | 94fc28d99f95c65d26d0fad8af44e46c49282220 | [
"BSD-3-Clause"
] | null | null | null | djangobench/benchmarks/template_compilation/benchmark.py | Bouke/djangobench | 94fc28d99f95c65d26d0fad8af44e46c49282220 | [
"BSD-3-Clause"
] | null | null | null | from django.template import Template
from djangobench.utils import run_benchmark
def benchmark():
# Just compile the template, no rendering
t = Template("""
{% for v in vals %}
{{ v }}
{{ v }}
{{ v }}
{{ v }}
{{ v }}
{{ v }}
... | 19.666667 | 52 | 0.349769 | 51 | 649 | 4.411765 | 0.509804 | 0.124444 | 0.173333 | 0.213333 | 0.066667 | 0.066667 | 0.066667 | 0.066667 | 0.066667 | 0.066667 | 0 | 0 | 0.497689 | 649 | 32 | 53 | 20.28125 | 0.690184 | 0.060092 | 0 | 0.517241 | 0 | 0 | 0.643092 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.068966 | 0 | 0.103448 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
df86e15db6784b6e132bdf3812d4af8173403acc | 1,710 | py | Python | pollumeter/pollumeterbeta/migrations/0001_initial.py | dhruvildave/pollumeter | 3eb6eceae4a8a9bb3fb95e2e3b0385f8472c4a65 | [
"BSD-3-Clause"
] | null | null | null | pollumeter/pollumeterbeta/migrations/0001_initial.py | dhruvildave/pollumeter | 3eb6eceae4a8a9bb3fb95e2e3b0385f8472c4a65 | [
"BSD-3-Clause"
] | 3 | 2021-03-11T01:34:50.000Z | 2022-02-27T08:15:58.000Z | pollumeter/pollumeterbeta/migrations/0001_initial.py | dhruvildave/pollumeter | 3eb6eceae4a8a9bb3fb95e2e3b0385f8472c4a65 | [
"BSD-3-Clause"
] | 1 | 2020-03-21T12:37:56.000Z | 2020-03-21T12:37:56.000Z | # Generated by Django 3.0.3 on 2020-03-14 09:14
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='pollimetermodel',
fields=[
('id', models.Au... | 38 | 114 | 0.51462 | 144 | 1,710 | 5.944444 | 0.479167 | 0.392523 | 0.17757 | 0.056075 | 0.063084 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 0.328655 | 1,710 | 44 | 115 | 38.863636 | 0.721254 | 0.026316 | 0 | 0 | 1 | 0 | 0.134095 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027027 | 0 | 0.135135 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
df8b5e34f00e28c5ebe9256aaa1dbdfe27d2f8a7 | 88 | py | Python | Python Fundamentals/Lists Basics/Lab/Task01.py | DonikaChervenkova/SoftUni | bff579c037ec48f39ed193b34bc3502a32e90732 | [
"MIT"
] | null | null | null | Python Fundamentals/Lists Basics/Lab/Task01.py | DonikaChervenkova/SoftUni | bff579c037ec48f39ed193b34bc3502a32e90732 | [
"MIT"
] | null | null | null | Python Fundamentals/Lists Basics/Lab/Task01.py | DonikaChervenkova/SoftUni | bff579c037ec48f39ed193b34bc3502a32e90732 | [
"MIT"
] | 1 | 2021-12-04T12:30:57.000Z | 2021-12-04T12:30:57.000Z | tail = input()
body = input()
head = input()
animal = [head, body, tail]
print(animal)
| 12.571429 | 27 | 0.636364 | 12 | 88 | 4.666667 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 88 | 6 | 28 | 14.666667 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
df8f3771556ffe0a193031a57f3a2d7afa936b5a | 468 | py | Python | apps/rent/validators.py | WouterVdS/BosvogelWebPlatform | 4388d6fd98645ffb7c1470718d42dab43b953b95 | [
"MIT"
] | 1 | 2019-02-05T20:14:41.000Z | 2019-02-05T20:14:41.000Z | apps/rent/validators.py | WouterVdS/BosvogelWebPlatform | 4388d6fd98645ffb7c1470718d42dab43b953b95 | [
"MIT"
] | 157 | 2019-02-12T18:07:28.000Z | 2022-02-10T07:14:24.000Z | apps/rent/validators.py | WouterVdS/BosvogelWebPlatform | 4388d6fd98645ffb7c1470718d42dab43b953b95 | [
"MIT"
] | null | null | null | import re
from django.core.exceptions import ValidationError
def validate_international_phone_number(value):
if not value.startswith('0032'):
raise ValidationError(f'{value} should start with 0032')
def validate_iban_format(value):
pattern = re.compile(r'[A-Z]{2}\d{2} ?\d{4} ?\d{4} ?\d{4} ?[\d]{0,2... | 31.2 | 110 | 0.698718 | 72 | 468 | 4.472222 | 0.569444 | 0.018634 | 0.02795 | 0.161491 | 0.220497 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038363 | 0.16453 | 468 | 14 | 111 | 33.428571 | 0.785166 | 0 | 0 | 0 | 0 | 0.111111 | 0.331197 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 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 |
df94fc8f6cd3b4c08d73e23809abf86297ab24f7 | 272 | py | Python | jadn/libs/convert/__init__.py | g2-inc/openc2-jadn | c15483d4f9c01636528b2b94753c68d2ca9d222a | [
"Apache-2.0"
] | null | null | null | jadn/libs/convert/__init__.py | g2-inc/openc2-jadn | c15483d4f9c01636528b2b94753c68d2ca9d222a | [
"Apache-2.0"
] | null | null | null | jadn/libs/convert/__init__.py | g2-inc/openc2-jadn | c15483d4f9c01636528b2b94753c68d2ca9d222a | [
"Apache-2.0"
] | null | null | null | from .w_jas import jas_dump
from .w_html import html_dump
from .w_markdown import markdown_dump
# from w_proto import proto_dump
# from w_thrift import thrift_dump
__all__ = [
'jas_dump',
'markdown_dump',
'html_dump'
# 'proto_dump',
# 'thrift_dump'
]
| 19.428571 | 37 | 0.716912 | 41 | 272 | 4.292683 | 0.243902 | 0.142045 | 0.204545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198529 | 272 | 13 | 38 | 20.923077 | 0.807339 | 0.334559 | 0 | 0 | 0 | 0 | 0.170455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 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 |
10c311cb80d00df709e9fa1e6fa0cc5d75aef1c3 | 5,326 | py | Python | calc.py | IamEinstein/python-math-template | 086c23525c044a521d4704f5e7cfabdec4c5d2ab | [
"MIT"
] | null | null | null | calc.py | IamEinstein/python-math-template | 086c23525c044a521d4704f5e7cfabdec4c5d2ab | [
"MIT"
] | null | null | null | calc.py | IamEinstein/python-math-template | 086c23525c044a521d4704f5e7cfabdec4c5d2ab | [
"MIT"
] | null | null | null | import datetime
import math
pi = 22 / 7
def add():
num1 = float(input("Enter the number"))
num2 = float(input("Enter the second number"))
return num1 + num2
def subtract():
num1 = float(input("Enter the number"))
num2 = float(input("Enter the second number"))
return num1 - num2... | 22.858369 | 70 | 0.566842 | 672 | 5,326 | 4.409226 | 0.159226 | 0.107999 | 0.131623 | 0.133648 | 0.477219 | 0.361795 | 0.361795 | 0.294971 | 0.226122 | 0.226122 | 0 | 0.02515 | 0.313181 | 5,326 | 232 | 71 | 22.956897 | 0.784855 | 0.043935 | 0 | 0.403974 | 0 | 0 | 0.13953 | 0.00429 | 0 | 0 | 0 | 0.00431 | 0 | 1 | 0.278146 | false | 0.013245 | 0.013245 | 0.072848 | 0.556291 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
10c4b850a0e98c3f338bd0059a048d7043055f77 | 283 | py | Python | rest_profile/migrations/0009_merge_20180624_1801.py | Visitey/Visitey-Server | e91c0ac52e943af9a739c42a6a3fe8603994c6b6 | [
"MIT"
] | 1 | 2018-06-06T09:46:00.000Z | 2018-06-06T09:46:00.000Z | rest_profile/migrations/0009_merge_20180624_1801.py | Visitey/Visitey-Server | e91c0ac52e943af9a739c42a6a3fe8603994c6b6 | [
"MIT"
] | null | null | null | rest_profile/migrations/0009_merge_20180624_1801.py | Visitey/Visitey-Server | e91c0ac52e943af9a739c42a6a3fe8603994c6b6 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.6 on 2018-06-24 16:01
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('rest_profile', '0006_auto_20180606_1024'),
('rest_profile', '0008_auto_20180620_1723'),
]
operations = [
]
| 18.866667 | 52 | 0.660777 | 35 | 283 | 5.114286 | 0.828571 | 0.122905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213636 | 0.222615 | 283 | 14 | 53 | 20.214286 | 0.6 | 0.159011 | 0 | 0 | 1 | 0 | 0.29661 | 0.194915 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.