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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b729b8bb5a3b65b6e8c09455b0db21e7df59dd8a | setup.py | setup.py | from setuptools import setup, find_packages
with open('README.rst') as readme:
description = readme.read()
setup(
name='mfl',
version='2.0.0',
description='Master falicity list',
long_description=(description),
author='Savannah Developers',
author_email='[email protected]... | from setuptools import setup, find_packages
with open('README.rst') as readme:
description = readme.read()
setup(
name='mfl',
version='2.0.0',
description='Master falicity list',
long_description=(description),
author='Savannah Developers',
author_email='[email protected]... | Fix model_mommy issues with django==1.8 | Fix model_mommy issues with django==1.8
| Python | mit | urandu/mfl_api,MasterFacilityList/mfl_api,urandu/mfl_api,urandu/mfl_api,MasterFacilityList/mfl_api,MasterFacilityList/mfl_api,MasterFacilityList/mfl_api,MasterFacilityList/mfl_api,urandu/mfl_api | from setuptools import setup, find_packages
with open('README.rst') as readme:
description = readme.read()
setup(
name='mfl',
version='2.0.0',
description='Master falicity list',
long_description=(description),
author='Savannah Developers',
author_email='[email protected]... | from setuptools import setup, find_packages
with open('README.rst') as readme:
description = readme.read()
setup(
name='mfl',
version='2.0.0',
description='Master falicity list',
long_description=(description),
author='Savannah Developers',
author_email='[email protected]... | <commit_before>from setuptools import setup, find_packages
with open('README.rst') as readme:
description = readme.read()
setup(
name='mfl',
version='2.0.0',
description='Master falicity list',
long_description=(description),
author='Savannah Developers',
author_email='developers@savannah... | from setuptools import setup, find_packages
with open('README.rst') as readme:
description = readme.read()
setup(
name='mfl',
version='2.0.0',
description='Master falicity list',
long_description=(description),
author='Savannah Developers',
author_email='[email protected]... | from setuptools import setup, find_packages
with open('README.rst') as readme:
description = readme.read()
setup(
name='mfl',
version='2.0.0',
description='Master falicity list',
long_description=(description),
author='Savannah Developers',
author_email='[email protected]... | <commit_before>from setuptools import setup, find_packages
with open('README.rst') as readme:
description = readme.read()
setup(
name='mfl',
version='2.0.0',
description='Master falicity list',
long_description=(description),
author='Savannah Developers',
author_email='developers@savannah... |
dfb53cd63c908f13dafcc159ce337af653523748 | datasets/forms.py | datasets/forms.py | from django import forms
from datasets.models import DatasetRelease, CategoryComment
class DatasetReleaseForm(forms.ModelForm):
max_number_of_sounds = forms.IntegerField(required=False)
class Meta:
model = DatasetRelease
fields = ['release_tag', 'type']
class PresentNotPresentUnsureForm(for... | from django import forms
from datasets.models import DatasetRelease, CategoryComment
class DatasetReleaseForm(forms.ModelForm):
max_number_of_sounds = forms.IntegerField(required=False)
class Meta:
model = DatasetRelease
fields = ['release_tag', 'type']
class PresentNotPresentUnsureForm(for... | Remove upper case Not Present | Remove upper case Not Present
| Python | agpl-3.0 | MTG/freesound-datasets,MTG/freesound-datasets,MTG/freesound-datasets,MTG/freesound-datasets | from django import forms
from datasets.models import DatasetRelease, CategoryComment
class DatasetReleaseForm(forms.ModelForm):
max_number_of_sounds = forms.IntegerField(required=False)
class Meta:
model = DatasetRelease
fields = ['release_tag', 'type']
class PresentNotPresentUnsureForm(for... | from django import forms
from datasets.models import DatasetRelease, CategoryComment
class DatasetReleaseForm(forms.ModelForm):
max_number_of_sounds = forms.IntegerField(required=False)
class Meta:
model = DatasetRelease
fields = ['release_tag', 'type']
class PresentNotPresentUnsureForm(for... | <commit_before>from django import forms
from datasets.models import DatasetRelease, CategoryComment
class DatasetReleaseForm(forms.ModelForm):
max_number_of_sounds = forms.IntegerField(required=False)
class Meta:
model = DatasetRelease
fields = ['release_tag', 'type']
class PresentNotPresen... | from django import forms
from datasets.models import DatasetRelease, CategoryComment
class DatasetReleaseForm(forms.ModelForm):
max_number_of_sounds = forms.IntegerField(required=False)
class Meta:
model = DatasetRelease
fields = ['release_tag', 'type']
class PresentNotPresentUnsureForm(for... | from django import forms
from datasets.models import DatasetRelease, CategoryComment
class DatasetReleaseForm(forms.ModelForm):
max_number_of_sounds = forms.IntegerField(required=False)
class Meta:
model = DatasetRelease
fields = ['release_tag', 'type']
class PresentNotPresentUnsureForm(for... | <commit_before>from django import forms
from datasets.models import DatasetRelease, CategoryComment
class DatasetReleaseForm(forms.ModelForm):
max_number_of_sounds = forms.IntegerField(required=False)
class Meta:
model = DatasetRelease
fields = ['release_tag', 'type']
class PresentNotPresen... |
bd7cab646b6ead140b62ed19b5378567c76bad9d | setup.py | setup.py | import os
from setuptools import setup
def read(name):
return open(os.path.join(os.path.dirname(__file__), name)).read()
setup(
name='python-dxf',
version='7.5.0',
description="Package for accessing a Docker v2 registry",
long_description=read('README.rst'),
keywords='docker registry',
aut... | import io
import os
from setuptools import setup
def read(name):
file_path = os.path.join(os.path.dirname(__file__), name)
return io.open(file_path, encoding='utf8').read()
setup(
name='python-dxf',
version='7.5.0',
description="Package for accessing a Docker v2 registry",
long_description=rea... | Fix UnicodeDecodeError error when installing | Fix UnicodeDecodeError error when installing
Fix UnicodeDecodeError raised when attempting to install in non-English
systems (e.g. Windows 10 Korean).
| Python | mit | davedoesdev/dxf,davedoesdev/dxf,davedoesdev/dxf,davedoesdev/dxf | import os
from setuptools import setup
def read(name):
return open(os.path.join(os.path.dirname(__file__), name)).read()
setup(
name='python-dxf',
version='7.5.0',
description="Package for accessing a Docker v2 registry",
long_description=read('README.rst'),
keywords='docker registry',
aut... | import io
import os
from setuptools import setup
def read(name):
file_path = os.path.join(os.path.dirname(__file__), name)
return io.open(file_path, encoding='utf8').read()
setup(
name='python-dxf',
version='7.5.0',
description="Package for accessing a Docker v2 registry",
long_description=rea... | <commit_before>import os
from setuptools import setup
def read(name):
return open(os.path.join(os.path.dirname(__file__), name)).read()
setup(
name='python-dxf',
version='7.5.0',
description="Package for accessing a Docker v2 registry",
long_description=read('README.rst'),
keywords='docker reg... | import io
import os
from setuptools import setup
def read(name):
file_path = os.path.join(os.path.dirname(__file__), name)
return io.open(file_path, encoding='utf8').read()
setup(
name='python-dxf',
version='7.5.0',
description="Package for accessing a Docker v2 registry",
long_description=rea... | import os
from setuptools import setup
def read(name):
return open(os.path.join(os.path.dirname(__file__), name)).read()
setup(
name='python-dxf',
version='7.5.0',
description="Package for accessing a Docker v2 registry",
long_description=read('README.rst'),
keywords='docker registry',
aut... | <commit_before>import os
from setuptools import setup
def read(name):
return open(os.path.join(os.path.dirname(__file__), name)).read()
setup(
name='python-dxf',
version='7.5.0',
description="Package for accessing a Docker v2 registry",
long_description=read('README.rst'),
keywords='docker reg... |
816e77d6cb5321b57cbccfed56d01cbfbd058aa1 | setup.py | setup.py | # Uploading package to PyPi.
from setuptools import setup
setup(name='schoolopy',
version='0.1.0',
description='A Python wrapper for Schoology\'s API.',
url='https://github.com/ErikBoesen/schoolopy',
author='Erik Boesen',
author_email='[email protected]',
license='MIT',
packa... | # Uploading package to PyPi.
from setuptools import setup
setup(name='schoolopy',
version='0.2.0',
description='A Python wrapper for Schoology\'s API.',
url='https://github.com/ErikBoesen/schoolopy',
author='Erik Boesen',
author_email='[email protected]',
license='MIT',
packa... | Increment version for PyPI upload | Increment version for PyPI upload
| Python | mit | ErikBoesen/schoolopy | # Uploading package to PyPi.
from setuptools import setup
setup(name='schoolopy',
version='0.1.0',
description='A Python wrapper for Schoology\'s API.',
url='https://github.com/ErikBoesen/schoolopy',
author='Erik Boesen',
author_email='[email protected]',
license='MIT',
packa... | # Uploading package to PyPi.
from setuptools import setup
setup(name='schoolopy',
version='0.2.0',
description='A Python wrapper for Schoology\'s API.',
url='https://github.com/ErikBoesen/schoolopy',
author='Erik Boesen',
author_email='[email protected]',
license='MIT',
packa... | <commit_before># Uploading package to PyPi.
from setuptools import setup
setup(name='schoolopy',
version='0.1.0',
description='A Python wrapper for Schoology\'s API.',
url='https://github.com/ErikBoesen/schoolopy',
author='Erik Boesen',
author_email='[email protected]',
license='MI... | # Uploading package to PyPi.
from setuptools import setup
setup(name='schoolopy',
version='0.2.0',
description='A Python wrapper for Schoology\'s API.',
url='https://github.com/ErikBoesen/schoolopy',
author='Erik Boesen',
author_email='[email protected]',
license='MIT',
packa... | # Uploading package to PyPi.
from setuptools import setup
setup(name='schoolopy',
version='0.1.0',
description='A Python wrapper for Schoology\'s API.',
url='https://github.com/ErikBoesen/schoolopy',
author='Erik Boesen',
author_email='[email protected]',
license='MIT',
packa... | <commit_before># Uploading package to PyPi.
from setuptools import setup
setup(name='schoolopy',
version='0.1.0',
description='A Python wrapper for Schoology\'s API.',
url='https://github.com/ErikBoesen/schoolopy',
author='Erik Boesen',
author_email='[email protected]',
license='MI... |
eb0ffe3da8b25a4d673b543faeef169279c63919 | python/hxActor/main.py | python/hxActor/main.py | #!/usr/bin/env python
import actorcore.ICC
class OurActor(actorcore.ICC.ICC):
def __init__(self, name,
productName=None, configFile=None,
modelNames=(),
debugLevel=30):
""" Setup an Actor instance. See help for actorcore.Actor for details. """
... | #!/usr/bin/env python
import actorcore.ICC
class OurActor(actorcore.ICC.ICC):
def __init__(self, name,
productName=None, configFile=None,
modelNames=('charis', 'hx'),
debugLevel=30):
""" Setup an Actor instance. See help for actorcore.Actor for details. ... | Add model listeners for headers. | Add model listeners for headers.
| Python | mit | CraigLoomis/ics_hxActor,CraigLoomis/ics_hxActor | #!/usr/bin/env python
import actorcore.ICC
class OurActor(actorcore.ICC.ICC):
def __init__(self, name,
productName=None, configFile=None,
modelNames=(),
debugLevel=30):
""" Setup an Actor instance. See help for actorcore.Actor for details. """
... | #!/usr/bin/env python
import actorcore.ICC
class OurActor(actorcore.ICC.ICC):
def __init__(self, name,
productName=None, configFile=None,
modelNames=('charis', 'hx'),
debugLevel=30):
""" Setup an Actor instance. See help for actorcore.Actor for details. ... | <commit_before>#!/usr/bin/env python
import actorcore.ICC
class OurActor(actorcore.ICC.ICC):
def __init__(self, name,
productName=None, configFile=None,
modelNames=(),
debugLevel=30):
""" Setup an Actor instance. See help for actorcore.Actor for details.... | #!/usr/bin/env python
import actorcore.ICC
class OurActor(actorcore.ICC.ICC):
def __init__(self, name,
productName=None, configFile=None,
modelNames=('charis', 'hx'),
debugLevel=30):
""" Setup an Actor instance. See help for actorcore.Actor for details. ... | #!/usr/bin/env python
import actorcore.ICC
class OurActor(actorcore.ICC.ICC):
def __init__(self, name,
productName=None, configFile=None,
modelNames=(),
debugLevel=30):
""" Setup an Actor instance. See help for actorcore.Actor for details. """
... | <commit_before>#!/usr/bin/env python
import actorcore.ICC
class OurActor(actorcore.ICC.ICC):
def __init__(self, name,
productName=None, configFile=None,
modelNames=(),
debugLevel=30):
""" Setup an Actor instance. See help for actorcore.Actor for details.... |
7f3f2802fb3c00baf440ebdc10920ad0b48118f9 | setup.py | setup.py | import codecs
from setuptools import find_packages
from setuptools import setup
import sys
install_requires = [
'cached-property',
'chainer>=2.0.0',
'future',
'gym>=0.9.7',
'numpy>=1.10.4',
'pillow',
'scipy',
]
test_requires = [
'pytest',
]
if sys.version_info < (3, 2):
install_re... | import codecs
from setuptools import find_packages
from setuptools import setup
import sys
install_requires = [
'cached-property',
'chainer>=2.0.0',
'future',
'gym>=0.9.7',
'numpy>=1.10.4',
'pillow',
'scipy',
]
test_requires = [
'pytest',
'attrs<19.2.0', # pytest does not run with... | Use attrs<19.2.0 to avoid pytest error | Use attrs<19.2.0 to avoid pytest error
| Python | mit | toslunar/chainerrl,toslunar/chainerrl | import codecs
from setuptools import find_packages
from setuptools import setup
import sys
install_requires = [
'cached-property',
'chainer>=2.0.0',
'future',
'gym>=0.9.7',
'numpy>=1.10.4',
'pillow',
'scipy',
]
test_requires = [
'pytest',
]
if sys.version_info < (3, 2):
install_re... | import codecs
from setuptools import find_packages
from setuptools import setup
import sys
install_requires = [
'cached-property',
'chainer>=2.0.0',
'future',
'gym>=0.9.7',
'numpy>=1.10.4',
'pillow',
'scipy',
]
test_requires = [
'pytest',
'attrs<19.2.0', # pytest does not run with... | <commit_before>import codecs
from setuptools import find_packages
from setuptools import setup
import sys
install_requires = [
'cached-property',
'chainer>=2.0.0',
'future',
'gym>=0.9.7',
'numpy>=1.10.4',
'pillow',
'scipy',
]
test_requires = [
'pytest',
]
if sys.version_info < (3, 2):... | import codecs
from setuptools import find_packages
from setuptools import setup
import sys
install_requires = [
'cached-property',
'chainer>=2.0.0',
'future',
'gym>=0.9.7',
'numpy>=1.10.4',
'pillow',
'scipy',
]
test_requires = [
'pytest',
'attrs<19.2.0', # pytest does not run with... | import codecs
from setuptools import find_packages
from setuptools import setup
import sys
install_requires = [
'cached-property',
'chainer>=2.0.0',
'future',
'gym>=0.9.7',
'numpy>=1.10.4',
'pillow',
'scipy',
]
test_requires = [
'pytest',
]
if sys.version_info < (3, 2):
install_re... | <commit_before>import codecs
from setuptools import find_packages
from setuptools import setup
import sys
install_requires = [
'cached-property',
'chainer>=2.0.0',
'future',
'gym>=0.9.7',
'numpy>=1.10.4',
'pillow',
'scipy',
]
test_requires = [
'pytest',
]
if sys.version_info < (3, 2):... |
ccd5dce9b4e2392abdf205d2913736a6ce47ae0b | setup.py | setup.py | #!/usr/bin/env python
"""
DJ-Database-URL
===============
This simple Django utility allows you to utilize the
`12factor <http://www.12factor.net/backing-services>`_ inspired
``REDIS_URL`` environment variable to configure your Django application.
Usage
-----
Configure your Redis database in ``settings.py`` from ``... | #!/usr/bin/env python
"""
DJ-Database-URL
===============
This simple Django utility allows you to utilize the
`12factor <http://www.12factor.net/backing-services>`_ inspired
``REDIS_URL`` environment variable to configure your Django application.
Usage
-----
Configure your Redis database in ``settings.py`` from ``... | Switch from packages to modules | Switch from packages to modules
| Python | bsd-2-clause | dstufft/dj-redis-url | #!/usr/bin/env python
"""
DJ-Database-URL
===============
This simple Django utility allows you to utilize the
`12factor <http://www.12factor.net/backing-services>`_ inspired
``REDIS_URL`` environment variable to configure your Django application.
Usage
-----
Configure your Redis database in ``settings.py`` from ``... | #!/usr/bin/env python
"""
DJ-Database-URL
===============
This simple Django utility allows you to utilize the
`12factor <http://www.12factor.net/backing-services>`_ inspired
``REDIS_URL`` environment variable to configure your Django application.
Usage
-----
Configure your Redis database in ``settings.py`` from ``... | <commit_before>#!/usr/bin/env python
"""
DJ-Database-URL
===============
This simple Django utility allows you to utilize the
`12factor <http://www.12factor.net/backing-services>`_ inspired
``REDIS_URL`` environment variable to configure your Django application.
Usage
-----
Configure your Redis database in ``settin... | #!/usr/bin/env python
"""
DJ-Database-URL
===============
This simple Django utility allows you to utilize the
`12factor <http://www.12factor.net/backing-services>`_ inspired
``REDIS_URL`` environment variable to configure your Django application.
Usage
-----
Configure your Redis database in ``settings.py`` from ``... | #!/usr/bin/env python
"""
DJ-Database-URL
===============
This simple Django utility allows you to utilize the
`12factor <http://www.12factor.net/backing-services>`_ inspired
``REDIS_URL`` environment variable to configure your Django application.
Usage
-----
Configure your Redis database in ``settings.py`` from ``... | <commit_before>#!/usr/bin/env python
"""
DJ-Database-URL
===============
This simple Django utility allows you to utilize the
`12factor <http://www.12factor.net/backing-services>`_ inspired
``REDIS_URL`` environment variable to configure your Django application.
Usage
-----
Configure your Redis database in ``settin... |
df9379a370163ac0d9ca3daf99745c1d1fb7dc19 | setup.py | setup.py | from setuptools import setup, find_packages
from codecs import open
from os import path
_HERE = path.abspath(path.dirname(__file__))
def read(*names, **kwds):
return open(
path.join(_HERE, *names),
encoding=kwds.get('encoding', 'utf-8')
).read()
def find_version(*file_paths):
import re... | from setuptools import setup, find_packages
from codecs import open
from os import path
_HERE = path.abspath(path.dirname(__file__))
def read(*names, **kwds):
return open(
path.join(_HERE, *names),
encoding=kwds.get('encoding', 'utf-8')
).read()
def find_version(*file_paths):
import re
... | Use the new configure command. | Use the new configure command.
| Python | mit | csdms/wmt-exe,csdms/wmt-exe,csdms/wmt-exe,csdms/wmt-exe | from setuptools import setup, find_packages
from codecs import open
from os import path
_HERE = path.abspath(path.dirname(__file__))
def read(*names, **kwds):
return open(
path.join(_HERE, *names),
encoding=kwds.get('encoding', 'utf-8')
).read()
def find_version(*file_paths):
import re... | from setuptools import setup, find_packages
from codecs import open
from os import path
_HERE = path.abspath(path.dirname(__file__))
def read(*names, **kwds):
return open(
path.join(_HERE, *names),
encoding=kwds.get('encoding', 'utf-8')
).read()
def find_version(*file_paths):
import re
... | <commit_before>from setuptools import setup, find_packages
from codecs import open
from os import path
_HERE = path.abspath(path.dirname(__file__))
def read(*names, **kwds):
return open(
path.join(_HERE, *names),
encoding=kwds.get('encoding', 'utf-8')
).read()
def find_version(*file_paths)... | from setuptools import setup, find_packages
from codecs import open
from os import path
_HERE = path.abspath(path.dirname(__file__))
def read(*names, **kwds):
return open(
path.join(_HERE, *names),
encoding=kwds.get('encoding', 'utf-8')
).read()
def find_version(*file_paths):
import re
... | from setuptools import setup, find_packages
from codecs import open
from os import path
_HERE = path.abspath(path.dirname(__file__))
def read(*names, **kwds):
return open(
path.join(_HERE, *names),
encoding=kwds.get('encoding', 'utf-8')
).read()
def find_version(*file_paths):
import re... | <commit_before>from setuptools import setup, find_packages
from codecs import open
from os import path
_HERE = path.abspath(path.dirname(__file__))
def read(*names, **kwds):
return open(
path.join(_HERE, *names),
encoding=kwds.get('encoding', 'utf-8')
).read()
def find_version(*file_paths)... |
8a8d5bfa1d091f2c701196f58fdf10bfb228d9b5 | setup.py | setup.py | """
Flask-Twilio
-------------
Make Twilio voice/SMS calls with Flask
"""
from setuptools import setup
exec(open('flask_twilio.py').readline())
setup(
name='Flask-Twilio',
version=__version__,
url='http://example.com/flask-twilio/',
license='BSD',
author='Leo Singer',
author_email='leo.singer... | """
Flask-Twilio
-------------
Make Twilio voice/SMS calls with Flask
"""
from setuptools import setup
exec(open('flask_twilio.py').readline())
setup(
name='Flask-Twilio',
version=__version__,
url='http://example.com/flask-twilio/',
license='BSD',
author='Leo Singer',
author_email='leo.singer... | Add missing dependency on six | Add missing dependency on six
| Python | bsd-3-clause | lpsinger/flask-twilio | """
Flask-Twilio
-------------
Make Twilio voice/SMS calls with Flask
"""
from setuptools import setup
exec(open('flask_twilio.py').readline())
setup(
name='Flask-Twilio',
version=__version__,
url='http://example.com/flask-twilio/',
license='BSD',
author='Leo Singer',
author_email='leo.singer... | """
Flask-Twilio
-------------
Make Twilio voice/SMS calls with Flask
"""
from setuptools import setup
exec(open('flask_twilio.py').readline())
setup(
name='Flask-Twilio',
version=__version__,
url='http://example.com/flask-twilio/',
license='BSD',
author='Leo Singer',
author_email='leo.singer... | <commit_before>"""
Flask-Twilio
-------------
Make Twilio voice/SMS calls with Flask
"""
from setuptools import setup
exec(open('flask_twilio.py').readline())
setup(
name='Flask-Twilio',
version=__version__,
url='http://example.com/flask-twilio/',
license='BSD',
author='Leo Singer',
author_em... | """
Flask-Twilio
-------------
Make Twilio voice/SMS calls with Flask
"""
from setuptools import setup
exec(open('flask_twilio.py').readline())
setup(
name='Flask-Twilio',
version=__version__,
url='http://example.com/flask-twilio/',
license='BSD',
author='Leo Singer',
author_email='leo.singer... | """
Flask-Twilio
-------------
Make Twilio voice/SMS calls with Flask
"""
from setuptools import setup
exec(open('flask_twilio.py').readline())
setup(
name='Flask-Twilio',
version=__version__,
url='http://example.com/flask-twilio/',
license='BSD',
author='Leo Singer',
author_email='leo.singer... | <commit_before>"""
Flask-Twilio
-------------
Make Twilio voice/SMS calls with Flask
"""
from setuptools import setup
exec(open('flask_twilio.py').readline())
setup(
name='Flask-Twilio',
version=__version__,
url='http://example.com/flask-twilio/',
license='BSD',
author='Leo Singer',
author_em... |
bff48b594f4714e0f2d52793a1a038ce1f436719 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='edx-oauth2-provider',
version='0.5.4',
description='Provide OAuth2 access to edX installations',
author='edX',
url='https://github.com/edx/edx-oauth2-provider',
license='AGPL',
classifiers=[
'Development... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='edx-oauth2-provider',
version='0.5.5',
description='Provide OAuth2 access to edX installations',
author='edX',
url='https://github.com/edx/edx-oauth2-provider',
license='AGPL',
classifiers=[
'Development... | Include oauth2-provider's tests module in the installed package | Include oauth2-provider's tests module in the installed package
| Python | agpl-3.0 | edx/edx-oauth2-provider,edx/edx-oauth2-provider | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='edx-oauth2-provider',
version='0.5.4',
description='Provide OAuth2 access to edX installations',
author='edX',
url='https://github.com/edx/edx-oauth2-provider',
license='AGPL',
classifiers=[
'Development... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='edx-oauth2-provider',
version='0.5.5',
description='Provide OAuth2 access to edX installations',
author='edX',
url='https://github.com/edx/edx-oauth2-provider',
license='AGPL',
classifiers=[
'Development... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='edx-oauth2-provider',
version='0.5.4',
description='Provide OAuth2 access to edX installations',
author='edX',
url='https://github.com/edx/edx-oauth2-provider',
license='AGPL',
classifiers=[
... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='edx-oauth2-provider',
version='0.5.5',
description='Provide OAuth2 access to edX installations',
author='edX',
url='https://github.com/edx/edx-oauth2-provider',
license='AGPL',
classifiers=[
'Development... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='edx-oauth2-provider',
version='0.5.4',
description='Provide OAuth2 access to edX installations',
author='edX',
url='https://github.com/edx/edx-oauth2-provider',
license='AGPL',
classifiers=[
'Development... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='edx-oauth2-provider',
version='0.5.4',
description='Provide OAuth2 access to edX installations',
author='edX',
url='https://github.com/edx/edx-oauth2-provider',
license='AGPL',
classifiers=[
... |
8dffe003fdb42cb9edd4fa0e720d6eceb9719381 | setup.py | setup.py | from setuptools import setup, find_packages
import thermochem
setup(
name="thermochem",
version=thermochem.__version__,
description="Python utilities for thermodynamics and thermochemistry",
author="Adel Qalieh",
author_email="[email protected]",
url="https://github.com/adelq/thermochem",
... | from setuptools import setup, find_packages
import thermochem
setup(
name="thermochem",
version=thermochem.__version__,
description="Python utilities for thermodynamics and thermochemistry",
long_description=open("README.rst").read(),
author="Adel Qalieh",
author_email="[email protected]",
... | Add README as long description | Add README as long description
| Python | bsd-3-clause | adelq/thermopy | from setuptools import setup, find_packages
import thermochem
setup(
name="thermochem",
version=thermochem.__version__,
description="Python utilities for thermodynamics and thermochemistry",
author="Adel Qalieh",
author_email="[email protected]",
url="https://github.com/adelq/thermochem",
... | from setuptools import setup, find_packages
import thermochem
setup(
name="thermochem",
version=thermochem.__version__,
description="Python utilities for thermodynamics and thermochemistry",
long_description=open("README.rst").read(),
author="Adel Qalieh",
author_email="[email protected]",
... | <commit_before>from setuptools import setup, find_packages
import thermochem
setup(
name="thermochem",
version=thermochem.__version__,
description="Python utilities for thermodynamics and thermochemistry",
author="Adel Qalieh",
author_email="[email protected]",
url="https://github.com/adelq/t... | from setuptools import setup, find_packages
import thermochem
setup(
name="thermochem",
version=thermochem.__version__,
description="Python utilities for thermodynamics and thermochemistry",
long_description=open("README.rst").read(),
author="Adel Qalieh",
author_email="[email protected]",
... | from setuptools import setup, find_packages
import thermochem
setup(
name="thermochem",
version=thermochem.__version__,
description="Python utilities for thermodynamics and thermochemistry",
author="Adel Qalieh",
author_email="[email protected]",
url="https://github.com/adelq/thermochem",
... | <commit_before>from setuptools import setup, find_packages
import thermochem
setup(
name="thermochem",
version=thermochem.__version__,
description="Python utilities for thermodynamics and thermochemistry",
author="Adel Qalieh",
author_email="[email protected]",
url="https://github.com/adelq/t... |
3c33bc1a8cdc33b5519b7a0802b7b71d0193a6c6 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-slack',
url="https://chris-lamb.co.uk/projects/django-slack",
version='5.2.0',
description="Provides easy-to-use integration between Django projects and "
"the Slack group chat and IM tool.",
author="Ch... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-slack',
url="https://chris-lamb.co.uk/projects/django-slack",
version='5.2.0',
description="Provides easy-to-use integration between Django projects and "
"the Slack group chat and IM tool.",
author="Ch... | Update Django requirement to latest LTS | Update Django requirement to latest LTS
| Python | bsd-3-clause | lamby/django-slack | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-slack',
url="https://chris-lamb.co.uk/projects/django-slack",
version='5.2.0',
description="Provides easy-to-use integration between Django projects and "
"the Slack group chat and IM tool.",
author="Ch... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-slack',
url="https://chris-lamb.co.uk/projects/django-slack",
version='5.2.0',
description="Provides easy-to-use integration between Django projects and "
"the Slack group chat and IM tool.",
author="Ch... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-slack',
url="https://chris-lamb.co.uk/projects/django-slack",
version='5.2.0',
description="Provides easy-to-use integration between Django projects and "
"the Slack group chat and IM tool.",
... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-slack',
url="https://chris-lamb.co.uk/projects/django-slack",
version='5.2.0',
description="Provides easy-to-use integration between Django projects and "
"the Slack group chat and IM tool.",
author="Ch... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-slack',
url="https://chris-lamb.co.uk/projects/django-slack",
version='5.2.0',
description="Provides easy-to-use integration between Django projects and "
"the Slack group chat and IM tool.",
author="Ch... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-slack',
url="https://chris-lamb.co.uk/projects/django-slack",
version='5.2.0',
description="Provides easy-to-use integration between Django projects and "
"the Slack group chat and IM tool.",
... |
f994ab4a70a55706eeff133dd484dfd80a68e108 | bin/isy_showevents.py | bin/isy_showevents.py | #!/usr/local/bin/python2.7 -u
__author__ = "Peter Shipley"
import os
import keyring
import ConfigParser
from ISY.IsyEvent import ISYEvent
def main() :
config = ConfigParser.ConfigParser()
config.read(os.path.expanduser('~/isy.cfg'))
server = ISYEvent()
# you can subscribe to multiple devices... | #!/usr/local/bin/python2.7 -u
__author__ = "Peter Shipley"
import os
import ConfigParser
from ISY.IsyEvent import ISYEvent
def main() :
config = ConfigParser.ConfigParser()
config.read(os.path.expanduser('~/home.cfg'))
server = ISYEvent()
isy_addr = config.get('isy', 'addr')
isy_user = c... | Remove keyring and change to basic cfg file handling | Remove keyring and change to basic cfg file handling
| Python | bsd-2-clause | fxstein/ISYlib-python | #!/usr/local/bin/python2.7 -u
__author__ = "Peter Shipley"
import os
import keyring
import ConfigParser
from ISY.IsyEvent import ISYEvent
def main() :
config = ConfigParser.ConfigParser()
config.read(os.path.expanduser('~/isy.cfg'))
server = ISYEvent()
# you can subscribe to multiple devices... | #!/usr/local/bin/python2.7 -u
__author__ = "Peter Shipley"
import os
import ConfigParser
from ISY.IsyEvent import ISYEvent
def main() :
config = ConfigParser.ConfigParser()
config.read(os.path.expanduser('~/home.cfg'))
server = ISYEvent()
isy_addr = config.get('isy', 'addr')
isy_user = c... | <commit_before>#!/usr/local/bin/python2.7 -u
__author__ = "Peter Shipley"
import os
import keyring
import ConfigParser
from ISY.IsyEvent import ISYEvent
def main() :
config = ConfigParser.ConfigParser()
config.read(os.path.expanduser('~/isy.cfg'))
server = ISYEvent()
# you can subscribe to m... | #!/usr/local/bin/python2.7 -u
__author__ = "Peter Shipley"
import os
import ConfigParser
from ISY.IsyEvent import ISYEvent
def main() :
config = ConfigParser.ConfigParser()
config.read(os.path.expanduser('~/home.cfg'))
server = ISYEvent()
isy_addr = config.get('isy', 'addr')
isy_user = c... | #!/usr/local/bin/python2.7 -u
__author__ = "Peter Shipley"
import os
import keyring
import ConfigParser
from ISY.IsyEvent import ISYEvent
def main() :
config = ConfigParser.ConfigParser()
config.read(os.path.expanduser('~/isy.cfg'))
server = ISYEvent()
# you can subscribe to multiple devices... | <commit_before>#!/usr/local/bin/python2.7 -u
__author__ = "Peter Shipley"
import os
import keyring
import ConfigParser
from ISY.IsyEvent import ISYEvent
def main() :
config = ConfigParser.ConfigParser()
config.read(os.path.expanduser('~/isy.cfg'))
server = ISYEvent()
# you can subscribe to m... |
ff9f64da2d43591cacfbec1a147fda4b82539c1d | serial_reader.py | serial_reader.py | #!/usr/bin/env python
from argparse import ArgumentParser
import serial
def run(device, baud):
with serial.Serial(device, baud, timeout=0.1) as ser:
while True:
line = ser.readline()
if line:
print line
if __name__ == '__main__':
parser = ArgumentParser()
p... | #!/usr/bin/env python
from argparse import ArgumentParser
import sys
import serial
def run(device, baud):
with serial.Serial(device, baud, timeout=0.1) as ser:
while True:
line = ser.readline()
if line:
sys.stdout.write(line)
if __name__ == '__main__':
parser =... | Use sys.stdout.write to get rid of extra newlines | Use sys.stdout.write to get rid of extra newlines
| Python | unlicense | recursify/serial-debug-tool | #!/usr/bin/env python
from argparse import ArgumentParser
import serial
def run(device, baud):
with serial.Serial(device, baud, timeout=0.1) as ser:
while True:
line = ser.readline()
if line:
print line
if __name__ == '__main__':
parser = ArgumentParser()
p... | #!/usr/bin/env python
from argparse import ArgumentParser
import sys
import serial
def run(device, baud):
with serial.Serial(device, baud, timeout=0.1) as ser:
while True:
line = ser.readline()
if line:
sys.stdout.write(line)
if __name__ == '__main__':
parser =... | <commit_before>#!/usr/bin/env python
from argparse import ArgumentParser
import serial
def run(device, baud):
with serial.Serial(device, baud, timeout=0.1) as ser:
while True:
line = ser.readline()
if line:
print line
if __name__ == '__main__':
parser = Argumen... | #!/usr/bin/env python
from argparse import ArgumentParser
import sys
import serial
def run(device, baud):
with serial.Serial(device, baud, timeout=0.1) as ser:
while True:
line = ser.readline()
if line:
sys.stdout.write(line)
if __name__ == '__main__':
parser =... | #!/usr/bin/env python
from argparse import ArgumentParser
import serial
def run(device, baud):
with serial.Serial(device, baud, timeout=0.1) as ser:
while True:
line = ser.readline()
if line:
print line
if __name__ == '__main__':
parser = ArgumentParser()
p... | <commit_before>#!/usr/bin/env python
from argparse import ArgumentParser
import serial
def run(device, baud):
with serial.Serial(device, baud, timeout=0.1) as ser:
while True:
line = ser.readline()
if line:
print line
if __name__ == '__main__':
parser = Argumen... |
8ffd26f4fddb0c367e61a46af6427eab6c244ea8 | south/signals.py | south/signals.py | """
South-specific signals
"""
from django.dispatch import Signal
# Sent at the start of the migration of an app
pre_migrate = Signal(providing_args=["app"])
# Sent after each successful migration of an app
post_migrate = Signal(providing_args=["app"])
# Sent after each run of a particular migration in a direction
... | """
South-specific signals
"""
from django.dispatch import Signal
from django.conf import settings
# Sent at the start of the migration of an app
pre_migrate = Signal(providing_args=["app"])
# Sent after each successful migration of an app
post_migrate = Signal(providing_args=["app"])
# Sent after each run of a par... | Add a compatibility hook to deal with creating django.contrib.auth permissions on migrated models. | Add a compatibility hook to deal with creating django.contrib.auth permissions on migrated models.
| Python | apache-2.0 | theatlantic/django-south,theatlantic/django-south | """
South-specific signals
"""
from django.dispatch import Signal
# Sent at the start of the migration of an app
pre_migrate = Signal(providing_args=["app"])
# Sent after each successful migration of an app
post_migrate = Signal(providing_args=["app"])
# Sent after each run of a particular migration in a direction
... | """
South-specific signals
"""
from django.dispatch import Signal
from django.conf import settings
# Sent at the start of the migration of an app
pre_migrate = Signal(providing_args=["app"])
# Sent after each successful migration of an app
post_migrate = Signal(providing_args=["app"])
# Sent after each run of a par... | <commit_before>"""
South-specific signals
"""
from django.dispatch import Signal
# Sent at the start of the migration of an app
pre_migrate = Signal(providing_args=["app"])
# Sent after each successful migration of an app
post_migrate = Signal(providing_args=["app"])
# Sent after each run of a particular migration ... | """
South-specific signals
"""
from django.dispatch import Signal
from django.conf import settings
# Sent at the start of the migration of an app
pre_migrate = Signal(providing_args=["app"])
# Sent after each successful migration of an app
post_migrate = Signal(providing_args=["app"])
# Sent after each run of a par... | """
South-specific signals
"""
from django.dispatch import Signal
# Sent at the start of the migration of an app
pre_migrate = Signal(providing_args=["app"])
# Sent after each successful migration of an app
post_migrate = Signal(providing_args=["app"])
# Sent after each run of a particular migration in a direction
... | <commit_before>"""
South-specific signals
"""
from django.dispatch import Signal
# Sent at the start of the migration of an app
pre_migrate = Signal(providing_args=["app"])
# Sent after each successful migration of an app
post_migrate = Signal(providing_args=["app"])
# Sent after each run of a particular migration ... |
46a568690a9a284ddc350519a15e092e1211d073 | reviewboard/site/urlresolvers.py | reviewboard/site/urlresolvers.py | from __future__ import unicode_literals
from django.core.urlresolvers import NoReverseMatch, reverse
def local_site_reverse(viewname, request=None, local_site_name=None,
args=None, kwargs=None, *func_args, **func_kwargs):
"""Reverses a URL name, returning a working URL.
This works muc... | from __future__ import unicode_literals
from django.core.urlresolvers import NoReverseMatch, reverse
def local_site_reverse(viewname, request=None, local_site_name=None,
local_site=None, args=None, kwargs=None,
*func_args, **func_kwargs):
"""Reverses a URL name, retu... | Allow local_site_reverse to take an actual LocalSite. | Allow local_site_reverse to take an actual LocalSite.
local_site_reverse was able to take a LocalSite's name, or a request
object, but if you actually had a LocalSite (or None), you'd have to
write your own conditional to extract the name and pass it.
Now, local_site_reverse can take a LocalSite. This saves a databas... | Python | mit | custode/reviewboard,custode/reviewboard,bkochendorfer/reviewboard,custode/reviewboard,brennie/reviewboard,reviewboard/reviewboard,KnowNo/reviewboard,sgallagher/reviewboard,custode/reviewboard,sgallagher/reviewboard,brennie/reviewboard,davidt/reviewboard,chipx86/reviewboard,KnowNo/reviewboard,chipx86/reviewboard,KnowNo/... | from __future__ import unicode_literals
from django.core.urlresolvers import NoReverseMatch, reverse
def local_site_reverse(viewname, request=None, local_site_name=None,
args=None, kwargs=None, *func_args, **func_kwargs):
"""Reverses a URL name, returning a working URL.
This works muc... | from __future__ import unicode_literals
from django.core.urlresolvers import NoReverseMatch, reverse
def local_site_reverse(viewname, request=None, local_site_name=None,
local_site=None, args=None, kwargs=None,
*func_args, **func_kwargs):
"""Reverses a URL name, retu... | <commit_before>from __future__ import unicode_literals
from django.core.urlresolvers import NoReverseMatch, reverse
def local_site_reverse(viewname, request=None, local_site_name=None,
args=None, kwargs=None, *func_args, **func_kwargs):
"""Reverses a URL name, returning a working URL.
... | from __future__ import unicode_literals
from django.core.urlresolvers import NoReverseMatch, reverse
def local_site_reverse(viewname, request=None, local_site_name=None,
local_site=None, args=None, kwargs=None,
*func_args, **func_kwargs):
"""Reverses a URL name, retu... | from __future__ import unicode_literals
from django.core.urlresolvers import NoReverseMatch, reverse
def local_site_reverse(viewname, request=None, local_site_name=None,
args=None, kwargs=None, *func_args, **func_kwargs):
"""Reverses a URL name, returning a working URL.
This works muc... | <commit_before>from __future__ import unicode_literals
from django.core.urlresolvers import NoReverseMatch, reverse
def local_site_reverse(viewname, request=None, local_site_name=None,
args=None, kwargs=None, *func_args, **func_kwargs):
"""Reverses a URL name, returning a working URL.
... |
c488252462a2cb860111a4826f01883e7c16b3aa | numpy/distutils/setup.py | numpy/distutils/setup.py | #!/usr/bin/env python
def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration('distutils',parent_package,top_path)
config.add_subpackage('command')
config.add_subpackage('fcompiler')
config.add_data_dir('tests')
config.add_d... | #!/usr/bin/env python
def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration('distutils',parent_package,top_path)
config.add_subpackage('command')
config.add_subpackage('fcompiler')
config.add_data_dir('tests')
config.add_d... | Make the gfortran/vs2003 hack source file known to distutils. | Make the gfortran/vs2003 hack source file known to distutils.
git-svn-id: 77a43f9646713b91fea7788fad5dfbf67e151ece@6650 94b884b6-d6fd-0310-90d3-974f1d3f35e1
| Python | bsd-3-clause | chadnetzer/numpy-gaurdro,Ademan/NumPy-GSoC,Ademan/NumPy-GSoC,teoliphant/numpy-refactor,illume/numpy3k,Ademan/NumPy-GSoC,teoliphant/numpy-refactor,chadnetzer/numpy-gaurdro,Ademan/NumPy-GSoC,illume/numpy3k,jasonmccampbell/numpy-refactor-sprint,efiring/numpy-work,efiring/numpy-work,chadnetzer/numpy-gaurdro,efiring/numpy-w... | #!/usr/bin/env python
def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration('distutils',parent_package,top_path)
config.add_subpackage('command')
config.add_subpackage('fcompiler')
config.add_data_dir('tests')
config.add_d... | #!/usr/bin/env python
def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration('distutils',parent_package,top_path)
config.add_subpackage('command')
config.add_subpackage('fcompiler')
config.add_data_dir('tests')
config.add_d... | <commit_before>#!/usr/bin/env python
def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration('distutils',parent_package,top_path)
config.add_subpackage('command')
config.add_subpackage('fcompiler')
config.add_data_dir('tests')
... | #!/usr/bin/env python
def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration('distutils',parent_package,top_path)
config.add_subpackage('command')
config.add_subpackage('fcompiler')
config.add_data_dir('tests')
config.add_d... | #!/usr/bin/env python
def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration('distutils',parent_package,top_path)
config.add_subpackage('command')
config.add_subpackage('fcompiler')
config.add_data_dir('tests')
config.add_d... | <commit_before>#!/usr/bin/env python
def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration('distutils',parent_package,top_path)
config.add_subpackage('command')
config.add_subpackage('fcompiler')
config.add_data_dir('tests')
... |
56215f65ea1513adfd574cf6fc3d118121119290 | stestr/commands/__init__.py | stestr/commands/__init__.py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under th... | Allow to import commands APIs from a single module | Allow to import commands APIs from a single module
The APIs available to run various stestr commands are distributed
in multiple modules. For ease of use make them all accessible from
the commands module.
| Python | apache-2.0 | masayukig/stestr,mtreinish/stestr,mtreinish/stestr,masayukig/stestr | Allow to import commands APIs from a single module
The APIs available to run various stestr commands are distributed
in multiple modules. For ease of use make them all accessible from
the commands module. | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under th... | <commit_before><commit_msg>Allow to import commands APIs from a single module
The APIs available to run various stestr commands are distributed
in multiple modules. For ease of use make them all accessible from
the commands module.<commit_after> | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under th... | Allow to import commands APIs from a single module
The APIs available to run various stestr commands are distributed
in multiple modules. For ease of use make them all accessible from
the commands module.# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance ... | <commit_before><commit_msg>Allow to import commands APIs from a single module
The APIs available to run various stestr commands are distributed
in multiple modules. For ease of use make them all accessible from
the commands module.<commit_after># Licensed under the Apache License, Version 2.0 (the "License"); you may
... | |
a7f7d8ff9f8279ec2c1f3981b1507001f1f94394 | test/completion/docstring.py | test/completion/docstring.py | """ Test docstrings in functions and classes, which are used to infer types """
def f(a, b):
""" asdfasdf
:param a: blablabla
:type a: str
"""
#? str()
a
#?
b
def g(a, b):
""" asdfasdf
Arguments:
a (str): blablabla
"""
#? str()
a
#?
b
| """ Test docstrings in functions and classes, which are used to infer types """
def f(a, b):
""" asdfasdf
:param a: blablabla
:type a: str
"""
#? str()
a
#?
b
def g(a, b):
""" asdfasdf
Arguments:
a (str): blablabla
"""
#? str()
a
#?
b
def e(a, b):... | Add tests for epydoc formated dosctring | Add tests for epydoc formated dosctring
| Python | mit | mfussenegger/jedi,flurischt/jedi,dwillmer/jedi,tjwei/jedi,WoLpH/jedi,jonashaag/jedi,mfussenegger/jedi,flurischt/jedi,jonashaag/jedi,tjwei/jedi,dwillmer/jedi,WoLpH/jedi | """ Test docstrings in functions and classes, which are used to infer types """
def f(a, b):
""" asdfasdf
:param a: blablabla
:type a: str
"""
#? str()
a
#?
b
def g(a, b):
""" asdfasdf
Arguments:
a (str): blablabla
"""
#? str()
a
#?
b
Add tests for... | """ Test docstrings in functions and classes, which are used to infer types """
def f(a, b):
""" asdfasdf
:param a: blablabla
:type a: str
"""
#? str()
a
#?
b
def g(a, b):
""" asdfasdf
Arguments:
a (str): blablabla
"""
#? str()
a
#?
b
def e(a, b):... | <commit_before>""" Test docstrings in functions and classes, which are used to infer types """
def f(a, b):
""" asdfasdf
:param a: blablabla
:type a: str
"""
#? str()
a
#?
b
def g(a, b):
""" asdfasdf
Arguments:
a (str): blablabla
"""
#? str()
a
#?
... | """ Test docstrings in functions and classes, which are used to infer types """
def f(a, b):
""" asdfasdf
:param a: blablabla
:type a: str
"""
#? str()
a
#?
b
def g(a, b):
""" asdfasdf
Arguments:
a (str): blablabla
"""
#? str()
a
#?
b
def e(a, b):... | """ Test docstrings in functions and classes, which are used to infer types """
def f(a, b):
""" asdfasdf
:param a: blablabla
:type a: str
"""
#? str()
a
#?
b
def g(a, b):
""" asdfasdf
Arguments:
a (str): blablabla
"""
#? str()
a
#?
b
Add tests for... | <commit_before>""" Test docstrings in functions and classes, which are used to infer types """
def f(a, b):
""" asdfasdf
:param a: blablabla
:type a: str
"""
#? str()
a
#?
b
def g(a, b):
""" asdfasdf
Arguments:
a (str): blablabla
"""
#? str()
a
#?
... |
92d5991a37c3f269e9a7e59ab5edd90b45699930 | test/style_test.py | test/style_test.py | import glob
import os
import pep8
class TestCodeFormat:
def test_pep8(self):
def match(*p):
s = list(p) + ['*.py']
return glob.glob(os.path.join(*s))
pep8style = pep8.StyleGuide(config_file='setup.cfg')
result = pep8style.check_files(
match('examples') +... | import glob
import os
import pep8
class TestCodeFormat:
def test_pep8(self):
def match(*p):
s = list(p) + ['*.py']
return glob.glob(os.path.join(*s))
pep8style = pep8.StyleGuide(config_file='setup.cfg')
result = pep8style.check_files(
match('examples') +... | Include scripts in style check. | Include scripts in style check.
| Python | mit | EmbodiedCognition/pagoda,EmbodiedCognition/pagoda | import glob
import os
import pep8
class TestCodeFormat:
def test_pep8(self):
def match(*p):
s = list(p) + ['*.py']
return glob.glob(os.path.join(*s))
pep8style = pep8.StyleGuide(config_file='setup.cfg')
result = pep8style.check_files(
match('examples') +... | import glob
import os
import pep8
class TestCodeFormat:
def test_pep8(self):
def match(*p):
s = list(p) + ['*.py']
return glob.glob(os.path.join(*s))
pep8style = pep8.StyleGuide(config_file='setup.cfg')
result = pep8style.check_files(
match('examples') +... | <commit_before>import glob
import os
import pep8
class TestCodeFormat:
def test_pep8(self):
def match(*p):
s = list(p) + ['*.py']
return glob.glob(os.path.join(*s))
pep8style = pep8.StyleGuide(config_file='setup.cfg')
result = pep8style.check_files(
matc... | import glob
import os
import pep8
class TestCodeFormat:
def test_pep8(self):
def match(*p):
s = list(p) + ['*.py']
return glob.glob(os.path.join(*s))
pep8style = pep8.StyleGuide(config_file='setup.cfg')
result = pep8style.check_files(
match('examples') +... | import glob
import os
import pep8
class TestCodeFormat:
def test_pep8(self):
def match(*p):
s = list(p) + ['*.py']
return glob.glob(os.path.join(*s))
pep8style = pep8.StyleGuide(config_file='setup.cfg')
result = pep8style.check_files(
match('examples') +... | <commit_before>import glob
import os
import pep8
class TestCodeFormat:
def test_pep8(self):
def match(*p):
s = list(p) + ['*.py']
return glob.glob(os.path.join(*s))
pep8style = pep8.StyleGuide(config_file='setup.cfg')
result = pep8style.check_files(
matc... |
cfd710e0035c885fab926690d7ea450f3f9c3845 | setup.py | setup.py | from distutils.core import setup
import os, glob, string, shutil
# Packages
packages = ['neuroimaging', 'neuroimaging.statistics', 'neuroimaging.image', 'neuroimaging.reference', 'neuroimaging.data', 'neuroimaging.image.formats', 'neuroimaging.image.formats.analyze', 'neuroimaging.fmri', 'neuroimaging.fmri.fmristat',... | import os, glob, string, shutil
from distutils.core import setup
# Packages
packages = ['neuroimaging', 'neuroimaging.statistics', 'neuroimaging.image', 'neuroimaging.reference', 'neuroimaging.data', 'neuroimaging.image.formats', 'neuroimaging.image.formats.analyze', 'neuroimaging.fmri', 'neuroimaging.fmri.fmristat',... | Test edit - to check svn email hook | Test edit - to check svn email hook
| Python | bsd-3-clause | matthew-brett/draft-statsmodels,matthew-brett/draft-statsmodels | from distutils.core import setup
import os, glob, string, shutil
# Packages
packages = ['neuroimaging', 'neuroimaging.statistics', 'neuroimaging.image', 'neuroimaging.reference', 'neuroimaging.data', 'neuroimaging.image.formats', 'neuroimaging.image.formats.analyze', 'neuroimaging.fmri', 'neuroimaging.fmri.fmristat',... | import os, glob, string, shutil
from distutils.core import setup
# Packages
packages = ['neuroimaging', 'neuroimaging.statistics', 'neuroimaging.image', 'neuroimaging.reference', 'neuroimaging.data', 'neuroimaging.image.formats', 'neuroimaging.image.formats.analyze', 'neuroimaging.fmri', 'neuroimaging.fmri.fmristat',... | <commit_before>from distutils.core import setup
import os, glob, string, shutil
# Packages
packages = ['neuroimaging', 'neuroimaging.statistics', 'neuroimaging.image', 'neuroimaging.reference', 'neuroimaging.data', 'neuroimaging.image.formats', 'neuroimaging.image.formats.analyze', 'neuroimaging.fmri', 'neuroimaging.... | import os, glob, string, shutil
from distutils.core import setup
# Packages
packages = ['neuroimaging', 'neuroimaging.statistics', 'neuroimaging.image', 'neuroimaging.reference', 'neuroimaging.data', 'neuroimaging.image.formats', 'neuroimaging.image.formats.analyze', 'neuroimaging.fmri', 'neuroimaging.fmri.fmristat',... | from distutils.core import setup
import os, glob, string, shutil
# Packages
packages = ['neuroimaging', 'neuroimaging.statistics', 'neuroimaging.image', 'neuroimaging.reference', 'neuroimaging.data', 'neuroimaging.image.formats', 'neuroimaging.image.formats.analyze', 'neuroimaging.fmri', 'neuroimaging.fmri.fmristat',... | <commit_before>from distutils.core import setup
import os, glob, string, shutil
# Packages
packages = ['neuroimaging', 'neuroimaging.statistics', 'neuroimaging.image', 'neuroimaging.reference', 'neuroimaging.data', 'neuroimaging.image.formats', 'neuroimaging.image.formats.analyze', 'neuroimaging.fmri', 'neuroimaging.... |
a848ab0489b0419592dec6f2b5b728863bf0bebf | setup.py | setup.py | from distutils.core import setup
setup(
name = 'missingno',
packages = ['missingno'], # this must be the same as the name above
install_requires=['numpy', 'matplotlib'],
py_modules=['missingno'],
version = '0.1.1',
description = 'Missing data visualization module for Python.',
author = 'Aleksey Bilogur',
... | from setuptools import setup
setup(
name = 'missingno',
packages = ['missingno'], # this must be the same as the name above
install_requires=['numpy', 'matplotlib'],
py_modules=['missingno'],
version = '0.1.1',
description = 'Missing data visualization module for Python.',
author = 'Aleksey Bilogur',
au... | Switch to 'more correct' distributor. | Switch to 'more correct' distributor.
| Python | mit | ResidentMario/missingno | from distutils.core import setup
setup(
name = 'missingno',
packages = ['missingno'], # this must be the same as the name above
install_requires=['numpy', 'matplotlib'],
py_modules=['missingno'],
version = '0.1.1',
description = 'Missing data visualization module for Python.',
author = 'Aleksey Bilogur',
... | from setuptools import setup
setup(
name = 'missingno',
packages = ['missingno'], # this must be the same as the name above
install_requires=['numpy', 'matplotlib'],
py_modules=['missingno'],
version = '0.1.1',
description = 'Missing data visualization module for Python.',
author = 'Aleksey Bilogur',
au... | <commit_before>from distutils.core import setup
setup(
name = 'missingno',
packages = ['missingno'], # this must be the same as the name above
install_requires=['numpy', 'matplotlib'],
py_modules=['missingno'],
version = '0.1.1',
description = 'Missing data visualization module for Python.',
author = 'Ale... | from setuptools import setup
setup(
name = 'missingno',
packages = ['missingno'], # this must be the same as the name above
install_requires=['numpy', 'matplotlib'],
py_modules=['missingno'],
version = '0.1.1',
description = 'Missing data visualization module for Python.',
author = 'Aleksey Bilogur',
au... | from distutils.core import setup
setup(
name = 'missingno',
packages = ['missingno'], # this must be the same as the name above
install_requires=['numpy', 'matplotlib'],
py_modules=['missingno'],
version = '0.1.1',
description = 'Missing data visualization module for Python.',
author = 'Aleksey Bilogur',
... | <commit_before>from distutils.core import setup
setup(
name = 'missingno',
packages = ['missingno'], # this must be the same as the name above
install_requires=['numpy', 'matplotlib'],
py_modules=['missingno'],
version = '0.1.1',
description = 'Missing data visualization module for Python.',
author = 'Ale... |
a74ad2850521eea430c0144b433707e0e9d5bb88 | setup.py | setup.py | from setuptools import setup, find_packages
exec(open('keras_vggface/version.py').read())
setup(name='keras_vggface',
version=__version__,
description='VGGFace implementation with Keras framework',
url='https://github.com/rcmalli/keras-vggface',
author='Refik Can MALLI',
author_email = "ma... | from setuptools import setup, find_packages
exec(open('keras_vggface/version.py').read())
setup(
name='keras_vggface',
version=__version__,
description='VGGFace implementation with Keras framework',
url='https://github.com/rcmalli/keras-vggface',
author='Refik Can MALLI',
author_email="mallir@it... | Make tensorflow be optional to allow using tensorflow-gpu | Make tensorflow be optional to allow using tensorflow-gpu
| Python | mit | rcmalli/keras-vggface | from setuptools import setup, find_packages
exec(open('keras_vggface/version.py').read())
setup(name='keras_vggface',
version=__version__,
description='VGGFace implementation with Keras framework',
url='https://github.com/rcmalli/keras-vggface',
author='Refik Can MALLI',
author_email = "ma... | from setuptools import setup, find_packages
exec(open('keras_vggface/version.py').read())
setup(
name='keras_vggface',
version=__version__,
description='VGGFace implementation with Keras framework',
url='https://github.com/rcmalli/keras-vggface',
author='Refik Can MALLI',
author_email="mallir@it... | <commit_before>from setuptools import setup, find_packages
exec(open('keras_vggface/version.py').read())
setup(name='keras_vggface',
version=__version__,
description='VGGFace implementation with Keras framework',
url='https://github.com/rcmalli/keras-vggface',
author='Refik Can MALLI',
aut... | from setuptools import setup, find_packages
exec(open('keras_vggface/version.py').read())
setup(
name='keras_vggface',
version=__version__,
description='VGGFace implementation with Keras framework',
url='https://github.com/rcmalli/keras-vggface',
author='Refik Can MALLI',
author_email="mallir@it... | from setuptools import setup, find_packages
exec(open('keras_vggface/version.py').read())
setup(name='keras_vggface',
version=__version__,
description='VGGFace implementation with Keras framework',
url='https://github.com/rcmalli/keras-vggface',
author='Refik Can MALLI',
author_email = "ma... | <commit_before>from setuptools import setup, find_packages
exec(open('keras_vggface/version.py').read())
setup(name='keras_vggface',
version=__version__,
description='VGGFace implementation with Keras framework',
url='https://github.com/rcmalli/keras-vggface',
author='Refik Can MALLI',
aut... |
ce966cd73ff3dc37fd534fc7ae41e47b05782a4e | setup.py | setup.py | from setuptools import setup, find_packages
def read(fname):
with open(fname) as fp:
content = fp.read()
return content
setup(
name='munerator',
version="0.10.11",
description='Manager of OpenArena battles',
long_description=read("README.rst"),
author='Johan Bloemberg',
author... | from setuptools import setup, find_packages
def read(fname):
with open(fname) as fp:
content = fp.read()
return content
setup(
name='munerator',
version="0.10.12",
description='Manager of OpenArena battles',
long_description=read("README.rst"),
author='Johan Bloemberg',
author... | Split extra requires for store and restapi | Split extra requires for store and restapi
| Python | mit | aequitas/munerator,aequitas/munerator,aequitas/munerator,aequitas/munerator | from setuptools import setup, find_packages
def read(fname):
with open(fname) as fp:
content = fp.read()
return content
setup(
name='munerator',
version="0.10.11",
description='Manager of OpenArena battles',
long_description=read("README.rst"),
author='Johan Bloemberg',
author... | from setuptools import setup, find_packages
def read(fname):
with open(fname) as fp:
content = fp.read()
return content
setup(
name='munerator',
version="0.10.12",
description='Manager of OpenArena battles',
long_description=read("README.rst"),
author='Johan Bloemberg',
author... | <commit_before>from setuptools import setup, find_packages
def read(fname):
with open(fname) as fp:
content = fp.read()
return content
setup(
name='munerator',
version="0.10.11",
description='Manager of OpenArena battles',
long_description=read("README.rst"),
author='Johan Bloembe... | from setuptools import setup, find_packages
def read(fname):
with open(fname) as fp:
content = fp.read()
return content
setup(
name='munerator',
version="0.10.12",
description='Manager of OpenArena battles',
long_description=read("README.rst"),
author='Johan Bloemberg',
author... | from setuptools import setup, find_packages
def read(fname):
with open(fname) as fp:
content = fp.read()
return content
setup(
name='munerator',
version="0.10.11",
description='Manager of OpenArena battles',
long_description=read("README.rst"),
author='Johan Bloemberg',
author... | <commit_before>from setuptools import setup, find_packages
def read(fname):
with open(fname) as fp:
content = fp.read()
return content
setup(
name='munerator',
version="0.10.11",
description='Manager of OpenArena battles',
long_description=read("README.rst"),
author='Johan Bloembe... |
4ffdbaf30c46ff886c7eb2e9e9686679a5045e49 | setup.py | setup.py | from setuptools import setup
PACKAGE = 'TracBacklog'
VERSION = '0.1'
setup(name=PACKAGE,
version=VERSION,
packages=['backlog'],
package_data={
'backlog': [
'htdocs/css/*.css',
'htdocs/img/*.png',
'htdocs/js/*.js',
'htdocs/js/dojo/*.js',
... | from setuptools import setup
PACKAGE = 'TracBacklog'
VERSION = '0.1'
setup(name=PACKAGE,
version=VERSION,
packages=['backlog'],
package_data={
'backlog': [
'htdocs/css/*.css',
'htdocs/img/*.png',
'htdocs/js/*.js',
'htdocs/js/dojo/*.js',
... | Use a different method of specifying the entry point. | Use a different method of specifying the entry point. | Python | bsd-3-clause | jszakmeister/trac-backlog,jszakmeister/trac-backlog | from setuptools import setup
PACKAGE = 'TracBacklog'
VERSION = '0.1'
setup(name=PACKAGE,
version=VERSION,
packages=['backlog'],
package_data={
'backlog': [
'htdocs/css/*.css',
'htdocs/img/*.png',
'htdocs/js/*.js',
'htdocs/js/dojo/*.js',
... | from setuptools import setup
PACKAGE = 'TracBacklog'
VERSION = '0.1'
setup(name=PACKAGE,
version=VERSION,
packages=['backlog'],
package_data={
'backlog': [
'htdocs/css/*.css',
'htdocs/img/*.png',
'htdocs/js/*.js',
'htdocs/js/dojo/*.js',
... | <commit_before>from setuptools import setup
PACKAGE = 'TracBacklog'
VERSION = '0.1'
setup(name=PACKAGE,
version=VERSION,
packages=['backlog'],
package_data={
'backlog': [
'htdocs/css/*.css',
'htdocs/img/*.png',
'htdocs/js/*.js',
'htdocs/js/dojo... | from setuptools import setup
PACKAGE = 'TracBacklog'
VERSION = '0.1'
setup(name=PACKAGE,
version=VERSION,
packages=['backlog'],
package_data={
'backlog': [
'htdocs/css/*.css',
'htdocs/img/*.png',
'htdocs/js/*.js',
'htdocs/js/dojo/*.js',
... | from setuptools import setup
PACKAGE = 'TracBacklog'
VERSION = '0.1'
setup(name=PACKAGE,
version=VERSION,
packages=['backlog'],
package_data={
'backlog': [
'htdocs/css/*.css',
'htdocs/img/*.png',
'htdocs/js/*.js',
'htdocs/js/dojo/*.js',
... | <commit_before>from setuptools import setup
PACKAGE = 'TracBacklog'
VERSION = '0.1'
setup(name=PACKAGE,
version=VERSION,
packages=['backlog'],
package_data={
'backlog': [
'htdocs/css/*.css',
'htdocs/img/*.png',
'htdocs/js/*.js',
'htdocs/js/dojo... |
d1fb5fbef04fde818abd1eb6ac38805058addafb | setup.py | setup.py | import re
from setuptools import setup, find_packages
versionPattern = re.compile(r"""^__version__ = ['"](.*?)['"]$""", re.M)
with open("fusion_index/_version.py", "rt") as f:
version = versionPattern.search(f.read()).group(1)
setup(
name='fusion-index',
version=version,
description='Lookup/search in... | import re
from setuptools import setup, find_packages
versionPattern = re.compile(r"""^__version__ = ['"](.*?)['"]$""", re.M)
with open("fusion_index/_version.py", "rt") as f:
version = versionPattern.search(f.read()).group(1)
setup(
name='fusion-index',
version=version,
description='Lookup/search in... | Add Characteristic to depends since we are using it directly now. | Add Characteristic to depends since we are using it directly now.
--HG--
branch : 1-lookup-index
| Python | mit | fusionapp/fusion-index | import re
from setuptools import setup, find_packages
versionPattern = re.compile(r"""^__version__ = ['"](.*?)['"]$""", re.M)
with open("fusion_index/_version.py", "rt") as f:
version = versionPattern.search(f.read()).group(1)
setup(
name='fusion-index',
version=version,
description='Lookup/search in... | import re
from setuptools import setup, find_packages
versionPattern = re.compile(r"""^__version__ = ['"](.*?)['"]$""", re.M)
with open("fusion_index/_version.py", "rt") as f:
version = versionPattern.search(f.read()).group(1)
setup(
name='fusion-index',
version=version,
description='Lookup/search in... | <commit_before>import re
from setuptools import setup, find_packages
versionPattern = re.compile(r"""^__version__ = ['"](.*?)['"]$""", re.M)
with open("fusion_index/_version.py", "rt") as f:
version = versionPattern.search(f.read()).group(1)
setup(
name='fusion-index',
version=version,
description='L... | import re
from setuptools import setup, find_packages
versionPattern = re.compile(r"""^__version__ = ['"](.*?)['"]$""", re.M)
with open("fusion_index/_version.py", "rt") as f:
version = versionPattern.search(f.read()).group(1)
setup(
name='fusion-index',
version=version,
description='Lookup/search in... | import re
from setuptools import setup, find_packages
versionPattern = re.compile(r"""^__version__ = ['"](.*?)['"]$""", re.M)
with open("fusion_index/_version.py", "rt") as f:
version = versionPattern.search(f.read()).group(1)
setup(
name='fusion-index',
version=version,
description='Lookup/search in... | <commit_before>import re
from setuptools import setup, find_packages
versionPattern = re.compile(r"""^__version__ = ['"](.*?)['"]$""", re.M)
with open("fusion_index/_version.py", "rt") as f:
version = versionPattern.search(f.read()).group(1)
setup(
name='fusion-index',
version=version,
description='L... |
11d4763b093d0f1006051e892277d33ca273916c | setup.py | setup.py | from setuptools import setup, find_packages
import re
with open("README.rst", mode='r') as readme_file:
text=readme_file.read()
#below version code pulled from requests module
with open('__init__.py', 'r') as fd:
version_number = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
fd... | from setuptools import setup, find_packages
import re
with open("README.rst", mode='r') as readme_file:
text=readme_file.read()
#below version code pulled from requests module
with open('__init__.py', 'r') as fd:
version_number = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
... | Fix continuation whitespace and add extras_require | Fix continuation whitespace and add extras_require
| Python | lgpl-2.1 | rlee287/pyautoupdate,rlee287/pyautoupdate | from setuptools import setup, find_packages
import re
with open("README.rst", mode='r') as readme_file:
text=readme_file.read()
#below version code pulled from requests module
with open('__init__.py', 'r') as fd:
version_number = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
fd... | from setuptools import setup, find_packages
import re
with open("README.rst", mode='r') as readme_file:
text=readme_file.read()
#below version code pulled from requests module
with open('__init__.py', 'r') as fd:
version_number = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
... | <commit_before>from setuptools import setup, find_packages
import re
with open("README.rst", mode='r') as readme_file:
text=readme_file.read()
#below version code pulled from requests module
with open('__init__.py', 'r') as fd:
version_number = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
... | from setuptools import setup, find_packages
import re
with open("README.rst", mode='r') as readme_file:
text=readme_file.read()
#below version code pulled from requests module
with open('__init__.py', 'r') as fd:
version_number = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
... | from setuptools import setup, find_packages
import re
with open("README.rst", mode='r') as readme_file:
text=readme_file.read()
#below version code pulled from requests module
with open('__init__.py', 'r') as fd:
version_number = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
fd... | <commit_before>from setuptools import setup, find_packages
import re
with open("README.rst", mode='r') as readme_file:
text=readme_file.read()
#below version code pulled from requests module
with open('__init__.py', 'r') as fd:
version_number = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
... |
5958f80d456a43654c5013d38569554940e754f4 | tests/dojo_test.py | tests/dojo_test.py | import unittest
from src.dojo import Dojo
class TestCreateRoom (unittest.TestCase):
def setUp(self):
self.dojo = Dojo()
self.test_office = self.dojo.create_room("office", "test")
self.test_living_space = self.dojo.create_room("living_space", "test living space")
def test_create_room_... | import unittest
from src.dojo import Dojo
class TestCreateRoom (unittest.TestCase):
def setUp(self):
self.dojo = Dojo()
self.test_office = self.dojo.create_room("office", "test")
self.test_living_space = self.dojo.create_room("living_space", "test living space")
def test_create_room_... | Change test for multiple rooms to use test set-up | Change test for multiple rooms to use test set-up
| Python | mit | EdwinKato/Space-Allocator,EdwinKato/Space-Allocator | import unittest
from src.dojo import Dojo
class TestCreateRoom (unittest.TestCase):
def setUp(self):
self.dojo = Dojo()
self.test_office = self.dojo.create_room("office", "test")
self.test_living_space = self.dojo.create_room("living_space", "test living space")
def test_create_room_... | import unittest
from src.dojo import Dojo
class TestCreateRoom (unittest.TestCase):
def setUp(self):
self.dojo = Dojo()
self.test_office = self.dojo.create_room("office", "test")
self.test_living_space = self.dojo.create_room("living_space", "test living space")
def test_create_room_... | <commit_before>import unittest
from src.dojo import Dojo
class TestCreateRoom (unittest.TestCase):
def setUp(self):
self.dojo = Dojo()
self.test_office = self.dojo.create_room("office", "test")
self.test_living_space = self.dojo.create_room("living_space", "test living space")
def te... | import unittest
from src.dojo import Dojo
class TestCreateRoom (unittest.TestCase):
def setUp(self):
self.dojo = Dojo()
self.test_office = self.dojo.create_room("office", "test")
self.test_living_space = self.dojo.create_room("living_space", "test living space")
def test_create_room_... | import unittest
from src.dojo import Dojo
class TestCreateRoom (unittest.TestCase):
def setUp(self):
self.dojo = Dojo()
self.test_office = self.dojo.create_room("office", "test")
self.test_living_space = self.dojo.create_room("living_space", "test living space")
def test_create_room_... | <commit_before>import unittest
from src.dojo import Dojo
class TestCreateRoom (unittest.TestCase):
def setUp(self):
self.dojo = Dojo()
self.test_office = self.dojo.create_room("office", "test")
self.test_living_space = self.dojo.create_room("living_space", "test living space")
def te... |
2f75cf84d37869e49dd3820d00a2fa69ab57a219 | setup.py | setup.py | #!/usr/bin/env python
# encoding=utf-8
from __future__ import print_function
import os
import sys
from setuptools import setup
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.md')).read()
needs_pytest = set(['pytest', 'test', 'ptr']).intersection(sys.argv)
pytest_runner = ['... | #!/usr/bin/env python
# encoding=utf-8
from __future__ import print_function
import os
import sys
from setuptools import setup
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.md')).read()
needs_pytest = set(['pytest', 'test', 'ptr']).intersection(sys.argv)
pytest_runner = ['... | Update dependency to work on conda | Update dependency to work on conda
requests_oauthlib dependency name will only install from pip, requests-oauthlib works on both conda and pip | Python | mit | mwclient/mwclient | #!/usr/bin/env python
# encoding=utf-8
from __future__ import print_function
import os
import sys
from setuptools import setup
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.md')).read()
needs_pytest = set(['pytest', 'test', 'ptr']).intersection(sys.argv)
pytest_runner = ['... | #!/usr/bin/env python
# encoding=utf-8
from __future__ import print_function
import os
import sys
from setuptools import setup
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.md')).read()
needs_pytest = set(['pytest', 'test', 'ptr']).intersection(sys.argv)
pytest_runner = ['... | <commit_before>#!/usr/bin/env python
# encoding=utf-8
from __future__ import print_function
import os
import sys
from setuptools import setup
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.md')).read()
needs_pytest = set(['pytest', 'test', 'ptr']).intersection(sys.argv)
pyt... | #!/usr/bin/env python
# encoding=utf-8
from __future__ import print_function
import os
import sys
from setuptools import setup
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.md')).read()
needs_pytest = set(['pytest', 'test', 'ptr']).intersection(sys.argv)
pytest_runner = ['... | #!/usr/bin/env python
# encoding=utf-8
from __future__ import print_function
import os
import sys
from setuptools import setup
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.md')).read()
needs_pytest = set(['pytest', 'test', 'ptr']).intersection(sys.argv)
pytest_runner = ['... | <commit_before>#!/usr/bin/env python
# encoding=utf-8
from __future__ import print_function
import os
import sys
from setuptools import setup
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.md')).read()
needs_pytest = set(['pytest', 'test', 'ptr']).intersection(sys.argv)
pyt... |
2ee7bba787a29f715805b038fb98eda767534f10 | setup.py | setup.py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
from setuptools import setup
setup(
name='pybreaker',
version='0.6.0',
description='Python implementation of the Circuit Breaker pattern',
long_description=open('README.rst', 'r').read(),
keywords=['design', 'pattern', 'circuit', 'breaker', 'integration'... | #!/usr/bin/env python
#-*- coding:utf-8 -*-
from setuptools import setup
setup(
name='pybreaker',
version='0.6.0',
description='Python implementation of the Circuit Breaker pattern',
long_description=open('README.rst', 'r').read(),
keywords=['design', 'pattern', 'circuit', 'breaker', 'integration'... | Update classifiers to drop support for Python 2.7 | Update classifiers to drop support for Python 2.7 | Python | bsd-3-clause | danielfm/pybreaker | #!/usr/bin/env python
#-*- coding:utf-8 -*-
from setuptools import setup
setup(
name='pybreaker',
version='0.6.0',
description='Python implementation of the Circuit Breaker pattern',
long_description=open('README.rst', 'r').read(),
keywords=['design', 'pattern', 'circuit', 'breaker', 'integration'... | #!/usr/bin/env python
#-*- coding:utf-8 -*-
from setuptools import setup
setup(
name='pybreaker',
version='0.6.0',
description='Python implementation of the Circuit Breaker pattern',
long_description=open('README.rst', 'r').read(),
keywords=['design', 'pattern', 'circuit', 'breaker', 'integration'... | <commit_before>#!/usr/bin/env python
#-*- coding:utf-8 -*-
from setuptools import setup
setup(
name='pybreaker',
version='0.6.0',
description='Python implementation of the Circuit Breaker pattern',
long_description=open('README.rst', 'r').read(),
keywords=['design', 'pattern', 'circuit', 'breaker'... | #!/usr/bin/env python
#-*- coding:utf-8 -*-
from setuptools import setup
setup(
name='pybreaker',
version='0.6.0',
description='Python implementation of the Circuit Breaker pattern',
long_description=open('README.rst', 'r').read(),
keywords=['design', 'pattern', 'circuit', 'breaker', 'integration'... | #!/usr/bin/env python
#-*- coding:utf-8 -*-
from setuptools import setup
setup(
name='pybreaker',
version='0.6.0',
description='Python implementation of the Circuit Breaker pattern',
long_description=open('README.rst', 'r').read(),
keywords=['design', 'pattern', 'circuit', 'breaker', 'integration'... | <commit_before>#!/usr/bin/env python
#-*- coding:utf-8 -*-
from setuptools import setup
setup(
name='pybreaker',
version='0.6.0',
description='Python implementation of the Circuit Breaker pattern',
long_description=open('README.rst', 'r').read(),
keywords=['design', 'pattern', 'circuit', 'breaker'... |
97f5bbf5c99a40b8204c1e818e3bc8d897f822f0 | setup.py | setup.py | import sys
from setuptools import setup
from betfairlightweight.__init__ import __version__
INSTALL_REQUIRES = [
'requests',
]
TEST_REQUIRES = [
'mock'
]
if sys.version_info < (3,4):
INSTALL_REQUIRES.extend([
'enum34',
])
setup(
name='betfairlightweight',
version=__version__... | import sys
import re
from setuptools import setup
INSTALL_REQUIRES = [
'requests',
]
TEST_REQUIRES = [
'mock'
]
if sys.version_info < (3,4):
INSTALL_REQUIRES.extend([
'enum34',
])
with open('betfairlightweight/__init__.py', 'r') as f:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"... | Read __version__ with regex to avoid ImportError | Read __version__ with regex to avoid ImportError
| Python | mit | liampauling/betfairlightweight,liampauling/betfair | import sys
from setuptools import setup
from betfairlightweight.__init__ import __version__
INSTALL_REQUIRES = [
'requests',
]
TEST_REQUIRES = [
'mock'
]
if sys.version_info < (3,4):
INSTALL_REQUIRES.extend([
'enum34',
])
setup(
name='betfairlightweight',
version=__version__... | import sys
import re
from setuptools import setup
INSTALL_REQUIRES = [
'requests',
]
TEST_REQUIRES = [
'mock'
]
if sys.version_info < (3,4):
INSTALL_REQUIRES.extend([
'enum34',
])
with open('betfairlightweight/__init__.py', 'r') as f:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"... | <commit_before>import sys
from setuptools import setup
from betfairlightweight.__init__ import __version__
INSTALL_REQUIRES = [
'requests',
]
TEST_REQUIRES = [
'mock'
]
if sys.version_info < (3,4):
INSTALL_REQUIRES.extend([
'enum34',
])
setup(
name='betfairlightweight',
vers... | import sys
import re
from setuptools import setup
INSTALL_REQUIRES = [
'requests',
]
TEST_REQUIRES = [
'mock'
]
if sys.version_info < (3,4):
INSTALL_REQUIRES.extend([
'enum34',
])
with open('betfairlightweight/__init__.py', 'r') as f:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"... | import sys
from setuptools import setup
from betfairlightweight.__init__ import __version__
INSTALL_REQUIRES = [
'requests',
]
TEST_REQUIRES = [
'mock'
]
if sys.version_info < (3,4):
INSTALL_REQUIRES.extend([
'enum34',
])
setup(
name='betfairlightweight',
version=__version__... | <commit_before>import sys
from setuptools import setup
from betfairlightweight.__init__ import __version__
INSTALL_REQUIRES = [
'requests',
]
TEST_REQUIRES = [
'mock'
]
if sys.version_info < (3,4):
INSTALL_REQUIRES.extend([
'enum34',
])
setup(
name='betfairlightweight',
vers... |
67a12d44699e4bb8e3b6895ab10c9bb2477ed7fc | tests/fd_io.py | tests/fd_io.py | from filedes.test.base import BaseFDTestCase
from filedes import FD
import os
import errno
class TestFDIO(BaseFDTestCase):
def testReadWrite(self):
r, w = os.pipe()
self.assertEquals(FD(w).write("OK"), 2)
self.assertEquals(FD(r).read(2), "OK")
FD(r).close()
FD(w).close()
... | from filedes.test.base import BaseFDTestCase
from filedes import FD
import os
import errno
class TestFDIO(BaseFDTestCase):
def testReadWrite(self):
r, w = os.pipe()
self.assertEquals(FD(w).write("OK"), 2)
self.assertEquals(FD(r).read(2), "OK")
FD(r).close()
FD(w).close()
... | Check for EBADF in write-to-closed fd test case | Check for EBADF in write-to-closed fd test case
| Python | isc | fmoo/python-filedes,fmoo/python-filedes | from filedes.test.base import BaseFDTestCase
from filedes import FD
import os
import errno
class TestFDIO(BaseFDTestCase):
def testReadWrite(self):
r, w = os.pipe()
self.assertEquals(FD(w).write("OK"), 2)
self.assertEquals(FD(r).read(2), "OK")
FD(r).close()
FD(w).close()
... | from filedes.test.base import BaseFDTestCase
from filedes import FD
import os
import errno
class TestFDIO(BaseFDTestCase):
def testReadWrite(self):
r, w = os.pipe()
self.assertEquals(FD(w).write("OK"), 2)
self.assertEquals(FD(r).read(2), "OK")
FD(r).close()
FD(w).close()
... | <commit_before>from filedes.test.base import BaseFDTestCase
from filedes import FD
import os
import errno
class TestFDIO(BaseFDTestCase):
def testReadWrite(self):
r, w = os.pipe()
self.assertEquals(FD(w).write("OK"), 2)
self.assertEquals(FD(r).read(2), "OK")
FD(r).close()
F... | from filedes.test.base import BaseFDTestCase
from filedes import FD
import os
import errno
class TestFDIO(BaseFDTestCase):
def testReadWrite(self):
r, w = os.pipe()
self.assertEquals(FD(w).write("OK"), 2)
self.assertEquals(FD(r).read(2), "OK")
FD(r).close()
FD(w).close()
... | from filedes.test.base import BaseFDTestCase
from filedes import FD
import os
import errno
class TestFDIO(BaseFDTestCase):
def testReadWrite(self):
r, w = os.pipe()
self.assertEquals(FD(w).write("OK"), 2)
self.assertEquals(FD(r).read(2), "OK")
FD(r).close()
FD(w).close()
... | <commit_before>from filedes.test.base import BaseFDTestCase
from filedes import FD
import os
import errno
class TestFDIO(BaseFDTestCase):
def testReadWrite(self):
r, w = os.pipe()
self.assertEquals(FD(w).write("OK"), 2)
self.assertEquals(FD(r).read(2), "OK")
FD(r).close()
F... |
912b8a90472fc39f7c5d3b8e1e44b57aa88c0b02 | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
setup(name='Numspell',
version='0.9',
description='A Python module for spelling numbers',
author='Alexei Sholik',
author_email='[email protected]',
url='https://github.com/alco/numspell',
license="MIT",
packages=['nums... | #!/usr/bin/env python
from distutils.core import setup
setup(name='Numspell',
version='0.9',
description='A Python module for spelling numbers',
author='Alexei Sholik',
author_email='[email protected]',
url='https://github.com/alco/numspell',
license="MIT",
packages=['nums... | Add more idiomatic (and also portable) way to install `spellnum` script | Add more idiomatic (and also portable) way to install `spellnum` script
| Python | mit | alco/numspell,alco/numspell | #!/usr/bin/env python
from distutils.core import setup
setup(name='Numspell',
version='0.9',
description='A Python module for spelling numbers',
author='Alexei Sholik',
author_email='[email protected]',
url='https://github.com/alco/numspell',
license="MIT",
packages=['nums... | #!/usr/bin/env python
from distutils.core import setup
setup(name='Numspell',
version='0.9',
description='A Python module for spelling numbers',
author='Alexei Sholik',
author_email='[email protected]',
url='https://github.com/alco/numspell',
license="MIT",
packages=['nums... | <commit_before>#!/usr/bin/env python
from distutils.core import setup
setup(name='Numspell',
version='0.9',
description='A Python module for spelling numbers',
author='Alexei Sholik',
author_email='[email protected]',
url='https://github.com/alco/numspell',
license="MIT",
... | #!/usr/bin/env python
from distutils.core import setup
setup(name='Numspell',
version='0.9',
description='A Python module for spelling numbers',
author='Alexei Sholik',
author_email='[email protected]',
url='https://github.com/alco/numspell',
license="MIT",
packages=['nums... | #!/usr/bin/env python
from distutils.core import setup
setup(name='Numspell',
version='0.9',
description='A Python module for spelling numbers',
author='Alexei Sholik',
author_email='[email protected]',
url='https://github.com/alco/numspell',
license="MIT",
packages=['nums... | <commit_before>#!/usr/bin/env python
from distutils.core import setup
setup(name='Numspell',
version='0.9',
description='A Python module for spelling numbers',
author='Alexei Sholik',
author_email='[email protected]',
url='https://github.com/alco/numspell',
license="MIT",
... |
7bbdd8b41e6cb2afb64a7b860e51553748a160bc | setup.py | setup.py | import setuptools
setuptools.setup(
name="Mongothon",
version="0.7.16",
author="Tom Leach",
author_email="[email protected]",
description="A MongoDB object-document mapping layer for Python",
license="BSD",
keywords="mongo mongodb database pymongo odm validation",
url="http://github.com/gamech... | import setuptools
setuptools.setup(
name="Mongothon",
version="0.7.17",
author="Tom Leach",
author_email="[email protected]",
description="A MongoDB object-document mapping layer for Python",
license="BSD",
keywords="mongo mongodb database pymongo odm validation",
url="http://github.com/gamech... | Use new version of Schemer and make the version float | Use new version of Schemer and make the version float
| Python | mit | gamechanger/mongothon | import setuptools
setuptools.setup(
name="Mongothon",
version="0.7.16",
author="Tom Leach",
author_email="[email protected]",
description="A MongoDB object-document mapping layer for Python",
license="BSD",
keywords="mongo mongodb database pymongo odm validation",
url="http://github.com/gamech... | import setuptools
setuptools.setup(
name="Mongothon",
version="0.7.17",
author="Tom Leach",
author_email="[email protected]",
description="A MongoDB object-document mapping layer for Python",
license="BSD",
keywords="mongo mongodb database pymongo odm validation",
url="http://github.com/gamech... | <commit_before>import setuptools
setuptools.setup(
name="Mongothon",
version="0.7.16",
author="Tom Leach",
author_email="[email protected]",
description="A MongoDB object-document mapping layer for Python",
license="BSD",
keywords="mongo mongodb database pymongo odm validation",
url="http://gi... | import setuptools
setuptools.setup(
name="Mongothon",
version="0.7.17",
author="Tom Leach",
author_email="[email protected]",
description="A MongoDB object-document mapping layer for Python",
license="BSD",
keywords="mongo mongodb database pymongo odm validation",
url="http://github.com/gamech... | import setuptools
setuptools.setup(
name="Mongothon",
version="0.7.16",
author="Tom Leach",
author_email="[email protected]",
description="A MongoDB object-document mapping layer for Python",
license="BSD",
keywords="mongo mongodb database pymongo odm validation",
url="http://github.com/gamech... | <commit_before>import setuptools
setuptools.setup(
name="Mongothon",
version="0.7.16",
author="Tom Leach",
author_email="[email protected]",
description="A MongoDB object-document mapping layer for Python",
license="BSD",
keywords="mongo mongodb database pymongo odm validation",
url="http://gi... |
9dcd5a0f963a716e669d59429b3a8242cd65ffab | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
packages = find_packages()
desc = open("README.md").read(),
setup(name='cooperhewitt-swatchbook',
version='0.3',
description='Cooper Hewitt\'s Python tools for wrangling colours',
long_description=desc,
author='Cooper Hewitt Sm... | #!/usr/bin/env python
from setuptools import setup, find_packages
packages = find_packages()
desc = open("README.md").read(),
setup(name='cooperhewitt-swatchbook',
version='0.3',
description='Cooper Hewitt\'s Python tools for wrangling colours',
long_description=desc,
author='Cooper Hewitt Sm... | Add pip requirements support with install_requires | Add pip requirements support with install_requires
| Python | bsd-3-clause | cooperhewitt/py-cooperhewitt-swatchbook | #!/usr/bin/env python
from setuptools import setup, find_packages
packages = find_packages()
desc = open("README.md").read(),
setup(name='cooperhewitt-swatchbook',
version='0.3',
description='Cooper Hewitt\'s Python tools for wrangling colours',
long_description=desc,
author='Cooper Hewitt Sm... | #!/usr/bin/env python
from setuptools import setup, find_packages
packages = find_packages()
desc = open("README.md").read(),
setup(name='cooperhewitt-swatchbook',
version='0.3',
description='Cooper Hewitt\'s Python tools for wrangling colours',
long_description=desc,
author='Cooper Hewitt Sm... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
packages = find_packages()
desc = open("README.md").read(),
setup(name='cooperhewitt-swatchbook',
version='0.3',
description='Cooper Hewitt\'s Python tools for wrangling colours',
long_description=desc,
author='C... | #!/usr/bin/env python
from setuptools import setup, find_packages
packages = find_packages()
desc = open("README.md").read(),
setup(name='cooperhewitt-swatchbook',
version='0.3',
description='Cooper Hewitt\'s Python tools for wrangling colours',
long_description=desc,
author='Cooper Hewitt Sm... | #!/usr/bin/env python
from setuptools import setup, find_packages
packages = find_packages()
desc = open("README.md").read(),
setup(name='cooperhewitt-swatchbook',
version='0.3',
description='Cooper Hewitt\'s Python tools for wrangling colours',
long_description=desc,
author='Cooper Hewitt Sm... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
packages = find_packages()
desc = open("README.md").read(),
setup(name='cooperhewitt-swatchbook',
version='0.3',
description='Cooper Hewitt\'s Python tools for wrangling colours',
long_description=desc,
author='C... |
3a34bed3e0fdcfdc1d13b50f0b16b367d1133609 | setup.py | setup.py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
""" Setup script for csft """
import sys
from setuptools import find_packages, setup
import csft
requires = [
'argparse >= 1.2.1',
'pandas >= 0.20.1',
'pathlib >= 1.0.1',
]
if sys.version <= '3.5':
requires.append('scandir >= 1.5')
setup(
name=csft... | #!/usr/bin/env python
# -*- coding:utf-8 -*-
""" Setup script for csft """
import sys
from setuptools import find_packages, setup
import csft
requires = [
'argparse >= 1.2.1',
'pandas >= 0.20.1',
]
if sys.version < '3.4':
requires.append('pathlib >= 1.0.1')
if sys.version < '3.5':
requires.append... | Use the standard pathlib after Python 3.4 | Use the standard pathlib after Python 3.4
| Python | mit | yanqd0/csft | #!/usr/bin/env python
# -*- coding:utf-8 -*-
""" Setup script for csft """
import sys
from setuptools import find_packages, setup
import csft
requires = [
'argparse >= 1.2.1',
'pandas >= 0.20.1',
'pathlib >= 1.0.1',
]
if sys.version <= '3.5':
requires.append('scandir >= 1.5')
setup(
name=csft... | #!/usr/bin/env python
# -*- coding:utf-8 -*-
""" Setup script for csft """
import sys
from setuptools import find_packages, setup
import csft
requires = [
'argparse >= 1.2.1',
'pandas >= 0.20.1',
]
if sys.version < '3.4':
requires.append('pathlib >= 1.0.1')
if sys.version < '3.5':
requires.append... | <commit_before>#!/usr/bin/env python
# -*- coding:utf-8 -*-
""" Setup script for csft """
import sys
from setuptools import find_packages, setup
import csft
requires = [
'argparse >= 1.2.1',
'pandas >= 0.20.1',
'pathlib >= 1.0.1',
]
if sys.version <= '3.5':
requires.append('scandir >= 1.5')
setup... | #!/usr/bin/env python
# -*- coding:utf-8 -*-
""" Setup script for csft """
import sys
from setuptools import find_packages, setup
import csft
requires = [
'argparse >= 1.2.1',
'pandas >= 0.20.1',
]
if sys.version < '3.4':
requires.append('pathlib >= 1.0.1')
if sys.version < '3.5':
requires.append... | #!/usr/bin/env python
# -*- coding:utf-8 -*-
""" Setup script for csft """
import sys
from setuptools import find_packages, setup
import csft
requires = [
'argparse >= 1.2.1',
'pandas >= 0.20.1',
'pathlib >= 1.0.1',
]
if sys.version <= '3.5':
requires.append('scandir >= 1.5')
setup(
name=csft... | <commit_before>#!/usr/bin/env python
# -*- coding:utf-8 -*-
""" Setup script for csft """
import sys
from setuptools import find_packages, setup
import csft
requires = [
'argparse >= 1.2.1',
'pandas >= 0.20.1',
'pathlib >= 1.0.1',
]
if sys.version <= '3.5':
requires.append('scandir >= 1.5')
setup... |
a3064f6feeabc47b01fb01e75771646400c80949 | setup.py | setup.py | from setuptools import setup
setup(name='uvp_adb',
version='1.0',
description='adb functions for uvp phone',
url='https://www.linkedin.com/in/sajjad-ziyaei-amiri-a1a16b9b',
author='Sajjad Ziyaei amiri',
author_email='[email protected]',
license='MIT',
packages=['uvp_adb'],
... | from setuptools import setup
setup(name='uvp_adb',
version='1.0',
description='adb functions for uvp phone',
url='https://github.com/inforfang/uvp_adb',
download_url = 'https://github.com/inforfang/uvp_adb/tarball/1.0',
author='inforfang',
author_email='[email protected]',
... | Correct urldownload and email address | Correct urldownload and email address
| Python | mit | inforfang/uvp_adb | from setuptools import setup
setup(name='uvp_adb',
version='1.0',
description='adb functions for uvp phone',
url='https://www.linkedin.com/in/sajjad-ziyaei-amiri-a1a16b9b',
author='Sajjad Ziyaei amiri',
author_email='[email protected]',
license='MIT',
packages=['uvp_adb'],
... | from setuptools import setup
setup(name='uvp_adb',
version='1.0',
description='adb functions for uvp phone',
url='https://github.com/inforfang/uvp_adb',
download_url = 'https://github.com/inforfang/uvp_adb/tarball/1.0',
author='inforfang',
author_email='[email protected]',
... | <commit_before>from setuptools import setup
setup(name='uvp_adb',
version='1.0',
description='adb functions for uvp phone',
url='https://www.linkedin.com/in/sajjad-ziyaei-amiri-a1a16b9b',
author='Sajjad Ziyaei amiri',
author_email='[email protected]',
license='MIT',
package... | from setuptools import setup
setup(name='uvp_adb',
version='1.0',
description='adb functions for uvp phone',
url='https://github.com/inforfang/uvp_adb',
download_url = 'https://github.com/inforfang/uvp_adb/tarball/1.0',
author='inforfang',
author_email='[email protected]',
... | from setuptools import setup
setup(name='uvp_adb',
version='1.0',
description='adb functions for uvp phone',
url='https://www.linkedin.com/in/sajjad-ziyaei-amiri-a1a16b9b',
author='Sajjad Ziyaei amiri',
author_email='[email protected]',
license='MIT',
packages=['uvp_adb'],
... | <commit_before>from setuptools import setup
setup(name='uvp_adb',
version='1.0',
description='adb functions for uvp phone',
url='https://www.linkedin.com/in/sajjad-ziyaei-amiri-a1a16b9b',
author='Sajjad Ziyaei amiri',
author_email='[email protected]',
license='MIT',
package... |
5004b500284ec1d0f709b3069867757770601c44 | mla_game/apps/transcript/management/commands/recalculate_phrase_game_mappings.py | mla_game/apps/transcript/management/commands/recalculate_phrase_game_mappings.py | from django.core.management.base import BaseCommand
from django.conf import settings
from ...models import TranscriptPhrase
from ...tasks import assign_current_game
phrase_positive_limit = settings.TRANSCRIPT_PHRASE_POSITIVE_CONFIDENCE_LIMIT
phrase_negative_limit = settings.TRANSCRIPT_PHRASE_NEGATIVE_CONFIDENCE_LIMIT... | from django.core.management.base import BaseCommand
from django.conf import settings
from ...models import TranscriptPhraseVote
from ...tasks import assign_current_game
phrase_positive_limit = settings.TRANSCRIPT_PHRASE_POSITIVE_CONFIDENCE_LIMIT
phrase_negative_limit = settings.TRANSCRIPT_PHRASE_NEGATIVE_CONFIDENCE_L... | Update only phrases with user input | Update only phrases with user input
| Python | mit | WGBH/FixIt,WGBH/FixIt,WGBH/FixIt | from django.core.management.base import BaseCommand
from django.conf import settings
from ...models import TranscriptPhrase
from ...tasks import assign_current_game
phrase_positive_limit = settings.TRANSCRIPT_PHRASE_POSITIVE_CONFIDENCE_LIMIT
phrase_negative_limit = settings.TRANSCRIPT_PHRASE_NEGATIVE_CONFIDENCE_LIMIT... | from django.core.management.base import BaseCommand
from django.conf import settings
from ...models import TranscriptPhraseVote
from ...tasks import assign_current_game
phrase_positive_limit = settings.TRANSCRIPT_PHRASE_POSITIVE_CONFIDENCE_LIMIT
phrase_negative_limit = settings.TRANSCRIPT_PHRASE_NEGATIVE_CONFIDENCE_L... | <commit_before>from django.core.management.base import BaseCommand
from django.conf import settings
from ...models import TranscriptPhrase
from ...tasks import assign_current_game
phrase_positive_limit = settings.TRANSCRIPT_PHRASE_POSITIVE_CONFIDENCE_LIMIT
phrase_negative_limit = settings.TRANSCRIPT_PHRASE_NEGATIVE_C... | from django.core.management.base import BaseCommand
from django.conf import settings
from ...models import TranscriptPhraseVote
from ...tasks import assign_current_game
phrase_positive_limit = settings.TRANSCRIPT_PHRASE_POSITIVE_CONFIDENCE_LIMIT
phrase_negative_limit = settings.TRANSCRIPT_PHRASE_NEGATIVE_CONFIDENCE_L... | from django.core.management.base import BaseCommand
from django.conf import settings
from ...models import TranscriptPhrase
from ...tasks import assign_current_game
phrase_positive_limit = settings.TRANSCRIPT_PHRASE_POSITIVE_CONFIDENCE_LIMIT
phrase_negative_limit = settings.TRANSCRIPT_PHRASE_NEGATIVE_CONFIDENCE_LIMIT... | <commit_before>from django.core.management.base import BaseCommand
from django.conf import settings
from ...models import TranscriptPhrase
from ...tasks import assign_current_game
phrase_positive_limit = settings.TRANSCRIPT_PHRASE_POSITIVE_CONFIDENCE_LIMIT
phrase_negative_limit = settings.TRANSCRIPT_PHRASE_NEGATIVE_C... |
05b5a4390c7109bb8c0778c547883c41272769fb | examples/oauth.py | examples/oauth.py | import tweepy
# == OAuth Authentication ==
#
# This mode of authentication is the new preferred way
# of authenticating with Twitter.
# The consumer keys can be found on your application's Details
# page located at https://dev.twitter.com/apps (under "OAuth settings")
consumer_key=""
consumer_secret=""
# The access ... | import tweepy
# == OAuth Authentication ==
#
# This mode of authentication is the new preferred way
# of authenticating with Twitter.
# The consumer keys can be found on your application's Details
# page located at https://dev.twitter.com/apps (under "OAuth settings")
consumer_key=""
consumer_secret=""
# The access ... | Change to make sure tweepy use SSL | Change to make sure tweepy use SSL
I had some problems using Tweepy and I realized it was because it didn't always use SSL. So I propose to add a line to make sure the connexion we use is secure. | Python | mit | vishnugonela/tweepy,iamjakob/tweepy,srimanthd/tweepy,sa8/tweepy,awangga/tweepy,zhenv5/tweepy,kcompher/tweepy,damchilly/tweepy,edsu/tweepy,cogniteev/tweepy,yared-bezum/tweepy,truekonrads/tweepy,tweepy/tweepy,Choko256/tweepy,elijah513/tweepy,tsablic/tweepy,hackebrot/tweepy,rudraksh125/tweepy,atomicjets/tweepy,IsaacHaze/t... | import tweepy
# == OAuth Authentication ==
#
# This mode of authentication is the new preferred way
# of authenticating with Twitter.
# The consumer keys can be found on your application's Details
# page located at https://dev.twitter.com/apps (under "OAuth settings")
consumer_key=""
consumer_secret=""
# The access ... | import tweepy
# == OAuth Authentication ==
#
# This mode of authentication is the new preferred way
# of authenticating with Twitter.
# The consumer keys can be found on your application's Details
# page located at https://dev.twitter.com/apps (under "OAuth settings")
consumer_key=""
consumer_secret=""
# The access ... | <commit_before>import tweepy
# == OAuth Authentication ==
#
# This mode of authentication is the new preferred way
# of authenticating with Twitter.
# The consumer keys can be found on your application's Details
# page located at https://dev.twitter.com/apps (under "OAuth settings")
consumer_key=""
consumer_secret=""... | import tweepy
# == OAuth Authentication ==
#
# This mode of authentication is the new preferred way
# of authenticating with Twitter.
# The consumer keys can be found on your application's Details
# page located at https://dev.twitter.com/apps (under "OAuth settings")
consumer_key=""
consumer_secret=""
# The access ... | import tweepy
# == OAuth Authentication ==
#
# This mode of authentication is the new preferred way
# of authenticating with Twitter.
# The consumer keys can be found on your application's Details
# page located at https://dev.twitter.com/apps (under "OAuth settings")
consumer_key=""
consumer_secret=""
# The access ... | <commit_before>import tweepy
# == OAuth Authentication ==
#
# This mode of authentication is the new preferred way
# of authenticating with Twitter.
# The consumer keys can be found on your application's Details
# page located at https://dev.twitter.com/apps (under "OAuth settings")
consumer_key=""
consumer_secret=""... |
1d8f7d4a57b145fa3f8cce12a55b02eb0a754581 | crypto/envelope.py | crypto/envelope.py | """ Sealed envelope example from Princeton course
'Intro to Crypto and Cryptocurrencies'
https://www.youtube.com/watch?v=fOMVZXLjKYo
"""
import hashlib
def commit(key, msg):
m = hashlib.sha256()
m.update(key)
m.update(msg)
return {
"hash": m.hexdigest(),
"key": key
}
def verify(co... | """ Sealed envelope example from Princeton course
'Intro to Crypto and Cryptocurrencies'
https://www.youtube.com/watch?v=fOMVZXLjKYo
"""
import hashlib
def commit(key, msg):
m = hashlib.sha256()
m.update(key)
m.update(msg)
return {
"hash": m.hexdigest(),
"key": key
}
def verify(co... | Make the key 'more secure' | Make the key 'more secure'
| Python | mit | b-ritter/python-notes,b-ritter/python-notes | """ Sealed envelope example from Princeton course
'Intro to Crypto and Cryptocurrencies'
https://www.youtube.com/watch?v=fOMVZXLjKYo
"""
import hashlib
def commit(key, msg):
m = hashlib.sha256()
m.update(key)
m.update(msg)
return {
"hash": m.hexdigest(),
"key": key
}
def verify(co... | """ Sealed envelope example from Princeton course
'Intro to Crypto and Cryptocurrencies'
https://www.youtube.com/watch?v=fOMVZXLjKYo
"""
import hashlib
def commit(key, msg):
m = hashlib.sha256()
m.update(key)
m.update(msg)
return {
"hash": m.hexdigest(),
"key": key
}
def verify(co... | <commit_before>""" Sealed envelope example from Princeton course
'Intro to Crypto and Cryptocurrencies'
https://www.youtube.com/watch?v=fOMVZXLjKYo
"""
import hashlib
def commit(key, msg):
m = hashlib.sha256()
m.update(key)
m.update(msg)
return {
"hash": m.hexdigest(),
"key": key
}... | """ Sealed envelope example from Princeton course
'Intro to Crypto and Cryptocurrencies'
https://www.youtube.com/watch?v=fOMVZXLjKYo
"""
import hashlib
def commit(key, msg):
m = hashlib.sha256()
m.update(key)
m.update(msg)
return {
"hash": m.hexdigest(),
"key": key
}
def verify(co... | """ Sealed envelope example from Princeton course
'Intro to Crypto and Cryptocurrencies'
https://www.youtube.com/watch?v=fOMVZXLjKYo
"""
import hashlib
def commit(key, msg):
m = hashlib.sha256()
m.update(key)
m.update(msg)
return {
"hash": m.hexdigest(),
"key": key
}
def verify(co... | <commit_before>""" Sealed envelope example from Princeton course
'Intro to Crypto and Cryptocurrencies'
https://www.youtube.com/watch?v=fOMVZXLjKYo
"""
import hashlib
def commit(key, msg):
m = hashlib.sha256()
m.update(key)
m.update(msg)
return {
"hash": m.hexdigest(),
"key": key
}... |
2997b84a5ead65f6c17128baef3e3039957d97f8 | dduplicated/cli.py | dduplicated/cli.py | # The client of DDuplicated tool.
from os import path as opath, getcwd
from sys import argv
from dduplicated import commands
def get_paths(params):
paths = []
for param in params:
path = opath.join(getcwd(), param)
if opath.exists(path) and opath.isdir(path) and not opath.islink(path):
paths.append(path)
r... | # The client of DDuplicated tool.
from os import path as opath, getcwd
from pprint import pprint
from sys import argv
from dduplicated import commands
def get_paths(params):
paths = []
for param in params:
path = opath.join(getcwd(), param)
if opath.exists(path) and opath.isdir(path) and not opath.islink(path):... | Update in output to terminal. | Update in output to terminal.
Signed-off-by: messiasthi <[email protected]>
| Python | mit | messiasthi/dduplicated-cli | # The client of DDuplicated tool.
from os import path as opath, getcwd
from sys import argv
from dduplicated import commands
def get_paths(params):
paths = []
for param in params:
path = opath.join(getcwd(), param)
if opath.exists(path) and opath.isdir(path) and not opath.islink(path):
paths.append(path)
r... | # The client of DDuplicated tool.
from os import path as opath, getcwd
from pprint import pprint
from sys import argv
from dduplicated import commands
def get_paths(params):
paths = []
for param in params:
path = opath.join(getcwd(), param)
if opath.exists(path) and opath.isdir(path) and not opath.islink(path):... | <commit_before># The client of DDuplicated tool.
from os import path as opath, getcwd
from sys import argv
from dduplicated import commands
def get_paths(params):
paths = []
for param in params:
path = opath.join(getcwd(), param)
if opath.exists(path) and opath.isdir(path) and not opath.islink(path):
paths.a... | # The client of DDuplicated tool.
from os import path as opath, getcwd
from pprint import pprint
from sys import argv
from dduplicated import commands
def get_paths(params):
paths = []
for param in params:
path = opath.join(getcwd(), param)
if opath.exists(path) and opath.isdir(path) and not opath.islink(path):... | # The client of DDuplicated tool.
from os import path as opath, getcwd
from sys import argv
from dduplicated import commands
def get_paths(params):
paths = []
for param in params:
path = opath.join(getcwd(), param)
if opath.exists(path) and opath.isdir(path) and not opath.islink(path):
paths.append(path)
r... | <commit_before># The client of DDuplicated tool.
from os import path as opath, getcwd
from sys import argv
from dduplicated import commands
def get_paths(params):
paths = []
for param in params:
path = opath.join(getcwd(), param)
if opath.exists(path) and opath.isdir(path) and not opath.islink(path):
paths.a... |
b1efc997c510fbdcaeb8d3ba9b4202ac810bb9ff | util/html_clean.py | util/html_clean.py | import bleach
DESCR_ALLOWED_TAGS = bleach.ALLOWED_TAGS + ['h1', 'h2', 'h3', 'h4', 'h5', 'h6']
USER_DESCR_ALLOWED_TAGS = bleach.ALLOWED_TAGS + ['h2', 'h3', 'h4', 'h5', 'h6']
def clean_for_user_description(html):
"""
Removes dangerous tags, including h1.
"""
return bleach.clean(html, tags=USER_DESCR_A... | import bleach
DESCR_ALLOWED_TAGS = bleach.ALLOWED_TAGS + ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'br', 'p']
USER_DESCR_ALLOWED_TAGS = bleach.ALLOWED_TAGS + ['h2', 'h3', 'h4', 'h5', 'h6', 'br', 'p']
def clean_for_user_description(html):
"""
Removes dangerous tags, including h1.
"""
return bleach.clean(h... | Allow <br /> and <p> in descriptions | Allow <br /> and <p> in descriptions
| Python | bsd-3-clause | fsr/course-management,fsr/course-management | import bleach
DESCR_ALLOWED_TAGS = bleach.ALLOWED_TAGS + ['h1', 'h2', 'h3', 'h4', 'h5', 'h6']
USER_DESCR_ALLOWED_TAGS = bleach.ALLOWED_TAGS + ['h2', 'h3', 'h4', 'h5', 'h6']
def clean_for_user_description(html):
"""
Removes dangerous tags, including h1.
"""
return bleach.clean(html, tags=USER_DESCR_A... | import bleach
DESCR_ALLOWED_TAGS = bleach.ALLOWED_TAGS + ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'br', 'p']
USER_DESCR_ALLOWED_TAGS = bleach.ALLOWED_TAGS + ['h2', 'h3', 'h4', 'h5', 'h6', 'br', 'p']
def clean_for_user_description(html):
"""
Removes dangerous tags, including h1.
"""
return bleach.clean(h... | <commit_before>import bleach
DESCR_ALLOWED_TAGS = bleach.ALLOWED_TAGS + ['h1', 'h2', 'h3', 'h4', 'h5', 'h6']
USER_DESCR_ALLOWED_TAGS = bleach.ALLOWED_TAGS + ['h2', 'h3', 'h4', 'h5', 'h6']
def clean_for_user_description(html):
"""
Removes dangerous tags, including h1.
"""
return bleach.clean(html, ta... | import bleach
DESCR_ALLOWED_TAGS = bleach.ALLOWED_TAGS + ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'br', 'p']
USER_DESCR_ALLOWED_TAGS = bleach.ALLOWED_TAGS + ['h2', 'h3', 'h4', 'h5', 'h6', 'br', 'p']
def clean_for_user_description(html):
"""
Removes dangerous tags, including h1.
"""
return bleach.clean(h... | import bleach
DESCR_ALLOWED_TAGS = bleach.ALLOWED_TAGS + ['h1', 'h2', 'h3', 'h4', 'h5', 'h6']
USER_DESCR_ALLOWED_TAGS = bleach.ALLOWED_TAGS + ['h2', 'h3', 'h4', 'h5', 'h6']
def clean_for_user_description(html):
"""
Removes dangerous tags, including h1.
"""
return bleach.clean(html, tags=USER_DESCR_A... | <commit_before>import bleach
DESCR_ALLOWED_TAGS = bleach.ALLOWED_TAGS + ['h1', 'h2', 'h3', 'h4', 'h5', 'h6']
USER_DESCR_ALLOWED_TAGS = bleach.ALLOWED_TAGS + ['h2', 'h3', 'h4', 'h5', 'h6']
def clean_for_user_description(html):
"""
Removes dangerous tags, including h1.
"""
return bleach.clean(html, ta... |
4673b980252f5fd4c490652d9af63eac02506614 | dimod/reference/composites/structure.py | dimod/reference/composites/structure.py | from dimod.core.sampler import Sampler
from dimod.core.composite import Composite
from dimod.core.structured import Structured
from dimod.decorators import bqm_structured
class StructureComposite(Sampler, Composite, Structured):
"""Creates a structured composed sampler from an unstructured sampler.
todo
... | from dimod.core.sampler import Sampler
from dimod.core.composite import Composite
from dimod.core.structured import Structured
from dimod.decorators import bqm_structured
class StructureComposite(Sampler, Composite, Structured):
"""Creates a structured composed sampler from an unstructured sampler.
"""
# ... | Update Structure composite to use the new abc | Update Structure composite to use the new abc
| Python | apache-2.0 | dwavesystems/dimod,dwavesystems/dimod | from dimod.core.sampler import Sampler
from dimod.core.composite import Composite
from dimod.core.structured import Structured
from dimod.decorators import bqm_structured
class StructureComposite(Sampler, Composite, Structured):
"""Creates a structured composed sampler from an unstructured sampler.
todo
... | from dimod.core.sampler import Sampler
from dimod.core.composite import Composite
from dimod.core.structured import Structured
from dimod.decorators import bqm_structured
class StructureComposite(Sampler, Composite, Structured):
"""Creates a structured composed sampler from an unstructured sampler.
"""
# ... | <commit_before>from dimod.core.sampler import Sampler
from dimod.core.composite import Composite
from dimod.core.structured import Structured
from dimod.decorators import bqm_structured
class StructureComposite(Sampler, Composite, Structured):
"""Creates a structured composed sampler from an unstructured sampler.... | from dimod.core.sampler import Sampler
from dimod.core.composite import Composite
from dimod.core.structured import Structured
from dimod.decorators import bqm_structured
class StructureComposite(Sampler, Composite, Structured):
"""Creates a structured composed sampler from an unstructured sampler.
"""
# ... | from dimod.core.sampler import Sampler
from dimod.core.composite import Composite
from dimod.core.structured import Structured
from dimod.decorators import bqm_structured
class StructureComposite(Sampler, Composite, Structured):
"""Creates a structured composed sampler from an unstructured sampler.
todo
... | <commit_before>from dimod.core.sampler import Sampler
from dimod.core.composite import Composite
from dimod.core.structured import Structured
from dimod.decorators import bqm_structured
class StructureComposite(Sampler, Composite, Structured):
"""Creates a structured composed sampler from an unstructured sampler.... |
6d38920c1867921235c002b6ad411fd08378dd1f | fluent_contents/tests/test_models.py | fluent_contents/tests/test_models.py | from django.contrib.contenttypes.models import ContentType
from fluent_contents.models import ContentItem
from fluent_contents.tests.utils import AppTestCase
class ModelTests(AppTestCase):
"""
Testing the data model.
"""
def test_stale_model_str(self):
"""
No matter what, the Content... | from django.contrib.contenttypes.models import ContentType
from fluent_contents.models import ContentItem
from fluent_contents.tests.utils import AppTestCase
class ModelTests(AppTestCase):
"""
Testing the data model.
"""
def test_stale_model_str(self):
"""
No matter what, the Content... | Fix Django 1.8+ tests for stale content type | Fix Django 1.8+ tests for stale content type
| Python | apache-2.0 | django-fluent/django-fluent-contents,edoburu/django-fluent-contents,edoburu/django-fluent-contents,django-fluent/django-fluent-contents,django-fluent/django-fluent-contents,edoburu/django-fluent-contents | from django.contrib.contenttypes.models import ContentType
from fluent_contents.models import ContentItem
from fluent_contents.tests.utils import AppTestCase
class ModelTests(AppTestCase):
"""
Testing the data model.
"""
def test_stale_model_str(self):
"""
No matter what, the Content... | from django.contrib.contenttypes.models import ContentType
from fluent_contents.models import ContentItem
from fluent_contents.tests.utils import AppTestCase
class ModelTests(AppTestCase):
"""
Testing the data model.
"""
def test_stale_model_str(self):
"""
No matter what, the Content... | <commit_before>from django.contrib.contenttypes.models import ContentType
from fluent_contents.models import ContentItem
from fluent_contents.tests.utils import AppTestCase
class ModelTests(AppTestCase):
"""
Testing the data model.
"""
def test_stale_model_str(self):
"""
No matter wh... | from django.contrib.contenttypes.models import ContentType
from fluent_contents.models import ContentItem
from fluent_contents.tests.utils import AppTestCase
class ModelTests(AppTestCase):
"""
Testing the data model.
"""
def test_stale_model_str(self):
"""
No matter what, the Content... | from django.contrib.contenttypes.models import ContentType
from fluent_contents.models import ContentItem
from fluent_contents.tests.utils import AppTestCase
class ModelTests(AppTestCase):
"""
Testing the data model.
"""
def test_stale_model_str(self):
"""
No matter what, the Content... | <commit_before>from django.contrib.contenttypes.models import ContentType
from fluent_contents.models import ContentItem
from fluent_contents.tests.utils import AppTestCase
class ModelTests(AppTestCase):
"""
Testing the data model.
"""
def test_stale_model_str(self):
"""
No matter wh... |
a16a822ede8ad987b2234f29a31f9fe79c27cbd5 | dbaas/workflow/steps/util/clone/clone_database.py | dbaas/workflow/steps/util/clone/clone_database.py | # -*- coding: utf-8 -*-
import logging
from util import full_stack
from util import call_script
from django.conf import settings
from drivers import factory_for
from system.models import Configuration
from notification.util import get_clone_args
from ...base import BaseStep
from ....exceptions.error_codes import DBAAS_... | # -*- coding: utf-8 -*-
import logging
from util import full_stack
from util import call_script
from django.conf import settings
from drivers import factory_for
from system.models import Configuration
from notification.util import get_clone_args
from ...base import BaseStep
from ....exceptions.error_codes import DBAAS_... | Add call_script output to workflow_dict traceback | Add call_script output to workflow_dict traceback
| Python | bsd-3-clause | globocom/database-as-a-service,globocom/database-as-a-service,globocom/database-as-a-service,globocom/database-as-a-service | # -*- coding: utf-8 -*-
import logging
from util import full_stack
from util import call_script
from django.conf import settings
from drivers import factory_for
from system.models import Configuration
from notification.util import get_clone_args
from ...base import BaseStep
from ....exceptions.error_codes import DBAAS_... | # -*- coding: utf-8 -*-
import logging
from util import full_stack
from util import call_script
from django.conf import settings
from drivers import factory_for
from system.models import Configuration
from notification.util import get_clone_args
from ...base import BaseStep
from ....exceptions.error_codes import DBAAS_... | <commit_before># -*- coding: utf-8 -*-
import logging
from util import full_stack
from util import call_script
from django.conf import settings
from drivers import factory_for
from system.models import Configuration
from notification.util import get_clone_args
from ...base import BaseStep
from ....exceptions.error_code... | # -*- coding: utf-8 -*-
import logging
from util import full_stack
from util import call_script
from django.conf import settings
from drivers import factory_for
from system.models import Configuration
from notification.util import get_clone_args
from ...base import BaseStep
from ....exceptions.error_codes import DBAAS_... | # -*- coding: utf-8 -*-
import logging
from util import full_stack
from util import call_script
from django.conf import settings
from drivers import factory_for
from system.models import Configuration
from notification.util import get_clone_args
from ...base import BaseStep
from ....exceptions.error_codes import DBAAS_... | <commit_before># -*- coding: utf-8 -*-
import logging
from util import full_stack
from util import call_script
from django.conf import settings
from drivers import factory_for
from system.models import Configuration
from notification.util import get_clone_args
from ...base import BaseStep
from ....exceptions.error_code... |
870c89649032480587bdb03ae31f4eecf21eebf7 | tldr/parser.py | tldr/parser.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import
import click
def parse_page(page):
"""Parse the command man page."""
with open(page) as f:
lines = f.readlines()
for line in lines:
if line.startswith('#'):
continue
elif line.startsw... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import
import click
from tldr.config import get_config
def parse_page(page):
"""Parse the command man page."""
colors = get_config()['colors']
with open(page) as f:
lines = f.readlines()
for line in lines:
... | Use color configurations from config file | Use color configurations from config file
| Python | mit | lord63/tldr.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import
import click
def parse_page(page):
"""Parse the command man page."""
with open(page) as f:
lines = f.readlines()
for line in lines:
if line.startswith('#'):
continue
elif line.startsw... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import
import click
from tldr.config import get_config
def parse_page(page):
"""Parse the command man page."""
colors = get_config()['colors']
with open(page) as f:
lines = f.readlines()
for line in lines:
... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import
import click
def parse_page(page):
"""Parse the command man page."""
with open(page) as f:
lines = f.readlines()
for line in lines:
if line.startswith('#'):
continue
el... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import
import click
from tldr.config import get_config
def parse_page(page):
"""Parse the command man page."""
colors = get_config()['colors']
with open(page) as f:
lines = f.readlines()
for line in lines:
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import
import click
def parse_page(page):
"""Parse the command man page."""
with open(page) as f:
lines = f.readlines()
for line in lines:
if line.startswith('#'):
continue
elif line.startsw... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import
import click
def parse_page(page):
"""Parse the command man page."""
with open(page) as f:
lines = f.readlines()
for line in lines:
if line.startswith('#'):
continue
el... |
9710589f34e50bdf2fa19b1fcd827b07d4248ab6 | dodo_commands/extra/dodo_standard_commands/commit-config.py | dodo_commands/extra/dodo_standard_commands/commit-config.py | from argparse import ArgumentParser
from dodo_commands.framework import Dodo
from dodo_commands.framework.config import Paths
import os
def _args():
parser = ArgumentParser()
parser.add_argument('-m', dest='message')
args = Dodo.parse_args(parser)
return args
if Dodo.is_main(__name__, safe=True):
... | from argparse import ArgumentParser
from dodo_commands.framework import Dodo
from dodo_commands.framework.config import Paths
import os
def _args():
parser = ArgumentParser()
parser.add_argument(
'--message', '-m', dest='message', help='The commit message')
args = Dodo.parse_args(parser)
retur... | Allow both -m and --message | Allow both -m and --message
| Python | mit | mnieber/dodo_commands | from argparse import ArgumentParser
from dodo_commands.framework import Dodo
from dodo_commands.framework.config import Paths
import os
def _args():
parser = ArgumentParser()
parser.add_argument('-m', dest='message')
args = Dodo.parse_args(parser)
return args
if Dodo.is_main(__name__, safe=True):
... | from argparse import ArgumentParser
from dodo_commands.framework import Dodo
from dodo_commands.framework.config import Paths
import os
def _args():
parser = ArgumentParser()
parser.add_argument(
'--message', '-m', dest='message', help='The commit message')
args = Dodo.parse_args(parser)
retur... | <commit_before>from argparse import ArgumentParser
from dodo_commands.framework import Dodo
from dodo_commands.framework.config import Paths
import os
def _args():
parser = ArgumentParser()
parser.add_argument('-m', dest='message')
args = Dodo.parse_args(parser)
return args
if Dodo.is_main(__name__,... | from argparse import ArgumentParser
from dodo_commands.framework import Dodo
from dodo_commands.framework.config import Paths
import os
def _args():
parser = ArgumentParser()
parser.add_argument(
'--message', '-m', dest='message', help='The commit message')
args = Dodo.parse_args(parser)
retur... | from argparse import ArgumentParser
from dodo_commands.framework import Dodo
from dodo_commands.framework.config import Paths
import os
def _args():
parser = ArgumentParser()
parser.add_argument('-m', dest='message')
args = Dodo.parse_args(parser)
return args
if Dodo.is_main(__name__, safe=True):
... | <commit_before>from argparse import ArgumentParser
from dodo_commands.framework import Dodo
from dodo_commands.framework.config import Paths
import os
def _args():
parser = ArgumentParser()
parser.add_argument('-m', dest='message')
args = Dodo.parse_args(parser)
return args
if Dodo.is_main(__name__,... |
2ea8ad7608f73fea2657e8e67a6c2bfef01b08d8 | uchicagohvz/users/backend.py | uchicagohvz/users/backend.py | from django.contrib.auth import get_user_model
import ldap
User = get_user_model()
class UChicagoLDAPBackend(object):
LDAP_SERVER = "ldaps://ldap.uchicago.edu:636"
def authenticate(self, cnetid=None, password=None):
if cnetid and password:
cnetid = ldap.filter.escape_filter_chars(cnetid)
try:
conn.simp... | from django.contrib.auth import get_user_model
import ldap
User = get_user_model()
class UChicagoLDAPBackend(object):
LDAP_SERVER = "ldaps://ldap.uchicago.edu:636"
def authenticate(self, cnetid=None, password=None):
if cnetid and password:
cnetid = ldap.filter.escape_filter_chars(cnetid)
try:
conn.simp... | Change email to mail in LDAP | Change email to mail in LDAP
| Python | mit | kz26/uchicago-hvz,kz26/uchicago-hvz,kz26/uchicago-hvz | from django.contrib.auth import get_user_model
import ldap
User = get_user_model()
class UChicagoLDAPBackend(object):
LDAP_SERVER = "ldaps://ldap.uchicago.edu:636"
def authenticate(self, cnetid=None, password=None):
if cnetid and password:
cnetid = ldap.filter.escape_filter_chars(cnetid)
try:
conn.simp... | from django.contrib.auth import get_user_model
import ldap
User = get_user_model()
class UChicagoLDAPBackend(object):
LDAP_SERVER = "ldaps://ldap.uchicago.edu:636"
def authenticate(self, cnetid=None, password=None):
if cnetid and password:
cnetid = ldap.filter.escape_filter_chars(cnetid)
try:
conn.simp... | <commit_before>from django.contrib.auth import get_user_model
import ldap
User = get_user_model()
class UChicagoLDAPBackend(object):
LDAP_SERVER = "ldaps://ldap.uchicago.edu:636"
def authenticate(self, cnetid=None, password=None):
if cnetid and password:
cnetid = ldap.filter.escape_filter_chars(cnetid)
try... | from django.contrib.auth import get_user_model
import ldap
User = get_user_model()
class UChicagoLDAPBackend(object):
LDAP_SERVER = "ldaps://ldap.uchicago.edu:636"
def authenticate(self, cnetid=None, password=None):
if cnetid and password:
cnetid = ldap.filter.escape_filter_chars(cnetid)
try:
conn.simp... | from django.contrib.auth import get_user_model
import ldap
User = get_user_model()
class UChicagoLDAPBackend(object):
LDAP_SERVER = "ldaps://ldap.uchicago.edu:636"
def authenticate(self, cnetid=None, password=None):
if cnetid and password:
cnetid = ldap.filter.escape_filter_chars(cnetid)
try:
conn.simp... | <commit_before>from django.contrib.auth import get_user_model
import ldap
User = get_user_model()
class UChicagoLDAPBackend(object):
LDAP_SERVER = "ldaps://ldap.uchicago.edu:636"
def authenticate(self, cnetid=None, password=None):
if cnetid and password:
cnetid = ldap.filter.escape_filter_chars(cnetid)
try... |
52ffc2b264cbacaee56017cd4a67df4511d60392 | celery/managers.py | celery/managers.py | from django.db import models
from celery.registry import tasks
from datetime import datetime, timedelta
__all__ = ["TaskManager", "PeriodicTaskManager"]
class TaskManager(models.Manager):
def get_task(self, task_id):
task, created = self.get_or_create(task_id=task_id)
return task
def is... | from django.db import models
from celery.registry import tasks
from datetime import datetime, timedelta
__all__ = ["TaskManager", "PeriodicTaskManager"]
class TaskManager(models.Manager):
def get_task(self, task_id):
task, created = self.get_or_create(task_id=task_id)
return task
def is... | Add is_done=True to get_all_expired filter. | Add is_done=True to get_all_expired filter.
| Python | bsd-3-clause | WoLpH/celery,cbrepo/celery,cbrepo/celery,ask/celery,frac/celery,WoLpH/celery,mitsuhiko/celery,ask/celery,mitsuhiko/celery,frac/celery | from django.db import models
from celery.registry import tasks
from datetime import datetime, timedelta
__all__ = ["TaskManager", "PeriodicTaskManager"]
class TaskManager(models.Manager):
def get_task(self, task_id):
task, created = self.get_or_create(task_id=task_id)
return task
def is... | from django.db import models
from celery.registry import tasks
from datetime import datetime, timedelta
__all__ = ["TaskManager", "PeriodicTaskManager"]
class TaskManager(models.Manager):
def get_task(self, task_id):
task, created = self.get_or_create(task_id=task_id)
return task
def is... | <commit_before>from django.db import models
from celery.registry import tasks
from datetime import datetime, timedelta
__all__ = ["TaskManager", "PeriodicTaskManager"]
class TaskManager(models.Manager):
def get_task(self, task_id):
task, created = self.get_or_create(task_id=task_id)
return t... | from django.db import models
from celery.registry import tasks
from datetime import datetime, timedelta
__all__ = ["TaskManager", "PeriodicTaskManager"]
class TaskManager(models.Manager):
def get_task(self, task_id):
task, created = self.get_or_create(task_id=task_id)
return task
def is... | from django.db import models
from celery.registry import tasks
from datetime import datetime, timedelta
__all__ = ["TaskManager", "PeriodicTaskManager"]
class TaskManager(models.Manager):
def get_task(self, task_id):
task, created = self.get_or_create(task_id=task_id)
return task
def is... | <commit_before>from django.db import models
from celery.registry import tasks
from datetime import datetime, timedelta
__all__ = ["TaskManager", "PeriodicTaskManager"]
class TaskManager(models.Manager):
def get_task(self, task_id):
task, created = self.get_or_create(task_id=task_id)
return t... |
697fbacc04bc41dea056377e85ba6b29949d8feb | wars/device.py | wars/device.py | import pygame
from pygame.locals import *
from wars.block import Block
class Device(object):
# Static params
height = 60
# Object params
blocks = []
title = None
pos_y = None
def __init__(self, title, pos):
self.title = title
self.pos_y = pos
self.blocks = []
... | import pygame
from pygame.locals import *
from wars.block import Block
class Device(object):
# Static params
height = 60
# Object params
blocks = []
title = None
pos_y = None
def __init__(self, title, pos):
self.title = title
self.pos_y = pos
self.blocks = []
... | Remove objects when they are not used | Remove objects when they are not used
| Python | mit | cmol/wifi-wars | import pygame
from pygame.locals import *
from wars.block import Block
class Device(object):
# Static params
height = 60
# Object params
blocks = []
title = None
pos_y = None
def __init__(self, title, pos):
self.title = title
self.pos_y = pos
self.blocks = []
... | import pygame
from pygame.locals import *
from wars.block import Block
class Device(object):
# Static params
height = 60
# Object params
blocks = []
title = None
pos_y = None
def __init__(self, title, pos):
self.title = title
self.pos_y = pos
self.blocks = []
... | <commit_before>import pygame
from pygame.locals import *
from wars.block import Block
class Device(object):
# Static params
height = 60
# Object params
blocks = []
title = None
pos_y = None
def __init__(self, title, pos):
self.title = title
self.pos_y = pos
self.... | import pygame
from pygame.locals import *
from wars.block import Block
class Device(object):
# Static params
height = 60
# Object params
blocks = []
title = None
pos_y = None
def __init__(self, title, pos):
self.title = title
self.pos_y = pos
self.blocks = []
... | import pygame
from pygame.locals import *
from wars.block import Block
class Device(object):
# Static params
height = 60
# Object params
blocks = []
title = None
pos_y = None
def __init__(self, title, pos):
self.title = title
self.pos_y = pos
self.blocks = []
... | <commit_before>import pygame
from pygame.locals import *
from wars.block import Block
class Device(object):
# Static params
height = 60
# Object params
blocks = []
title = None
pos_y = None
def __init__(self, title, pos):
self.title = title
self.pos_y = pos
self.... |
5fc1735082c001d81d9cded4c694c12b7afac8a0 | scripts/scrape-ecdc-list.py | scripts/scrape-ecdc-list.py | #!/usr/bin/env python
import requests
import lxml.html
import pandas as pd
import sys
URL = "http://ecdc.europa.eu/en/healthtopics/zika_virus_infection/zika-outbreak/Pages/Zika-countries-with-transmission.aspx"
columns = [
"country",
"current_zika_transmission",
]
def scrape():
html = requests.get(URL).c... | #!/usr/bin/env python
import requests
import lxml.html
import pandas as pd
import sys
URL = "http://ecdc.europa.eu/en/healthtopics/zika_virus_infection/zika-outbreak/Pages/Zika-countries-with-transmission.aspx"
columns = [
"country",
"current_zika_transmission",
]
def scrape():
html = requests.get(URL).c... | Update ECDC scraper for tweaked page structure | Update ECDC scraper for tweaked page structure
| Python | mit | BuzzFeedNews/zika-data | #!/usr/bin/env python
import requests
import lxml.html
import pandas as pd
import sys
URL = "http://ecdc.europa.eu/en/healthtopics/zika_virus_infection/zika-outbreak/Pages/Zika-countries-with-transmission.aspx"
columns = [
"country",
"current_zika_transmission",
]
def scrape():
html = requests.get(URL).c... | #!/usr/bin/env python
import requests
import lxml.html
import pandas as pd
import sys
URL = "http://ecdc.europa.eu/en/healthtopics/zika_virus_infection/zika-outbreak/Pages/Zika-countries-with-transmission.aspx"
columns = [
"country",
"current_zika_transmission",
]
def scrape():
html = requests.get(URL).c... | <commit_before>#!/usr/bin/env python
import requests
import lxml.html
import pandas as pd
import sys
URL = "http://ecdc.europa.eu/en/healthtopics/zika_virus_infection/zika-outbreak/Pages/Zika-countries-with-transmission.aspx"
columns = [
"country",
"current_zika_transmission",
]
def scrape():
html = requ... | #!/usr/bin/env python
import requests
import lxml.html
import pandas as pd
import sys
URL = "http://ecdc.europa.eu/en/healthtopics/zika_virus_infection/zika-outbreak/Pages/Zika-countries-with-transmission.aspx"
columns = [
"country",
"current_zika_transmission",
]
def scrape():
html = requests.get(URL).c... | #!/usr/bin/env python
import requests
import lxml.html
import pandas as pd
import sys
URL = "http://ecdc.europa.eu/en/healthtopics/zika_virus_infection/zika-outbreak/Pages/Zika-countries-with-transmission.aspx"
columns = [
"country",
"current_zika_transmission",
]
def scrape():
html = requests.get(URL).c... | <commit_before>#!/usr/bin/env python
import requests
import lxml.html
import pandas as pd
import sys
URL = "http://ecdc.europa.eu/en/healthtopics/zika_virus_infection/zika-outbreak/Pages/Zika-countries-with-transmission.aspx"
columns = [
"country",
"current_zika_transmission",
]
def scrape():
html = requ... |
5d901fddb0c863f811b0de40c063bb00b50e5394 | ion/processes/bootstrap/plugins/bootstrap_core.py | ion/processes/bootstrap/plugins/bootstrap_core.py | #!/usr/bin/env python
__author__ = 'Michael Meisinger'
from ion.core.bootstrap_process import BootstrapPlugin, AbortBootstrap
from pyon.public import IonObject, RT
from pyon.util.containers import get_safe
from interface.objects import ActorIdentity, Org
class BootstrapCore(BootstrapPlugin):
"""
Bootstrap ... | #!/usr/bin/env python
__author__ = 'Michael Meisinger'
from ion.core.bootstrap_process import BootstrapPlugin, AbortBootstrap
from pyon.public import IonObject, RT
from pyon.util.containers import get_safe
from interface.objects import ActorIdentity, Org
class BootstrapCore(BootstrapPlugin):
"""
Bootstrap ... | Add web authentication actor on bootstrap | Add web authentication actor on bootstrap
| Python | bsd-2-clause | ooici/coi-services,ooici/coi-services,ooici/coi-services,ooici/coi-services,ooici/coi-services | #!/usr/bin/env python
__author__ = 'Michael Meisinger'
from ion.core.bootstrap_process import BootstrapPlugin, AbortBootstrap
from pyon.public import IonObject, RT
from pyon.util.containers import get_safe
from interface.objects import ActorIdentity, Org
class BootstrapCore(BootstrapPlugin):
"""
Bootstrap ... | #!/usr/bin/env python
__author__ = 'Michael Meisinger'
from ion.core.bootstrap_process import BootstrapPlugin, AbortBootstrap
from pyon.public import IonObject, RT
from pyon.util.containers import get_safe
from interface.objects import ActorIdentity, Org
class BootstrapCore(BootstrapPlugin):
"""
Bootstrap ... | <commit_before>#!/usr/bin/env python
__author__ = 'Michael Meisinger'
from ion.core.bootstrap_process import BootstrapPlugin, AbortBootstrap
from pyon.public import IonObject, RT
from pyon.util.containers import get_safe
from interface.objects import ActorIdentity, Org
class BootstrapCore(BootstrapPlugin):
"""... | #!/usr/bin/env python
__author__ = 'Michael Meisinger'
from ion.core.bootstrap_process import BootstrapPlugin, AbortBootstrap
from pyon.public import IonObject, RT
from pyon.util.containers import get_safe
from interface.objects import ActorIdentity, Org
class BootstrapCore(BootstrapPlugin):
"""
Bootstrap ... | #!/usr/bin/env python
__author__ = 'Michael Meisinger'
from ion.core.bootstrap_process import BootstrapPlugin, AbortBootstrap
from pyon.public import IonObject, RT
from pyon.util.containers import get_safe
from interface.objects import ActorIdentity, Org
class BootstrapCore(BootstrapPlugin):
"""
Bootstrap ... | <commit_before>#!/usr/bin/env python
__author__ = 'Michael Meisinger'
from ion.core.bootstrap_process import BootstrapPlugin, AbortBootstrap
from pyon.public import IonObject, RT
from pyon.util.containers import get_safe
from interface.objects import ActorIdentity, Org
class BootstrapCore(BootstrapPlugin):
"""... |
17457815b8eccabf137fdd91053796389d3c8de5 | EventParsers/ParserHelper.py | EventParsers/ParserHelper.py |
# The note off event contains no data, except for the least significant bits
# represening the polyphonic ID, so that all notes with that particular
# polyphonic ID can be turned off.
def parse_noteOff(bmsfile, read, strict, commandID):
return commandID & 0b111
# Several commands use three bytes of data and one ... |
# The note off event contains no data, except for the least significant bits
# represening the polyphonic ID, so that all notes with that particular
# polyphonic ID can be turned off.
def parse_noteOff(bmsfile, read, strict, commandID):
return (commandID & 0b111,)
# Several commands use three bytes of data and o... | Make return value of function a tuple | Make return value of function a tuple
This should make the return value consistent with what struct.unpack would return.
| Python | bsd-3-clause | RenolY2/py-playBMS |
# The note off event contains no data, except for the least significant bits
# represening the polyphonic ID, so that all notes with that particular
# polyphonic ID can be turned off.
def parse_noteOff(bmsfile, read, strict, commandID):
return commandID & 0b111
# Several commands use three bytes of data and one ... |
# The note off event contains no data, except for the least significant bits
# represening the polyphonic ID, so that all notes with that particular
# polyphonic ID can be turned off.
def parse_noteOff(bmsfile, read, strict, commandID):
return (commandID & 0b111,)
# Several commands use three bytes of data and o... | <commit_before>
# The note off event contains no data, except for the least significant bits
# represening the polyphonic ID, so that all notes with that particular
# polyphonic ID can be turned off.
def parse_noteOff(bmsfile, read, strict, commandID):
return commandID & 0b111
# Several commands use three bytes o... |
# The note off event contains no data, except for the least significant bits
# represening the polyphonic ID, so that all notes with that particular
# polyphonic ID can be turned off.
def parse_noteOff(bmsfile, read, strict, commandID):
return (commandID & 0b111,)
# Several commands use three bytes of data and o... |
# The note off event contains no data, except for the least significant bits
# represening the polyphonic ID, so that all notes with that particular
# polyphonic ID can be turned off.
def parse_noteOff(bmsfile, read, strict, commandID):
return commandID & 0b111
# Several commands use three bytes of data and one ... | <commit_before>
# The note off event contains no data, except for the least significant bits
# represening the polyphonic ID, so that all notes with that particular
# polyphonic ID can be turned off.
def parse_noteOff(bmsfile, read, strict, commandID):
return commandID & 0b111
# Several commands use three bytes o... |
35974efcbae0c8a1b3009d7a2f38c73a52ff5790 | powerdns/admin.py | powerdns/admin.py | # -*- coding: utf-8 -*-
from django.contrib import admin
from powerdns.models import Domain, Record, Supermaster
class RecordAdmin(admin.ModelAdmin):
list_display = ('name', 'type', 'content', 'ttl', 'prio', 'change_date',)
list_filter = ['type', 'ttl',]
search_fields = ('name','content',)
class DomainAd... | # -*- coding: utf-8 -*-
from django.contrib import admin
from powerdns.models import Domain, Record, Supermaster
class RecordAdmin(admin.ModelAdmin):
list_display = ('name', 'type', 'content', 'ttl', 'prio', 'change_date',)
list_filter = ['type', 'ttl',]
search_fields = ('name','content',)
readonly_fi... | Mark some fields as readonly in the Admin panel as they are set by the server (Requires Django 1.2 or greater) | Mark some fields as readonly in the Admin panel as they are set by the server (Requires Django 1.2 or greater)
| Python | bsd-2-clause | dominikkowalski/django-powerdns-dnssec,zefciu/django-powerdns-dnssec,zefciu/django-powerdns-dnssec,dominikkowalski/django-powerdns-dnssec,dominikkowalski/django-powerdns-dnssec,allegro/django-powerdns-dnssec,allegro/django-powerdns-dnssec,dominikkowalski/django-powerdns-dnssec,allegro/django-powerdns-dnssec,allegro/dja... | # -*- coding: utf-8 -*-
from django.contrib import admin
from powerdns.models import Domain, Record, Supermaster
class RecordAdmin(admin.ModelAdmin):
list_display = ('name', 'type', 'content', 'ttl', 'prio', 'change_date',)
list_filter = ['type', 'ttl',]
search_fields = ('name','content',)
class DomainAd... | # -*- coding: utf-8 -*-
from django.contrib import admin
from powerdns.models import Domain, Record, Supermaster
class RecordAdmin(admin.ModelAdmin):
list_display = ('name', 'type', 'content', 'ttl', 'prio', 'change_date',)
list_filter = ['type', 'ttl',]
search_fields = ('name','content',)
readonly_fi... | <commit_before># -*- coding: utf-8 -*-
from django.contrib import admin
from powerdns.models import Domain, Record, Supermaster
class RecordAdmin(admin.ModelAdmin):
list_display = ('name', 'type', 'content', 'ttl', 'prio', 'change_date',)
list_filter = ['type', 'ttl',]
search_fields = ('name','content',)
... | # -*- coding: utf-8 -*-
from django.contrib import admin
from powerdns.models import Domain, Record, Supermaster
class RecordAdmin(admin.ModelAdmin):
list_display = ('name', 'type', 'content', 'ttl', 'prio', 'change_date',)
list_filter = ['type', 'ttl',]
search_fields = ('name','content',)
readonly_fi... | # -*- coding: utf-8 -*-
from django.contrib import admin
from powerdns.models import Domain, Record, Supermaster
class RecordAdmin(admin.ModelAdmin):
list_display = ('name', 'type', 'content', 'ttl', 'prio', 'change_date',)
list_filter = ['type', 'ttl',]
search_fields = ('name','content',)
class DomainAd... | <commit_before># -*- coding: utf-8 -*-
from django.contrib import admin
from powerdns.models import Domain, Record, Supermaster
class RecordAdmin(admin.ModelAdmin):
list_display = ('name', 'type', 'content', 'ttl', 'prio', 'change_date',)
list_filter = ['type', 'ttl',]
search_fields = ('name','content',)
... |
59854731162c25c75304798b62f6541bb9646eee | flask_boost/project/config/__init__.py | flask_boost/project/config/__init__.py | # coding: UTF-8
import os
def load_config():
"""Load config."""
mode = os.environ.get('MODE')
try:
if mode == 'PRODUCTION':
from .production import ProductionConfig
return ProductionConfig
elif mode == 'TESTING':
from .testing import TestingConfig
... | # coding: UTF-8
import os
def load_config():
"""Load config."""
mode = os.environ.get('MODE')
try:
if mode == 'PRODUCTION':
from .production import ProductionConfig
return ProductionConfig
elif mode == 'TESTING':
from .testing import TestingConfig
... | Update except statements to support Python3. | Update except statements to support Python3.
| Python | mit | hustlzp/Flask-Boost,hustlzp/Flask-Boost,hustlzp/Flask-Boost,1045347128/Flask-Boost,hustlzp/Flask-Boost,1045347128/Flask-Boost,1045347128/Flask-Boost,1045347128/Flask-Boost | # coding: UTF-8
import os
def load_config():
"""Load config."""
mode = os.environ.get('MODE')
try:
if mode == 'PRODUCTION':
from .production import ProductionConfig
return ProductionConfig
elif mode == 'TESTING':
from .testing import TestingConfig
... | # coding: UTF-8
import os
def load_config():
"""Load config."""
mode = os.environ.get('MODE')
try:
if mode == 'PRODUCTION':
from .production import ProductionConfig
return ProductionConfig
elif mode == 'TESTING':
from .testing import TestingConfig
... | <commit_before># coding: UTF-8
import os
def load_config():
"""Load config."""
mode = os.environ.get('MODE')
try:
if mode == 'PRODUCTION':
from .production import ProductionConfig
return ProductionConfig
elif mode == 'TESTING':
from .testing import Testi... | # coding: UTF-8
import os
def load_config():
"""Load config."""
mode = os.environ.get('MODE')
try:
if mode == 'PRODUCTION':
from .production import ProductionConfig
return ProductionConfig
elif mode == 'TESTING':
from .testing import TestingConfig
... | # coding: UTF-8
import os
def load_config():
"""Load config."""
mode = os.environ.get('MODE')
try:
if mode == 'PRODUCTION':
from .production import ProductionConfig
return ProductionConfig
elif mode == 'TESTING':
from .testing import TestingConfig
... | <commit_before># coding: UTF-8
import os
def load_config():
"""Load config."""
mode = os.environ.get('MODE')
try:
if mode == 'PRODUCTION':
from .production import ProductionConfig
return ProductionConfig
elif mode == 'TESTING':
from .testing import Testi... |
cda678a3ea9b01a684c6e2d3ed636834f41c96f8 | wkhtmltopdf/test_settings.py | wkhtmltopdf/test_settings.py | import os
DEBUG = True
DIRNAME = os.path.abspath(os.path.dirname(__file__))
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
}
}
# MEDIA_URL = '/media/'
# MEDIA_ROOT = '/tmp/media'
# STATIC_URL = '/static/'
# STATIC_ROOT = '/tmp/static'
MEDIA_ROOT = os.p... | import os
DEBUG = True
DIRNAME = os.path.abspath(os.path.dirname(__file__))
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
}
}
MEDIA_ROOT = os.path.join(DIRNAME, 'media')
MEDIA_URL = '/media/'
STATIC_ROOT = os.path.join(DIRNAME, 'static')
STATIC_URL = ... | Remove unwanted settings vars from test project | Remove unwanted settings vars from test project
| Python | bsd-2-clause | powderflask/django-wkhtmltopdf,denisbalyko/django-wkhtmltopdf,halfnibble/django-wkhtmltopdf,halfnibble/django-wkhtmltopdf,denisbalyko/django-wkhtmltopdf,unrealsolver/django-wkhtmltopdf,tclancy/django-wkhtmltopdf,incuna/django-wkhtmltopdf,powderflask/django-wkhtmltopdf,unrealsolver/django-wkhtmltopdf,fankcoder/django-wk... | import os
DEBUG = True
DIRNAME = os.path.abspath(os.path.dirname(__file__))
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
}
}
# MEDIA_URL = '/media/'
# MEDIA_ROOT = '/tmp/media'
# STATIC_URL = '/static/'
# STATIC_ROOT = '/tmp/static'
MEDIA_ROOT = os.p... | import os
DEBUG = True
DIRNAME = os.path.abspath(os.path.dirname(__file__))
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
}
}
MEDIA_ROOT = os.path.join(DIRNAME, 'media')
MEDIA_URL = '/media/'
STATIC_ROOT = os.path.join(DIRNAME, 'static')
STATIC_URL = ... | <commit_before>import os
DEBUG = True
DIRNAME = os.path.abspath(os.path.dirname(__file__))
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
}
}
# MEDIA_URL = '/media/'
# MEDIA_ROOT = '/tmp/media'
# STATIC_URL = '/static/'
# STATIC_ROOT = '/tmp/static'
ME... | import os
DEBUG = True
DIRNAME = os.path.abspath(os.path.dirname(__file__))
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
}
}
MEDIA_ROOT = os.path.join(DIRNAME, 'media')
MEDIA_URL = '/media/'
STATIC_ROOT = os.path.join(DIRNAME, 'static')
STATIC_URL = ... | import os
DEBUG = True
DIRNAME = os.path.abspath(os.path.dirname(__file__))
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
}
}
# MEDIA_URL = '/media/'
# MEDIA_ROOT = '/tmp/media'
# STATIC_URL = '/static/'
# STATIC_ROOT = '/tmp/static'
MEDIA_ROOT = os.p... | <commit_before>import os
DEBUG = True
DIRNAME = os.path.abspath(os.path.dirname(__file__))
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
}
}
# MEDIA_URL = '/media/'
# MEDIA_ROOT = '/tmp/media'
# STATIC_URL = '/static/'
# STATIC_ROOT = '/tmp/static'
ME... |
bb3ffdea2a76a86c1911426ce030c29abbd1074f | tempo/django/forms.py | tempo/django/forms.py | #!/usr/bin/env python
# coding=utf-8
from decimal import Decimal
from django.utils.translation import ugettext_lazy as _
from django.forms.fields import Field, ValidationError
from tempo.django.widgets import ScheduleSetWidget
from tempo.schedule import Schedule
from tempo.scheduleset import ScheduleSet
class Sched... | #!/usr/bin/env python
# coding=utf-8
from decimal import Decimal
from django.utils.translation import ugettext_lazy as _
from django.forms.fields import Field, ValidationError
from tempo.django.widgets import ScheduleSetWidget
from tempo.schedule import Schedule
from tempo.scheduleset import ScheduleSet
class Sched... | Make "to" not inclusive in widget | Make "to" not inclusive in widget
To avoid exceeding possible values.
| Python | bsd-3-clause | AndrewPashkin/python-tempo,AndrewPashkin/python-tempo | #!/usr/bin/env python
# coding=utf-8
from decimal import Decimal
from django.utils.translation import ugettext_lazy as _
from django.forms.fields import Field, ValidationError
from tempo.django.widgets import ScheduleSetWidget
from tempo.schedule import Schedule
from tempo.scheduleset import ScheduleSet
class Sched... | #!/usr/bin/env python
# coding=utf-8
from decimal import Decimal
from django.utils.translation import ugettext_lazy as _
from django.forms.fields import Field, ValidationError
from tempo.django.widgets import ScheduleSetWidget
from tempo.schedule import Schedule
from tempo.scheduleset import ScheduleSet
class Sched... | <commit_before>#!/usr/bin/env python
# coding=utf-8
from decimal import Decimal
from django.utils.translation import ugettext_lazy as _
from django.forms.fields import Field, ValidationError
from tempo.django.widgets import ScheduleSetWidget
from tempo.schedule import Schedule
from tempo.scheduleset import ScheduleSe... | #!/usr/bin/env python
# coding=utf-8
from decimal import Decimal
from django.utils.translation import ugettext_lazy as _
from django.forms.fields import Field, ValidationError
from tempo.django.widgets import ScheduleSetWidget
from tempo.schedule import Schedule
from tempo.scheduleset import ScheduleSet
class Sched... | #!/usr/bin/env python
# coding=utf-8
from decimal import Decimal
from django.utils.translation import ugettext_lazy as _
from django.forms.fields import Field, ValidationError
from tempo.django.widgets import ScheduleSetWidget
from tempo.schedule import Schedule
from tempo.scheduleset import ScheduleSet
class Sched... | <commit_before>#!/usr/bin/env python
# coding=utf-8
from decimal import Decimal
from django.utils.translation import ugettext_lazy as _
from django.forms.fields import Field, ValidationError
from tempo.django.widgets import ScheduleSetWidget
from tempo.schedule import Schedule
from tempo.scheduleset import ScheduleSe... |
f58b24402d8d41778a45d4ce6e6080651c79d529 | scripts/common.py | scripts/common.py | #!/usr/bin/env python
#
# file: common.py
#
# author: Copyright (C) 2017-2018 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
#
# 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 ... | #!/usr/bin/env python
#
# file: common.py
#
# author: Copyright (C) 2017-2018 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
#
# 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 ... | Convert sanitize() argument to string | Convert sanitize() argument to string
This fixes the bug when the name of the node is an integer, in which
case it's not possible to do regex.sub() on it.
| Python | mpl-2.0 | CezaryGapinski/distortos,CezaryGapinski/distortos,jasmin-j/distortos,jasmin-j/distortos,jasmin-j/distortos,DISTORTEC/distortos,CezaryGapinski/distortos,DISTORTEC/distortos,CezaryGapinski/distortos,CezaryGapinski/distortos,DISTORTEC/distortos,jasmin-j/distortos,jasmin-j/distortos,DISTORTEC/distortos | #!/usr/bin/env python
#
# file: common.py
#
# author: Copyright (C) 2017-2018 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
#
# 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 ... | #!/usr/bin/env python
#
# file: common.py
#
# author: Copyright (C) 2017-2018 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
#
# 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 ... | <commit_before>#!/usr/bin/env python
#
# file: common.py
#
# author: Copyright (C) 2017-2018 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
#
# 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... | #!/usr/bin/env python
#
# file: common.py
#
# author: Copyright (C) 2017-2018 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
#
# 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 ... | #!/usr/bin/env python
#
# file: common.py
#
# author: Copyright (C) 2017-2018 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
#
# 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 ... | <commit_before>#!/usr/bin/env python
#
# file: common.py
#
# author: Copyright (C) 2017-2018 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
#
# 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... |
d66355e4758b37be39d17d681ede1dbbd6b9b311 | setmagic/admin.py | setmagic/admin.py | from django import forms
from django.contrib import admin
from setmagic import settings
from setmagic.models import Setting
_denied = lambda *args: False
class SetMagicAdmin(admin.ModelAdmin):
list_display = 'label', 'current_value',
list_editable = 'current_value',
list_display_links = None
has_a... | from django import forms
from django.contrib import admin
from django.utils.importlib import import_module
from setmagic import settings
from setmagic.models import Setting
_denied = lambda *args: False
class SetMagicAdmin(admin.ModelAdmin):
list_display = 'label', 'current_value',
list_editable = 'current... | Use importlib to load custom fields by str | Use importlib to load custom fields by str
| Python | mit | 7ws/django-setmagic | from django import forms
from django.contrib import admin
from setmagic import settings
from setmagic.models import Setting
_denied = lambda *args: False
class SetMagicAdmin(admin.ModelAdmin):
list_display = 'label', 'current_value',
list_editable = 'current_value',
list_display_links = None
has_a... | from django import forms
from django.contrib import admin
from django.utils.importlib import import_module
from setmagic import settings
from setmagic.models import Setting
_denied = lambda *args: False
class SetMagicAdmin(admin.ModelAdmin):
list_display = 'label', 'current_value',
list_editable = 'current... | <commit_before>from django import forms
from django.contrib import admin
from setmagic import settings
from setmagic.models import Setting
_denied = lambda *args: False
class SetMagicAdmin(admin.ModelAdmin):
list_display = 'label', 'current_value',
list_editable = 'current_value',
list_display_links = ... | from django import forms
from django.contrib import admin
from django.utils.importlib import import_module
from setmagic import settings
from setmagic.models import Setting
_denied = lambda *args: False
class SetMagicAdmin(admin.ModelAdmin):
list_display = 'label', 'current_value',
list_editable = 'current... | from django import forms
from django.contrib import admin
from setmagic import settings
from setmagic.models import Setting
_denied = lambda *args: False
class SetMagicAdmin(admin.ModelAdmin):
list_display = 'label', 'current_value',
list_editable = 'current_value',
list_display_links = None
has_a... | <commit_before>from django import forms
from django.contrib import admin
from setmagic import settings
from setmagic.models import Setting
_denied = lambda *args: False
class SetMagicAdmin(admin.ModelAdmin):
list_display = 'label', 'current_value',
list_editable = 'current_value',
list_display_links = ... |
65137b42bd5ebee37cba0fd462e8f7484a3f9aaa | pelops/etl/hog.py | pelops/etl/hog.py | from skimage.feature import hog
from skimage import colos
from pelops.etl.feature_producer import FeatureProducer
class HOGFeatureProducer(FeatureProducer):
def __init__(self, chip_producer):
super().__init__(chip_producer)
def produce_features(self, chip):
"""Takes a chip object and return... | from skimage.feature import hog
from skimage import colos
from pelops.etl.feature_producer import FeatureProducer
class HOGFeatureProducer(FeatureProducer):
def __init__(self, chip_producer, image_size=(256,256), cells=(16, 16), orientations=8):
super().__init__(chip_producer)
self.image_size = ... | Replace magic numbers in `HOGFeatureProducer` | Replace magic numbers in `HOGFeatureProducer`
| Python | apache-2.0 | d-grossman/pelops,d-grossman/pelops,dave-lab41/pelops,Lab41/pelops,dave-lab41/pelops,Lab41/pelops | from skimage.feature import hog
from skimage import colos
from pelops.etl.feature_producer import FeatureProducer
class HOGFeatureProducer(FeatureProducer):
def __init__(self, chip_producer):
super().__init__(chip_producer)
def produce_features(self, chip):
"""Takes a chip object and return... | from skimage.feature import hog
from skimage import colos
from pelops.etl.feature_producer import FeatureProducer
class HOGFeatureProducer(FeatureProducer):
def __init__(self, chip_producer, image_size=(256,256), cells=(16, 16), orientations=8):
super().__init__(chip_producer)
self.image_size = ... | <commit_before>from skimage.feature import hog
from skimage import colos
from pelops.etl.feature_producer import FeatureProducer
class HOGFeatureProducer(FeatureProducer):
def __init__(self, chip_producer):
super().__init__(chip_producer)
def produce_features(self, chip):
"""Takes a chip ob... | from skimage.feature import hog
from skimage import colos
from pelops.etl.feature_producer import FeatureProducer
class HOGFeatureProducer(FeatureProducer):
def __init__(self, chip_producer, image_size=(256,256), cells=(16, 16), orientations=8):
super().__init__(chip_producer)
self.image_size = ... | from skimage.feature import hog
from skimage import colos
from pelops.etl.feature_producer import FeatureProducer
class HOGFeatureProducer(FeatureProducer):
def __init__(self, chip_producer):
super().__init__(chip_producer)
def produce_features(self, chip):
"""Takes a chip object and return... | <commit_before>from skimage.feature import hog
from skimage import colos
from pelops.etl.feature_producer import FeatureProducer
class HOGFeatureProducer(FeatureProducer):
def __init__(self, chip_producer):
super().__init__(chip_producer)
def produce_features(self, chip):
"""Takes a chip ob... |
71c9b12056de1e1fdcc1effd2fda4c4dd284afab | froide/problem/utils.py | froide/problem/utils.py | from django.core.mail import mail_managers
from django.conf import settings
from django.template.loader import render_to_string
from django.utils.translation import ugettext_lazy as _
def inform_managers(report):
mail_managers(
_('New problem: {label} [#{reqid}]').format(
label=report.get_kind... | from django.core.mail import mail_managers
from django.conf import settings
from django.urls import reverse
from django.template.loader import render_to_string
from django.utils.translation import ugettext_lazy as _
def inform_managers(report):
admin_url = settings.SITE_URL + reverse(
'admin:problem_probl... | Add link to report admin page to report info mail | Add link to report admin page to report info mail | Python | mit | stefanw/froide,stefanw/froide,stefanw/froide,fin/froide,stefanw/froide,fin/froide,stefanw/froide,fin/froide,fin/froide | from django.core.mail import mail_managers
from django.conf import settings
from django.template.loader import render_to_string
from django.utils.translation import ugettext_lazy as _
def inform_managers(report):
mail_managers(
_('New problem: {label} [#{reqid}]').format(
label=report.get_kind... | from django.core.mail import mail_managers
from django.conf import settings
from django.urls import reverse
from django.template.loader import render_to_string
from django.utils.translation import ugettext_lazy as _
def inform_managers(report):
admin_url = settings.SITE_URL + reverse(
'admin:problem_probl... | <commit_before>from django.core.mail import mail_managers
from django.conf import settings
from django.template.loader import render_to_string
from django.utils.translation import ugettext_lazy as _
def inform_managers(report):
mail_managers(
_('New problem: {label} [#{reqid}]').format(
label=... | from django.core.mail import mail_managers
from django.conf import settings
from django.urls import reverse
from django.template.loader import render_to_string
from django.utils.translation import ugettext_lazy as _
def inform_managers(report):
admin_url = settings.SITE_URL + reverse(
'admin:problem_probl... | from django.core.mail import mail_managers
from django.conf import settings
from django.template.loader import render_to_string
from django.utils.translation import ugettext_lazy as _
def inform_managers(report):
mail_managers(
_('New problem: {label} [#{reqid}]').format(
label=report.get_kind... | <commit_before>from django.core.mail import mail_managers
from django.conf import settings
from django.template.loader import render_to_string
from django.utils.translation import ugettext_lazy as _
def inform_managers(report):
mail_managers(
_('New problem: {label} [#{reqid}]').format(
label=... |
53e2ef4079bc191b0b88395cf23e7bac576033dc | mne/simulation/simulation_metrics.py | mne/simulation/simulation_metrics.py |
import numpy as np
def _check_stc(stc1, stc2):
# XXX What should we check? that the data is having the same size?
if stc1.data.shape != stc2.data.shape:
raise ValueError('Data in stcs must have the same size')
if stc1.times != stc2.times:
raise ValueError('Times of two stcs must match.')
... | # Authors: Yousra Bekhti
# Mark Wronkiewicz <[email protected]>
#
# License: BSD (3-clause)
import numpy as np
def _check_stc(stc1, stc2):
# XXX What should we check? that the data is having the same size?
if stc1.data.shape != stc2.data.shape:
raise ValueError('Data in stcs must have the... | Add documentation, tests, fix corr | Add documentation, tests, fix corr
| Python | bsd-3-clause | lorenzo-desantis/mne-python,wronk/mne-python,Teekuningas/mne-python,olafhauk/mne-python,mne-tools/mne-python,jaeilepp/mne-python,ARudiuk/mne-python,jmontoyam/mne-python,rkmaddox/mne-python,pravsripad/mne-python,larsoner/mne-python,wmvanvliet/mne-python,larsoner/mne-python,kingjr/mne-python,teonlamont/mne-python,kingjr/... |
import numpy as np
def _check_stc(stc1, stc2):
# XXX What should we check? that the data is having the same size?
if stc1.data.shape != stc2.data.shape:
raise ValueError('Data in stcs must have the same size')
if stc1.times != stc2.times:
raise ValueError('Times of two stcs must match.')
... | # Authors: Yousra Bekhti
# Mark Wronkiewicz <[email protected]>
#
# License: BSD (3-clause)
import numpy as np
def _check_stc(stc1, stc2):
# XXX What should we check? that the data is having the same size?
if stc1.data.shape != stc2.data.shape:
raise ValueError('Data in stcs must have the... | <commit_before>
import numpy as np
def _check_stc(stc1, stc2):
# XXX What should we check? that the data is having the same size?
if stc1.data.shape != stc2.data.shape:
raise ValueError('Data in stcs must have the same size')
if stc1.times != stc2.times:
raise ValueError('Times of two stcs... | # Authors: Yousra Bekhti
# Mark Wronkiewicz <[email protected]>
#
# License: BSD (3-clause)
import numpy as np
def _check_stc(stc1, stc2):
# XXX What should we check? that the data is having the same size?
if stc1.data.shape != stc2.data.shape:
raise ValueError('Data in stcs must have the... |
import numpy as np
def _check_stc(stc1, stc2):
# XXX What should we check? that the data is having the same size?
if stc1.data.shape != stc2.data.shape:
raise ValueError('Data in stcs must have the same size')
if stc1.times != stc2.times:
raise ValueError('Times of two stcs must match.')
... | <commit_before>
import numpy as np
def _check_stc(stc1, stc2):
# XXX What should we check? that the data is having the same size?
if stc1.data.shape != stc2.data.shape:
raise ValueError('Data in stcs must have the same size')
if stc1.times != stc2.times:
raise ValueError('Times of two stcs... |
8f3b6912ac7dd9fa63143a7e482d880658e69ac4 | pyeda/__init__.py | pyeda/__init__.py | """
Python EDA Package
common.py
boolfunc.py -- Boolean functions
expr.py -- Boolean logic expressions
vexpr.py -- Boolean vector logic expressions
table.py -- Boolean tables
"""
__copyright__ = "Copyright (c) 2012, Chris Drake"
__version__ = "0.3.1"
| """
Python EDA Package
common.py
boolfunc.py -- Boolean functions
constant.py -- Boolean constant functions
expr.py -- Boolean logic expressions
vexpr.py -- Boolean vector logic expressions
table.py -- Boolean tables
"""
__copyright__ = "Copyright (c) 2012, Chris Drake"
__version__ = "0.3.1"
| Add constant.py to package docstring | Add constant.py to package docstring
| Python | bsd-2-clause | sschnug/pyeda,pombredanne/pyeda,pombredanne/pyeda,GtTmy/pyeda,cjdrake/pyeda,pombredanne/pyeda,GtTmy/pyeda,cjdrake/pyeda,sschnug/pyeda,karissa/pyeda,sschnug/pyeda,karissa/pyeda,cjdrake/pyeda,GtTmy/pyeda,karissa/pyeda | """
Python EDA Package
common.py
boolfunc.py -- Boolean functions
expr.py -- Boolean logic expressions
vexpr.py -- Boolean vector logic expressions
table.py -- Boolean tables
"""
__copyright__ = "Copyright (c) 2012, Chris Drake"
__version__ = "0.3.1"
Add constant.py to package docstring | """
Python EDA Package
common.py
boolfunc.py -- Boolean functions
constant.py -- Boolean constant functions
expr.py -- Boolean logic expressions
vexpr.py -- Boolean vector logic expressions
table.py -- Boolean tables
"""
__copyright__ = "Copyright (c) 2012, Chris Drake"
__version__ = "0.3.1"
| <commit_before>"""
Python EDA Package
common.py
boolfunc.py -- Boolean functions
expr.py -- Boolean logic expressions
vexpr.py -- Boolean vector logic expressions
table.py -- Boolean tables
"""
__copyright__ = "Copyright (c) 2012, Chris Drake"
__version__ = "0.3.1"
<commit_msg>Add constant.py to package docstring<com... | """
Python EDA Package
common.py
boolfunc.py -- Boolean functions
constant.py -- Boolean constant functions
expr.py -- Boolean logic expressions
vexpr.py -- Boolean vector logic expressions
table.py -- Boolean tables
"""
__copyright__ = "Copyright (c) 2012, Chris Drake"
__version__ = "0.3.1"
| """
Python EDA Package
common.py
boolfunc.py -- Boolean functions
expr.py -- Boolean logic expressions
vexpr.py -- Boolean vector logic expressions
table.py -- Boolean tables
"""
__copyright__ = "Copyright (c) 2012, Chris Drake"
__version__ = "0.3.1"
Add constant.py to package docstring"""
Python EDA Package
common.... | <commit_before>"""
Python EDA Package
common.py
boolfunc.py -- Boolean functions
expr.py -- Boolean logic expressions
vexpr.py -- Boolean vector logic expressions
table.py -- Boolean tables
"""
__copyright__ = "Copyright (c) 2012, Chris Drake"
__version__ = "0.3.1"
<commit_msg>Add constant.py to package docstring<com... |
ac1dcd9f7acb8e8867996c70aa0a35eb45fcdc53 | generator/php_di_gen.py | generator/php_di_gen.py | #! /usr/bin/python
"""
This script accepts a string with the following syntax:
Get the list of classes that a PHP class depends on.
Generate PHP code that
defines the fields with corresponding
names ( same name as the class name but with the first letter
converted to lower case ).
defines the constructor.
P... | #! /usr/bin/python
"""
This script accepts a string with the following syntax:
Get the list of classes that a PHP class depends on.
Generate PHP code that
defines the fields with corresponding
names ( same name as the class name but with the first letter
converted to lower case ).
defines the constructor.
P... | Fix import and update help | Fix import and update help
Use relative module name
The script may be invoked from a single executable without py extension.
| Python | apache-2.0 | HappyRay/php-di-generator | #! /usr/bin/python
"""
This script accepts a string with the following syntax:
Get the list of classes that a PHP class depends on.
Generate PHP code that
defines the fields with corresponding
names ( same name as the class name but with the first letter
converted to lower case ).
defines the constructor.
P... | #! /usr/bin/python
"""
This script accepts a string with the following syntax:
Get the list of classes that a PHP class depends on.
Generate PHP code that
defines the fields with corresponding
names ( same name as the class name but with the first letter
converted to lower case ).
defines the constructor.
P... | <commit_before>#! /usr/bin/python
"""
This script accepts a string with the following syntax:
Get the list of classes that a PHP class depends on.
Generate PHP code that
defines the fields with corresponding
names ( same name as the class name but with the first letter
converted to lower case ).
defines the co... | #! /usr/bin/python
"""
This script accepts a string with the following syntax:
Get the list of classes that a PHP class depends on.
Generate PHP code that
defines the fields with corresponding
names ( same name as the class name but with the first letter
converted to lower case ).
defines the constructor.
P... | #! /usr/bin/python
"""
This script accepts a string with the following syntax:
Get the list of classes that a PHP class depends on.
Generate PHP code that
defines the fields with corresponding
names ( same name as the class name but with the first letter
converted to lower case ).
defines the constructor.
P... | <commit_before>#! /usr/bin/python
"""
This script accepts a string with the following syntax:
Get the list of classes that a PHP class depends on.
Generate PHP code that
defines the fields with corresponding
names ( same name as the class name but with the first letter
converted to lower case ).
defines the co... |
f029a204289abb91d57e117d45772d24372a1a43 | requests-RT/rt.py | requests-RT/rt.py | #!/usr/bin/python
import requests
class RT:
def __init__(self, apikey):
self.apikey = apikey
@staticmethod
def make_request(url, params=None):
req = requests.get(url, params=params)
return req.content
def search(self, query, page_limit=30, page=1):
url = 'http://a... | #!/usr/bin/python
__author__ = 'Mahmoud Hossam'
__version__ = '0.1'
import requests
class RT:
def __init__(self, apikey):
self.apikey = apikey
@staticmethod
def make_request(url, params=None):
req = requests.get(url, params=params)
return req.content
def search(self, que... | Add author and version number | Add author and version number
| Python | bsd-2-clause | mahmoudhossam/requests-RT | #!/usr/bin/python
import requests
class RT:
def __init__(self, apikey):
self.apikey = apikey
@staticmethod
def make_request(url, params=None):
req = requests.get(url, params=params)
return req.content
def search(self, query, page_limit=30, page=1):
url = 'http://a... | #!/usr/bin/python
__author__ = 'Mahmoud Hossam'
__version__ = '0.1'
import requests
class RT:
def __init__(self, apikey):
self.apikey = apikey
@staticmethod
def make_request(url, params=None):
req = requests.get(url, params=params)
return req.content
def search(self, que... | <commit_before>#!/usr/bin/python
import requests
class RT:
def __init__(self, apikey):
self.apikey = apikey
@staticmethod
def make_request(url, params=None):
req = requests.get(url, params=params)
return req.content
def search(self, query, page_limit=30, page=1):
... | #!/usr/bin/python
__author__ = 'Mahmoud Hossam'
__version__ = '0.1'
import requests
class RT:
def __init__(self, apikey):
self.apikey = apikey
@staticmethod
def make_request(url, params=None):
req = requests.get(url, params=params)
return req.content
def search(self, que... | #!/usr/bin/python
import requests
class RT:
def __init__(self, apikey):
self.apikey = apikey
@staticmethod
def make_request(url, params=None):
req = requests.get(url, params=params)
return req.content
def search(self, query, page_limit=30, page=1):
url = 'http://a... | <commit_before>#!/usr/bin/python
import requests
class RT:
def __init__(self, apikey):
self.apikey = apikey
@staticmethod
def make_request(url, params=None):
req = requests.get(url, params=params)
return req.content
def search(self, query, page_limit=30, page=1):
... |
6194aa67ce54ce5c2fb0de58bfb2d75607d7b882 | bin/combine_results.py | bin/combine_results.py | #!/usr/bin/env python
"""
Simple script to combine JUnit test results into a single XML file.
Useful for Jenkins.
TODO: Pretty indentation
"""
import os
from xml.etree import cElementTree as ET
def find_all(name, path):
result = []
for root, dirs, files in os.walk(path):
if name in files:
... | #!/usr/bin/env python
"""
Simple script to combine JUnit test results into a single XML file.
Useful for Jenkins.
TODO: Pretty indentation
"""
import os
from xml.etree import cElementTree as ET
def find_all(name, path):
result = []
for root, dirs, files in os.walk(path):
if name in files:
... | Enable regression run to work on python 2.6 | Cleanup: Enable regression run to work on python 2.6
| Python | bsd-3-clause | mkreider/cocotb2,stuarthodgson/cocotb,mkreider/cocotb2,mkreider/cocotb2,stuarthodgson/cocotb,stuarthodgson/cocotb | #!/usr/bin/env python
"""
Simple script to combine JUnit test results into a single XML file.
Useful for Jenkins.
TODO: Pretty indentation
"""
import os
from xml.etree import cElementTree as ET
def find_all(name, path):
result = []
for root, dirs, files in os.walk(path):
if name in files:
... | #!/usr/bin/env python
"""
Simple script to combine JUnit test results into a single XML file.
Useful for Jenkins.
TODO: Pretty indentation
"""
import os
from xml.etree import cElementTree as ET
def find_all(name, path):
result = []
for root, dirs, files in os.walk(path):
if name in files:
... | <commit_before>#!/usr/bin/env python
"""
Simple script to combine JUnit test results into a single XML file.
Useful for Jenkins.
TODO: Pretty indentation
"""
import os
from xml.etree import cElementTree as ET
def find_all(name, path):
result = []
for root, dirs, files in os.walk(path):
if name in fi... | #!/usr/bin/env python
"""
Simple script to combine JUnit test results into a single XML file.
Useful for Jenkins.
TODO: Pretty indentation
"""
import os
from xml.etree import cElementTree as ET
def find_all(name, path):
result = []
for root, dirs, files in os.walk(path):
if name in files:
... | #!/usr/bin/env python
"""
Simple script to combine JUnit test results into a single XML file.
Useful for Jenkins.
TODO: Pretty indentation
"""
import os
from xml.etree import cElementTree as ET
def find_all(name, path):
result = []
for root, dirs, files in os.walk(path):
if name in files:
... | <commit_before>#!/usr/bin/env python
"""
Simple script to combine JUnit test results into a single XML file.
Useful for Jenkins.
TODO: Pretty indentation
"""
import os
from xml.etree import cElementTree as ET
def find_all(name, path):
result = []
for root, dirs, files in os.walk(path):
if name in fi... |
e9ec19e68ccefaee9a975a6adc26cb6e5f1f7f33 | pymodels/middlelayer/devices/__init__.py | pymodels/middlelayer/devices/__init__.py | from .dcct import DCCT
from .li_llrf import LiLLRF
from .rf import RF
from .sofb import SOFB
from .kicker import Kicker
from .septum import Septum
from .screen import Screen
from .bpm import BPM
from .ict import ICT
from .ict import TranspEff
from .egun import Bias
from .egun import Filament
from .egun import HVPS
| from .dcct import DCCT
from .li_llrf import LiLLRF
from .rf import RF
from .sofb import SOFB
from .kicker import Kicker
from .septum import Septum
from .screen import Screen
from .bpm import BPM
from .ict import ICT
from .ict import TranspEff
from .egun import Bias
from .egun import Filament
from .egun import HVPS
from... | Add timing in devices init | DEV.ENH: Add timing in devices init
| Python | mit | lnls-fac/sirius | from .dcct import DCCT
from .li_llrf import LiLLRF
from .rf import RF
from .sofb import SOFB
from .kicker import Kicker
from .septum import Septum
from .screen import Screen
from .bpm import BPM
from .ict import ICT
from .ict import TranspEff
from .egun import Bias
from .egun import Filament
from .egun import HVPS
DEV.... | from .dcct import DCCT
from .li_llrf import LiLLRF
from .rf import RF
from .sofb import SOFB
from .kicker import Kicker
from .septum import Septum
from .screen import Screen
from .bpm import BPM
from .ict import ICT
from .ict import TranspEff
from .egun import Bias
from .egun import Filament
from .egun import HVPS
from... | <commit_before>from .dcct import DCCT
from .li_llrf import LiLLRF
from .rf import RF
from .sofb import SOFB
from .kicker import Kicker
from .septum import Septum
from .screen import Screen
from .bpm import BPM
from .ict import ICT
from .ict import TranspEff
from .egun import Bias
from .egun import Filament
from .egun i... | from .dcct import DCCT
from .li_llrf import LiLLRF
from .rf import RF
from .sofb import SOFB
from .kicker import Kicker
from .septum import Septum
from .screen import Screen
from .bpm import BPM
from .ict import ICT
from .ict import TranspEff
from .egun import Bias
from .egun import Filament
from .egun import HVPS
from... | from .dcct import DCCT
from .li_llrf import LiLLRF
from .rf import RF
from .sofb import SOFB
from .kicker import Kicker
from .septum import Septum
from .screen import Screen
from .bpm import BPM
from .ict import ICT
from .ict import TranspEff
from .egun import Bias
from .egun import Filament
from .egun import HVPS
DEV.... | <commit_before>from .dcct import DCCT
from .li_llrf import LiLLRF
from .rf import RF
from .sofb import SOFB
from .kicker import Kicker
from .septum import Septum
from .screen import Screen
from .bpm import BPM
from .ict import ICT
from .ict import TranspEff
from .egun import Bias
from .egun import Filament
from .egun i... |
a9354124f4905f4befe9ff2ca8274406fbbb0dad | readux/annotations/migrations/0003_annotation_group_and_permissions.py | readux/annotations/migrations/0003_annotation_group_and_permissions.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('auth', '0006_require_contenttypes_0002'),
('annotations', '0002_add_volume_uri'),
]
operations = [
migrations.Create... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('auth', '0006_require_contenttypes_0002'),
('annotations', '0002_add_volume_uri'),
]
operations = [
migrations.Create... | Fix migration that adds custom annotation permissions | Fix migration that adds custom annotation permissions
| Python | apache-2.0 | emory-libraries/readux,emory-libraries/readux,emory-libraries/readux | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('auth', '0006_require_contenttypes_0002'),
('annotations', '0002_add_volume_uri'),
]
operations = [
migrations.Create... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('auth', '0006_require_contenttypes_0002'),
('annotations', '0002_add_volume_uri'),
]
operations = [
migrations.Create... | <commit_before># -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('auth', '0006_require_contenttypes_0002'),
('annotations', '0002_add_volume_uri'),
]
operations = [
mi... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('auth', '0006_require_contenttypes_0002'),
('annotations', '0002_add_volume_uri'),
]
operations = [
migrations.Create... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('auth', '0006_require_contenttypes_0002'),
('annotations', '0002_add_volume_uri'),
]
operations = [
migrations.Create... | <commit_before># -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('auth', '0006_require_contenttypes_0002'),
('annotations', '0002_add_volume_uri'),
]
operations = [
mi... |
5531f188c7bf3030cb9fc3b46d92a1db60817b7c | confirmation/views.py | confirmation/views.py | # -*- coding: utf-8 -*-
# Copyright: (c) 2008, Jarek Zgoda <[email protected]>
__revision__ = '$Id: views.py 21 2008-12-05 09:21:03Z jarek.zgoda $'
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.conf import settings
from confirmation.models import Confirm... | # -*- coding: utf-8 -*-
# Copyright: (c) 2008, Jarek Zgoda <[email protected]>
__revision__ = '$Id: views.py 21 2008-12-05 09:21:03Z jarek.zgoda $'
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.conf import settings
from confirmation.models import Confirm... | Include confirmation key in context object. | Include confirmation key in context object.
This way our templates can reference the confirmation key later.
(imported from commit 4d57e1309386f2236829b6fdf4e4ad43c5b125c8)
| Python | apache-2.0 | schatt/zulip,deer-hope/zulip,PaulPetring/zulip,adnanh/zulip,jeffcao/zulip,hafeez3000/zulip,fw1121/zulip,KJin99/zulip,ufosky-server/zulip,mahim97/zulip,dhcrzf/zulip,dawran6/zulip,firstblade/zulip,akuseru/zulip,eastlhu/zulip,showell/zulip,dawran6/zulip,vikas-parashar/zulip,esander91/zulip,eastlhu/zulip,so0k/zulip,johnny9... | # -*- coding: utf-8 -*-
# Copyright: (c) 2008, Jarek Zgoda <[email protected]>
__revision__ = '$Id: views.py 21 2008-12-05 09:21:03Z jarek.zgoda $'
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.conf import settings
from confirmation.models import Confirm... | # -*- coding: utf-8 -*-
# Copyright: (c) 2008, Jarek Zgoda <[email protected]>
__revision__ = '$Id: views.py 21 2008-12-05 09:21:03Z jarek.zgoda $'
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.conf import settings
from confirmation.models import Confirm... | <commit_before># -*- coding: utf-8 -*-
# Copyright: (c) 2008, Jarek Zgoda <[email protected]>
__revision__ = '$Id: views.py 21 2008-12-05 09:21:03Z jarek.zgoda $'
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.conf import settings
from confirmation.models... | # -*- coding: utf-8 -*-
# Copyright: (c) 2008, Jarek Zgoda <[email protected]>
__revision__ = '$Id: views.py 21 2008-12-05 09:21:03Z jarek.zgoda $'
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.conf import settings
from confirmation.models import Confirm... | # -*- coding: utf-8 -*-
# Copyright: (c) 2008, Jarek Zgoda <[email protected]>
__revision__ = '$Id: views.py 21 2008-12-05 09:21:03Z jarek.zgoda $'
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.conf import settings
from confirmation.models import Confirm... | <commit_before># -*- coding: utf-8 -*-
# Copyright: (c) 2008, Jarek Zgoda <[email protected]>
__revision__ = '$Id: views.py 21 2008-12-05 09:21:03Z jarek.zgoda $'
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.conf import settings
from confirmation.models... |
6ea9492ae32ad744da4803dcab3cf57334dd69e5 | script_helpers.py | script_helpers.py | """A set of functions to standardize some options for python scripts."""
def setup_parser_help(parser, additional_docs=None):
"""
Set formatting for parser to raw and add docstring to help output
Parameters
----------
parser : `ArgumentParser`
The parser to be modified.
additional_d... | """A set of functions to standardize some options for python scripts."""
def setup_parser_help(parser, additional_docs=None):
"""
Set formatting for parser to raw and add docstring to help output
Parameters
----------
parser : `ArgumentParser`
The parser to be modified.
additional_d... | Change name of and add documentation to directory argument | Change name of and add documentation to directory argument
| Python | bsd-3-clause | mwcraig/msumastro | """A set of functions to standardize some options for python scripts."""
def setup_parser_help(parser, additional_docs=None):
"""
Set formatting for parser to raw and add docstring to help output
Parameters
----------
parser : `ArgumentParser`
The parser to be modified.
additional_d... | """A set of functions to standardize some options for python scripts."""
def setup_parser_help(parser, additional_docs=None):
"""
Set formatting for parser to raw and add docstring to help output
Parameters
----------
parser : `ArgumentParser`
The parser to be modified.
additional_d... | <commit_before>"""A set of functions to standardize some options for python scripts."""
def setup_parser_help(parser, additional_docs=None):
"""
Set formatting for parser to raw and add docstring to help output
Parameters
----------
parser : `ArgumentParser`
The parser to be modified.
... | """A set of functions to standardize some options for python scripts."""
def setup_parser_help(parser, additional_docs=None):
"""
Set formatting for parser to raw and add docstring to help output
Parameters
----------
parser : `ArgumentParser`
The parser to be modified.
additional_d... | """A set of functions to standardize some options for python scripts."""
def setup_parser_help(parser, additional_docs=None):
"""
Set formatting for parser to raw and add docstring to help output
Parameters
----------
parser : `ArgumentParser`
The parser to be modified.
additional_d... | <commit_before>"""A set of functions to standardize some options for python scripts."""
def setup_parser_help(parser, additional_docs=None):
"""
Set formatting for parser to raw and add docstring to help output
Parameters
----------
parser : `ArgumentParser`
The parser to be modified.
... |
07538222d07b0a565cadadd40df9bedeb12a4f60 | talk_timer.py | talk_timer.py | #!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
import argparse
from time import sleep
import pyttsx
parser = argparse.ArgumentParser(description='Presentation timer with spoken warnings.')
parser.add_argument('minutes', type=int, nargs=1, help='Length of talk in minutes')
args = parser.parse_args()
minutes = args.m... | #!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
import argparse
from time import sleep
import pyttsx
parser = argparse.ArgumentParser(description='Presentation timer with spoken warnings.')
parser.add_argument('minutes', type=int, help='Length of talk in minutes')
args = parser.parse_args()
print "Timing a {0}-minut... | Remove nargs param so that minutes is an int, not list. | Remove nargs param so that minutes is an int, not list.
| Python | bsd-3-clause | audreyr/useful | #!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
import argparse
from time import sleep
import pyttsx
parser = argparse.ArgumentParser(description='Presentation timer with spoken warnings.')
parser.add_argument('minutes', type=int, nargs=1, help='Length of talk in minutes')
args = parser.parse_args()
minutes = args.m... | #!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
import argparse
from time import sleep
import pyttsx
parser = argparse.ArgumentParser(description='Presentation timer with spoken warnings.')
parser.add_argument('minutes', type=int, help='Length of talk in minutes')
args = parser.parse_args()
print "Timing a {0}-minut... | <commit_before>#!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
import argparse
from time import sleep
import pyttsx
parser = argparse.ArgumentParser(description='Presentation timer with spoken warnings.')
parser.add_argument('minutes', type=int, nargs=1, help='Length of talk in minutes')
args = parser.parse_args()
m... | #!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
import argparse
from time import sleep
import pyttsx
parser = argparse.ArgumentParser(description='Presentation timer with spoken warnings.')
parser.add_argument('minutes', type=int, help='Length of talk in minutes')
args = parser.parse_args()
print "Timing a {0}-minut... | #!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
import argparse
from time import sleep
import pyttsx
parser = argparse.ArgumentParser(description='Presentation timer with spoken warnings.')
parser.add_argument('minutes', type=int, nargs=1, help='Length of talk in minutes')
args = parser.parse_args()
minutes = args.m... | <commit_before>#!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
import argparse
from time import sleep
import pyttsx
parser = argparse.ArgumentParser(description='Presentation timer with spoken warnings.')
parser.add_argument('minutes', type=int, nargs=1, help='Length of talk in minutes')
args = parser.parse_args()
m... |
b06eb92ec878a06a2fa1ce9b7eb4d253d5481daa | tests/activity/test_activity_deposit_assets.py | tests/activity/test_activity_deposit_assets.py | import unittest
from activity.activity_DepositAssets import activity_DepositAssets
import settings_mock
from ddt import ddt, data, unpack
@ddt
class TestDepositAssets(unittest.TestCase):
def setUp(self):
self.depositassets = activity_DepositAssets(settings_mock, None, None, None, None)
@unpack
@d... | import unittest
from activity.activity_DepositAssets import activity_DepositAssets
import settings_mock
from ddt import ddt, data, unpack
@ddt
class TestDepositAssets(unittest.TestCase):
def setUp(self):
self.depositassets = activity_DepositAssets(settings_mock, None, None, None, None)
@unpack
@d... | Change test data for mimetype to content_type. | Change test data for mimetype to content_type.
| Python | mit | gnott/elife-bot,gnott/elife-bot,jhroot/elife-bot,gnott/elife-bot,jhroot/elife-bot,jhroot/elife-bot | import unittest
from activity.activity_DepositAssets import activity_DepositAssets
import settings_mock
from ddt import ddt, data, unpack
@ddt
class TestDepositAssets(unittest.TestCase):
def setUp(self):
self.depositassets = activity_DepositAssets(settings_mock, None, None, None, None)
@unpack
@d... | import unittest
from activity.activity_DepositAssets import activity_DepositAssets
import settings_mock
from ddt import ddt, data, unpack
@ddt
class TestDepositAssets(unittest.TestCase):
def setUp(self):
self.depositassets = activity_DepositAssets(settings_mock, None, None, None, None)
@unpack
@d... | <commit_before>import unittest
from activity.activity_DepositAssets import activity_DepositAssets
import settings_mock
from ddt import ddt, data, unpack
@ddt
class TestDepositAssets(unittest.TestCase):
def setUp(self):
self.depositassets = activity_DepositAssets(settings_mock, None, None, None, None)
... | import unittest
from activity.activity_DepositAssets import activity_DepositAssets
import settings_mock
from ddt import ddt, data, unpack
@ddt
class TestDepositAssets(unittest.TestCase):
def setUp(self):
self.depositassets = activity_DepositAssets(settings_mock, None, None, None, None)
@unpack
@d... | import unittest
from activity.activity_DepositAssets import activity_DepositAssets
import settings_mock
from ddt import ddt, data, unpack
@ddt
class TestDepositAssets(unittest.TestCase):
def setUp(self):
self.depositassets = activity_DepositAssets(settings_mock, None, None, None, None)
@unpack
@d... | <commit_before>import unittest
from activity.activity_DepositAssets import activity_DepositAssets
import settings_mock
from ddt import ddt, data, unpack
@ddt
class TestDepositAssets(unittest.TestCase):
def setUp(self):
self.depositassets = activity_DepositAssets(settings_mock, None, None, None, None)
... |
a09274fbc9277de2cbd3336fca4922094b0db8d1 | crmapp/urls.py | crmapp/urls.py | from django.conf.urls import patterns, include, url
from django.contrib import admin
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'crmapp.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^admin/', include(admin.site.urls)),
)
| from django.conf.urls import patterns, include, url
from marketing.views import HomePage
urlpatterns = patterns('',
# Marketing pages
url(r'^$', HomePage.as_view(), name="home"),
# Subscriber related URLs
# Admin URL
# Login/Logout URLs
# Account related URLs
# Contact related UR... | Create the Home Page > Create the URL Conf | Create the Home Page > Create the URL Conf
| Python | mit | tabdon/crmeasyapp,tabdon/crmeasyapp,deenaariff/Django | from django.conf.urls import patterns, include, url
from django.contrib import admin
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'crmapp.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^admin/', include(admin.site.urls)),
)
Create the Home Page > Create the URL Conf | from django.conf.urls import patterns, include, url
from marketing.views import HomePage
urlpatterns = patterns('',
# Marketing pages
url(r'^$', HomePage.as_view(), name="home"),
# Subscriber related URLs
# Admin URL
# Login/Logout URLs
# Account related URLs
# Contact related UR... | <commit_before>from django.conf.urls import patterns, include, url
from django.contrib import admin
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'crmapp.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^admin/', include(admin.site.urls)),
)
<commit_msg>Create the Home Pa... | from django.conf.urls import patterns, include, url
from marketing.views import HomePage
urlpatterns = patterns('',
# Marketing pages
url(r'^$', HomePage.as_view(), name="home"),
# Subscriber related URLs
# Admin URL
# Login/Logout URLs
# Account related URLs
# Contact related UR... | from django.conf.urls import patterns, include, url
from django.contrib import admin
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'crmapp.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^admin/', include(admin.site.urls)),
)
Create the Home Page > Create the URL Conffro... | <commit_before>from django.conf.urls import patterns, include, url
from django.contrib import admin
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'crmapp.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^admin/', include(admin.site.urls)),
)
<commit_msg>Create the Home Pa... |
f155c200dc6f8b7b9461f399a3d3642d23e64942 | snipsskills/templates/intent_template.py | snipsskills/templates/intent_template.py | # -*-: coding utf-8 -*-
""" Auto-generated intent class. """
# *****************************************************************************
# *****************************************************************************
# *****************************************************************************
#
# WARNING: THIS ... | # -*-: coding utf-8 -*-
""" Auto-generated intent class. """
# *****************************************************************************
# *****************************************************************************
# *****************************************************************************
#
# WARNING: THIS ... | Add intent sessionId siteId & customData | Add intent sessionId siteId & customData
| Python | mit | snipsco/snipsskills,snipsco/snipsskills,snipsco/snipsskills,snipsco/snipsskills | # -*-: coding utf-8 -*-
""" Auto-generated intent class. """
# *****************************************************************************
# *****************************************************************************
# *****************************************************************************
#
# WARNING: THIS ... | # -*-: coding utf-8 -*-
""" Auto-generated intent class. """
# *****************************************************************************
# *****************************************************************************
# *****************************************************************************
#
# WARNING: THIS ... | <commit_before># -*-: coding utf-8 -*-
""" Auto-generated intent class. """
# *****************************************************************************
# *****************************************************************************
# *****************************************************************************
#
#... | # -*-: coding utf-8 -*-
""" Auto-generated intent class. """
# *****************************************************************************
# *****************************************************************************
# *****************************************************************************
#
# WARNING: THIS ... | # -*-: coding utf-8 -*-
""" Auto-generated intent class. """
# *****************************************************************************
# *****************************************************************************
# *****************************************************************************
#
# WARNING: THIS ... | <commit_before># -*-: coding utf-8 -*-
""" Auto-generated intent class. """
# *****************************************************************************
# *****************************************************************************
# *****************************************************************************
#
#... |
a51d280ca7c7f487e6743e4f377f70641a8b4edd | turbustat/statistics/statistics_list.py | turbustat/statistics/statistics_list.py | # Licensed under an MIT open source license - see LICENSE
'''
Returns a list of all available distance metrics
'''
statistics_list = ["Wavelet", "MVC", "PSpec", "Bispectrum", "DeltaVariance",
"Genus", "VCS", "VCA", "Tsallis", "PCA", "SCF", "Cramer",
"Skewness", "Kurtosis", "VCS_S... | # Licensed under an MIT open source license - see LICENSE
'''
Returns a list of all available distance metrics
'''
statistics_list = ["Wavelet", "MVC", "PSpec", "Bispectrum", "DeltaVariance",
"Genus", "VCS", "VCA", "Tsallis", "PCA", "SCF", "Cramer",
"Skewness", "Kurtosis", "VCS_S... | Update the stats lists and add a 3D only version | Update the stats lists and add a 3D only version
| Python | mit | Astroua/TurbuStat,e-koch/TurbuStat | # Licensed under an MIT open source license - see LICENSE
'''
Returns a list of all available distance metrics
'''
statistics_list = ["Wavelet", "MVC", "PSpec", "Bispectrum", "DeltaVariance",
"Genus", "VCS", "VCA", "Tsallis", "PCA", "SCF", "Cramer",
"Skewness", "Kurtosis", "VCS_S... | # Licensed under an MIT open source license - see LICENSE
'''
Returns a list of all available distance metrics
'''
statistics_list = ["Wavelet", "MVC", "PSpec", "Bispectrum", "DeltaVariance",
"Genus", "VCS", "VCA", "Tsallis", "PCA", "SCF", "Cramer",
"Skewness", "Kurtosis", "VCS_S... | <commit_before># Licensed under an MIT open source license - see LICENSE
'''
Returns a list of all available distance metrics
'''
statistics_list = ["Wavelet", "MVC", "PSpec", "Bispectrum", "DeltaVariance",
"Genus", "VCS", "VCA", "Tsallis", "PCA", "SCF", "Cramer",
"Skewness", "Ku... | # Licensed under an MIT open source license - see LICENSE
'''
Returns a list of all available distance metrics
'''
statistics_list = ["Wavelet", "MVC", "PSpec", "Bispectrum", "DeltaVariance",
"Genus", "VCS", "VCA", "Tsallis", "PCA", "SCF", "Cramer",
"Skewness", "Kurtosis", "VCS_S... | # Licensed under an MIT open source license - see LICENSE
'''
Returns a list of all available distance metrics
'''
statistics_list = ["Wavelet", "MVC", "PSpec", "Bispectrum", "DeltaVariance",
"Genus", "VCS", "VCA", "Tsallis", "PCA", "SCF", "Cramer",
"Skewness", "Kurtosis", "VCS_S... | <commit_before># Licensed under an MIT open source license - see LICENSE
'''
Returns a list of all available distance metrics
'''
statistics_list = ["Wavelet", "MVC", "PSpec", "Bispectrum", "DeltaVariance",
"Genus", "VCS", "VCA", "Tsallis", "PCA", "SCF", "Cramer",
"Skewness", "Ku... |
50d69badbaeb41736269c99f7b301f09c9b24ecb | testing/test_models.py | testing/test_models.py | from k2catalogue import models
def test_safe_float_good():
assert models.safe_float("2") == 2.0
def test_safe_float_bad():
assert models.safe_float('this is not convertable to a float') is None
| from k2catalogue import models
def test_safe_float_good():
assert models.safe_float("2") == 2.0
def test_safe_float_bad():
assert models.safe_float('this is not convertable to a float') is None
def test_proposal_printing():
proposal = models.Proposal(proposal_id='abc')
assert repr(proposal) == '<Prop... | Add test for proposal printing | Add test for proposal printing
| Python | mit | mindriot101/k2catalogue | from k2catalogue import models
def test_safe_float_good():
assert models.safe_float("2") == 2.0
def test_safe_float_bad():
assert models.safe_float('this is not convertable to a float') is None
Add test for proposal printing | from k2catalogue import models
def test_safe_float_good():
assert models.safe_float("2") == 2.0
def test_safe_float_bad():
assert models.safe_float('this is not convertable to a float') is None
def test_proposal_printing():
proposal = models.Proposal(proposal_id='abc')
assert repr(proposal) == '<Prop... | <commit_before>from k2catalogue import models
def test_safe_float_good():
assert models.safe_float("2") == 2.0
def test_safe_float_bad():
assert models.safe_float('this is not convertable to a float') is None
<commit_msg>Add test for proposal printing<commit_after> | from k2catalogue import models
def test_safe_float_good():
assert models.safe_float("2") == 2.0
def test_safe_float_bad():
assert models.safe_float('this is not convertable to a float') is None
def test_proposal_printing():
proposal = models.Proposal(proposal_id='abc')
assert repr(proposal) == '<Prop... | from k2catalogue import models
def test_safe_float_good():
assert models.safe_float("2") == 2.0
def test_safe_float_bad():
assert models.safe_float('this is not convertable to a float') is None
Add test for proposal printingfrom k2catalogue import models
def test_safe_float_good():
assert models.safe_fl... | <commit_before>from k2catalogue import models
def test_safe_float_good():
assert models.safe_float("2") == 2.0
def test_safe_float_bad():
assert models.safe_float('this is not convertable to a float') is None
<commit_msg>Add test for proposal printing<commit_after>from k2catalogue import models
def test_saf... |
855cea2b603453ce7ed907fc153962596de31f00 | src/json.py | src/json.py | msg = 'This is not yet implemented'
def validate(sketch):
"""
- sketch: a `dict`
"""
raise NotImplementedError(msg)
def readsketch_iter(iterable):
"""
- iterable: as return by ijson.parser
Returns a `dict` with a sketch information
"""
raise NotImplementedError(msg)
def readjamsc... | MSG = 'This is not yet implemented'
def validate(sketch):
"""
- sketch: a `dict`
"""
raise NotImplementedError(MSG)
def readsketch_iter(iterable):
"""
- iterable: as return by ijson.parser
Returns a `dict` with a sketch information
"""
raise NotImplementedError(MSG)
def readja... | Rename msg -> MSG (since a constant). | Rename msg -> MSG (since a constant).
| Python | mit | lgautier/mashing-pumpkins,lgautier/mashing-pumpkins,lgautier/mashing-pumpkins | msg = 'This is not yet implemented'
def validate(sketch):
"""
- sketch: a `dict`
"""
raise NotImplementedError(msg)
def readsketch_iter(iterable):
"""
- iterable: as return by ijson.parser
Returns a `dict` with a sketch information
"""
raise NotImplementedError(msg)
def readjamsc... | MSG = 'This is not yet implemented'
def validate(sketch):
"""
- sketch: a `dict`
"""
raise NotImplementedError(MSG)
def readsketch_iter(iterable):
"""
- iterable: as return by ijson.parser
Returns a `dict` with a sketch information
"""
raise NotImplementedError(MSG)
def readja... | <commit_before>msg = 'This is not yet implemented'
def validate(sketch):
"""
- sketch: a `dict`
"""
raise NotImplementedError(msg)
def readsketch_iter(iterable):
"""
- iterable: as return by ijson.parser
Returns a `dict` with a sketch information
"""
raise NotImplementedError(msg)... | MSG = 'This is not yet implemented'
def validate(sketch):
"""
- sketch: a `dict`
"""
raise NotImplementedError(MSG)
def readsketch_iter(iterable):
"""
- iterable: as return by ijson.parser
Returns a `dict` with a sketch information
"""
raise NotImplementedError(MSG)
def readja... | msg = 'This is not yet implemented'
def validate(sketch):
"""
- sketch: a `dict`
"""
raise NotImplementedError(msg)
def readsketch_iter(iterable):
"""
- iterable: as return by ijson.parser
Returns a `dict` with a sketch information
"""
raise NotImplementedError(msg)
def readjamsc... | <commit_before>msg = 'This is not yet implemented'
def validate(sketch):
"""
- sketch: a `dict`
"""
raise NotImplementedError(msg)
def readsketch_iter(iterable):
"""
- iterable: as return by ijson.parser
Returns a `dict` with a sketch information
"""
raise NotImplementedError(msg)... |
7cacf4f78f03e95eec51aac211779539954aee38 | pymanopt/manifolds/__init__.py | pymanopt/manifolds/__init__.py | from .grassmann import Grassmann
from .sphere import Sphere
from .stiefel import Stiefel
from .psd import PSDFixedRank, PSDFixedRankComplex, Elliptope, PositiveDefinite
from .oblique import Oblique
from .euclidean import Euclidean, Symmetric
from .product import Product
__all__ = ["Grassmann", "Sphere", "Stiefel", "PS... | from .grassmann import Grassmann
from .sphere import Sphere
from .stiefel import Stiefel
from .psd import PSDFixedRank, PSDFixedRankComplex, Elliptope, PositiveDefinite
from .oblique import Oblique
from .euclidean import Euclidean, Symmetric
from .product import Product
from .fixed_rank import FixedRankEmbedded
__all_... | Add FixedRankEmbedded to manifolds init. | Add FixedRankEmbedded to manifolds init.
Signed-off-by: Sebastian Weichwald <[email protected]>
| Python | bsd-3-clause | j-towns/pymanopt,nkoep/pymanopt,tingelst/pymanopt,nkoep/pymanopt,pymanopt/pymanopt,nkoep/pymanopt,pymanopt/pymanopt | from .grassmann import Grassmann
from .sphere import Sphere
from .stiefel import Stiefel
from .psd import PSDFixedRank, PSDFixedRankComplex, Elliptope, PositiveDefinite
from .oblique import Oblique
from .euclidean import Euclidean, Symmetric
from .product import Product
__all__ = ["Grassmann", "Sphere", "Stiefel", "PS... | from .grassmann import Grassmann
from .sphere import Sphere
from .stiefel import Stiefel
from .psd import PSDFixedRank, PSDFixedRankComplex, Elliptope, PositiveDefinite
from .oblique import Oblique
from .euclidean import Euclidean, Symmetric
from .product import Product
from .fixed_rank import FixedRankEmbedded
__all_... | <commit_before>from .grassmann import Grassmann
from .sphere import Sphere
from .stiefel import Stiefel
from .psd import PSDFixedRank, PSDFixedRankComplex, Elliptope, PositiveDefinite
from .oblique import Oblique
from .euclidean import Euclidean, Symmetric
from .product import Product
__all__ = ["Grassmann", "Sphere",... | from .grassmann import Grassmann
from .sphere import Sphere
from .stiefel import Stiefel
from .psd import PSDFixedRank, PSDFixedRankComplex, Elliptope, PositiveDefinite
from .oblique import Oblique
from .euclidean import Euclidean, Symmetric
from .product import Product
from .fixed_rank import FixedRankEmbedded
__all_... | from .grassmann import Grassmann
from .sphere import Sphere
from .stiefel import Stiefel
from .psd import PSDFixedRank, PSDFixedRankComplex, Elliptope, PositiveDefinite
from .oblique import Oblique
from .euclidean import Euclidean, Symmetric
from .product import Product
__all__ = ["Grassmann", "Sphere", "Stiefel", "PS... | <commit_before>from .grassmann import Grassmann
from .sphere import Sphere
from .stiefel import Stiefel
from .psd import PSDFixedRank, PSDFixedRankComplex, Elliptope, PositiveDefinite
from .oblique import Oblique
from .euclidean import Euclidean, Symmetric
from .product import Product
__all__ = ["Grassmann", "Sphere",... |
c2b9bcb5c931f89dcbbf473cefe8b238e01e5429 | vpr/tests/migrate/shell_migrate.py | vpr/tests/migrate/shell_migrate.py | from django.db import connection
from vpr_content import models
def removeDuplicatedTitleInMaterial():
cur = connection.cursor()
qr0 = 'select id from vpr_content_material'
qr1 = 'select text from vpr_content_material where id=%d'
qr2 = 'update vpr_content_material set text=\'%s\' where id=%d'
pt0 ... | from django.db import connection
from vpr_content import models
def removeDuplicatedTitleInMaterial():
cur = connection.cursor()
qr0 = 'select id from vpr_content_material'
qr1 = 'select text from vpr_content_material where id=%d'
qr2 = 'update vpr_content_material set text=\'%s\' where id=%d'
pt0 ... | Add script for correcting language | Add script for correcting language
| Python | agpl-3.0 | voer-platform/vp.repo,voer-platform/vp.repo,voer-platform/vp.repo,voer-platform/vp.repo | from django.db import connection
from vpr_content import models
def removeDuplicatedTitleInMaterial():
cur = connection.cursor()
qr0 = 'select id from vpr_content_material'
qr1 = 'select text from vpr_content_material where id=%d'
qr2 = 'update vpr_content_material set text=\'%s\' where id=%d'
pt0 ... | from django.db import connection
from vpr_content import models
def removeDuplicatedTitleInMaterial():
cur = connection.cursor()
qr0 = 'select id from vpr_content_material'
qr1 = 'select text from vpr_content_material where id=%d'
qr2 = 'update vpr_content_material set text=\'%s\' where id=%d'
pt0 ... | <commit_before>from django.db import connection
from vpr_content import models
def removeDuplicatedTitleInMaterial():
cur = connection.cursor()
qr0 = 'select id from vpr_content_material'
qr1 = 'select text from vpr_content_material where id=%d'
qr2 = 'update vpr_content_material set text=\'%s\' where ... | from django.db import connection
from vpr_content import models
def removeDuplicatedTitleInMaterial():
cur = connection.cursor()
qr0 = 'select id from vpr_content_material'
qr1 = 'select text from vpr_content_material where id=%d'
qr2 = 'update vpr_content_material set text=\'%s\' where id=%d'
pt0 ... | from django.db import connection
from vpr_content import models
def removeDuplicatedTitleInMaterial():
cur = connection.cursor()
qr0 = 'select id from vpr_content_material'
qr1 = 'select text from vpr_content_material where id=%d'
qr2 = 'update vpr_content_material set text=\'%s\' where id=%d'
pt0 ... | <commit_before>from django.db import connection
from vpr_content import models
def removeDuplicatedTitleInMaterial():
cur = connection.cursor()
qr0 = 'select id from vpr_content_material'
qr1 = 'select text from vpr_content_material where id=%d'
qr2 = 'update vpr_content_material set text=\'%s\' where ... |
95c5b9c139bf69ac11338a4b2eaa9b8179d27284 | tests/test_async.py | tests/test_async.py | # -*- coding: utf-8 -*-
from asyncio import Future, gather, new_event_loop, sleep
from twisted.internet.defer import Deferred, ensureDeferred
from pyee import EventEmitter
def test_asyncio_emit():
"""Test that event_emitters can handle wrapping coroutines as used with
asyncio.
"""
loop = new_event_loo... | # -*- coding: utf-8 -*-
from asyncio import Future, gather, new_event_loop, sleep
from mock import Mock
from twisted.internet.defer import ensureDeferred
from pyee import EventEmitter
def test_asyncio_emit():
"""Test that event_emitters can handle wrapping coroutines as used with
asyncio.
"""
loop = n... | Replace my deferred with a mock | Replace my deferred with a mock
| Python | mit | jfhbrook/pyee | # -*- coding: utf-8 -*-
from asyncio import Future, gather, new_event_loop, sleep
from twisted.internet.defer import Deferred, ensureDeferred
from pyee import EventEmitter
def test_asyncio_emit():
"""Test that event_emitters can handle wrapping coroutines as used with
asyncio.
"""
loop = new_event_loo... | # -*- coding: utf-8 -*-
from asyncio import Future, gather, new_event_loop, sleep
from mock import Mock
from twisted.internet.defer import ensureDeferred
from pyee import EventEmitter
def test_asyncio_emit():
"""Test that event_emitters can handle wrapping coroutines as used with
asyncio.
"""
loop = n... | <commit_before># -*- coding: utf-8 -*-
from asyncio import Future, gather, new_event_loop, sleep
from twisted.internet.defer import Deferred, ensureDeferred
from pyee import EventEmitter
def test_asyncio_emit():
"""Test that event_emitters can handle wrapping coroutines as used with
asyncio.
"""
loop ... | # -*- coding: utf-8 -*-
from asyncio import Future, gather, new_event_loop, sleep
from mock import Mock
from twisted.internet.defer import ensureDeferred
from pyee import EventEmitter
def test_asyncio_emit():
"""Test that event_emitters can handle wrapping coroutines as used with
asyncio.
"""
loop = n... | # -*- coding: utf-8 -*-
from asyncio import Future, gather, new_event_loop, sleep
from twisted.internet.defer import Deferred, ensureDeferred
from pyee import EventEmitter
def test_asyncio_emit():
"""Test that event_emitters can handle wrapping coroutines as used with
asyncio.
"""
loop = new_event_loo... | <commit_before># -*- coding: utf-8 -*-
from asyncio import Future, gather, new_event_loop, sleep
from twisted.internet.defer import Deferred, ensureDeferred
from pyee import EventEmitter
def test_asyncio_emit():
"""Test that event_emitters can handle wrapping coroutines as used with
asyncio.
"""
loop ... |
7cde7a232a53138c2c199c16f55e0aecdcbf1aee | tests/test_basic.py | tests/test_basic.py | import sys
import pubrunner
import pubrunner.command_line
def test_countwords():
#pubrunner.pubrun('examples/CountWords/',True,True)
sys.argv = ['--test','examples/CountWords/']
pubrunner.command_line.main()
| import sys
import pubrunner
import pubrunner.command_line
def test_countwords():
#pubrunner.pubrun('examples/CountWords/',True,True)
sys.argv = ['pubrunner', '--test','examples/CountWords/']
pubrunner.command_line.main()
| Test wasn't using --test flag properly | Test wasn't using --test flag properly
| Python | mit | jakelever/pubrunner,jakelever/pubrunner | import sys
import pubrunner
import pubrunner.command_line
def test_countwords():
#pubrunner.pubrun('examples/CountWords/',True,True)
sys.argv = ['--test','examples/CountWords/']
pubrunner.command_line.main()
Test wasn't using --test flag properly | import sys
import pubrunner
import pubrunner.command_line
def test_countwords():
#pubrunner.pubrun('examples/CountWords/',True,True)
sys.argv = ['pubrunner', '--test','examples/CountWords/']
pubrunner.command_line.main()
| <commit_before>import sys
import pubrunner
import pubrunner.command_line
def test_countwords():
#pubrunner.pubrun('examples/CountWords/',True,True)
sys.argv = ['--test','examples/CountWords/']
pubrunner.command_line.main()
<commit_msg>Test wasn't using --test flag properly<commit_after> | import sys
import pubrunner
import pubrunner.command_line
def test_countwords():
#pubrunner.pubrun('examples/CountWords/',True,True)
sys.argv = ['pubrunner', '--test','examples/CountWords/']
pubrunner.command_line.main()
| import sys
import pubrunner
import pubrunner.command_line
def test_countwords():
#pubrunner.pubrun('examples/CountWords/',True,True)
sys.argv = ['--test','examples/CountWords/']
pubrunner.command_line.main()
Test wasn't using --test flag properlyimport sys
import pubrunner
import pubrunner.command_line
def test_c... | <commit_before>import sys
import pubrunner
import pubrunner.command_line
def test_countwords():
#pubrunner.pubrun('examples/CountWords/',True,True)
sys.argv = ['--test','examples/CountWords/']
pubrunner.command_line.main()
<commit_msg>Test wasn't using --test flag properly<commit_after>import sys
import pubrunner
... |
711afeb0e01bc35b1f82588d814be4275f59f758 | spdx/tv_to_rdf.py | spdx/tv_to_rdf.py | #!/usr/bin/env python
# Copyright (C) 2017 BMW AG
# Author: Thomas Hafner
#
# 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/LICE... | #!/usr/bin/env python
# Copyright (C) 2017 BMW AG
# Author: Thomas Hafner
#
# 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... | Normalize license header. Update format. | Normalize license header. Update format.
Signed-off-by: Philippe Ombredanne <[email protected]> | Python | apache-2.0 | spdx/tools-python | #!/usr/bin/env python
# Copyright (C) 2017 BMW AG
# Author: Thomas Hafner
#
# 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/LICE... | #!/usr/bin/env python
# Copyright (C) 2017 BMW AG
# Author: Thomas Hafner
#
# 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... | <commit_before>#!/usr/bin/env python
# Copyright (C) 2017 BMW AG
# Author: Thomas Hafner
#
# 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.or... | #!/usr/bin/env python
# Copyright (C) 2017 BMW AG
# Author: Thomas Hafner
#
# 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... | #!/usr/bin/env python
# Copyright (C) 2017 BMW AG
# Author: Thomas Hafner
#
# 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/LICE... | <commit_before>#!/usr/bin/env python
# Copyright (C) 2017 BMW AG
# Author: Thomas Hafner
#
# 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.or... |
fea76a8c9c03fef5c70e2fdd93d97cd3e096de7d | tests/test_mysql.py | tests/test_mysql.py | import unittest
from tests.common import load_check
import time
class TestMySql(unittest.TestCase):
def setUp(self):
# This should run on pre-2.7 python so no skiptest
self.skip = False
try:
import pymysql
except ImportError:
self.skip = True
def testChe... | import unittest
from tests.common import load_check
import time
class TestMySql(unittest.TestCase):
def setUp(self):
# This should run on pre-2.7 python so no skiptest
self.skip = False
try:
import pymysql
except ImportError:
self.skip = True
def testChe... | Add test for Mysql sc | Add test for Mysql sc
| Python | bsd-3-clause | brettlangdon/dd-agent,truthbk/dd-agent,jraede/dd-agent,relateiq/dd-agent,cberry777/dd-agent,tebriel/dd-agent,urosgruber/dd-agent,jraede/dd-agent,ess/dd-agent,Shopify/dd-agent,joelvanvelden/dd-agent,jyogi/purvar-agent,eeroniemi/dd-agent,citrusleaf/dd-agent,indeedops/dd-agent,eeroniemi/dd-agent,Mashape/dd-agent,Aniruddha... | import unittest
from tests.common import load_check
import time
class TestMySql(unittest.TestCase):
def setUp(self):
# This should run on pre-2.7 python so no skiptest
self.skip = False
try:
import pymysql
except ImportError:
self.skip = True
def testChe... | import unittest
from tests.common import load_check
import time
class TestMySql(unittest.TestCase):
def setUp(self):
# This should run on pre-2.7 python so no skiptest
self.skip = False
try:
import pymysql
except ImportError:
self.skip = True
def testChe... | <commit_before>import unittest
from tests.common import load_check
import time
class TestMySql(unittest.TestCase):
def setUp(self):
# This should run on pre-2.7 python so no skiptest
self.skip = False
try:
import pymysql
except ImportError:
self.skip = True
... | import unittest
from tests.common import load_check
import time
class TestMySql(unittest.TestCase):
def setUp(self):
# This should run on pre-2.7 python so no skiptest
self.skip = False
try:
import pymysql
except ImportError:
self.skip = True
def testChe... | import unittest
from tests.common import load_check
import time
class TestMySql(unittest.TestCase):
def setUp(self):
# This should run on pre-2.7 python so no skiptest
self.skip = False
try:
import pymysql
except ImportError:
self.skip = True
def testChe... | <commit_before>import unittest
from tests.common import load_check
import time
class TestMySql(unittest.TestCase):
def setUp(self):
# This should run on pre-2.7 python so no skiptest
self.skip = False
try:
import pymysql
except ImportError:
self.skip = True
... |
42f49d19b3657c62208aacee0f2dd77081bb5aa2 | zerver/migrations/0189_userprofile_add_some_emojisets.py | zerver/migrations/0189_userprofile_add_some_emojisets.py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.14 on 2018-08-28 19:01
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('zerver', '0188_userprofile_enable_login_emails'),
]
operations = [
migrati... | # -*- coding: utf-8 -*-
# Generated by Django 1.11.14 on 2018-08-28 19:01
from __future__ import unicode_literals
from django.db import migrations, models
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps
def change_emojiset_choice(apps: St... | Set default emoji to google-blob for existing users too. | emoji: Set default emoji to google-blob for existing users too.
This fixes an inconsistent test failure with test_users.py (that
depended on the ordering between this migration and the creation of
test database users like hamlet).
| Python | apache-2.0 | brainwane/zulip,brainwane/zulip,shubhamdhama/zulip,zulip/zulip,shubhamdhama/zulip,rht/zulip,showell/zulip,eeshangarg/zulip,punchagan/zulip,hackerkid/zulip,synicalsyntax/zulip,tommyip/zulip,showell/zulip,rishig/zulip,shubhamdhama/zulip,jackrzhang/zulip,synicalsyntax/zulip,dhcrzf/zulip,kou/zulip,andersk/zulip,dhcrzf/zuli... | # -*- coding: utf-8 -*-
# Generated by Django 1.11.14 on 2018-08-28 19:01
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('zerver', '0188_userprofile_enable_login_emails'),
]
operations = [
migrati... | # -*- coding: utf-8 -*-
# Generated by Django 1.11.14 on 2018-08-28 19:01
from __future__ import unicode_literals
from django.db import migrations, models
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps
def change_emojiset_choice(apps: St... | <commit_before># -*- coding: utf-8 -*-
# Generated by Django 1.11.14 on 2018-08-28 19:01
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('zerver', '0188_userprofile_enable_login_emails'),
]
operations = [
... | # -*- coding: utf-8 -*-
# Generated by Django 1.11.14 on 2018-08-28 19:01
from __future__ import unicode_literals
from django.db import migrations, models
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps
def change_emojiset_choice(apps: St... | # -*- coding: utf-8 -*-
# Generated by Django 1.11.14 on 2018-08-28 19:01
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('zerver', '0188_userprofile_enable_login_emails'),
]
operations = [
migrati... | <commit_before># -*- coding: utf-8 -*-
# Generated by Django 1.11.14 on 2018-08-28 19:01
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('zerver', '0188_userprofile_enable_login_emails'),
]
operations = [
... |
c46398091fbe591bbe79744ed4371fddcc454912 | IPython/html/terminal/handlers.py | IPython/html/terminal/handlers.py | """Tornado handlers for the terminal emulator."""
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
from tornado import web
import terminado
from ..base.handlers import IPythonHandler
class TerminalHandler(IPythonHandler):
"""Render the terminal interface."""
... | """Tornado handlers for the terminal emulator."""
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
from tornado import web
import terminado
from ..base.handlers import IPythonHandler
class TerminalHandler(IPythonHandler):
"""Render the terminal interface."""
... | Use relative URL for redirect in NewTerminalHandler | Use relative URL for redirect in NewTerminalHandler
| Python | bsd-3-clause | ipython/ipython,ipython/ipython | """Tornado handlers for the terminal emulator."""
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
from tornado import web
import terminado
from ..base.handlers import IPythonHandler
class TerminalHandler(IPythonHandler):
"""Render the terminal interface."""
... | """Tornado handlers for the terminal emulator."""
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
from tornado import web
import terminado
from ..base.handlers import IPythonHandler
class TerminalHandler(IPythonHandler):
"""Render the terminal interface."""
... | <commit_before>"""Tornado handlers for the terminal emulator."""
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
from tornado import web
import terminado
from ..base.handlers import IPythonHandler
class TerminalHandler(IPythonHandler):
"""Render the terminal i... | """Tornado handlers for the terminal emulator."""
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
from tornado import web
import terminado
from ..base.handlers import IPythonHandler
class TerminalHandler(IPythonHandler):
"""Render the terminal interface."""
... | """Tornado handlers for the terminal emulator."""
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
from tornado import web
import terminado
from ..base.handlers import IPythonHandler
class TerminalHandler(IPythonHandler):
"""Render the terminal interface."""
... | <commit_before>"""Tornado handlers for the terminal emulator."""
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
from tornado import web
import terminado
from ..base.handlers import IPythonHandler
class TerminalHandler(IPythonHandler):
"""Render the terminal i... |
d04d56bdb79d6e6ac04af1642cb8c3ceff325d75 | dddp/test/__init__.py | dddp/test/__init__.py | # This file mainly exists to allow `python setup.py test` to work.
import os
import sys
import dddp
import django
from django.test.utils import get_runner
from django.conf import settings
def run_tests():
os.environ['DJANGO_SETTINGS_MODULE'] = 'dddp.test.test_project.settings'
dddp.greenify()
django.setu... | # This file mainly exists to allow `python setup.py test` to work.
import os
import sys
import dddp
def run_tests():
os.environ['DJANGO_SETTINGS_MODULE'] = 'dddp.test.test_project.settings'
dddp.greenify()
import django
from django.test.utils import get_runner
from django.conf import settings
... | Apply gevent monkey patching before importing django (which imports threading). | Apply gevent monkey patching before importing django (which imports threading).
| Python | mit | django-ddp/django-ddp,django-ddp/django-ddp,commoncode/django-ddp,commoncode/django-ddp,django-ddp/django-ddp,commoncode/django-ddp,django-ddp/django-ddp,commoncode/django-ddp | # This file mainly exists to allow `python setup.py test` to work.
import os
import sys
import dddp
import django
from django.test.utils import get_runner
from django.conf import settings
def run_tests():
os.environ['DJANGO_SETTINGS_MODULE'] = 'dddp.test.test_project.settings'
dddp.greenify()
django.setu... | # This file mainly exists to allow `python setup.py test` to work.
import os
import sys
import dddp
def run_tests():
os.environ['DJANGO_SETTINGS_MODULE'] = 'dddp.test.test_project.settings'
dddp.greenify()
import django
from django.test.utils import get_runner
from django.conf import settings
... | <commit_before># This file mainly exists to allow `python setup.py test` to work.
import os
import sys
import dddp
import django
from django.test.utils import get_runner
from django.conf import settings
def run_tests():
os.environ['DJANGO_SETTINGS_MODULE'] = 'dddp.test.test_project.settings'
dddp.greenify()
... | # This file mainly exists to allow `python setup.py test` to work.
import os
import sys
import dddp
def run_tests():
os.environ['DJANGO_SETTINGS_MODULE'] = 'dddp.test.test_project.settings'
dddp.greenify()
import django
from django.test.utils import get_runner
from django.conf import settings
... | # This file mainly exists to allow `python setup.py test` to work.
import os
import sys
import dddp
import django
from django.test.utils import get_runner
from django.conf import settings
def run_tests():
os.environ['DJANGO_SETTINGS_MODULE'] = 'dddp.test.test_project.settings'
dddp.greenify()
django.setu... | <commit_before># This file mainly exists to allow `python setup.py test` to work.
import os
import sys
import dddp
import django
from django.test.utils import get_runner
from django.conf import settings
def run_tests():
os.environ['DJANGO_SETTINGS_MODULE'] = 'dddp.test.test_project.settings'
dddp.greenify()
... |
b2bc500c6a715493c4187e5b1c62e02717d8e31c | glue/plugins/dendro_viewer/__init__.py | glue/plugins/dendro_viewer/__init__.py | def setup():
from .qt_widget import DendroWidget
from glue.config import qt_client
qt_client.add(DendroWidget)
| def setup():
from glue.config import qt_client
from .qt_widget import DendroWidget
from .data_factory import load_dendro
qt_client.add(DendroWidget)
| Add missing import of dendrogram data factory | Add missing import of dendrogram data factory
| Python | bsd-3-clause | stscieisenhamer/glue,saimn/glue,saimn/glue,stscieisenhamer/glue | def setup():
from .qt_widget import DendroWidget
from glue.config import qt_client
qt_client.add(DendroWidget)
Add missing import of dendrogram data factory | def setup():
from glue.config import qt_client
from .qt_widget import DendroWidget
from .data_factory import load_dendro
qt_client.add(DendroWidget)
| <commit_before>def setup():
from .qt_widget import DendroWidget
from glue.config import qt_client
qt_client.add(DendroWidget)
<commit_msg>Add missing import of dendrogram data factory<commit_after> | def setup():
from glue.config import qt_client
from .qt_widget import DendroWidget
from .data_factory import load_dendro
qt_client.add(DendroWidget)
| def setup():
from .qt_widget import DendroWidget
from glue.config import qt_client
qt_client.add(DendroWidget)
Add missing import of dendrogram data factorydef setup():
from glue.config import qt_client
from .qt_widget import DendroWidget
from .data_factory import load_dendro
qt_client.add(D... | <commit_before>def setup():
from .qt_widget import DendroWidget
from glue.config import qt_client
qt_client.add(DendroWidget)
<commit_msg>Add missing import of dendrogram data factory<commit_after>def setup():
from glue.config import qt_client
from .qt_widget import DendroWidget
from .data_facto... |
539c7a85a84fdb2fbe8ee3f5803778baf0c66841 | wmt/flask/__init__.py | wmt/flask/__init__.py | import os
from flask import Flask
from flask_login import LoginManager
from passlib.context import CryptContext
from .core import db
from .blueprints import register_blueprints
from .errors import ERROR_HANDLERS
class User(object):
def __init__(self, id):
self._id = id
def is_authenticated(self):
... | import os
from flask import Flask
from flask_login import LoginManager
from passlib.context import CryptContext
from .settings import WmtSettings
from .core import db
from .blueprints import register_blueprints
from .errors import ERROR_HANDLERS
class User(object):
def __init__(self, id):
self._id = id... | Use settings classes and set wmt_root_path. | Use settings classes and set wmt_root_path.
| Python | mit | mcflugen/wmt-rest,mcflugen/wmt-rest | import os
from flask import Flask
from flask_login import LoginManager
from passlib.context import CryptContext
from .core import db
from .blueprints import register_blueprints
from .errors import ERROR_HANDLERS
class User(object):
def __init__(self, id):
self._id = id
def is_authenticated(self):
... | import os
from flask import Flask
from flask_login import LoginManager
from passlib.context import CryptContext
from .settings import WmtSettings
from .core import db
from .blueprints import register_blueprints
from .errors import ERROR_HANDLERS
class User(object):
def __init__(self, id):
self._id = id... | <commit_before>import os
from flask import Flask
from flask_login import LoginManager
from passlib.context import CryptContext
from .core import db
from .blueprints import register_blueprints
from .errors import ERROR_HANDLERS
class User(object):
def __init__(self, id):
self._id = id
def is_authen... | import os
from flask import Flask
from flask_login import LoginManager
from passlib.context import CryptContext
from .settings import WmtSettings
from .core import db
from .blueprints import register_blueprints
from .errors import ERROR_HANDLERS
class User(object):
def __init__(self, id):
self._id = id... | import os
from flask import Flask
from flask_login import LoginManager
from passlib.context import CryptContext
from .core import db
from .blueprints import register_blueprints
from .errors import ERROR_HANDLERS
class User(object):
def __init__(self, id):
self._id = id
def is_authenticated(self):
... | <commit_before>import os
from flask import Flask
from flask_login import LoginManager
from passlib.context import CryptContext
from .core import db
from .blueprints import register_blueprints
from .errors import ERROR_HANDLERS
class User(object):
def __init__(self, id):
self._id = id
def is_authen... |
a479b445c18687827e7913e8b51abd5937848fe8 | anybox/buildbot/openerp/build_utils/analyze_oerp_tests.py | anybox/buildbot/openerp/build_utils/analyze_oerp_tests.py | """Analyse the tests log file given as argument.
Print a report and return status code 1 if failures are detected
"""
import sys
import re
FAILURE_REGEXPS = {
'Failure in Python block': re.compile(r'WARNING:tests[.].*AssertionError'),
'Errors during x/yml tests': re.compile(r'ERROR:tests[.]'),
'Errors or... | """Analyse the tests log file given as argument.
Print a report and return status code 1 if failures are detected
"""
import sys
import re
FAILURE_REGEXPS = {
'Failure in Python block': re.compile(r'WARNING:tests[.].*AssertionError'),
'Errors during x/yml tests': re.compile(r'ERROR:tests[.]'),
'Errors or... | Add regex to know if one field is use in a model where this field is not declared | Add regex to know if one field is use in a model where this field is not declared | Python | agpl-3.0 | anybox/anybox.buildbot.odoo | """Analyse the tests log file given as argument.
Print a report and return status code 1 if failures are detected
"""
import sys
import re
FAILURE_REGEXPS = {
'Failure in Python block': re.compile(r'WARNING:tests[.].*AssertionError'),
'Errors during x/yml tests': re.compile(r'ERROR:tests[.]'),
'Errors or... | """Analyse the tests log file given as argument.
Print a report and return status code 1 if failures are detected
"""
import sys
import re
FAILURE_REGEXPS = {
'Failure in Python block': re.compile(r'WARNING:tests[.].*AssertionError'),
'Errors during x/yml tests': re.compile(r'ERROR:tests[.]'),
'Errors or... | <commit_before>"""Analyse the tests log file given as argument.
Print a report and return status code 1 if failures are detected
"""
import sys
import re
FAILURE_REGEXPS = {
'Failure in Python block': re.compile(r'WARNING:tests[.].*AssertionError'),
'Errors during x/yml tests': re.compile(r'ERROR:tests[.]'),... | """Analyse the tests log file given as argument.
Print a report and return status code 1 if failures are detected
"""
import sys
import re
FAILURE_REGEXPS = {
'Failure in Python block': re.compile(r'WARNING:tests[.].*AssertionError'),
'Errors during x/yml tests': re.compile(r'ERROR:tests[.]'),
'Errors or... | """Analyse the tests log file given as argument.
Print a report and return status code 1 if failures are detected
"""
import sys
import re
FAILURE_REGEXPS = {
'Failure in Python block': re.compile(r'WARNING:tests[.].*AssertionError'),
'Errors during x/yml tests': re.compile(r'ERROR:tests[.]'),
'Errors or... | <commit_before>"""Analyse the tests log file given as argument.
Print a report and return status code 1 if failures are detected
"""
import sys
import re
FAILURE_REGEXPS = {
'Failure in Python block': re.compile(r'WARNING:tests[.].*AssertionError'),
'Errors during x/yml tests': re.compile(r'ERROR:tests[.]'),... |
24f0c0d311886571cc0c5f8badca026a6c534a52 | dask/array/__init__.py | dask/array/__init__.py | from __future__ import absolute_import, division, print_function
from ..utils import ignoring
from .core import (Array, stack, concatenate, tensordot, transpose, from_array,
choose, where, coarsen, broadcast_to, constant, fromfunction, compute,
unique, store)
from .core import (arccos, arcsin, arctan, ... | from __future__ import absolute_import, division, print_function
from ..utils import ignoring
from .core import (Array, stack, concatenate, tensordot, transpose, from_array,
choose, where, coarsen, broadcast_to, constant, fromfunction, compute,
unique, store)
from .core import (arccos, arcsin, arctan, ... | Move dask.array.creation.* into dask.array.* namespace | Move dask.array.creation.* into dask.array.* namespace
| Python | bsd-3-clause | mraspaud/dask,marianotepper/dask,minrk/dask,freeman-lab/dask,pombredanne/dask,ContinuumIO/dask,hainm/dask,ssanderson/dask,clarkfitzg/dask,jakirkham/dask,jakirkham/dask,PhE/dask,cowlicks/dask,ContinuumIO/dask,mikegraham/dask,cpcloud/dask,pombredanne/dask,hainm/dask,marianotepper/dask,simudream/dask,jcrist/dask,wiso/dask... | from __future__ import absolute_import, division, print_function
from ..utils import ignoring
from .core import (Array, stack, concatenate, tensordot, transpose, from_array,
choose, where, coarsen, broadcast_to, constant, fromfunction, compute,
unique, store)
from .core import (arccos, arcsin, arctan, ... | from __future__ import absolute_import, division, print_function
from ..utils import ignoring
from .core import (Array, stack, concatenate, tensordot, transpose, from_array,
choose, where, coarsen, broadcast_to, constant, fromfunction, compute,
unique, store)
from .core import (arccos, arcsin, arctan, ... | <commit_before>from __future__ import absolute_import, division, print_function
from ..utils import ignoring
from .core import (Array, stack, concatenate, tensordot, transpose, from_array,
choose, where, coarsen, broadcast_to, constant, fromfunction, compute,
unique, store)
from .core import (arccos, a... | from __future__ import absolute_import, division, print_function
from ..utils import ignoring
from .core import (Array, stack, concatenate, tensordot, transpose, from_array,
choose, where, coarsen, broadcast_to, constant, fromfunction, compute,
unique, store)
from .core import (arccos, arcsin, arctan, ... | from __future__ import absolute_import, division, print_function
from ..utils import ignoring
from .core import (Array, stack, concatenate, tensordot, transpose, from_array,
choose, where, coarsen, broadcast_to, constant, fromfunction, compute,
unique, store)
from .core import (arccos, arcsin, arctan, ... | <commit_before>from __future__ import absolute_import, division, print_function
from ..utils import ignoring
from .core import (Array, stack, concatenate, tensordot, transpose, from_array,
choose, where, coarsen, broadcast_to, constant, fromfunction, compute,
unique, store)
from .core import (arccos, a... |
36550f71f4161b0b5c7af872b78dd1e7d96b788a | scripts/patches/dynamodb.py | scripts/patches/dynamodb.py | patches = [
# duplicate GlobalSecondaryIndex
{
"op": "move",
"from": "/PropertyTypes/AWS::DynamoDB::GlobalTable.GlobalSecondaryIndex",
"path": "/PropertyTypes/AWS::DynamoDB::GlobalTable.GlobalTableGlobalSecondaryIndex",
},
{
"op": "replace",
"path": "/ResourceType... | patches = [
# duplicate GlobalSecondaryIndex
{
"op": "move",
"from": "/PropertyTypes/AWS::DynamoDB::GlobalTable.GlobalSecondaryIndex",
"path": "/PropertyTypes/AWS::DynamoDB::GlobalTable.GlobalTableGlobalSecondaryIndex",
},
{
"op": "replace",
"path": "/ResourceType... | Fix issue in spec 82.0.0 with DynamoDB KeySchema Type | Fix issue in spec 82.0.0 with DynamoDB KeySchema Type
| Python | bsd-2-clause | cloudtools/troposphere,cloudtools/troposphere | patches = [
# duplicate GlobalSecondaryIndex
{
"op": "move",
"from": "/PropertyTypes/AWS::DynamoDB::GlobalTable.GlobalSecondaryIndex",
"path": "/PropertyTypes/AWS::DynamoDB::GlobalTable.GlobalTableGlobalSecondaryIndex",
},
{
"op": "replace",
"path": "/ResourceType... | patches = [
# duplicate GlobalSecondaryIndex
{
"op": "move",
"from": "/PropertyTypes/AWS::DynamoDB::GlobalTable.GlobalSecondaryIndex",
"path": "/PropertyTypes/AWS::DynamoDB::GlobalTable.GlobalTableGlobalSecondaryIndex",
},
{
"op": "replace",
"path": "/ResourceType... | <commit_before>patches = [
# duplicate GlobalSecondaryIndex
{
"op": "move",
"from": "/PropertyTypes/AWS::DynamoDB::GlobalTable.GlobalSecondaryIndex",
"path": "/PropertyTypes/AWS::DynamoDB::GlobalTable.GlobalTableGlobalSecondaryIndex",
},
{
"op": "replace",
"path":... | patches = [
# duplicate GlobalSecondaryIndex
{
"op": "move",
"from": "/PropertyTypes/AWS::DynamoDB::GlobalTable.GlobalSecondaryIndex",
"path": "/PropertyTypes/AWS::DynamoDB::GlobalTable.GlobalTableGlobalSecondaryIndex",
},
{
"op": "replace",
"path": "/ResourceType... | patches = [
# duplicate GlobalSecondaryIndex
{
"op": "move",
"from": "/PropertyTypes/AWS::DynamoDB::GlobalTable.GlobalSecondaryIndex",
"path": "/PropertyTypes/AWS::DynamoDB::GlobalTable.GlobalTableGlobalSecondaryIndex",
},
{
"op": "replace",
"path": "/ResourceType... | <commit_before>patches = [
# duplicate GlobalSecondaryIndex
{
"op": "move",
"from": "/PropertyTypes/AWS::DynamoDB::GlobalTable.GlobalSecondaryIndex",
"path": "/PropertyTypes/AWS::DynamoDB::GlobalTable.GlobalTableGlobalSecondaryIndex",
},
{
"op": "replace",
"path":... |
8785f602900ab3bf3e297ee8f90ecf47c059cdde | sphinxcontrib/openstreetmap.py | sphinxcontrib/openstreetmap.py | # -*- coding: utf-8 -*-
"""
sphinxcontrib.openstreetmap
===========================
Embed OpenStreetMap on your documentation.
:copyright: Copyright 2015 HAYASHI Kentaro <[email protected]>
:license: BSD, see LICENSE for details.
"""
from docutils import nodes
from docutils.parsers.rst import directives
from sphi... | # -*- coding: utf-8 -*-
"""
sphinxcontrib.openstreetmap
===========================
Embed OpenStreetMap on your documentation.
:copyright: Copyright 2015 HAYASHI Kentaro <[email protected]>
:license: BSD, see LICENSE for details.
"""
from docutils import nodes
from docutils.parsers.rst import directives
from sphi... | Add marker as required parameter | Add marker as required parameter
| Python | bsd-2-clause | kenhys/sphinxcontrib-openstreetmap,kenhys/sphinxcontrib-openstreetmap | # -*- coding: utf-8 -*-
"""
sphinxcontrib.openstreetmap
===========================
Embed OpenStreetMap on your documentation.
:copyright: Copyright 2015 HAYASHI Kentaro <[email protected]>
:license: BSD, see LICENSE for details.
"""
from docutils import nodes
from docutils.parsers.rst import directives
from sphi... | # -*- coding: utf-8 -*-
"""
sphinxcontrib.openstreetmap
===========================
Embed OpenStreetMap on your documentation.
:copyright: Copyright 2015 HAYASHI Kentaro <[email protected]>
:license: BSD, see LICENSE for details.
"""
from docutils import nodes
from docutils.parsers.rst import directives
from sphi... | <commit_before># -*- coding: utf-8 -*-
"""
sphinxcontrib.openstreetmap
===========================
Embed OpenStreetMap on your documentation.
:copyright: Copyright 2015 HAYASHI Kentaro <[email protected]>
:license: BSD, see LICENSE for details.
"""
from docutils import nodes
from docutils.parsers.rst import direc... | # -*- coding: utf-8 -*-
"""
sphinxcontrib.openstreetmap
===========================
Embed OpenStreetMap on your documentation.
:copyright: Copyright 2015 HAYASHI Kentaro <[email protected]>
:license: BSD, see LICENSE for details.
"""
from docutils import nodes
from docutils.parsers.rst import directives
from sphi... | # -*- coding: utf-8 -*-
"""
sphinxcontrib.openstreetmap
===========================
Embed OpenStreetMap on your documentation.
:copyright: Copyright 2015 HAYASHI Kentaro <[email protected]>
:license: BSD, see LICENSE for details.
"""
from docutils import nodes
from docutils.parsers.rst import directives
from sphi... | <commit_before># -*- coding: utf-8 -*-
"""
sphinxcontrib.openstreetmap
===========================
Embed OpenStreetMap on your documentation.
:copyright: Copyright 2015 HAYASHI Kentaro <[email protected]>
:license: BSD, see LICENSE for details.
"""
from docutils import nodes
from docutils.parsers.rst import direc... |
2ba3dd9bafddd4dfd1ab712c59c6efadd58b1f46 | skimage/feature/__init__.py | skimage/feature/__init__.py | from ._daisy import daisy
from ._hog import hog
from .texture import greycomatrix, greycoprops, local_binary_pattern
from .peak import peak_local_max
from .corner import (corner_kitchen_rosenfeld, corner_harris, corner_shi_tomasi,
corner_foerstner, corner_subpix, corner_peaks)
from .corner_cy impor... | from ._daisy import daisy
from ._hog import hog
from .texture import greycomatrix, greycoprops, local_binary_pattern
from .peak import peak_local_max
from .corner import (corner_kitchen_rosenfeld, corner_harris, corner_shi_tomasi,
corner_foerstner, corner_subpix, corner_peaks)
from .corner_cy impor... | Add __all__ to feature package | Add __all__ to feature package
| Python | bsd-3-clause | WarrenWeckesser/scikits-image,michaelpacer/scikit-image,chintak/scikit-image,Midafi/scikit-image,bsipocz/scikit-image,almarklein/scikit-image,paalge/scikit-image,vighneshbirodkar/scikit-image,GaZ3ll3/scikit-image,ofgulban/scikit-image,GaZ3ll3/scikit-image,jwiggins/scikit-image,ClinicalGraphics/scikit-image,SamHames/sci... | from ._daisy import daisy
from ._hog import hog
from .texture import greycomatrix, greycoprops, local_binary_pattern
from .peak import peak_local_max
from .corner import (corner_kitchen_rosenfeld, corner_harris, corner_shi_tomasi,
corner_foerstner, corner_subpix, corner_peaks)
from .corner_cy impor... | from ._daisy import daisy
from ._hog import hog
from .texture import greycomatrix, greycoprops, local_binary_pattern
from .peak import peak_local_max
from .corner import (corner_kitchen_rosenfeld, corner_harris, corner_shi_tomasi,
corner_foerstner, corner_subpix, corner_peaks)
from .corner_cy impor... | <commit_before>from ._daisy import daisy
from ._hog import hog
from .texture import greycomatrix, greycoprops, local_binary_pattern
from .peak import peak_local_max
from .corner import (corner_kitchen_rosenfeld, corner_harris, corner_shi_tomasi,
corner_foerstner, corner_subpix, corner_peaks)
from .... | from ._daisy import daisy
from ._hog import hog
from .texture import greycomatrix, greycoprops, local_binary_pattern
from .peak import peak_local_max
from .corner import (corner_kitchen_rosenfeld, corner_harris, corner_shi_tomasi,
corner_foerstner, corner_subpix, corner_peaks)
from .corner_cy impor... | from ._daisy import daisy
from ._hog import hog
from .texture import greycomatrix, greycoprops, local_binary_pattern
from .peak import peak_local_max
from .corner import (corner_kitchen_rosenfeld, corner_harris, corner_shi_tomasi,
corner_foerstner, corner_subpix, corner_peaks)
from .corner_cy impor... | <commit_before>from ._daisy import daisy
from ._hog import hog
from .texture import greycomatrix, greycoprops, local_binary_pattern
from .peak import peak_local_max
from .corner import (corner_kitchen_rosenfeld, corner_harris, corner_shi_tomasi,
corner_foerstner, corner_subpix, corner_peaks)
from .... |
5c89aa079d94fe70bb5627eb67404bc65b80212a | sympy/solvers/decompogen.py | sympy/solvers/decompogen.py | from sympy.core import Function, Pow, sympify
from sympy.polys import Poly
def decompogen(f, symbol):
"""
Computes General functional decomposition of ``f``.
Given an expression ``f``, returns a list ``[f_1, f_2, ..., f_n]``,
where::
f = f_1 o f_2 o ... f_n = f_1(f_2(... f_n))
Note:... | from sympy.core import Function, Pow, sympify
from sympy.polys import Poly
def decompogen(f, symbol):
"""
Computes General functional decomposition of ``f``.
Given an expression ``f``, returns a list ``[f_1, f_2, ..., f_n]``,
where::
f = f_1 o f_2 o ... f_n = f_1(f_2(... f_n))
Note:... | Return `f` if no decomposition | Return `f` if no decomposition
Signed-off-by: AMiT Kumar <[email protected]>
| Python | bsd-3-clause | drufat/sympy,ChristinaZografou/sympy,chaffra/sympy,Vishluck/sympy,skidzo/sympy,ga7g08/sympy,wanglongqi/sympy,mafiya69/sympy,ga7g08/sympy,Davidjohnwilson/sympy,yashsharan/sympy,mcdaniel67/sympy,hargup/sympy,postvakje/sympy,Davidjohnwilson/sympy,VaibhavAgarwalVA/sympy,kaushik94/sympy,ChristinaZografou/sympy,MechCoder/sym... | from sympy.core import Function, Pow, sympify
from sympy.polys import Poly
def decompogen(f, symbol):
"""
Computes General functional decomposition of ``f``.
Given an expression ``f``, returns a list ``[f_1, f_2, ..., f_n]``,
where::
f = f_1 o f_2 o ... f_n = f_1(f_2(... f_n))
Note:... | from sympy.core import Function, Pow, sympify
from sympy.polys import Poly
def decompogen(f, symbol):
"""
Computes General functional decomposition of ``f``.
Given an expression ``f``, returns a list ``[f_1, f_2, ..., f_n]``,
where::
f = f_1 o f_2 o ... f_n = f_1(f_2(... f_n))
Note:... | <commit_before>from sympy.core import Function, Pow, sympify
from sympy.polys import Poly
def decompogen(f, symbol):
"""
Computes General functional decomposition of ``f``.
Given an expression ``f``, returns a list ``[f_1, f_2, ..., f_n]``,
where::
f = f_1 o f_2 o ... f_n = f_1(f_2(... f... | from sympy.core import Function, Pow, sympify
from sympy.polys import Poly
def decompogen(f, symbol):
"""
Computes General functional decomposition of ``f``.
Given an expression ``f``, returns a list ``[f_1, f_2, ..., f_n]``,
where::
f = f_1 o f_2 o ... f_n = f_1(f_2(... f_n))
Note:... | from sympy.core import Function, Pow, sympify
from sympy.polys import Poly
def decompogen(f, symbol):
"""
Computes General functional decomposition of ``f``.
Given an expression ``f``, returns a list ``[f_1, f_2, ..., f_n]``,
where::
f = f_1 o f_2 o ... f_n = f_1(f_2(... f_n))
Note:... | <commit_before>from sympy.core import Function, Pow, sympify
from sympy.polys import Poly
def decompogen(f, symbol):
"""
Computes General functional decomposition of ``f``.
Given an expression ``f``, returns a list ``[f_1, f_2, ..., f_n]``,
where::
f = f_1 o f_2 o ... f_n = f_1(f_2(... f... |
6d3b191bd35f64b097ffac2a514d2400f2e07983 | tests/__main__.py | tests/__main__.py | #!/usr/bin/env python3
import os
import sys
import unittest
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
load = unittest.defaultTestLoader.loadTestsFromModule
suites = []
dirname = os.path.dirname(__file__)
sys.path.append(dirname)
filenames = os.listdir(dirname)
for filename in filenames:
... | #!/usr/bin/env python3
import os
import sys
import unittest
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
load = unittest.defaultTestLoader.loadTestsFromModule
suites = []
dirname = os.path.dirname(__file__)
sys.path.append(dirname)
filenames = os.listdir(dirname)
for filename in filenames:
... | Fix return value of tests. | Fix return value of tests.
| Python | bsd-3-clause | ProgVal/Inceptoe,ProgVal/Inceptoe | #!/usr/bin/env python3
import os
import sys
import unittest
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
load = unittest.defaultTestLoader.loadTestsFromModule
suites = []
dirname = os.path.dirname(__file__)
sys.path.append(dirname)
filenames = os.listdir(dirname)
for filename in filenames:
... | #!/usr/bin/env python3
import os
import sys
import unittest
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
load = unittest.defaultTestLoader.loadTestsFromModule
suites = []
dirname = os.path.dirname(__file__)
sys.path.append(dirname)
filenames = os.listdir(dirname)
for filename in filenames:
... | <commit_before>#!/usr/bin/env python3
import os
import sys
import unittest
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
load = unittest.defaultTestLoader.loadTestsFromModule
suites = []
dirname = os.path.dirname(__file__)
sys.path.append(dirname)
filenames = os.listdir(dirname)
for filename in ... | #!/usr/bin/env python3
import os
import sys
import unittest
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
load = unittest.defaultTestLoader.loadTestsFromModule
suites = []
dirname = os.path.dirname(__file__)
sys.path.append(dirname)
filenames = os.listdir(dirname)
for filename in filenames:
... | #!/usr/bin/env python3
import os
import sys
import unittest
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
load = unittest.defaultTestLoader.loadTestsFromModule
suites = []
dirname = os.path.dirname(__file__)
sys.path.append(dirname)
filenames = os.listdir(dirname)
for filename in filenames:
... | <commit_before>#!/usr/bin/env python3
import os
import sys
import unittest
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
load = unittest.defaultTestLoader.loadTestsFromModule
suites = []
dirname = os.path.dirname(__file__)
sys.path.append(dirname)
filenames = os.listdir(dirname)
for filename in ... |
969c5129ec7c742985b7a3d09eb5ddd4b44b1743 | dothub/__main__.py | dothub/__main__.py | import logging
from . import config, cli
def main():
logging.basicConfig(levle=logging.INFO, format="%(message)s")
conf = config.load_config()
cli.dothub(obj={}, default_map=conf)
if __name__ == '__main__': # pragma: no cover
exit(main())
| import logging
from . import config, cli
def main():
logging.basicConfig(level=logging.INFO, format="%(message)s")
conf = config.load_config()
cli.dothub(obj={}, default_map=conf)
if __name__ == '__main__': # pragma: no cover
exit(main())
| Fix typo on logging configuration | Fix typo on logging configuration | Python | mit | Mariocj89/dothub | import logging
from . import config, cli
def main():
logging.basicConfig(levle=logging.INFO, format="%(message)s")
conf = config.load_config()
cli.dothub(obj={}, default_map=conf)
if __name__ == '__main__': # pragma: no cover
exit(main())
Fix typo on logging configuration | import logging
from . import config, cli
def main():
logging.basicConfig(level=logging.INFO, format="%(message)s")
conf = config.load_config()
cli.dothub(obj={}, default_map=conf)
if __name__ == '__main__': # pragma: no cover
exit(main())
| <commit_before>import logging
from . import config, cli
def main():
logging.basicConfig(levle=logging.INFO, format="%(message)s")
conf = config.load_config()
cli.dothub(obj={}, default_map=conf)
if __name__ == '__main__': # pragma: no cover
exit(main())
<commit_msg>Fix typo on logging configuration<... | import logging
from . import config, cli
def main():
logging.basicConfig(level=logging.INFO, format="%(message)s")
conf = config.load_config()
cli.dothub(obj={}, default_map=conf)
if __name__ == '__main__': # pragma: no cover
exit(main())
| import logging
from . import config, cli
def main():
logging.basicConfig(levle=logging.INFO, format="%(message)s")
conf = config.load_config()
cli.dothub(obj={}, default_map=conf)
if __name__ == '__main__': # pragma: no cover
exit(main())
Fix typo on logging configurationimport logging
from . import... | <commit_before>import logging
from . import config, cli
def main():
logging.basicConfig(levle=logging.INFO, format="%(message)s")
conf = config.load_config()
cli.dothub(obj={}, default_map=conf)
if __name__ == '__main__': # pragma: no cover
exit(main())
<commit_msg>Fix typo on logging configuration<... |
9fdd24ed20c553638cde7c67f994ea72da0ef149 | tests/conftest.py | tests/conftest.py | import shutil
from pathlib import Path
import pytest
from pandas_profiling.utils.cache import cache_file
@pytest.fixture(scope="function")
def get_data_file(tmpdir):
def getter(file_name, url):
source_file = cache_file(file_name, url)
# Move to temporary directory
test_path = Path(str(tm... | import shutil
from pathlib import Path
import pytest
from pandas_profiling.utils.cache import cache_file
@pytest.fixture(scope="function")
def get_data_file(tmpdir):
def getter(file_name, url):
source_file = cache_file(file_name, url)
# Move to temporary directory
test_path = Path(str(tm... | Convert Path to str for Python 3.5 | Convert Path to str for Python 3.5
| Python | mit | JosPolfliet/pandas-profiling,JosPolfliet/pandas-profiling | import shutil
from pathlib import Path
import pytest
from pandas_profiling.utils.cache import cache_file
@pytest.fixture(scope="function")
def get_data_file(tmpdir):
def getter(file_name, url):
source_file = cache_file(file_name, url)
# Move to temporary directory
test_path = Path(str(tm... | import shutil
from pathlib import Path
import pytest
from pandas_profiling.utils.cache import cache_file
@pytest.fixture(scope="function")
def get_data_file(tmpdir):
def getter(file_name, url):
source_file = cache_file(file_name, url)
# Move to temporary directory
test_path = Path(str(tm... | <commit_before>import shutil
from pathlib import Path
import pytest
from pandas_profiling.utils.cache import cache_file
@pytest.fixture(scope="function")
def get_data_file(tmpdir):
def getter(file_name, url):
source_file = cache_file(file_name, url)
# Move to temporary directory
test_pat... | import shutil
from pathlib import Path
import pytest
from pandas_profiling.utils.cache import cache_file
@pytest.fixture(scope="function")
def get_data_file(tmpdir):
def getter(file_name, url):
source_file = cache_file(file_name, url)
# Move to temporary directory
test_path = Path(str(tm... | import shutil
from pathlib import Path
import pytest
from pandas_profiling.utils.cache import cache_file
@pytest.fixture(scope="function")
def get_data_file(tmpdir):
def getter(file_name, url):
source_file = cache_file(file_name, url)
# Move to temporary directory
test_path = Path(str(tm... | <commit_before>import shutil
from pathlib import Path
import pytest
from pandas_profiling.utils.cache import cache_file
@pytest.fixture(scope="function")
def get_data_file(tmpdir):
def getter(file_name, url):
source_file = cache_file(file_name, url)
# Move to temporary directory
test_pat... |
09fc5b3e37cc0bcaf764c540f32d1a3eab1b8cf2 | tests/som_test.py | tests/som_test.py | import unittest
from parameterized import parameterized
from som.vm.universe import Universe
class SomTest(unittest.TestCase):
@parameterized.expand([
("ClassStructure",),
("Array" ,),
("Block" ,),
("ClassLoading" ,),
("Closure" ,),
("Coercio... | import unittest
from parameterized import parameterized
from som.vm.universe import Universe
class SomTest(unittest.TestCase):
@parameterized.expand([
("ClassStructure",),
("Array" ,),
("Block" ,),
("ClassLoading" ,),
("Closure" ,),
("Coercio... | Use in, because has_key seems to be deprecated | Use in, because has_key seems to be deprecated
Signed-off-by: Stefan Marr <[email protected]>
| Python | mit | SOM-st/RTruffleSOM,SOM-st/PySOM,SOM-st/RPySOM,SOM-st/RPySOM,SOM-st/RTruffleSOM,smarr/RTruffleSOM,smarr/PySOM,smarr/RTruffleSOM,smarr/PySOM,SOM-st/PySOM | import unittest
from parameterized import parameterized
from som.vm.universe import Universe
class SomTest(unittest.TestCase):
@parameterized.expand([
("ClassStructure",),
("Array" ,),
("Block" ,),
("ClassLoading" ,),
("Closure" ,),
("Coercio... | import unittest
from parameterized import parameterized
from som.vm.universe import Universe
class SomTest(unittest.TestCase):
@parameterized.expand([
("ClassStructure",),
("Array" ,),
("Block" ,),
("ClassLoading" ,),
("Closure" ,),
("Coercio... | <commit_before>import unittest
from parameterized import parameterized
from som.vm.universe import Universe
class SomTest(unittest.TestCase):
@parameterized.expand([
("ClassStructure",),
("Array" ,),
("Block" ,),
("ClassLoading" ,),
("Closure" ,),
... | import unittest
from parameterized import parameterized
from som.vm.universe import Universe
class SomTest(unittest.TestCase):
@parameterized.expand([
("ClassStructure",),
("Array" ,),
("Block" ,),
("ClassLoading" ,),
("Closure" ,),
("Coercio... | import unittest
from parameterized import parameterized
from som.vm.universe import Universe
class SomTest(unittest.TestCase):
@parameterized.expand([
("ClassStructure",),
("Array" ,),
("Block" ,),
("ClassLoading" ,),
("Closure" ,),
("Coercio... | <commit_before>import unittest
from parameterized import parameterized
from som.vm.universe import Universe
class SomTest(unittest.TestCase):
@parameterized.expand([
("ClassStructure",),
("Array" ,),
("Block" ,),
("ClassLoading" ,),
("Closure" ,),
... |
e9e8428563545d00eda25a540a3621943bf34143 | tests/test_now.py | tests/test_now.py | # -*- coding: utf-8 -*-
import pytest
from freezegun import freeze_time
from jinja2 import Environment, exceptions
@pytest.fixture(scope='session')
def environment():
return Environment(extensions=['jinja2_time.TimeExtension'])
@pytest.yield_fixture(autouse=True)
def freeze():
freezer = freeze_time("2015-... | # -*- coding: utf-8 -*-
import pytest
from freezegun import freeze_time
from jinja2 import Environment, exceptions
@pytest.fixture
def environment():
return Environment(extensions=['jinja2_time.TimeExtension'])
@pytest.yield_fixture(autouse=True)
def freeze():
freezer = freeze_time("2015-12-09 23:33:01")
... | Implement a test for environment.datetime_format | Implement a test for environment.datetime_format
| Python | mit | hackebrot/jinja2-time | # -*- coding: utf-8 -*-
import pytest
from freezegun import freeze_time
from jinja2 import Environment, exceptions
@pytest.fixture(scope='session')
def environment():
return Environment(extensions=['jinja2_time.TimeExtension'])
@pytest.yield_fixture(autouse=True)
def freeze():
freezer = freeze_time("2015-... | # -*- coding: utf-8 -*-
import pytest
from freezegun import freeze_time
from jinja2 import Environment, exceptions
@pytest.fixture
def environment():
return Environment(extensions=['jinja2_time.TimeExtension'])
@pytest.yield_fixture(autouse=True)
def freeze():
freezer = freeze_time("2015-12-09 23:33:01")
... | <commit_before># -*- coding: utf-8 -*-
import pytest
from freezegun import freeze_time
from jinja2 import Environment, exceptions
@pytest.fixture(scope='session')
def environment():
return Environment(extensions=['jinja2_time.TimeExtension'])
@pytest.yield_fixture(autouse=True)
def freeze():
freezer = fre... | # -*- coding: utf-8 -*-
import pytest
from freezegun import freeze_time
from jinja2 import Environment, exceptions
@pytest.fixture
def environment():
return Environment(extensions=['jinja2_time.TimeExtension'])
@pytest.yield_fixture(autouse=True)
def freeze():
freezer = freeze_time("2015-12-09 23:33:01")
... | # -*- coding: utf-8 -*-
import pytest
from freezegun import freeze_time
from jinja2 import Environment, exceptions
@pytest.fixture(scope='session')
def environment():
return Environment(extensions=['jinja2_time.TimeExtension'])
@pytest.yield_fixture(autouse=True)
def freeze():
freezer = freeze_time("2015-... | <commit_before># -*- coding: utf-8 -*-
import pytest
from freezegun import freeze_time
from jinja2 import Environment, exceptions
@pytest.fixture(scope='session')
def environment():
return Environment(extensions=['jinja2_time.TimeExtension'])
@pytest.yield_fixture(autouse=True)
def freeze():
freezer = fre... |
0147e9a6c9d61028781b55f4f8e068e576b653a0 | manage.py | manage.py | import os
from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
from api import create_app, db
application = create_app(os.getenv('FLASK_CONFIG') or 'default')
migrate = Migrate(application, db)
manager = Manager(application)
manager.add_command('db', MigrateCommand)
@manager.command... | import os
from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
from api import create_app, db
application = create_app(os.getenv('FLASK_CONFIG') or 'default')
migrate = Migrate(application, db)
manager = Manager(application)
manager.add_command('db', MigrateCommand)
@manager.command... | Add create and drop db tasks | Add create and drop db tasks
| Python | mit | EdwinKato/bucket-list,EdwinKato/bucket-list,EdwinKato/bucket-list,EdwinKato/bucket-list,EdwinKato/bucket-list | import os
from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
from api import create_app, db
application = create_app(os.getenv('FLASK_CONFIG') or 'default')
migrate = Migrate(application, db)
manager = Manager(application)
manager.add_command('db', MigrateCommand)
@manager.command... | import os
from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
from api import create_app, db
application = create_app(os.getenv('FLASK_CONFIG') or 'default')
migrate = Migrate(application, db)
manager = Manager(application)
manager.add_command('db', MigrateCommand)
@manager.command... | <commit_before>import os
from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
from api import create_app, db
application = create_app(os.getenv('FLASK_CONFIG') or 'default')
migrate = Migrate(application, db)
manager = Manager(application)
manager.add_command('db', MigrateCommand)
@... | import os
from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
from api import create_app, db
application = create_app(os.getenv('FLASK_CONFIG') or 'default')
migrate = Migrate(application, db)
manager = Manager(application)
manager.add_command('db', MigrateCommand)
@manager.command... | import os
from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
from api import create_app, db
application = create_app(os.getenv('FLASK_CONFIG') or 'default')
migrate = Migrate(application, db)
manager = Manager(application)
manager.add_command('db', MigrateCommand)
@manager.command... | <commit_before>import os
from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
from api import create_app, db
application = create_app(os.getenv('FLASK_CONFIG') or 'default')
migrate = Migrate(application, db)
manager = Manager(application)
manager.add_command('db', MigrateCommand)
@... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.