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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9e177263a0ebd8c89321b840a71c84edfd2ea746 | 1,520 | py | Python | src/lib/transforms/cross_drop.py | pfnet-research/kaggle-lyft-motion-prediction-4th-place-solution | 0bc51075db31a747eeebb7f4775a3cd26ad5f870 | [
"MIT"
] | 44 | 2020-12-09T06:15:15.000Z | 2022-03-31T02:37:47.000Z | src/lib/transforms/cross_drop.py | pfnet-research/kaggle-lyft-motion-prediction-4th-place-solution | 0bc51075db31a747eeebb7f4775a3cd26ad5f870 | [
"MIT"
] | null | null | null | src/lib/transforms/cross_drop.py | pfnet-research/kaggle-lyft-motion-prediction-4th-place-solution | 0bc51075db31a747eeebb7f4775a3cd26ad5f870 | [
"MIT"
] | 7 | 2020-12-09T10:08:32.000Z | 2021-08-17T01:53:51.000Z | from albumentations.core.transforms_interface import ImageOnlyTransform
import albumentations.augmentations.functional as F
import random
class CrossDrop(ImageOnlyTransform):
def __init__(self, max_h_cut=0.2, max_w_cut=0.2, fill_value=0, always_apply=False, p=0.5):
super(CrossDrop, self).__init__(always_a... | 33.777778 | 94 | 0.620395 | 214 | 1,520 | 4.135514 | 0.266355 | 0.087006 | 0.063277 | 0.171751 | 0.284746 | 0.284746 | 0.284746 | 0.284746 | 0 | 0 | 0 | 0.025528 | 0.252632 | 1,520 | 44 | 95 | 34.545455 | 0.753521 | 0 | 0 | 0 | 0 | 0 | 0.021711 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.151515 | false | 0 | 0.090909 | 0.090909 | 0.393939 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9e19326d841517afadd3d42542cc9b11a5c4a5d7 | 1,578 | py | Python | tests/common.py | Algomorph/ext_argparse | fbca26f8a551f84677475a11fb5415ddda78abd9 | [
"Apache-2.0"
] | 1 | 2021-09-06T23:22:07.000Z | 2021-09-06T23:22:07.000Z | tests/common.py | Algomorph/ext_argparse | fbca26f8a551f84677475a11fb5415ddda78abd9 | [
"Apache-2.0"
] | 11 | 2021-09-07T14:13:39.000Z | 2021-09-29T15:17:46.000Z | tests/common.py | Algomorph/ext_argparse | fbca26f8a551f84677475a11fb5415ddda78abd9 | [
"Apache-2.0"
] | null | null | null | import os
import pathlib
import typing
import pytest
from ext_argparse.parameter import Parameter
from ext_argparse.param_enum import ParameterEnum
from enum import Enum
class RoofMaterial(Enum):
SLATE = 0
METAL = 1
CONCRETE = 2
COMPOSITE = 3
SOLAR = 4
CLAY = 5
SYNTHETIC_BARREL = 6
S... | 28.690909 | 116 | 0.693916 | 198 | 1,578 | 5.358586 | 0.474747 | 0.05655 | 0.075401 | 0.035815 | 0.04901 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026961 | 0.224335 | 1,578 | 55 | 117 | 28.690909 | 0.839869 | 0 | 0 | 0 | 0 | 0 | 0.10133 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0 | 0.162791 | 0.023256 | 0.930233 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
9e1ba32a4a9094fb6f7a46a889dbdd7f780c6321 | 323 | py | Python | run.py | kamidox/weixin_producthunt | 24269da93e75374ee481b1b78257b18abda4d0c7 | [
"BSD-3-Clause"
] | 10 | 2015-01-07T06:01:13.000Z | 2021-02-14T09:11:10.000Z | run.py | kamidox/weixin_producthunt | 24269da93e75374ee481b1b78257b18abda4d0c7 | [
"BSD-3-Clause"
] | 3 | 2015-01-01T09:56:04.000Z | 2015-01-06T01:34:44.000Z | run.py | kamidox/weixin_producthunt | 24269da93e75374ee481b1b78257b18abda4d0c7 | [
"BSD-3-Clause"
] | 5 | 2015-01-01T10:31:50.000Z | 2018-03-09T05:22:16.000Z | """
productporter
~~~~~~~~~~~~~~~~~~~~
helper for uwsgi
:copyright: (c) 2014 by the ProductPorter Team.
:license: BSD, see LICENSE for more details.
"""
from productporter.app import create_app
from productporter.configs.production import ProductionConfig
app = create_app(config=ProductionConfig(... | 23.071429 | 61 | 0.693498 | 35 | 323 | 6.342857 | 0.657143 | 0.153153 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014925 | 0.170279 | 323 | 13 | 62 | 24.846154 | 0.813433 | 0.452012 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9e1db727da394433477d2ebb717048f5a98a0ab1 | 962 | py | Python | 03.Trabalhando_com_Arquivos/003.path_arquivos.py | heliton1986/Descubra_Python | 66738b295b0c5f526529ce0588fa3189eff110a1 | [
"MIT"
] | null | null | null | 03.Trabalhando_com_Arquivos/003.path_arquivos.py | heliton1986/Descubra_Python | 66738b295b0c5f526529ce0588fa3189eff110a1 | [
"MIT"
] | null | null | null | 03.Trabalhando_com_Arquivos/003.path_arquivos.py | heliton1986/Descubra_Python | 66738b295b0c5f526529ce0588fa3189eff110a1 | [
"MIT"
] | null | null | null | # Como trabalhar com paths
from os import path
import time
def dadosArquivo():
# Verificar se o arquivo existe
arquivoExiste = path.exists("./03.Trabalhando_com_Arquivos/NovoArquivo.txt")
# Verificar se é diretório
ehDiretorio = path.isdir("./03.Trabalhando_com_Arquivos/NovoArquivo.txt")
# Verifi... | 31.032258 | 96 | 0.745322 | 109 | 962 | 6.46789 | 0.394495 | 0.110638 | 0.13617 | 0.204255 | 0.388652 | 0.388652 | 0.280851 | 0.147518 | 0.147518 | 0 | 0 | 0.01476 | 0.154886 | 962 | 31 | 97 | 31.032258 | 0.852399 | 0.200624 | 0 | 0 | 0 | 0 | 0.354331 | 0.354331 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.125 | 0 | 0.1875 | 0.375 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9e2177e43f0a318b03307485c7498c4b6cef36fa | 2,127 | py | Python | src/environments/migrations/0001_initial.py | nixplay/bullet-train-api | 608422d174443a4d9178d875ccaeb756a771e908 | [
"BSD-3-Clause"
] | 1,259 | 2021-06-10T11:24:09.000Z | 2022-03-31T10:30:44.000Z | src/environments/migrations/0001_initial.py | nixplay/bullet-train-api | 608422d174443a4d9178d875ccaeb756a771e908 | [
"BSD-3-Clause"
] | 392 | 2021-06-10T11:12:29.000Z | 2022-03-31T10:13:53.000Z | src/environments/migrations/0001_initial.py | nixplay/bullet-train-api | 608422d174443a4d9178d875ccaeb756a771e908 | [
"BSD-3-Clause"
] | 58 | 2021-06-11T03:18:07.000Z | 2022-03-31T14:39:10.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-05-25 15:41
from __future__ import unicode_literals
import app.utils
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('projects', '0001_init... | 39.388889 | 99 | 0.487541 | 173 | 2,127 | 5.815029 | 0.433526 | 0.054672 | 0.04175 | 0.065606 | 0.471173 | 0.471173 | 0.471173 | 0.471173 | 0.471173 | 0.471173 | 0 | 0.025842 | 0.399624 | 2,127 | 53 | 100 | 40.132075 | 0.761942 | 0.03244 | 0 | 0.444444 | 1 | 0 | 0.118248 | 0.011679 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.088889 | 0 | 0.177778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f50adc78c47a350acb70a96ee1ecc3c1259e77a6 | 2,997 | py | Python | steer.py | nlw0/pyPyrTools | 91fc0932906054f6d43a32a205069aa25d884545 | [
"MIT"
] | 1 | 2020-10-13T14:40:39.000Z | 2020-10-13T14:40:39.000Z | steer.py | umeshraj/pyPyrTools | 91fc0932906054f6d43a32a205069aa25d884545 | [
"MIT"
] | null | null | null | steer.py | umeshraj/pyPyrTools | 91fc0932906054f6d43a32a205069aa25d884545 | [
"MIT"
] | 1 | 2018-04-26T10:06:47.000Z | 2018-04-26T10:06:47.000Z | import numpy
from steer2HarmMtx import steer2HarmMtx
def steer(*args):
''' Steer BASIS to the specfied ANGLE.
function res = steer(basis,angle,harmonics,steermtx)
BASIS should be a matrix whose columns are vectorized rotated copies
of a steerable function, or the responses of a set of s... | 34.448276 | 93 | 0.621288 | 412 | 2,997 | 4.519417 | 0.334951 | 0.029001 | 0.018797 | 0.025779 | 0.108486 | 0.108486 | 0.108486 | 0.108486 | 0.108486 | 0.108486 | 0 | 0.030178 | 0.27027 | 2,997 | 86 | 94 | 34.848837 | 0.821216 | 0.048382 | 0 | 0.269231 | 0 | 0 | 0.113275 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.038462 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f50baf297616723fd430fcda467e665dcd88c479 | 2,057 | py | Python | pydest/pydest.py | henworth/pydest | 9537696c39f36f8250082891ddcc0198142d22eb | [
"MIT"
] | null | null | null | pydest/pydest.py | henworth/pydest | 9537696c39f36f8250082891ddcc0198142d22eb | [
"MIT"
] | null | null | null | pydest/pydest.py | henworth/pydest | 9537696c39f36f8250082891ddcc0198142d22eb | [
"MIT"
] | null | null | null | import aiohttp
import asyncio
import os
import zipfile
from pydest.api import API
from pydest.manifest import Manifest
class Pydest:
def __init__(self, api_key, loop=None, client_id=None, client_secret=None):
"""Base class for Pydest
Args:
api_key (str):
Bungie.net A... | 29.811594 | 96 | 0.619349 | 243 | 2,057 | 5.119342 | 0.36214 | 0.024116 | 0.016077 | 0.032154 | 0.062701 | 0.062701 | 0.062701 | 0 | 0 | 0 | 0 | 0 | 0.307244 | 2,057 | 68 | 97 | 30.25 | 0.872982 | 0.149246 | 0 | 0.086957 | 0 | 0 | 0.013528 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0.086957 | 0.26087 | 0 | 0.478261 | 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 | 0 | 0 | 0 | 1 |
f50ea0f4e8fc7432c99f5e054323909249a31983 | 784 | py | Python | vaccinate/core/migrations/0120_geography_fields.py | MoralCode/vial | cdaaab053a9cf1cef40104a2cdf480b7932d58f7 | [
"MIT"
] | 7 | 2021-06-28T17:33:47.000Z | 2022-02-12T21:54:59.000Z | vaccinate/core/migrations/0120_geography_fields.py | MoralCode/vial | cdaaab053a9cf1cef40104a2cdf480b7932d58f7 | [
"MIT"
] | 104 | 2021-06-17T21:25:30.000Z | 2022-03-28T14:21:57.000Z | vaccinate/core/migrations/0120_geography_fields.py | MoralCode/vial | cdaaab053a9cf1cef40104a2cdf480b7932d58f7 | [
"MIT"
] | 1 | 2021-06-25T17:52:23.000Z | 2021-06-25T17:52:23.000Z | # Generated by Django 3.2.1 on 2021-05-06 22:30
import django.contrib.gis.db.models.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("core", "0119_populate_source_location_point"),
]
operations = [
migrations.AlterField(
model_... | 27.034483 | 68 | 0.58801 | 82 | 784 | 5.54878 | 0.52439 | 0.085714 | 0.105495 | 0.118681 | 0.426374 | 0.426374 | 0.36044 | 0.36044 | 0.193407 | 0 | 0 | 0.04918 | 0.299745 | 784 | 28 | 69 | 28 | 0.779599 | 0.057398 | 0 | 0.454545 | 1 | 0 | 0.096337 | 0.04749 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f50f7d07d1b11d4dc8dcf82534a3b3e6a3a87158 | 2,891 | py | Python | ietf/community/migrations/0002_auto_20141222_1749.py | ekr/ietfdb | 8d936836b0b9ff31cda415b0a423e3f5b33ab695 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2021-11-20T03:40:40.000Z | 2021-11-20T03:40:42.000Z | ietf/community/migrations/0002_auto_20141222_1749.py | ekr/ietfdb | 8d936836b0b9ff31cda415b0a423e3f5b33ab695 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | ietf/community/migrations/0002_auto_20141222_1749.py | ekr/ietfdb | 8d936836b0b9ff31cda415b0a423e3f5b33ab695 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('group', '0001_initial'),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('commun... | 32.483146 | 88 | 0.570391 | 245 | 2,891 | 6.55102 | 0.240816 | 0.123364 | 0.157632 | 0.185047 | 0.691589 | 0.653583 | 0.589408 | 0.589408 | 0.589408 | 0.482866 | 0 | 0.006556 | 0.314078 | 2,891 | 88 | 89 | 32.852273 | 0.802824 | 0.007264 | 0 | 0.670732 | 0 | 0 | 0.174338 | 0.032078 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.036585 | 0 | 0.073171 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f51f1a4cfc64468547a1bf70b97687f67b00823c | 634 | py | Python | dagger/dag_creator/airflow/utils/operator_factories.py | jorgetagle/dagger | dafcfb9df904e512f050aefdacf6581c571bac23 | [
"MIT"
] | null | null | null | dagger/dag_creator/airflow/utils/operator_factories.py | jorgetagle/dagger | dafcfb9df904e512f050aefdacf6581c571bac23 | [
"MIT"
] | null | null | null | dagger/dag_creator/airflow/utils/operator_factories.py | jorgetagle/dagger | dafcfb9df904e512f050aefdacf6581c571bac23 | [
"MIT"
] | null | null | null | from functools import partial
from airflow.operators.python_operator import ShortCircuitOperator
def make_control_flow(is_dummy_operator_short_circuit, dag):
control_flow = ShortCircuitOperator(
task_id="dummy-control-flow",
dag=dag,
provide_context=True,
python_callable=partial(e... | 25.36 | 84 | 0.747634 | 80 | 634 | 5.5375 | 0.4375 | 0.148984 | 0.13544 | 0.180587 | 0.363431 | 0.363431 | 0.275395 | 0.189616 | 0 | 0 | 0 | 0.001953 | 0.192429 | 634 | 24 | 85 | 26.416667 | 0.863281 | 0 | 0 | 0.117647 | 0 | 0 | 0.048896 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.117647 | 0 | 0.470588 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f52b501702b28918819f4339d418e24bd36e3fba | 1,506 | py | Python | geeksforgeeks/Data Structures/check_if_subtree.py | codervikash/online-courses | a60efad23af65080a98e7dd038fb2c750237b781 | [
"MIT"
] | null | null | null | geeksforgeeks/Data Structures/check_if_subtree.py | codervikash/online-courses | a60efad23af65080a98e7dd038fb2c750237b781 | [
"MIT"
] | null | null | null | geeksforgeeks/Data Structures/check_if_subtree.py | codervikash/online-courses | a60efad23af65080a98e7dd038fb2c750237b781 | [
"MIT"
] | null | null | null | # Given two binary trees, check if the first tree is subtree of the second one.
# A subtree of a tree T is a tree S consisting of a node in T and all of its descendants in T.
# The subtree corresponding to the root node is the entire tree; the subtree corresponding to any other node is called a proper subtree.
class... | 20.351351 | 136 | 0.632802 | 259 | 1,506 | 3.633205 | 0.266409 | 0.057386 | 0.042508 | 0.053135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045496 | 0.270252 | 1,506 | 74 | 137 | 20.351351 | 0.810737 | 0.250332 | 0 | 0.088235 | 0 | 0 | 0.068027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f52eac71ac3094d6c2f5d753f7dc5413e91d3ecd | 422 | py | Python | webhook.py | cadamswaite/RPI-Jekyll-Compiler | acf905b11f41c3bda286d4907a038b7888b1c8fa | [
"Unlicense"
] | null | null | null | webhook.py | cadamswaite/RPI-Jekyll-Compiler | acf905b11f41c3bda286d4907a038b7888b1c8fa | [
"Unlicense"
] | null | null | null | webhook.py | cadamswaite/RPI-Jekyll-Compiler | acf905b11f41c3bda286d4907a038b7888b1c8fa | [
"Unlicense"
] | null | null | null | from bottle import route, run, template
gitdict = {'po2go':{'https://github.com/cadamswaite/po2go.git:master':'https://github.com/cadamswaite/po2go.git:gh-pages'}}
# Handle http requests to the root address
@route('/')
def index():
return 'Go away.'
@route('/build/<name>')
def greet(name):
if name in gitdict:
r... | 23.444444 | 123 | 0.684834 | 64 | 422 | 4.515625 | 0.640625 | 0.020761 | 0.096886 | 0.17301 | 0.228374 | 0.228374 | 0 | 0 | 0 | 0 | 0 | 0.024725 | 0.137441 | 422 | 17 | 124 | 24.823529 | 0.769231 | 0.094787 | 0 | 0 | 0 | 0 | 0.418421 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0.083333 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f5327046ce5fcde6d3a6fd1f71b52eace22cd4ab | 3,613 | py | Python | proxy_prometheus_alerts.py | mhagander/promnagios | 12329b7abbbb76746784c4b706f4784c63bae194 | [
"PostgreSQL"
] | 1 | 2019-06-07T14:10:14.000Z | 2019-06-07T14:10:14.000Z | proxy_prometheus_alerts.py | mhagander/promnagios | 12329b7abbbb76746784c4b706f4784c63bae194 | [
"PostgreSQL"
] | null | null | null | proxy_prometheus_alerts.py | mhagander/promnagios | 12329b7abbbb76746784c4b706f4784c63bae194 | [
"PostgreSQL"
] | null | null | null | #!/usr/bin/env python3
#
# Proxy alerts generated by Prometheus Alertmanager turning them into
# nagios passive alert information.
#
# Copyright 2019-2020, PostgreSQL Infrastructure Team
# Author: Magnus Hagander
#
import argparse
import http.server
import json
import time
import sys
missed_alerts = 0
def send_nag... | 30.361345 | 82 | 0.568779 | 406 | 3,613 | 4.950739 | 0.41133 | 0.027861 | 0.024876 | 0.027861 | 0.100498 | 0.100498 | 0.049751 | 0.049751 | 0 | 0 | 0 | 0.01743 | 0.317188 | 3,613 | 118 | 83 | 30.618644 | 0.797325 | 0.084694 | 0 | 0.168539 | 1 | 0 | 0.168335 | 0.013952 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044944 | false | 0 | 0.05618 | 0 | 0.146067 | 0.033708 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f538ca85acdf301ac647a1ecf10d45b209f9fdd3 | 2,419 | py | Python | events/migrations/0020_add_event_comments.py | alysivji/GetTogether | 403d9945fff019701de41d081ad4452e771e1ce1 | [
"BSD-2-Clause"
] | 446 | 2018-01-21T09:22:41.000Z | 2022-03-25T17:46:12.000Z | events/migrations/0020_add_event_comments.py | alysivji/GetTogether | 403d9945fff019701de41d081ad4452e771e1ce1 | [
"BSD-2-Clause"
] | 272 | 2018-01-03T16:55:39.000Z | 2022-03-11T23:12:30.000Z | events/migrations/0020_add_event_comments.py | alysivji/GetTogether | 403d9945fff019701de41d081ad4452e771e1ce1 | [
"BSD-2-Clause"
] | 100 | 2018-01-27T02:04:15.000Z | 2021-09-09T09:02:21.000Z | # Generated by Django 2.0 on 2018-03-24 02:55
import datetime
import django.db.models.deletion
from django.db import migrations, models
import mptt.fields
class Migration(migrations.Migration):
dependencies = [("events", "0019_add_org_slug")]
operations = [
migrations.CreateModel(
nam... | 32.689189 | 88 | 0.47871 | 191 | 2,419 | 5.947644 | 0.424084 | 0.036972 | 0.058099 | 0.077465 | 0.432218 | 0.432218 | 0.292254 | 0.116197 | 0.116197 | 0.116197 | 0 | 0.015449 | 0.411327 | 2,419 | 73 | 89 | 33.136986 | 0.782303 | 0.017776 | 0 | 0.307692 | 1 | 0 | 0.092671 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.061538 | 0 | 0.107692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f53bf8a6756951f510b486992b5a699a1e895570 | 13,529 | py | Python | ant_algorithm.py | devancakra/Ant-Algorithm-Pencarian-Rute-Tercepat | d766c94ab862e2856412ee19cb883033b914bd3f | [
"MIT"
] | 1 | 2021-11-08T12:53:16.000Z | 2021-11-08T12:53:16.000Z | ant_algorithm.py | devancakra/Ant-Algorithm-Pencarian-Rute-Tercepat | d766c94ab862e2856412ee19cb883033b914bd3f | [
"MIT"
] | null | null | null | ant_algorithm.py | devancakra/Ant-Algorithm-Pencarian-Rute-Tercepat | d766c94ab862e2856412ee19cb883033b914bd3f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Ant_Algorithm.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1Zjt1SInhoaFEqSmsPjEfWQE7jhugAvZA
# **ANT ALGORITHM BY KELOMPOK 9**
1. Heri Khariono - 18081010002
2. Devan Cakra Mudra Wijaya - 18081010013
3. Ika Nur Habib... | 46.332192 | 168 | 0.663612 | 1,866 | 13,529 | 4.685959 | 0.207396 | 0.020014 | 0.025274 | 0.035682 | 0.448193 | 0.418001 | 0.360018 | 0.31919 | 0.265554 | 0.259378 | 0 | 0.037922 | 0.204745 | 13,529 | 292 | 169 | 46.332192 | 0.774793 | 0.197945 | 0 | 0.253731 | 1 | 0.00995 | 0.090188 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059701 | false | 0 | 0.044776 | 0 | 0.144279 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f545d16ab5e716cdb065a0e70787360e7d612aef | 275 | py | Python | server/services/main.py | Jordonkopp/Flask-Vue | db842f1a31f2ca4cf51ce1b2a927d6d2ad860c00 | [
"MIT"
] | 2 | 2019-02-27T16:55:01.000Z | 2019-02-27T20:23:29.000Z | server/services/main.py | Jordonkopp/Flask-Vue | db842f1a31f2ca4cf51ce1b2a927d6d2ad860c00 | [
"MIT"
] | 5 | 2020-04-30T00:01:01.000Z | 2021-10-05T19:42:15.000Z | server/services/main.py | Jordonkopp/Flask-Vue | db842f1a31f2ca4cf51ce1b2a927d6d2ad860c00 | [
"MIT"
] | null | null | null | from flask import Blueprint, redirect, url_for
from server.utils.core_utils import logger
# Create Blueprint
main = Blueprint("main", __name__)
# redirect when you visit /
@main.route("/")
def index():
logger.info("Base redirect")
return redirect(url_for('keys'))
| 21.153846 | 46 | 0.727273 | 37 | 275 | 5.216216 | 0.648649 | 0.11399 | 0.145078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149091 | 275 | 12 | 47 | 22.916667 | 0.824786 | 0.152727 | 0 | 0 | 0 | 0 | 0.095652 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f5465045af39eda12ecdfeb4fa359c70d7f7cca7 | 528 | py | Python | api/migrations/0003_group_post.py | KolesnikRV/api_final_yatube | 23fdd8b6c2a55ff5c70c62b58ecd69ff1dd23e7d | [
"BSD-3-Clause"
] | null | null | null | api/migrations/0003_group_post.py | KolesnikRV/api_final_yatube | 23fdd8b6c2a55ff5c70c62b58ecd69ff1dd23e7d | [
"BSD-3-Clause"
] | null | null | null | api/migrations/0003_group_post.py | KolesnikRV/api_final_yatube | 23fdd8b6c2a55ff5c70c62b58ecd69ff1dd23e7d | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 3.1.7 on 2021-03-07 06:43
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('api', '0002_auto_20210306_1136'),
]
operations = [
migrations.AddField(
model_name='group',
... | 25.142857 | 132 | 0.63447 | 62 | 528 | 5.290323 | 0.677419 | 0.073171 | 0.085366 | 0.134146 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077694 | 0.244318 | 528 | 20 | 133 | 26.4 | 0.744361 | 0.085227 | 0 | 0 | 1 | 0 | 0.099792 | 0.047817 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f554392a1fb675c44914e72f8067a655af6c342c | 464 | py | Python | graphql/main.py | py-in-the-sky/appengine-swapi | 824d770cd11e5510b2300d1e248a9474e3fde8c2 | [
"MIT"
] | null | null | null | graphql/main.py | py-in-the-sky/appengine-swapi | 824d770cd11e5510b2300d1e248a9474e3fde8c2 | [
"MIT"
] | null | null | null | graphql/main.py | py-in-the-sky/appengine-swapi | 824d770cd11e5510b2300d1e248a9474e3fde8c2 | [
"MIT"
] | null | null | null | """
`main` is the top level module where AppEngine gets access
to your Flask application.
"""
from app import create_app
from config import config
from os import environ
if environ['SERVER_SOFTWARE'].startswith('Development'):
app_config = config['development']
else:
app_config = config['production']
app ... | 22.095238 | 60 | 0.752155 | 67 | 464 | 5.119403 | 0.61194 | 0.078717 | 0.087464 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161638 | 464 | 20 | 61 | 23.2 | 0.881748 | 0.43319 | 0 | 0 | 0 | 0 | 0.185039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 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 | 0 | 0 | 0 | 1 |
f5599fb599f6ac244f63777232a27937cf321454 | 2,678 | py | Python | organize/filters/mimetype.py | tank0226/organize | d5595a52f06ea6c805fe421dcc2429a3ccd03b09 | [
"MIT"
] | 1,231 | 2018-01-13T17:06:24.000Z | 2022-03-31T22:14:36.000Z | organize/filters/mimetype.py | tank0226/organize | d5595a52f06ea6c805fe421dcc2429a3ccd03b09 | [
"MIT"
] | 170 | 2018-03-13T19:15:17.000Z | 2022-03-31T10:14:15.000Z | organize/filters/mimetype.py | tank0226/organize | d5595a52f06ea6c805fe421dcc2429a3ccd03b09 | [
"MIT"
] | 86 | 2018-03-14T02:12:49.000Z | 2022-03-27T00:16:07.000Z | import mimetypes
from pathlib import Path
from organize.utils import DotDict, flatten
from .filter import Filter
class MimeType(Filter):
"""
Filter by MIME type associated with the file extension.
Supports a single string or list of MIME type strings as argument.
The types don't need to be fully s... | 26.514851 | 125 | 0.5295 | 278 | 2,678 | 5.05036 | 0.399281 | 0.032051 | 0.046296 | 0.05698 | 0.166667 | 0.166667 | 0.166667 | 0.166667 | 0.136752 | 0.136752 | 0 | 0.000599 | 0.3764 | 2,678 | 100 | 126 | 26.78 | 0.84012 | 0.592233 | 0 | 0 | 0 | 0 | 0.024581 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.16 | 0.04 | 0.68 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f5617dd2284793a4d37b296ffc5aba3ca5a2e5d9 | 1,143 | py | Python | aiml_bot/utilities.py | hosford42/pyaiml | 42bb344d5f1d75c136e512bd05a44945d506f490 | [
"BSD-2-Clause"
] | 9 | 2017-08-17T08:34:44.000Z | 2021-01-06T16:08:09.000Z | aiml_bot/utilities.py | hosford42/pyaiml | 42bb344d5f1d75c136e512bd05a44945d506f490 | [
"BSD-2-Clause"
] | 2 | 2017-08-17T19:53:41.000Z | 2020-01-22T23:19:44.000Z | aiml_bot/utilities.py | hosford42/pyaiml | 42bb344d5f1d75c136e512bd05a44945d506f490 | [
"BSD-2-Clause"
] | 1 | 2018-07-29T19:16:14.000Z | 2018-07-29T19:16:14.000Z | """
This file contains assorted general utility functions used by other
modules in the aiml_bot package.
"""
# TODO: Correctly handle abbreviations.
def split_sentences(text: str) -> list:
"""Split the string s into a list of sentences."""
if not isinstance(text, str):
raise TypeError(text)
positi... | 29.307692 | 67 | 0.594051 | 126 | 1,143 | 5.373016 | 0.515873 | 0.039882 | 0.075332 | 0.10192 | 0.146233 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006361 | 0.312336 | 1,143 | 38 | 68 | 30.078947 | 0.854962 | 0.250219 | 0 | 0.222222 | 0 | 0 | 0.003567 | 0 | 0 | 0 | 0 | 0.026316 | 0 | 1 | 0.037037 | false | 0 | 0 | 0 | 0.074074 | 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 | 0 | 0 | 0 | 1 |
f56c33ff6b67b94fb127b4ea54ac62ad0efe9506 | 2,458 | py | Python | artifactory/repository/repository.py | VeritasOS/py-artifactory | a54bde5cf31f02a1f836bb013ac17a78859b3370 | [
"Apache-2.0"
] | 6 | 2017-08-11T23:53:43.000Z | 2019-10-25T17:34:11.000Z | artifactory/repository/repository.py | VeritasOS/py-artifactory | a54bde5cf31f02a1f836bb013ac17a78859b3370 | [
"Apache-2.0"
] | 2 | 2019-05-07T01:36:08.000Z | 2021-03-31T18:40:11.000Z | artifactory/repository/repository.py | VeritasOS/py-artifactory | a54bde5cf31f02a1f836bb013ac17a78859b3370 | [
"Apache-2.0"
] | 2 | 2018-12-11T09:43:15.000Z | 2019-10-25T18:19:05.000Z | # -*- coding: utf-8 -*-
"""
Artifactory repository endpoint
"""
__copyright__ = "Copyright (C) 2016 Veritas Technologies LLC. All rights reserved."
# project imports
from ..http import HTTP
from .repotype import RepositoryType
from .virtual import Virtual
from .local import Local
from .remote import Remote
# define a... | 27.311111 | 83 | 0.579333 | 263 | 2,458 | 5.311787 | 0.292776 | 0.035075 | 0.028633 | 0.027201 | 0.117394 | 0.117394 | 0.117394 | 0 | 0 | 0 | 0 | 0.006965 | 0.299024 | 2,458 | 89 | 84 | 27.617978 | 0.803831 | 0.07974 | 0 | 0.133333 | 0 | 0 | 0.142729 | 0 | 0 | 0 | 0 | 0.011236 | 0 | 1 | 0.116667 | false | 0 | 0.083333 | 0.05 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
f578b94c9410c26b42768750abeeeeadcdf0cd8f | 4,820 | py | Python | portfolio_pj/portfolio_app/views.py | duynb92/portfolio_site_py | b69be83a11d9adafae664bf08e506273f541ff53 | [
"MIT"
] | null | null | null | portfolio_pj/portfolio_app/views.py | duynb92/portfolio_site_py | b69be83a11d9adafae664bf08e506273f541ff53 | [
"MIT"
] | 4 | 2020-02-11T23:47:01.000Z | 2021-06-10T21:12:36.000Z | portfolio_pj/portfolio_app/views.py | duynb92/portfolio_site_py | b69be83a11d9adafae664bf08e506273f541ff53 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from django.db.models import Count
from django.template import RequestContext
from django.views.decorators.csrf import csrf_exempt
from django.htt... | 41.551724 | 111 | 0.700415 | 603 | 4,820 | 5.451078 | 0.281924 | 0.040158 | 0.050198 | 0.068451 | 0.265896 | 0.239732 | 0.239732 | 0.222695 | 0.203225 | 0.203225 | 0 | 0.002747 | 0.169087 | 4,820 | 116 | 112 | 41.551724 | 0.817978 | 0.069295 | 0 | 0.137931 | 0 | 0 | 0.096717 | 0.004691 | 0 | 0 | 0 | 0 | 0 | 1 | 0.183908 | false | 0 | 0.137931 | 0.045977 | 0.528736 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f57b96c36aa134214c43fa41994f0ddf57c913f2 | 1,979 | py | Python | main.py | TheGreatRambler/blender-universal-exporter | 996191a787b36aa6ea007b82a36b9a752b9f50ee | [
"MIT"
] | 2 | 2018-10-11T17:34:51.000Z | 2021-04-26T20:51:45.000Z | main.py | TheGreatRambler/blender-universal-exporter | 996191a787b36aa6ea007b82a36b9a752b9f50ee | [
"MIT"
] | null | null | null | main.py | TheGreatRambler/blender-universal-exporter | 996191a787b36aa6ea007b82a36b9a752b9f50ee | [
"MIT"
] | null | null | null | bl_info = {
"name": "Universal Exporter",
"category": "Import & Export",
}
import bpy
class Export(bpy.types.Operator):
"""Export blender project"""
bl_idname = "object.export_scene"
bl_label = "Export Blender Scene"
bl_options = {'REGISTER', 'UNDO'}
def execute(self, context):
s... | 32.983333 | 69 | 0.458312 | 174 | 1,979 | 4.936782 | 0.505747 | 0.065192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002849 | 0.467913 | 1,979 | 59 | 70 | 33.542373 | 0.812915 | 0.037898 | 0 | 0 | 0 | 0 | 0.065705 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.045455 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f57e7874385469f7089b57659f20f37fe7da9980 | 1,764 | py | Python | solutions/0409-longest-palindrome/longest-palindrome.py | iFun/Project-G | d33b3b3c7bcee64f93dc2539fd9955a27f321d96 | [
"MIT"
] | null | null | null | solutions/0409-longest-palindrome/longest-palindrome.py | iFun/Project-G | d33b3b3c7bcee64f93dc2539fd9955a27f321d96 | [
"MIT"
] | null | null | null | solutions/0409-longest-palindrome/longest-palindrome.py | iFun/Project-G | d33b3b3c7bcee64f93dc2539fd9955a27f321d96 | [
"MIT"
] | null | null | null | # Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those letters.
#
# This is case sensitive, for example "Aa" is not considered a palindrome here.
#
# Note:
# Assume the length of given string will not exceed 1,010.
#
#
# Example:
... | 20.275862 | 148 | 0.616213 | 239 | 1,764 | 4.523013 | 0.384937 | 0.049954 | 0.040703 | 0.051804 | 0.601295 | 0.601295 | 0.601295 | 0.601295 | 0.601295 | 0.601295 | 0 | 0.03892 | 0.286281 | 1,764 | 86 | 149 | 20.511628 | 0.819698 | 0.613379 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0 | 0 | 0.315789 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f582dcf3f1bc8baf921c638fcb41729df76ff930 | 2,042 | py | Python | ricecooker/utils/libstudio.py | elaeon/ricecooker | e5ef13478625b6996775ae7690e027140bc63373 | [
"MIT"
] | null | null | null | ricecooker/utils/libstudio.py | elaeon/ricecooker | e5ef13478625b6996775ae7690e027140bc63373 | [
"MIT"
] | 1 | 2019-04-20T07:14:04.000Z | 2019-04-20T07:14:04.000Z | ricecooker/utils/libstudio.py | nucleogenesis/ricecooker | 7525f842e34f5bbb37d1f2d3c85872faa32724ff | [
"MIT"
] | null | null | null | import requests
import requests_cache
requests_cache.install_cache()
from ricecooker.config import LOGGER
STUDIO_URL = 'https://studio.learningequality.org'
NODES_ENDPOINT = STUDIO_URL + '/api/get_nodes_by_ids_complete/'
LICENSES_LIST_ENDPOINT = STUDIO_URL + '/api/license'
# TODO https://studio.learningequa... | 37.127273 | 94 | 0.664055 | 238 | 2,042 | 5.39916 | 0.298319 | 0.056031 | 0.031128 | 0.040467 | 0.133852 | 0.101167 | 0.063813 | 0 | 0 | 0 | 0 | 0.025016 | 0.236533 | 2,042 | 54 | 95 | 37.814815 | 0.79923 | 0.13761 | 0 | 0.051282 | 0 | 0 | 0.102653 | 0.017878 | 0 | 0 | 0 | 0.018519 | 0 | 1 | 0.128205 | false | 0 | 0.076923 | 0 | 0.307692 | 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 | 0 | 0 | 0 | 1 |
f58515c1c70e7d555b4680ca39bcd04616159789 | 1,983 | py | Python | metodoDePaulo.py | paulossa/MSN | e80b4b82ae865ea50f69619712f7e73dc1eac95d | [
"MIT"
] | null | null | null | metodoDePaulo.py | paulossa/MSN | e80b4b82ae865ea50f69619712f7e73dc1eac95d | [
"MIT"
] | null | null | null | metodoDePaulo.py | paulossa/MSN | e80b4b82ae865ea50f69619712f7e73dc1eac95d | [
"MIT"
] | null | null | null | # coding: utf-8
import sys
__author__ = "Paulo Sérgio dos Santos Araujo"
__license__ = "MIT"
__version__ = "1.0.0"
__email__ = "paulo.araujo [at] splab.ufcg.edu.br"
class Msn:
"""
Essa classe feita para disciplina de Métodos de Software Númericos - UFCG 2018.2
se propõe a encontrar as raízes de uma certa... | 36.054545 | 122 | 0.534039 | 265 | 1,983 | 3.875472 | 0.430189 | 0.038948 | 0.023369 | 0.029211 | 0.090555 | 0.056475 | 0.033106 | 0.033106 | 0.033106 | 0 | 0 | 0.065399 | 0.336863 | 1,983 | 55 | 123 | 36.054545 | 0.715589 | 0.283913 | 0 | 0.057143 | 0 | 0 | 0.133481 | 0 | 0 | 0 | 0 | 0.018182 | 0 | 1 | 0.085714 | false | 0 | 0.028571 | 0.028571 | 0.171429 | 0.085714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f5936c772afa998f17b6206beacedcb9d549bb50 | 2,167 | py | Python | GoAround/goaround.py | AJunque9/GoAround | 1f432a6a80e057e818e2c2073d3bafebba49de48 | [
"MIT"
] | 6 | 2021-10-03T10:42:59.000Z | 2022-01-05T05:25:57.000Z | GoAround/goaround.py | AJunque9/GoAround | 1f432a6a80e057e818e2c2073d3bafebba49de48 | [
"MIT"
] | null | null | null | GoAround/goaround.py | AJunque9/GoAround | 1f432a6a80e057e818e2c2073d3bafebba49de48 | [
"MIT"
] | 1 | 2021-10-13T08:38:58.000Z | 2021-10-13T08:38:58.000Z | import sys
import helpers.printer
import helpers.parser
import helpers.config
import program.obfuscation
import program.bypass
modes = helpers.config.Modes
bypass_methods = helpers.config.BypassMethods
obfuscation_methods = helpers.config.ObfuscationMethods
printer = helpers.printer.Printer()
parser = helpers.parser.... | 29.283784 | 103 | 0.616059 | 241 | 2,167 | 5.414938 | 0.302905 | 0.039847 | 0.043678 | 0.016858 | 0.081226 | 0.042912 | 0.042912 | 0.042912 | 0 | 0 | 0 | 0.005863 | 0.291647 | 2,167 | 73 | 104 | 29.684932 | 0.8443 | 0.05353 | 0 | 0.233333 | 0 | 0 | 0.108398 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0.116667 | 0.1 | 0 | 0.133333 | 0.15 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
f59c2ee308a2569240f5244e69e497fec60a9ffe | 253 | py | Python | setting.py | JamesPerlman/Dain-App | f589abdca8309cfdb6dd106da7c7c4613d152c72 | [
"MIT"
] | 688 | 2020-12-02T18:02:21.000Z | 2022-03-31T09:56:14.000Z | setting.py | JamesPerlman/Dain-App | f589abdca8309cfdb6dd106da7c7c4613d152c72 | [
"MIT"
] | 29 | 2020-12-03T00:21:25.000Z | 2021-12-04T22:32:42.000Z | setting.py | JamesPerlman/Dain-App | f589abdca8309cfdb6dd106da7c7c4613d152c72 | [
"MIT"
] | 88 | 2020-12-03T00:13:29.000Z | 2022-03-26T16:03:38.000Z | counter = 0
interpolations = None
padding = None
def AddCounter(tag):
global counter
#print("\nSetting:\n" +tag +": " + str(counter) + "\n")
counter += 1
def SetPad(pad):
global padding
padding = pad
def GetPad():
global padding
return padding
| 15.8125 | 56 | 0.679842 | 33 | 253 | 5.212121 | 0.545455 | 0.151163 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009662 | 0.181818 | 253 | 15 | 57 | 16.866667 | 0.821256 | 0.213439 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f59da655c4bae4aa2a9b07d54d040a1c00439910 | 1,540 | py | Python | bgjobs/plugins.py | holtgrewe/sodar_core | 116c5c8abc1dea483a640ba68af6d5cf4d27c8d7 | [
"MIT"
] | null | null | null | bgjobs/plugins.py | holtgrewe/sodar_core | 116c5c8abc1dea483a640ba68af6d5cf4d27c8d7 | [
"MIT"
] | null | null | null | bgjobs/plugins.py | holtgrewe/sodar_core | 116c5c8abc1dea483a640ba68af6d5cf4d27c8d7 | [
"MIT"
] | null | null | null | """Code related to ``django-plugins``.
First, it creates a ``ProjectAppPluginPoint`` for the ``bgjobs`` app.
Second, it creates a new plugin point for the registering ``BackgroundJob``
specializations.
"""
from djangoplugins.point import PluginPoint
from projectroles.plugins import ProjectAppPluginPoint
from .urls ... | 26.551724 | 77 | 0.718831 | 178 | 1,540 | 6.140449 | 0.44382 | 0.027447 | 0.018298 | 0.036597 | 0.056725 | 0.056725 | 0 | 0 | 0 | 0 | 0 | 0.002439 | 0.201299 | 1,540 | 57 | 78 | 27.017544 | 0.886179 | 0.497403 | 0 | 0 | 0 | 0 | 0.184885 | 0.033738 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.157895 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
1910c0a5070edd02fb3f35021e3104c2486a91bb | 2,266 | py | Python | binaryblob.py | rikusalminen/trimuncher | bdf534fdf382c750e0ec7a6031433de88014e656 | [
"Zlib"
] | 1 | 2018-11-06T05:11:08.000Z | 2018-11-06T05:11:08.000Z | binaryblob.py | rikusalminen/trimuncher | bdf534fdf382c750e0ec7a6031433de88014e656 | [
"Zlib"
] | null | null | null | binaryblob.py | rikusalminen/trimuncher | bdf534fdf382c750e0ec7a6031433de88014e656 | [
"Zlib"
] | null | null | null | from sys import stdin, stdout
from struct import pack, unpack
def float2half(float_val):
f = unpack('I', pack('f', float_val))[0]
if f == 0: return 0
if f == 0x80000000: return 0x8000
return ((f>>16)&0x8000) | ((((f&0x7f800000)-0x38000000)>>13)&0x7c00) | ((f>>13)&0x03ff)
def half2float(h):
if h ==... | 35.40625 | 91 | 0.621359 | 335 | 2,266 | 4.071642 | 0.235821 | 0.123167 | 0.082111 | 0.048387 | 0.299853 | 0.247801 | 0.171554 | 0.083578 | 0.083578 | 0.061584 | 0 | 0.068627 | 0.234775 | 2,266 | 63 | 92 | 35.968254 | 0.717993 | 0 | 0 | 0.078431 | 0 | 0 | 0.011474 | 0 | 0 | 0 | 0.041924 | 0 | 0.058824 | 0 | null | null | 0 | 0.039216 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
191159a3e3b8327371261a5ae76fdabd0024bab8 | 4,400 | py | Python | src/architecture/cartpole_target.py | ginevracoal/adversarialGAN | 7a38e037a5ddbbe0bb4daed35fcb0e6fbf9b311e | [
"CC-BY-4.0"
] | 1 | 2020-12-15T03:03:47.000Z | 2020-12-15T03:03:47.000Z | src/architecture/cartpole_target.py | ginevracoal/adversarialGAN | 7a38e037a5ddbbe0bb4daed35fcb0e6fbf9b311e | [
"CC-BY-4.0"
] | null | null | null | src/architecture/cartpole_target.py | ginevracoal/adversarialGAN | 7a38e037a5ddbbe0bb4daed35fcb0e6fbf9b311e | [
"CC-BY-4.0"
] | 1 | 2020-11-05T09:35:11.000Z | 2020-11-05T09:35:11.000Z | import os
import torch
import torch.nn as nn
import torch.optim as optim
from torch.utils.tensorboard import SummaryWriter
from tqdm import tqdm
import matplotlib.pyplot as plt
import architecture.default
from architecture.default import Defender
DEBUG=False
BATCH_SIZE=32
FIXED_POLICY=False
NORMALIZE=False
K=10
PENAL... | 30.769231 | 114 | 0.606136 | 541 | 4,400 | 4.731978 | 0.216266 | 0.052734 | 0.058594 | 0.078125 | 0.68125 | 0.66875 | 0.646094 | 0.621094 | 0.621094 | 0.621094 | 0 | 0.005799 | 0.294545 | 4,400 | 143 | 115 | 30.769231 | 0.818943 | 0.034091 | 0 | 0.589474 | 0 | 0 | 0.004247 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.094737 | 0 | 0.2 | 0.021053 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
19128f435521b2a41c0130fc202af247adfc091d | 2,332 | py | Python | src/plugins/notice.py | napalmpiri/irkotr0id | 8125c0119038ddccdf6f0a587fa9eb4a0f66821d | [
"Beerware"
] | 7 | 2017-10-30T17:12:51.000Z | 2021-03-03T23:00:35.000Z | src/plugins/notice.py | napalmpiri/irkotr0id | 8125c0119038ddccdf6f0a587fa9eb4a0f66821d | [
"Beerware"
] | 1 | 2017-09-20T13:34:56.000Z | 2017-09-20T13:34:56.000Z | src/plugins/notice.py | napalmpiri/irkotr0id | 8125c0119038ddccdf6f0a587fa9eb4a0f66821d | [
"Beerware"
] | 7 | 2017-09-16T10:39:20.000Z | 2018-02-28T19:43:57.000Z | #/usr/bin/env python
# -*- coding: Utf8 -*-
import event
class Plugin:
def __init__(self, client):
self.client = client
self.notices = {}
#:nisay!~nisay@53.ip-192-99-70.net PRIVMSG #testbobot :!notice user message
@event.privmsg()
def get_notice(self, e):
target = e.values['t... | 33.797101 | 80 | 0.51458 | 271 | 2,332 | 4.354244 | 0.313653 | 0.101695 | 0.071186 | 0.086441 | 0.235593 | 0.161017 | 0.054237 | 0.054237 | 0 | 0 | 0 | 0.010645 | 0.355489 | 2,332 | 68 | 81 | 34.294118 | 0.774451 | 0.048456 | 0 | 0.236364 | 0 | 0 | 0.10158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.018182 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
19179562beab192ca5fca3ff7c055101546a8163 | 1,527 | py | Python | migrations/versions/8b664608a7c7_.py | wangyuan02605/webcloud | e57a2713125b751ee8bb8da29b789e2044e789aa | [
"MIT"
] | 5 | 2021-12-13T14:52:08.000Z | 2022-03-15T08:59:32.000Z | migrations/versions/8b664608a7c7_.py | wangyuan02605/webcloud | e57a2713125b751ee8bb8da29b789e2044e789aa | [
"MIT"
] | null | null | null | migrations/versions/8b664608a7c7_.py | wangyuan02605/webcloud | e57a2713125b751ee8bb8da29b789e2044e789aa | [
"MIT"
] | 1 | 2021-04-26T06:08:35.000Z | 2021-04-26T06:08:35.000Z | """empty message
Revision ID: 8b664608a7c7
Revises: ec21e19825ff
Create Date: 2021-06-01 14:37:20.327189
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '8b664608a7c7'
down_revision = 'ec21e19825ff'
branch_labels = None
depends_on = None
def upgrade():
# ... | 35.511628 | 80 | 0.675835 | 201 | 1,527 | 5.079602 | 0.40796 | 0.094025 | 0.204701 | 0.061704 | 0.343781 | 0.261508 | 0.261508 | 0.158668 | 0 | 0 | 0 | 0.04958 | 0.141454 | 1,527 | 42 | 81 | 36.357143 | 0.729214 | 0.193189 | 0 | 0 | 0 | 0 | 0.143096 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
191e560813185fd516419069f86e8ed6f0ccdaf4 | 393 | py | Python | Server APP/epl/rest/migrations/0012_auto_20180201_2304.py | seanjohn85/Premier-League | 61c1406733e9c6fb282f8a4544a2f16cd6ff80a0 | [
"MIT"
] | null | null | null | Server APP/epl/rest/migrations/0012_auto_20180201_2304.py | seanjohn85/Premier-League | 61c1406733e9c6fb282f8a4544a2f16cd6ff80a0 | [
"MIT"
] | null | null | null | Server APP/epl/rest/migrations/0012_auto_20180201_2304.py | seanjohn85/Premier-League | 61c1406733e9c6fb282f8a4544a2f16cd6ff80a0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-02-01 23:04
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('rest', '0011_auto_20180201_2256'),
]
operations = [
migrations.RenameModel(
... | 19.65 | 46 | 0.615776 | 43 | 393 | 5.395349 | 0.837209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111498 | 0.26972 | 393 | 19 | 47 | 20.684211 | 0.696864 | 0.167939 | 0 | 0 | 1 | 0 | 0.12963 | 0.070988 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1923272d7be3c0492ef9a0ede3d5a0e3b7f1d272 | 5,542 | py | Python | pyscriptman/hosts/host.py | reap2sow1/pyscriptman | 2020111097e846c3fb6c4669d67de05ee3ef979a | [
"MIT"
] | null | null | null | pyscriptman/hosts/host.py | reap2sow1/pyscriptman | 2020111097e846c3fb6c4669d67de05ee3ef979a | [
"MIT"
] | null | null | null | pyscriptman/hosts/host.py | reap2sow1/pyscriptman | 2020111097e846c3fb6c4669d67de05ee3ef979a | [
"MIT"
] | null | null | null | """The abstract class module for all hosts."""
# Standard Library Imports
from abc import ABC, abstractmethod, abstractclassmethod
# Third Party Imports
# Local Application Imports
from util.helpers import get_typeof_repo_names
from util.message import Message
class Host(ABC):
"""The abstract class for all host... | 28.27551 | 83 | 0.616925 | 624 | 5,542 | 5.267628 | 0.296474 | 0.043809 | 0.056891 | 0.063888 | 0.165196 | 0.1223 | 0.101612 | 0.081533 | 0.062063 | 0.062063 | 0 | 0 | 0.302959 | 5,542 | 195 | 84 | 28.420513 | 0.850893 | 0.508481 | 0 | 0.1875 | 0 | 0 | 0.005558 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.0625 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
192684c2fc33a3cff3429a446241736d19388fbe | 697 | py | Python | apps/careeropportunity/migrations/0015_auto_20200426_1109.py | Kpaubert/onlineweb4 | 9ac79f163bc3a816db57ffa8477ea88770d97807 | [
"MIT"
] | 32 | 2017-02-22T13:38:38.000Z | 2022-03-31T23:29:54.000Z | apps/careeropportunity/migrations/0015_auto_20200426_1109.py | Kpaubert/onlineweb4 | 9ac79f163bc3a816db57ffa8477ea88770d97807 | [
"MIT"
] | 694 | 2017-02-15T23:09:52.000Z | 2022-03-31T23:16:07.000Z | apps/careeropportunity/migrations/0015_auto_20200426_1109.py | Kpaubert/onlineweb4 | 9ac79f163bc3a816db57ffa8477ea88770d97807 | [
"MIT"
] | 35 | 2017-09-02T21:13:09.000Z | 2022-02-21T11:30:30.000Z | # Generated by Django 3.0.5 on 2020-04-26 09:09
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
("companyprofile", "0007_company_created_date"),
("careeropportunity", "0014_auto_20191031_1239"),
]
operatio... | 26.807692 | 60 | 0.604017 | 66 | 697 | 6.212121 | 0.666667 | 0.058537 | 0.068293 | 0.107317 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070994 | 0.292683 | 697 | 25 | 61 | 27.88 | 0.760649 | 0.064562 | 0 | 0 | 1 | 0 | 0.233846 | 0.107692 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1928b4ff5a13f2e891c264d668791fc8b69f1469 | 790 | py | Python | Businesslayer/Email_Validate.py | rohitgs28/FindMyEmployer | d4b369eb488f44e40ef371ac09847f8ccc39994c | [
"MIT"
] | null | null | null | Businesslayer/Email_Validate.py | rohitgs28/FindMyEmployer | d4b369eb488f44e40ef371ac09847f8ccc39994c | [
"MIT"
] | null | null | null | Businesslayer/Email_Validate.py | rohitgs28/FindMyEmployer | d4b369eb488f44e40ef371ac09847f8ccc39994c | [
"MIT"
] | null | null | null | import os
import os.path
import logging
import sys
import IValidator
import re
sys.path.append(os.path.abspath(os.path.join('0', '../extensions')))
from extensions_logging import logmyerror
class Email_Validate(IValidator.IValidator):
def formValidate_BSL(self,email):
try:
regex_emailCheck = r... | 32.916667 | 73 | 0.640506 | 91 | 790 | 5.450549 | 0.549451 | 0.03629 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001724 | 0.265823 | 790 | 24 | 74 | 32.916667 | 0.853448 | 0 | 0 | 0 | 0 | 0 | 0.117573 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.318182 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
192d556dfe9b06a1468a98d96f04aa0a6fb881ce | 331 | py | Python | data/split.py | manhcuongk55/gender-classification-by-hand | cafc5781f9c0a6476e848239f13d3ddf3a55de59 | [
"MIT"
] | null | null | null | data/split.py | manhcuongk55/gender-classification-by-hand | cafc5781f9c0a6476e848239f13d3ddf3a55de59 | [
"MIT"
] | null | null | null | data/split.py | manhcuongk55/gender-classification-by-hand | cafc5781f9c0a6476e848239f13d3ddf3a55de59 | [
"MIT"
] | 1 | 2020-12-07T06:38:16.000Z | 2020-12-07T06:38:16.000Z | import shutil
with open('test.csv', 'r') as f:
lines = f.readlines()
for line in lines:
image, gender = line.split(",")
print(image)
if 'female' in gender:
shutil.move("test/" + image, "test/female/" + image)
else:
shutil.move("test/" + image, "test/male/... | 27.583333 | 64 | 0.531722 | 41 | 331 | 4.292683 | 0.560976 | 0.113636 | 0.159091 | 0.215909 | 0.261364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.305136 | 331 | 11 | 65 | 30.090909 | 0.765217 | 0 | 0 | 0 | 0 | 0 | 0.145015 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1935874de5ab32170824f8aa54ca87bd5761ec1c | 4,697 | py | Python | src/estimator.py | NoumbissiValere/covid-19-cure | 7b4ace8cb746c6ee5952bfd678303500f5ab58dc | [
"MIT"
] | null | null | null | src/estimator.py | NoumbissiValere/covid-19-cure | 7b4ace8cb746c6ee5952bfd678303500f5ab58dc | [
"MIT"
] | null | null | null | src/estimator.py | NoumbissiValere/covid-19-cure | 7b4ace8cb746c6ee5952bfd678303500f5ab58dc | [
"MIT"
] | null | null | null | def estimator(data):
currentlyInfected = covid19ImpactEstimator(data['reportedCases'])
severeCurrentlyInfected = covid19ImpactEstimator(data['reportedCases'],
severe=True)
infectionsByRequestedTime = getInfectionsByRequestedTime(currentlyInfected,
... | 51.054348 | 110 | 0.604003 | 225 | 4,697 | 12.608889 | 0.284444 | 0.049348 | 0.059217 | 0.031724 | 0.049348 | 0.049348 | 0.049348 | 0 | 0 | 0 | 0 | 0.009804 | 0.326804 | 4,697 | 91 | 111 | 51.615385 | 0.887413 | 0 | 0 | 0.227848 | 0 | 0 | 0.129231 | 0.06898 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088608 | false | 0 | 0 | 0.025316 | 0.21519 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
193c6a68a587626a9b404a216a915daaf939afcb | 7,187 | py | Python | leetcode_python/Design/first-unique-number.py | yennanliu/Python_basics | 6a597442d39468295946cefbfb11d08f61424dc3 | [
"Unlicense"
] | null | null | null | leetcode_python/Design/first-unique-number.py | yennanliu/Python_basics | 6a597442d39468295946cefbfb11d08f61424dc3 | [
"Unlicense"
] | null | null | null | leetcode_python/Design/first-unique-number.py | yennanliu/Python_basics | 6a597442d39468295946cefbfb11d08f61424dc3 | [
"Unlicense"
] | null | null | null | """
1429. First Unique Number
# https://leetcode.ca/all/1429.html
You have a queue of integers, you need to retrieve the first unique integer in the queue.
Implement the FirstUnique class:
FirstUnique(int[] nums) Initializes the object with the numbers in the queue.
int showFirstUnique() returns the value of the f... | 27.856589 | 125 | 0.579797 | 945 | 7,187 | 4.379894 | 0.167196 | 0.019812 | 0.024644 | 0.026093 | 0.452283 | 0.376661 | 0.37497 | 0.293308 | 0.285335 | 0.276637 | 0 | 0.051214 | 0.266453 | 7,187 | 258 | 126 | 27.856589 | 0.733877 | 0.159315 | 0 | 0.518868 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.028302 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1944d33ab633803b83a02f71e2b185489b6751ce | 2,180 | py | Python | week10_classes/seminar/generator_widgets.py | fortminors/msai-python | 1dfe19c132cd59125ef64164cce007845ffb6cf8 | [
"MIT"
] | 9 | 2021-03-12T06:59:10.000Z | 2022-01-21T20:23:31.000Z | week10_classes/seminar/generator_widgets.py | fortminors/msai-python | 1dfe19c132cd59125ef64164cce007845ffb6cf8 | [
"MIT"
] | null | null | null | week10_classes/seminar/generator_widgets.py | fortminors/msai-python | 1dfe19c132cd59125ef64164cce007845ffb6cf8 | [
"MIT"
] | 14 | 2021-03-25T15:23:19.000Z | 2022-02-05T14:34:40.000Z | # Form implementation generated from reading ui file 'generator.ui'
#
# Created by: PyQt6 UI code generator 6.2.2
#
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt6 import QtCore, QtGui, QtWidgets
class Ui_... | 45.416667 | 86 | 0.707798 | 231 | 2,180 | 6.640693 | 0.419913 | 0.099087 | 0.068449 | 0.062581 | 0.050847 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032457 | 0.180275 | 2,180 | 47 | 87 | 46.382979 | 0.825965 | 0.115138 | 0 | 0 | 1 | 0 | 0.086889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.028571 | 0 | 0.114286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1946a0c16887bdd25321c997aa98e68109542c3a | 12,725 | py | Python | tests/test_dryruns.py | gmcgoldr/pyteal_utils | 6dc33d1f18b73ce26163040e37fb145ccd5c1de8 | [
"MIT"
] | 2 | 2021-12-16T15:43:46.000Z | 2022-01-11T13:24:50.000Z | tests/test_dryruns.py | gmcgoldr/pyteal_utils | 6dc33d1f18b73ce26163040e37fb145ccd5c1de8 | [
"MIT"
] | null | null | null | tests/test_dryruns.py | gmcgoldr/pyteal_utils | 6dc33d1f18b73ce26163040e37fb145ccd5c1de8 | [
"MIT"
] | 1 | 2022-01-11T13:25:03.000Z | 2022-01-11T13:25:03.000Z | import algosdk as ag
import pyteal as tl
import pytest
from algosdk.future.transaction import OnComplete
from algosdk.v2client.algod import AlgodClient
from algosdk.v2client.models.application_local_state import ApplicationLocalState
from algosdk.v2client.models.application_state_schema import ApplicationStateSchema
f... | 36.048159 | 88 | 0.691473 | 1,660 | 12,725 | 5.040361 | 0.112048 | 0.052588 | 0.033465 | 0.040158 | 0.715071 | 0.618143 | 0.547747 | 0.506155 | 0.404805 | 0.358193 | 0 | 0.01623 | 0.186562 | 12,725 | 352 | 89 | 36.150568 | 0.792097 | 0.035678 | 0 | 0.371025 | 0 | 0 | 0.039484 | 0 | 0 | 0 | 0 | 0 | 0.261484 | 1 | 0.09894 | false | 0.053004 | 0.031802 | 0 | 0.130742 | 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 | 0 | 0 | 0 | 1 |
1947c38029e5b214e95d735bbab912cedc55ad7e | 5,151 | py | Python | wildlifelicensing/apps/returns/models.py | jawaidm/wildlifelicensing | 87e8e9ab163e0d7bbb0c7a654a13ce8a4d8fcf82 | [
"Apache-2.0"
] | null | null | null | wildlifelicensing/apps/returns/models.py | jawaidm/wildlifelicensing | 87e8e9ab163e0d7bbb0c7a654a13ce8a4d8fcf82 | [
"Apache-2.0"
] | 11 | 2019-03-19T02:03:11.000Z | 2019-05-31T07:20:59.000Z | wildlifelicensing/apps/returns/models.py | jawaidm/wildlifelicensing | 87e8e9ab163e0d7bbb0c7a654a13ce8a4d8fcf82 | [
"Apache-2.0"
] | 2 | 2020-08-10T10:17:10.000Z | 2021-10-31T23:20:53.000Z | from __future__ import unicode_literals
from django.db import models
from django.contrib.postgres.fields.jsonb import JSONField
from django.core.exceptions import ValidationError
import datapackage
import jsontableschema
from ledger.accounts.models import RevisionedMixin, EmailUser
from wildlifelicensing.apps.main.m... | 34.57047 | 113 | 0.664143 | 555 | 5,151 | 6.061261 | 0.291892 | 0.03805 | 0.015458 | 0.020214 | 0.023187 | 0.023187 | 0 | 0 | 0 | 0 | 0 | 0.003549 | 0.234129 | 5,151 | 148 | 114 | 34.804054 | 0.849176 | 0.116482 | 0 | 0.136842 | 0 | 0 | 0.083871 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.094737 | false | 0 | 0.084211 | 0.042105 | 0.589474 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
1949bf476b27ab37588853e2472ecb87a7d25778 | 5,485 | py | Python | tests/python/tensor_graph/test/test_internal/correctness/grad-op-test/te-cat-case2.py | QinHan-Erin/AMOS | 634bf48edf4015e4a69a8c32d49b96bce2b5f16f | [
"Apache-2.0"
] | 22 | 2022-03-18T07:29:31.000Z | 2022-03-23T14:54:32.000Z | tests/python/tensor_graph/test/test_internal/correctness/grad-op-test/te-cat-case2.py | QinHan-Erin/AMOS | 634bf48edf4015e4a69a8c32d49b96bce2b5f16f | [
"Apache-2.0"
] | null | null | null | tests/python/tensor_graph/test/test_internal/correctness/grad-op-test/te-cat-case2.py | QinHan-Erin/AMOS | 634bf48edf4015e4a69a8c32d49b96bce2b5f16f | [
"Apache-2.0"
] | 2 | 2022-03-18T08:26:34.000Z | 2022-03-20T06:02:48.000Z | from tvm import testing
from tvm from tvm import topi
import tvm
import numpy as np
import torch
dim0 = 3
dim1 = 4
dim2 = 1
shape_size1 = [dim0, dim1, dim2]
shape_size2 = [dim0, dim1, dim2 * 8]
dtype = "float32"
cap0 = tvm.te.placeholder(shape_size1, dtype=dtype, name="cap0")
cap1 = tvm.te.placeholder(shape_size1, ... | 43.531746 | 95 | 0.699909 | 924 | 5,485 | 3.953463 | 0.117965 | 0.068437 | 0.03942 | 0.064057 | 0.42294 | 0.42294 | 0.39228 | 0.311799 | 0.202299 | 0.194087 | 0 | 0.072335 | 0.138013 | 5,485 | 125 | 96 | 43.88 | 0.700296 | 0.010392 | 0 | 0 | 0 | 0 | 0.046276 | 0 | 0 | 0 | 0 | 0 | 0.078431 | 0 | null | null | 0 | 0.04902 | null | null | 0.039216 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
194c851ed5bb33eaa2cf355799844f072e6955b4 | 2,334 | py | Python | pagewalker/pagewalker/analyzer/devtools/devtools_protocol.py | rafal-qa/page-walker | 8940a819d436d46f729c9307effc5118d692cad0 | [
"MIT"
] | 16 | 2018-07-08T19:20:15.000Z | 2021-01-08T22:08:49.000Z | pagewalker/pagewalker/analyzer/devtools/devtools_protocol.py | rafal-qa/page-walker | 8940a819d436d46f729c9307effc5118d692cad0 | [
"MIT"
] | null | null | null | pagewalker/pagewalker/analyzer/devtools/devtools_protocol.py | rafal-qa/page-walker | 8940a819d436d46f729c9307effc5118d692cad0 | [
"MIT"
] | 5 | 2018-10-26T13:08:10.000Z | 2020-06-20T21:03:17.000Z | from .connector import websocket_connector, http_connector
class DevtoolsProtocol(object):
def __init__(self):
self._http = http_connector.HttpConnector()
self.tab_socket = None
self.tab_target_id = None
@property
def browser_data(self):
return self._http.browser_data
... | 33.342857 | 86 | 0.653385 | 286 | 2,334 | 4.982517 | 0.20979 | 0.068772 | 0.082105 | 0.052632 | 0.162105 | 0.143158 | 0.143158 | 0.143158 | 0.116491 | 0.065965 | 0 | 0 | 0.252785 | 2,334 | 69 | 87 | 33.826087 | 0.817087 | 0 | 0 | 0.196429 | 0 | 0 | 0.059554 | 0 | 0 | 0 | 0 | 0 | 0.107143 | 1 | 0.214286 | false | 0 | 0.017857 | 0.017857 | 0.375 | 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 | 0 | 0 | 0 | 1 |
19557822a163b70d4aa82e704dabbed7f22587fe | 4,273 | py | Python | tests/rl/test_rainbow.py | pocokhc/simple_rl | 765f12f392f87e6897027905d74f1bced6a2b7bf | [
"MIT"
] | 1 | 2022-03-01T09:16:57.000Z | 2022-03-01T09:16:57.000Z | tests/rl/test_rainbow.py | pocokhc/simple_rl | 765f12f392f87e6897027905d74f1bced6a2b7bf | [
"MIT"
] | null | null | null | tests/rl/test_rainbow.py | pocokhc/simple_rl | 765f12f392f87e6897027905d74f1bced6a2b7bf | [
"MIT"
] | null | null | null | import unittest
import srl
from srl.test import TestRL
class Test(unittest.TestCase):
def setUp(self) -> None:
self.tester = TestRL()
self.rl_config = srl.rl.rainbow.Config()
def test_sequence(self):
self.tester.play_sequence(self.rl_config)
def test_mp(self):
self.teste... | 36.521368 | 101 | 0.670723 | 585 | 4,273 | 4.577778 | 0.17094 | 0.15534 | 0.228529 | 0.089619 | 0.668036 | 0.567214 | 0.513443 | 0.513443 | 0.473114 | 0.437267 | 0 | 0.049121 | 0.228177 | 4,273 | 116 | 102 | 36.836207 | 0.762887 | 0.092441 | 0 | 0.388235 | 0 | 0 | 0.039566 | 0.006465 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.035294 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
19580f1da14543fc46625b13a2d4fdf6ece370dd | 888 | py | Python | Ch. 2/tcp_server.py | Kediel/BHP | b0cd2aa82c95eef58f50d9d7d137fddcb70644cb | [
"MIT"
] | null | null | null | Ch. 2/tcp_server.py | Kediel/BHP | b0cd2aa82c95eef58f50d9d7d137fddcb70644cb | [
"MIT"
] | 4 | 2017-07-27T17:34:24.000Z | 2017-07-31T23:13:03.000Z | Ch. 2/tcp_server.py | Kediel/BHP | b0cd2aa82c95eef58f50d9d7d137fddcb70644cb | [
"MIT"
] | null | null | null | import socket
import threading
bind_ip = "0.0.0.0"
bind_port = 9999
server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server.bind((bind_ip, bind_port))
server.listen(5)
print "[*] Listening on %s:%d" % (bind_ip, bind_port)
# This is our client-handling thread
def handle_client(client_socket):
#... | 23.368421 | 79 | 0.614865 | 114 | 888 | 4.649123 | 0.517544 | 0.090566 | 0.011321 | 0.05283 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02322 | 0.272523 | 888 | 37 | 80 | 24 | 0.797214 | 0.152027 | 0 | 0 | 0 | 0 | 0.112299 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
195d837e267b2d3b0b05977370db15211b8d4942 | 37,304 | py | Python | tests/rnacentral/search_export/exporter_test.py | RNAcentral/rnacentral-import-pipeline | 238e573440c72581a051b16c15f56fcd25bece74 | [
"Apache-2.0"
] | 1 | 2018-08-09T14:41:16.000Z | 2018-08-09T14:41:16.000Z | tests/rnacentral/search_export/exporter_test.py | RNAcentral/rnacentral-import-pipeline | 238e573440c72581a051b16c15f56fcd25bece74 | [
"Apache-2.0"
] | 60 | 2015-02-04T16:43:53.000Z | 2022-01-27T10:28:43.000Z | tests/rnacentral/search_export/exporter_test.py | RNAcentral/rnacentral-import-pipeline | 238e573440c72581a051b16c15f56fcd25bece74 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Copyright [2009-2017] EMBL-European Bioinformatics Institute
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... | 31.829352 | 134 | 0.562781 | 3,450 | 37,304 | 5.865507 | 0.306377 | 0.022238 | 0.019767 | 0.045068 | 0.24827 | 0.21526 | 0.179729 | 0.154774 | 0.121467 | 0.077337 | 0 | 0.216419 | 0.297314 | 37,304 | 1,171 | 135 | 31.856533 | 0.555526 | 0.077418 | 0 | 0.164506 | 0 | 0 | 0.351747 | 0.028698 | 0 | 0 | 0 | 0 | 0.045862 | 1 | 0.050847 | false | 0 | 0.013958 | 0.000997 | 0.071785 | 0.005982 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
196257af7109744f1d324ddf851e3f43ec9a1048 | 457 | py | Python | __init__.py | patilaja/sqlalchemy-challenge | 96e210106d31beb74d4ec5e42b20f5fd2d60db05 | [
"ADSL"
] | null | null | null | __init__.py | patilaja/sqlalchemy-challenge | 96e210106d31beb74d4ec5e42b20f5fd2d60db05 | [
"ADSL"
] | null | null | null | __init__.py | patilaja/sqlalchemy-challenge | 96e210106d31beb74d4ec5e42b20f5fd2d60db05 | [
"ADSL"
] | null | null | null | #Helper method that implements the logic to look up an application.
def get_app(self, reference_app=None):
if reference_app is not None:
return reference_app
if self.app is not None:
return self.app
if current_app:
return current_app._get_current_object()
... | 30.466667 | 68 | 0.617068 | 57 | 457 | 4.789474 | 0.596491 | 0.131868 | 0.058608 | 0.087912 | 0.131868 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.315098 | 457 | 15 | 69 | 30.466667 | 0.872204 | 0.14442 | 0 | 0 | 0 | 0 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
19646232e69c582660ce7e5151741a5f639b0987 | 871 | py | Python | procurement_portal/records/migrations/0017_auto_20201024_1438.py | rikusv/procurement-portal-backend | a00eb1d9d9da7737a84d9c495db0f59b26839157 | [
"MIT"
] | null | null | null | procurement_portal/records/migrations/0017_auto_20201024_1438.py | rikusv/procurement-portal-backend | a00eb1d9d9da7737a84d9c495db0f59b26839157 | [
"MIT"
] | 19 | 2020-09-18T17:10:55.000Z | 2020-10-18T09:54:16.000Z | procurement_portal/records/migrations/0017_auto_20201024_1438.py | rikusv/procurement-portal-backend | a00eb1d9d9da7737a84d9c495db0f59b26839157 | [
"MIT"
] | 2 | 2020-10-21T17:58:44.000Z | 2022-02-13T17:21:22.000Z | # Generated by Django 3.1.1 on 2020-10-24 14:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('records', '0016_auto_20201012_0943'),
]
operations = [
migrations.AddField(
model_name='purchaserecord',
name='imple... | 30.034483 | 90 | 0.61194 | 90 | 871 | 5.744444 | 0.5 | 0.104449 | 0.133462 | 0.156673 | 0.603482 | 0.603482 | 0.516441 | 0.516441 | 0.516441 | 0.516441 | 0 | 0.062794 | 0.268657 | 871 | 28 | 91 | 31.107143 | 0.748823 | 0.051665 | 0 | 0.545455 | 1 | 0 | 0.158981 | 0.080097 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1966ed8573024a45a35bef1db87d4c67dcc7b5bc | 496 | py | Python | phr/ciudadano/migrations/0002_ciudadano_fecha_nacimiento.py | richardqa/django-ex | e5b8585f28a97477150ac5daf5e55c74b70d87da | [
"CC0-1.0"
] | null | null | null | phr/ciudadano/migrations/0002_ciudadano_fecha_nacimiento.py | richardqa/django-ex | e5b8585f28a97477150ac5daf5e55c74b70d87da | [
"CC0-1.0"
] | null | null | null | phr/ciudadano/migrations/0002_ciudadano_fecha_nacimiento.py | richardqa/django-ex | e5b8585f28a97477150ac5daf5e55c74b70d87da | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2017-01-09 09:43
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ciudadano', '0001_initial'),
]
operations = [
migrations.AddField(
... | 24.8 | 94 | 0.633065 | 55 | 496 | 5.545455 | 0.727273 | 0.059016 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0563 | 0.247984 | 496 | 19 | 95 | 26.105263 | 0.761394 | 0.137097 | 0 | 0 | 1 | 0 | 0.152941 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
19720b08a53678ae7b601ebc496e7b65a4ff6078 | 3,343 | py | Python | main/control/welcome.py | lipis/crypto-pocket | ec40e9f49e521d7b095c9065f89b8888a871313a | [
"MIT"
] | 4 | 2018-01-17T12:41:18.000Z | 2018-01-26T18:59:57.000Z | main/control/welcome.py | lipis/crypto-pocket | ec40e9f49e521d7b095c9065f89b8888a871313a | [
"MIT"
] | 43 | 2018-01-29T06:15:52.000Z | 2018-09-19T02:14:40.000Z | main/control/welcome.py | lipis/crypto-pocket | ec40e9f49e521d7b095c9065f89b8888a871313a | [
"MIT"
] | null | null | null | # coding: utf-8
import flask
from google.appengine.ext import ndb
import auth
import config
import model
from main import app
###############################################################################
# Welcome
###############################################################################
@app.route('/')
def... | 33.43 | 126 | 0.608436 | 402 | 3,343 | 4.783582 | 0.256219 | 0.056162 | 0.041602 | 0.037442 | 0.236089 | 0.173687 | 0.123765 | 0.123765 | 0.123765 | 0.069683 | 0 | 0.002783 | 0.139994 | 3,343 | 99 | 127 | 33.767677 | 0.666087 | 0.024529 | 0 | 0.178082 | 0 | 0 | 0.096728 | 0 | 0 | 0 | 0 | 0.010101 | 0 | 1 | 0.054795 | false | 0 | 0.082192 | 0.013699 | 0.205479 | 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 | 0 | 0 | 0 | 1 |
197751283e20cfc29bc1ae41f28e04248f1f81be | 2,795 | py | Python | code/aditya.py | nyamako/hacktoberfest-2018 | bf7939d4b0cfb57a854a1644dbbae7ddf8af3c4f | [
"MIT"
] | 67 | 2018-09-25T21:37:23.000Z | 2020-11-03T02:03:22.000Z | code/aditya.py | nyamako/hacktoberfest-2018 | bf7939d4b0cfb57a854a1644dbbae7ddf8af3c4f | [
"MIT"
] | 245 | 2018-09-18T10:07:28.000Z | 2020-09-30T19:00:11.000Z | code/aditya.py | nyamako/hacktoberfest-2018 | bf7939d4b0cfb57a854a1644dbbae7ddf8af3c4f | [
"MIT"
] | 1,192 | 2018-09-18T11:27:55.000Z | 2021-10-17T10:24:37.000Z | import random
import time
#list of words
words = ("python", "india", "japan", "mother", "computer", "watch", "keyboard", "compass",
"bottle", "monitor", "switch", "shoes", "chain", "mobile", "coffee", "alfredo", "mouse",
"stomach", "tablet", "mojito", "halapeneos", "pizza", "nutella", "peanut", "broccoli")
n = 0
#d... | 28.814433 | 105 | 0.608945 | 338 | 2,795 | 5.023669 | 0.37574 | 0.058304 | 0.070082 | 0.064782 | 0.246761 | 0.220848 | 0.089517 | 0.045936 | 0 | 0 | 0 | 0.039179 | 0.232916 | 2,795 | 97 | 106 | 28.814433 | 0.752799 | 0.068694 | 0 | 0.310811 | 0 | 0 | 0.285879 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0.013514 | 0.027027 | 0 | 0.108108 | 0.432432 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
19782f36845f0387a12cf4d653a628e8d252f1ee | 205 | py | Python | katas/beta/reverse_the_number.py | the-zebulan/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | 40 | 2016-03-09T12:26:20.000Z | 2022-03-23T08:44:51.000Z | katas/beta/reverse_the_number.py | akalynych/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | null | null | null | katas/beta/reverse_the_number.py | akalynych/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | 36 | 2016-11-07T19:59:58.000Z | 2022-03-31T11:18:27.000Z | def reverse(n):
exp = 1
while n / 10 ** exp:
exp += 1
return sum((n % 10 ** a / 10 ** (a - 1)) * (10 ** b)
for a, b in zip(xrange(1, exp + 1), xrange(exp - 1, -1, -1)))
| 25.625 | 76 | 0.404878 | 35 | 205 | 2.371429 | 0.428571 | 0.192771 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126984 | 0.385366 | 205 | 7 | 77 | 29.285714 | 0.531746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1979aba1d17f885ed392d4535bcc74a5d8e636bc | 464 | py | Python | lwrl/optimizers/multistep_optimizer.py | sealday/lwrl | 52bcd67751e605c38db4afa609c58938c7034e8d | [
"MIT"
] | 2 | 2019-04-11T11:55:48.000Z | 2020-05-29T18:09:51.000Z | lwrl/optimizers/multistep_optimizer.py | sealday/lwrl | 52bcd67751e605c38db4afa609c58938c7034e8d | [
"MIT"
] | 6 | 2021-06-01T22:21:00.000Z | 2022-03-11T23:24:36.000Z | lwrl/optimizers/multistep_optimizer.py | sealday/lwrl | 52bcd67751e605c38db4afa609c58938c7034e8d | [
"MIT"
] | 1 | 2019-04-12T03:09:47.000Z | 2019-04-12T03:09:47.000Z | from lwrl.optimizers import MetaOptimizer
class MultistepOptimizer(MetaOptimizer):
def __init__(self, parameters, optimizer, num_steps=10):
self.num_steps = num_steps
super().__init__(parameters, optimizer)
def step(self, fn_loss, arguments, fn_reference, **kwargs):
arguments['referen... | 33.142857 | 69 | 0.709052 | 54 | 464 | 5.759259 | 0.462963 | 0.102894 | 0.07717 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005305 | 0.1875 | 464 | 13 | 70 | 35.692308 | 0.819629 | 0 | 0 | 0 | 0 | 0 | 0.019397 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.444444 | 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 | 0 | 0 | 0 | 1 |
197c315cc4fccd63e25903e81134070c4aabf0c5 | 2,939 | py | Python | base/3base.py | chenliangold4j/MyPyDictionnary | 3428333f42249f33732da71e420bdc41a412f594 | [
"Apache-2.0"
] | null | null | null | base/3base.py | chenliangold4j/MyPyDictionnary | 3428333f42249f33732da71e420bdc41a412f594 | [
"Apache-2.0"
] | null | null | null | base/3base.py | chenliangold4j/MyPyDictionnary | 3428333f42249f33732da71e420bdc41a412f594 | [
"Apache-2.0"
] | null | null | null | L = ['Michael', 'Sarah', 'Tracy', 'Bob', 'Jack']
print(L[0:3]);
# L[0:3]表示,从索引0开始取,直到索引3为止,但不包括索引3。即索引0,1,2,正好是3个元素。
# 如果第一个索引是0,还可以省略:
print(L[:3]);
# 类似的,既然Python支持L[-1]取倒数第一个元素,那么它同样支持倒数切片,试试:
print(L[-2:])
L = list(range(100))
# 前10个数,每两个取一个:
print(L[:10:2])
# 甚至什么都不写,只写[:]就可以原样复制一个list:
# ,tuple也可以用切片操作,只是操作的结果仍是t... | 27.726415 | 106 | 0.697856 | 370 | 2,939 | 5.543243 | 0.435135 | 0.087762 | 0.012189 | 0.017065 | 0.140419 | 0.140419 | 0.134081 | 0.134081 | 0.086299 | 0.066797 | 0 | 0.019654 | 0.134399 | 2,939 | 106 | 107 | 27.726415 | 0.786557 | 0.433821 | 0 | 0.098361 | 0 | 0 | 0.067651 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016393 | false | 0 | 0.04918 | 0 | 0.081967 | 0.557377 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
197ff79f1f26876a9752bd0bf842c448b0d64426 | 401 | py | Python | Conditional/Lista 1/Thiago/07.py | Vitor-ORB/algorithms-and-programming-1-ufms | 10821e9b580b78b7f78c27e740f3ead9c6b9f0bd | [
"MIT"
] | 7 | 2021-05-25T16:49:20.000Z | 2022-02-17T11:57:32.000Z | Conditional/Lista 1/Thiago/07.py | Vitor-ORB/algorithms-and-programming-1-ufms | 10821e9b580b78b7f78c27e740f3ead9c6b9f0bd | [
"MIT"
] | null | null | null | Conditional/Lista 1/Thiago/07.py | Vitor-ORB/algorithms-and-programming-1-ufms | 10821e9b580b78b7f78c27e740f3ead9c6b9f0bd | [
"MIT"
] | 8 | 2021-05-25T16:49:39.000Z | 2021-09-30T18:02:07.000Z | # Leia 2 valores numéricos e um símbolo correspondente a uma das operações.
# soma (+), subtração(-), divisão(/) e multiplicação(*)
n1, n2, op = input().split()
n1 = int(n1)
n2 = int(n2)
if op == "+":
print(n1 + n2)
elif op == "-":
print(n1 - n2)
elif op == "/":
print(n1 / n2)
elif op == "*":... | 22.277778 | 76 | 0.55611 | 56 | 401 | 3.982143 | 0.571429 | 0.107623 | 0.161435 | 0.197309 | 0.251121 | 0.251121 | 0.251121 | 0.251121 | 0.251121 | 0.251121 | 0 | 0.050676 | 0.261845 | 401 | 17 | 77 | 23.588235 | 0.702703 | 0.316708 | 0 | 0 | 0 | 0 | 0.161417 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.384615 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
19822fbb662c35172c55da381ed0906814ac3187 | 2,000 | py | Python | ciphers/caeser_cipher.py | nairraghav/ron-cipher | e7cbac6cd8f0fe30e71b7d7f26fddb8af4d6a88a | [
"MIT"
] | null | null | null | ciphers/caeser_cipher.py | nairraghav/ron-cipher | e7cbac6cd8f0fe30e71b7d7f26fddb8af4d6a88a | [
"MIT"
] | 2 | 2021-02-02T23:46:26.000Z | 2021-04-20T20:09:33.000Z | ciphers/caeser_cipher.py | nairraghav/ron-cipher | e7cbac6cd8f0fe30e71b7d7f26fddb8af4d6a88a | [
"MIT"
] | null | null | null | from ciphers.cipher_helper import get_character_map, flip_dict
class CaeserCipher:
def __init__(self, rotation: int = None):
self.default_character_map = get_character_map()
self.flipped_default_character_map = flip_dict(
self.default_character_map
)
if rotation:
... | 29.411765 | 66 | 0.607 | 213 | 2,000 | 5.389671 | 0.239437 | 0.146341 | 0.165505 | 0.160279 | 0.204704 | 0.118467 | 0.062718 | 0 | 0 | 0 | 0 | 0.00074 | 0.3245 | 2,000 | 67 | 67 | 29.850746 | 0.849001 | 0.0125 | 0 | 0.134615 | 0 | 0 | 0.013685 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.019231 | 0.019231 | 0.211538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
198277b32eac2b22c43af843c0ee4c66623b8afb | 327 | py | Python | instagram/migrations/0020_remove_profile_follow.py | 01king-ori/Kings-instagram | 5e3c523462883879fe33834d68bdf1ebe4b75d8d | [
"MIT"
] | 3 | 2020-06-25T22:35:05.000Z | 2022-01-11T03:50:08.000Z | instagram/migrations/0020_remove_profile_follow.py | 01king-ori/Kings-instagram | 5e3c523462883879fe33834d68bdf1ebe4b75d8d | [
"MIT"
] | 5 | 2020-06-05T23:38:22.000Z | 2021-06-10T19:05:02.000Z | instagram/migrations/0020_remove_profile_follow.py | 01king-ori/Kings-instagram | 5e3c523462883879fe33834d68bdf1ebe4b75d8d | [
"MIT"
] | 5 | 2020-01-07T05:39:10.000Z | 2021-09-14T05:31:08.000Z | # Generated by Django 2.2.6 on 2019-10-14 13:19
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('instagram', '0019_profile_follow'),
]
operations = [
migrations.RemoveField(
model_name='profile',
name='follow',
),... | 18.166667 | 47 | 0.590214 | 34 | 327 | 5.588235 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082609 | 0.296636 | 327 | 17 | 48 | 19.235294 | 0.743478 | 0.137615 | 0 | 0 | 1 | 0 | 0.146429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
198848a18a09b75e39b55e572e9958bb26729aae | 1,174 | py | Python | models/basic_module.py | matsu911/CQTNet | e775f53fd91bbb9583d6640ae4e36f49031d1efd | [
"MIT"
] | 25 | 2020-04-10T05:43:49.000Z | 2022-03-28T02:25:44.000Z | models/basic_module.py | matsu911/CQTNet | e775f53fd91bbb9583d6640ae4e36f49031d1efd | [
"MIT"
] | 2 | 2021-02-23T03:30:50.000Z | 2021-06-28T09:02:38.000Z | models/basic_module.py | matsu911/CQTNet | e775f53fd91bbb9583d6640ae4e36f49031d1efd | [
"MIT"
] | 7 | 2020-04-10T05:43:51.000Z | 2021-12-23T09:34:44.000Z | import torch
from torch import nn
import torchvision
import torch.nn.functional as F
import time
import os
class BasicModule(torch.nn.Module):
"""
封装了nn.Module,主要是提供了save和load两个方法
"""
def __init__(self):
super(BasicModule, self).__init__()
self.model_name = str(type(self))
def load(... | 29.35 | 84 | 0.602215 | 149 | 1,174 | 4.577181 | 0.416107 | 0.052786 | 0.057185 | 0.049853 | 0.222874 | 0.087977 | 0.087977 | 0 | 0 | 0 | 0 | 0.001147 | 0.25724 | 1,174 | 40 | 85 | 29.35 | 0.780963 | 0.05707 | 0 | 0.076923 | 0 | 0 | 0.072658 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192308 | false | 0 | 0.230769 | 0.038462 | 0.538462 | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
19901da7c7a1960491cefcc10a95446ff706e6be | 10,996 | py | Python | game/sdktools/python/global/lib/site-packages/python_sfm.py | Andrej730/python-sfm | dc693b9d221fa046000a41ffdbb59b5ddca6d9dc | [
"MIT"
] | null | null | null | game/sdktools/python/global/lib/site-packages/python_sfm.py | Andrej730/python-sfm | dc693b9d221fa046000a41ffdbb59b5ddca6d9dc | [
"MIT"
] | null | null | null | game/sdktools/python/global/lib/site-packages/python_sfm.py | Andrej730/python-sfm | dc693b9d221fa046000a41ffdbb59b5ddca6d9dc | [
"MIT"
] | null | null | null | # encoding: utf-8
import os
import pydoc
import inspect
import PySide
import vs
import sfm
import sfmApp
class SFMElement(object):
def __init__(self, element):
self._original = element
@property
def name(self):
return self._original.GetName()
@property
def attributes(self):
... | 29.013193 | 99 | 0.636049 | 1,192 | 10,996 | 5.708054 | 0.244128 | 0.070547 | 0.011317 | 0.023663 | 0.129042 | 0.115667 | 0.099353 | 0.068489 | 0.057613 | 0.043945 | 0 | 0.002108 | 0.266733 | 10,996 | 379 | 100 | 29.013193 | 0.841746 | 0.129411 | 0 | 0.214575 | 0 | 0 | 0.04994 | 0.00229 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.004049 | 0.02834 | null | null | 0.020243 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
19918c7e3202a1fa8b8c6f798ca7ec26ed75c1a5 | 1,778 | py | Python | waterApp/migrations/0014_gwmonitoringkobo.py | csisarep/groundwater_dashboard | 4f93d7b7c9fd6b48ace54e7b62cae717decc98d2 | [
"MIT"
] | null | null | null | waterApp/migrations/0014_gwmonitoringkobo.py | csisarep/groundwater_dashboard | 4f93d7b7c9fd6b48ace54e7b62cae717decc98d2 | [
"MIT"
] | null | null | null | waterApp/migrations/0014_gwmonitoringkobo.py | csisarep/groundwater_dashboard | 4f93d7b7c9fd6b48ace54e7b62cae717decc98d2 | [
"MIT"
] | null | null | null | # Generated by Django 2.2 on 2021-09-14 07:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('waterApp', '0013_gwlocationsdata_location'),
]
operations = [
migrations.CreateModel(
name='GwMonitoringKobo',
fields=... | 46.789474 | 174 | 0.596738 | 195 | 1,778 | 5.230769 | 0.374359 | 0.123529 | 0.114706 | 0.15 | 0.553922 | 0.526471 | 0.231373 | 0.231373 | 0.172549 | 0 | 0 | 0.025152 | 0.262092 | 1,778 | 37 | 175 | 48.054054 | 0.752287 | 0.024184 | 0 | 0 | 1 | 0 | 0.166763 | 0.064051 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.032258 | 0 | 0.129032 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
19a16d103bbd6587ea4e474ed212a036bf6bb483 | 3,683 | py | Python | tvb_hpc/metric.py | DeLaVlag/tvb-hpc | 6559707dfee8ec712d9624aaf441f9901919fe63 | [
"Apache-2.0"
] | 3 | 2017-02-22T10:17:19.000Z | 2019-06-20T13:13:53.000Z | tvb_hpc/metric.py | DeLaVlag/tvb-hpc | 6559707dfee8ec712d9624aaf441f9901919fe63 | [
"Apache-2.0"
] | 27 | 2017-02-07T10:25:31.000Z | 2020-07-01T09:48:13.000Z | tvb_hpc/metric.py | DeLaVlag/tvb-hpc | 6559707dfee8ec712d9624aaf441f9901919fe63 | [
"Apache-2.0"
] | 10 | 2017-03-06T10:52:02.000Z | 2020-11-20T02:17:17.000Z | # Copyright 2018 TVB-HPC contributors
#
# 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 applicab... | 26.307143 | 78 | 0.519414 | 564 | 3,683 | 3.202128 | 0.253546 | 0.041528 | 0.0299 | 0.024917 | 0.237542 | 0.223145 | 0.174419 | 0.142303 | 0.142303 | 0.099114 | 0 | 0.016598 | 0.345642 | 3,683 | 139 | 79 | 26.496403 | 0.73278 | 0.160739 | 0 | 0.31068 | 0 | 0.029126 | 0.893264 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.009709 | 0.009709 | 0 | 0.126214 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
19a70dde6b545bdfbf0067d8087a6296f69db3a9 | 407 | py | Python | registration/urls.py | NJnisarg/IEEEProfMatch | 0a67108c910b40f878cc3e0ed9f37ec59089f02d | [
"MIT"
] | null | null | null | registration/urls.py | NJnisarg/IEEEProfMatch | 0a67108c910b40f878cc3e0ed9f37ec59089f02d | [
"MIT"
] | null | null | null | registration/urls.py | NJnisarg/IEEEProfMatch | 0a67108c910b40f878cc3e0ed9f37ec59089f02d | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path('register/student/', views.StudentCreate.as_view(), name='student-register'),
path('register/prof/', views.ProfCreate.as_view(), name='prof-register'),
path('remove/student/<pk>/', views.StudentRemove.as_view(), name='student-remov... | 45.222222 | 88 | 0.687961 | 51 | 407 | 5.411765 | 0.372549 | 0.086957 | 0.144928 | 0.123188 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117936 | 407 | 9 | 89 | 45.222222 | 0.768802 | 0 | 0 | 0 | 0 | 0 | 0.305 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
19ab282eb7fda2cf0e66686848e93a742af27a72 | 1,385 | py | Python | src/responsibility/problems/drsc_fig3.py | pik-gane/pyresponsibility | e0f43be1a9712754832bb97b3797851cdb24842d | [
"BSD-2-Clause"
] | null | null | null | src/responsibility/problems/drsc_fig3.py | pik-gane/pyresponsibility | e0f43be1a9712754832bb97b3797851cdb24842d | [
"BSD-2-Clause"
] | null | null | null | src/responsibility/problems/drsc_fig3.py | pik-gane/pyresponsibility | e0f43be1a9712754832bb97b3797851cdb24842d | [
"BSD-2-Clause"
] | null | null | null | """Fig. 3 from Heitzig & Hiller (2020) Degrees of individual and groupwise
backward and forward responsibility in extensive-form games with ambiguity,
and their application to social choice problems. ArXiv:2007.07352
drsc_fig3:
v1: i
├─╴dont_hesitate╶─╴w3: lives ✔
╰─╴hesitate╶─╴v2: i
├─╴try_after_all╶─... | 30.108696 | 81 | 0.608664 | 202 | 1,385 | 4.267327 | 0.564356 | 0.037123 | 0.038283 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027264 | 0.258484 | 1,385 | 45 | 82 | 30.777778 | 0.771178 | 0.597834 | 0 | 0.117647 | 0 | 0 | 0.16819 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.117647 | 0.058824 | 0 | 0.058824 | 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 | 0 | 0 | 0 | 1 |
5fd72d6c14585afca0b8d98d7d4aed63853fc97b | 1,478 | py | Python | policy_sentry/util/conditions.py | patricksanders/policy_sentry | 3559ce8d3a19728b4f64dfff4cbdf075e7629b39 | [
"MIT"
] | null | null | null | policy_sentry/util/conditions.py | patricksanders/policy_sentry | 3559ce8d3a19728b4f64dfff4cbdf075e7629b39 | [
"MIT"
] | 20 | 2020-03-20T06:13:09.000Z | 2022-02-10T18:15:35.000Z | policy_sentry/util/conditions.py | ssmbct-netops/policy_sentry | c9f4752c633fe229220b7f476aa766ea65330489 | [
"MIT"
] | null | null | null | """
Just some text transformation functions related to our
conditions-related workarounds
"""
# Borrowed from parliament. Altered with normalization for lowercase.
def translate_condition_key_data_types(condition_str):
"""
The docs use different type names, so this standardizes them.
Example: The conditio... | 32.844444 | 96 | 0.688769 | 178 | 1,478 | 5.58427 | 0.460674 | 0.084507 | 0.102616 | 0.114688 | 0.190141 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001696 | 0.2023 | 1,478 | 44 | 97 | 33.590909 | 0.841391 | 0.391746 | 0 | 0 | 0 | 0 | 0.131673 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5fd7b9ebd6a6a68297eb56bfd50e24457d0aa02b | 1,528 | py | Python | general/email-sender/email_sender.py | caesarcc/python-code-tutorials | aa48ebe695e86440b206b641501ad55d021309bf | [
"MIT"
] | 1,059 | 2019-08-04T17:51:43.000Z | 2022-03-31T10:13:37.000Z | general/email-sender/email_sender.py | kylearrigoni/pythoncode-tutorials | 6fd30ed854d1ea7573351ddb10c1eaae55ca5717 | [
"MIT"
] | 56 | 2019-12-10T16:46:40.000Z | 2022-03-29T01:36:50.000Z | general/email-sender/email_sender.py | kylearrigoni/pythoncode-tutorials | 6fd30ed854d1ea7573351ddb10c1eaae55ca5717 | [
"MIT"
] | 1,330 | 2019-08-16T01:36:18.000Z | 2022-03-31T16:57:22.000Z | import smtplib
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
from bs4 import BeautifulSoup as bs
def send_mail(email, password, FROM, TO, msg):
# initialize the SMTP server
server = smtplib.SMTP("smtp.gmail.com", 587)
# connect to the SMTP server as TLS mode (secure) a... | 27.781818 | 67 | 0.716623 | 237 | 1,528 | 4.590717 | 0.345992 | 0.029412 | 0.024816 | 0.038603 | 0.055147 | 0.055147 | 0.055147 | 0 | 0 | 0 | 0 | 0.00318 | 0.176702 | 1,528 | 55 | 68 | 27.781818 | 0.861685 | 0.416885 | 0 | 0 | 0 | 0 | 0.195402 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0.142857 | 0.142857 | 0 | 0.178571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5fdde3756ec64880272edcdfd80736c9d7a32118 | 5,679 | py | Python | FaceRec/dataset.py | JasonLee/FaceRecognitionInLowResolutionVideos | 719ef88ddfbed9d5d40df2480b6e9a197febc1b7 | [
"MIT"
] | 2 | 2020-07-13T06:00:36.000Z | 2021-04-15T06:12:16.000Z | FaceRec/dataset.py | JasonLee/FaceRecognitionInLowResolutionVideos | 719ef88ddfbed9d5d40df2480b6e9a197febc1b7 | [
"MIT"
] | 3 | 2020-05-15T04:49:28.000Z | 2022-01-13T02:47:26.000Z | FaceRec/dataset.py | JasonLee/FaceRecognitionInLowResolutionVideos | 719ef88ddfbed9d5d40df2480b6e9a197febc1b7 | [
"MIT"
] | null | null | null | from __future__ import print_function, division
import os
import torch
import pandas as pd
from skimage import io, transform
import numpy as np
import matplotlib.pyplot as plt
from torch.utils.data import Dataset, DataLoader
from torchvision import transforms, utils
import random
import model
from torch.autograd import... | 39.713287 | 121 | 0.585138 | 684 | 5,679 | 4.69883 | 0.190058 | 0.037026 | 0.04107 | 0.037026 | 0.543871 | 0.509334 | 0.440261 | 0.425327 | 0.406036 | 0.386434 | 0 | 0.0111 | 0.30199 | 5,679 | 142 | 122 | 39.992958 | 0.799697 | 0.055115 | 0 | 0.45082 | 0 | 0 | 0.005058 | 0 | 0 | 0 | 0 | 0.014085 | 0.008197 | 1 | 0.081967 | false | 0 | 0.098361 | 0.02459 | 0.286885 | 0.008197 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5fe74a248465ad5e98c9c5e8a0c0fa8593134941 | 994 | py | Python | jigu/core/bank.py | bongtrop/jigu | 448bce8ce693f3f7c530bea0f2f268e22100937a | [
"MIT"
] | 14 | 2020-03-03T06:46:39.000Z | 2021-05-01T15:29:35.000Z | jigu/core/bank.py | bongtrop/jigu | 448bce8ce693f3f7c530bea0f2f268e22100937a | [
"MIT"
] | 9 | 2020-03-09T06:36:30.000Z | 2021-02-15T14:40:48.000Z | jigu/core/bank.py | bongtrop/jigu | 448bce8ce693f3f7c530bea0f2f268e22100937a | [
"MIT"
] | 5 | 2020-05-30T22:38:34.000Z | 2021-02-11T00:56:20.000Z | from __future__ import annotations
from jigu.core import AccAddress, Coins
from jigu.util.serdes import JsonDeserializable, JsonSerializable
from jigu.util.validation import Schemas as S
from jigu.util.validation import validate_acc_address
__all__ = ["Input", "Output"]
class MultiSendIO(JsonSerializable, JsonDeser... | 30.121212 | 81 | 0.719316 | 122 | 994 | 5.57377 | 0.311475 | 0.073529 | 0.052941 | 0.064706 | 0.273529 | 0.191176 | 0.191176 | 0 | 0 | 0 | 0 | 0 | 0.161972 | 994 | 32 | 82 | 31.0625 | 0.816327 | 0 | 0 | 0.095238 | 0 | 0 | 0.130785 | 0.105634 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0 | 0.238095 | 0.142857 | 0.761905 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
270052ade6542cf9600c8d97910142b209cecc23 | 573 | py | Python | ciaa-nxp/pyExamples/Main_Timers_2.py | braytac/micropython | 4fba270b6061395367e7f49eb3baa77365557ace | [
"MIT"
] | 2 | 2019-07-28T05:27:42.000Z | 2020-05-26T04:39:43.000Z | ciaa-nxp/pyExamples/Main_Timers_2.py | braytac/micropython | 4fba270b6061395367e7f49eb3baa77365557ace | [
"MIT"
] | null | null | null | ciaa-nxp/pyExamples/Main_Timers_2.py | braytac/micropython | 4fba270b6061395367e7f49eb3baa77365557ace | [
"MIT"
] | 1 | 2018-06-23T22:07:06.000Z | 2018-06-23T22:07:06.000Z | import pyb
def callb(timer):
print("Interval interrupt")
print(timer)
def callbTimeout (timer):
print("Timeout interrupt")
print(timer)
print("Test Timers")
t1 = pyb.Timer(1)
t2 = pyb.Timer(2)
t1.interval(2000,callb)
t2.timeout(5000,callbTimeout)
t1.freq(1)
print("f t1:"+str(t1.freq()))
t1.period(204000000)
... | 14.692308 | 43 | 0.685864 | 91 | 573 | 4.307692 | 0.384615 | 0.063776 | 0.089286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090196 | 0.109948 | 573 | 38 | 44 | 15.078947 | 0.678431 | 0.041885 | 0 | 0.086957 | 0 | 0 | 0.17033 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.043478 | 0 | 0.130435 | 0.434783 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
2701a91ae74b0da4e98a4cd24af4fe84d580b309 | 17,219 | py | Python | tests/test_viewer.py | glenvorel/waterfalls | 900e9fb51a487b7ca1f5ed5274c0bdba95a4d435 | [
"MIT"
] | 1 | 2020-08-06T03:58:54.000Z | 2020-08-06T03:58:54.000Z | tests/test_viewer.py | glenvorel/performancepy | 900e9fb51a487b7ca1f5ed5274c0bdba95a4d435 | [
"MIT"
] | null | null | null | tests/test_viewer.py | glenvorel/performancepy | 900e9fb51a487b7ca1f5ed5274c0bdba95a4d435 | [
"MIT"
] | null | null | null | import json
import os
import tempfile
import unittest
from unittest.mock import patch
from waterfalls import Viewer, viewer
class TestViewer(unittest.TestCase):
"""
Tests the `waterfalls.Viewer` module.
"""
def test_detect_overlap(self) -> None:
"""
Tests detecting overlap of timing ... | 34.856275 | 108 | 0.475812 | 1,676 | 17,219 | 4.620525 | 0.119928 | 0.056947 | 0.024535 | 0.023244 | 0.728564 | 0.703125 | 0.636235 | 0.622676 | 0.596204 | 0.565212 | 0 | 0.040957 | 0.410128 | 17,219 | 493 | 109 | 34.926978 | 0.721473 | 0.057437 | 0 | 0.602978 | 0 | 0 | 0.151992 | 0 | 0 | 0 | 0 | 0 | 0.114144 | 1 | 0.027295 | false | 0 | 0.014888 | 0 | 0.044665 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
270b35ddd89f3b512a06eb79c89fed5ad60c1aca | 1,668 | py | Python | authentication/views.py | ManasUniyal/RoadView | 593a4f86cb10efdbf560fc4aec3d58a9b5b41bd2 | [
"MIT"
] | null | null | null | authentication/views.py | ManasUniyal/RoadView | 593a4f86cb10efdbf560fc4aec3d58a9b5b41bd2 | [
"MIT"
] | null | null | null | authentication/views.py | ManasUniyal/RoadView | 593a4f86cb10efdbf560fc4aec3d58a9b5b41bd2 | [
"MIT"
] | null | null | null | from django.contrib import messages
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.models import User
from django.shortcuts import render, redirect
# Create your views here.
def loginUser(request):
if request.method == 'POST':
email_address = request.POST['email']
... | 35.489362 | 71 | 0.63789 | 169 | 1,668 | 6.224852 | 0.331361 | 0.062738 | 0.048479 | 0.039924 | 0.153992 | 0.104563 | 0.104563 | 0.104563 | 0.104563 | 0 | 0 | 0 | 0.266187 | 1,668 | 46 | 72 | 36.26087 | 0.859477 | 0.013789 | 0 | 0.277778 | 0 | 0 | 0.167377 | 0.046257 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.138889 | 0.111111 | 0 | 0.388889 | 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 | 0 | 0 | 0 | 1 |
270e32ac710b649bd41e91bee859d8ce32b8ac58 | 1,140 | py | Python | unit_03/06_Dates_and_Time/1-Dates_and_Time/4_timestrings.py | duliodenis/python_master_degree | 3ab76838ce2fc1606f28e988a3273dd27122a621 | [
"MIT"
] | 19 | 2019-03-14T01:39:32.000Z | 2022-02-03T00:36:43.000Z | unit_03/06_Dates_and_Time/1-Dates_and_Time/4_timestrings.py | duliodenis/python_master_degree | 3ab76838ce2fc1606f28e988a3273dd27122a621 | [
"MIT"
] | 1 | 2020-04-10T01:01:16.000Z | 2020-04-10T01:01:16.000Z | unit_03/06_Dates_and_Time/1-Dates_and_Time/4_timestrings.py | duliodenis/python_master_degree | 3ab76838ce2fc1606f28e988a3273dd27122a621 | [
"MIT"
] | 5 | 2019-01-02T20:46:05.000Z | 2020-07-08T22:47:48.000Z | #
# Dates and Times in Python: Dates & Time
# Python Techdegree
#
# Created by Dulio Denis on 12/24/18.
# Copyright (c) 2018 ddApps. All rights reserved.
# ------------------------------------------------
# Challenge 4: strftime & strptime
# ------------------------------------------------
# Challenge Task 1 of 2... | 30 | 69 | 0.650877 | 163 | 1,140 | 4.447853 | 0.441718 | 0.044138 | 0.024828 | 0.027586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045311 | 0.167544 | 1,140 | 37 | 70 | 30.810811 | 0.718651 | 0.660526 | 0 | 0 | 0 | 0 | 0.088643 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0.2 | 0.5 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
2713ca1136e8fbc548b8d5161cb677f262b46b5a | 22,410 | py | Python | toolbox_plotting.py | roughhawkbit/robs-python-scripts | 7d9a28cff106887553970b5c4c37cd53a836c2ff | [
"MIT"
] | null | null | null | toolbox_plotting.py | roughhawkbit/robs-python-scripts | 7d9a28cff106887553970b5c4c37cd53a836c2ff | [
"MIT"
] | 1 | 2015-02-23T16:31:21.000Z | 2015-02-25T16:34:14.000Z | toolbox_plotting.py | roughhawkbit/robs-python-scripts | 7d9a28cff106887553970b5c4c37cd53a836c2ff | [
"MIT"
] | null | null | null | #!/usr/bin/python
from __future__ import division
from __future__ import with_statement
import matplotlib
from matplotlib import rcParams
from matplotlib import pyplot
from mpl_toolkits.axes_grid1 import make_axes_locatable
from mpl_toolkits.mplot3d import Axes3D
from PIL import Image
#import Image
from pylab import *
... | 46.784969 | 88 | 0.585988 | 2,829 | 22,410 | 4.513256 | 0.13397 | 0.024279 | 0.013784 | 0.016212 | 0.642152 | 0.622024 | 0.590617 | 0.573543 | 0.570645 | 0.544878 | 0 | 0.021432 | 0.285855 | 22,410 | 478 | 89 | 46.882845 | 0.776368 | 0.037617 | 0 | 0.512019 | 0 | 0.004808 | 0.078245 | 0.003343 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.002404 | 0.038462 | null | null | 0.028846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
27183201b985ec1686bc23947d232084caa6809f | 422 | py | Python | example/test.py | long-gong/libbloom-wrapper | 628f8ce11a6708d53bb56104182909ca40951f4f | [
"BSD-2-Clause"
] | null | null | null | example/test.py | long-gong/libbloom-wrapper | 628f8ce11a6708d53bb56104182909ca40951f4f | [
"BSD-2-Clause"
] | null | null | null | example/test.py | long-gong/libbloom-wrapper | 628f8ce11a6708d53bb56104182909ca40951f4f | [
"BSD-2-Clause"
] | null | null | null | from pybloom import BloomFilter
if __name__ == '__main__':
total_items = 9585058
error = 0.01
bf = BloomFilter(capacity=total_items, error_rate=error)
for i in range(total_items):
bf.add(i)
cf = 0
ct = 0
for i in range(total_items, 2*total_items):
if i in bf:
c... | 22.210526 | 60 | 0.566351 | 63 | 422 | 3.571429 | 0.492063 | 0.222222 | 0.053333 | 0.097778 | 0.186667 | 0.186667 | 0 | 0 | 0 | 0 | 0 | 0.073944 | 0.327014 | 422 | 18 | 61 | 23.444444 | 0.71831 | 0 | 0 | 0 | 0 | 0 | 0.078385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0.066667 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2718f33aa7d3ea7dfd6692935997031e9e47c7ff | 397 | py | Python | ifcbdb/dashboard/migrations/0033_dataset_doi.py | veot/ifcbdb | 427be36d92ca3c2dc6c8c10aaba94fcadc7cc93e | [
"MIT"
] | 4 | 2019-05-23T13:38:36.000Z | 2021-02-25T23:08:24.000Z | ifcbdb/dashboard/migrations/0033_dataset_doi.py | veot/ifcbdb | 427be36d92ca3c2dc6c8c10aaba94fcadc7cc93e | [
"MIT"
] | 313 | 2019-05-14T19:43:17.000Z | 2022-03-21T14:40:15.000Z | ifcbdb/dashboard/migrations/0033_dataset_doi.py | veot/ifcbdb | 427be36d92ca3c2dc6c8c10aaba94fcadc7cc93e | [
"MIT"
] | 3 | 2020-10-26T05:23:04.000Z | 2021-07-22T09:54:56.000Z | # Generated by Django 2.1.7 on 2019-10-31 16:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dashboard', '0032_auto_20191008_2022'),
]
operations = [
migrations.AddField(
model_name='dataset',
name='doi',
... | 20.894737 | 63 | 0.602015 | 44 | 397 | 5.318182 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119298 | 0.282116 | 397 | 18 | 64 | 22.055556 | 0.701754 | 0.11335 | 0 | 0 | 1 | 0 | 0.12 | 0.065714 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
271ca124718f33d6bf24a7362d654f72b7d37716 | 950 | py | Python | babyonboard/api/migrations/0005_auto_20171124_1824.py | BabyOnBoard/BabyOnBoard-API | eef34bf4e9649409a3158d6826432acb040afa32 | [
"MIT"
] | null | null | null | babyonboard/api/migrations/0005_auto_20171124_1824.py | BabyOnBoard/BabyOnBoard-API | eef34bf4e9649409a3158d6826432acb040afa32 | [
"MIT"
] | 10 | 2017-11-23T18:28:11.000Z | 2021-06-10T19:53:06.000Z | babyonboard/api/migrations/0005_auto_20171124_1824.py | BabyOnBoard/BabyOnBoard-API | eef34bf4e9649409a3158d6826432acb040afa32 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-11-24 18:24
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0004_babycrib'),
]
operations = [
migrations.CreateModel(
... | 31.666667 | 169 | 0.566316 | 94 | 950 | 5.574468 | 0.680851 | 0.026718 | 0.041985 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033382 | 0.274737 | 950 | 29 | 170 | 32.758621 | 0.727141 | 0.071579 | 0 | 0.090909 | 1 | 0 | 0.128555 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
271d8ca306320152e2b945243d46ba85a77910e7 | 1,880 | py | Python | harmoni_actuators/harmoni_speaker/test/unittest_speaker.py | interaction-lab/HARMONI | 9c88019601a983a1739744919a95247a997d3bb1 | [
"MIT"
] | 7 | 2020-09-02T06:31:21.000Z | 2022-02-18T21:16:44.000Z | harmoni_actuators/harmoni_speaker/test/unittest_speaker.py | micolspitale93/HARMONI | cf6a13fb85e3efb4e421dbfd4555359c0a04acaa | [
"MIT"
] | 61 | 2020-05-15T16:46:32.000Z | 2021-07-28T17:44:49.000Z | harmoni_actuators/harmoni_speaker/test/unittest_speaker.py | micolspitale93/HARMONI | cf6a13fb85e3efb4e421dbfd4555359c0a04acaa | [
"MIT"
] | 3 | 2020-10-05T23:01:29.000Z | 2022-03-02T11:53:34.000Z | #!/usr/bin/env python3
PKG = 'test_harmoni_speaker'
# Common Imports
import unittest, rospy, rospkg, roslib, sys
#from unittest.mock import Mock, patch
# Specific Imports
from actionlib_msgs.msg import GoalStatus
from harmoni_common_msgs.msg import harmoniAction, harmoniFeedback, harmoniResult
from harmoni_common_lib... | 35.471698 | 95 | 0.710106 | 243 | 1,880 | 5.341564 | 0.460905 | 0.064715 | 0.030046 | 0.046225 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000664 | 0.199468 | 1,880 | 52 | 96 | 36.153846 | 0.861794 | 0.181915 | 0 | 0 | 0 | 0 | 0.201307 | 0 | 0 | 0 | 0 | 0.019231 | 0.027778 | 1 | 0.111111 | false | 0 | 0.277778 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
271fe8cb4638bb263355e0c702a01f25cb73e941 | 2,188 | py | Python | django/www/MeteoGaliciaDB/registros/views.py | hugo-lorenzo-mato/Meteo-Galicia-DB | 3dd52534c16216de5f25cd40877d2facc7cffe24 | [
"MIT"
] | null | null | null | django/www/MeteoGaliciaDB/registros/views.py | hugo-lorenzo-mato/Meteo-Galicia-DB | 3dd52534c16216de5f25cd40877d2facc7cffe24 | [
"MIT"
] | null | null | null | django/www/MeteoGaliciaDB/registros/views.py | hugo-lorenzo-mato/Meteo-Galicia-DB | 3dd52534c16216de5f25cd40877d2facc7cffe24 | [
"MIT"
] | 1 | 2021-04-27T18:37:41.000Z | 2021-04-27T18:37:41.000Z | from django.shortcuts import render
from . import forms
from django.core.urlresolvers import reverse
from django.contrib.auth.decorators import login_required
from django.http import HttpResponse, HttpResponseRedirect
from django.contrib.auth import authenticate,login,logout
# Create your views here.
@login_required... | 33.151515 | 136 | 0.652194 | 242 | 2,188 | 5.789256 | 0.301653 | 0.039971 | 0.054247 | 0.079943 | 0.139186 | 0.104925 | 0.104925 | 0.104925 | 0 | 0 | 0 | 0 | 0.247258 | 2,188 | 66 | 137 | 33.151515 | 0.850638 | 0.010512 | 0 | 0.264151 | 0 | 0 | 0.124769 | 0.012477 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075472 | false | 0.056604 | 0.113208 | 0.018868 | 0.320755 | 0.037736 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
272e2592cfb00d569450c8c8739564bdd4f5c46a | 393 | py | Python | alembic/versions/e3dda7be6a95_extend_user_table.py | paul-wolf/bolo | 936e73d80217a0fdbbd983cb1f775686809e1d25 | [
"BSD-3-Clause"
] | null | null | null | alembic/versions/e3dda7be6a95_extend_user_table.py | paul-wolf/bolo | 936e73d80217a0fdbbd983cb1f775686809e1d25 | [
"BSD-3-Clause"
] | null | null | null | alembic/versions/e3dda7be6a95_extend_user_table.py | paul-wolf/bolo | 936e73d80217a0fdbbd983cb1f775686809e1d25 | [
"BSD-3-Clause"
] | null | null | null | """Extend user table
Revision ID: e3dda7be6a95
Revises:
Create Date: 2021-06-07 11:43:45.144088
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = "e3dda7be6a95"
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
op.add_column("auth_... | 15.72 | 68 | 0.727735 | 56 | 393 | 5.017857 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0.160305 | 393 | 24 | 69 | 16.375 | 0.751515 | 0.340967 | 0 | 0 | 0 | 0 | 0.111554 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.1 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2732966b89290e6982d4e90149bce48ffa294e63 | 871 | py | Python | assistant/core/views.py | kapiak/ware_prod | ae61256890834c434d2e38cc2ccacf00b638665a | [
"MIT"
] | null | null | null | assistant/core/views.py | kapiak/ware_prod | ae61256890834c434d2e38cc2ccacf00b638665a | [
"MIT"
] | null | null | null | assistant/core/views.py | kapiak/ware_prod | ae61256890834c434d2e38cc2ccacf00b638665a | [
"MIT"
] | null | null | null | from typing import List
from django.contrib.auth.mixins import LoginRequiredMixin
from django.views.generic import TemplateView
from assistant.orders.models import Order
from assistant.products.models import Product
class DashboardViewMixin(LoginRequiredMixin):
title: str = None
breadcrumbs: List = []
... | 26.393939 | 62 | 0.69116 | 95 | 871 | 6.221053 | 0.431579 | 0.067682 | 0.094755 | 0.05753 | 0.159052 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.211251 | 871 | 32 | 63 | 27.21875 | 0.860262 | 0 | 0 | 0.086957 | 0 | 0 | 0.043628 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.217391 | 0.043478 | 0.695652 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
27397a994d354b44efa7e09c80fd506b9289236b | 1,286 | py | Python | app/routers/users.py | Austinstevesk/fast-api-crud-and-user-authentication | 17e01e5fcaea2a0c3fa3dd65edfaee8414ff831e | [
"Apache-2.0"
] | null | null | null | app/routers/users.py | Austinstevesk/fast-api-crud-and-user-authentication | 17e01e5fcaea2a0c3fa3dd65edfaee8414ff831e | [
"Apache-2.0"
] | null | null | null | app/routers/users.py | Austinstevesk/fast-api-crud-and-user-authentication | 17e01e5fcaea2a0c3fa3dd65edfaee8414ff831e | [
"Apache-2.0"
] | null | null | null | from fastapi import FastAPI, status, HTTPException, Response, APIRouter, Depends
from sqlalchemy.orm import Session
from typing import List
from .. import schemas, models, utils #You can move up 2 steps using ..
from ..database import get_db
router = APIRouter(
prefix="/users",
tags=['users']
)
@router.post... | 29.906977 | 100 | 0.709953 | 178 | 1,286 | 4.977528 | 0.382022 | 0.039503 | 0.094808 | 0.064334 | 0.240406 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006548 | 0.16874 | 1,286 | 42 | 101 | 30.619048 | 0.822264 | 0.050544 | 0 | 0 | 0 | 0 | 0.046798 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0.068966 | 0.172414 | 0 | 0.37931 | 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 | 0 | 0 | 0 | 1 |
273f5601e7028883ce023d07d960ba6fa3bb289d | 1,716 | py | Python | M-SPRING/heuristic/shortest_paths.py | CN-UPB/SPRING | 1cb74919689e832987cb2c9b490eec7f09a64f52 | [
"Apache-2.0"
] | 3 | 2019-09-27T08:07:11.000Z | 2021-11-19T11:27:39.000Z | M-SPRING/heuristic/shortest_paths.py | CN-UPB/SPRING | 1cb74919689e832987cb2c9b490eec7f09a64f52 | [
"Apache-2.0"
] | null | null | null | M-SPRING/heuristic/shortest_paths.py | CN-UPB/SPRING | 1cb74919689e832987cb2c9b490eec7f09a64f52 | [
"Apache-2.0"
] | null | null | null | import math
# return the delay of the specified path (= list of nodes)
def path_delay(links, path):
delay = 0
# go along nodes of the path and increment delay for each traversed link
for i in range(len(path) - 1):
# skip connections on same node without a link (both inst at same node)
if path[i] != pa... | 36.510638 | 104 | 0.648601 | 280 | 1,716 | 3.889286 | 0.303571 | 0.202938 | 0.110193 | 0.078053 | 0.212121 | 0.17539 | 0.117539 | 0.117539 | 0.117539 | 0.117539 | 0 | 0.036704 | 0.222028 | 1,716 | 46 | 105 | 37.304348 | 0.779026 | 0.363636 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.038462 | 0 | 0.192308 | 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 | 0 | 0 | 0 | 1 |
2746d32e08d6ab65d2525605b064c6bb89db2db5 | 1,280 | py | Python | tests/bigwig/test_create_bigwigs.py | BioinformaticsMaterials/epic | d601f2384784ea38f5de8c25156be4c8d9ef2fff | [
"MIT"
] | null | null | null | tests/bigwig/test_create_bigwigs.py | BioinformaticsMaterials/epic | d601f2384784ea38f5de8c25156be4c8d9ef2fff | [
"MIT"
] | null | null | null | tests/bigwig/test_create_bigwigs.py | BioinformaticsMaterials/epic | d601f2384784ea38f5de8c25156be4c8d9ef2fff | [
"MIT"
] | null | null | null | import pytest
import pandas as pd
import numpy as np
from os import stat
from io import StringIO
from epic.bigwig.create_bigwigs import _create_bigwig
from epic.config.genomes import create_genome_size_dict
@pytest.fixture
def input_data():
contents = u"""Chromosome Bin End examples/test.bed
chr1 887600 887799 ... | 21.333333 | 76 | 0.767969 | 203 | 1,280 | 4.699507 | 0.497537 | 0.062893 | 0.033543 | 0.041929 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.289991 | 0.164844 | 1,280 | 59 | 77 | 21.694915 | 0.602432 | 0 | 0 | 0.045455 | 0 | 0 | 0.385156 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 1 | 0.068182 | false | 0 | 0.159091 | 0 | 0.272727 | 0.090909 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2748a53e6b912bda05b5145d677d95d85ebd3529 | 987 | py | Python | Champion.py | KhangOP/PaladinsAssistantBot | 9b705dc688610ba52909f0b0e152d8684006c6a6 | [
"MIT"
] | null | null | null | Champion.py | KhangOP/PaladinsAssistantBot | 9b705dc688610ba52909f0b0e152d8684006c6a6 | [
"MIT"
] | null | null | null | Champion.py | KhangOP/PaladinsAssistantBot | 9b705dc688610ba52909f0b0e152d8684006c6a6 | [
"MIT"
] | null | null | null | # Class to store champion names in one location
class Champion:
"""Champions in Paladins"""
DAMAGES = ["Cassie", "Kinessa", "Drogoz", "Bomb King", "Viktor", "Sha Lin", "Tyra", "Willo", "Lian", "Strix",
"Vivian", "Dredge", "Imani", "Tiberius"]
FLANKS = ["Skye", "Buck", "Evie", "Androxus", "Mae... | 42.913043 | 116 | 0.566363 | 119 | 987 | 4.621849 | 0.680672 | 0.114545 | 0.08 | 0.109091 | 0.103636 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006906 | 0.266464 | 987 | 22 | 117 | 44.863636 | 0.752762 | 0.109422 | 0 | 0 | 0 | 0 | 0.264908 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0 | 0 | 0.611111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
274fe43fa546672495660673160348de8f0a6c2e | 17,257 | py | Python | bpmfwfft/fft_sampling.py | jimtufts/bpmfwfft | 091d2269b122f00b9dd8a01e34303e3e946f8ea0 | [
"MIT"
] | null | null | null | bpmfwfft/fft_sampling.py | jimtufts/bpmfwfft | 091d2269b122f00b9dd8a01e34303e3e946f8ea0 | [
"MIT"
] | null | null | null | bpmfwfft/fft_sampling.py | jimtufts/bpmfwfft | 091d2269b122f00b9dd8a01e34303e3e946f8ea0 | [
"MIT"
] | null | null | null | """
This is to generate interaction energies and corresponding translational vectors,
given a fixed receptor and an ensemble of ligand coordinates (including rotations and/or configurations)
"""
from __future__ import print_function
import numpy as np
import netCDF4
try:
from bpmfwfft.grids import RecGrid
fr... | 42.296569 | 134 | 0.665121 | 2,230 | 17,257 | 4.757848 | 0.113453 | 0.058812 | 0.031668 | 0.043544 | 0.675589 | 0.630537 | 0.590763 | 0.570594 | 0.559284 | 0.545806 | 0 | 0.007583 | 0.228139 | 17,257 | 407 | 135 | 42.400491 | 0.788964 | 0.117981 | 0 | 0.548263 | 1 | 0 | 0.143417 | 0.039144 | 0 | 0 | 0 | 0.002457 | 0.003861 | 1 | 0.050193 | false | 0 | 0.027027 | 0 | 0.135135 | 0.065637 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
275c01a7663aa8d447750578c192b3d7fd40d88b | 1,335 | py | Python | airq/api/crypto.py | dwightmulcahy/airq | 82e97825f70852d7fab973e498ef71345e1ed422 | [
"MIT"
] | 6 | 2020-11-25T10:34:52.000Z | 2022-02-18T22:22:12.000Z | airq/api/crypto.py | dwightmulcahy/airq | 82e97825f70852d7fab973e498ef71345e1ed422 | [
"MIT"
] | 6 | 2021-10-15T06:49:14.000Z | 2021-11-09T20:30:01.000Z | airq/api/crypto.py | dwightmulcahy/airq | 82e97825f70852d7fab973e498ef71345e1ed422 | [
"MIT"
] | 2 | 2021-04-18T03:11:35.000Z | 2022-01-01T23:02:51.000Z | import hashlib
from Crypto.Cipher import AES
class Crypto:
SALT = "@uhooinc.com"
def __init__(self, clientCode):
self.key = hashlib.md5(
clientCode.encode("utf-8")
).digest() # initialization key
self.length = AES.block_size # Initialize the block size
self.aes =... | 32.560976 | 112 | 0.597753 | 163 | 1,335 | 4.852761 | 0.472393 | 0.025284 | 0.037927 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012645 | 0.289139 | 1,335 | 40 | 113 | 33.375 | 0.820864 | 0.176779 | 0 | 0 | 0 | 0 | 0.038246 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0.166667 | 0.066667 | 0 | 0.366667 | 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 | 0 | 0 | 0 | 1 |
275e2811cd73b93eae3878d64929106994338a2d | 1,642 | py | Python | apps/scheduler/migrations/0008_current_task.py | techlib/czechelib-stats | ca132e326af0924740a525710474870b1fb5fd37 | [
"MIT"
] | 1 | 2019-12-12T15:38:42.000Z | 2019-12-12T15:38:42.000Z | apps/scheduler/migrations/0008_current_task.py | techlib/czechelib-stats | ca132e326af0924740a525710474870b1fb5fd37 | [
"MIT"
] | null | null | null | apps/scheduler/migrations/0008_current_task.py | techlib/czechelib-stats | ca132e326af0924740a525710474870b1fb5fd37 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.3 on 2020-11-23 15:06
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('scheduler', '0007_fetchintention_one_to_one_attempt'),
]
operations = [
migrations.AddField(
mo... | 30.407407 | 85 | 0.54933 | 147 | 1,642 | 5.979592 | 0.380952 | 0.051195 | 0.059158 | 0.077361 | 0.477816 | 0.374289 | 0.267349 | 0.10694 | 0.10694 | 0.10694 | 0 | 0.017807 | 0.350183 | 1,642 | 53 | 86 | 30.981132 | 0.805998 | 0.027406 | 0 | 0.468085 | 1 | 0 | 0.176176 | 0.052665 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.042553 | 0 | 0.106383 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2764ee38e5ee492d56a5166db4a12d098e304e48 | 6,047 | py | Python | models/layers.py | RemiDelaunay/DeepUSE | fea4220d53583fe3d4e63c870a62b04deb005eda | [
"MIT"
] | 2 | 2021-08-19T07:40:35.000Z | 2022-01-14T18:55:58.000Z | models/layers.py | RemiDelaunay/DeepUSE | fea4220d53583fe3d4e63c870a62b04deb005eda | [
"MIT"
] | null | null | null | models/layers.py | RemiDelaunay/DeepUSE | fea4220d53583fe3d4e63c870a62b04deb005eda | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
class ConvLSTMCell(nn.Module):
"""
Generate a convolutional LSTM cell
Adapted from "RVOS: End-to-End Recurrent Network for Video Object Segmentation"
"""
def __init__(self, input_size, hidden_size... | 38.272152 | 123 | 0.64379 | 803 | 6,047 | 4.541719 | 0.16812 | 0.084453 | 0.104195 | 0.102824 | 0.488072 | 0.458185 | 0.409652 | 0.381958 | 0.369619 | 0.332602 | 0 | 0.016987 | 0.250372 | 6,047 | 157 | 124 | 38.515924 | 0.787558 | 0.051265 | 0 | 0.346774 | 1 | 0 | 0.002802 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137097 | false | 0 | 0.032258 | 0.024194 | 0.306452 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
276d667a87fa4dfdeb86a4993f51124a0783875c | 2,971 | py | Python | acestream/ACEStream/Plugin/EngineWx.py | GrandPaRPi/p2ptv-pi | 6f79c00f9055a3763ddfe1dc41e14d2cb533f4c3 | [
"MIT"
] | null | null | null | acestream/ACEStream/Plugin/EngineWx.py | GrandPaRPi/p2ptv-pi | 6f79c00f9055a3763ddfe1dc41e14d2cb533f4c3 | [
"MIT"
] | null | null | null | acestream/ACEStream/Plugin/EngineWx.py | GrandPaRPi/p2ptv-pi | 6f79c00f9055a3763ddfe1dc41e14d2cb533f4c3 | [
"MIT"
] | 2 | 2018-04-17T17:34:39.000Z | 2020-07-26T03:43:33.000Z | #Embedded file name: ACEStream\Plugin\EngineWx.pyo
import os
import sys
from traceback import print_exc
try:
import wxversion
wxversion.select('2.8')
except:
pass
try:
import wx
except:
print 'wx is not installed'
os._exit(1)
import ACEStream
from ACEStream.GlobalConfig import globalConfig
fro... | 31.946237 | 113 | 0.672164 | 366 | 2,971 | 5.284153 | 0.336066 | 0.037229 | 0.068252 | 0.055843 | 0.11789 | 0.074457 | 0.034126 | 0.034126 | 0 | 0 | 0 | 0.010999 | 0.234938 | 2,971 | 92 | 114 | 32.293478 | 0.839859 | 0.016493 | 0 | 0.1375 | 0 | 0 | 0.058542 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.0125 | 0.125 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
276d90a94566353b66f7d294a0618d781bcf1b9c | 899 | py | Python | tcp_finite_state/client.py | aakashhemadri/python | 16955810dd1ea491c9ff9c99ee02bd463ba97f0a | [
"MIT"
] | 2 | 2021-01-20T14:08:26.000Z | 2021-10-20T07:56:46.000Z | tcp_finite_state/client.py | aakashhemadri/python | 16955810dd1ea491c9ff9c99ee02bd463ba97f0a | [
"MIT"
] | null | null | null | tcp_finite_state/client.py | aakashhemadri/python | 16955810dd1ea491c9ff9c99ee02bd463ba97f0a | [
"MIT"
] | null | null | null | from tcp_statemachine import TCPStateMachine, Data
import socket
class Client:
"""
Client class
"""
def __init__(self, statemachine, data):
self.ME = 'client'
self.HOST = '127.0.0.1'
self.PORT = 22085
self.ADDRESS = (self.HOST, self.PORT)
self.client_socket = socket.socket()
def run(sel... | 22.475 | 69 | 0.697442 | 112 | 899 | 5.366071 | 0.348214 | 0.116473 | 0.186356 | 0.139767 | 0.129784 | 0.129784 | 0 | 0 | 0 | 0 | 0 | 0.021948 | 0.189099 | 899 | 39 | 70 | 23.051282 | 0.802469 | 0.013348 | 0 | 0.076923 | 0 | 0 | 0.026286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.076923 | 0.038462 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
27756bad277e04032903ed08ddd795ce38d122b8 | 746 | py | Python | img_utils/files/file.py | DewMaple/image_utils | a0ca6a1b088389f5a70df60623e629634d57065a | [
"MIT"
] | null | null | null | img_utils/files/file.py | DewMaple/image_utils | a0ca6a1b088389f5a70df60623e629634d57065a | [
"MIT"
] | null | null | null | img_utils/files/file.py | DewMaple/image_utils | a0ca6a1b088389f5a70df60623e629634d57065a | [
"MIT"
] | null | null | null | import glob
import os
def images_in_dir(images_dir, file_types=('*.png', '*.jpg', '*.jpeg', '*.gif')):
"""
:param images_dir: directory that contains target images
:param file_types: image files extend
:return: full image file path list
"""
file_names = []
for ext in file_types:
fi... | 23.3125 | 80 | 0.647453 | 107 | 746 | 4.345794 | 0.401869 | 0.12043 | 0.090323 | 0.077419 | 0.094624 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003454 | 0.223861 | 746 | 31 | 81 | 24.064516 | 0.799655 | 0.352547 | 0 | 0 | 0 | 0 | 0.049881 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.166667 | 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 | 0 | 0 | 0 | 1 |
277cde189ead3857304afdc2356fa310f621847b | 7,689 | py | Python | Stack_Exchange/py2_text.py | sadahanu/DataScience_SideProject | f476fe939d660099e3209b91bbd5cb883b37b2d3 | [
"MIT"
] | null | null | null | Stack_Exchange/py2_text.py | sadahanu/DataScience_SideProject | f476fe939d660099e3209b91bbd5cb883b37b2d3 | [
"MIT"
] | null | null | null | Stack_Exchange/py2_text.py | sadahanu/DataScience_SideProject | f476fe939d660099e3209b91bbd5cb883b37b2d3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Dec 13 23:10:40 2016
@author: zhouyu
"""
#%%
import pandas as pd
import numpy as np
import os
import re
import nltk
from nltk.corpus import stopwords
from bs4 import BeautifulSoup
os.chdir('/Users/zhouyu/Documents/Zhou_Yu/DS/kaggle_challenge/text processing')
#%% step1: impor... | 38.253731 | 110 | 0.694629 | 1,113 | 7,689 | 4.59389 | 0.262354 | 0.032271 | 0.005867 | 0.008606 | 0.263446 | 0.216116 | 0.161353 | 0.149619 | 0.131821 | 0.117348 | 0 | 0.016855 | 0.182078 | 7,689 | 201 | 111 | 38.253731 | 0.796152 | 0.158668 | 0 | 0.130137 | 0 | 0 | 0.091405 | 0.013149 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.150685 | null | null | 0.075342 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
277d5ee604563ea1b0d6b261faa48f33c379cba6 | 1,210 | py | Python | tests/test_types.py | apparentlymart/python-stl | befec2266b4a6b201ecc3c4c42007a5c24e90566 | [
"MIT"
] | 9 | 2015-01-25T19:46:31.000Z | 2018-07-04T03:32:46.000Z | tests/test_types.py | apparentlymart/python-stl | befec2266b4a6b201ecc3c4c42007a5c24e90566 | [
"MIT"
] | 10 | 2015-03-10T19:04:34.000Z | 2018-11-03T04:46:57.000Z | tests/test_types.py | apparentlymart/python-stl | befec2266b4a6b201ecc3c4c42007a5c24e90566 | [
"MIT"
] | 15 | 2015-03-07T21:46:44.000Z | 2021-12-02T20:03:21.000Z | import unittest
from stl.types import *
class TestTypes(unittest.TestCase):
def test_facet_geometry(self):
facet = Facet(
(1, 0, 0),
[
(0, 0, 0),
(1, 0, 0),
(0, 1, 0),
],
)
self.assertEqual(facet.a, 1.0)
... | 23.72549 | 61 | 0.333884 | 106 | 1,210 | 3.764151 | 0.245283 | 0.095238 | 0.097744 | 0.070175 | 0.448622 | 0.122807 | 0.122807 | 0.122807 | 0.122807 | 0.122807 | 0 | 0.153846 | 0.54876 | 1,210 | 50 | 62 | 24.2 | 0.576923 | 0 | 0 | 0.44186 | 0 | 0 | 0.003306 | 0 | 0 | 0 | 0 | 0 | 0.139535 | 1 | 0.046512 | false | 0 | 0.046512 | 0 | 0.116279 | 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 | 0 | 0 | 0 | 1 |
2780f36861b56fbdc559cec62df68437bb7c262c | 6,277 | py | Python | pexpo.py | joeyspacerocks/pexpo | 1b668bd3d8b399570f938d0b5e9e9545db2ad059 | [
"Apache-2.0"
] | 1 | 2016-05-07T12:32:36.000Z | 2016-05-07T12:32:36.000Z | pexpo.py | joeyspacerocks/pexpo | 1b668bd3d8b399570f938d0b5e9e9545db2ad059 | [
"Apache-2.0"
] | 33 | 2020-07-02T10:24:56.000Z | 2020-08-03T17:26:23.000Z | pexpo.py | joeyspacerocks/pexpo | 1b668bd3d8b399570f938d0b5e9e9545db2ad059 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import os
import sys
import StringIO
import argparse
import json
import zipfile
from PIL import Image, ImageColor
import xml.etree.cElementTree as ET
# TODO: compose multiple layers
def compose_image(indexes, archive):
file = 'layer' + str(indexes[0]) + '.png'
return Image.open(StringIO.StringIO(... | 25.51626 | 124 | 0.608252 | 960 | 6,277 | 3.923958 | 0.208333 | 0.013804 | 0.006371 | 0.021503 | 0.127688 | 0.103265 | 0.077781 | 0.077781 | 0.059198 | 0.059198 | 0 | 0.009029 | 0.20599 | 6,277 | 245 | 125 | 25.620408 | 0.74679 | 0.061813 | 0 | 0.12069 | 0 | 0 | 0.117767 | 0 | 0 | 0 | 0 | 0.004082 | 0 | 0 | null | null | 0 | 0.045977 | null | null | 0.011494 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
27822976fe232c6827409ee540cdeeef7ab6474f | 505 | py | Python | secrets_sample.py | barbudor/upy-door-sensor | ce34226203c0f08b7b10dcdcb6f6f4f2f8689754 | [
"MIT"
] | 5 | 2020-04-12T17:10:23.000Z | 2021-09-24T19:56:01.000Z | secrets_sample.py | barbudor/upy-door-sensor | ce34226203c0f08b7b10dcdcb6f6f4f2f8689754 | [
"MIT"
] | null | null | null | secrets_sample.py | barbudor/upy-door-sensor | ce34226203c0f08b7b10dcdcb6f6f4f2f8689754 | [
"MIT"
] | null | null | null | """
Your secrets and configurations items
you must rename this file secrets.py and customize as needed
"""
# Wifi settings
SSID = "mywifi"
PASSWD = "thesecretpassword"
# Network - comment to use DHCP (but slighly slower)
IPADDR = "192.168.0.100"
MASK = "255.255.255.0"
GW = "192.168.0.1"
DNS = "1.1.1.1"
# MQTT s... | 25.25 | 64 | 0.683168 | 79 | 505 | 4.303797 | 0.696203 | 0.052941 | 0.061765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105634 | 0.156436 | 505 | 19 | 65 | 26.578947 | 0.692488 | 0.388119 | 0 | 0 | 0 | 0 | 0.506897 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
27845720229d1cbede001bd8fe6879c12c7dc607 | 2,117 | py | Python | dex/command/commands/DexUnreachable.py | TomWeaver18/dexter | d89b66ca6a0d1ba29a4c32f152773a34ce2881e8 | [
"MIT"
] | null | null | null | dex/command/commands/DexUnreachable.py | TomWeaver18/dexter | d89b66ca6a0d1ba29a4c32f152773a34ce2881e8 | [
"MIT"
] | null | null | null | dex/command/commands/DexUnreachable.py | TomWeaver18/dexter | d89b66ca6a0d1ba29a4c32f152773a34ce2881e8 | [
"MIT"
] | null | null | null | # DExTer : Debugging Experience Tester
# ~~~~~~ ~ ~~ ~ ~~
#
# Copyright (c) 2019 by SN Systems Ltd., Sony Interactive Entertainment Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# ... | 38.490909 | 79 | 0.691072 | 280 | 2,117 | 5.15 | 0.596429 | 0.061026 | 0.018031 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002494 | 0.242324 | 2,117 | 54 | 80 | 39.203704 | 0.896509 | 0.665564 | 0 | 0 | 0 | 0 | 0.043544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0.058824 | 0.117647 | 0.058824 | 0.470588 | 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 | 0 | 0 | 0 | 1 |
27877c156aab625b9201be4f2bcf3caf8ade21c6 | 328 | py | Python | forest_lite/server/routers/api.py | uk-gov-mirror/MetOffice.forest-lite | 9406b53f7e6a9651eb675e0ac2e5945421b25557 | [
"BSD-3-Clause"
] | 6 | 2020-08-05T16:12:57.000Z | 2022-01-06T01:34:19.000Z | forest_lite/server/routers/api.py | uk-gov-mirror/MetOffice.forest-lite | 9406b53f7e6a9651eb675e0ac2e5945421b25557 | [
"BSD-3-Clause"
] | 49 | 2020-08-14T13:58:32.000Z | 2021-06-29T11:42:32.000Z | forest_lite/server/routers/api.py | uk-gov-mirror/MetOffice.forest-lite | 9406b53f7e6a9651eb675e0ac2e5945421b25557 | [
"BSD-3-Clause"
] | 2 | 2020-12-03T09:24:13.000Z | 2021-04-11T06:10:36.000Z | from fastapi import APIRouter
router = APIRouter()
@router.get("/api")
async def api():
"""Discoverable API by hitting root endpoint"""
return {
"links": {
"datasets": "/datasets",
"natural_earth_feature": "/natural_earth_feature",
"viewport": "/viewport"
... | 19.294118 | 62 | 0.564024 | 30 | 328 | 6.033333 | 0.7 | 0.165746 | 0.209945 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.295732 | 328 | 16 | 63 | 20.5 | 0.78355 | 0 | 0 | 0 | 0 | 0 | 0.30605 | 0.153025 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
278849dea2ba5567753d1997063d53e6a66da898 | 593 | py | Python | tests/lupin/validators/test_match.py | Clustaar/lupin | 9ef73642d84a99adb80abf5a922a9422ddae9254 | [
"MIT"
] | 22 | 2017-10-18T08:27:20.000Z | 2022-03-25T18:53:43.000Z | tests/lupin/validators/test_match.py | Clustaar/lupin | 9ef73642d84a99adb80abf5a922a9422ddae9254 | [
"MIT"
] | 5 | 2019-09-16T15:31:55.000Z | 2022-02-10T08:29:14.000Z | tests/lupin/validators/test_match.py | Clustaar/lupin | 9ef73642d84a99adb80abf5a922a9422ddae9254 | [
"MIT"
] | null | null | null | import re
import pytest
from lupin.errors import InvalidMatch
from lupin.validators import Match
@pytest.fixture
def validator():
regexp = re.compile("hello")
return Match(regexp)
class TestCall(object):
def test_raise_error_if_does_not_match(self, validator):
with pytest.raises(InvalidMatch) ... | 22.807692 | 64 | 0.699831 | 75 | 593 | 5.306667 | 0.493333 | 0.052764 | 0.060302 | 0.085427 | 0.276382 | 0.276382 | 0.276382 | 0.276382 | 0.276382 | 0 | 0 | 0 | 0.204047 | 593 | 25 | 65 | 23.72 | 0.84322 | 0 | 0 | 0.117647 | 0 | 0 | 0.021922 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.235294 | 0 | 0.588235 | 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 | 0 | 0 | 0 | 1 |
2788acf8b816fa004267a5988eb11b0290795f1e | 289 | py | Python | scripts/face_wall.py | Meeshbhoombah/burnt | c10113e7904c5d13c0feedc337681fb41f1006a7 | [
"MIT"
] | null | null | null | scripts/face_wall.py | Meeshbhoombah/burnt | c10113e7904c5d13c0feedc337681fb41f1006a7 | [
"MIT"
] | null | null | null | scripts/face_wall.py | Meeshbhoombah/burnt | c10113e7904c5d13c0feedc337681fb41f1006a7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
spacing = 0.1 # m
lines = []
for c in range(0, 8):
rs = [range(11), reversed(range(11))][c % 2]
for r in rs:
lines.append(' {"point": [%.2f, %.2f, %.2f]}' %
(c*spacing, 0, (r)*spacing))
print '[\n' + ',\n'.join(lines) + '\n]'
| 24.083333 | 56 | 0.460208 | 44 | 289 | 3.022727 | 0.568182 | 0.120301 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0.280277 | 289 | 11 | 57 | 26.272727 | 0.576923 | 0.076125 | 0 | 0 | 0 | 0 | 0.150943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.