repo_name
stringlengths
5
100
ref
stringlengths
12
67
path
stringlengths
4
244
copies
stringlengths
1
8
content
stringlengths
0
1.05M
dkushner/zipline
refs/heads/master
tests/test_exception_handling.py
20
# # Copyright 2013 Quantopian, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
Antiun/odoo
refs/heads/8.0
openerp/addons/base/tests/test_ir_filters.py
64
# -*- coding: utf-8 -*- import functools from openerp import exceptions from openerp.tests import common def noid(d): """ Removes values that are not relevant for the test comparisons """ d.pop('id', None) d.pop('action_id', None) return d class FiltersCase(common.TransactionCase): def build(self...
dezounet/datadez
refs/heads/master
tests/test_filter.py
1
from __future__ import unicode_literals, print_function import unittest from collections import defaultdict import numpy as np import pandas as pd from datadez.filter import filter_small_occurrence from datadez.filter import filter_empty class TestFilter(unittest.TestCase): def setUp(self): self.df = ...
dogukantufekci/workplace_saas
refs/heads/master
workplace_saas/_apps/projects/__init__.py
12133432
mapr/hue
refs/heads/hue-3.9.0-mapr
desktop/core/ext-py/Django-1.6.10/tests/select_related_regress/__init__.py
12133432
Qalthos/ansible
refs/heads/devel
test/units/modules/net_tools/nios/__init__.py
12133432
SMALLplayer/smallplayer-image-creator
refs/heads/master
storage/.xbmc/addons/script.module.urlresolver/lib/urlresolver/plugins/vidbull.py
3
''' Vidbull urlresolver plugin Copyright (C) 2013 Vinnydude This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is di...
airbnb/airflow
refs/heads/master
airflow/providers/apache/hive/transfers/mysql_to_hive.py
7
# # 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...
gnieboer/tensorflow
refs/heads/master
tensorflow/contrib/stateless/__init__.py
48
# 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...
xflows/clowdflows-backend
refs/heads/master
workflows/migrations/0004_widget_interaction_finished.py
1
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2016-10-03 08:11 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('workflows', '0003_auto_20160825_1107'), ] operations = [ migrations.AddField( model_name='widget', ...
JianyuWang/nova
refs/heads/master
nova/api/openstack/compute/multiple_create.py
6
# Copyright 2013 IBM Corp. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
hickford/cython
refs/heads/master
Doc/s5/ep2008/worker.py
33
class HardWorker(object): u"Almost Sisyphus" def __init__(self, task): self.task = task def work_hard(self): for i in range(100): self.task()
hijinks/python-bcet
refs/heads/master
random_points.py
1
#!/usr/bin/env python # Use pixel difference and Kirsch filter to pick series of random points import georasters as gr import numpy as np import matplotlib.pyplot as plt from scipy import ndimage import random import string import csv diff_gr = gr.from_file('./output/diff.tif') ndv, xsize, ysize, geot, projection, ...
xujun10110/Hammer
refs/heads/master
bin/xy_burp_poc.py
3
#!/usr/bin/python2.7 #coding:utf-8 import sys import time import requests from concurrent import futures phone = '+86-15869103136' agent = 'Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16' headers = {'User-Agent':agent} de...
paulcalabro/zato
refs/heads/master
code/alembic/versions/0017_7baa0602_gh283_update_tls_outconns.py
7
"""gh283 update tls outconns Revision ID: 0017_7baa0602 Revises: 0016_6669bb02 Create Date: 2014-07-18 14:47:05 """ # revision identifiers, used by Alembic. revision = '0017_7baa0602' down_revision = '0016_6669bb02' from alembic import op import sqlalchemy as sa # Zato from zato.common.odb import model # ########...
nazrulworld/mailbox
refs/heads/master
run.py
12133432
pdellaert/ansible
refs/heads/devel
hacking/build_library/__init__.py
12133432
arun6582/django
refs/heads/master
tests/null_fk/__init__.py
12133432
naterh/ironic
refs/heads/master
ironic/common/glance_service/v1/__init__.py
12133432
LibreGameArchive/silvertree
refs/heads/master
scons/qt4ng.py
1
# vi: syntax=python:et:ts=4 from os.path import join, exists from subprocess import Popen, PIPE from SCons.Script import * from SCons.Builder import Builder from SCons.Action import Action moc4builder = Builder( action = Action("$QT4_MOCCOM", "$QT4_MOCCOMSTR"), prefix = "$QT4...
BassantMorsi/finderApp
refs/heads/master
lib/python2.7/site-packages/wheel/test/simple.dist/setup.py
565
from setuptools import setup try: unicode def u8(s): return s.decode('unicode-escape').encode('utf-8') except NameError: def u8(s): return s.encode('utf-8') setup(name='simple.dist', version='0.1', description=u8('A testing distribution \N{SNOWMAN}'), packages=['simpledis...
bplancher/odoo
refs/heads/9.0
addons/l10n_de_skr04/migrations/9.0.2.0/pre-set_tags_and_taxes_updatable.py
25
from openerp.modules.registry import RegistryManager def migrate(cr, version): registry = RegistryManager.get(cr.dbname) from openerp.addons.account.models.chart_template import migrate_set_tags_and_taxes_updatable migrate_set_tags_and_taxes_updatable(cr, registry, 'l10n_de_skr04')
sam-tsai/django-old
refs/heads/master
tests/regressiontests/queries/tests.py
10
import unittest from django.db import DatabaseError, connections, DEFAULT_DB_ALIAS from django.db.models import Count from django.test import TestCase from models import Tag, Annotation, DumbCategory, Note, ExtraInfo class QuerysetOrderedTests(unittest.TestCase): """ Tests for the Queryset.ordered attribute....
adedayo/intellij-community
refs/heads/master
python/testData/refactoring/unwrap/whileInIfUnwrap_after.py
80
if True: # comment x = 1<caret> y = 2
da1z/intellij-community
refs/heads/master
python/lib/Lib/site-packages/django/contrib/staticfiles/storage.py
71
import os from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.core.files.storage import FileSystemStorage from django.utils.importlib import import_module from django.contrib.staticfiles import utils class StaticFilesStorage(FileSystemStorage): """ Standard fi...
hyperized/ansible
refs/heads/devel
test/units/modules/network/fortios/test_fortios_user_ldap.py
21
# Copyright 2019 Fortinet, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the...
CamelBackNotation/CarnotKE
refs/heads/master
jyhton/lib-python/2.7/idlelib/HyperParser.py
64
""" HyperParser =========== This module defines the HyperParser class, which provides advanced parsing abilities for the ParenMatch and other extensions. The HyperParser uses PyParser. PyParser is intended mostly to give information on the proper indentation of code. HyperParser gives some information on the structure ...
rspavel/spack
refs/heads/develop
var/spack/repos/builtin/packages/py-pycifrw/package.py
5
# 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 PyPycifrw(PythonPackage): """Python library for interacting with Crystallographic Informat...
elkingtonmcb/sympy
refs/heads/master
sympy/polys/tests/test_rationaltools.py
124
"""Tests for tools for manipulation of rational expressions. """ from sympy.polys.rationaltools import together from sympy import S, symbols, Rational, sin, exp, Eq, Integral, Mul from sympy.abc import x, y, z A, B = symbols('A,B', commutative=False) def test_together(): assert together(0) == 0 assert toge...
zozo123/buildbot
refs/heads/master
master/buildbot/test/unit/test_clients_sendchange.py
3
# This file is part of Buildbot. Buildbot 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, version 2. # # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without eve...
climberwb/video-api
refs/heads/master
src/billing/__init__.py
12133432
vsilent/smarty-bot
refs/heads/master
core/brain/how/many/__init__.py
12133432
TresAmigosSD/SMV
refs/heads/master
src/test/python/testSmvFramework/hotload/__init__.py
12133432
RossBrunton/django
refs/heads/master
tests/app_loading/__init__.py
12133432
watchdogpolska/poradnia.siecobywatelska.pl
refs/heads/master
poradnia/events/management/__init__.py
12133432
synasius/django
refs/heads/master
tests/view_tests/app5/__init__.py
12133432
agconti/njode
refs/heads/master
env/lib/python2.7/site-packages/django/conf/locale/ru/__init__.py
12133432
ProfessionalIT/maxigenios-website
refs/heads/master
sdk/google_appengine/lib/django-1.2/django/contrib/messages/__init__.py
314
from api import * from constants import *
ngoix/OCRF
refs/heads/master
examples/manifold/plot_mds.py
45
""" ========================= Multi-dimensional scaling ========================= An illustration of the metric and non-metric MDS on generated noisy data. The reconstructed points using the metric MDS and non metric MDS are slightly shifted to avoid overlapping. """ # Author: Nelle Varoquaux <nelle.varoquaux@gmail....
mgit-at/ansible
refs/heads/devel
lib/ansible/modules/cloud/amazon/redshift.py
50
#!/usr/bin/python # Copyright 2014 Jens Carl, Hothead Games 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', 'stat...
40123151ChengYu/2015cd_midterm
refs/heads/master
static/Brython3.1.1-20150328-091302/Lib/unittest/test/testmock/testwith.py
739
import unittest from warnings import catch_warnings from unittest.test.testmock.support import is_instance from unittest.mock import MagicMock, Mock, patch, sentinel, mock_open, call something = sentinel.Something something_else = sentinel.SomethingElse class WithTest(unittest.TestCase): def test_with_sta...
udxxabp/zulip
refs/heads/master
zerver/management/commands/deactivate_user.py
116
from __future__ import absolute_import from optparse import make_option from django.core.management.base import BaseCommand from zerver.lib.actions import do_deactivate_user, user_sessions from zerver.models import get_user_profile_by_email, UserProfile class Command(BaseCommand): help = "Deactivate a user, inc...
farvardin/txt2tags-test
refs/heads/master
old/txt2tags-2.0.py
5
#!/usr/bin/env python # txt2tags - generic text conversion tool # http://txt2tags.sf.net # # Copyright 2001, 2002, 2003, 2004 Aurelio Marinho Jargas # # 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 F...
charlesvdv/servo
refs/heads/master
tests/wpt/css-tests/tools/conftest.py
83
import platform import os from hypothesis import settings, HealthCheck impl = platform.python_implementation() settings.register_profile("ci", settings(max_examples=1000)) settings.register_profile("ci_pypy", settings(max_examples=1000, suppress_health_check=[HealthCheck...
dunkhong/grr
refs/heads/master
grr/core/grr_response_core/lib/fingerprint_test.py
2
#!/usr/bin/env python """Tests for config_lib classes.""" from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals import io import os from absl.testing import absltest from grr_response_core.lib import fingerprint from grr_response_core.lib import package clas...
mzdaniel/oh-mainline
refs/heads/master
vendor/packages/Django/django/utils/cache.py
55
""" This module contains helper functions for controlling caching. It does so by managing the "Vary" header of responses. It includes functions to patch the header of response objects directly and decorators that change functions to do that header-patching themselves. For information on the Vary header, see: http...
wweiradio/django
refs/heads/master
tests/foreign_object/__init__.py
12133432
moritzpein/mong
refs/heads/master
mong/__init__.py
12133432
JT5D/scikit-learn
refs/heads/master
sklearn/semi_supervised/tests/__init__.py
12133432
joao-bjsoftware/django-avatar
refs/heads/master
avatar/management/commands/__init__.py
12133432
jeffzheng1/tensorflow
refs/heads/master
tensorflow/contrib/learn/python/learn/experiment_test.py
16
# 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 appl...
vijayendrabvs/hap
refs/heads/master
neutron/plugins/mlnx/common/constants.py
11
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright 2013 Mellanox Technologies, Ltd # # 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 # #...
pombredanne/django-rest-framework-mongoengine
refs/heads/master
rest_framework_mongoengine/generics.py
5
from rest_framework import mixins from rest_framework import generics as drf_generics from mongoengine.queryset.base import BaseQuerySet class GenericAPIView(drf_generics.GenericAPIView): """ View to play nice with our Document Serializer """ lookup_field = 'id' def get_queryset(self): "...
fnouama/intellij-community
refs/heads/master
python/testData/quickFixes/PyAddPropertyForFieldQuickFixTest/protectedMember_after.py
80
class A: def __init__(self): self._x = 1 def _foo(self): print(self._x) @property def x(self): return self._x a = A() a._foo() print(a.x)
noelbk/neutron-juniper
refs/heads/master
neutron/services/metering/agents/metering_agent.py
13
# Copyright (C) 2013 eNovance SAS <licensing@enovance.com> # # Author: Sylvain Afchain <sylvain.afchain@enovance.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.apach...
fire855/android_external_skia
refs/heads/cm-12.1-mt6592
gm/rebaseline_server/compare_to_expectations_test.py
68
#!/usr/bin/python """ Copyright 2013 Google Inc. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. Test compare_to_expectations.py TODO(epoger): Create a command to update the expected results (in self._output_dir_expected) when appropriate. For now, you should: 1. e...
JPWKU/unix-agent
refs/heads/master
src/dcm/agent/__init__.py
3
# # Copyright (C) 2014 Dell, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
abendleiter/Django-facebook
refs/heads/master
open_facebook/exceptions.py
1
''' Facebook error classes also see http://fbdevwiki.com/wiki/Error_codes#User_Permission_Errors ''' import ssl try: # python 2 imports from urllib.error import HTTPError, URLError except ImportError: # python 3 imports from urllib.error import HTTPError, URLError class OpenFacebookException(Except...
obi-two/Rebelion
refs/heads/master
data/scripts/templates/object/tangible/mission/quest_item/shared_brennis_doore_q1_needed.py
2
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Tangible() result.template = "object/tangible/mission/quest_item/shared_brennis_doore_q1_needed.iff" result.attri...
vberaudi/scipy
refs/heads/master
scipy/linalg/decomp_qr.py
82
"""QR decomposition functions.""" from __future__ import division, print_function, absolute_import import numpy # Local imports from .lapack import get_lapack_funcs from .misc import _datacopied __all__ = ['qr', 'qr_multiply', 'rq'] def safecall(f, name, *args, **kwargs): """Call a LAPACK routine, determining ...
cloud9UG/odoo
refs/heads/8.0
addons/l10n_fr/wizard/fr_report_compute_resultant.py
374
# -*- 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 #...
ch1huizong/dj
refs/heads/master
onlineshop/myshop/orders/tests.py
24123
from django.test import TestCase # Create your tests here.
sergeysynergy/graph
refs/heads/master
django/zcore/tests.py
24123
from django.test import TestCase # Create your tests here.
roderickvd/nzbToMedia
refs/heads/master
libs/babelfish/tests.py
40
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2013 the BabelFish authors. All rights reserved. # Use of this source code is governed by the 3-clause BSD license # that can be found in the LICENSE file. # from __future__ import unicode_literals import re import sys import pickle from unittest import Te...
maferelo/saleor
refs/heads/master
saleor/extensions/error_codes.py
2
from enum import Enum class ExtensionsErrorCode(Enum): GRAPHQL_ERROR = "graphql_error" INVALID = "invalid" PLUGIN_MISCONFIGURED = "plugin-misconfigured" NOT_FOUND = "not_found" REQUIRED = "required" UNIQUE = "unique"
julienperret/TidyCity
refs/heads/master
tidy_city_dialog.py
1
# -*- coding: utf-8 -*- """ /*************************************************************************** TidyCityDialog A QGIS plugin A simple QGIS python plugin for building tidy cities. ------------------- begin : 2016-11-30 ...
doanguyen/lasotuvi
refs/heads/master
lasotuvi/ThienBan.py
1
# -*- coding: utf-8 -*- """ (c) 2016 doanguyen <dungnv2410@gmail.com>. """ from lasotuvi.AmDuong import (canChiNgay, diaChi, ngayThangNam, ngayThangNamCanChi, nguHanh, nguHanhNapAm, thienCan, timCuc, sinhKhac) import time from lasotuvi.Lich_HND import jdFromDate class lapThienBan(object): def...
antworteffekt/EDeN
refs/heads/master
eden/converter/molecule/__init__.py
12
__author__ = "Fabrizio Costa, Bjoern Gruening" __copyright__ = "Copyright 2014, Fabrizio Costa" __credits__ = ["Fabrizio Costa", "Bjoern Gruening"] __license__ = "GPL" __version__ = "0.1" __maintainer__ = "Fabrizio Costa" __email__ = "costa@informatik.uni-freiburg.de" __status__ = "Production"
birryree/servo
refs/heads/master
tests/wpt/web-platform-tests/tools/wptserve/tests/functional/test_cookies.py
109
import unittest import wptserve from .base import TestUsingServer class TestResponseSetCookie(TestUsingServer): def test_name_value(self): @wptserve.handlers.handler def handler(request, response): response.set_cookie("name", "value") return "Test" route = ("GET", ...
jiajiechen/mxnet
refs/heads/master
python/mxnet/rnn/rnn.py
44
# 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...
wimberosa/samba
refs/heads/master
lib/subunit/python/subunit/tests/test_subunit_filter.py
50
# # subunit: extensions to python unittest to get test results from subprocesses. # Copyright (C) 2005 Robert Collins <robertc@robertcollins.net> # # Licensed under either the Apache License, Version 2.0 or the BSD 3-clause # license at the users choice. A copy of both licenses are available in the # project sour...
tornadozou/tensorflow
refs/heads/master
tensorflow/python/tools/strip_unused.py
180
# 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...
Milstein/crowdsource-platform
refs/heads/develop2
crowdsourcing/migrations/0017_auto_20150709_0204.py
16
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('crowdsourcing', '0016_auto_20150709_0201'...
toidi/tarantool-python-utils
refs/heads/master
tests/test_sentry_buffer.py
1
# -*- coding: utf-8 -*- from datetime import timedelta import os import mock from unittest import TestCase from django.conf import settings from django.utils import timezone from sentry.models import Project, Group from sentry.utils.imports import import_string from sentry.utils.compat import pickle import tarantool ...
ftl-toolbox/lib_openshift
refs/heads/master
lib_openshift/models/v1_deployment_config_rollback_spec.py
2
# coding: utf-8 """ OpenAPI spec version: Generated by: https://github.com/swagger-api/swagger-codegen.git 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 ...
TeslaProject/external_chromium_org
refs/heads/lp5.1
tools/resources/list_resources_removed_by_repack.py
95
#!/usr/bin/env python # Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os import re import sys usage = """%s BUILDTYPE BUILDDIR BUILDTYPE: either chromium or chrome. BUILDDIR: The path to the outp...
jcoady9/python-for-android
refs/heads/master
python3-alpha/python3-src/Lib/_pyio.py
45
""" Python implementation of the io module. """ import os import abc import codecs import warnings # Import _thread instead of threading to reduce startup cost try: from _thread import allocate_lock as Lock except ImportError: from _dummy_thread import allocate_lock as Lock import io from io import (__all__, ...
balloob/home-assistant
refs/heads/dev
homeassistant/components/opentherm_gw/binary_sensor.py
12
"""Support for OpenTherm Gateway binary sensors.""" import logging from homeassistant.components.binary_sensor import ENTITY_ID_FORMAT, BinarySensorEntity from homeassistant.const import CONF_ID from homeassistant.core import callback from homeassistant.helpers.dispatcher import async_dispatcher_connect from homeassis...
hexxter/home-assistant
refs/heads/dev
homeassistant/components/automation/sun.py
19
""" Offer sun based automation rules. For more details about this automation rule, please refer to the documentation at https://home-assistant.io/components/automation/#sun-trigger """ from datetime import timedelta import logging import voluptuous as vol from homeassistant.core import callback from homeassistant.co...
colinhowe/mongoengine
refs/heads/master
mongoengine/queryset.py
2
import pprint import re import copy import itertools import operator import pymongo from bson.code import Code from mongoengine import signals __all__ = ['queryset_manager', 'Q', 'InvalidQueryError', 'DO_NOTHING', 'NULLIFY', 'CASCADE', 'DENY'] # The maximum number of items to display in a QuerySet.__rep...
wkschwartz/django
refs/heads/stable/3.2.x
tests/db_functions/text/test_sha224.py
17
import unittest from django.db import NotSupportedError, connection from django.db.models import CharField from django.db.models.functions import SHA224 from django.test import TestCase from django.test.utils import register_lookup from ..models import Author class SHA224Tests(TestCase): @classmethod def se...
campagnola/acq4
refs/heads/develop
acq4/pyqtgraph/multiprocess/processes.py
3
import subprocess, atexit, os, sys, time, random, socket, signal, inspect import multiprocessing.connection try: import cPickle as pickle except ImportError: import pickle from .remoteproxy import RemoteEventHandler, ClosedError, NoResultError, LocalObjectProxy, ObjectProxy from ..Qt import QT_LIB from ..util ...
ftomassetti/intellij-community
refs/heads/master
python/testData/inspections/PyUnresolvedReferencesInspection/superType.py
83
class A1(object): def method1(self): pass class A2(A1): def method2(self): print 'm2' class B(A2): def method2(self): super(A2, self).<warning descr="Unresolved attribute reference 'method2' for class 'A1'">method2</warning>() #method2 should be highlighted as unresolved. B().me...
brycepg/cave-dweller
refs/heads/master
tests/test_bench_gen_map.py
1
import unittest import random from cave_dweller.game import Game from cave_dweller.gen_map import gen_map as c_gen_map from cave_dweller.gen_map import generate_obstacle_map from .test_gen_map import zero_map, obs_map def test_benchmark_map(benchmark): # One time only result = benchmark.pedantic(c_gen_map, a...
MiLk/ansible-modules-core
refs/heads/devel
source_control/__init__.py
12133432
bretlowery/snakr
refs/heads/master
lib/django/conf/locale/zh_Hans/__init__.py
12133432
shacker/django
refs/heads/master
tests/view_tests/tests/__init__.py
12133432
wangxiangyu/horizon
refs/heads/stable/kilo
openstack_dashboard/dashboards/project/data_processing/__init__.py
12133432
kartikdhar/djangotest
refs/heads/master
virt1/lib/python2.7/site-packages/django/contrib/admin/migrations/__init__.py
12133432
HyperloopTeam/FullOpenMDAO
refs/heads/master
lib/python2.7/site-packages/networkx-1.9.1-py2.7.egg/networkx/readwrite/tests/test_yaml.py
40
""" Unit tests for yaml. """ import os,tempfile from nose import SkipTest from nose.tools import assert_equal import networkx as nx from networkx.testing import assert_edges_equal, assert_nodes_equal class TestYaml(object): @classmethod def setupClass(cls): global yaml try: im...
ovresko/erpnext
refs/heads/master
erpnext/education/doctype/grading_scale/test_grading_scale.py
47
# -*- coding: utf-8 -*- # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # See license.txt from __future__ import unicode_literals import frappe import unittest # test_records = frappe.get_test_records('Grading Scale') class TestGradingScale(unittest.TestCase): pass
dnuffer/Lasagne
refs/heads/master
lasagne/tests/layers/test_normalization.py
3
# -*- coding: utf-8 -*- """ This file contains code from pylearn2, which is covered by the following license: Copyright (c) 2011--2014, Université de Montréal All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions a...
SmithsonianEnterprises/djangocms-text-ckeditor
refs/heads/master
djangocms_text_ckeditor/sanitizer.py
4
from html5lib import sanitizer class AllowTokenParser(): def parse(self, attribute, val): raise NotImplementedError class TextSanitizer(sanitizer.HTMLSanitizer): allow_token_parsers = [] def allowed_token(self, token, token_type): data_found = False allowed_attributes = saniti...
trezorg/django
refs/heads/master
tests/modeltests/model_inheritance_same_model_name/models.py
103
""" XX. Model inheritance Model inheritance across apps can result in models with the same name resulting in the need for an %(app_label)s format string. This app specifically tests this feature by redefining the Copy model from model_inheritance/models.py """ from django.db import models from modeltests.model_inheri...
crdoconnor/olympia
refs/heads/master
apps/amo/tests/test_middleware.py
11
# -*- coding: utf-8 -*- from django import http, test from django.conf import settings from django.test.client import RequestFactory import pytest from commonware.middleware import ScrubRequestOnException from mock import Mock, patch from nose.tools import eq_ from pyquery import PyQuery as pq import amo.tests from a...
Atilla106/members.atilla.org
refs/heads/dev
network/forms/__init__.py
12133432
admed/molgears
refs/heads/master
templates/myaccount/__init__.py
12133432
lmregus/Portfolio
refs/heads/master
python/design_patterns/env/lib/python3.7/site-packages/IPython/terminal/tests/__init__.py
12133432
wbtuomela/mezzanine
refs/heads/master
mezzanine/project_template/project_name/__init__.py
12133432
osen000/python_task
refs/heads/master
test/__init__.py
12133432