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 |
|---|---|---|---|---|---|---|---|---|---|---|
mhrivnak/python-semanticversion | setup.py | 1 | 1895 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2012-2013 Raphaël Barrois
import os
import re
import sys
from setuptools import setup
root_dir = os.path.abspath(os.path.dirname(__file__))
def get_version(package_name):
version_re = re.compile(r"^__version__ = [\"']([\w_.-]+)[\"']$")
package_c... | bsd-2-clause | 5,534,795,490,026,703,000 | 31.084746 | 71 | 0.612256 | false |
Azure/azure-sdk-for-python | sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_12_01/operations/_load_balancer_outbound_rules_operations.py | 1 | 8796 | # 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 | 975,168,652,559,814,300 | 46.804348 | 206 | 0.64518 | false |
Moguri/ullur | src/scripts/attack_manager.py | 1 | 9496 | # Copyright 2013 Daniel Stokes, Mitchell Stokes
#
# 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 | 7,831,219,333,449,191,000 | 29.050633 | 139 | 0.709983 | false |
vertigo235/Sick-Beard-XEM | sickbeard/tvtumbler.py | 1 | 1380 | '''
Created on Aug 26, 2013
Wrappers around tvtumbler access.
@author: dermot@buckley.ie
'''
import time
from sickbeard import helpers
from sickbeard import logger
try:
import json
except ImportError:
from lib import simplejson as json
UPDATE_INTERVAL = 432000 # 5 days
SHOW_LOOKUP_URL = 'http://show-api.t... | gpl-3.0 | -8,656,769,210,096,295,000 | 28.361702 | 96 | 0.64058 | false |
EdLogan18/logan-repository | plugin.video.exodus/resources/lib/sources/tunemovie_mv.py | 1 | 4348 | # -*- coding: utf-8 -*-
'''
Exodus Add-on
Copyright (C) 2016 Exodus
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any l... | gpl-2.0 | 4,080,782,292,295,762,400 | 34.639344 | 189 | 0.533349 | false |
astrobayes/BMAD | chapter_6/code_6.25.py | 1 | 2480 | # From: Bayesian Models for Astrophysical Data, Cambridge Univ. Press
# (c) 2017, Joseph M. Hilbe, Rafael S. de Souza and Emille E. O. Ishida
#
# you are kindly asked to include the complete citation if you used this
# material in a publication
# Code 6.25 - Zero-truncated negative binomial model in Python using S... | gpl-3.0 | 8,588,875,585,503,170,000 | 25.105263 | 78 | 0.566129 | false |
xDeda/tactcat.py | drawingapp.py | 1 | 5276 | from tkinter import *
import pyautogui
import math
draw = []
fromx = 0
fromy = 0
tox = 0
toy = 0
phase = 1
togglevar = 0
def callback(e):
global fromx, fromy, tox, toy, phase, infox, infoy
pos = [0, 1]
pos[0] = master.winfo_pointerx()
pos[1] = master.winfo_pointery()
infox, infoy = click()
if (phase == 0):
... | mit | 3,088,950,010,462,635,000 | 22.873303 | 113 | 0.658832 | false |
ondrokrc/gramps | gramps/plugins/lib/maps/osmgps.py | 1 | 16627 | # -*- python -*-
# -*- coding: utf-8 -*-
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2011-2012 Serge Noiraud
#
# 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-2.0 | -9,199,077,220,181,400,000 | 36.196868 | 107 | 0.525711 | false |
ndp-systemes/odoo-addons | scheduler_async/tests/test_scheduler_async_run_procs.py | 1 | 7242 | # -*- coding: utf8 -*-
#
# Copyright (C) 2017 NDP Systèmes (<http://www.ndp-systemes.fr>).
#
# 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,... | agpl-3.0 | 7,047,190,169,464,346,000 | 46.953642 | 108 | 0.658058 | false |
stefanoteso/musm-adt17 | adt17.py | 1 | 9489 | #!/usr/bin/env python3.5
import sys
import os
import logging
import numpy as np
import musm
from sklearn.utils import check_random_state
from textwrap import dedent
_LOG = musm.get_logger('adt17')
PROBLEMS = {
'synthetic': musm.Synthetic,
'pc': musm.PC,
}
USERS = {
'noiseless': musm.NoiselessUser,
... | mit | 6,166,764,988,512,294,000 | 34.406716 | 89 | 0.547476 | false |
pcmanus/ccm | ccmlib/common.py | 1 | 34212 | #
# Cassandra Cluster Management lib
#
from __future__ import absolute_import
import copy
import fnmatch
import logging
import os
import platform
import re
import shutil
import signal
import socket
import stat
import subprocess
import sys
import time
from distutils.version import LooseVersion #pylint: disable=import... | apache-2.0 | 8,092,441,482,355,559,000 | 35.985946 | 175 | 0.614755 | false |
BeyondTheClouds/nova | nova/db/discovery/api.py | 1 | 253919 | # Copyright (c) 2011 X.commerce, a business unit of eBay Inc.
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file... | apache-2.0 | 2,467,734,757,161,626,000 | 34.935324 | 195 | 0.609651 | false |
TellinaTool/awesome_nmt | encoder_decoder/seq2seq/rnn_decoder.py | 1 | 15532 | """
RNN-based decoders.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
import tensorflow as tf
from encoder_decoder import decoder, data_utils, graph_utils, rnn
class RNNDecoder(decoder.Decoder):
def __init__(self, hyperparame... | gpl-3.0 | -156,950,947,882,189,980 | 50.260726 | 116 | 0.483196 | false |
fsalmoir/EZyRB | tests/test_vtkhandler.py | 1 | 5854 |
from unittest import TestCase
import unittest
import ezyrb.vtkhandler as vh
import numpy as np
import filecmp
import os
class TestVtkHandler(TestCase):
def test_vtk_instantiation(self):
vtk_handler = vh.VtkHandler()
def test_vtk_default_infile_member(self):
vtk_handler = vh.VtkHandler()
assert vtk_handl... | mit | 7,400,576,381,474,663,000 | 30.473118 | 93 | 0.709771 | false |
timlinux/inasafe | safe/gis/vector/prepare_vector_layer.py | 1 | 16942 | # coding=utf-8
"""Prepare layers for InaSAFE."""
import logging
from PyQt4.QtCore import QPyNullVariant
from qgis.core import (
QgsField,
QgsFeatureRequest,
QGis,
QgsExpressionContext,
QgsExpression
)
from safe.common.exceptions import (
InvalidKeywordsForProcessingAlgorithm)
from safe.defin... | gpl-3.0 | -3,798,770,344,162,614,000 | 32.749004 | 79 | 0.632334 | false |
chromium/chromium | tools/privacy_budget/blink_apis/blink_api_proto.py | 6 | 10613 | # Copyright 2020 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 __future__ import print_function
from v8_utilities import capitalize
from google.protobuf.text_format import MessageToString
import web_idl
import blin... | bsd-3-clause | -5,837,196,703,785,977,000 | 41.282869 | 79 | 0.620089 | false |
rsling/cow | src/corex/corex_basic.py | 1 | 14500 | # -*- coding: utf-8 -*-
# Get elemenatry features from COW-DOM.
import os.path
import sys
import glob
import re
from lxml import etree as ET
# Just for rounding. StringHandler etc. maybe?
class FloatHandler:
def __init__(self, digits):
self.digits = digits
def act(self, d):
return str(round... | bsd-2-clause | 2,654,311,583,169,194,000 | 38.243902 | 918 | 0.592846 | false |
sbarnabas/gowhere | magic.py | 1 | 6640 | #!/usr/bin/env python
# coding: utf-8
from datetime import datetime
from HTMLParser import HTMLParser
import argparse
import json
import os
import sys
import urllib2
###############################################################################
# Options
#############################################################... | mit | -1,313,950,203,779,619,600 | 33.583333 | 85 | 0.525151 | false |
nkmk/python-snippets | notebook/feedparser_example.py | 1 | 17786 | import feedparser
import pprint
import time
print(feedparser.__version__)
# 5.2.1
d_atom = feedparser.parse('http://gihyo.jp/feed/atom')
print(type(d_atom))
# <class 'feedparser.FeedParserDict'>
pprint.pprint(d_atom, depth=1)
# {'bozo': 0,
# 'encoding': 'UTF-8',
# 'entries': [...],
# 'feed': {...},
# 'headers':... | mit | -1,421,063,402,178,534,700 | 39.049231 | 144 | 0.64536 | false |
fedspendingtransparency/data-act-broker-backend | tests/unit/dataactvalidator/test_a8_appropriations.py | 1 | 2792 | from dataactcore.models.stagingModels import Appropriation
from dataactcore.models.domainModels import SF133
from tests.unit.dataactvalidator.utils import number_of_errors, query_columns
_FILE = 'a8_appropriations'
_TAS = 'a8_appropriations_tas'
def test_column_headers(database):
expected_subset = {'uniqueid_TA... | cc0-1.0 | -4,519,132,370,091,131,000 | 47.982456 | 101 | 0.659742 | false |
bigswitch/nova | nova/tests/unit/api/openstack/compute/test_cloudpipe_update.py | 1 | 3603 | # Copyright 2012 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/LICENSE-2.0
#
# Unless required by applicable law or agreed t... | apache-2.0 | 786,055,247,900,390,800 | 39.943182 | 78 | 0.620316 | false |
borntyping/supermann | supermann/tests/test_supervisor.py | 1 | 1450 | from __future__ import absolute_import
import os
import StringIO
import mock
import py.test
import supermann.supervisor
def local_file(name):
return os.path.join(os.path.dirname(__file__), name)
@py.test.fixture
def listener():
with open(local_file('supervisor.txt'), 'r') as f:
return supermann.s... | mit | 7,390,106,138,161,277,000 | 27.431373 | 75 | 0.66 | false |
rukayaj/eia | core/migrations/0003_auto_20160205_1051.py | 1 | 3028 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
from django.conf import settings
import core.models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('core', '0002_auto_2016... | gpl-2.0 | -7,470,328,502,815,166,000 | 36.382716 | 126 | 0.55251 | false |
elfmz/far2l | python/configs/plug/plugins/upanel.py | 1 | 3472 | import os
import logging
from far2l.plugin import PluginVFS
log = logging.getLogger(__name__)
class Screen:
def __init__(self, parent):
self.parent = parent
self.hScreen = None
def __enter__(self):
self.hScreen = self.parent.info.SaveScreen(0,0,-1,-1)
def __exit__(self, *args):... | gpl-2.0 | 6,142,778,009,898,682,000 | 33.376238 | 85 | 0.590438 | false |
eResearchSA/reporting-producers | tests/test_jsongrep_parser.py | 1 | 2256 | import unittest
from reporting.parsers import JsonGrepParser
class JsonGrepParserTestCase(unittest.TestCase):
def test_case1(self):
parser=JsonGrepParser(pattern="chargebackData", list_name="hcp-chargeback")
input= '{"chargebackData":[{"systemName":"hcp1.s3.ersa.edu.au"}, {"systemName":"hcp2.s3.e... | apache-2.0 | -3,787,054,151,446,025,700 | 48.043478 | 112 | 0.665337 | false |
littleweaver/django-zenaida | zenaida/contrib/hints/templatetags/hints.py | 1 | 4054 | from django import template
from django.core.urlresolvers import reverse, NoReverseMatch
from zenaida.contrib import hints
from zenaida.contrib.hints.models import Dismissed
from zenaida.contrib.hints.forms import DismissHintForm
register = template.Library()
@register.tag("hint")
def hint(parser, token):
"""
... | bsd-3-clause | 8,631,350,533,585,729,000 | 35.854545 | 139 | 0.532067 | false |
napalm-automation/napalm-yang | napalm_yang/models/openconfig/vlans/vlan/members/member/interface_ref/state/__init__.py | 1 | 9178 | # -*- coding: utf-8 -*-
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBool
from pyangbind.lib.yangtypes import YANGListTy... | apache-2.0 | -9,067,072,770,732,377,000 | 37.241667 | 329 | 0.596099 | false |
MattDevo/edk2 | BaseTools/Scripts/PackageDocumentTools/plugins/EdkPlugins/edk2/model/dec.py | 1 | 9287 | ## @file
#
# Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>
#
# This program and the accompanying materials are licensed and made available
# under the terms and conditions of the BSD License which accompanies this
# distribution. The full text of the license may be found at
# http://open... | bsd-2-clause | -6,716,872,132,618,789,000 | 27.112853 | 99 | 0.576612 | false |
yamahata/python-tackerclient | tackerclient/v1_0/client.py | 1 | 16159 | # 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 | -3,739,107,755,041,018,000 | 38.316302 | 79 | 0.604679 | false |
vpelletier/neoppod | neo/scripts/neoadmin.py | 1 | 1459 | #!/usr/bin/env python
#
# neoadmin - run an administrator node of NEO
#
# Copyright (C) 2009-2016 Nexedi SA
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License,... | gpl-2.0 | 494,103,312,057,351,700 | 32.159091 | 75 | 0.718986 | false |
mclarkson/obdi-saltconfigserver | scripts/update_gitfs_cache.py | 1 | 1711 | #!/bin/env python
#
# Obdi - a REST interface and GUI for deploying software
# Copyright (C) 2014 Mark Clarkson
#
# 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... | gpl-3.0 | -122,485,219,555,617,860 | 27.516667 | 71 | 0.675628 | false |
ant31/kpm | kpm/formats/kub_base.py | 1 | 7117 | import io
import tempfile
import json
from urlparse import urlparse
import copy
import tarfile
import shutil
import logging
import os.path
import yaml
from cnrclient.discovery import ishosted, split_package_name
import kpm.registry as registry
import kpm.packager as packager
from kpm.utils import mkdir_p
from kpm.uti... | apache-2.0 | -9,166,837,297,015,897,000 | 30.772321 | 99 | 0.537727 | false |
rohitw1991/smarttailorfrappe | frappe/config/setup.py | 1 | 5602 | from frappe import _
from frappe.widgets.moduleview import add_setup_section
def get_data():
data = [
{
"label": _("Users and Permissions"),
"icon": "icon-group",
"items": [
{
"type": "doctype",
"name": "User",
"description": _("System and Website Users")
},
{
"type": "docty... | mit | -7,373,159,464,544,381,000 | 23.042918 | 83 | 0.520707 | false |
rtrwalker/geotecha | tools/delete_files_ending_in_tilde.py | 1 | 3900 | # geotecha - A software suite for geotechncial engineering
# Copyright (C) 2018 Rohan T. Walker (rtrwalker@gmail.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 L... | gpl-3.0 | 8,885,603,661,803,638,000 | 36.509615 | 104 | 0.601538 | false |
SymbiFlow/prjuray | fuzzers/002-tilegrid/clem_r/top.py | 1 | 1815 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright (C) 2020 The Project U-Ray Authors.
#
# Use of this source code is governed by a ISC-style
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/ISC
#
# SPDX-License-Identifier: ISC
import os
import random
random.seed(int(o... | isc | 8,936,989,087,958,077,000 | 24.56338 | 98 | 0.519559 | false |
patrickbwarren/SunlightHNC | gw_p_compare.py | 1 | 2321 | #!/usr/bin/env python3
# This file is part of SunlightDPD - a home for open source software
# related to the dissipative particle dynamics (DPD) simulation
# method.
# Based on an original code copyright (c) 2007 Lucian Anton.
# Modifications copyright (c) 2008, 2009 Andrey Vlasov.
# Additional modifications copyri... | gpl-2.0 | -3,540,673,232,949,221,000 | 30.364865 | 70 | 0.672124 | false |
msvbhat/distaf | distaf/volume_ops.py | 1 | 17875 | #!/usr/bin/env python
# This file is part of DiSTAF
# Copyright (C) 2015-2016 Red Hat, Inc. <http://www.redhat.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of th... | gpl-2.0 | 4,796,257,683,319,168,000 | 33.574468 | 79 | 0.563748 | false |
hellsgate1001/graphs | hack_plot/api/serializers.py | 1 | 1248 | from rest_framework import serializers
from ..models import SshHackIP, SshHackLocation
class HackIpSerializer(serializers.ModelSerializer):
attempts = serializers.SerializerMethodField()
def get_attempts(self, obj):
return [
{
'id': x.id,
'attempted': x.at... | mit | -5,571,386,398,493,157,000 | 24.469388 | 80 | 0.524038 | false |
jaromrax/vme | 02_gregory/scripts/counter_test/mmap_startstop.py | 1 | 2145 | #!/usr/bin/python3
import mmap
import contextlib
import time
import mmap
def getMM():
with open(".mmap.1.vme", "r+b") as f:
mm = mmap.mmap(f.fileno(), 0)# memory-map the file,size 0= whole
qqqqq= mm.readline()
return mm
print("I can watch mmapfile now:")
mystatus='stop'
mystatus='===='
mm=get... | gpl-2.0 | -3,886,287,125,998,798,300 | 27.223684 | 79 | 0.468531 | false |
nerdvegas/rez | src/rez/cli/yaml2py.py | 1 | 1656 | """
Print a package.yaml file in package.py format.
"""
from __future__ import print_function
def setup_parser(parser, completions=False):
parser.add_argument(
"PATH", type=str, nargs='?',
help="path to yaml to convert, or directory to search for package.yaml;"
" cwd if not provided")
de... | lgpl-3.0 | -8,332,321,005,046,832,000 | 30.846154 | 80 | 0.705314 | false |
eren/bugspy | bugspy/bugparser.py | 1 | 6695 | #!/usr/bin/python
# -*- coding: utf-8 -*-
import piksemel
from bugspy.error import ParseError, BugzillaError
from bugspy.constants import Constants as constants
class BugStruct(object):
"""A container which can be accessed like class objects
f = BugStruct(foo="bar", baz="heh", bug=BugStruct("id": 1))
f.s... | gpl-2.0 | 6,014,441,359,802,927,000 | 31.028708 | 151 | 0.536002 | false |
StevenCHowell/code_sas_modeling | sas_modeling/geometric.py | 1 | 13131 | #!/usr/bin/env python
# coding:utf-8
'''
Author: Steven C. Howell --<steven.howell@nist.gov>
Purpose: definiton of geometric shapes and their scattering
Created: 02/03/2017
00000000011111111112222222222333333333344444444445555555555666666666677777777778
1234567890123456789012345678901234567890123456789012... | gpl-3.0 | -6,022,846,960,485,903,000 | 30.489209 | 96 | 0.529586 | false |
akittas/geocoder | geocoder/arcgis_reverse.py | 1 | 2489 | #!/usr/bin/python
# coding: utf8
from __future__ import absolute_import
from geocoder.arcgis import Arcgis
from geocoder.location import Location
class ArcgisReverse(Arcgis):
"""
ArcGIS REST API
=======================
The World Geocoding Service finds addresses and places in all supported countries
... | mit | -2,753,164,750,829,711,400 | 26.655556 | 103 | 0.609883 | false |
benrudolph/commcare-hq | corehq/apps/userreports/reports/factory.py | 1 | 4971 | import json
from jsonobject.exceptions import BadValueError
from corehq.apps.reports_core.filters import DatespanFilter, ChoiceListFilter, Choice, DynamicChoiceListFilter, \
NumericFilter
from corehq.apps.userreports.exceptions import BadSpecError
from django.utils.translation import ugettext as _
from corehq.apps.... | bsd-3-clause | -3,618,213,141,510,659,600 | 32.362416 | 113 | 0.622209 | false |
jarretluft/bCNC | CNCPendant.py | 1 | 5324 | # -*- coding: latin1 -*-
# $Id: CNCPendant.py,v 1.3 2014/10/15 15:04:48 bnv Exp bnv $
#
# Author: Vasilis.Vlachoudis@cern.ch
# Date: 06-Oct-2014
__author__ = "Vasilis Vlachoudis"
__email__ = "Vasilis.Vlachoudis@cern.ch"
import os
import sys
#import cgi
import json
import threading
import urllib
from websocket_server... | gpl-2.0 | -7,774,686,962,426,335,000 | 26.163265 | 117 | 0.583208 | false |
zyndagj/ZED-bsmap-align | zed-align.py | 1 | 15337 | #!/usr/bin/env python
from math import ceil
import os
import sys
import argparse
import multiprocessing
import subprocess as sp
import re
#from pprint import pprint
from array import array
from yaml import load, dump
contexts = ('CG','CHG','CHH')
def main():
fCheck = fileCheck() #class for checking parameters
pars... | bsd-3-clause | -5,348,734,016,164,579,000 | 42.571023 | 207 | 0.573385 | false |
elbeardmorez/quodlibet | quodlibet/quodlibet/ext/songsmenu/html.py | 1 | 2241 | # -*- coding: utf-8 -*-
# Copyright 2005 Eduardo Gonzalez
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
from quodli... | gpl-2.0 | -609,721,440,372,669,300 | 27.0125 | 70 | 0.606872 | false |
CmWork/RegressionReport | models/db.py | 1 | 6228 | # -*- coding: utf-8 -*-
#########################################################################
## This scaffolding model makes your app work on Google App Engine too
## File is released under public domain and you can use without limitations
#########################################################################
... | gpl-2.0 | 9,043,120,127,899,749,000 | 45.827068 | 258 | 0.615125 | false |
nce/sedater | sedater/plotter/main.py | 1 | 1499 | # ./sedater/plotter/main.py
# Author: Ulli Goschler <ulligoschler@gmail.com>
# Modified: Thu, 10.12.2015 - 20:25:10
import sys,os
sys.path.insert(0, os.getcwd())
import re
from sedater.plotter.options import CLIParser
from sedater.plotter.plotter import Plotter
if __name__ == "__main__":
cli = CLIParser()
... | mit | 8,716,604,688,822,519,000 | 30.893617 | 80 | 0.615077 | false |
zerthimon/archive_whisper_store | archive_whisper_store.py | 1 | 3320 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# archive_whisper_store.py: Backup Whisper Store to a Gzipped Tar Archive.
#
# Author: Lior Goikhburg <goikhburg at gmail.com>
#
# Set the 'WHISPER_LOCK_WRITES = True' parameter in carbon.conf for consistent backups
import argparse
import fcntl
import tarfile
import logg... | gpl-2.0 | 339,008,337,865,672,770 | 32.877551 | 104 | 0.625904 | false |
jtriley/s3site | s3site/static.py | 1 | 2179 | """
Module for storing static data structures
"""
import os
import sys
VERSION = 0.9999
PID = os.getpid()
S3SITE_CFG_DIR = os.path.join(os.path.expanduser('~'), '.s3site')
S3SITE_CFG_FILE = os.path.join(S3SITE_CFG_DIR, 'config')
S3SITE_LOG_DIR = os.path.join(S3SITE_CFG_DIR, 'logs')
S3SITE_META_FILE = '__s3site.cfg'
... | gpl-3.0 | 8,637,566,825,480,623,000 | 32.523077 | 75 | 0.605782 | false |
maxplanck-ie/HiCExplorer | hicexplorer/test/general/test_hicAggregateContacts.py | 1 | 7744 | import warnings
warnings.simplefilter(action="ignore", category=RuntimeWarning)
warnings.simplefilter(action="ignore", category=PendingDeprecationWarning)
import matplotlib as mpl
mpl.use('agg')
from matplotlib.testing.compare import compare_images
import os.path
from tempfile import NamedTemporaryFile
import hicexplor... | gpl-2.0 | -4,942,095,723,157,757,000 | 42.751412 | 120 | 0.694215 | false |
eahrold/Crypt-Server | server/migrations/0001_initial.py | 1 | 1392 | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Computer'
db.create_table('server_computer', (
('id', self.gf('django.db.models.... | apache-2.0 | -6,627,562,643,909,896,000 | 37.694444 | 109 | 0.588362 | false |
f3at/feat | src/feat/interface/observer.py | 1 | 1784 | # F3AT - Flumotion Asynchronous Autonomous Agent Toolkit
# Copyright (C) 2010,2011 Flumotion Services, S.A.
# All rights reserved.
# 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... | gpl-2.0 | -5,355,542,112,715,955,000 | 33.980392 | 75 | 0.703475 | false |
shakamunyi/sahara | sahara/tests/unit/plugins/vanilla/test_utils.py | 1 | 5048 | # Copyright (c) 2014 Mirantis Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | apache-2.0 | -3,739,461,766,329,409,000 | 42.517241 | 73 | 0.543384 | false |
amas0/patools | patools/dataset.py | 1 | 12952 | import pandas as pd
import patools.trial as tr
import os
import numpy as np
from collections import OrderedDict
class Dataset:
def __init__(self, directory=os.getcwd(), nbs=False):
self.trials = self.loadDataset(directory, nbs=nbs)
self.df = pd.DataFrame(index=self.trials.keys())
self._get... | mit | 8,661,511,466,148,958,000 | 39.475 | 82 | 0.51189 | false |
qwcode/pip | pip/locations.py | 1 | 5528 | """Locations where we look for configs, install stuff, etc"""
import sys
import site
import os
import tempfile
from distutils.command.install import install, SCHEME_KEYS
import getpass
from pip.backwardcompat import get_python_lib
import pip.exceptions
DELETE_MARKER_MESSAGE = '''\
This file is placed here by pip to ... | mit | 6,825,077,443,133,603,000 | 34.664516 | 94 | 0.6411 | false |
DannyArends/genenetwork2 | wqflask/wqflask/marker_regression/display_mapping_results.py | 1 | 123026 | # Copyright (C) University of Tennessee Health Science Center, Memphis, TN.
#
# 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 option) any la... | agpl-3.0 | -4,374,926,609,536,563,000 | 50.866358 | 272 | 0.549274 | false |
siis/pfwall | tools/pfwall/pftables/modules.py | 1 | 1277 | import ConfigParser
import os
import sys
# Dealing with registering match and target modules
match_modules_registered = {}
target_modules_registered = {}
def register_target_module(name, func):
target_modules_registered[name.lower()] = func
def get_target_module_func(name):
if name.lower() in target_modules_regi... | gpl-2.0 | 6,047,247,875,065,488,000 | 30.146341 | 61 | 0.738449 | false |
hzlf/openbroadcast.org | website/apps/media_asset/util/grapher.py | 1 | 17923 | #!/usr/bin/env python
# processing.py -- various audio processing functions
# Copyright (C) 2008 MUSIC TECHNOLOGY GROUP (MTG)
# UNIVERSITAT POMPEU FABRA
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# publish... | gpl-3.0 | 3,122,047,624,547,121,000 | 33.667311 | 100 | 0.569269 | false |
nilsonmorales/Badass | Packages_POU/pre-paquetes/20140430/20140430.pet/usr/share/local/apps/VideoThumbnail/thumb.py | 1 | 4964 | # $Id: thumb.py,v 1.4 2006/05/30 09:24:18 stephen Exp $
"""Template for a thumbnail generation program. This provides a Python
class which you extend to generate a thumbnail image for a type of file.
An example is included which generates thumbnails for text files. A more
useful implemetation is VideoThumbnail.
""... | gpl-3.0 | 8,253,834,313,409,660,000 | 31.657895 | 75 | 0.559025 | false |
femtotrader/pyfolio | pyfolio/tests/test_pos.py | 1 | 6812 | from unittest import TestCase
from nose_parameterized import parameterized
from collections import OrderedDict
import os
import gzip
from pandas import (
Series,
DataFrame,
date_range,
Timestamp,
read_csv
)
from pandas.util.testing import assert_frame_equal
from numpy import (
arange,
zero... | apache-2.0 | -8,497,933,115,427,768,000 | 35.623656 | 77 | 0.52158 | false |
hiatobr/midiacapoeira | models/menu.py | 1 | 6415 | # -*- coding: utf-8 -*-
# this file is released under public domain and you can use without limitations
response.logo = A(
B('Mídia Capoeira'),
XML('™ '),
_class="brand",
_href=domainname
)
response.title = 'Mídia Capoeira'
response.subtitle = 'garimpando no lado de baixo do tapete'
response.meta.autho... | gpl-3.0 | 2,605,010,243,501,771,000 | 44.721429 | 152 | 0.516013 | false |
bellettif/MultimodePIF | PythonWksp/classic_HMM/inference/Test_Viterbi.py | 1 | 1819 | '''
Created on 8 mai 2014
@author: Francois Belletti
'''
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.cm as cm
from surrogate.Markov_model import Markov_model
from HMM_algos import Proba_computer
initial = [0.1, 0.1, 0.1]
A = [[0.3, 0.5, 0.3], [0.3, 0.3, 0.5], [0.5, 0.3, 0.3]]
alphabet = ... | gpl-2.0 | 603,588,227,454,014,700 | 19.908046 | 99 | 0.581089 | false |
Kotaimen/awscfncli | awscfncli2/cli/utils/pprint.py | 1 | 15613 | """Proxy interfaces for cli print."""
import difflib
import json
import backoff
import botocore.exceptions
import click
import yaml
from .colormaps import CHANGESET_STATUS_TO_COLOR, CHANGESET_ACTION_TO_COLOR, \
CHANGESET_REPLACEMENT_TO_COLOR, DRIFT_STATUS_TO_COLOR, \
STACK_STATUS_TO_COLOR, CHANGESET_RESOURCE_... | mit | 8,779,636,657,920,822,000 | 41.542234 | 125 | 0.554538 | false |
Kvoti/ditto | ditto/formbuilder/renderer.py | 1 | 3294 | from tabulate import tabulate
from . import models
def render_form(form):
s = form.title + '\n\n'
for question in form.questions.order_by('order').select_subclasses():
s += _render_question_heading(question)
s += _render_question(question) + '\n\n'
return s
def _render_question_heading(... | bsd-3-clause | -2,711,049,681,233,670,700 | 27.153846 | 85 | 0.600789 | false |
tonyseek/rsocks | rsocks/utils.py | 1 | 2050 | from __future__ import unicode_literals
import os
import sys
import logging
from six.moves.urllib.parse import urlparse, parse_qsl
from .green import socks
__all__ = ['parse_proxy_uri', 'printable_uri', 'debug']
def parse_proxy_uri(uri):
uri = urlparse(uri)
proxy_options = dict(parse_qsl(uri.query))
... | mit | 6,146,472,114,585,619,000 | 26.333333 | 75 | 0.596585 | false |
yeleman/snisi | snisi_trachoma/indicators.py | 1 | 3288 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim: ai ts=4 sts=4 et sw=4 nu
from __future__ import (unicode_literals, absolute_import,
division, print_function)
import copy
from snisi_core.indicators import (IndicatorTable, Indicator,
gen_report_indicator)
... | mit | 848,647,027,905,594,900 | 27.034188 | 73 | 0.639024 | false |
brguez/TEIBA | src/python/makeConsensusVCF.MEI.py | 1 | 27711 | #!/usr/bin/env python
#coding: utf-8
#### FUNCTIONS ####
def header(string):
"""
Display header
"""
timeInfo = time.strftime("%Y-%m-%d %H:%M")
print '\n', timeInfo, "****", string, "****"
def info(string):
"""
Display basic information
"""
timeInfo = time.strftime("%Y-%m-%... | gpl-3.0 | 1,597,810,666,362,342,400 | 45.561345 | 237 | 0.638283 | false |
haamoon/tensorpack | tensorpack/dataflow/tf_func.py | 1 | 2482 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# File: tf_func.py
# Author: Yuxin Wu <ppwwyyxxc@gmail.com>
import tensorflow as tf
from .base import ProxyDataFlow
""" This file was deprecated """
__all__ = []
class TFFuncMapper(ProxyDataFlow):
def __init__(self, ds,
get_placeholders, symbf, ap... | apache-2.0 | -2,703,263,593,143,187,000 | 30.417722 | 86 | 0.556003 | false |
kosborn/PyDeepSee | PyDeepSee/__init__.py | 1 | 3216 | """
License: GPLv2
Python bindings for Solera DeepSee forensics tool
"""
import requests,sys,math,pprint,time
from datetime import datetime, timedelta
class PyDeepSee:
def __init__(self,server,username,password,verify=True):
self.server=server
self.username=username
self.password=password
self.verify=ver... | gpl-2.0 | -6,653,746,003,933,924,000 | 23.549618 | 138 | 0.699938 | false |
vdragan1993/serbian-document-network | src/relationship_builder.py | 1 | 3823 | # coding=utf-8
__author__ = "Dragan Vidakovic"
import reader
import os
import writer
from nltk.tokenize import RegexpTokenizer
import serbian_stemmer
def load_doc_num(file_path):
lines = reader.read_file_line(file_path)
doc_num_mapper = {}
num_doc_mapper = {}
clean_lines = [line[:-2] for line in lines... | apache-2.0 | 654,675,548,980,116,200 | 29.830645 | 109 | 0.636673 | false |
rspeer/csc-pysparse | doc/pysparse/source/conf.py | 1 | 6556 | # -*- coding: utf-8 -*-
#
# Pysparse documentation build configuration file, created by
# sphinx-quickstart on Sat Nov 8 00:17:09 2008.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# The contents of this file are pickled, so don't put values in the namespace
# that aren't pickle... | bsd-2-clause | -1,795,063,004,040,877,800 | 31.78 | 82 | 0.724527 | false |
DSSG2017/florence | src/utils/plotting/gpdutils.py | 1 | 4695 | import pandas as pd
import geopandas as gpd
import shapely as sp
import numpy as np
from scipy.spatial import Voronoi
def convert_point_csv_to_data_frame(path, lat_key='lat', lon_key='lon',
encoding='utf-8', separator='\t',
decimal='.', index_col... | mit | 2,671,435,066,684,136,000 | 33.777778 | 80 | 0.646645 | false |
donK23/shed01 | PyBeispiele/SherlockRec/app/views.py | 1 | 3398 | """
Views
"""
from flask import render_template, request, redirect, url_for
from app import app
import models
import json
import collections
rating_to_process = None
# MAIN page
@app.route("/")
def index():
return render_template("index.html")
# SURVEY page
@app.route("/survey")
def survey():
global bookT... | apache-2.0 | -7,004,490,056,156,988,000 | 32 | 117 | 0.645674 | false |
syci/ingadhoc-odoo-addons | product_pack_discount/__openerp__.py | 1 | 1505 | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2009 Àngel Àlvarez - NaN (http://www.nan-tic.com)
# All Rights Reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero ... | agpl-3.0 | 2,295,275,906,327,924,500 | 29.673469 | 78 | 0.551564 | false |
bolkedebruin/airflow | airflow/contrib/operators/datastore_export_operator.py | 1 | 1738 | # -*- 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 | 3,552,485,356,281,939,500 | 38.5 | 106 | 0.738205 | false |
tysonholub/twilio-python | tests/integration/preview/trusted_comms/test_device.py | 1 | 1401 | # coding=utf-8
r"""
This code was generated by
\ / _ _ _| _ _
| (_)\/(_)(_|\/| |(/_ v1.0.0
/ /
"""
from tests import IntegrationTestCase
from tests.holodeck import Request
from twilio.base.exceptions import TwilioException
from twilio.http.response import Response
class DeviceTestCase(Integratio... | mit | -7,126,152,793,064,093,000 | 29.456522 | 119 | 0.596003 | false |
YarkoL/colorcore | lib/bitcoin/wallet.py | 1 | 9562 | # Copyright (C) 2012-2014 The python-bitcoinlib developers
#
# This file is part of python-bitcoinlib.
#
# It is subject to the license terms in the LICENSE file found in the top-level
# directory of this distribution.
#
# No part of python-bitcoinlib, including this file, may be copied, modified,
# propagated, or dist... | mit | -3,244,833,931,316,918,300 | 35.776923 | 117 | 0.649864 | false |
projectshift/shift-media | shiftmedia/paths.py | 1 | 9544 | import hashlib
from shiftmedia import exceptions as x
from shiftmedia import utils
class PathBuilder:
def __init__(self, secret_key):
"""
Path builder constructor
Initializes path builder service.
:param secret_key: string - secret key from config
"""
self.secret_ke... | mit | -5,693,655,965,590,283,000 | 32.843972 | 80 | 0.570096 | false |
okolisny/integration_tests | cfme/tests/automate/test_instance.py | 1 | 2234 | # -*- coding: utf-8 -*-
import fauxfactory
import pytest
from cfme import test_requirements
from cfme.utils import error
from cfme.utils.update import update
from cfme.automate.explorer.domain import DomainCollection
pytestmark = [test_requirements.automate]
@pytest.yield_fixture(scope='module')
def domain(applian... | gpl-2.0 | -8,482,818,611,126,114,000 | 27.278481 | 62 | 0.699642 | false |
bancek/egradebook | src/apps/infosys/migrations/0005_auto__add_field_ocena_datum_vnosa__add_field_ocena_datum_spremembe.py | 1 | 11590 | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Ocena.datum_vnosa'
db.add_column('infosys_ocena', 'datum_vnosa', self.gf('django.db.model... | gpl-3.0 | 1,098,968,508,762,735,000 | 73.294872 | 233 | 0.553581 | false |
reyoung/Paddle | python/paddle/fluid/contrib/tests/test_quantize_transpiler.py | 1 | 11345 | # copyright (c) 2018 paddlepaddle authors. all rights reserved.
#
# licensed under the apache license, version 2.0 (the "license");
# you may not use this file except in compliance with the license.
# you may obtain a copy of the license at
#
# http://www.apache.org/licenses/license-2.0
#
# unless required by app... | apache-2.0 | 8,558,984,334,814,491,000 | 39.663082 | 90 | 0.554606 | false |
longyangking/Husky | Husky/Optimize/Graph.py | 1 | 1699 | import numpy as np
import heapq
class Graph:
def __init__(self,vertices=None):
if vertices is None:
self.vertices = {}
else:
# Need to check data-structure
self.vertices = vertices
def addvertex(self,name,edges):
self.vertices[name] = edges
def ... | lgpl-2.1 | 2,880,668,799,225,625,600 | 28.310345 | 77 | 0.476162 | false |
sebrandon1/nova | nova/tests/unit/virt/xenapi/stubs.py | 1 | 14212 | # Copyright (c) 2010 Citrix Systems, 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 la... | apache-2.0 | -2,966,047,264,957,313,000 | 33.918919 | 78 | 0.593935 | false |
aio-libs/aiomysql | tests/base.py | 1 | 3811 | import asyncio
import os
import aiomysql
from tests._testutils import BaseTest
class AIOPyMySQLTestCase(BaseTest):
@asyncio.coroutine
def _connect_all(self):
conn1 = yield from aiomysql.connect(loop=self.loop, host=self.host,
port=self.port, user=self.user,... | mit | -6,350,150,375,881,994,000 | 41.820225 | 79 | 0.473629 | false |
kyungtaekLIM/PSI-BLASTexB | src/ncbi-blast-2.5.0+/c++/scripts/projects/igblast/post_build/rpm/make_rpm.py | 1 | 5630 | #!/usr/bin/env python3
"""Script to create a source/binary RPM.
"""
# $Id: make_rpm.py 496124 2016-03-23 20:34:27Z camacho $
from __future__ import print_function
import sys, os, shutil
from optparse import OptionParser
import subprocess
import tarfile
SCRIPT_DIR = os.path.dirname(os.path.abspath(sys.argv[0]))
sys.pat... | lgpl-3.0 | 8,979,687,938,229,214,000 | 31.732558 | 84 | 0.607815 | false |
darkman66/langcodes | langcodes/db_sqlite.py | 1 | 13427 | import sqlite3
import json
import threading
from util import data_filename
class lazy_property(object):
"""
A lazy_property decorator from StackOverflow:
http://stackoverflow.com/a/6849299/773754
"""
def __init__(self, fget):
self.fget = fget
self.func_name = fget.__name__
de... | mit | 8,022,281,609,776,654,000 | 32.317618 | 116 | 0.564236 | false |
brkt/brkt-cli | brkt_cli/brkt_jwt/test_jwt.py | 1 | 4946 | # Copyright 2017 Bracket Computing, 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.
# A copy of the License is located at
#
# https://github.com/brkt/brkt-cli/blob/master/LICENSE
#
# or in the "license" file... | apache-2.0 | -5,502,866,790,442,019,000 | 34.582734 | 77 | 0.630206 | false |
DanielCollins/pgtq | src/schema.py | 1 | 3243 | """SQL for storing and working on tasks."""
SQL_TEMPLATE = """
CREATE TABLE IF NOT EXISTS pgtq_{0}_scheduled (
key INTEGER PRIMARY KEY,
not_before TIMESTAMP WITHOUT TIME ZONE NOT NULL,
task JSON NOT NULL,
attempts INTEGER NOT NULL,
max_retries INTEGER
);
CREATE INDEX IF NOT EXISTS
ix_pgtq_{0}_scheduled_no... | isc | -3,844,235,232,650,008,600 | 28.481818 | 72 | 0.63799 | false |
qvazzler/Flexget | tests/test_sort_by.py | 1 | 2756 | from __future__ import unicode_literals, division, absolute_import
from builtins import * # pylint: disable=unused-import, redefined-builtin
class TestSortBy(object):
config = """
tasks:
test1:
sort_by: title
mock:
- {title: 'B C D', url: 'http://localhost... | mit | 6,076,091,782,414,036,000 | 42.746032 | 105 | 0.550073 | false |
boto/s3transfer | tests/integration/test_crt.py | 1 | 12474 | # Copyright 2021 Amazon.com, Inc. or its affiliates. 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. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompa... | apache-2.0 | -1,206,893,386,883,824,600 | 37.619195 | 80 | 0.598846 | false |
Rhoana/rh_aligner | old/export_mesh.py | 1 | 1903 | import sys
import os
import glob
import argparse
from subprocess import call
from bounding_box import BoundingBox
import json
import itertools
import utils
def export_mesh(jar_file, image_width, image_height, out_fname, conf=None):
conf_args = utils.conf_args_from_file(conf, 'ExportMesh')
java_cmd = 'java -Xm... | mit | -2,538,754,642,739,668,500 | 37.836735 | 171 | 0.61114 | false |
ProjectQ-Framework/ProjectQ | projectq/setups/decompositions/sqrtswap2cnot.py | 1 | 1588 | # -*- coding: utf-8 -*-
# Copyright 2018 ProjectQ-Framework (www.projectq.ch)
#
# 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 | -7,979,988,676,417,737,000 | 34.288889 | 94 | 0.693325 | false |
bev-a-tron/Robohash | robohash/test/server_test.py | 1 | 1850 | from hashlib import sha1
from tornado.web import Application
from tornado.testing import AsyncHTTPTestCase
from tornado.test.util import unittest
from PIL import Image
from robohash.webfront import ImgHandler
class BaseImageHandlerTest(AsyncHTTPTestCase):
def get_app(self):
return Application(((r"/", Im... | mit | -3,161,295,976,755,208,000 | 27.461538 | 64 | 0.647027 | false |
linkhub-sdk/popbill.closedown.example.py | getChargeURL.py | 1 | 1184 | # -*- coding: utf-8 -*-
# code for console Encoding difference. Dont' mind on it
import sys
import imp
imp.reload(sys)
try:
sys.setdefaultencoding('UTF8')
except Exception as E:
pass
import testValue
from popbill import ClosedownService, PopbillException
closedownService = ClosedownService(testValue.LinkID,... | mit | -9,046,490,234,838,626,000 | 24.463415 | 74 | 0.734674 | false |
machalekj/ontap-api-wrapper | setup.py | 1 | 1076 | #!/usr/bin/env python
from setuptools import setup
setup(name='ontap-api-wrapper',
version='0.5.4.post0',
description='Python wrapper for NetApp Manageability SDK',
author='Andrew Leonard',
author_email='andy.leonard@sbri.org',
maintainer='Jiri Machalek',
maintainer_email='machalek... | apache-2.0 | 6,061,288,055,529,719,000 | 36.103448 | 90 | 0.611524 | false |
wangjun/flask-admin | flask_admin/contrib/mongoengine/view.py | 1 | 18887 | import logging
from flask import request, flash, abort, Response
from flask.ext.admin import expose
from flask.ext.admin.babel import gettext, ngettext, lazy_gettext
from flask.ext.admin.model import BaseModelView
from flask.ext.admin._compat import iteritems, string_types
import mongoengine
import gridfs
from mongo... | bsd-3-clause | -3,655,146,573,183,305,000 | 29.660714 | 114 | 0.532906 | false |
contextio/Python-ContextIO | tests/lib/resources/test_user.py | 1 | 3127 | from mock import Mock, patch
import unittest
from contextio.lib.errors import ArgumentError
from contextio.lib.resources.connect_token import ConnectToken
from contextio.lib.resources.user import User
from contextio.lib.resources.email_account import EmailAccount
from contextio.lib.resources.webhook import WebHook
c... | apache-2.0 | -7,941,280,583,672,759,000 | 38.582278 | 89 | 0.68692 | false |
kvnn/btcimg | btcimg/settings/base.py | 1 | 5315 | """
Django settings for btcimg project.
Generated by 'django-admin startproject' using Django 1.8.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build paths i... | gpl-2.0 | -5,483,455,525,117,364,000 | 28.203297 | 98 | 0.620132 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.