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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
yola/yolapy | docs/conf.py | 1 | 9271 | # -*- coding: utf-8 -*-
#
# Yolapy documentation build configuration file, created by
# sphinx-quickstart on Thu Aug 27 12:47:53 2015.
#
# 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.
#
# Al... | mit | 7,168,053,449,254,915,000 | 30.968966 | 79 | 0.70672 | false | 3.647128 | true | false | false |
shree-shubham/Unitype | Coupling Passions.py | 1 | 1941 | import math
# Enter your code here. Read input from STDIN. Print output to STDOUT
def distance_between(point1, point2):
EARTH_RADIUS = 6371
point1_lat_in_radians = math.radians( point1['latitude'] )
point2_lat_in_radians = math.radians( point2['latitude'] )
point1_long_in_radians = math.radians( poin... | gpl-3.0 | -4,238,094,887,164,742,700 | 38.612245 | 127 | 0.578568 | false | 2.918797 | false | false | false |
lfairchild/PmagPy | dialogs/pmag_er_magic_dialogs.py | 1 | 52576 | """
dialogs for ErMagicBuilder
"""
# pylint: disable=W0612,C0111,C0103,W0201,C0301
import os
import wx
import wx.grid
import numpy as np
from . import drop_down_menus2 as drop_down_menus
from . import pmag_widgets as pw
from . import magic_grid2 as magic_grid
from . import grid_frame2
from . import grid_frame3
from pma... | bsd-3-clause | -1,870,059,521,684,590,800 | 42.059787 | 323 | 0.604953 | false | 3.690062 | false | false | false |
kevinarpe/kevinarpe-rambutan3 | tests/check_args/other/test_RRangeSizeStr.py | 1 | 1887 | import pytest
from rambutan3.check_args.RCheckArgsError import RCheckArgsError
from rambutan3.check_args.other.RRangeSizeStr import RRangeSizeStr
from tests.check_args.collection import test_RRangeSizeMatcher
def test_ctor():
test_RRangeSizeMatcher.core_test_ctor(RRangeSizeStr)
def test_check_arg():
with py... | gpl-3.0 | -8,604,642,178,105,160,000 | 28.484375 | 92 | 0.656598 | false | 2.921053 | true | false | false |
nohona/cron-crm | usr/local/certbot/certbot/tests/errors_test.py | 4 | 1328 | """Tests for certbot.errors."""
import unittest
import mock
from acme import messages
from certbot import achallenges
from certbot.tests import acme_util
class FailedChallengesTest(unittest.TestCase):
"""Tests for certbot.errors.FailedChallenges."""
def setUp(self):
from certbot.errors import Fail... | gpl-3.0 | -5,918,238,343,923,517,000 | 29.181818 | 73 | 0.676958 | false | 3.905882 | true | false | false |
project-hypr/hypr2 | tests/providers/crud/test_crud_crud.py | 1 | 12472 | # Copyright 2014-2016 Morgan Delahaye-Prat. All Rights Reserved.
#
# Licensed under the Simplified BSD License (the "License");
# you may not use this file except in compliance with the License.
"""Test basic CRUD operations of the CRUDProvider."""
import json
import pytest
from hypr.providers import CRUDProvider
d... | bsd-2-clause | 4,588,177,312,490,519,600 | 28.980769 | 76 | 0.552357 | false | 3.919547 | true | false | false |
sergei-maertens/django-systemjs | docs/_ext/djangodocs.py | 1 | 2159 | """
Taken from djangoproject/django docs.
Sphinx plugins for Django documentation.
"""
import re
from sphinx import addnodes
from sphinx.util.compat import Directive
from sphinx.writers.html import SmartyPantsHTMLTranslator
# RE for option descriptions without a '--' prefix
simple_option_desc_re = re.compile(
r'... | mit | 5,868,693,548,885,009,000 | 29.842857 | 83 | 0.6151 | false | 3.883094 | false | false | false |
matthew-brett/dmg-wheel-installer | make_installer.py | 1 | 6064 | #!/usr/bin/env python
""" Make dmg installer for Python.org Python from Python wheels """
from __future__ import division, print_function
DESCRIP = "Make dmg installer for Python.org Python from Python wheels"
EPILOG = \
"""Make DMG installer from wheels
* Collect source packages for pip, setuptools
* Collect needed ... | bsd-2-clause | 407,317,834,380,431,300 | 33.850575 | 81 | 0.636873 | false | 3.5338 | false | false | false |
Arcbot-Org/Arcbot | bolt/discord/models/channel.py | 1 | 1176 | from bolt.discord.models.base import Snowflake, Model, Field, ListField, Enum, Timestamp
from bolt.discord.models.user import User
from bolt.discord.permissions import Permission
class ChannelType(Enum):
GUILD_TEXT = 0
DM = 1
GUILD_VOICE = 2
GROUP_DM = 3
GUILD_CATEGORY = 4
class PermissionOverwr... | gpl-3.0 | 4,696,457,051,982,362,000 | 26.348837 | 88 | 0.668367 | false | 3.169811 | false | false | false |
gnowledge/OTM2 | opentreemap/treemap/util.py | 1 | 7219 | # -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division
import datetime
from collections import OrderedDict
from urlparse import urlparse
from django.shortcuts import get_object_or_404, resolve_url
from django.http import HttpResponse
from ... | gpl-3.0 | -7,807,075,686,139,737,000 | 33.706731 | 78 | 0.677102 | false | 4.021727 | false | false | false |
Ra93POL/VKAPI | __init__.py | 1 | 4277 | # -* coding: utf-8 -*-
import VKAPI, dataMngt, time
vk = None
one_account = {'vk.com': True, 'ok.ru': True, 'disk.yandex.ru': True}
number_account = dataMngt.get_number_account()
def check_app_data(one_account, res_auth, site):
if res_auth == 'frozen':
print 'Account of "'+vk.user_data[site][1]+'" is froz... | gpl-3.0 | -2,256,723,707,737,997,300 | 33.112 | 75 | 0.579737 | false | 3.112409 | false | false | false |
chrislit/abydos | abydos/distance/_lcprefix.py | 1 | 4129 | # Copyright 2018-2020 by Christopher C. Little.
# This file is part of Abydos.
#
# Abydos 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 versio... | gpl-3.0 | 6,304,868,237,515,560,000 | 23.873494 | 79 | 0.534996 | false | 4.108458 | false | false | false |
renalreg/radar | tests/api/serializers/test_salt_wasting_clinical_features_serializer.py | 1 | 7742 | from datetime import date
from cornflake.exceptions import ValidationError
import pytest
from radar.api.serializers.salt_wasting import SaltWastingClinicalFeaturesSerializer
from radar.models.patient_demographics import PatientDemographics
from radar.models.patients import Patient
from radar.models.users import User
... | agpl-3.0 | -9,060,480,136,143,703,000 | 30.991736 | 104 | 0.740765 | false | 3.22449 | true | false | false |
AlexeyKruglov/Skeinforge-fabmetheus | skeinforge_application/skeinforge_plugins/craft_plugins/inset.py | 1 | 21880 | #! /usr/bin/env python
"""
This page is in the table of contents.
Inset will inset the outside outlines by half the edge width, and outset the inside outlines by the same amount.
The inset manual page is at:
http://fabmetheus.crsndoo.com/wiki/index.php/Skeinforge_Inset
==Settings==
===Add Custom Code for Temperature ... | agpl-3.0 | 3,616,575,776,640,460,000 | 44.774059 | 409 | 0.782038 | false | 3.41875 | false | false | false |
wking/swc-amy | workshops/migrations/0054_self_organized_host.py | 1 | 1799 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import re
import django
from django.db import models, migrations
from django.db.models import Q
def add_self_organized_host(apps, schema_editor):
"""Make new host: self-organized."""
Host = apps.get_model('workshops', 'Host')
Host.objects.cr... | mit | 1,508,810,104,354,600,000 | 35.714286 | 336 | 0.645359 | false | 3.755741 | false | false | false |
jackuess/listmodel | listmodel/models.py | 1 | 6658 | import re
try:
import ujson as json
except ImportError:
import json
try:
import jsonpath_rw
except ImportError:
jsonpath_rw = None
try:
import lxml.etree
except ImportError:
lxml = None
try:
import yaml
except ImportError:
yaml = None
class QueryAttr(object):
def __init__(self, q... | lgpl-3.0 | -9,084,589,181,227,222,000 | 26.399177 | 79 | 0.542055 | false | 4.289948 | false | false | false |
johnwilmes/py-data-structures | py_data_structures/trie.py | 1 | 8045 | """A simple trie, or prefix tree, data structure."""
import itertools
import collections.abc
class Trie(collections.abc.MutableSet):
"""A simple prefix tree data structure.
A Trie is data structure for storing sequences of "names," which can be
aribtrary hashable objects. In the prototypical trie, names ... | mit | 6,371,751,390,622,885,000 | 33.978261 | 79 | 0.558484 | false | 4.612959 | false | false | false |
alex/changes | changes/jobs/create_job.py | 1 | 1548 | from flask import current_app
from changes.backends.base import UnrecoverableException
from changes.config import db
from changes.constants import Status, Result
from changes.jobs.sync_job import sync_job
from changes.models import Job, JobPlan
from changes.queue.task import tracked_task
def abort_create(task):
... | apache-2.0 | -5,937,665,670,571,321,000 | 29.352941 | 83 | 0.684755 | false | 3.642353 | false | false | false |
willprice/python-omxplayer-wrapper | omxplayer/player.py | 1 | 27179 | import subprocess
import time
import os
import signal
import logging
import threading
import atexit
import sys
try: # python 3
from pathlib import Path
except ImportError: # python2
from pathlib2 import Path
from decorator import decorator
from dbus import DBusException, Int64, String, ObjectPath
import d... | lgpl-3.0 | 3,440,031,027,014,566,400 | 28.965821 | 124 | 0.570845 | false | 4.119903 | false | false | false |
kyubifire/softlayer-python | SoftLayer/CLI/image/export.py | 1 | 1270 | """Export an image."""
# :license: MIT, see LICENSE for more details.
import click
import SoftLayer
from SoftLayer.CLI import environment
from SoftLayer.CLI import exceptions
from SoftLayer.CLI import helpers
@click.command()
@click.argument('identifier')
@click.argument('uri')
@click.option('--ibm-api-key',
... | mit | -1,651,164,738,944,447,200 | 34.277778 | 77 | 0.680315 | false | 3.836858 | false | false | false |
skeletalbassman/pytix | wrappers/trello.py | 1 | 10975 | '''wrapper class for Trello REST API'''
import requests
import yaml
import datetime
BASE = "https://api.trello.com/1/"
class Trello():
def __init__(self, project=None, username=None, password=None):
self._key = None
self._token = None
self._authorize()
if project:
self._board = self.setProject(project)
... | mit | -8,722,405,353,362,999,000 | 31.093567 | 167 | 0.613759 | false | 2.801889 | false | false | false |
enki/muXTCP | scapyLink.py | 1 | 1540 | #!/usr/bin/python
from muxlib.scapy import *
import sys
from twisted.internet import base, fdesc, reactor, protocol
import socket
import iptables
class ScapyLink(base.BasePort):
def __init__(self, interface=None, plusIPs=[]):
base.BasePort.__init__(self, reactor)
self.protocols = []
self.... | mit | 3,709,210,830,107,390,500 | 27.518519 | 87 | 0.634416 | false | 4.041995 | false | false | false |
eduNEXT/edunext-platform | common/djangoapps/util/course.py | 1 | 2804 | """
Utility methods related to course
"""
import logging
import six
from django.conf import settings
from django.utils.timezone import now
from openedx.core.djangoapps.site_configuration import helpers as configuration_helpers
log = logging.getLogger(__name__)
COURSE_SHARING_UTM_PARAMETERS = {
'facebook': {
... | agpl-3.0 | 3,148,199,023,560,329,000 | 29.150538 | 101 | 0.662981 | false | 3.77389 | false | false | false |
sugartom/tensorflow-alien | tensorflow/contrib/layers/python/layers/layers.py | 1 | 95215 | # 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 | -7,573,405,888,971,894,000 | 42.89811 | 80 | 0.645266 | false | 4.211562 | false | false | false |
dataflow/DataStage | datastage/dataset/longliving/sword_statement_check.py | 1 | 4734 | import logging
import time
import thread
import urllib2
import sys
import datetime
from django_longliving.base import LonglivingThread
from datastage.dataset import SUBMISSION_QUEUE
from datastage.web.dataset.models import DatasetSubmission
from datastage.web.dataset import openers
from sword2 import Connection, Url... | mit | 5,942,489,631,099,173,000 | 40.165217 | 158 | 0.636671 | false | 4.440901 | false | false | false |
laurent-george/weboob | modules/cmso/web/pages.py | 1 | 3661 | # -*- coding: utf-8 -*-
# Copyright(C) 2014 smurail
#
# This file is part of weboob.
#
# weboob is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your optio... | agpl-3.0 | 2,973,286,327,672,497,700 | 34.892157 | 106 | 0.643267 | false | 3.754872 | false | false | false |
r0balo/pelisalacarta | python/main-classic/channels/yaske.py | 1 | 68313 | # -*- coding: utf-8 -*-
#------------------------------------------------------------
# pelisalacarta - XBMC Plugin
# Canal para yaske
# http://blog.tvalacarta.info/plugin-xbmc/pelisalacarta/
#------------------------------------------------------------
import re, sys, urllib, urlparse
from core import config
... | gpl-3.0 | -1,300,616,030,855,172,400 | 83.053549 | 134 | 0.492533 | false | 2.658234 | false | false | false |
CyrilWaechter/pyRevitMEP | pyRevitMEP.tab/Create.panel/BatchCreation.pulldown/BatchDependentViewCreation.pushbutton/script.py | 1 | 2538 | # coding: utf8
import rpw
# noinspection PyUnresolvedReferences
from rpw import revit, DB
from pyrevit.forms import WPFWindow
from pyrevit import script
from pyrevitmep.workset import Workset
# noinspection PyUnresolvedReferences
from System.Collections.ObjectModel import ObservableCollection
__doc__ = "Batch create ... | gpl-3.0 | 2,052,743,929,366,040,600 | 35.782609 | 113 | 0.644208 | false | 3.636103 | false | false | false |
lmazuel/azure-sdk-for-python | azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/topology_resource.py | 1 | 1570 | # 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 ... | mit | -4,338,701,136,379,454,000 | 36.380952 | 81 | 0.591083 | false | 4.361111 | false | false | false |
eliben/code-for-blog | 2018/type-inference/parser.py | 1 | 7046 | # EBNF specification for micro-ML. { x } means zero or more repetitions of x.
#
# The top-level is decl.
#
# decl: ID { ID } '=' expr
#
# expr: INT
# | bool
# | ID
# | ID '(' { expr ',' } ')'
# | ... | unlicense | -3,593,171,190,825,320,400 | 31.925234 | 80 | 0.453591 | false | 4.106061 | false | false | false |
nsi-iff/nsi_site | apps/news/migrations/0002_auto.py | 1 | 6169 | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Removing M2M table for field project on 'New'
db.delete_table('news_new_project')
# Adding M2M ... | mit | 7,173,289,495,667,929,000 | 61.94898 | 182 | 0.556006 | false | 3.734262 | false | false | false |
fifengine/fifengine | tests/fife_test/scripts/test.py | 1 | 3991 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# ####################################################################
# Copyright (C) 2005-2019 by the FIFE team
# http://www.fifengine.net
# This file is part of FIFE.
#
# FIFE is free software; you can redistribute it and/or
# modify it under the terms of the GNU ... | lgpl-2.1 | 1,703,994,664,542,917,000 | 27.105634 | 86 | 0.656978 | false | 3.585804 | true | false | false |
Patrick-Cole/pygmi | pygmi/clust/graphtool.py | 1 | 26477 | # -----------------------------------------------------------------------------
# Name: graph_tool.py (part of PyGMI)
#
# Author: Patrick Cole
# E-Mail: pcole@geoscience.org.za
#
# Copyright: (c) 2013 Council for Geoscience
# Licence: GPL-3.0
#
# This file is part of PyGMI
#
# PyGMI is free softw... | gpl-3.0 | 3,424,058,039,443,024,000 | 25.583333 | 79 | 0.526721 | false | 3.744449 | false | false | false |
aspose-pdf/Aspose.Pdf-for-Java | Plugins/Aspose_Pdf_Java_for_Python/WorkingWithDocumentObject/__init__.py | 1 | 9774 | __author__ = 'fahadadeel'
import jpype
import re
import datetime
class AddJavascript:
def __init__(self, dataDir):
self.dataDir = dataDir
self.Document = jpype.JClass("com.aspose.pdf.Document")
self.JavascriptAction=jpype.JClass("com.aspose.pdf.JavascriptAction")
def main(se... | mit | -4,455,166,005,678,652,000 | 32.907143 | 246 | 0.593513 | false | 4.032178 | false | false | false |
andr3wmac/metaTower | mt/EventManager.py | 1 | 1710 | """
* metaTower v0.4.5
* http://www.metatower.com
*
* Copyright 2012, Andrew Mac
* http://www.andrewmac.ca
* Licensed under GPL v3.
* See license.txt
* or http://www.metatower.com/license.txt
"""
import mt, inspect
class EventManager:
class EventItem:
def __init__(self, event, function, source):... | gpl-3.0 | -5,570,807,352,983,404,000 | 30.090909 | 83 | 0.523392 | false | 3.808463 | false | false | false |
andreagrandi/workshopvenues | workshopvenues/venues/migrations/0007_auto__add_country__chg_field_address_country__add_index_address_countr.py | 1 | 3797 | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Country'
db.create_table(u'venues_country', (
(u'id', self.gf('django.db.models.... | bsd-3-clause | -1,636,155,754,172,928,000 | 50.324324 | 141 | 0.54148 | false | 3.595644 | false | false | false |
bswartz/cinder | cinder/volume/drivers/netapp/dataontap/fc_cmode.py | 1 | 5282 | # Copyright (c) - 2014, Clinton Knight. All rights reserved.
# Copyright (c) - 2016 Mike Rooney. 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
#
# htt... | apache-2.0 | -1,633,660,446,188,067,300 | 39.320611 | 78 | 0.65373 | false | 4.129789 | false | false | false |
cloudbrain/cloudbrain_examples | sandbox/print_data.py | 1 | 1223 | import time
from cloudbrain.subscribers.rabbitmq import PikaSubscriber
from cloudbrain_examples.settings import (base_routing_key, metric_name, num_channels, buffer_size,
rabbitmq_address, rabbitmq_user, rabbitmq_pwd)
def _print_callback(unsed_ch, unsed_method, unsed_prope... | agpl-3.0 | -5,175,418,729,232,379,000 | 28.829268 | 99 | 0.623876 | false | 4.009836 | false | false | false |
rokuz/pygeom | vec2.py | 1 | 4197 | import math
import copy
import geom_exceptions
import functions
import vec2_gen
class Vec2(vec2_gen.GenVec2):
"""2D Vector."""
def __init__(self, x=0.0, y=0.0):
vec2_gen.GenVec2.__init__(self, x, y)
def __getitem__(self, key):
if key == 0:
return self.x
elif key == 1:
... | mit | 6,090,678,753,408,154,000 | 27.358108 | 100 | 0.554205 | false | 3.675131 | false | false | false |
eddienigma/rpi-rht | GraphIndexTH.py | 1 | 4632 | #
# pull data from sql, plot using matplotlib
# see http://stackoverflow.com/questions/18663746/matplotlib-multiple-lines-with-common-date-on-x-axis-solved
#
# rev 1.0 12/02/2013 WPNS built from GraphAirmuxSD.py V1.1
# rev 1.1 12/02/2013 WPNS remove large delta values
# rev 1.2 12/02/2013 WPNS remove -0.1 values (faile... | gpl-3.0 | -4,583,286,232,077,759,000 | 36.354839 | 185 | 0.676166 | false | 2.927939 | false | false | false |
chagaz/SamSpecCoEN | code/setupCV_computeNetworks.py | 1 | 4177 | # @Author
# Chloe-Agathe Azencott
# chloe-agathe.azencott@mines-paristech.fr
# April 2016
import argparse
import h5py
import numpy as np
import os
import sys
import CoExpressionNetwork
def main():
""" Create sample-specific co-expression networks for one fold and one repeat
of a cross-validation for which f... | mit | -4,337,070,075,003,851,000 | 38.037383 | 113 | 0.639454 | false | 3.860444 | false | false | false |
anaran/olympia | services/update.py | 1 | 14315 | import smtplib
import sys
import traceback
from email.Utils import formatdate
from email.mime.text import MIMEText
from time import time
from urlparse import parse_qsl
from django.utils.http import urlencode
import settings_local as settings
# This has to be imported after the settings so statsd knows where to log ... | bsd-3-clause | -7,104,861,223,561,318,000 | 36.473822 | 79 | 0.533147 | false | 4.066761 | false | false | false |
pLeBlanc93/ArcREST | src/arcrest/manageorg/_portals.py | 1 | 82353 | from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
from ..security import PortalServerSecurityHandler
from ..manageags import AGSAdministration
from ..hostedservice import Services
from ..common.general import local_time_to_online
from .._abstract.abstract impo... | apache-2.0 | 4,190,805,069,658,481,000 | 37.992898 | 101 | 0.445108 | false | 5.53113 | false | false | false |
avanc/mopidy-usbplaylist | mopidy_usbplaylist/playlists.py | 1 | 1414 | from __future__ import unicode_literals
import logging
logger = logging.getLogger(__name__)
from mopidy import backend
from mopidy.models import Playlist
from mopidy.models import Track
import os
import fnmatch
import glob
def find_files(path):
matches = glob.glob(os.path.join(path,'*.mp3'))
return matches
... | apache-2.0 | -1,820,384,431,323,083,800 | 24.25 | 75 | 0.603253 | false | 4.063218 | false | false | false |
TetraAsh/baruwa2 | baruwa/forms/accounts.py | 1 | 6737 | # -*- coding: utf-8 -*-
# vim: ai ts=4 sts=4 et sw=4
# Baruwa - Web 2.0 MailScanner front-end.
# Copyright (C) 2010-2012 Andrew Colin Kissa <andrew@topdog.za.net>
#
# 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 S... | gpl-3.0 | 4,717,546,960,922,763,000 | 38.629412 | 78 | 0.614962 | false | 4.332476 | false | false | false |
Schille/weimar-graphstore | weimar.py | 1 | 1485 | '''
Created on Mar 17, 2014
@author: mschilonka
'''
import argparse, sys
from remote import server as Server
from remote import worker as Worker
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument("-w", "--worker", help="Starts a weimar worker instance.", action="store_true")
... | mit | 6,257,446,607,517,198,000 | 46.935484 | 167 | 0.665993 | false | 3.788265 | false | true | false |
yunify/qingcloud-cli | qingcloud/cli/iaas_client/actions/notification/describe_notification_items.py | 1 | 2183 | # =========================================================================
# Copyright 2012-present Yunify, Inc.
# -------------------------------------------------------------------------
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this work except in compliance with the Licens... | apache-2.0 | 3,015,553,966,601,937,400 | 45.446809 | 102 | 0.584059 | false | 4.905618 | false | false | false |
hack4impact/Givology | mainSite/source/proj/giv/captcha.py | 1 | 4110 | import urllib2, urllib
from proj.settings import *
API_SSL_SERVER="https://www.google.com/recaptcha/api"
API_SERVER="http://www.google.com/recaptcha/api"
VERIFY_SERVER="www.google.com"
class RecaptchaResponse(object):
def __init__(self, is_valid, error_code=None):
self.is_valid = is_valid
self.... | mit | 701,470,126,479,050,600 | 32.414634 | 125 | 0.62871 | false | 3.736364 | false | false | false |
meta-it/misc-addons | web_debranding/models/web_planner.py | 1 | 1046 | # -*- coding: utf-8 -*-
import re
from openerp import models, api
class Planner(models.Model):
_inherit = 'web.planner'
@api.model
def render(self, template_id, planner_app):
res = super(Planner, self).render(template_id, planner_app)
params = self.env['ir.config_parameter'].get_debrandi... | lgpl-3.0 | -2,570,573,885,413,056,500 | 48.809524 | 124 | 0.616635 | false | 2.921788 | false | false | false |
radjkarl/dataArtist | dataArtist/items/GridROI.py | 1 | 14750 | # coding=utf-8
from __future__ import division
from __future__ import absolute_import
import pyqtgraph_karl as pg
import numpy as np
from math import cos, sin, pi
import cv2
from qtpy import QtCore
from .PseudoSquareROI import PseudoSquareROI
from dataArtist.items.QPainterPath import QPainterPath
class GridROI(pg.... | gpl-3.0 | -2,420,680,918,911,564,000 | 28.324056 | 118 | 0.51722 | false | 3.46651 | false | false | false |
jekahy/EIASR | src/canny.py | 1 | 3842 | # coding: utf8
from math import pi
import numpy as np
from scipy.signal import convolve2d
SOBEL_X = np.array([
[ 1, 0, -1],
[ 2, 0, -2],
[ 1, 0, -1],
])
SOBEL_Y = np.array([
[ 1, 2, 1],
[ 0, 0, 0],
[-1, -2, -1],
])
class GradientImage(object):
def __init__(self, magnitudes, angles)... | mit | -4,143,740,423,269,810,000 | 27.671642 | 104 | 0.558303 | false | 3.16214 | false | false | false |
volpino/Yeps-EURAC | lib/galaxy/jobs/runners/sge.py | 1 | 13219 | import os, logging, threading, time
from Queue import Queue, Empty
from galaxy import model
from paste.deploy.converters import asbool
import pkg_resources
try:
pkg_resources.require( "DRMAA_python" )
DRMAA = __import__( "DRMAA" )
except:
DRMAA = None
log = logging.getLogger( __name__ )
if DRMAA is not... | mit | -2,320,704,567,637,543,400 | 40.180685 | 146 | 0.577956 | false | 3.590168 | false | false | false |
sharad/calibre | src/calibre/gui2/dbus_export/menu.py | 1 | 14852 | #!/usr/bin/env python
# vim:fileencoding=utf-8
from __future__ import (unicode_literals, division, absolute_import,
print_function)
__license__ = 'GPL v3'
__copyright__ = '2014, Kovid Goyal <kovid at kovidgoyal.net>'
# Support for excporting Qt's MenuBars/Menus over DBUS. The API is defined in... | gpl-3.0 | 4,996,963,048,490,460,000 | 37.677083 | 115 | 0.597832 | false | 3.609235 | false | false | false |
tensorflow/agents | tf_agents/networks/nest_map.py | 1 | 8386 | # coding=utf-8
# Copyright 2020 The TF-Agents 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | apache-2.0 | 7,011,251,411,921,298,000 | 38.744076 | 80 | 0.673503 | false | 3.796288 | false | false | false |
AmI-2014/Python-Lab1 | fibonacci.py | 1 | 1295 | '''
Created on Mar 18, 2014
@author: Dario Bonino <dario.bonino@polito.it>
Copyright (c) 2014 Dario Bonino
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/LICE... | apache-2.0 | -4,332,876,673,079,846,400 | 24.9 | 74 | 0.657143 | false | 3.678977 | false | false | false |
janusnic/dj-21v | unit_07/mysite/blog/models.py | 1 | 1898 | from django.db import models
import datetime
from django.utils import timezone
from django.utils.encoding import python_2_unicode_compatible
class Category(models.Model):
name = models.CharField(max_length=100)
slug = models.SlugField(max_length=100, unique=True, verbose_name='slug')
description = models.T... | mit | 9,192,965,130,482,229,000 | 39.382979 | 137 | 0.68862 | false | 3.615238 | false | false | false |
dgjnpr/py-junos-eznc | lib/jnpr/junos/factory/viewfields.py | 1 | 1923 | class ViewFields(object):
"""
Used to dynamically create a field dictionary used with the
RunstatView class
"""
def __init__(self):
self._fields = dict()
def _prockvargs(self, field, name, **kvargs):
if not len(kvargs):
return
field[name].update(kvargs)
... | apache-2.0 | 5,510,952,686,028,726,000 | 28.136364 | 77 | 0.558502 | false | 4.056962 | false | false | false |
missionpinball/mpf | setup.py | 1 | 3976 | """Mission Pinball Framework (mpf) setup.py."""
import re
from setuptools import setup
# http://stackoverflow.com/questions/458550/standard-way-to-embed-version-into-python-package
VERSIONFILE = "mpf/_version.py"
VERSION_STRING_LONG = open(VERSIONFILE, "rt").read()
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
_MO = r... | mit | 4,193,858,183,606,862,000 | 27.604317 | 115 | 0.617203 | false | 3.427586 | false | false | false |
jddeal/python-cmr | tests/test_collection.py | 1 | 1877 | import unittest
from cmr.queries import CollectionQuery
class TestCollectionClass(unittest.TestCase):
def test_archive_center(self):
query = CollectionQuery()
query.archive_center("LP DAAC")
self.assertIn("archive_center", query.params)
self.assertEqual(query.params["archive_cent... | mit | 3,611,592,017,431,405,600 | 31.929825 | 102 | 0.605221 | false | 3.582061 | true | false | false |
jreback/pandas | pandas/plotting/_matplotlib/hist.py | 1 | 11983 | from typing import TYPE_CHECKING
import numpy as np
from pandas.core.dtypes.common import is_integer, is_list_like
from pandas.core.dtypes.generic import ABCDataFrame, ABCIndex
from pandas.core.dtypes.missing import isna, remove_na_arraylike
from pandas.io.formats.printing import pprint_thing
from pandas.plotting._m... | bsd-3-clause | 6,666,785,963,615,121,000 | 25.106754 | 88 | 0.548026 | false | 3.672387 | false | false | false |
vedmathai/dateCorroborator | corroboratorPOC.py | 1 | 6019 | from subprocess import *
import re
import treetaggerwrapper
import sparqlQuerypy
from bs4 import BeautifulSoup
CONSTANTKEYVERBS="die, died, death, born, birth, sworn in" #Set of words that if present in the sentence, then don't discard the sentence, we are interested.
tagger = treetaggerwrapper.TreeTagger(TAGLANG = 'e... | gpl-3.0 | -6,094,858,273,225,851,000 | 39.668919 | 157 | 0.587805 | false | 3.816741 | false | false | false |
fluggo/Canvas | fluggo/editor/model/connectors.py | 1 | 9949 | # This file is part of the Fluggo Media Library for high-quality
# video and audio processing.
#
# Copyright 2012 Brian J. Crowell <brian@fluggo.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 Founda... | gpl-3.0 | -7,344,997,437,159,359,000 | 35.577206 | 145 | 0.555232 | false | 4.335076 | false | false | false |
diego-d5000/MisValesMd | env/lib/python2.7/site-packages/django/utils/version.py | 1 | 2539 | from __future__ import unicode_literals
import datetime
import os
import subprocess
from django.utils.lru_cache import lru_cache
def get_version(version=None):
"Returns a PEP 386-compliant version number from VERSION."
version = get_complete_version(version)
# Now build the two parts of th... | mit | -5,298,214,203,842,086,000 | 29.7375 | 79 | 0.624655 | false | 3.835347 | false | false | false |
dorianpula/learn-django | charleston/models.py | 1 | 5628 | from datetime import datetime
from django.core.urlresolvers import reverse, reverse_lazy
from django.db import models
from django.contrib.auth.models import User
from django.conf import settings
from django.utils.encoding import smart_str
from tagging.fields import TagField
from markdown import markdown
class Cate... | bsd-2-clause | 5,318,329,303,083,099,000 | 33.740741 | 114 | 0.63344 | false | 4.14128 | false | false | false |
The-Compiler/qutebrowser | qutebrowser/completion/models/listcategory.py | 1 | 3679 | # vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:
# Copyright 2017-2020 Ryan Roden-Corrent (rcorre) <ryan@rcorre.net>
#
# This file is part of qutebrowser.
#
# qutebrowser 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... | gpl-3.0 | 2,326,568,685,677,522,000 | 33.064815 | 79 | 0.613754 | false | 4.051762 | false | false | false |
abhipec/pec | emailApp/emailApp/migrations/0001_squashed_0009_dashboard.py | 1 | 2395 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
replaces = [(b'emailApp', '0001_initial'), (b'emailApp', '0002_email_textcleaned'), (b'emailApp', '0003_email_removedcontent'), (b'emailApp', '0004_auto_20150329_0757')... | mit | 4,397,749,009,530,095,600 | 48.895833 | 374 | 0.56952 | false | 3.945634 | false | false | false |
mwalercz/virus-total-helper | server/dispatcher.py | 1 | 1180 | import inspect
from server.customhttp import HTTPResponse
class NoSuchUrl(Exception):
def __init__(self, url):
self.url = url
class Dispatcher:
def __init__(self, urls, scheduler, deque):
self.deque = deque
self.urls = urls
self.scheduler = scheduler
def dispatch(self, ... | bsd-3-clause | 8,067,938,445,552,639,000 | 26.44186 | 72 | 0.616949 | false | 4.244604 | false | false | false |
blitzmann/Pyfa | gui/builtinContextMenus/spoolUp.py | 1 | 3085 | # noinspection PyPackageRequirements
import wx
import eos.config
import gui.mainFrame
from eos.utils.spoolSupport import SpoolType, SpoolOptions
from gui import globalEvents as GE
from gui.contextMenu import ContextMenu
from service.settings import ContextMenuSettings
from service.fit import Fit
class SpoolUp(Contex... | gpl-3.0 | -3,779,389,863,283,970,600 | 36.621951 | 153 | 0.65705 | false | 3.681384 | false | false | false |
SpectoLabs/hoverpy | hoverpy/decorators.py | 1 | 1513 | from .hp import HoverPy
class capture(object):
def __init__(self, dbpath="requests.db", capture=True, **kwargs):
self.dbpath = dbpath
self.capture = capture
self.kwargs = kwargs
def __call__(self, f):
def wrapped_f(*args):
with HoverPy(capture=self.capture, dbpath=... | apache-2.0 | 4,016,808,002,218,339,300 | 27.54717 | 92 | 0.576999 | false | 3.820707 | false | false | false |
christ2go/pycal | src/tree/treeprint.py | 1 | 1219 | def write(x):
print(x,end="")
class treeprinter:
"""
Prints an abstract syntax tree
as a XML-Document
tree has to be instaneceof node
(tree is the AST to be printed)
"""
def __init__(self,tree):
self.tree = tree
def printt(self):
if not self.... | apache-2.0 | -6,523,374,612,603,958,000 | 28.731707 | 58 | 0.437244 | false | 4.262238 | false | false | false |
aksampath123/Python_Development_Projects | Dungeon_game/character.py | 1 | 1226 | import random
from combat import Combat
class Character(Combat):
attack_limit = 10
experience = 0
base_hit_points = 10
def attack(self):
roll = random.randint(1, self.attack_limit)
if self.weapon == 'sword':
roll += 1
elif self.weapon == 'axe':
roll += 2
elif self.weapon ==... | unlicense | -2,503,536,181,508,784,600 | 23.039216 | 124 | 0.579119 | false | 3.340599 | false | false | false |
OSGConnect/bandwidth-monitors | submit/testnetwork.py | 1 | 2452 | #!/usr/bin/env python
import urllib
import urllib2
import time
import getopt
import sys
import os
import timeit
import platform
import subprocess
import re
REFERENCE_URL = 'http://stash.osgconnect.net/+sthapa/100MB_ref'
WSGI_URL = 'http://web-dev.ci-connect.net/~sthapa/record_network_test.wsgi'
def download_file():
... | apache-2.0 | -1,105,823,344,387,599,200 | 27.511628 | 121 | 0.597879 | false | 3.448664 | true | false | false |
miltonsarria/dsp-python | images/5_tf_deepNet_text.py | 1 | 5124 | import os
import nltk
from nltk.tokenize import word_tokenize
from nltk.stem import WordNetLemmatizer
#apagar wanings
os.environ['TF_CPP_MIN_LOG_LEVEL']='2'
import tensorflow as tf
import numpy as np
import pickle
import random
from collections import Counter
lemmatizer = WordNetLemmatizer()
hm_lines = 10000000
#fi... | mit | 5,958,327,614,851,862,000 | 31.846154 | 92 | 0.556206 | false | 3.355599 | true | false | false |
EvilCult/moviecatcher | View/ResultView.py | 1 | 4486 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import tkinter
import tkinter.messagebox
from Bl import Play
from Lib import Tools
class GUI :
def __init__ (self, master) :
self.master = master
self.Tools = Tools.Tools()
self.listRst = ''
self.resRst = ''
self.getDetail = ''
def showList (self, searchKey)... | mit | -3,049,180,664,325,927,000 | 29.906475 | 156 | 0.649674 | false | 2.656772 | false | false | false |
ramineni/myironic | ironic/tests/drivers/ilo/test_power.py | 1 | 9414 | # Copyright 2014 Hewlett-Packard Development Company, L.P.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2... | apache-2.0 | -3,160,510,754,953,371,000 | 44.259615 | 79 | 0.621521 | false | 3.718009 | true | false | false |
matt77hias/Clipping | src/surfacearea.py | 1 | 2427 | import numpy as np
###############################################################################
## Surface Area
## ---------------------------------
## Planar polygon
###############################################################################
# Theorem of Green
#------------------------------------------------... | gpl-3.0 | -9,147,105,581,252,938,000 | 28.962963 | 113 | 0.409971 | false | 2.502062 | false | false | false |
CCBatIIT/AlGDock | Pipeline/prep_complex_for_AlGDock.py | 1 | 3734 | # Prepares a complex for AlGDock
try:
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('ligand_mol2', default=None,
help='Input mol2 of the ligand with sybyl atom types')
parser.add_argument('receptor_pdb', default=None,
help='Input PDB of the receptor with AMBER atom types')
pa... | mit | 8,426,347,556,647,662,000 | 32.63964 | 92 | 0.686931 | false | 2.872308 | false | false | false |
lmazuel/azure-sdk-for-python | azure-mgmt-monitor/azure/mgmt/monitor/models/metric_trigger.py | 1 | 4030 | # 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 ... | mit | 7,079,760,800,057,811,000 | 46.411765 | 86 | 0.644913 | false | 4.269068 | false | false | false |
robe16/kiosk.grandparent-message-board | src/axiscare/url_process.py | 1 | 2732 | from multiprocessing import Process
from bs4 import BeautifulSoup
import time
from google.google_gmail import get_gmail_lists, get_gmail_message_mime, delete_gmail_message
from config.cfg import put_config_axiscare_url
from log.log import log_general, log_error
def eml_list():
return get_gmail_lists()
def get_... | gpl-3.0 | -8,363,137,163,987,299,000 | 27.458333 | 113 | 0.515739 | false | 4.023564 | false | false | false |
dariocorral/panoanda | panoanda/hourOffset.py | 1 | 1849 | """
Created on Sun Sep 17 07:26:03 2017
@author: dariocorral
"""
from datetime import datetime, date, timedelta
import pytz
class Hour(object):
"""
Auxiliary class for converting GMT - NY - local time hours
"""
#Local time hour property
@property
def current_local(self):
"""
... | mit | -2,291,861,256,432,731,100 | 20.511628 | 66 | 0.53272 | false | 4.610973 | false | false | false |
olcf/pcircle | legacy/pcircle/path.py | 1 | 2783 | import os
class CopyType:
""" A fake enum, define three type of copy job """
FILE2FILE = 0
FILE2DIR = 1
DIR2DIR = 2
def copytype2str(t):
if t == CopyType.FILE2FILE:
return "file to file"
elif t == CopyType.FILE2DIR:
return "file(s) to dir"
elif t == CopyType.DIR2DIR:
... | apache-2.0 | -2,806,440,448,711,826,000 | 29.922222 | 83 | 0.614445 | false | 3.750674 | false | false | false |
phase-dev/phase | libmproxy/protocol/__init__.py | 1 | 3448 | from ..proxy import ServerConnection, AddressPriority
KILL = 0 # const for killed requests
class ConnectionTypeChange(Exception):
"""
Gets raised if the connetion type has been changed (e.g. after HTTP/1.1 101 Switching Protocols).
It's up to the raising ProtocolHandler to specify the new conntype before... | gpl-3.0 | -1,467,776,239,148,009,500 | 32.803922 | 114 | 0.645012 | false | 4.104762 | false | false | false |
Davideddu/garden.namedboxes | __init__.py | 1 | 3796 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# __init__.py
# Copyright (C) 2014 Davide Depau <me@davideddu.org>
#
# NamedBoxes 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,... | mit | 8,088,089,841,062,187,000 | 29.620968 | 79 | 0.644889 | false | 4.055556 | false | false | false |
BlackLight/evesp | evesp/event/__init__.py | 1 | 2976 | class Event(object):
"""
Base class for events
Fabio Manganiello, 2015 <blacklight86@gmail.com>
"""
def __init__(self, component=None, **kwargs):
"""
Constructor
kwargs -- key-value associations for the attributes of the object
"""
self.__kwargs = kwargs
... | apache-2.0 | 6,722,185,896,443,257,000 | 27.615385 | 120 | 0.600806 | false | 4.300578 | false | false | false |
Shrews/PyGerrit | webapp/django/core/handlers/wsgi.py | 1 | 8460 | from threading import Lock
from pprint import pformat
try:
from cStringIO import StringIO
except ImportError:
from StringIO import StringIO
from django import http
from django.core import signals
from django.core.handlers import base
from django.core.urlresolvers import set_script_prefix
from django.utils impo... | apache-2.0 | -8,111,166,442,822,824,000 | 34.546218 | 134 | 0.590662 | false | 3.925754 | false | false | false |
petewarden/tensorflow | tensorflow/python/keras/layers/preprocessing/text_vectorization_test.py | 1 | 68032 | # Copyright 2019 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 | 1,295,234,925,009,800,400 | 39.08957 | 81 | 0.594367 | false | 3.510604 | true | false | false |
Sapphirine/Predicting-The-United-States-Presidential-Election-Results-Using-TwitterSentiment | src/calculate_state_prob.py | 1 | 1641 | import pandas as pd
import csv
#Open file to save Trump tweets sentiment used to estimate probability
csvfile=open("/home/ubuntu/project/output_data/trump_pos_sentiment.csv", "w")
csvwriter=csv.writer(csvfile, delimiter=",")
#Assign header row
csvwriter.writerow(["Index"]+["State"]+["Sentiment"])
#Initialize counter... | apache-2.0 | -6,014,421,773,318,569,000 | 33.1875 | 103 | 0.678245 | false | 3.125714 | false | false | false |
jaantollander/CrowdDynamics | crowddynamics/core/motion/tests/test_motion.py | 1 | 2448 | import numpy as np
from hypothesis import given
from crowddynamics.core.motion.adjusting import force_adjust, torque_adjust
from crowddynamics.core.motion.contact import force_contact
from crowddynamics.core.motion.fluctuation import force_fluctuation, \
torque_fluctuation
from crowddynamics.core.motion.helbing im... | gpl-3.0 | 1,157,326,579,588,317,200 | 30.384615 | 75 | 0.658497 | false | 2.843206 | true | false | false |
stoq/kiwi | examples/validation/datatypes.py | 1 | 1096 | import datetime
from gi.repository import Gtk
from kiwi.currency import currency
from kiwi.ui.widgets.entry import ProxyEntry
from kiwi.ui.widgets.label import ProxyLabel
window = Gtk.Window()
window.connect('delete-event', Gtk.main_quit)
window.set_border_width(6)
vbox = Gtk.VBox()
window.add(vbox)
data_types = [
... | lgpl-2.1 | -7,734,861,046,727,665,000 | 22.826087 | 55 | 0.666058 | false | 3.036011 | false | false | false |
h2020-endeavour/iSDX | xctrl/flowmodmsg.py | 1 | 2846 | #!/usr/bin/env python
# Author:
# Rudiger Birkner (Networked Systems Group ETH Zurich)
class FlowModMsgBuilder(object):
def __init__(self, participant, key):
self.participant = participant
self.key = key
self.flow_mods = []
def add_flow_mod(self, mod_type, rule_type, priority, match... | apache-2.0 | 162,722,739,256,632,800 | 30.977528 | 105 | 0.382642 | false | 3.487745 | false | false | false |
ben-jones/centinel | centinel/vpn/openvpn.py | 1 | 2675 | #!/usr/bin/python
# openvpn.py: library to handle starting and stopping openvpn instances
import subprocess
import threading
import time
class OpenVPN():
def __init__(self, config_file=None, auth_file=None, timeout=10):
self.started = False
self.stopped = False
self.error = False
... | mit | -5,255,765,130,357,951,000 | 31.621951 | 77 | 0.541308 | false | 4.503367 | true | false | false |
DTOcean/dtocean-core | dtocean_core/utils/moorings.py | 1 | 21601 | # -*- coding: utf-8 -*-
# Copyright (C) 2016-2018 Mathew Topper
#
# 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... | gpl-3.0 | -1,758,551,616,762,855,000 | 39.679849 | 81 | 0.432711 | false | 4.878275 | false | false | false |
Letractively/portable-movie-organizer | movie-organizer/MovieDataEditor.py | 1 | 9673 | #
# portable-movie-organizer
#
# Copyright (c) 2010 Ali Aafee
#
# This file is part of portable-movie-organizer.
#
# portable-movie-organizer is free software: you can redistribute it
# and/or modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation, either version ... | gpl-3.0 | -6,006,860,567,625,273,000 | 33.546429 | 101 | 0.721493 | false | 2.933879 | false | false | false |
IsCoolEntertainment/debpkg_libcloud | libcloud/compute/drivers/openstack.py | 1 | 57541 | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... | apache-2.0 | -4,493,782,231,637,883,000 | 32.37645 | 79 | 0.53063 | false | 4.163302 | false | false | false |
Cinntax/home-assistant | homeassistant/components/zha/core/channels/security.py | 1 | 6806 | """
Security channels module for Zigbee Home Automation.
For more details about this component, please refer to the documentation at
https://home-assistant.io/components/zha/
"""
import logging
import zigpy.zcl.clusters.security as security
from homeassistant.core import callback
from homeassistant.helpers.dispatche... | apache-2.0 | 7,192,171,406,314,994,000 | 34.612565 | 99 | 0.626286 | false | 3.56499 | false | false | false |
SRabbelier/Melange | scripts/gci_statistic_seeder.py | 1 | 7157 | #!/usr/bin/python2.5
#
# Copyright 2010 the Melange 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 applicable... | apache-2.0 | -4,528,827,782,894,037,000 | 25.3125 | 76 | 0.586139 | false | 3.723725 | false | false | false |
shuque/pydig | pydiglib/rr_svcb.py | 1 | 3490 | """
SVCB and HTTPS RR Types class.
"""
import socket
import struct
from .name import name_from_wire_message
# SVCB (Service Binding RR) Parameter Types
SVCB_PARAM = {
0: "mandatory",
1: "alpn",
2: "no-default-alpn",
3: "port",
4: "ipv4hint",
5: "echconfig",
6: "ipv6hint",
}
class Rdat... | gpl-2.0 | -2,864,752,358,938,569,000 | 32.883495 | 77 | 0.439542 | false | 3.961407 | false | false | false |
hbs/python-oauth2 | oauth2/__init__.py | 1 | 24945 | """
The MIT License
Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel
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 ... | mit | -6,773,699,701,043,492,000 | 32.938776 | 134 | 0.616837 | false | 4.37862 | false | false | false |
GrognardsFromHell/TemplePlus | tpdatasrc/tpgamefiles/rules/races/race011_troll.py | 1 | 1219 | from toee import *
import race_defs
###################################################
def GetCategory():
return "Core 3.5 Ed Classes"
print "Registering race: Troll"
raceEnum = race_troll
raceSpec = race_defs.RaceSpec()
raceSpec.modifier_name = "Troll" # Python modifier to be applied
raceSpec... | mit | -6,833,448,202,129,764,000 | 32.888889 | 96 | 0.604594 | false | 3.207895 | false | false | false |
sauloal/cnidaria | scripts/venv/lib/python2.7/site-packages/cogent/util/modules.py | 1 | 1377 | #!/usr/bin/env python
"""Compiled modules may be out of date or missing"""
import os, sys
__author__ = "Peter Maxwell"
__copyright__ = "Copyright 2007-2012, The Cogent Project"
__credits__ = ["Peter Maxwell"]
__license__ = "GPL"
__version__ = "1.5.3"
__maintainer__ = "Peter Maxwell"
__email__ = "pm67nz@gmail.com"
__s... | mit | 7,593,111,555,751,964,000 | 32.585366 | 66 | 0.580973 | false | 3.232394 | false | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.