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
7eb2e5d8b39a38645fd5ca261b5ad38bc6b3a64e
17,580
py
Python
deploy.py
NASA-PDS/planetarydata.org
16731a251c22408b433117f7f01e29d004f11467
[ "Apache-2.0" ]
null
null
null
deploy.py
NASA-PDS/planetarydata.org
16731a251c22408b433117f7f01e29d004f11467
[ "Apache-2.0" ]
5
2021-03-19T21:41:19.000Z
2022-02-11T14:55:14.000Z
deploy.py
NASA-PDS/planetarydata.org
16731a251c22408b433117f7f01e29d004f11467
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 # Copyright 2014 California Institute of Technology. ALL RIGHTS # RESERVED. U.S. Government Sponsorship acknowledged. # # deploy.py - Deploy the IPDA site into operations import argparse, sys, logging, os, os.path, re, subprocess, pwd, urllib2, contextlib, tempfile, tarfile, str...
46.141732
121
0.659158
42
0.002389
0
0
0
0
0
0
6,133
0.348862
7eb37405a08b46272d97b80f6cb1504d1a02dffc
884
py
Python
aoc2020/4/d4_2.py
kewbish/ka-algorithms
7a893fdaebd99530eaf0d9633c2721763707e92f
[ "MIT" ]
null
null
null
aoc2020/4/d4_2.py
kewbish/ka-algorithms
7a893fdaebd99530eaf0d9633c2721763707e92f
[ "MIT" ]
null
null
null
aoc2020/4/d4_2.py
kewbish/ka-algorithms
7a893fdaebd99530eaf0d9633c2721763707e92f
[ "MIT" ]
null
null
null
from re import match with open("input.txt") as x: lines = x.read().strip().split("\n\n") lines = [line.replace("\n", " ") for line in lines] valid = 0 fields = { 'byr': lambda x: 1920 <= int(x) <= 2002, 'iyr': lambda x: 2010 <= int(x) <= 2020, 'eyr': lambda x: 2020 <= int(x) <= 2030, ...
35.36
120
0.519231
0
0
0
0
0
0
0
0
167
0.188914
7eb4d2c3850b1b1666b3b1e3ca926f8da835b076
1,321
py
Python
test_inference.py
ilyes64/DenseNet-TF2
0081ec8823bd6af46a2948f3dc837e1302a8db73
[ "MIT" ]
null
null
null
test_inference.py
ilyes64/DenseNet-TF2
0081ec8823bd6af46a2948f3dc837e1302a8db73
[ "MIT" ]
null
null
null
test_inference.py
ilyes64/DenseNet-TF2
0081ec8823bd6af46a2948f3dc837e1302a8db73
[ "MIT" ]
null
null
null
"""Test ImageNet pretrained DenseNet""" import cv2 import numpy as np from tensorflow.keras.optimizers import SGD import tensorflow.keras.backend as K # We only test DenseNet-121 in this script for demo purpose from densenet121 import DenseNet im = cv2.resize(cv2.imread('resources/cat.jpg'), (224, 224)).astype(np.f...
32.219512
83
0.718395
0
0
0
0
0
0
0
0
562
0.425435
7eb546f1428e9e46c412c95c4b290bb93627a3b7
713
py
Python
global_id/tests/utils/callers/guid_caller.py
ThePokerFaCcCe/messenger
2db3d5c2ccd05ac40d2442a13d664ca9ad3cb14c
[ "MIT" ]
null
null
null
global_id/tests/utils/callers/guid_caller.py
ThePokerFaCcCe/messenger
2db3d5c2ccd05ac40d2442a13d664ca9ad3cb14c
[ "MIT" ]
null
null
null
global_id/tests/utils/callers/guid_caller.py
ThePokerFaCcCe/messenger
2db3d5c2ccd05ac40d2442a13d664ca9ad3cb14c
[ "MIT" ]
null
null
null
from django.urls.base import reverse from rest_framework import status from global_id.urls import app_name from core.tests.utils import BaseCaller from ..creators import create_guid def guid_detail_url(guid=None): return reverse(f"{app_name}:guid-detail", kwargs={'guid': guid or create_guid()....
31
63
0.678822
383
0.537167
0
0
0
0
0
0
75
0.105189
7eb5995e03f60c1e708787551eef79b2faedc457
132
py
Python
Neural Network/NNToyFx/python/activations.py
stormy-ua/MachineLearning
e03a50e4c9fab8c7c4232ae0c305f6e7b48134bf
[ "MIT" ]
null
null
null
Neural Network/NNToyFx/python/activations.py
stormy-ua/MachineLearning
e03a50e4c9fab8c7c4232ae0c305f6e7b48134bf
[ "MIT" ]
null
null
null
Neural Network/NNToyFx/python/activations.py
stormy-ua/MachineLearning
e03a50e4c9fab8c7c4232ae0c305f6e7b48134bf
[ "MIT" ]
null
null
null
from simulation import * def relu(ctx: SimulationContext, x: Connection): relu1 = ctx.max(x, ctx.variable(0)) return relu1
22
48
0.704545
0
0
0
0
0
0
0
0
0
0
7eb6be94d7cf79345f60800447c7a1dfb1e58dc6
1,126
py
Python
dev/umm-exploration-has-calculator.py
fangohr/oommf-python
9c9f617c4efe4b488f01703186c1126070ea5d3f
[ "BSD-2-Clause" ]
7
2016-01-25T09:36:46.000Z
2021-09-03T01:42:19.000Z
dev/umm-exploration-has-calculator.py
fangohr/oommf-python
9c9f617c4efe4b488f01703186c1126070ea5d3f
[ "BSD-2-Clause" ]
1
2016-03-07T17:11:44.000Z
2016-03-07T17:11:44.000Z
dev/umm-exploration-has-calculator.py
fangohr/oommf-python
9c9f617c4efe4b488f01703186c1126070ea5d3f
[ "BSD-2-Clause" ]
9
2015-09-30T10:53:06.000Z
2021-05-12T20:21:52.000Z
class MicromagneticModell: def __init__(self, name, Ms, calc): self.name = name self.Ms = Ms self.field = None self.calc = calc def __str__(self): return "AbstractMicromagneticModell(name={})".format(self.name) def relax(self): self.calc.relax(self) def...
21.245283
72
0.617229
825
0.732682
0
0
0
0
0
0
384
0.34103
7eb7565f96b0068b9fddd9b40e2803cbd414b282
7,225
py
Python
Tools/Converters/tetgen2ply.py
dbungert/opensurgsim
bd30629f2fd83f823632293959b7654275552fa9
[ "Apache-2.0" ]
24
2015-01-19T16:18:59.000Z
2022-03-13T03:29:11.000Z
Tools/Converters/tetgen2ply.py
dbungert/opensurgsim
bd30629f2fd83f823632293959b7654275552fa9
[ "Apache-2.0" ]
3
2018-12-21T14:54:08.000Z
2022-03-14T12:38:07.000Z
Tools/Converters/tetgen2ply.py
dbungert/opensurgsim
bd30629f2fd83f823632293959b7654275552fa9
[ "Apache-2.0" ]
8
2015-04-10T19:45:36.000Z
2022-02-02T17:00:59.000Z
#!/usr/bin/python # This file is a part of the OpenSurgSim project. # Copyright 2012-2015, SimQuest Solutions Inc. # # 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.o...
43.005952
139
0.695779
0
0
0
0
0
0
0
0
3,676
0.508789
7eb76c71fc078ebcda0b4348976ac428e72ebba9
2,848
py
Python
movie/App/forms/user.py
caoluyang8/movie
6f655706c2f50e21bdd34d210393e842fd2b26ba
[ "BSD-2-Clause" ]
null
null
null
movie/App/forms/user.py
caoluyang8/movie
6f655706c2f50e21bdd34d210393e842fd2b26ba
[ "BSD-2-Clause" ]
null
null
null
movie/App/forms/user.py
caoluyang8/movie
6f655706c2f50e21bdd34d210393e842fd2b26ba
[ "BSD-2-Clause" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField,PasswordField,SubmitField,BooleanField from flask_wtf.file import FileAllowed,FileRequired,FileField from wtforms.validators import DataRequired,Length,EqualTo,Email,ValidationError from App.models import User from App.extensions import file class Regist...
59.333333
221
0.726475
3,157
0.909798
0
0
0
0
0
0
1,304
0.375793
0e18ce228904236db3f530d334423f0fcfc1bd83
443
py
Python
doc/source/user/examples/cleanup-servers.py
noironetworks/shade
e46878bae44e7daebf32c0aeaeffea0011542525
[ "Apache-2.0" ]
96
2015-01-29T20:12:08.000Z
2019-01-28T22:17:13.000Z
doc/source/user/examples/cleanup-servers.py
noironetworks/shade
e46878bae44e7daebf32c0aeaeffea0011542525
[ "Apache-2.0" ]
7
2015-08-14T18:47:28.000Z
2019-02-18T16:32:36.000Z
doc/source/user/examples/cleanup-servers.py
noironetworks/shade
e46878bae44e7daebf32c0aeaeffea0011542525
[ "Apache-2.0" ]
88
2015-05-11T17:20:52.000Z
2019-04-04T03:23:30.000Z
import shade # Initialize and turn on debug logging shade.simple_logging(debug=True) for cloud_name, region_name in [ ('my-vexxhost', 'ca-ymq-1'), ('my-citycloud', 'Buf1'), ('my-internap', 'ams01')]: # Initialize cloud cloud = shade.openstack_cloud(cloud=cloud_name, region_name=region_...
31.642857
76
0.683973
0
0
0
0
0
0
0
0
130
0.293454
0e18f19e2f26af45d020c41ca5247b1bdd969657
151
py
Python
abacus_tpot/tpot_config.py
workforce-data-initiative/tpot-abacus
a5abf4af544693e0c58f7891785718e7bc606ed6
[ "Apache-2.0" ]
1
2019-09-09T20:52:49.000Z
2019-09-09T20:52:49.000Z
abacus_tpot/tpot_config.py
workforce-data-initiative/tpot-abacus
a5abf4af544693e0c58f7891785718e7bc606ed6
[ "Apache-2.0" ]
43
2018-02-11T11:24:18.000Z
2022-02-22T05:32:16.000Z
abacus_tpot/tpot_config.py
workforce-data-initiative/tpot-abacus
a5abf4af544693e0c58f7891785718e7bc606ed6
[ "Apache-2.0" ]
null
null
null
# eventually we will have a proper config ANONYMIZATION_THRESHOLD = 10 WAREHOUSE_URI = 'postgres://localhost' WAGE_RECORD_URI = 'postgres://localhost'
30.2
41
0.794702
0
0
0
0
0
0
0
0
85
0.562914
0e1b5fee094ee42b7bc8cc6dd1d5a713200d6a4a
837
py
Python
tileServer/scripts/exportZoomLevels.py
greenhalos/tile-server
cc88f50839e70eeed359dfa09a63386e8c06b9e7
[ "Apache-2.0" ]
null
null
null
tileServer/scripts/exportZoomLevels.py
greenhalos/tile-server
cc88f50839e70eeed359dfa09a63386e8c06b9e7
[ "Apache-2.0" ]
null
null
null
tileServer/scripts/exportZoomLevels.py
greenhalos/tile-server
cc88f50839e70eeed359dfa09a63386e8c06b9e7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import json import yaml result = {} with open('app/static/greenhalos-style.json') as json_file: data = json.load(json_file) for layer in data['layers']: if 'source-layer' in layer: minzoom = layer.get('minzoom', 0) maxzoom = layer.get('maxzoom', 24) ...
31
59
0.537634
0
0
0
0
0
0
0
0
149
0.178017
0e1b623930809e5794e5e6725bf4a73e58a166cd
14,203
py
Python
formats/dcc_parser.py
C3RV1/LaytonEditor
51e1a9a372a8acdaa4183ae008235a721dc56cdc
[ "Unlicense" ]
6
2019-12-24T00:18:54.000Z
2022-02-28T17:09:22.000Z
formats/dcc_parser.py
C3RV1/LaytonEditor
51e1a9a372a8acdaa4183ae008235a721dc56cdc
[ "Unlicense" ]
1
2021-08-18T11:10:35.000Z
2021-08-18T17:32:21.000Z
formats/dcc_parser.py
C3RV1/LaytonEditor
51e1a9a372a8acdaa4183ae008235a721dc56cdc
[ "Unlicense" ]
2
2021-01-17T10:42:48.000Z
2021-08-18T11:10:54.000Z
# Data and Code Container (DCC) format by Cervi import typing def is_int(var): try: int(var) return True except ValueError: return False def is_float(var): try: float(var) return True except ValueError: return False def is_hex(var): try: ...
37.376316
104
0.472224
13,576
0.955854
0
0
1,474
0.103781
0
0
1,307
0.092023
0e1b7b2ebbd9b954f9c3ccf6192469e079ab9373
4,245
py
Python
flock/__init__.py
fishface60/python-flock
320fcc630c58852fa02653dbcc9cd80ff1304b46
[ "0BSD" ]
null
null
null
flock/__init__.py
fishface60/python-flock
320fcc630c58852fa02653dbcc9cd80ff1304b46
[ "0BSD" ]
null
null
null
flock/__init__.py
fishface60/python-flock
320fcc630c58852fa02653dbcc9cd80ff1304b46
[ "0BSD" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2015, Richard Maw # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHO...
28.877551
81
0.725324
195
0.045936
354
0.083392
370
0.087161
0
0
1,931
0.454888
0e1c11840edfb52bafea761c6a2698a9114b7c8c
10,333
py
Python
uqtie/UqtStylesheet.py
langrind/UQtie
032693695117083cdd715beb2a679e4ccee060d8
[ "MIT" ]
null
null
null
uqtie/UqtStylesheet.py
langrind/UQtie
032693695117083cdd715beb2a679e4ccee060d8
[ "MIT" ]
null
null
null
uqtie/UqtStylesheet.py
langrind/UQtie
032693695117083cdd715beb2a679e4ccee060d8
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ Class that manages a UQtie application's stylesheet There are advantages and disadvantages to Qt stylesheets, Qt settings, and Qt Style. They aren't mutually exclusive, and they don't all play together either. This module attempts to make it possible to use a stylesheet w...
36.512367
112
0.635246
7,268
0.703378
0
0
0
0
0
0
4,991
0.483016
0e1e160e8d90a3c603ba44d2101e9bfc5828fd10
7,104
py
Python
clickmodel-experiments/scripts/model/ClickModelExperiment.py
nut-hatch/LOVBench
365ea4ad0d6258b840439506ce97acb3827c39e6
[ "Apache-2.0" ]
null
null
null
clickmodel-experiments/scripts/model/ClickModelExperiment.py
nut-hatch/LOVBench
365ea4ad0d6258b840439506ce97acb3827c39e6
[ "Apache-2.0" ]
1
2021-08-09T20:59:22.000Z
2021-08-09T20:59:22.000Z
clickmodel-experiments/scripts/model/ClickModelExperiment.py
nut-hatch/LOVBench
365ea4ad0d6258b840439506ce97acb3827c39e6
[ "Apache-2.0" ]
null
null
null
__author__ = 'Anonymous' import time import csv import os.path import pyclick from pyclick.utils.YandexRelPredChallengeParser import YandexRelPredChallengeParser from pyclick.utils.Utils import Utils from pyclick.click_models.Evaluation import LogLikelihood, Perplexity from pyclick.click_models.UBM import UBM from py...
48.326531
265
0.6692
6,359
0.89513
0
0
0
0
0
0
1,138
0.160191
0e1e867c79f973710511eae3645a7ccaa06989d8
242
py
Python
archive/2016/week5/homework/even.py
YAtOff/python0
b5af5004131d64dd52d42746eddb72b6c43a13c7
[ "Apache-2.0" ]
6
2017-11-08T14:04:39.000Z
2019-03-24T22:11:04.000Z
archive/2016/week5/homework/even.py
YAtOff/python0
b5af5004131d64dd52d42746eddb72b6c43a13c7
[ "Apache-2.0" ]
null
null
null
archive/2016/week5/homework/even.py
YAtOff/python0
b5af5004131d64dd52d42746eddb72b6c43a13c7
[ "Apache-2.0" ]
7
2015-10-27T09:04:58.000Z
2019-03-03T14:18:26.000Z
""" Дефинирайте фуннкция `is_even`, която приема число и върща `True` ако числото е четно и `False` в противен случай. >>> is_even(4) True >>> is_even(5) False """ def is_even(number): raise Exception('Not implemented')
18.615385
79
0.652893
0
0
0
0
0
0
0
0
270
0.857143
0e1f37ae758638a4fc7ba5ee3a4f94668d053d38
2,165
py
Python
piws/views/actions.py
neurospin/piws
4ec6f60c6343623a82761c90c74642b4b372ffd1
[ "CECILL-B" ]
null
null
null
piws/views/actions.py
neurospin/piws
4ec6f60c6343623a82761c90c74642b4b372ffd1
[ "CECILL-B" ]
9
2015-05-18T09:04:35.000Z
2017-03-24T10:47:23.000Z
piws/views/actions.py
neurospin/piws
4ec6f60c6343623a82761c90c74642b4b372ffd1
[ "CECILL-B" ]
17
2015-03-16T08:27:47.000Z
2017-08-04T16:26:29.000Z
########################################################################## # NSAp - Copyright (C) CEA, 2013 # Distributed under the terms of the CeCILL-B license, as published by # the CEA-CNRS-INRIA. Refer to the LICENSE file or to # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html # for details. ##########...
28.116883
79
0.627714
654
0.302079
0
0
0
0
0
0
779
0.359815
0e1f4a5b7788dcd9e9439809509e149a2ed438c4
505
py
Python
events/migrations/0043_remove_premium_restrictions.py
alysivji/GetTogether
403d9945fff019701de41d081ad4452e771e1ce1
[ "BSD-2-Clause" ]
446
2018-01-21T09:22:41.000Z
2022-03-25T17:46:12.000Z
events/migrations/0043_remove_premium_restrictions.py
alysivji/GetTogether
403d9945fff019701de41d081ad4452e771e1ce1
[ "BSD-2-Clause" ]
272
2018-01-03T16:55:39.000Z
2022-03-11T23:12:30.000Z
events/migrations/0043_remove_premium_restrictions.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-08-25 14:19 from django.db import migrations class Migration(migrations.Migration): dependencies = [("events", "0042_allow_team_without_country")] operations = [ migrations.RemoveField(model_name="team", name="is_premium"), migrations.RemoveField(model_name...
31.5625
74
0.710891
422
0.835644
0
0
0
0
0
0
168
0.332673
0e1fd30efaef6619653d82bc4e1ec4b62cc2fe4c
1,904
py
Python
examples/Utopia2_planning_single_node_DN/tutorial2.py
AAmedeo/Hypatia
22e14bc9bbb043c4d7dbf5b881d9dadbce6c0de1
[ "Apache-2.0" ]
5
2021-12-17T15:16:12.000Z
2022-03-24T10:42:33.000Z
examples/Utopia2_planning_single_node_DN/tutorial2.py
AAmedeo/Hypatia
22e14bc9bbb043c4d7dbf5b881d9dadbce6c0de1
[ "Apache-2.0" ]
10
2022-01-11T09:44:52.000Z
2022-03-30T12:29:50.000Z
examples/Utopia2_planning_single_node_DN/tutorial2.py
AAmedeo/Hypatia
22e14bc9bbb043c4d7dbf5b881d9dadbce6c0de1
[ "Apache-2.0" ]
3
2021-12-17T15:30:12.000Z
2022-03-23T15:37:42.000Z
from hypatia import Model,Plotter #%% utopia = Model( path = 'sets', mode = 'Planning' ) #%% #utopia.create_data_excels( # path = r'parameters' #) #%% utopia.read_input_data( path = r'parameters' ) #%% utopia.run( solver = 'scipy', verbosity = True, ) #%% utopia.to_csv(path='results') #%% #uto...
25.052632
131
0.719013
0
0
0
0
0
0
0
0
1,075
0.564601
0e224344c163f81deb574207f38b8233548b28f8
119
bzl
Python
test/com/facebook/buck/parser/testdata/disable_implicit_native_rules/skylark/implicit_in_extension_bzl/extension.bzl
Unknoob/buck
2dfc734354b326f2f66896dde7746a11965d5a13
[ "Apache-2.0" ]
8,027
2015-01-02T05:31:44.000Z
2022-03-31T07:08:09.000Z
test/com/facebook/buck/parser/testdata/disable_implicit_native_rules/skylark/implicit_in_extension_bzl/extension.bzl
Unknoob/buck
2dfc734354b326f2f66896dde7746a11965d5a13
[ "Apache-2.0" ]
2,355
2015-01-01T15:30:53.000Z
2022-03-30T20:21:16.000Z
test/com/facebook/buck/parser/testdata/disable_implicit_native_rules/skylark/implicit_in_extension_bzl/extension.bzl
Unknoob/buck
2dfc734354b326f2f66896dde7746a11965d5a13
[ "Apache-2.0" ]
1,280
2015-01-09T03:29:04.000Z
2022-03-30T15:14:14.000Z
""" Example module """ def java_maker(*args, **kwargs): """ Make you a java """ java_library(*args, **kwargs)
19.833333
33
0.588235
0
0
0
0
0
0
0
0
45
0.378151
0e22d4557755570980a88c3dd6efa6cf9f1ddd9e
3,600
py
Python
backend/config/settings/base.py
r0tii/process-status-viewer
6c94a7a6f5e37f37f63d6140c806a0b6fc49ae1c
[ "MIT" ]
null
null
null
backend/config/settings/base.py
r0tii/process-status-viewer
6c94a7a6f5e37f37f63d6140c806a0b6fc49ae1c
[ "MIT" ]
null
null
null
backend/config/settings/base.py
r0tii/process-status-viewer
6c94a7a6f5e37f37f63d6140c806a0b6fc49ae1c
[ "MIT" ]
null
null
null
""" Base settings to build other settings files upon. """ from pathlib import Path import environ env = environ.Env() # GENERAL # ------------------------------------------------------------------------- BASE_DIR = Path(__file__).resolve(strict=True).parent.parent.parent PROJECT_NAME = "process_status_monitoring" ...
30.252101
99
0.536667
0
0
0
0
0
0
0
0
2,565
0.7125
0e24145bbea1ff58122f48a87e0382857109d106
2,039
py
Python
virtual_agent.py
kavimathi26-2001/virtual-agent-built.
df553a16ef4e7e32a93b35a3d55e6891f21ac98d
[ "Apache-2.0" ]
23
2021-10-01T13:10:29.000Z
2021-10-30T07:57:32.000Z
virtual_agent.py
kavimathi26-2001/virtual-agent-built.
df553a16ef4e7e32a93b35a3d55e6891f21ac98d
[ "Apache-2.0" ]
null
null
null
virtual_agent.py
kavimathi26-2001/virtual-agent-built.
df553a16ef4e7e32a93b35a3d55e6891f21ac98d
[ "Apache-2.0" ]
28
2021-09-13T05:41:56.000Z
2021-10-30T07:31:46.000Z
#import all the libraries required import csv, pickle, numpy as np, os from sentence_transformers import SentenceTransformer, util #Virtual Agent Model class VAModel(): def __init__(self): self.model = SentenceTransformer("stsb-mpnet-base-v2") #load pretrained model self.qa = dict() self.emb...
49.731707
115
0.62972
1,886
0.924963
0
0
0
0
0
0
623
0.305542
0e2735db31e23d6ef2afd7530322a682fcd103d9
2,703
py
Python
hyperloglog/hashfunctions.py
mlkra/various-algorithms
9cb2d21fe9ec0613c88e70f70e0ff1d471e43079
[ "MIT" ]
2
2021-12-04T16:12:03.000Z
2021-12-25T06:57:27.000Z
mincount/hashfunctions.py
mlkra/various-algorithms
9cb2d21fe9ec0613c88e70f70e0ff1d471e43079
[ "MIT" ]
null
null
null
mincount/hashfunctions.py
mlkra/various-algorithms
9cb2d21fe9ec0613c88e70f70e0ff1d471e43079
[ "MIT" ]
null
null
null
from typing import Callable import hashlib import zlib def __common(n: int, h: Callable, digest_size: int, b=0) -> float: assert b <= digest_size if b == 0: return int.from_bytes(h(n.to_bytes(8, "big")).digest(), 'big') / 2**digest_size else: return (int.from_bytes(h(n.to_bytes(8, "big"))....
22.525
101
0.594895
0
0
0
0
0
0
0
0
239
0.08842
0e282455991d9cc519b5a1a793207bc93c3d9068
793
py
Python
data_loaders/data_loader_interface.py
jennis0/pdf2vtt
4aad37ef3dfce4d83f3a2744856879598cd4446f
[ "MIT" ]
null
null
null
data_loaders/data_loader_interface.py
jennis0/pdf2vtt
4aad37ef3dfce4d83f3a2744856879598cd4446f
[ "MIT" ]
null
null
null
data_loaders/data_loader_interface.py
jennis0/pdf2vtt
4aad37ef3dfce4d83f3a2744856879598cd4446f
[ "MIT" ]
null
null
null
import abc from typing import List from utils.datatypes import Source class DataLoaderInterface(object): @abc.abstractmethod def get_name() -> str: '''Returns an internal name for this loader''' raise NotImplementedError("users must define a name for this loader") @staticmethod @abc....
36.045455
93
0.706179
721
0.909206
0
0
669
0.843632
0
0
334
0.421185
0e28d4b2f8c651a0637bb6e71017d6d807b4a977
247
py
Python
Learn/30-Days-Of-Code/Day 28/regexdb.py
Adriel-M/HackerRank
0f361bb7eaa3d2db3dd96de511c4b7fa02efa8c5
[ "MIT" ]
1
2021-11-24T16:43:10.000Z
2021-11-24T16:43:10.000Z
Learn/30-Days-Of-Code/Day 28/regexdb.py
Adriel-M/HackerRank
0f361bb7eaa3d2db3dd96de511c4b7fa02efa8c5
[ "MIT" ]
null
null
null
Learn/30-Days-Of-Code/Day 28/regexdb.py
Adriel-M/HackerRank
0f361bb7eaa3d2db3dd96de511c4b7fa02efa8c5
[ "MIT" ]
null
null
null
N = int(input().strip()) names = [] for _ in range(N): name,email = input().strip().split(' ') name,email = [str(name),str(email)] if email.endswith("@gmail.com"): names.append(name) names.sort() for n in names: print(n)
19
43
0.578947
0
0
0
0
0
0
0
0
15
0.060729
0e2930d0e963e50e57e9afabe5382cdd9bed7229
4,176
py
Python
dbglang/dbp.py
thautwarm/dbg-lang
22b5230bc1658494b93a2741aab3ef63a06fdee3
[ "MIT" ]
1
2018-04-09T11:43:52.000Z
2018-04-09T11:43:52.000Z
dbglang/dbp.py
thautwarm/dbg-lang
22b5230bc1658494b93a2741aab3ef63a06fdee3
[ "MIT" ]
null
null
null
dbglang/dbp.py
thautwarm/dbg-lang
22b5230bc1658494b93a2741aab3ef63a06fdee3
[ "MIT" ]
1
2019-06-21T08:33:24.000Z
2019-06-21T08:33:24.000Z
from Ruikowa.ObjectRegex.Node import Ref, AstParser, SeqParser, LiteralParser, CharParser, MetaInfo, DependentAstParser try: from .etoken import token except: from etoken import token import re namespace = globals() recurSearcher = set() PrimaryDefList = AstParser([Ref('FieldDef'), SeqParser([LiteralParser(',...
64.246154
120
0.608477
0
0
0
0
0
0
0
0
886
0.212165
0e2afcb852554bb61271877076847899b292fc37
4,128
py
Python
App/components/combEntrada.py
Alexfm101/automata
a39760a04d384ef96ce49cac2517d7248380bd72
[ "MIT" ]
null
null
null
App/components/combEntrada.py
Alexfm101/automata
a39760a04d384ef96ce49cac2517d7248380bd72
[ "MIT" ]
null
null
null
App/components/combEntrada.py
Alexfm101/automata
a39760a04d384ef96ce49cac2517d7248380bd72
[ "MIT" ]
null
null
null
import sys from PyQt5.QtWidgets import * from PyQt5.QtGui import * from PyQt5.QtCore import * data_edoSiguiente = [[1, 2, 3, 4],[1, 2, 3, 4],[1, 2, 3, 4],[1, 2, 3, 4], [1, 2, 3, 4],[1, 2, 3, 4],[1, 2, 3, 4],[1, 2, 3, 4], [1, 2, 3, 4],[1, 2, 3, 4],[1, 2, 3, 4],[1, 2, 3, 4], [1, 2, 3, 4],[1...
33.024
83
0.428052
3,230
0.782461
0
0
0
0
0
0
122
0.029554
0e2b1e0932a1e36d8ff5f038e7d31ff803df6266
1,794
py
Python
pythonAlgorithm/datastrcture/Kth Smallest Number in Sorted Matrix.py
Sky-zzt/lintcodePractice
d6436b296c5865d85e55c8ad4fcdbb0165d4ebb1
[ "MIT" ]
1
2020-09-15T07:58:55.000Z
2020-09-15T07:58:55.000Z
pythonAlgorithm/datastrcture/Kth Smallest Number in Sorted Matrix.py
Sky-zzt/lintcodePractice
d6436b296c5865d85e55c8ad4fcdbb0165d4ebb1
[ "MIT" ]
null
null
null
pythonAlgorithm/datastrcture/Kth Smallest Number in Sorted Matrix.py
Sky-zzt/lintcodePractice
d6436b296c5865d85e55c8ad4fcdbb0165d4ebb1
[ "MIT" ]
null
null
null
import heapq class Solution: """ @param matrix: a matrix of integers @param k: An integer @return: the kth smallest number in the matrix 在一个排序矩阵中找从小到大的第 k 个整数。 排序矩阵的定义为:每一行递增,每一列也递增。 Example 样例 1: 输入: [ [1 ,5 ,7], [3 ,7 ,8], [4 ,8 ,9], ] k = 4 输出: 5 ...
23.92
70
0.544593
1,938
0.991812
0
0
148
0.075742
0
0
647
0.331116
0e2c27724ea07da3d95021b9be790ef2004472e6
2,158
py
Python
thriftpy2/contrib/aio/transport/framed.py
JonnoFTW/thriftpy2
3b4d28d611a752f8796604ee274f03c517670a43
[ "MIT" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
thriftpy2/contrib/aio/transport/framed.py
JonnoFTW/thriftpy2
3b4d28d611a752f8796604ee274f03c517670a43
[ "MIT" ]
1,623
2015-01-01T08:06:24.000Z
2022-03-30T19:48:52.000Z
thriftpy2/contrib/aio/transport/framed.py
JonnoFTW/thriftpy2
3b4d28d611a752f8796604ee274f03c517670a43
[ "MIT" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import import struct import asyncio from io import BytesIO from .base import TAsyncTransportBase, readall from .buffered import TAsyncBufferedTransport class TAsyncFramedTransport(TAsyncTransportBase): """Class that wraps another transport and frames its ...
28.773333
79
0.647822
1,941
0.899444
1,191
0.5519
1,283
0.594532
0
0
552
0.255792
0e2d0a35bac66187f607550adfc8a5821291ee5b
3,493
py
Python
test/test-funders.py
yurivict/habanero
857897a88811153f7460472219fd78d4e68bdc12
[ "MIT" ]
null
null
null
test/test-funders.py
yurivict/habanero
857897a88811153f7460472219fd78d4e68bdc12
[ "MIT" ]
1
2015-10-07T02:20:24.000Z
2015-10-07T02:20:24.000Z
test/test-funders.py
yurivict/habanero
857897a88811153f7460472219fd78d4e68bdc12
[ "MIT" ]
null
null
null
import pytest import os import requests from habanero import exceptions, Crossref from requests.exceptions import HTTPError cr = Crossref() @pytest.mark.vcr def test_funders(): "funders - basic test" res = cr.funders(limit=2) assert dict == res.__class__ assert dict == res["message"].__class__ as...
26.263158
87
0.681363
0
0
0
0
3,307
0.946751
0
0
701
0.200687
0e2d51cb9fe9bb1546fc7bbea2cb77d09472d09a
812
py
Python
geomagio/api/ws/algorithms.py
alejandrodelcampillo/geomag-algorithms
43a734d63a8eb2a696f14237e0054e21d36de7c3
[ "CC0-1.0" ]
1
2021-02-22T23:45:22.000Z
2021-02-22T23:45:22.000Z
geomagio/api/ws/algorithms.py
alejandrodelcampillo/geomag-algorithms
43a734d63a8eb2a696f14237e0054e21d36de7c3
[ "CC0-1.0" ]
1
2021-09-08T03:42:52.000Z
2021-09-08T03:42:52.000Z
geomagio/api/ws/algorithms.py
alejandrodelcampillo/geomag-algorithms
43a734d63a8eb2a696f14237e0054e21d36de7c3
[ "CC0-1.0" ]
null
null
null
from fastapi import APIRouter, Depends from starlette.responses import Response from ... import TimeseriesFactory from ...algorithm import DbDtAlgorithm from .DataApiQuery import DataApiQuery from .data import format_timeseries, get_data_factory, get_data_query, get_timeseries router = APIRouter() @router.get("/al...
29
85
0.748768
0
0
0
0
507
0.624384
0
0
72
0.08867
0e2d851e83694bcead0aaa245c930030f6827cc1
1,478
py
Python
lesson3/stage3/src/jvm/udacity/storm/resources/urltext.py
haitanle/storm-twitter
b68c90129d31eb11808922ec56ac9ac6535fdab2
[ "MIT" ]
null
null
null
lesson3/stage3/src/jvm/udacity/storm/resources/urltext.py
haitanle/storm-twitter
b68c90129d31eb11808922ec56ac9ac6535fdab2
[ "MIT" ]
null
null
null
lesson3/stage3/src/jvm/udacity/storm/resources/urltext.py
haitanle/storm-twitter
b68c90129d31eb11808922ec56ac9ac6535fdab2
[ "MIT" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
35.190476
105
0.699594
513
0.347091
0
0
0
0
0
0
997
0.67456
0e2e642553f3d2eca725be5123dcabd2612e0fef
598
py
Python
ncl/property.py
MichaelBittencourt/NCL-Generator-API
8eecf2ea4948354fae9f64b68da2f24ad0663d60
[ "MIT" ]
1
2020-06-26T09:59:27.000Z
2020-06-26T09:59:27.000Z
ncl/property.py
MichaelBittencourt/NCL-Generator-API
8eecf2ea4948354fae9f64b68da2f24ad0663d60
[ "MIT" ]
null
null
null
ncl/property.py
MichaelBittencourt/NCL-Generator-API
8eecf2ea4948354fae9f64b68da2f24ad0663d60
[ "MIT" ]
1
2020-01-07T23:16:11.000Z
2020-01-07T23:16:11.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 # # Copyright © 2019 Michael Bittencourt <mchl.bittencourt@gmail.com> # # Distributed under terms of the MIT license. """ """ from ncl.abstractelement import AbstractElement class Property(AbstractElement): def __init__(self, name, value=None, exte...
23.92
73
0.633779
356
0.594324
0
0
0
0
0
0
244
0.407346
0e2f13b1e7a11523bafcf1c9ffaaf118b159dadf
372
py
Python
DSTK/Timeseries/recurrence_plots.py
jotterbach/dstk
d371262ca09527fb8279f066b564abf5a1fe28df
[ "MIT" ]
12
2017-01-10T19:50:32.000Z
2020-03-30T20:28:31.000Z
DSTK/Timeseries/recurrence_plots.py
jotterbach/dstk
d371262ca09527fb8279f066b564abf5a1fe28df
[ "MIT" ]
7
2016-10-12T16:21:58.000Z
2016-12-01T00:34:54.000Z
DSTK/Timeseries/recurrence_plots.py
jotterbach/dstk
d371262ca09527fb8279f066b564abf5a1fe28df
[ "MIT" ]
8
2016-08-22T11:23:12.000Z
2020-03-13T23:18:39.000Z
import _recurrence_map import numpy as np def poincare_map(ts, ts2=None, threshold=0.1): rec_dist = poincare_recurrence_dist(ts, ts2) return (rec_dist < threshold).astype(int) def poincare_recurrence_dist(ts, ts2=None): if ts2 is None: return _recurrence_map.recurrence_map(ts, ts) else: ...
23.25
54
0.725806
0
0
0
0
0
0
0
0
0
0
0e2f2f3cf1a3df42e62c08dda70b278f740b11d2
2,755
py
Python
preprocess.py
costagreg/mnist-handwritten-ml
c3e26eb7ab653afa6f9e9dc91f5a438026b64329
[ "MIT" ]
null
null
null
preprocess.py
costagreg/mnist-handwritten-ml
c3e26eb7ab653afa6f9e9dc91f5a438026b64329
[ "MIT" ]
1
2019-06-23T16:41:26.000Z
2019-08-12T09:54:52.000Z
preprocess.py
costagreg/mnist-handwritten-ml
c3e26eb7ab653afa6f9e9dc91f5a438026b64329
[ "MIT" ]
1
2019-08-12T06:38:35.000Z
2019-08-12T06:38:35.000Z
import cv2 import math import numpy as np import os import matplotlib.pyplot as plt from scipy import ndimage from utils import ValueInvert # TO-DO: Refactor this with np.nonzero?? def find_center_image(img): left = 0 right = img.shape[1] - 1 empty_left = True empty_right = True for col in rang...
26.490385
77
0.56951
0
0
0
0
0
0
0
0
108
0.039201
0e3027662b184f06c13870ffba5c59a0f9bdc59f
1,223
py
Python
buffer.py
Shahaf-Yamin/CartPole-Policy-Gradients
98845fa6aa24d1de22644b783ea564a778a5c64f
[ "MIT" ]
null
null
null
buffer.py
Shahaf-Yamin/CartPole-Policy-Gradients
98845fa6aa24d1de22644b783ea564a778a5c64f
[ "MIT" ]
null
null
null
buffer.py
Shahaf-Yamin/CartPole-Policy-Gradients
98845fa6aa24d1de22644b783ea564a778a5c64f
[ "MIT" ]
null
null
null
import numpy as np from collections import namedtuple, deque import random Transition = namedtuple('Transition', ('state', 'action', 'next_state', 'reward', 'not_done')) class ReplayBuffer(object): def __init__(self, capacity): self.memory = deque([], maxlen=capacity) def push(self, *ar...
40.766667
293
0.63287
1,041
0.851186
0
0
0
0
0
0
332
0.271464
0e30b1db2b544a801697916acc86f22b8a9e7d0e
4,109
py
Python
benchmarks/secure_data_SDK-benchmarks/bootloader/load_firmware.py
ghsecuritylab/BenchIoT
4919427d35e578a7ff07ef5e0b4710b6455dd0b9
[ "Apache-2.0" ]
22
2019-05-03T03:39:09.000Z
2022-02-26T17:14:15.000Z
benchmarks/secure_data_SDK-benchmarks/bootloader/load_firmware.py
ghsecuritylab/BenchIoT
4919427d35e578a7ff07ef5e0b4710b6455dd0b9
[ "Apache-2.0" ]
3
2019-07-29T19:48:49.000Z
2022-01-10T07:24:43.000Z
benchmarks/secure_data_SDK-benchmarks/bootloader/load_firmware.py
ghsecuritylab/BenchIoT
4919427d35e578a7ff07ef5e0b4710b6455dd0b9
[ "Apache-2.0" ]
8
2019-05-16T08:02:33.000Z
2021-08-03T03:41:37.000Z
from struct import pack, unpack import binascii import socket HOST = '192.168.0.10' PORT = 1337 BUFF_SIZE = 1024 START_TOKEN = "init" DONE_TOKEN = "done" FAIL_TOKEN = "fail" def create_test_application(load_addr=0x08002000, size=64*1024): ''' Creates a test application that simply returns to the boo...
29.35
80
0.578973
0
0
0
0
0
0
0
0
1,004
0.244342
0e323cbc9a74dd18dfee4350d0c771fc984cd04d
1,264
py
Python
time/humanize_time.py
liudmil-mitev/experiments
724b4f528e628760772eed289b832aa9fd45af17
[ "WTFPL" ]
1
2018-05-02T15:45:18.000Z
2018-05-02T15:45:18.000Z
time/humanize_time.py
liudmil-mitev/experiments
724b4f528e628760772eed289b832aa9fd45af17
[ "WTFPL" ]
null
null
null
time/humanize_time.py
liudmil-mitev/experiments
724b4f528e628760772eed289b832aa9fd45af17
[ "WTFPL" ]
null
null
null
#!/usr/bin/env python INTERVALS = [1, 60, 3600, 86400, 604800, 2419200, 29030400] NAMES = [('second', 'seconds'), ('minute', 'minutes'), ('hour', 'hours'), ('day', 'days'), ('week', 'weeks'), ('month', 'months'), ('year', 'years')] def humanize_time(amou...
28.088889
61
0.508703
0
0
0
0
0
0
0
0
689
0.545095
0e333752c015ad9cb399b65e23737e7c8b00cd94
27,010
py
Python
fauxfactory/__init__.py
sthirugn/fauxfactory
b320f46d34124d0fbc0b93bc6c56ff8231c8dbc5
[ "Apache-2.0" ]
null
null
null
fauxfactory/__init__.py
sthirugn/fauxfactory
b320f46d34124d0fbc0b93bc6c56ff8231c8dbc5
[ "Apache-2.0" ]
null
null
null
fauxfactory/__init__.py
sthirugn/fauxfactory
b320f46d34124d0fbc0b93bc6c56ff8231c8dbc5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Generate random data for your tests.""" __all__ = ( 'gen_alpha', 'gen_alphanumeric', 'gen_boolean', 'gen_choice', 'gen_cjk', 'gen_cyrillic', 'gen_date', 'gen_datetime', 'gen_email', 'gen_html', 'gen_integer', 'gen_ipaddr', 'gen_iplum', ...
28.703507
80
0.646501
2,942
0.108923
814
0.030137
3,020
0.11181
0
0
12,564
0.465161
0e3363abecde73d1f0885ef85ab14787eb8932f1
2,614
py
Python
eda.py
justinhchae/app_courts
c46d48c4fa02cec91bda6fc3818ab677d6a83281
[ "MIT" ]
4
2021-01-04T05:46:43.000Z
2022-01-06T16:33:40.000Z
eda.py
justinhchae/app_courts
c46d48c4fa02cec91bda6fc3818ab677d6a83281
[ "MIT" ]
null
null
null
eda.py
justinhchae/app_courts
c46d48c4fa02cec91bda6fc3818ab677d6a83281
[ "MIT" ]
null
null
null
import gc import pandas as pd from application.application import Application from clean_data.maker import Maker from do_data.config import Columns from do_data.getter import Reader from do_data.joiner import Joiner from do_data.writer import Writer from do_data.config import Columns from analyze_data.utils import Ut...
29.044444
76
0.682096
0
0
0
0
0
0
0
0
1,031
0.394415
0e3448c59b854530205264fdc986d590b2b2ab8d
197
py
Python
retrieval/hybrid/__init__.py
park-sungmoo/odqa_baseline_code
45954be766e5f987bef18e5b8a2e47f1508742cd
[ "Apache-2.0" ]
67
2021-05-12T15:54:28.000Z
2022-03-12T15:55:35.000Z
retrieval/hybrid/__init__.py
park-sungmoo/odqa_baseline_code
45954be766e5f987bef18e5b8a2e47f1508742cd
[ "Apache-2.0" ]
71
2021-05-01T06:07:37.000Z
2022-01-28T16:54:46.000Z
retrieval/hybrid/__init__.py
park-sungmoo/odqa_baseline_code
45954be766e5f987bef18e5b8a2e47f1508742cd
[ "Apache-2.0" ]
14
2021-05-24T10:57:27.000Z
2022-02-18T06:34:11.000Z
from retrieval.hybrid.hybrid_base import HybridRetrieval, HybridLogisticRetrieval from retrieval.hybrid.hybrid import TfidfDprBert, AtireBm25DprBert, LogisticTfidfDprBert, LogisticAtireBm25DprBert
65.666667
114
0.898477
0
0
0
0
0
0
0
0
0
0
0e351d8158536eec299c27c17ae7a1f82b512746
455
py
Python
upper_print.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
117
2015-12-18T07:18:27.000Z
2022-03-28T00:25:54.000Z
upper_print.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
8
2018-10-03T09:38:46.000Z
2021-12-13T19:51:09.000Z
upper_print.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
28
2016-08-02T17:43:47.000Z
2022-03-21T08:31:12.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'ipetrash' def upper_print(f): def wrapper(*args, **kwargs): f(*[i.upper() if hasattr(i, 'upper') else i for i in args], **kwargs) return wrapper if __name__ == '__main__': text = 'hello world!' print(text) # hello world! ol...
18.2
77
0.6
0
0
0
0
0
0
0
0
128
0.281319
0e381333bec3bba2900ca4f5a909c7203ac63e80
10,182
py
Python
odxtools/units.py
floroks/odxtools
c3ac0031234188820266d2de35b23bec7f00a0cb
[ "MIT" ]
null
null
null
odxtools/units.py
floroks/odxtools
c3ac0031234188820266d2de35b23bec7f00a0cb
[ "MIT" ]
null
null
null
odxtools/units.py
floroks/odxtools
c3ac0031234188820266d2de35b23bec7f00a0cb
[ "MIT" ]
null
null
null
# SPDX-License-Identifier: MIT # Copyright (c) 2022 MBition GmbH from dataclasses import dataclass, field from typing import List, Literal, Optional from .nameditemlist import NamedItemList from .utils import read_description_from_odx UnitGroupCategory = Literal["COUNTRY", "EQUIV-UNITS"] @dataclass class PhysicalD...
33.166124
139
0.641328
5,996
0.588882
0
0
6,040
0.593204
0
0
3,416
0.335494
0e38d2aaf004540b815fbb6471e43af110b9c1be
562
py
Python
AppPkg/Applications/Python/Python-2.7.2/Lib/test/test_ttk_textonly.py
CEOALT1/RefindPlusUDK
116b957ad735f96fbb6d80a0ba582046960ba164
[ "BSD-2-Clause" ]
2,757
2018-04-28T21:41:36.000Z
2022-03-29T06:33:36.000Z
AppPkg/Applications/Python/Python-2.7.2/Lib/test/test_ttk_textonly.py
CEOALT1/RefindPlusUDK
116b957ad735f96fbb6d80a0ba582046960ba164
[ "BSD-2-Clause" ]
20
2019-07-23T15:29:32.000Z
2022-01-21T12:53:04.000Z
AppPkg/Applications/Python/Python-2.7.2/Lib/test/test_ttk_textonly.py
CEOALT1/RefindPlusUDK
116b957ad735f96fbb6d80a0ba582046960ba164
[ "BSD-2-Clause" ]
449
2018-05-09T05:54:05.000Z
2022-03-30T14:54:18.000Z
import os from test import test_support # Skip this test if _tkinter does not exist. test_support.import_module('_tkinter') this_dir = os.path.dirname(os.path.abspath(__file__)) lib_tk_test = os.path.abspath(os.path.join(this_dir, '..', 'lib-tk', 'test')) with test_support.DirsOnSysPath(lib_tk_test): i...
28.1
78
0.704626
0
0
0
0
0
0
0
0
93
0.16548
0e3954cbaaaca908b84089a968d649cf3012eb17
1,254
py
Python
app/auth/forms.py
dancan-sandys/Becky_pizza
5a12669a9def43768f8ef00ff863dbf3c78ed896
[ "MIT" ]
null
null
null
app/auth/forms.py
dancan-sandys/Becky_pizza
5a12669a9def43768f8ef00ff863dbf3c78ed896
[ "MIT" ]
null
null
null
app/auth/forms.py
dancan-sandys/Becky_pizza
5a12669a9def43768f8ef00ff863dbf3c78ed896
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField,BooleanField,PasswordField,SubmitField from wtforms.validators import Email,Required,EqualTo from wtforms import ValidationError from ..models import User class LoginForm(FlaskForm): email = StringField("enter your email adress",validators = [Require...
36.882353
137
0.72488
1,027
0.818979
0
0
0
0
0
0
481
0.383573
0e3bb55563f6de20b1c6744bf517893f39901074
992
py
Python
tests/check_predictions.py
WGierke/informatiCup2018
a07c21f6e092e516028c2f45594efbb2071d9b79
[ "MIT" ]
null
null
null
tests/check_predictions.py
WGierke/informatiCup2018
a07c21f6e092e516028c2f45594efbb2071d9b79
[ "MIT" ]
12
2018-02-10T14:37:14.000Z
2021-06-01T21:52:44.000Z
tests/check_predictions.py
WGierke/informatiCup2018
a07c21f6e092e516028c2f45594efbb2071d9b79
[ "MIT" ]
1
2018-01-27T11:20:40.000Z
2018-01-27T11:20:40.000Z
if __name__ == '__main__': # Check correct price prediction price_input_path = 'tests/data/Price_Simple.csv' price_input = open(price_input_path, 'r').read().splitlines()[0].split(';') price_prediction = open('price_prediction.csv', 'r').read().splitlines()[0].split(';') assert price_input == price_...
52.210526
97
0.698589
0
0
0
0
0
0
0
0
286
0.288306
0e3c572a1d88b93beced8ffe5d8e701ff718fc40
4,421
py
Python
src/ralph_assets/tests/unit/test_rest_asset_info_per_rack.py
quamilek/ralph_assets
705aa8ffbc347e643115d772ac9b3660376cb5c2
[ "Apache-2.0" ]
null
null
null
src/ralph_assets/tests/unit/test_rest_asset_info_per_rack.py
quamilek/ralph_assets
705aa8ffbc347e643115d772ac9b3660376cb5c2
[ "Apache-2.0" ]
null
null
null
src/ralph_assets/tests/unit/test_rest_asset_info_per_rack.py
quamilek/ralph_assets
705aa8ffbc347e643115d772ac9b3660376cb5c2
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import json from django.contrib.auth.models import User from django.test import TestCase from rest_framework.test import APIClient from ralph_a...
35.943089
78
0.549649
3,850
0.870844
0
0
0
0
0
0
471
0.106537
0e3c6ee65a6dc7c61f1f0de5840c630be1c19d33
57,419
py
Python
ovs/extensions/db/arakoon/arakoon/ArakoonManagement.py
mflu/openvstorage_centos
280a98d3e5d212d58297e0ffcecd325dfecef0f8
[ "Apache-2.0" ]
1
2015-08-29T16:36:40.000Z
2015-08-29T16:36:40.000Z
ovs/extensions/db/arakoon/arakoon/ArakoonManagement.py
rootfs-analytics/openvstorage
6184822340faea1d2927643330a7aaa781d92d36
[ "Apache-2.0" ]
null
null
null
ovs/extensions/db/arakoon/arakoon/ArakoonManagement.py
rootfs-analytics/openvstorage
6184822340faea1d2927643330a7aaa781d92d36
[ "Apache-2.0" ]
null
null
null
""" Copyright (2010-2014) INCUBAID BVBA 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, so...
34.403235
186
0.579582
56,443
0.983002
0
0
0
0
0
0
18,561
0.323255
0e3cd70195904ea45cfece716793aff4e55ba9e8
647
py
Python
setup.py
THUIR/click_model_for_mobile_search
e6c02c0b559822fa236e74934805f934da3cd162
[ "BSD-3-Clause" ]
10
2019-03-14T21:10:43.000Z
2022-02-02T15:19:07.000Z
setup.py
THUIR/click_model_for_mobile_search
e6c02c0b559822fa236e74934805f934da3cd162
[ "BSD-3-Clause" ]
null
null
null
setup.py
THUIR/click_model_for_mobile_search
e6c02c0b559822fa236e74934805f934da3cd162
[ "BSD-3-Clause" ]
1
2019-08-24T13:08:08.000Z
2019-08-24T13:08:08.000Z
from distutils.core import setup import glob from setuptools import setup def read_md(file_name): try: from pypandoc import convert return convert(file_name, 'rest') except: return '' setup( name='clickmodels', version='2.0.0', author='Jiaxin Mao', packages=['clickmode...
25.88
139
0.681607
0
0
0
0
0
0
0
0
248
0.383308
0e3d9b2cb4c223b6f43d3995bfdac7d9d91e409d
3,227
py
Python
scripts/extract_user_sudo_privileges.py
worr/sysops-api
e67dcdb7adf2ba82dc5215a73ccf6b592978e93f
[ "Apache-2.0" ]
40
2015-01-24T19:00:05.000Z
2022-03-03T01:30:20.000Z
scripts/extract_user_sudo_privileges.py
worr/sysops-api
e67dcdb7adf2ba82dc5215a73ccf6b592978e93f
[ "Apache-2.0" ]
null
null
null
scripts/extract_user_sudo_privileges.py
worr/sysops-api
e67dcdb7adf2ba82dc5215a73ccf6b592978e93f
[ "Apache-2.0" ]
12
2015-02-03T17:02:27.000Z
2020-07-24T03:23:37.000Z
#!/usr/bin/python2.6 # (c) [2013] LinkedIn Corp. 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. # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable ...
43.608108
135
0.534242
0
0
0
0
0
0
0
0
1,159
0.359157
0e3e2d475e4d28c9969630febc816f8bc00f2ddf
626
py
Python
lbworkflow/tests/purchase/models.py
wearypossum4770/django-lb-workflow
8db36c7a8c5cf3aa2492048cad9fbf26d895c8c7
[ "MIT" ]
194
2017-04-24T15:28:16.000Z
2021-12-29T03:35:28.000Z
lbworkflow/tests/purchase/models.py
wearypossum4770/django-lb-workflow
8db36c7a8c5cf3aa2492048cad9fbf26d895c8c7
[ "MIT" ]
17
2018-05-31T07:45:42.000Z
2021-12-16T08:55:44.000Z
lbworkflow/tests/purchase/models.py
wearypossum4770/django-lb-workflow
8db36c7a8c5cf3aa2492048cad9fbf26d895c8c7
[ "MIT" ]
67
2017-05-18T02:28:28.000Z
2022-01-20T02:05:10.000Z
from django.db import models from lbworkflow.models import BaseWFObj class Purchase(BaseWFObj): title = models.CharField("Title", max_length=255) reason = models.CharField("Reason", max_length=255) def __str__(self): return self.reason class Item(models.Model): purchase = models.ForeignKey...
22.357143
55
0.670927
550
0.878594
0
0
0
0
0
0
47
0.07508
0e3e3487ba35fcedce9a553cfee80ee9e1454f0d
900
py
Python
interface/python/test.py
gaubert/nessDB
69eed5ec2d4e6bf06853cebf7a506d214eaf7d62
[ "BSD-3-Clause" ]
1
2020-09-24T02:41:23.000Z
2020-09-24T02:41:23.000Z
interface/python/test.py
gaubert/nessDB
69eed5ec2d4e6bf06853cebf7a506d214eaf7d62
[ "BSD-3-Clause" ]
null
null
null
interface/python/test.py
gaubert/nessDB
69eed5ec2d4e6bf06853cebf7a506d214eaf7d62
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python #-*- coding:utf-8 -*- # author : KDr2 # BohuTANG @2012 # import sys import random import string import time import nessdb def gen_random_str(len): return ''.join([random.choice('abcdefghijklmnoprstuvwyxzABCDEFGHIJKLMNOPRSTUVWXYZ') for i in range(len)]) def ness_open(db_name): return nessdb.Ne...
21.428571
106
0.645556
0
0
0
0
0
0
0
0
254
0.282222
0e42a4face2412bee6e21ed42755d4303ac0f51b
1,588
py
Python
tests/extensions/openapi/test_external_docs.py
JonarsLi/sanic-ext
58b2fe7e5e67e5cc2766bfb61be2e8d0f28115f4
[ "MIT" ]
14
2021-06-18T12:16:02.000Z
2022-02-10T09:36:50.000Z
tests/extensions/openapi/test_external_docs.py
JonarsLi/sanic-ext
58b2fe7e5e67e5cc2766bfb61be2e8d0f28115f4
[ "MIT" ]
37
2021-10-03T10:47:12.000Z
2022-03-24T10:08:20.000Z
tests/extensions/openapi/test_external_docs.py
JonarsLi/sanic-ext
58b2fe7e5e67e5cc2766bfb61be2e8d0f28115f4
[ "MIT" ]
7
2021-10-03T09:43:36.000Z
2022-03-27T14:29:49.000Z
from sanic import Request, Sanic from sanic.response import text from sanic_ext import openapi from sanic_ext.extensions.openapi.definitions import ExternalDocumentation from utils import get_spec def test_external_docs(app: Sanic): @app.route("/test0") @openapi.document("http://example.com/more", "Find more...
28.357143
79
0.612091
0
0
0
0
1,016
0.639798
508
0.319899
508
0.319899
0e4381d0af212201e83d5139e926caa71f20f745
2,472
py
Python
cube2/server.py
bobssup/kripken
a19f0aca7b9251c08dd930fa670eaa72db0806f7
[ "CC-BY-3.0" ]
892
2015-01-06T13:51:18.000Z
2022-03-28T08:54:27.000Z
cube2/server.py
bobssup/kripken
a19f0aca7b9251c08dd930fa670eaa72db0806f7
[ "CC-BY-3.0" ]
37
2015-01-24T19:50:38.000Z
2022-03-11T01:51:17.000Z
cube2/server.py
bobssup/kripken
a19f0aca7b9251c08dd930fa670eaa72db0806f7
[ "CC-BY-3.0" ]
264
2015-01-31T14:31:47.000Z
2022-03-30T16:46:54.000Z
#!/usr/bin/env python ''' Sets up websocket server support to run the server in one HTML page and the client in another HTML page. Each connects to a websocket server, which we relay together, so the two pages think they are connected to each other (see websocket_bi tests in emscripten). Instructions for websocket ne...
37.454545
262
0.767395
0
0
0
0
0
0
0
0
1,364
0.55178
0e44e2abfa92ca47f5eabcd2125c3a73c5fbe7bb
13,106
py
Python
apps/api/modules/bkdata_aiops.py
qqqqqie/bk-log
1765f1901aafaa6fb6a57b8db5d35dd32b3cb5c1
[ "MIT" ]
75
2021-07-14T09:32:36.000Z
2022-03-31T15:26:53.000Z
apps/api/modules/bkdata_aiops.py
qqqqqie/bk-log
1765f1901aafaa6fb6a57b8db5d35dd32b3cb5c1
[ "MIT" ]
561
2021-07-14T07:45:47.000Z
2022-03-31T11:41:28.000Z
apps/api/modules/bkdata_aiops.py
qqqqqie/bk-log
1765f1901aafaa6fb6a57b8db5d35dd32b3cb5c1
[ "MIT" ]
41
2021-07-14T07:39:50.000Z
2022-03-25T09:22:18.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-LOG 蓝鲸日志平台 available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-LOG 蓝鲸日志平台 is licensed under the MIT License. License for BK-LOG 蓝鲸日志平台: ------------------------------------------------...
43.254125
120
0.628872
11,863
0.872023
0
0
0
0
0
0
4,161
0.305866
0e45678b0b57475a51da878ed9c0ce4e52c29673
7,106
py
Python
inverse_test.py
Sangbaek/clas12-nflows
c69ce0d962b87e793a996c6cb263389f30c2bcb5
[ "MIT" ]
null
null
null
inverse_test.py
Sangbaek/clas12-nflows
c69ce0d962b87e793a996c6cb263389f30c2bcb5
[ "MIT" ]
null
null
null
inverse_test.py
Sangbaek/clas12-nflows
c69ce0d962b87e793a996c6cb263389f30c2bcb5
[ "MIT" ]
null
null
null
import pickle import matplotlib.pyplot as plt import matplotlib as mpl #mpl.use('pdf') import itertools import numpy as np from datetime import datetime import torch from torch import nn from torch import optim import os import sys import pandas as pd from utils.utilities import meter from utils import make_histos fro...
36.071066
136
0.744582
0
0
0
0
0
0
0
0
1,188
0.167183
0e458fb301ccce1987472231c3b00c1628040969
13,195
py
Python
pytket/pytket/passes/script.py
NewGitter2017/tket
6ff81af26280770bf2ca80bfb2140e8fa98182aa
[ "Apache-2.0" ]
null
null
null
pytket/pytket/passes/script.py
NewGitter2017/tket
6ff81af26280770bf2ca80bfb2140e8fa98182aa
[ "Apache-2.0" ]
null
null
null
pytket/pytket/passes/script.py
NewGitter2017/tket
6ff81af26280770bf2ca80bfb2140e8fa98182aa
[ "Apache-2.0" ]
null
null
null
# Copyright 2019-2021 Cambridge Quantum Computing # # 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...
30.125571
88
0.721031
5,855
0.443729
0
0
0
0
0
0
5,996
0.454415
0e465c7c5db67591f279b01b569e5ac410ce6462
506
py
Python
terrascript/data/nomad.py
amlodzianowski/python-terrascript
1111affe6cd30d9b8b7bc74ae4e27590f7d4dc49
[ "BSD-2-Clause" ]
null
null
null
terrascript/data/nomad.py
amlodzianowski/python-terrascript
1111affe6cd30d9b8b7bc74ae4e27590f7d4dc49
[ "BSD-2-Clause" ]
null
null
null
terrascript/data/nomad.py
amlodzianowski/python-terrascript
1111affe6cd30d9b8b7bc74ae4e27590f7d4dc49
[ "BSD-2-Clause" ]
null
null
null
# terrascript/data/nomad.py import terrascript class nomad_acl_policy(terrascript.Data): pass class nomad_acl_token(terrascript.Data): pass class nomad_deployments(terrascript.Data): pass class nomad_job(terrascript.Data): pass class nomad_namespaces(terrascript.Data): pass class nomad_...
13.315789
42
0.715415
290
0.573123
0
0
0
0
0
0
125
0.247036
0e495fc33b825c87732c91ad66b85197faa78b41
690
py
Python
features/environment.py
mfuhrmann/meshping
01355b89cf28c2b43b81d7c0c5edfde4840139a0
[ "MIT" ]
17
2019-12-06T16:01:41.000Z
2022-02-24T11:04:09.000Z
features/environment.py
mfuhrmann/meshping
01355b89cf28c2b43b81d7c0c5edfde4840139a0
[ "MIT" ]
23
2019-12-05T19:18:59.000Z
2021-09-03T13:41:06.000Z
features/environment.py
mfuhrmann/meshping
01355b89cf28c2b43b81d7c0c5edfde4840139a0
[ "MIT" ]
6
2019-12-06T02:51:02.000Z
2021-01-31T08:39:59.000Z
import json import threading from http.server import HTTPServer, BaseHTTPRequestHandler def before_all(context): context.peer_queue = None class DummyPeeringHandler(BaseHTTPRequestHandler): def do_POST(self): content_length = int(self.headers['Content-Length']) body = self.rfi...
32.857143
80
0.685507
364
0.527536
0
0
0
0
0
0
25
0.036232
0e49791b45f3761db0f53cd99453bc620539bd37
456
py
Python
Modulo 02/exercicios/d041.py
euyag/python-cursoemvideo
d2f684854d926e38ea193816a6c7d2c48d25aa3d
[ "MIT" ]
2
2021-06-22T00:15:11.000Z
2021-08-02T11:28:56.000Z
Modulo 02/exercicios/d041.py
euyag/python-cursoemvideo
d2f684854d926e38ea193816a6c7d2c48d25aa3d
[ "MIT" ]
null
null
null
Modulo 02/exercicios/d041.py
euyag/python-cursoemvideo
d2f684854d926e38ea193816a6c7d2c48d25aa3d
[ "MIT" ]
null
null
null
print('===== DESAFIO 041 =====') nascimento = int(input('Digite o ano q vc nasceu: ')) idade = 2021 - nascimento print(f'vc tem {idade} anos') if idade <= 9: print('vc é um nadador mirim') elif idade > 9 and idade <= 14: print('vc é um nadador infantil') elif idade > 14 and idade <= 19: print('vc é um na...
26.823529
53
0.631579
0
0
0
0
0
0
0
0
201
0.436009
0e49ee0d9a2475f1064dcee3fd80cff56b6b1889
165
py
Python
project/settings/prod/cors.py
danielbraga/hcap
a3ca0d6963cff19ed6ec0436cce84e2b41615454
[ "MIT" ]
null
null
null
project/settings/prod/cors.py
danielbraga/hcap
a3ca0d6963cff19ed6ec0436cce84e2b41615454
[ "MIT" ]
null
null
null
project/settings/prod/cors.py
danielbraga/hcap
a3ca0d6963cff19ed6ec0436cce84e2b41615454
[ "MIT" ]
null
null
null
""" django: https://docs.djangoproject.com/en/3.0/ref/settings/#allowed-hosts """ from ..env import env ALLOWED_HOSTS = env("HCAP__ALLOWED_HOSTS", default=[])
18.333333
69
0.70303
0
0
0
0
0
0
0
0
106
0.642424
0e4cabb3fb9a2919ca8974672393ca3fb3160fbf
16,677
py
Python
nt_m.py
kwj1399/ryu_app
df094994e09788053b47aad1c6164033e6bd4c14
[ "MIT" ]
null
null
null
nt_m.py
kwj1399/ryu_app
df094994e09788053b47aad1c6164033e6bd4c14
[ "MIT" ]
null
null
null
nt_m.py
kwj1399/ryu_app
df094994e09788053b47aad1c6164033e6bd4c14
[ "MIT" ]
null
null
null
''' FileName: Author:KWJ(kyson) UpdateTime:2016/10/10 Introduction: ''' from __future__ import division import copy from operator import attrgetter from ryu.base import app_manager from ryu.base.app_manager import lookup_service_brick from ryu.controller.handler import CONFIG_DISPATCHER, MAIN_DISPATCHER, DEAD_DISPATC...
39.518957
86
0.538166
16,039
0.961744
0
0
8,914
0.534509
0
0
2,952
0.17701
0e4ecce9b8ee44d7a2ecb07d04597a919fe2daa5
146
py
Python
euler_01.py
zhou-le/euler
78033a10bc186fbd2a004760966e15724b0a98f9
[ "Apache-2.0" ]
2
2018-12-24T15:36:00.000Z
2021-06-07T09:35:59.000Z
euler_01.py
zhou-le/Euler
78033a10bc186fbd2a004760966e15724b0a98f9
[ "Apache-2.0" ]
null
null
null
euler_01.py
zhou-le/Euler
78033a10bc186fbd2a004760966e15724b0a98f9
[ "Apache-2.0" ]
null
null
null
#coding: utf-8 #date: 2018/7/30 19:07 #author: zhou_le # 求1000以下3和5的倍数之和 print(sum([i for i in range(1000) if i % 3 == 0 or i % 5 == 0]))
20.857143
64
0.59589
0
0
0
0
0
0
0
0
92
0.560976
0e4f69138aecd1313f122259efebb214ee565651
19,502
py
Python
venv/Lib/site-packages/tensorboard/uploader/proto/server_info_pb2.py
masterrey/SmartMachines
e48aff314b1171a13a39c3a41230d900bf090a1f
[ "Apache-2.0" ]
353
2020-12-10T10:47:17.000Z
2022-03-31T23:08:29.000Z
venv/Lib/site-packages/tensorboard/uploader/proto/server_info_pb2.py
masterrey/SmartMachines
e48aff314b1171a13a39c3a41230d900bf090a1f
[ "Apache-2.0" ]
80
2020-12-10T09:54:22.000Z
2022-03-30T22:08:45.000Z
venv/Lib/site-packages/tensorboard/uploader/proto/server_info_pb2.py
masterrey/SmartMachines
e48aff314b1171a13a39c3a41230d900bf090a1f
[ "Apache-2.0" ]
63
2020-12-10T17:10:34.000Z
2022-03-28T16:27:07.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: tensorboard/uploader/proto/server_info.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor a...
40.127572
1,788
0.762383
0
0
0
0
0
0
0
0
5,818
0.298328
0e506f5e878b4e3e3f626f39450924970f216a72
2,192
py
Python
pandas/_testing/_hypothesis.py
dycloud-chan/pandas
39ccb352b53e9b5b694c4f7f044774f9c3677e98
[ "BSD-3-Clause" ]
1
2021-09-15T07:45:23.000Z
2021-09-15T07:45:23.000Z
pandas/_testing/_hypothesis.py
dycloud-chan/pandas
39ccb352b53e9b5b694c4f7f044774f9c3677e98
[ "BSD-3-Clause" ]
null
null
null
pandas/_testing/_hypothesis.py
dycloud-chan/pandas
39ccb352b53e9b5b694c4f7f044774f9c3677e98
[ "BSD-3-Clause" ]
1
2020-01-03T17:02:48.000Z
2020-01-03T17:02:48.000Z
""" Hypothesis data generator helpers. """ from datetime import datetime from hypothesis import strategies as st from hypothesis.extra.dateutil import timezones as dateutil_timezones from hypothesis.extra.pytz import timezones as pytz_timezones from pandas.compat import is_platform_windows import pandas as pd from ...
25.488372
86
0.675639
0
0
0
0
0
0
0
0
194
0.088504
0e5101dd7fe4f67284e5978fa838a8443cbd53ae
1,397
py
Python
export_readiness/migrations/0058_auto_20190912_1326.py
uktrade/directory-cms
8c8d13ce29ea74ddce7a40f3dd29c8847145d549
[ "MIT" ]
6
2018-03-20T11:19:07.000Z
2021-10-05T07:53:11.000Z
export_readiness/migrations/0058_auto_20190912_1326.py
uktrade/directory-cms
8c8d13ce29ea74ddce7a40f3dd29c8847145d549
[ "MIT" ]
802
2018-02-05T14:16:13.000Z
2022-02-10T10:59:21.000Z
export_readiness/migrations/0058_auto_20190912_1326.py
uktrade/directory-cms
8c8d13ce29ea74ddce7a40f3dd29c8847145d549
[ "MIT" ]
6
2019-01-22T13:19:37.000Z
2019-07-01T10:35:26.000Z
# Generated by Django 2.2.4 on 2019-09-12 13:26 from django.db import migrations INDUSTRY_NAMES = ( 'Advanced manufacturing', 'Aerospace', 'Agri-technology', 'Automotive', 'Biotechnology', 'Cleantech', 'Construction ', 'Consumer products', 'Cyber security', 'E-commerce', '...
22.174603
100
0.65927
250
0.178955
0
0
0
0
0
0
615
0.440229
0e514b7610b489149791d3b281551aebbd6d433b
4,656
py
Python
bakery_cli/utils.py
lowks/fontbakery-cli
514cc010c1118bbcef078aeb64a87add05322c4a
[ "Apache-2.0" ]
1
2020-06-17T04:44:42.000Z
2020-06-17T04:44:42.000Z
bakery_cli/utils.py
lowks/fontbakery-cli
514cc010c1118bbcef078aeb64a87add05322c4a
[ "Apache-2.0" ]
null
null
null
bakery_cli/utils.py
lowks/fontbakery-cli
514cc010c1118bbcef078aeb64a87add05322c4a
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # Copyright 2013 The Font Bakery Authors. 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. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless re...
32.110345
78
0.559708
3,499
0.751503
0
0
0
0
0
0
1,650
0.354381
0e51b7b58041b179a5ca569376e14c8b5faa8e01
100
py
Python
src/spaczz/regex/__init__.py
brunobg/spaczz
69c73cad16f65f01be2202ecc0c836dd03b42b61
[ "MIT" ]
153
2020-07-07T01:26:25.000Z
2022-03-31T23:47:00.000Z
src/spaczz/regex/__init__.py
brunobg/spaczz
69c73cad16f65f01be2202ecc0c836dd03b42b61
[ "MIT" ]
38
2020-07-15T02:29:34.000Z
2021-08-15T21:32:54.000Z
src/spaczz/regex/__init__.py
brunobg/spaczz
69c73cad16f65f01be2202ecc0c836dd03b42b61
[ "MIT" ]
20
2020-07-07T15:41:05.000Z
2022-02-21T19:28:22.000Z
"""Module for regex components.""" from .regexconfig import RegexConfig __all__ = ["RegexConfig"]
16.666667
36
0.74
0
0
0
0
0
0
0
0
47
0.47
0e5337ed20b60dbcf33738cf8d37c01caaa201c9
1,968
py
Python
imagetagger/imagetagger/annotations/migrations/0006_auto_20170826_1431.py
jbargu/imagetagger
216ac5e73902abadc1880321e285e68c55bdfd3d
[ "MIT" ]
212
2017-07-06T23:01:44.000Z
2022-03-24T04:44:49.000Z
imagetagger/imagetagger/annotations/migrations/0006_auto_20170826_1431.py
jbargu/imagetagger
216ac5e73902abadc1880321e285e68c55bdfd3d
[ "MIT" ]
157
2017-07-24T10:03:41.000Z
2022-03-12T01:03:47.000Z
imagetagger/imagetagger/annotations/migrations/0006_auto_20170826_1431.py
jbargu/imagetagger
216ac5e73902abadc1880321e285e68c55bdfd3d
[ "MIT" ]
54
2017-11-07T00:40:50.000Z
2022-02-26T14:22:13.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-08-26 12:31 from __future__ import unicode_literals import json import django.contrib.postgres.fields.jsonb from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('annotations', '0005_auto_20170826_1424'), ...
33.355932
77
0.601626
1,761
0.894817
0
0
0
0
0
0
400
0.203252
0e55028498c318134fe1dbd586569be4e5fbb449
1,778
py
Python
process_csv.py
Blue9/llvm-pass-skeleton
e6be3d0f1a4d3f73128263ccbb81e587309b869b
[ "MIT" ]
null
null
null
process_csv.py
Blue9/llvm-pass-skeleton
e6be3d0f1a4d3f73128263ccbb81e587309b869b
[ "MIT" ]
null
null
null
process_csv.py
Blue9/llvm-pass-skeleton
e6be3d0f1a4d3f73128263ccbb81e587309b869b
[ "MIT" ]
null
null
null
import os import statistics import sys def get_mean_std(out_csv): with open(out_csv) as f: lines = f.readlines() tests = dict() for t in lines[1:]: t = t.split(",") test_name = t[0].strip() opt = float(t[2].strip()) tests[test_name] = tests.get(test_name, list()) + [...
32.925926
68
0.558493
0
0
0
0
0
0
0
0
175
0.098425
0e55f8fc713d89522d978644224a64f2679af055
12,686
py
Python
run_cnn.py
tlkh/mini-dlperf
7d40bbad98ac68d4c496fe4b69d0de80ef0fffc6
[ "MIT" ]
null
null
null
run_cnn.py
tlkh/mini-dlperf
7d40bbad98ac68d4c496fe4b69d0de80ef0fffc6
[ "MIT" ]
37
2020-09-13T08:45:04.000Z
2022-03-15T01:19:05.000Z
run_cnn.py
tlkh/mini-dlperf
7d40bbad98ac68d4c496fe4b69d0de80ef0fffc6
[ "MIT" ]
null
null
null
import argparse parser = argparse.ArgumentParser() parser.add_argument("--rn152", action="store_true", default=False, help="Train a larger ResNet-152 model instead of ResNet-50") parser.add_argument("--rn50v2", action="store_true", default=False, help="Train ResNet-50 V2 model in...
38.210843
119
0.692023
0
0
0
0
1,302
0.102633
0
0
2,608
0.205581
0e5a510f773a00ee259b3eb4de0fd3c02d65e9b1
5,591
py
Python
containers/forms.py
timothyjlaurent/shipyard
400b6455fc249ad096bc849f2f27385cfe2daa6d
[ "Apache-2.0" ]
1
2016-03-24T22:33:09.000Z
2016-03-24T22:33:09.000Z
containers/forms.py
dragon9783/shipyard
a7cfb15efed01823077825e0b3c3dd6268017177
[ "Apache-2.0" ]
1
2021-06-10T23:32:33.000Z
2021-06-10T23:32:33.000Z
containers/forms.py
timothyjlaurent/shipyard
400b6455fc249ad096bc849f2f27385cfe2daa6d
[ "Apache-2.0" ]
null
null
null
# Copyright Evan Hazlett and 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 applicable law or agreed to ...
41.723881
114
0.655876
4,150
0.742264
0
0
0
0
0
0
1,430
0.255768
0e5a54810fbef414231a098e12c3d3a8fbf58189
343
py
Python
2020/01-1.py
matteodelabre/advent-of-code
a6f51222b52f948cec6aa94cb7c50bcfd4f53dc1
[ "CC0-1.0" ]
1
2021-12-02T05:16:11.000Z
2021-12-02T05:16:11.000Z
2020/01-1.py
matteodelabre/advent-of-code
a6f51222b52f948cec6aa94cb7c50bcfd4f53dc1
[ "CC0-1.0" ]
null
null
null
2020/01-1.py
matteodelabre/advent-of-code
a6f51222b52f948cec6aa94cb7c50bcfd4f53dc1
[ "CC0-1.0" ]
null
null
null
rows = [] try: while True: rows.append(int(input())) except EOFError: pass rows.sort() goal = 2020 l = 0 r = len(rows) - 1 while rows[l] + rows[r] != goal and l < r: if rows[l] + rows[r] < goal: l += 1 else: r -= 1 if rows[l] + rows[r] == goal: print(rows[l] * rows[r]) e...
13.72
42
0.498542
0
0
0
0
0
0
0
0
6
0.017493
0e5a5ab9eb95edd4197741674bf04156101779a0
1,543
py
Python
castadmin/urls.py
flyinactor91/Rocky-Rollcall
ab2bdbbd5f5920e709a09d1b1182a388955211d9
[ "MIT" ]
2
2019-09-03T06:08:35.000Z
2020-07-19T06:57:17.000Z
castadmin/urls.py
flyinactor91/Rocky-Rollcall
ab2bdbbd5f5920e709a09d1b1182a388955211d9
[ "MIT" ]
null
null
null
castadmin/urls.py
flyinactor91/Rocky-Rollcall
ab2bdbbd5f5920e709a09d1b1182a388955211d9
[ "MIT" ]
null
null
null
""" Cast admin URL patterns """ from django.urls import path from . import views _s = '<slug:slug>/' urlpatterns = [ path(_s, views.cast_admin, name='cast_admin'), path(_s+'section/new/', views.section_new, name='cast_section_new'), path(_s+'section/<int:pk>/edit/', views.section_edit, name='cast_section...
53.206897
114
0.72197
0
0
0
0
0
0
0
0
736
0.476993
0e5a60a46aeb18c5fcebbf2deb1ab0ad21f787d1
24
py
Python
asn1tools/version.py
eerimoq/asn1tools
93e5fc2922c191e4a593507d4bc8847341fc9f40
[ "MIT" ]
198
2017-08-04T21:49:15.000Z
2022-03-26T10:11:21.000Z
asn1tools/version.py
eerimoq/asn1tools
93e5fc2922c191e4a593507d4bc8847341fc9f40
[ "MIT" ]
144
2017-09-29T12:06:51.000Z
2022-03-29T13:04:44.000Z
asn1tools/version.py
eerimoq/asn1tools
93e5fc2922c191e4a593507d4bc8847341fc9f40
[ "MIT" ]
73
2017-10-09T13:33:28.000Z
2022-03-11T01:35:22.000Z
__version__ = '0.159.0'
12
23
0.666667
0
0
0
0
0
0
0
0
9
0.375
0e5bec43e7ad02e792ccbf34c4c1ba79010d99ec
143
py
Python
tags/ctx.py
NoUMelon/phen-cogs
f8d4de3a91f428114d66fd36ba38ecbd5ace83a3
[ "MIT" ]
1
2021-06-01T10:12:09.000Z
2021-06-01T10:12:09.000Z
tags/ctx.py
NoUMelon/phen-cogs
f8d4de3a91f428114d66fd36ba38ecbd5ace83a3
[ "MIT" ]
null
null
null
tags/ctx.py
NoUMelon/phen-cogs
f8d4de3a91f428114d66fd36ba38ecbd5ace83a3
[ "MIT" ]
null
null
null
from redbot.core.commands import Context class SilentContext(Context): async def send(self, content: str = None, **kwargs): pass
20.428571
56
0.699301
99
0.692308
0
0
0
0
65
0.454545
0
0
0e5c6b3710e58e819d07a446f732bb58ff060f7c
545
py
Python
Liver_segmentation/find_and_delete_empty_images.py
6895mahfuzgit/PyTorch-and-Monai-for-AI-Healthcare-Imaging-
9fbd1e2863599f58ccd5bb033ecf4c4de4017eb1
[ "Apache-2.0" ]
null
null
null
Liver_segmentation/find_and_delete_empty_images.py
6895mahfuzgit/PyTorch-and-Monai-for-AI-Healthcare-Imaging-
9fbd1e2863599f58ccd5bb033ecf4c4de4017eb1
[ "Apache-2.0" ]
null
null
null
Liver_segmentation/find_and_delete_empty_images.py
6895mahfuzgit/PyTorch-and-Monai-for-AI-Healthcare-Imaging-
9fbd1e2863599f58ccd5bb033ecf4c4de4017eb1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Jan 17 21:33:56 2022 @author: mahfuz """ from glob import glob import nibabel as nif import numpy as np input_path_lables = r'C:\Users\mahfu\Desktop\Codes\nifiti_files\lables\*' imput_labels = glob(input_path_lables) for patient in imput_labels: nifti_file = nif.load(...
21.8
73
0.684404
0
0
0
0
0
0
0
0
160
0.293578
0e5ca3a4b73066c37affc89f2d0c6027191e7c14
4,873
py
Python
pax/tasks/tasks/classification.py
epfml/pax
26844d438d6f86889bbaeebc517199951af065bb
[ "Apache-2.0" ]
3
2022-02-28T14:41:02.000Z
2022-03-02T12:19:02.000Z
pax/tasks/tasks/classification.py
epfml/pax
26844d438d6f86889bbaeebc517199951af065bb
[ "Apache-2.0" ]
null
null
null
pax/tasks/tasks/classification.py
epfml/pax
26844d438d6f86889bbaeebc517199951af065bb
[ "Apache-2.0" ]
null
null
null
from typing import Mapping import pax.tasks.registry as registry import regex as re import torch from pax.tasks.datasets.api import Batch from pax.tasks.models.api import Buffers, Model, Params, Tuple from pax.tasks.tasks.api import Task DEFAULT_DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu") ...
31.642857
132
0.640468
4,058
0.832752
0
0
71
0.01457
0
0
443
0.090909
0e5ea68ff93ca844710804b051686a214341d76f
278
py
Python
python/ex103_validacao_dados.py
lucasdiogomartins/curso-em-video
9da92b6255a11021f719a9e0ce994db639e1ac38
[ "MIT" ]
null
null
null
python/ex103_validacao_dados.py
lucasdiogomartins/curso-em-video
9da92b6255a11021f719a9e0ce994db639e1ac38
[ "MIT" ]
null
null
null
python/ex103_validacao_dados.py
lucasdiogomartins/curso-em-video
9da92b6255a11021f719a9e0ce994db639e1ac38
[ "MIT" ]
null
null
null
def mostrar(n='', g=''): if n == '': n = '<desconhecido>' if not g.isnumeric(): g = 0 return f'O jogador {n} fez {g} gol(s) no campeonato' # Main nome = input('Nome do Jogador: ').title() gols = input('Número de Gols: ') print(mostrar(nome, gols))
21.384615
56
0.55036
0
0
0
0
0
0
0
0
111
0.397849
0e5ee46bdd0854fb83ad5b03e98e62a0395d3652
57,678
py
Python
tests/integration/boxscore/test_ncaab_boxscore.py
MArtinherz/sportsipy
24f4c1d5e3bb8ecc56e21568961588491e9cfd2a
[ "MIT" ]
221
2018-05-15T19:48:03.000Z
2021-01-05T15:36:21.000Z
tests/integration/boxscore/test_ncaab_boxscore.py
MArtinherz/sportsipy
24f4c1d5e3bb8ecc56e21568961588491e9cfd2a
[ "MIT" ]
502
2018-07-25T03:09:26.000Z
2021-01-06T16:07:02.000Z
tests/integration/boxscore/test_ncaab_boxscore.py
MArtinherz/sportsipy
24f4c1d5e3bb8ecc56e21568961588491e9cfd2a
[ "MIT" ]
72
2021-01-21T13:17:00.000Z
2022-03-31T21:43:25.000Z
import mock import os import pandas as pd from datetime import datetime from flexmock import flexmock from sportsipy import utils from sportsipy.constants import HOME from sportsipy.ncaab.constants import BOXSCORES_URL, SCHEDULE_URL from sportsipy.ncaab.boxscore import Boxscore, Boxscores MONTH = 1 YEAR = 2020 BOXSC...
41.110478
78
0.437793
56,831
0.985315
0
0
34,853
0.604269
0
0
25,882
0.448733
0e609bb7fbbaaaa62dd52003ec698921717c72aa
458
py
Python
tests/test_elasticsearch.py
ankane/python-timeouts
bf939d5ef3bc8391d9ca8c2750c765fbd0bf63ae
[ "MIT" ]
6
2021-10-01T06:38:22.000Z
2022-03-23T09:22:06.000Z
tests/test_elasticsearch.py
ankane/python-timeouts
bf939d5ef3bc8391d9ca8c2750c765fbd0bf63ae
[ "MIT" ]
null
null
null
tests/test_elasticsearch.py
ankane/python-timeouts
bf939d5ef3bc8391d9ca8c2750c765fbd0bf63ae
[ "MIT" ]
null
null
null
from .conftest import TestTimeouts from elasticsearch import Elasticsearch from elasticsearch.exceptions import ConnectionError class TestElasticsearch(TestTimeouts): def test_connect(self): with self.raises(ConnectionError): Elasticsearch([self.connect_url()], timeout=1).cluster.health() ...
32.714286
75
0.733624
327
0.713974
0
0
0
0
0
0
0
0
0e60e9c2253d2e72211a2da9715165e839d0f5a9
1,179
py
Python
mediasync/management/commands/syncmedia.py
kennethreitz-archive/django-mediasync
93baadda6c8edfebf065e92a63aba588b9a0311e
[ "BSD-3-Clause" ]
2
2015-11-05T08:54:40.000Z
2016-03-01T22:14:29.000Z
mediasync/management/commands/syncmedia.py
kennethreitz-archive/django-mediasync
93baadda6c8edfebf065e92a63aba588b9a0311e
[ "BSD-3-Clause" ]
null
null
null
mediasync/management/commands/syncmedia.py
kennethreitz-archive/django-mediasync
93baadda6c8edfebf065e92a63aba588b9a0311e
[ "BSD-3-Clause" ]
null
null
null
from django.core.management.base import BaseCommand, CommandError from optparse import make_option from mediasync.conf import msettings import mediasync import time class Command(BaseCommand): help = "Sync local media with remote client" args = '[options]' requires_model_validation = False ...
32.75
112
0.597116
1,013
0.859203
0
0
0
0
0
0
250
0.212044
0e6288801a87bd532b89f29032eb854a3c39498f
751
py
Python
coptim/functions/rosenbrock.py
cmazzaanthony/Optimization_Algorithms
8dcfe1fcadbe4b3908b33dbc0f14f6d5c0178ce5
[ "MIT" ]
3
2019-06-20T17:26:07.000Z
2019-07-02T22:14:38.000Z
coptim/functions/rosenbrock.py
cmazzaanthony/coptim
8dcfe1fcadbe4b3908b33dbc0f14f6d5c0178ce5
[ "MIT" ]
null
null
null
coptim/functions/rosenbrock.py
cmazzaanthony/coptim
8dcfe1fcadbe4b3908b33dbc0f14f6d5c0178ce5
[ "MIT" ]
null
null
null
import numpy as np from coptim.function import Function class Rosenbrock(Function): def eval(self, x): assert len(x) == 2, '2 dimensional input only.' return 100 * (x[1] - x[0] ** 2) ** 2 + (1 - x[0]) ** 2 def gradient(self, x): assert len(x) == 2, '2 dimensional input only.' ...
28.884615
74
0.49534
692
0.921438
0
0
0
0
0
0
81
0.107856
0e649134de3b3b4647c82c4e0a83af296513503f
601
py
Python
http-server.py
itamaro/python-http
9a5d3700b77117aaa3681dbb6e335431ec6205fc
[ "Apache-2.0" ]
null
null
null
http-server.py
itamaro/python-http
9a5d3700b77117aaa3681dbb6e335431ec6205fc
[ "Apache-2.0" ]
3
2018-06-17T09:16:31.000Z
2018-06-17T09:34:02.000Z
http-server.py
itamaro/python-http
9a5d3700b77117aaa3681dbb6e335431ec6205fc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python from http.server import BaseHTTPRequestHandler, HTTPServer from os import curdir, sep PORT_NUMBER = 8080 class myHandler(BaseHTTPRequestHandler): #Handler for the GET requests def do_GET(self): self.send_response(200) self.send_header('Content-type','image/png') self.end_headers() with o...
23.115385
58
0.74376
266
0.442596
0
0
0
0
0
0
132
0.219634
0e6501df6c0fb85542839cee838fc4b4c8a3f879
868
py
Python
lahja/tools/benchmark/typing.py
vaporyproject/lahja
fafc38106863f89ae04a52f6327e6ec5f42b2beb
[ "MIT" ]
null
null
null
lahja/tools/benchmark/typing.py
vaporyproject/lahja
fafc38106863f89ae04a52f6327e6ec5f42b2beb
[ "MIT" ]
null
null
null
lahja/tools/benchmark/typing.py
vaporyproject/lahja
fafc38106863f89ae04a52f6327e6ec5f42b2beb
[ "MIT" ]
null
null
null
from typing import ( NamedTuple, ) from lahja import ( BaseEvent, ) class RawMeasureEntry(NamedTuple): sent_at: float received_at: float class CrunchedMeasureEntry(NamedTuple): sent_at: float received_at: float duration: float class PerfMeasureEvent(BaseEvent): def __init__(self,...
17.714286
75
0.691244
773
0.890553
0
0
0
0
0
0
0
0
0e65f0696679963eaa062eafd0dbac4752aacf94
531
py
Python
players/urls.py
hleejr/hofAI
d4135a87071eb272e045ec427bd4cf2fedee9307
[ "FTL" ]
null
null
null
players/urls.py
hleejr/hofAI
d4135a87071eb272e045ec427bd4cf2fedee9307
[ "FTL" ]
null
null
null
players/urls.py
hleejr/hofAI
d4135a87071eb272e045ec427bd4cf2fedee9307
[ "FTL" ]
1
2021-08-19T22:26:16.000Z
2021-08-19T22:26:16.000Z
from django.urls import path from . import views urlpatterns = [ path('nba/', views.PlayerListView.as_view(), name='nba-list-page'), path('nba/<int:id>/', views.PlayerDetailView.as_view(), name='nba-detail-page'), path('nba/search/', views.PlayerSearch.as_view(), name='nba-search-page'), path('nfl/', v...
44.25
84
0.676083
0
0
0
0
0
0
0
0
166
0.312618
0e677bb51b35c500b63970611b9dbe8b1db2dde6
292
py
Python
django2/demo/meeting/views.py
Gozeon/code-collections
7304e2b9c4c91a809125198d22cf40dcbb45a23b
[ "MIT" ]
null
null
null
django2/demo/meeting/views.py
Gozeon/code-collections
7304e2b9c4c91a809125198d22cf40dcbb45a23b
[ "MIT" ]
1
2020-07-17T09:25:42.000Z
2020-07-17T09:25:42.000Z
django2/demo/meeting/views.py
Gozeon/code-collections
7304e2b9c4c91a809125198d22cf40dcbb45a23b
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse # Create your views here. def hello(request): return HttpResponse("Hello world") def date(request, year, month, day): return HttpResponse({ year: year, month: month, day: day })
17.176471
38
0.660959
0
0
0
0
0
0
0
0
38
0.130137
0e67c3d1189cc9a2fa0ae70c15b2f561c7bd2b47
404
py
Python
Semester2/bottles.py
ConstantineLinardakis/Programming1Portfolio
9062590de87e495ecf19b759a5d7a132a6982e3b
[ "MIT" ]
1
2020-11-23T19:02:21.000Z
2020-11-23T19:02:21.000Z
Semester2/bottles.py
ConstantineLinardakis/Programming1Portfolio
9062590de87e495ecf19b759a5d7a132a6982e3b
[ "MIT" ]
null
null
null
Semester2/bottles.py
ConstantineLinardakis/Programming1Portfolio
9062590de87e495ecf19b759a5d7a132a6982e3b
[ "MIT" ]
null
null
null
#loop bottles = 99 while (bottles > 0): if (bottles > 1): print bottles, "bottles of root beer on the wall", bottles, "bottles of root beer" print "Take one down pass it around,", bottles, "bottles of root beer on the wall" else: print bottles, "bottles of root beer on...
21.263158
90
0.591584
0
0
0
0
0
0
0
0
181
0.44802
0e6a1dd764d9575734fedccbb49686086ffb62aa
6,574
py
Python
deepcompton/scripts/CreateDatasetWithUncertainties.py
vuillaut/DeepIntegralCompton
f7f6811401d6b234a615742e4f6d22ac46e91b2f
[ "MIT" ]
1
2021-12-06T16:35:20.000Z
2021-12-06T16:35:20.000Z
deepcompton/scripts/CreateDatasetWithUncertainties.py
vuillaut/DeepIntegralCompton
f7f6811401d6b234a615742e4f6d22ac46e91b2f
[ "MIT" ]
1
2021-12-07T00:45:31.000Z
2021-12-08T09:13:45.000Z
deepcompton/scripts/CreateDatasetWithUncertainties.py
vuillaut/DeepIntegralCompton
f7f6811401d6b234a615742e4f6d22ac46e91b2f
[ "MIT" ]
2
2021-12-06T16:43:46.000Z
2021-12-06T16:49:54.000Z
# Deep Learning applique a l'imagerie Compton avec les donnees du satellite INTEGRAL # Hackatlon AstroInfo 2021 ##___ Importations import numpy as np import matplotlib.pyplot as plt import Utilitaires_Compton as compton import pickle as pkl from os import listdir from sys import setrecursionlimit # ___ Constantes...
28.960352
136
0.623973
0
0
0
0
0
0
0
0
2,740
0.416667
0e6ba2de9241ced5ccf9acb46a7611acaa103fa7
641
py
Python
insta/migrations/0003_auto_20190522_1122.py
eddyyonnie/instanicer
ae5c9994a5fcf0291a7785921655be0d5293a790
[ "MIT" ]
null
null
null
insta/migrations/0003_auto_20190522_1122.py
eddyyonnie/instanicer
ae5c9994a5fcf0291a7785921655be0d5293a790
[ "MIT" ]
4
2021-03-19T00:52:54.000Z
2021-09-08T01:00:47.000Z
insta/migrations/0003_auto_20190522_1122.py
eddyyonnie/instanicer
ae5c9994a5fcf0291a7785921655be0d5293a790
[ "MIT" ]
null
null
null
# Generated by Django 2.2.1 on 2019-05-22 08:22 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('insta', '0002_pictures'), ] operations = [ migrations.CreateModel( name='Comment', fields=[ ('id', m...
24.653846
114
0.549142
548
0.854914
0
0
0
0
0
0
116
0.180967
0e6bbfb6f7ffa48afb033c77acd475e0be9aebd8
15,134
py
Python
configs.py
wangchaodong/packaging
7061a65c72f467a0b301374a7101b0152c168ad1
[ "MIT" ]
15
2021-09-19T16:01:38.000Z
2022-03-21T02:02:24.000Z
configs.py
wangchaodong/packaging
7061a65c72f467a0b301374a7101b0152c168ad1
[ "MIT" ]
null
null
null
configs.py
wangchaodong/packaging
7061a65c72f467a0b301374a7101b0152c168ad1
[ "MIT" ]
2
2021-09-19T21:52:15.000Z
2021-09-25T14:41:02.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import enum import json import os import plistlib import subprocess import time import tools import requests python_script_debug_enable = False # 是否开启debug模式 用于测试脚本 pwd = os.getcwd() # 当前文件的路径 ios_project_path = os.path.abspath(os.path.dirname( pwd) + os.path.sep...
37.835
208
0.703317
1,166
0.074974
0
0
140
0.009002
0
0
3,582
0.230324
0e6c3388675e9316ea0f6f1944364bc28e508aaa
798
py
Python
django_etuovi/utils/testing.py
City-of-Helsinki/django-etuovi
bb8ad9dee0ebfad3bb3e53dd0857dd67eed9a4a5
[ "MIT" ]
1
2021-03-15T11:28:16.000Z
2021-03-15T11:28:16.000Z
django_etuovi/utils/testing.py
City-of-Helsinki/django-etuovi
bb8ad9dee0ebfad3bb3e53dd0857dd67eed9a4a5
[ "MIT" ]
8
2020-09-15T13:18:49.000Z
2021-06-10T20:36:45.000Z
django_etuovi/utils/testing.py
City-of-Helsinki/django-etuovi
bb8ad9dee0ebfad3bb3e53dd0857dd67eed9a4a5
[ "MIT" ]
1
2020-12-02T13:18:07.000Z
2020-12-02T13:18:07.000Z
import typing def _find_type_origin(type_hint): actual_type = typing.get_origin(type_hint) or type_hint if isinstance(actual_type, typing._SpecialForm): # case of typing.Union[…] for origins in map(_find_type_origin, typing.get_args(type_hint)): yield from origins else: ...
33.25
76
0.680451
0
0
324
0.405
0
0
0
0
111
0.13875
0e6dcc10a354feb2d47f6cf7f7092dd6f503b59c
5,128
py
Python
lauschgeraet/lgiface.py
SySS-Research/Lauschgeraet
b7c14fa3df3227109fbe2a006a4d67ba2645450f
[ "MIT" ]
25
2019-06-12T11:32:48.000Z
2022-02-25T01:57:38.000Z
lauschgeraet/lgiface.py
SySS-Research/Lauschgeraet
b7c14fa3df3227109fbe2a006a4d67ba2645450f
[ "MIT" ]
1
2019-08-22T12:50:41.000Z
2019-08-22T12:50:41.000Z
lauschgeraet/lgiface.py
SySS-Research/Lauschgeraet
b7c14fa3df3227109fbe2a006a4d67ba2645450f
[ "MIT" ]
5
2019-07-08T00:08:05.000Z
2021-09-09T03:55:41.000Z
# -*- coding: utf-8 -*- from lauschgeraet.args import args, LG_NS_MODE import subprocess import os import sys import logging import netns log = logging.getLogger(__name__) def get_script_path(): return os.path.dirname(os.path.realpath(sys.argv[0])) TEST = os.path.exists('testing') TEST_STATE = { "l...
27.132275
79
0.530811
0
0
0
0
0
0
0
0
1,825
0.35582
0e6e57c6b5f1bcaacca310fcec2b309ab9c13359
4,476
py
Python
1099parser.py
liyanghuang/1099-parser
5e1294f7ca74546228d10cb5272c47cec9bd51eb
[ "MIT" ]
2
2021-03-10T01:22:12.000Z
2021-05-18T01:11:33.000Z
1099parser.py
liyanghuang/1099-parser
5e1294f7ca74546228d10cb5272c47cec9bd51eb
[ "MIT" ]
null
null
null
1099parser.py
liyanghuang/1099-parser
5e1294f7ca74546228d10cb5272c47cec9bd51eb
[ "MIT" ]
null
null
null
import pdfplumber import re import csv from tqdm import tqdm print('(When entering file paths on windows, use \'/\' in the place of \'\\\')') pdf_path = input('Enter the file path of the 1099 pdf:\n') # open up the pdf file, keep trying until user enters valid file valid_pdf = False while not valid_pdf: try: pdf =...
41.444444
232
0.678731
0
0
0
0
0
0
0
0
1,959
0.437668
0e6f3670c8eeedc919a111469dde8bf049ce3484
365
py
Python
awards/migrations/0005_rename_avg_rate_rating_average.py
Maryan23/Laurels
cde7332ac9e5a4032a4d2da725bb5b70c66ce9ff
[ "MIT" ]
null
null
null
awards/migrations/0005_rename_avg_rate_rating_average.py
Maryan23/Laurels
cde7332ac9e5a4032a4d2da725bb5b70c66ce9ff
[ "MIT" ]
null
null
null
awards/migrations/0005_rename_avg_rate_rating_average.py
Maryan23/Laurels
cde7332ac9e5a4032a4d2da725bb5b70c66ce9ff
[ "MIT" ]
null
null
null
# Generated by Django 3.2.9 on 2021-12-13 21:01 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('awards', '0004_auto_20211213_1253'), ] operations = [ migrations.RenameField( model_name='rating', old_name='avg_rate', ...
19.210526
47
0.586301
280
0.767123
0
0
0
0
0
0
107
0.293151
0e6fd8b9f77fd0e293d000aaeb0b2a9d87bb7355
3,955
py
Python
Updated_Self_supervised_training/vq_vae_decoder.py
nerdk312/AMDIM_Decoder
7ca7eb869801d5fbe80b6bc3bb9ca4a2ba4b7238
[ "MIT" ]
null
null
null
Updated_Self_supervised_training/vq_vae_decoder.py
nerdk312/AMDIM_Decoder
7ca7eb869801d5fbe80b6bc3bb9ca4a2ba4b7238
[ "MIT" ]
null
null
null
Updated_Self_supervised_training/vq_vae_decoder.py
nerdk312/AMDIM_Decoder
7ca7eb869801d5fbe80b6bc3bb9ca4a2ba4b7238
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F def _make_residual(channels): # Nawid- Performs a 3x3 convolution followed by a 1x1 convolution - The 3x3 convolution is padded and so the overall shape is the same. return nn.Sequential( nn.ReLU(), nn.Conv2d(channels, channels, 3, ...
41.197917
165
0.653603
3,550
0.897598
0
0
0
0
0
0
1,151
0.291024
0e707c6695fa41c264c8fbc5f51ed3834836d8ab
863
py
Python
spider/featurization/audio_featurization.py
Rosna/P4ML-UI
edf0dd830588f03b197e4d6532830a5aedd88424
[ "Apache-2.0" ]
1
2021-11-05T17:42:47.000Z
2021-11-05T17:42:47.000Z
spider/featurization/audio_featurization.py
Rosna/P4ML-UI
edf0dd830588f03b197e4d6532830a5aedd88424
[ "Apache-2.0" ]
null
null
null
spider/featurization/audio_featurization.py
Rosna/P4ML-UI
edf0dd830588f03b197e4d6532830a5aedd88424
[ "Apache-2.0" ]
2
2019-02-21T18:29:51.000Z
2019-09-02T21:21:26.000Z
import os import csv import librosa import numpy as np import pandas as pd from spider.featurization.audio_featurization import AudioFeaturization # Read the test data csv csv_file='data/testAudioData.csv' df = pd.read_csv(csv_file) # Read in the audio data specified by the csv data = [] for idx, row in df.iterrows()...
23.972222
71
0.772885
0
0
0
0
0
0
0
0
265
0.307068
0e707d91371c2482346143a84f5ea61d4dc577a1
497
py
Python
Telecom.py
BeatrizRCorreia/health-informatics-project1
bb3d619ac7b0509758b041db8970b72121a07b3d
[ "MIT" ]
null
null
null
Telecom.py
BeatrizRCorreia/health-informatics-project1
bb3d619ac7b0509758b041db8970b72121a07b3d
[ "MIT" ]
null
null
null
Telecom.py
BeatrizRCorreia/health-informatics-project1
bb3d619ac7b0509758b041db8970b72121a07b3d
[ "MIT" ]
null
null
null
class Telecom: def __init__(self, contact_db_id, system, value, use, rank, period): self.contact_db_id = contact_db_id self.system = system self.value = value self.use = use self.rank = rank self.period = period def get_contact_db_id(self): return self.contact_db_id def get_system(self): return se...
18.407407
69
0.72837
497
1
0
0
0
0
0
0
0
0
0e70ece1a0f0d81315d96404c33e6fd25db67704
7,617
py
Python
anvil/__main__.py
timjr/Openstack-Anvil
5a8199cfef2a7cd83d1886aaa6aa8e0b24cd589d
[ "Apache-2.0" ]
1
2021-06-29T06:09:58.000Z
2021-06-29T06:09:58.000Z
anvil/__main__.py
timjr/Openstack-Anvil
5a8199cfef2a7cd83d1886aaa6aa8e0b24cd589d
[ "Apache-2.0" ]
null
null
null
anvil/__main__.py
timjr/Openstack-Anvil
5a8199cfef2a7cd83d1886aaa6aa8e0b24cd589d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright (C) 2012 Yahoo! Inc. 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. You may obtain # a copy of ...
32.004202
119
0.645661
0
0
0
0
0
0
0
0
2,838
0.372588
0e713875dd8d9fbfe017a19ab32d110467c9d404
524
py
Python
ht13_Ex28_MaxThree.py
mikksillaste/aima-python
cf7b90bccf10e682f073bb5dbdc2056be6f4eb40
[ "MIT" ]
null
null
null
ht13_Ex28_MaxThree.py
mikksillaste/aima-python
cf7b90bccf10e682f073bb5dbdc2056be6f4eb40
[ "MIT" ]
null
null
null
ht13_Ex28_MaxThree.py
mikksillaste/aima-python
cf7b90bccf10e682f073bb5dbdc2056be6f4eb40
[ "MIT" ]
null
null
null
# kasutaja sisestab 3 numbrit number1 = int(input("Sisesta esimene arv: ")) number2 = int(input("Sisesta teine arv: ")) number3 = int(input("Sisesta kolmas arv: ")) # funktsioon, mis tagastab kolmes sisestatud arvust suurima def largest(number1, number2, number3): biggest = 0 if number1 > biggest: big...
26.2
59
0.685115
0
0
0
0
0
0
0
0
154
0.293893