commit stringlengths 40 40 | old_file stringlengths 4 264 | new_file stringlengths 4 264 | old_contents stringlengths 0 3.26k | new_contents stringlengths 1 4.43k | subject stringlengths 15 624 | message stringlengths 15 4.7k | lang stringclasses 3
values | license stringclasses 13
values | repos stringlengths 5 91.5k |
|---|---|---|---|---|---|---|---|---|---|
e905334869af72025592de586b81650cb3468b8a | sentry/queue/client.py | sentry/queue/client.py | """
sentry.queue.client
~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from kombu import BrokerConnection
from kombu.common import maybe_declare
from kombu.pools import producers
from sentry.conf import settings
from sentry.q... | """
sentry.queue.client
~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from kombu import BrokerConnection
from kombu.common import maybe_declare
from kombu.pools import producers
from sentry.conf import settings
from sentry.q... | Declare queues when broker is instantiated | Declare queues when broker is instantiated
| Python | bsd-3-clause | imankulov/sentry,BuildingLink/sentry,zenefits/sentry,korealerts1/sentry,kevinastone/sentry,fotinakis/sentry,fuziontech/sentry,ngonzalvez/sentry,mvaled/sentry,Kronuz/django-sentry,ngonzalvez/sentry,looker/sentry,felixbuenemann/sentry,ngonzalvez/sentry,nicholasserra/sentry,camilonova/sentry,jokey2k/sentry,llonchj/sentry,... |
45fc612fdc5a354dbf0bacccd345b1aebcc73e59 | tests/test_openweather.py | tests/test_openweather.py | # -*- coding: utf-8 -*-
import bot_mock
from pyfibot.modules import module_openweather
from utils import check_re
bot = bot_mock.BotMock()
def test_weather():
regex = u'Lappeenranta, FI: Temperature: \d+.\d\xb0C, feels like: \d+.\d\xb0C, wind: \d+.\d m/s, humidity: \d+%, pressure: \d+ hPa, cloudiness: \d+%'
... | # -*- coding: utf-8 -*-
import bot_mock
from pyfibot.modules import module_openweather
from utils import check_re
bot = bot_mock.BotMock()
def test_weather():
regex = u'Lappeenranta, FI: Temperature: \d+.\d\xb0C, feels like: \d+.\d\xb0C, wind: \d+.\d m/s, humidity: \d+%, pressure: \d+ hPa, cloudiness: \d+%'
... | Revert "Fix openweather unit tests" | Revert "Fix openweather unit tests"
This reverts commit 36e100e649f0a337228a6d7375358d23afd544ff.
Open Weather Map has reverted back to their old api or something like that...
| Python | bsd-3-clause | rnyberg/pyfibot,EArmour/pyfibot,aapa/pyfibot,aapa/pyfibot,lepinkainen/pyfibot,rnyberg/pyfibot,lepinkainen/pyfibot,huqa/pyfibot,huqa/pyfibot,EArmour/pyfibot |
22faee82e1f070532c0dfe5777136e842233a1f0 | src/dashboard/src/main/templatetags/percentage.py | src/dashboard/src/main/templatetags/percentage.py | from django.template import Node, Library
register = Library()
@register.filter('percentage')
def percentage(value, total):
try:
percentage = int(value) / int(total) * 100
except ZeroDivisionError:
percentage = 0
return '<abbr title="%s/%s">%s%%</abbr>' % (value, total, percentage)
| from django.template import Node, Library
register = Library()
@register.filter('percentage')
def percentage(value, total):
try:
percentage = float(value) / float(total) * 100
except ZeroDivisionError:
percentage = 0
return '<abbr title="%s/%s">%s%%</abbr>' % (value, total, percentage)
| Fix % only showing 0 or 100%, everything between goes to 0%. | Fix % only showing 0 or 100%, everything between goes to 0%.
Autoconverted from SVN (revision:1548)
| Python | agpl-3.0 | artefactual/archivematica-history,artefactual/archivematica-history,artefactual/archivematica-history,artefactual/archivematica-history |
950ac9130bafe1fced578bf61d746b047830bfa0 | automata/base/exceptions.py | automata/base/exceptions.py | #!/usr/bin/env python3
"""Exception classes shared by all automata."""
class AutomatonException(Exception):
"""The base class for all automaton-related errors."""
pass
class InvalidStateError(AutomatonException):
"""A state is not a valid state for this automaton."""
pass
class InvalidSymbolErro... | #!/usr/bin/env python3
"""Exception classes shared by all automata."""
class AutomatonException(Exception):
"""The base class for all automaton-related errors."""
pass
class InvalidStateError(AutomatonException):
"""A state is not a valid state for this automaton."""
pass
class InvalidSymbolErro... | Remove "validation" from RejectionException docstring | Remove "validation" from RejectionException docstring
| Python | mit | caleb531/automata |
462ae981ed5b9cc9a8f46e97dfe7908c0827ea64 | account_invoice_line_description/res_config.py | account_invoice_line_description/res_config.py | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2015 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 ... | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2015 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 ... | Fix implied_group, it still refers to the old module name | Fix implied_group, it still refers to the old module name
| Python | agpl-3.0 | Antiun/account-invoicing,hbrunn/account-invoicing,kittiu/account-invoicing,open-synergy/account-invoicing,raycarnes/account-invoicing,brain-tec/account-invoicing,charbeljc/account-invoicing,Noviat/account-invoicing,Endika/account-invoicing,eezee-it/account-invoicing,brain-tec/account-invoicing,kmee/account-invoicing,gu... |
f183b471bf92c03bb5353b02009e3287ffe06ae7 | txircd/modules/umode_i.py | txircd/modules/umode_i.py | from txircd.modbase import Mode
class InvisibleMode(Mode):
def namesListEntry(self, recipient, channel, user, representation):
if channel not in recipient.channels and "i" in user.mode:
return ""
return representation
class Spawner(object):
def __init__(self, ircd):
self.ircd = ircd
def spawn(self):
r... | from txircd.modbase import Mode
class InvisibleMode(Mode):
def namesListEntry(self, recipient, channel, user, representation):
if channel.name not in recipient.channels and "i" in user.mode:
return ""
return representation
class Spawner(object):
def __init__(self, ircd):
self.ircd = ircd
def spawn(self)... | Fix interpretation of parameters for names list modification | Fix interpretation of parameters for names list modification
| Python | bsd-3-clause | ElementalAlchemist/txircd,DesertBus/txircd,Heufneutje/txircd |
c3f8860c717a139d396b0d902db989ab7b8369ba | stock_inventory_hierarchical/__openerp__.py | stock_inventory_hierarchical/__openerp__.py | # -*- coding: utf-8 -*-
# © 2013-2016 Numérigraphe SARL
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Hierarchical Inventory adjustments",
"summary": "Group several Inventory adjustments in a master inventory",
"version": "8.0.2.0.0",
"depends": ["stock"],
"author"... | # -*- coding: utf-8 -*-
# © 2013-2016 Numérigraphe SARL
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Hierarchical Inventory adjustments",
"summary": "Group several Inventory adjustments in a master inventory",
"version": "8.0.2.0.0",
"depends": ["stock"],
"author"... | Fix image path in manifest | Fix image path in manifest
| Python | agpl-3.0 | kmee/stock-logistics-warehouse,factorlibre/stock-logistics-warehouse,open-synergy/stock-logistics-warehouse,acsone/stock-logistics-warehouse,avoinsystems/stock-logistics-warehouse |
9e169348d95e29ad04942ecb00628f3d1f3a3a1c | partner_email_check/models/res_partner.py | partner_email_check/models/res_partner.py | # Copyright 2019 Komit <https://komit-consulting.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
import logging
from odoo import api, models, _
from odoo.exceptions import UserError
_logger = logging.getLogger(__name__)
try:
from validate_email import validate_email
except ImportError:
... | # Copyright 2019 Komit <https://komit-consulting.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
import logging
from odoo import api, models, _
from odoo.exceptions import UserError
_logger = logging.getLogger(__name__)
try:
from validate_email import validate_email
except ImportError:
... | Make debugger record a debug message instead of error when importing validate_email in partner_email_check | [FIX][11.0] Make debugger record a debug message instead of error when importing validate_email in partner_email_check
| Python | agpl-3.0 | BT-rmartin/partner-contact,OCA/partner-contact,OCA/partner-contact,BT-rmartin/partner-contact |
cd56fb2c1a0f4b6dd40ce03545e57c6fd2e1c519 | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
packages = [
'upho',
'upho.phonon',
'upho.harmonic',
'upho.analysis',
'upho.structure',
'upho.irreps',
'upho.qpoints',
'group',
]
scripts = [
'scripts/upho_weights',
'scripts/upho_sf',
'scripts/upho_qpoints',
'script... | #!/usr/bin/env python
from distutils.core import setup
packages = [
'upho',
'upho.phonon',
'upho.harmonic',
'upho.analysis',
'upho.structure',
'upho.irreps',
'upho.qpoints',
'group',
]
scripts = [
'scripts/upho_weights',
'scripts/upho_sf',
'scripts/upho_qpoints',
'script... | Modify the author email address | Modify the author email address
| Python | mit | yuzie007/upho,yuzie007/ph_unfolder |
db7bc89d03089ad3107a19220a94ee3fe3d230c3 | setup.py | setup.py |
from setuptools import setup, find_packages
import sys, os
version = '1.1.1'
setup(
name = 'daprot',
version = version,
description = "daprot is a data prototyper and mapper library.",
packages = find_packages( exclude = [ 'ez_setup'] ),
include_package_data = True,
zip_safe = False,
entr... |
from setuptools import setup, find_packages
import sys, os
version = '1.1.2'
setup(
name = 'daprot',
version = version,
description = "daprot is a data prototyper and mapper library.",
packages = find_packages( exclude = [ 'ez_setup'] ),
include_package_data = True,
zip_safe = False,
entr... | Change the version of the package. | Change the version of the package. | Python | agpl-3.0 | bfaludi/daprot |
4f133cb1c9bb389156175268eb1b989d76e4d280 | setup.py | setup.py | try:
from setuptools import setup
from setuptools import find_packages
packages = find_packages()
except ImportError:
from distutils.core import setup
import os
packages = [x.strip('./').replace('/','.') for x in os.popen('find -name "__init__.py" | xargs -n1 dirname').read().strip().split('\n')... | try:
from setuptools import setup
from setuptools import find_packages
packages = find_packages()
except ImportError:
from distutils.core import setup
import os
packages = [x.strip('./').replace('/','.') for x in os.popen('find -name "__init__.py" | xargs -n1 dirname').read().strip().split('\n')... | Adjust minidump dependency to >= 0.0.10 | Adjust minidump dependency to >= 0.0.10
| Python | bsd-2-clause | angr/cle |
fc8d9f995b0abd66da9b2db02dc3588f5e99e66a | setup.py | setup.py | from setuptools import setup, find_packages
from os.path import join, dirname
import sys
if sys.version_info.major < 3:
print("Sorry, currently only Python 3 is supported!")
sys.exit(1)
setup(
name = 'CollectionBatchTool',
version=__import__('collectionbatchtool').__version__,
description = 'batch... | from setuptools import setup, find_packages
from os.path import join, dirname
import sys
if sys.version_info.major < 3:
print("Sorry, currently only Python 3 is supported!")
sys.exit(1)
setup(
name = 'CollectionBatchTool',
version=__import__('collectionbatchtool').__version__,
description = 'bat... | Add utf-8 support for long description | Add utf-8 support for long description
| Python | mit | jmenglund/CollectionBatchTool |
a0e73b06e22be39d06c276a89e04f56452802fba | setup.py | setup.py | from setuptools import setup
setup(
name='scout',
version=__import__('scout').__version__,
description='scout',
author='Charles Leifer',
author_email='coleifer@gmail.com',
url='http://github.com/coleifer/scout/',
py_modules=['scout'],
classifiers=[
'Development Status :: 5 - Pro... | from setuptools import setup
setup(
name='scout',
version=__import__('scout').__version__,
description='scout',
author='Charles Leifer',
author_email='coleifer@gmail.com',
url='http://github.com/coleifer/scout/',
py_modules=['scout'],
classifiers=[
'Development Status :: 5 - Pro... | Add `scout.py` as a script. | Add `scout.py` as a script.
| Python | mit | coleifer/scout |
6dc4cb5ec0f0e2373d364e93b7d342beaad6dc4b | setup.py | setup.py | # !/usr/bin/env python
from setuptools import setup, find_packages
setup(name='symbtrsynthesis',
version='1.0.1-dev',
description='An (adaptive) synthesizer for SymbTr-MusicXML scores',
author='Hasan Sercan Atli',
url='https://github.com/hsercanatli/symbtrsynthesis',
packages=find_packag... | # !/usr/bin/env python
from setuptools import setup, find_packages
setup(name='symbtrsynthesis',
version='1.0.1-dev',
description='An (adaptive) synthesizer for SymbTr-MusicXML scores',
author='Hasan Sercan Atli',
url='https://github.com/hsercanatli/symbtrsynthesis',
packages=find_packag... | Include data files in built package | Include data files in built package
| Python | agpl-3.0 | hsercanatli/adaptivetuning |
340cdd0ea77c5edb9ae6f38cf380eec1772cee66 | setup.py | setup.py | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
config = {
'description': 'TRX',
'author': 'Kyle Maxwell, based on Paterva\'s library',
'url': 'https://github.com/krmaxwell/TRX',
'download_url': 'https://github.com/krmaxwell/TRX',
'author_email': 'krma... | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
config = {
'description': 'TRX',
'author': 'Kyle Maxwell, based on Paterva\'s library',
'url': 'https://github.com/krmaxwell/TRX',
'download_url': 'https://github.com/krmaxwell/TRX',
'author_email': 'krma... | Increment minor version and set up for git flow | Increment minor version and set up for git flow
| Python | apache-2.0 | krmaxwell/TRX |
08ccc7d676a0cb0c69d1cbd5096ff5c77e19c4ab | setup.py | setup.py | from os import path
from setuptools import setup
from hip_pocket.constants import VERSION
def load(file_name):
here = path.dirname(path.abspath(__file__))
return open(path.join(here, file_name), "r").read()
setup(
name="HipPocket",
description="A wrapper around Flask to ease the development of large... | from os import path
from setuptools import setup
from hip_pocket.constants import VERSION
def load(file_name):
here = path.dirname(path.abspath(__file__))
return open(path.join(here, file_name), "r").read()
setup(
name="HipPocket",
description="A wrapper around Flask to ease the development of large... | Add tests package and specify platforms | Add tests package and specify platforms
| Python | mit | svieira/Flask-HipPocket,svieira/Flask-HipPocket |
78497a5ef492f18511c4a09b5ca62facafe9c302 | setup.py | setup.py | """Installation script."""
from os import path
from setuptools import find_packages, setup
HERE = path.abspath(path.dirname(__file__))
with open(path.join(HERE, 'README.rst')) as f:
LONG_DESCRIPTION = f.read().strip()
setup(
name='fuel',
version='0.1a1', # PEP 440 compliant
description='Data pipelin... | """Installation script."""
from os import path
from setuptools import find_packages, setup
HERE = path.abspath(path.dirname(__file__))
with open(path.join(HERE, 'README.rst')) as f:
LONG_DESCRIPTION = f.read().strip()
setup(
name='fuel',
version='0.1a1', # PEP 440 compliant
description='Data pipelin... | Add fuel-download to installed scripts | Add fuel-download to installed scripts
| Python | mit | capybaralet/fuel,glewis17/fuel,EderSantana/fuel,bouthilx/fuel,laurent-dinh/fuel,orhanf/fuel,mila-udem/fuel,rizar/fuel,codeaudit/fuel,udibr/fuel,glewis17/fuel,orhanf/fuel,ejls/fuel,capybaralet/fuel,dmitriy-serdyuk/fuel,markusnagel/fuel,ejls/fuel,dwf/fuel,janchorowski/fuel,laurent-dinh/fuel,dribnet/fuel,janchorowski/fuel... |
4bb6876b089375e228320162b7955bcdfa824f41 | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='akanda-rug',
version='0.1.5',
description='Akanda Router Update Generator manages tenant routers',
author='DreamHost',
author_email='dev-community@dreamhost.com',
url='http://github.com/dreamhost/akanda-rug',
license='BSD',
instal... | from setuptools import setup, find_packages
setup(
name='akanda-rug',
version='0.1.5',
description='Akanda Router Update Generator manages tenant routers',
author='DreamHost',
author_email='dev-community@dreamhost.com',
url='http://github.com/dreamhost/akanda-rug',
license='BSD',
instal... | Update the startup command to use the new version of the rug | Update the startup command to use the new version of the rug
Change-Id: Ie014dcfb0974b048025aeff96b16a868f672b84a
Signed-off-by: Rosario Di Somma <73b2fe5f91895aea2b4d0e8942a5edf9f18fa897@dreamhost.com>
| Python | apache-2.0 | openstack/akanda-rug,markmcclain/astara,dreamhost/akanda-rug,openstack/akanda-rug,stackforge/akanda-rug,stackforge/akanda-rug |
49ac4dc3e7506f35d2f3ad695afaf9c89f08720b | setup.py | setup.py |
import os
from setuptools import setup
base_dir = os.path.dirname(__file__)
with open(os.path.join(base_dir, "README.rst")) as f:
long_description = f.read()
setup(
name="TxSNI",
description="easy-to-use SNI endpoint for twisted",
packages=[
"txsni",
"twisted.plugins",
],
in... |
import os
from setuptools import setup
base_dir = os.path.dirname(__file__)
with open(os.path.join(base_dir, "README.rst")) as f:
long_description = f.read()
setup(
name="TxSNI",
description="easy-to-use SNI endpoint for twisted",
packages=[
"txsni",
"txsni.test",
"txsni.tes... | Install the tests and test utilities | Install the tests and test utilities
| Python | mit | glyph/txsni |
ae4ff7cffa1273338fff56eb531f2a6f5989de41 | setup.py | setup.py |
import os
from setuptools import setup, find_packages
VERSION = '1.4.5'
setup(
namespace_packages = ['tiddlywebplugins'],
name = 'tiddlywebplugins.atom',
version = VERSION,
description = 'A TiddlyWeb plugin that provides an Atom feed of tiddler collections.',
long_description... |
import os
from setuptools import setup, find_packages
VERSION = '1.4.5'
setup(
namespace_packages = ['tiddlywebplugins'],
name = 'tiddlywebplugins.atom',
version = VERSION,
description = 'A TiddlyWeb plugin that provides an Atom feed of tiddler collections.',
long_description... | Use `open` instead of `file` for compatibility | Use `open` instead of `file` for compatibility
| Python | bsd-3-clause | tiddlyweb/tiddlywebplugins.atom |
35e2d4791be9470c4a48e5b84e885f7b759ebd3d | setup.py | setup.py | from setuptools import setup
import os
def read(filename):
with open(filename) as fin:
return fin.read()
setup(
name='dictobj',
version='0.2.5',
author='William Grim',
author_email='william@grimapps.com',
url='https://github.com/grimwm/py-dictobj',
classifiers = [
'Development Status :: 4 - Beta... | from setuptools import setup
import os
def read(filename):
with open(filename) as fin:
return fin.read()
setup(
name='dictobj',
version='0.2.5',
author='William Grim',
author_email='william@grimapps.com',
url='https://github.com/grimwm/py-dictobj',
classifiers = [
'Development Status :: 5 - Prod... | Correct the description and update the dev status to stable. | Correct the description and update the dev status to stable.
| Python | apache-2.0 | grimwm/py-dictobj,grimwm/py-dictobj |
6b9f6ee4d4f00e988fb0419eedb81eaa56e3bbe7 | setup.py | setup.py | from setuptools import setup
with open('README.rst') as rdm:
README = rdm.read()
setup(
name='qjobs',
use_scm_version=True,
description='Get a clean and flexible output from qstat',
long_description=README,
url='https://github.com/amorison/qjobs',
author='Adrien Morison',
author_ema... | from setuptools import setup
with open('README.rst') as rdm:
README = rdm.read()
setup(
name='qjobs',
use_scm_version=True,
description='Get a clean and flexible output from qstat',
long_description=README,
url='https://github.com/amorison/qjobs',
author='Adrien Morison',
author_ema... | Set 0.1.1 as minimum version of loam | Set 0.1.1 as minimum version of loam
| Python | mit | amorison/qjobs |
be8d6400426fb96964a8447bd941d4ab777a867c | setup.py | setup.py | #!/usr/bin/env python
from codecs import open
from setuptools import find_packages, setup
with open('README.rst', 'r', 'utf-8') as f:
readme = f.read()
setup(
name='blanc-basic-pages',
version='0.3.7',
description='Blanc Basic Pages for Django',
long_description=readme,
url='https://github.... | #!/usr/bin/env python
from codecs import open
from setuptools import find_packages, setup
with open('README.rst', 'r', 'utf-8') as f:
readme = f.read()
setup(
name='blanc-basic-pages',
version='0.3.7',
description='Blanc Basic Pages for Django',
long_description=readme,
url='https://github.... | Update GitHub repos from blancltd to developersociety | Update GitHub repos from blancltd to developersociety
| Python | bsd-3-clause | blancltd/blanc-basic-pages |
644d24ad024f0d81f49b85417fecb154a6f259a9 | setup.py | setup.py | import platform
import sys
from setuptools import setup
install_requires = [
'msgpack-python',
]
if sys.version_info < (3, 4):
# trollius is just a backport of 3.4 asyncio module
install_requires.append('trollius')
if not platform.python_implementation() == 'PyPy':
# pypy already includes an impleme... | import platform
import sys
from setuptools import setup
install_requires = [
'msgpack-python>=0.4.0',
]
if sys.version_info < (3, 4):
# trollius is just a backport of 3.4 asyncio module
install_requires.append('trollius')
if not platform.python_implementation() == 'PyPy':
# pypy already includes an ... | Include base version for msgpack, because 0.3 doesn't work | Include base version for msgpack, because 0.3 doesn't work
If I import neovim with less than version 0.4 of msgpack installed, I get this stack trace:
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/chartdev/venvs/chartio/local/lib/python2.7/site-packages/neovim/__init_... | Python | apache-2.0 | zchee/python-client,neovim/python-client,zchee/python-client,0x90sled/python-client,bfredl/python-client,timeyyy/python-client,Shougo/python-client,bfredl/python-client,Shougo/python-client,traverseda/python-client,brcolow/python-client,neovim/python-client,starcraftman/python-client,timeyyy/python-client,meitham/pytho... |
4f436f14cd1615175051910b38eb83a512fb26ff | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name = 'django-globals',
version = '0.2.1-rc1',
description = 'Very simple application, that allow to define a thread specific global variables.',
keywords = 'django apps',
license = 'New BSD License',
author = 'Alexander Artemenko',
author_... | from setuptools import setup, find_packages
setup(
name = 'django-globals',
version = '0.2.1',
description = 'Very simple application, that allow to define a thread specific global variables.',
keywords = 'django apps',
license = 'New BSD License',
author = 'Alexander Artemenko',
author_emai... | Change the version to be the release version | Change the version to be the release version
| Python | bsd-3-clause | CBitLabs/django-globals |
cf69afe8f9e8151141e6040e9d0212b00edcbef1 | setup.py | setup.py | from setuptools import setup, find_packages
import sys, os
version = '0.1'
setup(name='ouimeaux',
version=version,
description="Python API to Belkin WeMo devices",
long_description="""\
""",
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
keyword... | from setuptools import setup, find_packages
import sys, os
version = '0.1'
setup(name='ouimeaux',
version=version,
description="Python API to Belkin WeMo devices",
long_description="""\
""",
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
keyword... | Add gevent 1.0 as a dependency | Add gevent 1.0 as a dependency
| Python | bsd-3-clause | rgardner/ouimeaux,iancmcc/ouimeaux,tomjmul/wemo,sstangle73/ouimeaux,fritz-fritz/ouimeaux,sstangle73/ouimeaux,aktur/ouimeaux,aktur/ouimeaux,drock371/ouimeaux,fritz-fritz/ouimeaux,sstangle73/ouimeaux,m-kiuchi/ouimeaux,iancmcc/ouimeaux,drock371/ouimeaux,fritz-fritz/ouimeaux,bennytheshap/ouimeaux,iancmcc/ouimeaux,aktur/oui... |
ee57052a6749459e2702b36a0341e03d6b5e448a | setup.py | setup.py |
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
# typing library was introduced as a core module in version 3.5.0
requires = ["dirlistproc", "jsonasobj", "rdflib", "rdflib-jsonld"]
if sys.version_info < (3, 5):
requires.append("typing")
setup(
name='S... |
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
# typing library was introduced as a core module in version 3.5.0
requires = ["dirlistproc", "jsonasobj", "rdflib", "rdflib-jsonld"]
if sys.version_info < (3, 5):
requires.append("typing")
setup(
name='S... | Change version number for new pypi image | Change version number for new pypi image
| Python | apache-2.0 | hsolbrig/SNOMEDToOWL,hsolbrig/SNOMEDToOWL,hsolbrig/SNOMEDToOWL |
8ff387b039a83d21eb4999d1bc1704a827b3c3a2 | setup.py | setup.py | from setuptools import setup
setup(
name='opengithub',
version='0.1.2',
author='Kevin Schaul',
author_email='kevin.schaul@gmail.com',
url='http://www.kevinschaul.com',
description='Open your project in GitHub from the command line.',
long_description='Check out the project on GitHub for the... | from setuptools import setup
setup(
name='opengithub',
version='0.1.3',
author='Kevin Schaul',
author_email='kevin.schaul@gmail.com',
url='http://kevin.schaul.io',
description='Open your project in GitHub from the command line.',
long_description='Check out the project on GitHub for the lat... | Increment version number, fix homepage | Increment version number, fix homepage
| Python | mit | kevinschaul/open-in-github |
eb2cfa7578012f7312bdb655368ce543cb680a0d | setup.py | setup.py | from setuptools import setup
setup(
name='tangled.auth',
version='0.1a4.dev0',
description='Tangled auth integration',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.auth/tags',
author='Wyatt Baldwin',
... | from setuptools import setup
setup(
name='tangled.auth',
version='0.1a4.dev0',
description='Tangled auth integration',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.auth/tags',
author='Wyatt Baldwin',
... | Upgrade tangled.web from 0.1a5 to 0.1a9 | Upgrade tangled.web from 0.1a5 to 0.1a9
| Python | mit | TangledWeb/tangled.auth |
3187ff297b02eaf1c0b6debdb48d2f6396751947 | setup.py | setup.py | __version__ = '0.1'
import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
CHANGES = open(os.path.join(here, 'CHANGES.rst')).read()
setup(name='retools',
version=__version__,
description='Redis Tools'... | __version__ = '0.1'
import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
CHANGES = open(os.path.join(here, 'CHANGES.rst')).read()
setup(name='retools',
version=__version__,
description='Redis Tools'... | Update deps for initial release | Update deps for initial release
| Python | mit | bbangert/retools,0x1997/retools,mozilla-services/retools |
c5a71b5e97657358f41fc7f96b1b674ceb37dfb1 | setup.py | setup.py | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
from aldryn_faq import __version__
REQUIREMENTS = [
'aldryn-apphooks-config',
'aldryn-reversion',
'aldryn-search',
'django-admin-sortable',
'django-admin-sortable2>=0.5.0',
'django-parler',
'django-sortedm2m',
]
CLASSIFIER... | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
from aldryn_faq import __version__
REQUIREMENTS = [
'aldryn-apphooks-config',
'aldryn-reversion',
'aldryn-search',
# 'django-admin-sortable',
'django-admin-sortable2>=0.5.0',
'django-parler',
'django-sortedm2m',
]
CLASSIFI... | Remove plain 'django-admin-sortable' from requirements | Remove plain 'django-admin-sortable' from requirements
This is only required to test migrations, not for new installs.
| Python | bsd-3-clause | czpython/aldryn-faq,czpython/aldryn-faq,czpython/aldryn-faq,czpython/aldryn-faq |
70a642c0597fb2f929fc83d821c8b1f095ed1328 | proxy/plugins/plugins.py | proxy/plugins/plugins.py | packetFunctions = {}
commands = {}
onStart = []
onConnection = []
onConnectionLoss = []
class packetHook(object):
def __init__(self, pktType, pktSubtype):
self.pktType = pktType
self.pktSubtype = pktSubtype
def __call__(self, f):
global packetFunctions
packetFunctions[(self.pktType, self.pktSubtype)] = f
c... | packetFunctions = {}
commands = {}
onStart = []
onConnection = []
onConnectionLoss = []
class packetHook(object):
def __init__(self, pktType, pktSubtype):
self.pktType = pktType
self.pktSubtype = pktSubtype
def __call__(self, f):
global packetFunctions
if (self.pktType, self.pktSubtype) not in packetFunctio... | Allow mutiple hooks for packets | Allow mutiple hooks for packets
| Python | agpl-3.0 | alama/PSO2Proxy,alama/PSO2Proxy,flyergo/PSO2Proxy,alama/PSO2Proxy,cyberkitsune/PSO2Proxy,cyberkitsune/PSO2Proxy,flyergo/PSO2Proxy,cyberkitsune/PSO2Proxy |
44e31e2153f4eec2863f9d712ab60f0ef00d1779 | mongo_connector/get_last_oplog_timestamp.py | mongo_connector/get_last_oplog_timestamp.py | #!/usr/bin/python
import pymongo
import bson
import time
import sys
from mongo_connector import util
mongo_url = 'mongodb://localhost:27017'
if len(sys.argv) == 1:
print "First argument is mongodb connection string, i.e. localhost:27017. Assuming localhost:27017..."
if len(sys.argv) >= 2:
mongo_url = sys.argv[1]
... | #!/usr/bin/python
import pymongo
import bson
import time
import sys
from mongo_connector import util
mongo_url = 'mongodb://localhost:27017'
if len(sys.argv) == 1:
print "First argument is mongodb connection string, i.e. localhost:27017. Assuming localhost:27017..."
if len(sys.argv) >= 2:
mongo_url = sys.argv[1]
... | Update for compatibility with python 3 | Update for compatibility with python 3 | Python | apache-2.0 | 10gen-labs/mongo-connector,ShaneHarvey/mongo-connector,mongodb-labs/mongo-connector,10gen-labs/mongo-connector,mongodb-labs/mongo-connector,ShaneHarvey/mongo-connector |
af91b7c2612fab598ba50c0c0256f7e552098d92 | reportlab/docs/genAll.py | reportlab/docs/genAll.py | #!/bin/env python
"""Runs the three manual-building scripts"""
if __name__=='__main__':
import os, sys
d = os.path.dirname(sys.argv[0])
#need a quiet mode for the test suite
if '-s' in sys.argv: # 'silent
quiet = '-s'
else:
quiet = ''
if not d: d = '.'
if not os... | #!/bin/env python
import os
def _genAll(d=None,quiet=''):
if not d: d = '.'
if not os.path.isabs(d):
d = os.path.normpath(os.path.join(os.getcwd(),d))
for p in ('reference/genreference.py',
'userguide/genuserguide.py',
'graphguide/gengraphguide.py',
'../tools/docco/graphdocpy.py'):
os.chdir(d)
o... | Allow for use in daily.py | Allow for use in daily.py
| Python | bsd-3-clause | makinacorpus/reportlab-ecomobile,makinacorpus/reportlab-ecomobile,makinacorpus/reportlab-ecomobile,makinacorpus/reportlab-ecomobile,makinacorpus/reportlab-ecomobile |
7c2a640d2c3ab9218d8334f4939d7c1af919c318 | setup.py | setup.py | import os
import sys
from distutils.core import setup
if sys.version_info < (3,):
print('\nSorry, but Adventure can only be installed under Python 3.\n')
sys.exit(1)
README_PATH = os.path.join(os.path.dirname(__file__), 'adventure', 'README.txt')
with open(README_PATH, encoding="utf-8") as f:
README_TEXT ... | import os
import sys
from distutils.core import setup
if sys.version_info < (3,):
print('\nSorry, but Adventure can only be installed under Python 3.\n')
sys.exit(1)
README_PATH = os.path.join(os.path.dirname(__file__), 'adventure', 'README.txt')
with open(README_PATH, encoding="utf-8") as f:
README_TEXT ... | Update outdated link to repository, per @cknv | Update outdated link to repository, per @cknv
| Python | apache-2.0 | devinmcgloin/advent,devinmcgloin/advent |
3e4e44968412acb2ada2279b6fb4108eb66b02b2 | setup.py | setup.py | from setuptools import setup
setup(
name='kf5py',
py_modules = ['kf5py'],
version='0.1.dev5',
author='Chris Teplovs',
author_email='dr.chris@problemshift.com',
url='https://github.com/problemshift/kf5py',
license='LICENSE.txt',
description='Python-based utilities for KF5.',
install_... | from setuptools import setup
setup(
name='kf5py',
py_modules = ['kf5py'],
version='0.1.0',
author='Chris Teplovs',
author_email='dr.chris@problemshift.com',
url='http://problemshift.github.io/kf5py/',
license='LICENSE.txt',
description='Python-based utilities for KF5.',
install_requ... | Remove dev indentifier; crank Development Status; updated URL to point to project page | Remove dev indentifier; crank Development Status; updated URL to point to project page
| Python | mit | problemshift/kf5py |
913a102332e5d2caeab265f8a9980e2303f58550 | setup.py | setup.py | from setuptools import setup
version = "0.10.2"
setup(
name="setuptools-rust",
version=version,
author="Nikolay Kim",
author_email="fafhrd91@gmail.com",
url="https://github.com/PyO3/setuptools-rust",
keywords="distutils setuptools rust",
description="Setuptools rust extension plugin",
... | from setuptools import setup
version = "0.10.2"
setup(
name="setuptools-rust",
version=version,
author="Nikolay Kim",
author_email="fafhrd91@gmail.com",
url="https://github.com/PyO3/setuptools-rust",
keywords="distutils setuptools rust",
description="Setuptools rust extension plugin",
... | Fix wrong path in readme | Fix wrong path in readme
| Python | mit | PyO3/setuptools-rust,PyO3/setuptools-rust |
aba2ccc48fdae23c1e04eab705402e319c97e76a | setup.py | setup.py | # Copyright 2013-2014 Massachusetts Open Cloud Contributors
#
# 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 applicab... | # Copyright 2013-2014 Massachusetts Open Cloud Contributors
#
# 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 applicab... | Change version number to 0.1 | Change version number to 0.1
...in preparation for the upcoming release.
| Python | apache-2.0 | apoorvemohan/haas,SahilTikale/switchHaaS,kylehogan/haas,henn/hil_sahil,henn/hil,kylehogan/hil,henn/hil,SahilTikale/haas,kylehogan/hil,meng-sun/hil,apoorvemohan/haas,CCI-MOC/haas,henn/hil_sahil,henn/haas,meng-sun/hil |
6123ca57cac5d61de833e1102297b0cc9d7a3e0c | setup.py | setup.py | import os.path
import re
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
def fpath(name):
return os.path.join(os.path.dirname(__file__), name)
def read(fname):
return open(fpath(fname)).read()
def grep(attrname):
pattern = r"{0}\W*=\W*'([^']+)'".format(... | import os.path
import re
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
def fpath(name):
return os.path.join(os.path.dirname(__file__), name)
def read(fname):
return open(fpath(fname)).read()
def grep(attrname):
pattern = r"{0}\W*=\W*'([^']+)'".format(... | Use read() utility to open README. | Use read() utility to open README.
| Python | apache-2.0 | crsmithdev/arrow |
f1cba9b90d4b85a88b799a43a05807484e9b9910 | setup.py | setup.py | #! /usr/bin/env python
from setuptools import setup
import re
from os import path
version = ''
with open('cliff/__init__.py', 'r') as fd:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1)
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_... | #! /usr/bin/env python
from setuptools import setup
import re
from os import path
version = ''
with open('cliff/__init__.py', 'r') as fd:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1)
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_... | Fix long description format to be markdown | Fix long description format to be markdown
| Python | mit | c4fcm/CLIFF-API-Client |
a0325e9b29e41badf576c699163aef081df2ab32 | setup.py | setup.py | from setuptools import setup
import os
# Get version without importing, which avoids dependency issues
def get_version():
import re
with open('imbox/version.py') as version_file:
return re.search(r"""__version__\s+=\s+(['"])(?P<version>.+?)\1""",
version_file.read()).group('ve... | from setuptools import setup
import os
# Get version without importing, which avoids dependency issues
def get_version():
import re
with open('imbox/version.py') as version_file:
return re.search(r"""__version__\s+=\s+(['"])(?P<version>.+?)\1""",
version_file.read()).group('ve... | Use context manager for open | Use context manager for open
| Python | mit | martinrusev/imbox |
9da7f07e2a6900b1df2cc0d8e0766409d4a41495 | setup.py | setup.py | """
Favien
======
Network canvas community.
"""
from setuptools import setup
setup(
name='Favien',
version='dev',
url='https://github.com/limeburst/favien',
author='Jihyeok Seo',
author_email='me@limeburst.net',
description='Network canvas community',
long_description=__doc__,
zip_sa... | """
Favien
======
Network canvas community.
"""
from setuptools import setup
setup(
name='Favien',
version='dev',
url='https://github.com/limeburst/favien',
author='Jihyeok Seo',
author_email='me@limeburst.net',
description='Network canvas community',
long_description=__doc__,
zip_sa... | Include static subdirectories in package | Include static subdirectories in package
| Python | agpl-3.0 | favien/favien,favien/favien,favien/favien |
4523e55f7a7c5333b1087a037c6a96b6af30e111 | setup.py | setup.py | #!/usr/bin/env python
from subprocess import check_call, CalledProcessError
from setuptools import setup
def convert_readme():
try:
check_call(["pandoc", "-f", "markdown_github", "-t",
"rst", "-o", "README.rst", "README.md"])
except (OSError, CalledProcessError):
return o... | #!/usr/bin/env python
from subprocess import check_call, CalledProcessError
from setuptools import setup
import six
requirements = ['setuptools', 'mongoengine>=0.10.0']
if six.PY3:
requirements.append('django')
else:
requirements.append('django<2')
def convert_readme():
try:
check_call(["pand... | Install the proper version of Django | Install the proper version of Django
| Python | bsd-3-clause | thomwiggers/django-mongodbforms |
bc4e66a5229ea6863b39ce62a35e19c7cca217aa | setup.py | setup.py | from setuptools import setup
from setuptools import find_packages
from yelp_kafka_tool import __version__
setup(
name="yelp-kafka-tool",
version=__version__,
author="Distributed systems team",
author_email="team-dist-sys@yelp.com",
description="Kafka management tools",
packages=find_packages(... | from setuptools import setup
from setuptools import find_packages
from yelp_kafka_tool import __version__
setup(
name="yelp-kafka-tool",
version=__version__,
author="Distributed systems team",
author_email="team-dist-sys@yelp.com",
description="Kafka management tools",
packages=find_packages(... | Include kafka-check, bump to v0.2.6 | Include kafka-check, bump to v0.2.6
| Python | apache-2.0 | anthonysandrin/kafka-utils,Yelp/kafka-utils,anthonysandrin/kafka-utils,Yelp/kafka-utils |
4359912ce0898c6c4a8d54c7328fb11a7eb486c9 | setup.py | setup.py | from setuptools import setup, Extension
import numpy
ext_modules=[
Extension(
"heat_diffusion_experiment.cython_versions",
["heat_diffusion_experiment/cython_versions.pyx"],
language='c++',
extra_compile_args=['/openmp'],
# extra_link_args=['/openmp'],
),
]
... | from setuptools import setup, Extension
import numpy
import sys
if sys.platform == 'linux'
extra_compile_args = ['-fopenmp'
extra_link_args = ['-fopenmp']
else:
extra_compile_args = ['-/openmp']
extra_link_args = ['-/openmp']
ext_modules=[
Extension(
"heat_diffusion_experi... | Enable module to be compiled with msvc and gcc compilers | Enable module to be compiled with msvc and gcc compilers
| Python | mit | dplucenio/heat_diffusion_experiment |
9192fbad43b7df9153b63f04c444b3654626a9ec | setup.py | setup.py | from setuptools import setup, find_packages
def main():
setup(name='bioagents',
version='0.0.1',
description='Biological Reasoning Agents',
long_description='Biological Reasoning Agents',
author='Benjamin Gyori',
author_email='benjamin_gyori@hms.harvard.edu',
... | from setuptools import setup, find_packages
def main():
setup(name='bioagents',
version='0.0.1',
description='Biological Reasoning Agents',
long_description='Biological Reasoning Agents',
author='Benjamin Gyori',
author_email='benjamin_gyori@hms.harvard.edu',
... | Add pykqml dependency lower limit | Add pykqml dependency lower limit
| Python | bsd-2-clause | bgyori/bioagents,sorgerlab/bioagents |
adfc532450699ac929dd08199abc2c0f751d982f | setup.py | setup.py | #!/usr/bin/python3
from distutils.core import setup
setup(
name='tq',
version='0.2.0',
description='comand line css selector',
author='Pedro',
author_email='pedroghcode@gmail.com',
url='https://github.com/plainas/tq',
packages= ['tq'],
scripts=['bin/tq'],
install_requires=["beautif... | #!/usr/bin/python3
from distutils.core import setup
setup(
name='tq',
version='0.2.0',
description='comand line css selector',
author='Pedro',
author_email='pedroghcode@gmail.com',
url='https://github.com/plainas/tq',
packages= ['tq'],
scripts=['bin/tq'],
install_requires=["beautif... | Allow this tool to be used with more recent versions of BeautifulSoup | Allow this tool to be used with more recent versions of BeautifulSoup
This would allow the use of extra powerful selectors: https://www.crummy.com/software/BeautifulSoup/bs4/doc/#css-selectors | Python | mit | plainas/tq,plainas/tq,plainas/tq |
35dc73f0149d83f2f7f0cae9e602b1aaa399f2c5 | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
setup(
name='robber',
version='1.1.1',
description='BDD / TDD assertion library for Python',
author='Tao Liang',
author_email='tao@synapse-ai.com',
url='https://github.com/vesln/robber.py',
packages=[
'robber... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import setup
long_description = 'BDD / TDD assertion library for Python',
if os.path.exists('README.rst'):
long_description = open('README.rst').read()
setup(
name='robber',
version='1.1.2',
description='BDD / TDD assertion libra... | Deal with MD and RST doc | [c] Deal with MD and RST doc | Python | mit | vesln/robber.py |
597854eeaacaae71832833d41eea260ad5ef7279 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
setup(
name='Simon',
version='0.7.0',
description='Simple MongoDB Models',
long_description=open('README.rst').read(),
author='Andy Dirnberger',
author_email='dirn@dirnonline.com',
url='https://github.com/dirn/Simon',
packages=['simon'... | #!/usr/bin/env python
from setuptools import setup
setup(
name='Simon',
version='0.7.0',
description='Simple MongoDB Models',
long_description=open('README.rst').read(),
author='Andy Dirnberger',
author_email='dirn@dirnonline.com',
url='https://github.com/dirn/Simon',
packages=['simon'... | Add Python 3 to supported languages | Add Python 3 to supported languages
| Python | bsd-3-clause | dirn/Simon,dirn/Simon |
7bd045ce1157343b17318ce446185138400a5f75 | setup.py | setup.py | from setuptools import setup
setup(
name='sandbox',
version=open('VERSION').read().strip(),
long_description=(open('README.rst').read() + '\n' +
open('CHANGELOG.rst').read()),
py_modules=[
'sandbox',
],
setup_requires=[
],
install_requires=[
'aiohtt... | from setuptools import setup
setup(
name='sandbox',
version=open('VERSION').read().strip(),
long_description=(open('README.rst').read() + '\n' +
open('CHANGELOG.rst').read()),
py_modules=[
'sandbox',
],
setup_requires=[
],
install_requires=[
'aiohtt... | Add transaction to project requirements | Add transaction to project requirements
| Python | bsd-2-clause | plone/plone.server,plone/plone.server |
c972357a44640c7a5f803d79fc77ca597e1b22f0 | setup.py | setup.py | from setuptools import setup
with open("README.md", "r") as fh:
long_description = fh.read()
config = {
'name': 'timew-report',
'version': '1.0.0',
'description': 'An interface for TimeWarrior report data',
'long_description': long_description,
'long_description_content_type': 'text/markdown',... | from setuptools import setup
with open("README.md", "r") as fh:
long_description = fh.read()
config = {
'name': 'timew-report',
'version': '1.0.0',
'description': 'An interface for TimeWarrior report data',
'long_description': long_description,
'long_description_content_type': 'text/markdown',... | Drop support for python 2.7 | Drop support for python 2.7
| Python | mit | lauft/timew-report |
655ac367fde72d892eccfeece3ebf6719612d35b | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='amii-tf-nn',
version='0.0.1',
license='MIT',
packages=find_packages(),
install_requires=[
'future == 0.15.2',
'setuptools >= 20.2.2',
'pyyaml == 3.12',
# tensorflow or tensorflow-gpu
],
tests_require=[... | from setuptools import setup, find_packages
setup(
name='amii-tf-nn',
version='0.0.1',
license='MIT',
packages=find_packages(),
install_requires=[
'future == 0.15.2',
'setuptools >= 20.2.2',
'pyyaml == 3.12',
# tensorflow or tensorflow-gpu v1.2
],
tests_requ... | Add version to tf library reminder. | Add version to tf library reminder.
| Python | mit | AmiiThinks/amii-tf-nn |
eda2686d7a59acf5fc7f6d72b710ccc8b20801a9 | setup.py | setup.py | # -*- coding: utf-8 -*-
from distutils.core import setup
long_description = open('README.rst').read()
setup(
name='django-tagging-autocomplete',
version='0.4.2',
description='Autocompletion for django-tagging',
long_description=long_description,
author='Ludwik Trammer',
author_email='ludwik@gm... | # -*- coding: utf-8 -*-
import os
from distutils.core import setup
from distutils.command.install import INSTALL_SCHEMES
long_description = open('README.rst').read()
# install data files where source files are installed
for scheme in INSTALL_SCHEMES.values():
scheme['data'] = scheme['purelib']
def find_data_file... | Install static files with distutils. | Install static files with distutils.
| Python | mit | ludwiktrammer/django-tagging-autocomplete |
06110d32be6bc52f05274318a0f5ff27828acf91 | setup.py | setup.py | #!/usr/bin/env python
# Support setuptools or distutils
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
# Version info -- read without importing
_locals = {}
version_module = execfile('invocations/_version.py', _locals)
version = _locals['__version__']
se... | #!/usr/bin/env python
# Support setuptools or distutils
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
# Version info -- read without importing
_locals = {}
with open('invocations/_version.py') as fp:
exec(fp.read(), None, _locals)
version = _locals['... | Switch to a Python3 Compataible open + read + exec vs execfile | Switch to a Python3 Compataible open + read + exec vs execfile
| Python | bsd-2-clause | pyinvoke/invocations,alex/invocations,mrjmad/invocations,singingwolfboy/invocations |
e34969db596ff3dfa4bf78efb3f3ccfe771d9ef9 | setup.py | setup.py | # Use setuptools if we can
try:
from setuptools.core import setup
except ImportError:
from distutils.core import setup
PACKAGE = 'django_exceptional_middleware'
VERSION = '0.2'
data_files = [
(
'exceptional_middleware/templates/http_responses', [ 'exceptional_middleware/templates/http_responses/de... | # Use setuptools if we can
try:
from setuptools.core import setup
except ImportError:
from distutils.core import setup
PACKAGE = 'django_exceptional_middleware'
VERSION = '0.4'
package_data = {
'exceptional_middleware': [ 'templates/http_responses/*.html' ],
}
setup(
name=PACKAGE, version=VERSION... | Fix templates install. Bump to version 0.4 in the process (which is really my laziness). | Fix templates install. Bump to version 0.4 in the process (which is really my laziness).
| Python | mit | jaylett/django_exceptional_middleware |
23981dd5908b423104bdf51e6882d043b3efdc6e | setup.py | setup.py | # -*- coding: utf-8 -*-
from setuptools import setup
setup(
name='dj-queryset-manager',
version='0.1.0',
url='https://github.com/nosamanuel/dj-queryset-manager',
license=open('LICENSE').read(),
author='Noah Seger',
author_email='nosamanuel@gmail.com.com',
description='Stop writing Django q... | # -*- coding: utf-8 -*-
from setuptools import setup
setup(
name='dj-queryset-manager',
version='0.1.1',
url='https://github.com/nosamanuel/dj-queryset-manager',
license=open('LICENSE').read(),
author='Noah Seger',
author_email='nosamanuel@gmail.com.com',
description='Stop writing Django q... | Include package data to fix bad install (v0.1.1) | Include package data to fix bad install (v0.1.1)
| Python | bsd-3-clause | nosamanuel/dj-queryset-manager |
c6265c2112ee9985af8b6b80fe0bee1811dc6abd | setup.py | setup.py | # -*- coding: utf-8 -*-
from distutils.core import setup
setup(
name='oceanoptics',
version='0.2.6',
author='Andreas Poehlmann, Jose A. Jimenez-Berni, Ben Gamari, Simon Dickreuter',
author_email='mail@andreaspoehlmann.de',
packages=['oceanoptics', 'oceanoptics.spectrometers'],
description='A Py... | # -*- coding: utf-8 -*-
from distutils.core import setup
setup(
name='oceanoptics',
version='0.2.7',
author='Andreas Poehlmann, Jose A. Jimenez-Berni, Ben Gamari, Simon Dickreuter, Ian Ross Williams',
author_email='mail@andreaspoehlmann.de',
packages=['oceanoptics', 'oceanoptics.spectrometers'],
... | Add author and increase version number | Add author and increase version number
| Python | mit | ap--/python-oceanoptics |
e01697c5d5e5e45a0dd20870c71bb17399991ca1 | setup.py | setup.py | import os
from setuptools import setup, find_packages
ROOT = os.path.abspath(os.path.dirname(__file__))
setup(
name='django-nose',
version='0.2',
description='Django test runner that uses nose.',
long_description=open(os.path.join(ROOT, 'README.rst')).read(),
author='Jeff Balogh',
author_email... | import os
from setuptools import setup, find_packages
ROOT = os.path.abspath(os.path.dirname(__file__))
setup(
name='django-nose',
version='0.2',
description='Django test runner that uses nose.',
long_description=open(os.path.join(ROOT, 'README.rst')).read(),
author='Jeff Balogh',
author_email... | Comment out entrypoint because it blows up django-nose in connection with tox. Ouch. | Comment out entrypoint because it blows up django-nose in connection with tox. Ouch.
| Python | bsd-3-clause | millerdev/django-nose,millerdev/django-nose,harukaeru/django-nose,dgladkov/django-nose,sociateru/django-nose,360youlun/django-nose,mzdaniel/django-nose,brilliant-org/django-nose,sociateru/django-nose,dgladkov/django-nose,krinart/django-nose,fabiosantoscode/django-nose-123-fix,mzdaniel/django-nose,franciscoruiz/django-n... |
da10b6baa19c1ef3a5f875297187e7248b7460b1 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
import sys
long_description = ''
if 'upload' in sys.argv:
with open('README.rst') as f:
long_description = f.read()
def extras_require():
return {
'test': [
'tox>=2.0',
'pytest>=2.8.5',
'pyt... | #!/usr/bin/env python
from setuptools import setup, find_packages
import sys
long_description = ''
if 'upload' in sys.argv:
with open('README.rst') as f:
long_description = f.read()
def extras_require():
return {
'test': [
'tox>=2.0',
'pytest>=2.8.5',
'pyt... | Use PEP 508 version markers. | BLD: Use PEP 508 version markers.
So that environment tooling, e.g. `pipenv` can use the python version markers
when determining dependencies.
| Python | apache-2.0 | ssanderson/interface |
0458cc6e41b55bdd6e393c517492a5f6631a51c9 | setup.py | setup.py | from setuptools import setup, find_packages
import sys, os
PACKAGE = 'mtdna'
VERSION = open(os.path.join(os.path.dirname(os.path.realpath(__file__)),'oldowan', PACKAGE, 'VERSION')).read().strip()
desc_lines = open('README', 'r').readlines()
setup(name='oldowan.%s' % PACKAGE,
version=VERSION,
description... | from setuptools import setup, find_packages
import sys, os
PACKAGE = 'mtdna'
VERSION = open(os.path.join(os.path.dirname(os.path.realpath(__file__)),'oldowan', PACKAGE, 'VERSION')).read().strip()
desc_lines = open('README', 'r').readlines()
setup(name='oldowan.%s' % PACKAGE,
version=VERSION,
description... | Fix package data so that VERSION file actually gets installed | Fix package data so that VERSION file actually gets installed
| Python | mit | ryanraaum/oldowan.mtdna |
0309dbd25b6d7603aba5f0cf686e9d049716b711 | setup.py | setup.py | import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name="feedinlib",
version="0.1.0dev",
description="Creating time series from pv or wind power plants.",
url="http://github.com/oemof/feedinlib",
author="oemof dev... | import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name="feedinlib",
version="0.1.0dev",
description="Creating time series from pv or wind power plants.",
url="http://github.com/oemof/feedinlib",
author="oemof dev... | Add `"shapely"` dependency to extra requirements | Add `"shapely"` dependency to extra requirements
Also, `"nbformat"` is a dependency of `"jupyter"` so we don't need to
specify both.
| Python | mit | oemof/feedinlib |
b78c634069354565cf749ed139cade244415b5a4 | setup.py | setup.py | import os
from setuptools import setup
longDesc = ""
if os.path.exists("README.rst"):
longDesc = open("README.rst").read().strip()
setup(
name = "pytesseract",
version = "0.1.6",
author = "Samuel Hoffstaetter",
author_email="",
maintainer = "Matthias Lee",
maintainer_email = "pytesseract@mad... | import os
from setuptools import setup
longDesc = ""
if os.path.exists("README.rst"):
longDesc = open("README.rst").read().strip()
setup(
name = "pytesseract",
version = "0.1.6",
author = "Samuel Hoffstaetter",
author_email="pytesseract@madmaze.net",
maintainer = "Matthias Lee",
maintainer_e... | Include author email since it's required info | Include author email since it's required info
Same as maintainer email, because the author email is unknown | Python | apache-2.0 | madmaze/pytesseract |
ae1cf07cc703d85f3d3c77eab76c83baec17a74d | split.py | split.py | import re
def split_string(string, seperator=' '):
return string.split(seperator)
def split_regex(string, seperator_pattern):
return re.split(seperator_pattern, string)
class FilterModule(object):
''' A filter to split a string into a list. '''
def filters(self):
return {
'split'... | from ansible import errors
import re
def split_string(string, seperator=' '):
try:
return string.split(seperator)
except Exception, e:
raise errors.AnsibleFilterError('split plugin error: %s, string=%s' % str(e),str(string) )
def split_regex(string, seperator_pattern):
try:
return ... | Add standard Ansible exception handling | Add standard Ansible exception handling | Python | cc0-1.0 | timraasveld/ansible-string-split-filter,ypid/ansible-string-split-filter |
cfe77bd4fd40b58678fa56ec08b5f862d9f1781c | post.py | post.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import cgi
import sqlite3
import time
import config
def valid(qs):
required_keys = ['title', 'comment', 'posted_by', 'localite', 'latitude', 'longitude']
return all([qs.has_key(k) for k in required_keys])
def post(title, comment, posted_by, localite, latitude, lo... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import cgi
import sqlite3
import time
import config
def valid(qs):
required_keys = ['title', 'comment', 'posted_by', 'localite', 'latitude', 'longitude']
return all([qs.has_key(k) for k in required_keys])
def post(title, comment, posted_by, localite, latitude, lo... | Modify created_at and updated_at to millisecond | Modify created_at and updated_at to millisecond
| Python | mit | otknoy/michishiki_api_server |
5bb9b2c9d5df410c85f4736c17224aeb2f05dd33 | s2v3.py | s2v3.py | from s2v2 import *
def calculate_sum(data_sample):
total = 0
for row in data_sample[1:]: # slice to start at row two, but I think we should only skip row 1 if we're importing the full csv (data_from_csv), but if we use the data w/ the header (my_csv) we'll be skipping a row that we're not supposed to skip (the actu... | from s2v2 import *
def calculate_sum(data_sample):
total = 0
for row in data_sample[1:]: # slice to start at row two, but I think we should only skip row 1 if we're importing the full csv (data_from_csv), but if we use the data w/ the header (my_csv) we'll be skipping a row that we're not supposed to skip (the actu... | Update print result to use "," instead of "+" for context text | Update print result to use "," instead of "+" for context text
| Python | mit | alexmilesyounger/ds_basics |
7b422b2432bc8db3034e39073d2efa0bd69ec35f | test.py | test.py | import time
import urllib
import RPi.GPIO as GPIO
# GPIO input pin to use
LPR_PIN = 3
# URL to get image from
SOURCE = 'http://192.168.0.13:8080/photoaf.jpg'
# Path to save image locally
FILE = 'img.jpg'
# Use GPIO pin numbers
GPIO.setmode(GPIO.BCM)
# Disable "Ports already in use" warning
GPIO.setwarnings(False)
# ... | import time
import urllib
import RPi.GPIO as GPIO
# GPIO input pin to use
LPR_PIN = 3
# URL to get image from
SOURCE = 'http://192.168.0.13:8080/photoaf.jpg'
# Path to save image locally
FILE = 'img.jpg'
# Use GPIO pin numbers
GPIO.setmode(GPIO.BCM)
# Disable "Ports already in use" warning
GPIO.setwarnings(False)
# ... | Add try statement to cleanup pins and invert pull/up down | Add try statement to cleanup pins and invert pull/up down
| Python | mit | adampiskorski/lpr_poc |
75f6963082ed686f4d91ec8df3961048d9428c6b | test.py | test.py | import unittest
from enigma import Enigma, Steckerbrett, Umkehrwalze, Walzen
class RotorTestCase(unittest.TestCase):
pass
def run_tests():
runner = unittest.TextTestRunner()
suite = unittest.TestLoader().loadTestsFromTestCase(RotorTestCase)
runner.run(suite)
if __name__ == '__main__': # pragma: ... | import unittest
from enigma import Enigma, Steckerbrett, Umkehrwalze, Walzen
class RotorTestCase(unittest.TestCase):
def test_rotor_encoding(self):
rotor = Walzen(wiring='EKMFLGDQVZNTOWYHXUSPAIBRCJ', notch='Q')
self.assertEqual('E', rotor.encode('A'))
def run_tests():
runner = unittest.Text... | Test if default rotor encodes forward properly | Test if default rotor encodes forward properly
| Python | mit | ranisalt/enigma |
3ba5b6491bf61e2d2919f05bbf5cef088a754aeb | molecule/default/tests/test_installation.py | molecule/default/tests/test_installation.py | """
Role tests
"""
import os
import pytest
from testinfra.utils.ansible_runner import AnsibleRunner
testinfra_hosts = AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
@pytest.mark.parametrize('name', [
('vsftpd'),
('db5.3-util'),
])
def test_installed_packages(host, name):
"""
... | """
Role tests
"""
import os
import pytest
from testinfra.utils.ansible_runner import AnsibleRunner
testinfra_hosts = AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
@pytest.mark.parametrize('name', [
('vsftpd'),
('db5.3-util'),
])
def test_installed_packages(host, name):
"""
... | Add nologin in expected user shell test | Add nologin in expected user shell test
| Python | mit | infOpen/ansible-role-vsftpd |
a8d873e178d45024db9c0ef6a25c6867424785f7 | bindings/python/llvm/tests/base.py | bindings/python/llvm/tests/base.py | import os.path
import unittest
POSSIBLE_TEST_BINARIES = [
'libreadline.so.5',
'libreadline.so.6',
]
POSSIBLE_TEST_BINARY_PATHS = [
'/lib',
'/usr/lib',
'/usr/local/lib',
]
class TestBase(unittest.TestCase):
def get_test_binary(self):
"""Helper to obtain a test binary for object file te... | import os.path
import unittest
POSSIBLE_TEST_BINARIES = [
'libreadline.so.5',
'libreadline.so.6',
]
POSSIBLE_TEST_BINARY_PATHS = [
'/usr/lib/debug',
'/lib',
'/usr/lib',
'/usr/local/lib',
'/lib/i386-linux-gnu',
]
class TestBase(unittest.TestCase):
def get_test_binary(self):
"""... | Add some paths where to find test binary | [python] Add some paths where to find test binary
Adds /usr/lib/debug early to list, as some systems (debian) have unstripped libs in there
Adds /lib/i386-linux-gnu for systems that does multiarch (debian)
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@153174 91177308-0d34-0410-b5e6-96231b3b80d8
| Python | bsd-2-clause | chubbymaggie/asap,chubbymaggie/asap,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,dslab-epfl/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,ch... |
b15872bff28628c468d3d485eae2f79efba41160 | worker/server/constants.py | worker/server/constants.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###############################################################################
# Copyright Kitware 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 ... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###############################################################################
# Copyright Kitware 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 ... | Fix a misspelled variable name | Fix a misspelled variable name
This appears to be unused anywhere in the source code.
| Python | apache-2.0 | girder/girder_worker,girder/girder_worker,girder/girder_worker |
b4c9b76d132668695b77d37d7db3071e629fcba7 | makerscience_admin/models.py | makerscience_admin/models.py | # -*- coding: utf-8 -*-
from django.db import models
from solo.models import SingletonModel
class MakerScienceStaticContent (SingletonModel):
about = models.TextField(null=True, blank=True)
about_team = models.TextField(null=True, blank=True)
about_contact = models.TextField(null=True, blank=True)
abou... | # -*- coding: utf-8 -*-
from django.db import models
from django.db.models.signals import post_delete
from solo.models import SingletonModel
from accounts.models import ObjectProfileLink
from makerscience_forum.models import MakerSciencePost
class MakerScienceStaticContent (SingletonModel):
about = models.TextF... | Allow to clear useless instances | Allow to clear useless instances
| Python | agpl-3.0 | atiberghien/makerscience-server,atiberghien/makerscience-server |
9fa296bfad85b42c04c325f1dfdd1caaa31bbd1b | NSYSU.py | NSYSU.py | cast=["Cleese","Palin","Jones","Idle"]
print(cast)
cast.pop()
print(cast)
cast.extend(["Gillan","Chanpman"])
print(cast) | #test code
cast=["Cleese","Palin","Jones","Idle"]
print(cast)
cast.pop()
print(cast)
cast.extend(["Gillan","Chanpman"])
print(cast) | Add modify code Google News Crawer | Add modify code Google News Crawer
| Python | epl-1.0 | KuChanTung/Python |
c3e81aee9852a94befdec9d9b2d3f9cd3d7914e2 | dbaas/system/tasks.py | dbaas/system/tasks.py | # -*- coding: utf-8 -*-
from dbaas.celery import app
from util.decorators import only_one
from models import CeleryHealthCheck
#from celery.utils.log import get_task_logger
#LOG = get_task_logger(__name__)
import logging
LOG = logging.getLogger(__name__)
@app.task(bind=True)
def set_celery_healthcheck_last_update... | # -*- coding: utf-8 -*-
from dbaas.celery import app
from util.decorators import only_one
from models import CeleryHealthCheck
from notification.models import TaskHistory
import logging
LOG = logging.getLogger(__name__)
@app.task(bind=True)
@only_one(key="celery_healthcheck_last_update", timeout=20)
def set_celery_... | Change task to create a taskHistory object | Change task to create a taskHistory object
| Python | bsd-3-clause | globocom/database-as-a-service,globocom/database-as-a-service,globocom/database-as-a-service,globocom/database-as-a-service |
c713273fe145418113d750579f8b135dc513c3b8 | config.py | config.py | import os
if os.environ.get('DATABASE_URL') is None:
SQLALCHEMY_DATABASE_URI = 'sqlite:///meetup.db'
else:
SQLALCHEMY_DATABASE_URI = os.environ['DATABASE_URL']
SQLALCHEMY_TRACK_MODIFICATIONS = False # supress deprecation warning
| import os
SQLALCHEMY_DATABASE_URI = os.environ['DATABASE_URL']
SQLALCHEMY_TRACK_MODIFICATIONS = False # supress deprecation warning
| Delete default case for SQLALCHEMY_DATABASE_URI | Delete default case for SQLALCHEMY_DATABASE_URI
if user doesn't set it, he coud have some problems with SQLite
| Python | mit | Stark-Mountain/meetup-facebook-bot,Stark-Mountain/meetup-facebook-bot |
ac863c20ac4094168b07d6823241d55e985ba231 | site.py | site.py | import sys
from flask import Flask, render_template
from flask_flatpages import FlatPages, flatpages
from flask_frozen import Freezer
DEBUG = True
FLATPAGES_AUTO_RELOAD = DEBUG
FLATPAGES_EXTENSION = '.md'
FREEZER_DESTINATION = 'dist'
app = Flask(__name__)
app.config.from_object(__name__)
pages = FlatPages(app)
freez... | import sys
from flask import Flask, render_template
from flask_flatpages import FlatPages, flatpages
from flask_frozen import Freezer
DEBUG = True
FLATPAGES_AUTO_RELOAD = DEBUG
FLATPAGES_EXTENSION = '.md'
FREEZER_DESTINATION = 'dist'
app = Flask(__name__)
app.config.from_object(__name__)
pages = FlatPages(app)
freez... | Create custom test for Jinja2 | Create custom test for Jinja2
| Python | mit | claudiopastorini/claudiopastorini.github.io,claudiopastorini/claudiopastorini.github.io,claudiopastorini/claudiopastorini.github.io |
c61d5e84863dd67b5b76ec8031e624642f4c957c | main.py | main.py | from .ide.command import plugin_unloaded
from .ide.error import *
from .ide.rebuild import *
from .ide.server import *
from .ide.settings import plugin_loaded
from .ide.text_command import *
from .ide.type_hints import *
from .ide.utility import *
| from .ide.auto_complete import *
from .ide.command import plugin_unloaded
from .ide.error import *
from .ide.rebuild import *
from .ide.server import *
from .ide.settings import plugin_loaded
from .ide.text_command import *
from .ide.type_hints import *
| Fix issue with wrong import | Fix issue with wrong import
| Python | mit | b123400/purescript-ide-sublime |
a4013c7f33226915b3c1fb7863f3e96b24413591 | main.py | main.py | # Copyright 2015, 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 or agreed to in writing, software d... | # Copyright 2015, 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 or agreed to in writing, software d... | Add Error Message To Server | Add Error Message To Server
| Python | apache-2.0 | bshaffer/appengine-python-vm-hello,googlearchive/appengine-python-vm-hello,bshaffer/appengine-python-vm-hello,googlearchive/appengine-python-vm-hello |
db136a4313c859495109e4ddaa0b715260526f63 | webhooks/registry.py | webhooks/registry.py | import logging
from django.conf import settings
from django.utils.importlib import import_module
__all__ = ('events', 'register', 'unregister')
logger = logging.getLogger('webhooks')
class AlreadyRegistered(Exception):
pass
class NotRegistered(Exception):
pass
class Events(dict):
def register(self, eve... | import logging
from django.conf import settings
from django.utils.importlib import import_module
__all__ = ('events', 'register', 'unregister')
logger = logging.getLogger('webhooks')
class AlreadyRegistered(Exception):
pass
class NotRegistered(Exception):
pass
class Events(dict):
def register(self, eve... | Fix string formatting for NotRegistered exception | Fix string formatting for NotRegistered exception | Python | bsd-2-clause | chop-dbhi/django-webhooks,pombredanne/django-webhooks,pombredanne/django-webhooks,chop-dbhi/django-webhooks |
78be1f58d618077f42d04390baf97938d01df44f | models/analyze_pic_server.py | models/analyze_pic_server.py | # import analyze
from analyze import check_blob_in_direct_path
import os
import sys
sys.path.insert(0, os.getcwd())
from get_images_from_pi import get_image, get_image_x_times
get_image()
check_blob_in_direct_path(os.getcwd() + "/images/greg.jpg") | from analyze import check_blob_in_direct_path
import os
import sys
sys.path.insert(0, os.getcwd())
from get_images_from_pi import get_image, get_image_x_times
get_image()
check_blob_in_direct_path(os.getcwd() + "/images/greg.jpg") | Delete line loading an unnecessary module | Delete line loading an unnecessary module
| Python | mit | jwarshaw/RaspberryDrive |
4e75e742475236cf7358b4481a29a54eb607dd4d | spacy/tests/regression/test_issue850.py | spacy/tests/regression/test_issue850.py | '''
Test Matcher matches with '*' operator and Boolean flag
'''
from __future__ import unicode_literals
import pytest
from ...matcher import Matcher
from ...vocab import Vocab
from ...attrs import LOWER
from ...tokens import Doc
@pytest.mark.xfail
def test_issue850():
matcher = Matcher(Vocab())
IS_ANY_TOKEN ... | '''
Test Matcher matches with '*' operator and Boolean flag
'''
from __future__ import unicode_literals
from __future__ import print_function
import pytest
from ...matcher import Matcher
from ...vocab import Vocab
from ...attrs import LOWER
from ...tokens import Doc
def test_basic_case():
matcher = Matcher(Vocab... | Update regression test for variable-length pattern problem in the matcher. | Update regression test for variable-length pattern problem in the matcher.
| Python | mit | aikramer2/spaCy,oroszgy/spaCy.hu,raphael0202/spaCy,spacy-io/spaCy,explosion/spaCy,oroszgy/spaCy.hu,oroszgy/spaCy.hu,explosion/spaCy,recognai/spaCy,raphael0202/spaCy,recognai/spaCy,honnibal/spaCy,raphael0202/spaCy,recognai/spaCy,honnibal/spaCy,aikramer2/spaCy,raphael0202/spaCy,explosion/spaCy,honnibal/spaCy,Gregory-Howa... |
aa8a54c765ace8f4aa3a88fd7a956d481b1484a2 | scrapi/util/__init__.py | scrapi/util/__init__.py | import os
import errno
import importlib
from scrapi import settings
def import_consumer(consumer_name):
# TODO Make suer that consumer_name will always import the correct module
return importlib.import_module('scrapi.consumers.{}'.format(consumer_name))
def build_norm_dir(consumer_name, timestamp, norm_doc... | import os
import errno
import importlib
from urllib2 import quote
def import_consumer(consumer_name):
# TODO Make suer that consumer_name will always import the correct module
return importlib.import_module('scrapi.consumers.{}'.format(consumer_name))
# :: Str -> Str
def doc_id_to_path(doc_id):
replacem... | Move some functionality into the storage module | Move some functionality into the storage module
| Python | apache-2.0 | alexgarciac/scrapi,erinspace/scrapi,icereval/scrapi,mehanig/scrapi,erinspace/scrapi,mehanig/scrapi,jeffreyliu3230/scrapi,ostwald/scrapi,CenterForOpenScience/scrapi,felliott/scrapi,CenterForOpenScience/scrapi,fabianvf/scrapi,fabianvf/scrapi,felliott/scrapi |
fa8783f3307582dafcf636f5c94a7e4cff05724b | bin/tree_print_fasta_names.py | bin/tree_print_fasta_names.py | #! /usr/bin/env python3
import os
import shutil
import datetime
import sys
import argparse
from ete3 import Tree
import logging
DEFAULT_FORMAT = 1
class TreeIndex:
def __init__(self,tree_newick_fn,format=DEFAULT_FORMAT):
self.tree_newick_fn=tree_newick_fn
self.tree=read_newick(tree_newick_fn,format=format)
... | #! /usr/bin/env python3
import os
import shutil
import datetime
import sys
from ete3 import Tree
DEFAULT_FORMAT = 1
class TreeIndex:
def __init__(self,tree_newick_fn,format=DEFAULT_FORMAT):
self.tree_newick_fn=tree_newick_fn
self.tree=Tree(tree_newick_fn,format=format)
def process_node(self,node):
if node... | Fix error in loading trees | Fix error in loading trees
Former-commit-id: 6fda03a47c5fa2d65c143ebdd81e158ba5e1ccda | Python | mit | karel-brinda/prophyle,karel-brinda/prophyle,karel-brinda/prophyle,karel-brinda/prophyle |
a20c6d072d70c535ed1f116fc04016c834ea9c14 | doc/en/_getdoctarget.py | doc/en/_getdoctarget.py | #!/usr/bin/env python
import py
def get_version_string():
fn = py.path.local(__file__).join("..", "..", "..",
"_pytest", "__init__.py")
for line in fn.readlines():
if "version" in line:
return eval(line.split("=")[-1])
def get_minor_version_string():
... | #!/usr/bin/env python
import py
def get_version_string():
fn = py.path.local(__file__).join("..", "..", "..",
"_pytest", "__init__.py")
for line in fn.readlines():
if "version" in line and not line.strip().startswith('#'):
return eval(line.split("=")[-... | Fix getdoctarget to ignore comment lines | Fix getdoctarget to ignore comment lines
| Python | mit | etataurov/pytest,gabrielcnr/pytest,mbirtwell/pytest,vodik/pytest,The-Compiler/pytest,omarkohl/pytest,Bjwebb/pytest,davidszotten/pytest,gabrielcnr/pytest,mdboom/pytest,ionelmc/pytest,malinoff/pytest,hpk42/pytest,tareqalayan/pytest,userzimmermann/pytest,rouge8/pytest,tgoodlet/pytest,abusalimov/pytest,bukzor/pytest,icemac... |
efd6fad89131c4d3070c68013ace77f11647bd68 | opal/core/search/__init__.py | opal/core/search/__init__.py | """
OPAL core search package
"""
from opal.core.search import urls
from opal.core import plugins
from opal.core import celery # NOQA
class SearchPlugin(plugins.OpalPlugin):
"""
The plugin entrypoint for OPAL's core search functionality
"""
urls = urls.urlpatterns
javascripts = {
'opal.s... | """
OPAL core search package
"""
from opal.core import celery # NOQA
from opal.core.search import plugin
| Move Opal.core.search plugin into a plugins.py ahead of full plugin 2.0 refactor | Move Opal.core.search plugin into a plugins.py ahead of full plugin 2.0 refactor
| Python | agpl-3.0 | khchine5/opal,khchine5/opal,khchine5/opal |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 4