repo_name
stringlengths
5
100
ref
stringlengths
12
67
path
stringlengths
4
244
copies
stringlengths
1
8
content
stringlengths
0
1.05M
canercandan/iot-project
refs/heads/master
deprecated/cegGtk/test/vncviewer.py
1
# IOT Copyright (C) 2010 CEG development team # # 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. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WA...
Cinntax/home-assistant
refs/heads/dev
homeassistant/components/sleepiq/sensor.py
7
"""Support for SleepIQ sensors.""" from homeassistant.components import sleepiq ICON = "mdi:hotel" def setup_platform(hass, config, add_entities, discovery_info=None): """Set up the SleepIQ sensors.""" if discovery_info is None: return data = sleepiq.DATA data.update() dev = list() ...
rwth-ti/gr-ofdm
refs/heads/master
python/ofdm/qa_interp_cir_set_noncir_to_zero.py
1
#!/usr/bin/env python # # Copyright 2014 Institute for Theoretical Information Technology, # RWTH Aachen University # www.ti.rwth-aachen.de # # This 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 S...
harukaeru/Brython-Django
refs/heads/master
static/brython/www/speed/benchmarks/create_function_complex_args.py
9
for i in range(1000000): def f(x, y=1, *args, **kw): pass
openstack/nova
refs/heads/master
doc/ext/versioned_notifications.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 the ...
mKeRix/home-assistant
refs/heads/dev
homeassistant/components/gios/__init__.py
6
"""The GIOS component.""" import logging from aiohttp.client_exceptions import ClientConnectorError from async_timeout import timeout from gios import ApiError, Gios, InvalidSensorsData, NoStationError from homeassistant.core import Config, HomeAssistant from homeassistant.exceptions import ConfigEntryNotReady from h...
nteract/papermill
refs/heads/main
papermill/cli.py
1
# -*- coding: utf-8 -*- """Main `papermill` interface.""" import os import sys from stat import S_ISFIFO import nbclient import traceback import base64 import logging import click import yaml import platform from .execute import execute_notebook from .iorw import read_yaml_file, NoDatesSafeLoader from .inspection ...
jamespcole/home-assistant
refs/heads/master
homeassistant/components/aquostv/media_player.py
4
""" Support for interface with an Aquos TV. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/media_player.aquostv/ """ import logging import voluptuous as vol from homeassistant.components.media_player import ( MediaPlayerDevice, PLATFORM_SCHEMA) fro...
seankelly/buildbot
refs/heads/master
master/buildbot/util/maildir.py
1
# This file is part of Buildbot. Buildbot 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, version 2. # # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without eve...
abhattad4/Digi-Menu
refs/heads/master
digimenu2/django/db/backends/utils.py
430
from __future__ import unicode_literals import datetime import decimal import hashlib import logging from time import time from django.conf import settings from django.utils.encoding import force_bytes from django.utils.timezone import utc logger = logging.getLogger('django.db.backends') class CursorWrapper(object...
scottpurdy/nupic
refs/heads/master
tests/unit/nupic/regions/anomaly_region_test.py
10
# ---------------------------------------------------------------------- # Numenta Platform for Intelligent Computing (NuPIC) # Copyright (C) 2015, Numenta, Inc. Unless you have purchased from # Numenta, Inc. a separate commercial license for this software code, the # following terms and conditions apply: # # This pro...
bayusantoso/final-assignment-web-ontology
refs/heads/master
IMPLEMENTATION/Application/SourceCode/GOApps/flask/Lib/site-packages/pip/operations/__init__.py
12133432
thoas/i386
refs/heads/master
src/milkshape/application/internals/profiles/management/__init__.py
12133432
sudheerchintala/LearnEraPlatForm
refs/heads/master
lms/djangoapps/open_ended_grading/__init__.py
12133432
Jay-Oh-eN/topmodel
refs/heads/master
web/views/__init__.py
12133432
arun6582/django
refs/heads/master
tests/migrate_signals/custom_migrations/__init__.py
12133432
loco-odoo/localizacion_co
refs/heads/master
openerp/addons-extra/odoo-pruebas/odoo-server/addons/sale_order_dates/sale_order_dates.py
44
# -*- 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...
poljeff/odoo
refs/heads/8.0
addons/website_event_track/__openerp__.py
323
# -*- coding: utf-8 -*- { 'name': 'Advanced Events', 'category': 'Website', 'summary': 'Sponsors, Tracks, Agenda, Event News', 'website': 'https://www.odoo.com/page/events', 'version': '1.0', 'description': """ Online Advanced Events ====================== Adds support for: - sponsors - dedica...
dmwyatt/django-rest-framework
refs/heads/master
tests/test_htmlrenderer.py
5
from __future__ import unicode_literals import django.template.loader import pytest from django.conf.urls import url from django.core.exceptions import ImproperlyConfigured, PermissionDenied from django.http import Http404 from django.template import TemplateDoesNotExist, engines from django.test import TestCase, over...
ldotlopez/appkit
refs/heads/master
appkit/keyvaluestore.py
1
# -*- coding: utf-8 -*- # Copyright (C) 2015 Luis López <luis@cuarentaydos.com> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any late...
andybondar/CloudFerry
refs/heads/master
cloudferrylib/scheduler/__init__.py
12133432
liaods/git-repo
refs/heads/master
pager.py
86
# # Copyright (C) 2008 The Android Open Source Project # # 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 la...
diegoguimaraes/django
refs/heads/master
tests/user_commands/management/commands/leave_locale_alone_true.py
428
from django.core.management.base import BaseCommand from django.utils import translation class Command(BaseCommand): can_import_settings = True leave_locale_alone = True def handle(self, *args, **options): return translation.get_language()
jlspyaozhongkai/Uter
refs/heads/master
third_party_backup/Python-2.7.9/Lib/lib-tk/tkColorChooser.py
37
# tk common color chooser dialogue # # this module provides an interface to the native color dialogue # available in Tk 4.2 and newer. # # written by Fredrik Lundh, May 1997 # # fixed initialcolor handling in August 1998 # # # options (all have default values): # # - initialcolor: color to mark as selected when dialog...
cloudbase/neutron-virtualbox
refs/heads/virtualbox_agent
neutron/tests/unit/ml2/test_type_flat.py
2
# Copyright (c) 2014 Thales Services SAS # 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 r...
nelmiux/CarnotKE
refs/heads/master
jyhton/lib-python/2.7/test/test_global.py
139
"""Verify that warnings are issued for global statements following use.""" from test.test_support import run_unittest, check_syntax_error import unittest import warnings class GlobalTests(unittest.TestCase): def test1(self): prog_text_1 = """\ def wrong1(): a = 1 b = 2 global a global b ...
MiltosD/CEF-ELRC
refs/heads/master
lib/python2.7/site-packages/django/conf/locale/de/formats.py
329
# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # # The *_FORMAT strings use the Django date format syntax, # see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date DATE_FORMAT = 'j. F Y' TIME_FORMAT = 'H:i:s' DATETIME_FORMAT = 'j. F Y H:i:s' YEAR_MONTH...
mortcanty/SARDocker
refs/heads/master
src/setup.py
1
from distutils.core import setup setup(name = 'auxil', version = '1.1', author = 'Mort Canty', author_email = 'mort.canty@gmail.com', url = 'http://mcanty.homepage.t-online.de/', description = 'Auxiliary package for M. J.Canty, Image Analysis, Classificatiion and Change Detection...
shoyer/numpy
refs/heads/master
numpy/testing/setup.py
19
#!/usr/bin/env python from __future__ import division, print_function def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('testing', parent_package, top_path) config.add_subpackage('_private') config.add_data_dir('tests') ...
miniconfig/home-assistant
refs/heads/dev
homeassistant/components/light/insteon_local.py
4
""" Support for Insteon dimmers via local hub control. For more details about this component, please refer to the documentation at https://home-assistant.io/components/light.insteon_local/ """ import json import logging import os from datetime import timedelta from homeassistant.components.light import ( ATTR_BRI...
jwren/intellij-community
refs/heads/master
python/testData/editing/closedTripleQuoteBackspace.before.py
76
''''''
jborean93/ansible
refs/heads/devel
test/units/module_utils/urls/test_urls.py
74
# -*- coding: utf-8 -*- # (c) 2018 Matt Martz <matt@sivel.net> # 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 from ansible.module_utils import urls from ansible.module_utils._text import...
felipenaselva/repo.felipe
refs/heads/master
plugin.video.salts/scrapers/proxy.py
1
""" SALTS XBMC Addon Copyright (C) 2014 tknorris This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. T...
adw0rd/lettuce
refs/heads/master
tests/integration/lib/Django-1.3/django/contrib/humanize/__init__.py
12133432
isendel/algorithms
refs/heads/master
algorithms/prime_numbers/__init__.py
12133432
mbauskar/frappe
refs/heads/develop
frappe/patches/v8_0/drop_unwanted_indexes.py
19
# Copyright (c) 2017, Frappe and Contributors # License: GNU General Public License v3. See license.txt # -*- coding: utf-8 -*- from __future__ import unicode_literals import frappe def execute(): # communication unwanted_indexes = ["communication_date_index", "message_id_index", "modified_index", "creation_inde...
industrydive/mezzanine
refs/heads/master
mezzanine/generic/migrations/0002_auto_20141227_0224.py
46
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import mezzanine.core.fields class Migration(migrations.Migration): dependencies = [ ('generic', '0001_initial'), ] operations = [ migrations.AlterField( model_name='assi...
enthought/etsproxy
refs/heads/master
enthought/pyface/wizard/__init__.py
24
#------------------------------------------------------------------------------ # Copyright (c) 2005, Enthought, Inc. # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in enthought/LICENSE.txt and may be redistributed only # under the conditions describe...
jmvasquez/redashtest
refs/heads/master
migrations/0014_migrate_existing_es_to_kibana.py
20
__author__ = 'lior' from redash.models import DataSource if __name__ == '__main__': for ds in DataSource.select(DataSource.id, DataSource.type): if ds.type == 'elasticsearch': ds.type = 'kibana' ds.save(only=ds.dirty_fields)
Endika/odoo-saas-tools
refs/heads/8.0
saas_server/controllers/__init__.py
7372
import main
rmmh/kubernetes-test-infra
refs/heads/master
gubernator/third_party/cloudstorage/common.py
129
# Copyright 2012 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 required by applicable law or ag...
khertan/PyGTKEditor
refs/heads/master
pge_recentchooser.py
1
#!/usr/bin/env python2.5 # # PyGTKEditor # # Copyright (c) 2007 Khertan (Benoit HERVIER) # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option)...
tejoesperanto/pasportaservo
refs/heads/master
hosting/migrations/0054_phones_ordering.py
3
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2018-02-13 08:15 from __future__ import unicode_literals from django.db import migrations def set_priority_for_deleted_phones(app_registry, schema_editor): """ Deleted phones should have higher priority rating, to appear lower on the list (lower rat...
citrix-openstack-build/swift
refs/heads/master
test/unit/common/middleware/test_tempauth.py
2
# Copyright (c) 2011 OpenStack, 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 to in wr...
ClusterLabs/pcs
refs/heads/master
pcs/snmp/pcs_snmp_agent.py
3
import os import sys import logging import logging.handlers # pylint: disable=import-error import pyagentx import pcs.utils from pcs.snmp import settings from pcs.snmp.updaters.v1 import ClusterPcsV1Updater logger = logging.getLogger("pcs.snmp") logger.addHandler(logging.NullHandler()) def is_debug(): debug =...
antonve/s4-project-mooc
refs/heads/master
common/lib/calc/calc/__init__.py
270
""" Ideally, we wouldn't need to pull in all the calc symbols here, but courses were using 'import calc', so we need this for backwards compatibility """ from calc import *
blackzw/openwrt_sdk_dev1
refs/heads/master
staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/lib/python2.7/distutils/command/sdist.py
68
"""distutils.command.sdist Implements the Distutils 'sdist' command (create a source distribution).""" __revision__ = "$Id$" import os import string import sys from glob import glob from warnings import warn from distutils.core import Command from distutils import dir_util, dep_util, file_util, archive_util from di...
cristian69/KernotekV3
refs/heads/master
venv/lib/python2.7/site-packages/pip/_vendor/requests/packages/chardet/langthaimodel.py
2929
######################## 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...
grangier/django-11599
refs/heads/master
django/contrib/localflavor/us/__init__.py
12133432
drxos/python-social-auth
refs/heads/master
social/apps/cherrypy_app/__init__.py
12133432
inonit/wagtail
refs/heads/master
wagtail/contrib/__init__.py
12133432
zhenzhai/edx-platform
refs/heads/master
openedx/core/djangoapps/user_api/__init__.py
12133432
opencache-project/opencache-controller
refs/heads/master
opencache/controller/request/__init__.py
12133432
bprodoehl/phantomjs
refs/heads/master
src/qt/qtwebkit/Tools/Scripts/webkitpy/common/system/workspace_mock.py
191
# Copyright (C) 2011 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the f...
chiefy/kubernetes
refs/heads/master
examples/cluster-dns/images/frontend/client.py
468
#!/usr/bin/env python # Copyright 2015 The Kubernetes 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 # # Unle...
srm912/servo
refs/heads/master
tests/wpt/web-platform-tests/websockets/handlers/empty-message_wsh.py
284
#!/usr/bin/python from mod_pywebsocket import msgutil def web_socket_do_extra_handshake(request): pass # Always accept. def web_socket_transfer_data(request): line = msgutil.receive_message(request) if line == "": msgutil.send_message(request, 'pass') else: msgutil.send_message(reque...
gfreed/android_external_chromium-org
refs/heads/android-4.4
native_client_sdk/src/build_tools/tests/__init__.py
171
# 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. """tests package."""
meletakis/collato
refs/heads/master
lib/python2.7/site-packages/PIL/IptcImagePlugin.py
42
# # The Python Imaging Library. # $Id$ # # IPTC/NAA file handling # # history: # 1995-10-01 fl Created # 1998-03-09 fl Cleaned up and added to PIL # 2002-06-18 fl Added getiptcinfo helper # # Copyright (c) Secret Labs AB 1997-2002. # Copyright (c) Fredrik Lundh 1995. # # See the README file for information on usa...
EnTeQuAk/dotfiles
refs/heads/master
sublime-text-3/Packages/isort/natsort/py23compat.py
1
# -*- coding: utf-8 -*- from __future__ import print_function, division, unicode_literals, absolute_import import functools import sys # These functions are used to make the doctests compatible between # python2 and python3. This code is pretty much lifted from the iPython # project's py3compat.py file. Credit to t...
astrofrog/glue-vispy-viewers
refs/heads/master
glue_vispy_viewers/extern/vispy/glsl/collections/__init__.py
12133432
ZhangBohan/KoalaAPI
refs/heads/master
KoalaAPI/views/__init__.py
1
from flask import Blueprint from leancloud import Object main_view = Blueprint('main', __name__) __all__ = ['tuchuang', 'auth'] class GitHubUser(Object): pass File = Object.extend('Files') def leanobject_to_dict(lo): data = lo.attributes data['id'] = lo.id data['created_at'] = lo.created_at d...
atarun/web
refs/heads/master
public/dev/Cocos2dJS/HelloWorld/tools/bindings-generator/generator.py
17
#!/usr/bin/env python # generator.py # simple C++ generator, originally targetted for Spidermonkey bindings # # Copyright (c) 2011 - Zynga Inc. from clang import cindex import sys import pdb import ConfigParser import yaml import re import os import inspect import traceback from Cheetah.Template import Template type_...
proversity-org/edx-platform
refs/heads/master
lms/djangoapps/branding/tests/test_views.py
1
#-*- coding: utf-8 -*- """Tests of Branding API views. """ import json import urllib import ddt import mock from config_models.models import cache from django.conf import settings from django.contrib.auth.models import User from django.core.urlresolvers import reverse from django.test import TestCase from branding.mo...
galtay/cosmolabe
refs/heads/master
cosmolabe/__init__.py
1
import units import constants u = units.Units() pc = constants.PhysicalConstants()
huyang1532/learn-python
refs/heads/master
xlrd-0.6.1/xlrd/timemachine.py
1
# -*- coding: cp1252 -*- ## # <p>Copyright © 2006 Stephen John Machin, Lingfo Pty Ltd</p> # <p>This module is part of the xlrd package, which is released under a BSD-style licence.</p> ## # timemachine.py -- adaptation for earlier Pythons e.g. 2.1 # usage: from timemachine import * import sys python_version = sys.v...
carvalhodj/qunews
refs/heads/master
raspberry/mac_amqp.py
1
import pcap, dpkt, binascii import pika import sys import threading from get_serial import get_serial MACS = {} TIME_OUT = 10 mensagem = "" SERIAL = get_serial() end_ip = sys.argv[1:] if not end_ip: print >> sys.stderr, "Fomato: %s [SERVER IP ADDRESS]" % (sys.argv[0]) credentials = pika.PlainCredentials('qune...
gitlabhq/pygments.rb
refs/heads/master
vendor/pygments-main/pygments/styles/fruity.py
364
# -*- coding: utf-8 -*- """ pygments.styles.fruity ~~~~~~~~~~~~~~~~~~~~~~ pygments version of my "fruity" vim theme. :copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ from pygments.style import Style from pygments.token import Token, Co...
LividInstruments/LiveRemoteScripts
refs/heads/master
Livid_Base/__init__.py
1
# by amounra 0413 : http://www.aumhaa.com from Base import Base from _Framework.Capabilities import controller_id, inport, outport, CONTROLLER_ID_KEY, PORTS_KEY, HIDDEN, NOTES_CC, SCRIPT, REMOTE, SYNC, TYPE_KEY, FIRMWARE_KEY, AUTO_LOAD_KEY def get_capabilities(): return {CONTROLLER_ID_KEY: controller_id(vendor_id=2...
hiisi13/django-management-audit
refs/heads/master
setup.py
1
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys from django.conf import settings settings.configure() import management_audit try: from setuptools import setup except ImportError: from distutils.core import setup version = management_audit.__version__ if sys.argv[-1] == 'publish': o...
bjzhang/xen_arm_pv
refs/heads/master
tools/python/xen/xend/server/mtdif.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...
cecep-edu/refactory
refs/heads/staging
requirements/PyChart-1.39/pychart/afm/Utopia_Italic.py
12
# AFM font Utopia-Italic (path: /usr/share/fonts/afms/adobe/putri8a.afm). # Derived from Ghostscript distribution. # Go to www.cs.wisc.edu/~ghost to get the Ghostcript source code. import dir dir.afm["Utopia-Italic"] = (500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, ...
manoj24rana/MobileIPv6
refs/heads/master
src/fd-net-device/test/examples-to-run.py
97
#! /usr/bin/env python ## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- # A list of C++ examples to run in order to ensure that they remain # buildable and runnable over time. Each tuple in the list contains # # (example_name, do_run, do_valgrind_run). # # See test.py for more i...
tyrannosaurus/python-libmagic
refs/heads/master
magic/tests/__init__.py
12133432
ehashman/oh-mainline
refs/heads/master
vendor/packages/Django/tests/modeltests/or_lookups/__init__.py
12133432
krzysztofwos/BitcoinUnlimited
refs/heads/dev
src/test/bitcoin-util-test.py
257
#!/usr/bin/python # Copyright 2014 BitPay, Inc. # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. import os import bctest import buildenv if __name__ == '__main__': bctest.bctester(os.environ["srcdir"] + "/test/data", "bitcoin-...
iulian787/spack
refs/heads/develop
var/spack/repos/builtin/packages/yoda/package.py
2
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Yoda(AutotoolsPackage): """YODA - Yet more Objects for Data Analysis""" homepage = "h...
chiviak/headphones
refs/heads/master
lib/cherrypy/lib/jsontools.py
66
import cherrypy from cherrypy._cpcompat import basestring, ntou, json_encode, json_decode def json_processor(entity): """Read application/json data into request.json.""" if not entity.headers.get(ntou("Content-Length"), ntou("")): raise cherrypy.HTTPError(411) body = entity.fp.read() try: ...
schleichdi2/openpli-e2
refs/heads/master
lib/python/Components/Renderer/NextEpgInfo.py
17
from Components.VariableText import VariableText from Renderer import Renderer from enigma import eLabel, eEPGCache, eServiceReference from time import localtime, strftime class NextEpgInfo(Renderer, VariableText): def __init__(self): Renderer.__init__(self) VariableText.__init__(self) self.epgcache = eEPGCache...
sunxfancy/ArduCopter
refs/heads/master
Tools/autotest/apm_unit_tests/mustpass/arducopter_arm_disarm.py
250
import arducopter def unit_test(mavproxy, mav): '''A scripted flight plan''' if ( arducopter.calibrate_level(mavproxy, mav) and arducopter.arm_motors(mavproxy, mav) and arducopter.disarm_motors(mavproxy,mav)): return True return False
sebdelsol/pyload
refs/heads/stable
module/plugins/hoster/GamefrontCom.py
1
# -*- coding: utf-8 -*- import re from module.network.RequestFactory import getURL from module.plugins.Hoster import Hoster from module.utils import parseFileSize class GamefrontCom(Hoster): __name__ = "GamefrontCom" __type__ = "hoster" __version__ = "0.04" __pattern__ = r'http://(?:www\.)?ga...
s20121035/rk3288_android5.1_repo
refs/heads/master
cts/apps/CameraITS/tests/scene1/test_latching.py
2
# Copyright 2013 The Android Open Source Project # # 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...
seanchen/taiga-back
refs/heads/master
taiga/export_import/dump_service.py
17
# Copyright (C) 2014 Andrey Antukh <niwi@niwi.be> # Copyright (C) 2014 Jesús Espino <jespinog@gmail.com> # Copyright (C) 2014 David Barragán <bameda@dbarragan.com> # This program 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...
ProfessionalIT/professionalit-webiste
refs/heads/master
sdk/google_appengine/lib/django-1.2/django/db/backends/postgresql_psycopg2/base.py
45
""" PostgreSQL database backend for Django. Requires psycopg 2: http://initd.org/projects/psycopg2 """ import sys from django.db import utils from django.db.backends import * from django.db.backends.signals import connection_created from django.db.backends.postgresql.operations import DatabaseOperations as Postgresq...
kisoku/ansible
refs/heads/devel
lib/ansible/template/__init__.py
4
# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) an...
Jorge-Rodriguez/ansible
refs/heads/devel
lib/ansible/modules/monitoring/newrelic_deployment.py
95
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright 2013 Matt Coddington <coddington@gmail.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version':...
hostviralnetworks/nampy
refs/heads/master
nampy/core/DictList.py
1
# This script is developed from DictList.py # in COBRApy, which was distributed # under GNU GENERAL PUBLIC LICENSE Version 3 # Ebrahim, A., Lerman, J. a, Palsson, B. O., & Hyduke, D. R. (2013). # COBRApy: COnstraints-Based Reconstruction and Analysis for Python. # BMC systems biology, 7(1), 74. doi:10.1186/1752-0509...
jaruba/chromium.src
refs/heads/nw12
build/util/lib/common/__init__.py
12133432
LIMXTEC/BitSend
refs/heads/master
qa/rpc-tests/python-bitcoinrpc/bitcoinrpc/__init__.py
12133432
liwangdong/augmented-traffic-control
refs/heads/master
atc/atc_thrift/__init__.py
12133432
chinmaygarde/mojo
refs/heads/ios
examples/python/__mojo__.py
5
# Copyright 2015 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. """Example python application implementing the Echo service.""" import logging import example_service_mojom from mojo_application import application_delega...
habnabit/pip
refs/heads/develop
pip/_vendor/requests/certs.py
1218
#!/usr/bin/env python # -*- coding: utf-8 -*- """ certs.py ~~~~~~~~ This module returns the preferred default CA certificate bundle. If you are packaging Requests, e.g., for a Linux distribution or a managed environment, you can change the definition of where() to return a separately packaged CA bundle. """ import o...
matrogers/pylearn2
refs/heads/master
pylearn2/gui/graph_2D.py
28
""" Classes for making simple 2D visualizations. """ import numpy as N from theano.compat.six.moves import xrange from theano import config class Graph2D(object): """ A class for plotting simple graphs in two dimensions. Parameters ---------- shape : tuple The shape of the display of the ...
saurabhjn76/sympy
refs/heads/master
sympy/assumptions/sathandlers.py
42
from __future__ import print_function, division from collections import MutableMapping, defaultdict from sympy.core import (Add, Mul, Pow, Integer, Number, NumberSymbol,) from sympy.core.numbers import ImaginaryUnit from sympy.core.sympify import _sympify from sympy.core.rules import Transform from sympy.core.logic i...
goodwinnk/intellij-community
refs/heads/master
python/testData/resolve/multiFile/nestedPackage/foo/__init__.py
12133432
CRImier/WCS
refs/heads/master
apps/update/__init__.py
12133432
rue89-tech/edx-analytics-pipeline
refs/heads/master
edx/analytics/tasks/tests/acceptance/services/__init__.py
12133432
jtwaleson/python-oauth2
refs/heads/master
oauth2/clients/__init__.py
12133432
siouka/dmind
refs/heads/master
plugin.video.replaypt/resources/__init__.py
12133432
jonashaag/django-nonrel-nohistory
refs/heads/master
tests/regressiontests/i18n/other/locale/__init__.py
12133432
yoelk/instrumentino
refs/heads/master
instrumentino/resources/old/__init__.py
12133432