repo_name stringlengths 5 100 | ref stringlengths 12 67 | path stringlengths 4 244 | copies stringlengths 1 8 | content stringlengths 0 1.05M ⌀ |
|---|---|---|---|---|
zenodo/invenio | refs/heads/zenodo-master | invenio/legacy/inveniocfg.py | 1 | # -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015 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 th... |
vicky2135/lucious | refs/heads/master | oscar/lib/python2.7/site-packages/unidecode/x08c.py | 251 | data = (
'Yu ', # 0x00
'Shui ', # 0x01
'Shen ', # 0x02
'Diao ', # 0x03
'Chan ', # 0x04
'Liang ', # 0x05
'Zhun ', # 0x06
'Sui ', # 0x07
'Tan ', # 0x08
'Shen ', # 0x09
'Yi ', # 0x0a
'Mou ', # 0x0b
'Chen ', # 0x0c
'Die ', # 0x0d
'Huang ', # 0x0e
'Jian ', # 0x0f
'Xie ', # ... |
e-gob/plataforma-kioscos-autoatencion | refs/heads/master | scripts/ansible-play/.venv/lib/python2.7/site-packages/ansible/plugins/lookup/keyring.py | 82 | # (c) 2016, Samuel Boucher <boucher.samuel.c@gmail.com>
# (c) 2017 Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
DOCUMENTATION = """
lookup: keyring
author:
... |
alimuldal/numpy | refs/heads/master | numpy/fft/__init__.py | 83 | from __future__ import division, absolute_import, print_function
# To get sub-modules
from .info import __doc__
from .fftpack import *
from .helper import *
from numpy.testing.nosetester import _numpy_tester
test = _numpy_tester().test
bench = _numpy_tester().bench
|
sampadsaha5/sympy | refs/heads/master | sympy/series/tests/test_limitseq.py | 62 | from sympy import symbols, oo, Sum, harmonic, Add, S, binomial, factorial
from sympy.series.limitseq import limit_seq
from sympy.series.limitseq import difference_delta as dd
from sympy.utilities.pytest import raises, XFAIL
n, m, k = symbols('n m k', integer=True)
def test_difference_delta():
e = n*(n + 1)
e... |
sencha/chromium-spacewalk | refs/heads/master | tools/usb_gadget/linux_gadgetfs.py | 54 | # 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.
"""Linux gadgetfs glue.
Exposes a USB gadget using a USB peripheral controller on Linux. The userspace
ABI is documented here:
https://github.com/torvalds/... |
yatinkumbhare/openstack-nova | refs/heads/master | nova/tests/unit/virt/vmwareapi/test_network_util.py | 21 | # Copyright (c) 2014 VMware, 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 requir... |
ridfrustum/lettuce | refs/heads/master | tests/integration/lib/Django-1.3/django/contrib/gis/tests/geogapp/tests.py | 222 | """
Tests for geography support in PostGIS 1.5+
"""
import os
from django.contrib.gis import gdal
from django.contrib.gis.measure import D
from django.test import TestCase
from models import City, County, Zipcode
class GeographyTest(TestCase):
def test01_fixture_load(self):
"Ensure geography features load... |
hetajen/vnpy161 | refs/heads/master | vn.api/vn.ctp/pyscript/generate_md_functions.py | 25 | # encoding: UTF-8
__author__ = 'CHENXY'
from string import join
from ctp_struct import structDict
def processCallBack(line):
orignalLine = line
line = line.replace('\tvirtual void ', '') # 删除行首的无效内容
line = line.replace('{};\n', '') # 删除行尾的无效内容
content = line.split('(')
cbNa... |
sarvex/django | refs/heads/master | tests/base/__init__.py | 12133432 | |
kevinlee12/oppia | refs/heads/develop | extensions/value_generators/models/__init__.py | 12133432 | |
pelme/pytest-contextfixture | refs/heads/master | pytest_contextfixture.py | 1 |
import pytest
from contextlib import contextmanager
from functools import wraps
def _make_fixture(fn, fixture_args, fixture_kwargs):
ctxmgr = contextmanager(fn)
@pytest.fixture(*fixture_args, **fixture_kwargs)
@wraps(fn)
def actual_fixture(request):
ctxinst = ctxmgr(request)
# TODO... |
SerCeMan/intellij-community | refs/heads/master | python/helpers/pycharm/nose_helper/suite.py | 85 | """
Test Suites
"""
from __future__ import generators
import sys
import unittest
from nose_helper.case import Test
from nose_helper.config import Config
from nose_helper.util import isclass, resolve_name, try_run
PYTHON_VERSION_MAJOR = sys.version_info[0]
class LazySuite(unittest.TestSuite):
"""A suite that may us... |
fredsmith/will | refs/heads/master | will/acl.py | 11 | # -*- coding: utf-8 -*-
from . import settings
def get_acl_members(acl):
acl_members = []
acl = acl.lower()
if getattr(settings, "ACL", None):
try:
# Case-insensitive checks
for k, v in settings.ACL.items():
if k.lower() == acl:
acl_memb... |
lucadealfaro/crowdranker | refs/heads/master | models/keystore.py | 1 | # -*- coding: utf-8 -*-
# Implementation of a key-value store API.
db.define_table('key_value_store',
Field('content', 'text'))
def keystore_write(v):
"""Writes a new string v to the key-value store, returning the string key."""
id = db.key_value_store.insert(content = v)
logger.info("inserting keys... |
StyXman/ayrton | refs/heads/develop | ayrton/parser/astcompiler/consts.py | 1 | """
Various flags used during the compilation process.
"""
CO_OPTIMIZED = 0x0001
CO_NEWLOCALS = 0x0002
CO_VARARGS = 0x0004
CO_VARKEYWORDS = 0x0008
CO_NESTED = 0x0010
CO_GENERATOR = 0x0020
CO_NOFREE = 0x0040
CO_COROUTINE = 0x0080
CO_ITERABLE_COROUTINE = 0x0100 # set by @types.coroutine
CO_GENERATOR_ALLOWED = 0x1000
... |
invisiblek/python-for-android | refs/heads/master | python3-alpha/python3-src/Lib/curses/panel.py | 192 | """curses.panel
Module for using panels with curses.
"""
from _curses_panel import *
|
csdms-contrib/gFlex | refs/heads/master | input/run_in_script_1D.py | 1 | #! /usr/bin/env python
import gflex
import numpy as np
from matplotlib import pyplot as plt
flex = gflex.F1D()
flex.Quiet = True
flex.Method = 'SAS' # Solution method: * FD (finite difference)
# * SAS (superposition of analytical solutions)
# *... |
rwillmer/django | refs/heads/master | tests/syndication_tests/tests.py | 190 | from __future__ import unicode_literals
import datetime
from xml.dom import minidom
from django.contrib.sites.models import Site
from django.contrib.syndication import views
from django.core.exceptions import ImproperlyConfigured
from django.test import TestCase, override_settings
from django.test.utils import requir... |
DirkHoffmann/indico | refs/heads/master | indico/modules/announcement/controllers.py | 4 | # This file is part of Indico.
# Copyright (C) 2002 - 2021 CERN
#
# Indico is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see the
# LICENSE file for more details.
from flask import flash, redirect
from indico.modules.admin import RHAdminBase
from indico.modules.announ... |
nsteinme/phy | refs/heads/master | phy/io/kwik/mock.py | 2 | # -*- coding: utf-8 -*-
"""Mock Kwik files."""
#------------------------------------------------------------------------------
# Imports
#------------------------------------------------------------------------------
import os.path as op
import numpy as np
from ...electrode.mea import staggered_positions
from ..mo... |
coxmediagroup/django-json-rpc | refs/heads/master | test/jsontesturls.py | 3 | from django.conf.urls.defaults import *
from jsonrpc.site import jsonrpc_site
urlpatterns = patterns('',
url(r'^json/browse/$', 'jsonrpc.views.browse', name='jsonrpc_browser'),
url(r'^json/$', jsonrpc_site.dispatch, name='jsonrpc_mountpoint'),
(r'^json/(?P<method>[a-zA-Z0-9.-_]+)$', jsonrpc_site.dispatch),
) |
jmcarp/django | refs/heads/master | django/core/management/commands/startproject.py | 503 | from importlib import import_module
from django.core.management.base import CommandError
from django.core.management.templates import TemplateCommand
from django.utils.crypto import get_random_string
class Command(TemplateCommand):
help = ("Creates a Django project directory structure for the given "
... |
synicalsyntax/zulip | refs/heads/master | zerver/views/development/integrations.py | 3 | import os
from typing import Any, Dict, List, Optional
import ujson
from django.http import HttpRequest, HttpResponse
from django.shortcuts import render
from django.test import Client
from zerver.lib.integrations import WEBHOOK_INTEGRATIONS
from zerver.lib.request import REQ, has_request_variables
from zerver.lib.re... |
thiagopnts/servo | refs/heads/master | tests/wpt/web-platform-tests/conformance-checkers/tools/dl.py | 107 | # -*- coding: utf-8 -*-
import os
ccdir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
template = """<!DOCTYPE html>
<meta charset=utf-8>
"""
errors = {
"dl-in-p": "<p><dl><dt>text<dd>text</dl></p>",
"header-in-dt": "<dl><dt><header>text</header><dd>text</dl>",
"footer-in-dt": "<dl><dt><foot... |
iulian787/spack | refs/heads/develop | var/spack/repos/builtin/packages/cppzmq/package.py | 2 | # 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 Cppzmq(CMakePackage):
"""C++ binding for 0MQ"""
homepage = "http://www.zeromq.org"
... |
rghe/ansible | refs/heads/devel | lib/ansible/modules/network/panos/panos_nat_rule.py | 16 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2016, techbizdev <techbizdev@paloaltonetworks.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
DOCUMENTATION = '''
---
module: panos_n... |
ToonTownInfiniteRepo/ToontownInfinite | refs/heads/master | Panda3D-1.9.0/python/Lib/encodings/johab.py | 816 | #
# johab.py: Python Unicode Codec for JOHAB
#
# Written by Hye-Shik Chang <perky@FreeBSD.org>
#
import _codecs_kr, codecs
import _multibytecodec as mbc
codec = _codecs_kr.getcodec('johab')
class Codec(codecs.Codec):
encode = codec.encode
decode = codec.decode
class IncrementalEncoder(mbc.MultibyteIncrement... |
cntnboys/410Lab6 | refs/heads/master | build/django/django/conf/locale/ko/__init__.py | 12133432 | |
doduytrung/odoo-8.0 | refs/heads/master | addons/procurement_jit_stock/procurement_jit_stock.py | 44 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2013 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... |
IPMITMO/statan | refs/heads/master | coala/tests/bearlib/aspects/conftest.py | 12 | from coalib.bearlib.aspects import Taste, aspectclass
from coalib.bearlib.aspects.base import aspectbase
import pytest
@pytest.fixture
def RootAspect():
"""
An exclusive Root aspectclass for unit tests.
"""
class RootAspect(aspectbase, metaclass=aspectclass):
parent = None
_tastes = ... |
gxyang/hstore | refs/heads/master | third_party/python/boto/mashups/server.py | 91 | # Copyright (c) 2006,2007 Mitch Garnaat http://garnaat.org/
#
# 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... |
wvengen/ndg_oauth_server | refs/heads/master | ndg/oauth/server/lib/authorize/authorizer_interface.py | 3 | """OAuth 2.0 WSGI server middleware providing MyProxy certificates as access tokens
"""
__author__ = "R B Wilkinson"
__date__ = "12/12/11"
__copyright__ = "(C) 2011 Science and Technology Facilities Council"
__license__ = "BSD - see LICENSE file in top-level directory"
__contact__ = "Philip.Kershaw@stfc.ac.uk"
__revisi... |
nhejazi/scikit-learn | refs/heads/master | sklearn/linear_model/tests/test_huber.py | 26 | # Authors: Manoj Kumar mks542@nyu.edu
# License: BSD 3 clause
import numpy as np
from scipy import optimize, sparse
from sklearn.utils.testing import assert_equal
from sklearn.utils.testing import assert_almost_equal
from sklearn.utils.testing import assert_array_equal
from sklearn.utils.testing import assert_array_a... |
Acidburn0zzz/servo | refs/heads/master | tests/wpt/web-platform-tests/tools/third_party/pytest/src/pytest.py | 34 | # PYTHON_ARGCOMPLETE_OK
"""
pytest: unit and functional testing with Python.
"""
# else we are imported
from _pytest.config import main, UsageError, cmdline, hookspec, hookimpl
from _pytest.fixtures import fixture, yield_fixture
from _pytest.assertion import register_assert_rewrite
from _pytest.freeze_support import... |
mollstam/UnrealPy | refs/heads/master | UnrealPyEmbed/Development/Python/2015.08.07-Python2710-x64-Source-vs2015/Python27/Source/django-1.8.2/tests/m2o_recursive/__init__.py | 12133432 | |
CXQERP/ODOOERP | refs/heads/master | addons/web/tests/common.py | 12133432 | |
oppia/oppia | refs/heads/develop | jobs/io/__init__.py | 12133432 | |
XiaJieCom/change | refs/heads/master | stu103151/days15/mysite/IDC/migrations/__init__.py | 12133432 | |
akaariai/django | refs/heads/master | tests/template_tests/syntax_tests/test_include.py | 31 | from django.template import (
Context, Template, TemplateDoesNotExist, TemplateSyntaxError, engines,
)
from django.test import SimpleTestCase, override_settings
from ..utils import setup
from .test_basic import basic_templates
include_fail_templates = {
'include-fail1': '{% load bad_tag %}{% badtag %}',
'... |
for-the-repose/comine | refs/heads/master | source/comine/gdb/__init__.py | 12133432 | |
jnerin/ansible | refs/heads/devel | lib/ansible/module_utils/net_tools/nios/__init__.py | 12133432 | |
vprime/puuuu | refs/heads/master | env/lib/python2.7/site-packages/pip/_vendor/html5lib/filters/__init__.py | 12133432 | |
labcodes/django | refs/heads/master | tests/gis_tests/geoadmin/__init__.py | 12133432 | |
himanshu-dixit/oppia | refs/heads/develop | core/storage/__init__.py | 12133432 | |
GNOME/niepce | refs/heads/master | third_party/googletest/googletest/test/gtest_xml_test_utils.py | 364 | #!/usr/bin/env python
#
# Copyright 2006, 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... |
jayceyxc/hue | refs/heads/master | desktop/core/ext-py/Django-1.6.10/tests/cache/tests.py | 40 | # -*- coding: utf-8 -*-
# Unit tests for cache framework
# Uses whatever cache backend is set in the test settings file.
from __future__ import absolute_import, unicode_literals
import hashlib
import os
import random
import re
import string
import tempfile
import time
import warnings
import pickle
from django.conf i... |
seken/nink | refs/heads/master | pyglet/window/xlib/__init__.py | 4 | # ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... |
rikribbers/smpchecker | refs/heads/master | smpchecker/model/model.py | 1 | from smpchecker import smpcheckerapp as smpchecker
from enum import Enum
from datetime import datetime
class SupportedDocumentTypes(Enum):
SI_10_CREDITNOTE = 'urn:oasis:names:specification:ubl:schema:xsd:CreditNote-2::CreditNote##urn:www.cenbii.eu:transaction:biicoretrdm014:ver1.0:#urn:www.peppol.eu:bis:peppol5a:... |
xyzz/vcmi-build | refs/heads/master | project/jni/python/src/Lib/test/test_fcntl.py | 51 | """Test program for the fcntl C module.
OS/2+EMX doesn't support the file locking operations.
"""
import fcntl
import os
import struct
import sys
import unittest
from test.test_support import verbose, TESTFN, unlink, run_unittest
# TODO - Write tests for flock() and lockf().
def get_lockdata():
if sys.platform.... |
FireWRT/OpenWrt-Firefly-Libraries | refs/heads/master | staging_dir/target-mipsel_1004kc+dsp_uClibc-0.9.33.2/usr/lib/python3.4/lib2to3/fixes/fix_raw_input.py | 203 | """Fixer that changes raw_input(...) into input(...)."""
# Author: Andre Roberge
# Local imports
from .. import fixer_base
from ..fixer_util import Name
class FixRawInput(fixer_base.BaseFix):
BM_compatible = True
PATTERN = """
power< name='raw_input' trailer< '(' [any] ')' > any* >
... |
Zeken/audacity | refs/heads/master | lib-src/lv2/suil/waflib/Tools/g95.py | 316 | #! /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 re
from waflib import Utils
from waflib.Tools import fc,fc_config,fc_scan,ar
from waflib.Configure import conf
@conf
def find_g95(conf):
fc=conf.find_program('g95',var... |
ninefold/libcloud | refs/heads/trunk | libcloud/common/types.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 file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... |
LuminateWireless/grpc | refs/heads/master | examples/python/multiplex/route_guide_pb2.py | 88 | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: route_guide.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _r... |
EvanK/ansible | refs/heads/devel | lib/ansible/modules/network/cnos/cnos_vlag.py | 52 | #!/usr/bin/python
# -*- coding: utf-8 -*-
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
#
# Copyright (C) 2017 Lenovo, Inc.
#
# 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 Licens... |
aethaniel/micropython | refs/heads/master | tests/basics/list_slice_assign_grow.py | 72 | x = list(range(2))
l = list(x)
l[0:0] = [10]
print(l)
l = list(x)
l[:0] = [10, 20]
print(l)
l = list(x)
l[0:0] = [10, 20, 30, 40]
print(l)
l = list(x)
l[1:1] = [10, 20, 30, 40]
print(l)
l = list(x)
l[2:] = [10, 20, 30, 40]
print(l)
# Weird cases
l = list(x)
l[1:0] = [10, 20, 30, 40]
print(l)
l = list(x)
l[100:100]... |
ruuk/script.module.youtube.dl | refs/heads/master | lib/youtube_dl/extractor/clyp.py | 22 | from __future__ import unicode_literals
from .common import InfoExtractor
from ..compat import (
compat_parse_qs,
compat_urllib_parse_urlparse,
)
from ..utils import (
float_or_none,
unified_timestamp,
)
class ClypIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?clyp\.it/(?P<id>[a-z0-9]+)'
... |
goodwinnk/intellij-community | refs/heads/master | python/testData/copyPaste/TryBlockWithBadSelection.src.py | 35 | def f():
<selection>try:
x = 1
y = 2</selection>
finally:
pass
|
izzyalonso/tndata_backend | refs/heads/master | tndata_backend/utils/views.py | 2 | import logging
from django import http
from django.conf import settings
from django.contrib import messages
from django.contrib.auth import authenticate, get_user_model, login, logout
from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import Group
from django.core.urlresolvers im... |
macopedia/hr | refs/heads/8.0 | __unported__/hr_payroll_register/report/payroll_register.py | 28 | # -*- coding:utf-8 -*-
#
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2013 Michael Telahun Makonnen <mmakonnen@gmail.com>
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved
# d$
#
# This program is free software: you can redistribute it and/or modify
# it under... |
Just-D/chromium-1 | refs/heads/master | tools/telemetry/telemetry/core/discover.py | 15 | # 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.
import fnmatch
import inspect
import os
import re
from telemetry import decorators
from telemetry.internal.util import camel_case
from telemetry.internal.ut... |
rwbogl/gbg | refs/heads/master | parse.py | 1 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import pycparser
from pycparser.c_ast import *
from pycparser import c_generator
def get_function(ast, name):
for node in ast.ext:
if type(node) == FuncDef and node.decl.name == name:
return node
return None
def pair_goto_labels(labels, condi... |
stryder199/RyarkAssignments | refs/heads/master | Assignment2/quizzes/eop/chapter3/sample_statistics.py | 1 | question_list = [
# (mark, count, [directories])
(1, 3, 'eop/chapter3/sample_statistics_io_'),
]
practice_mode = True
standalone = False
logged = False
log_dir = ''
|
Soya93/Extract-Refactoring | refs/heads/master | python/lib/Lib/site-packages/django/conf/locale/vi/__init__.py | 12133432 | |
xuweiliang/Codelibrary | refs/heads/master | openstack_dashboard/dashboards/admin/access_and_security/download_sql/__init__.py | 12133432 | |
mwx1993/TACTIC | refs/heads/master | src/pyasm/application/houdini/houdini_environment.py | 10 | ###########################################################
#
# Copyright (c) 2005, 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... |
QualiSystems/Azure-Shell | refs/heads/develop | package/tests/test_cp/test_azure/test_domain/test_services/test_task_waiter.py | 1 | from unittest import TestCase
import mock
from cloudshell.cp.azure.domain.services.task_waiter import TaskWaiterService
class TestTaskWaiterService(TestCase):
def setUp(self):
self.cancellation_service = mock.MagicMock()
self.task_waiter_service = TaskWaiterService(cancellation_service=self.canc... |
sublime1809/django | refs/heads/master | django/core/management/commands/startapp.py | 513 | from importlib import import_module
from django.core.management.base import CommandError
from django.core.management.templates import TemplateCommand
class Command(TemplateCommand):
help = ("Creates a Django app directory structure for the given app "
"name in the current directory or optionally in t... |
jhonatajh/mtasa-blue | refs/heads/master | vendor/google-breakpad/src/tools/gyp/test/mac/gyptest-depend-on-bundle.py | 303 | #!/usr/bin/env python
# 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.
"""
Verifies that a dependency on a bundle causes the whole bundle to be built.
"""
import TestGyp
import sys
if sys.platform == 'darwin'... |
spicykaiju/pyvmomi | refs/heads/master | tests/test_virtual_machine_object.py | 10 | # VMware vSphere Python SDK
# Copyright (c) 2008-2015 VMware, 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
#
# Unle... |
WASPACDC/hmdsm.repository | refs/heads/master | plugin.video.mrpiracy/resources/lib/tvdb_api.py | 20 | import os
import xbmcgui
import xbmc
import time
import urllib
import json
from bs4 import BeautifulSoup
class TVDB:
def __init__(self, api_key, lingua):
self.api_key = api_key
self.lingua = lingua
def abrir_url(url,postData=False):
if postData:
data = urllib.urlencode({'procurar' : postData})
req... |
matrixise/odoo | refs/heads/8.0 | addons/website_gengo/controllers/__init__.py | 7372 | import main
|
TangHao1987/intellij-community | refs/heads/master | plugins/hg4idea/testData/bin/mercurial/scmposix.py | 94 | import sys, os
import osutil
def _rcfiles(path):
rcs = [os.path.join(path, 'hgrc')]
rcdir = os.path.join(path, 'hgrc.d')
try:
rcs.extend([os.path.join(rcdir, f)
for f, kind in osutil.listdir(rcdir)
if f.endswith(".rc")])
except OSError:
pass
r... |
android-ia/platform_external_chromium_org | refs/heads/master | third_party/cython/src/Cython/Plex/Regexps.py | 99 | #=======================================================================
#
# Python Lexical Analyser
#
# Regular Expressions
#
#=======================================================================
import types
from sys import maxint as maxint
import Errors
#
# Constants
#
BOL = 'bol'
EOL = 'eol'
EOF ... |
superchilli/webapp | refs/heads/master | venv/lib/python2.7/site-packages/alembic/templates/pylons/env.py | 41 | """Pylons bootstrap environment.
Place 'pylons_config_file' into alembic.ini, and the application will
be loaded from there.
"""
from alembic import context
from paste.deploy import loadapp
from logging.config import fileConfig
from sqlalchemy.engine.base import Engine
try:
# if pylons app already in, don't cre... |
tedi3231/openerp | refs/heads/master | build/lib/openerp/addons/account/installer.py | 5 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... |
xpac1985/ansible | refs/heads/devel | test/units/parsing/vault/test_vault.py | 60 | # (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... |
npiganeau/odoo | refs/heads/master | addons/analytic/wizard/account_analytic_cost_ledger_for_journal_report.py | 378 | # -*- 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... |
laslabs/odoo | refs/heads/9.0 | addons/event_sale/__openerp__.py | 16 | # -*- coding: utf-8 -*-
{
'name': 'Events Sales',
'version': '1.1',
'category': 'Marketing',
'website': 'https://www.odoo.com/page/events',
'description': """
Creating registration with sale orders.
=======================================
This module allows you to automate and connect your registr... |
vdemeester/compose | refs/heads/master | tests/unit/config/config_test.py | 2 | import codecs
import os
import shutil
import tempfile
from operator import itemgetter
from random import shuffle
import pytest
import yaml
from ddt import data
from ddt import ddt
from ...helpers import build_config_details
from ...helpers import BUSYBOX_IMAGE_WITH_TAG
from ...helpers import cd
from compose.config im... |
Ironarcher/casso-backend | refs/heads/master | lib/flask/testsuite/test_apps/lib/python2.5/site-packages/site_app.py | 1799 | import flask
app = flask.Flask(__name__)
|
baseblack/ReproWeb | refs/heads/master | 3rdParty/python/flask/testsuite/test_apps/path/installed_package/__init__.py | 1799 | import flask
app = flask.Flask(__name__)
|
ChristineLaMuse/mozillians | refs/heads/master | vendor-local/lib/python/unidecode/x014.py | 252 | data = (
'[?]', # 0x00
'e', # 0x01
'aai', # 0x02
'i', # 0x03
'ii', # 0x04
'o', # 0x05
'oo', # 0x06
'oo', # 0x07
'ee', # 0x08
'i', # 0x09
'a', # 0x0a
'aa', # 0x0b
'we', # 0x0c
'we', # 0x0d
'wi', # 0x0e
'wi', # 0x0f
'wii', # 0x10
'wii', # 0x11
'wo', # 0x12
'wo', ... |
jacquesqiao/Paddle | refs/heads/develop | python/paddle/trainer_config_helpers/tests/configs/test_print_layer.py | 7 | # Copyright (c) 2018 PaddlePaddle 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 app... |
yhoshino11/pytest_example | refs/heads/master | .tox/flake8/lib/python2.7/site-packages/pip/index.py | 31 | """Routines related to PyPI, indexes"""
from __future__ import absolute_import
import logging
import cgi
import sys
import os
import re
import mimetypes
import posixpath
import warnings
from pip._vendor.six.moves.urllib import parse as urllib_parse
from pip._vendor.six.moves.urllib import request as urllib_request
f... |
mozilla-mobile/firefox-ios | refs/heads/master | Client/Assets/Search/run_tests.py | 43 | #!/usr/bin/env python
# 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/.
from lxml import etree
import sys
import unittest
from scrape_plugins import Overlay
class Test... |
fracpete/python-weka-wrapper | refs/heads/master | tests/wekatests/coretests/dataset.py | 1 | # This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# b... |
jptomo/rpython-lang-scheme | refs/heads/master | rpython/jit/backend/test/support.py | 2 | import py
import sys
from rpython.rlib.debug import debug_print
from rpython.translator.translator import TranslationContext, graphof
from rpython.jit.metainterp.optimizeopt import ALL_OPTS_NAMES
from rpython.rlib.rarithmetic import is_valid_int
class BaseCompiledMixin(object):
CPUClass = None
basic = False
... |
maximon93/fabric-bolt | refs/heads/master | fabric_bolt/web_hooks/__init__.py | 11 | from . import receivers |
akhmadMizkat/odoo | refs/heads/master | addons/l10n_ma/__openerp__.py | 27 | # -*- encoding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
# Copyright (c) 2010 kazacube (http://kazacube.com).
{
'name': 'Maroc - Accounting',
'version': '1.0',
'author': 'kazacube',
'category': 'Localization/Account Charts',
'description': """
This is th... |
AloneRoad/Inforlearn | refs/heads/1.0-rc3 | django/contrib/gis/db/models/query.py | 10 | from django.core.exceptions import ImproperlyConfigured
from django.db import connection
from django.db.models.query import QuerySet, Q, ValuesQuerySet, ValuesListQuerySet
from django.contrib.gis.db.backend import SpatialBackend
from django.contrib.gis.db.models import aggregates
from django.contrib.gis.db.models.fiel... |
shivam1111/odoo | refs/heads/8.0 | addons/payment_buckaroo/controllers/main.py | 325 | # -*- coding: utf-8 -*-
try:
import simplejson as json
except ImportError:
import json
import logging
import pprint
import werkzeug
from openerp import http, SUPERUSER_ID
from openerp.http import request
_logger = logging.getLogger(__name__)
class BuckarooController(http.Controller):
_return_url = '/pa... |
stormi/tsunami | refs/heads/master | src/test/__init__.py | 12133432 | |
Quikling/gpdb | refs/heads/master | gpMgmt/test/behave_utils/gpfdist_utils/__init__.py | 12133432 | |
TechBK/horizon-dev | refs/heads/master | openstack_dashboard/dashboards/admin/volumes/volumes/__init__.py | 12133432 | |
hyperized/ansible | refs/heads/devel | lib/ansible/plugins/action/group_by.py | 122 | # Copyright 2012, Jeroen Hoekx <jeroen@hoekx.be>
#
# 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 ve... |
facebook/sparts | refs/heads/master | sparts/__init__.py | 3 | # Copyright (c) 2014, Facebook, Inc. All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
#
__version__ = '0.7.3'
|
vinhlh/bite-project | refs/heads/master | deps/gdata-python-client/samples/apps/marketplace_sample/domain_mgmt_app.py | 22 | #!/usr/bin/python2.4
#
# 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 ... |
lucashmorais/x-Bench | refs/heads/master | mozmill-env/python/Lib/site-packages/mercurial/hg.py | 90 | # hg.py - repository classes for mercurial
#
# Copyright 2005-2007 Matt Mackall <mpm@selenic.com>
# Copyright 2006 Vadim Gelfer <vadim.gelfer@gmail.com>
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
from i18n import _
from lock ... |
openstack/osprofiler | refs/heads/master | osprofiler/tests/unit/doc/test_specs.py | 1 | # 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, software
# distributed under t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.