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 |
|---|---|---|---|---|---|---|---|---|---|---|
laurent-george/weboob | modules/liberation/pages/article.py | 10 | 2024 | # -*- coding: utf-8 -*-
# Copyright(C) 2013 Florent Fourcot
#
# This file is part of weboob.
#
# weboob is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your op... | agpl-3.0 | -9,220,853,233,854,193,000 | 35.125 | 79 | 0.657439 | false |
artlucas/django-notification-twilio | django-notification-twilio.py | 1 | 2277 | # -*- coding: utf-8 -*-
from django.conf import settings
from django.utils.translation import ugettext
from notification import backends
MOBILE_NUMBER_SETTING_KEY = "NOTIFICATION_TWILIO_USER_MOBILE_NUMBER"
TWILIO_ACCOUNT_SETTING_KEY = "TWILIO_ACCOUNT_SID"
TWILIO_AUTH_SETTING_KEY = "TWILIO_AUTH_TOKEN"
TWILIO_FROM_SETT... | bsd-3-clause | -4,111,923,463,073,159,700 | 33 | 115 | 0.646025 | false |
RMKD/networkx | doc/source/conf.py | 22 | 7150 | # -*- coding: utf-8 -*-
#
# Sphinx documentation build configuration file, created by
# sphinx-quickstart.py on Sat Mar 8 21:47:50 2008.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# The contents of this file are pickled, so don't put values in the namespace
# that aren't pickl... | bsd-3-clause | 1,416,516,989,853,977,300 | 30.086957 | 88 | 0.685175 | false |
pypa/pip | tests/unit/test_index.py | 4 | 28915 | import logging
import pytest
from pip._vendor.packaging.specifiers import SpecifierSet
from pip._internal.index.collector import LinkCollector
from pip._internal.index.package_finder import (
CandidateEvaluator,
CandidatePreferences,
FormatControl,
LinkEvaluator,
PackageFinder,
_check_link_req... | mit | -4,902,239,398,168,103,000 | 34.830235 | 83 | 0.596196 | false |
YangSongzhou/django | tests/utils_tests/test_jslex.py | 153 | 9837 | # -*- coding: utf-8 -*-
"""Tests for jslex."""
# originally from https://bitbucket.org/ned/jslex
from __future__ import unicode_literals
from django.test import SimpleTestCase
from django.utils.jslex import JsLexer, prepare_js_for_gettext
class JsTokensTest(SimpleTestCase):
LEX_CASES = [
# ids
("... | bsd-3-clause | -1,001,385,026,224,551,200 | 42.030702 | 168 | 0.366222 | false |
ovnicraft/edx-platform | common/lib/chem/chem/chemcalc.py | 162 | 14775 | from __future__ import division
from fractions import Fraction
from pyparsing import (Literal, StringEnd, OneOrMore, ParseException)
import nltk
from nltk.tree import Tree
ARROWS = ('<->', '->')
## Defines a simple pyparsing tokenizer for chemical equations
elements = ['Ac', 'Ag', 'Al', 'Am', 'Ar', 'As', 'At', 'Au',... | agpl-3.0 | 3,300,517,035,274,821,600 | 33.683099 | 112 | 0.57313 | false |
tempbottle/pulsar | pulsar/async/futures.py | 5 | 11508 | from collections import Mapping
from inspect import isgeneratorfunction
from functools import wraps, partial
from asyncio import Future, CancelledError, TimeoutError, async, sleep
from .consts import MAX_ASYNC_WHILE
from .access import get_event_loop, LOGGER, isfuture, is_async
__all__ = ['maybe_async',
'... | bsd-3-clause | -5,806,363,170,113,933,000 | 29.444444 | 79 | 0.565954 | false |
fishcorn/pylearn2 | pylearn2/sandbox/lisa_rl/bandit/average_agent.py | 44 | 2251 | __author__ = "Ian Goodfellow"
import numpy as np
from theano import function
from theano import tensor as T
from pylearn2.compat import OrderedDict
from pylearn2.sandbox.lisa_rl.bandit.agent import Agent
from pylearn2.utils import sharedX
class AverageAgent(Agent):
"""
A simple n-armed bandit playing agent... | bsd-3-clause | 7,968,123,829,442,826,000 | 31.157143 | 95 | 0.645491 | false |
Erethon/synnefo | snf-cyclades-app/synnefo/logic/tests/rapi_pool_tests.py | 9 | 2959 | # Copyright (C) 2010-2014 GRNET S.A.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed i... | gpl-3.0 | -4,580,816,711,044,730,000 | 44.523077 | 79 | 0.604934 | false |
ojengwa/oh-mainline | vendor/packages/python-openid/openid/yadis/xri.py | 167 | 4383 | # -*- test-case-name: openid.test.test_xri -*-
"""Utility functions for handling XRIs.
@see: XRI Syntax v2.0 at the U{OASIS XRI Technical Committee<http://www.oasis-open.org/committees/tc_home.php?wg_abbrev=xri>}
"""
import re
XRI_AUTHORITIES = ['!', '=', '@', '+', '$', '(']
try:
unichr(0x10000)
except ValueErr... | agpl-3.0 | -3,939,578,186,903,154,700 | 25.089286 | 125 | 0.583619 | false |
lintzc/gpdb | src/test/tinc/ext/suds/metrics.py | 211 | 2004 | # This program is free software; you can redistribute it and/or modify
# it under the terms of the (LGPL) GNU Lesser General Public License as
# published by the Free Software Foundation; either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will ... | apache-2.0 | -3,901,395,015,227,051,000 | 31.322581 | 76 | 0.632236 | false |
jumpjam/django-storages | storages/tests/s3boto.py | 13 | 11381 | import mock
import datetime
import urlparse
from django.test import TestCase
from django.core.files.base import ContentFile
from boto.s3.key import Key
from storages.backends import s3boto
__all__ = (
'ParseTsExtendedCase',
'SafeJoinTest',
'S3BotoStorageTests',
#'S3BotoStorageFileTest... | bsd-3-clause | -1,695,502,128,974,085,400 | 34.951299 | 86 | 0.577805 | false |
OpenUpgrade-dev/OpenUpgrade | addons/hr_payroll/wizard/hr_payroll_contribution_register_report.py | 337 | 2074 | # -*- 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 | 4,900,459,008,655,918,000 | 39.666667 | 112 | 0.61379 | false |
daniell/django-notification | notification/lockfile.py | 39 | 15067 |
"""
lockfile.py - Platform-independent advisory file locks.
Requires Python 2.5 unless you apply 2.4.diff
Locking is done on a per-thread basis instead of a per-process basis.
Usage:
>>> lock = FileLock('somefile')
>>> try:
... lock.acquire()
... except AlreadyLocked:
... print 'somefile', 'is locked alread... | mit | -3,410,351,336,908,237,300 | 29.134 | 79 | 0.513639 | false |
bob-the-hamster/commandergenius | project/jni/python/src/Lib/test/test_os.py | 48 | 23971 | # As a test suite for the os module, this is woefully inadequate, but this
# does add tests for a few functions which have been determined to be more
# portable than they had been thought to be.
import os
import unittest
import warnings
import sys
from test import test_support
warnings.filterwarnings("ignore", "tempn... | lgpl-2.1 | -5,441,377,710,867,929,000 | 35.26475 | 99 | 0.553836 | false |
crobinso/virt-manager | virtinst/cloner.py | 2 | 19014 | #
# Copyright 2013, 2015 Red Hat, Inc.
# Copyright(c) FUJITSU Limited 2007.
#
# Cloning a virtual machine module.
#
# This work is licensed under the GNU GPLv2 or later.
# See the COPYING file in the top-level directory.
import re
import os
import libvirt
from . import generatename
from . import progress
from . impo... | gpl-2.0 | -4,443,841,484,581,552,600 | 32.067826 | 79 | 0.582518 | false |
aronnem/IMProToo | examples/batch_makeQuicklooks.py | 1 | 6396 | # -*- coding: utf-8 -*-
'''
Copyright (C) 2011,2012 Maximilian Maahn, IGMK (mmaahn@meteo.uni-koeln.de)
make quicklooks from IMProToo NetCDF files.
use: python batch_makeQuicklooks.py pathIn pathOut site
requires:
numpy, matplotlib, netcdf4-python or python-netcdf
'''
import sys
import numpy as np
import glob
i... | gpl-3.0 | -1,491,984,264,396,512,300 | 27.681614 | 173 | 0.684021 | false |
sherazkasi/SabreSoftware | Lib/site-packages/numpy/core/code_generators/numpy_api.py | 54 | 13599 | """Here we define the exported functions, types, etc... which need to be
exported through a global C pointer.
Each dictionary contains name -> index pair.
Whenever you change one index, you break the ABI (and the ABI version number
should be incremented). Whenever you add an item to one of the dict, the API
needs to ... | gpl-3.0 | -8,742,358,702,004,748,000 | 42.867742 | 78 | 0.4454 | false |
woggle/mesos-old | third_party/boto-2.0b2/boto/cloudfront/distribution.py | 4 | 19098 | # Copyright (c) 2006-2009 Mitch Garnaat http://garnaat.org/
#
# 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, modi... | apache-2.0 | -6,989,903,069,667,368,000 | 38.296296 | 102 | 0.56985 | false |
xkollar/spacewalk | backend/server/repomd/view.py | 10 | 14048 | #
# Copyright (c) 2008--2015 Red Hat, Inc.
#
# This software is licensed to you under the GNU General Public License,
# version 2 (GPLv2). There is NO WARRANTY for this software, express or
# implied, including the implied warranties of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. You should have received a c... | gpl-2.0 | 8,949,638,986,365,298,000 | 37.173913 | 92 | 0.526125 | false |
hopeall/odoo | addons/l10n_et/__openerp__.py | 387 | 1968 | #-*- coding:utf-8 -*-
##############################################################################
#
# Copyright (C) 2012 Michael Telahun Makonnen <mmakonnen@gmail.com>.
# All Rights Reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero G... | agpl-3.0 | 2,076,534,246,126,757,600 | 32.355932 | 80 | 0.581809 | false |
jakirkham/lazyflow | lazyflow/utility/io/tiledVolume.py | 2 | 18511 | import os
import numpy
import vigra
from functools import partial
from StringIO import StringIO
## Instead of importing requests and PIL here,
## use late imports (below) so people who don't use TiledVolume don't have to have them
# New dependency: requests is way more convenient than urllib or httplib
#import reque... | lgpl-3.0 | 3,118,771,678,325,665,000 | 44.370098 | 149 | 0.591864 | false |
zsiciarz/django | tests/utils_tests/test_numberformat.py | 25 | 3750 | from decimal import Decimal
from sys import float_info
from unittest import TestCase
from django.utils.numberformat import format as nformat
class TestNumberFormat(TestCase):
def test_format_number(self):
self.assertEqual(nformat(1234, '.'), '1234')
self.assertEqual(nformat(1234.2, '.'), '1234.2... | bsd-3-clause | -985,726,579,251,604,200 | 51.732394 | 116 | 0.629808 | false |
ThiagoGarciaAlves/intellij-community | python/lib/Lib/site-packages/django/conf/global_settings.py | 73 | 20942 | # Default Django settings. Override these with settings in the module
# pointed-to by the DJANGO_SETTINGS_MODULE environment variable.
# This is defined here as a do-nothing function because we can't import
# django.utils.translation -- that module depends on the settings.
gettext_noop = lambda s: s
#################... | apache-2.0 | -2,643,490,165,565,591,000 | 34.798291 | 174 | 0.681072 | false |
openmv/openmv | scripts/examples/OpenMV/09-Feature-Detection/keypoints_save.py | 4 | 1209 | # Keypoints descriptor example.
# This example shows how to save a keypoints descriptor to file. Show the camera an object
# and then run the script. The script will extract and save a keypoints descriptor and the image.
# You can use the keypoints_editor.py util to remove unwanted keypoints.
#
# NOTE: Please reset the... | mit | 7,593,426,285,418,022,000 | 31.675676 | 97 | 0.756824 | false |
111pontes/ydk-py | cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_infra_correlator_oper.py | 1 | 63673 | """ Cisco_IOS_XR_infra_correlator_oper
This module contains a collection of YANG definitions
for Cisco IOS\-XR infra\-correlator package operational data.
This module contains definitions
for the following management objects\:
suppression\: Suppression operational data
correlator\: correlator
Copyright (c) 2013... | apache-2.0 | 3,432,330,355,515,979,000 | 31.125631 | 261 | 0.499678 | false |
JimCircadian/ansible | lib/ansible/modules/storage/netapp/na_ontap_interface.py | 8 | 13359 | #!/usr/bin/python
""" this is interface module
(c) 2018, NetApp, Inc
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
"""
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {
'metadata_version': '1.1',
'status... | gpl-3.0 | 670,713,715,095,936,300 | 35.700549 | 131 | 0.600644 | false |
benthomasson/ansible | lib/ansible/modules/network/f5/bigip_gtm_facts.py | 78 | 16084 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2016 F5 Networks 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
# ... | gpl-3.0 | -8,290,517,836,034,815,000 | 31.427419 | 75 | 0.570318 | false |
nguyentu1602/numpy | numpy/distutils/command/install.py | 240 | 3127 | from __future__ import division, absolute_import, print_function
import sys
if 'setuptools' in sys.modules:
import setuptools.command.install as old_install_mod
have_setuptools = True
else:
import distutils.command.install as old_install_mod
have_setuptools = False
from distutils.file_util import write... | bsd-3-clause | -2,799,695,911,052,604,000 | 37.134146 | 80 | 0.582987 | false |
FreicoinAlliance/p2pool | SOAPpy/Parser.py | 158 | 36216 | # SOAPpy modules
from Config import Config
from Types import *
from NS import NS
from Utilities import *
import string
import fpconst
import xml.sax
from wstools.XMLname import fromXMLname
try: from M2Crypto import SSL
except: pass
ident = '$Id: Parser.py 1497 2010-03-08 06:06:52Z pooryorick $'
from ve... | gpl-3.0 | -8,643,299,288,220,469,000 | 32.104205 | 91 | 0.406008 | false |
magic0704/neutron | neutron/agent/linux/dhcp.py | 2 | 38663 | # Copyright 2012 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 | 8,415,381,133,586,723,000 | 38.291667 | 79 | 0.548069 | false |
repotvsupertuga/tvsupertuga.repository | plugin.video.youtube/resources/lib/kodion/impl/abstract_context_ui.py | 31 | 1364 | __author__ = 'bromix'
class AbstractContextUI(object):
def __init__(self):
pass
def create_progress_dialog(self, heading, text=None, background=False):
raise NotImplementedError()
def set_view_mode(self, view_mode):
raise NotImplementedError()
def get_view_mode(self):
... | gpl-2.0 | -8,885,582,063,992,932,000 | 25.230769 | 90 | 0.640762 | false |
Parsely/Petrel | petrel/petrel/emitter.py | 3 | 1030 | import os
import sys
import storm
class EmitterBase(object):
DEFAULT_PYTHON = 'python%d.%d' % (sys.version_info.major, sys.version_info.minor)
def __init__(self, script):
# We assume 'script' is in the current directory. We simply get the
# base part and turn it into a .py name for inclusion ... | bsd-3-clause | 2,005,752,655,843,021,600 | 26.837838 | 85 | 0.630097 | false |
barentsen/dave | pipeline/task.py | 1 | 6229 | # -*- coding: utf-8 -*-
from multiprocessing import pool
import multiprocessing
import contextlib
import clipboard
import traceback
import parmap
import signal
import time
import pdb
import sys
__version__ = "$Id: task.py 2130 2015-09-11 16:56:55Z fmullall $"
__URL__ = "$URL: svn+ssh://flux/home/fmullall/svn/kepler... | mit | 9,029,021,179,769,744,000 | 24.42449 | 95 | 0.62209 | false |
krishna11888/ai | third_party/pattern/test/test_metrics.py | 21 | 17844 | import os, sys; sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
import unittest
import time
import math
from pattern import metrics
try:
PATH = os.path.dirname(os.path.realpath(__file__))
except:
PATH = ""
#------------------------------------------------------------------------------------... | gpl-2.0 | 6,390,626,880,493,185,000 | 39.011211 | 111 | 0.553631 | false |
kressi/erpnext | erpnext/accounts/report/payment_period_based_on_invoice_date/payment_period_based_on_invoice_date.py | 39 | 3748 | # 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 _
from erpnext.accounts.report.accounts_receivable.accounts_receivable import get_ageing_data
from frappe.utils import ... | gpl-3.0 | -376,975,687,958,157,500 | 33.703704 | 124 | 0.672892 | false |
Hndrx616/Group-Clustering | python_Lib/bs4/bs4/element.py | 4 | 49509 | import collections
import re
import sys
import warnings
from bs4.dammit import EntitySubstitution
DEFAULT_OUTPUT_ENCODING = "utf-8"
PY3K = (sys.version_info[0] > 2)
whitespace_re = re.compile("\s+")
def _alias(attr):
"""Alias one attribute name to another for backward compatibility"""
@property
def alias... | gpl-3.0 | 447,622,749,552,745,400 | 35.700519 | 91 | 0.565614 | false |
paulbnjl/PySerSpec | PySerSpec/ASC_nozzle.py | 1 | 1507 |
#-*- coding: UTF-8 -*
############################################################################
############################################################################
#### Person responsible for this pure evil spaghetti code : ####
#### Paul Bonijol -> paul [.] bnjl ['AT'] gmail [.] com ####
#### Works... | gpl-3.0 | 4,985,815,691,384,059,000 | 44.666667 | 85 | 0.485733 | false |
rishilification/phantomjs | src/qt/qtwebkit/Tools/Scripts/webkitpy/tool/commands/applywatchlistlocal_unittest.py | 128 | 2653 | # Copyright (c) 2011 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the ... | bsd-3-clause | -5,489,891,876,249,760,000 | 47.236364 | 152 | 0.761402 | false |
miing/mci_migo | identityprovider/migrations/0007_auto__add_field_invalidatedemailaddress_date_invalidated__add_field_in.py | 1 | 19118 | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
from identityprovider.models import InvalidatedEmailAddress
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'InvalidatedEmailAddress.date_invalidated... | agpl-3.0 | -6,829,572,852,611,019,000 | 84.352679 | 192 | 0.571242 | false |
jamespcole/home-assistant | homeassistant/components/websocket_api/http.py | 1 | 6675 | """View to accept incoming websocket connection."""
import asyncio
from contextlib import suppress
from functools import partial
import json
import logging
from aiohttp import web, WSMsgType
import async_timeout
from homeassistant.const import EVENT_HOMEASSISTANT_STOP
from homeassistant.core import callback
from home... | apache-2.0 | -497,944,499,410,136,900 | 32.044554 | 79 | 0.573783 | false |
bgris/ODL_bgris | lib/python3.5/site-packages/pygments/styles/fruity.py | 31 | 1298 | # -*- coding: utf-8 -*-
"""
pygments.styles.fruity
~~~~~~~~~~~~~~~~~~~~~~
pygments version of my "fruity" vim theme.
:copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
from pygments.style import Style
from pygments.token import Token, Co... | gpl-3.0 | -2,580,579,606,357,479,400 | 29.904762 | 70 | 0.531587 | false |
dsweet04/rekall | rekall-core/rekall/plugins/overlays/darwin/darwin.py | 1 | 54906 | # Rekall Memory Forensics
# Copyright 2013 Google Inc. All Rights Reserved.
#
# 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 ver... | gpl-2.0 | 5,911,395,921,464,551,000 | 33.597353 | 114 | 0.560686 | false |
hongliang5623/sentry | src/sentry/api/endpoints/organization_access_request_details.py | 22 | 2318 | from __future__ import absolute_import
from rest_framework import serializers
from rest_framework.response import Response
from sentry.api.bases.organization import OrganizationEndpoint
from sentry.api.exceptions import ResourceDoesNotExist
from sentry.models import (
AuditLogEntryEvent, OrganizationAccessRequest... | bsd-3-clause | 7,864,220,783,862,344,000 | 32.114286 | 77 | 0.611303 | false |
mzweilin/pdfrw | pdfrw/objects/pdfstring.py | 1 | 2811 | # A part of pdfrw (pdfrw.googlecode.com)
# Copyright (C) 2006-2012 Patrick Maupin, Austin, Texas
# MIT license -- See LICENSE.txt for details
import re
class PdfString(str):
''' A PdfString is an encoded string. It has a decode
method to get the actual string data out, and there
is an encode cla... | mit | 2,113,270,419,209,071,000 | 35.038462 | 68 | 0.49413 | false |
jacquesd/indico | doc/dev/source/conf.py | 2 | 6719 | # -*- coding: utf-8 -*-
#
# cds-indico documentation build configuration file, created by
# sphinx-quickstart on Sun Nov 29 13:19:24 2009.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# ... | gpl-3.0 | 5,147,886,822,047,414,000 | 31.936275 | 110 | 0.701444 | false |
henri-hulski/cartridge_braintree | cartridge_braintree/countries.py | 2 | 7200 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.utils.translation import ugettext_lazy as _
# This module defines the dictionary of countries (ISO-3166) supported by
# Braintree, with Alpha2 codes as keys and translatable country names as values
# Data originally copied from
# https://de... | bsd-2-clause | -7,628,494,803,175,097,000 | 26.154717 | 79 | 0.445942 | false |
ryano144/intellij-community | plugins/hg4idea/testData/bin/hgext/convert/darcs.py | 94 | 7726 | # darcs.py - darcs support for the convert extension
#
# Copyright 2007-2009 Matt Mackall <mpm@selenic.com> and others
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
from common import NoRepo, checktool, commandline, commit, con... | apache-2.0 | 356,417,864,847,976,060 | 37.437811 | 80 | 0.540124 | false |
docker-infra/ansible-modules-core | network/basics/slurp.py | 134 | 2115 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2012, 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... | gpl-3.0 | -8,471,014,280,968,697,000 | 26.467532 | 77 | 0.673286 | false |
gaddman/ansible | lib/ansible/modules/cloud/misc/virt_pool.py | 43 | 21722 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2015, Maciej Delmanowski <drybjed@gmail.com>
# 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... | gpl-3.0 | 3,415,566,504,399,181,300 | 29.508427 | 106 | 0.560354 | false |
sradl1981/LIGGGHTS-PUBLIC-ParScale | tools/moltemplate/common/amber/amberparm_dihedral_to_lt.py | 8 | 5261 | #!/usr/bin/env python
# SOME UGLY CODE HERE
import sys
lines_gaff = sys.stdin.readlines()
dihedral_style_name = 'fourier'
in_dihedral_coeffs = []
for i in range(0, len(lines_gaff)):
line = lines_gaff[i]
atypes = line[:11].split('-')
atype1 = atypes[0].strip()
atype2 = atypes[1].strip()
atype3 =... | gpl-2.0 | 7,311,931,961,130,466,000 | 32.509554 | 102 | 0.559399 | false |
SoftwareIntrospectionLab/MininGit | pycvsanaly2/AsyncQueue.py | 2 | 4434 | # Copyright (C) 2008 Libresoft
#
# 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 program is distributed in the ... | gpl-2.0 | 7,514,908,973,022,465,000 | 27.242038 | 76 | 0.545106 | false |
yuyu2172/chainercv | tests/links_tests/model_tests/test_pickable_sequential_chain.py | 3 | 8325 | import numpy as np
import unittest
import chainer
from chainer.backends.cuda import to_cpu
from chainer.function import Function
from chainer import testing
from chainer.testing import attr
from chainercv.links import PickableSequentialChain
from chainercv.utils.testing import ConstantStubLink
class DummyFunc(Funct... | mit | -5,513,523,430,645,061,000 | 30.653992 | 77 | 0.562162 | false |
blablack/beatslash-lv2 | waflib/extras/javatest.py | 53 | 4133 | #! /usr/bin/env python
# encoding: utf-8
# Federico Pellegrin, 2017 (fedepell)
"""
Provides Java Unit test support using :py:class:`waflib.Tools.waf_unit_test.utest`
task via the **javatest** feature.
This gives the possibility to run unit test and have them integrated into the
standard waf unit test environment. It ... | gpl-3.0 | -293,330,077,680,102,400 | 34.025424 | 103 | 0.711832 | false |
cpe/VAMDC-VALD | nodes/IDEADB/node/models.py | 3 | 12054 | """
This module defines the database schema of the node.
Each model class defines a table in the database. The fields define the columns of this table.
"""
# library import
from django.db.models import *
from django.core.exceptions import ValidationError
from vamdctap import bibtextools
import re
import datetime
... | gpl-3.0 | -5,652,234,672,071,430,000 | 43.644444 | 155 | 0.656048 | false |
SimonSapin/servo | tests/wpt/webgl/tests/closure-library/closure/bin/build/depswriter.py | 135 | 6286 | #!/usr/bin/env python
#
# Copyright 2009 The Closure Library 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
... | mpl-2.0 | 633,596,324,019,360,600 | 29.813725 | 79 | 0.64063 | false |
jabesq/home-assistant | homeassistant/components/netdata/sensor.py | 7 | 4799 | """Support gathering system information of hosts which are running netdata."""
from datetime import timedelta
import logging
import voluptuous as vol
from homeassistant.components.sensor import PLATFORM_SCHEMA
from homeassistant.const import (
CONF_HOST, CONF_ICON, CONF_NAME, CONF_PORT, CONF_RESOURCES)
from homea... | apache-2.0 | -1,567,772,385,485,539,600 | 30.366013 | 78 | 0.646385 | false |
skerit/romcollectionbrowser | resources/lib/dialogbase.py | 11 | 3363 | import xbmc, xbmcgui
import os
import util, config
from util import *
ACTION_CANCEL_DIALOG = (9,10,51,92,110)
CONTROL_BUTTON_EXIT = 5101
class DialogBaseEdit(xbmcgui.WindowXMLDialog):
def getControlById(self, controlId):
try:
control = self.getControl(controlId)
except:
return None... | gpl-2.0 | 2,859,903,565,951,512,600 | 22.035714 | 75 | 0.667559 | false |
phenoxim/nova | nova/tests/functional/api/openstack/placement/db/test_resource_class_cache.py | 1 | 6056 | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | apache-2.0 | -7,156,433,437,951,105,000 | 40.479452 | 79 | 0.647787 | false |
huanpc/IoT-1 | gui/controller/.venv/lib/python3.5/site-packages/django/contrib/gis/utils/wkt.py | 589 | 1923 | """
Utilities for manipulating Geometry WKT.
"""
from django.utils import six
def precision_wkt(geom, prec):
"""
Returns WKT text of the geometry according to the given precision (an
integer or a string). If the precision is an integer, then the decimal
places of coordinates WKT will be truncated t... | mit | -1,224,410,481,589,350,000 | 31.59322 | 88 | 0.593344 | false |
zerc/django | django/template/response.py | 84 | 5682 | from django.http import HttpResponse
from django.utils import six
from .loader import get_template, select_template
class ContentNotRenderedError(Exception):
pass
class SimpleTemplateResponse(HttpResponse):
rendering_attrs = ['template_name', 'context_data', '_post_render_callbacks']
def __init__(self... | bsd-3-clause | 5,651,845,776,252,918,000 | 37.391892 | 87 | 0.633228 | false |
xionzz/earthquake | venv/lib/python2.7/site-packages/numpy/core/numerictypes.py | 37 | 29192 | """
numerictypes: Define the numeric type objects
This module is designed so "from numerictypes import \\*" is safe.
Exported symbols include:
Dictionary with all registered number types (including aliases):
typeDict
Type objects (not all will be available, depends on platform):
see variable sctypes fo... | mit | 2,448,236,966,452,467,700 | 27.015355 | 88 | 0.563716 | false |
javiplx/cobbler-old_jobs | cobbler/yaml/stream.py | 12 | 5417 | """
pyyaml legacy
Copyright (c) 2001 Steve Howell and Friends; All Rights Reserved
(see open source license information in docs/ directory)
"""
import re
import string
def indentLevel(line):
n = 0
while n < len(line) and line[n] == ' ':
n = n + 1
return n
class LineNumberStream:
... | gpl-2.0 | 2,162,442,039,014,712,800 | 25.221106 | 80 | 0.554181 | false |
finoradin/automation-tools | transfers/examples/tms.py | 1 | 4164 | #!/usr/bin/env python
from __future__ import print_function
import json
import os
import sys
import urllib2
import ast
import csv
def main(transfer_path):
basename = os.path.basename(transfer_path)
try:
comp_num, comp_id, obj_id = basename.split('---')
except ValueError:
return 1
# pr... | agpl-3.0 | 2,684,679,429,479,543,000 | 34 | 128 | 0.645053 | false |
jalexvig/tensorflow | tensorflow/contrib/factorization/python/ops/factorization_ops_test_utils.py | 116 | 6182 | # 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 | 551,113,167,754,610,800 | 39.940397 | 80 | 0.639275 | false |
sxjscience/tvm | python/tvm/micro/compiler.py | 1 | 11811 | # 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 | -8,091,691,147,345,551,000 | 35.230061 | 100 | 0.613496 | false |
ThiagoGarciaAlves/intellij-community | python/lib/Lib/rfc822.py | 89 | 33167 | """RFC 2822 message manipulation.
Note: This is only a very rough sketch of a full RFC-822 parser; in particular
the tokenizing of addresses does not adhere to all the quoting rules.
Note: RFC 2822 is a long awaited update to RFC 822. This module should
conform to RFC 2822, and is thus mis-named (it's not worth rena... | apache-2.0 | 8,632,232,181,619,273,000 | 31.936445 | 79 | 0.548799 | false |
dsm054/pandas | pandas/tests/plotting/test_boxplot_method.py | 3 | 16170 | # coding: utf-8
import pytest
import itertools
import string
from pandas import Series, DataFrame, MultiIndex
from pandas.compat import range, lzip
import pandas.util.testing as tm
import pandas.util._test_decorators as td
import numpy as np
from numpy import random
import pandas.plotting as plotting
from pandas.t... | bsd-3-clause | -197,596,275,986,088,900 | 40.891192 | 79 | 0.564069 | false |
shuggiefisher/crowdstock | django/conf/locale/fr/formats.py | 232 | 1530 | # -*- encoding: utf-8 -*-
# This file is distributed under the same license as the Django package.
#
# The *_FORMAT strings use the Django date format syntax,
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = 'j F Y'
TIME_FORMAT = 'H:i:s'
DATETIME_FORMAT = 'j F Y H:i:s'
YEAR_MONTH_F... | bsd-3-clause | 3,689,745,986,611,904,000 | 36.317073 | 77 | 0.531373 | false |
BeyondTheClouds/nova | nova/block_device.py | 6 | 20984 | # Copyright 2011 Isaku Yamahata <yamahata@valinux co jp>
# 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... | apache-2.0 | -7,535,395,313,498,275,000 | 33.973333 | 79 | 0.583302 | false |
studio1247/gertrude | generation/export_tablette.py | 1 | 5449 | # -*- coding: utf-8 -*-
# This file is part of Gertrude.
#
# Gertrude 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 | -2,926,501,918,017,192,000 | 37.914286 | 92 | 0.556351 | false |
pwendell/mesos | third_party/libprocess/third_party/gmock-1.6.0/gtest/test/gtest_test_utils.py | 397 | 10437 | #!/usr/bin/env python
#
# Copyright 2006, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list... | apache-2.0 | -7,319,467,577,931,670,000 | 33.219672 | 79 | 0.672799 | false |
mamaddeveloper/telegrambot | modules/mod_xkcd.py | 2 | 1742 | from modules.module_base import ModuleBase
import requests
from lxml import html
from urllib.parse import urljoin
from urllib.request import urlretrieve
class ModuleXKCD(ModuleBase):
def __init__(self, bot):
ModuleBase.__init__(self, bot)
self.name = "xkcd"
def getXKCDImage(self, chat, path = ... | mit | 4,828,688,357,084,506,000 | 38.590909 | 89 | 0.579793 | false |
rdo-management/tuskar | tuskar/tests/test_utils.py | 1 | 3658 | # Copyright 2011 Justin Santa Barbara
# Copyright 2012 Hewlett-Packard Development Company, L.P.
#
# 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/lic... | apache-2.0 | -6,204,389,174,574,926,000 | 43.072289 | 78 | 0.590487 | false |
nrwahl2/ansible | lib/ansible/plugins/test/files.py | 62 | 1339 | # (c) 2015, Ansible, 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 di... | gpl-3.0 | 7,030,160,136,522,486,000 | 30.880952 | 84 | 0.654966 | false |
ULHPC/modules | easybuild/easybuild-easyblocks/easybuild/easyblocks/j/java.py | 12 | 1652 | ##
# Copyright 2012-2015 Ghent University
#
# This file is part of EasyBuild,
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
# with support of Ghent University (http://ugent.be/hpc),
# the Flemish Supercomputer Centre (VSC) (https://vscentrum.be/nl/en),
# the Hercules foundation (htt... | mit | -2,126,958,452,606,151,200 | 37.418605 | 96 | 0.730024 | false |
rockyzhang/zhangyanhit-python-for-android-mips | python-build/python-libs/gdata/src/gdata/tlslite/FileObject.py | 359 | 6807 | """Class returned by TLSConnection.makefile()."""
class FileObject:
"""This class provides a file object interface to a
L{tlslite.TLSConnection.TLSConnection}.
Call makefile() on a TLSConnection to create a FileObject instance.
This class was copied, with minor modifications, from the
_fileobject... | apache-2.0 | 2,931,938,675,040,176,600 | 29.940909 | 76 | 0.44322 | false |
Tehsmash/nova | nova/api/openstack/compute/contrib/certificates.py | 79 | 2729 | # Copyright (c) 2012 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-2.0
#
# Unless required by applicable ... | apache-2.0 | 4,226,080,390,974,123,000 | 33.544304 | 78 | 0.653719 | false |
DirtyUnicorns/android_external_chromium-org | mojo/public/bindings/generators/mojom_pack.py | 23 | 4051 | # 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.
import mojom
# mojom_pack provides a mechanism for determining the packed order and offsets
# of a mojom.Struct.
#
# ps = mojom_pack.PackedStruct(struct)
# ... | bsd-3-clause | -9,219,636,549,634,488,000 | 28.143885 | 79 | 0.6549 | false |
fivejjs/inasafe | safe_qgis/test_map.py | 1 | 9228 | """**Tests for map creation in QGIS plugin.**
"""
__author__ = 'Tim Sutton <tim@linfiniti.com>'
__revision__ = '$Format:%H$'
__date__ = '01/11/2010'
__license__ = "GPL"
__copyright__ = 'Copyright 2012, Australia Indonesia Facility for '
__copyright__ += 'Disaster Reduction'
import unittest
from unittest import expec... | gpl-3.0 | 492,539,518,696,938,200 | 40.945455 | 79 | 0.596987 | false |
jasonthomas/zamboni | mkt/api/exceptions.py | 6 | 2724 | from django.conf import settings
from django.core.signals import got_request_exception
from rest_framework import status
from rest_framework.exceptions import APIException, ParseError as DRFParseError
from rest_framework.response import Response
from rest_framework.views import exception_handler
class AlreadyPurchas... | bsd-3-clause | -3,757,521,815,414,435,000 | 29.954545 | 79 | 0.684288 | false |
oliciv/youtube-dl | youtube_dl/extractor/wimp.py | 37 | 1647 | from __future__ import unicode_literals
from .common import InfoExtractor
from .youtube import YoutubeIE
class WimpIE(InfoExtractor):
_VALID_URL = r'http://(?:www\.)?wimp\.com/(?P<id>[^/]+)/'
_TESTS = [{
'url': 'http://www.wimp.com/maruexhausted/',
'md5': 'ee21217ffd66d058e8b16be340b74883',
... | unlicense | 5,076,627,445,143,588,000 | 32.612245 | 95 | 0.496053 | false |
dbckz/ansible | contrib/inventory/spacewalk.py | 19 | 8810 | #!/usr/bin/env python
"""
Spacewalk external inventory script
=================================
Ansible has a feature where instead of reading from /etc/ansible/hosts
as a text file, it can query external programs to obtain the list
of hosts, groups the hosts are in, and even variables to assign to each host.
To use... | gpl-3.0 | -2,618,908,247,388,549,000 | 36.016807 | 152 | 0.619864 | false |
Alkxzv/zoonas | django/apps/comments/views.py | 1 | 4479 | from django.contrib import messages as msg
from django.core.exceptions import PermissionDenied
from django.http import HttpResponseRedirect
from django.utils.translation import ugettext as _
from django.views.generic.detail import SingleObjectMixin
from django.views.generic.edit import FormView, ProcessFormView
from n... | gpl-3.0 | -829,882,789,703,509,800 | 34.267717 | 75 | 0.668676 | false |
skirsdeda/django | tests/decorators/tests.py | 47 | 9902 | from functools import wraps, update_wrapper
from unittest import TestCase
import warnings
from django.contrib.admin.views.decorators import staff_member_required
from django.contrib.auth.decorators import login_required, permission_required, user_passes_test
from django.http import HttpResponse, HttpRequest, HttpRespo... | bsd-3-clause | 8,217,414,900,307,139,000 | 30.335443 | 118 | 0.625934 | false |
swiftstack/swift | test/unit/common/middleware/s3api/test_cfg.py | 3 | 1196 | # Copyright (c) 2014 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-2.0
#
# Unless required by applicable law or agreed to ... | apache-2.0 | 2,156,158,702,512,893,200 | 25.577778 | 69 | 0.58612 | false |
utkbansal/kuma | kuma/wiki/feeds.py | 5 | 15307 | """Feeds for documents"""
import datetime
import json
from django.conf import settings
from django.db.models import F
from django.contrib.syndication.views import Feed
from django.utils.html import escape
from django.utils.feedgenerator import (SyndicationFeed, Rss201rev2Feed,
A... | mpl-2.0 | 5,700,299,559,574,382,000 | 37.751899 | 80 | 0.530672 | false |
detiber/ansible | lib/ansible/utils/helpers.py | 34 | 1270 | # (c) 2016, Ansible by Red Hat <info@ansible.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) any later v... | gpl-3.0 | -7,894,461,598,052,859,000 | 35.285714 | 70 | 0.712598 | false |
erikr/django | django/utils/functional.py | 25 | 14721 | import copy
import operator
import warnings
from functools import total_ordering, wraps
from django.utils import six
from django.utils.deprecation import RemovedInDjango20Warning
# You can't trivially replace this with `functools.partial` because this binds
# to classes and returns bound instances, whereas functools... | bsd-3-clause | 5,394,692,293,798,960,000 | 33.556338 | 92 | 0.582773 | false |
ChinaQuants/blaze | blaze/compute/tests/test_pyfunc.py | 16 | 2071 | import datetime
from blaze.compute.pyfunc import symbol, lambdify, cos, math, broadcast
from blaze.compute.pyfunc import _print_python
from blaze.expr.broadcast import broadcast_collect
t = symbol('t', '{x: int, y: int, z: int, when: datetime}')
def test_simple():
f = lambdify([t], t.x + t.y)
assert f((1, ... | bsd-3-clause | 7,424,850,413,025,867,000 | 22.269663 | 71 | 0.563013 | false |
40223246/0622cdb-Final-TEST2-1 | static/Brython3.1.1-20150328-091302/Lib/site-packages/header.py | 409 | 2444 | from browser import document as doc
from browser.html import *
trans_menu = {
'menu_console':{'en':'Console','es':'Consola','fr':'Console', 'pt':'Console'},
'menu_editor':{'en':'Editor','es':'Editor','fr':'Editeur', 'pt':'Editor'},
'menu_gallery':{'en':'Gallery','es':'Galería','fr':'Galerie', 'pt':'Galeri... | gpl-3.0 | 7,121,760,174,561,399,000 | 35.373134 | 101 | 0.530981 | false |
michaelray/Iristyle-ChocolateyPackages | EthanBrown.SublimeText2.UtilPackages/tools/PackageCache/Package Control/package_control/clients/readme_client.py | 9 | 2434 | import re
import os
import base64
try:
# Python 3
from urllib.parse import urlencode
except (ImportError):
# Python 2
from urllib import urlencode
from .json_api_client import JSONApiClient
from ..downloaders.downloader_exception import DownloaderException
# Used to map file extensions to formats
_r... | mit | -7,729,514,488,107,964,000 | 28.325301 | 149 | 0.570666 | false |
avneesh91/django | django/core/management/commands/sqlmigrate.py | 48 | 2742 | from django.core.management.base import BaseCommand, CommandError
from django.db import DEFAULT_DB_ALIAS, connections
from django.db.migrations.executor import MigrationExecutor
from django.db.migrations.loader import AmbiguityError
class Command(BaseCommand):
help = "Prints the SQL statements for the named migra... | bsd-3-clause | -7,962,723,524,937,095,000 | 45.474576 | 114 | 0.660832 | false |
JerryLead/spark | examples/src/main/python/ml/dataframe_example.py | 72 | 2670 | #
# 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 us... | apache-2.0 | 6,515,793,176,978,653,000 | 32.797468 | 77 | 0.69176 | false |
harlequin/sickbeard | lib/hachoir_core/error.py | 90 | 1350 | """
Functions to display an error (error, warning or information) message.
"""
from lib.hachoir_core.log import log
from lib.hachoir_core.tools import makePrintable
import sys, traceback
def getBacktrace(empty="Empty backtrace."):
"""
Try to get backtrace as string.
Returns "Error while trying to get back... | gpl-3.0 | 1,755,399,359,400,809,200 | 29 | 71 | 0.671111 | false |
ahmadio/edx-platform | common/djangoapps/student/tests/test_userstanding.py | 106 | 3869 | """
These are tests for disabling and enabling student accounts, and for making sure
that students with disabled accounts are unable to access the courseware.
"""
import unittest
from student.tests.factories import UserFactory, UserStandingFactory
from student.models import UserStanding
from django.conf import setting... | agpl-3.0 | 5,975,156,843,998,326,000 | 35.5 | 87 | 0.623675 | false |
schleichdi2/OPENNFR-6.1-CORE | bitbake/lib/bb/ui/uievent.py | 4 | 5163 | # ex:ts=4:sw=4:sts=4:et
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
#
# Copyright (C) 2006 - 2007 Michael 'Mickey' Lauer
# Copyright (C) 2006 - 2007 Richard Purdie
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License versi... | gpl-2.0 | 1,269,786,831,930,603,500 | 31.068323 | 147 | 0.614953 | false |
yugang/crosswalk-test-suite | misc/wrt-androidarm-UA-tests/inst.wgt.py | 136 | 6856 | #!/usr/bin/env python
import os
import shutil
import glob
import time
import sys
import subprocess
import string
from optparse import OptionParser, make_option
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
PKG_NAME = os.path.basename(SCRIPT_DIR)
PARAMETERS = None
#XW_ENV = "export DBUS_SESSION_BUS_ADDRESS=... | bsd-3-clause | 4,193,548,493,487,979,500 | 28.679654 | 106 | 0.540548 | false |
SeaFalcon/Musicool_Pr | lib/sqlalchemy/testing/warnings.py | 33 | 1682 | # testing/warnings.py
# Copyright (C) 2005-2014 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
from __future__ import absolute_import
import warnings
from .. import exc as sa... | apache-2.0 | 9,170,316,774,728,323,000 | 28 | 74 | 0.674792 | false |
skyscrapers/monitoring-plugins | check_elb.py | 1 | 1132 | #!/usr/bin/env python
# Written by filip@skyscrape.rs
# 2014-04-29
import json
import os
import sys
from pprint import pprint
import commands
paramList = sys.argv
if len(paramList) <= 1:
print "USAGE " + paramList[0] + " <ELB name>"
sys.exit(2)
elbName = paramList[1]
cmd = "/usr/local/bin/aws --profile nag... | gpl-3.0 | 2,023,728,554,879,435,500 | 20.769231 | 122 | 0.634276 | 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.