repo_name
stringlengths
5
100
ref
stringlengths
12
67
path
stringlengths
4
244
copies
stringlengths
1
8
content
stringlengths
0
1.05M
philcleveland/grpc
refs/heads/master
tools/buildgen/build-cleaner.py
44
#!/usr/bin/env python2.7 # Copyright 2015, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this lis...
voutilad/courtlistener
refs/heads/master
cl/search/appellate_review/assign_appellate_review.py
1
# -*- coding: utf-8 -*- """ Created on Thu Apr 7 16:35:29 2016 @author: elliott """ import pandas as pd from cl.search.models import AppellateReview df = pd.read_excel('filename', 0) for i, row in df.iterrows(): upper = row.upper_court lower = row.lower_court if not pd.isnull(row.date_start):...
quoclieu/codebrew17-starving
refs/heads/master
env/lib/python3.5/site-packages/setuptools/dist.py
79
__all__ = ['Distribution'] import re import os import sys import warnings import numbers import distutils.log import distutils.core import distutils.cmd import distutils.dist from distutils.core import Distribution as _Distribution from distutils.errors import (DistutilsOptionError, DistutilsPlatformError, Distuti...
franktakes/teexgraph
refs/heads/master
examples/python_example.py
1
from copy import deepcopy from pyteexgraph import Graph, Scope g = Graph() g.loadDirected("/z/edge_list") print("Loaded", g.isLoaded()) print("Average Degree", g.averageDegree(Scope.FULL)) print("Diameter BD (fails because graph is directed", g.diameterBD()) # Make a deepcopy so we can mutate the graph while preserv...
Lujeni/ansible
refs/heads/devel
lib/ansible/modules/network/ftd/ftd_install.py
27
#!/usr/bin/python # Copyright (c) 2019 Cisco and/or its affiliates. # # 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 ...
Pablo126/SSBW
refs/heads/master
Entrega1/lib/python3.5/site-packages/django/contrib/sessions/backends/base.py
37
from __future__ import unicode_literals import base64 import logging import string from datetime import datetime, timedelta from django.conf import settings from django.contrib.sessions.exceptions import SuspiciousSession from django.core.exceptions import SuspiciousOperation from django.utils import timezone from dj...
XeCycle/indico
refs/heads/master
indico/MaKaC/webinterface/rh/services.py
2
# This file is part of Indico. # Copyright (C) 2002 - 2015 European Organization for Nuclear Research (CERN). # # Indico 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 (a...
DanielSBrown/osf.io
refs/heads/develop
website/addons/box/tests/test_client.py
36
# -*- coding: utf-8 -*- from nose.tools import * # noqa (PEP8 asserts) from tests.base import OsfTestCase from tests.factories import UserFactory from website.addons.box.model import BoxUserSettings class TestCore(OsfTestCase): def setUp(self): super(TestCore, self).setUp() self.user = User...
AmeBel/opencog
refs/heads/master
scripts/get_python_lib.py
5
import sys import sysconfig import site if __name__ == '__main__': # This is a hack due to the distutils in debian/ubuntu's python3 being misconfigured # see discussion https://github.com/opencog/atomspace/issues/1782 # # If the bug is fixed, this script could be replaced by: # # from distutils...
bbbenja/SickRage
refs/heads/master
lib/simplejson/scanner.py
928
"""JSON token scanner """ import re try: from simplejson._speedups import make_scanner as c_make_scanner except ImportError: c_make_scanner = None __all__ = ['make_scanner'] NUMBER_RE = re.compile( r'(-?(?:0|[1-9]\d*))(\.\d+)?([eE][-+]?\d+)?', (re.VERBOSE | re.MULTILINE | re.DOTALL)) def py_make_scan...
Rewardcoin/p2ppool-SGcoin
refs/heads/master
p2pool/util/jsonrpc.py
261
from __future__ import division import json import weakref from twisted.internet import defer from twisted.protocols import basic from twisted.python import failure, log from twisted.web import client, error from p2pool.util import deferral, deferred_resource, memoize class Error(Exception): def __init__(self, ...
crosswalk-project/chromium-crosswalk-efl
refs/heads/efl/crosswalk-10/39.0.2171.19
native_client_sdk/src/tools/decode_dump.py
102
#!/usr/bin/python # Copyright (c) 2012 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. """Utility to decode a crash dump generated by untrusted_crash_dump.[ch] Currently this produces a simple stack trace. """ import jso...
ktbyers/pynet-ons-jan17
refs/heads/master
day1/numbers_ex1.py
4
#!/usr/bin/env python num1 = int(raw_input("Enter first number: ")) num2 = int(raw_input("Enter second number: ")) print "\n\nSum: {}".format(num1 + num2) print "Difference: {}".format(num1 - num2) print "Product: {}".format(num1 * num2) print "Division: {:.2f}".format(num1/float(num2)) print
vipmike007/virt-test
refs/heads/master
shared/deps/run_autotest/kernel_install/kernelinstall.py
26
import os import logging import sys from autotest.client import test from autotest.client import utils from autotest.client.shared import git, error, software_manager class kernelinstall(test.test): version = 1 sm = software_manager.SoftwareManager() def _kernel_install_rpm(self, rpm_file, kernel_deps_rp...
ryfeus/lambda-packs
refs/heads/master
Opencv_pil/source36/numpy/f2py/tests/test_semicolon_split.py
13
from __future__ import division, absolute_import, print_function import platform import pytest from . import util from numpy.testing import assert_equal @pytest.mark.skipif( platform.system() == 'Darwin', reason="Prone to error when run with numpy/f2py/tests on mac os, " "but not when run in isola...
selste/micropython
refs/heads/master
tests/basics/bytes_partition.py
41
try: str.partition except AttributeError: print("SKIP") raise SystemExit print(b"asdf".partition(b'g')) print(b"asdf".partition(b'a')) print(b"asdf".partition(b's')) print(b"asdf".partition(b'f')) print(b"asdf".partition(b'd')) print(b"asdf".partition(b'asd')) print(b"asdf".partition(b'sdf')) print(b"asdf"...
csdms/wmt-metadata
refs/heads/master
wmtmetadata/cmd/__init__.py
12133432
konstruktoid/ansible-upstream
refs/heads/devel
test/units/modules/network/iosxr/__init__.py
12133432
LinDA-tools/LindaWorkbench
refs/heads/master
linda/endpoint_monitor/management/commands/__init__.py
12133432
DeMille/emailhooks
refs/heads/master
django_nonrel/djangotoolbox/sites/__init__.py
12133432
dippatel1994/oppia
refs/heads/develop
core/storage/__init__.py
12133432
olduvaihand/ProjectEuler
refs/heads/master
src/python/problem335.py
1
# -*- coding: utf-8 -*- # ProjectEuler/src/python/problem335.py # # Gathering the beans # =================== # Published on Saturday, 23rd April 2011, 04:00 pm # # Whenever Peter feels bored, he places some bowls, containing one bean each, # in a circle. After this, he takes all the beans out of a certain bowl and # ...
pavels/pootle
refs/heads/master
tests/views/admin.py
1
# -*- coding: utf-8 -*- # # Copyright (C) Pootle contributors. # # This file is a part of the Pootle project. It is distributed under the GPL3 # or later license. See the LICENSE file for a copy of the license and the # AUTHORS file for copyright and authorship information. import pytest from django.core.urlresolvers...
abalkin/tz
refs/heads/master
tzdata-pkg/zic/zic.py
1
import textwrap import sys from datetime import datetime HEADER = """\ from zic.classes import * from datetime import * """ RAW_FILES = [ 'africa', 'antarctica', 'asia', 'australasia', 'europe', 'northamerica', 'southamerica' ] def lines(input): """Remove comments and empty lines""" for raw_line...
ByteInternet/django-oidc-provider
refs/heads/master
oidc_provider/migrations/0011_client_client_type.py
2
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2016-04-04 19:56 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('oidc_provider', '0010_code_is_authentication'), ] operations = [ migrations.Ad...
FirstAidKitten/Roguelike-Sandbox
refs/heads/master
fov.py
1
from tdl.map import quickFOV import session from settings import MAP_WIDTH, MAP_HEIGHT, FOV_ALGO, FOV_LIGHT_WALLS, TORCH_RADIUS def is_visible_tile(x, y): if x >= MAP_WIDTH or x < 0: return False elif y >= MAP_HEIGHT or y < 0: return False elif session.player.current_level.fov_blocked(x...
txomon/pytest
refs/heads/master
src/_pytest/resultlog.py
2
""" log machine-parseable test session result information in a plain text file. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import py def pytest_addoption(parser): group = parser.getgroup("terminal reporting", "resultlog plugin optio...
meduz/scikit-learn
refs/heads/master
sklearn/datasets/tests/test_lfw.py
42
"""This test for the LFW require medium-size data downloading and processing If the data has not been already downloaded by running the examples, the tests won't run (skipped). If the test are run, the first execution will be long (typically a bit more than a couple of minutes) but as the dataset loader is leveraging...
codesparkle/youtube-dl
refs/heads/master
youtube_dl/extractor/huffpost.py
23
from __future__ import unicode_literals import re from .common import InfoExtractor from ..utils import ( determine_ext, parse_duration, unified_strdate, ) class HuffPostIE(InfoExtractor): IE_DESC = 'Huffington Post' _VALID_URL = r'''(?x) https?://(embed\.)?live\.huffingtonpost\.com/ ...
copiesofcopies/youtube-transcription
refs/heads/master
upload-videos.py
1
# Copyright 2013 Aaron Williamson <aaron@copiesofcopies.org> # # 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 applicab...
TangXT/edx-platform
refs/heads/master
common/test/acceptance/pages/lms/course_page.py
55
""" Base class for pages in courseware. """ from bok_choy.page_object import PageObject from . import BASE_URL class CoursePage(PageObject): """ Abstract base class for page objects within a course. """ # Overridden by subclasses to provide the relative path within the course # Paths should not ...
hsnr-gamera/gamera
refs/heads/master
gamera/io.py
1
# Copyright (c) 1999-2007 Gary Strangman; All Rights Reserved. # # 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, m...
EraYaN/CouchPotatoServer
refs/heads/master
libs/subliminal/cache.py
107
# -*- coding: utf-8 -*- # Copyright 2012 Nicolas Wack <wackou@gmail.com> # # This file is part of subliminal. # # subliminal 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 Licen...
vsilent/smarty-bot
refs/heads/master
core/brain/turn/head/left/__init__.py
12133432
shawnwanderson/cmput404-project
refs/heads/master
venv/lib/python2.7/site-packages/django/conf/locale/de_CH/__init__.py
12133432
MatthewShao/mitmproxy
refs/heads/master
test/mitmproxy/proxy/protocol/test_tls.py
12133432
JasonGross/mozjs
refs/heads/master
python/mach/mach/commands/__init__.py
12133432
grodrigues3/test-infra
refs/heads/master
gubernator/github/main_test.py
14
#!/usr/bin/env python # Copyright 2016 The Kubernetes Authors. # # 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 appli...
domenicosolazzo/PythonKlout
refs/heads/master
pythonklout.py
1
__author__ = "Domenico Solazzo" __version__ = "0.1" RESPONSE_CODES = { 200: "OK: Success", 202: "Accepted: The request was accepted and the user was queued for processing", 401: "Not Authorized: either you need to provide authentication credentials, or the credentials provided aren't valid.", ...
goodwinnk/intellij-community
refs/heads/master
python/lib/Lib/site-packages/django/conf/locale/en_GB/formats.py
234
# -*- 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 = 'N j, Y' # 'Oct. 25, 2006' TIME_FORMAT = 'P' ...
anushreejangid/csmpe-main
refs/heads/master
csmpe/core_plugins/csm_install_operations/utils.py
2
import sys import importlib class ServerType: TFTP_SERVER = 'TFTP' FTP_SERVER = 'FTP' SFTP_SERVER = 'SFTP' LOCAL_SERVER = 'LOCAL' def import_module(module, path=None): if path is not None: sys.path.append(path) try: return importlib.import_module(module) except: r...
pamfilos/invenio
refs/heads/master-sql-fixes
modules/oairepository/lib/oai_repository_regression_tests.py
1
# -*- coding: utf-8 -*- ## ## This file is part of Invenio. ## Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2014 CERN. ## ## Invenio 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 t...
leansoft/edx-platform
refs/heads/master
common/djangoapps/util/admin.py
163
"""Admin interface for the util app. """ from ratelimitbackend import admin from util.models import RateLimitConfiguration admin.site.register(RateLimitConfiguration)
tgianos/zerotodocker
refs/heads/master
security_monkey/0.3.4/security_monkey-api/config-deploy.py
6
# Insert any config items here. # This will be fed into Flask/SQLAlchemy inside security_monkey/__init__.py LOG_LEVEL = "DEBUG" LOG_FILE = "/var/log/security_monkey/security_monkey-deploy.log" SQLALCHEMY_DATABASE_URI = 'postgresql://postgres:securitymonkeypassword@postgres:5432/secmonkey' SQLALCHEMY_POOL_SIZE = 50 S...
leiguo3/Vulkan_AS
refs/heads/master
code/data/shaders/compileshaders.py
6
import sys import os import glob import subprocess if len(sys.argv) < 2: sys.exit("Please provide a target directory") if not os.path.exists(sys.argv[1]): sys.exit("%s is not a valid directory" % sys.argv[1]) path = sys.argv[1] shaderfiles = [] for exts in ('*.vert', '*.frag', '*.comp', '*.geom', '*.tesc', '*.tes...
danimo/qt-creator
refs/heads/master
tests/system/suite_debugger/tst_simple_debug/test.py
2
############################################################################# ## ## Copyright (C) 2015 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing ## ## This file is part of Qt Creator. ## ## Commercial License Usage ## Licensees holding valid commercial Qt licenses may use this file in ## accordance wit...
tschneidereit/servo
refs/heads/master
etc/servo_gdb.py
233
# Copyright 2013 The Servo Project Developers. See the COPYRIGHT # file at the top-level directory of this distribution. # # Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or # http://www.apache.org/licenses/LICENSE-2.0> or the MIT license # <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your #...
signalfx/maestro-ng
refs/heads/main
maestro/version.py
1
# Copyright (C) 2013-2014 SignalFuse, Inc. # Copyright (C) 2015-2018 SignalFx, Inc. name = 'maestro-ng' version = '0.8.1'
Cazomino05/Test1
refs/heads/master
vendor/google-breakpad/src/testing/scripts/generator/cpp/gmock_class_test.py
78
#!/usr/bin/env python # # Copyright 2009 Neal Norwitz All Rights Reserved. # Portions Copyright 2009 Google Inc. 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 # # ...
alanjw/GreenOpenERP-Win-X86
refs/heads/7.0
openerp/addons/mrp/product.py
56
# -*- 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...
jtattermusch/grpc
refs/heads/master
examples/python/no_codegen/greeter_server.py
9
# Copyright 2020 The gRPC authors. # # 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...
F-AOSP/platform_external_skia
refs/heads/aosp-5.1
tools/pyutils/gs_utils.py
66
#!/usr/bin/python """ Copyright 2014 Google Inc. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. Utilities for accessing Google Cloud Storage. TODO(epoger): move this into tools/utils for broader use? """ # System-level imports import os import posixpath import sys...
mimischi/django-clock
refs/heads/develop
clock/shifts/tests/test_views.py
1
"""Test shift app views. All messages are tested for the default English strings. """ from django.contrib.messages import get_messages from django.utils import timezone, translation from freezegun import freeze_time from test_plus.test import TestCase from clock.contracts.models import Contract from clock.shifts.mode...
andreasBihlmaier/arni
refs/heads/master
arni_countermeasure/src/arni_countermeasure/constraint_not.py
2
from constraint_item import * class ConstraintNot(ConstraintItem): """An constraints consisting of another constraint negated.""" def __init__(self, constraint): super(ConstraintNot, self).__init__() #: the constraint to be negated #: :type: ConstraintItem self.__constrain...
willthames/ansible
refs/heads/devel
lib/ansible/plugins/shell/__init__.py
26
# (c) 2016 RedHat # # 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 distribu...
naousse/odoo
refs/heads/8.0
addons/subscription/__init__.py
441
# -*- 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...
sadanandb/pmt
refs/heads/master
src/tactic/ui/startup/share_wdg.py
6
########################################################### # # Copyright (c) 2010, Southpaw Technology # All Rights Reserved # # PROPRIETARY INFORMATION. This software is proprietary to # Southpaw Technology, and is not to be reproduced, transmitted, # or disclosed in any way without written permi...
khchine5/lino-welfare
refs/heads/master
lino_welfare/modlib/isip/choicelists.py
1
# -*- coding: UTF-8 -*- # Copyright 2013-2017 Luc Saffre # This file is part of Lino Welfare. # # Lino Welfare is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at y...
cod3monk/kerncraft
refs/heads/master
tests/test_example_files.py
2
#!/usr/bin/env python3 """ Tests for validity of example files. """ import os from glob import glob import unittest from kerncraft import machinemodel, kernel class TestExampleFiles(unittest.TestCase): @staticmethod def _find_file(name): testdir = os.path.dirname(__file__) name = os.path.join...
jcchin/Hyperloop_v2
refs/heads/master
src/hyperloop/Python/pod/pod_mach.py
4
""" Estimates tube diameter, inlet diameter, and compressor power Will optimize some sort of cost function based on pod mach number Many parameters are currently taken from hyperloop alpha, pod sizing analysis """ from __future__ import print_function import numpy as np from openmdao.api import IndepVarComp, Componen...
ettm2012/MissionPlanner
refs/heads/master
Lib/encodings/cp1252.py
93
""" Python Character Mapping Codec cp1252 generated from 'MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1252.TXT' with gencodec.py. """#" import codecs ### Codec APIs class Codec(codecs.Codec): def encode(self,input,errors='strict'): return codecs.charmap_encode(input,errors,encoding_table) def d...
libratbag/piper
refs/heads/master
piper/ledspage.py
1
# SPDX-License-Identifier: GPL-2.0-or-later from gettext import gettext as _ from .leddialog import LedDialog from .mousemap import MouseMap from .optionbutton import OptionButton from .ratbagd import RatbagdLed import gi gi.require_version("Gtk", "3.0") from gi.repository import Gtk # noqa class LedsPage(Gtk.Box...
rodrigob/fuel
refs/heads/master
tests/test_streams.py
21
import numpy from numpy.testing import assert_equal, assert_raises from fuel.datasets import IterableDataset, IndexableDataset from fuel.schemes import SequentialExampleScheme, SequentialScheme from fuel.streams import AbstractDataStream, DataStream class DummyDataStream(AbstractDataStream): def reset(self): ...
ChromiumWebApps/chromium
refs/heads/master
chrome/test/mini_installer/test_installer.py
27
# 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. """This script tests the installer with test cases specified in the config file. For each test case, it checks that the machine states after the execution o...
harkishan81001/py-instrumenting
refs/heads/master
pytracing/trace.py
1
import json from django.conf import settings from py_zipkin.zipkin import zipkin_span from py_zipkin.zipkin import create_attrs_for_span from py_zipkin.zipkin import ZipkinAttrs from py_zipkin.util import generate_random_64bit_string from py_zipkin.util import generate_random_128bit_string from .transporter import t...
SerCeMan/intellij-community
refs/heads/master
python/testData/completion/mro.after.py
83
class C(object): pass C.__mro__
deepaklukose/grpc
refs/heads/master
src/python/grpcio_tests/tests/testing/_application_testing_common.py
39
# Copyright 2017 gRPC authors. # # 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...
bjwbell/servo
refs/heads/master
tests/wpt/web-platform-tests/tools/pywebsocket/src/mod_pywebsocket/mux.py
636
# Copyright 2012, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the f...
hfeeki/transifex
refs/heads/master
transifex/txcommon/tests/testmaker/__init__.py
3
from projects import *
NcLang/vimrc
refs/heads/master
sources_non_forked/YouCompleteMe/third_party/ycmd/third_party/python-future/src/future/backports/html/parser.py
70
"""A parser for HTML and XHTML. Backported for python-future from Python 3.3. """ # This file is based on sgmllib.py, but the API is slightly different. # XXX There should be a way to distinguish between PCDATA (parsed # character data -- the normal case), RCDATA (replaceable character # data -- only char and entity...
ramielrowe/magnum
refs/heads/master
magnum/common/pythonk8sclient/client/models/V1beta3_EndpointSubset.py
15
#!/usr/bin/env python """ Copyright 2015 Reverb Technologies, 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 require...
jaysonsantos/servo
refs/heads/master
tests/wpt/web-platform-tests/old-tests/webdriver/navigation/forward.py
142
import unittest import sys import os sys.path.insert(1, os.path.abspath(os.path.join(__file__, "../.."))) import base_test class ForwardTest(base_test.WebDriverBaseTest): # Get a static page that must be the same upon refresh def test_forward(self): self.driver.get(self.webserver.where_is('navigation...
lyceel/engine
refs/heads/master
testing/legion/jsonrpclib.py
47
# 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. """Module to implement the JSON-RPC protocol. This module uses xmlrpclib as the base and only overrides those portions that implement the XML-RPC protocol. ...
tarzan0820/addons-yelizariev
refs/heads/8.0
thecage_data/__openerp__.py
1
{ 'name' : 'Initialization data', 'version' : '1.0.0', 'author' : 'IT-Projects LLC, Veronika Kotovich', 'license': 'GPL-3', 'website' : 'https://twitter.com/vkotovi4', 'category' : 'Other', 'description': """ """, 'depends' : ['l10n_sg', 'pitch_booking', ...
iulian787/spack
refs/heads/develop
var/spack/repos/builtin/packages/r-colorspace/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 RColorspace(RPackage): """Carries out mapping between assorted color spaces including RGB,...
xfguo/pysnmp
refs/heads/master
pysnmp/smi/mibs/SNMP-TARGET-MIB.py
1
# PySNMP SMI module. Autogenerated from smidump -f python SNMP-TARGET-MIB # by libsmi2pysnmp-0.1.3 at Tue Apr 3 16:05:39 2012, # Python version sys.version_info(major=2, minor=7, micro=2, releaselevel='final', serial=0) from pysnmp.smi import error # Imports ( Integer, ObjectIdentifier, OctetString, ) = mibBuilder.i...
jairomoldes/PyTango
refs/heads/develop
doc/conf.py
4
# ------------------------------------------------------------------------------ # This file is part of PyTango (http://pytango.rtfd.io) # # Copyright 2006-2012 CELLS / ALBA Synchrotron, Bellaterra, Spain # Copyright 2013-2014 European Synchrotron Radiation Facility, Grenoble, France # # Distributed under the terms of ...
nuncjo/odoo
refs/heads/8.0
addons/hr_timesheet/wizard/hr_timesheet_sign_in_out.py
340
# -*- 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...
priyaganti/rockstor-core
refs/heads/master
src/rockstor/smart_manager/views/generic_sprobe.py
2
""" Copyright (c) 2012-2013 RockStor, Inc. <http://rockstor.com> This file is part of RockStor. RockStor 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 la...
rgommers/scipy
refs/heads/master
scipy/signal/tests/test_filter_design.py
7
import warnings from distutils.version import LooseVersion import numpy as np from numpy.testing import (assert_array_almost_equal, assert_array_equal, assert_array_less, assert_equal, assert_, assert_approx_equal, assert_allclose, assert...
watonyweng/horizon
refs/heads/master
horizon/tables/base.py
8
# Copyright 2012 Nebula, 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 agree...
KaranToor/MA450
refs/heads/master
google-cloud-sdk/lib/surface/resource_manager/folders/__init__.py
3
# Copyright 2016 Google Inc. 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 applicable law or ag...
vongazman/libcloud
refs/heads/trunk
docs/examples/compute/ntta/instantiate_driver.py
30
from pprint import pprint from libcloud.compute.types import Provider from libcloud.compute.providers import get_driver cls = get_driver(Provider.NTTA) driver = cls('my username', 'my password', region='ntta-na') pprint(driver.list_nodes())
openego/oeplatform
refs/heads/develop
modelview/migrations/0034_auto_20160426_1106.py
1
# -*- coding: utf-8 -*- # Generated by Django 1.9.4 on 2016-04-26 09:06 from __future__ import unicode_literals import django.contrib.postgres.fields import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("modelview", "0033_auto_20160407...
migonzalvar/alpha
refs/heads/master
webapp/tests/test_functional.py
2
import pytest from . import pages @pytest.mark.selenium def test_main(selenium, live_server, admin_user): selenium.maximize_window() selenium.get(live_server.url) ( pages .Login(selenium) .login('admin', 'password') .logout() ) selenium.quit()
washort/zamboni
refs/heads/master
mkt/features/tests/test_views.py
21
from nose.tools import eq_ from django.core.urlresolvers import reverse from mkt.api.tests.test_oauth import RestOAuth from mkt.constants.features import APP_FEATURES, FeatureProfile class TestConfig(RestOAuth): def setUp(self): super(TestConfig, self).setUp() self.url = reverse('api-features-f...
LibrIT/passhport
refs/heads/master
passhportd/migrations/versions/7e10f8660fa5_.py
3
"""empty message Revision ID: 7e10f8660fa5 Revises: a468530a43fa Create Date: 2018-05-11 21:59:01.031948 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '7e10f8660fa5' down_revision = 'a468530a43fa' branch_labels = None depends_on = None def upgrade(): # ...
DistrictDataLabs/minimum-entropy
refs/heads/master
tagging/models.py
1
# tagging.models # Models for the tagging app # # Author: Benjamin Bengfort <bbengfort@districtdatalabs.com> # Created: Wed Jul 06 15:34:02 2016 -0400 # # Copyright (C) 2016 District Data Labs # For license information, see LICENSE.txt # # ID: models.py [c5d00aa] benjamin@bengfort.com $ """ Models for the tagging a...
neoareslinux/neutron
refs/heads/master
neutron/plugins/oneconvergence/agent/__init__.py
12133432
emetsger/osf.io
refs/heads/develop
api_tests/institutions/__init__.py
12133432
socialwifi/dila
refs/heads/master
tests/__init__.py
12133432
caseyrollins/osf.io
refs/heads/develop
api_tests/guids/__init__.py
12133432
vdmann/cse-360-image-hosting-website
refs/heads/master
lib/python2.7/site-packages/django/conf/locale/bs/__init__.py
12133432
pygeek/django
refs/heads/master
django/conf/locale/pt_BR/__init__.py
12133432
gannetson/django
refs/heads/master
tests/admin_custom_urls/__init__.py
12133432
andrei4ka/fuel-web-redhat
refs/heads/master
nailgun/nailgun/plugins/attr_plugin.py
1
# Copyright 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 or ...
calebfoss/tensorflow
refs/heads/master
tensorflow/contrib/distributions/python/ops/categorical.py
9
# 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...
sergiocorato/partner-contact
refs/heads/10.0
partner_multi_relation/models/res_partner_relation.py
5
# -*- coding: utf-8 -*- # © 2013-2016 Therp BV <http://therp.nl> # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). """Store relations (connections) between partners.""" from openerp import _, api, fields, models from openerp.exceptions import ValidationError class ResPartnerRelation(models.Model): ...
vaultah/L
refs/heads/master
app/tests/test_notifications.py
1
import pytest from app.el import notifications as no from app.el.accounts.records import Record types = ('MentionNotification', 'ReplyPostNotification', 'ReplyImageNotification', 'SharedPostNotification', 'SharedImageNotification', 'FriendNotification', 'FollowerNotification') @pytest.mark.parametri...
pietern/caffe2
refs/heads/master
caffe2/python/operator_test/counter_ops_test.py
4
# Copyright (c) 2016-present, Facebook, 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...