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 |
|---|---|---|---|---|---|---|---|---|---|---|
StuartAxelOwen/join | join/_join_funcs.py | 1 | 2328 | from functools import partial
__author__ = 'stuart'
def get_object_attrs(obj):
if hasattr(obj, '__dict__'):
return obj.__dict__
elif hasattr(obj, '__slots__'):
return {key: getattr(obj, key) for key in obj.__slots__}
else:
return {}
class Union(object):
def __init__(self, at... | mit | -4,050,428,239,922,643,500 | 29.233766 | 92 | 0.572165 | false |
soylentdeen/Graffity | src/ErrorBudgetAnalysis.py | 1 | 7600 | import Graffity
import numpy
import scipy
import matplotlib.pyplot as pyplot
wave = 632.8
ciao = Graffity.WFS(wavelength=1800.0)
var = numpy.array([False, False, True, True, True])
offsets = []
x = 0
for v in var:
if v:
offsets.append(x)
x+= 1
else:
offsets.append(0)
zern = [0.0, 0.0... | mit | -3,690,607,500,366,776,000 | 31.478632 | 84 | 0.589474 | false |
jbvsmo/discoder | discoder/lib/parse.py | 1 | 2685 | # coding: utf-8
""" Copyright (c) 2013 João Bernardo Vianna Oliveira
This file is part of Discoder.
Discoder 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
... | gpl-3.0 | 4,299,707,843,823,941,600 | 30.952381 | 102 | 0.548808 | false |
Fokko/incubator-airflow | tests/providers/google/cloud/operators/test_vision_system.py | 1 | 2023 | # -*- 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 | 7,918,690,223,469,108,000 | 39.46 | 102 | 0.741473 | false |
kubow/HAC | System/UI74KW.py | 1 | 2115 | #!/usr/bin/python3
import os.path
from kivy.resources import resource_add_path
KV_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__)))
resource_add_path(KV_PATH)
print(KV_PATH)
#import kivy
#kivy.require('1.7.1')
from kivy.lang import Builder
Builder.load_file('H808E.kv')
from kivy.app import App
from kiv... | unlicense | -7,743,993,530,130,653,000 | 29.652174 | 86 | 0.689362 | false |
jmrozanec/white-bkg-classification | scripts/dl-histograms/04-architecture-02b.py | 1 | 2150 | #TFLearn bug regarding image loading: https://github.com/tflearn/tflearn/issues/180
#Monochromes img-magick: https://poizan.dk/blog/2014/02/28/monochrome-images-in-imagemagick/
#How to persist a model: https://github.com/tflearn/tflearn/blob/master/examples/basics/weights_persistence.py
from __future__ import division,... | apache-2.0 | 5,411,774,150,972,732,000 | 50.190476 | 137 | 0.76186 | false |
PatentBlocker/Motorola_Patent_Citations | src/get_citations.py | 1 | 1772 | # -*- coding: utf-8 -*-
"""
Created on Wed Jan 20 16:08:56 2016
@author: Thibault
"""
import pandas as pd
import numpy as np
# Loading the data
data_dir = '../data'
# training and validation sets
train_file = data_dir + '/blocking1114.csv'
# Opening the blocking data
TrainFile = pd.read_csv(train_file, header=None... | bsd-2-clause | -3,259,559,936,448,086,000 | 22.315789 | 135 | 0.731941 | false |
public/python-super3 | test.py | 1 | 2905 | import time
import inspect
import random
from super3 import more_super3 as super3, callable_super3
def super_proxy(self, type):
py_super = super(type, self)
my_super = super3(caller=inspect.currentframe().f_back)
assert py_super.__str__() == my_super.__str__() \
or (py_super.__self_class__ ... | lgpl-3.0 | 1,098,780,801,679,328,900 | 19.034483 | 75 | 0.512909 | false |
GarethPW/Scratch-Comment-Viewer | old/v2.0.0/scratchcomments.py | 1 | 4830 | '''
Scratch Project Comments Parser v1.0.0
Created for use with SCV Server v2.0.0
Created by Scratch user, Gaza101.
Licensed under GNU General Public License v3.
www.garethpw.net
'''
from HTMLParser import HTMLParser
from htmlentitydefs import name2codepoint
from urllib2 import urlopen
class Comm... | gpl-3.0 | -5,200,480,149,626,272,000 | 56.5 | 199 | 0.547826 | false |
kyubifire/softlayer-python | SoftLayer/managers/dns.py | 1 | 8207 | """
SoftLayer.dns
~~~~~~~~~~~~~
DNS Manager/helpers
:license: MIT, see LICENSE for more details.
"""
import time
from SoftLayer import utils
class DNSManager(utils.IdentifierMixin, object):
"""Manage SoftLayer DNS.
See product information here: http://www.softlayer.com/DOMAIN-SERVICES
... | mit | 1,036,015,339,823,414,800 | 33.628692 | 102 | 0.60156 | false |
adityahase/frappe | frappe/desk/page/user_profile/user_profile.py | 1 | 2323 | import frappe
from datetime import datetime
@frappe.whitelist()
def get_energy_points_heatmap_data(user, date):
return dict(frappe.db.sql("""select unix_timestamp(date(creation)), sum(points)
from `tabEnergy Point Log`
where
date(creation) > subdate('{date}', interval 1 year) and
date(creation) < subdate('{... | mit | -6,314,365,701,903,240,000 | 28.782051 | 85 | 0.637538 | false |
ToonTownInfiniteRepo/ToontownInfinite | toontown/estate/DistributedFurnitureItem.py | 1 | 4767 | from toontown.toonbase.ToontownGlobals import *
from direct.interval.IntervalGlobal import *
from direct.distributed.ClockDelta import *
from toontown.catalog import CatalogItem
from toontown.toonbase import ToontownGlobals
from direct.distributed import DistributedObject
from toontown.toonbase import TTLocalizer
impor... | mit | 3,282,787,121,327,398,400 | 33.294964 | 119 | 0.643382 | false |
willi-kappler/Snowball_Python | modules/gimmick.py | 1 | 13945 | import random
import pygame
import gfxobject
class Gimmick:
"Class for the funny gimmicks. Note that it doesn't use any of the gfxobject classes"
def __init__(self, screen, level):
self.screen = screen
self.level = level
self.tux = gfxobject.GFXObject(screen, level, level.playerGfx, 0, ... | gpl-2.0 | -7,936,916,952,836,410,000 | 38.616477 | 109 | 0.502617 | false |
googleapis/googleapis-gen | google/cloud/websecurityscanner/v1/websecurityscanner-v1-py/google/cloud/websecurityscanner_v1/types/finding_type_stats.py | 1 | 1388 | # -*- 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 | -8,043,455,129,311,050,000 | 26.76 | 74 | 0.668588 | false |
robotika/husky | ros/tcpros.py | 1 | 3927 | """
Parsing TCPROS communication protocol
usage:
./tcpros <log file to replay>
"""
import socket
import struct
import sys
import datetime
def prefix4BytesLen( s ):
"adding ROS length"
return struct.pack("I", len(s)) + s
def splitLenStr( data ):
ret = []
while len(data) >= 4:
size = s... | mit | 264,870,536,879,751,900 | 27.664234 | 93 | 0.520499 | false |
rht/zulip | zerver/tests/test_narrow.py | 1 | 137439 | # -*- coding: utf-8 -*-
from django.db import connection
from django.test import TestCase, override_settings
from sqlalchemy.sql import (
and_, select, column, table,
)
from sqlalchemy.sql.elements import ClauseElement
from zerver.models import (
Realm, Subscription, Recipient, Stream,
get_display_recipi... | apache-2.0 | -3,895,741,321,599,924,000 | 45.736357 | 439 | 0.591406 | false |
pseudobeard/teambalancer | legacy/getter.py | 1 | 1244 | import json
import requests
with open('properties.json') as data_file:
data = json.load(data_file)
jwtToken = data["jwtToken"]
id = data["id"]
ITEM_NAME = data["item_name"]
headers = {"authorization" : "Bearer " + jwtToken}
baseurl = "https://api.streamelements.com/kappa/v1/store/"
end = "/redemptions?limit=100... | gpl-3.0 | -2,647,808,785,494,130,000 | 26.666667 | 99 | 0.605305 | false |
rmulton/lawen | webservice_caller/GoogleAPICaller.py | 1 | 2949 | import json
import re
from bs4 import BeautifulSoup
from model.Transport.Walk import Walk
from model.Transport.PublicTransport import PublicTransport
from model.Transport.Drive import Drive
from model.Transport.Bicycle import Bicycle
from model.Possibilities import Possibilities
from webservice_caller.TransportAPICalle... | mit | 4,741,626,998,261,590,000 | 39.958333 | 213 | 0.60902 | false |
kevintee/Predicting-Gene-Networks | results/goatools-master/scripts/map_to_slim.py | 1 | 4362 | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
from __future__ import print_function
import os
import os.path as op
import sys
sys.path.insert(0, op.join(op.dirname(__file__), ".."))
from goatools.obo_parser import GODag
from goatools.mapslim import mapslim
# copied from find_enrichment.py
# TODO: put this method int... | mit | 2,198,930,277,739,661,600 | 36.282051 | 78 | 0.560064 | false |
polypmer/obligarcy | obligarcy/urls.py | 1 | 1546 | from django.conf.urls import url
from . import views
from django.conf.urls.static import static, settings
urlpatterns = [
# ex: /oblicarcy/
url(r'^$', views.index, name='index'),
url(r'^firehose/$', views.firehose, name='firehose'),
url(r'^profile/$', views.profile, name='profile'),
# ex: /obliga... | gpl-3.0 | -9,180,719,467,244,064,000 | 40.783784 | 130 | 0.609314 | false |
HybridF5/jacket | jacket/api/compute/openstack/compute/schemas/floating_ips.py | 1 | 1528 | # Copyright 2015 NEC Corporation. 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 | -3,991,817,029,527,831,600 | 29.56 | 78 | 0.600785 | false |
xinl/lifepadbox | lp/time.py | 1 | 1825 | import datetime
class TZOffset(datetime.tzinfo):
def __init__(self, offset_string):
# validity of offset_string is already taken care of by Setting.put() so we just trust it here.
self.offset_string = offset_string
self._h = int(self.offset_string[1:3])
self._m = int(self.offset_st... | bsd-2-clause | 3,487,160,411,433,715,700 | 41.465116 | 168 | 0.61863 | false |
johnpeck/cgrlib | cgrlib/tools/cgr_imp.py | 1 | 26283 | #!/usr/bin/env python
# cgr_imp.py
#
# Impedance measurement with the cgr-101 USB oscilloscope
import time # For making pauses
import os # For basic file I/O
import ConfigParser # For reading and writing the configuration file
import sys # For sys.exit()
from math import sin # For generating sine waves
from... | mit | -1,559,406,550,913,330,200 | 35.862553 | 97 | 0.603051 | false |
tuwmft/MatterBot | mattermost_bot/plugins/mlpl/Game.py | 1 | 9936 | from threading import Timer
import random
import string
class Game():
IDDLE = 0
START_GAME = 1
START_ROUND = 2
DURING_ROUND = 3
END_ROUND = 4
POINTS_PER_SCORE = [
1,
2,
3,
5,
7,
10,
14,
20,
]
MLPL_BONUS = 10
MESSAGE... | mit | 1,998,505,489,977,923,300 | 28.88253 | 92 | 0.519605 | false |
aveao/AveBot | cogs/stockstream.py | 1 | 1897 | import discord
from discord.ext import commands
import secrets
class Stockstream:
def __init__(self, bot):
self.bot = bot
@commands.command()
async def copypasta(self, ctx, ticker: str):
"""Generates a copypasta for StockStream using the given ticker."""
copypasta_list = ["Kreygas... | mit | 6,933,392,645,307,308,000 | 53.2 | 128 | 0.627306 | false |
ttrifonov/horizon | horizon/horizon/dashboards/nova/access_and_security/security_groups/tests.py | 1 | 10057 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Copyright 2012 Nebula, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# no... | apache-2.0 | -533,934,509,314,937,400 | 35.046595 | 79 | 0.586159 | false |
sonofeft/XYmath | xymath/gui/About_Dialog.py | 1 | 3671 | #!/usr/bin/env python
# -*- coding: ascii -*-
from __future__ import print_function
from __future__ import absolute_import
from future import standard_library
standard_library.install_aliases()
from builtins import object
from tkinter import *
from PIL import Image, ImageTk
from xymath.gui.logo import logo_data
impor... | gpl-3.0 | 8,395,864,961,358,916,000 | 34.298077 | 100 | 0.620267 | false |
zaina/nova | nova/virt/libvirt/volume.py | 1 | 68849 | # Copyright 2011 OpenStack Foundation
# (c) Copyright 2013 Hewlett-Packard Development Company, L.P.
# 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
#
# ... | apache-2.0 | 2,811,650,872,835,121,700 | 42.219711 | 79 | 0.554402 | false |
FOSSRIT/Nova | controllers/extras.py | 1 | 79892 | # Copyright (C) 2008 by
# Aric Hagberg <hagberg@lanl.gov>
# Dan Schult <dschult@colgate.edu>
# Pieter Swart <swart@lanl.gov>
# Distributed under the terms of the GNU Lesser General Public License
# http://www.gnu.org/copyleft/lesser.html
from networkx.classes.multigraph import MultiGraph
from netwo... | gpl-3.0 | -6,707,146,173,462,512,000 | 33.615251 | 101 | 0.528664 | false |
isotoma/precog | setup.py | 1 | 1182 | # Copyright 2016 Isotoma Limited
# 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 | 5,478,780,143,963,121,000 | 30.105263 | 74 | 0.692047 | false |
IronLanguages/ironpython3 | Src/StdLib/Lib/socket.py | 1 | 20953 | # Wrapper module for _socket, providing some additional facilities
# implemented in Python.
"""\
This module provides socket operations and some related functions.
On Unix, it supports IP (Internet Protocol) and Unix domain sockets.
On other systems, it only supports IP. Functions specific for a
socket are available a... | apache-2.0 | 2,936,274,193,800,808,000 | 34.393581 | 95 | 0.606214 | false |
lehinevych/cfme_tests | cfme/tests/services/test_add_remove_vm_to_service.py | 1 | 3372 | # -*- coding: utf-8 -*-
import fauxfactory
import pytest
from cfme.common.provider import cleanup_vm
from cfme.services.catalogs.service_catalogs import ServiceCatalogs
from cfme.services import requests
from cfme.services.catalogs.myservice import MyService
from cfme.automate.simulation import simulate
from cfme.auto... | gpl-2.0 | -5,700,013,254,477,437,000 | 32.058824 | 97 | 0.659253 | false |
mastorak/udolc | udolc/UdolcWindow.py | 1 | 4139 | # -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
### BEGIN LICENSE
# Copyright (C) 2013 <Konstantinos Mastorakis> <mastorak at gmail dot com>
# 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
... | gpl-3.0 | -7,600,585,048,314,815,000 | 35.955357 | 79 | 0.62648 | false |
goibibo/woof | tests/test_partitioned_prod.py | 1 | 1412 | import logging
import os
import sys
from woof.partitioned_producer import CyclicPartitionedProducer, PartitionedProducer, dumb_hash
# import pdb; pdb.set_trace()
import time
if len(sys.argv) <= 3:
topic = "test.3part"
key = "JY"
msg = "Hello cruel world"
else:
topic = sys.argv[1]
key = sys.argv[2]... | apache-2.0 | 5,183,412,907,175,997,000 | 26.705882 | 97 | 0.672805 | false |
martin-green/skojjt | imports.py | 1 | 3816 | # -*- coding: utf-8 -*-
import time
from data import Semester, TaskProgress, UserPrefs
from dataimport import RunScoutnetImport
from google.appengine.ext import deferred, ndb
from flask import Blueprint, render_template, request, make_response, redirect
import_page = Blueprint('import_page', __name__, template_folder... | apache-2.0 | 3,902,891,039,809,497,600 | 38.340206 | 136 | 0.659329 | false |
bsgbryan/Ardus | node_modules/microtime/build/c4che/default.cache.py | 1 | 1405 | AR = '/usr/bin/ar'
ARFLAGS = 'rcs'
CCFLAGS = ['-g']
CCFLAGS_MACBUNDLE = ['-fPIC']
CCFLAGS_NODE = ['-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64']
CC_VERSION = ('4', '2', '1')
COMPILER_CXX = 'g++'
CPP = '/usr/bin/cpp'
CPPFLAGS_NODE = ['-D_GNU_SOURCE', '-DEV_MULTIPLICITY=0']
CPPPATH_NODE = '/usr/local/include/node'
CPPP... | mit | -3,397,733,078,171,443,700 | 28.270833 | 82 | 0.625623 | false |
Elastica/kombu | kombu/clocks.py | 1 | 4635 | """
kombu.clocks
============
Logical Clocks and Synchronization.
"""
from __future__ import absolute_import, unicode_literals
from threading import Lock
from itertools import islice
from operator import itemgetter
from .five import python_2_unicode_compatible, zip
__all__ = ['LamportClock', 'timetuple']
R_CLOCK ... | bsd-3-clause | 5,739,204,968,868,085,000 | 28.711538 | 77 | 0.604962 | false |
miquelcampos/GEAR_mc | gear/xsi/rig/component/chain_01/guide.py | 1 | 3991 | '''
This file is part of GEAR.
GEAR 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 option) any later version.
This program is distrib... | lgpl-3.0 | 630,757,503,374,750,000 | 31.185484 | 106 | 0.527938 | false |
google/skia | infra/bots/assets/cmake_mac/create.py | 1 | 1130 | #!/usr/bin/env python
#
# Copyright 2019 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Create the asset."""
import argparse
import os
import subprocess
import sys
FILE_DIR = os.path.dirname(os.path.abspath(__file__))
INFRA_BOTS_DIR = os.path.... | bsd-3-clause | -5,843,847,538,980,746,000 | 24.111111 | 79 | 0.635398 | false |
shengqh/ngsperl | lib/QC/bamSoftClipPosition.py | 1 | 3130 | import pysam
import argparse
import sys
import logging
import os
from asyncore import read
parser = argparse.ArgumentParser(description="Build soft clip position distribution in BAM file.",
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
DEBUG=False
NOT_DEBUG = not ... | apache-2.0 | 2,228,004,793,218,113,500 | 36.195122 | 146 | 0.675399 | false |
msg/g2ools | nord/convert/lfo.py | 1 | 10685 | #
# lfo.py - Lfo tab conversion objects
#
# Copyright (c) 2006,2007 Matt Gerassimoff
#
# This file is part of g2ools.
#
# g2ools 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,... | gpl-2.0 | -1,390,390,369,953,476,000 | 29.971014 | 76 | 0.656341 | false |
lukeiwanski/tensorflow-opencl | tensorflow/python/kernel_tests/control_flow_ops_py_test.py | 1 | 96552 | # 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 | 7,649,208,543,106,619,000 | 35.216054 | 112 | 0.604876 | false |
rahulunair/nova | nova/tests/unit/network/test_network_info.py | 1 | 49810 | # Copyright 2011 OpenStack Foundation
# All Rights Reserved.
# Copyright 2013 IBM Corp.
#
# 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/LIC... | apache-2.0 | -1,657,925,334,694,846,000 | 36.033457 | 79 | 0.53678 | false |
HybridF5/jacket | jacket/api/compute/openstack/compute/limits.py | 1 | 2400 | # Copyright 2011 OpenStack Foundation
# 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 | 5,010,607,489,460,766,000 | 34.820896 | 78 | 0.68625 | false |
Fokko/incubator-airflow | airflow/contrib/example_dags/example_emr_job_flow_automatic_steps.py | 1 | 2363 | # -*- 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 | -6,546,665,006,355,624,000 | 29.294872 | 100 | 0.658485 | false |
elvandy/nltools | nltools/datasets.py | 1 | 4739 | '''
NeuroLearn datasets
===================
functions to help download datasets
'''
## Notes:
# Need to figure out how to speed up loading and resampling of data
__all__ = ['download_nifti',
'get_collection_image_metadata',
'download_collection',
'fetch_emotion_ratings',
'fetch_pain']
__author__ = ["Luk... | mit | 7,979,483,591,160,874,000 | 28.993671 | 86 | 0.703313 | false |
qilicun/python | python2/PyMOTW-1.132/PyMOTW/calendar/calendar_textcalendar.py | 1 | 1210 | #!/usr/bin/env python
#
# Copyright 2007 Doug Hellmann.
#
#
# All Rights Reserved
#
# Permission to use, copy, modify, and distribute this software and
# its documentation for any purpose and without fee is hereby
# granted, provided that the above copyright notice appear in all
# copies and tha... | gpl-3.0 | -6,277,574,415,358,937,000 | 32.611111 | 70 | 0.760331 | false |
Arubacloud/pyArubaCloud | examples/create_pro_vm.py | 1 | 1437 | import argparse
import logging
from pprint import pprint
from ArubaCloud.PyArubaAPI import CloudInterface
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('-d', '--datacenter', help='Specify datacenter to login.', action='store', type=int, dest='dc')
parser.add_argument('-... | apache-2.0 | -7,066,435,289,594,719,000 | 42.545455 | 119 | 0.675017 | false |
zuowang/Paddle | python/paddle/trainer/PyDataProvider2.py | 1 | 13558 | # Copyright (c) 2016 Baidu, Inc. 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 o... | apache-2.0 | -1,903,039,986,429,761,800 | 35.544474 | 83 | 0.567119 | false |
poojavade/Genomics_Docker | Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/Bio/SCOP/__init__.py | 1 | 31882 | # Copyright 2001 by Gavin E. Crooks. All rights reserved.
# Modifications Copyright 2004/2005 James Casbon. All rights Reserved.
# Modifications Copyright 2010 Jeffrey Finkelstein. All rights reserved.
#
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that ... | apache-2.0 | 2,075,764,463,224,599,300 | 34.662192 | 99 | 0.552977 | false |
mcs07/ChemDataExtractor | chemdataextractor/cli/pos.py | 1 | 11619 | # -*- coding: utf-8 -*-
"""
chemdataextractor.cli.pos
~~~~~~~~~~~~~~~~~~~~~~~~~
Part of speech tagging commands.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import logging
import click
from ..doc import Document, Text
from ..nlp.corpus import gen... | mit | -1,216,581,177,639,905,800 | 42.845283 | 132 | 0.58697 | false |
CollinRooney12/htsprophet | htsprophet/fitForecast.py | 1 | 13224 | # -*- coding: utf-8 -*-
"""
Name: fitForecast.py
Author: Collin Rooney
Last Updated: 7/18/2017
This script will contain functions for all types of hierarchical modeling approaches.
It will use the prophet package as a forecasting tool.
The general idea of it is very similar to the hts package in R, but it is a little
m... | mit | 7,184,139,017,834,954,000 | 45.080139 | 179 | 0.548851 | false |
tommasoberlose/p2p_bittorrent | SocketFunc.py | 1 | 1263 | import socket
####### SOCKET
def create_socket_server(myHost, port):
s = None
for res in socket.getaddrinfo(None, int(port), socket.AF_UNSPEC,socket.SOCK_STREAM, 0, socket.AI_PASSIVE):
af, socktype, proto, canonname, sa = res
try:
s = socket.socket(af, socktype, proto)
except socket.error as ms... | mit | -3,098,031,255,870,166,000 | 24.26 | 107 | 0.585115 | false |
ruleant/weblate | weblate/trans/__init__.py | 1 | 1568 | # -*- coding: utf-8 -*-
#
# Copyright © 2012 - 2014 Michal Čihař <michal@cihar.com>
#
# This file is part of Weblate <http://weblate.org/>
#
# 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, eithe... | gpl-3.0 | 193,900,625,314,900,740 | 36.261905 | 74 | 0.701597 | false |
carlitux/turboengine | src/turboengine/__init__.py | 1 | 1702 | ##################################################################################
# The MIT License - turboengine
#
# Copyright (c) Oct 2010 - Luis C. Cruz <carlitos.kyo@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (th... | mit | 6,363,081,894,837,103,000 | 50.575758 | 82 | 0.686839 | false |
nlgndnmz/ctpsingle | BeyerHedetmieni.py | 1 | 3481 |
import sys
# G is the gamma matrix
# par is the parent array
# n is the number of nodes
def writeGammaMatrix(gammaFile, G, par, n):
for i in range(n):
for j in range(n):
G[i][j] = 0
for i in range(n):
G[i][i] = 1
j = par[i]-1
while j > -1:
G[j][i] = 1
j = par[j]-1
for i in range(n):
for j in r... | gpl-3.0 | 5,346,986,811,560,547,000 | 17.918478 | 109 | 0.561046 | false |
fzimmermann89/pyload | module/plugins/crypter/DevhostStFolder.py | 1 | 2306 | # -*- coding: utf-8 -*-
#
# Test links:
# http://d-h.st/users/shine/?fld_id=37263#files
import re
import urlparse
from module.plugins.internal.SimpleCrypter import SimpleCrypter, create_getInfo
class DevhostStFolder(SimpleCrypter):
__name__ = "DevhostStFolder"
__type__ = "crypter"
__version__ = "0... | gpl-3.0 | 6,376,989,188,903,538,000 | 33.41791 | 95 | 0.506071 | false |
neerja28/Tempest | tempest/api/compute/servers/test_servers_negative.py | 1 | 21169 | # Copyright 2012 OpenStack Foundation
# 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 | 8,421,193,079,053,598,000 | 40.835968 | 78 | 0.617318 | false |
dbousque/lymp | srcs/lymp.py | 1 | 6462 |
from time import time
from struct import pack, unpack
import bson, sys, os, codecs
from random import randint
from traceback import print_exc
def int_to_int64_bytes(i):
return pack('>q', i)
def py_to_bson(val):
if type(val) is int:
return bson.int64.Int64(val)
if sys.version_info.major == 2 and type(val) is st... | mit | -693,447,540,580,453,000 | 29.625592 | 103 | 0.656608 | false |
johnjohnlin/nicotb | sim/standalone/test_semaphore.py | 1 | 1602 | #!/usr/bin/env python
# Copyright (C) 2017,2019, Yu Sheng Lin, johnjohnlys@media.ee.ntu.edu.tw
# This file is part of Nicotb.
# Nicotb 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 ... | gpl-3.0 | 9,214,477,608,298,877,000 | 24.83871 | 72 | 0.721598 | false |
mkauppila/rachel | bot/parse.py | 1 | 1792 | import irc
def parse_nick(nick):
""" Separates nick from the mode characters.
Examples:
parse_nick('@_markus') => (_markus, 'o')
parse_nick('+_markus') => ('_markus', 'v')
"""
converter = {'@' : 'o', '+' : 'v'}
modes = converter.keys()
first_character = nick[0]
if first_character in modes:
return (nick... | mit | -63,711,807,403,173,780 | 23.547945 | 63 | 0.682478 | false |
ImmaculateObsession/nest | pebbles/forms.py | 1 | 3224 | from django import forms
from django.utils.text import slugify
from suit_redactor.widgets import RedactorWidget
from pebbles.models import (
Pebble,
PebblePage,
)
class PebblePageForm(forms.Form):
title = forms.CharField(
max_length=140,
required=True,
widget=forms.TextInput(attr... | mit | 3,485,214,062,149,560,000 | 29.130841 | 109 | 0.611042 | false |
philroche/Django-tinymce-filebrowser | mce_filebrowser/models.py | 1 | 1228 | import datetime
from django.db import models
from django.utils.translation import ugettext as _
from mce_filebrowser.conf import LOCAL_MCE_FILEBROWSER_UPLOADDIR,LOCAL_MCE_FILEBROWSER_PERUSER
def content_file_name(instance, filename):
if LOCAL_MCE_FILEBROWSER_PERUSER == True:
return "%s/%s/%s/%s" %(LOCA... | mit | -6,621,422,880,594,318,000 | 33.111111 | 153 | 0.645765 | false |
wrightjb/bolt-planar | setup.py | 1 | 2408 | # setup.py for planar
#
# $Id$
import os
import sys
import shutil
from distutils.core import setup, Extension
try:
from distutils.command.build_py import build_py_2to3 as build_py
except ImportError:
if sys.version_info >= (3, 0):
raise ImportError("build_py_2to3 not found in distutils - it is require... | bsd-3-clause | -2,776,766,464,232,461,000 | 28.365854 | 97 | 0.634551 | false |
teddy-michel/Mimir | games/forms.py | 1 | 2992 | from django.forms import ModelForm, Textarea, HiddenInput, IntegerField, CharField, Select
from django.utils.translation import ugettext as _
from base.models import Tag
from .models import Game, Saga, SagaGame, GameAttribute, GameLink, GameTag, GameUser
class GameForm(ModelForm):
class Meta:
model = Gam... | gpl-3.0 | -415,004,628,209,892,350 | 28.048544 | 107 | 0.580548 | false |
ganeshgore/myremolab | server/launch/sample/main_machine/main_instance/laboratory/server_config.py | 1 | 7958 | ##################################
# Laboratory Server configuration #
##################################
laboratory_assigned_experiments = {
'exp1:ud-fpga@FPGA experiments':
{
'coord_address': 'experiment_fpga:main_instance@main_machine',
'checkers': ()
... | bsd-2-clause | 2,023,476,635,068,262,100 | 36.186916 | 89 | 0.468082 | false |
acutesoftware/AIKIF | aikif/lib/cls_goal_time.py | 1 | 1843 | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# cls_goal_time.py
from aikif.lib.cls_goal import Goal
class GoalTime(Goal):
"""
goals around time - eg maximise use of object / minimize time of task
"""
def __init__(self, maximise=True, current_val=0, target_val=0):
"""
set maximise = True... | gpl-3.0 | -5,118,131,896,329,419,000 | 33.773585 | 124 | 0.546934 | false |
domob1812/huntercore | test/functional/auxpow_mining.py | 1 | 6838 | #!/usr/bin/env python3
# Copyright (c) 2014-2018 Daniel Kraft
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
# Test the merge-mining RPC interface:
# getauxblock, createauxblock, submitauxblock
from test_framework.test_framework... | mit | 2,870,474,276,787,400,000 | 35.962162 | 77 | 0.659842 | false |
algorhythms/LeetCode | 276 Paint Fence.py | 1 | 3181 | """
Premium Question
"""
__author__ = 'Daniel'
class Solution(object):
def numWays_oneliner(self, n, k):
return 0 if n < 1 else sum(reduce(lambda F, i: [(k-1)*(F[0]+F[1]), F[0]], xrange(1, n), [k, 0]))
def numWays(self, n, k):
"""
You need to abstract number of colors to binary value ... | mit | 631,004,810,354,814,800 | 26.188034 | 111 | 0.408362 | false |
Jc2k/libcloudcore | libcloudcore/driver.py | 1 | 2268 | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... | apache-2.0 | 6,896,000,010,012,746,000 | 34.4375 | 74 | 0.659171 | false |
lailongwei/llbc | wrap/pyllbc/script/comm/Timer.py | 1 | 3690 | # -*- coding: utf-8 -*-
import time as _time
from datetime import datetime as _dt
from datetime import tzinfo as _tzinfo
from datetime import timedelta as _timedelta
import llbc
class _pyllbcGMT(_tzinfo):
"""llbc library GMT tzinfo class encapsulation"""
_delta = _timedelta(0)
def utcoffset(self, dt):
... | mit | -2,180,250,508,961,024,300 | 29.213115 | 120 | 0.620867 | false |
metapolator/mutatormathtools | python_modules/lib/python/ufoLib/test/test_GLIF1.py | 1 | 32659 | import unittest
from ufoLib.glifLib import GlifLibError, readGlyphFromString, writeGlyphToString
from ufoLib.test.testSupport import Glyph, stripText
# ----------
# Test Cases
# ----------
class TestGLIF1(unittest.TestCase):
def assertEqual(self, first, second, msg=None):
if isinstance(first, basestring):
firs... | apache-2.0 | 785,241,886,212,384,300 | 25.085463 | 145 | 0.584954 | false |
juanchopanza/NeuroM | neurom/morphmath.py | 1 | 12380 | # Copyright (c) 2015, Ecole Polytechnique Federale de Lausanne, Blue Brain Project
# All rights reserved.
#
# This file is part of NeuroM <https://github.com/BlueBrain/NeuroM>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are ... | bsd-3-clause | -7,683,719,952,775,599,000 | 29.79602 | 98 | 0.656704 | false |
karolyi/forum-django | backend/migrate_to_django/markdownparser.py | 1 | 1130 | import html
from bs4.element import Tag
from forum.base.models import Comment
from html2text import html2text
def markdown_smilies(img_tag: Tag):
img_src = img_tag.get('src', '')
if img_src.startswith('/static/images/smiliereplace/'):
img_alt = img_tag.get('alt', '')
img_tag.replace_with(img... | mit | -5,486,757,108,375,557,000 | 28.736842 | 77 | 0.643363 | false |
nextgis-extra/tests | lib_gdal/gdrivers/elas.py | 1 | 2251 | #!/usr/bin/env python
###############################################################################
# $Id: elas.py 32163 2015-12-13 17:44:50Z goatbar $
#
# Project: GDAL/OGR Test Suite
# Purpose: Test ELAS driver
# Author: Even Rouault, <even dot rouault at mines dash paris dot org>
#
############################... | gpl-2.0 | -445,934,128,373,582,000 | 34.171875 | 79 | 0.593958 | false |
leppa/home-assistant | homeassistant/components/google_assistant/http.py | 1 | 8196 | """Support for Google Actions Smart Home Control."""
import asyncio
from datetime import timedelta
import logging
from uuid import uuid4
from aiohttp import ClientError, ClientResponseError
from aiohttp.web import Request, Response
import jwt
# Typing imports
from homeassistant.components.http import HomeAssistantVie... | apache-2.0 | 7,764,571,037,345,269,000 | 33.292887 | 87 | 0.599683 | false |
roac-monitoring/roac-agent | roac/logs.py | 1 | 1388 | # vim: set fileencoding=utf-8 :
from __future__ import absolute_import
import logging
class NullHandler(logging.Handler):
def emit(self, record):
pass
def log_to_stderr(logger=None, level = logging.DEBUG):
"""Configures the python log system to log to stderr
logger: Logger to configure. Pass no... | bsd-3-clause | -5,082,369,550,257,231,000 | 27.916667 | 76 | 0.669308 | false |
endlessm/chromium-browser | third_party/depot_tools/fetch_configs/config_util.py | 2 | 1638 | # Copyright (c) 2013 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.
"""This module holds utilities which make writing configs easier."""
from __future__ import print_function
import json
class Config(object):
"""Bas... | bsd-3-clause | -3,427,243,475,538,356,700 | 30.5 | 80 | 0.681929 | false |
ivmech/iviny-scope | lib/xlsxwriter/test/comparison/test_chart_name04.py | 1 | 2519 | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013, John McNamara, jmcnamara@cpan.org
#
import unittest
import os
from ...workbook import Workbook
from ..helperfunctions import _compare_xlsx_files
class TestCompareXLSXFiles(unittest.TestC... | gpl-3.0 | -6,459,244,008,668,592,000 | 25.515789 | 79 | 0.472807 | false |
TacticalGoat/reddit | DelayBotT/delaybotT.py | 1 | 4260 | #/u/GoldenSights
import praw
import time
import datetime
import sqlite3
'''USER CONFIGURATION'''
APP_ID = ""
APP_SECRET = ""
APP_URI = ""
APP_REFRESH = ""
# https://www.reddit.com/comments/3cm1p8/how_to_make_your_bot_use_oauth2/
USERAGENT = ""
#This is a short description of what the bot does. For example "/u/GoldenS... | mit | -3,111,328,070,677,242,400 | 35.101695 | 482 | 0.68662 | false |
wasade/qiime | tests/test_make_otu_table.py | 1 | 4746 | #!/usr/bin/env python
# file test_make_otu_table
__author__ = "Rob Knight"
__copyright__ = "Copyright 2011, The QIIME Project" # consider project name
__credits__ = ["Rob Knight", "Justin Kuczynski", "Adam Robbins-Pianka"]
__license__ = "GPL"
__version__ = "1.8.0-dev"
__maintainer__ = "Greg Caporaso"
__email__ = "gre... | gpl-2.0 | 984,590,734,029,470,100 | 35.507692 | 91 | 0.584703 | false |
recursecenter/RSVPBot | strings.py | 1 | 2577 | import config
ANNOUNCE_MESSAGE = """
**[{title}]({url})**
{timestamp}
Created by {created_by}
To start an RSVPBot thread for this event:
```{key_word} init {url}```
""".strip()
MSG_CREATE_EVENT_ON_RC_CALENDAR = """
RSVPBot events are saved on the RC calendar. To create an event that will be tracked in this thread, g... | mit | 5,160,972,723,061,756,000 | 52.6875 | 254 | 0.719829 | false |
saymedia/flask-compress | flask_compress.py | 1 | 3222 | import gzip
try:
from io import BytesIO as IO
except:
import StringIO as IO
from flask import request
class Compress(object):
"""
The Compress object allows your application to use Flask-Compress.
When initialising a Compress object you may optionally provide your
:class:`flask.Flask` applic... | mit | -5,863,244,114,132,079,000 | 33.645161 | 114 | 0.597455 | false |
eco32i/ggplot | ggplot/geoms/geom_abline.py | 1 | 1260 | from __future__ import (absolute_import, division, print_function,
unicode_literals)
import matplotlib.pyplot as plt
from matplotlib.dates import drange, date2num
from pandas.lib import Timestamp
from datetime import timedelta
import numpy as np
from .geom import geom
import pandas as pd
class ... | bsd-2-clause | -2,361,244,803,072,503,300 | 34 | 83 | 0.55873 | false |
qvazzler/Flexget | flexget/plugins/urlrewrite/isohunt.py | 1 | 3608 | from __future__ import unicode_literals, division, absolute_import
from builtins import * # pylint: disable=unused-import, redefined-builtin
from future.moves.urllib.parse import quote
import logging
import re
import feedparser
from flexget import plugin
from flexget.entry import Entry
from flexget.event import eve... | mit | -2,577,430,881,180,603,000 | 33.361905 | 120 | 0.56541 | false |
standage/sequniq | sequniq/parse.py | 1 | 3833 | # -----------------------------------------------------------------------------
# Copyright (C) Daniel Standage, 2015. It is licensed under the ISC license,
# see LICENSE.txt. Contact: daniel.standage@gmail.com
# -----------------------------------------------------------------------------
"""
Generators for parsing s... | isc | 2,973,343,182,879,858,700 | 26.378571 | 79 | 0.516045 | false |
alienlike/courier | courier/models/account_link.py | 1 | 1782 | from datetime import datetime
from sqlalchemy import Column, Integer, ForeignKey, Boolean, DateTime
from sqlalchemy.orm import relationship, backref
from .base import DeclarativeBase
class AccountLink(DeclarativeBase):
# table
__tablename__ = 'account_link'
# columns
id = Colum... | gpl-3.0 | 4,681,192,711,699,085,000 | 45.921053 | 109 | 0.643659 | false |
svm-zhang/poolseq_tk | sz_acount.py | 1 | 3378 | '''
python poolseq_tk.py count
Description: Count alleles at each SNP give the pileups
Author: Simo V. Zhang
Input: pileup file with reads bases converted to corresponding alleles
Output: pielup file with allele counts
(1) chr
(2) pos
(3) ref base
(4) alt base
(5) allele counts in the o... | gpl-2.0 | -4,970,120,119,147,440,000 | 26.917355 | 96 | 0.598283 | false |
mbauskar/erpnext | erpnext/patches/v8_7/make_subscription_from_recurring_data.py | 1 | 1634 | # Copyright (c) 2017, Frappe and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
from frappe.utils import today
def execute():
frappe.reload_doc('subscription', 'doctype', 'subscription')
frappe.reload_doc('selling', 'doctype', 'sales_orde... | gpl-3.0 | -903,746,289,309,461,900 | 35.333333 | 87 | 0.72093 | false |
gmjosack/auditor | auditor/wsgi.py | 1 | 1406 | """
WSGI config for auditor project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATION`` ... | mit | 7,586,960,774,314,234,000 | 42.9375 | 79 | 0.792319 | false |
ScienceWorldCA/domelights | backend/domeplayer/scripts/chaser-blue-fade.py | 1 | 1152 | import socket
import sys
import time
import random
import base64
""" Fading white chaser pattern """
HOST, PORT = "localhost", 9999
FIXTURES = 260
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect((HOST, PORT))
canvas = []
for i in range(0,FIXTURES*3):
canvas.append(0)
fp = open( 'running', 'w... | apache-2.0 | 6,400,051,492,977,337,000 | 18.525424 | 56 | 0.594618 | false |
PaddlePaddle/models | PaddleCV/image_classification/fast_imagenet/reader.py | 1 | 6775 | #copyright (c) 2019 PaddlePaddle Authors. All Rights Reserve.
#
#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 | 5,752,484,946,407,509,000 | 34.103627 | 82 | 0.585387 | false |
binary-array-ld/bald | lib/bald/tests/integration/test_hdf_graph.py | 1 | 2434 | import os
import unittest
import h5py
import numpy as np
import bald
from bald.tests import BaldTestCase
def _fattrs(f):
f.attrs['rdf__type'] = 'bald__Container'
group_pref = f.create_group('bald_prefix_list')
group_pref.attrs['bald__'] = 'https://www.opengis.net/def/binary-array-ld/'
group_pref.attr... | bsd-3-clause | 1,929,595,878,869,489,400 | 40.254237 | 108 | 0.591208 | false |
pculture/unisubs | apps/teams/signals.py | 1 | 7525 | # Amara, universalsubtitles.org
#
# Copyright (C) 2013 Participatory Culture Foundation
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your ... | agpl-3.0 | -2,416,420,001,652,783,600 | 40.346154 | 91 | 0.732359 | false |
robwarm/gpaw-symm | gpaw/test/cmrtest/cmr_test4.py | 1 | 1281 | # This test makes sure that the i/o interfaces work with CMR.
# CMR itself does not have to be installed for this test.
#
# The reason why CMR cannot use direct writes to DB/GPAW files is that
# GPAW cannot always write a GPAW without performing a new calculation e.g.
# GPAW(filename).write(...)
# fails in some ra... | gpl-3.0 | -6,507,146,153,682,806,000 | 27.466667 | 89 | 0.69477 | false |
hiroara/remotefile-python | spec/s3_file_spec.py | 1 | 4783 | from remotefile import S3File, RemoteFile
from expects import *
from tempfile import TemporaryDirectory, NamedTemporaryFile
from unittest.mock import patch, MagicMock
import os, re
from boto.s3.bucket import Bucket
from boto.s3.key import Key
with description(S3File):
with before.each:
self.sample_url = '... | mit | 7,604,493,952,905,030,000 | 44.552381 | 132 | 0.595024 | false |
specify/specify7 | specifyweb/workbench/upload/tests/test_bugs.py | 1 | 8187 |
import io
import json
import csv
from pprint import pprint
from unittest import skip
from datetime import datetime
from decimal import Decimal
from ..uploadable import Exclude
from ..upload_result import Uploaded, UploadResult, Matched, FailedBusinessRule, ReportInfo, TreeInfo
from ..upload_table import UploadTable, ... | gpl-2.0 | 6,606,023,491,129,068,000 | 55.854167 | 207 | 0.671064 | false |
perplexes/couchapp | python/couchapp/utils/__init__.py | 1 | 2821 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2009 Benoit Chesneau <benoitc@e-engura.org>
#
# This software is licensed as described in the file LICENSE, which
# you should have received as part of this distribution.
#
import codecs
import os
import sys
import urlparse
import urllib
# compatibility with... | apache-2.0 | 5,177,487,938,545,326,000 | 21.934959 | 74 | 0.56682 | false |
axbaretto/beam | sdks/python/apache_beam/transforms/external_test_it.py | 1 | 2343 | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | apache-2.0 | 4,580,363,643,732,151,000 | 33.455882 | 74 | 0.725992 | false |
tiredpixel/pikka-bird-collector-py | pikka_bird_collector/collectors/postgresql.py | 1 | 4994 | from pikka_bird_collector.parsers.table import Table as Parser
from .base_port_command import BasePortCommand, Base
class Postgresql(BasePortCommand):
"""
Collector for PostgreSQL (http://www.postgresql.org/).
The collector is enabled whenever non-empty settings are passed.
Multip... | mit | -1,248,612,989,321,853,400 | 32.072848 | 80 | 0.489187 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.