repo_name stringlengths 5 100 | ref stringlengths 12 67 | path stringlengths 4 244 | copies stringlengths 1 8 | content stringlengths 0 1.05M ⌀ |
|---|---|---|---|---|
halberom/ansible-modules-extras | refs/heads/devel | monitoring/nagios.py | 37 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# This file is largely copied from the Nagios module included in the
# Func project. Original copyright follows:
#
# func-nagios - Schedule downtime and enables/disable notifications
# Copyright 2011, Red Hat, Inc.
# Tim Bielawa <tbielawa@redhat.com>
#
# This software may be ... |
telefonicaid/orchestrator | refs/heads/master | src/tests/core/__init__.py | 12133432 | |
riteshshrv/django | refs/heads/master | tests/test_discovery_sample/__init__.py | 12133432 | |
crichardson17/starburst_atlas | refs/heads/master | Low_resolution_sims/Dusty_LowRes/Geneva_inst_Rot/Geneva_inst_Rot_2/fullgrid/UV1.py | 31 | import csv
import matplotlib.pyplot as plt
from numpy import *
import scipy.interpolate
import math
from pylab import *
from matplotlib.ticker import MultipleLocator, FormatStrFormatter
import matplotlib.patches as patches
from matplotlib.path import Path
import os
# --------------------------------------------------... |
a40223217/2015cd_midterm | refs/heads/master | static/Brython3.1.1-20150328-091302/Lib/unittest/test/testmock/testwith.py | 739 | import unittest
from warnings import catch_warnings
from unittest.test.testmock.support import is_instance
from unittest.mock import MagicMock, Mock, patch, sentinel, mock_open, call
something = sentinel.Something
something_else = sentinel.SomethingElse
class WithTest(unittest.TestCase):
def test_with_sta... |
ArcherSys/ArcherSys | refs/heads/master | Lib/distutils/cygwinccompiler.py | 1 | <<<<<<< HEAD
<<<<<<< HEAD
"""distutils.cygwinccompiler
Provides the CygwinCCompiler class, a subclass of UnixCCompiler that
handles the Cygwin port of the GNU C compiler to Windows. It also contains
the Mingw32CCompiler class which handles the mingw32 port of GCC (same as
cygwin in no-cygwin mode).
"""
# problems:
#... |
ifduyue/tornado | refs/heads/master | maint/test/websocket/client.py | 111 | #!/usr/bin/env python
import logging
from tornado import gen
from tornado.ioloop import IOLoop
from tornado.options import define, options, parse_command_line
from tornado.websocket import websocket_connect
define('url', default='ws://localhost:9001')
define('name', default='Tornado')
@gen.engine
def run_tests():
... |
Thor77/youtube-dl | refs/heads/master | youtube_dl/extractor/vgtv.py | 13 | # coding: utf-8
from __future__ import unicode_literals
import re
from .common import InfoExtractor
from .xstream import XstreamIE
from ..utils import (
ExtractorError,
float_or_none,
)
class VGTVIE(XstreamIE):
IE_DESC = 'VGTV, BTTV, FTV, Aftenposten and Aftonbladet'
_HOST_TO_APPNAME = {
'v... |
jnayak1/osf.io | refs/heads/develop | website/project/metadata/schemas.py | 2 | import os
import json
LATEST_SCHEMA_VERSION = 2
def _id_to_name(id):
return ' '.join(id.split('_'))
def _name_to_id(name):
return '_'.join(name.split(' '))
def ensure_schema_structure(schema):
schema['pages'] = schema.get('pages', [])
schema['title'] = schema['name']
schema['version'] = schema.g... |
HonzaKral/django | refs/heads/master | tests/get_earliest_or_latest/tests.py | 326 | from __future__ import unicode_literals
from datetime import datetime
from django.test import TestCase
from .models import Article, IndexErrorArticle, Person
class EarliestOrLatestTests(TestCase):
"""Tests for the earliest() and latest() objects methods"""
def tearDown(self):
"""Makes sure Article... |
crawln45/Flexget | refs/heads/develop | flexget/tests/api_tests/test_status_api.py | 9 | from __future__ import unicode_literals, division, absolute_import
from datetime import datetime, timedelta
from builtins import * # noqa pylint: disable=unused-import, redefined-builtin
from flexget.api.app import base_message
from flexget.manager import Session
from flexget.api.plugins.status import ObjectsContai... |
gfreed/android_external_chromium-org | refs/heads/android-4.4 | build/win/importlibs/create_importlib_win.py | 185 | #!/usr/bin/env python
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
"""Creates an import library from an import description file."""
import ast
import logging
import optparse
import os
import os.pat... |
eyp-developers/statistics | refs/heads/master | statistics/tests/test_session.py | 1 | from django.test import TestCase
from django.urls import reverse
from django.contrib.auth.models import User
from ..models import Session, Committee
from .helpers import create_session, create_committee, create_user_max, ips_1_p, lor_1_p
class SessionViewTests(TestCase):
def setUp(self):
self.user = cre... |
fabioz/PyDev.Debugger | refs/heads/master | third_party/pep8/lib2to3/lib2to3/fixes/fix_paren.py | 327 | """Fixer that addes parentheses where they are required
This converts ``[x for x in 1, 2]`` to ``[x for x in (1, 2)]``."""
# By Taek Joo Kim and Benjamin Peterson
# Local imports
from .. import fixer_base
from ..fixer_util import LParen, RParen
# XXX This doesn't support nested for loops like [x for x in 1, 2 for x... |
devs1991/test_edx_docmode | refs/heads/master | venv/lib/python2.7/site-packages/testtools/tests/test_testcase.py | 2 | # Copyright (c) 2008-2012 testtools developers. See LICENSE for details.
"""Tests for extensions to the base test library."""
from doctest import ELLIPSIS
from pprint import pformat
import sys
import unittest
from testtools import (
DecorateTestCaseResult,
ErrorHolder,
MultipleExceptions,
PlaceHolder... |
rcrowder/nupic | refs/heads/master | examples/opf/experiments/classification/scalar_TP_0/description.py | 10 | # ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2013, 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 progra... |
lociii/googleads-python-lib | refs/heads/master | examples/adspygoogle/dfp/v201306/creative_wrapper_service/create_creative_wrappers.py | 3 | #!/usr/bin/python
#
# Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... |
mattmccarthy11/vidly-development | refs/heads/master | mediadrop/bk/templates/players/__init__.py | 12133432 | |
wjlei1990/pypaw | refs/heads/master | scripts/window_counts/__init__.py | 12133432 | |
nutztherookie/wagtail | refs/heads/master | wagtail/wagtailsites/__init__.py | 12133432 | |
susuchina/bench | refs/heads/master | bench/__init__.py | 12133432 | |
talishte/ctigre | refs/heads/master | env/lib/python2.7/site-packages/Crypto/SelfTest/PublicKey/__init__.py | 114 | # -*- coding: utf-8 -*-
#
# SelfTest/PublicKey/__init__.py: Self-test for public key crypto
#
# Written in 2008 by Dwayne C. Litzenberger <dlitz@dlitz.net>
#
# ===================================================================
# The contents of this file are dedicated to the public domain. To
# the extent that dedic... |
speidy/redemption | refs/heads/master | tools/sesman/sesmanworker/wab/engine.py | 2 | #!/usr/bin/python
# -*- coding: utf-8 -*-
DEFAULT_CONF_DIR = "/var/wab/etc/"
DEFAULT_SPEC_DIR = "/opt/wab/share/conf/"
from logger import Logger
try:
from wabengine.common.exception import AuthenticationFailed
from wabengine.common.exception import AuthenticationChallenged
from wabengine.common.exception im... |
kenshay/ImageScripter | refs/heads/master | ProgramData/SystemFiles/Python/Lib/site-packages/OpenGL/GLES2/ANGLE/texture_compression_dxt3.py | 8 | '''OpenGL extension ANGLE.texture_compression_dxt3
This module customises the behaviour of the
OpenGL.raw.GLES2.ANGLE.texture_compression_dxt3 to provide a more
Python-friendly API
The official definition of this extension is available here:
http://www.opengl.org/registry/specs/ANGLE/texture_compression_dxt3.txt
''... |
crisely09/horton | refs/heads/master | horton/grid/test/test_base.py | 1 | # -*- coding: utf-8 -*-
# HORTON: Helpful Open-source Research TOol for N-fermion systems.
# Copyright (C) 2011-2016 The HORTON Development Team
#
# This file is part of HORTON.
#
# HORTON is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by th... |
JuanjoA/l10n-spain | refs/heads/8.0 | l10n_es_aeat_mod123/__openerp__.py | 3 | # -*- coding: utf-8 -*-
# 2016 Pedro M. Baeza <pedro.baeza@tecnativa.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': 'AEAT modelo 123',
'version': '8.0.1.1.0',
'category': "Localisation/Accounting",
'author': "Tecnativa, "
"Spanish Localization Team, "
... |
staranjeet/fjord | refs/heads/master | vendor/packages/translate-toolkit/translate/lang/am.py | 30 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2007 Zuza Software Foundation
#
# This file is part of translate.
#
# translate is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of t... |
Pakoach/Sick-Beard | refs/heads/master | sickbeard/clients/requests/packages/charade/__init__.py | 122 | ######################## BEGIN LICENSE BLOCK ########################
# This library 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 2.1 of the License, or (at your option) any late... |
naparuba/kunai | refs/heads/master | data/global-configuration/packs/mongodb/collectors/pymongo/server_description.py | 19 | # Copyright 2014-2015 MongoDB, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... |
shreyshahi/kiknetAPI | refs/heads/master | kiknet_tests.py | 1 | '''
nose tests for the kiknet api
'''
import kiknet
from itertools import izip
def check_equals_returnsData(M):
data = kiknet.paramEquals('MwFnet', M, ['gmNo' , 'MwFnet' , 'gmStatus4Components'])
assert len(data) > 0
def test_equals_returnsData():
mags = [4.0 , 4.5 , 5.1 , 5.5 , 6.1]
for mag in mags:... |
kskalski/grpc | refs/heads/master | tools/buildgen/bunch.py | 14 | # Copyright 2015 gRPC authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... |
naucoin/VTKSlicerWidgets | refs/heads/master | Common/Testing/Python/TestGhost.py | 20 | """Test ghost object support in VTK-Python
When PyVTKObject is destroyed, the vtkObjectBase that it
contained often continues to exist because references to
it still exist within VTK. When that vtkObjectBase is
returned to python, a new PyVTKObject is created.
If the PyVTKObject has a custom class or a custom dict,
... |
OSSESAC/odoopubarquiluz | refs/heads/7.0 | addons/l10n_lu/wizard/__init__.py | 63 | # -*- 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... |
mewtaylor/django | refs/heads/master | scripts/manage_translations.py | 277 | #!/usr/bin/env python
#
# This python file contains utility scripts to manage Django translations.
# It has to be run inside the django git root directory.
#
# The following commands are available:
#
# * update_catalogs: check for new strings in core and contrib catalogs, and
# output how much string... |
feroda/odoo | refs/heads/pos-multicurrency | addons/account_asset/__init__.py | 446 | # -*- encoding: 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 t... |
SIFTeam/enigma2 | refs/heads/master | lib/python/SIFTeam/SoftwareManager/Stack.py | 2 | from enigma import *
from Screens.Standby import TryQuitMainloop
from Components.PluginComponent import plugins
from Tools.Directories import resolveFilename, SCOPE_PLUGINS
from SIFTeam.Extra.SAPCL import SAPCL
from SIFTeam.Extra.ExtraMessageBox import ExtraMessageBox
import time
class SMStack(object):
INSTALL = 0
... |
Aaron-DH/report | refs/heads/master | report/exception.py | 1 | # Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# 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 ... |
Azulinho/ansible | refs/heads/devel | test/units/module_utils/json_utils/__init__.py | 12133432 | |
denis-pitul/django | refs/heads/master | tests/forms_tests/tests/__init__.py | 12133432 | |
GunnerJnr/_CodeInstitute | refs/heads/master | Stream-3/Full-Stack-Development/19.Djangos-Testing-Framework/1.How-to-Setup-Your-Test-Suite/we_are_social/magazines/migrations/__init__.py | 12133432 | |
bfirsh/django-old | refs/heads/master | tests/regressiontests/dateformat/__init__.py | 12133432 | |
lz1988/django-web2015 | refs/heads/master | django/contrib/staticfiles/models.py | 12133432 | |
sushramesh/lwc | refs/heads/master | lib/python2.7/site-packages/django/conf/locale/da/__init__.py | 12133432 | |
bthirion/nipy | refs/heads/master | nipy/io/api.py | 6 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
from .files import load as load_image, save as save_image, as_image
|
bowenliu16/deepchem | refs/heads/master | examples/pdbbind/pdbbind_rf.py | 3 | """
Script that trains Sklearn RF models on PDBbind dataset.
"""
from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals
__author__ = "Bharath Ramsundar"
__copyright__ = "Copyright 2016, Stanford University"
__license__ = "GPL"
import os
import deepchem as dc
impo... |
ddierschow/bamca | refs/heads/master | bin/mflags.py | 1 | #!/usr/local/bin/python
import config
import mbdata
import useful
# US|United States Minor Outlying Islands|UM|PA|us
# this version doesn't do subdivisions
class FlagList(object): # interprets "175.dat"
def __init__(self):
self.isolist = mbdata.countries
self.lookup = {x[0]: x[1] for x in self... |
kimegitee/python-koans | refs/heads/master | python2/koans/about_with_statements.py | 69 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Based on AboutSandwichCode in the Ruby Koans
#
from runner.koan import *
import re # For regular expression string comparisons
class AboutWithStatements(Koan):
def count_lines(self, file_name):
try:
f = open(file_name)
try:
... |
pombredanne/parakeet | refs/heads/master | test/algorithms/test_matmult_allpairs.py | 2 | import numpy as np
from parakeet import jit, allpairs
from parakeet.testing_helpers import run_local_tests, expect
int_mat = np.reshape(np.arange(6), (2,3))
float_mat = np.sqrt(int_mat)
bool_mat = int_mat % 2
matrices = [int_mat, float_mat, bool_mat]
@jit
def dot(x,y):
return sum(x*y)
@jit
def matmult_a... |
agualis/test-django-nonrel | refs/heads/master | django/contrib/contenttypes/views.py | 295 | from django import http
from django.contrib.contenttypes.models import ContentType
from django.contrib.sites.models import Site, get_current_site
from django.core.exceptions import ObjectDoesNotExist
def shortcut(request, content_type_id, object_id):
"Redirect to an object's page based on a content-type ID and an ... |
tizianasellitto/servo | refs/heads/master | tests/wpt/web-platform-tests/tools/pywebsocket/src/mod_pywebsocket/stream.py | 673 | # 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... |
jeremiahyan/odoo | refs/heads/master | odoo/addons/base/models/ir_translation.py | 2 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import hashlib
import itertools
import json
import logging
import operator
from collections import defaultdict
from difflib import get_close_matches
from odoo import api, fields, models, tools, SUPERUSER_ID, _
from odoo.... |
davduran/thumbor | refs/heads/master | tests/filters/test_noise.py | 4 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# thumbor imaging service
# https://github.com/thumbor/thumbor/wiki
# Licensed under the MIT license:
# http://www.opensource.org/licenses/mit-license
# Copyright (c) 2011 globo.com thumbor@googlegroups.com
import unittest
from preggy import expect
from tests.base import ... |
syskill/snowy | refs/heads/master | notes/templatetags/__init__.py | 12133432 | |
errx/django | refs/heads/master | django/conf/locale/ka/__init__.py | 12133432 | |
Jaccorot/django-cms | refs/heads/develop | cms/test_utils/project/sampleapp/south_migrations/__init__.py | 12133432 | |
yakky/django-cms | refs/heads/develop | cms/test_utils/project/pluginapp/plugins/__init__.py | 12133432 | |
aeppert/diaphora | refs/heads/master | pygments/lexers/pascal.py | 10 | # -*- coding: utf-8 -*-
"""
pygments.lexers.pascal
~~~~~~~~~~~~~~~~~~~~~~
Lexers for Pascal family languages.
:copyright: Copyright 2006-2015 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import re
from pygments.lexer import Lexer, RegexLexer, include, bygroups, ... |
BT-astauder/odoo | refs/heads/8.0 | addons/sale/report/sale_report.py | 84 | # -*- 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... |
jd-delatorre/professional-js | refs/heads/master | node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py | 1283 | # 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.
"""
This module contains classes that help to emulate xcodebuild behavior on top of
other build systems, such as make and ninja.
"""
import copy
import gyp.common... |
vyral/obsidian-core | refs/heads/master | src/navigation/BrowserArray.py | 2 | import logging
class BrowserArray:
def __init__(self, *browsertuple):
self.browsers = browsertuple
self.logger = logging.getLogger('obs.BrowserArray')
def get(self, url, cookie=None):
"""
Propagate the get() method.
Adds stage cookie if needed.
"""
for ... |
firmanm/ansible | refs/heads/devel | test/integration/cleanup_gce.py | 163 | '''
Find and delete GCE resources matching the provided --match string. Unless
--yes|-y is provided, the prompt for confirmation prior to deleting resources.
Please use caution, you can easily delete your *ENTIRE* GCE infrastructure.
'''
import os
import re
import sys
import optparse
import yaml
try:
from libclo... |
maniteja123/scipy | refs/heads/master | scipy/special/utils/makenpz.py | 85 | #!/bin/bash
"""
makenpz.py DIRECTORY
Build a npz containing all data files in the directory.
"""
from __future__ import division, print_function, absolute_import
import os
import numpy as np
from optparse import OptionParser
def main():
p = OptionParser()
options, args = p.parse_args()
if len(args) !... |
F5Networks/f5-common-python | refs/heads/development | f5/bigip/tm/sys/test/unit/__init__.py | 12133432 | |
ogenstad/ansible | refs/heads/devel | lib/ansible/modules/database/mysql/__init__.py | 12133432 | |
bop/foundation | refs/heads/master | lib/python2.7/site-packages/django/contrib/markup/templatetags/__init__.py | 12133432 | |
martinrotter/textilosaurus | refs/heads/master | src/libtextosaurus/3rd-party/scintilla/scripts/__init__.py | 12133432 | |
tedder/ansible | refs/heads/devel | lib/ansible/module_utils/network/nso/__init__.py | 12133432 | |
av8ramit/tensorflow | refs/heads/master | tensorflow/contrib/tensor_forest/hybrid/python/models/forest_to_data_then_nn.py | 190 | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... |
40223243/0000000 | refs/heads/master | static/Brython3.1.1-20150328-091302/Lib/unittest/test/test_suite.py | 791 | import unittest
import sys
from .support import LoggingResult, TestEquality
### Support code for Test_TestSuite
################################################################
class Test(object):
class Foo(unittest.TestCase):
def test_1(self): pass
def test_2(self): pass
def test_3(self... |
Cangjians/ibus-cangjie | refs/heads/master | tests/__init__.py | 12133432 | |
hkawasaki/kawasaki-aio8-2 | refs/heads/gacco2/0701_kim_again | lms/djangoapps/linkedin/migrations/__init__.py | 12133432 | |
Antiun/yelizariev-saas | refs/heads/8.0 | saas_portal_demo_example/__init__.py | 12133432 | |
IllusionRom-deprecated/android_platform_tools_idea | refs/heads/master | python/lib/Lib/site-packages/django/core/management/commands/__init__.py | 12133432 | |
megaumi/django | refs/heads/master | django/conf/locale/kn/__init__.py | 12133432 | |
fedesanchez/suite-3.1 | refs/heads/master | test/plans/basic/swap.py | 2 | f = open('wfs-getfeature.csv')
for line in f:
split = line.split(";")
bbox = split[1].strip().split(',')
print "%s;%s,%s,%s,%s" % (split[0], bbox[1],bbox[0],bbox[3],bbox[2])
|
jpshort/odoo | refs/heads/8.0 | comunity_modules/project_scrum/tests/__init__.py | 4 | <<<<<<< HEAD
# -*- coding: utf-8 -*-
=======
from . import test_project_scrum
>>>>>>> 98f9e11dfdbfb3f05eae480eca7d7a606b50808a
|
fluks/youtube-dl | refs/heads/master | youtube_dl/extractor/franceculture.py | 21 | # coding: utf-8
from __future__ import unicode_literals
import json
import re
from .common import InfoExtractor
from ..compat import (
compat_parse_qs,
compat_urlparse,
)
class FranceCultureIE(InfoExtractor):
_VALID_URL = r'(?P<baseurl>http://(?:www\.)?franceculture\.fr/)player/reecouter\?play=(?P<id>[0... |
XianwuLin/vscan | refs/heads/master | server/linxianwu/3/handler/__init__.py | 8 | #!/usr/bin/env python
# -*- coding:utf-8 -*-
#
# Author : Victor Lin
# E-mail : linxianwusx@gmail.com
# Date : 15/01/31 19:07:34
#
from MainHandler import *
from GetQrcodeContent import *
from FreeQc import *
|
ubiar/odoo | refs/heads/8.0 | addons/account_anglo_saxon/purchase.py | 427 | # -*- encoding: 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 t... |
Karlon/pychess | refs/heads/master | lib/pychess/System/cairoextras.py | 22 | # from: http://cairographics.org/freetypepython/
import ctypes
import cairo
class FreeTypeLibInitializationFailed(Exception):
pass
class PycairoContext(ctypes.Structure):
_fields_ = [("PyObject_HEAD", ctypes.c_byte * object.__basicsize__),
("ctx", ctypes.c_void_p),
("base", ctypes.c_void_p)]
... |
uwekamper/fester | refs/heads/master | hue.py | 1 | #!/usr/bin/env python
import requests
import json
import time
import random
from fester.integrate import QeoApi
hue = {}
CALM_COLORS = [(13122, 211, 144), ]
ENERGY_COLORS = [(13122, 211, 253), (13122, 211, 253), (47175, 211, 253)]
HAPPY_COLORS = [(16352, 45, 237), (60234, 253, 230), (47124, 253, 177)]
SAD_COLORS = ... |
nekulin/arangodb | refs/heads/devel | 3rdParty/V8-4.3.61/third_party/python_26/Lib/StringIO.py | 150 | r"""File-like objects that read from or write to a string buffer.
This implements (nearly) all stdio methods.
f = StringIO() # ready for writing
f = StringIO(buf) # ready for reading
f.close() # explicitly release resources held
flag = f.isatty() # always false
pos = f.tell() # get current pos... |
Meriipu/quodlibet | refs/heads/master | tests/test_qltk_cbes.py | 4 | # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
from tests import TestCase, mkstemp
import os
from quodlibet.qltk.cbe... |
toumorokoshi/transmute-core | refs/heads/master | transmute_core/frameworks/flask/route.py | 2 | from transmute_core import (
describe, default_context, TransmuteFunction
)
from transmute_core.swagger import SwaggerSpec
from .handler import create_routes_and_handler
from .swagger import SWAGGER_ATTR_NAME
def route(app_or_blueprint, context=default_context, **kwargs):
""" attach a transmute route. """
... |
Maximilian-Reuter/SickRage-1 | refs/heads/master | lib/dogpile/cache/backends/memory.py | 47 | """
Memory Backends
---------------
Provides simple dictionary-based backends.
The two backends are :class:`.MemoryBackend` and :class:`.MemoryPickleBackend`;
the latter applies a serialization step to cached values while the former
places the value as given into the dictionary.
"""
from dogpile.cache.api import Ca... |
anhstudios/swganh | refs/heads/develop | data/scripts/templates/object/mobile/shared_dressed_stranded_rebel_soldier.py | 2 | #### NOTICE: THIS FILE IS AUTOGENERATED
#### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY
#### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES
from swgpy.object import *
def create(kernel):
result = Creature()
result.template = "object/mobile/shared_dressed_stranded_rebel_soldier.iff"
result.attribute_template_... |
mpetyx/palmdrop | refs/heads/master | venv/lib/python2.7/site-packages/django/conf/locale/bg/__init__.py | 12133432 | |
kapt/django-oscar | refs/heads/master | tests/_site/shipping/models.py | 12133432 | |
alvaroaleman/ansible-modules-core | refs/heads/devel | files/__init__.py | 12133432 | |
GdZ/scriptfile | refs/heads/master | software/googleAppEngine/lib/django_1_2/tests/regressiontests/admin_ordering/__init__.py | 12133432 | |
vishnugonela/boto | refs/heads/develop | tests/unit/ec2/elb/__init__.py | 12133432 | |
shobute/go-slack | refs/heads/master | test/__init__.py | 12133432 | |
google/loaner | refs/heads/master | loaner/web_app/backend/lib/api_utils.py | 1 | # Copyright 2018 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... |
quatrilio/xi | refs/heads/master | xiweb_files/localization.py | 1 | # Please, order alphabetically
translation = {}
translation["{0} does not exist"] = {'ca_ES': "{0} no existeix"}
translation["{0} is not a file (it's possibly directory)"] = {'ca_ES': "{0} no és un arxiu (possiblement és un directori)", 'es_ES': "{0} no es un archivo (posiblemente es un directorio)"}
translation["{0} i... |
edx/luigi | refs/heads/master | luigi/task_register.py | 15 | # -*- coding: utf-8 -*-
#
# Copyright 2012-2015 Spotify AB
#
# 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... |
Chuban/moose | refs/heads/devel | python/chigger/geometric/LineSource.py | 6 | #pylint: disable=missing-docstring
#################################################################
# DO NOT MODIFY THIS HEADER #
# MOOSE - Multiphysics Object Oriented Simulation Environment #
# #
# (c) 2010... |
localwiki/localwiki-backend-server | refs/heads/master | localwiki/links/migrations/0001_initial.py | 3 | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Link'
db.create_table('links_link', (
('id', self.gf('django.db.models.fields.Au... |
chauhanmohit/phantomjs | refs/heads/master | src/breakpad/src/tools/gyp/test/no-output/gyptest-no-output.py | 151 | #!/usr/bin/env python
# Copyright (c) 2009 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.
"""
Verified things don't explode when there are targets without outputs.
"""
import TestGyp
test = TestGyp.TestGyp()
test.run_gyp('noout... |
mezz64/home-assistant | refs/heads/dev | homeassistant/components/manual_mqtt/__init__.py | 36 | """The manual_mqtt component."""
|
thinkAmi-sandbox/Django_Class_based_view_Sample | refs/heads/master | myproject/__init__.py | 12133432 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.