repo_name
stringlengths
5
100
ref
stringlengths
12
67
path
stringlengths
4
244
copies
stringlengths
1
8
content
stringlengths
0
1.05M
axinging/chromium-crosswalk
refs/heads/master
components/test/data/autofill/merge/tools/reserialize_profiles_from_query.py
162
#!/usr/bin/env python # Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import sys from autofill_merge_common import SerializeProfiles, ColumnNameToFieldType def main(): """Serializes the output of the ...
omerhasan/namebench
refs/heads/master
nb_third_party/graphy/bar_chart.py
233
#!/usr/bin/python2.4 # # Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
glciampaglia/pymulator
refs/heads/master
pymulator/cmdline.py
1
""" Main console scripts entry point. """ import argparse import copy from . import core from . import sim commands = ['simulate', 'createsim', 'showsim', 'plot'] def simulate(args): """run a simulation""" s = sim.Sim(args.sim_path) df = core.simulate(s) if args.reproduce: if not hasattr(s,...
SungJinYoo/BookShare
refs/heads/master
bookshare/wsgi.py
1
""" WSGI config for bookshare project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/ """ import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "bookshare.settings") from django.co...
ManushB/Flask-Blog
refs/heads/master
app/forms.py
22
from flask.ext.wtf import Form from wtforms import StringField, BooleanField from wtforms.validators import DataRequired class LoginForm(Form): openid = StringField('openid', validators=[DataRequired()]) remember_me = BooleanField('remember_me', default=False)
JackieXie168/rethinkdb
refs/heads/next
test/common/http_support/flask/app.py
427
# -*- coding: utf-8 -*- """ flask.app ~~~~~~~~~ This module implements the central WSGI application object. :copyright: (c) 2011 by Armin Ronacher. :license: BSD, see LICENSE for more details. """ import os import sys from threading import Lock from datetime import timedelta from itertools import...
ammarkhann/FinalSeniorCode
refs/heads/master
lib/python2.7/site-packages/scipy/signal/__init__.py
12
""" ======================================= Signal processing (:mod:`scipy.signal`) ======================================= Convolution =========== .. autosummary:: :toctree: generated/ convolve -- N-dimensional convolution. correlate -- N-dimensional correlation. fftconvolve --...
josephpage/compose
refs/heads/master
tests/unit/cli/verbose_proxy_test.py
57
from __future__ import unicode_literals from __future__ import absolute_import from tests import unittest from compose.cli import verbose_proxy class VerboseProxyTestCase(unittest.TestCase): def test_format_call(self): expected = "(u'arg1', True, key=u'value')" actual = verbose_proxy.format_call...
saumishr/django
refs/heads/master
tests/modeltests/defer/__init__.py
12133432
listyque/TACTIC-Handler
refs/heads/stable
thlib/side/natsort/compat/__init__.py
12133432
pyecs/servo
refs/heads/master
tests/wpt/css-tests/tools/html5lib/html5lib/filters/__init__.py
12133432
libracore/erpnext
refs/heads/v12
erpnext/communication/doctype/call_log/__init__.py
12133432
scipy/scipy
refs/heads/master
scipy/interpolate/tests/test_fitpack2.py
12
# Created by Pearu Peterson, June 2003 import numpy as np from numpy.testing import (assert_equal, assert_almost_equal, assert_array_equal, assert_array_almost_equal, assert_allclose, suppress_warnings) from pytest import raises as assert_raises from numpy import array, diff, linspace, meshgrid, ones, pi, shap...
MTASZTAKI/ApertusVR
refs/heads/0.9
plugins/languageAPI/jsAPI/3rdParty/nodejs/10.1.0/source/deps/v8/tools/turbolizer-perf.py
12
# Copyright 2016 the V8 project authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os import sys import json import re import argparse sys.path.append(os.environ['PERF_EXEC_PATH'] + \ '/scripts/python/Perf-Trace-Util/lib/Perf/Tr...
CallaJun/hackprince
refs/heads/master
indico/nose/loader.py
5
""" Test Loader ----------- nose's test loader implements the same basic functionality as its superclass, unittest.TestLoader, but extends it by more liberal interpretations of what may be a test and how a test may be named. """ from __future__ import generators import logging import os import sys import unittest imp...
postla/OpenNFR-E2
refs/heads/master
lib/python/Screens/PowerTimerEntry.py
3
from Screens.Screen import Screen from Components.config import ConfigSelection, ConfigSubList, ConfigDateTime, ConfigClock, ConfigYesNo, ConfigInteger, getConfigListEntry from Components.ActionMap import NumberActionMap from Components.ConfigList import ConfigListScreen from Components.MenuList import MenuList from Co...
jasonseminara/OpenSourceFinal
refs/heads/master
myvenv/lib/python3.5/site-packages/django/core/cache/backends/locmem.py
586
"Thread-safe in-memory cache backend." import time from contextlib import contextmanager from django.core.cache.backends.base import DEFAULT_TIMEOUT, BaseCache from django.utils.synch import RWLock try: from django.utils.six.moves import cPickle as pickle except ImportError: import pickle # Global in-memor...
psywhale/pyswitchvox
refs/heads/master
bin/elevator_check.py
1
#!/usr/bin/env python import sys import os sys.path.append( os.path.abspath( os.path.join(os.path.dirname(__file__), os.path.pardir))) from check_outboundCall import ElevatorCall as check def main(): check().run_nagios_check() if __name__=="__main__": main()
sysadminmatmoz/odoo-clearcorp
refs/heads/8.0
TODO-8.0/account_voucher_prepayment/wizard/account_voucher_add_payments.py
3
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Addons modules by CLEARCORP S.A. # Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>). # # This program is free software: you can redistribute...
eltonsantos/django
refs/heads/master
tests/utils_tests/test_no_submodule.py
737
# Used to test for modules which don't have submodules.
nandhp/misc-utils
refs/heads/master
keepassx_domains.py
1
#!/usr/bin/env python2 # # Extract list of sites from a KeepassX CSV export. Output is # formatted for grepping in a list of domains. Written for Cloudbleed. # # This script makes some assumptions on how your Title and URL fields # are filled out, but if one or both is a URL or hostname, it should # work for you. # # U...
marctc/django-blog-zinnia
refs/heads/develop
zinnia/tests/test_url_shortener.py
8
"""Test cases for Zinnia's url_shortener""" import warnings from django.test import TestCase from django.test.utils import override_settings from zinnia.url_shortener import get_url_shortener from zinnia import url_shortener as us_settings from zinnia.url_shortener.backends import default class URLShortenerTestCase...
vikitripathi/MB-MessApp-API
refs/heads/master
messApp/env/lib/python2.7/site-packages/pip/_vendor/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...
alivecor/tensorflow
refs/heads/master
tensorflow/python/kernel_tests/aggregate_ops_test.py
51
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
vbshah1992/microblog
refs/heads/master
flask/lib/python2.7/site-packages/sqlalchemy/dialects/mysql/pymysql.py
18
# mysql/pymysql.py # Copyright (C) 2005-2012 the SQLAlchemy authors and contributors <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """Support for the MySQL database via the pymysql adapter. pymysql is available at: ...
Maccimo/intellij-community
refs/heads/master
python/testData/completion/fromPackageImport/pkg/__init__.py
12133432
samvarankashyap/linch-pin
refs/heads/develop
linchpin/provision/roles/azure/library/__init__.py
12133432
yokose-ks/edx-platform
refs/heads/gacco3/master
common/djangoapps/embargo/__init__.py
12133432
GreenRecycleBin/servo
refs/heads/master
tests/wpt/web-platform-tests/tools/__init__.py
12133432
yk5/incubator-airflow
refs/heads/master
airflow/operators/generic_transfer.py
2
# -*- coding: utf-8 -*- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the #...
townbull/keystone-dtrust
refs/heads/dev/domain-trusts
keystone/openstack/common/rpc/dispatcher.py
6
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 Red Hat, 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 # #...
matrix-org/sydent
refs/heads/main
sydent/terms/terms.py
1
# Copyright 2019 The Matrix.org Foundation C.I.C. # # 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...
mcus/SickRage
refs/heads/master
lib/hachoir_parser/audio/au.py
95
""" AU audio file parser Author: Victor Stinner Creation: 12 july 2006 """ from hachoir_parser import Parser from hachoir_core.field import UInt32, Enum, String, RawBytes from hachoir_core.endian import BIG_ENDIAN from hachoir_core.text_handler import displayHandler, filesizeHandler from hachoir_core.tools import cre...
iamahuman/angr
refs/heads/master
angr/procedures/libc/puts.py
1
import angr from angr.sim_type import SimTypeString, SimTypeInt ###################################### # puts ###################################### class puts(angr.SimProcedure): #pylint:disable=arguments-differ def run(self, string): self.argument_types = {0: self.ty_ptr(SimTypeString())} s...
m11s/MissionPlanner
refs/heads/master
Lib/site-packages/scipy/optimize/setupscons.py
51
#!"C:\Users\hog\Documents\Visual Studio 2010\Projects\ArdupilotMega\ArdupilotMega\bin\Debug\ipy.exe" from os.path import join def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration from numpy.distutils.system_info import get_info config = Configuration('opt...
eahneahn/free
refs/heads/master
djangoproject/core/migrations/0036_receiveEmail_fields.py
3
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import DataMigration from django.db import models class Migration(DataMigration): def forwards(self, orm): for info in orm.UserInfo.objects.all(): info.receiveEmail_issue_comments = info.receiveAllEmail i...
cmouse/buildbot
refs/heads/master
master/buildbot/test/util/www.py
3
# 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...
leokhachatorians/Torrent-Aggregator
refs/heads/master
torrent_class.py
1
import requests from bs4 import BeautifulSoup from lxml import html class Torrent(): # For all children of the Torrent class the initial database number # will ALWAYS be one, makes no sense to do it any other way. db_num = 1 page_num = None r = None soup = None tree = None amount = None titles = None seeds =...
robertmattmueller/sdac-compiler
refs/heads/master
sympy/mpmath/libmp/libmpf.py
23
""" Low-level functions for arbitrary-precision floating-point arithmetic. """ __docformat__ = 'plaintext' import math from bisect import bisect import sys # Importing random is slow #from random import getrandbits getrandbits = None from .backend import (MPZ, MPZ_TYPE, MPZ_ZERO, MPZ_ONE, MPZ_TWO, MPZ_FIVE, B...
40223137/w17w17
refs/heads/master
static/Brython3.1.1-20150328-091302/Lib/unittest/test/testmock/testcallable.py
739
# Copyright (C) 2007-2012 Michael Foord & the mock team # E-mail: fuzzyman AT voidspace DOT org DOT uk # http://www.voidspace.org.uk/python/mock/ import unittest from unittest.test.testmock.support import is_instance, X, SomeClass from unittest.mock import ( Mock, MagicMock, NonCallableMagicMock, NonCallableM...
pqtoan/mathics
refs/heads/larion/quotient
mathics/builtin/arithmetic.py
1
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Arithmetic functions Basic arithmetic functions, including complex number arithmetic. """ from __future__ import unicode_literals from __future__ import absolute_import import sympy import mpmath from mathics.builtin.base import ( Builtin, Predefined, BinaryOpe...
turbokongen/home-assistant
refs/heads/dev
homeassistant/components/melissa/climate.py
15
"""Support for Melissa Climate A/C.""" import logging from homeassistant.components.climate import ClimateEntity from homeassistant.components.climate.const import ( FAN_AUTO, FAN_HIGH, FAN_LOW, FAN_MEDIUM, HVAC_MODE_AUTO, HVAC_MODE_COOL, HVAC_MODE_DRY, HVAC_MODE_FAN_ONLY, HVAC_MODE...
byllyfish/faucet
refs/heads/master
faucet/__init__.py
12133432
ftomassetti/intellij-community
refs/heads/master
python/lib/Lib/site-packages/django/conf/locale/ro/__init__.py
12133432
ed-/solum
refs/heads/master
solum/tests/deployer/__init__.py
12133432
mahim97/zulip
refs/heads/master
zerver/management/__init__.py
12133432
JimCircadian/ansible
refs/heads/devel
lib/ansible/modules/clustering/__init__.py
12133432
vv1133/home_web
refs/heads/master
django/conf/locale/de_CH/__init__.py
12133432
tudyzhb/yichui
refs/heads/master
django/contrib/localflavor/ec/__init__.py
12133432
slobberchops/rop
refs/heads/master
opc/utils/__init__.py
12133432
gizmag/django-fsm-log
refs/heads/master
django_fsm_log/decorators.py
2
from functools import wraps, partial from .helpers import FSMLogDescriptor def fsm_log_by(func): @wraps(func) def wrapped(instance, *args, **kwargs): try: by = kwargs['by'] except KeyError: return func(instance, *args, **kwargs) with FSMLogDescriptor(instance, '...
nagyistoce/edx-analytics-data-api-client
refs/heads/master
analyticsclient/exceptions.py
3
class ClientError(Exception): """ Common base class for all client errors. """ pass class NotFoundError(ClientError): """ URL was not found. """ pass class InvalidRequestError(ClientError): """ The API request was invalid. """ pass class TimeoutError(ClientError): """ The API server...
manjunaths/tensorflow
refs/heads/master
tensorflow/python/ops/cloud/bigquery_reader_ops.py
29
# 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...
IronLanguages/ironpython3
refs/heads/master
Src/StdLib/Lib/lib2to3/fixes/fix_reload.py
92
"""Fixer for reload(). reload(s) -> imp.reload(s)""" # Local imports from .. import fixer_base from ..fixer_util import ImportAndCall, touch_import class FixReload(fixer_base.BaseFix): BM_compatible = True order = "pre" PATTERN = """ power< 'reload' trailer< lpar='(' ...
vmax-feihu/hue
refs/heads/master
desktop/core/ext-py/Paste-2.0.1/tests/test_request.py
47
# (c) 2005 Ben Bangert # This module is part of the Python Paste Project and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php from paste.fixture import * from paste.request import * from paste.wsgiwrappers import WSGIRequest import six def simpleapp(environ, start_response): ...
pombredanne/django-jet
refs/heads/master
jet/tests/test_utils.py
5
from datetime import datetime, date import json from django.contrib.admin import AdminSite from django.test import TestCase from jet.tests.models import TestModel from jet.utils import JsonResponse, get_model_instance_label, get_app_list, get_admin_site, LazyDateTimeEncoder class UtilsTestCase(TestCase): def test...
Julian24816/lHelper
refs/heads/master
language/german.py
1
# coding=utf-8 # # Copyright (C) 2016 Julian Mueller # # 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. # # This program ...
yinquan529/platform-external-chromium_org-tools-gyp
refs/heads/master
tools/pretty_sln.py
806
#!/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. """Prints the information in a sln file in a diffable way. It first outputs each projects in alphabetical order with their dependenci...
vingkan/MebiPenny2012Finals
refs/heads/master
2011-mebipenny/contest/spelunking/spelunking.py
7
#!/usr/bin/env python import sys, re, random from collections import defaultdict INFINITY = float('inf') class Graph(object): def __init__(self): self.edges = defaultdict(lambda: set()) self.capacities = defaultdict(lambda: 0) def copy(self): new_g = Graph() new_g.edges = se...
z25/BgeHttpServer
refs/heads/master
webob/headers.py
78
from collections import MutableMapping from webob.compat import ( iteritems_, string_types, ) from webob.multidict import MultiDict __all__ = ['ResponseHeaders', 'EnvironHeaders'] class ResponseHeaders(MultiDict): """ Dictionary view on the response headerlist. Keys are normalized for ...
jostep/tensorflow
refs/heads/master
tensorflow/contrib/seq2seq/python/ops/__init__.py
12133432
mrrrgn/olympia
refs/heads/master
apps/files/__init__.py
12133432
msebire/intellij-community
refs/heads/master
python/testData/testRunner/env/createConfigurationTest/folder_with_word_tests_in_name/__init__.py
12133432
frankvdp/django
refs/heads/master
django/conf/locale/es/__init__.py
12133432
pigeonflight/strider-plone
refs/heads/master
docker/appengine/lib/django-1.2/tests/regressiontests/model_formsets_regress/__init__.py
12133432
fxfitz/ansible
refs/heads/devel
lib/ansible/modules/network/netvisor/__init__.py
12133432
mollstam/UnrealPy
refs/heads/master
UnrealPyEmbed/Development/Python/2015.08.07-Python2710-x64-Source-vs2015/Python27/Source/pywin32-219/com/win32com/client/makepy.py
16
# Originally written by Curt Hagenlocher, and various bits # and pieces by Mark Hammond (and now Greg Stein has had # a go too :-) # Note that the main worker code has been moved to genpy.py # As this is normally run from the command line, it reparses the code each time. # Now this is nothing more than the command l...
geometrybase/gensim
refs/heads/develop
gensim/parsing/porter.py
86
#!/usr/bin/env python """Porter Stemming Algorithm This is the Porter stemming algorithm, ported to Python from the version coded up in ANSI C by the author. It may be be regarded as canonical, in that it follows the algorithm presented in Porter, 1980, An algorithm for suffix stripping, Program, Vol. 14, no. 3, pp 1...
adelina-t/nova
refs/heads/master
nova/api/openstack/compute/plugins/v3/flavor_rxtx.py
36
# Copyright 2012 Nebula, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
vmindru/ansible
refs/heads/devel
lib/ansible/plugins/doc_fragments/vultr.py
36
# -*- coding: utf-8 -*- # Copyright (c) 2017 René Moser <mail@renemoser.net> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) class ModuleDocFragment(object): # Standard documentation fragment DOCUMENTATION = ''' options: api_key: description: - API key...
magvugr/AT
refs/heads/master
EntVirtual/lib/python2.7/site-packages/django/views/debug.py
20
from __future__ import unicode_literals import re import sys import types from django.conf import settings from django.http import HttpResponse, HttpResponseNotFound from django.template import Context, Engine, TemplateDoesNotExist from django.template.defaultfilters import force_escape, pprint from django.urls impor...
fulfilio/trytond-shipping-ups
refs/heads/develop
docs/conf.py
3
# -*- coding: utf-8 -*- # # Tryton Shipping UPS documentation build configuration file, created by # sphinx-quickstart on Wed Apr 8 12:01:12 2015. # # 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...
smandy/d_c_experiment
refs/heads/master
scons-local-2.3.4/SCons/Options/ListOption.py
9
# # Copyright (c) 2001 - 2014 The SCons Foundation # # 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, merge...
rajendrauppal/coding-interview
refs/heads/master
programming_languages/Python/lambda.py
1
import math def sqroot(x): return math.sqrt(x) square_root = lambda x: math.sqrt(x) print(sqroot(65)) print(square_root(65)) import Tkinter as tk class App: def __init__(self, parent): frame = tk.Frame(parent) frame.pack() btn22 = tk.Button(frame, text="22", comman...
fydlzr/scrapy-redis
refs/heads/master
scrapy_redis/dupefilter.py
17
import time from scrapy.dupefilters import BaseDupeFilter from scrapy.utils.request import request_fingerprint from . import connection class RFPDupeFilter(BaseDupeFilter): """Redis-based request duplication filter""" def __init__(self, server, key): """Initialize duplication filter Parame...
crazy-canux/django
refs/heads/master
tests/foreign_object/models/__init__.py
208
from .article import ( Article, ArticleIdea, ArticleTag, ArticleTranslation, NewsArticle, ) from .empty_join import SlugPage from .person import Country, Friendship, Group, Membership, Person __all__ = [ 'Article', 'ArticleIdea', 'ArticleTag', 'ArticleTranslation', 'Country', 'Friendship', 'Group', 'Member...
xbmc/atv2
refs/heads/atv2
xbmc/lib/libPython/Python/Lib/encodings/euc_jisx0213.py
12
# # euc_jisx0213.py: Python Unicode Codec for EUC_JISX0213 # # Written by Hye-Shik Chang <perky@FreeBSD.org> # $CJKCodecs: euc_jisx0213.py,v 1.8 2004/06/28 18:16:03 perky Exp $ # import _codecs_jp, codecs codec = _codecs_jp.getcodec('euc_jisx0213') class Codec(codecs.Codec): encode = codec.encode decode = co...
collex100/odoo
refs/heads/8.0
addons/hr_contract/__init__.py
381
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-Today OpenERP SA (<http://www.openerp.com) # # This program is free software: you can redistribute it and/or modify # it under the term...
SerpentCS/odoo
refs/heads/8.0
addons/account_followup/__openerp__.py
261
# -*- 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...
Hao-Liu/tp-libvirt
refs/heads/master
libguestfs/tests/guestfs_file_operations.py
8
import re import os import logging import tarfile from autotest.client.shared import utils, error from virttest import data_dir, utils_test def test_tar_in(vm, params): """ 1) Fall into guestfish session w/ inspector 2) Write a tempfile on host 3) Copy file to guest with tar-in 4) Delete created f...
doduytrung/odoo-8.0
refs/heads/master
addons/hw_escpos/escpos/supported_devices.py
227
#!/usr/bin/python # This is a list of esc/pos compatible usb printers. The vendor and product ids can be found by # typing lsusb in a linux terminal, this will give you the ids in the form ID VENDOR:PRODUCT device_list = [ { 'vendor' : 0x04b8, 'product' : 0x0e03, 'name' : 'Epson TM-T20' }, { 'vendor' : 0x04b8...
Anonymouslemming/ansible
refs/heads/devel
lib/ansible/modules/cloud/amazon/rds.py
24
#!/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 distributed...
baberthal/CouchPotatoServer
refs/heads/master
couchpotato/core/media/_base/library/__init__.py
81
from .main import Library def autoload(): return Library() config = []
nialaa/pythonessie
refs/heads/master
birthscript.py
1
#!/usr/bin/python2.7 from time import sleep import sys import sys class ProgressBar(): DEFAULT_BAR_LENGTH = float(65) def __init__(self, end, start=0): self.end = end self.start = start self._barLength = ProgressBar.DEFAULT_BAR_LENGTH self.setLevel(self.start) sel...
mcueto/djangorestframework-apicontrol
refs/heads/master
rest_framework_apicontrol/migrations/0008_loggingevent_logging_group.py
1
# Generated by Django 2.1.2 on 2018-11-20 03:18 from django.db import migrations, models import django.db.models.deletion import rest_framework_apicontrol.utils class Migration(migrations.Migration): dependencies = [ ('rest_framework_apicontrol', '0007_create_default_logging_group'), ] operatio...
porksmash/swarfarm
refs/heads/master
herders/autocomplete.py
1
from django.db.models import Q from django.template import loader from dal import autocomplete from .models import MonsterTag, MonsterInstance class MonsterInstanceAutocomplete(autocomplete.Select2QuerySetView): paginate_by = 15 def get_queryset(self): qs = MonsterInstance.objects.filter(owner__use...
timmahrt/ProMo
refs/heads/master
examples/pitch_morph_to_pitch_contour.py
1
''' Created on Jun 29, 2016 This file shows an example of morphing to a pitch tier. In f0_morph.py, the target pitch contour is extracted in the script from another file. In this example, the pitch tier could come from any source (hand sculpted or generated). WARNING: If you attempt to morph to a pitch track that ha...
kurtdawg24/robotframework
refs/heads/master
src/robot/utils/robottime.py
18
# Copyright 2008-2015 Nokia Solutions and Networks # # 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 l...
Fakor/congov
refs/heads/master
cli/lib/constants.py
1
import os cli_home = os.environ["CLI_PATH"] gov_home = os.environ["GOV_HOME"] command_templates_path = os.path.join(gov_home, "resource_files/tests/json_templates")
WoLpH/CouchPotatoServer
refs/heads/master
libs/unrar2/__init__.py
16
# Copyright (c) 2003-2005 Jimmy Retzlaff, 2008 Konstantin Yegupov # # 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...
dustyleary/googletest
refs/heads/master
test/gtest_filter_unittest.py
2826
#!/usr/bin/env python # # Copyright 2005 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...
redhat-openstack/nova
refs/heads/f22-patches
nova/api/openstack/compute/contrib/shelve.py
13
# Copyright 2013 Rackspace Hosting # # 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 agre...
MungoRae/home-assistant
refs/heads/dev
homeassistant/components/scene/wink.py
12
""" Support for Wink scenes. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/scene.wink/ """ import asyncio import logging from homeassistant.components.scene import Scene from homeassistant.components.wink import WinkDevice, DOMAIN DEPENDENCIES = ['win...
0k0k/scrapy
refs/heads/master
stock/stock/items.py
1
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/en/latest/topics/items.html import scrapy class StockItem(scrapy.Item): # define the fields for your item here like: # name = scrapy.Field() COMPANY_ABBR = scrapy.Field() COMPANY_CODE = scra...
jchevin/MissionPlanner-master
refs/heads/master
Lib/site-packages/scipy/linalg/_flinalg.py
53
import sys if sys.platform == 'cli': import clr clr.AddReference("linalg") from scipy__linalg___flinalg import *
carljm/django
refs/heads/master
tests/migrations/migrations_test_apps/unmigrated_app/models.py
282
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models class SillyModel(models.Model): silly_field = models.BooleanField(default=False) silly_tribble = models.ForeignKey("migrations.Tribble", models.CASCADE) is_trouble = models.BooleanField(default=True)
QUANTAXIS/QUANTAXIS
refs/heads/master
QUANTAXIS/QAFetch/QAOKEx.py
2
# coding: utf-8 # Author: 阿财(Rgveda@github)(11652964@qq.com) # Created date: 2020-02-27 # # The MIT License (MIT) # # Copyright (c) 2016-2018 yutiansut/QUANTAXIS # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to de...
kisna72/django
refs/heads/master
django/contrib/staticfiles/management/__init__.py
12133432
dracos/django
refs/heads/master
tests/admin_scripts/simple_app/management/commands/__init__.py
12133432
SinnerSchraderMobileMirrors/django-cms
refs/heads/develop
cms/test_utils/util/__init__.py
12133432