repo_name stringlengths 6 90 | path stringlengths 4 230 | copies stringlengths 1 4 | size stringlengths 4 7 | content stringlengths 734 985k | license stringclasses 15
values | hash int64 -9,223,303,126,770,100,000 9,223,233,360B | line_mean float64 3.79 99.6 | line_max int64 19 999 | alpha_frac float64 0.25 0.96 | autogenerated bool 1
class | ratio float64 1.5 8.06 | config_test bool 2
classes | has_no_keywords bool 2
classes | few_assignments bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
quantumlaser/code2016 | LeetCode/python/wenbo/LinkedList/Add_Two_Numbers.py | 1 | 1757 | '''
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linked list.
Input: (2 -> 4 -> 3) + (5 -> 6 -> 4)
Output: 7 -> 0 -> 8
'''
# Definition for singly-linked list.
# clas... | mit | 6,778,293,622,404,399,000 | 25.636364 | 208 | 0.454752 | false | 3.957207 | false | false | false |
taedori81/shoop | shoop/core/taxing/_tax_summary.py | 2 | 2699 | # This file is part of Shoop.
#
# Copyright (c) 2012-2015, Shoop Ltd. All rights reserved.
#
# This source code is licensed under the AGPLv3 license found in the
# LICENSE file in the root directory of this source tree.
from __future__ import unicode_literals
from collections import defaultdict
from decimal import Dec... | agpl-3.0 | -1,466,848,159,402,145,800 | 34.513158 | 77 | 0.601704 | false | 3.496114 | false | false | false |
mynlp/ccg2lambda | scripts/nltk2tptp.py | 1 | 4988 | # -*- coding: utf-8 -*-
from nltk.sem.logic import *
from logic_parser import lexpr
from nltk2normal import rename_variable, remove_true, rename
def convert_to_tptp_proof(formulas):
if len(formulas) == 1:
conjecture = formulas[0]
tptp_script = ['tff(h,conjecture,{0}).'.format(conjecture)]
else... | apache-2.0 | 841,039,728,918,630,700 | 37.666667 | 83 | 0.667402 | false | 3.247396 | false | false | false |
OvoiDs/pileup2vcf | GenoPy/VCF.py | 1 | 45085 | # encoding: utf-8
'''
Created on ???
Last Update: 24 novembre 2016
@author: Yannick Boursin
@contact: yannick.boursin@gustaveroussy.fr
@license: GNU GPLv3
@organization: Gustave Roussy
@version: 1.2
@todo:
'''
class VCF(object):
'''VCF class
This class is intended to take in charge VCF output format.'''
... | gpl-3.0 | 19,576,989,814,719,964 | 82.562152 | 326 | 0.473579 | false | 4.286258 | true | false | false |
dominoFire/azure-sdk-for-python | tests/doctest_servicebusservicetopic.py | 9 | 2892 | #-------------------------------------------------------------------------
# Copyright (c) Microsoft. 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.apac... | apache-2.0 | -926,720,638,282,563,100 | 29.442105 | 92 | 0.637967 | false | 3.731613 | false | false | false |
OPM/ResInsight | ThirdParty/Ert/setup.py | 1 | 1859 | import os
import subprocess
from setuptools import setup, Extension, find_packages
from setuptools.command.build_ext import build_ext
from distutils.version import LooseVersion
class CMakeExtension(Extension):
def __init__(self, name, sourcedir=''):
Extension.__init__(self, name, sources=[])
self... | gpl-3.0 | -289,295,854,854,518,000 | 34.75 | 98 | 0.630446 | false | 3.520833 | false | false | false |
hanul93/kicomav | Engine/plugins/lnk.py | 1 | 5874 | # -*- coding:utf-8 -*-
# Author: Kei Choi(hanul93@gmail.com)
import os
import re
import kernel
import kavutil
# -------------------------------------------------------------------------
# KavMain Ŭ·¡½º
# -------------------------------------------------------------------------
class KavMain:
# ----------------... | gpl-2.0 | -5,358,637,189,770,437,000 | 37.900662 | 85 | 0.375894 | false | 2.163536 | false | false | false |
hendrikx-itc/python-minerva | integration_tests/conftest.py | 1 | 1738 | import time
import os
import pytest
import docker
from minerva.test import connect
@pytest.fixture(scope="session")
def start_db_container(request):
print('\n----------- session start ---------------')
docker_network = os.environ.get("TEST_DOCKER_NETWORK")
docker_client = docker.from_env()
contain... | gpl-3.0 | -3,049,764,143,069,615,000 | 24.558824 | 82 | 0.595512 | false | 4.089412 | false | false | false |
shawnadelic/shuup | shuup/admin/modules/permission_groups/views/edit.py | 2 | 4230 | # -*- coding: utf-8 -*-
# This file is part of Shuup.
#
# Copyright (c) 2012-2016, Shoop Ltd. All rights reserved.
#
# This source code is licensed under the AGPLv3 license found in the
# LICENSE file in the root directory of this source tree.
from __future__ import unicode_literals
from django import forms
from djang... | agpl-3.0 | 6,285,924,118,489,902,000 | 36.767857 | 109 | 0.654374 | false | 4.208955 | false | false | false |
geosohh/AnimeTorr | animetorr/manager/qt/options.py | 1 | 19074 | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '../qt/qt_options.ui'
#
# Created by: PyQt4 UI code generator 4.11.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
def _fromU... | gpl-2.0 | -7,531,137,176,126,082,000 | 50.831522 | 125 | 0.681818 | false | 3.658228 | false | false | false |
JetStarBlues/Nand-2-Tetris | OldArchitecture/v1.0/Components/_2__arithmetic.py | 1 | 6700 | '''----------------------------- Imports -----------------------------'''
# Built ins
import math
# Hack computer
from ._x__components import *
'''----------------------------- Helpers -----------------------------'''
def zeroN_( N ):
return ( 0, ) * N
def oneN_( N ):
return ( 0, ) * ( N - 1 ) + ( 1, )
def ... | mit | -3,235,515,805,714,658,300 | 19.30303 | 78 | 0.416716 | false | 2.39628 | false | false | false |
gagoncal/Selenium | Exercise/Solution/selectingProduct.py | 1 | 2072 | from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By
from selenium.webdriver.support.select import Select
import unittest
class SelectingProduct(unittest.TestCase):
def setUp(self):
g... | lgpl-2.1 | 6,900,457,091,056,815,000 | 32.967213 | 106 | 0.649614 | false | 4.455914 | false | false | false |
Hamuko/hibiki | hibiki/itunes.py | 1 | 10209 | """
Submodule designed for parsing the iTunes Library.xml file for library,
playlist and track information.
"""
from datetime import datetime
from os.path import basename, join
from urllib.parse import unquote
from xml.etree import ElementTree
from .constants import TIME_FORMAT
def clean_path(path):
"""Turn the... | apache-2.0 | -4,448,075,066,750,969,000 | 34.821053 | 84 | 0.55216 | false | 4.275126 | false | false | false |
kaarl/pyload | module/plugins/hooks/UserAgentSwitcher.py | 5 | 1698 | # -*- coding: utf-8 -*-
import pycurl
from module.plugins.internal.Addon import Addon
from module.plugins.internal.misc import encode
class UserAgentSwitcher(Addon):
__name__ = "UserAgentSwitcher"
__type__ = "hook"
__version__ = "0.13"
__status__ = "testing"
__config__ = [("activated" ... | gpl-3.0 | 834,680,447,692,729,000 | 43.684211 | 167 | 0.5053 | false | 4.023697 | false | false | false |
graik/biskit | archive_biskit2/Biskit/Mod/CheckIdentities.py | 1 | 15348 | ## numpy-oldnumeric calls replaced by custom script; 09/06/2016
##
## Biskit, a toolkit for the manipulation of macromolecular structures
## Copyright (C) 2004-2018 Raik Gruenberg & Johan Leckner
##
## This program is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public L... | gpl-3.0 | 6,347,854,952,960,856,000 | 34.859813 | 242 | 0.543263 | false | 4.279978 | true | false | false |
paulsmith/geodjango | django/contrib/gis/gdal/layer.py | 1 | 5769 | # Needed ctypes routines
from ctypes import byref
# Other GDAL imports.
from django.contrib.gis.gdal.envelope import Envelope, OGREnvelope
from django.contrib.gis.gdal.error import OGRException, OGRIndexError, SRSException
from django.contrib.gis.gdal.feature import Feature
from django.contrib.gis.gdal.field import FI... | bsd-3-clause | -2,062,640,485,377,546,800 | 35.05625 | 89 | 0.624892 | false | 4.023013 | false | false | false |
spottradingllc/zoom | test/entities/test_application_state.py | 1 | 1899 | from unittest import TestCase
from zoom.www.entities.application_state import ApplicationState
class TestApplicationState(TestCase):
def setUp(self):
self.state = ApplicationState(application_name="1",
configuration_path="2",
appl... | gpl-2.0 | 5,476,556,225,149,524,000 | 39.404255 | 64 | 0.353344 | false | 5.585294 | false | false | false |
jwlawson/tensorflow | tensorflow/contrib/training/python/training/device_setter_test.py | 54 | 5692 | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | 3,185,377,457,820,766,000 | 42.121212 | 90 | 0.677969 | false | 3.604813 | true | false | false |
pierorex/PROCAFE-SSL | procafe/appProcafe/functions.py | 1 | 3229 | # -*- coding: utf-8 -*-
# Functions used all over appProcafe
from appProcafe.models import UserProfile, User
import re
import datetime
import os
import string
import random
#no se admite que en el archivo exel alguna casilla tenga escrito un " doble comilla, de ser asi el comportamiento de esta funcion puede ... | mit | 845,747,893,529,002,400 | 43.507042 | 223 | 0.42459 | false | 4.123883 | false | false | false |
jf87/smap | python/smap/drivers/simulation/virtualtemperature.py | 1 | 2165 | from smap import driver, actuate
from smap.util import periodicSequentialCall
class VirtualTemperature(driver.SmapDriver):
def setup(self, opts):
self.state = {'temperature': 0
}
self.readperiod = float(opts.get('ReadPeriod',.5))
self.transition = float(opts.get('TransitionP... | bsd-2-clause | -7,431,840,527,763,225,000 | 33.919355 | 86 | 0.612471 | false | 3.965201 | false | false | false |
grungi-ankhfire/ebenezer | ebenezer/ui/menu_main.py | 1 | 1630 | # Copyright (c) 2012 Bastien Gorissen
# Licensed under the MIT license
# See LICENSE file for licensing details
from menu import Menu
from .. import data
class MainMenu(Menu):
def __init__(self, app):
Menu.__init__(self, app)
self.header = ["Ebenezer personal accounting ver 0.1",\
... | mit | 7,942,472,085,960,647,000 | 32.958333 | 76 | 0.511043 | false | 4.034653 | false | false | false |
bt3gl/Neat-Problems-in-Python-and-Flask | Version-Control/src/metadata.py | 1 | 4151 | #!/usr/bin/env python
__author__ = "Mari Wahl"
__email__ = "marina.w4hl@gmail.com"
__description__= "Builds the metadata for our version control."
import datetime
import sys
import os
import system_operations
from constants import BACKUP_DIR, CONTEND_DIR, OLD_VERSIONS_DIR
"""
print the HEAD file
"""
def pr... | mit | 1,871,319,017,317,344,300 | 25.43949 | 85 | 0.600819 | false | 3.663725 | false | false | false |
lisaglendenning/pypetri | tests/collections/test_namespace.py | 1 | 1136 | # @copyright
# @license
import unittest
from pypetri.collections import namespace
#############################################################################
#############################################################################
class TestCaseNamable(unittest.TestCase):
def Namable(self, cls, *arg... | mit | -2,286,859,989,150,691,800 | 33.424242 | 81 | 0.43838 | false | 4.773109 | false | false | false |
pienkowb/omelette | omelette/fromage/scalable_view.py | 1 | 3613 | from PyQt4 import QtGui, QtCore
import math
class ScalableView(QtGui.QGraphicsView):
def __init__(self, parent):
QtGui.QGraphicsView.__init__(self, parent)
self._current_center = QtCore.QPointF(0, 0)
self.set_center(QtCore.QPointF(200, 200))
"""#pan point
self.last_point = ... | gpl-3.0 | -7,255,006,807,174,360,000 | 34.087379 | 89 | 0.574869 | false | 3.705641 | false | false | false |
scrapinghub/pymesos | pymesos/executor.py | 1 | 2952 | import os
import sys
import time
import uuid
from mesos.interface import ExecutorDriver, mesos_pb2
from .messages_pb2 import RegisterExecutorMessage, \
ExecutorToFrameworkMessage, StatusUpdateMessage
from .process import UPID, Process, async
class MesosExecutorDriver(Process, ExecutorDriver):
def __init__(s... | bsd-3-clause | -2,514,362,504,844,155,400 | 33.729412 | 90 | 0.659553 | false | 3.694618 | false | false | false |
tectronics/timeside | tests/sandbox/exempleCMMR_vamp.py | 2 | 1951 | # -*- coding: utf-8 -*-
"""
Created on Fri Oct 11 13:22:37 2013
@author: thomas
"""
from __future__ import division
import timeside
import matplotlib.pyplot as plt
import numpy as np
import sys
#wav_file = sys.argv[-1]
wav_file = '/home/thomas/code/timeside/TimeSide/tests/samples/sweep.wav'
# normal
d = timeside.d... | gpl-2.0 | -8,993,116,771,345,115,000 | 24.025641 | 78 | 0.683239 | false | 2.795129 | false | false | false |
DistilledLtd/polly | polly/hreflang-check.py | 1 | 1314 | import sys
from polly import PollyPage
initial_url = sys.argv[1]
test_page = PollyPage(initial_url, allow_underscore=True)
test_page.detect_errors()
print
print " ** Checking hreflang for: " + initial_url + " **"
print
print "Alternative URLs:"
print "\t" + "\n\t".join(test_page.alternate_urls())
print
print "No r... | apache-2.0 | 2,184,807,171,286,868,200 | 25.28 | 83 | 0.694825 | false | 2.862745 | true | false | false |
MAPC/masshealth | places/views.py | 1 | 5771 | from django.shortcuts import render_to_response, get_object_or_404
from django.template import RequestContext
from django.http import Http404
from django.conf import settings
from django.middleware.csrf import get_token
from django.core.urlresolvers import reverse
from models import Place
from visualizations.models im... | bsd-3-clause | 1,978,711,980,098,063,400 | 34.404908 | 79 | 0.601802 | false | 3.860201 | false | false | false |
mjirik/lisa | tests/interpolation_plasm_test.py | 1 | 2028 | #! /usr/bin/python
# -*- coding: utf-8 -*-
import sys
import os.path
path_to_script = os.path.dirname(os.path.abspath(__file__))
sys.path.append(os.path.join(path_to_script, "../../lar-cc/lib/py/"))
import unittest
import pytest
# import numpy as np
class InterpolationPlasmTest(unittest.TestCase):
interactiveT... | bsd-3-clause | 5,799,398,979,887,025,000 | 33.372881 | 80 | 0.576923 | false | 2.801105 | true | false | false |
11craft/immercv | immercv/users/admin.py | 183 | 1048 | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from django import forms
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin as AuthUserAdmin
from django.contrib.auth.forms import UserChangeForm, UserCreationForm
from .models import User
class MyUserChan... | bsd-3-clause | -9,055,110,844,730,081,000 | 26.578947 | 78 | 0.718511 | false | 4.277551 | false | false | false |
XtremeTeam/Talisman-xmpp-bot | plugins/help_plugin.py | 1 | 3697 | #===istalismanplugin===
# -*- coding: utf-8 -*-
# Talisman plugin
# help_plugin.py
# Initial Copyright © 2002-2005 Mike Mintz <mikemintz@gmail.com>
# Modifications Copyright © 2007 Als <Als@exploit.in>
# Help Copyright © 2007 dimichxp <dimichxp@gmail.com>
# This program is free software; you can redistribute i... | gpl-2.0 | -3,901,140,917,374,050,000 | 45.759494 | 283 | 0.68327 | false | 3.154569 | false | false | false |
ElofssonLab/web_common_backend | proj/dev_settings.py | 1 | 1194 | """
Django settings for proj project in development.
For more information on this file, see
https://docs.djangoproject.com/en/2.2.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2.7/ref/settings/
"""
# Build paths inside the project like this: os.path.join(B... | mit | 8,061,199,514,944,321,000 | 30.421053 | 73 | 0.737018 | false | 2.962779 | false | false | false |
lpantano/bcbio-nextgen | bcbio/srna/mirdeep.py | 1 | 4029 | import os
import os.path as op
import pysam
from bcbio.utils import file_exists, safe_makedir, chdir
from bcbio.provenance import do
from bcbio.distributed.transaction import file_transaction
from bcbio.pipeline import datadict as dd
from bcbio.pipeline import config_utils
def run(data):
config = data[0][0]['co... | mit | -529,009,764,778,352,500 | 44.269663 | 166 | 0.562422 | false | 3.087356 | false | false | false |
CICCCostaRica/MulukksiApi | mulukksiapi/controllers/account_controller.py | 1 | 4315 | from mulukksiapi import app
from flask import request, jsonify
from mulukksiapi.models.account import User
from mulukksiapi.models.account import UserService
from mulukksiapi.security.idam import find_user
from mulukksiapi.extensions.jsonp import enable_jsonp
from mulukksiapi.extensions.error_handling import ErrorRespo... | mit | -3,544,878,903,128,526,000 | 42.16 | 145 | 0.553882 | false | 4.315 | false | false | false |
kdart/pycopia | aid/pycopia/tty.py | 1 | 20309 | #!/usr/bin/python2.7
# -*- coding: utf-8 -*-
# vim:ts=4:sw=4:softtabstop=4:smarttab:expandtab
# 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 | -8,559,504,694,469,495,000 | 28.866176 | 95 | 0.560146 | false | 3.164875 | false | false | false |
divio/django-login-as | login_as/views.py | 1 | 1293 | from django.contrib.auth import authenticate, login as auth_login
from django.contrib.auth.decorators import user_passes_test
from django.contrib import messages
from django.http import HttpResponseRedirect, Http404
from django.views.generic import ListView
from django.utils.decorators import method_decorator
from djan... | bsd-3-clause | -6,371,553,800,014,604,000 | 32.153846 | 81 | 0.750967 | false | 3.978462 | false | false | false |
sljrobin/dotfiles | dzen2/.dzen2/scripts/Battery.py | 1 | 7428 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Filename: Battery.py
# Description: Functions for Battery
# Author: Simon L. J. Robin | https://sljrobin.org
# Created: 2016-08-29 23:02:39
# Modified: 2016-09-11 21:23:35
#
#############################################################... | gpl-2.0 | 4,861,494,044,117,797,000 | 35.772277 | 80 | 0.465401 | false | 3.602328 | false | false | false |
guilhermebr/python-docx | docx/oxml/parts/header.py | 1 | 1344 | # encoding: utf-8
"""
Custom element classes related to the header part
"""
from docx.oxml.shared import nsmap, OxmlBaseElement, qn
class CT_Header(OxmlBaseElement):
"""
A ``<w:hdr>`` element, representing a header definition
"""
@property
def pPr(self):
return self.find(qn('w:pPr'))
... | mit | 1,620,809,338,795,931,000 | 25.9 | 76 | 0.573661 | false | 3.722992 | false | false | false |
Ensembles/ert | python/python/ert/job_queue/ert_script.py | 2 | 3632 | import inspect
import imp
import sys
import traceback
class ErtScript(object):
def __init__(self, ert):
"""
@type ert: EnKFMain
"""
super(ErtScript, self).__init__()
if not hasattr(self, "run"):
raise UserWarning("ErtScript implementations must provide a method... | gpl-3.0 | 504,153,879,353,410,900 | 30.318966 | 102 | 0.568007 | false | 4.293144 | false | false | false |
mozilla/remo | remo/dashboard/views.py | 2 | 13254 | from django.conf import settings
from django.contrib import messages
from django.contrib.auth.models import User
from django.core.paginator import EmptyPage, InvalidPage, Paginator
from django.db.models import Q, Count
from django.shortcuts import redirect, render
from django.utils.timezone import now
from django.views... | bsd-3-clause | -7,053,414,692,753,193,000 | 40.810726 | 99 | 0.640712 | false | 3.562903 | false | false | false |
jokey2k/tablereader | setup.py | 1 | 1860 | from setuptools import setup, find_packages
def readme():
with open('README.md') as f:
return f.read()
setup(
name="tablereader",
packages=find_packages(".", exclude=["tablereader.tests"]),
version="1.1.0",
description="Unified abstraction for handling xls, xlsx and CSV files in Python",... | bsd-3-clause | -6,956,151,759,878,083,000 | 35.470588 | 85 | 0.605914 | false | 4.096916 | false | false | false |
zstackio/zstack-woodpecker | integrationtest/vm/multihosts/vm_snapshots/paths/xc_path59.py | 1 | 2031 | import zstackwoodpecker.test_state as ts_header
import os
TestAction = ts_header.TestAction
def path():
return dict(initial_formation="template5", checking_point=8, path_list=[
[TestAction.create_vm, 'vm1', 'flag=ceph'],
[TestAction.create_volume, 'volume1', 'flag=ceph,scsi'],
[TestAction.attach_volume, 'vm1... | apache-2.0 | 7,940,928,436,745,226,000 | 45.159091 | 252 | 0.708026 | false | 2.665354 | true | false | false |
google/makani | gs/monitor2/apps/plugins/indicators/mvlv.py | 1 | 15024 | # Copyright 2020 Makani Technologies LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | apache-2.0 | 1,778,516,524,576,057,600 | 34.942584 | 79 | 0.647697 | false | 3.466544 | false | false | false |
AlekSi/loggerglue | loggerglue/emitter.py | 1 | 6846 | # -*- coding: utf-8 -*-
"""
An rfc5424/rfc5425 syslog server implementation
Copyright © 2011 Evax Software <contact@evax.fr>
"""
import socket, ssl
# Default UDP port to send syslog messages
SYSLOG_DEFAULT_PORT = 514
class SyslogEmitter(object):
"""
Base class for syslog emitters.
A syslog em... | mit | 9,078,617,758,992,903,000 | 28.632035 | 111 | 0.563039 | false | 4.217498 | false | false | false |
sdispater/pendulum | tests/conftest.py | 1 | 2210 | import pendulum
import pytest
@pytest.fixture(autouse=True)
def setup():
pendulum.set_local_timezone(pendulum.timezone("America/Toronto"))
yield
pendulum.set_test_now()
pendulum.set_locale("en")
pendulum.set_local_timezone()
pendulum.week_starts_at(pendulum.MONDAY)
pendulum.week_ends_at(... | mit | 2,036,763,095,622,612,200 | 21.323232 | 78 | 0.619457 | false | 3.764906 | false | false | false |
SGo-Go/BSOFI | python/bench/tuning.py | 1 | 8452 | #!/usr/bin/python
# ------------------------------------------------------------------
# BSOF/I - Block structured factorization and inversion codes
# for CPU+GPU platforms
# Copyright (c) 2013, Sergiy Gogolenko
# e-mail: sgogolenko@ucdavis.edu
# ------------------------------------------------------------------... | gpl-2.0 | -2,366,591,402,582,272,000 | 41.26 | 114 | 0.516564 | false | 3.11997 | false | false | false |
egonw/citeulike | plugins/python/metaheaders.py | 2 | 2791 | #!/usr/bin/env python2.6
import lxml.html, re, HTMLParser
class InvalidArguments(Exception):
pass
class MetaHeaders:
def __init__(self, url=None, page=None,name='name',content='content', unescape_entities=False):
if page:
self.root = lxml.html.document_fromstring(page)
elif url:
self.root = lxml.html.pa... | bsd-3-clause | -6,594,101,714,956,017,000 | 21.150794 | 96 | 0.586886 | false | 2.507637 | false | false | false |
tek/amino | amino/instances/either.py | 1 | 3085 | from typing import TypeVar, Callable, Tuple, Any, Type
from amino.tc.base import tc_prop, ImplicitInstances, F
from amino.tc.optional import Optional
from amino.tc.monad import Monad
from amino.tc.traverse import Traverse
from amino.lazy import lazy
from amino.maybe import Just, Empty
from amino.either import Right, E... | mit | -2,908,935,411,805,886,000 | 28.663462 | 118 | 0.606807 | false | 3.125633 | false | false | false |
ismailsunni/inasafe | safe/gui/tools/wizard/step_fc60_agglayer_from_browser.py | 6 | 3715 | # coding=utf-8
"""InaSAFE Wizard Step Aggregation Layer Browser."""
# noinspection PyPackageRequirements
from qgis.PyQt.QtGui import QPixmap
from safe import messaging as m
from safe.gui.tools.wizard.utilities import layers_intersect
from safe.gui.tools.wizard.wizard_step import get_wizard_step_ui_class
from safe.gui... | gpl-3.0 | 5,867,142,860,469,876,000 | 34.380952 | 77 | 0.651682 | false | 4.136971 | false | false | false |
robwarm/gpaw-symm | gpaw/dscf.py | 1 | 12979 | # Copyright (C) 2008 CAMd
# Please see the accompanying LICENSE file for further information.
"""This module is used in delta self-consistent field (dSCF) calculations
dSCF is a simple 'ad hoc' method to estimating excitation energies within
DFT. The only difference to ordinary DFT is that one or more electrons(s)
a... | gpl-3.0 | -4,047,143,229,968,444,000 | 35.25419 | 79 | 0.556514 | false | 3.372045 | false | false | false |
ElettraSciComp/STP-Core | STP-Core/preprocess/ringremoval/boinhaibel.py | 1 | 3234 | ###########################################################################
# (C) 2016 Elettra - Sincrotrone Trieste S.C.p.A.. All rights reserved. #
# #
# #
# This file is ... | gpl-3.0 | 2,469,818,957,313,509,000 | 34.527473 | 79 | 0.488243 | false | 3.824852 | false | false | false |
ebbypeter/enso | src/platform/win32/SConsTools/Helpers.py | 9 | 3526 | import os
import types
def addInstanceMethodToEnv( env, function ):
"""
Adds the given function as an instance method to the given SCons
environment.
"""
envClass = env.__class__
methodName = function.__name__
# Make sure the class doesn't already have a method by the same
... | bsd-3-clause | 3,842,857,452,192,792,600 | 40.481928 | 77 | 0.615995 | false | 4.758435 | false | false | false |
stlemme/python-dokuwiki-export | date.py | 1 | 2287 | import datetime
import dateutil.parser
some_date_in_far_future = datetime.date(2997, 9, 12)
projectbegin = datetime.date(2013, 4, 1)
projectend = datetime.date(2015, 10, 31)
def today():
return datetime.date.today()
def parse(date):
if date is None:
return some_date_in_far_future
if date.lower() in ['asap... | mit | -5,103,085,045,031,570,000 | 22.336735 | 76 | 0.664189 | false | 2.789024 | false | false | false |
esatterly/splunk-cassandra | bin/pycassa/connection.py | 1 | 3565 | from exceptions import Exception
import socket
import time
from thrift import Thrift
from thrift.transport import TTransport
from thrift.transport import TSocket
from thrift.protocol import TBinaryProtocol
from pycassa.cassandra.c08 import Cassandra
from pycassa.cassandra.constants import (CASSANDRA_07, CASSANDRA_08)... | apache-2.0 | 8,877,845,960,395,859,000 | 35.752577 | 101 | 0.637588 | false | 4.290012 | false | false | false |
kobejean/tensorflow | tensorflow/contrib/data/python/kernel_tests/map_dataset_op_test.py | 1 | 13629 | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | -4,607,292,763,693,688,000 | 36.963788 | 80 | 0.62345 | false | 3.710591 | true | false | false |
ApproxEng/approxeng.input | src/python/approxeng/input/sf30pro.py | 1 | 2241 | from approxeng.input import Controller, Button, CentredAxis, TriggerAxis, BinaryAxis
__all__ = ['SF30Pro']
class SF30Pro(Controller):
"""
Driver for the 8BitDo SF30 Pro, courtesy of Tom Brougthon (tabroughton on github)
"""
def __init__(self, dead_zone=0.05, hot_zone=0.05):
"""
Creat... | apache-2.0 | 4,926,601,196,368,990,000 | 39.745455 | 102 | 0.523873 | false | 3.649837 | false | false | false |
deanishe/alfred-searchio | src/lib/searchio/cmd/list.py | 1 | 2460 | #!/usr/bin/env python
# encoding: utf-8
#
# Copyright (c) 2016 Dean Jackson <deanishe@deanishe.net>
#
# MIT Licence. See http://opensource.org/licenses/MIT
#
# Created on 2016-12-17
#
"""searchio list [-t] [<query>]
Display (and optionally filter) list of installed
suggestion engines.
Usage:
searchio list [-t] [... | mit | 3,707,182,608,259,444,700 | 23.336634 | 73 | 0.570789 | false | 3.496444 | false | false | false |
qmsk/pngtile | python/pngtile/store.py | 1 | 3855 |
import pypngtile
import os.path
import threading
class Error (Exception):
pass
class NotFound (KeyError):
pass
class InvalidImage (Exception):
pass
class UncachedImage (Exception):
pass
class PNGTileStore (object):
"""
Access pypngtile.Image's on a filesystem.
Intende... | mpl-2.0 | 8,307,774,935,529,827,000 | 24.196078 | 119 | 0.513878 | false | 4.487776 | false | false | false |
Rubicubix/django-template | project_name/settings/base.py | 1 | 4235 | # encoding: utf-8
"""
@summary: {{ project_name }} shared settings between dev & prod
@author: Eric Pieuchot
@copyright: Copyright 2016 Rubicubix Ltd
@license: GNU GPL
@contact: eric@rubicubix.co.uk
"""
from {{ project_name }}.settings.default import *
from environ import Path, Env
from... | gpl-3.0 | 7,535,791,297,468,186,000 | 23.479769 | 84 | 0.500118 | false | 3.711656 | false | true | false |
pielgrzym/django-minishop | customers/views.py | 1 | 8483 | from customers.forms import *
from customers.models import Address, Customer, LastAddress
from orders.utils import conditional_redirect
from orders.models import Order, OrderedItem
from orders.cart import Cart
from django.shortcuts import render_to_response
from django.template.context import RequestContext
from djang... | gpl-3.0 | -1,712,731,664,919,278,800 | 38.826291 | 184 | 0.71272 | false | 3.909217 | false | false | false |
djaodjin/djaodjin-deployutils | deployutils/apps/django/management/commands/package_theme.py | 1 | 5063 | # Copyright (c) 2018, Djaodjin Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and t... | bsd-2-clause | 9,008,001,417,765,448,000 | 41.90678 | 79 | 0.692475 | false | 4.372193 | false | false | false |
lizardsystem/flooding | flooding_lib/scripts/update_export_runs.py | 2 | 4611 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#***********************************************************************
#*
#***********************************************************************
#* All rights reserved **
#*
#*
#* ... | gpl-3.0 | -3,220,052,840,027,610,600 | 32.656934 | 77 | 0.550857 | false | 4.150315 | false | false | false |
SUSE/ceph-deploy | ceph_deploy/conf/ceph.py | 3 | 3208 | try:
import configparser
except ImportError:
import ConfigParser as configparser
import contextlib
import sys
from ceph_deploy import exc
class _TrimIndentFile(object):
def __init__(self, fp):
self.fp = fp
def readline(self):
line = self.fp.readline()
return line.lstrip(' \t'... | mit | -968,994,731,461,033,500 | 28.703704 | 124 | 0.607232 | false | 3.975217 | true | false | false |
griest024/PokyrimTools | blender_nif_plugin-develop/io_scene_nif/collisionsys/collision_import.py | 2 | 24079 | """This script contains classes to import collision objects."""
# ***** BEGIN LICENSE BLOCK *****
#
# Copyright © 2005-2012, NIF File Format Library and Tools contributors.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the foll... | mit | -7,649,410,315,954,580,000 | 40.088737 | 135 | 0.586552 | false | 3.58891 | false | false | false |
willingc/zulip | api/integrations/basecamp/zulip_basecamp_config.py | 124 | 2149 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright © 2014 Zulip, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
#... | apache-2.0 | 1,608,664,454,222,710,000 | 39.528302 | 79 | 0.764898 | false | 3.842576 | false | false | false |
Donkyhotay/MoonPy | zope/index/text/tests/indexhtml.py | 1 | 4892 | #! /usr/bin/env python
##############################################################################
#
# Copyright (c) 2003 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this ... | gpl-3.0 | 1,543,810,870,864,296,700 | 28.46988 | 78 | 0.556827 | false | 3.639881 | false | false | false |
mganeva/mantid | scripts/SANS/sans/test_helper/file_information_mock.py | 1 | 2060 | # Mantid Repository : https://github.com/mantidproject/mantid
#
# Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
# NScD Oak Ridge National Laboratory, European Spallation Source
# & Institut Laue - Langevin
# SPDX - License - Identifier: GPL - 3.0 +
from sans.common.file_information import SANS... | gpl-3.0 | -7,647,975,745,525,771,000 | 29.746269 | 122 | 0.652913 | false | 3.705036 | false | false | false |
junhg521/UINibParser | UINibParser/NibProcessor/objc/CollectionViewObject.py | 1 | 3359 | #!/usr/bin/python
# _*_ coding: UTF-8 _*_
__author__ = 'Junhg'
# create: 2016/10/21
# version: 0.0.1
# author: Junhg
# contribute:
#
from ScrollViewObject import JHScrollViewObject
class JHCollectionViewObject(JHScrollViewObject):
def addSubview(self, instanceTag, instanceProperty, classMethodName):
# print 'i... | mit | 1,416,273,479,537,189,400 | 45.013699 | 215 | 0.757368 | false | 3.46646 | false | false | false |
goodspeed24e/2014iOT | test/test_linux/test-download-to-local/generate_downloader_ini.py | 1 | 2902 | #!/usr/bin/python
from __future__ import with_statement
import ConfigParser
import sys
import os
default_path = '/usr/local/id/streaming_pb_downloader/current/configs'
default_filename = 'downloader.ini'
if len(sys.argv) > 2:
print('Usage:\n{0}\nor\n{0} output_path'.format(sys.argv[0]))
sys.exit(0)
if len(sys.arg... | mit | 1,581,009,636,620,447,200 | 37.693333 | 118 | 0.722605 | false | 3.032393 | true | false | false |
bluciam/ruby_versus_python | white_book/Kap_3/3_2.py | 1 | 1855 | from my_test import my_test
class Stack:
def __init__(self, aList=[]):
self.stack = aList
self.minimum = self.find_new_min()
def peek(self):
return self.stack[0]
def pop(self):
try:
popped = self.stack.pop()
except Exception, e:
print e
... | gpl-2.0 | -7,010,414,395,678,147,000 | 20.079545 | 46 | 0.581132 | false | 3.17637 | true | false | false |
dalek2point3/whoisxmlapi-parser | parser.py | 1 | 2169 | #!/usr/bin/env python
from DomainRecord import *
"""parse.py: This program reads a list of domains from domains.csv, gets WHOIS data and stores in data/ folder and then converts this data to csv and writes it to a file -- data.csv."""
__author__ = "dalek2point3"
__license__ = "GPL"
__version__ = "0.1"
__status__ = "D... | mit | 8,735,838,123,598,820,000 | 26.807692 | 185 | 0.5929 | false | 3.415748 | false | false | false |
FrodeSolheim/fs-uae-launcher | fsui/qt/old_windowbase.py | 1 | 6662 | from weakref import ref
from fsui.qt.qt import QDesktopWidget, QSignal, Qt
_windows = set()
# noinspection PyPep8Naming
def WindowBase(BaseClass):
# noinspection PyPep8Naming
class WindowBaseImplementation(BaseClass):
closed = QSignal()
def __init__(self, parent, *args, title="", border=Tr... | gpl-2.0 | -7,188,371,669,351,471,000 | 31.028846 | 78 | 0.520114 | false | 4.119975 | false | false | false |
lohedges/vmmc | demos/python/demo/patchydisc.py | 1 | 5189 | # Copyright (c) 2015-2016 Lester Hedges <lester.hedges+vmmc@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 License, or
# (at your option) any later version.... | gpl-3.0 | 1,266,975,990,513,122,300 | 36.064286 | 118 | 0.603199 | false | 4.232463 | false | false | false |
lfd/PaStA | bin/pasta_compare_stacks.py | 1 | 6265 | """
PaStA - Patch Stack Analysis
Copyright (c) OTH Regensburg, 2016-2019
Author:
Ralf Ramsauer <ralf.ramsauer@othr.de>
This work is licensed under the terms of the GNU GPL, version 2. See
the COPYING file in the top-level directory.
"""
import os
import sys
from functools import partial
sys.path.insert(0, os.pa... | gpl-2.0 | 2,447,855,116,034,381,000 | 43.432624 | 111 | 0.674701 | false | 3.608871 | false | false | false |
SeanXP/Nao-Robot | python/Audio/AudioPlayer/touch_mp3player.py | 1 | 9549 | #! /usr/bin/env python
#-*- coding: utf-8 -*-
#################################################################
# Copyright (C) 2015 Sean Guo. All rights reserved.
#
# > File Name: < touch_mp3player.py >
# > Author: < Sean Guo >
# > Mail: < iseanxp+code@gmail.com >
# >... | gpl-2.0 | 8,306,511,676,130,950,000 | 26.504792 | 65 | 0.687652 | false | 2.298185 | false | false | false |
ActiveState/code | recipes/Python/436187_Parse_CommLine_String_CommandLine_or_String/recipe-436187.py | 1 | 1172 | import sys,os
import ctypes
import win32api
import pprint
import win32con
class cscargv:
def __init__(self,CommandLine=None):
if CommandLine==None:
CommandLine=win32api.GetCommandLine()
argv_count=ctypes.c_int()
self.cmd_string=ctypes.c_wchar_p(CommandLine)
CommandLineToArgvW=ctypes.windll.shell32.CommandLi... | mit | -7,334,779,332,696,353,000 | 30.675676 | 88 | 0.738055 | false | 2.893827 | false | false | false |
Petr-By/qtpyvis | dltb/thirdparty/caffe/network.py | 1 | 9643 | # standard imports
from typing import List
from collections import OrderedDict
from tempfile import NamedTemporaryFile
# third party imports
import numpy as np
import caffe
from caffe.proto import caffe_pb2
import google.protobuf.text_format
# toolbox imports
from ...util.array import DATA_FORMAT_CHANNELS_FIRST
from ... | mit | 3,326,991,134,334,217,700 | 40.744589 | 124 | 0.595769 | false | 4.199913 | false | false | false |
ErinCall/sync-engine | migrations/versions/193_calculate_receivedrecentdate_for_threads.py | 3 | 1246 | """calculate receivedrecentdate for threads
Revision ID: 691fa97024d
Revises: 2758cefad87d
Create Date: 2015-07-20 23:47:41.297327
"""
# revision identifiers, used by Alembic.
revision = '691fa97024d'
down_revision = '2758cefad87d'
# solution from http://stackoverflow.com/a/1217947
def page_query(q):
CHUNK_SIZ... | agpl-3.0 | 7,281,085,283,440,267,000 | 25.510638 | 72 | 0.624398 | false | 3.822086 | false | false | false |
bjschafer/showdown-sync | main.py | 1 | 1293 | #!/bin/env python3
########################################################################################################################
#
# main.py
#
# Purpose: Take localstorage PS teams and turn them into text for safe storage in Dropbox, etc.
#
# Author: Braxton J. Schafer (bjschafer) [bjs]
#
# Creation date: 10... | apache-2.0 | -9,202,133,104,040,309,000 | 29.785714 | 120 | 0.527456 | false | 3.966258 | true | false | false |
kiok46/Blogs-Posts-Tutorials | Navigation-tutotial/kivymd/button.py | 3 | 16889 | # -*- coding: utf-8 -*-
'''
Buttons
=======
`Material Design spec, Buttons page <https://www.google.com/design/spec/components/buttons.html>`_
`Material Design spec, Buttons: Floating Action Button page <https://www.google.com/design/spec/components/buttons-floating-action-button.html>`_
TO-DO: DOCUMENT MODULE
'''
f... | mit | -2,889,195,767,588,572,000 | 36.282561 | 145 | 0.576884 | false | 3.958978 | false | false | false |
spulec/moto | tests/test_s3bucket_path/test_s3bucket_path.py | 1 | 9365 | from __future__ import unicode_literals
from six.moves.urllib.request import urlopen
from six.moves.urllib.error import HTTPError
import boto
from boto.exception import S3ResponseError
from boto.s3.key import Key
from boto.s3.connection import OrdinaryCallingFormat
from freezegun import freeze_time
import requests
i... | apache-2.0 | 533,163,241,294,475,500 | 28.083851 | 87 | 0.65275 | false | 3.175653 | true | false | false |
titilambert/ochopod | ochopod/core/core.py | 3 | 10382 | #
# Copyright (c) 2015 Autodesk Inc.
# All rights reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | apache-2.0 | -7,719,905,477,898,764,000 | 32.820847 | 117 | 0.594009 | false | 4.057054 | false | false | false |
Tutt-Library/rda-enhancement | rda_enhancement/base_converter.py | 1 | 2599 | #-------------------------------------------------------------------------------
# Name: base_converter
# Purpose: Provides Basic MARC21 RDA converter for use in other classes
#
# Author: Jeremy Nelson
#
# Created: 2014/09/15
# Copyright: (c) Jeremy Nelson, Colorado College 2014
# Licence: MIT... | mit | -5,867,511,333,784,070,000 | 34.60274 | 80 | 0.50481 | false | 3.712857 | false | false | false |
SergioChan/Stream-Framework | stream_framework/tests/feeds/aggregated_feed/cassandra.py | 9 | 1344 | from stream_framework.activity import AggregatedActivity
from stream_framework.feeds.aggregated_feed.cassandra import CassandraAggregatedFeed
from stream_framework.tests.feeds.aggregated_feed.base import TestAggregatedFeed,\
implementation
from stream_framework.tests.feeds.cassandra import CustomActivity
import pyt... | bsd-3-clause | 3,840,066,875,035,184,000 | 33.461538 | 84 | 0.764137 | false | 4.072727 | true | false | false |
google-research/google-research | fairness_teaching/gan/model.py | 1 | 7872 | # coding=utf-8
# Copyright 2021 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | apache-2.0 | 8,604,283,360,167,623,000 | 37.4 | 114 | 0.640498 | false | 2.964972 | false | false | false |
Rastii/seproxer | seproxer/options.py | 1 | 3604 | import typing as t
import enum
import os
from seproxer import seproxer_enums
class OptionError(Exception):
"""
Generic option error for this module
"""
class FileConfigError(OptionError):
"""
Error with file configuration
"""
class Defaults(enum.Enum):
WEBDRIVER_TYPE = seproxer_enums.... | mit | -5,991,345,545,619,542,000 | 33.32381 | 96 | 0.661487 | false | 3.934498 | false | false | false |
cnry/m3u8 | m3u8/__init__.py | 1 | 2374 | # coding: utf-8
# Copyright 2014 Globo.com Player authors. All rights reserved.
# Use of this source code is governed by a MIT License
# license that can be found in the LICENSE file.
import sys
PYTHON_MAJOR_VERSION = sys.version_info
import os
import posixpath
try:
import urlparse as url_parser
import urlli... | mit | 5,947,537,396,427,586,000 | 25.674157 | 88 | 0.670598 | false | 3.376956 | false | false | false |
ranjeethmahankali/Masonry | brickScript2.py | 1 | 5260 | import rhinoscriptsyntax as rs
import random
import math
class brick:
#initializes a new brick of dimensions - dim, with the center of its base positioned at 'pos'
#dim is a list of the form [length, width, height]
# in counter clockwise order, bottomplane first
def __init__(self, pos, dimension):
halfL = [dim... | artistic-2.0 | -8,228,921,934,851,108,000 | 24.916256 | 94 | 0.672624 | false | 2.766965 | false | false | false |
mouradmourafiq/googly | googly.py | 1 | 6297 | # -*- coding: utf-8 -*-
'''
Created on Mar 01, 2011
@author: Mourad Mourafiq
@copyright: Copyright © 2011
other contributers:
'''
from bs4 import BeautifulSoup
import cookielib
import os
import random
import time
import urllib
import urllib2
import urlparse
# Cookie jar. Stored at the user's home folder.
home_folde... | bsd-2-clause | -4,250,844,240,657,009,700 | 32.312169 | 128 | 0.536531 | false | 3.620472 | false | false | false |
odo2063/GUMS | Procedures/DIN EN 61000-4-6 Coupler Calibration/Procedure.py | 1 | 8550 | #!/usr/bin/python3.4
import sys, glob
from PyQt4 import QtCore, QtGui, uic
from oct2py import octave
main = uic.loadUiType("Procedures/DIN EN 61000-4-6 Coupler Calibration/Main.ui")[0]# Uebergabe UI Main an Haupt (Name frei waehlbar)
settings = uic.loadUiType("Procedures/DIN EN 61000-4-6 Coupler Calibration/Settings... | gpl-2.0 | -837,104,900,235,095,200 | 34.322314 | 132 | 0.71467 | false | 2.88979 | false | false | false |
subutai/nupic.research | projects/lightning/experiments/imagenet.py | 3 | 4502 | # ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2020, Numenta, Inc. Unless you have an agreement
# with Numenta, Inc., for a separate license for this software code, the
# following terms and conditions apply:
#
# This progra... | agpl-3.0 | 2,913,817,378,928,695,000 | 28.233766 | 82 | 0.584851 | false | 3.812024 | false | false | false |
msimacek/fedmsg_meta_fedora_infrastructure | fedmsg_meta_fedora_infrastructure/tests/pdc.py | 2 | 4963 | # This file is part of fedmsg.
# Copyright (C) 2016 Red Hat, Inc.
#
# fedmsg 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 (at your option) any later version.
#... | lgpl-2.1 | 7,986,599,606,300,448,000 | 39.680328 | 78 | 0.643361 | false | 3.504944 | true | false | false |
jdgwartney/pulse-api-cli | boundary/hostgroup_create.py | 4 | 1430 | #
# Copyright 2015 BMC Software, 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 ... | apache-2.0 | -1,761,781,966,437,149,700 | 39.857143 | 117 | 0.67972 | false | 4.132948 | false | false | false |
donour/racepi | python/racepi/sensor/handler/stn11xx.py | 1 | 5932 | #!/usr/bin/env python3
# Copyright 2016 Donour Sizemore
#
# This file is part of RacePi
#
# RacePi 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 lat... | gpl-2.0 | 1,797,959,906,064,984,000 | 31.23913 | 92 | 0.575691 | false | 3.867014 | true | false | false |
Jobava/pootle | pootle/apps/pootle_store/templatetags/store_tags.py | 6 | 7297 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import re
from diff_m... | gpl-3.0 | 147,076,570,695,776,450 | 33.747619 | 113 | 0.587228 | false | 3.804484 | false | false | false |
pronto/SSH-Ranking | rdnsthings.py | 1 | 3502 | #!/usr/bin/env python2.7
#this.
#this will do the rdns look up+store
#might look into making htis a class or something?that'd be neat
#okay, lets get this started.
import os, argparse,socket,time
from ConfigParser import SafeConfigParser
from datetime import datetime
import code
from sqlclass import *
par = SafeCon... | apache-2.0 | 8,681,581,631,573,097,000 | 30.267857 | 122 | 0.586522 | false | 2.985507 | false | false | false |
stsquad/Gwibber | gwibber/microblog/flickr.py | 1 | 2448 |
"""
Flickr interface for Gwibber
SegPhault (Ryan Paul) - 03/01/2008
"""
from . import can, support
import urllib2, urllib, mx.DateTime, simplejson
PROTOCOL_INFO = {
"name": "Flickr",
"version": 0.1,
"config": [
"username",
"message_color",
"receive_enabled",
],
"features": [
can.RECEIVE,... | gpl-2.0 | -1,230,605,562,101,410,000 | 30.792208 | 96 | 0.645425 | false | 3.06 | false | false | false |
daisychainme/daisychain | daisychain/core/tests/tests.py | 1 | 11534 | from django.test import TestCase, RequestFactory
from django.contrib.sites.models import Site
from django.core.urlresolvers import resolve, reverse
from django.http import HttpRequest
from django.test.client import Client
from django.contrib.auth.models import User
from mock import Mock, patch
from core import tasks
... | mit | 3,804,405,906,757,487,600 | 43.191571 | 79 | 0.550286 | false | 4.63399 | true | false | false |
lucasplus/MABDI | mabdi/MabdiSimulate.py | 1 | 10660 | import os
import vtk
from vtk.util.colors import eggshell, slate_grey_light, red, yellow, salmon, blue, hot_pink
from vtk.util import numpy_support
import mabdi
from mabdi.MabdiSimulateUtilities import add_sensor_visualization, create_sensor_path, find_bounds_and_observation_position_lookat
from mabdi.Output import c... | bsd-3-clause | -4,168,026,557,547,417,000 | 38.481481 | 130 | 0.602064 | false | 3.890511 | false | false | false |
aneumeier/category | tests/defaults.py | 1 | 3031 | """
Django settings for tests project.
For more information on this file, see
https://docs.djangoproject.com/en/dev/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/dev/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
impo... | bsd-3-clause | -8,751,321,489,843,159,000 | 22.679688 | 71 | 0.649621 | false | 3.495963 | false | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.