repo_name
stringlengths
5
100
ref
stringlengths
12
67
path
stringlengths
4
244
copies
stringlengths
1
8
content
stringlengths
0
1.05M
sriprasanna/django-1.3.1
refs/heads/master
django/conf/locale/te/__init__.py
12133432
jnayak1/osf.io
refs/heads/develop
admin/metrics/migrations/__init__.py
12133432
dwightgunning/django
refs/heads/master
tests/migrations/test_migrations_squashed_complex_multi_apps/app2/__init__.py
12133432
vahtras/amy
refs/heads/master
api/__init__.py
12133432
Zeken/audacity
refs/heads/master
lib-src/lv2/sord/waflib/Utils.py
181
#! /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 os,sys,errno,traceback,inspect,re,shutil,datetime,gc import subprocess try: from collections import deque except ImportError: class deque(list): def popleft(self): ...
dhruvsrivastava/OJ
refs/heads/master
python/lib/python2.7/_abcoll.py
4
/usr/lib/python2.7/_abcoll.py
starlightme/python
refs/heads/master
renzongxian/0023/mysite/guestbook/migrations/__init__.py
12133432
GoogleCloudPlatform/professional-services
refs/heads/main
examples/cloudml-energy-price-forecasting/constants/__init__.py
12133432
ambitioninc/django-dynamic-initial-data
refs/heads/develop
dynamic_initial_data/management/__init__.py
12133432
Jgarcia-IAS/SAT
refs/heads/master
openerp/addons-extra/odoo-pruebas/odoo-server/addons/web_api/__init__.py
12133432
cloudwatt/contrail-controller
refs/heads/master
src/config/utils/del_route_target.py
13
#!/usr/bin/python # # Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. # import sys import argparse import ConfigParser from provision_bgp import BgpProvisioner class MxProvisioner(object): def __init__(self, args_str=None): self._args = None if not args_str: args_str ...
donckers/ansible
refs/heads/devel
lib/ansible/module_utils/urls.py
6
# 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 their own license # to the complete wo...
MinimalOS/external_chromium_org_third_party_skia
refs/heads/lp-mr1
platform_tools/android/bin/download_utils.py
149
#!/usr/bin/python # Copyright (c) 2012 The Native Client Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """A library to assist automatically downloading files. This library is used by scripts that download tarballs, zipfiles, etc. as...
0x0all/scikit-learn
refs/heads/master
examples/plot_isotonic_regression.py
303
""" =================== Isotonic Regression =================== An illustration of the isotonic regression on generated data. The isotonic regression finds a non-decreasing approximation of a function while minimizing the mean squared error on the training data. The benefit of such a model is that it does not assume a...
scorpilix/Golemtest
refs/heads/develop
golem/diag/vm.py
2
import os import psutil from golem.core.common import is_windows, is_osx from golem.diag.service import DiagnosticsProvider class VMDiagnosticsProvider(DiagnosticsProvider): def __init__(self): self.process = psutil.Process(os.getpid()) self.attrs = [ 'connections', 'cpu_percent', 'c...
rbaindourov/v8-inspector
refs/heads/master
Source/chrome/v8/tools/testrunner/server/presence_handler.py
123
# Copyright 2012 the V8 project authors. 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 conditi...
ajylee/gpaw-rtxs
refs/heads/rtxs-master
oldtest/vdw/gr.py
3
import os from ase import * from gpaw import GPAW, setup_paths from gpaw.vdw import FFTVDWFunctional from ase.parallel import rank, barrier from gpaw.atom.generator import Generator from gpaw.atom.configurations import parameters def test(): h=4.02 vdw = FFTVDWFunctional(verbose=1) ...
leorochael/odoo
refs/heads/8.0
addons/auth_oauth/ir_configparameter.py
423
# -*- coding: utf-8 -*- from openerp import SUPERUSER_ID from openerp.osv import osv class ir_configparameter(osv.Model): _inherit = 'ir.config_parameter' def init(self, cr, force=False): super(ir_configparameter, self).init(cr, force=force) if force: IMD = self.pool['ir.model.data...
catapult-project/catapult-csm
refs/heads/master
systrace/profile_chrome/perf_tracing_agent.py
9
# 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 logging import optparse import os import py_utils import signal import subprocess import sys import tempfile from devil.android import device_temp_fi...
adrian-the-git/mezzanine
refs/heads/master
mezzanine/forms/defaults.py
48
""" Default settings for the ``mezzanine.forms`` app. Each of these can be overridden in your project's settings module, just like regular Django settings. The ``editable`` argument for each controls whether the setting is editable via Django's admin. Thought should be given to how a setting is actually used before ma...
rdonnelly/ultimate-league-app
refs/heads/master
src/ultimate/leagues/migrations/0015_auto_20190509_2101.py
2
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models def update_group_lock_date(apps, schema_editor): League = apps.get_model('leagues', 'League') League.objects.all().update( group_lock_start_date=models.F('waitlist_start_date') ) class Migra...
Yong-Lee/decode-Django
refs/heads/master
Django-1.5.1/tests/regressiontests/introspection/tests.py
44
from __future__ import absolute_import, unicode_literals from functools import update_wrapper from django.db import connection from django.test import TestCase, skipUnlessDBFeature, skipIfDBFeature from django.utils import six, unittest from .models import Reporter, Article if connection.vendor == 'oracle': exp...
wsmith323/django
refs/heads/master
django/db/backends/utils.py
430
from __future__ import unicode_literals import datetime import decimal import hashlib import logging from time import time from django.conf import settings from django.utils.encoding import force_bytes from django.utils.timezone import utc logger = logging.getLogger('django.db.backends') class CursorWrapper(object...
lmyrefelt/CouchPotatoServer
refs/heads/develop
couchpotato/core/migration/__init__.py
12133432
tbeadle/django
refs/heads/master
django/conf/locale/lv/__init__.py
12133432
NaturalGIS/naturalgis_qgis
refs/heads/master
python/plugins/processing/algs/saga/__init__.py
12133432
CiscoSystems/tempest
refs/heads/master
tempest/cli/simple_read_only/__init__.py
12133432
fernandezcuesta/ansible
refs/heads/devel
lib/ansible/modules/cloud/misc/__init__.py
12133432
SocieteCitoyenne/FranceData
refs/heads/master
francedata/spiders/__init__.py
2415
# This package will contain the spiders of your Scrapy project # # Please refer to the documentation for information on how to create and manage # your spiders.
dairiki/puppyserv
refs/heads/master
puppyserv/paste.py
1
# -*- coding: utf-8 -*- """ WSGI deployment helpers """ from __future__ import absolute_import from datetime import datetime from webob.dec import wsgify def add_server_headers_filter(global_config, **settings): """ Middleware to add headers normally added by real http server. Used when uwsgi is serving HTT...
ahoppen/swift
refs/heads/master
utils/apply-fixit-edits.py
48
#!/usr/bin/env python # utils/apply-fixit-edits.py - Apply edits from .remap files -*- python -*- # # This source file is part of the Swift.org open source project # # Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors # Licensed under Apache License v2.0 with Runtime Library Exception # # See https://s...
Nowheresly/odoo
refs/heads/8.0
addons/base_report_designer/plugin/openerp_report_designer/bin/script/LoginTest.py
384
######################################################################### # # Copyright (c) 2003-2004 Danny Brewer d29583@groovegarden.com # Copyright (C) 2004-2010 OpenERP SA (<http://openerp.com>). # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser Gene...
alexeyum/scikit-learn
refs/heads/master
examples/model_selection/plot_underfitting_overfitting.py
53
""" ============================ Underfitting vs. Overfitting ============================ This example demonstrates the problems of underfitting and overfitting and how we can use linear regression with polynomial features to approximate nonlinear functions. The plot shows the function that we want to approximate, wh...
nikolas/edx-platform
refs/heads/master
openedx/core/operations.py
82
import os import signal import tempfile import gc from datetime import datetime from meliae import scanner def dump_memory(signum, frame): """ Dump memory stats for the current process to a temp directory. Uses the meliae output format. """ timestamp = datetime.now().isoformat() format_str =...
yarikoptic/scrapy
refs/heads/master
tests/test_utils_signal.py
121
from testfixtures import LogCapture from twisted.trial import unittest from twisted.python.failure import Failure from twisted.internet import defer, reactor from pydispatch import dispatcher from scrapy.utils.signal import send_catch_log, send_catch_log_deferred class SendCatchLogTest(unittest.TestCase): @defe...
aebrahim/CyLP
refs/heads/master
cylp/py/pivots/DualDantzigPivot.py
3
''' As a part of ``cylp.python.pivots`` it implements Dantzig's Simplex dual pivot rule. Although it already exists in CLP, for testing purposes we implement one in Python. ''' import sys import numpy as np from operator import itemgetter from random import shuffle from math import floor from DualPivotPythonBase impo...
miragshin/ZeroNet
refs/heads/master
src/lib/__init__.py
12133432
cosmiclattes/TPBviz
refs/heads/master
torrent/lib/python2.7/site-packages/django/conf/locale/vi/__init__.py
12133432
wking/swc-amy
refs/heads/master
workshops/migrations/0050_merge.py
3
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('workshops', '0040_add_country_to_online_events'), ('workshops', '0049_auto_20150916_0544'), ] operations = [ ]
kelseyoo14/Wander
refs/heads/master
venv_2_7/lib/python2.7/site-packages/pandas/tests/test_config.py
13
#!/usr/bin/python # -*- coding: utf-8 -*- import pandas as pd import unittest import warnings import nose class TestConfig(unittest.TestCase): _multiprocess_can_split_ = True def __init__(self, *args): super(TestConfig, self).__init__(*args) from copy import deepcopy self.cf = pd.cor...
dillia23/code-dot-org
refs/heads/staging
blockly-core/closure-library-read-only/closure/bin/build/depstree.py
455
# Copyright 2009 The Closure Library 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 a...
AZed/duplicity
refs/heads/master
testing/tests/statisticstest.py
5
# -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*- # # Copyright 2002 Ben Escoto <ben@emerose.org> # Copyright 2007 Kenneth Loafman <kenneth@loafman.com> # # This file is part of duplicity. # # Duplicity is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License...
fayf/pyload
refs/heads/stable
module/plugins/hoster/QuickshareCz.py
12
# -*- coding: utf-8 -*- import pycurl import re from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo class QuickshareCz(SimpleHoster): __name__ = "QuickshareCz" __type__ = "hoster" __version__ = "0.57" __status__ = "testing" __pattern__ = r'http://(?:[^/]*\.)?qui...
jobiols/odoomrp-wip
refs/heads/8.0
stock_planning/wizard/wiz_stock_planning.py
8
# -*- coding: utf-8 -*- ############################################################################## # For copyright and license notices, see __openerp__.py file in root directory ############################################################################## from openerp import models, fields, api, exceptions, _ from...
openfun/edx-platform
refs/heads/master
docs/shared/conf.py
158
# -*- coding: utf-8 -*- # # getting_started documentation build configuration file, created by # sphinx-quickstart on Tue Apr 16 11:19:12 2013. # # 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....
kyl191/ansible
refs/heads/devel
lib/ansible/playbook/task.py
10
# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) an...
elainenaomi/sciwonc-dataflow-examples
refs/heads/master
dissertation2017/Experiment 1A/instances/10_2_workflow_full_10files_secondary_wmj_3sh_3rs_with_annot_with_proj_3s_range/work/ubuntu/pegasus/example_workflow/20161107T124001+0000/ConfigDB_AverageRatioEvent_0.py
11
HOST = "ip-172-31-29-102.us-west-2.compute.internal:27017,ip-172-31-29-103.us-west-2.compute.internal:27017,ip-172-31-29-104.us-west-2.compute.internal:27017,ip-172-31-29-105.us-west-2.compute.internal:27017,ip-172-31-29-101.us-west-2.compute.internal:27017,ip-172-31-29-106.us-west-2.compute.internal:27017,ip-172-31-29...
swcarpentry/amy
refs/heads/develop
amy/extforms/migrations/__init__.py
12133432
gorbyo/admin_couchdb
refs/heads/master
admin_couchdb/__init__.py
12133432
jswope00/griffinx
refs/heads/master
cms/djangoapps/contentstore/management/__init__.py
12133432
harisibrahimkv/django
refs/heads/master
tests/generic_views/__init__.py
12133432
EricSB/nupic
refs/heads/master
examples/opf/experiments/multistep/hotgym/permutations_sp.py
3
# ---------------------------------------------------------------------- # 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...
orchidinfosys/odoo
refs/heads/master
addons/payment_ogone/data/__init__.py
895
# -*- coding: utf-8 -*- import ogone
c2corg/v6_ui
refs/heads/master
c2corg_ui/views/health.py
1
import logging from c2corg_ui.caching import cache_document_detail from c2corg_ui.views import call_api from pyramid.view import view_config from os.path import isfile log = logging.getLogger(__name__) class Health(object): def __init__(self, request): self.request = request @view_config(route_nam...
kdwink/intellij-community
refs/heads/master
python/lib/Lib/distutils/emxccompiler.py
140
"""distutils.emxccompiler Provides the EMXCCompiler class, a subclass of UnixCCompiler that handles the EMX port of the GNU C compiler to OS/2. """ # issues: # # * OS/2 insists that DLLs can have names no longer than 8 characters # We put export_symbols in a def-file, as though the DLL can have # an arbitrary len...
oscarolar/odoo
refs/heads/master
addons/payment_ogone/data/ogone.py
395
# -*- coding: utf-8 -*- OGONE_ERROR_MAP = { '0020001001': "Authorization failed, please retry", '0020001002': "Authorization failed, please retry", '0020001003': "Authorization failed, please retry", '0020001004': "Authorization failed, please retry", '0020001005': "Authorization failed, please ret...
Team02-TeamGuinness/BIOE421_RoboHand
refs/heads/master
ablation-GUI/CONFIG/2015-January-31/06-01-50 PM C3-3_12-well-CONFIG.py
1
#File fname = 'C3-3_12-well.gcode' f=open(fname,'w') #Laser Parameters laserPower = 15 #% max power dwellTime = 15 #ms x_start = 416 y_start = 343 z_start = 122.10 #mm above home pauseTime = 500 #ms; time paused after movement before ablation feedRate = 500 #movement speed # R...
atlashealth/ansible-modules-extras
refs/heads/devel
__init__.py
12133432
BQLQ/BQLQ
refs/heads/master
mezzanine-4.2.3/mezzanine/generic/migrations/__init__.py
12133432
gaste/dwasp
refs/heads/master
tests/wasp1/AllAnswerSets/aggregates_count_grounding_4.test.py
3
input = """ b(1). b(2). c(a). c(b). a(A,B) v na(A,B) :- c(A), b(B). :- 1 < #count{A:a(A,B)}, b(B). """ output = """ {a(a,1), a(a,2), b(1), b(2), c(a), c(b), na(b,1), na(b,2)} {a(a,1), a(b,2), b(1), b(2), c(a), c(b), na(a,2), na(b,1)} {a(a,1), b(1), b(2), c(a), c(b), na(a,2), na(b,1), na(b,2)} {a(a,2), a(b,1), b(1), b(...
gangadhar-kadam/laganerp
refs/heads/master
erpnext/stock/doctype/material_request/test_material_request.py
13
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt # ERPNext - web based ERP (http://erpnext.com) # For license information, please see license.txt from __future__ import unicode_literals import frappe, unittest from frappe.utils import fl...
debtcollective/debtcollective-web
refs/heads/master
be/proj/envconfig.py
2
import logging import os import re from types import NoneType logger = logging.getLogger(__name__) def get_envconfig(globals_): """For use in the settings.py, this function allows any setting to be overridden by the process environment. """ for var in globals_.keys(): if not re.match(r'^[A-Z...
qmagico/gae-migrations
refs/heads/master
tests/my/migrations_run_twice/__init__.py
2
__author__ = 'tacio'
sumspr/scikit-learn
refs/heads/master
examples/linear_model/plot_sgd_loss_functions.py
249
""" ========================== SGD: convex loss functions ========================== A plot that compares the various convex loss functions supported by :class:`sklearn.linear_model.SGDClassifier` . """ print(__doc__) import numpy as np import matplotlib.pyplot as plt def modified_huber_loss(y_true, y_pred): z ...
dpetker/adventofcode
refs/heads/master
2018/src/__init__.py
12133432
jameswatt2008/jameswatt2008.github.io
refs/heads/master
python/Python核心编程/网络编程/截图和代码/概述、SOCKET/多进程copy文件/test-复件/_threading_local.py
923
"""Thread-local objects. (Note that this module provides a Python version of the threading.local class. Depending on the version of Python you're using, there may be a faster one available. You should always import the `local` class from `threading`.) Thread-local objects support the management of thread-local d...
gauravbose/digital-menu
refs/heads/master
digimenu2/django/contrib/syndication/__init__.py
808
default_app_config = 'django.contrib.syndication.apps.SyndicationConfig'
jmchilton/galaxy-central
refs/heads/master
modules/elementtree/HTMLTreeBuilder.py
103
# # ElementTree # $Id: HTMLTreeBuilder.py 2325 2005-03-16 15:50:43Z fredrik $ # # a simple tree builder, for HTML input # # history: # 2002-04-06 fl created # 2002-04-07 fl ignore IMG and HR end tags # 2002-04-07 fl added support for 1.5.2 and later # 2003-04-13 fl added HTMLTreeBuilder alias # 2004-12-02 fl ...
yuzhangcmu/Python-Study
refs/heads/master
Leetcode/Search_in_Rotated_Sorted_Array_II.py
2
""" Follow up for "Search in Rotated Sorted Array": What if duplicates are allowed? Would this affect the run-time complexity? How and why? Write a function to determine if a given target is in the array. """ class Solution: # @param A a list of integers # @param target an integer # @return a boolean ...
ojengwa/oh-mainline
refs/heads/master
vendor/packages/django-authopenid/example/urls.py
17
from django.conf import settings from django.conf.urls.defaults import * from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', (r'^$', 'example.views.home'), (r'^account/', include('django_authopenid.urls')), (r'^admin/(.*)', admin.site.root), ) if settings.DEBUG: urlpatter...
akhilerm/ZeroCut
refs/heads/master
python/zerocut.py
1
import sys import pygame from pygame.locals import * FPS = 30 SCREENWIDTH = SCREENHEIGHT = 512 #The game matrix initialized with None, False for O and True for X, Posession_Matrix stores which all submatrices is possessed by O and X Game_Matrix = [[None for x in range(9)] for y in range(9)] Posession_MatrixO...
mmnelemane/nova
refs/heads/master
nova/api/openstack/compute/schemas/availability_zone.py
73
# Copyright 2014 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 ...
tuomas2/sword_studybibles
refs/heads/develop
setup.py
1
#!/usr/bin/env python import setuptools setuptools.setup(name='study2osis', version='0.0.5', package_dir={"": "src"}, packages=setuptools.find_packages('src'), include_package_data=True, zip_safe=False)
Huskynarr/gnome15
refs/heads/master
src/plugins/indicator-messages/default/indicator_messages_default_default.py
8
import indicator_messages_default_common class Theme(indicator_messages_default_common.Theme): def __init__(self, screen, theme): indicator_messages_default_common.Theme.__init__(self, screen, theme) def paint_foreground(self, canvas, properties, attributes, args): indicator_messages_de...
artreven/pp_api
refs/heads/master
pp_api/sparql_calls.py
1
import requests import numpy as np import rdflib def get_corpus_analysis_graphs(corpus_id): corpusgraph_id = 'corpusgraph:' + corpus_id[7:] termsgraph_id = corpusgraph_id + ':extractedTerms' cpt_occur_graph_id = corpusgraph_id + ':conceptOccurrences' cooc_graph = corpusgraph_id + ':cooccurrence' r...
cysnake4713/account-financial-tools
refs/heads/8.0
account_invoice_tax_required/models/account_invoice.py
23
# -*- coding: utf-8 -*- ############################################################################## # # Author Vincent Renaville. Copyright 2015 Camptocamp SA # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # publis...
ProfessionalIT/maxigenios-website
refs/heads/master
sdk/google_appengine/lib/django-1.3/django/contrib/localflavor/tr/tr_provinces.py
316
# -*- coding: utf-8 -*- """ This exists in this standalone file so that it's only imported into memory when explicitly needed. """ PROVINCE_CHOICES = ( ('01', ('Adana')), ('02', ('Adıyaman')), ('03', ('Afyonkarahisar')), ('04', ('Ağrı')), ('68', ('Aksaray')), ('05', ('Amasya')), ('06', ('An...
Lujeni/ansible
refs/heads/devel
lib/ansible/modules/cloud/google/gcp_compute_network.py
10
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2017 Google # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # ---------------------------------------------------------------------------- # # *** AUTO GENERATED CODE *** AUTO GENERATED CODE *** # ...
safwanrahman/linuxdesh
refs/heads/master
kitsune/users/admin.py
15
from django import forms from django.contrib import admin from kitsune.users import monkeypatch from kitsune.users.models import Profile class ProfileAdminForm(forms.ModelForm): delete_avatar = forms.BooleanField(required=False, help_text=( "Check to remove the user's avatar.")) class Meta(object): ...
DecipherOne/Troglodyte
refs/heads/master
Trog Build Dependencies/Python26/Lib/encodings/hex_codec.py
528
""" Python 'hex_codec' Codec - 2-digit hex content transfer encoding Unlike most of the other codecs which target Unicode, this codec will return Python string objects for both encode and decode. Written by Marc-Andre Lemburg (mal@lemburg.com). """ import codecs, binascii ### Codec APIs def hex_encode(...
azureplus/hue
refs/heads/master
desktop/core/ext-py/Django-1.6.10/tests/defaultfilters/tests.py
48
# -*- coding: utf-8 -*- from __future__ import unicode_literals import datetime import decimal from django.template.defaultfilters import * from django.test import TestCase from django.test.utils import TransRealMixin from django.utils import six from django.utils import unittest, translation from django.utils.safest...
stonier/ecto
refs/heads/devel
test/scripts/test_throw.py
4
#!/usr/bin/env python # # Copyright (c) 2011, Willow Garage, 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 # not...
Anonymous-X6/django
refs/heads/master
tests/i18n/urls.py
205
from __future__ import unicode_literals from django.conf.urls.i18n import i18n_patterns from django.http import HttpResponse, StreamingHttpResponse from django.test import ignore_warnings from django.utils.deprecation import RemovedInDjango110Warning from django.utils.translation import ugettext_lazy as _ # test depr...
bikong2/django
refs/heads/master
django/contrib/gis/management/commands/ogrinspect.py
369
import argparse from django.contrib.gis import gdal from django.core.management.base import BaseCommand, CommandError from django.utils.inspect import get_func_args class LayerOptionAction(argparse.Action): """ Custom argparse action for the `ogrinspect` `layer_key` keyword option which may be an integer...
danielhrisca/asammdf
refs/heads/master
asammdf/gui/widgets/channel_group_info.py
1
# -*- coding: utf-8 -*- import numpy as np import pandas as pd from PyQt5 import QtCore, QtGui, QtWidgets from ...blocks.utils import csv_bytearray2hex from ..ui import resource_rc as resource_rc from ..ui.channel_group_info_widget import Ui_ChannelGroupInfo from ..widgets.list_item import ListItem class ChannelGro...
lexyan/SickBeard
refs/heads/master
sickbeard/notifiers/tweet.py
14
# Author: Nic Wolfe <nic@wolfeden.ca> # URL: http://code.google.com/p/sickbeard/ # # This file is part of Sick Beard. # # Sick Beard 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 Lice...
wtud/tsap
refs/heads/master
tribler-prototype/tsap/service/SettingsManager.py
1
# coding: utf-8 # Written by Wendo Sabée # Manages local settings. SETTINGS ARE NOT SAVED LOCALLY BETWEEN SESSIONS (for now)! import os import ast # Setup logger import logging _logger = logging.getLogger(__name__) from Tribler.Category.Category import Category from DownloadManager import DownloadManager from BaseM...
dandeliondeathray/niancatscala
refs/heads/master
slackrest/bin/mock_chatbot.py
2
import tornado.web import tornado.websocket import tornado.httpserver import tornado.ioloop import json test_event_handler = None loop = tornado.ioloop.IOLoop.current() class TestEventHandler(tornado.websocket.WebSocketHandler): def open(self): global test_event_handler test_event_handler = self ...
coolbombom/CouchPotatoServer
refs/heads/master
libs/requests/packages/charade/big5prober.py
2930
######################## 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...
andfoy/margffoy-tuay-server
refs/heads/master
env/lib/python2.7/site-packages/future-0.14.3-py2.7.egg/future/types/newdict.py
70
""" A dict subclass for Python 2 that behaves like Python 3's dict Example use: >>> from builtins import dict >>> d1 = dict() # instead of {} for an empty dict >>> d2 = dict(key1='value1', key2='value2') The keys, values and items methods now return iterators on Python 2.x (with set-like behaviour on Python 2.7)....
rahul67/hue
refs/heads/master
desktop/core/ext-py/kazoo-2.0/kazoo/protocol/__init__.py
9480
#
disqus/djangopypi
refs/heads/master
djangopypi/views/__init__.py
2
from logging import getLogger from django.conf import settings from django.http import HttpResponseNotAllowed from djangopypi.decorators import csrf_exempt from djangopypi.models import Package, Release from djangopypi.views.xmlrpc import parse_xmlrpc_request log = getLogger('djangopypi.views') @csrf_exempt def r...
Opentrons/labware
refs/heads/master
robot-server/tests/service/session/session_types/protocol/execution/test_protocol_runner.py
2
import os import sys from pathlib import Path from unittest.mock import MagicMock, patch, PropertyMock import pytest from opentrons.api import Session from opentrons.hardware_control import ThreadedAsyncLock from robot_server.service.protocol.protocol import UploadedProtocol, \ UploadedProtocolMeta, FileMeta from ...
miurahr/seahub
refs/heads/master
seahub/wiki/models.py
6
from django.db import models from seahub.base.fields import LowerCaseCharField class WikiDoesNotExist(Exception): pass class WikiPageMissing(Exception): pass class PersonalWikiManager(models.Manager): def save_personal_wiki(self, username, repo_id): """ Create or update group wiki. ...
pchauncey/ansible
refs/heads/devel
lib/ansible/modules/storage/netapp/netapp_e_hostgroup.py
33
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2016, NetApp, Inc # 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', 'sta...
samchoii/search-foursquare
refs/heads/master
node_modules/protractor/node_modules/jasmine/node_modules/jasmine-core/images/__init__.py
12133432
Beeblio/django
refs/heads/master
tests/force_insert_update/__init__.py
12133432
google/active-qa
refs/heads/master
third_party/nmt/__init__.py
12133432
NukeAOSP/external_skia
refs/heads/jellybean
bench/bench_graph_svg.py
25
''' Created on May 16, 2011 @author: bungeman ''' import sys import getopt import re import os import bench_util import json import xml.sax.saxutils def usage(): """Prints simple usage information.""" print '-d <dir> a directory containing bench_r<revision>_<scalar> files.' print '-b <bench> the benc...
caotianwei/django
refs/heads/master
django/core/management/commands/startapp.py
513
from importlib import import_module from django.core.management.base import CommandError from django.core.management.templates import TemplateCommand class Command(TemplateCommand): help = ("Creates a Django app directory structure for the given app " "name in the current directory or optionally in t...