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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bce9b8aa663a6a87f6a0d03902fbc21a8452ab0d | setup.py | setup.py | #-*- coding: utf-8 -*-
from setuptools import setup, find_packages
import YaDiskClient
setup(
name='YaDiskClient',
version=YaDiskClient.__version__,
include_package_data=True,
py_modules=['YaDiskClient'],
url='https://github.com/TyVik/YaDiskClient',
license='MIT',
author='TyVik',
author... | #-*- coding: utf-8 -*-
from setuptools import setup, find_packages
import YaDiskClient
setup(
name='YaDiskClient',
version=YaDiskClient.__version__,
include_package_data=True,
py_modules=['YaDiskClient'],
url='https://github.com/TyVik/YaDiskClient',
license='MIT',
author='TyVik',
author... | Support python 3.7, 3.8, 3.9, 3.10 | Support python 3.7, 3.8, 3.9, 3.10
| Python | mit | TyVik/YaDiskClient | #-*- coding: utf-8 -*-
from setuptools import setup, find_packages
import YaDiskClient
setup(
name='YaDiskClient',
version=YaDiskClient.__version__,
include_package_data=True,
py_modules=['YaDiskClient'],
url='https://github.com/TyVik/YaDiskClient',
license='MIT',
author='TyVik',
author... | #-*- coding: utf-8 -*-
from setuptools import setup, find_packages
import YaDiskClient
setup(
name='YaDiskClient',
version=YaDiskClient.__version__,
include_package_data=True,
py_modules=['YaDiskClient'],
url='https://github.com/TyVik/YaDiskClient',
license='MIT',
author='TyVik',
author... | <commit_before>#-*- coding: utf-8 -*-
from setuptools import setup, find_packages
import YaDiskClient
setup(
name='YaDiskClient',
version=YaDiskClient.__version__,
include_package_data=True,
py_modules=['YaDiskClient'],
url='https://github.com/TyVik/YaDiskClient',
license='MIT',
author='TyV... | #-*- coding: utf-8 -*-
from setuptools import setup, find_packages
import YaDiskClient
setup(
name='YaDiskClient',
version=YaDiskClient.__version__,
include_package_data=True,
py_modules=['YaDiskClient'],
url='https://github.com/TyVik/YaDiskClient',
license='MIT',
author='TyVik',
author... | #-*- coding: utf-8 -*-
from setuptools import setup, find_packages
import YaDiskClient
setup(
name='YaDiskClient',
version=YaDiskClient.__version__,
include_package_data=True,
py_modules=['YaDiskClient'],
url='https://github.com/TyVik/YaDiskClient',
license='MIT',
author='TyVik',
author... | <commit_before>#-*- coding: utf-8 -*-
from setuptools import setup, find_packages
import YaDiskClient
setup(
name='YaDiskClient',
version=YaDiskClient.__version__,
include_package_data=True,
py_modules=['YaDiskClient'],
url='https://github.com/TyVik/YaDiskClient',
license='MIT',
author='TyV... |
d59cb35568a0a16d803c7a899ad0ab74b9b7256a | setup.py | setup.py | from setuptools import setup, PEP420PackageFinder
setup(
name='tangled',
version='1.0a13.dev0',
description='Tangled namespace and utilities',
long_description=open('README.rst').read(),
url='https://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled/tags',
author=... | from setuptools import setup, PEP420PackageFinder
setup(
name='tangled',
version='1.0a13.dev0',
description='Tangled namespace and utilities',
long_description=open('README.rst').read(),
url='https://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled/tags',
author=... | Remove shell console script from entry points | Remove shell console script from entry points
Amends f06fecca161bca2360ce076e9cc15458cbda0de5
| Python | mit | TangledWeb/tangled | from setuptools import setup, PEP420PackageFinder
setup(
name='tangled',
version='1.0a13.dev0',
description='Tangled namespace and utilities',
long_description=open('README.rst').read(),
url='https://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled/tags',
author=... | from setuptools import setup, PEP420PackageFinder
setup(
name='tangled',
version='1.0a13.dev0',
description='Tangled namespace and utilities',
long_description=open('README.rst').read(),
url='https://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled/tags',
author=... | <commit_before>from setuptools import setup, PEP420PackageFinder
setup(
name='tangled',
version='1.0a13.dev0',
description='Tangled namespace and utilities',
long_description=open('README.rst').read(),
url='https://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled/tag... | from setuptools import setup, PEP420PackageFinder
setup(
name='tangled',
version='1.0a13.dev0',
description='Tangled namespace and utilities',
long_description=open('README.rst').read(),
url='https://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled/tags',
author=... | from setuptools import setup, PEP420PackageFinder
setup(
name='tangled',
version='1.0a13.dev0',
description='Tangled namespace and utilities',
long_description=open('README.rst').read(),
url='https://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled/tags',
author=... | <commit_before>from setuptools import setup, PEP420PackageFinder
setup(
name='tangled',
version='1.0a13.dev0',
description='Tangled namespace and utilities',
long_description=open('README.rst').read(),
url='https://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled/tag... |
1e0f2d65ad5a22b1ae945f7a707a2d31bca50744 | setup.py | setup.py | from __future__ import print_function
from setuptools import setup
setup_kwargs = dict(
name = 'mod_wsgi-metrics',
version = '1.1.0',
description = 'Metrics package for Apache/mod_wsgi.',
author = 'Graham Dumpleton',
author_email = '[email protected]',
maintainer = 'Graham Dumpleton',... | from __future__ import print_function
from setuptools import setup
setup_kwargs = dict(
name = 'mod_wsgi-metrics',
version = '1.1.0',
description = 'Metrics package for Apache/mod_wsgi.',
author = 'Graham Dumpleton',
author_email = '[email protected]',
maintainer = 'Graham Dumpleton',... | Add dependency on having psutil available. | Add dependency on having psutil available.
| Python | apache-2.0 | GrahamDumpleton/mod_wsgi-metrics | from __future__ import print_function
from setuptools import setup
setup_kwargs = dict(
name = 'mod_wsgi-metrics',
version = '1.1.0',
description = 'Metrics package for Apache/mod_wsgi.',
author = 'Graham Dumpleton',
author_email = '[email protected]',
maintainer = 'Graham Dumpleton',... | from __future__ import print_function
from setuptools import setup
setup_kwargs = dict(
name = 'mod_wsgi-metrics',
version = '1.1.0',
description = 'Metrics package for Apache/mod_wsgi.',
author = 'Graham Dumpleton',
author_email = '[email protected]',
maintainer = 'Graham Dumpleton',... | <commit_before>from __future__ import print_function
from setuptools import setup
setup_kwargs = dict(
name = 'mod_wsgi-metrics',
version = '1.1.0',
description = 'Metrics package for Apache/mod_wsgi.',
author = 'Graham Dumpleton',
author_email = '[email protected]',
maintainer = 'Gra... | from __future__ import print_function
from setuptools import setup
setup_kwargs = dict(
name = 'mod_wsgi-metrics',
version = '1.1.0',
description = 'Metrics package for Apache/mod_wsgi.',
author = 'Graham Dumpleton',
author_email = '[email protected]',
maintainer = 'Graham Dumpleton',... | from __future__ import print_function
from setuptools import setup
setup_kwargs = dict(
name = 'mod_wsgi-metrics',
version = '1.1.0',
description = 'Metrics package for Apache/mod_wsgi.',
author = 'Graham Dumpleton',
author_email = '[email protected]',
maintainer = 'Graham Dumpleton',... | <commit_before>from __future__ import print_function
from setuptools import setup
setup_kwargs = dict(
name = 'mod_wsgi-metrics',
version = '1.1.0',
description = 'Metrics package for Apache/mod_wsgi.',
author = 'Graham Dumpleton',
author_email = '[email protected]',
maintainer = 'Gra... |
0c7754b2b9c8c101476511709a3e2169eee50407 | setup.py | setup.py | from setuptools import setup
setup(
name='whip-neustar',
version='0.1',
packages=['whip_neustar'],
entry_points={
'console_scripts': [
'whip-neustar = whip_neustar.cli:main',
],
}
)
| from setuptools import setup
setup(
name='whip-neustar',
version='0.1',
packages=['whip_neustar'],
entry_points={
'console_scripts': [
'whip-neustar-cli = whip_neustar.cli:main',
],
}
)
| Rename cli script to whip-neustar-cli | Rename cli script to whip-neustar-cli
| Python | bsd-3-clause | wbolster/whip-neustar | from setuptools import setup
setup(
name='whip-neustar',
version='0.1',
packages=['whip_neustar'],
entry_points={
'console_scripts': [
'whip-neustar = whip_neustar.cli:main',
],
}
)
Rename cli script to whip-neustar-cli | from setuptools import setup
setup(
name='whip-neustar',
version='0.1',
packages=['whip_neustar'],
entry_points={
'console_scripts': [
'whip-neustar-cli = whip_neustar.cli:main',
],
}
)
| <commit_before>from setuptools import setup
setup(
name='whip-neustar',
version='0.1',
packages=['whip_neustar'],
entry_points={
'console_scripts': [
'whip-neustar = whip_neustar.cli:main',
],
}
)
<commit_msg>Rename cli script to whip-neustar-cli<commit_after> | from setuptools import setup
setup(
name='whip-neustar',
version='0.1',
packages=['whip_neustar'],
entry_points={
'console_scripts': [
'whip-neustar-cli = whip_neustar.cli:main',
],
}
)
| from setuptools import setup
setup(
name='whip-neustar',
version='0.1',
packages=['whip_neustar'],
entry_points={
'console_scripts': [
'whip-neustar = whip_neustar.cli:main',
],
}
)
Rename cli script to whip-neustar-clifrom setuptools import setup
setup(
name='whip-... | <commit_before>from setuptools import setup
setup(
name='whip-neustar',
version='0.1',
packages=['whip_neustar'],
entry_points={
'console_scripts': [
'whip-neustar = whip_neustar.cli:main',
],
}
)
<commit_msg>Rename cli script to whip-neustar-cli<commit_after>from setupt... |
ccd726e43c25c0a4b23d15889c955741f9adc1d3 | setup.py | setup.py | from setuptools import find_packages
from setuptools import setup
REQUIRED_PACKAGES = ['distance', 'numpy', 'six', 'pillow']
VERSION = '0.1.1'
try:
import pypandoc
README = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
README = open('README.md').read()
setup(
name='aocr',
url... | from setuptools import find_packages
from setuptools import setup
REQUIRED_PACKAGES = ['distance', 'numpy', 'six', 'pillow']
VERSION = '0.2.0'
try:
import pypandoc
README = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
README = open('README.md').read()
setup(
name='aocr',
url... | Update the version to 0.2.0 | Update the version to 0.2.0
| Python | mit | emedvedev/attention-ocr | from setuptools import find_packages
from setuptools import setup
REQUIRED_PACKAGES = ['distance', 'numpy', 'six', 'pillow']
VERSION = '0.1.1'
try:
import pypandoc
README = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
README = open('README.md').read()
setup(
name='aocr',
url... | from setuptools import find_packages
from setuptools import setup
REQUIRED_PACKAGES = ['distance', 'numpy', 'six', 'pillow']
VERSION = '0.2.0'
try:
import pypandoc
README = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
README = open('README.md').read()
setup(
name='aocr',
url... | <commit_before>from setuptools import find_packages
from setuptools import setup
REQUIRED_PACKAGES = ['distance', 'numpy', 'six', 'pillow']
VERSION = '0.1.1'
try:
import pypandoc
README = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
README = open('README.md').read()
setup(
name=... | from setuptools import find_packages
from setuptools import setup
REQUIRED_PACKAGES = ['distance', 'numpy', 'six', 'pillow']
VERSION = '0.2.0'
try:
import pypandoc
README = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
README = open('README.md').read()
setup(
name='aocr',
url... | from setuptools import find_packages
from setuptools import setup
REQUIRED_PACKAGES = ['distance', 'numpy', 'six', 'pillow']
VERSION = '0.1.1'
try:
import pypandoc
README = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
README = open('README.md').read()
setup(
name='aocr',
url... | <commit_before>from setuptools import find_packages
from setuptools import setup
REQUIRED_PACKAGES = ['distance', 'numpy', 'six', 'pillow']
VERSION = '0.1.1'
try:
import pypandoc
README = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
README = open('README.md').read()
setup(
name=... |
7c50ccc9de67df3b4b9addebddb8234e770f0b22 | setup.py | setup.py | from os.path import dirname, join
from setuptools import setup, find_packages
version = '0.3'
def read(fname):
return open(join(dirname(__file__), fname)).read()
setup(name='django-apptemplates',
version=version,
description='Django template loader that allows you to load and'
'ove... | from os.path import dirname, join
from setuptools import setup, find_packages
version = '0.2.1'
def read(fname):
return open(join(dirname(__file__), fname)).read()
setup(name='django-apptemplates',
version=version,
description='Django template loader that allows you to load and'
'o... | Increase only minor in version number | Increase only minor in version number
| Python | mit | jdotjdot/django-apptemplates,bittner/django-apptemplates | from os.path import dirname, join
from setuptools import setup, find_packages
version = '0.3'
def read(fname):
return open(join(dirname(__file__), fname)).read()
setup(name='django-apptemplates',
version=version,
description='Django template loader that allows you to load and'
'ove... | from os.path import dirname, join
from setuptools import setup, find_packages
version = '0.2.1'
def read(fname):
return open(join(dirname(__file__), fname)).read()
setup(name='django-apptemplates',
version=version,
description='Django template loader that allows you to load and'
'o... | <commit_before>from os.path import dirname, join
from setuptools import setup, find_packages
version = '0.3'
def read(fname):
return open(join(dirname(__file__), fname)).read()
setup(name='django-apptemplates',
version=version,
description='Django template loader that allows you to load and'
... | from os.path import dirname, join
from setuptools import setup, find_packages
version = '0.2.1'
def read(fname):
return open(join(dirname(__file__), fname)).read()
setup(name='django-apptemplates',
version=version,
description='Django template loader that allows you to load and'
'o... | from os.path import dirname, join
from setuptools import setup, find_packages
version = '0.3'
def read(fname):
return open(join(dirname(__file__), fname)).read()
setup(name='django-apptemplates',
version=version,
description='Django template loader that allows you to load and'
'ove... | <commit_before>from os.path import dirname, join
from setuptools import setup, find_packages
version = '0.3'
def read(fname):
return open(join(dirname(__file__), fname)).read()
setup(name='django-apptemplates',
version=version,
description='Django template loader that allows you to load and'
... |
d96adde7fbb561719aeb101df01e8809a5a06ea7 | src/model.py | src/model.py | from keras.models import Sequential
from keras.layers import Activation, TimeDistributed, Dense, RepeatVector, Embedding
from keras.layers.recurrent import LSTM
def get_model(X_vocab_len, X_max_len, y_vocab_len, y_max_len, hidden_size, num_layers):
model = Sequential()
# encoder
model.add(Embedding(X_voc... | from keras.models import Sequential
from keras.layers import Activation, TimeDistributed, Dense, RepeatVector, Embedding
from keras.layers.recurrent import LSTM
def get_model(X_vocab_len, X_max_len, y_vocab_len, y_max_len, hidden_size, num_layers):
model = Sequential()
# encoder
model.add(Embedding(X_voc... | Add one more lstm layer | Add one more lstm layer
| Python | mit | vdragan1993/python-coder | from keras.models import Sequential
from keras.layers import Activation, TimeDistributed, Dense, RepeatVector, Embedding
from keras.layers.recurrent import LSTM
def get_model(X_vocab_len, X_max_len, y_vocab_len, y_max_len, hidden_size, num_layers):
model = Sequential()
# encoder
model.add(Embedding(X_voc... | from keras.models import Sequential
from keras.layers import Activation, TimeDistributed, Dense, RepeatVector, Embedding
from keras.layers.recurrent import LSTM
def get_model(X_vocab_len, X_max_len, y_vocab_len, y_max_len, hidden_size, num_layers):
model = Sequential()
# encoder
model.add(Embedding(X_voc... | <commit_before>from keras.models import Sequential
from keras.layers import Activation, TimeDistributed, Dense, RepeatVector, Embedding
from keras.layers.recurrent import LSTM
def get_model(X_vocab_len, X_max_len, y_vocab_len, y_max_len, hidden_size, num_layers):
model = Sequential()
# encoder
model.add(... | from keras.models import Sequential
from keras.layers import Activation, TimeDistributed, Dense, RepeatVector, Embedding
from keras.layers.recurrent import LSTM
def get_model(X_vocab_len, X_max_len, y_vocab_len, y_max_len, hidden_size, num_layers):
model = Sequential()
# encoder
model.add(Embedding(X_voc... | from keras.models import Sequential
from keras.layers import Activation, TimeDistributed, Dense, RepeatVector, Embedding
from keras.layers.recurrent import LSTM
def get_model(X_vocab_len, X_max_len, y_vocab_len, y_max_len, hidden_size, num_layers):
model = Sequential()
# encoder
model.add(Embedding(X_voc... | <commit_before>from keras.models import Sequential
from keras.layers import Activation, TimeDistributed, Dense, RepeatVector, Embedding
from keras.layers.recurrent import LSTM
def get_model(X_vocab_len, X_max_len, y_vocab_len, y_max_len, hidden_size, num_layers):
model = Sequential()
# encoder
model.add(... |
e09fe37d78a94bcec284f65672a8892b73bb8a27 | watchman/management/commands/watchman.py | watchman/management/commands/watchman.py | from __future__ import absolute_import
import json
from django.core.management.base import BaseCommand, CommandError
from watchman.utils import get_checks
class Command(BaseCommand):
help = 'Runs the default django-watchman checks'
def handle(self, *args, **options):
verbosity = options['verbosity... | from __future__ import absolute_import
import json
from optparse import make_option
from django.core.management.base import BaseCommand, CommandError
from watchman.utils import get_checks
class Command(BaseCommand):
help = 'Runs the default django-watchman checks'
option_list = BaseCommand.option_list + (... | Add check / skip ability to management command | 23: Add check / skip ability to management command
* `-c`, `--checks`, `-s`, `--skips` options take comma-separated list of python paths to run / skip
| Python | bsd-3-clause | blag/django-watchman,gerlachry/django-watchman,gerlachry/django-watchman,ulope/django-watchman,ulope/django-watchman,mwarkentin/django-watchman,blag/django-watchman,JBKahn/django-watchman,mwarkentin/django-watchman,JBKahn/django-watchman | from __future__ import absolute_import
import json
from django.core.management.base import BaseCommand, CommandError
from watchman.utils import get_checks
class Command(BaseCommand):
help = 'Runs the default django-watchman checks'
def handle(self, *args, **options):
verbosity = options['verbosity... | from __future__ import absolute_import
import json
from optparse import make_option
from django.core.management.base import BaseCommand, CommandError
from watchman.utils import get_checks
class Command(BaseCommand):
help = 'Runs the default django-watchman checks'
option_list = BaseCommand.option_list + (... | <commit_before>from __future__ import absolute_import
import json
from django.core.management.base import BaseCommand, CommandError
from watchman.utils import get_checks
class Command(BaseCommand):
help = 'Runs the default django-watchman checks'
def handle(self, *args, **options):
verbosity = opt... | from __future__ import absolute_import
import json
from optparse import make_option
from django.core.management.base import BaseCommand, CommandError
from watchman.utils import get_checks
class Command(BaseCommand):
help = 'Runs the default django-watchman checks'
option_list = BaseCommand.option_list + (... | from __future__ import absolute_import
import json
from django.core.management.base import BaseCommand, CommandError
from watchman.utils import get_checks
class Command(BaseCommand):
help = 'Runs the default django-watchman checks'
def handle(self, *args, **options):
verbosity = options['verbosity... | <commit_before>from __future__ import absolute_import
import json
from django.core.management.base import BaseCommand, CommandError
from watchman.utils import get_checks
class Command(BaseCommand):
help = 'Runs the default django-watchman checks'
def handle(self, *args, **options):
verbosity = opt... |
0c3529bd264d5512e31d828c65676baff6edefa6 | pinax/waitinglist/templatetags/pinax_waitinglist_tags.py | pinax/waitinglist/templatetags/pinax_waitinglist_tags.py | from django import template
from ..forms import WaitingListEntryForm
register = template.Library()
@register.assignment_tag
def waitinglist_entry_form():
"""
Get a (new) form object to post a new comment.
Syntax::
{% waitinglist_entry_form as [varname] %}
"""
return WaitingListEntryF... | from django import template
from ..forms import WaitingListEntryForm
register = template.Library()
@register.simple_tag(takes_context=True)
def waitinglist_entry_form(context):
"""
Get a (new) form object to post a new comment.
Syntax::
{% waitinglist_entry_form as [varname] %}
"""
i... | Update template tag to also take context | Update template tag to also take context
| Python | mit | pinax/pinax-waitinglist,pinax/pinax-waitinglist | from django import template
from ..forms import WaitingListEntryForm
register = template.Library()
@register.assignment_tag
def waitinglist_entry_form():
"""
Get a (new) form object to post a new comment.
Syntax::
{% waitinglist_entry_form as [varname] %}
"""
return WaitingListEntryF... | from django import template
from ..forms import WaitingListEntryForm
register = template.Library()
@register.simple_tag(takes_context=True)
def waitinglist_entry_form(context):
"""
Get a (new) form object to post a new comment.
Syntax::
{% waitinglist_entry_form as [varname] %}
"""
i... | <commit_before>from django import template
from ..forms import WaitingListEntryForm
register = template.Library()
@register.assignment_tag
def waitinglist_entry_form():
"""
Get a (new) form object to post a new comment.
Syntax::
{% waitinglist_entry_form as [varname] %}
"""
return Wa... | from django import template
from ..forms import WaitingListEntryForm
register = template.Library()
@register.simple_tag(takes_context=True)
def waitinglist_entry_form(context):
"""
Get a (new) form object to post a new comment.
Syntax::
{% waitinglist_entry_form as [varname] %}
"""
i... | from django import template
from ..forms import WaitingListEntryForm
register = template.Library()
@register.assignment_tag
def waitinglist_entry_form():
"""
Get a (new) form object to post a new comment.
Syntax::
{% waitinglist_entry_form as [varname] %}
"""
return WaitingListEntryF... | <commit_before>from django import template
from ..forms import WaitingListEntryForm
register = template.Library()
@register.assignment_tag
def waitinglist_entry_form():
"""
Get a (new) form object to post a new comment.
Syntax::
{% waitinglist_entry_form as [varname] %}
"""
return Wa... |
7698a548102fae9d801cf2a5cb94163d8e4a39f2 | kolla_mesos/tests/base.py | kolla_mesos/tests/base.py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | Make sure any config overrides are reset | Make sure any config overrides are reset
The new deploy unit tests have conf.set_override() but
don't reset these after each test, so depending on the
test order there are failures.
This just addes a generic cleanup in the base class to catch
all of them.
Change-Id: Idb1b4ef158808b08657f34bfe1546fa2ec0dae9f
| Python | apache-2.0 | asalkeld/kolla-mesos,openstack/kolla-mesos,openstack/kolla-mesos,openstack/kolla-mesos | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | <commit_before># Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# dist... | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | <commit_before># Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# dist... |
116d9565050ad69888cb38c302f8ae0d9232eec3 | gameserver/utils.py | gameserver/utils.py | import random as orig_random
from decorator import decorator
import binascii
import struct
import hashlib
from gameserver.database import db
db_session = db.session
random = orig_random.Random()
random.seed()
def node_to_dict(node):
connections = []
for edge in node.lower_edges:
connections.append(
... | import random as orig_random
from decorator import decorator
import binascii
import struct
import hashlib
from gameserver.database import db
db_session = db.session
random = orig_random.Random()
random.seed()
def node_to_dict(node):
connections = []
for edge in node.lower_edges:
connections.append(
... | Add in the active level to json output for the mobile game to use | Add in the active level to json output for the mobile game to use
| Python | apache-2.0 | hammertoe/didactic-spork,hammertoe/didactic-spork,hammertoe/didactic-spork,hammertoe/didactic-spork | import random as orig_random
from decorator import decorator
import binascii
import struct
import hashlib
from gameserver.database import db
db_session = db.session
random = orig_random.Random()
random.seed()
def node_to_dict(node):
connections = []
for edge in node.lower_edges:
connections.append(
... | import random as orig_random
from decorator import decorator
import binascii
import struct
import hashlib
from gameserver.database import db
db_session = db.session
random = orig_random.Random()
random.seed()
def node_to_dict(node):
connections = []
for edge in node.lower_edges:
connections.append(
... | <commit_before>import random as orig_random
from decorator import decorator
import binascii
import struct
import hashlib
from gameserver.database import db
db_session = db.session
random = orig_random.Random()
random.seed()
def node_to_dict(node):
connections = []
for edge in node.lower_edges:
conne... | import random as orig_random
from decorator import decorator
import binascii
import struct
import hashlib
from gameserver.database import db
db_session = db.session
random = orig_random.Random()
random.seed()
def node_to_dict(node):
connections = []
for edge in node.lower_edges:
connections.append(
... | import random as orig_random
from decorator import decorator
import binascii
import struct
import hashlib
from gameserver.database import db
db_session = db.session
random = orig_random.Random()
random.seed()
def node_to_dict(node):
connections = []
for edge in node.lower_edges:
connections.append(
... | <commit_before>import random as orig_random
from decorator import decorator
import binascii
import struct
import hashlib
from gameserver.database import db
db_session = db.session
random = orig_random.Random()
random.seed()
def node_to_dict(node):
connections = []
for edge in node.lower_edges:
conne... |
a5c0efec6c00118fd4df8163b76e5ecca4355adb | setup.py | setup.py | import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outsi... | import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outsi... | Add pretend to the test requirements | Add pretend to the test requirements
| Python | bsd-2-clause | dstufft/Flask-Redistore | import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outsi... | import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outsi... | <commit_before>import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import he... | import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outsi... | import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outsi... | <commit_before>import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import he... |
6efd95ef46fa92e89185130006922d036ce43043 | setup.py | setup.py | import codecs
from os import path
from setuptools import find_packages, setup
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding="utf-8") as fp:
return fp.read()
setup(
author="Pinax Team",
author_email="[email protected]",
des... | import codecs
from os import path
from setuptools import find_packages, setup
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding="utf-8") as fp:
return fp.read()
setup(
author="Pinax Team",
author_email="[email protected]",
des... | Use the github repo as the project url | Use the github repo as the project url
| Python | mit | pinax/pinax-likes,pinax/phileo,pinax/phileo | import codecs
from os import path
from setuptools import find_packages, setup
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding="utf-8") as fp:
return fp.read()
setup(
author="Pinax Team",
author_email="[email protected]",
des... | import codecs
from os import path
from setuptools import find_packages, setup
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding="utf-8") as fp:
return fp.read()
setup(
author="Pinax Team",
author_email="[email protected]",
des... | <commit_before>import codecs
from os import path
from setuptools import find_packages, setup
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding="utf-8") as fp:
return fp.read()
setup(
author="Pinax Team",
author_email="team@pinaxprojec... | import codecs
from os import path
from setuptools import find_packages, setup
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding="utf-8") as fp:
return fp.read()
setup(
author="Pinax Team",
author_email="[email protected]",
des... | import codecs
from os import path
from setuptools import find_packages, setup
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding="utf-8") as fp:
return fp.read()
setup(
author="Pinax Team",
author_email="[email protected]",
des... | <commit_before>import codecs
from os import path
from setuptools import find_packages, setup
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding="utf-8") as fp:
return fp.read()
setup(
author="Pinax Team",
author_email="team@pinaxprojec... |
cfc8563e731e0712ced2dd58b6eab66275b0c073 | views.py | views.py | # Copyright (c) 2014-2015, Doug Kelly
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this
# list of conditions and... | # Copyright (c) 2014-2015, Doug Kelly
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this
# list of conditions and... | Restructure templates to avoid name conflict | Restructure templates to avoid name conflict
We were about to get into a lot of confusion with registering for
comments and registering for the con... this should help confusion
somewhat.
| Python | bsd-2-clause | vangdfang/conspace-register,vangdfang/conspace-register | # Copyright (c) 2014-2015, Doug Kelly
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this
# list of conditions and... | # Copyright (c) 2014-2015, Doug Kelly
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this
# list of conditions and... | <commit_before># Copyright (c) 2014-2015, Doug Kelly
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this
# list of... | # Copyright (c) 2014-2015, Doug Kelly
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this
# list of conditions and... | # Copyright (c) 2014-2015, Doug Kelly
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this
# list of conditions and... | <commit_before># Copyright (c) 2014-2015, Doug Kelly
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this
# list of... |
b17df9b3442c8dd98cb0fdfe415c1953ca5dc092 | setup.py | setup.py | #
# Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | #
# Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | Update version number to 0.1.3. | Update version number to 0.1.3. | Python | apache-2.0 | iansf/pstar | #
# Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | #
# Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | <commit_before>#
# Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agre... | #
# Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | #
# Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | <commit_before>#
# Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agre... |
09496ed494ebe867f31eda00a11cd7ed4c491341 | setup.py | setup.py | from setuptools import setup, Extension
import platform
version = '2.1.0'
setup(name='dronekit',
zip_safe=True,
version=version,
description='Python language bindings for the DroneApi',
long_description='Python language bindings for the DroneApi',
url='https://github.com/dronekit/droneki... | from setuptools import setup, Extension
import platform
version = '2.1.0'
setup(name='dronekit',
zip_safe=True,
version=version,
description='Developer Tools for Drones.',
long_description='Python API for communication and control of drones over MAVLink.',
url='https://github.com/droneki... | Improve description of dronekit on PyPi | Improve description of dronekit on PyPi
| Python | apache-2.0 | hamishwillee/dronekit-python,dronekit/dronekit-python,dronekit/dronekit-python,diydrones/dronekit-python,hamishwillee/dronekit-python,diydrones/dronekit-python | from setuptools import setup, Extension
import platform
version = '2.1.0'
setup(name='dronekit',
zip_safe=True,
version=version,
description='Python language bindings for the DroneApi',
long_description='Python language bindings for the DroneApi',
url='https://github.com/dronekit/droneki... | from setuptools import setup, Extension
import platform
version = '2.1.0'
setup(name='dronekit',
zip_safe=True,
version=version,
description='Developer Tools for Drones.',
long_description='Python API for communication and control of drones over MAVLink.',
url='https://github.com/droneki... | <commit_before>from setuptools import setup, Extension
import platform
version = '2.1.0'
setup(name='dronekit',
zip_safe=True,
version=version,
description='Python language bindings for the DroneApi',
long_description='Python language bindings for the DroneApi',
url='https://github.com/d... | from setuptools import setup, Extension
import platform
version = '2.1.0'
setup(name='dronekit',
zip_safe=True,
version=version,
description='Developer Tools for Drones.',
long_description='Python API for communication and control of drones over MAVLink.',
url='https://github.com/droneki... | from setuptools import setup, Extension
import platform
version = '2.1.0'
setup(name='dronekit',
zip_safe=True,
version=version,
description='Python language bindings for the DroneApi',
long_description='Python language bindings for the DroneApi',
url='https://github.com/dronekit/droneki... | <commit_before>from setuptools import setup, Extension
import platform
version = '2.1.0'
setup(name='dronekit',
zip_safe=True,
version=version,
description='Python language bindings for the DroneApi',
long_description='Python language bindings for the DroneApi',
url='https://github.com/d... |
0fcf47c09402bd49866ace6ddbe584de40800534 | yahoo.py | yahoo.py | import time
from yahoo_finance import Share
# Collect 30 mins of Finance data on 5 companies, one value per minute
nyt = Share('NYT')
ibm = Share('IBM')
google = Share('GOOG')
facebook = Share('FB')
linkedin = Share('LNKD')
for minute in range(30):
print "%s minutes" % minute
nyt.refresh()
print "The New York Time... | import time
from yahoo_finance import Share
# Collect 30 mins of Finance data on 5 companies, one value per minute
for minute in range(30):
nyt = Share('NYT')
ibm = Share('IBM')
google = Share('GOOG')
facebook = Share('FB')
linkedin = Share('LNKD')
print "%s minutes" % minute
print "The New York Times' stock... | Remove need for refresh() by putting everything in loop | Remove need for refresh() by putting everything in loop
| Python | mit | cathyq/yahoo-finance | import time
from yahoo_finance import Share
# Collect 30 mins of Finance data on 5 companies, one value per minute
nyt = Share('NYT')
ibm = Share('IBM')
google = Share('GOOG')
facebook = Share('FB')
linkedin = Share('LNKD')
for minute in range(30):
print "%s minutes" % minute
nyt.refresh()
print "The New York Time... | import time
from yahoo_finance import Share
# Collect 30 mins of Finance data on 5 companies, one value per minute
for minute in range(30):
nyt = Share('NYT')
ibm = Share('IBM')
google = Share('GOOG')
facebook = Share('FB')
linkedin = Share('LNKD')
print "%s minutes" % minute
print "The New York Times' stock... | <commit_before>import time
from yahoo_finance import Share
# Collect 30 mins of Finance data on 5 companies, one value per minute
nyt = Share('NYT')
ibm = Share('IBM')
google = Share('GOOG')
facebook = Share('FB')
linkedin = Share('LNKD')
for minute in range(30):
print "%s minutes" % minute
nyt.refresh()
print "Th... | import time
from yahoo_finance import Share
# Collect 30 mins of Finance data on 5 companies, one value per minute
for minute in range(30):
nyt = Share('NYT')
ibm = Share('IBM')
google = Share('GOOG')
facebook = Share('FB')
linkedin = Share('LNKD')
print "%s minutes" % minute
print "The New York Times' stock... | import time
from yahoo_finance import Share
# Collect 30 mins of Finance data on 5 companies, one value per minute
nyt = Share('NYT')
ibm = Share('IBM')
google = Share('GOOG')
facebook = Share('FB')
linkedin = Share('LNKD')
for minute in range(30):
print "%s minutes" % minute
nyt.refresh()
print "The New York Time... | <commit_before>import time
from yahoo_finance import Share
# Collect 30 mins of Finance data on 5 companies, one value per minute
nyt = Share('NYT')
ibm = Share('IBM')
google = Share('GOOG')
facebook = Share('FB')
linkedin = Share('LNKD')
for minute in range(30):
print "%s minutes" % minute
nyt.refresh()
print "Th... |
ecd201216562c8b802fada27e2f79cda5b05a4d5 | cron/__init__.py | cron/__init__.py | import schedule
import settings
from .poll_pull_requests import poll_pull_requests as poll_pull_requests
from .restart_homepage import restart_homepage as restart_homepage
def schedule_jobs():
schedule.every(settings.PULL_REQUEST_POLLING_INTERVAL_SECONDS).seconds.do(poll_pull_requests)
schedule.every(settings... | import schedule
import settings
from .poll_pull_requests import poll_pull_requests as poll_pull_requests
from .restart_homepage import restart_homepage as restart_homepage
def schedule_jobs():
schedule.every(settings.PULL_REQUEST_POLLING_INTERVAL_SECONDS).seconds.do(poll_pull_requests)
schedule.every(settings... | Change hours to seconds in cron job | Change hours to seconds in cron job
| Python | mit | amoffat/Chaos,eukaryote31/chaos,phil-r/chaos,g19fanatic/chaos,phil-r/chaos,botchaos/Chaos,Chaosthebot/Chaos,mark-i-m/Chaos,chaosbot/Chaos,g19fanatic/chaos,phil-r/chaos,hongaar/chaos,rudehn/chaos,rudehn/chaos,Chaosthebot/Chaos,botchaos/Chaos,mpnordland/chaos,amoffat/Chaos,mark-i-m/Chaos,chaosbot/Chaos,amoffat/Chaos,amof... | import schedule
import settings
from .poll_pull_requests import poll_pull_requests as poll_pull_requests
from .restart_homepage import restart_homepage as restart_homepage
def schedule_jobs():
schedule.every(settings.PULL_REQUEST_POLLING_INTERVAL_SECONDS).seconds.do(poll_pull_requests)
schedule.every(settings... | import schedule
import settings
from .poll_pull_requests import poll_pull_requests as poll_pull_requests
from .restart_homepage import restart_homepage as restart_homepage
def schedule_jobs():
schedule.every(settings.PULL_REQUEST_POLLING_INTERVAL_SECONDS).seconds.do(poll_pull_requests)
schedule.every(settings... | <commit_before>import schedule
import settings
from .poll_pull_requests import poll_pull_requests as poll_pull_requests
from .restart_homepage import restart_homepage as restart_homepage
def schedule_jobs():
schedule.every(settings.PULL_REQUEST_POLLING_INTERVAL_SECONDS).seconds.do(poll_pull_requests)
schedule... | import schedule
import settings
from .poll_pull_requests import poll_pull_requests as poll_pull_requests
from .restart_homepage import restart_homepage as restart_homepage
def schedule_jobs():
schedule.every(settings.PULL_REQUEST_POLLING_INTERVAL_SECONDS).seconds.do(poll_pull_requests)
schedule.every(settings... | import schedule
import settings
from .poll_pull_requests import poll_pull_requests as poll_pull_requests
from .restart_homepage import restart_homepage as restart_homepage
def schedule_jobs():
schedule.every(settings.PULL_REQUEST_POLLING_INTERVAL_SECONDS).seconds.do(poll_pull_requests)
schedule.every(settings... | <commit_before>import schedule
import settings
from .poll_pull_requests import poll_pull_requests as poll_pull_requests
from .restart_homepage import restart_homepage as restart_homepage
def schedule_jobs():
schedule.every(settings.PULL_REQUEST_POLLING_INTERVAL_SECONDS).seconds.do(poll_pull_requests)
schedule... |
8b6443022d8f1c080e28d3b83bcae8af7fe302ca | setup.py | setup.py | #!/usr/bin/env python
from setuptools import find_packages, Command
setup_params = dict(
name='bugimporters',
version=0.1,
author='Various contributers to the OpenHatch project, Berry Phillips',
author_email='[email protected], [email protected]',
packages=find_packages(),
description='B... | #!/usr/bin/env python
from setuptools import find_packages, Command
setup_params = dict(
name='bugimporters',
version=0.1,
author='Various contributers to the OpenHatch project, Berry Phillips',
author_email='[email protected], [email protected]',
packages=find_packages(),
description='B... | Upgrade to 0.3.1 to avoid broken 0.3 | Upgrade to 0.3.1 to avoid broken 0.3
| Python | agpl-3.0 | openhatch/oh-bugimporters,openhatch/oh-bugimporters,openhatch/oh-bugimporters | #!/usr/bin/env python
from setuptools import find_packages, Command
setup_params = dict(
name='bugimporters',
version=0.1,
author='Various contributers to the OpenHatch project, Berry Phillips',
author_email='[email protected], [email protected]',
packages=find_packages(),
description='B... | #!/usr/bin/env python
from setuptools import find_packages, Command
setup_params = dict(
name='bugimporters',
version=0.1,
author='Various contributers to the OpenHatch project, Berry Phillips',
author_email='[email protected], [email protected]',
packages=find_packages(),
description='B... | <commit_before>#!/usr/bin/env python
from setuptools import find_packages, Command
setup_params = dict(
name='bugimporters',
version=0.1,
author='Various contributers to the OpenHatch project, Berry Phillips',
author_email='[email protected], [email protected]',
packages=find_packages(),
... | #!/usr/bin/env python
from setuptools import find_packages, Command
setup_params = dict(
name='bugimporters',
version=0.1,
author='Various contributers to the OpenHatch project, Berry Phillips',
author_email='[email protected], [email protected]',
packages=find_packages(),
description='B... | #!/usr/bin/env python
from setuptools import find_packages, Command
setup_params = dict(
name='bugimporters',
version=0.1,
author='Various contributers to the OpenHatch project, Berry Phillips',
author_email='[email protected], [email protected]',
packages=find_packages(),
description='B... | <commit_before>#!/usr/bin/env python
from setuptools import find_packages, Command
setup_params = dict(
name='bugimporters',
version=0.1,
author='Various contributers to the OpenHatch project, Berry Phillips',
author_email='[email protected], [email protected]',
packages=find_packages(),
... |
4b4e14830b0407f0bfceb563724ee77efe2b3f73 | Lib/re.py | Lib/re.py | #
# Minimal "re" compatibility wrapper
#
# If your regexps don't work well under 2.0b1, you can switch
# to the old engine ("pre") down below.
#
# To help us fix any remaining bugs in the new engine, please
# report what went wrong. You can either use the following web
# page:
#
# http://www.python.org/search/searc... | #
# Minimal "re" compatibility wrapper
#
# If your regexps don't work well under 2.0b1, you can switch
# to the old engine ("pre") down below.
#
# To help us fix any remaining bugs in the new engine, please
# report what went wrong. You can either use the following web
# page:
#
# http://sourceforge.net/bugs/?group... | Replace the jitterbug page with the SF Bug Tracker page. | Replace the jitterbug page with the SF Bug Tracker page.
| Python | mit | sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator | #
# Minimal "re" compatibility wrapper
#
# If your regexps don't work well under 2.0b1, you can switch
# to the old engine ("pre") down below.
#
# To help us fix any remaining bugs in the new engine, please
# report what went wrong. You can either use the following web
# page:
#
# http://www.python.org/search/searc... | #
# Minimal "re" compatibility wrapper
#
# If your regexps don't work well under 2.0b1, you can switch
# to the old engine ("pre") down below.
#
# To help us fix any remaining bugs in the new engine, please
# report what went wrong. You can either use the following web
# page:
#
# http://sourceforge.net/bugs/?group... | <commit_before>#
# Minimal "re" compatibility wrapper
#
# If your regexps don't work well under 2.0b1, you can switch
# to the old engine ("pre") down below.
#
# To help us fix any remaining bugs in the new engine, please
# report what went wrong. You can either use the following web
# page:
#
# http://www.python.o... | #
# Minimal "re" compatibility wrapper
#
# If your regexps don't work well under 2.0b1, you can switch
# to the old engine ("pre") down below.
#
# To help us fix any remaining bugs in the new engine, please
# report what went wrong. You can either use the following web
# page:
#
# http://sourceforge.net/bugs/?group... | #
# Minimal "re" compatibility wrapper
#
# If your regexps don't work well under 2.0b1, you can switch
# to the old engine ("pre") down below.
#
# To help us fix any remaining bugs in the new engine, please
# report what went wrong. You can either use the following web
# page:
#
# http://www.python.org/search/searc... | <commit_before>#
# Minimal "re" compatibility wrapper
#
# If your regexps don't work well under 2.0b1, you can switch
# to the old engine ("pre") down below.
#
# To help us fix any remaining bugs in the new engine, please
# report what went wrong. You can either use the following web
# page:
#
# http://www.python.o... |
b59b6b9cd9134b97bea71e491822da16b0256cc8 | setup.py | setup.py | from setuptools import setup, find_packages
import sys, os
desc_lines = open('README', 'r').readlines()
PACKAGE = 'mtconvert'
VERSION = open(os.path.join(os.path.dirname(os.path.realpath(__file__)),'oldowan', PACKAGE, 'VERSION')).read().strip()
setup(name='oldowan.%s' % PACKAGE,
version=VERSION,
descrip... | from setuptools import setup, find_packages
import sys, os
desc_lines = open('README', 'r').readlines()
PACKAGE = 'mtconvert'
VERSION = open(os.path.join(os.path.dirname(os.path.realpath(__file__)),'oldowan', PACKAGE, 'VERSION')).read().strip()
setup(name='oldowan.%s' % PACKAGE,
version=VERSION,
descrip... | Fix package data so that VERSION file actually gets installed | Fix package data so that VERSION file actually gets installed
| Python | mit | ryanraaum/oldowan.mtconvert | from setuptools import setup, find_packages
import sys, os
desc_lines = open('README', 'r').readlines()
PACKAGE = 'mtconvert'
VERSION = open(os.path.join(os.path.dirname(os.path.realpath(__file__)),'oldowan', PACKAGE, 'VERSION')).read().strip()
setup(name='oldowan.%s' % PACKAGE,
version=VERSION,
descrip... | from setuptools import setup, find_packages
import sys, os
desc_lines = open('README', 'r').readlines()
PACKAGE = 'mtconvert'
VERSION = open(os.path.join(os.path.dirname(os.path.realpath(__file__)),'oldowan', PACKAGE, 'VERSION')).read().strip()
setup(name='oldowan.%s' % PACKAGE,
version=VERSION,
descrip... | <commit_before>from setuptools import setup, find_packages
import sys, os
desc_lines = open('README', 'r').readlines()
PACKAGE = 'mtconvert'
VERSION = open(os.path.join(os.path.dirname(os.path.realpath(__file__)),'oldowan', PACKAGE, 'VERSION')).read().strip()
setup(name='oldowan.%s' % PACKAGE,
version=VERSION... | from setuptools import setup, find_packages
import sys, os
desc_lines = open('README', 'r').readlines()
PACKAGE = 'mtconvert'
VERSION = open(os.path.join(os.path.dirname(os.path.realpath(__file__)),'oldowan', PACKAGE, 'VERSION')).read().strip()
setup(name='oldowan.%s' % PACKAGE,
version=VERSION,
descrip... | from setuptools import setup, find_packages
import sys, os
desc_lines = open('README', 'r').readlines()
PACKAGE = 'mtconvert'
VERSION = open(os.path.join(os.path.dirname(os.path.realpath(__file__)),'oldowan', PACKAGE, 'VERSION')).read().strip()
setup(name='oldowan.%s' % PACKAGE,
version=VERSION,
descrip... | <commit_before>from setuptools import setup, find_packages
import sys, os
desc_lines = open('README', 'r').readlines()
PACKAGE = 'mtconvert'
VERSION = open(os.path.join(os.path.dirname(os.path.realpath(__file__)),'oldowan', PACKAGE, 'VERSION')).read().strip()
setup(name='oldowan.%s' % PACKAGE,
version=VERSION... |
9d8d426c452492fb3d5e255d31f2c5f96f257b8d | setup.py | setup.py | from setuptools import setup, find_packages
def parse_requirements(requirement_file):
with open(requirement_file) as f:
return f.readlines()
setup(
name="swimlane",
author="Swimlane LLC",
author_email="[email protected]",
url="https://github.com/swimlane/swimlane-python",
packages=fin... | from setuptools import setup, find_packages
def parse_requirements(requirement_file):
with open(requirement_file) as f:
return f.readlines()
setup(
name="swimlane",
author="Swimlane LLC",
author_email="[email protected]",
url="https://github.com/swimlane/swimlane-python",
packages=fin... | Remove Pypy from list of supported Python versions | Remove Pypy from list of supported Python versions
| Python | mit | Swimlane/sw-python-client | from setuptools import setup, find_packages
def parse_requirements(requirement_file):
with open(requirement_file) as f:
return f.readlines()
setup(
name="swimlane",
author="Swimlane LLC",
author_email="[email protected]",
url="https://github.com/swimlane/swimlane-python",
packages=fin... | from setuptools import setup, find_packages
def parse_requirements(requirement_file):
with open(requirement_file) as f:
return f.readlines()
setup(
name="swimlane",
author="Swimlane LLC",
author_email="[email protected]",
url="https://github.com/swimlane/swimlane-python",
packages=fin... | <commit_before>from setuptools import setup, find_packages
def parse_requirements(requirement_file):
with open(requirement_file) as f:
return f.readlines()
setup(
name="swimlane",
author="Swimlane LLC",
author_email="[email protected]",
url="https://github.com/swimlane/swimlane-python",
... | from setuptools import setup, find_packages
def parse_requirements(requirement_file):
with open(requirement_file) as f:
return f.readlines()
setup(
name="swimlane",
author="Swimlane LLC",
author_email="[email protected]",
url="https://github.com/swimlane/swimlane-python",
packages=fin... | from setuptools import setup, find_packages
def parse_requirements(requirement_file):
with open(requirement_file) as f:
return f.readlines()
setup(
name="swimlane",
author="Swimlane LLC",
author_email="[email protected]",
url="https://github.com/swimlane/swimlane-python",
packages=fin... | <commit_before>from setuptools import setup, find_packages
def parse_requirements(requirement_file):
with open(requirement_file) as f:
return f.readlines()
setup(
name="swimlane",
author="Swimlane LLC",
author_email="[email protected]",
url="https://github.com/swimlane/swimlane-python",
... |
43a7652639b4448ee2a6684717eca6c285ea43e9 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(name='simplecoin_rpc_client',
version='0.2.0',
author='Isaac Cook',
author_email='[email protected]',
entry_points={
'console_scripts': [
'simplecoin_rpc_scheduler = simplecoin_rpc_client.scheduler... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(name='simplecoin_rpc_client',
version='0.2.0',
author='Isaac Cook',
author_email='[email protected]',
entry_points={
'console_scripts': [
'simplecoin_rpc_scheduler = simplecoin_rpc_client.scheduler... | Fix incorrect module path in manual management command | Fix incorrect module path in manual management command
| Python | isc | simplecrypto/simplecoin_rpc_client | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(name='simplecoin_rpc_client',
version='0.2.0',
author='Isaac Cook',
author_email='[email protected]',
entry_points={
'console_scripts': [
'simplecoin_rpc_scheduler = simplecoin_rpc_client.scheduler... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(name='simplecoin_rpc_client',
version='0.2.0',
author='Isaac Cook',
author_email='[email protected]',
entry_points={
'console_scripts': [
'simplecoin_rpc_scheduler = simplecoin_rpc_client.scheduler... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
setup(name='simplecoin_rpc_client',
version='0.2.0',
author='Isaac Cook',
author_email='[email protected]',
entry_points={
'console_scripts': [
'simplecoin_rpc_scheduler = simplecoin_rpc_c... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(name='simplecoin_rpc_client',
version='0.2.0',
author='Isaac Cook',
author_email='[email protected]',
entry_points={
'console_scripts': [
'simplecoin_rpc_scheduler = simplecoin_rpc_client.scheduler... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(name='simplecoin_rpc_client',
version='0.2.0',
author='Isaac Cook',
author_email='[email protected]',
entry_points={
'console_scripts': [
'simplecoin_rpc_scheduler = simplecoin_rpc_client.scheduler... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
setup(name='simplecoin_rpc_client',
version='0.2.0',
author='Isaac Cook',
author_email='[email protected]',
entry_points={
'console_scripts': [
'simplecoin_rpc_scheduler = simplecoin_rpc_c... |
c6da491512bce15e3662a64a7ac4668441b53c5a | setup.py | setup.py | """Installer for marked
"""
from setuptools import setup, find_packages
setup(
name='marked',
description='',
long_description=open('README.rst').read(),
provides=['marked'],
version='1.0.0',
author='Wes Mason',
author_email='[email protected]',
url='https://github.com/1stvamp/marked.py'... | """Installer for marked
"""
from setuptools import setup, find_packages
setup(
name='marked',
description='Library/utility that converts HTML to markdown text',
long_description=open('README.rst').read(),
provides=['marked'],
version='1.0.0',
author='Wes Mason',
author_email='[email protected]... | Add short description to egg | Add short description to egg
| Python | bsd-3-clause | 1stvamp/marked | """Installer for marked
"""
from setuptools import setup, find_packages
setup(
name='marked',
description='',
long_description=open('README.rst').read(),
provides=['marked'],
version='1.0.0',
author='Wes Mason',
author_email='[email protected]',
url='https://github.com/1stvamp/marked.py'... | """Installer for marked
"""
from setuptools import setup, find_packages
setup(
name='marked',
description='Library/utility that converts HTML to markdown text',
long_description=open('README.rst').read(),
provides=['marked'],
version='1.0.0',
author='Wes Mason',
author_email='[email protected]... | <commit_before>"""Installer for marked
"""
from setuptools import setup, find_packages
setup(
name='marked',
description='',
long_description=open('README.rst').read(),
provides=['marked'],
version='1.0.0',
author='Wes Mason',
author_email='[email protected]',
url='https://github.com/1st... | """Installer for marked
"""
from setuptools import setup, find_packages
setup(
name='marked',
description='Library/utility that converts HTML to markdown text',
long_description=open('README.rst').read(),
provides=['marked'],
version='1.0.0',
author='Wes Mason',
author_email='[email protected]... | """Installer for marked
"""
from setuptools import setup, find_packages
setup(
name='marked',
description='',
long_description=open('README.rst').read(),
provides=['marked'],
version='1.0.0',
author='Wes Mason',
author_email='[email protected]',
url='https://github.com/1stvamp/marked.py'... | <commit_before>"""Installer for marked
"""
from setuptools import setup, find_packages
setup(
name='marked',
description='',
long_description=open('README.rst').read(),
provides=['marked'],
version='1.0.0',
author='Wes Mason',
author_email='[email protected]',
url='https://github.com/1st... |
90093b78240abd0b49132c28b82ff43137acdfd0 | setup.py | setup.py | # Copyright 2018 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | # Copyright 2018 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | Remove version restriction from opt_einsum. | Remove version restriction from opt_einsum.
See https://github.com/dgasmith/opt_einsum/issues/98.
| Python | apache-2.0 | tensorflow/probability,google/jax,tensorflow/probability,google/jax,google/jax,google/jax | # Copyright 2018 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | # Copyright 2018 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | <commit_before># Copyright 2018 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | # Copyright 2018 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | # Copyright 2018 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | <commit_before># Copyright 2018 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... |
1752df7ad93776635c2ad0ff3871e1a333b85845 | setup.py | setup.py | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
import versions
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='versions',
version=versions.__version__,
description='Package version handling library',
long_description... | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
import versions
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='versions',
version=versions.__version__,
description='Package version handling library',
long_description... | Add classifiers for Python 3.2 and 3.3 | Add classifiers for Python 3.2 and 3.3
| Python | mit | pmuller/versions,pmuller/versions | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
import versions
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='versions',
version=versions.__version__,
description='Package version handling library',
long_description... | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
import versions
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='versions',
version=versions.__version__,
description='Package version handling library',
long_description... | <commit_before>#!/usr/bin/env python
import os
from setuptools import setup, find_packages
import versions
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='versions',
version=versions.__version__,
description='Package version handling library',
l... | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
import versions
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='versions',
version=versions.__version__,
description='Package version handling library',
long_description... | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
import versions
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='versions',
version=versions.__version__,
description='Package version handling library',
long_description... | <commit_before>#!/usr/bin/env python
import os
from setuptools import setup, find_packages
import versions
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='versions',
version=versions.__version__,
description='Package version handling library',
l... |
3cf5ad70d1dc70f8399b50d7c5ea89209f14d00c | setup.py | setup.py | import sys
IS_PYTHON3 = sys.version_info[0] == 3
if not IS_PYTHON3:
print("Error: signac requires python version >= 3.x.")
sys.exit(1)
from setuptools import setup, find_packages
setup(
name='signac',
version='0.1.7dev5',
packages=find_packages(),
author='Carl Simon Adorf',
author_email='... | import sys
IS_PYTHON3 = sys.version_info[0] == 3
if not IS_PYTHON3:
print("Error: signac requires python version >= 3.x.")
sys.exit(1)
from setuptools import setup, find_packages
setup(
name='signac',
version='0.1.7dev5',
packages=find_packages(),
author='Carl Simon Adorf',
author_email='... | Add requirement 'six', required for configobj. | Add requirement 'six', required for configobj.
| Python | bsd-3-clause | csadorf/signac,csadorf/signac | import sys
IS_PYTHON3 = sys.version_info[0] == 3
if not IS_PYTHON3:
print("Error: signac requires python version >= 3.x.")
sys.exit(1)
from setuptools import setup, find_packages
setup(
name='signac',
version='0.1.7dev5',
packages=find_packages(),
author='Carl Simon Adorf',
author_email='... | import sys
IS_PYTHON3 = sys.version_info[0] == 3
if not IS_PYTHON3:
print("Error: signac requires python version >= 3.x.")
sys.exit(1)
from setuptools import setup, find_packages
setup(
name='signac',
version='0.1.7dev5',
packages=find_packages(),
author='Carl Simon Adorf',
author_email='... | <commit_before>import sys
IS_PYTHON3 = sys.version_info[0] == 3
if not IS_PYTHON3:
print("Error: signac requires python version >= 3.x.")
sys.exit(1)
from setuptools import setup, find_packages
setup(
name='signac',
version='0.1.7dev5',
packages=find_packages(),
author='Carl Simon Adorf',
... | import sys
IS_PYTHON3 = sys.version_info[0] == 3
if not IS_PYTHON3:
print("Error: signac requires python version >= 3.x.")
sys.exit(1)
from setuptools import setup, find_packages
setup(
name='signac',
version='0.1.7dev5',
packages=find_packages(),
author='Carl Simon Adorf',
author_email='... | import sys
IS_PYTHON3 = sys.version_info[0] == 3
if not IS_PYTHON3:
print("Error: signac requires python version >= 3.x.")
sys.exit(1)
from setuptools import setup, find_packages
setup(
name='signac',
version='0.1.7dev5',
packages=find_packages(),
author='Carl Simon Adorf',
author_email='... | <commit_before>import sys
IS_PYTHON3 = sys.version_info[0] == 3
if not IS_PYTHON3:
print("Error: signac requires python version >= 3.x.")
sys.exit(1)
from setuptools import setup, find_packages
setup(
name='signac',
version='0.1.7dev5',
packages=find_packages(),
author='Carl Simon Adorf',
... |
919819a9226d49893a677a3578b7efb9c02f00bf | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
import sys
import os
version = '1.1.5'
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
long_description = open('README.md').read()
if sys.argv[-1] == 'publish':
os.system('python setup.py... | #!/usr/bin/env python
from setuptools import setup
import sys
import os
version = '1.1.6'
with open('README.md', encoding='utf-8') as f:
long_description = f.read()
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
setup(
name='africastalking',
version=version,
... | Write long description as git flavoured markdown | Write long description as git flavoured markdown
| Python | mit | AfricasTalkingLtd/africastalking-python,AfricasTalkingLtd/africastalking-python,AfricasTalkingLtd/africastalking-python | #!/usr/bin/env python
from distutils.core import setup
import sys
import os
version = '1.1.5'
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
long_description = open('README.md').read()
if sys.argv[-1] == 'publish':
os.system('python setup.py... | #!/usr/bin/env python
from setuptools import setup
import sys
import os
version = '1.1.6'
with open('README.md', encoding='utf-8') as f:
long_description = f.read()
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
setup(
name='africastalking',
version=version,
... | <commit_before>#!/usr/bin/env python
from distutils.core import setup
import sys
import os
version = '1.1.5'
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
long_description = open('README.md').read()
if sys.argv[-1] == 'publish':
os.system('... | #!/usr/bin/env python
from setuptools import setup
import sys
import os
version = '1.1.6'
with open('README.md', encoding='utf-8') as f:
long_description = f.read()
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
setup(
name='africastalking',
version=version,
... | #!/usr/bin/env python
from distutils.core import setup
import sys
import os
version = '1.1.5'
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
long_description = open('README.md').read()
if sys.argv[-1] == 'publish':
os.system('python setup.py... | <commit_before>#!/usr/bin/env python
from distutils.core import setup
import sys
import os
version = '1.1.5'
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
long_description = open('README.md').read()
if sys.argv[-1] == 'publish':
os.system('... |
9f3de0529b2f6d78e97f395c3751cd060fd36248 | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import websitepoller
from setuptools import setup
description = "Polls specified websites and alerts using system notifications."
try:
from pypandoc import convert
long_description = convert('README.md', 'rst')
except (ImportError, IOError, OSError):
print 'ch... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import websitepoller
from setuptools import setup
description = "Polls specified websites and alerts using system notifications."
try:
from pypandoc import convert
long_description = convert('README.md', 'rst')
except (ImportError, IOError, OSError):
print 'ch... | Include README to data_files properly | Include README to data_files properly
| Python | mit | koodilehto/website-poller,koodilehto/website-poller | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import websitepoller
from setuptools import setup
description = "Polls specified websites and alerts using system notifications."
try:
from pypandoc import convert
long_description = convert('README.md', 'rst')
except (ImportError, IOError, OSError):
print 'ch... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import websitepoller
from setuptools import setup
description = "Polls specified websites and alerts using system notifications."
try:
from pypandoc import convert
long_description = convert('README.md', 'rst')
except (ImportError, IOError, OSError):
print 'ch... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import websitepoller
from setuptools import setup
description = "Polls specified websites and alerts using system notifications."
try:
from pypandoc import convert
long_description = convert('README.md', 'rst')
except (ImportError, IOError, OSError)... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import websitepoller
from setuptools import setup
description = "Polls specified websites and alerts using system notifications."
try:
from pypandoc import convert
long_description = convert('README.md', 'rst')
except (ImportError, IOError, OSError):
print 'ch... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import websitepoller
from setuptools import setup
description = "Polls specified websites and alerts using system notifications."
try:
from pypandoc import convert
long_description = convert('README.md', 'rst')
except (ImportError, IOError, OSError):
print 'ch... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import websitepoller
from setuptools import setup
description = "Polls specified websites and alerts using system notifications."
try:
from pypandoc import convert
long_description = convert('README.md', 'rst')
except (ImportError, IOError, OSError)... |
e9494cce4ded69dbf8f7be7d77e4feed3121edb9 | setup.py | setup.py | # -*- coding: utf-8 -*-
import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-sb-admi... | # -*- coding: utf-8 -*-
import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-sb-admi... | Remove template's text and fix url to github | Remove template's text and fix url to github
| Python | apache-2.0 | bluszcz/django-sb-admin,bluszcz/django-sb-admin,bluszcz/django-sb-admin | # -*- coding: utf-8 -*-
import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-sb-admi... | # -*- coding: utf-8 -*-
import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-sb-admi... | <commit_before># -*- coding: utf-8 -*-
import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
README = readme.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=... | # -*- coding: utf-8 -*-
import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-sb-admi... | # -*- coding: utf-8 -*-
import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-sb-admi... | <commit_before># -*- coding: utf-8 -*-
import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
README = readme.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=... |
e6da3d784dd391681b5677029bf7400dc659759e | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from pytube import __version__
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('LICENSE') as readme_file:
license = readme_file.read()
se... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from pytube import __version__
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('LICENSE.txt') as readme_file:
license = readme_file.read()... | Fix open call for LICENSE.txt | Fix open call for LICENSE.txt
Closes #76 | Python | unlicense | pytube/pytube | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from pytube import __version__
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('LICENSE') as readme_file:
license = readme_file.read()
se... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from pytube import __version__
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('LICENSE.txt') as readme_file:
license = readme_file.read()... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from pytube import __version__
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('LICENSE') as readme_file:
license = readme_... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from pytube import __version__
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('LICENSE.txt') as readme_file:
license = readme_file.read()... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from pytube import __version__
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('LICENSE') as readme_file:
license = readme_file.read()
se... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from pytube import __version__
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('LICENSE') as readme_file:
license = readme_... |
700fbd3df723756857fca30411a430e5ace0f423 | 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)
test_requirements = []
with open('./requirements.txt') as requirements_txt:
requirements = [line for line in requirements_txt]
setup(
name="docker-py",
version='0.2.3',
... | #!/usr/bin/env python
import os
from setuptools import setup
ROOT_DIR = os.path.dirname(__file__)
SOURCE_DIR = os.path.join(ROOT_DIR)
test_requirements = []
with open('./requirements.txt') as requirements_txt:
requirements = [line for line in requirements_txt]
setup(
name="docker-py",
version='0.2.3',
... | Declare explicitly supported python versions | Declare explicitly supported python versions
| Python | apache-2.0 | hibooboo2/docker-py,jpopelka/docker-py,vdemeester/docker-py,youhong316/docker-py,tbeadle/docker-py,minzhang28/docker-py,bboreham/docker-py,zwqzhangweiqiang/docker-py,kaiyou/docker-py,rschmidtz/docker-py,stevenewey/docker-py,schu/docker-py,youhong316/docker-py,ibuildthecloud/docker-py,TomasTomecek/docker-py,tristan0x/do... | #!/usr/bin/env python
import os
from setuptools import setup
ROOT_DIR = os.path.dirname(__file__)
SOURCE_DIR = os.path.join(ROOT_DIR)
test_requirements = []
with open('./requirements.txt') as requirements_txt:
requirements = [line for line in requirements_txt]
setup(
name="docker-py",
version='0.2.3',
... | #!/usr/bin/env python
import os
from setuptools import setup
ROOT_DIR = os.path.dirname(__file__)
SOURCE_DIR = os.path.join(ROOT_DIR)
test_requirements = []
with open('./requirements.txt') as requirements_txt:
requirements = [line for line in requirements_txt]
setup(
name="docker-py",
version='0.2.3',
... | <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)
test_requirements = []
with open('./requirements.txt') as requirements_txt:
requirements = [line for line in requirements_txt]
setup(
name="docker-py",
vers... | #!/usr/bin/env python
import os
from setuptools import setup
ROOT_DIR = os.path.dirname(__file__)
SOURCE_DIR = os.path.join(ROOT_DIR)
test_requirements = []
with open('./requirements.txt') as requirements_txt:
requirements = [line for line in requirements_txt]
setup(
name="docker-py",
version='0.2.3',
... | #!/usr/bin/env python
import os
from setuptools import setup
ROOT_DIR = os.path.dirname(__file__)
SOURCE_DIR = os.path.join(ROOT_DIR)
test_requirements = []
with open('./requirements.txt') as requirements_txt:
requirements = [line for line in requirements_txt]
setup(
name="docker-py",
version='0.2.3',
... | <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)
test_requirements = []
with open('./requirements.txt') as requirements_txt:
requirements = [line for line in requirements_txt]
setup(
name="docker-py",
vers... |
e89f5e4025c5880788676d6c92224710b041a322 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
def install():
setup(
name='dogu',
version='1.0',
license='MIT',
description='Dogu server, Implementation of dogu interace',
long_description='Dogu server, Implementation of dogu interace',
author='L... | #!/usr/bin/env python
from setuptools import setup, find_packages
def install():
setup(
name='dogu',
version='1.0',
license='MIT',
description='Dogu server, Implementation of dogu interace',
long_description='Dogu server, Implementation of dogu interace',
author='L... | Change Planning to Pre Alpha | Change Planning to Pre Alpha
| Python | mit | SomaSoma/dogu | #!/usr/bin/env python
from setuptools import setup, find_packages
def install():
setup(
name='dogu',
version='1.0',
license='MIT',
description='Dogu server, Implementation of dogu interace',
long_description='Dogu server, Implementation of dogu interace',
author='L... | #!/usr/bin/env python
from setuptools import setup, find_packages
def install():
setup(
name='dogu',
version='1.0',
license='MIT',
description='Dogu server, Implementation of dogu interace',
long_description='Dogu server, Implementation of dogu interace',
author='L... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
def install():
setup(
name='dogu',
version='1.0',
license='MIT',
description='Dogu server, Implementation of dogu interace',
long_description='Dogu server, Implementation of dogu interace',
... | #!/usr/bin/env python
from setuptools import setup, find_packages
def install():
setup(
name='dogu',
version='1.0',
license='MIT',
description='Dogu server, Implementation of dogu interace',
long_description='Dogu server, Implementation of dogu interace',
author='L... | #!/usr/bin/env python
from setuptools import setup, find_packages
def install():
setup(
name='dogu',
version='1.0',
license='MIT',
description='Dogu server, Implementation of dogu interace',
long_description='Dogu server, Implementation of dogu interace',
author='L... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
def install():
setup(
name='dogu',
version='1.0',
license='MIT',
description='Dogu server, Implementation of dogu interace',
long_description='Dogu server, Implementation of dogu interace',
... |
dab413f009cd6095142ce20995ab058be97657c8 | setup.py | setup.py | from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
import numpy
import configuration
ext_modules = [Extension("sourceterm.srccython", ["sourceterm/srccython.pyx"],
extra_compile_args=["-g"],
extra_link_args=["-g"],
... | from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
import numpy
import configuration
ext_modules = [Extension("sourceterm.srccython", ["sourceterm/srccython.pyx"],
extra_compile_args=["-g"],
extra_link_args=["-g"],
... | Change name of module made by cython to rk4cython to test. | Change name of module made by cython to rk4cython to test.
| Python | bsd-3-clause | ihuston/pyflation,ihuston/pyflation | from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
import numpy
import configuration
ext_modules = [Extension("sourceterm.srccython", ["sourceterm/srccython.pyx"],
extra_compile_args=["-g"],
extra_link_args=["-g"],
... | from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
import numpy
import configuration
ext_modules = [Extension("sourceterm.srccython", ["sourceterm/srccython.pyx"],
extra_compile_args=["-g"],
extra_link_args=["-g"],
... | <commit_before>from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
import numpy
import configuration
ext_modules = [Extension("sourceterm.srccython", ["sourceterm/srccython.pyx"],
extra_compile_args=["-g"],
extra_link_args=["... | from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
import numpy
import configuration
ext_modules = [Extension("sourceterm.srccython", ["sourceterm/srccython.pyx"],
extra_compile_args=["-g"],
extra_link_args=["-g"],
... | from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
import numpy
import configuration
ext_modules = [Extension("sourceterm.srccython", ["sourceterm/srccython.pyx"],
extra_compile_args=["-g"],
extra_link_args=["-g"],
... | <commit_before>from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
import numpy
import configuration
ext_modules = [Extension("sourceterm.srccython", ["sourceterm/srccython.pyx"],
extra_compile_args=["-g"],
extra_link_args=["... |
5bf901933e3b0ced065a9134d75b3653cb9d94d3 | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
setup(
name='django-compress',
version='1.0.0',
description='A Django app for compressing CSS and JS',
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
setup(
name='django-compress',
version='2.0.0',
description='A Django app for compressing CSS and JS',
... | Bump to 2.0 to get past old django-compress | Bump to 2.0 to get past old django-compress
| Python | bsd-3-clause | finiteloopsoftware/django-compressor | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
setup(
name='django-compress',
version='1.0.0',
description='A Django app for compressing CSS and JS',
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
setup(
name='django-compress',
version='2.0.0',
description='A Django app for compressing CSS and JS',
... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
setup(
name='django-compress',
version='1.0.0',
description='A Django app for compressing CS... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
setup(
name='django-compress',
version='2.0.0',
description='A Django app for compressing CSS and JS',
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
setup(
name='django-compress',
version='1.0.0',
description='A Django app for compressing CSS and JS',
... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
setup(
name='django-compress',
version='1.0.0',
description='A Django app for compressing CS... |
0ab49537a5ee5cae80d7447e8a787eee734b02cc | setup.py | setup.py | #!/usr/bin/python2.4
from distutils.core import setup
setup(name='mox',
version='0.5.1',
py_modules=['mox', 'stubout'],
url='http://code.google.com/p/pymox/',
maintainer='pymox maintainers',
maintainer_email='[email protected]',
license='Apache License, Version 2.0',
... | #!/usr/bin/python2.4
from distutils.core import setup
setup(name='mox',
version='0.5.2',
py_modules=['mox', 'stubout'],
url='http://code.google.com/p/pymox/',
maintainer='pymox maintainers',
maintainer_email='[email protected]',
license='Apache License, Version 2.0',
... | Increment version number to 0.5.2 for new release. | Increment version number to 0.5.2 for new release.
git-svn-id: 81b94fb54a9ccc5de77f18f0566c533f73bbb9c4@41 b1010a0a-674b-0410-b734-77272b80c875
| Python | apache-2.0 | gmcquillan/mimic | #!/usr/bin/python2.4
from distutils.core import setup
setup(name='mox',
version='0.5.1',
py_modules=['mox', 'stubout'],
url='http://code.google.com/p/pymox/',
maintainer='pymox maintainers',
maintainer_email='[email protected]',
license='Apache License, Version 2.0',
... | #!/usr/bin/python2.4
from distutils.core import setup
setup(name='mox',
version='0.5.2',
py_modules=['mox', 'stubout'],
url='http://code.google.com/p/pymox/',
maintainer='pymox maintainers',
maintainer_email='[email protected]',
license='Apache License, Version 2.0',
... | <commit_before>#!/usr/bin/python2.4
from distutils.core import setup
setup(name='mox',
version='0.5.1',
py_modules=['mox', 'stubout'],
url='http://code.google.com/p/pymox/',
maintainer='pymox maintainers',
maintainer_email='[email protected]',
license='Apache License, Ver... | #!/usr/bin/python2.4
from distutils.core import setup
setup(name='mox',
version='0.5.2',
py_modules=['mox', 'stubout'],
url='http://code.google.com/p/pymox/',
maintainer='pymox maintainers',
maintainer_email='[email protected]',
license='Apache License, Version 2.0',
... | #!/usr/bin/python2.4
from distutils.core import setup
setup(name='mox',
version='0.5.1',
py_modules=['mox', 'stubout'],
url='http://code.google.com/p/pymox/',
maintainer='pymox maintainers',
maintainer_email='[email protected]',
license='Apache License, Version 2.0',
... | <commit_before>#!/usr/bin/python2.4
from distutils.core import setup
setup(name='mox',
version='0.5.1',
py_modules=['mox', 'stubout'],
url='http://code.google.com/p/pymox/',
maintainer='pymox maintainers',
maintainer_email='[email protected]',
license='Apache License, Ver... |
0540d4c176134f573eeebd3e44e01aecf7291151 | setup.py | setup.py | import setuptools
setuptools.setup(
name="Monufacture",
version="2.0.0",
author="Tom Leach",
author_email="[email protected]",
description="A lightweight factory framework for easily generating test data in MongoDB",
license="BSD",
keywords="mongo mongodb database testing factory pymongo",
url=... | import setuptools
setuptools.setup(
name="Monufacture",
version="2.0.0",
author="Tom Leach",
author_email="[email protected]",
description="A lightweight factory framework for easily generating test data in MongoDB",
license="BSD",
keywords="mongo mongodb database testing factory pymongo",
url=... | Add upper bound on PyMongo version for future compatibility | Add upper bound on PyMongo version for future compatibility
| Python | mit | gamechanger/monufacture | import setuptools
setuptools.setup(
name="Monufacture",
version="2.0.0",
author="Tom Leach",
author_email="[email protected]",
description="A lightweight factory framework for easily generating test data in MongoDB",
license="BSD",
keywords="mongo mongodb database testing factory pymongo",
url=... | import setuptools
setuptools.setup(
name="Monufacture",
version="2.0.0",
author="Tom Leach",
author_email="[email protected]",
description="A lightweight factory framework for easily generating test data in MongoDB",
license="BSD",
keywords="mongo mongodb database testing factory pymongo",
url=... | <commit_before>import setuptools
setuptools.setup(
name="Monufacture",
version="2.0.0",
author="Tom Leach",
author_email="[email protected]",
description="A lightweight factory framework for easily generating test data in MongoDB",
license="BSD",
keywords="mongo mongodb database testing factory pym... | import setuptools
setuptools.setup(
name="Monufacture",
version="2.0.0",
author="Tom Leach",
author_email="[email protected]",
description="A lightweight factory framework for easily generating test data in MongoDB",
license="BSD",
keywords="mongo mongodb database testing factory pymongo",
url=... | import setuptools
setuptools.setup(
name="Monufacture",
version="2.0.0",
author="Tom Leach",
author_email="[email protected]",
description="A lightweight factory framework for easily generating test data in MongoDB",
license="BSD",
keywords="mongo mongodb database testing factory pymongo",
url=... | <commit_before>import setuptools
setuptools.setup(
name="Monufacture",
version="2.0.0",
author="Tom Leach",
author_email="[email protected]",
description="A lightweight factory framework for easily generating test data in MongoDB",
license="BSD",
keywords="mongo mongodb database testing factory pym... |
d2e5d784b4b1376e294b032e937479a7104a47d0 | setup.py | setup.py | import os
from glob import glob
from setuptools import setup, find_packages
def read(fname):
with open(os.path.join(os.path.dirname(__file__), fname)) as f:
return f.read()
def recursive_include(module):
module_path = module.replace(".", "/") + "/"
files = glob(f"{module_path}**", recursive=True... | import os
from glob import glob
from setuptools import setup, find_packages
def read(fname):
with open(os.path.join(os.path.dirname(__file__), fname)) as f:
return f.read()
def recursive_include(module):
module_path = module.replace(".", "/") + "/"
files = glob(f"{module_path}**", recursive=True... | Add official OSI name in the license metadata | Add official OSI name in the license metadata
This makes it easier for automatic license checkers to verify the license of this package. | Python | mit | kivy/kivy-ios,kivy/kivy-ios,kivy/kivy-ios | import os
from glob import glob
from setuptools import setup, find_packages
def read(fname):
with open(os.path.join(os.path.dirname(__file__), fname)) as f:
return f.read()
def recursive_include(module):
module_path = module.replace(".", "/") + "/"
files = glob(f"{module_path}**", recursive=True... | import os
from glob import glob
from setuptools import setup, find_packages
def read(fname):
with open(os.path.join(os.path.dirname(__file__), fname)) as f:
return f.read()
def recursive_include(module):
module_path = module.replace(".", "/") + "/"
files = glob(f"{module_path}**", recursive=True... | <commit_before>import os
from glob import glob
from setuptools import setup, find_packages
def read(fname):
with open(os.path.join(os.path.dirname(__file__), fname)) as f:
return f.read()
def recursive_include(module):
module_path = module.replace(".", "/") + "/"
files = glob(f"{module_path}**",... | import os
from glob import glob
from setuptools import setup, find_packages
def read(fname):
with open(os.path.join(os.path.dirname(__file__), fname)) as f:
return f.read()
def recursive_include(module):
module_path = module.replace(".", "/") + "/"
files = glob(f"{module_path}**", recursive=True... | import os
from glob import glob
from setuptools import setup, find_packages
def read(fname):
with open(os.path.join(os.path.dirname(__file__), fname)) as f:
return f.read()
def recursive_include(module):
module_path = module.replace(".", "/") + "/"
files = glob(f"{module_path}**", recursive=True... | <commit_before>import os
from glob import glob
from setuptools import setup, find_packages
def read(fname):
with open(os.path.join(os.path.dirname(__file__), fname)) as f:
return f.read()
def recursive_include(module):
module_path = module.replace(".", "/") + "/"
files = glob(f"{module_path}**",... |
ccdfc8d9d45ccdfd8c525572b655e4ddfb8fe328 | setup.py | setup.py | from setuptools import setup, find_packages
from suponoff import __version__ as version
if __name__ == '__main__':
with open("README.rst") as f:
long_description = f.read()
setup(
name="suponoff",
version=version,
author="Gambit Research",
author_email="opensource@gambi... | from setuptools import setup, find_packages
from suponoff import __version__ as version
if __name__ == '__main__':
with open("README.rst") as f:
long_description = f.read()
setup(
name="suponoff",
version=version,
author="Gambit Research",
author_email="opensource@gambi... | Add 'Systems Administration' to the list of project classifiers | Add 'Systems Administration' to the list of project classifiers
| Python | bsd-2-clause | GambitResearch/suponoff,GambitResearch/suponoff,lciti/suponoff,lciti/suponoff,GambitResearch/suponoff,lciti/suponoff | from setuptools import setup, find_packages
from suponoff import __version__ as version
if __name__ == '__main__':
with open("README.rst") as f:
long_description = f.read()
setup(
name="suponoff",
version=version,
author="Gambit Research",
author_email="opensource@gambi... | from setuptools import setup, find_packages
from suponoff import __version__ as version
if __name__ == '__main__':
with open("README.rst") as f:
long_description = f.read()
setup(
name="suponoff",
version=version,
author="Gambit Research",
author_email="opensource@gambi... | <commit_before>from setuptools import setup, find_packages
from suponoff import __version__ as version
if __name__ == '__main__':
with open("README.rst") as f:
long_description = f.read()
setup(
name="suponoff",
version=version,
author="Gambit Research",
author_email="o... | from setuptools import setup, find_packages
from suponoff import __version__ as version
if __name__ == '__main__':
with open("README.rst") as f:
long_description = f.read()
setup(
name="suponoff",
version=version,
author="Gambit Research",
author_email="opensource@gambi... | from setuptools import setup, find_packages
from suponoff import __version__ as version
if __name__ == '__main__':
with open("README.rst") as f:
long_description = f.read()
setup(
name="suponoff",
version=version,
author="Gambit Research",
author_email="opensource@gambi... | <commit_before>from setuptools import setup, find_packages
from suponoff import __version__ as version
if __name__ == '__main__':
with open("README.rst") as f:
long_description = f.read()
setup(
name="suponoff",
version=version,
author="Gambit Research",
author_email="o... |
b26d8903561809bec0224cd0ebec5c3c6bff7ee5 | setup.py | setup.py | from setuptools import setup, find_packages
requires = [
'configparser',
'python-dateutil',
'pytz',
'requests',
'simplejson'
]
setup(
name='amaascore',
version='0.1.7',
description='Asset Management as a Service - Core SDK',
license='Apache License 2.0',
url='https://github.com... | from setuptools import setup, find_packages
requires = [
'configparser',
'python-dateutil',
'pytz',
'requests',
'simplejson'
]
setup(
name='amaascore',
version='0.1.8',
description='Asset Management as a Service - Core SDK',
license='Apache License 2.0',
url='https://github.com... | Increment version for deployment to PyPI | Increment version for deployment to PyPI
| Python | apache-2.0 | paul-rs/amaas-core-sdk-python,amaas-fintech/amaas-core-sdk-python,nedlowe/amaas-core-sdk-python,nedlowe/amaas-core-sdk-python,paul-rs/amaas-core-sdk-python,amaas-fintech/amaas-core-sdk-python | from setuptools import setup, find_packages
requires = [
'configparser',
'python-dateutil',
'pytz',
'requests',
'simplejson'
]
setup(
name='amaascore',
version='0.1.7',
description='Asset Management as a Service - Core SDK',
license='Apache License 2.0',
url='https://github.com... | from setuptools import setup, find_packages
requires = [
'configparser',
'python-dateutil',
'pytz',
'requests',
'simplejson'
]
setup(
name='amaascore',
version='0.1.8',
description='Asset Management as a Service - Core SDK',
license='Apache License 2.0',
url='https://github.com... | <commit_before>from setuptools import setup, find_packages
requires = [
'configparser',
'python-dateutil',
'pytz',
'requests',
'simplejson'
]
setup(
name='amaascore',
version='0.1.7',
description='Asset Management as a Service - Core SDK',
license='Apache License 2.0',
url='htt... | from setuptools import setup, find_packages
requires = [
'configparser',
'python-dateutil',
'pytz',
'requests',
'simplejson'
]
setup(
name='amaascore',
version='0.1.8',
description='Asset Management as a Service - Core SDK',
license='Apache License 2.0',
url='https://github.com... | from setuptools import setup, find_packages
requires = [
'configparser',
'python-dateutil',
'pytz',
'requests',
'simplejson'
]
setup(
name='amaascore',
version='0.1.7',
description='Asset Management as a Service - Core SDK',
license='Apache License 2.0',
url='https://github.com... | <commit_before>from setuptools import setup, find_packages
requires = [
'configparser',
'python-dateutil',
'pytz',
'requests',
'simplejson'
]
setup(
name='amaascore',
version='0.1.7',
description='Asset Management as a Service - Core SDK',
license='Apache License 2.0',
url='htt... |
adaf3a3d1caadebc773d1153f382953d6a39700e | setup.py | setup.py | import os
from setuptools import setup
README = open(os.path.join(os.path.dirname(__file__), 'README.md')).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='hybridize',
version='0.1',
packages=['hybridize'],
inc... | import os
from setuptools import setup
README = open(os.path.join(os.path.dirname(__file__), 'README.md')).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='hybridize',
version='0.1',
packages=['hybridize'],
inc... | Use pyscss instead of libsass, as it should be able to be successfully installed on our managed servers. | Use pyscss instead of libsass, as it should be able to be successfully installed on our managed servers.
| Python | apache-2.0 | charlon/django-hybridize,charlon/django-hybridize,charlon/django-hybridize | import os
from setuptools import setup
README = open(os.path.join(os.path.dirname(__file__), 'README.md')).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='hybridize',
version='0.1',
packages=['hybridize'],
inc... | import os
from setuptools import setup
README = open(os.path.join(os.path.dirname(__file__), 'README.md')).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='hybridize',
version='0.1',
packages=['hybridize'],
inc... | <commit_before>import os
from setuptools import setup
README = open(os.path.join(os.path.dirname(__file__), 'README.md')).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='hybridize',
version='0.1',
packages=['hybri... | import os
from setuptools import setup
README = open(os.path.join(os.path.dirname(__file__), 'README.md')).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='hybridize',
version='0.1',
packages=['hybridize'],
inc... | import os
from setuptools import setup
README = open(os.path.join(os.path.dirname(__file__), 'README.md')).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='hybridize',
version='0.1',
packages=['hybridize'],
inc... | <commit_before>import os
from setuptools import setup
README = open(os.path.join(os.path.dirname(__file__), 'README.md')).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='hybridize',
version='0.1',
packages=['hybri... |
fc1be53d3e877ea647c1712705097e36d889d3b7 | setup.py | setup.py | #!/usr/bin/env python
import twelve
import twelve.adapters
import twelve.services
try:
from setuptools import setup
# hush pyflakes
setup
except ImportError:
from distutils.core import setup
requires = []
setup(
name="twelve",
version=twelve.__version__,
description="12factor inspired set... | #!/usr/bin/env python
import twelve
import twelve.adapters
import twelve.services
try:
from setuptools import setup
# hush pyflakes
setup
except ImportError:
from distutils.core import setup
requires = []
setup(
name="twelve",
version=twelve.__version__,
description="12factor inspired set... | Switch URL to Crate page | Switch URL to Crate page
| Python | bsd-3-clause | dstufft/twelve | #!/usr/bin/env python
import twelve
import twelve.adapters
import twelve.services
try:
from setuptools import setup
# hush pyflakes
setup
except ImportError:
from distutils.core import setup
requires = []
setup(
name="twelve",
version=twelve.__version__,
description="12factor inspired set... | #!/usr/bin/env python
import twelve
import twelve.adapters
import twelve.services
try:
from setuptools import setup
# hush pyflakes
setup
except ImportError:
from distutils.core import setup
requires = []
setup(
name="twelve",
version=twelve.__version__,
description="12factor inspired set... | <commit_before>#!/usr/bin/env python
import twelve
import twelve.adapters
import twelve.services
try:
from setuptools import setup
# hush pyflakes
setup
except ImportError:
from distutils.core import setup
requires = []
setup(
name="twelve",
version=twelve.__version__,
description="12fact... | #!/usr/bin/env python
import twelve
import twelve.adapters
import twelve.services
try:
from setuptools import setup
# hush pyflakes
setup
except ImportError:
from distutils.core import setup
requires = []
setup(
name="twelve",
version=twelve.__version__,
description="12factor inspired set... | #!/usr/bin/env python
import twelve
import twelve.adapters
import twelve.services
try:
from setuptools import setup
# hush pyflakes
setup
except ImportError:
from distutils.core import setup
requires = []
setup(
name="twelve",
version=twelve.__version__,
description="12factor inspired set... | <commit_before>#!/usr/bin/env python
import twelve
import twelve.adapters
import twelve.services
try:
from setuptools import setup
# hush pyflakes
setup
except ImportError:
from distutils.core import setup
requires = []
setup(
name="twelve",
version=twelve.__version__,
description="12fact... |
c55e5ed59e8fdfa451227a3ed29fee042a591a6a | setup.py | setup.py | import setuptools
from polymorphic_auth import __version__
setuptools.setup(
name='django-polymorphic-auth',
version=__version__,
packages=setuptools.find_packages(),
install_requires=[
'coverage',
'Django',
'django-dynamic-fixture',
'django-nose',
'django-polym... | import setuptools
from polymorphic_auth import __version__
setuptools.setup(
name='django-polymorphic-auth',
version=__version__,
packages=setuptools.find_packages(),
install_requires=[
'coverage',
'Django',
'django-dynamic-fixture',
'django-nose',
'django-polym... | Add `dev` extras to requirements. | Add `dev` extras to requirements.
| Python | mit | whembed197923/django-polymorphic-auth,ixc/django-polymorphic-auth | import setuptools
from polymorphic_auth import __version__
setuptools.setup(
name='django-polymorphic-auth',
version=__version__,
packages=setuptools.find_packages(),
install_requires=[
'coverage',
'Django',
'django-dynamic-fixture',
'django-nose',
'django-polym... | import setuptools
from polymorphic_auth import __version__
setuptools.setup(
name='django-polymorphic-auth',
version=__version__,
packages=setuptools.find_packages(),
install_requires=[
'coverage',
'Django',
'django-dynamic-fixture',
'django-nose',
'django-polym... | <commit_before>import setuptools
from polymorphic_auth import __version__
setuptools.setup(
name='django-polymorphic-auth',
version=__version__,
packages=setuptools.find_packages(),
install_requires=[
'coverage',
'Django',
'django-dynamic-fixture',
'django-nose',
... | import setuptools
from polymorphic_auth import __version__
setuptools.setup(
name='django-polymorphic-auth',
version=__version__,
packages=setuptools.find_packages(),
install_requires=[
'coverage',
'Django',
'django-dynamic-fixture',
'django-nose',
'django-polym... | import setuptools
from polymorphic_auth import __version__
setuptools.setup(
name='django-polymorphic-auth',
version=__version__,
packages=setuptools.find_packages(),
install_requires=[
'coverage',
'Django',
'django-dynamic-fixture',
'django-nose',
'django-polym... | <commit_before>import setuptools
from polymorphic_auth import __version__
setuptools.setup(
name='django-polymorphic-auth',
version=__version__,
packages=setuptools.find_packages(),
install_requires=[
'coverage',
'Django',
'django-dynamic-fixture',
'django-nose',
... |
0fea9c036e77a5c6b4d829a41b8a5770f9c4a9f0 | setup.py | setup.py | #!/usr/bin/env python
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
#
# 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
#
# Unle... | #!/usr/bin/env python
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
#
# 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
#
# Unle... | Use pip instead of easy_install for installation. | Use pip instead of easy_install for installation.
If we're running the installation of dependencies for installation
ourselves anyway - just use pip and be done with it. This means
that our requirements will get installed consistently regardless of
whether we're using pip, python setup.py install or a tox environment.... | Python | apache-2.0 | openstack-attic/oslo.version,emonty/oslo.version | #!/usr/bin/env python
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
#
# 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
#
# Unle... | #!/usr/bin/env python
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
#
# 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
#
# Unle... | <commit_before>#!/usr/bin/env python
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
#
# 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/LICEN... | #!/usr/bin/env python
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
#
# 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
#
# Unle... | #!/usr/bin/env python
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
#
# 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
#
# Unle... | <commit_before>#!/usr/bin/env python
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
#
# 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/LICEN... |
20a4d6b681b2fe174f3ef9f03c0ece9024a7fca5 | views.py | views.py | from django.http import HttpResponse
from django.shortcuts import render_to_response
from store.models import FandomHierarchy, Image
from store.itemfilters import ApplyPredicates
def frontpage(request):
tree = FandomHierarchy.objects.filter(parent_id=None).get_root()
return render_to_response('index.html', {'filter'... | from django.http import HttpResponse
from django.shortcuts import render_to_response
from store.models import FandomHierarchy, Image
from store.itemfilters import ApplyPredicates
def frontpage(request):
tree = FandomHierarchy.objects.filter(parent=None).get_root()
return render_to_response('index.html', {'filter': N... | Use the right field name? | Use the right field name?
| Python | bsd-3-clause | willmurnane/store | from django.http import HttpResponse
from django.shortcuts import render_to_response
from store.models import FandomHierarchy, Image
from store.itemfilters import ApplyPredicates
def frontpage(request):
tree = FandomHierarchy.objects.filter(parent_id=None).get_root()
return render_to_response('index.html', {'filter'... | from django.http import HttpResponse
from django.shortcuts import render_to_response
from store.models import FandomHierarchy, Image
from store.itemfilters import ApplyPredicates
def frontpage(request):
tree = FandomHierarchy.objects.filter(parent=None).get_root()
return render_to_response('index.html', {'filter': N... | <commit_before>from django.http import HttpResponse
from django.shortcuts import render_to_response
from store.models import FandomHierarchy, Image
from store.itemfilters import ApplyPredicates
def frontpage(request):
tree = FandomHierarchy.objects.filter(parent_id=None).get_root()
return render_to_response('index.h... | from django.http import HttpResponse
from django.shortcuts import render_to_response
from store.models import FandomHierarchy, Image
from store.itemfilters import ApplyPredicates
def frontpage(request):
tree = FandomHierarchy.objects.filter(parent=None).get_root()
return render_to_response('index.html', {'filter': N... | from django.http import HttpResponse
from django.shortcuts import render_to_response
from store.models import FandomHierarchy, Image
from store.itemfilters import ApplyPredicates
def frontpage(request):
tree = FandomHierarchy.objects.filter(parent_id=None).get_root()
return render_to_response('index.html', {'filter'... | <commit_before>from django.http import HttpResponse
from django.shortcuts import render_to_response
from store.models import FandomHierarchy, Image
from store.itemfilters import ApplyPredicates
def frontpage(request):
tree = FandomHierarchy.objects.filter(parent_id=None).get_root()
return render_to_response('index.h... |
6270f9b926e741efb86940c9c670e23b397e45de | tests/grammar_atomic_tests.py | tests/grammar_atomic_tests.py | from unittest import TestCase
from pyparsing import ParseException
from regparser.grammar.atomic import *
class GrammarAtomicTests(TestCase):
def test_em_digit_p(self):
result = em_digit_p.parseString('(<E T="03">2</E>)')
self.assertEqual('2', result.p5)
def test_double_alpha(self):
... | from unittest import TestCase
from pyparsing import ParseException
from regparser.grammar.atomic import *
class GrammarAtomicTests(TestCase):
def test_em_digit_p(self):
result = em_digit_p.parseString('(<E T="03">2</E>)')
self.assertEqual('2', result.p5)
def test_double_alpha(self):
... | Refactor test to eliminate assertRaises() error with Python 2.6 | Refactor test to eliminate assertRaises() error with Python 2.6
| Python | cc0-1.0 | cmc333333/regulations-parser,eregs/regulations-parser,tadhg-ohiggins/regulations-parser,cmc333333/regulations-parser,eregs/regulations-parser,tadhg-ohiggins/regulations-parser | from unittest import TestCase
from pyparsing import ParseException
from regparser.grammar.atomic import *
class GrammarAtomicTests(TestCase):
def test_em_digit_p(self):
result = em_digit_p.parseString('(<E T="03">2</E>)')
self.assertEqual('2', result.p5)
def test_double_alpha(self):
... | from unittest import TestCase
from pyparsing import ParseException
from regparser.grammar.atomic import *
class GrammarAtomicTests(TestCase):
def test_em_digit_p(self):
result = em_digit_p.parseString('(<E T="03">2</E>)')
self.assertEqual('2', result.p5)
def test_double_alpha(self):
... | <commit_before>from unittest import TestCase
from pyparsing import ParseException
from regparser.grammar.atomic import *
class GrammarAtomicTests(TestCase):
def test_em_digit_p(self):
result = em_digit_p.parseString('(<E T="03">2</E>)')
self.assertEqual('2', result.p5)
def test_double_alpha(... | from unittest import TestCase
from pyparsing import ParseException
from regparser.grammar.atomic import *
class GrammarAtomicTests(TestCase):
def test_em_digit_p(self):
result = em_digit_p.parseString('(<E T="03">2</E>)')
self.assertEqual('2', result.p5)
def test_double_alpha(self):
... | from unittest import TestCase
from pyparsing import ParseException
from regparser.grammar.atomic import *
class GrammarAtomicTests(TestCase):
def test_em_digit_p(self):
result = em_digit_p.parseString('(<E T="03">2</E>)')
self.assertEqual('2', result.p5)
def test_double_alpha(self):
... | <commit_before>from unittest import TestCase
from pyparsing import ParseException
from regparser.grammar.atomic import *
class GrammarAtomicTests(TestCase):
def test_em_digit_p(self):
result = em_digit_p.parseString('(<E T="03">2</E>)')
self.assertEqual('2', result.p5)
def test_double_alpha(... |
5a6175f3d5a7d3bb709d55d317e19c804ad0634c | captura/views.py | captura/views.py | from django.contrib.auth.decorators import user_passes_test, login_required
from django.shortcuts import render
from perfiles_usuario.utils import is_capturista
from estudios_socioeconomicos.models import Estudio
@login_required
@user_passes_test(is_capturista)
def capturista_dashboard(request):
"""View to rende... | from django.contrib.auth.decorators import user_passes_test, login_required
from django.shortcuts import render
from perfiles_usuario.utils import is_capturista
from estudios_socioeconomicos.models import Estudio
@login_required
#@user_passes_test(is_capturista)
def capturista_dashboard(request):
"""View to rend... | Correct the view of capturist dashboard | Correct the view of capturist dashboard
| Python | mit | erikiado/jp2_online,erikiado/jp2_online,erikiado/jp2_online | from django.contrib.auth.decorators import user_passes_test, login_required
from django.shortcuts import render
from perfiles_usuario.utils import is_capturista
from estudios_socioeconomicos.models import Estudio
@login_required
@user_passes_test(is_capturista)
def capturista_dashboard(request):
"""View to rende... | from django.contrib.auth.decorators import user_passes_test, login_required
from django.shortcuts import render
from perfiles_usuario.utils import is_capturista
from estudios_socioeconomicos.models import Estudio
@login_required
#@user_passes_test(is_capturista)
def capturista_dashboard(request):
"""View to rend... | <commit_before>from django.contrib.auth.decorators import user_passes_test, login_required
from django.shortcuts import render
from perfiles_usuario.utils import is_capturista
from estudios_socioeconomicos.models import Estudio
@login_required
@user_passes_test(is_capturista)
def capturista_dashboard(request):
"... | from django.contrib.auth.decorators import user_passes_test, login_required
from django.shortcuts import render
from perfiles_usuario.utils import is_capturista
from estudios_socioeconomicos.models import Estudio
@login_required
#@user_passes_test(is_capturista)
def capturista_dashboard(request):
"""View to rend... | from django.contrib.auth.decorators import user_passes_test, login_required
from django.shortcuts import render
from perfiles_usuario.utils import is_capturista
from estudios_socioeconomicos.models import Estudio
@login_required
@user_passes_test(is_capturista)
def capturista_dashboard(request):
"""View to rende... | <commit_before>from django.contrib.auth.decorators import user_passes_test, login_required
from django.shortcuts import render
from perfiles_usuario.utils import is_capturista
from estudios_socioeconomicos.models import Estudio
@login_required
@user_passes_test(is_capturista)
def capturista_dashboard(request):
"... |
5410bdf26ac014066efa9e0770a9d902adcbcc75 | Python/kraken/core/objects/attributes/integer_attribute.py | Python/kraken/core/objects/attributes/integer_attribute.py | """Kraken - objects.Attributes.IntegerAttribute module.
Classes:
IntegerAttribute - Base Attribute.
"""
from number_attribute import NumberAttribute
from kraken.core.kraken_system import ks
class IntegerAttribute(NumberAttribute):
"""Float Attribute. Implemented value type checking and limiting."""
def __i... | """Kraken - objects.Attributes.IntegerAttribute module.
Classes:
IntegerAttribute - Base Attribute.
"""
from number_attribute import NumberAttribute
from kraken.core.kraken_system import ks
class IntegerAttribute(NumberAttribute):
"""Float Attribute. Implemented value type checking and limiting."""
def __i... | Fix value attribute name to _value | Fix value attribute name to _value
| Python | bsd-3-clause | goshow-jp/Kraken,goshow-jp/Kraken,goshow-jp/Kraken,oculusstorystudio/kraken,oculusstorystudio/kraken | """Kraken - objects.Attributes.IntegerAttribute module.
Classes:
IntegerAttribute - Base Attribute.
"""
from number_attribute import NumberAttribute
from kraken.core.kraken_system import ks
class IntegerAttribute(NumberAttribute):
"""Float Attribute. Implemented value type checking and limiting."""
def __i... | """Kraken - objects.Attributes.IntegerAttribute module.
Classes:
IntegerAttribute - Base Attribute.
"""
from number_attribute import NumberAttribute
from kraken.core.kraken_system import ks
class IntegerAttribute(NumberAttribute):
"""Float Attribute. Implemented value type checking and limiting."""
def __i... | <commit_before>"""Kraken - objects.Attributes.IntegerAttribute module.
Classes:
IntegerAttribute - Base Attribute.
"""
from number_attribute import NumberAttribute
from kraken.core.kraken_system import ks
class IntegerAttribute(NumberAttribute):
"""Float Attribute. Implemented value type checking and limiting."... | """Kraken - objects.Attributes.IntegerAttribute module.
Classes:
IntegerAttribute - Base Attribute.
"""
from number_attribute import NumberAttribute
from kraken.core.kraken_system import ks
class IntegerAttribute(NumberAttribute):
"""Float Attribute. Implemented value type checking and limiting."""
def __i... | """Kraken - objects.Attributes.IntegerAttribute module.
Classes:
IntegerAttribute - Base Attribute.
"""
from number_attribute import NumberAttribute
from kraken.core.kraken_system import ks
class IntegerAttribute(NumberAttribute):
"""Float Attribute. Implemented value type checking and limiting."""
def __i... | <commit_before>"""Kraken - objects.Attributes.IntegerAttribute module.
Classes:
IntegerAttribute - Base Attribute.
"""
from number_attribute import NumberAttribute
from kraken.core.kraken_system import ks
class IntegerAttribute(NumberAttribute):
"""Float Attribute. Implemented value type checking and limiting."... |
a79801b4f67f3372231b1df2c73e52a7cc6b35a3 | perfiles_usuario/models.py | perfiles_usuario/models.py | from django.db import models
from django.conf import settings
from django.contrib.auth.models import Group
from .utils import CAPTURISTA_GROUP
class Capturista(models.Model):
""" Extension of Django's User Model for Capturistas.
We extend the Django User Model to identify Capturistas since they have relatio... | from django.db import models
from django.conf import settings
from django.contrib.auth.models import Group
from .utils import CAPTURISTA_GROUP
class Capturista(models.Model):
""" Extension of Django's User Model for Capturistas.
We extend the Django User Model to identify Capturistas since they have relatio... | Fix user documentation in Capturista. | Fix user documentation in Capturista.
| Python | mit | erikiado/jp2_online,erikiado/jp2_online,erikiado/jp2_online | from django.db import models
from django.conf import settings
from django.contrib.auth.models import Group
from .utils import CAPTURISTA_GROUP
class Capturista(models.Model):
""" Extension of Django's User Model for Capturistas.
We extend the Django User Model to identify Capturistas since they have relatio... | from django.db import models
from django.conf import settings
from django.contrib.auth.models import Group
from .utils import CAPTURISTA_GROUP
class Capturista(models.Model):
""" Extension of Django's User Model for Capturistas.
We extend the Django User Model to identify Capturistas since they have relatio... | <commit_before>from django.db import models
from django.conf import settings
from django.contrib.auth.models import Group
from .utils import CAPTURISTA_GROUP
class Capturista(models.Model):
""" Extension of Django's User Model for Capturistas.
We extend the Django User Model to identify Capturistas since th... | from django.db import models
from django.conf import settings
from django.contrib.auth.models import Group
from .utils import CAPTURISTA_GROUP
class Capturista(models.Model):
""" Extension of Django's User Model for Capturistas.
We extend the Django User Model to identify Capturistas since they have relatio... | from django.db import models
from django.conf import settings
from django.contrib.auth.models import Group
from .utils import CAPTURISTA_GROUP
class Capturista(models.Model):
""" Extension of Django's User Model for Capturistas.
We extend the Django User Model to identify Capturistas since they have relatio... | <commit_before>from django.db import models
from django.conf import settings
from django.contrib.auth.models import Group
from .utils import CAPTURISTA_GROUP
class Capturista(models.Model):
""" Extension of Django's User Model for Capturistas.
We extend the Django User Model to identify Capturistas since th... |
8db0479c6d6d960eda2de2332ea19f3779943294 | run.py | run.py | # run.py
#
# Copyright(c) Exequiel Ceasar Navarrete <[email protected]>
# Licensed under MIT
# Version 0.0.0
from app import app
if __name__ == "__main__":
# run the application
app.run(debug=app.config['DEBUG'])
| #!/usr/bin/env python
# run.py
#
# Copyright(c) Exequiel Ceasar Navarrete <[email protected]>
# Licensed under MIT
# Version 0.0.0
from app import app
if __name__ == "__main__":
# run the application
app.run(debug=app.config['DEBUG'])
| Add python shebang and change file mode to executable | Add python shebang and change file mode to executable
| Python | mit | ecsnavarretemit/sarai-interactive-maps-backend,ecsnavarretemit/sarai-interactive-maps-backend | # run.py
#
# Copyright(c) Exequiel Ceasar Navarrete <[email protected]>
# Licensed under MIT
# Version 0.0.0
from app import app
if __name__ == "__main__":
# run the application
app.run(debug=app.config['DEBUG'])
Add python shebang and change file mode to executable | #!/usr/bin/env python
# run.py
#
# Copyright(c) Exequiel Ceasar Navarrete <[email protected]>
# Licensed under MIT
# Version 0.0.0
from app import app
if __name__ == "__main__":
# run the application
app.run(debug=app.config['DEBUG'])
| <commit_before># run.py
#
# Copyright(c) Exequiel Ceasar Navarrete <[email protected]>
# Licensed under MIT
# Version 0.0.0
from app import app
if __name__ == "__main__":
# run the application
app.run(debug=app.config['DEBUG'])
<commit_msg>Add python shebang and change file mode to executable<commit_after> | #!/usr/bin/env python
# run.py
#
# Copyright(c) Exequiel Ceasar Navarrete <[email protected]>
# Licensed under MIT
# Version 0.0.0
from app import app
if __name__ == "__main__":
# run the application
app.run(debug=app.config['DEBUG'])
| # run.py
#
# Copyright(c) Exequiel Ceasar Navarrete <[email protected]>
# Licensed under MIT
# Version 0.0.0
from app import app
if __name__ == "__main__":
# run the application
app.run(debug=app.config['DEBUG'])
Add python shebang and change file mode to executable#!/usr/bin/env python
# run.py
#
# Copyr... | <commit_before># run.py
#
# Copyright(c) Exequiel Ceasar Navarrete <[email protected]>
# Licensed under MIT
# Version 0.0.0
from app import app
if __name__ == "__main__":
# run the application
app.run(debug=app.config['DEBUG'])
<commit_msg>Add python shebang and change file mode to executable<commit_after>... |
c8550f68977077347eba7331c882585e9bb945bf | cla_backend/apps/cla_eventlog/management/commands/find_and_delete_old_cases.py | cla_backend/apps/cla_eventlog/management/commands/find_and_delete_old_cases.py | from django.core.management.base import BaseCommand
from dateutil.relativedelta import relativedelta
from legalaid.models import Case
from cla_butler.tasks import DeleteOldData
class FindAndDeleteCasesUsingCreationTime(DeleteOldData):
def get_eligible_cases(self):
super(FindAndDeleteCasesUsingCreationTim... | from django.core.management.base import BaseCommand
from dateutil.relativedelta import relativedelta
from legalaid.models import Case
from cla_butler.tasks import DeleteOldData
class FindAndDeleteCasesUsingCreationTime(DeleteOldData):
def get_eligible_cases(self):
self._setup()
two_years = self.n... | Refactor command to find cases by default | Refactor command to find cases by default | Python | mit | ministryofjustice/cla_backend,ministryofjustice/cla_backend,ministryofjustice/cla_backend,ministryofjustice/cla_backend | from django.core.management.base import BaseCommand
from dateutil.relativedelta import relativedelta
from legalaid.models import Case
from cla_butler.tasks import DeleteOldData
class FindAndDeleteCasesUsingCreationTime(DeleteOldData):
def get_eligible_cases(self):
super(FindAndDeleteCasesUsingCreationTim... | from django.core.management.base import BaseCommand
from dateutil.relativedelta import relativedelta
from legalaid.models import Case
from cla_butler.tasks import DeleteOldData
class FindAndDeleteCasesUsingCreationTime(DeleteOldData):
def get_eligible_cases(self):
self._setup()
two_years = self.n... | <commit_before>from django.core.management.base import BaseCommand
from dateutil.relativedelta import relativedelta
from legalaid.models import Case
from cla_butler.tasks import DeleteOldData
class FindAndDeleteCasesUsingCreationTime(DeleteOldData):
def get_eligible_cases(self):
super(FindAndDeleteCasesU... | from django.core.management.base import BaseCommand
from dateutil.relativedelta import relativedelta
from legalaid.models import Case
from cla_butler.tasks import DeleteOldData
class FindAndDeleteCasesUsingCreationTime(DeleteOldData):
def get_eligible_cases(self):
self._setup()
two_years = self.n... | from django.core.management.base import BaseCommand
from dateutil.relativedelta import relativedelta
from legalaid.models import Case
from cla_butler.tasks import DeleteOldData
class FindAndDeleteCasesUsingCreationTime(DeleteOldData):
def get_eligible_cases(self):
super(FindAndDeleteCasesUsingCreationTim... | <commit_before>from django.core.management.base import BaseCommand
from dateutil.relativedelta import relativedelta
from legalaid.models import Case
from cla_butler.tasks import DeleteOldData
class FindAndDeleteCasesUsingCreationTime(DeleteOldData):
def get_eligible_cases(self):
super(FindAndDeleteCasesU... |
f02282be3cf2901a9fd6c816f1b4c37b09abdc7b | addons/base/models/hooks.py | addons/base/models/hooks.py | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2014-2015 Anthony Minotti <[email protected]>.
#
#
# This file is part of Yameo framework.
#
# Yameo framework is free software: you can redistribute it and/or modify
# it under the terms of the G... | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2014-2015 Anthony Minotti <[email protected]>.
#
#
# This file is part of Yameo framework.
#
# Yameo framework is free software: you can redistribute it and/or modify
# it under the terms of the G... | Test if ressource is hookable before write/update | Test if ressource is hookable before write/update
| Python | agpl-3.0 | aminotti/yameo,aminotti/yameo | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2014-2015 Anthony Minotti <[email protected]>.
#
#
# This file is part of Yameo framework.
#
# Yameo framework is free software: you can redistribute it and/or modify
# it under the terms of the G... | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2014-2015 Anthony Minotti <[email protected]>.
#
#
# This file is part of Yameo framework.
#
# Yameo framework is free software: you can redistribute it and/or modify
# it under the terms of the G... | <commit_before># -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2014-2015 Anthony Minotti <[email protected]>.
#
#
# This file is part of Yameo framework.
#
# Yameo framework is free software: you can redistribute it and/or modify
# it under the... | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2014-2015 Anthony Minotti <[email protected]>.
#
#
# This file is part of Yameo framework.
#
# Yameo framework is free software: you can redistribute it and/or modify
# it under the terms of the G... | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2014-2015 Anthony Minotti <[email protected]>.
#
#
# This file is part of Yameo framework.
#
# Yameo framework is free software: you can redistribute it and/or modify
# it under the terms of the G... | <commit_before># -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2014-2015 Anthony Minotti <[email protected]>.
#
#
# This file is part of Yameo framework.
#
# Yameo framework is free software: you can redistribute it and/or modify
# it under the... |
7dfff7af5c76ab920cf07cb79e5b8c068be33328 | ingestors/worker.py | ingestors/worker.py | import logging
from followthemoney import model
from servicelayer.worker import Worker
from ingestors.manager import Manager
log = logging.getLogger(__name__)
class IngestWorker(Worker):
"""A long running task runner that uses Redis as a task queue"""
def dispatch_next(self, task, entities):
next_s... | import logging
from followthemoney import model
from servicelayer.worker import Worker
from ingestors.manager import Manager
log = logging.getLogger(__name__)
class IngestWorker(Worker):
"""A long running task runner that uses Redis as a task queue"""
def dispatch_next(self, task, entities):
next_s... | Fix entity index aggregator argument error | Fix entity index aggregator argument error
| Python | mit | alephdata/ingestors | import logging
from followthemoney import model
from servicelayer.worker import Worker
from ingestors.manager import Manager
log = logging.getLogger(__name__)
class IngestWorker(Worker):
"""A long running task runner that uses Redis as a task queue"""
def dispatch_next(self, task, entities):
next_s... | import logging
from followthemoney import model
from servicelayer.worker import Worker
from ingestors.manager import Manager
log = logging.getLogger(__name__)
class IngestWorker(Worker):
"""A long running task runner that uses Redis as a task queue"""
def dispatch_next(self, task, entities):
next_s... | <commit_before>import logging
from followthemoney import model
from servicelayer.worker import Worker
from ingestors.manager import Manager
log = logging.getLogger(__name__)
class IngestWorker(Worker):
"""A long running task runner that uses Redis as a task queue"""
def dispatch_next(self, task, entities):... | import logging
from followthemoney import model
from servicelayer.worker import Worker
from ingestors.manager import Manager
log = logging.getLogger(__name__)
class IngestWorker(Worker):
"""A long running task runner that uses Redis as a task queue"""
def dispatch_next(self, task, entities):
next_s... | import logging
from followthemoney import model
from servicelayer.worker import Worker
from ingestors.manager import Manager
log = logging.getLogger(__name__)
class IngestWorker(Worker):
"""A long running task runner that uses Redis as a task queue"""
def dispatch_next(self, task, entities):
next_s... | <commit_before>import logging
from followthemoney import model
from servicelayer.worker import Worker
from ingestors.manager import Manager
log = logging.getLogger(__name__)
class IngestWorker(Worker):
"""A long running task runner that uses Redis as a task queue"""
def dispatch_next(self, task, entities):... |
879a9034b134b542d5e5eed69929b68cb6471390 | statdyn/analysis/run_analysis.py | statdyn/analysis/run_analysis.py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2017 Malcolm Ramsay <[email protected]>
#
# Distributed under terms of the MIT license.
"""Run an analysis on a trajectory."""
import click
import gsd.hoomd
import numpy as np
from ..sdrun import options
from .order import orientatio... | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2017 Malcolm Ramsay <[email protected]>
#
# Distributed under terms of the MIT license.
"""Run an analysis on a trajectory."""
import logging
import click
import gsd.hoomd
import numpy as np
from ..sdrun import options
from .order i... | Add error handling for corrupted trajectory frames | Add error handling for corrupted trajectory frames
When the analysis came across corrupted frames from a trajectory the
analysis stopped. Rather than stopping this should just continue past
the corrupted frames.
| Python | mit | malramsay64/MD-Molecules-Hoomd,malramsay64/MD-Molecules-Hoomd | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2017 Malcolm Ramsay <[email protected]>
#
# Distributed under terms of the MIT license.
"""Run an analysis on a trajectory."""
import click
import gsd.hoomd
import numpy as np
from ..sdrun import options
from .order import orientatio... | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2017 Malcolm Ramsay <[email protected]>
#
# Distributed under terms of the MIT license.
"""Run an analysis on a trajectory."""
import logging
import click
import gsd.hoomd
import numpy as np
from ..sdrun import options
from .order i... | <commit_before>#! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2017 Malcolm Ramsay <[email protected]>
#
# Distributed under terms of the MIT license.
"""Run an analysis on a trajectory."""
import click
import gsd.hoomd
import numpy as np
from ..sdrun import options
from .order im... | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2017 Malcolm Ramsay <[email protected]>
#
# Distributed under terms of the MIT license.
"""Run an analysis on a trajectory."""
import logging
import click
import gsd.hoomd
import numpy as np
from ..sdrun import options
from .order i... | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2017 Malcolm Ramsay <[email protected]>
#
# Distributed under terms of the MIT license.
"""Run an analysis on a trajectory."""
import click
import gsd.hoomd
import numpy as np
from ..sdrun import options
from .order import orientatio... | <commit_before>#! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2017 Malcolm Ramsay <[email protected]>
#
# Distributed under terms of the MIT license.
"""Run an analysis on a trajectory."""
import click
import gsd.hoomd
import numpy as np
from ..sdrun import options
from .order im... |
5bbd106aa49f13550ee93c173f7f8684e4fa1d4b | biothings/tests/test_query.py | biothings/tests/test_query.py | '''
Biothings Query Component Common Tests
'''
import os
from nose.core import main
from biothings.tests import BiothingsTestCase
class QueryTests(BiothingsTestCase):
''' Test against server specified in environment variable BT_HOST
and BT_API or MyGene.info production server V3 by def... | '''
Biothings Query Component Common Tests
'''
import os
from nose.core import main
from biothings.tests import BiothingsTestCase
class QueryTests(BiothingsTestCase):
''' Test against server specified in environment variable BT_HOST
and BT_API or MyGene.info production server V3 by def... | Change match all query syntax | Change match all query syntax
| Python | apache-2.0 | biothings/biothings.api,biothings/biothings.api | '''
Biothings Query Component Common Tests
'''
import os
from nose.core import main
from biothings.tests import BiothingsTestCase
class QueryTests(BiothingsTestCase):
''' Test against server specified in environment variable BT_HOST
and BT_API or MyGene.info production server V3 by def... | '''
Biothings Query Component Common Tests
'''
import os
from nose.core import main
from biothings.tests import BiothingsTestCase
class QueryTests(BiothingsTestCase):
''' Test against server specified in environment variable BT_HOST
and BT_API or MyGene.info production server V3 by def... | <commit_before>'''
Biothings Query Component Common Tests
'''
import os
from nose.core import main
from biothings.tests import BiothingsTestCase
class QueryTests(BiothingsTestCase):
''' Test against server specified in environment variable BT_HOST
and BT_API or MyGene.info production s... | '''
Biothings Query Component Common Tests
'''
import os
from nose.core import main
from biothings.tests import BiothingsTestCase
class QueryTests(BiothingsTestCase):
''' Test against server specified in environment variable BT_HOST
and BT_API or MyGene.info production server V3 by def... | '''
Biothings Query Component Common Tests
'''
import os
from nose.core import main
from biothings.tests import BiothingsTestCase
class QueryTests(BiothingsTestCase):
''' Test against server specified in environment variable BT_HOST
and BT_API or MyGene.info production server V3 by def... | <commit_before>'''
Biothings Query Component Common Tests
'''
import os
from nose.core import main
from biothings.tests import BiothingsTestCase
class QueryTests(BiothingsTestCase):
''' Test against server specified in environment variable BT_HOST
and BT_API or MyGene.info production s... |
6cc4eef05c8d92ee4af2d0e40566379f5eba1e19 | untappd/distinct_per_venue.py | untappd/distinct_per_venue.py | import user
VENUE = 257163
def GetUserCheckins(user_obj, limit=50, max_id=None):
request = {'limit': limit}
if max_id is not None:
request['max_id'] = max_id
return user_obj.GetUserCheckins(request)
def IsPonyCheckin(checkin):
if 'venue' not in checkin:
return False
return checkin['venue'].get('v... | import user
VENUE = 257163
def GetUserCheckins(user_obj, limit=50, max_id=None):
request = {'limit': limit}
if max_id is not None:
request['max_id'] = max_id
return user_obj.GetUserCheckins(request)
def IsPonyCheckin(checkin):
if 'venue' not in checkin:
return False
return checkin['venue'].get('v... | Add missing brace to comprehension | Add missing brace to comprehension | Python | mit | adamomfg/pytappd | import user
VENUE = 257163
def GetUserCheckins(user_obj, limit=50, max_id=None):
request = {'limit': limit}
if max_id is not None:
request['max_id'] = max_id
return user_obj.GetUserCheckins(request)
def IsPonyCheckin(checkin):
if 'venue' not in checkin:
return False
return checkin['venue'].get('v... | import user
VENUE = 257163
def GetUserCheckins(user_obj, limit=50, max_id=None):
request = {'limit': limit}
if max_id is not None:
request['max_id'] = max_id
return user_obj.GetUserCheckins(request)
def IsPonyCheckin(checkin):
if 'venue' not in checkin:
return False
return checkin['venue'].get('v... | <commit_before>import user
VENUE = 257163
def GetUserCheckins(user_obj, limit=50, max_id=None):
request = {'limit': limit}
if max_id is not None:
request['max_id'] = max_id
return user_obj.GetUserCheckins(request)
def IsPonyCheckin(checkin):
if 'venue' not in checkin:
return False
return checkin[... | import user
VENUE = 257163
def GetUserCheckins(user_obj, limit=50, max_id=None):
request = {'limit': limit}
if max_id is not None:
request['max_id'] = max_id
return user_obj.GetUserCheckins(request)
def IsPonyCheckin(checkin):
if 'venue' not in checkin:
return False
return checkin['venue'].get('v... | import user
VENUE = 257163
def GetUserCheckins(user_obj, limit=50, max_id=None):
request = {'limit': limit}
if max_id is not None:
request['max_id'] = max_id
return user_obj.GetUserCheckins(request)
def IsPonyCheckin(checkin):
if 'venue' not in checkin:
return False
return checkin['venue'].get('v... | <commit_before>import user
VENUE = 257163
def GetUserCheckins(user_obj, limit=50, max_id=None):
request = {'limit': limit}
if max_id is not None:
request['max_id'] = max_id
return user_obj.GetUserCheckins(request)
def IsPonyCheckin(checkin):
if 'venue' not in checkin:
return False
return checkin[... |
c8918e5ee06c3f7ec84124ebfccddb738dca2bfb | test/python_api/default-constructor/sb_communication.py | test/python_api/default-constructor/sb_communication.py | """
Fuzz tests an object after the default construction to make sure it does not crash lldb.
"""
import sys
import lldb
def fuzz_obj(obj):
broadcaster = obj.GetBroadcaster()
# Do fuzz testing on the broadcaster obj, it should not crash lldb.
import sb_broadcaster
sb_broadcaster.fuzz_obj(broadcaster)
... | """
Fuzz tests an object after the default construction to make sure it does not crash lldb.
"""
import sys
import lldb
def fuzz_obj(obj):
broadcaster = obj.GetBroadcaster()
# Do fuzz testing on the broadcaster obj, it should not crash lldb.
import sb_broadcaster
sb_broadcaster.fuzz_obj(broadcaster)
... | Add a fuzz call for SBCommunication: obj.connect(None). | Add a fuzz call for SBCommunication: obj.connect(None).
git-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@146912 91177308-0d34-0410-b5e6-96231b3b80d8
| Python | apache-2.0 | llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb | """
Fuzz tests an object after the default construction to make sure it does not crash lldb.
"""
import sys
import lldb
def fuzz_obj(obj):
broadcaster = obj.GetBroadcaster()
# Do fuzz testing on the broadcaster obj, it should not crash lldb.
import sb_broadcaster
sb_broadcaster.fuzz_obj(broadcaster)
... | """
Fuzz tests an object after the default construction to make sure it does not crash lldb.
"""
import sys
import lldb
def fuzz_obj(obj):
broadcaster = obj.GetBroadcaster()
# Do fuzz testing on the broadcaster obj, it should not crash lldb.
import sb_broadcaster
sb_broadcaster.fuzz_obj(broadcaster)
... | <commit_before>"""
Fuzz tests an object after the default construction to make sure it does not crash lldb.
"""
import sys
import lldb
def fuzz_obj(obj):
broadcaster = obj.GetBroadcaster()
# Do fuzz testing on the broadcaster obj, it should not crash lldb.
import sb_broadcaster
sb_broadcaster.fuzz_obj... | """
Fuzz tests an object after the default construction to make sure it does not crash lldb.
"""
import sys
import lldb
def fuzz_obj(obj):
broadcaster = obj.GetBroadcaster()
# Do fuzz testing on the broadcaster obj, it should not crash lldb.
import sb_broadcaster
sb_broadcaster.fuzz_obj(broadcaster)
... | """
Fuzz tests an object after the default construction to make sure it does not crash lldb.
"""
import sys
import lldb
def fuzz_obj(obj):
broadcaster = obj.GetBroadcaster()
# Do fuzz testing on the broadcaster obj, it should not crash lldb.
import sb_broadcaster
sb_broadcaster.fuzz_obj(broadcaster)
... | <commit_before>"""
Fuzz tests an object after the default construction to make sure it does not crash lldb.
"""
import sys
import lldb
def fuzz_obj(obj):
broadcaster = obj.GetBroadcaster()
# Do fuzz testing on the broadcaster obj, it should not crash lldb.
import sb_broadcaster
sb_broadcaster.fuzz_obj... |
4b111c035f92f941cff4b6885d2fa01ddcb1657e | titanembeds/database/custom_redislite.py | titanembeds/database/custom_redislite.py | import urlparse
from limits.storage import Storage
from redislite import Redis
import time
class LimitsRedisLite(Storage): # For Python Limits
STORAGE_SCHEME = "redislite"
def __init__(self, uri, **options):
self.redis_instance = Redis(urlparse.urlparse(uri).netloc)
def check(self):
return... | import urlparse
from limits.storage import Storage
from redislite import Redis
import time
class LimitsRedisLite(Storage): # For Python Limits
STORAGE_SCHEME = "redislite"
def __init__(self, uri, **options):
self.redis_instance = Redis(urlparse.urlparse(uri).netloc)
def check(self):
return... | Fix custom redislite to account for the none errors | Fix custom redislite to account for the none errors
| Python | agpl-3.0 | TitanEmbeds/Titan,TitanEmbeds/Titan,TitanEmbeds/Titan | import urlparse
from limits.storage import Storage
from redislite import Redis
import time
class LimitsRedisLite(Storage): # For Python Limits
STORAGE_SCHEME = "redislite"
def __init__(self, uri, **options):
self.redis_instance = Redis(urlparse.urlparse(uri).netloc)
def check(self):
return... | import urlparse
from limits.storage import Storage
from redislite import Redis
import time
class LimitsRedisLite(Storage): # For Python Limits
STORAGE_SCHEME = "redislite"
def __init__(self, uri, **options):
self.redis_instance = Redis(urlparse.urlparse(uri).netloc)
def check(self):
return... | <commit_before>import urlparse
from limits.storage import Storage
from redislite import Redis
import time
class LimitsRedisLite(Storage): # For Python Limits
STORAGE_SCHEME = "redislite"
def __init__(self, uri, **options):
self.redis_instance = Redis(urlparse.urlparse(uri).netloc)
def check(self):... | import urlparse
from limits.storage import Storage
from redislite import Redis
import time
class LimitsRedisLite(Storage): # For Python Limits
STORAGE_SCHEME = "redislite"
def __init__(self, uri, **options):
self.redis_instance = Redis(urlparse.urlparse(uri).netloc)
def check(self):
return... | import urlparse
from limits.storage import Storage
from redislite import Redis
import time
class LimitsRedisLite(Storage): # For Python Limits
STORAGE_SCHEME = "redislite"
def __init__(self, uri, **options):
self.redis_instance = Redis(urlparse.urlparse(uri).netloc)
def check(self):
return... | <commit_before>import urlparse
from limits.storage import Storage
from redislite import Redis
import time
class LimitsRedisLite(Storage): # For Python Limits
STORAGE_SCHEME = "redislite"
def __init__(self, uri, **options):
self.redis_instance = Redis(urlparse.urlparse(uri).netloc)
def check(self):... |
63c81a18bd95876cad1bd4c1269d38e18ee3e817 | wikichatter/TalkPageParser.py | wikichatter/TalkPageParser.py | import mwparserfromhell as mwp
from . import IndentTree
from . import WikiComments as wc
class Page:
def __init__(self):
self.indent = -2
def __str__(self):
return "Talk_Page"
class Section:
def __init__(self, heading):
self.heading = heading
self.indent = -1
def __st... | import mwparserfromhell as mwp
from . import IndentTree
from . import WikiComments as wc
class Page:
def __init__(self):
self.indent = -2
def __str__(self):
return "Talk_Page"
class Section:
def __init__(self, heading):
self.heading = heading
self.indent = -1
def __st... | Make mwparserfromhell skip style tags | Make mwparserfromhell skip style tags
Since we do not really care if '' and ''' tags are processed
as plaintext or not, and not processing them as plaintext
causes #10
| Python | mit | kjschiroo/WikiChatter | import mwparserfromhell as mwp
from . import IndentTree
from . import WikiComments as wc
class Page:
def __init__(self):
self.indent = -2
def __str__(self):
return "Talk_Page"
class Section:
def __init__(self, heading):
self.heading = heading
self.indent = -1
def __st... | import mwparserfromhell as mwp
from . import IndentTree
from . import WikiComments as wc
class Page:
def __init__(self):
self.indent = -2
def __str__(self):
return "Talk_Page"
class Section:
def __init__(self, heading):
self.heading = heading
self.indent = -1
def __st... | <commit_before>import mwparserfromhell as mwp
from . import IndentTree
from . import WikiComments as wc
class Page:
def __init__(self):
self.indent = -2
def __str__(self):
return "Talk_Page"
class Section:
def __init__(self, heading):
self.heading = heading
self.indent = -... | import mwparserfromhell as mwp
from . import IndentTree
from . import WikiComments as wc
class Page:
def __init__(self):
self.indent = -2
def __str__(self):
return "Talk_Page"
class Section:
def __init__(self, heading):
self.heading = heading
self.indent = -1
def __st... | import mwparserfromhell as mwp
from . import IndentTree
from . import WikiComments as wc
class Page:
def __init__(self):
self.indent = -2
def __str__(self):
return "Talk_Page"
class Section:
def __init__(self, heading):
self.heading = heading
self.indent = -1
def __st... | <commit_before>import mwparserfromhell as mwp
from . import IndentTree
from . import WikiComments as wc
class Page:
def __init__(self):
self.indent = -2
def __str__(self):
return "Talk_Page"
class Section:
def __init__(self, heading):
self.heading = heading
self.indent = -... |
cd0f4758bcb8eacab0a6a1f21f3c4287b2d24995 | vumi/blinkenlights/heartbeat/__init__.py | vumi/blinkenlights/heartbeat/__init__.py |
from vumi.blinkenlights.heartbeat.publisher import (HeartBeatMessage,
HeartBeatPublisher)
from vumi.blinkenlights.heartbeat.monitor import HeartBeatMonitor
__all__ = ["HeartBeatMessage", "HeartBeatPublisher", "HeartBeatMonitor"]
|
from vumi.blinkenlights.heartbeat.publisher import (HeartBeatMessage,
HeartBeatPublisher)
__all__ = ["HeartBeatMessage", "HeartBeatPublisher"]
| Resolve a cyclical dependency issue | Resolve a cyclical dependency issue
| Python | bsd-3-clause | vishwaprakashmishra/xmatrix,TouK/vumi,harrissoerja/vumi,TouK/vumi,harrissoerja/vumi,vishwaprakashmishra/xmatrix,TouK/vumi,vishwaprakashmishra/xmatrix,harrissoerja/vumi |
from vumi.blinkenlights.heartbeat.publisher import (HeartBeatMessage,
HeartBeatPublisher)
from vumi.blinkenlights.heartbeat.monitor import HeartBeatMonitor
__all__ = ["HeartBeatMessage", "HeartBeatPublisher", "HeartBeatMonitor"]
Resolve a cyclical dependency issue |
from vumi.blinkenlights.heartbeat.publisher import (HeartBeatMessage,
HeartBeatPublisher)
__all__ = ["HeartBeatMessage", "HeartBeatPublisher"]
| <commit_before>
from vumi.blinkenlights.heartbeat.publisher import (HeartBeatMessage,
HeartBeatPublisher)
from vumi.blinkenlights.heartbeat.monitor import HeartBeatMonitor
__all__ = ["HeartBeatMessage", "HeartBeatPublisher", "HeartBeatMonitor"]
<commit_msg>Resolve a... |
from vumi.blinkenlights.heartbeat.publisher import (HeartBeatMessage,
HeartBeatPublisher)
__all__ = ["HeartBeatMessage", "HeartBeatPublisher"]
|
from vumi.blinkenlights.heartbeat.publisher import (HeartBeatMessage,
HeartBeatPublisher)
from vumi.blinkenlights.heartbeat.monitor import HeartBeatMonitor
__all__ = ["HeartBeatMessage", "HeartBeatPublisher", "HeartBeatMonitor"]
Resolve a cyclical dependency issue
... | <commit_before>
from vumi.blinkenlights.heartbeat.publisher import (HeartBeatMessage,
HeartBeatPublisher)
from vumi.blinkenlights.heartbeat.monitor import HeartBeatMonitor
__all__ = ["HeartBeatMessage", "HeartBeatPublisher", "HeartBeatMonitor"]
<commit_msg>Resolve a... |
a5a9807bb4c473442716201b6b220be62d764af4 | tailor/listeners/filelistener.py | tailor/listeners/filelistener.py | from tailor.utils.sourcefile import num_lines_in_file, file_too_long
class FileListener:
# pylint: disable=too-few-public-methods
def __init__(self, printer, filepath):
self.__printer = printer
self.__filepath = filepath
def verify(self, max_lines):
self.__verify_file_length(max_... | from tailor.types.location import Location
from tailor.utils.sourcefile import num_lines_in_file, file_too_long
class FileListener:
# pylint: disable=too-few-public-methods
def __init__(self, printer, filepath):
self.__printer = printer
self.__filepath = filepath
def verify(self, max_lin... | Use Location namedtuple when calling printer | Use Location namedtuple when calling printer
| Python | mit | sleekbyte/tailor,sleekbyte/tailor,sleekbyte/tailor,sleekbyte/tailor,sleekbyte/tailor | from tailor.utils.sourcefile import num_lines_in_file, file_too_long
class FileListener:
# pylint: disable=too-few-public-methods
def __init__(self, printer, filepath):
self.__printer = printer
self.__filepath = filepath
def verify(self, max_lines):
self.__verify_file_length(max_... | from tailor.types.location import Location
from tailor.utils.sourcefile import num_lines_in_file, file_too_long
class FileListener:
# pylint: disable=too-few-public-methods
def __init__(self, printer, filepath):
self.__printer = printer
self.__filepath = filepath
def verify(self, max_lin... | <commit_before>from tailor.utils.sourcefile import num_lines_in_file, file_too_long
class FileListener:
# pylint: disable=too-few-public-methods
def __init__(self, printer, filepath):
self.__printer = printer
self.__filepath = filepath
def verify(self, max_lines):
self.__verify_f... | from tailor.types.location import Location
from tailor.utils.sourcefile import num_lines_in_file, file_too_long
class FileListener:
# pylint: disable=too-few-public-methods
def __init__(self, printer, filepath):
self.__printer = printer
self.__filepath = filepath
def verify(self, max_lin... | from tailor.utils.sourcefile import num_lines_in_file, file_too_long
class FileListener:
# pylint: disable=too-few-public-methods
def __init__(self, printer, filepath):
self.__printer = printer
self.__filepath = filepath
def verify(self, max_lines):
self.__verify_file_length(max_... | <commit_before>from tailor.utils.sourcefile import num_lines_in_file, file_too_long
class FileListener:
# pylint: disable=too-few-public-methods
def __init__(self, printer, filepath):
self.__printer = printer
self.__filepath = filepath
def verify(self, max_lines):
self.__verify_f... |
c23570f528b3ad27e256ea402fc02231b528b000 | django_messages/urls.py | django_messages/urls.py | from django.conf.urls import patterns, url
from django.views.generic import RedirectView
from django_messages.views import *
urlpatterns = patterns('',
url(r'^$', RedirectView.as_view(url='inbox/'), name='messages_redirect'),
url(r'^inbox/$', inbox, name='messages_inbox'),
url(r'^outbox/$', outbox, name='... | from django.conf.urls import patterns, url
from django.views.generic import RedirectView
from django_messages.views import *
urlpatterns = patterns('',
url(r'^$', RedirectView.as_view(permanent=True, url='inbox/'), name='messages_redirect'),
url(r'^inbox/$', inbox, name='messages_inbox'),
url(r'^outbox/$'... | Set an explicit value because Default value of 'RedirectView.permanent' will change from True to False in Django 1.9. | Set an explicit value because Default value of 'RedirectView.permanent' will change from True to False in Django 1.9. | Python | bsd-3-clause | arneb/django-messages,JordanReiter/django-messages,brajeshvit/Messagemodule,nikhil-above/django-messages,tobiasgoecke/django-messages,brajeshvit/Messagemodule,JordanReiter/django-messages,gustavoam/django-messages,tobiasgoecke/django-messages,procrasti/django-messages,Chris7/django-messages,gustavoam/django-messages,ni... | from django.conf.urls import patterns, url
from django.views.generic import RedirectView
from django_messages.views import *
urlpatterns = patterns('',
url(r'^$', RedirectView.as_view(url='inbox/'), name='messages_redirect'),
url(r'^inbox/$', inbox, name='messages_inbox'),
url(r'^outbox/$', outbox, name='... | from django.conf.urls import patterns, url
from django.views.generic import RedirectView
from django_messages.views import *
urlpatterns = patterns('',
url(r'^$', RedirectView.as_view(permanent=True, url='inbox/'), name='messages_redirect'),
url(r'^inbox/$', inbox, name='messages_inbox'),
url(r'^outbox/$'... | <commit_before>from django.conf.urls import patterns, url
from django.views.generic import RedirectView
from django_messages.views import *
urlpatterns = patterns('',
url(r'^$', RedirectView.as_view(url='inbox/'), name='messages_redirect'),
url(r'^inbox/$', inbox, name='messages_inbox'),
url(r'^outbox/$',... | from django.conf.urls import patterns, url
from django.views.generic import RedirectView
from django_messages.views import *
urlpatterns = patterns('',
url(r'^$', RedirectView.as_view(permanent=True, url='inbox/'), name='messages_redirect'),
url(r'^inbox/$', inbox, name='messages_inbox'),
url(r'^outbox/$'... | from django.conf.urls import patterns, url
from django.views.generic import RedirectView
from django_messages.views import *
urlpatterns = patterns('',
url(r'^$', RedirectView.as_view(url='inbox/'), name='messages_redirect'),
url(r'^inbox/$', inbox, name='messages_inbox'),
url(r'^outbox/$', outbox, name='... | <commit_before>from django.conf.urls import patterns, url
from django.views.generic import RedirectView
from django_messages.views import *
urlpatterns = patterns('',
url(r'^$', RedirectView.as_view(url='inbox/'), name='messages_redirect'),
url(r'^inbox/$', inbox, name='messages_inbox'),
url(r'^outbox/$',... |
ffbc35a0c19083a53a25aee71b74e06da0aa0a4b | timepiece/contracts/admin.py | timepiece/contracts/admin.py | from django.contrib import admin
from timepiece.contracts.models import ProjectContract, ContractHour,\
ContractAssignment, HourGroup
class ContractAssignmentInline(admin.TabularInline):
model = ContractAssignment
raw_id_fields = ('user',)
def queryset(self, request):
qs = super(Contract... | from django.contrib import admin
from timepiece.contracts.models import ProjectContract, ContractHour,\
ContractAssignment, HourGroup
class ContractAssignmentInline(admin.TabularInline):
model = ContractAssignment
raw_id_fields = ('user',)
def get_queryset(self, request):
qs = super(Cont... | Update Python/Django: Admin queryset -> get_queryset | Update Python/Django: Admin queryset -> get_queryset
| Python | mit | arbitrahj/django-timepiece,caktus/django-timepiece,caktus/django-timepiece,BocuStudio/django-timepiece,arbitrahj/django-timepiece,arbitrahj/django-timepiece,BocuStudio/django-timepiece,BocuStudio/django-timepiece,caktus/django-timepiece | from django.contrib import admin
from timepiece.contracts.models import ProjectContract, ContractHour,\
ContractAssignment, HourGroup
class ContractAssignmentInline(admin.TabularInline):
model = ContractAssignment
raw_id_fields = ('user',)
def queryset(self, request):
qs = super(Contract... | from django.contrib import admin
from timepiece.contracts.models import ProjectContract, ContractHour,\
ContractAssignment, HourGroup
class ContractAssignmentInline(admin.TabularInline):
model = ContractAssignment
raw_id_fields = ('user',)
def get_queryset(self, request):
qs = super(Cont... | <commit_before>from django.contrib import admin
from timepiece.contracts.models import ProjectContract, ContractHour,\
ContractAssignment, HourGroup
class ContractAssignmentInline(admin.TabularInline):
model = ContractAssignment
raw_id_fields = ('user',)
def queryset(self, request):
qs =... | from django.contrib import admin
from timepiece.contracts.models import ProjectContract, ContractHour,\
ContractAssignment, HourGroup
class ContractAssignmentInline(admin.TabularInline):
model = ContractAssignment
raw_id_fields = ('user',)
def get_queryset(self, request):
qs = super(Cont... | from django.contrib import admin
from timepiece.contracts.models import ProjectContract, ContractHour,\
ContractAssignment, HourGroup
class ContractAssignmentInline(admin.TabularInline):
model = ContractAssignment
raw_id_fields = ('user',)
def queryset(self, request):
qs = super(Contract... | <commit_before>from django.contrib import admin
from timepiece.contracts.models import ProjectContract, ContractHour,\
ContractAssignment, HourGroup
class ContractAssignmentInline(admin.TabularInline):
model = ContractAssignment
raw_id_fields = ('user',)
def queryset(self, request):
qs =... |
93cb07ed61f17a1debbe353963120ab117598f3f | src/yunohost/utils/yunopaste.py | src/yunohost/utils/yunopaste.py | # -*- coding: utf-8 -*-
import requests
import json
import errno
from moulinette.core import MoulinetteError
def yunopaste(data):
paste_server = "https://paste.yunohost.org"
try:
r = requests.post("%s/documents" % paste_server, data=data, timeout=30)
except Exception as e:
raise Mouline... | # -*- coding: utf-8 -*-
import requests
import json
import errno
from moulinette.core import MoulinetteError
def yunopaste(data):
paste_server = "https://paste.yunohost.org"
try:
r = requests.post("%s/documents" % paste_server, data=data, timeout=30)
except Exception as e:
raise Mouline... | Add status code to error message | Add status code to error message
| Python | agpl-3.0 | YunoHost/yunohost,YunoHost/moulinette-yunohost,YunoHost/moulinette-yunohost,YunoHost/moulinette-yunohost,YunoHost/moulinette-yunohost,YunoHost/yunohost,YunoHost/moulinette-yunohost,YunoHost/yunohost,YunoHost/yunohost | # -*- coding: utf-8 -*-
import requests
import json
import errno
from moulinette.core import MoulinetteError
def yunopaste(data):
paste_server = "https://paste.yunohost.org"
try:
r = requests.post("%s/documents" % paste_server, data=data, timeout=30)
except Exception as e:
raise Mouline... | # -*- coding: utf-8 -*-
import requests
import json
import errno
from moulinette.core import MoulinetteError
def yunopaste(data):
paste_server = "https://paste.yunohost.org"
try:
r = requests.post("%s/documents" % paste_server, data=data, timeout=30)
except Exception as e:
raise Mouline... | <commit_before># -*- coding: utf-8 -*-
import requests
import json
import errno
from moulinette.core import MoulinetteError
def yunopaste(data):
paste_server = "https://paste.yunohost.org"
try:
r = requests.post("%s/documents" % paste_server, data=data, timeout=30)
except Exception as e:
... | # -*- coding: utf-8 -*-
import requests
import json
import errno
from moulinette.core import MoulinetteError
def yunopaste(data):
paste_server = "https://paste.yunohost.org"
try:
r = requests.post("%s/documents" % paste_server, data=data, timeout=30)
except Exception as e:
raise Mouline... | # -*- coding: utf-8 -*-
import requests
import json
import errno
from moulinette.core import MoulinetteError
def yunopaste(data):
paste_server = "https://paste.yunohost.org"
try:
r = requests.post("%s/documents" % paste_server, data=data, timeout=30)
except Exception as e:
raise Mouline... | <commit_before># -*- coding: utf-8 -*-
import requests
import json
import errno
from moulinette.core import MoulinetteError
def yunopaste(data):
paste_server = "https://paste.yunohost.org"
try:
r = requests.post("%s/documents" % paste_server, data=data, timeout=30)
except Exception as e:
... |
f3eee368e13ee37048d52bde0d067efea057fef8 | monkeylearn/extraction.py | monkeylearn/extraction.py | # -*- coding: utf-8 -*-
from __future__ import (
print_function, unicode_literals, division, absolute_import)
from six.moves import range
from monkeylearn.utils import SleepRequestsMixin, MonkeyLearnResponse, HandleErrorsMixin
from monkeylearn.settings import DEFAULT_BASE_ENDPOINT, DEFAULT_BATCH_SIZE
class Extra... | # -*- coding: utf-8 -*-
from __future__ import (
print_function, unicode_literals, division, absolute_import)
from six.moves import range
from monkeylearn.utils import SleepRequestsMixin, MonkeyLearnResponse, HandleErrorsMixin
from monkeylearn.settings import DEFAULT_BASE_ENDPOINT, DEFAULT_BATCH_SIZE
class Extra... | Support for extra parameters in extractors | Support for extra parameters in extractors
| Python | mit | monkeylearn/monkeylearn-python | # -*- coding: utf-8 -*-
from __future__ import (
print_function, unicode_literals, division, absolute_import)
from six.moves import range
from monkeylearn.utils import SleepRequestsMixin, MonkeyLearnResponse, HandleErrorsMixin
from monkeylearn.settings import DEFAULT_BASE_ENDPOINT, DEFAULT_BATCH_SIZE
class Extra... | # -*- coding: utf-8 -*-
from __future__ import (
print_function, unicode_literals, division, absolute_import)
from six.moves import range
from monkeylearn.utils import SleepRequestsMixin, MonkeyLearnResponse, HandleErrorsMixin
from monkeylearn.settings import DEFAULT_BASE_ENDPOINT, DEFAULT_BATCH_SIZE
class Extra... | <commit_before># -*- coding: utf-8 -*-
from __future__ import (
print_function, unicode_literals, division, absolute_import)
from six.moves import range
from monkeylearn.utils import SleepRequestsMixin, MonkeyLearnResponse, HandleErrorsMixin
from monkeylearn.settings import DEFAULT_BASE_ENDPOINT, DEFAULT_BATCH_SI... | # -*- coding: utf-8 -*-
from __future__ import (
print_function, unicode_literals, division, absolute_import)
from six.moves import range
from monkeylearn.utils import SleepRequestsMixin, MonkeyLearnResponse, HandleErrorsMixin
from monkeylearn.settings import DEFAULT_BASE_ENDPOINT, DEFAULT_BATCH_SIZE
class Extra... | # -*- coding: utf-8 -*-
from __future__ import (
print_function, unicode_literals, division, absolute_import)
from six.moves import range
from monkeylearn.utils import SleepRequestsMixin, MonkeyLearnResponse, HandleErrorsMixin
from monkeylearn.settings import DEFAULT_BASE_ENDPOINT, DEFAULT_BATCH_SIZE
class Extra... | <commit_before># -*- coding: utf-8 -*-
from __future__ import (
print_function, unicode_literals, division, absolute_import)
from six.moves import range
from monkeylearn.utils import SleepRequestsMixin, MonkeyLearnResponse, HandleErrorsMixin
from monkeylearn.settings import DEFAULT_BASE_ENDPOINT, DEFAULT_BATCH_SI... |
edd06989628e90d4fdfa98e4af84720d815322f9 | pinax/likes/migrations/0001_initial.py | pinax/likes/migrations/0001_initial.py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-01-29 16:12
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
depen... | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-01-29 16:12
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
depen... | Drop features removed in Django 2.0 | Drop features removed in Django 2.0
Field.rel and Field.remote_field.to are removed
https://docs.djangoproject.com/en/dev/releases/2.0/#features-removed-in-2-0
| Python | mit | pinax/pinax-likes | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-01-29 16:12
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
depen... | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-01-29 16:12
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
depen... | <commit_before># -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-01-29 16:12
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = ... | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-01-29 16:12
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
depen... | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-01-29 16:12
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
depen... | <commit_before># -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-01-29 16:12
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = ... |
c9cb55a4a9f3409a3c22edd0d5a8b6bfbdca1208 | mopidy_somafm/__init__.py | mopidy_somafm/__init__.py | from __future__ import unicode_literals
import os
from mopidy import config, exceptions, ext
__version__ = '0.3.0'
class Extension(ext.Extension):
dist_name = 'Mopidy-SomaFM'
ext_name = 'somafm'
version = __version__
def get_default_config(self):
conf_file = os.path.join(os.path.dirname(__... | from __future__ import unicode_literals
import os
from mopidy import config, ext
__version__ = '0.3.0'
class Extension(ext.Extension):
dist_name = 'Mopidy-SomaFM'
ext_name = 'somafm'
version = __version__
def get_default_config(self):
conf_file = os.path.join(os.path.dirname(__file__), 'e... | Remove dependency check done by Mopidy | Remove dependency check done by Mopidy
| Python | mit | AlexandrePTJ/mopidy-somafm | from __future__ import unicode_literals
import os
from mopidy import config, exceptions, ext
__version__ = '0.3.0'
class Extension(ext.Extension):
dist_name = 'Mopidy-SomaFM'
ext_name = 'somafm'
version = __version__
def get_default_config(self):
conf_file = os.path.join(os.path.dirname(__... | from __future__ import unicode_literals
import os
from mopidy import config, ext
__version__ = '0.3.0'
class Extension(ext.Extension):
dist_name = 'Mopidy-SomaFM'
ext_name = 'somafm'
version = __version__
def get_default_config(self):
conf_file = os.path.join(os.path.dirname(__file__), 'e... | <commit_before>from __future__ import unicode_literals
import os
from mopidy import config, exceptions, ext
__version__ = '0.3.0'
class Extension(ext.Extension):
dist_name = 'Mopidy-SomaFM'
ext_name = 'somafm'
version = __version__
def get_default_config(self):
conf_file = os.path.join(os.... | from __future__ import unicode_literals
import os
from mopidy import config, ext
__version__ = '0.3.0'
class Extension(ext.Extension):
dist_name = 'Mopidy-SomaFM'
ext_name = 'somafm'
version = __version__
def get_default_config(self):
conf_file = os.path.join(os.path.dirname(__file__), 'e... | from __future__ import unicode_literals
import os
from mopidy import config, exceptions, ext
__version__ = '0.3.0'
class Extension(ext.Extension):
dist_name = 'Mopidy-SomaFM'
ext_name = 'somafm'
version = __version__
def get_default_config(self):
conf_file = os.path.join(os.path.dirname(__... | <commit_before>from __future__ import unicode_literals
import os
from mopidy import config, exceptions, ext
__version__ = '0.3.0'
class Extension(ext.Extension):
dist_name = 'Mopidy-SomaFM'
ext_name = 'somafm'
version = __version__
def get_default_config(self):
conf_file = os.path.join(os.... |
6894db57f74cf4c813e470d9cee1def9cf14cc3d | megaprojects/scripts.py | megaprojects/scripts.py | def migrate_posts_to_articles():
from django.core.files import base
from articles.models import Article, Image
from blog.models import Post
for p in Post.objects.all():
a = Article()
a.author = p.author
a.body = p.body
a.enable_comments = p.enable_comments
a.pub... | def migrate_posts_to_articles():
from articles.models import Article
from blog.models import Post
for p in Post.objects.all():
try:
Article.objects.get(shortuuid=p.shortuuid)
continue
except Article.DoesNotExist:
a = Article()
a.author = p.aut... | Update post -> article migration script, include all fields | Update post -> article migration script, include all fields
| Python | apache-2.0 | megaprojectske/megaprojects.co.ke,megaprojectske/megaprojects.co.ke,megaprojectske/megaprojects.co.ke | def migrate_posts_to_articles():
from django.core.files import base
from articles.models import Article, Image
from blog.models import Post
for p in Post.objects.all():
a = Article()
a.author = p.author
a.body = p.body
a.enable_comments = p.enable_comments
a.pub... | def migrate_posts_to_articles():
from articles.models import Article
from blog.models import Post
for p in Post.objects.all():
try:
Article.objects.get(shortuuid=p.shortuuid)
continue
except Article.DoesNotExist:
a = Article()
a.author = p.aut... | <commit_before>def migrate_posts_to_articles():
from django.core.files import base
from articles.models import Article, Image
from blog.models import Post
for p in Post.objects.all():
a = Article()
a.author = p.author
a.body = p.body
a.enable_comments = p.enable_comment... | def migrate_posts_to_articles():
from articles.models import Article
from blog.models import Post
for p in Post.objects.all():
try:
Article.objects.get(shortuuid=p.shortuuid)
continue
except Article.DoesNotExist:
a = Article()
a.author = p.aut... | def migrate_posts_to_articles():
from django.core.files import base
from articles.models import Article, Image
from blog.models import Post
for p in Post.objects.all():
a = Article()
a.author = p.author
a.body = p.body
a.enable_comments = p.enable_comments
a.pub... | <commit_before>def migrate_posts_to_articles():
from django.core.files import base
from articles.models import Article, Image
from blog.models import Post
for p in Post.objects.all():
a = Article()
a.author = p.author
a.body = p.body
a.enable_comments = p.enable_comment... |
0be963472bc4ecaafa42872c9fffef5b8f3426f3 | synapse/replication/slave/storage/directory.py | synapse/replication/slave/storage/directory.py | # -*- coding: utf-8 -*-
# Copyright 2015, 2016 OpenMarket Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | # -*- coding: utf-8 -*-
# Copyright 2015, 2016 OpenMarket Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | Use cached version of get_aliases_for_room | Use cached version of get_aliases_for_room
| Python | apache-2.0 | matrix-org/synapse,TribeMedia/synapse,TribeMedia/synapse,TribeMedia/synapse,matrix-org/synapse,matrix-org/synapse,TribeMedia/synapse,matrix-org/synapse,matrix-org/synapse,matrix-org/synapse,TribeMedia/synapse | # -*- coding: utf-8 -*-
# Copyright 2015, 2016 OpenMarket Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | # -*- coding: utf-8 -*-
# Copyright 2015, 2016 OpenMarket Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | <commit_before># -*- coding: utf-8 -*-
# Copyright 2015, 2016 OpenMarket Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... | # -*- coding: utf-8 -*-
# Copyright 2015, 2016 OpenMarket Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | # -*- coding: utf-8 -*-
# Copyright 2015, 2016 OpenMarket Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | <commit_before># -*- coding: utf-8 -*-
# Copyright 2015, 2016 OpenMarket Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... |
ce05cf03738572bbe52de0e649ad25480a1f65f1 | networkzero/__init__.py | networkzero/__init__.py | from .discovery import advertise, unadvertise, discover
from .messenger import (
send_command, wait_for_command,
send_request, wait_for_request, send_reply,
publish_news, wait_for_news
)
from .core import address | # -*- coding: utf-8 -*-
"""networkzero - easy network discovery & messaging
Aimed at a classrom or club situation, networkzero makes it simpler to
have several machines or several processes on one machine discovering
each other and talking across a network. Typical examples would include:
* Sending commands to a robo... | Put some high-level module docs together, including a simple example | Put some high-level module docs together, including a simple example
| Python | mit | tjguk/networkzero,tjguk/networkzero,tjguk/networkzero | from .discovery import advertise, unadvertise, discover
from .messenger import (
send_command, wait_for_command,
send_request, wait_for_request, send_reply,
publish_news, wait_for_news
)
from .core import addressPut some high-level module docs together, including a simple example | # -*- coding: utf-8 -*-
"""networkzero - easy network discovery & messaging
Aimed at a classrom or club situation, networkzero makes it simpler to
have several machines or several processes on one machine discovering
each other and talking across a network. Typical examples would include:
* Sending commands to a robo... | <commit_before>from .discovery import advertise, unadvertise, discover
from .messenger import (
send_command, wait_for_command,
send_request, wait_for_request, send_reply,
publish_news, wait_for_news
)
from .core import address<commit_msg>Put some high-level module docs together, including a simple exampl... | # -*- coding: utf-8 -*-
"""networkzero - easy network discovery & messaging
Aimed at a classrom or club situation, networkzero makes it simpler to
have several machines or several processes on one machine discovering
each other and talking across a network. Typical examples would include:
* Sending commands to a robo... | from .discovery import advertise, unadvertise, discover
from .messenger import (
send_command, wait_for_command,
send_request, wait_for_request, send_reply,
publish_news, wait_for_news
)
from .core import addressPut some high-level module docs together, including a simple example# -*- coding: utf-8 -*-
""... | <commit_before>from .discovery import advertise, unadvertise, discover
from .messenger import (
send_command, wait_for_command,
send_request, wait_for_request, send_reply,
publish_news, wait_for_news
)
from .core import address<commit_msg>Put some high-level module docs together, including a simple exampl... |
cc4d9c43167f9060fd8d8ec1c8c4150b79a104b6 | example/config/production.py | example/config/production.py | import os
# Gunicorn
# ========
bind = '127.0.0.1:5000'
# Muffin
# ======
PLUGINS = (
# Contrib plugins
'muffin_jinja2',
'muffin_peewee',
'muffin_session',
'muffin_oauth',
'muffin_admin',
'muffin_debugtoolbar',
)
STATIC_FOLDERS = 'example/static',
# Plugin options
# ==============
SES... | import os
# Gunicorn
# ========
bind = '127.0.0.1:5000'
# Muffin
# ======
PLUGINS = (
# Contrib plugins
'muffin_jinja2',
'muffin_peewee',
'muffin_session',
'muffin_oauth',
'muffin_admin',
'muffin_debugtoolbar',
)
STATIC_FOLDERS = 'example/static',
# Plugin options
# ==============
SES... | Enable DT for all hosts | Enable DT for all hosts
| Python | mit | klen/muffin-example,klen/muffin-example | import os
# Gunicorn
# ========
bind = '127.0.0.1:5000'
# Muffin
# ======
PLUGINS = (
# Contrib plugins
'muffin_jinja2',
'muffin_peewee',
'muffin_session',
'muffin_oauth',
'muffin_admin',
'muffin_debugtoolbar',
)
STATIC_FOLDERS = 'example/static',
# Plugin options
# ==============
SES... | import os
# Gunicorn
# ========
bind = '127.0.0.1:5000'
# Muffin
# ======
PLUGINS = (
# Contrib plugins
'muffin_jinja2',
'muffin_peewee',
'muffin_session',
'muffin_oauth',
'muffin_admin',
'muffin_debugtoolbar',
)
STATIC_FOLDERS = 'example/static',
# Plugin options
# ==============
SES... | <commit_before>import os
# Gunicorn
# ========
bind = '127.0.0.1:5000'
# Muffin
# ======
PLUGINS = (
# Contrib plugins
'muffin_jinja2',
'muffin_peewee',
'muffin_session',
'muffin_oauth',
'muffin_admin',
'muffin_debugtoolbar',
)
STATIC_FOLDERS = 'example/static',
# Plugin options
# ====... | import os
# Gunicorn
# ========
bind = '127.0.0.1:5000'
# Muffin
# ======
PLUGINS = (
# Contrib plugins
'muffin_jinja2',
'muffin_peewee',
'muffin_session',
'muffin_oauth',
'muffin_admin',
'muffin_debugtoolbar',
)
STATIC_FOLDERS = 'example/static',
# Plugin options
# ==============
SES... | import os
# Gunicorn
# ========
bind = '127.0.0.1:5000'
# Muffin
# ======
PLUGINS = (
# Contrib plugins
'muffin_jinja2',
'muffin_peewee',
'muffin_session',
'muffin_oauth',
'muffin_admin',
'muffin_debugtoolbar',
)
STATIC_FOLDERS = 'example/static',
# Plugin options
# ==============
SES... | <commit_before>import os
# Gunicorn
# ========
bind = '127.0.0.1:5000'
# Muffin
# ======
PLUGINS = (
# Contrib plugins
'muffin_jinja2',
'muffin_peewee',
'muffin_session',
'muffin_oauth',
'muffin_admin',
'muffin_debugtoolbar',
)
STATIC_FOLDERS = 'example/static',
# Plugin options
# ====... |
d13b3d89124d03f563c2ee2143ae16eec7d0b191 | tests/Epsilon_tests/ImportTest.py | tests/Epsilon_tests/ImportTest.py | #!/usr/bin/env python
"""
:Author Patrik Valkovic
:Created 23.06.2017 16:39
:Licence GNUv3
Part of grammpy
"""
from unittest import TestCase, main
from grammpy import EPS
from grammpy import EPSILON
class ImportTest(TestCase):
def test_idSame(self):
self.assertEqual(id(EPS), id(EPSILON))... | #!/usr/bin/env python
"""
:Author Patrik Valkovic
:Created 23.06.2017 16:39
:Licence GNUv3
Part of grammpy
"""
from unittest import TestCase, main
from grammpy import EPS
from grammpy import EPSILON
class ImportTest(TestCase):
def test_idSame(self):
self.assertEqual(id(EPS),id(EPSILON)... | Revert "Add tests to compare epsilon with another objects" | Revert "Add tests to compare epsilon with another objects"
This reverts commit ae4b4fe5fb5c5774720dd3a14549aa88bde91043.
| Python | mit | PatrikValkovic/grammpy | #!/usr/bin/env python
"""
:Author Patrik Valkovic
:Created 23.06.2017 16:39
:Licence GNUv3
Part of grammpy
"""
from unittest import TestCase, main
from grammpy import EPS
from grammpy import EPSILON
class ImportTest(TestCase):
def test_idSame(self):
self.assertEqual(id(EPS), id(EPSILON))... | #!/usr/bin/env python
"""
:Author Patrik Valkovic
:Created 23.06.2017 16:39
:Licence GNUv3
Part of grammpy
"""
from unittest import TestCase, main
from grammpy import EPS
from grammpy import EPSILON
class ImportTest(TestCase):
def test_idSame(self):
self.assertEqual(id(EPS),id(EPSILON)... | <commit_before>#!/usr/bin/env python
"""
:Author Patrik Valkovic
:Created 23.06.2017 16:39
:Licence GNUv3
Part of grammpy
"""
from unittest import TestCase, main
from grammpy import EPS
from grammpy import EPSILON
class ImportTest(TestCase):
def test_idSame(self):
self.assertEqual(id(EPS... | #!/usr/bin/env python
"""
:Author Patrik Valkovic
:Created 23.06.2017 16:39
:Licence GNUv3
Part of grammpy
"""
from unittest import TestCase, main
from grammpy import EPS
from grammpy import EPSILON
class ImportTest(TestCase):
def test_idSame(self):
self.assertEqual(id(EPS),id(EPSILON)... | #!/usr/bin/env python
"""
:Author Patrik Valkovic
:Created 23.06.2017 16:39
:Licence GNUv3
Part of grammpy
"""
from unittest import TestCase, main
from grammpy import EPS
from grammpy import EPSILON
class ImportTest(TestCase):
def test_idSame(self):
self.assertEqual(id(EPS), id(EPSILON))... | <commit_before>#!/usr/bin/env python
"""
:Author Patrik Valkovic
:Created 23.06.2017 16:39
:Licence GNUv3
Part of grammpy
"""
from unittest import TestCase, main
from grammpy import EPS
from grammpy import EPSILON
class ImportTest(TestCase):
def test_idSame(self):
self.assertEqual(id(EPS... |
8d40cbd1d2cf431454dcfd9a9088be73687e7c1a | skimage/viewer/__init__.py | skimage/viewer/__init__.py | try:
from .qt import QtGui as _QtGui
except ImportError as e:
raise ImportError('Viewer requires Qt')
from .viewers import ImageViewer, CollectionViewer
| import warnings
try:
from .viewers import ImageViewer, CollectionViewer
except ImportError as e:
warnings.warn('Viewer requires Qt')
| Allow viewer package to import without Qt | Allow viewer package to import without Qt
| Python | bsd-3-clause | pratapvardhan/scikit-image,paalge/scikit-image,youprofit/scikit-image,michaelaye/scikit-image,blink1073/scikit-image,newville/scikit-image,warmspringwinds/scikit-image,pratapvardhan/scikit-image,juliusbierk/scikit-image,ajaybhat/scikit-image,jwiggins/scikit-image,chriscrosscutler/scikit-image,robintw/scikit-image,GaZ3l... | try:
from .qt import QtGui as _QtGui
except ImportError as e:
raise ImportError('Viewer requires Qt')
from .viewers import ImageViewer, CollectionViewer
Allow viewer package to import without Qt | import warnings
try:
from .viewers import ImageViewer, CollectionViewer
except ImportError as e:
warnings.warn('Viewer requires Qt')
| <commit_before>try:
from .qt import QtGui as _QtGui
except ImportError as e:
raise ImportError('Viewer requires Qt')
from .viewers import ImageViewer, CollectionViewer
<commit_msg>Allow viewer package to import without Qt<commit_after> | import warnings
try:
from .viewers import ImageViewer, CollectionViewer
except ImportError as e:
warnings.warn('Viewer requires Qt')
| try:
from .qt import QtGui as _QtGui
except ImportError as e:
raise ImportError('Viewer requires Qt')
from .viewers import ImageViewer, CollectionViewer
Allow viewer package to import without Qtimport warnings
try:
from .viewers import ImageViewer, CollectionViewer
except ImportError as e:
warnings.war... | <commit_before>try:
from .qt import QtGui as _QtGui
except ImportError as e:
raise ImportError('Viewer requires Qt')
from .viewers import ImageViewer, CollectionViewer
<commit_msg>Allow viewer package to import without Qt<commit_after>import warnings
try:
from .viewers import ImageViewer, CollectionViewer
... |
5f2676d61c15d23b62264069a2e4ed659f4a7f69 | markdowntoc/base.py | markdowntoc/base.py | import pprint
import sublime
import json
from .util import Util
# for debug
pp = pprint.PrettyPrinter(indent=4)
class Base(object):
def settings(self, attr):
settings = json.loads(sublime.load_resource('Packages/MarkdownTOC/MarkdownTOC.sublime-settings'))
user_settings = json.loads(su... | import pprint
import sublime
import json
from .util import Util
# for debug
pp = pprint.PrettyPrinter(indent=4)
class Base(object):
def settings(self, attr):
settings = json.loads(sublime.load_resource('Packages/MarkdownTOC/MarkdownTOC.sublime-settings'))
user_settings = json.loads(su... | Add label in error message | Add label in error message
| Python | mit | naokazuterada/MarkdownTOC | import pprint
import sublime
import json
from .util import Util
# for debug
pp = pprint.PrettyPrinter(indent=4)
class Base(object):
def settings(self, attr):
settings = json.loads(sublime.load_resource('Packages/MarkdownTOC/MarkdownTOC.sublime-settings'))
user_settings = json.loads(su... | import pprint
import sublime
import json
from .util import Util
# for debug
pp = pprint.PrettyPrinter(indent=4)
class Base(object):
def settings(self, attr):
settings = json.loads(sublime.load_resource('Packages/MarkdownTOC/MarkdownTOC.sublime-settings'))
user_settings = json.loads(su... | <commit_before>import pprint
import sublime
import json
from .util import Util
# for debug
pp = pprint.PrettyPrinter(indent=4)
class Base(object):
def settings(self, attr):
settings = json.loads(sublime.load_resource('Packages/MarkdownTOC/MarkdownTOC.sublime-settings'))
user_settings ... | import pprint
import sublime
import json
from .util import Util
# for debug
pp = pprint.PrettyPrinter(indent=4)
class Base(object):
def settings(self, attr):
settings = json.loads(sublime.load_resource('Packages/MarkdownTOC/MarkdownTOC.sublime-settings'))
user_settings = json.loads(su... | import pprint
import sublime
import json
from .util import Util
# for debug
pp = pprint.PrettyPrinter(indent=4)
class Base(object):
def settings(self, attr):
settings = json.loads(sublime.load_resource('Packages/MarkdownTOC/MarkdownTOC.sublime-settings'))
user_settings = json.loads(su... | <commit_before>import pprint
import sublime
import json
from .util import Util
# for debug
pp = pprint.PrettyPrinter(indent=4)
class Base(object):
def settings(self, attr):
settings = json.loads(sublime.load_resource('Packages/MarkdownTOC/MarkdownTOC.sublime-settings'))
user_settings ... |
b43f7e3c08f4b679debda1a418b632e235dcbc8d | organizations/__init__.py | organizations/__init__.py | """
edx-organizations app initialization module
"""
__version__ = '6.0.0' # pragma: no cover
| """
edx-organizations app initialization module
"""
__version__ = '6.1.0' # pragma: no cover
| Bump version to 6.1.0 from 6.0.0 | Bump version to 6.1.0 from 6.0.0
| Python | agpl-3.0 | edx/edx-organizations | """
edx-organizations app initialization module
"""
__version__ = '6.0.0' # pragma: no cover
Bump version to 6.1.0 from 6.0.0 | """
edx-organizations app initialization module
"""
__version__ = '6.1.0' # pragma: no cover
| <commit_before>"""
edx-organizations app initialization module
"""
__version__ = '6.0.0' # pragma: no cover
<commit_msg>Bump version to 6.1.0 from 6.0.0<commit_after> | """
edx-organizations app initialization module
"""
__version__ = '6.1.0' # pragma: no cover
| """
edx-organizations app initialization module
"""
__version__ = '6.0.0' # pragma: no cover
Bump version to 6.1.0 from 6.0.0"""
edx-organizations app initialization module
"""
__version__ = '6.1.0' # pragma: no cover
| <commit_before>"""
edx-organizations app initialization module
"""
__version__ = '6.0.0' # pragma: no cover
<commit_msg>Bump version to 6.1.0 from 6.0.0<commit_after>"""
edx-organizations app initialization module
"""
__version__ = '6.1.0' # pragma: no cover
|
f84f2ad1943059f6ddf9d48a3af6895cf09dcce7 | teknologr/registration/views.py | teknologr/registration/views.py | from django.shortcuts import render, redirect
from django.conf import settings
from django.views import View
from members.programmes import DEGREE_PROGRAMME_CHOICES
from registration.forms import RegistrationForm
from registration.mailutils import mailApplicantSubmission
class BaseView(View):
context = {'DEBUG': ... | from django.shortcuts import render, redirect
from django.conf import settings
from django.views import View
from members.programmes import DEGREE_PROGRAMME_CHOICES
from registration.forms import RegistrationForm
from registration.mailutils import mailApplicantSubmission
class BaseView(View):
context = {'DEBUG': ... | Fix context given to mailutils | Fix context given to mailutils
| Python | mit | Teknologforeningen/teknologr.io,Teknologforeningen/teknologr.io,Teknologforeningen/teknologr.io,Teknologforeningen/teknologr.io | from django.shortcuts import render, redirect
from django.conf import settings
from django.views import View
from members.programmes import DEGREE_PROGRAMME_CHOICES
from registration.forms import RegistrationForm
from registration.mailutils import mailApplicantSubmission
class BaseView(View):
context = {'DEBUG': ... | from django.shortcuts import render, redirect
from django.conf import settings
from django.views import View
from members.programmes import DEGREE_PROGRAMME_CHOICES
from registration.forms import RegistrationForm
from registration.mailutils import mailApplicantSubmission
class BaseView(View):
context = {'DEBUG': ... | <commit_before>from django.shortcuts import render, redirect
from django.conf import settings
from django.views import View
from members.programmes import DEGREE_PROGRAMME_CHOICES
from registration.forms import RegistrationForm
from registration.mailutils import mailApplicantSubmission
class BaseView(View):
conte... | from django.shortcuts import render, redirect
from django.conf import settings
from django.views import View
from members.programmes import DEGREE_PROGRAMME_CHOICES
from registration.forms import RegistrationForm
from registration.mailutils import mailApplicantSubmission
class BaseView(View):
context = {'DEBUG': ... | from django.shortcuts import render, redirect
from django.conf import settings
from django.views import View
from members.programmes import DEGREE_PROGRAMME_CHOICES
from registration.forms import RegistrationForm
from registration.mailutils import mailApplicantSubmission
class BaseView(View):
context = {'DEBUG': ... | <commit_before>from django.shortcuts import render, redirect
from django.conf import settings
from django.views import View
from members.programmes import DEGREE_PROGRAMME_CHOICES
from registration.forms import RegistrationForm
from registration.mailutils import mailApplicantSubmission
class BaseView(View):
conte... |
0d9c151d9f61d03e57f815d99158e1b90c9dca5e | erpnext/education/doctype/instructor/instructor.py | erpnext/education/doctype/instructor/instructor.py | # -*- coding: utf-8 -*-
# Copyright (c) 2015, Frappe Technologies and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe import _
from frappe.model.document import Document
from frappe.model.naming import set_name_by_naming_series
class Ins... | # -*- coding: utf-8 -*-
# Copyright (c) 2015, Frappe Technologies and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe import _
from frappe.model.document import Document
from frappe.model.naming import set_name_by_naming_series
class Ins... | Exclude current record while validating duplicate employee | fix: Exclude current record while validating duplicate employee | Python | agpl-3.0 | gsnbng/erpnext,gsnbng/erpnext,gsnbng/erpnext,gsnbng/erpnext | # -*- coding: utf-8 -*-
# Copyright (c) 2015, Frappe Technologies and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe import _
from frappe.model.document import Document
from frappe.model.naming import set_name_by_naming_series
class Ins... | # -*- coding: utf-8 -*-
# Copyright (c) 2015, Frappe Technologies and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe import _
from frappe.model.document import Document
from frappe.model.naming import set_name_by_naming_series
class Ins... | <commit_before># -*- coding: utf-8 -*-
# Copyright (c) 2015, Frappe Technologies and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe import _
from frappe.model.document import Document
from frappe.model.naming import set_name_by_naming_se... | # -*- coding: utf-8 -*-
# Copyright (c) 2015, Frappe Technologies and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe import _
from frappe.model.document import Document
from frappe.model.naming import set_name_by_naming_series
class Ins... | # -*- coding: utf-8 -*-
# Copyright (c) 2015, Frappe Technologies and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe import _
from frappe.model.document import Document
from frappe.model.naming import set_name_by_naming_series
class Ins... | <commit_before># -*- coding: utf-8 -*-
# Copyright (c) 2015, Frappe Technologies and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe import _
from frappe.model.document import Document
from frappe.model.naming import set_name_by_naming_se... |
22bca7f50c9db97aaa79c1199b385b0f59968328 | client/tests/tests_msgpack.py | client/tests/tests_msgpack.py | import unittest
from msgpack import *
class MessagePackTestCase(unittest.TestCase):
"""
This is not really a comprehensive test suite for messagepack but instead a
way to learn how to use the api.
"""
def test_can_pack_fixarray(self):
"""
Checks that we can pack a fix array (len(ar... | import unittest
from msgpack import *
class MessagePackTestCase(unittest.TestCase):
"""
This is not really a comprehensive test suite for messagepack but instead a
way to learn how to use the api.
"""
def test_can_pack_fixarray(self):
"""
Checks that we can pack a fix array (len(ar... | Add an example showing stream unpacking | Add an example showing stream unpacking
| Python | bsd-2-clause | cvra/can-bootloader,cvra/can-bootloader,cvra/can-bootloader,cvra/can-bootloader | import unittest
from msgpack import *
class MessagePackTestCase(unittest.TestCase):
"""
This is not really a comprehensive test suite for messagepack but instead a
way to learn how to use the api.
"""
def test_can_pack_fixarray(self):
"""
Checks that we can pack a fix array (len(ar... | import unittest
from msgpack import *
class MessagePackTestCase(unittest.TestCase):
"""
This is not really a comprehensive test suite for messagepack but instead a
way to learn how to use the api.
"""
def test_can_pack_fixarray(self):
"""
Checks that we can pack a fix array (len(ar... | <commit_before>import unittest
from msgpack import *
class MessagePackTestCase(unittest.TestCase):
"""
This is not really a comprehensive test suite for messagepack but instead a
way to learn how to use the api.
"""
def test_can_pack_fixarray(self):
"""
Checks that we can pack a fi... | import unittest
from msgpack import *
class MessagePackTestCase(unittest.TestCase):
"""
This is not really a comprehensive test suite for messagepack but instead a
way to learn how to use the api.
"""
def test_can_pack_fixarray(self):
"""
Checks that we can pack a fix array (len(ar... | import unittest
from msgpack import *
class MessagePackTestCase(unittest.TestCase):
"""
This is not really a comprehensive test suite for messagepack but instead a
way to learn how to use the api.
"""
def test_can_pack_fixarray(self):
"""
Checks that we can pack a fix array (len(ar... | <commit_before>import unittest
from msgpack import *
class MessagePackTestCase(unittest.TestCase):
"""
This is not really a comprehensive test suite for messagepack but instead a
way to learn how to use the api.
"""
def test_can_pack_fixarray(self):
"""
Checks that we can pack a fi... |
0ba44cc7a8e906be42d98599b59e28ad142648b7 | blogApp/forms/upload_image.py | blogApp/forms/upload_image.py | from django import forms
from crispy_forms.helper import FormHelper
from crispy_forms.bootstrap import FormActions, Div
from crispy_forms.layout import Layout, Field, HTML, Button, Submit, Reset
class UploadImageForm(forms.Form):
helper = FormHelper()
helper.form_tag = False
helper.form_class = 'form-hori... | from django import forms
from crispy_forms.helper import FormHelper
from crispy_forms.bootstrap import FormActions, Div, AppendedText
from crispy_forms.layout import Layout, Field, HTML, Button, Submit, Reset
class UploadImageForm(forms.Form):
helper = FormHelper()
helper.form_tag = False
helper.form_clas... | Append 'px' to end of image upload form resize field | Append 'px' to end of image upload form resize field
| Python | mit | SPARLab/BikeMaps,SPARLab/BikeMaps,SPARLab/BikeMaps | from django import forms
from crispy_forms.helper import FormHelper
from crispy_forms.bootstrap import FormActions, Div
from crispy_forms.layout import Layout, Field, HTML, Button, Submit, Reset
class UploadImageForm(forms.Form):
helper = FormHelper()
helper.form_tag = False
helper.form_class = 'form-hori... | from django import forms
from crispy_forms.helper import FormHelper
from crispy_forms.bootstrap import FormActions, Div, AppendedText
from crispy_forms.layout import Layout, Field, HTML, Button, Submit, Reset
class UploadImageForm(forms.Form):
helper = FormHelper()
helper.form_tag = False
helper.form_clas... | <commit_before>from django import forms
from crispy_forms.helper import FormHelper
from crispy_forms.bootstrap import FormActions, Div
from crispy_forms.layout import Layout, Field, HTML, Button, Submit, Reset
class UploadImageForm(forms.Form):
helper = FormHelper()
helper.form_tag = False
helper.form_cla... | from django import forms
from crispy_forms.helper import FormHelper
from crispy_forms.bootstrap import FormActions, Div, AppendedText
from crispy_forms.layout import Layout, Field, HTML, Button, Submit, Reset
class UploadImageForm(forms.Form):
helper = FormHelper()
helper.form_tag = False
helper.form_clas... | from django import forms
from crispy_forms.helper import FormHelper
from crispy_forms.bootstrap import FormActions, Div
from crispy_forms.layout import Layout, Field, HTML, Button, Submit, Reset
class UploadImageForm(forms.Form):
helper = FormHelper()
helper.form_tag = False
helper.form_class = 'form-hori... | <commit_before>from django import forms
from crispy_forms.helper import FormHelper
from crispy_forms.bootstrap import FormActions, Div
from crispy_forms.layout import Layout, Field, HTML, Button, Submit, Reset
class UploadImageForm(forms.Form):
helper = FormHelper()
helper.form_tag = False
helper.form_cla... |
90991af1b5c50c106bf18b743c9e29e9aafd5f32 | pony_server/api/urls.py | pony_server/api/urls.py | from django.conf.urls.defaults import *
from piston.resource import Resource
from pony_server.api.handlers import PackageHandler, RootHandler, BuildHandler, TagHandler
package_handler = Resource(PackageHandler)
root_handler = Resource(RootHandler)
build_handler = Resource(BuildHandler)
tag_handler = Resource(TagHandle... | from django.conf.urls.defaults import *
from piston.resource import Resource
from pony_server.api.handlers import PackageHandler, RootHandler, BuildHandler, TagHandler
package_handler = Resource(PackageHandler)
root_handler = Resource(RootHandler)
build_handler = Resource(BuildHandler)
tag_handler = Resource(TagHandle... | Remove package namespace in the URLS since it was useless. | Remove package namespace in the URLS since it was useless. | Python | mit | ericholscher/devmason-server,ericholscher/devmason-server | from django.conf.urls.defaults import *
from piston.resource import Resource
from pony_server.api.handlers import PackageHandler, RootHandler, BuildHandler, TagHandler
package_handler = Resource(PackageHandler)
root_handler = Resource(RootHandler)
build_handler = Resource(BuildHandler)
tag_handler = Resource(TagHandle... | from django.conf.urls.defaults import *
from piston.resource import Resource
from pony_server.api.handlers import PackageHandler, RootHandler, BuildHandler, TagHandler
package_handler = Resource(PackageHandler)
root_handler = Resource(RootHandler)
build_handler = Resource(BuildHandler)
tag_handler = Resource(TagHandle... | <commit_before>from django.conf.urls.defaults import *
from piston.resource import Resource
from pony_server.api.handlers import PackageHandler, RootHandler, BuildHandler, TagHandler
package_handler = Resource(PackageHandler)
root_handler = Resource(RootHandler)
build_handler = Resource(BuildHandler)
tag_handler = Res... | from django.conf.urls.defaults import *
from piston.resource import Resource
from pony_server.api.handlers import PackageHandler, RootHandler, BuildHandler, TagHandler
package_handler = Resource(PackageHandler)
root_handler = Resource(RootHandler)
build_handler = Resource(BuildHandler)
tag_handler = Resource(TagHandle... | from django.conf.urls.defaults import *
from piston.resource import Resource
from pony_server.api.handlers import PackageHandler, RootHandler, BuildHandler, TagHandler
package_handler = Resource(PackageHandler)
root_handler = Resource(RootHandler)
build_handler = Resource(BuildHandler)
tag_handler = Resource(TagHandle... | <commit_before>from django.conf.urls.defaults import *
from piston.resource import Resource
from pony_server.api.handlers import PackageHandler, RootHandler, BuildHandler, TagHandler
package_handler = Resource(PackageHandler)
root_handler = Resource(RootHandler)
build_handler = Resource(BuildHandler)
tag_handler = Res... |
5407e5dbde014c1957216a2a5cddf79bc4b9dad6 | create/server.py | create/server.py | #!/usr/bin/env python
from flask import Flask, render_template
app = Flask(__name__)
app.config.from_envvar('CREATE_CFG')
@app.route('/')
def index():
return render_template('index.html')
if __name__ == '__main__':
app.run(host='0.0.0.0', port=app.config['PORT']) | #!/usr/bin/env python
from flask import Flask, render_template
app = Flask(__name__)
app.config.from_envvar('CREATE_CFG')
@app.route('/')
def index():
return render_template('index.html')
if __name__ == '__main__':
app.run(host='0.0.0.0', port=app.config['PORT'])
| Move query stuff to model.py due to fight within team over it. It was brutally removed. | Move query stuff to model.py due to fight within team over it. It was brutally removed.
| Python | mit | Garee/CREATe,Garee/CREATe,Garee/CREATe | #!/usr/bin/env python
from flask import Flask, render_template
app = Flask(__name__)
app.config.from_envvar('CREATE_CFG')
@app.route('/')
def index():
return render_template('index.html')
if __name__ == '__main__':
app.run(host='0.0.0.0', port=app.config['PORT'])Move query stuff to model.py due to fight w... | #!/usr/bin/env python
from flask import Flask, render_template
app = Flask(__name__)
app.config.from_envvar('CREATE_CFG')
@app.route('/')
def index():
return render_template('index.html')
if __name__ == '__main__':
app.run(host='0.0.0.0', port=app.config['PORT'])
| <commit_before>#!/usr/bin/env python
from flask import Flask, render_template
app = Flask(__name__)
app.config.from_envvar('CREATE_CFG')
@app.route('/')
def index():
return render_template('index.html')
if __name__ == '__main__':
app.run(host='0.0.0.0', port=app.config['PORT'])<commit_msg>Move query stuff... | #!/usr/bin/env python
from flask import Flask, render_template
app = Flask(__name__)
app.config.from_envvar('CREATE_CFG')
@app.route('/')
def index():
return render_template('index.html')
if __name__ == '__main__':
app.run(host='0.0.0.0', port=app.config['PORT'])
| #!/usr/bin/env python
from flask import Flask, render_template
app = Flask(__name__)
app.config.from_envvar('CREATE_CFG')
@app.route('/')
def index():
return render_template('index.html')
if __name__ == '__main__':
app.run(host='0.0.0.0', port=app.config['PORT'])Move query stuff to model.py due to fight w... | <commit_before>#!/usr/bin/env python
from flask import Flask, render_template
app = Flask(__name__)
app.config.from_envvar('CREATE_CFG')
@app.route('/')
def index():
return render_template('index.html')
if __name__ == '__main__':
app.run(host='0.0.0.0', port=app.config['PORT'])<commit_msg>Move query stuff... |
2f76c0629ee1ff995718300f268b27cc3bd532f1 | ddsc_api/views.py | ddsc_api/views.py | # (c) Nelen & Schuurmans. MIT licensed, see LICENSE.rst.
from __future__ import print_function, unicode_literals
from __future__ import absolute_import, division
from collections import OrderedDict
from rest_framework.reverse import reverse
from rest_framework.views import APIView
from rest_framework.response import... | # (c) Nelen & Schuurmans. MIT licensed, see LICENSE.rst.
from __future__ import print_function, unicode_literals
from __future__ import absolute_import, division
from collections import OrderedDict
from rest_framework.reverse import reverse
from rest_framework.views import APIView
from rest_framework.response import... | Add collageitems to the view. | Add collageitems to the view.
| Python | mit | ddsc/ddsc-api,ddsc/ddsc-api | # (c) Nelen & Schuurmans. MIT licensed, see LICENSE.rst.
from __future__ import print_function, unicode_literals
from __future__ import absolute_import, division
from collections import OrderedDict
from rest_framework.reverse import reverse
from rest_framework.views import APIView
from rest_framework.response import... | # (c) Nelen & Schuurmans. MIT licensed, see LICENSE.rst.
from __future__ import print_function, unicode_literals
from __future__ import absolute_import, division
from collections import OrderedDict
from rest_framework.reverse import reverse
from rest_framework.views import APIView
from rest_framework.response import... | <commit_before># (c) Nelen & Schuurmans. MIT licensed, see LICENSE.rst.
from __future__ import print_function, unicode_literals
from __future__ import absolute_import, division
from collections import OrderedDict
from rest_framework.reverse import reverse
from rest_framework.views import APIView
from rest_framework.... | # (c) Nelen & Schuurmans. MIT licensed, see LICENSE.rst.
from __future__ import print_function, unicode_literals
from __future__ import absolute_import, division
from collections import OrderedDict
from rest_framework.reverse import reverse
from rest_framework.views import APIView
from rest_framework.response import... | # (c) Nelen & Schuurmans. MIT licensed, see LICENSE.rst.
from __future__ import print_function, unicode_literals
from __future__ import absolute_import, division
from collections import OrderedDict
from rest_framework.reverse import reverse
from rest_framework.views import APIView
from rest_framework.response import... | <commit_before># (c) Nelen & Schuurmans. MIT licensed, see LICENSE.rst.
from __future__ import print_function, unicode_literals
from __future__ import absolute_import, division
from collections import OrderedDict
from rest_framework.reverse import reverse
from rest_framework.views import APIView
from rest_framework.... |
b93644f758baa3f3a4e4ea506e8f0305d6503305 | pathvalidate/_interface.py | pathvalidate/_interface.py | # encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <[email protected]>
"""
from __future__ import absolute_import, unicode_literals
import abc
from ._common import _validate_null_string, is_pathlike_obj
from ._six import add_metaclass, text_type
@add_metaclass(abc.ABCMeta)
class NameSanitizer(objec... | # encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <[email protected]>
"""
from __future__ import absolute_import, unicode_literals
import abc
from ._common import _validate_null_string, is_pathlike_obj
from ._six import add_metaclass, text_type
@add_metaclass(abc.ABCMeta)
class NameSanitizer(objec... | Modify a function call argument | Modify a function call argument
| Python | mit | thombashi/pathvalidate | # encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <[email protected]>
"""
from __future__ import absolute_import, unicode_literals
import abc
from ._common import _validate_null_string, is_pathlike_obj
from ._six import add_metaclass, text_type
@add_metaclass(abc.ABCMeta)
class NameSanitizer(objec... | # encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <[email protected]>
"""
from __future__ import absolute_import, unicode_literals
import abc
from ._common import _validate_null_string, is_pathlike_obj
from ._six import add_metaclass, text_type
@add_metaclass(abc.ABCMeta)
class NameSanitizer(objec... | <commit_before># encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <[email protected]>
"""
from __future__ import absolute_import, unicode_literals
import abc
from ._common import _validate_null_string, is_pathlike_obj
from ._six import add_metaclass, text_type
@add_metaclass(abc.ABCMeta)
class Name... | # encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <[email protected]>
"""
from __future__ import absolute_import, unicode_literals
import abc
from ._common import _validate_null_string, is_pathlike_obj
from ._six import add_metaclass, text_type
@add_metaclass(abc.ABCMeta)
class NameSanitizer(objec... | # encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <[email protected]>
"""
from __future__ import absolute_import, unicode_literals
import abc
from ._common import _validate_null_string, is_pathlike_obj
from ._six import add_metaclass, text_type
@add_metaclass(abc.ABCMeta)
class NameSanitizer(objec... | <commit_before># encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <[email protected]>
"""
from __future__ import absolute_import, unicode_literals
import abc
from ._common import _validate_null_string, is_pathlike_obj
from ._six import add_metaclass, text_type
@add_metaclass(abc.ABCMeta)
class Name... |
e4de56768dd9d06c2bfc62b4d27ce0ba265857f3 | plugins/telegram/setup.py | plugins/telegram/setup.py |
from setuptools import setup, find_packages
version = '0.0.1'
setup(
name="alerta-telegram",
version=version,
description='Alerta plugin for Telegram',
url='https://github.com/alerta/alerta-contrib',
license='MIT',
author='Nick Satterly',
author_email='[email protected]',
... |
from setuptools import setup, find_packages
version = '0.0.1'
setup(
name="alerta-telegram",
version=version,
description='Alerta plugin for Telegram',
url='https://github.com/alerta/alerta-contrib',
license='MIT',
author='Nick Satterly',
author_email='[email protected]',
... | Fix telegram plugin install requires | Fix telegram plugin install requires
| Python | mit | alerta/alerta-contrib,msupino/alerta-contrib,alerta/alerta-contrib,alerta/alerta-contrib,msupino/alerta-contrib |
from setuptools import setup, find_packages
version = '0.0.1'
setup(
name="alerta-telegram",
version=version,
description='Alerta plugin for Telegram',
url='https://github.com/alerta/alerta-contrib',
license='MIT',
author='Nick Satterly',
author_email='[email protected]',
... |
from setuptools import setup, find_packages
version = '0.0.1'
setup(
name="alerta-telegram",
version=version,
description='Alerta plugin for Telegram',
url='https://github.com/alerta/alerta-contrib',
license='MIT',
author='Nick Satterly',
author_email='[email protected]',
... | <commit_before>
from setuptools import setup, find_packages
version = '0.0.1'
setup(
name="alerta-telegram",
version=version,
description='Alerta plugin for Telegram',
url='https://github.com/alerta/alerta-contrib',
license='MIT',
author='Nick Satterly',
author_email='nick.satterly@theguar... |
from setuptools import setup, find_packages
version = '0.0.1'
setup(
name="alerta-telegram",
version=version,
description='Alerta plugin for Telegram',
url='https://github.com/alerta/alerta-contrib',
license='MIT',
author='Nick Satterly',
author_email='[email protected]',
... |
from setuptools import setup, find_packages
version = '0.0.1'
setup(
name="alerta-telegram",
version=version,
description='Alerta plugin for Telegram',
url='https://github.com/alerta/alerta-contrib',
license='MIT',
author='Nick Satterly',
author_email='[email protected]',
... | <commit_before>
from setuptools import setup, find_packages
version = '0.0.1'
setup(
name="alerta-telegram",
version=version,
description='Alerta plugin for Telegram',
url='https://github.com/alerta/alerta-contrib',
license='MIT',
author='Nick Satterly',
author_email='nick.satterly@theguar... |
241a59f35fbcba392dbc8b3037f6fdb243b87500 | dimod/__init__.py | dimod/__init__.py | from __future__ import absolute_import
import sys
__version__ = '0.3.1'
__author__ = 'D-Wave Systems Inc.'
__authoremail__ = '[email protected]'
__description__ = 'A shared API for binary quadratic model samplers.'
_PY2 = sys.version_info[0] == 2
from dimod.template_sampler import *
from dimod.samplers import ... | from __future__ import absolute_import
import sys
__version__ = '0.4.0'
__author__ = 'D-Wave Systems Inc.'
__authoremail__ = '[email protected]'
__description__ = 'A shared API for binary quadratic model samplers.'
_PY2 = sys.version_info[0] == 2
from dimod.template_sampler import *
from dimod.samplers import ... | Increment version 0.3.1 -> 0.4.0 | Increment version 0.3.1 -> 0.4.0 | Python | apache-2.0 | dwavesystems/dimod,dwavesystems/dimod | from __future__ import absolute_import
import sys
__version__ = '0.3.1'
__author__ = 'D-Wave Systems Inc.'
__authoremail__ = '[email protected]'
__description__ = 'A shared API for binary quadratic model samplers.'
_PY2 = sys.version_info[0] == 2
from dimod.template_sampler import *
from dimod.samplers import ... | from __future__ import absolute_import
import sys
__version__ = '0.4.0'
__author__ = 'D-Wave Systems Inc.'
__authoremail__ = '[email protected]'
__description__ = 'A shared API for binary quadratic model samplers.'
_PY2 = sys.version_info[0] == 2
from dimod.template_sampler import *
from dimod.samplers import ... | <commit_before>from __future__ import absolute_import
import sys
__version__ = '0.3.1'
__author__ = 'D-Wave Systems Inc.'
__authoremail__ = '[email protected]'
__description__ = 'A shared API for binary quadratic model samplers.'
_PY2 = sys.version_info[0] == 2
from dimod.template_sampler import *
from dimod.s... | from __future__ import absolute_import
import sys
__version__ = '0.4.0'
__author__ = 'D-Wave Systems Inc.'
__authoremail__ = '[email protected]'
__description__ = 'A shared API for binary quadratic model samplers.'
_PY2 = sys.version_info[0] == 2
from dimod.template_sampler import *
from dimod.samplers import ... | from __future__ import absolute_import
import sys
__version__ = '0.3.1'
__author__ = 'D-Wave Systems Inc.'
__authoremail__ = '[email protected]'
__description__ = 'A shared API for binary quadratic model samplers.'
_PY2 = sys.version_info[0] == 2
from dimod.template_sampler import *
from dimod.samplers import ... | <commit_before>from __future__ import absolute_import
import sys
__version__ = '0.3.1'
__author__ = 'D-Wave Systems Inc.'
__authoremail__ = '[email protected]'
__description__ = 'A shared API for binary quadratic model samplers.'
_PY2 = sys.version_info[0] == 2
from dimod.template_sampler import *
from dimod.s... |
5d278330812618d55ba4efafcb097e3f5ee6db04 | project/category/views.py | project/category/views.py | from flask import render_template, Blueprint, url_for, \
redirect, flash, request
from project.models import Category, Webinar
category_blueprint = Blueprint('category', __name__,)
@category_blueprint.route('/categories')
def index():
categories = Category.query.all()
return render_template('category/ca... | from flask import render_template, Blueprint, url_for, \
redirect, flash, request
from project.models import Category, Webinar
category_blueprint = Blueprint('category', __name__,)
@category_blueprint.route('/categories')
def index():
categories = Category.query.all()
return render_template('category/ca... | Add basic view to see category show page | Add basic view to see category show page
| Python | mit | dylanshine/streamschool,dylanshine/streamschool | from flask import render_template, Blueprint, url_for, \
redirect, flash, request
from project.models import Category, Webinar
category_blueprint = Blueprint('category', __name__,)
@category_blueprint.route('/categories')
def index():
categories = Category.query.all()
return render_template('category/ca... | from flask import render_template, Blueprint, url_for, \
redirect, flash, request
from project.models import Category, Webinar
category_blueprint = Blueprint('category', __name__,)
@category_blueprint.route('/categories')
def index():
categories = Category.query.all()
return render_template('category/ca... | <commit_before>from flask import render_template, Blueprint, url_for, \
redirect, flash, request
from project.models import Category, Webinar
category_blueprint = Blueprint('category', __name__,)
@category_blueprint.route('/categories')
def index():
categories = Category.query.all()
return render_templa... | from flask import render_template, Blueprint, url_for, \
redirect, flash, request
from project.models import Category, Webinar
category_blueprint = Blueprint('category', __name__,)
@category_blueprint.route('/categories')
def index():
categories = Category.query.all()
return render_template('category/ca... | from flask import render_template, Blueprint, url_for, \
redirect, flash, request
from project.models import Category, Webinar
category_blueprint = Blueprint('category', __name__,)
@category_blueprint.route('/categories')
def index():
categories = Category.query.all()
return render_template('category/ca... | <commit_before>from flask import render_template, Blueprint, url_for, \
redirect, flash, request
from project.models import Category, Webinar
category_blueprint = Blueprint('category', __name__,)
@category_blueprint.route('/categories')
def index():
categories = Category.query.all()
return render_templa... |
9689887cbdc59c29c8a13bfa82eb1391ce691631 | zephyr/decorator.py | zephyr/decorator.py | import types
class TornadoAsyncException(Exception): pass
class _DefGen_Return(BaseException):
def __init__(self, value):
self.value = value
def returnResponse(value):
raise _DefGen_Return(value)
def asynchronous(method):
def wrapper(request, *args, **kwargs):
try:
v = method... | import types
class TornadoAsyncException(Exception): pass
class _DefGen_Return(BaseException):
def __init__(self, value):
self.value = value
def returnResponse(value):
raise _DefGen_Return(value)
def asynchronous(method):
def wrapper(request, *args, **kwargs):
try:
v = method... | Copy the csrf_exempt attribute in @asynchronous | Copy the csrf_exempt attribute in @asynchronous
Needed for @csrf_exempt to work.
(imported from commit 563ab11b0d26262511e9a6d9cc2735b0b835a391)
| Python | apache-2.0 | blaze225/zulip,Cheppers/zulip,xuanhan863/zulip,dnmfarrell/zulip,RobotCaleb/zulip,esander91/zulip,wweiradio/zulip,vikas-parashar/zulip,zulip/zulip,luyifan/zulip,grave-w-grave/zulip,amallia/zulip,hafeez3000/zulip,fw1121/zulip,Gabriel0402/zulip,jackrzhang/zulip,umkay/zulip,he15his/zulip,glovebx/zulip,ufosky-server/zulip,T... | import types
class TornadoAsyncException(Exception): pass
class _DefGen_Return(BaseException):
def __init__(self, value):
self.value = value
def returnResponse(value):
raise _DefGen_Return(value)
def asynchronous(method):
def wrapper(request, *args, **kwargs):
try:
v = method... | import types
class TornadoAsyncException(Exception): pass
class _DefGen_Return(BaseException):
def __init__(self, value):
self.value = value
def returnResponse(value):
raise _DefGen_Return(value)
def asynchronous(method):
def wrapper(request, *args, **kwargs):
try:
v = method... | <commit_before>import types
class TornadoAsyncException(Exception): pass
class _DefGen_Return(BaseException):
def __init__(self, value):
self.value = value
def returnResponse(value):
raise _DefGen_Return(value)
def asynchronous(method):
def wrapper(request, *args, **kwargs):
try:
... | import types
class TornadoAsyncException(Exception): pass
class _DefGen_Return(BaseException):
def __init__(self, value):
self.value = value
def returnResponse(value):
raise _DefGen_Return(value)
def asynchronous(method):
def wrapper(request, *args, **kwargs):
try:
v = method... | import types
class TornadoAsyncException(Exception): pass
class _DefGen_Return(BaseException):
def __init__(self, value):
self.value = value
def returnResponse(value):
raise _DefGen_Return(value)
def asynchronous(method):
def wrapper(request, *args, **kwargs):
try:
v = method... | <commit_before>import types
class TornadoAsyncException(Exception): pass
class _DefGen_Return(BaseException):
def __init__(self, value):
self.value = value
def returnResponse(value):
raise _DefGen_Return(value)
def asynchronous(method):
def wrapper(request, *args, **kwargs):
try:
... |
6cb38efab37f8953c8ba56662ba512af0f84432f | tests/semver_test.py | tests/semver_test.py | # -*- coding: utf-8 -*-
from unittest import TestCase
from semver import compare
from semver import match
from semver import parse
class TestSemver(TestCase):
def test_should_parse_version(self):
self.assertEquals(
parse("1.2.3-alpha.1.2+build.11.e0f985a"),
{'major': 1,
... | # -*- coding: utf-8 -*-
from unittest import TestCase
from semver import compare
from semver import match
from semver import parse
class TestSemver(TestCase):
def test_should_parse_version(self):
self.assertEquals(
parse("1.2.3-alpha.1.2+build.11.e0f985a"),
{'major': 1,
... | Add tests for error cases that proves incompatibility with Python 2.5 and early versions. | Add tests for error cases that proves incompatibility with Python 2.5 and early versions.
| Python | bsd-3-clause | python-semver/python-semver,k-bx/python-semver | # -*- coding: utf-8 -*-
from unittest import TestCase
from semver import compare
from semver import match
from semver import parse
class TestSemver(TestCase):
def test_should_parse_version(self):
self.assertEquals(
parse("1.2.3-alpha.1.2+build.11.e0f985a"),
{'major': 1,
... | # -*- coding: utf-8 -*-
from unittest import TestCase
from semver import compare
from semver import match
from semver import parse
class TestSemver(TestCase):
def test_should_parse_version(self):
self.assertEquals(
parse("1.2.3-alpha.1.2+build.11.e0f985a"),
{'major': 1,
... | <commit_before># -*- coding: utf-8 -*-
from unittest import TestCase
from semver import compare
from semver import match
from semver import parse
class TestSemver(TestCase):
def test_should_parse_version(self):
self.assertEquals(
parse("1.2.3-alpha.1.2+build.11.e0f985a"),
{'major... | # -*- coding: utf-8 -*-
from unittest import TestCase
from semver import compare
from semver import match
from semver import parse
class TestSemver(TestCase):
def test_should_parse_version(self):
self.assertEquals(
parse("1.2.3-alpha.1.2+build.11.e0f985a"),
{'major': 1,
... | # -*- coding: utf-8 -*-
from unittest import TestCase
from semver import compare
from semver import match
from semver import parse
class TestSemver(TestCase):
def test_should_parse_version(self):
self.assertEquals(
parse("1.2.3-alpha.1.2+build.11.e0f985a"),
{'major': 1,
... | <commit_before># -*- coding: utf-8 -*-
from unittest import TestCase
from semver import compare
from semver import match
from semver import parse
class TestSemver(TestCase):
def test_should_parse_version(self):
self.assertEquals(
parse("1.2.3-alpha.1.2+build.11.e0f985a"),
{'major... |
c783af3af004ec2de31b85045d1c517f5c3a9ccc | tests/v6/test_date_generator.py | tests/v6/test_date_generator.py | import datetime as dt
from .context import tohu
from tohu.v6.primitive_generators import Date
def test_single_date():
g = Date(start="2018-01-01", end="2018-01-01")
dates = g.generate(100, seed=12345)
assert all([x == dt.date(2018, 1, 1) for x in dates])
def test_date_range():
g = Date(start="1999-... | import datetime as dt
from .context import tohu
from tohu.v6.primitive_generators import Date
def test_single_date():
g = Date(start="2018-01-01", end="2018-01-01")
dates = g.generate(100, seed=12345)
assert all([x == dt.date(2018, 1, 1) for x in dates])
def test_date_range():
g = Date(start="1999-... | Add test for start/end values | Add test for start/end values
| Python | mit | maxalbert/tohu | import datetime as dt
from .context import tohu
from tohu.v6.primitive_generators import Date
def test_single_date():
g = Date(start="2018-01-01", end="2018-01-01")
dates = g.generate(100, seed=12345)
assert all([x == dt.date(2018, 1, 1) for x in dates])
def test_date_range():
g = Date(start="1999-... | import datetime as dt
from .context import tohu
from tohu.v6.primitive_generators import Date
def test_single_date():
g = Date(start="2018-01-01", end="2018-01-01")
dates = g.generate(100, seed=12345)
assert all([x == dt.date(2018, 1, 1) for x in dates])
def test_date_range():
g = Date(start="1999-... | <commit_before>import datetime as dt
from .context import tohu
from tohu.v6.primitive_generators import Date
def test_single_date():
g = Date(start="2018-01-01", end="2018-01-01")
dates = g.generate(100, seed=12345)
assert all([x == dt.date(2018, 1, 1) for x in dates])
def test_date_range():
g = Da... | import datetime as dt
from .context import tohu
from tohu.v6.primitive_generators import Date
def test_single_date():
g = Date(start="2018-01-01", end="2018-01-01")
dates = g.generate(100, seed=12345)
assert all([x == dt.date(2018, 1, 1) for x in dates])
def test_date_range():
g = Date(start="1999-... | import datetime as dt
from .context import tohu
from tohu.v6.primitive_generators import Date
def test_single_date():
g = Date(start="2018-01-01", end="2018-01-01")
dates = g.generate(100, seed=12345)
assert all([x == dt.date(2018, 1, 1) for x in dates])
def test_date_range():
g = Date(start="1999-... | <commit_before>import datetime as dt
from .context import tohu
from tohu.v6.primitive_generators import Date
def test_single_date():
g = Date(start="2018-01-01", end="2018-01-01")
dates = g.generate(100, seed=12345)
assert all([x == dt.date(2018, 1, 1) for x in dates])
def test_date_range():
g = Da... |
50df670d1c338c72d43b39a26ecb31d94d6161d7 | tools/addvariable.py | tools/addvariable.py | #!/usr/bin/env python
import sys
sys.path.append('..')
from cli import *
from optparse import OptionParser
parse = OptionParser()
parse.add_option('-a', '--variable', dest='variables',
help='Add variable',
default=[], action='append', type=str)
parse.add_option('-r', '--random', des... | #!/usr/bin/env python
import sys
sys.path.append('..')
from cli import *
from optparse import OptionParser
parse = OptionParser()
parse.add_option('-a', '--variable', dest='variables',
help='Add variable',
default=[], action='append', type=str)
parse.add_option('-r', '--random', dest=... | Add --list to variable tool. | Tools: Add --list to variable tool.
| Python | agpl-3.0 | MerlijnWajer/SRL-Stats | #!/usr/bin/env python
import sys
sys.path.append('..')
from cli import *
from optparse import OptionParser
parse = OptionParser()
parse.add_option('-a', '--variable', dest='variables',
help='Add variable',
default=[], action='append', type=str)
parse.add_option('-r', '--random', des... | #!/usr/bin/env python
import sys
sys.path.append('..')
from cli import *
from optparse import OptionParser
parse = OptionParser()
parse.add_option('-a', '--variable', dest='variables',
help='Add variable',
default=[], action='append', type=str)
parse.add_option('-r', '--random', dest=... | <commit_before>#!/usr/bin/env python
import sys
sys.path.append('..')
from cli import *
from optparse import OptionParser
parse = OptionParser()
parse.add_option('-a', '--variable', dest='variables',
help='Add variable',
default=[], action='append', type=str)
parse.add_option('-r', ... | #!/usr/bin/env python
import sys
sys.path.append('..')
from cli import *
from optparse import OptionParser
parse = OptionParser()
parse.add_option('-a', '--variable', dest='variables',
help='Add variable',
default=[], action='append', type=str)
parse.add_option('-r', '--random', dest=... | #!/usr/bin/env python
import sys
sys.path.append('..')
from cli import *
from optparse import OptionParser
parse = OptionParser()
parse.add_option('-a', '--variable', dest='variables',
help='Add variable',
default=[], action='append', type=str)
parse.add_option('-r', '--random', des... | <commit_before>#!/usr/bin/env python
import sys
sys.path.append('..')
from cli import *
from optparse import OptionParser
parse = OptionParser()
parse.add_option('-a', '--variable', dest='variables',
help='Add variable',
default=[], action='append', type=str)
parse.add_option('-r', ... |
55cc4ce70ec5da104ae3078dc0fed023153b3de8 | ForumSite/urls.py | ForumSite/urls.py | from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'ForumSite.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^', include('Forum.urls'), {'forum_id':0}),
url(r'^admi... | from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'ForumSite.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^', include('Forum.urls'), {'forum_id':0}),
url(r'^(?P<... | Test project allow multiple forums | Test project allow multiple forums
| Python | mit | Galbar/django-forum,Galbar/django-forum | from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'ForumSite.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^', include('Forum.urls'), {'forum_id':0}),
url(r'^admi... | from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'ForumSite.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^', include('Forum.urls'), {'forum_id':0}),
url(r'^(?P<... | <commit_before>from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'ForumSite.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^', include('Forum.urls'), {'forum_id':0}),
... | from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'ForumSite.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^', include('Forum.urls'), {'forum_id':0}),
url(r'^(?P<... | from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'ForumSite.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^', include('Forum.urls'), {'forum_id':0}),
url(r'^admi... | <commit_before>from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'ForumSite.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^', include('Forum.urls'), {'forum_id':0}),
... |
1be9c51d4029c0fa32f7071072c171db42d21c83 | doc-src/index.py | doc-src/index.py | import countershape
from countershape import Page, Directory, PythonModule
import countershape.grok
this.layout = countershape.Layout("_layout.html")
this.markdown = "rst"
ns.docTitle = "Countershape Manual"
ns.docMaintainer = "Aldo Cortesi"
ns.docMaintainerEmail = "[email protected]"
ns.copyright = "Copyright Nullcub... | import countershape
from countershape import Page, Directory, PythonModule
import countershape.grok
this.layout = countershape.Layout("_layout.html")
this.markdown = "rst"
ns.docTitle = "Countershape Manual"
ns.docMaintainer = "Aldo Cortesi"
ns.docMaintainerEmail = "[email protected]"
ns.copyright = "Copyright Nullcub... | Move structure to a separate directory | Move structure to a separate directory
| Python | mit | mhils/countershape,cortesi/countershape,samtaufa/countershape,mhils/countershape,cortesi/countershape,samtaufa/countershape | import countershape
from countershape import Page, Directory, PythonModule
import countershape.grok
this.layout = countershape.Layout("_layout.html")
this.markdown = "rst"
ns.docTitle = "Countershape Manual"
ns.docMaintainer = "Aldo Cortesi"
ns.docMaintainerEmail = "[email protected]"
ns.copyright = "Copyright Nullcub... | import countershape
from countershape import Page, Directory, PythonModule
import countershape.grok
this.layout = countershape.Layout("_layout.html")
this.markdown = "rst"
ns.docTitle = "Countershape Manual"
ns.docMaintainer = "Aldo Cortesi"
ns.docMaintainerEmail = "[email protected]"
ns.copyright = "Copyright Nullcub... | <commit_before>import countershape
from countershape import Page, Directory, PythonModule
import countershape.grok
this.layout = countershape.Layout("_layout.html")
this.markdown = "rst"
ns.docTitle = "Countershape Manual"
ns.docMaintainer = "Aldo Cortesi"
ns.docMaintainerEmail = "[email protected]"
ns.copyright = "Co... | import countershape
from countershape import Page, Directory, PythonModule
import countershape.grok
this.layout = countershape.Layout("_layout.html")
this.markdown = "rst"
ns.docTitle = "Countershape Manual"
ns.docMaintainer = "Aldo Cortesi"
ns.docMaintainerEmail = "[email protected]"
ns.copyright = "Copyright Nullcub... | import countershape
from countershape import Page, Directory, PythonModule
import countershape.grok
this.layout = countershape.Layout("_layout.html")
this.markdown = "rst"
ns.docTitle = "Countershape Manual"
ns.docMaintainer = "Aldo Cortesi"
ns.docMaintainerEmail = "[email protected]"
ns.copyright = "Copyright Nullcub... | <commit_before>import countershape
from countershape import Page, Directory, PythonModule
import countershape.grok
this.layout = countershape.Layout("_layout.html")
this.markdown = "rst"
ns.docTitle = "Countershape Manual"
ns.docMaintainer = "Aldo Cortesi"
ns.docMaintainerEmail = "[email protected]"
ns.copyright = "Co... |
f8110564d37303b2679575450bea40710dc96fa5 | odin/serializers.py | odin/serializers.py | # -*- coding: utf-8 -*-
import datetime
from odin import datetimeutil
class DatetimeEcmaFormat(object):
"""
Serialize a datetime object into the ECMA defined format.
"""
input_type = datetime.datetime
def __init__(self, assume_local=True):
self.assume_local = assume_local
def __call_... | # -*- coding: utf-8 -*-
import datetime
from odin import datetimeutil
class DatetimeEcmaFormat(object):
"""
Serialize a datetime object into the ECMA defined format.
"""
input_type = datetime.datetime
def __init__(self, assume_local=True):
self.assume_local = assume_local
def __call_... | Change serialise field reference to update method name in datetimeutil | Change serialise field reference to update method name in datetimeutil
| Python | bsd-3-clause | python-odin/odin | # -*- coding: utf-8 -*-
import datetime
from odin import datetimeutil
class DatetimeEcmaFormat(object):
"""
Serialize a datetime object into the ECMA defined format.
"""
input_type = datetime.datetime
def __init__(self, assume_local=True):
self.assume_local = assume_local
def __call_... | # -*- coding: utf-8 -*-
import datetime
from odin import datetimeutil
class DatetimeEcmaFormat(object):
"""
Serialize a datetime object into the ECMA defined format.
"""
input_type = datetime.datetime
def __init__(self, assume_local=True):
self.assume_local = assume_local
def __call_... | <commit_before># -*- coding: utf-8 -*-
import datetime
from odin import datetimeutil
class DatetimeEcmaFormat(object):
"""
Serialize a datetime object into the ECMA defined format.
"""
input_type = datetime.datetime
def __init__(self, assume_local=True):
self.assume_local = assume_local
... | # -*- coding: utf-8 -*-
import datetime
from odin import datetimeutil
class DatetimeEcmaFormat(object):
"""
Serialize a datetime object into the ECMA defined format.
"""
input_type = datetime.datetime
def __init__(self, assume_local=True):
self.assume_local = assume_local
def __call_... | # -*- coding: utf-8 -*-
import datetime
from odin import datetimeutil
class DatetimeEcmaFormat(object):
"""
Serialize a datetime object into the ECMA defined format.
"""
input_type = datetime.datetime
def __init__(self, assume_local=True):
self.assume_local = assume_local
def __call_... | <commit_before># -*- coding: utf-8 -*-
import datetime
from odin import datetimeutil
class DatetimeEcmaFormat(object):
"""
Serialize a datetime object into the ECMA defined format.
"""
input_type = datetime.datetime
def __init__(self, assume_local=True):
self.assume_local = assume_local
... |
f0dc0309518e8862ac7ad785d97a485df538b965 | grip/constants.py | grip/constants.py | # The supported extensions, as defined by https://github.com/github/markup
supported_extensions = ['.md', '.markdown']
# The default filenames when no file is provided
default_filenames = map(lambda ext: 'README' + ext, supported_extensions)
| # The supported extensions, as defined by https://github.com/github/markup
supported_extensions = ['.md', '.markdown']
# The default filenames when no file is provided
default_filenames = ['README' + ext for ext in supported_extensions]
| Fix map resolving to empty list on Python 3. | Fix map resolving to empty list on Python 3.
| Python | mit | jbarreras/grip,mgoddard-pivotal/grip,jbarreras/grip,ssundarraj/grip,joeyespo/grip,mgoddard-pivotal/grip,joeyespo/grip,ssundarraj/grip | # The supported extensions, as defined by https://github.com/github/markup
supported_extensions = ['.md', '.markdown']
# The default filenames when no file is provided
default_filenames = map(lambda ext: 'README' + ext, supported_extensions)
Fix map resolving to empty list on Python 3. | # The supported extensions, as defined by https://github.com/github/markup
supported_extensions = ['.md', '.markdown']
# The default filenames when no file is provided
default_filenames = ['README' + ext for ext in supported_extensions]
| <commit_before># The supported extensions, as defined by https://github.com/github/markup
supported_extensions = ['.md', '.markdown']
# The default filenames when no file is provided
default_filenames = map(lambda ext: 'README' + ext, supported_extensions)
<commit_msg>Fix map resolving to empty list on Python 3.<comm... | # The supported extensions, as defined by https://github.com/github/markup
supported_extensions = ['.md', '.markdown']
# The default filenames when no file is provided
default_filenames = ['README' + ext for ext in supported_extensions]
| # The supported extensions, as defined by https://github.com/github/markup
supported_extensions = ['.md', '.markdown']
# The default filenames when no file is provided
default_filenames = map(lambda ext: 'README' + ext, supported_extensions)
Fix map resolving to empty list on Python 3.# The supported extensions, as d... | <commit_before># The supported extensions, as defined by https://github.com/github/markup
supported_extensions = ['.md', '.markdown']
# The default filenames when no file is provided
default_filenames = map(lambda ext: 'README' + ext, supported_extensions)
<commit_msg>Fix map resolving to empty list on Python 3.<comm... |
2f85d8985bf4089e39d2510190bf6dedea91fe5b | polling_stations/apps/addressbase/migrations/0001_initial.py | polling_stations/apps/addressbase/migrations/0001_initial.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.contrib.gis.db.models.fields
class Migration(migrations.Migration):
replaces = [('addressbase', '0001_initial'), ('addressbase', '0002_auto_20160611_1700'), ('addressbase', '0003_auto_20160611_... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.contrib.gis.db.models.fields
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Address',
fields=[
... | Convert squashed migration to regular migration | Convert squashed migration to regular migration
This confuses the hell out of me every time
| Python | bsd-3-clause | chris48s/UK-Polling-Stations,DemocracyClub/UK-Polling-Stations,DemocracyClub/UK-Polling-Stations,DemocracyClub/UK-Polling-Stations,chris48s/UK-Polling-Stations,chris48s/UK-Polling-Stations | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.contrib.gis.db.models.fields
class Migration(migrations.Migration):
replaces = [('addressbase', '0001_initial'), ('addressbase', '0002_auto_20160611_1700'), ('addressbase', '0003_auto_20160611_... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.contrib.gis.db.models.fields
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Address',
fields=[
... | <commit_before># -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.contrib.gis.db.models.fields
class Migration(migrations.Migration):
replaces = [('addressbase', '0001_initial'), ('addressbase', '0002_auto_20160611_1700'), ('addressbase', '0003... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.contrib.gis.db.models.fields
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Address',
fields=[
... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.contrib.gis.db.models.fields
class Migration(migrations.Migration):
replaces = [('addressbase', '0001_initial'), ('addressbase', '0002_auto_20160611_1700'), ('addressbase', '0003_auto_20160611_... | <commit_before># -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.contrib.gis.db.models.fields
class Migration(migrations.Migration):
replaces = [('addressbase', '0001_initial'), ('addressbase', '0002_auto_20160611_1700'), ('addressbase', '0003... |
bce11d469177eb4287d9d926b9880e7528bd53c0 | thumbnails/cache_backends.py | thumbnails/cache_backends.py | # -*- coding: utf-8 -*-
class BaseCacheBackend(object):
def get(self, thumbnail_name):
if isinstance(thumbnail_name, list):
thumbnail_name = ''.join(thumbnail_name)
return self._get(thumbnail_name)
def set(self, thumbnail):
thumbnail_name = thumbnail.name
if isins... | # -*- coding: utf-8 -*-
class BaseCacheBackend(object):
def get(self, thumbnail_name):
if isinstance(thumbnail_name, list):
thumbnail_name = ''.join(thumbnail_name)
return self._get(thumbnail_name)
def set(self, thumbnail):
return self._set(thumbnail.name, thumbnail)
... | Remove unecessary code in cache backend _set | Remove unecessary code in cache backend _set
| Python | mit | python-thumbnails/python-thumbnails,relekang/python-thumbnails | # -*- coding: utf-8 -*-
class BaseCacheBackend(object):
def get(self, thumbnail_name):
if isinstance(thumbnail_name, list):
thumbnail_name = ''.join(thumbnail_name)
return self._get(thumbnail_name)
def set(self, thumbnail):
thumbnail_name = thumbnail.name
if isins... | # -*- coding: utf-8 -*-
class BaseCacheBackend(object):
def get(self, thumbnail_name):
if isinstance(thumbnail_name, list):
thumbnail_name = ''.join(thumbnail_name)
return self._get(thumbnail_name)
def set(self, thumbnail):
return self._set(thumbnail.name, thumbnail)
... | <commit_before># -*- coding: utf-8 -*-
class BaseCacheBackend(object):
def get(self, thumbnail_name):
if isinstance(thumbnail_name, list):
thumbnail_name = ''.join(thumbnail_name)
return self._get(thumbnail_name)
def set(self, thumbnail):
thumbnail_name = thumbnail.name
... | # -*- coding: utf-8 -*-
class BaseCacheBackend(object):
def get(self, thumbnail_name):
if isinstance(thumbnail_name, list):
thumbnail_name = ''.join(thumbnail_name)
return self._get(thumbnail_name)
def set(self, thumbnail):
return self._set(thumbnail.name, thumbnail)
... | # -*- coding: utf-8 -*-
class BaseCacheBackend(object):
def get(self, thumbnail_name):
if isinstance(thumbnail_name, list):
thumbnail_name = ''.join(thumbnail_name)
return self._get(thumbnail_name)
def set(self, thumbnail):
thumbnail_name = thumbnail.name
if isins... | <commit_before># -*- coding: utf-8 -*-
class BaseCacheBackend(object):
def get(self, thumbnail_name):
if isinstance(thumbnail_name, list):
thumbnail_name = ''.join(thumbnail_name)
return self._get(thumbnail_name)
def set(self, thumbnail):
thumbnail_name = thumbnail.name
... |
1f4d8b5f5f35b189aab5ff9e10d3ac2386124443 | behave/contrib/substep_dirs.py | behave/contrib/substep_dirs.py | # -*- coding: UTF-8 -*-
"""
Recipe for loading additional step definitions from sub-directories
in the "features/steps" directory.
.. code-block::
# -- FILE: features/steps/use_substep_dirs.py
# REQUIRES: path.py
from behave.runner_util import load_step_modules
from path import Path
HERE = P... | # -*- coding: UTF-8 -*-
"""
Recipe for loading additional step definitions from sub-directories
in the "features/steps" directory.
.. code-block::
# -- FILE: features/steps/use_substep_dirs.py
# REQUIRES: path.py
from behave.runner_util import load_step_modules
from path import Path
HERE = Path(_... | FIX TYPO: Uncovered by NaveenKVN | FIX TYPO: Uncovered by NaveenKVN
| Python | bsd-2-clause | jenisys/behave,jenisys/behave | # -*- coding: UTF-8 -*-
"""
Recipe for loading additional step definitions from sub-directories
in the "features/steps" directory.
.. code-block::
# -- FILE: features/steps/use_substep_dirs.py
# REQUIRES: path.py
from behave.runner_util import load_step_modules
from path import Path
HERE = P... | # -*- coding: UTF-8 -*-
"""
Recipe for loading additional step definitions from sub-directories
in the "features/steps" directory.
.. code-block::
# -- FILE: features/steps/use_substep_dirs.py
# REQUIRES: path.py
from behave.runner_util import load_step_modules
from path import Path
HERE = Path(_... | <commit_before># -*- coding: UTF-8 -*-
"""
Recipe for loading additional step definitions from sub-directories
in the "features/steps" directory.
.. code-block::
# -- FILE: features/steps/use_substep_dirs.py
# REQUIRES: path.py
from behave.runner_util import load_step_modules
from path import Path
... | # -*- coding: UTF-8 -*-
"""
Recipe for loading additional step definitions from sub-directories
in the "features/steps" directory.
.. code-block::
# -- FILE: features/steps/use_substep_dirs.py
# REQUIRES: path.py
from behave.runner_util import load_step_modules
from path import Path
HERE = Path(_... | # -*- coding: UTF-8 -*-
"""
Recipe for loading additional step definitions from sub-directories
in the "features/steps" directory.
.. code-block::
# -- FILE: features/steps/use_substep_dirs.py
# REQUIRES: path.py
from behave.runner_util import load_step_modules
from path import Path
HERE = P... | <commit_before># -*- coding: UTF-8 -*-
"""
Recipe for loading additional step definitions from sub-directories
in the "features/steps" directory.
.. code-block::
# -- FILE: features/steps/use_substep_dirs.py
# REQUIRES: path.py
from behave.runner_util import load_step_modules
from path import Path
... |
b8e9a572098a5eaccf5aadde1b46bfc51da2face | tests/test_check_step_UDFs.py | tests/test_check_step_UDFs.py | from scripts.check_step_UDFs import CheckStepUDFs
from tests.test_common import TestEPP
from unittest.mock import Mock, patch, PropertyMock
class TestCheckStepUDFs(TestEPP):
def setUp(self):
self.patched_process = patch.object(
CheckStepUDFs,
'process',
new_callable=Pr... | from scripts.check_step_UDFs import CheckStepUDFs
from tests.test_common import TestEPP
from unittest.mock import Mock, patch, PropertyMock
class TestCheckStepUDFs(TestEPP):
def setUp(self):
self.patched_process = patch.object(
CheckStepUDFs,
'process',
new_callable=Pr... | Add test to check sys.exit was called with the expected exit status | Add test to check sys.exit was called with the expected exit status
| Python | mit | EdinburghGenomics/clarity_scripts,EdinburghGenomics/clarity_scripts | from scripts.check_step_UDFs import CheckStepUDFs
from tests.test_common import TestEPP
from unittest.mock import Mock, patch, PropertyMock
class TestCheckStepUDFs(TestEPP):
def setUp(self):
self.patched_process = patch.object(
CheckStepUDFs,
'process',
new_callable=Pr... | from scripts.check_step_UDFs import CheckStepUDFs
from tests.test_common import TestEPP
from unittest.mock import Mock, patch, PropertyMock
class TestCheckStepUDFs(TestEPP):
def setUp(self):
self.patched_process = patch.object(
CheckStepUDFs,
'process',
new_callable=Pr... | <commit_before>from scripts.check_step_UDFs import CheckStepUDFs
from tests.test_common import TestEPP
from unittest.mock import Mock, patch, PropertyMock
class TestCheckStepUDFs(TestEPP):
def setUp(self):
self.patched_process = patch.object(
CheckStepUDFs,
'process',
... | from scripts.check_step_UDFs import CheckStepUDFs
from tests.test_common import TestEPP
from unittest.mock import Mock, patch, PropertyMock
class TestCheckStepUDFs(TestEPP):
def setUp(self):
self.patched_process = patch.object(
CheckStepUDFs,
'process',
new_callable=Pr... | from scripts.check_step_UDFs import CheckStepUDFs
from tests.test_common import TestEPP
from unittest.mock import Mock, patch, PropertyMock
class TestCheckStepUDFs(TestEPP):
def setUp(self):
self.patched_process = patch.object(
CheckStepUDFs,
'process',
new_callable=Pr... | <commit_before>from scripts.check_step_UDFs import CheckStepUDFs
from tests.test_common import TestEPP
from unittest.mock import Mock, patch, PropertyMock
class TestCheckStepUDFs(TestEPP):
def setUp(self):
self.patched_process = patch.object(
CheckStepUDFs,
'process',
... |
43fc2f23b80083f89ae1e982bfdee5d4e0322556 | tests/test_command_version.py | tests/test_command_version.py | import sys
from twisted.trial import unittest
from twisted.internet import defer
import scrapy
from scrapy.utils.testproc import ProcessTest
class VersionTest(ProcessTest, unittest.TestCase):
command = 'version'
@defer.inlineCallbacks
def test_output(self):
encoding = getattr(sys.stdout, 'encod... | import sys
from twisted.trial import unittest
from twisted.internet import defer
import scrapy
from scrapy.utils.testproc import ProcessTest
class VersionTest(ProcessTest, unittest.TestCase):
command = 'version'
@defer.inlineCallbacks
def test_output(self):
encoding = getattr(sys.stdout, 'encod... | Increase coverage of version command | Increase coverage of version command
| Python | bsd-3-clause | tagatac/scrapy,nowopen/scrapy,hwsyy/scrapy,Lucifer-Kim/scrapy,mlyundin/scrapy,elacuesta/scrapy,KublaikhanGeek/scrapy,Ryezhang/scrapy,github-account-because-they-want-it/scrapy,ENjOyAbLE1991/scrapy,yidongliu/scrapy,famorted/scrapy,avtoritet/scrapy,Preetwinder/scrapy,eLRuLL/scrapy,foromer4/scrapy,godfreyy/scrapy,Kublaikh... | import sys
from twisted.trial import unittest
from twisted.internet import defer
import scrapy
from scrapy.utils.testproc import ProcessTest
class VersionTest(ProcessTest, unittest.TestCase):
command = 'version'
@defer.inlineCallbacks
def test_output(self):
encoding = getattr(sys.stdout, 'encod... | import sys
from twisted.trial import unittest
from twisted.internet import defer
import scrapy
from scrapy.utils.testproc import ProcessTest
class VersionTest(ProcessTest, unittest.TestCase):
command = 'version'
@defer.inlineCallbacks
def test_output(self):
encoding = getattr(sys.stdout, 'encod... | <commit_before>import sys
from twisted.trial import unittest
from twisted.internet import defer
import scrapy
from scrapy.utils.testproc import ProcessTest
class VersionTest(ProcessTest, unittest.TestCase):
command = 'version'
@defer.inlineCallbacks
def test_output(self):
encoding = getattr(sys... | import sys
from twisted.trial import unittest
from twisted.internet import defer
import scrapy
from scrapy.utils.testproc import ProcessTest
class VersionTest(ProcessTest, unittest.TestCase):
command = 'version'
@defer.inlineCallbacks
def test_output(self):
encoding = getattr(sys.stdout, 'encod... | import sys
from twisted.trial import unittest
from twisted.internet import defer
import scrapy
from scrapy.utils.testproc import ProcessTest
class VersionTest(ProcessTest, unittest.TestCase):
command = 'version'
@defer.inlineCallbacks
def test_output(self):
encoding = getattr(sys.stdout, 'encod... | <commit_before>import sys
from twisted.trial import unittest
from twisted.internet import defer
import scrapy
from scrapy.utils.testproc import ProcessTest
class VersionTest(ProcessTest, unittest.TestCase):
command = 'version'
@defer.inlineCallbacks
def test_output(self):
encoding = getattr(sys... |
3a3cb923babfbba4234e646dc40c0a9b6364d207 | apps/announcements/management/commands/tweetannouncements.py | apps/announcements/management/commands/tweetannouncements.py | """
Management command to cross-publish announcements on Twitter.
"""
from django.core.management.base import NoArgsCommand
from ...models import AnnouncementTwitterCrossPublication
class Command(NoArgsCommand):
"""
A management command which cross-publish on Twitter any pending announcements
currently ... | """
Management command to cross-publish announcements on Twitter.
"""
from django.core.management.base import NoArgsCommand
from apps.dbmutex import MutexLock,AlreadyLockedError, LockTimeoutError
from ...models import AnnouncementTwitterCrossPublication
class Command(NoArgsCommand):
"""
A management comman... | Add mutex to the "tweetannouncement" management command. | Add mutex to the "tweetannouncement" management command.
| Python | agpl-3.0 | TamiaLab/carnetdumaker,TamiaLab/carnetdumaker,TamiaLab/carnetdumaker,TamiaLab/carnetdumaker | """
Management command to cross-publish announcements on Twitter.
"""
from django.core.management.base import NoArgsCommand
from ...models import AnnouncementTwitterCrossPublication
class Command(NoArgsCommand):
"""
A management command which cross-publish on Twitter any pending announcements
currently ... | """
Management command to cross-publish announcements on Twitter.
"""
from django.core.management.base import NoArgsCommand
from apps.dbmutex import MutexLock,AlreadyLockedError, LockTimeoutError
from ...models import AnnouncementTwitterCrossPublication
class Command(NoArgsCommand):
"""
A management comman... | <commit_before>"""
Management command to cross-publish announcements on Twitter.
"""
from django.core.management.base import NoArgsCommand
from ...models import AnnouncementTwitterCrossPublication
class Command(NoArgsCommand):
"""
A management command which cross-publish on Twitter any pending announcements... | """
Management command to cross-publish announcements on Twitter.
"""
from django.core.management.base import NoArgsCommand
from apps.dbmutex import MutexLock,AlreadyLockedError, LockTimeoutError
from ...models import AnnouncementTwitterCrossPublication
class Command(NoArgsCommand):
"""
A management comman... | """
Management command to cross-publish announcements on Twitter.
"""
from django.core.management.base import NoArgsCommand
from ...models import AnnouncementTwitterCrossPublication
class Command(NoArgsCommand):
"""
A management command which cross-publish on Twitter any pending announcements
currently ... | <commit_before>"""
Management command to cross-publish announcements on Twitter.
"""
from django.core.management.base import NoArgsCommand
from ...models import AnnouncementTwitterCrossPublication
class Command(NoArgsCommand):
"""
A management command which cross-publish on Twitter any pending announcements... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.