repo_name
stringlengths
5
100
ref
stringlengths
12
67
path
stringlengths
4
244
copies
stringlengths
1
8
content
stringlengths
0
1.05M
vicky2135/lucious
refs/heads/master
oscar/lib/python2.7/site-packages/django/utils/autoreload.py
295
# Autoreloading launcher. # Borrowed from Peter Hunt and the CherryPy project (http://www.cherrypy.org). # Some taken from Ian Bicking's Paste (http://pythonpaste.org/). # # Portions copyright (c) 2004, CherryPy Team (team@cherrypy.org) # All rights reserved. # # Redistribution and use in source and binary forms, with ...
daisymax/nvda
refs/heads/master
source/appModules/miranda32.py
2
#appModules/miranda32.py #A part of NonVisual Desktop Access (NVDA) #Copyright (C) 2006-2012 NVDA Contributors #This file is covered by the GNU General Public License. #See the file COPYING for more details. import ui import config from ctypes import * from ctypes.wintypes import * import winKernel from NVD...
darjeeling/django
refs/heads/master
tests/string_lookup/models.py
106
from django.db import models class Foo(models.Model): name = models.CharField(max_length=50) friend = models.CharField(max_length=50, blank=True) def __str__(self): return "Foo %s" % self.name class Bar(models.Model): name = models.CharField(max_length=50) normal = models.ForeignKey(Foo...
hgl888/chromium-crosswalk-efl
refs/heads/efl/crosswalk-10/39.0.2171.19
media/cast/test/utility/netload.py
96
#!/usr/bin/env python # Copyright 2014 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. # # Simple client/server script for generating an unlimited TCP stream. # see shadow.sh for how it's intended to be used. import socket...
loco-odoo/localizacion_co
refs/heads/master
openerp/addons-extra/asset_mrp/__openerp__.py
3
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2013-2014 CodUP (<http://codup.com>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU ...
LethusTI/supportcenter
refs/heads/master
vendor/django/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...
DailyActie/md2sql
refs/heads/master
examples/20170510-software.esciencecenter.nl-gh-pages/estep/utils.py
1
# Copyright 2016 Netherlands eScience Center # # 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 t...
troygrosfield/Django-facebook
refs/heads/master
docs/docs_env/Lib/encodings/rot_13.py
497
#!/usr/bin/env python """ Python Character Mapping Codec for ROT13. See http://ucsub.colorado.edu/~kominek/rot13/ for details. Written by Marc-Andre Lemburg (mal@lemburg.com). """#" import codecs ### Codec APIs class Codec(codecs.Codec): def encode(self,input,errors='strict'): return codecs.c...
zclfly/cgt
refs/heads/master
cgt/compilation.py
3
from . import core, utils import cgt import ctypes, os.path as osp, hashlib, numpy as np, sys, subprocess, string, os, time, traceback, cPickle from collections import defaultdict, namedtuple from StringIO import StringIO import logging def function(inputs, outputs, dbg=None, updates=None, givens=None): assert isi...
jhona22baz/blog-flask
refs/heads/master
python2.7/lib/python2.7/site-packages/pip/cmdoptions.py
361
""" shared options and groups The principle here is to define options once, but *not* instantiate them globally. One reason being that options with action='append' can carry state between parses. pip parse's general options twice internally, and shouldn't pass on state. To be consistent, all options will follow this d...
foxwill/ol-api-tester
refs/heads/master
env/lib/python2.7/site-packages/requests/packages/chardet/jisfreq.py
3130
######################## BEGIN LICENSE BLOCK ######################## # The Original Code is Mozilla Communicator client code. # # The Initial Developer of the Original Code is # Netscape Communications Corporation. # Portions created by the Initial Developer are Copyright (C) 1998 # the Initial Developer. All Rights R...
throwable-one/lettuce
refs/heads/master
tests/integration/lib/Django-1.2.5/tests/regressiontests/syndication/__init__.py
12133432
impactlab/eemeter
refs/heads/master
eemeter/resources/__init__.py
12133432
LightStage-Aber/LightStage-Repo
refs/heads/master
exp/exp_plotting/__init__.py
12133432
bhouston/three.js
refs/heads/master
utils/converters/msgpack/json2msgpack.py
331
#!/usr/bin/env python __doc__ = ''' Convert a json file to msgpack. If fed only an input file the converted will write out a .pack file of the same base name in the same directory $ json2msgpack.py -i foo.json foo.json > foo.pack Specify an output file path $ json2msgpack.py -i foo.json -o /bar/tmp/bar.pack foo.json...
itzzshirlayyy/Online_Ordering
refs/heads/master
venv/lib/python2.7/site-packages/pip/_vendor/html5lib/filters/sanitizer.py
1734
from __future__ import absolute_import, division, unicode_literals from . import _base from ..sanitizer import HTMLSanitizerMixin class Filter(_base.Filter, HTMLSanitizerMixin): def __iter__(self): for token in _base.Filter.__iter__(self): token = self.sanitize_token(token) if tok...
webmedic/booker
refs/heads/master
src/gdata/alt/__init__.py
271
#!/usr/bin/python # # Copyright (C) 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
MOA-2011/enigma2.pli4.0
refs/heads/master
po/xml2po.py
40
#!/usr/bin/python import sys import os import string import re from xml.sax import make_parser from xml.sax.handler import ContentHandler, property_lexical_handler try: from _xmlplus.sax.saxlib import LexicalHandler no_comments = False except ImportError: class LexicalHandler: pass no_comments = True class parse...
richardliaw/ray
refs/heads/master
rllib/utils/debug.py
3
import numpy as np import pprint from typing import Mapping from ray.rllib.policy.sample_batch import SampleBatch, MultiAgentBatch _printer = pprint.PrettyPrinter(indent=2, width=60) def summarize(obj): """Return a pretty-formatted string for an object. This has special handling for pretty-formatting of co...
40223136/-2015cd_midterm
refs/heads/master
static/Brython3.1.1-20150328-091302/Lib/html/entities.py
814
"""HTML character entity references.""" # maps the HTML entity name to the Unicode codepoint name2codepoint = { 'AElig': 0x00c6, # latin capital letter AE = latin capital ligature AE, U+00C6 ISOlat1 'Aacute': 0x00c1, # latin capital letter A with acute, U+00C1 ISOlat1 'Acirc': 0x00c2, # latin capit...
StrellaGroup/erpnext
refs/heads/develop
erpnext/accounts/doctype/payment_order/test_payment_order.py
15
# -*- coding: utf-8 -*- # Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and Contributors # See license.txt from __future__ import unicode_literals import frappe import unittest class TestPaymentOrder(unittest.TestCase): pass
KitKatXperience/platform_external_chromium_org
refs/heads/kk
native_client_sdk/src/build_tools/parse_dsc.py
23
#!/usr/bin/env 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. import collections import fnmatch import optparse import os import sys VALID_TOOLCHAINS = ['newlib', 'glibc', 'pnacl', 'win', 'lin...
Dyhzy/selector-shell
refs/heads/master
appengine_django/tests/memcache_test.py
6
#!/usr/bin/python2.4 # # Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
ProfessionalIT/maxigenios-website
refs/heads/master
sdk/google_appengine/lib/pyasn1/pyasn1/type/tag.py
200
# ASN.1 types tags from operator import getitem from pyasn1 import error tagClassUniversal = 0x00 tagClassApplication = 0x40 tagClassContext = 0x80 tagClassPrivate = 0xC0 tagFormatSimple = 0x00 tagFormatConstructed = 0x20 tagCategoryImplicit = 0x01 tagCategoryExplicit = 0x02 tagCategoryUntagged = 0x04 class Tag: ...
KevinGoodsell/sympy
refs/heads/cache
doc/src/modules/galgebra/GA/reciprocalframeGAtest.py
12
MV.setup('e1 e2 e3',metric) print 'Example: Reciprocal Frames e1, e2, and e3 unit vectors.\n\n' E = e1^e2^e3 Esq = (E*E)() print 'E =',E print 'E^2 =',Esq Esq_inv = 1/Esq E1 = (e2^e3)*E E2 = (-1)*(e1^e3)*E E3 = (e1^e2)*E print '...
jkandasa/integration_tests
refs/heads/master
cfme/utils/appliance/implementations/rest.py
1
# -*- coding: utf-8 -*- class ViaREST(object): def __init__(self, owner): self.owner = owner @property def appliance(self): return self.owner def __str__(self): return 'REST'
krishna-pandey-git/django
refs/heads/master
tests/queryset_pickle/models.py
281
import datetime from django.db import DJANGO_VERSION_PICKLE_KEY, models from django.utils import six from django.utils.translation import ugettext_lazy as _ def standalone_number(): return 1 class Numbers(object): @staticmethod def get_static_number(): return 2 class PreviousDjangoVersionQuer...
chargehound/chargehound-python
refs/heads/master
test/test_error.py
1
import chargehound import requests_mock import unittest2 from chargehound.error import ChargehoundBadRequestError, ChargehoundError class ErrorTest(unittest2.TestCase): def setUp(self): super(ErrorTest, self).setUp() chargehound.api_key = 'API_KEY' @requests_mock.mock() def test_bad_requ...
mozilla-metrics/hadoop-etls
refs/heads/master
fhr/v3/base_etl_job.py
1
#!/usr/bin/env python import sys, os import codecs import datetime import mrjob.job import mrjob.protocol try: # workaround from fhrdata import FHRData import util except ImportError: pass class BaseETLJob(mrjob.job.MRJob): HADOOP_INPUT_FORMAT = 'SequenceFileAsTextInputFormat' OUTPUT_PROTOCOL...
rio-group/trabalho-ai-pacman
refs/heads/master
graphicsDisplay.py
2
# graphicsDisplay.py # ------------------ # Licensing Information: Please do not distribute or publish solutions to this # project. You are free to use and extend these projects for educational # purposes. The Pacman AI projects were developed at UC Berkeley, primarily by # John DeNero (denero@cs.berkeley.edu) and Dan ...
gabrielfalcao/lettuce
refs/heads/master
tests/integration/lib/Django-1.2.5/tests/regressiontests/syndication/models.py
103
from django.db import models class Entry(models.Model): title = models.CharField(max_length=200) date = models.DateTimeField() class Meta: ordering = ('date',) def __unicode__(self): return self.title def get_absolute_url(self): return "/blog/%s/" % self.pk class Articl...
xingyepei/edx-platform
refs/heads/release
lms/djangoapps/instructor/management/__init__.py
12133432
helldorado/ansible
refs/heads/devel
lib/ansible/module_utils/powershell/__init__.py
12133432
rogerhu/django
refs/heads/master
tests/file_storage/__init__.py
12133432
wemanuel/smry
refs/heads/master
smry/server-auth/ls/google-cloud-sdk/platform/gsutil/third_party/boto/boto/swf/layer2.py
130
"""Object-oriented interface to SWF wrapping boto.swf.layer1.Layer1""" import time from functools import wraps from boto.swf.layer1 import Layer1 from boto.swf.layer1_decisions import Layer1Decisions DEFAULT_CREDENTIALS = { 'aws_access_key_id': None, 'aws_secret_access_key': None } def set_default_credential...
ephes/scikit-learn
refs/heads/master
doc/datasets/rcv1_fixture.py
238
"""Fixture module to skip the datasets loading when offline The RCV1 data is rather large and some CI workers such as travis are stateless hence will not cache the dataset as regular sklearn users would do. The following will skip the execution of the rcv1.rst doctests if the proper environment variable is configured...
dallingham/regenerate
refs/heads/master
regenerate/ui/columns.py
1
# # Manage registers in a hardware design # # Copyright (C) 2008 Donald N. Allingham # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any...
andriibekker/biddingsbase
refs/heads/master
django/contrib/admin/models.py
228
from django.db import models from django.contrib.contenttypes.models import ContentType from django.contrib.auth.models import User from django.contrib.admin.util import quote from django.utils.translation import ugettext_lazy as _ from django.utils.encoding import smart_unicode from django.utils.safestring import mark...
unho/pootle
refs/heads/master
pootle/apps/pootle_statistics/models.py
5
# -*- coding: utf-8 -*- # # Copyright (C) Pootle contributors. # # This file is a part of the Pootle project. It is distributed under the GPL3 # or later license. See the LICENSE file for a copy of the license and the # AUTHORS file for copyright and authorship information. from django.conf import settings from django...
ondoheer/flask-admin
refs/heads/master
flask_admin/tests/sqla/test_inlineform.py
25
# -*- coding: utf-8 -*- from nose.tools import eq_, ok_, raises from wtforms import fields from flask_admin.contrib.sqla import ModelView from flask_admin.contrib.sqla.fields import InlineModelFormList from flask_admin.contrib.sqla.validators import ItemsRequired from . import setup def test_inline_form(): app...
stanford-ssi/balloons-VALBAL
refs/heads/master
utils/parser.py
1
#!/usr/bin/env python # Stanford Student Space Initiative # Balloons | VALBAL | May 2017 # Davy Ragland | dragland@stanford.edu # File: parser.py # -------------------------- # Server side script to parse incoming messages # from RockBLOCK #******************************* SETUP *************************************...
moreati/numpy
refs/heads/master
numpy/lib/tests/test_polynomial.py
116
from __future__ import division, absolute_import, print_function ''' >>> p = np.poly1d([1.,2,3]) >>> p poly1d([ 1., 2., 3.]) >>> print(p) 2 1 x + 2 x + 3 >>> q = np.poly1d([3.,2,1]) >>> q poly1d([ 3., 2., 1.]) >>> print(q) 2 3 x + 2 x + 1 >>> print(np.poly1d([1.89999+2j, -3j, -5.12345678, 2+1j])) ...
iDTLabssl/hr
refs/heads/8.0
__unported__/hr_worked_days_hourly_rate/tests/__init__.py
28
# -*- coding:utf-8 -*- ############################################################################## # # Copyright (C) 2014 Odoo Canada. All Rights Reserved. # # 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 # ...
nafex/pyload
refs/heads/stable
module/lib/beaker/util.py
45
"""Beaker utilities""" try: import thread as _thread import threading as _threading except ImportError: import dummy_thread as _thread import dummy_threading as _threading from datetime import datetime, timedelta import os import string import types import weakref import warnings import sys py3k = ge...
nsnam/ns-3-dev-git
refs/heads/master
src/uan/bindings/callbacks_list.py
7
callback_classes = [ ['ns3::ObjectBase *', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], ['void', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], ['...
brian-l/django-1.4.10
refs/heads/master
tests/regressiontests/app_loading/not_installed/__init__.py
12133432
mewtaylor/django
refs/heads/master
tests/model_formsets/__init__.py
12133432
mohitsethi/solum
refs/heads/master
solum/tests/api/__init__.py
12133432
tajkhan/pluto
refs/heads/master
annotations/module/loop/submodule/boundreplace/__init__.py
12133432
Tatsh-ansible/ansible
refs/heads/devel
test/units/parsing/utils/__init__.py
12133432
MwanzanFelipe/rockletonfortune
refs/heads/master
lib/django/contrib/sites/managers.py
472
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.conf import settings from django.core import checks from django.core.exceptions import FieldDoesNotExist from django.db import models class CurrentSiteManager(models.Manager): "Use this to limit objects to those associated with the curre...
houchj/selenium
refs/heads/master
py/selenium/webdriver/firefox/firefox_profile.py
60
# Licensed to the Software Freedom Conservancy (SFC) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The SFC licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
CTSRD-SOAAP/chromium-42.0.2311.135
refs/heads/master
testing/gtest/test/gtest_filter_unittest.py
2826
#!/usr/bin/env python # # Copyright 2005 Google Inc. All Rights Reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of...
LarryHillyer/PoolHost
refs/heads/master
PoolHost/env/Lib/site-packages/wheel/test/test_signatures.py
565
from wheel import signatures from wheel.signatures import djbec, ed25519py from wheel.util import binary def test_getlib(): signatures.get_ed25519ll() def test_djbec(): djbec.dsa_test() djbec.dh_test() def test_ed25519py(): kp0 = ed25519py.crypto_sign_keypair(binary(' '*32)) kp = ed25519p...
charleswhchan/ansible
refs/heads/devel
lib/ansible/utils/module_docs_fragments/files.py
25
# (c) 2014, Matt Martz <matt@sivel.net> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # ...
awslabs/aws-big-data-blog
refs/heads/master
aws-blog-vpc-toptalkers/bin/flowlogs-counter.py
2
#!/usr/bin/python2.7 import os import sys import fileinput import shlex ## Index SRC=3 DST=4 PORT=6 def stream_index(): try: if os.environ['mapred_input_format_class'] == \ 'org.apache.hadoop.mapred.lib.NLineInputFormat' and \ os.environ['mapreduce_task_ismap'] == "true": ...
mayankcu/Django-social
refs/heads/master
venv/Lib/site-packages/django/contrib/localflavor/ie/ie_counties.py
503
""" Sources: Irish Counties: http://en.wikipedia.org/wiki/Counties_of_Ireland """ from django.utils.translation import ugettext_lazy as _ IE_COUNTY_CHOICES = ( ('antrim', _('Antrim')), ('armagh', _('Armagh')), ('carlow', _('Carlow')), ('cavan', _('Cavan')), ('clare', _('Clare')), ('cork...
spxiwh/pycbc-glue
refs/heads/nr_precessing_branch
test/segdb/segdb_test.py
3
#!/usr/bin/env python """This script test ligolw_segment_query and ligolw_segments_from_cats: For ligolw_segment_query, the test runs against E13 data at the time of writing. 1. run test query "ligolw_segments_from_cats --segment-url=https://segdb.ligo.caltech.edu --gps-start-time 924821634 --gps-end-time 924828992...
sencha/chromium-spacewalk
refs/heads/master
mojo/public/tools/bindings/mojom_bindings_generator_unittest.py
107
# Copyright 2014 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 unittest from mojom_bindings_generator import MakeImportStackMessage class MojoBindingsGeneratorTest(unittest.TestCase): """Tests mojo_bindings_g...
kenshay/ImageScript
refs/heads/master
ProgramData/SystemFiles/Python/Lib/site-packages/networkx/algorithms/components/tests/test_attracting.py
6
#!/usr/bin/env python from nose.tools import * import networkx as nx from networkx import NetworkXNotImplemented class TestAttractingComponents(object): def setUp(self): self.G1 = nx.DiGraph() self.G1.add_edges_from([(5, 11), (11, 2), (11, 9), (11, 10), (7, 11), (7,...
valkjsaaa/sl4a
refs/heads/master
python-build/python-libs/gdata/tests/atom_tests/mock_client_test.py
128
#!/usr/bin/python # # Copyright (C) 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
mtekel/libcloud
refs/heads/trunk
libcloud/test/loadbalancer/test_softlayer.py
37
# 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"); you may not use ...
hydroshare/hydroshare_drupal
refs/heads/master
sites/all/modules/proj4js/lib/proj4js/tools/mkpjcat.py
250
#!/usr/bin/env python import sys sys.path.append(".") import pjjs resourcesDirectory = "catalogues" targetDirectory = "../lib/defs" if len(sys.argv) > 1: resourcesDirectory = sys.argv[1] if len(sys.argv) > 2: targetDirectory = sys.argv[2] print "Generating Proj4js catalogues." pjjs.pjcat2js_clean(resource...
automl/paramsklearn
refs/heads/master
tests/components/feature_preprocessing/test_kernel_pca.py
1
import unittest from sklearn.linear_model import RidgeClassifier from ParamSklearn.components.feature_preprocessing.kernel_pca import \ KernelPCA from ParamSklearn.util import _test_preprocessing, PreprocessingTestCase, \ get_dataset import sklearn.metrics class KernelPCAComponentTest(PreprocessingTestCase):...
lokeshjindal15/pd-gem5
refs/heads/master
configs/topologies/Cluster.py
41
# Copyright (c) 2012 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 code must retain the above copyright # notice, this list of conditions...
toast38coza/WeddingSite
refs/heads/master
events/migrations/0002_auto_20150207_0721.py
1
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('events', '0001_initial'), ] operations = [ migrations.AlterField( model_name='event', name='address'...
hassanabidpk/django
refs/heads/master
django/core/cache/utils.py
585
from __future__ import unicode_literals import hashlib from django.utils.encoding import force_bytes from django.utils.http import urlquote TEMPLATE_FRAGMENT_KEY_TEMPLATE = 'template.cache.%s.%s' def make_template_fragment_key(fragment_name, vary_on=None): if vary_on is None: vary_on = () key = ':'...
deisi/home-assistant
refs/heads/master
homeassistant/components/alarm_control_panel/__init__.py
6
""" Component to interface with an alarm control panel. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/alarm_control_panel/ """ import logging import os import voluptuous as vol from homeassistant.const import ( ATTR_CODE, ATTR_CODE_FORMAT, ATTR_EN...
harshitamistry/calligraRepository
refs/heads/master
3rdparty/google-breakpad/src/tools/gyp/test/ninja/action_dependencies/gyptest-action-dependencies.py
246
#!/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. """ Verify that building an object file correctly depends on running actions in dependent targets, but not the targets themselves. """ impo...
openstack/poppy
refs/heads/master
poppy/dns/rackspace/services.py
2
# Copyright (c) 2014 Rackspace, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
PetrDlouhy/django
refs/heads/master
tests/swappable_models/__init__.py
12133432
rcos/Observatory
refs/heads/master
observatory/dashboard/templatetags/event_bubble.py
2
# Copyright (c) 2010, individual contributors (see AUTHORS file) # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" ...
sergecodd/FireFox-OS
refs/heads/master
B2G/gecko/toolkit/components/telemetry/gen-histogram-enum.py
2
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Write out a C++ enum definition whose members are the names of # histograms. The histograms are defined in a file pro...
drewhill/Emp-Dir
refs/heads/master
src/ProjClass.py
1
# -*- coding: utf-8 -*- """ Created on Thu Jul 04 19:57:11 2013 @author: drewhill """ import os class project: def __init__(self,newID,val="tempload"): #constructor self.name = val self.id = newID self.notes="" self.empList=[] self.lead="" self.desc="" ...
dongjoon-hyun/tensorflow
refs/heads/master
tensorflow/contrib/graph_editor/__init__.py
24
# 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...
Endika/odoomrp-utils
refs/heads/8.0
partner_address_type_default/__init__.py
465
# -*- coding: utf-8 -*- ############################################################################## # For copyright and license notices, see __openerp__.py file in root directory ############################################################################## from . import models
gmartinezramirez/dotfiles
refs/heads/master
scripts/.config/scripts/i3-wk-switch/i3-wk-switch.py
1
#!/usr/bin/python """Emulates xmonad's workspace switching behavior in i3""" # pylint: disable=no-member import logging import sys from pprint import pformat import i3 import time LOG = logging.getLogger() def setup_logger(level): """Initializes logger with debug level""" LOG.setLevel(logging.DEBUG) ...
asydorchuk/ml
refs/heads/master
classes/cs231n/assignment3/cs231n/__init__.py
12133432
haxoza/django
refs/heads/master
tests/staticfiles_tests/apps/no_label/__init__.py
12133432
goodwinnk/intellij-community
refs/heads/master
python/testData/lineMarkerTest/eggs/spam/__init__.py
12133432
ironbox360/django
refs/heads/master
tests/datetimes/tests.py
345
from __future__ import unicode_literals import datetime from unittest import skipIf from django.test import TestCase, override_settings from django.utils import timezone from .models import Article, Category, Comment try: import pytz except ImportError: pytz = None class DateTimesTests(TestCase): def ...
billyhunt/osf.io
refs/heads/develop
api_tests/institutions/views/__init__.py
12133432
mdaniel/intellij-community
refs/heads/master
python/testData/addImport/relativeImportTooDeepWithSameLevelUsed/pkg1/pkg2/pkg3/pkg4/__init__.py
12133432
mattcaldwell/djangocms-text-ckeditor
refs/heads/master
djangocms_text_ckeditor/migrations/__init__.py
12133432
mavenlin/tensorflow
refs/heads/master
tensorflow/contrib/seq2seq/python/kernel_tests/__init__.py
12133432
maestro-hybrid-cloud/horizon
refs/heads/master
openstack_dashboard/dashboards/admin/volumes/volumes/__init__.py
12133432
studentenportal/web
refs/heads/master
apps/user_stats/management/__init__.py
12133432
MozillaSecurity/FuzzManager
refs/heads/master
server/ec2spotmanager/common/__init__.py
12133432
hef/samba
refs/heads/bind9_10
python/samba/tests/dcerpc/sam.py
27
# -*- coding: utf-8 -*- # # Unix SMB/CIFS implementation. # Copyright © Jelmer Vernooij <jelmer@samba.org> 2008 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License,...
edx/lettuce
refs/heads/master
tests/integration/lib/Django-1.2.5/django/contrib/comments/views/__init__.py
12133432
caseyclements/bokeh
refs/heads/master
bokeh/compat/mplexporter/__init__.py
64
from .renderers import Renderer from .exporter import Exporter
utkbansal/kuma
refs/heads/master
kuma/users/migrations/0004_auto_20150722_1243.py
6
# -*- coding: utf-8 -*- from __future__ import unicode_literals from json import loads from django.core.exceptions import ObjectDoesNotExist from django.db import models, migrations def move_to_user(apps, schema_editor): User = apps.get_model('users', 'User') unknowns = [] users = User.objects.all().sel...
georgemarshall/django
refs/heads/master
tests/middleware/extra_urls.py
61
from django.urls import path from . import views urlpatterns = [ path('customurlconf/noslash', views.empty_view), path('customurlconf/slash/', views.empty_view), path('customurlconf/needsquoting#/', views.empty_view), ]
teoliphant/numpy-refactor
refs/heads/refactor
numpy/lib/info.py
99
""" Basic functions used by several sub-packages and useful to have in the main name-space. Type Handling ------------- ================ =================== iscomplexobj Test for complex object, scalar result isrealobj Test for real object, scalar result iscomplex Test for complex elements, array res...
mirzadelic/django-social-example
refs/heads/master
django_social_example/manage.py
3
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django_app.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that t...
TansyArron/pants
refs/heads/master
src/python/pants/reporting/html_reporter.py
9
# 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...
horizontracy/rpi_tool
refs/heads/master
api/venv/lib/python2.7/site-packages/flask_restful/reqparse.py
8
from copy import deepcopy from flask import current_app, request from werkzeug.datastructures import MultiDict, FileStorage from werkzeug import exceptions import flask_restful import decimal import inspect import six class Namespace(dict): def __getattr__(self, name): try: return self[name] ...
EvanK/ansible
refs/heads/devel
lib/ansible/modules/cloud/digital_ocean/digital_ocean_tag_facts.py
29
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2018, Ansible Project # Copyright: (c) 2018, Abhijeet Kasurde <akasurde@redhat.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__ = ty...
suyashphadtare/vestasi-erp-1
refs/heads/develop
erpnext/erpnext/setup/doctype/sms_settings/sms_settings.py
32
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe, json from frappe import _, throw, msgprint from frappe.utils import cstr, nowdate from frappe.model.document import Document class ...
tlksio/tlksio
refs/heads/develop
env/lib/python3.4/site-packages/setuptools/tests/fixtures.py
135
try: from unittest import mock except ImportError: import mock import pytest from . import contexts @pytest.yield_fixture def user_override(): """ Override site.USER_BASE and site.USER_SITE with temporary directories in a context. """ with contexts.tempdir() as user_base: with moc...