repo_name
stringlengths
5
100
ref
stringlengths
12
67
path
stringlengths
4
244
copies
stringlengths
1
8
content
stringlengths
0
1.05M
edhuckle/statsmodels
refs/heads/master
statsmodels/examples/ex_kernel_regression3.py
34
# -*- coding: utf-8 -*- """script to try out Censored kernel regression Created on Wed Jan 02 13:43:44 2013 Author: Josef Perktold """ from __future__ import print_function import numpy as np import statsmodels.nonparametric.api as nparam if __name__ == '__main__': np.random.seed(500) nobs = [250, 1000][0]...
AndreiKrutikov/PsiDB
refs/heads/master
gtest/test/gtest_color_test.py
3259
#!/usr/bin/env python # # Copyright 2008, 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...
WebSQL/sdk
refs/heads/master
wsql_sdk/_lang/python3.py
1
""" This file is part of WSQL-SDK The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS F...
dcbaker/alot
refs/heads/master
alot/db/utils.py
1
# Copyright (C) 2011-2012 Patrick Totzke <patricktotzke@gmail.com> # This file is released under the GNU GPL, version 3 or a later revision. # For further details see the COPYING file import os import email import email.charset as charset from email.header import Header from email.iterators import typed_subpart_iterat...
iandees/esri-dump
refs/heads/master
esridump/cli.py
2
import argparse import email.parser from six.moves import urllib import logging import json import sys from esridump import EsriDumper def _collect_headers(strings): headers = {} parser = email.parser.Parser() for string in strings: headers.update(dict(parser.parsestr(string))) return header...
dalejung/earthdragon
refs/heads/master
earthdragon/navel/lockable.py
1
from earthdragon.typelet import Int from earthdragon.multidecorator import ( MultiDecorator, require_self, only_self, first ) from ..feature import Attr, features class UnexpectedMutationError(Exception): pass class Lockable: _in_flight = Int(default=0) @first @only_self def unlo...
brain-research/mirage-rl-qprop
refs/heads/master
sandbox/rocky/tf/algos/npg.py
386048
bigdig/vnpy
refs/heads/master
vnpy/trader/constant.py
2
""" General constant string used in VN Trader. """ from enum import Enum class Direction(Enum): """ Direction of order/trade/position. """ LONG = "多" SHORT = "空" NET = "净" class Offset(Enum): """ Offset of order/trade. """ NONE = "" OPEN = "开" CLOSE = "平" CLOSETO...
joshua-cogliati-inl/raven
refs/heads/devel
framework/utils/RAVENiterators.py
2
# Copyright 2017 Battelle Energy Alliance, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
chokribr/inveniotest
refs/heads/master
modules/miscutil/lib/upgrades/invenio_2013_01_08_new_goto_table.py
24
# -*- coding: utf-8 -*- ## ## This file is part of Invenio. ## Copyright (C) 2013 CERN. ## ## Invenio is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License as ## published by the Free Software Foundation; either version 2 of the ## License, or (at your option) a...
rosmo/ansible
refs/heads/devel
lib/ansible/modules/network/f5/bigip_profile_http_compression.py
38
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright: (c) 2018, F5 Networks Inc. # GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', ...
NaN-git/bicreditsnew
refs/heads/master
qa/rpc-tests/receivedby.py
4
#!/usr/bin/env python2 # Copyright (c) 2014 The Bitcredit Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # Exercise the listreceivedbyaddress API from test_framework import BitcreditTestFramework from bitcreditrp...
pytest-dev/pytest
refs/heads/main
src/_pytest/_io/wcwidth.py
16
import unicodedata from functools import lru_cache @lru_cache(100) def wcwidth(c: str) -> int: """Determine how many columns are needed to display a character in a terminal. Returns -1 if the character is not printable. Returns 0, 1 or 2 for other characters. """ o = ord(c) # ASCII fast path...
crosswalk-project/chromium-crosswalk-efl
refs/heads/efl/crosswalk-10/39.0.2171.19
tools/telemetry/telemetry/core/platform/linux_platform_backend.py
25
# 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 logging import os import subprocess import sys from telemetry import decorators from telemetry.core.platform import linux_based_platform_backend from...
ity/pants
refs/heads/master
src/python/pants/backend/jvm/tasks/jvm_compile/zinc/zinc_compile.py
1
# 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 logging impor...
lawnmowerlatte/hyper
refs/heads/development
hyper/ssl_compat.py
3
# -*- coding: utf-8 -*- """ hyper/ssl_compat ~~~~~~~~~ Shoves pyOpenSSL into an API that looks like the standard Python 3.x ssl module. Currently exposes exactly those attributes, classes, and methods that we actually use in hyper (all method signatures are complete, however). May be expanded to something more genera...
lukaszkostrzewa/wiki
refs/heads/master
maintenance/cssjanus/csslex.py
172
#!/usr/bin/python # # Copyright 2007 Google Inc. All Rights Reserved. """CSS Lexical Grammar rules. CSS lexical grammar from http://www.w3.org/TR/CSS21/grammar.html """ __author__ = ['elsigh@google.com (Lindsey Simon)', 'msamuel@google.com (Mike Samuel)'] # public symbols __all__ = [ "NEWLINE", "HEX",...
felipenaselva/repo.felipe
refs/heads/master
plugin.program.addoninstaller/defaultORIG.py
8
# TVADDONS.ag / TVADDONS.ag - Addon Installer - Module By: Blazetamer (2013-2014) # Thanks to Blazetamer, Eleazar Coding, Showgun, .... siteTitle="TVADDONS.AG"; #siteTitle="XBMCHUB.COM"; addon_id='plugin.program.addoninstaller'; import urllib,urllib2,re,xbmcplugin,xbmcgui,xbmc,xbmcaddon,os,sys,time,shutil,downloader,...
diogocs1/comps
refs/heads/master
web/addons/account/wizard/account_state_open.py
341
# -*- 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...
jk1/intellij-community
refs/heads/master
python/testData/inspections/PyPackageRequirementsInspection/PartiallySatisfiedRequirementsTxt/test1.py
69
<warning descr="Package requirements 'Markdown', 'Django==1.3.1' are not satisfied">print("Hello, World!") </warning>
rahul67/hue
refs/heads/master
desktop/core/ext-py/Django-1.6.10/tests/urls.py
70
from django.conf.urls import patterns, include urlpatterns = patterns('', # test_client urls (r'^test_client/', include('test_client.urls')), (r'^test_client_regress/', include('test_client_regress.urls')), # File upload test views (r'^file_uploads/', include('file_uploads.urls')), # Always p...
neo1973/xbmc
refs/heads/master
tools/EventClients/examples/python/example_mouse.py
262
#!/usr/bin/python # This is a simple example showing how you can send mouse movement # events to XBMC. # NOTE: Read the comments in 'example_button1.py' for a more detailed # explanation. import sys sys.path.append("../../lib/python") from xbmcclient import * from socket import * def main(): import time im...
ppiotr/Invenio
refs/heads/docextract
modules/webstyle/lib/webpage.py
23
## This file is part of Invenio. ## Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 CERN. ## ## Invenio is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License as ## published by the Free Software Foundation; either version 2 of the ## Lic...
tolbkni/fabric
refs/heads/master
fabric/contrib/django.py
65
""" .. versionadded:: 0.9.2 These functions streamline the process of initializing Django's settings module environment variable. Once this is done, your fabfile may import from your Django project, or Django itself, without requiring the use of ``manage.py`` plugins or having to set the environment variable yourself ...
jclakkis/discus-inferno
refs/heads/master
flaskenv/lib/python2.7/posixpath.py
4
/usr/lib/python2.7/posixpath.py
chinmaygarde/mojo
refs/heads/ios
tools/android/remove_strings.py
183
#!/usr/bin/python # Copyright (c) 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Remove strings by name from a GRD file.""" import optparse import re import sys def RemoveStrings(grd_path, string_names): """R...
spasovski/zamboni
refs/heads/master
mkt/account/tests/test_api.py
2
# -*- coding: utf-8 -*- import collections import json import uuid from urlparse import urlparse from django.conf import settings from django.core import mail from django.core.urlresolvers import reverse from django.http import QueryDict from django.utils.http import urlencode from mock import patch, Mock from nose.t...
wdurhamh/statsmodels
refs/heads/master
statsmodels/sandbox/panel/random_panel.py
33
# -*- coding: utf-8 -*- """Generate a random process with panel structure Created on Sat Dec 17 22:15:27 2011 Author: Josef Perktold Notes ----- * written with unbalanced panels in mind, but not flexible enough yet * need more shortcuts and options for balanced panel * need to add random intercept or coefficients *...
mineo/pacman
refs/heads/master
test/pacman/tests/upgrade032.py
13
self.description = "Install packages explicitly" lp1 = pmpkg("pkg1") lp1.reason = 1 self.addpkg2db("local", lp1) p1 = pmpkg("pkg1", "1.0-2") p2 = pmpkg("pkg2", "1.0-2") for p in p1, p2: self.addpkg(p) self.args = "-U --asexplicit %s" % " ".join([p.filename() for p in p1, p2]) self.addrule("PACMAN_RETCODE=0") self...
gardner/youtube-dl
refs/heads/master
youtube_dl/extractor/hostingbulk.py
75
# coding: utf-8 from __future__ import unicode_literals import re from .common import InfoExtractor from ..compat import ( compat_urllib_request, ) from ..utils import ( ExtractorError, int_or_none, urlencode_postdata, ) class HostingBulkIE(InfoExtractor): _VALID_URL = r'''(?x) https?://...
cgstudiomap/cgstudiomap
refs/heads/develop
main/eggs/Shapely-1.5.13-py2.7.egg/shapely/geometry/proxy.py
17
"""Proxy for coordinates stored outside Shapely geometries """ from shapely.geometry.base import deserialize_wkb, EMPTY from shapely.geos import lgeos class CachingGeometryProxy(object): context = None factory = None __geom__ = EMPTY _gtag = None def __init__(self, context): self.contex...
laperry1/android_external_chromium_org
refs/heads/cm-12.1
third_party/libxml/src/gentest.py
298
#!/usr/bin/python -u # # generate a tester program for the API # import sys import os import string try: import libxml2 except: print "libxml2 python bindings not available, skipping testapi.c generation" sys.exit(0) if len(sys.argv) > 1: srcPref = sys.argv[1] + '/' else: srcPref = '' # # Modules ...
shusenl/scikit-learn
refs/heads/master
benchmarks/bench_mnist.py
76
""" ======================= MNIST dataset benchmark ======================= Benchmark on the MNIST dataset. The dataset comprises 70,000 samples and 784 features. Here, we consider the task of predicting 10 classes - digits from 0 to 9 from their raw images. By contrast to the covertype dataset, the feature space is...
MycChiu/tensorflow
refs/heads/master
tensorflow/contrib/distributions/python/kernel_tests/dirichlet_test.py
35
# 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...
soldag/home-assistant
refs/heads/dev
tests/components/moon/test_sensor.py
7
"""The test for the moon sensor platform.""" from datetime import datetime from homeassistant.components.homeassistant import ( DOMAIN as HA_DOMAIN, SERVICE_UPDATE_ENTITY, ) from homeassistant.const import ATTR_ENTITY_ID from homeassistant.setup import async_setup_component import homeassistant.util.dt as dt_u...
spiffytech/offlineimap
refs/heads/master
offlineimap/mbnames.py
17
# Mailbox name generator # Copyright (C) 2002 John Goerzen # <jgoerzen@complete.org> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your ...
mitchellzen/pops
refs/heads/master
satchmo/apps/satchmo_utils/widgets.py
7
from django import forms from django.utils.safestring import mark_safe from l10n.l10n_settings import get_l10n_default_currency_symbol from livesettings import config_value from satchmo_utils.numbers import round_decimal import logging from django.utils.html import escape from decimal import Decimal log = logging.getL...
ramcn/demo3
refs/heads/master
venv/lib/python3.4/site-packages/setuptools/tests/test_easy_install.py
44
# -*- coding: utf-8 -*- """Easy install Tests """ from __future__ import absolute_import import sys import os import shutil import tempfile import site import contextlib import tarfile import logging import itertools import distutils.errors import pytest try: from unittest import mock except ImportError: imp...
XiaosongWei/crosswalk-test-suite
refs/heads/master
webapi/tct-fullscreen-nonw3c-tests/inst.wgt.py
372
#!/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=...
sergey-lance/Udacity-FSWDN-MultiuserBlog
refs/heads/master
main.py
1
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Undacity FSWDN # Project: MultiuserBlog. # by Sergey Ryzhikov (sergey-inform@ya.ru) # License: GPLv2 # import sys import os import jinja2 import webapp2 from webapp2_extras.routes import RedirectRoute, PathPrefixRoute from webapp2_extras import auth from webapp2_extras ...
jabesq/home-assistant
refs/heads/dev
homeassistant/components/googlehome/sensor.py
7
"""Support for Google Home alarm sensor.""" from datetime import timedelta import logging from homeassistant.const import DEVICE_CLASS_TIMESTAMP from homeassistant.helpers.entity import Entity import homeassistant.util.dt as dt_util from . import CLIENT, DOMAIN as GOOGLEHOME_DOMAIN, NAME SCAN_INTERVAL = timedelta(se...
langurmonkey/gaiasky
refs/heads/master
assets/scripts/tests/post-runnable-test.py
2
# This script tests posting and parking runnables that run on the main loop thread # Created by Toni Sagrista from py4j.clientserver import ClientServer, JavaParameters, PythonParameters """ Prints to both gaia sky and python """ def lprint(string): gs.print(string) print(string) class PrintRunnable(object):...
Batterfii/django
refs/heads/master
tests/migrations/migrations_test_apps/lookuperror_c/models.py
415
from django.db import models class C1(models.Model): pass class C2(models.Model): a1 = models.ForeignKey('lookuperror_a.A1', models.CASCADE) class C3(models.Model): pass
ryuunosukeyoshi/PartnerPoi-Bot
refs/heads/master
lib/youtube_dl/extractor/dhm.py
64
from __future__ import unicode_literals from .common import InfoExtractor from ..utils import parse_duration class DHMIE(InfoExtractor): IE_DESC = 'Filmarchiv - Deutsches Historisches Museum' _VALID_URL = r'https?://(?:www\.)?dhm\.de/filmarchiv/(?:[^/]+/)+(?P<id>[^/]+)' _TESTS = [{ 'url': 'http:...
cgvarela/grpc
refs/heads/master
src/python/grpcio_test/grpc_test/_adapter/_future_invocation_asynchronous_event_service_test.py
14
# Copyright 2015, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the f...
rogersb11/SourceDrops
refs/heads/n7100-kk
scripts/rt-tester/rt-tester.py
11005
#!/usr/bin/python # # rt-mutex tester # # (C) 2006 Thomas Gleixner <tglx@linutronix.de> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. # import os import sys import getopt import sh...
diegocortassa/TACTIC
refs/heads/master
src/pyasm/prod/render/render_context.py
1
########################################################### # # Copyright (c) 2005, Southpaw Technology # All Rights Reserved # # PROPRIETARY INFORMATION. This software is proprietary to # Southpaw Technology, and is not to be reproduced, transmitted, # or disclosed in any way without written permi...
crawfordsm/zSALT
refs/heads/master
zsalt/redshift.py
1
import sys import pyfits import numpy as np from PySpectrograph import Spectrum from PySpectrograph.Utilities.fit import interfit import pylab as pl def ncor(x, y): """Calculate the normalized correlation of two arrays""" d=np.correlate(x,x)*np.correlate(y,y) if d<=0: return 0 return np.correlate(x,y)...
westinedu/similarinterest
refs/heads/master
djangoappengine/mapreduce/__init__.py
12133432
elventear/ansible-modules-core
refs/heads/devel
source_control/__init__.py
12133432
siutanwong/scikit-learn
refs/heads/master
sklearn/neighbors/tests/__init__.py
12133432
Alexander-M-Waldman/local_currency_site
refs/heads/master
lib/python2.7/site-packages/django/db/backends/base/__init__.py
12133432
jaredly/pyjamas
refs/heads/master
pgen/lib2to3/compiler/parser.py
6
from lib2to3.pgen2.driver import load_grammar from lib2to3.pgen2.driver import Driver import os gpath = os.path.join(os.path.abspath(os.path.dirname(__file__)), "Grammar.txt") g = load_grammar(gpath) def suite(text): d = Driver(g ) return d.parse_string(text) # dummy def st2tuple(tree, line_info=1): retu...
eldarion/formly
refs/heads/master
formly/tests/factories.py
1
import factory from formly.models import ( Field, FieldChoice, FieldResult, OrdinalChoice, OrdinalScale, Page, Survey, SurveyResult, ) class OrdinalChoiceFactory(factory.django.DjangoModelFactory): class Meta: model = OrdinalChoice label = factory.Sequence(lambda n: "...
40223231/2015cd_midterm
refs/heads/master
static/Brython3.1.1-20150328-091302/Lib/_collections.py
603
# "High performance data structures # " # copied from pypy repo # # Copied and completed from the sandbox of CPython # (nondist/sandbox/collections/pydeque.py rev 1.1, Raymond Hettinger) # # edited for Brython line 558 : catch ImportError instead of AttributeError import operator #try: # from thread import get_i...
VitalPet/sale-workflow
refs/heads/8.0
sale_partner_order_policy/__openerp__.py
22
# -*- encoding: utf-8 -*- ############################################################################## # # Sale Partner Order Policy module for Odoo # Copyright (C) 2014 Akretion (http://www.akretion.com). # @author Alexis de Lattre <alexis.delattre@akretion.com> # # This program is free software: you can...
scrollback/kuma
refs/heads/master
vendor/packages/pylint/test/input/func_e99xx.py
6
"""test string format error """ __revision__ = 1 PARG_1 = PARG_2 = PARG_3 = 1 def pprint(): """Test string format """ print "%s %s" % {'PARG_1': 1, 'PARG_2': 2} # E9906 print "%s" % (PARG_1, PARG_2) # E9905 print "%(PARG_1)d %d" % {'PARG_1': 1, 'PARG_2': 2} # E9902 print "%(PARG_1)d %(PARG_2)...
anudr01d/anudr01d.github.io
refs/heads/master
node_modules/grunt-docker/node_modules/docker/node_modules/pygmentize-bundled/vendor/pygments/build-3.3/pygments/formatters/__init__.py
363
# -*- coding: utf-8 -*- """ pygments.formatters ~~~~~~~~~~~~~~~~~~~ Pygments formatters. :copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import os.path import fnmatch from pygments.formatters._mapping import FORMATTERS from pygments.p...
arameshkumar/base-nuxeo-drive
refs/heads/master
nuxeo-drive-client/nxdrive/tests/test_blacklist_queue.py
2
''' Created on 2 juil. 2015 @author: Remi Cattiau ''' import unittest from nxdrive.engine.blacklist_queue import BlacklistQueue from time import sleep class BlacklistQueueTest(unittest.TestCase): def testDelay(self): sleep_time = 3 # Push two items with a delay of 1s queue = BlacklistQue...
abought/osf.io
refs/heads/develop
api_tests/nodes/serializers/test_serializers.py
4
# -*- coding: utf-8 -*- from urlparse import urlparse from nose.tools import * # flake8: noqa from dateutil.parser import parse as parse_date from tests.base import DbTestCase, assert_datetime_equal from tests.utils import make_drf_request from tests.factories import UserFactory, NodeFactory, RegistrationFactory, Pr...
menzenski/tagger-tester
refs/heads/master
razmetka/tag/tag.py
2
#!/usr/bin/env python # -*- coding: utf-8 -*- import codecs import os import subprocess32 from nltk.tag.stanford import StanfordPOSTagger from .config import DATA_DIR_NAME, PATH_TO_DATA_DIR from .files import write_to_directory class FilePair(object): """Pair of files: one for training and one for testing.""" ...
fiduswriter/fiduswriter
refs/heads/master
fiduswriter/fixturemedia/management/__init__.py
12133432
gnuhub/intellij-community
refs/heads/master
python/testData/refactoring/move/relativeImportsToModulesInSameMovedPackageNotUpdated/before/src/pkg/subpkg/subsubpkg/__init__.py
12133432
gfreed/android_external_chromium-org
refs/heads/android-4.4
tools/find_runtime_symbols/reduce_debugline.py
161
#!/usr/bin/env python # Copyright (c) 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Reduces result of 'readelf -wL' to just a list of starting addresses. It lists up all addresses where the corresponding source f...
Ingenico-ePayments/connect-sdk-python3
refs/heads/master
tests/unit/test_client.py
1
import base64 import unittest from datetime import timedelta from unittest.mock import Mock, MagicMock from ingenico.connect.sdk.connection import Connection from ingenico.connect.sdk.defaultimpl.default_marshaller import DefaultMarshaller from ingenico.connect.sdk.factory import Factory from ingenico.connect.sdk.poo...
angelbot/geoincentives
refs/heads/master
coffin/views/generic/list_detail.py
5
from coffin.template import loader from django.views.generic import list_detail as _list_detail import functools object_list = functools.partial(_list_detail.object_list, template_loader=loader) object_detail = functools.partial(_list_detail.object_detail, template_loader=loader)
fireduck64/electrum
refs/heads/master
gui/qt/contact_list.py
3
#!/usr/bin/env python # # Electrum - lightweight Bitcoin client # Copyright (C) 2015 Thomas Voegtlin # # 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...
prachidamle/cattle
refs/heads/master
tests/integration/cattletest/core/test_machines.py
3
from common_fixtures import * # NOQA from cattle import ApiError from test_physical_host import disable_go_machine_service # NOQA @pytest.fixture(scope='module') def update_ping_settings(request, super_client): # These settings need changed because they control how the logic of the # ping handlers behave in...
chromium2014/src
refs/heads/master
tools/perf/profile_creators/small_profile_creator.py
10
# 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. from telemetry.page import profile_creator import page_sets class SmallProfileCreator(profile_creator.ProfileCreator): """ Runs a browser through a se...
openstack/manila
refs/heads/master
manila/policies/share_replica.py
1
# 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...
kingvuplus/ts-gui-3
refs/heads/master
lib/python/Components/Renderer/Listbox.py
118
from Renderer import Renderer from enigma import eListbox # the listbox renderer is the listbox, but no listbox content. # the content will be provided by the source (or converter). # the source should emit the 'changed' signal whenever # it has a new listbox content. # the source needs to have the 'content' propert...
genonfire/bbgo
refs/heads/master
blogs/migrations/__init__.py
12133432
ggiscan/OnlineClerk
refs/heads/master
core/Interactor/core/tests/__init__.py
12133432
mrfuxi/django
refs/heads/master
tests/migrations/migrations_test_apps/alter_fk/author_app/__init__.py
12133432
nion-software/nionswift
refs/heads/master
nion/swift/test/ToolbarPanel_test.py
12133432
saurabh6790/trufil_app
refs/heads/master
stock/report/serial_no_status/__init__.py
12133432
NDManh/numbbo
refs/heads/master
code-postprocessing/bbob_pproc/readalign.py
3
#! /usr/bin/env python # -*- coding: utf-8 -*- """Helper routines to read in data files. The terms horizontal and vertical below refer to the horizontal (fixed-target) and vertical (fixed-budget) views. When considering convergence graphs of function values over times, we can view it as: * costs for different fixe...
anhstudios/swganh
refs/heads/develop
data/scripts/templates/object/tangible/hair/sullustan/shared_sul_hair_s02_f.py
2
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Tangible() result.template = "object/tangible/hair/sullustan/shared_sul_hair_s02_f.iff" result.attribute_template...
lucywyman/slides-ii
refs/heads/master
v/lib/python2.7/site-packages/pip/commands/uninstall.py
395
from pip.req import InstallRequirement, RequirementSet, parse_requirements from pip.basecommand import Command from pip.exceptions import InstallationError class UninstallCommand(Command): """ Uninstall packages. pip is able to uninstall most installed packages. Known exceptions are: - Pure distutil...
grantsewell/nzbToMedia
refs/heads/master
libs/babelfish/country.py
42
# -*- coding: utf-8 -*- # # Copyright (c) 2013 the BabelFish authors. All rights reserved. # Use of this source code is governed by the 3-clause BSD license # that can be found in the LICENSE file. # from __future__ import unicode_literals from collections import namedtuple from functools import partial from pkg_resour...
StefanKjartansson/django-icelandic-addresses
refs/heads/master
ice_addresses/south_migrations/__init__.py
12133432
benjaminrigaud/django
refs/heads/master
tests/requests/__init__.py
12133432
ojengwa/oh-mainline
refs/heads/master
vendor/packages/scrapy/scrapyd/tests/__init__.py
12133432
jillson/chrononaut
refs/heads/master
adventure/migrations/__init__.py
12133432
yencarnacion/jaikuengine
refs/heads/master
.google_appengine/lib/django_1_3/django/contrib/comments/views/__init__.py
12133432
Garrett-R/scikit-learn
refs/heads/master
examples/cluster/plot_digits_linkage.py
369
""" ============================================================================= Various Agglomerative Clustering on a 2D embedding of digits ============================================================================= An illustration of various linkage option for agglomerative clustering on a 2D embedding of the di...
Split-Screen/android_kernel_huawei_msm8928
refs/heads/pac-5.1
tools/perf/scripts/python/sched-migration.py
11215
#!/usr/bin/python # # Cpu task migration overview toy # # Copyright (C) 2010 Frederic Weisbecker <fweisbec@gmail.com> # # perf script event handlers have been generated by perf script -g python # # This software is distributed under the terms of the GNU General # Public License ("GPL") version 2 as published by the Fre...
tumbl3w33d/ansible
refs/heads/devel
lib/ansible/modules/cloud/google/gcp_compute_target_pool.py
13
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2017 Google # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # ---------------------------------------------------------------------------- # # *** AUTO GENERATED CODE *** AUTO GENERATED CODE *** # ...
cp16net/virgo-base
refs/heads/master
tools/gyp/test/mac/gyptest-installname.py
244
#!/usr/bin/env python # 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. """ Verifies that LD_DYLIB_INSTALL_NAME and DYLIB_INSTALL_NAME_BASE are handled correctly. """ import TestGyp import re import subprocess ...
openpolis/open_municipio
refs/heads/dev-senigallia
open_municipio/idioticon/templatetags/__init__.py
37
__author__ = 'guglielmo'
AuthenticEshkinKot/criu
refs/heads/master
test/others/rpc/test.py
9
#!/usr/bin/python2 import socket, os, imp, sys import rpc_pb2 as rpc import argparse parser = argparse.ArgumentParser(description="Test dump/restore using CRIU RPC") parser.add_argument('socket', type = str, help = "CRIU service socket") parser.add_argument('dir', type = str, help = "Directory where CRIU images shoul...
TouK/vumi
refs/heads/touk-develop
vumi/dispatchers/simple/tests/__init__.py
12133432
UCL/pyoracc
refs/heads/master
pyoracc/atf/common/__init__.py
12133432
qnub/django-cms
refs/heads/develop
cms/test_utils/project/emailuserapp/__init__.py
12133432
eriser/omaha
refs/heads/master
installers/__init__.py
12133432
idjaw/horizon
refs/heads/master
horizon/forms/fields.py
14
# Copyright 2012 Nebula, 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 agree...
elifesciences/elife-tools
refs/heads/develop
elifetools/tests/fixtures/test_full_award_groups/__init__.py
12133432
ericholscher/django
refs/heads/master
django/contrib/sitemaps/tests/urls/__init__.py
12133432
deepsrijit1105/edx-platform
refs/heads/master
openedx/core/djangoapps/self_paced/__init__.py
12133432
sanoma/django-arctic
refs/heads/develop
example/dashboard/__init__.py
12133432