hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
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
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
972
max_forks_repo_name
stringlengths
6
130
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
7a3d62208667b3a3c5b077d0bf34eeddd168095a
1,740
py
Python
.history/main_20171106223107.py
reecebenson/DADSA-Tennis-PartA
d0763f819b300fcd0ce27041f5bc4ef0519c00bf
[ "MIT" ]
null
null
null
.history/main_20171106223107.py
reecebenson/DADSA-Tennis-PartA
d0763f819b300fcd0ce27041f5bc4ef0519c00bf
[ "MIT" ]
null
null
null
.history/main_20171106223107.py
reecebenson/DADSA-Tennis-PartA
d0763f819b300fcd0ce27041f5bc4ef0519c00bf
[ "MIT" ]
null
null
null
# DADSA - Assignment 1 # Reece Benson from classes import Menu as Menu from classes import Handler as Handler class App(): # Define the variables we will be using debug = True handler = None # Define all of the properties we will need to use def __init__(self): # Load our handler ...
30
80
0.560345
6205c117f57dbc3cba6cfdab79f7e07a38bebeb6
62,999
py
Python
src/sage/combinat/crystals/alcove_path.py
defeo/sage
d8822036a9843bd4d75845024072515ede56bcb9
[ "BSL-1.0" ]
null
null
null
src/sage/combinat/crystals/alcove_path.py
defeo/sage
d8822036a9843bd4d75845024072515ede56bcb9
[ "BSL-1.0" ]
null
null
null
src/sage/combinat/crystals/alcove_path.py
defeo/sage
d8822036a9843bd4d75845024072515ede56bcb9
[ "BSL-1.0" ]
null
null
null
r""" Alcove paths AUTHORS: - Brant Jones (2008): initial version - Arthur Lubovsky (2013-03-07): rewritten to implement affine type Special thanks to: Nicolas Borie, Anne Schilling, Travis Scrimshaw, and Nicolas Thiery. """ #***************************************************************************** # Copyr...
34.710193
122
0.529008
542ff5bd00a14d4846d3955879d4f2b421635be3
206
py
Python
functions/return.py
danielkpodo/python-zero-to-mastery
d39468f48211bc82e4e2613745d9107d433e05af
[ "MIT" ]
null
null
null
functions/return.py
danielkpodo/python-zero-to-mastery
d39468f48211bc82e4e2613745d9107d433e05af
[ "MIT" ]
null
null
null
functions/return.py
danielkpodo/python-zero-to-mastery
d39468f48211bc82e4e2613745d9107d433e05af
[ "MIT" ]
null
null
null
# A return keyword automatically exits the function def aggregator(num1, num2): def evaluator(n1, n2): return n1 + n2 return evaluator(num1, num2) total = aggregator(10, 90) print(total)
18.727273
51
0.68932
aa65a5e1044564f37e8c6a783963464cd9165a4a
1,464
py
Python
dependencies/graph-1.6/src/andres/graph/python/examples/sandbox.py
ilastik/nature_methods_multicut_pipeline
1dc596505ab8c995b50561eeb969c59673b7dcab
[ "BSD-3-Clause" ]
14
2017-02-07T12:41:06.000Z
2022-01-19T02:52:32.000Z
dependencies/graph-1.6/src/andres/graph/python/examples/sandbox.py
ilastik/nature_methods_multicut_pipeline
1dc596505ab8c995b50561eeb969c59673b7dcab
[ "BSD-3-Clause" ]
5
2017-02-07T01:51:34.000Z
2021-03-31T15:00:33.000Z
dependencies/graph-1.6/src/andres/graph/python/examples/sandbox.py
ilastik/nature_methods_multicut_pipeline
1dc596505ab8c995b50561eeb969c59673b7dcab
[ "BSD-3-Clause" ]
3
2017-11-16T04:04:55.000Z
2018-05-11T11:33:51.000Z
import vigra import graph as agraph show = False verbose = 1 img = vigra.readImage('12074.jpg')[120:300,0:100,:] shape = img.shape[0:2] graph, liftedGraph = agraph.liftedGridGraph(shape=shape) # get primitive edge indicator localWeightsImage = vigra.filters.structureTensorEigenvalues(img ,0.5 , 1.0)[:,:,0]*-1.0 loc...
35.707317
89
0.629781
29687ccdad0656da49022540f924f96d135ae351
86,576
py
Python
_optimization_utils.py
antoniagolab/HighCharge
80eaafc7cdb502f9ee9377bf708e98341510b5fd
[ "Apache-2.0" ]
null
null
null
_optimization_utils.py
antoniagolab/HighCharge
80eaafc7cdb502f9ee9377bf708e98341510b5fd
[ "Apache-2.0" ]
null
null
null
_optimization_utils.py
antoniagolab/HighCharge
80eaafc7cdb502f9ee9377bf708e98341510b5fd
[ "Apache-2.0" ]
null
null
null
import numpy as np import pickle from _utils import * from pyomo.environ import * # from optimization_parameters import * # was wäre, wenn ich für jeden möglichen Weg eine neure Matrixspalte erstellen würde # dann müsste ich zuerst einmal ein DF erstellen, in dem ich da # aber das würd alles um das X-fache komplizie...
39.731987
118
0.440757
59c591dac9c5dc2ce04eee51a406603b6570a060
2,990
py
Python
heat/engine/resources/quantum/subnet.py
CiscoSystems/heat
1b609f3c0621c44e4988a166a38f36c2b57eb4c6
[ "Apache-2.0" ]
1
2020-08-15T14:29:15.000Z
2020-08-15T14:29:15.000Z
heat/engine/resources/quantum/subnet.py
CiscoSystems/heat
1b609f3c0621c44e4988a166a38f36c2b57eb4c6
[ "Apache-2.0" ]
null
null
null
heat/engine/resources/quantum/subnet.py
CiscoSystems/heat
1b609f3c0621c44e4988a166a38f36c2b57eb4c6
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
37.375
78
0.52408
d387c979abef41e74e8a232c6fcbe498f84602f2
182
py
Python
python/Random/test.py
Ethic41/codes
865658ac267336846e78a63b0214fb1535e17df3
[ "MIT" ]
2
2018-04-28T14:16:35.000Z
2018-04-28T14:16:39.000Z
python/Random/test.py
Ethic41/codes
865658ac267336846e78a63b0214fb1535e17df3
[ "MIT" ]
null
null
null
python/Random/test.py
Ethic41/codes
865658ac267336846e78a63b0214fb1535e17df3
[ "MIT" ]
null
null
null
a = raw_input() a = list(a) x = raw_input() def main(a, x): ans = "Not found" for i in range(len(a)): if x==a[i]: ans = i return ans break return ans print(main(a,x))
13
24
0.571429
06d351edcb3b9f718476dc4efb52e4c7bba776a9
1,478
py
Python
hopechannelfi/urls.py
AdventistChurchFinland/hopechannel-wagtail
b5b06e0696a929d5d2e29a368002d27f54a8ff75
[ "MIT" ]
null
null
null
hopechannelfi/urls.py
AdventistChurchFinland/hopechannel-wagtail
b5b06e0696a929d5d2e29a368002d27f54a8ff75
[ "MIT" ]
9
2020-06-05T23:26:12.000Z
2021-06-17T20:23:14.000Z
hopechannelfi/urls.py
AdventistChurchFinland/hopechannel-wagtail
b5b06e0696a929d5d2e29a368002d27f54a8ff75
[ "MIT" ]
null
null
null
from django.conf import settings from django.conf.urls import include, url from django.contrib import admin from django.urls import path from wagtail.admin import urls as wagtailadmin_urls from wagtail.core import urls as wagtail_urls from wagtail.documents import urls as wagtaildocs_urls from search import views as ...
30.791667
74
0.718539
dfce51c144916bd70f9f2a2d99e5c55f4fceed37
63,139
py
Python
code/misc_shitpost.py
LordOfPolls/Helix3
7ad62ce8dd831a31d846457cfba98807f9ba6c19
[ "MIT" ]
null
null
null
code/misc_shitpost.py
LordOfPolls/Helix3
7ad62ce8dd831a31d846457cfba98807f9ba6c19
[ "MIT" ]
40
2018-06-18T13:43:42.000Z
2018-07-24T19:24:57.000Z
code/misc_shitpost.py
LordOfPolls/Helix3
7ad62ce8dd831a31d846457cfba98807f9ba6c19
[ "MIT" ]
2
2018-07-17T20:47:23.000Z
2018-07-27T17:42:53.000Z
def shitpost(): import random shitpost = """UNROLL THE TADPOLE OSfrog UNCLOG THE FROG OSfrog UNLOAD THE TOAD OSfrog UNINHIBIT THE RIBBIT OSfrog UNSTICK THE LICK OSfrog UNIMPRISON THE AMPHIBIAN OSfrog UNMUTE THE NEWT OSfrog UNBENCH THE KENCH OSfrog PERMIT THE KERMIT OSfrog DEFOG THE POLLIWOG OSfrog O-oooooooooo AAAAE...
215.491468
710
0.712491
b9eb2aa4e4548291c813b9e418fe0d469833c8de
179
py
Python
common/strings.py
GitKlip/python-common
b44d1aaba5db3e1aa571b189999a8edea54c96bb
[ "MIT" ]
null
null
null
common/strings.py
GitKlip/python-common
b44d1aaba5db3e1aa571b189999a8edea54c96bb
[ "MIT" ]
null
null
null
common/strings.py
GitKlip/python-common
b44d1aaba5db3e1aa571b189999a8edea54c96bb
[ "MIT" ]
null
null
null
import random as random_lib import string def random(length=8, chars=string.ascii_letters + string.digits): return ''.join(random_lib.choice(chars) for _ in range(length))
22.375
67
0.759777
7f80277eae6ff1676e9a0cdccd4e5cd38a5d120a
7,658
py
Python
dlacs/BayesConvLSTMBinary.py
geek-yang/DeepClim
a33a23e955637341eb4b8929420e958d02b15a69
[ "Apache-2.0" ]
5
2020-03-21T14:37:40.000Z
2022-03-28T11:47:13.000Z
dlacs/BayesConvLSTMBinary.py
geek-yang/DeepClim
a33a23e955637341eb4b8929420e958d02b15a69
[ "Apache-2.0" ]
8
2022-01-20T16:05:11.000Z
2022-02-13T18:19:44.000Z
dlacs/BayesConvLSTMBinary.py
geek-yang/DeepClim
a33a23e955637341eb4b8929420e958d02b15a69
[ "Apache-2.0" ]
2
2021-01-29T03:25:05.000Z
2021-03-22T12:15:15.000Z
# -*- coding: utf-8 -*- """ Copyright Netherlands eScience Center Function : Bayesian Convolutional LSTM with Bernoulli approximation variational inference for one step prediction Author : Yang Liu (y.liu@esciencecenter.nl) and Tianyi Zhang First Built : 2020.06.19 Last Update : 2020.06.19 Descr...
52.452055
142
0.654348
930147d629afcfdd607cc4a8e76fa1d2a93cb4ce
1,621
py
Python
lib/Factory.py
tuaris/TidePool
5d44fa11a7de3f5c05130d0ad4030671806cd501
[ "BSD-3-Clause" ]
3
2018-06-30T12:10:50.000Z
2021-09-18T16:10:12.000Z
lib/Factory.py
tuaris/TidePool
5d44fa11a7de3f5c05130d0ad4030671806cd501
[ "BSD-3-Clause" ]
null
null
null
lib/Factory.py
tuaris/TidePool
5d44fa11a7de3f5c05130d0ad4030671806cd501
[ "BSD-3-Clause" ]
9
2017-04-12T22:59:49.000Z
2021-09-18T16:10:25.000Z
import lib.logger log = lib.logger.get_logger('Factory') # Factory interface object # Allows dynamic creation of basic components using a standard interface class Factory(object): def __init__(self, coinbaser, coinbase_factory, transaction_factory, block_factory): # This factory makes objects based on the coinbas...
36.840909
146
0.787168
3403581fddf08a0928a8e4c5b22e740117646bd2
3,146
py
Python
youtube_dl/extractor/extremetube.py
zoogaezee/youtubeDL
01de1a9d506ff51bff4100e11275557226fa8b9a
[ "Unlicense" ]
10
2020-05-29T03:20:03.000Z
2022-03-29T01:05:20.000Z
youtube_dl/extractor/extremetube.py
zoogaezee/youtubeDL
01de1a9d506ff51bff4100e11275557226fa8b9a
[ "Unlicense" ]
5
2016-04-22T01:33:31.000Z
2016-08-04T15:33:19.000Z
PythonSamples/library/files/lib/python2.7/site-packages/youtube_dl/extractor/extremetube.py
jianglei12138/python2.7
280aa96d8cac98c03ca8c8ed71541f7ff7817055
[ "PSF-2.0" ]
9
2020-05-29T03:21:02.000Z
2021-04-14T03:26:05.000Z
from __future__ import unicode_literals import re from .common import InfoExtractor from ..utils import ( int_or_none, sanitized_Request, str_to_int, ) class ExtremeTubeIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?extremetube\.com/(?:[^/]+/)?video/(?P<id>[^/#?&]+)' _TESTS = [{ 'u...
33.827957
116
0.510172
2d720965ae5a508b5d35d316921e72db14ef64d4
33,495
py
Python
superset/security/manager.py
2uinc/incubator-superset
b02fb365e3478fe652be2a9548e51c8fb3a4dd78
[ "Apache-2.0" ]
1
2020-06-01T13:48:18.000Z
2020-06-01T13:48:18.000Z
superset/security/manager.py
2uinc/incubator-superset
b02fb365e3478fe652be2a9548e51c8fb3a4dd78
[ "Apache-2.0" ]
3
2021-02-02T22:37:22.000Z
2022-03-29T22:28:39.000Z
superset/security/manager.py
2uinc/incubator-superset
b02fb365e3478fe652be2a9548e51c8fb3a4dd78
[ "Apache-2.0" ]
1
2020-05-07T04:02:38.000Z
2020-05-07T04:02:38.000Z
# 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.406977
107
0.636871
afeeeabfb08ed9a825c22be542096e2f4d835e42
1,850
py
Python
rastervision_pipeline/rastervision/pipeline/pipeline.py
theoway/raster-vision
dab675517f904771e2ce8c052494f8a6f1ddc026
[ "Apache-2.0" ]
1,577
2017-05-22T14:22:00.000Z
2022-03-31T02:03:25.000Z
rastervision_pipeline/rastervision/pipeline/pipeline.py
theoway/raster-vision
dab675517f904771e2ce8c052494f8a6f1ddc026
[ "Apache-2.0" ]
933
2017-05-09T20:25:02.000Z
2022-03-31T10:22:59.000Z
rastervision_pipeline/rastervision/pipeline/pipeline.py
monocilindro/raster-vision
fc181a6f31f085affa1ee12f0204bdbc5a6bf85a
[ "Apache-2.0" ]
336
2017-05-15T16:30:44.000Z
2022-03-28T06:19:33.000Z
import logging from typing import List, TYPE_CHECKING log = logging.getLogger(__name__) if TYPE_CHECKING: from rastervision.pipeline.pipeline_config import PipelineConfig # noqa class Pipeline(): """A pipeline of commands to run sequentially. This is an abstraction over a sequence of commands. Each co...
36.27451
79
0.676757
4a36b5b1ab6578ca4501a3a3e16887b54f903ce0
1,071
py
Python
load/alembic/versions/c8a2799837ae_add_raw_json_table.py
nickmaher84/football-data.co.uk
4c3dafa74770a77b3c58dff9eb60dd996fa62f81
[ "MIT" ]
null
null
null
load/alembic/versions/c8a2799837ae_add_raw_json_table.py
nickmaher84/football-data.co.uk
4c3dafa74770a77b3c58dff9eb60dd996fa62f81
[ "MIT" ]
null
null
null
load/alembic/versions/c8a2799837ae_add_raw_json_table.py
nickmaher84/football-data.co.uk
4c3dafa74770a77b3c58dff9eb60dd996fa62f81
[ "MIT" ]
null
null
null
"""Add raw JSON table Revision ID: c8a2799837ae Revises: f0bd0902efc3 Create Date: 2022-04-05 09:56:02.230647 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'c8a2799837ae' down_revision = '070e958c019b' branch_labels = None depends_on = None def upgrade(): ...
28.945946
87
0.665733
c1f3afcf167fb5d738f34f3bdc2a77440472a71b
6,457
py
Python
test/test_payors_api.py
velopaymentsapi/velo-python
59b39555e9714139b4bf697151cc7d15f6dd510e
[ "Apache-2.0" ]
null
null
null
test/test_payors_api.py
velopaymentsapi/velo-python
59b39555e9714139b4bf697151cc7d15f6dd510e
[ "Apache-2.0" ]
null
null
null
test/test_payors_api.py
velopaymentsapi/velo-python
59b39555e9714139b4bf697151cc7d15f6dd510e
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Velo Payments APIs ## Terms and Definitions Throughout this document and the Velo platform the following terms are used: * **Payor.** An entity (typically a corporation) which wishes to pay funds to one or more payees via a payout. * **Payee.** The recipient of funds paid out by a payor....
71.744444
4,651
0.740592
80a6d447fe87a4721333c4ef9a6e952826a40f4a
4,766
py
Python
nova/consoleauth/manager.py
bopopescu/NovaOrc
db301a82191bed1baed2ae5e9470efe9c43d4729
[ "Apache-2.0" ]
null
null
null
nova/consoleauth/manager.py
bopopescu/NovaOrc
db301a82191bed1baed2ae5e9470efe9c43d4729
[ "Apache-2.0" ]
null
null
null
nova/consoleauth/manager.py
bopopescu/NovaOrc
db301a82191bed1baed2ae5e9470efe9c43d4729
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright (c) 2012 OpenStack Foundation # 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 # ...
37.825397
77
0.632606
dba76993c4589c809bde54b24185ad418769695e
1,683
py
Python
tools/data.py
pnguyenduong/virustracker-api
0622558ceb431667cc0af75f4835455258ec054b
[ "MIT" ]
null
null
null
tools/data.py
pnguyenduong/virustracker-api
0622558ceb431667cc0af75f4835455258ec054b
[ "MIT" ]
null
null
null
tools/data.py
pnguyenduong/virustracker-api
0622558ceb431667cc0af75f4835455258ec054b
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup from app.models import VirusData from app import db import requests # download data from worldometers on current day def scrape_data(): base_url = 'https://www.worldometers.info/coronavirus/' response = requests.get(base_url) if response: print('Successful') else: ...
31.166667
117
0.614379
4064f48e02a31134dea419e96455d31eb337d90d
1,763
py
Python
spider1.py
larryooo/Crawl-web--pages
f60e2c0663ef782da22fac8323758b44682dc295
[ "MIT" ]
null
null
null
spider1.py
larryooo/Crawl-web--pages
f60e2c0663ef782da22fac8323758b44682dc295
[ "MIT" ]
null
null
null
spider1.py
larryooo/Crawl-web--pages
f60e2c0663ef782da22fac8323758b44682dc295
[ "MIT" ]
null
null
null
import requests import re from bs4 import BeautifulSoup import os def getResponse(url): res = requests.get(url) soup = BeautifulSoup(res.text, 'lxml') # 标题 title_str = '' title_list = soup.select('.product-title-container.container.title-container h1') for title in title_list: str = ...
32.054545
119
0.609756
316f86d95483f67e57715f566b40407f7d4150fe
12,776
py
Python
bybit/bybit_api.py
honey96dev/python-aws-lambda-bitmex-csv
5a2d4d24ea22f58906519673dff6def133665e85
[ "MIT" ]
2
2021-07-19T09:55:53.000Z
2021-11-03T15:02:44.000Z
bybit_api.py
honey96dev/python-flask-bybit-api
a0d758d3baf73c823174e63cc471e644b7b6bdae
[ "MIT" ]
null
null
null
bybit_api.py
honey96dev/python-flask-bybit-api
a0d758d3baf73c823174e63cc471e644b7b6bdae
[ "MIT" ]
null
null
null
import json import requests import global_constant import my_functions def order_create(order_link_id=None, order_type=None, price=None, qty=None, side=None, symbol=None, time_in_force=None): timestamp = my_functions.get_current_timestamp() params = { 'order_link_id': order_link_id, 'order_...
28.017544
120
0.631183
5056ea5322215aca22f352d34a337bf4cfcdb4a4
15,167
py
Python
src/sage/rings/polynomial/complex_roots.py
switzel/sage
7eb8510dacf61b691664cd8f1d2e75e5d473e5a0
[ "BSL-1.0" ]
2
2015-08-11T05:05:47.000Z
2019-05-15T17:27:25.000Z
src/sage/rings/polynomial/complex_roots.py
switzel/sage
7eb8510dacf61b691664cd8f1d2e75e5d473e5a0
[ "BSL-1.0" ]
null
null
null
src/sage/rings/polynomial/complex_roots.py
switzel/sage
7eb8510dacf61b691664cd8f1d2e75e5d473e5a0
[ "BSL-1.0" ]
1
2020-07-24T11:56:55.000Z
2020-07-24T11:56:55.000Z
""" Isolate Complex Roots of Polynomials AUTHOR: - Carl Witty (2007-11-18): initial version This is an implementation of complex root isolation. That is, given a polynomial with exact complex coefficients, we compute isolating intervals for the complex roots of the polynomial. (Polynomials with integer, rational, ...
38.494924
279
0.622602
c0d53d92f49f2f04921e0c990ab9ca757adab146
16,107
py
Python
Bio/Phylo/CDAOIO.py
bioinf-mcb/biopython
1a1f4a7ee4e0efba517d3d607c56c27e72e399cc
[ "BSD-3-Clause" ]
null
null
null
Bio/Phylo/CDAOIO.py
bioinf-mcb/biopython
1a1f4a7ee4e0efba517d3d607c56c27e72e399cc
[ "BSD-3-Clause" ]
null
null
null
Bio/Phylo/CDAOIO.py
bioinf-mcb/biopython
1a1f4a7ee4e0efba517d3d607c56c27e72e399cc
[ "BSD-3-Clause" ]
1
2020-03-19T17:06:16.000Z
2020-03-19T17:06:16.000Z
# Copyright (C) 2013 by Ben Morris (ben@bendmorris.com) # Based on Bio.Nexus, copyright 2005-2008 by Frank Kauff & Cymon J. Cox # and Bio.Phylo.Newick, copyright 2009 by Eric Talevich. # All rights reserved. # # This file is part of the Biopython distribution and governed by your # choice of the "Biopython License Agre...
33.278926
88
0.54914
49d21ff499a42e5539bbf2df97583263063102a3
2,034
py
Python
utils/visualization_utils.py
c-keil/SE2-equivariant-grasp-learning
f32230e45c6a7bc1693df9b27d1084d98347477e
[ "MIT" ]
null
null
null
utils/visualization_utils.py
c-keil/SE2-equivariant-grasp-learning
f32230e45c6a7bc1693df9b27d1084d98347477e
[ "MIT" ]
null
null
null
utils/visualization_utils.py
c-keil/SE2-equivariant-grasp-learning
f32230e45c6a7bc1693df9b27d1084d98347477e
[ "MIT" ]
1
2022-03-14T20:08:18.000Z
2022-03-14T20:08:18.000Z
import os import matplotlib.pyplot as plt import numpy as np def plot_action(obs, agent, actions_star, actions_star_idx, q_value_maps, num_rotations, patch_size, rewards, in_hand_obs, action_sequence, is_title_success=False, logger=None): primative_idx, x_idx, y_idx, z_idx, rot_idx = map(lambda a:...
45.2
104
0.613569
91b3a539adf577b6922299f2e94e3b580355b154
27,391
py
Python
Lib/site-packages/mypyc/codegen/emitfunc.py
edupyter/EDUPYTER38
396183cea72987506f1ef647c0272a2577c56218
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/mypyc/codegen/emitfunc.py
edupyter/EDUPYTER38
396183cea72987506f1ef647c0272a2577c56218
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/mypyc/codegen/emitfunc.py
edupyter/EDUPYTER38
396183cea72987506f1ef647c0272a2577c56218
[ "bzip2-1.0.6" ]
null
null
null
"""Code generation for native function bodies.""" from typing import List, Union, Optional from typing_extensions import Final from mypyc.common import ( REG_PREFIX, NATIVE_PREFIX, STATIC_PREFIX, TYPE_PREFIX, MODULE_PREFIX, ) from mypyc.codegen.emit import Emitter from mypyc.ir.ops import ( Op, OpVisitor, Got...
40.88209
99
0.559636
02c2ece1e26c121d321be3924acc66187419c878
33
py
Python
tests/__init__.py
bidfit/pyh2m
6f6959d2c3f3f7d46c95108f5ed87317da7bb8be
[ "MIT" ]
null
null
null
tests/__init__.py
bidfit/pyh2m
6f6959d2c3f3f7d46c95108f5ed87317da7bb8be
[ "MIT" ]
null
null
null
tests/__init__.py
bidfit/pyh2m
6f6959d2c3f3f7d46c95108f5ed87317da7bb8be
[ "MIT" ]
null
null
null
"""Unit test package for h2m."""
16.5
32
0.636364
0366eda2aaca8eabefb6df39af6b369c8f466de7
19,902
bzl
Python
tools/ng_rollup_bundle/ng_rollup_bundle.bzl
Mejans/angular
201fdb101e84b503d17bced305eaf08fd5dacf58
[ "MIT" ]
1
2020-05-29T20:05:34.000Z
2020-05-29T20:05:34.000Z
tools/ng_rollup_bundle/ng_rollup_bundle.bzl
Mejans/angular
201fdb101e84b503d17bced305eaf08fd5dacf58
[ "MIT" ]
null
null
null
tools/ng_rollup_bundle/ng_rollup_bundle.bzl
Mejans/angular
201fdb101e84b503d17bced305eaf08fd5dacf58
[ "MIT" ]
1
2020-07-03T09:28:48.000Z
2020-07-03T09:28:48.000Z
# Copyright Google LLC All Rights Reserved. # # Use of this source code is governed by an MIT-style license that can be # found in the LICENSE file at https://angular.io/license """Rollup with Build Optimizer This provides a variant of the [rollup_bundle] rule that works better for Angular apps. It registers `...
42.165254
173
0.644408
c36e1a3e14b4c4b032292d4e429c5cee4e512ee5
1,803
py
Python
src/swaggapi/api/openapi/types.py
osherdp/swaggapi
0c6762e3a586e954c97841588e4725cc69c702b6
[ "MIT" ]
2
2019-01-29T01:09:25.000Z
2019-03-10T06:15:35.000Z
src/swaggapi/api/openapi/types.py
osherdp/swaggapi
0c6762e3a586e954c97841588e4725cc69c702b6
[ "MIT" ]
null
null
null
src/swaggapi/api/openapi/types.py
osherdp/swaggapi
0c6762e3a586e954c97841588e4725cc69c702b6
[ "MIT" ]
4
2018-08-14T20:07:23.000Z
2020-06-29T04:12:05.000Z
from __future__ import absolute_import class CustomType(object): pass class SpecialType(CustomType): def __init__(self, base_type): self.base_type = base_type class Enum(SpecialType): def __init__(self, options): super(Enum, self).__init__(str) self.options = options def __...
25.041667
78
0.63228
b9c927da4c36418b9b8f9d102c53fef988bd1e81
589
py
Python
molvs/errors.py
fossabot/MolVS
dc5afca7fcea93ebb0a342b766d70e88d2c0b841
[ "MIT" ]
1
2019-01-23T06:02:24.000Z
2019-01-23T06:02:24.000Z
molvs/errors.py
fossabot/MolVS
dc5afca7fcea93ebb0a342b766d70e88d2c0b841
[ "MIT" ]
null
null
null
molvs/errors.py
fossabot/MolVS
dc5afca7fcea93ebb0a342b766d70e88d2c0b841
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ molvs.errors ~~~~~~~~~~~~ This module contains exceptions that are raised by MolVS. :copyright: Copyright 2016 by Matt Swain. :license: MIT, see LICENSE file for more details. """ from __future__ import print_function from __future__ import unicode_literals from __future__ import division...
18.40625
85
0.740238
abe1801978b47b3f7923bc22b690fe32db3b80ba
445,695
py
Python
python/mmsdm/data_model.py
eigenmo-de/aemo-rs
8b53884edf4af35056ccc1a650505b9c9dcb3d3c
[ "MIT" ]
null
null
null
python/mmsdm/data_model.py
eigenmo-de/aemo-rs
8b53884edf4af35056ccc1a650505b9c9dcb3d3c
[ "MIT" ]
null
null
null
python/mmsdm/data_model.py
eigenmo-de/aemo-rs
8b53884edf4af35056ccc1a650505b9c9dcb3d3c
[ "MIT" ]
null
null
null
from typing import Optional import pyarrow import pyarrow.csv as pc def ancilliary_services_contractagc_v1(file_path): schema = pyarrow.schema([ pyarrow.field("file_id", pyarrow.large_utf8(), False), pyarrow.field("contractid", pyarrow.large_utf8(), False), pyarrow.field("versionno", pyarro...
68.515757
268
0.694776
56b41503285e4799a1979b034c4ea99cd41015d0
306
py
Python
agents/__init__.py
Ferch42/PyDSRL
bd9ea3e739c837db0db5052f7db23476fa21c472
[ "MIT" ]
null
null
null
agents/__init__.py
Ferch42/PyDSRL
bd9ea3e739c837db0db5052f7db23476fa21c472
[ "MIT" ]
null
null
null
agents/__init__.py
Ferch42/PyDSRL
bd9ea3e739c837db0db5052f7db23476fa21c472
[ "MIT" ]
null
null
null
from agents.DQNAgent import DQNAgent from agents.SymbolicAgent import SymbolicAgent from agents.SymbolicAgentv2 import SymbolicAgentv2 from agents.SymbolicAgentDQN import SymbolicAgentDQN from agents.SymbolicAgentExact import SymbolicAgentExact from agents.SymbolicAgentDQNv2 import SymbolicAgentDQNv2
51
57
0.888889
322ab8bb511ed01432af93f4cea388234d4f0324
14,575
py
Python
tpc.py
c17r/tpc
1a314ba5e3c4137bb7a1fe7f6c84ab0119f8f045
[ "MIT" ]
null
null
null
tpc.py
c17r/tpc
1a314ba5e3c4137bb7a1fe7f6c84ab0119f8f045
[ "MIT" ]
null
null
null
tpc.py
c17r/tpc
1a314ba5e3c4137bb7a1fe7f6c84ab0119f8f045
[ "MIT" ]
null
null
null
import sys import string import re import requests import pickle import zipfile import bz2 import xmlrpclib import calendar import urllib import difflib import gzip import os import base64 import array import wave import zlib from datetime import date from cStringIO import StringIO from PIL import Image, ImageDraw, Ima...
28.356031
1,766
0.567959
4de63cf59bd1cb5c7e6d610c02f91bd1fd9f85b3
104,255
py
Python
pandas/core/common.py
jsexauer/pandas
85703a7806ade5394fe511b8c433cdfca5428593
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
pandas/core/common.py
jsexauer/pandas
85703a7806ade5394fe511b8c433cdfca5428593
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
pandas/core/common.py
jsexauer/pandas
85703a7806ade5394fe511b8c433cdfca5428593
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
""" Misc tools for implementing data structures """ import re import collections import numbers import codecs import csv import types from datetime import datetime, timedelta from functools import partial from numpy.lib.format import read_array, write_array import numpy as np import pandas as pd import pandas.algos ...
31.882263
119
0.609649
2b02e981c0cb17f5d9263905779960171f18bd3b
6,504
py
Python
poxy/utils.py
marzer/dox
a142ccd77ff23feb3402d49a330ee43a4f7ad602
[ "MIT" ]
62
2021-05-09T22:32:10.000Z
2022-03-25T12:41:09.000Z
poxy/utils.py
marzer/dox
a142ccd77ff23feb3402d49a330ee43a4f7ad602
[ "MIT" ]
null
null
null
poxy/utils.py
marzer/dox
a142ccd77ff23feb3402d49a330ee43a4f7ad602
[ "MIT" ]
1
2021-08-03T04:14:10.000Z
2021-08-03T04:14:10.000Z
#!/usr/bin/env python3 # This file is a part of marzer/poxy and is subject to the the terms of the MIT license. # Copyright (c) Mark Gillard <mark.gillard@outlook.com.au> # See https://github.com/marzer/poxy/blob/master/LICENSE for the full license text. # SPDX-License-Identifier: MIT import sys import re import io im...
26.546939
120
0.58318
d9d71b3eed494d8cb1c228577fc267ca9d8a7da5
25,596
py
Python
gamestonk_terminal/stocks/stocks_controller.py
DidierRLopes/GST-discordbot
8ff7f7557f5db62ea33d63cfc11ee7ae5f9de56c
[ "MIT" ]
null
null
null
gamestonk_terminal/stocks/stocks_controller.py
DidierRLopes/GST-discordbot
8ff7f7557f5db62ea33d63cfc11ee7ae5f9de56c
[ "MIT" ]
null
null
null
gamestonk_terminal/stocks/stocks_controller.py
DidierRLopes/GST-discordbot
8ff7f7557f5db62ea33d63cfc11ee7ae5f9de56c
[ "MIT" ]
null
null
null
"""Stock Context Controller""" __docformat__ = "numpy" import argparse import difflib import logging import os from typing import List, Union from datetime import datetime, timedelta import yfinance as yf import pandas as pd from colorama import Style from prompt_toolkit.completion import NestedCompleter from gamest...
33.241558
121
0.528129
91343f9560db639b2e013dfd3af657878e56e9ed
498
py
Python
tests/test_ppu.py
FlorianVeaux/NES-py
a47eff8b5ff782072dbbbb01a03e67c2f63cd1dd
[ "MIT" ]
1
2019-02-01T13:39:22.000Z
2019-02-01T13:39:22.000Z
tests/test_ppu.py
FlorianVeaux/NES-py
a47eff8b5ff782072dbbbb01a03e67c2f63cd1dd
[ "MIT" ]
1
2018-10-11T18:10:09.000Z
2018-10-11T18:10:09.000Z
tests/test_ppu.py
FlorianVeaux/NES-py
a47eff8b5ff782072dbbbb01a03e67c2f63cd1dd
[ "MIT" ]
null
null
null
from nes.console import Console import os import time import cProfile def _abs_path(path): _dir = os.path.dirname(os.path.abspath(__file__)) return os.path.join(_dir, path) def test_ppu(): console = Console(_abs_path('color_test.nes'), debug=True) t = time.time() total_cycles = 0 while True: ...
24.9
62
0.644578
3547e0a6ac7ef6fbbb52f18f2a5443b23bd60613
2,573
py
Python
lc0238_product_of_array_except_self.py
bowen0701/python-algorithms-data-structures
e625f59a9fc59e4728825078d4434a7968a724e5
[ "BSD-2-Clause" ]
8
2019-03-18T06:37:24.000Z
2022-01-30T07:50:58.000Z
lc0238_product_of_array_except_self.py
bowen0701/python-algorithms-data-structures
e625f59a9fc59e4728825078d4434a7968a724e5
[ "BSD-2-Clause" ]
null
null
null
lc0238_product_of_array_except_self.py
bowen0701/python-algorithms-data-structures
e625f59a9fc59e4728825078d4434a7968a724e5
[ "BSD-2-Clause" ]
null
null
null
"""Leetcode 238. Product of Array Except Self Medium Given an array nums of n integers where n > 1, return an array output such that output[i] is equal to the product of all the elements of nums except nums[i]. Example: Input: [1,2,3,4] Output: [24,12,8,6] Note: Please solve it without division and in O(n). Foll...
27.084211
79
0.540225
4fb36e8089c451a268e8d979fa1ce305e15c23c3
103,147
py
Python
src/commandblock_py/utils/autofill.py
SheepCommander/Datapack_generator
1bace73d97bfa307cd01d55104d20153630988bb
[ "MIT" ]
null
null
null
src/commandblock_py/utils/autofill.py
SheepCommander/Datapack_generator
1bace73d97bfa307cd01d55104d20153630988bb
[ "MIT" ]
null
null
null
src/commandblock_py/utils/autofill.py
SheepCommander/Datapack_generator
1bace73d97bfa307cd01d55104d20153630988bb
[ "MIT" ]
null
null
null
class _entities: AREA_EFFECT_CLOUD = "minecraft:area_effect_cloud" ARMOR_STAND = "minecraft:armor_stand" ARROW = "minecraft:arrow" AXOLOTL = "minecraft:axolotl" BAT = "minecraft:bat" BEE = "minecraft:bee" BLAZE = "minecraft:blaze" BOAT = "minecraft:boat" CAT = "minecraft:cat" CAV...
48.723193
97
0.772267
52c9285ca186c349737a043070bac6cd34c17801
7,004
py
Python
vision_datasets/commands/converter_tsv_to_iris.py
shonohs/vision-datasets
bdd0ebf5c0c0561486ebb0b96600196b2b89f77c
[ "MIT" ]
null
null
null
vision_datasets/commands/converter_tsv_to_iris.py
shonohs/vision-datasets
bdd0ebf5c0c0561486ebb0b96600196b2b89f77c
[ "MIT" ]
3
2021-11-24T21:16:29.000Z
2022-03-07T21:08:39.000Z
vision_datasets/commands/converter_tsv_to_iris.py
shonohs/vision-datasets
bdd0ebf5c0c0561486ebb0b96600196b2b89f77c
[ "MIT" ]
4
2021-08-24T02:49:28.000Z
2021-11-19T19:42:11.000Z
""" Converts tsv format to iris format """ import base64 import io import json import os from vision_datasets.common.image_loader import PILImageLoader TSV_FORMAT_LTRB = 'ltrb' TSV_FORMAT_LTWH_NORM = 'ltwh-normalized' def create_arg_parser(): import argparse parser = argparse.ArgumentParser(description='C...
38.911111
117
0.579526
95856be9c5b6f90967290e3695b2ec3790faad10
607
py
Python
env/lib/python3.8/site-packages/plotly/validators/histogram/marker/colorbar/tickfont/_family.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
76
2020-07-06T14:44:05.000Z
2022-02-14T15:30:21.000Z
env/lib/python3.8/site-packages/plotly/validators/histogram/marker/colorbar/tickfont/_family.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-08-09T02:30:14.000Z
2022-03-12T00:50:14.000Z
env/lib/python3.8/site-packages/plotly/validators/histogram/marker/colorbar/tickfont/_family.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-07-12T16:18:07.000Z
2022-02-05T16:48:35.000Z
import _plotly_utils.basevalidators class FamilyValidator(_plotly_utils.basevalidators.StringValidator): def __init__( self, plotly_name="family", parent_name="histogram.marker.colorbar.tickfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_nam...
30.35
68
0.607908
5a29e8f384a4ae7a51979d04fc6d3d8367daec23
818
py
Python
upload.py
linare0/emshare-backend
a372131a30ecbd8a3a4f60186da4f2a040078c18
[ "MIT" ]
null
null
null
upload.py
linare0/emshare-backend
a372131a30ecbd8a3a4f60186da4f2a040078c18
[ "MIT" ]
null
null
null
upload.py
linare0/emshare-backend
a372131a30ecbd8a3a4f60186da4f2a040078c18
[ "MIT" ]
null
null
null
import boto3 import json def lambda_handler(event, context): retval = {} dynamodb = boto3.resource('dynamodb') user_table = dynamodb.Table('user') user = user_table.get_item(Key={'id': int(event['queryStringParameters']['user'])}) if user['Item'] == {}: body = { 'status': 'fail:...
29.214286
87
0.52934
04e2d37bbe16bc4b9778d1fde905774155cad2fa
3,523
py
Python
h5py/tests/old/common.py
rainwoodman/h5py
25eba5f019d4417de0908ce602f14c038faa9237
[ "BSD-3-Clause" ]
6
2022-02-04T18:12:24.000Z
2022-03-21T23:57:12.000Z
SLpackage/private/thirdparty/pythonpkgs/h5py/h5py_2.7.0/lib/python2.7/site-packages/h5py/tests/old/common.py
fanglab/6mASCOPE
3f1fdcb7693ff152f17623ce549526ec272698b1
[ "BSD-3-Clause" ]
8
2020-09-26T00:55:16.000Z
2022-03-12T00:23:07.000Z
SLpackage/private/thirdparty/pythonpkgs/h5py/h5py_2.7.0/lib/python2.7/site-packages/h5py/tests/old/common.py
fanglab/6mASCOPE
3f1fdcb7693ff152f17623ce549526ec272698b1
[ "BSD-3-Clause" ]
1
2022-02-08T03:53:23.000Z
2022-02-08T03:53:23.000Z
# This file is part of h5py, a Python interface to the HDF5 library. # # http://www.h5py.org # # Copyright 2008-2013 Andrew Collette and contributors # # License: Standard 3-clause BSD; see "license.txt" for full license terms # and contributor agreement. from __future__ import absolute_import import sys ...
29.855932
80
0.556628
d7446d36c27b0a97093663228978508bc0d6b49c
786
py
Python
lib/core/base_trainer/metric.py
610265158/shufflenetv2-series-tensorflow
970e228e252a2aac1b8e05d151858d46b1443c70
[ "Apache-2.0" ]
3
2020-05-14T14:22:59.000Z
2021-01-11T12:58:19.000Z
lib/core/base_trainer/metric.py
610265158/shufflenetv2-series-tensorflow
970e228e252a2aac1b8e05d151858d46b1443c70
[ "Apache-2.0" ]
null
null
null
lib/core/base_trainer/metric.py
610265158/shufflenetv2-series-tensorflow
970e228e252a2aac1b8e05d151858d46b1443c70
[ "Apache-2.0" ]
1
2021-09-25T08:18:04.000Z
2021-09-25T08:18:04.000Z
import numpy as np from lib.helper.logger import logger class Metric(): def __init__(self,batch_size): self.batch_size=batch_size self.top1_correct=0 self.top5_correct = 0 self.total=0 def update(self,top1_acc,top5_acc): self.top1_correct+=round(top1_acc*self.batch_...
23.818182
71
0.615776
903877e3f49036d67903e8832d6b8dc6e495f9fe
1,090
py
Python
wslexplorer/config.py
scottfp/wslexplorer
9f423b702fe92d206ad8a19ce822ee944d6571f6
[ "MIT" ]
2
2017-12-07T06:05:41.000Z
2019-11-13T15:06:11.000Z
wslexplorer/config.py
scottfp/wslexplorer
9f423b702fe92d206ad8a19ce822ee944d6571f6
[ "MIT" ]
1
2017-06-04T14:53:10.000Z
2017-06-04T14:53:10.000Z
wslexplorer/config.py
scottfp/wslexplorer
9f423b702fe92d206ad8a19ce822ee944d6571f6
[ "MIT" ]
null
null
null
import errno, os import ruamel.yaml as yaml from getpass import getuser default_user = getuser() DEFAULTS = ''' user: {user} explorer_path: /mnt/c/Windows/explorer.exe lxss_path: C:\\Users\\{user}\\AppData\\local\\lxss drives: [c, d] '''.format(user=default_user) class Config(yaml.comments.CommentedM...
27.25
76
0.588073
c71df7fa8e8782c01a9c6f028a882c6b4f769d79
1,579
py
Python
python3-7/python3-7.py
t7y/python3
ea3755cb5f41f60587bda379feea9e5f4b8c111b
[ "Apache-2.0" ]
25
2020-10-29T21:07:00.000Z
2022-03-22T08:20:34.000Z
python3-7/python3-7.py
t7y/python3
ea3755cb5f41f60587bda379feea9e5f4b8c111b
[ "Apache-2.0" ]
null
null
null
python3-7/python3-7.py
t7y/python3
ea3755cb5f41f60587bda379feea9e5f4b8c111b
[ "Apache-2.0" ]
14
2020-12-03T00:42:11.000Z
2022-03-21T18:03:49.000Z
#Lists [] #Create a list - remember the square brackets x = ['Bryan','Cairns',46] #Can mix data types print(f'List: {x}') #Print the list print(f'Len: {len(x)}') #Print the len #Index and positioning - zero based print(f'Zero: {x[0]}') #First item is ZERO print(f'Slice: {x[1:2]}') #Slice the list #Adding Items - app...
21.630137
54
0.641545
38c72f16fdfc47434974909dc714666e48cf48b9
156
py
Python
SQLITE3 & python/SQLITE3 read data from database.py
OSAMAMOHAMED1234/python_projects
fb4bc7356847c3f46df690a9386cf970377a6f7c
[ "MIT" ]
null
null
null
SQLITE3 & python/SQLITE3 read data from database.py
OSAMAMOHAMED1234/python_projects
fb4bc7356847c3f46df690a9386cf970377a6f7c
[ "MIT" ]
null
null
null
SQLITE3 & python/SQLITE3 read data from database.py
OSAMAMOHAMED1234/python_projects
fb4bc7356847c3f46df690a9386cf970377a6f7c
[ "MIT" ]
null
null
null
import sqlite3 con = sqlite3.connect("database.db") c = con.cursor() c.execute("SELECT * FROM names") for row in c.fetchall(): print(row) con.close()
15.6
36
0.679487
af0f1bdefac38453867b942ddc7083f9baa9fbf4
2,241
py
Python
polyaxon/libs/json_utils.py
elyase/polyaxon
1c19f059a010a6889e2b7ea340715b2bcfa382a0
[ "MIT" ]
null
null
null
polyaxon/libs/json_utils.py
elyase/polyaxon
1c19f059a010a6889e2b7ea340715b2bcfa382a0
[ "MIT" ]
null
null
null
polyaxon/libs/json_utils.py
elyase/polyaxon
1c19f059a010a6889e2b7ea340715b2bcfa382a0
[ "MIT" ]
null
null
null
import datetime import decimal import uuid from enum import Enum from json import JSONEncoder, _default_decoder from django.utils.html import mark_safe from django.utils.timezone import is_aware def better_default_encoder(o): if isinstance(o, uuid.UUID): return o.hex elif isinstance(o, datetime.date...
25.465909
74
0.648371
b79bf6540e7fb83c693a41d6d49ea90a7a01440d
3,142
py
Python
01_collect_tweets.py
tuchandra/echo-chambers
4f5bbbb213f0711614080773821f57c9b351dea6
[ "MIT" ]
4
2018-09-14T07:46:51.000Z
2020-11-04T03:43:11.000Z
01_collect_tweets.py
tuchandra/echo-chambers
4f5bbbb213f0711614080773821f57c9b351dea6
[ "MIT" ]
null
null
null
01_collect_tweets.py
tuchandra/echo-chambers
4f5bbbb213f0711614080773821f57c9b351dea6
[ "MIT" ]
2
2019-04-12T21:47:18.000Z
2020-11-23T17:56:17.000Z
"""Collect tweets about a subject; run stream for an hour and save to JSON. Use the Twitter Streaming API to do this; requires that authorization be properly setup (see authorize.py) so that one can use the API. Important: The script is designed to be run once every hour. Because of this, the stream will disconnect a...
32.061224
77
0.622533
a5c42df2f0b471d3640286ec590ff1820edd254e
3,378
py
Python
src/clients/ctm_saas_client/models/warning_list.py
IceT-M/ctm-python-client
0ef1d8a3c9a27a01c088be1cdf5d177d25912bac
[ "BSD-3-Clause" ]
5
2021-12-01T18:40:00.000Z
2022-03-04T10:51:44.000Z
src/clients/ctm_saas_client/models/warning_list.py
IceT-M/ctm-python-client
0ef1d8a3c9a27a01c088be1cdf5d177d25912bac
[ "BSD-3-Clause" ]
3
2022-02-21T20:08:32.000Z
2022-03-16T17:41:03.000Z
src/clients/ctm_saas_client/models/warning_list.py
IceT-M/ctm-python-client
0ef1d8a3c9a27a01c088be1cdf5d177d25912bac
[ "BSD-3-Clause" ]
7
2021-12-01T11:59:16.000Z
2022-03-01T18:16:40.000Z
# coding: utf-8 """ Control-M Services Provides access to BMC Control-M Services # noqa: E501 OpenAPI spec version: 9.20.30 Contact: customer_support@bmc.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from clients.ctm...
27.241935
80
0.565127
c9e1c4824f2a07b3df3e34f019bad0a0b6407b28
5,335
bzl
Python
prow/def.bzl
zetaab/test-infra
ad64c1207e3f684f05ccd652cebed8f1b66cf27a
[ "Apache-2.0" ]
36
2018-12-30T07:14:18.000Z
2022-03-16T02:46:22.000Z
prow/def.bzl
zetaab/test-infra
ad64c1207e3f684f05ccd652cebed8f1b66cf27a
[ "Apache-2.0" ]
67
2017-07-14T08:18:28.000Z
2020-11-23T08:59:51.000Z
prow/def.bzl
zetaab/test-infra
ad64c1207e3f684f05ccd652cebed8f1b66cf27a
[ "Apache-2.0" ]
14
2018-12-30T07:15:02.000Z
2021-12-07T07:23:07.000Z
# Copyright 2018 The Kubernetes Authors. # # 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 ...
32.932099
101
0.661668
ff9afd5ec00c809a12966638b906d5b719034d6f
21,273
py
Python
ansible/my_env/lib/python2.7/site-packages/ansible/modules/cloud/vmware/vmware_portgroup.py
otus-devops-2019-02/yyashkin_infra
0cd0c003884155ac922e3e301305ac202de7028c
[ "MIT" ]
1
2019-04-16T21:23:15.000Z
2019-04-16T21:23:15.000Z
ansible/ansible/modules/cloud/vmware/vmware_portgroup.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
7
2020-09-07T17:27:56.000Z
2022-03-02T06:25:46.000Z
ansible/ansible/modules/cloud/vmware/vmware_portgroup.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
1
2020-03-22T01:04:48.000Z
2020-03-22T01:04:48.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2015, Joseph Callen <jcallen () csc.com> # Copyright: (c) 2017-18, Ansible Project # Copyright: (c) 2017-18, Abhijeet Kasurde <akasurde@redhat.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ im...
42.546
141
0.592347
a1ee0ea2e7c86c391b35e6aad6529545c1515bd2
231
py
Python
src/Exceptions/NotCleanWorkingTree.py
flexiooss/flexio-flow
47491c7e5b49a02dc859028de0d486edc0014b26
[ "Apache-2.0" ]
null
null
null
src/Exceptions/NotCleanWorkingTree.py
flexiooss/flexio-flow
47491c7e5b49a02dc859028de0d486edc0014b26
[ "Apache-2.0" ]
44
2019-04-05T06:08:15.000Z
2021-09-13T19:37:49.000Z
src/Exceptions/NotCleanWorkingTree.py
flexiooss/flexio-flow
47491c7e5b49a02dc859028de0d486edc0014b26
[ "Apache-2.0" ]
null
null
null
class NotCleanWorkingTree(Exception): def __init__(self, message: str = ''): self.message: str = message def __str__(self): return """ Your working tree is not clean {0!s} """.format(self.message)
21
42
0.619048
57068b3716e3b2749723ffbf2d2697efedf24f8a
4,461
py
Python
flash/core/integrations/pytorch_forecasting/adapter.py
Actis92/lightning-flash
49972268cfc0f95f1bd2b8fbf25036970cc44b59
[ "Apache-2.0" ]
1,457
2021-01-28T20:40:16.000Z
2022-03-31T06:22:05.000Z
flash/core/integrations/pytorch_forecasting/adapter.py
Actis92/lightning-flash
49972268cfc0f95f1bd2b8fbf25036970cc44b59
[ "Apache-2.0" ]
1,123
2021-01-28T20:37:56.000Z
2022-03-31T19:34:44.000Z
flash/core/integrations/pytorch_forecasting/adapter.py
Actis92/lightning-flash
49972268cfc0f95f1bd2b8fbf25036970cc44b59
[ "Apache-2.0" ]
170
2021-01-29T00:41:39.000Z
2022-03-29T16:09:52.000Z
# Copyright The PyTorch Lightning team. # # 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 i...
37.175
117
0.718225
d3f78be636f53d1e74f80a9d33f8b54c90e3a818
14,599
py
Python
ghostwriter/reporting/models.py
hotnops/Ghostwriter
2d0b5d6f83c29f66e0e382239d19f612bfe40a70
[ "BSD-3-Clause" ]
null
null
null
ghostwriter/reporting/models.py
hotnops/Ghostwriter
2d0b5d6f83c29f66e0e382239d19f612bfe40a70
[ "BSD-3-Clause" ]
null
null
null
ghostwriter/reporting/models.py
hotnops/Ghostwriter
2d0b5d6f83c29f66e0e382239d19f612bfe40a70
[ "BSD-3-Clause" ]
null
null
null
"""This contains all of the database models used by the Reporting application.""" # Standard Libraries import os # Django & Other 3rd Party Libraries from django.conf import settings from django.core.exceptions import ValidationError from django.db import models from django.urls import reverse from django.utils.trans...
31.531317
138
0.64066
3d27c5b1e5decf5e68ce2c50556957e6866b1d83
10,465
py
Python
config/settings/base.py
jiminyun/jistagram
c1a28db37b09c1cf57f843b6aefe7b32e9ec16e2
[ "MIT" ]
null
null
null
config/settings/base.py
jiminyun/jistagram
c1a28db37b09c1cf57f843b6aefe7b32e9ec16e2
[ "MIT" ]
null
null
null
config/settings/base.py
jiminyun/jistagram
c1a28db37b09c1cf57f843b6aefe7b32e9ec16e2
[ "MIT" ]
null
null
null
""" Base settings to build other settings files upon. """ import environ ROOT_DIR = environ.Path(__file__) - 3 # (jimistagram/config/settings/base.py - 3 = jimistagram/) APPS_DIR = ROOT_DIR.path('jimistagram') env = environ.Env() READ_DOT_ENV_FILE = env.bool('DJANGO_READ_DOT_ENV_FILE', default=False) if READ_DOT_E...
37.916667
98
0.637267
3265a4113dee8a8cc7f1e2c322e7536e4b29d0d5
5,745
py
Python
examples/how_to/tracebuildingstrategies.py
haoxusci/starfish
d7bd856024c75f2ce41504406f2a663566c3814b
[ "MIT" ]
164
2018-03-21T21:52:56.000Z
2022-03-23T17:14:39.000Z
examples/how_to/tracebuildingstrategies.py
lbgbox/starfish
0e879d995d5c49b6f5a842e201e3be04c91afc7e
[ "MIT" ]
1,728
2018-03-15T23:16:09.000Z
2022-03-12T00:09:18.000Z
examples/how_to/tracebuildingstrategies.py
lbgbox/starfish
0e879d995d5c49b6f5a842e201e3be04c91afc7e
[ "MIT" ]
66
2018-03-25T17:21:15.000Z
2022-01-16T09:17:11.000Z
""" .. _howto_tracebuildingstrategies: When to Use Each ``TraceBuildingStrategies`` ============================================ In order to multiplex image-based transcriptomics assays beyond the number of spectrally distinct fluorophores, assays use multiple rounds of imaging. Before every round, RNA transcripts or...
45.96
102
0.697476
ed183ad742b0e75182a7a28fa9a3a0917e44e8c4
1,247
py
Python
bin/maldown/views/collection.py
shutingrz/cuckoo_malware_downloader
18a0775f286f04502d5fe6842040ab34b5b89d7e
[ "MIT" ]
1
2020-04-06T19:49:05.000Z
2020-04-06T19:49:05.000Z
bin/maldown/views/collection.py
shutingrz/cuckoo_malware_downloader
18a0775f286f04502d5fe6842040ab34b5b89d7e
[ "MIT" ]
null
null
null
bin/maldown/views/collection.py
shutingrz/cuckoo_malware_downloader
18a0775f286f04502d5fe6842040ab34b5b89d7e
[ "MIT" ]
2
2018-10-02T21:53:18.000Z
2020-04-06T19:49:06.000Z
class Collection(): #collection = [ # 'id': 1, {{'id': 1, 'url':'http://konnna.site/sonzai/sinai', filename='petya.exe', ua='Mozilla/5.0', state=STANDBY}} # ] def __init__(self, cuckoo_web_host): self.collection = [] self.CUCKOO_WEB_HOST = cuckoo_web_host def storeItem(se...
24.94
134
0.477145
1c068f333314e7322b6a39302c32df7e142e30a7
2,726
py
Python
jmeter_api/listeners/summary_report/elements.py
dashawn888/jmeter_api
1ab5b02f3a7c8ad1b84fc50db4fe1fc2fa7c91bd
[ "Apache-2.0" ]
11
2020-03-22T13:30:21.000Z
2021-12-25T06:23:44.000Z
jmeter_api/listeners/summary_report/elements.py
dashawn888/jmeter_api
1ab5b02f3a7c8ad1b84fc50db4fe1fc2fa7c91bd
[ "Apache-2.0" ]
37
2019-12-18T13:12:50.000Z
2022-02-10T10:52:37.000Z
jmeter_api/listeners/summary_report/elements.py
dashawn888/jmeter_api
1ab5b02f3a7c8ad1b84fc50db4fe1fc2fa7c91bd
[ "Apache-2.0" ]
5
2019-12-06T10:55:56.000Z
2020-06-01T19:32:32.000Z
from jmeter_api.basics.listener.elements import ResultCollector class SummaryReport(ResultCollector): TEMPLATE = '../../basics/listener/result_collector_template.xml' def __init__(self, *, error_logging: bool = False, filename: str = None, time: bool = ...
36.837838
90
0.518709
b6d400f710f22aeb4937b027c16e5038ff0a8ce4
7,423
py
Python
src/molecule/command/init/scenario.py
clickthisnick/molecule
3f640d7e5cff8fae12fe52aa9dc41bf3e19db8e5
[ "MIT" ]
null
null
null
src/molecule/command/init/scenario.py
clickthisnick/molecule
3f640d7e5cff8fae12fe52aa9dc41bf3e19db8e5
[ "MIT" ]
null
null
null
src/molecule/command/init/scenario.py
clickthisnick/molecule
3f640d7e5cff8fae12fe52aa9dc41bf3e19db8e5
[ "MIT" ]
null
null
null
# Copyright (c) 2015-2018 Cisco Systems, Inc. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge...
33.436937
84
0.663074
e99269baec6ecfb3d936aa600c8fb586d803c386
545
py
Python
setup.py
nielsvaes/p4cmd
2657fbb6f484249491ad33d60f21dc75be8708d8
[ "MIT" ]
8
2021-11-26T14:18:05.000Z
2022-03-17T07:43:17.000Z
setup.py
nielsvaes/p4cmd
2657fbb6f484249491ad33d60f21dc75be8708d8
[ "MIT" ]
2
2022-03-10T09:48:30.000Z
2022-03-15T16:28:41.000Z
setup.py
nielsvaes/p4cmd
2657fbb6f484249491ad33d60f21dc75be8708d8
[ "MIT" ]
1
2022-02-02T13:45:42.000Z
2022-02-02T13:45:42.000Z
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="p4cmd", version="1.3.1", author="Niels Vaes", license='MIT', author_email="nielsvaes@gmail.com", description="Simple P4 python module", long_description=long_description, long_...
25.952381
50
0.675229
33a16efa0f0e274953e909385a7a31478931fbbe
17,851
py
Python
OMMBV/tests/test_core.py
rstoneback/OMMBV
591d24861ddc30d0fd8cafa784176ff2d73e9968
[ "BSD-3-Clause" ]
8
2020-07-28T17:32:35.000Z
2022-01-12T21:08:48.000Z
OMMBV/tests/test_core.py
pysat/pysatMagVect
19199475fcecca7a80a4fbc01d82a6e1ccb1a82d
[ "BSD-3-Clause" ]
19
2019-09-22T18:11:57.000Z
2020-01-29T17:07:57.000Z
OMMBV/tests/test_core.py
pysat/pysatMagVect
19199475fcecca7a80a4fbc01d82a6e1ccb1a82d
[ "BSD-3-Clause" ]
3
2019-09-22T18:52:26.000Z
2019-10-31T19:52:25.000Z
"""Unit tests for OMMBV core vector basis functions.""" import datetime as dt import functools import itertools import numpy as np import pandas as pds import pytest import warnings import OMMBV from OMMBV import tests import OMMBV.tests.test_deprecation as testing import OMMBV.trace import OMMBV.trans import OMMBV.v...
38.389247
80
0.470674
a8270a255d27a6b789713819c2997c09dd18d086
1,096
py
Python
tensorflowonspark/util.py
yileic/TensorFlowOnSpark
a431252d6a6d6fd5f1f55dac29e50f2901de57cd
[ "Apache-2.0" ]
4
2017-05-14T12:09:57.000Z
2018-04-12T12:56:54.000Z
tensorflowonspark/util.py
yileic/TensorFlowOnSpark
a431252d6a6d6fd5f1f55dac29e50f2901de57cd
[ "Apache-2.0" ]
null
null
null
tensorflowonspark/util.py
yileic/TensorFlowOnSpark
a431252d6a6d6fd5f1f55dac29e50f2901de57cd
[ "Apache-2.0" ]
3
2018-05-10T01:12:11.000Z
2019-06-20T08:46:04.000Z
# Copyright 2017 Yahoo Inc. # Licensed under the terms of the Apache 2.0 license. # Please see LICENSE file in the project root for terms. from __future__ import absolute_import from __future__ import division from __future__ import nested_scopes from __future__ import print_function import os import socket def get_...
28.102564
87
0.724453
9edc6fad6a336f2b2fc559365a6b2b0c234f855d
7,635
py
Python
research/morph_net/framework/op_regularizer_manager_test.py
jdavidagudelo/tensorflow-models
6f019beec73b01861363bf717706e27f4210b979
[ "Apache-2.0" ]
1
2021-05-17T01:42:29.000Z
2021-05-17T01:42:29.000Z
research/morph_net/framework/op_regularizer_manager_test.py
jdavidagudelo/tensorflow-models
6f019beec73b01861363bf717706e27f4210b979
[ "Apache-2.0" ]
null
null
null
research/morph_net/framework/op_regularizer_manager_test.py
jdavidagudelo/tensorflow-models
6f019beec73b01861363bf717706e27f4210b979
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow 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 required by applicab...
47.12963
85
0.588212
ed5d2a7f43c9a61d4bf488d2268b0bd2bcd6842e
72
py
Python
mandarin/__init__.py
joegasewicz/amber
376e7fee3394cb96595745bf4655c4061a2fe2c2
[ "MIT" ]
2
2021-08-13T14:54:13.000Z
2021-08-30T15:31:32.000Z
mandarin/__init__.py
joegasewicz/amber
376e7fee3394cb96595745bf4655c4061a2fe2c2
[ "MIT" ]
2
2021-08-31T22:34:15.000Z
2021-09-11T16:08:26.000Z
mandarin/__init__.py
joegasewicz/mandarin
376e7fee3394cb96595745bf4655c4061a2fe2c2
[ "MIT" ]
null
null
null
from .ast import AST from .core import Core from .parser import Parser
14.4
26
0.777778
0289fb5c7517fa5bb9afe13a8333460e587cddb2
9,913
py
Python
tests/test_extract_1d.py
DavoGrant/ExoTiC-MIRI
e95b24841d3a3c1077e5b63a60b37c3e1a179937
[ "MIT" ]
null
null
null
tests/test_extract_1d.py
DavoGrant/ExoTiC-MIRI
e95b24841d3a3c1077e5b63a60b37c3e1a179937
[ "MIT" ]
6
2022-03-31T08:53:51.000Z
2022-03-31T14:11:58.000Z
tests/test_extract_1d.py
DavoGrant/ExoTiC-MIRI
e95b24841d3a3c1077e5b63a60b37c3e1a179937
[ "MIT" ]
1
2022-02-11T14:05:03.000Z
2022-02-11T14:05:03.000Z
import pickle import unittest import numpy as np import pandas as pd from jwst import datamodels import matplotlib.pyplot as plt from exotic_miri import Extract1dStep class TestExtract1d(unittest.TestCase): """ Test extract 1d step. """ def __init__(self, *args, **kwargs): super(TestExtract1d, self)...
41.827004
80
0.631797
d8f6fa4cd15ff78b161adc2e1ebfc89d435f6e3a
4,617
py
Python
5/functions.py
leyuanheart/Deep_Learning_From_Scratch
fd26c1ffb146dee91056fb55e3d3aa499f8485f2
[ "MIT" ]
1
2021-03-31T08:43:55.000Z
2021-03-31T08:43:55.000Z
5/functions.py
leyuanheart/Deep_Learning_From_Scratch
fd26c1ffb146dee91056fb55e3d3aa499f8485f2
[ "MIT" ]
null
null
null
5/functions.py
leyuanheart/Deep_Learning_From_Scratch
fd26c1ffb146dee91056fb55e3d3aa499f8485f2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Feb 20 09:38:50 2021 @author: leyuan """ import numpy as np def smooth_curve(x): """ 参考:http://glowingpython.blogspot.jp/2012/02/convolution-with-numpy.html """ window_len = 11 s = np.r_[x[window_len-1:0:-1], x, x[-1:-window_len:-1]] w = np.kaiser(w...
23.556122
100
0.521984
f4ae4a860c9bf23c38ffa90c78fcb0bab822e118
643
py
Python
src/data/572.py
NULLCT/LOMC
79a16474a8f21310e0fb47e536d527dd5dc6d655
[ "MIT" ]
null
null
null
src/data/572.py
NULLCT/LOMC
79a16474a8f21310e0fb47e536d527dd5dc6d655
[ "MIT" ]
null
null
null
src/data/572.py
NULLCT/LOMC
79a16474a8f21310e0fb47e536d527dd5dc6d655
[ "MIT" ]
null
null
null
n, q = map(int, input().split()) G = [[] for _ in range(n)] for _ in range(n - 1): a, b = map(lambda x: int(x) - 1, input().split()) G[a].append(b) G[b].append(a) from collections import deque def bfs(p): res = [] used = [False] * (n) dq = deque([[p, 0]]) while dq: v, i = dq.popl...
19.484848
53
0.474339
c4aa229564f1f03f7f36599c1452c9b88e1b8242
501
py
Python
Tutorials/Intro_To_NN/NNDL-solutions/code/chap3p13/exec_es_avg.py
lev1khachatryan/ASDS_CV
c9f0c0412002e929bcb7cc2fc6e5392977a9fa76
[ "MIT" ]
5
2019-12-13T16:26:10.000Z
2020-01-10T07:44:05.000Z
Tutorials/Intro_To_NN/NNDL-solutions/code/chap3p13/exec_es_avg.py
lev1khachatryan/ASDS_CV
c9f0c0412002e929bcb7cc2fc6e5392977a9fa76
[ "MIT" ]
1
2020-01-07T16:48:21.000Z
2020-03-18T18:43:37.000Z
Tutorials/Intro_To_NN/NNDL-solutions/code/chap3p13/exec_es_avg.py
lev1khachatryan/ASDS_CV
c9f0c0412002e929bcb7cc2fc6e5392977a9fa76
[ "MIT" ]
null
null
null
import mnist_loader training_data, validation_data, test_data = mnist_loader.load_data_wrapper() import network2_es_avg net = network2_es_avg.Network([784, 30, 10], cost=network2_es_avg.CrossEntropyCost) net.SGD(training_data, 10, 0.5, lmbda=5.0, es=10, evaluation_d...
33.4
76
0.700599
17ffb9c937bf8be1d9c5a77388c17ce70f239ba5
582
py
Python
Chapter08/moviereviewsproject/movie/views.py
PacktPublishing/Django-4-for-the-Impatient
a7571124eb414fb0f8bcabe7ae23d64460a1a882
[ "MIT" ]
null
null
null
Chapter08/moviereviewsproject/movie/views.py
PacktPublishing/Django-4-for-the-Impatient
a7571124eb414fb0f8bcabe7ae23d64460a1a882
[ "MIT" ]
null
null
null
Chapter08/moviereviewsproject/movie/views.py
PacktPublishing/Django-4-for-the-Impatient
a7571124eb414fb0f8bcabe7ae23d64460a1a882
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse from .models import Movie def home(request): searchTerm = request.GET.get('searchMovie') if searchTerm: movies = Movie.objects.filter(title__icontains=searchTerm) else: movies = Movie.objects.all() return render(re...
30.631579
84
0.706186
89d53e5009e822a5484c10dc02a7109cd1627a79
9,783
py
Python
src/you_get/processor/ffmpeg.py
fondvant/you-get
da2c268888e6fc1c3c986dedc5b47529f27deb98
[ "MIT" ]
4
2021-05-29T16:11:38.000Z
2022-03-07T06:32:40.000Z
src/you_get/processor/ffmpeg.py
T-K-233/you-get
ff6deaf2bde4a8e81094c7ff5893fa4d9b30efb0
[ "MIT" ]
null
null
null
src/you_get/processor/ffmpeg.py
T-K-233/you-get
ff6deaf2bde4a8e81094c7ff5893fa4d9b30efb0
[ "MIT" ]
1
2019-02-17T06:16:38.000Z
2019-02-17T06:16:38.000Z
#!/usr/bin/env python import logging import os.path import subprocess from ..util.strings import parameterize from ..common import print_more_compatible as print try: from subprocess import DEVNULL except ImportError: # Python 3.2 or below import os import atexit DEVNULL = os.open(os.devnull, os.O...
34.939286
114
0.567208
7de4733c0ea7846aee557dc1a0428fac4e5c02c7
13,449
py
Python
frame_level_models.py
boyaolin/Video-Classification
9cf441e68f966170c0563bec3c5aa67ff8dcbfb6
[ "Apache-2.0" ]
5
2017-08-07T05:35:44.000Z
2020-02-09T21:10:26.000Z
frame_level_models.py
boyaolin/Video-Classification
9cf441e68f966170c0563bec3c5aa67ff8dcbfb6
[ "Apache-2.0" ]
null
null
null
frame_level_models.py
boyaolin/Video-Classification
9cf441e68f966170c0563bec3c5aa67ff8dcbfb6
[ "Apache-2.0" ]
2
2017-06-01T03:03:19.000Z
2018-04-07T11:50:02.000Z
# Copyright 2016 Google 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 the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
39.908012
172
0.670384
fc929335714d1cfb982ea4f08814f615e0c66e70
4,166
py
Python
benchmark/startQiskit_Class2394.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_Class2394.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_Class2394.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=4 # total number=38 import cirq import qiskit from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from math import log2 import numpy as np import networkx as nx def bitwise_...
34.429752
140
0.647384
8a6cfc67e4815d340843b871a9ea7d0043e8c0af
3,803
py
Python
examples/wordle_test.py
GoVanguard/SeleniumBase
29241d58ccba23bb94ebf4c4a51fad578c4aceb8
[ "MIT" ]
1
2022-02-26T15:09:58.000Z
2022-02-26T15:09:58.000Z
examples/wordle_test.py
GoVanguard/SeleniumBase
29241d58ccba23bb94ebf4c4a51fad578c4aceb8
[ "MIT" ]
null
null
null
examples/wordle_test.py
GoVanguard/SeleniumBase
29241d58ccba23bb94ebf4c4a51fad578c4aceb8
[ "MIT" ]
null
null
null
import ast import random import requests from seleniumbase import __version__ from seleniumbase import BaseCase class WordleTests(BaseCase): word_list = [] def initalize_word_list(self): txt_file = "https://seleniumbase.io/cdn/txt/wordle_words.txt" word_string = requests.get(txt...
39.206186
78
0.531423
bda4820a230b315c8b75f0074db71c1951a3cef8
3,735
py
Python
temboo/core/Library/Amazon/IAM/DeleteGroup.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
7
2016-03-07T02:07:21.000Z
2022-01-21T02:22:41.000Z
temboo/core/Library/Amazon/IAM/DeleteGroup.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
null
null
null
temboo/core/Library/Amazon/IAM/DeleteGroup.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
8
2016-06-14T06:01:11.000Z
2020-04-22T09:21:44.000Z
# -*- coding: utf-8 -*- ############################################################################### # # DeleteGroup # Deletes a specified group. # # Python versions 2.6, 2.7, 3.x # # Copyright 2014, Temboo Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except i...
38.112245
179
0.681124
6c94586d3101e1b2782bdc96674bd5587750805a
228,911
py
Python
test/quantization/core/test_quantized_op.py
Annmariyajose/pytorch
726fd26b3e5ecf205569e59cf7cd5a6cbf4387a0
[ "Intel" ]
1
2021-06-19T08:44:09.000Z
2021-06-19T08:44:09.000Z
test/quantization/core/test_quantized_op.py
Annmariyajose/pytorch
726fd26b3e5ecf205569e59cf7cd5a6cbf4387a0
[ "Intel" ]
null
null
null
test/quantization/core/test_quantized_op.py
Annmariyajose/pytorch
726fd26b3e5ecf205569e59cf7cd5a6cbf4387a0
[ "Intel" ]
null
null
null
from builtins import round import copy import itertools import numpy as np import sys import unittest import operator import random import torch from torch import _VF import torch.jit import torch.nn.functional as F from torch.nn.modules.utils import _single, _pair from hypothesis import settings, HealthCheck from h...
46.197982
132
0.55792
4533de5b02b9b1ffff63798b0a798777580e214e
1,299
py
Python
code/platforms/linux/launch_application.py
Max-FM/maxfm_talon
5e7cc4ddeb1b72815eadb4283fcf8c0e29f37851
[ "MIT" ]
null
null
null
code/platforms/linux/launch_application.py
Max-FM/maxfm_talon
5e7cc4ddeb1b72815eadb4283fcf8c0e29f37851
[ "MIT" ]
null
null
null
code/platforms/linux/launch_application.py
Max-FM/maxfm_talon
5e7cc4ddeb1b72815eadb4283fcf8c0e29f37851
[ "MIT" ]
null
null
null
from talon import Module, Context, actions from ...user_settings import get_list_from_csv # Probably not the best way to import this, but it works. import subprocess mod = Module() ctx = Context() # Written specifically for Ubuntu. ctx.matches = """ os: linux """ default_applications = { "firefox": "firefox", ...
28.866667
104
0.658199
64b698f744c91347b03dbf07c038c0c2875de6c9
15,751
py
Python
lambda/access_key_assassin.py
easttimor/aws-scripts
941fe27a16885fe0932f34fa8e0952aeebb8e7bb
[ "MIT" ]
2
2020-06-30T13:00:59.000Z
2020-07-08T01:11:13.000Z
lambda/access_key_assassin.py
easttimor/aws-scripts
941fe27a16885fe0932f34fa8e0952aeebb8e7bb
[ "MIT" ]
1
2020-08-28T15:31:12.000Z
2020-08-28T15:31:12.000Z
lambda/access_key_assassin.py
easttimor/aws-scripts
941fe27a16885fe0932f34fa8e0952aeebb8e7bb
[ "MIT" ]
4
2020-05-14T14:14:12.000Z
2021-08-14T05:32:25.000Z
############################################################################### # Name: # Audit Access Key Age # Purpose: # Reads the credential report # Determines the age of each access key # Builds a report of all keys older than KEY_AGE_WARNING # Takes action (inactive/delete) on non-c...
37.772182
88
0.454701
9c467262bb46cd32b1f43a3be0346ec0ada6fadc
8,036
py
Python
vit_tensorflow/cvt.py
innat/vit-tensorflow
2f0f009651295c054aa84ed45f4dace35e7ea442
[ "MIT" ]
73
2022-03-25T08:57:14.000Z
2022-03-31T22:30:41.000Z
vit_tensorflow/cvt.py
innat/vit-tensorflow
2f0f009651295c054aa84ed45f4dace35e7ea442
[ "MIT" ]
1
2022-03-28T07:28:16.000Z
2022-03-28T08:51:26.000Z
vit_tensorflow/cvt.py
innat/vit-tensorflow
2f0f009651295c054aa84ed45f4dace35e7ea442
[ "MIT" ]
3
2022-03-28T05:24:22.000Z
2022-03-29T03:18:42.000Z
import tensorflow as tf from tensorflow import einsum from tensorflow.keras import Model from tensorflow.keras.layers import Layer from tensorflow.keras import Sequential import tensorflow.keras.layers as nn from einops import rearrange def group_dict_by_key(cond, d): return_val = [dict(), dict()] for key in ...
33.907173
150
0.576655
55ecf4ed4ac9c689364e641f1aaaab8acfb0708d
8,923
py
Python
src/generative/calculate_attribute_vectors.py
oleg96/facenet
ec1decb90784b8e480f81b388961e5a9ec3cf58d
[ "MIT" ]
null
null
null
src/generative/calculate_attribute_vectors.py
oleg96/facenet
ec1decb90784b8e480f81b388961e5a9ec3cf58d
[ "MIT" ]
null
null
null
src/generative/calculate_attribute_vectors.py
oleg96/facenet
ec1decb90784b8e480f81b388961e5a9ec3cf58d
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2017 David Sandberg # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, me...
44.393035
128
0.650006
0c21817608e77cc04ac7b19cad2c8e050a8879c4
1,355
py
Python
ynab_import/common/transformers.py
gronaix/ynab-import
46b7ba9e5ee9e59c193ea7f5c643ec82359fa68a
[ "MIT" ]
5
2019-12-12T14:52:54.000Z
2022-01-29T14:48:04.000Z
ynab_import/common/transformers.py
gronaix/ynab-import
46b7ba9e5ee9e59c193ea7f5c643ec82359fa68a
[ "MIT" ]
2
2019-12-09T22:28:17.000Z
2020-10-27T05:20:21.000Z
ynab_import/common/transformers.py
gronaix/ynab-import
46b7ba9e5ee9e59c193ea7f5c643ec82359fa68a
[ "MIT" ]
1
2022-02-04T21:11:50.000Z
2022-02-04T21:11:50.000Z
import abc from collections import Counter from typing import List from ynab_import.common.models import YnabTransaction from ynab_import.core.interactions import Transaction class Transformer(abc.ABC): def __init__(self, account_id: str) -> None: self.counter: Counter = Counter() self.account_id...
31.511628
82
0.675277
2c0cb007696ad2a19aa49655bcfd1ac978d4cf7d
2,573
py
Python
contrib/devtools/cli-help-to-markdown.py
EyeOfPython/bitcoin-cash-node
13f5ed384aae11eaffd1097a0e75beca2b54f93d
[ "MIT" ]
61
2020-02-23T01:19:16.000Z
2022-03-04T15:22:00.000Z
contrib/devtools/cli-help-to-markdown.py
1Crazymoney/bitcoin-cash-node
8f82823b3c5d4bcb401b0e4e6b464c1228f936e1
[ "MIT" ]
1
2021-05-07T19:44:52.000Z
2021-05-07T19:44:52.000Z
contrib/devtools/cli-help-to-markdown.py
1Crazymoney/bitcoin-cash-node
8f82823b3c5d4bcb401b0e4e6b464c1228f936e1
[ "MIT" ]
20
2020-03-01T02:35:17.000Z
2021-12-28T12:04:34.000Z
#!/usr/bin/env python3 # Copyright (c) 2020 The Bitcoin developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Converts CLI help text to Markdown. Instead of executing this script directly, run gen-manpages.sh, which will ...
27.666667
102
0.582588
07af610f2586c766d0bdf44df70e6cbd68c848f0
3,111
py
Python
examples/facerec_from_webcam_faster.py
mawlm5007/MilanoFives
046de960447ad497c87bee52cd5bac23d547e360
[ "MIT" ]
null
null
null
examples/facerec_from_webcam_faster.py
mawlm5007/MilanoFives
046de960447ad497c87bee52cd5bac23d547e360
[ "MIT" ]
null
null
null
examples/facerec_from_webcam_faster.py
mawlm5007/MilanoFives
046de960447ad497c87bee52cd5bac23d547e360
[ "MIT" ]
null
null
null
import face_recognition import cv2 # This is a demo of running face recognition on live video from your webcam. It's a little more complicated than the # other example, but it includes some basic performance tweaks to make things run a lot faster: # 1. Process each video frame at 1/4 resolution (though still display...
37.481928
116
0.68756
1242c9d9d38cfa8de2e6abc4e9757cbf35e7cbcc
14,551
py
Python
libqtile/drawer.py
dequis/qtile
560e7230016acf4ca47c7c539bb65479085e2019
[ "MIT" ]
null
null
null
libqtile/drawer.py
dequis/qtile
560e7230016acf4ca47c7c539bb65479085e2019
[ "MIT" ]
null
null
null
libqtile/drawer.py
dequis/qtile
560e7230016acf4ca47c7c539bb65479085e2019
[ "MIT" ]
null
null
null
# Copyright (c) 2010 Aldo Cortesi # Copyright (c) 2011 Florian Mounier # Copyright (c) 2011 oitel # Copyright (c) 2011 Kenji_Takahashi # Copyright (c) 2011 Paul Colomiets # Copyright (c) 2012, 2014 roger # Copyright (c) 2012 nullzion # Copyright (c) 2013 Tao Sauvage # Copyright (c) 2014-2015 Sean Vig # Copyright (c) 20...
34.727924
105
0.609374
9d40237a66a633d5ca42e44a99b55d20ab8a1a8f
799
py
Python
code_clone_detection/code/sumscores.py
wangdeze18/DACL
d6474363987f89b66b534382f37049c2d6a9c254
[ "MIT" ]
3
2022-02-26T03:59:52.000Z
2022-03-18T08:01:14.000Z
code_clone_detection/code/sumscores.py
wangdeze18/DACL
d6474363987f89b66b534382f37049c2d6a9c254
[ "MIT" ]
null
null
null
code_clone_detection/code/sumscores.py
wangdeze18/DACL
d6474363987f89b66b534382f37049c2d6a9c254
[ "MIT" ]
1
2022-02-26T03:59:59.000Z
2022-02-26T03:59:59.000Z
import numpy as np score = np.load("scorest.npy") score0 = np.load("scores0.npy") score1 = np.load("scores1.npy") score2 = np.load("scores2.npy") sum = score + (score0 + score1 + score2)/3 y_preds = sum > 0.99*2 ##threshhold def read_answers(filename): answers = [] with open(filename) as f: for line ...
29.592593
71
0.678348
aad63aeaaa68023da9bea341f1c7f45f8d2b98b4
395
py
Python
django/curriculo/curriculo/wsgi.py
adilsond/api-cadastro-curriculo-django
74bcb822188d5db6aa465cac929ed2bfc3b39f4f
[ "Apache-2.0" ]
null
null
null
django/curriculo/curriculo/wsgi.py
adilsond/api-cadastro-curriculo-django
74bcb822188d5db6aa465cac929ed2bfc3b39f4f
[ "Apache-2.0" ]
null
null
null
django/curriculo/curriculo/wsgi.py
adilsond/api-cadastro-curriculo-django
74bcb822188d5db6aa465cac929ed2bfc3b39f4f
[ "Apache-2.0" ]
null
null
null
""" WSGI config for curriculo project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SET...
23.235294
78
0.787342
01cc70265574e2d01f25c7ca791ed8e39f23517b
7,901
py
Python
ckanext/datastore/tests/test_db.py
gg2/ckan
d61a533cc330b6050f4957573f58ec912695ed0a
[ "BSD-3-Clause" ]
1
2022-03-24T04:47:38.000Z
2022-03-24T04:47:38.000Z
ckanext/datastore/tests/test_db.py
gg2/ckan
d61a533cc330b6050f4957573f58ec912695ed0a
[ "BSD-3-Clause" ]
1
2021-09-22T12:53:39.000Z
2021-09-22T12:53:39.000Z
ckanext/datastore/tests/test_db.py
gg2/ckan
d61a533cc330b6050f4957573f58ec912695ed0a
[ "BSD-3-Clause" ]
2
2018-01-21T17:03:08.000Z
2019-07-23T08:49:52.000Z
# encoding: utf-8 import unittest.mock as mock import pytest import sqlalchemy.exc import ckan.lib.jobs as jobs import ckan.plugins as p import ckan.tests.factories as factories import ckan.tests.helpers as helpers import ckanext.datastore.backend as backend import ckanext.datastore.backend.postgres as db @pytest.m...
34.960177
100
0.631945
2d29dcfd5616d25b1761413420f9308f480f0824
12,621
py
Python
tests/test_interface.py
capitalone/edgetest
181fbef6e22c77e8e3d22758d2d9392874aadc45
[ "Apache-2.0" ]
16
2021-12-02T21:13:59.000Z
2022-03-29T14:04:24.000Z
tests/test_interface.py
capitalone/edgetest
181fbef6e22c77e8e3d22758d2d9392874aadc45
[ "Apache-2.0" ]
15
2021-11-29T17:58:03.000Z
2022-03-25T21:51:16.000Z
tests/test_interface.py
capitalone/edgetest
181fbef6e22c77e8e3d22758d2d9392874aadc45
[ "Apache-2.0" ]
4
2021-12-10T18:30:15.000Z
2022-03-25T01:47:15.000Z
"""Test the CLI.""" import platform from pathlib import Path from unittest.mock import PropertyMock, call, patch from click.testing import CliRunner from edgetest.interface import cli CURR_DIR = Path(__file__).resolve().parent REQS = """ myupgrade """ SETUP_CFG = """ [edgetest.envs.myenv] upgrade = myupgrade ...
30.05
98
0.539656
c4b9186c9ec32ab8a0d8632c5055ab545566b513
185
py
Python
toontown/minigame/DivingGameGlobals.py
TheFamiliarScoot/open-toontown
678313033174ea7d08e5c2823bd7b473701ff547
[ "BSD-3-Clause" ]
99
2019-11-02T22:25:00.000Z
2022-02-03T03:48:00.000Z
toontown/minigame/DivingGameGlobals.py
TheFamiliarScoot/open-toontown
678313033174ea7d08e5c2823bd7b473701ff547
[ "BSD-3-Clause" ]
42
2019-11-03T05:31:08.000Z
2022-03-16T22:50:32.000Z
toontown/minigame/DivingGameGlobals.py
TheFamiliarScoot/open-toontown
678313033174ea7d08e5c2823bd7b473701ff547
[ "BSD-3-Clause" ]
57
2019-11-03T07:47:37.000Z
2022-03-22T00:41:49.000Z
from toontown.toonbase import ToontownGlobals ENDLESS_GAME = config.GetBool('endless-maze-game', 0) NUM_SPAWNERS = 6 GAME_DURATION = 60.0 CollideMask = ToontownGlobals.CatchGameBitmask
30.833333
53
0.827027
47fb432304305be28cedbf1155fe4fbf0f5eafa3
134
py
Python
Mundo 1/ex030.py
adonaifariasdev/cursoemvideo-python3
1fd35e45b24c52013fa3bc98e723971db8e6b7d1
[ "MIT" ]
null
null
null
Mundo 1/ex030.py
adonaifariasdev/cursoemvideo-python3
1fd35e45b24c52013fa3bc98e723971db8e6b7d1
[ "MIT" ]
null
null
null
Mundo 1/ex030.py
adonaifariasdev/cursoemvideo-python3
1fd35e45b24c52013fa3bc98e723971db8e6b7d1
[ "MIT" ]
null
null
null
num = int(input('Digite um número: ')) if num % 2 == 0: print('{} É PAR!'.format(num)) else: print('{} É ÍMPAR!'.format(num))
22.333333
38
0.552239
f91875f94d5c26457144d11eabc9b7602ff460fd
2,164
py
Python
bats/TestGraders/grader_c/ABCF/tests/test_summa.py
vshagur/exgrex-py
c0aab2125063ea5b37f4e8d3ca19faf1a477d778
[ "MIT" ]
null
null
null
bats/TestGraders/grader_c/ABCF/tests/test_summa.py
vshagur/exgrex-py
c0aab2125063ea5b37f4e8d3ca19faf1a477d778
[ "MIT" ]
1
2021-04-03T04:13:58.000Z
2021-04-03T14:47:34.000Z
bats/TestGraders/grader_c/ABCF/tests/test_summa.py
vshagur/exgrex-py
c0aab2125063ea5b37f4e8d3ca19faf1a477d778
[ "MIT" ]
null
null
null
import unittest from tests.solution import summa class TestSumma(unittest.TestCase): # longMessage = False # отключить трейсбек def test_1(self): """short description for test_1 new line for short description """ # passed test self.assertEqual(summa(3, 5), 8, 'assert ...
31.823529
81
0.542052
b9430d8dbaf17f29aab0c517ec5e37f447674f88
14,731
py
Python
my_seg_depth/model2.py
JosephineRabbit/cycle_depth_estimation
27ae64453eaac997d016f6bf7baa6a6bdd1ae9cb
[ "BSD-3-Clause" ]
null
null
null
my_seg_depth/model2.py
JosephineRabbit/cycle_depth_estimation
27ae64453eaac997d016f6bf7baa6a6bdd1ae9cb
[ "BSD-3-Clause" ]
null
null
null
my_seg_depth/model2.py
JosephineRabbit/cycle_depth_estimation
27ae64453eaac997d016f6bf7baa6a6bdd1ae9cb
[ "BSD-3-Clause" ]
null
null
null
import torch import itertools from util.image_pool import ImagePool #from .base_model import BaseModel from my_seg_depth import networks2 from my_seg_depth.networks2 import init_net, init_weights #from .encoder_decoder import _UNetEncoder,_UNetDecoder import torch.nn as nn from util.util import scale_pyramid import os ...
36.735661
140
0.596837
0d2a3dba29ae0daa9991bd09abde45b06a32abf5
352
py
Python
src/downhill-0.2.2/test/style_test.py
masterkeywikz/seq2graph
745cb09f10c67a77c0ef517f5d58ac45f2ade09d
[ "MIT" ]
10
2017-02-25T17:26:15.000Z
2022-02-23T06:36:54.000Z
src/downhill-0.2.2/test/style_test.py
masterkeywikz/seq2graph
745cb09f10c67a77c0ef517f5d58ac45f2ade09d
[ "MIT" ]
null
null
null
src/downhill-0.2.2/test/style_test.py
masterkeywikz/seq2graph
745cb09f10c67a77c0ef517f5d58ac45f2ade09d
[ "MIT" ]
8
2016-12-22T00:36:33.000Z
2021-05-19T17:55:59.000Z
import glob import os import pep8 class TestCodeFormat: def test_pep8(self): def match(*p): s = ['downhill'] + list(p) + ['*.py'] return glob.glob(os.path.join(*s)) pep8style = pep8.StyleGuide(config_file='setup.cfg') result = pep8style.check_files(match()) ...
25.142857
60
0.599432
b5712beacc9be3e6733f4767217ba1eaebb844ad
9,045
py
Python
bandsintown/bandsintown.py
papernotes/BandsInTownAPI
11c8a417d930a64746186ee0bf03627d2050412f
[ "MIT" ]
2
2015-11-05T09:47:30.000Z
2016-07-19T23:43:58.000Z
bandsintown/bandsintown.py
papernotes/BandsInTownAPI
11c8a417d930a64746186ee0bf03627d2050412f
[ "MIT" ]
1
2018-01-18T23:57:34.000Z
2018-01-19T00:21:07.000Z
bandsintown/bandsintown.py
papernotes/BandsInTownAPI
11c8a417d930a64746186ee0bf03627d2050412f
[ "MIT" ]
1
2017-02-21T02:25:16.000Z
2017-02-21T02:25:16.000Z
""" Unofficial Python API Wrapper for BandsInTown API https://github.com/papernotes """ import requests class Client(object): """ Class object to use BandsInTown API """ def __init__(self, app_id): self.app_id = app_id self.artist_url = "http://api.bandsintown.com/artists/...
37.376033
98
0.535434
2b99119e900225c5b6959ee43132de5acd50871c
15,501
py
Python
roles/custom_module/module_utils/ibm_ss_utils.py
dunnevan/ibm-spectrum-scale-install-infra
352220d6dec53ed5e8a2983effae41911f681734
[ "Apache-2.0" ]
null
null
null
roles/custom_module/module_utils/ibm_ss_utils.py
dunnevan/ibm-spectrum-scale-install-infra
352220d6dec53ed5e8a2983effae41911f681734
[ "Apache-2.0" ]
1
2020-06-12T13:02:57.000Z
2020-06-15T14:45:09.000Z
roles/custom_module/module_utils/ibm_ss_utils.py
dunnevan/ibm-spectrum-scale-install-infra
352220d6dec53ed5e8a2983effae41911f681734
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Licensed Materials - Property of IBM # # (C) COPYRIGHT International Business Machines Corp 1994, 2018. # All Rights Reserved # # US Government Users Restricted Rights - Use, duplication or # disclosure restricted by GSA ADP Schedule Contract with IBM Corp. # author: IBM Corporation import os imp...
34.523385
113
0.525256
dc7d4e479ae594991266331dbb989e2ce361de99
1,964
py
Python
tests/test_time_years.py
putridparrot/PyUnits
4f1095c6fc0bee6ba936921c391913dbefd9307c
[ "MIT" ]
null
null
null
tests/test_time_years.py
putridparrot/PyUnits
4f1095c6fc0bee6ba936921c391913dbefd9307c
[ "MIT" ]
null
null
null
tests/test_time_years.py
putridparrot/PyUnits
4f1095c6fc0bee6ba936921c391913dbefd9307c
[ "MIT" ]
null
null
null
# <auto-generated> # This code was generated by the UnitCodeGenerator tool # # Changes to this file will be lost if the code is regenerated # </auto-generated> import unittest import units.time.years class TestYearsMethods(unittest.TestCase): def test_convert_known_years_to_seconds(self): self.assertAlmostEqual(1...
44.636364
80
0.777495
bd5927cae2ee61b4c72c95a9b2c304a87aa5d814
8,917
py
Python
src/civicboom/controllers/test.py
civicboom/civicboom
239cb9c2f1e8afa42ea2736c171e6043b04a7ff0
[ "MIT" ]
null
null
null
src/civicboom/controllers/test.py
civicboom/civicboom
239cb9c2f1e8afa42ea2736c171e6043b04a7ff0
[ "MIT" ]
null
null
null
src/civicboom/controllers/test.py
civicboom/civicboom
239cb9c2f1e8afa42ea2736c171e6043b04a7ff0
[ "MIT" ]
null
null
null
""" TestController A conroller for miscilanious test functions Locked down for use in development mode only """ from civicboom.lib.base import * from civicboom.lib.web import cookie_get, cookie_set, cookie_delete from cbutils.misc import set_now from paste.deploy.converters import asbool import datetime from time i...
33.776515
98
0.560951
498fb23772d65d2b22ac0d32e7c233113ee9f4c6
1,908
py
Python
elifecrossref/conf.py
elifesciences/elife-crossref-xml-generation
1cd7b3981d9c78032d2d0ffb68b651de40a8d622
[ "MIT" ]
3
2018-03-01T01:14:14.000Z
2021-01-19T13:04:42.000Z
elifecrossref/conf.py
elifesciences/elife-crossref-xml-generation
1cd7b3981d9c78032d2d0ffb68b651de40a8d622
[ "MIT" ]
88
2017-07-20T00:13:47.000Z
2021-11-29T04:58:01.000Z
elifecrossref/conf.py
elifesciences/elife-crossref-xml-generation
1cd7b3981d9c78032d2d0ffb68b651de40a8d622
[ "MIT" ]
4
2017-06-28T22:22:20.000Z
2021-02-17T23:06:39.000Z
import configparser import json CONFIG_FILE = "crossref.cfg" def load_config(config_file=None): if not config_file: config_file = CONFIG_FILE config = configparser.ConfigParser(interpolation=None) config.read(config_file) return config def raw_config(config_section, config_file=None): "...
32.896552
87
0.725891
883693106e6950a3a78eea9b69cc77663c41f39f
21,113
py
Python
src/peter_sslers/lib/db/queues.py
jvanasco/pyramid_letsencrypt_admin
6db37d30ef8028ff978bf6083cdf978fc88a4782
[ "MIT" ]
null
null
null
src/peter_sslers/lib/db/queues.py
jvanasco/pyramid_letsencrypt_admin
6db37d30ef8028ff978bf6083cdf978fc88a4782
[ "MIT" ]
null
null
null
src/peter_sslers/lib/db/queues.py
jvanasco/pyramid_letsencrypt_admin
6db37d30ef8028ff978bf6083cdf978fc88a4782
[ "MIT" ]
null
null
null
# stdlib import datetime import logging # pypi # import transaction # local from .logger import _log_object_event from .logger import log__OperationsEvent from .. import errors from .. import utils from ... import lib from ...model import objects as model_objects from ...model import utils as model_utils # =========...
38.882136
115
0.591531
31dcfec3ba9cfd4949e3473a24aec9b0a6c3a737
96
py
Python
django_server/fvh_courier/apps.py
ForumViriumHelsinki/CityLogistics
df4efef49bdc740a1dc47d0bda49ce2b3833e9c1
[ "MIT" ]
1
2021-11-02T03:21:48.000Z
2021-11-02T03:21:48.000Z
django_server/fvh_courier/apps.py
ForumViriumHelsinki/CityLogistics
df4efef49bdc740a1dc47d0bda49ce2b3833e9c1
[ "MIT" ]
136
2019-12-03T14:52:17.000Z
2022-02-26T21:18:15.000Z
django_server/fvh_courier/apps.py
ForumViriumHelsinki/CityLogistics
df4efef49bdc740a1dc47d0bda49ce2b3833e9c1
[ "MIT" ]
2
2020-06-23T23:58:08.000Z
2020-12-08T13:19:28.000Z
from django.apps import AppConfig class FvhCourierConfig(AppConfig): name = 'fvh_courier'
16
34
0.770833
b7c4b920b96676276e04c5ad6d53e283dfec7c53
28,544
py
Python
experiments/sd_test/hammersley.py
gnaynad/quasi-scikit-learn
867eed715ba83c7c6a039b1c84dff8e4bfb30f33
[ "BSD-3-Clause" ]
null
null
null
experiments/sd_test/hammersley.py
gnaynad/quasi-scikit-learn
867eed715ba83c7c6a039b1c84dff8e4bfb30f33
[ "BSD-3-Clause" ]
null
null
null
experiments/sd_test/hammersley.py
gnaynad/quasi-scikit-learn
867eed715ba83c7c6a039b1c84dff8e4bfb30f33
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/env python3 # def hammersley(i, m, n): # *****************************************************************************80 # ## HAMMERSLEY computes an element of a Hammersley sequence. # # Licensing: # # This code is distributed under the GNU LGPL license. # # Modified...
31.263965
85
0.513698