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 |
|---|---|---|---|---|---|---|---|---|---|---|
maxmalysh/congenial-octo-adventure | report2/task2_compact.py | 1 | 2980 | import numpy as np
ITERATION_LIMIT = 1000
# initialize the matrix
A = np.array([[10., -1., 2., 0.],
[-1., 11., -1., 3.],
[2., -1., 10., -1.],
[0., 3., -1., 8.]])
A2 = np.array(
[[ 77., -23., -32., 0., 0.],
[-23., 53., 0., 0., -18.],
[-32.,... | unlicense | 4,159,153,501,352,646,700 | 25.616071 | 72 | 0.437584 | false |
alsoicode/django-maintenancemode | maintenancemode/middleware.py | 1 | 2247 | import re
from django.conf import settings
from django.contrib.sites.models import Site
from django.core import urlresolvers
from django.db.utils import DatabaseError
import django.conf.urls as urls
from maintenancemode.models import Maintenance, IgnoredURL
urls.handler503 = 'maintenancemode.views.defaults... | bsd-3-clause | 3,394,594,052,935,418,400 | 38.125 | 93 | 0.659991 | false |
abetkin/app-units | examples/dj/dj/settings.py | 1 | 2088 | """
Django settings for dj project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import ... | mit | -5,127,360,724,257,778,000 | 23.27907 | 71 | 0.719349 | false |
Ttl/scikit-rf | skrf/io/general.py | 3 | 22567 |
'''
.. module:: skrf.io.general
========================================
general (:mod:`skrf.io.general`)
========================================
General io functions for reading and writing skrf objects
.. autosummary::
:toctree: generated/
read
read_all
read_all_networks
write
write_all
... | bsd-3-clause | 6,781,361,543,470,911,000 | 29.089333 | 109 | 0.577347 | false |
owlabs/incubator-airflow | airflow/www_rbac/app.py | 1 | 12500 | # -*- coding: utf-8 -*-
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
#... | apache-2.0 | -2,300,563,895,249,644,500 | 40.254125 | 97 | 0.57592 | false |
vvtam/virtualenv | virtualenv.py | 1 | 100200 | #!/usr/bin/env python
"""Create a "virtual" Python installation"""
import base64
import sys
import os
import codecs
import optparse
import re
import shutil
import logging
import zlib
import errno
import glob
import distutils.sysconfig
import struct
import subprocess
from distutils.util import strtobool
__version__ = ... | mit | 8,873,541,175,533,266,000 | 40.924686 | 238 | 0.659651 | false |
gunan/tensorflow | tensorflow/python/framework/graph_util_test.py | 1 | 21542 | # Copyright 2015 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 | -4,882,040,189,363,117,000 | 40.586873 | 80 | 0.639541 | false |
brownplt/k3 | dj-plt-belay/pltbelay/models.py | 1 | 1096 | import belaylibs.models as bcap
from django.db import models
class BelayAccount(bcap.Grantable):
station_url = models.CharField(max_length=200)
class PendingLogin(bcap.Grantable):
# Key is for this server to trust the openID provider's request
key = models.CharField(max_length=36)
# ClientKey is a secret pro... | apache-2.0 | 2,200,626,802,297,134,300 | 32.212121 | 66 | 0.778285 | false |
DeppSRL/open_bilanci | bilanci_project/bilanci/management/commands/couch2pg.py | 1 | 27680 | from collections import OrderedDict
import logging
from optparse import make_option
from pprint import pprint
from os import listdir
from os.path import isfile, join
from django.conf import settings
from django.core.management import BaseCommand, call_command
from django.db import connection
from django.db.transaction ... | mit | 6,425,402,298,802,851,000 | 43.718901 | 156 | 0.571676 | false |
audreyr/cookiecutter | tests/test_specify_output_dir.py | 1 | 2352 | """Tests for cookiecutter's output directory customization feature."""
import pytest
from cookiecutter import main
@pytest.fixture
def context():
"""Fixture to return a valid context as known from a cookiecutter.json."""
return {
'cookiecutter': {
'email': 'raphael@hackebrot.de',
... | bsd-3-clause | 3,686,762,791,754,625,000 | 28.037037 | 83 | 0.679847 | false |
boooka/GeoPowerOff | venv/lib/python2.7/site-packages/test/grab_get_request.py | 1 | 1292 | # coding: utf-8
from unittest import TestCase
import os
from grab import Grab, GrabMisuseError
from .util import (GRAB_TRANSPORT, TMP_DIR,
ignore_transport, only_transport)
from .tornado_util import SERVER
from grab.extension import register_extensions
class GrabSimpleTestCase(TestCase):
def s... | apache-2.0 | -8,435,255,135,616,183,000 | 32.128205 | 69 | 0.652477 | false |
beetbox/audioread | audioread/rawread.py | 1 | 4378 | # This file is part of audioread.
# Copyright 2011, Adrian Sampson.
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, co... | mit | 6,935,302,251,535,896,000 | 27.802632 | 75 | 0.595021 | false |
rowinggolfer/openmolar2 | src/tests/class_tests/testTreatmentItem.py | 1 | 3699 | #! /usr/bin/env python
# -*- coding: utf-8 -*-
###############################################################################
## ##
## Copyright 2010-2012, Neil Wallace <neil@openmolar.com> ##
## ... | gpl-3.0 | 5,649,325,461,879,931,000 | 38.774194 | 79 | 0.47283 | false |
andrewgodwin/django-channels | channels/generic/http.py | 1 | 3131 | from channels.consumer import AsyncConsumer
from ..exceptions import StopConsumer
class AsyncHttpConsumer(AsyncConsumer):
"""
Async HTTP consumer. Provides basic primitives for building asynchronous
HTTP endpoints.
"""
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs... | bsd-3-clause | -8,351,045,490,236,470,000 | 33.032609 | 81 | 0.597253 | false |
CartoDB/cartoframes | cartoframes/viz/constants.py | 1 | 2813 | CARTO_VL_VERSION = 'v1.4'
CARTO_VL_DEV = '/dist/carto-vl.js'
CARTO_VL_URL = 'https://libs.cartocdn.com/carto-vl/{}/carto-vl.min.js'.format(CARTO_VL_VERSION)
AIRSHIP_VERSION = 'v2.3'
AIRSHIP_COMPONENTS_DEV = '/packages/components/dist/airship.js'
AIRSHIP_BRIDGE_DEV = '/packages/bridge/dist/asbridge.js'
AIRSHIP_MODULE_D... | bsd-3-clause | 5,031,585,193,760,696,000 | 23.042735 | 117 | 0.635265 | false |
novopl/fabutils | test/unit/fabutils/lint/test_is_pylint_compliant.py | 1 | 1958 | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from mock import patch, Mock
from pytest import raises, mark
from fabutils.lint import is_pylint_compliant
@patch('fabutils.lint.print', Mock())
@patch('fabutils.lint.infomsg', Mock())
def test_raises_ValueError_if_passed_iterable_is_actually_a_string():
... | mit | -7,350,630,813,657,264,000 | 26.577465 | 77 | 0.674157 | false |
nop33/indico-plugins | payment_paypal/tests/util_test.py | 1 | 1388 | # This file is part of Indico.
# Copyright (C) 2002 - 2017 European Organization for Nuclear Research (CERN).
#
# Indico 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 (a... | gpl-3.0 | -2,077,573,935,550,929,200 | 34.589744 | 78 | 0.692363 | false |
lbianch/nfl_elo | tests/test_inv_erf.py | 1 | 2693 | import unittest
import logging
import pickle
import inv_erf
from elo import probability_points as prob
logging.basicConfig(level=logging.INFO)
class TestInvErf(unittest.TestCase):
def setUp(self):
with open('random_state.pickle', 'rb') as f:
state = pickle.load(f)
inv_erf.random.sets... | mit | -6,879,620,005,380,825,000 | 36.929577 | 91 | 0.590048 | false |
google-research/google-research | learn_to_infer/run_ring.py | 1 | 10211 | # coding=utf-8
# Copyright 2021 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | apache-2.0 | 5,101,977,733,388,340,000 | 36.130909 | 89 | 0.641563 | false |
google-research/ssl_detection | third_party/tensorpack/tensorpack/tfutils/export.py | 1 | 6395 | # -*- coding: utf-8 -*-
# File: export.py
"""
A collection of functions to ease the process of exporting
a model for production.
"""
import tensorflow as tf
from tensorflow.python.framework import graph_util
from tensorflow.python.platform import gfile
from tensorflow.python.tools import optimize_for_inference_lib
... | apache-2.0 | 8,489,954,374,278,607,000 | 42.80137 | 122 | 0.616575 | false |
kefin/django-garage | garage/tests/slugify/tests.py | 1 | 8824 | # -*- coding: utf-8 -*-
"""
tests.slugify.tests
Tests for garage.slugify
* created: 2014-08-24 Kevin Chan <kefin@makedostudio.com>
* updated: 2015-02-23 kchan
"""
from __future__ import (absolute_import, unicode_literals)
from mock import Mock, patch, call
try:
from django.test import override_settings
except ... | bsd-3-clause | -3,521,196,795,077,406,000 | 33.904762 | 79 | 0.587881 | false |
mcolom/ipolDevel | tools/migrations/demoinfo_db_migration.py | 1 | 4289 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# GNU General Public Licence (GPL)
#
# 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 the License, or (at your option) any later
# v... | agpl-3.0 | 1,223,077,201,194,674,400 | 31.492424 | 91 | 0.615528 | false |
OSEHRA/VistA | Scripts/GitUtils.py | 1 | 9780 | #---------------------------------------------------------------------------
# Copyright 2013-2019 The Open Source Electronic Health Record Alliance
#
# 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 Licen... | apache-2.0 | -2,972,550,952,275,129,300 | 39.580913 | 130 | 0.630573 | false |
Azure/azure-sdk-for-python | sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_11_01/aio/operations/_load_balancer_backend_address_pools_operations.py | 1 | 8800 | # 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,371,308,267,858,528,000 | 48.438202 | 218 | 0.655114 | false |
bcaligari/mbox_defiler | filededup.py | 1 | 4945 | #!/usr/bin/env python3
# Copyright (c) 2017 Brendon Caligari <caligari@cypraea.co.uk>
# This file is released under GPL v3.0
import logging
import pathlib
import unfile
import json
class FileDedup(object):
"""Dedup existing files in a directory and add more unique files.
The directory is first scanned and d... | gpl-3.0 | -7,705,359,799,193,418,000 | 40.208333 | 103 | 0.575733 | false |
hack4impact/legal-checkup | app/api/forms.py | 1 | 1404 | from flask_wtf import Form
from wtforms.fields import (
BooleanField,
FieldList,
FormField,
SelectField,
SelectMultipleField,
SubmitField,
TextAreaField,
TextField
)
from wtforms.validators import InputRequired, Length
class ParameterForm(Form):
param_name = TextField('Parameter Nam... | mit | -5,709,190,334,332,081,000 | 40.294118 | 105 | 0.643162 | false |
edonyM/emthesis | code/3point2plane.py | 1 | 3545 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
r"""
# .---. .-----------
# / \ __ / ------
# / / \( )/ ----- (`-') _ _(`-') <-. (`-')_
# ////// '\/ ` --- ( OO).-/( (OO ).-> .-> \( OO) ) .->
# //// / // : : --- (,------... | mit | -4,273,530,887,346,554,400 | 32.130841 | 89 | 0.372073 | false |
openssbd/OpenSSBD | SSBD/BDML/views.py | 1 | 39099 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.http import HttpResponseRedirect
from django.http import HttpResponse
from django.core.urlresolvers import reverse
from django.core import serializers
fr... | gpl-3.0 | 288,396,403,755,675,300 | 43.993096 | 239 | 0.544234 | false |
UIKit0/friture | friture/octavespectrum.py | 1 | 9254 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) 2009 Timoth?Lecomte
# This file is part of Friture.
#
# Friture 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.
#
# Friture is distribu... | gpl-3.0 | 4,978,378,201,274,751,000 | 35.290196 | 160 | 0.596499 | false |
artekw/mqtt-panel | display.py | 1 | 2265 | import datetime
import time
from ht1632cpy import HT1632C
import settings
from lightsensor import getLight
interface = HT1632C(2, 0)
interface.pwm(settings.read('settings', 'matrix', 'default_brightness'))
def dimmer():
dimmer_brightness = settings.read('settings', 'matrix', 'dimmer_brightness')
default_br... | mit | 5,548,840,018,202,119,000 | 27.325 | 94 | 0.618985 | false |
Slko/Slot | slot/handlers/text_generation.py | 1 | 2447 | import asyncio
import random
from slot import requires
from slot.handlers import BaseHandler, MessageHandled, command, unhandled_messages
class PoemHandler(BaseHandler):
def generate_poem(self, start=None):
textgen = self.bot.extensions["textgen"]
rhyme = self.bot.extensions["rhyme"]
line... | bsd-3-clause | -6,882,219,567,834,149,000 | 30.881579 | 120 | 0.598019 | false |
fhqgfss/MoHa | moha/posthf/cc/ccsd.py | 1 | 9945 | import numpy as np
def spinfock(eorbitals):
"""
"""
if type(eorbitals) is np.ndarray:
dim = 2*len(eorbitals)
fs = np.zeros(dim)
for i in range(0,dim):
fs[i] = eorbitals[i//2]
fs = np.diag(fs) # put MO energies in diagonal array
elif type(eorbitals) is dict:
... | mit | 3,714,258,493,166,371,000 | 37.546512 | 102 | 0.519759 | false |
stxnext-kindergarten/presence-analyzer-dczuba | src/presence_analyzer/tests.py | 1 | 15917 | # -*- coding: utf-8 -*-
"""
Presence analyzer unit tests.
"""
import os.path
import json
import datetime
import unittest
from mock import patch
from random import randint
from presence_analyzer import main, views, utils, decorators, helpers
CURRENT_PATH = os.path.dirname(__file__)
TEST_DATA_CSV = os.path.join(
CU... | mit | -8,382,286,569,891,190,000 | 33.083512 | 79 | 0.591192 | false |
dennerlager/sepibrews | sepibrews/statemachine.py | 1 | 2712 | import logging
import logging.handlers
from multiprocessing import Queue
from execution_engine import ExecutionEngine
class StateMachine():
def __init__(self, brewView, tempControllerAddress, interfaceLock):
self.brewView = brewView
self.tempControllerAddress = tempControllerAddress
self.qT... | gpl-3.0 | 3,199,371,516,686,894,000 | 32.481481 | 81 | 0.574115 | false |
pswaminathan/t1-python | terminalone/models/placementslot.py | 1 | 3030 | # -*- coding: utf-8 -*-
"""Provides placement_slot object."""
from __future__ import absolute_import
from datetime import datetime
from .. import t1types
from ..entity import Entity
from ..vendor import six
def update_low_priority(original, candidate):
for item, value in six.iteritems(candidate):
if item... | apache-2.0 | -3,337,957,810,650,184,000 | 31.934783 | 77 | 0.546865 | false |
community-ssu/telepathy-gabble | tests/twisted/test-fallback-socks5-proxy.py | 1 | 13474 |
import socket
from gabbletest import (
exec_test, elem, elem_iq, sync_stream, make_presence, send_error_reply,
make_result_iq, sync_stream)
from servicetest import (
EventPattern, call_async, assertEquals, assertLength,
assertDoesNotContain)
from caps_helper import send_disco_reply
from bytestream imp... | lgpl-2.1 | 4,001,548,555,548,118,000 | 35.814208 | 102 | 0.66684 | false |
madprime/django_celery_fileprocess_example | django_celery_fileprocess_example/settings.py | 1 | 2311 | """
Django settings for django_celery_fileprocess_example 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.p... | apache-2.0 | -7,383,880,656,827,946,000 | 24.966292 | 79 | 0.727391 | false |
bdorney/CMS_GEM_Analysis_Framework | python/reparam1DObs2Gain.py | 1 | 3162 | import sys, os
from ROOT import gROOT, TClass, TFile, TH1F, TIter, TKey
if __name__ == "__main__":
#Import Options
from AnalysisOptions import *
from Utilities import getall, PARAMS_GAIN
#Specific Options
parser.add_option("--ident", type="string", dest="strIdent",
help="Substring within ... | gpl-3.0 | 4,429,647,154,765,510,700 | 34.133333 | 96 | 0.608476 | false |
txomon/SpockBot | spock/plugins/helpers/entities.py | 1 | 6342 | """
An entity tracker
"""
import logging
from spock.plugins.base import PluginBase
from spock.utils import Info, pl_announce
logger = logging.getLogger('spock')
class MCEntity(Info):
eid = 0
status = 0
nbt = None
class ClientPlayerEntity(MCEntity):
metadata = None
class MovementEntity(MCEntity):... | mit | -2,425,411,795,611,821,600 | 29.936585 | 70 | 0.584831 | false |
ohduran/CrowdFinanceInfographic | tests/test_basic.py | 1 | 2207 | """Test cases for the project."""
import sys
import unittest
# Import modules from sample
sys.path.insert(0, 'sample')
import core
import helpers
# Set up the data that we are using in tests.
data = helpers.open_json_as_dict('jsons/bigsample.json')
class BasicTest(unittest.TestCase):
"""Basic Test functionality... | mit | -7,129,107,591,919,053,000 | 38.410714 | 78 | 0.561849 | false |
chrisspen/django-feeds | djangofeeds/conf.py | 1 | 5159 | from datetime import timedelta
from django.conf import settings
try:
from celery import conf as celeryconf
DEFAULT_ROUTING_KEY = celeryconf.DEFAULT_ROUTING_KEY
except ImportError:
DEFAULT_ROUTING_KEY = "celery"
DEFAULT_DEFAULT_POST_LIMIT = 20
DEFAULT_NUM_POSTS = -1
DEFAULT_CACHE_MIN = 30
DEFAULT_ENTRY_WO... | bsd-2-clause | -471,363,245,432,641,150 | 29.347059 | 86 | 0.647606 | false |
wangyum/tensorflow | tensorflow/contrib/distributions/python/kernel_tests/bernoulli_test.py | 1 | 10847 | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | 3,666,041,075,142,069,000 | 35.156667 | 80 | 0.609754 | false |
quartzmo/gcloud-ruby | google-cloud-dialogflow/synth.py | 1 | 2614 | # Copyright 2018 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, s... | apache-2.0 | 2,215,669,220,090,041,600 | 32.512821 | 116 | 0.685157 | false |
pombredanne/PyGithub | github/RepositoryKey.py | 1 | 5564 | # -*- coding: utf-8 -*-
# ########################## Copyrights and license ############################
# #
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
# Copyright 2012 Zearin <zearin@gonk.net> ... | gpl-3.0 | -5,146,577,369,882,301,000 | 40.522388 | 116 | 0.516894 | false |
leiferikb/bitpop | build/third_party/buildbot_8_4p1/buildbot/config.py | 2 | 4429 | # This file is part of Buildbot. Buildbot 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, version 2.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without eve... | gpl-3.0 | -5,187,915,017,246,403,000 | 33.333333 | 79 | 0.600587 | false |
updownlife/multipleK | src/select_sub.py | 1 | 3215 | import random
def sequentialy(qset):
rset = []
for i in range(0, len(qset)):
rset.append(qset[i])
return rset
def randomly(_qset):
qset = list(_qset)
rset = []
while qset:
sel = random.choice(qset)
rset.append(sel)
qset.remove(sel)
return rset
def fullBFS(qset):
if l... | gpl-2.0 | 5,703,938,021,751,284,000 | 20.013072 | 64 | 0.553033 | false |
BeagleInc/PyReadableDiff | setup.py | 1 | 1652 | import setuptools
import pydiff
NAME = 'PyReadableDiff'
DESCRIPTION = 'Intuitive human-readable diff for text'
# Use .rst markup for the long description in order to provide
# the link to the repository, since PyPI doesn't support .md markup,
# so we can't use the content of README.md for this purpose.
LONG_DESCRI... | apache-2.0 | 2,248,738,196,769,096,400 | 27.982456 | 78 | 0.671308 | false |
upcFrost/SDR2_translate | rpErrorHandler.py | 1 | 26686 | #------------------------------------------------------------------------------#
# #
# Run-time error handler for Rapyd projects #
# ... | gpl-3.0 | -1,601,429,762,813,613,000 | 42.39187 | 117 | 0.539871 | false |
sbinet-staging/pyrame | chkpyr/chkpyr.py | 1 | 1163 | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
#
# Copyright 2012-2015 Frédéric Magniette, Miguel Rubio-Roy
# This file is part of Pyrame.
#
# Pyrame is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, ei... | lgpl-3.0 | -3,458,277,395,945,562,000 | 27.317073 | 77 | 0.724376 | false |
lbouma/Cyclopath | pyserver/util_/strutil.py | 1 | 4807 | # Copyright (c) 2006-2013 Regents of the University of Minnesota.
# For licensing terms, see the file LICENSE.
# MAC_RE = re.compile(r'^(mc|mac|de|van)(.)(.*)')
#
# def capitalize_surname(name):
# '''Return a semi-intelligently capitalized version of name.'''
# name = name.lower()
# # capitalize letter after... | apache-2.0 | -3,592,574,386,759,142,400 | 23.155779 | 104 | 0.59871 | false |
Arundhatii/erpnext | erpnext/buying/doctype/request_for_quotation/request_for_quotation.py | 1 | 12193 | # -*- coding: utf-8 -*-
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe, json
from frappe import _
from frappe.model.mapper import get_mapped_doc
from frappe.utils import get_url, cint
from frap... | gpl-3.0 | 6,958,179,286,313,263,000 | 35.28869 | 204 | 0.700238 | false |
becomejapan/yahooads-python-lib | examples/RetargetingListService/RetargetingListService_mutate_SET.py | 1 | 11527 | # Copyright 2017 Become Corp. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | apache-2.0 | 6,747,473,012,270,576,000 | 29.018229 | 151 | 0.452937 | false |
Jumpscale/core9 | setup.py | 1 | 2646 | from setuptools import setup, find_packages
from distutils.sysconfig import get_python_lib
from setuptools.command.install import install as _install
from setuptools.command.develop import develop as _develop
import os
def _post_install(libname, libpath):
from JumpScale9 import j # here its still the boostrap Ju... | apache-2.0 | 2,619,547,504,338,792,000 | 26 | 100 | 0.592215 | false |
skirsdeda/djangocms-blog | djangocms_blog/cms_toolbars.py | 1 | 3587 | # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
from cms.toolbar_base import CMSToolbar
from cms.toolbar_pool import toolbar_pool
from cms.utils.urlutils import admin_reverse
from django.core.urlresolvers import reverse
from django.utils.translation import override, uge... | bsd-3-clause | 7,367,875,757,228,863,000 | 48.819444 | 117 | 0.618344 | false |
Guts/DicoGIS | dicogis/georeaders/Infos_DXF.py | 1 | 8858 | #! python3 # noqa: E265
# ----------------------------------------------------------------------------
# Name: Infos DXF
# Purpose: Use GDAL/OGR and dxfgrabber to read AutoCAD exchanges file format.
#
# Author: Julien Moura (https://github.com/Guts/)
#
# -------------------------------------------... | gpl-3.0 | -2,622,093,644,684,382,700 | 35.155102 | 82 | 0.546963 | false |
Ex-sabagostar/atom-shell | script/lib/util.py | 1 | 2645 | #!/usr/bin/env python
import atexit
import contextlib
import errno
import shutil
import subprocess
import sys
import tarfile
import tempfile
import urllib2
import os
import zipfile
def tempdir(prefix=''):
directory = tempfile.mkdtemp(prefix=prefix)
atexit.register(shutil.rmtree, directory)
return directory
@... | mit | 5,613,780,633,471,564,000 | 20.680328 | 75 | 0.647637 | false |
jasonz93/python-tordatahub | tordatahub/tests/blob/blob_topic_sub.py | 1 | 3267 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License... | apache-2.0 | 311,997,725,223,724,900 | 34.51087 | 96 | 0.651668 | false |
elbeardmorez/quodlibet | quodlibet/tests/test_qltk_info.py | 1 | 1263 | # -*- coding: utf-8 -*-
# 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 the License, or
# (at your option) any later version.
import os
from quodlibet import app
from tests... | gpl-2.0 | 839,891,485,500,743,700 | 26.456522 | 72 | 0.673793 | false |
mclarkelauer/AndroidAnalyzer | log.py | 1 | 1320 | __author__ = 'Matt Clarke-Lauer'
__email__ = 'matt@clarkelauer.com'
__credits__ = ['Matt Clarke-Lauer']
__date__ = 7 / 1 / 13
__version__ = '0.1'
__status__ = 'Development'
from datetime import datetime
import os,sys,profile,traceback
import pickle
import inspect
logString = "[DexScope:"
logLevel = {
0:{"Type":... | bsd-3-clause | -860,799,496,070,189,000 | 23.444444 | 116 | 0.621212 | false |
oneonestar/CloudStorage | src/client/rsa.py | 1 | 3905 | """
Load RSA keys for encryption/decryption/sign/verify.
"""
from ldap3 import *
import json
import base64
import log
from cryptography import x509
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives.asymmetric import rsa, padding
from cryptography.hazmat.primitives.serializatio... | gpl-3.0 | 7,988,215,588,631,458,000 | 31.815126 | 98 | 0.626633 | false |
dkopecek/amplify | third-party/quex-0.65.2/quex/engine/analyzer/state/drop_out.py | 1 | 1840 | from quex.engine.analyzer.commands.core import CommandList, \
IfPreContextSetPositionAndGoto
def get_CommandList(TheAccepter, TheTerminalRouter):
"""If there is no stored acceptance involved, then one can directly
conclude from the pre-contexts to the acceptan... | gpl-2.0 | -5,333,320,043,203,639,000 | 41.790698 | 83 | 0.65 | false |
cslarsen/wpm | wpm/record.py | 1 | 1397 | # -*- encoding: utf-8 -*-
"""
This file is part of the wpm software.
Copyright 2017, 2018 Christian Stigen Larsen
Distributed under the GNU Affero General Public License (AGPL) v3 or later. See
the file LICENSE.txt for the full license text. This software makes use of open
source software.
The quotes database is *no... | agpl-3.0 | 5,263,892,724,204,249,000 | 26.94 | 79 | 0.636364 | false |
tdjordan/tortoisegit | gitgtk/backout.py | 1 | 4443 | #
# backout.py - TortoiseHg's dialog for backing out changeset
#
# Copyright (C) 2008 Steve Borho <steve@borho.org>
# Copyright (C) 2007 TK Soh <teekaysoh@gmail.com>
#
import os
import sys
import gtk
import pango
from dialog import *
from hgcmd import CmdDialog
import histselect
class BackoutDialog(gtk.Window):
"... | gpl-2.0 | 521,526,216,457,904,060 | 33.44186 | 77 | 0.586766 | false |
haarcuba/testix | setup.py | 1 | 1689 | import setuptools
from distutils.core import setup
LONG_DESCRIPTION =\
"""
Testix is a Mocking framework for Python, meant to be used with [pytest](https://docs.pytest.org/en/latest/).
read the full docs at the [project's homepage](https://github.com/haarcuba/testix).
Testix is special because it allows you to specif... | mit | 7,304,769,653,540,143,000 | 32.78 | 109 | 0.675548 | false |
jan25/code_sorted | adventofcode/2020/4/2.py | 1 | 2176 |
passports, lines = [], []
while True:
try:
line = input().strip()
if line == "":
passports.append(' '.join(lines))
lines = []
else:
lines.append(line)
except Exception:
if lines:
passports.append(' '.join(lines))
break
'''... | unlicense | -457,575,433,495,296,060 | 29.661972 | 76 | 0.568474 | false |
Duality4Y/py-bool-logic | LogicTests.py | 1 | 19036 |
import baseLogic as logic
from LogicUtils import itot
from LogicUtils import ttoi
from LogicUtils import getRandomInts
from LogicUtils import invertTuple
from LogicUtils import states
from LogicUtils import appendTuple
def checkNot(logic):
state1 = logic(0)
state2 = logic(1)
print("0 : %d" % (state1))
... | gpl-2.0 | 7,347,099,429,959,772,000 | 27.118168 | 77 | 0.563774 | false |
tanghaibao/jcvi | jcvi/annotation/stats.py | 1 | 12645 | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
Collect gene statistics based on gff file:
Exon length, Intron length, Gene length, Exon count
"""
import os.path as op
import sys
import logging
from jcvi.utils.cbook import SummaryStats, percentage, human_size
from jcvi.utils.range import range_interleave
from jcvi.... | bsd-2-clause | 5,609,852,184,259,907,000 | 31.844156 | 88 | 0.573507 | false |
globocom/tapioca | tests/acceptance/test_rest_api.py | 1 | 13821 | import re
import logging
from json import loads, dumps
from xml.etree import ElementTree
from unittest import TestCase
import tornado.web
from tornado.testing import AsyncHTTPTestCase
from tapioca import TornadoRESTful, ResourceHandler, \
ResourceDoesNotExist, JsonEncoder, JsonpEncoder, HtmlEncoder
from test... | mit | -1,293,191,428,093,595,100 | 41.526154 | 172 | 0.638159 | false |
skidekeersmaecker/raspi-cursus | labo4/mqtt.py | 1 | 2464 | import RPi.GPIO as GPIO
import paho.mqtt.client as mqtt
import time
GPIO.setmode(GPIO.BOARD)
#leds
ledKitchen = 16
ledLivingroom = 18
GPIO.setup(ledKitchen, GPIO.OUT)
GPIO.output(ledKitchen, False)
GPIO.setup(ledLivingroom, GPIO.OUT)
GPIO.output(ledLivingroom, False)
#buttons
buttonMaster = 11
buttonKitchen = 13
but... | mit | 8,725,125,909,546,020,000 | 29.419753 | 96 | 0.689529 | false |
andrei4ka/fuel-web-redhat | nailgun/nailgun/objects/serializers/release.py | 1 | 1707 | # -*- coding: utf-8 -*-
# Copyright 2013 Mirantis, 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 requi... | apache-2.0 | 8,583,087,739,334,395,000 | 28.431034 | 78 | 0.650264 | false |
quesnel/pyvle | src/pyvle.py | 1 | 16780 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# File: pyvle.py
# Author: The VLE Development Team.
# Brief: Python wrapper of VLE
#
# VLE Environment - the multimodeling and simulation environment
# This file is a part of the VLE environment (http://vle-project.org)
# Copyright (C) 2003 - 2017 The VLE Development ... | gpl-3.0 | -6,933,170,966,559,748,000 | 31.393822 | 87 | 0.638796 | false |
wentixiaogege/newt-2.0 | store/views.py | 1 | 2855 | from newt.views import AuthJSONRestView
from common.response import json_response
from django.conf import settings
import json
from importlib import import_module
store_adapter = import_module(settings.NEWT_CONFIG['ADAPTERS']['STORES']['adapter'])
import logging
logger = logging.getLogger("newt." + __name__)
# /ap... | bsd-2-clause | -4,546,405,815,730,923,500 | 38.666667 | 93 | 0.670053 | false |
nschank/latexml | stringutil.py | 1 | 2656 | # import re
# COMMENT_PATERN = re.compile("([^\\\\])%.*($)", flags=re.MULTILINE)
# REDACT = "%"
# COMMENT_REPLACE = "\\1{}\\2".format(REDACT)
# def strip_comments(document_contents):
# return COMMENT_PATERN.sub(COMMENT_REPLACE, document_contents)
import strip_comments
def strip_latex_comments(document_contents):
... | mit | 2,413,618,694,096,714,000 | 29.181818 | 80 | 0.518449 | false |
commtrack/commtrack-old-to-del | apps/reports/custom/grameen.py | 1 | 7030 | #!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4
import inspect
from django.template.loader import render_to_string
from django.db import connection
import settings
from xformmanager.models import Metadata, FormDefModel, ElementDefModel
from reports.models import Case, SqlReport
from reports.util import get_where... | bsd-3-clause | -1,309,282,711,300,028,700 | 46.5 | 116 | 0.644381 | false |
klebercode/econordeste | econordeste/event/urls.py | 1 | 1067 | # coding: utf-8
from django.conf.urls import patterns, url
from econordeste.event.views import (CalendarYearArchiveView,
CalendarMonthArchiveView,
CalendarDayArchiveView,
CalendarListView,
... | mit | -6,329,672,368,472,672,000 | 40.038462 | 75 | 0.54358 | false |
chfoo/wpull | wpull/scraper/util.py | 1 | 6973 | '''Misc functions.'''
import functools
import gettext
import itertools
import logging
import mimetypes
import re
import string
import wpull.url
from wpull.backport.logging import BraceMessage as __
from wpull.pipeline.item import LinkType
_ = gettext.gettext
_logger = logging.getLogger(__name__)
def parse_refresh(... | gpl-3.0 | -2,034,855,246,780,875,500 | 27.797521 | 110 | 0.587028 | false |
leekchan/tornado_test | tornado/test/httpserver_test.py | 1 | 39635 | #!/usr/bin/env python
from __future__ import absolute_import, division, print_function, with_statement
from tornado import netutil
from tornado.escape import json_decode, json_encode, utf8, _unicode, recursive_unicode, native_str
from tornado import gen
from tornado.http1connection import HTTP1Connection
from tornado... | apache-2.0 | -6,279,619,311,202,094,000 | 36.497635 | 110 | 0.599546 | false |
jeremiahyan/odoo | odoo/tools/template_inheritance.py | 1 | 9597 |
from lxml import etree
from lxml.builder import E
import copy
import itertools
import logging
from odoo.tools.translate import _
from odoo.tools import SKIPPED_ELEMENT_TYPES, html_escape
_logger = logging.getLogger(__name__)
def add_text_before(node, text):
""" Add text before ``node`` in its XML tree. """
... | gpl-3.0 | 2,848,593,791,806,002,000 | 39.323529 | 106 | 0.51068 | false |
UMWRG/PywrApp | tests/test_nodes_edges.py | 1 | 1490 | """
The unit tests in this module test the internal behaviour of the Pywr-Hydra application.
"""
from hydra_pywr.importer import PywrHydraImporter
import pytest
import json
@pytest.fixture()
def pywr_nodes_edges():
""" Example node and edge data from Pywr.
This data looks like "nodes" and "edges" section of... | gpl-3.0 | -2,707,433,787,708,751,400 | 24.254237 | 88 | 0.53557 | false |
dingzg/onepanel | bin/install_config.py | 1 | 3571 | #!/usr/bin/env python2.6
#-*- coding: utf-8 -*-
# Copyright [OnePanel]
#
# 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 b... | apache-2.0 | -6,886,681,214,839,713,000 | 36.208333 | 86 | 0.602352 | false |
Eric89GXL/vispy | vispy/util/fonts/tests/test_font.py | 1 | 1301 | # -*- coding: utf-8 -*-
# Copyright (c) Vispy Development Team. All Rights Reserved.
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
import numpy as np
import warnings
from vispy.testing import assert_in, run_tests_if_main
from vispy.util.fonts import list_fonts, _load_glyph, _vispy_fonts
im... | bsd-3-clause | -699,862,398,090,827,600 | 28.568182 | 73 | 0.654881 | false |
yenliangl/bitcoin | test/functional/test_runner.py | 1 | 26026 | #!/usr/bin/env python3
# Copyright (c) 2014-2018 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Run regression test suite.
This module calls down into individual test cases via subprocess. It will
f... | mit | 4,196,581,227,555,377,700 | 38.596651 | 205 | 0.612339 | false |
ciarams87/PyU4V | PyU4V/tests/unit_tests/test_pyu4v_common.py | 1 | 28205 | # Copyright (c) 2020 Dell Inc. or its subsidiaries.
#
# 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... | mit | 1,726,442,905,896,622,800 | 44.936482 | 79 | 0.606595 | false |
batermj/algorithm-challenger | code-analysis/programming_anguage/python/source_codes/Python3.5.9/Python-3.5.9/Lib/test/test_decimal.py | 1 | 209553 | # Copyright (c) 2004 Python Software Foundation.
# All rights reserved.
# Written by Eric Price <eprice at tjhsst.edu>
# and Facundo Batista <facundo at taniquetil.com.ar>
# and Raymond Hettinger <python at rcn.com>
# and Aahz (aahz at pobox.com)
# and Tim Peters
"""
These are the test cases for the Decim... | apache-2.0 | -7,199,043,186,196,745,000 | 36.016958 | 113 | 0.55029 | false |
drJfunk/gbmgeometry | gbmgeometry/position_interpolator.py | 1 | 4903 | import astropy.io.fits as fits
import astropy.units as u
import numpy as np
import scipy.interpolate as interpolate
from gbmgeometry.utils.gbm_time import GBMTime
class PositionInterpolator(object):
def __init__(self, poshist=None, T0=None, trigdat=None):
# Use position history file
"""
... | mit | 1,473,218,808,684,017,200 | 21.490826 | 84 | 0.451152 | false |
rabc/Gitmark | flask/testing.py | 1 | 2318 | # -*- coding: utf-8 -*-
"""
flask.testing
~~~~~~~~~~~~~
Implements test support helpers. This module is lazily imported
and usually not used in production environments.
:copyright: (c) 2010 by Armin Ronacher.
:license: BSD, see LICENSE for more details.
"""
from werkzeug import Client, Envir... | mit | -7,269,470,205,188,622,000 | 33.597015 | 70 | 0.574633 | false |
andreoliw/clitoolkit | clit/ui.py | 1 | 1060 | """User interface."""
import sys
import time
from pathlib import Path
from subprocess import PIPE, CalledProcessError
import click
from clit.files import shell
def notify(title, message):
"""If terminal-notifier is installed, use it to display a notification."""
check = "which" if sys.platform == "linux" el... | bsd-3-clause | 1,113,306,305,299,595,500 | 32.125 | 116 | 0.654717 | false |
rr-/docstring_parser | docstring_parser/tests/test_numpydoc.py | 1 | 17338 | import typing as T
import pytest
from docstring_parser.numpydoc import parse
@pytest.mark.parametrize(
"source, expected",
[
("", None),
("\n", None),
("Short description", "Short description"),
("\nShort description\n", "Short description"),
("\n Short description\n... | mit | 7,615,288,201,455,690,000 | 25.229955 | 79 | 0.537836 | false |
mark-burnett/filament-dynamics | actin_dynamics/numerical/correlation.py | 1 | 2220 | # Copyright (C) 2011 Mark Burnett
#
# 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 later version.
#
# This program i... | gpl-3.0 | 3,708,285,325,205,364,000 | 31.647059 | 78 | 0.678378 | false |
izapolsk/integration_tests | cfme/tests/configure/test_zones.py | 1 | 7003 | import fauxfactory
import pytest
from cfme import test_requirements
from cfme.base.ui import ZoneAddView
from cfme.exceptions import ItemNotFound
from cfme.utils.appliance.implementations.ui import navigate_to
from cfme.utils.update import update
pytestmark = [test_requirements.configuration]
NAME_LEN = 5
DESC_LEN ... | gpl-2.0 | 8,238,792,760,051,305,000 | 26.249027 | 97 | 0.648865 | false |
CamDavidsonPilon/lifetimes | docs/conf.py | 1 | 5841 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# lifetimes documentation build configuration file, created by
# sphinx-quickstart on Fri Jul 7 14:10:36 2017.
#
# 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
# ... | mit | 8,542,328,529,899,552,000 | 30.744565 | 112 | 0.677795 | false |
8l/beri | cheritest/trunk/tests/fpu/test_raw_fpu_denorm.py | 2 | 1951 | #-
# Copyright (c) 2013 Michael Roe
# All rights reserved.
#
# This software was developed by SRI International and the University of
# Cambridge Computer Laboratory under DARPA/AFRL contract FA8750-10-C-0237
# ("CTSRD"), as part of the DARPA CRASH research programme.
#
# @BERI_LICENSE_HEADER_START@
#
# Licensed to BER... | apache-2.0 | -7,927,294,712,560,409,000 | 39.645833 | 98 | 0.75141 | false |
vrthra/pygram | tests/test_accesslog.py | 1 | 16740 | from urllib.parse import urlparse
import induce
import collections
import random
import accesslog
random.seed(0)
def test_accesslog1():
content_lines = '''
1.1.1.1 - - [21/Feb/2014:06:35:45 +0100] "GET /robots.txt HTTP/1.1" 200 112 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
'''... | gpl-3.0 | 5,739,183,233,330,992,000 | 84.846154 | 190 | 0.665054 | false |
PaddlePaddle/models | dygraph/sentiment/nets.py | 1 | 10899 | # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | apache-2.0 | -5,716,231,717,612,682,000 | 40.758621 | 108 | 0.565373 | false |
nhmc/LAE | cloudy/find_par.py | 1 | 13374 | from __future__ import division
from math import log, sqrt, pi
from barak.utilities import adict
from barak.absorb import split_trans_name
from barak.io import parse_config, loadobj
from barak.interp import AkimaSpline, MapCoord_Interpolator
from cloudy.utils import read_observed
import numpy as np
import os
from glob... | mit | 7,457,585,991,942,735,000 | 30.842857 | 147 | 0.515253 | false |
frederick623/wat | option_dl.py | 1 | 1542 | import sys
import urllib2
import zipfile
import StringIO
import datetime
output_path = "hkex_options"
def main(argv):
if len(argv) > 1:
dt = datetime.datetime.strptime(argv[1], "%Y%m%d").date()
else:
dt = datetime.date.today() + datetime.timedelta(days=-3)
while dt < datetime.date.today():
if int(dt.strfti... | apache-2.0 | -3,635,285,752,176,639,000 | 31.145833 | 112 | 0.666018 | false |
anish/buildbot | master/buildbot/test/unit/test_steps_source_base_Source.py | 1 | 6613 | # This file is part of Buildbot. Buildbot 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, version 2.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without eve... | gpl-2.0 | 8,742,843,434,144,445,000 | 33.805263 | 80 | 0.617118 | false |
rschiang/ntusc-statute | scripts/utils.py | 1 | 3691 | # utils.py - additional functions
import re
# Common constants
RE_CJK_NUMERICS = r'〇ㄧ一二三四五六七八九十百零'
RE_CJK_NUMERICS_MIXED = r'〇ㄧ一二三四五六七八九十零壹貳參肆伍陸柒捌玖拾'
RE_CJK_NUMERICS_SINGLE = r'一二三四五六七八九十'
RE_CJK_PATTERN = '[\u3400-\u4DB5\u4E00-\u9FD5]'
RE_CJK_BOUNDARY_PRE = re.compile(r'(?<=' + RE_CJK_PATTERN + r')\s*([\d\-A-Za-z\(]+... | gpl-3.0 | -1,518,688,606,506,065,200 | 31.764151 | 85 | 0.603225 | false |
er432/TASSELpy | TASSELpy/test/net/maizegenetics/dna/snp/GenotypeTableTest.py | 1 | 17490 | import unittest
import javabridge
from javabridge import JavaException, is_instance_of
import numpy as np
from TASSELpy.TASSELbridge import TASSELbridge
try:
try:
javabridge.get_env()
except AttributeError:
print("AttributeError: start bridge")
TASSELbridge.start()
except AssertionEr... | bsd-3-clause | 1,118,779,781,050,724,100 | 48.971429 | 110 | 0.704803 | false |
ebursztein/SiteFab | SiteFab/linter/frontmatter.py | 1 | 10590 | # encoding: utf-8
from collections import Counter
import re
import os.path
#from https://mathiasbynens.be/demo/url-regex diego's one
VALID_URL= re.compile(r"^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!10(?:\.\d{1,3}){3})(?!127(?:\.\d{1,3}){3})(?!169\.254(?:\.\d{1,3}){2})(?!192\.168(?:\.\d{1,3}){2})(?!172\.(?:1[6-9... | gpl-3.0 | -3,541,465,040,697,513,500 | 34.777027 | 541 | 0.570349 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.