repo_name stringlengths 5 100 | ref stringlengths 12 67 | path stringlengths 4 244 | copies stringlengths 1 8 | content stringlengths 0 1.05M ⌀ |
|---|---|---|---|---|
kursitet/edx-platform | refs/heads/master | lms/djangoapps/lti_provider/migrations/__init__.py | 12133432 | |
yanheven/neutron | refs/heads/master | neutron/tests/unit/agent/linux/test_external_process.py | 10 | # Copyright 2012 New Dream Network, LLC (DreamHost)
#
# 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 a... |
dariemp/odoo | refs/heads/8.0 | addons/payment_buckaroo/models/buckaroo.py | 209 | # -*- coding: utf-'8' "-*-"
from hashlib import sha1
import logging
import urlparse
from openerp.addons.payment.models.payment_acquirer import ValidationError
from openerp.addons.payment_buckaroo.controllers.main import BuckarooController
from openerp.osv import osv, fields
from openerp.tools.float_utils import float_... |
aptana/Pydev | refs/heads/development | bundles/org.python.pydev/pysrc/tests_python/_debugger_case3.py | 104 | import time
if __name__ == '__main__':
for i in range(15):
print('here')
time.sleep(.2)
print('TEST SUCEEDED')
|
drawks/ansible | refs/heads/devel | lib/ansible/modules/database/postgresql/postgresql_idx.py | 7 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2018, Andrey Klychkov (@Andersson007) <[email protected]>
# 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
ANSIBLE_METADATA = {... |
veger/ansible | refs/heads/devel | lib/ansible/modules/monitoring/zabbix/zabbix_proxy.py | 7 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2017, Alen Komic
#
# 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 opti... |
makiftasova/rpi-auxdisplay | refs/heads/master | client/datetimedaemon.py | 1 | import datetime
import json
import logging
import utils
class DateTimeDaemon(utils.LoopTask):
__DATA_TYPE = 'datetime'
def __init__(self, display, interval=0.25):
super(DateTimeDaemon, self).__init__(interval=interval, name="datetimedaemon-thread")
self.display = display
self.logger ... |
casanovainformationservices/LazyLibrarian | refs/heads/master | cherrypy/tutorial/tut01_helloworld.py | 7 | """
Tutorial - Hello World
The most basic (working) CherryPy application possible.
"""
# Import CherryPy global namespace
import cherrypy
class HelloWorld:
""" Sample request handler class. """
# Expose the index method through the web. CherryPy will never
# publish methods that don't have the exposed... |
attakei/readthedocs-oauth | refs/heads/master | readthedocs/__init__.py | 12133432 | |
faun/django_test | refs/heads/master | tests/regressiontests/staticfiles_tests/apps/__init__.py | 12133432 | |
Pajinek/spacewalk | refs/heads/master | backend/server/test/unit-test/rhnSQL/test_rhnChannel.py | 12 | #!/usr/bin/python
#
# Copyright (c) 2008--2015 Red Hat, Inc.
#
# This software is licensed to you under the GNU General Public License,
# version 2 (GPLv2). There is NO WARRANTY for this software, express or
# implied, including the implied warranties of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. You should... |
lsaffre/lino | refs/heads/master | lino/modlib/smtpd/signals.py | 1 | # -*- coding: UTF-8 -*-
# Copyright 2014-2017 Rumma & Ko Ltd
# License: BSD (see file COPYING for details)
from django.dispatch import Signal
mail_received = Signal(['msg'])
"""Sent for every incoming mail.
sender:
the Site instance
peer, mailfrom, rcpttos, data:
are those passed to the standard Python
... |
trueblue2704/AskMeAnything | refs/heads/master | lib/python2.7/site-packages/pip/_vendor/html5lib/treewalkers/lxmletree.py | 124 | from __future__ import absolute_import, division, unicode_literals
from pip._vendor.six import text_type
from lxml import etree
from ..treebuilders.etree import tag_regexp
from gettext import gettext
_ = gettext
from . import _base
from .. import ihatexml
def ensure_str(s):
if s is None:
return None
... |
photoninger/ansible | refs/heads/devel | lib/ansible/modules/network/system/net_ping.py | 9 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2017, Ansible by Red Hat, inc
# 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
ANSIBLE_METADATA = {'metadata_version': '1.1',
... |
xyzz/vcmi-build | refs/heads/master | project/jni/python/src/Demo/tkinter/guido/svkill.py | 47 | #! /usr/bin/env python
# Tkinter interface to SYSV `ps' and `kill' commands.
from Tkinter import *
if TkVersion < 4.0:
raise ImportError, "This version of svkill requires Tk 4.0 or later"
from string import splitfields
from string import split
import commands
import os
user = os.environ['LOGNAME']
class BarBu... |
lmprice/ansible | refs/heads/devel | test/units/cli/test_console.py | 194 | # (c) 2016, Thilo Uttendorfer <[email protected]>
#
# 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 vers... |
elba7r/frameworking | refs/heads/master | frappe/handler.py | 2 | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals
import frappe
from frappe import _
import frappe.utils
import frappe.async
import frappe.sessions
import frappe.utils.file_manager
import frappe.desk.form.run_method
from frappe.u... |
marcoantoniooliveira/labweb | refs/heads/master | oscar/lib/python2.7/site-packages/pyflakes/test/test_other.py | 6 | """
Tests for various Pyflakes behavior.
"""
from sys import version_info
from pyflakes import messages as m
from pyflakes.test.harness import TestCase, skip, skipIf
class Test(TestCase):
def test_duplicateArgs(self):
self.flakes('def fu(bar, bar): pass', m.DuplicateArgument)
def test_localReferen... |
davgibbs/django | refs/heads/master | tests/migrations/test_operations.py | 105 | from __future__ import unicode_literals
import unittest
from django.db import connection, migrations, models, transaction
from django.db.migrations.migration import Migration
from django.db.migrations.state import ProjectState
from django.db.models.fields import NOT_PROVIDED
from django.db.transaction import atomic
f... |
LifeDJIK/S.H.I.V.A. | refs/heads/master | containers/shiva/hazelcast/protocol/codec/map_add_partition_lost_listener_codec.py | 2 | from hazelcast.serialization.bits import *
from hazelcast.protocol.client_message import ClientMessage
from hazelcast.protocol.custom_codec import *
from hazelcast.util import ImmutableLazyDataList
from hazelcast.protocol.codec.map_message_type import *
from hazelcast.protocol.event_response_const import *
REQUEST_TYP... |
FabianKnapp/nexmon | refs/heads/master | buildtools/gcc-arm-none-eabi-5_4-2016q2-osx/arm-none-eabi/share/gdb/python/gdb/command/unwinders.py | 50 | # Unwinder commands.
# Copyright 2015 Free Software Foundation, Inc.
# 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.
#
... |
suyashphadtare/gd-erp | refs/heads/develop | erpnext/accounts/doctype/journal_voucher/journal_voucher.py | 4 | # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
from frappe.utils import cstr, flt, fmt_money, formatdate, getdate
from frappe import msgprint, _, scrub
from frappe import msgprint, ... |
alexlo03/ansible | refs/heads/devel | lib/ansible/inventory/data.py | 18 | # (c) 2012-2014, Michael DeHaan <[email protected]>
#
# 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... |
mozilla/zamboni | refs/heads/master | mkt/monolith/management/commands/__init__.py | 12133432 | |
carsongee/edx-platform | refs/heads/master | lms/djangoapps/bulk_email/migrations/__init__.py | 12133432 | |
runekaagaard/django-contrib-locking | refs/heads/master | tests/save_delete_hooks/__init__.py | 12133432 | |
mohamed-mamdouh95/pedestrainTracker | refs/heads/master | darkflow/net/mnist/run.py | 12133432 | |
Jimmy-Morzaria/scikit-learn | refs/heads/master | doc/sphinxext/github_link.py | 314 | from operator import attrgetter
import inspect
import subprocess
import os
import sys
from functools import partial
REVISION_CMD = 'git rev-parse --short HEAD'
def _get_git_revision():
try:
revision = subprocess.check_output(REVISION_CMD.split()).strip()
except subprocess.CalledProcessError:
... |
dhylands/micropython | refs/heads/master | tests/basics/builtin_slice.py | 56 | # test builtin slice
# print slice
class A:
def __getitem__(self, idx):
print(idx)
A()[1:2:3]
|
izhan/Stream-Framework | refs/heads/master | feedly/serializers/aggregated_activity_serializer.py | 4 | from feedly.activity import AggregatedActivity, Activity
from feedly.exceptions import SerializationException
from feedly.serializers.activity_serializer import ActivitySerializer
from feedly.serializers.utils import check_reserved
from feedly.utils import epoch_to_datetime, datetime_to_epoch
from feedly.serializers.ba... |
jeasoft/odoo | refs/heads/marcos-8.0 | comunity_modules/product_historical_price/__openerp__.py | 2 | # -*- encoding: utf-8 -*-
###########################################################################
# Module Writen to OpenERP, Open Source Management Solution
# Copyright (C) Vauxoo (<http://vauxoo.com>).
# All Rights Reserved
###############Credits######################################################
# ... |
kennethreitz/pipenv | refs/heads/master | pipenv/patched/notpip/_vendor/distlib/util.py | 33 | #
# Copyright (C) 2012-2017 The Python Software Foundation.
# See LICENSE.txt and CONTRIBUTORS.txt.
#
import codecs
from collections import deque
import contextlib
import csv
from glob import iglob as std_iglob
import io
import json
import logging
import os
import py_compile
import re
import socket
try:
import ssl
... |
datalogics-robb/scons | refs/heads/master | test/option-r.py | 2 | #!/usr/bin/env python
#
# __COPYRIGHT__
#
# 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, modify, merge, publish,
... |
endlessm/chromium-browser | refs/heads/master | third_party/catapult/third_party/gsutil/gslib/vendored/boto/boto/dynamodb2/fields.py | 163 | from boto.dynamodb2.types import STRING
class BaseSchemaField(object):
"""
An abstract class for defining schema fields.
Contains most of the core functionality for the field. Subclasses must
define an ``attr_type`` to pass to DynamoDB.
"""
attr_type = None
def __init__(self, name, data_... |
LunarLanding/moviepy | refs/heads/master | moviepy/audio/io/__init__.py | 19 | """
Class and methods to read, write, preview audiofiles.
"""
|
cmichal/python-social-auth | refs/heads/master | social/tests/backends/__init__.py | 12133432 | |
ESS-LLP/erpnext-healthcare | refs/heads/master | erpnext/stock/report/__init__.py | 12133432 | |
mattcongy/itshop | refs/heads/master | docker-images/taigav2/taiga-back/taiga/base/formats/es/__init__.py | 12133432 | |
BT-fgarbely/e-commerce | refs/heads/8.0 | __unported__/sale_payment_method_transaction_id/sale.py | 18 | # -*- coding: utf-8 -*-
##############################################################################
#
# Author: Guewen Baconnier
# Copyright 2014 Camptocamp SA
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# pu... |
ptisserand/ansible | refs/heads/devel | lib/ansible/modules/windows/win_domain_group.py | 52 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2017, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
'supported_by': 'community'}
DOCU... |
shenlong3030/asv-django-guestbook | refs/heads/master | django/views/i18n.py | 10 | import os
import gettext as gettext_module
from django import http
from django.conf import settings
from django.utils import importlib
from django.utils.translation import check_for_language, activate, to_locale, get_language
from django.utils.text import javascript_quote
from django.utils.encoding import smar... |
datenbetrieb/odoo | refs/heads/8.0 | addons/hr_gamification/wizard/__init__.py | 388 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2013 OpenERP SA (<http://openerp.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... |
wolfelee/zkdash | refs/heads/master | lib/zyqconf/hooks.py | 3 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Copyright (c) 2014,掌阅科技
All rights reserved.
摘 要: hooks.py
创 建 者: zhuangshixiong
创建日期: 2015-09-22
'''
# pylint: disable=invalid-name, missing-docstring
from collections import defaultdict
class Hook(object):
"""
A single hook that can be listened for.
... |
yangcwGIT/jstorm | refs/heads/master | jstorm-core/src/main/py/storm/ttypes.py | 19 | #
# Autogenerated by Thrift Compiler (0.9.2)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
# options string: py:utf8strings
#
from thrift.Thrift import TType, TMessageType, TException, TApplicationException
from thrift.transport import TTransport
from thrift.protocol import TBinaryProtocol, ... |
toddpalino/kafka-tools | refs/heads/master | tests/tools/client/test_configuration.py | 1 | import os
import ssl
import unittest
from mock import MagicMock, patch, call
from kafka.tools.configuration import ClientConfiguration, eval_boolean, check_file_access
from kafka.tools.exceptions import ConfigurationError
class ConfigurationTests(unittest.TestCase):
def test_eval_boolean(self):
assert ev... |
radekg/mesos-toolbox | refs/heads/master | lib/configs/vagrant_config.py | 2 | import hashlib, os, sys, time
from lib.utils import Utils
from lib.configs.defaults import Defaults
class VagrantConfigMeta(type):
_instances = {}
def __call__(cls, *args, **kwargs):
if cls not in cls._instances:
cls._instances[cls] = super(VagrantConfigMeta, cls).__call__(*args, **kwargs)
... |
matrix-org/synapse | refs/heads/master | synapse/util/caches/lrucache.py | 1 | # Copyright 2015, 2016 OpenMarket Ltd
#
# 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 ... |
dessHub/bc-14-online-store-application | refs/heads/master | flask/lib/python2.7/site-packages/pymongo/pool.py | 17 | # Copyright 2011-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 writi... |
elmerdpadilla/iv | refs/heads/8.0 | addons/website_payment/__init__.py | 389 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2013-Today OpenERP SA (<http://www.openerp.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms ... |
esatterwhite/django-tastypie | refs/heads/master | tests/content_gfk/tests/fields.py | 31 | from __future__ import with_statement
from django.test import TestCase
from tastypie.contrib.contenttypes.fields import GenericForeignKeyField
from tastypie.bundle import Bundle
from content_gfk.models import Note, Quote, Rating, Definition
from content_gfk.api.resources import NoteResource, DefinitionResource, \
... |
ivyl/patchwork | refs/heads/master | patchwork/views/patch.py | 2 | # Patchwork - automated patch tracking system
# Copyright (C) 2008 Jeremy Kerr <[email protected]>
#
# This file is part of the Patchwork package.
#
# Patchwork 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; eith... |
lilydjwg/you-get | refs/heads/develop | src/you_get/cli_wrapper/player/dragonplayer.py | 12133432 | |
a10networks/a10sdk-python | refs/heads/master | a10sdk/core/ip/__init__.py | 12133432 | |
pigeonflight/strider-plone | refs/heads/master | docker/appengine/lib/django-1.5/tests/regressiontests/test_runner/__init__.py | 12133432 | |
cfriedt/gnuradio | refs/heads/master | gr-filter/python/filter/qa_filterbank.py | 47 | #!/usr/bin/env python
#
# Copyright 2012,2014 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# GNU Radio 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, or (at your optio... |
mbernasocchi/QGIS | refs/heads/master | tests/src/python/test_qgssourceselectprovider.py | 30 | # -*- coding: utf-8 -*-
"""
Test the QgsSourceSelectProvider
and QgsSourceSelectProviderRegistry classes
Run with: ctest -V -R PyQgsSourceSelectProvider
.. note:: 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... |
abaditsegay/arangodb | refs/heads/devel | 3rdParty/V8-4.3.61/third_party/python_26/Lib/encodings/__init__.py | 60 | """ Standard "encodings" Package
Standard Python encoding modules are stored in this package
directory.
Codec modules must have names corresponding to normalized encoding
names as defined in the normalize_encoding() function below, e.g.
'utf-8' must be implemented by the module 'utf_8.py'.
Ea... |
MoritzS/django | refs/heads/master | tests/contenttypes_tests/operations_migrations/0002_rename_foo.py | 133 | from django.db import migrations
def assert_foo_contenttype_not_cached(apps, schema_editor):
ContentType = apps.get_model('contenttypes', 'ContentType')
try:
content_type = ContentType.objects.get_by_natural_key('contenttypes_tests', 'foo')
except ContentType.DoesNotExist:
pass
else:
... |
ProjectSWGCore/NGECore2 | refs/heads/master | scripts/mobiles/endor/domesticated_merek.py | 2 | import sys
from services.spawn import MobileTemplate
from services.spawn import WeaponTemplate
from resources.datatables import WeaponType
from resources.datatables import Difficulty
from resources.datatables import Options
from java.util import Vector
def addTemplate(core):
mobileTemplate = MobileTemplate... |
orbitfp7/nova | refs/heads/master | nova/tests/unit/test_quota.py | 11 | # 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 ... |
skosukhin/spack | refs/heads/esiwace | var/spack/repos/builtin/packages/xdm/package.py | 1 | ##############################################################################
# Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, [email protected], All rights reserved.
# LLNL-CODE-64... |
nikesh-mahalka/cinder | refs/heads/master | tools/lintstack.py | 3 | #!/usr/bin/env python
# Copyright (c) 2013, AT&T Labs, Yun Mao <[email protected]>
# 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... |
ortutay/23andme-phenotypes-hackathon | refs/heads/master | my_app/my_app/utils.py | 1 | import os
import json
import requests
from my_app.my_app.models import Phenotype
from joblib import Memory
CACHE_DIR = '/tmp/ttam-hack-cache'
os.makedirs(CACHE_DIR, exist_ok=True)
memory = Memory(cachedir=CACHE_DIR)
TTAM_API_SERVER = 'https://api.23andme.com'
def to_url(path):
return '%s%s' % (TTAM_API_SERVER,... |
macat/Piratetitler | refs/heads/master | app/apps/pages/handlers.py | 1 | # -*- coding: utf-8 -*-
from tipfy import RequestHandler
from tipfy.ext.jinja2 import render_response
class HomeHandler(RequestHandler):
""" Home page """
def get(self):
return render_response('pages/home.html')
|
mith1979/ansible_automation | refs/heads/master | applied_python/applied_python/lib/python2.7/site-packages/setuptools/tests/test_upload_docs.py | 151 | import os
import zipfile
import contextlib
import pytest
from setuptools.command.upload_docs import upload_docs
from setuptools.dist import Distribution
from .textwrap import DALS
from . import contexts
SETUP_PY = DALS(
"""
from setuptools import setup
setup(name='foo')
""")
@pytest.fixture
def ... |
Mafarricos/Mafarricos-modded-xbmc-addons | refs/heads/master | plugin.video.xbmctorrentV2/resources/site-packages/html5lib/treebuilders/_base.py | 715 | from __future__ import absolute_import, division, unicode_literals
from six import text_type
from ..constants import scopingElements, tableInsertModeElements, namespaces
# The scope markers are inserted when entering object elements,
# marquees, table cells, and table captions, and are used to prevent formatting
# fr... |
savoirfairelinux/sous-chef | refs/heads/dev | src/order/migrations/0013_orderstatuschange.py | 2 | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-11-30 20:00
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('order', '0012_auto_20161122_0458'),
]
operations = [... |
mocne/PycharmProjects | refs/heads/master | HanderCode/aidaiwangApp/aidaiwangApp/LogOut_aidiawangApp.py | 1 | # -*- coding: utf-8 -*-
import time
import Register_aidaiwangApp
def start_to_logout():
driver = Register_aidaiwangApp.driver
print(u'logout')
time.sleep(3)
try:
driver.find_element_by_id('cn.phaidai.loan:id/rb_mine')
print('id')
except:
try:
driver.find_eleme... |
kbrebanov/ansible | refs/heads/devel | lib/ansible/module_utils/network/netscaler/netscaler.py | 141 | # -*- coding: utf-8 -*-
# Copyright (c) 2017 Citrix Systems
#
# This code is part of Ansible, but is an independent component.
# This particular file snippet, and this file snippet only, is BSD licensed.
# Modules you write using this snippet, which is embedded dynamically by Ansible
# still belong to the author of t... |
mzdaniel/oh-mainline | refs/heads/master | vendor/packages/celery/celery/task/__init__.py | 18 | # -*- coding: utf-8 -*-
"""
celery.task
~~~~~~~~~~~
Creating tasks, subtasks, sets and chords.
:copyright: (c) 2009 - 2011 by Ask Solem.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import
import warnings
from ..app import app_or_default
from ..exceptions imp... |
chrismeyersfsu/ansible | refs/heads/devel | lib/ansible/modules/network/illumos/ipadm_if.py | 48 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2015, Adam Števko <[email protected]>
#
# 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 L... |
heiths/allura | refs/heads/master | Allura/allura/ext/project_home/__init__.py | 5 | # 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 (t... |
rrrene/django | refs/heads/master | django/db/backends/utils.py | 430 | from __future__ import unicode_literals
import datetime
import decimal
import hashlib
import logging
from time import time
from django.conf import settings
from django.utils.encoding import force_bytes
from django.utils.timezone import utc
logger = logging.getLogger('django.db.backends')
class CursorWrapper(object... |
bitmazk/django-flipbook | refs/heads/master | flipbook/migrations/__init__.py | 12133432 | |
evanma92/routeh | refs/heads/master | flask/lib/python2.7/site-packages/pip/_vendor/html5lib/treeadapters/__init__.py | 12133432 | |
ksrajkumar/openerp-6.1 | refs/heads/master | openerp/addons/mrp_repair/mrp_repair.py | 9 | # -*- 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... |
saydulk/horizon | refs/heads/master | horizon/test/test_dashboards/cats/tigers/urls.py | 67 | # 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
# d... |
grandmasterchef/WhatManager2 | refs/heads/master | bibliotik/trans_sync.py | 3 | import os
import os.path
from django.db import transaction
from bibliotik import manage_bibliotik
from bibliotik.models import BibliotikTransTorrent, BibliotikTorrent
from home.models import LogEntry, DownloadLocation
def sync_instance_db(instance):
b_torrents = instance.get_b_torrents_by_hash()
t_torrents ... |
TathagataChakraborti/resource-conflicts | refs/heads/master | PLANROB-2015/seq-sat-lama/py2.5/lib/python2.5/pprint.py | 92 | # Author: Fred L. Drake, Jr.
# [email protected]
#
# This is a simple little module I wrote to make life easier. I didn't
# see anything quite like it in the library, though I may have overlooked
# something. I wrote this when I was trying to read some heavily nested
# tuples with fairly non-desc... |
ajdawson/iris | refs/heads/master | lib/iris/tests/test_intersect.py | 17 | # (C) British Crown Copyright 2010 - 2015, Met Office
#
# This file is part of Iris.
#
# Iris is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the
# Free Software Foundation, either version 3 of the License, or
# (at your option) any l... |
ojengwa/sympy | refs/heads/master | sympy/polys/tests/test_rationaltools.py | 124 | """Tests for tools for manipulation of rational expressions. """
from sympy.polys.rationaltools import together
from sympy import S, symbols, Rational, sin, exp, Eq, Integral, Mul
from sympy.abc import x, y, z
A, B = symbols('A,B', commutative=False)
def test_together():
assert together(0) == 0
assert toge... |
hynekcer/django | refs/heads/master | tests/migrations/migrations_test_apps/lookuperror_a/migrations/__init__.py | 12133432 | |
zacps/zulip | refs/heads/master | zerver/lib/__init__.py | 12133432 | |
edx/edx-enterprise | refs/heads/master | consent/migrations/__init__.py | 12133432 | |
ixc/django-reversion | refs/heads/master | src/tests/test_reversion/migrations/__init__.py | 12133432 | |
francois-contat/scapy | refs/heads/master | scapy/layers/gprs.py | 6 | # This file is part of Scapy
# See http://www.secdev.org/projects/scapy for more information
# Copyright (C) Philippe Biondi <[email protected]>
# This program is published under a GPLv2 license
"""
GPRS (General Packet Radio Service) for mobile data communication.
"""
from scapy.fields import StrStopField
from scapy.p... |
ImaginaryLandscape/djangocms-blog | refs/heads/develop | djangocms_blog/migrations/0001_initial.py | 12 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import cms.models.fields
import django.utils.timezone
import djangocms_text_ckeditor.fields
import filer.fields.image
import meta_mixin.models
import taggit_autosuggest.managers
from django.conf import settings
from django.db import models, migrations
c... |
levilucio/SyVOLT | refs/heads/master | UMLRT2Kiltera_MM/transformation/no_contains/HTransition2QInstOUT.py | 1 | from core.himesis import Himesis
import uuid
class HTransition2QInstOUT(Himesis):
def __init__(self):
"""
Creates the himesis graph representing the DSLTrans rule Transition2QInstOUT.
"""
# Flag this instance as compiled now
self.is_compiled = True
... |
ravna-livada/Bricknoid | refs/heads/master | Game/draw.py | 1 | import pygame
from constants import GameConstants
class Draw:
def __init__(self):
self.constants = GameConstants()
if pygame.display.get_caption():
self.screen = pygame.display.get_surface()
else:
self.screen = pygame.display.set_mode(self.constants.SCREEN_SIZE)
... |
pbs/django-hubbubs | refs/heads/master | hubbubs/tests/tests.py | 2 | from django.test import TestCase
class Test(TestCase):
def test_sample(self):
self.assertEqual(1+1, 2)
|
motion2015/a3 | refs/heads/a3 | common/djangoapps/terrain/steps.py | 36 | # pylint: disable=missing-docstring
# pylint: disable=redefined-outer-name
# Disable the "wildcard import" warning so we can bring in all methods from
# course helpers and ui helpers
# pylint: disable=wildcard-import
# Disable the "Unused import %s from wildcard import" warning
# pylint: disable=unused-wildcard-impor... |
arborh/tensorflow | refs/heads/master | tensorflow/python/keras/layers/lstm_test.py | 4 | # 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... |
SatoshiNXSimudrone/sl4a-damon-clone | refs/heads/master | python-build/python-libs/gdata/tests/gdata_tests/spreadsheet_test.py | 92 | #!/usr/bin/python
#
# Copyright (C) 2007 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 ... |
joemathai/problems | refs/heads/master | Project Euler/81.py | 1 | #project euler 81
size=80
data="4445,2697,5115,718,2209,2212,654,4348,3079,6821,7668,3276,8874,4190,3785,2752,9473,7817,9137,496,7338,3434,7152,4355,4552,7917,7827,2460,2350,691,3514,5880,3145,7633,7199,3783,5066,7487,3285,1084,8985,760,872,8609,8051,1134,9536,5750,9716,9371,7619,5617,275,9721,2997,2698,1887,8825,6372,... |
dywisor/kernelconfig | refs/heads/master | kernelconfig/sources/_sources.py | 1 | # This file is part of kernelconfig.
# -*- coding: utf-8 -*-
import os.path
import shlex
from ..util import fs
from .abc import sources as _sources_abc
from .abc import exc
from . import sourcedef
from . import sourcetype
from . import sourceenv
__all__ = ["ConfigurationSources"]
class ConfigurationSources(_sour... |
maestrano/odoo | refs/heads/master | openerp/models.py | 3 | # -*- 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... |
yippeecw/sfa | refs/heads/geni-v3 | sfa/rspecs/elements/link.py | 2 | from sfa.rspecs.elements.element import Element
class Link(Element):
fields = [
'client_id',
'component_id',
'component_name',
'component_manager',
'type',
'interface1',
'interface2',
'capacity',
'latency',
'packet_loss',
... |
zak-k/iris | refs/heads/master | lib/iris/tests/unit/fileformats/ff/test_FF2PP.py | 11 | # (C) British Crown Copyright 2013 - 2016, Met Office
#
# This file is part of Iris.
#
# Iris is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the
# Free Software Foundation, either version 3 of the License, or
# (at your option) any l... |
aristotle-tek/cuny-bdif | refs/heads/master | AWS/ec2/lib/boto-2.34.0/boto/s3/deletemarker.py | 170 | # Copyright (c) 2006-2010 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... |
mforets/polyhedron_tools | refs/heads/master | docs/source/conf.py | 1 | # -*- coding: utf-8 -*-
#
# sample documentation build configuration file,
# inspried by slabbe configuration file created sphinx-quickstart
#
# 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.
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.