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 |
|---|---|---|---|---|---|---|---|---|---|---|
attia42/twitter_word2vec | kmeans/experimentm.py | 1 | 3559 | import csv
import nltk
from nltk.tokenize import word_tokenize
import string
from nltk import pos_tag
from gensim.models.word2vec import Word2Vec
from gensim import matutils
from numpy import array, float32 as REAL
from sklearn.cluster import MiniBatchKMeans, KMeans
from multiprocessing import Pool
from collections imp... | mit | -3,103,478,720,361,940,000 | 18.662983 | 134 | 0.629952 | false |
fga-gpp-mds/2017.2-Receituario-Medico | medical_prescription/exam/test/test_view_list_custom_exam.py | 1 | 2151 | # Django imports
from django.test import TestCase
from django.test.client import RequestFactory
from django.contrib.auth.models import AnonymousUser
from django.core.exceptions import PermissionDenied
# Local Django imports
from exam.views import ListCustomExams
from user.models import User, Patient, HealthProfessiona... | mit | -498,659,966,404,250,100 | 41.156863 | 120 | 0.605581 | false |
mxcube/mxcube | mxcubeqt/widgets/optimisation_parameters_widget_layout.py | 1 | 2158 | #
# Project: MXCuBE
# https://github.com/mxcube
#
# This file is part of MXCuBE software.
#
# MXCuBE 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, either version 3 of the License, or
# (at your... | lgpl-3.0 | 7,412,875,325,961,287,000 | 36.859649 | 88 | 0.579703 | false |
PowerHMC/HmcRestClient | src/managed_system/PowerOnManagedSystem.py | 1 | 2162 | # Copyright 2015, 2016 IBM 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 require... | apache-2.0 | 6,232,945,339,774,236,000 | 37.607143 | 107 | 0.682701 | false |
Nablaquabla/sns-analysis | ba-missing-files.py | 1 | 5827 | import os
import time as tm
import sys
# Handles the creation of condor files for a given set of directories
# -----------------------------------------------------------------------------
def createCondorFile(dataDir,outDir,run,day,time):
# Condor submission file name convention: run-day-time.condor
with open... | gpl-3.0 | -2,322,044,558,256,752,000 | 42.485075 | 168 | 0.519478 | false |
iotaledger/iota.lib.py | iota/transaction/validator.py | 1 | 9563 | from typing import Generator, List, Optional, Type
from iota.crypto.kerl import Kerl
from iota.crypto.signing import validate_signature_fragments
from iota.transaction.base import Bundle, Transaction
__all__ = [
'BundleValidator',
]
# In very rare cases, the IOTA protocol may switch hash algorithms.
# When this ... | mit | -1,442,031,086,814,618,400 | 35.361217 | 79 | 0.527136 | false |
nilbody/h2o-3 | h2o-py/tests/testdir_golden/pyunit_svd_1_golden.py | 1 | 2402 | from __future__ import print_function
from builtins import zip
import sys
sys.path.insert(1,"../../")
import h2o
from tests import pyunit_utils
def svd_1_golden():
print("Importing USArrests.csv data...")
arrestsH2O = h2o.upload_file(pyunit_utils.locate("smalldata/pca_test/USArrests.csv"))
print("Co... | apache-2.0 | -2,250,794,566,595,891,700 | 39.711864 | 117 | 0.61199 | false |
sophacles/invoke | tests/runner.py | 1 | 8258 | import sys
import os
from spec import eq_, skip, Spec, raises, ok_, trap
from invoke.runner import Runner, run
from invoke.exceptions import Failure
from _utils import support, reset_cwd
def _run(returns=None, **kwargs):
"""
Create a Runner w/ retval reflecting ``returns`` & call ``run(**kwargs)``.
"""... | bsd-2-clause | -1,536,870,026,090,481,400 | 31.640316 | 90 | 0.541899 | false |
coreymcdermott/artbot | artbot_scraper/spiders/arthouse_spider.py | 1 | 2106 | # -*- coding: utf-8 -*-
import re
from scrapy import Spider, Request
from dateutil import parser
from artbot_scraper.items import EventItem
from pytz import timezone
class ArthouseSpider(Spider):
name = 'Arthouse Gallery'
allowed_domains = ['www.arthousegal... | mit | 2,145,790,434,256,513,000 | 43.765957 | 142 | 0.545627 | false |
mmb90/dftintegrate | dftintegrate/fourier/readdata.py | 1 | 5536 | """
Classes::
ReadData -- A collection of functions to collect extracted VASP/QE data
into a json file.
"""
import json
from copy import deepcopy
from ast import literal_eval
from collections import defaultdict
class ReadData(object):
"""
A collection of functions to collect extracted VASP/QE data
... | mit | -6,101,243,481,345,637,000 | 34.716129 | 74 | 0.601156 | false |
nkmk/python-snippets | notebook/pypdf2_metadata_remove.py | 1 | 4178 | import PyPDF2
src_pdf = PyPDF2.PdfFileReader('data/src/pdf/sample1.pdf')
dst_pdf = PyPDF2.PdfFileWriter()
dst_pdf.cloneReaderDocumentRoot(src_pdf)
with open('data/temp/sample1_no_meta.pdf', 'wb') as f:
dst_pdf.write(f)
print(PyPDF2.PdfFileReader('data/temp/sample1_no_meta.pdf').documentInfo)
# {'/Producer': 'Py... | mit | 287,211,407,982,853,760 | 37.485981 | 192 | 0.675085 | false |
endlessm/chromium-browser | third_party/catapult/telemetry/telemetry/internal/actions/scroll_unittest.py | 1 | 11759 | # Copyright 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from telemetry import decorators
from telemetry.internal.actions import page_action
from telemetry.internal.actions import scroll
from telemetry.internal.act... | bsd-3-clause | -3,071,362,219,920,244,700 | 42.07326 | 80 | 0.710009 | false |
googleapis/googleapis-gen | google/ads/googleads/v8/googleads-py/google/ads/googleads/v8/services/services/payments_account_service/client.py | 1 | 18740 | # -*- 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 | -9,072,559,174,270,836,000 | 43.619048 | 154 | 0.631964 | false |
feureau/Small-Scripts | Blender/Blender config/2.91/scripts/addons/bricker_v2-2-1/lib/property_groups/created_model_properties.py | 1 | 35831 | # Copyright (C) 2020 Christopher Gearhart
# chris@bblanimation.com
# http://bblanimation.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 3 of the License, or
# (at your opt... | gpl-3.0 | 8,693,281,229,719,090,000 | 35.674514 | 170 | 0.634395 | false |
xclxxl414/rqalpha | rqalpha/__main__.py | 1 | 14210 | # -*- coding: utf-8 -*-
#
# Copyright 2017 Ricequant, 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 ... | apache-2.0 | 1,797,748,913,422,962,200 | 34.845758 | 130 | 0.602266 | false |
kim135797531/opencog-python-blending | opencog_b/python/blending/util/blending_util.py | 1 | 1884 | # coding=utf-8
__author__ = 'DongMin Kim'
from opencog.type_constructors import *
# Choose atoms which are connected to specific atom.
def get_incoming_nodes(a, target):
ret = []
xget_target_link = a.xget_atoms_by_target_atom(types.Link, target)
for link in xget_target_link:
xget_target_link_no... | agpl-3.0 | 70,699,895,936,959,990 | 28.451613 | 77 | 0.652245 | false |
elysium001/zamboni | sites/s3dev/settings_base.py | 1 | 5495 | """private_base will be populated from puppet and placed in this directory"""
import logging
import os
import dj_database_url
from mkt.settings import (CACHE_PREFIX, ES_INDEXES,
KNOWN_PROXIES, LOGGING, HOSTNAME)
from .. import splitstrip
import private_base as private
ALLOWED_HOSTS = ['.a... | bsd-3-clause | 6,948,503,791,888,337,000 | 28.86413 | 79 | 0.66697 | false |
bbuchalter/python_koans | python2/koans/about_modules.py | 1 | 2488 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This is very different to AboutModules in Ruby Koans
# Our AboutMultipleInheritance class is a little more comparable
#
from runner.koan import *
from another_local_module import *
from local_module_with_all_defined import *
class AboutModules(Koan):
def test_i... | mit | 2,705,349,621,464,801,000 | 30.897436 | 78 | 0.639068 | false |
HunanTV/redis-ctl | test/http.py | 1 | 10950 | import json
import redistrib.command as comm
import base
from models.base import db
from models.proxy import Proxy
from models.cluster import Cluster
import models.task
class HttpRequest(base.TestCase):
def test_http(self):
with self.app.test_client() as client:
self.assertEqual({'nodes': [],... | mit | 3,597,076,686,152,082,400 | 33.651899 | 79 | 0.454064 | false |
dagargo/phatty | phatty/editor.py | 1 | 32769 | # -*- coding: utf-8 -*-
#
# Copyright 2017 David García Goñi
#
# This file is part of Phatty.
#
# Phatty 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-3.0 | -616,318,847,269,640,600 | 41.776762 | 177 | 0.612842 | false |
rackerlabs/qonos | qonos/openstack/common/rpc/dispatcher.py | 1 | 5310 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012 Red Hat, 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
#
#... | apache-2.0 | 3,698,796,998,904,787,500 | 37.478261 | 79 | 0.673446 | false |
Mirantis/disk_perf_test_tool | wally/test_run_class.py | 1 | 1980 | from typing import List, Callable, Any, Dict, Optional, Set
from concurrent.futures import ThreadPoolExecutor
from cephlib.istorage import IStorage
from cephlib.node import NodeInfo, IRPCNode
from cephlib.ssh import ConnCreds
from cephlib.storage_selectors import DevRolesConfig
from .openstack_api import OSCreds, OSC... | apache-2.0 | 7,912,155,741,855,254,000 | 35 | 91 | 0.64798 | false |
vmahuli/contrail-controller | src/opserver/partition_handler.py | 1 | 28794 | #!/usr/bin/python
from gevent import monkey
monkey.patch_all()
import logging
import gevent
from gevent.coros import BoundedSemaphore
from kafka import KafkaClient, KeyedProducer, SimpleConsumer, common
from uveserver import UVEServer
import os
import json
import copy
import traceback
import uuid
import struct
import ... | apache-2.0 | -5,221,414,559,799,287,000 | 38.661157 | 129 | 0.44992 | false |
edesky/text_validator | lib/validate.py | 1 | 1509 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import argparse
import json
import math
parser = argparse.ArgumentParser()
parser.add_argument("--text", required=True, help="Input text")
parser.add_argument("--short", action='store_true')
args = parser.parse_args()
input_text = ... | mit | 4,563,589,001,996,884,000 | 25.571429 | 110 | 0.649866 | false |
Alberto-Beralix/Beralix | i386-squashfs-root/usr/share/system-config-printer/errordialogs.py | 1 | 3111 | #!/usr/bin/python
## system-config-printer
## Copyright (C) 2006, 2007, 2008, 2010 Red Hat, Inc.
## Authors:
## Florian Festi <ffesti@redhat.com>
## Tim Waugh <twaugh@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 publi... | gpl-3.0 | 8,152,813,570,208,546,000 | 35.6 | 82 | 0.6072 | false |
drelu/SAGA-Hadoop | hadoop1/launcher.py | 1 | 2591 | #!/usr/bin/env python
import time
import saga
import os, sys
import subprocess
import pdb
import logging
logging.basicConfig(level=logging.ERROR)
def main():
try:
# create a job service for Futuregrid's 'india' PBS cluster
js = saga.job.Service("pbs+ssh://india")
#js = saga.job.Servi... | apache-2.0 | 944,839,436,700,455,200 | 29.482353 | 106 | 0.564261 | false |
heilaaks/snippy | tests/lib/helper.py | 1 | 7104 | # -*- coding: utf-8 -*-
#
# SPDX-License-Identifier: AGPL-3.0-or-later
#
# snippy - software development and maintenance notes manager.
# Copyright 2017-2020 Heikki J. Laaksonen <laaksonen.heikki.j@gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU ... | agpl-3.0 | -3,998,784,855,587,372,000 | 32.668246 | 126 | 0.634713 | false |
leshchevds/ganeti | lib/ssh.py | 1 | 43027 | #
#
# Copyright (C) 2006, 2007, 2010, 2011 Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list ... | bsd-2-clause | -2,877,672,071,644,923,400 | 32.432012 | 80 | 0.659144 | false |
vwflow/raws-python | raws_json/__init__.py | 1 | 28752 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# This is a modified version of '__init__.py' (version 1.1.1), part of the 'atom' module
# from the gdata-python-client project (http://code.google.com/p/gdata-python-client/) by Google Inc.
# Copyright (C) 2006, 2007, 2008 Google Inc.
#
# It has been modified to support jso... | apache-2.0 | 4,799,143,421,886,727,000 | 40.015692 | 116 | 0.643399 | false |
quaquel/EMAworkbench | test/test_em_framework/test_outcomes.py | 1 | 5451 | '''
Created on Jul 28, 2015
.. codeauthor:: jhkwakkel <j.h.kwakkel (at) tudelft (dot) nl>
'''
from __future__ import (division, print_function, absolute_import,
unicode_literals)
import unittest
import unittest.mock as mock
from ema_workbench.em_framework.outcomes import ScalarOutcome,\
T... | bsd-3-clause | 1,020,453,058,477,931,600 | 32.243902 | 72 | 0.532196 | false |
google/google-ctf | 2019/finals/web-gphotos-finals/app/gallery/middleware.py | 1 | 1230 | # Copyright 2019 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | apache-2.0 | 8,556,968,117,111,451,000 | 28.285714 | 74 | 0.704065 | false |
EggieCode/ansible-role-ufw | test/test.py | 1 | 2161 | #!/usr/bin/env python3
import imp
import os
import unittest
from pprint import pprint
imp.load_source('ufw_forward', os.path.join(os.path.dirname(__file__), os.path.pardir, 'library', 'ufw_forward.py'))
from ufw_forward import UFWForwards
class TestBase(unittest.TestCase):
def test_do_magic(self):
test = { ... | mit | -6,576,547,500,244,771,000 | 28.202703 | 116 | 0.410921 | false |
UKPLab/emnlp2017-claim-identification | src/main/python/process_data_se_WithDevel.py | 1 | 4976 | import cPickle
import numpy as np
import pandas as pd
import re
import sys
from collections import defaultdict
def build_data_cv(data_folder, cv=10, clean_string=True):
"""
Loads data.
"""
revs = []
pos_file = data_folder[0] # train file
neg_file = data_folder[1] # test file
devel_file = d... | apache-2.0 | -3,612,380,496,805,541,400 | 32.85034 | 96 | 0.530748 | false |
magne-max/zipline-ja | zipline/testing/__init__.py | 1 | 1320 | from .core import ( # noqa
AssetID,
AssetIDPlusDay,
EPOCH,
ExplodingObject,
FakeDataPortal,
FetcherDataPortal,
MockDailyBarReader,
OpenPrice,
add_security_data,
all_pairs_matching_predicate,
all_subindices,
assert_single_position,
assert_timestamp_equal,
check_al... | apache-2.0 | -7,354,642,395,603,160,000 | 22.571429 | 45 | 0.671212 | false |
bcgov/gwells | app/backend/gwells/views/bulk.py | 1 | 18358 | """
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distri... | apache-2.0 | -6,203,309,790,408,724,000 | 41.787879 | 123 | 0.620288 | false |
live-clones/dolfin-adjoint | tests_dolfin/optimization_scalar/optimization_scalar.py | 1 | 1880 | from __future__ import print_function
from dolfin import *
from dolfin_adjoint import *
import sys
dolfin.set_log_level(ERROR)
n = 10
mesh = UnitIntervalMesh(n)
V = FunctionSpace(mesh, "CG", 2)
ic = project(Expression("sin(2*pi*x[0])", degree=1), V)
u = ic.copy(deepcopy=True)
def main(nu):
u_next = Function(V)... | lgpl-3.0 | -1,891,839,056,240,876,000 | 27.923077 | 125 | 0.534574 | false |
Eternali/synk | synk-pre/synk-pre.py | 1 | 5279 | '''
Synk - Sublime Text Plugin
'''
import os
import socket
import sublime
import sublime_plugin
from threading import Thread, Timer
# variables for storing user defined settings
settings_filename = "synk_pre.sublime-settings"
enabled_field = "enabled"
server_ips_field = "project_server_ips" # NOTE: add feature ... | gpl-3.0 | -5,355,001,853,979,260,000 | 33.730263 | 113 | 0.602387 | false |
PostTenebrasLab/DrinkingBuddyServer | drinkingBuddyDB_declarative.py | 1 | 3467 | #!/usr/bin/python3
import os
import sys
from sqlalchemy import Column, ForeignKey, Integer, String, DateTime, Boolean
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship
from sqlalchemy import create_engine
from marshmallow import Schema, fields
from flask_sqlalchemy import ... | mit | 974,896,659,334,482,000 | 27.418033 | 87 | 0.677531 | false |
ifzing/ceilometer-extended-monitor | network/lbaas.py | 1 | 2469 | # -*- encoding: utf-8 -*-
from ceilometer.openstack.common import log
from ceilometer.openstack.common import timeutils
from ceilometer.central import plugin
from ceilometer import sample
from ceilometer import neutron_client
class LbaasInBytesPollster(plugin.CentralPollster):
LOG = log.getLogger(__name__ + '.... | apache-2.0 | 8,639,770,541,434,874,000 | 31.486842 | 63 | 0.534629 | false |
bromjiri/Presto | predictor/predictor_new.py | 1 | 8137 | import settings
import pandas as pd
import numpy as np
import os
from datetime import datetime
from datetime import timedelta
import predictor.predictor_classifier as cls
import predictor.predictor_statistic as stat
import random
import nltk
class Stock:
def __init__(self, subject):
input_file = settings... | mit | -6,080,565,351,509,108,000 | 28.915441 | 117 | 0.577731 | false |
imgos/asterisk-scripts | script/googlecontacts.py | 1 | 2701 | #!/usr/bin/python3
"""Get Google Contacts
Usage: google_contacts.py [--noauth_local_webserver]
Options:
--noauth_local_webserver passed on to google auth
"""
import docopt
import httplib2
import subprocess
import unidecode
from apiclient import discovery
from argparse import Namespace
from oauth... | mit | -8,137,995,456,563,472,000 | 26.561224 | 87 | 0.654202 | false |
fls-bioinformatics-core/RnaChipIntegrator | test/test_Features.py | 1 | 14809 | #
# test_Features.py: unit tests for Features module
# Copyright (C) University of Manchester 2011-5 Peter Briggs
from common import *
from rnachipintegrator.Features import Feature
from rnachipintegrator.Features import FeatureSet
import unittest
class TestFeature(unittest.TestCase):
def setUp(self):
... | artistic-2.0 | 7,190,113,374,988,786,000 | 44.990683 | 89 | 0.55446 | false |
dingmingliu/quanttrade | bt/core.py | 1 | 37660 | """
Contains the core building blocks of the framework.
"""
import math
from copy import deepcopy
import pandas as pd
import numpy as np
import cython as cy
class Node(object):
"""
The Node is the main building block in bt's tree structure design.
Both StrategyBase and SecurityBase inherit Node. It cont... | apache-2.0 | -3,770,879,272,697,670,000 | 32.151408 | 80 | 0.553877 | false |
adamkovics/atmosphere | atmosphere/gas_opacity.py | 1 | 8280 | """
Add gas opacities to model based on the composition and vertical structure.
"""
import numpy as np
import logging
logger = logging.getLogger()
def interpolate_kc(p, T, kc, verbose=False):
"""Linearly interpolate k-coefficients at a particular
pressure and temperature, using the input k-coefficent grid, k... | gpl-2.0 | 4,651,276,065,316,480,000 | 39.004831 | 91 | 0.533333 | false |
ArcherSys/ArcherSys | node_modules/npm/node_modules/node-gyp/gyp/buildbot/buildbot_run.py | 1 | 18134 | <<<<<<< HEAD
<<<<<<< HEAD
#!/usr/bin/env python
# Copyright (c) 2012 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Argument-less script to select what to run on the buildbots."""
import os
import shutil
import subprocess
imp... | mit | 4,987,594,992,532,851,000 | 30.482639 | 117 | 0.635657 | false |
dawsonjon/Chips-2.0 | chips/compiler/tokens.py | 1 | 9314 | __author__ = "Jon Dawson"
__copyright__ = "Copyright (C) 2012, Jonathan P Dawson"
__version__ = "0.1"
import os.path
import subprocess
from chips.compiler.exceptions import C2CHIPError
operators = [
"!", "~", "+", "-", "*", "/", "//", "%", "=", "==", "<", ">", "<=", ">=",
"!=", "|", "&", "^", "||", "&&", "("... | mit | 3,926,535,980,926,046,000 | 31.340278 | 77 | 0.432467 | false |
OnroerendErfgoed/skosprovider_heritagedata | skosprovider_heritagedata/utils.py | 1 | 5488 | # -*- coding: utf-8 -*-
'''
Utility functions for :mod:`skosprovider_heritagedata`.
'''
import requests
from skosprovider.skos import (
Concept,
Label,
Note,
ConceptScheme)
from skosprovider.exceptions import ProviderUnavailableException
import logging
import sys
import requests
log = logging.getLogg... | mit | 6,342,921,371,170,018,000 | 30.54023 | 152 | 0.636662 | false |
mr-ping/WebTesting | main.py | 1 | 5059 | #!/usr/bin/python
import os
import sys
import argparse
from log import Log
from chat import Trend
from chat import plot_trend as pl
from settings import *
def parse_args():
"""
Parsing shell command arguments, and override appropriate params
from setting module
:return: None
"""
parser = arg... | mit | 379,554,074,709,667,840 | 31.63871 | 86 | 0.567108 | false |
rickerc/neutron_audit | neutron/openstack/common/rpc/impl_kombu.py | 1 | 32063 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 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/LICEN... | apache-2.0 | -1,269,175,068,643,578,600 | 37.124851 | 79 | 0.558993 | false |
raytung/Slice | account/hooks.py | 1 | 2621 | import hashlib
import random
from django.core.mail import send_mail
from django.template.loader import render_to_string
from account.conf import settings
from django.contrib.auth.models import User
from django.core.exceptions import ObjectDoesNotExist
class AccountDefaultHookSet(object):
def send_invitation_em... | mit | -1,658,567,781,542,435,800 | 38.119403 | 87 | 0.679893 | false |
anselal/antminer-monitor | antminermonitor/blueprints/user/models.py | 1 | 1102 | from flask_login.mixins import UserMixin
from werkzeug.security import generate_password_hash, check_password_hash
from sqlalchemy import Column, Integer, VARCHAR
from antminermonitor.database import Base
class User(UserMixin, Base):
__tablename__ = 'user'
id = Column(Integer, primary_key=True)
username ... | gpl-3.0 | 8,158,068,241,093,129,000 | 30.485714 | 73 | 0.653358 | false |
wurstmineberg/alltheitems.wurstmineberg.de | alltheitems/cloud.py | 1 | 67724 | import alltheitems.__main__ as ati
import bottle
import collections
import contextlib
import datetime
import itertools
import json
import pathlib
import random
import re
import xml.sax.saxutils
import alltheitems.item
import alltheitems.util
import alltheitems.world
class FillLevel:
def __init__(self, stack_size... | mit | 6,210,669,962,743,115,000 | 59.09228 | 392 | 0.481912 | false |
amirgeva/coide | mainwindow.py | 1 | 54237 | from PyQt4 import QtCore
from PyQt4 import QtGui
import os
import re
import stat
import qutepart
from workspace import WorkSpace
import output
from consts import FileRole
from gdbwrapper import GDBWrapper
from watchestree import WatchesTree
from breakpoints import BreakpointsDB, BreakpointDialog
from properties impor... | gpl-2.0 | -3,514,037,278,721,606,700 | 36.664583 | 135 | 0.576286 | false |
boutiques/schema | tools/python/boutiques/tests/test_logger.py | 1 | 2801 | #!/usr/bin/env python
import os
import pytest
import json
import boutiques as bosh
import boutiques.creator as bc
from boutiques import __file__ as bfile
from boutiques.localExec import ExecutorError
from argparse import ArgumentParser
from unittest import TestCase
import mock
from boutiques_mocks import mock_zenodo_s... | gpl-2.0 | 309,840,088,008,387,140 | 35.855263 | 76 | 0.571225 | false |
pradyunsg/dotfiles | lib/checker.py | 1 | 5820 | import os
import sys
import shutil
import platform
from .logging import Logger, log
from .utils import run_output
import click
import yaml
class SystemChecker(object):
"""A super-fancy helper for checking the system configuration
"""
def __init__(self, verbose):
super().__init__()
self.... | mit | -4,368,949,340,365,042,700 | 30.978022 | 79 | 0.518041 | false |
peterrenshaw/socsim | setup.py | 1 | 1400 | #!/usr/bin/env python
# ~*~ encoding: utf-8 ~*~
"""
This file is part of SOCSIM.
SOCSIM 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) an... | gpl-3.0 | -4,294,559,742,352,133,000 | 30.111111 | 72 | 0.682143 | false |
judaba13/GenrePredictor | hdf5_utils.py | 1 | 28730 | """
Thierry Bertin-Mahieux (2010) Columbia University
tb2332@columbia.edu
This code contains a set of routines to create HDF5 files containing
features and metadata of a song.
This is part of the Million Song Dataset project from
LabROSA (Columbia University) and The Echo Nest.
Copyright 2010, Thierry Bertin-Mahieux
Th... | apache-2.0 | 7,055,382,129,776,609,000 | 52.304267 | 137 | 0.664636 | false |
openstack/python-magnumclient | magnumclient/tests/osc/unit/v1/test_clusters.py | 1 | 17895 | # Copyright 2016 Easystack. 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 | -923,871,317,477,197,800 | 30.616608 | 78 | 0.585359 | false |
blab/antibody-response-pulse | bcell-array/code/Virus_Bcell_IgM_IgG_Infection_OAS_new.py | 1 | 13195 |
# coding: utf-8
# # Antibody Response Pulse
# https://github.com/blab/antibody-response-pulse
#
# ### B-cells evolution --- cross-reactive antibody response after influenza virus infection or vaccination
# ### Adaptive immune response for repeated infection
# In[3]:
'''
author: Alvason Zhenhua Li
date: 04/09/201... | gpl-2.0 | 6,642,361,420,170,856,000 | 38.154303 | 257 | 0.619856 | false |
lucifurtun/myquotes | apps/search/bible/management/commands/zefania_xml_generator.py | 1 | 2231 | import json
from itertools import groupby
import xmltodict
from django.core.management.base import BaseCommand
class Command(BaseCommand):
help = 'Generates zefania xml from different formats'
def handle(self, *args, **options):
with open('NTR.json') as f:
data = json.load(f)
cu... | bsd-3-clause | -6,679,120,634,669,536,000 | 32.298507 | 78 | 0.404303 | false |
amchoukir/ycmd | build.py | 1 | 6445 | #!/usr/bin/env python
import os
import os.path as p
import sys
major, minor = sys.version_info[ 0 : 2 ]
if major != 2 or minor < 6:
sys.exit( 'The build script requires Python version >= 2.6 and < 3.0; '
'your version of Python is ' + sys.version )
DIR_OF_THIS_SCRIPT = p.dirname( p.abspath( __file__ ) ... | gpl-3.0 | 5,089,517,288,401,382,000 | 31.550505 | 85 | 0.638169 | false |
snehasi/servo | components/style/properties/data.py | 1 | 11812 | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import re
PHYSICAL_SIDES = ["top", "left", "bottom", "right"]
LOGICAL_SIDES = ["block-start", "block-end", "inline-star... | mpl-2.0 | 6,119,045,123,851,958,000 | 41.489209 | 116 | 0.626143 | false |
vcatechnology/cmake-boilerplate | cmake/pygh/__init__.py | 1 | 25114 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
import os
import sys
import json
import errno
import platform
import fileinput
import subprocess
from datetime import datetime, timezone
try:
import requests
except ImportError:
raise ImportError(
'Failed to import \'requests\', run \'pip instal... | bsd-3-clause | -6,535,361,961,749,887,000 | 34.026499 | 114 | 0.510472 | false |
Nexenta/cinder | cinder/tests/unit/backup/drivers/test_backup_ceph.py | 1 | 50666 | # Copyright 2013 Canonical Ltd.
# 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 b... | apache-2.0 | -5,105,239,275,316,770,000 | 41.433836 | 79 | 0.559192 | false |
jeroenh/OpenNSA | test/test_topology.py | 1 | 1847 | import StringIO
from twisted.trial import unittest
from opennsa import nsa
from opennsa.topology import gole
from . import topology as testtopology
TEST_PATH_1 = {
'source_stp' : nsa.STP('Aruba', 'A2'),
'dest_stp' : nsa.STP('Curacao', 'C3'),
'paths' : [ [ nsa.Link('Aruba', 'A2', 'A4'), nsa.Link... | bsd-3-clause | 2,879,352,091,860,986,000 | 31.982143 | 157 | 0.559827 | false |
rven/odoo | addons/pad/models/pad.py | 1 | 5592 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import logging
import random
import re
import string
import requests
from odoo import api, models, _
from odoo.exceptions import UserError
from ..py_etherpad import EtherpadLiteClient
_logger = logging.getLogger(__na... | agpl-3.0 | -3,819,001,917,685,144,000 | 36.530201 | 134 | 0.552933 | false |
Azure/azure-sdk-for-python | sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/_generated/v2016_10_01/aio/operations/_key_vault_client_operations.py | 1 | 230715 | # 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 | 5,830,821,531,992,470,000 | 48.203455 | 158 | 0.642438 | false |
platformio/platformio-core | platformio/debug/helpers.py | 1 | 6497 | # Copyright (c) 2014-present PlatformIO <contact@platformio.org>
#
# 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,665,862,348,788,826,000 | 30.848039 | 85 | 0.587348 | false |
jmchilton/galaxy-central | galaxy/tools/parameters.py | 1 | 19896 | """
Classes encapsulating tool parameters
"""
import logging, string, sys
from galaxy import config, datatypes, util, form_builder
import validation
from elementtree.ElementTree import XML, Element
log = logging.getLogger(__name__)
class ToolParameter( object ):
"""
Describes a parameter accepted by a tool.... | mit | -6,214,418,039,163,646,000 | 39.19596 | 162 | 0.587304 | false |
puttarajubr/commcare-hq | corehq/ex-submodules/couchforms/tests/test_dbaccessors.py | 1 | 2772 | import datetime
from django.test import TestCase
from couchforms.dbaccessors import get_forms_by_type, clear_forms_in_domain, \
get_number_of_forms_by_type, get_number_of_forms_of_all_types, \
get_form_ids_by_type, get_number_of_forms_all_domains_in_couch
from couchforms.models import XFormInstance, XFormError
... | bsd-3-clause | -2,153,954,313,831,242,500 | 36.459459 | 78 | 0.620491 | false |
ashmastaflash/don-bot | app/donlib/halo.py | 1 | 11070 | import cloudpassage
import os
import requests
from formatter import Formatter
from urlparse import urljoin
from utility import Utility as util
from halocelery.apputils import Utility as hc_util
class Halo(object):
"""This contains all Halo interaction logic
Attrubites:
session (cloudpassage.HaloSessi... | bsd-3-clause | 3,402,476,530,501,787,600 | 47.76652 | 124 | 0.512285 | false |
toobaz/pandas | ci/print_skipped.py | 1 | 1409 | #!/usr/bin/env python
import os
import sys
import math
import xml.etree.ElementTree as et
def parse_results(filename):
tree = et.parse(filename)
root = tree.getroot()
skipped = []
current_class = ""
i = 1
assert i - 1 == len(skipped)
for el in root.findall("testcase"):
cn = el.at... | bsd-3-clause | -8,257,308,143,200,926,000 | 26.096154 | 84 | 0.515259 | false |
openstack-infra/shade | shade/tests/unit/test_floating_ip_neutron.py | 1 | 41101 | # Copyright (c) 2015 Hewlett-Packard Development Company, L.P.
#
# 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... | apache-2.0 | -3,525,956,898,842,083,300 | 40.101 | 91 | 0.467069 | false |
bblais/plasticity | setup.py | 1 | 2798 | # this is from https://github.com/cython/cython/wiki/PackageHierarchy
import sys, os, stat, subprocess
from distutils.core import setup
from Cython.Distutils import build_ext
from distutils.extension import Extension
# we'd better have Cython installed, or it's a no-go
try:
from Cython.Distutils import build_ex... | mit | -212,955,220,237,154,800 | 29.086022 | 114 | 0.62366 | false |
dslackw/sbo-templates | sbo_templates/__metadata__.py | 1 | 1203 | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# __metadata__.py file is part of sbo-templates.
# Copyright 2015-2021 Dimitris Zlatanidis <d.zlatanidis@gmail.com>
# All rights reserved.
# SBo tool for managing templates.
# https://gitlab.com/dslackw/sbo-templates
# sbo-templates is free software: you can redistribute ... | gpl-3.0 | -942,446,830,145,835,600 | 36.59375 | 71 | 0.717373 | false |
mozilla/pto | pto/apps/autocomplete/views.py | 1 | 1912 | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
import logging
from django import http
from pto.apps.dates.decorators import json_view
from pto.apps.users.models import... | mpl-2.0 | 9,029,721,242,809,781,000 | 34.407407 | 76 | 0.578452 | false |
ajylee/gpaw-rtxs | gpaw/test/diamond_gllb.py | 1 | 2143 | from ase.structure import bulk
from sys import argv
from ase.dft.kpoints import ibz_points, get_bandpath
from gpaw import *
from ase import *
from gpaw.test import gen
from gpaw import setup_paths
import os
"""This calculation has the following structure.
1) Calculate the ground state of Diamond.
2) Calculate the ban... | gpl-3.0 | 7,119,025,400,674,546,000 | 30.985075 | 105 | 0.728885 | false |
discoapi/discotech | discotech/discoAPI/keywordManager.py | 1 | 3203 | __package__ = 'discotech.discoAPI'
from discotech import discotechError
class KeywordManager(object):
"""
Simple object to store and queue keyword to search in social media providers
"""
def __init__(self,keywords = [],convertToSearchPhrases = False):
"""
@type keywords: list
@param keywords:... | gpl-2.0 | -1,382,077,788,170,863,000 | 27.345133 | 163 | 0.70153 | false |
webrecorder/warcio | test/test_capture_http_proxy.py | 1 | 7458 | from warcio.capture_http import capture_http
import threading
from wsgiref.simple_server import make_server, WSGIServer
import time
import requests
from warcio.archiveiterator import ArchiveIterator
from pytest import raises
# ==================================================================
class TestCaptureHttp... | apache-2.0 | -5,916,640,460,981,349,000 | 43.658683 | 103 | 0.615581 | false |
fedora-infra/anitya | anitya/tests/lib/backends/test_freshmeat.py | 1 | 4187 | # -*- coding: utf-8 -*-
#
# Copyright © 2014 Red Hat, Inc.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2, or (at your option) any later
# version. This program is distributed in t... | gpl-2.0 | -850,745,508,754,240,800 | 32.488 | 84 | 0.65528 | false |
ioggstream/python-course | ansible-101/notebooks/exercise-05/inventory-docker-solution.py | 1 | 1376 | #!/usr/bin/env python
# List our containers. Note: this only works with docker-compose containers.
from __future__ import print_function
from collections import defaultdict
import json
#
# Manage different docker libraries
#
try:
from docker import Client
except ImportError:
from docker import APIClient as C... | agpl-3.0 | -8,088,468,184,198,138,000 | 28.913043 | 96 | 0.634448 | false |
googleapis/googleapis-gen | google/ads/googleads/v8/googleads-py/google/ads/googleads/v8/common/types/ad_type_infos.py | 1 | 46175 | # -*- 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 | 1,371,305,617,412,775,000 | 30.178258 | 135 | 0.60667 | false |
mapzen/tilequeue | tilequeue/wof.py | 1 | 46004 | from __future__ import absolute_import
from collections import namedtuple
from contextlib import closing
from cStringIO import StringIO
from datetime import datetime
from edtf import parse_edtf
from operator import attrgetter
from psycopg2.extras import register_hstore
from shapely import geos
from tilequeue.tile impor... | mit | 9,120,416,503,911,111,000 | 35.280757 | 79 | 0.582449 | false |
Tala/bybop | src/interactive.py | 1 | 1944 | #!/usr/bin/env python
import sys
try:
import readline
except ImportError:
import pyreadline as readline
import os
import code
import rlcompleter
lib_path = os.path.abspath(os.path.join('..', 'src'))
sys.path.append(lib_path)
lib_path = os.path.abspath(os.path.join('..', '..', 'ARSDKBuildUtils', 'Utils', 'Py... | bsd-3-clause | -245,576,819,196,394,050 | 21.870588 | 117 | 0.667181 | false |
status-im/status-react | test/appium/tests/atomic/account_management/test_profile.py | 1 | 71527 | import re
from tests import marks, bootnode_address, mailserver_address, test_dapp_url, test_dapp_name, mailserver_ams, \
mailserver_gc, mailserver_hk, used_fleet, common_password
from tests.base_test_case import SingleDeviceTestCase, MultipleDeviceTestCase
from tests.users import transaction_senders, basic_user, ... | mpl-2.0 | 5,973,305,768,616,145,000 | 52.820166 | 172 | 0.66031 | false |
ttthy1/2017sejongAI | week14/Mnist.py | 1 | 2273 | # Lab 7 Learning rate and Evaluation
import tensorflow as tf
import random
import matplotlib.pyplot as plt
tf.set_random_seed(777) # for reproducibility
from tensorflow.examples.tutorials.mnist import input_data
# Check out https://www.tensorflow.org/get_started/mnist/beginners for
# more information about the mnist d... | gpl-3.0 | -1,161,395,743,003,919,600 | 31.471429 | 79 | 0.675759 | false |
JDongian/LangGrind | src/parse_raw.py | 1 | 1957 | """Parse human data into JSON"""
import string
def parse_file(filename="../data/RAW.txt"):
"""Parse human readable file into JSON."""
entries = []
with open(filename) as f_in:
next_line = f_in.readline()
data = {}
state = "section"
while next_line:
if state == "... | gpl-3.0 | 6,378,814,179,138,106,000 | 38.14 | 67 | 0.406234 | false |
prateeksan/python-design-patterns | structural/adapter.py | 1 | 3485 | """ The Adapter Pattern
Notes:
If the interface of an object does not match the interface required by the
client code, this pattern recommends using an 'adapter' that can create a proxy
interface. It is particularly useful in homogenizing interfaces of
non-homogenous objects.
The following example represents a use ... | mit | 5,776,622,469,529,610,000 | 32.84466 | 80 | 0.68637 | false |
3dfxsoftware/cbss-addons | account_aged_partner_balance_report/report/account_aged_partner_balance_report.py | 1 | 10928 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Addons modules by CLEARCORP S.A.
# Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>).
#
# This program is free software: you can redistribute... | gpl-2.0 | 284,019,789,491,869,440 | 41.858824 | 221 | 0.522053 | false |
nosuchtim/VizBench | src/jsonrpc/jsonrpc.py | 1 | 1044 | # Utility to send JSON RPC messages
# Avoid the requests module to reduce installation hassles
import urllib
import urllib2
import json
import sys
verbose = False
def dorpc(port,meth,params):
url = 'http://127.0.0.1:%d/api' % (port)
id = '12345'
data = '{ "jsonrpc": "2.0", "method": "'+meth+'", "params": '+params... | mit | 6,698,785,829,892,262,000 | 22.2 | 91 | 0.6159 | false |
pombreda/ruffus | ruffus/test/test_tutorial7.py | 1 | 6147 | #!/usr/bin/env python
from __future__ import print_function
NUMBER_OF_RANDOMS = 10000
CHUNK_SIZE = 1000
working_dir = "temp_tutorial7/"
import os
import sys
# add grandparent to search path for testing
grandparent_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", ".."))
sys.path.insert(0, grand... | mit | 6,303,239,535,678,823,000 | 30.203046 | 163 | 0.576216 | false |
azheng51714/PYLearning | scrapy_project/ELEProject/ELEProject/middlewares.py | 1 | 1884 | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class EleprojectSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scrap... | mit | 7,885,680,243,928,233,000 | 32.607143 | 78 | 0.664187 | false |
h4wldev/Frest | app/routes/api/v1/users/user.py | 1 | 6676 | # # -*- coding: utf-8 -*-
import re
import datetime
from flask import request
from flask_api import status
from flask_restful import Resource
from sqlalchemy.exc import IntegrityError
from werkzeug.security import generate_password_hash
from app import db, token_auth
from app.models.user_model import UserModel, get_u... | mit | 2,234,537,345,375,100,000 | 33.770833 | 111 | 0.539994 | false |
Nikola-K/django_reddit | users/models.py | 1 | 1565 | from hashlib import md5
import mistune
from django.contrib.auth.models import User
from django.db import models
class RedditUser(models.Model):
user = models.OneToOneField(User)
first_name = models.CharField(max_length=35, null=True, default=None,
blank=True)
last_name =... | apache-2.0 | -6,009,276,806,158,894,000 | 42.472222 | 84 | 0.628754 | false |
selentd/pythontools | pytools/src/oldsrc/addindex.py | 1 | 2335 |
import datetime
import pymongo
from pymongo.mongo_client import MongoClient
import indexdata
def getIndexEntry( indexData ):
return indexData.getDictionary()
def getIndexDateEntry( indexData ):
return { "date": datetime.datetime(indexData.date.year,
indexData.date.mon... | apache-2.0 | 2,964,568,120,293,750,000 | 28.556962 | 64 | 0.494647 | false |
Rezzie/Batcher | generators/g_randomchoice.py | 1 | 2268 | #!/usr/bin/env python
# Copyright (c) 2011, The University of York
# All rights reserved.
# Author(s):
# James Arnold <jarnie@gmail.com>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of sourc... | bsd-3-clause | -5,633,717,101,477,794,000 | 37.440678 | 80 | 0.713845 | false |
openvenues/address_normalizer | address_normalizer/deduping/near_duplicates.py | 1 | 6806 | import geohash
import logging
import operator
from functools import partial
from itertools import chain, product, combinations, imap
from address_normalizer.deduping.duplicates import *
from address_normalizer.deduping.storage.base import *
from address_normalizer.text.gazetteers import *
from address_normalizer.t... | mit | 7,338,996,294,223,279,000 | 31.108491 | 189 | 0.618425 | false |
miyanishi2/caffe-rpc | caffe_extractor.py | 1 | 1439 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = 'miyanishi'
import caffe
import numpy as np
class CaffeExtractor():
def __init__(self, caffe_root=None, feature_layers=["fc6"], gpu=True):
self.feature_layers = feature_layers
MODEL_FILE = caffe_root + 'examples/imagenet/imagenet_deploy.... | bsd-2-clause | -3,062,253,772,976,018,400 | 36.868421 | 108 | 0.587908 | false |
Donkyhotay/MoonPy | twisted/internet/posixbase.py | 1 | 14121 | # -*- test-case-name: twisted.test.test_internet -*-
# Copyright (c) 2001-2009 Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Posix reactor base class
"""
import warnings
import socket
import errno
import os
from zope.interface import implements, classImplements
from twisted.python.compat import set
fr... | gpl-3.0 | 8,697,282,309,824,158,000 | 32.147887 | 108 | 0.622477 | false |
unfoldingWord-dev/uwadmin | uwadmin/migrations/0005_auto_20150524_1534.py | 1 | 1202 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('uwadmin', '0004_auto_20150318_0034'),
]
operations = [
migrations.AddField(
model_name='publishrequest',
... | mit | 8,915,345,621,021,246,000 | 30.631579 | 110 | 0.583195 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.