repo_name
stringlengths
5
100
ref
stringlengths
12
67
path
stringlengths
4
244
copies
stringlengths
1
8
content
stringlengths
0
1.05M
solsozluk/backend
refs/heads/master
solsozluk/solsozluk/urls.py
1
from django.conf.urls import patterns, include, url from django.contrib import admin urlpatterns = patterns('', # Examples: # url(r'^$', 'solsozluk.views.home', name='home'), # url(r'^blog/', include('blog.urls')), url(r'^admin/', include(admin.site.urls)), )
nevir/plexability
refs/heads/master
extern/gyp/test/lib/TestCmd.py
330
""" TestCmd.py: a testing framework for commands and scripts. The TestCmd module provides a framework for portable automated testing of executable commands and scripts (in any language, not just Python), especially commands and scripts that require file system interaction. In addition to running tests and evaluating...
CubicERP/geraldo
refs/heads/master
site/newsite/django_1_0/django/contrib/webdesign/lorem_ipsum.py
439
""" Utility functions for generating "lorem ipsum" Latin text. """ import random COMMON_P = 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo con...
drpngx/tensorflow
refs/heads/master
tensorflow/python/kernel_tests/linalg/linear_operator_circulant_test.py
10
# Copyright 2018 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...
Elico-Corp/odoo_OCB
refs/heads/9.0
addons/event_sale/models/sale_order.py
26
# -*- coding: utf-8 -*- from openerp import api from openerp.osv import fields, osv class sale_order(osv.osv): _inherit = "sale.order" def action_confirm(self, cr, uid, ids, context=None): res = super(sale_order, self).action_confirm(cr, uid, ids, context=context) for order in self.browse(cr...
imoseyon/leanKernel-d2usc-deprecated
refs/heads/lk-tw
external/webkit/Tools/Scripts/webkitpy/tool/comments.py
148
# Copyright (c) 2009 Google Inc. All rights reserved. # Copyright (c) 2009 Apple 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...
krisys/SpojBot
refs/heads/master
src/spojbot/bot/views.py
1
from django.contrib.auth.decorators import login_required from django.shortcuts import * from models import * from forms import SpojUserForm, CodeGroupForm from django.core.mail import send_mail from django.utils import simplejson as json from django.views.decorators.csrf import csrf_exempt class Story(object): ...
Avinash-Raj/appengine-django-skeleton
refs/heads/master
lib/django/conf/locale/es/formats.py
504
# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # from __future__ import unicode_literals # The *_FORMAT strings use the Django date format syntax, # see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date DATE_FORMAT = r'j \d\e F \d\e Y' TIME_FORMAT = '...
robbiet480/home-assistant
refs/heads/dev
tests/components/ffmpeg/test_sensor.py
15
"""The tests for Home Assistant ffmpeg binary sensor.""" from unittest.mock import patch from homeassistant.setup import setup_component from tests.common import assert_setup_component, get_test_home_assistant, mock_coro class TestFFmpegNoiseSetup: """Test class for ffmpeg.""" def setup_method(self): ...
pabloborrego93/edx-platform
refs/heads/master
openedx/core/djangoapps/content/block_structure/apps.py
39
""" Configuration for block_structure djangoapp """ from django.apps import AppConfig class BlockStructureConfig(AppConfig): """ block_structure django app. """ name = u'openedx.core.djangoapps.content.block_structure' def ready(self): """ Define tasks to perform at app loading t...
zxteloiv/ShadowVPN
refs/heads/master
tools/gen_foreign_sh.py
169
#!/usr/bin/env python3 # # Copyright (c) 2014 clowwindy # # 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, ...
SangDeukLee/futsal
refs/heads/develop
public/assets/node_js/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/common.py
366
# 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. from __future__ import with_statement import collections import errno import filecmp import os.path import re import tempfile import sys # A minimal memoizing d...
natebeacham/saml2
refs/heads/master
tests/conftest.py
6
import os #TODO: On my system this function seems to be returning an incorrect location def pytest_funcarg__xmlsec(request): for path in os.environ["PATH"].split(":"): fil = os.path.join(path, "xmlsec1") if os.access(fil,os.X_OK): return fil raise Exception("Can't find xmlsec1") ...
piotrpawlaczek/suds-jurko
refs/heads/master
suds/mx/typer.py
9
# This program is free software; you can redistribute it and/or modify # it under the terms of the (LGPL) GNU Lesser General Public License as # published by the Free Software Foundation; either version 3 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will b...
pkexcellent/luigi
refs/heads/master
luigi/contrib/scalding.py
22
# -*- coding: utf-8 -*- # # Copyright 2012-2015 Spotify AB # # 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...
yohanko88/gem5-DC
refs/heads/master
src/arch/x86/isa/insts/general_purpose/no_operation.py
91
# Copyright (c) 2007-2008 The Hewlett-Packard Development Company # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware imp...
ajnirp/servo
refs/heads/master
tests/wpt/web-platform-tests/tools/py/testing/io_/__init__.py
9480
#
matthewoliver/swift
refs/heads/master
swift/common/middleware/x_profile/profile_model.py
52
# Copyright (c) 2010-2012 OpenStack, LLC. # # 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 ...
googleapis/googleapis-gen
refs/heads/master
google/cloud/aiplatform/v1beta1/aiplatform-v1beta1-py/google/cloud/aiplatform/v1beta1/schema/predict/instance_v1beta1/types/text_extraction.py
3
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # 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...
danguria/linux-kernel-study
refs/heads/master
tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
886
# Util.py - Python extension for perf trace, miscellaneous utility code # # Copyright (C) 2010 by Tom Zanussi <tzanussi@gmail.com> # # This software may be distributed under the terms of the GNU General # Public License ("GPL") version 2 as published by the Free Software # Foundation. NSECS_PER_SEC = 1000000000 de...
linvictor88/vse-lbaas-driver
refs/heads/master
quantum/api/api_common.py
3
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 Citrix System. # 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/...
ivandevp/django
refs/heads/master
tests/migrations/test_migrations_no_default/0001_initial.py
381
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='SillyModel', fields=[ ('id', models.AutoField(v...
JacobJacob/volatility
refs/heads/master
volatility/plugins/malware/__init__.py
12133432
sasukeh/neutron
refs/heads/master
neutron/api/__init__.py
12133432
gangadhar-kadam/nassimlib
refs/heads/master
core/doctype/db_sync/__init__.py
12133432
flatherskevin/TGML
refs/heads/master
Tgml.py
1
""" Last Edited By: Kevin Flathers Date Last Edited: 06/26/2017 Author: Kevin Flathers Date Created: 05/27/2017 Purpose: """ from lxml import etree import os from os.path import splitext from .errors import * class Tgml: DEFAULT_PROPERTIES = { 'Id': '', 'Name': '', 'Background': '#FFFF...
grevutiu-gabriel/sympy
refs/heads/master
sympy/core/operations.py
40
from __future__ import print_function, division from sympy.core.sympify import _sympify, sympify from sympy.core.basic import Basic, _aresame from sympy.core.cache import cacheit from sympy.core.compatibility import ordered, range from sympy.core.logic import fuzzy_and from sympy.core.evaluate import global_evaluate ...
kauser-cse-buet/CerebralCortex
refs/heads/master
cerebralcortex/data_processor/preprocessor/parser.py
3
# Copyright (c) 2017, MD2K Center of Excellence # 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 conditio...
laiqiqi886/kbengine
refs/heads/master
kbe/src/lib/python/Lib/poplib.py
74
"""A POP3 client class. Based on the J. Myers POP3 draft, Jan. 96 """ # Author: David Ascher <david_ascher@brown.edu> # [heavily stealing from nntplib.py] # Updated: Piers Lauder <piers@cs.su.oz.au> [Jul '97] # String method conversion and test jig improvements by ESR, February 2001. # Added the POP3_SSL clas...
Fale/ansible
refs/heads/devel
hacking/build_library/build_ansible/command_plugins/collection_meta.py
35
# coding: utf-8 # Copyright: (c) 2019, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Make coding more python3-ish from __future__ import (absolute_import, division, print_function) __metaclass__ = type import os import os.path import pathlib import yam...
axbaretto/beam
refs/heads/master
sdks/python/.tox/lint/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/shutil.py
395
# -*- coding: utf-8 -*- # # Copyright (C) 2012 The Python Software Foundation. # See LICENSE.txt and CONTRIBUTORS.txt. # """Utility functions for copying and archiving files and directory trees. XXX The functions here don't copy the resource fork or other metadata on Mac. """ import os import sys import stat from os...
martynovp/edx-platform
refs/heads/master
common/djangoapps/track/utils.py
230
"""Utility functions and classes for track backends""" from datetime import datetime, date import json from pytz import UTC class DateTimeJSONEncoder(json.JSONEncoder): """JSON encoder aware of datetime.datetime and datetime.date objects""" def default(self, obj): # pylint: disable=method-hidden "...
ramadhane/odoo
refs/heads/8.0
addons/survey/controllers/main.py
189
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2013-Today OpenERP SA (<http://www.openerp.com>). # # This program is free software: you can redistribute it and/or modify # it under the terms ...
ville-k/tensorflow
refs/heads/master
tensorflow/python/summary/writer/writer_cache.py
75
# 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...
mconstantin/watchdog
refs/heads/master
tests/test_emitter.py
7
# -*- coding: utf-8 -*- # # Copyright 2014 Thomas Amland <thomas.amland@gmail.com> # # 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 # # Unles...
pennlabs/penn-mobile-server
refs/heads/master
buildingRedis.py
1
import csv import json import redis from server import app db = redis.StrictRedis().from_url(app.config["REDIS_URL"]) with open("buildings.csv") as f: reader = csv.DictReader(f) for row in reader: db.set("buildings:%s" % (row["code_courses"]), json.dumps(row))
rspavel/spack
refs/heads/develop
var/spack/repos/builtin/packages/minimap2/package.py
4
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Minimap2(PythonPackage): """Minimap2 is a versatile sequence alignment program that aligns...
eeroniemi/dd-agent
refs/heads/master
tests/checks/integration/test_tokumx.py
46
# 3p from nose.plugins.attrib import attr # project from checks import AgentCheck from tests.checks.common import AgentCheckTest GAUGES = [ # FIXME: For some reason these metrics are not always available # 'tokumx.indexCounters.btree.missRatio', # 'tokumx.globalLock.ratio', # 'tokumx.mem.map...
oliverhr/odoo
refs/heads/8.0-pos-pademobile-payment
addons/pad/__openerp__.py
249
# -*- coding: utf-8 -*- { 'name': 'Collaborative Pads', 'version': '2.0', 'category': 'Project Management', 'description': """ Adds enhanced support for (Ether)Pad attachments in the web client. =================================================================== Lets the company customize which Pad ins...
ahua/pythondotorg
refs/heads/master
minutes/tests/test_views.py
8
import datetime from django.core.urlresolvers import reverse from django.contrib.auth import get_user_model from django.test import TestCase from ..models import Minutes User = get_user_model() class MinutesViewsTests(TestCase): def setUp(self): start_date = datetime.datetime.now() last_month ...
vertigo235/Sick-Beard-XEM
refs/heads/master
lib/enzyme/__init__.py
168
# -*- coding: utf-8 -*- # enzyme - Video metadata parser # Copyright 2011-2012 Antoine Bertin <diaoulael@gmail.com> # Copyright 2003-2006 Thomas Schueppel <stain@acm.org> # Copyright 2003-2006 Dirk Meyer <dischi@freevo.org> # # This file is part of enzyme. # # enzyme is free software; you can redistribute it and/or mod...
machinebrains/neat-python
refs/heads/master
tests/test_simple_run.py
1
from __future__ import print_function import os from neatsociety import nn, population, statistics, visualize from neatsociety.config import Config def test_run(): xor_inputs = [[0, 0], [0, 1], [1, 0], [1, 1]] xor_outputs = [0, 1, 1, 0] def eval_fitness(genomes): for g in genomes: ne...
fmarier/letsencrypt-debian
refs/heads/master
letsencrypt/client.py
1
"""Let's Encrypt client API.""" import logging import os from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives.asymmetric import rsa import OpenSSL import zope.component from acme import client as acme_client from acme import jose from acme import messages from letsencrypt impo...
markslwong/tensorflow
refs/heads/master
tensorflow/contrib/learn/python/learn/dataframe/transforms/difference.py
90
# 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...
jbalogh/zamboni
refs/heads/master
apps/addons/tests/test_decorators.py
1
from django import http import mock from nose.tools import eq_ from test_utils import RequestFactory import amo.tests from addons.models import Addon from addons import decorators as dec class TestAddonView(amo.tests.TestCase): def setUp(self): self.addon = Addon.objects.create(slug='x', type=1) ...
kenwang815/KodiPlugins
refs/heads/master
script.module.youtube.dl/lib/youtube_dl/extractor/freespeech.py
18
from __future__ import unicode_literals import re import json from .common import InfoExtractor class FreespeechIE(InfoExtractor): IE_NAME = 'freespeech.org' _VALID_URL = r'https://www\.freespeech\.org/video/(?P<title>.+)' _TEST = { 'add_ie': ['Youtube'], 'url': 'https://www.freespeech.o...
jeplasenciap/gespai
refs/heads/master
personal/tests.py
24123
from django.test import TestCase # Create your tests here.
nicoboss/Floatmotion
refs/heads/master
OpenGL/raw/GL/ATI/envmap_bumpmap.py
9
'''Autogenerated by xml_generate script, do not edit!''' from OpenGL import platform as _p, arrays # Code generation uses this from OpenGL.raw.GL import _types as _cs # End users want this... from OpenGL.raw.GL._types import * from OpenGL.raw.GL import _errors from OpenGL.constant import Constant as _C import ctypes _...
treeio/treeio
refs/heads/2.0
treeio/projects/south_migrations/0003_auto__add_field_tasktimeslot_user.py
6
# encoding: utf-8 # Copyright 2011 Tree.io Limited # This file is part of Treeio. # License www.tree.io/license # encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding...
rosudrag/Freemium-winner
refs/heads/master
VirtualEnvironment/Lib/site-packages/sqlalchemy/dialects/sybase/pysybase.py
80
# sybase/pysybase.py # Copyright (C) 2010-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 """ .. dialect:: sybase+pysybase :name: Python-Sybase :dbapi: Sybase ...
EmanueleCannizzaro/scons
refs/heads/master
test/MSVS/vs-11.0-files.py
1
#!/usr/bin/env python # # Copyright (c) 2001 - 2016 The SCons Foundation # # 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 us...
daliwangi/bitcoin
refs/heads/master
test/functional/decodescript.py
35
#!/usr/bin/env python3 # Copyright (c) 2015-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test decoding scripts via decodescript RPC command.""" from test_framework.test_framework import Bitco...
skycucumber/Messaging-Gateway
refs/heads/master
webapp/venv/lib/python2.7/site-packages/twisted/web/test/test_script.py
60
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for L{twisted.web.script}. """ import os from twisted.trial.unittest import TestCase from twisted.web.http import NOT_FOUND from twisted.web.script import ResourceScriptDirectory, PythonScript from twisted.web.test._util import _render...
stepan-perlov/jschema
refs/heads/master
jschema/context.py
1
import json from .errors import JrsNodeNotFound from .refs_resolver import RefsResolver class Context(object): def __init__(self): self.schemas = {} self.nodes = {} self.refsResolver = RefsResolver(self) def addSchema(self, schema): self.schemas[schema.id] = schema def ...
dstelter92/RESTMD
refs/heads/master
tools/st-wham_RESTMD.py
1
#!/usr/bin/env python2.7 import os,sys from numpy import * ########### ST-WHAM for python...########## # Originally written in f90 by Jaegil Kim # # Translated to Python by David Stelter # ########################################### # # CITE: http://dx.doi.org/10.1063/1.3626150 # Kim, J., Keyes, T., & Straub, J. E....
Ms2ger/servo
refs/heads/master
tests/wpt/web-platform-tests/2dcontext/tools/specextract.py
75
import html5lib import html5lib.treebuilders.dom # Expected use: # curl --compressed http://www.whatwg.org/specs/web-apps/current-work/ >current-work # python specextract.py # # Generates current-work-canvas.xhtml, for use by gentest.py to create the annotated spec document def extract(): parser = html5lib.ht...
DataDog/uwsgi
refs/heads/master
plugins/transformation_chunked/uwsgiplugin.py
13
NAME='transformation_chunked' CFLAGS = [] LDFLAGS = [] LIBS = [] GCC_LIST = ['chunked']
andresriancho/PyGithub
refs/heads/master
github/GithubException.py
8
# -*- coding: utf-8 -*- # Copyright 2012 Vincent Jacques # vincent@vincent-jacques.net # This file is part of PyGithub. http://vincent-jacques.net/PyGithub # PyGithub 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 Softwar...
rsdevgun16e/energi
refs/heads/energi_v0
qa/rpc-tests/rest.py
37
#!/usr/bin/env python2 # Copyright (c) 2014-2015 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.test_framework import BitcoinTestFramework from test_fram...
itsjeyd/edx-platform
refs/heads/master
openedx/core/djangoapps/oauth_dispatch/models.py
10
""" Specialized models for oauth_dispatch djangoapp """ from datetime import datetime from django.db import models from pytz import utc from oauth2_provider.settings import oauth2_settings class RestrictedApplication(models.Model): """ This model lists which django-oauth-toolkit Applications are considered ...
lcharleux/abapy
refs/heads/master
doc/example_code/postproc/HistoryOutput-average.py
1
from abapy.postproc import HistoryOutput from math import sin, pi N = 100 hist = HistoryOutput() time = [pi / 2 * float(i)/N for i in xrange(N+1)] data = [sin(t) for t in time] hist.add_step(time_step = time, data_step = data) time2 = [10., 11.] data2 = [1., 1.] hist.add_step(time_step = time2, data_step = data2) sol =...
android-ia/platform_tools_idea
refs/heads/master
plugins/hg4idea/testData/bin/mercurial/hook.py
93
# hook.py - hook support for mercurial # # Copyright 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 i18n import _ import os, sys, time, types import extensions, util, demandimport def _py...
pupboss/xndian
refs/heads/master
deploy/site-packages/jinja2/testsuite/loader.py
411
# -*- coding: utf-8 -*- """ jinja2.testsuite.loader ~~~~~~~~~~~~~~~~~~~~~~~ Test the loaders. :copyright: (c) 2010 by the Jinja Team. :license: BSD, see LICENSE for more details. """ import os import sys import tempfile import shutil import unittest from jinja2.testsuite import JinjaTestCase, dic...
sam-m888/gramps
refs/heads/master
gramps/gen/user.py
9
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2010 Brian G. Matherly # # 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 optio...
8l/beri
refs/heads/master
cheritest/trunk/tests/alu/test_raw_srl.py
2
#- # Copyright (c) 2014 Michael Roe # All rights reserved. # # This software was developed by SRI International and the University of # Cambridge Computer Laboratory under DARPA/AFRL contract FA8750-10-C-0237 # ("CTSRD"), as part of the DARPA CRASH research programme. # # @BERI_LICENSE_HEADER_START@ # # Licensed to BER...
sussexstudent/falmer
refs/heads/master
falmer/matte/tests.py
24123
from django.test import TestCase # Create your tests here.
ariakerstein/twitterFlaskClone
refs/heads/master
project/lib/python2.7/site-packages/werkzeug/contrib/limiter.py
365
# -*- coding: utf-8 -*- """ werkzeug.contrib.limiter ~~~~~~~~~~~~~~~~~~~~~~~~ A middleware that limits incoming data. This works around problems with Trac_ or Django_ because those directly stream into the memory. .. _Trac: http://trac.edgewall.org/ .. _Django: http://www.djangoproject.com/ ...
h2oai/h2o
refs/heads/master
py/testdir_single_jvm/test_NN2_mnist.py
9
import unittest, time, sys, random, string sys.path.extend(['.','..','../..','py']) import h2o, h2o_gbm, h2o_cmd, h2o_import as h2i, h2o_browse as h2b class Basic(unittest.TestCase): def tearDown(self): h2o.check_sandbox_for_errors() @classmethod def setUpClass(cls): h2o.init(java_heap_GB...
Bulochkin/tensorflow_pack
refs/heads/master
tensorflow/python/kernel_tests/sparse_cross_op_test.py
72
# 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...
QijunPan/ansible
refs/heads/devel
lib/ansible/utils/module_docs_fragments/netapp.py
2
# # (c) 2016, Sumit Kumar <sumit4@netapp.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 later versi...
shsingh/ansible
refs/heads/devel
lib/ansible/module_utils/network/exos/argspec/facts/facts.py
20
# # -*- coding: utf-8 -*- # Copyright 2019 Red Hat # GNU General Public License v3.0+ # (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) """ The arg spec for the exos facts module. """ from __future__ import absolute_import, division, print_function __metaclass__ = type class FactsArgs(object): # pylint: di...
markflorisson/blaze-core
refs/heads/master
blaze/datadescriptor/remote_data_descriptor.py
7
from __future__ import absolute_import, division, print_function import datashape from ..catalog.blaze_url import add_indexers_to_url from .data_descriptor import IDataDescriptor, Capabilities from dynd import nd, ndt class RemoteDataDescriptor(IDataDescriptor): """ A Blaze data descriptor which exposes an ar...
nburn42/tensorflow
refs/heads/master
tensorflow/examples/speech_commands/models_test.py
48
# 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...
arummler/eudaq
refs/heads/master
legacy/producers/palpidess/scripts/config_set_generation/conf_generator.py
11
#!/usr/bin/env python import os #################################################################################################### ### Settings class ################################################################################# ####################################################################################...
tumbl3w33d/ansible
refs/heads/devel
test/units/modules/net_tools/nios/test_nios_a_record.py
59
# 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 distributed in the hope that ...
ptisserand/ansible
refs/heads/devel
lib/ansible/modules/cloud/rackspace/rax_mon_notification.py
45
#!/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': ['preview'], ...
MyAOSP/external_chromium_org
refs/heads/kk-4.4
tools/telemetry/telemetry/value/list_of_scalar_values.py
36
# Copyright 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 numbers from telemetry import value as value_module def _Mean(values): return float(sum(values)) / len(values) if len(values) > 0 else 0.0 class ...
danieldmm/minerva
refs/heads/master
evaluation/keyword_annotation.py
1
# Base class and functions to annotate the best keywords from each context according to their retrieval scores # # Copyright: (c) Daniel Duma 2016 # Author: Daniel Duma <danielduma@gmail.com> # For license information, see LICENSE.TXT from __future__ import print_function from __future__ import absolute_import imp...
Zhongqilong/kbengine
refs/heads/master
kbe/res/scripts/common/Lib/site-packages/pip/_vendor/requests/packages/chardet/universaldetector.py
744
######################## BEGIN LICENSE BLOCK ######################## # The Original Code is Mozilla Universal charset detector code. # # The Initial Developer of the Original Code is # Netscape Communications Corporation. # Portions created by the Initial Developer are Copyright (C) 2001 # the Initial Developer. All R...
bufferapp/buffer-django-nonrel
refs/heads/master
tests/regressiontests/utils/test_module/bad_module.py
255
import a_package_name_that_does_not_exist content = 'Bad Module'
crmccreary/openerp_server
refs/heads/master
openerp/addons/event/report/report_event_registration.py
9
# -*- 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...
thomastu/django-wiki
refs/heads/master
wiki/views/article.py
7
# -*- coding: utf-8 -*- from __future__ import unicode_literals from __future__ import absolute_import import difflib import logging from django.contrib import messages from django.contrib.auth.decorators import login_required from django.db.models import Q from django.db import transaction from django.shortcuts impor...
dgarros/ansible
refs/heads/devel
lib/ansible/inventory/manager.py
11
# (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...
agrista/odoo-saas
refs/heads/master
addons/l10n_fr_rib/bank.py
335
# -*- encoding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2011 Numérigraphe SARL. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero Genera...
nolram/news_crawler
refs/heads/master
classificador/__init__.py
6
__author__ = 'nolram'
douggeiger/gnuradio
refs/heads/master
gr-filter/python/filter/qa_pm_remez.py
57
#!/usr/bin/env python # # Copyright 2012 Free Software Foundation, Inc. # # This file is part of GNU Radio # # GNU Radio 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, or (at your option) # ...
sxjscience/mxnet
refs/heads/master
python/mxnet/_ffi/base.py
9
# 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 u...
ldjebran/robottelo
refs/heads/master
tests/foreman/api/test_reporttemplates.py
2
# -*- encoding: utf-8 -*- """Unit tests for the ``report_templates`` paths. :Requirement: Report templates :CaseAutomation: Automated :CaseLevel: Component :CaseComponent: Reporting :TestType: Functional :CaseImportance: High :Upstream: No """ from robottelo.decorators import tier1, tier2, stubbed from robottel...
patrickstocklin/chattR
refs/heads/master
lib/python2.7/site-packages/pip/_vendor/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...
minhphung171093/GreenERP_V9
refs/heads/master
openerp/addons/website_event/tests/test_ui.py
50
import openerp.tests @openerp.tests.common.at_install(False) @openerp.tests.common.post_install(True) class TestUi(openerp.tests.HttpCase): def test_admin(self): self.phantom_js("/", "odoo.__DEBUG__.services['web.Tour'].run('event', 'test')", "odoo.__DEBUG__.services['web.Tour'].tours.event", login='admin'...
openstack/murano
refs/heads/master
murano/policy/__init__.py
12133432
asdofindia/kitsune
refs/heads/master
kitsune/__init__.py
12133432
richbrowne/f5-openstack-agent
refs/heads/master
f5_openstack_agent/utils/__init__.py
12133432
mantidproject/mantid
refs/heads/master
scripts/Diffraction/isis_powder/pearl.py
2
# Mantid Repository : https://github.com/mantidproject/mantid # # Copyright &copy; 2018 ISIS Rutherford Appleton Laboratory UKRI, # NScD Oak Ridge National Laboratory, European Spallation Source, # Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS # SPDX - License - Identifier: GPL - 3.0 + from...
Jgarcia-IAS/SAT
refs/heads/master
openerp/addons-extra/odoo-pruebas/odoo-server/addons/l10n_fr/__init__.py
424
# -*- coding: utf-8 -*- ############################################################################## # # Copyright (c) 2008 JAILLET Simon - CrysaLEAD - www.crysalead.fr # # WARNING: This program as such is intended to be used by professional # programmers who take the whole responsability of assessing all potential #...
gminds/rapidnewsng
refs/heads/master
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...
linglung/ytdl
refs/heads/master
youtube_dl/options.py
1
from __future__ import unicode_literals import os.path import optparse import re import sys from .downloader.external import list_external_downloaders from .compat import ( compat_expanduser, compat_get_terminal_size, compat_getenv, compat_kwargs, compat_shlex_split, ) from .utils import ( pre...
googleapis/googleapis-gen
refs/heads/master
google/ads/googleads/v8/googleads-py/google/ads/googleads/v8/services/types/ad_group_ad_label_service.py
1
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # 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...
ProjectSWGCore/NGECore2
refs/heads/master
scripts/mobiles/corellia/corsec_deserter.py
2
import sys from services.spawn import MobileTemplate from services.spawn import WeaponTemplate from resources.datatables import WeaponType from resources.datatables import Difficulty from resources.datatables import Options from java.util import Vector def addTemplate(core): mobileTemplate = MobileTemplate...
schrodinstein/my_fisrt_blog
refs/heads/master
blog/__init__.py
12133432