repo_name
stringlengths
5
100
ref
stringlengths
12
67
path
stringlengths
4
244
copies
stringlengths
1
8
content
stringlengths
0
1.05M
miloszz/DIRAC
refs/heads/integration
DataManagementSystem/Client/FailoverTransfer.py
3
""" Failover Transfer The failover transfer client exposes the following methods: - transferAndRegisterFile() - transferAndRegisterFileFailover() Initially these methods were developed inside workflow modules but have evolved to a generic 'transfer file with failover' client. The transferAndR...
jd/hyde
refs/heads/master
hyde/ext/plugins/meta.py
6
# -*- coding: utf-8 -*- """ Contains classes and utilities related to meta data in hyde. """ from collections import namedtuple from functools import partial from itertools import ifilter from operator import attrgetter import re import sys from hyde.exceptions import HydeException from hyde.model import Expando from...
tecan/xchat-rt
refs/heads/master
plugins/scripts/Supybot-0.83.4.1-bitcoinotc-bot/build/lib/supybot/utils/transaction.py
8
### # Copyright (c) 2005, Jeremiah Fincher # 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 conditi...
kawamon/hue
refs/heads/master
desktop/core/ext-py/cx_Oracle-6.4.1/test/DateTimeVar.py
2
#------------------------------------------------------------------------------ # Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved. # # Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved. # # Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta, # Canada. Al...
RKrahl/pytest-dependency
refs/heads/develop
doc/examples/scope_module.py
1
import pytest @pytest.mark.dependency() @pytest.mark.xfail(reason="deliberate fail") def test_a(): assert False @pytest.mark.dependency() def test_b(): pass @pytest.mark.dependency(depends=["test_a"], scope='module') def test_c(): pass @pytest.mark.dependency(depends=["test_b"], scope='module') def test...
toladata/TolaTables
refs/heads/master
reports/urls.py
1
import reports.views from django.conf.urls import * # place app url patterns here urlpatterns = [ #display public custom dashboard url(r'^table_list/$', reports.views.list_table_dashboards, name='table_dashboard_list'), url(r'^table_dashboard/(?P<id>\w+)/$', reports.views....
bobbzorzen/InteractiveExaltedSheets
refs/heads/master
InteractiveExalted/char_sheet/views.py
1
from django.shortcuts import render def index(request): return render(request, 'char_sheet/home.html') def cards(request): return render(request, 'char_sheet/cards.html')
googleapis/python-pubsub
refs/heads/master
tests/unit/pubsub_v1/publisher/batch/test_thread.py
1
# Copyright 2017, Google LLC All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
zsiciarz/django
refs/heads/master
tests/string_lookup/models.py
106
from django.db import models class Foo(models.Model): name = models.CharField(max_length=50) friend = models.CharField(max_length=50, blank=True) def __str__(self): return "Foo %s" % self.name class Bar(models.Model): name = models.CharField(max_length=50) normal = models.ForeignKey(Foo...
jk1/intellij-community
refs/heads/master
python/testData/refactoring/move/qualifiedReferenceInDestinationModule/after/src/a.py
31
something_else = 2
levkar/odoo
refs/heads/10.0
addons/payment_buckaroo/models/__init__.py
163
# -*- coding: utf-8 -*- import payment
karst87/ml
refs/heads/master
dev/statistical_ml/logistic_regression/logistic_regression.py
1
# -*- coding: utf-8 -*- # logistic_regression.py """ Created by jin.xia on May 09 2017 @author: jin.xia """ import numpy as np import matplotlib.pyplot as plt class logistic_regression(): """docstring for logistic_regression""" def __init__(self, arg): super(logistic_regression, self).__init__() self.arg = ...
gnieboer/gnuradio
refs/heads/android
gr-blocks/python/blocks/qa_cpp_py_binding.py
37
#!/usr/bin/env python # # Copyright 2012,2013,2015 Free Software Foundation, Inc. # # This file is part of GNU Radio # # GNU Radio is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3, or (at your ...
cloudera/hue
refs/heads/master
desktop/core/ext-py/gunicorn-19.9.0/examples/readline.py
7
# -*- coding: utf-8 - # # This file is part of gunicorn released under the MIT license. # See the NOTICE for more information. # # Simple example of readline, reading from a stream then echoing the response # # Usage: # # Launch a server with the app in a terminal # # $ gunicorn -w3 readline:app # # Then in another...
nurmd2/nurmd
refs/heads/master
openerp/addons/base/ir/ir_exports.py
45
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from openerp.osv import fields,osv class ir_exports(osv.osv): _name = "ir.exports" _order = 'name' _columns = { 'name': fields.char('Export Name'), 'resource': fields.char('Resource', select...
thanatoskira/AndroGuard
refs/heads/master
androguard/core/bytecodes/dvm_permissions.py
7
# Androguard is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Androguard is distributed in the hope that it will be useful, ...
steventimberman/masterDebater
refs/heads/master
env/lib/python2.7/site-packages/django/conf/locale/km/__init__.py
12133432
ppinard/matplotlib-scalebar
refs/heads/master
doc/example_angular.py
1
import numpy as np import matplotlib.pyplot as plt import matplotlib.cbook as cbook from matplotlib_scalebar.scalebar import ScaleBar, ANGULAR delta = 0.025 x = y = np.arange(-3.0, 3.0, delta) X, Y = np.meshgrid(x, y) Z1 = np.exp(-(X ** 2) - Y ** 2) Z2 = np.exp(-((X - 1) ** 2) - (Y - 1) ** 2) Z = (Z1 - Z2) * 2 fig, a...
JarbasAI/JarbasAI
refs/heads/patch-15
jarbas_utils/RBM_Sampling.py
1
from __future__ import division import argparse import pickle import numpy as np import enum import random from jarbas_utils import RBM_Utils as Utils MAX_PROG_SAMPLE_INTERVAL = 10000 # If true, then subtract a constant between iterations when annealing, rather than dividing by a constant. # Literature seems divided ...
JAOSP/aosp_platform_external_chromium_org
refs/heads/master
tools/telemetry/telemetry/core/util.py
23
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import inspect import os import socket import sys import time class TimeoutException(Exception): pass def GetBaseDir(): main_module = sys.modules['_...
seann1/portfolio5
refs/heads/master
.meteor/dev_bundle/python/Lib/test/test_compare.py
195
import unittest from test import test_support class Empty: def __repr__(self): return '<Empty>' class Coerce: def __init__(self, arg): self.arg = arg def __repr__(self): return '<Coerce %s>' % self.arg def __coerce__(self, other): if isinstance(other, Coerce): ...
Fendoe/open-hackathon
refs/heads/master
open-hackathon-server/src/hackathon/health/__init__.py
6
# -*- coding: utf-8 -*- # # ----------------------------------------------------------------------------------- # Copyright (c) Microsoft Open Technologies (Shanghai) Co. Ltd. All rights reserved. # # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this softw...
nvoron23/arangodb
refs/heads/devel
3rdParty/V8-4.3.61/third_party/python_26/Lib/socket.py
49
# Wrapper module for _socket, providing some additional facilities # implemented in Python. """\ This module provides socket operations and some related functions. On Unix, it supports IP (Internet Protocol) and Unix domain sockets. On other systems, it only supports IP. Functions specific for a socket are available a...
glennrub/micropython
refs/heads/master
tests/basics/try_finally_return.py
82
def func1(): try: return "it worked" finally: print("finally 1") print(func1()) def func2(): try: return "it worked" finally: print("finally 2") def func3(): try: s = func2() return s + ", did this work?" finally: print("finally 3") pr...
philipkershaw/ndg_security_server
refs/heads/master
ndg/security/server/test/integration/pylonsapp/pylonsapp/config/middleware.py
5
"""Pylons middleware initialization""" from beaker.middleware import SessionMiddleware from paste.cascade import Cascade from paste.registry import RegistryManager from paste.urlparser import StaticURLParser from paste.deploy.converters import asbool from pylons.middleware import ErrorHandler, StatusCodeRedirect from p...
anandology/pyjamas
refs/heads/master
library/gwt/ui/PopupPanel.py
1
# Copyright 2006 James Tauber and contributors # Copyright (C) 2009, 2010 Luke Kenneth Casson Leighton <lkcl@lkcl.net> # Copyright (C) 2010 Serge Tarkovski <serge.tarkovski@gmail.com> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. #...
archatas/imageuploads
refs/heads/master
images/views.py
1
# -*- coding: UTF-8 -*- import os import shutil from django.shortcuts import render, redirect from django.template.defaultfilters import slugify from django.conf import settings from django.core.files import File from models import Image from forms import ImageForm def image_list(request): images = Image.object...
jayoshih/content-curation
refs/heads/master
contentcuration/kolibri_content/migrations/__init__.py
12133432
fintech-circle/edx-platform
refs/heads/master
lms/envs/__init__.py
12133432
ahmedaljazzar/edx-platform
refs/heads/master
openedx/core/djangoapps/schedules/migrations/0006_scheduleexperience.py
13
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('schedules', '0005_auto_20171010_1722'), ] operations = [ migrations.CreateModel( name='ScheduleExperience', ...
bestvibes/neo4j-social-network
refs/heads/master
mac_env/lib/python2.7/site-packages/pip/_vendor/html5lib/treebuilders/__init__.py
1730
"""A collection of modules for building different kinds of tree from HTML documents. To create a treebuilder for a new type of tree, you need to do implement several things: 1) A set of classes for various types of elements: Document, Doctype, Comment, Element. These must implement the interface of _base.treebuilders...
lokirius/python-for-android
refs/heads/master
python3-alpha/python3-src/Lib/py_compile.py
46
"""Routine to "compile" a .py file to a .pyc (or .pyo) file. This module has intimate knowledge of the format of .pyc files. """ import builtins import errno import imp import marshal import os import sys import tokenize import traceback MAGIC = imp.get_magic() __all__ = ["compile", "main", "PyCompileError"] clas...
tlatzko/spmcluster
refs/heads/master
.tox/clean/lib/python2.7/site-packages/wheel/test/test_signatures.py
565
from wheel import signatures from wheel.signatures import djbec, ed25519py from wheel.util import binary def test_getlib(): signatures.get_ed25519ll() def test_djbec(): djbec.dsa_test() djbec.dh_test() def test_ed25519py(): kp0 = ed25519py.crypto_sign_keypair(binary(' '*32)) kp = ed25519p...
enyx-opensource/yassh
refs/heads/master
yassh/reactor.py
2
import logging import errno import select import weakref LOGGER = logging.getLogger(__name__) class Reactor(object): ''' This class is used to execute execution(s) monitor(s). ''' def __init__(self): ''' Create a new reactor. ''' self.poller = select.poll() se...
466152112/scikit-learn
refs/heads/master
examples/cluster/plot_segmentation_toy.py
258
""" =========================================== Spectral clustering for image segmentation =========================================== In this example, an image with connected circles is generated and spectral clustering is used to separate the circles. In these settings, the :ref:`spectral_clustering` approach solve...
digdoritos/gimp
refs/heads/master
plug-ins/pygimp/plug-ins/python-console.py
17
#!/usr/bin/env python # Gimp-Python - allows the writing of Gimp plugins in Python. # Copyright (C) 1997 James Henstridge <james@daa.com.au> # # 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 Fou...
dusenberrymw/systemml
refs/heads/master
src/main/python/systemml/random/sampling.py
13
#------------------------------------------------------------- # # 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...
indictranstech/erpnext
refs/heads/develop
erpnext/hr/doctype/salary_structure/salary_structure.py
15
# 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.utils import flt, cint, getdate from frappe import _ from frappe.model.mapper import get_mapped_doc from frappe.model.documen...
tcmitchell/geni-tools
refs/heads/develop
src/gcf/geni/gch.py
3
#---------------------------------------------------------------------- # Copyright (c) 2011-2016 Raytheon BBN Technologies # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and/or hardware specification (the "Work") to # deal in the Work without restriction, including ...
Sendinel/Sendinel
refs/heads/master
configs/sendinel/local_settings_test.py
1
AUTHENTICATION_ENABLED = True AUTHENTICATION_ENABLED = AUTHENTICATION_ENABLED = AUTHENTICATION_ENABLED = AUTHENTICATION_ENABLED = AUTHENTICATION_ENABLED = AUTHENTICATION_ENABLED = AUTHENTICATION_ENABLED = AUTHENTICATION_ENABLED = AUTHENTICATION_ENABLED = True
jerli/sympy
refs/heads/master
sympy/functions/special/tests/test_bsplines.py
83
from sympy.functions import bspline_basis_set from sympy.core.compatibility import range from sympy import Piecewise, Interval from sympy import symbols, Rational x, y = symbols('x,y') def test_basic_degree_0(): d = 0 knots = range(5) splines = bspline_basis_set(d, knots, x) for i in range(len(spline...
theguardian/headphones
refs/heads/master
lib/yaml/serializer.py
561
__all__ = ['Serializer', 'SerializerError'] from error import YAMLError from events import * from nodes import * class SerializerError(YAMLError): pass class Serializer(object): ANCHOR_TEMPLATE = u'id%03d' def __init__(self, encoding=None, explicit_start=None, explicit_end=None, version=No...
voutilad/courtlistener
refs/heads/master
cl/opinion_page/sitemap.py
1
from django.conf import settings from cl.sitemap import make_sitemap_solr_params, make_solr_sitemap def opinion_sitemap_maker(request): return make_solr_sitemap( request, settings.SOLR_OPINION_URL, make_sitemap_solr_params('dateFiled asc', 'o_sitemap'), 'yearly', ['pdf', '...
EDUlib/edx-platform
refs/heads/master
lms/djangoapps/discussion/views.py
1
""" Views handling read (GET) requests for the Discussion tab and inline discussions. """ import logging from functools import wraps from django.conf import settings from django.contrib.auth.decorators import login_required from django.contrib.auth.models import User # lint-amnesty, pylint: disable=imported-auth-us...
gwAdvNet2015/adv-net-samples
refs/heads/master
sdn/pox/tests/unit/__init__.py
92
# Copyright 2011-2012 Andreas Wundsam # # 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...
packethost/packet-python
refs/heads/master
packet/Project.py
1
# -*- coding: utf-8 -*- # SPDX-License-Identifier: LGPL-3.0-only class Project: def __init__(self, data, manager): self.manager = manager self.id = data.get("id") self.name = data.get("name") self.payment_method = data.get("payment_method", []) self.max_projects = data.get...
leonardowolf/bookfree
refs/heads/master
flask/lib/python2.7/site-packages/mako/__init__.py
22
# mako/__init__.py # Copyright (C) 2006-2016 the Mako authors and contributors <see AUTHORS file> # # This module is part of Mako and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php __version__ = '1.0.4'
mavit/ansible
refs/heads/devel
test/sanity/compile/compile.py
81
#!/usr/bin/env python """Python syntax checker with lint friendly output.""" import parser import sys def main(): status = 0 for path in sys.argv[1:] or sys.stdin.read().splitlines(): with open(path, 'r') as source_fd: source = source_fd.read() try: parser.suite(sour...
adedayo/intellij-community
refs/heads/master
python/testData/refactoring/move/moveNamespacePackage3/after/src/b.py
79
import nspkg.a print(nspkg.a.VAR)
tomsilver/nupic
refs/heads/master
nupic/frameworks/opf/model.py
1
# ---------------------------------------------------------------------- # 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...
projectweekend/Cards-API
refs/heads/master
app/middleware/json_response.py
1
import json class JSONResponse(object): def process_response(self, req, res, resource): if 'result' in req.context: res.body = json.dumps(req.context['result']) else: res.body = None
taojinjing/saogd-1329-gcloud
refs/heads/master
lib/werkzeug/contrib/jsrouting.py
318
# -*- coding: utf-8 -*- """ werkzeug.contrib.jsrouting ~~~~~~~~~~~~~~~~~~~~~~~~~~ Addon module that allows to create a JavaScript function from a map that generates rules. :copyright: (c) 2013 by the Werkzeug Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ ...
feilaoda/CloudChat
refs/heads/master
wecoders/news/tests.py
24123
from django.test import TestCase # Create your tests here.
saurabh6790/medlib
refs/heads/master
webnotes/model/sync.py
34
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals """ Sync's doctype and docfields from txt files to database perms will get synced only if none exist """ import webnotes import os from webnotes.modules.import_file import im...
ekivemark/bofhirdev
refs/heads/master
appmgmt/views/application.py
1
# -*- coding: utf-8 -*- """ bofhirdev FILE: application Created: 11/5/15 10:50 PM """ from django.conf import settings from django.contrib import messages from django.core.urlresolvers import reverse_lazy from django.http import HttpResponseRedirect from django.shortcuts import render_to_response from django.template...
harisibrahimkv/django
refs/heads/master
django/views/generic/detail.py
39
from django.core.exceptions import ImproperlyConfigured from django.db import models from django.http import Http404 from django.utils.translation import gettext as _ from django.views.generic.base import ContextMixin, TemplateResponseMixin, View class SingleObjectMixin(ContextMixin): """ Provide the ability ...
wolfram74/numerical_methods_iserles_notes
refs/heads/master
venv/lib/python2.7/site-packages/numpy/matrixlib/defmatrix.py
38
from __future__ import division, absolute_import, print_function __all__ = ['matrix', 'bmat', 'mat', 'asmatrix'] import sys import numpy.core.numeric as N from numpy.core.numeric import concatenate, isscalar, binary_repr, identity, asanyarray from numpy.core.numerictypes import issubdtype # make translation table _n...
Maccimo/intellij-community
refs/heads/master
python/testData/codeInsight/smartEnter/multilineTupleLiteralLastElement.py
10
xs = ( 1, 2 <caret> )
MalloyPower/parsing-python
refs/heads/master
front-end/testsuite-python-lib/Python-3.6.0/Lib/asyncio/sslproto.py
1
import collections import warnings try: import ssl except ImportError: # pragma: no cover ssl = None from . import base_events from . import compat from . import protocols from . import transports from .log import logger def _create_transport_context(server_side, server_hostname): if server_side: ...
gregn610/workalendar
refs/heads/master
workalendar/europe/portugal.py
1
# -*- coding: utf-8 -*- from datetime import timedelta, date from workalendar.core import WesternCalendar, ChristianMixin class Portugal(WesternCalendar, ChristianMixin): "Portugal" include_good_friday = True include_easter_sunday = True FIXED_HOLIDAYS = WesternCalendar.FIXED_HOLIDAYS + ( (4,...
ikalnytskyi/sphinxcontrib-redoc
refs/heads/master
docs/conf.py
1
import os import pkg_resources project = 'sphinxcontrib-redoc' copyright = '2017, Ihor Kalnytskyi' release = pkg_resources.get_distribution('sphinxcontrib-redoc').version version = '.'.join(release.split('.')[:2]) extensions = ['sphinx.ext.extlinks', 'sphinxcontrib.redoc'] source_suffix = '.rst' master_doc = 'index'...
Sodki/ansible
refs/heads/devel
lib/ansible/modules/network/panos/panos_admin.py
78
#!/usr/bin/python # -*- coding: utf-8 -*- # # Ansible module to manage PaloAltoNetworks Firewall # (c) 2016, techbizdev <techbizdev@paloaltonetworks.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 publish...
chengdh/openerp-ktv
refs/heads/master
openerp/addons/l10n_be/__init__.py
8
# -*- 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...
patilsangram/erpnext
refs/heads/develop
erpnext/hr/doctype/leave_block_list/leave_block_list_dashboard.py
5
def get_data(): return { 'fieldname': 'leave_block_list', 'transactions': [ { 'items': ['Department'] } ] }
siosio/intellij-community
refs/heads/master
python/testData/intentions/convertVariadicParamNoUsages.py
21
def foo(**kwargs<caret>): print("ok")
patilsangram/erpnext
refs/heads/develop
erpnext/accounts/report/tds_computation_summary/__init__.py
12133432
maximinus/mpquiz
refs/heads/master
mpquiz/singleton/migrations/__init__.py
12133432
madkinder/distcc
refs/heads/master
include_server/__init__.py
12133432
joequery/django
refs/heads/master
django/conf/locale/hu/__init__.py
12133432
MiltosD/CEF-ELRC
refs/heads/master
lib/python2.7/site-packages/unidecode/x07c.py
252
data = ( 'Ze ', # 0x00 'Xi ', # 0x01 'Guo ', # 0x02 'Yi ', # 0x03 'Hu ', # 0x04 'Chan ', # 0x05 'Kou ', # 0x06 'Cu ', # 0x07 'Ping ', # 0x08 'Chou ', # 0x09 'Ji ', # 0x0a 'Gui ', # 0x0b 'Su ', # 0x0c 'Lou ', # 0x0d 'Zha ', # 0x0e 'Lu ', # 0x0f 'Nian ', # 0x10 'Suo ', ...
ujvl/ray-ng
refs/heads/master
rllib/examples/serving/cartpole_server.py
2
from __future__ import absolute_import from __future__ import division from __future__ import print_function """Example of running a policy server. Copy this file for your use case. To try this out, in two separate shells run: $ python cartpole_server.py $ python cartpole_client.py """ import os from gym impo...
notnola/pyalienfx
refs/heads/master
usb/__init__.py
10
# Copyright (C) 2009-2011 Wander Lairson Costa # # The following terms apply to all files associated # with the software unless explicitly disclaimed in individual files. # # The authors hereby grant permission to use, copy, modify, distribute, # and license this software and its documentation for any purpose, provi...
maxim-kht/django-rest-auth
refs/heads/master
rest_auth/tests/urls.py
4
from django.conf.urls import url, include from django.views.generic import TemplateView from . import django_urls from allauth.socialaccount.providers.facebook.views import FacebookOAuth2Adapter from allauth.socialaccount.providers.twitter.views import TwitterOAuthAdapter from rest_framework.decorators import api_vie...
dannyperry571/theapprentice
refs/heads/master
script.module.youtube.dl/lib/youtube_dl/extractor/playtvak.py
36
# coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from ..compat import ( compat_urlparse, compat_urllib_parse_urlencode, ) from ..utils import ( ExtractorError, int_or_none, parse_iso8601, qualities, ) class PlaytvakIE(InfoExtractor): IE_DESC = 'Pla...
jscott413/maidsinharlem
refs/heads/master
flask/lib/python2.7/site-packages/pip/models/index.py
917
from pip._vendor.six.moves.urllib import parse as urllib_parse class Index(object): def __init__(self, url): self.url = url self.netloc = urllib_parse.urlsplit(url).netloc self.simple_url = self.url_to_path('simple') self.pypi_url = self.url_to_path('pypi') self.pip_json_ur...
proximo256/kernel_samsung_exynos7420
refs/heads/cm-12.1
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...
sgarrity/bedrock
refs/heads/master
tests/redirects/map_301.py
3
from .base import flatten, url_test URLS = flatten(( # from org-urls-301.txt url_test('/projects/firefox/build.html', 'http://developer.mozilla.org/en/Build_Documentation'), url_test('/projects/firefox/extensions/index.html', 'http://developer.mozilla.org/en/Extensions'), url...
lxybox1/MissionPlanner
refs/heads/master
Lib/site-packages/scipy/signal/spectral.py
53
import sys if sys.platform == 'cli': import clr clr.AddReference("signal") from scipy__signal__spectral import *
systers/postorius
refs/heads/develop
example_project/__init__.py
12133432
appapantula/scikit-learn
refs/heads/master
examples/applications/topics_extraction_with_nmf_lda.py
133
""" ======================================================================================== Topics extraction with Non-Negative Matrix Factorization And Latent Dirichlet Allocation ======================================================================================== This is an example of applying Non Negative Matr...
blazewicz/micropython
refs/heads/master
tests/wipy/wdt.py
69
''' WDT test for the CC3200 based boards ''' from machine import WDT import time # test the invalid cases first try: wdt = WDT(1) except Exception: print("Exception") try: wdt = WDT(0, 500) except Exception: print("Exception") try: wdt = WDT(1, timeout=2000) except Exception: print("Exceptio...
dext3r/lpc3xxx-ea3250v2
refs/heads/master
tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/SchedGui.py
12980
# SchedGui.py - Python extension for perf script, basic GUI code for # traces drawing and overview. # # Copyright (C) 2010 by Frederic Weisbecker <fweisbec@gmail.com> # # This software is distributed under the terms of the GNU General # Public License ("GPL") version 2 as published by the Free Software # Foundation. ...
wndhydrnt/airflow
refs/heads/master
airflow/config_templates/default_celery.py
3
# -*- coding: utf-8 -*- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the #...
ambikeshwar1991/gnuradio-3.7.4
refs/heads/master
docs/sphinx/source/blocks/get_blocks.py
20
""" This script regenerates the gnuradio.blocks sphinx source code. """ from gnuradio import blocks import sys import os doxyxml_location = os.path.abspath("../../../doxygen") xml_location = os.path.abspath("../../../../build/docs/doxygen/xml/") sys.path.append(doxyxml_location) from doxyxml import DoxyIndex, DoxyCl...
yinchunlong/abelkhan-1
refs/heads/master
ext/c++/thirdpart/c++/boost/tools/build/test/custom_generator.py
17
#!/usr/bin/python # Copyright 2003, 2004, 2005 Vladimir Prus # Distributed under the Boost Software License, Version 1.0. # (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) # Attempt to declare a generator for creating OBJ from RC files. That generator # should be considered together wi...
Nuclearfossil/ATF
refs/heads/master
Test/FunctionalTests/FsmEditorTestScripts/InsertTransitions.py
10
#Copyright (c) 2014 Sony Computer Entertainment America LLC. See License.txt. import sys sys.path.append("./CommonTestScripts") import Test import FsmUtil atfDocService.OpenNewDocument(editor) statesLeft = [] statesRight = [] transitions = [] trnCnt = 10 print "First create a bunch of states" for i in range(trnCnt...
altsen/diandiyun-platform
refs/heads/master
lms/djangoapps/psychometrics/management/__init__.py
12133432
marcsit/spiops
refs/heads/master
spiops/test/__init__.py
12133432
Kungbib/CIPAC
refs/heads/master
webapp/kortkatalogen/hsnominal/management/__init__.py
12133432
zouyapeng/horizon
refs/heads/stable/juno
openstack_dashboard/dashboards/project/data_processing/data_image_registry/__init__.py
12133432
hamtamtots/sweetshopwebsite
refs/heads/master
sweetshop_site/home/views/__init__.py
12133432
kisel/trex-core
refs/heads/master
scripts/external_libs/pyzmq-14.5.0/python3/ucs4/64bit/zmq/tests/test_error.py
41
# -*- coding: utf8 -*- # Copyright (C) PyZMQ Developers # Distributed under the terms of the Modified BSD License. import sys import time import zmq from zmq import ZMQError, strerror, Again, ContextTerminated from zmq.tests import BaseZMQTestCase if sys.version_info[0] >= 3: long = int class TestZMQError(BaseZ...
petabytekr/namebench
refs/heads/master
nb_third_party/dns/rdtypes/ANY/SOA.py
246
# Copyright (C) 2003-2007, 2009, 2010 Nominum, Inc. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose with or without fee is hereby granted, # provided that the above copyright notice and this permission notice # appear in all copies. # # THE SOFTWARE IS PROVIDED ...
GoogleCloudPlatform/python-docs-samples
refs/heads/master
appengine/standard/storage/appengine-client/main.py
1
#!/usr/bin/env python # Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
savoirfairelinux/santropol-feast
refs/heads/dev
src/dataexec.py
2
# usage : python dataexec.py [santropolFeast.settingsSPECIAL] import os import sys def run(): if len(sys.argv) > 1: settings = sys.argv[1] else: settings = 'sous_chef.settings' os.environ['DJANGO_SETTINGS_MODULE'] = settings import django django.setup() from dataload import ins...
sprymix/python-dateutil
refs/heads/master
dateutil/test/__init__.py
12133432
tfroehlich82/erpnext
refs/heads/develop
erpnext/healthcare/doctype/normal_test_template/__init__.py
12133432
jimi-c/ansible
refs/heads/devel
lib/ansible/module_utils/network/ios/__init__.py
12133432
dattatreya303/zulip
refs/heads/master
zerver/webhooks/heroku/__init__.py
12133432
sicklem/google-python-exercises
refs/heads/master
basic/string2.py
1
#!/usr/bin/python2.4 -tt # Copyright 2010 Google Inc. # Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # Google's Python Class # http://code.google.com/edu/languages/google-python-class/ # Additional basic string exercises # D. verbing # Given a string, if its length is a...