repo_name stringlengths 5 100 | ref stringlengths 12 67 | path stringlengths 4 244 | copies stringlengths 1 8 | content stringlengths 0 1.05M ⌀ |
|---|---|---|---|---|
amyshi188/osf.io | refs/heads/develop | scripts/analytics/logger.py | 17 | # -*- coding: utf-8 -*-
import logging
logger = logging.getLogger(__name__)
|
hashworks/CouchPotatoServer | refs/heads/forkDev | couchpotato/core/media/movie/providers/trailer/__init__.py | 12133432 | |
libracore/erpnext | refs/heads/v12 | erpnext/accounts/report/tds_payable_monthly/__init__.py | 12133432 | |
hackerbot/DjangoDev | refs/heads/master | django/conf/locale/de_CH/__init__.py | 12133432 | |
yencarnacion/jaikuengine | refs/heads/master | .google_appengine/lib/django-1.4/docs/conf.py | 9 | # -*- coding: utf-8 -*-
#
# Django documentation build configuration file, created by
# sphinx-quickstart on Thu Mar 27 09:06:53 2008.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# The contents of this file are pickled, so don't put values in the namespace
# that aren't pickleab... |
jmacmahon/invenio | refs/heads/elasticsearch_logging | modules/miscutil/lib/xapianutils_bibindex_searcher.py | 3 | # -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2011 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 the
# License, or (at your option) any later... |
bbqsrc/txjsonrpc | refs/heads/master | txjsonrpc/meta.py | 1 | display_name = "txJSON-RPC"
library_name = "txjsonrpc"
version = "0.3"
author = "Duncan McGreggor"
author_email = "oubiwann@adytum.us"
license = "BSD, GPL"
url = "http://launchpad.net/%s" % library_name
description = "Code for creatig Twisted JSON-RPC servers and clients."
|
django-nonrel/django-nonrel | refs/heads/develop | django/contrib/gis/db/models/sql/aggregates.py | 309 | from django.db.models.sql.aggregates import *
from django.contrib.gis.db.models.fields import GeometryField
from django.contrib.gis.db.models.sql.conversion import GeomField
class GeoAggregate(Aggregate):
# Default SQL template for spatial aggregates.
sql_template = '%(function)s(%(field)s)'
# Conversion ... |
nacl-webkit/native_client | refs/heads/master | tests/abi_corpus/validator_regression_test.py | 3 | #!/usr/bin/python
# Copyright (c) 2012 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import optparse
import os
import subprocess
import tempfile
import corpus_errors
import corpus_utils
class UnexpectedValidateRe... |
luser/socorro | refs/heads/master | alembic/versions/3a5471a358bf_adding_a_migration_f.py | 2 | """Adding a migration for the exploitability report.
Revision ID: 3a5471a358bf
Revises: 191d0453cc07
Create Date: 2013-10-25 07:07:33.968691
"""
# revision identifiers, used by Alembic.
revision = '3a5471a358bf'
down_revision = '4aacaea3eb48'
from alembic import op
from socorrolib.lib import citexttype, jsontype
fr... |
romanz/python-keepkey | refs/heads/master | tests/test_basic.py | 3 | import unittest
import common
from keepkeylib import messages_pb2 as messages
class TestBasic(common.KeepKeyTest):
def test_features(self):
features = self.client.call(messages.Initialize())
self.assertEqual(features, self.client.features)
def test_ping(self):
ping = self.client.call... |
hujiajie/chromium-crosswalk | refs/heads/master | build/android/devil/utils/mock_calls.py | 7 | # 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.
"""
A test facility to assert call sequences while mocking their behavior.
"""
import unittest
from devil import devil_env
with devil_env.SysPath(devil_en... |
andreif/django | refs/heads/master | tests/context_processors/urls.py | 452 | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^request_attrs/$', views.request_processor),
url(r'^debug/$', views.debug_processor),
]
|
tarikkdiry/Flock | refs/heads/master | flask/lib/python2.7/site-packages/wheel/test/test_tagopt.py | 326 | """
Tests for the bdist_wheel tag options (--python-tag, --universal, and
--plat-name)
"""
import sys
import shutil
import pytest
import py.path
import tempfile
import subprocess
SETUP_PY = """\
from setuptools import setup, Extension
setup(
name="Test",
version="1.0",
author_email="author@example.com",
... |
wolfram74/numerical_methods_iserles_notes | refs/heads/master | venv/lib/python2.7/site-packages/numpy/distutils/intelccompiler.py | 59 | from __future__ import division, absolute_import, print_function
from distutils.unixccompiler import UnixCCompiler
from numpy.distutils.exec_command import find_executable
class IntelCCompiler(UnixCCompiler):
""" A modified Intel compiler compatible with an gcc built Python."""
compiler_type = 'intel'
cc_... |
npawelek/rpc-maas | refs/heads/master | playbooks/files/rax-maas/plugins/heat_api_local_check.py | 1 | #!/usr/bin/env python
# Copyright 2014, Rackspace US, 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 applicabl... |
poljeff/odoo | refs/heads/8.0 | addons/l10n_jp/__openerp__.py | 220 | # -*- coding: utf-8 -*-
# Copyright (C) Rooms For (Hong Kong) Limited T/A OSCG
#
# This program 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... |
sam-tsai/django-old | refs/heads/master | django/contrib/localflavor/at/at_states.py | 537 | # -*- coding: utf-8 -*
from django.utils.translation import ugettext_lazy as _
STATE_CHOICES = (
('BL', _('Burgenland')),
('KA', _('Carinthia')),
('NO', _('Lower Austria')),
('OO', _('Upper Austria')),
('SA', _('Salzburg')),
('ST', _('Styria')),
('TI', _('Tyrol')),
('VO', _('Vorarlberg'... |
miarmak/CloudFerry | refs/heads/master | cloudferrylib/os/actions/__init__.py | 12133432 | |
bspink/django | refs/heads/master | django/contrib/gis/db/backends/__init__.py | 12133432 | |
jbzdak/edx-platform | refs/heads/master | lms/djangoapps/commerce/migrations/__init__.py | 12133432 | |
flochaz/horizon | refs/heads/stable/juno | openstack_dashboard/dashboards/project/data_processing/job_executions/__init__.py | 12133432 | |
joshuahellier/PhDStuff | refs/heads/master | codes/kmc/batchJobs/imageStuff/postImageStuff/corrFnCalc.py | 1 | import sys
import os
import numpy
import math
timeChunkSize = 0.0
resultDir = os.environ.get('RESULTS')
if resultDir == None :
print ("WARNING! $RESULTS not set! Attempt to write results will fail!\n")
fileInfo = sys.argv[1]
resultsPlace = resultDir+"/"+fileInfo+"/"
numChunks = int(sys.argv[2])
dataLimit = int... |
gautamMalu/rootfs_xen_arndale | refs/heads/master | usr/lib/python3.4/encodings/utf_7.py | 744 | """ Python 'utf-7' Codec
Written by Brian Quinlan (brian@sweetapp.com).
"""
import codecs
### Codec APIs
encode = codecs.utf_7_encode
def decode(input, errors='strict'):
return codecs.utf_7_decode(input, errors, True)
class IncrementalEncoder(codecs.IncrementalEncoder):
def encode(self, input, final=False)... |
quantumlib/Stim | refs/heads/main | src/dem/detector_error_model_repeat_block_pybind_test.py | 1 | # Copyright 2021 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 agreed to in writing, ... |
ShipleyCollege/ViPteam1 | refs/heads/master | ProcessFlowcharts/FlowChartParser.py | 1 | # http://www.diveintopython3.net/xml.html
FILENAME = "TestData/Test Flowchart1.vdx"
import xml.etree.ElementTree as etree
class Node:
def __init__(self, nodeId, nodeName):
self.nodeId = nodeId
self.nodeName = nodeName
self.addType(nodeName)
self.nodeText = "?"
self.fromLinks = []
self.toLinks = []
... |
djabber/Dashboard | refs/heads/master | bottle/dash/lib/python2.7/site-packages/setuptools/tests/script-with-bom.py | 537 | # -*- coding: utf-8 -*-
result = 'passed'
|
fabianfreyer/ansible | refs/heads/devel | test/integration/cleanup_rax.py | 71 | #!/usr/bin/env python
import os
import re
import yaml
import argparse
try:
import pyrax
HAS_PYRAX = True
except ImportError:
HAS_PYRAX = False
def rax_list_iterator(svc, *args, **kwargs):
method = kwargs.pop('method', 'list')
items = getattr(svc, method)(*args, **kwargs)
while items:
... |
destijl/forensicartifacts | refs/heads/master | frontend/thirdparty/networkx-1.9/networkx/utils/random_sequence.py | 11 | """
Utilities for generating random numbers, random sequences, and
random selections.
"""
# Copyright (C) 2004-2011 by
# Aric Hagberg <hagberg@lanl.gov>
# Dan Schult <dschult@colgate.edu>
# Pieter Swart <swart@lanl.gov>
# All rights reserved.
# BSD license.
import random
import sys
import networkx a... |
nmercier/linux-cross-gcc | refs/heads/master | linux/lib/python2.7/dist-packages/Crypto/Random/Fortuna/FortunaAccumulator.py | 105 | # -*- coding: ascii -*-
#
# FortunaAccumulator.py : Fortuna's internal accumulator
#
# Written in 2008 by Dwayne C. Litzenberger <dlitz@dlitz.net>
#
# ===================================================================
# The contents of this file are dedicated to the public domain. To
# the extent that dedication to ... |
tedye/leetcode | refs/heads/master | tools/leetcode.122.Best Time to Buy and Sell Stock II/leetcode.122.Best Time to Buy and Sell Stock II.submission3.py | 1 | class Solution:
# @param prices, a list of integer
# @return an integer
def maxProfit(self, prices):
if len(prices) < 2 : return 0
res = 0
for i in range(1,len(prices)):
res += max(prices[i] - prices[i-1],0)
return res
|
boundlessgeo/qgis-geoserver-plugin | refs/heads/master | geoserverexplorer/gui/dialogs/groupdialog.py | 1 | # -*- coding: utf-8 -*-
#
# (c) 2016 Boundless, http://boundlessgeo.com
# This code is licensed under the GPL 2.0 license.
#
from builtins import zip
from builtins import str
from builtins import range
from qgis.PyQt.QtGui import *
from qgis.PyQt.QtCore import *
from qgis.PyQt.QtWidgets import *
from geoserver.layergro... |
sunze/py_flask | refs/heads/master | venv/lib/python3.4/site-packages/celery/tests/fixups/__init__.py | 12133432 | |
wangscript/qb-archetype | refs/heads/master | quickbundle-rmwebdemo/WebContent/WEB-INF/jython/qb/tools/support/log/__init__.py | 12133432 | |
Tkd-Alex/Telegram-DMI-Bot | refs/heads/master | module/__init__.py | 12133432 | |
rryan/django-cms | refs/heads/develop | cms/test_utils/project/pluginapp/plugins/one_thing/migrations/__init__.py | 12133432 | |
Changaco/oh-mainline | refs/heads/master | vendor/packages/Django/django/contrib/localflavor/py/__init__.py | 12133432 | |
nebstrebor/django-shortuuidfield | refs/heads/master | shortuuidfield/models.py | 12133432 | |
anhstudios/swganh | refs/heads/develop | data/scripts/templates/object/mobile/shared_dressed_brigade_gunner_bith_female_01.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 = Creature()
result.template = "object/mobile/shared_dressed_brigade_gunner_bith_female_01.iff"
result.attribute_te... |
michalliu/chromium-depot_tools | refs/heads/master | third_party/logilab/common/visitor.py | 44 | # copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
#
# This file is part of logilab-common.
#
# logilab-common is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as publ... |
dvliman/jaikuengine | refs/heads/master | .google_appengine/lib/django-1.3/tests/modeltests/m2m_signals/tests.py | 89 | """
Testing signals emitted on changing m2m relations.
"""
from django.db import models
from django.test import TestCase
from models import Part, Car, SportsCar, Person
class ManyToManySignalsTest(TestCase):
def m2m_changed_signal_receiver(self, signal, sender, **kwargs):
message = {
'instan... |
shams169/pythonProject | refs/heads/master | ContactsDir/env/lib/python3.6/site-packages/flask/exthook.py | 128 | # -*- coding: utf-8 -*-
"""
flask.exthook
~~~~~~~~~~~~~
Redirect imports for extensions. This module basically makes it possible
for us to transition from flaskext.foo to flask_foo without having to
force all extensions to upgrade at the same time.
When a user does ``from flask.ext.foo import... |
levvvv/autokey | refs/heads/master | src/lib/__init__.py | 12133432 | |
hkarl/svpb | refs/heads/master | boote/migrations/__init__.py | 12133432 | |
theanalyst/cinder | refs/heads/master | cinder/openstack/common/db/__init__.py | 12133432 | |
groschovskiy/lerigos_music | refs/heads/master | Server/API/lib/Crypto/Random/_UserFriendlyRNG.py | 111 | # -*- coding: utf-8 -*-
#
# Random/_UserFriendlyRNG.py : A user-friendly random number generator
#
# Written in 2008 by Dwayne C. Litzenberger <dlitz@dlitz.net>
#
# ===================================================================
# The contents of this file are dedicated to the public domain. To
# the extent that ... |
maohongyuan/kbengine | refs/heads/master | kbe/res/scripts/common/Lib/test/test_dynamic.py | 173 | # Test the most dynamic corner cases of Python's runtime semantics.
import builtins
import contextlib
import unittest
from test.support import run_unittest, swap_item, swap_attr
class RebindBuiltinsTests(unittest.TestCase):
"""Test all the ways that we can change/shadow globals/builtins."""
def configure_... |
felipenaselva/felipe.repository | refs/heads/master | plugin.video.uwc/resources/lib/sites/__init__.py | 43 | import os
import os.path
files = os.listdir(os.path.dirname(__file__))
__all__ = [filename[:-3] for filename in files if not filename.startswith('__') and filename.endswith('.py')]
|
leezu/mxnet | refs/heads/master | example/gluon/style_transfer/data.py | 48 | # 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... |
teonlamont/pyeparse | refs/heads/master | pyeparse/utils.py | 2 | # Authors: Denis Engemann <denis.engemann@gmail.com>
#
# License: BSD (3-clause)
import numpy as np
from os import path as op
import glob
import tempfile
from shutil import rmtree
import atexit
def create_chunks(sequence, size):
"""Generate chunks from a sequence.
Note. copied from MNE-Python
Parameter... |
pandeesh/pep8 | refs/heads/master | testsuite/E40.py | 44 | #: E401
import os, sys
#: Okay
import os
import sys
from subprocess import Popen, PIPE
from myclass import MyClass
from foo.bar.yourclass import YourClass
import myclass
import foo.bar.yourclass
#: E402
__all__ = ['abc']
import foo
#: Okay
try:
import foo
except:
pass
else:
print('imported foo')
finally... |
apicht-spireon/mongo-connector | refs/heads/master | mongo-connector/tests/doc_managers/test_solr_doc_manager.py | 13 | # Copyright 2012 10gen, 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 writing, soft... |
Tyapkin/hdmodel | refs/heads/master | myprj/settings.py | 1 | # -*- coding: utf-8 -*-
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.6/howto/deployment/checklist/
# SECURITY WARNING: ke... |
mortbauer/openfoam-extend-Breeder-other-scripting-PyFoam | refs/heads/master | PyFoam/ThirdParty/IPy.py | 3 | """ IPy - class and tools for handling of IPv4 and IPv6 Addresses and Networks.
Copyright (c) 2006, INL
Copyright (c) 2001-2005, Maximillian Dornseif
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
... |
VanirAOSP/external_chromium_org | refs/heads/kk44 | chrome/test/chromedriver/archive.py | 23 | # Copyright (c) 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.
"""Downloads items from the Chromium continuous archive."""
import os
import platform
import urllib
import util
CHROME_30_REVISION = '217281'
CHROME_3... |
transifex/openformats | refs/heads/devel | openformats/formats/yaml/yaml_i18n.py | 1 | from __future__ import absolute_import
import json
import re
import six
from openformats.exceptions import ParseError
from openformats.formats.yaml import YamlHandler
from openformats.formats.yaml.utils import yaml
class I18nYamlHandler(YamlHandler):
""" Internationalization specific YAML handler
Parses a... |
magellancloud/poncho | refs/heads/master | poncho/workflows.py | 1 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
"""
Poncho service workflow definitions
"""
from oslo.config import cfg
from poncho.nova.manage import nova_manage
from poncho.nova.client import Client
from datetime import datetime
import importlib
import inspect
import sys
DEFAULT_WORKFLOWS = [
'poncho.workflows.De... |
dvliman/jaikuengine | refs/heads/master | .google_appengine/lib/google-api-python-client/apiclient/errors.py | 31 | #!/usr/bin/python2.4
#
# Copyright (C) 2010 Google 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 l... |
titeuf87/evennia | refs/heads/master | evennia/scripts/tests.py | 6 | # this is an optimized version only available in later Django versions
from unittest import TestCase
from evennia.scripts.models import ScriptDB, ObjectDoesNotExist
from evennia.utils.create import create_script
from evennia.scripts.scripts import DoNothing
class TestScriptDB(TestCase):
"Check the singleton/stati... |
doduytrung/odoo-8.0 | refs/heads/master | addons/website_crm/controllers/__init__.py | 3646 | import main
# vim:expandtab:tabstop=4:softtabstop=4:shiftwidth=4:
|
twalthr/flink | refs/heads/master | flink-python/pyflink/fn_execution/operations.py | 4 | ################################################################################
# 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... |
alfkjartan/nvgimu | refs/heads/master | nvg/maths/vector_splines.py | 1 | """
Spline fitting of vector data.
"""
# Copyright (C) 2009-2011 University of Edinburgh
#
# This file is part of IMUSim.
#
# IMUSim is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the Lice... |
jasonbot/django | refs/heads/master | tests/test_runner/models.py | 506 | from django.db import models
class Person(models.Model):
first_name = models.CharField(max_length=20)
last_name = models.CharField(max_length=20)
|
jbowes/ansible-modules-extras | refs/heads/devel | packaging/os/pkg5_publisher.py | 78 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright 2014 Peter Oliver <ansible@mavit.org.uk>
#
# 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 o... |
skuusela/AFT | refs/heads/master | testing_harness/devices/pcdevice.py | 1 | # coding=utf-8
# Copyright (c) 2013-2016 Intel, Inc.
# Author Igor Stoppa <igor.stoppa@intel.com>
# Author Topi Kuutela <topi.kuutela@intel.com>
# Author Erkka Kääriä <erkka.kaaria@intel.com>
# Author Simo Kuusela <simo.kuusela@intel.com>
#
# This program is free software; you can redistribute it and/or modify it
# und... |
lociii/googleads-python-lib | refs/heads/master | examples/adspygoogle/dfp/v201211/inventory_service/get_mobile_ad_unit_sizes.py | 4 | #!/usr/bin/python
#
# Copyright 2012 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 b... |
andyneff/IPython-notebook-extensions | refs/heads/master | extensions/pre_pymarkdown.py | 8 | # -*- coding: utf-8 -*-
"""This preprocessor replaces Python code in markdowncell with the result
stored in cell metadata
"""
from nbconvert.preprocessors import *
import re
class PyMarkdownPreprocessor(Preprocessor):
def replace_variables(self, source, variables):
"""
Replace {{variablename... |
s3u/capirca | refs/heads/master | lib/policy.py | 6 | #!/usr/bin/python
#
# Copyright 2011 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... |
cloudbau/keystone | refs/heads/master | keystone/contrib/endpoint_filter/backends/__init__.py | 12133432 | |
gtko/CouchPotatoServer | refs/heads/develop | couchpotato/core/media/movie/providers/trailer/__init__.py | 12133432 | |
timstaley/voeventdb | refs/heads/master | voeventdb/server/tests/test_fixture_creation.py | 1 | from __future__ import absolute_import
from unittest import TestCase
from datetime import datetime, timedelta
from voeventdb.server.tests.fixtures import fake, packetgen
class TestBasicRoutines(TestCase):
def setUp(self):
self.start = datetime(2015, 1, 1)
self.interval = timedelta(minutes=15)
... |
Juniper/tempest | refs/heads/master | tempest/tests/lib/services/identity/v3/test_role_assignments_client.py | 5 | # Copyright 2016 Red Hat, 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 writing, ... |
googlearchive/big-rig | refs/heads/master | app/src/thirdparty/telemetry/internal/browser/possible_browser.py | 24 | # Copyright 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.
from telemetry.internal.app import possible_app
class PossibleBrowser(possible_app.PossibleApp):
"""A browser that can be controlled.
Call Create() to... |
vveliev/selenium | refs/heads/master | py/test/selenium/webdriver/common/visibility_tests.py | 63 | # Licensed to the Software Freedom Conservancy (SFC) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The SFC licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... |
andela-ifageyinbo/django | refs/heads/master | django/contrib/gis/db/backends/base/models.py | 434 | import re
from django.contrib.gis import gdal
from django.utils import six
from django.utils.encoding import python_2_unicode_compatible
@python_2_unicode_compatible
class SpatialRefSysMixin(object):
"""
The SpatialRefSysMixin is a class used by the database-dependent
SpatialRefSys objects to reduce redu... |
ThiagoGarciaAlves/three.js | refs/heads/master | utils/converters/ctm/join_ctm.py | 399 | """Join multiple binary files into single file and generate JSON snippet with offsets
-------------------------------------
How to use
-------------------------------------
python join_ctm.py -i "part_*.ctm" -o joined.ctm [-j offsets.js]
Will read multiple files following wildcard pattern (ordered lexicographically)... |
sabi0/intellij-community | refs/heads/master | python/testData/refactoring/extractsuperclass/moveAndMakeAbstractImportExistsPy3/dest_module.after.py | 80 | from abc import ABCMeta
from abc import abstractmethod
ABCMeta()
abstractmethod()
class NewParent(metaclass=ABCMeta):
@classmethod
@abstractmethod
def foo_method(cls):
pass |
MiltosD/CEFELRC | refs/heads/master | lib/python2.7/site-packages/unidecode/x0fe.py | 252 | data = (
'[?]', # 0x00
'[?]', # 0x01
'[?]', # 0x02
'[?]', # 0x03
'[?]', # 0x04
'[?]', # 0x05
'[?]', # 0x06
'[?]', # 0x07
'[?]', # 0x08
'[?]', # 0x09
'[?]', # 0x0a
'[?]', # 0x0b
'[?]', # 0x0c
'[?]', # 0x0d
'[?]', # 0x0e
'[?]', # 0x0f
'[?]', # 0x10
'[?]', # 0x11
'[?]'... |
aaronzirbes/ansible | refs/heads/devel | lib/ansible/executor/task_queue_manager.py | 46 | # (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... |
hynekcer/django | refs/heads/master | tests/admin_autodiscover/__init__.py | 12133432 | |
fabiocostapro/fiberappz | refs/heads/master | mainapp/models/__init__.py | 12133432 | |
acsone/mozaik | refs/heads/8.0 | mozaik_membership/mandate.py | 2 | # -*- coding: utf-8 -*-
##############################################################################
#
# This file is part of mozaik_membership, an Odoo module.
#
# Copyright (c) 2015 ACSONE SA/NV (<http://acsone.eu>)
#
# mozaik_membership is free software:
# you can redistribute it and/or
# modif... |
inada-s/autocut | refs/heads/master | autocut_zdx2.py | 1 | # coding: UTF-8
import autocut
import os, sys
if __name__ == '__main__':
script_path = os.path.dirname(sys.argv[0])
preset_path = os.path.join(script_path, "zdx2")
movie_file = os.path.abspath(sys.argv[1])
os.chdir(script_path)
autocut.main(preset_path, movie_file)
|
mesocentrefc/easybuild-framework | refs/heads/master | test/framework/sandbox/easybuild/tools/module_naming_scheme/broken_module_naming_scheme.py | 12 | ##
# Copyright 2014 Ghent University
#
# This file is part of EasyBuild,
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
# with support of Ghent University (http://ugent.be/hpc),
# the Flemish Supercomputer Centre (VSC) (https://vscentrum.be/nl/en),
# the Hercules foundation (http://w... |
mattbierner/post-mortem | refs/heads/master | .vscode/.ropeproject/config.py | 60 | # The default ``config.py``
# flake8: noqa
def set_prefs(prefs):
"""This function is called before opening the project"""
# Specify which files and folders to ignore in the project.
# Changes to ignored resources are not added to the history and
# VCSs. Also they are not returned in `Project.get_fil... |
837468220/python-for-android | refs/heads/master | python-modules/twisted/twisted/enterprise/util.py | 61 | # -*- test-case-name: twisted.test.test_enterprise -*-
# Copyright (c) 2001-2008 Twisted Matrix Laboratories.
# See LICENSE for details.
import warnings, types
from twisted.python.versions import Version, getVersionString
from twisted.python.deprecate import deprecated
from twisted.enterprise.adbapi import _safe
# ... |
thinkcontext/campaigns | refs/heads/master | scrapers/greenpeace_electronics.py | 1 | # Copyright 2014 SpendRight, 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... |
lambdalisue/maidenhair | refs/heads/master | src/maidenhair/loaders/plain.py | 1 | """
A plain text loader
"""
__author__ = 'Alisue (lambdalisue@hashnote.net)'
from maidenhair.loaders.base import BaseLoader
class PlainLoader(BaseLoader):
"""
A simple loader class
"""
pass
|
openstack/cinder | refs/heads/master | cinder/api/contrib/volume_tenant_attribute.py | 5 | # Copyright 2012 OpenStack Foundation
#
# 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 a... |
ajoaoff/django | refs/heads/master | django/conf/project_template/project_name/__init__.py | 12133432 | |
ubgarbage/gae-blog | refs/heads/master | django/conf/locale/zh_TW/__init__.py | 12133432 | |
ojousima/asylum | refs/heads/master | project/ndaparser/migrations/__init__.py | 12133432 | |
barmalei/primus | refs/heads/master | lib/primus/test/testfile.py | 1 | #!/usr/bin/env python
#
#
# Copyright 2009 Andrei <vish@gravitysoft.org>
#
# 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, ... |
bdrung/audacity | refs/heads/master | lib-src/lv2/lv2/waflib/Scripting.py | 177 | #! /usr/bin/env python
# encoding: utf-8
# WARNING! Do not edit! http://waf.googlecode.com/git/docs/wafbook/single.html#_obtaining_the_waf_file
import os,shlex,shutil,traceback,errno,sys,stat
from waflib import Utils,Configure,Logs,Options,ConfigSet,Context,Errors,Build,Node
build_dir_override=None
no_climb_commands=[... |
randynobx/ansible | refs/heads/devel | lib/ansible/modules/system/svc.py | 66 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# (c) 2015, Brian Coca <bcoca@ansible.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 Licen... |
lbjay/cds-invenio | refs/heads/master | modules/miscutil/lib/errorlib_tests.py | 1 | # -*- coding: utf-8 -*-
##
## This file is part of CDS Invenio.
## Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 CERN.
##
## CDS 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 versio... |
xuru/pyvisdk | refs/heads/master | pyvisdk/do/virtual_machine_floppy_info.py | 1 |
import logging
from pyvisdk.exceptions import InvalidArgumentError
########################################
# Automatically generated, do not edit.
########################################
log = logging.getLogger(__name__)
def VirtualMachineFloppyInfo(vim, *args, **kwargs):
'''FloppyInfo class contains informat... |
xq262144/hue | refs/heads/master | desktop/core/ext-py/thrift-0.9.1/src/server/THttpServer.py | 164 | #
# 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... |
dana-i2cat/felix | refs/heads/master | core/lib/am/__init__.py | 12133432 | |
portableant/open-context-py | refs/heads/master | opencontext_py/apps/imports/fields/tests.py | 12133432 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.