repo_name stringlengths 5 92 | path stringlengths 4 221 | copies stringclasses 19
values | size stringlengths 4 6 | content stringlengths 766 896k | 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 32 997 | alpha_frac float64 0.25 0.96 | autogenerated bool 1
class | ratio float64 1.5 13.6 | config_test bool 2
classes | has_no_keywords bool 2
classes | few_assignments bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Ircam-Web/mezzanine-organization | organization/agenda/migrations/0033_dynamicmultimediaevent.py | 1 | 1459 | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2018-11-30 10:33
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import mezzanine.core.fields
class Migration(migrations.Migration):
dependencies = [
('contenttypes', '0002_remove_co... | agpl-3.0 | 7,624,932,403,393,662,000 | 43.212121 | 199 | 0.626456 | false | 3.90107 | false | false | false |
JamieCressey/apt-s3 | apts3/__init__.py | 1 | 6562 | # Copyright 2016 Jamie Cressey
#
# 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 | -2,980,966,164,605,318,700 | 32.141414 | 287 | 0.556995 | false | 4.015912 | false | false | false |
noam09/deluge-telegramer | telegramer/include/telegram/passport/credentials.py | 1 | 17262 | #!/usr/bin/env python
#
# A library that provides a Python interface to the Telegram Bot API
# Copyright (C) 2015-2018
# Leandro Toledo de Souza <devs@python-telegram-bot.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser Public License as published by
#... | gpl-3.0 | -7,892,456,958,463,140,000 | 38.321185 | 99 | 0.630344 | false | 4.321983 | false | false | false |
ngsutils/ngsutils | ngsutils/gtf/add_xref.py | 1 | 3246 | #!/usr/bin/env python
## category General
## desc Appends name annotation from UCSC Xref file
'''Adds gene name annotations to a GTF file (xref)
This adds gene name annotations based upon the KnownGene annotations from the
UCSC Genome Browser. Gene names will be taken from the kgXref table. This
table must be download... | bsd-3-clause | -469,859,513,389,635,600 | 29.336449 | 103 | 0.541282 | false | 3.743945 | false | false | false |
Seegnify/Elasticcrawler | lib/curlheaders.py | 1 | 1702 | """
API to extract bits and pieces from CURL (command line utility) headers file.
The headers can be obtained by calling: curl -D 'headers' 'url'.
Currenlty supported formats are for protocols: HTTP, HTTPS.
"""
class Curlheaders:
# response codes and headers container
reponses = list()
def __init__(self, heade... | bsd-3-clause | 1,003,504,171,861,701,200 | 25.59375 | 77 | 0.59342 | false | 3.894737 | false | false | false |
raviii/ravii | items/fields.py | 1 | 1881 | from django.db.models.fields.files import ImageField, ImageFieldFile
from PIL import Image
import os
def _add_thumb(s):
"""
Modifies a string (filename, URL) containing an image filename, to insert
'.thumb'
"""
parts = s.split(".")
parts.insert(-1, "thumb")
if parts[-1].lower() not in ['jpe... | bsd-3-clause | 6,572,445,099,955,995,000 | 33.2 | 78 | 0.654971 | false | 3.769539 | false | false | false |
trec-kba/streamcorpus-pipeline | streamcorpus_pipeline/tests/test_language.py | 1 | 1657 | '''tests for langauge detection transform
.. This software is released under an MIT/X11 open source license.
Copyright 2012-2015 Diffeo, Inc.
'''
from __future__ import absolute_import
import os
import pytest
import streamcorpus_pipeline
from streamcorpus_pipeline._clean_html import clean_html
from streamcorpus_pip... | mit | -3,371,838,387,927,223,000 | 35.021739 | 140 | 0.694629 | false | 3.132325 | true | false | false |
MechanisM/musicdb | musicdb/common/management/commands/initial_import_fixups.py | 1 | 3570 | from django.core.management.base import NoArgsCommand
from musicdb.classical.models import *
class Command(NoArgsCommand):
def handle_noargs(self, **options):
work_pairs = (
('felix-mendelssohn', ('string-quartet-in-e-flat', 'string-quartet-in-e-flat-1')),
('ludvig-van-beethoven',... | agpl-3.0 | 4,716,751,957,606,330,000 | 47.243243 | 158 | 0.564986 | false | 2.862871 | false | false | false |
michaelBenin/sqlalchemy | lib/sqlalchemy/sql/naming.py | 1 | 5728 | # sqlalchemy/naming.py
# Copyright (C) 2005-2014 the SQLAlchemy authors and contributors <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""Establish constraint and index naming conventions.
"""
from .schema import ... | mit | -7,769,484,997,395,845,000 | 33.506024 | 97 | 0.597416 | false | 4.022472 | false | false | false |
jn2840/bitcoin | share/qt/extract_strings_qt.py | 1 | 1875 | #!/usr/bin/python
'''
Extract _("...") strings for translation and convert to Qt4 stringdefs so that
they can be picked up by Qt linguist.
'''
from subprocess import Popen, PIPE
import glob
import operator
import os
import sys
OUT_CPP="qt/bitcoinstrings.cpp"
EMPTY=['""']
def parse_po(text):
"""
Parse 'po' for... | mit | 1,085,203,892,940,296,700 | 23.038462 | 82 | 0.578667 | false | 3.517824 | false | false | false |
anthonyfok/frescobaldi | frescobaldi_app/logtool/__init__.py | 1 | 3820 | # This file is part of the Frescobaldi project, http://www.frescobaldi.org/
#
# Copyright (c) 2008 - 2014 by Wilbert Berendsen
#
# 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
... | gpl-2.0 | -6,433,061,246,334,416,000 | 36.087379 | 96 | 0.685079 | false | 4.042328 | false | false | false |
joshgeller/PyPardot | pypardot/objects/opportunities.py | 1 | 3806 | class Opportunities(object):
"""
A class to query and use Pardot opportunities.
Opportunity field reference: http://developer.pardot.com/kb/api-version-3/object-field-references/#opportunity
"""
def __init__(self, client):
self.client = client
def query(self, **kwargs):
"""
... | mit | -5,657,057,192,978,973,000 | 40.824176 | 120 | 0.625854 | false | 4.219512 | false | false | false |
dmsimard/ansible | lib/ansible/plugins/lookup/first_found.py | 1 | 7109 | # (c) 2013, seth vidal <skvidal@fedoraproject.org> red hat, inc
# (c) 2017 Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
DOCUMENTATION = """
name: first_found
a... | gpl-3.0 | -7,768,599,136,003,885,000 | 33.014354 | 152 | 0.608524 | false | 4.116387 | false | false | false |
chrys87/orca-beep | src/orca/speechdispatcherfactory.py | 1 | 20607 | # Copyright 2006, 2007, 2008, 2009 Brailcom, o.p.s.
#
# Author: Tomas Cerha <cerha@brailcom.org>
#
# This library 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 2.1 of the License, or ... | lgpl-2.1 | 5,530,888,183,352,487,000 | 36.950276 | 81 | 0.609841 | false | 3.897674 | false | false | false |
teto/ns-3-dev-git | doc/tutorial/source/conf.py | 1 | 7057 | # -*- coding: utf-8 -*-
#
# ns-3 documentation build configuration file, created by
# sphinx-quickstart on Tue Dec 14 09:00:39 2010.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All co... | gpl-2.0 | -883,867,585,173,012,000 | 31.671296 | 80 | 0.705399 | false | 3.685117 | true | false | false |
mpetyx/pychatbot | SemanticWebApproach/RoboWriter/allegrordf-1.0.1/franz/miniclient/request.py | 1 | 6234 | import StringIO, pycurl, urllib, cjson, locale
from threading import Lock
class Pool:
def __init__(self, create):
self.create = create
self.lock = Lock()
self.pool = []
def get(self):
self.lock.acquire()
try:
if len(self.pool): return self.pool.pop()
... | apache-2.0 | 4,239,466,818,039,334,400 | 34.622857 | 137 | 0.569458 | false | 3.906015 | false | false | false |
simonkrogmann/planets | gui/object_3D.py | 1 | 4105 | # -*- coding: cp1252 -*-
import vector
import time
class Planet3D:
"""ein 3D-Objekt für das graphics-Modul, dass mit einem Planeten verbunden ist"""
def __init__(self, Parent, Planet):
self.Parent = Parent
self.Planet = Planet
self.Planet.Register(self)
self.Positions = [Planet[... | mit | -6,019,683,214,109,623,000 | 37.009259 | 97 | 0.557613 | false | 3.526632 | false | false | false |
Aloomaio/googleads-python-lib | examples/ad_manager/v201805/product_package_item_service/get_product_package_items_for_product_package.py | 1 | 2302 | #!/usr/bin/env python
#
# Copyright 2016 Google 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 requir... | apache-2.0 | 1,369,016,464,488,928,300 | 40.107143 | 80 | 0.715899 | false | 4.193078 | false | false | false |
baidu/palo | build-support/run_clang_format.py | 2 | 5703 | #!/usr/bin/env python
# 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
# "Li... | apache-2.0 | -5,497,260,695,327,298,000 | 38.604167 | 83 | 0.60512 | false | 4.678425 | false | false | false |
tisnik/fabric8-analytics-common | dashboard/src/jacoco_to_codecov.py | 1 | 4579 | """Module to convert JaCoCo coverage report into the report compatible with Pycov utility."""
import csv
def format_coverage_line(text, statements, missed, coverage, missed_lines=False):
"""Format one line with code coverage report of one class or for a summary."""
format_string = "{:80} {:3d} {:3d} {:3... | apache-2.0 | -754,818,450,584,529,800 | 39.166667 | 99 | 0.647085 | false | 4.084746 | false | false | false |
huiyiqun/check_mk | cmk_base/core.py | 1 | 9266 | #!/usr/bin/python
# -*- encoding: utf-8; py-indent-offset: 4 -*-
# +------------------------------------------------------------------+
# | ____ _ _ __ __ _ __ |
# | / ___| |__ ___ ___| | __ | \/ | |/ / |
# | | | | '_ \ / _ \/ __| |/ /... | gpl-2.0 | 3,326,192,585,655,252,000 | 38.598291 | 113 | 0.506583 | false | 3.780498 | true | false | false |
pfalcon/picotui | picotui/editorext.py | 1 | 5118 | #
# Extended VT100 terminal text editor, etc. widgets
# Copyright (c) 2015 Paul Sokolovsky
# Distributed under MIT License
#
import sys
import os
from .editor import *
# Edit single line, quit on Enter/Esc
class LineEditor(Editor):
def handle_cursor_keys(self, key):
if super().handle_cursor_keys(key):
... | mit | -3,940,507,001,391,494,700 | 24.979695 | 88 | 0.540445 | false | 3.484003 | false | false | false |
anthropo-lab/XP | EPHEMER/insider_trading_project/insider_trading/consumers.py | 1 | 7993 | from channels import Group as channelsGroup
from channels.sessions import channel_session
import random
from .models import Group as OtreeGroup, Subsession as OtreeSubsession, Constants
import json
import channels
import logging
from otree import constants_internal
import django.test
from otree.common_internal import ... | gpl-3.0 | -7,776,490,304,224,844,000 | 44.936782 | 91 | 0.477793 | false | 4.829607 | false | false | false |
icarito/sugar | src/jarabe/journal/listmodel.py | 1 | 10564 | # Copyright (C) 2009, Tomeu Vizoso
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in ... | gpl-3.0 | -7,650,490,496,236,193,000 | 32.220126 | 79 | 0.591064 | false | 3.886681 | false | false | false |
MuffinMedic/znc-weblog | weblog.py | 1 | 5161 | import znc
import os
def is_safe_path(basedir, path):
return os.path.abspath(path).startswith(basedir)
class weblog(znc.Module):
module_types = [znc.CModInfo.GlobalModule]
description = "Allowings viewing of log files from the ZNC webadmin"
wiki_page = "Weblog"
def OnLoad(self, args, message):
... | gpl-3.0 | 4,999,262,817,996,553,000 | 32.732026 | 199 | 0.496803 | false | 3.939695 | false | false | false |
CalvinNeo/EasyMLPlatform | py/graphic/tree.py | 1 | 4067 | #coding:utf8
import numpy as np
import math
import pylab as pl
import matplotlib.cm as cm
import matplotlib.mlab as mlab
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import json
class GraphTree:
def __init__(self):
self.jsonobj = {}
self.leafNode = dict(boxstyle = 'roun... | apache-2.0 | 7,361,431,833,645,096,000 | 38.485437 | 114 | 0.572412 | false | 3.238057 | false | false | false |
deplinenoise/rlaunch | vbcc-driver.py | 1 | 1297 | #! /usr/bin/python
import sys
import os
import os.path
import subprocess
import re
line_re = re.compile(r'^(warning|error) (\d+) in line (\d+) of "([^"]*)":\s*(.*)$')
def fix_fn(root_dir, fn):
# If there are path separators in the filename, assume the path is valid
if fn.find(os.sep) != -1:
return fn
if os.pa... | gpl-3.0 | 2,088,134,103,908,204,300 | 19.587302 | 83 | 0.621434 | false | 2.548134 | false | false | false |
thefab/tornadis | tornadis/pool.py | 1 | 7269 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This file is part of tornadis library released under the MIT license.
# See the LICENSE file for more information.
import tornado.gen
import tornado.ioloop
import tornado.locks
import logging
import functools
from collections import deque
from tornadis.client import C... | mit | -2,969,162,958,521,919,500 | 35.164179 | 79 | 0.554959 | false | 4.61817 | false | false | false |
wkerzendorf/wsynphot | wsynphot/base.py | 1 | 15987 | # defining the base filter curve classes
import os
from scipy import interpolate
from wsynphot.spectrum1d import SKSpectrum1D as Spectrum1D
import pandas as pd
from wsynphot.io.cache_filters import load_filter_index, load_transmission_data
from astropy import units as u, constants as const
from astropy import uti... | bsd-3-clause | 6,882,483,729,775,752,000 | 33.454741 | 108 | 0.585851 | false | 4.021887 | false | false | false |
ChrisTimperley/PythonCGum | cgum/program.py | 1 | 5861 | from cgum.basic import *
from cgum.utility import FNULL
from pprint import pprint
import cgum.statement as statement
import cgum.expression as expression
import cgum.preprocessor as preprocessor
import cgum.typs as typs
from subprocess import Popen, CalledProcessError
import os.path
import json
import tempfile
import ... | mit | 3,467,776,033,047,293,000 | 31.743017 | 103 | 0.613888 | false | 3.866095 | false | false | false |
greenonion/pytvd | tvdip.py | 1 | 8146 | """
tvdip.py
~~~~~~~~
This module is a direct port of the original [1] tvdip Matlab script into
NumPy.
[1] M.A. Little, Nick S. Jones (2010) "Sparse Bayesian Step-Filtering for High-
Throughput Analysis of Molecular Machine Dynamics", in 2010 IEEE International
Conference on Acoustics, Speech and Signal Processing, 2... | gpl-2.0 | -8,849,415,337,858,050,000 | 33.811966 | 98 | 0.545912 | false | 3.385702 | false | false | false |
tobykurien/MakerDroid | assetsrc/public.mp3/fabmetheus_utilities/fabmetheus_tools/interpret_plugins/gts.py | 1 | 4561 | """
This page is in the table of contents.
The gts.py script is an import translator plugin to get a carving from an gts file.
An import plugin is a script in the interpret_plugins folder which has the function getCarving. It is meant to be run from the interpret tool. To ensure that the plugin works on platforms wh... | gpl-3.0 | 1,615,288,114,955,321,900 | 48.043011 | 441 | 0.754221 | false | 3.497699 | false | false | false |
DarkFenX/Pyfa | eos/saveddata/targetProfile.py | 1 | 20115 | # ===============================================================================
# Copyright (C) 2014 Ryan Holmes
#
# This file is part of eos.
#
# eos 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, e... | gpl-3.0 | 6,335,731,424,209,932,000 | 48.666667 | 141 | 0.554412 | false | 2.653344 | false | false | false |
napalm-automation/napalm-yang | napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/isis/levels/level/link_state_database/lsp/tlvs/tlv/mt_isn/neighbors/neighbor/subTLVs/subTLVs_/bandwidth_constraints/__init__.py | 1 | 12844 | # -*- 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 | 1,062,767,270,325,623,600 | 37.570571 | 375 | 0.583775 | false | 4.37317 | true | false | false |
sserrot/champion_relationships | venv/Lib/site-packages/ipykernel/inprocess/blocking.py | 1 | 3068 | """ Implements a fully blocking kernel client.
Useful for test suites and blocking terminal interfaces.
"""
#-----------------------------------------------------------------------------
# Copyright (C) 2012 The IPython Development Team
#
# Distributed under the terms of the BSD License. The full license is in
# ... | mit | 1,264,620,225,133,396,200 | 31.989247 | 78 | 0.58605 | false | 4.27894 | false | false | false |
alfa-addon/addon | plugin.video.alfa/channels/vi2.py | 1 | 11788 | # -*- coding: utf-8 -*-
# -*- Channel Vi2.co -*-
# -*- Created for Alfa-addon -*-
# -*- By the Alfa Develop Group -*-
import sys
PY3 = False
if sys.version_info[0] >= 3: PY3 = True; unicode = str; unichr = chr; long = int
import re
import base64
from channelselector import get_thumb
from core import htt... | gpl-3.0 | -5,339,963,962,902,820,000 | 34.138037 | 140 | 0.54155 | false | 3.665526 | false | false | false |
Aravinthu/odoo | addons/mrp_repair/models/mrp_repair.py | 4 | 32545 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from datetime import datetime
from odoo import api, fields, models, _
from odoo.addons import decimal_precision as dp
from odoo.exceptions import UserError, ValidationError
from odoo.tools import float_compare
class S... | agpl-3.0 | -5,396,696,964,052,102,000 | 48.161631 | 227 | 0.570103 | false | 4.089595 | false | false | false |
arsfeld/conduit | conduit/modules/ShutterflyModule/ShutterflyModule.py | 1 | 3532 | """
Shutterfly Data Sink
"""
import logging
log = logging.getLogger("modules.Shutterfly")
import conduit
import conduit.utils as Utils
from conduit.datatypes import Rid
import conduit.dataproviders.Image as Image
import conduit.Exceptions as Exceptions
import conduit.datatypes.Photo as Photo
Utils.dataprovider_add_di... | gpl-2.0 | -7,614,566,365,720,435,000 | 22.084967 | 86 | 0.693658 | false | 2.95071 | true | false | false |
Southpaw-TACTIC/Team | src/python/Lib/site-packages/PySide/examples/declarative/scrolling.py | 1 | 2311 | #!/usr/bin/env python
# Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
# All rights reserved.
# Contact: PySide Team (pyside@openbossa.org)
#
# This file is part of the examples of PySide: Python for Qt.
#
# You may use this file under the terms of the BSD license as follows:
#
# "Redistribution and... | epl-1.0 | 1,676,431,145,130,090,000 | 39.54386 | 72 | 0.762441 | false | 4.068662 | false | false | false |
j-marjanovic/myhdl | myhdl/_always_comb.py | 1 | 4522 | # This file is part of the myhdl library, a Python package for using
# Python as a Hardware Description Language.
#
# Copyright (C) 2003-2009 Jan Decaluwe
#
# The myhdl library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public License as
# published by t... | lgpl-2.1 | -1,478,581,630,403,665,000 | 33 | 93 | 0.638655 | false | 3.574704 | false | false | false |
enricobacis/cineca-scopus | src/cineca3.py | 1 | 3928 | #!/usr/bin/env python
#coding: utf-8
from contextlib import closing
from operator import itemgetter
from datetime import datetime
from argparse import ArgumentParser
from unicodecsv import DictWriter
from utils import read_cineca_file, csv_to_db
import sqlite3
import json
import re
FIELDS = ['Ateneo', 'Facoltà', 'Fas... | mit | -8,302,143,502,810,306,000 | 37.881188 | 90 | 0.578813 | false | 3.729345 | false | false | false |
j-rock/cs598ps | src/py/main.py | 1 | 4059 | import sys
import time
from cssigps.offlineclassifier import *
from cssigps.dataset import *
from cssigps.feature import *
from cssigps.experiments import *
from get_dropbox_path import *
def print_usage():
"""
Print the usage for the main script.
"""
print("USAGE: use the run.sh or the main.py direct... | mit | -7,437,332,897,349,050,000 | 29.75 | 103 | 0.537078 | false | 3.854701 | true | false | false |
jtaghiyar/kronos | setup.py | 1 | 1513 | '''
Created on Jul 10, 2014
@author: jtaghiyar
'''
import codecs
import os
import re
from setuptools import setup
def read(*paths):
here = os.path.dirname(os.path.abspath(__file__))
with open(os.path.join(here, *paths)) as f:
return f.read()
def get_version():
version_file = read("kronos", "kron... | mit | -666,503,168,781,725,600 | 30.520833 | 78 | 0.621943 | false | 3.526807 | false | false | false |
wdv4758h/ZipPy | edu.uci.python.benchmark/src/micro/boolean-logic.py | 1 | 1621 | # zwei 04/24/2014
# micro benchmark: method call polymorphic inspired by richards
import time
iteration = 50000
class Task(object):
def __init__(self, p, w, h):
self.packet_pending = p
self.task_waiting = w
self.task_holding = h
self.link = None
def isTaskHoldingOrWaiting(self... | bsd-3-clause | -691,052,674,666,857,300 | 21.527778 | 83 | 0.586675 | false | 3.448936 | false | false | false |
pelson/conda-build | tests/test_misc.py | 4 | 2003 | import json
from os.path import join
import pytest
from conda_build.utils import on_win
import conda_build._link as _link
from conda_build.conda_interface import PathType, EntityEncoder, CrossPlatformStLink
def test_pyc_f_2():
assert _link.pyc_f('sp/utils.py', (2, 7, 9)) == 'sp/utils.pyc'
def test_pyc_f_3():
... | bsd-3-clause | -808,085,511,508,831,500 | 30.296875 | 84 | 0.636046 | false | 2.994021 | true | false | false |
BiznetGIO/horizon | openstack_dashboard/api/base.py | 1 | 12067 | # 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
# not use this file except in compliance with the... | apache-2.0 | 6,872,752,707,314,681,000 | 31.790761 | 79 | 0.59642 | false | 4.405622 | false | false | false |
ozmartian/tvlinker | tvlinker/threads.py | 1 | 11150 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import sys
import time
from datetime import datetime, timedelta
from tzlocal import get_localzone
import pytz
import requests
from PyQt5.QtCore import QObject, QSettings, QThread, pyqtSignal, pyqtSlot
from PyQt5.QtWidgets import QMessageBox, qApp
from bs4 imp... | gpl-3.0 | 5,962,978,612,205,332,000 | 34.623003 | 118 | 0.562332 | false | 3.804162 | false | false | false |
xunilrj/sandbox | courses/course-edx-dat2031x/Simulation.py | 1 | 2680 | # -*- coding: utf-8 -*-
def sim_normal(nums, mean = 600, sd = 30):
import numpy as np
import numpy.random as nr
for n in nums:
dist = nr.normal(loc = mean, scale = sd, size = n)
titl = 'Normal distribution with ' + str(n) + ' values'
print('Summary for ' + str(n) + ' samples')
... | apache-2.0 | 8,129,955,515,365,953,000 | 29.804598 | 67 | 0.614179 | false | 3.179122 | false | false | false |
samdroid-apps/sugar-toolkit-gtk3 | src/sugar3/bundle/activitybundle.py | 1 | 14091 | # Copyright (C) 2007, Red Hat, Inc.
#
# This library 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 2 of the License, or (at your option) any later version.
#
# This library is distrib... | lgpl-2.1 | 4,325,474,794,642,606,600 | 34.583333 | 78 | 0.560145 | false | 4.063149 | false | false | false |
uclouvain/osis | learning_unit/ddd/domain/description_fiche.py | 1 | 2627 | ##############################################################################
#
# OSIS stands for Open Student Information System. It's an application
# designed to manage the core business of higher education institutions,
# such as universities, faculties, institutes and professional schools.
# The core ... | agpl-3.0 | -6,738,978,772,855,739,000 | 45.070175 | 87 | 0.680883 | false | 3.558266 | false | false | false |
Aplopio/document-converter | converters/utilities.py | 1 | 4138 | import sys
import re
import os
import shutil
import logging as log
sys.path.append('..')
from config import OUTPUT_FOLDER, UPLOAD_FOLDER
PARENT_DIR = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
TMP_DIR = os.path.join(PARENT_DIR, UPLOAD_FOLDER)
from html_pdf import HtmlPdf
from html_txt import HtmlTx... | mit | 4,393,052,712,470,979,600 | 33.483333 | 79 | 0.639198 | false | 3.803309 | false | false | false |
codilime/veles | python/veles/scli/client.py | 1 | 13837 | # Copyright 2017 CodiLime
#
# 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, softwar... | apache-2.0 | -1,839,075,806,865,339,100 | 30.094382 | 78 | 0.539206 | false | 3.984164 | false | false | false |
askin/GNazar | GNazar/gnazar.py | 1 | 6314 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Licensed under GPL v2
# Copyright 2010, Aşkın Yollu <askin@askin.ws>
#
# 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 L... | gpl-2.0 | 1,321,648,834,766,344,000 | 31.525773 | 79 | 0.572266 | false | 3.778443 | false | false | false |
laurmurclar/mitmproxy | mitmproxy/tools/console/flowview.py | 1 | 23737 | import math
import os
import sys
from functools import lru_cache
from typing import Optional, Union # noqa
import urwid
from mitmproxy import contentviews
from mitmproxy import exceptions
from mitmproxy import export
from mitmproxy import http
from mitmproxy.net.http import Headers
from mitmproxy.net.http import sta... | mit | 642,012,547,737,181,300 | 33.551674 | 104 | 0.487256 | false | 4.237993 | false | false | false |
kuzmoyev/Google-Calendar-Simple-API | tests/test_attachment.py | 1 | 3788 | from unittest import TestCase
from gcsa.attachment import Attachment
from gcsa.serializers.attachment_serializer import AttachmentSerializer
DOC_URL = 'https://docs.google.com/document/d/1uDvwcxOsXkzl2Bod0YIfrIQ5MqfBhnc1jusYdH1xCZo/edit?usp=sharing'
class TestAttachment(TestCase):
def test_create(self):
... | mit | 5,226,027,302,797,445,000 | 38.873684 | 108 | 0.587381 | false | 4.029787 | true | false | false |
Azure/azure-sdk-for-python | sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_04_01/operations/_web_application_firewall_policies_operations.py | 1 | 20908 | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | mit | -6,169,865,617,561,209,000 | 48.079812 | 215 | 0.643486 | false | 4.363105 | true | false | false |
abhinavsingh/proxy.py | examples/websocket_client.py | 1 | 1465 | # -*- coding: utf-8 -*-
"""
proxy.py
~~~~~~~~
⚡⚡⚡ Fast, Lightweight, Pluggable, TLS interception capable proxy server focused on
Network monitoring, controls & Application development, testing, debugging.
:copyright: (c) 2013-present by Abhinav Singh and contributors.
:license: BSD, see LICENSE... | bsd-3-clause | -4,967,191,948,487,152,000 | 28.18 | 86 | 0.654558 | false | 3.665829 | false | false | false |
sebalas/fake-useragent | fake_useragent/utils.py | 1 | 2970 | import os
import re
from . import settings
try: # Python 2
from urllib import urlopen, quote_plus
except ImportError: # Python 3
from urllib.request import urlopen
from urllib.parse import quote_plus
try:
import json
except ImportError:
import simplejson as json
def get(url, annex=None):
i... | apache-2.0 | 6,406,799,067,328,781,000 | 19.915493 | 70 | 0.6 | false | 3.69863 | false | false | false |
Daeinar/norx-py | norx.py | 1 | 7942 | """
Python2 implementation of NORX.
------
:author: Philipp Jovanovic <philipp@jovanovic.io>, 2014-2015.
:license: CC0, see LICENSE for more details.
"""
from struct import pack, unpack
class NORX(object):
def __init__(self, w=64, r=4, d=1, t=256):
assert w in [32, 64]
assert r >= 1... | cc0-1.0 | -3,776,232,993,985,714,000 | 30.515873 | 121 | 0.467137 | false | 2.640293 | false | false | false |
timfreund/pycontrol-shed | pycontrolshed/model.py | 1 | 13233 | # Copyright (C) 2011 Tim Freund and contributors.
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
from functools import wraps
from pycontrol import pycontrol
import logging
import pycontrolshed
import socket
# In [1]: route_domai... | gpl-2.0 | 8,453,095,348,816,026,000 | 35.555249 | 117 | 0.590796 | false | 4.154788 | false | false | false |
Scratchcat1/AATC | flask_app/Flask_Test_App.py | 1 | 5816 | from flask import Flask, flash, redirect, render_template, request, session, abort
import random,os,ast,prettytable
from flask_app import forms
import AATC_Server_002 as AATC_Server
import HedaBot
COMMANDS = HedaBot.CreateCommandDictionary()
COMMANDS["AddFlight"][2]["Type"] = lambda x: HedaBot.SplitWaypoints(x,... | gpl-3.0 | 1,400,593,260,159,722,000 | 31.813953 | 234 | 0.597146 | false | 3.576876 | false | false | false |
ragupta-git/ImcSdk | imcsdk/mometa/comm/CommSnmp.py | 1 | 8759 | """This module contains the general information for CommSnmp ManagedObject."""
from ...imcmo import ManagedObject
from ...imccoremeta import MoPropertyMeta, MoMeta
from ...imcmeta import VersionMeta
class CommSnmpConsts:
ADMIN_STATE_DISABLED = "disabled"
ADMIN_STATE_ENABLED = "enabled"
COM2_SEC_NONE = "N... | apache-2.0 | 1,721,278,884,973,908,700 | 63.881481 | 230 | 0.574837 | false | 3.296575 | false | false | false |
wevote/WebAppPublic | apis_v1/documentation_source/positions_count_for_one_ballot_item_doc.py | 1 | 2560 | # apis_v1/documentation_source/positions_count_for_one_ballot_item_doc.py
# Brought to you by We Vote. Be good.
# -*- coding: UTF-8 -*-
def positions_count_for_one_ballot_item_doc_template_values(url_root):
"""
Show documentation about positionsCountForOneBallotItem
"""
required_query_parameter_list =... | bsd-3-clause | 5,725,262,911,566,859,000 | 38.384615 | 115 | 0.5375 | false | 3.803863 | false | false | false |
longde123/MultiversePlatform | server/config/common/character_factory.py | 1 | 4399 | #
# The Multiverse Platform is made available under the MIT License.
#
# Copyright (c) 2012 The Multiverse Foundation
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without restrict... | mit | 2,857,242,688,523,992,600 | 39.357798 | 81 | 0.711525 | false | 4.246139 | false | false | false |
shoopio/shoop | shuup/importer/admin_module/import_views.py | 1 | 7325 | # -*- coding: utf-8 -*-
# This file is part of Shuup.
#
# Copyright (c) 2012-2019, Shoop Commerce Ltd. All rights reserved.
#
# This source code is licensed under the OSL-3.0 license found in the
# LICENSE file in the root directory of this source tree.
import hashlib
import logging
import os
from datetime import datet... | agpl-3.0 | -5,630,403,041,267,978,000 | 37.151042 | 105 | 0.632628 | false | 4.020307 | false | false | false |
PeridotYouClod/gRPC-Makerboards | generated/proto_out/sensors_pb2_grpc.py | 1 | 20413 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
import generated.proto_out.sensors_pb2 as sensors__pb2
class FrontEndStub(object):
"""http://www.grpc.io/docs/guides/concepts.html is good reference for #tags
#FrontEnd #Simple
The FrontEnd server is the endpoint that most clien... | mit | -6,543,290,364,991,223,000 | 38.483559 | 85 | 0.725371 | false | 4.157434 | false | false | false |
skirpichev/omg | diofant/vector/dyadic.py | 1 | 8076 | from ..core import AtomicExpr, Integer, Pow
from ..matrices import ImmutableMatrix
from .basisdependent import (BasisDependent, BasisDependentAdd,
BasisDependentMul, BasisDependentZero)
class Dyadic(BasisDependent):
"""
Super class for all Dyadic-classes.
References
=====... | bsd-3-clause | -3,575,280,719,085,110,000 | 28.911111 | 79 | 0.541605 | false | 3.768549 | false | false | false |
UCBerkeleySETI/blimpy | blimpy/plotting/plot_time_series.py | 1 | 1628 | from .config import *
from ..utils import rebin, db
from .plot_utils import calc_extent
def plot_time_series(wf, f_start=None, f_stop=None, if_id=0, logged=True, orientation='h', MJD_time=False, **kwargs):
""" Plot the time series.
Args:
f_start (float): start frequency, in MHz
f_stop (float)... | bsd-3-clause | -8,949,116,032,728,782,000 | 30.921569 | 117 | 0.616093 | false | 3.211045 | false | false | false |
openstack/horizon | openstack_dashboard/dashboards/admin/volumes/forms.py | 1 | 10388 | # 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
# not use this file except in compliance with the... | apache-2.0 | 679,940,254,032,079,700 | 40.386454 | 79 | 0.545148 | false | 4.958473 | false | false | false |
ijmarshall/robotreviewer3 | robotreviewer/robots/rationale_robot.py | 1 | 13649 | """
the BiasRobot class takes the full text of a clinical trial as
input as a robotreviewer.data_structures.MultiDict, and returns
bias information in the same format, which can easily be converted
to JSON.
there are multiple ways to build a MultiDict, however the most common
way used in this project is as a PDF binar... | gpl-3.0 | -8,401,132,343,254,432,000 | 38.781341 | 236 | 0.577281 | false | 3.963114 | false | false | false |
zork9/pygame-pyMM | bombertoad.py | 1 | 3050 |
# Copyright (c) 2013 Johan Ceuppens.
# All rights reserved.
# Redistribution and use in source and binary forms are permitted
# provided that the above copyright notice and this paragraph are
# duplicated in all such forms and that any documentation,
# advertising materials, and other materials related to such
# dist... | gpl-2.0 | 8,758,164,902,192,934,000 | 34.882353 | 95 | 0.71377 | false | 3.497706 | false | false | false |
MadsJensen/agency_connectivity | make_df_hilbert_data.py | 1 | 1383 | import numpy as np
import pandas as pd
import scipy.io as sio
from my_settings import *
data = sio.loadmat("/home/mje/Projects/agency_connectivity/Data/data_all.mat")[
"data_all"]
column_keys = ["subject", "trial", "condition", "shift"]
result_df = pd.DataFrame(columns=column_keys)
for k, subject in enumerate(s... | bsd-3-clause | 5,829,760,773,845,085,000 | 32.731707 | 79 | 0.501808 | false | 3.440299 | false | false | false |
jdf76/plugin.video.youtube | resources/lib/youtube_plugin/kodion/utils/http_server.py | 1 | 21426 | # -*- coding: utf-8 -*-
"""
Copyright (C) 2018-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from six.moves import BaseHTTPServer
from six.moves.urllib.parse import parse_qs, urlparse
from six.moves import range
import json
import os
... | gpl-2.0 | 4,763,203,937,845,970,000 | 41.511905 | 146 | 0.519882 | false | 3.521118 | true | false | false |
InnovArul/codesmart | Assignments/Jul-Nov-2017/reinforcement_learning_udemy/rl/monte_carlo_soft_epsilon.py | 1 | 3861 | from __future__ import print_function
import numpy as np
from grid import standard_grid, negative_grid
from iterative_policy_evaluation import print_values, print_policy
import matplotlib.pyplot as plt
from monte_carlo_exploring_starts import max_dict
EPS = 1e-4
GAMMA = 0.9
ALL_POSSIBLE_ACTIONS = {'U', 'D', 'L', 'R'}
... | gpl-2.0 | -5,864,667,669,027,085,000 | 29.164063 | 121 | 0.573168 | false | 3.645892 | false | false | false |
naturalness/sensibility | sensibility/language/java/__init__.py | 1 | 6245 | #!/usr/bin/env python3
# -*- coding: UTF-8 -*-
# Copyright 2017 Eddie Antonio Santos <easantos@ualberta.ca>
#
# 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/licens... | apache-2.0 | 170,523,511,138,746,530 | 33.888268 | 100 | 0.620657 | false | 3.883706 | false | false | false |
postlund/pyatv | tests/support/test_dns.py | 1 | 10011 | """Unit tests for pyatv.support.dns"""
import io
import typing
import pytest
from pyatv.support import dns
@pytest.mark.parametrize(
"name,expected",
(
("_http._tcp.local", (None, "_http._tcp", "local")),
("foo._http._tcp.local", ("foo", "_http._tcp", "local")),
("foo.bar._http._tcp.... | mit | 8,634,286,590,532,209,000 | 34.715827 | 88 | 0.591903 | false | 3.068294 | true | false | false |
Ale-/civics | apps/models/migrations/0028_auto_20170924_1153.py | 1 | 1318 | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-09-24 11:53
from __future__ import unicode_literals
import apps.models.utils
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('models', '0027_auto_20170922_1554'),
]
operations = [
... | gpl-3.0 | -8,622,433,261,067,904,000 | 49.230769 | 394 | 0.688361 | false | 3.306329 | false | false | false |
baixuexue123/djmo | utils/csv_response_.py | 1 | 2274 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals, absolute_import
import csv
import codecs
import cStringIO
from django.http import StreamingHttpResponse
from django.views.generic import View
"""
流式响应StreamingHttpResponse可以快速,节省内存地产生一个大型文件
"""
class Echo(object):
"""An object that implements jus... | mit | -4,467,090,691,717,978,600 | 27.25641 | 85 | 0.599819 | false | 3.985533 | false | false | false |
YaoQ/faceplusplus-demo | hello.py | 1 | 2906 | #!/usr/bin/env python2
# Import system libraries and define helper functions
import time
import sys
import os
import os.path
from pprint import pformat
# First import the API class from the SDK
from facepp import API
from facepp import File
def print_result(hint, result):
def encode(obj):
if type(obj) is ... | gpl-2.0 | -6,944,040,991,084,908,000 | 31.288889 | 83 | 0.67309 | false | 3.390898 | false | false | false |
noskill/virt-manager | virtManager/connect.py | 1 | 15892 | #
# Copyright (C) 2006, 2013 Red Hat, Inc.
# Copyright (C) 2006 Daniel P. Berrange <berrange@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 the License, or
# (... | gpl-2.0 | 1,945,841,404,944,853,200 | 32.527426 | 80 | 0.543418 | false | 4.083248 | false | false | false |
sravangottapu/Ip_Scanner | ip_scanner.py | 1 | 1187 | import threading
import time
import os
import re
import shlex
import _thread
import sys
import subprocess
alive = True
f = open("list.txt","w")
class myThread(threading.Thread):
def __init__(self,var,ip):
threading.Thread.__init__(self)
self.var = var
self.ip = ip
def run(self):
... | gpl-3.0 | 6,060,178,347,985,288,000 | 21.396226 | 45 | 0.581297 | false | 3.131926 | false | false | false |
mbj4668/pyang | pyang/plugins/threegpp.py | 1 | 11115 | """3GPP usage guidelines plugin
See 3GPP TS 32.160 clause 6.2
Copyright Ericsson 2020
Author balazs.lengyel@ericsson.com
Revision 2020-11-25
Checks implemented
6.2.1.2 Module name starts with _3gpp-
6.2.1.3 namespace pattern urn:3gpp:sa5:<module-name>
6.2.1.4-a prefix ends with 3gpp
6.2.1.4-b prefix.lengt... | isc | 1,029,402,971,902,015,200 | 34.970874 | 79 | 0.544939 | false | 3.382532 | false | false | false |
silvio/elbe | elbepack/xmldefaults.py | 1 | 4019 |
import random
import string
import sys
armel_defaults = {
"arch": "armel",
"size": "20G",
"mem": "256",
"interpreter": "qemu-system-arm",
"userinterpr": "qemu-arm-static",
"console": "ttyAMA0,115200n1",
"machine": "versatile... | gpl-3.0 | 1,458,241,890,226,960,400 | 28.123188 | 91 | 0.464543 | false | 3.497824 | false | false | false |
shaarli/python-shaarli-client | setup.py | 1 | 2012 | #!/usr/bin/env python3
"""Setup script for shaarli-client"""
import codecs
import os
import re
from setuptools import find_packages, setup
def get_long_description():
"""Reads the main README.rst to get the program's long description"""
with codecs.open('README.rst', 'r', 'utf-8') as f_readme:
return... | mit | -5,212,573,942,387,458,000 | 31.451613 | 76 | 0.598907 | false | 3.839695 | false | false | false |
de-tour/detour | server/handling.py | 1 | 6094 | import cherrypy
from cherrypy.lib.static import serve_file
from cherrypy.process.plugins import SimplePlugin
from queue import Queue, Empty
from collections import namedtuple
from concurrent import Crawler
import parsing
import json
import traceback
import random
from urllib.parse import unquote
from ws4py.websocket i... | gpl-3.0 | 3,814,767,568,741,064,000 | 32.119565 | 107 | 0.582212 | false | 4.154056 | false | false | false |
niklasberglund/freesprints | source/freesprints/__init__.py | 1 | 9191 | import pygame, sys
import pygame.font
from pygame.locals import *
import logging
import fs_menu
import helpers as helpers
import plugins
import os.path
import race
import hardware
import defaults
import logging
from rainbow_logging_handler import RainbowLoggingHandler
DISPLAY_RESOLUTION = (1024, 768)
# platform-speci... | mit | -8,094,526,841,021,716,000 | 29.842282 | 121 | 0.527581 | false | 4.20064 | false | false | false |
pburdet/hyperspy | hyperspy/_signals/eds.py | 1 | 21939 | # -*- coding: utf-8 -*-
# Copyright 2007-2011 The HyperSpy developers
#
# This file is part of HyperSpy.
#
# HyperSpy 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... | gpl-3.0 | 1,777,743,600,678,881,300 | 37.489474 | 104 | 0.548749 | false | 4.252568 | false | false | false |
stevedh/queryutils | queryutils/user.py | 1 | 2181 |
from json import JSONEncoder
class User(object):
def __init__(self, name):
self.name = name
self.sessions = {}
self.queries = []
class VerboseUserEncoder(JSONEncoder):
def encode(self, obj):
user_dict = {}
user_dict['name'] = obj.name
session_dict = {}
... | bsd-3-clause | 8,245,894,538,224,595,000 | 33.078125 | 74 | 0.558459 | false | 4.218569 | false | false | false |
ajhager/copycat | copycat/workspace/string.py | 1 | 12784 | # Copyright (c) 2007-2017 Joseph Hager.
#
# Copycat is free software; you can redistribute it and/or modify
# it under the terms of version 2 of the GNU General Public License,
# as published by the Free Software Foundation.
#
# Copycat is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; with... | gpl-2.0 | -2,942,944,997,608,735,000 | 41.471761 | 80 | 0.632431 | false | 4.076531 | false | false | false |
noahlittle/noahlittle.github.io | iCTRL/var/mobile/pentest/exploits/iCTRL/cupp/cupp.py | 1 | 55986 | #!/usr/bin/python
#
# [Program]
#
# CUPP 3.1
# Common User Passwords Profiler
#
#
#
# [Author]
#
# Muris Kurgas aka j0rgan
# j0rgan [at] remote-exploit [dot] org
# http://www.remote-exploit.org
# http://www.azuzi.me
#
#
#
# [License]
#
# This program is free software; you can redistribute it and/or modify
# ... | apache-2.0 | -5,743,812,412,542,314,000 | 29.003751 | 478 | 0.633408 | false | 2.578812 | true | false | false |
ISCDtoolbox/FaciLe | pipeline/createDatabase.py | 1 | 2873 | import os
import sys
import numpy as np
from copy import deepcopy
import argparse
#Parallel
import subprocess as sp
import multiprocessing as mp
sys.path.append(os.path.join(os.path.dirname(__file__),"../projects/tools"))
import msh
import executable_paths as exe
def parse():
parser = argparse.ArgumentParser(de... | gpl-3.0 | 9,033,572,557,116,844,000 | 31.647727 | 116 | 0.622346 | false | 3.348485 | false | false | false |
iain-peddie/well-behaved-python | tests/WellBehavedPythonTests/Discovery/ModuleExaminerTests.py | 1 | 3114 | #!/usr/bin/env python3
# Copyright 2013 Iain Peddie inr314159@hotmail.com
#
# This file is part of WellBehavedPython
#
# WellBehavedPython 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 v... | gpl-3.0 | 8,893,566,164,321,204,000 | 35.635294 | 95 | 0.706487 | false | 3.977011 | true | false | false |
QualiSystems/Azure-Shell | package/cloudshell/cp/azure/domain/common/vm_details_provider.py | 1 | 5896 | from azure.mgmt.compute.models import StorageAccountTypes
from cloudshell.cp.core.models import VmDetailsProperty, VmDetailsData, VmDetailsNetworkInterface
from cloudshell.cp.azure.domain.vm_management.operations.deploy_operation import get_ip_from_interface_name
class VmDetailsProvider(object):
def __init__(sel... | apache-2.0 | 8,312,419,053,083,852,000 | 53.100917 | 150 | 0.61652 | false | 4.232592 | true | false | false |
fengjian/libinjection | src/sqlparse2c.py | 3 | 3800 | #!/usr/bin/env python
#
# Copyright 2012, 2013 Nick Galbreath
# nickg@client9.com
# BSD License -- see COPYING.txt for details
#
"""
Converts a libinjection JSON data file to a C header (.h) file
"""
import sys
def toc(obj):
""" main routine """
print """
#ifndef LIBINJECTION_SQLI_DATA_H
#define LIBINJEC... | bsd-3-clause | -4,710,446,708,618,401,000 | 27.787879 | 73 | 0.604211 | false | 3.071948 | false | false | false |
inconvergent/differential-cloud | modules/helpers.py | 1 | 1866 | #!/usr/bin/python
# -*- coding: utf-8 -*-
from __future__ import print_function
def get_args():
import argparse
parser = argparse.ArgumentParser()
parser.add_argument(
'--procs',
type=int,
default=4,
help='number of processors.'
)
parser.add_argument(
'--nearl',
type=float,
de... | mit | -6,956,966,956,868,832,000 | 14.55 | 59 | 0.546088 | false | 3.094527 | false | false | false |
apacha/OMR-Datasets | omrdatasettools/OmrDataset.py | 1 | 11026 | from enum import Enum, auto
from typing import Dict
class OmrDataset(Enum):
"""
The available OMR datasets that can be automatically downloaded with Downloader.py
"""
#: The Audiveris OMR dataset from https://github.com/Audiveris/omr-dataset-tools, Copyright 2017 by Hervé Bitteur under AGPL-3.0 l... | mit | -4,851,323,977,944,946,000 | 58.551351 | 319 | 0.699737 | false | 3.070513 | false | false | false |
khrapovs/datastorage | datastorage/compustat.py | 1 | 2589 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Short interest dynamics
"""
from __future__ import print_function, division
import os
import zipfile
import datetime as dt
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
path = os.getenv("HOME") + '/Dropbox/Research/data/Compustat/data/'
#... | mit | 2,111,269,302,578,816,300 | 24.382353 | 73 | 0.596756 | false | 3.172794 | false | false | false |
Yethiel/re-volt-addon | io_revolt/parameters_in.py | 1 | 4567 | """
Name: parameters_in
Purpose: Importing cars using the parameters.txt file
Description:
Imports entire cars using the carinfo module.
"""
if "bpy" in locals():
import imp
imp.reload(common)
imp.reload(carinfo)
imp.reload(prm_in)
import os
import bpy
import bmesh
from mathutil... | gpl-3.0 | 5,301,716,076,450,188,000 | 30.390071 | 76 | 0.611999 | false | 3.413303 | false | false | false |
wolcomm/rptk | rptk/base.py | 1 | 3743 | # Copyright (c) 2018 Workonline Communications (Pty) Ltd. All rights reserved.
#
# The contents of this file are licensed under the Apache License version 2.0
# (the "License"); you may not use this file except in compliance with the
# License.
#
# Unless required by applicable law or agreed to in writing, software
# d... | apache-2.0 | 8,040,617,203,420,518,000 | 32.720721 | 79 | 0.606733 | false | 4.064061 | false | false | false |
platinhom/DailyTools | scripts/ESES_ElementArea.py | 1 | 3679 | #! /usr/bin/env python
# -*- coding: utf8 -*-
# Author: Platinhom; Last Updated: 2015-09-10
# Calculate each element surface area by MS_Intersection and also match the atomic area results to the pqr file.
# Usage: python ESES_ElementArea.py file.pqr
#
# Need: MS_Intersection (partition version)
# Note: Only for PQR fo... | gpl-2.0 | -1,598,104,058,107,988,000 | 32.144144 | 112 | 0.65969 | false | 2.693265 | false | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.