repo_name
stringlengths
5
100
ref
stringlengths
12
67
path
stringlengths
4
244
copies
stringlengths
1
8
content
stringlengths
0
1.05M
OpenDaisy/daisy-api
refs/heads/master
daisy/api/configset/__init__.py
12133432
jhaals/ansible-modules-core
refs/heads/devel
files/__init__.py
12133432
Tokyo-Buffalo/tokyosouth
refs/heads/master
env/lib/python3.6/site-packages/twisted/web/proxy.py
15
# -*- test-case-name: twisted.web.test.test_proxy -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Simplistic HTTP proxy support. This comes in two main variants - the Proxy and the ReverseProxy. When a Proxy is in use, a browser trying to connect to a server (say, www.yahoo.com) will ...
ibm-security-intelligence/api-samples
refs/heads/master
data_classification/02_LowLevelCategories.py
1
#!/usr/bin/env python3 # This sample script demonstrates how to # 1. get a list of low level categories # 2. get a single low level category by its id import importlib import json import os import sys sys.path.append(os.path.realpath('../modules')) client_module = importlib.import_module('RestApiClient') SampleUtilit...
alexandregz/simian
refs/heads/master
src/simian/util/appid_generator.py
5
#!/usr/bin/env python # # Copyright 2010 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
meabsence/python-for-android
refs/heads/master
python-build/python-libs/gdata/build/lib/gdata/spreadsheet/__init__.py
147
#!/usr/bin/python # # Copyright (C) 2007 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 ...
SynerconTechnologies/FLA-Kernel
refs/heads/master
tools/perf/util/setup.py
220
#!/usr/bin/python2 from distutils.core import setup, Extension from os import getenv from distutils.command.build_ext import build_ext as _build_ext from distutils.command.install_lib import install_lib as _install_lib class build_ext(_build_ext): def finalize_options(self): _build_ext.finalize_optio...
emilio/servo
refs/heads/master
components/script/dom/bindings/codegen/parser/tests/test_extended_attributes.py
13
import WebIDL def WebIDLTest(parser, harness): parser.parse(""" [NoInterfaceObject] interface TestExtendedAttr { [Unforgeable] readonly attribute byte b; }; """) results = parser.finish() parser = parser.reset() parser.parse(""" [Pref="foo.bar",Pref=flop]...
hexlism/css_platform
refs/heads/master
sleepyenv/lib/python2.7/site-packages/boto-2.38.0-py2.7.egg/boto/kms/layer1.py
55
# Copyright (c) 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved # # 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 ...
magopian/django-data-exports
refs/heads/master
data_exports/migrations/0003_auto__add_field_column_order.py
1
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Column.order' db.add_column('data_exports_column', 'order', self.gf('django.db.models.fiel...
harlanhaskins/swift
refs/heads/master
utils/swift_build_sdk_interfaces.py
4
#!/usr/bin/env python from __future__ import print_function import argparse import errno import itertools import json import multiprocessing import os import shutil import subprocess import sys import traceback BARE_INTERFACE_SEARCH_PATHS = [ "usr/lib/swift", "System/iOSSupport/usr/lib/swift" ] DEFAULT_FRAME...
hugonomura/google-python-exercises
refs/heads/master
basic/list1.py
1
#!/usr/bin/python -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/ # Basic list exercises # Fill in the code for the functions below. main() is already set ...
romonzaman/newfies-dialer
refs/heads/develop
newfies/appointment/templatetags/__init__.py
12133432
kenshay/ImageScripter
refs/heads/master
ProgramData/SystemFiles/Python/Lib/site-packages/OpenGL/GL/ATI/draw_buffers.py
9
'''OpenGL extension ATI.draw_buffers This module customises the behaviour of the OpenGL.raw.GL.ATI.draw_buffers to provide a more Python-friendly API Overview (from the spec) This extension extends ARB_fragment_program to allow multiple output colors, and provides a mechanism for directing those outputs to m...
ax003d/openerp
refs/heads/master
openerp/addons/survey/wizard/survey_print_answer.py
54
# -*- encoding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-TODAY OpenERP S.A. <http://www.openerp.com> # # This program is free software: you can redistribute it and/or modify # it under the terms...
cdepman/falcon_api
refs/heads/master
site-packages/falcon/bench/queues/__init__.py
12133432
cisco-openstack/networking-cisco
refs/heads/staging/libertyplus
networking_cisco/plugins/ml2/__init__.py
12133432
gitsimon/tq_website
refs/heads/master
courses/migrations/__init__.py
12133432
kangfend/django
refs/heads/master
django/contrib/staticfiles/management/commands/__init__.py
12133432
praekeltfoundation/ndoh-hub
refs/heads/develop
scripts/migrate_to_whatsapp_templates/postbirth1.py
1
import sys from scripts.migrate_to_whatsapp_templates.base import BaseMigration class Postbirth1Migration(BaseMigration): MSGS_PER_WEEK = 2 def get_template_name(self, message): if int(message["sequence_number"]) < 17: return "mc_postbirth1" return "mc_postbirth2" def get_we...
Gumtree/Kookaburra_scripts
refs/heads/master
Internal/KKB-Plot - lela timestamp.py
1
__script__.title = 'HMM Tube Export14.1.2017 NEW Plot timestamp' __script__.version = '14.1.2017 NEW Plot timestamp' #from gumpy.nexus.fitting import Fitting, GAUSSIAN_FITTING from math import exp, fabs, sin, sqrt __FOLDER_PATH__ = 'V:/shared/KKB Logbook/Temp Plot Data Repository' #__FOLDER_PATH__ = 'C:/te...
Pablo126/SSBW
refs/heads/master
Tarea3/tarea3/lib/python3.5/site-packages/pip/cmdoptions.py
327
""" shared options and groups The principle here is to define options once, but *not* instantiate them globally. One reason being that options with action='append' can carry state between parses. pip parses general options twice internally, and shouldn't pass on state. To be consistent, all options will follow this de...
grahambell/taco-python
refs/heads/master
ti-java/__init__.py
12133432
zubairalam/ng_login
refs/heads/master
ng_login/__init__.py
12133432
pquentin/django
refs/heads/stable/1.8.x
django/contrib/sessions/migrations/__init__.py
12133432
direvus/ansible
refs/heads/devel
test/integration/targets/module_utils/module_utils/yak/__init__.py
12133432
11rohans/dogs
refs/heads/master
dogs/__init__.py
12133432
SCOAP3/scoap3-next
refs/heads/master
scoap3/modules/oauth2server/__init__.py
12133432
CareerVillage/slack-moderation
refs/heads/master
tools/__init__.py
12133432
naparuba/shinken
refs/heads/master
test/test_nullinheritance.py
18
#!/usr/bin/env python # Copyright (C) 2009-2014: # Gabes Jean, naparuba@gmail.com # Gerhard Lausser, Gerhard.Lausser@consol.de # # This file is part of Shinken. # # Shinken 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 F...
pedrobaeza/odoo
refs/heads/master
addons/auth_oauth/ir_configparameter.py
423
# -*- coding: utf-8 -*- from openerp import SUPERUSER_ID from openerp.osv import osv class ir_configparameter(osv.Model): _inherit = 'ir.config_parameter' def init(self, cr, force=False): super(ir_configparameter, self).init(cr, force=force) if force: IMD = self.pool['ir.model.data...
Nikoala/CouchPotatoServer
refs/heads/develop
libs/tornado/gen.py
36
"""``tornado.gen`` is a generator-based interface to make it easier to work in an asynchronous environment. Code using the ``gen`` module is technically asynchronous, but it is written as a single generator instead of a collection of separate functions. For example, the following asynchronous handler:: class Asy...
petrutlucian94/cinder
refs/heads/master
cinder/zonemanager/drivers/cisco/fc_zone_constants.py
45
# (c) Copyright 2014 Cisco Systems Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unl...
smmribeiro/intellij-community
refs/heads/master
python/testData/refactoring/rename/renameLocalWithComprehension_after.py
83
parameter_lists_copy = [bar for bar in parameter_lists] for bar in parameter_lists_copy: if param_index >= len(bar.GetParameters()): parameter_lists.remove(bar)
waseem18/oh-mainline
refs/heads/master
vendor/packages/scrapy/scrapy/commands/edit.py
26
import sys, os from scrapy.command import ScrapyCommand from scrapy.exceptions import UsageError class Command(ScrapyCommand): requires_project = True default_settings = {'LOG_ENABLED': False} def syntax(self): return "<spider>" def short_desc(self): return "Edit spider" def lo...
quickresolve/accel.ai
refs/heads/master
flask-aws/lib/python2.7/site-packages/boto/mws/__init__.py
429
# Copyright (c) 2008, Chris Moyer http://coredumped.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, modify, ...
SlimRoms/kernel_samsung_tuna
refs/heads/mm6.0
tools/perf/util/setup.py
2554
#!/usr/bin/python2 from distutils.core import setup, Extension from os import getenv cflags = ['-fno-strict-aliasing', '-Wno-write-strings'] cflags += getenv('CFLAGS', '').split() perf = Extension('perf', sources = ['util/python.c', 'util/ctype.c', 'util/evlist.c', 'util/evsel.c', 'util/cpumap.c', 'util/...
peterfraedrich/passgen
refs/heads/master
apache/cgi-bin/generate.py
1
#!/usr/bin/python import cgitb cgitb.enable() import os import logging import random as rand import sys import cgi from datetime import datetime def log(message): if os.path.exists('/var/log/passgen.log'): r = 'a' else: r = 'w+' m = datetime.now().strftime('%Y:%M:%d %h:%m:%s -- ') + str(message) + '\n' f = ope...
jzoldak/edx-platform
refs/heads/master
lms/djangoapps/commerce/exceptions.py
183
""" E-Commerce-related exceptions. """ class InvalidResponseError(Exception): """ Exception raised when an API response is invalid. """ pass
cloud9UG/odoo
refs/heads/8.0
addons/mail/controllers/__init__.py
3646
import main # vim:expandtab:tabstop=4:softtabstop=4:shiftwidth=4:
figo-connect/schwifty
refs/heads/master
schwifty/bic.py
1
from functools import partial import re import iso3166 from schwifty.common import Base from schwifty import registry _bic_re = re.compile(r'[A-Z]{4}[A-Z]{2}[A-Z0-9]{2}(?:[A-Z0-9]{3})?') class BIC(Base): """The BIC object. Examples: You can either create a new BIC object by providing a code as t...
kapt/Geo
refs/heads/master
geo/forms.py
1
# -*- coding: utf-8 -*- import re import unicodedata from django import forms from django.forms.widgets import TextInput from django.template.defaultfilters import slugify from django.utils.translation import ugettext as _ from django.utils.safestring import mark_safe from geo.models import * from geo.utils import rem...
a-buck/airmozilla
refs/heads/master
airmozilla/new/views.py
1
import json import os from cStringIO import StringIO from xml.parsers.expat import ExpatError from django import http from django.shortcuts import render, get_object_or_404, redirect from django.db import transaction from django.conf import settings from django.utils import timezone from django.db.models import Count ...
ujenmr/ansible
refs/heads/devel
test/runner/lib/powershell_import_analysis.py
102
"""Analyze powershell import statements.""" from __future__ import absolute_import, print_function import os import re from lib.util import ( display, ) def get_powershell_module_utils_imports(powershell_targets): """Return a dictionary of module_utils names mapped to sets of powershell file paths. :ty...
gerpsh/pyitunes
refs/heads/master
setup.py
2
from setuptools import setup, find_packages setup( name="pyItunes", version="1.3", license='MIT', author="Liam Kaufman", author_email="", url="https://github.com/liamks/pyitunes", description="Python Itunes Library parser", long_description=open("README.md").read(), classifiers=[ ...
rahuldan/sympy
refs/heads/master
sympy/core/tests/test_eval_power.py
32
from sympy.core import ( Rational, Symbol, S, Float, Integer, Number, Pow, Basic, I, nan, pi, symbols, oo, zoo) from sympy.core.tests.test_evalf import NS from sympy.functions.elementary.miscellaneous import sqrt, cbrt from sympy.functions.elementary.exponential import exp, log from sympy.functions.elementary.t...
CBM64-SDC/CBM64-SDC
refs/heads/master
Vehicle Detection/ssd_layers.py
3
"""Some special pupropse layers for SSD.""" import keras.backend as K from keras.engine.topology import InputSpec from keras.engine.topology import Layer import numpy as np import tensorflow as tf class Normalize(Layer): """Normalization layer as described in ParseNet paper. # Arguments scale: Defau...
ViaSat/luigi
refs/heads/master
test/server_test.py
10
# -*- coding: utf-8 -*- # # Copyright 2012-2015 Spotify AB # # 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...
tiagofrepereira2012/tensorflow
refs/heads/master
tensorflow/contrib/cluster_resolver/python/training/gce_cluster_resolver.py
11
# 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 applicable ...
int19h/PTVS
refs/heads/master
Python/Product/Miniconda/Miniconda3-x64/Lib/site-packages/conda/common/constants.py
7
# -*- coding: utf-8 -*- # Copyright (C) 2012 Anaconda, Inc # SPDX-License-Identifier: BSD-3-Clause from __future__ import absolute_import, division, print_function, unicode_literals from .._vendor.auxlib import NULL # Use this NULL object when needing to distinguish a value from None # For example, when parsing json,...
guydavis/lane-detect
refs/heads/master
older/lane_detect.v2.py
1
# # Attempting to replicate lane detection results described in this tutorial by Naoki Shibuya: # https://medium.com/towards-data-science/finding-lane-lines-on-the-road-30cf016a1165 # For more see: https://github.com/naokishibuya/car-finding-lane-lines # # This 2nd version does a much better job of processing images. ...
0Chencc/CTFCrackTools
refs/heads/master
Lib/distutils/archive_util.py
249
"""distutils.archive_util Utility functions for creating archive files (tarballs, zip files, that sort of thing).""" __revision__ = "$Id$" import os from warnings import warn import sys from distutils.errors import DistutilsExecError from distutils.spawn import spawn from distutils.dir_util import mkpath from distu...
apollo13/ansible
refs/heads/devel
lib/ansible/plugins/connection/__init__.py
26
# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com> # (c) 2015 Toshio Kuratomi <tkuratomi@ansible.com> # (c) 2017, Peter Sprygada <psprygad@redhat.com> # (c) 2017 Ansible Project from __future__ import (absolute_import, division, print_function) __metaclass__ = type import fcntl import os import shlex from abc...
linjoahow/w17test_1
refs/heads/master
static/Brython3.1.3-20150514-095342/Lib/unittest/test/testmock/testsentinel.py
736
import unittest from unittest.mock import sentinel, DEFAULT class SentinelTest(unittest.TestCase): def testSentinels(self): self.assertEqual(sentinel.whatever, sentinel.whatever, 'sentinel not stored') self.assertNotEqual(sentinel.whatever, sentinel.whateverelse, ...
ingokegel/intellij-community
refs/heads/master
python/testData/resolve/multiFile/functionAndSubmoduleNamedIdentically/p1/__init__.py
83
from m1 import m1
ellak-monades-aristeias/enhydris
refs/heads/master
enhydris/hcore/views.py
1
import base64 import calendar import csv from datetime import datetime, timedelta import json import linecache import math import mimetypes import os import re import tempfile from tempfile import mkstemp import urllib2 from zipfile import ZipFile, ZIP_DEFLATED from django.contrib import messages from django.contrib.a...
alisidd/tensorflow
refs/heads/asgd-dc
tensorflow/contrib/solvers/python/kernel_tests/lanczos_test.py
128
# 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...
broferek/ansible
refs/heads/devel
lib/ansible/modules/storage/netapp/na_ontap_flexcache.py
38
#!/usr/bin/python # (c) 2019, 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': ['preview'], ...
chhao91/QGIS
refs/heads/master
python/plugins/processing/algs/gdal/sieve.py
11
# -*- coding: utf-8 -*- """ *************************************************************************** sieve.py --------------------- Date : August 2012 Copyright : (C) 2012 by Victor Olaya Email : volayaf at gmail dot com *********************************...
edcast-inc/edx-platform-edcast
refs/heads/master
common/djangoapps/cm_plugin/migrations/0002_auto__del_field_cmgradebook_gb_type.py
1
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Deleting field 'CmGradebook.gb_type' db.delete_column('cm_plugin_cmgradebook', 'gb_type') def backwa...
jeff-regier/pygrams
refs/heads/master
src/convert_docs.py
1
#!/usr/bin/python # Copyright 2008, Jeffrey Regier, jeff [at] stat [dot] berkeley [dot] edu # This file is part of PyGrams. # # PyGrams 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...
isida/4
refs/heads/master
lib/chardet/gb2312freq.py
3
######################## BEGIN LICENSE BLOCK ######################## # The Original Code is Mozilla Communicator client code. # # The Initial Developer of the Original Code is # Netscape Communications Corporation. # Portions created by the Initial Developer are Copyright (C) 1998 # the Initial Developer. All Rights R...
neomanu/NeoKernel-MT6589-A116
refs/heads/expt
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...
Jayin/ComputerScience
refs/heads/master
AlgorithmicAnalysis/实验五/test.py
1
# -*- coding: utf-8 -*- __author__ = 'jayin' import ex5 # -> 4 ex5.main(4, 5, 1, 1) #-> 7 ex5.main(4, 5, 1, 2) #-> 5 ex5.main(4, 5, 2, 1) #-> 8 ex5.main(4, 5, 2, 4)
colaftc/webtool
refs/heads/master
top/api/rest/VasSubscSearchRequest.py
1
''' Created by auto_sdk on 2014.06.04 ''' from top.api.base import RestApi class VasSubscSearchRequest(RestApi): def __init__(self,domain='gw.api.taobao.com',port=80): RestApi.__init__(self,domain, port) self.article_code = None self.autosub = None self.end_deadline = None self.expire_notice = None...
svola/fantasticsearch
refs/heads/master
fantasticsearch/__init__.py
1
from flask import Flask fantasticsearch = Flask(__name__) from fantasticsearch import views
Kabele/ZCR-Shellcoder
refs/heads/master
lib/encoder/osx/inc_timesyouwant.py
200
#!/usr/bin/env python ''' ZCR Shellcoder ZeroDay Cyber Research Z3r0D4y.Com Ali Razmjoo ''' def start(type,shellcode,job): if 'chmod(' in job: shellcode = 'N' + shellcode if 'dir_create(' in job: shellcode = 'N' + shellcode if 'download_execute(' in job: shellcode = 'N' + shellcode if 'download(' in job: ...
JshWright/django-allauth
refs/heads/master
allauth/socialaccount/providers/linkedin/__init__.py
12133432
lutris/website
refs/heads/master
providers/management/__init__.py
12133432
eyohansa/django
refs/heads/master
tests/aggregation/__init__.py
12133432
jcoady9/python-for-android
refs/heads/master
python-modules/twisted/twisted/scripts/test/test_mktap.py
60
# Copyright (c) 2008 Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for L{twisted.scripts.mktap}. """ import sys try: import pwd, grp except ImportError: pwd = None from twisted.trial.unittest import TestCase from twisted.scripts.mktap import run, getid, loadPlugins from twisted.applicati...
ChawalitK/odoo
refs/heads/master
openerp/addons/test_workflow/__openerp__.py
3
# -*- coding: utf-8 -*- { 'name': 'test-workflow', 'version': '0.1', 'category': 'Tests', 'description': """A module to play with workflows.""", 'maintainer': 'OpenERP SA', 'depends': ['base'], 'data': ['data.xml', 'ir.model.access.csv'], 'installable': True, 'auto_install': False, }...
halostatue/ansible
refs/heads/devel
lib/ansible/parsing/vault/__init__.py
72
# (c) 2014, James Tanner <tanner.jc@gmail.com> # # 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 distributed i...
oscharvard/Flask-CAS
refs/heads/master
flask_cas/cas_urls.py
5
""" flask_cas.cas_urls Functions for creating urls to access CAS. """ try: from urllib import quote from urllib import urlencode from urlparse import urljoin except ImportError: from urllib.parse import quote from urllib.parse import urljoin from urllib.parse import urlencode def create_url(...
TarasRudnyk/scrapy
refs/heads/master
scrapy/contrib/downloadermiddleware/downloadtimeout.py
144
import warnings from scrapy.exceptions import ScrapyDeprecationWarning warnings.warn("Module `scrapy.contrib.downloadermiddleware.downloadtimeout` is deprecated, " "use `scrapy.downloadermiddlewares.downloadtimeout` instead", ScrapyDeprecationWarning, stacklevel=2) from scrapy.downloadermid...
aneumeier/category
refs/heads/master
setup.py
1
import os from setuptools import setup from category import __version__ # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read() setup( name='category', version=__versio...
Chetwyn/git-cola
refs/heads/master
cola/decorators.py
7
from __future__ import division, absolute_import, unicode_literals __all__ = ('decorator', 'memoize', 'interruptable') import errno def decorator(caller, func=None): """ Create a new decorator decorator(caller) converts a caller function into a decorator; decorator(caller, func) decorates a functio...
boomsbloom/dtm-fmri
refs/heads/master
DTM/for_gensim/lib/python2.7/site-packages/pip/cmdoptions.py
327
""" shared options and groups The principle here is to define options once, but *not* instantiate them globally. One reason being that options with action='append' can carry state between parses. pip parses general options twice internally, and shouldn't pass on state. To be consistent, all options will follow this de...
deccico/gowest
refs/heads/master
gowestapp/gowest/__init__.py
12133432
Juniper/python-neutronclient
refs/heads/master
neutronclient/tests/unit/__init__.py
12133432
darkdrei/GestionRegistro
refs/heads/master
usuario/migrations/__init__.py
12133432
ovnicraft/edx-platform
refs/heads/master
lms/djangoapps/notifier_api/__init__.py
12133432
thom-at-redhat/cfme_tests
refs/heads/master
scripts/appliance_spring.py
1
#!/usr/bin/env python2 from utils import providers from utils import conf import threading import datetime import time from utils import pretty import re import sys import argparse # don't allow template names to specify any queue larger than this queue_size_guard = 10 class Queue(pretty.Pretty): pretty_attrs = ...
takeflight/django
refs/heads/master
tests/custom_migration_operations/__init__.py
12133432
MartinEnder/erpnext-de
refs/heads/develop
erpnext/hr/doctype/hr_settings/__init__.py
12133432
dgjustice/ansible
refs/heads/devel
lib/ansible/modules/network/dellos6/__init__.py
12133432
mcardillo55/django
refs/heads/master
tests/migrations/migrations_test_apps/alter_fk/book_app/migrations/__init__.py
12133432
libcrosswind/libcrosswind
refs/heads/master
platform/windows/compilers/x64/TDM-GCC-64/gdb64/bin/lib/distutils/emxccompiler.py
250
"""distutils.emxccompiler Provides the EMXCCompiler class, a subclass of UnixCCompiler that handles the EMX port of the GNU C compiler to OS/2. """ # issues: # # * OS/2 insists that DLLs can have names no longer than 8 characters # We put export_symbols in a def-file, as though the DLL can have # an arbitrary len...
centricular/meson
refs/heads/gst-msvc
mesonbuild/modules/__init__.py
12133432
Mazecreator/tensorflow
refs/heads/master
tensorflow/python/lib/core/__init__.py
12133432
spadae22/odoo
refs/heads/chris_master_8
addons/sale/wizard/sale_make_invoice.py
344
############################################################################## # # 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 Affero General Public L...
tlatzko/spmcluster
refs/heads/master
.tox/docs/lib/python2.7/site-packages/pip/vcs/__init__.py
280
"""Handles all VCS (version control) support""" from __future__ import absolute_import import errno import logging import os import shutil from pip._vendor.six.moves.urllib import parse as urllib_parse from pip.exceptions import BadCommand from pip.utils import (display_path, backup_dir, call_subprocess, ...
466152112/scikit-learn
refs/heads/master
sklearn/utils/multiclass.py
92
# Author: Arnaud Joly, Joel Nothman, Hamzeh Alsalhi # # License: BSD 3 clause """ Multi-class / multi-label utility function ========================================== """ from __future__ import division from collections import Sequence from itertools import chain import warnings from scipy.sparse import issparse fro...
etzhou/edx-platform
refs/heads/master
common/lib/xmodule/xmodule/tests/rendering/__init__.py
173
import core
gustavo-guimaraes/siga
refs/heads/master
backend/appengine/lib/unidecode/x0ff.py
252
data = ( '[?]', # 0x00 '!', # 0x01 '"', # 0x02 '#', # 0x03 '$', # 0x04 '%', # 0x05 '&', # 0x06 '\'', # 0x07 '(', # 0x08 ')', # 0x09 '*', # 0x0a '+', # 0x0b ',', # 0x0c '-', # 0x0d '.', # 0x0e '/', # 0x0f '0', # 0x10 '1', # 0x11 '2', # 0x12 '3', # 0x13 '4', ...
abhattad4/Digi-Menu
refs/heads/master
tests/gis_tests/gdal_tests/test_envelope.py
335
import unittest from unittest import skipUnless from django.contrib.gis.gdal import HAS_GDAL if HAS_GDAL: from django.contrib.gis.gdal import Envelope, GDALException class TestPoint(object): def __init__(self, x, y): self.x = x self.y = y @skipUnless(HAS_GDAL, "GDAL is required") class Env...
dims/heat
refs/heads/master
heat/engine/resources/openstack/mistral/cron_trigger.py
2
# # 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 # ...
bigzaqui/ansible
refs/heads/devel
contrib/inventory/ovirt.py
112
#!/usr/bin/env python # Copyright 2015 IIX 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 ver...
Zlash65/erpnext
refs/heads/develop
erpnext/education/doctype/fee_component/fee_component.py
54
# -*- coding: utf-8 -*- # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class FeeComponent(Document): pass
SEL-Columbia/commcare-hq
refs/heads/master
corehq/apps/smsforms/management/commands/close_deleted_sms_sessions.py
2
from django.core.management.base import BaseCommand, CommandError from corehq.apps.smsforms.models import XFormsSession from touchforms.formplayer.api import ( get_raw_instance, InvalidSessionIdException, ) class Command(BaseCommand): args = "" help = "" def handle(self, *args, **options): ...