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 |
|---|---|---|---|---|---|---|---|---|---|---|
SnabbCo/neutron | neutron/tests/unit/vmware/test_dhcpmeta.py | 8 | 62666 | # Copyright 2013 VMware, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | apache-2.0 | -4,336,483,459,438,377,000 | 42.853044 | 79 | 0.575113 | false |
msmolens/VTK | ThirdParty/Twisted/twisted/words/test/test_basesupport.py | 67 | 3056 | # Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
from twisted.trial import unittest
from twisted.words.im import basesupport
from twisted.internet import error, defer
class DummyAccount(basesupport.AbstractAccount):
"""
An account object that will do nothing when asked to start to log o... | bsd-3-clause | 4,459,271,802,145,153,500 | 30.505155 | 79 | 0.623364 | false |
anudeepsharma/autorest | src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyBoolean/setup.py | 28 | 1097 | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | mit | -4,786,601,227,776,735,000 | 26.425 | 76 | 0.616226 | false |
plotly/plotly.py | packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_graph_objs.py | 1 | 5401 | from unittest import TestCase
import plotly.graph_objs as go
OLD_CLASS_NAMES = [
"AngularAxis",
"Annotation",
"Annotations",
"Bar",
"Box",
"ColorBar",
"Contour",
"Contours",
"Data",
"ErrorX",
"ErrorY",
"ErrorZ",
"Figure",
"Font",
"Frame",
"Frames",
... | mit | 3,306,017,069,224,007,700 | 28.839779 | 84 | 0.565081 | false |
ddico/odoo | addons/test_event_full/tests/common.py | 1 | 3967 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo.addons.event_crm.tests.common import TestEventCrmCommon
class TestEventFullCommon(TestEventCrmCommon):
@classmethod
def setUpClass(cls):
super(TestEventFullCommon, cls).setUpClass()
... | agpl-3.0 | -6,333,843,015,616,625,000 | 37.892157 | 111 | 0.495084 | false |
embray/numpy | numpy/distutils/conv_template.py | 165 | 9681 | #!/usr/bin/python
"""
takes templated file .xxx.src and produces .xxx file where .xxx is
.i or .c or .h, using the following template rules
/**begin repeat -- on a line by itself marks the start of a repeated code
segment
/**end repeat**/ -- on a line by itself marks it's end
After the /**begin ... | bsd-3-clause | 6,577,161,234,632,948,000 | 27.727003 | 84 | 0.545398 | false |
maninator/manimediaserver | setup/lib/mani_controller.py | 1 | 2431 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# @Author: Mani
# @Date: 2017-08-28 19:20:58
# @Last Modified time: 2017-09-27 12:54:55
#
##############################################
import mani_config
import docker_config
import emby_config
SERVICE_CONFIG_OPTIONS = {
"embyserver" : {
"module":"emby... | gpl-3.0 | -7,758,908,320,152,808,000 | 30.166667 | 90 | 0.562731 | false |
psrthegreat/heroku-buildpack-python-sklearn | vendor/pip-1.3.1/pip/vcs/subversion.py | 63 | 10620 | import os
import re
from pip.backwardcompat import urlparse
from pip import InstallationError
from pip.index import Link
from pip.util import rmtree, display_path, call_subprocess
from pip.log import logger
from pip.vcs import vcs, VersionControl
_svn_xml_url_re = re.compile('url="([^"]+)"')
_svn_rev_re = re.compile('... | mit | -2,709,996,977,351,802,000 | 38.044118 | 101 | 0.533804 | false |
flwh/KK_mt6589_iq451 | prebuilts/python/linux-x86/2.7.5/lib/python2.7/sqlite3/__init__.py | 239 | 1037 | #-*- coding: ISO-8859-1 -*-
# pysqlite2/__init__.py: the pysqlite2 package.
#
# Copyright (C) 2005 Gerhard Häring <gh@ghaering.de>
#
# This file is part of pysqlite.
#
# This software is provided 'as-is', without any express or implied
# warranty. In no event will the authors be held liable for any damages
# arising f... | gpl-2.0 | -2,632,123,124,255,333,000 | 42.208333 | 76 | 0.751205 | false |
flwh/KK_mt6589_iq451 | prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/test_strptime.py | 50 | 25849 | """PyUnit testing against strptime"""
import unittest
import time
import locale
import re
import sys
from test import test_support
from datetime import date as datetime_date
import _strptime
class getlang_Tests(unittest.TestCase):
"""Test _getlang"""
def test_basic(self):
self.assertEqual(_strptime._... | gpl-2.0 | -1,153,389,826,223,303,700 | 44.589065 | 88 | 0.559287 | false |
rodoviario/Tomb | extras/tomber/tomber/test.py | 5 | 3293 | import os
import unittest
from tomber import *
from random import randrange
from shutil import rmtree, copyfile
class tomberTester(unittest.TestCase):
@classmethod
def setUpClass(self):
self.pid = str(os.getpid())
self.tombfile = '.'.join([self.pid, 'tomb'])
self.keyfile = '.'.join([s... | gpl-3.0 | -7,424,236,887,155,158,000 | 30.673077 | 79 | 0.555117 | false |
StefanRijnhart/odoo | openerp/addons/base/ir/ir_model.py | 1 | 61185 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Business Applications
# Copyright (C) 2004-2014 OpenERP S.A. (<http://openerp.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms ... | agpl-3.0 | 5,260,139,709,131,623,000 | 47.559524 | 207 | 0.55749 | false |
erdincay/youtube-dl | youtube_dl/extractor/wayofthemaster.py | 154 | 1527 | from __future__ import unicode_literals
import re
from .common import InfoExtractor
class WayOfTheMasterIE(InfoExtractor):
_VALID_URL = r'https?://www\.wayofthemaster\.com/([^/?#]*/)*(?P<id>[^/?#]+)\.s?html(?:$|[?#])'
_TEST = {
'url': 'http://www.wayofthemaster.com/hbks.shtml',
'md5': '5316... | unlicense | 7,633,405,908,428,544,000 | 28.365385 | 102 | 0.477407 | false |
Arelle/Arelle | arelle/plugin/validate/EBA/__init__.py | 2 | 47269 | '''
Created on Dec 12, 2013
@author: Mark V Systems Limited
(c) Copyright 2013 Mark V Systems Limited, All rights reserved.
'''
import os, sys, re
from arelle import PluginManager
from arelle import ModelDocument, XbrlConst, XmlUtil, UrlUtil, LeiUtil
from arelle.HashUtil import md5hash, Md5Sum
from arelle.Mo... | apache-2.0 | -8,243,883,731,094,326,000 | 60.277997 | 247 | 0.553111 | false |
retomerz/intellij-community | python/lib/Lib/site-packages/django/contrib/gis/geos/tests/test_geos.py | 76 | 43164 | 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... | apache-2.0 | 1,719,035,586,360,780,500 | 39.913744 | 121 | 0.577634 | false |
txm/potato | django/contrib/staticfiles/storage.py | 154 | 2080 | import os
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.core.files.storage import FileSystemStorage
from django.utils.importlib import import_module
from django.contrib.staticfiles import utils
class StaticFilesStorage(FileSystemStorage):
"""
Standard fi... | bsd-3-clause | -1,059,482,984,546,054,300 | 36.142857 | 85 | 0.637019 | false |
arhik/nupic | tests/unit/nupic/research/inhibition_object_test.py | 5 | 6367 | # ----------------------------------------------------------------------
# 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 apply:
#
# This progra... | agpl-3.0 | -804,207,335,751,957,200 | 38.06135 | 84 | 0.628239 | false |
sudheesh001/oh-mainline | vendor/packages/python-social-auth/social/tests/backends/oauth.py | 77 | 4538 | import requests
from httpretty import HTTPretty
from social.p3 import urlparse
from social.utils import parse_qs, url_add_parameters
from social.tests.models import User
from social.tests.backends.base import BaseBackendTest
class BaseOAuthTest(BaseBackendTest):
backend = None
backend_path = None
user_... | agpl-3.0 | 7,972,847,943,034,033,000 | 37.786325 | 79 | 0.535478 | false |
ZENGXH/scikit-learn | sklearn/neighbors/regression.py | 106 | 10572 | """Nearest Neighbor Regression"""
# Authors: Jake Vanderplas <vanderplas@astro.washington.edu>
# Fabian Pedregosa <fabian.pedregosa@inria.fr>
# Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Sparseness support by Lars Buitinck <L.J.Buitinck@uva.nl>
# Multi-output support by Arna... | bsd-3-clause | 7,159,538,998,447,807,000 | 35.205479 | 78 | 0.606602 | false |
jag1g13/lammps | python/examples/pizza/gl.py | 22 | 43829 | # Pizza.py toolkit, www.cs.sandia.gov/~sjplimp/pizza.html
# Steve Plimpton, sjplimp@sandia.gov, Sandia National Laboratories
#
# Copyright (2005) Sandia Corporation. Under the terms of Contract
# DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains
# certain rights in this software. This software is... | gpl-2.0 | -6,442,689,821,948,257,000 | 31.904655 | 79 | 0.548153 | false |
DeltaEpsilon-HackFMI2/FMICalendar-REST | venv/lib/python2.7/site-packages/django/contrib/auth/admin.py | 62 | 7740 | from django.db import transaction
from django.conf import settings
from django.contrib import admin
from django.contrib.auth.forms import (UserCreationForm, UserChangeForm,
AdminPasswordChangeForm)
from django.contrib.auth.models import User, Group
from django.contrib import messages
from django.core.exceptions imp... | mit | 8,884,276,696,884,425,000 | 42 | 79 | 0.611757 | false |
subutai/htmresearch | projects/sdr_paper/pytorch_experiments/test_score_table.py | 2 | 3491 | # -*- coding: utf-8 -*-
# ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2019, Numenta, Inc. Unless you have an agreement
# with Numenta, Inc., for a separate license for this software code, the
# following terms and condition... | agpl-3.0 | 1,029,449,604,223,473,500 | 33.544554 | 80 | 0.693035 | false |
pizzapanther/GAE-Bulk-Mailer | django/contrib/staticfiles/storage.py | 29 | 12194 | from __future__ import unicode_literals
import hashlib
import os
import posixpath
import re
try:
from urllib.parse import unquote, urlsplit, urlunsplit, urldefrag
except ImportError: # Python 2
from urllib import unquote
from urlparse import urlsplit, urlunsplit, urldefrag
from django.conf import setti... | bsd-2-clause | 3,816,551,797,556,401,700 | 38.462783 | 85 | 0.56249 | false |
guewen/OpenUpgrade | addons/mrp_operations/report/mrp_wc_barcode.py | 381 | 1501 | # -*- 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... | agpl-3.0 | -6,876,416,466,189,130,000 | 44.484848 | 151 | 0.628914 | false |
landier/imdb-crawler | crawler/libs/sqlalchemy/dialects/mysql/pyodbc.py | 18 | 2739 | # mysql/pyodbc.py
# Copyright (C) 2005-2012 the SQLAlchemy authors and contributors <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""Support for the MySQL database via the pyodbc adapter.
pyodbc is available at:
... | gpl-3.0 | 7,099,570,421,452,045,000 | 32.402439 | 85 | 0.679445 | false |
stefanseefeld/qmtest | qm/test/resource.py | 2 | 4158 | ########################################################################
#
# File: resource.py
# Author: Mark Mitchell
# Date: 2001-10-10
#
# Contents:
# QMTest Resource class.
#
# Copyright (c) 2001, 2002, 2003 by CodeSourcery, LLC. All rights reserved.
#
# For license terms see the file COPYING.
#
###########... | gpl-2.0 | 5,063,615,508,042,233,000 | 37.859813 | 77 | 0.62963 | false |
HUGG/NGWM2016-modelling-course | Lessons/04-Basic-fluid-mechanics/scripts/1D-asthenospheric-counterflow.py | 1 | 1766 | # -*- coding: utf-8 -*-
"""
1D-asthenospheric-counterflow.py
A script for plotting velocity magnitudes for 1D counterflow in the
asthenosphere.
dwhipp 01.16
"""
#--- User-defined input variables
hl = 100.0 # Thickness of lithosphere [km]
h = 200.0 ... | mit | 1,246,263,964,980,548,600 | 29.465517 | 134 | 0.515855 | false |
cliftbar/FlaPyDisaster | FlaPyDisaster/explosion/explosion_math.py | 1 | 2734 | import math
def hello():
ret_string = "This is the explosion math package! Some help info is below."
print(ret_string)
def general_bomb_equation(mass_kg, radius_m):
"""
General Sadovsky bomb overpressure equation, surface explosion at standard atmospheric condidtions.
:param mass_kg: Mass in k... | mit | -6,113,686,789,685,298,000 | 34.947368 | 131 | 0.643485 | false |
jnobre/lxmls-toolkit-2017 | lxmls/parsing/dependency_writer.py | 2 | 1427 | import sys
import numpy as np
import os
from os import path
class DependencyWriter:
"""
Dependency writer class
"""
def __init__(self):
pass
def save(self, language, heads_pred):
"""Saves predicted dependency trees."""
base_deppars_dir = path.join(path.dirname(__file__), ... | mit | 7,204,195,375,217,932,000 | 28.122449 | 94 | 0.50876 | false |
LCOGT/citsciportal | app/agentex/datareduc.py | 1 | 37132 | '''
Citizen Science Portal: App containing Agent Exoplant and Show Me Stars for Las Cumbres Observatory Global Telescope Network
Copyright (C) 2014-2015 LCOGT
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 Foun... | gpl-3.0 | -886,116,494,483,593,000 | 42.839433 | 232 | 0.58564 | false |
o5k/openerp-oemedical-v0.1 | openerp/addons/oemedical/oemedical_gynecology_and_obstetrics/__init__.py | 4 | 1169 | # -*- coding: utf-8 -*-
#/#############################################################################
#
# Tech-Receptives Solutions Pvt. Ltd.
# Copyright (C) 2004-TODAY Tech-Receptives(<http://www.techreceptives.com>)
# Special Credit and Thanks to Thymbra Latinoamericana S.A.
#
# This program is free sof... | agpl-3.0 | 6,386,581,103,316,697,000 | 45.76 | 79 | 0.63302 | false |
sciCloud/OLiMS | lims/browser/widgets/referenceresultswidget.py | 2 | 9295 | from dependencies.dependency import ClassSecurityInfo
from dependencies.dependency import registerWidget
from dependencies.dependency import TypesWidget
from dependencies.dependency import getToolByName
from lims.browser import BrowserView
from lims import bikaMessageFactory as _
from lims.utils import t
from lims.brow... | agpl-3.0 | -8,105,790,573,357,669,000 | 39.238095 | 79 | 0.521893 | false |
memtoko/django | tests/gis_tests/geo3d/tests.py | 17 | 12625 | from __future__ import unicode_literals
import os
import re
from unittest import skipUnless
from django.contrib.gis.gdal import HAS_GDAL
from django.contrib.gis.geos import HAS_GEOS
from django.test import TestCase, ignore_warnings, skipUnlessDBFeature
from django.utils._os import upath
from django.utils.deprecation ... | bsd-3-clause | 1,157,344,193,582,380,300 | 41.365772 | 107 | 0.618535 | false |
sbuss/voteswap | lib/sendgrid/helpers/mail/mail.py | 5 | 21263 | """v3/mail/send response body builder"""
import json
class Mail(object):
"""Creates the response body for v3/mail/send"""
def __init__(self, from_email = None, subject = None, to_email = None, content = None):
self.from_email = None
self.subject = None
self.personalizations = None
... | mit | -2,025,208,392,314,272,300 | 30.040876 | 107 | 0.58021 | false |
Jaimenms/celldeposit-condenser | models/external_film_condensation.py | 1 | 11523 | __doc__="""
DaetTools model that describes the behavior of a water flowing in a pipe with the effect of biofim formation.
"""
from daetools.pyDAE import *
from daetools_extended.daemodel_extended import daeModelExtended
from pyUnits import m, kg, s, K, Pa, J, W, rad
from water_properties import density, viscosity, c... | gpl-3.0 | 6,708,950,383,340,689,000 | 35.935897 | 136 | 0.566866 | false |
Intel-tensorflow/tensorflow | tensorflow/python/keras/legacy_tf_layers/base.py | 4 | 24294 | # Copyright 2015 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 | -8,035,506,266,051,125,000 | 38.31068 | 116 | 0.662468 | false |
ageron/tensorflow | tensorflow/python/keras/utils/io_utils.py | 9 | 4877 | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | 1,415,648,008,219,076,600 | 27.688235 | 80 | 0.635227 | false |
borjam/exabgp | src/exabgp/rib/change.py | 3 | 2158 | # encoding: utf-8
"""
change.py
Created by Thomas Mangin on 2009-11-05.
Copyright (c) 2009-2017 Exa Networks. All rights reserved.
License: 3-clause BSD. (See the COPYRIGHT file)
"""
class Source(object):
UNSET = 0
CONFIGURATION = 1
API = 2
NETWORK = 3
class Change(object):
SOURCE = Source.UNSE... | bsd-3-clause | -8,139,698,018,073,820,000 | 26.666667 | 83 | 0.638554 | false |
simontakite/sysadmin | pythonscripts/programmingpython/System/Processes/pipe2.py | 2 | 1166 | # same as pipe1.py, but wrap pipe input in stdio file object
# to read by line, and close unused pipe fds in both processes
import os, time
def child(pipeout):
zzz = 0
while True:
time.sleep(zzz) # make parent wait
msg = ('Spam %03d\n' % zzz).encode() # pi... | gpl-2.0 | -249,481,932,627,793,570 | 42.846154 | 83 | 0.474271 | false |
jay-tyler/ansible | lib/ansible/playbook/playbook_include.py | 26 | 5924 | # (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.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, or
# (at your option) an... | gpl-3.0 | -5,869,202,884,084,888,000 | 41.618705 | 137 | 0.644159 | false |
sekikn/ambari | ambari-server/src/main/python/setupAgent.py | 2 | 15576 | #!/usr/bin/env python
'''
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License")... | apache-2.0 | -978,606,969,057,338,600 | 37.842893 | 201 | 0.64548 | false |
ClovisIRex/Snake-django | env/lib/python3.6/site-packages/django/contrib/admindocs/urls.py | 97 | 1192 | from django.conf.urls import url
from django.contrib.admindocs import views
urlpatterns = [
url(r'^$',
views.BaseAdminDocsView.as_view(template_name='admin_doc/index.html'),
name='django-admindocs-docroot'),
url(r'^bookmarklets/$',
views.BookmarkletsView.as_view(),
name='django-... | mit | 4,542,290,393,202,422,300 | 36.25 | 78 | 0.612416 | false |
xadahiya/django | tests/model_validation/models.py | 166 | 1314 | from django.db import models
class ThingItem(object):
def __init__(self, value, display):
self.value = value
self.display = display
def __iter__(self):
return (x for x in [self.value, self.display])
def __len__(self):
return 2
class Things(object):
def __iter__(se... | bsd-3-clause | 4,264,031,841,075,513,300 | 25.816327 | 79 | 0.670472 | false |
vseledkin/keras | examples/mnist_irnn.py | 70 | 3041 | from __future__ import absolute_import
from __future__ import print_function
import numpy as np
np.random.seed(1337) # for reproducibility
from keras.datasets import mnist
from keras.models import Sequential
from keras.layers.core import Dense, Activation
from keras.initializations import normal, identity
from keras.... | mit | -1,742,418,472,385,753,600 | 33.954023 | 80 | 0.721144 | false |
dstaple/z3test | scripts/exereport.py | 3 | 1170 | # Copyright (c) 2015 Microsoft Corporation
# Simple script for executing a command and reporting the result by email
import sendmail
import sys
import subprocess
import tempfile
import config
import socket
import os
try:
hostname = socket.gethostbyaddr(socket.gethostname())[0]
except:
try:
hostname = o... | mit | -2,035,093,214,243,541,500 | 23.375 | 78 | 0.598291 | false |
Piasy/proxy-searcher | site-packages/django/contrib/gis/maps/google/zoom.py | 92 | 6624 | from django.contrib.gis.geos import GEOSGeometry, LinearRing, Polygon, Point
from django.contrib.gis.maps.google.gmap import GoogleMapException
from math import pi, sin, log, exp, atan
# Constants used for degree to radian conversion, and vice-versa.
DTOR = pi / 180.
RTOD = 180. / pi
class GoogleZoom(object):
"""... | mit | 3,876,439,877,345,127,000 | 40.142857 | 110 | 0.611715 | false |
code-sauce/tensorflow | tensorflow/python/summary/impl/event_file_loader.py | 68 | 2971 | # Copyright 2015 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 | 2,402,963,870,769,443,300 | 36.1375 | 80 | 0.692696 | false |
fujunwei/chromium-crosswalk | tools/chrome_proxy/integration_tests/chrome_proxy_metrics.py | 3 | 22546 | # Copyright 2014 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 logging
import time
from integration_tests import network_metrics
from telemetry.page import page_test
from telemetry.value import scalar
class Chr... | bsd-3-clause | 3,493,797,448,461,085,000 | 39.188948 | 80 | 0.654706 | false |
ralph-mikera/RouteFlow-1 | pox/pox/web/webcore.py | 21 | 15821 | # Copyright 2011,2012 James McCauley
#
# This file is part of POX.
#
# POX 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.
#
# POX is d... | apache-2.0 | -7,611,099,296,114,738,000 | 31.221996 | 75 | 0.642437 | false |
tjhei/burnman-original | burnman/slb.py | 2 | 8946 | # BurnMan - a lower mantle toolkit
# Copyright (C) 2012, 2013, Heister, T., Unterborn, C., Rose, I. and Cottaar, S.
# Released under GPL v2 or later.
import scipy.optimize as opt
import birch_murnaghan as bm
import debye
import numpy as np
from equation_of_state import equation_of_state
import warnings
import matplo... | gpl-2.0 | -8,852,680,942,242,817,000 | 43.954774 | 131 | 0.588755 | false |
asedunov/intellij-community | python/lib/Lib/pstats.py | 94 | 25940 | """Class for printing reports on profiled python code."""
# Class for printing reports on profiled python code. rev 1.0 4/1/94
#
# Based on prior profile module by Sjoerd Mullender...
# which was hacked somewhat by: Guido van Rossum
#
# see profile.doc and profile.py for more info.
# Copyright 1994, by InfoSeek Co... | apache-2.0 | 4,168,763,186,872,679,000 | 36.923977 | 98 | 0.525598 | false |
brandond/ansible | lib/ansible/plugins/terminal/exos.py | 58 | 2026 | #
# (c) 2016 Red Hat Inc.
#
# 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 d... | gpl-3.0 | 2,573,558,636,549,813,000 | 35.836364 | 91 | 0.627838 | false |
wave72/hubzilla-dev | library/blueimp_upload/server/gae-python/main.py | 245 | 5845 | # -*- coding: utf-8 -*-
#
# jQuery File Upload Plugin GAE Python Example 2.2.0
# https://github.com/blueimp/jQuery-File-Upload
#
# Copyright 2011, Sebastian Tschan
# https://blueimp.net
#
# Licensed under the MIT license:
# http://www.opensource.org/licenses/MIT
#
from __future__ import with_statement
from google.appe... | mit | 6,588,961,588,958,959,000 | 33.382353 | 90 | 0.549358 | false |
3quarterstack/simple_blog | django/contrib/gis/db/backends/postgis/creation.py | 106 | 4554 | from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.db.backends.postgresql_psycopg2.creation import DatabaseCreation
from django.utils.functional import cached_property
class PostGISCreation(DatabaseCreation):
geom_index_type = 'GIST'
geom_index_ops = 'GIST_GEO... | mit | 6,341,494,048,167,077,000 | 46.4375 | 100 | 0.53206 | false |
Chilledheart/gyp | pylib/gyp/common.py | 9 | 19179 | # 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.
from __future__ import with_statement
import collections
import errno
import filecmp
import os.path
import re
import tempfile
import sys
# A minimal memoizing d... | bsd-3-clause | 3,317,280,841,000,826,400 | 31.617347 | 83 | 0.663538 | false |
sangh/LaserShow | pyglet-hg/pyglet/window/xlib/__init__.py | 4 | 49403 | # ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | bsd-3-clause | 3,369,199,036,370,042,000 | 38.427773 | 87 | 0.559946 | false |
todaychi/hue | desktop/core/ext-py/Django-1.6.10/django/contrib/auth/management/__init__.py | 91 | 6767 | """
Creates permissions for all installed apps that need permissions.
"""
from __future__ import unicode_literals
import getpass
import unicodedata
from django.contrib.auth import (models as auth_app, get_permission_codename,
get_user_model)
from django.core import exceptions
from django.core.management.base impo... | apache-2.0 | 6,599,892,472,241,577,000 | 34.062176 | 86 | 0.648441 | false |
gamezdaniel/mswl-dt-2013 | myspider/pymyspider/__init__.py | 1 | 2784 | # Copyright (c) 2013, Daniel Gamez
# with the help of Israel Herraiz at URJC
# 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... | bsd-2-clause | -7,210,464,443,048,822,000 | 26.564356 | 79 | 0.672773 | false |
sdwilsh/buck | src/com/facebook/buck/apple/project_generator/build_with_buck_test.py | 10 | 5555 | import unittest
import tempfile
import uuid
import os
import platform
import pkg_resources
from build_with_buck import *
XCODE_DWARF = "dwarf"
XCODE_DSYM = "dwarf-with-dsym"
class TestBuildWithBuck(unittest.TestCase):
def run_with_data(self,
platform_name,
archs,
... | apache-2.0 | -5,755,266,964,143,963,000 | 41.083333 | 99 | 0.385419 | false |
benhoff/reddit_helper | reddit_helper/__main__.py | 1 | 2193 | #!/usr/bin/env python3
import sys
import os
import tempfile
import json
from subprocess import call
import github
import reddit
def _get_settings():
main_dir = os.path.dirname(os.path.realpath(__file__))
settings = None
settings_filename= os.path.join(main_dir, 'settings.json')
if os.path.exists(se... | gpl-3.0 | -7,267,194,925,991,014,000 | 30.328571 | 172 | 0.619243 | false |
kingvuplus/Test-OBH | keyids.py | 2 | 5474 | KEYIDS = {
"KEY_RESERVED": 0,
"KEY_ESC": 1,
"KEY_1": 2,
"KEY_2": 3,
"KEY_3": 4,
"KEY_4": 5,
"KEY_5": 6,
"KEY_6": 7,
"KEY_7": 8,
"KEY_8": 9,
"KEY_9": 10,
"KEY_0": 11,
"KEY_MINUS": 12,
"KEY_EQUAL": 13,
"KEY_BACKSPACE": 14,
"KEY_TAB": 15,
"KEY_Q": 16,
"KEY_W": 17,
"KEY_E": 18,
"KEY_R": 19,
"KEY_T": 20,
"KEY_Y": 21,
"KEY_U... | gpl-2.0 | -2,037,753,583,330,658,000 | 16.544872 | 26 | 0.601388 | false |
dalegregory/odoo | addons/account/test/test_parent_structure.py | 432 | 2108 | # -*- 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... | agpl-3.0 | -7,428,121,100,747,858,000 | 40.333333 | 126 | 0.607685 | false |
yzl0083/orange | Orange/OrangeWidgets/OWTreeViewer2D.py | 6 | 26897 | import orange, orngTree, OWGUI, OWColorPalette
from OWWidget import *
import Orange
from PyQt4.QtCore import *
from PyQt4.QtGui import *
DefDroppletRadiust=7
DefNodeWidth=30
DefNodeHeight=20
DefDroppletBrush=QBrush(Qt.darkGray)
class graph_node(object):
def __init__(self, *args, **kwargs):
self.edges = ... | gpl-3.0 | -7,728,952,260,144,094,000 | 36.990113 | 169 | 0.59858 | false |
klahnakoski/TestLog-ETL | vendor/jx_elasticsearch/es52/expressions/basic_starts_with_op.py | 3 | 1322 | # encoding: utf-8
#
#
# 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 http:# mozilla.org/MPL/2.0/.
#
# Contact: Kyle Lahnakoski (kyle@lahnakoski.com)
#
from __future__ import absolute_import, divisi... | mpl-2.0 | -1,199,897,164,958,407,200 | 35.722222 | 89 | 0.709531 | false |
yongshengwang/builthue | desktop/core/ext-py/Django-1.4.5/tests/modeltests/custom_columns/tests.py | 40 | 2265 | from __future__ import absolute_import
from django.core.exceptions import FieldError
from django.test import TestCase
from .models import Author, Article
class CustomColumnsTests(TestCase):
def test_db_column(self):
a1 = Author.objects.create(first_name="John", last_name="Smith")
a2 = Author.obj... | apache-2.0 | -5,487,491,183,735,007,000 | 30.027397 | 86 | 0.563797 | false |
0hoo/django-ecogwiki | wiki/markdownext/md_url.py | 5 | 1306 | # -*- coding: utf-8 -*-
from markdown.extensions import Extension
from markdown.inlinepatterns import Pattern
from markdown.util import etree
url_re = r'(' \
r'(?P<plainurl>((?P<itemprop>[^\s\:]+)\:\:)?(?P<url>\w+://' \
r'[a-zA-Z0-9\~\!\@\#\$\%\^\&\*\-\_\=\+\[\]\\\:\;\"\'\,\.\'' \
r'\?/]' \... | gpl-3.0 | -8,167,990,703,540,873,000 | 29.372093 | 72 | 0.437979 | false |
vlimant/IntelROCCS | CUADRnT/src/python/cuadrnt/data_management/services/mit_db.py | 4 | 2035 | #!/usr/bin/env python2.7
"""
File : mit_db.py
Author : Bjorn Barrefors <bjorn dot peter dot barrefors AT cern dot ch>
Description: MIT DB service access module
"""
# system modules
import logging
import MySQLdb
# package modules
from cuadrnt.data_management.services.generic import GenericService
class MITD... | mit | -4,833,121,101,521,586,000 | 32.916667 | 108 | 0.57199 | false |
pshen/ansible | lib/ansible/modules/cloud/digital_ocean/digital_ocean_sshkey.py | 37 | 5059 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# 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.
#... | gpl-3.0 | 7,495,011,826,455,138,000 | 26.198925 | 108 | 0.617316 | false |
2uller/LotF | App/Lib/site-packages/numpy/polynomial/hermite.py | 4 | 54763 | """
Objects for dealing with Hermite series.
This module provides a number of objects (mostly functions) useful for
dealing with Hermite series, including a `Hermite` class that
encapsulates the usual arithmetic operations. (General information
on how this module represents and works with such polynomials is in the
d... | gpl-2.0 | -2,533,831,864,365,212,700 | 30.293143 | 79 | 0.594215 | false |
piexona/pyside-examples | pyside_225_mdiEditor.py | 1 | 14077 | # coding: utf-8
# author: wie@ppi.co.jp
from PySide import QtGui, QtCore
import mdiEditor_rc
# import subprocess
# cmd = 'C:/Python27/Lib/site-packages/PySide/pyside-rcc.exe -o mdiEditor_rc.py images/mdiEditor.qrc'
# subprocess.Popen(cmd, stdout=subprocess.PIPE)
class MainWindow(QtGui.QMainWindow):
def __init__(... | apache-2.0 | 8,366,572,212,408,862,000 | 36.699164 | 101 | 0.654326 | false |
tensorflow/tensorflow | tensorflow/python/ops/check_ops.py | 6 | 88439 | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | -5,361,131,478,294,614,000 | 35.275226 | 120 | 0.658861 | false |
tsifrer/python-twitch-client | docs/conf.py | 1 | 5381 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
#
# python-twitch-client documentation build configuration file, created by
# sphinx-quickstart on Wed Feb 15 20:51:23 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values... | mit | 7,633,331,395,582,085,000 | 29.061453 | 98 | 0.663631 | false |
flavour/iscram | models/000_1st_run.py | 3 | 4195 | # -*- coding: utf-8 -*-
"""
1st RUN:
- Run update check if needed.
- Import the S3 Framework Extensions
- If needed, copy deployment specific templates to the live installation.
Developers: note that the templates are version-controlled, while their
site-specific copies are not ... | mit | -219,553,743,999,512,300 | 38.205607 | 92 | 0.634565 | false |
facelesspanda/inkpy | inkpy/_runtime/value.py | 1 | 5794 | from enum import IntEnum
from .path import Path
from .inklist import InkList
from .object import Object
class ValueType(IntEnum):
INT = 0
FLOAT = 1
LIST = 2
STRING = 3
DIVERT_TARGET = 4
VAR_POINTER = 5
class Value(Object):
def __init__(self, value, *, vtype):
super().__init__()
... | mit | -6,862,527,150,966,970,000 | 25.700461 | 78 | 0.573697 | false |
taniwha-qf/Extraplanetary-Launchpads | tools/cvtquickhull.py | 2 | 2596 | from mu import Mu, MuObject, MuTransform, MuMesh, MuTagLayer
from multiprocessing import Pool
def read_vertices(input):
count = input.read_int()
verts = [None] * count
for i in range(count):
verts[i] = input.read_vector()
return verts
class Face:
pass
def read_face(input):
f = Face()
... | gpl-3.0 | 2,191,924,902,697,566,700 | 24.45098 | 76 | 0.609784 | false |
HTCPCP/TPhiBot | functs/magic.py | 1 | 3364 | import mtgsdk as mtg
import traceback
import phibot
def magic_card_by_name(name, chat_id):
answer = ''
cards = mtg.Card.where(name=name).all()
# noinspection PyBroadException
try:
for card in cards:
if card.name == name:
res = ''
res += card.name + '... | gpl-3.0 | 6,634,838,570,362,142,000 | 35.172043 | 68 | 0.415577 | false |
rbaindourov/v8-inspector | Source/chrome/tools/gyp/test/mac/gyptest-identical-name.py | 94 | 1547 | #!/usr/bin/env python
# Copyright (c) 2014 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.
"""
Verifies libraries (in identical-names) are properly handeled by xcode.
The names for all libraries participating in this build are:
li... | bsd-3-clause | -8,290,250,108,955,611,000 | 33.377778 | 79 | 0.767938 | false |
IllusionRom-deprecated/android_platform_external_chromium_org | build/android/update_verification.py | 30 | 5204 | #!/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.
"""Runs semi-automated update testing on a non-rooted device."""
import logging
import optparse
import os
import shutil
import sys
im... | bsd-3-clause | 8,977,354,559,844,321,000 | 37.548148 | 80 | 0.651614 | false |
krafczyk/spack | var/spack/repos/builtin/packages/rna-seqc/package.py | 2 | 2830 | ##############################################################################
# Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | lgpl-2.1 | 7,978,320,259,147,828,000 | 44.645161 | 91 | 0.659717 | false |
neerajvashistha/pa-dude | lib/python2.7/site-packages/tweepy/models.py | 56 | 14021 | # Tweepy
# Copyright 2009-2010 Joshua Roesslein
# See LICENSE for details.
from __future__ import absolute_import, print_function
from tweepy.utils import parse_datetime, parse_html_value, parse_a_href
class ResultSet(list):
"""A list like object that holds results from a Twitter API query."""
def __init__(... | mit | -1,350,852,984,161,015,800 | 27.440162 | 87 | 0.522145 | false |
Dekken/tick | tick/linear_model/tests/simu_linreg_test.py | 2 | 1475 | # License: BSD 3 clause
import unittest
import numpy as np
from tick.linear_model import SimuLinReg
class Test(unittest.TestCase):
def test_SimuLinReg(self):
"""...Test simulation of a Linear Regression
"""
n_samples = 10
n_features = 3
idx = np.arange(n_features)
... | bsd-3-clause | -3,314,707,728,617,460,700 | 31.777778 | 78 | 0.531525 | false |
bjodah/PyLaTeX | examples/basic.py | 1 | 1488 | #!/usr/bin/python
"""
This example shows basic document generation functionality.
.. :copyright: (c) 2014 by Jelte Fennema.
:license: MIT, see License for more details.
"""
# begin-doc-include
from pylatex import Document, Section, Subsection, Command
from pylatex.utils import italic, NoEscape
def fill_documen... | mit | -4,576,719,789,058,045,000 | 27.075472 | 65 | 0.66129 | false |
paulondc/gaffer | python/GafferUITest/CompoundPlugValueWidgetTest.py | 5 | 3637 | ##########################################################################
#
# Copyright (c) 2012, 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:
#
# * Red... | bsd-3-clause | -1,117,910,971,349,495,000 | 39.411111 | 111 | 0.673357 | false |
tadashi-aikawa/gemini | jumeaux/handlers/server.py | 1 | 1802 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
import socketserver
import urllib
from http.server import SimpleHTTPRequestHandler
from typing import Optional
from jumeaux.logger import Logger
logger: Logger = Logger(__name__)
class MyServerHandler(SimpleHTTPRequestHandler):
def do_GET(self):
... | mit | -8,535,632,235,443,200,000 | 30.068966 | 88 | 0.584351 | false |
dulems/hue | desktop/core/ext-py/Django-1.6.10/tests/forms_tests/tests/test_regressions.py | 49 | 7966 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import warnings
from django.forms import *
from django.test import TestCase
from django.utils.translation import ugettext_lazy, override
from forms_tests.models import Cheese
from django.test.utils import TransRealMixin
class FormsRegressionsTestCase(... | apache-2.0 | 7,066,147,778,184,350,000 | 51.03268 | 660 | 0.614496 | false |
ntiufalara/openerp7 | openerp/addons/point_of_sale/report/pos_details.py | 30 | 9180 | # -*- 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... | mit | -1,898,415,858,658,458,400 | 45.836735 | 256 | 0.547712 | false |
tdf/tdc | counter/admin.py | 1 | 1274 | from django.contrib import admin
# Register your models here.
from counter.models import Filename, Product, Country, OS, Arch, Version, Language, LogEntry, Query
class ProductAdmin(admin.ModelAdmin):
pass
class CountryAdmin(admin.ModelAdmin):
pass
class OSAdmin(admin.ModelAdmin):
pass
class ArchAdm... | gpl-3.0 | -3,591,425,128,880,021,500 | 22.592593 | 99 | 0.736264 | false |
elingg/tensorflow | tensorflow/contrib/tensor_forest/hybrid/python/ops/training_ops.py | 42 | 11156 | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | -3,167,843,199,606,221,300 | 37.075085 | 80 | 0.68824 | false |
sid-kap/pants | tests/python/pants_test/jvm/jvm_tool_task_test_base.py | 6 | 4986 | # coding=utf-8
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)
import os
import shu... | apache-2.0 | -4,226,789,811,032,984,600 | 44.327273 | 99 | 0.688327 | false |
halfakop/Teacup_Firmware | configtool/calcbelt.py | 2 | 8202 |
import wx
from configtool.data import (BSIZESMALL, reFloat, reInteger, offsetChLabel,
offsetTcLabel)
class CalcBelt(wx.Dialog):
def __init__(self, parent, font, cbUse):
wx.Dialog.__init__(self, parent, wx.ID_ANY,
"Steps calculator for belt driven axes",
... | gpl-2.0 | -537,832,550,368,787,700 | 26.709459 | 79 | 0.58632 | false |
greyhwndz/rethinkdb | test/rql_test/connections/http_support/httpbin/helpers.py | 49 | 9578 | # -*- coding: utf-8 -*-
"""
httpbin.helpers
~~~~~~~~~~~~~~~
This module provides helper functions for httpbin.
"""
import json
import base64
from hashlib import md5
from werkzeug.http import parse_authorization_header
from flask import request, make_response
try:
from urlparse import urlparse, urlunparse
excep... | agpl-3.0 | -6,841,198,386,393,028,000 | 26.924198 | 96 | 0.553873 | false |
Azure/azure-sdk-for-python | sdk/security/azure-mgmt-security/azure/mgmt/security/aio/operations/_advanced_threat_protection_operations.py | 1 | 7647 | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | mit | -8,120,745,414,030,937,000 | 47.09434 | 138 | 0.670982 | false |
ageron/tensorflow | tensorflow/contrib/learn/python/learn/learn_io/dask_io.py | 42 | 4229 | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | -4,773,275,874,793,939,000 | 33.382114 | 93 | 0.713644 | false |
valkjsaaa/sl4a | python-build/python-libs/gdata/tests/gdata_tests/books_test.py | 87 | 2277 | #!/usr/bin/python
__author__ = "James Sams <sams.james@gmail.com>"
import unittest
from gdata import test_data
import gdata.books
import atom
class BookEntryTest(unittest.TestCase):
def testBookEntryFromString(self):
entry = gdata.books.Book.FromString(test_data.BOOK_ENTRY)
self.assert_(isins... | apache-2.0 | -6,201,854,727,758,677,000 | 43.647059 | 154 | 0.658762 | false |
amiramix/serna-free | 3rd/pyqt/4.5.4/_patches/darwin/patch-configure.py | 10 | 1464 | *** xx/configure.py.orig 2005-05-11 20:01:53.719957680 +0400
--- xx/configure.py 2005-05-11 20:05:29.699123856 +0400
@@ -721,7 +721,7 @@
from distutils.sysconfig import get_confi... | gpl-3.0 | 3,515,104,528,906,457,000 | 42.058824 | 120 | 0.471995 | false |
temasek/android_external_chromium_org | tools/resources/find_unused_resources.py | 24 | 6302 | #!/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 script searches for unused art assets listed in a .grd file.
It uses git grep to look for references to the IDR resource id or... | bsd-3-clause | 265,956,785,785,201,150 | 31.484536 | 80 | 0.684069 | false |
coldmind/django | django/core/management/commands/runserver.py | 140 | 7204 | from __future__ import unicode_literals
import errno
import os
import re
import socket
import sys
from datetime import datetime
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.core.management.base import BaseCommand, CommandError
from django.core.servers.basehttp i... | bsd-3-clause | -1,938,786,226,175,155,200 | 39.700565 | 111 | 0.593004 | false |
sovietspy2/uzletiProject | python/Lib/poplib.py | 63 | 12805 | """A POP3 client class.
Based on the J. Myers POP3 draft, Jan. 96
"""
# Author: David Ascher <david_ascher@brown.edu>
# [heavily stealing from nntplib.py]
# Updated: Piers Lauder <piers@cs.su.oz.au> [Jul '97]
# String method conversion and test jig improvements by ESR, February 2001.
# Added the POP3... | gpl-3.0 | -3,784,399,606,746,878,500 | 28.707434 | 107 | 0.522921 | false |
0sc0d3r/enigma2 | lib/python/Tools/Trashcan.py | 34 | 6801 | import Components.Task
from Components.config import config
from Components import Harddisk
from Components.GUIComponent import GUIComponent
from Components.VariableText import VariableText
import time
import os
import enigma
from enigma import pNavigation
def getTrashFolder(path=None):
# Returns trash folder without... | gpl-2.0 | -6,731,525,049,449,556,000 | 29.226667 | 138 | 0.682547 | false |
spcui/tp-qemu | qemu/tests/balloon_check.py | 3 | 12940 | import re
import logging
import random
from autotest.client.shared import error
from virttest import qemu_monitor, utils_test, utils_misc
class BallooningTest(object):
"""
Provide basic functions for memory ballooning test cases
"""
def __init__(self, test, params, env):
self.test = test
... | gpl-2.0 | -5,532,174,453,344,506,000 | 35.761364 | 89 | 0.558192 | 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.