repo_name
stringlengths
5
100
ref
stringlengths
12
67
path
stringlengths
4
244
copies
stringlengths
1
8
content
stringlengths
0
1.05M
edbgon/rpipin
refs/heads/master
test/i2ctest.py
1
import smbus import time #bus = smbus.SMBus(0) # Rev 1 Pi uses 0 bus = smbus.SMBus(1) # Rev 2 Pi uses 1 DEVICE = 0x27 # Device address (A0-A2) IODIRA = 0x00 # Pin direction register OLATA = 0x14 # Register for outputs GPIOA = 0x12 # Register for inputs # Set all GPA pins as outputs by setting # all bits of IOD...
AdamRLukaitis/muzei
refs/heads/master
web/lib/bs4/__init__.py
417
"""Beautiful Soup Elixir and Tonic "The Screen-Scraper's Friend" http://www.crummy.com/software/BeautifulSoup/ Beautiful Soup uses a pluggable XML or HTML parser to parse a (possibly invalid) document into a tree representation. Beautiful Soup provides provides methods and Pythonic idioms that make it easy to navigate...
lizardsystem/lizard-fewsunblobbed
refs/heads/master
lizard_fewsunblobbed/management/commands/fews_unblobbed_copy_data.py
1
""" Retrieves fews unblobbed filter tree (and store it in the cache). """ from django.core.management.base import BaseCommand from django.db import connections, transaction from lizard_fewsunblobbed.models import Timeserie import logging import datetime import traceback import sys logger = logging.getLogger(__name__)...
MarkusH/django-steps
refs/heads/master
steps/templatetags/django_steps.py
1
from django import template from ..steps import ( get_current_step, get_current_steps, get_current_url, get_next_step, get_next_url, get_previous_step, get_previous_url, get_url, ) register = template.Library() @register.assignment_tag(takes_context=True) def get_all_steps(context): return get_current_s...
davidh-ssec/polar2grid
refs/heads/master
polar2grid/core/histogram.py
1
#!/usr/bin/env python3 # encoding: utf-8 """ Functions related to histogram equalization. This is a scaling function like the others found in rescale.py, but has so much support infrastructure it's been moved to it's own module. :attention: A scaling function is not guarenteed to not change the original data a...
onyxfish/agate-sql
refs/heads/master
docs/conf.py
1
# -*- coding: utf-8 -*- # # flake8: noqa # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values have a default; values that are commented out # serve to show the default...
tbyehl/boxstarter
refs/heads/master
BuildPackages/example-light/tools/sublime/Packages/PowershellUtils/tests/test_sublimepath.py
20
import _setuptestenv import sys try: import mock except ImportError: print "ERROR: Cannot find mock module in your SYSTEM'S Python library." sys.exit(1) import unittest import sublime import sublimeplugin #=============================================================================== # A...
Grumbel/rfactorlcd
refs/heads/master
rfactorlcd/dashlet_selection.py
1
# rFactor Remote LCD # Copyright (C) 2014 Ingo Ruhnke <grumbel@gmail.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 3 of the License, or # (at your option) any later versi...
justajeffy/arsenalsuite
refs/heads/master
cpp/apps/burner/plugins/houdinisim.py
11
from blur.Stone import * from blur.Classes import * from blur.Burner import * from PyQt4.QtCore import * from PyQt4.QtSql import * import traceback, os class HoudiniSimBurner(JobBurner): def __init__(self,jobAss,slave): JobBurner.__init__(self, jobAss, slave) self.Job = jobAss.job() self.CurrentFrame = None ...
8u1a/plaso
refs/heads/master
tests/serializer/json_serializer.py
3
#!/usr/bin/python # -*- coding: utf-8 -*- """Tests for the serializer object implementation using JSON.""" import collections import json import unittest from plaso.lib import event from plaso.serializer import json_serializer from plaso.storage import collection import pytz class JSONSerializerTestCase(unittest.T...
kinow-io/kinow-python-sdk
refs/heads/master
kinow_client/models/customer_group_video_stats_1.py
1
# coding: utf-8 """ Server API Reference for Server API (REST/Json) OpenAPI spec version: 1.4.41 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class CustomerGroupVideoStats1(object): """ NOTE: This ...
Curso-OpenShift/Formulario
refs/heads/master
OverFlow/ProjectFormulario/env/lib/python2.7/site-packages/django/conf/locale/el/__init__.py
12133432
rven/odoo
refs/heads/14.0-fix-partner-merge-mail-activity
addons/iap_mail/__manifest__.py
3
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': "IAP / Mail", 'summary': """Bridge between IAP and mail""", 'description': """Bridge between IAP and mail""", 'category': 'Hidden/Tools', 'version': '1.0', 'depends': [ 'iap', ...
giftman/Gifts
refs/heads/master
Python/moveit/chapter2/setup.py
1
from distutils.core import setup setup( name = 'giftman_nester', version = '1.2.0', py_modules = ['giftman_nester'], author = 'giftman', author_email = '121552591@qq.com', url = 'www.baidu.com', description = 'A S', )
rbtcollins/pip
refs/heads/develop
tests/data/packages/symlinks/setup.py
68
from setuptools import setup version = '0.1' setup(name='symlinks', version=version, packages=["symlinks"], )
itucsdb1522/itucsdb1522
refs/heads/master
team.py
1
class team: def __init__(self,i,nm,fd,str,n): self.id = i self.name = nm self.funddate = fd self.stars = str self.nation = n
vFense/vFenseAgent-nix
refs/heads/development
agent/deps/mac/Python-2.7.5/lib/python2.7/lib2to3/fixes/fix_except.py
326
"""Fixer for except statements with named exceptions. The following cases will be converted: - "except E, T:" where T is a name: except E as T: - "except E, T:" where T is not a name, tuple or list: except E as t: T = t This is done because the target of an "except" clause must be a ...
Belxjander/Kirito
refs/heads/master
Python-3.5.0-Amiga/Lib/ctypes/test/test_unicode.py
102
import unittest import ctypes from ctypes.test import need_symbol import _ctypes_test @need_symbol('c_wchar') class UnicodeTestCase(unittest.TestCase): def test_wcslen(self): dll = ctypes.CDLL(_ctypes_test.__file__) wcslen = dll.my_wcslen wcslen.argtypes = [ctypes.c_wchar_p] self....
phalax4/CarnotKE
refs/heads/master
jyhton/lib-python/2.7/test/test_list.py
84
import sys from test import test_support, list_tests class ListTest(list_tests.CommonTest): type2test = list def test_basic(self): self.assertEqual(list([]), []) l0_3 = [0, 1, 2, 3] l0_3_bis = list(l0_3) self.assertEqual(l0_3, l0_3_bis) self.assertTrue(l0_3 is not l0_3_...
huor/incubator-hawq
refs/heads/master
tools/bin/pythonSrc/pychecker-0.8.18/test_input/test55.py
11
'd' def x(): try : print "howdy, this ain't right" except KeyError, RuntimeError : pass def y(): try : print "ok, " + "this func %s should be fine" % y.__name__ except (KeyError, RuntimeError) : pass def z(): try : pass except (KeyError, RuntimeError, I...
etuna-SBF-kog/Stadsparken
refs/heads/master
env/lib/python2.7/site-packages/south/tests/otherfakeapp/__init__.py
12133432
Suninus/NewsBlur
refs/heads/master
vendor/paypal/standard/ipn/django_migrations/__init__.py
12133432
achang97/YouTunes
refs/heads/master
lib/python2.7/encodings/shift_jis_2004.py
816
# # shift_jis_2004.py: Python Unicode Codec for SHIFT_JIS_2004 # # Written by Hye-Shik Chang <perky@FreeBSD.org> # import _codecs_jp, codecs import _multibytecodec as mbc codec = _codecs_jp.getcodec('shift_jis_2004') class Codec(codecs.Codec): encode = codec.encode decode = codec.decode class IncrementalEnc...
rancherio/rancher
refs/heads/master
tests/validation/tests/v3_api/test_istio.py
2
import copy import os import re import pytest import time from subprocess import CalledProcessError from rancher import ApiError from .test_auth import enable_ad, load_setup_data from .common import add_role_to_user from .common import auth_get_user_token from .common import auth_resource_cleanup from .common impor...
timoguic/sp_hub
refs/heads/master
drf_sp_hub/sp_app/lib/html_importer.py
1
import logging import csv import re import json from lxml import etree from django.utils.html import strip_tags from sp_app.models import Article from sp_app.models import SPCategory from sp_app.models import SPKeyword logger = logging.getLogger(__name__) class HTMLImporter(): def __init__(self, obj): ...
halvertoluke/edx-platform
refs/heads/default_branch
common/djangoapps/third_party_auth/tests/specs/test_testshib.py
46
""" Third_party_auth integration tests using a mock version of the TestShib provider """ import unittest import httpretty from mock import patch from third_party_auth.tasks import fetch_saml_metadata from third_party_auth.tests import testutil from .base import IntegrationTestMixin TESTSHIB_ENTITY_ID = 'https://idp...
popazerty/openblackhole-SH4
refs/heads/master
lib/python/Plugins/Extensions/PluginHider/plugin.py
11
from __future__ import print_function from . import _ # Plugin definition from Plugins.Plugin import PluginDescriptor from Components.PluginComponent import PluginComponent from Components.config import config, ConfigSubsection, ConfigSet from PluginHiderSetup import PluginHiderSetup from operator import attrgette...
massimiliano-della-rovere/aiohttp_debugtoolbar
refs/heads/master
aiohttp_debugtoolbar/panels/settings.py
6
from operator import itemgetter from .base import DebugPanel from ..utils import APP_KEY __all__ = ['SettingsDebugPanel'] class SettingsDebugPanel(DebugPanel): """ A panel to display debug toolbar setting for now. """ name = 'Settings' has_content = True template = 'settings.jinja2' tit...
sysbot/CouchPotatoServer
refs/heads/master
libs/rtorrent/group.py
179
# Copyright (c) 2013 Dean Gardiner, <gardiner91@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 without restriction, including # without limitation the rights to use, copy, modify,...
impromptuartist/impromptuartist.github.io
refs/heads/master
node_modules/pygmentize-bundled/vendor/pygments/build-2.7/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...
js0701/chromium-crosswalk
refs/heads/master
components/data_reduction_proxy/PRESUBMIT.py
38
# 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. """Top-level presubmit script for the data_reduction_proxy component. See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for more d...
fschill/mavue
refs/heads/master
pymavlink/fgFDM.py
46
#!/usr/bin/env python # parse and construct FlightGear NET FDM packets # Andrew Tridgell, November 2011 # released under GNU GPL version 2 or later import struct, math class fgFDMError(Exception): '''fgFDM error class''' def __init__(self, msg): Exception.__init__(self, msg) self.message = 'fg...
uwdata/termite-data-server
refs/heads/master
web2py/gluon/dal.py
10
#!/bin/env python # -*- coding: utf-8 -*- """ This file is part of the web2py Web Framework Copyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu> License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html) Thanks to * Niall Sweeny <niall.sweeny@fonjax.com> for MS SQL support * Marcel Leuthi <mluethi@mlsystem...
turtleloveshoes/kitsune
refs/heads/master
kitsune/dashboards/cron.py
16
from datetime import date from django.conf import settings from django.db import connection import cronjobs from kitsune.dashboards.models import ( PERIODS, WikiDocumentVisits, WikiMetric, L10N_TOP20_CODE, L10N_TOP100_CODE, L10N_ALL_CODE, L10N_ACTIVE_CONTRIBUTORS_CODE) from kitsune.dashboards.readouts import...
lah7/openrazer
refs/heads/master
daemon/openrazer_daemon/dbus_services/dbus_methods/mamba.py
3
import math import struct from openrazer_daemon.dbus_services import endpoint @endpoint('razer.device.power', 'getBattery', out_sig='d') def get_battery(self): """ Get mouse's battery level """ self.logger.debug("DBus call get_battery") driver_path = self.get_driver_path('charge_level') with...
shanemcd/ansible
refs/heads/devel
test/units/modules/cloud/openstack/test_os_server.py
80
import collections import inspect import mock import pytest import yaml from ansible.module_utils.six import string_types from ansible.modules.cloud.openstack import os_server class AnsibleFail(Exception): pass class AnsibleExit(Exception): pass def params_from_doc(func): '''This function extracts th...
jethac/ATF
refs/heads/master
Test/FunctionalTests/FsmEditorTestScripts/ExpectedFailureNoSuccessMessage.py
10
#Copyright (c) 2014 Sony Computer Entertainment America LLC. See License.txt. import sys sys.path.append("./CommonTestScripts") import Test Test.Equal(1, 1) Test.Equal(2, 2) #Intentionally commented, we want this script to fail #print Test.SUCCESS
jonwille/Frogger
refs/heads/gh-pages
node_modules/node-gyp/gyp/pylib/gyp/easy_xml.py
1558
# Copyright (c) 2011 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import re import os def XmlToString(content, encoding='utf-8', pretty=False): """ Writes the XML content to disk, touching the file only if it has changed. ...
sparkslabs/kamaelia_
refs/heads/master
Sketches/MPS/BugReports/FixTests/Kamaelia/Kamaelia/Visualisation/PhysicsGraph3D/TopologyViewer3DWithParams.py
3
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1) # # (1) Kamaelia Contributors are listed in the AUTHORS file and at # http://www.kamaelia.org/AUTHORS - please extend this file, # not this notice. # # Licensed under the Apache License...
blrm/openshift-tools
refs/heads/stg
ansible/roles/lib_oa_openshift/action_plugins/conditional_set_fact.py
45
""" Ansible action plugin to help with setting facts conditionally based on other facts. """ from ansible.plugins.action import ActionBase DOCUMENTATION = ''' --- action_plugin: conditional_set_fact short_description: This will set a fact if the value is defined description: - "To avoid constant set_fact & whe...
fitzgen/servo
refs/heads/master
tests/wpt/css-tests/tools/pytest/testing/code/test_source.py
171
# flake8: noqa # disable flake check on this file because some constructs are strange # or redundant on purpose and can't be disable on a line-by-line basis import sys import _pytest._code import py import pytest from _pytest._code import Source from _pytest._code.source import _ast if _ast is not None: astonly =...
campagnola/acq4
refs/heads/develop
acq4/util/units.py
3
from __future__ import print_function from acq4.pyqtgraph.units import *
titasakgm/brc-stock
refs/heads/master
openerp/addons/report_geraldo/lib/geraldo/site/newsite/site-geraldo/utils/decorators.py
9
"""TODO: These should be commented""" from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import render_to_response from django.template.context import RequestContext from django.core.urlresolvers import reverse from django.conf import settings def page(template=None, context=None, **decor...
haad/ansible
refs/heads/devel
lib/ansible/plugins/action/unarchive.py
2
# (c) 2012, Michael DeHaan <michael.dehaan@gmail.com> # (c) 2013, Dylan Martin <dmartin@seattlecentral.edu> # # 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 v...
ar4s/django
refs/heads/master
tests/test_runner/test_discover_runner.py
4
from contextlib import contextmanager import os import sys from unittest import expectedFailure, TestSuite, TextTestRunner, defaultTestLoader from django.test import TestCase from django.test.runner import DiscoverRunner def expectedFailureIf(condition): """Marks a test as an expected failure if ``condition`` is...
rogegg/iOrg2
refs/heads/master
datareader/views.py
1
from django.shortcuts import render from django.contrib.auth.models import Permission,User, Group from django.http import HttpResponse from .models import * from django.contrib.auth.decorators import login_required from django.db import models, migrations from django.shortcuts import redirect import gspread import h...
nacker/pythonProject
refs/heads/master
Django/test1/booktest/tests.py
24123
from django.test import TestCase # Create your tests here.
chrz89/upb-son-editor-backend
refs/heads/master
src/son_editor/apis/schemaapi.py
1
import logging from flask import Response from flask import request from flask_restplus import Resource, Namespace from son_editor.impl import workspaceimpl from son_editor.util import descriptorutil from son_editor.util.constants import WORKSPACES from son_editor.util.descriptorutil import SCHEMA_ID_VNF from son_edi...
PeterDowdy/py-paradox-convert
refs/heads/master
tests/deserialization_tests.py
1
import unittest import deserializer __author__ = 'peter' class DeserializationTests(unittest.TestCase): def test_deserialize_single_key_value_pair(self): input = ['name','=','value'] expected_output = [{ 'name': 'value' }] output = deserializer.deserialize(input) self.assertEquals...
DaniilLeksin/gc
refs/heads/master
wx/tools/XRCed/model.py
7
# Name: model.py # Purpose: Model class and related # Author: Roman Rolinsky <rolinsky@femagsoft.com> # Created: 07.06.2007 # RCS-ID: $Id: model.py 65578 2010-09-21 07:39:45Z ROL $ import os,sys from xml.dom import minidom from globals import * # Redefine writing to include encoding clas...
cparawhore/ProyectoSubastas
refs/heads/master
site-packages/django/contrib/gis/tests/geo3d/tests.py
62
from __future__ import unicode_literals import os import re from unittest import skipUnless from django.contrib.gis.gdal import HAS_GDAL from django.contrib.gis.geos import HAS_GEOS from django.contrib.gis.tests.utils import postgis from django.test import TestCase from django.utils._os import upath if HAS_GEOS: ...
dewitt/appengine-unshorten
refs/heads/master
third_party/simplejson/tests/test_pass3.py
261
from unittest import TestCase import simplejson as json # from http://json.org/JSON_checker/test/pass3.json JSON = r''' { "JSON Test Pattern pass3": { "The outermost value": "must be an object or array.", "In this test": "It is an object." } } ''' class TestPass3(TestCase): def test_parse...
darkrho/scrapy-scrapy
refs/heads/master
scrapy/contrib/statsmailer.py
144
import warnings from scrapy.exceptions import ScrapyDeprecationWarning warnings.warn("Module `scrapy.contrib.statsmailer` is deprecated, " "use `scrapy.extensions.statsmailer` instead", ScrapyDeprecationWarning, stacklevel=2) from scrapy.extensions.statsmailer import *
elainenaomi/sciwonc-dataflow-examples
refs/heads/master
dissertation2017/Experiment 1B/instances/9_1_workflow_full_10files_secondary_nocons_nosh_nors_noannot_with_proj_3s/statscpumemory_0/StatsCPUMemory.py
50
#!/usr/bin/env python """ This activity will calculate the average_cpu of CPU request in whole data. These fields are optional and could be null. """ # It will connect to DataStoreClient from sciwonc.dataflow.DataStoreClient import DataStoreClient import ConfigDB_StatsCPUMemory_0 import math # connector and config cl...
h4ck3rm1k3/orca-sonar
refs/heads/master
src/orca/scripts/toolkits/Gecko/keymaps.py
1
# Orca # # Copyright 2010 Joanmarie Diggs, Mesar Hameed. # # This library 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 2.1 of the License, or (at your option) any later version. # # ...
rubik/poly
refs/heads/master
poly/core.py
1
import re import copy import operator import functools import fractions import itertools __all__ = ['monomial', 'parse', 'Poly'] def dict2poly(func): def wrapper(*args, **kwargs): d = func(*args, **kwargs) return sorted(zip(d.values(), d.keys()), key=lambda i: -i[1]) return wrapper def pol...
frappe/erpnext
refs/heads/develop
erpnext/non_profit/doctype/chapter/test_chapter.py
24
# -*- coding: utf-8 -*- # Copyright (c) 2017, Frappe Technologies Pvt. Ltd. and Contributors # See license.txt from __future__ import unicode_literals import unittest class TestChapter(unittest.TestCase): pass
michalkilawok/blockly
refs/heads/master
i18n/create_messages.py
128
#!/usr/bin/python # Generate .js files defining Blockly core and language messages. # # Copyright 2013 Google Inc. # https://developers.google.com/blockly/ # # 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 t...
collects/VTK
refs/heads/master
Filters/Parallel/Testing/Python/TestImageStreamer.py
26
#!/usr/bin/env python reader = vtk.vtkImageReader() reader.ReleaseDataFlagOff() reader.SetDataByteOrderToLittleEndian() reader.SetDataExtent(0,63,0,63,1,93) reader.SetFilePrefix("" + str(VTK_DATA_ROOT) + "/Data/headsq/quarter") reader.SetDataMask(0x7fff) rangeStart = 0.0 rangeEnd = 0.2 LUT = vtk.vtkLookupTable() LUT.S...
Links2004/esptool
refs/heads/master
setup.py
12
from setuptools import setup, find_packages from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup( name='esptool', version='0.1.0', description='A utility to communicate...
cechrist/cardoon
refs/heads/master
cardoon/devices/inductor.py
1
""" :mod:`inductor` -- Linear inductor ----------------------------------- .. module:: inductor .. moduleauthor:: Carlos Christoffersen """ import numpy as np from cardoon.globalVars import const, glVar import cardoon.circuit as cir class Device(cir.Element): """ Inductor -------- Connection diagram...
ColorFuzzy/tornado
refs/heads/master
maint/test/redbot/red_test.py
91
#!/usr/bin/env python import logging from redbot.resource import HttpResource import redbot.speak as rs import thor import threading from tornado import gen from tornado.options import parse_command_line from tornado.testing import AsyncHTTPTestCase, LogTrapTestCase from tornado.web import RequestHandler, Application,...
mhbu50/erpnext
refs/heads/develop
erpnext/templates/__init__.py
12133432
elsonrodriguez/madhatter
refs/heads/madhatter
koan/__init__.py
12133432
praekelt/jmbo-football
refs/heads/master
football/migrations/__init__.py
12133432
mmauroy/SickRage
refs/heads/master
lib/dogpile/cache/plugins/__init__.py
12133432
mglukhikh/intellij-community
refs/heads/master
python/lib/Lib/site-packages/django/contrib/localflavor/us/__init__.py
12133432
AlphaNerd80/Lists
refs/heads/master
superlists/__init__.py
12133432
ronfung/incubator-airflow
refs/heads/master
airflow/contrib/task_runner/__init__.py
1049
# -*- coding: utf-8 -*- # # 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 ...
wfxiang08/sqlalchemy
refs/heads/feature/wftest
test/orm/inheritance/test_selects.py
30
from sqlalchemy import String, Integer, ForeignKey, select from sqlalchemy.orm import mapper, Session from sqlalchemy import testing from sqlalchemy.testing import fixtures, eq_ from sqlalchemy.testing.schema import Table, Column class InheritingSelectablesTest(fixtures.MappedTest): @classmethod def define_t...
moshez/luggage
refs/heads/master
setup.py
1
# Copyright (c) Moshe Zadka # See LICENSE for details. import setuptools setuptools.setup( url='https://github.com/moshez/luggage', name='luggage', packages=setuptools.find_packages(), version='0.0.1', )
mookerji/libsbp
refs/heads/master
generator/sbpg/targets/test_c.py
1
#!/usr/bin/env python # Copyright (C) 2015 Swift Navigation Inc. # Contact: Joshua Gross <josh@swiftnav.com> # # This source is subject to the license found in the file 'LICENSE' which must # be be distributed together with this source. All other rights reserved. # # THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOU...
slisson/intellij-community
refs/heads/master
python/testData/console/indent10.py
80
x = '''Multiline starts; next line with indent; next line with indent; multiline ends''' x = '''Multiline starts; first second third fourth fifth multiline ends''' x = '''Multiline starts; #line ...
ciber96/mtasa-blue
refs/heads/master
vendor/google-breakpad/src/tools/gyp/test/mac/gyptest-loadable-module.py
146
#!/usr/bin/env python # Copyright (c) 2012 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Tests that a loadable_module target is built correctly. """ import TestGyp import os import struct import sys if sys.platform == 'dar...
izonder/intellij-community
refs/heads/master
plugins/hg4idea/testData/bin/mercurial/base85.py
96
# base85.py: pure python base85 codec # # Copyright (C) 2009 Brendan Cully <brendan@kublai.com> # # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. import struct _b85chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" \ "abcde...
dpaiton/OpenPV
refs/heads/master
pv-core/analysis/python/plot_amoeba_responseon_off.py
1
""" Make a histogram of normally distributed random numbers and plot the analytic PDF over it """ import sys import numpy as np import matplotlib.pyplot as plt import matplotlib.mlab as mlab import matplotlib.cm as cm import matplotlib.image as mpimg import PVReadWeights as rw import PVReadSparse as rs import math """...
FATruden/boto
refs/heads/master
tests/integration/ec2/vpc/__init__.py
12133432
Forage/Gramps
refs/heads/trunk
gramps/plugins/docgen/__init__.py
12133432
qma/pants
refs/heads/master
contrib/node/src/python/pants/contrib/node/targets/__init__.py
12133432
vladnicoara/SDLive-Blog
refs/heads/master
plugins/livedesk-embed/gui-themes/themes/brasil247/item/source/__init__.py
12133432
munificent/magpie
refs/heads/master
dep/gyp/test/actions-multiple/src/filter.py
349
#!/usr/bin/env python # Copyright (c) 2011 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import sys data = open(sys.argv[3], 'r').read() fh = open(sys.argv[4], 'w') fh.write(data.replace(sys.argv[1], sys.argv[2])) fh.close()
awkspace/ansible
refs/heads/devel
lib/ansible/modules/network/f5/bigip_smtp.py
14
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright: (c) 2017, F5 Networks Inc. # GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', ...
rpiotti/Flask-AppBuilder
refs/heads/master
examples/quickcharts2/build/lib/app/models.py
6
from sqlalchemy import Column, Integer, String, ForeignKey, Date, Float from sqlalchemy.orm import relationship from flask.ext.appbuilder import Model import datetime class Country(Model): id = Column(Integer, primary_key=True) name = Column(String(50), unique = True, nullable=False) def __repr__(self): ...
kkdd/arangodb
refs/heads/devel
3rdParty/V8-4.3.61/third_party/python_26/Lib/email/charset.py
58
# Copyright (C) 2001-2006 Python Software Foundation # Author: Ben Gertzfield, Barry Warsaw # Contact: email-sig@python.org __all__ = [ 'Charset', 'add_alias', 'add_charset', 'add_codec', ] import email.base64mime import email.quoprimime from email import errors from email.encoders import encode_...
MalloyPower/parsing-python
refs/heads/master
front-end/testsuite-python-lib/Python-2.6/Lib/encodings/iso8859_10.py
593
""" Python Character Mapping Codec iso8859_10 generated from 'MAPPINGS/ISO8859/8859-10.TXT' with gencodec.py. """#" import codecs ### Codec APIs class Codec(codecs.Codec): def encode(self,input,errors='strict'): return codecs.charmap_encode(input,errors,encoding_table) def decode(self,input,errors...
jamespcole/home-assistant
refs/heads/master
homeassistant/components/tesla/switch.py
1
"""Support for Tesla charger switches.""" import logging from homeassistant.components.switch import ENTITY_ID_FORMAT, SwitchDevice from homeassistant.const import STATE_OFF, STATE_ON from . import DOMAIN as TESLA_DOMAIN, TeslaDevice _LOGGER = logging.getLogger(__name__) DEPENDENCIES = ['tesla'] def setup_platform...
eformat/vertx-web
refs/heads/master
vertx-web/src/test/sockjs-protocol/venv/lib/python2.7/site-packages/pip/runner.py
658
import sys import os def run(): base = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) ## FIXME: this is kind of crude; if we could create a fake pip ## module, then exec into it and update pip.__path__ properly, we ## wouldn't have to update sys.path: sys.path.insert(0, base) impo...
jkahn/pydoop-code
refs/heads/master
pydoop/pipes_runner.py
1
# BEGIN_COPYRIGHT # # Copyright 2009-2013 CRS4. # # 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...
jwren/intellij-community
refs/heads/master
python/testData/resolve/DunderDocInDeclarationNewStyleClass.py
35
class A(object): print(__doc__) # <ref>
btgorman/RISE-power-water-ss-1phase
refs/heads/master
model_outputs/list_generator.py
1
import csv import collections import itertools with open('list_set_of_set.csv', 'r') as file: reader = csv.reader(file) new_list = list(reader) listid = [] listid.append(1) listlist = [[]] listset = [set()] incr = 1 # track when pipeid changes idx = 0 # listlist idx for row in new_list: pipeid = int(row[1]) if p...
gameduell/duell
refs/heads/master
bin/win/python2.7.9/Lib/site-packages/pip/_vendor/requests/packages/chardet/big5prober.py
2930
######################## 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...
danielchatfield/shreddi.es
refs/heads/master
libs/flask/testsuite/templating.py
562
# -*- coding: utf-8 -*- """ flask.testsuite.templating ~~~~~~~~~~~~~~~~~~~~~~~~~~ Template functionality :copyright: (c) 2011 by Armin Ronacher. :license: BSD, see LICENSE for more details. """ import flask import unittest from flask.testsuite import FlaskTestCase class TemplatingTestCase(Flask...
erwilan/ansible
refs/heads/devel
lib/ansible/modules/cloud/misc/ovirt.py
63
#!/usr/bin/python # (c) 2013, Vincent Van der Kussen <vincent at vanderkussen.org> # # 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,...
evilhero/mylar
refs/heads/master
lib/cherrypy/test/test_auth_digest.py
42
# This file is part of CherryPy <http://www.cherrypy.org/> # -*- coding: utf-8 -*- # vim:ts=4:sw=4:expandtab:fileencoding=utf-8 import cherrypy from cherrypy.lib import auth_digest from cherrypy.test import helper class DigestAuthTest(helper.CPWebCase): def setup_server(): class Root: def i...
cmshobe/landlab
refs/heads/master
tests/grid/test_hex_grid/test_edges.py
3
import numpy as np import pytest from landlab import HexModelGrid def test_perimeter_nodes(): """Test perimeter nodes of a hex grid.""" grid = HexModelGrid((3, 4), node_layout="rect") assert np.all(grid.perimeter_nodes == [3, 7, 11, 10, 9, 8, 4, 0, 1, 2]) def test_right_edge_nodes(): """Test right ...
crewjam/yact
refs/heads/master
third_party/build.py
1
# Copyright (c) 2010 Ross Kinder. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # # This script downloads and builds the third party dependencies for Windows. # For each dependency do roughly the following steps: # - download and extrac...
h00dy/rura
refs/heads/master
rura/config/__init__.py
12133432
iivic/BoiseStateX
refs/heads/master
lms/djangoapps/teams/tests/__init__.py
12133432
emonty/dox
refs/heads/master
dox/tests/__init__.py
12133432
rmoorman/sqlalchemy-i18n
refs/heads/master
tests/test_expressions.py
2
from sqlalchemy_i18n.expressions import current_locale class TestCurrentLocaleExpression(object): def test_render(self): assert str(current_locale()) == ':current_locale'