hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
4f701be6860630646ec1eab6b85fb174acb20f92
813
py
Python
api/routers/fetch.py
ThisIsBrainDamage/OSC-API
af361ebe72cd282d1a3e69924dde1a215816f0bd
[ "MIT" ]
2
2022-03-16T04:09:53.000Z
2022-03-16T09:38:52.000Z
api/routers/fetch.py
ThisIsBrainDamage/OSC-API
af361ebe72cd282d1a3e69924dde1a215816f0bd
[ "MIT" ]
null
null
null
api/routers/fetch.py
ThisIsBrainDamage/OSC-API
af361ebe72cd282d1a3e69924dde1a215816f0bd
[ "MIT" ]
null
null
null
# Standard library imports import os # Third party imports from fastapi import Depends, APIRouter, HTTPException from dotenv import load_dotenv # Local imports from ..auth.classes import User from ..auth.authenticate import get_current_active_user from ..data import fetch_all, fetch_item load_dotenv() fetch = APIR...
22.583333
89
0.719557
0
0
0
0
481
0.591636
438
0.538745
192
0.236162
4f70b4a59c8c55fded3663f5ef0848de16c340f1
2,990
py
Python
driver/helper/SYNHelper_Kumar.py
qgking/FRGAN
b6a250c46981707c43c3889f80d8cc3ec31edaaf
[ "MIT" ]
2
2021-08-10T02:38:23.000Z
2021-08-10T03:04:22.000Z
driver/helper/SYNHelper_Kumar.py
qgking/FRGAN
b6a250c46981707c43c3889f80d8cc3ec31edaaf
[ "MIT" ]
1
2022-02-21T15:57:03.000Z
2022-02-21T15:57:03.000Z
driver/helper/SYNHelper_Kumar.py
qgking/FRGAN
b6a250c46981707c43c3889f80d8cc3ec31edaaf
[ "MIT" ]
2
2021-11-07T13:25:51.000Z
2022-01-18T07:09:30.000Z
from tumor_data.SYNDataLoader import * from tensorboardX import SummaryWriter from torchsummaryX import summary from driver.helper.base_syn_helper import BaseTrainHelper class SYNHelper_Kumar(BaseTrainHelper): def __init__(self, generator, discriminator, criterions, config): super(SYNHelp...
36.024096
101
0.593311
2,816
0.941806
0
0
0
0
0
0
827
0.276589
4f7163d43490c92cd3148ad70a2d3f997e7a8d13
1,769
py
Python
models/wrf_hydro/ensemble_config_files/ens_setup_croton_gridded.py
hkershaw-brown/feature-preprocess
fe2bd77b38c63fa0566c83ebc4d2fac1623aef66
[ "Apache-2.0" ]
65
2019-10-16T13:31:06.000Z
2022-03-14T11:52:58.000Z
models/wrf_hydro/ensemble_config_files/ens_setup_croton_gridded.py
hkershaw-brown/feature-preprocess
fe2bd77b38c63fa0566c83ebc4d2fac1623aef66
[ "Apache-2.0" ]
283
2019-09-23T15:48:34.000Z
2022-03-31T21:44:41.000Z
models/wrf_hydro/ensemble_config_files/ens_setup_croton_gridded.py
hkershaw-brown/feature-preprocess
fe2bd77b38c63fa0566c83ebc4d2fac1623aef66
[ "Apache-2.0" ]
67
2019-09-19T22:13:24.000Z
2022-03-20T15:58:26.000Z
# m=wrf_hydro_ens_sim.members[0] # dir(m) # Change restart frequency to hourly in hydro namelist att_tuple = ('base_hydro_namelist', 'hydro_nlist', 'rst_dt') # The values can be a scalar (uniform across the ensemble) or a list of length N (ensemble size). values = 60 wrf_hydro_ens_sim.set_member_diffs(att_tuple, valu...
45.358974
109
0.79706
0
0
0
0
0
0
0
0
1,408
0.79593
4f71b59f7fa424504c4850aad52c0fb59243156e
1,475
py
Python
graphium/graph_management/model/access.py
graphium-project/graphium-qgis-plugin
480e90dc874522b4d4d36b0d7b909ef3144da8b2
[ "Apache-2.0" ]
1
2020-07-11T10:28:33.000Z
2020-07-11T10:28:33.000Z
graphium/graph_management/model/access.py
graphium-project/graphium-qgis-plugin
480e90dc874522b4d4d36b0d7b909ef3144da8b2
[ "Apache-2.0" ]
null
null
null
graphium/graph_management/model/access.py
graphium-project/graphium-qgis-plugin
480e90dc874522b4d4d36b0d7b909ef3144da8b2
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ /*************************************************************************** QGIS plugin 'Graphium' /*************************************************************************** * * Copyright 2020 Simon Gröchenig @ Salzburg Research * eMail graphium@salzburgresearch.at * * Licensed...
27.314815
77
0.568814
500
0.338753
0
0
0
0
0
0
947
0.641599
4f72fe87f0f555011e0abddaa2ff010aaadedc6e
2,591
py
Python
aea/cli/utils/formatting.py
bryanchriswhite/agents-aea
d3f177a963eb855d9528555167255bf2b478f4ba
[ "Apache-2.0" ]
126
2019-09-07T09:32:44.000Z
2022-03-29T14:28:41.000Z
aea/cli/utils/formatting.py
salman6049/agents-aea
d3f177a963eb855d9528555167255bf2b478f4ba
[ "Apache-2.0" ]
1,814
2019-08-24T10:08:07.000Z
2022-03-31T14:28:36.000Z
aea/cli/utils/formatting.py
salman6049/agents-aea
d3f177a963eb855d9528555167255bf2b478f4ba
[ "Apache-2.0" ]
46
2019-09-03T22:13:58.000Z
2022-03-22T01:25:16.000Z
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2018-2020 Fetch.AI Limited # # 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 ...
33.649351
85
0.592821
0
0
0
0
0
0
0
0
1,377
0.531455
4f746f8a5d2093a7b2129bda73802e19923f5043
851
py
Python
ocean_utils/agreements/utils.py
oceanprotocol/common-utils-py
f577f4762841496584e114baaec0d476e73c700e
[ "Apache-2.0" ]
null
null
null
ocean_utils/agreements/utils.py
oceanprotocol/common-utils-py
f577f4762841496584e114baaec0d476e73c700e
[ "Apache-2.0" ]
2
2019-12-16T11:26:21.000Z
2021-03-18T13:06:31.000Z
ocean_utils/agreements/utils.py
oceanprotocol/common-utils-py
f577f4762841496584e114baaec0d476e73c700e
[ "Apache-2.0" ]
null
null
null
"""Agreements module.""" # Copyright 2018 Ocean Protocol Foundation # SPDX-License-Identifier: Apache-2.0 from ocean_utils.agreements.access_sla_template import ACCESS_SLA_TEMPLATE from ocean_utils.agreements.compute_sla_template import COMPUTE_SLA_TEMPLATE from ocean_utils.agreements.service_types import ServiceTy...
35.458333
86
0.780259
0
0
0
0
0
0
0
0
334
0.392479
4f74e6b364f85cdca76783ea050b55c4b0e2bf27
1,750
py
Python
mobilenetv1.py
Monster880/pytorch_py
9c5ac5974f48edb5ea3d897a1100a63d488c61d9
[ "MIT" ]
null
null
null
mobilenetv1.py
Monster880/pytorch_py
9c5ac5974f48edb5ea3d897a1100a63d488c61d9
[ "MIT" ]
null
null
null
mobilenetv1.py
Monster880/pytorch_py
9c5ac5974f48edb5ea3d897a1100a63d488c61d9
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F class mobilenet(nn.Module): def __init__(self): super(mobilenet, self).__init__() self.conv_1 = nn.Sequential( nn.Conv2d(3, 64, kernel_size=3, stride=1, padding=1), nn.BatchNorm2d(64), nn.ReLU() ...
30.701754
123
0.566286
1,633
0.933143
0
0
0
0
0
0
0
0
4f7749d7fdeb213a71c50fac2777773a4cae4cde
982
py
Python
sdk/ml/azure-ai-ml/azure/ai/ml/_schema/_sweep/search_space/randint.py
dubiety/azure-sdk-for-python
62ffa839f5d753594cf0fe63668f454a9d87a346
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/ml/azure-ai-ml/azure/ai/ml/_schema/_sweep/search_space/randint.py
ellhe-blaster/azure-sdk-for-python
82193ba5e81cc5e5e5a5239bba58abe62e86f469
[ "MIT" ]
null
null
null
sdk/ml/azure-ai-ml/azure/ai/ml/_schema/_sweep/search_space/randint.py
ellhe-blaster/azure-sdk-for-python
82193ba5e81cc5e5e5a5239bba58abe62e86f469
[ "MIT" ]
null
null
null
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- from azure.ai.ml.constants import SearchSpace from marshmallow import fields, post_load, pre_dump, ValidationError from azure.ai.ml._schema...
35.071429
86
0.649695
555
0.565173
0
0
368
0.374745
0
0
228
0.232179
4f792214bd4390f63e5a1db2e2943cc2db998be9
3,189
py
Python
unittest_reinvent/scoring_tests/scoring_components/pip/test_pip_caco2_efflux.py
MolecularAI/reinvent-scoring
f7e052ceeffd29e17e1672c33607189873c82a45
[ "MIT" ]
null
null
null
unittest_reinvent/scoring_tests/scoring_components/pip/test_pip_caco2_efflux.py
MolecularAI/reinvent-scoring
f7e052ceeffd29e17e1672c33607189873c82a45
[ "MIT" ]
2
2021-11-01T23:19:42.000Z
2021-11-22T23:41:39.000Z
unittest_reinvent/scoring_tests/scoring_components/pip/test_pip_caco2_efflux.py
MolecularAI/reinvent-scoring
f7e052ceeffd29e17e1672c33607189873c82a45
[ "MIT" ]
2
2021-11-18T13:14:22.000Z
2022-03-16T07:52:57.000Z
import os import shutil import unittest from unittest.mock import MagicMock import numpy as np import numpy.testing as npt import pytest from reinvent_scoring.scoring.enums import ComponentSpecificParametersEnum from reinvent_scoring.scoring.enums import ScoringFunctionComponentNameEnum from reinvent_scoring.scoring....
39.37037
110
0.743493
2,307
0.723424
0
0
774
0.242709
0
0
32
0.010034
4f7a49d4d9b2c7c57d26803d6ea3fbe28b85a380
9,344
py
Python
variation/normalize.py
cancervariants/variant-normalization
e89a9f8366a659c82b2042aeb7effe339851bfb4
[ "MIT" ]
1
2022-01-19T18:17:49.000Z
2022-01-19T18:17:49.000Z
variation/normalize.py
cancervariants/variation-normalization
9c8fbab1562591ae9445d82ddd15df29f1ea1f5a
[ "MIT" ]
99
2021-06-07T12:50:34.000Z
2022-03-23T13:38:29.000Z
variation/normalize.py
cancervariants/variant-normalization
e89a9f8366a659c82b2042aeb7effe339851bfb4
[ "MIT" ]
null
null
null
"""Module for Variation Normalization.""" from typing import Optional, List, Tuple, Dict from ga4gh.vrsatile.pydantic.vrs_models import Text from ga4gh.vrsatile.pydantic.vrsatile_models import VariationDescriptor, \ GeneDescriptor from ga4gh.vrs import models from ga4gh.core import ga4gh_identify from variation.dat...
38.933333
96
0.622967
8,696
0.930651
0
0
1,651
0.176691
0
0
3,074
0.328981
4f7ac73509e6e84e42327cc7eb2cf60206c29356
478
py
Python
blender/arm/logicnode/math/LN_separate_xyz.py
onelsonic/armory
55cfead0844923d419d75bf4bd677ebed714b4b5
[ "Zlib" ]
2,583
2016-07-27T08:25:47.000Z
2022-03-31T10:42:17.000Z
blender/arm/logicnode/math/LN_separate_xyz.py
N8n5h/armory
5b4d24f067a2354bafd3ab417bb8e30ee0c5aff8
[ "Zlib" ]
2,122
2016-07-31T14:20:04.000Z
2022-03-31T20:44:14.000Z
blender/arm/logicnode/math/LN_separate_xyz.py
N8n5h/armory
5b4d24f067a2354bafd3ab417bb8e30ee0c5aff8
[ "Zlib" ]
451
2016-08-12T05:52:58.000Z
2022-03-31T01:33:07.000Z
from arm.logicnode.arm_nodes import * class SeparateVectorNode(ArmLogicTreeNode): """Splits the given vector into X, Y and Z.""" bl_idname = 'LNSeparateVectorNode' bl_label = 'Separate XYZ' arm_section = 'vector' arm_version = 1 def arm_init(self, context): self.add_input('ArmVectorSoc...
29.875
51
0.669456
438
0.916318
0
0
0
0
0
0
172
0.359833
4f7b4269a2cfc7be43ae83b5c540838d9d6ebafb
1,023
py
Python
setup.py
Mikfr83/skyhook
1af5afdd8ad77a46ea918be487b100d376642db8
[ "Apache-2.0", "MIT" ]
null
null
null
setup.py
Mikfr83/skyhook
1af5afdd8ad77a46ea918be487b100d376642db8
[ "Apache-2.0", "MIT" ]
null
null
null
setup.py
Mikfr83/skyhook
1af5afdd8ad77a46ea918be487b100d376642db8
[ "Apache-2.0", "MIT" ]
null
null
null
import sys import setuptools with open("README.md", "r") as fh: long_description = fh.read() # any data files that match this pattern will be included data_files_to_include = ["*.png"] if sys.version_info.major == 2: try: import PySide requires = ['requests'] except: requires = ['...
25.575
59
0.652004
0
0
0
0
0
0
0
0
363
0.354839
4f7b5a243af90599473c06dcec0b2e2ed8c76eb5
2,432
py
Python
ml3d/torch/utils/helper_torch.py
inkyusa/Open3D-ML
40b5f7ff45577bcc6fd451cf63cc366324730849
[ "MIT" ]
447
2020-10-14T23:16:41.000Z
2021-07-27T06:57:45.000Z
ml3d/torch/utils/helper_torch.py
inkyusa/Open3D-ML
40b5f7ff45577bcc6fd451cf63cc366324730849
[ "MIT" ]
118
2020-10-14T10:20:37.000Z
2021-07-27T12:23:18.000Z
ml3d/torch/utils/helper_torch.py
inkyusa/Open3D-ML
40b5f7ff45577bcc6fd451cf63cc366324730849
[ "MIT" ]
80
2020-10-14T17:35:48.000Z
2021-07-23T08:48:17.000Z
import torch import torch.nn as nn import torch.nn.functional as F class conv2d_transpose(nn.Module): def __init__(self, batchNorm, in_planes, out_planes, kernel_size=1, stride=1, activation=True): super...
32
70
0.45847
2,359
0.969984
0
0
0
0
0
0
0
0
4f7dcd2be58eb42137bca30cd766b4e6d48d031b
13,986
py
Python
2020/aoc_2020_20/aoc_2020_20.py
ericcolton/AdventOfCode
58bdf8886d1d6cea5faeee74248c10ddaf97a93b
[ "MIT" ]
null
null
null
2020/aoc_2020_20/aoc_2020_20.py
ericcolton/AdventOfCode
58bdf8886d1d6cea5faeee74248c10ddaf97a93b
[ "MIT" ]
null
null
null
2020/aoc_2020_20/aoc_2020_20.py
ericcolton/AdventOfCode
58bdf8886d1d6cea5faeee74248c10ddaf97a93b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Advent of Code 2020 Day 20: Jurassic Jigsaw https://adventofcode.com/2020/day/20 Solution by Eric Colton """ import re from functools import reduce SEA_MONSTER_PROFILE = """ ..................#. #....##....##....### .#..#..#..#..#..#...""" class Tile: def __init__(self, id: int, con...
41.256637
117
0.568712
9,317
0.666166
0
0
0
0
0
0
613
0.04383
4f7eadeff29e825eecd011fae2e486b757106c64
7,752
py
Python
experiments/SciTail_NLI/benchmark_paraphrases_generation.py
matejklemen/paraphrase-nli
d31ecba7e54eea4c3b098a2de7bc35f538e4e6dc
[ "MIT" ]
null
null
null
experiments/SciTail_NLI/benchmark_paraphrases_generation.py
matejklemen/paraphrase-nli
d31ecba7e54eea4c3b098a2de7bc35f538e4e6dc
[ "MIT" ]
null
null
null
experiments/SciTail_NLI/benchmark_paraphrases_generation.py
matejklemen/paraphrase-nli
d31ecba7e54eea4c3b098a2de7bc35f538e4e6dc
[ "MIT" ]
null
null
null
import json import logging import os import sys from argparse import ArgumentParser import re import numpy as np import pandas as pd import torch from transformers import GPT2Tokenizer from src.data.cleaning import mask_not_na, inds_unique, mask_long_enough from src.data.nli import TransformersSeqPairDataset from src...
43.307263
149
0.736197
0
0
0
0
0
0
0
0
1,799
0.232069
4f7ef52ff38ec211c689a86a821876bea757fb2f
4,838
py
Python
test.py
conema/distributed-TransE
07de643bf8733e524e17a0ae4656ffdfd281b3a5
[ "MIT" ]
3
2021-02-11T11:22:16.000Z
2021-05-27T03:22:57.000Z
test.py
conema/distributed-TransE
07de643bf8733e524e17a0ae4656ffdfd281b3a5
[ "MIT" ]
null
null
null
test.py
conema/distributed-TransE
07de643bf8733e524e17a0ae4656ffdfd281b3a5
[ "MIT" ]
1
2021-04-21T15:13:47.000Z
2021-04-21T15:13:47.000Z
import numpy as np from pyspark.sql import SparkSession from pyspark import SparkContext, SparkConf from TransEmodule import utils def check_entities(x, map): if x in map: return map[x] else: return None def calculate_rankings(rank_list): flat = rank_list.map(lambda x: x[0]).persist() ...
38.094488
139
0.590327
0
0
0
0
0
0
0
0
487
0.100661
4f80040acf6642b4b3a8529a3483b2576449af0d
169
py
Python
Test_cases/Generated_Python/loops.py
TY-Projects/Code-Converter
9fee4e186e0be94741a38bb95abe32adb8957fde
[ "MIT" ]
null
null
null
Test_cases/Generated_Python/loops.py
TY-Projects/Code-Converter
9fee4e186e0be94741a38bb95abe32adb8957fde
[ "MIT" ]
null
null
null
Test_cases/Generated_Python/loops.py
TY-Projects/Code-Converter
9fee4e186e0be94741a38bb95abe32adb8957fde
[ "MIT" ]
null
null
null
def main () : i = 1 fib = 1 target = 10 temp = 0 while (i < target) : temp = fib fib += temp i+=1 print(fib) return 0 if __name__ == '__main__': main()
10.5625
26
0.538462
0
0
0
0
0
0
0
0
10
0.059172
4f804d5a0e36342ad2a4e48d3e16c64fd9394410
746
py
Python
unifrakturmaguntia/src/generate.py
graffitiMSX/msxpower-googlefontdirectory
1e201a68c8181698c143279734c4677f194855d8
[ "Apache-2.0" ]
1
2016-06-05T07:51:16.000Z
2016-06-05T07:51:16.000Z
unifrakturmaguntia/src/generate.py
graffitiMSX/msxpower-googlefontdirectory
1e201a68c8181698c143279734c4677f194855d8
[ "Apache-2.0" ]
null
null
null
unifrakturmaguntia/src/generate.py
graffitiMSX/msxpower-googlefontdirectory
1e201a68c8181698c143279734c4677f194855d8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # With the SFDs in the current directory, run this with # $ python generate.py import fontforge, sys required_version = "20090923" if fontforge.version() < required_version: print ("Your version of FontForge is too old - %s or newer is required" % (required_version)); print ("Current fontforge ...
24.064516
98
0.686327
0
0
0
0
0
0
0
0
377
0.505362
4f80e45d4e32c8be3ef561b50ff2444d16c0afd8
1,790
py
Python
xgboost-0.6-py3.6.egg/xgboost/dmlc-core/tracker/dmlc_tracker/sge.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
xgboost-0.6-py3.6.egg/xgboost/dmlc-core/tracker/dmlc_tracker/sge.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
xgboost-0.6-py3.6.egg/xgboost/dmlc-core/tracker/dmlc_tracker/sge.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
"""Submit jobs to Sun Grid Engine.""" # pylint: disable=invalid-name import os import subprocess from . import tracker def submit(args): """Job submission script for SGE.""" if args.jobname is None: args.jobname = ('dmlc%d.' % args.num_workers) + args.command[0].split('/')[-1] if args.sge_log_dir...
36.530612
92
0.581006
0
0
0
0
0
0
0
0
561
0.313408
4f83b5b21aeb93464b101c16597a50e5af097412
443
py
Python
Week 3/id_755/LeetCode_455_755.py
larryRishi/algorithm004-05
e60d0b1176acd32a9184b215e36d4122ba0b6263
[ "Apache-2.0" ]
1
2019-10-12T06:48:45.000Z
2019-10-12T06:48:45.000Z
Week 3/id_755/LeetCode_455_755.py
larryRishi/algorithm004-05
e60d0b1176acd32a9184b215e36d4122ba0b6263
[ "Apache-2.0" ]
1
2019-12-01T10:02:03.000Z
2019-12-01T10:02:03.000Z
Week 3/id_755/LeetCode_455_755.py
larryRishi/algorithm004-05
e60d0b1176acd32a9184b215e36d4122ba0b6263
[ "Apache-2.0" ]
null
null
null
class Solution: def findContentChildren(self, g: List[int], s: List[int]) -> int: g.sort() s.sort() greed_p = 0 size_p = 0 count = 0 while greed_p < len(g) and size_p < len(s): if g[greed_p] <= s[size_p]: count += 1 greed_p ...
27.6875
69
0.435666
442
0.997743
0
0
0
0
0
0
0
0
4f854d880deadf16219033650ff85578caf3e5b5
6,473
py
Python
MindElec/examples/physics_driven/time_domain_maxwell/src/utils.py
mindspore-ai/mindscience
b5269245915695de2d99fb290fef662c241db189
[ "Apache-2.0" ]
3
2021-11-10T06:17:50.000Z
2022-03-21T14:25:30.000Z
tests/st/mindelec/networks/test_time_domain_maxwell/src/utils.py
mindspore-ai/mindscience
b5269245915695de2d99fb290fef662c241db189
[ "Apache-2.0" ]
null
null
null
tests/st/mindelec/networks/test_time_domain_maxwell/src/utils.py
mindspore-ai/mindscience
b5269245915695de2d99fb290fef662c241db189
[ "Apache-2.0" ]
1
2021-12-05T11:41:29.000Z
2021-12-05T11:41:29.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
37.201149
100
0.560482
0
0
0
0
0
0
0
0
1,000
0.15425
4f86096694d847caa47a97bddc557947b0f8dce5
6,968
py
Python
Code/CBEExamples.py
andreschristen/BA_Dilution_Series
b9de412f5e71770a056c0412249ef8ce7764cf15
[ "MIT" ]
null
null
null
Code/CBEExamples.py
andreschristen/BA_Dilution_Series
b9de412f5e71770a056c0412249ef8ce7764cf15
[ "MIT" ]
null
null
null
Code/CBEExamples.py
andreschristen/BA_Dilution_Series
b9de412f5e71770a056c0412249ef8ce7764cf15
[ "MIT" ]
1
2021-04-16T15:01:33.000Z
2021-04-16T15:01:33.000Z
# -*- coding: utf-8 -*- """ Created on Mon 2018.02.28:00:00:00 @author: Nigel Orlando Santillán Morales Abstrac: Examples of experiments from different labs. """ #################################################################################################################################################...
35.015075
183
0.53961
0
0
0
0
0
0
0
0
2,742
0.393457
4f867e1c4eeed274461bae0c3be4c88d43b70d6d
6,985
py
Python
org_manager_form.py
MervmessInc/sfdx_scratch_org_builder
c592e5d1842a2567c2ea57e4671dd8bb317ef619
[ "MIT" ]
null
null
null
org_manager_form.py
MervmessInc/sfdx_scratch_org_builder
c592e5d1842a2567c2ea57e4671dd8bb317ef619
[ "MIT" ]
null
null
null
org_manager_form.py
MervmessInc/sfdx_scratch_org_builder
c592e5d1842a2567c2ea57e4671dd8bb317ef619
[ "MIT" ]
null
null
null
from asciimatics.widgets import ( Button, Divider, Frame, Layout, RadioButtons, Text, ) from asciimatics.event import KeyboardEvent, MouseEvent from asciimatics.scene import Scene from asciimatics.screen import Screen from asciimatics.exceptions import ( ResizeScreenError, StopApplicatio...
24.59507
113
0.579384
3,437
0.492054
0
0
0
0
0
0
1,135
0.162491
4f86cee26e324a8d48afb573b6c1c7561b27084a
10,087
py
Python
src/environmentbase/scripts/environmentutil.py
ion-channel/cloudformation-environmentbase
2dc32fb3fa1aa659bd9efc4350e6962092dfbc19
[ "BSD-2-Clause" ]
1
2019-04-23T09:02:42.000Z
2019-04-23T09:02:42.000Z
src/environmentbase/scripts/environmentutil.py
ion-channel/cloudformation-environmentbase
2dc32fb3fa1aa659bd9efc4350e6962092dfbc19
[ "BSD-2-Clause" ]
null
null
null
src/environmentbase/scripts/environmentutil.py
ion-channel/cloudformation-environmentbase
2dc32fb3fa1aa659bd9efc4350e6962092dfbc19
[ "BSD-2-Clause" ]
3
2017-05-24T23:26:46.000Z
2018-04-19T01:50:19.000Z
#!/usr/bin/env python """environmentutil.py Utility tool helps to manage mappings and gathering data from across multiple AWS Availability zones. Usage: environmentutil amimap get [--aws_region <AWS_REGION>] [--config_file <CONFIG_FILE>] environmentutil amimap write [<OUTPUT_FILE>] [--aws_region <A...
48.263158
167
0.619312
7,863
0.779518
0
0
0
0
0
0
5,011
0.496778
4f879069ef98ad7ff738cf144fe1fd75fdd1089e
859
py
Python
service-workers/service-worker/resources/update-max-aged-worker.py
meyerweb/wpt
f04261533819893c71289614c03434c06856c13e
[ "BSD-3-Clause" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
service-workers/service-worker/resources/update-max-aged-worker.py
meyerweb/wpt
f04261533819893c71289614c03434c06856c13e
[ "BSD-3-Clause" ]
7,642
2018-05-28T09:38:03.000Z
2022-03-31T20:55:48.000Z
service-workers/service-worker/resources/update-max-aged-worker.py
meyerweb/wpt
f04261533819893c71289614c03434c06856c13e
[ "BSD-3-Clause" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
import time import json from wptserve.utils import isomorphic_decode, isomorphic_encode def main(request, response): headers = [(b'Content-Type', b'application/javascript'), (b'Cache-Control', b'max-age=86400'), (b'Last-Modified', isomorphic_encode(time.strftime(u"%a, %d %b %Y %H:%M:...
27.709677
113
0.559953
0
0
0
0
0
0
0
0
474
0.551804
4f87ac6ce4b524e13bfbf144a4213783caf6da68
4,344
py
Python
src/infrastructure/clients/provider/exchange_rate_api/drivers.py
sdediego/forex-django-clean-architecture
915a8d844a8db5a40c726fe4cf9f6d50f7c95275
[ "MIT" ]
8
2021-11-09T16:43:38.000Z
2022-03-25T16:04:26.000Z
src/infrastructure/clients/provider/exchange_rate_api/drivers.py
sdediego/forex-django-clean-architecture
915a8d844a8db5a40c726fe4cf9f6d50f7c95275
[ "MIT" ]
null
null
null
src/infrastructure/clients/provider/exchange_rate_api/drivers.py
sdediego/forex-django-clean-architecture
915a8d844a8db5a40c726fe4cf9f6d50f7c95275
[ "MIT" ]
2
2021-11-16T21:17:31.000Z
2022-02-11T11:15:29.000Z
# coding: utf-8 import asyncio from itertools import chain, repeat from typing import List from requests import Response from requests.exceptions import RequestException from src.domain.exchange_rate import CurrencyEntity, CurrencyExchangeRateEntity from src.domain.provider import ProviderEntity from src.infrastruct...
40.222222
96
0.665516
3,552
0.81768
0
0
1,071
0.246547
1,049
0.241483
324
0.074586
4f88238f777db0f4e648169070250612e0996459
1,885
py
Python
Client/utils/listFileLumis.py
vkuznet/DBS
14df8bbe8ee8f874fe423399b18afef911fe78c7
[ "Apache-2.0" ]
8
2015-08-14T04:01:32.000Z
2021-06-03T00:56:42.000Z
Client/utils/listFileLumis.py
yuyiguo/DBS
14df8bbe8ee8f874fe423399b18afef911fe78c7
[ "Apache-2.0" ]
162
2015-01-07T21:34:47.000Z
2021-10-13T09:42:41.000Z
Client/utils/listFileLumis.py
yuyiguo/DBS
14df8bbe8ee8f874fe423399b18afef911fe78c7
[ "Apache-2.0" ]
16
2015-01-22T15:27:29.000Z
2021-04-28T09:23:28.000Z
from __future__ import print_function #DBS-3 imports import time from dbs.apis.dbsClient import * url="https://cmsweb.cern.ch/dbs/prod/global/DBSReader/" #url="https://dbs3-test2.cern.ch/dbs/dev/global/DBSReader/" # API Object dbs3api = DbsApi(url=url) # will throw error because no lfn or block_name provided run_n...
55.441176
199
0.838196
0
0
0
0
0
0
0
0
1,629
0.864191
4f89b62bf25997382973f0cd09db16afd2027eee
795
py
Python
src/py-opentimelineio/opentimelineio/schema/generator_reference.py
eric-with-a-c/OpenTimelineIO
9f55adfc78293b4f508c4a27a34e110ccd92fca6
[ "Apache-2.0" ]
1
2022-03-26T12:59:59.000Z
2022-03-26T12:59:59.000Z
src/py-opentimelineio/opentimelineio/schema/generator_reference.py
eric-with-a-c/OpenTimelineIO
9f55adfc78293b4f508c4a27a34e110ccd92fca6
[ "Apache-2.0" ]
40
2021-09-13T03:09:21.000Z
2022-03-28T03:11:10.000Z
src/py-opentimelineio/opentimelineio/schema/generator_reference.py
eric-with-a-c/OpenTimelineIO
9f55adfc78293b4f508c4a27a34e110ccd92fca6
[ "Apache-2.0" ]
1
2022-03-09T03:37:24.000Z
2022-03-09T03:37:24.000Z
from .. core._core_utils import add_method from .. import _otio @add_method(_otio.GeneratorReference) def __str__(self): return 'GeneratorReference("{}", "{}", {}, {}, {})'.format( self.name, self.generator_kind, self.parameters, self.available_image_bounds, self.metadata ...
24.090909
63
0.56478
0
0
0
0
725
0.91195
0
0
171
0.215094
4f89bcf2d852f2ef8eb07b1d90b312478a835bbc
4,696
py
Python
ftests/nuxeo-server-gatling-tests/scripts/injector.py
aTiKhan/nuxeo
05753c13d97d599b87acf8710ca523dbd89738f4
[ "Apache-2.0" ]
1
2021-02-15T19:07:59.000Z
2021-02-15T19:07:59.000Z
ftests/nuxeo-server-gatling-tests/scripts/injector.py
aTiKhan/nuxeo
05753c13d97d599b87acf8710ca523dbd89738f4
[ "Apache-2.0" ]
3
2021-07-03T21:32:41.000Z
2022-03-23T13:15:18.000Z
ftests/nuxeo-server-gatling-tests/scripts/injector.py
aTiKhan/nuxeo
05753c13d97d599b87acf8710ca523dbd89738f4
[ "Apache-2.0" ]
1
2022-03-17T14:55:30.000Z
2022-03-17T14:55:30.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # (C) Copyright 2015 Nuxeo SA (http://nuxeo.com/) and contributors. # # All rights reserved. This program and the accompanying materials # are made available under the terms of the GNU Lesser General Public License # (LGPL) version 2.1 which accompanies this distribution, ...
40.482759
105
0.59753
3,638
0.774702
0
0
267
0.056857
0
0
1,738
0.370102
4f8a3f1a9a10f7b445cddfc325c3345386840c0c
1,781
py
Python
python/network-security/column.py
shivekkhurana/learning
d871343a30cf4db85f3f938a2ca0e419997ca84e
[ "MIT" ]
null
null
null
python/network-security/column.py
shivekkhurana/learning
d871343a30cf4db85f3f938a2ca0e419997ca84e
[ "MIT" ]
null
null
null
python/network-security/column.py
shivekkhurana/learning
d871343a30cf4db85f3f938a2ca0e419997ca84e
[ "MIT" ]
null
null
null
from random import randint class Column(object): def __init__(self, columns = 5): super(Column, self).__init__() self.columns = columns def encrypt(self, payload): matrix = [] payload = payload.replace(' ', '') complete = False while True: row = [] ...
28.269841
63
0.509264
1,424
0.799551
0
0
0
0
0
0
120
0.067378
4f8bacf5cc8d683ea814fa649f93bbfbdf8b2af2
67
py
Python
SoftUni-Basic/first_steps_in_coding/lab/04_inches_to_centimeters.py
Darkartt/SoftUni
23d65ddb9f1e454c9b1338a60dc52f5a64c30bc9
[ "MIT" ]
null
null
null
SoftUni-Basic/first_steps_in_coding/lab/04_inches_to_centimeters.py
Darkartt/SoftUni
23d65ddb9f1e454c9b1338a60dc52f5a64c30bc9
[ "MIT" ]
null
null
null
SoftUni-Basic/first_steps_in_coding/lab/04_inches_to_centimeters.py
Darkartt/SoftUni
23d65ddb9f1e454c9b1338a60dc52f5a64c30bc9
[ "MIT" ]
null
null
null
inch = float(input()) centimetars = inch * 2.54 print(centimetars)
16.75
25
0.716418
0
0
0
0
0
0
0
0
0
0
4f8c5c029193d738ae427dd4616e827e5ddb3129
1,119
py
Python
api/load_db.py
Build-Week-Post-Here-1/Data-Science
d9920656e853898034989fc04fdc37ea13bb73af
[ "MIT" ]
null
null
null
api/load_db.py
Build-Week-Post-Here-1/Data-Science
d9920656e853898034989fc04fdc37ea13bb73af
[ "MIT" ]
2
2021-09-08T01:48:39.000Z
2022-01-13T02:16:26.000Z
api/load_db.py
Build-Week-Post-Here-1/Data-Science
d9920656e853898034989fc04fdc37ea13bb73af
[ "MIT" ]
1
2020-02-04T17:20:23.000Z
2020-02-04T17:20:23.000Z
import os from dotenv import load_dotenv import sqlite3 import praw # Create db schema conn = sqlite3.connect('db.sqlite3') c = conn.cursor() c.execute('drop table if exists submissions') c.execute('''create table submissions ( subreddit text, subreddit_subs int, title text...
30.243243
99
0.613941
0
0
0
0
0
0
0
0
464
0.414656
4f8c777594f9d7410f30000c4abbaca642fbcd09
887
py
Python
Exemple/exemple.py
GouaiedYosra/mask_rcnn
1e2bf2a2cbafbec7e890e770b32c256fbe20519f
[ "MIT" ]
null
null
null
Exemple/exemple.py
GouaiedYosra/mask_rcnn
1e2bf2a2cbafbec7e890e770b32c256fbe20519f
[ "MIT" ]
null
null
null
Exemple/exemple.py
GouaiedYosra/mask_rcnn
1e2bf2a2cbafbec7e890e770b32c256fbe20519f
[ "MIT" ]
null
null
null
# example of extracting bounding boxes from an annotation file from xml.etree import ElementTree # function to extract bounding boxes from an annotation file def extract_boxes(filename): # load and parse the file tree = ElementTree.parse(filename) # get the root of the document root = tree.getroot() # extract each...
34.115385
62
0.717024
0
0
0
0
0
0
0
0
390
0.439684
4f8d150b4ae88cb9a27ba7e46fc92e9ece8c3e04
11,435
py
Python
14_plot_target-list.py
kuntzer/SALSA-public
79fd601d3999ac977bbc97be010b2c4ef81e4c35
[ "BSD-3-Clause" ]
1
2021-07-30T09:59:41.000Z
2021-07-30T09:59:41.000Z
14_plot_target-list.py
kuntzer/SALSA-public
79fd601d3999ac977bbc97be010b2c4ef81e4c35
[ "BSD-3-Clause" ]
null
null
null
14_plot_target-list.py
kuntzer/SALSA-public
79fd601d3999ac977bbc97be010b2c4ef81e4c35
[ "BSD-3-Clause" ]
1
2021-07-30T10:38:54.000Z
2021-07-30T10:38:54.000Z
''' 14-plot_target-list.py =============================================== AIM: Given a catalogue of objects, plots when the targets are visible according to their magnitude for a given period of time. INPUT: files: - <orbit_id>_misc/orbits.dat - <orbit_id>_flux/flux_*.dat variables: see section PARAMETERS (below)...
29.778646
224
0.689899
0
0
0
0
0
0
0
0
3,933
0.343944
4f8d86e6a28fdb9feabc081905b63e6018146084
5,829
py
Python
pymontecarlo_gui/results/base.py
pymontecarlo/pymontecarlo-gui
1b3c37d4b634a85c63f23d27ea8bd79bf5a43a2f
[ "Apache-2.0" ]
null
null
null
pymontecarlo_gui/results/base.py
pymontecarlo/pymontecarlo-gui
1b3c37d4b634a85c63f23d27ea8bd79bf5a43a2f
[ "Apache-2.0" ]
2
2016-05-16T10:19:56.000Z
2021-12-29T15:16:20.000Z
pymontecarlo_gui/results/base.py
pymontecarlo/pymontecarlo-gui
1b3c37d4b634a85c63f23d27ea8bd79bf5a43a2f
[ "Apache-2.0" ]
null
null
null
"""""" # Standard library modules. import csv import io import functools # Third party modules. from qtpy import QtCore, QtGui, QtWidgets, QtWebEngineWidgets import xlsxwriter # Local modules. from pymontecarlo_gui.settings import SettingsBasedField from pymontecarlo_gui.widgets.dialog import ExecutionProgressDialog...
29
80
0.635615
5,387
0.924172
0
0
0
0
0
0
462
0.079259
4f8dc869ef1dc9d22cc9f3f4842b852a13377f7b
14,586
py
Python
tests/test.py
rfsaliev/light-model-transformer
550a357db8f0c6765328cd42d312fa1be62eae91
[ "Apache-2.0" ]
67
2018-08-13T02:57:35.000Z
2021-09-20T05:47:46.000Z
tests/test.py
Mengjintao/light-model-transformer
9e0c7d5c3ec4042d30e6d8ee67a9c856837573c8
[ "Apache-2.0" ]
3
2018-08-14T05:54:10.000Z
2019-09-06T20:50:02.000Z
tests/test.py
Mengjintao/light-model-transformer
9e0c7d5c3ec4042d30e6d8ee67a9c856837573c8
[ "Apache-2.0" ]
18
2018-08-13T03:02:00.000Z
2021-12-10T01:57:28.000Z
# -*- coding: UTF-8 -*- import os import sys import subprocess import argparse import re import configparser import logging import copy import psutil if sys.version_info[0] < 3: import struct import tensorflow as tf from tensorflow.core.framework import graph_pb2 # level=logging.INFO only logging.debug info,leve...
36.648241
205
0.627794
804
0.055121
0
0
0
0
0
0
4,358
0.29878
4f8dd0d57f577449e61da2e80c2e713182dfefec
3,912
py
Python
tests/test_jenkins.py
lakiyi/aiojenkins
12bd43c6d79be664855a011fa86aedc735db307b
[ "MIT" ]
19
2020-04-26T21:45:21.000Z
2022-03-07T16:13:12.000Z
tests/test_jenkins.py
lakiyi/aiojenkins
12bd43c6d79be664855a011fa86aedc735db307b
[ "MIT" ]
24
2020-04-23T20:05:10.000Z
2021-12-03T22:39:22.000Z
tests/test_jenkins.py
lakiyi/aiojenkins
12bd43c6d79be664855a011fa86aedc735db307b
[ "MIT" ]
5
2020-08-05T11:04:46.000Z
2022-01-10T01:45:43.000Z
import asyncio import time from collections import namedtuple from http import HTTPStatus import pytest from aiojenkins.exceptions import JenkinsError from aiojenkins.jenkins import Jenkins from tests import CreateJob, get_host, get_login, get_password, is_ci_server @pytest.mark.asyncio async def test_invalid_host...
25.568627
79
0.676636
0
0
0
0
3,357
0.858129
3,189
0.815184
350
0.089468
4f8de99ba5448f45940e47db59549a0a5e04b962
1,790
py
Python
api.py
hale6666/drink-cli
e10b4a2ecba09c53ef3a34b0bd9d60938ae434d0
[ "MIT" ]
null
null
null
api.py
hale6666/drink-cli
e10b4a2ecba09c53ef3a34b0bd9d60938ae434d0
[ "MIT" ]
null
null
null
api.py
hale6666/drink-cli
e10b4a2ecba09c53ef3a34b0bd9d60938ae434d0
[ "MIT" ]
null
null
null
import requests import json with open("api.key") as f: API_KEY = f.read().strip() """ This is for security online, so the API key is not publicized. """ f.close() url='https://webdrink.csh.rit.edu/api/index.php' def test(): """ This is not usually called, other than for testing the API. ...
26.716418
93
0.591061
0
0
0
0
0
0
0
0
668
0.373184
4f8e402da6a278939229244bc051662a74bdbb7f
1,099
py
Python
app/main/views.py
jfairf01/OrgoWebsite
62f25faa1cc174f91377a281e1cea1dd898b0b30
[ "MIT" ]
null
null
null
app/main/views.py
jfairf01/OrgoWebsite
62f25faa1cc174f91377a281e1cea1dd898b0b30
[ "MIT" ]
null
null
null
app/main/views.py
jfairf01/OrgoWebsite
62f25faa1cc174f91377a281e1cea1dd898b0b30
[ "MIT" ]
null
null
null
from flask import render_template, jsonify from sqlalchemy import func from . import main from .. import db from ..models import User, HighScore @main.route('/highScore') def highScore(): highScore = HighScore.query.order_by(HighScore.username).first() if highScore is None: return jsonify(username="No...
28.921053
80
0.743403
0
0
0
0
941
0.856233
0
0
178
0.161965
4f8f2fcef7a9b8ab49ddc25206ab33968b97d1cd
938
py
Python
src/python/rodney/misc.py
mesnardo/petibm-rollingpitching
39f7ed9b88973727bed6955e31d99754d7627c9f
[ "BSD-3-Clause" ]
2
2021-09-06T03:37:06.000Z
2021-12-01T02:39:13.000Z
src/python/rodney/misc.py
mesnardo/petibm-rollingpitching
39f7ed9b88973727bed6955e31d99754d7627c9f
[ "BSD-3-Clause" ]
3
2020-03-30T21:52:01.000Z
2021-07-11T13:11:35.000Z
src/python/rodney/misc.py
mesnardo/petibm-rollingpitching
39f7ed9b88973727bed6955e31d99754d7627c9f
[ "BSD-3-Clause" ]
4
2021-02-22T21:54:16.000Z
2022-01-18T18:39:34.000Z
"""Miscellaneous helper functions.""" import argparse def parse_command_line(): """Parse the command-line options.""" formatter_class = argparse.ArgumentDefaultsHelpFormatter descr = 'Generic command-line parser for the rolling-piching application.' parser = argparse.ArgumentParser(description=descr,...
42.636364
78
0.60661
0
0
0
0
0
0
0
0
365
0.389126
4f900b835f7f2809af5aeab94956f59503ab79fe
2,534
py
Python
tests/test_lime.py
dianna-ai/dianna
88bcaec001e640c35e5e1e08517ef1624fd661cb
[ "Apache-2.0" ]
9
2021-11-16T09:53:47.000Z
2022-03-02T13:28:53.000Z
tests/test_lime.py
dianna-ai/dianna
88bcaec001e640c35e5e1e08517ef1624fd661cb
[ "Apache-2.0" ]
340
2021-03-03T12:55:37.000Z
2022-03-31T13:53:44.000Z
tests/test_lime.py
dianna-ai/dianna
88bcaec001e640c35e5e1e08517ef1624fd661cb
[ "Apache-2.0" ]
5
2021-08-19T08:14:35.000Z
2022-03-17T21:12:46.000Z
from unittest import TestCase import numpy as np import dianna import dianna.visualization from dianna.methods import LIME from tests.test_onnx_runner import generate_data from tests.utils import ModelRunner from tests.utils import run_model class LimeOnImages(TestCase): def test_lime_function(self): np....
39.59375
130
0.685478
1,490
0.588003
0
0
0
0
0
0
393
0.155091
4f90480ab176667d12cd4cc6901cb752aa1d6d1f
2,600
py
Python
pyUnicodeSteganography/__init__.py
bunnylab/pyUnicodeSteganography
4a0e0cdedfa5c96b8a5fea8921881123a7548924
[ "WTFPL" ]
2
2021-12-18T02:41:40.000Z
2022-03-14T22:48:49.000Z
pyUnicodeSteganography/__init__.py
bunnylab/pyUnicodeSteganography
4a0e0cdedfa5c96b8a5fea8921881123a7548924
[ "WTFPL" ]
null
null
null
pyUnicodeSteganography/__init__.py
bunnylab/pyUnicodeSteganography
4a0e0cdedfa5c96b8a5fea8921881123a7548924
[ "WTFPL" ]
null
null
null
import re import pyUnicodeSteganography.zerowidth as zerowidth import pyUnicodeSteganography.lookalikes as lookalikes import pyUnicodeSteganography.snow as snow import pyUnicodeSteganography.emoji as emoji from pyUnicodeSteganography.zerowidth import zwc_4 def encode(unencoded_string, msg, method="zw", binary=False, ...
33.333333
103
0.651154
0
0
0
0
0
0
0
0
495
0.190385
4f904ef1dc73b23f3b9aba76a41b6b2cd535196b
6,500
py
Python
landlab/components/transport_length_diffusion/tests/test_tl_hill_diff.py
saraahsimon/landlab
1cf809b685efbccaaa149b5899a600c3ccedf30f
[ "MIT" ]
null
null
null
landlab/components/transport_length_diffusion/tests/test_tl_hill_diff.py
saraahsimon/landlab
1cf809b685efbccaaa149b5899a600c3ccedf30f
[ "MIT" ]
null
null
null
landlab/components/transport_length_diffusion/tests/test_tl_hill_diff.py
saraahsimon/landlab
1cf809b685efbccaaa149b5899a600c3ccedf30f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Sep 21 16:52:10 2017 @author: margauxmouchene """ import numpy as np import pytest from numpy.testing import assert_almost_equal from landlab import RasterModelGrid from landlab.components import ( FlowAccumulator, FlowDirectorSteepest, Tr...
20.249221
80
0.365231
0
0
0
0
0
0
0
0
760
0.116923
4f90780c2a2a1ba5b699d89bbb0798c1c6453c81
1,361
py
Python
backend/app.py
HalmonLui/square-hackathon
62d5be7a229f9e39e27a546c164facd779d28aa4
[ "MIT" ]
3
2020-06-13T02:47:29.000Z
2020-06-20T17:34:15.000Z
backend/app.py
HalmonLui/square-hackathon
62d5be7a229f9e39e27a546c164facd779d28aa4
[ "MIT" ]
2
2020-06-14T20:29:26.000Z
2020-06-14T20:29:34.000Z
backend/app.py
HalmonLui/square-hackathon
62d5be7a229f9e39e27a546c164facd779d28aa4
[ "MIT" ]
1
2020-09-04T01:45:39.000Z
2020-09-04T01:45:39.000Z
# import app from flask import Flask, render_template, make_response, send_file from flask_cors import CORS # import custom helpers from maplib import generate_embed import loyaltylib as ll app = Flask(__name__) CORS(app) # import declared routes import frontenddata @app.route('/ll') def llfn(): ll.create_loya...
24.303571
66
0.653196
0
0
0
0
658
0.483468
0
0
645
0.473916
4f90a023a910c225c34fb968b47953ace924c78b
2,652
py
Python
pytorch_mask_rcnn/visualize.py
zimonitrome/PyTorch-Simple-MaskRCNN
8e8ff3072331c1df5149964a9787817ed0cf6477
[ "MIT" ]
null
null
null
pytorch_mask_rcnn/visualize.py
zimonitrome/PyTorch-Simple-MaskRCNN
8e8ff3072331c1df5149964a9787817ed0cf6477
[ "MIT" ]
null
null
null
pytorch_mask_rcnn/visualize.py
zimonitrome/PyTorch-Simple-MaskRCNN
8e8ff3072331c1df5149964a9787817ed0cf6477
[ "MIT" ]
null
null
null
import torch import torch.nn.functional as F try: import matplotlib.pyplot as plt except ImportError: pass def factor_getter(n, base): base = base * 0.8 ** (n // 6) i = n % 6 if i < 3: f = [0, 0, 0] f[i] = base else: base /= 2 f = [base, base, base] f[i ...
31.951807
106
0.501508
0
0
0
0
0
0
0
0
197
0.074284
4f9120612f328e8baf028521cfe58288d762c155
134
py
Python
hec_gnn/single_model/__init__.py
zlinaf/PowerGear
51ab67a7e2a2f4833de5196bb8aac57eaf77db69
[ "MIT" ]
8
2022-03-11T03:29:15.000Z
2022-03-27T07:39:48.000Z
hec_gnn/single_model/__init__.py
zlinaf/PowerGear
51ab67a7e2a2f4833de5196bb8aac57eaf77db69
[ "MIT" ]
null
null
null
hec_gnn/single_model/__init__.py
zlinaf/PowerGear
51ab67a7e2a2f4833de5196bb8aac57eaf77db69
[ "MIT" ]
3
2022-03-11T02:30:24.000Z
2022-03-11T02:35:26.000Z
import sys import os ROOT_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) sys.path.append(ROOT_DIR)
33.5
87
0.791045
0
0
0
0
0
0
0
0
0
0
4f912920b3cf2a5552ceadf14640e9d27357ffce
65
py
Python
test/Task/ImageSequence/__init__.py
paulondc/chilopoda
046dbb0c1b4ff20ea5f2e1679f8d89f3089b6aa4
[ "MIT" ]
2
2019-09-24T18:56:27.000Z
2021-02-07T04:58:49.000Z
test/Task/ImageSequence/__init__.py
paulondc/kombi
046dbb0c1b4ff20ea5f2e1679f8d89f3089b6aa4
[ "MIT" ]
20
2019-02-16T04:21:13.000Z
2019-03-09T21:21:21.000Z
test/Task/ImageSequence/__init__.py
paulondc/kombi
046dbb0c1b4ff20ea5f2e1679f8d89f3089b6aa4
[ "MIT" ]
3
2019-11-15T05:16:32.000Z
2021-09-28T21:28:29.000Z
from .SequenceThumbnailTaskTest import SequenceThumbnailTaskTest
32.5
64
0.923077
0
0
0
0
0
0
0
0
0
0
4f926892b5144ce9012c8e3193223c3bccd78877
2,898
py
Python
flax/tests/geometry_test.py
eevee/flax
5b4f310c0f980cbc2c1de3a7e74edf1c8f292702
[ "MIT" ]
47
2015-01-08T09:16:47.000Z
2021-11-08T11:53:09.000Z
flax/tests/geometry_test.py
eevee/flax
5b4f310c0f980cbc2c1de3a7e74edf1c8f292702
[ "MIT" ]
3
2015-03-01T19:44:53.000Z
2016-03-04T04:10:28.000Z
flax/tests/geometry_test.py
eevee/flax
5b4f310c0f980cbc2c1de3a7e74edf1c8f292702
[ "MIT" ]
9
2015-03-02T06:55:42.000Z
2021-11-03T16:48:47.000Z
from flax.geometry import Blob, Point, Rectangle, Size, Span def test_blob_create(): rect = Rectangle(origin=Point(0, 0), size=Size(5, 5)) blob = Blob.from_rectangle(rect) assert blob.area == rect.area assert blob.height == rect.height def test_blob_math_disjoint(): # These rectangles look like...
25.421053
60
0.6049
0
0
0
0
0
0
0
0
203
0.070048
4f926b4a8eb11004ae116e00ec4924740a1b7257
224
py
Python
generators/UGATIT/dataset/day2rain/txt_gen.py
JW9MsjwjnpdRLFw/RMT
a877fd78639a8d4c534d0373b9d0ad023e0fa2dd
[ "MIT" ]
null
null
null
generators/UGATIT/dataset/day2rain/txt_gen.py
JW9MsjwjnpdRLFw/RMT
a877fd78639a8d4c534d0373b9d0ad023e0fa2dd
[ "MIT" ]
null
null
null
generators/UGATIT/dataset/day2rain/txt_gen.py
JW9MsjwjnpdRLFw/RMT
a877fd78639a8d4c534d0373b9d0ad023e0fa2dd
[ "MIT" ]
3
2021-01-25T02:44:23.000Z
2021-04-09T13:25:57.000Z
import os dir = ['trainA', 'trainB', 'testA', 'testB'] for d in dir: img_names = os.listdir(d) f = open('list_' + d + '.txt', "w") for img in img_names: f.write('./' + img + '\n') # print(img_names)
22.4
44
0.522321
0
0
0
0
0
0
0
0
72
0.321429
4f934a58ff2ca49d71df3afac1a02ffb913fa343
260
py
Python
resources/libExamples/python_class/reader1.py
andy897221/Proof-of-Play-Flow-Demo
018ec382801f1363711b7680e728535a2ac94d26
[ "MIT" ]
null
null
null
resources/libExamples/python_class/reader1.py
andy897221/Proof-of-Play-Flow-Demo
018ec382801f1363711b7680e728535a2ac94d26
[ "MIT" ]
null
null
null
resources/libExamples/python_class/reader1.py
andy897221/Proof-of-Play-Flow-Demo
018ec382801f1363711b7680e728535a2ac94d26
[ "MIT" ]
null
null
null
import time from concurrent.futures import ThreadPoolExecutor import read2 import data_class executor = ThreadPoolExecutor(1) executor.submit(read2.test) print(data_class.data.a) data_class.data.a = "reader 1 received!" time.sleep(3) print(data_class.data.a)
21.666667
49
0.815385
0
0
0
0
0
0
0
0
20
0.076923
4f94469aa70e6bd1234bc19b4b98cb6d67b1b6d5
2,990
py
Python
slowfast/datasets/utils.py
serre-lab/pred_gn
437034687a561e72bf013dc295454da239748044
[ "Apache-2.0" ]
null
null
null
slowfast/datasets/utils.py
serre-lab/pred_gn
437034687a561e72bf013dc295454da239748044
[ "Apache-2.0" ]
null
null
null
slowfast/datasets/utils.py
serre-lab/pred_gn
437034687a561e72bf013dc295454da239748044
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import logging import numpy as np import time import torch import cv2 logger = logging.getLogger(__name__) def retry_load_images(image_paths, retry=10, backend="pytorch"): """ This function is to load images with support of retrying for failed load. Args: image_paths (li...
31.473684
80
0.607692
0
0
0
0
0
0
0
0
1,540
0.51505
4f96c33c8a6968237aa27de63e2f0f42021a110e
1,437
py
Python
malleus/client/service/call_service.py
joelgerard/malleus
763850ef270a449829b89a998cdce8febf5020ef
[ "Apache-2.0" ]
null
null
null
malleus/client/service/call_service.py
joelgerard/malleus
763850ef270a449829b89a998cdce8febf5020ef
[ "Apache-2.0" ]
2
2021-02-08T20:22:50.000Z
2021-06-01T22:07:40.000Z
malleus/client/service/call_service.py
joelgerard/malleus
763850ef270a449829b89a998cdce8febf5020ef
[ "Apache-2.0" ]
null
null
null
import config from malleus.api.service.protos.bench_service_pb2 import BenchRequest #from malleus.api.service.protos.bench_service_pb2 import BenchRequest.Datasource from malleus.api.domain.timer import Timer import grpc from malleus.api.service.protos.bench_service_pb2 import BenchRequest import malleus.api.service.p...
37.815789
82
0.695894
1,060
0.737648
0
0
0
0
0
0
135
0.093946
4f9759e43dd9c4a722e982e34e894b89c7ce75b3
1,999
py
Python
resolwe_bio/tests/workflows/test_chemut.py
gregorjerse/resolwe-bio
80f1e354cf0014a1eeff00acc112c622a2a044a9
[ "Apache-2.0" ]
12
2015-12-07T18:29:27.000Z
2022-03-16T08:00:18.000Z
resolwe_bio/tests/workflows/test_chemut.py
gregorjerse/resolwe-bio
80f1e354cf0014a1eeff00acc112c622a2a044a9
[ "Apache-2.0" ]
480
2015-11-20T21:46:43.000Z
2022-03-28T12:40:57.000Z
resolwe_bio/tests/workflows/test_chemut.py
gregorjerse/resolwe-bio
80f1e354cf0014a1eeff00acc112c622a2a044a9
[ "Apache-2.0" ]
45
2015-11-19T14:54:07.000Z
2022-02-13T21:36:50.000Z
from resolwe.flow.models import Data from resolwe.test import tag_process from resolwe_bio.utils.filter import filter_vcf_variable from resolwe_bio.utils.test import BioProcessTestCase class CheMutWorkflowTestCase(BioProcessTestCase): @tag_process("workflow-chemut") def test_chemut_workflow(self): wi...
35.070175
81
0.568284
1,810
0.905453
0
0
1,756
0.878439
0
0
502
0.251126
4f98c653568190ba3d9757f9946ea9b828f77543
186
py
Python
code/src/scripts/pause.py
nuvla/job-engine
58d42bd24d8dd2c6e28541c08df1455c9ac909f6
[ "Apache-2.0" ]
3
2019-04-27T10:36:21.000Z
2019-04-29T12:41:57.000Z
code/src/scripts/pause.py
nuvla/job-engine
58d42bd24d8dd2c6e28541c08df1455c9ac909f6
[ "Apache-2.0" ]
131
2019-02-13T06:00:49.000Z
2022-03-29T15:06:03.000Z
code/src/scripts/pause.py
nuvla/job-engine
58d42bd24d8dd2c6e28541c08df1455c9ac909f6
[ "Apache-2.0" ]
1
2020-12-03T11:35:21.000Z
2020-12-03T11:35:21.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import docker import socket docker_client = docker.from_env() myself = docker_client.containers.get(socket.gethostname()) myself.pause()
16.909091
59
0.731183
0
0
0
0
0
0
0
0
44
0.236559
4f98fc6e974de77141b6fbb73e66badbc6f28920
3,282
py
Python
scripts/parchg.py
Vevn/ENVISIoN
d0e48a5ec38ed95375f632eafdc5814415f0f570
[ "BSD-2-Clause" ]
null
null
null
scripts/parchg.py
Vevn/ENVISIoN
d0e48a5ec38ed95375f632eafdc5814415f0f570
[ "BSD-2-Clause" ]
null
null
null
scripts/parchg.py
Vevn/ENVISIoN
d0e48a5ec38ed95375f632eafdc5814415f0f570
[ "BSD-2-Clause" ]
1
2020-05-15T14:52:19.000Z
2020-05-15T14:52:19.000Z
# ENVISIoN # # Copyright (c) 2018 Jesper Ericsson # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list o...
42.623377
130
0.763254
0
0
0
0
0
0
0
0
2,364
0.720293
4f99110a6e3f66f4ccceeec3bdd358ee7d2b0212
75
py
Python
test/hello64_patch_search.py
Nicholas1126/patchkit
290f61440abdcb8a334c0823326c0bc4e110059e
[ "MIT" ]
null
null
null
test/hello64_patch_search.py
Nicholas1126/patchkit
290f61440abdcb8a334c0823326c0bc4e110059e
[ "MIT" ]
null
null
null
test/hello64_patch_search.py
Nicholas1126/patchkit
290f61440abdcb8a334c0823326c0bc4e110059e
[ "MIT" ]
null
null
null
def search_add(pt): add_addr = pt.search('add') print hex(add_addr)
25
31
0.666667
0
0
0
0
0
0
0
0
5
0.066667
4f997b4422654e8ded613b50854c6295cfbecb26
2,437
py
Python
functions/sentim-preprocess/main.py
gipfelen/Sentiment-Analysis
f852f9887310cdff90e115cc140a2f8ae3618087
[ "MIT" ]
null
null
null
functions/sentim-preprocess/main.py
gipfelen/Sentiment-Analysis
f852f9887310cdff90e115cc140a2f8ae3618087
[ "MIT" ]
1
2022-01-04T22:47:06.000Z
2022-01-04T22:47:06.000Z
functions/sentim-preprocess/main.py
gipfelen/Sentiment-Analysis
f852f9887310cdff90e115cc140a2f8ae3618087
[ "MIT" ]
3
2021-04-15T09:47:28.000Z
2021-12-06T21:05:28.000Z
import json import re ################################################## ########## Boilerplate wrapping code ############# ################################################## # IBM wrapper def main(args): res = sentim_preprocess(args) return res # AWS wrapper def lambda_handler(event, context): # read i...
28.337209
86
0.587197
0
0
0
0
0
0
0
0
949
0.389413
4f99c3f7f27703ec474adca4fd3ebb493a659631
3,981
py
Python
pixette/application.py
EXLER/pixette
0d31238fcb99ab8936f8b37c8c3987b70a326df9
[ "MIT" ]
null
null
null
pixette/application.py
EXLER/pixette
0d31238fcb99ab8936f8b37c8c3987b70a326df9
[ "MIT" ]
null
null
null
pixette/application.py
EXLER/pixette
0d31238fcb99ab8936f8b37c8c3987b70a326df9
[ "MIT" ]
null
null
null
import logging import os import pygame from pixette.scenes.admin import AdminScene from pixette.scenes.clock import ClockScene from pixette.scenes.currencies import CurrenciesScene from pixette.scenes.weather import WeatherScene class Application: def __init__(self, device, title, resolution, update_rate, debug...
30.860465
105
0.596333
3,747
0.941221
0
0
529
0.132881
0
0
469
0.11781
4f9a379d3ba99f8e8d48d7249f66b2636ad03135
880
py
Python
backend/app/security.py
Kwsswart/writter
851b887d0c8b0a9489f530065f0efe744bb149f3
[ "MIT" ]
null
null
null
backend/app/security.py
Kwsswart/writter
851b887d0c8b0a9489f530065f0efe744bb149f3
[ "MIT" ]
null
null
null
backend/app/security.py
Kwsswart/writter
851b887d0c8b0a9489f530065f0efe744bb149f3
[ "MIT" ]
null
null
null
import os from bcrypt import hashpw, gensalt, checkpw from base64 import b64encode from hashlib import sha256 from cryptography.fernet import Fernet e = Fernet(os.getenv("KEY")) def encpwd(pwd): """ Hash pwd provided """ return hashpw(b64encode(sha256(pwd.encode()).digest()), gensalt()).decode() ...
20
79
0.626136
0
0
0
0
0
0
0
0
277
0.314773
4f9ac2bfc1a1e513e9625d77e9d955a817e50301
427
py
Python
zfused_maya/zfused_maya/tool/animation/studiolibrary/examples/example3.py
zhoulh0322/zfused_outsource_old
3d20c1493c3cffd742b10a7db6e0b1f3bb374af8
[ "Apache-2.0" ]
1
2022-01-14T11:40:35.000Z
2022-01-14T11:40:35.000Z
zfused_maya/zfused_maya/tool/animation/studiolibrary/examples/example3.py
zhoulh0322/zfused_outsource_old
3d20c1493c3cffd742b10a7db6e0b1f3bb374af8
[ "Apache-2.0" ]
null
null
null
zfused_maya/zfused_maya/tool/animation/studiolibrary/examples/example3.py
zhoulh0322/zfused_outsource_old
3d20c1493c3cffd742b10a7db6e0b1f3bb374af8
[ "Apache-2.0" ]
null
null
null
# An example for how to lock specific folders using the lockRegExp param import studiolibrary if __name__ == "__main__": # Use the studiolibrary.app context for creating a QApplication instance with studiolibrary.app(): # Lock all folders that contain the words "icon" & "Pixar" in the path ...
28.466667
79
0.711944
0
0
0
0
0
0
0
0
252
0.590164
4f9ca017d8993f316f0c7fd3c1640c6b4667a2cc
1,002
py
Python
djangae/contrib/googleauth/backends/base.py
sleepyjames/djangae
79a9e42c09c3be1189464870f008f8af7060bd9c
[ "BSD-3-Clause" ]
467
2015-01-02T22:35:37.000Z
2022-02-22T23:13:36.000Z
djangae/contrib/googleauth/backends/base.py
sleepyjames/djangae
79a9e42c09c3be1189464870f008f8af7060bd9c
[ "BSD-3-Clause" ]
743
2015-01-02T15:55:34.000Z
2021-01-29T09:43:19.000Z
djangae/contrib/googleauth/backends/base.py
sleepyjames/djangae
79a9e42c09c3be1189464870f008f8af7060bd9c
[ "BSD-3-Clause" ]
154
2015-01-01T17:05:59.000Z
2021-12-09T06:40:07.000Z
""" This is duplicated from Django 3.0 to avoid starting an import chain that ends up with ContentTypes which may not be installed in a Djangae project. """ class BaseBackend: def authenticate(self, request, **kwargs): return None @classmethod def can_authenticate(cls, request): ...
26.368421
66
0.636727
826
0.824351
0
0
204
0.203593
0
0
295
0.294411
4f9d958bf40e31e749c287f77979cfb2be9e5cee
396
py
Python
tests/cell_fabric/test_rect.py
mabrains/ALIGN-public
9a6c14310de13df369a8340f465911b629f15a3f
[ "BSD-3-Clause" ]
119
2019-05-14T18:44:34.000Z
2022-03-17T01:01:02.000Z
tests/cell_fabric/test_rect.py
mabrains/ALIGN-public
9a6c14310de13df369a8340f465911b629f15a3f
[ "BSD-3-Clause" ]
717
2019-04-03T15:36:35.000Z
2022-03-31T21:56:47.000Z
tests/cell_fabric/test_rect.py
mabrains/ALIGN-public
9a6c14310de13df369a8340f465911b629f15a3f
[ "BSD-3-Clause" ]
34
2019-04-01T21:21:27.000Z
2022-03-21T09:46:57.000Z
from align.cell_fabric.transformation import Rect def test_toList(): r = Rect( 0, 0, 1, 1) assert r.toList() == [0, 0, 1, 1] def test_canonical(): r = Rect( 1, 1, 0, 0) assert r.canonical().toList() == [0, 0, 1, 1] def test_repr(): r = Rect( 0, 0, 1, 1) assert r.__repr__() == "[0, 0, 1, 1...
24.75
49
0.517677
0
0
0
0
0
0
0
0
42
0.106061
4f9ee549c0660d61b100be39690bb3e9a1b75160
2,800
py
Python
CALCI PROGRAM TKINTER.py
Madmaxcoder2612/Programming-Codes
f70c06ed4a7892ed55673f66c1585370d3f1169f
[ "MIT" ]
null
null
null
CALCI PROGRAM TKINTER.py
Madmaxcoder2612/Programming-Codes
f70c06ed4a7892ed55673f66c1585370d3f1169f
[ "MIT" ]
null
null
null
CALCI PROGRAM TKINTER.py
Madmaxcoder2612/Programming-Codes
f70c06ed4a7892ed55673f66c1585370d3f1169f
[ "MIT" ]
null
null
null
# GUI Development using Tkinter import tkinter as tk app = tk.Tk() app.geometry('340x310') app.title("Calculator") entry = tk.Entry(app,text='0',font=('arial',20,'normal')) entry.place(x=20,y=15) def number(n): if n=="C": entry.delete(0,'end') elif n=="ans": k2 = entry.get() entry.delet...
51.851852
126
0.639286
0
0
0
0
0
0
0
0
443
0.158214
4fa0554d8bffe632c5f4057529ceb3127ce8caaf
12,538
py
Python
models.py
andreweskeclarke/rl_gyms
e4193180ae73b3410f006ba6f20300267d479054
[ "Apache-2.0" ]
null
null
null
models.py
andreweskeclarke/rl_gyms
e4193180ae73b3410f006ba6f20300267d479054
[ "Apache-2.0" ]
null
null
null
models.py
andreweskeclarke/rl_gyms
e4193180ae73b3410f006ba6f20300267d479054
[ "Apache-2.0" ]
null
null
null
import ipdb import math import numpy as np import tensorflow as tf # N_DIM_STATE = 4 # N_DIM_ACTIONS = 2 N_DIM_STATE = 210*160 N_DIM_ACTIONS = 9 def batch_norm_init(inits, size, name): return tf.Variable(inits * tf.ones([size]), name=name) def weight_init(shape, name): return tf.Variable(tf.random_normal(sha...
44.460993
123
0.56564
0
0
0
0
0
0
0
0
2,469
0.196921
4fa0f0b6da9530431d0a28bc79144ef0fdfe6ec0
12,808
py
Python
nuclino/api.py
Vanderhoof/PyNuclino
20aefaaa145f0afa15778b049d83be157e5a553b
[ "MIT" ]
1
2022-01-28T06:27:57.000Z
2022-01-28T06:27:57.000Z
nuclino/api.py
Vanderhoof/PyNuclino
20aefaaa145f0afa15778b049d83be157e5a553b
[ "MIT" ]
null
null
null
nuclino/api.py
Vanderhoof/PyNuclino
20aefaaa145f0afa15778b049d83be157e5a553b
[ "MIT" ]
null
null
null
import requests from typing import List from typing import Optional from typing import Union from ratelimit import limits from .utils import sleep_and_retry from .objects import NuclinoObject from .objects import get_loader BASE_URL = 'https://api.nuclino.com/v0' class NuclinoError(Exception): pass def joi...
31.469287
90
0.579169
12,442
0.970666
0
0
0
0
0
0
5,787
0.451474
4fa4042c8d50c736872f18bc6de82a9eeac26254
591
py
Python
apps/base/migrations/0056_auto_20190821_1628.py
gvizquel/pyerp
c859f7293cabd1003f79112463cee93ac89fccba
[ "MIT" ]
null
null
null
apps/base/migrations/0056_auto_20190821_1628.py
gvizquel/pyerp
c859f7293cabd1003f79112463cee93ac89fccba
[ "MIT" ]
11
2020-06-05T22:50:37.000Z
2022-02-10T09:05:56.000Z
apps/base/migrations/0056_auto_20190821_1628.py
gvizquel/pyerp
c859f7293cabd1003f79112463cee93ac89fccba
[ "MIT" ]
null
null
null
# Generated by Django 2.2.4 on 2019-08-21 20:28 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('base', '0055_pycron'), ] operations = [ migrations.AlterField( model_name='pycron', name='model_name', f...
24.625
85
0.588832
499
0.842905
0
0
0
0
0
0
136
0.22973
4fa4d1534b1e2c6e2ca72fcf0d2aa45f72c2bfdf
1,516
py
Python
tests/test_settings.py
abahnihi/kn-defaults
02517a76f14da8b519124af38a773a621b9a4041
[ "MIT" ]
2
2020-10-04T09:22:52.000Z
2020-11-18T15:37:22.000Z
tests/test_settings.py
abahnihi/kn-defaults
02517a76f14da8b519124af38a773a621b9a4041
[ "MIT" ]
2
2020-10-12T06:13:49.000Z
2020-11-18T15:37:05.000Z
tests/test_settings.py
abahnihi/kn-defaults
02517a76f14da8b519124af38a773a621b9a4041
[ "MIT" ]
1
2021-09-16T10:23:56.000Z
2021-09-16T10:23:56.000Z
import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = 'fake-key' INSTALLED_APPS = [ 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.admin', 'rav...
25.694915
70
0.674142
0
0
0
0
0
0
0
0
879
0.579815
4fa7c8aae2cd758336fcea63483f62b6c22958c0
135
py
Python
0/2/2752/2752.py
chr0m3/boj-codes
d71d0a22d0a3ae62c225f382442461275f56fe8f
[ "MIT" ]
3
2017-07-08T16:29:06.000Z
2020-07-20T00:17:45.000Z
0/2/2752/2752.py
chr0m3/boj-codes
d71d0a22d0a3ae62c225f382442461275f56fe8f
[ "MIT" ]
null
null
null
0/2/2752/2752.py
chr0m3/boj-codes
d71d0a22d0a3ae62c225f382442461275f56fe8f
[ "MIT" ]
2
2017-11-20T14:06:06.000Z
2020-07-20T00:17:47.000Z
numbers = list(map(int, input().split())).sort() numbers.sort() print(str(numbers[0]) + ' ' + str(numbers[1]) + ' ' + str(numbers[2]))
33.75
70
0.592593
0
0
0
0
0
0
0
0
6
0.044444
4fa960640ac080eae40140838421c34218db4f57
1,431
py
Python
examples/worker.py
denissmirnov/kiel
fa80aa1ccd790c0fbbd8cc46a72162195e1aed69
[ "Apache-2.0" ]
47
2016-02-23T18:32:55.000Z
2021-12-03T00:50:52.000Z
examples/worker.py
denissmirnov/kiel
fa80aa1ccd790c0fbbd8cc46a72162195e1aed69
[ "Apache-2.0" ]
21
2016-02-23T01:41:18.000Z
2020-10-27T21:09:32.000Z
examples/worker.py
denissmirnov/kiel
fa80aa1ccd790c0fbbd8cc46a72162195e1aed69
[ "Apache-2.0" ]
13
2016-05-18T06:16:48.000Z
2019-10-31T19:35:25.000Z
#!/usr/bin/env python import argparse import logging from tornado import gen, ioloop from kiel.clients import GroupedConsumer log = logging.getLogger() parser = argparse.ArgumentParser( description="Example grouped consumer that prints out messages it gets." ) parser.add_argument( "brokers", type=lambda ...
19.60274
76
0.65269
0
0
207
0.144654
222
0.155136
0
0
294
0.205451
4faa95c6d247e311aedbaf9ff405c3309caa0c17
146
py
Python
glucose_app/glicemy/apps.py
luciano-s/glucose_app
f8b8d97f96bfbc5106fdce0f3de9694486b97f16
[ "MIT" ]
null
null
null
glucose_app/glicemy/apps.py
luciano-s/glucose_app
f8b8d97f96bfbc5106fdce0f3de9694486b97f16
[ "MIT" ]
null
null
null
glucose_app/glicemy/apps.py
luciano-s/glucose_app
f8b8d97f96bfbc5106fdce0f3de9694486b97f16
[ "MIT" ]
null
null
null
from django.apps import AppConfig class GlicemyConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'glicemy'
20.857143
56
0.760274
109
0.746575
0
0
0
0
0
0
40
0.273973
4fae4d9fb269656577ad00e357001a2996f802a4
7,480
py
Python
pycancer.py
WORD559/pycancer
355d09e5f8c347e467b72279c51182aee1a9564f
[ "MIT" ]
null
null
null
pycancer.py
WORD559/pycancer
355d09e5f8c347e467b72279c51182aee1a9564f
[ "MIT" ]
3
2021-09-08T01:04:59.000Z
2022-03-11T23:51:01.000Z
pycancer.py
WORD559/pycancer
355d09e5f8c347e467b72279c51182aee1a9564f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3.6 import math import time import os import pygame from pygame.locals import * from constants import * from sprites import Spinner class App(): def __init__(self,width,height,title="pygame window",icon=None): self.running = False self.size = (width,height) self.titl...
36.487805
164
0.60361
7,196
0.962032
0
0
0
0
0
0
1,266
0.169251
4faff66bcc8450a4ff6ceab6fbf57edf2800ad21
2,007
py
Python
shapes_and_text.py
UPstartDeveloper/open-cv-learning
fea0e6756ff50ef65601a3de36d503c9690e816e
[ "MIT" ]
null
null
null
shapes_and_text.py
UPstartDeveloper/open-cv-learning
fea0e6756ff50ef65601a3de36d503c9690e816e
[ "MIT" ]
null
null
null
shapes_and_text.py
UPstartDeveloper/open-cv-learning
fea0e6756ff50ef65601a3de36d503c9690e816e
[ "MIT" ]
null
null
null
import cv2 import numpy as np # Chapter 4 - How to Draw Shapes and Text on Images if __name__ == '__main__': # define an "image" only a matrix img = np.zeros((512, 512, 3), np.uint8) # print(img) # print the numbers making up the "image" in CLI # "Color" the whole image, by manipulating the matrix v...
28.671429
77
0.584953
0
0
0
0
0
0
0
0
1,637
0.815645
4fb045ff192d656ea573c38eeb8da1f72e35f93e
416
py
Python
mysite/myapp/migrations/0004_auto_20191219_1946.py
Niyy/monsterpedia
fa43286a49c5c6098c79c33f55af00a867a43da2
[ "MIT" ]
null
null
null
mysite/myapp/migrations/0004_auto_20191219_1946.py
Niyy/monsterpedia
fa43286a49c5c6098c79c33f55af00a867a43da2
[ "MIT" ]
null
null
null
mysite/myapp/migrations/0004_auto_20191219_1946.py
Niyy/monsterpedia
fa43286a49c5c6098c79c33f55af00a867a43da2
[ "MIT" ]
null
null
null
# Generated by Django 2.2.8 on 2019-12-19 19:46 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('myapp', '0003_auto_20191218_0740'), ] operations = [ migrations.AlterField( model_name='monster', name='monster_pict...
21.894737
72
0.598558
323
0.776442
0
0
0
0
0
0
129
0.310096
4fb0b3f6ba847c924951e836cc3ba121616356df
2,089
py
Python
src/data/caf/make_data.py
tiphaine/o2-base
9c70b0b6e1f63bf0f12411df64fcb7fa02ca754f
[ "MIT" ]
null
null
null
src/data/caf/make_data.py
tiphaine/o2-base
9c70b0b6e1f63bf0f12411df64fcb7fa02ca754f
[ "MIT" ]
2
2020-02-19T18:42:35.000Z
2020-02-19T18:44:16.000Z
src/data/caf/make_data.py
tiphaine/o2-base
9c70b0b6e1f63bf0f12411df64fcb7fa02ca754f
[ "MIT" ]
null
null
null
import pandas as pd from caf import source_config from utils import write_csv_file def _get_year(p): """Get year from string having the DD/MM/YEAR format.""" date_tokens = p['dtref'].split('/') if len(date_tokens) == 3: date_year = date_tokens[-1] else: date_year = None return dat...
34.245902
77
0.637626
0
0
0
0
0
0
0
0
593
0.283732
96c4a51ecf35e22dc9c831e47236365c612bb6e2
3,635
py
Python
draco/run.py
ngehlenborg/draco
e7e958d9494413e0578053359368b7918a0135de
[ "BSD-3-Clause" ]
null
null
null
draco/run.py
ngehlenborg/draco
e7e958d9494413e0578053359368b7918a0135de
[ "BSD-3-Clause" ]
null
null
null
draco/run.py
ngehlenborg/draco
e7e958d9494413e0578053359368b7918a0135de
[ "BSD-3-Clause" ]
null
null
null
''' Run constraint solver to complete spec. ''' import json import logging import os import subprocess import tempfile from typing import Dict, List, Tuple, Optional import clyngor from draco.spec import Query, Task logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__) DRACO_LP = ['define.lp...
30.291667
153
0.640165
0
0
0
0
0
0
0
0
854
0.234938
96c5fae37373ce25e688f3df204cf57572673e1e
53,086
py
Python
diptera_track_ui.py
jmmelis/DipteraTrack
1d267ccd4248635233147f2035b900a433dc4536
[ "MIT" ]
1
2019-06-14T10:19:19.000Z
2019-06-14T10:19:19.000Z
diptera_track_ui.py
jmmelis/DipteraTrack
1d267ccd4248635233147f2035b900a433dc4536
[ "MIT" ]
null
null
null
diptera_track_ui.py
jmmelis/DipteraTrack
1d267ccd4248635233147f2035b900a433dc4536
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'diptera_track.ui' # # Created by: PyQt5 UI code generator 5.9.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): def setupUi(self, MainWindow): Mai...
63.047506
118
0.714878
52,382
0.986738
0
0
0
0
0
0
6,319
0.119033
96c869993e67e90b938d23f96a94a64def202fe5
6,337
py
Python
orcid_service/tests/stubdata/work_single_409.py
nemanjamart/orcid-service
596973819b904ad28a9d84a773db09d5039bee26
[ "MIT" ]
1
2017-11-06T22:45:48.000Z
2017-11-06T22:45:48.000Z
orcid_service/tests/stubdata/work_single_409.py
nemanjamart/orcid-service
596973819b904ad28a9d84a773db09d5039bee26
[ "MIT" ]
31
2015-02-23T14:29:31.000Z
2021-03-10T14:59:52.000Z
orcid_service/tests/stubdata/work_single_409.py
nemanjamart/orcid-service
596973819b904ad28a9d84a773db09d5039bee26
[ "MIT" ]
10
2015-02-12T23:07:24.000Z
2022-01-04T19:00:20.000Z
data = { "publication-date": { "year": { "value": "2020"}, "month": {"value": "01"}}, "short-description": "With a central surface brightness of 29.3 mag arcsec, and half-light radius of r_half=3.1^{+0.9}_{-1.1} kpc, Andromeda XIX (And XIX) is an extremely diffuse satellite of Androm...
30.912195
208
0.372889
0
0
0
0
0
0
0
0
2,964
0.467729
96c88c858215a0c25dd7b0d7a56c86c6fc360ef4
263
py
Python
tests/test_day5.py
n1ckdm/advent-of-code-2020
913ea4cff29fa76df15c0c22616cc1eebb903490
[ "MIT" ]
1
2020-12-05T09:25:03.000Z
2020-12-05T09:25:03.000Z
tests/test_day5.py
n1ckdm/advent-of-code-2020
913ea4cff29fa76df15c0c22616cc1eebb903490
[ "MIT" ]
null
null
null
tests/test_day5.py
n1ckdm/advent-of-code-2020
913ea4cff29fa76df15c0c22616cc1eebb903490
[ "MIT" ]
null
null
null
from aoc_2020.day5 import part1, get_pos, part2 data = """BFFFBBFRRR FFFBBBFRRR BBFFBBFRLL """ def test_get_pos(): assert get_pos("FBFBBFFRLR") == (44, 5) def test_part1(): assert part1(data) == 820 def test_part2(): assert part2(data) is None
13.842105
47
0.680608
0
0
0
0
0
0
0
0
51
0.193916
96c8adb800760315ee27599c677403371d5d3acb
22,434
py
Python
python/util.py
spatialaudio/aes148-shelving-filter
a11de97d6be79c23ffc55084ca95d9da15f3e3eb
[ "MIT" ]
5
2020-06-04T12:28:10.000Z
2022-03-07T12:35:54.000Z
python/util.py
spatialaudio/aes148-shelving-filter
a11de97d6be79c23ffc55084ca95d9da15f3e3eb
[ "MIT" ]
null
null
null
python/util.py
spatialaudio/aes148-shelving-filter
a11de97d6be79c23ffc55084ca95d9da15f3e3eb
[ "MIT" ]
1
2020-11-18T06:19:37.000Z
2020-11-18T06:19:37.000Z
"""Shelving Filter Cascade with Adjustable Transition Slope and Bandwidth Frank Schultz, Nara Hahn, Sascha Spors In: Proc. of 148th AES Convention, Virtual Vienna, May 2020, Paper 10339 http://www.aes.org/e-lib/browse.cfm?elib=20756 """ import numpy as np from scipy.signal import tf2sos, freqs from matplotlib import r...
30.072386
130
0.585362
0
0
0
0
0
0
0
0
11,072
0.493537
96c928af19979ff24c55a99b28243be2add708ab
1,529
py
Python
Segment Tree Query II.py
RijuDasgupta9116/LintCode
4629a3857b2c57418b86a3b3a7180ecb15e763e3
[ "Apache-2.0" ]
321
2015-01-04T04:01:44.000Z
2022-03-20T13:21:55.000Z
Segment Tree Query II.py
leifoo/LintCode
2520762a1cfbd486081583136396a2b2cac6e4fb
[ "Apache-2.0" ]
1
2016-01-11T04:29:37.000Z
2016-01-11T04:29:37.000Z
Segment Tree Query II.py
leifoo/LintCode
2520762a1cfbd486081583136396a2b2cac6e4fb
[ "Apache-2.0" ]
114
2015-01-27T06:08:17.000Z
2022-03-23T03:58:11.000Z
""" For an array, we can build a SegmentTree for it, each node stores an extra attribute count to denote the number of elements in the the array which value is between interval start and end. (The array may not fully filled by elements) Design a query method with three parameters root, start and end, find the number o...
29.403846
119
0.576194
599
0.391759
0
0
0
0
0
0
1,120
0.732505
96ca626a4b0b422d3111b3bc01bab71f87bc23d8
944
py
Python
inferencia/util/reader/reader_factory.py
yuya-mochimaru-np/inferencia
e09f298d0a80672fc5bb9383e23c941290eff334
[ "Apache-2.0" ]
null
null
null
inferencia/util/reader/reader_factory.py
yuya-mochimaru-np/inferencia
e09f298d0a80672fc5bb9383e23c941290eff334
[ "Apache-2.0" ]
5
2021-07-25T23:19:29.000Z
2021-07-26T23:35:13.000Z
inferencia/util/reader/reader_factory.py
yuya-mochimaru-np/inferencia
e09f298d0a80672fc5bb9383e23c941290eff334
[ "Apache-2.0" ]
1
2021-09-18T12:06:13.000Z
2021-09-18T12:06:13.000Z
import os.path as osp from .reader.video_reader import VideoReader class ReaderFactory(): video_exts = [".mp4", ".avi", ".mov", ".MOV", ".mkv"] def create(target_input, target_fps): if osp.isfile(target_input): ext = osp.splitext(target_input)[1] if ext in ReaderFactory.video_...
30.451613
70
0.581568
874
0.925847
0
0
0
0
0
0
329
0.348517
96cee147c0593a95de8069b59d56dcb5797d1ec4
15,755
py
Python
src/utils.py
lubianat/complex_bot
e0ddabcc0487c52b14fb94950c5a812f0bdb2283
[ "MIT" ]
1
2021-10-06T00:21:10.000Z
2021-10-06T00:21:10.000Z
src/utils.py
lubianat/complex_bot
e0ddabcc0487c52b14fb94950c5a812f0bdb2283
[ "MIT" ]
14
2021-01-15T21:51:38.000Z
2021-11-10T10:08:22.000Z
src/utils.py
lubianat/complex_bot
e0ddabcc0487c52b14fb94950c5a812f0bdb2283
[ "MIT" ]
1
2021-01-18T10:32:56.000Z
2021-01-18T10:32:56.000Z
# Code modified from original by @jvfe (BSD2) # Copyright (c) 2020, jvfe # https://github.com/jvfe/wdt_contribs/tree/master/complex_portal/src import math import re from collections import defaultdict from ftplib import FTP from functools import lru_cache, reduce from time import gmtime, strftime import pandas as pd f...
32.551653
136
0.635227
3,761
0.238718
0
0
1,244
0.078959
0
0
5,276
0.334878
96d020593d682ed45dc1c5d9066ff6a5caf2f8fb
1,264
py
Python
tests/t_11_serial_test.py
llbxg/NIST-SP-800-22
7e82243643b62fdc07cbe5f40d540b0a16a4372a
[ "MIT" ]
null
null
null
tests/t_11_serial_test.py
llbxg/NIST-SP-800-22
7e82243643b62fdc07cbe5f40d540b0a16a4372a
[ "MIT" ]
null
null
null
tests/t_11_serial_test.py
llbxg/NIST-SP-800-22
7e82243643b62fdc07cbe5f40d540b0a16a4372a
[ "MIT" ]
null
null
null
import scipy.special as sc from tests.src.utils import split_list, __print # .11 Serial Test def serial_test(key, n, m=3, b_print=True): def compute(s,m): if m == 0: return 0 if m == 1: head = '' else : head = s[0:(m-1)] s = s + head v = [0]*2**m ...
25.795918
73
0.509494
0
0
0
0
0
0
0
0
82
0.064873
96d04e179f9f7c4579746fedd4c15e79b9631946
1,337
py
Python
views/routes.py
macwille/python-chat-app
95a5bc28c3daeb977e1a1c9e5801941389baeb21
[ "CC0-1.0" ]
1
2021-06-01T12:27:58.000Z
2021-06-01T12:27:58.000Z
views/routes.py
macwille/python-chat-app
95a5bc28c3daeb977e1a1c9e5801941389baeb21
[ "CC0-1.0" ]
null
null
null
views/routes.py
macwille/python-chat-app
95a5bc28c3daeb977e1a1c9e5801941389baeb21
[ "CC0-1.0" ]
null
null
null
from app import app from views import subject_routes, room_routes, user_routes, message_routes from models import user_service from flask import Flask, flash, render_template, request, session, abort from db import db # Rest of the routes are imported from /views @app.route("/") def index(): return render_templa...
21.918033
74
0.689604
0
0
0
0
662
0.495138
0
0
307
0.229619
96d1b8d26dc9756efe3d492e86bffbd382fb0866
2,082
py
Python
ievv_opensource/ievv_i18n_url/i18n_url_utils/i18n_urlpatterns.py
appressoas/ievv_opensource
63e87827952ddc8f6f86145b79478ef21d6a0990
[ "BSD-3-Clause" ]
null
null
null
ievv_opensource/ievv_i18n_url/i18n_url_utils/i18n_urlpatterns.py
appressoas/ievv_opensource
63e87827952ddc8f6f86145b79478ef21d6a0990
[ "BSD-3-Clause" ]
37
2015-10-26T09:14:12.000Z
2022-02-10T10:35:33.000Z
ievv_opensource/ievv_i18n_url/i18n_url_utils/i18n_urlpatterns.py
appressoas/ievv_opensource
63e87827952ddc8f6f86145b79478ef21d6a0990
[ "BSD-3-Clause" ]
1
2015-11-06T07:56:34.000Z
2015-11-06T07:56:34.000Z
import re from django.urls import path, URLResolver from django.conf import settings from ievv_opensource.ievv_i18n_url import active_i18n_url_translation from ievv_opensource.ievv_i18n_url.views import RedirectToLanguagecodeView # # Note: Basically copy and tuning from https://github.com/django/django/blob/1.11.29/...
28.916667
109
0.670509
924
0.443804
0
0
381
0.182997
0
0
567
0.272334
96d2afcdf9b53f37c987f04d16fd91b999a57d2d
2,818
py
Python
test_autocorrelation.py
jacob975/TATIRP
2d81fa280e039aa931c6f8456632a23ef123282a
[ "MIT" ]
null
null
null
test_autocorrelation.py
jacob975/TATIRP
2d81fa280e039aa931c6f8456632a23ef123282a
[ "MIT" ]
4
2017-08-22T03:15:22.000Z
2017-12-19T17:55:31.000Z
test_autocorrelation.py
jacob975/TATIRP
2d81fa280e039aa931c6f8456632a23ef123282a
[ "MIT" ]
null
null
null
#!/usr/bin/python ''' Program: This is a test program for autocorrelation Usage: test_autocorrelation.py Editor: Jacob975 20181127 ################################# update log ''' import numpy as np import time import matplotlib.pyplot as plt from uncertainties import unumpy, ufloat # Convert flux to mag...
28.755102
114
0.590845
0
0
0
0
0
0
0
0
858
0.304471
96d37afffd4e6e28f939d7f7417d5487bda9c877
8,617
py
Python
lambda/ecs-lifecycle-hook-launch.py
asilvas/ecs-cluster-manager
9c6cc28b0da047e66e4cb04c3e653fdd84614367
[ "Apache-2.0" ]
47
2019-02-14T01:52:15.000Z
2022-02-22T20:37:04.000Z
lambda/ecs-lifecycle-hook-launch.py
eshack94/ecs-cluster-manager
9c6cc28b0da047e66e4cb04c3e653fdd84614367
[ "Apache-2.0" ]
3
2019-04-30T18:35:18.000Z
2019-10-29T01:21:03.000Z
lambda/ecs-lifecycle-hook-launch.py
eshack94/ecs-cluster-manager
9c6cc28b0da047e66e4cb04c3e653fdd84614367
[ "Apache-2.0" ]
35
2019-01-30T14:54:18.000Z
2022-01-17T09:34:16.000Z
# Copyright 2018 Amazon.com, Inc. or its affiliates. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). # You may not use this file except in compliance with the License. # A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file ac...
36.512712
79
0.635952
0
0
0
0
0
0
0
0
4,015
0.465939
96d3857b0085dd30303fde36c9f088ee7b337a65
681
py
Python
leetcode/ag_107.py
baobei813214232/common-alglib
303e4edc5f7c1b5e9a2a6ebc4742d7bae61c5d31
[ "MIT" ]
4
2017-05-02T09:47:48.000Z
2019-05-01T06:26:26.000Z
leetcode/ag_107.py
xiaolongnk/Alglib
303e4edc5f7c1b5e9a2a6ebc4742d7bae61c5d31
[ "MIT" ]
null
null
null
leetcode/ag_107.py
xiaolongnk/Alglib
303e4edc5f7c1b5e9a2a6ebc4742d7bae61c5d31
[ "MIT" ]
1
2021-01-31T07:21:53.000Z
2021-01-31T07:21:53.000Z
from ojlib.TreeLib import * class Solution(object): def levelOrderBottom(self, root): """ :type root: TreeNode :rtype: List[List[int]] """ if not root: return [] def slu(root, level, ans): if not root: return [] if level >= len(ans...
23.482759
54
0.484581
527
0.773862
0
0
0
0
0
0
76
0.111601
96d45139aca244273384a51c530c63b4656ed83e
72
py
Python
tests/test_main.py
joaogcs/python-project-template
079f1606a474e155449ccd29da5970f571bf97a8
[ "MIT" ]
null
null
null
tests/test_main.py
joaogcs/python-project-template
079f1606a474e155449ccd29da5970f571bf97a8
[ "MIT" ]
null
null
null
tests/test_main.py
joaogcs/python-project-template
079f1606a474e155449ccd29da5970f571bf97a8
[ "MIT" ]
null
null
null
# This is a sample Python script. def test_print_hi(): assert True
14.4
33
0.708333
0
0
0
0
0
0
0
0
33
0.458333
96d4fa95c81cfe8edb8a039e4f400fd39027e05f
1,974
py
Python
products/api/api.py
Arvind-4/E-commerce-REST-API
ee6bf15f08590db99c423639db382f8c3fb3ab05
[ "MIT" ]
null
null
null
products/api/api.py
Arvind-4/E-commerce-REST-API
ee6bf15f08590db99c423639db382f8c3fb3ab05
[ "MIT" ]
null
null
null
products/api/api.py
Arvind-4/E-commerce-REST-API
ee6bf15f08590db99c423639db382f8c3fb3ab05
[ "MIT" ]
null
null
null
from django.shortcuts import render from rest_framework.generics import ( ListAPIView, RetrieveAPIView, ) from rest_framework.views import APIView from rest_framework.response import Response from django.core import serializers from django.http import Http404 from rest_framework.permissions import AllowAny fro...
29.029412
65
0.692503
485
0.245694
0
0
553
0.280142
0
0
936
0.474164
96d5b41db8b7fcb7f3b93add103d8acc7fa5230e
1,067
py
Python
main.py
adelhult/please-plot
dd47b4c5ce9b9a0d69ed0b36f11e949ef08cb428
[ "MIT" ]
null
null
null
main.py
adelhult/please-plot
dd47b4c5ce9b9a0d69ed0b36f11e949ef08cb428
[ "MIT" ]
null
null
null
main.py
adelhult/please-plot
dd47b4c5ce9b9a0d69ed0b36f11e949ef08cb428
[ "MIT" ]
null
null
null
from traceback import print_exc from uuid import uuid4 from flask import Flask, request, send_from_directory from function_plot import * app = Flask(__name__) max_simultaneous_requests = 8 simultaneous_requests = 0 @app.route('/generate/') def generate(): global simultaneous_requests simultaneous_requests +...
26.675
88
0.670103
0
0
0
0
844
0.791003
0
0
120
0.112465
96d6269877deb16ea1414529d7a4c8eeec745fe2
758
py
Python
structmanager/optimization/genesis/utils.py
saullocastro/structmanager
01e9677f201c9ef577fdf8a15833be7e364441ab
[ "BSD-3-Clause" ]
1
2015-09-17T20:48:08.000Z
2015-09-17T20:48:08.000Z
structmanager/optimization/genesis/utils.py
saullocastro/structmanager
01e9677f201c9ef577fdf8a15833be7e364441ab
[ "BSD-3-Clause" ]
1
2019-01-09T20:31:17.000Z
2019-01-10T11:10:07.000Z
structmanager/optimization/genesis/utils.py
saullocastro/structmanager
01e9677f201c9ef577fdf8a15833be7e364441ab
[ "BSD-3-Clause" ]
1
2020-12-29T00:22:23.000Z
2020-12-29T00:22:23.000Z
def format_float(x, size=8, lr): """Format a float number Parameters ---------- x : float The float number. size : int, optional Desired size of the output string. lr : str ('<' or '>') Indicates if it should be left or right aligned. Returns ------- out : s...
22.294118
74
0.514512
0
0
0
0
0
0
0
0
397
0.523747
96d74d2ff0dc3fdfbc59821572994b8df28d1d63
5,412
py
Python
mtwaffle/mtsite.py
leomiquelutti/mtwaffle
99f769a5796c27adf0dd7e8c30fecadec4fa9581
[ "MIT" ]
null
null
null
mtwaffle/mtsite.py
leomiquelutti/mtwaffle
99f769a5796c27adf0dd7e8c30fecadec4fa9581
[ "MIT" ]
null
null
null
mtwaffle/mtsite.py
leomiquelutti/mtwaffle
99f769a5796c27adf0dd7e8c30fecadec4fa9581
[ "MIT" ]
null
null
null
import inspect import sys import numpy as np import attrdict from mtwaffle import graphs from mtwaffle import mt class Site(attrdict.AttrDict): index_map = { 'xx': [0, 0], 'xy': [0, 1], 'yx': [1, 0], 'yy': [1, 1] } EXCLUDED_CALLABLES = ('between_freqs', ) def __in...
33.825
99
0.543052
5,294
0.978197
0
0
134
0.02476
0
0
1,070
0.197709
96d7d97e9464432987e79cd5bc37343800b4edcd
2,186
py
Python
Testing/evaluate.py
codedecde/WordEmbeddings
84e6cd5424b74da6e889dd1b6ab7a6c5df9432d9
[ "MIT" ]
2
2018-09-19T01:37:31.000Z
2019-09-22T02:45:09.000Z
Testing/evaluate.py
codedecde/WordEmbeddings
84e6cd5424b74da6e889dd1b6ab7a6c5df9432d9
[ "MIT" ]
null
null
null
Testing/evaluate.py
codedecde/WordEmbeddings
84e6cd5424b74da6e889dd1b6ab7a6c5df9432d9
[ "MIT" ]
null
null
null
import numpy as np import heapq def cosine(x, y): eps = 1e-10 return np.dot(x, y) / np.sqrt((np.dot(x, x) * np.dot(y, y)) + eps) def get_nearest_k(word, vocab, vocab_matrix, k=4, return_score=False): k_nearest_neighbors = [] vector_word = vocab_matrix[vocab[word]] for w in vocab: if w ==...
37.689655
108
0.641354
0
0
0
0
0
0
0
0
0
0
96d86338e0559532f2558c6914fd242a57096663
239
py
Python
src/chapter3/exercise1.py
group13bse1/BSE-2021
edd715d06696e5993c2a5b458e31bd8b87f67ded
[ "MIT" ]
null
null
null
src/chapter3/exercise1.py
group13bse1/BSE-2021
edd715d06696e5993c2a5b458e31bd8b87f67ded
[ "MIT" ]
null
null
null
src/chapter3/exercise1.py
group13bse1/BSE-2021
edd715d06696e5993c2a5b458e31bd8b87f67ded
[ "MIT" ]
null
null
null
hours = input('Enter Hours \n') rate = input('Enter Rate\n') hours = int(hours) rate = float(rate) if (hours <= 40): pay = rate*hours else: extra_time = hours - 40 pay = (rate*hours) + ((rate*extra_time)/2) print('Pay: ', pay)
21.727273
46
0.610879
0
0
0
0
0
0
0
0
37
0.154812
96d87afa9be08112d9a71a5802531bd5f19ae363
415
py
Python
hello.py
nickstenning/hello-pyramid
d01e8f71b2b9f691b05d1c1f50c0a5aa3d416b6e
[ "MIT" ]
1
2016-12-15T19:01:05.000Z
2016-12-15T19:01:05.000Z
hello.py
nickstenning/hello-pyramid
d01e8f71b2b9f691b05d1c1f50c0a5aa3d416b6e
[ "MIT" ]
null
null
null
hello.py
nickstenning/hello-pyramid
d01e8f71b2b9f691b05d1c1f50c0a5aa3d416b6e
[ "MIT" ]
null
null
null
from pyramid.config import Configurator from pyramid.view import view_config @view_config(route_name='index', renderer='templates/index.html.jinja2') def index(request): return {} def create_app(): config = Configurator() config.include('pyramid_jinja2') config.add_route('index', '/') config.add...
24.411765
72
0.722892
0
0
0
0
106
0.255422
0
0
78
0.187952
96d961e7c4273593f91da5aa4b4a9f9e0753b755
2,836
py
Python
src/pytheas/tasks/schema.py
dcronkite/pytheas
3cdd6a21bda488e762931cbf5975964d5e574abd
[ "MIT" ]
null
null
null
src/pytheas/tasks/schema.py
dcronkite/pytheas
3cdd6a21bda488e762931cbf5975964d5e574abd
[ "MIT" ]
null
null
null
src/pytheas/tasks/schema.py
dcronkite/pytheas
3cdd6a21bda488e762931cbf5975964d5e574abd
[ "MIT" ]
null
null
null
def get_schema(): return { 'type': 'object', 'properties': { 'connections': { 'type': 'array', 'items': { 'type': 'object', 'properties': { 'name': {'type': 'string'}, ...
41.705882
108
0.322285
0
0
0
0
0
0
0
0
1,189
0.419252
96db45847d6f57ad072a49bd80261093667430ad
6,722
py
Python
src/autobridge/Floorplan/LegalizeFloorplan.py
mfkiwl/AutoBridge
1f428c271d2e338f39ea7478d81c66636c419670
[ "MIT" ]
null
null
null
src/autobridge/Floorplan/LegalizeFloorplan.py
mfkiwl/AutoBridge
1f428c271d2e338f39ea7478d81c66636c419670
[ "MIT" ]
null
null
null
src/autobridge/Floorplan/LegalizeFloorplan.py
mfkiwl/AutoBridge
1f428c271d2e338f39ea7478d81c66636c419670
[ "MIT" ]
null
null
null
import logging from collections import defaultdict from typing import Dict, List, Tuple, Optional from mip import Model, minimize, BINARY, xsum, OptimizationStatus, Var from autobridge.Floorplan.Utilities import * from autobridge.Opt.DataflowGraph import Vertex from autobridge.Opt.Slot import Slot from autobridge.Opt....
29.875556
137
0.705296
0
0
0
0
0
0
0
0
1,353
0.201279
96dcb20e01404e4765e91a644c54a3f39200919c
4,823
py
Python
tests/unit/spanner_dbapi/test_connect.py
larkee/python-spanner
cbb4ee3eca9ac878b4f3cd78cfcfe8fc1acb86f9
[ "Apache-2.0" ]
null
null
null
tests/unit/spanner_dbapi/test_connect.py
larkee/python-spanner
cbb4ee3eca9ac878b4f3cd78cfcfe8fc1acb86f9
[ "Apache-2.0" ]
null
null
null
tests/unit/spanner_dbapi/test_connect.py
larkee/python-spanner
cbb4ee3eca9ac878b4f3cd78cfcfe8fc1acb86f9
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
34.45
87
0.716774
3,890
0.806552
0
0
3,811
0.790172
0
0
773
0.160274
96dcf01c244ee7438297fd322846f89558653bfd
943
py
Python
section_3/5_magic_methods/main.py
hgohel/Python-for-Everyday-Life
957963e67dca8c2d20a86fc7e66e818c80d013aa
[ "MIT" ]
43
2018-04-09T11:59:11.000Z
2022-01-29T14:27:37.000Z
section_3/5_magic_methods/main.py
hgohel/Python-for-Everyday-Life
957963e67dca8c2d20a86fc7e66e818c80d013aa
[ "MIT" ]
12
2019-11-03T16:50:39.000Z
2021-09-07T23:52:37.000Z
section_3/5_magic_methods/main.py
hgohel/Python-for-Everyday-Life
957963e67dca8c2d20a86fc7e66e818c80d013aa
[ "MIT" ]
45
2018-05-10T21:40:46.000Z
2022-03-01T05:50:07.000Z
# -*- coding: utf-8 -*- # !/usr/bin/env python3 if __name__ == '__main__': import money # crafting money euro = money.Money(1.0, 'EUR') five_euros = money.Money(5.0, 'EUR') ten_euros = money.Money(10.0, 'EUR') dollar = money.Money(1.0, 'USD') # money algebra eleven_euros = euro + ten_...
29.46875
85
0.612937
0
0
0
0
0
0
0
0
265
0.281018