commit stringlengths 40 40 | old_file stringlengths 4 118 | new_file stringlengths 4 118 | old_contents stringlengths 0 2.94k | new_contents stringlengths 1 4.43k | subject stringlengths 15 444 | message stringlengths 16 3.45k | lang stringclasses 1
value | license stringclasses 13
values | repos stringlengths 5 43.2k | prompt stringlengths 17 4.58k | response stringlengths 1 4.43k | prompt_tagged stringlengths 58 4.62k | response_tagged stringlengths 1 4.43k | text stringlengths 132 7.29k | text_tagged stringlengths 173 7.33k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5741aad8ddd7080c6a11dfd70b08ed28954d8817 | setup.py | setup.py | from setuptools import setup, find_packages
version = '0.9.8'
setup(name='btsync.py',
version=version,
description="A Python API client for BitTorrent Sync",
long_description=open('README.md').read(),
classifiers=[
'Intended Audience :: Developers',
'Environment :: Console... | from setuptools import setup, find_packages
version = '0.9.8'
setup(name='btsync.py',
version=version,
description="A Python API client for BitTorrent Sync",
long_description=open('README.rst').read(),
classifiers=[
'Intended Audience :: Developers',
'Environment :: Consol... | Use RST documentation by default | Use RST documentation by default
| Python | mit | kevinjqiu/btsync.py | from setuptools import setup, find_packages
version = '0.9.8'
setup(name='btsync.py',
version=version,
description="A Python API client for BitTorrent Sync",
long_description=open('README.md').read(),
classifiers=[
'Intended Audience :: Developers',
'Environment :: Console... | from setuptools import setup, find_packages
version = '0.9.8'
setup(name='btsync.py',
version=version,
description="A Python API client for BitTorrent Sync",
long_description=open('README.rst').read(),
classifiers=[
'Intended Audience :: Developers',
'Environment :: Consol... | <commit_before>from setuptools import setup, find_packages
version = '0.9.8'
setup(name='btsync.py',
version=version,
description="A Python API client for BitTorrent Sync",
long_description=open('README.md').read(),
classifiers=[
'Intended Audience :: Developers',
'Environ... | from setuptools import setup, find_packages
version = '0.9.8'
setup(name='btsync.py',
version=version,
description="A Python API client for BitTorrent Sync",
long_description=open('README.rst').read(),
classifiers=[
'Intended Audience :: Developers',
'Environment :: Consol... | from setuptools import setup, find_packages
version = '0.9.8'
setup(name='btsync.py',
version=version,
description="A Python API client for BitTorrent Sync",
long_description=open('README.md').read(),
classifiers=[
'Intended Audience :: Developers',
'Environment :: Console... | <commit_before>from setuptools import setup, find_packages
version = '0.9.8'
setup(name='btsync.py',
version=version,
description="A Python API client for BitTorrent Sync",
long_description=open('README.md').read(),
classifiers=[
'Intended Audience :: Developers',
'Environ... |
aacc8530ff1d2da53e4fc82bb2c9e0fd085039d5 | setup.py | setup.py | #!/usr/bin/env python
"""omf: API Library for Open Mining Format"""
from distutils.core import setup
from setuptools import find_packages
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Mathemati... | #!/usr/bin/env python
"""omf: API Library for Open Mining Format"""
from distutils.core import setup
from setuptools import find_packages
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Mathemati... | Update properties and vectormath dependencies | Update properties and vectormath dependencies
| Python | mit | aranzgeo/omf,GMSGDataExchange/omf | #!/usr/bin/env python
"""omf: API Library for Open Mining Format"""
from distutils.core import setup
from setuptools import find_packages
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Mathemati... | #!/usr/bin/env python
"""omf: API Library for Open Mining Format"""
from distutils.core import setup
from setuptools import find_packages
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Mathemati... | <commit_before>#!/usr/bin/env python
"""omf: API Library for Open Mining Format"""
from distutils.core import setup
from setuptools import find_packages
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineeri... | #!/usr/bin/env python
"""omf: API Library for Open Mining Format"""
from distutils.core import setup
from setuptools import find_packages
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Mathemati... | #!/usr/bin/env python
"""omf: API Library for Open Mining Format"""
from distutils.core import setup
from setuptools import find_packages
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Mathemati... | <commit_before>#!/usr/bin/env python
"""omf: API Library for Open Mining Format"""
from distutils.core import setup
from setuptools import find_packages
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineeri... |
49ea8677fb7e41099c6de77eaa926eb5081937cd | setup.py | setup.py | import codecs
from os import path
from setuptools import find_packages, setup
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding="utf-8") as fp:
return fp.read()
setup(
author="Pinax Team",
author_email="[email protected]",
des... | import codecs
from os import path
from setuptools import find_packages, setup
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding="utf-8") as fp:
return fp.read()
setup(
author="Pinax Team",
author_email="[email protected]",
des... | Bump version number for next release | Bump version number for next release
| Python | unknown | rizumu/pinax-invitations,pinax/pinax-invitations,jacobwegner/pinax-invitations,eldarion/kaleo | import codecs
from os import path
from setuptools import find_packages, setup
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding="utf-8") as fp:
return fp.read()
setup(
author="Pinax Team",
author_email="[email protected]",
des... | import codecs
from os import path
from setuptools import find_packages, setup
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding="utf-8") as fp:
return fp.read()
setup(
author="Pinax Team",
author_email="[email protected]",
des... | <commit_before>import codecs
from os import path
from setuptools import find_packages, setup
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding="utf-8") as fp:
return fp.read()
setup(
author="Pinax Team",
author_email="team@pinaxprojec... | import codecs
from os import path
from setuptools import find_packages, setup
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding="utf-8") as fp:
return fp.read()
setup(
author="Pinax Team",
author_email="[email protected]",
des... | import codecs
from os import path
from setuptools import find_packages, setup
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding="utf-8") as fp:
return fp.read()
setup(
author="Pinax Team",
author_email="[email protected]",
des... | <commit_before>import codecs
from os import path
from setuptools import find_packages, setup
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding="utf-8") as fp:
return fp.read()
setup(
author="Pinax Team",
author_email="team@pinaxprojec... |
684ba6619c267ce4364a12f30a65fe8cc8f78a53 | setup.py | setup.py | from setuptools import setup
setup(
name='tangled.website',
version='0.1.dev0',
description='tangledframework.org',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.website/tags',
author='Wyatt Baldwin',
... | from setuptools import setup
setup(
name='tangled.website',
version='0.1.dev0',
description='tangledframework.org',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.website/tags',
author='Wyatt Baldwin',
... | Upgrade SQLAlchemy 0.9.7 => 1.1.6 | Upgrade SQLAlchemy 0.9.7 => 1.1.6
| Python | mit | TangledWeb/tangled.website | from setuptools import setup
setup(
name='tangled.website',
version='0.1.dev0',
description='tangledframework.org',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.website/tags',
author='Wyatt Baldwin',
... | from setuptools import setup
setup(
name='tangled.website',
version='0.1.dev0',
description='tangledframework.org',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.website/tags',
author='Wyatt Baldwin',
... | <commit_before>from setuptools import setup
setup(
name='tangled.website',
version='0.1.dev0',
description='tangledframework.org',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.website/tags',
author='Wyat... | from setuptools import setup
setup(
name='tangled.website',
version='0.1.dev0',
description='tangledframework.org',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.website/tags',
author='Wyatt Baldwin',
... | from setuptools import setup
setup(
name='tangled.website',
version='0.1.dev0',
description='tangledframework.org',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.website/tags',
author='Wyatt Baldwin',
... | <commit_before>from setuptools import setup
setup(
name='tangled.website',
version='0.1.dev0',
description='tangledframework.org',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.website/tags',
author='Wyat... |
2b421b006b0f87cadcbad18b0b4eea55e04ee63c | setup.py | setup.py | from setuptools import find_packages, setup
tests_require = [
'mock',
'pytest',
'pytest-django',
]
requires = [
'Django',
]
entry_points = {
}
setup(
name='django-view-as',
version='0.1.1',
author="David Cramer",
author_email="[email protected]",
license='Apache License 2.0',
... | from setuptools import find_packages, setup
tests_require = [
'mock',
'pytest',
'pytest-django',
]
requires = [
'Django',
]
entry_points = {
}
setup(
name='django-view-as',
version='0.1.0',
description="A Django middleware which allows you to view the site on behalf of a user.",
aut... | Drop version back to 0.1.0 and add desc | Drop version back to 0.1.0 and add desc
| Python | apache-2.0 | dcramer/django-view-as,dcramer/django-view-as | from setuptools import find_packages, setup
tests_require = [
'mock',
'pytest',
'pytest-django',
]
requires = [
'Django',
]
entry_points = {
}
setup(
name='django-view-as',
version='0.1.1',
author="David Cramer",
author_email="[email protected]",
license='Apache License 2.0',
... | from setuptools import find_packages, setup
tests_require = [
'mock',
'pytest',
'pytest-django',
]
requires = [
'Django',
]
entry_points = {
}
setup(
name='django-view-as',
version='0.1.0',
description="A Django middleware which allows you to view the site on behalf of a user.",
aut... | <commit_before>from setuptools import find_packages, setup
tests_require = [
'mock',
'pytest',
'pytest-django',
]
requires = [
'Django',
]
entry_points = {
}
setup(
name='django-view-as',
version='0.1.1',
author="David Cramer",
author_email="[email protected]",
license='Apache L... | from setuptools import find_packages, setup
tests_require = [
'mock',
'pytest',
'pytest-django',
]
requires = [
'Django',
]
entry_points = {
}
setup(
name='django-view-as',
version='0.1.0',
description="A Django middleware which allows you to view the site on behalf of a user.",
aut... | from setuptools import find_packages, setup
tests_require = [
'mock',
'pytest',
'pytest-django',
]
requires = [
'Django',
]
entry_points = {
}
setup(
name='django-view-as',
version='0.1.1',
author="David Cramer",
author_email="[email protected]",
license='Apache License 2.0',
... | <commit_before>from setuptools import find_packages, setup
tests_require = [
'mock',
'pytest',
'pytest-django',
]
requires = [
'Django',
]
entry_points = {
}
setup(
name='django-view-as',
version='0.1.1',
author="David Cramer",
author_email="[email protected]",
license='Apache L... |
16bbd7e31abef111bb7801e7c6639e368fd5b142 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
setup(name='tap-awin',
version='0.0.3',
description='Singer.io tap for extracting data from the Affiliate Window API',
author='Onedox',
url='https://github.com/onedox/tap-awin',
classifiers=['Programming Language :: Python :: 3 :: Only']... | #!/usr/bin/env python
from setuptools import setup
setup(name='tap-awin',
version='0.0.4',
description='Singer.io tap for extracting data from the Affiliate Window API',
author='Onedox',
url='https://github.com/onedox/tap-awin',
classifiers=['Programming Language :: Python :: 3 :: Only']... | Prepare for release of 0.0.4 | Prepare for release of 0.0.4
| Python | apache-2.0 | onedox/tap-awin | #!/usr/bin/env python
from setuptools import setup
setup(name='tap-awin',
version='0.0.3',
description='Singer.io tap for extracting data from the Affiliate Window API',
author='Onedox',
url='https://github.com/onedox/tap-awin',
classifiers=['Programming Language :: Python :: 3 :: Only']... | #!/usr/bin/env python
from setuptools import setup
setup(name='tap-awin',
version='0.0.4',
description='Singer.io tap for extracting data from the Affiliate Window API',
author='Onedox',
url='https://github.com/onedox/tap-awin',
classifiers=['Programming Language :: Python :: 3 :: Only']... | <commit_before>#!/usr/bin/env python
from setuptools import setup
setup(name='tap-awin',
version='0.0.3',
description='Singer.io tap for extracting data from the Affiliate Window API',
author='Onedox',
url='https://github.com/onedox/tap-awin',
classifiers=['Programming Language :: Python... | #!/usr/bin/env python
from setuptools import setup
setup(name='tap-awin',
version='0.0.4',
description='Singer.io tap for extracting data from the Affiliate Window API',
author='Onedox',
url='https://github.com/onedox/tap-awin',
classifiers=['Programming Language :: Python :: 3 :: Only']... | #!/usr/bin/env python
from setuptools import setup
setup(name='tap-awin',
version='0.0.3',
description='Singer.io tap for extracting data from the Affiliate Window API',
author='Onedox',
url='https://github.com/onedox/tap-awin',
classifiers=['Programming Language :: Python :: 3 :: Only']... | <commit_before>#!/usr/bin/env python
from setuptools import setup
setup(name='tap-awin',
version='0.0.3',
description='Singer.io tap for extracting data from the Affiliate Window API',
author='Onedox',
url='https://github.com/onedox/tap-awin',
classifiers=['Programming Language :: Python... |
3d0117fe770141d888c48f6c8792fffa00ee47df | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
with open('README.rst') as f:
long_description = f.read()
setup(name='schoolbus',
version='0.4.16',
description='schoolbus is a library to guess whether an email is from an academic institution.',
long_description=long_description,
author='Joshua Ma'... | #!/usr/bin/env python
from setuptools import setup
with open('README.rst') as f:
long_description = f.read()
setup(name='schoolbus',
version='0.5.0',
description='schoolbus is a library to guess whether an email is from an academic institution.',
long_description=long_description,
author='Joshua Ma',... | Upgrade schoolbus to 0.5.0 and require public_suffix >= 1.1.0 | Upgrade schoolbus to 0.5.0 and require public_suffix >= 1.1.0
| Python | mit | benchling/schoolbus | #!/usr/bin/env python
from setuptools import setup
with open('README.rst') as f:
long_description = f.read()
setup(name='schoolbus',
version='0.4.16',
description='schoolbus is a library to guess whether an email is from an academic institution.',
long_description=long_description,
author='Joshua Ma'... | #!/usr/bin/env python
from setuptools import setup
with open('README.rst') as f:
long_description = f.read()
setup(name='schoolbus',
version='0.5.0',
description='schoolbus is a library to guess whether an email is from an academic institution.',
long_description=long_description,
author='Joshua Ma',... | <commit_before>#!/usr/bin/env python
from setuptools import setup
with open('README.rst') as f:
long_description = f.read()
setup(name='schoolbus',
version='0.4.16',
description='schoolbus is a library to guess whether an email is from an academic institution.',
long_description=long_description,
aut... | #!/usr/bin/env python
from setuptools import setup
with open('README.rst') as f:
long_description = f.read()
setup(name='schoolbus',
version='0.5.0',
description='schoolbus is a library to guess whether an email is from an academic institution.',
long_description=long_description,
author='Joshua Ma',... | #!/usr/bin/env python
from setuptools import setup
with open('README.rst') as f:
long_description = f.read()
setup(name='schoolbus',
version='0.4.16',
description='schoolbus is a library to guess whether an email is from an academic institution.',
long_description=long_description,
author='Joshua Ma'... | <commit_before>#!/usr/bin/env python
from setuptools import setup
with open('README.rst') as f:
long_description = f.read()
setup(name='schoolbus',
version='0.4.16',
description='schoolbus is a library to guess whether an email is from an academic institution.',
long_description=long_description,
aut... |
fc249017ce2b36b5b1c63536649f116c0de411c0 | setup.py | setup.py | from setuptools import setup
datafiles = [('/etc', ['general_conf/bck.conf'])]
setup(
name='mysql-autoxtrabackup',
version='1.1',
packages=['general_conf', 'backup_prepare', 'partial_recovery', 'master_backup_script'],
py_modules = ['autoxtrabackup'],
url='https://github.com/ShahriyarR/MySQL-AutoX... | from setuptools import setup
datafiles = [('//etc', ['general_conf/bck.conf'])]
setup(
name='mysql-autoxtrabackup',
version='1.1',
packages=['general_conf', 'backup_prepare', 'partial_recovery', 'master_backup_script'],
py_modules = ['autoxtrabackup'],
url='https://github.com/ShahriyarR/MySQL-Auto... | Set install datafile to root | Set install datafile to root
| Python | mit | ShahriyarR/MySQL-AutoXtraBackup,ShahriyarR/MySQL-AutoXtraBackup | from setuptools import setup
datafiles = [('/etc', ['general_conf/bck.conf'])]
setup(
name='mysql-autoxtrabackup',
version='1.1',
packages=['general_conf', 'backup_prepare', 'partial_recovery', 'master_backup_script'],
py_modules = ['autoxtrabackup'],
url='https://github.com/ShahriyarR/MySQL-AutoX... | from setuptools import setup
datafiles = [('//etc', ['general_conf/bck.conf'])]
setup(
name='mysql-autoxtrabackup',
version='1.1',
packages=['general_conf', 'backup_prepare', 'partial_recovery', 'master_backup_script'],
py_modules = ['autoxtrabackup'],
url='https://github.com/ShahriyarR/MySQL-Auto... | <commit_before>from setuptools import setup
datafiles = [('/etc', ['general_conf/bck.conf'])]
setup(
name='mysql-autoxtrabackup',
version='1.1',
packages=['general_conf', 'backup_prepare', 'partial_recovery', 'master_backup_script'],
py_modules = ['autoxtrabackup'],
url='https://github.com/Shahriy... | from setuptools import setup
datafiles = [('//etc', ['general_conf/bck.conf'])]
setup(
name='mysql-autoxtrabackup',
version='1.1',
packages=['general_conf', 'backup_prepare', 'partial_recovery', 'master_backup_script'],
py_modules = ['autoxtrabackup'],
url='https://github.com/ShahriyarR/MySQL-Auto... | from setuptools import setup
datafiles = [('/etc', ['general_conf/bck.conf'])]
setup(
name='mysql-autoxtrabackup',
version='1.1',
packages=['general_conf', 'backup_prepare', 'partial_recovery', 'master_backup_script'],
py_modules = ['autoxtrabackup'],
url='https://github.com/ShahriyarR/MySQL-AutoX... | <commit_before>from setuptools import setup
datafiles = [('/etc', ['general_conf/bck.conf'])]
setup(
name='mysql-autoxtrabackup',
version='1.1',
packages=['general_conf', 'backup_prepare', 'partial_recovery', 'master_backup_script'],
py_modules = ['autoxtrabackup'],
url='https://github.com/Shahriy... |
31d009e4aec67f4ee0918158ee681019947699d5 | setup.py | setup.py | from ado.version import ADO_VERSION
from setuptools import setup, find_packages
setup(
name='ado',
author='Ana Nelson',
packages=find_packages(),
version=ADO_VERSION,
install_requires = [
'python-modargs>=1.7',
'Markdown', # for reports
'dexy>... | from ado.version import ADO_VERSION
from setuptools import setup, find_packages
setup(
name='ado',
author='Ana Nelson',
packages=find_packages(),
version=ADO_VERSION,
include_package_data = True,
install_requires = [
'python-modargs>=1.7',
'Markdo... | Set include package data to true. | Set include package data to true.
| Python | mit | ananelson/ado,ananelson/ado,ananelson/ado,ananelson/ado | from ado.version import ADO_VERSION
from setuptools import setup, find_packages
setup(
name='ado',
author='Ana Nelson',
packages=find_packages(),
version=ADO_VERSION,
install_requires = [
'python-modargs>=1.7',
'Markdown', # for reports
'dexy>... | from ado.version import ADO_VERSION
from setuptools import setup, find_packages
setup(
name='ado',
author='Ana Nelson',
packages=find_packages(),
version=ADO_VERSION,
include_package_data = True,
install_requires = [
'python-modargs>=1.7',
'Markdo... | <commit_before>from ado.version import ADO_VERSION
from setuptools import setup, find_packages
setup(
name='ado',
author='Ana Nelson',
packages=find_packages(),
version=ADO_VERSION,
install_requires = [
'python-modargs>=1.7',
'Markdown', # for reports
... | from ado.version import ADO_VERSION
from setuptools import setup, find_packages
setup(
name='ado',
author='Ana Nelson',
packages=find_packages(),
version=ADO_VERSION,
include_package_data = True,
install_requires = [
'python-modargs>=1.7',
'Markdo... | from ado.version import ADO_VERSION
from setuptools import setup, find_packages
setup(
name='ado',
author='Ana Nelson',
packages=find_packages(),
version=ADO_VERSION,
install_requires = [
'python-modargs>=1.7',
'Markdown', # for reports
'dexy>... | <commit_before>from ado.version import ADO_VERSION
from setuptools import setup, find_packages
setup(
name='ado',
author='Ana Nelson',
packages=find_packages(),
version=ADO_VERSION,
install_requires = [
'python-modargs>=1.7',
'Markdown', # for reports
... |
0ccf40ceff0ca0000641791dc9750fcd52932cd8 | setup.py | setup.py | #!/usr/bin/env python
# Generated by jaraco.develop (https://bitbucket.org/jaraco/jaraco.develop)
import io
import setuptools
with io.open('README.txt', encoding='utf-8') as readme:
long_description = readme.read()
with io.open('CHANGES.txt', encoding='utf-8') as changes:
long_description += '\n\n' + changes.read()... | #!/usr/bin/env python
# Generated by jaraco.develop (https://bitbucket.org/jaraco/jaraco.develop)
import io
import setuptools
with io.open('README.txt', encoding='utf-8') as readme:
long_description = readme.read()
with io.open('CHANGES.txt', encoding='utf-8') as changes:
long_description += '\n\n' + changes.read()... | Add license info (retroactively applied to all commits). | Add license info (retroactively applied to all commits).
| Python | mit | jaraco/tempora | #!/usr/bin/env python
# Generated by jaraco.develop (https://bitbucket.org/jaraco/jaraco.develop)
import io
import setuptools
with io.open('README.txt', encoding='utf-8') as readme:
long_description = readme.read()
with io.open('CHANGES.txt', encoding='utf-8') as changes:
long_description += '\n\n' + changes.read()... | #!/usr/bin/env python
# Generated by jaraco.develop (https://bitbucket.org/jaraco/jaraco.develop)
import io
import setuptools
with io.open('README.txt', encoding='utf-8') as readme:
long_description = readme.read()
with io.open('CHANGES.txt', encoding='utf-8') as changes:
long_description += '\n\n' + changes.read()... | <commit_before>#!/usr/bin/env python
# Generated by jaraco.develop (https://bitbucket.org/jaraco/jaraco.develop)
import io
import setuptools
with io.open('README.txt', encoding='utf-8') as readme:
long_description = readme.read()
with io.open('CHANGES.txt', encoding='utf-8') as changes:
long_description += '\n\n' +... | #!/usr/bin/env python
# Generated by jaraco.develop (https://bitbucket.org/jaraco/jaraco.develop)
import io
import setuptools
with io.open('README.txt', encoding='utf-8') as readme:
long_description = readme.read()
with io.open('CHANGES.txt', encoding='utf-8') as changes:
long_description += '\n\n' + changes.read()... | #!/usr/bin/env python
# Generated by jaraco.develop (https://bitbucket.org/jaraco/jaraco.develop)
import io
import setuptools
with io.open('README.txt', encoding='utf-8') as readme:
long_description = readme.read()
with io.open('CHANGES.txt', encoding='utf-8') as changes:
long_description += '\n\n' + changes.read()... | <commit_before>#!/usr/bin/env python
# Generated by jaraco.develop (https://bitbucket.org/jaraco/jaraco.develop)
import io
import setuptools
with io.open('README.txt', encoding='utf-8') as readme:
long_description = readme.read()
with io.open('CHANGES.txt', encoding='utf-8') as changes:
long_description += '\n\n' +... |
a4598045180d89130d6ec5bde3ca63b7155a9ccd | setup.py | setup.py | #!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import os
import sys
if sys.version < '3':
execfile(os.path.join('algoliasearch', 'version.py'))
else:
exec(open("algoliasearch/version.py").read())
setup( name='algoliasearch',
vers... | #!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import os
import sys
if sys.version < '3':
execfile(os.path.join('algoliasearch', 'version.py'))
else:
exec(open("algoliasearch/version.py").read())
setup( name='algoliasearch',
vers... | Include resources/ca-bundle.crt as data file | Include resources/ca-bundle.crt as data file
| Python | mit | algolia/algoliasearch-client-python | #!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import os
import sys
if sys.version < '3':
execfile(os.path.join('algoliasearch', 'version.py'))
else:
exec(open("algoliasearch/version.py").read())
setup( name='algoliasearch',
vers... | #!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import os
import sys
if sys.version < '3':
execfile(os.path.join('algoliasearch', 'version.py'))
else:
exec(open("algoliasearch/version.py").read())
setup( name='algoliasearch',
vers... | <commit_before>#!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import os
import sys
if sys.version < '3':
execfile(os.path.join('algoliasearch', 'version.py'))
else:
exec(open("algoliasearch/version.py").read())
setup( name='algoliasearch... | #!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import os
import sys
if sys.version < '3':
execfile(os.path.join('algoliasearch', 'version.py'))
else:
exec(open("algoliasearch/version.py").read())
setup( name='algoliasearch',
vers... | #!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import os
import sys
if sys.version < '3':
execfile(os.path.join('algoliasearch', 'version.py'))
else:
exec(open("algoliasearch/version.py").read())
setup( name='algoliasearch',
vers... | <commit_before>#!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import os
import sys
if sys.version < '3':
execfile(os.path.join('algoliasearch', 'version.py'))
else:
exec(open("algoliasearch/version.py").read())
setup( name='algoliasearch... |
67f9729d34732c82cbc26a393f7c5ddf4f27625e | setup.py | setup.py | import sys
from setuptools import find_packages, setup
with open('VERSION') as version_fp:
VERSION = version_fp.read().strip()
install_requires = [
'django-local-settings>=1.0a13',
'stashward',
]
if sys.version_info[:2] < (3, 4):
install_requires.append('enum34')
setup(
name='django-arcutils... | import sys
from setuptools import find_packages, setup
with open('VERSION') as version_fp:
VERSION = version_fp.read().strip()
install_requires = [
'django-local-settings>=1.0a13',
'stashward',
]
if sys.version_info[:2] < (3, 4):
install_requires.append('enum34')
setup(
name='django-arcutils... | Upgrade certifi 2015.11.20.1 => 2016.2.28 | Upgrade certifi 2015.11.20.1 => 2016.2.28
| Python | mit | PSU-OIT-ARC/django-arcutils,PSU-OIT-ARC/django-arcutils,wylee/django-arcutils,wylee/django-arcutils | import sys
from setuptools import find_packages, setup
with open('VERSION') as version_fp:
VERSION = version_fp.read().strip()
install_requires = [
'django-local-settings>=1.0a13',
'stashward',
]
if sys.version_info[:2] < (3, 4):
install_requires.append('enum34')
setup(
name='django-arcutils... | import sys
from setuptools import find_packages, setup
with open('VERSION') as version_fp:
VERSION = version_fp.read().strip()
install_requires = [
'django-local-settings>=1.0a13',
'stashward',
]
if sys.version_info[:2] < (3, 4):
install_requires.append('enum34')
setup(
name='django-arcutils... | <commit_before>import sys
from setuptools import find_packages, setup
with open('VERSION') as version_fp:
VERSION = version_fp.read().strip()
install_requires = [
'django-local-settings>=1.0a13',
'stashward',
]
if sys.version_info[:2] < (3, 4):
install_requires.append('enum34')
setup(
name='... | import sys
from setuptools import find_packages, setup
with open('VERSION') as version_fp:
VERSION = version_fp.read().strip()
install_requires = [
'django-local-settings>=1.0a13',
'stashward',
]
if sys.version_info[:2] < (3, 4):
install_requires.append('enum34')
setup(
name='django-arcutils... | import sys
from setuptools import find_packages, setup
with open('VERSION') as version_fp:
VERSION = version_fp.read().strip()
install_requires = [
'django-local-settings>=1.0a13',
'stashward',
]
if sys.version_info[:2] < (3, 4):
install_requires.append('enum34')
setup(
name='django-arcutils... | <commit_before>import sys
from setuptools import find_packages, setup
with open('VERSION') as version_fp:
VERSION = version_fp.read().strip()
install_requires = [
'django-local-settings>=1.0a13',
'stashward',
]
if sys.version_info[:2] < (3, 4):
install_requires.append('enum34')
setup(
name='... |
a74c939b306e8bcc1aa987848ce6a69038555786 | setup.py | setup.py | from distutils.core import setup, Extension
from setuptools import setup, Extension
config = {
'include_package_data': True,
'description': 'Deep RegulAtory GenOmic Neural Networks (DragoNN)',
'download_url': 'https://github.com/kundajelab/dragonn',
'version': '0.1',
'packages': ['dragonn', 'dragon... | from distutils.core import setup, Extension
from setuptools import setup, Extension
config = {
'include_package_data': True,
'description': 'Deep RegulAtory GenOmic Neural Networks (DragoNN)',
'download_url': 'https://github.com/kundajelab/dragonn',
'version': '0.1',
'packages': ['dragonn', 'dragon... | Add sklearn dependency for tutorial | Add sklearn dependency for tutorial
| Python | mit | agitter/dragonn,jisraeli/dragonn,jisraeli/dragonn,agitter/dragonn | from distutils.core import setup, Extension
from setuptools import setup, Extension
config = {
'include_package_data': True,
'description': 'Deep RegulAtory GenOmic Neural Networks (DragoNN)',
'download_url': 'https://github.com/kundajelab/dragonn',
'version': '0.1',
'packages': ['dragonn', 'dragon... | from distutils.core import setup, Extension
from setuptools import setup, Extension
config = {
'include_package_data': True,
'description': 'Deep RegulAtory GenOmic Neural Networks (DragoNN)',
'download_url': 'https://github.com/kundajelab/dragonn',
'version': '0.1',
'packages': ['dragonn', 'dragon... | <commit_before>from distutils.core import setup, Extension
from setuptools import setup, Extension
config = {
'include_package_data': True,
'description': 'Deep RegulAtory GenOmic Neural Networks (DragoNN)',
'download_url': 'https://github.com/kundajelab/dragonn',
'version': '0.1',
'packages': ['dr... | from distutils.core import setup, Extension
from setuptools import setup, Extension
config = {
'include_package_data': True,
'description': 'Deep RegulAtory GenOmic Neural Networks (DragoNN)',
'download_url': 'https://github.com/kundajelab/dragonn',
'version': '0.1',
'packages': ['dragonn', 'dragon... | from distutils.core import setup, Extension
from setuptools import setup, Extension
config = {
'include_package_data': True,
'description': 'Deep RegulAtory GenOmic Neural Networks (DragoNN)',
'download_url': 'https://github.com/kundajelab/dragonn',
'version': '0.1',
'packages': ['dragonn', 'dragon... | <commit_before>from distutils.core import setup, Extension
from setuptools import setup, Extension
config = {
'include_package_data': True,
'description': 'Deep RegulAtory GenOmic Neural Networks (DragoNN)',
'download_url': 'https://github.com/kundajelab/dragonn',
'version': '0.1',
'packages': ['dr... |
e650562758023a01b9c3566d1e35bb5185d1193a | setup.py | setup.py | from setuptools import setup, find_packages
import torba
setup(
name='torba',
version=torba.__version__,
url='https://github.com/lbryio/torba',
license='MIT',
author='LBRY Inc.',
author_email='[email protected]',
description='Wallet library for bitcoin based currencies.',
keywords='wallet,... | import os
from setuptools import setup, find_packages
import torba
setup(
name='torba',
version=torba.__version__,
url='https://github.com/lbryio/torba',
license='MIT',
author='LBRY Inc.',
author_email='[email protected]',
description='Wallet library for bitcoin based currencies.',
long_de... | Use README as long description on PyPI | Use README as long description on PyPI | Python | mit | lbryio/lbry,lbryio/lbry,lbryio/lbry | from setuptools import setup, find_packages
import torba
setup(
name='torba',
version=torba.__version__,
url='https://github.com/lbryio/torba',
license='MIT',
author='LBRY Inc.',
author_email='[email protected]',
description='Wallet library for bitcoin based currencies.',
keywords='wallet,... | import os
from setuptools import setup, find_packages
import torba
setup(
name='torba',
version=torba.__version__,
url='https://github.com/lbryio/torba',
license='MIT',
author='LBRY Inc.',
author_email='[email protected]',
description='Wallet library for bitcoin based currencies.',
long_de... | <commit_before>from setuptools import setup, find_packages
import torba
setup(
name='torba',
version=torba.__version__,
url='https://github.com/lbryio/torba',
license='MIT',
author='LBRY Inc.',
author_email='[email protected]',
description='Wallet library for bitcoin based currencies.',
ke... | import os
from setuptools import setup, find_packages
import torba
setup(
name='torba',
version=torba.__version__,
url='https://github.com/lbryio/torba',
license='MIT',
author='LBRY Inc.',
author_email='[email protected]',
description='Wallet library for bitcoin based currencies.',
long_de... | from setuptools import setup, find_packages
import torba
setup(
name='torba',
version=torba.__version__,
url='https://github.com/lbryio/torba',
license='MIT',
author='LBRY Inc.',
author_email='[email protected]',
description='Wallet library for bitcoin based currencies.',
keywords='wallet,... | <commit_before>from setuptools import setup, find_packages
import torba
setup(
name='torba',
version=torba.__version__,
url='https://github.com/lbryio/torba',
license='MIT',
author='LBRY Inc.',
author_email='[email protected]',
description='Wallet library for bitcoin based currencies.',
ke... |
cacbc6825be010f6b839c8d21392a43b8b7b938d | setup.py | setup.py | from distutils.core import setup
setup(name='pandocfilters',
version='1.0',
description='Utilities for writing pandoc filters in python',
author='John MacFarlane',
author_email='[email protected]',
url='http://github.com/jgm/pandocfilters',
py_modules=['pandocfilters'],
ke... | from distutils.core import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='pandocfilters',
version='1.0',
description='Utilities for writing pandoc filters in python',
long_description=read('README.rst'),
author='John MacFarlane',
... | INclude README as long description. | INclude README as long description.
| Python | bsd-3-clause | AugustH/pandocfilters,infotroph/pandocfilters,silvio/pandocfilters,alycosta/pandocfilters,timtylin/scholdoc-filters,jgm/pandocfilters | from distutils.core import setup
setup(name='pandocfilters',
version='1.0',
description='Utilities for writing pandoc filters in python',
author='John MacFarlane',
author_email='[email protected]',
url='http://github.com/jgm/pandocfilters',
py_modules=['pandocfilters'],
ke... | from distutils.core import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='pandocfilters',
version='1.0',
description='Utilities for writing pandoc filters in python',
long_description=read('README.rst'),
author='John MacFarlane',
... | <commit_before>from distutils.core import setup
setup(name='pandocfilters',
version='1.0',
description='Utilities for writing pandoc filters in python',
author='John MacFarlane',
author_email='[email protected]',
url='http://github.com/jgm/pandocfilters',
py_modules=['pandocfilt... | from distutils.core import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='pandocfilters',
version='1.0',
description='Utilities for writing pandoc filters in python',
long_description=read('README.rst'),
author='John MacFarlane',
... | from distutils.core import setup
setup(name='pandocfilters',
version='1.0',
description='Utilities for writing pandoc filters in python',
author='John MacFarlane',
author_email='[email protected]',
url='http://github.com/jgm/pandocfilters',
py_modules=['pandocfilters'],
ke... | <commit_before>from distutils.core import setup
setup(name='pandocfilters',
version='1.0',
description='Utilities for writing pandoc filters in python',
author='John MacFarlane',
author_email='[email protected]',
url='http://github.com/jgm/pandocfilters',
py_modules=['pandocfilt... |
5181b779555de20c55fa5bdb67c1b4d52ae5cc03 | setup.py | setup.py | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='python-evrythng',
version='0.1',
packages=['evrythng', 'evrythng.entities'],
package_dir={'': 'src'},
url='https://github.com/GooeeIOT/python-evrythng',
license='MIT',
author='Lyle S... | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='python-evrythng',
version='0.2',
packages=['evrythng', 'evrythng.entities'],
package_dir={'': 'src'},
url='https://github.com/GooeeIOT/python-evrythng',
license='MIT',
author='Gooee,... | Add requests as a requirement package. | Add requests as a requirement package.
| Python | mit | GooeeIOT/python-evrythng | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='python-evrythng',
version='0.1',
packages=['evrythng', 'evrythng.entities'],
package_dir={'': 'src'},
url='https://github.com/GooeeIOT/python-evrythng',
license='MIT',
author='Lyle S... | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='python-evrythng',
version='0.2',
packages=['evrythng', 'evrythng.entities'],
package_dir={'': 'src'},
url='https://github.com/GooeeIOT/python-evrythng',
license='MIT',
author='Gooee,... | <commit_before>try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='python-evrythng',
version='0.1',
packages=['evrythng', 'evrythng.entities'],
package_dir={'': 'src'},
url='https://github.com/GooeeIOT/python-evrythng',
license='MIT',
... | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='python-evrythng',
version='0.2',
packages=['evrythng', 'evrythng.entities'],
package_dir={'': 'src'},
url='https://github.com/GooeeIOT/python-evrythng',
license='MIT',
author='Gooee,... | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='python-evrythng',
version='0.1',
packages=['evrythng', 'evrythng.entities'],
package_dir={'': 'src'},
url='https://github.com/GooeeIOT/python-evrythng',
license='MIT',
author='Lyle S... | <commit_before>try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='python-evrythng',
version='0.1',
packages=['evrythng', 'evrythng.entities'],
package_dir={'': 'src'},
url='https://github.com/GooeeIOT/python-evrythng',
license='MIT',
... |
50d875569eeab42b9967890e8db61ec2f5ed0eb7 | setup.py | setup.py | import os
from setuptools import setup, find_packages
requires = [
'pyramid',
'pyramid_chameleon',
'pyramid_debugtoolbar',
'waitress',
]
setup(name='kimochi-consumer',
version='0.0',
description='kimochi-consumer',
long_description="Example content consumer for Kimochi.",
... | import os
from setuptools import setup, find_packages
requires = [
'pyramid',
'pyramid_debugtoolbar',
'pyramid_mako',
'waitress',
]
setup(name='kimochi-consumer',
version='0.0',
description='kimochi-consumer',
long_description="Example content consumer for Kimochi.",
class... | Use mako for templating instead of chameleon | Use mako for templating instead of chameleon
| Python | mit | matslindh/kimochi-consumer | import os
from setuptools import setup, find_packages
requires = [
'pyramid',
'pyramid_chameleon',
'pyramid_debugtoolbar',
'waitress',
]
setup(name='kimochi-consumer',
version='0.0',
description='kimochi-consumer',
long_description="Example content consumer for Kimochi.",
... | import os
from setuptools import setup, find_packages
requires = [
'pyramid',
'pyramid_debugtoolbar',
'pyramid_mako',
'waitress',
]
setup(name='kimochi-consumer',
version='0.0',
description='kimochi-consumer',
long_description="Example content consumer for Kimochi.",
class... | <commit_before>import os
from setuptools import setup, find_packages
requires = [
'pyramid',
'pyramid_chameleon',
'pyramid_debugtoolbar',
'waitress',
]
setup(name='kimochi-consumer',
version='0.0',
description='kimochi-consumer',
long_description="Example content consumer for Ki... | import os
from setuptools import setup, find_packages
requires = [
'pyramid',
'pyramid_debugtoolbar',
'pyramid_mako',
'waitress',
]
setup(name='kimochi-consumer',
version='0.0',
description='kimochi-consumer',
long_description="Example content consumer for Kimochi.",
class... | import os
from setuptools import setup, find_packages
requires = [
'pyramid',
'pyramid_chameleon',
'pyramid_debugtoolbar',
'waitress',
]
setup(name='kimochi-consumer',
version='0.0',
description='kimochi-consumer',
long_description="Example content consumer for Kimochi.",
... | <commit_before>import os
from setuptools import setup, find_packages
requires = [
'pyramid',
'pyramid_chameleon',
'pyramid_debugtoolbar',
'waitress',
]
setup(name='kimochi-consumer',
version='0.0',
description='kimochi-consumer',
long_description="Example content consumer for Ki... |
20419a44c76fc042856857c2883de19342fa2b1b | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-fancypages',
version=":versiontools:oscar_mws:",
url='https://github.com/tangentlabs/django-oscar-mws',
author="Sebastian Vetter",
author_email="[email protected]",
description="Integrati... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-fancypages',
version=":versiontools:oscar_mws:",
url='https://github.com/tangentlabs/django-oscar-mws',
author="Sebastian Vetter",
author_email="[email protected]",
description="Integrati... | Add deps for Amazon API and XML handling | Add deps for Amazon API and XML handling
| Python | bsd-3-clause | django-oscar/django-oscar-mws,django-oscar/django-oscar-mws | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-fancypages',
version=":versiontools:oscar_mws:",
url='https://github.com/tangentlabs/django-oscar-mws',
author="Sebastian Vetter",
author_email="[email protected]",
description="Integrati... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-fancypages',
version=":versiontools:oscar_mws:",
url='https://github.com/tangentlabs/django-oscar-mws',
author="Sebastian Vetter",
author_email="[email protected]",
description="Integrati... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-fancypages',
version=":versiontools:oscar_mws:",
url='https://github.com/tangentlabs/django-oscar-mws',
author="Sebastian Vetter",
author_email="[email protected]",
descrip... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-fancypages',
version=":versiontools:oscar_mws:",
url='https://github.com/tangentlabs/django-oscar-mws',
author="Sebastian Vetter",
author_email="[email protected]",
description="Integrati... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-fancypages',
version=":versiontools:oscar_mws:",
url='https://github.com/tangentlabs/django-oscar-mws',
author="Sebastian Vetter",
author_email="[email protected]",
description="Integrati... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-fancypages',
version=":versiontools:oscar_mws:",
url='https://github.com/tangentlabs/django-oscar-mws',
author="Sebastian Vetter",
author_email="[email protected]",
descrip... |
bd1908fe817e24c93690e0bc5e12eaad5bf7a374 | setup.py | setup.py | #!/usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
import os
from setuptools import setup, find_packages
here = os.path.dirname(__file__)
version_file = os.path.join(here, 'src/iptools/__init__.py')
d = {}
execfile(version_file, d)
version = d['__version__']
setup(
name = 'iptools',
... | #!/usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
import os
from setuptools import setup, find_packages
here = os.path.dirname(__file__)
version_file = os.path.join(here, 'src/iptools/__init__.py')
d = {}
execfile(version_file, d)
version = d['__version__']
setup(
name = 'iptools',
... | Mark as python 3 compatable. | Mark as python 3 compatable. | Python | bsd-2-clause | timmerk/python-iptools,malonlabe/python-iptools,ancat/python-iptools | #!/usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
import os
from setuptools import setup, find_packages
here = os.path.dirname(__file__)
version_file = os.path.join(here, 'src/iptools/__init__.py')
d = {}
execfile(version_file, d)
version = d['__version__']
setup(
name = 'iptools',
... | #!/usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
import os
from setuptools import setup, find_packages
here = os.path.dirname(__file__)
version_file = os.path.join(here, 'src/iptools/__init__.py')
d = {}
execfile(version_file, d)
version = d['__version__']
setup(
name = 'iptools',
... | <commit_before>#!/usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
import os
from setuptools import setup, find_packages
here = os.path.dirname(__file__)
version_file = os.path.join(here, 'src/iptools/__init__.py')
d = {}
execfile(version_file, d)
version = d['__version__']
setup(
name =... | #!/usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
import os
from setuptools import setup, find_packages
here = os.path.dirname(__file__)
version_file = os.path.join(here, 'src/iptools/__init__.py')
d = {}
execfile(version_file, d)
version = d['__version__']
setup(
name = 'iptools',
... | #!/usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
import os
from setuptools import setup, find_packages
here = os.path.dirname(__file__)
version_file = os.path.join(here, 'src/iptools/__init__.py')
d = {}
execfile(version_file, d)
version = d['__version__']
setup(
name = 'iptools',
... | <commit_before>#!/usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
import os
from setuptools import setup, find_packages
here = os.path.dirname(__file__)
version_file = os.path.join(here, 'src/iptools/__init__.py')
d = {}
execfile(version_file, d)
version = d['__version__']
setup(
name =... |
a7c31950cc2ad737176ba2aa91c77c7c649aa8c7 | shell.py | shell.py | import sys, os, subprocess
def make_environment(env=None):
if env is None:
env = os.environ
env = env.copy()
env["PYTHONUNBUFFERED"] = "1"
env["PYTHONIOENCODING"] = "UTF-8"
return env
def run_shell_command(cmdline, pipe_output=True, env=None, **kwargs):
if sys.platform == "win32":
... | import sys, os, subprocess
remove_vars = ("PYTHONHOME", "PYTHONPATH", "VERSIONER_PYTHON_PREFER_32_BIT")
def make_environment(env=None):
if env is None:
env = os.environ
env = env.copy()
for var in remove_vars:
if var in env:
del env[var]
env["PYTHONUNBUFFERED"] = "1"
en... | Remove some Python environment variables from user subprocess environment. | Remove some Python environment variables from user subprocess environment.
| Python | mit | shaurz/devo | import sys, os, subprocess
def make_environment(env=None):
if env is None:
env = os.environ
env = env.copy()
env["PYTHONUNBUFFERED"] = "1"
env["PYTHONIOENCODING"] = "UTF-8"
return env
def run_shell_command(cmdline, pipe_output=True, env=None, **kwargs):
if sys.platform == "win32":
... | import sys, os, subprocess
remove_vars = ("PYTHONHOME", "PYTHONPATH", "VERSIONER_PYTHON_PREFER_32_BIT")
def make_environment(env=None):
if env is None:
env = os.environ
env = env.copy()
for var in remove_vars:
if var in env:
del env[var]
env["PYTHONUNBUFFERED"] = "1"
en... | <commit_before>import sys, os, subprocess
def make_environment(env=None):
if env is None:
env = os.environ
env = env.copy()
env["PYTHONUNBUFFERED"] = "1"
env["PYTHONIOENCODING"] = "UTF-8"
return env
def run_shell_command(cmdline, pipe_output=True, env=None, **kwargs):
if sys.platform =... | import sys, os, subprocess
remove_vars = ("PYTHONHOME", "PYTHONPATH", "VERSIONER_PYTHON_PREFER_32_BIT")
def make_environment(env=None):
if env is None:
env = os.environ
env = env.copy()
for var in remove_vars:
if var in env:
del env[var]
env["PYTHONUNBUFFERED"] = "1"
en... | import sys, os, subprocess
def make_environment(env=None):
if env is None:
env = os.environ
env = env.copy()
env["PYTHONUNBUFFERED"] = "1"
env["PYTHONIOENCODING"] = "UTF-8"
return env
def run_shell_command(cmdline, pipe_output=True, env=None, **kwargs):
if sys.platform == "win32":
... | <commit_before>import sys, os, subprocess
def make_environment(env=None):
if env is None:
env = os.environ
env = env.copy()
env["PYTHONUNBUFFERED"] = "1"
env["PYTHONIOENCODING"] = "UTF-8"
return env
def run_shell_command(cmdline, pipe_output=True, env=None, **kwargs):
if sys.platform =... |
bc25841219aa4811b8fb3ec19f5f75809a6e62c0 | tasks.py | tasks.py | # Project tasks (for use with invoke task runner)
import subprocess
from invoke import task
@task
def test(cover=False):
# Run tests using nose called with coverage
code = subprocess.call(['coverage', 'run', '-m', 'nose', '--rednose'])
# Also generate coverage reports when --cover flag is given
if co... | # Project tasks (for use with invoke task runner)
import subprocess
from invoke import task
@task
def test(cover=False):
if cover:
# Run tests via coverage and generate reports if --cover flag is given
code = subprocess.call(['coverage', 'run', '-m', 'nose', '--rednose'])
# Only show cove... | Improve performance of test task | Improve performance of test task
| Python | mit | caleb531/three-of-a-crime | # Project tasks (for use with invoke task runner)
import subprocess
from invoke import task
@task
def test(cover=False):
# Run tests using nose called with coverage
code = subprocess.call(['coverage', 'run', '-m', 'nose', '--rednose'])
# Also generate coverage reports when --cover flag is given
if co... | # Project tasks (for use with invoke task runner)
import subprocess
from invoke import task
@task
def test(cover=False):
if cover:
# Run tests via coverage and generate reports if --cover flag is given
code = subprocess.call(['coverage', 'run', '-m', 'nose', '--rednose'])
# Only show cove... | <commit_before># Project tasks (for use with invoke task runner)
import subprocess
from invoke import task
@task
def test(cover=False):
# Run tests using nose called with coverage
code = subprocess.call(['coverage', 'run', '-m', 'nose', '--rednose'])
# Also generate coverage reports when --cover flag is ... | # Project tasks (for use with invoke task runner)
import subprocess
from invoke import task
@task
def test(cover=False):
if cover:
# Run tests via coverage and generate reports if --cover flag is given
code = subprocess.call(['coverage', 'run', '-m', 'nose', '--rednose'])
# Only show cove... | # Project tasks (for use with invoke task runner)
import subprocess
from invoke import task
@task
def test(cover=False):
# Run tests using nose called with coverage
code = subprocess.call(['coverage', 'run', '-m', 'nose', '--rednose'])
# Also generate coverage reports when --cover flag is given
if co... | <commit_before># Project tasks (for use with invoke task runner)
import subprocess
from invoke import task
@task
def test(cover=False):
# Run tests using nose called with coverage
code = subprocess.call(['coverage', 'run', '-m', 'nose', '--rednose'])
# Also generate coverage reports when --cover flag is ... |
3075a1bea22c55a1da5453df23f44ee126eaf8ae | syncplay/__init__.py | syncplay/__init__.py | version = '1.2.7'
milestone = 'Tequila'
projectURL = 'http://syncplay.pl/'
| version = '1.2.7'
milestone = 'Biscuit'
projectURL = 'http://syncplay.pl/'
| Change milestone from Tequila to Biscuit | Change milestone from Tequila to Biscuit | Python | apache-2.0 | Syncplay/syncplay,alby128/syncplay,alby128/syncplay,Syncplay/syncplay,NeverDecaf/syncplay,NeverDecaf/syncplay | version = '1.2.7'
milestone = 'Tequila'
projectURL = 'http://syncplay.pl/'
Change milestone from Tequila to Biscuit | version = '1.2.7'
milestone = 'Biscuit'
projectURL = 'http://syncplay.pl/'
| <commit_before>version = '1.2.7'
milestone = 'Tequila'
projectURL = 'http://syncplay.pl/'
<commit_msg>Change milestone from Tequila to Biscuit<commit_after> | version = '1.2.7'
milestone = 'Biscuit'
projectURL = 'http://syncplay.pl/'
| version = '1.2.7'
milestone = 'Tequila'
projectURL = 'http://syncplay.pl/'
Change milestone from Tequila to Biscuitversion = '1.2.7'
milestone = 'Biscuit'
projectURL = 'http://syncplay.pl/'
| <commit_before>version = '1.2.7'
milestone = 'Tequila'
projectURL = 'http://syncplay.pl/'
<commit_msg>Change milestone from Tequila to Biscuit<commit_after>version = '1.2.7'
milestone = 'Biscuit'
projectURL = 'http://syncplay.pl/'
|
82099790938fefa3e844c908271471a8313356d0 | code_highlight/code_highlight.py | code_highlight/code_highlight.py | from django.utils.safestring import mark_safe
from pygments import highlight
from pygments.formatters import get_formatter_by_name
from pygments.lexers import get_lexer_by_name
from wagtail.wagtailcore import blocks
class CodeBlock(blocks.StructBlock):
"""
Code Highlighting Block
"""
LANGUAGE_CHOICES... | from django.utils.safestring import mark_safe
from pygments import highlight
from pygments.formatters import get_formatter_by_name
from pygments.lexers import get_lexer_by_name
from wagtail.wagtailcore import blocks
class CodeBlock(blocks.StructBlock):
"""
Code Highlighting Block
"""
LANGUAGE_CHOICES... | Add context=None to render as well. | Add context=None to render as well.
| Python | bsd-3-clause | FlipperPA/wagtail-components | from django.utils.safestring import mark_safe
from pygments import highlight
from pygments.formatters import get_formatter_by_name
from pygments.lexers import get_lexer_by_name
from wagtail.wagtailcore import blocks
class CodeBlock(blocks.StructBlock):
"""
Code Highlighting Block
"""
LANGUAGE_CHOICES... | from django.utils.safestring import mark_safe
from pygments import highlight
from pygments.formatters import get_formatter_by_name
from pygments.lexers import get_lexer_by_name
from wagtail.wagtailcore import blocks
class CodeBlock(blocks.StructBlock):
"""
Code Highlighting Block
"""
LANGUAGE_CHOICES... | <commit_before>from django.utils.safestring import mark_safe
from pygments import highlight
from pygments.formatters import get_formatter_by_name
from pygments.lexers import get_lexer_by_name
from wagtail.wagtailcore import blocks
class CodeBlock(blocks.StructBlock):
"""
Code Highlighting Block
"""
L... | from django.utils.safestring import mark_safe
from pygments import highlight
from pygments.formatters import get_formatter_by_name
from pygments.lexers import get_lexer_by_name
from wagtail.wagtailcore import blocks
class CodeBlock(blocks.StructBlock):
"""
Code Highlighting Block
"""
LANGUAGE_CHOICES... | from django.utils.safestring import mark_safe
from pygments import highlight
from pygments.formatters import get_formatter_by_name
from pygments.lexers import get_lexer_by_name
from wagtail.wagtailcore import blocks
class CodeBlock(blocks.StructBlock):
"""
Code Highlighting Block
"""
LANGUAGE_CHOICES... | <commit_before>from django.utils.safestring import mark_safe
from pygments import highlight
from pygments.formatters import get_formatter_by_name
from pygments.lexers import get_lexer_by_name
from wagtail.wagtailcore import blocks
class CodeBlock(blocks.StructBlock):
"""
Code Highlighting Block
"""
L... |
123f8b581fc7178d32680850220f74383a674911 | Logger.py | Logger.py | import time
class Logger():
def __init__(self, name = "defaultLogFile"):
timestamp = time.strftime('%Y_%m_%d-%H_%M_%S')
self.name = "Logs/" + timestamp + "_" + name + ".txt"
try:
self.logfile = open(self.name, 'w')
self.opened = True
except:
self.... | import time
class Logger():
def __init__(self, name = "defaultLogFile"):
timestamp = time.strftime('%Y_%m_%d-%H_%M_%S')
self.name = "Logs/" + timestamp + "_" + name + ".txt"
try:
self.logfile = open(self.name, 'w')
self.opened = True
except:
self.... | Add missing CRLF for new line in logs | Add missing CRLF for new line in logs
Signed-off-by: TeaPackCZ <[email protected]>
| Python | mit | TeaPackCZ/RobotZed,TeaPackCZ/RobotZed | import time
class Logger():
def __init__(self, name = "defaultLogFile"):
timestamp = time.strftime('%Y_%m_%d-%H_%M_%S')
self.name = "Logs/" + timestamp + "_" + name + ".txt"
try:
self.logfile = open(self.name, 'w')
self.opened = True
except:
self.... | import time
class Logger():
def __init__(self, name = "defaultLogFile"):
timestamp = time.strftime('%Y_%m_%d-%H_%M_%S')
self.name = "Logs/" + timestamp + "_" + name + ".txt"
try:
self.logfile = open(self.name, 'w')
self.opened = True
except:
self.... | <commit_before>import time
class Logger():
def __init__(self, name = "defaultLogFile"):
timestamp = time.strftime('%Y_%m_%d-%H_%M_%S')
self.name = "Logs/" + timestamp + "_" + name + ".txt"
try:
self.logfile = open(self.name, 'w')
self.opened = True
except:
... | import time
class Logger():
def __init__(self, name = "defaultLogFile"):
timestamp = time.strftime('%Y_%m_%d-%H_%M_%S')
self.name = "Logs/" + timestamp + "_" + name + ".txt"
try:
self.logfile = open(self.name, 'w')
self.opened = True
except:
self.... | import time
class Logger():
def __init__(self, name = "defaultLogFile"):
timestamp = time.strftime('%Y_%m_%d-%H_%M_%S')
self.name = "Logs/" + timestamp + "_" + name + ".txt"
try:
self.logfile = open(self.name, 'w')
self.opened = True
except:
self.... | <commit_before>import time
class Logger():
def __init__(self, name = "defaultLogFile"):
timestamp = time.strftime('%Y_%m_%d-%H_%M_%S')
self.name = "Logs/" + timestamp + "_" + name + ".txt"
try:
self.logfile = open(self.name, 'w')
self.opened = True
except:
... |
ceadd1355ef25282567030c180139886419543db | db/goalie_game.py | db/goalie_game.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from .common import Base
class GoalieGame(Base):
__tablename__ = 'goalie_games'
__autoload__ = True
STANDARD_ATTRS = [
"position", "no", "goals", "assists", "primary_assists",
"secondary_assists", "points", "plus_minus", "penalties", "pim",
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from sqlalchemy import and_
from .common import Base, session_scope
class GoalieGame(Base):
__tablename__ = 'goalie_games'
__autoload__ = True
STANDARD_ATTRS = [
"position", "no", "goals", "assists", "primary_assists",
"secondary_assists", "... | Add find and update functions to goalie game definition | Add find and update functions to goalie game definition
| Python | mit | leaffan/pynhldb | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from .common import Base
class GoalieGame(Base):
__tablename__ = 'goalie_games'
__autoload__ = True
STANDARD_ATTRS = [
"position", "no", "goals", "assists", "primary_assists",
"secondary_assists", "points", "plus_minus", "penalties", "pim",
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from sqlalchemy import and_
from .common import Base, session_scope
class GoalieGame(Base):
__tablename__ = 'goalie_games'
__autoload__ = True
STANDARD_ATTRS = [
"position", "no", "goals", "assists", "primary_assists",
"secondary_assists", "... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from .common import Base
class GoalieGame(Base):
__tablename__ = 'goalie_games'
__autoload__ = True
STANDARD_ATTRS = [
"position", "no", "goals", "assists", "primary_assists",
"secondary_assists", "points", "plus_minus", "penal... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from sqlalchemy import and_
from .common import Base, session_scope
class GoalieGame(Base):
__tablename__ = 'goalie_games'
__autoload__ = True
STANDARD_ATTRS = [
"position", "no", "goals", "assists", "primary_assists",
"secondary_assists", "... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from .common import Base
class GoalieGame(Base):
__tablename__ = 'goalie_games'
__autoload__ = True
STANDARD_ATTRS = [
"position", "no", "goals", "assists", "primary_assists",
"secondary_assists", "points", "plus_minus", "penalties", "pim",
... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from .common import Base
class GoalieGame(Base):
__tablename__ = 'goalie_games'
__autoload__ = True
STANDARD_ATTRS = [
"position", "no", "goals", "assists", "primary_assists",
"secondary_assists", "points", "plus_minus", "penal... |
f38f8765ba2b25437dddb5af13f68be3a6fdcffa | tap/tests/factory.py | tap/tests/factory.py | # Copyright (c) 2014, Matt Layman
import tempfile
from unittest.runner import TextTestResult
from tap.directive import Directive
from tap.line import Result
class Factory(object):
"""A factory to produce commonly needed objects"""
def make_ok(self, directive_text=''):
return Result(
Tru... | # Copyright (c) 2014, Matt Layman
import tempfile
try:
from unittest.runner import TextTestResult
except ImportError:
# Support Python 2.6.
from unittest import _TextTestResult as TextTestResult
from tap.directive import Directive
from tap.line import Result
class Factory(object):
"""A factory to pr... | Fix Python 2.6 and Python 3 tests. | Fix Python 2.6 and Python 3 tests.
| Python | bsd-2-clause | python-tap/tappy,blakev/tappy,Mark-E-Hamilton/tappy,mblayman/tappy | # Copyright (c) 2014, Matt Layman
import tempfile
from unittest.runner import TextTestResult
from tap.directive import Directive
from tap.line import Result
class Factory(object):
"""A factory to produce commonly needed objects"""
def make_ok(self, directive_text=''):
return Result(
Tru... | # Copyright (c) 2014, Matt Layman
import tempfile
try:
from unittest.runner import TextTestResult
except ImportError:
# Support Python 2.6.
from unittest import _TextTestResult as TextTestResult
from tap.directive import Directive
from tap.line import Result
class Factory(object):
"""A factory to pr... | <commit_before># Copyright (c) 2014, Matt Layman
import tempfile
from unittest.runner import TextTestResult
from tap.directive import Directive
from tap.line import Result
class Factory(object):
"""A factory to produce commonly needed objects"""
def make_ok(self, directive_text=''):
return Result(
... | # Copyright (c) 2014, Matt Layman
import tempfile
try:
from unittest.runner import TextTestResult
except ImportError:
# Support Python 2.6.
from unittest import _TextTestResult as TextTestResult
from tap.directive import Directive
from tap.line import Result
class Factory(object):
"""A factory to pr... | # Copyright (c) 2014, Matt Layman
import tempfile
from unittest.runner import TextTestResult
from tap.directive import Directive
from tap.line import Result
class Factory(object):
"""A factory to produce commonly needed objects"""
def make_ok(self, directive_text=''):
return Result(
Tru... | <commit_before># Copyright (c) 2014, Matt Layman
import tempfile
from unittest.runner import TextTestResult
from tap.directive import Directive
from tap.line import Result
class Factory(object):
"""A factory to produce commonly needed objects"""
def make_ok(self, directive_text=''):
return Result(
... |
aa690a36cd6933e309b2881211ae1bfa9169d968 | dpnode/dpnode/urls.py | dpnode/dpnode/urls.py | """
There are two ways of constructing a software design.
One way is to make it so simple that there are obviously no deficiencies.
And the other way is to make it so complicated that there are no obvious deficiencies.
- C. A. R. Hoare
"""
from django.conf.urls import patterns, include, url
from... | """
There are two ways of constructing a software design.
One way is to make it so simple that there are obviously no deficiencies.
And the other way is to make it so complicated that there are no obvious deficiencies.
- C. A. R. Hoare
"""
from django.conf.urls import patterns, include, url
from... | Change base API url version to 1 | Change base API url version to 1
| Python | apache-2.0 | APTrust/EarthDiver,APTrust/EarthDiver | """
There are two ways of constructing a software design.
One way is to make it so simple that there are obviously no deficiencies.
And the other way is to make it so complicated that there are no obvious deficiencies.
- C. A. R. Hoare
"""
from django.conf.urls import patterns, include, url
from... | """
There are two ways of constructing a software design.
One way is to make it so simple that there are obviously no deficiencies.
And the other way is to make it so complicated that there are no obvious deficiencies.
- C. A. R. Hoare
"""
from django.conf.urls import patterns, include, url
from... | <commit_before>"""
There are two ways of constructing a software design.
One way is to make it so simple that there are obviously no deficiencies.
And the other way is to make it so complicated that there are no obvious deficiencies.
- C. A. R. Hoare
"""
from django.conf.urls import patterns, in... | """
There are two ways of constructing a software design.
One way is to make it so simple that there are obviously no deficiencies.
And the other way is to make it so complicated that there are no obvious deficiencies.
- C. A. R. Hoare
"""
from django.conf.urls import patterns, include, url
from... | """
There are two ways of constructing a software design.
One way is to make it so simple that there are obviously no deficiencies.
And the other way is to make it so complicated that there are no obvious deficiencies.
- C. A. R. Hoare
"""
from django.conf.urls import patterns, include, url
from... | <commit_before>"""
There are two ways of constructing a software design.
One way is to make it so simple that there are obviously no deficiencies.
And the other way is to make it so complicated that there are no obvious deficiencies.
- C. A. R. Hoare
"""
from django.conf.urls import patterns, in... |
4eb043cfb0f2535a1dca37927323155b7d3f363e | dynamic_rest/links.py | dynamic_rest/links.py | """This module contains utilities to support API links."""
from django.utils import six
from dynamic_rest.conf import settings
from .routers import DynamicRouter
def merge_link_object(serializer, data, instance):
"""Add a 'links' attribute to the data that maps field names to URLs.
NOTE: This is the format t... | """This module contains utilities to support API links."""
from django.utils import six
from dynamic_rest.conf import settings
from dynamic_rest.routers import DynamicRouter
def merge_link_object(serializer, data, instance):
"""Add a 'links' attribute to the data that maps field names to URLs.
NOTE: This is... | Fix some sorting thing for isort | Fix some sorting thing for isort
| Python | mit | sanoma/dynamic-rest,AltSchool/dynamic-rest,sanoma/dynamic-rest,AltSchool/dynamic-rest | """This module contains utilities to support API links."""
from django.utils import six
from dynamic_rest.conf import settings
from .routers import DynamicRouter
def merge_link_object(serializer, data, instance):
"""Add a 'links' attribute to the data that maps field names to URLs.
NOTE: This is the format t... | """This module contains utilities to support API links."""
from django.utils import six
from dynamic_rest.conf import settings
from dynamic_rest.routers import DynamicRouter
def merge_link_object(serializer, data, instance):
"""Add a 'links' attribute to the data that maps field names to URLs.
NOTE: This is... | <commit_before>"""This module contains utilities to support API links."""
from django.utils import six
from dynamic_rest.conf import settings
from .routers import DynamicRouter
def merge_link_object(serializer, data, instance):
"""Add a 'links' attribute to the data that maps field names to URLs.
NOTE: This ... | """This module contains utilities to support API links."""
from django.utils import six
from dynamic_rest.conf import settings
from dynamic_rest.routers import DynamicRouter
def merge_link_object(serializer, data, instance):
"""Add a 'links' attribute to the data that maps field names to URLs.
NOTE: This is... | """This module contains utilities to support API links."""
from django.utils import six
from dynamic_rest.conf import settings
from .routers import DynamicRouter
def merge_link_object(serializer, data, instance):
"""Add a 'links' attribute to the data that maps field names to URLs.
NOTE: This is the format t... | <commit_before>"""This module contains utilities to support API links."""
from django.utils import six
from dynamic_rest.conf import settings
from .routers import DynamicRouter
def merge_link_object(serializer, data, instance):
"""Add a 'links' attribute to the data that maps field names to URLs.
NOTE: This ... |
9f843b34ef5c85d781b7dd322641d5459cf6190d | linked_accounts/backends.py | linked_accounts/backends.py | from django.contrib.auth.models import User
from linked_accounts.utils import get_profile
class LinkedAccountsBackend(object):
def get_user(self, user_id):
return User.objects.get(id=user_id)
def authenticate(self, service=None, token=None):
profile = get_profile(service, token)
| from django.contrib.auth.models import User
from linked_accounts.utils import get_profile
class LinkedAccountsBackend(object):
def get_user(self, user_id):
return User.objects.get(id=user_id)
def authenticate(self, service=None, token=None):
profile = get_profile(service, token)
ret... | Return profile from authenticate method | Return profile from authenticate method
| Python | mit | zen4ever/django-linked-accounts,zen4ever/django-linked-accounts | from django.contrib.auth.models import User
from linked_accounts.utils import get_profile
class LinkedAccountsBackend(object):
def get_user(self, user_id):
return User.objects.get(id=user_id)
def authenticate(self, service=None, token=None):
profile = get_profile(service, token)
Return prof... | from django.contrib.auth.models import User
from linked_accounts.utils import get_profile
class LinkedAccountsBackend(object):
def get_user(self, user_id):
return User.objects.get(id=user_id)
def authenticate(self, service=None, token=None):
profile = get_profile(service, token)
ret... | <commit_before>from django.contrib.auth.models import User
from linked_accounts.utils import get_profile
class LinkedAccountsBackend(object):
def get_user(self, user_id):
return User.objects.get(id=user_id)
def authenticate(self, service=None, token=None):
profile = get_profile(service, tok... | from django.contrib.auth.models import User
from linked_accounts.utils import get_profile
class LinkedAccountsBackend(object):
def get_user(self, user_id):
return User.objects.get(id=user_id)
def authenticate(self, service=None, token=None):
profile = get_profile(service, token)
ret... | from django.contrib.auth.models import User
from linked_accounts.utils import get_profile
class LinkedAccountsBackend(object):
def get_user(self, user_id):
return User.objects.get(id=user_id)
def authenticate(self, service=None, token=None):
profile = get_profile(service, token)
Return prof... | <commit_before>from django.contrib.auth.models import User
from linked_accounts.utils import get_profile
class LinkedAccountsBackend(object):
def get_user(self, user_id):
return User.objects.get(id=user_id)
def authenticate(self, service=None, token=None):
profile = get_profile(service, tok... |
dae3944a7e3cb0d861c8a118f36627e811cadc38 | kdl/settings/dev.py | kdl/settings/dev.py | from .base import * # noqa
DEBUG = True
INTERNAL_IPS = INTERNAL_IPS + ('', )
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'app_kdl_dev',
'USER': 'app_kdl',
'PASSWORD': '',
'HOST': ''
},
}
LOGGING_LEVEL = logging.DEBUG
LOGGIN... | from .base import * # noqa
DEBUG = True
REQUIRE_DEBUG = DEBUG
INTERNAL_IPS = INTERNAL_IPS + ('', )
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'app_kdl_dev',
'USER': 'app_kdl',
'PASSWORD': '',
'HOST': ''
},
}
LOGGING_LEVEL =... | Set require debug to be the same as debug. | Set require debug to be the same as debug.
| Python | mit | kingsdigitallab/kdl-django,kingsdigitallab/kdl-django,kingsdigitallab/kdl-django,kingsdigitallab/kdl-django | from .base import * # noqa
DEBUG = True
INTERNAL_IPS = INTERNAL_IPS + ('', )
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'app_kdl_dev',
'USER': 'app_kdl',
'PASSWORD': '',
'HOST': ''
},
}
LOGGING_LEVEL = logging.DEBUG
LOGGIN... | from .base import * # noqa
DEBUG = True
REQUIRE_DEBUG = DEBUG
INTERNAL_IPS = INTERNAL_IPS + ('', )
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'app_kdl_dev',
'USER': 'app_kdl',
'PASSWORD': '',
'HOST': ''
},
}
LOGGING_LEVEL =... | <commit_before>from .base import * # noqa
DEBUG = True
INTERNAL_IPS = INTERNAL_IPS + ('', )
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'app_kdl_dev',
'USER': 'app_kdl',
'PASSWORD': '',
'HOST': ''
},
}
LOGGING_LEVEL = loggin... | from .base import * # noqa
DEBUG = True
REQUIRE_DEBUG = DEBUG
INTERNAL_IPS = INTERNAL_IPS + ('', )
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'app_kdl_dev',
'USER': 'app_kdl',
'PASSWORD': '',
'HOST': ''
},
}
LOGGING_LEVEL =... | from .base import * # noqa
DEBUG = True
INTERNAL_IPS = INTERNAL_IPS + ('', )
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'app_kdl_dev',
'USER': 'app_kdl',
'PASSWORD': '',
'HOST': ''
},
}
LOGGING_LEVEL = logging.DEBUG
LOGGIN... | <commit_before>from .base import * # noqa
DEBUG = True
INTERNAL_IPS = INTERNAL_IPS + ('', )
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'app_kdl_dev',
'USER': 'app_kdl',
'PASSWORD': '',
'HOST': ''
},
}
LOGGING_LEVEL = loggin... |
5c8b4446b4e1fc2eee1daa52f8a422eb90700ed2 | ELiDE/setup.py | ELiDE/setup.py | # This file is part of LiSE, a framework for life simulation games.
# Copyright (c) Zachary Spector, [email protected]
import sys
if sys.version_info[0] < 3 or (
sys.version_info[0] == 3 and sys.version_info[1] < 3
):
raise RuntimeError("ELiDE requires Python 3.3 or later")
from setuptools import se... | # This file is part of LiSE, a framework for life simulation games.
# Copyright (c) Zachary Spector, [email protected]
import sys
if sys.version_info[0] < 3 or (
sys.version_info[0] == 3 and sys.version_info[1] < 3
):
raise RuntimeError("ELiDE requires Python 3.3 or later")
from setuptools import se... | Remove stiffscroll from ELiDE requirements | Remove stiffscroll from ELiDE requirements
| Python | agpl-3.0 | LogicalDash/LiSE,LogicalDash/LiSE | # This file is part of LiSE, a framework for life simulation games.
# Copyright (c) Zachary Spector, [email protected]
import sys
if sys.version_info[0] < 3 or (
sys.version_info[0] == 3 and sys.version_info[1] < 3
):
raise RuntimeError("ELiDE requires Python 3.3 or later")
from setuptools import se... | # This file is part of LiSE, a framework for life simulation games.
# Copyright (c) Zachary Spector, [email protected]
import sys
if sys.version_info[0] < 3 or (
sys.version_info[0] == 3 and sys.version_info[1] < 3
):
raise RuntimeError("ELiDE requires Python 3.3 or later")
from setuptools import se... | <commit_before># This file is part of LiSE, a framework for life simulation games.
# Copyright (c) Zachary Spector, [email protected]
import sys
if sys.version_info[0] < 3 or (
sys.version_info[0] == 3 and sys.version_info[1] < 3
):
raise RuntimeError("ELiDE requires Python 3.3 or later")
from setup... | # This file is part of LiSE, a framework for life simulation games.
# Copyright (c) Zachary Spector, [email protected]
import sys
if sys.version_info[0] < 3 or (
sys.version_info[0] == 3 and sys.version_info[1] < 3
):
raise RuntimeError("ELiDE requires Python 3.3 or later")
from setuptools import se... | # This file is part of LiSE, a framework for life simulation games.
# Copyright (c) Zachary Spector, [email protected]
import sys
if sys.version_info[0] < 3 or (
sys.version_info[0] == 3 and sys.version_info[1] < 3
):
raise RuntimeError("ELiDE requires Python 3.3 or later")
from setuptools import se... | <commit_before># This file is part of LiSE, a framework for life simulation games.
# Copyright (c) Zachary Spector, [email protected]
import sys
if sys.version_info[0] < 3 or (
sys.version_info[0] == 3 and sys.version_info[1] < 3
):
raise RuntimeError("ELiDE requires Python 3.3 or later")
from setup... |
1fb1b1fa6ed40b593c00101967b86bf1f94de8ab | atlasseq/cmds/rowjoin.py | atlasseq/cmds/rowjoin.py | #! /usr/bin/env python
from __future__ import print_function
import shutil
import logging
logger = logging.getLogger(__name__)
from atlasseq.storage.base import BerkeleyDBStorage
def rowjoin(partitioned_data, out_db, N=25000000):
db_out = BerkeleyDBStorage(config={'filename': out_db})
for x in ["colour_to_sam... | #! /usr/bin/env python
from __future__ import print_function
import shutil
import logging
logger = logging.getLogger(__name__)
from atlasseq.storage.base import BerkeleyDBStorage
def rowjoin(partitioned_data, out_db, N=25000000):
N = int(N)
db_out = BerkeleyDBStorage(config={'filename': out_db})
for x in ... | Add row join command for merging berkeley DBs | Add row join command for merging berkeley DBs
| Python | mit | Phelimb/cbg,Phelimb/cbg,Phelimb/cbg,Phelimb/cbg | #! /usr/bin/env python
from __future__ import print_function
import shutil
import logging
logger = logging.getLogger(__name__)
from atlasseq.storage.base import BerkeleyDBStorage
def rowjoin(partitioned_data, out_db, N=25000000):
db_out = BerkeleyDBStorage(config={'filename': out_db})
for x in ["colour_to_sam... | #! /usr/bin/env python
from __future__ import print_function
import shutil
import logging
logger = logging.getLogger(__name__)
from atlasseq.storage.base import BerkeleyDBStorage
def rowjoin(partitioned_data, out_db, N=25000000):
N = int(N)
db_out = BerkeleyDBStorage(config={'filename': out_db})
for x in ... | <commit_before>#! /usr/bin/env python
from __future__ import print_function
import shutil
import logging
logger = logging.getLogger(__name__)
from atlasseq.storage.base import BerkeleyDBStorage
def rowjoin(partitioned_data, out_db, N=25000000):
db_out = BerkeleyDBStorage(config={'filename': out_db})
for x in ... | #! /usr/bin/env python
from __future__ import print_function
import shutil
import logging
logger = logging.getLogger(__name__)
from atlasseq.storage.base import BerkeleyDBStorage
def rowjoin(partitioned_data, out_db, N=25000000):
N = int(N)
db_out = BerkeleyDBStorage(config={'filename': out_db})
for x in ... | #! /usr/bin/env python
from __future__ import print_function
import shutil
import logging
logger = logging.getLogger(__name__)
from atlasseq.storage.base import BerkeleyDBStorage
def rowjoin(partitioned_data, out_db, N=25000000):
db_out = BerkeleyDBStorage(config={'filename': out_db})
for x in ["colour_to_sam... | <commit_before>#! /usr/bin/env python
from __future__ import print_function
import shutil
import logging
logger = logging.getLogger(__name__)
from atlasseq.storage.base import BerkeleyDBStorage
def rowjoin(partitioned_data, out_db, N=25000000):
db_out = BerkeleyDBStorage(config={'filename': out_db})
for x in ... |
c37e0b66b6f0cc57d7df94f62dd47e00dc91c544 | django_archive/archivers/__init__.py | django_archive/archivers/__init__.py | from .tarball import TarballArchiver
from .zipfile import ZipArchiver
TARBALL = TarballArchiver.UNCOMPRESSED
TARBALL_GZ = TarballArchiver.GZ
TARBALL_BZ2 = TarballArchiver.BZ2
TARBALL_XZ = TarballArchiver.XZ
ZIP = 'zip'
FORMATS = (
(TARBALL, "Tarball (.tar)"),
(TARBALL_GZ, "gzip-compressed Tarball (.tar.gz)")... | from .tarball import TarballArchiver
from .zipfile import ZipArchiver
TARBALL = TarballArchiver.UNCOMPRESSED
TARBALL_GZ = TarballArchiver.GZ
TARBALL_BZ2 = TarballArchiver.BZ2
TARBALL_XZ = TarballArchiver.XZ
ZIP = 'zip'
FORMATS = (
TARBALL,
TARBALL_GZ,
TARBALL_BZ2,
TARBALL_XZ,
ZIP,
)
FORMATS_DESC... | Make FORMATS a tuple and add FORMATS_DESC for textual format descriptions. | Make FORMATS a tuple and add FORMATS_DESC for textual format descriptions.
| Python | mit | nathan-osman/django-archive,nathan-osman/django-archive | from .tarball import TarballArchiver
from .zipfile import ZipArchiver
TARBALL = TarballArchiver.UNCOMPRESSED
TARBALL_GZ = TarballArchiver.GZ
TARBALL_BZ2 = TarballArchiver.BZ2
TARBALL_XZ = TarballArchiver.XZ
ZIP = 'zip'
FORMATS = (
(TARBALL, "Tarball (.tar)"),
(TARBALL_GZ, "gzip-compressed Tarball (.tar.gz)")... | from .tarball import TarballArchiver
from .zipfile import ZipArchiver
TARBALL = TarballArchiver.UNCOMPRESSED
TARBALL_GZ = TarballArchiver.GZ
TARBALL_BZ2 = TarballArchiver.BZ2
TARBALL_XZ = TarballArchiver.XZ
ZIP = 'zip'
FORMATS = (
TARBALL,
TARBALL_GZ,
TARBALL_BZ2,
TARBALL_XZ,
ZIP,
)
FORMATS_DESC... | <commit_before>from .tarball import TarballArchiver
from .zipfile import ZipArchiver
TARBALL = TarballArchiver.UNCOMPRESSED
TARBALL_GZ = TarballArchiver.GZ
TARBALL_BZ2 = TarballArchiver.BZ2
TARBALL_XZ = TarballArchiver.XZ
ZIP = 'zip'
FORMATS = (
(TARBALL, "Tarball (.tar)"),
(TARBALL_GZ, "gzip-compressed Tarb... | from .tarball import TarballArchiver
from .zipfile import ZipArchiver
TARBALL = TarballArchiver.UNCOMPRESSED
TARBALL_GZ = TarballArchiver.GZ
TARBALL_BZ2 = TarballArchiver.BZ2
TARBALL_XZ = TarballArchiver.XZ
ZIP = 'zip'
FORMATS = (
TARBALL,
TARBALL_GZ,
TARBALL_BZ2,
TARBALL_XZ,
ZIP,
)
FORMATS_DESC... | from .tarball import TarballArchiver
from .zipfile import ZipArchiver
TARBALL = TarballArchiver.UNCOMPRESSED
TARBALL_GZ = TarballArchiver.GZ
TARBALL_BZ2 = TarballArchiver.BZ2
TARBALL_XZ = TarballArchiver.XZ
ZIP = 'zip'
FORMATS = (
(TARBALL, "Tarball (.tar)"),
(TARBALL_GZ, "gzip-compressed Tarball (.tar.gz)")... | <commit_before>from .tarball import TarballArchiver
from .zipfile import ZipArchiver
TARBALL = TarballArchiver.UNCOMPRESSED
TARBALL_GZ = TarballArchiver.GZ
TARBALL_BZ2 = TarballArchiver.BZ2
TARBALL_XZ = TarballArchiver.XZ
ZIP = 'zip'
FORMATS = (
(TARBALL, "Tarball (.tar)"),
(TARBALL_GZ, "gzip-compressed Tarb... |
a05e9eff86ae43f83600842c5b9a840d22db6682 | pyinfra/api/__init__.py | pyinfra/api/__init__.py | from .command import ( # noqa: F401 # pragma: no cover
FileDownloadCommand,
FileUploadCommand,
FunctionCommand,
MaskString,
QuoteString,
StringCommand,
)
from .config import Config # noqa: F401 # pragma: no cover
from .deploy import deploy # noqa: F401 # pragma: no cover
from .exceptions impo... | from .command import ( # noqa: F401 # pragma: no cover
FileDownloadCommand,
FileUploadCommand,
FunctionCommand,
MaskString,
QuoteString,
StringCommand,
)
from .config import Config # noqa: F401 # pragma: no cover
from .deploy import deploy # noqa: F401 # pragma: no cover
from .exceptions impo... | Add `Host` to `pyinfra.api` imports. | Add `Host` to `pyinfra.api` imports.
| Python | mit | Fizzadar/pyinfra,Fizzadar/pyinfra | from .command import ( # noqa: F401 # pragma: no cover
FileDownloadCommand,
FileUploadCommand,
FunctionCommand,
MaskString,
QuoteString,
StringCommand,
)
from .config import Config # noqa: F401 # pragma: no cover
from .deploy import deploy # noqa: F401 # pragma: no cover
from .exceptions impo... | from .command import ( # noqa: F401 # pragma: no cover
FileDownloadCommand,
FileUploadCommand,
FunctionCommand,
MaskString,
QuoteString,
StringCommand,
)
from .config import Config # noqa: F401 # pragma: no cover
from .deploy import deploy # noqa: F401 # pragma: no cover
from .exceptions impo... | <commit_before>from .command import ( # noqa: F401 # pragma: no cover
FileDownloadCommand,
FileUploadCommand,
FunctionCommand,
MaskString,
QuoteString,
StringCommand,
)
from .config import Config # noqa: F401 # pragma: no cover
from .deploy import deploy # noqa: F401 # pragma: no cover
from .... | from .command import ( # noqa: F401 # pragma: no cover
FileDownloadCommand,
FileUploadCommand,
FunctionCommand,
MaskString,
QuoteString,
StringCommand,
)
from .config import Config # noqa: F401 # pragma: no cover
from .deploy import deploy # noqa: F401 # pragma: no cover
from .exceptions impo... | from .command import ( # noqa: F401 # pragma: no cover
FileDownloadCommand,
FileUploadCommand,
FunctionCommand,
MaskString,
QuoteString,
StringCommand,
)
from .config import Config # noqa: F401 # pragma: no cover
from .deploy import deploy # noqa: F401 # pragma: no cover
from .exceptions impo... | <commit_before>from .command import ( # noqa: F401 # pragma: no cover
FileDownloadCommand,
FileUploadCommand,
FunctionCommand,
MaskString,
QuoteString,
StringCommand,
)
from .config import Config # noqa: F401 # pragma: no cover
from .deploy import deploy # noqa: F401 # pragma: no cover
from .... |
ce82161dfcc1aa95febe601e331b8ba7044565ff | server/rest/twofishes.py | server/rest/twofishes.py | import requests
from girder.api import access
from girder.api.describe import Description
from girder.api.rest import Resource
class TwoFishes(Resource):
def __init__(self):
self.resourceName = 'minerva_geocoder'
self.route('GET', (), self.geocode)
@access.public
def geocode(self, params)... | import requests
from girder.api import access
from girder.api.describe import Description
from girder.api.rest import Resource
class TwoFishes(Resource):
def __init__(self):
self.resourceName = 'minerva_geocoder'
self.route('GET', (), self.geocode)
self.route('GET', ('autocomplete',), sel... | Add an endpoint which returns autocompleted results | Add an endpoint which returns autocompleted results
| Python | apache-2.0 | Kitware/minerva,Kitware/minerva,Kitware/minerva | import requests
from girder.api import access
from girder.api.describe import Description
from girder.api.rest import Resource
class TwoFishes(Resource):
def __init__(self):
self.resourceName = 'minerva_geocoder'
self.route('GET', (), self.geocode)
@access.public
def geocode(self, params)... | import requests
from girder.api import access
from girder.api.describe import Description
from girder.api.rest import Resource
class TwoFishes(Resource):
def __init__(self):
self.resourceName = 'minerva_geocoder'
self.route('GET', (), self.geocode)
self.route('GET', ('autocomplete',), sel... | <commit_before>import requests
from girder.api import access
from girder.api.describe import Description
from girder.api.rest import Resource
class TwoFishes(Resource):
def __init__(self):
self.resourceName = 'minerva_geocoder'
self.route('GET', (), self.geocode)
@access.public
def geocod... | import requests
from girder.api import access
from girder.api.describe import Description
from girder.api.rest import Resource
class TwoFishes(Resource):
def __init__(self):
self.resourceName = 'minerva_geocoder'
self.route('GET', (), self.geocode)
self.route('GET', ('autocomplete',), sel... | import requests
from girder.api import access
from girder.api.describe import Description
from girder.api.rest import Resource
class TwoFishes(Resource):
def __init__(self):
self.resourceName = 'minerva_geocoder'
self.route('GET', (), self.geocode)
@access.public
def geocode(self, params)... | <commit_before>import requests
from girder.api import access
from girder.api.describe import Description
from girder.api.rest import Resource
class TwoFishes(Resource):
def __init__(self):
self.resourceName = 'minerva_geocoder'
self.route('GET', (), self.geocode)
@access.public
def geocod... |
96d8431cd50a50a4ba25d63fbe1718a7c0ccba18 | wsgi/dapi/templatetags/deplink.py | wsgi/dapi/templatetags/deplink.py | from django import template
from django.template.defaultfilters import stringfilter
from django.utils.safestring import mark_safe
from dapi import models
register = template.Library()
@register.filter(needs_autoescape=True)
@stringfilter
def deplink(value, autoescape=None):
'''Add links for required daps'''
... | from django import template
from django.template.defaultfilters import stringfilter
from django.utils.safestring import mark_safe
from dapi import models
register = template.Library()
@register.filter(needs_autoescape=True)
@stringfilter
def deplink(value, autoescape=None):
'''Add links for required daps'''
... | Fix "UnboundLocalError: local variable 'dep' referenced before assignment" | Fix "UnboundLocalError: local variable 'dep' referenced before assignment"
| Python | agpl-3.0 | devassistant/dapi,devassistant/dapi,devassistant/dapi | from django import template
from django.template.defaultfilters import stringfilter
from django.utils.safestring import mark_safe
from dapi import models
register = template.Library()
@register.filter(needs_autoescape=True)
@stringfilter
def deplink(value, autoescape=None):
'''Add links for required daps'''
... | from django import template
from django.template.defaultfilters import stringfilter
from django.utils.safestring import mark_safe
from dapi import models
register = template.Library()
@register.filter(needs_autoescape=True)
@stringfilter
def deplink(value, autoescape=None):
'''Add links for required daps'''
... | <commit_before>from django import template
from django.template.defaultfilters import stringfilter
from django.utils.safestring import mark_safe
from dapi import models
register = template.Library()
@register.filter(needs_autoescape=True)
@stringfilter
def deplink(value, autoescape=None):
'''Add links for requir... | from django import template
from django.template.defaultfilters import stringfilter
from django.utils.safestring import mark_safe
from dapi import models
register = template.Library()
@register.filter(needs_autoescape=True)
@stringfilter
def deplink(value, autoescape=None):
'''Add links for required daps'''
... | from django import template
from django.template.defaultfilters import stringfilter
from django.utils.safestring import mark_safe
from dapi import models
register = template.Library()
@register.filter(needs_autoescape=True)
@stringfilter
def deplink(value, autoescape=None):
'''Add links for required daps'''
... | <commit_before>from django import template
from django.template.defaultfilters import stringfilter
from django.utils.safestring import mark_safe
from dapi import models
register = template.Library()
@register.filter(needs_autoescape=True)
@stringfilter
def deplink(value, autoescape=None):
'''Add links for requir... |
78d36a68e0d460f3ead713a82c7d23faf7e73b9b | Instanssi/tickets/views.py | Instanssi/tickets/views.py | # -*- coding: utf-8 -*-
from datetime import datetime
from django.conf import settings
from django.http import HttpResponse, Http404
from django.template import RequestContext
from django.shortcuts import render_to_response, get_object_or_404
from Instanssi.tickets.models import Ticket
from Instanssi.store.models impo... | # -*- coding: utf-8 -*-
from datetime import datetime
from django.conf import settings
from django.http import HttpResponse, Http404
from django.template import RequestContext
from django.shortcuts import render_to_response, get_object_or_404
from Instanssi.tickets.models import Ticket
from Instanssi.store.models impo... | Make sure ticket is paid before it can be viewed | tickets: Make sure ticket is paid before it can be viewed
| Python | mit | Instanssi/Instanssi.org,Instanssi/Instanssi.org,Instanssi/Instanssi.org,Instanssi/Instanssi.org | # -*- coding: utf-8 -*-
from datetime import datetime
from django.conf import settings
from django.http import HttpResponse, Http404
from django.template import RequestContext
from django.shortcuts import render_to_response, get_object_or_404
from Instanssi.tickets.models import Ticket
from Instanssi.store.models impo... | # -*- coding: utf-8 -*-
from datetime import datetime
from django.conf import settings
from django.http import HttpResponse, Http404
from django.template import RequestContext
from django.shortcuts import render_to_response, get_object_or_404
from Instanssi.tickets.models import Ticket
from Instanssi.store.models impo... | <commit_before># -*- coding: utf-8 -*-
from datetime import datetime
from django.conf import settings
from django.http import HttpResponse, Http404
from django.template import RequestContext
from django.shortcuts import render_to_response, get_object_or_404
from Instanssi.tickets.models import Ticket
from Instanssi.st... | # -*- coding: utf-8 -*-
from datetime import datetime
from django.conf import settings
from django.http import HttpResponse, Http404
from django.template import RequestContext
from django.shortcuts import render_to_response, get_object_or_404
from Instanssi.tickets.models import Ticket
from Instanssi.store.models impo... | # -*- coding: utf-8 -*-
from datetime import datetime
from django.conf import settings
from django.http import HttpResponse, Http404
from django.template import RequestContext
from django.shortcuts import render_to_response, get_object_or_404
from Instanssi.tickets.models import Ticket
from Instanssi.store.models impo... | <commit_before># -*- coding: utf-8 -*-
from datetime import datetime
from django.conf import settings
from django.http import HttpResponse, Http404
from django.template import RequestContext
from django.shortcuts import render_to_response, get_object_or_404
from Instanssi.tickets.models import Ticket
from Instanssi.st... |
f3cdd03f1e02f7fd0614d4421b831794c01de66d | tests/web_api/case_with_reform/reforms.py | tests/web_api/case_with_reform/reforms.py | from openfisca_core.model_api import Variable, Reform, MONTH
from openfisca_country_template.entities import Person
class goes_to_school(Variable):
value_type = bool
default_value = True
entity = Person
label = "The person goes to school (only relevant for children)"
definition_period = MONTH
cl... | from openfisca_core.model_api import Variable, Reform, MONTH
from openfisca_country_template.entities import Person
def test_dynamic_variable():
class NewDynamicClass(Variable):
value_type = bool
default_value = True
entity = Person
label = "The person goes to school (only relevant... | Update test reform to make it fail without a fix | Update test reform to make it fail without a fix
| Python | agpl-3.0 | openfisca/openfisca-core,openfisca/openfisca-core | from openfisca_core.model_api import Variable, Reform, MONTH
from openfisca_country_template.entities import Person
class goes_to_school(Variable):
value_type = bool
default_value = True
entity = Person
label = "The person goes to school (only relevant for children)"
definition_period = MONTH
cl... | from openfisca_core.model_api import Variable, Reform, MONTH
from openfisca_country_template.entities import Person
def test_dynamic_variable():
class NewDynamicClass(Variable):
value_type = bool
default_value = True
entity = Person
label = "The person goes to school (only relevant... | <commit_before>from openfisca_core.model_api import Variable, Reform, MONTH
from openfisca_country_template.entities import Person
class goes_to_school(Variable):
value_type = bool
default_value = True
entity = Person
label = "The person goes to school (only relevant for children)"
definition_peri... | from openfisca_core.model_api import Variable, Reform, MONTH
from openfisca_country_template.entities import Person
def test_dynamic_variable():
class NewDynamicClass(Variable):
value_type = bool
default_value = True
entity = Person
label = "The person goes to school (only relevant... | from openfisca_core.model_api import Variable, Reform, MONTH
from openfisca_country_template.entities import Person
class goes_to_school(Variable):
value_type = bool
default_value = True
entity = Person
label = "The person goes to school (only relevant for children)"
definition_period = MONTH
cl... | <commit_before>from openfisca_core.model_api import Variable, Reform, MONTH
from openfisca_country_template.entities import Person
class goes_to_school(Variable):
value_type = bool
default_value = True
entity = Person
label = "The person goes to school (only relevant for children)"
definition_peri... |
f9bf31e7cfdcbe8d9195b0f2ca9e159788193c50 | unjabberlib/cmdui.py | unjabberlib/cmdui.py | import cmd
from itertools import zip_longest
INDENT = 5 * ' '
class UnjabberCmd(cmd.Cmd):
def __init__(self, queries, **cmdargs):
super().__init__(**cmdargs)
self.queries = queries
def do_who(self, arg):
"""Show list of people. Add part of a name to narrow down."""
for name i... | import cmd
from functools import partial
from unjabberlib import formatters
trim_print = partial(print, sep='', end='')
class StdoutFormatter(formatters.Formatter):
def append(self, text, format=None):
if format is None or format == formatters.HOUR:
trim_print(text)
elif format == fo... | Use new formatter in cmd | Use new formatter in cmd
| Python | mit | adsr303/unjabber | import cmd
from itertools import zip_longest
INDENT = 5 * ' '
class UnjabberCmd(cmd.Cmd):
def __init__(self, queries, **cmdargs):
super().__init__(**cmdargs)
self.queries = queries
def do_who(self, arg):
"""Show list of people. Add part of a name to narrow down."""
for name i... | import cmd
from functools import partial
from unjabberlib import formatters
trim_print = partial(print, sep='', end='')
class StdoutFormatter(formatters.Formatter):
def append(self, text, format=None):
if format is None or format == formatters.HOUR:
trim_print(text)
elif format == fo... | <commit_before>import cmd
from itertools import zip_longest
INDENT = 5 * ' '
class UnjabberCmd(cmd.Cmd):
def __init__(self, queries, **cmdargs):
super().__init__(**cmdargs)
self.queries = queries
def do_who(self, arg):
"""Show list of people. Add part of a name to narrow down."""
... | import cmd
from functools import partial
from unjabberlib import formatters
trim_print = partial(print, sep='', end='')
class StdoutFormatter(formatters.Formatter):
def append(self, text, format=None):
if format is None or format == formatters.HOUR:
trim_print(text)
elif format == fo... | import cmd
from itertools import zip_longest
INDENT = 5 * ' '
class UnjabberCmd(cmd.Cmd):
def __init__(self, queries, **cmdargs):
super().__init__(**cmdargs)
self.queries = queries
def do_who(self, arg):
"""Show list of people. Add part of a name to narrow down."""
for name i... | <commit_before>import cmd
from itertools import zip_longest
INDENT = 5 * ' '
class UnjabberCmd(cmd.Cmd):
def __init__(self, queries, **cmdargs):
super().__init__(**cmdargs)
self.queries = queries
def do_who(self, arg):
"""Show list of people. Add part of a name to narrow down."""
... |
89d9363d803cf3329c786ecdb5e388e94213e026 | setup.py | setup.py | # -*- coding: utf-8 -*-
from setuptools import setup
def read(filename):
with open(filename) as f:
return f.read()
setup(
name = 'ebucks',
version = '0.2.0',
author = 'Konrad Blum',
author_email = '[email protected]',
packages = ['ebucks',],
url = 'https://github.com/kblum/ebucks'... | # -*- coding: utf-8 -*-
from setuptools import setup
def read(filename):
with open(filename) as f:
return f.read()
setup(
name = 'ebucks',
version = '0.2.1',
author = 'Konrad Blum',
author_email = '[email protected]',
packages = ['ebucks',],
url = 'https://github.com/kblum/ebucks'... | Update requests library for CVE-2018-18074. | Update requests library for CVE-2018-18074.
CVE details: https://nvd.nist.gov/vuln/detail/CVE-2018-18074
| Python | mit | kblum/ebucks | # -*- coding: utf-8 -*-
from setuptools import setup
def read(filename):
with open(filename) as f:
return f.read()
setup(
name = 'ebucks',
version = '0.2.0',
author = 'Konrad Blum',
author_email = '[email protected]',
packages = ['ebucks',],
url = 'https://github.com/kblum/ebucks'... | # -*- coding: utf-8 -*-
from setuptools import setup
def read(filename):
with open(filename) as f:
return f.read()
setup(
name = 'ebucks',
version = '0.2.1',
author = 'Konrad Blum',
author_email = '[email protected]',
packages = ['ebucks',],
url = 'https://github.com/kblum/ebucks'... | <commit_before># -*- coding: utf-8 -*-
from setuptools import setup
def read(filename):
with open(filename) as f:
return f.read()
setup(
name = 'ebucks',
version = '0.2.0',
author = 'Konrad Blum',
author_email = '[email protected]',
packages = ['ebucks',],
url = 'https://github.co... | # -*- coding: utf-8 -*-
from setuptools import setup
def read(filename):
with open(filename) as f:
return f.read()
setup(
name = 'ebucks',
version = '0.2.1',
author = 'Konrad Blum',
author_email = '[email protected]',
packages = ['ebucks',],
url = 'https://github.com/kblum/ebucks'... | # -*- coding: utf-8 -*-
from setuptools import setup
def read(filename):
with open(filename) as f:
return f.read()
setup(
name = 'ebucks',
version = '0.2.0',
author = 'Konrad Blum',
author_email = '[email protected]',
packages = ['ebucks',],
url = 'https://github.com/kblum/ebucks'... | <commit_before># -*- coding: utf-8 -*-
from setuptools import setup
def read(filename):
with open(filename) as f:
return f.read()
setup(
name = 'ebucks',
version = '0.2.0',
author = 'Konrad Blum',
author_email = '[email protected]',
packages = ['ebucks',],
url = 'https://github.co... |
1abd0ba89b2e0deeb3fce7b5e5459be458a21ed4 | setup.py | setup.py | from setuptools import setup, find_packages
long_desc = """
XYPath is aiming to be XPath for spreadsheets: it offers a framework for
navigating around and extracting values from tabular data.
"""
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers for classifiers
setup(
name='xypath',
version='1.1.1... | from setuptools import setup, find_packages
long_desc = """
XYPath is aiming to be XPath for spreadsheets: it offers a framework for
navigating around and extracting values from tabular data.
"""
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers for classifiers
setup(
name='xypath',
version='1.1.1... | Update URL to https protocol | Update URL to https protocol
| Python | bsd-2-clause | scraperwiki/xypath | from setuptools import setup, find_packages
long_desc = """
XYPath is aiming to be XPath for spreadsheets: it offers a framework for
navigating around and extracting values from tabular data.
"""
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers for classifiers
setup(
name='xypath',
version='1.1.1... | from setuptools import setup, find_packages
long_desc = """
XYPath is aiming to be XPath for spreadsheets: it offers a framework for
navigating around and extracting values from tabular data.
"""
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers for classifiers
setup(
name='xypath',
version='1.1.1... | <commit_before>from setuptools import setup, find_packages
long_desc = """
XYPath is aiming to be XPath for spreadsheets: it offers a framework for
navigating around and extracting values from tabular data.
"""
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers for classifiers
setup(
name='xypath',
... | from setuptools import setup, find_packages
long_desc = """
XYPath is aiming to be XPath for spreadsheets: it offers a framework for
navigating around and extracting values from tabular data.
"""
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers for classifiers
setup(
name='xypath',
version='1.1.1... | from setuptools import setup, find_packages
long_desc = """
XYPath is aiming to be XPath for spreadsheets: it offers a framework for
navigating around and extracting values from tabular data.
"""
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers for classifiers
setup(
name='xypath',
version='1.1.1... | <commit_before>from setuptools import setup, find_packages
long_desc = """
XYPath is aiming to be XPath for spreadsheets: it offers a framework for
navigating around and extracting values from tabular data.
"""
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers for classifiers
setup(
name='xypath',
... |
516e67cc6d670050e9714460b082bc908ca94d84 | setup.py | setup.py | """
Slacky
------
A Python package for Slack's JSON REST API.
Slacky is Simple
````````````````
Save in a hello.py:
.. code:: python
from slacky import Slacky
slacky = Slacky(token='<Your slack api token>')
slacky.chat.post_message('#general', 'Hello World!!')
# '#' is not necessary with channel ... | """
Slacky
------
A Python package for Slack's JSON REST API.
Slacky is Simple
````````````````
Save in a hello.py:
.. code:: python
from slacky import Slacky
slacky = Slacky(token='<Your slack api token>')
slacky.chat.post_message('#general', 'Hello World!!')
# '#' is not necessary with channel ... | Set version number to 0.1.3. | Set version number to 0.1.3.
| Python | mit | nabetama/slacky | """
Slacky
------
A Python package for Slack's JSON REST API.
Slacky is Simple
````````````````
Save in a hello.py:
.. code:: python
from slacky import Slacky
slacky = Slacky(token='<Your slack api token>')
slacky.chat.post_message('#general', 'Hello World!!')
# '#' is not necessary with channel ... | """
Slacky
------
A Python package for Slack's JSON REST API.
Slacky is Simple
````````````````
Save in a hello.py:
.. code:: python
from slacky import Slacky
slacky = Slacky(token='<Your slack api token>')
slacky.chat.post_message('#general', 'Hello World!!')
# '#' is not necessary with channel ... | <commit_before>"""
Slacky
------
A Python package for Slack's JSON REST API.
Slacky is Simple
````````````````
Save in a hello.py:
.. code:: python
from slacky import Slacky
slacky = Slacky(token='<Your slack api token>')
slacky.chat.post_message('#general', 'Hello World!!')
# '#' is not necessar... | """
Slacky
------
A Python package for Slack's JSON REST API.
Slacky is Simple
````````````````
Save in a hello.py:
.. code:: python
from slacky import Slacky
slacky = Slacky(token='<Your slack api token>')
slacky.chat.post_message('#general', 'Hello World!!')
# '#' is not necessary with channel ... | """
Slacky
------
A Python package for Slack's JSON REST API.
Slacky is Simple
````````````````
Save in a hello.py:
.. code:: python
from slacky import Slacky
slacky = Slacky(token='<Your slack api token>')
slacky.chat.post_message('#general', 'Hello World!!')
# '#' is not necessary with channel ... | <commit_before>"""
Slacky
------
A Python package for Slack's JSON REST API.
Slacky is Simple
````````````````
Save in a hello.py:
.. code:: python
from slacky import Slacky
slacky = Slacky(token='<Your slack api token>')
slacky.chat.post_message('#general', 'Hello World!!')
# '#' is not necessar... |
c3c6fab3bf7f9d2d75b6a68e3f1122724cc4bbc1 | setup.py | setup.py | from setuptools import setup, find_packages
requirements = ['pycryptodome>=3.7.0']
setup(
name="ziggeo",
version="2.15",
description="Ziggeo SDK for python",
long_description="Ziggeo API (https://ziggeo.com) allows you to integrate video recording and playback with only two lines of code in your sit... | from setuptools import setup, find_packages
requirements = ['pycryptodome>=3.7.0']
setup(
name="ziggeo",
version="2.15",
description="Ziggeo SDK for python",
long_description="Ziggeo API (https://ziggeo.com) allows you to integrate video recording and playback with only two lines of code in your sit... | Add Python 3 as Programming Language | Add Python 3 as Programming Language
Show support for Python 3 by adding classifier on setup.py
| Python | apache-2.0 | Ziggeo/ZiggeoPythonSdk,Ziggeo/ZiggeoPythonSdk | from setuptools import setup, find_packages
requirements = ['pycryptodome>=3.7.0']
setup(
name="ziggeo",
version="2.15",
description="Ziggeo SDK for python",
long_description="Ziggeo API (https://ziggeo.com) allows you to integrate video recording and playback with only two lines of code in your sit... | from setuptools import setup, find_packages
requirements = ['pycryptodome>=3.7.0']
setup(
name="ziggeo",
version="2.15",
description="Ziggeo SDK for python",
long_description="Ziggeo API (https://ziggeo.com) allows you to integrate video recording and playback with only two lines of code in your sit... | <commit_before>from setuptools import setup, find_packages
requirements = ['pycryptodome>=3.7.0']
setup(
name="ziggeo",
version="2.15",
description="Ziggeo SDK for python",
long_description="Ziggeo API (https://ziggeo.com) allows you to integrate video recording and playback with only two lines of c... | from setuptools import setup, find_packages
requirements = ['pycryptodome>=3.7.0']
setup(
name="ziggeo",
version="2.15",
description="Ziggeo SDK for python",
long_description="Ziggeo API (https://ziggeo.com) allows you to integrate video recording and playback with only two lines of code in your sit... | from setuptools import setup, find_packages
requirements = ['pycryptodome>=3.7.0']
setup(
name="ziggeo",
version="2.15",
description="Ziggeo SDK for python",
long_description="Ziggeo API (https://ziggeo.com) allows you to integrate video recording and playback with only two lines of code in your sit... | <commit_before>from setuptools import setup, find_packages
requirements = ['pycryptodome>=3.7.0']
setup(
name="ziggeo",
version="2.15",
description="Ziggeo SDK for python",
long_description="Ziggeo API (https://ziggeo.com) allows you to integrate video recording and playback with only two lines of c... |
00567407069f706b9cf55dfccb18fd80b9ed8f72 | setup.py | setup.py | try:
from setuptools import setup
except ImportError:
from distutils import setup
readme = open('README.rst', 'r')
README_TEXT = readme.read()
readme.close()
setup(
name='aniso8601',
version='0.50',
description='A library for parsing ISO 8601 strings.',
long_description=README_TEXT,
author... | try:
from setuptools import setup
except ImportError:
from distutils import setup
readme = open('README.rst', 'r')
README_TEXT = readme.read()
readme.close()
setup(
name='aniso8601',
version='0.60dev',
description='A library for parsing ISO 8601 strings.',
long_description=README_TEXT,
aut... | Switch to development of next version. | Switch to development of next version.
| Python | bsd-3-clause | 3stack-software/python-aniso8601-relativedelta | try:
from setuptools import setup
except ImportError:
from distutils import setup
readme = open('README.rst', 'r')
README_TEXT = readme.read()
readme.close()
setup(
name='aniso8601',
version='0.50',
description='A library for parsing ISO 8601 strings.',
long_description=README_TEXT,
author... | try:
from setuptools import setup
except ImportError:
from distutils import setup
readme = open('README.rst', 'r')
README_TEXT = readme.read()
readme.close()
setup(
name='aniso8601',
version='0.60dev',
description='A library for parsing ISO 8601 strings.',
long_description=README_TEXT,
aut... | <commit_before>try:
from setuptools import setup
except ImportError:
from distutils import setup
readme = open('README.rst', 'r')
README_TEXT = readme.read()
readme.close()
setup(
name='aniso8601',
version='0.50',
description='A library for parsing ISO 8601 strings.',
long_description=README_T... | try:
from setuptools import setup
except ImportError:
from distutils import setup
readme = open('README.rst', 'r')
README_TEXT = readme.read()
readme.close()
setup(
name='aniso8601',
version='0.60dev',
description='A library for parsing ISO 8601 strings.',
long_description=README_TEXT,
aut... | try:
from setuptools import setup
except ImportError:
from distutils import setup
readme = open('README.rst', 'r')
README_TEXT = readme.read()
readme.close()
setup(
name='aniso8601',
version='0.50',
description='A library for parsing ISO 8601 strings.',
long_description=README_TEXT,
author... | <commit_before>try:
from setuptools import setup
except ImportError:
from distutils import setup
readme = open('README.rst', 'r')
README_TEXT = readme.read()
readme.close()
setup(
name='aniso8601',
version='0.50',
description='A library for parsing ISO 8601 strings.',
long_description=README_T... |
875848da1704726ab10a1d643b5fbdab91c81a81 | setup.py | setup.py | #!/usr/bin/env python
"""Distutils setup file, used to install or test 'setuptools'"""
from setuptools import setup, find_packages, Require
from distutils.version import LooseVersion
setup(
name="setuptools",
version="0.3a1",
description="Distutils enhancements",
author="Phillip J. Eby",
author_... | #!/usr/bin/env python
"""Distutils setup file, used to install or test 'setuptools'"""
from setuptools import setup, find_packages, Require
from distutils.version import LooseVersion
setup(
name="setuptools",
version="0.3a2",
description="Distutils enhancements",
author="Phillip J. Eby",
author_... | Bump version to 0.3a2 for release | Bump version to 0.3a2 for release
--HG--
branch : setuptools
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041026
| Python | mit | pypa/setuptools,pypa/setuptools,pypa/setuptools | #!/usr/bin/env python
"""Distutils setup file, used to install or test 'setuptools'"""
from setuptools import setup, find_packages, Require
from distutils.version import LooseVersion
setup(
name="setuptools",
version="0.3a1",
description="Distutils enhancements",
author="Phillip J. Eby",
author_... | #!/usr/bin/env python
"""Distutils setup file, used to install or test 'setuptools'"""
from setuptools import setup, find_packages, Require
from distutils.version import LooseVersion
setup(
name="setuptools",
version="0.3a2",
description="Distutils enhancements",
author="Phillip J. Eby",
author_... | <commit_before>#!/usr/bin/env python
"""Distutils setup file, used to install or test 'setuptools'"""
from setuptools import setup, find_packages, Require
from distutils.version import LooseVersion
setup(
name="setuptools",
version="0.3a1",
description="Distutils enhancements",
author="Phillip J. Eb... | #!/usr/bin/env python
"""Distutils setup file, used to install or test 'setuptools'"""
from setuptools import setup, find_packages, Require
from distutils.version import LooseVersion
setup(
name="setuptools",
version="0.3a2",
description="Distutils enhancements",
author="Phillip J. Eby",
author_... | #!/usr/bin/env python
"""Distutils setup file, used to install or test 'setuptools'"""
from setuptools import setup, find_packages, Require
from distutils.version import LooseVersion
setup(
name="setuptools",
version="0.3a1",
description="Distutils enhancements",
author="Phillip J. Eby",
author_... | <commit_before>#!/usr/bin/env python
"""Distutils setup file, used to install or test 'setuptools'"""
from setuptools import setup, find_packages, Require
from distutils.version import LooseVersion
setup(
name="setuptools",
version="0.3a1",
description="Distutils enhancements",
author="Phillip J. Eb... |
27758120f39c95d1040e7b6708808cc996363a3f | setup.py | setup.py | from distutils.core import setup
setup(
name='django-robots',
version=__import__('robots').__version__,
description='Robots exclusion application for Django, complementing Sitemaps.',
long_description=open('docs/overview.txt').read(),
author='Jannis Leidel',
author_email='[email protected]',
... | from distutils.core import setup
setup(
name='django-robots',
version=__import__('robots').__version__,
description='Robots exclusion application for Django, complementing Sitemaps.',
long_description=open('docs/overview.txt').read(),
author='Jannis Leidel',
author_email='[email protected]',
... | Remove download URL since Github doesn't get his act together. Damnit | Remove download URL since Github doesn't get his act together. Damnit
committer: Jannis Leidel <[email protected]>
| Python | bsd-3-clause | Jythoner/django-robots,Jythoner/django-robots | from distutils.core import setup
setup(
name='django-robots',
version=__import__('robots').__version__,
description='Robots exclusion application for Django, complementing Sitemaps.',
long_description=open('docs/overview.txt').read(),
author='Jannis Leidel',
author_email='[email protected]',
... | from distutils.core import setup
setup(
name='django-robots',
version=__import__('robots').__version__,
description='Robots exclusion application for Django, complementing Sitemaps.',
long_description=open('docs/overview.txt').read(),
author='Jannis Leidel',
author_email='[email protected]',
... | <commit_before>from distutils.core import setup
setup(
name='django-robots',
version=__import__('robots').__version__,
description='Robots exclusion application for Django, complementing Sitemaps.',
long_description=open('docs/overview.txt').read(),
author='Jannis Leidel',
author_email='jannis@... | from distutils.core import setup
setup(
name='django-robots',
version=__import__('robots').__version__,
description='Robots exclusion application for Django, complementing Sitemaps.',
long_description=open('docs/overview.txt').read(),
author='Jannis Leidel',
author_email='[email protected]',
... | from distutils.core import setup
setup(
name='django-robots',
version=__import__('robots').__version__,
description='Robots exclusion application for Django, complementing Sitemaps.',
long_description=open('docs/overview.txt').read(),
author='Jannis Leidel',
author_email='[email protected]',
... | <commit_before>from distutils.core import setup
setup(
name='django-robots',
version=__import__('robots').__version__,
description='Robots exclusion application for Django, complementing Sitemaps.',
long_description=open('docs/overview.txt').read(),
author='Jannis Leidel',
author_email='jannis@... |
ccffe2f91298fe99b0c4903e38b6cb99b45474a5 | setup.py | setup.py | import os
from os.path import relpath, join
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def find_package_data(data_root, package_root):
files = []
for root, dirnames, filenames in os.walk(data_root):
for fn in filenames:
... | import os
from os.path import relpath, join
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def find_package_data(data_root, package_root):
files = []
for root, dirnames, filenames in os.walk(data_root):
for fn in filenames:
... | Increment version number for release | Increment version number for release
| Python | mit | open-forcefield-group/smarty,open-forcefield-group/smarty,open-forcefield-group/smarty | import os
from os.path import relpath, join
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def find_package_data(data_root, package_root):
files = []
for root, dirnames, filenames in os.walk(data_root):
for fn in filenames:
... | import os
from os.path import relpath, join
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def find_package_data(data_root, package_root):
files = []
for root, dirnames, filenames in os.walk(data_root):
for fn in filenames:
... | <commit_before>import os
from os.path import relpath, join
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def find_package_data(data_root, package_root):
files = []
for root, dirnames, filenames in os.walk(data_root):
for fn in file... | import os
from os.path import relpath, join
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def find_package_data(data_root, package_root):
files = []
for root, dirnames, filenames in os.walk(data_root):
for fn in filenames:
... | import os
from os.path import relpath, join
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def find_package_data(data_root, package_root):
files = []
for root, dirnames, filenames in os.walk(data_root):
for fn in filenames:
... | <commit_before>import os
from os.path import relpath, join
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def find_package_data(data_root, package_root):
files = []
for root, dirnames, filenames in os.walk(data_root):
for fn in file... |
08a9b37978481d68727c0886208ecd2e376e5248 | setup.py | setup.py | from setuptools import setup
try:
readme = open("README.rst")
long_description = str(readme.read())
finally:
readme.close()
setup(name='itolapi',
version='1.1.2',
description='API for interacting with itol.embl.de',
long_description=long_description,
url='http://github.com/albertyw... | from setuptools import setup
try:
readme = open("README.rst")
long_description = str(readme.read())
finally:
readme.close()
setup(name='itolapi',
version='1.1.2',
description='API for interacting with itol.embl.de',
long_description=long_description,
url='http://github.com/albertyw... | Add Python 2 trove classifier | Add Python 2 trove classifier
| Python | mit | albertyw/itolapi | from setuptools import setup
try:
readme = open("README.rst")
long_description = str(readme.read())
finally:
readme.close()
setup(name='itolapi',
version='1.1.2',
description='API for interacting with itol.embl.de',
long_description=long_description,
url='http://github.com/albertyw... | from setuptools import setup
try:
readme = open("README.rst")
long_description = str(readme.read())
finally:
readme.close()
setup(name='itolapi',
version='1.1.2',
description='API for interacting with itol.embl.de',
long_description=long_description,
url='http://github.com/albertyw... | <commit_before>from setuptools import setup
try:
readme = open("README.rst")
long_description = str(readme.read())
finally:
readme.close()
setup(name='itolapi',
version='1.1.2',
description='API for interacting with itol.embl.de',
long_description=long_description,
url='http://gith... | from setuptools import setup
try:
readme = open("README.rst")
long_description = str(readme.read())
finally:
readme.close()
setup(name='itolapi',
version='1.1.2',
description='API for interacting with itol.embl.de',
long_description=long_description,
url='http://github.com/albertyw... | from setuptools import setup
try:
readme = open("README.rst")
long_description = str(readme.read())
finally:
readme.close()
setup(name='itolapi',
version='1.1.2',
description='API for interacting with itol.embl.de',
long_description=long_description,
url='http://github.com/albertyw... | <commit_before>from setuptools import setup
try:
readme = open("README.rst")
long_description = str(readme.read())
finally:
readme.close()
setup(name='itolapi',
version='1.1.2',
description='API for interacting with itol.embl.de',
long_description=long_description,
url='http://gith... |
f6a780491eef74631cd5a55569188b9930e31b04 | setup.py | setup.py | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
from setuptools import setup
PACKAGE_VERSION = '0.1'
deps = ['fxos-appgen>=0.2.7',
'marionette_client>=0.7.1.1'... | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
from setuptools import setup
PACKAGE_VERSION = '0.1'
deps = ['fxos-appgen>=0.2.7',
'marionette_client>=0.7.1.1'... | Update required version of wptrunner. | Update required version of wptrunner.
| Python | mpl-2.0 | cr/fxos-certsuite,ypwalter/fxos-certsuite,mozilla-b2g/fxos-certsuite,Conjuror/fxos-certsuite,askeing/fxos-certsuite,askeing/fxos-certsuite,ShakoHo/fxos-certsuite,oouyang/fxos-certsuite,mozilla-b2g/fxos-certsuite,cr/fxos-certsuite,cr/fxos-certsuite,cr/fxos-certsuite,ShakoHo/fxos-certsuite,cr/fxos-certsuite,mozilla-b2g/f... | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
from setuptools import setup
PACKAGE_VERSION = '0.1'
deps = ['fxos-appgen>=0.2.7',
'marionette_client>=0.7.1.1'... | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
from setuptools import setup
PACKAGE_VERSION = '0.1'
deps = ['fxos-appgen>=0.2.7',
'marionette_client>=0.7.1.1'... | <commit_before># This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
from setuptools import setup
PACKAGE_VERSION = '0.1'
deps = ['fxos-appgen>=0.2.7',
'marionette_c... | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
from setuptools import setup
PACKAGE_VERSION = '0.1'
deps = ['fxos-appgen>=0.2.7',
'marionette_client>=0.7.1.1'... | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
from setuptools import setup
PACKAGE_VERSION = '0.1'
deps = ['fxos-appgen>=0.2.7',
'marionette_client>=0.7.1.1'... | <commit_before># This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
from setuptools import setup
PACKAGE_VERSION = '0.1'
deps = ['fxos-appgen>=0.2.7',
'marionette_c... |
258ccc85ba73dbfaff26df798681c17303697648 | setup.py | setup.py | #!/usr/bin/env python
# coding: utf-8
from setuptools import setup, find_packages
setup(
name="bentoo",
description="Benchmarking tools",
version="0.19.0",
packages=find_packages(),
scripts=["scripts/bentoo-generator.py", "scripts/bentoo-runner.py",
"scripts/bentoo-collector.py", "scri... | #!/usr/bin/env python
# coding: utf-8
from setuptools import setup, find_packages
setup(
name="bentoo",
description="Benchmarking tools",
version="0.20.0_dev",
packages=find_packages(),
scripts=["scripts/bentoo-generator.py", "scripts/bentoo-runner.py",
"scripts/bentoo-collector.py", "... | Prepare for next dev cycle | Prepare for next dev cycle
| Python | mit | ProgramFan/bentoo | #!/usr/bin/env python
# coding: utf-8
from setuptools import setup, find_packages
setup(
name="bentoo",
description="Benchmarking tools",
version="0.19.0",
packages=find_packages(),
scripts=["scripts/bentoo-generator.py", "scripts/bentoo-runner.py",
"scripts/bentoo-collector.py", "scri... | #!/usr/bin/env python
# coding: utf-8
from setuptools import setup, find_packages
setup(
name="bentoo",
description="Benchmarking tools",
version="0.20.0_dev",
packages=find_packages(),
scripts=["scripts/bentoo-generator.py", "scripts/bentoo-runner.py",
"scripts/bentoo-collector.py", "... | <commit_before>#!/usr/bin/env python
# coding: utf-8
from setuptools import setup, find_packages
setup(
name="bentoo",
description="Benchmarking tools",
version="0.19.0",
packages=find_packages(),
scripts=["scripts/bentoo-generator.py", "scripts/bentoo-runner.py",
"scripts/bentoo-colle... | #!/usr/bin/env python
# coding: utf-8
from setuptools import setup, find_packages
setup(
name="bentoo",
description="Benchmarking tools",
version="0.20.0_dev",
packages=find_packages(),
scripts=["scripts/bentoo-generator.py", "scripts/bentoo-runner.py",
"scripts/bentoo-collector.py", "... | #!/usr/bin/env python
# coding: utf-8
from setuptools import setup, find_packages
setup(
name="bentoo",
description="Benchmarking tools",
version="0.19.0",
packages=find_packages(),
scripts=["scripts/bentoo-generator.py", "scripts/bentoo-runner.py",
"scripts/bentoo-collector.py", "scri... | <commit_before>#!/usr/bin/env python
# coding: utf-8
from setuptools import setup, find_packages
setup(
name="bentoo",
description="Benchmarking tools",
version="0.19.0",
packages=find_packages(),
scripts=["scripts/bentoo-generator.py", "scripts/bentoo-runner.py",
"scripts/bentoo-colle... |
a9864423caaba3c87003fdee69610591cf8eb15c | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
LONG_DESCRIPTION = open('README.md', 'r').read()
setup(name='captricity-python-client',
version='0.1',
description='Python client to access Captricity API',
url='https://github.com/Captricity/captools',
author='Captricity, Inc',
... | #!/usr/bin/env python
from distutils.core import setup
LONG_DESCRIPTION = open('README.md', 'r').read()
setup(name='captricity-python-client',
version='0.11',
description='Python client to access Captricity API',
url='https://github.com/Captricity/captools',
author='Captricity, Inc',
... | Increment version number so pip will install the newest version | Increment version number so pip will install the newest version
| Python | mit | Captricity/captools | #!/usr/bin/env python
from distutils.core import setup
LONG_DESCRIPTION = open('README.md', 'r').read()
setup(name='captricity-python-client',
version='0.1',
description='Python client to access Captricity API',
url='https://github.com/Captricity/captools',
author='Captricity, Inc',
... | #!/usr/bin/env python
from distutils.core import setup
LONG_DESCRIPTION = open('README.md', 'r').read()
setup(name='captricity-python-client',
version='0.11',
description='Python client to access Captricity API',
url='https://github.com/Captricity/captools',
author='Captricity, Inc',
... | <commit_before>#!/usr/bin/env python
from distutils.core import setup
LONG_DESCRIPTION = open('README.md', 'r').read()
setup(name='captricity-python-client',
version='0.1',
description='Python client to access Captricity API',
url='https://github.com/Captricity/captools',
author='Capt... | #!/usr/bin/env python
from distutils.core import setup
LONG_DESCRIPTION = open('README.md', 'r').read()
setup(name='captricity-python-client',
version='0.11',
description='Python client to access Captricity API',
url='https://github.com/Captricity/captools',
author='Captricity, Inc',
... | #!/usr/bin/env python
from distutils.core import setup
LONG_DESCRIPTION = open('README.md', 'r').read()
setup(name='captricity-python-client',
version='0.1',
description='Python client to access Captricity API',
url='https://github.com/Captricity/captools',
author='Captricity, Inc',
... | <commit_before>#!/usr/bin/env python
from distutils.core import setup
LONG_DESCRIPTION = open('README.md', 'r').read()
setup(name='captricity-python-client',
version='0.1',
description='Python client to access Captricity API',
url='https://github.com/Captricity/captools',
author='Capt... |
49a8e95dc5b2b2182368139a61d0ca63d732fbe4 | setup.py | setup.py | #! /usr/bin/env python
import os
from setuptools import setup, find_packages
README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name = "django-premis-event-servi... | #! /usr/bin/env python
import os
from setuptools import setup, find_packages
README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name = "django-premis-event-servi... | Change version to 1.0.0 to match organizational versioning scheme. | Change version to 1.0.0 to match organizational versioning scheme.
| Python | bsd-3-clause | unt-libraries/django-premis-event-service,unt-libraries/django-premis-event-service,unt-libraries/django-premis-event-service | #! /usr/bin/env python
import os
from setuptools import setup, find_packages
README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name = "django-premis-event-servi... | #! /usr/bin/env python
import os
from setuptools import setup, find_packages
README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name = "django-premis-event-servi... | <commit_before>#! /usr/bin/env python
import os
from setuptools import setup, find_packages
README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name = "django-pre... | #! /usr/bin/env python
import os
from setuptools import setup, find_packages
README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name = "django-premis-event-servi... | #! /usr/bin/env python
import os
from setuptools import setup, find_packages
README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name = "django-premis-event-servi... | <commit_before>#! /usr/bin/env python
import os
from setuptools import setup, find_packages
README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name = "django-pre... |
952969952b835896e69f842aee711a58dc14a379 | setup.py | setup.py | from distutils.core import setup
# If sphinx is installed, enable the command
try:
from sphinx.setup_command import BuildDoc
cmdclass = {'build_sphinx': BuildDoc}
command_options = {
'build_sphinx': {
'version': ('setup.py', version),
'release': ('setup.py', version),
... | from distutils.core import setup
version = '1.0.2'
# If sphinx is installed, enable the command
try:
from sphinx.setup_command import BuildDoc
cmdclass = {'build_sphinx': BuildDoc}
command_options = {
'build_sphinx': {
'version': ('setup.py', version),
'release': ('setu... | Make sphinx building actually work | Make sphinx building actually work
| Python | lgpl-2.1 | ianweller/python-simplemediawiki,YSelfTool/python-simplemediawiki,lahwaacz/python-simplemediawiki | from distutils.core import setup
# If sphinx is installed, enable the command
try:
from sphinx.setup_command import BuildDoc
cmdclass = {'build_sphinx': BuildDoc}
command_options = {
'build_sphinx': {
'version': ('setup.py', version),
'release': ('setup.py', version),
... | from distutils.core import setup
version = '1.0.2'
# If sphinx is installed, enable the command
try:
from sphinx.setup_command import BuildDoc
cmdclass = {'build_sphinx': BuildDoc}
command_options = {
'build_sphinx': {
'version': ('setup.py', version),
'release': ('setu... | <commit_before>from distutils.core import setup
# If sphinx is installed, enable the command
try:
from sphinx.setup_command import BuildDoc
cmdclass = {'build_sphinx': BuildDoc}
command_options = {
'build_sphinx': {
'version': ('setup.py', version),
'release': ('setup.py... | from distutils.core import setup
version = '1.0.2'
# If sphinx is installed, enable the command
try:
from sphinx.setup_command import BuildDoc
cmdclass = {'build_sphinx': BuildDoc}
command_options = {
'build_sphinx': {
'version': ('setup.py', version),
'release': ('setu... | from distutils.core import setup
# If sphinx is installed, enable the command
try:
from sphinx.setup_command import BuildDoc
cmdclass = {'build_sphinx': BuildDoc}
command_options = {
'build_sphinx': {
'version': ('setup.py', version),
'release': ('setup.py', version),
... | <commit_before>from distutils.core import setup
# If sphinx is installed, enable the command
try:
from sphinx.setup_command import BuildDoc
cmdclass = {'build_sphinx': BuildDoc}
command_options = {
'build_sphinx': {
'version': ('setup.py', version),
'release': ('setup.py... |
c96b318166c19b644071386380e3b9b6b32deae6 | tests/test_config.py | tests/test_config.py | import unittest
import figgypy.config
import sys
import os
class TestConfig(unittest.TestCase):
def test_config_load(self):
os.environ['FIGGY_GPG_HOME']='tests/resources/test-keys'
c = figgypy.config.Config('tests/resources/test-config.yaml')
self.assertEqual(c.db, 'db.heck.ya')
se... | import unittest
import figgypy.config
import sys
import os
class TestConfig(unittest.TestCase):
def test_config_load(self):
os.environ['FIGGY_GPG_HOME']='tests/resources/test-keys'
c = figgypy.config.Config('tests/resources/test-config.yaml')
self.assertEqual(c.db['host'], 'db.heck.ya')
... | Modify to test with nesting | Modify to test with nesting
| Python | mit | theherk/figgypy | import unittest
import figgypy.config
import sys
import os
class TestConfig(unittest.TestCase):
def test_config_load(self):
os.environ['FIGGY_GPG_HOME']='tests/resources/test-keys'
c = figgypy.config.Config('tests/resources/test-config.yaml')
self.assertEqual(c.db, 'db.heck.ya')
se... | import unittest
import figgypy.config
import sys
import os
class TestConfig(unittest.TestCase):
def test_config_load(self):
os.environ['FIGGY_GPG_HOME']='tests/resources/test-keys'
c = figgypy.config.Config('tests/resources/test-config.yaml')
self.assertEqual(c.db['host'], 'db.heck.ya')
... | <commit_before>import unittest
import figgypy.config
import sys
import os
class TestConfig(unittest.TestCase):
def test_config_load(self):
os.environ['FIGGY_GPG_HOME']='tests/resources/test-keys'
c = figgypy.config.Config('tests/resources/test-config.yaml')
self.assertEqual(c.db, 'db.heck.... | import unittest
import figgypy.config
import sys
import os
class TestConfig(unittest.TestCase):
def test_config_load(self):
os.environ['FIGGY_GPG_HOME']='tests/resources/test-keys'
c = figgypy.config.Config('tests/resources/test-config.yaml')
self.assertEqual(c.db['host'], 'db.heck.ya')
... | import unittest
import figgypy.config
import sys
import os
class TestConfig(unittest.TestCase):
def test_config_load(self):
os.environ['FIGGY_GPG_HOME']='tests/resources/test-keys'
c = figgypy.config.Config('tests/resources/test-config.yaml')
self.assertEqual(c.db, 'db.heck.ya')
se... | <commit_before>import unittest
import figgypy.config
import sys
import os
class TestConfig(unittest.TestCase):
def test_config_load(self):
os.environ['FIGGY_GPG_HOME']='tests/resources/test-keys'
c = figgypy.config.Config('tests/resources/test-config.yaml')
self.assertEqual(c.db, 'db.heck.... |
5502a0be6f419990b95480c5d92d0bc594783c80 | tests/test_redgem.py | tests/test_redgem.py | from pytfa.redgem.redgem import RedGEM
from pytfa.io import import_matlab_model
from pytfa.io.base import load_thermoDB
from pytfa.thermo.tmodel import ThermoModel
from pytfa.io import read_compartment_data, apply_compartment_data, read_lexicon, annotate_from_lexicon
path_to_model = 'models/small_ecoli.mat'
thermo... | from pytfa.redgem.redgem import RedGEM
from pytfa.io import import_matlab_model
from pytfa.io.base import load_thermoDB
from pytfa.thermo.tmodel import ThermoModel
from pytfa.io import read_compartment_data, apply_compartment_data, read_lexicon, annotate_from_lexicon
path_to_model = 'models/small_ecoli.mat'
thermoD... | Remove unused parameters in test script | FIX: Remove unused parameters in test script
| Python | apache-2.0 | EPFL-LCSB/pytfa,EPFL-LCSB/pytfa | from pytfa.redgem.redgem import RedGEM
from pytfa.io import import_matlab_model
from pytfa.io.base import load_thermoDB
from pytfa.thermo.tmodel import ThermoModel
from pytfa.io import read_compartment_data, apply_compartment_data, read_lexicon, annotate_from_lexicon
path_to_model = 'models/small_ecoli.mat'
thermo... | from pytfa.redgem.redgem import RedGEM
from pytfa.io import import_matlab_model
from pytfa.io.base import load_thermoDB
from pytfa.thermo.tmodel import ThermoModel
from pytfa.io import read_compartment_data, apply_compartment_data, read_lexicon, annotate_from_lexicon
path_to_model = 'models/small_ecoli.mat'
thermoD... | <commit_before>from pytfa.redgem.redgem import RedGEM
from pytfa.io import import_matlab_model
from pytfa.io.base import load_thermoDB
from pytfa.thermo.tmodel import ThermoModel
from pytfa.io import read_compartment_data, apply_compartment_data, read_lexicon, annotate_from_lexicon
path_to_model = 'models/small_ec... | from pytfa.redgem.redgem import RedGEM
from pytfa.io import import_matlab_model
from pytfa.io.base import load_thermoDB
from pytfa.thermo.tmodel import ThermoModel
from pytfa.io import read_compartment_data, apply_compartment_data, read_lexicon, annotate_from_lexicon
path_to_model = 'models/small_ecoli.mat'
thermoD... | from pytfa.redgem.redgem import RedGEM
from pytfa.io import import_matlab_model
from pytfa.io.base import load_thermoDB
from pytfa.thermo.tmodel import ThermoModel
from pytfa.io import read_compartment_data, apply_compartment_data, read_lexicon, annotate_from_lexicon
path_to_model = 'models/small_ecoli.mat'
thermo... | <commit_before>from pytfa.redgem.redgem import RedGEM
from pytfa.io import import_matlab_model
from pytfa.io.base import load_thermoDB
from pytfa.thermo.tmodel import ThermoModel
from pytfa.io import read_compartment_data, apply_compartment_data, read_lexicon, annotate_from_lexicon
path_to_model = 'models/small_ec... |
476e0f7dc4c4e401416c92cca1d481fe2520d8f3 | setup.py | setup.py | # encoding: utf-8
"""
The HAL client that does almost nothing for you.
Cetacean doesn't know about HTTP. You set up your own Requests client and use it
to make requests. You feed then Cetacean the decoded bodies as strings and it
helps you pull useful data out of them.
"""
from setuptools import setup
import cetacea... | # encoding: utf-8
"""
The HAL client that does almost nothing for you.
Cetacean doesn't know about HTTP. You set up your own Requests client and use it
to make requests. You feed then Cetacean the decoded bodies as strings and it
helps you pull useful data out of them.
"""
from setuptools import setup
import cetacea... | Add a bunch of classifiers. | Add a bunch of classifiers.
| Python | mit | nanorepublica/cetacean-python,benhamill/cetacean-python | # encoding: utf-8
"""
The HAL client that does almost nothing for you.
Cetacean doesn't know about HTTP. You set up your own Requests client and use it
to make requests. You feed then Cetacean the decoded bodies as strings and it
helps you pull useful data out of them.
"""
from setuptools import setup
import cetacea... | # encoding: utf-8
"""
The HAL client that does almost nothing for you.
Cetacean doesn't know about HTTP. You set up your own Requests client and use it
to make requests. You feed then Cetacean the decoded bodies as strings and it
helps you pull useful data out of them.
"""
from setuptools import setup
import cetacea... | <commit_before># encoding: utf-8
"""
The HAL client that does almost nothing for you.
Cetacean doesn't know about HTTP. You set up your own Requests client and use it
to make requests. You feed then Cetacean the decoded bodies as strings and it
helps you pull useful data out of them.
"""
from setuptools import setup
... | # encoding: utf-8
"""
The HAL client that does almost nothing for you.
Cetacean doesn't know about HTTP. You set up your own Requests client and use it
to make requests. You feed then Cetacean the decoded bodies as strings and it
helps you pull useful data out of them.
"""
from setuptools import setup
import cetacea... | # encoding: utf-8
"""
The HAL client that does almost nothing for you.
Cetacean doesn't know about HTTP. You set up your own Requests client and use it
to make requests. You feed then Cetacean the decoded bodies as strings and it
helps you pull useful data out of them.
"""
from setuptools import setup
import cetacea... | <commit_before># encoding: utf-8
"""
The HAL client that does almost nothing for you.
Cetacean doesn't know about HTTP. You set up your own Requests client and use it
to make requests. You feed then Cetacean the decoded bodies as strings and it
helps you pull useful data out of them.
"""
from setuptools import setup
... |
b6632f1138b2006e869cfb2219e73e2c09c12d49 | setup.py | setup.py | """
Powerful and Lightweight Python Tree Data Structure with various plugins.
"""
# Always prefer setuptools over distutils
from setuptools import setup
# To use a consistent encoding
from codecs import open
from os import path
config = {
'name': "anytree",
'version': "1.0.1",
'author': 'c0fec0de',
'a... | """
Powerful and Lightweight Python Tree Data Structure with various plugins.
"""
# Always prefer setuptools over distutils
from setuptools import setup
# To use a consistent encoding
from codecs import open
from os import path
config = {
'name': "anytree",
'version': "1.0.1",
'author': 'c0fec0de',
'a... | Use github URL instead of documentation. | Use github URL instead of documentation.
| Python | apache-2.0 | c0fec0de/anytree | """
Powerful and Lightweight Python Tree Data Structure with various plugins.
"""
# Always prefer setuptools over distutils
from setuptools import setup
# To use a consistent encoding
from codecs import open
from os import path
config = {
'name': "anytree",
'version': "1.0.1",
'author': 'c0fec0de',
'a... | """
Powerful and Lightweight Python Tree Data Structure with various plugins.
"""
# Always prefer setuptools over distutils
from setuptools import setup
# To use a consistent encoding
from codecs import open
from os import path
config = {
'name': "anytree",
'version': "1.0.1",
'author': 'c0fec0de',
'a... | <commit_before>"""
Powerful and Lightweight Python Tree Data Structure with various plugins.
"""
# Always prefer setuptools over distutils
from setuptools import setup
# To use a consistent encoding
from codecs import open
from os import path
config = {
'name': "anytree",
'version': "1.0.1",
'author': 'c0... | """
Powerful and Lightweight Python Tree Data Structure with various plugins.
"""
# Always prefer setuptools over distutils
from setuptools import setup
# To use a consistent encoding
from codecs import open
from os import path
config = {
'name': "anytree",
'version': "1.0.1",
'author': 'c0fec0de',
'a... | """
Powerful and Lightweight Python Tree Data Structure with various plugins.
"""
# Always prefer setuptools over distutils
from setuptools import setup
# To use a consistent encoding
from codecs import open
from os import path
config = {
'name': "anytree",
'version': "1.0.1",
'author': 'c0fec0de',
'a... | <commit_before>"""
Powerful and Lightweight Python Tree Data Structure with various plugins.
"""
# Always prefer setuptools over distutils
from setuptools import setup
# To use a consistent encoding
from codecs import open
from os import path
config = {
'name': "anytree",
'version': "1.0.1",
'author': 'c0... |
bf6d4c4622b9a0161fad3b03422747fb16faf5de | setup.py | setup.py | from distutils.core import setup
setup(
name='BitstampClient',
version='0.1',
packages=['bitstamp'],
url='',
license='MIT',
author='Kamil Madac',
author_email='[email protected]',
description='Bitstamp API python implementation',
requires=['requests']
)
| from distutils.core import setup
setup(
name='bitstamp-python-client',
version='0.1',
packages=['bitstamp'],
url='',
license='MIT',
author='Kamil Madac',
author_email='[email protected]',
description='Bitstamp API python implementation',
requires=['requests']
)
| Rename because of clash with original package. | Rename because of clash with original package.
| Python | mit | nederhoed/bitstamp-python-client | from distutils.core import setup
setup(
name='BitstampClient',
version='0.1',
packages=['bitstamp'],
url='',
license='MIT',
author='Kamil Madac',
author_email='[email protected]',
description='Bitstamp API python implementation',
requires=['requests']
)
Rename because of clash w... | from distutils.core import setup
setup(
name='bitstamp-python-client',
version='0.1',
packages=['bitstamp'],
url='',
license='MIT',
author='Kamil Madac',
author_email='[email protected]',
description='Bitstamp API python implementation',
requires=['requests']
)
| <commit_before>from distutils.core import setup
setup(
name='BitstampClient',
version='0.1',
packages=['bitstamp'],
url='',
license='MIT',
author='Kamil Madac',
author_email='[email protected]',
description='Bitstamp API python implementation',
requires=['requests']
)
<commit_ms... | from distutils.core import setup
setup(
name='bitstamp-python-client',
version='0.1',
packages=['bitstamp'],
url='',
license='MIT',
author='Kamil Madac',
author_email='[email protected]',
description='Bitstamp API python implementation',
requires=['requests']
)
| from distutils.core import setup
setup(
name='BitstampClient',
version='0.1',
packages=['bitstamp'],
url='',
license='MIT',
author='Kamil Madac',
author_email='[email protected]',
description='Bitstamp API python implementation',
requires=['requests']
)
Rename because of clash w... | <commit_before>from distutils.core import setup
setup(
name='BitstampClient',
version='0.1',
packages=['bitstamp'],
url='',
license='MIT',
author='Kamil Madac',
author_email='[email protected]',
description='Bitstamp API python implementation',
requires=['requests']
)
<commit_ms... |
65d3b11c115c27b9067037c4d9b1a00c35bbfaa7 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
__version__ = '0.1.0b1'
setup(
name='highlander-one',
version=__version__,
author='Christopher T. Cannon',
author_email='[email protected]',
description='A simple decorator to ensure that your '
'program is only running ... | #!/usr/bin/env python
from setuptools import setup
__version__ = '0.1.0'
setup(
name='highlander-one',
version=__version__,
author='Christopher T. Cannon',
author_email='[email protected]',
description='A simple decorator to ensure that your '
'program is only running on... | Make it not a pre-release so that it can be installed from pip. | Make it not a pre-release so that it can be installed from pip.
| Python | mit | chriscannon/highlander | #!/usr/bin/env python
from setuptools import setup
__version__ = '0.1.0b1'
setup(
name='highlander-one',
version=__version__,
author='Christopher T. Cannon',
author_email='[email protected]',
description='A simple decorator to ensure that your '
'program is only running ... | #!/usr/bin/env python
from setuptools import setup
__version__ = '0.1.0'
setup(
name='highlander-one',
version=__version__,
author='Christopher T. Cannon',
author_email='[email protected]',
description='A simple decorator to ensure that your '
'program is only running on... | <commit_before>#!/usr/bin/env python
from setuptools import setup
__version__ = '0.1.0b1'
setup(
name='highlander-one',
version=__version__,
author='Christopher T. Cannon',
author_email='[email protected]',
description='A simple decorator to ensure that your '
'program i... | #!/usr/bin/env python
from setuptools import setup
__version__ = '0.1.0'
setup(
name='highlander-one',
version=__version__,
author='Christopher T. Cannon',
author_email='[email protected]',
description='A simple decorator to ensure that your '
'program is only running on... | #!/usr/bin/env python
from setuptools import setup
__version__ = '0.1.0b1'
setup(
name='highlander-one',
version=__version__,
author='Christopher T. Cannon',
author_email='[email protected]',
description='A simple decorator to ensure that your '
'program is only running ... | <commit_before>#!/usr/bin/env python
from setuptools import setup
__version__ = '0.1.0b1'
setup(
name='highlander-one',
version=__version__,
author='Christopher T. Cannon',
author_email='[email protected]',
description='A simple decorator to ensure that your '
'program i... |
a89ff1565e83677a07affe7f7b018ab29d535b99 | setup.py | setup.py | #from distutils.core import setup
from setuptools import setup, find_packages
setup(
name='Flask-MongoMyAdmin',
version='0.1',
url='http://github.com/classicspecs/Flask-MongoMyAdmin/',
author='Jay Goel',
author_email='[email protected]',
description='Simple MongoDB Administrative Interface ... | #from distutils.core import setup
from setuptools import setup, find_packages
setup(
name='Flask-MongoMyAdmin',
version='0.1',
url='http://github.com/classicspecs/Flask-MongoMyAdmin/',
author='Jay Goel',
author_email='[email protected]',
description='Simple MongoDB Administrative Interface ... | Fix comment describing pypi incantation | Fix comment describing pypi incantation
| Python | apache-2.0 | poundifdef/Flask-MongoMyAdmin,poundifdef/Flask-MongoMyAdmin | #from distutils.core import setup
from setuptools import setup, find_packages
setup(
name='Flask-MongoMyAdmin',
version='0.1',
url='http://github.com/classicspecs/Flask-MongoMyAdmin/',
author='Jay Goel',
author_email='[email protected]',
description='Simple MongoDB Administrative Interface ... | #from distutils.core import setup
from setuptools import setup, find_packages
setup(
name='Flask-MongoMyAdmin',
version='0.1',
url='http://github.com/classicspecs/Flask-MongoMyAdmin/',
author='Jay Goel',
author_email='[email protected]',
description='Simple MongoDB Administrative Interface ... | <commit_before>#from distutils.core import setup
from setuptools import setup, find_packages
setup(
name='Flask-MongoMyAdmin',
version='0.1',
url='http://github.com/classicspecs/Flask-MongoMyAdmin/',
author='Jay Goel',
author_email='[email protected]',
description='Simple MongoDB Administra... | #from distutils.core import setup
from setuptools import setup, find_packages
setup(
name='Flask-MongoMyAdmin',
version='0.1',
url='http://github.com/classicspecs/Flask-MongoMyAdmin/',
author='Jay Goel',
author_email='[email protected]',
description='Simple MongoDB Administrative Interface ... | #from distutils.core import setup
from setuptools import setup, find_packages
setup(
name='Flask-MongoMyAdmin',
version='0.1',
url='http://github.com/classicspecs/Flask-MongoMyAdmin/',
author='Jay Goel',
author_email='[email protected]',
description='Simple MongoDB Administrative Interface ... | <commit_before>#from distutils.core import setup
from setuptools import setup, find_packages
setup(
name='Flask-MongoMyAdmin',
version='0.1',
url='http://github.com/classicspecs/Flask-MongoMyAdmin/',
author='Jay Goel',
author_email='[email protected]',
description='Simple MongoDB Administra... |
94d650fb66f79021bd757d70c4b1b82c3f200c12 | setup.py | setup.py | from setuptools import setup
setup(
name = 'flowz',
version = '0.5.0',
description = 'Async I/O - oriented dependency programming framework',
url = 'https://github.com/ethanrowe/flowz',
author = 'Ethan Rowe',
author_email = '[email protected]',
license = 'MIT',
test_suite = 'nose.coll... | from setuptools import setup
setup(
name = 'flowz',
version = '0.6.0',
description = 'Async I/O - oriented dependency programming framework',
url = 'https://github.com/ethanrowe/flowz',
author = 'Ethan Rowe',
author_email = '[email protected]',
license = 'MIT',
test_suite = 'nose.coll... | Package version bump to 0.6.0 | Package version bump to 0.6.0
| Python | mit | ethanrowe/flowz,PatrickDRusk/flowz | from setuptools import setup
setup(
name = 'flowz',
version = '0.5.0',
description = 'Async I/O - oriented dependency programming framework',
url = 'https://github.com/ethanrowe/flowz',
author = 'Ethan Rowe',
author_email = '[email protected]',
license = 'MIT',
test_suite = 'nose.coll... | from setuptools import setup
setup(
name = 'flowz',
version = '0.6.0',
description = 'Async I/O - oriented dependency programming framework',
url = 'https://github.com/ethanrowe/flowz',
author = 'Ethan Rowe',
author_email = '[email protected]',
license = 'MIT',
test_suite = 'nose.coll... | <commit_before>from setuptools import setup
setup(
name = 'flowz',
version = '0.5.0',
description = 'Async I/O - oriented dependency programming framework',
url = 'https://github.com/ethanrowe/flowz',
author = 'Ethan Rowe',
author_email = '[email protected]',
license = 'MIT',
test_sui... | from setuptools import setup
setup(
name = 'flowz',
version = '0.6.0',
description = 'Async I/O - oriented dependency programming framework',
url = 'https://github.com/ethanrowe/flowz',
author = 'Ethan Rowe',
author_email = '[email protected]',
license = 'MIT',
test_suite = 'nose.coll... | from setuptools import setup
setup(
name = 'flowz',
version = '0.5.0',
description = 'Async I/O - oriented dependency programming framework',
url = 'https://github.com/ethanrowe/flowz',
author = 'Ethan Rowe',
author_email = '[email protected]',
license = 'MIT',
test_suite = 'nose.coll... | <commit_before>from setuptools import setup
setup(
name = 'flowz',
version = '0.5.0',
description = 'Async I/O - oriented dependency programming framework',
url = 'https://github.com/ethanrowe/flowz',
author = 'Ethan Rowe',
author_email = '[email protected]',
license = 'MIT',
test_sui... |
3a7d79e52ce942522f9802fd42c202369e0b5c8a | setup.py | setup.py | #!/usr/bin/env python2.7
from __future__ import print_function
import os
from setuptools import setup
version = '1.1.4b'
# Append TeamCity build number if it gives us one.
if 'TC_BUILD_NUMBER' in os.environ and version.endswith('b'):
version += '' + os.environ['TC_BUILD_NUMBER']
setup(name='fetch',
maint... | #!/usr/bin/env python2.7
from __future__ import print_function
import os
import sys
from setuptools import setup
version = '1.1.4b'
# Append TeamCity build number if it gives us one.
if 'TC_BUILD_NUMBER' in os.environ and version.endswith('b'):
version += '' + os.environ['TC_BUILD_NUMBER']
setup(name='fetch',
... | Fix the dependency list for non-Linux systems | Fix the dependency list for non-Linux systems
setproctitle is not available for other platforms. It's optional in the code.
| Python | apache-2.0 | GeoscienceAustralia/fetch,GeoscienceAustralia/fetch | #!/usr/bin/env python2.7
from __future__ import print_function
import os
from setuptools import setup
version = '1.1.4b'
# Append TeamCity build number if it gives us one.
if 'TC_BUILD_NUMBER' in os.environ and version.endswith('b'):
version += '' + os.environ['TC_BUILD_NUMBER']
setup(name='fetch',
maint... | #!/usr/bin/env python2.7
from __future__ import print_function
import os
import sys
from setuptools import setup
version = '1.1.4b'
# Append TeamCity build number if it gives us one.
if 'TC_BUILD_NUMBER' in os.environ and version.endswith('b'):
version += '' + os.environ['TC_BUILD_NUMBER']
setup(name='fetch',
... | <commit_before>#!/usr/bin/env python2.7
from __future__ import print_function
import os
from setuptools import setup
version = '1.1.4b'
# Append TeamCity build number if it gives us one.
if 'TC_BUILD_NUMBER' in os.environ and version.endswith('b'):
version += '' + os.environ['TC_BUILD_NUMBER']
setup(name='fetc... | #!/usr/bin/env python2.7
from __future__ import print_function
import os
import sys
from setuptools import setup
version = '1.1.4b'
# Append TeamCity build number if it gives us one.
if 'TC_BUILD_NUMBER' in os.environ and version.endswith('b'):
version += '' + os.environ['TC_BUILD_NUMBER']
setup(name='fetch',
... | #!/usr/bin/env python2.7
from __future__ import print_function
import os
from setuptools import setup
version = '1.1.4b'
# Append TeamCity build number if it gives us one.
if 'TC_BUILD_NUMBER' in os.environ and version.endswith('b'):
version += '' + os.environ['TC_BUILD_NUMBER']
setup(name='fetch',
maint... | <commit_before>#!/usr/bin/env python2.7
from __future__ import print_function
import os
from setuptools import setup
version = '1.1.4b'
# Append TeamCity build number if it gives us one.
if 'TC_BUILD_NUMBER' in os.environ and version.endswith('b'):
version += '' + os.environ['TC_BUILD_NUMBER']
setup(name='fetc... |
372dcd7cf3b5cb71a592e5a8e3a9031a27cd92cc | setup.py | setup.py | from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
version = '0.0.0'
try:
import bugbuzz
version = bugbuzz.__version__
except ImportError:
pass
tests_require = [
'mock',
'pytest',
'pytest-cov',
'pytest-xdist',
'pytest-capturelog',
'py... | from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
version = '0.0.0'
try:
import bugbuzz
version = bugbuzz.__version__
except ImportError:
pass
tests_require = [
'mock',
'pytest',
'pytest-cov',
'pytest-xdist',
'pytest-capturelog',
'py... | Fix requests ca cert file missing bug | Fix requests ca cert file missing bug
| Python | mit | victorlin/bugbuzz-python,victorlin/bugbuzz-python | from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
version = '0.0.0'
try:
import bugbuzz
version = bugbuzz.__version__
except ImportError:
pass
tests_require = [
'mock',
'pytest',
'pytest-cov',
'pytest-xdist',
'pytest-capturelog',
'py... | from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
version = '0.0.0'
try:
import bugbuzz
version = bugbuzz.__version__
except ImportError:
pass
tests_require = [
'mock',
'pytest',
'pytest-cov',
'pytest-xdist',
'pytest-capturelog',
'py... | <commit_before>from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
version = '0.0.0'
try:
import bugbuzz
version = bugbuzz.__version__
except ImportError:
pass
tests_require = [
'mock',
'pytest',
'pytest-cov',
'pytest-xdist',
'pytest-captu... | from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
version = '0.0.0'
try:
import bugbuzz
version = bugbuzz.__version__
except ImportError:
pass
tests_require = [
'mock',
'pytest',
'pytest-cov',
'pytest-xdist',
'pytest-capturelog',
'py... | from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
version = '0.0.0'
try:
import bugbuzz
version = bugbuzz.__version__
except ImportError:
pass
tests_require = [
'mock',
'pytest',
'pytest-cov',
'pytest-xdist',
'pytest-capturelog',
'py... | <commit_before>from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
version = '0.0.0'
try:
import bugbuzz
version = bugbuzz.__version__
except ImportError:
pass
tests_require = [
'mock',
'pytest',
'pytest-cov',
'pytest-xdist',
'pytest-captu... |
6dee9e30424582b1a61f37803ef81f28ebc7baa3 | setup.py | setup.py | #!/usr/bin/env python
import os
import sys
from setuptools import setup
__author__ = 'Mike Helmick <[email protected]>'
__version__ = '1.1.1'
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
setup(
name='python-tumblpy',
version=__version__,
install_require... | #!/usr/bin/env python
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
__author__ = 'Mike Helmick <[email protected]>'
__version__ = '1.1.1'
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
setup(
n... | Add distutils for legacy pypi | Add distutils for legacy pypi
| Python | bsd-2-clause | michaelhelmick/python-tumblpy | #!/usr/bin/env python
import os
import sys
from setuptools import setup
__author__ = 'Mike Helmick <[email protected]>'
__version__ = '1.1.1'
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
setup(
name='python-tumblpy',
version=__version__,
install_require... | #!/usr/bin/env python
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
__author__ = 'Mike Helmick <[email protected]>'
__version__ = '1.1.1'
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
setup(
n... | <commit_before>#!/usr/bin/env python
import os
import sys
from setuptools import setup
__author__ = 'Mike Helmick <[email protected]>'
__version__ = '1.1.1'
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
setup(
name='python-tumblpy',
version=__version__,
... | #!/usr/bin/env python
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
__author__ = 'Mike Helmick <[email protected]>'
__version__ = '1.1.1'
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
setup(
n... | #!/usr/bin/env python
import os
import sys
from setuptools import setup
__author__ = 'Mike Helmick <[email protected]>'
__version__ = '1.1.1'
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
setup(
name='python-tumblpy',
version=__version__,
install_require... | <commit_before>#!/usr/bin/env python
import os
import sys
from setuptools import setup
__author__ = 'Mike Helmick <[email protected]>'
__version__ = '1.1.1'
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
setup(
name='python-tumblpy',
version=__version__,
... |
62cecaaff0f19f5824515826fffbfd0bba4d9fbf | setup.py | setup.py | from setuptools import setup
with open('README.rst') as readme:
long_description = readme.read()
setup(
name='twixxy',
version='0.1.0',
description='Twisted integration with the twiggy logging library.',
url='https://github.com/dreid/twixxy',
author='David Reid',
author_email='dreid@dreid... | from setuptools import setup
with open('README.rst') as readme:
long_description = readme.read()
setup(
name='twixxy',
version='0.1.1',
description='Twisted integration with the twiggy logging library.',
url='https://github.com/dreid/twixxy',
author='David Reid',
author_email='dreid@dreid... | Add twixxy.features to packages and bump version | Add twixxy.features to packages and bump version
| Python | mit | dreid/twixxy | from setuptools import setup
with open('README.rst') as readme:
long_description = readme.read()
setup(
name='twixxy',
version='0.1.0',
description='Twisted integration with the twiggy logging library.',
url='https://github.com/dreid/twixxy',
author='David Reid',
author_email='dreid@dreid... | from setuptools import setup
with open('README.rst') as readme:
long_description = readme.read()
setup(
name='twixxy',
version='0.1.1',
description='Twisted integration with the twiggy logging library.',
url='https://github.com/dreid/twixxy',
author='David Reid',
author_email='dreid@dreid... | <commit_before>from setuptools import setup
with open('README.rst') as readme:
long_description = readme.read()
setup(
name='twixxy',
version='0.1.0',
description='Twisted integration with the twiggy logging library.',
url='https://github.com/dreid/twixxy',
author='David Reid',
author_ema... | from setuptools import setup
with open('README.rst') as readme:
long_description = readme.read()
setup(
name='twixxy',
version='0.1.1',
description='Twisted integration with the twiggy logging library.',
url='https://github.com/dreid/twixxy',
author='David Reid',
author_email='dreid@dreid... | from setuptools import setup
with open('README.rst') as readme:
long_description = readme.read()
setup(
name='twixxy',
version='0.1.0',
description='Twisted integration with the twiggy logging library.',
url='https://github.com/dreid/twixxy',
author='David Reid',
author_email='dreid@dreid... | <commit_before>from setuptools import setup
with open('README.rst') as readme:
long_description = readme.read()
setup(
name='twixxy',
version='0.1.0',
description='Twisted integration with the twiggy logging library.',
url='https://github.com/dreid/twixxy',
author='David Reid',
author_ema... |
d5c2a4643f22d768694b452ea1b0ca5db65bb169 | setup.py | setup.py | import setuptools
NAME = "gidgethub"
tests_require = ['pytest>=3.0.0']
setuptools.setup(
name=NAME,
version="0.1.0.dev1",
description="A sans-I/O GitHub API library",
url="https://github.com/brettcannon/gidgethub",
author="Brett Cannon",
author_email="[email protected]",
license="Apache",
... | import setuptools
NAME = "gidgethub"
tests_require = ['pytest>=3.0.0']
setuptools.setup(
name=NAME,
version="0.1.0.dev1",
description="A sans-I/O GitHub API library",
url="https://github.com/brettcannon/gidgethub",
author="Brett Cannon",
author_email="[email protected]",
license="Apache",
... | Add a docs build target | Add a docs build target
| Python | apache-2.0 | brettcannon/gidgethub,brettcannon/gidgethub | import setuptools
NAME = "gidgethub"
tests_require = ['pytest>=3.0.0']
setuptools.setup(
name=NAME,
version="0.1.0.dev1",
description="A sans-I/O GitHub API library",
url="https://github.com/brettcannon/gidgethub",
author="Brett Cannon",
author_email="[email protected]",
license="Apache",
... | import setuptools
NAME = "gidgethub"
tests_require = ['pytest>=3.0.0']
setuptools.setup(
name=NAME,
version="0.1.0.dev1",
description="A sans-I/O GitHub API library",
url="https://github.com/brettcannon/gidgethub",
author="Brett Cannon",
author_email="[email protected]",
license="Apache",
... | <commit_before>import setuptools
NAME = "gidgethub"
tests_require = ['pytest>=3.0.0']
setuptools.setup(
name=NAME,
version="0.1.0.dev1",
description="A sans-I/O GitHub API library",
url="https://github.com/brettcannon/gidgethub",
author="Brett Cannon",
author_email="[email protected]",
lic... | import setuptools
NAME = "gidgethub"
tests_require = ['pytest>=3.0.0']
setuptools.setup(
name=NAME,
version="0.1.0.dev1",
description="A sans-I/O GitHub API library",
url="https://github.com/brettcannon/gidgethub",
author="Brett Cannon",
author_email="[email protected]",
license="Apache",
... | import setuptools
NAME = "gidgethub"
tests_require = ['pytest>=3.0.0']
setuptools.setup(
name=NAME,
version="0.1.0.dev1",
description="A sans-I/O GitHub API library",
url="https://github.com/brettcannon/gidgethub",
author="Brett Cannon",
author_email="[email protected]",
license="Apache",
... | <commit_before>import setuptools
NAME = "gidgethub"
tests_require = ['pytest>=3.0.0']
setuptools.setup(
name=NAME,
version="0.1.0.dev1",
description="A sans-I/O GitHub API library",
url="https://github.com/brettcannon/gidgethub",
author="Brett Cannon",
author_email="[email protected]",
lic... |
1b98defd5a2bd7d18971d7a10d2527ea55681e6b | setup.py | setup.py | from setuptools import setup
setup(
name='dictobj',
version='0.2',
author='William Grim',
author_email='[email protected]',
url='https://github.com/grimwm/py-dictobj',
classifiers = [
'Development Status :: 4 - Beta',
'License :: OSI Approved :: Apache Software License',
'Operating System ::... | from setuptools import setup
setup(
name='dictobj',
version='0.2.1',
author='William Grim',
author_email='[email protected]',
url='https://github.com/grimwm/py-dictobj',
classifiers = [
'Development Status :: 4 - Beta',
'License :: OSI Approved :: Apache Software License',
'Operating System ... | Upgrade to 0.2.1 and add a description. | Upgrade to 0.2.1 and add a description.
| Python | apache-2.0 | grimwm/py-dictobj,grimwm/py-dictobj | from setuptools import setup
setup(
name='dictobj',
version='0.2',
author='William Grim',
author_email='[email protected]',
url='https://github.com/grimwm/py-dictobj',
classifiers = [
'Development Status :: 4 - Beta',
'License :: OSI Approved :: Apache Software License',
'Operating System ::... | from setuptools import setup
setup(
name='dictobj',
version='0.2.1',
author='William Grim',
author_email='[email protected]',
url='https://github.com/grimwm/py-dictobj',
classifiers = [
'Development Status :: 4 - Beta',
'License :: OSI Approved :: Apache Software License',
'Operating System ... | <commit_before>from setuptools import setup
setup(
name='dictobj',
version='0.2',
author='William Grim',
author_email='[email protected]',
url='https://github.com/grimwm/py-dictobj',
classifiers = [
'Development Status :: 4 - Beta',
'License :: OSI Approved :: Apache Software License',
'Oper... | from setuptools import setup
setup(
name='dictobj',
version='0.2.1',
author='William Grim',
author_email='[email protected]',
url='https://github.com/grimwm/py-dictobj',
classifiers = [
'Development Status :: 4 - Beta',
'License :: OSI Approved :: Apache Software License',
'Operating System ... | from setuptools import setup
setup(
name='dictobj',
version='0.2',
author='William Grim',
author_email='[email protected]',
url='https://github.com/grimwm/py-dictobj',
classifiers = [
'Development Status :: 4 - Beta',
'License :: OSI Approved :: Apache Software License',
'Operating System ::... | <commit_before>from setuptools import setup
setup(
name='dictobj',
version='0.2',
author='William Grim',
author_email='[email protected]',
url='https://github.com/grimwm/py-dictobj',
classifiers = [
'Development Status :: 4 - Beta',
'License :: OSI Approved :: Apache Software License',
'Oper... |
ee0f0dcbd1d2ce7558b59af4e8e018d5332aed92 | setup.py | setup.py | #!/usr/bin/env python
import unittest
from setuptools import setup
def pccora_test_suite():
test_loader = unittest.TestLoader()
test_suite = test_loader.discover('tests', pattern='test_*.py')
return test_suite
test_requirements = []
install_requires = [
'construct==2.5.1'
]
extras_require = {
... | #!/usr/bin/env python
import unittest
from setuptools import setup
def pccora_test_suite():
test_loader = unittest.TestLoader()
test_suite = test_loader.discover('tests', pattern='test_*.py')
return test_suite
test_requirements = []
install_requires = [
'construct==2.5.1'
]
extras_require = {
... | Add more specific installation dependencies | Add more specific installation dependencies
| Python | mit | kinow/pccora | #!/usr/bin/env python
import unittest
from setuptools import setup
def pccora_test_suite():
test_loader = unittest.TestLoader()
test_suite = test_loader.discover('tests', pattern='test_*.py')
return test_suite
test_requirements = []
install_requires = [
'construct==2.5.1'
]
extras_require = {
... | #!/usr/bin/env python
import unittest
from setuptools import setup
def pccora_test_suite():
test_loader = unittest.TestLoader()
test_suite = test_loader.discover('tests', pattern='test_*.py')
return test_suite
test_requirements = []
install_requires = [
'construct==2.5.1'
]
extras_require = {
... | <commit_before>#!/usr/bin/env python
import unittest
from setuptools import setup
def pccora_test_suite():
test_loader = unittest.TestLoader()
test_suite = test_loader.discover('tests', pattern='test_*.py')
return test_suite
test_requirements = []
install_requires = [
'construct==2.5.1'
]
extras... | #!/usr/bin/env python
import unittest
from setuptools import setup
def pccora_test_suite():
test_loader = unittest.TestLoader()
test_suite = test_loader.discover('tests', pattern='test_*.py')
return test_suite
test_requirements = []
install_requires = [
'construct==2.5.1'
]
extras_require = {
... | #!/usr/bin/env python
import unittest
from setuptools import setup
def pccora_test_suite():
test_loader = unittest.TestLoader()
test_suite = test_loader.discover('tests', pattern='test_*.py')
return test_suite
test_requirements = []
install_requires = [
'construct==2.5.1'
]
extras_require = {
... | <commit_before>#!/usr/bin/env python
import unittest
from setuptools import setup
def pccora_test_suite():
test_loader = unittest.TestLoader()
test_suite = test_loader.discover('tests', pattern='test_*.py')
return test_suite
test_requirements = []
install_requires = [
'construct==2.5.1'
]
extras... |
434bc5554dcd8b2f2bf4a3b4a1d1991746e86b78 | setup.py | setup.py | from distutils.core import setup
setup(
name = 'pybenchmark',
packages = ['pybenchmark'], # this must be the same as the name above
version = '0.0.5',
description = 'A benchmark utility used in performance tests.',
author = 'Eugene Duboviy',
author_email = '[email protected]',
url = 'https://github... | from distutils.core import setup
setup(
name = 'pybenchmark',
packages = ['pybenchmark'], # this must be the same as the name above
version = '0.0.6',
description = 'A benchmark utility used in performance tests.',
author = 'Eugene Duboviy',
author_email = '[email protected]',
url = 'https://github... | Fix long description; Add new PyPI release version | Fix long description; Add new PyPI release version
| Python | mit | duboviy/pybenchmark | from distutils.core import setup
setup(
name = 'pybenchmark',
packages = ['pybenchmark'], # this must be the same as the name above
version = '0.0.5',
description = 'A benchmark utility used in performance tests.',
author = 'Eugene Duboviy',
author_email = '[email protected]',
url = 'https://github... | from distutils.core import setup
setup(
name = 'pybenchmark',
packages = ['pybenchmark'], # this must be the same as the name above
version = '0.0.6',
description = 'A benchmark utility used in performance tests.',
author = 'Eugene Duboviy',
author_email = '[email protected]',
url = 'https://github... | <commit_before>from distutils.core import setup
setup(
name = 'pybenchmark',
packages = ['pybenchmark'], # this must be the same as the name above
version = '0.0.5',
description = 'A benchmark utility used in performance tests.',
author = 'Eugene Duboviy',
author_email = '[email protected]',
url = ... | from distutils.core import setup
setup(
name = 'pybenchmark',
packages = ['pybenchmark'], # this must be the same as the name above
version = '0.0.6',
description = 'A benchmark utility used in performance tests.',
author = 'Eugene Duboviy',
author_email = '[email protected]',
url = 'https://github... | from distutils.core import setup
setup(
name = 'pybenchmark',
packages = ['pybenchmark'], # this must be the same as the name above
version = '0.0.5',
description = 'A benchmark utility used in performance tests.',
author = 'Eugene Duboviy',
author_email = '[email protected]',
url = 'https://github... | <commit_before>from distutils.core import setup
setup(
name = 'pybenchmark',
packages = ['pybenchmark'], # this must be the same as the name above
version = '0.0.5',
description = 'A benchmark utility used in performance tests.',
author = 'Eugene Duboviy',
author_email = '[email protected]',
url = ... |
3bad5f4bbb483cb3a7d5b3b67c002c71a0b96987 | matches/admin.py | matches/admin.py | from django.contrib import admin
from .models import Match
from .models import Tip
def delete_tips(modeladmin, request, queryset):
for match in queryset:
tips = Tip.object.filter(match = match)
for tip in tips:
tip.score = 0
tip.scoring_field = ""
tip.is_score_ca... | from django.contrib import admin
from .models import Match
from .models import Tip
def delete_tips(modeladmin, request, queryset):
for match in queryset:
tips = Tip.objects.filter(match = match)
for tip in tips:
tip.score = 0
tip.scoring_field = ""
tip.is_score_c... | Add action to zero out tips for given match | Add action to zero out tips for given match
| Python | mit | leventebakos/football-ech,leventebakos/football-ech | from django.contrib import admin
from .models import Match
from .models import Tip
def delete_tips(modeladmin, request, queryset):
for match in queryset:
tips = Tip.object.filter(match = match)
for tip in tips:
tip.score = 0
tip.scoring_field = ""
tip.is_score_ca... | from django.contrib import admin
from .models import Match
from .models import Tip
def delete_tips(modeladmin, request, queryset):
for match in queryset:
tips = Tip.objects.filter(match = match)
for tip in tips:
tip.score = 0
tip.scoring_field = ""
tip.is_score_c... | <commit_before>from django.contrib import admin
from .models import Match
from .models import Tip
def delete_tips(modeladmin, request, queryset):
for match in queryset:
tips = Tip.object.filter(match = match)
for tip in tips:
tip.score = 0
tip.scoring_field = ""
... | from django.contrib import admin
from .models import Match
from .models import Tip
def delete_tips(modeladmin, request, queryset):
for match in queryset:
tips = Tip.objects.filter(match = match)
for tip in tips:
tip.score = 0
tip.scoring_field = ""
tip.is_score_c... | from django.contrib import admin
from .models import Match
from .models import Tip
def delete_tips(modeladmin, request, queryset):
for match in queryset:
tips = Tip.object.filter(match = match)
for tip in tips:
tip.score = 0
tip.scoring_field = ""
tip.is_score_ca... | <commit_before>from django.contrib import admin
from .models import Match
from .models import Tip
def delete_tips(modeladmin, request, queryset):
for match in queryset:
tips = Tip.object.filter(match = match)
for tip in tips:
tip.score = 0
tip.scoring_field = ""
... |
d9f2ab870c3226d932f7d31aed2c255495573051 | src/xii/need/need_guestfs.py | src/xii/need/need_guestfs.py | from abc import ABCMeta, abstractmethod
import guestfs
from xii import util
class NeedGuestFS():
__metaclass__ = ABCMeta
@abstractmethod
def get_tmp_volume_path(self):
pass
def guest(self):
def _start_guestfs():
path = self.get_tmp_volume_path()
guest = gues... | from abc import ABCMeta, abstractmethod
import guestfs
from xii import util, error
class NeedGuestFS():
__metaclass__ = ABCMeta
@abstractmethod
def get_tmp_volume_path(self):
pass
def guest(self):
def _start_guestfs():
try:
path = self.get_tmp_volume_pat... | Add error handling to guestfs initializer | Add error handling to guestfs initializer
| Python | apache-2.0 | xii/xii,xii/xii | from abc import ABCMeta, abstractmethod
import guestfs
from xii import util
class NeedGuestFS():
__metaclass__ = ABCMeta
@abstractmethod
def get_tmp_volume_path(self):
pass
def guest(self):
def _start_guestfs():
path = self.get_tmp_volume_path()
guest = gues... | from abc import ABCMeta, abstractmethod
import guestfs
from xii import util, error
class NeedGuestFS():
__metaclass__ = ABCMeta
@abstractmethod
def get_tmp_volume_path(self):
pass
def guest(self):
def _start_guestfs():
try:
path = self.get_tmp_volume_pat... | <commit_before>from abc import ABCMeta, abstractmethod
import guestfs
from xii import util
class NeedGuestFS():
__metaclass__ = ABCMeta
@abstractmethod
def get_tmp_volume_path(self):
pass
def guest(self):
def _start_guestfs():
path = self.get_tmp_volume_path()
... | from abc import ABCMeta, abstractmethod
import guestfs
from xii import util, error
class NeedGuestFS():
__metaclass__ = ABCMeta
@abstractmethod
def get_tmp_volume_path(self):
pass
def guest(self):
def _start_guestfs():
try:
path = self.get_tmp_volume_pat... | from abc import ABCMeta, abstractmethod
import guestfs
from xii import util
class NeedGuestFS():
__metaclass__ = ABCMeta
@abstractmethod
def get_tmp_volume_path(self):
pass
def guest(self):
def _start_guestfs():
path = self.get_tmp_volume_path()
guest = gues... | <commit_before>from abc import ABCMeta, abstractmethod
import guestfs
from xii import util
class NeedGuestFS():
__metaclass__ = ABCMeta
@abstractmethod
def get_tmp_volume_path(self):
pass
def guest(self):
def _start_guestfs():
path = self.get_tmp_volume_path()
... |
dcce2d6db32c94e382615dc8eb01d8bef0894c00 | tests/test_config.py | tests/test_config.py | import unittest
import yaml
import keepaneyeon.config
from keepaneyeon.http import HttpDownloader
class TestConfig(unittest.TestCase):
def test_register(self):
# custom type we want to load from YAML
class A():
def __init__(self, **opts):
self.opts = opts
# YAML... | import unittest
import yaml
import keepaneyeon.config
from keepaneyeon.http import HttpDownloader
class TestConfig(unittest.TestCase):
def test_register(self):
# custom type we want to load from YAML
class A():
def __init__(self, **opts):
self.opts = opts
# YAML... | Fix bug in config test | Fix bug in config test
| Python | mit | mmcloughlin/keepaneyeon | import unittest
import yaml
import keepaneyeon.config
from keepaneyeon.http import HttpDownloader
class TestConfig(unittest.TestCase):
def test_register(self):
# custom type we want to load from YAML
class A():
def __init__(self, **opts):
self.opts = opts
# YAML... | import unittest
import yaml
import keepaneyeon.config
from keepaneyeon.http import HttpDownloader
class TestConfig(unittest.TestCase):
def test_register(self):
# custom type we want to load from YAML
class A():
def __init__(self, **opts):
self.opts = opts
# YAML... | <commit_before>import unittest
import yaml
import keepaneyeon.config
from keepaneyeon.http import HttpDownloader
class TestConfig(unittest.TestCase):
def test_register(self):
# custom type we want to load from YAML
class A():
def __init__(self, **opts):
self.opts = opts... | import unittest
import yaml
import keepaneyeon.config
from keepaneyeon.http import HttpDownloader
class TestConfig(unittest.TestCase):
def test_register(self):
# custom type we want to load from YAML
class A():
def __init__(self, **opts):
self.opts = opts
# YAML... | import unittest
import yaml
import keepaneyeon.config
from keepaneyeon.http import HttpDownloader
class TestConfig(unittest.TestCase):
def test_register(self):
# custom type we want to load from YAML
class A():
def __init__(self, **opts):
self.opts = opts
# YAML... | <commit_before>import unittest
import yaml
import keepaneyeon.config
from keepaneyeon.http import HttpDownloader
class TestConfig(unittest.TestCase):
def test_register(self):
# custom type we want to load from YAML
class A():
def __init__(self, **opts):
self.opts = opts... |
8182657154b86cf65c515af3537e369818051ff5 | tests/test_config.py | tests/test_config.py | # -*- coding: utf-8 -*-
import unittest
from .utils import all_available_methods, get_config_path
from noterator import Noterator
from noterator.config import ConfigurationError
class TestConfigValidation(unittest.TestCase):
def test_valid_config(self):
noterator = Noterator(
method=all_ava... | # -*- coding: utf-8 -*-
import unittest
from .utils import all_available_methods, get_config_path
from noterator import Noterator
from noterator.config import ConfigurationError
class TestConfigValidation(unittest.TestCase):
def test_valid_config(self):
noterator = Noterator(
method=all_ava... | Make sure config is empty if a bad path is given | Make sure config is empty if a bad path is given
| Python | mit | jimr/noterator | # -*- coding: utf-8 -*-
import unittest
from .utils import all_available_methods, get_config_path
from noterator import Noterator
from noterator.config import ConfigurationError
class TestConfigValidation(unittest.TestCase):
def test_valid_config(self):
noterator = Noterator(
method=all_ava... | # -*- coding: utf-8 -*-
import unittest
from .utils import all_available_methods, get_config_path
from noterator import Noterator
from noterator.config import ConfigurationError
class TestConfigValidation(unittest.TestCase):
def test_valid_config(self):
noterator = Noterator(
method=all_ava... | <commit_before># -*- coding: utf-8 -*-
import unittest
from .utils import all_available_methods, get_config_path
from noterator import Noterator
from noterator.config import ConfigurationError
class TestConfigValidation(unittest.TestCase):
def test_valid_config(self):
noterator = Noterator(
... | # -*- coding: utf-8 -*-
import unittest
from .utils import all_available_methods, get_config_path
from noterator import Noterator
from noterator.config import ConfigurationError
class TestConfigValidation(unittest.TestCase):
def test_valid_config(self):
noterator = Noterator(
method=all_ava... | # -*- coding: utf-8 -*-
import unittest
from .utils import all_available_methods, get_config_path
from noterator import Noterator
from noterator.config import ConfigurationError
class TestConfigValidation(unittest.TestCase):
def test_valid_config(self):
noterator = Noterator(
method=all_ava... | <commit_before># -*- coding: utf-8 -*-
import unittest
from .utils import all_available_methods, get_config_path
from noterator import Noterator
from noterator.config import ConfigurationError
class TestConfigValidation(unittest.TestCase):
def test_valid_config(self):
noterator = Noterator(
... |
d5217075d20c9b707dba191f4e7efdc9f66dcfaa | am_workout_assistant.py | am_workout_assistant.py | #!/usr/bin/env python
from telegram import Telegram
from message_checker import MessageHandler
from data_updater import DataUpdater
# init telegram bot
bot = Telegram()
ok = bot.init()
if not ok:
print("ERROR (bot init): {}".format(bot.get_messages()))
exit(1)
# init message checker
msg_checker = MessageHandl... | #!/usr/bin/env python
from telegram import Telegram
from message_checker import MessageHandler
from data_updater import DataUpdater
# init telegram bot
bot = Telegram()
ok = bot.init()
if not ok:
print("ERROR (bot init): {}".format(bot.get_messages()))
exit(1)
# init message checker
msg_checker = MessageHandl... | Return summary for the day on success | Return summary for the day on success
This implements #2
| Python | mit | amaslenn/AMWorkoutAssist | #!/usr/bin/env python
from telegram import Telegram
from message_checker import MessageHandler
from data_updater import DataUpdater
# init telegram bot
bot = Telegram()
ok = bot.init()
if not ok:
print("ERROR (bot init): {}".format(bot.get_messages()))
exit(1)
# init message checker
msg_checker = MessageHandl... | #!/usr/bin/env python
from telegram import Telegram
from message_checker import MessageHandler
from data_updater import DataUpdater
# init telegram bot
bot = Telegram()
ok = bot.init()
if not ok:
print("ERROR (bot init): {}".format(bot.get_messages()))
exit(1)
# init message checker
msg_checker = MessageHandl... | <commit_before>#!/usr/bin/env python
from telegram import Telegram
from message_checker import MessageHandler
from data_updater import DataUpdater
# init telegram bot
bot = Telegram()
ok = bot.init()
if not ok:
print("ERROR (bot init): {}".format(bot.get_messages()))
exit(1)
# init message checker
msg_checker... | #!/usr/bin/env python
from telegram import Telegram
from message_checker import MessageHandler
from data_updater import DataUpdater
# init telegram bot
bot = Telegram()
ok = bot.init()
if not ok:
print("ERROR (bot init): {}".format(bot.get_messages()))
exit(1)
# init message checker
msg_checker = MessageHandl... | #!/usr/bin/env python
from telegram import Telegram
from message_checker import MessageHandler
from data_updater import DataUpdater
# init telegram bot
bot = Telegram()
ok = bot.init()
if not ok:
print("ERROR (bot init): {}".format(bot.get_messages()))
exit(1)
# init message checker
msg_checker = MessageHandl... | <commit_before>#!/usr/bin/env python
from telegram import Telegram
from message_checker import MessageHandler
from data_updater import DataUpdater
# init telegram bot
bot = Telegram()
ok = bot.init()
if not ok:
print("ERROR (bot init): {}".format(bot.get_messages()))
exit(1)
# init message checker
msg_checker... |
e9387e0f0bf7e0fc7e656ebc1a181a3667718a56 | lc0118_pascal_triangle.py | lc0118_pascal_triangle.py | """Leetcode 118. Pascal's Triangle
Easy
URL: https://leetcode.com/problems/pascals-triangle/
Given a non-negative integer numRows, generate the first numRows of
Pascal's triangle.
In Pascal's triangle, each number is the sum of the two numbers directly
above it.
Example:
Input: 5
Output:
[
[1],
[1,1],
... | """Leetcode 118. Pascal's Triangle
Easy
URL: https://leetcode.com/problems/pascals-triangle/
Given a non-negative integer numRows, generate the first numRows of
Pascal's triangle.
In Pascal's triangle, each number is the sum of the two numbers directly
above it.
Example:
Input: 5
Output:
[
[1],
[1,1],
... | Add comments & revise space complexity | Add comments & revise space complexity
| Python | bsd-2-clause | bowen0701/algorithms_data_structures | """Leetcode 118. Pascal's Triangle
Easy
URL: https://leetcode.com/problems/pascals-triangle/
Given a non-negative integer numRows, generate the first numRows of
Pascal's triangle.
In Pascal's triangle, each number is the sum of the two numbers directly
above it.
Example:
Input: 5
Output:
[
[1],
[1,1],
... | """Leetcode 118. Pascal's Triangle
Easy
URL: https://leetcode.com/problems/pascals-triangle/
Given a non-negative integer numRows, generate the first numRows of
Pascal's triangle.
In Pascal's triangle, each number is the sum of the two numbers directly
above it.
Example:
Input: 5
Output:
[
[1],
[1,1],
... | <commit_before>"""Leetcode 118. Pascal's Triangle
Easy
URL: https://leetcode.com/problems/pascals-triangle/
Given a non-negative integer numRows, generate the first numRows of
Pascal's triangle.
In Pascal's triangle, each number is the sum of the two numbers directly
above it.
Example:
Input: 5
Output:
[
[1]... | """Leetcode 118. Pascal's Triangle
Easy
URL: https://leetcode.com/problems/pascals-triangle/
Given a non-negative integer numRows, generate the first numRows of
Pascal's triangle.
In Pascal's triangle, each number is the sum of the two numbers directly
above it.
Example:
Input: 5
Output:
[
[1],
[1,1],
... | """Leetcode 118. Pascal's Triangle
Easy
URL: https://leetcode.com/problems/pascals-triangle/
Given a non-negative integer numRows, generate the first numRows of
Pascal's triangle.
In Pascal's triangle, each number is the sum of the two numbers directly
above it.
Example:
Input: 5
Output:
[
[1],
[1,1],
... | <commit_before>"""Leetcode 118. Pascal's Triangle
Easy
URL: https://leetcode.com/problems/pascals-triangle/
Given a non-negative integer numRows, generate the first numRows of
Pascal's triangle.
In Pascal's triangle, each number is the sum of the two numbers directly
above it.
Example:
Input: 5
Output:
[
[1]... |
4c7e4e629d154424acf5590a3c65c7e4d30c5aff | tests/test_person.py | tests/test_person.py | from unittest import TestCase
class PersonTestCase(TestCase):
def test_get_groups(self):
pass | from unittest import TestCase
from address_book import Person
class PersonTestCase(TestCase):
def test_get_groups(self):
pass
def test_add_address(self):
basic_address = ['Russian Federation, Kemerovo region, Kemerovo, Kirova street 23, apt. 42'],
person = Person(
'John'... | Test the ability to add some address to the person | Test the ability to add some address to the person
| Python | mit | dizpers/python-address-book-assignment | from unittest import TestCase
class PersonTestCase(TestCase):
def test_get_groups(self):
passTest the ability to add some address to the person | from unittest import TestCase
from address_book import Person
class PersonTestCase(TestCase):
def test_get_groups(self):
pass
def test_add_address(self):
basic_address = ['Russian Federation, Kemerovo region, Kemerovo, Kirova street 23, apt. 42'],
person = Person(
'John'... | <commit_before>from unittest import TestCase
class PersonTestCase(TestCase):
def test_get_groups(self):
pass<commit_msg>Test the ability to add some address to the person<commit_after> | from unittest import TestCase
from address_book import Person
class PersonTestCase(TestCase):
def test_get_groups(self):
pass
def test_add_address(self):
basic_address = ['Russian Federation, Kemerovo region, Kemerovo, Kirova street 23, apt. 42'],
person = Person(
'John'... | from unittest import TestCase
class PersonTestCase(TestCase):
def test_get_groups(self):
passTest the ability to add some address to the personfrom unittest import TestCase
from address_book import Person
class PersonTestCase(TestCase):
def test_get_groups(self):
pass
def test_add_ad... | <commit_before>from unittest import TestCase
class PersonTestCase(TestCase):
def test_get_groups(self):
pass<commit_msg>Test the ability to add some address to the person<commit_after>from unittest import TestCase
from address_book import Person
class PersonTestCase(TestCase):
def test_get_groups... |
3f06897115896c9aff2ee15d2cf6214809390199 | moviealert/forms.py | moviealert/forms.py | from django import forms
from django.conf import settings
from moviealert.base.widgets import CalendarWidget
from .models import TaskList, RegionData
class MovieForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(MovieForm, self).__init__(*args, **kwargs)
self.fields['movie_date'] =... | from django import forms
from django.conf import settings
from moviealert.base.widgets import CalendarWidget
from .models import TaskList, RegionData
class MovieForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(MovieForm, self).__init__(*args, **kwargs)
self.fields['movie_date'] =... | Disable entry of cities outside of database. | Disable entry of cities outside of database.
Add a try-except to prevent entry of city name which is not in the database. | Python | mit | iAmMrinal0/django_moviealert,iAmMrinal0/django_moviealert,iAmMrinal0/django_moviealert | from django import forms
from django.conf import settings
from moviealert.base.widgets import CalendarWidget
from .models import TaskList, RegionData
class MovieForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(MovieForm, self).__init__(*args, **kwargs)
self.fields['movie_date'] =... | from django import forms
from django.conf import settings
from moviealert.base.widgets import CalendarWidget
from .models import TaskList, RegionData
class MovieForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(MovieForm, self).__init__(*args, **kwargs)
self.fields['movie_date'] =... | <commit_before>from django import forms
from django.conf import settings
from moviealert.base.widgets import CalendarWidget
from .models import TaskList, RegionData
class MovieForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(MovieForm, self).__init__(*args, **kwargs)
self.fields[... | from django import forms
from django.conf import settings
from moviealert.base.widgets import CalendarWidget
from .models import TaskList, RegionData
class MovieForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(MovieForm, self).__init__(*args, **kwargs)
self.fields['movie_date'] =... | from django import forms
from django.conf import settings
from moviealert.base.widgets import CalendarWidget
from .models import TaskList, RegionData
class MovieForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(MovieForm, self).__init__(*args, **kwargs)
self.fields['movie_date'] =... | <commit_before>from django import forms
from django.conf import settings
from moviealert.base.widgets import CalendarWidget
from .models import TaskList, RegionData
class MovieForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(MovieForm, self).__init__(*args, **kwargs)
self.fields[... |
802bc77aebd888aed033577847343259a1928cef | timeside/__init__.py | timeside/__init__.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from . import api
from . import core
from . import decoder
from . import analyzer
from . import grapher
from . import encoder
__version__ = '0.5.5'
__all__ = ['api', 'core', 'decoder', 'analyzer', 'grapher', 'encoder']
def _discover_modules():
impo... | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from . import api
from . import core
from . import decoder
from . import analyzer
from . import grapher
from . import encoder
__version__ = '0.5.5'
__all__ = ['api', 'core', 'decoder', 'analyzer', 'grapher', 'encoder']
def _discover_modules():
impo... | Fix importError for Yaafe and Aubio | Fix importError for Yaafe and Aubio
| Python | agpl-3.0 | Parisson/TimeSide,Parisson/TimeSide,Parisson/TimeSide,Parisson/TimeSide,Parisson/TimeSide | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from . import api
from . import core
from . import decoder
from . import analyzer
from . import grapher
from . import encoder
__version__ = '0.5.5'
__all__ = ['api', 'core', 'decoder', 'analyzer', 'grapher', 'encoder']
def _discover_modules():
impo... | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from . import api
from . import core
from . import decoder
from . import analyzer
from . import grapher
from . import encoder
__version__ = '0.5.5'
__all__ = ['api', 'core', 'decoder', 'analyzer', 'grapher', 'encoder']
def _discover_modules():
impo... | <commit_before># -*- coding: utf-8 -*-
from __future__ import absolute_import
from . import api
from . import core
from . import decoder
from . import analyzer
from . import grapher
from . import encoder
__version__ = '0.5.5'
__all__ = ['api', 'core', 'decoder', 'analyzer', 'grapher', 'encoder']
def _discover_modu... | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from . import api
from . import core
from . import decoder
from . import analyzer
from . import grapher
from . import encoder
__version__ = '0.5.5'
__all__ = ['api', 'core', 'decoder', 'analyzer', 'grapher', 'encoder']
def _discover_modules():
impo... | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from . import api
from . import core
from . import decoder
from . import analyzer
from . import grapher
from . import encoder
__version__ = '0.5.5'
__all__ = ['api', 'core', 'decoder', 'analyzer', 'grapher', 'encoder']
def _discover_modules():
impo... | <commit_before># -*- coding: utf-8 -*-
from __future__ import absolute_import
from . import api
from . import core
from . import decoder
from . import analyzer
from . import grapher
from . import encoder
__version__ = '0.5.5'
__all__ = ['api', 'core', 'decoder', 'analyzer', 'grapher', 'encoder']
def _discover_modu... |
a5f4700349f19d50d0fbf25bab9c927f2e1b477a | examples/build.py | examples/build.py | #!/usr/bin/python
from fabricate import *
programs = ['create', 'read', 'update', 'delete', 'filter', 'nearest']
def build():
for program in programs:
sources = [program, 'clustergis']
compile(sources)
link(sources, program)
def compile(sources):
for source in sources:
run('mpicc -Wall -O3 `geos-config --... | #!/usr/bin/python
from fabricate import *
programs = ['create', 'read', 'update', 'delete', 'filter', 'nearest']
def build():
for program in programs:
sources = [program, '../src/clustergis']
compile(sources)
link(sources, program)
def compile(sources):
for source in sources:
run('mpicc -Wall -O3 -I../src... | Build script for examples now works | Build script for examples now works
| Python | mit | nathankerr/clusterGIS,nathankerr/clusterGIS | #!/usr/bin/python
from fabricate import *
programs = ['create', 'read', 'update', 'delete', 'filter', 'nearest']
def build():
for program in programs:
sources = [program, 'clustergis']
compile(sources)
link(sources, program)
def compile(sources):
for source in sources:
run('mpicc -Wall -O3 `geos-config --... | #!/usr/bin/python
from fabricate import *
programs = ['create', 'read', 'update', 'delete', 'filter', 'nearest']
def build():
for program in programs:
sources = [program, '../src/clustergis']
compile(sources)
link(sources, program)
def compile(sources):
for source in sources:
run('mpicc -Wall -O3 -I../src... | <commit_before>#!/usr/bin/python
from fabricate import *
programs = ['create', 'read', 'update', 'delete', 'filter', 'nearest']
def build():
for program in programs:
sources = [program, 'clustergis']
compile(sources)
link(sources, program)
def compile(sources):
for source in sources:
run('mpicc -Wall -O3 ... | #!/usr/bin/python
from fabricate import *
programs = ['create', 'read', 'update', 'delete', 'filter', 'nearest']
def build():
for program in programs:
sources = [program, '../src/clustergis']
compile(sources)
link(sources, program)
def compile(sources):
for source in sources:
run('mpicc -Wall -O3 -I../src... | #!/usr/bin/python
from fabricate import *
programs = ['create', 'read', 'update', 'delete', 'filter', 'nearest']
def build():
for program in programs:
sources = [program, 'clustergis']
compile(sources)
link(sources, program)
def compile(sources):
for source in sources:
run('mpicc -Wall -O3 `geos-config --... | <commit_before>#!/usr/bin/python
from fabricate import *
programs = ['create', 'read', 'update', 'delete', 'filter', 'nearest']
def build():
for program in programs:
sources = [program, 'clustergis']
compile(sources)
link(sources, program)
def compile(sources):
for source in sources:
run('mpicc -Wall -O3 ... |
bd2c87809d98fe89064bd7e8c7cc69c567095d00 | taipan/objective/__init__.py | taipan/objective/__init__.py | """
Object-oriented programming utilities.
"""
import inspect
from taipan._compat import IS_PY26, IS_PY3
from taipan.functional import ensure_callable
from taipan.strings import is_string
__all__ = ['is_internal', 'is_magic']
def is_internal(member):
"""Checks whether given class/instance member, or its name, ... | """
Object-oriented programming utilities.
"""
import inspect
from taipan.functional import ensure_callable
from taipan.strings import is_string
__all__ = ['is_internal', 'is_magic']
def is_internal(member):
"""Checks whether given class/instance member, or its name, is internal."""
name = _get_member_name... | Fix a bug in .objective utility function | Fix a bug in .objective utility function
| Python | bsd-2-clause | Xion/taipan | """
Object-oriented programming utilities.
"""
import inspect
from taipan._compat import IS_PY26, IS_PY3
from taipan.functional import ensure_callable
from taipan.strings import is_string
__all__ = ['is_internal', 'is_magic']
def is_internal(member):
"""Checks whether given class/instance member, or its name, ... | """
Object-oriented programming utilities.
"""
import inspect
from taipan.functional import ensure_callable
from taipan.strings import is_string
__all__ = ['is_internal', 'is_magic']
def is_internal(member):
"""Checks whether given class/instance member, or its name, is internal."""
name = _get_member_name... | <commit_before>"""
Object-oriented programming utilities.
"""
import inspect
from taipan._compat import IS_PY26, IS_PY3
from taipan.functional import ensure_callable
from taipan.strings import is_string
__all__ = ['is_internal', 'is_magic']
def is_internal(member):
"""Checks whether given class/instance member... | """
Object-oriented programming utilities.
"""
import inspect
from taipan.functional import ensure_callable
from taipan.strings import is_string
__all__ = ['is_internal', 'is_magic']
def is_internal(member):
"""Checks whether given class/instance member, or its name, is internal."""
name = _get_member_name... | """
Object-oriented programming utilities.
"""
import inspect
from taipan._compat import IS_PY26, IS_PY3
from taipan.functional import ensure_callable
from taipan.strings import is_string
__all__ = ['is_internal', 'is_magic']
def is_internal(member):
"""Checks whether given class/instance member, or its name, ... | <commit_before>"""
Object-oriented programming utilities.
"""
import inspect
from taipan._compat import IS_PY26, IS_PY3
from taipan.functional import ensure_callable
from taipan.strings import is_string
__all__ = ['is_internal', 'is_magic']
def is_internal(member):
"""Checks whether given class/instance member... |
d74c82d31071d80c5433fce0ebc46a1145b00d7e | bin/burgers.py | bin/burgers.py | from wenohj.solver import Solver
import numpy as np
import matplotlib.pyplot as plt
def get_alpha(x, t, u, u_x_plus, u_x_minus):
max = np.zeros_like(x)
for i in range(len(x)):
if np.abs(u_x_plus[i] + 1.0) > np.abs(u_x_minus[i] + 1.0):
max[i] = np.abs(u_x_plus[i] + 1.0)
else:
... | from wenohj.solver import Solver
import numpy as np
import matplotlib.pyplot as plt
def get_alpha(x, t, u, u_x_plus, u_x_minus):
f1 = np.abs(u_x_plus + 1.0)
f2 = np.abs(u_x_minus + 1.0)
return np.maximum(f1, f2)
def flux(x, t, u, u_x):
return (u_x + 1)**2 / 2.0
lb = -1.0
rb = 1.0
ncells = 320
T = ... | Refactor get_alpha() to make it faster | Refactor get_alpha() to make it faster
Computations of alpha using for loop are very slow. I switch to usage
of element-wise numpy functions to make get_alpha() function faster.
| Python | bsd-3-clause | kabanovdmitry/weno-hamilton-jacobi,dmitry-kabanov/weno-hamilton-jacobi | from wenohj.solver import Solver
import numpy as np
import matplotlib.pyplot as plt
def get_alpha(x, t, u, u_x_plus, u_x_minus):
max = np.zeros_like(x)
for i in range(len(x)):
if np.abs(u_x_plus[i] + 1.0) > np.abs(u_x_minus[i] + 1.0):
max[i] = np.abs(u_x_plus[i] + 1.0)
else:
... | from wenohj.solver import Solver
import numpy as np
import matplotlib.pyplot as plt
def get_alpha(x, t, u, u_x_plus, u_x_minus):
f1 = np.abs(u_x_plus + 1.0)
f2 = np.abs(u_x_minus + 1.0)
return np.maximum(f1, f2)
def flux(x, t, u, u_x):
return (u_x + 1)**2 / 2.0
lb = -1.0
rb = 1.0
ncells = 320
T = ... | <commit_before>from wenohj.solver import Solver
import numpy as np
import matplotlib.pyplot as plt
def get_alpha(x, t, u, u_x_plus, u_x_minus):
max = np.zeros_like(x)
for i in range(len(x)):
if np.abs(u_x_plus[i] + 1.0) > np.abs(u_x_minus[i] + 1.0):
max[i] = np.abs(u_x_plus[i] + 1.0)
... | from wenohj.solver import Solver
import numpy as np
import matplotlib.pyplot as plt
def get_alpha(x, t, u, u_x_plus, u_x_minus):
f1 = np.abs(u_x_plus + 1.0)
f2 = np.abs(u_x_minus + 1.0)
return np.maximum(f1, f2)
def flux(x, t, u, u_x):
return (u_x + 1)**2 / 2.0
lb = -1.0
rb = 1.0
ncells = 320
T = ... | from wenohj.solver import Solver
import numpy as np
import matplotlib.pyplot as plt
def get_alpha(x, t, u, u_x_plus, u_x_minus):
max = np.zeros_like(x)
for i in range(len(x)):
if np.abs(u_x_plus[i] + 1.0) > np.abs(u_x_minus[i] + 1.0):
max[i] = np.abs(u_x_plus[i] + 1.0)
else:
... | <commit_before>from wenohj.solver import Solver
import numpy as np
import matplotlib.pyplot as plt
def get_alpha(x, t, u, u_x_plus, u_x_minus):
max = np.zeros_like(x)
for i in range(len(x)):
if np.abs(u_x_plus[i] + 1.0) > np.abs(u_x_minus[i] + 1.0):
max[i] = np.abs(u_x_plus[i] + 1.0)
... |
0e20a568ae10982f4886b546553c1caa41042faa | picoCTF-shell/shell_manager/problem_repo.py | picoCTF-shell/shell_manager/problem_repo.py | """
Problem repository management for the shell manager.
"""
import spur, gzip
from shutil import copy2
from os.path import join
def local_update(repo_path, deb_paths=[]):
"""
Updates a local deb repository by copying debs and running scanpackages.
Args:
repo_path: the path to the local reposito... | """
Problem repository management for the shell manager.
"""
import spur, gzip
from shutil import copy2
from os.path import join
def update_repo(args):
"""
Main entrypoint for repo update operations.
"""
if args.repo_type == "local":
local_update(args.repository, args.package_paths)
else... | Update repo entrypoint and remote_update stub. | Update repo entrypoint and remote_update stub.
| Python | mit | royragsdale/picoCTF,picoCTF/picoCTF,royragsdale/picoCTF,royragsdale/picoCTF,picoCTF/picoCTF,royragsdale/picoCTF,royragsdale/picoCTF,picoCTF/picoCTF,royragsdale/picoCTF,picoCTF/picoCTF,royragsdale/picoCTF,picoCTF/picoCTF,picoCTF/picoCTF | """
Problem repository management for the shell manager.
"""
import spur, gzip
from shutil import copy2
from os.path import join
def local_update(repo_path, deb_paths=[]):
"""
Updates a local deb repository by copying debs and running scanpackages.
Args:
repo_path: the path to the local reposito... | """
Problem repository management for the shell manager.
"""
import spur, gzip
from shutil import copy2
from os.path import join
def update_repo(args):
"""
Main entrypoint for repo update operations.
"""
if args.repo_type == "local":
local_update(args.repository, args.package_paths)
else... | <commit_before>"""
Problem repository management for the shell manager.
"""
import spur, gzip
from shutil import copy2
from os.path import join
def local_update(repo_path, deb_paths=[]):
"""
Updates a local deb repository by copying debs and running scanpackages.
Args:
repo_path: the path to the... | """
Problem repository management for the shell manager.
"""
import spur, gzip
from shutil import copy2
from os.path import join
def update_repo(args):
"""
Main entrypoint for repo update operations.
"""
if args.repo_type == "local":
local_update(args.repository, args.package_paths)
else... | """
Problem repository management for the shell manager.
"""
import spur, gzip
from shutil import copy2
from os.path import join
def local_update(repo_path, deb_paths=[]):
"""
Updates a local deb repository by copying debs and running scanpackages.
Args:
repo_path: the path to the local reposito... | <commit_before>"""
Problem repository management for the shell manager.
"""
import spur, gzip
from shutil import copy2
from os.path import join
def local_update(repo_path, deb_paths=[]):
"""
Updates a local deb repository by copying debs and running scanpackages.
Args:
repo_path: the path to the... |
7daed119551dfc259a0eda0224ac2a6b701c5c14 | app/main/services/process_request_json.py | app/main/services/process_request_json.py | import six
from .query_builder import FILTER_FIELDS, TEXT_FIELDS
from .conversions import strip_and_lowercase
def process_values_for_matching(request_json, key):
values = request_json[key]
if isinstance(values, list):
return [strip_and_lowercase(value) for value in values]
elif isinstance(values... | import six
from .query_builder import FILTER_FIELDS, TEXT_FIELDS
from .conversions import strip_and_lowercase
FILTER_FIELDS_SET = set(FILTER_FIELDS)
TEXT_FIELDS_SET = set(TEXT_FIELDS)
def process_values_for_matching(values):
if isinstance(values, list):
return [strip_and_lowercase(value) for value in va... | Drop any unknown request fields when converting into index document | Drop any unknown request fields when converting into index document
Previously, convert_request_json_into_index_json relied on the request
being sent through the dmutils.apiclient, which dropped any fields that
aren't supposed to be indexed. This means that dmutils contains a copy
of the filter and text fields lists.
... | Python | mit | RichardKnop/digitalmarketplace-search-api,alphagov/digitalmarketplace-search-api,RichardKnop/digitalmarketplace-search-api,alphagov/digitalmarketplace-search-api,RichardKnop/digitalmarketplace-search-api,RichardKnop/digitalmarketplace-search-api | import six
from .query_builder import FILTER_FIELDS, TEXT_FIELDS
from .conversions import strip_and_lowercase
def process_values_for_matching(request_json, key):
values = request_json[key]
if isinstance(values, list):
return [strip_and_lowercase(value) for value in values]
elif isinstance(values... | import six
from .query_builder import FILTER_FIELDS, TEXT_FIELDS
from .conversions import strip_and_lowercase
FILTER_FIELDS_SET = set(FILTER_FIELDS)
TEXT_FIELDS_SET = set(TEXT_FIELDS)
def process_values_for_matching(values):
if isinstance(values, list):
return [strip_and_lowercase(value) for value in va... | <commit_before>import six
from .query_builder import FILTER_FIELDS, TEXT_FIELDS
from .conversions import strip_and_lowercase
def process_values_for_matching(request_json, key):
values = request_json[key]
if isinstance(values, list):
return [strip_and_lowercase(value) for value in values]
elif is... | import six
from .query_builder import FILTER_FIELDS, TEXT_FIELDS
from .conversions import strip_and_lowercase
FILTER_FIELDS_SET = set(FILTER_FIELDS)
TEXT_FIELDS_SET = set(TEXT_FIELDS)
def process_values_for_matching(values):
if isinstance(values, list):
return [strip_and_lowercase(value) for value in va... | import six
from .query_builder import FILTER_FIELDS, TEXT_FIELDS
from .conversions import strip_and_lowercase
def process_values_for_matching(request_json, key):
values = request_json[key]
if isinstance(values, list):
return [strip_and_lowercase(value) for value in values]
elif isinstance(values... | <commit_before>import six
from .query_builder import FILTER_FIELDS, TEXT_FIELDS
from .conversions import strip_and_lowercase
def process_values_for_matching(request_json, key):
values = request_json[key]
if isinstance(values, list):
return [strip_and_lowercase(value) for value in values]
elif is... |
1f6bec9df04e2717a347796080ed6bfcc9638f25 | qipipe/staging/sarcoma_config.py | qipipe/staging/sarcoma_config.py | import os
import ConfigParser
_CFG_FILE = os.path.join(os.path.dirname(__file__), '..', '..', 'conf', 'sarcoma.cfg')
_CONFIG = ConfigParser()
_CONFIG.read(_CFG_FILE)
def sarcoma_location(pt_id):
return _CONFIG.get('Tumor Location', pt_id)
| import os
import io
from ConfigParser import ConfigParser as Config
_CFG_FILE = os.path.join(os.path.dirname(__file__), '..', '..', 'conf', 'sarcoma.cfg')
def sarcoma_location(pt_id):
return sarcoma_config().get('Tumor Location', pt_id)
def sarcoma_config():
if not hasattr(sarcoma_config, 'instance'):
... | Move the singleton to a method attribute. | Move the singleton to a method attribute.
| Python | bsd-2-clause | ohsu-qin/qipipe | import os
import ConfigParser
_CFG_FILE = os.path.join(os.path.dirname(__file__), '..', '..', 'conf', 'sarcoma.cfg')
_CONFIG = ConfigParser()
_CONFIG.read(_CFG_FILE)
def sarcoma_location(pt_id):
return _CONFIG.get('Tumor Location', pt_id)
Move the singleton to a method attribute. | import os
import io
from ConfigParser import ConfigParser as Config
_CFG_FILE = os.path.join(os.path.dirname(__file__), '..', '..', 'conf', 'sarcoma.cfg')
def sarcoma_location(pt_id):
return sarcoma_config().get('Tumor Location', pt_id)
def sarcoma_config():
if not hasattr(sarcoma_config, 'instance'):
... | <commit_before>import os
import ConfigParser
_CFG_FILE = os.path.join(os.path.dirname(__file__), '..', '..', 'conf', 'sarcoma.cfg')
_CONFIG = ConfigParser()
_CONFIG.read(_CFG_FILE)
def sarcoma_location(pt_id):
return _CONFIG.get('Tumor Location', pt_id)
<commit_msg>Move the singleton to a method attribute.<commit... | import os
import io
from ConfigParser import ConfigParser as Config
_CFG_FILE = os.path.join(os.path.dirname(__file__), '..', '..', 'conf', 'sarcoma.cfg')
def sarcoma_location(pt_id):
return sarcoma_config().get('Tumor Location', pt_id)
def sarcoma_config():
if not hasattr(sarcoma_config, 'instance'):
... | import os
import ConfigParser
_CFG_FILE = os.path.join(os.path.dirname(__file__), '..', '..', 'conf', 'sarcoma.cfg')
_CONFIG = ConfigParser()
_CONFIG.read(_CFG_FILE)
def sarcoma_location(pt_id):
return _CONFIG.get('Tumor Location', pt_id)
Move the singleton to a method attribute.import os
import io
from ConfigPar... | <commit_before>import os
import ConfigParser
_CFG_FILE = os.path.join(os.path.dirname(__file__), '..', '..', 'conf', 'sarcoma.cfg')
_CONFIG = ConfigParser()
_CONFIG.read(_CFG_FILE)
def sarcoma_location(pt_id):
return _CONFIG.get('Tumor Location', pt_id)
<commit_msg>Move the singleton to a method attribute.<commit... |
266aadbde72c6d9fa9f26a5060f9aa6e86184015 | app/timetables/admin.py | app/timetables/admin.py | from django.contrib import admin
from .models import *
admin.site.register(Weekday)
admin.site.register(Meal)
admin.site.register(MealOption)
admin.site.register(Course)
admin.site.register(Timetable)
admin.site.register(Dish)
admin.site.register(Admin)
| from django.contrib import admin
from . import models
admin.site.register(models.Weekday)
admin.site.register(models.Meal)
admin.site.register(models.MealOption)
admin.site.register(models.Course)
admin.site.register(models.Timetable)
admin.site.register(models.Dish)
admin.site.register(models.Admin)
| Change module import to pass flake8 tests | Change module import to pass flake8 tests
| Python | mit | teamtaverna/core | from django.contrib import admin
from .models import *
admin.site.register(Weekday)
admin.site.register(Meal)
admin.site.register(MealOption)
admin.site.register(Course)
admin.site.register(Timetable)
admin.site.register(Dish)
admin.site.register(Admin)
Change module import to pass flake8 tests | from django.contrib import admin
from . import models
admin.site.register(models.Weekday)
admin.site.register(models.Meal)
admin.site.register(models.MealOption)
admin.site.register(models.Course)
admin.site.register(models.Timetable)
admin.site.register(models.Dish)
admin.site.register(models.Admin)
| <commit_before>from django.contrib import admin
from .models import *
admin.site.register(Weekday)
admin.site.register(Meal)
admin.site.register(MealOption)
admin.site.register(Course)
admin.site.register(Timetable)
admin.site.register(Dish)
admin.site.register(Admin)
<commit_msg>Change module import to pass flake8 t... | from django.contrib import admin
from . import models
admin.site.register(models.Weekday)
admin.site.register(models.Meal)
admin.site.register(models.MealOption)
admin.site.register(models.Course)
admin.site.register(models.Timetable)
admin.site.register(models.Dish)
admin.site.register(models.Admin)
| from django.contrib import admin
from .models import *
admin.site.register(Weekday)
admin.site.register(Meal)
admin.site.register(MealOption)
admin.site.register(Course)
admin.site.register(Timetable)
admin.site.register(Dish)
admin.site.register(Admin)
Change module import to pass flake8 testsfrom django.contrib imp... | <commit_before>from django.contrib import admin
from .models import *
admin.site.register(Weekday)
admin.site.register(Meal)
admin.site.register(MealOption)
admin.site.register(Course)
admin.site.register(Timetable)
admin.site.register(Dish)
admin.site.register(Admin)
<commit_msg>Change module import to pass flake8 t... |
630c823706e28e66306828d6c3001b6e3773ce90 | ui/players/models.py | ui/players/models.py | from django.db import models
from django.contrib.auth.models import User
class Player(models.Model):
user = models.OneToOneField(User)
class Avatar(models.Model):
player = models.ForeignKey(User)
code = models.TextField() | from django.db import models
from django.contrib.auth.models import User
class Player(models.Model):
user = models.OneToOneField(User)
code = models.TextField()
class Avatar(models.Model):
player = models.ForeignKey(User)
| Move code into player (if only for now) | Move code into player (if only for now)
| Python | agpl-3.0 | Spycho/aimmo,Spycho/aimmo,Spycho/aimmo,Spycho/aimmo | from django.db import models
from django.contrib.auth.models import User
class Player(models.Model):
user = models.OneToOneField(User)
class Avatar(models.Model):
player = models.ForeignKey(User)
code = models.TextField()Move code into player (if only for now) | from django.db import models
from django.contrib.auth.models import User
class Player(models.Model):
user = models.OneToOneField(User)
code = models.TextField()
class Avatar(models.Model):
player = models.ForeignKey(User)
| <commit_before>from django.db import models
from django.contrib.auth.models import User
class Player(models.Model):
user = models.OneToOneField(User)
class Avatar(models.Model):
player = models.ForeignKey(User)
code = models.TextField()<commit_msg>Move code into player (if only for now)<commit_after> | from django.db import models
from django.contrib.auth.models import User
class Player(models.Model):
user = models.OneToOneField(User)
code = models.TextField()
class Avatar(models.Model):
player = models.ForeignKey(User)
| from django.db import models
from django.contrib.auth.models import User
class Player(models.Model):
user = models.OneToOneField(User)
class Avatar(models.Model):
player = models.ForeignKey(User)
code = models.TextField()Move code into player (if only for now)from django.db import models
from django.con... | <commit_before>from django.db import models
from django.contrib.auth.models import User
class Player(models.Model):
user = models.OneToOneField(User)
class Avatar(models.Model):
player = models.ForeignKey(User)
code = models.TextField()<commit_msg>Move code into player (if only for now)<commit_after>fro... |
ff75a1ad744d93052bd9b496ff0896fcbd76c75e | Doc/lib/email-mime.py | Doc/lib/email-mime.py | # Import smtplib for the actual sending function
import smtplib
# Here are the email pacakge modules we'll need
from email.MIMEImage import MIMEImage
from email.MIMEMultipart import MIMEMultipart
COMMASPACE = ', '
# Create the container (outer) email message.
msg = MIMEMultipart()
msg['Subject'] = 'Our family reunio... | # Import smtplib for the actual sending function
import smtplib
# Here are the email package modules we'll need
from email.MIMEImage import MIMEImage
from email.MIMEMultipart import MIMEMultipart
COMMASPACE = ', '
# Create the container (outer) email message.
msg = MIMEMultipart()
msg['Subject'] = 'Our family reunio... | Fix typo in comment (reported on the pydotorg mailing list). | Fix typo in comment
(reported on the pydotorg mailing list).
| Python | mit | sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator | # Import smtplib for the actual sending function
import smtplib
# Here are the email pacakge modules we'll need
from email.MIMEImage import MIMEImage
from email.MIMEMultipart import MIMEMultipart
COMMASPACE = ', '
# Create the container (outer) email message.
msg = MIMEMultipart()
msg['Subject'] = 'Our family reunio... | # Import smtplib for the actual sending function
import smtplib
# Here are the email package modules we'll need
from email.MIMEImage import MIMEImage
from email.MIMEMultipart import MIMEMultipart
COMMASPACE = ', '
# Create the container (outer) email message.
msg = MIMEMultipart()
msg['Subject'] = 'Our family reunio... | <commit_before># Import smtplib for the actual sending function
import smtplib
# Here are the email pacakge modules we'll need
from email.MIMEImage import MIMEImage
from email.MIMEMultipart import MIMEMultipart
COMMASPACE = ', '
# Create the container (outer) email message.
msg = MIMEMultipart()
msg['Subject'] = 'Ou... | # Import smtplib for the actual sending function
import smtplib
# Here are the email package modules we'll need
from email.MIMEImage import MIMEImage
from email.MIMEMultipart import MIMEMultipart
COMMASPACE = ', '
# Create the container (outer) email message.
msg = MIMEMultipart()
msg['Subject'] = 'Our family reunio... | # Import smtplib for the actual sending function
import smtplib
# Here are the email pacakge modules we'll need
from email.MIMEImage import MIMEImage
from email.MIMEMultipart import MIMEMultipart
COMMASPACE = ', '
# Create the container (outer) email message.
msg = MIMEMultipart()
msg['Subject'] = 'Our family reunio... | <commit_before># Import smtplib for the actual sending function
import smtplib
# Here are the email pacakge modules we'll need
from email.MIMEImage import MIMEImage
from email.MIMEMultipart import MIMEMultipart
COMMASPACE = ', '
# Create the container (outer) email message.
msg = MIMEMultipart()
msg['Subject'] = 'Ou... |
26dbfe6033eadfd3eb3df40387599e1a2c541296 | board.py | board.py | import numpy
"""
Board represents a four in a row game board.
Author: Isaac Arvestad
"""
class Board:
"""
Initializes the game with a certain number of rows
and columns.
"""
def __init__(self, rows, columns):
self.rows = rows
self.columns = columns
self.boardMatrix = numpy.... | import numpy
"""
Board represents a four in a row game board.
Author: Isaac Arvestad
"""
class Board:
"""
Initializes the game with a certain number of rows
and columns.
"""
def __init__(self, rows, columns):
self.rows = rows
self.columns = columns
self.boardMatrix = numpy.... | Fix bug of not stopping algorithm in time. | Fix bug of not stopping algorithm in time.
| Python | mit | isaacarvestad/four-in-a-row | import numpy
"""
Board represents a four in a row game board.
Author: Isaac Arvestad
"""
class Board:
"""
Initializes the game with a certain number of rows
and columns.
"""
def __init__(self, rows, columns):
self.rows = rows
self.columns = columns
self.boardMatrix = numpy.... | import numpy
"""
Board represents a four in a row game board.
Author: Isaac Arvestad
"""
class Board:
"""
Initializes the game with a certain number of rows
and columns.
"""
def __init__(self, rows, columns):
self.rows = rows
self.columns = columns
self.boardMatrix = numpy.... | <commit_before>import numpy
"""
Board represents a four in a row game board.
Author: Isaac Arvestad
"""
class Board:
"""
Initializes the game with a certain number of rows
and columns.
"""
def __init__(self, rows, columns):
self.rows = rows
self.columns = columns
self.board... | import numpy
"""
Board represents a four in a row game board.
Author: Isaac Arvestad
"""
class Board:
"""
Initializes the game with a certain number of rows
and columns.
"""
def __init__(self, rows, columns):
self.rows = rows
self.columns = columns
self.boardMatrix = numpy.... | import numpy
"""
Board represents a four in a row game board.
Author: Isaac Arvestad
"""
class Board:
"""
Initializes the game with a certain number of rows
and columns.
"""
def __init__(self, rows, columns):
self.rows = rows
self.columns = columns
self.boardMatrix = numpy.... | <commit_before>import numpy
"""
Board represents a four in a row game board.
Author: Isaac Arvestad
"""
class Board:
"""
Initializes the game with a certain number of rows
and columns.
"""
def __init__(self, rows, columns):
self.rows = rows
self.columns = columns
self.board... |
ad19f6b0ccfbbc01023349d43ffd85be2b26e847 | examples/prompts/multi-column-autocompletion.py | examples/prompts/multi-column-autocompletion.py | #!/usr/bin/env python
"""
Similar to the autocompletion example. But display all the completions in multiple columns.
"""
from __future__ import unicode_literals
from prompt_toolkit.contrib.completers import WordCompleter
from prompt_toolkit.shortcuts import prompt, CompleteStyle
animal_completer = WordCompleter([
... | #!/usr/bin/env python
"""
Similar to the autocompletion example. But display all the completions in multiple columns.
"""
from __future__ import unicode_literals
from prompt_toolkit.contrib.completers import WordCompleter
from prompt_toolkit.shortcuts import prompt, CompleteStyle
animal_completer = WordCompleter([
... | Fix typos: `dolphine` -> `dolphin`, `kangoroo` -> `kangaroo` | Fix typos: `dolphine` -> `dolphin`, `kangoroo` -> `kangaroo`
| Python | bsd-3-clause | jonathanslenders/python-prompt-toolkit | #!/usr/bin/env python
"""
Similar to the autocompletion example. But display all the completions in multiple columns.
"""
from __future__ import unicode_literals
from prompt_toolkit.contrib.completers import WordCompleter
from prompt_toolkit.shortcuts import prompt, CompleteStyle
animal_completer = WordCompleter([
... | #!/usr/bin/env python
"""
Similar to the autocompletion example. But display all the completions in multiple columns.
"""
from __future__ import unicode_literals
from prompt_toolkit.contrib.completers import WordCompleter
from prompt_toolkit.shortcuts import prompt, CompleteStyle
animal_completer = WordCompleter([
... | <commit_before>#!/usr/bin/env python
"""
Similar to the autocompletion example. But display all the completions in multiple columns.
"""
from __future__ import unicode_literals
from prompt_toolkit.contrib.completers import WordCompleter
from prompt_toolkit.shortcuts import prompt, CompleteStyle
animal_completer = Wo... | #!/usr/bin/env python
"""
Similar to the autocompletion example. But display all the completions in multiple columns.
"""
from __future__ import unicode_literals
from prompt_toolkit.contrib.completers import WordCompleter
from prompt_toolkit.shortcuts import prompt, CompleteStyle
animal_completer = WordCompleter([
... | #!/usr/bin/env python
"""
Similar to the autocompletion example. But display all the completions in multiple columns.
"""
from __future__ import unicode_literals
from prompt_toolkit.contrib.completers import WordCompleter
from prompt_toolkit.shortcuts import prompt, CompleteStyle
animal_completer = WordCompleter([
... | <commit_before>#!/usr/bin/env python
"""
Similar to the autocompletion example. But display all the completions in multiple columns.
"""
from __future__ import unicode_literals
from prompt_toolkit.contrib.completers import WordCompleter
from prompt_toolkit.shortcuts import prompt, CompleteStyle
animal_completer = Wo... |
fdcfe40cd388a6f53db22af44fcfa10d7901f490 | reviewboard/attachments/admin.py | reviewboard/attachments/admin.py | from django.contrib import admin
from django.utils.translation import ugettext_lazy as _
from reviewboard.attachments.models import FileAttachment
from reviewboard.reviews.models import FileAttachmentComment
class FileAttachmentAdmin(admin.ModelAdmin):
list_display = ('file', 'caption', 'mimetype',
... | from django.contrib import admin
from django.utils.translation import ugettext_lazy as _
from reviewboard.attachments.models import FileAttachment
from reviewboard.reviews.models import FileAttachmentComment
class FileAttachmentAdmin(admin.ModelAdmin):
list_display = ('file', 'caption', 'mimetype',
... | Fix another broken file attachment field. | Fix another broken file attachment field.
There was one more admin field for file attachments that was using an old
name. Now fixed.
| Python | mit | chazy/reviewboard,custode/reviewboard,sgallagher/reviewboard,beol/reviewboard,Khan/reviewboard,chipx86/reviewboard,1tush/reviewboard,sgallagher/reviewboard,brennie/reviewboard,davidt/reviewboard,Khan/reviewboard,atagar/ReviewBoard,Khan/reviewboard,reviewboard/reviewboard,chazy/reviewboard,1tush/reviewboard,custode/revi... | from django.contrib import admin
from django.utils.translation import ugettext_lazy as _
from reviewboard.attachments.models import FileAttachment
from reviewboard.reviews.models import FileAttachmentComment
class FileAttachmentAdmin(admin.ModelAdmin):
list_display = ('file', 'caption', 'mimetype',
... | from django.contrib import admin
from django.utils.translation import ugettext_lazy as _
from reviewboard.attachments.models import FileAttachment
from reviewboard.reviews.models import FileAttachmentComment
class FileAttachmentAdmin(admin.ModelAdmin):
list_display = ('file', 'caption', 'mimetype',
... | <commit_before>from django.contrib import admin
from django.utils.translation import ugettext_lazy as _
from reviewboard.attachments.models import FileAttachment
from reviewboard.reviews.models import FileAttachmentComment
class FileAttachmentAdmin(admin.ModelAdmin):
list_display = ('file', 'caption', 'mimetype'... | from django.contrib import admin
from django.utils.translation import ugettext_lazy as _
from reviewboard.attachments.models import FileAttachment
from reviewboard.reviews.models import FileAttachmentComment
class FileAttachmentAdmin(admin.ModelAdmin):
list_display = ('file', 'caption', 'mimetype',
... | from django.contrib import admin
from django.utils.translation import ugettext_lazy as _
from reviewboard.attachments.models import FileAttachment
from reviewboard.reviews.models import FileAttachmentComment
class FileAttachmentAdmin(admin.ModelAdmin):
list_display = ('file', 'caption', 'mimetype',
... | <commit_before>from django.contrib import admin
from django.utils.translation import ugettext_lazy as _
from reviewboard.attachments.models import FileAttachment
from reviewboard.reviews.models import FileAttachmentComment
class FileAttachmentAdmin(admin.ModelAdmin):
list_display = ('file', 'caption', 'mimetype'... |
018a5151939a96aa8a9f82e3562dc8c2691d2672 | src/app.py | src/app.py | '''
The main app
'''
from flask import Flask
app = Flask(__name__)
@app.route('/', methods=['GET', 'POST'])
def index():
return 'A work in progress, check back later'
@app.route('/add', methods=['POST'])
def add_reminder():
return 'Use this method to POST new reminders to the database'
@app.route('/show',... | '''
The main app
'''
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/', methods=['GET', 'POST'])
def index():
return 'A work in progress, check back later'
@app.route('/add', methods=['POST'])
def add_reminder():
return render_template('input.html')
@app.route('/show', methods=... | Return HTML templates using render_template | Return HTML templates using render_template
| Python | bsd-2-clause | ambidextrousTx/RPostIt | '''
The main app
'''
from flask import Flask
app = Flask(__name__)
@app.route('/', methods=['GET', 'POST'])
def index():
return 'A work in progress, check back later'
@app.route('/add', methods=['POST'])
def add_reminder():
return 'Use this method to POST new reminders to the database'
@app.route('/show',... | '''
The main app
'''
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/', methods=['GET', 'POST'])
def index():
return 'A work in progress, check back later'
@app.route('/add', methods=['POST'])
def add_reminder():
return render_template('input.html')
@app.route('/show', methods=... | <commit_before>'''
The main app
'''
from flask import Flask
app = Flask(__name__)
@app.route('/', methods=['GET', 'POST'])
def index():
return 'A work in progress, check back later'
@app.route('/add', methods=['POST'])
def add_reminder():
return 'Use this method to POST new reminders to the database'
@app... | '''
The main app
'''
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/', methods=['GET', 'POST'])
def index():
return 'A work in progress, check back later'
@app.route('/add', methods=['POST'])
def add_reminder():
return render_template('input.html')
@app.route('/show', methods=... | '''
The main app
'''
from flask import Flask
app = Flask(__name__)
@app.route('/', methods=['GET', 'POST'])
def index():
return 'A work in progress, check back later'
@app.route('/add', methods=['POST'])
def add_reminder():
return 'Use this method to POST new reminders to the database'
@app.route('/show',... | <commit_before>'''
The main app
'''
from flask import Flask
app = Flask(__name__)
@app.route('/', methods=['GET', 'POST'])
def index():
return 'A work in progress, check back later'
@app.route('/add', methods=['POST'])
def add_reminder():
return 'Use this method to POST new reminders to the database'
@app... |
1ff3b037dfa3be17e52fc013f3e33adac5b29578 | mriqc/__init__.py | mriqc/__init__.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
"""
The mriqc package provides a series of :abbr:`NR (no-reference)`,
:abbr:`IQMs (image quality metrics)` to used in :abbr:`QAPs (quality
assessment protocols)... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
"""
The mriqc package provides a series of :abbr:`NR (no-reference)`,
:abbr:`IQMs (image quality metrics)` to used in :abbr:`QAPs (quality
assessment protocols)... | Send logging output to stdout | [FIX] Send logging output to stdout
Fixes #557
| Python | apache-2.0 | oesteban/mriqc,poldracklab/mriqc,oesteban/mriqc,poldracklab/mriqc,oesteban/mriqc,poldracklab/mriqc,oesteban/mriqc,poldracklab/mriqc | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
"""
The mriqc package provides a series of :abbr:`NR (no-reference)`,
:abbr:`IQMs (image quality metrics)` to used in :abbr:`QAPs (quality
assessment protocols)... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
"""
The mriqc package provides a series of :abbr:`NR (no-reference)`,
:abbr:`IQMs (image quality metrics)` to used in :abbr:`QAPs (quality
assessment protocols)... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
"""
The mriqc package provides a series of :abbr:`NR (no-reference)`,
:abbr:`IQMs (image quality metrics)` to used in :abbr:`QAPs (quality
assess... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
"""
The mriqc package provides a series of :abbr:`NR (no-reference)`,
:abbr:`IQMs (image quality metrics)` to used in :abbr:`QAPs (quality
assessment protocols)... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
"""
The mriqc package provides a series of :abbr:`NR (no-reference)`,
:abbr:`IQMs (image quality metrics)` to used in :abbr:`QAPs (quality
assessment protocols)... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
"""
The mriqc package provides a series of :abbr:`NR (no-reference)`,
:abbr:`IQMs (image quality metrics)` to used in :abbr:`QAPs (quality
assess... |
aa86dfda0b92ac99c86053db7fb43bd8cecccc83 | kpi/interfaces/sync_backend_media.py | kpi/interfaces/sync_backend_media.py | # coding: utf-8
class SyncBackendMediaInterface:
"""
This interface defines required properties and methods
of objects passed to deployment back-end class on media synchronization.
"""
@property
def backend_data_value(self):
raise NotImplementedError('This property should be implement... | # coding: utf-8
from kpi.exceptions import AbstractMethodError, AbstractPropertyError
class SyncBackendMediaInterface:
"""
This interface defines required properties and methods
of objects passed to deployment back-end class on media synchronization.
"""
@property
def backend_data_value(self... | Use new exceptions: AbstractMethodError, AbstractPropertyError | Use new exceptions: AbstractMethodError, AbstractPropertyError
| Python | agpl-3.0 | kobotoolbox/kpi,kobotoolbox/kpi,kobotoolbox/kpi,kobotoolbox/kpi,kobotoolbox/kpi | # coding: utf-8
class SyncBackendMediaInterface:
"""
This interface defines required properties and methods
of objects passed to deployment back-end class on media synchronization.
"""
@property
def backend_data_value(self):
raise NotImplementedError('This property should be implement... | # coding: utf-8
from kpi.exceptions import AbstractMethodError, AbstractPropertyError
class SyncBackendMediaInterface:
"""
This interface defines required properties and methods
of objects passed to deployment back-end class on media synchronization.
"""
@property
def backend_data_value(self... | <commit_before># coding: utf-8
class SyncBackendMediaInterface:
"""
This interface defines required properties and methods
of objects passed to deployment back-end class on media synchronization.
"""
@property
def backend_data_value(self):
raise NotImplementedError('This property shou... | # coding: utf-8
from kpi.exceptions import AbstractMethodError, AbstractPropertyError
class SyncBackendMediaInterface:
"""
This interface defines required properties and methods
of objects passed to deployment back-end class on media synchronization.
"""
@property
def backend_data_value(self... | # coding: utf-8
class SyncBackendMediaInterface:
"""
This interface defines required properties and methods
of objects passed to deployment back-end class on media synchronization.
"""
@property
def backend_data_value(self):
raise NotImplementedError('This property should be implement... | <commit_before># coding: utf-8
class SyncBackendMediaInterface:
"""
This interface defines required properties and methods
of objects passed to deployment back-end class on media synchronization.
"""
@property
def backend_data_value(self):
raise NotImplementedError('This property shou... |
fbd168ae6a2b2733bec9ffa1eec4c56fbfdbc97b | modoboa/admin/migrations/0002_migrate_from_modoboa_admin.py | modoboa/admin/migrations/0002_migrate_from_modoboa_admin.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
def rename_and_clean(apps, schema_editor):
"""Rename old content types if necessary, remove permissions."""
ContentType = apps.get_model("contenttypes", "ContentType")
for ct in ContentType.objects.fi... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
def rename_and_clean(apps, schema_editor):
"""Rename old content types if necessary, remove permissions."""
ContentType = apps.get_model("contenttypes", "ContentType")
for ct in ContentType.objects.fi... | Handle the fresh install case. | Handle the fresh install case.
| Python | isc | modoboa/modoboa,bearstech/modoboa,carragom/modoboa,carragom/modoboa,tonioo/modoboa,bearstech/modoboa,bearstech/modoboa,bearstech/modoboa,tonioo/modoboa,carragom/modoboa,modoboa/modoboa,tonioo/modoboa,modoboa/modoboa,modoboa/modoboa | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
def rename_and_clean(apps, schema_editor):
"""Rename old content types if necessary, remove permissions."""
ContentType = apps.get_model("contenttypes", "ContentType")
for ct in ContentType.objects.fi... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
def rename_and_clean(apps, schema_editor):
"""Rename old content types if necessary, remove permissions."""
ContentType = apps.get_model("contenttypes", "ContentType")
for ct in ContentType.objects.fi... | <commit_before># -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
def rename_and_clean(apps, schema_editor):
"""Rename old content types if necessary, remove permissions."""
ContentType = apps.get_model("contenttypes", "ContentType")
for ct in Content... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
def rename_and_clean(apps, schema_editor):
"""Rename old content types if necessary, remove permissions."""
ContentType = apps.get_model("contenttypes", "ContentType")
for ct in ContentType.objects.fi... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
def rename_and_clean(apps, schema_editor):
"""Rename old content types if necessary, remove permissions."""
ContentType = apps.get_model("contenttypes", "ContentType")
for ct in ContentType.objects.fi... | <commit_before># -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
def rename_and_clean(apps, schema_editor):
"""Rename old content types if necessary, remove permissions."""
ContentType = apps.get_model("contenttypes", "ContentType")
for ct in Content... |
a9711705a8c122bf7e7f1edbf9b640c3be5f8510 | integration-test/552-water-boundary-sort-key.py | integration-test/552-water-boundary-sort-key.py | # from https://github.com/mapzen/vector-datasource/issues/552
assert_has_feature(
19, 83900, 202617, "water",
{"kind": "ocean", "boundary": True, "sort_rank": 205})
| # from https://github.com/mapzen/vector-datasource/issues/552
assert_has_feature(
16, 10487, 25327, "water",
{"kind": "ocean", "boundary": True, "sort_rank": 205})
| Update water boundary sort key test zooms | Update water boundary sort key test zooms
| Python | mit | mapzen/vector-datasource,mapzen/vector-datasource,mapzen/vector-datasource | # from https://github.com/mapzen/vector-datasource/issues/552
assert_has_feature(
19, 83900, 202617, "water",
{"kind": "ocean", "boundary": True, "sort_rank": 205})
Update water boundary sort key test zooms | # from https://github.com/mapzen/vector-datasource/issues/552
assert_has_feature(
16, 10487, 25327, "water",
{"kind": "ocean", "boundary": True, "sort_rank": 205})
| <commit_before># from https://github.com/mapzen/vector-datasource/issues/552
assert_has_feature(
19, 83900, 202617, "water",
{"kind": "ocean", "boundary": True, "sort_rank": 205})
<commit_msg>Update water boundary sort key test zooms<commit_after> | # from https://github.com/mapzen/vector-datasource/issues/552
assert_has_feature(
16, 10487, 25327, "water",
{"kind": "ocean", "boundary": True, "sort_rank": 205})
| # from https://github.com/mapzen/vector-datasource/issues/552
assert_has_feature(
19, 83900, 202617, "water",
{"kind": "ocean", "boundary": True, "sort_rank": 205})
Update water boundary sort key test zooms# from https://github.com/mapzen/vector-datasource/issues/552
assert_has_feature(
16, 10487, 25327, "w... | <commit_before># from https://github.com/mapzen/vector-datasource/issues/552
assert_has_feature(
19, 83900, 202617, "water",
{"kind": "ocean", "boundary": True, "sort_rank": 205})
<commit_msg>Update water boundary sort key test zooms<commit_after># from https://github.com/mapzen/vector-datasource/issues/552
ass... |
c04a0bbe56e97a96df28f8505f6601df0c638f71 | src/blackred/__init__.py | src/blackred/__init__.py | """
Copyright 2015 Juergen Edelbluth
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, softwa... | """
Copyright 2015 Juergen Edelbluth
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, softwa... | Make the flake8 test pass | Make the flake8 test pass
The import in the `__init__.py` should not be reported by flake8. The warning itself is OK, but not for this file. | Python | apache-2.0 | edelbluth/blackred,edelbluth/blackred | """
Copyright 2015 Juergen Edelbluth
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, softwa... | """
Copyright 2015 Juergen Edelbluth
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, softwa... | <commit_before>"""
Copyright 2015 Juergen Edelbluth
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 ... | """
Copyright 2015 Juergen Edelbluth
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, softwa... | """
Copyright 2015 Juergen Edelbluth
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, softwa... | <commit_before>"""
Copyright 2015 Juergen Edelbluth
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 ... |
89f9b30bf3539d947fc066e5ab2845cf78e45ab5 | test/test_07_user_thermal.py | test/test_07_user_thermal.py | class TestUserThermal:
def test_can_download_audio(self, helper):
device = helper.given_new_device(self, 'cacophonator')
recording = device.has_recording()
print("\nA user should be able to download the recording")
helper.admin_user().can_download_correct_recording(recording)
d... | class TestUserThermal:
def test_can_download_recording(self, helper):
device = helper.given_new_device(self, 'cacophonator-download')
recording = device.has_recording()
print("\nA user should be able to download the recording")
helper.admin_user().can_download_correct_recording(reco... | Use unique device names in tests & correct a test name | Use unique device names in tests & correct a test name
| Python | agpl-3.0 | TheCacophonyProject/Full_Noise | class TestUserThermal:
def test_can_download_audio(self, helper):
device = helper.given_new_device(self, 'cacophonator')
recording = device.has_recording()
print("\nA user should be able to download the recording")
helper.admin_user().can_download_correct_recording(recording)
d... | class TestUserThermal:
def test_can_download_recording(self, helper):
device = helper.given_new_device(self, 'cacophonator-download')
recording = device.has_recording()
print("\nA user should be able to download the recording")
helper.admin_user().can_download_correct_recording(reco... | <commit_before>class TestUserThermal:
def test_can_download_audio(self, helper):
device = helper.given_new_device(self, 'cacophonator')
recording = device.has_recording()
print("\nA user should be able to download the recording")
helper.admin_user().can_download_correct_recording(re... | class TestUserThermal:
def test_can_download_recording(self, helper):
device = helper.given_new_device(self, 'cacophonator-download')
recording = device.has_recording()
print("\nA user should be able to download the recording")
helper.admin_user().can_download_correct_recording(reco... | class TestUserThermal:
def test_can_download_audio(self, helper):
device = helper.given_new_device(self, 'cacophonator')
recording = device.has_recording()
print("\nA user should be able to download the recording")
helper.admin_user().can_download_correct_recording(recording)
d... | <commit_before>class TestUserThermal:
def test_can_download_audio(self, helper):
device = helper.given_new_device(self, 'cacophonator')
recording = device.has_recording()
print("\nA user should be able to download the recording")
helper.admin_user().can_download_correct_recording(re... |
cd44bcde10332d2e8fa092a1df1c4383b5718660 | imager/imagerprofile/handlers.py | imager/imagerprofile/handlers.py | from django.db.models.signals import post_save
from django.dispatch import receiver
from django.contrib.auth.models import User
from imagerprofile.models import ImagerProfile
@receiver(post_save, sender=User)
def add_profile(sender, instance, **kwargs):
if kwargs['created']:
new_profile = ImagerProfile(us... | from django.db.models.signals import post_save
from django.dispatch import receiver
from django.contrib.auth.models import User
from imagerprofile.models import ImagerProfile
@receiver(post_save, sender=User)
def add_profile(sender, **kwargs):
if kwargs['created']:
obj = kwargs.get('instance')
new... | Fix instance handling in profile handler | Fix instance handling in profile handler
| Python | mit | nbeck90/django-imager,nbeck90/django-imager | from django.db.models.signals import post_save
from django.dispatch import receiver
from django.contrib.auth.models import User
from imagerprofile.models import ImagerProfile
@receiver(post_save, sender=User)
def add_profile(sender, instance, **kwargs):
if kwargs['created']:
new_profile = ImagerProfile(us... | from django.db.models.signals import post_save
from django.dispatch import receiver
from django.contrib.auth.models import User
from imagerprofile.models import ImagerProfile
@receiver(post_save, sender=User)
def add_profile(sender, **kwargs):
if kwargs['created']:
obj = kwargs.get('instance')
new... | <commit_before>from django.db.models.signals import post_save
from django.dispatch import receiver
from django.contrib.auth.models import User
from imagerprofile.models import ImagerProfile
@receiver(post_save, sender=User)
def add_profile(sender, instance, **kwargs):
if kwargs['created']:
new_profile = I... | from django.db.models.signals import post_save
from django.dispatch import receiver
from django.contrib.auth.models import User
from imagerprofile.models import ImagerProfile
@receiver(post_save, sender=User)
def add_profile(sender, **kwargs):
if kwargs['created']:
obj = kwargs.get('instance')
new... | from django.db.models.signals import post_save
from django.dispatch import receiver
from django.contrib.auth.models import User
from imagerprofile.models import ImagerProfile
@receiver(post_save, sender=User)
def add_profile(sender, instance, **kwargs):
if kwargs['created']:
new_profile = ImagerProfile(us... | <commit_before>from django.db.models.signals import post_save
from django.dispatch import receiver
from django.contrib.auth.models import User
from imagerprofile.models import ImagerProfile
@receiver(post_save, sender=User)
def add_profile(sender, instance, **kwargs):
if kwargs['created']:
new_profile = I... |
5f2252bc81aa647e938660cdd0834435538c2ea0 | django_todo/apps/core/views.py | django_todo/apps/core/views.py | import json
from django.http import HttpResponse
from django.template import RequestContext, loader
from django_todo.apps.core.models import Task
def current_tasks(request):
tasks = Task.objects.filter(is_checked=False)
template = loader.get_template('core/current_tasks.html')
context = RequestContext(re... | import json
from django.shortcuts import render_to_response
from django_todo.apps.core.models import Task
def current_tasks(request):
tasks = Task.objects.filter(is_checked=False)
return render_to_response('core/current_tasks.html', {'tasks': tasks, })
| Refactor view to use django shortcuts | Refactor view to use django shortcuts
| Python | mit | maxicecilia/django_todo | import json
from django.http import HttpResponse
from django.template import RequestContext, loader
from django_todo.apps.core.models import Task
def current_tasks(request):
tasks = Task.objects.filter(is_checked=False)
template = loader.get_template('core/current_tasks.html')
context = RequestContext(re... | import json
from django.shortcuts import render_to_response
from django_todo.apps.core.models import Task
def current_tasks(request):
tasks = Task.objects.filter(is_checked=False)
return render_to_response('core/current_tasks.html', {'tasks': tasks, })
| <commit_before>import json
from django.http import HttpResponse
from django.template import RequestContext, loader
from django_todo.apps.core.models import Task
def current_tasks(request):
tasks = Task.objects.filter(is_checked=False)
template = loader.get_template('core/current_tasks.html')
context = Re... | import json
from django.shortcuts import render_to_response
from django_todo.apps.core.models import Task
def current_tasks(request):
tasks = Task.objects.filter(is_checked=False)
return render_to_response('core/current_tasks.html', {'tasks': tasks, })
| import json
from django.http import HttpResponse
from django.template import RequestContext, loader
from django_todo.apps.core.models import Task
def current_tasks(request):
tasks = Task.objects.filter(is_checked=False)
template = loader.get_template('core/current_tasks.html')
context = RequestContext(re... | <commit_before>import json
from django.http import HttpResponse
from django.template import RequestContext, loader
from django_todo.apps.core.models import Task
def current_tasks(request):
tasks = Task.objects.filter(is_checked=False)
template = loader.get_template('core/current_tasks.html')
context = Re... |
2512ff39651d55c2c17ad1b4e05a0fc5d0bee415 | indra/tests/test_chebi_client.py | indra/tests/test_chebi_client.py | from __future__ import absolute_import, print_function, unicode_literals
from builtins import dict, str
from indra.databases import chebi_client
from indra.util import unicode_strs
from nose.plugins.attrib import attr
def test_read_chebi_to_pubchem():
(ctop, ptoc) = chebi_client._read_chebi_to_pubchem()
asser... | from __future__ import absolute_import, print_function, unicode_literals
from builtins import dict, str
from indra.databases import chebi_client
from indra.util import unicode_strs
from nose.plugins.attrib import attr
def test_read_chebi_to_pubchem():
(ctop, ptoc) = chebi_client._read_chebi_to_pubchem()
asser... | Fix ChEBI to Pubchem mapping test | Fix ChEBI to Pubchem mapping test
| Python | bsd-2-clause | johnbachman/indra,johnbachman/belpy,sorgerlab/indra,bgyori/indra,johnbachman/belpy,sorgerlab/indra,pvtodorov/indra,sorgerlab/belpy,bgyori/indra,johnbachman/indra,sorgerlab/belpy,johnbachman/belpy,pvtodorov/indra,sorgerlab/belpy,bgyori/indra,pvtodorov/indra,johnbachman/indra,pvtodorov/indra,sorgerlab/indra | from __future__ import absolute_import, print_function, unicode_literals
from builtins import dict, str
from indra.databases import chebi_client
from indra.util import unicode_strs
from nose.plugins.attrib import attr
def test_read_chebi_to_pubchem():
(ctop, ptoc) = chebi_client._read_chebi_to_pubchem()
asser... | from __future__ import absolute_import, print_function, unicode_literals
from builtins import dict, str
from indra.databases import chebi_client
from indra.util import unicode_strs
from nose.plugins.attrib import attr
def test_read_chebi_to_pubchem():
(ctop, ptoc) = chebi_client._read_chebi_to_pubchem()
asser... | <commit_before>from __future__ import absolute_import, print_function, unicode_literals
from builtins import dict, str
from indra.databases import chebi_client
from indra.util import unicode_strs
from nose.plugins.attrib import attr
def test_read_chebi_to_pubchem():
(ctop, ptoc) = chebi_client._read_chebi_to_pubc... | from __future__ import absolute_import, print_function, unicode_literals
from builtins import dict, str
from indra.databases import chebi_client
from indra.util import unicode_strs
from nose.plugins.attrib import attr
def test_read_chebi_to_pubchem():
(ctop, ptoc) = chebi_client._read_chebi_to_pubchem()
asser... | from __future__ import absolute_import, print_function, unicode_literals
from builtins import dict, str
from indra.databases import chebi_client
from indra.util import unicode_strs
from nose.plugins.attrib import attr
def test_read_chebi_to_pubchem():
(ctop, ptoc) = chebi_client._read_chebi_to_pubchem()
asser... | <commit_before>from __future__ import absolute_import, print_function, unicode_literals
from builtins import dict, str
from indra.databases import chebi_client
from indra.util import unicode_strs
from nose.plugins.attrib import attr
def test_read_chebi_to_pubchem():
(ctop, ptoc) = chebi_client._read_chebi_to_pubc... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.