repo_name
stringlengths
5
100
ref
stringlengths
12
67
path
stringlengths
4
244
copies
stringlengths
1
8
content
stringlengths
0
1.05M
mrniranjan/python-scripts
refs/heads/master
reboot/ex18.py
1
# this one is like your scripts with args def print_two(*args): arg1, arg2 = args print "arg1: %r, arg2: %r" % (arg1, arg2) # ok, that *args is actually pointless, we can just do this def print_two_again(arg1,arg2): print "arg1: %r, arg2: %r" % (arg1, arg2) # this just takes one argument def print_one(arg1): prin...
Ahmad31/Web_Flask_Cassandra
refs/heads/master
flask/lib/python2.7/site-packages/cqlengine/tests/statements/test_insert_statement.py
2
from unittest import TestCase from cqlengine.statements import InsertStatement, StatementException, AssignmentClause import six class InsertStatementTests(TestCase): def test_where_clause_failure(self): """ tests that where clauses cannot be added to Insert statements """ ist = InsertStatement('t...
stephaneAG/PengPod700
refs/heads/master
QtEsrc/qt-everywhere-opensource-src-4.8.5/src/3rdparty/webkit/Source/ThirdParty/gyp/test/exclusion/gyptest-exclusion.py
363
#!/usr/bin/env python # Copyright (c) 2010 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. """ Verifies that exclusions (e.g. sources!) are respected. Excluded sources that do not exist should not prevent the build from succeeding...
TathagataChakraborti/resource-conflicts
refs/heads/master
PLANROB-2015/seq-sat-lama/py2.5/lib/python2.5/imputil.py
5
""" Import utilities Exported classes: ImportManager Manage the import process Importer Base class for replacing standard import functions BuiltinImporter Emulate the import mechanism for builtin and frozen modules DynLoadSuffixImporter """ # note: avoid importing non-builtin modules import...
andyzsf/django-cms
refs/heads/master
cms/test_utils/project/objectpermissionsapp/migrations/0001_initial.py
66
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration): dependencies = [ ('auth', '0001_initial'), migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('content...
sillvan/hyperspy
refs/heads/master
hyperspy/tests/model/test_set_parameter_state.py
1
# Copyright 2007-2012 The HyperSpy developers # # This file is part of HyperSpy. # # HyperSpy 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 ve...
sjperkins/tensorflow
refs/heads/master
tensorflow/contrib/slim/python/slim/evaluation_test.py
62
# 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...
Xowap/ansible
refs/heads/devel
lib/ansible/plugins/callback/timer.py
141
import os import datetime from datetime import datetime, timedelta from ansible.plugins.callback import CallbackBase class CallbackModule(CallbackBase): """ This callback module tells you how long your plays ran for. """ CALLBACK_VERSION = 2.0 CALLBACK_TYPE = 'aggregate' CALLBACK_NAME = 'timer...
Linux2Go/riakalchemy
refs/heads/master
riakalchemy/exceptions.py
1
""" RiakAlchemy - Object Mapper for Riak Copyright (C) 2011 Linux2Go This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 3 as published by the Free Software Foundation. This program is distributed in the hope that ...
quanhua92/tensorflow-handbook
refs/heads/master
basic/tensorboard_example.py
1
import tensorflow as tf import numpy as np """ Usage: mkdir logs python tensorboard_example.py tensorboard --logdir=./logs """ raw_data = np.random.normal(10, 1, 100) alpha = tf.constant(0.05) curr_value = tf.placeholder(tf.float32) prev_avg = tf.Variable(0.) update_avg = alpha * curr_value + (1 - a...
benthomasson/ansible
refs/heads/devel
lib/ansible/plugins/lookup/keyring.py
46
# (c) 2016, Samuel Boucher <boucher.samuel.c@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) any l...
infilect/ml-course1
refs/heads/master
keras-scripts/conv_filter_visualization.py
3
'''Visualization of the filters of VGG16, via gradient ascent in input space. This script can run on CPU in a few minutes. Results example: http://i.imgur.com/4nj4KjN.jpg ''' from __future__ import print_function from scipy.misc import imsave import numpy as np import time from keras.applications import vgg16 from k...
eteq/bokeh
refs/heads/master
bokeh/models/mappers.py
34
""" Models for mapping values from one range or space to another. """ from __future__ import absolute_import from ..plot_object import PlotObject from ..properties import Float, Color, Enum, Seq from ..enums import Palette from .. import palettes class ColorMapper(PlotObject): """ Base class for color mapper typ...
theseyi/WhereHows
refs/heads/master
wherehows-etl/src/main/resources/jython/requests/packages/chardet/langthaimodel.py
2929
######################## 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...
acysos/odoo-addons
refs/heads/12.0
l10n_es_vat_book/models/l10n_es_vat_book_line.py
1
# Copyright 2017 Praxya (http://praxya.com/) # Daniel Rodriguez Lijo <drl.9319@gmail.com> # Copyright 2017 Eficent Business and IT Consulting Services, S.L. # <contact@eficent.com> # License AGPL-3 - See https://www.gnu.org/licenses/agpl-3.0 from odoo import api, fields, models class L1...
ocket8888/ptsc
refs/heads/master
src/ptsc/builtins.py
1
from . import object as obj from . import evaluator def lenFunc(*args) -> obj.Object: if len(args) != 1: return evaluator.newError(f"wrong number of arguments. got={len(args)}, want=1") arg = args[0] if isinstance(arg, obj.Array): return obj.Integer(Value=len(arg.Elements)) if isinstance(arg, obj.String): r...
Kemanth/Implementation-of-MRED-in-NS3
refs/heads/master
src/tap-bridge/bindings/modulegen__gcc_ILP32.py
5
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)) ...
jaakristioja/grss
refs/heads/master
grs/Populate.py
1
#!/usr/bin/env python # # Populate.py: this file is part of the GRS suite # Copyright (C) 2015 Anthony G. Basile # Copyright (C) 2015 Jaak Ristioja # # 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 Fr...
akarki15/mozillians
refs/heads/master
vendor-local/lib/python/rest_framework/authtoken/models.py
9
import binascii import os from hashlib import sha1 from django.conf import settings from django.db import models # Prior to Django 1.5, the AUTH_USER_MODEL setting does not exist. # Note that we don't perform this code in the compat module due to # bug report #1297 # See: https://github.com/tomchristie/django-rest-fr...
bregman-arie/ansible
refs/heads/devel
lib/ansible/utils/module_docs_fragments/cloudstack.py
7
# -*- coding: utf-8 -*- # Copyright (c) 2015, René Moser <mail@renemoser.net> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) class ModuleDocFragment(object): # Standard cloudstack documentation fragment DOCUMENTATION = ''' options: api_key: description: ...
SerCeMan/intellij-community
refs/heads/master
plugins/hg4idea/testData/bin/mercurial/osutil.py
90
# osutil.py - pure Python version of osutil.c # # Copyright 2009 Matt Mackall <mpm@selenic.com> and others # # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. import os import stat as statmod def _mode_to_kind(mode): if statmod....
ryfeus/lambda-packs
refs/heads/master
Tensorflow_Pandas_Numpy/source3.6/tensorflow/contrib/learn/python/learn/datasets/synthetic.py
120
# 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...
veger/ansible
refs/heads/devel
lib/ansible/modules/network/interface/__init__.py
12133432
thechampanurag/django-oscar
refs/heads/master
tests/_site/model_tests_app/__init__.py
12133432
shitolepriya/test-erp
refs/heads/develop
erpnext/accounts/report/purchase_register/__init__.py
12133432
shakamunyi/neutron-vrrp
refs/heads/master
neutron/plugins/oneconvergence/__init__.py
12133432
turbomanage/training-data-analyst
refs/heads/master
courses/machine_learning/deepdive2/structured/solutions/serving/application/lib/flask/__init__.py
25
# -*- coding: utf-8 -*- """ flask ~~~~~ A microframework based on Werkzeug. It's extensively documented and follows best practice patterns. :copyright: (c) 2015 by Armin Ronacher. :license: BSD, see LICENSE for more details. """ __version__ = '0.12.1' # utilities we import from Werkzeug and...
blademainer/intellij-community
refs/heads/master
python/lib/Lib/distutils/tests/test_install_scripts.py
152
"""Tests for distutils.command.install_scripts.""" import os import unittest from distutils.command.install_scripts import install_scripts from distutils.core import Distribution from distutils.tests import support class InstallScriptsTestCase(support.TempdirManager, support.LoggingSil...
NeCTAR-RC/neutron
refs/heads/master
neutron/tests/unit/plugins/openvswitch/agent/ovs_test_base.py
4
# Copyright (C) 2014,2015 VA Linux Systems Japan K.K. # Copyright (C) 2014 Fumihiko Kakuma <kakuma at valinux co jp> # Copyright (C) 2014,2015 YAMAMOTO Takashi <yamamoto at valinux co jp> # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except ...
CraigHarris/gpdb
refs/heads/master
src/test/tinc/tincrepo/mpp/gpdb/tests/storage/filerep_end_to_end/sync2/__init__.py
12133432
vsilent/smarty-bot
refs/heads/master
core/brain/remove/cronjob/__init__.py
12133432
kwlzn/pants
refs/heads/master
examples/src/python/example/__init__.py
12133432
evansd/django
refs/heads/master
tests/generic_inline_admin/__init__.py
12133432
ddayguerrero/blogme
refs/heads/master
flask/lib/python3.4/site-packages/werkzeug/script.py
270
# -*- coding: utf-8 -*- r''' werkzeug.script ~~~~~~~~~~~~~~~ .. admonition:: Deprecated Functionality ``werkzeug.script`` is deprecated without replacement functionality. Python's command line support improved greatly with :mod:`argparse` and a bunch of alternative modules. Most ...
kbc-developers/android_kernel_samsung_tuna
refs/heads/android-omap-tuna-3.0-kbc-v3
tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/SchedGui.py
12980
# SchedGui.py - Python extension for perf script, basic GUI code for # traces drawing and overview. # # Copyright (C) 2010 by Frederic Weisbecker <fweisbec@gmail.com> # # This software is distributed under the terms of the GNU General # Public License ("GPL") version 2 as published by the Free Software # Foundation. ...
pdellaert/ansible
refs/heads/devel
test/units/modules/network/nxos/test_nxos_telemetry.py
12
# (c) 2019 Red Hat Inc. # # 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. # # Ansible is dis...
Thraxis/pymedusa
refs/heads/master
sickbeard/bs4_parser.py
1
# coding=utf-8 # Author: The SickRage Dev Team # # # This file is part of SickRage. # # SickRage 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 late...
abridgett/boto
refs/heads/develop
tests/unit/glacier/test_layer2.py
114
# -*- coding: utf-8 -*- # Copyright (c) 2012 Thomas Parslow http://almostobsolete.net/ # # 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 th...
orione7/Italorione
refs/heads/master
servers/freakshare.py
20
# -*- coding: utf-8 -*- #------------------------------------------------------------ # pelisalacarta - XBMC Plugin # Conector para freakshare # http://blog.tvalacarta.info/plugin-xbmc/pelisalacarta/ #------------------------------------------------------------ import urlparse,urllib2,urllib,re import os from core im...
renshawbay/xltable
refs/heads/master
xltable/chart.py
2
""" Chart objects reference data from Table instances and are written to Excel worksheets as Excel charts. """ import datetime as dt class Chart(object): """ Chart objects reference data from Table instances and are written to Excel worksheets as Excel charts. :param str type: Chart type (see below)....
nmoya/fscan
refs/heads/master
src/util/calendar.py
1
from datetime import date from datetime import datetime from datetime import timedelta from util import misc import time # get current ymd def ymd(): d = date.today() str_date = "%s-%s-%s" % (d.year, d.month, d.day) return str_date # get current hms def hms(): ttime = time.localtime(time.time()) ...
Mohamed711/Quiz-Program
refs/heads/master
vendor/bundle/ruby/2.2.0/gems/libv8-3.16.14.7/vendor/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...
rven/odoo
refs/heads/14.0-fix-partner-merge-mail-activity
addons/auth_totp/tests/__init__.py
4
from . import test_totp
takeshineshiro/horizon
refs/heads/master
openstack_dashboard/contrib/sahara/content/data_processing/data_image_registry/tables.py
25
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the...
ryankell05/Gravity
refs/heads/master
lib/flask/testsuite/__init__.py
564
# -*- coding: utf-8 -*- """ flask.testsuite ~~~~~~~~~~~~~~~ Tests Flask itself. The majority of Flask is already tested as part of Werkzeug. :copyright: (c) 2011 by Armin Ronacher. :license: BSD, see LICENSE for more details. """ from __future__ import print_function import os import sys im...
robinro/ansible-modules-extras
refs/heads/devel
web_infrastructure/__init__.py
12133432
jordotech/satchmofork
refs/heads/master
satchmo/apps/payment/modules/sermepa/__init__.py
12133432
taigaio/taiga-ncurses
refs/heads/master
tests/controllers/test_issues_controller.py
3
from concurrent.futures import Future from unittest import mock from taiga_ncurses.ui import signals, views from taiga_ncurses import controllers from taiga_ncurses.config import settings from taiga_ncurses.executor import Executor from taiga_ncurses.core import StateMachine from tests import factories def test_iss...
openstack/murano
refs/heads/master
murano/cmd/manage.py
1
# Copyright (c) 2014 Mirantis, 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...
nwchandler/ansible
refs/heads/devel
lib/ansible/modules/network/ios/ios_command.py
58
#!/usr/bin/python # # 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. # # Ansible is distribut...
gdimitris/ChessPuzzlerBackend
refs/heads/master
Virtual_Environment/lib/python2.7/site-packages/sqlalchemy/util/queue.py
81
# util/queue.py # Copyright (C) 2005-2015 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """An adaptation of Py2.3/2.4's Queue module which supports reentrant behavior, using ...
jeboo/kernel_JB_I9100official
refs/heads/master
tools/perf/scripts/python/sched-migration.py
11215
#!/usr/bin/python # # Cpu task migration overview toy # # Copyright (C) 2010 Frederic Weisbecker <fweisbec@gmail.com> # # perf script event handlers have been generated by perf script -g python # # This software is distributed under the terms of the GNU General # Public License ("GPL") version 2 as published by the Fre...
dgarant/weasel
refs/heads/master
Weasel-Bot/weasel/shared/parser.py
1
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # An EBNF-style parser for the language known by the botnet # # Author: Dan Garant # Created: 08/06/12 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ import re import ply.lex as lex import ply.yacc as yacc import curses.ascii class Lexer: """ Lexer de...
tudorvio/nova
refs/heads/master
nova/tests/unit/volume/encryptors/test_cryptsetup.py
38
# Copyright (c) 2013 The Johns Hopkins University/Applied Physics Laboratory # 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/...
shashank971/edx-platform
refs/heads/master
common/djangoapps/edxmako/management/__init__.py
12133432
rds0751/colinkers
refs/heads/master
env/Lib/site-packages/django/db/models/functions/base.py
44
""" Classes that represent database functions. """ from django.db.models import Func, Transform, Value, fields class Cast(Func): """ Coerce an expression to a new field type. """ function = 'CAST' template = '%(function)s(%(expressions)s AS %(db_type)s)' mysql_types = { fields.CharFie...
yarikoptic/pystatsmodels
refs/heads/master
docs/sphinxext/numpy_ext/__init__.py
12133432
dimagi/rapidsms
refs/heads/master
lib/rapidsms/contrib/default/__init__.py
12133432
g8os/core0
refs/heads/master
tests/testsuite/c_advanced/__init__.py
12133432
le717/ICU
refs/heads/master
src/apps/__init__.py
12133432
InnovAfrica/django-volunteer
refs/heads/master
volunteer/__init__.py
12133432
hvy/chainer
refs/heads/master
tests/chainer_tests/functions_tests/pooling_tests/test_max_pooling_nd.py
4
import functools from operator import mul import unittest import numpy import six import chainer from chainer.backends import cuda from chainer import functions from chainer import testing from chainer.testing import attr from chainer.utils import conv from chainer_tests.functions_tests.pooling_tests import pooling_n...
IPMITMO/statan
refs/heads/master
coala-bears/tests/dart/__init__.py
12133432
muhkuh-sys/org.muhkuh.tools-flasher
refs/heads/master
regression/common/simpelTools/__init__.py
12133432
umitproject/site-status
refs/heads/master
django/conf/locale/nb/__init__.py
12133432
ingokegel/intellij-community
refs/heads/master
python/testData/resolve/multiFile/resolveQualifiedSuperClass/foo/__init__.py
83
class SuperDuper(object): def copy(self): pass
HtcLegacy/android_kernel_htc_golfu
refs/heads/cm-12.0
Documentation/target/tcm_mod_builder.py
3119
#!/usr/bin/python # The TCM v4 multi-protocol fabric module generation script for drivers/target/$NEW_MOD # # Copyright (c) 2010 Rising Tide Systems # Copyright (c) 2010 Linux-iSCSI.org # # Author: nab@kernel.org # import os, sys import subprocess as sub import string import re import optparse tcm_dir = "" fabric_ops...
dnozay/lettuce
refs/heads/master
tests/integration/lib/Django-1.3/django/contrib/localflavor/id/id_choices.py
439
import warnings from django.utils.translation import ugettext_lazy as _ # Reference: http://id.wikipedia.org/wiki/Daftar_provinsi_Indonesia # Indonesia does not have an official Province code standard. # I decided to use unambiguous and consistent (some are common) 3-letter codes. warnings.warn( 'There have been...
apllicationCOM/youtube-dl-api-server
refs/heads/master
youtube_dl_server/youtube_dl/extractor/rtp.py
51
# coding: utf-8 from __future__ import unicode_literals import re from .common import InfoExtractor class RTPIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?rtp\.pt/play/p(?P<program_id>[0-9]+)/(?P<id>[^/?#]+)/?' _TESTS = [{ 'url': 'http://www.rtp.pt/play/p405/e174042/paixoes-cruzadas', ...
scopely-devops/scopelets
refs/heads/develop
scopelets/blockdevices.py
1
# Copyright (c) 2014 Scopely, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompanying this file. This file is # distrib...
bcoca/ansible
refs/heads/devel
packaging/release/versionhelper/__init__.py
12133432
TomBaxter/osf.io
refs/heads/develop
api_tests/__init__.py
12133432
t794104/ansible
refs/heads/devel
lib/ansible/module_utils/csharp/__init__.py
12133432
barak/ciml
refs/heads/master
projects/p1/datasets.py
4
from numpy import * from util import * class TennisData: # Outlook Temperature Hum Wind # S? O? R? H? M? C? H? S? X = array([[ 1, 0, 0, 1, 0, 0, 1, 0 ], [ 1, 0, 0, 1, 0, 0, 1, 1 ], [ 0, 1, 0, ...
amccormack/Weevely
refs/heads/master
modules/find/__init__.py
12133432
anjalymehla/airmozilla
refs/heads/master
airmozilla/suggest/__init__.py
12133432
metulburr/puzzle
refs/heads/master
data/states/menu_states/__init__.py
12133432
kantai/passe-framework-prototype
refs/heads/master
django/contrib/localflavor/tr/__init__.py
12133432
jamesblunt/edx-platform
refs/heads/master
common/test/acceptance/tests/lms/__init__.py
12133432
fangxingli/hue
refs/heads/master
apps/sqoop/src/sqoop/migrations/__init__.py
12133432
arruda/cloudfuzzy
refs/heads/master
fuzzy_modeling/tests/models/__init__.py
12133432
cperezpenichet/wiiTracker
refs/heads/master
wiitracker/util.py
1
# -*- coding: utf-8 -*- ### BEGIN LICENSE # Copyright (C) 2013 Carlos M. Pérez Penichet <cperezpenichet@gmail.com> #This program is free software: you can redistribute it and/or modify it #under the terms of the GNU General Public License version 3, as published #by the Free Software Foundation. # #This program is di...
ArnossArnossi/django
refs/heads/master
tests/migrations2/test_migrations_2_first/0001_initial.py
427
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("migrations", "__first__"), ] operations = [ migrations.CreateModel( "OtherAuthor", [ ...
adelton/django
refs/heads/master
tests/conditional_processing/tests.py
322
# -*- coding:utf-8 -*- from __future__ import unicode_literals from datetime import datetime from django.test import SimpleTestCase, override_settings FULL_RESPONSE = 'Test conditional get response' LAST_MODIFIED = datetime(2007, 10, 21, 23, 21, 47) LAST_MODIFIED_STR = 'Sun, 21 Oct 2007 23:21:47 GMT' LAST_MODIFIED_N...
davidnmurray/iris
refs/heads/master
lib/iris/tests/unit/fileformats/pp_rules/test__reshape_vector_args.py
12
# (C) British Crown Copyright 2014 - 2015, Met Office # # This file is part of Iris. # # Iris is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the # Free Software Foundation, either version 3 of the License, or # (at your option) any l...
sanyaade-iot/Arduino-1
refs/heads/esp8266
arduino-core/src/processing/app/i18n/python/requests/cookies.py
209
# -*- coding: utf-8 -*- """ Compatibility code to be able to use `cookielib.CookieJar` with requests. requests.utils imports from here, so be careful with imports. """ import collections from .compat import cookielib, urlparse, Morsel try: import threading # grr, pyflakes: this fixes "redefinition of unused...
rossella/neutron
refs/heads/master
quantum/openstack/common/fileutils.py
17
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 OpenStack LLC. # 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/...
walterbender/infoslicer
refs/heads/master
book.py
1
# Copyright (C) IBM Corporation 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 2 of the License, or # (at your option) any later version. # # This program is distributed i...
johankaito/fufuka
refs/heads/master
microblog/venv/lib/python2.7/site-packages/setuptools/version.py
64
__version__ = '18.0.1'
trachelr/mne-python
refs/heads/master
examples/decoding/plot_decoding_csp_eeg.py
9
""" =========================================================================== Motor imagery decoding from EEG data using the Common Spatial Pattern (CSP) =========================================================================== Decoding of motor imagery applied to EEG data decomposed using CSP. Here the classifier...
mohierf/shinken
refs/heads/master
shinken/objects/item.py
2
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright (C) 2009-2014: # Gabes Jean, naparuba@gmail.com # Gerhard Lausser, Gerhard.Lausser@consol.de # Gregory Starck, g.starck@gmail.com # Hartmut Goebel, h.goebel@goebel-consult.de # # This file is part of Shinken. # # Shinken is free software: you can redis...
moreati/django
refs/heads/master
django/db/migrations/operations/__init__.py
394
from .fields import AddField, AlterField, RemoveField, RenameField from .models import ( AlterIndexTogether, AlterModelManagers, AlterModelOptions, AlterModelTable, AlterOrderWithRespectTo, AlterUniqueTogether, CreateModel, DeleteModel, RenameModel, ) from .special import RunPython, RunSQL, SeparateDatabase...
Nitaco/ansible
refs/heads/devel
lib/ansible/modules/cloud/amazon/aws_az_facts.py
52
#!/usr/bin/python # Copyright (c) 2017 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) ANSIBLE_METADATA = { 'metadata_version': '1.1', 'supported_by': 'community', 'status': ['preview'] } DOCUMENTATION = ''' module: aws_az_facts short_descriptio...
suhe/odoo
refs/heads/master
addons/account_budget/tests/test_theoreticalamount.py
46
# -*- coding: utf-8 -*- from datetime import datetime from mock import patch from openerp.tests.common import TransactionCase from openerp.tools import DEFAULT_SERVER_DATETIME_FORMAT # --------------------------------------------------------- # Tests # --------------------------------------------------------- class ...
betoesquivel/fil2014
refs/heads/master
build/django/tests/i18n/contenttypes/tests.py
55
# coding: utf-8 from __future__ import unicode_literals import os from django.contrib.contenttypes.models import ContentType from django.test import TestCase from django.test.utils import override_settings, TransRealMixin from django.utils._os import upath from django.utils import six from django.utils import transla...
JorgeCoock/django
refs/heads/master
tests/save_delete_hooks/__init__.py
12133432
NoxWings/GoogleCodeJam
refs/heads/master
src/codejam/__init__.py
12133432
gangadharkadam/sterp
refs/heads/develop
erpnext/stock/doctype/material_request_item/__init__.py
12133432
jgoclawski/django
refs/heads/master
tests/empty/no_models/__init__.py
12133432
lijiejie/BBScan
refs/heads/master
scripts/tools/__init__.py
12133432