repo_name
stringlengths
5
100
ref
stringlengths
12
67
path
stringlengths
4
244
copies
stringlengths
1
8
content
stringlengths
0
1.05M
code-google-com/gpicsync
refs/heads/master
geoexif.py
19
#!/usr/bin/python # -*- coding: iso-8859-15 -*- ############################################################################### # EXIF reader utility in relation to geolalisation # This script is released under the GPL license v2 # # francois.schnell (http://francois.schnell.free.fr) # # Contr...
kaiserroll14/301finalproject
refs/heads/master
main/pandas/tests/test_style.py
9
import os from nose import SkipTest # this is a mess. Getting failures on a python 2.7 build with # whenever we try to import jinja, whether it's installed or not. # so we're explicitly skipping that one *before* we try to import # jinja. We still need to export the imports as globals, # since importing Styler tries t...
leiferikb/bitpop-private
refs/heads/master
chrome/test/functional/autofill.py
65
#!/usr/bin/env python # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import logging import os import pickle import re import simplejson import pyauto_functional # Must be imported before pyauto impo...
rfhk/awo-custom
refs/heads/8.0
abstract_report_xlsx/reports/stock_abstract_report_xlsx.py
2
# -*- coding: utf-8 -*- # Author: Julien Coux # Copyright 2016 Camptocamp SA # Copyright 2016 Rooms For (Hong Kong) Limited T/A OSCG # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from cStringIO import StringIO import xlsxwriter from xlsxwriter.utility import xl_col_to_name # OSCG from openerp.a...
micaiahparker/dicebot
refs/heads/master
bot/__main__.py
1
from .bot import bot for extension in bot.config.get_extensions(): try: bot.load_extension(extension) print('Added: {}'.format(extension)) except Exception as e: exc = '{}: {}'.format(type(e).__name__, e) print('Failed to load extension {}\n{}'.format(extension, exc)) bot.run(b...
bibekluitel/ntu-dsi-dcn
refs/heads/master
src/tap-bridge/bindings/modulegen_customizations.py
203
import os def post_register_types(root_module): enabled_features = os.environ['NS3_ENABLED_FEATURES'].split(',') if 'TapBridge' not in enabled_features: for clsname in ['TapBridge', 'TapBridgeHelper', 'TapBridgeFdReader']: root_module.classes.remove(root_module['ns3::%s' % clsname]) ...
hip-odoo/odoo
refs/heads/10.0
addons/base_action_rule/tests/__init__.py
23
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import test_models import test_base_action_rule
codrut3/tensorflow
refs/heads/master
tensorflow/examples/adding_an_op/zero_out_op_3.py
190
# Copyright 2015 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...
jlegendary/nupic
refs/heads/master
examples/opf/experiments/multistep/hotgym/permutations.py
8
# ---------------------------------------------------------------------- # Numenta Platform for Intelligent Computing (NuPIC) # Copyright (C) 2013, Numenta, Inc. Unless you have an agreement # with Numenta, Inc., for a separate license for this software code, the # following terms and conditions apply: # # This progra...
illicitonion/givabit
refs/heads/master
lib/sdks/google_appengine_1.7.1/google_appengine/google/appengine/api/rdbms_mysqldb.py
5
#!/usr/bin/env python # # Copyright 2007 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...
andela-ooladayo/django
refs/heads/master
tests/gis_tests/geos_tests/__init__.py
12133432
ilpise/geonode
refs/heads/master
geonode/upload/__init__.py
12133432
wagnerand/olympia
refs/heads/master
src/olympia/activity/management/__init__.py
12133432
austinhyde/ansible-modules-core
refs/heads/devel
__init__.py
12133432
kho0810/flaskr
refs/heads/master
lib/wtforms/ext/appengine/__init__.py
177
import warnings warnings.warn( 'wtforms.ext.appengine is deprecated, and will be removed in WTForms 3.0. ' 'The package has been split out into its own package, wtforms-appengine: ' 'https://github.com/wtforms/wtforms-appengine ', DeprecationWarning )
gzuser01/zetacoin-bitcoin
refs/heads/gzuser01-patch-1
qa/rpc-tests/mempool_reorg.py
56
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test re-org scenarios with a mempool that contains transactions # that spend (directly or indirectly)...
SevInf/IEDriver
refs/heads/master
py/test/selenium/webdriver/common/typing_tests.py
19
# copyright 2008-2009 WebDriver committers # Copyright 2008-2009 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 requi...
pipsiscool/audacity
refs/heads/master
lib-src/lv2/lv2/waflib/Tools/dmd.py
316
#! /usr/bin/env python # encoding: utf-8 # WARNING! Do not edit! http://waf.googlecode.com/git/docs/wafbook/single.html#_obtaining_the_waf_file import sys from waflib.Tools import ar,d from waflib.Configure import conf @conf def find_dmd(conf): conf.find_program(['dmd','dmd2','ldc'],var='D') out=conf.cmd_and_log([co...
dgrant/brickowl2rebrickable
refs/heads/master
rebrickable_colors.py
1
""" Parses rebrickable's color data from http://rebrickable.com/colors """ import html.parser def strarray(data): """ Parses a string that looks like '{foo, "bar"}' into an array of strings :param data: a string that look like '{foo, "bar"}' or '{foo, bar}', etc... :return: an array of string object...
saurabhbajaj207/CarpeDiem
refs/heads/master
venv/Lib/site-packages/pip/_vendor/html5lib/treebuilders/dom.py
435
from __future__ import absolute_import, division, unicode_literals from collections import MutableMapping from xml.dom import minidom, Node import weakref from . import base from .. import constants from ..constants import namespaces from .._utils import moduleFactoryFactory def getDomBuilder(DomImplementation): ...
tumbl3w33d/ansible
refs/heads/devel
lib/ansible/module_utils/aws/batch.py
11
# Copyright (c) 2017 Ansible Project # # This code is part of Ansible, but is an independent component. # This particular file snippet, and this file snippet only, is BSD licensed. # Modules you write using this snippet, which is embedded dynamically by Ansible # still belong to the author of the module, and may assign...
BeiLuoShiMen/nupic
refs/heads/master
tests/integration/nupic/opf/opf_description_template_test/opf_description_template_test.py
12
#!/usr/bin/env python # ---------------------------------------------------------------------- # Numenta Platform for Intelligent Computing (NuPIC) # Copyright (C) 2014, Numenta, Inc. Unless you have an agreement # with Numenta, Inc., for a separate license for this software code, the # following terms and conditions ...
asimshankar/tensorflow
refs/heads/master
tensorflow/python/autograph/converters/continue_statements.py
5
# 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...
azoft-dev-team/imagrium
refs/heads/win
src/__init__.py
12133432
ehenneken/adsws
refs/heads/master
adsws/ext/session/backends/__init__.py
12133432
xiangel/hue
refs/heads/master
desktop/core/ext-py/Django-1.6.10/django/core/signing.py
110
""" Functions for creating and restoring url-safe signed JSON objects. The format used looks like this: >>> signing.dumps("hello") 'ImhlbGxvIg:1QaUZC:YIye-ze3TTx7gtSv422nZA4sgmk' There are two components here, separated by a ':'. The first component is a URLsafe base64 encoded JSON of the object passed to dumps(). T...
phektus/Django-Google-AppEngine-OpenId-Auth
refs/heads/master
django/views/static.py
151
""" Views and functions for serving static files. These are only to be used during development, and SHOULD NOT be used in a production setting. """ import mimetypes import os import posixpath import re import urllib from django.http import Http404, HttpResponse, HttpResponseRedirect, HttpResponseNotModified from djan...
torbjoernk/pySDC
refs/heads/master
examples/fenics_advection_diffusion_1d/playground.py
2
from pySDC import CollocationClasses as collclass from examples.fenics_advection_diffusion_1d.ProblemClass import fenics_adv_diff_1d from pySDC.datatype_classes.fenics_mesh import fenics_mesh,rhs_fenics_mesh from examples.fenics_advection_diffusion_1d.TransferClass import mesh_to_mesh_fenics from pySDC.sweeper_classe...
mikalv/android_kernel_samsung_degas3g
refs/heads/master
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...
anielsen001/scipy
refs/heads/master
scipy/spatial/tests/test__plotutils.py
55
from __future__ import division, print_function, absolute_import from numpy.testing import dec, assert_, assert_array_equal try: import matplotlib matplotlib.rcParams['backend'] = 'Agg' import matplotlib.pyplot as plt from matplotlib.collections import LineCollection has_matplotlib = True except: ...
lwiecek/django
refs/heads/master
django/contrib/gis/views.py
684
from __future__ import unicode_literals from django.http import Http404 from django.utils.translation import ugettext as _ def feed(request, url, feed_dict=None): """Provided for backwards compatibility.""" if not feed_dict: raise Http404(_("No feeds are registered.")) slug = url.partition('/')[...
htzy/bigfour
refs/heads/master
common/djangoapps/monkey_patch/tests/__init__.py
12133432
scotu/django-formaggio
refs/heads/master
formaggio/migrations/__init__.py
12133432
redhatrises/freeipa
refs/heads/master
ipaclient/remote_plugins/2_156/hbacsvcgroup.py
16
# # Copyright (C) 2016 FreeIPA Contributors see COPYING for license # # pylint: disable=unused-import import six from . import Command, Method, Object from ipalib import api, parameters, output from ipalib.parameters import DefaultFrom from ipalib.plugable import Registry from ipalib.text import _ from ipapython.dn ...
pedestre/Kernel-Apolo-JB-4.1.2
refs/heads/master
tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/SchedGui.py
12980
# SchedGui.py - Python extension for perf script, basic GUI code for # traces drawing and overview. # # Copyright (C) 2010 by Frederic Weisbecker <fweisbec@gmail.com> # # This software is distributed under the terms of the GNU General # Public License ("GPL") version 2 as published by the Free Software # Foundation. ...
Shrews/PyGerrit
refs/heads/master
webapp/django/utils/cache.py
17
""" This module contains helper functions for controlling caching. It does so by managing the "Vary" header of responses. It includes functions to patch the header of response objects directly and decorators that change functions to do that header-patching themselves. For information on the Vary header, see: http...
vivekmishra1991/scikit-learn
refs/heads/master
sklearn/feature_selection/tests/test_from_model.py
244
import numpy as np import scipy.sparse as sp from nose.tools import assert_raises, assert_true from sklearn.utils.testing import assert_less from sklearn.utils.testing import assert_greater from sklearn.datasets import load_iris from sklearn.linear_model import LogisticRegression from sklearn.linear_model import SGD...
sramsay64/python-iview
refs/heads/master
cherrypy/_cptree.py
58
"""CherryPy Application and Tree objects.""" import os import cherrypy from cherrypy._cpcompat import ntou, py3k from cherrypy import _cpconfig, _cplogging, _cprequest, _cpwsgi, tools from cherrypy.lib import httputil class Application(object): """A CherryPy Application. Servers and gateways should not in...
mitsuhiko/sentry
refs/heads/master
src/sentry/api/serializers/models/grouptagvalue.py
1
from __future__ import absolute_import import operator from django.db.models import Q from sentry.api.serializers import Serializer, register from sentry.models import EventUser, GroupTagValue, TagKey, TagValue def parse_user_tag(value): lookup, value = value.split(':', 1) if lookup == 'id': lookup...
WhireCrow/openwrt-mt7620
refs/heads/master
staging_dir/host/lib/python2.7/lib-tk/tkFileDialog.py
196
# # Instant Python # $Id: tkFileDialog.py 36560 2004-07-18 06:16:08Z tim_one $ # # tk common file dialogues # # this module provides interfaces to the native file dialogues # available in Tk 4.2 and newer, and the directory dialogue available # in Tk 8.3 and newer. # # written by Fredrik Lundh, May 1997. # # # options...
adelina-t/neutron
refs/heads/master
neutron/services/metering/agents/__init__.py
12133432
abhidrona/gn-osc-custom
refs/heads/master
tests/unit/__init__.py
12133432
pawaranand/phrerp
refs/heads/develop
erpnext/contacts/doctype/party_type/__init__.py
12133432
armirusco/djangae
refs/heads/master
djangae/db/backends/__init__.py
12133432
xujun10110/pupy
refs/heads/master
pupy/packages/windows/all/pupwinutils/__init__.py
12133432
MichaelNedzelsky/intellij-community
refs/heads/master
python/testData/refactoring/move/function/before/src/a.py
83
from lib1 import urlopen def f(url): '''Return the representation available at the URL. ''' return urlopen(url).read() def f_usage(): return f(14) class C(object): def g(self, x): return x class D(C): def g(self, x, y): return super(D, self).f(x) + y class E(object): ...
wfwei/ReadWeibo
refs/heads/master
ReadWeibo/account/tests.py
6666
""" This file demonstrates writing tests using the unittest module. These will pass when you run "manage.py test". Replace this with more appropriate tests for your application. """ from django.test import TestCase class SimpleTest(TestCase): def test_basic_addition(self): """ Tests that 1 + 1 a...
vmahuli/contrail-controller
refs/heads/master
src/analytics/ruleparser/echoaction.py
20
#! /usr/bin/env /usr/bin/python # # Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. # # this is called from c++ code and is expected to be passed # the following variables # paramlist - a list of strings considered as parameters import sys actionresult = "echoaction.py" i = 0 while i < len(paramlis...
pankajp/pyside
refs/heads/master
tests/QtGui/qinputdialog_get_test.py
6
import unittest from PySide import QtCore, QtGui from helper import UsesQApplication, TimedQApplication class TestInputDialog(TimedQApplication): def testGetDouble(self): self.assertEquals(QtGui.QInputDialog.getDouble(None, "title", "label"), (0.0, False)) def testGetInt(self): self.assertEq...
omni5cience/django-inlineformfield
refs/heads/master
.tox/py27/lib/python2.7/site-packages/django/contrib/gis/tests/gis_migrations/migrations/__init__.py
12133432
suyashphadtare/sajil-final-erp
refs/heads/develop
erpnext/erpnext/accounts/doctype/payment_reconciliation/__init__.py
12133432
czpython/aldryn-newsblog
refs/heads/master
aldryn_newsblog/south_migrations/__init__.py
12133432
AOSPU/external_chromium_org
refs/heads/android-5.0/py3
tools/telemetry/third_party/__init__.py
12133432
alfcrisci/httpie
refs/heads/master
httpie/output/formatters/__init__.py
12133432
stackforge/monasca-common
refs/heads/master
monasca_common/rest/__init__.py
12133432
jcurry/ZenPacks.ZenSystems.ApcPdu
refs/heads/master
ZenPacks/ZenSystems/ApcPdu/modeler/__init__.py
12133432
initNirvana/Easyphotos
refs/heads/master
env/lib/python3.4/site-packages/IPython/kernel/tests/__init__.py
12133432
youprofit/NewsBlur
refs/heads/master
vendor/zebra/__init__.py
12133432
openstack/cinder
refs/heads/master
cinder/volume/drivers/prophetstor/__init__.py
12133432
caot/intellij-community
refs/heads/master
python/lib/Lib/site-packages/django/conf/locale/es/formats.py
232
# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # # The *_FORMAT strings use the Django date format syntax, # see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date DATE_FORMAT = r'j \de F \de Y' TIME_FORMAT = 'H:i:s' DATETIME_FORMAT = r'j \de F \de Y \...
mdrumond/tensorflow
refs/heads/master
tensorflow/python/debug/lib/debug_graphs.py
65
# 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...
ajkavanagh/charms.openstack
refs/heads/master
charms_openstack/os_release_data.py
1
# Copyright 2016 Canonical Ltd # # 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, s...
ict-felix/stack
refs/heads/master
vt_manager/src/python/vt_manager/settings/settingsLoader.py
2
""" @author: msune, CarolinaFernandez Ofelia VT manager settings loader """ # Import static settings from vt_manager.settings.staticSettings import * # Import user settings from vt_manager.mySettings import * # Load database info DATABASES = { 'default': { 'ENGINE': "django.db.backends.%s" % DATABASE_EN...
willemw12/get_iplayer_downloader
refs/heads/master
src/get_iplayer_downloader/get_iplayer.py
1
""" Perform get_iplayer commands. """ import ast import logging import os from get_iplayer_downloader import search_cache, settings from get_iplayer_downloader.tools import command, command_queue, config, string logger = logging.getLogger(__name__) #### RADIO_DOWNLOAD_PATH = settings.get_config().get("radio", "dow...
vvv1559/intellij-community
refs/heads/master
python/testData/formatter/hangClosingParenthesisInFunctionDefinition.py
30
def func( x, y, z ): pass
ray-zhong/github_trend_spider
refs/heads/master
ENV/Lib/site-packages/setuptools/command/install.py
529
from distutils.errors import DistutilsArgError import inspect import glob import warnings import platform import distutils.command.install as orig import setuptools # Prior to numpy 1.9, NumPy relies on the '_install' name, so provide it for # now. See https://github.com/pypa/setuptools/issues/199/ _install = orig.in...
ecederstrand/django
refs/heads/master
tests/admin_scripts/app_raising_messages/models.py
391
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.core import checks from django.db import models class ModelRaisingMessages(models.Model): @classmethod def check(self, **kwargs): return [ checks.Warning( 'First warning', hint='Hin...
sserrot/champion_relationships
refs/heads/master
venv/Lib/site-packages/nbformat/v1/__init__.py
27
"""The main module for the v1 notebook format.""" #----------------------------------------------------------------------------- # Copyright (C) 2008-2011 The IPython Development Team # # Distributed under the terms of the BSD License. The full license is in # the file COPYING, distributed as part of this softwar...
joopert/home-assistant
refs/heads/dev
homeassistant/components/tikteck/light.py
5
"""Support for Tikteck lights.""" import logging import tikteck import voluptuous as vol from homeassistant.components.light import ( ATTR_BRIGHTNESS, ATTR_HS_COLOR, PLATFORM_SCHEMA, SUPPORT_BRIGHTNESS, SUPPORT_COLOR, Light, ) from homeassistant.const import CONF_DEVICES, CONF_NAME, CONF_PASSW...
gujiawen/flask_web
refs/heads/master
venv/lib/python2.7/site-packages/pkg_resources/_vendor/__init__.py
12133432
jeenalee/servo
refs/heads/master
tests/wpt/css-tests/tools/html5lib/html5lib/treebuilders/__init__.py
1730
"""A collection of modules for building different kinds of tree from HTML documents. To create a treebuilder for a new type of tree, you need to do implement several things: 1) A set of classes for various types of elements: Document, Doctype, Comment, Element. These must implement the interface of _base.treebuilders...
timj/scons
refs/heads/master
test/ARGUMENTS.py
5
#!/usr/bin/env python # # __COPYRIGHT__ # # 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, publish, ...
FinalAngel/django-cms
refs/heads/release/3.4.x
cms/test_utils/project/objectpermissionsapp/models.py
13
# -*- coding: utf-8 -*- from django.conf import settings from django.db import models from django.core.exceptions import ValidationError from django.contrib.auth.models import Permission from django.contrib.contenttypes.models import ContentType from django.contrib.contenttypes.fields import GenericForeignKey from djan...
JimCircadian/ansible
refs/heads/devel
test/integration/targets/module_utils/other_mu_dir/a/__init__.py
12133432
florian-dacosta/OCB
refs/heads/8.0
addons/website/tests/test_ui.py
342
import openerp.tests class TestUi(openerp.tests.HttpCase): def test_01_public_homepage(self): self.phantom_js("/", "console.log('ok')", "openerp.website.snippet") def test_03_admin_homepage(self): self.phantom_js("/", "console.log('ok')", "openerp.website.editor", login='admin') def test...
BonexGu/Blik2D-SDK
refs/heads/master
Blik2D/addon/tensorflow-1.2.1_for_blik/tensorflow/python/kernel_tests/rnn_test.py
2
# Copyright 2015 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...
tempbottle/kbengine
refs/heads/master
kbe/res/scripts/common/Lib/test/test_tools/test_gprof2html.py
75
"""Tests for the gprof2html script in the Tools directory.""" import os import sys import importlib import unittest from unittest import mock import tempfile from test.test_tools import scriptsdir, skip_if_missing, import_tool skip_if_missing() class Gprof2htmlTests(unittest.TestCase): def setUp(self): ...
asgard-lab/neutron
refs/heads/master
neutron/tests/tempest/services/identity/v2/__init__.py
12133432
yglazko/socorro
refs/heads/master
socorro/unittest/collector/__init__.py
12133432
Raekkeri/nexus
refs/heads/master
nexus/templatetags/nexus_helpers.py
1
from django import template from django.core.urlresolvers import reverse from django.utils.datastructures import SortedDict from nexus import conf from nexus.modules import NexusModule register = template.Library() def nexus_media_prefix(): return conf.MEDIA_PREFIX.rstrip('/') register.simple_tag(nexus_media_pre...
terencehonles/mailman
refs/heads/master
src/mailman/commands/tests/test_create.py
3
# Copyright (C) 2011-2012 by the Free Software Foundation, Inc. # # This file is part of GNU Mailman. # # GNU Mailman 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 you...
osmfj/sotmjp-website
refs/heads/master
sotmjp/account/models.py
12133432
punalpatel/st2
refs/heads/master
st2tests/st2tests/fixtures/packs/runners/test_querymodule/query/__init__.py
12133432
nlharris/narrative
refs/heads/master
src/biokbase/NarrativeJobService/__init__.py
12133432
BrickText/BrickText
refs/heads/master
redactor/__init__.py
12133432
lidiamcfreitas/FenixScheduleMaker
refs/heads/master
ScheduleMaker/brython/www/src/Lib/test/test_unicode_file.py
120
# Test some Unicode file name semantics # We dont test many operations on files other than # that their names can be used with Unicode characters. import os, glob, time, shutil import unicodedata import unittest from test.support import (run_unittest, rmtree, TESTFN_ENCODING, TESTFN_UNICODE, TESTFN_UNENCODABLE, cr...
brandond/ansible
refs/heads/devel
lib/ansible/modules/web_infrastructure/django_manage.py
57
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2013, Scott Anderson <scottanderson42@gmail.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': ...
BMJHayward/django
refs/heads/master
tests/template_tests/tests.py
183
# -*- coding: utf-8 -*- from __future__ import unicode_literals import sys from django.contrib.auth.models import Group from django.core import urlresolvers from django.template import Context, Engine, TemplateSyntaxError from django.template.base import UNKNOWN_SOURCE from django.test import SimpleTestCase, override...
slisson/intellij-community
refs/heads/master
python/lib/Lib/site-packages/django/core/handlers/base.py
71
import sys from django import http from django.core import signals from django.utils.encoding import force_unicode from django.utils.importlib import import_module from django.utils.log import getLogger logger = getLogger('django.request') class BaseHandler(object): # Changes that are always applied to a respon...
flacjacket/pywayland
refs/heads/main
pywayland/scanner/method.py
1
# Copyright 2015 Sean Vig # # 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, sof...
repotvsupertuga/tvsupertuga.repository
refs/heads/master
instal/script.module.liveresolver/lib/js2py/constructors/jsboolean.py
33
from js2py.base import * BooleanPrototype.define_own_property('constructor', {'value': Boolean, 'enumerable': False, 'writable': True, 'configurable': True}) B...
BackupGGCode/sphinx
refs/heads/master
doc/conf.py
3
# -*- coding: utf-8 -*- # # Sphinx documentation build configuration file, created by # sphinx-quickstart.py on Sat Mar 8 21:47:50 2008. # # This file is execfile()d with the current directory set to its containing dir. # # The contents of this file are pickled, so don't put values in the namespace # that aren't pickl...
westurner/pyglobalgoals
refs/heads/master
notebooks/globalgoals-pyglobalgoals.py.py
1
# coding: utf-8 # # @TheGlobalGoals for Sustainable Development # ## Background # # * Homepage: **http://www.globalgoals.org/** # - Twitter: https://twitter.com/TheGlobalGoals # - Instagram: https://instagram.com/TheGlobalGoals/ # - Facebook: https://www.facebook.com/globalgoals.org # - YouTube: https://www.youtube...
gobabiertoAR/datos.gob.ar
refs/heads/master
ckanext/gobar_theme/package_controller.py
2
from ckan.controllers.package \ import PackageController, _encode_params, search_url, render, NotAuthorized, check_access, abort, get_action, log from urllib import urlencode from pylons import config from paste.deploy.converters import asbool from ckan.lib.render import deprecated_lazy_render import ckan.lib.maintain ...
EPDCenter/android_kernel_bq_qc
refs/heads/testoc
tools/perf/util/setup.py
2554
#!/usr/bin/python2 from distutils.core import setup, Extension from os import getenv cflags = ['-fno-strict-aliasing', '-Wno-write-strings'] cflags += getenv('CFLAGS', '').split() perf = Extension('perf', sources = ['util/python.c', 'util/ctype.c', 'util/evlist.c', 'util/evsel.c', 'util/cpumap.c', 'util/...
conikuvat/edegal
refs/heads/master
backend/edegal_site/wsgi.py
1
""" WSGI config for edegal2 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.8/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTI...
agfor/chipy.org
refs/heads/master
chipy_org/deploy/fcgi.py
21
from django.core.servers.fastcgi import runfastcgi import pinax.env # setup the environment for Django and Pinax pinax.env.setup_environ(__file__) # pass off handling to FastCGI runfastcgi(method="threaded", daemonize="false")
BoltzmannBrain/nupic.research
refs/heads/master
htmresearch/algorithms/hierarchical_clustering.py
12
#!/usr/bin/env python # ---------------------------------------------------------------------- # Numenta Platform for Intelligent Computing (NuPIC) # Copyright (C) 2015, Numenta, Inc. Unless you have purchased from # Numenta, Inc. a separate commercial license for this software code, the # following terms and conditio...
izhukov/ansible
refs/heads/devel
v2/ansible/plugins/action/unarchive.py
10
# (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...
Evgenus/wiki-rest-json-api-test
refs/heads/master
wikiapi/app.py
1
from flask import Flask from flask_sqlalchemy import SQLAlchemy app = Flask(__name__, instance_relative_config=True) app.config.from_object('wikiapi.config') app.config.from_pyfile('application.cfg', silent=True) db = SQLAlchemy(app) from wikiapi import views, models db.create_all()