repo_name stringlengths 5 100 | path stringlengths 4 299 | copies stringclasses 990
values | size stringlengths 4 7 | content stringlengths 666 1.03M | license stringclasses 15
values | hash int64 -9,223,351,895,964,839,000 9,223,297,778B | line_mean float64 3.17 100 | line_max int64 7 1k | alpha_frac float64 0.25 0.98 | autogenerated bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|
semonte/intellij-community | python/helpers/sphinxcontrib/napoleon/docstring.py | 44 | 32526 | # -*- coding: utf-8 -*-
# Copyright 2014 Rob Ruana
# Licensed under the BSD License, see LICENSE file for details.
"""Classes for docstring parsing and formatting."""
import collections
import inspect
import re
import sys
from six.moves import range
from pockets import modify_iter
from six import string_types
_dire... | apache-2.0 | -7,560,760,245,856,250,000 | 33.861736 | 79 | 0.514542 | false |
ypid/debops-playbooks | playbooks/lookup_plugins/lists.py | 2 | 2142 | # (c) 2015, Hartmut Goebel <h.goebel@crazy-compilers.com>
# Based on `runner/lookup_plugins/items.py` for Ansible
# (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>
#
# This file is part of Debops.
# This file is NOT part of Ansible yet.
#
# Debops is free software: you can redistribute it and/or modify
# it under... | gpl-3.0 | 7,829,566,924,794,505,000 | 33.548387 | 119 | 0.679272 | false |
LevinJ/ud730-Deep-Learning | A3_regularization/p4_mulitlayer.py | 1 | 3999 | from __future__ import print_function
import numpy as np
import tensorflow as tf
from A2_fullyconnected.p1_relulayer import HiddenRelu
import math
import utility.logger_tool
import logging
class Mulilayer_HiddenRelu(HiddenRelu):
def __init__(self):
HiddenRelu.__init__(self)
self.num_steps = 120 * ... | gpl-2.0 | 49,122,913,487,518,856 | 42.945055 | 126 | 0.636909 | false |
adrientetar/robofab | Lib/robofab/tools/remote.py | 1 | 4496 | """Remote control for MacOS FontLab.
initFontLabRemote() registers a callback for appleevents and
runFontLabRemote() sends the code from a different application,
such as a Mac Python IDE or Python interpreter.
"""
from robofab.world import world
if world.inFontLab and world.mac is not None:
from Carbon import AE as ... | bsd-3-clause | -7,016,055,477,685,894,000 | 24.697143 | 93 | 0.717082 | false |
hronoses/vispy | vispy/ext/_bundled/png.py | 12 | 83543 | #!/usr/bin/env python
# png.py - PNG encoder/decoder in pure Python
#
# Copyright (C) 2006 Johann C. Rocholl <johann@browsershots.org>
# Portions Copyright (C) 2009 David Jones <drj@pobox.com>
# And probably portions Copyright (C) 2006 Nicko van Someren <nicko@nicko.org>
#
# Original concept by Johann C. Rocholl.
#
# ... | bsd-3-clause | 7,352,109,194,574,598,000 | 36.71693 | 88 | 0.559999 | false |
noroutine/ansible | lib/ansible/modules/storage/netapp/sf_snapshot_schedule_manager.py | 43 | 13003 | #!/usr/bin/python
# (c) 2017, NetApp, Inc
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
... | gpl-3.0 | -1,707,390,404,245,752,600 | 32.774026 | 123 | 0.561024 | false |
lsqtongxin/django | django/contrib/admin/helpers.py | 146 | 14347 | from __future__ import unicode_literals
import warnings
from django import forms
from django.conf import settings
from django.contrib.admin.templatetags.admin_static import static
from django.contrib.admin.utils import (
display_for_field, flatten_fieldsets, help_text_for_field, label_for_field,
lookup_field,... | bsd-3-clause | 7,409,968,927,151,770,000 | 38.852778 | 101 | 0.60382 | false |
poojavade/Genomics_Docker | Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/Pillow-2.3.0-py2.7-linux-x86_64.egg/PIL/PsdImagePlugin.py | 14 | 7371 | #
# The Python Imaging Library
# $Id$
#
# Adobe PSD 2.5/3.0 file handling
#
# History:
# 1995-09-01 fl Created
# 1997-01-03 fl Read most PSD images
# 1997-01-18 fl Fixed P and CMYK support
# 2001-10-21 fl Added seek/tell support (for layers)
#
# Copyright (c) 1997-2001 by Secret Labs AB.
# Copyright (c) 1995-20... | apache-2.0 | -1,871,297,079,637,771,800 | 23.986441 | 80 | 0.464659 | false |
RadioFreeAsia/RDacity | lib-src/lv2/lv2/plugins/eg-midigate.lv2/waflib/Tools/c.py | 329 | 1066 | #! /usr/bin/env python
# encoding: utf-8
# WARNING! Do not edit! http://waf.googlecode.com/git/docs/wafbook/single.html#_obtaining_the_waf_file
from waflib import TaskGen,Task,Utils
from waflib.Tools import c_preproc
from waflib.Tools.ccroot import link_task,stlink_task
@TaskGen.extension('.c')
def c_hook(self,node):
... | gpl-2.0 | -1,920,577,208,043,450,000 | 43.416667 | 295 | 0.699812 | false |
0jpq0/kbengine | kbe/res/scripts/common/Lib/ctypes/test/test_structures.py | 79 | 15780 | import unittest
from ctypes import *
from ctypes.test import need_symbol
from struct import calcsize
import _testcapi
class SubclassesTest(unittest.TestCase):
def test_subclass(self):
class X(Structure):
_fields_ = [("a", c_int)]
class Y(X):
_fields_ = [("b", c_int)]
... | lgpl-3.0 | -9,189,950,607,011,268,000 | 32.717949 | 86 | 0.510266 | false |
Bootz/multicore-opimization | llvm/tools/clang/utils/ABITest/Enumeration.py | 110 | 7814 | """Utilities for enumeration of finite and countably infinite sets.
"""
###
# Countable iteration
# Simplifies some calculations
class Aleph0(int):
_singleton = None
def __new__(type):
if type._singleton is None:
type._singleton = int.__new__(type)
return type._singleton
def __r... | gpl-3.0 | 5,023,564,937,907,231,000 | 27.311594 | 93 | 0.559381 | false |
jepler/linuxcnc-mirror | lib/python/qtvcp/plugins/simplewidgets_plugin.py | 3 | 20659 | #!/usr/bin/env python
from PyQt5 import QtCore, QtGui
from PyQt5.QtDesigner import QPyDesignerCustomWidgetPlugin
from qtvcp.widgets.simple_widgets import PushButton
from qtvcp.widgets.simple_widgets import CheckBox
from qtvcp.widgets.simple_widgets import RadioButton
from qtvcp.widgets.simple_widgets import LCDNumber
... | lgpl-2.1 | -5,714,704,274,526,275,000 | 32.267311 | 93 | 0.608452 | false |
epall/selenium | firefox/src/py/firefoxlauncher.py | 4 | 2957 | # Copyright 2008-2009 WebDriver committers
# Copyright 2008-2009 Google 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 requ... | apache-2.0 | -3,428,735,263,898,588,700 | 32.602273 | 77 | 0.660467 | false |
coderb0t/CouchPotatoServer | couchpotato/core/media/_base/providers/torrent/sceneaccess.py | 44 | 5755 | import traceback
from bs4 import BeautifulSoup
from couchpotato.core.helpers.encoding import toUnicode
from couchpotato.core.helpers.variable import tryInt
from couchpotato.core.logger import CPLog
from couchpotato.core.media._base.providers.torrent.base import TorrentProvider
log = CPLog(__name__)
class Base(Torr... | gpl-3.0 | 535,981,053,093,615,200 | 41.316176 | 911 | 0.544744 | false |
gayancliyanage/karma | scripts/travis_after_all.py | 93 | 3418 | import os
import json
import time
import logging
try:
import urllib.request as urllib2
except ImportError:
import urllib2
log = logging.getLogger("travis.leader")
log.addHandler(logging.StreamHandler())
log.setLevel(logging.INFO)
TRAVIS_JOB_NUMBER = 'TRAVIS_JOB_NUMBER'
TRAVIS_BUILD_ID = 'TRAVIS_BUILD_ID'
POL... | mit | 6,423,600,169,622,113,000 | 34.247423 | 119 | 0.661791 | false |
sigurdga/nidarholm | projects/views.py | 1 | 1754 | from django.views.generic.list_detail import object_list, object_detail
from django.shortcuts import get_object_or_404, render_to_response
from django.template.context import RequestContext
from django.http import HttpResponseRedirect
from projects.models import Project
from projects.forms import ProjectForm
def pro... | agpl-3.0 | 8,512,307,491,745,753,000 | 35.541667 | 116 | 0.690422 | false |
RackSec/ansible | lib/ansible/modules/network/nxos/nxos_igmp.py | 50 | 7592 | #!/usr/bin/python
#
# This file is part of Ansible
#
# Ansible 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.
#
# Ansible is distribut... | gpl-3.0 | 5,146,778,391,365,201,000 | 28.426357 | 79 | 0.630005 | false |
pymedusa/SickRage | ext/oauthlib/oauth1/rfc5849/endpoints/access_token.py | 7 | 9405 | # -*- coding: utf-8 -*-
"""
oauthlib.oauth1.rfc5849.endpoints.access_token
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This module is an implementation of the access token provider logic of
OAuth 1.0 RFC 5849. It validates the correctness of access token requests,
creates and persists tokens as well as create the p... | gpl-3.0 | -6,871,182,156,631,930,000 | 42.341014 | 137 | 0.624668 | false |
ej2/pixelpuncher | pixelpuncher/npc/utils/conversation.py | 1 | 5304 | import random
from annoying.functions import get_object_or_None
from datetime import datetime
from pixelpuncher.game.utils.message import add_game_message
from pixelpuncher.game.utils.messages import pixels_dropped_message, xp_gained_message, item_given, \
location_unlocked_message
from pixelpuncher.item.utils im... | bsd-3-clause | 164,031,938,155,241,660 | 30.384615 | 111 | 0.652526 | false |
code-google-com/cortex-vfx | test/IECore/MeshNormalsOpTest.py | 8 | 3581 | ##########################################################################
#
# Copyright (c) 2008-2013, Image Engine Design 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:
#
# * Redis... | bsd-3-clause | -1,982,644,797,105,634,300 | 36.302083 | 95 | 0.67914 | false |
PetrDlouhy/django | django/utils/six.py | 408 | 30194 | """Utilities for writing code that runs on Python 2 and 3"""
# Copyright (c) 2010-2015 Benjamin Peterson
#
# 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 with... | bsd-3-clause | 2,425,962,393,310,686,000 | 34.355972 | 98 | 0.633073 | false |
kosz85/django | tests/forms_tests/tests/test_validators.py | 111 | 2210 | import re
from unittest import TestCase
from django import forms
from django.core import validators
from django.core.exceptions import ValidationError
class TestFieldWithValidators(TestCase):
def test_all_errors_get_reported(self):
class UserForm(forms.Form):
full_name = forms.CharField(
... | bsd-3-clause | -8,180,420,647,220,429,000 | 33.53125 | 110 | 0.503167 | false |
dhodhala88/Bosch1 | weblate/trans/management/commands/loadpo.py | 9 | 1599 | # -*- coding: utf-8 -*-
#
# Copyright © 2012 - 2015 Michal Čihař <michal@cihar.com>
#
# This file is part of Weblate <http://weblate.org/>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, eithe... | gpl-3.0 | -1,130,772,112,330,005,600 | 35.272727 | 76 | 0.674812 | false |
pidah/st2contrib | packs/tesla/actions/lib/parsers.py | 6 | 1045 | from pytesla import Vehicle
__all__ = [
'FieldLists',
'ResultSets'
]
class FieldLists(object):
"""
The lists of fields we want to return for each class
"""
VEHICLE = ['id', 'vin', 'mobile_enabled',
'charge_state', 'climate_state',
'drive_state', 'vehicle_state']
... | apache-2.0 | -863,106,859,584,771,500 | 24.487805 | 59 | 0.570335 | false |
glorizen/nupic | examples/opf/experiments/missing_record/make_datasets.py | 34 | 4661 | #! /usr/bin/env python
# ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2013, Numenta, Inc. Unless you have an agreement
# with Numenta, Inc., for a separate license for this software code, the
# following terms and conditions... | agpl-3.0 | -1,233,084,006,512,125,200 | 30.493243 | 80 | 0.634199 | false |
notfier/touristique | data/tests/test_views.py | 1 | 3784 | from django.core.urlresolvers import reverse
from rest_framework import status
from rest_framework.authtoken.models import Token
from rest_framework.test import APITestCase
from data.tests.factories import DepartmentFactory
from registration.models import User
from ..models import Department
class TestDepartment(A... | mit | 363,379,996,320,904,260 | 37.612245 | 98 | 0.65777 | false |
MadCat34/Sick-Beard | cherrypy/wsgiserver/ssl_builtin.py | 74 | 2542 | """A library for integrating pyOpenSSL with CherryPy.
The ssl module must be importable for SSL functionality.
To use this module, set CherryPyWSGIServer.ssl_adapter to an instance of
BuiltinSSLAdapter.
ssl_adapter.certificate: the filename of the server SSL certificate.
ssl_adapter.private_key: the filename... | gpl-3.0 | -922,521,747,266,302,300 | 35.84058 | 78 | 0.609756 | false |
HewlettPackard/oneview-redfish-toolkit | oneview_redfish_toolkit/api/processor.py | 1 | 2778 | # -*- coding: utf-8 -*-
# Copyright (2018) Hewlett Packard Enterprise Development LP
#
# 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... | apache-2.0 | 1,042,905,216,736,022,400 | 37.054795 | 79 | 0.660907 | false |
john-wang-metro/metro-openerp | metro_project/project_gtd.py | 2 | 1195 | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). All Rights Reserved
# $Id$
#
# This program is free software: you can redistribute it and/or modify
# ... | agpl-3.0 | 6,040,038,014,424,057,000 | 43.259259 | 80 | 0.635146 | false |
lunafeng/django | tests/gis_tests/tests.py | 281 | 3127 | import sys
import unittest
from django.core.exceptions import ImproperlyConfigured
from django.db import ProgrammingError
from django.utils import six
try:
from django.contrib.gis.db.backends.postgis.operations import PostGISOperations
HAS_POSTGRES = True
except ImportError:
HAS_POSTGRES = False
except Im... | bsd-3-clause | 949,587,669,800,330,800 | 32.265957 | 89 | 0.622642 | false |
simod/geonode | geonode/contrib/worldmap/gazetteer/management/commands/updategazetteer.py | 2 | 1208 | from django.core.management import BaseCommand
from geonode.gazetteer.models import GazetteerEntry
from geonode.maps.models import Layer
class Command(BaseCommand):
help = """
Assigns usernames to all gazetteer features that do not have an associated
username yet.
"""
args = '[none]'
# TODO u... | gpl-3.0 | 5,616,339,821,686,497,000 | 39.266667 | 87 | 0.626656 | false |
geoffarnold/mercador-sub | doc/source/conf.py | 1 | 2460 | # -*- coding: utf-8 -*-
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software... | apache-2.0 | 250,598,950,635,894,560 | 31.8 | 79 | 0.689837 | false |
yoer/hue | desktop/core/ext-py/lxml/src/lxml/html/_html5builder.py | 36 | 3124 | """
This module implements a tree builder for html5lib that generates lxml
html element trees. This module uses camelCase as it follows the
html5lib style guide.
"""
from html5lib.treebuilders import _base, etree as etree_builders
from lxml import html, etree
class DocumentType(object):
def __init__(self, name... | apache-2.0 | 7,704,361,501,429,851,000 | 31.541667 | 86 | 0.637004 | false |
crosswalk-project/chromium-crosswalk-efl | gpu/gles2_conform_support/generate_gles2_conform_tests.py | 139 | 1430 | #!/usr/bin/env python
# Copyright (c) 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""code generator for OpenGL ES 2.0 conformance tests."""
import os
import re
import sys
def ReadFileAsLines(filename):
"""Read... | bsd-3-clause | -7,319,833,296,315,713,000 | 21.698413 | 74 | 0.638462 | false |
salfab/CouchPotatoServer | libs/tmdb3/pager.py | 10 | 3292 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#-----------------------
# Name: pager.py List-like structure designed for handling paged results
# Python Library
# Author: Raymond Wagner
#-----------------------
from collections import Sequence, Iterator
class PagedIterator( Iterator ):
def __init__(self, paren... | gpl-3.0 | 7,884,298,967,934,325,000 | 29.201835 | 76 | 0.561968 | false |
appi147/Jarvis | jarviscli/plugins/timeconv.py | 1 | 4129 | from __future__ import division
from plugin import plugin
@plugin('timeconv')
class timeconv():
"""
timeconv Documentation.
timeconv is a time converter.
Supports: picosecond, nanosecond, microsecond, millisecond, second, minute, hour, day, week, month, year
Usage: The input time measurement units... | mit | 1,450,973,150,460,500,700 | 26.711409 | 108 | 0.507387 | false |
TRESCLOUD/odoopub | openerp/addons/base/tests/test_orm.py | 24 | 17148 | from collections import defaultdict
from openerp.tools import mute_logger
from openerp.tests import common
UID = common.ADMIN_USER_ID
DB = common.DB
class TestORM(common.TransactionCase):
""" test special behaviors of ORM CRUD functions
TODO: use real Exceptions types instead of Exception """
d... | agpl-3.0 | 2,005,618,308,776,809,000 | 41.763092 | 137 | 0.570154 | false |
mitodl/salt-extensions | extensions/_utils/yamldumper.py | 1 | 2433 | # -*- coding: utf-8 -*-
'''
salt.utils.yamldumper
~~~~~~~~~~~~~~~~~~~~~
'''
# pylint: disable=W0232
# class has no __init__ method
from __future__ import absolute_import
try:
from yaml import CDumper as Dumper
from yaml import CSafeDumper as SafeDumper
except ImportError:
from yaml import ... | bsd-3-clause | 8,198,978,793,737,928,000 | 24.354167 | 77 | 0.719688 | false |
MatthewCox/dotfiles | weechat/python/spell_correction.py | 1 | 33422 | # -*- coding: utf-8 -*-
#
# Copyright (c) 2013-2019 by nils_2 <weechatter@arcor.de>
#
# a simple spell correction for a "misspelled" word
#
# 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... | mit | 8,494,495,120,535,851,000 | 45.355062 | 236 | 0.641254 | false |
rogerthat-platform/rogerthat-backend | src/rogerthat/bizz/job/re_index_service_identities.py | 1 | 1824 | # -*- coding: utf-8 -*-
# Copyright 2017 GIG Technology NV
#
# 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 | 8,081,620,779,431,046,000 | 31 | 88 | 0.72807 | false |
pegasusict/AMM | lib/reportbuilder.py | 1 | 1941 | #!/usr/bin/env python3
"""
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Audiophiles Music Manager Build 20180119 VER0.0.0PREALPHA *
* (C)2017 Mattijs Snepvangers pegasus.ict@gmail.com *
* lib/reportbuider.py Report Builder ... | mit | 5,438,956,111,110,056,000 | 37.058824 | 79 | 0.49356 | false |
endlessm/chromium-browser | third_party/llvm/lldb/examples/python/x86_64_target_definition.py | 6 | 20727 | #!/usr/bin/python
#===-- x86_64_target_definition.py -----------------------------*- C++ -*-===//
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#
#===----------------... | bsd-3-clause | 656,548,904,977,199,700 | 25.675676 | 107 | 0.522459 | false |
bxshi/gem5 | src/arch/x86/isa/insts/general_purpose/compare_and_test/compare.py | 91 | 3017 | # Copyright (c) 2007 The Hewlett-Packard Development Company
# All rights reserved.
#
# The license below extends only to copyright in the software and shall
# not be construed as granting a license to any other intellectual
# property including but not limited to intellectual property relating
# to a hardware implemen... | bsd-3-clause | 1,639,766,114,973,048,600 | 32.522222 | 72 | 0.721246 | false |
Lukc/ospace-lukc | server/lib/medusa/mime_type_table.py | 4 | 3941 | # -*- Python -*-
# Converted by ./convert_mime_type_table.py from:
# /usr/src2/apache_1.2b6/conf/mime.types
#
content_type_map = \
{
'ai': 'application/postscript',
'aif': 'audio/x-aiff',
'aifc': 'audio/x-aiff',
'aiff': 'audio/x-aiff',
'au': 'audio/basic',
'avi': 'video... | gpl-2.0 | 4,761,771,291,149,950,000 | 33.876106 | 49 | 0.512814 | false |
KousikaGanesh/purchaseandInventory | openerp/tools/lru.py | 204 | 2946 | # -*- coding: utf-8 -*-
# taken from http://code.activestate.com/recipes/252524-length-limited-o1-lru-cache-implementation/
import threading
from func import synchronized
__all__ = ['LRU']
class LRUNode(object):
__slots__ = ['prev', 'next', 'me']
def __init__(self, prev, me):
self.prev = prev
... | agpl-3.0 | 8,181,878,062,574,327,000 | 23.147541 | 99 | 0.510523 | false |
gloaec/trifle | src/trifle/anyconfig/backend/tests/backends.py | 1 | 1243 | #
# Copyright (C) 2012 Satoru SATOH <ssato @ redhat.com>
# License: MIT
#
import anyconfig.backend.backends as T
import unittest
class Test_00_pure_functions(unittest.TestCase):
def test_10_find_by_file(self):
ini_cf = "/a/b/c.ini"
unknown_cf = "/a/b/c.xyz"
jsn_cfs = ["/a/b/c.jsn", "/a/b/... | gpl-3.0 | -6,018,841,246,328,181,000 | 27.906977 | 61 | 0.600965 | false |
JioCloud/nova | nova/objects/numa.py | 24 | 8397 | # Copyright 2014 Red Hat 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 ag... | apache-2.0 | -7,834,457,552,893,495,000 | 32.321429 | 78 | 0.590092 | false |
AlgoHunt/nerual_style_transfer | nets/nets_factory.py | 31 | 5146 | # 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 applicable ... | apache-2.0 | -3,492,424,506,681,660,000 | 42.610169 | 80 | 0.608239 | false |
Pikecillo/genna | external/4Suite-XML-1.0.2/test/Xml/Core/__init__.py | 1 | 1056 | __revision__ = '$Id: __init__.py,v 1.12 2005/11/15 02:22:41 jkloth Exp $'
def PreprocessFiles(dirs, files):
"""
PreprocessFiles(dirs, files) -> (dirs, files)
This function is responsible for sorting and trimming the
file and directory lists as needed for proper testing.
"""
from Ft.Lib.TestSui... | gpl-2.0 | -1,441,631,121,599,679,000 | 31 | 73 | 0.557765 | false |
groutr/conda-tools | src/conda_tools/environment/history.py | 1 | 7101 | """
Adapted from conda/history.py
Licensed under BSD 3-clause license.
"""
from __future__ import print_function
import re
import time
from json import loads
from os.path import isfile, join
from functools import lru_cache
from ..common import lazyproperty
class CondaHistoryException(Exception):
pass
class Co... | bsd-3-clause | -1,287,298,767,413,866,800 | 30.281938 | 78 | 0.47782 | false |
jordanemedlock/psychtruths | temboo/Library/Basecamp/UpdateEntry.py | 5 | 5739 | # -*- coding: utf-8 -*-
###############################################################################
#
# UpdateEntry
# Updates a calendar event or milestone in a project you specify.
#
# Python versions 2.6, 2.7, 3.x
#
# Copyright 2014, Temboo Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License")... | apache-2.0 | 3,255,442,861,134,114,300 | 42.44697 | 214 | 0.662075 | false |
youprofit/zato | code/zato-web-admin/src/zato/admin/web/forms/load_balancer.py | 7 | 3670 | # -*- coding: utf-8 -*-
"""
Copyright (C) 2010 Dariusz Suchojad <dsuch at zato.io>
Licensed under LGPLv3, see LICENSE.txt for terms and conditions.
"""
from __future__ import absolute_import, division, print_function, unicode_literals
# stdlib
from operator import itemgetter
# Django
from django import forms
# Za... | gpl-3.0 | 4,184,276,006,662,553,600 | 42.690476 | 137 | 0.681744 | false |
gVallverdu/pymatgen | pymatgen/alchemy/materials.py | 4 | 14429 | # coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
This module provides various representations of transformed structures. A
TransformedStructure is a structure that has been modified by undergoing a
series of transformations.
"""
import os
import re
impor... | mit | 7,620,490,389,961,376,000 | 36.673629 | 81 | 0.585903 | false |
misterhat/youtube-dl | youtube_dl/extractor/hellporno.py | 153 | 2279 | from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..utils import (
js_to_json,
remove_end,
)
class HellPornoIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?hellporno\.com/videos/(?P<id>[^/]+)'
_TEST = {
'url': 'http://hellporno.com/videos/dixie-is-... | unlicense | -5,847,943,721,423,577,000 | 31.098592 | 89 | 0.51075 | false |
farmisen/electron | script/create-dist.py | 65 | 5723 | #!/usr/bin/env python
import os
import re
import shutil
import subprocess
import sys
import stat
from lib.config import LIBCHROMIUMCONTENT_COMMIT, BASE_URL, PLATFORM, \
get_target_arch, get_chromedriver_version
from lib.util import scoped_cwd, rm_rf, get_atom_shell_version, make_zip, \
... | mit | 6,543,523,820,929,492,000 | 26.252381 | 80 | 0.608597 | false |
jorik041/phantomjs | src/qt/qtwebkit/Tools/Scripts/webkitpy/common/checkout/scm/scm_mock.py | 122 | 4889 | # Copyright (C) 2011 Google 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:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the f... | bsd-3-clause | 8,801,293,066,691,935,000 | 35.214815 | 130 | 0.691348 | false |
TeamExodus/kernel_google_msm | tools/perf/scripts/python/syscall-counts.py | 11181 | 1522 | # system call counts
# (c) 2010, Tom Zanussi <tzanussi@gmail.com>
# Licensed under the terms of the GNU GPL License version 2
#
# Displays system-wide system call totals, broken down by syscall.
# If a [comm] arg is specified, only syscalls called by [comm] are displayed.
import os
import sys
sys.path.append(os.envir... | gpl-2.0 | 6,754,878,308,238,543,000 | 24.79661 | 77 | 0.622865 | false |
nazoking/DNC-tensorflow | dnc/controller.py | 1 | 9060 | import tensorflow as tf
import numpy as np
class BaseController:
def __init__(self, input_size, output_size, memory_read_heads, memory_word_size, batch_size=1):
"""
constructs a controller as described in the DNC paper:
http://www.nature.com/nature/journal/vaop/ncurrent/full/nature20101.ht... | mit | 1,699,878,530,885,769,500 | 39.266667 | 145 | 0.613797 | false |
brezerk/taverna | userauth/tests.py | 2 | 1309 | # -*- coding: utf-8 -*-
# Copyright (C) 2010 by Alexey S. Malakhov <brezerk@gmail.com>
# Opium <opium@jabber.com.ua>
#
# This file is part of Taverna
#
# Taverna is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Fr... | gpl-3.0 | 726,098,631,586,460,300 | 29.44186 | 73 | 0.692895 | false |
kvar/ansible | test/units/modules/network/nso/test_nso_verify.py | 40 | 5452 | #
# Copyright (c) 2017 Cisco and/or its affiliates.
#
# This file is part of Ansible
#
# Ansible 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 | 8,700,889,084,996,924,000 | 49.018349 | 144 | 0.602715 | false |
vlinhd11/vlinhd11-android-scripting | python/src/Lib/_LWPCookieJar.py | 267 | 6553 | """Load / save to libwww-perl (LWP) format files.
Actually, the format is slightly extended from that used by LWP's
(libwww-perl's) HTTP::Cookies, to avoid losing some RFC 2965 information
not recorded by LWP.
It uses the version string "2.0", though really there isn't an LWP Cookies
2.0 format. This indicates that ... | apache-2.0 | 4,973,137,202,819,715,000 | 37.547059 | 79 | 0.504502 | false |
tedder/ansible | test/units/modules/network/f5/test_bigip_pool.py | 25 | 17853 | # -*- coding: utf-8 -*-
#
# Copyright (c) 2017 F5 Networks Inc.
# GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import os
import json
import pytest
import sys
if sys.version_info < (2, ... | gpl-3.0 | 5,349,073,661,277,531,000 | 31.578467 | 91 | 0.563211 | false |
nfredrik/pyModelStuff | pymodel/StateCoverage.py | 2 | 2493 | """
StateCoverage: choose the (aname, args) whose next state has been used least
"""
import sys
import random
# Tester state is a bag of states: [ ( state , n of times used ), ... ]
# Implement bag of states as list of pairs, not dictionary with state keys
# because our states are themselves dictionaries, w... | bsd-3-clause | 4,410,946,048,620,479,000 | 38.868852 | 78 | 0.647012 | false |
duncanmmacleod/gwpy | gwpy/timeseries/io/hdf5.py | 3 | 4214 | # -*- coding: utf-8 -*-
# Copyright (C) Duncan Macleod (2014-2020)
#
# This file is part of GWpy.
#
# GWpy 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)... | gpl-3.0 | 3,434,838,635,407,927,000 | 31.167939 | 79 | 0.635738 | false |
cchurch/ansible | test/units/modules/network/fortimanager/test_fmgr_fwpol_package.py | 38 | 4044 | # Copyright 2018 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the... | gpl-3.0 | -6,854,405,668,354,044,000 | 40.690722 | 110 | 0.715628 | false |
adngdb/socorro | webapp-django/crashstats/tokens/tests/test_middleware.py | 3 | 4138 | import datetime
import json
from nose.tools import eq_, ok_, assert_raises
from django.contrib.auth.models import User, Permission
from django.conf import settings
from django.test.client import RequestFactory
from django.contrib.auth.middleware import AuthenticationMiddleware
from django.contrib.sessions.middleware ... | mpl-2.0 | -4,301,736,498,665,749,500 | 33.483333 | 68 | 0.650797 | false |
svirusxxx/cjdns | node_build/dependencies/libuv/build/gyp/pylib/gyp/generator/dump_dependency_json.py | 899 | 2768 | # Copyright (c) 2012 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import collections
import os
import gyp
import gyp.common
import gyp.msvs_emulation
import json
import sys
generator_supports_multiple_toolsets = True
generator_... | gpl-3.0 | -2,395,787,231,005,847,600 | 33.17284 | 77 | 0.699061 | false |
coala-analyzer/coala-quickstart | coala_quickstart/coala_quickstart.py | 1 | 5542 | import argparse
import logging
import os
import sys
from pyprint.ConsolePrinter import ConsolePrinter
from coala_utils.FilePathCompleter import FilePathCompleter
from coala_utils.Question import ask_question
from coala_quickstart import __version__
from coala_quickstart.interaction.Logo import print_welcome_message
... | agpl-3.0 | 2,764,760,061,642,943,000 | 32.385542 | 80 | 0.656803 | false |
mytliulei/DCNRobotInstallPackages | windows/win32/pygal-1.7.0/setup.py | 1 | 2698 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# This file is part of pygal
#
# A python svg graph plotting library
# Copyright © 2012-2014 Kozea
#
# This library is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the Free
# Software Foun... | apache-2.0 | 1,092,240,996,864,592,800 | 31.890244 | 79 | 0.642566 | false |
srajag/nova | nova/tests/virt/baremetal/test_volume_driver.py | 11 | 11573 | # Copyright (c) 2012 NTT DOCOMO, 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 requ... | apache-2.0 | 7,891,827,835,375,948,000 | 38.363946 | 78 | 0.586883 | false |
simonwydooghe/ansible | lib/ansible/modules/cloud/podman/podman_image_info.py | 21 | 9173 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (c) 2018 Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {
'metadata_version': '1.1',
'sta... | gpl-3.0 | 5,724,656,344,407,487,000 | 37.380753 | 911 | 0.613976 | false |
dhoffman34/django | django/utils/lorem_ipsum.py | 81 | 4910 | """
Utility functions for generating "lorem ipsum" Latin text.
"""
from __future__ import unicode_literals
import random
COMMON_P = 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco ... | bsd-3-clause | 538,633,246,083,180,400 | 44.88785 | 459 | 0.60998 | false |
ESS-LLP/erpnext | erpnext/patches/v11_0/change_healthcare_desktop_icons.py | 4 | 2450 | import frappe
from frappe import _
change_icons_map = [
{
"module_name": "Patient",
"color": "#6BE273",
"icon": "fa fa-user",
"doctype": "Patient",
"type": "link",
"link": "List/Patient",
"label": _("Patient")
},
{
"module_name": "Patient Encounter",
"color": "#2ecc71",
"icon": "fa fa-stethoscop... | gpl-3.0 | -147,861,678,315,254,530 | 25.344086 | 71 | 0.650204 | false |
HesselTjeerdsma/Cyber-Physical-Pacman-Game | Algor/flask/lib/python2.7/site-packages/urllib3/contrib/_securetransport/low_level.py | 136 | 12062 | """
Low-level helpers for the SecureTransport bindings.
These are Python functions that are not directly related to the high-level APIs
but are necessary to get them to work. They include a whole bunch of low-level
CoreFoundation messing about and memory management. The concerns in this module
are almost entirely abou... | apache-2.0 | -2,842,825,234,003,177,500 | 34.166181 | 79 | 0.657685 | false |
wolfv/AutobahnPython | examples/twisted/websocket/streaming/frame_based_server.py | 18 | 2612 | ###############################################################################
##
## Copyright (C) 2011-2013 Tavendo GmbH
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
#... | apache-2.0 | -4,212,204,309,070,818,300 | 35.314286 | 90 | 0.621746 | false |
klmitch/nova | nova/tests/functional/api_sample_tests/test_security_groups.py | 4 | 6316 | # Copyright 2012 Nebula, Inc.
# Copyright 2013 IBM Corp.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required... | apache-2.0 | 2,508,124,101,927,034,000 | 34.886364 | 79 | 0.600697 | false |
OpringaoDoTurno/airflow | airflow/migrations/versions/8504051e801b_xcom_dag_task_indices.py | 46 | 1080 | # -*- coding: utf-8 -*-
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
... | apache-2.0 | 4,510,521,712,680,377,300 | 27.421053 | 108 | 0.734259 | false |
mathwuyue/py-wireless-sys-sim | d2d/rrm.py | 1 | 8801 | import operator
import itertools
import numpy as np
import scipy.optimize
from core import cal_thermal_noise, cal_umi_nlos, cal_umi_exp_los
from functools import reduce
def _sum(func, *args):
return reduce(operator.add, map(func, *args), 0)
def cal_D2D_basic_tp(d2d_ues, g_d2d_bs, kappa, bw, alpha, freq):
"... | mit | -7,870,594,230,414,663,000 | 38.466368 | 142 | 0.476764 | false |
artefactual/archivematica-history | src/MCPClient/lib/clientScripts/checkForSubmissionDocumenation.py | 1 | 1358 | #!/usr/bin/python -OO
# This file is part of Archivematica.
#
# Copyright 2010-2012 Artefactual Systems Inc. <http://artefactual.com>
#
# Archivematica 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, e... | agpl-3.0 | 861,534,549,331,733,900 | 33.820513 | 77 | 0.731222 | false |
repotvsupertuga/tvsupertuga.repository | script.module.resolveurl/lib/resolveurl/plugins/speedwatch.py | 2 | 1350 | '''
SpeedWatch.io resolveurl plugin
Copyright (C) 2019 gujal
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is d... | gpl-2.0 | -526,018,856,346,253,000 | 36.5 | 141 | 0.717037 | false |
vivekanand1101/anitya | tests/test_plugins.py | 2 | 2944 | # -*- coding: utf-8 -*-
#
# Copyright © 2014 Red Hat, Inc.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2, or (at your option) any later
# version. This program is distributed in t... | gpl-2.0 | -7,160,053,987,844,768,000 | 35.333333 | 79 | 0.648998 | false |
Br1an6/ACS_Netplumber_Implementation | hsa-python/net_plumbing/examples/load_stanford_backbone.py | 5 | 12031 | '''
<Loads Stanford backbone network into appropriate objects (e.g. emulated_tf)>
Copyright 2012, Stanford University. This file is licensed under GPL v2 plus
a special exception, as described in included LICENSE_EXCEPTION.txt.
Created on Aug 13, 2011
@author: Peyman Kazemian
'''
from headerspace.tf ... | gpl-2.0 | -693,699,386,573,911,400 | 35.460606 | 122 | 0.514504 | false |
PaloAltoNetworks-BD/ansible-pan | library/panos_email_server.py | 1 | 4152 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
__metaclass__ = type
# Copyright 2019 Palo Alto Networks, Inc
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You ... | isc | 5,484,111,409,566,127,000 | 26.865772 | 75 | 0.633671 | false |
xHeliotrope/injustice_dropper | env/lib/python3.4/site-packages/django/db/models/query.py | 10 | 71207 | """
The main QuerySet implementation. This provides the public API for the ORM.
"""
import copy
import sys
import warnings
from collections import OrderedDict, deque
from django.conf import settings
from django.core import exceptions
from django.db import (
DJANGO_VERSION_PICKLE_KEY, IntegrityError, connections, ... | mit | 5,433,555,596,517,188,000 | 39.229944 | 115 | 0.587456 | false |
FireWRT/OpenWrt-Firefly-Libraries | staging_dir/host/lib/python3.4/test/test_heapq.py | 111 | 14475 | """Unittests for heapq."""
import sys
import random
import unittest
from test import support
from unittest import TestCase, skipUnless
py_heapq = support.import_fresh_module('heapq', blocked=['_heapq'])
c_heapq = support.import_fresh_module('heapq', fresh=['_heapq'])
# _heapq.nlargest/nsmallest are saved in heapq._... | gpl-2.0 | 5,418,000,759,083,349,000 | 33.71223 | 85 | 0.570086 | false |
spvkgn/youtube-dl | youtube_dl/extractor/lecture2go.py | 87 | 2402 | # coding: utf-8
from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..utils import (
determine_ext,
determine_protocol,
parse_duration,
int_or_none,
)
class Lecture2GoIE(InfoExtractor):
_VALID_URL = r'https?://lecture2go\.uni-hamburg\.de/veranstaltungen/-/v/(... | unlicense | 8,057,718,562,335,027,000 | 32.816901 | 99 | 0.511037 | false |
sjerdo/letsencrypt | acme/acme/fields.py | 53 | 1742 | """ACME JSON fields."""
import logging
import pyrfc3339
from acme import jose
logger = logging.getLogger(__name__)
class Fixed(jose.Field):
"""Fixed field."""
def __init__(self, json_name, value):
self.value = value
super(Fixed, self).__init__(
json_name=json_name, default=val... | apache-2.0 | 1,574,681,558,885,888,500 | 25.393939 | 80 | 0.6062 | false |
karan1276/servo | tests/wpt/web-platform-tests/tools/py/bench/localpath.py | 215 | 1883 |
import py
import timeit
class Listdir:
numiter = 100000
numentries = 100
def setup(self):
tmpdir = py.path.local.make_numbered_dir(self.__class__.__name__)
for i in range(self.numentries):
tmpdir.join(str(i))
self.tmpdir = tmpdir
def run(self):
return self... | mpl-2.0 | 71,073,297,045,612,080 | 24.106667 | 73 | 0.562931 | false |
trondhindenes/ansible | lib/ansible/modules/network/avi/avi_controllerproperties.py | 20 | 16486 | #!/usr/bin/python
#
# @author: Gaurav Rastogi (grastogi@avinetworks.com)
# Eric Anderson (eanderson@avinetworks.com)
# module_check: supported
# Avi Version: 17.1.2
#
# Copyright: (c) 2017 Gaurav Rastogi, <grastogi@avinetworks.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses... | gpl-3.0 | 8,953,998,339,727,534,000 | 41.489691 | 134 | 0.61622 | false |
costadorione/purestream | core/tmdb.py | 1 | 65766 | # -*- coding: utf-8 -*-
# ------------------------------------------------------------
# streamondemand 5
# Copyright 2015 tvalacarta@gmail.com
# http://www.mimediacenter.info/foro/viewforum.php?f=36
#
# Distributed under the terms of GNU General Public License v3 (GPLv3)
# http://www.gnu.org/licenses/gpl-3.0.html
# -... | gpl-3.0 | -5,761,422,043,173,886,000 | 47.589061 | 209 | 0.537062 | false |
ygol/odoo | addons/project_issue_sheet/project_issue_sheet.py | 381 | 2875 | #-*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | agpl-3.0 | 7,794,433,713,497,821,000 | 35.392405 | 120 | 0.611826 | false |
mattpap/sympy-polys | sympy/physics/paulialgebra.py | 10 | 1595 | """
This module implements Pauli algebra by subclassing Symbol. Only algebraic
properties of Pauli matrices are used (we don't use the Matrix class).
See the documentation to the class Pauli for examples.
See also:
http://en.wikipedia.org/wiki/Pauli_matrices
"""
from sympy import Symbol, I
def delta(i,j):
i... | bsd-3-clause | 7,608,750,713,065,738,000 | 22.455882 | 74 | 0.522257 | false |
openstack/nova | nova/api/validation/extra_specs/pci_passthrough.py | 3 | 1271 | # Copyright 2020 Red Hat, Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | apache-2.0 | -8,583,038,482,373,635,000 | 32.447368 | 78 | 0.649882 | false |
bright-sparks/chromium-spacewalk | chrome/common/extensions/docs/server2/caching_file_system.py | 4 | 5389 | # Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import posixpath
import sys
from file_system import FileSystem, StatInfo, FileNotFoundError
from future import Future
from path_util import IsDirectory,... | bsd-3-clause | -3,837,480,362,151,991,000 | 39.216418 | 80 | 0.673965 | false |
ktosiek/spacewalk | client/solaris/smartpm/smart/commands/update.py | 5 | 3102 | #
# Copyright (c) 2004 Conectiva, Inc.
#
# Written by Gustavo Niemeyer <niemeyer@conectiva.com>
#
# This file is part of Smart Package Manager.
#
# Smart Package Manager 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 Fou... | gpl-2.0 | -388,631,972,715,077,440 | 31.652632 | 77 | 0.638943 | false |
evensonbryan/yocto-autobuilder | lib/python2.7/site-packages/buildbot-0.8.8-py2.7.egg/buildbot/test/unit/test_changes_pb.py | 4 | 9572 | # This file is part of Buildbot. Buildbot 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, version 2.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without eve... | gpl-2.0 | -5,653,281,487,827,793,000 | 35.120755 | 82 | 0.594338 | false |
strk/mapnik | scons/scons-local-2.2.0/SCons/Variables/PathVariable.py | 14 | 5703 | """SCons.Variables.PathVariable
This file defines an option type for SCons implementing path settings.
To be used whenever a a user-specified path override should be allowed.
Arguments to PathVariable are:
option-name = name of this option on the command line (e.g. "prefix")
option-help = help string for optio... | lgpl-2.1 | 4,087,795,417,573,088,000 | 37.795918 | 114 | 0.622655 | false |
rlouf/patterns-of-segregation | bin/plot_scaling_classes.py | 1 | 3443 | """plot_income_scaling.py
Plot the number of households from a given class as a function of the total
number of households per city
"""
import csv
import math
from matplotlib import pylab as plt
from scipy.stats import linregress
colours = {'Lower':'#4F8F6B',
'Higher':'#C1A62E',
'Middle':'#4B453C'}
... | bsd-3-clause | -5,429,180,976,737,945,000 | 30.587156 | 81 | 0.585536 | false |
rsteca/python-social-auth | social/backends/persona.py | 70 | 1845 | """
Mozilla Persona authentication backend, docs at:
http://psa.matiasaguirre.net/docs/backends/persona.html
"""
from social.utils import handle_http_errors
from social.backends.base import BaseAuth
from social.exceptions import AuthFailed, AuthMissingParameter
class PersonaAuth(BaseAuth):
"""BrowserID authen... | bsd-3-clause | -716,346,246,308,106,500 | 35.9 | 77 | 0.595664 | false |
MarcosCommunity/odoo | comunity_modules/hr_payroll_cancel/__openerp__.py | 3 | 1902 | # -*- encoding: utf-8 -*-
###########################################################################
# Module Writen to OpenERP, Open Source Management Solution
#
# Copyright (c) 2014 Vauxoo - http://www.vauxoo.com/
# All Rights Reserved.
# info Vauxoo (info@vauxoo.com)
####################################... | agpl-3.0 | -7,471,669,429,368,059,000 | 35.596154 | 87 | 0.523659 | false |
Subsets and Splits
Gradio Code Samples
Limits the results to entries containing the word 'gradio' in the repo_name, content, or path, providing a filtered subset of the dataset.