repo_name
stringlengths
5
100
ref
stringlengths
12
67
path
stringlengths
4
244
copies
stringlengths
1
8
content
stringlengths
0
1.05M
ganeshgore/myremolab
refs/heads/master
server/launch/sample_balanced2/debugging.py
5
SERVERS = [ ('127.0.0.1','31337'), ('127.0.0.1','31338'), ('127.0.0.1','31339'), ] PORTS = { 'soap' : (10123,20123,30123), 'json' : (18345,28345,38345), 'xmlrpc' : (19345,29345,39345), 'soap_login' : (10623,20623,30623...
kdwink/intellij-community
refs/heads/master
python/testData/findUsages/GlobalUsages.py
83
<caret>search_variable = 1 def function(): global search_variable search_variable = 2 print(search_variable)
MrHarcombe/python-gpiozero
refs/heads/master
docs/examples/led_board_2.py
3
from gpiozero import LEDBoard from signal import pause leds = LEDBoard(5, 6, 13, 19, 26, pwm=True) leds.value = (0.2, 0.4, 0.6, 0.8, 1.0) pause()
peter-jang/ansible-modules-core
refs/heads/devel
cloud/amazon/_ec2_ami_search.py
35
#!/usr/bin/python # # (c) 2013, Nimbis Services # # 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 ver...
exobrain-wisekb/wisekb-management-platform
refs/heads/master
wisekb-uima-ducc/cassandra-server/pylib/cqlshlib/test/cassconnect.py
42
# 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...
BBVA/chaos-monkey-engine
refs/heads/master
test/attacks/required_schema.py
1
from chaosmonkey.attacks.attack import Attack class RequiredSchema(Attack): ref = "required_schema:RequiredSchema" schema = { "type": "object", "properties": { "ref": {"type": "string"}, "args": { "type": "object", "properties": { ...
jwlawson/tensorflow
refs/heads/master
tensorflow/python/ops/session_ops.py
49
# 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...
nikitph/bluddy-app-engine
refs/heads/master
lib/werkzeug/contrib/testtools.py
319
# -*- coding: utf-8 -*- """ werkzeug.contrib.testtools ~~~~~~~~~~~~~~~~~~~~~~~~~~ This module implements extended wrappers for simplified testing. `TestResponse` A response wrapper which adds various cached attributes for simplified assertions on various content types. :copyright:...
paplorinc/intellij-community
refs/heads/master
python/testData/inspections/PyUnresolvedReferencesInspection/incorrectFileLevelMetaclass.py
79
class __metaclass__(object): pass class C(object): def foo(self): pass c = C() c.foo()
carnotweat/cpupimp
refs/heads/master
libs/git/files.py
122
# Copyright (c) 2009, Rotem Yaari <vmalloc@gmail.com> # 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 li...
niranjan94/open-event-orga-server
refs/heads/master
app/api/exports.py
5
import os from flask import send_file, make_response, jsonify, url_for, current_app from flask.ext.restplus import Resource, Namespace, marshal from app.helpers.data import record_activity from helpers import custom_fields as fields from helpers.export_helpers import export_event_json, create_export_job, send_export_...
open-motivation/motivation-ide
refs/heads/master
ninja_ide/dependencies/pep8mod.py
2
#!/usr/bin/env python # pep8.py - Check Python source code formatting, according to PEP 8 # Copyright (C) 2006 Johann C. Rocholl <johann@rocholl.net> # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation files # (the "Software"), to deal in the ...
WebSpider/headphones
refs/heads/master
lib/bs4/element.py
35
from pdb import set_trace import collections import re import sys import warnings from bs4.dammit import EntitySubstitution DEFAULT_OUTPUT_ENCODING = "utf-8" PY3K = (sys.version_info[0] > 2) whitespace_re = re.compile("\s+") def _alias(attr): """Alias one attribute name to another for backward compatibility""" ...
tequa/ammisoft
refs/heads/master
ammimain/WinPython-64bit-2.7.13.1Zero/python-2.7.13.amd64/Lib/site-packages/matplotlib/backend_bases.py
4
""" Abstract base classes define the primitives that renderers and graphics contexts must implement to serve as a matplotlib backend :class:`RendererBase` An abstract base class to handle drawing/rendering operations. :class:`FigureCanvasBase` The abstraction layer that separates the :class:`matplotlib.fi...
ctuning/ck
refs/heads/master
incubator/connectme/testing/connectme/cli.py
1
import os ########################################################################### def run(argv=None): """ Run CM from command line. Args: argv (str | list): CM input Returns: Dictionary: return (int): return code == 0 if no error ...
barma1309/Kalista
refs/heads/master
.virtualenvs/Kalista/lib/python3.4/site-packages/django/conf/locale/fr/__init__.py
12133432
NikolaYolov/invenio_backup
refs/heads/master
modules/websubmit/lib/functions/__init__.py
12133432
drukhil/frappe
refs/heads/master
frappe/email/doctype/newsletter/__init__.py
12133432
kmoocdev/edx-platform
refs/heads/kmooc.rc0
common/djangoapps/track/__init__.py
12133432
shikhardb/scikit-learn
refs/heads/master
sklearn/semi_supervised/tests/__init__.py
12133432
greggian/TapdIn
refs/heads/master
django/utils/stopwords.py
13
# Performance note: I benchmarked this code using a set instead of # a list for the stopwords and was surprised to find that the list # performed /better/ than the set - maybe because it's only a small # list. stopwords = ''' i a an are as at be by for from how in is it of on or that the this ...
verdurin/bcbio-nextgen
refs/heads/master
bcbio/structural/manta.py
3
"""Structural variant detection with the Manta caller from Illumina. https://github.com/Illumina/manta """ import os import sys from bcbio import utils from bcbio.distributed.transaction import file_transaction from bcbio.pipeline import datadict as dd from bcbio.variation import vcfutils from bcbio.provenance import...
talbrecht/pism_pik06
refs/heads/stable0.6
doc/site-packages/pybtex/kpathsea.py
5
# Copyright (c) 2007, 2008, 2009, 2010, 2011, 2012 Andrey Golovizin # # 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, c...
sjsucohort6/openstack
refs/heads/master
python/venv/lib/python2.7/site-packages/cinderclient/v2/limits.py
8
# Copyright 2013 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 agreed to in w...
wh6b/study-neo4j-vs-orientdb
refs/heads/master
src/performances/workload_04/cherche_en_masse.py
1
#!/usr/bin/env python # -*- coding: utf-8 -*- import datetime import os from py2neo import Graph import pyorient import random import re import sys import threading import time from common import affiche_temps class Entite(object): '''Simule une response neo4J sous la forme { 'id':'identifiant de l objet', 'node...
maxamillion/ansible-modules-core
refs/heads/devel
cloud/rackspace/rax_clb_nodes.py
51
#!/usr/bin/python # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible is distributed...
spisneha25/django
refs/heads/master
tests/middleware/extra_urls.py
487
from django.conf.urls import url from . import views urlpatterns = [ url(r'^customurlconf/noslash$', views.empty_view), url(r'^customurlconf/slash/$', views.empty_view), url(r'^customurlconf/needsquoting#/$', views.empty_view), ]
benjohnston24/partyCoin-interface
refs/heads/master
funds_tracker/__init__.py
12133432
morpheby/levelup-by
refs/heads/master
lms/djangoapps/lms_migration/__init__.py
12133432
wasit7/tutorials
refs/heads/master
django/django_generic_view/cp/myapp/__init__.py
12133432
opelr/boardgames
refs/heads/master
boardgames/__init__.py
12133432
clincher/phuketstash
refs/heads/master
users/__init__.py
12133432
alesdotio/Spirit
refs/heads/master
spirit/core/templatetags/__init__.py
12133432
roth1002/thefuck
refs/heads/master
thefuck/specific/__init__.py
12133432
macressler/mplayer2
refs/heads/master
TOOLS/vdpau_functions.py
6
#!/usr/bin/env python3 # Generate vdpau_template.c functions = """ # get_error_string should be first, because the function lookup loop should # have it available to print errors for other functions get_error_string bitmap_surface_create bitmap_surface_destroy bitmap_surface_put_bits_native bitmap_surface_query_capa...
wanghaven/nupic
refs/heads/master
src/nupic/datafiles/extra/gym/raw/makeDataset.py
27
# ---------------------------------------------------------------------- # Numenta Platform for Intelligent Computing (NuPIC) # Copyright (C) 2010-2015, Numenta, Inc. Unless you have an agreement # with Numenta, Inc., for a separate license for this software code, the # following terms and conditions apply: # # This p...
rgmining/ria
refs/heads/master
tests/test_suite.py
1
# # test_suite.py # # Copyright (c) 2016-2017 Junpei Kawamoto # # This file is part of rgmining-ria. # # rgmining-ria 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 y...
ChristineLaMuse/mozillians
refs/heads/master
vendor-local/lib/python/unidecode/x080.py
252
data = ( 'Yao ', # 0x00 'Lao ', # 0x01 '[?] ', # 0x02 'Kao ', # 0x03 'Mao ', # 0x04 'Zhe ', # 0x05 'Qi ', # 0x06 'Gou ', # 0x07 'Gou ', # 0x08 'Gou ', # 0x09 'Die ', # 0x0a 'Die ', # 0x0b 'Er ', # 0x0c 'Shua ', # 0x0d 'Ruan ', # 0x0e 'Er ', # 0x0f 'Nai ', # 0x10 'Zhuan...
frank10704/DF_GCS_W
refs/heads/master
MissionPlanner-master/packages/IronPython.StdLib.2.7.5-beta1/content/Lib/wsgiref/__init__.py
71
"""wsgiref -- a WSGI (PEP 333) Reference Library Current Contents: * util -- Miscellaneous useful functions and wrappers * headers -- Manage response headers * handlers -- base classes for server/gateway implementations * simple_server -- a simple BaseHTTPServer that supports WSGI * validate -- valida...
RafaelRMachado/qtwebkit
refs/heads/dev
Tools/Scripts/webkitpy/common/net/buildbot/buildbot_unittest.py
124
# Copyright (C) 2009 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...
coloringchaos/three.js
refs/heads/master
utils/exporters/blender/addons/io_three/exporter/material.py
124
from .. import constants, logger from . import base_classes, utilities, api class Material(base_classes.BaseNode): """Class that wraps material nodes""" def __init__(self, node, parent): logger.debug("Material().__init__(%s)", node) base_classes.BaseNode.__init__(self, node, parent, ...
yewang15215/django
refs/heads/master
django/http/multipartparser.py
4
""" Multi-part parsing for file uploads. Exposes one class, ``MultiPartParser``, which feeds chunks of uploaded data to file upload handlers for processing. """ from __future__ import unicode_literals import base64 import binascii import cgi import sys from django.conf import settings from django.core.exceptions imp...
leeseuljeong/leeseulstack_neutron
refs/heads/master
neutron/plugins/ml2/drivers/arista/__init__.py
12133432
mozilla/ChangeDetector
refs/heads/dev
analysis/__init__.py
12133432
sjh/python
refs/heads/master
whoscall_fast_query.py
1
#!/usr/bin/env python3 # _*_ coding: utf-8 _*_ from __future__ import print_function import requests import sys from bs4 import BeautifulSoup API_URL = "https://number.whoscall.com/zh-TW/tw/" def query_whoscall(phone_number): """ Query whoscall database by HTTP GET https://whoscall.com/zh-TW/ """ respons...
afandria/sky_engine
refs/heads/master
sky/engine/bindings/scripts/idl_types.py
14
# 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. """IDL type handling. Classes: IdlTypeBase IdlType IdlUnionType IdlArrayOrSequenceType IdlArrayType IdlSequenceType IdlNullableType """ from collect...
weolar/miniblink49
refs/heads/master
third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/prettydiff.py
186
# Copyright (c) 2010 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 ...
metacloud/percona-xtrabackup
refs/heads/master
percona-server-5.1-xtrabackup/python-for-subunit2junitxml/testtools/tests/test_testsuite.py
42
# Copyright (c) 2009 testtools developers. See LICENSE for details. """Test ConcurrentTestSuite and related things.""" __metaclass__ = type import datetime import unittest from testtools import ( ConcurrentTestSuite, iterate_tests, TestCase, ) from testtools.matchers import ( Equals, ) from ...
tylertian/Openstack
refs/heads/master
openstack F/glance/glance/tests/unit/test_context_middleware.py
1
import webob from glance.api.middleware import context import glance.context from glance.tests.unit import base class TestContextMiddleware(base.IsolatedUnitTest): def _build_request(self, roles=None, identity_status='Confirmed', service_catalog=None): req = webob.Request.blank('/') ...
cyanut/django-haystack
refs/heads/master
test_haystack/settings.py
13
# encoding: utf-8 from __future__ import absolute_import, division, print_function, unicode_literals import os from tempfile import mkdtemp SECRET_KEY = "Please do not spew DeprecationWarnings" # Haystack settings for running tests. DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', ...
jk1/intellij-community
refs/heads/master
python/testData/completion/superClassAttributesNoCompletionInFunc.py
166
class Foo: attribute = 1 class Boo(Foo): def f(self): attr<caret>
chop-dbhi/serrano
refs/heads/master
serrano/resources/templates.py
1
Category = { 'fields': [':pk', 'name', 'order', 'parent_id'], 'allow_missing': True, } BriefField = { 'fields': [':pk', 'name', 'description'], 'aliases': { 'name': '__unicode__', }, 'allow_missing': True, } Field = { 'fields': [ ':pk', 'name', 'plural_name', 'description',...
Inter-Actief/alexia
refs/heads/master
alexia/apps/scheduling/migrations/0007_event_is_risky.py
2
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('scheduling', '0006_convert_availability_nature'), ] operations = [ migrations.AddField( model_name='event', ...
jungle90/Openstack-Swift-I-O-throttler
refs/heads/master
build/lib.linux-x86_64-2.7/swift/cli/__init__.py
12133432
Anonymous-X6/django
refs/heads/master
tests/admin_scripts/simple_app/management/commands/__init__.py
12133432
pristinesource/MissionPlanner
refs/heads/master
ExtLibs/Mavlink/pymavlink/generator/lib/__init__.py
12133432
lowiki-org/localwiki-backend-server
refs/heads/master
localwiki/users/templatetags/__init__.py
12133432
emmuchira/kps_erp
refs/heads/develop
erpnext/docs/user/manual/de/website/setup/__init__.py
12133432
gabrielf10/webAmpunc
refs/heads/master
webAmpunc/__init__.py
12133432
halberom/ansible
refs/heads/devel
test/units/contrib/__init__.py
12133432
nfcpy/ndeftool
refs/heads/master
src/ndeftool/commands/Save.py
1
# -*- coding: utf-8 -*- import os.path import shutil import click import ndef from ndeftool.cli import command_processor, dmsg, info, warn @click.command(short_help="Save records or payloads to disk.") @click.argument('path', type=click.Path(writable=True)) @click.option('--skip', type=click.IntRange(min=0), defaul...
blooparksystems/odoo
refs/heads/9.0
openerp/tools/lru.py
69
# -*- coding: utf-8 -*- # taken from http://code.activestate.com/recipes/252524-length-limited-o1-lru-cache-implementation/ import threading from func import synchronized __all__ = ['LRU'] class LRUNode(object): __slots__ = ['prev', 'next', 'me'] def __init__(self, prev, me): self.prev = prev ...
petecummings/mezzanine-themes
refs/heads/master
wsgi.py
63
from __future__ import unicode_literals import os PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__)) settings_module = "%s.settings" % PROJECT_ROOT.split(os.sep)[-1] os.environ.setdefault("DJANGO_SETTINGS_MODULE", settings_module) from django.core.wsgi import get_wsgi_application application = get_wsgi_applic...
keedio/hue
refs/heads/master
desktop/core/ext-py/Django-1.6.10/django/__init__.py
38
VERSION = (1, 6, 10, 'final', 0) def get_version(*args, **kwargs): # Don't litter django/__init__.py with all the get_version stuff. # Only import if it's actually called. from django.utils.version import get_version return get_version(*args, **kwargs)
jbteixeir/Openflow-DC-Framework
refs/heads/master
ext/Stats/ercs_stats_export.py
1
from pox.core import core from pox.lib.recoco.recoco import Timer from ext.Structures.ercs_switch import Switch import os import thread import time log = core.getLogger() class ERCSStatsExport(object): ''' Class that saves the statistics about switches and links into files ''' def __init__(self, init...
llvmpy/llvmpy
refs/heads/master
llpython/byte_control.py
1
# ______________________________________________________________________ from __future__ import absolute_import import opcode from . import opcode_util import pprint from .bytecode_visitor import BasicBlockVisitor, BenignBytecodeVisitorMixin from .control_flow import ControlFlowGraph # _______________________________...
ecederstrand/django
refs/heads/master
tests/field_defaults/models.py
410
# coding: utf-8 """ Callable defaults You can pass callable objects as the ``default`` parameter to a field. When the object is created without an explicit value passed in, Django will call the method to determine the default value. This example uses ``datetime.datetime.now`` as the default for the ``pub_date`` field...
jhawkesworth/ansible
refs/heads/devel
lib/ansible/modules/windows/win_domain_computer.py
25
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2017, AMTEGA - Xunta de Galicia # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported_by': 'communi...
askabelin/django-constance
refs/heads/master
example/cheeseshop/apps/storage/models.py
20
from django.db import models class Shelf(models.Model): name = models.CharField(max_length=75) class Meta: verbose_name_plural = 'shelves' class Supply(models.Model): name = models.CharField(max_length=75) class Meta: verbose_name_plural = 'supplies'
m8ttyB/socorro
refs/heads/master
socorro/unittest/external/postgresql/test_crashstorage.py
1
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. import time import mock from nose.tools import eq_, ok_, assert_raises from psycopg2 import OperationalError from conf...
lache/RacingKingLee
refs/heads/master
monitor/engine.win64/2.74/python/lib/encodings/cp1257.py
272
""" Python Character Mapping Codec cp1257 generated from 'MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1257.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 decode(self,in...
ktossell/rust
refs/heads/master
src/etc/lldb_rust_formatters.py
5
# Copyright 2014 The Rust Project Developers. See the COPYRIGHT # file at the top-level directory of this distribution and at # http://rust-lang.org/COPYRIGHT. # # 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://...
charlesvdv/servo
refs/heads/master
tests/wpt/web-platform-tests/service-workers/service-worker/resources/update-max-aged-worker-imported-script.py
39
import time def main(request, response): headers = [('Cache-Control', 'max-age=86400'), ('Content-Type', 'application/javascript'), ('Last-Modified', time.strftime("%a, %d %b %Y %H:%M:%S GMT", time.gmtime()))] revalidate = request.h...
smmribeiro/intellij-community
refs/heads/master
python/testData/copyPaste/multiLine/IndentMulti21.after.py
996
class C: def foo(self): x = 1 y = 2 y = 2
eswartz/RenderPipeline
refs/heads/master
rpcore/gui/checkbox.py
2
""" RenderPipeline Copyright (c) 2014-2016 tobspr <tobias.springer1@gmail.com> 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...
sporksmith/polygraph
refs/heads/master
polygraph/__init__.py
12
# Polygraph (release 0.1) # Signature generation algorithms for polymorphic worms # # Copyright (c) 2004-2005, Intel Corporation # All Rights Reserved # # This software is distributed under the terms of the Eclipse Public # License, Version 1.0 which can be found in the file named LICENSE. # ANY ...
jriehl/numba
refs/heads/master
numba/cuda/args.py
2
""" Hints to wrap Kernel arguments to indicate how to manage host-device memory transfers before & after the kernel call. """ import abc from numba.six import add_metaclass from numba.typing.typeof import typeof, Purpose @add_metaclass(abc.ABCMeta) class ArgHint: def __init__(self, value): self.value = ...
3quarterstack/simple_blog
refs/heads/master
django/contrib/gis/sitemaps/georss.py
314
from django.core import urlresolvers from django.contrib.sitemaps import Sitemap class GeoRSSSitemap(Sitemap): """ A minimal hook to produce sitemaps for GeoRSS feeds. """ def __init__(self, feed_dict, slug_dict=None): """ This sitemap object initializes on a feed dictionary (as would b...
DavidLP/home-assistant
refs/heads/dev
tests/components/logger/__init__.py
39
"""Tests for the logger component."""
harmy/kbengine
refs/heads/master
kbe/src/lib/python/Lib/encodings/iso8859_7.py
272
""" Python Character Mapping Codec iso8859_7 generated from 'MAPPINGS/ISO8859/8859-7.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 decode(self,input,errors='...
kingcons/pybrightcove
refs/heads/master
tests/test_playlist.py
3
# Copyright (c) 2009 StudioNow, Inc <patrick@studionow.com> # # 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, modi...
zak-k/iris
refs/heads/master
lib/iris/tests/unit/experimental/stratify/test_relevel.py
6
# (C) British Crown Copyright 2017, Met Office # # This file is part of Iris. # # Iris is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the # Free Software Foundation, either version 3 of the License, or # (at your option) any later ve...
CTSRD-SOAAP/chromium-42.0.2311.135
refs/heads/master
third_party/mojo/src/mojo/public/tools/bindings/generators/mojom_go_generator.py
2
# Copyright 2015 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. '''Generates Go source files from a mojom.Module.''' from itertools import chain import os import re from mojom.generate.template_expander import UseJinja ...
OCA/department
refs/heads/8.0
project_issue_department/project_issue.py
7
# -*- coding: utf-8 -*- ############################################################################## # # Copyright (C) 2012 Daniel Reis # # 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...
mensler/ansible
refs/heads/devel
test/integration/targets/module_utils/module_utils/sub/bam/bam.py
298
#!/usr/bin/env python bam = "BAM FROM sub/bam/bam.py"
niktre/espressopp
refs/heads/master
testsuite/FileIOTests/h5md/dump_h5md_test.py
3
#!/usr/bin/env python # Copyright (c) 2015-2018 # Jakub Krajniak (jkrajniak at gmail.com) # # This file is part of ESPResSo++. # # ESPResSo++ 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...
h4ck3rm1k3/pip
refs/heads/develop
docs/pipext.py
52
"""pip sphinx extensions""" import optparse import sys from docutils import nodes from docutils.parsers import rst from docutils.statemachine import ViewList from textwrap import dedent from pip.commands import commands_dict as commands from pip import cmdoptions from pip.utils import get_prog class PipCommandUsage(...
bigcommerce/bigcommerce-api-python
refs/heads/master
bigcommerce/resources/countries.py
2
from .base import * class Countries(ListableApiResource, CountableApiResource): resource_name = 'countries' def states(self, id=None): if id: return CountryStates.get(self.id, id, connection=self._connection) else: return CountryStates.all(self.id, connection=self._con...
wfxiang08/django178
refs/heads/master
django/contrib/admindocs/urls.py
63
from django.conf.urls import patterns, url from django.contrib.admindocs import views urlpatterns = patterns('', url('^$', views.BaseAdminDocsView.as_view(template_name='admin_doc/index.html'), name='django-admindocs-docroot'), url('^bookmarklets/$', views.BookmarkletsView.as_view(), ...
Jgarcia-IAS/SITE
refs/heads/master
addons/point_of_sale/wizard/__init__.py
382
# -*- 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...
beiko-lab/gengis
refs/heads/master
bin/Lib/test/test_peepholer.py
9
import dis import sys from cStringIO import StringIO import unittest def disassemble(func): f = StringIO() tmp = sys.stdout sys.stdout = f dis.dis(func) sys.stdout = tmp result = f.getvalue() f.close() return result def dis_single(line): return disassemble(compile(l...
fitermay/intellij-community
refs/heads/master
python/helpers/pydev/_pydev_bundle/_pydev_getopt.py
108
#======================================================================================================================= # getopt code copied since gnu_getopt is not available on jython 2.1 #======================================================================================================================= class Ge...
Default-Value/defaultvalue.info
refs/heads/master
node_modules/node-gyp/gyp/pylib/gyp/MSVSToolFile.py
2736
# Copyright (c) 2012 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Visual Studio project reader/writer.""" import gyp.common import gyp.easy_xml as easy_xml class Writer(object): """Visual Studio XML tool file writer.""" ...
bhargav2408/python-for-android
refs/heads/master
python3-alpha/python3-src/Lib/lib2to3/tests/__init__.py
308
"""Make tests/ into a package. This allows us to "import tests" and have tests.all_tests be a TestSuite representing all test cases from all test_*.py files in tests/.""" # Author: Collin Winter import os import os.path import unittest import types from . import support all_tests = unittest.TestSuite() tests_dir = ...
tic-ull/incidagua
refs/heads/master
app_django/manage.py
1
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "app_django.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
draugiskisprendimai/odoo
refs/heads/8.0
addons/website_event_track/__init__.py
1577
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2013-Today OpenERP SA (<http://www.openerp.com>). # # This program is free software: you can redistribute it and/or modify # it under the terms ...
benoitsteiner/tensorflow-xsmm
refs/heads/master
tensorflow/python/estimator/inputs/pandas_io_test.py
7
# 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...
janezkranjc/clowdflows
refs/heads/master
workflows/lemmagen/urls.py
107
from django.conf.urls.defaults import patterns, include, url urlpatterns = patterns('', #url(r'^get-adc-index/widget(?P<widget_id>[0-9]+)/nx/Index.html$', 'workflows.latino.views.get_adc_index', name='get adc index'), #url(r'^get-adc-index/widget(?P<widget_id>[0-9]+)/(?P<narrow_doc>n?)x/Index.html$', 'workflow...
cloudnull/ansible-modules-extras
refs/heads/devel
notification/twilio.py
45
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2014, Matt Makai <matthew.makai@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 ...
jaredly/pyjamas
refs/heads/master
examples/timesheet/view/components/FileOpenDlg.py
5
# vim: set ts=4 sw=4 expandtab: from ApplicationConstants import Notification from pyjamas.ui.HorizontalPanel import HorizontalPanel from pyjamas.ui.VerticalPanel import VerticalPanel from pyjamas.ui.Label import Label from pyjamas.ui.Button import Button from pyjamas.ui.DialogBox import DialogBox from pyjamas.ui.Fo...