repo_name
stringlengths
5
100
ref
stringlengths
12
67
path
stringlengths
4
244
copies
stringlengths
1
8
content
stringlengths
0
1.05M
jeremyksmith/py-editdist
refs/heads/master
setup.py
10
#!/usr/bin/env python # Copyright (c) 2006 Damien Miller <djm@mindrot.org> # # Permission to use, copy, modify, and distribute this software 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 ...
antonyr/django-haystack
refs/heads/master
haystack/urls.py
12
# encoding: utf-8 from __future__ import absolute_import, division, print_function, unicode_literals from django.conf.urls import url from haystack.views import SearchView urlpatterns = [ url(r'^$', SearchView(), name='haystack_search'), ]
horczech/coala-bears
refs/heads/master
bears/vcs/git/GitCommitBear.py
6
import nltk import re import shutil import os from urllib.parse import urlparse from coalib.bears.GlobalBear import GlobalBear from dependency_management.requirements.PipRequirement import PipRequirement from coala_utils.ContextManagers import change_directory from coalib.misc.Shell import run_shell_command from coali...
sammcj/explainshell
refs/heads/master
explainshell/manpage.py
5
import os, subprocess, re, logging, collections, urllib from explainshell import config, store, errors devnull = open(os.devnull, 'w') SPLITSYNOP = re.compile(r'([^ ]+) - (.*)$') ENV = dict(os.environ) ENV["W3MMAN_MAN"] = "man --no-hyphenation" ENV["MAN_KEEP_FORMATTING"] = "1" ENV["MANWIDTH"] = "115" logger = loggi...
abhishekgahlot/kivy
refs/heads/master
kivy/lib/ddsfile.py
46
''' DDS File library ================ This library can be used to parse and save DDS files. The initial version have been done by:: Alexey Borzenkov (snaury@gmail.com) All the initial work credits is going to him ! Thanks you :) This version is written without using ctypes, cause Kivy doesn't have ctypes supp...
robacklin/uclinux-linux
refs/heads/master
tools/perf/scripts/python/net_dropmonitor.py
4235
# Monitor the system for dropped packets and proudce a report of drop locations and counts import os import sys sys.path.append(os.environ['PERF_EXEC_PATH'] + \ '/scripts/python/Perf-Trace-Util/lib/Perf/Trace') from perf_trace_context import * from Core import * from Util import * drop_log = {} kallsyms = [] def...
kmike/yandex-maps
refs/heads/master
yandex_maps_tests/test_app/__init__.py
12133432
brianwoo/django-tutorial
refs/heads/master
build/Django/tests/sites_framework/__init__.py
12133432
Dhivyap/ansible
refs/heads/devel
lib/ansible/module_utils/network/eos/argspec/lacp_interfaces/__init__.py
12133432
melizeche/pySTP
refs/heads/master
apps/tablerocp/__init__.py
12133432
alihalabyah/grab
refs/heads/master
grab/transport/__init__.py
12133432
trezorg/django
refs/heads/master
django/contrib/localflavor/generic/__init__.py
12133432
zyj123/learn-python3
refs/heads/master
samples/advance/do_iter.py
19
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from collections import Iterable, Iterator def g(): yield 1 yield 2 yield 3 print('Iterable? [1, 2, 3]:', isinstance([1, 2, 3], Iterable)) print('Iterable? \'abc\':', isinstance('abc', Iterable)) print('Iterable? 123:', isinstance(123, Iterable)) print('Iter...
karnikamit/python
refs/heads/master
Matafight/0004/countWord.py
76
#_*_ encoding: utf-8 _*_ import re inputfile=file("test.txt",'r'); count=0; for line in inputfile.readlines(): word=re.findall(r"\w+",line); count+=len(word); print "total wordcount is "+ str(count); inputfile.close();
pgleeson/TempRepo3
refs/heads/master
lib/jython/Lib/encodings/cp950.py
816
# # cp950.py: Python Unicode Codec for CP950 # # Written by Hye-Shik Chang <perky@FreeBSD.org> # import _codecs_tw, codecs import _multibytecodec as mbc codec = _codecs_tw.getcodec('cp950') class Codec(codecs.Codec): encode = codec.encode decode = codec.decode class IncrementalEncoder(mbc.MultibyteIncrement...
kaiserroll14/301finalproject
refs/heads/master
main/win2/main/requests/packages/chardet/escprober.py
2935
######################## BEGIN LICENSE BLOCK ######################## # The Original Code is mozilla.org 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 Reserved. # # Con...
lehmannro/translate
refs/heads/master
storage/bundleprojstore.py
1
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2010 Zuza Software Foundation # # This file is part of the Translate Toolkit. # # 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...
bjzhang/xen_arm_pv
refs/heads/master
tools/python/xen/xend/server/DevController.py
3
#============================================================================ # This library is free software; you can redistribute it and/or # modify it under the terms of version 2.1 of the GNU Lesser General Public # License as published by the Free Software Foundation. # # This library is distributed in the hope th...
fitermay/intellij-community
refs/heads/master
python/testData/completion/submoduleOfIndirectlyImportedPackage/pkg1/subpkg1/__init__.py
12133432
rmanoni/mi-instrument
refs/heads/master
mi/instrument/sunburst/test/__init__.py
12133432
eonpatapon/plata-charts
refs/heads/master
plata_charts/templatetags/__init__.py
12133432
nyrocron/tracking-server
refs/heads/master
tracker/__init__.py
12133432
jakereimer/pipeline
refs/heads/master
python/pipeline/legacy/preprocess.py
5
import os from warnings import warn import datajoint as dj import numpy as np import sh from pipeline.notify import temporary_image import gc from .. import experiment from ..utils.signal import mirrconv from ..utils import galvo_corrections import matplotlib.pyplot as plt from ..import notify from distutils.version ...
therocode/django-battlenet-oauth2
refs/heads/master
battlenet/community/sc2/__init__.py
12133432
michimussato/pypelyne2
refs/heads/master
pypelyne2/src/conf/roles/__init__.py
12133432
SteveHNH/ansible
refs/heads/devel
test/integration/targets/module_utils/module_utils/spam7/__init__.py
12133432
Eric-Gaudiello/tensorflow_dev
refs/heads/master
tensorflow_home/tensorflow_venv/lib/python3.4/site-packages/tensorflow/python/client/__init__.py
12133432
areski/django
refs/heads/master
django/conf/locale/kn/__init__.py
12133432
JoshBarr/wagtail
refs/heads/master
wagtail/wagtailcore/management/__init__.py
12133432
leekchan/django_test
refs/heads/master
tests/from_db_value/__init__.py
12133432
ahmed-taj/test_travis
refs/heads/master
src/backend/api/accounts/migrations/__init__.py
12133432
pranavk/xhtml2pdf
refs/heads/master
xhtml2pdf/pisa.py
37
# -*- coding: utf-8 -*- from xhtml2pdf.default import DEFAULT_CSS from xhtml2pdf.document import pisaDocument from xhtml2pdf.util import getFile from xhtml2pdf.version import VERSION, VERSION_STR import getopt import glob import logging import os import sys import tempfile import urllib2 import urlparse # Copyright 20...
FABtotum/colibri-fabui
refs/heads/master
fabui/ext/py/triangulation/auto_persp.py
2
#!/bin/env python import cv2, cv import numpy as np #~ img = cv2.imread('1original.jpg',0) #~ src = np.array([[50,50],[450,450],[70,420],[420,70]],np.float32) #~ dst = np.array([[0,0],[299,299],[0,299],[299,0]],np.float32) #~ ret = cv2.getPerspectiveTransform(src,dst) #~ print ret im3 = cv2.imread('checker_180.jpg...
1N50MN14/rethinkdb
refs/heads/next
test/common/http_admin.py
3
# Copyright 2010-2012 RethinkDB, all rights reserved. import os import re import json import copy import time import socket import random from httplib import HTTPConnection import urllib # for `quote()` and `unquote()` """ The `http_admin.py` module is a Python wrapper around the HTTP interface to RethinkDB. It is n...
xNovax/SickRage
refs/heads/master
lib/imdb/Character.py
128
""" Character module (imdb package). This module provides the Character class, used to store information about a given character. Copyright 2007-2010 Davide Alberani <da@erlug.linux.it> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as publis...
Beercow/viper
refs/heads/master
viper/common/out.py
2
# -*- coding: utf-8 -*- # This file is part of Viper - https://github.com/viper-framework/viper # See the file 'LICENSE' for copying permission. try: from terminaltables import AsciiTable HAVE_TERMTAB = True except: HAVE_TERMTAB = False import textwrap from viper.common.colors import cyan, yellow, red, g...
phalt/django
refs/heads/master
tests/migrations2/test_migrations_2_first/0001_initial.py
427
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("migrations", "__first__"), ] operations = [ migrations.CreateModel( "OtherAuthor", [ ...
MobinRanjbar/hue
refs/heads/master
desktop/core/ext-py/django-openid-auth-0.5/django_openid_auth/admin.py
45
# django-openid-auth - OpenID integration for django.contrib.auth # # Copyright (C) 2008-2013 Canonical Ltd. # Copyright (C) 2010 Dave Walker # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of s...
WhireCrow/openwrt-mt7620
refs/heads/master
staging_dir/host/lib/python2.7/json/tests/__init__.py
145
import os import sys import json import doctest import unittest from test import test_support # import json with and without accelerations cjson = test_support.import_fresh_module('json', fresh=['_json']) pyjson = test_support.import_fresh_module('json', blocked=['_json']) # create two base classes that will be used...
sudheesh001/oh-mainline
refs/heads/master
vendor/packages/requests/requests/packages/chardet/chardistribution.py
2754
######################## 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...
pombreda/xhtml2pdf
refs/heads/master
demo/djangoproject/ezpdf.py
166
#! /usr/bin/python # -*- encoding: utf-8 -*- from django.template.loader import get_template from django.template import Context from django.http import HttpResponse import cStringIO as StringIO from sx.pisa3 import pisaDocument import cgi def render_to_pdf(template_src, context_dict): ''' Renderiza el templa...
scipy/scipy
refs/heads/master
benchmarks/benchmarks/linalg_solve_toeplitz.py
13
"""Benchmark the solve_toeplitz solver (Levinson recursion) """ import numpy as np from .common import Benchmark, safe_import with safe_import(): import scipy.linalg class SolveToeplitz(Benchmark): params = ( ('float64', 'complex128'), (100, 300, 1000), ('toeplitz', 'generic') ) ...
willhardy/django
refs/heads/master
django/db/backends/base/operations.py
43
import datetime import decimal import warnings from importlib import import_module from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.db.backends import utils from django.utils import six, timezone from django.utils.dateparse import parse_duration from django.utils.dep...
harshilasu/GraphicMelon
refs/heads/master
y/google-cloud-sdk/platform/gsutil/gslib/tests/test_util.py
2
# -*- coding: utf-8 -*- # Copyright 2013 Google Inc. 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 to u...
Geoion/Tornado-MySQL
refs/heads/master
example/example.py
4
#!/usr/bin/env python from __future__ import print_function from tornado import ioloop, gen import tornado_mysql @gen.coroutine def main(): conn = yield tornado_mysql.connect(host='127.0.0.1', port=3306, user='root', passwd='', db='mysql') cur = conn.cursor() yield cur.execute("SELECT Host,User FROM user"...
FannyCheung/scrapy_example
refs/heads/master
zhihu/zhihu/__init__.py
12133432
miptliot/edx-platform
refs/heads/ginkgo_openedu_docker
openedx/core/djangoapps/oauth_dispatch/__init__.py
12133432
PayPal-Opportunity-Hack-Chennai-2015/Trust-for-Youth-and-Child-Leadership
refs/heads/master
child/migrations/__init__.py
12133432
ujjwalwahi/odoo
refs/heads/8.0
addons/mail/mail_group_menu.py
334
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2012-today OpenERP SA (<http://www.openerp.com>) # # This program is free software: you can redistribute it and/or modify # it under the terms o...
minesense/VisTrails
refs/heads/master
contrib/vtksnl/vtkhandler.py
6
############################################################################ ## ## Copyright (C) 2006-2010 University of Utah. All rights reserved. ## ## This file is part of VisTrails. ## ## This file may be used under the terms of the GNU General Public ## License version 2.0 as published by the Free Software Foundat...
GeoscienceAustralia/agdc
refs/heads/master
src/dbcompare.py
4
#!/usr/bin/env python #=============================================================================== # Copyright (c) 2014 Geoscience Australia # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: ...
vipul-sharma20/oh-mainline
refs/heads/master
vendor/packages/twisted/doc/core/examples/row_example.py
20
import random from twisted.internet import reactor from twisted.enterprise import adbapi, row, reflector, sqlreflector from row_util import * """ This example show using twisted.enterpise.row to load objects from a database and manipulate them. """ manager = None def gotRooms(rooms): print "got Rooms.", rooms...
googleads/google-ads-python
refs/heads/master
google/ads/googleads/v6/errors/services/__init__.py
22
# -*- coding: utf-8 -*- # Copyright 2020 Google 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 o...
catsky/rebang
refs/heads/master
1/chartnet/requests/packages/charade/euckrfreq.py
3120
######################## 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...
PetePriority/home-assistant
refs/heads/dev
homeassistant/components/webostv/__init__.py
1
"""WebOS TV integration."""
Tennyson53/SUR
refs/heads/SURmagnum
magnum/conductor/bay_lock.py
14
# # 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 # ...
sriks/titanium_mobile
refs/heads/master
support/common/markdown/extensions/abbr.py
131
''' Abbreviation Extension for Python-Markdown ========================================== This extension adds abbreviation handling to Python-Markdown. Simple Usage: >>> import markdown >>> text = """ ... Some text with an ABBR and a REF. Ignore REFERENCE and ref. ... ... *[ABBR]: Abbreviation ...
robbiet480/python-social-auth
refs/heads/master
social/apps/django_app/default/migrations/__init__.py
12133432
dracos/django
refs/heads/master
tests/postgres_tests/array_default_migrations/__init__.py
12133432
NullSoldier/django
refs/heads/master
tests/model_fields/__init__.py
12133432
brmullikin/BRMFlask
refs/heads/master
brmflask/tests/utils/__init__.py
12133432
lwiecek/django
refs/heads/master
django/contrib/admin/views/__init__.py
12133432
spasovski/zamboni
refs/heads/master
sites/stage/settings_mkt.py
2
"""private_mkt will be populated from puppet and placed in this directory""" from lib.settings_base import * from mkt.settings import * from settings_base import * import private_mkt DOMAIN = 'marketplace.allizom.org' SERVER_EMAIL = 'zmarketplacestage@addons.mozilla.org' DOMAIN = "marketplace.allizom.org" SITE_URL ...
benob/chainer
refs/heads/master
tests/cupy_tests/math_tests/test_rounding.py
22
import unittest from cupy import testing @testing.gpu class TestRounding(unittest.TestCase): _multiprocess_can_split_ = True @testing.for_all_dtypes() @testing.numpy_cupy_allclose(atol=1e-5) def check_unary(self, name, xp, dtype): a = testing.shaped_arange((2, 3), xp, dtype) return ...
LUTAN/tensorflow
refs/heads/master
tensorflow/python/kernel_tests/morphological_ops_test.py
138
# 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...
Ovilia/ProjectEuler
refs/heads/master
017.py
1
single = [3, 3, 5, 4, 4, 3, 5, 5, 4] # 1 to 9 teen = [3, 6, 6, 8, 8, 7, 7, 9, 8, 8] # 10 to 19 tens = [6, 6, 5, 5, 5, 7, 6, 6] # 20, 30, 40, ..., 90 hundred = 7 # 100 thousand = 8 # 1000 and_ = 3 # and print (sum(s...
buchbend/astrolyze
refs/heads/master
build/lib.linux-x86_64-2.7/astrolyze/functions/database.py
3
# Copyright (C) 2009-2012, Christof Buchbender from pysqlite2 import dbapi2 as sqlite from astrolyze.database import prefix_database class galaxyParams: r""" Loading source parameter from a database. """ def __init__(self, name): connection = sqlite.connect(str(prefix_database) + 'parameter.db'...
eestay/edx-platform
refs/heads/master
common/djangoapps/external_auth/djangostore.py
224
"""A openid store using django cache""" from openid.store.interface import OpenIDStore from openid.store import nonce from django.core.cache import cache import logging import time DEFAULT_ASSOCIATIONS_TIMEOUT = 60 DEFAULT_NONCE_TIMEOUT = 600 ASSOCIATIONS_KEY_PREFIX = 'openid.provider.associations.' NONCE_KEY_PREF...
CtopCsUtahEdu/chill-dev
refs/heads/master
examples/chill/testcases/fuseexample.script.py
2
# # loop adapted from "Optimizing Compilers for # Modern Architectures", by Randy Allen and Ken Kennedy. # from chill import * source('fuseexample.c') destination('fuseexamplemodified.c') procedure('mm') # fuse example from the Chill manual loop(0, 1) fuse([0,1], 1)
projectcalico/calico-nova
refs/heads/calico-readme
nova/virt/xenapi/__init__.py
126
# Copyright (c) 2010 Citrix Systems, 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 ...
keedio/hue
refs/heads/master
desktop/libs/libsentry/src/libsentry/__init__.py
36
# Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file ex...
akosyakov/intellij-community
refs/heads/master
python/lib/Lib/distutils/__init__.py
81
"""distutils The main package for the Python Module Distribution Utilities. Normally used from a setup script as from distutils.core import setup setup (...) """ # This module should be kept compatible with Python 2.1. __revision__ = "$Id: __init__.py 54641 2007-03-31 21:02:43Z marc-andre.lemburg $" # Dist...
adw0rd/lettuce
refs/heads/master
tests/integration/lib/Django-1.3/django/conf/locale/mn/__init__.py
12133432
thnee/ansible
refs/heads/devel
lib/ansible/module_utils/network/iosxr/argspec/lacp/__init__.py
12133432
innlym/loginhere
refs/heads/master
accounts/urls.py
1
from django.conf.urls import patterns, url import django.contrib.auth.views as authviews import views urlpatterns = patterns('', url(r'^$', views.profile, name='accounts'), url(r'^login/$', authviews.login, {'template_name': 'accounts/login.html'}, name='login'), url(r'^logout/$', authviews.logout, {'next...
apaleyes/mxnet
refs/heads/master
example/bayesian-methods/algos.py
15
from __future__ import print_function import mxnet as mx import mxnet.ndarray as nd import time import logging from utils import * def calc_potential(exe, params, label_name, noise_precision, prior_precision): exe.copy_params_from(params) exe.forward(is_train=False) ret = 0.0 ret += (nd.norm( ...
fogus/lithp
refs/heads/master
src/py/env.py
5
# The `Environment` class represents the dynamic environment of McCarthy's original Lisp. The creation of # this class is actually an interesting story. As many of you probably know, [Paul Graham wrote a paper and # code for McCarthy's original Lisp](http://www.paulgraham.com/rootsoflisp.html) and it was my first e...
ckirby/django
refs/heads/master
django/contrib/postgres/aggregates/statistics.py
493
from django.db.models import FloatField, IntegerField from django.db.models.aggregates import Aggregate __all__ = [ 'CovarPop', 'Corr', 'RegrAvgX', 'RegrAvgY', 'RegrCount', 'RegrIntercept', 'RegrR2', 'RegrSlope', 'RegrSXX', 'RegrSXY', 'RegrSYY', 'StatAggregate', ] class StatAggregate(Aggregate): def __in...
jacegem/lotto-store
refs/heads/master
lib/werkzeug/contrib/testtools.py
365
# -*- coding: utf-8 -*- """ werkzeug.contrib.testtools ~~~~~~~~~~~~~~~~~~~~~~~~~~ This module implements extended wrappers for simplified testing. `TestResponse` A response wrapper which adds various cached attributes for simplified assertions on various content types. :copyright:...
stackforge/watcher
refs/heads/master
watcher/common/policies/action_plan.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 # distributed under t...
run2/citytour
refs/heads/master
4symantec/Lib/site-packages/numpy-1.9.2-py2.7-win-amd64.egg/numpy/distutils/fcompiler/gnu.py
34
from __future__ import division, absolute_import, print_function import re import os import sys import warnings import platform import tempfile from subprocess import Popen, PIPE, STDOUT from numpy.distutils.cpuinfo import cpu from numpy.distutils.fcompiler import FCompiler from numpy.distutils.exec_command import ex...
dbaxa/django
refs/heads/master
tests/admin_scripts/app_raising_messages/models.py
391
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.core import checks from django.db import models class ModelRaisingMessages(models.Model): @classmethod def check(self, **kwargs): return [ checks.Warning( 'First warning', hint='Hin...
dfang/odoo
refs/heads/10.0
addons/web_tour/__manifest__.py
35
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': 'Tours', 'category': 'Hidden', 'description': """ Odoo Web tours. ======================== """, 'version': '0.1', 'depends': ['web'], 'data': [ 'security/ir.model.access.csv', ...
jomyhuang/sdwle
refs/heads/master
hearthbreaker/cards/spells/mage.py
3
import copy from hearthbreaker.cards.base import SecretCard, SpellCard from hearthbreaker.cards.minions.mage import SpellbenderMinion, MirrorImageMinion from hearthbreaker.constants import CHARACTER_CLASS, CARD_RARITY from hearthbreaker.tags.base import BuffUntil, Buff from hearthbreaker.tags.card_source import Collect...
mKeRix/home-assistant
refs/heads/dev
homeassistant/components/vultr/switch.py
16
"""Support for interacting with Vultr subscriptions.""" import logging import voluptuous as vol from homeassistant.components.switch import PLATFORM_SCHEMA, SwitchEntity from homeassistant.const import CONF_NAME import homeassistant.helpers.config_validation as cv from . import ( ATTR_ALLOWED_BANDWIDTH, ATTR...
ravibhure/ansible
refs/heads/devel
lib/ansible/modules/network/cloudengine/ce_ip_interface.py
22
#!/usr/bin/python # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible is distribut...
ericlink/adms-server
refs/heads/master
playframework-dist/play-1.1/python/Lib/shutil.py
2
"""Utility functions for copying files and directory trees. XXX The functions here don't copy the resource fork or other metadata on Mac. """ import os import sys import stat from os.path import abspath __all__ = ["copyfileobj","copyfile","copymode","copystat","copy","copy2", "copytree","move...
sacharya/nova
refs/heads/master
nova/tests/api/openstack/compute/contrib/test_security_groups.py
1
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 OpenStack Foundation # Copyright 2012 Justin Santa Barbara # # 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 # # h...
RockySteveJobs/python-for-android
refs/heads/master
python-modules/twisted/twisted/protocols/gps/rockwell.py
61
# Copyright (c) 2001-2004 Twisted Matrix Laboratories. # See LICENSE for details. """Rockwell Semiconductor Zodiac Serial Protocol Coded from official protocol specs (Order No. GPS-25, 09/24/1996, Revision 11) Maintainer: Bob Ippolito The following Rockwell Zodiac messages are currently understood:: EARTHA\\r\...
imply/chuu
refs/heads/master
third_party/closure_linter/closure_linter/common/tokens_test.py
126
#!/usr/bin/env python # Copyright 2011 The Closure Linter 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 # #...
pheanex/ansible-modules-extras
refs/heads/devel
packaging/language/bundler.py
72
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2015, Tim Hoiberg <tim.hoiberg@gmail.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the L...
jj918160/cocos2d-x-samples
refs/heads/v3
samples/SwiftTetris/cocos2d/plugin/tools/toolsForGame/modifyManifest.py
263
import sys, string, os from xml.etree import ElementTree as ET manifestFile = sys.argv[1] pluginStr = sys.argv[2] pluginsDir = sys.argv[3] androidNS = 'http://schemas.android.com/apk/res/android' sourceCfgFile = '/android/ForManifest.xml' def doModify(sourceFile, root): bRet = False sourceTree = ET.parse(sou...
tensor-tang/Paddle
refs/heads/develop
python/paddle/fluid/tests/unittests/test_eager_deletion_delete_vars.py
3
# Copyright (c) 2019 PaddlePaddle 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 appli...
vaginessa/python-for-android
refs/heads/master
src/buildlib/jinja2.egg/jinja2/_stringdefs.py
412
# -*- coding: utf-8 -*- """ jinja2._stringdefs ~~~~~~~~~~~~~~~~~~ Strings of all Unicode characters of a certain category. Used for matching in Unicode-aware languages. Run to regenerate. Inspired by chartypes_create.py from the MoinMoin project, original implementation from Pygments. :co...
wuxue/altanalyze
refs/heads/master
GO_parsing.py
1
###GO_parsing #Copyright 2005-2008 J. David Gladstone Institutes, San Francisco California #Author Nathan Salomonis - nsalomonis@gmail.com #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 with...
rhelmer/socorro
refs/heads/master
webapp-django/crashstats/__init__.py
12133432
rainforest1155/bennedetto
refs/heads/master
authenticating/__init__.py
12133432
cyberintruder/django-cms
refs/heads/develop
cms/test_utils/project/customuserapp/__init__.py
12133432
asser/django
refs/heads/master
django/contrib/sitemaps/management/__init__.py
12133432
chkir/django-cms
refs/heads/develop
cms/forms/__init__.py
12133432