repo_name stringlengths 5 100 | ref stringlengths 12 67 | path stringlengths 4 244 | copies stringlengths 1 8 | content stringlengths 0 1.05M ⌀ |
|---|---|---|---|---|
GitAngel/django | refs/heads/master | django/conf/locale/bn/__init__.py | 12133432 | |
areski/cdr-stats | refs/heads/develop | cdr_stats/apirest/__init__.py | 12133432 | |
anaran/kuma | refs/heads/master | vendor/packages/logilab/astng/test/data2/__init__.py | 12133432 | |
followloda/PornGuys | refs/heads/master | FlaskServer/venv/Lib/site-packages/pip/_vendor/packaging/markers.py | 324 | # This file is dual licensed under the terms of the Apache License, Version
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
# for complete details.
from __future__ import absolute_import, division, print_function
import operator
import os
import platform
import sys
from pip._vendor.pyp... |
xdevelsistemas/taiga-back-community | refs/heads/stable | taiga/export_import/serializers/serializers.py | 2 | # -*- coding: utf-8 -*-
# Copyright (C) 2014-2016 Andrey Antukh <niwi@niwi.nz>
# Copyright (C) 2014-2016 Jesús Espino <jespinog@gmail.com>
# Copyright (C) 2014-2016 David Barragán <bameda@dbarragan.com>
# Copyright (C) 2014-2016 Alejandro Alonso <alejandro.alonso@kaleidos.net>
# This program is free software: you can r... |
denisff/python-for-android | refs/heads/master | python3-alpha/python3-src/Lib/test/test_bisect.py | 55 | import sys
import unittest
from test import support
from collections import UserList
# We do a bit of trickery here to be able to test both the C implementation
# and the Python implementation of the module.
# Make it impossible to import the C implementation anymore.
sys.modules['_bisect'] = 0
# We must also handle ... |
carlvlewis/bokeh | refs/heads/master | bokeh/sampledata/stocks.py | 43 | '''
This module provides some recorded stock data for the follwing stocks: AAPL, FB, GOOG, IBM, MSFT.
Each set of data is available as an attribute on the module (e.g., stocks.AAPL) and the value is
a dictionary with the structure:
AAPL['date'] # list of date string
AAPL['open'] # list of float
... |
pheanex/ansible-modules-extras | refs/heads/devel | monitoring/airbrake_deployment.py | 94 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright 2013 Bruce Pennypacker <bruce@pennypacker.org>
#
# 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... |
dbckz/ansible | refs/heads/devel | lib/ansible/modules/cloud/dimensiondata/__init__.py | 12133432 | |
oldmantaiter/inferno | refs/heads/master | inferno/__init__.py | 12133432 | |
IvarsKarpics/mxcube | refs/heads/master | docs/source/dummy_modules/Qub/Objects/QubRawData2Image.py | 12133432 | |
rzdchen/pythonArticle | refs/heads/master | Article/__init__.py | 12133432 | |
craftytrickster/servo | refs/heads/master | tests/wpt/web-platform-tests/tools/pywebsocket/src/mod_pywebsocket/http_header_util.py | 694 | # Copyright 2011, 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... |
mrquim/repository.mrquim | refs/heads/master | repo/script.module.covenant/lib/resources/lib/sources/ko/iheartdrama.py | 7 | # -*- coding: utf-8 -*-
"""
Covenant Add-on
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 prog... |
TheTypoMaster/calligra | refs/heads/master | 3rdparty/google-breakpad/src/tools/gyp/test/additional-targets/gyptest-additional.py | 82 | #!/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 simple actions when using an explicit build target of 'all'.
"""
import TestGyp
test = TestGyp.TestGyp()
test.run_gyp('all.g... |
AutorestCI/azure-sdk-for-python | refs/heads/master | azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/virtual_machine_scale_set_network_configuration.py | 1 | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... |
ShiYw/Sigil | refs/heads/master | 3rdparty/python/Lib/distutils/tests/test_cmd.py | 118 | """Tests for distutils.cmd."""
import unittest
import os
from test.support import captured_stdout, run_unittest
from distutils.cmd import Command
from distutils.dist import Distribution
from distutils.errors import DistutilsOptionError
from distutils import debug
class MyCmd(Command):
def initialize_options(self)... |
monikagrabowska/osf.io | refs/heads/develop | framework/celery_tasks/routers.py | 22 | # -*- coding: utf-8 -*-
from website.settings import (
DEFAULT_QUEUE, LOW_QUEUE, MED_QUEUE, HIGH_QUEUE,
LOW_PRI_MODULES, MED_PRI_MODULES, HIGH_PRI_MODULES
)
def match_by_module(task_path):
task_parts = task_path.split('.')
for i in range(2, len(task_parts) + 1):
task_subpath = '.'.join(task_par... |
rmallermartins/tsp | refs/heads/master | testador/eccheck.py | 1 | # encoding: utf-8
# Representacao de conjuntos, em geral não é eficiente mas é simples
class Graph:
def __init__(self, V, E):
self.V = V
self.E = set(E)
def is_adj(self, u, v):
return (u, v) in self.E or (v, u) in self.E
def parse_tgf(lines):
sharp = lines.index('#')
V = lines... |
ajaniv/softwarebook | refs/heads/master | cpython/apps/sb/util/views.py | 1 | from django.http import HttpResponseRedirect
from django.template import RequestContext
from django.shortcuts import render_to_response
from django.core.mail import send_mail
from apps.sb.util.forms import ContactForm
def contact_us(request):
if request.method == 'POST':
form = ContactForm(request.POST)... |
bjolivot/ansible | refs/heads/devel | lib/ansible/modules/windows/win_unzip.py | 50 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2015, Phil Schwartz <schwartzmx@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 ... |
agile-geoscience/welly | refs/heads/master | welly/scales.py | 1 | """
Custom scales for matplotlib.
:copyright: 2016 Joe Kington
Note: For the two scales, I've set the bounds such that you can never go
beyond a set range. This gives "stretchy" panning when you reach the ends
of a well. Sometimes you'll want it, sometimes you won't. In a lot of cases
(e.g. multiple wells or flatte... |
primaeval/script.tvguide.fullscreen | refs/heads/master | fileFetcher.py | 1 | # -*- coding: utf-8 -*-
#
# TV Guide Fullscreen
# Copyright (C) 2016 primaeval.dev@gmail.com
#
# Original for FTV Guide
# bluezed.apps@gmail.com
#
# Modified for TV Guide Fullscreen (2016)
# by primaeval - primaeval.dev@gmail.com
#
# This Program is free software; you can redistribute it and/or modi... |
cgstudiomap/cgstudiomap | refs/heads/develop | main/parts/odoo/openerp/addons/base/module/module.py | 83 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2014 OpenERP S.A. (<http://openerp.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of ... |
SerpentCS/odoo | refs/heads/8.0 | addons/product_email_template/__openerp__.py | 320 | # -*- coding: utf-8 -*-
{
'name': 'Product Email Template',
'depends': ['account'],
'author': 'OpenERP SA',
'category': 'Accounting & Finance',
'description': """
Add email templates to products to be send on invoice confirmation
==================================================================
W... |
arafsheikh/coala | refs/heads/master | coalib/parsing/DefaultArgParser.py | 2 | import argparse
import sys
from coalib.misc import Constants
def default_arg_parser(formatter_class=None):
"""
This function creates an ArgParser to parse command line arguments.
:param formatter_class: Formatting the arg_parser output into a specific
form. For example: In th... |
diplomacy/research | refs/heads/master | diplomacy_research/proto/diplomacy_tensorflow/python/saved_model/saved_object_graph_pb2.py | 1 | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: diplomacy_tensorflow/python/saved_model/saved_object_graph.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 _messa... |
simonwydooghe/ansible | refs/heads/devel | test/units/utils/test_context_objects.py | 68 | # -*- coding: utf-8 -*-
# Copyright: (c) 2018, Toshio Kuratomi <tkuratomi@ansible.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
import argparse
import pytest
from ansible.modul... |
breandan/java-algebra-system | refs/heads/master | examples/weyl_iter.py | 1 | #
# jruby examples for jas.
# $Id$
#
#from java.lang import System
#from java.lang import Integer
from jas import SolvableRing, SolvPolyRing, PolyRing
from jas import QQ, startLog, SRC, SRF
# Weyl coefficient field example
r = PolyRing(QQ(),"p1,q1");
#is automatic: [one,p1,q1] = p.gens();
relations = [q1, p1, p1 ... |
worldbit/worldbit | refs/heads/master | qa/rpc-tests/multi_rpc.py | 1 | #!/usr/bin/env python2
# Copyright (c) 2015 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Test mulitple rpc user config option rpcauth
#
from test_framework.test_framework import BitcoinTestFrame... |
ychen820/microblog | refs/heads/master | y/google-cloud-sdk/.install/.backup/lib/googlecloudsdk/compute/subcommands/project_info/remove_metadata.py | 6 | # Copyright 2014 Google Inc. All Rights Reserved.
"""Command for removing project-wide metadata."""
from googlecloudsdk.compute.lib import base_classes
class RemoveMetadata(base_classes.ProjectMetadataMutatorMixin,
base_classes.BaseMetadataRemover):
"""Remove project-wide metadata entries."""
... |
davidhawkes11/p3w | refs/heads/master | p3w_06.0d.3.py | 1 | # Code to ask for user's two favourite numbers, to operate on them and to display the output to the screen.
# Input: two numbers, integer variables
# Output: the result of a mathematical operation on the two numbers
# The above text is commentary. The actual program starts below:
print ("\n\n\nPython 3.0 Workbook... |
lordzuko/appengine-mapreduce | refs/heads/master | python/test/mapreduce/control_test.py | 15 | #!/usr/bin/env python
#
# Copyright 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 law o... |
hejuna/bite-project | refs/heads/master | deps/gdata-python-client/src/gdata/Crypto/Util/test.py | 228 | #
# test.py : Functions used for testing the modules
#
# Part of the Python Cryptography Toolkit
#
# Distribute and use freely; there are no restrictions on further
# dissemination and usage except those imposed by the laws of your
# country of residence. This software is provided "as is" without
# warranty of fitn... |
supriyantomaftuh/django | refs/heads/master | tests/utils_tests/test_datetime_safe.py | 207 | import unittest
from datetime import (
date as original_date, datetime as original_datetime,
time as original_time,
)
from django.utils.datetime_safe import date, datetime, time
class DatetimeTests(unittest.TestCase):
def setUp(self):
self.just_safe = (1900, 1, 1)
self.just_unsafe = (189... |
craftytrickster/servo | refs/heads/master | tests/wpt/web-platform-tests/tools/py/py/_code/source.py | 174 | from __future__ import generators
from bisect import bisect_right
import sys
import inspect, tokenize
import py
from types import ModuleType
cpy_compile = compile
try:
import _ast
from _ast import PyCF_ONLY_AST as _AST_FLAG
except ImportError:
_AST_FLAG = 0
_ast = None
class Source(object):
""" ... |
babyliynfg/cross | refs/heads/master | tools/project-creator/Python2.6.6/Lib/test/test_lib2to3.py | 1 | # Skipping test_parser and test_all_fixers
# because of running
from lib2to3.tests import test_fixers, test_pytree, test_util, test_refactor
import unittest
from test.test_support import run_unittest
def suite():
tests = unittest.TestSuite()
loader = unittest.TestLoader()
for m in (test_fixers,tes... |
NREL/OpenWARP | refs/heads/master | Contest_Output/Test_Case_Implementations/Part1/source/automated_test/Test1/RunNemoh_v5.py | 3 | import matlab.engine
import sys, getopt
# Change RunNemoh_v5.m as a function, so that you can pass different file names.
|
nickabattista/IB2d | refs/heads/master | pyIB2d/IBM_Blackbox/please_Update_Fluid_Velocity.py | 1 | '''-------------------------------------------------------------------------
IB2d is an Immersed Boundary Code (IB) for solving fully coupled non-linear
fluid-structure interaction models. This version of the code is based off of
Peskin's Immersed Boundary Method Paper in Acta Numerica, 2002.
Author: Nicholas A... |
mpakhomov/akka-io-demo | refs/heads/master | scripts/upstream.py | 1 | from __future__ import print_function
import threading
import socket
import struct
import time
from datetime import datetime
import random
TICKERS = ["AAPL", "GOOG", "MSFT", "SPY"]
PORT = 5555
def timestamp_millis(timestamp):
return int((timestamp - datetime.utcfromtimestamp(0)).total_seconds() * 1000.0)
def se... |
miltonruelas/cursotecnico | refs/heads/7.0 | branch/oemedical/oemedical_invoice/wizard/wizard_create_lab_invoice.py | 3 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2010 Adrián Bernardi, Mario Puntin
# $Id$
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of t... |
rfguri/vimfiles | refs/heads/master | bundle/ycm/third_party/ycmd/third_party/python-future/src/libpasteurize/fixes/fix_raise.py | 71 | u"""Fixer for 'raise E(V).with_traceback(T)' -> 'raise E, V, T'"""
from lib2to3 import fixer_base
from lib2to3.fixer_util import Comma, Node, Leaf, token, syms
class FixRaise(fixer_base.BaseFix):
PATTERN = u"""
raise_stmt< 'raise' (power< name=any [trailer< '(' val=any* ')' >]
[trailer< '.' 'with_tra... |
jnovinger/django | refs/heads/master | django/conf/locale/bn/formats.py | 575 | # -*- encoding: utf-8 -*-
# This file is distributed under the same license as the Django package.
#
from __future__ import unicode_literals
# The *_FORMAT strings use the Django date format syntax,
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = 'j F, Y'
TIME_FORMAT = 'g:i A'
# D... |
dasbruns/netzob | refs/heads/next | test/src/common/NetzobTestCase.py | 1 | # -*- coding: utf-8 -*-
#+---------------------------------------------------------------------------+
#| 01001110 01100101 01110100 01111010 01101111 01100010 |
#| |
#| Netzob : Inferring communication protocol... |
wupeiran/ursula | refs/heads/master | plugins/filters/sensu_filters.py | 18 |
def sensu_dependencies(check_name, hostvars, host_groups, check_groups):
deps = set()
check_groups = check_groups.split(',')
for group in check_groups:
if not group in host_groups:
continue
for host in host_groups[group]:
client_name = '{}.{}-{}'.format(host, hostva... |
DirtyUnicorns/android_external_chromium_org | refs/heads/lollipop | third_party/cython/src/Cython/Compiler/Main.py | 90 | #
# Cython Top Level
#
import os, sys, re, codecs
if sys.version_info[:2] < (2, 4):
sys.stderr.write("Sorry, Cython requires Python 2.4 or later\n")
sys.exit(1)
import Errors
# Do not import Parsing here, import it when needed, because Parsing imports
# Nodes, which globally needs debug command line options... |
nevillegrech/stdl | refs/heads/master | src/STDL/InitParams.py | 1 | from BaseClasses import *
from Exceptions import *
class InitParams(ParsedElement):
requiredParams=['language']
delimitedParams=['imports','language_imports']
possibleParams=set(requiredParams+delimitedParams+['valid_cs','invalid_cs','namespace','classname','runInSTA'])
def __init__(self,tokens=... |
erinn/ansible | refs/heads/devel | plugins/inventory/zone.py | 111 | #!/usr/bin/env python
# (c) 2015, Dagobert Michelsen <dam@baltic-online.de>
#
# 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
# ... |
hsuchie4/TACTIC | refs/heads/master | src/tactic/ui/panel/panel_wdg.py | 3 | ###########################################################
#
# 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... |
luksan/kodos | refs/heads/master | modules/version.py | 3 | VERSION="2.4.9"
|
kshitij10496/gh-scrapper | refs/heads/master | ghnotifier/tests/__init__.py | 12133432 | |
ehashman/oh-mainline | refs/heads/master | vendor/packages/Django/django/core/handlers/__init__.py | 12133432 | |
jmp0xf/raven-python | refs/heads/master | tests/utils/__init__.py | 12133432 | |
ghmajx/asuswrt-merlin | refs/heads/374.43_2-update | release/src/router/samba3/source/python/samba/__init__.py | 55 | """samba
Various Python modules for interfacing to Samba.
Try using help() to examine their documentation.
"""
|
molobrakos/home-assistant | refs/heads/master | tests/components/demo/test_notify.py | 7 | """The tests for the notify demo platform."""
import unittest
from unittest.mock import patch
import pytest
import voluptuous as vol
import homeassistant.components.notify as notify
from homeassistant.setup import setup_component
import homeassistant.components.demo.notify as demo
from homeassistant.core import callb... |
gazpachoking/Flexget | refs/heads/develop | flexget/plugins/generic/db_analyze.py | 13 | from __future__ import unicode_literals, division, absolute_import
from builtins import * # noqa pylint: disable=unused-import, redefined-builtin
import logging
from flexget.event import event
log = logging.getLogger('db_analyze')
# Run after the cleanup is actually finished
@event('manager.db_cleanup', 0)
def on... |
alimony/django | refs/heads/master | tests/migrations/test_migrations_no_ancestor/0002_second.py | 399 | from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("migrations", "0001_initial"),
]
operations = [
migrations.DeleteModel("Tribble"),
migrations.RemoveField("Author", "silly_field"),
migrations.AddField("Author", "rating",... |
fnaum/rez | refs/heads/master | src/rez/vendor/progress/helpers.py | 521 | # Copyright (c) 2012 Giorgos Verigakis <verigak@gmail.com>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE A... |
JsNoNo/scikit-learn | refs/heads/master | sklearn/tree/tree.py | 12 | """
This module gathers tree-based methods, including decision, regression and
randomized trees. Single and multi-output problems are both handled.
"""
# Authors: Gilles Louppe <g.louppe@gmail.com>
# Peter Prettenhofer <peter.prettenhofer@gmail.com>
# Brian Holt <bdholt1@gmail.com>
# Noel Da... |
SHDShim/pytheos | refs/heads/master | pytheos/conversion.py | 1 | import scipy.constants as constants
import numpy as np
def velocities_to_moduli(rho, v_phi, v_s):
"""
convert velocities to moduli
mainly to support Burnman operations
:param rho: density in kg/m^3
:param v_phi: bulk sound speed in m/s
:param v_s: shear velocity in m/s
:return: K_s and G
... |
deepchem/deepchem | refs/heads/master | deepchem/models/tests/test_attentivefp.py | 1 | import tempfile
import pytest
import numpy as np
import deepchem as dc
from deepchem.feat import MolGraphConvFeaturizer
from deepchem.models.tests.test_graph_models import get_dataset
try:
import dgl
import dgllife
import torch
from deepchem.models import AttentiveFPModel
has_torch_and_dgl = True
except:
... |
jwren/intellij-community | refs/heads/master | python/helpers/typeshed/tests/stubtest_unused.py | 7 | #!/usr/bin/env python3
# Runs stubtest and prints each unused whitelist entry with filename.
import os.path
import subprocess
import sys
from typing import List, Tuple
_UNUSED_NOTE = "note: unused allowlist entry "
_WHITELIST_PATH = os.path.join("tests", "stubtest_whitelists")
def main() -> int:
unused = run_s... |
jseabold/scikit-learn | refs/heads/master | examples/ensemble/plot_adaboost_hastie_10_2.py | 355 | """
=============================
Discrete versus Real AdaBoost
=============================
This example is based on Figure 10.2 from Hastie et al 2009 [1] and illustrates
the difference in performance between the discrete SAMME [2] boosting
algorithm and real SAMME.R boosting algorithm. Both algorithms are evaluate... |
xujb/odoo | refs/heads/8.0 | openerp/addons/test_convert/tests/test_convert.py | 382 | import collections
import unittest2
from lxml import etree as ET
from lxml.builder import E
from openerp.tests import common
from openerp.tools.convert import _eval_xml
Field = E.field
Value = E.value
class TestEvalXML(common.TransactionCase):
def eval_xml(self, node, obj=None, idref=None):
return _eval_... |
pomegranited/edx-platform | refs/heads/master | lms/wsgi.py | 77 | """
WSGI config for LMS.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments.
It exposes a module-level variable named ``application``. Django's
``runserver`` and ``runfcgi`` commands discover this application via the
``WSGI_APPLICATION`` setting.
"""
# Pa... |
upsuper/servo | refs/heads/master | tests/wpt/web-platform-tests/tools/third_party/pytest/testing/test_argcomplete.py | 13 | from __future__ import absolute_import, division, print_function
import py
import pytest
# test for _argcomplete but not specific for any application
def equal_with_bash(prefix, ffc, fc, out=None):
res = ffc(prefix)
res_bash = set(fc(prefix))
retval = set(res) == res_bash
if out:
out.write('e... |
DanielAttia/namebench | refs/heads/master | nb_third_party/graphy/line_chart.py | 205 | #!/usr/bin/python2.4
#
# Copyright 2008 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 law o... |
LSS-USP/kiskadee | refs/heads/master | alembic/versions/50988af48b09_create_fetcher_table.py | 1 | """create fetcher table.
Revision ID: 50988af48b09
Revises: 6daaf1d5cfee
Create Date: 2017-10-17 16:48:26.940294
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '50988af48b09'
down_revision = '6daaf1d5cfee'
branch_labels = None
depends_on = None
def upgrade()... |
winfisher/rmackay9-ardupilot | refs/heads/master | mk/PX4/Tools/genmsg/doc/conf.py | 214 | # -*- coding: utf-8 -*-
#
# genmsg documentation build configuration file, created by
# sphinx-quickstart on Wed Dec 14 07:48:35 2011.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All ... |
fitermay/intellij-community | refs/heads/master | python/testData/joinLines/StringOneQuotePlainRaw-after.py | 79 | print (r"See, \n separates two lines: " "this and\nthe other")
|
Lekensteyn/buildbot | refs/heads/master | master/buildbot/db/buildslaves.py | 11 | # This file is part of Buildbot. Buildbot is free software: you can
# redistribute it and/or modify it under the terms of the GNU General Public
# License as published by the Free Software Foundation, version 2.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without eve... |
cloudbau/nova | refs/heads/master | nova/api/openstack/compute/contrib/shelve.py | 11 | # Copyright 2013 Rackspace Hosting
#
# 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 agre... |
b0ttl3z/SickRage | refs/heads/master | lib/enzyme/__init__.py | 13 | # -*- coding: utf-8 -*-
__title__ = 'enzyme'
__version__ = '0.4.1'
__author__ = 'Antoine Bertin'
__license__ = 'Apache 2.0'
__copyright__ = 'Copyright 2013 Antoine Bertin'
import logging
from .exceptions import *
from .mkv import *
logging.getLogger(__name__).addHandler(logging.NullHandler())
|
pepetreshere/odoo | refs/heads/patch-2 | addons/mass_mailing_slides/__manifest__.py | 13 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'Mass mailing on course members',
'category': 'Hidden',
'version': '1.0',
'description':
"""
Mass mail course members
========================
Bridge module adding UX requirements to ea... |
chokribr/invenio | refs/heads/master | invenio/modules/workflows/tasks/__init__.py | 21 | # -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2014 CERN.
#
# Invenio is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later... |
ericmjl/bokeh | refs/heads/master | examples/custom/latex_extension_full/latex_extension_full.py | 2 | """ The LaTeX example was derived from: http://matplotlib.org/users/usetex.html. """
import numpy as np
from scipy.special import jv
from bokeh.ext import build
from bokeh.palettes import Spectral4
from bokeh.plotting import figure, output_file, show
from latex_label import LatexLabel
build("latex_label")
output_... |
ikargis/horizon_fod | refs/heads/master | openstack_dashboard/dashboards/project/routers/extensions/routerrules/__init__.py | 12133432 | |
mbareta/edx-platform-ft | refs/heads/open-release/eucalyptus.master | common/djangoapps/edxmako/management/__init__.py | 12133432 | |
Kalyzee/edx-platform | refs/heads/master | lms/djangoapps/courseware/tests/__init__.py | 101 | """
integration tests for xmodule
Contains:
1. BaseTestXmodule class provides course and users
for testing Xmodules with mongo store.
"""
from django.test.utils import override_settings
from django.core.urlresolvers import reverse
from django.test.client import Client
from edxmako.shortcuts import render_to... |
peterbraden/tensorflow | refs/heads/master | tensorflow/python/client/device_lib_test.py | 11 | # Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
Rygelouv/Images-bookmark-python- | refs/heads/master | images/forms.py | 1 | from django import forms
from django.core.files.base import ContentFile
from django.utils.text import slugify
import urllib3
from .models import Image
class ImageCreateForm(forms.ModelForm):
""" A form for creating a new image """
class Meta:
model = Image
fields = ('title', 'url', 'descript... |
ganeshrn/ansible | refs/heads/devel | test/integration/targets/wait_for/files/zombie.py | 29 | from __future__ import absolute_import, division, print_function
__metaclass__ = type
import os
import sys
import time
child_pid = os.fork()
if child_pid > 0:
time.sleep(60)
else:
sys.exit()
|
Anislav/Stream-Framework | refs/heads/master | feedly/settings.py | 5 | from default_settings import *
'''
Please fork and add hooks to import your custom settings system.
Right now we only support Django, but the intention is to support
any settings system
'''
def import_global_module(module, current_locals, current_globals, exceptions=None):
'''Import the requested module into the... |
0k/OpenUpgrade | refs/heads/8.0 | addons/base_iban/__openerp__.py | 52 | # -*- 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... |
PRIMEDesigner15/PRIMEDesigner15 | refs/heads/master | dependencies/Lib/test/unittests/subprocessdata/qgrep.py | 241 | """When called with a single argument, simulated fgrep with a single
argument and no options."""
import sys
if __name__ == "__main__":
pattern = sys.argv[1]
for line in sys.stdin:
if pattern in line:
sys.stdout.write(line)
|
tarzan0820/website-addons | refs/heads/8.0 | website_sale_auto_confirm_order/__openerp__.py | 3 | {
'name': "eCommerce: autoconfirm order",
'version': '1.0.0',
'author': 'Ivan Yelizariev',
'category': 'Custom',
'website': 'https://yelizariev.github.io',
'depends': ['website_sale'],
'data': [
'views.xml',
],
'installable': True,
}
|
loveshell/Mobile-Security-Framework-MobSF | refs/heads/master | DynamicAnalyzer/pyWebProxy/pywebproxy.py | 6 | #!/usr/bin/env python
'''
owtf is an OWASP+PTES-focused try to unite great tools & facilitate pentesting
Copyright (c) 2013, Abraham Aranguren <name.surname@gmail.com> http://7-a.org
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the ... |
nitroglycerine33/kernel_samsung_tuna | refs/heads/jb42 | tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/SchedGui.py | 12980 | # SchedGui.py - Python extension for perf script, basic GUI code for
# traces drawing and overview.
#
# Copyright (C) 2010 by Frederic Weisbecker <fweisbec@gmail.com>
#
# This software is distributed under the terms of the GNU General
# Public License ("GPL") version 2 as published by the Free Software
# Foundation.
... |
chergert/dia | refs/heads/master | plug-ins/python/dot.py | 10 | # PyDia DOT Renderer
# Copyright (c) 2005 Hans Breuer <hans@breuer.org>
# A Dia export filter based on the object export interface.
# Generating output in the DOT language. That can be processed
# with the dot tool from http://www.graphviz.org
# This program is free software; you can redistribute it and/or modify
... |
theanalyst/cinder | refs/heads/master | cinder/api/contrib/volume_unmanage.py | 4 | # Copyright 2014 IBM Corp.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... |
unioslo/cerebrum | refs/heads/master | Cerebrum/modules/event_publisher/converters.py | 1 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2015-2017 University of Oslo, Norway
#
# This file is part of Cerebrum.
#
# Cerebrum 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... |
jimboatarm/workload-automation | refs/heads/master | wlauto/tests/test_device.py | 5 | # Copyright 2013-2015 ARM Limited
#
# 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... |
lavjain/incubator-hawq | refs/heads/master | tools/bin/pythonSrc/pychecker-0.8.18/test_input/test41.py | 11 | 'd'
def x(): pass
def x(): pass
class X:
'first use okay'
class X:
'reuse not okay'
class Y:
'should warning about x being redefined'
def x(self): pass
def x(self): pass
class Z:
'should not be a warning'
def x(self): pass
|
g3rd/Expo | refs/heads/master | dailynews/dailynews/__init__.py | 12133432 | |
suneeth51/neutron | refs/heads/master | neutron/tests/unit/plugins/brocade/__init__.py | 12133432 | |
vinayan3/clpricehistory | refs/heads/master | django/core/template_loader.py | 382 | # This module is DEPRECATED!
#
# You should no longer be using django.template_loader.
#
# Use django.template.loader instead.
from django.template.loader import *
|
felliott/osf.io | refs/heads/develop | website/settings/defaults.py | 1 | # -*- coding: utf-8 -*-
"""
Base settings file, common to all environments.
These settings can be overridden in local.py.
"""
import datetime
import os
import json
import hashlib
import logging
from datetime import timedelta
from collections import OrderedDict
import enum
os_env = os.environ
def parent_dir(path):
... |
ppizarror/Hero-of-Antair | refs/heads/master | bin/mechanize/__init__.py | 3 | __all__ = [
'AbstractBasicAuthHandler',
'AbstractDigestAuthHandler',
'BaseHandler',
'Browser',
'BrowserStateError',
'CacheFTPHandler',
'ContentTooShortError',
'Cookie',
'CookieJar',
'CookiePolicy',
'DefaultCookiePolicy',
'DefaultFactory',
'FTPHandler',
'Factory',
... |
gurneyalex/stock-logistics-warehouse | refs/heads/7.0 | stock_lot_valuation/product.py | 21 | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2013 Agile Business Group sagl (<http://www.agilebg.com>)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public Licen... |
hectord/lettuce | refs/heads/master | tests/integration/lib/Django-1.3/tests/regressiontests/views/tests/i18n.py | 48 | # -*- coding:utf-8 -*-
import gettext
from os import path
from django.conf import settings
from django.test import TestCase
from django.utils.translation import activate, deactivate
from django.utils.text import javascript_quote
from regressiontests.views.urls import locale_dir
class I18NTests(TestCase):
""" Tes... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.