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 |
|---|---|---|---|---|---|---|---|---|---|---|
locustio/locust | locust/test/test_runners.py | 1 | 112600 | import json
import os
import random
import time
import unittest
from collections import defaultdict
from contextlib import contextmanager
from operator import itemgetter
import gevent
import mock
import requests
from gevent import sleep
from gevent.pool import Group
from gevent.queue import Queue
import locust
from l... | mit | -343,502,891,792,445,440 | 36.68407 | 120 | 0.543499 | false |
anthgur/servo | etc/ci/chaos_monkey_test.py | 140 | 1676 | # Copyright 2013 The Servo Project Developers. See the COPYRIGHT
# file at the top-level directory of this distribution.
#
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
#... | mpl-2.0 | 8,124,718,785,448,933,000 | 32.52 | 86 | 0.676611 | false |
stephane-martin/salt-debian-packaging | salt-2016.3.2/salt/states/boto_route53.py | 3 | 10304 | # -*- coding: utf-8 -*-
'''
Manage Route53 records
.. versionadded:: 2014.7.0
Create and delete Route53 records. Be aware that this interacts with Amazon's
services, and so may incur charges.
This module uses ``boto``, which can be installed via package, or pip.
This module accepts explicit route53 credentials but ... | apache-2.0 | -3,717,384,713,655,958,000 | 32.131833 | 85 | 0.498835 | false |
andresguisado/andresguisado.github.io | node_modules/pygmentize-bundled/vendor/pygments/build-3.3/pygments/console.py | 365 | 1850 | # -*- coding: utf-8 -*-
"""
pygments.console
~~~~~~~~~~~~~~~~
Format colored console output.
:copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
esc = "\x1b["
codes = {}
codes[""] = ""
codes["reset"] = esc + "39;49;00m"
cod... | mit | 8,937,472,973,635,750,000 | 24 | 70 | 0.533514 | false |
maniteja123/scipy | scipy/sparse/csr.py | 25 | 15482 | """Compressed Sparse Row matrix format"""
from __future__ import division, print_function, absolute_import
__docformat__ = "restructuredtext en"
__all__ = ['csr_matrix', 'isspmatrix_csr']
import numpy as np
from scipy._lib.six import xrange
from .base import spmatrix
from ._sparsetools import csr_tocsc, csr_tobs... | bsd-3-clause | 7,308,154,815,562,837,000 | 32.729847 | 82 | 0.511626 | false |
telwertowski/Books-Mac-OS-X | Versions/Books_3.0b5/Amazon (DE).plugin/Contents/Resources/amazon.py | 126 | 16017 | """Python wrapper
for Amazon web APIs
This module allows you to access Amazon's web APIs,
to do things like search Amazon and get the results programmatically.
Described here:
http://www.amazon.com/webservices
You need a Amazon-provided license key to use these services.
Follow the link above to get one. These f... | mit | 4,054,451,557,669,713,000 | 42.524457 | 189 | 0.67984 | false |
CERNDocumentServer/invenio | modules/websubmit/lib/functions/Stamp_Replace_Single_File_Approval.py | 3 | 25131 | # This file is part of Invenio.
# Copyright (C) 2008, 2010, 2011 CERN.
#
# Invenio is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
# ... | gpl-2.0 | -9,061,192,378,513,302,000 | 48.180039 | 100 | 0.547252 | false |
ahb0327/intellij-community | python/helpers/pydev/_pydev_imps/_pydev_pluginbase.py | 52 | 13955 | # -*- coding: utf-8 -*-
"""
pluginbase
~~~~~~~~~~
Pluginbase is a module for Python that provides a system for building
plugin based applications.
:copyright: (c) Copyright 2014 by Armin Ronacher.
:license: BSD, see LICENSE for more details.
"""
import os
import sys
from pydevd_constants impo... | apache-2.0 | 4,891,987,876,034,004,000 | 33.974937 | 78 | 0.598137 | false |
msingh172/pylearn2 | pylearn2/packaged_dependencies/theano_linear/unshared_conv/test_gpu_unshared_conv.py | 37 | 7950 | from __future__ import print_function
import unittest
from nose.plugins.skip import SkipTest
import numpy
import theano
# Skip test if cuda_ndarray is not available.
from nose.plugins.skip import SkipTest
import theano.sandbox.cuda as cuda_ndarray
if cuda_ndarray.cuda_available == False:
raise SkipTest('Opti... | bsd-3-clause | -3,441,424,717,463,780,400 | 32.686441 | 86 | 0.585157 | false |
bgris/ODL_bgris | lib/python3.5/site-packages/pygments/lexers/_stan_builtins.py | 27 | 10121 | # -*- coding: utf-8 -*-
"""
pygments.lexers._stan_builtins
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This file contains the names of functions for Stan used by
``pygments.lexers.math.StanLexer. This is for Stan language version 2.8.0.
:copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS.
:li... | gpl-3.0 | -2,191,733,562,551,154,200 | 18.024436 | 78 | 0.527023 | false |
pchrista/AliPhysics | PWGLF/NUCLEX/Nuclei/NucleiPbPb/macros_pp13TeV/CorrelationFraction.py | 19 | 2196 | import uproot
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
import matplotlib.cm as cm
shift_list = [[1, -2], [2, -1], [3, 1], [4, 2]]
dcaxy_list = [[0, 1.0], [1, 1.4]]
dcaz_list = [[0, 0.5], [1, 0.75], [2, 1.25], [3, 1.50]]
pid_list = [[0, 3.25], [1, 3.5]]
tpc_list = [[0, 60], [1, 65], [2, 75]... | bsd-3-clause | 2,500,857,982,435,264,500 | 36.220339 | 133 | 0.588798 | false |
laslabs/odoo-connector-carepoint | connector_carepoint/tests/test_backend_adapter.py | 1 | 11309 | # -*- coding: utf-8 -*-
# Copyright 2015-2016 LasLabs Inc.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
import mock
from odoo.addons.connector_carepoint.unit import backend_adapter
from .common import SetUpCarepointBase
model = 'odoo.addons.connector_carepoint.unit.backend_adapter'
class ... | agpl-3.0 | -1,423,716,461,820,836,600 | 36.078689 | 78 | 0.531081 | false |
KristianOellegaard/django-health-check | health_check/contrib/migrations/backends.py | 1 | 1061 | import logging
from django.conf import settings
from django.db import DEFAULT_DB_ALIAS, DatabaseError, connections
from django.db.migrations.executor import MigrationExecutor
from health_check.backends import BaseHealthCheckBackend
from health_check.exceptions import ServiceUnavailable
logger = logging.getLogger(__n... | mit | 2,779,414,334,065,135,600 | 36.892857 | 83 | 0.717248 | false |
mrquim/repository.mrquim | repo/script.module.youtube.dl/lib/youtube_dl/extractor/cbssports.py | 48 | 1054 | from __future__ import unicode_literals
from .cbs import CBSBaseIE
class CBSSportsIE(CBSBaseIE):
_VALID_URL = r'https?://(?:www\.)?cbssports\.com/video/player/[^/]+/(?P<id>\d+)'
_TESTS = [{
'url': 'http://www.cbssports.com/video/player/videos/708337219968/0/ben-simmons-the-next-lebron?-not-so-fast',... | gpl-2.0 | -6,283,268,055,789,422,000 | 33 | 118 | 0.566414 | false |
sternshus/arelle2.7 | svr-2.7/arelle/plugin/xbrlDB/XbrlSemanticGraphDB.py | 4 | 65392 | '''
XbrlSemanticGraphDB.py implements a graph database interface for Arelle, based
on a concrete realization of the Abstract Model PWD 2.0 layer. This is a semantic
representation of XBRL information.
This module provides the execution context for saving a dts and instances in
XBRL Rexter-interfaced graph. It may... | apache-2.0 | 4,788,049,568,931,584,000 | 50.939635 | 160 | 0.501315 | false |
bwasti/caffe2 | caffe2/python/models/seq2seq/seq2seq_util.py | 1 | 9711 | ## @package seq2seq_util
# Module caffe2.python.examples.seq2seq_util
""" A bunch of util functions to build Seq2Seq models with Caffe2."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import collections
from futur... | apache-2.0 | -457,524,456,741,599,900 | 26.201681 | 78 | 0.578828 | false |
bukzor/sympy | sympy/concrete/tests/test_delta.py | 87 | 23654 | from sympy.concrete import Sum
from sympy.concrete.delta import deltaproduct as dp, deltasummation as ds
from sympy.core import Eq, S, symbols, oo
from sympy.functions import KroneckerDelta as KD, Piecewise, piecewise_fold
from sympy.logic import And
i, j, k, l, m = symbols("i j k l m", integer=True, finite=True)
x, y... | bsd-3-clause | -7,059,840,873,280,504,000 | 46.025845 | 79 | 0.392619 | false |
mikelikespie/AutobahnTestSuite | autobahntestsuite/autobahntestsuite/case/case1_2_4.py | 14 | 1337 | ###############################################################################
##
## Copyright 2011 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
##
## ht... | apache-2.0 | 4,178,734,400,597,694,500 | 39.78125 | 112 | 0.600598 | false |
markap/TravelMap | boilerplate/external/requests/packages/urllib3/util.py | 189 | 9801 | # urllib3/util.py
# Copyright 2008-2012 Andrey Petrov and contributors (see CONTRIBUTORS.txt)
#
# This module is part of urllib3 and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
from base64 import b64encode
from collections import namedtuple
from socket import error as Socke... | lgpl-3.0 | 3,671,982,337,670,854,700 | 27.997041 | 105 | 0.597082 | false |
Lilykos/invenio | invenio/modules/formatter/testsuite/test_formatter_engine.py | 7 | 45814 | # -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2013, 2014, 2015 CERN.
#
# Invenio is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2... | gpl-2.0 | 1,157,025,908,860,274,000 | 45.742857 | 354 | 0.573874 | false |
haoliangx/PyFM | fm.py | 1 | 1312 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from api import FM_API
from Queue import Queue, Full
from pySmartDL import SmartDL as pydl
import pyglet as pg
class FM_Controller(object):
def __init__(self):
self.agent = FM_API()
self.player = Player()
qsize = 10
self.queue = Queue... | gpl-2.0 | 106,085,998,018,716,460 | 21.62069 | 51 | 0.544207 | false |
Pluto-tv/chromium-crosswalk | third_party/protobuf/python/google/protobuf/internal/unknown_fields_test.py | 215 | 6585 | #! /usr/bin/python
# -*- coding: utf-8 -*-
#
# Protocol Buffers - Google's data interchange format
# Copyright 2008 Google Inc. All rights reserved.
# http://code.google.com/p/protobuf/
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following cond... | bsd-3-clause | -5,360,697,612,840,955,000 | 37.735294 | 80 | 0.742141 | false |
palisadoes/switchmap-ng | switchmap/topology/translator.py | 1 | 6024 | #!/usr/bin/env python3
"""Class for normalizing the data read from YAML files."""
import os
import yaml
# Switchmap-NG imports
from switchmap.utils import log
class Translator(object):
"""Process configuration file for a host.
The aim of this class is to process the YAML file consistently
across multi... | apache-2.0 | 8,824,584,165,024,797,000 | 34.192982 | 79 | 0.607843 | false |
cfelton/myhdl | myhdl/test/core/test_misc.py | 6 | 1783 | # This file is part of the myhdl library, a Python package for using
# Python as a Hardware Description Language.
#
# Copyright (C) 2003-2008 Jan Decaluwe
#
# The myhdl library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public License as
# published by t... | lgpl-2.1 | 1,822,379,914,077,509,400 | 23.094595 | 74 | 0.628716 | false |
hansl/habitat | habitat/executer.py | 1 | 6675 | # Copyright (C) 2013 Coders at Work
import os
import pty
import re
import select
import subprocess
import sys
import threading
try:
from Queue import Empty
from Queue import Queue
except ImportError:
# python 3.x
from queue import Empty
from queue import Queue
class Executer(object):
def __i... | apache-2.0 | 7,505,595,181,503,441,000 | 34.695187 | 106 | 0.50367 | false |
RPGOne/Skynet | imbalanced-learn-master/examples/under-sampling/plot_cluster_centroids.py | 3 | 1884 | """
=================
Cluster centroids
=================
An illustration of the cluster centroids method.
"""
print(__doc__)
import matplotlib.pyplot as plt
import seaborn as sns
sns.set()
# Define some color for the plotting
almost_black = '#262626'
palette = sns.color_palette()
from sklearn.datasets import mak... | bsd-3-clause | 1,384,973,744,748,779,300 | 31.482759 | 76 | 0.648089 | false |
Clever-Hacksaw/musiclibrary | music/migrations/0001_initial.py | 1 | 1834 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Album',
fields=[
('id', models.AutoField(verbos... | mit | -483,503,425,015,034,700 | 32.962963 | 114 | 0.521265 | false |
niteoweb/libcloud | libcloud/test/compute/test_ssh_client.py | 24 | 15257 | # -*- coding: utf-8 -*-
# Licensed to the Apache Software Foundation (ASF) under one or more§
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "Li... | apache-2.0 | -8,525,528,594,176,332,000 | 36.762376 | 83 | 0.554339 | false |
truongdq/chainer | cupy/linalg/norm.py | 8 | 1040 | # TODO(okuta): Implement norm
# TODO(okuta): Implement cond
# TODO(okuta): Implement det
# TODO(okuta): Implement matrix_rank
# TODO(okuta): Implement slogdet
def trace(a, offset=0, axis1=0, axis2=1, dtype=None, out=None):
"""Returns the sum along the diagonals of an array.
It computes the sum along ... | mit | -4,755,198,632,292,007,000 | 26.368421 | 77 | 0.640385 | false |
fluxw42/youtube-dl | youtube_dl/extractor/karaoketv.py | 73 | 2340 | # coding: utf-8
from __future__ import unicode_literals
from .common import InfoExtractor
class KaraoketvIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?karaoketv\.co\.il/[^/]+/(?P<id>\d+)'
_TEST = {
'url': 'http://www.karaoketv.co.il/%D7%A9%D7%99%D7%A8%D7%99_%D7%A7%D7%A8%D7%99%D7%95%D7%A7%D7%99... | unlicense | -6,274,489,032,969,637,000 | 35.359375 | 143 | 0.510958 | false |
sbobovyc/GameTools | GhostRecon/src/rsb_magick.py | 1 | 2371 | """
Created on November 25, 2011
@author: sbobovyc
"""
"""
Copyright (C) 2011 Stanislav Bobovych
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, o... | gpl-3.0 | 1,635,375,120,035,359,000 | 34.924242 | 125 | 0.676508 | false |
kamenim/samba-old | buildtools/wafadmin/py3kfixes.py | 16 | 3877 | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2009 (ita)
"""
Fixes for py3k go here
"""
import os
all_modifs = {}
def modif(dir, name, fun):
if name == '*':
lst = []
for y in '. Tools 3rdparty'.split():
for x in os.listdir(os.path.join(dir, y)):
if x.endswith('.py'):
lst.append(y + os.sep ... | gpl-3.0 | 1,879,508,316,530,370,600 | 28.823077 | 153 | 0.648697 | false |
sysalexis/kbengine | kbe/res/scripts/common/Lib/importlib/__init__.py | 100 | 5156 | """A pure Python implementation of import."""
__all__ = ['__import__', 'import_module', 'invalidate_caches', 'reload']
# Bootstrap help #####################################################
# Until bootstrapping is complete, DO NOT import any modules that attempt
# to import importlib._bootstrap (directly or indirect... | lgpl-3.0 | 4,335,143,424,189,444,600 | 32.051282 | 78 | 0.614042 | false |
robhowley/nextbeeronme | src/db/fill_db.py | 1 | 6728 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from beeradcn import Beerad
def pth(f):
return 'data/' + f
# check for encoding errors in foreign beer names
# brute force appears to be all that's working
def enc(s):
return ''.join([x for x in s if ord(x) < 128])
def insert(cur, ins, tup, err):
succ... | apache-2.0 | 881,158,255,494,713,300 | 23.735294 | 108 | 0.487961 | false |
allrod5/mGenetic | modules/NPuzzleC.py | 2 | 3409 | import global_settings as this
from random import shuffle
import math
import copy
def solvable():
if len(this.list_a) == 0:
return False
summation = 0
for i in range(len(this.list_a)):
for j in range(i, len(this.list_a)):
if(this.list_a[j] != 0 and this.list_a[j]<this.list_a[i]):
summation += 1
if summ... | gpl-3.0 | 5,054,717,068,973,664,000 | 27.647059 | 98 | 0.637137 | false |
gilneidp/TADD | madapp/urls.py | 1 | 1498 | """madapp URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-base... | apache-2.0 | -2,324,372,103,403,692,000 | 39.486486 | 77 | 0.67757 | false |
zanderle/django | tests/generic_views/test_base.py | 269 | 19854 | from __future__ import unicode_literals
import time
import unittest
from django.core.exceptions import ImproperlyConfigured
from django.core.urlresolvers import resolve
from django.http import HttpResponse
from django.test import RequestFactory, SimpleTestCase, override_settings
from django.test.utils import require_... | bsd-3-clause | -1,633,153,906,328,166,100 | 36.389831 | 114 | 0.640173 | false |
cdgallahue/atomic-turbine | web/lib/python2.7/site-packages/jinja2/ext.py | 132 | 23867 | # -*- coding: utf-8 -*-
"""
jinja2.ext
~~~~~~~~~~
Jinja extensions allow to add custom tags similar to the way django custom
tags work. By default two example extensions exist: an i18n and a cache
extension.
:copyright: (c) 2017 by the Jinja Team.
:license: BSD.
"""
from jinja2 import nod... | mit | 7,894,010,339,294,223,000 | 38.190476 | 79 | 0.608832 | false |
alexgleith/Quantum-GIS | python/plugins/sextante/gdal/merge.py | 2 | 3022 | # -*- coding: utf-8 -*-
"""
***************************************************************************
merge.py
---------------------
Date : August 2012
Copyright : (C) 2012 by Victor Olaya
Email : volayaf at gmail dot com
*********************************... | gpl-2.0 | 8,718,223,480,067,467,000 | 38.246753 | 114 | 0.576109 | false |
laost/gestor_red | mensajero.py | 1 | 1693 | import MySQLdb as mdb
import sys
import time
import socket
import recolector
user = 'root' # usuario con el que se entrara a la base de datos
host = '192.168.56.2' # ip server
db = 'gestion_red' #base de datos que se modificara
# esto obtiene la ip del cliente
s = socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
s.c... | unlicense | -6,823,966,541,810,500,000 | 42.410256 | 374 | 0.643828 | false |
VenkatDatta/libvirt | tests/cputestdata/cpu-cpuid.py | 2 | 23528 | #!/usr/bin/python2
import sys
import json
import xmltodict
# This is a list of x86 CPU features as of QEMU 2.8.50 and it won't need any
# updates since in the future because query-cpu-model-expansion will be used
# with newer QEMU.
cpuidMap = [
{"in_eax": 0x00000001, "in_ecx": 0, "eax": 0, "ebx": 0, "ecx": 0x0000... | lgpl-2.1 | -2,320,895,136,526,464,000 | 64.537604 | 136 | 0.517936 | false |
beckastar/django | tests/forms_tests/tests/test_util.py | 16 | 3332 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.core.exceptions import ValidationError
from django.forms.utils import flatatt, ErrorDict, ErrorList
from django.test import TestCase
from django.utils.safestring import mark_safe
from django.utils import six
from django.utils.translation impor... | bsd-3-clause | 9,127,570,717,970,308,000 | 47.970588 | 152 | 0.58979 | false |
fancyhe/ursula | library/keystone_identity_provider.py | 12 | 6092 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright 2016, IBM
# Copyright 2016, Craig Tracey <craigtracey@gmail.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apac... | mit | 6,869,518,268,364,480,000 | 32.289617 | 96 | 0.639363 | false |
YuriGural/erpnext | erpnext/setup/setup_wizard/install_fixtures.py | 6 | 12320 | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
from frappe import _
default_lead_sources = ["Existing Customer", "Reference", "Advertisement",
"Cold Calling", "Exhibition", "Supplie... | gpl-3.0 | -4,533,950,747,683,818,000 | 51.653846 | 160 | 0.611688 | false |
TimYi/pybuilder | src/unittest/python/plugins/python/pylint_plugin_tests.py | 7 | 1277 | # -*- coding: utf-8 -*-
#
# This file is part of PyBuilder
#
# Copyright 2011-2015 PyBuilder Team
#
# 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/l... | apache-2.0 | -1,231,051,683,362,217,500 | 34.472222 | 107 | 0.734534 | false |
rspavel/spack | var/spack/repos/builtin/packages/libusbmuxd/package.py | 5 | 1158 | # Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Libusbmuxd(AutotoolsPackage):
"""A client library to multiplex connections from and to iOS... | lgpl-2.1 | -5,486,531,134,391,610,000 | 37.6 | 96 | 0.689119 | false |
martinayotte/ESP8266-Arduino | tools/build.py | 14 | 5664 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# build.py — build a sketch using arduino-builder
#
# Wrapper script around arduino-builder which accepts some ESP8266-specific
# options and translates them into FQBN
#
# Copyright © 2016 Ivan Grokhotkov
#
# Permission is hereby granted, free of charge, to any person obt... | lgpl-2.1 | 6,114,924,457,489,829,000 | 38.041379 | 84 | 0.60325 | false |
odlgroup/odl | odl/contrib/torch/operator.py | 2 | 18803 | # Copyright 2014-2019 The ODL contributors
#
# This file is part of ODL.
#
# This Source Code Form is subject to the terms of the Mozilla Public License,
# v. 2.0. If a copy of the MPL was not distributed with this file, You can
# obtain one at https://mozilla.org/MPL/2.0/.
"""Utilities for converting ODL operators to... | mpl-2.0 | -1,099,176,571,168,721,400 | 34.883588 | 78 | 0.565548 | false |
romain-li/edx-platform | lms/lib/xblock/test/test_mixin.py | 4 | 14378 | """
Tests of the LMS XBlock Mixin
"""
import ddt
from nose.plugins.attrib import attr
from lms_xblock.mixin import INVALID_USER_PARTITION_VALIDATION, INVALID_USER_PARTITION_GROUP_VALIDATION
from xblock.validation import ValidationMessage
from xmodule.modulestore import ModuleStoreEnum
from xmodule.modulestore.tests.fa... | agpl-3.0 | 1,572,543,020,252,825,000 | 40.197708 | 120 | 0.645291 | false |
FireballDWF/cloud-custodian | c7n/resources/ami.py | 5 | 11748 | # Copyright 2015-2019 Capital One Services, LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | apache-2.0 | 3,311,557,502,884,174,300 | 32.186441 | 97 | 0.579928 | false |
ppwwyyxx/tensorflow | tensorflow/python/autograph/pyct/cfg_test.py | 5 | 31737 | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | 3,860,499,030,078,431,000 | 23.282326 | 96 | 0.404733 | false |
kk9599/django-cms | cms/menu_bases.py | 49 | 1626 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db.models import Q
from django.core.exceptions import ValidationError
from cms.apphook_pool import apphook_pool
from cms.models import Page
from menus.base import Menu
class CMSAttachMenu(Menu):
cms_enabled = True
instance = None
... | bsd-3-clause | 3,963,854,851,170,668,500 | 29.111111 | 79 | 0.597171 | false |
michaelhkw/incubator-impala | tests/query_test/test_hdfs_caching.py | 1 | 14159 | # 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 u... | apache-2.0 | -5,181,596,787,333,594,000 | 45.271242 | 97 | 0.704287 | false |
cyrusin/tornado | tornado/test/log_test.py | 22 | 9679 | #!/usr/bin/env python
#
# Copyright 2012 Facebook
#
# 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 a... | apache-2.0 | -159,974,927,672,923,360 | 39.161826 | 105 | 0.622792 | false |
WoLpH/numpy-stl | setup.py | 1 | 4085 | from __future__ import print_function
import os
import sys
import warnings
from setuptools import setup, extension
from setuptools.command.build_ext import build_ext
from setuptools.command.test import test as TestCommand
setup_kwargs = {}
def error(*lines):
for line in lines:
print(line, file=sys.stder... | bsd-3-clause | 8,025,734,160,566,030,000 | 27.368056 | 79 | 0.560343 | false |
samfpetersen/gnuradio | gr-fec/python/fec/polar/__init__.py | 24 | 2694 | #!/usr/bin/env python
#
# Copyright 2015 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# GNU Radio 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, or (at your option)
# ... | gpl-3.0 | 6,316,571,430,177,346,000 | 41.09375 | 162 | 0.681143 | false |
CrushAndRun/Cloudbot-Fluke | cloudbot/util/test/test_formatting.py | 5 | 4995 | from cloudbot.util.formatting import munge, dict_format, pluralize, strip_colors, truncate, truncate_str, \
strip_html, multi_replace, multiword_replace, truncate_words, smart_split, get_text_list, ireplace, chunk_str
test_munge_input = "The quick brown fox jumps over the lazy dog"
test_munge_count = 3
test_munge_... | gpl-3.0 | 6,741,474,293,459,914,000 | 41.358974 | 119 | 0.694108 | false |
amenonsen/ansible | lib/ansible/modules/network/netvisor/pn_vflow_table_profile.py | 47 | 3814 | #!/usr/bin/python
# Copyright: (c) 2018, Pluribus Networks
# 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': ['... | gpl-3.0 | -5,790,150,765,151,234,000 | 25.671329 | 92 | 0.611432 | false |
kaiweifan/neutron | neutron/db/migration/alembic_migrations/versions/b7a8863760e_rm_cisco_vlan_bindin.py | 20 | 1750 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright 2013 OpenStack Foundation
#
# 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... | apache-2.0 | 6,960,076,920,802,991,000 | 28.166667 | 78 | 0.714857 | false |
miguelinux/vbox | src/libs/xpcom18a4/python/server/factory.py | 31 | 2868 | # ***** BEGIN LICENSE BLOCK *****
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (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.mozilla.org/MPL/
#
# Softwa... | gpl-2.0 | 3,768,980,759,727,088,600 | 41.176471 | 86 | 0.69735 | false |
shangwuhencc/shogun | examples/undocumented/python_modular/kernel_histogram_word_string_modular.py | 24 | 1678 | #!/usr/bin/env python
from tools.load import LoadMatrix
lm=LoadMatrix()
traindat = lm.load_dna('../data/fm_train_dna.dat')
testdat = lm.load_dna('../data/fm_test_dna.dat')
label_traindat = lm.load_labels('../data/label_train_dna.dat')
parameter_list=[[traindat,testdat,label_traindat,1,1e1, 1e0],[traindat,testdat,label... | gpl-3.0 | -4,394,034,335,024,943,600 | 38.023256 | 156 | 0.77652 | false |
andialbrecht/sqlparse | sqlparse/filters/aligned_indent.py | 1 | 5110 | #
# Copyright (C) 2009-2020 the sqlparse authors and contributors
# <see AUTHORS file>
#
# This module is part of python-sqlparse and is released under
# the BSD License: https://opensource.org/licenses/BSD-3-Clause
from sqlparse import sql, tokens as T
from sqlparse.utils import offset, indent
class AlignedIndentFi... | bsd-3-clause | 8,806,045,773,293,878,000 | 36.851852 | 77 | 0.551859 | false |
yiheng/BigDL | spark/dl/src/test/resources/tf/models/util.py | 6 | 4985 | #
# Copyright 2016 The BigDL 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 law or agreed to in ... | apache-2.0 | 8,020,058,334,947,718,000 | 38.88 | 118 | 0.632297 | false |
xiaojunwu/crosswalk-test-suite | webapi/tct-csp-w3c-tests/csp-py/csp_default-src_cross-origin_script.py | 30 | 3226 | def main(request, response):
import simplejson as json
f = file('config.json')
source = f.read()
s = json.JSONDecoder().decode(source)
url1 = "http://" + s['host'] + ":" + str(s['ports']['http'][1])
url2 = "http://" + s['host'] + ":" + str(s['ports']['http'][0])
_CSP = "default-src " + url1 ... | bsd-3-clause | -4,859,973,258,959,902,000 | 43.191781 | 93 | 0.683509 | false |
hackshel/py-aluminium | src/simplepool.py | 2 | 2210 |
import threading
import Queue
import new
def WorkerPoolError( Exception ):
pass
class WorkerPool( object ):
def __init__( self, threadnum ):
self.threadnum = threadnum
self.q = Queue.Queue()
self.ts = [ threading.Thread( target=self.run )
... | bsd-3-clause | -6,023,969,247,185,807,000 | 18.672897 | 58 | 0.4181 | false |
timpalpant/calibre | src/calibre/ebooks/conversion/plugins/tcr_output.py | 24 | 1702 | # -*- coding: utf-8 -*-
__license__ = 'GPL 3'
__copyright__ = '2009, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
import os
from calibre.customize.conversion import OutputFormatPlugin, \
OptionRecommendation
class TCROutput(OutputFormatPlugin):
name = 'TCR Output'
author ... | gpl-3.0 | -3,513,232,149,183,786,000 | 30.518519 | 103 | 0.612221 | false |
lleszczu/PerfKitBenchmarker | perfkitbenchmarker/packages/solr.py | 1 | 3529 | # Copyright 2015 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | apache-2.0 | 8,731,579,351,171,277,000 | 34.646465 | 78 | 0.594219 | false |
abztrakt/labtracker | Machine/hooks.py | 1 | 2801 | import django.forms
from django.template import RequestContext
from django.template.loader import render_to_string
from IssueTracker.utils import issueHook
import models, forms
@issueHook("create")
def issueCreate(request):
"""
Given request, render what extra stuff is needed for Machines
"""
args = {... | apache-2.0 | -2,884,091,685,345,354,000 | 22.940171 | 78 | 0.625491 | false |
nanuxbe/writable-nested-serializers | restframework_writable_nested/serializers.py | 1 | 1797 | from __future__ import unicode_literals
import inspect
from rest_framework.serializers import ListSerializer
from rest_framework.exceptions import ValidationError
class EmbeddedListSerializer(ListSerializer):
update_lookup_field = 'id'
def update(self, queryset, all_validated_data):
id_attr = getatt... | mit | 6,876,274,934,375,126,000 | 35.673469 | 84 | 0.629939 | false |
andela-ifageyinbo/django | tests/template_tests/test_loaders.py | 263 | 14253 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import os.path
import sys
import tempfile
import types
import unittest
from contextlib import contextmanager
from django.template import Context, TemplateDoesNotExist
from django.template.engine import Engine
from django.test import SimpleTestCase, ignor... | bsd-3-clause | -8,629,271,649,216,952,000 | 36.859043 | 98 | 0.630839 | false |
gregdek/ansible | test/units/plugins/action/test_win_updates.py | 39 | 5688 | # -*- coding: utf-8 -*-
# (c) 2018, Jordan Borean <jborean@redhat.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# Make coding more python3-ish
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import pytest
from units.compat.mo... | gpl-3.0 | 2,301,430,701,318,731,300 | 37.174497 | 92 | 0.567511 | false |
halberom/ansible | lib/ansible/modules/network/citrix/netscaler.py | 19 | 5328 | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Ansible module to manage Citrix NetScaler entities
(c) 2013, Nandor Sivok <nandor@gawker.com>
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 Softwa... | gpl-3.0 | 2,690,226,350,779,681,300 | 24.371429 | 104 | 0.614865 | false |
veger/ansible | lib/ansible/utils/module_docs_fragments/netapp.py | 15 | 5874 | #
# (c) 2018, Sumit Kumar <sumit4@netapp.com>, chris Archibald <carchi@netapp.com>
#
# 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, ... | gpl-3.0 | 8,480,433,352,563,155,000 | 33.350877 | 145 | 0.705141 | false |
lhilt/scipy | scipy/optimize/tests/test_hessian_update_strategy.py | 14 | 10562 | from __future__ import division, print_function, absolute_import
import numpy as np
from copy import deepcopy
from numpy.linalg import norm
from numpy.testing import (TestCase, assert_array_almost_equal,
assert_array_equal, assert_array_less,
assert_raises, assert_e... | bsd-3-clause | 3,456,874,824,920,112,000 | 47.228311 | 77 | 0.519693 | false |
vladikr/nova_drafts | nova/tests/api/openstack/test_xmlutil.py | 15 | 34796 | # Copyright 2011 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... | apache-2.0 | -6,901,397,132,064,029,000 | 35.704641 | 79 | 0.588573 | false |
hwu25/AppPkg | Applications/Python/Python-2.7.2/Lib/test/test_docxmlrpc.py | 9 | 8209 | from DocXMLRPCServer import DocXMLRPCServer
import httplib
import sys
from test import test_support
threading = test_support.import_module('threading')
import time
import socket
import unittest
PORT = None
def make_request_and_skipIf(condition, reason):
# If we skip the test, we have to make a request... | bsd-2-clause | -6,667,106,641,288,799,000 | 38.840796 | 83 | 0.58716 | false |
pauloschilling/sentry | setup.py | 1 | 6546 | #!/usr/bin/env python
"""
Sentry
======
Sentry is a realtime event logging and aggregation platform. It specializes
in monitoring errors and extracting all the information needed to do a proper
post-mortem without any of the hassle of the standard user feedback loop.
Sentry is a Server
------------------
The Sentry ... | bsd-3-clause | 8,836,380,245,532,721,000 | 27.337662 | 92 | 0.617171 | false |
sukwon0709/equip | equip/visitors/bytecode.py | 2 | 7720 | # -*- coding: utf-8 -*-
"""
equip.visitors.bytecode
~~~~~~~~~~~~~~~~~~~~~~~
Callback the visitor method for each encountered opcode.
:copyright: (c) 2014 by Romain Gaucher (@rgaucher)
:license: Apache 2, see LICENSE for more details.
"""
import opcode
from ..utils.log import logger
class BytecodeVisitor... | apache-2.0 | -7,479,949,421,942,916,000 | 17.079625 | 81 | 0.640155 | false |
ampax/edx-platform | common/lib/xmodule/xmodule/tests/test_conditional.py | 131 | 12910 | import json
import unittest
from fs.memoryfs import MemoryFS
from mock import Mock, patch
from xblock.field_data import DictFieldData
from xblock.fields import ScopeIds
from xmodule.error_module import NonStaffErrorDescriptor
from opaque_keys.edx.locations import SlashSeparatedCourseKey, Location
from xmodule.modules... | agpl-3.0 | 8,451,828,146,445,113,000 | 41.189542 | 133 | 0.636561 | false |
hughperkins/osmp-cpp | pylogin2.py | 1 | 10515 | #!/usr/bin/env python
# Copyright Hugh Perkins 2004
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This p... | gpl-2.0 | 7,235,073,055,693,310,000 | 38.133588 | 132 | 0.589729 | false |
abtink/openthread | tools/harness-automation/cases/reed_5_2_7.py | 18 | 1874 | #!/usr/bin/env python
#
# Copyright (c) 2016, The OpenThread Authors.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source code must retain the above copyright
# notic... | bsd-3-clause | 4,306,029,037,070,329,000 | 40.644444 | 77 | 0.761473 | false |
wooga/airflow | tests/providers/google/marketing_platform/hooks/test_analytics.py | 1 | 8136 | #
# 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... | apache-2.0 | 2,139,687,130,720,417,300 | 38.304348 | 98 | 0.635816 | false |
yangming85/lettuce | tests/integration/lib/Django-1.3/django/contrib/gis/geos/tests/test_geos.py | 152 | 43191 | import ctypes, random, unittest, sys
from django.contrib.gis.geos import *
from django.contrib.gis.geos.base import gdal, numpy, GEOSBase
from django.contrib.gis.geos.libgeos import GEOS_PREPARE
from django.contrib.gis.geometry.test_data import TestDataMixin
class GEOSTest(unittest.TestCase, TestDataMixin):
@prop... | gpl-3.0 | 2,425,025,582,094,637,600 | 39.939336 | 121 | 0.578107 | false |
jedie/pypyjs-standalone | website/js/pypy.js-0.3.0/lib/modules/distutils/tests/test_util.py | 42 | 1063 | """Tests for distutils.util."""
import sys
import unittest
from test.test_support import run_unittest
from distutils.errors import DistutilsByteCompileError
from distutils.util import byte_compile, grok_environment_error
class UtilTestCase(unittest.TestCase):
def test_dont_write_bytecode(self):
# makes ... | mit | 8,871,086,848,148,107,000 | 31.212121 | 74 | 0.690499 | false |
thomasem/nova | nova/tests/unit/api/openstack/test_api_version_request.py | 48 | 4954 | # Copyright 2014 IBM Corp.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... | apache-2.0 | -7,398,224,348,635,240,000 | 40.630252 | 79 | 0.640493 | false |
apeyser/nest-simulator | pynest/nest/tests/test_rate_copy_model.py | 3 | 3303 | # -*- coding: utf-8 -*-
#
# test_rate_copy_model.py
#
# This file is part of NEST.
#
# Copyright (C) 2004 The NEST Initiative
#
# NEST is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the Li... | gpl-2.0 | 4,232,734,678,284,456,000 | 29.302752 | 78 | 0.606721 | false |
mizdebsk/javapackages | test/mvn_config_test.py | 2 | 7238 | import unittest
import shutil
import os
from test_common import javautils_script, get_config_file_list, \
get_actual_config, get_expected_config, DIRPATH
from xml_compare import compare_xml_files
class TestMvnConfig(unittest.TestCase):
maxDiff = 2048
def setUp(self):
self.olddir = os.getcwd(... | bsd-3-clause | -6,621,102,510,714,287,000 | 40.125 | 76 | 0.59685 | false |
ericfc/django | tests/str/models.py | 409 | 1300 | # -*- coding: utf-8 -*-
"""
Adding __str__() or __unicode__() to models
Although it's not a strict requirement, each model should have a
``_str__()`` or ``__unicode__()`` method to return a "human-readable"
representation of the object. Do this not only for your own sanity when dealing
with the interactive prompt, but... | bsd-3-clause | 5,280,934,240,215,438,000 | 34.135135 | 79 | 0.709231 | false |
cosmiclattes/TPBviz | torrent/lib/python2.7/site-packages/django/contrib/gis/tests/test_measure.py | 221 | 8307 | """
Distance and Area objects to allow for sensible and convienient calculation
and conversions. Here are some tests.
"""
from django.contrib.gis.measure import Distance, Area, D, A
from django.utils import unittest
class DistanceTest(unittest.TestCase):
"Testing the Distance object"
def testInit(self):
... | gpl-3.0 | -3,748,618,297,115,475,500 | 27.644828 | 105 | 0.554713 | false |
recursix/spearmint-salad | spearmint_salad/high_level.py | 1 | 4157 | # -*- coding: utf-8 -*-
'''
Created on Mar 31, 2014
@author: alex
'''
from spearmint_salad import salad, base, experiments_folder
from spearmint_salad.analyze.analyze_trace import get_collection_structure
from pkl_trace import TraceDBFile, get_column_dict
import numpy as np
from os import path
from spearmint_salad.... | bsd-3-clause | 7,481,196,585,560,201,000 | 32 | 142 | 0.601155 | false |
total-impact/total-impact-core | extras/db_housekeeping/merge_collections.py | 2 | 4365 | import couchdb, os, logging, sys, collections
from pprint import pprint
import time
import requests
import copy
# run in heroku by a) commiting, b) pushing to heroku, and c) running
# heroku run python extras/db_housekeeping/merge_collections.py
logging.basicConfig(
stream=sys.stdout,
level=logging.DEBUG,
... | mit | 398,925,393,264,825,400 | 35.680672 | 117 | 0.586942 | false |
Weasyl/weasyl | weasyl/test/test_media.py | 1 | 2482 | import contextlib
import pytest
from weasyl import media
@contextlib.contextmanager
def build_multi_get(expected_length):
called = []
def multi_get(*keys):
assert len(keys) == expected_length
called.append(True)
return keys
yield multi_get
assert called
def test_populator... | apache-2.0 | 8,039,437,849,770,617,000 | 29.641975 | 133 | 0.64021 | false |
CyanogenMod/android_external_chromium_org | net/tools/testserver/testserver.py | 8 | 80558 | #!/usr/bin/env python
# Copyright 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.
"""This is a simple HTTP/FTP/TCP/UDP/BASIC_AUTH_PROXY/WEBSOCKET server used for
testing Chrome.
It supports several test URLs, as spec... | bsd-3-clause | 5,348,950,234,716,030,000 | 35.53424 | 80 | 0.619094 | false |
FlorianLudwig/odoo | addons/sale_mrp/tests/__init__.py | 262 | 1085 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Business Applications
# Copyright (c) 2012-TODAY OpenERP S.A. <http://openerp.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of ... | agpl-3.0 | -7,588,088,074,409,004,000 | 44.208333 | 78 | 0.619355 | false |
bird-house/PyWPS | tests/test_ows.py | 1 | 7017 | ##################################################################
# Copyright 2018 Open Source Geospatial Foundation and others #
# licensed under MIT, Please consult LICENSE.txt for details #
##################################################################
__author__ = "Luis de Sousa"
__date__ = "10-03-2015... | mit | -642,709,966,562,498,600 | 36.126984 | 194 | 0.558358 | false |
mush42/mezzanine | mezzanine/blog/feeds.py | 25 | 4583 | from __future__ import unicode_literals
from django.contrib.auth import get_user_model
from django.contrib.sites.models import Site
from django.contrib.syndication.views import Feed, add_domain
from django.core.urlresolvers import reverse
from django.shortcuts import get_object_or_404
from django.utils.feedgenerator i... | bsd-2-clause | 740,520,081,404,687,600 | 32.698529 | 78 | 0.640847 | false |
shanemikel/beets | beetsplug/bpd/gstplayer.py | 25 | 7296 | # This file is part of beets.
# Copyright 2015, Adrian Sampson.
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, ... | mit | -4,806,602,349,148,430,000 | 31.717489 | 73 | 0.611431 | false |
luiseduardohdbackup/odoo | addons/sale_order_dates/__openerp__.py | 260 | 1771 | # -*- 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 | 5,574,369,301,824,578,000 | 36.680851 | 78 | 0.573687 | false |
chimkentec/KodiMODo_rep | plugin.video.zona.mobi.dev/core/list.py | 2 | 12957 | # -*- coding: utf-8 -*-
import os, re, sys, json, urllib, hashlib, traceback
import xbmcup.app, xbmcup.db, xbmcup.system, xbmcup.net, xbmcup.parser, xbmcup.gui
import xbmc, cover, xbmcplugin, xbmcgui
from http import HttpData
from common import Render
from defines import *
try:
from sqlite3 import dbapi2 as sqlit... | gpl-3.0 | -2,261,895,996,430,353,400 | 37.601796 | 144 | 0.499108 | false |
gholms/euca2ools | euca2ools/commands/ec2/deletevpngateway.py | 5 | 1643 | # Copyright 2014 Eucalyptus Systems, Inc.
#
# Redistribution and use of this software 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 t... | bsd-2-clause | -6,421,319,539,331,653,000 | 47.323529 | 79 | 0.776019 | 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.