repo_name stringlengths 5 92 | path stringlengths 4 232 | copies stringclasses 19
values | size stringlengths 4 7 | content stringlengths 721 1.04M | license stringclasses 15
values | hash int64 -9,223,277,421,539,062,000 9,223,102,107B | line_mean float64 6.51 99.9 | line_max int64 15 997 | alpha_frac float64 0.25 0.97 | autogenerated bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|
drankye/kerb-token | krb5/src/tests/t_skew.py | 1 | 2477 | #!/usr/bin/python
from k5test import *
# Create a realm with the KDC one hour in the past.
realm = K5Realm(start_kdc=False)
realm.start_kdc(['-T', '-3600'])
# kinit (no preauth) should work, and should set a clock skew allowing
# kvno to work, with or without FAST.
realm.kinit(realm.user_princ, password('user'))
real... | apache-2.0 | 3,318,160,882,515,889,000 | 41.706897 | 79 | 0.70973 | false |
xorpd/idsearch | idsearch/tests/test_func_iter.py | 1 | 2143 | import unittest
from idsearch.func_iter import FuncIter
class TestSearchDB(unittest.TestCase):
def test_basic(self):
my_iter = (i for i in range(5))
fiter = FuncIter(my_iter)
self.assertEqual(list(fiter), [0,1,2,3,4])
def test_map(self):
my_iter = (i for i in range(5))
... | gpl-3.0 | -1,785,624,968,993,354,800 | 31.469697 | 60 | 0.569295 | false |
martinhoefling/fretutils | lib/FRETUtils/Ensemble.py | 1 | 2936 | '''
Created on 24.06.2010
@author: mhoefli
'''
import random
import re
def readProbabilities(pbfile):
"""Reads in probabilities from a specific probability file, 1st colum is the regexp to match, 2nd the name and 3rd the probability in the ensemble"""
with open(pbfile) as pfh:
probabilities = []
... | bsd-3-clause | 5,670,931,972,478,937,000 | 30.913043 | 153 | 0.620913 | false |
jzmnd/fet-py-scripts | agilent4155_matlab_output_param.py | 1 | 3478 | #! /usr/bin/env python
"""
agilent4155_matlab_output_param.py
Prarmeter extractor for matlab generated .xlsx idvd files
Created by Jeremy Smith on 2015-10-29
University of California, Berkeley
j-smith@eecs.berkeley.edu
"""
import os
import sys
import xlrd
import numpy as np
import myfunctions as mf
from scipy import ... | mit | 7,935,849,942,573,224,000 | 29.508772 | 106 | 0.616734 | false |
embray/numpy | numpy/core/tests/test_indexing.py | 1 | 35320 | from __future__ import division, absolute_import, print_function
import sys
import warnings
import functools
import numpy as np
from numpy.core.multiarray_tests import array_indexing
from itertools import product
from numpy.testing import *
try:
cdll = np.ctypeslib.load_library('multiarray', np.core.multiarray.... | bsd-3-clause | 1,670,695,179,522,248,700 | 36.856377 | 95 | 0.526416 | false |
fcelda/cds-monitor | monitor.py | 1 | 2054 | #!/usr/bin/env python3
import logging
import sched
import time
import cdsmon.source
import cdsmon.fetch
import cdsmon.update
class Monitor:
def __init__(self, source, fetch, update):
self._source = source
self._fetch = fetch
self._update = update
self._next = 0
def exec(self)... | gpl-3.0 | -3,210,956,226,077,122,600 | 27.929577 | 93 | 0.615385 | false |
irvingprog/python-pilas-experimental | pilasengine/actores/bomba.py | 1 | 1122 | # -*- encoding: utf-8 -*-
# pilas engine: un motor para hacer videojuegos
#
# Copyright 2010-2014 - Hugo Ruscitti
# License: LGPLv3 (see http://www.gnu.org/licenses/lgpl.html)
#
# Website - http://www.pilas-engine.com.ar
from pilasengine.actores.animacion import Animacion
class Bomba(Animacion):
"""Representa un... | lgpl-3.0 | -1,777,256,028,047,224,600 | 30.055556 | 71 | 0.644902 | false |
Som-Energia/switching | switching/input/messages/B1.py | 1 | 3359 | # -*- coding: utf-8 -*-
from message import Message, except_f1
import C1, C2
class B1(Message):
"""Classe que implementa B1."""
@property
def sollicitud(self):
"""Retorna l'objecte Sollicitud"""
return C1.Sollicitud(self.obj.BajaEnergia.DatosSolicitud)
@property
def client(se... | gpl-3.0 | 3,862,654,646,224,733,000 | 26.768595 | 90 | 0.584102 | false |
Azure/azure-sdk-for-python | sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_05_01/operations/_virtual_network_gateways_operations.py | 1 | 131134 | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | mit | 6,869,906,415,822,150,000 | 51.812727 | 293 | 0.653217 | false |
ww9rivers/pysnmp | examples/v3arch/agent/ntforg/trap-v2c-with-objects.py | 1 | 3234 | #
# Notification Originator
#
# Send SNMP TRAP notification using the following options:
#
# * SNMPv2c
# * with community name 'public'
# * over IPv4/UDP
# * send TRAP notification
# * to a Manager at 127.0.0.1:162
# * with TRAP ID IF-MIB::ifLink as MIB symbol
#
# The IF-MIB::ifLink NOTIFICATION-TYPE implies including ... | bsd-2-clause | -1,604,053,862,149,648,000 | 30.096154 | 83 | 0.727891 | false |
huertatipografica/huertatipografica-fl-scripts | AT_Effects/AT-patternMaker.py | 1 | 3589 | #FLM: AT PatternMaker
###########################
#INSTRUCTIONS
# Create glyphs with patterns to apply to the font. Be sure the glyphs have the same
# sufix, point and consecutive 3 digit numbers starting from 001.
# Example: sufix.001, sufix.002, sufix.003, etc.
# Execute the script and enter the sufix for the gly... | apache-2.0 | 2,225,459,793,113,449,700 | 28.908333 | 136 | 0.687099 | false |
tedlaz/pyted | pymiles/pymiles.old/u_txt_num.py | 1 | 4761 | # -*- coding: utf-8 -*-
import decimal
from collections import OrderedDict
def isNum(value): # Einai to value arithmos, i den einai ?
""" use: Returns False if value is not a number , True otherwise
input parameters :
1.value : the value to check against.
output: True or ... | gpl-3.0 | 5,173,988,845,309,119,000 | 23.166667 | 76 | 0.531083 | false |
clearlinux/autospec | autospec/build.py | 1 | 13247 | #!/bin/true
#
# build.py - part of autospec
# Copyright (C) 2015 Intel Corporation
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any la... | gpl-3.0 | -6,898,562,381,102,616,000 | 40.012384 | 130 | 0.55673 | false |
connorbrinton/lcat | lcat/loading/annotations.py | 1 | 5671 | #!/usr/bin/env python
"""
BMI 260: Final Project
Load chest CT scan annotations from radiologist xml files.
"""
from collections import namedtuple
import os
import re
import xml.etree.ElementTree as ET
import numpy as np
import skimage
import skimage.measure
import skimage.segmentation
import lcat
# Nodule datatype... | gpl-3.0 | -7,819,591,577,144,248,000 | 28.082051 | 99 | 0.654911 | false |
google-research/graph-attribution | tests/test_training.py | 1 | 3709 | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | apache-2.0 | -2,763,162,494,523,120,600 | 42.127907 | 94 | 0.672418 | false |
jbpoline/nidm-results_fsl | nidmfsl/fsl_exporter/fsl_exporter.py | 1 | 44126 | """
Export neuroimaging results created with feat in FSL following NIDM-Results
specification.
@author: Camille Maumet <c.m.j.maumet@warwick.ac.uk>
@copyright: University of Warwick 2013-2014
"""
import re
import os
import sys
import glob
import json
import numpy as np
import subprocess
import warnings
# If "nidmres... | mit | 2,310,649,534,921,080,300 | 39.971216 | 83 | 0.498051 | false |
Antrek/NDNProject | docs/redmine_issue.py | 1 | 2560 | # -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
# Based on http://doughellmann.com/2010/05/09/defining-custom-roles-in-sphinx.html
"""Integration of Sphinx with Redmine.
"""
from docutils import nodes, utils
from docutils.parsers.rst.roles import set_classes
def redmine_role(name, ... | gpl-3.0 | -1,619,331,055,285,040,400 | 35.585714 | 94 | 0.647266 | false |
p-morais/rl | rl/algos/dagger.py | 1 | 2489 | """CURRENTLY OUTDATED. WILL UPDATE IN FUTURE"""
"""
import torch
from torch import Tensor
from torch.autograd import Variable as Var
from torch.utils.data import DataLoader
from rl.utils import ProgBar, RealtimePlot
from rl.envs import controller
class DAgger():
def __init__(self, env, learner, expert):
... | mit | 2,729,575,054,047,871,500 | 34.070423 | 81 | 0.532744 | false |
uwcirg/true_nth_usa_portal | portal/migrations/versions/7ad0da0d1b72_.py | 1 | 1909 | """empty message
Revision ID: 7ad0da0d1b72
Revises: af193c376724
Create Date: 2017-07-06 17:42:35.513647
"""
# revision identifiers, used by Alembic.
revision = '7ad0da0d1b72'
down_revision = 'af193c376724'
from alembic import op
import sqlalchemy as sa
def upgrade():
# ### commands auto generated by Alembic ... | bsd-3-clause | 2,077,013,238,323,017,500 | 30.295082 | 77 | 0.55736 | false |
googleapis/python-channel | google/cloud/channel_v1/services/cloud_channel_service/transports/base.py | 1 | 22245 | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | apache-2.0 | -669,878,659,928,609,400 | 33.488372 | 103 | 0.616768 | false |
nocarryr/plotly-system-stats | plotly_system_stats/plotting/plot_config.py | 1 | 1381 | import plotly.tools as pl_tools
from plotly_system_stats.config import config
def build_config():
d = {}
d = dict(
all_stream_ids=[],
streams={},
figures={},
plots={},
)
config.set('plotly', d)
if config.get('plotly') is None:
build_config()
class... | gpl-2.0 | -1,374,831,903,278,039,800 | 25.557692 | 66 | 0.55105 | false |
djfan/wifind | pipeline/v1.0/etl.py | 1 | 4488 | import csv
import configparser
import logging
from builtins import range
from carto.auth import APIKeyAuthClient
from carto.sql import SQLClient
from carto.sql import BatchSQLClient
logger = logging.getLogger('carto-etl')
config = configparser.RawConfigParser()
config.read("etl.conf")
CARTO_BASE_URL = config.get('... | mit | -6,131,026,039,456,346,000 | 38.368421 | 201 | 0.548797 | false |
evilhero/mylar | mylar/importer.py | 1 | 80815 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# This file is part of Mylar.
#
# Mylar is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later vers... | gpl-3.0 | -6,903,761,207,587,351,000 | 48.885802 | 298 | 0.531708 | false |
joshmoore/zeroc-ice | py/test/Ice/info/Client.py | 1 | 1142 | #!/usr/bin/env python
# **********************************************************************
#
# Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
#
# This copy of Ice is licensed to you under the terms described in the
# ICE_LICENSE file included in this distribution.
#
# *************************************... | gpl-2.0 | 3,822,398,164,370,931,000 | 23.826087 | 72 | 0.596322 | false |
google/ehr-predictions | ehr_prediction_modeling/utils/label_utils.py | 1 | 2694 | # coding=utf-8
# Copyright 2020 Google Health Research.
#
# 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 la... | apache-2.0 | -7,459,397,773,896,663,000 | 35.405405 | 79 | 0.720861 | false |
heromod/migrid | state/sss_home/MiG-SSS/mig_xsss.py | 1 | 1992 | #!/usr/bin/env python
import os
import time
MiG_DIR = "~/MiG-SSS"
G_XSCREENSAVER_COMMAND = "/usr/X11R6/bin/xscreensaver-command -watch"
G_GPIDFILE = "/tmp/mig_xsss_job.gpid"
# Returns Group ID of running job
def getRunningGPID( param_sGPIDFile ):
iGPID = -1
if ( os.path.isfile( param_sGPIDFile ) ):
input = o... | gpl-2.0 | 7,651,162,478,310,294,000 | 24.87013 | 105 | 0.63002 | false |
RPGroup-PBoC/gist_pboc_2017 | code/inclass/phase_portrait_in_class.py | 1 | 1286 | # Duhhhh
import numpy as np
import matplotlib.pyplot as plt
import seaborn
plt.close('all')
# Define the parameters
r = 20 # the production rate
gamma = 1 / 30 # the degradation rate
k = 200 # in units of concentration
max_R = 1000 # maximum number of R1 and R2
R1 = np.linspace(0, max_R, 500)
R2 = np.linspace(0, m... | mit | -3,922,817,809,920,688,000 | 21.172414 | 48 | 0.600311 | false |
lincolnloop/django-jsonit | jsonit/encoder.py | 1 | 2054 | import datetime
import json
from django.conf import settings
from django.contrib.messages.storage.base import Message
from django.utils.functional import Promise
from django.utils import six
def encode_message(message):
return {'class': message.tags, 'message': message.message}
class JsonitEncoder(json.JSONEnc... | bsd-3-clause | -6,261,254,148,897,235,000 | 33.813559 | 79 | 0.658228 | false |
stplaydog/OPTKIT | scripts/process_data_pattern.py | 1 | 3246 | #
# Copy right YMSys, 2015,2016 Zhaoming Yin
#
# @brief 1) This script do some sanity check of the data, and remove the
# corrupted data;
# 2) This script separate difffernt crime types.
#
# MODIFIED (MM/DD/YY)
# stplaydog 08/24/16 - Stats calculation
# stplaydog 08/06/16 - Additio... | gpl-3.0 | 7,054,453,880,571,916,000 | 29.914286 | 116 | 0.475354 | false |
FrontSide/Sizun | sizun/controllers/inspectors/inspection.py | 1 | 5266 |
"""
Sizun
MIT License
(C) 2015 David Rieger
"""
from abc import ABCMeta
from enum import IntEnum, unique
from sizun.controllers.aghandler import AGHandler
from sizun.controllers.pmdhandler import PMDHandler
from sizun.controllers.syntaxhandler import SyntaxHandler
from sizun.controllers.linegrabber import LineGrabber... | mit | 4,828,805,411,688,617,000 | 30.532934 | 118 | 0.627991 | false |
jellis18/emcee3 | emcee3/model.py | 1 | 1839 | # -*- coding: utf-8 -*-
from __future__ import division, print_function
__all__ = ["Model"]
import numpy as np
from .state import State
class Model(object):
def __init__(self, lnlikefn=None, lnpriorfn=None, args=tuple()):
if lnpriorfn is None:
lnpriorfn = _default_lnprior_function
... | mit | -4,614,568,854,339,946,000 | 27.292308 | 68 | 0.574769 | false |
dknlght/dkodi | src/script.module.urlresolver/lib/urlresolver/plugins/__generic_resolver__.py | 1 | 2035 | """
Plugin for URLResolver
Copyright (C) 2016 script.module.urlresolver
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) a... | gpl-2.0 | -373,994,545,689,759,040 | 34.701754 | 110 | 0.650123 | false |
geosohh/AnimeTorr | animetorr/shared/db.py | 1 | 18589 | # -*- coding: utf-8 -*-
"""
Anything related to the DB.
Includes the classes for Anime and Config.
"""
__author__ = 'Sohhla'
import re
import sqlite3
from log import LoggerManager
import constant
from strings import escape_unicode
class DBManager():
"""
Controls access to the SQLite DB.
DB is located at... | gpl-2.0 | 4,674,652,593,245,927,000 | 34.477099 | 179 | 0.55974 | false |
mgagne/nova | nova/tests/unit/virt/libvirt/fakelibvirt.py | 1 | 34902 | # Copyright 2010 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.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | apache-2.0 | 8,469,707,087,257,902,000 | 28.036606 | 78 | 0.577388 | false |
impredicative/gcam | src/__main__.py | 1 | 54173 | #!/usr/bin/env python3
# GPFS Current Activity Monitor
# Run with -h to print help and allowable arguments.
# See params.py for more customizations.
import argparse, collections, curses, datetime, functools, inspect
import itertools, locale, logging, signal, subprocess, sys, threading, time
# Local imports
import co... | agpl-3.0 | 6,257,922,069,138,471,000 | 38.312772 | 88 | 0.530799 | false |
Azure/azure-sdk-for-python | sdk/signalr/azure-mgmt-signalr/tests/test_cli_mgmt_signalr.py | 1 | 4604 | # coding: utf-8
#-------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#----------------------------------------------------------------------... | mit | 5,051,266,051,244,888,000 | 32.605839 | 153 | 0.544961 | false |
baroquebobcat/pants | contrib/node/tests/python/pants_test/contrib/node/tasks/test_node_bundle_integration.py | 1 | 5851 | # coding=utf-8
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)
import os
from conte... | apache-2.0 | 8,449,368,400,863,214,000 | 39.075342 | 96 | 0.70176 | false |
rp-/honstats | provider.py | 1 | 10448 | """
This file is part of honstats.
honstats is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
honstats is distributed in the hope that it wil... | gpl-3.0 | 140,861,126,853,115,950 | 34.178451 | 116 | 0.553025 | false |
ValyrianTech/BitcoinSpellbook-v0.3 | darwin/genome.py | 1 | 2090 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from darwin.chromosome import Chromosome
import hashlib
import binascii
import simplejson
class Genome(object):
def __init__(self):
self.chromosomes = {}
self.fitness = None
# def add_chromosome(self, chromosome):
# if not isinstance(chr... | gpl-3.0 | -4,451,533,938,911,407,600 | 32.174603 | 128 | 0.615311 | false |
sam-m888/gprime | gprime/plugins/lib/librecords.py | 1 | 20750 | # encoding:utf-8
#
# gPrime - A web-based genealogy program - Records plugin
#
# Copyright (C) 2008-2011 Reinhard Müller
# Copyright (C) 2010 Jakim Friant
# Copyright (C) 2013-2016 Paul Franklin
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public ... | gpl-2.0 | -3,168,658,341,514,602,000 | 41.002024 | 96 | 0.565521 | false |
diego-d5000/MisValesMd | env/lib/python2.7/site-packages/django/conf/locale/ca/formats.py | 1 | 1049 | # -*- encoding: utf-8 -*-
# This file is distributed under the same license as the Django package.
#
from __future__ import unicode_literals
# The *_FORMAT strings use the Django date format syntax,
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = r'j \d\e F \d\e Y'
TIME_FO... | mit | -3,880,304,409,747,797,500 | 29.787879 | 77 | 0.590086 | false |
MaxTyutyunnikov/lino | lino/management/commands/show.py | 1 | 1890 | # -*- coding: UTF-8 -*-
## Copyright 2013 Luc Saffre
## This file is part of the Lino project.
## Lino is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 3 of the License, or
## (at your op... | gpl-3.0 | -5,115,309,132,442,897,000 | 33.660377 | 81 | 0.621164 | false |
botswana-harvard/getresults-label | getresults_label/classes/client_printer.py | 1 | 1707 | import socket
from ..exceptions import LabelPrinterError
from ..models import Client, LabelPrinter
from .printer import Printer
class ClientPrinter(Printer):
"""Sets up the printer by selecting an instance of the
Client model for a given IP address.
Args:
* client_addr: ip_address or hostname. cl... | gpl-2.0 | 5,627,137,073,316,461,000 | 43.921053 | 98 | 0.629174 | false |
kernsuite-debian/obit | bin/obitinclude.py | 1 | 1077 | #!python
# Script to run gcc preprocessor on files whose name ends in "Def.h"
# or echo the file contents otherwise
# File name is only argument
import os, sys
# Routine to recursively read include
def parseInclude(lline):
fname = lline.split()[1].replace('"','')
infil = os.getenv("OBIT")+"include/"+fname
... | gpl-2.0 | -7,073,445,046,572,088,000 | 27.342105 | 74 | 0.615599 | false |
nvictus/23andCSB | apps/api/views.py | 1 | 3339 | from django.http import HttpResponse
from django.shortcuts import redirect
import json
import logging
log = logging.getLogger("apidemo")
# import our OAuth client
from . import client
# view decorator
def requires_login(view_fcn):
def wrapper(request, *args, **kwargs):
if client.OAUTH_KEY in request.sess... | bsd-2-clause | 5,066,159,913,403,948,000 | 33.42268 | 83 | 0.65289 | false |
pyload/pyload | src/pyload/plugins/base/xfs_account.py | 1 | 7673 | # -*- coding: utf-8 -*-
import locale
import re
import time
import urllib.parse
from pyload.core.utils import parse
from ..helpers import parse_html_form, set_cookie, search_pattern
from .account import BaseAccount
class XFSAccount(BaseAccount):
__name__ = "XFSAccount"
__type__ = "account"
__version__ ... | agpl-3.0 | 3,073,557,959,690,170,000 | 30.191057 | 119 | 0.512707 | false |
brianrogers/TCEmailConnector | main.py | 1 | 1540 | #!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | mit | -7,863,133,173,778,177,000 | 33.222222 | 125 | 0.632468 | false |
jakobkolb/MayaSim | mayasim/model/ModelCore.py | 1 | 66303 | from __future__ import print_function
import datetime
import operator
import os
import sys
import traceback
import warnings
from itertools import compress
import networkx as nx
import numpy as np
import pandas
import pkg_resources
import scipy.ndimage as ndimage
import scipy.sparse as sparse
try:
import cPickle ... | gpl-3.0 | 4,912,365,931,477,879,000 | 38.209344 | 101 | 0.523777 | false |
tapomayukh/projects_in_python | rapid_categorization/haptic_map/outlier/hmm_crossvalidation_force.py | 1 | 19066 | # Hidden Markov Model Implementation
import pylab as pyl
import numpy as np
import matplotlib.pyplot as pp
#from enthought.mayavi import mlab
import scipy as scp
import scipy.ndimage as ni
import roslib; roslib.load_manifest('sandbox_tapo_darpa_m3')
import rospy
#import hrl_lib.mayavi2_util as mu
import hrl_lib.viz ... | mit | 6,581,055,320,970,993,000 | 41.844944 | 133 | 0.48993 | false |
rwl/muntjac | muntjac/demo/sampler/features/embedded/ImageEmbed.py | 1 | 1210 |
from muntjac.demo.sampler.features.embedded.FlashEmbed import FlashEmbed
from muntjac.demo.sampler.APIResource import APIResource
from muntjac.demo.sampler.features.embedded.WebEmbed import WebEmbed
from muntjac.demo.sampler.Feature import Feature, Version
from muntjac.ui.embedded import Embedded
from muntjac.terminal... | apache-2.0 | 19,035,337,279,808,780 | 27.809524 | 75 | 0.722314 | false |
rksaxena/hacker_ramp | scoring.py | 1 | 2740 | import find_overlap
scores = {
'zara': 0.5,
'vogue': 0.5,
'google': 0.5
}
def find_keyword_occurences_in_source(map, source):
freq = 0
for key, value in map.iteritems():
for k, v in value.iteritems():
if v['source'] == source:
freq += 1
# print freq
ret... | apache-2.0 | 3,741,584,056,191,492,600 | 32.024096 | 90 | 0.587956 | false |
ryfeus/lambda-packs | pytorch/source/caffe2/python/transformations.py | 1 | 2103 | # Copyright (c) 2016-present, Facebook, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed... | mit | 2,730,161,065,556,882,400 | 31.859375 | 87 | 0.675226 | false |
Wengex/PyDirectory | pydirectory/activedirectory/objects/types.py | 1 | 3640 | from pydirectory.ldap.objects import types
class object(types.object):
_type = {}
class user(object):
_type = {
'objectClass' : [b'top', b'person', b'organizationalPerson', b'user']
}
@property
def is_enable(self):
mod = int(self.useraccountcontrol.value) % 8
if mod == 0:
return True
else:
return F... | gpl-2.0 | 3,301,856,316,181,458,400 | 25 | 110 | 0.698901 | false |
wsyzxcn/tornado | tornado/ioloop.py | 1 | 42597 | #!/usr/bin/env python
#
# Copyright 2009 Facebook
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | apache-2.0 | 2,620,420,939,369,841,000 | 37.61922 | 93 | 0.597272 | false |
shearichard/spellsplash | splsplsh_project/splsplsh_project/settings/HIDE_s_e_t_t_i_n_g_s.py | 1 | 2002 | """
Django settings for splsplsh_project project.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR... | gpl-3.0 | 7,098,006,736,481,004,000 | 23.414634 | 71 | 0.722278 | false |
cristian99garcia/agubrowser-activity | Modulos/Pantalla_Completa.py | 1 | 3372 | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
# Arma una pantalla completa con la ventana de AguBrowse
# Pantalla_Completa.py por:
# Agustin Zuiaga <aguszs97@gmail.com>
# Python Joven - Utu Rafael Peraza
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Ge... | gpl-2.0 | -8,409,454,308,710,824,000 | 33.060606 | 106 | 0.658956 | false |
dav-stott/phd-thesis | spectra_thesis_ais.py | 1 | 70177 | # -*- coding: utf-8 -*-
"""
Created on Fri Jul 25 08:48:28 2014
@author: david
"""
#*************** IMPORT DEPENDANCIES*******************************************
import numpy as np
#import spec_gdal4 as spg
from osgeo import gdal
import os
import csv
#import h5py
import datetime
import numpy.ma as ma
#from StringIO ... | mit | 2,521,095,999,925,145,000 | 38.961845 | 116 | 0.457732 | false |
fivezh/Keepgoing | py_spider/py_spider.py | 1 | 1520 | #!/bin/python
# -*- coding: utf-8 -*-
import urllib
import urllib2
import HTMLParser
import re
import urlparse
import threading
import ConfigParser
import argparse
import time
import logging
import sys
import logger
import config_load
import seedfile_load
import crawl_thread
if __name__ == "__main__":
logger.ini... | mit | 3,997,408,198,390,845,400 | 27.679245 | 80 | 0.665132 | false |
TheAlgorithms/Python | project_euler/problem_006/sol4.py | 1 | 1038 | """
Project Euler Problem 6: https://projecteuler.net/problem=6
Sum square difference
The sum of the squares of the first ten natural numbers is,
1^2 + 2^2 + ... + 10^2 = 385
The square of the sum of the first ten natural numbers is,
(1 + 2 + ... + 10)^2 = 55^2 = 3025
Hence the difference between the sum of... | mit | -9,040,634,359,307,308,000 | 24.317073 | 72 | 0.620424 | false |
awbirdsall/popmodel | src/popmodel/absprofile.py | 1 | 3828 | '''popmodel module for AbsProfile class
'''
from __future__ import division
from . import ohcalcs as oh
import logging
import numpy as np
from scipy.constants import k as kb
from scipy.constants import c
class AbsProfile(object):
'''absorbance line profile, initially defined in __init__ by a center
wavenumber... | mit | -1,456,483,203,360,930,300 | 38.061224 | 79 | 0.605799 | false |
jcrocholl/nxdom | tests/views.py | 1 | 2372 | from datetime import datetime, timedelta
from ragendja.template import render_to_response
from ragendja.dbutils import get_object_or_404
from tests.models import Comparison
def statistics(path):
results = {'path': path}
missing = []
seconds1 = []
seconds2 = []
total = errors = failures = 0
q... | mit | 6,682,742,311,232,221,000 | 33.376812 | 71 | 0.636172 | false |
omanor/MUSiCC | tests/test_musicc.py | 1 | 5038 | #!/usr/bin/env python
"""
This is the testing unit for MUSiCC
"""
# to comply with both Py2 and Py3
from __future__ import absolute_import, division, print_function
import unittest
import os
import pandas as pd
import musicc
from musicc.core import correct_and_normalize
class MUSiCCTestCase(unittest.TestCase):
... | bsd-3-clause | 6,936,621,393,585,861,000 | 53.76087 | 144 | 0.641921 | false |
aktech/codeplay | playcode/views.py | 1 | 1029 | from django.shortcuts import render
from django.http import HttpResponse, HttpResponseRedirect
from django.http import JsonResponse
import requests
# Constants
RUN_URL = u'https://api.hackerearth.com/v3/code/run/'
CLIENT_SECRET = 'cd70993ac2dbee9e7c7b2c533a104a7d621632fa'
def home(request):
if request.method ==... | mit | 249,148,959,412,249,570 | 30.181818 | 68 | 0.578231 | false |
inveniosoftware/invenio-pages | tests/test_rest.py | 1 | 1969 | from invenio_pages import InvenioPagesREST
from invenio_pages.rest import blueprint
# mock the rest API url prefix
blueprint.url_prefix = '/api/{}'.format(blueprint.url_prefix)
def test_page_content(pages_fixture):
"""Test page content."""
app = pages_fixture
app.register_blueprint(blueprint)
with a... | gpl-2.0 | 9,188,939,193,106,529,000 | 31.278689 | 68 | 0.499238 | false |
ATenderholt/cclib | doc/sphinx/coverage.py | 1 | 4455 | # -*- coding: utf-8 -*-
#
# Copyright (c) 2019, the cclib development team
#
# This file is part of cclib (http://cclib.github.io) and is distributed under
# the terms of the BSD 3-Clause License.
"""Generate the coverage.rst and coverage.rst files from test results."""
from __future__ import print_function
import o... | bsd-3-clause | -4,281,879,993,898,752,500 | 35.801653 | 96 | 0.592859 | false |
yookoala/ibus-cangjie | tests/test_cangjie.py | 1 | 12361 | # Copyright (c) 2013 - The IBus Cangjie authors
#
# This file is part of ibus-cangjie, the IBus Cangjie input method engine.
#
# ibus-cangjie is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of... | gpl-3.0 | -6,609,231,990,879,438,000 | 43.624549 | 79 | 0.673247 | false |
Wireless-Innovation-Forum/Spectrum-Access-System | src/harness/reference_models/geo/census_tract.py | 1 | 1899 | # Copyright 2018 SAS Project 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 requ... | apache-2.0 | 1,746,755,792,508,643,600 | 40.282609 | 99 | 0.7109 | false |
Wasper256/locallibrary | catalog/views.py | 1 | 6065 | """Main file that describes all of views."""
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import datetime
from django.contrib.auth.decorators import permission_required
from django.contrib.auth.mixins import (LoginRequiredMixin,
PermissionRequiredMixin)
from ... | gpl-3.0 | 3,097,310,997,405,115,000 | 29.943878 | 79 | 0.66249 | false |
lmazuel/azure-sdk-for-python | azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/virtual_machine_scale_set_update_network_configuration.py | 1 | 2800 | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | mit | 2,217,715,932,702,342,000 | 48.122807 | 125 | 0.671429 | false |
trilan/stencil | stencil/variables.py | 1 | 1115 | import os
from optparse import make_option
class Variable(object):
def __init__(self, name, default=None, environ=None, help=None,
metavar=None, prompt=None):
self.name = name
if environ:
self.default = os.environ.get(environ, default)
else:
self.d... | bsd-2-clause | 6,171,686,205,864,813,000 | 29.972222 | 75 | 0.552466 | false |
gchiam/gchiam_cc | gchiam_cc/config/settings.py | 1 | 13827 | # -*- coding: utf-8 -*-
"""
Django settings for gchiam_cc project.
For more information on this file, see
https://docs.djangoproject.com/en/dev/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/dev/ref/settings/
"""
# Build paths inside the project like this: os.p... | bsd-3-clause | 3,527,297,772,813,317,600 | 34.093909 | 119 | 0.639763 | false |
ubuntu-core/snapcraft | tests/unit/sources/test_base.py | 1 | 4911 | # -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*-
#
# Copyright (C) 2015-2018 Canonical Ltd
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3 as
# published by the Free Software Foundation.
#
# This program is distributed in ... | gpl-3.0 | 9,121,078,470,473,435,000 | 38.926829 | 87 | 0.677866 | false |
letuananh/visualkopasu | visko/tools.py | 1 | 13876 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Database setup script for VisualKopasu
"""
# This code is a part of visualkopasu (visko): https://github.com/letuananh/visualkopasu
# :copyright: (c) 2012 Le Tuan Anh <tuananh.ke@gmail.com>
# :license: GPLv3, see LICENSE for more details.
import sys
import os
import ... | gpl-3.0 | 4,573,911,064,198,840,300 | 42.498433 | 133 | 0.630657 | false |
admk/soap | tests/test_discoverer.py | 1 | 2076 | import unittest
from soap.context import context
from soap.datatype import float_type
from soap.expression import Variable
from soap.parser import parse
from soap.semantics.state.box import BoxState
from soap.semantics.state.meta import flow_to_meta_state
from soap.semantics.functions.arithmetic import arith_eval
from... | mit | -4,344,007,507,859,457,000 | 30.454545 | 61 | 0.547688 | false |
echonesis/mAiLab_Class | mAiLab_0002/RandomNumber.py | 1 | 1753 | #!/usr/bin/python
def simpleGenRandomNumber(n, llimit=0, ulimit=1):
import random
result = [random.uniform(llimit, ulimit) for i in xrange(n)]
return result
if __name__ == '__main__':
# For basic questions
# Basic #1
# In this part, the built-in Python functions would be used.
num_random =... | mit | 6,842,228,498,127,733,000 | 27.737705 | 100 | 0.64575 | false |
kinegratii/minesweeper | minesweeper/helpers.py | 1 | 1874 | # coding=utf8
"""
This module contains some hard-coding data for level map.
"""
from __future__ import unicode_literals
import random
from collections import OrderedDict
from core import Map
class GameHelpers(object):
@staticmethod
def create_from_mine_index_list(height, width, mine_index_list):
retu... | gpl-2.0 | 7,142,724,297,714,212,000 | 31.666667 | 97 | 0.669173 | false |
tensorflow/benchmarks | scripts/tf_cnn_benchmarks/allreduce_test.py | 1 | 19185 | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | -2,967,735,806,149,767,700 | 41.823661 | 80 | 0.523065 | false |
Akasurde/virt-manager | virtinst/devicedisk.py | 1 | 33899 | #
# Classes for building disk device xml
#
# Copyright 2006-2008, 2012-2014 Red Hat, Inc.
# Jeremy Katz <katzj@redhat.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of t... | gpl-2.0 | 6,410,544,415,410,951,000 | 32.39803 | 79 | 0.553291 | false |
Taffer/cryptopals | cryptopals/scoring.py | 1 | 3026 | # -*- coding: utf-8 -*-
''' Methods for scoring the relative goodness of strings.
Note that scores are relative to other scores *from the same method*.
Score from one method have no relation to scores from a different method.
Created on Feb 10, 2015
@author: Chris
'''
from __future__ import absolute_im... | mit | 5,847,930,100,003,295,000 | 29.852632 | 83 | 0.656642 | false |
MockyJoke/numbers | ex11/code/reddit_relative_hint.py | 1 | 1921 | import sys
from pyspark.sql import SparkSession, functions, types
spark = SparkSession.builder.appName('reddit relative scores').getOrCreate()
assert sys.version_info >= (3, 4) # make sure we have Python 3.4+
assert spark.version >= '2.1' # make sure we have Spark 2.1+
schema = types.StructType([ # commented-out fie... | mit | 8,161,441,920,440,513,000 | 40.76087 | 76 | 0.690265 | false |
steveYeah/amqpeek | tests/unit/cli/test_format_queues.py | 1 | 1706 | """Tests for the correct reading of the queue config."""
from copy import deepcopy
from amqpeek.cli import build_queue_data
class TestFormatQueues:
"""Tests parsing of queue config."""
def test_dedup_queue_config(self, config_data: dict) -> None:
"""Tests handling of duplicate config entries in diff... | mit | 3,850,180,313,175,439,400 | 31.807692 | 75 | 0.627198 | false |
rvianello/rdkit | rdkit/Chem/MCS.py | 5 | 17304 | # This work was funded by Roche and generously donated to the free
# and open source cheminformatics community.
import warnings
warnings.simplefilter('default', DeprecationWarning)
warnings.warn("The rdkit.Chem.MCS module is deprecated; please use rdkit.Chem.rdFMCS instead.",
DeprecationWarning,stacklevel... | bsd-3-clause | -4,654,737,956,135,602,000 | 43.713178 | 97 | 0.718793 | false |
Stefan-Korner/SpacePyLibrary | UTIL/BCH.py | 1 | 4660 | #******************************************************************************
# (C) 2018, Stefan Korner, Austria *
# *
# The Space Python Library is free software; you can redistribute it and/or *
... | mit | 9,777,268,574,965,220 | 47.041237 | 79 | 0.441845 | false |
UoA-eResearch/saga-gis | saga-gis/src/scripting/python/examples/06_xyz2shp.py | 1 | 2459 | #! /usr/bin/env python
import saga_api, sys, os
##########################################
def xyz2shp(fTable):
table = saga_api.SG_Get_Data_Manager().Add_Table()
if table.Create(saga_api.CSG_String(fTable)) == 0:
table.Add_Field(saga_api.CSG_String('X'), saga_api.SG_DATATYPE_Double)
table.A... | gpl-3.0 | -6,035,837,658,102,959,000 | 34.637681 | 133 | 0.537617 | false |
akrherz/iem | htdocs/plotting/auto/scripts100/p153.py | 1 | 6880 | """Highest hourly values"""
from collections import OrderedDict
import datetime
import pandas as pd
from pandas.io.sql import read_sql
from matplotlib.font_manager import FontProperties
from pyiem.util import get_autoplot_context, get_dbconn
from pyiem.plot.use_agg import plt
from pyiem.exceptions import NoDataFound
... | mit | -6,262,800,647,354,188,000 | 28.029536 | 76 | 0.5125 | false |
rahulsekar/iplytics | app/detl.py | 1 | 4587 | import requests
import json
import os.path
import csv
def master_csv():
return 'data/master.csv'
def download_scorecard(year, game, redo=False):
fname = 'data/extracts/%d-%02d.json' % (year, game)
if os.path.isfile(fname) and not redo:
return fname
url = 'http://datacdn.... | mit | -1,113,001,072,501,218,300 | 26.303571 | 117 | 0.514279 | false |
technige/py2neo | test/integration/test_node.py | 1 | 4417 | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
# Copyright 2011-2021, Nigel Small
#
# 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
#
# Unle... | apache-2.0 | 7,801,800,200,833,103,000 | 26.434783 | 84 | 0.618746 | false |
NilsJPWerner/Sublet-Uchicago | accounts/forms.py | 1 | 3140 | from django import forms
from .models import ExtendedUser
from allauth.account.forms import UserForm, PasswordField, SetPasswordField
from allauth.account import app_settings
from allauth.account.adapter import get_adapter
from allauth.account.models import EmailAddress
from allauth.account.utils import filter_users_b... | gpl-2.0 | 1,834,477,134,348,089,900 | 40.88 | 124 | 0.577707 | false |
karllark/dust_extinction | dust_extinction/helpers.py | 1 | 1863 | from __future__ import absolute_import, print_function, division
import warnings
import numpy as np
import astropy.units as u
__all__ = ["_get_x_in_wavenumbers", "_test_valid_x_range"]
def _get_x_in_wavenumbers(in_x):
"""
Convert input x to wavenumber given x has units.
Otherwise, assume x is in wavene... | bsd-3-clause | -973,880,790,089,943,900 | 26 | 79 | 0.595276 | false |
yugangw-msft/azure-cli | src/azure-cli/azure/cli/command_modules/security/_help.py | 2 | 39766 | # coding=utf-8
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -----------------------------------------------------... | mit | -4,440,880,175,984,025,600 | 39.371574 | 503 | 0.744832 | false |
ComputoCienciasUniandes/MetodosComputacionalesLaboratorio | 2017-1/lab8_EJ3/lab8SOL_eJ3/spring_mass.py | 1 | 1084 | import numpy as np
import matplotlib.pyplot as plt
N = 5000 #number of steps to take
xo = 0.2 #initial position in m
vo = 0.0 #initial velocity
tau = 4.0 #total time for the simulation in s .
dt = tau/float(N) # time step
k = 42.0 #spring constant in N/m
m = 0.25 #mass in kg
g = 9.8 #in m/ s ^2
mu = 0.15 #friction coe... | mit | -9,078,993,478,934,890,000 | 20.27451 | 61 | 0.631919 | false |
brabsmit/home-control | homecontrol/docs/conf.py | 1 | 9338 | # -*- coding: utf-8 -*-
#
# django-homecontrol documentation build configuration file, created by
# sphinx-quickstart on Fri Mar 13 17:28:03 2015.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated ... | mit | -3,928,595,788,817,941,500 | 31.423611 | 79 | 0.709681 | false |
leonevo/euao | BaseAdapter/BaseAdapter.py | 1 | 39358 | #-*- coding: utf-8 -*-
from optparse import OptionParser
import sys
import os
root_dir=os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
sys.path.append(root_dir)
import CommonDefinition
import subprocess, os, time, signal
import telnetlib
import paramiko
from os import linesep
import re
from tim... | apache-2.0 | 7,493,101,361,177,667,000 | 41.631929 | 217 | 0.530618 | false |
ximepa/docp | planning/migrations/0001_initial.py | 1 | 2739 | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'PlanningConnections'
db.create_table(u'planning_planningc... | gpl-3.0 | 8,479,388,373,723,343,000 | 48.818182 | 123 | 0.560058 | false |
jansel/gridea | network.py | 1 | 7182 | # encoding: utf-8
# Broadcast protocol used to build a distributed cluster of solver processes.
#
# This code uses the twisted event driven networking framework:
# http://twistedmatrix.com/documents/13.0.0/core/howto/servers.html
#
import json
import logging
import threading
import time
import twisted
from twisted.i... | mit | 5,373,871,410,311,807,000 | 33.528846 | 79 | 0.627123 | false |
helix84/activae | src/CTK_trunk/CTK/ToggleButton.py | 1 | 4484 | # -*- coding: utf-8 -*-
#
# Copyright (C) 2010 CENATIC: Centro Nacional de Referencia de
# Aplicacion de las TIC basadas en Fuentes Abiertas, Spain.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# Redistribution... | bsd-3-clause | -6,415,709,346,895,044,000 | 31.258993 | 80 | 0.617306 | false |
pocin/kbc-mailchimp-writer | tests/test_cleaning_tags.py | 1 | 2758 | import pytest
from mcwriter.exceptions import MissingFieldError, CleaningError
from mcwriter.cleaning import clean_and_validate_tags_data, _clean_tags_options
def test_cleaning_tags_minimal_example():
data = {
'name': 'My custom tag',
'list_id': 'abc01234',
'type': 'text',
}
expect... | mit | 103,546,474,157,596,140 | 22.982609 | 79 | 0.565265 | false |
common-workflow-language/cwltool | tests/test_udocker.py | 1 | 3095 | """Test optional udocker feature."""
import copy
import os
import subprocess
import sys
from pathlib import Path
import pytest
from _pytest.tmpdir import TempPathFactory
from .util import get_data, get_main_output, working_directory
LINUX = sys.platform in ("linux", "linux2")
@pytest.fixture(scope="session")
def u... | apache-2.0 | 5,282,559,012,136,588,000 | 30.907216 | 111 | 0.572213 | false |
tobias-d-oe/plugin.program.tvhighlights | default.py | 1 | 21271 | #!/usr/bin/python
###########################################################################
#
# FILE: plugin.program.tvhighlights/default.py
#
# AUTHOR: Tobias D. Oestreicher
#
# LICENSE: GPLv3 <http://www.gnu.org/licenses/gpl.txt>
# VERSION: 0.1.5
# CREATED: 05.02.2016
#
######... | gpl-3.0 | 1,174,358,839,341,263,600 | 41.037549 | 181 | 0.608669 | false |
radish-bdd/radish | src/radish/hookregistry.py | 1 | 12567 | """
radish
~~~~~~
The root from red to green. BDD tooling for Python.
:copyright: (c) 2019 by Timo Furrer <tuxtimo@gmail.com>
:license: MIT, see LICENSE for more details.
"""
import inspect
import bisect
import tagexpressions
from radish.errors import HookExecError
class HookImpl:
"""Represent a single Hook ... | mit | 3,404,934,900,386,662,000 | 34.4 | 111 | 0.505928 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.