repo_name
stringlengths
5
100
ref
stringlengths
12
67
path
stringlengths
4
244
copies
stringlengths
1
8
content
stringlengths
0
1.05M
krast/suse_xen
refs/heads/master
tools/python/xen/xend/server/netif2.py
43
#============================================================================ # 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...
jonparrott/gcloud-python
refs/heads/master
redis/google/cloud/redis_v1/__init__.py
3
# -*- coding: utf-8 -*- # # Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
arenadata/ambari
refs/heads/branch-adh-1.6
ambari-server/src/main/resources/stacks/ADH/1.4/services/ATLAS/package/scripts/atlas_client.py
2
#!/usr/bin/env python """ 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 "License");...
antkillerfarm/antkillerfarm_crazy
refs/heads/master
python/ml/tensorflow/hello_mnist.py
1
#!/usr/bin/python # -*- coding: utf-8 -*- from tensorflow.examples.tutorials.mnist import input_data import tensorflow as tf mnist = input_data.read_data_sets("MNIST_data/", one_hot=True) x = tf.placeholder(tf.float32, [None, 784]) W = tf.Variable(tf.zeros([784, 10])) b = tf.Variable(tf.zeros([10])) y = tf.matmul(x,...
tisnik/fabric8-analytics-common
refs/heads/master
integration-tests/features/src/attribute_checks.py
1
"""Utility functions to check attributes returned in API responses and read from the AWS S3.""" import datetime import re def check_attribute_presence(node, attribute_name): """Check the attribute presence in the given dictionary or list. To be used to check the deserialized JSON data etc. """ found_...
STIXProject/python-stix
refs/heads/master
stix/bindings/extensions/test_mechanism/__init__.py
9
# Copyright (c) 2017, The MITRE Corporation. All rights reserved. # See LICENSE.txt for complete terms.
VielSoft/odoo
refs/heads/8.0
addons/account/wizard/account_statement_from_invoice.py
224
# -*- 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...
googleads/google-ads-python
refs/heads/master
google/ads/googleads/v7/services/services/keyword_view_service/transports/grpc.py
1
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
XiaodunServerGroup/xiaodun-platform
refs/heads/master
cms/djangoapps/contentstore/management/commands/__init__.py
12133432
adrn/streams
refs/heads/master
scripts/make_streams2.py
1
# coding: utf-8 """ Turn our model into a generative model. """ from __future__ import division, print_function __author__ = "adrn <adrn@astro.columbia.edu>" # Standard library import os, sys # Third-party import astropy.units as u import astropy.coordinates as coord import matplotlib.pyplot as plt import numpy as...
dennybaa/st2
refs/heads/master
contrib/packs/actions/pack_mgmt/setup_virtualenv.py
1
# Licensed to the StackStorm, Inc ('StackStorm') 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 "License"); you may not use th...
xccui/flink
refs/heads/master
flink-python/pyflink/datastream/tests/__init__.py
406
################################################################################ # 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...
Ananasus/EchelonFrontEnd
refs/heads/master
DjangoFrontendHD/DjangoFrontendHD/urls.py
1
""" Definition of urls for DjangoFrontendHD. """ from datetime import datetime from django.conf.urls import patterns, url from django.conf.urls.static import static from django.conf import settings from syncdb.forms import BootstrapAuthenticationForm # Uncomment the next lines to enable the admin: # from d...
lodr/codeaurora_kernel_msm
refs/heads/b2g-msm-hammerhead-3.4-lollipop-release
scripts/rt-tester/rt-tester.py
11005
#!/usr/bin/python # # rt-mutex tester # # (C) 2006 Thomas Gleixner <tglx@linutronix.de> # # 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. # import os import sys import getopt import sh...
ytjiang/django
refs/heads/master
tests/template_tests/filter_tests/test_get_digit.py
523
from django.template.defaultfilters import get_digit from django.test import SimpleTestCase class FunctionTests(SimpleTestCase): def test_values(self): self.assertEqual(get_digit(123, 1), 3) self.assertEqual(get_digit(123, 2), 2) self.assertEqual(get_digit(123, 3), 1) self.assertE...
LOSP/external_skia
refs/heads/kk
tools/verify_images_for_gm_results.py
32
#!/usr/bin/python # Copyright (c) 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. """ Look through skia-autogen, searching for all checksums which should have corresponding files in Google Storage, and verify that t...
hubsaysnuaa/odoo
refs/heads/8.0
addons/account/project/report/quantity_cost_ledger.py
358
# -*- 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...
ventrixcode/yowsup
refs/heads/pr/2
yowsup/layers/protocol_presence/protocolentities/test_presence.py
68
from yowsup.layers.protocol_presence.protocolentities.presence import PresenceProtocolEntity from yowsup.structs import ProtocolTreeNode from yowsup.structs.protocolentity import ProtocolEntityTest import unittest class PresenceProtocolEntityTest(ProtocolEntityTest, unittest.TestCase): def setUp(self): sel...
FNST-OpenStack/horizon
refs/heads/master
openstack_dashboard/dashboards/admin/networks/subnets/workflows.py
80
# Copyright 2013 NEC Corporation # # 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...
hackoon/cinnamon-screensaver-mplayer-fs
refs/heads/master
src/widgets/marqueeLabel.py
2
#! /usr/bin/python3 from gi.repository import Gtk, GObject, GLib from util import trackers class _fixedViewport(Gtk.Viewport): """ This is needed by MarqueeLabel to restrict the size of our label, and cause the viewport to actually be functional. Otherwise, the text is trimmed, but no scrolling occur...
SRabbelier/Melange
refs/heads/master
thirdparty/google_appengine/lib/django_0_96/django/utils/_threading_local.py
64
"""Thread-local objects (Note that this module provides a Python version of thread threading.local class. Depending on the version of Python you're using, there may be a faster one available. You should always import the local class from threading.) Thread-local objects support the management of thread-local dat...
jchevin/ardupilot-master
refs/heads/master
Tools/autotest/apm_unit_tests/examples/arducopter_example_level.py
250
import arducopter def unit_test(mavproxy, mav): '''A scripted flight plan''' if (arducopter.calibrate_level(mavproxy, mav)): return True return False
vedujoshi/tempest
refs/heads/master
tempest/tests/lib/common/utils/linux/test_remote_client.py
1
# Copyright 2017 NEC Corporation. # 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...
romain-li/edx-platform
refs/heads/master
openedx/core/djangoapps/content/course_overviews/migrations/0005_delete_courseoverviewgeneratedhistory.py
80
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('course_overviews', '0004_courseoverview_org'), ] operations = [ migrations.DeleteModel( name='CourseOverviewGene...
markoshorro/gem5
refs/heads/master
configs/ruby/MOESI_hammer.py
15
# Copyright (c) 2006-2007 The Regents of The University of Michigan # Copyright (c) 2009 Advanced Micro Devices, 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 co...
chhao91/QGIS
refs/heads/master
python/analysis/__init__.py
23
from qgis._analysis import *
DMLoy/ECommerceBasic
refs/heads/master
lib/python2.7/site-packages/django/conf/locale/pt_BR/__init__.py
12133432
Nitaco/ansible
refs/heads/devel
test/units/modules/network/__init__.py
12133432
hottwaj/django
refs/heads/master
tests/sites_tests/__init__.py
12133432
aikramer2/spaCy
refs/heads/master
spacy/syntax/__init__.py
12133432
kragniz/searchlight
refs/heads/master
searchlight/common/config.py
2
#!/usr/bin/env python # Copyright 2011 OpenStack Foundation # 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...
fiuba08/robotframework
refs/heads/master
src/robot/running/baselibrary.py
6
# Copyright 2008-2014 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...
slisson/intellij-community
refs/heads/master
python/lib/Lib/xml/Uri.py
109
# pylint: disable-msg=C0103 # # backported code from 4Suite with slight modifications, started from r1.89 of # Ft/Lib/Uri.py, by syt@logilab.fr on 2005-02-09 # # part if not all of this code should probably move to urlparse (or be used # to fix some existant functions in this module) # # # Copyright 2004 Fourthought, I...
weisongchen/flaskapp
refs/heads/master
venv/lib/python2.7/site-packages/sqlalchemy/orm/path_registry.py
5
# orm/path_registry.py # Copyright (C) 2005-2017 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 """Path tracking utilities, representing mapper graph traversals. """ from .. ...
jboeuf/grpc
refs/heads/master
src/python/grpcio_testing/grpc_testing/_channel/_multi_callable.py
27
# Copyright 2017 gRPC authors. # # 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...
smainand/scapy
refs/heads/master
scapy/layers/tls/crypto/prf.py
1
# This file is part of Scapy # Copyright (C) 2007, 2008, 2009 Arnaud Ebalard # 2015, 2016, 2017 Maxence Tury # This program is published under a GPLv2 license """ TLS Pseudorandom Function. """ from __future__ import absolute_import from scapy.error import warning from scapy.utils import strxor from scapy.layers.tls...
belokop/indico_bare
refs/heads/master
conftest.py
2
# This file is part of Indico. # Copyright (C) 2002 - 2016 European Organization for Nuclear Research (CERN). # # Indico 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 (a...
polimediaupv/edx-platform
refs/heads/master
common/djangoapps/third_party_auth/tests/__init__.py
12133432
dvliman/jaikuengine
refs/heads/master
.google_appengine/lib/django_1_2/django/contrib/localflavor/de/__init__.py
12133432
seem-sky/cloudtunes
refs/heads/master
cloudtunes-server/cloudtunes/services/youtube/__init__.py
12133432
bnsantos/python-junk-code
refs/heads/master
algorithms/sort/selectionSort.py
1
__author__ = 'bruno' def sort(unordered): """ worst case O(n^2) """ for i in range(len(unordered)): min_index = i for j in range(i, len(unordered)): if unordered[j] < unordered[min_index]: min_index = j if min_index != i: unordered[i], u...
toshic/elliptics
refs/heads/master
example/remove_keys_from_storage_found_removed_in_eblob.py
4
#!/usr/bin/python # -*- coding: utf-8 -*- import sys sys.path.insert(0, "/usr/lib/") sys.path.insert(0, "./.libs/") sys.path.insert(0, "bindings/python/.libs/") from libelliptics_python import * import eblob class remover: def __init__(self, remotes=[], groups=[], log='/dev/stdout', mask=8, path=''): self.log = el...
jeffreymingyue/ansible
refs/heads/devel
lib/ansible/inventory/host.py
45
# (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...
Distrotech/intellij-community
refs/heads/master
python/testData/refactoring/extractsuperclass/moveExtends/source_module.py
80
import shared_module class MyClass(shared_module.TheParentOfItAll): pass
masayukig/tempest
refs/heads/master
tempest/tests/lib/services/identity/v3/__init__.py
12133432
GitAngel/django
refs/heads/master
tests/delete_regress/__init__.py
12133432
zerodb/zerodb
refs/heads/master
zerodb/permissions/__init__.py
12133432
ajaali/django
refs/heads/master
django/conf/locale/cs/__init__.py
12133432
SusanJL/iris
refs/heads/master
lib/iris/tests/experimental/regrid/test_regrid_area_weighted_rectilinear_src_and_grid.py
10
# (C) British Crown Copyright 2013 - 2015, Met Office # # This file is part of Iris. # # Iris is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the # Free Software Foundation, either version 3 of the License, or # (at your option) any l...
rschnapka/odoo
refs/heads/7.0
addons/l10n_gr/__init__.py
438
# -*- encoding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved # $Id$ # # This program is free software: you can redistribute it and/or modify #...
wanghaven/nupic
refs/heads/master
external/linux32/lib/python2.6/site-packages/matplotlib/numerix/linear_algebra/__init__.py
70
from matplotlib.numerix import which if which[0] == "numarray": from numarray.linear_algebra import * elif which[0] == "numeric": from LinearAlgebra import * elif which[0] == "numpy": try: from numpy.oldnumeric.linear_algebra import * except ImportError: from numpy.linalg.old import * e...
Edu-Glez/Bank_sentiment_analysis
refs/heads/master
env/lib/python3.6/site-packages/nbformat/tests/base.py
6
""" Contains base test class for nbformat """ # Copyright (c) IPython Development Team. # Distributed under the terms of the Modified BSD License. import os import unittest import io class TestsBase(unittest.TestCase): """Base tests class.""" def fopen(self, f, mode=u'r',encoding='utf-8'): return io...
mattseymour/django
refs/heads/master
django/utils/datetime_safe.py
100
# Python's datetime strftime doesn't handle dates before 1900. # These classes override date and datetime to support the formatting of a date # through its full "proleptic Gregorian" date range. # # Based on code submitted to comp.lang.python by Andrew Dalke # # >>> datetime_safe.date(1850, 8, 2).strftime("%Y/%m/%d was...
bigdatauniversity/edx-platform
refs/heads/master
lms/djangoapps/courseware/tests/test_module_render.py
12
# -*- coding: utf-8 -*- """ Test for lms courseware app, module render unit """ import ddt import itertools import json from nose.plugins.attrib import attr from functools import partial from bson import ObjectId from django.http import Http404, HttpResponse from django.core.urlresolvers import reverse from django.con...
savoirfairelinux/OpenUpgrade
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...
Vova23/limbo-android
refs/heads/master
jni/qemu/roms/seabios/tools/checkstack.py
42
#!/usr/bin/env python # Script that tries to find how much stack space each function in an # object is using. # # Copyright (C) 2008 Kevin O'Connor <kevin@koconnor.net> # # This file may be distributed under the terms of the GNU GPLv3 license. # Usage: # objdump -m i386 -M i8086 -M suffix -d out/rom16.o | tools/che...
jolyonb/edx-platform
refs/heads/master
lms/djangoapps/lms_xblock/migrations/0001_initial.py
87
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operati...
marmarek/pykickstart
refs/heads/master
pykickstart/handlers/f22.py
9
# # Chris Lumens <clumens@redhat.com> # # Copyright 2014 Red Hat, Inc. # # This copyrighted material is made available to anyone wishing to use, modify, # copy, or redistribute it subject to the terms and conditions of the GNU # General Public License v.2. This program is distributed in the hope that it # will be usef...
espadrine/opera
refs/heads/master
chromium/src/third_party/python_26/Lib/dummy_thread.py
326
"""Drop-in replacement for the thread module. Meant to be used as a brain-dead substitute so that threaded code does not need to be rewritten for when the thread module is not present. Suggested usage is:: try: import thread except ImportError: import dummy_thread as thread """ # Exports onl...
joansmith/openmicroscopy
refs/heads/develop
components/tools/OmeroPy/test/integration/test_delete.py
9
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2010-2015 Glencoe Software, Inc. All Rights Reserved. # Use is subject to license terms supplied in LICENSE.txt # # 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 ...
Jc2k/libcloudcore
refs/heads/master
contrib/ingest_profitbricks.py
1
from __future__ import absolute_import import collections import json import os import xmltodict import requests def xlist(v): if not isinstance(v, list): return [v] return v def process_data(output_path): response = requests.get("https://api.profitbricks.com/1.3/wsdl") wsdl = xmltodict.pa...
jiaaro/django-badges
refs/heads/master
badges/south_migrations/__init__.py
19
__author__ = 'igor'
burzillibus/RobHome
refs/heads/master
venv/lib/python2.7/site-packages/django/contrib/sites/middleware.py
234
from django.utils.deprecation import MiddlewareMixin from .shortcuts import get_current_site class CurrentSiteMiddleware(MiddlewareMixin): """ Middleware that sets `site` attribute to request object. """ def process_request(self, request): request.site = get_current_site(request)
Nyks45/Veno-M
refs/heads/Release
tools/perf/tests/attr.py
3174
#! /usr/bin/python import os import sys import glob import optparse import tempfile import logging import shutil import ConfigParser class Fail(Exception): def __init__(self, test, msg): self.msg = msg self.test = test def getMsg(self): return '\'%s\' - %s' % (self.test.path, self.msg)...
node-migrator-bot/node-gyp
refs/heads/master
legacy/tools/gyp/PRESUBMIT.py
42
# 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. """Top-level presubmit script for GYP. See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for more details about the presubmit API built...
googleinterns/wss
refs/heads/master
third_party/deeplab/utils/get_dataset_colormap.py
4
# Lint as: python2, python3 # Copyright 2018 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 # #...
akrherz/dep
refs/heads/main
scripts/plots/yearly_summary.py
2
import datetime import cStringIO import psycopg2 from shapely.wkb import loads import numpy as np import sys from geopandas import read_postgis import matplotlib matplotlib.use("agg") from pyiem.plot import MapPlot import matplotlib.pyplot as plt from matplotlib.patches import Polygon from matplotlib.collections impor...
JT5D/Alfred-Popclip-Sublime
refs/heads/master
Geeklets/forecasts.py
1
""" forecasts ROBERT WOLTERMAN (xtacocorex) - 2012 FORECAST BASE CLASSES - ALL SERVICES SHOULD INHERIT Forecast AND SHOULD STORE ALL FORECAST DAY DATA INTO FCDay """ # CHANGELOG # 21 APRIL 2012 # - EXTRACTION FROM THE MAIN SCRIPT AND PUT INTO THE SERVICES MODULE # MODULE IMPORTS import urllib2, json import loca...
endlisnis/weather-records
refs/heads/master
consecutive.py
1
#!/usr/bin/python3 # -*- coding: utf-8 -*- from collections import defaultdict from fieldOperators import * from howOften import dateDateStr, winterFromDate from makefit import makeFit from monthName import monthName from plotdict import plotdict from reversedict import reverseDict import daily, sys, gnuplot, linear, t...
dasseclab/dasseclab
refs/heads/master
clones/routersploit/tests/exploits/routers/huawei/test_hg530_hg520b_password_disclosure.py
1
from routersploit.modules.exploits.routers.huawei.hg530_hg520b_password_disclosure import Exploit def test_check_success(target): """ Test scenario - successful check """ cgi_mock = target.get_route_mock("/UD/", methods=["POST"]) cgi_mock.return_value = ( 'TEST' '<NewUserpassword>Admin123...
eeshangarg/oh-mainline
refs/heads/master
vendor/packages/Django/tests/regressiontests/views/app0/__init__.py
9480
#
skia-dev/oss-fuzz
refs/heads/master
infra/cifuzz/clusterfuzz_deployment_test.py
1
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
ClovisIRex/Snake-django
refs/heads/master
env/lib/python3.6/site-packages/astroid/tests/testdata/python2/data/package/absimport.py
34
from __future__ import absolute_import, print_function import import_package_subpackage_module # fail print(import_package_subpackage_module) from . import hello as hola
sauloal/pycluster
refs/heads/master
venvlin64/site-packages/requests-1.1.0-py2.7.egg/requests/structures.py
10
# -*- coding: utf-8 -*- """ requests.structures ~~~~~~~~~~~~~~~~~~~ Data structures that power Requests. """ import os from itertools import islice class IteratorProxy(object): """docstring for IteratorProxy""" def __init__(self, i): self.i = i # self.i = chain.from_iterable(i) def __i...
geerlingguy/ansible
refs/heads/devel
test/integration/targets/collections/collection_root_user/ansible_collections/testns/testcoll/plugins/action/plugin_lookup.py
51
from __future__ import (absolute_import, division, print_function) __metaclass__ = type from ansible.plugins.action import ActionBase from ansible.plugins import loader class ActionModule(ActionBase): TRANSFERS_FILES = False _VALID_ARGS = frozenset(('type', 'name')) def run(self, tmp=None, task_vars=Non...
9and3r/RPi-InfoScreen-Kivy
refs/heads/master
screens/energenie/__init__.py
12133432
Work4Labs/lettuce
refs/heads/master
tests/integration/lib/Django-1.2.5/tests/modeltests/custom_columns/__init__.py
12133432
ecederstrand/django
refs/heads/master
tests/template_backends/apps/__init__.py
12133432
alfasin/st2
refs/heads/master
st2api/st2api/controllers/v1/__init__.py
12133432
lunafeng/django
refs/heads/master
tests/template_tests/syntax_tests/__init__.py
12133432
sargas/scipy
refs/heads/master
scipy/constants/codata.py
1
# Compiled by Charles Harris, dated October 3, 2002 # updated to 2002 values by BasSw, 2006 # Updated to 2006 values by Vincent Davis June 2010 """ Fundamental Physical Constants ------------------------------ These constants are taken from CODATA Recommended Values of the Fundamental Physical Constants 2010. Object...
tacid/ajenti
refs/heads/master
plugins/iptables/__init__.py
5
MODULES = ['main', 'backend'] DEPS = [ (['any'], [ ('app', 'iptables', 'iptables') ]) ] NAME = 'IP tables' PLATFORMS = ['debian', 'arch', 'centos', 'fedora', 'gentoo'] DESCRIPTION = 'Netfilter rules control plugin' VERSION = '0' GENERATION = 1 AUTHOR = 'Ajenti team' HOMEPAGE = 'http://ajenti.or...
nirmeshk/oh-mainline
refs/heads/master
vendor/packages/Django/django/contrib/auth/tests/__init__.py
101
from django.contrib.auth.tests.custom_user import * from django.contrib.auth.tests.auth_backends import * from django.contrib.auth.tests.basic import * from django.contrib.auth.tests.context_processors import * from django.contrib.auth.tests.decorators import * from django.contrib.auth.tests.forms import * from django....
kwlzn/pants
refs/heads/master
src/python/pants/reporting/html_reporter.py
16
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import cgi import os...
srilatha44/threepress
refs/heads/master
bookworm/ez_setup.py
358
#!python """Bootstrap setuptools installation If you want to use setuptools in your package's setup.py, just include this file in the same directory with it, and add this to the top of your setup.py:: from ez_setup import use_setuptools use_setuptools() If you want to require a specific version of setuptools...
djeo94/CouchPotatoServer
refs/heads/master
libs/tornado/wsgi.py
73
#!/usr/bin/env python # # Copyright 2009 Facebook # # 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...
sburnett/seattle
refs/heads/master
repy/tests/ip_junkip_trybind.py
1
# This test only has the # --ip 256.256.256.256 flag, and we want try to bind to something random "128.0.1.5" to be sure waitforconn and recvmess fail def noop(ip,port,mess,ch): sleep(30) def noop1(ip,port,mess,ch1, ch2): sleep(30) junkip = "128.0.1.5" if callfunc == 'initialize': try: waitforconn("128...
brijeshkesariya/odoo
refs/heads/8.0
addons/website_customer/controllers/__init__.py
7372
import main
bikong2/scikit-learn
refs/heads/master
sklearn/semi_supervised/__init__.py
436
""" The :mod:`sklearn.semi_supervised` module implements semi-supervised learning algorithms. These algorithms utilized small amounts of labeled data and large amounts of unlabeled data for classification tasks. This module includes Label Propagation. """ from .label_propagation import LabelPropagation, LabelSpreading...
telwertowski/QGIS
refs/heads/master
tests/src/python/test_qgsserver_wms_getfeatureinfo.py
9
# -*- coding: utf-8 -*- """QGIS Unit tests for QgsServer GetFeatureInfo WMS. From build dir, run: ctest -R PyQgsServerWMSGetFeatureInfo -V .. note:: 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; ...
maximon93/fabric-bolt
refs/heads/master
fabric_bolt/accounts/migrations/0002_auto_20140811_1921.py
14
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations def add_default_groups(apps, schema_editor): Group = apps.get_model('auth', 'Group') Group.objects.get_or_create(name='Admin') Group.objects.get_or_create(name='Deployer') Group.objects.get_or_cr...
svn2github/django
refs/heads/master
django/contrib/gis/tests/geoadmin/urls.py
383
from django.conf.urls import patterns, include from django.contrib import admin urlpatterns = patterns('', (r'^admin/', include(admin.site.urls)), )
erandros/py2html
refs/heads/master
src/syntax/temp.py
1
import re from reader import Reader from lines import RawLine from comparators import RegexComparator, StringComparator class Context: def __init__(self, tree, level): self.tree = tree self.level = level
tschmidiger/CodeIgniter
refs/heads/3.0-stable
user_guide_src/source/conf.py
3
# -*- coding: utf-8 -*- # # CodeIgniter documentation build configuration file, created by # sphinx-quickstart on Sun Aug 28 07:24:38 2011. # # 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. # #...
vad/django-cms
refs/heads/develop
cms/south_migrations/0060_auto__add_field_page_xframe_options.py
63
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Page.xframe_options' db.add_column(u'cms_page', 'xframe_o...
MwanzanFelipe/rockletonfortune
refs/heads/master
lib/django/conf/locale/en_AU/formats.py
504
# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # from __future__ import unicode_literals # The *_FORMAT strings use the Django date format syntax, # see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date DATE_FORMAT = 'j M Y' # '25 Oc...
OneStopTransport/OST-FiWare-Lisbon
refs/heads/master
fiware_lisbon/fiware/tasks.py
1
#!/usr/bin/env python # encoding: utf-8 from celery.task import task from colorama import Fore from utils.constants import CP_NAME from utils.constants import AGENCY from utils.constants import ROUTE from utils.constants import STOP from utils.constants import TRIP from utils.constants import STOPTIME from utils.const...
dazzzl/yowsup
refs/heads/master
yowsup/layers/protocol_presence/protocolentities/test_presence_available.py
70
from yowsup.layers.protocol_presence.protocolentities.presence_available import AvailablePresenceProtocolEntity from yowsup.layers.protocol_presence.protocolentities.test_presence import PresenceProtocolEntityTest class AvailablePresenceProtocolEntityTest(PresenceProtocolEntityTest): def setUp(self): super...
jymannob/CouchPotatoServer
refs/heads/develop
couchpotato/core/notifications/pushalot.py
81
import traceback from couchpotato.core.helpers.encoding import toUnicode from couchpotato.core.logger import CPLog from couchpotato.core.notifications.base import Notification log = CPLog(__name__) autoload = 'Pushalot' class Pushalot(Notification): urls = { 'api': 'https://pushalot.com/api/sendmessa...
dapuck/pyleus
refs/heads/develop
pyleus/cli/commands/__init__.py
12133432