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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ed5f7ac5b6583c1e88e51f87bb73d6d50717b2f6 | test/test_parameters.py | test/test_parameters.py | from __future__ import absolute_import, print_function
from ..pyautoupdate.launcher import Launcher
import pytest
def test_check_urlslash():
launch = Launcher('not here',
r'http://rlee287.github.io/pyautoupdate/testing/')
launch2 = Launcher('why do I need to do this',
... | from __future__ import absolute_import, print_function
from ..pyautoupdate.launcher import Launcher
import os
import pytest
def test_check_urlslash():
launch = Launcher('not here',
r'http://rlee287.github.io/pyautoupdate/testing/')
launch2 = Launcher('why do I need to do this',
... | Write test for error checks | Write test for error checks
| Python | lgpl-2.1 | rlee287/pyautoupdate,rlee287/pyautoupdate | from __future__ import absolute_import, print_function
from ..pyautoupdate.launcher import Launcher
import pytest
def test_check_urlslash():
launch = Launcher('not here',
r'http://rlee287.github.io/pyautoupdate/testing/')
launch2 = Launcher('why do I need to do this',
... | from __future__ import absolute_import, print_function
from ..pyautoupdate.launcher import Launcher
import os
import pytest
def test_check_urlslash():
launch = Launcher('not here',
r'http://rlee287.github.io/pyautoupdate/testing/')
launch2 = Launcher('why do I need to do this',
... | <commit_before>from __future__ import absolute_import, print_function
from ..pyautoupdate.launcher import Launcher
import pytest
def test_check_urlslash():
launch = Launcher('not here',
r'http://rlee287.github.io/pyautoupdate/testing/')
launch2 = Launcher('why do I need to do this',
... | from __future__ import absolute_import, print_function
from ..pyautoupdate.launcher import Launcher
import os
import pytest
def test_check_urlslash():
launch = Launcher('not here',
r'http://rlee287.github.io/pyautoupdate/testing/')
launch2 = Launcher('why do I need to do this',
... | from __future__ import absolute_import, print_function
from ..pyautoupdate.launcher import Launcher
import pytest
def test_check_urlslash():
launch = Launcher('not here',
r'http://rlee287.github.io/pyautoupdate/testing/')
launch2 = Launcher('why do I need to do this',
... | <commit_before>from __future__ import absolute_import, print_function
from ..pyautoupdate.launcher import Launcher
import pytest
def test_check_urlslash():
launch = Launcher('not here',
r'http://rlee287.github.io/pyautoupdate/testing/')
launch2 = Launcher('why do I need to do this',
... |
681e80bc1492c9df4e27fe1846ff311cb73506ee | apps/pig/src/pig/settings.py | apps/pig/src/pig/settings.py | # Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file ex... | # Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file ex... | Rename app to Pig Editor | [pig] Rename app to Pig Editor
| Python | apache-2.0 | epssy/hue,cloudera/hue,vmax-feihu/hue,erickt/hue,fangxingli/hue,Peddle/hue,rahul67/hue,cloudera/hue,jayceyxc/hue,Peddle/hue,rahul67/hue,todaychi/hue,xiangel/hue,yoer/hue,cloudera/hue,vitan/hue,pwong-mapr/private-hue,vitan/hue,pratikmallya/hue,ahmed-mahran/hue,Peddle/hue,vitan/hue,jounex/hue,sanjeevtripurari/hue,yongshe... | # Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file ex... | # Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file ex... | <commit_before># Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | # Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file ex... | # Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file ex... | <commit_before># Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... |
0251d3d3956a75fbeb66a0d4466cbcefa2e49f93 | examples/web_app.py | examples/web_app.py | """
Example for running Application using the `aiohttp.web` CLI.
Run this app using::
$ python -m aiohttp.web web_app.init
"""
from aiohttp.web import Application, Response
def hello_world(req):
return Response(text="Hello World")
def init(args):
app = Application()
app.router.add_route('GET', '/... | """
Example of serving an Application using the `aiohttp.web` CLI.
Serve this app using::
$ python -m aiohttp.web -H localhost -P 8080 --repeat 10 web_app.init \
> "Hello World"
Here ``--repeat`` & ``"Hello World"`` are application specific command-line
arguments. `aiohttp.web` only parses & consumes the com... | Update CLI example to use nested argparse | Update CLI example to use nested argparse
| Python | apache-2.0 | panda73111/aiohttp,elastic-coders/aiohttp,hellysmile/aiohttp,moden-py/aiohttp,mind1master/aiohttp,hellysmile/aiohttp,jashandeep-sohi/aiohttp,moden-py/aiohttp,AraHaanOrg/aiohttp,jettify/aiohttp,esaezgil/aiohttp,KeepSafe/aiohttp,jashandeep-sohi/aiohttp,decentfox/aiohttp,z2v/aiohttp,mind1master/aiohttp,KeepSafe/aiohttp,je... | """
Example for running Application using the `aiohttp.web` CLI.
Run this app using::
$ python -m aiohttp.web web_app.init
"""
from aiohttp.web import Application, Response
def hello_world(req):
return Response(text="Hello World")
def init(args):
app = Application()
app.router.add_route('GET', '/... | """
Example of serving an Application using the `aiohttp.web` CLI.
Serve this app using::
$ python -m aiohttp.web -H localhost -P 8080 --repeat 10 web_app.init \
> "Hello World"
Here ``--repeat`` & ``"Hello World"`` are application specific command-line
arguments. `aiohttp.web` only parses & consumes the com... | <commit_before>"""
Example for running Application using the `aiohttp.web` CLI.
Run this app using::
$ python -m aiohttp.web web_app.init
"""
from aiohttp.web import Application, Response
def hello_world(req):
return Response(text="Hello World")
def init(args):
app = Application()
app.router.add_... | """
Example of serving an Application using the `aiohttp.web` CLI.
Serve this app using::
$ python -m aiohttp.web -H localhost -P 8080 --repeat 10 web_app.init \
> "Hello World"
Here ``--repeat`` & ``"Hello World"`` are application specific command-line
arguments. `aiohttp.web` only parses & consumes the com... | """
Example for running Application using the `aiohttp.web` CLI.
Run this app using::
$ python -m aiohttp.web web_app.init
"""
from aiohttp.web import Application, Response
def hello_world(req):
return Response(text="Hello World")
def init(args):
app = Application()
app.router.add_route('GET', '/... | <commit_before>"""
Example for running Application using the `aiohttp.web` CLI.
Run this app using::
$ python -m aiohttp.web web_app.init
"""
from aiohttp.web import Application, Response
def hello_world(req):
return Response(text="Hello World")
def init(args):
app = Application()
app.router.add_... |
e1e34233b9a91666ac3abd29dadb7235e5ea7dd3 | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='fakeredis',
version='0.1',
description="Fake implementation of redis API for testing purposes.",
license='BSD',
url="https://github.com/jamesls/fakeredis",
author='James Saryerwinnie',
author_email='jlsnpi@gmail.com',
py_modules=[... | from setuptools import setup, find_packages
setup(
name='fakeredis',
version='0.1',
description="Fake implementation of redis API for testing purposes.",
long_description=open(os.path.join(os.path.dirname(__file__),
'README.rst')).read(),
license='BSD',
ur... | Add a long description based on README.rst | Add a long description based on README.rst
| Python | bsd-3-clause | fatelei/fakeredis,Tinche/fakeredis,pindia/fakeredis,ze-phyr-us/fakeredis,sam-untapt/fakeredis,OnBeep/fakeredis | from setuptools import setup, find_packages
setup(
name='fakeredis',
version='0.1',
description="Fake implementation of redis API for testing purposes.",
license='BSD',
url="https://github.com/jamesls/fakeredis",
author='James Saryerwinnie',
author_email='jlsnpi@gmail.com',
py_modules=[... | from setuptools import setup, find_packages
setup(
name='fakeredis',
version='0.1',
description="Fake implementation of redis API for testing purposes.",
long_description=open(os.path.join(os.path.dirname(__file__),
'README.rst')).read(),
license='BSD',
ur... | <commit_before>from setuptools import setup, find_packages
setup(
name='fakeredis',
version='0.1',
description="Fake implementation of redis API for testing purposes.",
license='BSD',
url="https://github.com/jamesls/fakeredis",
author='James Saryerwinnie',
author_email='jlsnpi@gmail.com',
... | from setuptools import setup, find_packages
setup(
name='fakeredis',
version='0.1',
description="Fake implementation of redis API for testing purposes.",
long_description=open(os.path.join(os.path.dirname(__file__),
'README.rst')).read(),
license='BSD',
ur... | from setuptools import setup, find_packages
setup(
name='fakeredis',
version='0.1',
description="Fake implementation of redis API for testing purposes.",
license='BSD',
url="https://github.com/jamesls/fakeredis",
author='James Saryerwinnie',
author_email='jlsnpi@gmail.com',
py_modules=[... | <commit_before>from setuptools import setup, find_packages
setup(
name='fakeredis',
version='0.1',
description="Fake implementation of redis API for testing purposes.",
license='BSD',
url="https://github.com/jamesls/fakeredis",
author='James Saryerwinnie',
author_email='jlsnpi@gmail.com',
... |
7e64bae593b70d24e1de22ee4530c9d8babe8c95 | setup.py | setup.py | from setuptools import find_packages, setup
setup(
name='django-migration-testcase',
version='0.0.14',
author='Andrew Plummer',
author_email='plummer574@gmail.com',
description='For testing migrations in Django',
url='https://github.com/plumdog/django_migration_testcase',
packages=find_pac... | from setuptools import find_packages, setup
setup(
name='django-migration-testcase',
version='0.0.14',
author='Andrew Plummer',
author_email='plummer574@gmail.com',
description='For testing migrations in Django',
url='https://github.com/plumdog/django_migration_testcase',
packages=find_pac... | Add python version trove classifiers | Add python version trove classifiers
| Python | mit | plumdog/django_migration_test,plumdog/django_migration_testcase,plumdog/django_migration_testcase,plumdog/django_migration_test | from setuptools import find_packages, setup
setup(
name='django-migration-testcase',
version='0.0.14',
author='Andrew Plummer',
author_email='plummer574@gmail.com',
description='For testing migrations in Django',
url='https://github.com/plumdog/django_migration_testcase',
packages=find_pac... | from setuptools import find_packages, setup
setup(
name='django-migration-testcase',
version='0.0.14',
author='Andrew Plummer',
author_email='plummer574@gmail.com',
description='For testing migrations in Django',
url='https://github.com/plumdog/django_migration_testcase',
packages=find_pac... | <commit_before>from setuptools import find_packages, setup
setup(
name='django-migration-testcase',
version='0.0.14',
author='Andrew Plummer',
author_email='plummer574@gmail.com',
description='For testing migrations in Django',
url='https://github.com/plumdog/django_migration_testcase',
pa... | from setuptools import find_packages, setup
setup(
name='django-migration-testcase',
version='0.0.14',
author='Andrew Plummer',
author_email='plummer574@gmail.com',
description='For testing migrations in Django',
url='https://github.com/plumdog/django_migration_testcase',
packages=find_pac... | from setuptools import find_packages, setup
setup(
name='django-migration-testcase',
version='0.0.14',
author='Andrew Plummer',
author_email='plummer574@gmail.com',
description='For testing migrations in Django',
url='https://github.com/plumdog/django_migration_testcase',
packages=find_pac... | <commit_before>from setuptools import find_packages, setup
setup(
name='django-migration-testcase',
version='0.0.14',
author='Andrew Plummer',
author_email='plummer574@gmail.com',
description='For testing migrations in Django',
url='https://github.com/plumdog/django_migration_testcase',
pa... |
5a52dd4c47e3c2438694949a174f91989dce6674 | setup.py | setup.py | from setuptools import setup
setup(
name='eclipsegen',
version='0.1',
description='Generate Eclipse instances in Python',
url='http://github.com/Gohla/eclipsegen',
author='Gabriel Konat',
author_email='gabrielkonat@gmail.com',
license='Apache 2.0',
packages=['eclipsegen'],
requires=['requests'],
te... | from setuptools import setup
setup(
name='eclipsegen',
version='0.1',
description='Generate Eclipse instances in Python',
url='http://github.com/Gohla/eclipsegen',
author='Gabriel Konat',
author_email='gabrielkonat@gmail.com',
license='Apache 2.0',
packages=['eclipsegen'],
install_requires=['requests... | Use install_requires instead of requires. | Use install_requires instead of requires.
| Python | apache-2.0 | Gohla/eclipsegen,Gohla/eclipsegen,Gohla/eclipsegen,Gohla/eclipsegen | from setuptools import setup
setup(
name='eclipsegen',
version='0.1',
description='Generate Eclipse instances in Python',
url='http://github.com/Gohla/eclipsegen',
author='Gabriel Konat',
author_email='gabrielkonat@gmail.com',
license='Apache 2.0',
packages=['eclipsegen'],
requires=['requests'],
te... | from setuptools import setup
setup(
name='eclipsegen',
version='0.1',
description='Generate Eclipse instances in Python',
url='http://github.com/Gohla/eclipsegen',
author='Gabriel Konat',
author_email='gabrielkonat@gmail.com',
license='Apache 2.0',
packages=['eclipsegen'],
install_requires=['requests... | <commit_before>from setuptools import setup
setup(
name='eclipsegen',
version='0.1',
description='Generate Eclipse instances in Python',
url='http://github.com/Gohla/eclipsegen',
author='Gabriel Konat',
author_email='gabrielkonat@gmail.com',
license='Apache 2.0',
packages=['eclipsegen'],
requires=['r... | from setuptools import setup
setup(
name='eclipsegen',
version='0.1',
description='Generate Eclipse instances in Python',
url='http://github.com/Gohla/eclipsegen',
author='Gabriel Konat',
author_email='gabrielkonat@gmail.com',
license='Apache 2.0',
packages=['eclipsegen'],
install_requires=['requests... | from setuptools import setup
setup(
name='eclipsegen',
version='0.1',
description='Generate Eclipse instances in Python',
url='http://github.com/Gohla/eclipsegen',
author='Gabriel Konat',
author_email='gabrielkonat@gmail.com',
license='Apache 2.0',
packages=['eclipsegen'],
requires=['requests'],
te... | <commit_before>from setuptools import setup
setup(
name='eclipsegen',
version='0.1',
description='Generate Eclipse instances in Python',
url='http://github.com/Gohla/eclipsegen',
author='Gabriel Konat',
author_email='gabrielkonat@gmail.com',
license='Apache 2.0',
packages=['eclipsegen'],
requires=['r... |
0a4d3f5b837cfa0d41a927c193a831a1c00b51f5 | setup.py | setup.py | #!/usr/bin/env python
#
# ==============================
# Copyright 2011 Whamcloud, Inc.
# ==============================
from distutils.core import setup
from hydra_agent import __version__
setup(
name = 'hydra-agent',
version = __version__,
author = "Whamcloud, Inc.",
author_email = "info@whamcloud... | #!/usr/bin/env python
#
# ==============================
# Copyright 2011 Whamcloud, Inc.
# ==============================
from distutils.core import setup
from hydra_agent import __version__
setup(
name = 'hydra-agent',
version = __version__,
author = "Whamcloud, Inc.",
author_email = "info@whamcloud... | Add new paths for audit/ | Add new paths for audit/
| Python | mit | intel-hpdd/intel-manager-for-lustre,intel-hpdd/intel-manager-for-lustre,intel-hpdd/intel-manager-for-lustre | #!/usr/bin/env python
#
# ==============================
# Copyright 2011 Whamcloud, Inc.
# ==============================
from distutils.core import setup
from hydra_agent import __version__
setup(
name = 'hydra-agent',
version = __version__,
author = "Whamcloud, Inc.",
author_email = "info@whamcloud... | #!/usr/bin/env python
#
# ==============================
# Copyright 2011 Whamcloud, Inc.
# ==============================
from distutils.core import setup
from hydra_agent import __version__
setup(
name = 'hydra-agent',
version = __version__,
author = "Whamcloud, Inc.",
author_email = "info@whamcloud... | <commit_before>#!/usr/bin/env python
#
# ==============================
# Copyright 2011 Whamcloud, Inc.
# ==============================
from distutils.core import setup
from hydra_agent import __version__
setup(
name = 'hydra-agent',
version = __version__,
author = "Whamcloud, Inc.",
author_email = ... | #!/usr/bin/env python
#
# ==============================
# Copyright 2011 Whamcloud, Inc.
# ==============================
from distutils.core import setup
from hydra_agent import __version__
setup(
name = 'hydra-agent',
version = __version__,
author = "Whamcloud, Inc.",
author_email = "info@whamcloud... | #!/usr/bin/env python
#
# ==============================
# Copyright 2011 Whamcloud, Inc.
# ==============================
from distutils.core import setup
from hydra_agent import __version__
setup(
name = 'hydra-agent',
version = __version__,
author = "Whamcloud, Inc.",
author_email = "info@whamcloud... | <commit_before>#!/usr/bin/env python
#
# ==============================
# Copyright 2011 Whamcloud, Inc.
# ==============================
from distutils.core import setup
from hydra_agent import __version__
setup(
name = 'hydra-agent',
version = __version__,
author = "Whamcloud, Inc.",
author_email = ... |
8a4d265f3a83357297e4713098ea51b86b5a5cf8 | setup.py | setup.py | import sys
import setuptools
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = []
def finalize_opt... | import sys
import setuptools
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = []
def finalize_opt... | Update to follow latest py.test recommendations | Update to follow latest py.test recommendations
http://pytest.org/latest/goodpractises.html#integrating-with-setuptools-python-setup-py-test
| Python | mit | bmcorser/py-multihash | import sys
import setuptools
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = []
def finalize_opt... | import sys
import setuptools
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = []
def finalize_opt... | <commit_before>import sys
import setuptools
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = []
d... | import sys
import setuptools
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = []
def finalize_opt... | import sys
import setuptools
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = []
def finalize_opt... | <commit_before>import sys
import setuptools
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = []
d... |
3c21ab2abb05b0eec35cbb6e279173bfdab519a8 | setup.py | setup.py | import sys
from setuptools import setup, find_packages
INSTALL_REQUIRES = ['pytz', 'workalendar']
if sys.version_info < (2, 7):
INSTALL_REQUIRES += ['backport_collections']
setup(
name='enerdata',
version='0.18.0',
packages=find_packages(),
url='http://code.gisce.net',
license='MIT',
auth... | import sys
from setuptools import setup, find_packages
PACKAGES_DATA = {'enerdata': ['profiles/data/*.xlsx']}
INSTALL_REQUIRES = ['pytz', 'workalendar']
if sys.version_info < (2, 7):
INSTALL_REQUIRES += ['backport_collections']
setup(
name='enerdata',
version='0.18.0',
packages=find_packages(),
... | FIX no data in pip file | FIX no data in pip file
| Python | mit | gisce/enerdata | import sys
from setuptools import setup, find_packages
INSTALL_REQUIRES = ['pytz', 'workalendar']
if sys.version_info < (2, 7):
INSTALL_REQUIRES += ['backport_collections']
setup(
name='enerdata',
version='0.18.0',
packages=find_packages(),
url='http://code.gisce.net',
license='MIT',
auth... | import sys
from setuptools import setup, find_packages
PACKAGES_DATA = {'enerdata': ['profiles/data/*.xlsx']}
INSTALL_REQUIRES = ['pytz', 'workalendar']
if sys.version_info < (2, 7):
INSTALL_REQUIRES += ['backport_collections']
setup(
name='enerdata',
version='0.18.0',
packages=find_packages(),
... | <commit_before>import sys
from setuptools import setup, find_packages
INSTALL_REQUIRES = ['pytz', 'workalendar']
if sys.version_info < (2, 7):
INSTALL_REQUIRES += ['backport_collections']
setup(
name='enerdata',
version='0.18.0',
packages=find_packages(),
url='http://code.gisce.net',
license=... | import sys
from setuptools import setup, find_packages
PACKAGES_DATA = {'enerdata': ['profiles/data/*.xlsx']}
INSTALL_REQUIRES = ['pytz', 'workalendar']
if sys.version_info < (2, 7):
INSTALL_REQUIRES += ['backport_collections']
setup(
name='enerdata',
version='0.18.0',
packages=find_packages(),
... | import sys
from setuptools import setup, find_packages
INSTALL_REQUIRES = ['pytz', 'workalendar']
if sys.version_info < (2, 7):
INSTALL_REQUIRES += ['backport_collections']
setup(
name='enerdata',
version='0.18.0',
packages=find_packages(),
url='http://code.gisce.net',
license='MIT',
auth... | <commit_before>import sys
from setuptools import setup, find_packages
INSTALL_REQUIRES = ['pytz', 'workalendar']
if sys.version_info < (2, 7):
INSTALL_REQUIRES += ['backport_collections']
setup(
name='enerdata',
version='0.18.0',
packages=find_packages(),
url='http://code.gisce.net',
license=... |
7847b6c8cf811d7648a63278d3de753eadca212a | setup.py | setup.py | #!/usr/bin/env python
import os
from setuptools import setup
ROOT_DIR = os.path.dirname(__file__)
SOURCE_DIR = os.path.join(ROOT_DIR)
requirements = [
'six >= 1.4.0',
]
version = None
exec(open('dockerpycreds/version.py').read())
with open('./test-requirements.txt') as test_reqs_txt:
test_requirements = [... | #!/usr/bin/env python
import os
from setuptools import setup
ROOT_DIR = os.path.dirname(__file__)
SOURCE_DIR = os.path.join(ROOT_DIR)
requirements = [
'six >= 1.4.0',
]
version = None
exec(open('dockerpycreds/version.py').read())
with open('./test-requirements.txt') as test_reqs_txt:
test_requirements = [... | Drop support for EOL Python 2.6 and 3.3 | Drop support for EOL Python 2.6 and 3.3
| Python | apache-2.0 | shin-/dockerpy-creds,shin-/dockerpy-creds | #!/usr/bin/env python
import os
from setuptools import setup
ROOT_DIR = os.path.dirname(__file__)
SOURCE_DIR = os.path.join(ROOT_DIR)
requirements = [
'six >= 1.4.0',
]
version = None
exec(open('dockerpycreds/version.py').read())
with open('./test-requirements.txt') as test_reqs_txt:
test_requirements = [... | #!/usr/bin/env python
import os
from setuptools import setup
ROOT_DIR = os.path.dirname(__file__)
SOURCE_DIR = os.path.join(ROOT_DIR)
requirements = [
'six >= 1.4.0',
]
version = None
exec(open('dockerpycreds/version.py').read())
with open('./test-requirements.txt') as test_reqs_txt:
test_requirements = [... | <commit_before>#!/usr/bin/env python
import os
from setuptools import setup
ROOT_DIR = os.path.dirname(__file__)
SOURCE_DIR = os.path.join(ROOT_DIR)
requirements = [
'six >= 1.4.0',
]
version = None
exec(open('dockerpycreds/version.py').read())
with open('./test-requirements.txt') as test_reqs_txt:
test_r... | #!/usr/bin/env python
import os
from setuptools import setup
ROOT_DIR = os.path.dirname(__file__)
SOURCE_DIR = os.path.join(ROOT_DIR)
requirements = [
'six >= 1.4.0',
]
version = None
exec(open('dockerpycreds/version.py').read())
with open('./test-requirements.txt') as test_reqs_txt:
test_requirements = [... | #!/usr/bin/env python
import os
from setuptools import setup
ROOT_DIR = os.path.dirname(__file__)
SOURCE_DIR = os.path.join(ROOT_DIR)
requirements = [
'six >= 1.4.0',
]
version = None
exec(open('dockerpycreds/version.py').read())
with open('./test-requirements.txt') as test_reqs_txt:
test_requirements = [... | <commit_before>#!/usr/bin/env python
import os
from setuptools import setup
ROOT_DIR = os.path.dirname(__file__)
SOURCE_DIR = os.path.join(ROOT_DIR)
requirements = [
'six >= 1.4.0',
]
version = None
exec(open('dockerpycreds/version.py').read())
with open('./test-requirements.txt') as test_reqs_txt:
test_r... |
8d4c4f05b5394f8d4002a29c7925a8a4845093d4 | setup.py | setup.py | from setuptools import setup, find_packages
__version__ = '0.6.0'
setup(
name = 'metalearn',
packages = find_packages(include=['metalearn', 'metalearn.*']),
version = __version__,
description = 'A package to aid in metalearning',
author = 'Roland Laboulaye, Brandon Schoenfeld, Casey Davis',
au... | from setuptools import setup, find_packages
__version__ = '0.6.0'
setup(
name = 'metalearn',
packages = find_packages(include=['metalearn', 'metalearn.*']),
version = __version__,
description = 'A package to aid in metalearning',
author = 'Roland Laboulaye, Brandon Schoenfeld, Casey Davis',
au... | Bump deps to match d3m==v2020.5.18 | Bump deps to match d3m==v2020.5.18
| Python | mit | byu-dml/metalearn | from setuptools import setup, find_packages
__version__ = '0.6.0'
setup(
name = 'metalearn',
packages = find_packages(include=['metalearn', 'metalearn.*']),
version = __version__,
description = 'A package to aid in metalearning',
author = 'Roland Laboulaye, Brandon Schoenfeld, Casey Davis',
au... | from setuptools import setup, find_packages
__version__ = '0.6.0'
setup(
name = 'metalearn',
packages = find_packages(include=['metalearn', 'metalearn.*']),
version = __version__,
description = 'A package to aid in metalearning',
author = 'Roland Laboulaye, Brandon Schoenfeld, Casey Davis',
au... | <commit_before>from setuptools import setup, find_packages
__version__ = '0.6.0'
setup(
name = 'metalearn',
packages = find_packages(include=['metalearn', 'metalearn.*']),
version = __version__,
description = 'A package to aid in metalearning',
author = 'Roland Laboulaye, Brandon Schoenfeld, Casey... | from setuptools import setup, find_packages
__version__ = '0.6.0'
setup(
name = 'metalearn',
packages = find_packages(include=['metalearn', 'metalearn.*']),
version = __version__,
description = 'A package to aid in metalearning',
author = 'Roland Laboulaye, Brandon Schoenfeld, Casey Davis',
au... | from setuptools import setup, find_packages
__version__ = '0.6.0'
setup(
name = 'metalearn',
packages = find_packages(include=['metalearn', 'metalearn.*']),
version = __version__,
description = 'A package to aid in metalearning',
author = 'Roland Laboulaye, Brandon Schoenfeld, Casey Davis',
au... | <commit_before>from setuptools import setup, find_packages
__version__ = '0.6.0'
setup(
name = 'metalearn',
packages = find_packages(include=['metalearn', 'metalearn.*']),
version = __version__,
description = 'A package to aid in metalearning',
author = 'Roland Laboulaye, Brandon Schoenfeld, Casey... |
1918dbe5902d8ddd5421a698dc8a35e744cf9c5c | setup.py | setup.py | #!/usr/bin/env python
import subprocess
from setuptools import setup, find_packages
import os
def git_version():
def _minimal_ext_cmd(cmd):
# construct minimal environment
env = {}
for k in ['SYSTEMROOT', 'PATH']:
v = os.environ.get(k)
if v is not None:
... | #!/usr/bin/env python
import subprocess
from setuptools import setup, find_packages
import os
def git_version():
def _minimal_ext_cmd(cmd):
# construct minimal environment
env = {}
for k in ['SYSTEMROOT', 'PATH']:
v = os.environ.get(k)
if v is not None:
... | Update to version number to 0.2.4 | Update to version number to 0.2.4
| Python | mit | davidbrough1/pymks,davidbrough1/pymks,awhite40/pymks | #!/usr/bin/env python
import subprocess
from setuptools import setup, find_packages
import os
def git_version():
def _minimal_ext_cmd(cmd):
# construct minimal environment
env = {}
for k in ['SYSTEMROOT', 'PATH']:
v = os.environ.get(k)
if v is not None:
... | #!/usr/bin/env python
import subprocess
from setuptools import setup, find_packages
import os
def git_version():
def _minimal_ext_cmd(cmd):
# construct minimal environment
env = {}
for k in ['SYSTEMROOT', 'PATH']:
v = os.environ.get(k)
if v is not None:
... | <commit_before>#!/usr/bin/env python
import subprocess
from setuptools import setup, find_packages
import os
def git_version():
def _minimal_ext_cmd(cmd):
# construct minimal environment
env = {}
for k in ['SYSTEMROOT', 'PATH']:
v = os.environ.get(k)
if v is not No... | #!/usr/bin/env python
import subprocess
from setuptools import setup, find_packages
import os
def git_version():
def _minimal_ext_cmd(cmd):
# construct minimal environment
env = {}
for k in ['SYSTEMROOT', 'PATH']:
v = os.environ.get(k)
if v is not None:
... | #!/usr/bin/env python
import subprocess
from setuptools import setup, find_packages
import os
def git_version():
def _minimal_ext_cmd(cmd):
# construct minimal environment
env = {}
for k in ['SYSTEMROOT', 'PATH']:
v = os.environ.get(k)
if v is not None:
... | <commit_before>#!/usr/bin/env python
import subprocess
from setuptools import setup, find_packages
import os
def git_version():
def _minimal_ext_cmd(cmd):
# construct minimal environment
env = {}
for k in ['SYSTEMROOT', 'PATH']:
v = os.environ.get(k)
if v is not No... |
67eea1b9f0308a78371a6fb56274cbdce5f85fe5 | setup.py | setup.py | from setuptools import setup
VERSION = "0.2.0"
setup(
name="pusherclient",
version=VERSION,
description="Pusher websocket client for python",
author="Erik Kulyk",
author_email="e.kulyk@gmail.com",
license="",
url="",
install_requires=["websocket-client"],
packages=["pusherclient"],... | from setuptools import setup
import sys
VERSION = "0.2.0"
if sys.version_info >= (3,):
requirements = ["websocket-client-py3"]
else:
requirements = ["websocket-client"]
setup(
name="pusherclient",
version=VERSION,
description="Pusher websocket client for python",
author="Erik Kulyk",
auth... | Support to Python 3: should use websocket-client-py3 | Support to Python 3: should use websocket-client-py3
| Python | mit | ekulyk/PythonPusherClient,bartbroere/PythonPusherClient,mattsunsjf/PythonPusherClient | from setuptools import setup
VERSION = "0.2.0"
setup(
name="pusherclient",
version=VERSION,
description="Pusher websocket client for python",
author="Erik Kulyk",
author_email="e.kulyk@gmail.com",
license="",
url="",
install_requires=["websocket-client"],
packages=["pusherclient"],... | from setuptools import setup
import sys
VERSION = "0.2.0"
if sys.version_info >= (3,):
requirements = ["websocket-client-py3"]
else:
requirements = ["websocket-client"]
setup(
name="pusherclient",
version=VERSION,
description="Pusher websocket client for python",
author="Erik Kulyk",
auth... | <commit_before>from setuptools import setup
VERSION = "0.2.0"
setup(
name="pusherclient",
version=VERSION,
description="Pusher websocket client for python",
author="Erik Kulyk",
author_email="e.kulyk@gmail.com",
license="",
url="",
install_requires=["websocket-client"],
packages=["... | from setuptools import setup
import sys
VERSION = "0.2.0"
if sys.version_info >= (3,):
requirements = ["websocket-client-py3"]
else:
requirements = ["websocket-client"]
setup(
name="pusherclient",
version=VERSION,
description="Pusher websocket client for python",
author="Erik Kulyk",
auth... | from setuptools import setup
VERSION = "0.2.0"
setup(
name="pusherclient",
version=VERSION,
description="Pusher websocket client for python",
author="Erik Kulyk",
author_email="e.kulyk@gmail.com",
license="",
url="",
install_requires=["websocket-client"],
packages=["pusherclient"],... | <commit_before>from setuptools import setup
VERSION = "0.2.0"
setup(
name="pusherclient",
version=VERSION,
description="Pusher websocket client for python",
author="Erik Kulyk",
author_email="e.kulyk@gmail.com",
license="",
url="",
install_requires=["websocket-client"],
packages=["... |
3a1f45d00f2e031d2961b9fef1e0ea7c36f9e410 | setup.py | setup.py | import os
from setuptools import setup
VERSION='1.0.0'
# Install Bash completion script only if installation is run as root
if os.geteuid() != 0:
data_files = []
else:
data_files = [('/etc/bash_completion.d', ['pick-from.sh'])]
setup(
name='pick-from',
version=VERSION,
author='Matthias Vogelge... | import os
from setuptools import setup
VERSION='1.0.0'
# Install Bash completion script only if installation is run as root
if os.geteuid() != 0:
data_files = []
else:
data_files = [('/etc/bash_completion.d', ['pick-from.sh'])]
setup(
name='git-pick-from',
version=VERSION,
author='Matthias Vog... | Change package name to git-pick-from | Change package name to git-pick-from
| Python | bsd-2-clause | matze/git-pick-from | import os
from setuptools import setup
VERSION='1.0.0'
# Install Bash completion script only if installation is run as root
if os.geteuid() != 0:
data_files = []
else:
data_files = [('/etc/bash_completion.d', ['pick-from.sh'])]
setup(
name='pick-from',
version=VERSION,
author='Matthias Vogelge... | import os
from setuptools import setup
VERSION='1.0.0'
# Install Bash completion script only if installation is run as root
if os.geteuid() != 0:
data_files = []
else:
data_files = [('/etc/bash_completion.d', ['pick-from.sh'])]
setup(
name='git-pick-from',
version=VERSION,
author='Matthias Vog... | <commit_before>import os
from setuptools import setup
VERSION='1.0.0'
# Install Bash completion script only if installation is run as root
if os.geteuid() != 0:
data_files = []
else:
data_files = [('/etc/bash_completion.d', ['pick-from.sh'])]
setup(
name='pick-from',
version=VERSION,
author='M... | import os
from setuptools import setup
VERSION='1.0.0'
# Install Bash completion script only if installation is run as root
if os.geteuid() != 0:
data_files = []
else:
data_files = [('/etc/bash_completion.d', ['pick-from.sh'])]
setup(
name='git-pick-from',
version=VERSION,
author='Matthias Vog... | import os
from setuptools import setup
VERSION='1.0.0'
# Install Bash completion script only if installation is run as root
if os.geteuid() != 0:
data_files = []
else:
data_files = [('/etc/bash_completion.d', ['pick-from.sh'])]
setup(
name='pick-from',
version=VERSION,
author='Matthias Vogelge... | <commit_before>import os
from setuptools import setup
VERSION='1.0.0'
# Install Bash completion script only if installation is run as root
if os.geteuid() != 0:
data_files = []
else:
data_files = [('/etc/bash_completion.d', ['pick-from.sh'])]
setup(
name='pick-from',
version=VERSION,
author='M... |
d5d46410270cbc4b8ebbc593ed1f8c4dfdeee1f4 | setup.py | setup.py | import sys, os
from setuptools import setup, find_packages
import subprocess
version = "0.3.3"
base_reqs = [
"requests"
]
setup(
name="waybackpack",
description="Command-line tool that lets you download the entire Wayback Machine archive for a given URL.",
classifiers=[
"Development Status ::... | import sys, os
from setuptools import setup, find_packages
import subprocess
version = "0.3.3"
base_reqs = [
"requests"
]
setup(
name="waybackpack",
description="Command-line tool that lets you download the entire Wayback Machine archive for a given URL.",
classifiers=[
"Development Status ::... | Use HTTPS in homepage URL | Use HTTPS in homepage URL
| Python | mit | jsvine/waybackpack | import sys, os
from setuptools import setup, find_packages
import subprocess
version = "0.3.3"
base_reqs = [
"requests"
]
setup(
name="waybackpack",
description="Command-line tool that lets you download the entire Wayback Machine archive for a given URL.",
classifiers=[
"Development Status ::... | import sys, os
from setuptools import setup, find_packages
import subprocess
version = "0.3.3"
base_reqs = [
"requests"
]
setup(
name="waybackpack",
description="Command-line tool that lets you download the entire Wayback Machine archive for a given URL.",
classifiers=[
"Development Status ::... | <commit_before>import sys, os
from setuptools import setup, find_packages
import subprocess
version = "0.3.3"
base_reqs = [
"requests"
]
setup(
name="waybackpack",
description="Command-line tool that lets you download the entire Wayback Machine archive for a given URL.",
classifiers=[
"Develo... | import sys, os
from setuptools import setup, find_packages
import subprocess
version = "0.3.3"
base_reqs = [
"requests"
]
setup(
name="waybackpack",
description="Command-line tool that lets you download the entire Wayback Machine archive for a given URL.",
classifiers=[
"Development Status ::... | import sys, os
from setuptools import setup, find_packages
import subprocess
version = "0.3.3"
base_reqs = [
"requests"
]
setup(
name="waybackpack",
description="Command-line tool that lets you download the entire Wayback Machine archive for a given URL.",
classifiers=[
"Development Status ::... | <commit_before>import sys, os
from setuptools import setup, find_packages
import subprocess
version = "0.3.3"
base_reqs = [
"requests"
]
setup(
name="waybackpack",
description="Command-line tool that lets you download the entire Wayback Machine archive for a given URL.",
classifiers=[
"Develo... |
9353deefa7cc31fc4e9d01f29f7dab8c37b73a78 | setup.py | setup.py | from setuptools import setup, find_packages
# Dynamically calculate the version based on dbsettings.VERSION
version_tuple = (0, 4, None)
if version_tuple[2] is not None:
version = "%d.%d_%s" % version_tuple
else:
version = "%d.%d" % version_tuple[:2]
setup(
name='django-dbsettings',
version=version,
... | from setuptools import setup, find_packages
# Dynamically calculate the version based on dbsettings.VERSION
version_tuple = (0, 4, None)
if version_tuple[2] is not None:
if type(version_tuple[2]) == int:
version = "%d.%d.%s" % version_tuple
else:
version = "%d.%d_%s" % version_tuple
else:
v... | Allow version to have subrevision. | Allow version to have subrevision.
| Python | bsd-3-clause | helber/django-dbsettings,sciyoshi/django-dbsettings,zlorf/django-dbsettings,helber/django-dbsettings,DjangoAdminHackers/django-dbsettings,winfieldco/django-dbsettings,MiriamSexton/django-dbsettings,nwaxiomatic/django-dbsettings,DjangoAdminHackers/django-dbsettings,nwaxiomatic/django-dbsettings,zlorf/django-dbsettings,j... | from setuptools import setup, find_packages
# Dynamically calculate the version based on dbsettings.VERSION
version_tuple = (0, 4, None)
if version_tuple[2] is not None:
version = "%d.%d_%s" % version_tuple
else:
version = "%d.%d" % version_tuple[:2]
setup(
name='django-dbsettings',
version=version,
... | from setuptools import setup, find_packages
# Dynamically calculate the version based on dbsettings.VERSION
version_tuple = (0, 4, None)
if version_tuple[2] is not None:
if type(version_tuple[2]) == int:
version = "%d.%d.%s" % version_tuple
else:
version = "%d.%d_%s" % version_tuple
else:
v... | <commit_before>from setuptools import setup, find_packages
# Dynamically calculate the version based on dbsettings.VERSION
version_tuple = (0, 4, None)
if version_tuple[2] is not None:
version = "%d.%d_%s" % version_tuple
else:
version = "%d.%d" % version_tuple[:2]
setup(
name='django-dbsettings',
ver... | from setuptools import setup, find_packages
# Dynamically calculate the version based on dbsettings.VERSION
version_tuple = (0, 4, None)
if version_tuple[2] is not None:
if type(version_tuple[2]) == int:
version = "%d.%d.%s" % version_tuple
else:
version = "%d.%d_%s" % version_tuple
else:
v... | from setuptools import setup, find_packages
# Dynamically calculate the version based on dbsettings.VERSION
version_tuple = (0, 4, None)
if version_tuple[2] is not None:
version = "%d.%d_%s" % version_tuple
else:
version = "%d.%d" % version_tuple[:2]
setup(
name='django-dbsettings',
version=version,
... | <commit_before>from setuptools import setup, find_packages
# Dynamically calculate the version based on dbsettings.VERSION
version_tuple = (0, 4, None)
if version_tuple[2] is not None:
version = "%d.%d_%s" % version_tuple
else:
version = "%d.%d" % version_tuple[:2]
setup(
name='django-dbsettings',
ver... |
830c3d7ac451805286bca32a04d6ba25db39b58d | setup.py | setup.py | from __future__ import absolute_import, division, print_function, unicode_literals
from setuptools import setup
setup( name='lifecycle'
, author='Gittip, LLC'
, author_email='support@gittip.com'
, description="This library models a process lifecycle as a list of functions."
, url='http://lifecycl... | from __future__ import absolute_import, division, print_function, unicode_literals
from setuptools import setup
setup( name='lifecycle'
, author='Gittip, LLC'
, author_email='support@gittip.com'
, description="This library models a process lifecycle as a list of functions."
, url='http://lifecycl... | Add install_requires so we can build at RTD | Add install_requires so we can build at RTD
| Python | mit | techtonik/algorithm.py,gratipay/algorithm.py,techtonik/algorithm.py,AspenWeb/algorithm.py,gratipay/algorithm.py | from __future__ import absolute_import, division, print_function, unicode_literals
from setuptools import setup
setup( name='lifecycle'
, author='Gittip, LLC'
, author_email='support@gittip.com'
, description="This library models a process lifecycle as a list of functions."
, url='http://lifecycl... | from __future__ import absolute_import, division, print_function, unicode_literals
from setuptools import setup
setup( name='lifecycle'
, author='Gittip, LLC'
, author_email='support@gittip.com'
, description="This library models a process lifecycle as a list of functions."
, url='http://lifecycl... | <commit_before>from __future__ import absolute_import, division, print_function, unicode_literals
from setuptools import setup
setup( name='lifecycle'
, author='Gittip, LLC'
, author_email='support@gittip.com'
, description="This library models a process lifecycle as a list of functions."
, url='... | from __future__ import absolute_import, division, print_function, unicode_literals
from setuptools import setup
setup( name='lifecycle'
, author='Gittip, LLC'
, author_email='support@gittip.com'
, description="This library models a process lifecycle as a list of functions."
, url='http://lifecycl... | from __future__ import absolute_import, division, print_function, unicode_literals
from setuptools import setup
setup( name='lifecycle'
, author='Gittip, LLC'
, author_email='support@gittip.com'
, description="This library models a process lifecycle as a list of functions."
, url='http://lifecycl... | <commit_before>from __future__ import absolute_import, division, print_function, unicode_literals
from setuptools import setup
setup( name='lifecycle'
, author='Gittip, LLC'
, author_email='support@gittip.com'
, description="This library models a process lifecycle as a list of functions."
, url='... |
3e4707a3f25f3a2f84f811394d738cebc1ca9f19 | mygpo/search/models.py | mygpo/search/models.py | """ Wrappers for the results of a search """
class PodcastResult(object):
""" Wrapper for a Podcast search result """
@classmethod
def from_doc(cls, doc):
""" Construct a PodcastResult from a search result """
obj = cls()
for key, val in doc['_source'].items():
seta... | """ Wrappers for the results of a search """
import uuid
class PodcastResult(object):
""" Wrapper for a Podcast search result """
@classmethod
def from_doc(cls, doc):
""" Construct a PodcastResult from a search result """
obj = cls()
for key, val in doc['_source'].items():
... | Fix parsing UUID in search results | Fix parsing UUID in search results
| Python | agpl-3.0 | gpodder/mygpo,gpodder/mygpo,gpodder/mygpo,gpodder/mygpo | """ Wrappers for the results of a search """
class PodcastResult(object):
""" Wrapper for a Podcast search result """
@classmethod
def from_doc(cls, doc):
""" Construct a PodcastResult from a search result """
obj = cls()
for key, val in doc['_source'].items():
seta... | """ Wrappers for the results of a search """
import uuid
class PodcastResult(object):
""" Wrapper for a Podcast search result """
@classmethod
def from_doc(cls, doc):
""" Construct a PodcastResult from a search result """
obj = cls()
for key, val in doc['_source'].items():
... | <commit_before>""" Wrappers for the results of a search """
class PodcastResult(object):
""" Wrapper for a Podcast search result """
@classmethod
def from_doc(cls, doc):
""" Construct a PodcastResult from a search result """
obj = cls()
for key, val in doc['_source'].items():
... | """ Wrappers for the results of a search """
import uuid
class PodcastResult(object):
""" Wrapper for a Podcast search result """
@classmethod
def from_doc(cls, doc):
""" Construct a PodcastResult from a search result """
obj = cls()
for key, val in doc['_source'].items():
... | """ Wrappers for the results of a search """
class PodcastResult(object):
""" Wrapper for a Podcast search result """
@classmethod
def from_doc(cls, doc):
""" Construct a PodcastResult from a search result """
obj = cls()
for key, val in doc['_source'].items():
seta... | <commit_before>""" Wrappers for the results of a search """
class PodcastResult(object):
""" Wrapper for a Podcast search result """
@classmethod
def from_doc(cls, doc):
""" Construct a PodcastResult from a search result """
obj = cls()
for key, val in doc['_source'].items():
... |
0d3b11648af33b57671f3a722b41e04625b7d984 | tests/test_fragments.py | tests/test_fragments.py | import sci_parameter_utils.fragment as frag
class TestInputInt:
def test_create(self):
name = 'test'
fmt = "{}"
elem = frag.TemplateElem.elem_by_type('int',
name,
{}
... | import sci_parameter_utils.fragment as frag
class TestInputInt:
tstr = 'int'
def test_create(self):
name = 'test'
fmt = "{}"
elem = frag.TemplateElem.elem_by_type(self.tstr,
name,
{}
... | Add tests for all input elements | Add tests for all input elements
| Python | mit | class4kayaker/Parameter_Utils | import sci_parameter_utils.fragment as frag
class TestInputInt:
def test_create(self):
name = 'test'
fmt = "{}"
elem = frag.TemplateElem.elem_by_type('int',
name,
{}
... | import sci_parameter_utils.fragment as frag
class TestInputInt:
tstr = 'int'
def test_create(self):
name = 'test'
fmt = "{}"
elem = frag.TemplateElem.elem_by_type(self.tstr,
name,
{}
... | <commit_before>import sci_parameter_utils.fragment as frag
class TestInputInt:
def test_create(self):
name = 'test'
fmt = "{}"
elem = frag.TemplateElem.elem_by_type('int',
name,
{}
... | import sci_parameter_utils.fragment as frag
class TestInputInt:
tstr = 'int'
def test_create(self):
name = 'test'
fmt = "{}"
elem = frag.TemplateElem.elem_by_type(self.tstr,
name,
{}
... | import sci_parameter_utils.fragment as frag
class TestInputInt:
def test_create(self):
name = 'test'
fmt = "{}"
elem = frag.TemplateElem.elem_by_type('int',
name,
{}
... | <commit_before>import sci_parameter_utils.fragment as frag
class TestInputInt:
def test_create(self):
name = 'test'
fmt = "{}"
elem = frag.TemplateElem.elem_by_type('int',
name,
{}
... |
01d665bc295c48d5d805a3b1292b6116cf854d8a | setup.py | setup.py | from setuptools import setup, find_packages
version = '1.0a5.dev0'
setup(
name='robotframework-djangolibrary',
version=version,
description="A robot framework library for Django.",
long_description="""\
""",
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved ... | from setuptools import setup, find_packages
version = '1.0a5.dev0'
long_description = (
open('README.rst').read() +
'\n' +
'\n' +
open('CHANGES.rst').read() +
'\n')
setup(
name='robotframework-djangolibrary',
version=version,
description="A robot framework library for Django.",
lo... | Include CHANGES.rst in long description. | Include CHANGES.rst in long description.
| Python | apache-2.0 | kitconcept/robotframework-djangolibrary | from setuptools import setup, find_packages
version = '1.0a5.dev0'
setup(
name='robotframework-djangolibrary',
version=version,
description="A robot framework library for Django.",
long_description="""\
""",
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved ... | from setuptools import setup, find_packages
version = '1.0a5.dev0'
long_description = (
open('README.rst').read() +
'\n' +
'\n' +
open('CHANGES.rst').read() +
'\n')
setup(
name='robotframework-djangolibrary',
version=version,
description="A robot framework library for Django.",
lo... | <commit_before>from setuptools import setup, find_packages
version = '1.0a5.dev0'
setup(
name='robotframework-djangolibrary',
version=version,
description="A robot framework library for Django.",
long_description="""\
""",
classifiers=[
'Development Status :: 3 - Alpha',
'License :... | from setuptools import setup, find_packages
version = '1.0a5.dev0'
long_description = (
open('README.rst').read() +
'\n' +
'\n' +
open('CHANGES.rst').read() +
'\n')
setup(
name='robotframework-djangolibrary',
version=version,
description="A robot framework library for Django.",
lo... | from setuptools import setup, find_packages
version = '1.0a5.dev0'
setup(
name='robotframework-djangolibrary',
version=version,
description="A robot framework library for Django.",
long_description="""\
""",
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved ... | <commit_before>from setuptools import setup, find_packages
version = '1.0a5.dev0'
setup(
name='robotframework-djangolibrary',
version=version,
description="A robot framework library for Django.",
long_description="""\
""",
classifiers=[
'Development Status :: 3 - Alpha',
'License :... |
12dab867a97241e27eeca44b3919113d379c1850 | setup.py | setup.py | try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(
name='porick',
version='0.1',
description='',
author='',
author_email='',
url='',
install_requires=[
... | try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(
name='porick',
version='0.1',
description='',
author='',
author_email='',
url='',
install_requires=[
... | Use sqlalchemy 0.7.7 instead of 0.6 | Use sqlalchemy 0.7.7 instead of 0.6
| Python | apache-2.0 | kopf/porick,kopf/porick,kopf/porick | try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(
name='porick',
version='0.1',
description='',
author='',
author_email='',
url='',
install_requires=[
... | try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(
name='porick',
version='0.1',
description='',
author='',
author_email='',
url='',
install_requires=[
... | <commit_before>try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(
name='porick',
version='0.1',
description='',
author='',
author_email='',
url='',
insta... | try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(
name='porick',
version='0.1',
description='',
author='',
author_email='',
url='',
install_requires=[
... | try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(
name='porick',
version='0.1',
description='',
author='',
author_email='',
url='',
install_requires=[
... | <commit_before>try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(
name='porick',
version='0.1',
description='',
author='',
author_email='',
url='',
insta... |
21082912755b95f539bd1c6359303917e4066554 | setup.py | setup.py | #!/usr/bin/env python
# Setuptools is a slightly nicer distribution utility that can create 'eggs'.
from setuptools import setup, find_packages
setup(
name='django-cleaver',
author='Kevin Williams',
author_email='kevin@weblivion.com',
version='0.1',
license='BSD',
url='https://github.com/isola... | #!/usr/bin/env python
# Setuptools is a slightly nicer distribution utility that can create 'eggs'.
from setuptools import setup, find_packages
setup(
name='django-cleaver',
author='Kevin Williams',
author_email='kevin@weblivion.com',
version='0.1',
license='BSD',
url='https://github.com/isola... | Move to require version 0.3 or better of CleverCSS | Move to require version 0.3 or better of CleverCSS
| Python | bsd-3-clause | isolationism/django-cleaver | #!/usr/bin/env python
# Setuptools is a slightly nicer distribution utility that can create 'eggs'.
from setuptools import setup, find_packages
setup(
name='django-cleaver',
author='Kevin Williams',
author_email='kevin@weblivion.com',
version='0.1',
license='BSD',
url='https://github.com/isola... | #!/usr/bin/env python
# Setuptools is a slightly nicer distribution utility that can create 'eggs'.
from setuptools import setup, find_packages
setup(
name='django-cleaver',
author='Kevin Williams',
author_email='kevin@weblivion.com',
version='0.1',
license='BSD',
url='https://github.com/isola... | <commit_before>#!/usr/bin/env python
# Setuptools is a slightly nicer distribution utility that can create 'eggs'.
from setuptools import setup, find_packages
setup(
name='django-cleaver',
author='Kevin Williams',
author_email='kevin@weblivion.com',
version='0.1',
license='BSD',
url='https://g... | #!/usr/bin/env python
# Setuptools is a slightly nicer distribution utility that can create 'eggs'.
from setuptools import setup, find_packages
setup(
name='django-cleaver',
author='Kevin Williams',
author_email='kevin@weblivion.com',
version='0.1',
license='BSD',
url='https://github.com/isola... | #!/usr/bin/env python
# Setuptools is a slightly nicer distribution utility that can create 'eggs'.
from setuptools import setup, find_packages
setup(
name='django-cleaver',
author='Kevin Williams',
author_email='kevin@weblivion.com',
version='0.1',
license='BSD',
url='https://github.com/isola... | <commit_before>#!/usr/bin/env python
# Setuptools is a slightly nicer distribution utility that can create 'eggs'.
from setuptools import setup, find_packages
setup(
name='django-cleaver',
author='Kevin Williams',
author_email='kevin@weblivion.com',
version='0.1',
license='BSD',
url='https://g... |
d36b5e36883306bbae80a034dc80543da54a08cd | setup.py | setup.py | import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name = "UCLDC Deep Harvester",
version = "0.0.3",
d... | import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name = "UCLDC Deep Harvester",
version = "0.0.3",
d... | Change to mredar repo of ucldc-iiif while working on this | Change to mredar repo of ucldc-iiif while working on this
Needed to change ucldc-iiif to work with different paths, not yet merged
to barbara's main repo
| Python | bsd-3-clause | barbarahui/nuxeo-calisphere,barbarahui/nuxeo-calisphere | import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name = "UCLDC Deep Harvester",
version = "0.0.3",
d... | import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name = "UCLDC Deep Harvester",
version = "0.0.3",
d... | <commit_before>import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name = "UCLDC Deep Harvester",
version =... | import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name = "UCLDC Deep Harvester",
version = "0.0.3",
d... | import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name = "UCLDC Deep Harvester",
version = "0.0.3",
d... | <commit_before>import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name = "UCLDC Deep Harvester",
version =... |
eca6ee4e1f247c8262694e8ad722cc62d9edaf27 | setup.py | setup.py | #!/usr/bin/env python
# encoding: utf-8
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import re
with open('nonstdlib/__init__.py') as file:
version_pattern = re.compile("__version__ = '(.*)'")
version = version_pattern.search(file.read()).group(1)
with open('R... | #!/usr/bin/env python
# encoding: utf-8
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import re
with open('nonstdlib/__init__.py') as file:
version_pattern = re.compile("__version__ = '(.*)'")
version = version_pattern.search(file.read()).group(1)
with open('R... | Remove trove classifiers for python2. | Remove trove classifiers for python2.
| Python | mit | KenKundert/nonstdlib,KenKundert/nonstdlib,kalekundert/nonstdlib,kalekundert/nonstdlib | #!/usr/bin/env python
# encoding: utf-8
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import re
with open('nonstdlib/__init__.py') as file:
version_pattern = re.compile("__version__ = '(.*)'")
version = version_pattern.search(file.read()).group(1)
with open('R... | #!/usr/bin/env python
# encoding: utf-8
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import re
with open('nonstdlib/__init__.py') as file:
version_pattern = re.compile("__version__ = '(.*)'")
version = version_pattern.search(file.read()).group(1)
with open('R... | <commit_before>#!/usr/bin/env python
# encoding: utf-8
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import re
with open('nonstdlib/__init__.py') as file:
version_pattern = re.compile("__version__ = '(.*)'")
version = version_pattern.search(file.read()).group(1... | #!/usr/bin/env python
# encoding: utf-8
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import re
with open('nonstdlib/__init__.py') as file:
version_pattern = re.compile("__version__ = '(.*)'")
version = version_pattern.search(file.read()).group(1)
with open('R... | #!/usr/bin/env python
# encoding: utf-8
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import re
with open('nonstdlib/__init__.py') as file:
version_pattern = re.compile("__version__ = '(.*)'")
version = version_pattern.search(file.read()).group(1)
with open('R... | <commit_before>#!/usr/bin/env python
# encoding: utf-8
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import re
with open('nonstdlib/__init__.py') as file:
version_pattern = re.compile("__version__ = '(.*)'")
version = version_pattern.search(file.read()).group(1... |
ca953b2ef7662e4a70eba386e66ed6d66fad4eec | setup.py | setup.py | #!/usr/bin/env python
# encoding: utf-8
"""
setup.py
Setup the Keyring Lib for Python.
"""
import sys
from distutils.core import setup, Extension
from extensions import get_extensions
setup(name = 'keyring',
version = "0.1",
description = "Store and access your passwords safely.",
url = "http://ke... | #!/usr/bin/env python
# encoding: utf-8
"""
setup.py
Setup the Keyring Lib for Python.
"""
import sys
from distutils.core import setup, Extension
from extensions import get_extensions
setup(name = 'keyring',
version = "0.1",
description = "Store and access your passwords safely.",
url = "http://ho... | Fix the error in the home page URL. | Fix the error in the home page URL.
| Python | mit | jaraco/keyring | #!/usr/bin/env python
# encoding: utf-8
"""
setup.py
Setup the Keyring Lib for Python.
"""
import sys
from distutils.core import setup, Extension
from extensions import get_extensions
setup(name = 'keyring',
version = "0.1",
description = "Store and access your passwords safely.",
url = "http://ke... | #!/usr/bin/env python
# encoding: utf-8
"""
setup.py
Setup the Keyring Lib for Python.
"""
import sys
from distutils.core import setup, Extension
from extensions import get_extensions
setup(name = 'keyring',
version = "0.1",
description = "Store and access your passwords safely.",
url = "http://ho... | <commit_before>#!/usr/bin/env python
# encoding: utf-8
"""
setup.py
Setup the Keyring Lib for Python.
"""
import sys
from distutils.core import setup, Extension
from extensions import get_extensions
setup(name = 'keyring',
version = "0.1",
description = "Store and access your passwords safely.",
u... | #!/usr/bin/env python
# encoding: utf-8
"""
setup.py
Setup the Keyring Lib for Python.
"""
import sys
from distutils.core import setup, Extension
from extensions import get_extensions
setup(name = 'keyring',
version = "0.1",
description = "Store and access your passwords safely.",
url = "http://ho... | #!/usr/bin/env python
# encoding: utf-8
"""
setup.py
Setup the Keyring Lib for Python.
"""
import sys
from distutils.core import setup, Extension
from extensions import get_extensions
setup(name = 'keyring',
version = "0.1",
description = "Store and access your passwords safely.",
url = "http://ke... | <commit_before>#!/usr/bin/env python
# encoding: utf-8
"""
setup.py
Setup the Keyring Lib for Python.
"""
import sys
from distutils.core import setup, Extension
from extensions import get_extensions
setup(name = 'keyring',
version = "0.1",
description = "Store and access your passwords safely.",
u... |
5152d92ee9475533d4d79b8555ed3d9789376957 | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name = "pyRFC3339",
version = "0.1",
author = "Kurt Raschke",
author_email = "kurt@kurtraschke.com",
description = "Generate and parse RFC 3339 timestamps",
keywords = "rfc 3339 timestamp",
license = "MIT",
classifiers = [
"De... | from setuptools import setup, find_packages
setup(
name = "pyRFC3339",
version = "0.2",
author = "Kurt Raschke",
author_email = "kurt@kurtraschke.com",
description = "Generate and parse RFC 3339 timestamps",
keywords = "rfc 3339 timestamp",
license = "MIT",
classifiers = [
"De... | Bump version for new release with Python 3 compatibility. | Bump version for new release with Python 3 compatibility.
| Python | mit | kurtraschke/pyRFC3339 | from setuptools import setup, find_packages
setup(
name = "pyRFC3339",
version = "0.1",
author = "Kurt Raschke",
author_email = "kurt@kurtraschke.com",
description = "Generate and parse RFC 3339 timestamps",
keywords = "rfc 3339 timestamp",
license = "MIT",
classifiers = [
"De... | from setuptools import setup, find_packages
setup(
name = "pyRFC3339",
version = "0.2",
author = "Kurt Raschke",
author_email = "kurt@kurtraschke.com",
description = "Generate and parse RFC 3339 timestamps",
keywords = "rfc 3339 timestamp",
license = "MIT",
classifiers = [
"De... | <commit_before>from setuptools import setup, find_packages
setup(
name = "pyRFC3339",
version = "0.1",
author = "Kurt Raschke",
author_email = "kurt@kurtraschke.com",
description = "Generate and parse RFC 3339 timestamps",
keywords = "rfc 3339 timestamp",
license = "MIT",
classifiers ... | from setuptools import setup, find_packages
setup(
name = "pyRFC3339",
version = "0.2",
author = "Kurt Raschke",
author_email = "kurt@kurtraschke.com",
description = "Generate and parse RFC 3339 timestamps",
keywords = "rfc 3339 timestamp",
license = "MIT",
classifiers = [
"De... | from setuptools import setup, find_packages
setup(
name = "pyRFC3339",
version = "0.1",
author = "Kurt Raschke",
author_email = "kurt@kurtraschke.com",
description = "Generate and parse RFC 3339 timestamps",
keywords = "rfc 3339 timestamp",
license = "MIT",
classifiers = [
"De... | <commit_before>from setuptools import setup, find_packages
setup(
name = "pyRFC3339",
version = "0.1",
author = "Kurt Raschke",
author_email = "kurt@kurtraschke.com",
description = "Generate and parse RFC 3339 timestamps",
keywords = "rfc 3339 timestamp",
license = "MIT",
classifiers ... |
36605a7906ac3cd7d9d8fee1f1dc92ca272e16f3 | setup.py | setup.py | from setuptools import setup, find_packages
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'DESCRIPTION.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='octohat',
version='0.1.32',
description='Non-code contribu... | from setuptools import setup, find_packages
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'DESCRIPTION.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='octohat',
version='0.0.1',
description='Non-code contribut... | Revert to pypi production version tracking | Revert to pypi production version tracking
| Python | bsd-3-clause | glasnt/octohat,LABHR/octohatrack | from setuptools import setup, find_packages
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'DESCRIPTION.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='octohat',
version='0.1.32',
description='Non-code contribu... | from setuptools import setup, find_packages
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'DESCRIPTION.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='octohat',
version='0.0.1',
description='Non-code contribut... | <commit_before>from setuptools import setup, find_packages
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'DESCRIPTION.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='octohat',
version='0.1.32',
description='No... | from setuptools import setup, find_packages
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'DESCRIPTION.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='octohat',
version='0.0.1',
description='Non-code contribut... | from setuptools import setup, find_packages
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'DESCRIPTION.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='octohat',
version='0.1.32',
description='Non-code contribu... | <commit_before>from setuptools import setup, find_packages
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'DESCRIPTION.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='octohat',
version='0.1.32',
description='No... |
60ecda35d0a529842b30315594a605e296b119df | setup.py | setup.py | import os
from setuptools import setup
setup(
name = "augur",
version = "0.1.0",
author = "nextstrain developers",
author_email = "trevor@bedford.io, richard.neher@unibas.ch",
description = ("Pipelines for real-time phylogenetic analysis"),
license = "MIT",
keywo... | import os
from setuptools import setup
setup(
name = "augur",
version = "0.1.0",
author = "nextstrain developers",
author_email = "trevor@bedford.io, richard.neher@unibas.ch",
description = ("Pipelines for real-time phylogenetic analysis"),
license = "MIT",
keywo... | Bump modular augur's TreeTime version requirement to match remote | Bump modular augur's TreeTime version requirement to match remote
Now distinguished from the Python 2 version of TreeTime.
| Python | agpl-3.0 | blab/nextstrain-augur,nextstrain/augur,nextstrain/augur,nextstrain/augur | import os
from setuptools import setup
setup(
name = "augur",
version = "0.1.0",
author = "nextstrain developers",
author_email = "trevor@bedford.io, richard.neher@unibas.ch",
description = ("Pipelines for real-time phylogenetic analysis"),
license = "MIT",
keywo... | import os
from setuptools import setup
setup(
name = "augur",
version = "0.1.0",
author = "nextstrain developers",
author_email = "trevor@bedford.io, richard.neher@unibas.ch",
description = ("Pipelines for real-time phylogenetic analysis"),
license = "MIT",
keywo... | <commit_before>import os
from setuptools import setup
setup(
name = "augur",
version = "0.1.0",
author = "nextstrain developers",
author_email = "trevor@bedford.io, richard.neher@unibas.ch",
description = ("Pipelines for real-time phylogenetic analysis"),
license = "MIT"... | import os
from setuptools import setup
setup(
name = "augur",
version = "0.1.0",
author = "nextstrain developers",
author_email = "trevor@bedford.io, richard.neher@unibas.ch",
description = ("Pipelines for real-time phylogenetic analysis"),
license = "MIT",
keywo... | import os
from setuptools import setup
setup(
name = "augur",
version = "0.1.0",
author = "nextstrain developers",
author_email = "trevor@bedford.io, richard.neher@unibas.ch",
description = ("Pipelines for real-time phylogenetic analysis"),
license = "MIT",
keywo... | <commit_before>import os
from setuptools import setup
setup(
name = "augur",
version = "0.1.0",
author = "nextstrain developers",
author_email = "trevor@bedford.io, richard.neher@unibas.ch",
description = ("Pipelines for real-time phylogenetic analysis"),
license = "MIT"... |
fa6c5d438730ce27ee4e6410b7f106cb4c90d27b | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
setup(name='django_emarsys',
version='0.34',
description='Django glue for Emarsys events',
license="MIT",
author='Markus Bertheau',
author_email='mbertheau@gmail.com',
long_description=open('README.md').read(),
packages=['dja... | #!/usr/bin/env python
from setuptools import setup
setup(name='django_emarsys',
version='0.34',
description='Django glue for Emarsys events',
license="MIT",
author='Markus Bertheau',
author_email='mbertheau@gmail.com',
long_description=open('README.md').read(),
packages=['dja... | Update install_requires to support future django versions | Update install_requires to support future django versions
| Python | mit | machtfit/django-emarsys,machtfit/django-emarsys | #!/usr/bin/env python
from setuptools import setup
setup(name='django_emarsys',
version='0.34',
description='Django glue for Emarsys events',
license="MIT",
author='Markus Bertheau',
author_email='mbertheau@gmail.com',
long_description=open('README.md').read(),
packages=['dja... | #!/usr/bin/env python
from setuptools import setup
setup(name='django_emarsys',
version='0.34',
description='Django glue for Emarsys events',
license="MIT",
author='Markus Bertheau',
author_email='mbertheau@gmail.com',
long_description=open('README.md').read(),
packages=['dja... | <commit_before>#!/usr/bin/env python
from setuptools import setup
setup(name='django_emarsys',
version='0.34',
description='Django glue for Emarsys events',
license="MIT",
author='Markus Bertheau',
author_email='mbertheau@gmail.com',
long_description=open('README.md').read(),
... | #!/usr/bin/env python
from setuptools import setup
setup(name='django_emarsys',
version='0.34',
description='Django glue for Emarsys events',
license="MIT",
author='Markus Bertheau',
author_email='mbertheau@gmail.com',
long_description=open('README.md').read(),
packages=['dja... | #!/usr/bin/env python
from setuptools import setup
setup(name='django_emarsys',
version='0.34',
description='Django glue for Emarsys events',
license="MIT",
author='Markus Bertheau',
author_email='mbertheau@gmail.com',
long_description=open('README.md').read(),
packages=['dja... | <commit_before>#!/usr/bin/env python
from setuptools import setup
setup(name='django_emarsys',
version='0.34',
description='Django glue for Emarsys events',
license="MIT",
author='Markus Bertheau',
author_email='mbertheau@gmail.com',
long_description=open('README.md').read(),
... |
9e89eb44bb1878c98d3dc82e97ccbef2011adc87 | formapi/__init__.py | formapi/__init__.py | VERSION = (0, 1, 0, 'dev')
# Dynamically calculate the version based on VERSION tuple
if len(VERSION) > 2 and VERSION[2] is not None:
if isinstance(VERSION[2], int):
str_version = "%s.%s.%s" % VERSION[:3]
else:
str_version = "%s.%s_%s" % VERSION[:3]
else:
str_version = "%s.%s" % VERSION[:2]... | VERSION = (0, 1, 0, 'final')
# Dynamically calculate the version based on VERSION tuple
if len(VERSION) > 2 and VERSION[2] is not None:
if isinstance(VERSION[2], int):
str_version = "%s.%s.%s" % VERSION[:3]
else:
str_version = "%s.%s_%s" % VERSION[:3]
else:
str_version = "%s.%s" % VERSION[:... | Mark version 0.1.0 as final | Mark version 0.1.0 as final | Python | mit | andreif/django-formapi,5monkeys/django-formapi,andreif/django-formapi,5monkeys/django-formapi | VERSION = (0, 1, 0, 'dev')
# Dynamically calculate the version based on VERSION tuple
if len(VERSION) > 2 and VERSION[2] is not None:
if isinstance(VERSION[2], int):
str_version = "%s.%s.%s" % VERSION[:3]
else:
str_version = "%s.%s_%s" % VERSION[:3]
else:
str_version = "%s.%s" % VERSION[:2]... | VERSION = (0, 1, 0, 'final')
# Dynamically calculate the version based on VERSION tuple
if len(VERSION) > 2 and VERSION[2] is not None:
if isinstance(VERSION[2], int):
str_version = "%s.%s.%s" % VERSION[:3]
else:
str_version = "%s.%s_%s" % VERSION[:3]
else:
str_version = "%s.%s" % VERSION[:... | <commit_before>VERSION = (0, 1, 0, 'dev')
# Dynamically calculate the version based on VERSION tuple
if len(VERSION) > 2 and VERSION[2] is not None:
if isinstance(VERSION[2], int):
str_version = "%s.%s.%s" % VERSION[:3]
else:
str_version = "%s.%s_%s" % VERSION[:3]
else:
str_version = "%s.%s... | VERSION = (0, 1, 0, 'final')
# Dynamically calculate the version based on VERSION tuple
if len(VERSION) > 2 and VERSION[2] is not None:
if isinstance(VERSION[2], int):
str_version = "%s.%s.%s" % VERSION[:3]
else:
str_version = "%s.%s_%s" % VERSION[:3]
else:
str_version = "%s.%s" % VERSION[:... | VERSION = (0, 1, 0, 'dev')
# Dynamically calculate the version based on VERSION tuple
if len(VERSION) > 2 and VERSION[2] is not None:
if isinstance(VERSION[2], int):
str_version = "%s.%s.%s" % VERSION[:3]
else:
str_version = "%s.%s_%s" % VERSION[:3]
else:
str_version = "%s.%s" % VERSION[:2]... | <commit_before>VERSION = (0, 1, 0, 'dev')
# Dynamically calculate the version based on VERSION tuple
if len(VERSION) > 2 and VERSION[2] is not None:
if isinstance(VERSION[2], int):
str_version = "%s.%s.%s" % VERSION[:3]
else:
str_version = "%s.%s_%s" % VERSION[:3]
else:
str_version = "%s.%s... |
ef2c1115fdebfacea76d19b3fac6bbde7f0cbbf2 | gitlab_tests/test_v91/test_tags.py | gitlab_tests/test_v91/test_tags.py | import responses
from gitlab.exceptions import HttpError
from gitlab_tests.base import BaseTest
from response_data.tags import *
class TestDeleteRepositoryTag(BaseTest):
@responses.activate
def test_delete_repository_tag(self):
responses.add(
responses.DELETE,
self.gitlab.api_... | import responses
from requests.exceptions import HTTPError
from gitlab_tests.base import BaseTest
from response_data.tags import *
class TestDeleteRepositoryTag(BaseTest):
@responses.activate
def test_delete_repository_tag(self):
responses.add(
responses.DELETE,
self.gitlab.ap... | Update Tags cases for new behaviour | tests: Update Tags cases for new behaviour
See also: #193
| Python | apache-2.0 | pyapi-gitlab/pyapi-gitlab,Itxaka/pyapi-gitlab,Itxaka/pyapi-gitlab,pyapi-gitlab/pyapi-gitlab | import responses
from gitlab.exceptions import HttpError
from gitlab_tests.base import BaseTest
from response_data.tags import *
class TestDeleteRepositoryTag(BaseTest):
@responses.activate
def test_delete_repository_tag(self):
responses.add(
responses.DELETE,
self.gitlab.api_... | import responses
from requests.exceptions import HTTPError
from gitlab_tests.base import BaseTest
from response_data.tags import *
class TestDeleteRepositoryTag(BaseTest):
@responses.activate
def test_delete_repository_tag(self):
responses.add(
responses.DELETE,
self.gitlab.ap... | <commit_before>import responses
from gitlab.exceptions import HttpError
from gitlab_tests.base import BaseTest
from response_data.tags import *
class TestDeleteRepositoryTag(BaseTest):
@responses.activate
def test_delete_repository_tag(self):
responses.add(
responses.DELETE,
s... | import responses
from requests.exceptions import HTTPError
from gitlab_tests.base import BaseTest
from response_data.tags import *
class TestDeleteRepositoryTag(BaseTest):
@responses.activate
def test_delete_repository_tag(self):
responses.add(
responses.DELETE,
self.gitlab.ap... | import responses
from gitlab.exceptions import HttpError
from gitlab_tests.base import BaseTest
from response_data.tags import *
class TestDeleteRepositoryTag(BaseTest):
@responses.activate
def test_delete_repository_tag(self):
responses.add(
responses.DELETE,
self.gitlab.api_... | <commit_before>import responses
from gitlab.exceptions import HttpError
from gitlab_tests.base import BaseTest
from response_data.tags import *
class TestDeleteRepositoryTag(BaseTest):
@responses.activate
def test_delete_repository_tag(self):
responses.add(
responses.DELETE,
s... |
c39260e64c8820bad9243c35f10b352419425810 | marble/tests/test_exposure.py | marble/tests/test_exposure.py | """ Tests for the exposure computation """
from nose.tools import *
import marble as mb
# Test maximum value of exposure
# Test maximum value of isolation
# Test minimum of exposure
# Test minimum of isolation
| """ Tests for the exposure computation """
from __future__ import division
from nose.tools import *
import itertools
import marble as mb
#
# Synthetic data for tests
#
def segregated_city():
""" perfect segregation """
city = {"A":{1:7, 2:0, 3:0},
"B":{1:0, 2:0, 3:14},
"C":{1:0, 2:42,... | Write tests for the exposure | Write tests for the exposure
| Python | bsd-3-clause | walkerke/marble,scities/marble | """ Tests for the exposure computation """
from nose.tools import *
import marble as mb
# Test maximum value of exposure
# Test maximum value of isolation
# Test minimum of exposure
# Test minimum of isolation
Write tests for the exposure | """ Tests for the exposure computation """
from __future__ import division
from nose.tools import *
import itertools
import marble as mb
#
# Synthetic data for tests
#
def segregated_city():
""" perfect segregation """
city = {"A":{1:7, 2:0, 3:0},
"B":{1:0, 2:0, 3:14},
"C":{1:0, 2:42,... | <commit_before>""" Tests for the exposure computation """
from nose.tools import *
import marble as mb
# Test maximum value of exposure
# Test maximum value of isolation
# Test minimum of exposure
# Test minimum of isolation
<commit_msg>Write tests for the exposure<commit_after> | """ Tests for the exposure computation """
from __future__ import division
from nose.tools import *
import itertools
import marble as mb
#
# Synthetic data for tests
#
def segregated_city():
""" perfect segregation """
city = {"A":{1:7, 2:0, 3:0},
"B":{1:0, 2:0, 3:14},
"C":{1:0, 2:42,... | """ Tests for the exposure computation """
from nose.tools import *
import marble as mb
# Test maximum value of exposure
# Test maximum value of isolation
# Test minimum of exposure
# Test minimum of isolation
Write tests for the exposure""" Tests for the exposure computation """
from __future__ import division
from ... | <commit_before>""" Tests for the exposure computation """
from nose.tools import *
import marble as mb
# Test maximum value of exposure
# Test maximum value of isolation
# Test minimum of exposure
# Test minimum of isolation
<commit_msg>Write tests for the exposure<commit_after>""" Tests for the exposure computation ... |
4d7aea55408e96946a2a12fc75fb00fe62d9cfec | conftest.py | conftest.py | import tempfile
import pytest
import photomosaic as pm
@pytest.fixture(scope='module')
def pool():
pool_dir = tempfile.mkdtemp()
pm.generate_tile_pool(pool_dir)
pool = pm.make_pool(pool_dir)
| import tempfile
import shutil
import pytest
import photomosaic as pm
@pytest.fixture(scope='module')
def pool():
tempdirname = tempfile.mkdtemp()
pm.generate_tile_pool(tempdirname)
pool = pm.make_pool(tempdirname)
shutil.rmtree(tempdirname)
| Clean up temp pool dir after tests. | TST: Clean up temp pool dir after tests.
| Python | bsd-3-clause | danielballan/photomosaic | import tempfile
import pytest
import photomosaic as pm
@pytest.fixture(scope='module')
def pool():
pool_dir = tempfile.mkdtemp()
pm.generate_tile_pool(pool_dir)
pool = pm.make_pool(pool_dir)
TST: Clean up temp pool dir after tests. | import tempfile
import shutil
import pytest
import photomosaic as pm
@pytest.fixture(scope='module')
def pool():
tempdirname = tempfile.mkdtemp()
pm.generate_tile_pool(tempdirname)
pool = pm.make_pool(tempdirname)
shutil.rmtree(tempdirname)
| <commit_before>import tempfile
import pytest
import photomosaic as pm
@pytest.fixture(scope='module')
def pool():
pool_dir = tempfile.mkdtemp()
pm.generate_tile_pool(pool_dir)
pool = pm.make_pool(pool_dir)
<commit_msg>TST: Clean up temp pool dir after tests.<commit_after> | import tempfile
import shutil
import pytest
import photomosaic as pm
@pytest.fixture(scope='module')
def pool():
tempdirname = tempfile.mkdtemp()
pm.generate_tile_pool(tempdirname)
pool = pm.make_pool(tempdirname)
shutil.rmtree(tempdirname)
| import tempfile
import pytest
import photomosaic as pm
@pytest.fixture(scope='module')
def pool():
pool_dir = tempfile.mkdtemp()
pm.generate_tile_pool(pool_dir)
pool = pm.make_pool(pool_dir)
TST: Clean up temp pool dir after tests.import tempfile
import shutil
import pytest
import photomosaic as pm
@pyt... | <commit_before>import tempfile
import pytest
import photomosaic as pm
@pytest.fixture(scope='module')
def pool():
pool_dir = tempfile.mkdtemp()
pm.generate_tile_pool(pool_dir)
pool = pm.make_pool(pool_dir)
<commit_msg>TST: Clean up temp pool dir after tests.<commit_after>import tempfile
import shutil
impo... |
0b63ff4339d9dec1e50c6275b5e8566abb59fdfe | src/core/dev_settings.py | src/core/dev_settings.py | # SECURITY WARNING: keep the secret key used in production secret!
# You should change this key before you go live!
DEBUG = True
SECRET_KEY = 'uxprsdhk^gzd-r=_287byolxn)$k6tsd8_cepl^s^tms2w1qrv'
# This is the default redirect if no other sites are found.
DEFAULT_HOST = 'https://www.example.org'
EMAIL_BACKEND = 'django... | # SECURITY WARNING: keep the secret key used in production secret!
# You should change this key before you go live!
DEBUG = True
SECRET_KEY = 'uxprsdhk^gzd-r=_287byolxn)$k6tsd8_cepl^s^tms2w1qrv'
# This is the default redirect if no other sites are found.
DEFAULT_HOST = 'https://www.example.org'
EMAIL_BACKEND = 'django... | Set dev email backend back to consol | Set dev email backend back to consol
| Python | agpl-3.0 | BirkbeckCTP/janeway,BirkbeckCTP/janeway,BirkbeckCTP/janeway,BirkbeckCTP/janeway | # SECURITY WARNING: keep the secret key used in production secret!
# You should change this key before you go live!
DEBUG = True
SECRET_KEY = 'uxprsdhk^gzd-r=_287byolxn)$k6tsd8_cepl^s^tms2w1qrv'
# This is the default redirect if no other sites are found.
DEFAULT_HOST = 'https://www.example.org'
EMAIL_BACKEND = 'django... | # SECURITY WARNING: keep the secret key used in production secret!
# You should change this key before you go live!
DEBUG = True
SECRET_KEY = 'uxprsdhk^gzd-r=_287byolxn)$k6tsd8_cepl^s^tms2w1qrv'
# This is the default redirect if no other sites are found.
DEFAULT_HOST = 'https://www.example.org'
EMAIL_BACKEND = 'django... | <commit_before># SECURITY WARNING: keep the secret key used in production secret!
# You should change this key before you go live!
DEBUG = True
SECRET_KEY = 'uxprsdhk^gzd-r=_287byolxn)$k6tsd8_cepl^s^tms2w1qrv'
# This is the default redirect if no other sites are found.
DEFAULT_HOST = 'https://www.example.org'
EMAIL_BA... | # SECURITY WARNING: keep the secret key used in production secret!
# You should change this key before you go live!
DEBUG = True
SECRET_KEY = 'uxprsdhk^gzd-r=_287byolxn)$k6tsd8_cepl^s^tms2w1qrv'
# This is the default redirect if no other sites are found.
DEFAULT_HOST = 'https://www.example.org'
EMAIL_BACKEND = 'django... | # SECURITY WARNING: keep the secret key used in production secret!
# You should change this key before you go live!
DEBUG = True
SECRET_KEY = 'uxprsdhk^gzd-r=_287byolxn)$k6tsd8_cepl^s^tms2w1qrv'
# This is the default redirect if no other sites are found.
DEFAULT_HOST = 'https://www.example.org'
EMAIL_BACKEND = 'django... | <commit_before># SECURITY WARNING: keep the secret key used in production secret!
# You should change this key before you go live!
DEBUG = True
SECRET_KEY = 'uxprsdhk^gzd-r=_287byolxn)$k6tsd8_cepl^s^tms2w1qrv'
# This is the default redirect if no other sites are found.
DEFAULT_HOST = 'https://www.example.org'
EMAIL_BA... |
d9b43099c114f2398e82bd2631555c2807610a06 | homebrew/printer.py | homebrew/printer.py | UNDERLINE_SYMBOL = "-"
def print_title(logline):
print(logline)
print(len(logline) * UNDERLINE_SYMBOL)
def print_blank_line():
print("")
def print_overview(
installed,
packages_not_needed_by_other,
packages_needed_by_other,
package_dependencies,
):
print_title("Installed packages:"... | UNDERLINE_SYMBOL = "-"
def print_title(logline):
print(logline)
print(len(logline) * UNDERLINE_SYMBOL)
def print_blank_line():
print("")
def print_overview(
installed,
packages_not_needed_by_other,
packages_needed_by_other,
package_dependencies):
print_title("Instal... | Use and extra level of indentation for funcion arguments | Use and extra level of indentation for funcion arguments
See: https://www.python.org/dev/peps/pep-0008/#indentation
| Python | isc | igroen/homebrew | UNDERLINE_SYMBOL = "-"
def print_title(logline):
print(logline)
print(len(logline) * UNDERLINE_SYMBOL)
def print_blank_line():
print("")
def print_overview(
installed,
packages_not_needed_by_other,
packages_needed_by_other,
package_dependencies,
):
print_title("Installed packages:"... | UNDERLINE_SYMBOL = "-"
def print_title(logline):
print(logline)
print(len(logline) * UNDERLINE_SYMBOL)
def print_blank_line():
print("")
def print_overview(
installed,
packages_not_needed_by_other,
packages_needed_by_other,
package_dependencies):
print_title("Instal... | <commit_before>UNDERLINE_SYMBOL = "-"
def print_title(logline):
print(logline)
print(len(logline) * UNDERLINE_SYMBOL)
def print_blank_line():
print("")
def print_overview(
installed,
packages_not_needed_by_other,
packages_needed_by_other,
package_dependencies,
):
print_title("Insta... | UNDERLINE_SYMBOL = "-"
def print_title(logline):
print(logline)
print(len(logline) * UNDERLINE_SYMBOL)
def print_blank_line():
print("")
def print_overview(
installed,
packages_not_needed_by_other,
packages_needed_by_other,
package_dependencies):
print_title("Instal... | UNDERLINE_SYMBOL = "-"
def print_title(logline):
print(logline)
print(len(logline) * UNDERLINE_SYMBOL)
def print_blank_line():
print("")
def print_overview(
installed,
packages_not_needed_by_other,
packages_needed_by_other,
package_dependencies,
):
print_title("Installed packages:"... | <commit_before>UNDERLINE_SYMBOL = "-"
def print_title(logline):
print(logline)
print(len(logline) * UNDERLINE_SYMBOL)
def print_blank_line():
print("")
def print_overview(
installed,
packages_not_needed_by_other,
packages_needed_by_other,
package_dependencies,
):
print_title("Insta... |
38a6b7b4e190905ef935eec29fae761130dbef35 | employees/admin.py | employees/admin.py | from django.contrib import admin
from .models import Employee, Role
class RoleAdmin(admin.ModelAdmin):
list_display = ("name",)
class EmployeeAdmin(admin.ModelAdmin):
list_display = ("username", "email",)
fieldsets = (
(None, {'fields': ('username', 'email', 'password')}),
('Personal info'... | from django.contrib import admin
from .models import Employee, Role
class RoleAdmin(admin.ModelAdmin):
list_display = ("name",)
class EmployeeAdmin(admin.ModelAdmin):
list_display = ("username", "first_name", "last_name", "email",)
fieldsets = (
(None, {'fields': ('username', 'email', 'password')}... | Add first name and last name to Admin employee list | Add first name and last name to Admin employee list
| Python | mit | neosergio/allstars | from django.contrib import admin
from .models import Employee, Role
class RoleAdmin(admin.ModelAdmin):
list_display = ("name",)
class EmployeeAdmin(admin.ModelAdmin):
list_display = ("username", "email",)
fieldsets = (
(None, {'fields': ('username', 'email', 'password')}),
('Personal info'... | from django.contrib import admin
from .models import Employee, Role
class RoleAdmin(admin.ModelAdmin):
list_display = ("name",)
class EmployeeAdmin(admin.ModelAdmin):
list_display = ("username", "first_name", "last_name", "email",)
fieldsets = (
(None, {'fields': ('username', 'email', 'password')}... | <commit_before>from django.contrib import admin
from .models import Employee, Role
class RoleAdmin(admin.ModelAdmin):
list_display = ("name",)
class EmployeeAdmin(admin.ModelAdmin):
list_display = ("username", "email",)
fieldsets = (
(None, {'fields': ('username', 'email', 'password')}),
(... | from django.contrib import admin
from .models import Employee, Role
class RoleAdmin(admin.ModelAdmin):
list_display = ("name",)
class EmployeeAdmin(admin.ModelAdmin):
list_display = ("username", "first_name", "last_name", "email",)
fieldsets = (
(None, {'fields': ('username', 'email', 'password')}... | from django.contrib import admin
from .models import Employee, Role
class RoleAdmin(admin.ModelAdmin):
list_display = ("name",)
class EmployeeAdmin(admin.ModelAdmin):
list_display = ("username", "email",)
fieldsets = (
(None, {'fields': ('username', 'email', 'password')}),
('Personal info'... | <commit_before>from django.contrib import admin
from .models import Employee, Role
class RoleAdmin(admin.ModelAdmin):
list_display = ("name",)
class EmployeeAdmin(admin.ModelAdmin):
list_display = ("username", "email",)
fieldsets = (
(None, {'fields': ('username', 'email', 'password')}),
(... |
d66b9ecd1a28042ab6511c99b4cba38480b1b96e | fpsd/test/test_sketchy_sites.py | fpsd/test/test_sketchy_sites.py | #!/usr/bin/env python3.5
# This test crawls some sets that have triggered http.client.RemoteDisconnected
# exceptions
import unittest
from crawler import Crawler
class CrawlBadSitesTest(unittest.TestCase):
bad_sites = ["http://jlve2diknf45qwjv.onion/",
"http://money2mxtcfcauot.onion",
... | #!/usr/bin/env python3.5
# This test crawls some sets that have triggered http.client.RemoteDisconnected
# exceptions
import unittest
from crawler import Crawler
class CrawlBadSitesTest(unittest.TestCase):
bad_sites = ["http://jlve2diknf45qwjv.onion/",
"http://money2mxtcfcauot.onion",
... | Add more sites that cause unusual errors | Add more sites that cause unusual errors
| Python | agpl-3.0 | freedomofpress/fingerprint-securedrop,freedomofpress/FingerprintSecureDrop,freedomofpress/FingerprintSecureDrop,freedomofpress/fingerprint-securedrop,freedomofpress/fingerprint-securedrop | #!/usr/bin/env python3.5
# This test crawls some sets that have triggered http.client.RemoteDisconnected
# exceptions
import unittest
from crawler import Crawler
class CrawlBadSitesTest(unittest.TestCase):
bad_sites = ["http://jlve2diknf45qwjv.onion/",
"http://money2mxtcfcauot.onion",
... | #!/usr/bin/env python3.5
# This test crawls some sets that have triggered http.client.RemoteDisconnected
# exceptions
import unittest
from crawler import Crawler
class CrawlBadSitesTest(unittest.TestCase):
bad_sites = ["http://jlve2diknf45qwjv.onion/",
"http://money2mxtcfcauot.onion",
... | <commit_before>#!/usr/bin/env python3.5
# This test crawls some sets that have triggered http.client.RemoteDisconnected
# exceptions
import unittest
from crawler import Crawler
class CrawlBadSitesTest(unittest.TestCase):
bad_sites = ["http://jlve2diknf45qwjv.onion/",
"http://money2mxtcfcauot.on... | #!/usr/bin/env python3.5
# This test crawls some sets that have triggered http.client.RemoteDisconnected
# exceptions
import unittest
from crawler import Crawler
class CrawlBadSitesTest(unittest.TestCase):
bad_sites = ["http://jlve2diknf45qwjv.onion/",
"http://money2mxtcfcauot.onion",
... | #!/usr/bin/env python3.5
# This test crawls some sets that have triggered http.client.RemoteDisconnected
# exceptions
import unittest
from crawler import Crawler
class CrawlBadSitesTest(unittest.TestCase):
bad_sites = ["http://jlve2diknf45qwjv.onion/",
"http://money2mxtcfcauot.onion",
... | <commit_before>#!/usr/bin/env python3.5
# This test crawls some sets that have triggered http.client.RemoteDisconnected
# exceptions
import unittest
from crawler import Crawler
class CrawlBadSitesTest(unittest.TestCase):
bad_sites = ["http://jlve2diknf45qwjv.onion/",
"http://money2mxtcfcauot.on... |
790b8850599a80cbb7dda0bcadb34cdb41dd5423 | st2client/st2client/__init__.py | st2client/st2client/__init__.py | # Licensed to the StackStorm, Inc ('StackStorm') under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use th... | # Licensed to the StackStorm, Inc ('StackStorm') under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use th... | Update st2client version to 0.13dev | Update st2client version to 0.13dev
| Python | apache-2.0 | tonybaloney/st2,peak6/st2,peak6/st2,Itxaka/st2,Plexxi/st2,nzlosh/st2,nzlosh/st2,StackStorm/st2,StackStorm/st2,Itxaka/st2,Plexxi/st2,Itxaka/st2,tonybaloney/st2,pixelrebel/st2,armab/st2,dennybaa/st2,Plexxi/st2,armab/st2,pixelrebel/st2,alfasin/st2,nzlosh/st2,punalpatel/st2,emedvedev/st2,punalpatel/st2,pixelrebel/st2,emedv... | # Licensed to the StackStorm, Inc ('StackStorm') under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use th... | # Licensed to the StackStorm, Inc ('StackStorm') under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use th... | <commit_before># Licensed to the StackStorm, Inc ('StackStorm') under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you... | # Licensed to the StackStorm, Inc ('StackStorm') under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use th... | # Licensed to the StackStorm, Inc ('StackStorm') under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use th... | <commit_before># Licensed to the StackStorm, Inc ('StackStorm') under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you... |
efb82776d08e8f8003d8038a4fcac52094bd8f86 | readthedocs/core/management/commands/symlink.py | readthedocs/core/management/commands/symlink.py | import logging
from django.core.management.base import BaseCommand
from django.conf import settings
from projects import tasks
from tastyapi import apiv2 as api
import redis
log = logging.getLogger(__name__)
def symlink(slug):
version_data = api.version().get(project=slug, slug='latest')['results'][0]
v = ... | import logging
from django.core.management.base import BaseCommand
from django.conf import settings
from projects import tasks
from tastyapi import apiv2 as api
import redis
log = logging.getLogger(__name__)
def symlink(slug):
version_data = api.version().get(project=slug, slug='latest')['results'][0]
v = ... | Handle exceptions and use proper slug | Handle exceptions and use proper slug
| Python | mit | clarkperkins/readthedocs.org,rtfd/readthedocs.org,SteveViss/readthedocs.org,mrshoki/readthedocs.org,CedarLogic/readthedocs.org,sid-kap/readthedocs.org,sid-kap/readthedocs.org,hach-que/readthedocs.org,kenshinthebattosai/readthedocs.org,nikolas/readthedocs.org,GovReady/readthedocs.org,davidfischer/readthedocs.org,nyergle... | import logging
from django.core.management.base import BaseCommand
from django.conf import settings
from projects import tasks
from tastyapi import apiv2 as api
import redis
log = logging.getLogger(__name__)
def symlink(slug):
version_data = api.version().get(project=slug, slug='latest')['results'][0]
v = ... | import logging
from django.core.management.base import BaseCommand
from django.conf import settings
from projects import tasks
from tastyapi import apiv2 as api
import redis
log = logging.getLogger(__name__)
def symlink(slug):
version_data = api.version().get(project=slug, slug='latest')['results'][0]
v = ... | <commit_before>import logging
from django.core.management.base import BaseCommand
from django.conf import settings
from projects import tasks
from tastyapi import apiv2 as api
import redis
log = logging.getLogger(__name__)
def symlink(slug):
version_data = api.version().get(project=slug, slug='latest')['result... | import logging
from django.core.management.base import BaseCommand
from django.conf import settings
from projects import tasks
from tastyapi import apiv2 as api
import redis
log = logging.getLogger(__name__)
def symlink(slug):
version_data = api.version().get(project=slug, slug='latest')['results'][0]
v = ... | import logging
from django.core.management.base import BaseCommand
from django.conf import settings
from projects import tasks
from tastyapi import apiv2 as api
import redis
log = logging.getLogger(__name__)
def symlink(slug):
version_data = api.version().get(project=slug, slug='latest')['results'][0]
v = ... | <commit_before>import logging
from django.core.management.base import BaseCommand
from django.conf import settings
from projects import tasks
from tastyapi import apiv2 as api
import redis
log = logging.getLogger(__name__)
def symlink(slug):
version_data = api.version().get(project=slug, slug='latest')['result... |
446680c789ad970316209eeecc947d8e5afddeb7 | jenny/__init__.py | jenny/__init__.py | # coding=utf8
"""
Copyright 2015 jenny
"""
import pandoc
import subprocess
def compile(content, input_format, output_format, *args):
subprocess_arguments = ['pandoc',
'--from=%s' % input_format,
'--to=%s' % output_format]
subprocess_arguments.extend(a... | # coding=utf8
"""
Copyright 2015 jenny
"""
import six
import pandoc
import subprocess
def compile(content, input_format, output_format, *args):
if six.PY2 and isinstance(content, unicode):
content = content.encode("utf8")
subprocess_arguments = ['pandoc',
'--from=%s' % i... | Fix a bug on encoding. | Fix a bug on encoding.
| Python | mit | docloud/jenny | # coding=utf8
"""
Copyright 2015 jenny
"""
import pandoc
import subprocess
def compile(content, input_format, output_format, *args):
subprocess_arguments = ['pandoc',
'--from=%s' % input_format,
'--to=%s' % output_format]
subprocess_arguments.extend(a... | # coding=utf8
"""
Copyright 2015 jenny
"""
import six
import pandoc
import subprocess
def compile(content, input_format, output_format, *args):
if six.PY2 and isinstance(content, unicode):
content = content.encode("utf8")
subprocess_arguments = ['pandoc',
'--from=%s' % i... | <commit_before># coding=utf8
"""
Copyright 2015 jenny
"""
import pandoc
import subprocess
def compile(content, input_format, output_format, *args):
subprocess_arguments = ['pandoc',
'--from=%s' % input_format,
'--to=%s' % output_format]
subprocess_arg... | # coding=utf8
"""
Copyright 2015 jenny
"""
import six
import pandoc
import subprocess
def compile(content, input_format, output_format, *args):
if six.PY2 and isinstance(content, unicode):
content = content.encode("utf8")
subprocess_arguments = ['pandoc',
'--from=%s' % i... | # coding=utf8
"""
Copyright 2015 jenny
"""
import pandoc
import subprocess
def compile(content, input_format, output_format, *args):
subprocess_arguments = ['pandoc',
'--from=%s' % input_format,
'--to=%s' % output_format]
subprocess_arguments.extend(a... | <commit_before># coding=utf8
"""
Copyright 2015 jenny
"""
import pandoc
import subprocess
def compile(content, input_format, output_format, *args):
subprocess_arguments = ['pandoc',
'--from=%s' % input_format,
'--to=%s' % output_format]
subprocess_arg... |
41d9f8494bd7003f92af94b8b45bc78c9ac96e05 | linter.py | linter.py | #
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Drew Brokke
# Copyright (c) 2015 Drew Brokke
#
# License: MIT
#
"""This module exports the CheckSourceFormatting plugin class."""
from SublimeLinter.lint import NodeLinter, util
class CheckSourceFormatting(NodeLin... | #
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Drew Brokke
# Copyright (c) 2015 Drew Brokke
#
# License: MIT
#
"""This module exports the CheckSourceFormatting plugin class."""
from SublimeLinter.lint import NodeLinter, util
class CheckSourceFormatting(NodeLin... | Include possible additional lines in output | Include possible additional lines in output
| Python | mit | drewbrokke/SublimeLinter-contrib-check-source-formatting | #
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Drew Brokke
# Copyright (c) 2015 Drew Brokke
#
# License: MIT
#
"""This module exports the CheckSourceFormatting plugin class."""
from SublimeLinter.lint import NodeLinter, util
class CheckSourceFormatting(NodeLin... | #
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Drew Brokke
# Copyright (c) 2015 Drew Brokke
#
# License: MIT
#
"""This module exports the CheckSourceFormatting plugin class."""
from SublimeLinter.lint import NodeLinter, util
class CheckSourceFormatting(NodeLin... | <commit_before>#
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Drew Brokke
# Copyright (c) 2015 Drew Brokke
#
# License: MIT
#
"""This module exports the CheckSourceFormatting plugin class."""
from SublimeLinter.lint import NodeLinter, util
class CheckSourceFor... | #
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Drew Brokke
# Copyright (c) 2015 Drew Brokke
#
# License: MIT
#
"""This module exports the CheckSourceFormatting plugin class."""
from SublimeLinter.lint import NodeLinter, util
class CheckSourceFormatting(NodeLin... | #
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Drew Brokke
# Copyright (c) 2015 Drew Brokke
#
# License: MIT
#
"""This module exports the CheckSourceFormatting plugin class."""
from SublimeLinter.lint import NodeLinter, util
class CheckSourceFormatting(NodeLin... | <commit_before>#
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Drew Brokke
# Copyright (c) 2015 Drew Brokke
#
# License: MIT
#
"""This module exports the CheckSourceFormatting plugin class."""
from SublimeLinter.lint import NodeLinter, util
class CheckSourceFor... |
24ca48098777d89835cf169ee2b4f06db50ec9f1 | koans/triangle.py | koans/triangle.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Triangle Project Code.
# Triangle analyzes the lengths of the sides of a triangle
# (represented by a, b and c) and returns the type of triangle.
#
# It returns:
# 'equilateral' if all sides are equal
# 'isosceles' if exactly 2 sides are equal
# 'scalene' ... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Triangle Project Code.
# Triangle analyzes the lengths of the sides of a triangle
# (represented by a, b and c) and returns the type of triangle.
#
# It returns:
# 'equilateral' if all sides are equal
# 'isosceles' if exactly 2 sides are equal
# 'scalene' ... | Simplify logic conditionals as tests still pass. | Simplify logic conditionals as tests still pass.
| Python | mit | javierjulio/python-koans-completed,javierjulio/python-koans-completed | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Triangle Project Code.
# Triangle analyzes the lengths of the sides of a triangle
# (represented by a, b and c) and returns the type of triangle.
#
# It returns:
# 'equilateral' if all sides are equal
# 'isosceles' if exactly 2 sides are equal
# 'scalene' ... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Triangle Project Code.
# Triangle analyzes the lengths of the sides of a triangle
# (represented by a, b and c) and returns the type of triangle.
#
# It returns:
# 'equilateral' if all sides are equal
# 'isosceles' if exactly 2 sides are equal
# 'scalene' ... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Triangle Project Code.
# Triangle analyzes the lengths of the sides of a triangle
# (represented by a, b and c) and returns the type of triangle.
#
# It returns:
# 'equilateral' if all sides are equal
# 'isosceles' if exactly 2 sides are equal
# ... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Triangle Project Code.
# Triangle analyzes the lengths of the sides of a triangle
# (represented by a, b and c) and returns the type of triangle.
#
# It returns:
# 'equilateral' if all sides are equal
# 'isosceles' if exactly 2 sides are equal
# 'scalene' ... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Triangle Project Code.
# Triangle analyzes the lengths of the sides of a triangle
# (represented by a, b and c) and returns the type of triangle.
#
# It returns:
# 'equilateral' if all sides are equal
# 'isosceles' if exactly 2 sides are equal
# 'scalene' ... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Triangle Project Code.
# Triangle analyzes the lengths of the sides of a triangle
# (represented by a, b and c) and returns the type of triangle.
#
# It returns:
# 'equilateral' if all sides are equal
# 'isosceles' if exactly 2 sides are equal
# ... |
35c4f76ff099ac79f70e8b977e2ffb5b51b6f120 | healthcheck/__init__.py | healthcheck/__init__.py | __doc__ = 'Health Checker for Yola Services'
__version__ = '0.0.3'
__url__ = 'https://github.com/yola/healthcheck'
from healthcheck import (HealthChecker, HealthCheck, ListHealthCheck,
DjangoDBsHealthCheck, FilesExistHealthCheck,
FilesDontExistHealthCheck)
| __doc__ = 'Health Checker for Yola Services'
__version__ = '0.0.3'
__url__ = 'https://github.com/yola/healthcheck'
from healthcheck import (HealthChecker, HealthCheck, ListHealthCheck,
DjangoDBsHealthCheck, FilesExistHealthCheck,
FilesDontExistHealthCheck)
| Remove blank line at end of file | Remove blank line at end of file
| Python | mit | yola/healthcheck | __doc__ = 'Health Checker for Yola Services'
__version__ = '0.0.3'
__url__ = 'https://github.com/yola/healthcheck'
from healthcheck import (HealthChecker, HealthCheck, ListHealthCheck,
DjangoDBsHealthCheck, FilesExistHealthCheck,
FilesDontExistHealthCheck)
Remove bla... | __doc__ = 'Health Checker for Yola Services'
__version__ = '0.0.3'
__url__ = 'https://github.com/yola/healthcheck'
from healthcheck import (HealthChecker, HealthCheck, ListHealthCheck,
DjangoDBsHealthCheck, FilesExistHealthCheck,
FilesDontExistHealthCheck)
| <commit_before>__doc__ = 'Health Checker for Yola Services'
__version__ = '0.0.3'
__url__ = 'https://github.com/yola/healthcheck'
from healthcheck import (HealthChecker, HealthCheck, ListHealthCheck,
DjangoDBsHealthCheck, FilesExistHealthCheck,
FilesDontExistHealthChe... | __doc__ = 'Health Checker for Yola Services'
__version__ = '0.0.3'
__url__ = 'https://github.com/yola/healthcheck'
from healthcheck import (HealthChecker, HealthCheck, ListHealthCheck,
DjangoDBsHealthCheck, FilesExistHealthCheck,
FilesDontExistHealthCheck)
| __doc__ = 'Health Checker for Yola Services'
__version__ = '0.0.3'
__url__ = 'https://github.com/yola/healthcheck'
from healthcheck import (HealthChecker, HealthCheck, ListHealthCheck,
DjangoDBsHealthCheck, FilesExistHealthCheck,
FilesDontExistHealthCheck)
Remove bla... | <commit_before>__doc__ = 'Health Checker for Yola Services'
__version__ = '0.0.3'
__url__ = 'https://github.com/yola/healthcheck'
from healthcheck import (HealthChecker, HealthCheck, ListHealthCheck,
DjangoDBsHealthCheck, FilesExistHealthCheck,
FilesDontExistHealthChe... |
ce279fa1000f3212c25c6fcbe04e8849abed9bb7 | pyp2rpmlib/package_data.py | pyp2rpmlib/package_data.py | class PackageData(object):
def __init__(self, local_file, name, version):
self.local_file = local_file
self.name = name
self.version = version
def __getattr__(self, name):
if name in self.__dict__:
return self.__dict__[name]
return 'TODO:'
@property
... | import subprocess
import time
class PackageData(object):
def __init__(self, local_file, name, version):
self.local_file = local_file
self.name = name
self.version = version
def __getattr__(self, name):
if name in self.__dict__:
return self.__dict__[name]
re... | Add functionality to construct changelog entries | Add functionality to construct changelog entries
| Python | mit | joequant/pyp2rpm,MichaelMraka/pyp2rpm,fedora-python/pyp2rpm,yuokada/pyp2rpm,pombredanne/pyp2rpm,henrysher/spec4pypi,mcyprian/pyp2rpm | class PackageData(object):
def __init__(self, local_file, name, version):
self.local_file = local_file
self.name = name
self.version = version
def __getattr__(self, name):
if name in self.__dict__:
return self.__dict__[name]
return 'TODO:'
@property
... | import subprocess
import time
class PackageData(object):
def __init__(self, local_file, name, version):
self.local_file = local_file
self.name = name
self.version = version
def __getattr__(self, name):
if name in self.__dict__:
return self.__dict__[name]
re... | <commit_before>class PackageData(object):
def __init__(self, local_file, name, version):
self.local_file = local_file
self.name = name
self.version = version
def __getattr__(self, name):
if name in self.__dict__:
return self.__dict__[name]
return 'TODO:'
... | import subprocess
import time
class PackageData(object):
def __init__(self, local_file, name, version):
self.local_file = local_file
self.name = name
self.version = version
def __getattr__(self, name):
if name in self.__dict__:
return self.__dict__[name]
re... | class PackageData(object):
def __init__(self, local_file, name, version):
self.local_file = local_file
self.name = name
self.version = version
def __getattr__(self, name):
if name in self.__dict__:
return self.__dict__[name]
return 'TODO:'
@property
... | <commit_before>class PackageData(object):
def __init__(self, local_file, name, version):
self.local_file = local_file
self.name = name
self.version = version
def __getattr__(self, name):
if name in self.__dict__:
return self.__dict__[name]
return 'TODO:'
... |
eb5294f0df32442dbd7431fd9200388ca4c63d62 | tests/builtins/test_reversed.py | tests/builtins/test_reversed.py | from .. utils import TranspileTestCase, BuiltinFunctionTestCase
class ReversedTests(TranspileTestCase):
pass
class BuiltinReversedFunctionTests(BuiltinFunctionTestCase, TranspileTestCase):
functions = ["reversed"]
not_implemented = [
'test_range',
]
| from .. utils import SAMPLE_DATA, TranspileTestCase, BuiltinFunctionTestCase
def _iterate_test(datatype):
def test_func(self):
code = '\n'.join([
'\nfor x in {value}:\n print(x)\n'.format(value=value)
for value in SAMPLE_DATA[datatype]
])
self.assertCodeExecutio... | Add iteration tests for reversed type | Add iteration tests for reversed type
| Python | bsd-3-clause | cflee/voc,cflee/voc,freakboy3742/voc,freakboy3742/voc | from .. utils import TranspileTestCase, BuiltinFunctionTestCase
class ReversedTests(TranspileTestCase):
pass
class BuiltinReversedFunctionTests(BuiltinFunctionTestCase, TranspileTestCase):
functions = ["reversed"]
not_implemented = [
'test_range',
]
Add iteration tests for reversed type | from .. utils import SAMPLE_DATA, TranspileTestCase, BuiltinFunctionTestCase
def _iterate_test(datatype):
def test_func(self):
code = '\n'.join([
'\nfor x in {value}:\n print(x)\n'.format(value=value)
for value in SAMPLE_DATA[datatype]
])
self.assertCodeExecutio... | <commit_before>from .. utils import TranspileTestCase, BuiltinFunctionTestCase
class ReversedTests(TranspileTestCase):
pass
class BuiltinReversedFunctionTests(BuiltinFunctionTestCase, TranspileTestCase):
functions = ["reversed"]
not_implemented = [
'test_range',
]
<commit_msg>Add iteration ... | from .. utils import SAMPLE_DATA, TranspileTestCase, BuiltinFunctionTestCase
def _iterate_test(datatype):
def test_func(self):
code = '\n'.join([
'\nfor x in {value}:\n print(x)\n'.format(value=value)
for value in SAMPLE_DATA[datatype]
])
self.assertCodeExecutio... | from .. utils import TranspileTestCase, BuiltinFunctionTestCase
class ReversedTests(TranspileTestCase):
pass
class BuiltinReversedFunctionTests(BuiltinFunctionTestCase, TranspileTestCase):
functions = ["reversed"]
not_implemented = [
'test_range',
]
Add iteration tests for reversed typefrom... | <commit_before>from .. utils import TranspileTestCase, BuiltinFunctionTestCase
class ReversedTests(TranspileTestCase):
pass
class BuiltinReversedFunctionTests(BuiltinFunctionTestCase, TranspileTestCase):
functions = ["reversed"]
not_implemented = [
'test_range',
]
<commit_msg>Add iteration ... |
41217b13d6a59b6919f72a0d8b24a86d16f2f22c | quotedb/serializers.py | quotedb/serializers.py | from rest_framework import serializers
from quotedb.models import Quote
class QuoteSerializer(serializers.ModelSerializer):
owner = serializers.ReadOnlyField(source='owner.username')
class Meta:
model = Quote
fields = ('body', 'owner', 'created', 'approved')
| from rest_framework import serializers
from quotedb.models import Quote
class QuoteSerializer(serializers.ModelSerializer):
owner = serializers.ReadOnlyField(source='owner.username')
class Meta:
model = Quote
fields = ('id', 'body', 'owner', 'created', 'approved')
read_only = ('id',)
| Add id to api results | Add id to api results
| Python | mit | kfdm/django-qdb,kfdm/django-qdb | from rest_framework import serializers
from quotedb.models import Quote
class QuoteSerializer(serializers.ModelSerializer):
owner = serializers.ReadOnlyField(source='owner.username')
class Meta:
model = Quote
fields = ('body', 'owner', 'created', 'approved')
Add id to api results | from rest_framework import serializers
from quotedb.models import Quote
class QuoteSerializer(serializers.ModelSerializer):
owner = serializers.ReadOnlyField(source='owner.username')
class Meta:
model = Quote
fields = ('id', 'body', 'owner', 'created', 'approved')
read_only = ('id',)
| <commit_before>from rest_framework import serializers
from quotedb.models import Quote
class QuoteSerializer(serializers.ModelSerializer):
owner = serializers.ReadOnlyField(source='owner.username')
class Meta:
model = Quote
fields = ('body', 'owner', 'created', 'approved')
<commit_msg>Add id ... | from rest_framework import serializers
from quotedb.models import Quote
class QuoteSerializer(serializers.ModelSerializer):
owner = serializers.ReadOnlyField(source='owner.username')
class Meta:
model = Quote
fields = ('id', 'body', 'owner', 'created', 'approved')
read_only = ('id',)
| from rest_framework import serializers
from quotedb.models import Quote
class QuoteSerializer(serializers.ModelSerializer):
owner = serializers.ReadOnlyField(source='owner.username')
class Meta:
model = Quote
fields = ('body', 'owner', 'created', 'approved')
Add id to api resultsfrom rest_fra... | <commit_before>from rest_framework import serializers
from quotedb.models import Quote
class QuoteSerializer(serializers.ModelSerializer):
owner = serializers.ReadOnlyField(source='owner.username')
class Meta:
model = Quote
fields = ('body', 'owner', 'created', 'approved')
<commit_msg>Add id ... |
16c8baf99b90abe5f8f273647f02604b6e11f8b2 | humbug/test_settings.py | humbug/test_settings.py | from settings import *
DATABASES['default']["NAME"] = "zephyr/tests/zephyrdb.test"
| from settings import *
DATABASES["default"] = {"NAME": "zephyr/tests/zephyrdb.test",
"ENGINE": "django.db.backends.sqlite3",
"OPTIONS": { "timeout": 20, },}
| Fix running tests when the default database is MySQL. | Fix running tests when the default database is MySQL.
(imported from commit b692b64219fb67792cdfd3bd208df2c6103d23ad)
| Python | apache-2.0 | MayB/zulip,samatdav/zulip,willingc/zulip,easyfmxu/zulip,TigorC/zulip,natanovia/zulip,Cheppers/zulip,vaidap/zulip,MayB/zulip,Galexrt/zulip,ipernet/zulip,esander91/zulip,yuvipanda/zulip,eastlhu/zulip,joyhchen/zulip,noroot/zulip,jessedhillon/zulip,TigorC/zulip,timabbott/zulip,LeeRisk/zulip,zwily/zulip,udxxabp/zulip,pravee... | from settings import *
DATABASES['default']["NAME"] = "zephyr/tests/zephyrdb.test"
Fix running tests when the default database is MySQL.
(imported from commit b692b64219fb67792cdfd3bd208df2c6103d23ad) | from settings import *
DATABASES["default"] = {"NAME": "zephyr/tests/zephyrdb.test",
"ENGINE": "django.db.backends.sqlite3",
"OPTIONS": { "timeout": 20, },}
| <commit_before>from settings import *
DATABASES['default']["NAME"] = "zephyr/tests/zephyrdb.test"
<commit_msg>Fix running tests when the default database is MySQL.
(imported from commit b692b64219fb67792cdfd3bd208df2c6103d23ad)<commit_after> | from settings import *
DATABASES["default"] = {"NAME": "zephyr/tests/zephyrdb.test",
"ENGINE": "django.db.backends.sqlite3",
"OPTIONS": { "timeout": 20, },}
| from settings import *
DATABASES['default']["NAME"] = "zephyr/tests/zephyrdb.test"
Fix running tests when the default database is MySQL.
(imported from commit b692b64219fb67792cdfd3bd208df2c6103d23ad)from settings import *
DATABASES["default"] = {"NAME": "zephyr/tests/zephyrdb.test",
"ENGINE"... | <commit_before>from settings import *
DATABASES['default']["NAME"] = "zephyr/tests/zephyrdb.test"
<commit_msg>Fix running tests when the default database is MySQL.
(imported from commit b692b64219fb67792cdfd3bd208df2c6103d23ad)<commit_after>from settings import *
DATABASES["default"] = {"NAME": "zephyr/tests/zephyrd... |
a17b3f1b84d9c87ef3e469a140896dc4dabf9a2b | examples/vhosts.py | examples/vhosts.py | from sanic import response
from sanic import Sanic
from sanic.blueprints import Blueprint
# Usage
# curl -H "Host: example.com" localhost:8000
# curl -H "Host: sub.example.com" localhost:8000
# curl -H "Host: bp.example.com" localhost:8000/question
# curl -H "Host: bp.example.com" localhost:8000/answer
app = Sanic()
... | from sanic import response
from sanic import Sanic
from sanic.blueprints import Blueprint
# Usage
# curl -H "Host: example.com" localhost:8000
# curl -H "Host: sub.example.com" localhost:8000
# curl -H "Host: bp.example.com" localhost:8000/question
# curl -H "Host: bp.example.com" localhost:8000/answer
app = Sanic()
... | Use of register_blueprint will be deprecated, why not upgrade? | Use of register_blueprint will be deprecated, why not upgrade?
| Python | mit | channelcat/sanic,channelcat/sanic,Tim-Erwin/sanic,ashleysommer/sanic,yunstanford/sanic,ashleysommer/sanic,lixxu/sanic,Tim-Erwin/sanic,lixxu/sanic,r0fls/sanic,lixxu/sanic,channelcat/sanic,ashleysommer/sanic,jrocketfingers/sanic,r0fls/sanic,jrocketfingers/sanic,yunstanford/sanic,lixxu/sanic,channelcat/sanic,yunstanford/s... | from sanic import response
from sanic import Sanic
from sanic.blueprints import Blueprint
# Usage
# curl -H "Host: example.com" localhost:8000
# curl -H "Host: sub.example.com" localhost:8000
# curl -H "Host: bp.example.com" localhost:8000/question
# curl -H "Host: bp.example.com" localhost:8000/answer
app = Sanic()
... | from sanic import response
from sanic import Sanic
from sanic.blueprints import Blueprint
# Usage
# curl -H "Host: example.com" localhost:8000
# curl -H "Host: sub.example.com" localhost:8000
# curl -H "Host: bp.example.com" localhost:8000/question
# curl -H "Host: bp.example.com" localhost:8000/answer
app = Sanic()
... | <commit_before>from sanic import response
from sanic import Sanic
from sanic.blueprints import Blueprint
# Usage
# curl -H "Host: example.com" localhost:8000
# curl -H "Host: sub.example.com" localhost:8000
# curl -H "Host: bp.example.com" localhost:8000/question
# curl -H "Host: bp.example.com" localhost:8000/answer
... | from sanic import response
from sanic import Sanic
from sanic.blueprints import Blueprint
# Usage
# curl -H "Host: example.com" localhost:8000
# curl -H "Host: sub.example.com" localhost:8000
# curl -H "Host: bp.example.com" localhost:8000/question
# curl -H "Host: bp.example.com" localhost:8000/answer
app = Sanic()
... | from sanic import response
from sanic import Sanic
from sanic.blueprints import Blueprint
# Usage
# curl -H "Host: example.com" localhost:8000
# curl -H "Host: sub.example.com" localhost:8000
# curl -H "Host: bp.example.com" localhost:8000/question
# curl -H "Host: bp.example.com" localhost:8000/answer
app = Sanic()
... | <commit_before>from sanic import response
from sanic import Sanic
from sanic.blueprints import Blueprint
# Usage
# curl -H "Host: example.com" localhost:8000
# curl -H "Host: sub.example.com" localhost:8000
# curl -H "Host: bp.example.com" localhost:8000/question
# curl -H "Host: bp.example.com" localhost:8000/answer
... |
d3837972d5aff2812ea534e053695373497192d5 | cheroot/__init__.py | cheroot/__init__.py | try:
import pkg_resources
__version__ = pkg_resources.get_distribution('cheroot').version
except ImportError:
__version__ = 'unknown'
| try:
import pkg_resources
__version__ = pkg_resources.get_distribution('cheroot').version
except (ImportError, pkg_resources.DistributionNotFound):
__version__ = 'unknown'
| Handle DistributionNotFound when getting version | Handle DistributionNotFound when getting version
When frozen with e.g. cx_Freeze, cheroot will be importable, but not discoverable by pkg_resources. | Python | bsd-3-clause | cherrypy/cheroot | try:
import pkg_resources
__version__ = pkg_resources.get_distribution('cheroot').version
except ImportError:
__version__ = 'unknown'
Handle DistributionNotFound when getting version
When frozen with e.g. cx_Freeze, cheroot will be importable, but not discoverable by pkg_resources. | try:
import pkg_resources
__version__ = pkg_resources.get_distribution('cheroot').version
except (ImportError, pkg_resources.DistributionNotFound):
__version__ = 'unknown'
| <commit_before>try:
import pkg_resources
__version__ = pkg_resources.get_distribution('cheroot').version
except ImportError:
__version__ = 'unknown'
<commit_msg>Handle DistributionNotFound when getting version
When frozen with e.g. cx_Freeze, cheroot will be importable, but not discoverable by pkg_resources.<commit... | try:
import pkg_resources
__version__ = pkg_resources.get_distribution('cheroot').version
except (ImportError, pkg_resources.DistributionNotFound):
__version__ = 'unknown'
| try:
import pkg_resources
__version__ = pkg_resources.get_distribution('cheroot').version
except ImportError:
__version__ = 'unknown'
Handle DistributionNotFound when getting version
When frozen with e.g. cx_Freeze, cheroot will be importable, but not discoverable by pkg_resources.try:
import pkg_resources
__vers... | <commit_before>try:
import pkg_resources
__version__ = pkg_resources.get_distribution('cheroot').version
except ImportError:
__version__ = 'unknown'
<commit_msg>Handle DistributionNotFound when getting version
When frozen with e.g. cx_Freeze, cheroot will be importable, but not discoverable by pkg_resources.<commit... |
0e02b72c8c37fa5c51a0036ba67a57c99bc1da86 | housecanary/__init__.py | housecanary/__init__.py | from housecanary.apiclient import ApiClient
from housecanary.excel import export_analytics_data_to_excel
from housecanary.excel import export_analytics_data_to_csv
from housecanary.excel import concat_excel_reports
from housecanary.excel import utilities
__version__ = '0.6.5'
| __version__ = '0.6.5'
from housecanary.apiclient import ApiClient
from housecanary.excel import export_analytics_data_to_excel
from housecanary.excel import export_analytics_data_to_csv
from housecanary.excel import concat_excel_reports
from housecanary.excel import utilities
| Revert moving the __version__ declaration which broke things | Revert moving the __version__ declaration which broke things
| Python | mit | housecanary/hc-api-python | from housecanary.apiclient import ApiClient
from housecanary.excel import export_analytics_data_to_excel
from housecanary.excel import export_analytics_data_to_csv
from housecanary.excel import concat_excel_reports
from housecanary.excel import utilities
__version__ = '0.6.5'
Revert moving the __version__ declaration ... | __version__ = '0.6.5'
from housecanary.apiclient import ApiClient
from housecanary.excel import export_analytics_data_to_excel
from housecanary.excel import export_analytics_data_to_csv
from housecanary.excel import concat_excel_reports
from housecanary.excel import utilities
| <commit_before>from housecanary.apiclient import ApiClient
from housecanary.excel import export_analytics_data_to_excel
from housecanary.excel import export_analytics_data_to_csv
from housecanary.excel import concat_excel_reports
from housecanary.excel import utilities
__version__ = '0.6.5'
<commit_msg>Revert moving t... | __version__ = '0.6.5'
from housecanary.apiclient import ApiClient
from housecanary.excel import export_analytics_data_to_excel
from housecanary.excel import export_analytics_data_to_csv
from housecanary.excel import concat_excel_reports
from housecanary.excel import utilities
| from housecanary.apiclient import ApiClient
from housecanary.excel import export_analytics_data_to_excel
from housecanary.excel import export_analytics_data_to_csv
from housecanary.excel import concat_excel_reports
from housecanary.excel import utilities
__version__ = '0.6.5'
Revert moving the __version__ declaration ... | <commit_before>from housecanary.apiclient import ApiClient
from housecanary.excel import export_analytics_data_to_excel
from housecanary.excel import export_analytics_data_to_csv
from housecanary.excel import concat_excel_reports
from housecanary.excel import utilities
__version__ = '0.6.5'
<commit_msg>Revert moving t... |
31af6fefec9770e1ca6663fafe397465732fbf4d | lc0023_merge_k_sorted_lists.py | lc0023_merge_k_sorted_lists.py | """Leetcode 23. Merge k Sorted Lists
Hard
URL: https://leetcode.com/problems/merge-k-sorted-lists/
Merge k sorted linked lists and return it as one sorted list.
Analyze and describe its complexity.
Example:
Input:
[
1->4->5,
1->3->4,
2->6
]
Output: 1->1->2->3->4->4->5->6
"""
# Definition for singly-linked lis... | """Leetcode 23. Merge k Sorted Lists
Hard
URL: https://leetcode.com/problems/merge-k-sorted-lists/
Merge k sorted linked lists and return it as one sorted list.
Analyze and describe its complexity.
Example:
Input:
[
1->4->5,
1->3->4,
2->6
]
Output: 1->1->2->3->4->4->5->6
"""
# Definition for singly-linked lis... | Complete sort sol w/ time/space complexity | Complete sort sol w/ time/space complexity
| Python | bsd-2-clause | bowen0701/algorithms_data_structures | """Leetcode 23. Merge k Sorted Lists
Hard
URL: https://leetcode.com/problems/merge-k-sorted-lists/
Merge k sorted linked lists and return it as one sorted list.
Analyze and describe its complexity.
Example:
Input:
[
1->4->5,
1->3->4,
2->6
]
Output: 1->1->2->3->4->4->5->6
"""
# Definition for singly-linked lis... | """Leetcode 23. Merge k Sorted Lists
Hard
URL: https://leetcode.com/problems/merge-k-sorted-lists/
Merge k sorted linked lists and return it as one sorted list.
Analyze and describe its complexity.
Example:
Input:
[
1->4->5,
1->3->4,
2->6
]
Output: 1->1->2->3->4->4->5->6
"""
# Definition for singly-linked lis... | <commit_before>"""Leetcode 23. Merge k Sorted Lists
Hard
URL: https://leetcode.com/problems/merge-k-sorted-lists/
Merge k sorted linked lists and return it as one sorted list.
Analyze and describe its complexity.
Example:
Input:
[
1->4->5,
1->3->4,
2->6
]
Output: 1->1->2->3->4->4->5->6
"""
# Definition for si... | """Leetcode 23. Merge k Sorted Lists
Hard
URL: https://leetcode.com/problems/merge-k-sorted-lists/
Merge k sorted linked lists and return it as one sorted list.
Analyze and describe its complexity.
Example:
Input:
[
1->4->5,
1->3->4,
2->6
]
Output: 1->1->2->3->4->4->5->6
"""
# Definition for singly-linked lis... | """Leetcode 23. Merge k Sorted Lists
Hard
URL: https://leetcode.com/problems/merge-k-sorted-lists/
Merge k sorted linked lists and return it as one sorted list.
Analyze and describe its complexity.
Example:
Input:
[
1->4->5,
1->3->4,
2->6
]
Output: 1->1->2->3->4->4->5->6
"""
# Definition for singly-linked lis... | <commit_before>"""Leetcode 23. Merge k Sorted Lists
Hard
URL: https://leetcode.com/problems/merge-k-sorted-lists/
Merge k sorted linked lists and return it as one sorted list.
Analyze and describe its complexity.
Example:
Input:
[
1->4->5,
1->3->4,
2->6
]
Output: 1->1->2->3->4->4->5->6
"""
# Definition for si... |
cd69ef8d72c28b8eec4a5612502dfd6b687da23e | donations/__init__.py | donations/__init__.py | # -*- coding: utf-8 -*-
__version__ = '0.1.3'
__version_info__ = tuple([int(num) if num.isdigit() else num for num in __version__.replace('-', '.', 1).split('.')])
| # -*- coding: utf-8 -*-
__version__ = '0.2.0'
__version_info__ = tuple([int(num) if num.isdigit() else num for num in __version__.replace('-', '.', 1).split('.')])
| Bump version to prepare release v0.2.0 | Bump version to prepare release v0.2.0
| Python | bsd-3-clause | founders4schools/django-donations,founders4schools/django-donations | # -*- coding: utf-8 -*-
__version__ = '0.1.3'
__version_info__ = tuple([int(num) if num.isdigit() else num for num in __version__.replace('-', '.', 1).split('.')])
Bump version to prepare release v0.2.0 | # -*- coding: utf-8 -*-
__version__ = '0.2.0'
__version_info__ = tuple([int(num) if num.isdigit() else num for num in __version__.replace('-', '.', 1).split('.')])
| <commit_before># -*- coding: utf-8 -*-
__version__ = '0.1.3'
__version_info__ = tuple([int(num) if num.isdigit() else num for num in __version__.replace('-', '.', 1).split('.')])
<commit_msg>Bump version to prepare release v0.2.0<commit_after> | # -*- coding: utf-8 -*-
__version__ = '0.2.0'
__version_info__ = tuple([int(num) if num.isdigit() else num for num in __version__.replace('-', '.', 1).split('.')])
| # -*- coding: utf-8 -*-
__version__ = '0.1.3'
__version_info__ = tuple([int(num) if num.isdigit() else num for num in __version__.replace('-', '.', 1).split('.')])
Bump version to prepare release v0.2.0# -*- coding: utf-8 -*-
__version__ = '0.2.0'
__version_info__ = tuple([int(num) if num.isdigit() else num for num in ... | <commit_before># -*- coding: utf-8 -*-
__version__ = '0.1.3'
__version_info__ = tuple([int(num) if num.isdigit() else num for num in __version__.replace('-', '.', 1).split('.')])
<commit_msg>Bump version to prepare release v0.2.0<commit_after># -*- coding: utf-8 -*-
__version__ = '0.2.0'
__version_info__ = tuple([int(n... |
98dc8375bcfeecc5106940a02395599ea1e60152 | core/settings/contrib.py | core/settings/contrib.py | from .base import *
INSTALLED_APPS += (
'django_hstore',
'provider',
'provider.oauth2',
'south',
'easy_thumbnails',
'kronos',
)
| from .base import *
INSTALLED_APPS += (
'django_hstore',
'provider',
'provider.oauth2',
'south',
'easy_thumbnails',
)
| Remove kronos from installed apps | Remove kronos from installed apps
| Python | apache-2.0 | nagyistoce/geokey,nagyistoce/geokey,nagyistoce/geokey | from .base import *
INSTALLED_APPS += (
'django_hstore',
'provider',
'provider.oauth2',
'south',
'easy_thumbnails',
'kronos',
)
Remove kronos from installed apps | from .base import *
INSTALLED_APPS += (
'django_hstore',
'provider',
'provider.oauth2',
'south',
'easy_thumbnails',
)
| <commit_before>from .base import *
INSTALLED_APPS += (
'django_hstore',
'provider',
'provider.oauth2',
'south',
'easy_thumbnails',
'kronos',
)
<commit_msg>Remove kronos from installed apps<commit_after> | from .base import *
INSTALLED_APPS += (
'django_hstore',
'provider',
'provider.oauth2',
'south',
'easy_thumbnails',
)
| from .base import *
INSTALLED_APPS += (
'django_hstore',
'provider',
'provider.oauth2',
'south',
'easy_thumbnails',
'kronos',
)
Remove kronos from installed appsfrom .base import *
INSTALLED_APPS += (
'django_hstore',
'provider',
'provider.oauth2',
'south',
'easy_thumbnails... | <commit_before>from .base import *
INSTALLED_APPS += (
'django_hstore',
'provider',
'provider.oauth2',
'south',
'easy_thumbnails',
'kronos',
)
<commit_msg>Remove kronos from installed apps<commit_after>from .base import *
INSTALLED_APPS += (
'django_hstore',
'provider',
'provider.o... |
ecb7366c1d1ee4a58806dacd2158dc67313cf991 | test/integration/memcached_suite.py | test/integration/memcached_suite.py | #!/usr/bin/python
import os, subprocess
from test_common import *
def test(opts, port):
# The test scripts now get the port as an environment variable (instead of running the server themselves).
os.environ["RUN_PORT"] = str(port)
os.environ["PERLLIB"] = os.path.abspath(os.getcwd()) + "/integration/memcache... | #!/usr/bin/python
import os, subprocess
from test_common import *
def test(opts, port):
# The test scripts now get the port as an environment variable (instead of running the server themselves).
os.environ["RUN_PORT"] = str(port)
os.environ["PERLLIB"] = os.path.abspath(os.getcwd()) + "/integration/memcache... | Increase getset.t timeout to 6 minutes (because it was still timing out under valgrind). | Increase getset.t timeout to 6 minutes (because it was still timing out under valgrind).
| Python | apache-2.0 | elkingtonmcb/rethinkdb,sontek/rethinkdb,matthaywardwebdesign/rethinkdb,scripni/rethinkdb,ayumilong/rethinkdb,Wilbeibi/rethinkdb,grandquista/rethinkdb,jmptrader/rethinkdb,grandquista/rethinkdb,sbusso/rethinkdb,catroot/rethinkdb,matthaywardwebdesign/rethinkdb,eliangidoni/rethinkdb,yakovenkodenis/rethinkdb,marshall007/ret... | #!/usr/bin/python
import os, subprocess
from test_common import *
def test(opts, port):
# The test scripts now get the port as an environment variable (instead of running the server themselves).
os.environ["RUN_PORT"] = str(port)
os.environ["PERLLIB"] = os.path.abspath(os.getcwd()) + "/integration/memcache... | #!/usr/bin/python
import os, subprocess
from test_common import *
def test(opts, port):
# The test scripts now get the port as an environment variable (instead of running the server themselves).
os.environ["RUN_PORT"] = str(port)
os.environ["PERLLIB"] = os.path.abspath(os.getcwd()) + "/integration/memcache... | <commit_before>#!/usr/bin/python
import os, subprocess
from test_common import *
def test(opts, port):
# The test scripts now get the port as an environment variable (instead of running the server themselves).
os.environ["RUN_PORT"] = str(port)
os.environ["PERLLIB"] = os.path.abspath(os.getcwd()) + "/integ... | #!/usr/bin/python
import os, subprocess
from test_common import *
def test(opts, port):
# The test scripts now get the port as an environment variable (instead of running the server themselves).
os.environ["RUN_PORT"] = str(port)
os.environ["PERLLIB"] = os.path.abspath(os.getcwd()) + "/integration/memcache... | #!/usr/bin/python
import os, subprocess
from test_common import *
def test(opts, port):
# The test scripts now get the port as an environment variable (instead of running the server themselves).
os.environ["RUN_PORT"] = str(port)
os.environ["PERLLIB"] = os.path.abspath(os.getcwd()) + "/integration/memcache... | <commit_before>#!/usr/bin/python
import os, subprocess
from test_common import *
def test(opts, port):
# The test scripts now get the port as an environment variable (instead of running the server themselves).
os.environ["RUN_PORT"] = str(port)
os.environ["PERLLIB"] = os.path.abspath(os.getcwd()) + "/integ... |
a81186cdad8ac878c4968c8e2563d9aeae6f1c58 | tests/test_design_patterns.py | tests/test_design_patterns.py | __author__ = 'Shyue Ping Ong'
__copyright__ = 'Copyright 2014, The Materials Virtual Lab'
__version__ = '0.1'
__maintainer__ = 'Shyue Ping Ong'
__email__ = 'ongsp@ucsd.edu'
__date__ = '1/24/14'
import unittest
from monty.design_patterns import singleton, cached_class
class SingletonTest(unittest.TestCase):
de... | __author__ = 'Shyue Ping Ong'
__copyright__ = 'Copyright 2014, The Materials Virtual Lab'
__version__ = '0.1'
__maintainer__ = 'Shyue Ping Ong'
__email__ = 'ongsp@ucsd.edu'
__date__ = '1/24/14'
import unittest
import pickle
from monty.design_patterns import singleton, cached_class
class SingletonTest(unittest.Test... | Add pickle test for monty cached_class decorator. | Add pickle test for monty cached_class decorator.
| Python | mit | gmatteo/monty,yanikou19/monty,gmatteo/monty,materialsvirtuallab/monty,davidwaroquiers/monty,gpetretto/monty,materialsvirtuallab/monty,davidwaroquiers/monty | __author__ = 'Shyue Ping Ong'
__copyright__ = 'Copyright 2014, The Materials Virtual Lab'
__version__ = '0.1'
__maintainer__ = 'Shyue Ping Ong'
__email__ = 'ongsp@ucsd.edu'
__date__ = '1/24/14'
import unittest
from monty.design_patterns import singleton, cached_class
class SingletonTest(unittest.TestCase):
de... | __author__ = 'Shyue Ping Ong'
__copyright__ = 'Copyright 2014, The Materials Virtual Lab'
__version__ = '0.1'
__maintainer__ = 'Shyue Ping Ong'
__email__ = 'ongsp@ucsd.edu'
__date__ = '1/24/14'
import unittest
import pickle
from monty.design_patterns import singleton, cached_class
class SingletonTest(unittest.Test... | <commit_before>__author__ = 'Shyue Ping Ong'
__copyright__ = 'Copyright 2014, The Materials Virtual Lab'
__version__ = '0.1'
__maintainer__ = 'Shyue Ping Ong'
__email__ = 'ongsp@ucsd.edu'
__date__ = '1/24/14'
import unittest
from monty.design_patterns import singleton, cached_class
class SingletonTest(unittest.Tes... | __author__ = 'Shyue Ping Ong'
__copyright__ = 'Copyright 2014, The Materials Virtual Lab'
__version__ = '0.1'
__maintainer__ = 'Shyue Ping Ong'
__email__ = 'ongsp@ucsd.edu'
__date__ = '1/24/14'
import unittest
import pickle
from monty.design_patterns import singleton, cached_class
class SingletonTest(unittest.Test... | __author__ = 'Shyue Ping Ong'
__copyright__ = 'Copyright 2014, The Materials Virtual Lab'
__version__ = '0.1'
__maintainer__ = 'Shyue Ping Ong'
__email__ = 'ongsp@ucsd.edu'
__date__ = '1/24/14'
import unittest
from monty.design_patterns import singleton, cached_class
class SingletonTest(unittest.TestCase):
de... | <commit_before>__author__ = 'Shyue Ping Ong'
__copyright__ = 'Copyright 2014, The Materials Virtual Lab'
__version__ = '0.1'
__maintainer__ = 'Shyue Ping Ong'
__email__ = 'ongsp@ucsd.edu'
__date__ = '1/24/14'
import unittest
from monty.design_patterns import singleton, cached_class
class SingletonTest(unittest.Tes... |
c135e9ac8fead8e9e58d2f34e5aa66354bd1b996 | tests/test_route_requester.py | tests/test_route_requester.py | import unittest
from pydirections.route_requester import DirectionsRequest
from pydirections.exceptions import InvalidModeError, InvalidAPIKeyError, InvalidAlternativeError
requester = DirectionsRequest(origin="San Francisco, CA", destination="Palo Alto, CA")
class TestOptionalParameters(unittest.TestCase):
def test... | import unittest
from pydirections.route_requester import DirectionsRequest
from pydirections.exceptions import InvalidModeError, InvalidAPIKeyError, InvalidAlternativeError
import os
MAPS_API_KEY = os.environ['MAPS_API_KEY']
class TestOptionalParameters(unittest.TestCase):
def test_invalid_mode(self):
"""
Te... | Refactor tests to include API KEY | Refactor tests to include API KEY
| Python | apache-2.0 | apranav19/pydirections | import unittest
from pydirections.route_requester import DirectionsRequest
from pydirections.exceptions import InvalidModeError, InvalidAPIKeyError, InvalidAlternativeError
requester = DirectionsRequest(origin="San Francisco, CA", destination="Palo Alto, CA")
class TestOptionalParameters(unittest.TestCase):
def test... | import unittest
from pydirections.route_requester import DirectionsRequest
from pydirections.exceptions import InvalidModeError, InvalidAPIKeyError, InvalidAlternativeError
import os
MAPS_API_KEY = os.environ['MAPS_API_KEY']
class TestOptionalParameters(unittest.TestCase):
def test_invalid_mode(self):
"""
Te... | <commit_before>import unittest
from pydirections.route_requester import DirectionsRequest
from pydirections.exceptions import InvalidModeError, InvalidAPIKeyError, InvalidAlternativeError
requester = DirectionsRequest(origin="San Francisco, CA", destination="Palo Alto, CA")
class TestOptionalParameters(unittest.TestC... | import unittest
from pydirections.route_requester import DirectionsRequest
from pydirections.exceptions import InvalidModeError, InvalidAPIKeyError, InvalidAlternativeError
import os
MAPS_API_KEY = os.environ['MAPS_API_KEY']
class TestOptionalParameters(unittest.TestCase):
def test_invalid_mode(self):
"""
Te... | import unittest
from pydirections.route_requester import DirectionsRequest
from pydirections.exceptions import InvalidModeError, InvalidAPIKeyError, InvalidAlternativeError
requester = DirectionsRequest(origin="San Francisco, CA", destination="Palo Alto, CA")
class TestOptionalParameters(unittest.TestCase):
def test... | <commit_before>import unittest
from pydirections.route_requester import DirectionsRequest
from pydirections.exceptions import InvalidModeError, InvalidAPIKeyError, InvalidAlternativeError
requester = DirectionsRequest(origin="San Francisco, CA", destination="Palo Alto, CA")
class TestOptionalParameters(unittest.TestC... |
c3db5ba2860dc4ddf034aa036be573dd75093473 | tests/test_barebones.py | tests/test_barebones.py | # -*- coding: utf-8 -*-
"""
Tests for the barebones example project
"""
import os
import py.path
from tarbell.app import TarbellSite
PATH = os.path.realpath('examples/barebones')
def test_get_site():
site = TarbellSite(PATH)
assert os.path.realpath(site.path) == os.path.realpath(PATH)
assert site.project... | # -*- coding: utf-8 -*-
"""
Tests for the barebones example project
"""
import os
import py.path
from tarbell.app import EXCLUDES, TarbellSite
PATH = os.path.realpath('examples/barebones')
def test_get_site():
site = TarbellSite(PATH)
assert os.path.realpath(site.path) == os.path.realpath(PATH)
assert s... | Add a test for default excludes, which is failing | Add a test for default excludes, which is failing
| Python | bsd-3-clause | eyeseast/tarbell,eyeseast/tarbell,tarbell-project/tarbell,tarbell-project/tarbell | # -*- coding: utf-8 -*-
"""
Tests for the barebones example project
"""
import os
import py.path
from tarbell.app import TarbellSite
PATH = os.path.realpath('examples/barebones')
def test_get_site():
site = TarbellSite(PATH)
assert os.path.realpath(site.path) == os.path.realpath(PATH)
assert site.project... | # -*- coding: utf-8 -*-
"""
Tests for the barebones example project
"""
import os
import py.path
from tarbell.app import EXCLUDES, TarbellSite
PATH = os.path.realpath('examples/barebones')
def test_get_site():
site = TarbellSite(PATH)
assert os.path.realpath(site.path) == os.path.realpath(PATH)
assert s... | <commit_before># -*- coding: utf-8 -*-
"""
Tests for the barebones example project
"""
import os
import py.path
from tarbell.app import TarbellSite
PATH = os.path.realpath('examples/barebones')
def test_get_site():
site = TarbellSite(PATH)
assert os.path.realpath(site.path) == os.path.realpath(PATH)
asse... | # -*- coding: utf-8 -*-
"""
Tests for the barebones example project
"""
import os
import py.path
from tarbell.app import EXCLUDES, TarbellSite
PATH = os.path.realpath('examples/barebones')
def test_get_site():
site = TarbellSite(PATH)
assert os.path.realpath(site.path) == os.path.realpath(PATH)
assert s... | # -*- coding: utf-8 -*-
"""
Tests for the barebones example project
"""
import os
import py.path
from tarbell.app import TarbellSite
PATH = os.path.realpath('examples/barebones')
def test_get_site():
site = TarbellSite(PATH)
assert os.path.realpath(site.path) == os.path.realpath(PATH)
assert site.project... | <commit_before># -*- coding: utf-8 -*-
"""
Tests for the barebones example project
"""
import os
import py.path
from tarbell.app import TarbellSite
PATH = os.path.realpath('examples/barebones')
def test_get_site():
site = TarbellSite(PATH)
assert os.path.realpath(site.path) == os.path.realpath(PATH)
asse... |
c16006cd8983bbd73f52921c63a51aa6f29b9e88 | ituro/accounts/tests.py | ituro/accounts/tests.py | from django.test import TestCase
# Create your tests here.
| from django.test import TestCase
from django.utils import timezone
from accounts.models import CustomUser, CustomUserManager
class UserCreateTestCase(TestCase):
def test_create_user_correctly(self):
"Creating users correctly"
new_user = CustomUser.objects.create(
email="participant@gm... | Add test for creating accounts | Add test for creating accounts
| Python | mit | bilbeyt/ituro,ITURO/ituro,bilbeyt/ituro,bilbeyt/ituro,ITURO/ituro,ITURO/ituro | from django.test import TestCase
# Create your tests here.
Add test for creating accounts | from django.test import TestCase
from django.utils import timezone
from accounts.models import CustomUser, CustomUserManager
class UserCreateTestCase(TestCase):
def test_create_user_correctly(self):
"Creating users correctly"
new_user = CustomUser.objects.create(
email="participant@gm... | <commit_before>from django.test import TestCase
# Create your tests here.
<commit_msg>Add test for creating accounts<commit_after> | from django.test import TestCase
from django.utils import timezone
from accounts.models import CustomUser, CustomUserManager
class UserCreateTestCase(TestCase):
def test_create_user_correctly(self):
"Creating users correctly"
new_user = CustomUser.objects.create(
email="participant@gm... | from django.test import TestCase
# Create your tests here.
Add test for creating accountsfrom django.test import TestCase
from django.utils import timezone
from accounts.models import CustomUser, CustomUserManager
class UserCreateTestCase(TestCase):
def test_create_user_correctly(self):
"Creating users c... | <commit_before>from django.test import TestCase
# Create your tests here.
<commit_msg>Add test for creating accounts<commit_after>from django.test import TestCase
from django.utils import timezone
from accounts.models import CustomUser, CustomUserManager
class UserCreateTestCase(TestCase):
def test_create_user_c... |
0315f2b47261cfabe11b2668225ec1bc19e5493c | vispy_volume/tests/test_vispy_widget.py | vispy_volume/tests/test_vispy_widget.py | import numpy as np
from ..vispy_widget import QtVispyWidget
from glue.qt import get_qapp
class Event(object):
def __init__(self, text):
self.text = text
def test_widget():
# Make sure QApplication is started
get_qapp()
# Create fake data
data = np.arange(1000).reshape((10,10,10))
... | import numpy as np
from ..vispy_widget import QtVispyWidget
from glue.qt import get_qapp
class KeyEvent(object):
def __init__(self, text):
self.text = text
class MouseEvent(object):
def __init__(self, delta, type):
self.type = type
self.delta = delta
def test_widget():
# Make su... | Fix the mouse_wheel test unit | Fix the mouse_wheel test unit
| Python | bsd-2-clause | astrofrog/glue-3d-viewer,PennyQ/astro-vispy,PennyQ/glue-3d-viewer,astrofrog/glue-vispy-viewers,glue-viz/glue-3d-viewer,glue-viz/glue-vispy-viewers | import numpy as np
from ..vispy_widget import QtVispyWidget
from glue.qt import get_qapp
class Event(object):
def __init__(self, text):
self.text = text
def test_widget():
# Make sure QApplication is started
get_qapp()
# Create fake data
data = np.arange(1000).reshape((10,10,10))
... | import numpy as np
from ..vispy_widget import QtVispyWidget
from glue.qt import get_qapp
class KeyEvent(object):
def __init__(self, text):
self.text = text
class MouseEvent(object):
def __init__(self, delta, type):
self.type = type
self.delta = delta
def test_widget():
# Make su... | <commit_before>import numpy as np
from ..vispy_widget import QtVispyWidget
from glue.qt import get_qapp
class Event(object):
def __init__(self, text):
self.text = text
def test_widget():
# Make sure QApplication is started
get_qapp()
# Create fake data
data = np.arange(1000).reshape((1... | import numpy as np
from ..vispy_widget import QtVispyWidget
from glue.qt import get_qapp
class KeyEvent(object):
def __init__(self, text):
self.text = text
class MouseEvent(object):
def __init__(self, delta, type):
self.type = type
self.delta = delta
def test_widget():
# Make su... | import numpy as np
from ..vispy_widget import QtVispyWidget
from glue.qt import get_qapp
class Event(object):
def __init__(self, text):
self.text = text
def test_widget():
# Make sure QApplication is started
get_qapp()
# Create fake data
data = np.arange(1000).reshape((10,10,10))
... | <commit_before>import numpy as np
from ..vispy_widget import QtVispyWidget
from glue.qt import get_qapp
class Event(object):
def __init__(self, text):
self.text = text
def test_widget():
# Make sure QApplication is started
get_qapp()
# Create fake data
data = np.arange(1000).reshape((1... |
4b4f07f4bf9d81ab1829ccdf6562dc95d75ab7d4 | tests/test_objectify.py | tests/test_objectify.py | import copy
import unittest
import utils
class ObjectifyTestCase(unittest.TestCase):
def setUp(self):
self.o = utils.Objectify()
def test_bool_empty(self):
self.assertFalse(self.o)
def test_bool_not_empty(self):
self.o['hello'] = 'world'
self.assertTrue(self.o)
def t... | import copy
import unittest
import utils
class ObjectifyTestCase(unittest.TestCase):
def setUp(self):
self.o = utils.objectify()
def test_bool_empty(self):
self.assertFalse(self.o)
def test_bool_not_empty(self):
self.o['hello'] = 'world'
self.assertTrue(self.o)
def t... | Fix naming issue in objectify test case | Fix naming issue in objectify test case
| Python | mit | silas/ops | import copy
import unittest
import utils
class ObjectifyTestCase(unittest.TestCase):
def setUp(self):
self.o = utils.Objectify()
def test_bool_empty(self):
self.assertFalse(self.o)
def test_bool_not_empty(self):
self.o['hello'] = 'world'
self.assertTrue(self.o)
def t... | import copy
import unittest
import utils
class ObjectifyTestCase(unittest.TestCase):
def setUp(self):
self.o = utils.objectify()
def test_bool_empty(self):
self.assertFalse(self.o)
def test_bool_not_empty(self):
self.o['hello'] = 'world'
self.assertTrue(self.o)
def t... | <commit_before>import copy
import unittest
import utils
class ObjectifyTestCase(unittest.TestCase):
def setUp(self):
self.o = utils.Objectify()
def test_bool_empty(self):
self.assertFalse(self.o)
def test_bool_not_empty(self):
self.o['hello'] = 'world'
self.assertTrue(sel... | import copy
import unittest
import utils
class ObjectifyTestCase(unittest.TestCase):
def setUp(self):
self.o = utils.objectify()
def test_bool_empty(self):
self.assertFalse(self.o)
def test_bool_not_empty(self):
self.o['hello'] = 'world'
self.assertTrue(self.o)
def t... | import copy
import unittest
import utils
class ObjectifyTestCase(unittest.TestCase):
def setUp(self):
self.o = utils.Objectify()
def test_bool_empty(self):
self.assertFalse(self.o)
def test_bool_not_empty(self):
self.o['hello'] = 'world'
self.assertTrue(self.o)
def t... | <commit_before>import copy
import unittest
import utils
class ObjectifyTestCase(unittest.TestCase):
def setUp(self):
self.o = utils.Objectify()
def test_bool_empty(self):
self.assertFalse(self.o)
def test_bool_not_empty(self):
self.o['hello'] = 'world'
self.assertTrue(sel... |
1c216c833d42b648e4d38298eac1616d8748c76d | tests/test_pathutils.py | tests/test_pathutils.py | from os.path import join
import sublime
import sys
from unittest import TestCase
from unittest.mock import patch
version = sublime.version()
if version < '3000':
from libsass import pathutils
else:
from sublime_libsass.libsass import pathutils
class TestPathutils(TestCase):
@classmethod
def setUpCla... | from os.path import join
import sublime
import sys
from unittest import TestCase
from unittest.mock import patch
version = sublime.version()
class TestPathutils(TestCase):
@classmethod
def setUpClass(cls):
super(TestPathutils, cls).setUpClass()
if version < '3000':
from libsass i... | Move importing of source to class setup | Move importing of source to class setup
| Python | mit | blitzrk/sublime_libsass,blitzrk/sublime_libsass | from os.path import join
import sublime
import sys
from unittest import TestCase
from unittest.mock import patch
version = sublime.version()
if version < '3000':
from libsass import pathutils
else:
from sublime_libsass.libsass import pathutils
class TestPathutils(TestCase):
@classmethod
def setUpCla... | from os.path import join
import sublime
import sys
from unittest import TestCase
from unittest.mock import patch
version = sublime.version()
class TestPathutils(TestCase):
@classmethod
def setUpClass(cls):
super(TestPathutils, cls).setUpClass()
if version < '3000':
from libsass i... | <commit_before>from os.path import join
import sublime
import sys
from unittest import TestCase
from unittest.mock import patch
version = sublime.version()
if version < '3000':
from libsass import pathutils
else:
from sublime_libsass.libsass import pathutils
class TestPathutils(TestCase):
@classmethod
... | from os.path import join
import sublime
import sys
from unittest import TestCase
from unittest.mock import patch
version = sublime.version()
class TestPathutils(TestCase):
@classmethod
def setUpClass(cls):
super(TestPathutils, cls).setUpClass()
if version < '3000':
from libsass i... | from os.path import join
import sublime
import sys
from unittest import TestCase
from unittest.mock import patch
version = sublime.version()
if version < '3000':
from libsass import pathutils
else:
from sublime_libsass.libsass import pathutils
class TestPathutils(TestCase):
@classmethod
def setUpCla... | <commit_before>from os.path import join
import sublime
import sys
from unittest import TestCase
from unittest.mock import patch
version = sublime.version()
if version < '3000':
from libsass import pathutils
else:
from sublime_libsass.libsass import pathutils
class TestPathutils(TestCase):
@classmethod
... |
78410c7cd8b5ff2907d9db8a672c663552c62a1c | src/ekklesia_portal/concepts/ballot/ballot_contracts.py | src/ekklesia_portal/concepts/ballot/ballot_contracts.py | from colander import Length
from deform.widget import Select2Widget, TextAreaWidget
from ekklesia_common.contract import Form, Schema, int_property, json_property, string_property
from ekklesia_common.translation import _
class BallotSchema(Schema):
name = string_property(title=_('name'), validator=Length(min=2, ... | from colander import Length
from deform.widget import Select2Widget, TextAreaWidget
from ekklesia_common.contract import Form, Schema, int_property, json_property, string_property
from ekklesia_common.translation import _
class BallotSchema(Schema):
name = string_property(title=_('name'), validator=Length(min=2, ... | Fix missing translations in ballot form | Fix missing translations in ballot form
| Python | agpl-3.0 | dpausp/arguments,dpausp/arguments,dpausp/arguments,dpausp/arguments | from colander import Length
from deform.widget import Select2Widget, TextAreaWidget
from ekklesia_common.contract import Form, Schema, int_property, json_property, string_property
from ekklesia_common.translation import _
class BallotSchema(Schema):
name = string_property(title=_('name'), validator=Length(min=2, ... | from colander import Length
from deform.widget import Select2Widget, TextAreaWidget
from ekklesia_common.contract import Form, Schema, int_property, json_property, string_property
from ekklesia_common.translation import _
class BallotSchema(Schema):
name = string_property(title=_('name'), validator=Length(min=2, ... | <commit_before>from colander import Length
from deform.widget import Select2Widget, TextAreaWidget
from ekklesia_common.contract import Form, Schema, int_property, json_property, string_property
from ekklesia_common.translation import _
class BallotSchema(Schema):
name = string_property(title=_('name'), validator... | from colander import Length
from deform.widget import Select2Widget, TextAreaWidget
from ekklesia_common.contract import Form, Schema, int_property, json_property, string_property
from ekklesia_common.translation import _
class BallotSchema(Schema):
name = string_property(title=_('name'), validator=Length(min=2, ... | from colander import Length
from deform.widget import Select2Widget, TextAreaWidget
from ekklesia_common.contract import Form, Schema, int_property, json_property, string_property
from ekklesia_common.translation import _
class BallotSchema(Schema):
name = string_property(title=_('name'), validator=Length(min=2, ... | <commit_before>from colander import Length
from deform.widget import Select2Widget, TextAreaWidget
from ekklesia_common.contract import Form, Schema, int_property, json_property, string_property
from ekklesia_common.translation import _
class BallotSchema(Schema):
name = string_property(title=_('name'), validator... |
d20e916a23974f92ae4ea82226eef98a7c00de9e | ds_stack.py | ds_stack.py | from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
class Stack(object):
"""Stack class."""
def __init__(self):
self.items = []
def is_empty(self):
return self.items == []
def push(self, item):
self.items.append(item)
... | from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
class Stack(object):
"""Stack class."""
def __init__(self):
self.items = []
def is_empty(self):
return self.items == []
def peek(self):
return self.items[-1]
def ... | Add peek() and revise main() | Add peek() and revise main()
| Python | bsd-2-clause | bowen0701/algorithms_data_structures | from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
class Stack(object):
"""Stack class."""
def __init__(self):
self.items = []
def is_empty(self):
return self.items == []
def push(self, item):
self.items.append(item)
... | from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
class Stack(object):
"""Stack class."""
def __init__(self):
self.items = []
def is_empty(self):
return self.items == []
def peek(self):
return self.items[-1]
def ... | <commit_before>from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
class Stack(object):
"""Stack class."""
def __init__(self):
self.items = []
def is_empty(self):
return self.items == []
def push(self, item):
self.items... | from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
class Stack(object):
"""Stack class."""
def __init__(self):
self.items = []
def is_empty(self):
return self.items == []
def peek(self):
return self.items[-1]
def ... | from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
class Stack(object):
"""Stack class."""
def __init__(self):
self.items = []
def is_empty(self):
return self.items == []
def push(self, item):
self.items.append(item)
... | <commit_before>from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
class Stack(object):
"""Stack class."""
def __init__(self):
self.items = []
def is_empty(self):
return self.items == []
def push(self, item):
self.items... |
7d605d762b204cb608553a27ec51925d0e3bfcb6 | scripts/export-tutorial.py | scripts/export-tutorial.py | """
Exports tutorial materials written in Jupyter notebooks in the ../notebooks/tutorial folder to RST pages and their
support files in the ../docs/tutorial folder.
"""
import subprocess
import os
# Get the list of tutorial notebooks.
tutorial_notebooks = [f for f in os.listdir("../notebooks/tutorial") if (".ipynb" in... | """
Exports tutorial materials written in Jupyter notebooks in the ../notebooks/tutorial folder to RST pages and their
support files in the ../docs/tutorial folder.
"""
import subprocess
import os
# Get the list of tutorial notebooks.
tutorial_notebooks = [f for f in os.listdir("../notebooks/tutorial") if (".ipynb" in... | Add docs README; remove unused assets. | Add docs README; remove unused assets.
| Python | mit | ResidentMario/geoplot | """
Exports tutorial materials written in Jupyter notebooks in the ../notebooks/tutorial folder to RST pages and their
support files in the ../docs/tutorial folder.
"""
import subprocess
import os
# Get the list of tutorial notebooks.
tutorial_notebooks = [f for f in os.listdir("../notebooks/tutorial") if (".ipynb" in... | """
Exports tutorial materials written in Jupyter notebooks in the ../notebooks/tutorial folder to RST pages and their
support files in the ../docs/tutorial folder.
"""
import subprocess
import os
# Get the list of tutorial notebooks.
tutorial_notebooks = [f for f in os.listdir("../notebooks/tutorial") if (".ipynb" in... | <commit_before>"""
Exports tutorial materials written in Jupyter notebooks in the ../notebooks/tutorial folder to RST pages and their
support files in the ../docs/tutorial folder.
"""
import subprocess
import os
# Get the list of tutorial notebooks.
tutorial_notebooks = [f for f in os.listdir("../notebooks/tutorial") ... | """
Exports tutorial materials written in Jupyter notebooks in the ../notebooks/tutorial folder to RST pages and their
support files in the ../docs/tutorial folder.
"""
import subprocess
import os
# Get the list of tutorial notebooks.
tutorial_notebooks = [f for f in os.listdir("../notebooks/tutorial") if (".ipynb" in... | """
Exports tutorial materials written in Jupyter notebooks in the ../notebooks/tutorial folder to RST pages and their
support files in the ../docs/tutorial folder.
"""
import subprocess
import os
# Get the list of tutorial notebooks.
tutorial_notebooks = [f for f in os.listdir("../notebooks/tutorial") if (".ipynb" in... | <commit_before>"""
Exports tutorial materials written in Jupyter notebooks in the ../notebooks/tutorial folder to RST pages and their
support files in the ../docs/tutorial folder.
"""
import subprocess
import os
# Get the list of tutorial notebooks.
tutorial_notebooks = [f for f in os.listdir("../notebooks/tutorial") ... |
214b74d4cf3902456ed274f756f4827f18c0c988 | logster/server.py | logster/server.py | import os
from tornado.ioloop import IOLoop
from tornado.web import Application
from tornado.httpserver import HTTPServer
from . import handlers
class LogsterApplication(Application):
handlers = [
(r'/', handlers.IndexHandler),
]
settings = {
'template_path': os.path.join(
o... | import os
from tornado.ioloop import IOLoop
from tornado.web import Application
from tornado.httpserver import HTTPServer
from . import handlers
from .conf import config
class LogsterApplication(Application):
handlers = [
(r'/', handlers.IndexHandler),
]
settings = {
'template_path': os... | Use post value from config | Use post value from config
| Python | mit | irvind/logster,irvind/logster,irvind/logster | import os
from tornado.ioloop import IOLoop
from tornado.web import Application
from tornado.httpserver import HTTPServer
from . import handlers
class LogsterApplication(Application):
handlers = [
(r'/', handlers.IndexHandler),
]
settings = {
'template_path': os.path.join(
o... | import os
from tornado.ioloop import IOLoop
from tornado.web import Application
from tornado.httpserver import HTTPServer
from . import handlers
from .conf import config
class LogsterApplication(Application):
handlers = [
(r'/', handlers.IndexHandler),
]
settings = {
'template_path': os... | <commit_before>import os
from tornado.ioloop import IOLoop
from tornado.web import Application
from tornado.httpserver import HTTPServer
from . import handlers
class LogsterApplication(Application):
handlers = [
(r'/', handlers.IndexHandler),
]
settings = {
'template_path': os.path.join... | import os
from tornado.ioloop import IOLoop
from tornado.web import Application
from tornado.httpserver import HTTPServer
from . import handlers
from .conf import config
class LogsterApplication(Application):
handlers = [
(r'/', handlers.IndexHandler),
]
settings = {
'template_path': os... | import os
from tornado.ioloop import IOLoop
from tornado.web import Application
from tornado.httpserver import HTTPServer
from . import handlers
class LogsterApplication(Application):
handlers = [
(r'/', handlers.IndexHandler),
]
settings = {
'template_path': os.path.join(
o... | <commit_before>import os
from tornado.ioloop import IOLoop
from tornado.web import Application
from tornado.httpserver import HTTPServer
from . import handlers
class LogsterApplication(Application):
handlers = [
(r'/', handlers.IndexHandler),
]
settings = {
'template_path': os.path.join... |
cde4bc1112f2ceb45f42de21c45d46d96097d5bc | app/forms.py | app/forms.py | from flask_wtf import Form
from wtforms import TextField
from wtforms.validators import InputRequired, Length, Regexp
class SignupForm(Form):
username = TextField(validators=[InputRequired(), Length(min=1, max=30), Regexp("^[a-zA-Z0-9]+$")])
publicKey = TextField(validators=[InputRequired()]) # Add Length and ... | from flask_wtf import Form
from wtforms import TextField, DateTimeField
from wtforms.validators import InputRequired, Length, Regexp
class SignupForm(Form):
username = TextField(validators=[InputRequired(), Length(min=1, max=30), Regexp("^[a-zA-Z0-9]+$")])
publicKey = TextField(validators=[InputRequired()]) # ... | Add basic AddEvent form with datetime conversion. | Add basic AddEvent form with datetime conversion.
| Python | agpl-3.0 | mitclap/backend | from flask_wtf import Form
from wtforms import TextField
from wtforms.validators import InputRequired, Length, Regexp
class SignupForm(Form):
username = TextField(validators=[InputRequired(), Length(min=1, max=30), Regexp("^[a-zA-Z0-9]+$")])
publicKey = TextField(validators=[InputRequired()]) # Add Length and ... | from flask_wtf import Form
from wtforms import TextField, DateTimeField
from wtforms.validators import InputRequired, Length, Regexp
class SignupForm(Form):
username = TextField(validators=[InputRequired(), Length(min=1, max=30), Regexp("^[a-zA-Z0-9]+$")])
publicKey = TextField(validators=[InputRequired()]) # ... | <commit_before>from flask_wtf import Form
from wtforms import TextField
from wtforms.validators import InputRequired, Length, Regexp
class SignupForm(Form):
username = TextField(validators=[InputRequired(), Length(min=1, max=30), Regexp("^[a-zA-Z0-9]+$")])
publicKey = TextField(validators=[InputRequired()]) # ... | from flask_wtf import Form
from wtforms import TextField, DateTimeField
from wtforms.validators import InputRequired, Length, Regexp
class SignupForm(Form):
username = TextField(validators=[InputRequired(), Length(min=1, max=30), Regexp("^[a-zA-Z0-9]+$")])
publicKey = TextField(validators=[InputRequired()]) # ... | from flask_wtf import Form
from wtforms import TextField
from wtforms.validators import InputRequired, Length, Regexp
class SignupForm(Form):
username = TextField(validators=[InputRequired(), Length(min=1, max=30), Regexp("^[a-zA-Z0-9]+$")])
publicKey = TextField(validators=[InputRequired()]) # Add Length and ... | <commit_before>from flask_wtf import Form
from wtforms import TextField
from wtforms.validators import InputRequired, Length, Regexp
class SignupForm(Form):
username = TextField(validators=[InputRequired(), Length(min=1, max=30), Regexp("^[a-zA-Z0-9]+$")])
publicKey = TextField(validators=[InputRequired()]) # ... |
235430ef759068f5f3e82ad547e37f68e4af217e | fuzz/afl-server.py | fuzz/afl-server.py | # Invariant tested: No matter what random garbage a client throws at us, we
# either successfully parse it, or else throw a RemoteProtocolError, never any
# other error.
import sys
import os
import afl
import h11
if sys.version_info[0] >= 3:
in_file = sys.stdin.detach()
else:
in_file = sys.stdin
afl.init()... | # Invariant tested: No matter what random garbage a client throws at us, we
# either successfully parse it, or else throw a RemoteProtocolError, never any
# other error.
import sys
import os
import afl
import h11
if sys.version_info[0] >= 3:
in_file = sys.stdin.detach()
else:
in_file = sys.stdin
def proces... | Update fuzz harness for new receive API | Update fuzz harness for new receive API
| Python | mit | njsmith/h11,python-hyper/h11 | # Invariant tested: No matter what random garbage a client throws at us, we
# either successfully parse it, or else throw a RemoteProtocolError, never any
# other error.
import sys
import os
import afl
import h11
if sys.version_info[0] >= 3:
in_file = sys.stdin.detach()
else:
in_file = sys.stdin
afl.init()... | # Invariant tested: No matter what random garbage a client throws at us, we
# either successfully parse it, or else throw a RemoteProtocolError, never any
# other error.
import sys
import os
import afl
import h11
if sys.version_info[0] >= 3:
in_file = sys.stdin.detach()
else:
in_file = sys.stdin
def proces... | <commit_before># Invariant tested: No matter what random garbage a client throws at us, we
# either successfully parse it, or else throw a RemoteProtocolError, never any
# other error.
import sys
import os
import afl
import h11
if sys.version_info[0] >= 3:
in_file = sys.stdin.detach()
else:
in_file = sys.st... | # Invariant tested: No matter what random garbage a client throws at us, we
# either successfully parse it, or else throw a RemoteProtocolError, never any
# other error.
import sys
import os
import afl
import h11
if sys.version_info[0] >= 3:
in_file = sys.stdin.detach()
else:
in_file = sys.stdin
def proces... | # Invariant tested: No matter what random garbage a client throws at us, we
# either successfully parse it, or else throw a RemoteProtocolError, never any
# other error.
import sys
import os
import afl
import h11
if sys.version_info[0] >= 3:
in_file = sys.stdin.detach()
else:
in_file = sys.stdin
afl.init()... | <commit_before># Invariant tested: No matter what random garbage a client throws at us, we
# either successfully parse it, or else throw a RemoteProtocolError, never any
# other error.
import sys
import os
import afl
import h11
if sys.version_info[0] >= 3:
in_file = sys.stdin.detach()
else:
in_file = sys.st... |
9e0e8f37942b85d9ebd86b2da05bb8eb54c99e7d | src/minerva/storage/trend/engine.py | src/minerva/storage/trend/engine.py | from contextlib import closing
from minerva.directory import EntityType
from minerva.storage import Engine
from minerva.storage.trend import TableTrendStore
class TrendEngine(Engine):
@staticmethod
def store(package):
"""
Return a function to bind a data source to the store command.
... | from contextlib import closing
from minerva.util import k, identity
from minerva.directory import EntityType
from minerva.storage import Engine
from minerva.storage.trend import TableTrendStore
class TrendEngine(Engine):
@staticmethod
def store(package, filter_package=k(identity)):
"""
Return... | Add functionality to filter a data package before storing | Add functionality to filter a data package before storing
| Python | agpl-3.0 | hendrikx-itc/minerva,hendrikx-itc/minerva | from contextlib import closing
from minerva.directory import EntityType
from minerva.storage import Engine
from minerva.storage.trend import TableTrendStore
class TrendEngine(Engine):
@staticmethod
def store(package):
"""
Return a function to bind a data source to the store command.
... | from contextlib import closing
from minerva.util import k, identity
from minerva.directory import EntityType
from minerva.storage import Engine
from minerva.storage.trend import TableTrendStore
class TrendEngine(Engine):
@staticmethod
def store(package, filter_package=k(identity)):
"""
Return... | <commit_before>from contextlib import closing
from minerva.directory import EntityType
from minerva.storage import Engine
from minerva.storage.trend import TableTrendStore
class TrendEngine(Engine):
@staticmethod
def store(package):
"""
Return a function to bind a data source to the store com... | from contextlib import closing
from minerva.util import k, identity
from minerva.directory import EntityType
from minerva.storage import Engine
from minerva.storage.trend import TableTrendStore
class TrendEngine(Engine):
@staticmethod
def store(package, filter_package=k(identity)):
"""
Return... | from contextlib import closing
from minerva.directory import EntityType
from minerva.storage import Engine
from minerva.storage.trend import TableTrendStore
class TrendEngine(Engine):
@staticmethod
def store(package):
"""
Return a function to bind a data source to the store command.
... | <commit_before>from contextlib import closing
from minerva.directory import EntityType
from minerva.storage import Engine
from minerva.storage.trend import TableTrendStore
class TrendEngine(Engine):
@staticmethod
def store(package):
"""
Return a function to bind a data source to the store com... |
842007194a9a5736d8e33d6152cd1bfe934e24bc | smashcache/cache/filler.py | smashcache/cache/filler.py | # Copyright (c) 2015 Sachi King
#
# 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... | # Copyright (c) 2015 Sachi King
#
# 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... | Fix print with subsition instead of concat | Fix print with subsition instead of concat
| Python | apache-2.0 | nakato/smashcache | # Copyright (c) 2015 Sachi King
#
# 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... | # Copyright (c) 2015 Sachi King
#
# 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... | <commit_before># Copyright (c) 2015 Sachi King
#
# 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 agree... | # Copyright (c) 2015 Sachi King
#
# 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... | # Copyright (c) 2015 Sachi King
#
# 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... | <commit_before># Copyright (c) 2015 Sachi King
#
# 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 agree... |
e955cebb8872f5d073739c43936aebd100636c49 | grako/rendering.py | grako/rendering.py | # -*- coding: utf-8 -*-
from __future__ import print_function, division, absolute_import, unicode_literals
import itertools
from .util import trim
def render(item, **fields):
""" Render the given item
"""
if item is None:
return ''
elif isinstance(item, Renderer):
return item.render(**f... | # -*- coding: utf-8 -*-
from __future__ import print_function, division, absolute_import, unicode_literals
import itertools
from .util import trim
def render(item, **fields):
""" Render the given item
"""
if item is None:
return ''
elif isinstance(item, Renderer):
return item.render(**f... | Allow render to take a template different from the default one. | Allow render to take a template different from the default one.
| Python | bsd-2-clause | vmuriart/grako,frnknglrt/grako | # -*- coding: utf-8 -*-
from __future__ import print_function, division, absolute_import, unicode_literals
import itertools
from .util import trim
def render(item, **fields):
""" Render the given item
"""
if item is None:
return ''
elif isinstance(item, Renderer):
return item.render(**f... | # -*- coding: utf-8 -*-
from __future__ import print_function, division, absolute_import, unicode_literals
import itertools
from .util import trim
def render(item, **fields):
""" Render the given item
"""
if item is None:
return ''
elif isinstance(item, Renderer):
return item.render(**f... | <commit_before># -*- coding: utf-8 -*-
from __future__ import print_function, division, absolute_import, unicode_literals
import itertools
from .util import trim
def render(item, **fields):
""" Render the given item
"""
if item is None:
return ''
elif isinstance(item, Renderer):
return ... | # -*- coding: utf-8 -*-
from __future__ import print_function, division, absolute_import, unicode_literals
import itertools
from .util import trim
def render(item, **fields):
""" Render the given item
"""
if item is None:
return ''
elif isinstance(item, Renderer):
return item.render(**f... | # -*- coding: utf-8 -*-
from __future__ import print_function, division, absolute_import, unicode_literals
import itertools
from .util import trim
def render(item, **fields):
""" Render the given item
"""
if item is None:
return ''
elif isinstance(item, Renderer):
return item.render(**f... | <commit_before># -*- coding: utf-8 -*-
from __future__ import print_function, division, absolute_import, unicode_literals
import itertools
from .util import trim
def render(item, **fields):
""" Render the given item
"""
if item is None:
return ''
elif isinstance(item, Renderer):
return ... |
f9409c5e14dc38047365b30da7d1ee2f2084fc72 | numpy/fft/info.py | numpy/fft/info.py | """\
Core FFT routines
==================
Standard FFTs
fft
ifft
fft2
ifft2
fftn
ifftn
Real FFTs
refft
irefft
refft2
irefft2
refftn
irefftn
Hermite FFTs
hfft
ihfft
"""
depends = ['core']
| """\
Core FFT routines
==================
Standard FFTs
fft
ifft
fft2
ifft2
fftn
ifftn
Real FFTs
rfft
irfft
rfft2
irfft2
rfftn
irfftn
Hermite FFTs
hfft
ihfft
"""
depends = ['core']
| Fix documentation of fft sub-package to eliminate references to refft. | Fix documentation of fft sub-package to eliminate references to refft.
| Python | bsd-3-clause | MaPePeR/numpy,kirillzhuravlev/numpy,jakirkham/numpy,gmcastil/numpy,nguyentu1602/numpy,Linkid/numpy,jakirkham/numpy,pyparallel/numpy,jankoslavic/numpy,yiakwy/numpy,nguyentu1602/numpy,kiwifb/numpy,naritta/numpy,grlee77/numpy,numpy/numpy-refactor,bertrand-l/numpy,mhvk/numpy,ahaldane/numpy,astrofrog/numpy,ewmoore/numpy,skw... | """\
Core FFT routines
==================
Standard FFTs
fft
ifft
fft2
ifft2
fftn
ifftn
Real FFTs
refft
irefft
refft2
irefft2
refftn
irefftn
Hermite FFTs
hfft
ihfft
"""
depends = ['core']
Fix documentation of fft sub-package to eliminate references to refft. | """\
Core FFT routines
==================
Standard FFTs
fft
ifft
fft2
ifft2
fftn
ifftn
Real FFTs
rfft
irfft
rfft2
irfft2
rfftn
irfftn
Hermite FFTs
hfft
ihfft
"""
depends = ['core']
| <commit_before>"""\
Core FFT routines
==================
Standard FFTs
fft
ifft
fft2
ifft2
fftn
ifftn
Real FFTs
refft
irefft
refft2
irefft2
refftn
irefftn
Hermite FFTs
hfft
ihfft
"""
depends = ['core']
<commit_msg>Fix documentation of fft sub-package to eliminate refe... | """\
Core FFT routines
==================
Standard FFTs
fft
ifft
fft2
ifft2
fftn
ifftn
Real FFTs
rfft
irfft
rfft2
irfft2
rfftn
irfftn
Hermite FFTs
hfft
ihfft
"""
depends = ['core']
| """\
Core FFT routines
==================
Standard FFTs
fft
ifft
fft2
ifft2
fftn
ifftn
Real FFTs
refft
irefft
refft2
irefft2
refftn
irefftn
Hermite FFTs
hfft
ihfft
"""
depends = ['core']
Fix documentation of fft sub-package to eliminate references to refft."""\
Core F... | <commit_before>"""\
Core FFT routines
==================
Standard FFTs
fft
ifft
fft2
ifft2
fftn
ifftn
Real FFTs
refft
irefft
refft2
irefft2
refftn
irefftn
Hermite FFTs
hfft
ihfft
"""
depends = ['core']
<commit_msg>Fix documentation of fft sub-package to eliminate refe... |
013a3f11453787e18f7acd08c7e54fede59b1b01 | letsencrypt/__init__.py | letsencrypt/__init__.py | """Let's Encrypt client."""
# version number like 1.2.3a0, must have at least 2 parts, like 1.2
__version__ = '0.1.0.dev0'
| """Let's Encrypt client."""
# version number like 1.2.3a0, must have at least 2 parts, like 1.2
# '0.1.0.dev0'
__version__ = '0.1.0'
| Switch to "next production release" as the version in the tree | Switch to "next production release" as the version in the tree
| Python | apache-2.0 | mitnk/letsencrypt,brentdax/letsencrypt,brentdax/letsencrypt,goofwear/letsencrypt,jtl999/certbot,dietsche/letsencrypt,lmcro/letsencrypt,TheBoegl/letsencrypt,xgin/letsencrypt,letsencrypt/letsencrypt,wteiken/letsencrypt,wteiken/letsencrypt,thanatos/lets-encrypt-preview,VladimirTyrin/letsencrypt,jtl999/certbot,twstrike/le_... | """Let's Encrypt client."""
# version number like 1.2.3a0, must have at least 2 parts, like 1.2
__version__ = '0.1.0.dev0'
Switch to "next production release" as the version in the tree | """Let's Encrypt client."""
# version number like 1.2.3a0, must have at least 2 parts, like 1.2
# '0.1.0.dev0'
__version__ = '0.1.0'
| <commit_before>"""Let's Encrypt client."""
# version number like 1.2.3a0, must have at least 2 parts, like 1.2
__version__ = '0.1.0.dev0'
<commit_msg>Switch to "next production release" as the version in the tree<commit_after> | """Let's Encrypt client."""
# version number like 1.2.3a0, must have at least 2 parts, like 1.2
# '0.1.0.dev0'
__version__ = '0.1.0'
| """Let's Encrypt client."""
# version number like 1.2.3a0, must have at least 2 parts, like 1.2
__version__ = '0.1.0.dev0'
Switch to "next production release" as the version in the tree"""Let's Encrypt client."""
# version number like 1.2.3a0, must have at least 2 parts, like 1.2
# '0.1.0.dev0'
__version__ = '0.1.0'
| <commit_before>"""Let's Encrypt client."""
# version number like 1.2.3a0, must have at least 2 parts, like 1.2
__version__ = '0.1.0.dev0'
<commit_msg>Switch to "next production release" as the version in the tree<commit_after>"""Let's Encrypt client."""
# version number like 1.2.3a0, must have at least 2 parts, like ... |
a564f572bdccbd2370b2eb1026c47e367556fff9 | test/integration_test.py | test/integration_test.py | import sys
from subprocess import Popen, PIPE
from time import sleep
import requests
def get_with_retries(url):
n = 0
while True:
try:
return requests.get(url)
except requests.ConnectionError:
if n < 5:
n += 1
sleep(0.1)
else:
... | import sys
from subprocess import Popen, PIPE
from time import sleep
import requests
def get_with_retries(url):
n = 0
while True:
try:
return requests.get(url)
except requests.ConnectionError:
if n < 20:
n += 1
sleep(0.1)
else:... | Allow more time for jasmine to start up in tests | Allow more time for jasmine to start up in tests
| Python | mit | jasmine/jasmine-py,jasmine/jasmine-py,jasmine/jasmine-py | import sys
from subprocess import Popen, PIPE
from time import sleep
import requests
def get_with_retries(url):
n = 0
while True:
try:
return requests.get(url)
except requests.ConnectionError:
if n < 5:
n += 1
sleep(0.1)
else:
... | import sys
from subprocess import Popen, PIPE
from time import sleep
import requests
def get_with_retries(url):
n = 0
while True:
try:
return requests.get(url)
except requests.ConnectionError:
if n < 20:
n += 1
sleep(0.1)
else:... | <commit_before>import sys
from subprocess import Popen, PIPE
from time import sleep
import requests
def get_with_retries(url):
n = 0
while True:
try:
return requests.get(url)
except requests.ConnectionError:
if n < 5:
n += 1
sleep(0.1)
... | import sys
from subprocess import Popen, PIPE
from time import sleep
import requests
def get_with_retries(url):
n = 0
while True:
try:
return requests.get(url)
except requests.ConnectionError:
if n < 20:
n += 1
sleep(0.1)
else:... | import sys
from subprocess import Popen, PIPE
from time import sleep
import requests
def get_with_retries(url):
n = 0
while True:
try:
return requests.get(url)
except requests.ConnectionError:
if n < 5:
n += 1
sleep(0.1)
else:
... | <commit_before>import sys
from subprocess import Popen, PIPE
from time import sleep
import requests
def get_with_retries(url):
n = 0
while True:
try:
return requests.get(url)
except requests.ConnectionError:
if n < 5:
n += 1
sleep(0.1)
... |
468e82418ceec8eb453054c1b3fbce433a27240f | keyring/__init__.py | keyring/__init__.py | from __future__ import absolute_import
from .core import (set_keyring, get_keyring, set_password, get_password,
delete_password)
from .getpassbackend import get_password as get_pass_get_password
try:
import pkg_resources
__version__ = pkg_resources.get_distribution('keyring').version
except... | from __future__ import absolute_import
from .core import (set_keyring, get_keyring, set_password, get_password,
delete_password)
from .getpassbackend import get_password as get_pass_get_password
__all__ = (
'set_keyring', 'get_keyring', 'set_password', 'get_password',
'delete_password', 'ge... | Remove usage of pkg_resources, which has huge import overhead. | Remove usage of pkg_resources, which has huge import overhead. | Python | mit | jaraco/keyring | from __future__ import absolute_import
from .core import (set_keyring, get_keyring, set_password, get_password,
delete_password)
from .getpassbackend import get_password as get_pass_get_password
try:
import pkg_resources
__version__ = pkg_resources.get_distribution('keyring').version
except... | from __future__ import absolute_import
from .core import (set_keyring, get_keyring, set_password, get_password,
delete_password)
from .getpassbackend import get_password as get_pass_get_password
__all__ = (
'set_keyring', 'get_keyring', 'set_password', 'get_password',
'delete_password', 'ge... | <commit_before>from __future__ import absolute_import
from .core import (set_keyring, get_keyring, set_password, get_password,
delete_password)
from .getpassbackend import get_password as get_pass_get_password
try:
import pkg_resources
__version__ = pkg_resources.get_distribution('keyring')... | from __future__ import absolute_import
from .core import (set_keyring, get_keyring, set_password, get_password,
delete_password)
from .getpassbackend import get_password as get_pass_get_password
__all__ = (
'set_keyring', 'get_keyring', 'set_password', 'get_password',
'delete_password', 'ge... | from __future__ import absolute_import
from .core import (set_keyring, get_keyring, set_password, get_password,
delete_password)
from .getpassbackend import get_password as get_pass_get_password
try:
import pkg_resources
__version__ = pkg_resources.get_distribution('keyring').version
except... | <commit_before>from __future__ import absolute_import
from .core import (set_keyring, get_keyring, set_password, get_password,
delete_password)
from .getpassbackend import get_password as get_pass_get_password
try:
import pkg_resources
__version__ = pkg_resources.get_distribution('keyring')... |
8fbd999bb6d4db865cd04e428533ea97ce139a23 | tests/test_exceptions.py | tests/test_exceptions.py | import unittest
import os
import battlenet
PUBLIC_KEY = os.environ.get('BNET_PUBLIC_KEY')
PRIVATE_KEY = os.environ.get('BNET_PRIVATE_KEY')
class ExceptionTest(unittest.TestCase):
def setUp(self):
self.connection = battlenet.Connection(public_key=PUBLIC_KEY, private_key=PRIVATE_KEY)
def test_character... | import sys
if sys.version_info < (2, 7):
import unittest2 as unittest
else:
import unittest as unittest
import os
import battlenet
PUBLIC_KEY = os.environ.get('BNET_PUBLIC_KEY')
PRIVATE_KEY = os.environ.get('BNET_PRIVATE_KEY')
class ExceptionTest(unittest.TestCase):
def setUp(self):
self.connectio... | Use unittest2 when python version is less than 2.7. | Use unittest2 when python version is less than 2.7.
In Google App Engine (GAE) you have to use unittest2 if the unit test code uses any of
the capabilities added in Python 2.7 to the unittest module.
| Python | mit | PuckCh/battlenet,vishnevskiy/battlenet | import unittest
import os
import battlenet
PUBLIC_KEY = os.environ.get('BNET_PUBLIC_KEY')
PRIVATE_KEY = os.environ.get('BNET_PRIVATE_KEY')
class ExceptionTest(unittest.TestCase):
def setUp(self):
self.connection = battlenet.Connection(public_key=PUBLIC_KEY, private_key=PRIVATE_KEY)
def test_character... | import sys
if sys.version_info < (2, 7):
import unittest2 as unittest
else:
import unittest as unittest
import os
import battlenet
PUBLIC_KEY = os.environ.get('BNET_PUBLIC_KEY')
PRIVATE_KEY = os.environ.get('BNET_PRIVATE_KEY')
class ExceptionTest(unittest.TestCase):
def setUp(self):
self.connectio... | <commit_before>import unittest
import os
import battlenet
PUBLIC_KEY = os.environ.get('BNET_PUBLIC_KEY')
PRIVATE_KEY = os.environ.get('BNET_PRIVATE_KEY')
class ExceptionTest(unittest.TestCase):
def setUp(self):
self.connection = battlenet.Connection(public_key=PUBLIC_KEY, private_key=PRIVATE_KEY)
def... | import sys
if sys.version_info < (2, 7):
import unittest2 as unittest
else:
import unittest as unittest
import os
import battlenet
PUBLIC_KEY = os.environ.get('BNET_PUBLIC_KEY')
PRIVATE_KEY = os.environ.get('BNET_PRIVATE_KEY')
class ExceptionTest(unittest.TestCase):
def setUp(self):
self.connectio... | import unittest
import os
import battlenet
PUBLIC_KEY = os.environ.get('BNET_PUBLIC_KEY')
PRIVATE_KEY = os.environ.get('BNET_PRIVATE_KEY')
class ExceptionTest(unittest.TestCase):
def setUp(self):
self.connection = battlenet.Connection(public_key=PUBLIC_KEY, private_key=PRIVATE_KEY)
def test_character... | <commit_before>import unittest
import os
import battlenet
PUBLIC_KEY = os.environ.get('BNET_PUBLIC_KEY')
PRIVATE_KEY = os.environ.get('BNET_PRIVATE_KEY')
class ExceptionTest(unittest.TestCase):
def setUp(self):
self.connection = battlenet.Connection(public_key=PUBLIC_KEY, private_key=PRIVATE_KEY)
def... |
25b0164b78298475513a45e7a6d5574d32c280f7 | tests/test_naivebayes.py | tests/test_naivebayes.py | import ML.naivebayes as naivebayes
import data
import numpy as np
def test_gaussian_naive_bayes():
X, y = data.categorical_2Dmatrix_data()
nb = naivebayes.GaussianNaiveBayes()
nb.fit(X, y)
for index, row in enumerate(X):
predicted_y = nb.predict(row)
assert predicted_y == y[index]
def... | import ML.naivebayes as naivebayes
import data
def test_gaussian_naive_bayes():
X, y = data.categorical_2Dmatrix_data()
nb = naivebayes.GaussianNaiveBayes()
nb.fit(X, y)
for index, row in enumerate(X):
predicted_y = nb.predict(row)
assert predicted_y == y[index]
def test_gaussian_nai... | Rename tests to avoid name re-use | Rename tests to avoid name re-use
| Python | mit | christopherjenness/ML-lib | import ML.naivebayes as naivebayes
import data
import numpy as np
def test_gaussian_naive_bayes():
X, y = data.categorical_2Dmatrix_data()
nb = naivebayes.GaussianNaiveBayes()
nb.fit(X, y)
for index, row in enumerate(X):
predicted_y = nb.predict(row)
assert predicted_y == y[index]
def... | import ML.naivebayes as naivebayes
import data
def test_gaussian_naive_bayes():
X, y = data.categorical_2Dmatrix_data()
nb = naivebayes.GaussianNaiveBayes()
nb.fit(X, y)
for index, row in enumerate(X):
predicted_y = nb.predict(row)
assert predicted_y == y[index]
def test_gaussian_nai... | <commit_before>import ML.naivebayes as naivebayes
import data
import numpy as np
def test_gaussian_naive_bayes():
X, y = data.categorical_2Dmatrix_data()
nb = naivebayes.GaussianNaiveBayes()
nb.fit(X, y)
for index, row in enumerate(X):
predicted_y = nb.predict(row)
assert predicted_y =... | import ML.naivebayes as naivebayes
import data
def test_gaussian_naive_bayes():
X, y = data.categorical_2Dmatrix_data()
nb = naivebayes.GaussianNaiveBayes()
nb.fit(X, y)
for index, row in enumerate(X):
predicted_y = nb.predict(row)
assert predicted_y == y[index]
def test_gaussian_nai... | import ML.naivebayes as naivebayes
import data
import numpy as np
def test_gaussian_naive_bayes():
X, y = data.categorical_2Dmatrix_data()
nb = naivebayes.GaussianNaiveBayes()
nb.fit(X, y)
for index, row in enumerate(X):
predicted_y = nb.predict(row)
assert predicted_y == y[index]
def... | <commit_before>import ML.naivebayes as naivebayes
import data
import numpy as np
def test_gaussian_naive_bayes():
X, y = data.categorical_2Dmatrix_data()
nb = naivebayes.GaussianNaiveBayes()
nb.fit(X, y)
for index, row in enumerate(X):
predicted_y = nb.predict(row)
assert predicted_y =... |
a6bca7eb3825e9c9722f3fc2dcff2a09dfd47f99 | runserver.py | runserver.py | #!/usr/bin/env python3
from argparse import ArgumentParser
from argparse import FileType
from os.path import dirname
from os.path import join
from connexion import App
from opwen_email_server.utils.imports import can_import
try:
# noinspection PyUnresolvedReferences
from dotenv import load_dotenv
load_d... | #!/usr/bin/env python3
from connexion import App
from opwen_email_server.utils.imports import can_import
_servers = list(filter(can_import, ('tornado', 'gevent', 'flask')))
_hosts = ['127.0.0.1', '0.0.0.0']
_server = _servers[0]
_host = _hosts[0]
_port = 8080
_ui = False
def build_app(apis, host=_host, port=_port... | Make script importable without side-effects | Make script importable without side-effects
This enables for example wrapping the runserver script in a wsgi server
like gunicorn that doesn't support passing args to the downstream app.
| Python | apache-2.0 | ascoderu/opwen-cloudserver,ascoderu/opwen-cloudserver | #!/usr/bin/env python3
from argparse import ArgumentParser
from argparse import FileType
from os.path import dirname
from os.path import join
from connexion import App
from opwen_email_server.utils.imports import can_import
try:
# noinspection PyUnresolvedReferences
from dotenv import load_dotenv
load_d... | #!/usr/bin/env python3
from connexion import App
from opwen_email_server.utils.imports import can_import
_servers = list(filter(can_import, ('tornado', 'gevent', 'flask')))
_hosts = ['127.0.0.1', '0.0.0.0']
_server = _servers[0]
_host = _hosts[0]
_port = 8080
_ui = False
def build_app(apis, host=_host, port=_port... | <commit_before>#!/usr/bin/env python3
from argparse import ArgumentParser
from argparse import FileType
from os.path import dirname
from os.path import join
from connexion import App
from opwen_email_server.utils.imports import can_import
try:
# noinspection PyUnresolvedReferences
from dotenv import load_do... | #!/usr/bin/env python3
from connexion import App
from opwen_email_server.utils.imports import can_import
_servers = list(filter(can_import, ('tornado', 'gevent', 'flask')))
_hosts = ['127.0.0.1', '0.0.0.0']
_server = _servers[0]
_host = _hosts[0]
_port = 8080
_ui = False
def build_app(apis, host=_host, port=_port... | #!/usr/bin/env python3
from argparse import ArgumentParser
from argparse import FileType
from os.path import dirname
from os.path import join
from connexion import App
from opwen_email_server.utils.imports import can_import
try:
# noinspection PyUnresolvedReferences
from dotenv import load_dotenv
load_d... | <commit_before>#!/usr/bin/env python3
from argparse import ArgumentParser
from argparse import FileType
from os.path import dirname
from os.path import join
from connexion import App
from opwen_email_server.utils.imports import can_import
try:
# noinspection PyUnresolvedReferences
from dotenv import load_do... |
921df8b8309b40e7a69c2fa0434a51c1cce82c28 | examples/rpc_pipeline.py | examples/rpc_pipeline.py | import asyncio
import aiozmq.rpc
class Handler(aiozmq.rpc.AttrHandler):
@aiozmq.rpc.method
def handle_some_event(self, a: int, b: int):
pass
@asyncio.coroutine
def go():
listener = yield from aiozmq.rpc.serve_pipeline(
Handler(), bind='tcp://*:*')
listener_addr = next(iter(listener.... | import asyncio
import aiozmq.rpc
from itertools import count
class Handler(aiozmq.rpc.AttrHandler):
def __init__(self):
self.connected = False
@aiozmq.rpc.method
def remote_func(self, step, a: int, b: int):
self.connected = True
print("HANDLER", step, a, b)
@asyncio.coroutine
d... | Make rpc pipeine example stable | Make rpc pipeine example stable
| Python | bsd-2-clause | claws/aiozmq,MetaMemoryT/aiozmq,asteven/aiozmq,aio-libs/aiozmq | import asyncio
import aiozmq.rpc
class Handler(aiozmq.rpc.AttrHandler):
@aiozmq.rpc.method
def handle_some_event(self, a: int, b: int):
pass
@asyncio.coroutine
def go():
listener = yield from aiozmq.rpc.serve_pipeline(
Handler(), bind='tcp://*:*')
listener_addr = next(iter(listener.... | import asyncio
import aiozmq.rpc
from itertools import count
class Handler(aiozmq.rpc.AttrHandler):
def __init__(self):
self.connected = False
@aiozmq.rpc.method
def remote_func(self, step, a: int, b: int):
self.connected = True
print("HANDLER", step, a, b)
@asyncio.coroutine
d... | <commit_before>import asyncio
import aiozmq.rpc
class Handler(aiozmq.rpc.AttrHandler):
@aiozmq.rpc.method
def handle_some_event(self, a: int, b: int):
pass
@asyncio.coroutine
def go():
listener = yield from aiozmq.rpc.serve_pipeline(
Handler(), bind='tcp://*:*')
listener_addr = next... | import asyncio
import aiozmq.rpc
from itertools import count
class Handler(aiozmq.rpc.AttrHandler):
def __init__(self):
self.connected = False
@aiozmq.rpc.method
def remote_func(self, step, a: int, b: int):
self.connected = True
print("HANDLER", step, a, b)
@asyncio.coroutine
d... | import asyncio
import aiozmq.rpc
class Handler(aiozmq.rpc.AttrHandler):
@aiozmq.rpc.method
def handle_some_event(self, a: int, b: int):
pass
@asyncio.coroutine
def go():
listener = yield from aiozmq.rpc.serve_pipeline(
Handler(), bind='tcp://*:*')
listener_addr = next(iter(listener.... | <commit_before>import asyncio
import aiozmq.rpc
class Handler(aiozmq.rpc.AttrHandler):
@aiozmq.rpc.method
def handle_some_event(self, a: int, b: int):
pass
@asyncio.coroutine
def go():
listener = yield from aiozmq.rpc.serve_pipeline(
Handler(), bind='tcp://*:*')
listener_addr = next... |
c5fd251736d586840563979231ff4065a4e225f1 | data_collection/h5manager.py | data_collection/h5manager.py | # -*- coding:utf-8 -*-
import tables
import os
def init_data_h5(filename):
"""Initialize a data HDF5 file"""
# Raise en error if the file already exists
try:
os.open(filename, os.O_WRONLY | os.O_CREAT | os.O_EXCL, 0644)
except OSError, e:
raise e
# Else, continue by creating the f... | # -*- coding:utf-8 -*-
import tables
import os
def init_data_h5(filename):
"""Initialize a data HDF5 file"""
if not file_exists(filename):
with tables.openFile(filename, 'w') as f:
setattr(f.root._v_attrs, 'n_simu', 0)
def file_exists(filename):
"""Check if a file `filename` exists.... | Add a function to check if a file exists | Add a function to check if a file exists
| Python | mit | neuro-lyon/multiglom-model,neuro-lyon/multiglom-model | # -*- coding:utf-8 -*-
import tables
import os
def init_data_h5(filename):
"""Initialize a data HDF5 file"""
# Raise en error if the file already exists
try:
os.open(filename, os.O_WRONLY | os.O_CREAT | os.O_EXCL, 0644)
except OSError, e:
raise e
# Else, continue by creating the f... | # -*- coding:utf-8 -*-
import tables
import os
def init_data_h5(filename):
"""Initialize a data HDF5 file"""
if not file_exists(filename):
with tables.openFile(filename, 'w') as f:
setattr(f.root._v_attrs, 'n_simu', 0)
def file_exists(filename):
"""Check if a file `filename` exists.... | <commit_before># -*- coding:utf-8 -*-
import tables
import os
def init_data_h5(filename):
"""Initialize a data HDF5 file"""
# Raise en error if the file already exists
try:
os.open(filename, os.O_WRONLY | os.O_CREAT | os.O_EXCL, 0644)
except OSError, e:
raise e
# Else, continue by... | # -*- coding:utf-8 -*-
import tables
import os
def init_data_h5(filename):
"""Initialize a data HDF5 file"""
if not file_exists(filename):
with tables.openFile(filename, 'w') as f:
setattr(f.root._v_attrs, 'n_simu', 0)
def file_exists(filename):
"""Check if a file `filename` exists.... | # -*- coding:utf-8 -*-
import tables
import os
def init_data_h5(filename):
"""Initialize a data HDF5 file"""
# Raise en error if the file already exists
try:
os.open(filename, os.O_WRONLY | os.O_CREAT | os.O_EXCL, 0644)
except OSError, e:
raise e
# Else, continue by creating the f... | <commit_before># -*- coding:utf-8 -*-
import tables
import os
def init_data_h5(filename):
"""Initialize a data HDF5 file"""
# Raise en error if the file already exists
try:
os.open(filename, os.O_WRONLY | os.O_CREAT | os.O_EXCL, 0644)
except OSError, e:
raise e
# Else, continue by... |
b17472c86ffca7811246080cf3b4b3f3b84e36b1 | common/src/tests/common/components/test_command.py | common/src/tests/common/components/test_command.py | #!/usr/bin/python3
import unittest
from gosa.common.components.command import *
class CommandTestCase(unittest.TestCase):
"""Docs"""
@Command(__help__="TEST")
def test_command(self):
pass
"""Docs"""
@Command()
def test_command2(self):
pass
# agent and client terms... | #!/usr/bin/python3
import unittest
from gosa.common.components.command import *
class CommandTestCase(unittest.TestCase):
@Command(__help__="TEST")
def test_command(self):
pass
@Command()
def test_command2(self):
"""Docs"""
pass
# agent and client terms still in u... | Fix in tests: Docstring at wrong location | Fix in tests: Docstring at wrong location
| Python | lgpl-2.1 | gonicus/gosa,gonicus/gosa,gonicus/gosa,gonicus/gosa | #!/usr/bin/python3
import unittest
from gosa.common.components.command import *
class CommandTestCase(unittest.TestCase):
"""Docs"""
@Command(__help__="TEST")
def test_command(self):
pass
"""Docs"""
@Command()
def test_command2(self):
pass
# agent and client terms... | #!/usr/bin/python3
import unittest
from gosa.common.components.command import *
class CommandTestCase(unittest.TestCase):
@Command(__help__="TEST")
def test_command(self):
pass
@Command()
def test_command2(self):
"""Docs"""
pass
# agent and client terms still in u... | <commit_before>#!/usr/bin/python3
import unittest
from gosa.common.components.command import *
class CommandTestCase(unittest.TestCase):
"""Docs"""
@Command(__help__="TEST")
def test_command(self):
pass
"""Docs"""
@Command()
def test_command2(self):
pass
# agent a... | #!/usr/bin/python3
import unittest
from gosa.common.components.command import *
class CommandTestCase(unittest.TestCase):
@Command(__help__="TEST")
def test_command(self):
pass
@Command()
def test_command2(self):
"""Docs"""
pass
# agent and client terms still in u... | #!/usr/bin/python3
import unittest
from gosa.common.components.command import *
class CommandTestCase(unittest.TestCase):
"""Docs"""
@Command(__help__="TEST")
def test_command(self):
pass
"""Docs"""
@Command()
def test_command2(self):
pass
# agent and client terms... | <commit_before>#!/usr/bin/python3
import unittest
from gosa.common.components.command import *
class CommandTestCase(unittest.TestCase):
"""Docs"""
@Command(__help__="TEST")
def test_command(self):
pass
"""Docs"""
@Command()
def test_command2(self):
pass
# agent a... |
502e01be7fdf427e3fbbf03887bbb323d8c74d43 | src/pi/pushrpc.py | src/pi/pushrpc.py | """Pusher intergration for messages from the cloud."""
import json
import logging
import Queue
import sys
from common import creds
from pusherclient import Pusher
class PushRPC(object):
"""Wrapper for pusher integration."""
def __init__(self):
self._queue = Queue.Queue()
self._pusher = Pusher(creds.pus... | """Pusher intergration for messages from the cloud."""
import json
import logging
import Queue
import sys
from common import creds
from pusherclient import Pusher
class PushRPC(object):
"""Wrapper for pusher integration."""
def __init__(self):
self._queue = Queue.Queue()
self._pusher = Pusher(creds.pus... | Make the script respond to ctrl-c | Make the script respond to ctrl-c
| Python | mit | tomwilkie/awesomation,tomwilkie/awesomation,tomwilkie/awesomation,tomwilkie/awesomation,tomwilkie/awesomation | """Pusher intergration for messages from the cloud."""
import json
import logging
import Queue
import sys
from common import creds
from pusherclient import Pusher
class PushRPC(object):
"""Wrapper for pusher integration."""
def __init__(self):
self._queue = Queue.Queue()
self._pusher = Pusher(creds.pus... | """Pusher intergration for messages from the cloud."""
import json
import logging
import Queue
import sys
from common import creds
from pusherclient import Pusher
class PushRPC(object):
"""Wrapper for pusher integration."""
def __init__(self):
self._queue = Queue.Queue()
self._pusher = Pusher(creds.pus... | <commit_before>"""Pusher intergration for messages from the cloud."""
import json
import logging
import Queue
import sys
from common import creds
from pusherclient import Pusher
class PushRPC(object):
"""Wrapper for pusher integration."""
def __init__(self):
self._queue = Queue.Queue()
self._pusher = P... | """Pusher intergration for messages from the cloud."""
import json
import logging
import Queue
import sys
from common import creds
from pusherclient import Pusher
class PushRPC(object):
"""Wrapper for pusher integration."""
def __init__(self):
self._queue = Queue.Queue()
self._pusher = Pusher(creds.pus... | """Pusher intergration for messages from the cloud."""
import json
import logging
import Queue
import sys
from common import creds
from pusherclient import Pusher
class PushRPC(object):
"""Wrapper for pusher integration."""
def __init__(self):
self._queue = Queue.Queue()
self._pusher = Pusher(creds.pus... | <commit_before>"""Pusher intergration for messages from the cloud."""
import json
import logging
import Queue
import sys
from common import creds
from pusherclient import Pusher
class PushRPC(object):
"""Wrapper for pusher integration."""
def __init__(self):
self._queue = Queue.Queue()
self._pusher = P... |
0f3cd463a2c6920cf4b727c01d0768fdb225acc4 | rl-rc-car/sensor_server.py | rl-rc-car/sensor_server.py | """
This runs continuously and serves our sensor readings when requested.
Base script from:
http://ilab.cs.byu.edu/python/socket/echoserver.html
"""
import socket
from sensors import Sensors
class SensorServer:
def __init__(self, host='', port=8888, size=1024, backlog=5):
self.host = host
self.p... | """
This runs continuously and serves our sensor readings when requested.
Base script from:
http://ilab.cs.byu.edu/python/socket/echoserver.html
"""
import socket
import json
class SensorServer:
def __init__(self, host='', port=8888, size=1024, backlog=5):
self.host = host
self.port = port
... | Update sensor server to grab from disk. | Update sensor server to grab from disk.
| Python | mit | harvitronix/rl-rc-car | """
This runs continuously and serves our sensor readings when requested.
Base script from:
http://ilab.cs.byu.edu/python/socket/echoserver.html
"""
import socket
from sensors import Sensors
class SensorServer:
def __init__(self, host='', port=8888, size=1024, backlog=5):
self.host = host
self.p... | """
This runs continuously and serves our sensor readings when requested.
Base script from:
http://ilab.cs.byu.edu/python/socket/echoserver.html
"""
import socket
import json
class SensorServer:
def __init__(self, host='', port=8888, size=1024, backlog=5):
self.host = host
self.port = port
... | <commit_before>"""
This runs continuously and serves our sensor readings when requested.
Base script from:
http://ilab.cs.byu.edu/python/socket/echoserver.html
"""
import socket
from sensors import Sensors
class SensorServer:
def __init__(self, host='', port=8888, size=1024, backlog=5):
self.host = host... | """
This runs continuously and serves our sensor readings when requested.
Base script from:
http://ilab.cs.byu.edu/python/socket/echoserver.html
"""
import socket
import json
class SensorServer:
def __init__(self, host='', port=8888, size=1024, backlog=5):
self.host = host
self.port = port
... | """
This runs continuously and serves our sensor readings when requested.
Base script from:
http://ilab.cs.byu.edu/python/socket/echoserver.html
"""
import socket
from sensors import Sensors
class SensorServer:
def __init__(self, host='', port=8888, size=1024, backlog=5):
self.host = host
self.p... | <commit_before>"""
This runs continuously and serves our sensor readings when requested.
Base script from:
http://ilab.cs.byu.edu/python/socket/echoserver.html
"""
import socket
from sensors import Sensors
class SensorServer:
def __init__(self, host='', port=8888, size=1024, backlog=5):
self.host = host... |
2007c7190f95a2656715e99af7ca632bbb98b313 | linkatos/firebase.py | linkatos/firebase.py | import pyrebase
def initialise(api_key, project_name):
config = {
"apiKey": api_key,
"authDomain": "{}.firebaseapp.com".format(project_name),
"databaseURL": "https://{}.firebaseio.com".format(project_name),
"storageBucket": "{}.appspot.com".format(project_name),
}
return pyrebase.... | import pyrebase
def initialise(api_key, project_name):
config = {
"apiKey": api_key,
"authDomain": "{}.firebaseapp.com".format(project_name),
"databaseURL": "https://{}.firebaseio.com".format(project_name),
"storageBucket": "{}.appspot.com".format(project_name),
}
return pyrebase.... | Change based on PR comments | refactor: Change based on PR comments
| Python | mit | iwi/linkatos,iwi/linkatos | import pyrebase
def initialise(api_key, project_name):
config = {
"apiKey": api_key,
"authDomain": "{}.firebaseapp.com".format(project_name),
"databaseURL": "https://{}.firebaseio.com".format(project_name),
"storageBucket": "{}.appspot.com".format(project_name),
}
return pyrebase.... | import pyrebase
def initialise(api_key, project_name):
config = {
"apiKey": api_key,
"authDomain": "{}.firebaseapp.com".format(project_name),
"databaseURL": "https://{}.firebaseio.com".format(project_name),
"storageBucket": "{}.appspot.com".format(project_name),
}
return pyrebase.... | <commit_before>import pyrebase
def initialise(api_key, project_name):
config = {
"apiKey": api_key,
"authDomain": "{}.firebaseapp.com".format(project_name),
"databaseURL": "https://{}.firebaseio.com".format(project_name),
"storageBucket": "{}.appspot.com".format(project_name),
}
r... | import pyrebase
def initialise(api_key, project_name):
config = {
"apiKey": api_key,
"authDomain": "{}.firebaseapp.com".format(project_name),
"databaseURL": "https://{}.firebaseio.com".format(project_name),
"storageBucket": "{}.appspot.com".format(project_name),
}
return pyrebase.... | import pyrebase
def initialise(api_key, project_name):
config = {
"apiKey": api_key,
"authDomain": "{}.firebaseapp.com".format(project_name),
"databaseURL": "https://{}.firebaseio.com".format(project_name),
"storageBucket": "{}.appspot.com".format(project_name),
}
return pyrebase.... | <commit_before>import pyrebase
def initialise(api_key, project_name):
config = {
"apiKey": api_key,
"authDomain": "{}.firebaseapp.com".format(project_name),
"databaseURL": "https://{}.firebaseio.com".format(project_name),
"storageBucket": "{}.appspot.com".format(project_name),
}
r... |
abc25f1c510e4792b2de324d12e2fc639e795378 | src/AmpliconAnalysisTyping.py | src/AmpliconAnalysisTyping.py | #! /usr/bin/env python
from pbhla.typing.sequences import type_sequences
if __name__ == '__main__':
import argparse
parser = argparse.ArgumentParser()
add = parser.add_argument
add('amplicon_analysis', metavar='INPUT',
help="Fasta/Fastq/Folder of Amplicon Analysis output")
add('-g', '--gr... | #! /usr/bin/env python
from pbhla.typing.sequences import type_sequences
if __name__ == '__main__':
import argparse
parser = argparse.ArgumentParser()
add = parser.add_argument
add('amplicon_analysis', metavar='INPUT',
help="Fasta/Fastq/Folder of Amplicon Analysis output")
add('-g', '--gr... | Fix default of grouping option for AAT | Fix default of grouping option for AAT
| Python | bsd-3-clause | bnbowman/HlaTools | #! /usr/bin/env python
from pbhla.typing.sequences import type_sequences
if __name__ == '__main__':
import argparse
parser = argparse.ArgumentParser()
add = parser.add_argument
add('amplicon_analysis', metavar='INPUT',
help="Fasta/Fastq/Folder of Amplicon Analysis output")
add('-g', '--gr... | #! /usr/bin/env python
from pbhla.typing.sequences import type_sequences
if __name__ == '__main__':
import argparse
parser = argparse.ArgumentParser()
add = parser.add_argument
add('amplicon_analysis', metavar='INPUT',
help="Fasta/Fastq/Folder of Amplicon Analysis output")
add('-g', '--gr... | <commit_before>#! /usr/bin/env python
from pbhla.typing.sequences import type_sequences
if __name__ == '__main__':
import argparse
parser = argparse.ArgumentParser()
add = parser.add_argument
add('amplicon_analysis', metavar='INPUT',
help="Fasta/Fastq/Folder of Amplicon Analysis output")
... | #! /usr/bin/env python
from pbhla.typing.sequences import type_sequences
if __name__ == '__main__':
import argparse
parser = argparse.ArgumentParser()
add = parser.add_argument
add('amplicon_analysis', metavar='INPUT',
help="Fasta/Fastq/Folder of Amplicon Analysis output")
add('-g', '--gr... | #! /usr/bin/env python
from pbhla.typing.sequences import type_sequences
if __name__ == '__main__':
import argparse
parser = argparse.ArgumentParser()
add = parser.add_argument
add('amplicon_analysis', metavar='INPUT',
help="Fasta/Fastq/Folder of Amplicon Analysis output")
add('-g', '--gr... | <commit_before>#! /usr/bin/env python
from pbhla.typing.sequences import type_sequences
if __name__ == '__main__':
import argparse
parser = argparse.ArgumentParser()
add = parser.add_argument
add('amplicon_analysis', metavar='INPUT',
help="Fasta/Fastq/Folder of Amplicon Analysis output")
... |
9876500ca8a897489e40c1b4e0c6379e18f9e985 | corehq/apps/userreports/transforms/custom/numeric.py | corehq/apps/userreports/transforms/custom/numeric.py | def get_short_decimal_display(num):
return round(num, 2)
| def get_short_decimal_display(num):
try:
return round(num, 2)
except:
return num
| Return num if rounding fails | Return num if rounding fails
| Python | bsd-3-clause | qedsoftware/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq | def get_short_decimal_display(num):
return round(num, 2)
Return num if rounding fails | def get_short_decimal_display(num):
try:
return round(num, 2)
except:
return num
| <commit_before>def get_short_decimal_display(num):
return round(num, 2)
<commit_msg>Return num if rounding fails<commit_after> | def get_short_decimal_display(num):
try:
return round(num, 2)
except:
return num
| def get_short_decimal_display(num):
return round(num, 2)
Return num if rounding failsdef get_short_decimal_display(num):
try:
return round(num, 2)
except:
return num
| <commit_before>def get_short_decimal_display(num):
return round(num, 2)
<commit_msg>Return num if rounding fails<commit_after>def get_short_decimal_display(num):
try:
return round(num, 2)
except:
return num
|
75a598e2b9cf237448cd1b1934d3d58d093808ec | server/scraper/util.py | server/scraper/util.py | import os
import re
import sys
import json
def parse_money(moneystring):
# Sometimes 0 is O :(
moneystring = moneystring.replace("O", "0")
return re.sub("[^0-9,]", "", str(moneystring)).replace(',', '.')
def stderr_print(*args, **kwargs):
print(*args, file=sys.stderr, **kwargs)
def write_json_to_f... | import os
import re
import sys
import json
def parse_money(moneystring):
# Sometimes 0 is O :(
moneystring = moneystring.replace("O", "0")
return re.sub("[^0-9,]", "", str(moneystring)).replace(',', '.')
def stderr_print(*args, **kwargs):
print(*args, file=sys.stderr, **kwargs)
def write_json_to_f... | Fix price in de brug | Fix price in de brug
| Python | mit | ZeusWPI/hydra,ZeusWPI/hydra,ZeusWPI/hydra | import os
import re
import sys
import json
def parse_money(moneystring):
# Sometimes 0 is O :(
moneystring = moneystring.replace("O", "0")
return re.sub("[^0-9,]", "", str(moneystring)).replace(',', '.')
def stderr_print(*args, **kwargs):
print(*args, file=sys.stderr, **kwargs)
def write_json_to_f... | import os
import re
import sys
import json
def parse_money(moneystring):
# Sometimes 0 is O :(
moneystring = moneystring.replace("O", "0")
return re.sub("[^0-9,]", "", str(moneystring)).replace(',', '.')
def stderr_print(*args, **kwargs):
print(*args, file=sys.stderr, **kwargs)
def write_json_to_f... | <commit_before>import os
import re
import sys
import json
def parse_money(moneystring):
# Sometimes 0 is O :(
moneystring = moneystring.replace("O", "0")
return re.sub("[^0-9,]", "", str(moneystring)).replace(',', '.')
def stderr_print(*args, **kwargs):
print(*args, file=sys.stderr, **kwargs)
def ... | import os
import re
import sys
import json
def parse_money(moneystring):
# Sometimes 0 is O :(
moneystring = moneystring.replace("O", "0")
return re.sub("[^0-9,]", "", str(moneystring)).replace(',', '.')
def stderr_print(*args, **kwargs):
print(*args, file=sys.stderr, **kwargs)
def write_json_to_f... | import os
import re
import sys
import json
def parse_money(moneystring):
# Sometimes 0 is O :(
moneystring = moneystring.replace("O", "0")
return re.sub("[^0-9,]", "", str(moneystring)).replace(',', '.')
def stderr_print(*args, **kwargs):
print(*args, file=sys.stderr, **kwargs)
def write_json_to_f... | <commit_before>import os
import re
import sys
import json
def parse_money(moneystring):
# Sometimes 0 is O :(
moneystring = moneystring.replace("O", "0")
return re.sub("[^0-9,]", "", str(moneystring)).replace(',', '.')
def stderr_print(*args, **kwargs):
print(*args, file=sys.stderr, **kwargs)
def ... |
85612f6c512ae5769465050563c4ff0d3d2e7a2b | docs/source/conf.py | docs/source/conf.py | # -*- coding: utf-8 -*-
import sphinx_rtd_theme
extensions = [
# 'sphinx.ext.autodoc',
# 'sphinx.ext.intersphinx',
# 'sphinx.ext.autosummary',
# 'sphinx.ext.viewcode',
# 'sphinx.ext.napoleon',
# 'jupyter_sphinx.embed_widgets',
]
templates_path = ['_templates']
def setup(app):
app.add_jav... | # -*- coding: utf-8 -*-
import sphinx_rtd_theme
extensions = [
# 'sphinx.ext.autodoc',
# 'sphinx.ext.intersphinx',
# 'sphinx.ext.autosummary',
# 'sphinx.ext.viewcode',
# 'sphinx.ext.napoleon',
# 'jupyter_sphinx.embed_widgets',
]
templates_path = ['_templates']
def setup(app):
app.add_jav... | Update HTMLManager in the documentation | Update HTMLManager in the documentation
Signed-off-by: martinRenou <a8278cece597ec79cc59974d3d55dbb79bb38416@gmail.com>
| Python | mit | ellisonbg/leafletwidget,ellisonbg/leafletwidget | # -*- coding: utf-8 -*-
import sphinx_rtd_theme
extensions = [
# 'sphinx.ext.autodoc',
# 'sphinx.ext.intersphinx',
# 'sphinx.ext.autosummary',
# 'sphinx.ext.viewcode',
# 'sphinx.ext.napoleon',
# 'jupyter_sphinx.embed_widgets',
]
templates_path = ['_templates']
def setup(app):
app.add_jav... | # -*- coding: utf-8 -*-
import sphinx_rtd_theme
extensions = [
# 'sphinx.ext.autodoc',
# 'sphinx.ext.intersphinx',
# 'sphinx.ext.autosummary',
# 'sphinx.ext.viewcode',
# 'sphinx.ext.napoleon',
# 'jupyter_sphinx.embed_widgets',
]
templates_path = ['_templates']
def setup(app):
app.add_jav... | <commit_before># -*- coding: utf-8 -*-
import sphinx_rtd_theme
extensions = [
# 'sphinx.ext.autodoc',
# 'sphinx.ext.intersphinx',
# 'sphinx.ext.autosummary',
# 'sphinx.ext.viewcode',
# 'sphinx.ext.napoleon',
# 'jupyter_sphinx.embed_widgets',
]
templates_path = ['_templates']
def setup(app):
... | # -*- coding: utf-8 -*-
import sphinx_rtd_theme
extensions = [
# 'sphinx.ext.autodoc',
# 'sphinx.ext.intersphinx',
# 'sphinx.ext.autosummary',
# 'sphinx.ext.viewcode',
# 'sphinx.ext.napoleon',
# 'jupyter_sphinx.embed_widgets',
]
templates_path = ['_templates']
def setup(app):
app.add_jav... | # -*- coding: utf-8 -*-
import sphinx_rtd_theme
extensions = [
# 'sphinx.ext.autodoc',
# 'sphinx.ext.intersphinx',
# 'sphinx.ext.autosummary',
# 'sphinx.ext.viewcode',
# 'sphinx.ext.napoleon',
# 'jupyter_sphinx.embed_widgets',
]
templates_path = ['_templates']
def setup(app):
app.add_jav... | <commit_before># -*- coding: utf-8 -*-
import sphinx_rtd_theme
extensions = [
# 'sphinx.ext.autodoc',
# 'sphinx.ext.intersphinx',
# 'sphinx.ext.autosummary',
# 'sphinx.ext.viewcode',
# 'sphinx.ext.napoleon',
# 'jupyter_sphinx.embed_widgets',
]
templates_path = ['_templates']
def setup(app):
... |
157c08a6ccd738d5bccfe8145c2a1f1e9d21ba82 | madlib_web_client.py | madlib_web_client.py | import os
from flask import Flask
import psycopg2
from urllib.parse import urlparse
url = urlparse(os.environ["DATABASE_URL"])
# Connect to a database
conn = psycopg2.connect(
database=url.path[1:],
user=url.username,
password=url.password,
host=url.hostname,
port=url.port
)
# Open a cursor to pe... | import os
from flask import Flask
import psycopg2
from urllib.parse import urlparse
url = urlparse(os.environ["DATABASE_URL"])
# Connect to a database
conn = psycopg2.connect(
database=url.path[1:],
user=url.username,
password=url.password,
host=url.hostname,
port=url.port
)
# Open a cursor to pe... | Add a drop table for testing. | Add a drop table for testing.
| Python | isc | appletonmakerspace/madlib,mikeputnam/madlib | import os
from flask import Flask
import psycopg2
from urllib.parse import urlparse
url = urlparse(os.environ["DATABASE_URL"])
# Connect to a database
conn = psycopg2.connect(
database=url.path[1:],
user=url.username,
password=url.password,
host=url.hostname,
port=url.port
)
# Open a cursor to pe... | import os
from flask import Flask
import psycopg2
from urllib.parse import urlparse
url = urlparse(os.environ["DATABASE_URL"])
# Connect to a database
conn = psycopg2.connect(
database=url.path[1:],
user=url.username,
password=url.password,
host=url.hostname,
port=url.port
)
# Open a cursor to pe... | <commit_before>import os
from flask import Flask
import psycopg2
from urllib.parse import urlparse
url = urlparse(os.environ["DATABASE_URL"])
# Connect to a database
conn = psycopg2.connect(
database=url.path[1:],
user=url.username,
password=url.password,
host=url.hostname,
port=url.port
)
# Open... | import os
from flask import Flask
import psycopg2
from urllib.parse import urlparse
url = urlparse(os.environ["DATABASE_URL"])
# Connect to a database
conn = psycopg2.connect(
database=url.path[1:],
user=url.username,
password=url.password,
host=url.hostname,
port=url.port
)
# Open a cursor to pe... | import os
from flask import Flask
import psycopg2
from urllib.parse import urlparse
url = urlparse(os.environ["DATABASE_URL"])
# Connect to a database
conn = psycopg2.connect(
database=url.path[1:],
user=url.username,
password=url.password,
host=url.hostname,
port=url.port
)
# Open a cursor to pe... | <commit_before>import os
from flask import Flask
import psycopg2
from urllib.parse import urlparse
url = urlparse(os.environ["DATABASE_URL"])
# Connect to a database
conn = psycopg2.connect(
database=url.path[1:],
user=url.username,
password=url.password,
host=url.hostname,
port=url.port
)
# Open... |
e1c549fde8f57dcbdf995a165dc8409da8f23c64 | magol/consolegol.py | magol/consolegol.py | #!/usr/bin/python2
from __future__ import print_function
from board import Board
import sys
class GameOfLifeConsole:
def __init__(self):
print('Welcome to PyGol')
print('What board size do you want?')
board_size = raw_input()
while not board_size.isdigit():
print('... | #!/usr/bin/python2
from __future__ import print_function
from board import Board
import sys
class GameOfLifeConsole:
def __init__(self):
print('Welcome to MaGol')
print('What board size do you want?')
board_size = raw_input()
while not board_size.isdigit():
print('... | Update text references in the console version. | Update text references in the console version.
| Python | mit | Macha/MaGol | #!/usr/bin/python2
from __future__ import print_function
from board import Board
import sys
class GameOfLifeConsole:
def __init__(self):
print('Welcome to PyGol')
print('What board size do you want?')
board_size = raw_input()
while not board_size.isdigit():
print('... | #!/usr/bin/python2
from __future__ import print_function
from board import Board
import sys
class GameOfLifeConsole:
def __init__(self):
print('Welcome to MaGol')
print('What board size do you want?')
board_size = raw_input()
while not board_size.isdigit():
print('... | <commit_before>#!/usr/bin/python2
from __future__ import print_function
from board import Board
import sys
class GameOfLifeConsole:
def __init__(self):
print('Welcome to PyGol')
print('What board size do you want?')
board_size = raw_input()
while not board_size.isdigit():
... | #!/usr/bin/python2
from __future__ import print_function
from board import Board
import sys
class GameOfLifeConsole:
def __init__(self):
print('Welcome to MaGol')
print('What board size do you want?')
board_size = raw_input()
while not board_size.isdigit():
print('... | #!/usr/bin/python2
from __future__ import print_function
from board import Board
import sys
class GameOfLifeConsole:
def __init__(self):
print('Welcome to PyGol')
print('What board size do you want?')
board_size = raw_input()
while not board_size.isdigit():
print('... | <commit_before>#!/usr/bin/python2
from __future__ import print_function
from board import Board
import sys
class GameOfLifeConsole:
def __init__(self):
print('Welcome to PyGol')
print('What board size do you want?')
board_size = raw_input()
while not board_size.isdigit():
... |
5e47f95bcc147a9735083f32a15df362bb6dcacd | pcs/packets/__init__.py | pcs/packets/__init__.py | __revision__ = "$Id: __init__.py,v 1.3 2006/06/27 14:45:43 gnn Exp $"
all = ['ethernet',
'loopback',
'ipv4',
'ipv6',
'icmpv4',
'tcp',
'udp',
'data']
| __revision__ = "$Id: __init__.py,v 1.3 2006/06/27 14:45:43 gnn Exp $"
all = ['ethernet',
'loopback',
'ipv4',
'ipv6',
'icmpv4',
'igmpv2',
'igmpv3',
'tcp',
'udp',
'data']
| Connect IGMP to the build. | Connect IGMP to the build.
| Python | bsd-3-clause | gvnn3/PCS,gvnn3/PCS | __revision__ = "$Id: __init__.py,v 1.3 2006/06/27 14:45:43 gnn Exp $"
all = ['ethernet',
'loopback',
'ipv4',
'ipv6',
'icmpv4',
'tcp',
'udp',
'data']
Connect IGMP to the build. | __revision__ = "$Id: __init__.py,v 1.3 2006/06/27 14:45:43 gnn Exp $"
all = ['ethernet',
'loopback',
'ipv4',
'ipv6',
'icmpv4',
'igmpv2',
'igmpv3',
'tcp',
'udp',
'data']
| <commit_before>__revision__ = "$Id: __init__.py,v 1.3 2006/06/27 14:45:43 gnn Exp $"
all = ['ethernet',
'loopback',
'ipv4',
'ipv6',
'icmpv4',
'tcp',
'udp',
'data']
<commit_msg>Connect IGMP to the build.<commit_after> | __revision__ = "$Id: __init__.py,v 1.3 2006/06/27 14:45:43 gnn Exp $"
all = ['ethernet',
'loopback',
'ipv4',
'ipv6',
'icmpv4',
'igmpv2',
'igmpv3',
'tcp',
'udp',
'data']
| __revision__ = "$Id: __init__.py,v 1.3 2006/06/27 14:45:43 gnn Exp $"
all = ['ethernet',
'loopback',
'ipv4',
'ipv6',
'icmpv4',
'tcp',
'udp',
'data']
Connect IGMP to the build.__revision__ = "$Id: __init__.py,v 1.3 2006/06/27 14:45:43 gnn Exp $"
all = ['ethernet',
... | <commit_before>__revision__ = "$Id: __init__.py,v 1.3 2006/06/27 14:45:43 gnn Exp $"
all = ['ethernet',
'loopback',
'ipv4',
'ipv6',
'icmpv4',
'tcp',
'udp',
'data']
<commit_msg>Connect IGMP to the build.<commit_after>__revision__ = "$Id: __init__.py,v 1.3 2006/06/27 14:... |
c848a5a1d94da7919b3272e9e0ee9748091ba04a | md/data/__init__.py | md/data/__init__.py | DEFAULT_URL = "https://s3-us-west-2.amazonaws.com/openpolicingdata/Maryland-Traffic-Stop-Data-2013.zip" # noqa
DATASET_BASENAME = 'PIALog_16-0806'
# DATASET_BASENAME = 'Small-0806'
| DEFAULT_URL = 'https://s3-us-west-2.amazonaws.com/openpolicingdata/PIALog_16-0806.zip' # noqa
DATASET_BASENAME = 'PIALog_16-0806'
# DATASET_BASENAME = 'Small-0806'
| Fix URL to current MD dataset on S3 | Fix URL to current MD dataset on S3
| Python | mit | OpenDataPolicingNC/Traffic-Stops,OpenDataPolicingNC/Traffic-Stops,OpenDataPolicingNC/Traffic-Stops,OpenDataPolicingNC/Traffic-Stops | DEFAULT_URL = "https://s3-us-west-2.amazonaws.com/openpolicingdata/Maryland-Traffic-Stop-Data-2013.zip" # noqa
DATASET_BASENAME = 'PIALog_16-0806'
# DATASET_BASENAME = 'Small-0806'
Fix URL to current MD dataset on S3 | DEFAULT_URL = 'https://s3-us-west-2.amazonaws.com/openpolicingdata/PIALog_16-0806.zip' # noqa
DATASET_BASENAME = 'PIALog_16-0806'
# DATASET_BASENAME = 'Small-0806'
| <commit_before>DEFAULT_URL = "https://s3-us-west-2.amazonaws.com/openpolicingdata/Maryland-Traffic-Stop-Data-2013.zip" # noqa
DATASET_BASENAME = 'PIALog_16-0806'
# DATASET_BASENAME = 'Small-0806'
<commit_msg>Fix URL to current MD dataset on S3<commit_after> | DEFAULT_URL = 'https://s3-us-west-2.amazonaws.com/openpolicingdata/PIALog_16-0806.zip' # noqa
DATASET_BASENAME = 'PIALog_16-0806'
# DATASET_BASENAME = 'Small-0806'
| DEFAULT_URL = "https://s3-us-west-2.amazonaws.com/openpolicingdata/Maryland-Traffic-Stop-Data-2013.zip" # noqa
DATASET_BASENAME = 'PIALog_16-0806'
# DATASET_BASENAME = 'Small-0806'
Fix URL to current MD dataset on S3DEFAULT_URL = 'https://s3-us-west-2.amazonaws.com/openpolicingdata/PIALog_16-0806.zip' # noqa
DATASET_... | <commit_before>DEFAULT_URL = "https://s3-us-west-2.amazonaws.com/openpolicingdata/Maryland-Traffic-Stop-Data-2013.zip" # noqa
DATASET_BASENAME = 'PIALog_16-0806'
# DATASET_BASENAME = 'Small-0806'
<commit_msg>Fix URL to current MD dataset on S3<commit_after>DEFAULT_URL = 'https://s3-us-west-2.amazonaws.com/openpolicing... |
66fdc9b0732b083f6f9bbb7142c8e07f1dd964ff | tests/__init__.py | tests/__init__.py | import threading
import time
from ..send_self import (
WeakGeneratorWrapper,
StrongGeneratorWrapper
)
default_sleep = 0.1
class CustomError(Exception):
pass
def defer(callback, *args, sleep=default_sleep, expected_return=None, call=True,
**kwargs):
def func():
time.sleep(sleep)... | import threading
import time
from ..send_self import WeakGeneratorWrapper
DEFAULT_SLEEP = 0.01
class CustomError(Exception):
pass
def defer(callback, *args, sleep=DEFAULT_SLEEP, expected_return=None, call=True, **kwargs):
def func():
time.sleep(sleep)
if call:
assert expected... | Reduce test runtime by decreasing default sleep | Reduce test runtime by decreasing default sleep
Also remove WeakGeneratorWrapper check until gc tests are implemented.
| Python | mit | FichteFoll/resumeback | import threading
import time
from ..send_self import (
WeakGeneratorWrapper,
StrongGeneratorWrapper
)
default_sleep = 0.1
class CustomError(Exception):
pass
def defer(callback, *args, sleep=default_sleep, expected_return=None, call=True,
**kwargs):
def func():
time.sleep(sleep)... | import threading
import time
from ..send_self import WeakGeneratorWrapper
DEFAULT_SLEEP = 0.01
class CustomError(Exception):
pass
def defer(callback, *args, sleep=DEFAULT_SLEEP, expected_return=None, call=True, **kwargs):
def func():
time.sleep(sleep)
if call:
assert expected... | <commit_before>import threading
import time
from ..send_self import (
WeakGeneratorWrapper,
StrongGeneratorWrapper
)
default_sleep = 0.1
class CustomError(Exception):
pass
def defer(callback, *args, sleep=default_sleep, expected_return=None, call=True,
**kwargs):
def func():
ti... | import threading
import time
from ..send_self import WeakGeneratorWrapper
DEFAULT_SLEEP = 0.01
class CustomError(Exception):
pass
def defer(callback, *args, sleep=DEFAULT_SLEEP, expected_return=None, call=True, **kwargs):
def func():
time.sleep(sleep)
if call:
assert expected... | import threading
import time
from ..send_self import (
WeakGeneratorWrapper,
StrongGeneratorWrapper
)
default_sleep = 0.1
class CustomError(Exception):
pass
def defer(callback, *args, sleep=default_sleep, expected_return=None, call=True,
**kwargs):
def func():
time.sleep(sleep)... | <commit_before>import threading
import time
from ..send_self import (
WeakGeneratorWrapper,
StrongGeneratorWrapper
)
default_sleep = 0.1
class CustomError(Exception):
pass
def defer(callback, *args, sleep=default_sleep, expected_return=None, call=True,
**kwargs):
def func():
ti... |
bc0c460bf6d1cae2e7675e2f484bdac8e84f376e | tools/python/readLogFile.py | tools/python/readLogFile.py | #!/usr/bin/env python
import sys
import subprocess
import signal
def printMsg(msgDict):
print msgDict['name']
print '\t','type: ',msgDict['type']
print '\t','subtype: ',msgDict['subtype']
for key,value in msgDict.items():
if ((key != 'name') and (key != 'type') and (key != 'subtype')):
... | #!/usr/bin/env python
import sys
import subprocess
import signal
# example usage:
# ./readLogFile.py "INFO: headers" /projects/databridge/howard/DataBridge/log/ingest.log Insert.Metadata
# to find and display all of the Insert.Metadata.* messages.
#
# ./readLogFile.py "INFO: headers" /projects/databridge/howard/DataBr... | Add some documentation about how to use this file. | Add some documentation about how to use this file.
| Python | bsd-3-clause | HowardLander/DataBridge,HowardLander/DataBridge,HowardLander/DataBridge,HowardLander/DataBridge | #!/usr/bin/env python
import sys
import subprocess
import signal
def printMsg(msgDict):
print msgDict['name']
print '\t','type: ',msgDict['type']
print '\t','subtype: ',msgDict['subtype']
for key,value in msgDict.items():
if ((key != 'name') and (key != 'type') and (key != 'subtype')):
... | #!/usr/bin/env python
import sys
import subprocess
import signal
# example usage:
# ./readLogFile.py "INFO: headers" /projects/databridge/howard/DataBridge/log/ingest.log Insert.Metadata
# to find and display all of the Insert.Metadata.* messages.
#
# ./readLogFile.py "INFO: headers" /projects/databridge/howard/DataBr... | <commit_before>#!/usr/bin/env python
import sys
import subprocess
import signal
def printMsg(msgDict):
print msgDict['name']
print '\t','type: ',msgDict['type']
print '\t','subtype: ',msgDict['subtype']
for key,value in msgDict.items():
if ((key != 'name') and (key != 'type') and (key != 's... | #!/usr/bin/env python
import sys
import subprocess
import signal
# example usage:
# ./readLogFile.py "INFO: headers" /projects/databridge/howard/DataBridge/log/ingest.log Insert.Metadata
# to find and display all of the Insert.Metadata.* messages.
#
# ./readLogFile.py "INFO: headers" /projects/databridge/howard/DataBr... | #!/usr/bin/env python
import sys
import subprocess
import signal
def printMsg(msgDict):
print msgDict['name']
print '\t','type: ',msgDict['type']
print '\t','subtype: ',msgDict['subtype']
for key,value in msgDict.items():
if ((key != 'name') and (key != 'type') and (key != 'subtype')):
... | <commit_before>#!/usr/bin/env python
import sys
import subprocess
import signal
def printMsg(msgDict):
print msgDict['name']
print '\t','type: ',msgDict['type']
print '\t','subtype: ',msgDict['subtype']
for key,value in msgDict.items():
if ((key != 'name') and (key != 'type') and (key != 's... |
d626fd1e9f808c42df5a9147bcbeb5050b923c93 | tests/conftest.py | tests/conftest.py | import os
import sys
from pathlib import Path
import pytest
if sys.version_info < (3, 4):
print("Requires Python 3.4+")
sys.exit(1)
TESTS_ROOT = os.path.abspath(os.path.dirname(__file__))
PROJECT_ROOT = os.path.dirname(TESTS_ROOT)
@pytest.fixture(scope="session")
def resources():
return Path(TESTS_ROO... | import os
import sys
from pathlib import Path
import pytest
if sys.version_info < (3, 6):
print("Requires Python 3.6+")
sys.exit(1)
TESTS_ROOT = os.path.abspath(os.path.dirname(__file__))
PROJECT_ROOT = os.path.dirname(TESTS_ROOT)
@pytest.fixture(scope="session")
def resources():
return Path(TESTS_ROO... | Test suite: don't try to run on Python < 3.6 anymore | Test suite: don't try to run on Python < 3.6 anymore
| Python | mpl-2.0 | pikepdf/pikepdf,pikepdf/pikepdf,pikepdf/pikepdf | import os
import sys
from pathlib import Path
import pytest
if sys.version_info < (3, 4):
print("Requires Python 3.4+")
sys.exit(1)
TESTS_ROOT = os.path.abspath(os.path.dirname(__file__))
PROJECT_ROOT = os.path.dirname(TESTS_ROOT)
@pytest.fixture(scope="session")
def resources():
return Path(TESTS_ROO... | import os
import sys
from pathlib import Path
import pytest
if sys.version_info < (3, 6):
print("Requires Python 3.6+")
sys.exit(1)
TESTS_ROOT = os.path.abspath(os.path.dirname(__file__))
PROJECT_ROOT = os.path.dirname(TESTS_ROOT)
@pytest.fixture(scope="session")
def resources():
return Path(TESTS_ROO... | <commit_before>import os
import sys
from pathlib import Path
import pytest
if sys.version_info < (3, 4):
print("Requires Python 3.4+")
sys.exit(1)
TESTS_ROOT = os.path.abspath(os.path.dirname(__file__))
PROJECT_ROOT = os.path.dirname(TESTS_ROOT)
@pytest.fixture(scope="session")
def resources():
return... | import os
import sys
from pathlib import Path
import pytest
if sys.version_info < (3, 6):
print("Requires Python 3.6+")
sys.exit(1)
TESTS_ROOT = os.path.abspath(os.path.dirname(__file__))
PROJECT_ROOT = os.path.dirname(TESTS_ROOT)
@pytest.fixture(scope="session")
def resources():
return Path(TESTS_ROO... | import os
import sys
from pathlib import Path
import pytest
if sys.version_info < (3, 4):
print("Requires Python 3.4+")
sys.exit(1)
TESTS_ROOT = os.path.abspath(os.path.dirname(__file__))
PROJECT_ROOT = os.path.dirname(TESTS_ROOT)
@pytest.fixture(scope="session")
def resources():
return Path(TESTS_ROO... | <commit_before>import os
import sys
from pathlib import Path
import pytest
if sys.version_info < (3, 4):
print("Requires Python 3.4+")
sys.exit(1)
TESTS_ROOT = os.path.abspath(os.path.dirname(__file__))
PROJECT_ROOT = os.path.dirname(TESTS_ROOT)
@pytest.fixture(scope="session")
def resources():
return... |
2a3f4ff6686f1630348a73dd62d7ad8e3215dff5 | tests/conftest.py | tests/conftest.py | import pytest
from cattr import Converter
@pytest.fixture()
def converter():
return Converter()
| import platform
import pytest
from hypothesis import HealthCheck, settings
from cattr import Converter
@pytest.fixture()
def converter():
return Converter()
if platform.python_implementation() == 'PyPy':
settings.default.suppress_health_check.append(HealthCheck.too_slow)
| Disable Hypothesis health check for PyPy. | Disable Hypothesis health check for PyPy.
| Python | mit | python-attrs/cattrs,Tinche/cattrs | import pytest
from cattr import Converter
@pytest.fixture()
def converter():
return Converter()
Disable Hypothesis health check for PyPy. | import platform
import pytest
from hypothesis import HealthCheck, settings
from cattr import Converter
@pytest.fixture()
def converter():
return Converter()
if platform.python_implementation() == 'PyPy':
settings.default.suppress_health_check.append(HealthCheck.too_slow)
| <commit_before>import pytest
from cattr import Converter
@pytest.fixture()
def converter():
return Converter()
<commit_msg>Disable Hypothesis health check for PyPy.<commit_after> | import platform
import pytest
from hypothesis import HealthCheck, settings
from cattr import Converter
@pytest.fixture()
def converter():
return Converter()
if platform.python_implementation() == 'PyPy':
settings.default.suppress_health_check.append(HealthCheck.too_slow)
| import pytest
from cattr import Converter
@pytest.fixture()
def converter():
return Converter()
Disable Hypothesis health check for PyPy.import platform
import pytest
from hypothesis import HealthCheck, settings
from cattr import Converter
@pytest.fixture()
def converter():
return Converter()
if platf... | <commit_before>import pytest
from cattr import Converter
@pytest.fixture()
def converter():
return Converter()
<commit_msg>Disable Hypothesis health check for PyPy.<commit_after>import platform
import pytest
from hypothesis import HealthCheck, settings
from cattr import Converter
@pytest.fixture()
def conve... |
caaa5d9030dacacdc940bc2750a98eaabb82d0a7 | src/engine/request_handler.py | src/engine/request_handler.py | import Queue
import json
import EBQP
from . import world
from . import types
from . import consts
class GameRequestHandler:
def __init__(self):
self.world = None
self.responses = {
EBQP.new: self.respond_new,
}
def process(self, request):
request_pieces = request... | import Queue
import json
import EBQP
from . import world
from . import types
from . import consts
class GameRequestHandler:
def __init__(self):
self.world = None
self.responses = {
EBQP.new: self.respond_new,
}
def process(self, request):
request_pieces = request... | Fix crash on game creation | Fix crash on game creation
| Python | mit | Tactique/game_engine,Tactique/game_engine | import Queue
import json
import EBQP
from . import world
from . import types
from . import consts
class GameRequestHandler:
def __init__(self):
self.world = None
self.responses = {
EBQP.new: self.respond_new,
}
def process(self, request):
request_pieces = request... | import Queue
import json
import EBQP
from . import world
from . import types
from . import consts
class GameRequestHandler:
def __init__(self):
self.world = None
self.responses = {
EBQP.new: self.respond_new,
}
def process(self, request):
request_pieces = request... | <commit_before>import Queue
import json
import EBQP
from . import world
from . import types
from . import consts
class GameRequestHandler:
def __init__(self):
self.world = None
self.responses = {
EBQP.new: self.respond_new,
}
def process(self, request):
request_p... | import Queue
import json
import EBQP
from . import world
from . import types
from . import consts
class GameRequestHandler:
def __init__(self):
self.world = None
self.responses = {
EBQP.new: self.respond_new,
}
def process(self, request):
request_pieces = request... | import Queue
import json
import EBQP
from . import world
from . import types
from . import consts
class GameRequestHandler:
def __init__(self):
self.world = None
self.responses = {
EBQP.new: self.respond_new,
}
def process(self, request):
request_pieces = request... | <commit_before>import Queue
import json
import EBQP
from . import world
from . import types
from . import consts
class GameRequestHandler:
def __init__(self):
self.world = None
self.responses = {
EBQP.new: self.respond_new,
}
def process(self, request):
request_p... |
b40adb2a54d7022e3ca13edea332e6c5b26feed8 | start_bot.py | start_bot.py | #!/usr/bin/env python3
import logging
from lrrbot.main import bot, log
from common.config import config
logging.basicConfig(level=config['loglevel'], format="[%(asctime)s] %(levelname)s:%(name)s:%(message)s")
if config['logfile'] is not None:
fileHandler = logging.FileHandler(config['logfile'], 'a', 'utf-8')
file... | #!/usr/bin/env python3
import logging
from lrrbot.main import bot, log
from common.config import config
logging.basicConfig(level=config['loglevel'], format="[%(asctime)s] %(levelname)s:%(name)s:%(message)s")
if config['logfile'] is not None:
fileHandler = logging.FileHandler(config['logfile'], 'a', 'utf-8')
file... | Reduce some pubnub log noise | Reduce some pubnub log noise
| Python | apache-2.0 | mrphlip/lrrbot,andreasots/lrrbot,mrphlip/lrrbot,mrphlip/lrrbot,andreasots/lrrbot,andreasots/lrrbot | #!/usr/bin/env python3
import logging
from lrrbot.main import bot, log
from common.config import config
logging.basicConfig(level=config['loglevel'], format="[%(asctime)s] %(levelname)s:%(name)s:%(message)s")
if config['logfile'] is not None:
fileHandler = logging.FileHandler(config['logfile'], 'a', 'utf-8')
file... | #!/usr/bin/env python3
import logging
from lrrbot.main import bot, log
from common.config import config
logging.basicConfig(level=config['loglevel'], format="[%(asctime)s] %(levelname)s:%(name)s:%(message)s")
if config['logfile'] is not None:
fileHandler = logging.FileHandler(config['logfile'], 'a', 'utf-8')
file... | <commit_before>#!/usr/bin/env python3
import logging
from lrrbot.main import bot, log
from common.config import config
logging.basicConfig(level=config['loglevel'], format="[%(asctime)s] %(levelname)s:%(name)s:%(message)s")
if config['logfile'] is not None:
fileHandler = logging.FileHandler(config['logfile'], 'a',... | #!/usr/bin/env python3
import logging
from lrrbot.main import bot, log
from common.config import config
logging.basicConfig(level=config['loglevel'], format="[%(asctime)s] %(levelname)s:%(name)s:%(message)s")
if config['logfile'] is not None:
fileHandler = logging.FileHandler(config['logfile'], 'a', 'utf-8')
file... | #!/usr/bin/env python3
import logging
from lrrbot.main import bot, log
from common.config import config
logging.basicConfig(level=config['loglevel'], format="[%(asctime)s] %(levelname)s:%(name)s:%(message)s")
if config['logfile'] is not None:
fileHandler = logging.FileHandler(config['logfile'], 'a', 'utf-8')
file... | <commit_before>#!/usr/bin/env python3
import logging
from lrrbot.main import bot, log
from common.config import config
logging.basicConfig(level=config['loglevel'], format="[%(asctime)s] %(levelname)s:%(name)s:%(message)s")
if config['logfile'] is not None:
fileHandler = logging.FileHandler(config['logfile'], 'a',... |
3d48f181f90995bd66dc436acccde9d18c5cfa3c | tests/settings.py | tests/settings.py | import django
DATABASE_ENGINE = 'sqlite3'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
}
}
INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sites',
'django.contrib.... | import django
DATABASE_ENGINE = 'sqlite3'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
}
}
INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sites',
'avatar',
]
MID... | Remove django.contrib.comments and add MIDDLEWARE_CLASSES | Remove django.contrib.comments and add MIDDLEWARE_CLASSES
| Python | bsd-3-clause | imgmix/django-avatar,barbuza/django-avatar,grantmcconnaughey/django-avatar,ad-m/django-avatar,jezdez/django-avatar,MachineandMagic/django-avatar,barbuza/django-avatar,ad-m/django-avatar,grantmcconnaughey/django-avatar,dannybrowne86/django-avatar,dannybrowne86/django-avatar,therocode/django-avatar,therocode/django-avata... | import django
DATABASE_ENGINE = 'sqlite3'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
}
}
INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sites',
'django.contrib.... | import django
DATABASE_ENGINE = 'sqlite3'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
}
}
INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sites',
'avatar',
]
MID... | <commit_before>import django
DATABASE_ENGINE = 'sqlite3'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
}
}
INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sites',
'... | import django
DATABASE_ENGINE = 'sqlite3'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
}
}
INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sites',
'avatar',
]
MID... | import django
DATABASE_ENGINE = 'sqlite3'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
}
}
INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sites',
'django.contrib.... | <commit_before>import django
DATABASE_ENGINE = 'sqlite3'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
}
}
INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sites',
'... |
f8d3fb9e30d18a9ea5a749083aea1862092af2c4 | tests/test_cli.py | tests/test_cli.py | from plim import syntax
from plim.console import plimc
from plim.util import PY3K
from . import TestCaseBase
class TestCLI(TestCaseBase):
def setUp(self):
super(TestCLI, self).setUp()
self.mako_syntax = syntax.Mako()
if PY3K:
from io import BytesIO
self.stdout = By... | from plim import syntax
from plim.console import plimc
from plim.util import PY3K
from . import TestCaseBase
class TestCLI(TestCaseBase):
def setUp(self):
super(TestCLI, self).setUp()
self.mako_syntax = syntax.Mako()
if PY3K:
from io import BytesIO
self.stdout = By... | Add cli tests, fix related bugs | Add cli tests, fix related bugs
| Python | mit | kxxoling/Plim | from plim import syntax
from plim.console import plimc
from plim.util import PY3K
from . import TestCaseBase
class TestCLI(TestCaseBase):
def setUp(self):
super(TestCLI, self).setUp()
self.mako_syntax = syntax.Mako()
if PY3K:
from io import BytesIO
self.stdout = By... | from plim import syntax
from plim.console import plimc
from plim.util import PY3K
from . import TestCaseBase
class TestCLI(TestCaseBase):
def setUp(self):
super(TestCLI, self).setUp()
self.mako_syntax = syntax.Mako()
if PY3K:
from io import BytesIO
self.stdout = By... | <commit_before>from plim import syntax
from plim.console import plimc
from plim.util import PY3K
from . import TestCaseBase
class TestCLI(TestCaseBase):
def setUp(self):
super(TestCLI, self).setUp()
self.mako_syntax = syntax.Mako()
if PY3K:
from io import BytesIO
s... | from plim import syntax
from plim.console import plimc
from plim.util import PY3K
from . import TestCaseBase
class TestCLI(TestCaseBase):
def setUp(self):
super(TestCLI, self).setUp()
self.mako_syntax = syntax.Mako()
if PY3K:
from io import BytesIO
self.stdout = By... | from plim import syntax
from plim.console import plimc
from plim.util import PY3K
from . import TestCaseBase
class TestCLI(TestCaseBase):
def setUp(self):
super(TestCLI, self).setUp()
self.mako_syntax = syntax.Mako()
if PY3K:
from io import BytesIO
self.stdout = By... | <commit_before>from plim import syntax
from plim.console import plimc
from plim.util import PY3K
from . import TestCaseBase
class TestCLI(TestCaseBase):
def setUp(self):
super(TestCLI, self).setUp()
self.mako_syntax = syntax.Mako()
if PY3K:
from io import BytesIO
s... |
2da853601e9746663aed35b51db3bfc7640dc9c3 | publisher/middleware.py | publisher/middleware.py | from threading import current_thread
class PublisherMiddleware(object):
_draft_status = {}
@staticmethod
def is_draft(request):
authenticated = request.user.is_authenticated() and request.user.is_staff
is_draft = 'edit' in request.GET and authenticated
return is_draft
def pro... | from threading import current_thread
class PublisherMiddleware(object):
_draft_status = {}
@staticmethod
def is_draft(request):
authenticated = request.user.is_authenticated() and request.user.is_staff
is_draft = 'edit' in request.GET and authenticated
return is_draft
def pro... | Remove unecessary try.. except.. block from PublisherMiddleware.process_response(). | Remove unecessary try.. except.. block from PublisherMiddleware.process_response().
The key should always be set by process_request(), which should always be called
before process_response().
| Python | bsd-3-clause | wearehoods/django-model-publisher-ai,wearehoods/django-model-publisher-ai,jp74/django-model-publisher,jp74/django-model-publisher,wearehoods/django-model-publisher-ai,jp74/django-model-publisher | from threading import current_thread
class PublisherMiddleware(object):
_draft_status = {}
@staticmethod
def is_draft(request):
authenticated = request.user.is_authenticated() and request.user.is_staff
is_draft = 'edit' in request.GET and authenticated
return is_draft
def pro... | from threading import current_thread
class PublisherMiddleware(object):
_draft_status = {}
@staticmethod
def is_draft(request):
authenticated = request.user.is_authenticated() and request.user.is_staff
is_draft = 'edit' in request.GET and authenticated
return is_draft
def pro... | <commit_before>from threading import current_thread
class PublisherMiddleware(object):
_draft_status = {}
@staticmethod
def is_draft(request):
authenticated = request.user.is_authenticated() and request.user.is_staff
is_draft = 'edit' in request.GET and authenticated
return is_dra... | from threading import current_thread
class PublisherMiddleware(object):
_draft_status = {}
@staticmethod
def is_draft(request):
authenticated = request.user.is_authenticated() and request.user.is_staff
is_draft = 'edit' in request.GET and authenticated
return is_draft
def pro... | from threading import current_thread
class PublisherMiddleware(object):
_draft_status = {}
@staticmethod
def is_draft(request):
authenticated = request.user.is_authenticated() and request.user.is_staff
is_draft = 'edit' in request.GET and authenticated
return is_draft
def pro... | <commit_before>from threading import current_thread
class PublisherMiddleware(object):
_draft_status = {}
@staticmethod
def is_draft(request):
authenticated = request.user.is_authenticated() and request.user.is_staff
is_draft = 'edit' in request.GET and authenticated
return is_dra... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.