text stringlengths 0 1.05M | meta dict |
|---|---|
"""A set of helper functions for TensorFlow."""
from typing import Callable, Iterable, List, Optional, Tuple
import numpy as np
import tensorflow as tf
from neuralmonkey.logging import debug, debug_enabled
# pylint: disable=invalid-name
ShapeSpec = List[int]
# pylint: enable=invalid-name
def _get_current_experiment... | {
"repo_name": "juliakreutzer/bandit-neuralmonkey",
"path": "neuralmonkey/tf_utils.py",
"copies": "1",
"size": "3632",
"license": "bsd-3-clause",
"hash": -5764959079854759000,
"line_mean": 30.8596491228,
"line_max": 78,
"alpha_frac": 0.6255506608,
"autogenerated": false,
"ratio": 4.035555555555556... |
# A set of helper functions for the nba_shot_chart codebase
import pandas as pd
import numpy as np
import sys
from py_data_getter import data_getter
from py_db import db
db = db('nba_shots')
#Getting the shot data and returning a DataFrame with every shot for a specific player/season combo
def acquire_shootingData... | {
"repo_name": "Connor-R/nba_shot_charts",
"path": "charting/helper_data.py",
"copies": "1",
"size": "9575",
"license": "mit",
"hash": -1167953659886842400,
"line_mean": 35,
"line_max": 232,
"alpha_frac": 0.5953002611,
"autogenerated": false,
"ratio": 3.073836276083467,
"config_test": false,
"... |
# A set of helper functions for the nba_shot_chart codebase
import urllib
import os
import csv
import sys
import math
import pandas as pd
import numpy as np
import matplotlib as mpb
import matplotlib.pyplot as plt
from matplotlib import offsetbox as osb
from matplotlib.patches import RegularPolygon
from datetime impor... | {
"repo_name": "Connor-R/nba_shot_charts",
"path": "charting/helper_charting.py",
"copies": "1",
"size": "21226",
"license": "mit",
"hash": -4521192645061640000,
"line_mean": 44.4518201285,
"line_max": 305,
"alpha_frac": 0.6208423631,
"autogenerated": false,
"ratio": 3.042717889908257,
"config_t... |
# A set of helper functions for the NSBL codebase
from py_db import db
db = db('NSBL')
def random_sql_helpers():
sql_dict = {
}
def get_team_abb(team_name, year):
qry = db.query("SELECT team_abb FROM teams WHERE year = %s AND team_name = '%s';" % (year, team_name))
if qry != ():
team_abb = qry... | {
"repo_name": "Connor-R/NSBL",
"path": "NSBL_helpers.py",
"copies": "1",
"size": "13283",
"license": "mit",
"hash": 4358234479631486000,
"line_mean": 29.819025522,
"line_max": 182,
"alpha_frac": 0.5599638636,
"autogenerated": false,
"ratio": 2.668340699075934,
"config_test": false,
"has_no_ke... |
"""A set of helper functions to work with the astropy module."""
import functools
import random
import string
import tempfile
import subprocess
import collections
from itertools import cycle, islice, chain, combinations, zip_longest
import scipy
import numpy as np
from astropy.table import Table, join
from astropy.coo... | {
"repo_name": "cactaur/astropy-utils",
"path": "astropy_util.py",
"copies": "1",
"size": "26719",
"license": "bsd-3-clause",
"hash": -1405172378491564800,
"line_mean": 37.7793904209,
"line_max": 82,
"alpha_frac": 0.6305625211,
"autogenerated": false,
"ratio": 4.013669821240799,
"config_test": f... |
# A set of helpful classes and functions which are common to most classification algorithms
# This includes a 'Blob' class which will automatically determine the properties of a cluster (yay!!)
import numpy as np
from scipy.optimize import leastsq
import os
from PIL import Image
try:
import least_squares_circle
ex... | {
"repo_name": "calhewitt/lucid_utils",
"path": "lucid_utils/classification/common.py",
"copies": "2",
"size": "5750",
"license": "mit",
"hash": -51121469724353470,
"line_mean": 43.2307692308,
"line_max": 130,
"alpha_frac": 0.6128695652,
"autogenerated": false,
"ratio": 3.410438908659549,
"confi... |
""" A set of instructions for data collection or information dissemination.
:Authors: Sana dev team
:Version: 2.0
"""
from django.db import models
from mds.api.utils import make_uuid
class Procedure(models.Model):
""" A series of steps used to collect data observations. """
class Meta:
app_label = ... | {
"repo_name": "dekatzenel/team-k",
"path": "mds/core/models/procedure.py",
"copies": "1",
"size": "1272",
"license": "bsd-3-clause",
"hash": -9105109386167426000,
"line_mean": 29.2857142857,
"line_max": 90,
"alpha_frac": 0.659591195,
"autogenerated": false,
"ratio": 4.038095238095238,
"config_t... |
# A set of method to build an instance
import re
from oslib import osinit, OSLibError
import subprocess
import time
from oslib.mime_utils import MimeMessage, URL
import oslib.getuser as getuser
import os
import os.path
from boto.ec2.blockdevicemapping import BlockDeviceMapping, BlockDeviceType
from boto.ec2.networkinte... | {
"repo_name": "fbacchella/oscmd",
"path": "oslib/build.py",
"copies": "1",
"size": "15215",
"license": "apache-2.0",
"hash": -5772989176944293000,
"line_mean": 39.3580901857,
"line_max": 213,
"alpha_frac": 0.5955964509,
"autogenerated": false,
"ratio": 3.6911693352741386,
"config_test": false,
... |
'''A set of mixin classes.'''
class Comparable(object):
'''A mixin class which defines all of the rich comparison methods in terms
of the __eq__ and __lt__ methods.'''
def __ne__(self, y):
return not self.__eq__(y)
def __gt__(self, y):
return y.__lt__(self)
def __ge__(self, y):
... | {
"repo_name": "bdusell/pycfg",
"path": "src/util/mixin.py",
"copies": "1",
"size": "2461",
"license": "mit",
"hash": 3336290950663226400,
"line_mean": 30.961038961,
"line_max": 78,
"alpha_frac": 0.5786265746,
"autogenerated": false,
"ratio": 4.014681892332789,
"config_test": false,
"has_no_ke... |
# A set of NLP functions, none of which are currently being used
import nltk
from nltk.corpus import stopwords
text = "" # TO be included from the Article Abstract
# Used when tokenizing words
sentence_re = r'''(?x) # set flag to allow verbose regexps
([A-Z])(\.[A-Z])+\.? # abbreviations, e.g. U.S.A.
... | {
"repo_name": "neelsomani/brainspell-neo",
"path": "archive/natural_language.py",
"copies": "2",
"size": "1908",
"license": "mit",
"hash": 3960337969885474000,
"line_mean": 25.1369863014,
"line_max": 73,
"alpha_frac": 0.6132075472,
"autogenerated": false,
"ratio": 3.138157894736842,
"config_tes... |
""" A set of NumPy functions to apply per chunk """
from collections.abc import Container, Iterable, Sequence
from functools import wraps
from tlz import concat
import numpy as np
from . import numpy_compat as npcompat
from ..core import flatten
from ..utils import ignoring
from numbers import Integral
try:
fro... | {
"repo_name": "ContinuumIO/dask",
"path": "dask/array/chunk.py",
"copies": "2",
"size": "10628",
"license": "bsd-3-clause",
"hash": -7527083216621886000,
"line_mean": 27.3413333333,
"line_max": 88,
"alpha_frac": 0.6027474595,
"autogenerated": false,
"ratio": 3.393358876117497,
"config_test": fa... |
""" A set of NumPy functions to apply per chunk """
from __future__ import absolute_import, division, print_function
from collections import Container, Iterable, Sequence
from functools import wraps
from toolz import concat
import numpy as np
from . import numpy_compat as npcompat
from ..compatibility import getargs... | {
"repo_name": "cowlicks/dask",
"path": "dask/array/chunk.py",
"copies": "2",
"size": "4943",
"license": "bsd-3-clause",
"hash": 5415933219385118000,
"line_mean": 25.1534391534,
"line_max": 80,
"alpha_frac": 0.5876997775,
"autogenerated": false,
"ratio": 3.256258234519104,
"config_test": false,
... |
""" A set of NumPy functions to apply per chunk """
from __future__ import absolute_import, division, print_function
from collections import Container, Iterable, Sequence
from functools import wraps
from inspect import getargspec
from toolz import concat
import numpy as np
from ..compatibility import builtins
from ... | {
"repo_name": "marianotepper/dask",
"path": "dask/array/chunk.py",
"copies": "4",
"size": "8651",
"license": "bsd-3-clause",
"hash": -4832155054916041000,
"line_mean": 31.2798507463,
"line_max": 82,
"alpha_frac": 0.6069818518,
"autogenerated": false,
"ratio": 3.8655049151027705,
"config_test": ... |
""" A set of NumPy functions to apply per chunk """
from toolz import concat
import numpy as np
def coarsen(reduction, x, axes):
""" Coarsen array by applying reduction to fixed size neighborhoods
Parameters
----------
reduction: function
Function like np.sum, np.mean, etc...
x: np.ndar... | {
"repo_name": "PeterDSteinberg/dask",
"path": "dask/array/chunk.py",
"copies": "1",
"size": "2106",
"license": "bsd-3-clause",
"hash": 1914080036639437600,
"line_mean": 24.0714285714,
"line_max": 76,
"alpha_frac": 0.4966761633,
"autogenerated": false,
"ratio": 3.0345821325648417,
"config_test":... |
"""A set of processes for Tumor heterogeneity analysis"""
from os import path
from pyppl import Proc
from diot import Diot
from . import params, proc_factory
pSciClone = proc_factory(
desc = "Clonality analysis using SciClone.",
config = Diot(annotate = """
@input:
muts: Somatic mutations. Could be one of:
-... | {
"repo_name": "pwwang/bioprocs",
"path": "bioprocs/tumhet.py",
"copies": "1",
"size": "16907",
"license": "mit",
"hash": -2281256013743400000,
"line_mean": 39.1591448931,
"line_max": 213,
"alpha_frac": 0.6664695097,
"autogenerated": false,
"ratio": 2.88318553888131,
"config_test": true,
"has_... |
# A set of regression tests for open issues
import cocotb
from cocotb.clock import Clock
from cocotb.triggers import RisingEdge, Timer, ReadOnly
from cocotb.result import TestFailure
from cocotb.binary import BinaryValue
@cocotb.coroutine
def send_data(dut):
dut.stream_in_valid = 1
yield RisingEdge(dut.clk)
... | {
"repo_name": "mkreider/cocotb2",
"path": "tests/test_cases/issue_120/issue_120.py",
"copies": "5",
"size": "1215",
"license": "bsd-3-clause",
"hash": -5136968624657797000,
"line_mean": 24.3125,
"line_max": 76,
"alpha_frac": 0.6930041152,
"autogenerated": false,
"ratio": 3.1476683937823835,
"co... |
"""A set of request processors that return dictionaries to be merged into a
template context. Each function takes the request object as its only parameter
and returns a dictionary to add to the context.
"""
from django.conf import settings
from django.db.utils import DatabaseError
from rapidsms.templatetags.tabs_tags i... | {
"repo_name": "unicefuganda/edtrac",
"path": "edtrac_project/rapidsms_uganda_common/uganda_common/context_processors.py",
"copies": "1",
"size": "1558",
"license": "bsd-3-clause",
"hash": 3455807045716507600,
"line_mean": 30.7959183673,
"line_max": 115,
"alpha_frac": 0.5866495507,
"autogenerated": ... |
"""A set of resources to download via API or URL links"""
from pyppl import Proc
from diot import Diot
from . import params, proc_factory
pTxt = proc_factory(
desc = 'Download CSV format files.',
config = Diot(annotate = """
@name:
pTxt
@description:
Download CSV format files.
@input:
`in`: The name of the ... | {
"repo_name": "pwwang/bioprocs",
"path": "bioprocs/resource.py",
"copies": "1",
"size": "4923",
"license": "mit",
"hash": 6314637772847483000,
"line_mean": 41.8086956522,
"line_max": 135,
"alpha_frac": 0.6721511274,
"autogenerated": false,
"ratio": 2.685761047463175,
"config_test": false,
"ha... |
"""A set of re-usable functions for mapping inputs to outputs
For each function we need to map the current state of a set of input variables
to a set of output *distributions*.
NOTES
-----
1. For variables with only two states which we consider binary, we adopt the
convention of state 0 = False and state 1 = True... | {
"repo_name": "brettc/causalinfo",
"path": "causalinfo/equations.py",
"copies": "1",
"size": "1063",
"license": "mit",
"hash": -8949569322327518000,
"line_mean": 16.1451612903,
"line_max": 78,
"alpha_frac": 0.5230479774,
"autogenerated": false,
"ratio": 2.5552884615384617,
"config_test": false,... |
"""A set of reward utilities written by the authors of dm_control"""
from multiprocessing import Value
import numpy as np
# The value returned by tolerance() at `margin` distance from `bounds` interval.
_DEFAULT_VALUE_AT_MARGIN = 0.1
def _sigmoids(x, value_at_1, sigmoid):
"""Returns 1 when `x` == 0, between 0 a... | {
"repo_name": "rlworkgroup/metaworld",
"path": "metaworld/envs/reward_utils.py",
"copies": "1",
"size": "8058",
"license": "mit",
"hash": -2308301391546246000,
"line_mean": 35.6272727273,
"line_max": 91,
"alpha_frac": 0.5738396624,
"autogenerated": false,
"ratio": 3.6946354883081156,
"config_te... |
# A set of routines for finding images and the like based on file names.
# This includes all of the appropriate handling for templates, directories
# and the like.
#
# Also routines for grouping sets of images together into sweeps based on
# the file names and the information in image headers.
import logging
import m... | {
"repo_name": "xia2/xia2",
"path": "src/xia2/Experts/FindImages.py",
"copies": "1",
"size": "6640",
"license": "bsd-3-clause",
"hash": 8144996665236907000,
"line_mean": 26.6666666667,
"line_max": 85,
"alpha_frac": 0.6153614458,
"autogenerated": false,
"ratio": 3.871720116618076,
"config_test": ... |
""" A set of scoring functions. """
import numpy as np
from .pyglmnet import _logL
def deviance(y, yhat, distr):
"""Deviance metrics.
Parameters
----------
y : array
Target labels of shape (n_samples, )
yhat : array
Predicted labels of shape (n_samples, )
distr: str
... | {
"repo_name": "pavanramkumar/pyglmnet",
"path": "pyglmnet/metrics.py",
"copies": "1",
"size": "1683",
"license": "mit",
"hash": -4882592893828541000,
"line_mean": 17.9101123596,
"line_max": 57,
"alpha_frac": 0.5246583482,
"autogenerated": false,
"ratio": 3.386317907444668,
"config_test": false,... |
""" A set of scoring functions. """
import numpy as np
from .pyglmnet import _logL
def deviance(y, yhat, distr, theta):
"""Deviance metrics.
Parameters
----------
y : array
Target labels of shape (n_samples, )
yhat : array
Predicted labels of shape (n_samples, )
distr: str
... | {
"repo_name": "glm-tools/pyglmnet",
"path": "pyglmnet/metrics.py",
"copies": "1",
"size": "1810",
"license": "mit",
"hash": -4997021577522525000,
"line_mean": 19.3370786517,
"line_max": 57,
"alpha_frac": 0.5392265193,
"autogenerated": false,
"ratio": 3.376865671641791,
"config_test": false,
"... |
# A set of sorting algorithm implementations that will log the sorting
# process in a neat graph. Thus, the main goal is more of an educational
# one, or, in my case, algorithmic composition.
import copy
from GraphStructures import *
class QuickSorter():
# this implementation doesn't really work in-place, but it's... | {
"repo_name": "the-drunk-coder/graph-o-sort",
"path": "GraphingSorters.py",
"copies": "1",
"size": "6759",
"license": "unlicense",
"hash": 9199313406089593000,
"line_mean": 46.2657342657,
"line_max": 88,
"alpha_frac": 0.613108448,
"autogenerated": false,
"ratio": 3.730132450331126,
"config_test... |
''' A set of standard sources, filters, sorters and sinks
'''
import random
import datetime
from track_manager import tlib
import json
class Annotator(object):
''' Annotates the tracks in a stream with external information
:param source: the source of tracks
:param type: the type of annotation (sp... | {
"repo_name": "plamere/pbl",
"path": "pbl/standard_plugs.py",
"copies": "1",
"size": "24806",
"license": "mit",
"hash": 4163572030834825700,
"line_mean": 28.886746988,
"line_max": 101,
"alpha_frac": 0.5323308877,
"autogenerated": false,
"ratio": 4.146773654296222,
"config_test": false,
"has_n... |
"""A set of stream oriented parsers for http requests and responses, inline
with the current draft recommendations from the http working group.
http://tools.ietf.org/html/draft-ietf-httpbis-p1-messaging-17
Unlike other libraries, this is for clients, servers and proxies.
Missing:
comma parsing/header folding
""... | {
"repo_name": "internetarchive/warctools",
"path": "hanzo/httptools/messaging.py",
"copies": "1",
"size": "23083",
"license": "mit",
"hash": -8086118138200177000,
"line_mean": 30.1932432432,
"line_max": 103,
"alpha_frac": 0.5278776589,
"autogenerated": false,
"ratio": 4.1696170520231215,
"confi... |
"""A set of tasks for SVD filtering the m-modes."""
import numpy as np
import scipy.linalg as la
from caput import config
from draco.core import task, containers
class SVDSpectrumEstimator(task.SingleTask):
"""Calculate the SVD spectrum of a set of m-modes.
Attributes
----------
niter : int
... | {
"repo_name": "radiocosmology/draco",
"path": "draco/analysis/svdfilter.py",
"copies": "1",
"size": "6005",
"license": "mit",
"hash": 7429625756180858000,
"line_mean": 28.0096618357,
"line_max": 99,
"alpha_frac": 0.559367194,
"autogenerated": false,
"ratio": 3.803039898670044,
"config_test": fa... |
"""A set of test cases for the wemake isort profile.
Snippets are taken directly from the wemake-python-styleguide project here:
https://github.com/wemake-services/wemake-python-styleguide
"""
from functools import partial
from ..utils import isort_test
wemake_isort_test = partial(
isort_test, profile="wemake", ... | {
"repo_name": "PyCQA/isort",
"path": "tests/unit/profiles/test_wemake.py",
"copies": "1",
"size": "2438",
"license": "mit",
"hash": 1588545796122001200,
"line_mean": 27.0229885057,
"line_max": 80,
"alpha_frac": 0.7863002461,
"autogenerated": false,
"ratio": 3.6827794561933533,
"config_test": tr... |
"""A set of timestampable model mixins"""
from __future__ import unicode_literals
from django.conf import settings
from django.db import models
from django.utils import timezone
from django.utils.translation import ugettext_lazy as _
class CreatedAtMixin(models.Model):
"""Add ``created_at`` field to model."""
... | {
"repo_name": "tomi77/python-t77-django",
"path": "django_extra_tools/db/models/timestampable.py",
"copies": "1",
"size": "3266",
"license": "mit",
"hash": -2969526162069495000,
"line_mean": 28.4234234234,
"line_max": 79,
"alpha_frac": 0.6071647275,
"autogenerated": false,
"ratio": 3.973236009732... |
""" A set of tokens and convienence functions for input/output files.
author: Brian Schrader
since: 2015-12-28
"""
from __future__ import print_function
from collections import namedtuple
import glob, re
file_pattern = 'mp.{}.output{}'
alias_pattern = '{command}-{output_number}'
class PathToken(object):
""" A... | {
"repo_name": "TorkamaniLab/metapipe",
"path": "metapipe/models/tokens.py",
"copies": "2",
"size": "6534",
"license": "mit",
"hash": -756490810058993900,
"line_mean": 27.9115044248,
"line_max": 80,
"alpha_frac": 0.5531068258,
"autogenerated": false,
"ratio": 4.183098591549296,
"config_test": fa... |
"""A set of tools for use in integration tests."""
import os
from hashlib import sha1
import numpy as np
import tables
def hasher(x):
return int(sha1(x).hexdigest(), 16)
def idx(h):
ind = [None] * 5
for i in range(4, -1, -1):
h, ind[i] = divmod(h, 2**32)
return tuple(ind)
sha1array = lambda ... | {
"repo_name": "cyclus/cycaless",
"path": "tests/helper.py",
"copies": "1",
"size": "2575",
"license": "bsd-3-clause",
"hash": 4242726598770658300,
"line_mean": 28.9418604651,
"line_max": 76,
"alpha_frac": 0.5763106796,
"autogenerated": false,
"ratio": 3.374836173001311,
"config_test": false,
... |
"""A set of tools for use in integration tests."""
import os
import platform
import sqlite3
from hashlib import sha1
import numpy as np
import tables
def hasher(x):
return int(sha1(x.encode()).hexdigest(), 16)
def idx(h):
ind = [None] * 5
for i in range(4, -1, -1):
h, ind[i] = divmod(h, 2**32)
... | {
"repo_name": "mbmcgarry/cyclus",
"path": "tests/helper.py",
"copies": "4",
"size": "6389",
"license": "bsd-3-clause",
"hash": -1504546109224630000,
"line_mean": 29.8647342995,
"line_max": 79,
"alpha_frac": 0.5620597903,
"autogenerated": false,
"ratio": 3.522050716648291,
"config_test": false,
... |
"""A set of tools for use in integration tests."""
import os
import tempfile
import subprocess
import sys
from hashlib import sha1
import numpy as np
import tables
from nose.tools import assert_equal
if sys.version_info[0] >= 3:
str_types = (bytes, str)
else:
str_types = (str, unicode)
def hasher(x):
retu... | {
"repo_name": "rwcarlsen/cycamore",
"path": "tests/helper.py",
"copies": "9",
"size": "2628",
"license": "bsd-3-clause",
"hash": -8249522726482616000,
"line_mean": 31.0487804878,
"line_max": 85,
"alpha_frac": 0.6145357686,
"autogenerated": false,
"ratio": 3.360613810741688,
"config_test": false... |
"""A set of types as required by the DB API 2.0.
All these types implement str() in a way that makes them correct and
safe for inclusion in commands passed to the backend.
This module uses datetime from the stdlib, which means we need Python 2.3+
"""
LOCALE_MONEY_DEFAULTS = ('$',',','.')
# System imports
import dat... | {
"repo_name": "jamwt/pgasync",
"path": "pgasync/pgtypes.py",
"copies": "1",
"size": "4583",
"license": "bsd-3-clause",
"hash": -6577440372823882000,
"line_mean": 21.356097561,
"line_max": 105,
"alpha_frac": 0.6264455597,
"autogenerated": false,
"ratio": 2.806491120636865,
"config_test": false,
... |
'''A set of utilities for defining and working with namsel-ocr config files
'''
import json
import codecs
import os
import glob
import numpy as np
from utils import create_unique_id, local_file
from collections import Counter
CONF_DIR = './confs'
if not os.path.exists(CONF_DIR):
os.mkdir(CONF_DIR)
def _open(fl,... | {
"repo_name": "zmr/namsel",
"path": "config_manager.py",
"copies": "1",
"size": "3038",
"license": "mit",
"hash": 6732557589942570000,
"line_mean": 29.0792079208,
"line_max": 141,
"alpha_frac": 0.5681369322,
"autogenerated": false,
"ratio": 3.6470588235294117,
"config_test": true,
"has_no_key... |
'''A set of utilities for financial data analysis'''
import csv
from time import time
# Keeping track of a bundle of output files for, e.g., ITCH data
class ManyWriters:
'''Keep track of a set of files and formatters around a given base'''
writers = {}
open_files = []
def __init__(self, basename):... | {
"repo_name": "dlab-berkeley/python-taq",
"path": "marketflow/utility.py",
"copies": "3",
"size": "1965",
"license": "bsd-2-clause",
"hash": 2235148573273910800,
"line_mean": 26.2916666667,
"line_max": 108,
"alpha_frac": 0.6055979644,
"autogenerated": false,
"ratio": 3.914342629482072,
"config_... |
''' a set of utilities to create matrix representations (Laplacians) of graphs
'''
import numpy as np
def complete_gl(n):
"""
return the Laplacian of a complete graph (all nodes are connected to all
edges)
Parameters
----------
n : int
number of nodes in the graph
Examples
--... | {
"repo_name": "robotarium/robotarium-python-simulator",
"path": "robotarium/graph.py",
"copies": "1",
"size": "5247",
"license": "mit",
"hash": -7607100939141003000,
"line_mean": 22.85,
"line_max": 84,
"alpha_frac": 0.5561273108,
"autogenerated": false,
"ratio": 3.38953488372093,
"config_test":... |
""" A set of utilities to manage pySpark SparkContext object
Assumes you have pyspark (and py4j) on the PYTHONPATH and SPARK_HOME is defined
"""
from future.utils import iteritems
from future.moves.urllib.request import urlopen
from functools import wraps
import collections
import logging
import time
import ... | {
"repo_name": "boazmohar/pySparkUtils",
"path": "pySparkUtils/utils.py",
"copies": "1",
"size": "14880",
"license": "mit",
"hash": 7299863086716235000,
"line_mean": 39.6806722689,
"line_max": 116,
"alpha_frac": 0.5997983871,
"autogenerated": false,
"ratio": 4.015110631408526,
"config_test": fal... |
"""A set of utilities to use for the Redis database.
Licensed under the 3-clause BSD License:
Copyright (c) 2010, Neeraj Kumar (neerajkumar.org)
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Re... | {
"repo_name": "neeraj-kumar/nkpylib",
"path": "nkredisutils.py",
"copies": "1",
"size": "40970",
"license": "bsd-3-clause",
"hash": -8097370372725752000,
"line_mean": 38.8540856031,
"line_max": 760,
"alpha_frac": 0.5836953869,
"autogenerated": false,
"ratio": 3.8062058714232627,
"config_test": ... |
"""A set of utilities to use for web apps made using web.py.
Licensed under the 3-clause BSD License:
Copyright (c) 2010, Neeraj Kumar (neerajkumar.org)
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
... | {
"repo_name": "neeraj-kumar/nkpylib",
"path": "nkwebutils.py",
"copies": "1",
"size": "30608",
"license": "bsd-3-clause",
"hash": 5244189327733948000,
"line_mean": 41.043956044,
"line_max": 241,
"alpha_frac": 0.6481965499,
"autogenerated": false,
"ratio": 3.8236102435977513,
"config_test": fals... |
"""A set of utility functions
"""
from collections import OrderedDict
import csv
from warnings import warn
from .results import ResultDict
import pkgutil
import numpy as np
import scipy as sp
__all__ = ["scale_samples", "read_param_file",
"ResultDict", "avail_approaches"]
def avail_approaches(pkg):
... | {
"repo_name": "willu47/SALib",
"path": "src/SALib/util/__init__.py",
"copies": "1",
"size": "9906",
"license": "mit",
"hash": -8948273230084584000,
"line_mean": 31.3725490196,
"line_max": 79,
"alpha_frac": 0.5802543913,
"autogenerated": false,
"ratio": 4.314459930313589,
"config_test": false,
... |
"""A set of utility functions
"""
from collections import OrderedDict
import csv
from warnings import warn
from .results import ResultDict
import pkgutil
import numpy as np # type: ignore
import scipy as sp # type: ignore
from scipy import stats
from typing import List
__all__ = ["scale_samples", "read_param_file... | {
"repo_name": "SALib/SALib",
"path": "src/SALib/util/__init__.py",
"copies": "1",
"size": "10001",
"license": "mit",
"hash": -1077771083079003900,
"line_mean": 31.3656957929,
"line_max": 79,
"alpha_frac": 0.5815418458,
"autogenerated": false,
"ratio": 4.310775862068965,
"config_test": false,
... |
"""A set of utility functions that are used elsewhere in radiotool
"""
import sys
from subprocess import check_output
try:
import libxmp
LIBXMP = True
except ImportError:
LIBXMP = False
import numpy as N
def log_magnitude_spectrum(frames):
"""Compute the log of the magnitude spectrum of frames"""
... | {
"repo_name": "ucbvislab/radiotool",
"path": "radiotool/utils.py",
"copies": "1",
"size": "4738",
"license": "isc",
"hash": 7685430849038703000,
"line_mean": 24.2021276596,
"line_max": 77,
"alpha_frac": 0.5930772478,
"autogenerated": false,
"ratio": 2.9761306532663316,
"config_test": false,
"... |
"""A set of utility functions to evaluate expressions.
Sample Usage:
print(SgExpression.ExtractTokensFromExpression("name + issues_url"))
print(SgExpression.ExtractTokensFromExpressions(["name + issues_url", "issues_url - id"]))
print(SgExpression.IsAllTokensInAggregate(["avg(mycount + 5)", "max(5 + min(yo... | {
"repo_name": "lnishan/SQLGitHub",
"path": "components/expression.py",
"copies": "1",
"size": "24893",
"license": "mit",
"hash": -2372579031499640000,
"line_mean": 37.3559322034,
"line_max": 118,
"alpha_frac": 0.4175471016,
"autogenerated": false,
"ratio": 3.871986312023643,
"config_test": fals... |
"""A set of utility function to ease the use of OmniORBpy."""
__revision__ = '$Id: corbautils.py,v 1.2 2005-11-22 13:13:00 syt Exp $'
from omniORB import CORBA, PortableServer
import CosNaming
orb = None
def get_orb():
"""
returns a reference to the ORB.
The first call to the method initialized the ORB
... | {
"repo_name": "h2oloopan/easymerge",
"path": "EasyMerge/clonedigger/logilab/common/corbautils.py",
"copies": "1",
"size": "3112",
"license": "mit",
"hash": -5464688936364603000,
"line_mean": 31.4166666667,
"line_max": 79,
"alpha_frac": 0.6552056555,
"autogenerated": false,
"ratio": 3.564719358533... |
"""A set of views every cart needs.
On success, each view returns a JSON-response with the cart
representation. For the details on the format of the return value,
see the :meth:`~easycart.cart.BaseCart.encode` method of the
:class:`~easycart.cart.BaseCart` class.
If a parameter required by a view is not present in th... | {
"repo_name": "nevimov/django-easycart",
"path": "easycart/views.py",
"copies": "1",
"size": "5228",
"license": "mit",
"hash": 2665307708749407700,
"line_mean": 33.6225165563,
"line_max": 75,
"alpha_frac": 0.5730680949,
"autogenerated": false,
"ratio": 4.565938864628821,
"config_test": false,
... |
"""A setup module for conda-merge"""
import os
from setuptools import setup
from codecs import open
here = os.path.abspath(os.path.dirname(__file__))
# Get the long description from the README file
with open(os.path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='c... | {
"repo_name": "amitbeka/conda-merge",
"path": "setup.py",
"copies": "1",
"size": "1252",
"license": "mit",
"hash": -1132413868706350200,
"line_mean": 23.5490196078,
"line_max": 67,
"alpha_frac": 0.6094249201,
"autogenerated": false,
"ratio": 3.888198757763975,
"config_test": false,
"has_no_ke... |
"""A setup module for portbalance."""
from setuptools import setup, find_packages
from setuptools.command.install import install as _install
# Adapted from https://stackoverflow.com/questions/26799894/installing-nltk-data-in-setup-py-script
# Subclasses default installer
class Install(_install):
def run(self):
... | {
"repo_name": "williamgilpin/cfgen",
"path": "setup.py",
"copies": "1",
"size": "1483",
"license": "mit",
"hash": -2035646535183798800,
"line_mean": 36.1,
"line_max": 106,
"alpha_frac": 0.6803776129,
"autogenerated": false,
"ratio": 3.5734939759036144,
"config_test": false,
"has_no_keywords":... |
"""A setup module for psidPy
Based on the pypa sample project.
A tool to download data and build psid panels based on psidR by Florian Oswald.
See:
https://github.com/floswald/psidR
https://github.com/tyler-abbot/psidPy
"""
from setuptools import setup, find_packages
from codecs import open
from os import path
her... | {
"repo_name": "tyler-abbot/psid_py",
"path": "setup.py",
"copies": "1",
"size": "2486",
"license": "mit",
"hash": -7097989396776916000,
"line_mean": 32.1466666667,
"line_max": 79,
"alpha_frac": 0.6452131939,
"autogenerated": false,
"ratio": 4.016155088852988,
"config_test": false,
"has_no_key... |
"""A setup module for the GAPIC Bigtable library.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
from setuptools import setup, find_packages
import sys
install_requires = [
'googleapis-common-protos>=1.3.5, <2.0.0dev',
'google-gax>=0.14.1, <0.15.0dev',... | {
"repo_name": "michaelbausor/api-client-staging",
"path": "generated/python/gapic-google-bigtable-v2/setup.py",
"copies": "9",
"size": "1519",
"license": "bsd-3-clause",
"hash": 1259415437697608400,
"line_mean": 33.5227272727,
"line_max": 105,
"alpha_frac": 0.646477946,
"autogenerated": false,
"r... |
"""A setup module for the GAPIC Cloud Spanner API library.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
from setuptools import setup, find_packages
import sys
install_requires = [
'google-gax>=0.15.7, <0.16dev',
'oauth2client>=2.0.0, <4.0dev',
'p... | {
"repo_name": "landrito/api-client-staging",
"path": "generated/python/gapic-google-cloud-spanner-v1/setup.py",
"copies": "7",
"size": "1559",
"license": "bsd-3-clause",
"hash": 9081711915040300000,
"line_mean": 32.8913043478,
"line_max": 70,
"alpha_frac": 0.6407953817,
"autogenerated": false,
"r... |
"""A setup module for the GAPIC Cloud Spanner Database Admin API library.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
from setuptools import setup, find_packages
import sys
install_requires = [
'google-gax>=0.15.7, <0.16dev',
'oauth2client>=2.0.0, <... | {
"repo_name": "pongad/api-client-staging",
"path": "generated/python/gapic-google-cloud-spanner-admin-database-v1/setup.py",
"copies": "7",
"size": "1678",
"license": "bsd-3-clause",
"hash": 7286386547895474000,
"line_mean": 34.7021276596,
"line_max": 75,
"alpha_frac": 0.6489868892,
"autogenerated"... |
"""A setup module for the GAPIC Cloud Spanner Instance Admin API library.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
from setuptools import setup, find_packages
import sys
install_requires = [
'google-gax>=0.15.7, <0.16dev',
'oauth2client>=2.0.0, <... | {
"repo_name": "googleapis/api-client-staging",
"path": "generated/python/gapic-google-cloud-spanner-admin-instance-v1/setup.py",
"copies": "7",
"size": "1678",
"license": "bsd-3-clause",
"hash": -8611177985433388000,
"line_mean": 34.7021276596,
"line_max": 75,
"alpha_frac": 0.6489868892,
"autogener... |
"""A setup module for the GAPIC Datastore library.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
from setuptools import setup, find_packages
import sys
install_requires = [
'googleapis-common-protos>=1.3.5, <2.0.0dev',
'google-gax>=0.14.1, <0.15.0dev'... | {
"repo_name": "michaelbausor/api-client-staging",
"path": "generated/python/gapic-google-datastore-v1/setup.py",
"copies": "2",
"size": "1524",
"license": "bsd-3-clause",
"hash": 2173300392086918000,
"line_mean": 33.6363636364,
"line_max": 106,
"alpha_frac": 0.6476377953,
"autogenerated": false,
... |
"""A setup module for the GAPIC DLP API library.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
from setuptools import setup, find_packages
import sys
install_requires = [
'google-gax>=0.15.7, <0.16dev',
'oauth2client>=2.0.0, <4.0dev',
'proto-googl... | {
"repo_name": "eoogbe/api-client-staging",
"path": "generated/python/gapic-google-cloud-dlp-v2beta1/setup.py",
"copies": "7",
"size": "1575",
"license": "bsd-3-clause",
"hash": 6655127846520566000,
"line_mean": 33.2391304348,
"line_max": 70,
"alpha_frac": 0.6406349206,
"autogenerated": false,
"ra... |
"""A setup module for the GAPIC Google Cloud Datastore API library.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
from setuptools import setup, find_packages
import sys
install_requires = [
'google-gax>=0.15.7, <0.16dev',
'oauth2client>=2.0.0, <4.0dev... | {
"repo_name": "googleapis/api-client-staging",
"path": "generated/python/gapic-google-cloud-datastore-v1/setup.py",
"copies": "7",
"size": "1582",
"license": "bsd-3-clause",
"hash": -6160567260167679000,
"line_mean": 33.3913043478,
"line_max": 70,
"alpha_frac": 0.6447534766,
"autogenerated": false,... |
"""A setup module for the GAPIC Google Cloud Functions API library.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
from setuptools import setup, find_packages
import sys
install_requires = [
'google-gax>=0.15.7, <0.16dev',
'oauth2client>=2.0.0, <4.0dev... | {
"repo_name": "eoogbe/api-client-staging",
"path": "generated/python/gapic-google-cloud-functions-v1beta2/setup.py",
"copies": "7",
"size": "1543",
"license": "bsd-3-clause",
"hash": -5573995399755826,
"line_mean": 34.8837209302,
"line_max": 76,
"alpha_frac": 0.6545690214,
"autogenerated": false,
... |
"""A setup module for the GAPIC Google Cloud Natural Language API library.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
from setuptools import setup, find_packages
import sys
install_requires = [
'google-gax>=0.15.7, <0.16dev',
'oauth2client>=2.0.0, ... | {
"repo_name": "shinfan/api-client-staging",
"path": "generated/python/gapic-google-cloud-language-v1beta2/setup.py",
"copies": "7",
"size": "1604",
"license": "bsd-3-clause",
"hash": -5341597621795642000,
"line_mean": 33.8695652174,
"line_max": 74,
"alpha_frac": 0.6483790524,
"autogenerated": false... |
"""A setup module for the GAPIC Google Cloud Pub/Sub API library.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
from setuptools import setup, find_packages
import sys
install_requires = [
'google-gax>=0.15.7, <0.16dev',
'oauth2client>=2.0.0, <4.0dev',... | {
"repo_name": "garrettjonesgoogle/api-client-staging",
"path": "generated/python/gapic-google-cloud-pubsub-v1/setup.py",
"copies": "7",
"size": "1614",
"license": "bsd-3-clause",
"hash": 861698761827902100,
"line_mean": 33.3404255319,
"line_max": 70,
"alpha_frac": 0.6387856258,
"autogenerated": fal... |
"""A setup module for the GAPIC Google Cloud Speech API library.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
from setuptools import setup, find_packages
import sys
install_requires = [
'google-gax>=0.15.7, <0.16dev',
'oauth2client>=2.0.0, <4.0dev',
... | {
"repo_name": "pongad/api-client-staging",
"path": "generated/python/gapic-google-cloud-speech-v1beta1/setup.py",
"copies": "7",
"size": "1578",
"license": "bsd-3-clause",
"hash": 7772377161766008000,
"line_mean": 33.3043478261,
"line_max": 70,
"alpha_frac": 0.6438529785,
"autogenerated": false,
... |
"""A setup module for the GAPIC Google Cloud Vision API library.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
from setuptools import setup, find_packages
import sys
install_requires = [
'google-gax>=0.15.7, <0.16dev',
'oauth2client>=2.0.0, <4.0dev',
... | {
"repo_name": "garrettjonesgoogle/api-client-staging",
"path": "generated/python/gapic-google-cloud-vision-v1/setup.py",
"copies": "7",
"size": "1567",
"license": "bsd-3-clause",
"hash": 1142480688599873500,
"line_mean": 33.0652173913,
"line_max": 70,
"alpha_frac": 0.6413529036,
"autogenerated": fa... |
"""A setup module for the GAPIC Google library.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
from setuptools import setup, find_packages
import sys
install_requires = [
'googleapis-common-protos>=1.3.5, <2.0.0dev',
'google-gax>=0.14.1, <0.15.0dev',
... | {
"repo_name": "ethanbao/api-client-staging-1",
"path": "generated/python/gapic-google-longrunning-v1/setup.py",
"copies": "1",
"size": "1433",
"license": "bsd-3-clause",
"hash": -1676079860708739300,
"line_mean": 32.3255813953,
"line_max": 74,
"alpha_frac": 0.6448011165,
"autogenerated": false,
"... |
"""A setup module for the GAPIC IAM Admin library.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
from setuptools import setup, find_packages
import sys
install_requires = [
'googleapis-common-protos>=1.3.4, <2.0.0',
'google-gax>=0.14.1, <0.15.0',
... | {
"repo_name": "geigerj/api-client-staging",
"path": "generated/python/gapic-google-iam-admin-v1/setup.py",
"copies": "2",
"size": "1556",
"license": "bsd-3-clause",
"hash": -1741879462868789800,
"line_mean": 33.5777777778,
"line_max": 106,
"alpha_frac": 0.6388174807,
"autogenerated": false,
"rati... |
"""A setup module for the GAPIC Language library.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
from setuptools import setup, find_packages
import sys
install_requires = [
'googleapis-common-protos>=1.3.5, <2.0.0dev',
'google-gax>=0.14.1, <0.15.0dev',... | {
"repo_name": "michaelbausor/api-client-staging",
"path": "generated/python/gapic-google-cloud-language-v1beta1/setup.py",
"copies": "3",
"size": "1541",
"license": "bsd-3-clause",
"hash": -3652107157672690700,
"line_mean": 34.0227272727,
"line_max": 105,
"alpha_frac": 0.6502271252,
"autogenerated"... |
"""A setup module for the GAPIC Logging library.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
from setuptools import setup, find_packages
import sys
install_requires = [
'googleapis-common-protos>=1.3.5, <2.0.0dev',
'google-gax>=0.14.1, <0.15.0dev',
... | {
"repo_name": "michaelbausor/api-client-staging",
"path": "generated/python/gapic-google-logging-v2/setup.py",
"copies": "3",
"size": "1519",
"license": "bsd-3-clause",
"hash": -1023580291421330600,
"line_mean": 33.5227272727,
"line_max": 104,
"alpha_frac": 0.646477946,
"autogenerated": false,
"r... |
"""A setup module for the GAPIC Monitoring library.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
from setuptools import setup, find_packages
import sys
install_requires = [
'googleapis-common-protos>=1.3.5, <2.0.0dev',
'google-gax>=0.14.1, <0.15.0dev... | {
"repo_name": "geigerj/api-client-staging",
"path": "generated/python/gapic-google-monitoring-v3/setup.py",
"copies": "3",
"size": "1534",
"license": "bsd-3-clause",
"hash": -1142565635741038000,
"line_mean": 33.8636363636,
"line_max": 107,
"alpha_frac": 0.649934811,
"autogenerated": false,
"rati... |
"""A setup module for the GAPIC Pubsub library.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
from setuptools import setup, find_packages
import sys
install_requires = [
'googleapis-common-protos>=1.3.5, <2.0.0dev',
'google-gax>=0.14.1, <0.15.0dev',
... | {
"repo_name": "geigerj/api-client-staging",
"path": "generated/python/gapic-google-pubsub-v1/setup.py",
"copies": "3",
"size": "1555",
"license": "bsd-3-clause",
"hash": -993074803955421300,
"line_mean": 33.5555555556,
"line_max": 103,
"alpha_frac": 0.6418006431,
"autogenerated": false,
"ratio": ... |
"""A setup module for the GAPIC Speech library.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
from setuptools import setup, find_packages
import sys
install_requires = [
'googleapis-common-protos>=1.3.5, <2.0.0dev',
'google-gax>=0.14.1, <0.15.0dev',
... | {
"repo_name": "geigerj/api-client-staging",
"path": "generated/python/gapic-google-cloud-speech-v1beta1/setup.py",
"copies": "3",
"size": "1531",
"license": "bsd-3-clause",
"hash": 6008346687626829000,
"line_mean": 33.7954545455,
"line_max": 103,
"alpha_frac": 0.6479425212,
"autogenerated": false,
... |
"""A setup module for the GAPIC Stackdriver Error Reporting API library.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
from setuptools import setup, find_packages
import sys
install_requires = [
'google-gax>=0.15.7, <0.16dev',
'oauth2client>=2.0.0, <4... | {
"repo_name": "googleapis/api-client-staging",
"path": "generated/python/gapic-google-cloud-error-reporting-v1beta1/setup.py",
"copies": "7",
"size": "1620",
"license": "bsd-3-clause",
"hash": 7864910325953694000,
"line_mean": 34.2173913043,
"line_max": 73,
"alpha_frac": 0.6518518519,
"autogenerate... |
"""A setup module for the GAPIC Stackdriver Error Reporting library.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
from setuptools import setup, find_packages
import sys
install_requires = [
'googleapis-common-protos>=1.3.5, <2.0.0dev',
'google-gax>=0... | {
"repo_name": "michaelbausor/api-client-staging",
"path": "generated/python/gapic-google-cloud-error-reporting-v1beta1/setup.py",
"copies": "1",
"size": "1592",
"license": "bsd-3-clause",
"hash": 2992842999381385000,
"line_mean": 35.1818181818,
"line_max": 111,
"alpha_frac": 0.6582914573,
"autogene... |
"""A setup module for the GAPIC Stackdriver Logging API library.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
from setuptools import setup, find_packages
import sys
install_requires = [
'google-gax>=0.15.7, <0.16dev',
'oauth2client>=2.0.0, <4.0dev',
... | {
"repo_name": "eoogbe/api-client-staging",
"path": "generated/python/gapic-google-cloud-logging-v2/setup.py",
"copies": "7",
"size": "1570",
"license": "bsd-3-clause",
"hash": -6923443676872770000,
"line_mean": 33.1304347826,
"line_max": 70,
"alpha_frac": 0.6433121019,
"autogenerated": false,
"ra... |
"""A setup module for the GAPIC Stackdriver Monitoring API library.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
from setuptools import setup, find_packages
import sys
install_requires = [
'google-gax>=0.15.7, <0.16dev',
'oauth2client>=2.0.0, <4.0dev... | {
"repo_name": "pongad/api-client-staging",
"path": "generated/python/gapic-google-cloud-monitoring-v3/setup.py",
"copies": "7",
"size": "1586",
"license": "bsd-3-clause",
"hash": -2383384144374626000,
"line_mean": 33.4782608696,
"line_max": 70,
"alpha_frac": 0.6469104666,
"autogenerated": false,
... |
"""A setup module for the GAPIC Stackdriver Trace API library.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
from setuptools import setup, find_packages
install_requires = [
'google-gax>=0.15.7, <0.16dev',
'googleapis-common-protos[grpc]>=1.5.2, <2.0d... | {
"repo_name": "tartavull/google-cloud-python",
"path": "trace/setup.py",
"copies": "2",
"size": "1492",
"license": "apache-2.0",
"hash": 4979035828460995000,
"line_mean": 32.9090909091,
"line_max": 70,
"alpha_frac": 0.6387399464,
"autogenerated": false,
"ratio": 3.825641025641026,
"config_test"... |
"""A setup module for the GAPIC Stackdriver Trace library.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
from setuptools import setup, find_packages
import sys
install_requires = [
'googleapis-common-protos>=1.3.5, <2.0.0dev',
'google-gax>=0.14.1, <0.... | {
"repo_name": "geigerj/api-client-staging",
"path": "generated/python/gapic-google-devtools-cloudtrace-v1/setup.py",
"copies": "9",
"size": "1549",
"license": "bsd-3-clause",
"hash": -1179220023614370800,
"line_mean": 34.2045454545,
"line_max": 102,
"alpha_frac": 0.6513879923,
"autogenerated": fals... |
"""A setup module for the GAPIC Vision library.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
from setuptools import setup, find_packages
import sys
install_requires = [
'googleapis-common-protos>=1.3.5, <2.0.0dev',
'google-gax>=0.14.1, <0.15.0dev',
... | {
"repo_name": "michaelbausor/api-client-staging",
"path": "generated/python/gapic-google-cloud-vision-v1/setup.py",
"copies": "3",
"size": "1521",
"license": "bsd-3-clause",
"hash": -3872981007164756000,
"line_mean": 33.5681818182,
"line_max": 103,
"alpha_frac": 0.6456278764,
"autogenerated": false... |
"""A setup module for the google apis common protos
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
import setuptools
from setuptools import setup, find_packages
install_requires = [
'protobuf>=3.0.0'
]
extras_require = {
'grpc': ['grpcio>=1.0.0']
}
setu... | {
"repo_name": "ethanbao/api-client-staging-1",
"path": "generated/python/googleapis-common-protos/setup.py",
"copies": "2",
"size": "1282",
"license": "bsd-3-clause",
"hash": 3472802512170907600,
"line_mean": 26.8695652174,
"line_max": 66,
"alpha_frac": 0.6879875195,
"autogenerated": false,
"rati... |
"""A setup module for the GRPC Cloud Spanner API service.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
import setuptools
from setuptools import setup, find_packages
install_requires = [
'googleapis-common-protos>=1.5.2, <2.0dev',
'oauth2client>=2.0.0, <... | {
"repo_name": "pongad/api-client-staging",
"path": "generated/python/proto-google-cloud-spanner-v1/setup.py",
"copies": "7",
"size": "1503",
"license": "bsd-3-clause",
"hash": -8283254453291140000,
"line_mean": 29.06,
"line_max": 100,
"alpha_frac": 0.6793080506,
"autogenerated": false,
"ratio": 3... |
"""A setup module for the GRPC Cloud Spanner Database Admin API service.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
import setuptools
from setuptools import setup, find_packages
install_requires = [
'googleapis-common-protos>=1.5.2, <2.0dev',
'oauth2c... | {
"repo_name": "pongad/api-client-staging",
"path": "generated/python/proto-google-cloud-spanner-admin-database-v1/setup.py",
"copies": "7",
"size": "1629",
"license": "bsd-3-clause",
"hash": -3882361953797961700,
"line_mean": 31.58,
"line_max": 181,
"alpha_frac": 0.6899938613,
"autogenerated": fals... |
"""A setup module for the GRPC Cloud Spanner Instance Admin API service.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
import setuptools
from setuptools import setup, find_packages
install_requires = [
'googleapis-common-protos>=1.5.2, <2.0dev',
'oauth2c... | {
"repo_name": "swcloud/api-client-staging",
"path": "generated/python/proto-google-cloud-spanner-admin-instance-v1/setup.py",
"copies": "7",
"size": "1629",
"license": "bsd-3-clause",
"hash": -7265288659098121000,
"line_mean": 31.58,
"line_max": 181,
"alpha_frac": 0.6899938613,
"autogenerated": fal... |
"""A setup module for the GRPC DLP API service.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
import setuptools
from setuptools import setup, find_packages
install_requires = [
'googleapis-common-protos>=1.5.2, <2.0dev',
'oauth2client>=2.0.0, <4.0dev',
]... | {
"repo_name": "shinfan/api-client-staging",
"path": "generated/python/proto-google-cloud-dlp-v2beta1/setup.py",
"copies": "7",
"size": "1518",
"license": "bsd-3-clause",
"hash": 1383008718159483400,
"line_mean": 29.36,
"line_max": 134,
"alpha_frac": 0.6785243742,
"autogenerated": false,
"ratio": ... |
"""A setup module for the GRPC google-bigtable service.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
import setuptools
from setuptools import setup, find_packages
install_requires = [
'oauth2client>=2.0.0, <4.0.0dev',
'grpcio>=1.0.0, <2.0.0dev',
'goog... | {
"repo_name": "pongad/api-client-staging",
"path": "generated/python/grpc-google-bigtable-v2/setup.py",
"copies": "9",
"size": "1340",
"license": "bsd-3-clause",
"hash": 8531675239363650000,
"line_mean": 30.1627906977,
"line_max": 66,
"alpha_frac": 0.6843283582,
"autogenerated": false,
"ratio": 3... |
"""A setup module for the GRPC Google Cloud Datastore API service.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
import setuptools
from setuptools import setup, find_packages
install_requires = [
'googleapis-common-protos>=1.5.2, <2.0dev',
'oauth2client>... | {
"repo_name": "garrettjonesgoogle/api-client-staging",
"path": "generated/python/proto-google-cloud-datastore-v1/setup.py",
"copies": "7",
"size": "1524",
"license": "bsd-3-clause",
"hash": 6101631680157536000,
"line_mean": 29.48,
"line_max": 102,
"alpha_frac": 0.6824146982,
"autogenerated": false,... |
"""A setup module for the GRPC Google Cloud Functions API service.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
import setuptools
from setuptools import setup, find_packages
install_requires = [
'googleapis-common-protos>=1.5.2, <2.0dev',
'oauth2client>... | {
"repo_name": "swcloud/api-client-staging",
"path": "generated/python/proto-google-cloud-functions-v1beta2/setup.py",
"copies": "7",
"size": "1530",
"license": "bsd-3-clause",
"hash": 388820057009883700,
"line_mean": 29.6,
"line_max": 102,
"alpha_frac": 0.6836601307,
"autogenerated": false,
"rati... |
"""A setup module for the GRPC google-cloud-language service.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
import setuptools
from setuptools import setup, find_packages
install_requires = [
'oauth2client>=2.0.0, <4.0.0dev',
'grpcio>=1.0.0, <2.0.0dev',
... | {
"repo_name": "michaelbausor/api-client-staging",
"path": "generated/python/grpc-google-cloud-language-v1beta1/setup.py",
"copies": "3",
"size": "1416",
"license": "bsd-3-clause",
"hash": 457350649328146000,
"line_mean": 31.9302325581,
"line_max": 101,
"alpha_frac": 0.6899717514,
"autogenerated": f... |
"""A setup module for the GRPC Google Cloud Natural Language API service.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
import setuptools
from setuptools import setup, find_packages
install_requires = [
'googleapis-common-protos>=1.5.2, <2.0dev',
'oauth2... | {
"repo_name": "swcloud/api-client-staging",
"path": "generated/python/proto-google-cloud-language-v1beta2/setup.py",
"copies": "7",
"size": "1542",
"license": "bsd-3-clause",
"hash": 3689337529660708400,
"line_mean": 29.84,
"line_max": 101,
"alpha_frac": 0.6848249027,
"autogenerated": false,
"rat... |
"""A setup module for the GRPC Google Cloud Pub/Sub API service.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
import setuptools
from setuptools import setup, find_packages
install_requires = [
'googleapis-common-protos>=1.5.2, <2.0dev',
'oauth2client>=2... | {
"repo_name": "eoogbe/api-client-staging",
"path": "generated/python/proto-google-cloud-pubsub-v1/setup.py",
"copies": "7",
"size": "1515",
"license": "bsd-3-clause",
"hash": 6693568408892501000,
"line_mean": 29.3,
"line_max": 99,
"alpha_frac": 0.6792079208,
"autogenerated": false,
"ratio": 3.506... |
"""A setup module for the GRPC Google Cloud Speech API service.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
import setuptools
from setuptools import setup, find_packages
install_requires = [
'googleapis-common-protos>=1.5.2, <2.0dev',
'oauth2client>=2.... | {
"repo_name": "pongad/api-client-staging",
"path": "generated/python/proto-google-cloud-speech-v1beta1/setup.py",
"copies": "7",
"size": "1518",
"license": "bsd-3-clause",
"hash": -1134717863775679700,
"line_mean": 29.36,
"line_max": 99,
"alpha_frac": 0.6811594203,
"autogenerated": false,
"ratio"... |
"""A setup module for the GRPC google-cloud-speech service.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
import setuptools
from setuptools import setup, find_packages
install_requires = [
'oauth2client>=2.0.0, <4.0.0dev',
'grpcio>=1.0.0, <2.0.0dev',
'... | {
"repo_name": "geigerj/api-client-staging",
"path": "generated/python/grpc-google-cloud-speech-v1beta1/setup.py",
"copies": "3",
"size": "1408",
"license": "bsd-3-clause",
"hash": -5700958066181123000,
"line_mean": 31.7441860465,
"line_max": 99,
"alpha_frac": 0.6882102273,
"autogenerated": false,
... |
"""A setup module for the GRPC Google Cloud Vision API service.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
import setuptools
from setuptools import setup, find_packages
install_requires = [
'googleapis-common-protos>=1.5.2, <2.0dev',
'oauth2client>=2.... | {
"repo_name": "shinfan/api-client-staging",
"path": "generated/python/proto-google-cloud-vision-v1/setup.py",
"copies": "7",
"size": "1512",
"license": "bsd-3-clause",
"hash": -5462191022179193000,
"line_mean": 29.24,
"line_max": 99,
"alpha_frac": 0.6798941799,
"autogenerated": false,
"ratio": 3.... |
"""A setup module for the GRPC google-cloud-vision service.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
import setuptools
from setuptools import setup, find_packages
install_requires = [
'oauth2client>=2.0.0, <4.0.0dev',
'grpcio>=1.0.0, <2.0.0dev',
'... | {
"repo_name": "michaelbausor/api-client-staging",
"path": "generated/python/grpc-google-cloud-vision-v1/setup.py",
"copies": "3",
"size": "1398",
"license": "bsd-3-clause",
"hash": -8434122823176921000,
"line_mean": 31.511627907,
"line_max": 99,
"alpha_frac": 0.6859799714,
"autogenerated": false,
... |
"""A setup module for the GRPC google-datastore service.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
import setuptools
from setuptools import setup, find_packages
install_requires = [
'oauth2client>=2.0.0, <4.0.0dev',
'grpcio>=1.0.0, <2.0.0dev',
'goo... | {
"repo_name": "geigerj/api-client-staging",
"path": "generated/python/grpc-google-datastore-v1/setup.py",
"copies": "2",
"size": "1344",
"license": "bsd-3-clause",
"hash": 4482317552393943600,
"line_mean": 30.2558139535,
"line_max": 66,
"alpha_frac": 0.6852678571,
"autogenerated": false,
"ratio":... |
"""A setup module for the GRPC google-devtools-cloudtrace service.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
import setuptools
from setuptools import setup, find_packages
install_requires = [
'oauth2client>=1.4.11',
'grpcio>=1.0.0',
'googleapis-com... | {
"repo_name": "ethanbao/api-client-staging-1",
"path": "generated/python/grpc-google-devtools-cloudtrace-v1/setup.py",
"copies": "1",
"size": "1194",
"license": "bsd-3-clause",
"hash": 3683011183866248000,
"line_mean": 29.6153846154,
"line_max": 83,
"alpha_frac": 0.7093802345,
"autogenerated": fals... |
"""A setup module for the GRPC google-iam-admin service.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
import setuptools
from setuptools import setup, find_packages
install_requires = [
'oauth2client>=1.4.11, <2.0.0',
'grpcio>=1.0.0, <2.0.0',
'googleap... | {
"repo_name": "ethanbao/api-client-staging-1",
"path": "generated/python/grpc-google-iam-admin-v1/setup.py",
"copies": "2",
"size": "1350",
"license": "bsd-3-clause",
"hash": 5754928018308395000,
"line_mean": 30.3953488372,
"line_max": 68,
"alpha_frac": 0.68,
"autogenerated": false,
"ratio": 3.53... |
"""A setup module for the GRPC google-iam service.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
import setuptools
from setuptools import setup, find_packages
install_requires = [
'grpcio>=1.0.0, <2.0.0dev',
'googleapis-common-protos[grpc]>=1.5.2, <2.0.0... | {
"repo_name": "pongad/api-client-staging",
"path": "generated/python/grpc-google-iam-v1/setup.py",
"copies": "2",
"size": "1284",
"license": "bsd-3-clause",
"hash": -7473457479642744000,
"line_mean": 29.5714285714,
"line_max": 66,
"alpha_frac": 0.6822429907,
"autogenerated": false,
"ratio": 3.647... |
"""A setup module for the GRPC google-logging service.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
import setuptools
from setuptools import setup, find_packages
install_requires = [
'oauth2client>=2.0.0, <4.0.0dev',
'grpcio>=1.0.0, <2.0.0dev',
'googl... | {
"repo_name": "michaelbausor/api-client-staging",
"path": "generated/python/grpc-google-logging-v2/setup.py",
"copies": "3",
"size": "1336",
"license": "bsd-3-clause",
"hash": 1506024306381504,
"line_mean": 30.0697674419,
"line_max": 66,
"alpha_frac": 0.6833832335,
"autogenerated": false,
"ratio"... |
"""A setup module for the GRPC google-monitoring service.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
import setuptools
from setuptools import setup, find_packages
install_requires = [
'oauth2client>=2.0.0, <4.0.0dev',
'grpcio>=1.0.0, <2.0.0dev',
'go... | {
"repo_name": "ethanbao/api-client-staging-1",
"path": "generated/python/grpc-google-monitoring-v3/setup.py",
"copies": "1",
"size": "1348",
"license": "bsd-3-clause",
"hash": 293291216804337900,
"line_mean": 30.3488372093,
"line_max": 66,
"alpha_frac": 0.6862017804,
"autogenerated": false,
"rati... |
"""A setup module for the GRPC google-pubsub service.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
import setuptools
from setuptools import setup, find_packages
install_requires = [
'oauth2client>=2.0.0, <4.0.0dev',
'grpcio>=1.0.0, <2.0.0dev',
'google... | {
"repo_name": "ethanbao/api-client-staging-1",
"path": "generated/python/grpc-google-pubsub-v1/setup.py",
"copies": "3",
"size": "1332",
"license": "bsd-3-clause",
"hash": -5689781425230723000,
"line_mean": 29.976744186,
"line_max": 66,
"alpha_frac": 0.6824324324,
"autogenerated": false,
"ratio":... |
"""A setup module for the GRPC packager service.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
import setuptools
from setuptools import setup, find_packages
install_requires = [
'oauth2client>=0.4.1, <0.5.0dev',
'grpcio>=0.15.0, <0.16.0dev',
'googleapi... | {
"repo_name": "googleapis/packman",
"path": "test/fixtures/python/setup.py",
"copies": "1",
"size": "1321",
"license": "apache-2.0",
"hash": 6511745982683458000,
"line_mean": 29.7209302326,
"line_max": 66,
"alpha_frac": 0.6820590462,
"autogenerated": false,
"ratio": 3.5510752688172045,
"config_... |
"""A setup module for the GRPC Stackdriver Error Reporting API service.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
import setuptools
from setuptools import setup, find_packages
install_requires = [
'googleapis-common-protos>=1.5.2, <2.0dev',
'oauth2cl... | {
"repo_name": "googleapis/api-client-staging",
"path": "generated/python/proto-google-cloud-error-reporting-v1beta1/setup.py",
"copies": "7",
"size": "1596",
"license": "bsd-3-clause",
"hash": 4459471351671020000,
"line_mean": 30.92,
"line_max": 152,
"alpha_frac": 0.6911027569,
"autogenerated": fal... |
"""A setup module for the GRPC Stackdriver Error Reporting service.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
import setuptools
from setuptools import setup, find_packages
install_requires = [
'oauth2client>=2.0.0, <4.0.0dev',
'grpcio>=1.0.0, <2.0.0d... | {
"repo_name": "geigerj/api-client-staging",
"path": "generated/python/grpc-google-devtools-clouderrorreporting-v1beta1/setup.py",
"copies": "1",
"size": "1425",
"license": "bsd-3-clause",
"hash": -9089221541376350000,
"line_mean": 32.1395348837,
"line_max": 92,
"alpha_frac": 0.6975438596,
"autogene... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.