hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
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
239
max_forks_repo_name
stringlengths
5
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
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
797a8150a991d8b530548206f0a936079d5d5ea9
1,726
py
Python
cogs/links.py
vcokltfre/ResearchBot3
13f5439e1e3b742c360a1ef84556d44996837e49
[ "MIT" ]
null
null
null
cogs/links.py
vcokltfre/ResearchBot3
13f5439e1e3b742c360a1ef84556d44996837e49
[ "MIT" ]
null
null
null
cogs/links.py
vcokltfre/ResearchBot3
13f5439e1e3b742c360a1ef84556d44996837e49
[ "MIT" ]
null
null
null
from discord.ext import commands from pyourls3 import Yourls from utils.permissions import level class Links(commands.Cog): """A cog for link shortening and statistics.""" def __init__(self, bot: commands.Bot): self.bot = bot config = bot.cfg.module("links") self.api = Yourls(addr=co...
31.962963
118
0.588065
797a82c4ad1375e1a65b2a2824850725cbf0868c
4,565
py
Python
tests/test.py
starsflower/discordpy-slash-commands
ec72d2b24c369ba40a0f5c07c7959ba00dc4ded7
[ "MIT" ]
1
2021-05-10T14:00:40.000Z
2021-05-10T14:00:40.000Z
tests/test.py
amcwb/discordpy-slash-commands
ec72d2b24c369ba40a0f5c07c7959ba00dc4ded7
[ "MIT" ]
1
2021-10-31T06:53:48.000Z
2021-11-04T19:51:31.000Z
tests/test.py
amcwb/discordpy-slash-commands
ec72d2b24c369ba40a0f5c07c7959ba00dc4ded7
[ "MIT" ]
null
null
null
import unittest from typing import Literal, Optional, Union from discord.ext import commands from discord_slash.model import SlashCommandOptionType from pyslash.decorators import (get_slash_command_type, get_slash_kwargs, is_optional_of) from pyslash.utils import is_converter, validate_...
33.07971
116
0.566265
797a838eaebfda979940a228d941ad24fa63891d
28,448
py
Python
src/pymwm/slit/__init__.py
mnishida/PyMWM
0fffa2717c37ea258655ab9bf5196208e2be8fd1
[ "MIT" ]
3
2020-04-16T14:55:34.000Z
2021-08-04T07:03:31.000Z
src/pymwm/slit/__init__.py
mnishida/PyMWM
0fffa2717c37ea258655ab9bf5196208e2be8fd1
[ "MIT" ]
1
2021-08-13T04:45:50.000Z
2021-08-18T03:33:08.000Z
src/pymwm/slit/__init__.py
mnishida/PyMWM
0fffa2717c37ea258655ab9bf5196208e2be8fd1
[ "MIT" ]
2
2021-04-05T07:10:26.000Z
2021-08-04T03:15:43.000Z
from __future__ import annotations import cmath import enum from logging import getLogger import numpy as np import psutil import ray from pymwm.utils import slit_utils from pymwm.waveguide import Database, Sampling, Waveguide from .samples import Samples, SamplesForRay, SamplesLowLoss, SamplesLowLossForRay logger...
38.339623
88
0.451244
797a83b155ad435a77a79460b0285cfc9bbd0491
7,119
py
Python
padding_oracle.py
SameerPr/Padding_Oracle_attack
875706ca7dbda70d8facf51003848cea3f7bbc83
[ "MIT" ]
null
null
null
padding_oracle.py
SameerPr/Padding_Oracle_attack
875706ca7dbda70d8facf51003848cea3f7bbc83
[ "MIT" ]
null
null
null
padding_oracle.py
SameerPr/Padding_Oracle_attack
875706ca7dbda70d8facf51003848cea3f7bbc83
[ "MIT" ]
null
null
null
from itertools import cycle import logging from Crypto.Random import get_random_bytes from pwn import * from binascii import hexlify, unhexlify import os from Crypto.Cipher import AES __all__ = [ 'BadPaddingException', 'PaddingOracle', ] class BadPaddingException(Exception): ''' Raised when a bl...
34.726829
102
0.551903
797a849d59646178424d6d63de27103274389da0
13,166
py
Python
JumpscalePortalClassic/portal/docgenerator/PageRST.py
threefoldtech/jumpscale_portal_classic
d14fe4a17c0486df7a87d149e900746654091fda
[ "Apache-2.0" ]
null
null
null
JumpscalePortalClassic/portal/docgenerator/PageRST.py
threefoldtech/jumpscale_portal_classic
d14fe4a17c0486df7a87d149e900746654091fda
[ "Apache-2.0" ]
null
null
null
JumpscalePortalClassic/portal/docgenerator/PageRST.py
threefoldtech/jumpscale_portal_classic
d14fe4a17c0486df7a87d149e900746654091fda
[ "Apache-2.0" ]
null
null
null
from jumpscale import j from Page import Page import copy class PageRST(Page): """ """ def __init__(self, name, content=""): """ """ Page.__init__(self, name, content) self.body = "" self.projectname = "" self.logo = "" self.login = False ...
32.751244
149
0.525141
797a8509cce3ed58db945ecc4f6be4c303787ea3
299
py
Python
modules/django-cms/project/apps/filer/tests/__init__.py
msabramo/django-chuck
bbef6171c9b3738460dc05cb77e65ba88fcc5ad8
[ "BSD-2-Clause" ]
1
2020-05-29T04:27:50.000Z
2020-05-29T04:27:50.000Z
modules/django-cms/project/apps/filer/tests/__init__.py
msabramo/django-chuck
bbef6171c9b3738460dc05cb77e65ba88fcc5ad8
[ "BSD-2-Clause" ]
null
null
null
modules/django-cms/project/apps/filer/tests/__init__.py
msabramo/django-chuck
bbef6171c9b3738460dc05cb77e65ba88fcc5ad8
[ "BSD-2-Clause" ]
null
null
null
#-*- coding: utf-8 -*- from filer.tests.admin import * from filer.tests.fields import * from filer.tests.general import * from filer.tests.models import * from filer.tests.permissions import * from filer.tests.server_backends import * from filer.tests.tools import * from filer.tests.utils import *
29.9
41
0.769231
797a86d09f8b0f86efaf4c46a3e07a05fd810a0f
1,964
py
Python
benchexec/tools/vvt.py
carolemieux/benchexec
8e4b999150a6b0e686c1e9cc62d38a05aed6f875
[ "Apache-2.0" ]
null
null
null
benchexec/tools/vvt.py
carolemieux/benchexec
8e4b999150a6b0e686c1e9cc62d38a05aed6f875
[ "Apache-2.0" ]
null
null
null
benchexec/tools/vvt.py
carolemieux/benchexec
8e4b999150a6b0e686c1e9cc62d38a05aed6f875
[ "Apache-2.0" ]
null
null
null
""" BenchExec is a framework for reliable benchmarking. This file is part of BenchExec. Copyright (C) 2007-2015 Dirk Beyer 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 ...
31.174603
102
0.671589
797a873b76fbc3d0234388a2fcbc66ca20b465ce
30,268
py
Python
monai/deploy/operators/dicom_seg_writer_operator.py
gigony/test_readthedocs
e8c820ecda15aa59b50c1fe7674cbef00e24553d
[ "Apache-2.0" ]
null
null
null
monai/deploy/operators/dicom_seg_writer_operator.py
gigony/test_readthedocs
e8c820ecda15aa59b50c1fe7674cbef00e24553d
[ "Apache-2.0" ]
null
null
null
monai/deploy/operators/dicom_seg_writer_operator.py
gigony/test_readthedocs
e8c820ecda15aa59b50c1fe7674cbef00e24553d
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 MONAI Consortium # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, s...
46.494624
120
0.714054
797a8798d00da8929908132acadb2911ac8e817e
885
py
Python
backend/backend/usage/serializers.py
ibiblio-radiostats/radiostats
10fe6a7b74920aa71e596a693099fdd5a88dbdc9
[ "MIT", "Unlicense" ]
null
null
null
backend/backend/usage/serializers.py
ibiblio-radiostats/radiostats
10fe6a7b74920aa71e596a693099fdd5a88dbdc9
[ "MIT", "Unlicense" ]
6
2021-04-06T18:18:44.000Z
2021-09-22T19:38:51.000Z
backend/backend/usage/serializers.py
ibiblio-radiostats/radiostats
10fe6a7b74920aa71e596a693099fdd5a88dbdc9
[ "MIT", "Unlicense" ]
null
null
null
from rest_framework import serializers from backend.usage.models import Report from backend.usage.models import Station class ReportSerializer(serializers.ModelSerializer): stations = serializers.CharField(source='sid.station_name',read_only=True) class Meta: model = Report fields ...
26.029412
91
0.611299
797a87adc9125ad5eb459c646560ddeff2ed5c18
32,327
py
Python
src/rogerthat/bizz/registration.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
src/rogerthat/bizz/registration.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
src/rogerthat/bizz/registration.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Green Valley Belgium NV # # 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 appl...
48.249254
153
0.708665
797a8801767f2f9929a5d2a63a9822d707683513
16,883
py
Python
stsciutils/tools/convertgeis.py
spacetelescope/stsciutils
85df1f215071a9c00a1e8cf3da823b5fedf8f2f2
[ "BSD-3-Clause" ]
null
null
null
stsciutils/tools/convertgeis.py
spacetelescope/stsciutils
85df1f215071a9c00a1e8cf3da823b5fedf8f2f2
[ "BSD-3-Clause" ]
1
2019-06-05T18:56:33.000Z
2020-11-19T16:33:50.000Z
stsciutils/tools/convertgeis.py
spacetelescope/stsciutils
85df1f215071a9c00a1e8cf3da823b5fedf8f2f2
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # $Id: readgeis.py 10520 2010-10-11 16:39:49Z hack $ """ convertgeis: Read GEIS file and convert it to a waivered-FITS file. License: http://www.stsci.edu/resources/software_hardware/pyraf/LICENSE Usage: convertgeis.py [options] GEISname FITSname ...
34.525562
113
0.568915
797a884cde198fbf8e2524653b5e7940463b9601
1,824
py
Python
tests/test_dataset.py
yt87/pywgrib2_xr
5c49eaaee12948ecc2f2aff526a9e51e6d4d98b5
[ "0BSD" ]
11
2021-01-05T03:26:51.000Z
2022-02-15T02:44:39.000Z
tests/test_dataset.py
yt87/pywgrib2_xr
5c49eaaee12948ecc2f2aff526a9e51e6d4d98b5
[ "0BSD" ]
2
2020-12-18T02:35:08.000Z
2021-07-11T13:01:53.000Z
tests/test_dataset.py
yt87/pywgrib2_xr
5c49eaaee12948ecc2f2aff526a9e51e6d4d98b5
[ "0BSD" ]
null
null
null
import pytest from pywgrib2_xr import __version__ from pywgrib2_xr.inventory import load_or_make_inventory from pywgrib2_xr.dataset import open_dataset from pywgrib2_xr.template import make_template from . import path_to, paths_to @pytest.fixture(scope="module") def filepaths(): return paths_to("CMC_glb_TMP_ISB...
28.5
92
0.651316
797a88f0472ed2837bdb21f25e65b10861730a17
1,778
py
Python
offline_logparser/layers/tokenize_group_layer.py
humanlee1011/SwissLog
49c0056f97737f6fa057f4b880a8a67c07ca2655
[ "MIT" ]
1
2021-04-01T07:18:30.000Z
2021-04-01T07:18:30.000Z
offline_logparser/layers/tokenize_group_layer.py
humanlee1011/SwissLog
49c0056f97737f6fa057f4b880a8a67c07ca2655
[ "MIT" ]
null
null
null
offline_logparser/layers/tokenize_group_layer.py
humanlee1011/SwissLog
49c0056f97737f6fa057f4b880a8a67c07ca2655
[ "MIT" ]
null
null
null
import re from tqdm import tqdm import pandas as pd from layers.layer import Layer import pickle import re class TokenizeGroupLayer(Layer): def __init__(self, log_messages, rex=[], dictionary_file=None): self.log_messages = log_messages self.rex = rex if dictionary_file: f = op...
27.353846
79
0.523622
797a8923fc04204e5ef785f8d2d108803e13c29b
6,264
py
Python
custom_components/wemportal/sensor.py
dm82m/hass-WEM-Portal
df780053e3ed48df31aad52ca79d022758217f6c
[ "MIT" ]
2
2021-12-17T08:09:44.000Z
2022-01-25T12:07:00.000Z
custom_components/wemportal/sensor.py
dm82m/hass-WEM-Portal
df780053e3ed48df31aad52ca79d022758217f6c
[ "MIT" ]
null
null
null
custom_components/wemportal/sensor.py
dm82m/hass-WEM-Portal
df780053e3ed48df31aad52ca79d022758217f6c
[ "MIT" ]
null
null
null
""" Gets sensor data from Weishaupt WEM portal using web scraping and mobile API Author: erikkastelec https://github.com/erikkastelec/hass-WEM-Portal Configuration for this platform: sensor: - platform: wemportal scan_interval: 1800 api_scan_interval: 300 username: username password: password lan...
31.009901
128
0.660121
797a8a03fce948af022344a501eea48a990107bd
32,324
py
Python
setup_token_testdata.py
c19trace/backend-server-v2
a5da8369eb70b1cd01cde75db1738aa1ed38f81a
[ "MIT" ]
null
null
null
setup_token_testdata.py
c19trace/backend-server-v2
a5da8369eb70b1cd01cde75db1738aa1ed38f81a
[ "MIT" ]
null
null
null
setup_token_testdata.py
c19trace/backend-server-v2
a5da8369eb70b1cd01cde75db1738aa1ed38f81a
[ "MIT" ]
null
null
null
from datetime import datetime import sqlite3 DATABASE = 'gmit.db' CREATE_QUERY = """create table if not exists exposureTokens (id integer primary key autoincrement, gNum varchar(32) not null, token varchar(32) not null unique, date date, status integer); ...
60.873823
88
0.680949
797a8a78bbcdb7e7e5d2b90cea2c195ddbc25a1e
346
py
Python
docs/source/examples/sin_approx_example.py
giserh/gpkit
71b953fcac8f67f148b67b54b6e8cd4182dc0b3b
[ "MIT" ]
null
null
null
docs/source/examples/sin_approx_example.py
giserh/gpkit
71b953fcac8f67f148b67b54b6e8cd4182dc0b3b
[ "MIT" ]
null
null
null
docs/source/examples/sin_approx_example.py
giserh/gpkit
71b953fcac8f67f148b67b54b6e8cd4182dc0b3b
[ "MIT" ]
null
null
null
"Can be found in gpkit/docs/source/examples/sin_approx_example.py" import numpy as np from gpkit import Variable, Model x = Variable("x") y = Variable("y") objective = y constraints = [y >= x, x <= np.pi/2., x >= np.pi/4., ] m = Model(objective, constraints) print(m.solv...
19.222222
66
0.598266
797a8af8bb5ed6a01616bc299193d08c4c4dc2ac
1,087
py
Python
got/iceAndFire03.py
thirdeye18/AWSPythonMyCode
3faba2594199d70b2202545b5959caa80b026ec2
[ "MIT" ]
null
null
null
got/iceAndFire03.py
thirdeye18/AWSPythonMyCode
3faba2594199d70b2202545b5959caa80b026ec2
[ "MIT" ]
null
null
null
got/iceAndFire03.py
thirdeye18/AWSPythonMyCode
3faba2594199d70b2202545b5959caa80b026ec2
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """Alta3 Research - Exploring OpenAPIs with requests""" # documentation for this API is at # https://anapioficeandfire.com/Documentation import requests AOIF_BOOKS = "https://www.anapioficeandfire.com/api/books" def main(): ## Send HTTPS GET to the API of ICE and Fire gotresp = requests.ge...
32.939394
88
0.632935
797a8b07c4bce106382bd2c4fb6a295a9cb9a02b
5,488
py
Python
src/openfermion/utils/__init__.py
nkkchem/OpenFermion
35ca4b389438a63eebf97cf492c135811c1923a6
[ "Apache-2.0" ]
1
2018-08-13T21:51:44.000Z
2018-08-13T21:51:44.000Z
src/openfermion/utils/__init__.py
0tt3r/OpenFermion
35ca4b389438a63eebf97cf492c135811c1923a6
[ "Apache-2.0" ]
null
null
null
src/openfermion/utils/__init__.py
0tt3r/OpenFermion
35ca4b389438a63eebf97cf492c135811c1923a6
[ "Apache-2.0" ]
null
null
null
# 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, software # distribu...
45.733333
79
0.574526
797a8b8dafd105df8016c936dca5b5b14a013ecf
8,454
py
Python
examples/contrib/gp/sv-dkl.py
ludkinm/pyro
d24c808a9d86d79c43a99990fe9e418ce5976613
[ "Apache-2.0" ]
null
null
null
examples/contrib/gp/sv-dkl.py
ludkinm/pyro
d24c808a9d86d79c43a99990fe9e418ce5976613
[ "Apache-2.0" ]
null
null
null
examples/contrib/gp/sv-dkl.py
ludkinm/pyro
d24c808a9d86d79c43a99990fe9e418ce5976613
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017-2019 Uber Technologies, Inc. # SPDX-License-Identifier: Apache-2.0 """ An example to use Pyro Gaussian Process module to classify MNIST and binary MNIST. Follow the idea from reference [1], we will combine a convolutional neural network (CNN) with a RBF kernel to create a "deep" kernel: >>> ...
42.482412
99
0.625858
797a8bbb6747ecaa1bb5d2f9cab5fc8372d0e682
5,185
py
Python
Evaluation/OnlineEvaluation/metrics.py
ashwath92/MastersThesis
f74755dc0c32f316da3c860dd5dbfa4c9cad97b3
[ "MIT" ]
5
2020-11-05T07:11:54.000Z
2021-08-04T21:37:28.000Z
Evaluation/OnlineEvaluation/metrics.py
ashwath92/MastersThesis
f74755dc0c32f316da3c860dd5dbfa4c9cad97b3
[ "MIT" ]
null
null
null
Evaluation/OnlineEvaluation/metrics.py
ashwath92/MastersThesis
f74755dc0c32f316da3c860dd5dbfa4c9cad97b3
[ "MIT" ]
4
2020-11-05T06:04:38.000Z
2021-08-02T16:25:42.000Z
import pandas as pd import numpy as np def binarize_predictions(relevant_list, predicted_list, importance=True): """ importance=True if the first ground truth is more important than the others""" #print(predicted_list) """Returns 2 if the first entry is present in the predictions, 1 if one of the other...
48.009259
119
0.701639
797a8be143c8334935e06656bc7dad13f6449e07
647
py
Python
src/sword2offer/8_getNext.py
callmexss/offer
7b85c7b40bc590b81c37cf797f1d08b9717de9ad
[ "MIT" ]
null
null
null
src/sword2offer/8_getNext.py
callmexss/offer
7b85c7b40bc590b81c37cf797f1d08b9717de9ad
[ "MIT" ]
null
null
null
src/sword2offer/8_getNext.py
callmexss/offer
7b85c7b40bc590b81c37cf797f1d08b9717de9ad
[ "MIT" ]
null
null
null
import offerhelper from offerhelper import TreeLinkNode class Solution: def GetNext(self, pNode): if pNode.right: node = pNode.right while node.left: node = node.left return node else: while pNode.next: parent = pNode...
17.026316
40
0.517774
797a8c511a8725b899ab29b0d433542c1705bbbd
1,541
py
Python
fabfile.py
Saevon/saevon.github.io
65609f9902740d6b873e4b5c5e8c295c9a0b62cb
[ "MIT" ]
null
null
null
fabfile.py
Saevon/saevon.github.io
65609f9902740d6b873e4b5c5e8c295c9a0b62cb
[ "MIT" ]
null
null
null
fabfile.py
Saevon/saevon.github.io
65609f9902740d6b873e4b5c5e8c295c9a0b62cb
[ "MIT" ]
null
null
null
from fabric.api import * import fabric.contrib.project as project import os # Local path configuration (can be absolute or relative to fabfile) env.deploy_path = 'output' DEPLOY_PATH = env.deploy_path # Remote server configuration production = 'root@localhost:22' dest_path = '/var/www' # Rackspace Cloud Files config...
24.078125
73
0.656067
797a8cb562c05dd9b4f32953dd648d92cb553e84
1,620
py
Python
examples/Oscillators/Rayleigh/plotresults.py
doublefloyd/beluga
740bda376634945ef51bf1cf946fcbe002e9bc7f
[ "MIT" ]
20
2017-10-02T13:09:58.000Z
2022-03-28T20:50:35.000Z
examples/Oscillators/Rayleigh/plotresults.py
doublefloyd/beluga
740bda376634945ef51bf1cf946fcbe002e9bc7f
[ "MIT" ]
187
2018-02-04T20:35:03.000Z
2021-01-27T15:04:18.000Z
examples/Oscillators/Rayleigh/plotresults.py
doublefloyd/beluga
740bda376634945ef51bf1cf946fcbe002e9bc7f
[ "MIT" ]
12
2018-01-19T04:00:09.000Z
2022-03-28T16:44:17.000Z
from beluga.utils import load import matplotlib.pyplot as plt data = load('data.beluga') sol_set = data['solutions'] traj = sol_set[-1][-1] continuation = sol_set[-1] L = len(continuation) plt.figure() for ind, sol in enumerate(continuation): plt.plot(sol.t, sol.y[:, 0], color=(1*(ind/L), 1*(L-ind)/L, 0)) pl...
30
96
0.611111
797a8ce658a2d40ca93304709c171cb017a50594
40,939
py
Python
tests/test_util.py
pypa/distlib
052787b7abcecc5498c1443f4f0ee2867d6a3db0
[ "PSF-2.0" ]
17
2021-12-10T12:59:38.000Z
2022-02-11T11:30:13.000Z
tests/test_util.py
pypa/distlib
052787b7abcecc5498c1443f4f0ee2867d6a3db0
[ "PSF-2.0" ]
11
2021-12-11T07:54:47.000Z
2022-03-30T18:43:38.000Z
tests/test_util.py
pypa/distlib
052787b7abcecc5498c1443f4f0ee2867d6a3db0
[ "PSF-2.0" ]
7
2021-12-12T11:10:42.000Z
2022-03-26T17:30:47.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2012-2013 Vinay Sajip. # Licensed to the Python Software Foundation under a contributor agreement. # See LICENSE.txt and CONTRIBUTORS.txt. # from io import BytesIO from itertools import islice import os import re import shutil try: import ssl except ImportError: ssl = N...
40.614087
87
0.506925
797a8f0a6c0136f9fa843777bacd75c64605d98f
673
py
Python
setup.py
lishenluo/BeautifulReport
97b61ce89ea2d5adea8e54054f00c9237fc5a036
[ "MIT" ]
1
2019-11-20T01:07:02.000Z
2019-11-20T01:07:02.000Z
setup.py
lishenluo/BeautifulReport
97b61ce89ea2d5adea8e54054f00c9237fc5a036
[ "MIT" ]
null
null
null
setup.py
lishenluo/BeautifulReport
97b61ce89ea2d5adea8e54054f00c9237fc5a036
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r", encoding='utf-8') as fh: long_description = fh.read() setuptools.setup( name="BeautifulReport", version="0.1.0", author="mocobk", author_email="mocobk@163.com", description="unittest自动化测试的可视化报告模板", long_description=long_description, long_de...
29.26087
55
0.661218
797a8f382d22b2c85ff890cc9a05b912e959a8e3
2,885
py
Python
allennlp/training/trainer.py
alle-pawols/allennlp
7d4a67263d7a210aca22d4f2b03e8568d3c34a48
[ "Apache-2.0" ]
null
null
null
allennlp/training/trainer.py
alle-pawols/allennlp
7d4a67263d7a210aca22d4f2b03e8568d3c34a48
[ "Apache-2.0" ]
null
null
null
allennlp/training/trainer.py
alle-pawols/allennlp
7d4a67263d7a210aca22d4f2b03e8568d3c34a48
[ "Apache-2.0" ]
null
null
null
import logging import os from dataclasses import dataclass from typing import Any, Dict, Optional, Union import torch.optim.lr_scheduler from allennlp.common import Registrable from allennlp.common.checks import ConfigurationError, check_for_gpu from allennlp.common.util import int_to_device logger = logging.getLogg...
31.021505
97
0.641248
797a8fdfd78f90300f9342d36c9c51de2fb078df
1,132
py
Python
backend/qna/migrations/0002_question_content_question_course_id_and_more.py
skku-npc/SKKU_Coding_Platform
1d972e8922484cf94f6735fd08b2565e5d3517d0
[ "MIT" ]
1
2022-03-30T14:03:23.000Z
2022-03-30T14:03:23.000Z
backend/qna/migrations/0002_question_content_question_course_id_and_more.py
skku-npc/SKKU_Coding_Platform
1d972e8922484cf94f6735fd08b2565e5d3517d0
[ "MIT" ]
56
2022-02-19T08:13:48.000Z
2022-03-25T10:17:07.000Z
backend/qna/migrations/0002_question_content_question_course_id_and_more.py
skku-npc/SKKU_Coding_Platform
1d972e8922484cf94f6735fd08b2565e5d3517d0
[ "MIT" ]
1
2022-03-25T15:02:46.000Z
2022-03-25T15:02:46.000Z
# Generated by Django 4.0.1 on 2022-01-09 08:54 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('course', '0004_registration_bookmark'), ('qna', '0001_initial'), ] operations = [ migrations.AddFie...
27.609756
112
0.566254
797a903f54a18c6d0ce352fc3d97f54c432c47d9
24,118
py
Python
tensorflow/python/client/timeline.py
imdone/tensorflow
bb4d1ef3861c83627ee9586b85ac3070a7d38335
[ "Apache-2.0" ]
1
2021-04-16T14:53:22.000Z
2021-04-16T14:53:22.000Z
tensorflow/python/client/timeline.py
imdone/tensorflow
bb4d1ef3861c83627ee9586b85ac3070a7d38335
[ "Apache-2.0" ]
10
2018-02-04T18:41:52.000Z
2018-05-02T09:00:46.000Z
tensorflow/python/client/timeline.py
imdone/tensorflow
bb4d1ef3861c83627ee9586b85ac3070a7d38335
[ "Apache-2.0" ]
4
2018-01-17T14:22:49.000Z
2018-02-27T15:06:41.000Z
# Copyright 2016 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 applica...
37.861852
82
0.662866
797a9156e5db8852560fdeac146751e69fc587d9
1,159
py
Python
open_seq2seq/models/speech2text_ds2_test.py
sugartom/OpenSeq2Seq
2866f67deb15d09798b075c665c4f6d8935708e4
[ "Apache-2.0" ]
null
null
null
open_seq2seq/models/speech2text_ds2_test.py
sugartom/OpenSeq2Seq
2866f67deb15d09798b075c665c4f6d8935708e4
[ "Apache-2.0" ]
null
null
null
open_seq2seq/models/speech2text_ds2_test.py
sugartom/OpenSeq2Seq
2866f67deb15d09798b075c665c4f6d8935708e4
[ "Apache-2.0" ]
2
2019-03-11T18:30:02.000Z
2019-03-17T21:08:22.000Z
# Copyright (c) 2017 NVIDIA Corporation from __future__ import absolute_import, division, print_function from __future__ import unicode_literals import tensorflow as tf from OpenSeq2Seq.open_seq2seq.test_utils.test_speech_configs.ds2_test_config import \ base_params, train_params, eval_params, base_model from .sp...
24.659574
85
0.773943
797a9207762ff2904575635c8292972864e1c456
110,569
py
Python
wagtail/admin/tests/pages/test_edit_page.py
b1pb1p/wagtail
6f732fd0ad45c931ae4fb29bdc571e6cdefe10f3
[ "BSD-3-Clause" ]
1
2018-01-18T12:32:38.000Z
2018-01-18T12:32:38.000Z
wagtail/admin/tests/pages/test_edit_page.py
b1pb1p/wagtail
6f732fd0ad45c931ae4fb29bdc571e6cdefe10f3
[ "BSD-3-Clause" ]
1
2016-02-09T23:18:11.000Z
2016-02-09T23:18:11.000Z
wagtail/admin/tests/pages/test_edit_page.py
b1pb1p/wagtail
6f732fd0ad45c931ae4fb29bdc571e6cdefe10f3
[ "BSD-3-Clause" ]
1
2016-04-04T12:58:24.000Z
2016-04-04T12:58:24.000Z
import datetime import os from unittest import mock from django.conf import settings from django.contrib.auth.models import Group, Permission from django.core import mail from django.core.files.base import ContentFile from django.http import HttpRequest, HttpResponse from django.test import TestCase, modify_settings,...
43.073237
185
0.628467
797a924c9bdb7064abc80e02d121bb2371cfd521
884
py
Python
refla/json_app_factory.py
dewe/refla-todo
e8666e5810c55b4dbd5262b7850f282e8f6918d1
[ "MIT" ]
null
null
null
refla/json_app_factory.py
dewe/refla-todo
e8666e5810c55b4dbd5262b7850f282e8f6918d1
[ "MIT" ]
null
null
null
refla/json_app_factory.py
dewe/refla-todo
e8666e5810c55b4dbd5262b7850f282e8f6918d1
[ "MIT" ]
null
null
null
from flask import Flask, jsonify from werkzeug.exceptions import default_exceptions from werkzeug.exceptions import HTTPException __all__ = ['create_json_app'] def create_json_app(import_name, **kwargs): """ Creates a JSON-oriented Flask app. All error responses that you don't specifically manage you...
30.482759
64
0.661765
797a925644698e44b660ee09f0135e074a143178
3,405
py
Python
qiskit_nature/runtime/vqe_program.py
jschuhmac/qiskit-nature
b8b1181d951cf8fa76fe0db9e5ea192dad5fb186
[ "Apache-2.0" ]
null
null
null
qiskit_nature/runtime/vqe_program.py
jschuhmac/qiskit-nature
b8b1181d951cf8fa76fe0db9e5ea192dad5fb186
[ "Apache-2.0" ]
null
null
null
qiskit_nature/runtime/vqe_program.py
jschuhmac/qiskit-nature
b8b1181d951cf8fa76fe0db9e5ea192dad5fb186
[ "Apache-2.0" ]
null
null
null
# This code is part of Qiskit. # # (C) Copyright IBM 2021, 2022. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
34.05
99
0.681645
797a92ba46c6053eb80f42f3261a2bbafc6669ad
486
py
Python
archive/migrations/0002_auto_20190712_0255.py
emawind84/rrwebtv
ae22cd39ea430aed0de2b852e40c309465a7237b
[ "MIT" ]
null
null
null
archive/migrations/0002_auto_20190712_0255.py
emawind84/rrwebtv
ae22cd39ea430aed0de2b852e40c309465a7237b
[ "MIT" ]
2
2020-06-05T20:13:36.000Z
2021-06-10T21:18:43.000Z
archive/migrations/0002_auto_20190712_0255.py
emawind84/rrwebtv
ae22cd39ea430aed0de2b852e40c309465a7237b
[ "MIT" ]
null
null
null
# Generated by Django 2.0.13 on 2019-07-12 02:55 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('archive', '0001_initial'), ] operations = [ migrations.AlterField( model_name='performance', ...
24.3
122
0.63786
797a92bd361b62075f1c84f6b4ca0f1e0ef92deb
3,367
py
Python
cashews/decorators/cache/early.py
alcibiadeseth/cashews
a31c009455dec31393a299d883a90d1c567395d3
[ "MIT" ]
null
null
null
cashews/decorators/cache/early.py
alcibiadeseth/cashews
a31c009455dec31393a299d883a90d1c567395d3
[ "MIT" ]
null
null
null
cashews/decorators/cache/early.py
alcibiadeseth/cashews
a31c009455dec31393a299d883a90d1c567395d3
[ "MIT" ]
null
null
null
import asyncio import logging from datetime import datetime, timedelta from functools import wraps from typing import Optional from ...backends.interface import Backend from ...formatter import register_template from ...key import get_cache_key, get_cache_key_template from ...typing import CacheCondition from .default...
37
112
0.584794
797a9323feabbb01bac11e365625f286ee37832e
1,157
py
Python
invenio_rdm_records/requests/resolver.py
inveniosoftware/invenio-datacite
d25e3670b74f132390fc42e5647765ae5c605ef3
[ "MIT" ]
null
null
null
invenio_rdm_records/requests/resolver.py
inveniosoftware/invenio-datacite
d25e3670b74f132390fc42e5647765ae5c605ef3
[ "MIT" ]
null
null
null
invenio_rdm_records/requests/resolver.py
inveniosoftware/invenio-datacite
d25e3670b74f132390fc42e5647765ae5c605ef3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2021 CERN. # # Invenio-RDM-Records is free software; you can redistribute it and/or modify # it under the terms of the MIT License; see LICENSE file for more details. """Entity resolver for records aware of drafts and records.""" from invenio_pidstore.errors import PIDUnregis...
29.666667
77
0.693172
797a943f57e1a9bf1ef45b00f4e313a95bce7aa5
3,231
py
Python
app/controller/dcFlavors.py
maestro-server/data-app
cde6479cc84fe410220b34742772d5017571e3d3
[ "Apache-2.0" ]
null
null
null
app/controller/dcFlavors.py
maestro-server/data-app
cde6479cc84fe410220b34742772d5017571e3d3
[ "Apache-2.0" ]
1
2019-11-21T17:06:31.000Z
2019-11-21T17:06:31.000Z
app/controller/dcFlavors.py
maestro-server/data-app
cde6479cc84fe410220b34742772d5017571e3d3
[ "Apache-2.0" ]
null
null
null
from app.controller.factory.dc import DcApp from app.repository.flavors import Flavors class DcFlavorsApp(DcApp): """ @api {get} /flavors 1. Get all flavors (GET) @apiName GetFlavors @apiGroup Flavors @apiParam {Object} query Filters. <br/> <pre class="prettyprint language-json" data-type...
25.848
133
0.56546
797a94a3f7a713f5408f54f87d6b34adfd267005
2,539
py
Python
app/views.py
AndreaHasani/Flask-Invoice
f4db5081d210c54b0553f2b97bb6cd6b580e1a34
[ "MIT" ]
1
2021-05-14T04:02:09.000Z
2021-05-14T04:02:09.000Z
app/views.py
AndreaHasani/Flask-Invoice
f4db5081d210c54b0553f2b97bb6cd6b580e1a34
[ "MIT" ]
null
null
null
app/views.py
AndreaHasani/Flask-Invoice
f4db5081d210c54b0553f2b97bb6cd6b580e1a34
[ "MIT" ]
1
2019-06-18T00:03:38.000Z
2019-06-18T00:03:38.000Z
import json from ast import literal_eval from flask import render_template, request, abort, redirect, url_for from app.models import Invoice, Users from app.functions import AlchemyEncoder from app import application, db, login_manager from flask_weasyprint import HTML, render_pdf from flask_login import login_require...
29.523256
143
0.649074
797a95b83e5ce3c618dca8d4632fd0985dce9434
1,792
py
Python
salt/bash/res/quichttp.py
major1201/salt-modules
4d9dc4086eb66ee2f1d8f6e0d2f4e706830cdff6
[ "MIT" ]
1
2019-06-21T20:42:45.000Z
2019-06-21T20:42:45.000Z
roles/common/files/quichttp.py
major1201/ansible-roles
4f6d5f17c2bb7e2c889819636142bbb146a5a659
[ "MIT" ]
null
null
null
roles/common/files/quichttp.py
major1201/ansible-roles
4f6d5f17c2bb7e2c889819636142bbb146a5a659
[ "MIT" ]
null
null
null
#! /usr/bin/env python # encoding: utf-8 from __future__ import division, absolute_import, with_statement, print_function import sys import argparse __version__ = '0.1a' PY2 = sys.version_info[0] == 2 def serve(listen_addr, listen_port, echo_str): if PY2: from BaseHTTPServer import BaseHTTPRequestHandler...
36.571429
163
0.655692
797a95b93b2b4c42bfb123ade1c219a6d90e38ee
1,945
py
Python
aliyun-python-sdk-dms-enterprise/aliyunsdkdms_enterprise/request/v20181101/PauseDataCorrectSQLJobRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-dms-enterprise/aliyunsdkdms_enterprise/request/v20181101/PauseDataCorrectSQLJobRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-dms-enterprise/aliyunsdkdms_enterprise/request/v20181101/PauseDataCorrectSQLJobRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
36.018519
103
0.746015
797a95f061828980c05be9203c96c0af48f581d2
16,421
py
Python
datasets/lama/lama.py
WojciechKusa/datasets
1406a04c3e911cec2680d8bc513653e0cafcaaa4
[ "Apache-2.0" ]
10,608
2020-09-10T15:47:50.000Z
2022-03-31T22:51:47.000Z
datasets/lama/lama.py
realChainLife/datasets
98261e8b0b7be4dbaaa71ae188b950f7fbe51bbd
[ "Apache-2.0" ]
2,396
2020-09-10T14:55:31.000Z
2022-03-31T19:41:04.000Z
datasets/lama/lama.py
realChainLife/datasets
98261e8b0b7be4dbaaa71ae188b950f7fbe51bbd
[ "Apache-2.0" ]
1,530
2020-09-10T21:43:10.000Z
2022-03-31T01:59:12.000Z
# coding=utf-8 # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor. # # 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...
46.783476
187
0.439924
797a967f758af6ec51ba246fe571bf65d5b8aec1
10,361
py
Python
Apps/RTHRV_Faros/Idea_Tests/getNew_list_trimming.py
antoniogvp/labstreaminglayer
ec40c6c7c565a3c07677b7396a19d74c4c25eb91
[ "MIT" ]
null
null
null
Apps/RTHRV_Faros/Idea_Tests/getNew_list_trimming.py
antoniogvp/labstreaminglayer
ec40c6c7c565a3c07677b7396a19d74c4c25eb91
[ "MIT" ]
null
null
null
Apps/RTHRV_Faros/Idea_Tests/getNew_list_trimming.py
antoniogvp/labstreaminglayer
ec40c6c7c565a3c07677b7396a19d74c4c25eb91
[ "MIT" ]
null
null
null
# Testing list-trimming import pandas as pd import numpy as np import time import tkMessageBox ############################################# def getNew(newYlist, newTlist, oldTlist): """Trims a new sample of any repeat samples by comparing time values with the last sample's time values. Can take an empty ...
32.378125
77
0.548306
797a9765fa008a9a17d24489209d6020f3deb53b
1,062
py
Python
model/period_discriminator.py
carankt/HiFi-GAN
4b0d9dfce1bc823f72cd38f6d4c48350c96121aa
[ "MIT" ]
null
null
null
model/period_discriminator.py
carankt/HiFi-GAN
4b0d9dfce1bc823f72cd38f6d4c48350c96121aa
[ "MIT" ]
null
null
null
model/period_discriminator.py
carankt/HiFi-GAN
4b0d9dfce1bc823f72cd38f6d4c48350c96121aa
[ "MIT" ]
null
null
null
from torch import nn import torch.nn.functional as F class PeriodDiscriminator(nn.Module): def __init__(self, period): super(PeriodDiscriminator, self).__init__() layer = [] self.period = period inp = 1 for l in range(4): out = int(2 ** (5 + l + 1)) ...
31.235294
93
0.52919
797a983b33d31644aae2c80a9435a00a511fe7c6
631
py
Python
examples/local/commit_executable.py
etano/whiplash
ba7d28ce5642eac69cd514f6450f9bd4cd5a2c4b
[ "MIT" ]
null
null
null
examples/local/commit_executable.py
etano/whiplash
ba7d28ce5642eac69cd514f6450f9bd4cd5a2c4b
[ "MIT" ]
null
null
null
examples/local/commit_executable.py
etano/whiplash
ba7d28ce5642eac69cd514f6450f9bd4cd5a2c4b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import whiplash print("Login as test user") db = whiplash.db("localhost", 1337, username="test", password="test") print("Commit simulated annealling solver") print(db.executables.commit({ "name": "an_ss_ge_fi_vdeg", "algorithm": "SA", "version": "1.0", "type": "docker", "pat...
31.55
109
0.635499
797a990b01e299e29a182d3acd3a5501dd794cb5
3,623
py
Python
zuul/cmd/merger.py
dzeromsk/zuul2
2960b5a4eb73adecac1b5fd63987681dd6dbf39e
[ "Apache-2.0" ]
null
null
null
zuul/cmd/merger.py
dzeromsk/zuul2
2960b5a4eb73adecac1b5fd63987681dd6dbf39e
[ "Apache-2.0" ]
null
null
null
zuul/cmd/merger.py
dzeromsk/zuul2
2960b5a4eb73adecac1b5fd63987681dd6dbf39e
[ "Apache-2.0" ]
1
2017-11-07T10:12:40.000Z
2017-11-07T10:12:40.000Z
#!/usr/bin/env python # Copyright 2012 Hewlett-Packard Development Company, L.P. # Copyright 2013-2014 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www...
32.63964
78
0.646426
797a99263e291878b73bd78e31ac4c2f6996912f
452
py
Python
Task/Dinesmans-multiple-dwelling-problem/Python/dinesmans-multiple-dwelling-problem-5.py
LaudateCorpus1/RosettaCodeData
9ad63ea473a958506c041077f1d810c0c7c8c18d
[ "Info-ZIP" ]
1
2021-05-05T13:42:20.000Z
2021-05-05T13:42:20.000Z
Task/Dinesmans-multiple-dwelling-problem/Python/dinesmans-multiple-dwelling-problem-5.py
seanwallawalla-forks/RosettaCodeData
9ad63ea473a958506c041077f1d810c0c7c8c18d
[ "Info-ZIP" ]
null
null
null
Task/Dinesmans-multiple-dwelling-problem/Python/dinesmans-multiple-dwelling-problem-5.py
seanwallawalla-forks/RosettaCodeData
9ad63ea473a958506c041077f1d810c0c7c8c18d
[ "Info-ZIP" ]
null
null
null
'''Dinesman's multiple-dwelling problem''' from itertools import permutations print([ ( 'Baker on ' + str(b), 'Cooper on ' + str(c), 'Fletcher on ' + str(f), 'Miller on ' + str(m), 'Smith on ' + str(s) ) for [b, c, f, m, s] in permutations(range(1, 6)) if all([ ...
19.652174
54
0.40708
797a99497a73b16c3571515082583a02387affc5
2,490
bzl
Python
tools/build_rules/config/system.bzl
bowlofstew/kythe
23a3524de3924901ffaba4b8bcab8abe96de6f3a
[ "Apache-2.0" ]
1
2021-04-24T08:18:15.000Z
2021-04-24T08:18:15.000Z
tools/build_rules/config/system.bzl
bowlofstew/kythe
23a3524de3924901ffaba4b8bcab8abe96de6f3a
[ "Apache-2.0" ]
3
2020-12-31T09:08:34.000Z
2021-09-28T05:42:02.000Z
tools/build_rules/config/system.bzl
moul/kythe
2e198cc818981fc6cffa14d8263fda3a33da6429
[ "Apache-2.0" ]
null
null
null
"""C System Library dependencies. This package exports a repository rule and macro. cc_system_package_configure: This repository_rule combines behavior of both local_cc_library_configure and pkg_config_package rules. It first attempts to find the specified environment variable. If present, it tries to use a l...
33.648649
78
0.700402
797a99da2bb58ddf9e75cdc63fb61bf050a76498
1,458
py
Python
homeworkpal_project/common/tests/test_utils.py
luiscberrocal/homeworkpal
342acf876264fade818b107f4af13cac067f1ace
[ "MIT" ]
null
null
null
homeworkpal_project/common/tests/test_utils.py
luiscberrocal/homeworkpal
342acf876264fade818b107f4af13cac067f1ace
[ "MIT" ]
null
null
null
homeworkpal_project/common/tests/test_utils.py
luiscberrocal/homeworkpal
342acf876264fade818b107f4af13cac067f1ace
[ "MIT" ]
null
null
null
import datetime from django.test import TestCase from ..utils import get_fiscal_year, Holiday import logging logger = logging.getLogger(__name__) __author__ = 'lberrocal' class TestUtils(TestCase): def test_get_fiscal_year(self): cdates = [[datetime.date(2015, 10, 1), 'AF16'], [datetime....
34.714286
88
0.632373
797a9a35c03723f3980d5584aa05025eb623dd6e
5,315
py
Python
Libs/libDownloadJSON.py
NicholasSynovic/CAHPR
555ec8f397271ad29f6b893a784664b0ef5751bf
[ "Apache-2.0" ]
null
null
null
Libs/libDownloadJSON.py
NicholasSynovic/CAHPR
555ec8f397271ad29f6b893a784664b0ef5751bf
[ "Apache-2.0" ]
null
null
null
Libs/libDownloadJSON.py
NicholasSynovic/CAHPR
555ec8f397271ad29f6b893a784664b0ef5751bf
[ "Apache-2.0" ]
1
2019-04-08T19:34:27.000Z
2019-04-08T19:34:27.000Z
"""GetCrimes. CREATED BY: Nicholas M. Synovic GITHUB URL: https://www.github.com/nsynovic This library uses the CPD Crimes OpenData Socrata API to download JSON files contacting crime reports. """ import json # Used to save JSON data to files. from urllib.request import urlopen # Used to access and downl...
36.156463
80
0.641204
797a9ad51753ba856339839a8314e87858d3439d
60,863
py
Python
python/ray/tune/trial_runner.py
yuanchi2807/ray
cf512254bb4bcd71ff1818dff5c868ab10c5f620
[ "Apache-2.0" ]
null
null
null
python/ray/tune/trial_runner.py
yuanchi2807/ray
cf512254bb4bcd71ff1818dff5c868ab10c5f620
[ "Apache-2.0" ]
null
null
null
python/ray/tune/trial_runner.py
yuanchi2807/ray
cf512254bb4bcd71ff1818dff5c868ab10c5f620
[ "Apache-2.0" ]
1
2022-03-24T22:48:21.000Z
2022-03-24T22:48:21.000Z
from typing import Any, List, Mapping, Optional, Union import click from datetime import datetime import json import logging import os import time import traceback import warnings import ray from ray.tune.impl.out_of_band_serialize_dataset import out_of_band_serialize_dataset from ray.util import get_node_ip_address ...
40.602402
94
0.606066
797a9b308cc5a22f99a107d7289b1ce82e230bce
1,899
py
Python
python-package/lightgbm/__init__.py
Esail/LightGBM
65cab7287a034260d9bf350344c4757e82fb5c9e
[ "MIT" ]
1
2019-03-27T18:21:37.000Z
2019-03-27T18:21:37.000Z
python-package/lightgbm/__init__.py
Esail/LightGBM
65cab7287a034260d9bf350344c4757e82fb5c9e
[ "MIT" ]
1
2021-06-28T14:22:32.000Z
2021-06-28T14:22:32.000Z
python-package/lightgbm/__init__.py
Esail/LightGBM
65cab7287a034260d9bf350344c4757e82fb5c9e
[ "MIT" ]
null
null
null
# coding: utf-8 """LightGBM, Light Gradient Boosting Machine. Contributors: https://github.com/Microsoft/LightGBM/graphs/contributors """ from __future__ import absolute_import from .basic import Booster, Dataset from .callback import (early_stopping, print_evaluation, record_evaluation, reset_...
40.404255
119
0.692996
797a9b6ad23f4f98d1f703c5cc45846fb6923711
2,349
py
Python
soli/__main__.py
AitzazImtiaz/soli
dc11b28b1752af7c1b04126768090505f5cdaa54
[ "MIT" ]
2
2021-12-12T09:37:19.000Z
2021-12-12T18:28:53.000Z
soli/__main__.py
AitzazImtiaz/soli
dc11b28b1752af7c1b04126768090505f5cdaa54
[ "MIT" ]
1
2022-03-09T15:06:55.000Z
2022-03-10T06:47:42.000Z
soli/__main__.py
AitzazImtiaz/soli
dc11b28b1752af7c1b04126768090505f5cdaa54
[ "MIT" ]
2
2021-12-12T09:38:19.000Z
2022-03-09T15:07:25.000Z
import os import click import colorama import pwd from colorama import Fore, Back, Style from datetime import datetime def get_icon(file_name): if os.path.isdir(file_name): return "~" elif file_name.endswith(".gitignore"): return "~" elif file_name.endswith(".py"): return "~" el...
27.635294
87
0.562793
797a9bccab8405cf3a6b181ccc0550b1ed149182
16,492
py
Python
api/src/opentrons/execute.py
anuwrag/opentrons
28c8d76a19e367c6bd38f5290faaa32abf378715
[ "Apache-2.0" ]
null
null
null
api/src/opentrons/execute.py
anuwrag/opentrons
28c8d76a19e367c6bd38f5290faaa32abf378715
[ "Apache-2.0" ]
null
null
null
api/src/opentrons/execute.py
anuwrag/opentrons
28c8d76a19e367c6bd38f5290faaa32abf378715
[ "Apache-2.0" ]
null
null
null
""" opentrons.execute: functions and entrypoint for running protocols This module has functions that can be imported to provide protocol contexts for running protocols during interactive sessions like Jupyter or just regular python shells. It also provides a console entrypoint for running a protocol from the command l...
42.947917
88
0.640735
797a9bf41d5db5129e909e3c829f63675f1f9e6b
1,098
py
Python
apps/approval/admin.py
kharann/onlineweb4
1130128c6233b623780779a25934ea73ef62c264
[ "MIT" ]
null
null
null
apps/approval/admin.py
kharann/onlineweb4
1130128c6233b623780779a25934ea73ef62c264
[ "MIT" ]
null
null
null
apps/approval/admin.py
kharann/onlineweb4
1130128c6233b623780779a25934ea73ef62c264
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.contrib import admin from django.contrib.admin import register from apps.approval.models import CommitteeApplication, CommitteePriority, MembershipApproval class CommitteePriorityInline(admin.TabularInline): model = CommitteePriority class CommitteeApplicationAdmin(admin.Mo...
32.294118
107
0.746812
797a9c963432d08bf0095d63be4c9ba426a9612d
1,850
py
Python
tests/test_addons.py
linhd-postdata/poetrylab-api
8e73d80c4c2ffe1f20b713d626bf11210b32ebdc
[ "Apache-2.0" ]
1
2020-05-13T05:01:53.000Z
2020-05-13T05:01:53.000Z
tests/test_addons.py
linhd-postdata/poetrylab-api
8e73d80c4c2ffe1f20b713d626bf11210b32ebdc
[ "Apache-2.0" ]
9
2019-05-27T14:42:43.000Z
2021-09-13T13:03:13.000Z
tests/test_addons.py
linhd-postdata/poetrylab-api
8e73d80c4c2ffe1f20b713d626bf11210b32ebdc
[ "Apache-2.0" ]
null
null
null
import requests import unittest from unittest import mock from poetrylab_api import app from poetrylab_api.addons import is_available from poetrylab_api.addons import perform from poetrylab_api.settings import ADDONS @mock.patch('requests.request') def test_is_avalilable(mocked_request): mocked_request.return_v...
31.896552
75
0.752432
797a9d675a972863e989c5a304a1bb7f369dd8c8
3,635
py
Python
Data_Parser.py
eayumba/CS221Project
9aca2e4a0051296ba95cefac7cc611b61effbbff
[ "MIT" ]
null
null
null
Data_Parser.py
eayumba/CS221Project
9aca2e4a0051296ba95cefac7cc611b61effbbff
[ "MIT" ]
null
null
null
Data_Parser.py
eayumba/CS221Project
9aca2e4a0051296ba95cefac7cc611b61effbbff
[ "MIT" ]
null
null
null
import music21 import os import pickle training_dir = 'CS221_Training_Data' testing_dir = 'CS221_Testing_Data' '''Function takes in a music21.note object and parses it into its string form''' def convertToString(elem): if isinstance(elem, music21.note.Note): #print(elem.nameWithOctave) return elem...
41.781609
94
0.633838
797a9d6d3082f42c197c3aac1dd4f949238cdea3
3,321
py
Python
tests/greedy/test_reflected_normalization.py
rodluger/starry
da7fee48c5ef94278f0047be0579e2f13492cdd5
[ "MIT" ]
116
2018-02-23T19:47:15.000Z
2022-02-21T04:43:46.000Z
tests/greedy/test_reflected_normalization.py
rodluger/starry
da7fee48c5ef94278f0047be0579e2f13492cdd5
[ "MIT" ]
224
2018-02-26T00:41:51.000Z
2022-03-29T10:38:16.000Z
tests/greedy/test_reflected_normalization.py
rodluger/starry
da7fee48c5ef94278f0047be0579e2f13492cdd5
[ "MIT" ]
25
2018-02-26T18:14:36.000Z
2021-11-30T01:00:56.000Z
""" Starry was originally designed for maps in thermal light. Maps in reflected light are quirky in how things are normalized, so we need to make sure albedos, intensities, and fluxes are all self-consistent in the code. There are some fudges we had to make under the hood to ensure all of these tests pass. """ import...
26.568
78
0.635351
797a9e23a05a694d1392277a48cba47a6bd97acb
324
py
Python
scripts/modules/perception/feature_extractors/feature_extractor.py
cabraile/DMLAV
fd5bea5a97a7012da6260fffd402db799a442e4d
[ "MIT" ]
null
null
null
scripts/modules/perception/feature_extractors/feature_extractor.py
cabraile/DMLAV
fd5bea5a97a7012da6260fffd402db799a442e4d
[ "MIT" ]
null
null
null
scripts/modules/perception/feature_extractors/feature_extractor.py
cabraile/DMLAV
fd5bea5a97a7012da6260fffd402db799a442e4d
[ "MIT" ]
null
null
null
import numpy as np from abc import ABC, abstractmethod class FeatureExtractor(ABC): @abstractmethod def __init__(self, input_shape : tuple): pass @abstractmethod def adjust_image(self, image : np.array ): pass @abstractmethod def extract(self, image : np.array ): ...
20.25
46
0.651235
797a9e5af67977678821b75ded7ad55d429fb938
58,082
py
Python
TurtleArt/tasprite_factory.py
nvazquez/Turtlebots
fd312980bc0d3639679f0a980e5d1bc81ed5f5a6
[ "MIT" ]
null
null
null
TurtleArt/tasprite_factory.py
nvazquez/Turtlebots
fd312980bc0d3639679f0a980e5d1bc81ed5f5a6
[ "MIT" ]
null
null
null
TurtleArt/tasprite_factory.py
nvazquez/Turtlebots
fd312980bc0d3639679f0a980e5d1bc81ed5f5a6
[ "MIT" ]
null
null
null
#! /usr/bin/python # -*- coding: utf-8 -*- # Copyright (c) 2009-12 Walter Bender # 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 ...
35.437462
79
0.530905
797a9e749126eb6299fd425e6dd0b50c36802e3d
1,162
py
Python
descarteslabs/common/workflows/proto_munging/tests/test_proto_to_user_dict.py
descarteslabs/descarteslabs-python
efc874d6062603dc424c9646287a9b1f8636e7ac
[ "Apache-2.0" ]
167
2017-03-23T22:16:58.000Z
2022-03-08T09:19:30.000Z
descarteslabs/common/workflows/proto_munging/tests/test_proto_to_user_dict.py
descarteslabs/descarteslabs-python
efc874d6062603dc424c9646287a9b1f8636e7ac
[ "Apache-2.0" ]
93
2017-03-23T22:11:40.000Z
2021-12-13T18:38:53.000Z
descarteslabs/common/workflows/proto_munging/tests/test_proto_to_user_dict.py
descarteslabs/descarteslabs-python
efc874d6062603dc424c9646287a9b1f8636e7ac
[ "Apache-2.0" ]
46
2017-03-25T19:12:14.000Z
2021-08-15T18:04:29.000Z
import pytest from descarteslabs.common.proto.formats import formats_pb2 from descarteslabs.common.proto.destinations import destinations_pb2 from ..proto_to_user_dict import has_proto_to_user_dict from ..user_dict_to_proto import user_dict_to_has_proto @pytest.mark.parametrize( "user_dict, msg_type", [ ...
29.794872
79
0.565404
797aa05737e235bcd69660003a4b393727740724
3,918
py
Python
intersight/models/ls_service_profile_list.py
ategaw-cisco/intersight-python
9d6476620507281b1dc358e29ac452d56081bbb0
[ "Apache-2.0" ]
null
null
null
intersight/models/ls_service_profile_list.py
ategaw-cisco/intersight-python
9d6476620507281b1dc358e29ac452d56081bbb0
[ "Apache-2.0" ]
null
null
null
intersight/models/ls_service_profile_list.py
ategaw-cisco/intersight-python
9d6476620507281b1dc358e29ac452d56081bbb0
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Intersight REST API This is Intersight REST API OpenAPI spec version: 1.0.9-262 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class LsServiceProfileList(object): """ NOTE: This ...
25.441558
85
0.557172
797aa09c7956825ce0a2c258d95a73ee8279eff1
8,723
py
Python
xoxo/xoxo.py
anokata/pythonPetProjects
245c3ff11ae560b17830970061d8d60013948fd7
[ "MIT" ]
3
2017-04-30T17:44:53.000Z
2018-02-03T06:02:11.000Z
xoxo/xoxo.py
anokata/pythonPetProjects
245c3ff11ae560b17830970061d8d60013948fd7
[ "MIT" ]
10
2021-03-18T20:17:19.000Z
2022-03-11T23:14:19.000Z
xoxo/xoxo.py
anokata/pythonPetProjects
245c3ff11ae560b17830970061d8d60013948fd7
[ "MIT" ]
null
null
null
import os import random as rand import configparser as cp import colorterm import pdb #не сходить на досках размера > 9 def cls(): os.system('cls' if os.name == 'nt' else 'clear') class GAMEST: gamerun = 2 quitexit = 4 mainmenu = 1 winview = 3 initState = 0 class GameState: boardSize = 5 emptyCel...
25.96131
83
0.545798
797aa0c3150cc2a3be8385a9dfd625643e4676e1
4,407
py
Python
pelutils/ds/__init__.py
peleiden/pelutils
9860734c0e06481aa58a9f767a4cfb5129cb48ec
[ "BSD-3-Clause" ]
3
2021-02-28T13:03:12.000Z
2022-01-01T09:53:33.000Z
pelutils/ds/__init__.py
peleiden/pelutils
9860734c0e06481aa58a9f767a4cfb5129cb48ec
[ "BSD-3-Clause" ]
72
2020-10-13T09:20:01.000Z
2022-02-26T09:12:21.000Z
pelutils/ds/__init__.py
peleiden/pelutils
9860734c0e06481aa58a9f767a4cfb5129cb48ec
[ "BSD-3-Clause" ]
null
null
null
from __future__ import annotations import os import ctypes import functools import platform from typing import Callable, Generator, Iterable, Type import numpy as np # Path to directory where package files are located _base_path = os.path.abspath(os.path.dirname(__file__)) _import_error = ModuleNotFoundError("To use...
32.404412
118
0.648968
797aa17857e6603112b059914ea6318f43591c1c
583
py
Python
scripts/pseudogene_parental_gene_similarity/extract_pseudogenes_of_which_parental_gene_is_known.py
shohei-kojima/Kojima_et_al_2021_PNAS
e2b94bff79c13bb1fb1fcca0e856a814264001a9
[ "MIT" ]
null
null
null
scripts/pseudogene_parental_gene_similarity/extract_pseudogenes_of_which_parental_gene_is_known.py
shohei-kojima/Kojima_et_al_2021_PNAS
e2b94bff79c13bb1fb1fcca0e856a814264001a9
[ "MIT" ]
null
null
null
scripts/pseudogene_parental_gene_similarity/extract_pseudogenes_of_which_parental_gene_is_known.py
shohei-kojima/Kojima_et_al_2021_PNAS
e2b94bff79c13bb1fb1fcca0e856a814264001a9
[ "MIT" ]
1
2021-02-07T19:45:45.000Z
2021-02-07T19:45:45.000Z
#!/usr/bin/env python """ # usage: python %prog # python3 """ import os,sys,re,shutil f_path='RetroGenes_v9_ucscRetroInfo9' # downloaded from UCSC out=[] with open(f_path) as infile: next(infile) for line in infile: ls=line.strip().split('\t') if ('NM_' in ls[37]) or ('NR_' in ls[37]): ...
21.592593
109
0.542024
797aa2632929471bc996ca04eafd05d5ad1678ae
7,712
py
Python
examples/contrib/forecast/bart.py
ciguaran/pyro
2dfa8da0dd400c3712768385d8306848e93dab9a
[ "Apache-2.0" ]
1
2020-10-02T20:17:38.000Z
2020-10-02T20:17:38.000Z
examples/contrib/forecast/bart.py
Ezecc/pyro
11a96cde05756def826c232d76f9cff66f6e6d4f
[ "Apache-2.0" ]
1
2020-05-12T16:26:21.000Z
2020-05-12T17:23:13.000Z
examples/contrib/forecast/bart.py
Ezecc/pyro
11a96cde05756def826c232d76f9cff66f6e6d4f
[ "Apache-2.0" ]
null
null
null
# Copyright Contributors to the Pyro project. # SPDX-License-Identifier: Apache-2.0 import argparse import logging import numpy as np import torch import pyro import pyro.distributions as dist from pyro.contrib.examples.bart import load_bart_od from pyro.contrib.forecast import ForecastingModel, backtest from pyro.o...
44.837209
91
0.644969
797aa28cc11a3ab8dec9218af34778113230c9b9
26,919
py
Python
torch/package/package_importer.py
Hacky-DH/pytorch
80dc4be615854570aa39a7e36495897d8a040ecc
[ "Intel" ]
5
2021-08-17T17:44:20.000Z
2021-08-21T05:03:42.000Z
torch/package/package_importer.py
Hacky-DH/pytorch
80dc4be615854570aa39a7e36495897d8a040ecc
[ "Intel" ]
1
2021-04-22T18:37:42.000Z
2021-04-28T00:53:25.000Z
torch/package/package_importer.py
Hacky-DH/pytorch
80dc4be615854570aa39a7e36495897d8a040ecc
[ "Intel" ]
1
2021-10-05T07:05:26.000Z
2021-10-05T07:05:26.000Z
import builtins import importlib import inspect import io import linecache import os.path import types from contextlib import contextmanager from pathlib import Path from typing import cast, Any, BinaryIO, Callable, Dict, List, Optional, Union from weakref import WeakValueDictionary import torch from torch.serializati...
39.998514
132
0.615142
797aa5e8669fba4ba65dcf37636364e9019096a5
1,155
py
Python
app/api/tokens.py
EandrewJones/srdp-database
22b9f5bcbffcd14b17cd62c6b268e5be079bf4fe
[ "MIT" ]
null
null
null
app/api/tokens.py
EandrewJones/srdp-database
22b9f5bcbffcd14b17cd62c6b268e5be079bf4fe
[ "MIT" ]
null
null
null
app/api/tokens.py
EandrewJones/srdp-database
22b9f5bcbffcd14b17cd62c6b268e5be079bf4fe
[ "MIT" ]
null
null
null
from flask import jsonify from app import db from app.api import bp from app.api.auth import basic_auth, token_auth from app.api_spec import TokenSchema @bp.route('/tokens', methods=['POST']) @basic_auth.login_required def get_token(): """ --- post: summary: Retrieve an authentication token des...
28.170732
114
0.662338
797aa62dc136a93687c62a4bcdae18c0981d6a79
1,335
py
Python
dynamodb_doctor/relationships/many.py
c-py/dynamodb_doctor
966a5844b92206b2a66e139cdbe4a274579be650
[ "MIT" ]
null
null
null
dynamodb_doctor/relationships/many.py
c-py/dynamodb_doctor
966a5844b92206b2a66e139cdbe4a274579be650
[ "MIT" ]
null
null
null
dynamodb_doctor/relationships/many.py
c-py/dynamodb_doctor
966a5844b92206b2a66e139cdbe4a274579be650
[ "MIT" ]
null
null
null
from typing import Any, Dict, List as ListTyping from .relationship import Relationship from dynamodb_doctor.model import Model from dynamodb_doctor.relationships.exceptions import RelationshipValidationException class Many(Relationship): def __init__(self, model): if not issubclass(model, Model): ...
25.673077
84
0.640449
797aa6c802c9f74bea3b6a02154028b38969d088
318
py
Python
app/core/migrations/0005_auto_20200808_0211.py
arajo-hub/recipe-app-api
c443d36511a94003deb6d73e13c1ddecfe0f7d0c
[ "MIT" ]
1
2020-07-26T09:56:59.000Z
2020-07-26T09:56:59.000Z
app/core/migrations/0005_auto_20200808_0211.py
arajo-hub/recipe-app-api
c443d36511a94003deb6d73e13c1ddecfe0f7d0c
[ "MIT" ]
null
null
null
app/core/migrations/0005_auto_20200808_0211.py
arajo-hub/recipe-app-api
c443d36511a94003deb6d73e13c1ddecfe0f7d0c
[ "MIT" ]
null
null
null
# Generated by Django 2.1.15 on 2020-08-08 02:11 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('core', '0004_reciple'), ] operations = [ migrations.RenameModel( old_name='Reciple', new_name='Recipe', ), ]
17.666667
48
0.578616
797aa701ba6706933b99dc34aa95adda766919f0
3,681
py
Python
pyblast/blast/bioblastfactory.py
jvrana/pyblast
0f7ee7575e97470bfd05a2373d9c68247ec4ead0
[ "MIT" ]
1
2021-07-16T16:29:02.000Z
2021-07-16T16:29:02.000Z
pyblast/blast/bioblastfactory.py
jvrana/pyblast
0f7ee7575e97470bfd05a2373d9c68247ec4ead0
[ "MIT" ]
8
2017-10-19T22:02:05.000Z
2020-04-09T20:45:23.000Z
pyblast/blast/bioblastfactory.py
jvrana/pyblast2
573e3c52d8fff42c8a131b7d384e28065cd4e096
[ "MIT" ]
null
null
null
"""bioblastfactory.""" from typing import List from typing import Tuple from Bio.SeqRecord import SeqRecord from .blast import BioBlast from pyblast.blast.seqdb import SeqRecordDB from pyblast.log import logger from pyblast.utils import clean_records class BioBlastFactory: """Instance factory for :class:`BioBla...
30.675
83
0.588155
797aa71d68682bfe049e920effe07e93e459c3e3
6,052
py
Python
tempest/api/volume/admin/test_multi_backend.py
citrix-openstack-build/tempest
385f0b116e8f02d24338e0f11f4ae3ccf2edd661
[ "Apache-2.0" ]
null
null
null
tempest/api/volume/admin/test_multi_backend.py
citrix-openstack-build/tempest
385f0b116e8f02d24338e0f11f4ae3ccf2edd661
[ "Apache-2.0" ]
null
null
null
tempest/api/volume/admin/test_multi_backend.py
citrix-openstack-build/tempest
385f0b116e8f02d24338e0f11f4ae3ccf2edd661
[ "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 applicable...
45.503759
79
0.604098
797aa7c3c08894509d934e2464954b535cd22234
1,859
py
Python
examples/legacy_examples/dagster_examples_tests/event_pipeline_demo_tests/test_pipelines.py
bitdotioinc/dagster
4fe395a37b206b1a48b956fa5dd72bf698104cca
[ "Apache-2.0" ]
1
2021-04-27T19:49:59.000Z
2021-04-27T19:49:59.000Z
examples/legacy_examples/dagster_examples_tests/event_pipeline_demo_tests/test_pipelines.py
bitdotioinc/dagster
4fe395a37b206b1a48b956fa5dd72bf698104cca
[ "Apache-2.0" ]
7
2022-03-16T06:55:04.000Z
2022-03-18T07:03:25.000Z
examples/legacy_examples/dagster_examples_tests/event_pipeline_demo_tests/test_pipelines.py
bitdotioinc/dagster
4fe395a37b206b1a48b956fa5dd72bf698104cca
[ "Apache-2.0" ]
null
null
null
import pandas as pd import pytest from dagster_examples.event_pipeline_demo.pipelines import event_ingest_pipeline from dagster import execute_pipeline from dagster.seven import mock from dagster.utils import load_yaml_from_globs, script_relative_path from .conftest import events_jar, spark_home # pylint: disable=un...
35.075472
100
0.749328
797aa90d68127a77f9141630c73b843ad7d6e0e1
626
py
Python
tests/test_error.py
HelloRusk/spotify-wordcloud
19a55e954382214e4d95371c50ad28d0c31bde9d
[ "MIT" ]
9
2020-11-12T08:02:17.000Z
2021-11-15T09:57:40.000Z
tests/test_error.py
HelloRusk/spotify-wordcloud
19a55e954382214e4d95371c50ad28d0c31bde9d
[ "MIT" ]
56
2020-11-16T00:37:58.000Z
2021-08-15T06:05:01.000Z
tests/test_error.py
7ma7X/spotify-wordcloud
19a55e954382214e4d95371c50ad28d0c31bde9d
[ "MIT" ]
1
2021-01-24T13:05:11.000Z
2021-01-24T13:05:11.000Z
from flask_dance.consumer.storage import MemoryStorage from spotify_wordcloud import app from spotify_wordcloud.api.auth import spotify_bp def test_error(monkeypatch): storage = MemoryStorage() monkeypatch.setattr(spotify_bp, "storage", storage) with app.test_client() as client: res = client.get(...
31.3
89
0.726837
797aac7146db32d5eadd5b067c12ad3b7f17128f
1,899
py
Python
bruteforce_pitches.py
Inspirateur/PitchAssignment
a79f830ea91ef51cb2c8fd59f99ae66c6ba0df08
[ "MIT" ]
null
null
null
bruteforce_pitches.py
Inspirateur/PitchAssignment
a79f830ea91ef51cb2c8fd59f99ae66c6ba0df08
[ "MIT" ]
null
null
null
bruteforce_pitches.py
Inspirateur/PitchAssignment
a79f830ea91ef51cb2c8fd59f99ae66c6ba0df08
[ "MIT" ]
1
2021-09-20T07:48:36.000Z
2021-09-20T07:48:36.000Z
from itertools import combinations from cost import cost import operator as op from functools import reduce def ncr(n, r): r = min(r, n-r) numer = reduce(op.mul, range(n, n-r, -1), 1) denom = reduce(op.mul, range(1, r+1), 1) return numer // denom def restrict_pitches(pitches: dict, select_pitches: s...
34.527273
106
0.661401
797aad39395c24cb1595e486c10652a67d558e47
3,389
py
Python
highton/models/person.py
seibert-media/Highton
1519e4fb105f62882c2e7bc81065d994649558d8
[ "Apache-2.0" ]
18
2015-06-24T02:33:12.000Z
2022-02-11T10:33:58.000Z
highton/models/person.py
seibert-media/Highton
1519e4fb105f62882c2e7bc81065d994649558d8
[ "Apache-2.0" ]
13
2016-01-14T19:11:24.000Z
2020-04-21T08:53:27.000Z
highton/models/person.py
seibert-media/Highton
1519e4fb105f62882c2e7bc81065d994649558d8
[ "Apache-2.0" ]
15
2015-04-15T15:08:31.000Z
2022-02-11T15:34:19.000Z
from highton import ( fields, call_mixins, ) from highton.highton_constants import HightonConstants from highton.models.contact import Contact class Person( Contact, call_mixins.ListCallMixin, call_mixins.CreateCallMixin, call_mixins.DetailCallMixin, call_mixins.UpdateCallMixin, call_m...
39.870588
102
0.725583
797aad7aa8487931823e335c43dcdd7f4b1982e7
3,025
py
Python
py4syn/epics/PhotonicCCDClass.py
gabrielpreviato/py4syn
ac97c220d38e1aa630ff3ba4d9da030a0d3833d8
[ "0BSD" ]
12
2015-07-12T17:15:06.000Z
2018-04-28T06:51:15.000Z
py4syn/epics/PhotonicCCDClass.py
gabrielpreviato/py4syn
ac97c220d38e1aa630ff3ba4d9da030a0d3833d8
[ "0BSD" ]
29
2016-06-28T12:24:08.000Z
2018-10-22T15:59:43.000Z
py4syn/epics/PhotonicCCDClass.py
gabrielpreviato/py4syn
ac97c220d38e1aa630ff3ba4d9da030a0d3833d8
[ "0BSD" ]
10
2015-09-02T17:30:33.000Z
2018-01-18T18:52:32.000Z
""" FILENAME... PhotonicCCDClass.py USAGE... Python Class for EPICS Photonic CCD Detector control /* * Original Author: Hugo Henrique Slepicka * Date: 30/06/2012 * * Modification Log: * ----------------- * .01 30/06/2012 first version released */ """ from time import sleep from epics import PV fr...
31.510417
82
0.636694
797aade0bffc011f9a7e66c23522eaadd0dd230c
2,679
py
Python
test_cae_galzoo2.py
AshleySpindler/AstroSense
8a046427c158fd477dcf209068b98838c202f8ec
[ "MIT" ]
null
null
null
test_cae_galzoo2.py
AshleySpindler/AstroSense
8a046427c158fd477dcf209068b98838c202f8ec
[ "MIT" ]
null
null
null
test_cae_galzoo2.py
AshleySpindler/AstroSense
8a046427c158fd477dcf209068b98838c202f8ec
[ "MIT" ]
null
null
null
from Autoencoder import Models_Cond as Models import Data.GalZoo2_TFIngest_cond as Data_In import tensorflow.keras.backend as K import tensorflow as tf from tensorflow.keras.utils import multi_gpu_model from tensorflow.keras import optimizers import matplotlib.pyplot as plt import numpy as np tf.keras.backend.clear_...
31.517647
111
0.693169
797aae9eeaeafdfd18f4cd07ba6ed7de40afb9e5
10,690
py
Python
gfsa/py_ast_graphs_test.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-13T21:48:52.000Z
2022-03-13T21:48:52.000Z
gfsa/py_ast_graphs_test.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
null
null
null
gfsa/py_ast_graphs_test.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-30T07:20:29.000Z
2022-03-30T07:20:29.000Z
# coding=utf-8 # Copyright 2022 The Google Research 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 applicab...
34.37299
80
0.632928
797aaf1b868f2c51fe7063f0c6c88841dd51ae26
2,727
py
Python
cea/plots/demand/energy_final_use.py
architecture-building-systems/cea-toolbox
bfec7ecb4b242449ab8796a1e8ce68c05c35f1d6
[ "MIT" ]
121
2017-08-15T20:10:22.000Z
2022-03-24T01:25:42.000Z
cea/plots/demand/energy_final_use.py
architecture-building-systems/cea-toolbox
bfec7ecb4b242449ab8796a1e8ce68c05c35f1d6
[ "MIT" ]
2,121
2017-07-27T12:02:01.000Z
2022-03-31T16:39:28.000Z
cea/plots/demand/energy_final_use.py
architecture-building-systems/cea-toolbox
bfec7ecb4b242449ab8796a1e8ce68c05c35f1d6
[ "MIT" ]
42
2017-09-19T09:59:56.000Z
2022-02-19T20:19:56.000Z
""" Implements the Energy Supply pot. """ import cea.plots.demand.energy_end_use import plotly.graph_objs as go from cea.plots.variable_naming import NAMING, LOGO, COLOR class EnergySupplyPlot(cea.plots.demand.energy_end_use.EnergyDemandDistrictPlot): """Implement the energy-supply plot, inherits most of it'...
41.318182
113
0.541621
797ab0828b2e535ed5c1f3becc061eba00184eef
1,008
py
Python
test.py
azwri/convert_numbers
5c6bfcc419e3e9a9ccd49a453f61839232169e78
[ "MIT" ]
2
2021-01-21T16:31:49.000Z
2021-05-12T23:07:11.000Z
test.py
azwri/convert_numbers
5c6bfcc419e3e9a9ccd49a453f61839232169e78
[ "MIT" ]
1
2021-12-09T06:49:48.000Z
2021-12-09T06:49:48.000Z
test.py
azwri/convert_numbers
5c6bfcc419e3e9a9ccd49a453f61839232169e78
[ "MIT" ]
null
null
null
# from convert_numbers import convert import convert_numbers # From Hindi To Englis print(convert_numbers.hindi_to_english('٨٧٦٥٤٣٢٣٤٥٦٧٨')) #8765432345678 # From Englis To Hindi print(convert_numbers.english_to_hindi('12309876523')) ##١٢٣٠٩٨٧٦٥٢٣ # From Hindi To Arabic print(convert_numbers.hindi_to_arabic('٨٧٦٥٤...
23.44186
71
0.8125
797ab08400bd73fbec3b65184d477535447801df
2,266
py
Python
python/093_Restore_IP_Addresses.py
JerryCatLeung/leetcode
ac33a66d7754810ca40fc4fd595b633d30d9afc4
[ "Apache-2.0" ]
null
null
null
python/093_Restore_IP_Addresses.py
JerryCatLeung/leetcode
ac33a66d7754810ca40fc4fd595b633d30d9afc4
[ "Apache-2.0" ]
null
null
null
python/093_Restore_IP_Addresses.py
JerryCatLeung/leetcode
ac33a66d7754810ca40fc4fd595b633d30d9afc4
[ "Apache-2.0" ]
null
null
null
class Solution(object): # def restoreIpAddresses(self, s): # """ # :type s: str # :rtype: List[str] # """ # ls = len(s) # if ls == 0 or ls > 12: # return [] # if s == '0000': # return ['0.0.0.0'] # return self.getrema...
31.472222
84
0.37511
797ab13e232bd5ab9dca4511cf05fc0742941fa5
641
py
Python
array.py
kurapikats/python-data-structures-algorithms
f83a0c90dcce42a6c939a84df0a1efcba7e5fba0
[ "MIT" ]
null
null
null
array.py
kurapikats/python-data-structures-algorithms
f83a0c90dcce42a6c939a84df0a1efcba7e5fba0
[ "MIT" ]
null
null
null
array.py
kurapikats/python-data-structures-algorithms
f83a0c90dcce42a6c939a84df0a1efcba7e5fba0
[ "MIT" ]
null
null
null
numbers = [10, 20, 300, 40, 50] # random indexing --> O(1) get items if we know the index !!! print(numbers[4]) # it can store different data types # numbers[1] = "Adam" # iteration methods # for i in range(len(numbers)): # print(numbers[i]) # for num in numbers: # print(num) # remove last two items print...
18.314286
61
0.667707
797ab2169b608ea305918efc7545e94c688db066
1,658
py
Python
tests/test_auth.py
BONSAMURAIS/bonsai_web_api
30343540dcc63451ddfb4ee56847ed7f04c9fb95
[ "BSD-3-Clause" ]
null
null
null
tests/test_auth.py
BONSAMURAIS/bonsai_web_api
30343540dcc63451ddfb4ee56847ed7f04c9fb95
[ "BSD-3-Clause" ]
1
2019-03-28T18:48:37.000Z
2019-03-28T18:48:37.000Z
tests/test_auth.py
BONSAMURAIS/web-api
30343540dcc63451ddfb4ee56847ed7f04c9fb95
[ "BSD-3-Clause" ]
1
2020-05-06T06:19:43.000Z
2020-05-06T06:19:43.000Z
import pytest from flask import g, session from bonsai_web_api.db import get_db def test_register(client, app): assert client.get('/auth/register').status_code == 200 response = client.post( '/auth/register', data={'username': 'a', 'password': 'a'} ) assert 'http://localhost/auth/login' == res...
30.145455
72
0.630881
797ab2e92e3a6c859d7ae398baebfc311f92b2df
12,644
py
Python
mavlink/pymavlink/generator/mavgen_cpp11.py
JcZou/rotors_simulator
d0c4dbad64ec1b7efddf272d7d7e651b4dce8e31
[ "MIT" ]
15
2018-06-16T07:41:38.000Z
2021-09-18T06:22:02.000Z
mavlink/pymavlink/generator/mavgen_cpp11.py
JcZou/rotors_simulator
d0c4dbad64ec1b7efddf272d7d7e651b4dce8e31
[ "MIT" ]
null
null
null
mavlink/pymavlink/generator/mavgen_cpp11.py
JcZou/rotors_simulator
d0c4dbad64ec1b7efddf272d7d7e651b4dce8e31
[ "MIT" ]
4
2018-12-21T06:14:27.000Z
2021-09-18T06:22:04.000Z
#!/usr/bin/env python ''' parse a MAVLink protocol XML file and generate a C++ implementation Based on C implementation and require C-library for framing. Copyright Andrew Tridgell 2011 Copyright Vladimir Ermakov 2016 Released under GNU GPL version 3 or later ''' import sys, textwrap, os, time from . import mavparse...
27.72807
120
0.595618
797ab3f267c01810e9768b4736ed826dfafe88a5
1,334
py
Python
pythononwheels/start/database/mongodblib.py
rosegold-byte/pow_devel
d983fec72724ede13a9ff587cfba39fc2d6d0d8b
[ "MIT" ]
null
null
null
pythononwheels/start/database/mongodblib.py
rosegold-byte/pow_devel
d983fec72724ede13a9ff587cfba39fc2d6d0d8b
[ "MIT" ]
null
null
null
pythononwheels/start/database/mongodblib.py
rosegold-byte/pow_devel
d983fec72724ede13a9ff587cfba39fc2d6d0d8b
[ "MIT" ]
null
null
null
# # base connection for TinyDB # from {{appname}}.conf.config import database #from pymongo import MongoClient import pymongo import urllib if not database["mongodb"]["atlas"]: # normal mongodb server (local or remote) conn_str = "mongodb://" + database["mongodb"]["host"] + ":" + str(database["mongodb"]["port"...
39.235294
108
0.625937
797ab484031a7b38d916abc8892f113c77c05f74
503
py
Python
setup.py
AlexCardaillac/Mundle-AI
16463031a8d62403ee666b6a70a51ffbdd0ba19a
[ "BSD-2-Clause" ]
null
null
null
setup.py
AlexCardaillac/Mundle-AI
16463031a8d62403ee666b6a70a51ffbdd0ba19a
[ "BSD-2-Clause" ]
null
null
null
setup.py
AlexCardaillac/Mundle-AI
16463031a8d62403ee666b6a70a51ffbdd0ba19a
[ "BSD-2-Clause" ]
null
null
null
from setuptools import setup, find_packages setup( name='mundle-ai', version='1.1', packages=find_packages(), description='Model uncertainty and local explanations for AIs', url='https://github.com/AlexCardaillac/Mundle-AI', author='Alexandre Cardaillac', author_email='cardaillac.alexandre@...
23.952381
67
0.624254
797ab6182ec8bbd0e811bec1becc89703bacb87d
2,258
py
Python
lang/tags/libraries_gui.py
ghouston/knausj_talon
098bb3e89261b19f4b2eda0ca0696f398c50e931
[ "MIT" ]
5
2020-02-16T13:39:10.000Z
2020-02-19T19:29:56.000Z
lang/tags/libraries_gui.py
ghouston/knausj_talon
098bb3e89261b19f4b2eda0ca0696f398c50e931
[ "MIT" ]
null
null
null
lang/tags/libraries_gui.py
ghouston/knausj_talon
098bb3e89261b19f4b2eda0ca0696f398c50e931
[ "MIT" ]
2
2020-02-19T15:10:44.000Z
2020-02-19T16:55:38.000Z
from talon import Context, Module, actions, imgui, registry ctx = Context() mod = Module() mod.list("code_libraries", desc="List of libraries for active language") mod.tag( "code_libraries_gui_showing", desc="Active when the library picker GUI is showing" ) # global library_list = [] @mod.capture(rule="{user.c...
27.876543
87
0.676705
797ab763900933924286d467733ccaa6daf7369c
555
py
Python
Leg-UP/models/detector/SDLib/baseclass/SSDetection.py
sharanmayank/ShillingAttack
783f135a4fcc709e7ce478c2e6f2e7e6c5ad2ace
[ "MIT" ]
null
null
null
Leg-UP/models/detector/SDLib/baseclass/SSDetection.py
sharanmayank/ShillingAttack
783f135a4fcc709e7ce478c2e6f2e7e6c5ad2ace
[ "MIT" ]
null
null
null
Leg-UP/models/detector/SDLib/baseclass/SSDetection.py
sharanmayank/ShillingAttack
783f135a4fcc709e7ce478c2e6f2e7e6c5ad2ace
[ "MIT" ]
null
null
null
from SDetection import SDetection from data.social import SocialDAO from tool.config import Config,LineConfig from os.path import abspath from time import strftime,localtime,time from tool.file import FileIO from sklearn.metrics import classification_report class SSDetection(SDetection): def __init__(self,conf,tra...
42.692308
97
0.796396
797ab7b9168f3384c9bd78e3877ee96875b74ccf
3,072
py
Python
Scripts/backup.py
Jvoytek9/Owlhacks
406b59074397794f48db173e9027d251ce7a070e
[ "bzip2-1.0.6" ]
null
null
null
Scripts/backup.py
Jvoytek9/Owlhacks
406b59074397794f48db173e9027d251ce7a070e
[ "bzip2-1.0.6" ]
null
null
null
Scripts/backup.py
Jvoytek9/Owlhacks
406b59074397794f48db173e9027d251ce7a070e
[ "bzip2-1.0.6" ]
null
null
null
import os import dash import dash_core_components as dcc import dash_html_components as html import pandas as pd import plotly.graph_objs as go app = dash.Dash(__name__) server = app.server app.config.suppress_callback_exceptions = True app.title = "Surfactants" if 'DYNO' in os.environ: app_name = os.environ['DA...
45.850746
119
0.557943
797ab8957b5ec5dab73b80911758299c550e6645
2,621
py
Python
libkne/transactionmanager.py
FelixSchwarz/libkne
9f75ca85058b4e5eb4551c3252938a9af8be0e94
[ "MIT" ]
2
2015-04-16T15:16:12.000Z
2015-10-07T11:56:47.000Z
libkne/transactionmanager.py
FelixSchwarz/libkne
9f75ca85058b4e5eb4551c3252938a9af8be0e94
[ "MIT" ]
null
null
null
libkne/transactionmanager.py
FelixSchwarz/libkne
9f75ca85058b4e5eb4551c3252938a9af8be0e94
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- # The source code contained in this file is licensed under the MIT license. # See LICENSE.txt in the main project directory, for more information. # For the exact contribution history, see the git revision log. from copy import copy from libkne.datafile import DataFile from libkne.util import ...
38.544118
91
0.655093
797ab99532e7d610ab14b1683dfdca4724e29494
1,282
py
Python
aiogithubapi/exceptions.py
odidev/aiogithubapi
ef0917e8da5d31f3c3e64d4efe45f05a537bcfdd
[ "MIT" ]
null
null
null
aiogithubapi/exceptions.py
odidev/aiogithubapi
ef0917e8da5d31f3c3e64d4efe45f05a537bcfdd
[ "MIT" ]
null
null
null
aiogithubapi/exceptions.py
odidev/aiogithubapi
ef0917e8da5d31f3c3e64d4efe45f05a537bcfdd
[ "MIT" ]
null
null
null
"""Custom exceptions for aiogithubapi.""" class GitHubException(BaseException): """ This is raised when unknown exceptions occour. And it's used as a base for all other exceptions so if you want to catch all GitHub related errors you should catch this base exception. """ class GitHubConnect...
29.136364
95
0.75273
797ab9f5938324df07ee3506870fc4cc21d6e75d
8,347
py
Python
ERNIE/batching.py
cclauss/LARK-1
3aeb517a76c219ee5ee5d68c07d07108a8931d57
[ "Apache-2.0" ]
3
2019-03-20T02:34:22.000Z
2019-03-20T02:34:28.000Z
ERNIE/batching.py
cclauss/LARK-1
3aeb517a76c219ee5ee5d68c07d07108a8931d57
[ "Apache-2.0" ]
null
null
null
ERNIE/batching.py
cclauss/LARK-1
3aeb517a76c219ee5ee5d68c07d07108a8931d57
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2019 PaddlePaddle 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 app...
36.933628
80
0.5487
797aba4ed8a17866e2cc55580f3e0f2a5e970d3d
188
py
Python
settings.py
evgeniy97/taskgenerator
7680989c2a080761ef574fac148a0a94c722ad16
[ "MIT" ]
1
2018-07-19T09:56:35.000Z
2018-07-19T09:56:35.000Z
settings.py
evgeniy97/taskgenerator
7680989c2a080761ef574fac148a0a94c722ad16
[ "MIT" ]
null
null
null
settings.py
evgeniy97/taskgenerator
7680989c2a080761ef574fac148a0a94c722ad16
[ "MIT" ]
null
null
null
variantsFile = 'StudentsWithVariants.xlsx' weekPath = '' # TODO Обобщить этот файл outputFile = 'NoteBooks/week1' baseFile = 'BaseNotebooks/LR2.ipynb' tasksFile = 'BaseNotebooks/LR2DB.py'
26.857143
42
0.776596
797abb72c223849ea48490d27dd91dfe518880a2
4,219
py
Python
main.py
PraneethJain/HangerMan
4205b202b497872954906ebe30fd5ecfb6bc64d9
[ "MIT" ]
1
2022-03-29T18:32:14.000Z
2022-03-29T18:32:14.000Z
main.py
PraneethJain/HangerMan
4205b202b497872954906ebe30fd5ecfb6bc64d9
[ "MIT" ]
null
null
null
main.py
PraneethJain/HangerMan
4205b202b497872954906ebe30fd5ecfb6bc64d9
[ "MIT" ]
null
null
null
import pygame as pg import os from rich import print from time import sleep pg.init() pg.display.set_caption("Hanger Man") pg.display.set_icon(pg.image.load(os.path.join("Assets","icon.png"))) screen=pg.display.set_mode((800,600)) clock = pg.time.Clock() bg=pg.image.load(os.path.join("Assets","bg.jpg")).convert_alpha...
38.354545
108
0.578336
797abcf35a6829cbdfff4a50e8a5b11828eced8d
538
py
Python
app.py
the-refrigerator/coffee-site
1922c42031a84a29326174c47f749a27c247d12b
[ "MIT" ]
null
null
null
app.py
the-refrigerator/coffee-site
1922c42031a84a29326174c47f749a27c247d12b
[ "MIT" ]
null
null
null
app.py
the-refrigerator/coffee-site
1922c42031a84a29326174c47f749a27c247d12b
[ "MIT" ]
null
null
null
from flask import Flask, request, render_template, url_for, redirect, send_file import os from password import verify_password, hash_password from flask_sqlalchemy import SQLAlchemy app = Flask(__name__) app.config.from_object('config') db = SQLAlchemy(app) from model import * @app.route('/') def home(): return...
24.454545
87
0.750929
797abef2cdd7a6eb5cd5f9a4d313ab24eae7dc38
5,082
py
Python
tabulator/helpers.py
BradleyKirton/tabulator-py
f68c304bdc531cc3240faabafee36f7be7cf425e
[ "MIT" ]
null
null
null
tabulator/helpers.py
BradleyKirton/tabulator-py
f68c304bdc531cc3240faabafee36f7be7cf425e
[ "MIT" ]
null
null
null
tabulator/helpers.py
BradleyKirton/tabulator-py
f68c304bdc531cc3240faabafee36f7be7cf425e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import division from __future__ import print_function from __future__ import absolute_import from __future__ import unicode_literals import os import re import six import codecs from copy import copy from importlib import import_module from six.moves.urllib.parse import urlparse...
28.711864
82
0.644038
797abf28aed8a345e978080c675411152834672d
5,193
py
Python
PhishMailer.py
fannyhasbi/PhishMailer
3bf9b5f43fbd660789b6ad76094ab0e1599d2e43
[ "MIT" ]
1
2021-07-17T20:22:59.000Z
2021-07-17T20:22:59.000Z
PhishMailer.py
fannyhasbi/PhishMailer
3bf9b5f43fbd660789b6ad76094ab0e1599d2e43
[ "MIT" ]
null
null
null
PhishMailer.py
fannyhasbi/PhishMailer
3bf9b5f43fbd660789b6ad76094ab0e1599d2e43
[ "MIT" ]
4
2021-07-17T20:06:08.000Z
2021-12-11T19:19:21.000Z
#!/usr/bin/env python3 #Created By BiZken #Normal Import import time import os import sys #emails: from Core.eletter import Instagram from Core.eletter import Facebook from Core.eletter import Gmail from Core.eletter import Twitter from Core.eletter import AskFM from Core.eletter import Webhost000 from Core.eletter ...
32.660377
147
0.535529
797abf4225ee0528ec3151f8132b1c8c21953110
1,055
py
Python
topic-01-webdriver/test_python_org.py
drdelozier/software-engineering
0ff78c2878fb5983b053e2d41796b3e7839cbd26
[ "MIT" ]
null
null
null
topic-01-webdriver/test_python_org.py
drdelozier/software-engineering
0ff78c2878fb5983b053e2d41796b3e7839cbd26
[ "MIT" ]
null
null
null
topic-01-webdriver/test_python_org.py
drdelozier/software-engineering
0ff78c2878fb5983b053e2d41796b3e7839cbd26
[ "MIT" ]
2
2021-03-02T19:53:17.000Z
2021-04-15T22:26:19.000Z
from selenium import webdriver from selenium.webdriver.common.keys import Keys import time def test_successful_search(): browser = webdriver.Chrome() browser.get("https://www.python.org") assert "Welcome to Python.org" in browser.title time.sleep(2) search_element = browser.find_element_by_name('q'...
31.029412
54
0.720379
797abfd0a62ad5209faf7e7a989835ab1f8aa9fd
3,928
py
Python
usaspending_api/recipient/v2/views/list_recipients.py
mikepsinn/usaspending-api
ef61e13c286eb51949e16b760fa7516255b2bfd3
[ "CC0-1.0" ]
null
null
null
usaspending_api/recipient/v2/views/list_recipients.py
mikepsinn/usaspending-api
ef61e13c286eb51949e16b760fa7516255b2bfd3
[ "CC0-1.0" ]
1
2021-11-15T17:54:12.000Z
2021-11-15T17:54:12.000Z
usaspending_api/recipient/v2/views/list_recipients.py
mikepsinn/usaspending-api
ef61e13c286eb51949e16b760fa7516255b2bfd3
[ "CC0-1.0" ]
null
null
null
import logging import copy from rest_framework.response import Response from django.db.models import F, Q from usaspending_api.common.cache_decorator import cache_response from usaspending_api.common.helpers.generic_helper import get_pagination_metadata from usaspending_api.common.views import APIDocumentationView fr...
41.347368
118
0.688646
797ac04a0c70ad2b8709a7370accfc2bae528d29
1,292
py
Python
python_client/setup.py
h4l/storage-service
05524e25dfc55f4fe6e2101e1be2850bec691564
[ "MIT" ]
12
2020-02-06T13:08:28.000Z
2022-03-05T08:02:27.000Z
python_client/setup.py
h4l/storage-service
05524e25dfc55f4fe6e2101e1be2850bec691564
[ "MIT" ]
98
2020-02-13T09:36:39.000Z
2022-03-31T07:02:30.000Z
python_client/setup.py
wellcometrust/storage
e53dbc1ec8761f78605c65028f75b697fe06d695
[ "MIT" ]
4
2020-03-12T15:42:23.000Z
2021-07-20T06:23:35.000Z
# -*- encoding: utf-8 -*- import os from setuptools import find_packages, setup def local_file(name): return os.path.relpath(os.path.join(os.path.dirname(__file__), name)) SOURCE = local_file("src") README = local_file("README.rst") # Assignment to placate pyflakes. The actual version is from the exec that ...
27.489362
74
0.680341
797ac1a12fbf6b1eacb157f8bfbc0b7a93075af6
560
py
Python
game/snake/food.py
clllllllllc/unicorn-pancake
e35a065131cc47c6807797c10b72e0963929bf65
[ "MIT" ]
null
null
null
game/snake/food.py
clllllllllc/unicorn-pancake
e35a065131cc47c6807797c10b72e0963929bf65
[ "MIT" ]
null
null
null
game/snake/food.py
clllllllllc/unicorn-pancake
e35a065131cc47c6807797c10b72e0963929bf65
[ "MIT" ]
null
null
null
from turtle import Turtle import random class Food(Turtle): def __init__(self): super().__init__() self.shape("circle") self.penup() self.shapesize(stretch_len=0.5, stretch_wid=0.5) self.color("purple") self.speed("fastest") random_x = random.randint(-280, ...
25.454545
56
0.608929