repo_name
stringlengths
5
100
ref
stringlengths
12
67
path
stringlengths
4
244
copies
stringlengths
1
8
content
stringlengths
0
1.05M
v-iam/azure-sdk-for-python
refs/heads/master
azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/address_space.py
11
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
wbrefvem/openshift-ansible
refs/heads/master
roles/lib_openshift/src/ansible/oc_env.py
84
# pylint: skip-file # flake8: noqa def main(): ''' ansible oc module for environment variables ''' module = AnsibleModule( argument_spec=dict( kubeconfig=dict(default='/etc/origin/master/admin.kubeconfig', type='str'), state=dict(default='present', type='str', ...
joelby/heroku-buildpack-python-scikit-learn-git
refs/heads/master
vendor/virtualenv-1.7/docs/conf.py
19
# -*- coding: utf-8 -*- # # Paste documentation build configuration file, created by # sphinx-quickstart on Tue Apr 22 22:08:49 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 pickleabl...
ibethune/lammps
refs/heads/master
tools/eff/lmp2xyz.py
52
Info=""" Module name: lmp2xyz.py Author: (c) Andres Jaramillo-Botero California Institute of Technology ajaramil@caltech.edu Project: pEFF Version: August 2009 Extracts the xyz from a lammps trajectory dump of style custom: dump 1 all custom period dump_file id type x y z spin radius ... Usage: python lmp2xyz.py...
shurihell/testasia
refs/heads/test1
common/djangoapps/static_replace/management/commands/__init__.py
12133432
gminds/rapidnewsng
refs/heads/master
django/contrib/localflavor/hk/__init__.py
12133432
mattcaldwell/boto
refs/heads/develop
boto/resultset.py
66
# Copyright (c) 2006,2007 Mitch Garnaat http://garnaat.org/ # # 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, modi...
GunoH/intellij-community
refs/heads/master
plugins/hg4idea/testData/bin/hgext/convert/convcmd.py
90
# convcmd - convert extension commands definition # # Copyright 2005-2007 Matt Mackall <mpm@selenic.com> # # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. from common import NoRepo, MissingTool, SKIPREV, mapfile from cvs import conv...
veridiam/Madcow-Waaltz
refs/heads/master
madcow/modules/summon.py
5
"""Summon people""" import re from learn import Main as Learn from madcow.util import Module from smtplib import SMTP from madcow.conf import settings from madcow.util.text import * class Main(Module): pattern = re.compile(r'^\s*summons?\s+(\S+)(?:\s+(.*?))?\s*$') require_addressing = True help = u'summo...
josenavas/QiiTa
refs/heads/master
qiita_pet/handlers/qiita_redbiom.py
1
# ----------------------------------------------------------------------------- # Copyright (c) 2014--, The Qiita Development Team. # # Distributed under the terms of the BSD 3-clause License. # # The full license is in the file LICENSE, distributed with this software. # ------------------------------------------------...
sidzan/netforce
refs/heads/master
netforce_document/netforce_document/models/document.py
2
# Copyright (c) 2012-2015 Netforce Co. Ltd. # # 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, publ...
jalilm/ryu
refs/heads/master
ryu/tests/switch/__init__.py
12133432
virgree/odoo
refs/heads/8.0
addons/crm/report/report_businessopp.py
377
# -*- 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...
batisteo/django-leaflet
refs/heads/master
leaflet/admin.py
1
# -*- coding: utf8 -*- from __future__ import unicode_literals from django.contrib.admin import ModelAdmin from django.contrib.gis.db import models from .forms.widgets import LeafletWidget class LeafletGeoAdmin(ModelAdmin): widget = LeafletWidget map_template = 'leaflet/admin/widget.html' modifiable = T...
uannight/reposan
refs/heads/master
plugin.video.tvalacarta/lib/youtube_dl/extractor/ynet.py
64
# coding: utf-8 from __future__ import unicode_literals import re import json from .common import InfoExtractor from ..compat import compat_urllib_parse_unquote_plus class YnetIE(InfoExtractor): _VALID_URL = r'https?://(?:.+?\.)?ynet\.co\.il/(?:.+?/)?0,7340,(?P<id>L(?:-[0-9]+)+),00\.html' _TESTS = [ ...
ThiagoGarciaAlves/intellij-community
refs/heads/master
python/testData/formatter/specialSlice_after.py
79
a[b1, :]
alilotfi/django
refs/heads/master
tests/model_fields/tests.py
59
# -*- coding: utf-8 -*- from __future__ import unicode_literals import datetime import unittest from decimal import Decimal from django import forms, test from django.apps import apps from django.core import checks, validators from django.core.exceptions import ValidationError from django.db import IntegrityError, co...
nochowderforyou/clams
refs/heads/master
qa/rpc-tests/httpbasics.py
10
#!/usr/bin/env python2 # Copyright (c) 2014 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 REST interface # from test_framework import BitcoinTestFramework from util import * import base64 t...
shinfan/artman
refs/heads/master
artman/pipelines/batch_generation.py
1
# Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
offmessage/blackpearl
refs/heads/master
blackpearl/things/hardware/inputs/motion.py
1
import math from .base import FlotillaInput class Motion(FlotillaInput): """ Motion sensor ============= NB: This is hyper sensitive. Look at the recipes to see how to ignore some of the noise this generates. https://gadgetoid.gitbooks.io/flotilla-protocol/content/motion.html ...
Trult/youtube-dl
refs/heads/master
youtube_dl/extractor/brightcove.py
89
# encoding: utf-8 from __future__ import unicode_literals import re import json import xml.etree.ElementTree from .common import InfoExtractor from ..compat import ( compat_parse_qs, compat_str, compat_urllib_parse, compat_urllib_parse_urlparse, compat_urllib_request, compat_urlparse, comp...
rwakulszowa/servo
refs/heads/master
tests/wpt/web-platform-tests/tools/py/doc/example/genhtml.py
217
from py.xml import html paras = "First Para", "Second para" doc = html.html( html.head( html.meta(name="Content-Type", value="text/html; charset=latin1")), html.body( [html.p(p) for p in paras])) print unicode(doc).encode('latin1')
SKA-ScienceDataProcessor/algorithm-reference-library
refs/heads/master
processing_components/skycomponent/base.py
1
"""Function to manage skycomponents. """ import collections import logging from data_models.memory_data_models import Skycomponent log = logging.getLogger(__name__) def copy_skycomponent(sc): """Copy a sky component of Iterable of skycomponents :param sc: :return: """ single = not isinsta...
tuki/profitpy
refs/heads/master
profit/models/portfolio.py
18
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2007 Troy Melhase <troy@gci.net> # Distributed under the terms of the GNU General Public License v2 from PyQt4.QtCore import Qt, QModelIndex, QVariant, QString from profit.lib import valueAlign from profit.models import BasicItem, BasicItemModel class Portfo...
sdoran35/hate-to-hugs
refs/heads/master
venv/lib/python3.6/site-packages/nltk/classify/senna.py
5
# encoding: utf-8 # Natural Language Toolkit: Senna Interface # # Copyright (C) 2001-2017 NLTK Project # Author: Rami Al-Rfou' <ralrfou@cs.stonybrook.edu> # URL: <http://nltk.org/> # For license information, see LICENSE.TXT """ A general interface to the SENNA pipeline that supports any of the operations specified in ...
stuart-knock/tvb-framework
refs/heads/trunk
tvb_test/adapters/visualizers/ica_test.py
1
# -*- coding: utf-8 -*- # # # TheVirtualBrain-Framework Package. This package holds all Data Management, and # Web-UI helpful to run brain-simulations. To use it, you also need do download # TheVirtualBrain-Scientific Package (for simulators). See content of the # documentation-folder for more details. See also http:/...
jalavik/invenio
refs/heads/master
invenio/modules/indexer/tokenizers/__init__.py
12133432
waytai/django
refs/heads/master
tests/admin_scripts/app_raising_messages/__init__.py
12133432
andim27/magiccamp
refs/heads/master
build/lib/django/contrib/localflavor/pt/__init__.py
12133432
trading-dev/trading-coin
refs/heads/master
src/test/bitcoin-util-test.py
257
#!/usr/bin/python # Copyright 2014 BitPay, Inc. # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. import os import bctest import buildenv if __name__ == '__main__': bctest.bctester(os.environ["srcdir"] + "/test/data", "bitcoin-...
marchchad/GatorApp
refs/heads/master
jobs/migrations/0007_auto_20150323_2226.py
1
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.utils.timezone import utc import datetime class Migration(migrations.Migration): dependencies = [ ('jobs', '0006_image'), ] operations = [ migrations.AddField( ...
Johnzero/OE7
refs/heads/master
OE-debug文件/会计科目/l10n_be_coda/l10n_be_coda.py
63
# -*- encoding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # # Copyright (c) 2011 Noviat nv/sa (www.noviat.be). All rights reserved. # # This program is free software: you can redistribute it and/or modify # it under ...
HeliumGas/helium
refs/heads/master
contrib/qt_translations.py
1
#!/usr/bin/env python # Helpful little script that spits out a comma-separated list of # language codes for Qt icons that should be included # in binary Helium Core distributions import glob import os import re import sys if len(sys.argv) != 3: sys.exit("Usage: %s $QTDIR/translations $BITCOINDIR/src/qt/locale"%sys...
andykimpe/chromium-test-npapi
refs/heads/master
tools/android/remove_strings.py
183
#!/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. """Remove strings by name from a GRD file.""" import optparse import re import sys def RemoveStrings(grd_path, string_names): """R...
NeuralSpaz/Arduino
refs/heads/esp8266
arduino-core/src/processing/app/i18n/python/requests/models.py
151
# -*- coding: utf-8 -*- """ requests.models ~~~~~~~~~~~~~~~ This module contains the primary objects that power Requests. """ import collections import logging import datetime from io import BytesIO from .hooks import default_hooks from .structures import CaseInsensitiveDict from .auth import HTTPBasicAuth from .c...
Tinitto/ShoppingListAPI
refs/heads/master
api/app/auth/__init__.py
1
""" File to initialize the auth Blueprint This is to make the app more modular """ from flask import Blueprint auth_blueprint = Blueprint('auth', __name__) from . import views
clearcare/cc_dynamodb3
refs/heads/master
tests/test_map_type.py
1
import pytest from cc_dynamodb3.cc_types.types import ( ConversionError, MapType, ValidationError, validate_no_empty_string_values, ) from .factories.map_type_model import MapTypeModelFactory def test_validate_raises_for_empty_strings_1(): with pytest.raises(ValidationError): validate_no...
kwailamchan/programming-languages
refs/heads/master
javascript/backbone/backbone-templates/backbone-fileupload/venvs/lib/python2.7/site-packages/django/db/__init__.py
60
from django.conf import settings from django.core import signals from django.core.exceptions import ImproperlyConfigured from django.db.utils import (ConnectionHandler, ConnectionRouter, load_backend, DEFAULT_DB_ALIAS, DatabaseError, IntegrityError) __all__ = ('backend', 'connection', 'connections', 'router', 'Dat...
lnielsen/invenio
refs/heads/pu
invenio/legacy/bibsched/monitor.py
3
# -*- coding: utf-8 -*- ## ## This file is part of Invenio. ## Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 CERN. ## ## Invenio is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License as ## published by the Free Software Foundation; either version 2 of t...
bop/foundation
refs/heads/master
lib/python2.7/site-packages/django/core/management/__init__.py
78
import collections import os import sys from optparse import OptionParser, NO_DEFAULT import imp import warnings from django.core.management.base import BaseCommand, CommandError, handle_default_options from django.core.management.color import color_style from django.utils.importlib import import_module # For backwar...
skosukhin/spack
refs/heads/esiwace
var/spack/repos/builtin/packages/mpe2/package.py
1
############################################################################## # Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
yishenggudou/jythontools
refs/heads/master
jytool/test/hellojython.py
1
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2011 timger # +Author timger # +Gtalk&Email yishenggudou@gmail.com # +Msn yishenggudou@msn.cn # +Weibo @timger http://t.sina.com/zhanghaibo # +twitter @yishenggudou http://twitter.com/yishenggudou # Licensed under the MIT License, Version 2.0...
yoni206/ducking-octo-wallhack
refs/heads/master
project/target/node-modules/webjars/npm/node_modules/node-gyp/gyp/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...
mkaluza/external_chromium_org
refs/heads/kk44
chrome/common/extensions/docs/server2/caching_file_system.py
25
# 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 posixpath import sys from file_system import FileSystem, StatInfo, FileNotFoundError from future import Future class _AsyncUncachedFuture(objec...
NickG1025/PokemonGo-MapPokeEdge
refs/heads/develop
pogom/customLog.py
20
from .utils import get_pokemon_rarity, get_pokemon_name from pogom.utils import get_args from datetime import datetime args = get_args() # temporarily disabling because -o and -i is removed from 51f651228c00a96b86f5c38d1a2d53b32e5d9862 # IGNORE = None # ONLY = None # if args.ignore: # IGNORE = [i.lower().strip() ...
deeplook/bokeh
refs/heads/master
examples/plotting/file/image_url.py
17
from bokeh.plotting import figure, show, output_file output_file("image_url.html") p = figure() url = ["http://bokeh.pydata.org/en/latest/_static/bokeh-transparent.png"]*10 x = list(range(0, 100, 10)) y = list(range(0, 100, 10)) p.image_url(x=x, y=y, url=url, global_alpha=0.2) show(p)
thebritican/neutron-backend
refs/heads/master
neutron/migrations/__init__.py
12133432
MTomczyk/ElectreDiviz
refs/heads/master
ElectreComprehensiveDiscordanceIndex/__init__.py
12133432
imply/chuu
refs/heads/master
media/tools/layout_tests/test_expectations_history_unittest.py
156
#!/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. from datetime import datetime import calendar import unittest from test_expectations_history import TestExpectationsHistory cl...
guschmue/tensorflow
refs/heads/master
tensorflow/python/ops/distributions/distributions.py
53
# 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...
CoDEmanX/ArangoDB
refs/heads/devel
3rdParty/V8-4.3.61/third_party/python_26/Lib/test/test_filecmp.py
77
import os, filecmp, shutil, tempfile, shutil import unittest from test import test_support class FileCompareTestCase(unittest.TestCase): def setUp(self): self.name = test_support.TESTFN self.name_same = test_support.TESTFN + '-same' self.name_diff = test_support.TESTFN + '-diff' da...
eightarcher/hackerrank
refs/heads/master
SimpleArraySum.py
1
""" Given an array of integers, can you find the sum of its elements? Input Format The first line contains an integer, , denoting the size of the array. The second line contains space-separated integers representing the array's elements. Output Format Print the sum of the array's elements as a single integer. S...
Alexander-M-Waldman/local_currency_site
refs/heads/master
lib/python2.7/site-packages/setuptools/command/saveopts.py
411
import distutils, os from setuptools import Command from setuptools.command.setopt import edit_config, option_base class saveopts(option_base): """Save command-line options to a file""" description = "save supplied options to setup.cfg or other config file" def run(self): dist = self.distribution...
effa/smartoo
refs/heads/master
common/fields.py
1
from django.core.serializers.json import DjangoJSONEncoder from django.db import models import json """ Custom model fields. """ class DictField(models.TextField): """ Field for dictionary, using JSON for storing in DB (in a text field). """ __metaclass__ = models.SubfieldBase def to_python(sel...
rosmo/ansible
refs/heads/devel
lib/ansible/modules/cloud/amazon/ec2_vol.py
39
#!/usr/bin/python # Copyright: Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['stableinterf...
andela-ooladayo/django
refs/heads/master
tests/field_defaults/__init__.py
12133432
Firefly-Automation/Firefly
refs/heads/firefly3
Firefly/services/__init__.py
12133432
drexly/tonginBlobStore
refs/heads/master
lib/django/conf/locale/es_AR/__init__.py
12133432
dmaciated/cs3240-labdemo
refs/heads/master
hello.py
1
__author__ = 'dfm4ff' from helper import greeting greeting("hello")
bakerlover/imfo3180lab4
refs/heads/master
lib/markupsafe/_constants.py
1535
# -*- coding: utf-8 -*- """ markupsafe._constants ~~~~~~~~~~~~~~~~~~~~~ Highlevel implementation of the Markup string. :copyright: (c) 2010 by Armin Ronacher. :license: BSD, see LICENSE for more details. """ HTML_ENTITIES = { 'AElig': 198, 'Aacute': 193, 'Acirc': 194, 'Agrave': 1...
dnozay/lettuce
refs/heads/master
tests/integration/lib/Django-1.3/django/conf/locale/zh_TW/formats.py
1293
# -*- 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 = # TIME_FORMAT = # DATETIME_FORMAT = # YEAR_MONTH_FORMAT = # MONTH_DA...
avastu/zulip
refs/heads/master
zerver/tests.py
114
# -*- coding: utf-8 -*- from __future__ import absolute_import from django.test import TestCase from zerver.lib.test_helpers import ( queries_captured, simulated_empty_cache, simulated_queue_client, tornado_redirected_to_list, AuthedTestCase, most_recent_usermessage, most_recent_message, ) from zerver.mo...
mixman/djangodev
refs/heads/master
django/contrib/gis/gdal/libgdal.py
88
import os import re from ctypes import c_char_p, CDLL from ctypes.util import find_library from django.contrib.gis.gdal.error import OGRException # Custom library path set? try: from django.conf import settings lib_path = settings.GDAL_LIBRARY_PATH except (AttributeError, EnvironmentError, ImportError): li...
virt2real/linux-davinci
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...
jabez1314/gfwlist2pac
refs/heads/master
gfwlist2pac/resources/__init__.py
186
#!/usr/bin/python # -*- coding: utf-8 -*-
TripleDogDare/RadioWCSpy
refs/heads/master
env/lib/python2.7/site-packages/pip/utils/logging.py
91
from __future__ import absolute_import import contextlib import logging import logging.handlers import os try: import threading except ImportError: import dummy_threading as threading from pip.compat import WINDOWS try: from pip._vendor import colorama # Lots of different errors can come from this, incl...
40123248/2015cd_midterm
refs/heads/master
static/Brython3.1.0-20150301-090019/Lib/urllib/__init__.py
12133432
pawelmhm/scrapy
refs/heads/master
scrapy/signals.py
3
""" Scrapy signals These signals are documented in docs/topics/signals.rst. Please don't add new signals here without documenting them there. """ engine_started = object() engine_stopped = object() spider_opened = object() spider_idle = object() spider_closed = object() spider_error = object() request_scheduled = obj...
snowzjx/ns3-buffer-management
refs/heads/master
src/topology-read/bindings/modulegen__gcc_ILP32.py
38
from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers import pybindgen.settings import warnings class ErrorHandler(pybindgen.settings.ErrorHandler): def handle_error(self, wrapper, exception, traceback_): warnings.warn("exception %r in wrapper %s" % (exception, wrapper)) ...
wangyum/tensorflow
refs/heads/master
tensorflow/contrib/rnn/python/kernel_tests/fused_rnn_cell_test.py
34
# 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...
dcroc16/skunk_works
refs/heads/master
google_appengine/lib/django-1.4/django/utils/dictconfig.py
335
# This is a copy of the Python logging.config.dictconfig module, # reproduced with permission. It is provided here for backwards # compatibility for Python versions prior to 2.7. # # Copyright 2009-2010 by Vinay Sajip. All Rights Reserved. # # Permission to use, copy, modify, and distribute this software and its # docu...
amplab/ray
refs/heads/master
doc/conf.py
1
# -*- coding: utf-8 -*- # # Ray documentation build configuration file, created by # sphinx-quickstart on Fri Jul 1 13:19:58 2016. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All c...
girving/tensorflow
refs/heads/master
tensorflow/python/summary/plugin_asset_test.py
151
# 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...
ChanderG/scipy
refs/heads/master
benchmarks/benchmarks/sparse.py
41
""" Simple benchmarks for the sparse module """ from __future__ import division, print_function, absolute_import import warnings import time import collections import timeit import numpy import numpy as np from numpy import ones, array, asarray, empty, random, zeros try: from scipy import sparse from scipy.s...
hunter007/django
refs/heads/master
tests/staticfiles_tests/urls/helper.py
790
from django.contrib.staticfiles.urls import staticfiles_urlpatterns urlpatterns = staticfiles_urlpatterns()
ufeslabic/parse-facebook
refs/heads/master
lib_posts.py
1
#!/usr/bin/env python # -*- coding: utf-8 -*- import csv, datetime from lib_time import * from lib_output import * from lib_comments import * from lib_cleaning import * from collections import defaultdict def count_post_type(post_type, dict_int_total_post_types): dict_int_total_post_types[post_type] += 1 def count_...
oleksa-pavlenko/gae-django-project-template
refs/heads/master
django/contrib/admin/migrations/__init__.py
12133432
a-buck/airmozilla
refs/heads/master
airmozilla/roku/models.py
12133432
almey/policycompass-services
refs/heads/master
apps/referencepool/__init__.py
12133432
atruberg/django-custom
refs/heads/master
tests/admin_registration/__init__.py
12133432
Haukiii/slackbot
refs/heads/master
tests/unit/__init__.py
12133432
mei3am/androguard
refs/heads/master
andromercury.py
38
#!/usr/bin/env python # This file is part of Androguard. # # Copyright (C) 2012, Anthony Desnos <desnos at t0t0.fr> # All rights reserved. # # Androguard 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,...
Vaidyanath/tempest
refs/heads/master
tempest/api/compute/admin/test_simple_tenant_usage_negative.py
1
# Copyright 2013 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 ...
pombredanne/django-tenant-schemas
refs/heads/master
dts_test_project/dts_test_project/settings.py
6
""" Django settings for dts_test_project project. For more information on this file, see https://docs.djangoproject.com/en/1.6/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.6/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DIR...
koverholt/bayes-fire
refs/heads/master
Example_Cases/Evac_Stairs/Scripts/evac_flow_three_parameter_models.py
1
#!/usr/bin/env python """Module for setting up statistical models""" from __future__ import division import numpy as np import pymc as mc import evac_flow_three_parameter_graphics as graphics import data_evac def model1(): """ PyMC configuration with Model 1. """ # Priors theta = mc.Uniform('th...
kaji-project/adagios
refs/heads/kaji
adagios/urls.py
1
# Adagios is a web based Nagios configuration interface # # Copyright (C) 2014, Pall Sigurdsson <palli@opensource.is> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of...
datenbetrieb/odoo
refs/heads/8.0
addons/account/project/report/analytic_balance.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...
tjod/obchord
refs/heads/master
sdfloader.py
1
import sys import obchord import openbabel def obmol(imol, mol): if mol: name = mol.GetTitle() mol.SetTitle("") if name == "": name = "\\N" print str(imol) + "\t" + name + "\t" + oc.writestring(mol,"can","i") + "\t" + oc.writestring(mol,"can").replace("\\","\\\\") + "\t\\X" + oc.fingerprint(mol, 1024...
ryano144/intellij-community
refs/heads/master
python/testData/refactoring/inlinelocal/py994.before.py
83
class C: def foo(self): co<caret>nf = Conference() return conf
le9i0nx/debinterface
refs/heads/master
__init__.py
12133432
sh4t/Sick-Beard
refs/heads/development
sickbeard/clients/requests/packages/urllib3/contrib/__init__.py
12133432
amir-qayyum-khan/edx-platform
refs/heads/master
lms/djangoapps/student_account/__init__.py
12133432
gxx/lettuce
refs/heads/master
tests/integration/lib/Django-1.3/tests/regressiontests/app_loading/parent/app/__init__.py
12133432
NullSoldier/django
refs/heads/master
tests/fixtures_regress/__init__.py
12133432
jotes/pontoon
refs/heads/master
pontoon/batch/models.py
12133432
timabbott/zulip
refs/heads/master
zerver/webhooks/transifex/__init__.py
12133432
09zwcbupt/undergrad_thesis
refs/heads/master
ext/poxdesk/qx/tool/pylib/generator/code/clazz/MClassI18N.py
1
#!/usr/bin/env python # -*- coding: utf-8 -*- ################################################################################ # # qooxdoo - the new era of web development # # http://qooxdoo.org # # Copyright: # 2006-2011 1&1 Internet AG, Germany, http://www.1und1.de # # License: # LGPL: http://www.gnu.org/li...
mtimkovich/super_wiki
refs/heads/master
main.py
1
import os import webapp2 import jinja2 import logging import hashlib import hmac import urllib import models from google.appengine.api import memcache template_dir = os.path.join(os.path.dirname(__file__), 'templates') jinja_env = jinja2.Environment(loader = jinja2.FileSystemLoader(template_dir), ...
304471720/tornado
refs/heads/master
tornado/queues.py
78
# Copyright 2015 The Tornado 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 w...
andela-ooladayo/django
refs/heads/master
tests/deprecation/tests.py
199
from __future__ import unicode_literals import os import unittest import warnings from django.test import SimpleTestCase from django.test.utils import reset_warning_registry from django.utils import six from django.utils.deprecation import RenameMethodsBase from django.utils.encoding import force_text class RenameM...