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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b9b7fb6f4a7c334f56a9a6cd34c50124008adb26 | apps/homepage/model.py | apps/homepage/model.py | from django.utils.timezone import now
from apps.banners.models import Slide
from apps.campaigns.models import Campaign
from apps.fundraisers.models import FundRaiser
from apps.projects.models import Project
from apps.quotes.models import Quote
from apps.statistics.models import Statistic
# Instead of serving all the... | from django.utils.timezone import now
from apps.banners.models import Slide
from apps.campaigns.models import Campaign
from apps.fundraisers.models import FundRaiser
from apps.projects.models import Project
from apps.quotes.models import Quote
from apps.statistics.models import Statistic
# Instead of serving all the... | Sort fundraiser on newest on hp | Sort fundraiser on newest on hp
| Python | bsd-3-clause | onepercentclub/onepercentclub-site,onepercentclub/onepercentclub-site,onepercentclub/onepercentclub-site,onepercentclub/onepercentclub-site,onepercentclub/onepercentclub-site | from django.utils.timezone import now
from apps.banners.models import Slide
from apps.campaigns.models import Campaign
from apps.fundraisers.models import FundRaiser
from apps.projects.models import Project
from apps.quotes.models import Quote
from apps.statistics.models import Statistic
# Instead of serving all the... | from django.utils.timezone import now
from apps.banners.models import Slide
from apps.campaigns.models import Campaign
from apps.fundraisers.models import FundRaiser
from apps.projects.models import Project
from apps.quotes.models import Quote
from apps.statistics.models import Statistic
# Instead of serving all the... | <commit_before>from django.utils.timezone import now
from apps.banners.models import Slide
from apps.campaigns.models import Campaign
from apps.fundraisers.models import FundRaiser
from apps.projects.models import Project
from apps.quotes.models import Quote
from apps.statistics.models import Statistic
# Instead of ... | from django.utils.timezone import now
from apps.banners.models import Slide
from apps.campaigns.models import Campaign
from apps.fundraisers.models import FundRaiser
from apps.projects.models import Project
from apps.quotes.models import Quote
from apps.statistics.models import Statistic
# Instead of serving all the... | from django.utils.timezone import now
from apps.banners.models import Slide
from apps.campaigns.models import Campaign
from apps.fundraisers.models import FundRaiser
from apps.projects.models import Project
from apps.quotes.models import Quote
from apps.statistics.models import Statistic
# Instead of serving all the... | <commit_before>from django.utils.timezone import now
from apps.banners.models import Slide
from apps.campaigns.models import Campaign
from apps.fundraisers.models import FundRaiser
from apps.projects.models import Project
from apps.quotes.models import Quote
from apps.statistics.models import Statistic
# Instead of ... |
8bd47ec3983981d0a2ac8d9f9c17f4c1c9c8fbd3 | apps/profiles/tests.py | apps/profiles/tests.py | """
This file demonstrates writing tests using the unittest module. These will pass
when you run "manage.py test".
Replace this with more appropriate tests for your application.
"""
from django.core.urlresolvers import reverse
from django.test import TestCase
from django_dynamic_fixture import G
from rest_framework im... | from django.core.urlresolvers import reverse
from django.test import TestCase
from django_dynamic_fixture import G
from rest_framework import status
from apps.authentication.models import OnlineUser as User
from apps.profiles.forms import ProfileForm
class ProfilesURLTestCase(TestCase):
def test_user_search(self... | Test that saving ProfileForm works | Test that saving ProfileForm works
| Python | mit | dotKom/onlineweb4,dotKom/onlineweb4,dotKom/onlineweb4,dotKom/onlineweb4 | """
This file demonstrates writing tests using the unittest module. These will pass
when you run "manage.py test".
Replace this with more appropriate tests for your application.
"""
from django.core.urlresolvers import reverse
from django.test import TestCase
from django_dynamic_fixture import G
from rest_framework im... | from django.core.urlresolvers import reverse
from django.test import TestCase
from django_dynamic_fixture import G
from rest_framework import status
from apps.authentication.models import OnlineUser as User
from apps.profiles.forms import ProfileForm
class ProfilesURLTestCase(TestCase):
def test_user_search(self... | <commit_before>"""
This file demonstrates writing tests using the unittest module. These will pass
when you run "manage.py test".
Replace this with more appropriate tests for your application.
"""
from django.core.urlresolvers import reverse
from django.test import TestCase
from django_dynamic_fixture import G
from re... | from django.core.urlresolvers import reverse
from django.test import TestCase
from django_dynamic_fixture import G
from rest_framework import status
from apps.authentication.models import OnlineUser as User
from apps.profiles.forms import ProfileForm
class ProfilesURLTestCase(TestCase):
def test_user_search(self... | """
This file demonstrates writing tests using the unittest module. These will pass
when you run "manage.py test".
Replace this with more appropriate tests for your application.
"""
from django.core.urlresolvers import reverse
from django.test import TestCase
from django_dynamic_fixture import G
from rest_framework im... | <commit_before>"""
This file demonstrates writing tests using the unittest module. These will pass
when you run "manage.py test".
Replace this with more appropriate tests for your application.
"""
from django.core.urlresolvers import reverse
from django.test import TestCase
from django_dynamic_fixture import G
from re... |
308cbf1f62e254643a0ad47db8ad55eb63e1c888 | argonauts/testutils.py | argonauts/testutils.py | import json
import functools
from django.conf import settings
from django.test import Client, TestCase
__all__ = ['JsonTestClient', 'JsonTestCase']
class JsonTestClient(Client):
def _json_request(self, method, url, data=None, *args, **kwargs):
method_func = getattr(super(JsonTestClient, self), method)
... | import json
import functools
from django.conf import settings
from django.test import Client, TestCase
__all__ = ['JsonTestClient', 'JsonTestMixin', 'JsonTestCase']
class JsonTestClient(Client):
def _json_request(self, method, url, data=None, *args, **kwargs):
method_func = getattr(super(JsonTestClient,... | Make the TestCase a mixin | Make the TestCase a mixin
| Python | bsd-2-clause | fusionbox/django-argonauts | import json
import functools
from django.conf import settings
from django.test import Client, TestCase
__all__ = ['JsonTestClient', 'JsonTestCase']
class JsonTestClient(Client):
def _json_request(self, method, url, data=None, *args, **kwargs):
method_func = getattr(super(JsonTestClient, self), method)
... | import json
import functools
from django.conf import settings
from django.test import Client, TestCase
__all__ = ['JsonTestClient', 'JsonTestMixin', 'JsonTestCase']
class JsonTestClient(Client):
def _json_request(self, method, url, data=None, *args, **kwargs):
method_func = getattr(super(JsonTestClient,... | <commit_before>import json
import functools
from django.conf import settings
from django.test import Client, TestCase
__all__ = ['JsonTestClient', 'JsonTestCase']
class JsonTestClient(Client):
def _json_request(self, method, url, data=None, *args, **kwargs):
method_func = getattr(super(JsonTestClient, s... | import json
import functools
from django.conf import settings
from django.test import Client, TestCase
__all__ = ['JsonTestClient', 'JsonTestMixin', 'JsonTestCase']
class JsonTestClient(Client):
def _json_request(self, method, url, data=None, *args, **kwargs):
method_func = getattr(super(JsonTestClient,... | import json
import functools
from django.conf import settings
from django.test import Client, TestCase
__all__ = ['JsonTestClient', 'JsonTestCase']
class JsonTestClient(Client):
def _json_request(self, method, url, data=None, *args, **kwargs):
method_func = getattr(super(JsonTestClient, self), method)
... | <commit_before>import json
import functools
from django.conf import settings
from django.test import Client, TestCase
__all__ = ['JsonTestClient', 'JsonTestCase']
class JsonTestClient(Client):
def _json_request(self, method, url, data=None, *args, **kwargs):
method_func = getattr(super(JsonTestClient, s... |
456e5a63333e683b7167bf151b97a49a5cf5c5fe | app/models/job.py | app/models/job.py | # Copyright (C) 2014 Linaro Ltd.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distribute... | # Copyright (C) 2014 Linaro Ltd.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distribute... | Rework the jod document model. | Rework the jod document model.
* Add the created field that will store a datetime object.
* Add reference to the kernel and the job inside the document,
without relying on the Jod document name itself. Since we
use the dash as a separator, and other job names can have
dash in them, we cannot separate j... | Python | agpl-3.0 | joyxu/kernelci-backend,joyxu/kernelci-backend,kernelci/kernelci-backend,kernelci/kernelci-backend,joyxu/kernelci-backend | # Copyright (C) 2014 Linaro Ltd.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distribute... | # Copyright (C) 2014 Linaro Ltd.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distribute... | <commit_before># Copyright (C) 2014 Linaro Ltd.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This progra... | # Copyright (C) 2014 Linaro Ltd.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distribute... | # Copyright (C) 2014 Linaro Ltd.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distribute... | <commit_before># Copyright (C) 2014 Linaro Ltd.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This progra... |
4b7713a1891aa86c0f16fafdea8770495070bfcb | html_snapshots/utils.py | html_snapshots/utils.py | import os
import rmc.shared.constants as c
import rmc.models as m
FILE_DIR = os.path.dirname(os.path.realpath(__file__))
HTML_DIR = os.path.join(c.SHARED_DATA_DIR, 'html_snapshots')
def write(file_path, content):
ensure_dir(file_path)
with open(file_path, 'w') as f:
f.write(content)
def ensure_dir... | import os
import mongoengine as me
import rmc.shared.constants as c
import rmc.models as m
FILE_DIR = os.path.dirname(os.path.realpath(__file__))
HTML_DIR = os.path.join(c.SHARED_DATA_DIR, 'html_snapshots')
me.connect(c.MONGO_DB_RMC, host=c.MONGO_HOST, port=c.MONGO_PORT)
def write(file_path, content):
ensure_... | Create mongoengine connection when taking phantom snapshots | Create mongoengine connection when taking phantom snapshots
| Python | mit | ccqi/rmc,JGulbronson/rmc,JGulbronson/rmc,UWFlow/rmc,shakilkanji/rmc,ccqi/rmc,UWFlow/rmc,sachdevs/rmc,sachdevs/rmc,MichalKononenko/rmc,UWFlow/rmc,MichalKononenko/rmc,sachdevs/rmc,duaayousif/rmc,MichalKononenko/rmc,MichalKononenko/rmc,JGulbronson/rmc,ccqi/rmc,JGulbronson/rmc,sachdevs/rmc,UWFlow/rmc,UWFlow/rmc,duaayousif/... | import os
import rmc.shared.constants as c
import rmc.models as m
FILE_DIR = os.path.dirname(os.path.realpath(__file__))
HTML_DIR = os.path.join(c.SHARED_DATA_DIR, 'html_snapshots')
def write(file_path, content):
ensure_dir(file_path)
with open(file_path, 'w') as f:
f.write(content)
def ensure_dir... | import os
import mongoengine as me
import rmc.shared.constants as c
import rmc.models as m
FILE_DIR = os.path.dirname(os.path.realpath(__file__))
HTML_DIR = os.path.join(c.SHARED_DATA_DIR, 'html_snapshots')
me.connect(c.MONGO_DB_RMC, host=c.MONGO_HOST, port=c.MONGO_PORT)
def write(file_path, content):
ensure_... | <commit_before>import os
import rmc.shared.constants as c
import rmc.models as m
FILE_DIR = os.path.dirname(os.path.realpath(__file__))
HTML_DIR = os.path.join(c.SHARED_DATA_DIR, 'html_snapshots')
def write(file_path, content):
ensure_dir(file_path)
with open(file_path, 'w') as f:
f.write(content)
... | import os
import mongoengine as me
import rmc.shared.constants as c
import rmc.models as m
FILE_DIR = os.path.dirname(os.path.realpath(__file__))
HTML_DIR = os.path.join(c.SHARED_DATA_DIR, 'html_snapshots')
me.connect(c.MONGO_DB_RMC, host=c.MONGO_HOST, port=c.MONGO_PORT)
def write(file_path, content):
ensure_... | import os
import rmc.shared.constants as c
import rmc.models as m
FILE_DIR = os.path.dirname(os.path.realpath(__file__))
HTML_DIR = os.path.join(c.SHARED_DATA_DIR, 'html_snapshots')
def write(file_path, content):
ensure_dir(file_path)
with open(file_path, 'w') as f:
f.write(content)
def ensure_dir... | <commit_before>import os
import rmc.shared.constants as c
import rmc.models as m
FILE_DIR = os.path.dirname(os.path.realpath(__file__))
HTML_DIR = os.path.join(c.SHARED_DATA_DIR, 'html_snapshots')
def write(file_path, content):
ensure_dir(file_path)
with open(file_path, 'w') as f:
f.write(content)
... |
e3dcbe5fb142b7ce564a90cf127de418d0a62db3 | src/sentry/runner/hacks.py | src/sentry/runner/hacks.py | """
sentry.runner.hacks
~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2015 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import, print_function
from sentry.http import get_server_hostname
class AllowedHosts(object):
# HACK: This is a fak... | """
sentry.runner.hacks
~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2015 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import, print_function
from sentry.http import get_server_hostname
class AllowedHosts(object):
# HACK: This is a fak... | Add a nice repr for AllowedHosts object so the admin makes sense | Add a nice repr for AllowedHosts object so the admin makes sense
| Python | bsd-3-clause | fotinakis/sentry,daevaorn/sentry,beeftornado/sentry,daevaorn/sentry,ifduyue/sentry,alexm92/sentry,ifduyue/sentry,JamesMura/sentry,JamesMura/sentry,alexm92/sentry,jean/sentry,BuildingLink/sentry,JackDanger/sentry,gencer/sentry,nicholasserra/sentry,jean/sentry,ifduyue/sentry,mvaled/sentry,ifduyue/sentry,zenefits/sentry,z... | """
sentry.runner.hacks
~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2015 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import, print_function
from sentry.http import get_server_hostname
class AllowedHosts(object):
# HACK: This is a fak... | """
sentry.runner.hacks
~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2015 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import, print_function
from sentry.http import get_server_hostname
class AllowedHosts(object):
# HACK: This is a fak... | <commit_before>"""
sentry.runner.hacks
~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2015 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import, print_function
from sentry.http import get_server_hostname
class AllowedHosts(object):
# HACK... | """
sentry.runner.hacks
~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2015 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import, print_function
from sentry.http import get_server_hostname
class AllowedHosts(object):
# HACK: This is a fak... | """
sentry.runner.hacks
~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2015 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import, print_function
from sentry.http import get_server_hostname
class AllowedHosts(object):
# HACK: This is a fak... | <commit_before>"""
sentry.runner.hacks
~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2015 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import, print_function
from sentry.http import get_server_hostname
class AllowedHosts(object):
# HACK... |
1ef9c5c76e1c1110803d83833fc69ba201d33582 | pavement.py | pavement.py | # -*- coding: utf-8 -*-
from paver.easy import task, sh, needs, path
from paver.setuputils import setup
setup(name='ldapom',
version='0.9.4',
description='A simple ldap object mapper for python',
author='Florian Richter',
author_email='[email protected]',
url='https://github.com/HaDiNet/ldap... | # -*- coding: utf-8 -*-
from paver.easy import *
@task
def test(options):
info("Running tests for Python 2")
sh('python2 tests.py')
info("Running tests for Python 3")
sh('python3 tests.py')
@task
def coverage(options):
info("Running coverage for Python 2")
sh('coverage2 run --source ldapom.py... | Update paver to test and report coverage for both Python 2 and 3 | Update paver to test and report coverage for both Python 2 and 3
| Python | mit | HaDiNet/ldapom | # -*- coding: utf-8 -*-
from paver.easy import task, sh, needs, path
from paver.setuputils import setup
setup(name='ldapom',
version='0.9.4',
description='A simple ldap object mapper for python',
author='Florian Richter',
author_email='[email protected]',
url='https://github.com/HaDiNet/ldap... | # -*- coding: utf-8 -*-
from paver.easy import *
@task
def test(options):
info("Running tests for Python 2")
sh('python2 tests.py')
info("Running tests for Python 3")
sh('python3 tests.py')
@task
def coverage(options):
info("Running coverage for Python 2")
sh('coverage2 run --source ldapom.py... | <commit_before># -*- coding: utf-8 -*-
from paver.easy import task, sh, needs, path
from paver.setuputils import setup
setup(name='ldapom',
version='0.9.4',
description='A simple ldap object mapper for python',
author='Florian Richter',
author_email='[email protected]',
url='https://github.c... | # -*- coding: utf-8 -*-
from paver.easy import *
@task
def test(options):
info("Running tests for Python 2")
sh('python2 tests.py')
info("Running tests for Python 3")
sh('python3 tests.py')
@task
def coverage(options):
info("Running coverage for Python 2")
sh('coverage2 run --source ldapom.py... | # -*- coding: utf-8 -*-
from paver.easy import task, sh, needs, path
from paver.setuputils import setup
setup(name='ldapom',
version='0.9.4',
description='A simple ldap object mapper for python',
author='Florian Richter',
author_email='[email protected]',
url='https://github.com/HaDiNet/ldap... | <commit_before># -*- coding: utf-8 -*-
from paver.easy import task, sh, needs, path
from paver.setuputils import setup
setup(name='ldapom',
version='0.9.4',
description='A simple ldap object mapper for python',
author='Florian Richter',
author_email='[email protected]',
url='https://github.c... |
05742ef5fb1f163750679ae56ab5ea97f7050811 | tests/test_apps_up.py | tests/test_apps_up.py | import os
import pytest
import requests
REGISTER_TITLE_URL = os.environ['DIGITAL_REGISTER_URL']
USERNAME = os.environ['SMOKE_USERNAME']
PASSWORD = os.environ['SMOKE_PASSWORD']
TITLE_NUMBER = os.environ['SMOKE_TITLE_NUMBER']
PARTIAL_ADDRESS = os.environ['SMOKE_PARTIAL_ADDRESS']
POSTCODE = os.environ['SMOKE_POSTCODE']
... | import os
import pytest
import requests
REGISTER_TITLE_URL = os.environ['DIGITAL_REGISTER_URL']
USERNAME = os.environ['SMOKE_USERNAME']
PASSWORD = os.environ['SMOKE_PASSWORD']
TITLE_NUMBER = os.environ['SMOKE_TITLE_NUMBER']
PARTIAL_ADDRESS = os.environ['SMOKE_PARTIAL_ADDRESS']
POSTCODE = os.environ['SMOKE_POSTCODE']
... | Use correct kwarg for requests.post() | Use correct kwarg for requests.post()
| Python | mit | LandRegistry/digital-register-smoke-tests,LandRegistry/digital-register-smoke-tests | import os
import pytest
import requests
REGISTER_TITLE_URL = os.environ['DIGITAL_REGISTER_URL']
USERNAME = os.environ['SMOKE_USERNAME']
PASSWORD = os.environ['SMOKE_PASSWORD']
TITLE_NUMBER = os.environ['SMOKE_TITLE_NUMBER']
PARTIAL_ADDRESS = os.environ['SMOKE_PARTIAL_ADDRESS']
POSTCODE = os.environ['SMOKE_POSTCODE']
... | import os
import pytest
import requests
REGISTER_TITLE_URL = os.environ['DIGITAL_REGISTER_URL']
USERNAME = os.environ['SMOKE_USERNAME']
PASSWORD = os.environ['SMOKE_PASSWORD']
TITLE_NUMBER = os.environ['SMOKE_TITLE_NUMBER']
PARTIAL_ADDRESS = os.environ['SMOKE_PARTIAL_ADDRESS']
POSTCODE = os.environ['SMOKE_POSTCODE']
... | <commit_before>import os
import pytest
import requests
REGISTER_TITLE_URL = os.environ['DIGITAL_REGISTER_URL']
USERNAME = os.environ['SMOKE_USERNAME']
PASSWORD = os.environ['SMOKE_PASSWORD']
TITLE_NUMBER = os.environ['SMOKE_TITLE_NUMBER']
PARTIAL_ADDRESS = os.environ['SMOKE_PARTIAL_ADDRESS']
POSTCODE = os.environ['SM... | import os
import pytest
import requests
REGISTER_TITLE_URL = os.environ['DIGITAL_REGISTER_URL']
USERNAME = os.environ['SMOKE_USERNAME']
PASSWORD = os.environ['SMOKE_PASSWORD']
TITLE_NUMBER = os.environ['SMOKE_TITLE_NUMBER']
PARTIAL_ADDRESS = os.environ['SMOKE_PARTIAL_ADDRESS']
POSTCODE = os.environ['SMOKE_POSTCODE']
... | import os
import pytest
import requests
REGISTER_TITLE_URL = os.environ['DIGITAL_REGISTER_URL']
USERNAME = os.environ['SMOKE_USERNAME']
PASSWORD = os.environ['SMOKE_PASSWORD']
TITLE_NUMBER = os.environ['SMOKE_TITLE_NUMBER']
PARTIAL_ADDRESS = os.environ['SMOKE_PARTIAL_ADDRESS']
POSTCODE = os.environ['SMOKE_POSTCODE']
... | <commit_before>import os
import pytest
import requests
REGISTER_TITLE_URL = os.environ['DIGITAL_REGISTER_URL']
USERNAME = os.environ['SMOKE_USERNAME']
PASSWORD = os.environ['SMOKE_PASSWORD']
TITLE_NUMBER = os.environ['SMOKE_TITLE_NUMBER']
PARTIAL_ADDRESS = os.environ['SMOKE_PARTIAL_ADDRESS']
POSTCODE = os.environ['SM... |
abe744c5a099fd988ff3fe5eb1d50cca7a633d74 | var/spack/repos/builtin/packages/parallel-netcdf/package.py | var/spack/repos/builtin/packages/parallel-netcdf/package.py | from spack import *
class ParallelNetcdf(Package):
"""Parallel netCDF (PnetCDF) is a library providing high-performance
parallel I/O while still maintaining file-format compatibility with
Unidata's NetCDF."""
homepage = "https://trac.mcs.anl.gov/projects/parallel-netcdf"
url = "http://cucis.e... | from spack import *
class ParallelNetcdf(Package):
"""Parallel netCDF (PnetCDF) is a library providing high-performance
parallel I/O while still maintaining file-format compatibility with
Unidata's NetCDF."""
homepage = "https://trac.mcs.anl.gov/projects/parallel-netcdf"
url = "http://cucis.e... | Add latest version of PnetCDF | Add latest version of PnetCDF
| Python | lgpl-2.1 | mfherbst/spack,EmreAtes/spack,lgarren/spack,tmerrick1/spack,matthiasdiener/spack,skosukhin/spack,tmerrick1/spack,iulian787/spack,skosukhin/spack,LLNL/spack,matthiasdiener/spack,iulian787/spack,krafczyk/spack,TheTimmy/spack,mfherbst/spack,LLNL/spack,mfherbst/spack,EmreAtes/spack,tmerrick1/spack,mfherbst/spack,TheTimmy/s... | from spack import *
class ParallelNetcdf(Package):
"""Parallel netCDF (PnetCDF) is a library providing high-performance
parallel I/O while still maintaining file-format compatibility with
Unidata's NetCDF."""
homepage = "https://trac.mcs.anl.gov/projects/parallel-netcdf"
url = "http://cucis.e... | from spack import *
class ParallelNetcdf(Package):
"""Parallel netCDF (PnetCDF) is a library providing high-performance
parallel I/O while still maintaining file-format compatibility with
Unidata's NetCDF."""
homepage = "https://trac.mcs.anl.gov/projects/parallel-netcdf"
url = "http://cucis.e... | <commit_before>from spack import *
class ParallelNetcdf(Package):
"""Parallel netCDF (PnetCDF) is a library providing high-performance
parallel I/O while still maintaining file-format compatibility with
Unidata's NetCDF."""
homepage = "https://trac.mcs.anl.gov/projects/parallel-netcdf"
url = ... | from spack import *
class ParallelNetcdf(Package):
"""Parallel netCDF (PnetCDF) is a library providing high-performance
parallel I/O while still maintaining file-format compatibility with
Unidata's NetCDF."""
homepage = "https://trac.mcs.anl.gov/projects/parallel-netcdf"
url = "http://cucis.e... | from spack import *
class ParallelNetcdf(Package):
"""Parallel netCDF (PnetCDF) is a library providing high-performance
parallel I/O while still maintaining file-format compatibility with
Unidata's NetCDF."""
homepage = "https://trac.mcs.anl.gov/projects/parallel-netcdf"
url = "http://cucis.e... | <commit_before>from spack import *
class ParallelNetcdf(Package):
"""Parallel netCDF (PnetCDF) is a library providing high-performance
parallel I/O while still maintaining file-format compatibility with
Unidata's NetCDF."""
homepage = "https://trac.mcs.anl.gov/projects/parallel-netcdf"
url = ... |
8297d4a8650b94bee6aa2c9a83b699f443596ce6 | stagecraft/tools/txex-migration.py | stagecraft/tools/txex-migration.py | #!/usr/bin/env python
import os
import sys
try:
username = os.environ['GOOGLE_USERNAME']
password = os.environ['GOOGLE_PASSWORD']
except KeyError:
print("Please supply username (GOOGLE_USERNAME)"
"and password (GOOGLE_PASSWORD) as environment variables")
sys.exit(1)
column_positions = {
... | #!/usr/bin/env python
import os
import sys
try:
username = os.environ['GOOGLE_USERNAME']
password = os.environ['GOOGLE_PASSWORD']
except KeyError:
print("Please supply username (GOOGLE_USERNAME)"
"and password (GOOGLE_PASSWORD) as environment variables")
sys.exit(1)
column_positions = {
... | Fix column positions to reflect current spreadsheet. | Fix column positions to reflect current spreadsheet.
| Python | mit | alphagov/stagecraft,alphagov/stagecraft,alphagov/stagecraft,alphagov/stagecraft | #!/usr/bin/env python
import os
import sys
try:
username = os.environ['GOOGLE_USERNAME']
password = os.environ['GOOGLE_PASSWORD']
except KeyError:
print("Please supply username (GOOGLE_USERNAME)"
"and password (GOOGLE_PASSWORD) as environment variables")
sys.exit(1)
column_positions = {
... | #!/usr/bin/env python
import os
import sys
try:
username = os.environ['GOOGLE_USERNAME']
password = os.environ['GOOGLE_PASSWORD']
except KeyError:
print("Please supply username (GOOGLE_USERNAME)"
"and password (GOOGLE_PASSWORD) as environment variables")
sys.exit(1)
column_positions = {
... | <commit_before>#!/usr/bin/env python
import os
import sys
try:
username = os.environ['GOOGLE_USERNAME']
password = os.environ['GOOGLE_PASSWORD']
except KeyError:
print("Please supply username (GOOGLE_USERNAME)"
"and password (GOOGLE_PASSWORD) as environment variables")
sys.exit(1)
column_po... | #!/usr/bin/env python
import os
import sys
try:
username = os.environ['GOOGLE_USERNAME']
password = os.environ['GOOGLE_PASSWORD']
except KeyError:
print("Please supply username (GOOGLE_USERNAME)"
"and password (GOOGLE_PASSWORD) as environment variables")
sys.exit(1)
column_positions = {
... | #!/usr/bin/env python
import os
import sys
try:
username = os.environ['GOOGLE_USERNAME']
password = os.environ['GOOGLE_PASSWORD']
except KeyError:
print("Please supply username (GOOGLE_USERNAME)"
"and password (GOOGLE_PASSWORD) as environment variables")
sys.exit(1)
column_positions = {
... | <commit_before>#!/usr/bin/env python
import os
import sys
try:
username = os.environ['GOOGLE_USERNAME']
password = os.environ['GOOGLE_PASSWORD']
except KeyError:
print("Please supply username (GOOGLE_USERNAME)"
"and password (GOOGLE_PASSWORD) as environment variables")
sys.exit(1)
column_po... |
b9bfabe2648dbc7604488b7bda5c53e460155072 | glharvest/tests/test_void.py | glharvest/tests/test_void.py | """test_void.py
Test the parsing of VoID dump files.
"""
try:
import RDF
except ImportError:
import sys
sys.path.append('/usr/lib/python2.7/dist-packages/')
import RDF
from glharvest import util, void
def test_returns_none_if_the_registry_file_is_not_found():
m = util.load_file_into_model("nonexi... | """test_void.py
Test the parsing of VoID dump files.
"""
try:
import RDF
except ImportError:
import sys
sys.path.append('/usr/lib/python2.7/dist-packages/')
import RDF
from glharvest import util, void
def test_returns_none_if_the_registry_file_is_not_found():
m = util.load_file_into_model("nonexi... | Update void test to reflect the new void model structure | Update void test to reflect the new void model structure
The first version I coded up only allowed for a single dump in each
dataset. The most current version expects an array of dumps so I needed
to update the test.
| Python | apache-2.0 | ec-geolink/glharvest,ec-geolink/glharvest,ec-geolink/glharvest | """test_void.py
Test the parsing of VoID dump files.
"""
try:
import RDF
except ImportError:
import sys
sys.path.append('/usr/lib/python2.7/dist-packages/')
import RDF
from glharvest import util, void
def test_returns_none_if_the_registry_file_is_not_found():
m = util.load_file_into_model("nonexi... | """test_void.py
Test the parsing of VoID dump files.
"""
try:
import RDF
except ImportError:
import sys
sys.path.append('/usr/lib/python2.7/dist-packages/')
import RDF
from glharvest import util, void
def test_returns_none_if_the_registry_file_is_not_found():
m = util.load_file_into_model("nonexi... | <commit_before>"""test_void.py
Test the parsing of VoID dump files.
"""
try:
import RDF
except ImportError:
import sys
sys.path.append('/usr/lib/python2.7/dist-packages/')
import RDF
from glharvest import util, void
def test_returns_none_if_the_registry_file_is_not_found():
m = util.load_file_int... | """test_void.py
Test the parsing of VoID dump files.
"""
try:
import RDF
except ImportError:
import sys
sys.path.append('/usr/lib/python2.7/dist-packages/')
import RDF
from glharvest import util, void
def test_returns_none_if_the_registry_file_is_not_found():
m = util.load_file_into_model("nonexi... | """test_void.py
Test the parsing of VoID dump files.
"""
try:
import RDF
except ImportError:
import sys
sys.path.append('/usr/lib/python2.7/dist-packages/')
import RDF
from glharvest import util, void
def test_returns_none_if_the_registry_file_is_not_found():
m = util.load_file_into_model("nonexi... | <commit_before>"""test_void.py
Test the parsing of VoID dump files.
"""
try:
import RDF
except ImportError:
import sys
sys.path.append('/usr/lib/python2.7/dist-packages/')
import RDF
from glharvest import util, void
def test_returns_none_if_the_registry_file_is_not_found():
m = util.load_file_int... |
cdc5627cfad3b4fb413bed86d76dbe083e6727a7 | hnotebook/notebooks/admin.py | hnotebook/notebooks/admin.py | from django.contrib import admin
# Register your models here.
| from django.contrib import admin
from .models import Notebook
class NotebookAdmin(admin.ModelAdmin):
model = Notebook
admin.site.register(Notebook, NotebookAdmin)
| Add Admin for Notebook model | Add Admin for Notebook model
| Python | mit | marcwebbie/hnotebook | from django.contrib import admin
# Register your models here.
Add Admin for Notebook model | from django.contrib import admin
from .models import Notebook
class NotebookAdmin(admin.ModelAdmin):
model = Notebook
admin.site.register(Notebook, NotebookAdmin)
| <commit_before>from django.contrib import admin
# Register your models here.
<commit_msg>Add Admin for Notebook model<commit_after> | from django.contrib import admin
from .models import Notebook
class NotebookAdmin(admin.ModelAdmin):
model = Notebook
admin.site.register(Notebook, NotebookAdmin)
| from django.contrib import admin
# Register your models here.
Add Admin for Notebook modelfrom django.contrib import admin
from .models import Notebook
class NotebookAdmin(admin.ModelAdmin):
model = Notebook
admin.site.register(Notebook, NotebookAdmin)
| <commit_before>from django.contrib import admin
# Register your models here.
<commit_msg>Add Admin for Notebook model<commit_after>from django.contrib import admin
from .models import Notebook
class NotebookAdmin(admin.ModelAdmin):
model = Notebook
admin.site.register(Notebook, NotebookAdmin)
|
f09208c047de7c31b9a76d903aa996bf74a3159c | bin/targetselection.py | bin/targetselection.py | import numpy
from desitarget.io import read_tractor, write_targets
from desitarget.cuts import LRG, ELG, BGS, QSO
from desitarget import targetmask
from argparse import ArgumentParser
ap = ArgumentParser()
ap.add_argument("--type", choices=["tractor"], default="tractor", help="Assume a type for src files")
ap.add_ar... | from __future__ import print_function
import numpy
from desitarget.io import read_tractor, write_targets
from desitarget.cuts import LRG, ELG, BGS, QSO
from desitarget import targetmask
from argparse import ArgumentParser
ap = ArgumentParser()
ap.add_argument("--type", choices=["tractor"], default="tractor", help="A... | Use print_function in toplevel script. | Use print_function in toplevel script.
(Avoid logging hassle for now)
| Python | bsd-3-clause | desihub/desitarget,desihub/desitarget | import numpy
from desitarget.io import read_tractor, write_targets
from desitarget.cuts import LRG, ELG, BGS, QSO
from desitarget import targetmask
from argparse import ArgumentParser
ap = ArgumentParser()
ap.add_argument("--type", choices=["tractor"], default="tractor", help="Assume a type for src files")
ap.add_ar... | from __future__ import print_function
import numpy
from desitarget.io import read_tractor, write_targets
from desitarget.cuts import LRG, ELG, BGS, QSO
from desitarget import targetmask
from argparse import ArgumentParser
ap = ArgumentParser()
ap.add_argument("--type", choices=["tractor"], default="tractor", help="A... | <commit_before>import numpy
from desitarget.io import read_tractor, write_targets
from desitarget.cuts import LRG, ELG, BGS, QSO
from desitarget import targetmask
from argparse import ArgumentParser
ap = ArgumentParser()
ap.add_argument("--type", choices=["tractor"], default="tractor", help="Assume a type for src fi... | from __future__ import print_function
import numpy
from desitarget.io import read_tractor, write_targets
from desitarget.cuts import LRG, ELG, BGS, QSO
from desitarget import targetmask
from argparse import ArgumentParser
ap = ArgumentParser()
ap.add_argument("--type", choices=["tractor"], default="tractor", help="A... | import numpy
from desitarget.io import read_tractor, write_targets
from desitarget.cuts import LRG, ELG, BGS, QSO
from desitarget import targetmask
from argparse import ArgumentParser
ap = ArgumentParser()
ap.add_argument("--type", choices=["tractor"], default="tractor", help="Assume a type for src files")
ap.add_ar... | <commit_before>import numpy
from desitarget.io import read_tractor, write_targets
from desitarget.cuts import LRG, ELG, BGS, QSO
from desitarget import targetmask
from argparse import ArgumentParser
ap = ArgumentParser()
ap.add_argument("--type", choices=["tractor"], default="tractor", help="Assume a type for src fi... |
75a59409410a8f264e7d56ddd853002ffbb28600 | corehq/tests/noseplugins/patches.py | corehq/tests/noseplugins/patches.py | from nose.plugins import Plugin
from corehq.form_processor.tests.utils import patch_testcase_databases
from corehq.util.es.testing import patch_es_user_signals
from corehq.util.test_utils import patch_foreign_value_caches
class PatchesPlugin(Plugin):
"""Patches various things before tests are run"""
name = "... | from nose.plugins import Plugin
from corehq.form_processor.tests.utils import patch_testcase_databases
from corehq.util.es.testing import patch_es_user_signals
from corehq.util.test_utils import patch_foreign_value_caches
class PatchesPlugin(Plugin):
"""Patches various things before tests are run"""
name = "... | Update freezegun ignore list patch | Update freezegun ignore list patch
As of v1.1.0, freezegun supports configuring the ignore list.
| Python | bsd-3-clause | dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq | from nose.plugins import Plugin
from corehq.form_processor.tests.utils import patch_testcase_databases
from corehq.util.es.testing import patch_es_user_signals
from corehq.util.test_utils import patch_foreign_value_caches
class PatchesPlugin(Plugin):
"""Patches various things before tests are run"""
name = "... | from nose.plugins import Plugin
from corehq.form_processor.tests.utils import patch_testcase_databases
from corehq.util.es.testing import patch_es_user_signals
from corehq.util.test_utils import patch_foreign_value_caches
class PatchesPlugin(Plugin):
"""Patches various things before tests are run"""
name = "... | <commit_before>from nose.plugins import Plugin
from corehq.form_processor.tests.utils import patch_testcase_databases
from corehq.util.es.testing import patch_es_user_signals
from corehq.util.test_utils import patch_foreign_value_caches
class PatchesPlugin(Plugin):
"""Patches various things before tests are run"... | from nose.plugins import Plugin
from corehq.form_processor.tests.utils import patch_testcase_databases
from corehq.util.es.testing import patch_es_user_signals
from corehq.util.test_utils import patch_foreign_value_caches
class PatchesPlugin(Plugin):
"""Patches various things before tests are run"""
name = "... | from nose.plugins import Plugin
from corehq.form_processor.tests.utils import patch_testcase_databases
from corehq.util.es.testing import patch_es_user_signals
from corehq.util.test_utils import patch_foreign_value_caches
class PatchesPlugin(Plugin):
"""Patches various things before tests are run"""
name = "... | <commit_before>from nose.plugins import Plugin
from corehq.form_processor.tests.utils import patch_testcase_databases
from corehq.util.es.testing import patch_es_user_signals
from corehq.util.test_utils import patch_foreign_value_caches
class PatchesPlugin(Plugin):
"""Patches various things before tests are run"... |
9f3cf22575d9d71136bea0282ac0e0420211d9c9 | test/test_util/test_StopWatch.py | test/test_util/test_StopWatch.py | # -*- encoding: utf-8 -*-
"""Created on Dec 16, 2014.
@author: Katharina Eggensperger
@projekt: AutoML2015
"""
from __future__ import print_function
import time
import unittest
from autosklearn.util import StopWatch
class Test(unittest.TestCase):
_multiprocess_can_split_ = True
def test_stopwatch_overhea... | # -*- encoding: utf-8 -*-
"""Created on Dec 16, 2014.
@author: Katharina Eggensperger
@projekt: AutoML2015
"""
from __future__ import print_function
import time
import unittest
from autosklearn.util import StopWatch
class Test(unittest.TestCase):
_multiprocess_can_split_ = True
def test_stopwatch_overhea... | TEST reduce number of iterations for stopwatch test | TEST reduce number of iterations for stopwatch test
| Python | bsd-3-clause | automl/auto-sklearn,automl/auto-sklearn | # -*- encoding: utf-8 -*-
"""Created on Dec 16, 2014.
@author: Katharina Eggensperger
@projekt: AutoML2015
"""
from __future__ import print_function
import time
import unittest
from autosklearn.util import StopWatch
class Test(unittest.TestCase):
_multiprocess_can_split_ = True
def test_stopwatch_overhea... | # -*- encoding: utf-8 -*-
"""Created on Dec 16, 2014.
@author: Katharina Eggensperger
@projekt: AutoML2015
"""
from __future__ import print_function
import time
import unittest
from autosklearn.util import StopWatch
class Test(unittest.TestCase):
_multiprocess_can_split_ = True
def test_stopwatch_overhea... | <commit_before># -*- encoding: utf-8 -*-
"""Created on Dec 16, 2014.
@author: Katharina Eggensperger
@projekt: AutoML2015
"""
from __future__ import print_function
import time
import unittest
from autosklearn.util import StopWatch
class Test(unittest.TestCase):
_multiprocess_can_split_ = True
def test_st... | # -*- encoding: utf-8 -*-
"""Created on Dec 16, 2014.
@author: Katharina Eggensperger
@projekt: AutoML2015
"""
from __future__ import print_function
import time
import unittest
from autosklearn.util import StopWatch
class Test(unittest.TestCase):
_multiprocess_can_split_ = True
def test_stopwatch_overhea... | # -*- encoding: utf-8 -*-
"""Created on Dec 16, 2014.
@author: Katharina Eggensperger
@projekt: AutoML2015
"""
from __future__ import print_function
import time
import unittest
from autosklearn.util import StopWatch
class Test(unittest.TestCase):
_multiprocess_can_split_ = True
def test_stopwatch_overhea... | <commit_before># -*- encoding: utf-8 -*-
"""Created on Dec 16, 2014.
@author: Katharina Eggensperger
@projekt: AutoML2015
"""
from __future__ import print_function
import time
import unittest
from autosklearn.util import StopWatch
class Test(unittest.TestCase):
_multiprocess_can_split_ = True
def test_st... |
29f8aacde96007976b0aa0cde6d6d37b37e517a9 | app/status/views.py | app/status/views.py | from flask import jsonify, current_app
from . import status
from . import utils
from ..main.helpers.service import ServiceLoader
from ..main import main
@status.route('/_status')
def status():
# ServiceLoader is the only thing that actually connects to the API
service_loader = ServiceLoader(
main.co... | from flask import jsonify, current_app
from . import status
from . import utils
from ..main.helpers.service import ServiceLoader
from ..main import main
@status.route('/_status')
def status():
# ServiceLoader is the only thing that actually connects to the API
service_loader = ServiceLoader(
main.co... | Change variable name & int comparison. | Change variable name & int comparison.
| Python | mit | mtekel/digitalmarketplace-admin-frontend,mtekel/digitalmarketplace-admin-frontend,alphagov/digitalmarketplace-admin-frontend,alphagov/digitalmarketplace-admin-frontend,alphagov/digitalmarketplace-admin-frontend,mtekel/digitalmarketplace-admin-frontend,mtekel/digitalmarketplace-admin-frontend,alphagov/digitalmarketplace... | from flask import jsonify, current_app
from . import status
from . import utils
from ..main.helpers.service import ServiceLoader
from ..main import main
@status.route('/_status')
def status():
# ServiceLoader is the only thing that actually connects to the API
service_loader = ServiceLoader(
main.co... | from flask import jsonify, current_app
from . import status
from . import utils
from ..main.helpers.service import ServiceLoader
from ..main import main
@status.route('/_status')
def status():
# ServiceLoader is the only thing that actually connects to the API
service_loader = ServiceLoader(
main.co... | <commit_before>from flask import jsonify, current_app
from . import status
from . import utils
from ..main.helpers.service import ServiceLoader
from ..main import main
@status.route('/_status')
def status():
# ServiceLoader is the only thing that actually connects to the API
service_loader = ServiceLoader(
... | from flask import jsonify, current_app
from . import status
from . import utils
from ..main.helpers.service import ServiceLoader
from ..main import main
@status.route('/_status')
def status():
# ServiceLoader is the only thing that actually connects to the API
service_loader = ServiceLoader(
main.co... | from flask import jsonify, current_app
from . import status
from . import utils
from ..main.helpers.service import ServiceLoader
from ..main import main
@status.route('/_status')
def status():
# ServiceLoader is the only thing that actually connects to the API
service_loader = ServiceLoader(
main.co... | <commit_before>from flask import jsonify, current_app
from . import status
from . import utils
from ..main.helpers.service import ServiceLoader
from ..main import main
@status.route('/_status')
def status():
# ServiceLoader is the only thing that actually connects to the API
service_loader = ServiceLoader(
... |
637f6c09bf3ac558e6e30d748dfb0838e4a3720f | classes/person.py | classes/person.py | class Person(object):
def __init__(self, iden, person_type, person_name, person_surname="", wants_accommodation="N"):
self.person_name = person_name
self.person_surname = person_surname
self.person_type = person_type
self.wants_accommodation = wants_accommodation
self.iden = ... | class Person(object):
def __init__(self, iden, person_type, person_name, person_surname="", wants_accommodation="N"):
self.person_name = person_name
self.person_surname = person_surname
self.person_type = person_type
self.wants_accommodation = wants_accommodation
self.iden = ... | Remove redundant full name method | Remove redundant full name method
| Python | mit | peterpaints/room-allocator | class Person(object):
def __init__(self, iden, person_type, person_name, person_surname="", wants_accommodation="N"):
self.person_name = person_name
self.person_surname = person_surname
self.person_type = person_type
self.wants_accommodation = wants_accommodation
self.iden = ... | class Person(object):
def __init__(self, iden, person_type, person_name, person_surname="", wants_accommodation="N"):
self.person_name = person_name
self.person_surname = person_surname
self.person_type = person_type
self.wants_accommodation = wants_accommodation
self.iden = ... | <commit_before>class Person(object):
def __init__(self, iden, person_type, person_name, person_surname="", wants_accommodation="N"):
self.person_name = person_name
self.person_surname = person_surname
self.person_type = person_type
self.wants_accommodation = wants_accommodation
... | class Person(object):
def __init__(self, iden, person_type, person_name, person_surname="", wants_accommodation="N"):
self.person_name = person_name
self.person_surname = person_surname
self.person_type = person_type
self.wants_accommodation = wants_accommodation
self.iden = ... | class Person(object):
def __init__(self, iden, person_type, person_name, person_surname="", wants_accommodation="N"):
self.person_name = person_name
self.person_surname = person_surname
self.person_type = person_type
self.wants_accommodation = wants_accommodation
self.iden = ... | <commit_before>class Person(object):
def __init__(self, iden, person_type, person_name, person_surname="", wants_accommodation="N"):
self.person_name = person_name
self.person_surname = person_surname
self.person_type = person_type
self.wants_accommodation = wants_accommodation
... |
53f967cf2cb1159e75b4bac267e163cd5a3ba156 | wsgi/openshift/urls.py | wsgi/openshift/urls.py | from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
url(r'^$', 'openshift.views.home', name='home'),
# url(r'^openshift/', include('openshift.foo.urls')),
#... | from django.conf.urls.defaults import patterns, include, url
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
url(r'^$', 'openshift.views.home', name='home'),
# url(r'^openshift/', include('openshift.foo.urls')... | Revert "Change to get Django 1.5 to work." | Revert "Change to get Django 1.5 to work."
This reverts commit 92b9b557eef77f7ea4c05c74c1c229a2b508e640.
It didn't resolve all the problems, and I'm out of time.
| Python | agpl-3.0 | esplinr/foodcheck,esplinr/foodcheck,esplinr/foodcheck,esplinr/foodcheck | from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
url(r'^$', 'openshift.views.home', name='home'),
# url(r'^openshift/', include('openshift.foo.urls')),
#... | from django.conf.urls.defaults import patterns, include, url
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
url(r'^$', 'openshift.views.home', name='home'),
# url(r'^openshift/', include('openshift.foo.urls')... | <commit_before>from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
url(r'^$', 'openshift.views.home', name='home'),
# url(r'^openshift/', include('openshift.foo.... | from django.conf.urls.defaults import patterns, include, url
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
url(r'^$', 'openshift.views.home', name='home'),
# url(r'^openshift/', include('openshift.foo.urls')... | from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
url(r'^$', 'openshift.views.home', name='home'),
# url(r'^openshift/', include('openshift.foo.urls')),
#... | <commit_before>from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
url(r'^$', 'openshift.views.home', name='home'),
# url(r'^openshift/', include('openshift.foo.... |
aa360309f387f19f6566d08325cd1aa1131768da | bulbs/utils/filters.py | bulbs/utils/filters.py | from rest_framework import filters
class CaseInsensitiveBooleanFilter(filters.BaseFilterBackend):
"""Set a boolean_fields tuple on the viewset and set this class as a
filter_backend to filter listed fields through a case-insensitive transformation
to be used for filtering. i.e. query params such as 'true'... | from rest_framework import filters
class CaseInsensitiveBooleanFilter(filters.BaseFilterBackend):
"""Set a boolean_fields tuple on the viewset and set this class as a
filter_backend to filter listed fields through a case-insensitive transformation
to be used for filtering. i.e. query params such as 'true'... | Cover every case for CaseInsensitiveBooleanFilter | Cover every case for CaseInsensitiveBooleanFilter
| Python | mit | pombredanne/django-bulbs,theonion/django-bulbs,theonion/django-bulbs,theonion/django-bulbs,theonion/django-bulbs,theonion/django-bulbs,pombredanne/django-bulbs | from rest_framework import filters
class CaseInsensitiveBooleanFilter(filters.BaseFilterBackend):
"""Set a boolean_fields tuple on the viewset and set this class as a
filter_backend to filter listed fields through a case-insensitive transformation
to be used for filtering. i.e. query params such as 'true'... | from rest_framework import filters
class CaseInsensitiveBooleanFilter(filters.BaseFilterBackend):
"""Set a boolean_fields tuple on the viewset and set this class as a
filter_backend to filter listed fields through a case-insensitive transformation
to be used for filtering. i.e. query params such as 'true'... | <commit_before>from rest_framework import filters
class CaseInsensitiveBooleanFilter(filters.BaseFilterBackend):
"""Set a boolean_fields tuple on the viewset and set this class as a
filter_backend to filter listed fields through a case-insensitive transformation
to be used for filtering. i.e. query params... | from rest_framework import filters
class CaseInsensitiveBooleanFilter(filters.BaseFilterBackend):
"""Set a boolean_fields tuple on the viewset and set this class as a
filter_backend to filter listed fields through a case-insensitive transformation
to be used for filtering. i.e. query params such as 'true'... | from rest_framework import filters
class CaseInsensitiveBooleanFilter(filters.BaseFilterBackend):
"""Set a boolean_fields tuple on the viewset and set this class as a
filter_backend to filter listed fields through a case-insensitive transformation
to be used for filtering. i.e. query params such as 'true'... | <commit_before>from rest_framework import filters
class CaseInsensitiveBooleanFilter(filters.BaseFilterBackend):
"""Set a boolean_fields tuple on the viewset and set this class as a
filter_backend to filter listed fields through a case-insensitive transformation
to be used for filtering. i.e. query params... |
74f915946c346238b6badb7c494cefa356cf6f84 | busineme/core/views.py | busineme/core/views.py | """Busine-me API
Universidade de Brasilia - FGA
Técnicas de Programação, 2/2015
@file views.py
Views (on classic MVC, controllers) with methods that control the requisitions
for the user authentication and manipulation.
"""
from django.views.generic import View
from core.serializers import serialize_objects
from .mode... | """Busine-me API
Universidade de Brasilia - FGA
Técnicas de Programação, 2/2015
@file views.py
Views (on classic MVC, controllers) with methods that control the requisitions
for the user authentication and manipulation.
"""
from django.views.generic import View
from core.serializers import serialize_objects
from .mode... | Change name getbusline name method | Change name getbusline name method
| Python | agpl-3.0 | aldarionsevero/busine.meAPI,aldarionsevero/busine.meAPI | """Busine-me API
Universidade de Brasilia - FGA
Técnicas de Programação, 2/2015
@file views.py
Views (on classic MVC, controllers) with methods that control the requisitions
for the user authentication and manipulation.
"""
from django.views.generic import View
from core.serializers import serialize_objects
from .mode... | """Busine-me API
Universidade de Brasilia - FGA
Técnicas de Programação, 2/2015
@file views.py
Views (on classic MVC, controllers) with methods that control the requisitions
for the user authentication and manipulation.
"""
from django.views.generic import View
from core.serializers import serialize_objects
from .mode... | <commit_before>"""Busine-me API
Universidade de Brasilia - FGA
Técnicas de Programação, 2/2015
@file views.py
Views (on classic MVC, controllers) with methods that control the requisitions
for the user authentication and manipulation.
"""
from django.views.generic import View
from core.serializers import serialize_obj... | """Busine-me API
Universidade de Brasilia - FGA
Técnicas de Programação, 2/2015
@file views.py
Views (on classic MVC, controllers) with methods that control the requisitions
for the user authentication and manipulation.
"""
from django.views.generic import View
from core.serializers import serialize_objects
from .mode... | """Busine-me API
Universidade de Brasilia - FGA
Técnicas de Programação, 2/2015
@file views.py
Views (on classic MVC, controllers) with methods that control the requisitions
for the user authentication and manipulation.
"""
from django.views.generic import View
from core.serializers import serialize_objects
from .mode... | <commit_before>"""Busine-me API
Universidade de Brasilia - FGA
Técnicas de Programação, 2/2015
@file views.py
Views (on classic MVC, controllers) with methods that control the requisitions
for the user authentication and manipulation.
"""
from django.views.generic import View
from core.serializers import serialize_obj... |
72bbd1a5e356b57842b07aa3a58d1e314228091d | tests/pytests/unit/pillar/test_pillar.py | tests/pytests/unit/pillar/test_pillar.py | import pytest
import salt.loader
import salt.pillar
from salt.utils.odict import OrderedDict
@pytest.mark.parametrize(
"envs",
(
["a", "b", "c"],
["c", "b", "a"],
["b", "a", "c"],
),
)
def test_pillar_envs_order(envs, temp_salt_minion, tmp_path):
opts = temp_salt_minion.config.... | import pytest
import salt.loader
import salt.pillar
from salt.utils.odict import OrderedDict
@pytest.mark.parametrize(
"envs",
(
["a", "b", "c"],
["c", "b", "a"],
["b", "a", "c"],
),
)
def test_pillar_envs_order(envs, temp_salt_minion, tmp_path):
opts = temp_salt_minion.config.... | Add testcase written by @waynew | Add testcase written by @waynew
| Python | apache-2.0 | saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt | import pytest
import salt.loader
import salt.pillar
from salt.utils.odict import OrderedDict
@pytest.mark.parametrize(
"envs",
(
["a", "b", "c"],
["c", "b", "a"],
["b", "a", "c"],
),
)
def test_pillar_envs_order(envs, temp_salt_minion, tmp_path):
opts = temp_salt_minion.config.... | import pytest
import salt.loader
import salt.pillar
from salt.utils.odict import OrderedDict
@pytest.mark.parametrize(
"envs",
(
["a", "b", "c"],
["c", "b", "a"],
["b", "a", "c"],
),
)
def test_pillar_envs_order(envs, temp_salt_minion, tmp_path):
opts = temp_salt_minion.config.... | <commit_before>import pytest
import salt.loader
import salt.pillar
from salt.utils.odict import OrderedDict
@pytest.mark.parametrize(
"envs",
(
["a", "b", "c"],
["c", "b", "a"],
["b", "a", "c"],
),
)
def test_pillar_envs_order(envs, temp_salt_minion, tmp_path):
opts = temp_salt... | import pytest
import salt.loader
import salt.pillar
from salt.utils.odict import OrderedDict
@pytest.mark.parametrize(
"envs",
(
["a", "b", "c"],
["c", "b", "a"],
["b", "a", "c"],
),
)
def test_pillar_envs_order(envs, temp_salt_minion, tmp_path):
opts = temp_salt_minion.config.... | import pytest
import salt.loader
import salt.pillar
from salt.utils.odict import OrderedDict
@pytest.mark.parametrize(
"envs",
(
["a", "b", "c"],
["c", "b", "a"],
["b", "a", "c"],
),
)
def test_pillar_envs_order(envs, temp_salt_minion, tmp_path):
opts = temp_salt_minion.config.... | <commit_before>import pytest
import salt.loader
import salt.pillar
from salt.utils.odict import OrderedDict
@pytest.mark.parametrize(
"envs",
(
["a", "b", "c"],
["c", "b", "a"],
["b", "a", "c"],
),
)
def test_pillar_envs_order(envs, temp_salt_minion, tmp_path):
opts = temp_salt... |
1f0195c1d1695119287e3693360ec44564ed0a09 | app/main/views/sub_navigation_dictionaries.py | app/main/views/sub_navigation_dictionaries.py | def features_nav():
return [
{
"name": "Features",
"link": "main.features",
"sub_navigation_items": [
{
"name": "Emails",
"link": "main.features_email",
},
{
"name"... | def features_nav():
return [
{
"name": "Features",
"link": "main.features",
"sub_navigation_items": [
{
"name": "Emails",
"link": "main.features_email",
},
{
"name"... | Remove ‘using notify’ from nav (it’s a redirect now) | Remove ‘using notify’ from nav (it’s a redirect now)
| Python | mit | alphagov/notifications-admin,alphagov/notifications-admin,alphagov/notifications-admin,alphagov/notifications-admin | def features_nav():
return [
{
"name": "Features",
"link": "main.features",
"sub_navigation_items": [
{
"name": "Emails",
"link": "main.features_email",
},
{
"name"... | def features_nav():
return [
{
"name": "Features",
"link": "main.features",
"sub_navigation_items": [
{
"name": "Emails",
"link": "main.features_email",
},
{
"name"... | <commit_before>def features_nav():
return [
{
"name": "Features",
"link": "main.features",
"sub_navigation_items": [
{
"name": "Emails",
"link": "main.features_email",
},
{
... | def features_nav():
return [
{
"name": "Features",
"link": "main.features",
"sub_navigation_items": [
{
"name": "Emails",
"link": "main.features_email",
},
{
"name"... | def features_nav():
return [
{
"name": "Features",
"link": "main.features",
"sub_navigation_items": [
{
"name": "Emails",
"link": "main.features_email",
},
{
"name"... | <commit_before>def features_nav():
return [
{
"name": "Features",
"link": "main.features",
"sub_navigation_items": [
{
"name": "Emails",
"link": "main.features_email",
},
{
... |
d06d65cea4ae9efa547af43a551e24a459e0627e | tbmodels/_legacy_decode.py | tbmodels/_legacy_decode.py | from ._tb_model import Model
def _decode(hf):
if 'tb_model' in hf or 'hop' in hf:
return _decode_model(hf)
elif 'val' in hf:
return _decode_val(hf)
elif '0' in hf:
return _decode_iterable(hf)
else:
raise ValueError('File structure not understood.')
def _decode_iterabl... | """
Defines decoding for the legacy (pre fsc.hdf5-io) HDF5 format.
"""
from ._tb_model import Model
def _decode(hdf5_handle):
"""
Decode the object at the given HDF5 node.
"""
if 'tb_model' in hdf5_handle or 'hop' in hdf5_handle:
return _decode_model(hdf5_handle)
elif 'val' in hdf5_handle... | Fix pylint issues in legacy_decode. | Fix pylint issues in legacy_decode.
| Python | apache-2.0 | Z2PackDev/TBmodels,Z2PackDev/TBmodels | from ._tb_model import Model
def _decode(hf):
if 'tb_model' in hf or 'hop' in hf:
return _decode_model(hf)
elif 'val' in hf:
return _decode_val(hf)
elif '0' in hf:
return _decode_iterable(hf)
else:
raise ValueError('File structure not understood.')
def _decode_iterabl... | """
Defines decoding for the legacy (pre fsc.hdf5-io) HDF5 format.
"""
from ._tb_model import Model
def _decode(hdf5_handle):
"""
Decode the object at the given HDF5 node.
"""
if 'tb_model' in hdf5_handle or 'hop' in hdf5_handle:
return _decode_model(hdf5_handle)
elif 'val' in hdf5_handle... | <commit_before>from ._tb_model import Model
def _decode(hf):
if 'tb_model' in hf or 'hop' in hf:
return _decode_model(hf)
elif 'val' in hf:
return _decode_val(hf)
elif '0' in hf:
return _decode_iterable(hf)
else:
raise ValueError('File structure not understood.')
def ... | """
Defines decoding for the legacy (pre fsc.hdf5-io) HDF5 format.
"""
from ._tb_model import Model
def _decode(hdf5_handle):
"""
Decode the object at the given HDF5 node.
"""
if 'tb_model' in hdf5_handle or 'hop' in hdf5_handle:
return _decode_model(hdf5_handle)
elif 'val' in hdf5_handle... | from ._tb_model import Model
def _decode(hf):
if 'tb_model' in hf or 'hop' in hf:
return _decode_model(hf)
elif 'val' in hf:
return _decode_val(hf)
elif '0' in hf:
return _decode_iterable(hf)
else:
raise ValueError('File structure not understood.')
def _decode_iterabl... | <commit_before>from ._tb_model import Model
def _decode(hf):
if 'tb_model' in hf or 'hop' in hf:
return _decode_model(hf)
elif 'val' in hf:
return _decode_val(hf)
elif '0' in hf:
return _decode_iterable(hf)
else:
raise ValueError('File structure not understood.')
def ... |
3a312dc4134d28d8c8fb0020444a1bbf1277a4cb | lib/automatic_timestamps/models.py | lib/automatic_timestamps/models.py | from django.db import models
import datetime
class TimestampModel(models.Model):
"""
Extend the default Django model to add timestamps to all objects.
"""
class Meta:
abstract = True
# Timestamps!
created_at = models.DateTimeField()
updated_at = models.DateTimeField()
... | from django.db import models
import datetime
class TimestampModel(models.Model):
"""
Extend the default Django model to add timestamps to all objects.
"""
class Meta:
abstract = True
# Timestamps!
created_at = models.DateTimeField()
updated_at = models.DateTimeField()
... | Add *args/**kwargs to save() as per the Django docs | Add *args/**kwargs to save() as per the Django docs
| Python | mit | tofumatt/quotes,tofumatt/quotes | from django.db import models
import datetime
class TimestampModel(models.Model):
"""
Extend the default Django model to add timestamps to all objects.
"""
class Meta:
abstract = True
# Timestamps!
created_at = models.DateTimeField()
updated_at = models.DateTimeField()
... | from django.db import models
import datetime
class TimestampModel(models.Model):
"""
Extend the default Django model to add timestamps to all objects.
"""
class Meta:
abstract = True
# Timestamps!
created_at = models.DateTimeField()
updated_at = models.DateTimeField()
... | <commit_before>from django.db import models
import datetime
class TimestampModel(models.Model):
"""
Extend the default Django model to add timestamps to all objects.
"""
class Meta:
abstract = True
# Timestamps!
created_at = models.DateTimeField()
updated_at = models.Dat... | from django.db import models
import datetime
class TimestampModel(models.Model):
"""
Extend the default Django model to add timestamps to all objects.
"""
class Meta:
abstract = True
# Timestamps!
created_at = models.DateTimeField()
updated_at = models.DateTimeField()
... | from django.db import models
import datetime
class TimestampModel(models.Model):
"""
Extend the default Django model to add timestamps to all objects.
"""
class Meta:
abstract = True
# Timestamps!
created_at = models.DateTimeField()
updated_at = models.DateTimeField()
... | <commit_before>from django.db import models
import datetime
class TimestampModel(models.Model):
"""
Extend the default Django model to add timestamps to all objects.
"""
class Meta:
abstract = True
# Timestamps!
created_at = models.DateTimeField()
updated_at = models.Dat... |
4db2d879cb8ee7d8ddd1543e6aed50f40e44ca66 | src/pi/scanning_proxy.py | src/pi/scanning_proxy.py | """Philips hue proxy code."""
import abc
import logging
import sys
import threading
from pi import proxy
class ScanningProxy(proxy.Proxy):
"""A proxy object with a background scan thread."""
__metaclass__ = abc.ABCMeta
def __init__(self, refresh_period):
self._refresh_period = refresh_period
self._... | """Philips hue proxy code."""
import abc
import logging
import sys
import threading
from pi import proxy
class ScanningProxy(proxy.Proxy):
"""A proxy object with a background scan thread."""
__metaclass__ = abc.ABCMeta
def __init__(self, refresh_period):
self._refresh_period = refresh_period
self._... | Fix race on exit in scanning proxy. | Fix race on exit in scanning proxy.
| Python | mit | tomwilkie/awesomation,tomwilkie/awesomation,tomwilkie/awesomation,tomwilkie/awesomation,tomwilkie/awesomation | """Philips hue proxy code."""
import abc
import logging
import sys
import threading
from pi import proxy
class ScanningProxy(proxy.Proxy):
"""A proxy object with a background scan thread."""
__metaclass__ = abc.ABCMeta
def __init__(self, refresh_period):
self._refresh_period = refresh_period
self._... | """Philips hue proxy code."""
import abc
import logging
import sys
import threading
from pi import proxy
class ScanningProxy(proxy.Proxy):
"""A proxy object with a background scan thread."""
__metaclass__ = abc.ABCMeta
def __init__(self, refresh_period):
self._refresh_period = refresh_period
self._... | <commit_before>"""Philips hue proxy code."""
import abc
import logging
import sys
import threading
from pi import proxy
class ScanningProxy(proxy.Proxy):
"""A proxy object with a background scan thread."""
__metaclass__ = abc.ABCMeta
def __init__(self, refresh_period):
self._refresh_period = refresh_per... | """Philips hue proxy code."""
import abc
import logging
import sys
import threading
from pi import proxy
class ScanningProxy(proxy.Proxy):
"""A proxy object with a background scan thread."""
__metaclass__ = abc.ABCMeta
def __init__(self, refresh_period):
self._refresh_period = refresh_period
self._... | """Philips hue proxy code."""
import abc
import logging
import sys
import threading
from pi import proxy
class ScanningProxy(proxy.Proxy):
"""A proxy object with a background scan thread."""
__metaclass__ = abc.ABCMeta
def __init__(self, refresh_period):
self._refresh_period = refresh_period
self._... | <commit_before>"""Philips hue proxy code."""
import abc
import logging
import sys
import threading
from pi import proxy
class ScanningProxy(proxy.Proxy):
"""A proxy object with a background scan thread."""
__metaclass__ = abc.ABCMeta
def __init__(self, refresh_period):
self._refresh_period = refresh_per... |
058a3e918cccde7dcace79df2b257bd29277bcd0 | tests/builtins/test_abs.py | tests/builtins/test_abs.py | from .. utils import TranspileTestCase, BuiltinFunctionTestCase
class AbsTests(TranspileTestCase):
pass
class BuiltinAbsFunctionTests(BuiltinFunctionTestCase, TranspileTestCase):
functions = ["abs"]
not_implemented = [
'test_bool',
'test_bytearray',
'test_bytes',
'test_c... | from unittest import expectedFailure
from .. utils import TranspileTestCase, BuiltinFunctionTestCase
class AbsTests(TranspileTestCase):
@expectedFailure
def test_abs_not_implemented(self):
self.assertCodeExecution("""
class NotAbsLike:
pass
x = NotAbsLike()
... | Add failing test for builtin abs() on objects without __abs__() | Add failing test for builtin abs() on objects without __abs__()
| Python | bsd-3-clause | pombredanne/voc,ASP1234/voc,freakboy3742/voc,gEt-rIgHt-jR/voc,cflee/voc,cflee/voc,Felix5721/voc,glasnt/voc,glasnt/voc,pombredanne/voc,freakboy3742/voc,gEt-rIgHt-jR/voc,ASP1234/voc,Felix5721/voc | from .. utils import TranspileTestCase, BuiltinFunctionTestCase
class AbsTests(TranspileTestCase):
pass
class BuiltinAbsFunctionTests(BuiltinFunctionTestCase, TranspileTestCase):
functions = ["abs"]
not_implemented = [
'test_bool',
'test_bytearray',
'test_bytes',
'test_c... | from unittest import expectedFailure
from .. utils import TranspileTestCase, BuiltinFunctionTestCase
class AbsTests(TranspileTestCase):
@expectedFailure
def test_abs_not_implemented(self):
self.assertCodeExecution("""
class NotAbsLike:
pass
x = NotAbsLike()
... | <commit_before>from .. utils import TranspileTestCase, BuiltinFunctionTestCase
class AbsTests(TranspileTestCase):
pass
class BuiltinAbsFunctionTests(BuiltinFunctionTestCase, TranspileTestCase):
functions = ["abs"]
not_implemented = [
'test_bool',
'test_bytearray',
'test_bytes',
... | from unittest import expectedFailure
from .. utils import TranspileTestCase, BuiltinFunctionTestCase
class AbsTests(TranspileTestCase):
@expectedFailure
def test_abs_not_implemented(self):
self.assertCodeExecution("""
class NotAbsLike:
pass
x = NotAbsLike()
... | from .. utils import TranspileTestCase, BuiltinFunctionTestCase
class AbsTests(TranspileTestCase):
pass
class BuiltinAbsFunctionTests(BuiltinFunctionTestCase, TranspileTestCase):
functions = ["abs"]
not_implemented = [
'test_bool',
'test_bytearray',
'test_bytes',
'test_c... | <commit_before>from .. utils import TranspileTestCase, BuiltinFunctionTestCase
class AbsTests(TranspileTestCase):
pass
class BuiltinAbsFunctionTests(BuiltinFunctionTestCase, TranspileTestCase):
functions = ["abs"]
not_implemented = [
'test_bool',
'test_bytearray',
'test_bytes',
... |
bc4fb65f76aa011e44bbe01b7965bc99eff5d85e | tests/test_recalcitrant.py | tests/test_recalcitrant.py | "Test for recalcitrant and obtuse graphs to describe"
from wordgraph.points import Point
import wordgraph
import random
from utilities import EPOCH_START, time_values
def test_time_goes_backwards():
"A valid time series where time changes linearly backwards"
values = [1.0] * 10
times = (EPOCH_START-i for... | "Test for recalcitrant and obtuse graphs to describe"
from wordgraph.points import Point
import wordgraph
import random
import pytest
from utilities import EPOCH_START, time_values
def test_time_goes_backwards():
"A valid time series where time changes linearly backwards"
values = [1.0] * 10
times = (EPO... | Test expected failures of the anlayzer | Test expected failures of the anlayzer
The analyzer is not expected to cope with too few data points for time
series with greatly varying time ranges. It should raise an exception in
these cases.
| Python | apache-2.0 | tleeuwenburg/wordgraph,tleeuwenburg/wordgraph | "Test for recalcitrant and obtuse graphs to describe"
from wordgraph.points import Point
import wordgraph
import random
from utilities import EPOCH_START, time_values
def test_time_goes_backwards():
"A valid time series where time changes linearly backwards"
values = [1.0] * 10
times = (EPOCH_START-i for... | "Test for recalcitrant and obtuse graphs to describe"
from wordgraph.points import Point
import wordgraph
import random
import pytest
from utilities import EPOCH_START, time_values
def test_time_goes_backwards():
"A valid time series where time changes linearly backwards"
values = [1.0] * 10
times = (EPO... | <commit_before>"Test for recalcitrant and obtuse graphs to describe"
from wordgraph.points import Point
import wordgraph
import random
from utilities import EPOCH_START, time_values
def test_time_goes_backwards():
"A valid time series where time changes linearly backwards"
values = [1.0] * 10
times = (EP... | "Test for recalcitrant and obtuse graphs to describe"
from wordgraph.points import Point
import wordgraph
import random
import pytest
from utilities import EPOCH_START, time_values
def test_time_goes_backwards():
"A valid time series where time changes linearly backwards"
values = [1.0] * 10
times = (EPO... | "Test for recalcitrant and obtuse graphs to describe"
from wordgraph.points import Point
import wordgraph
import random
from utilities import EPOCH_START, time_values
def test_time_goes_backwards():
"A valid time series where time changes linearly backwards"
values = [1.0] * 10
times = (EPOCH_START-i for... | <commit_before>"Test for recalcitrant and obtuse graphs to describe"
from wordgraph.points import Point
import wordgraph
import random
from utilities import EPOCH_START, time_values
def test_time_goes_backwards():
"A valid time series where time changes linearly backwards"
values = [1.0] * 10
times = (EP... |
e562223cd45c89b9ce4d5a70ef4f4ad5daea968b | deflect/urls.py | deflect/urls.py | from django.conf.urls import patterns
from django.conf.urls import url
from .views import redirect
urlpatterns = patterns('',
url(r'^(?P<key>[a-zA-Z0-9]+)$', redirect, name='deflect-redirect'),
)
| from django.conf.urls import patterns
from django.conf.urls import url
from .views import redirect
urlpatterns = patterns('',
url(r'^(?P<key>[a-zA-Z0-9-]+)$', redirect, name='deflect-redirect'),
)
| Allow dashes in URL path regexp | Allow dashes in URL path regexp
| Python | bsd-3-clause | jbittel/django-deflect | from django.conf.urls import patterns
from django.conf.urls import url
from .views import redirect
urlpatterns = patterns('',
url(r'^(?P<key>[a-zA-Z0-9]+)$', redirect, name='deflect-redirect'),
)
Allow dashes in URL path regexp | from django.conf.urls import patterns
from django.conf.urls import url
from .views import redirect
urlpatterns = patterns('',
url(r'^(?P<key>[a-zA-Z0-9-]+)$', redirect, name='deflect-redirect'),
)
| <commit_before>from django.conf.urls import patterns
from django.conf.urls import url
from .views import redirect
urlpatterns = patterns('',
url(r'^(?P<key>[a-zA-Z0-9]+)$', redirect, name='deflect-redirect'),
)
<commit_msg>Allow dashes in URL path regexp<commit_after> | from django.conf.urls import patterns
from django.conf.urls import url
from .views import redirect
urlpatterns = patterns('',
url(r'^(?P<key>[a-zA-Z0-9-]+)$', redirect, name='deflect-redirect'),
)
| from django.conf.urls import patterns
from django.conf.urls import url
from .views import redirect
urlpatterns = patterns('',
url(r'^(?P<key>[a-zA-Z0-9]+)$', redirect, name='deflect-redirect'),
)
Allow dashes in URL path regexpfrom django.conf.urls import patterns
from django.conf.urls import url
from .views im... | <commit_before>from django.conf.urls import patterns
from django.conf.urls import url
from .views import redirect
urlpatterns = patterns('',
url(r'^(?P<key>[a-zA-Z0-9]+)$', redirect, name='deflect-redirect'),
)
<commit_msg>Allow dashes in URL path regexp<commit_after>from django.conf.urls import patterns
from dj... |
48da1258ddaa7b8c740eba67fc82edb11b163b64 | server_env_ebill_paynet/__manifest__.py | server_env_ebill_paynet/__manifest__.py | # Copyright 2020 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
{
"name": "Server environment for Ebill Paynet",
"version": "13.0.1.0.0",
"author": "Camptocamp,Odoo Community Association (OCA)",
"license": "AGPL-3",
"category": "Tools",
"depends": ["server_env... | # Copyright 2020 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
{
"name": "Server environment for Ebill Paynet",
"version": "13.0.1.0.0",
"author": "Camptocamp,Odoo Community Association (OCA)",
"license": "AGPL-3",
"category": "Tools",
"depends": ["server_env... | Fix linting and add info in roadmap | Fix linting and add info in roadmap
| Python | agpl-3.0 | OCA/l10n-switzerland,OCA/l10n-switzerland | # Copyright 2020 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
{
"name": "Server environment for Ebill Paynet",
"version": "13.0.1.0.0",
"author": "Camptocamp,Odoo Community Association (OCA)",
"license": "AGPL-3",
"category": "Tools",
"depends": ["server_env... | # Copyright 2020 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
{
"name": "Server environment for Ebill Paynet",
"version": "13.0.1.0.0",
"author": "Camptocamp,Odoo Community Association (OCA)",
"license": "AGPL-3",
"category": "Tools",
"depends": ["server_env... | <commit_before># Copyright 2020 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
{
"name": "Server environment for Ebill Paynet",
"version": "13.0.1.0.0",
"author": "Camptocamp,Odoo Community Association (OCA)",
"license": "AGPL-3",
"category": "Tools",
"depends... | # Copyright 2020 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
{
"name": "Server environment for Ebill Paynet",
"version": "13.0.1.0.0",
"author": "Camptocamp,Odoo Community Association (OCA)",
"license": "AGPL-3",
"category": "Tools",
"depends": ["server_env... | # Copyright 2020 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
{
"name": "Server environment for Ebill Paynet",
"version": "13.0.1.0.0",
"author": "Camptocamp,Odoo Community Association (OCA)",
"license": "AGPL-3",
"category": "Tools",
"depends": ["server_env... | <commit_before># Copyright 2020 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
{
"name": "Server environment for Ebill Paynet",
"version": "13.0.1.0.0",
"author": "Camptocamp,Odoo Community Association (OCA)",
"license": "AGPL-3",
"category": "Tools",
"depends... |
c70a409c7717fa62517b69f8a5f20f10d5325751 | test/common/memcached_workload_common.py | test/common/memcached_workload_common.py | # This is a (hopefully temporary) shim that uses the rdb protocol to
# implement part of the memcache API
import contextlib
import rdb_workload_common
@contextlib.contextmanager
def make_memcache_connection(opts):
with rdb_workload_common.make_table_and_connection(opts) as (table, conn):
yield MemcacheRdb... | # This is a (hopefully temporary) shim that uses the rdb protocol to
# implement part of the memcache API
import contextlib
import rdb_workload_common
@contextlib.contextmanager
def make_memcache_connection(opts):
with rdb_workload_common.make_table_and_connection(opts) as (table, conn):
yield MemcacheRdb... | Replace upsert=True with conflict='replace' in tests | Replace upsert=True with conflict='replace' in tests
Review 1804 by @gchpaco
Related to #2733
| Python | apache-2.0 | jesseditson/rethinkdb,lenstr/rethinkdb,gdi2290/rethinkdb,grandquista/rethinkdb,catroot/rethinkdb,bpradipt/rethinkdb,gavioto/rethinkdb,jesseditson/rethinkdb,sbusso/rethinkdb,sontek/rethinkdb,bchavez/rethinkdb,wujf/rethinkdb,greyhwndz/rethinkdb,Qinusty/rethinkdb,gdi2290/rethinkdb,urandu/rethinkdb,jmptrader/rethinkdb,bcha... | # This is a (hopefully temporary) shim that uses the rdb protocol to
# implement part of the memcache API
import contextlib
import rdb_workload_common
@contextlib.contextmanager
def make_memcache_connection(opts):
with rdb_workload_common.make_table_and_connection(opts) as (table, conn):
yield MemcacheRdb... | # This is a (hopefully temporary) shim that uses the rdb protocol to
# implement part of the memcache API
import contextlib
import rdb_workload_common
@contextlib.contextmanager
def make_memcache_connection(opts):
with rdb_workload_common.make_table_and_connection(opts) as (table, conn):
yield MemcacheRdb... | <commit_before># This is a (hopefully temporary) shim that uses the rdb protocol to
# implement part of the memcache API
import contextlib
import rdb_workload_common
@contextlib.contextmanager
def make_memcache_connection(opts):
with rdb_workload_common.make_table_and_connection(opts) as (table, conn):
yi... | # This is a (hopefully temporary) shim that uses the rdb protocol to
# implement part of the memcache API
import contextlib
import rdb_workload_common
@contextlib.contextmanager
def make_memcache_connection(opts):
with rdb_workload_common.make_table_and_connection(opts) as (table, conn):
yield MemcacheRdb... | # This is a (hopefully temporary) shim that uses the rdb protocol to
# implement part of the memcache API
import contextlib
import rdb_workload_common
@contextlib.contextmanager
def make_memcache_connection(opts):
with rdb_workload_common.make_table_and_connection(opts) as (table, conn):
yield MemcacheRdb... | <commit_before># This is a (hopefully temporary) shim that uses the rdb protocol to
# implement part of the memcache API
import contextlib
import rdb_workload_common
@contextlib.contextmanager
def make_memcache_connection(opts):
with rdb_workload_common.make_table_and_connection(opts) as (table, conn):
yi... |
db30a8044f790dec8dd18255786d39e31021c7df | imbox/utils.py | imbox/utils.py | import logging
logger = logging.getLogger(__name__)
def str_encode(value='', encoding=None, errors='strict'):
logger.debug("Encode str {} with and errors {}".format(value, encoding, errors))
return str(value, encoding, errors)
def str_decode(value='', encoding=None, errors='strict'):
if isinstance(value... | import logging
logger = logging.getLogger(__name__)
def str_encode(value='', encoding=None, errors='strict'):
logger.debug("Encode str {value} with encoding {encoding} and errors {errors}".format(
value=value,
encoding=encoding,
errors=errors))
return str(value, encoding, errors)
def... | Add a forgotten parameter in a log line | Add a forgotten parameter in a log line
| Python | mit | martinrusev/imbox | import logging
logger = logging.getLogger(__name__)
def str_encode(value='', encoding=None, errors='strict'):
logger.debug("Encode str {} with and errors {}".format(value, encoding, errors))
return str(value, encoding, errors)
def str_decode(value='', encoding=None, errors='strict'):
if isinstance(value... | import logging
logger = logging.getLogger(__name__)
def str_encode(value='', encoding=None, errors='strict'):
logger.debug("Encode str {value} with encoding {encoding} and errors {errors}".format(
value=value,
encoding=encoding,
errors=errors))
return str(value, encoding, errors)
def... | <commit_before>import logging
logger = logging.getLogger(__name__)
def str_encode(value='', encoding=None, errors='strict'):
logger.debug("Encode str {} with and errors {}".format(value, encoding, errors))
return str(value, encoding, errors)
def str_decode(value='', encoding=None, errors='strict'):
if i... | import logging
logger = logging.getLogger(__name__)
def str_encode(value='', encoding=None, errors='strict'):
logger.debug("Encode str {value} with encoding {encoding} and errors {errors}".format(
value=value,
encoding=encoding,
errors=errors))
return str(value, encoding, errors)
def... | import logging
logger = logging.getLogger(__name__)
def str_encode(value='', encoding=None, errors='strict'):
logger.debug("Encode str {} with and errors {}".format(value, encoding, errors))
return str(value, encoding, errors)
def str_decode(value='', encoding=None, errors='strict'):
if isinstance(value... | <commit_before>import logging
logger = logging.getLogger(__name__)
def str_encode(value='', encoding=None, errors='strict'):
logger.debug("Encode str {} with and errors {}".format(value, encoding, errors))
return str(value, encoding, errors)
def str_decode(value='', encoding=None, errors='strict'):
if i... |
440295122eec2a73012c6cb6c75ba384cc25b17b | formapi/calls.py | formapi/calls.py | from django.forms import forms
class APICall(forms.Form):
def __init__(self, api_key=None, *args, **kwargs):
super(APICall, self).__init__(*args, **kwargs)
self.api_key = api_key
def add_error(self, error_msg):
errors = self.non_field_errors()
errors.append(error_msg)
... | # coding=utf-8
from django.forms import forms
class APICall(forms.Form):
def __init__(self, api_key=None, *args, **kwargs):
super(APICall, self).__init__(*args, **kwargs)
self.api_key = api_key
def add_error(self, error_msg, field_name=forms.NON_FIELD_ERRORS):
# TODO: with Django mas... | Allow adding error message for specified field | Allow adding error message for specified field | Python | mit | 5monkeys/django-formapi,andreif/django-formapi,andreif/django-formapi,5monkeys/django-formapi | from django.forms import forms
class APICall(forms.Form):
def __init__(self, api_key=None, *args, **kwargs):
super(APICall, self).__init__(*args, **kwargs)
self.api_key = api_key
def add_error(self, error_msg):
errors = self.non_field_errors()
errors.append(error_msg)
... | # coding=utf-8
from django.forms import forms
class APICall(forms.Form):
def __init__(self, api_key=None, *args, **kwargs):
super(APICall, self).__init__(*args, **kwargs)
self.api_key = api_key
def add_error(self, error_msg, field_name=forms.NON_FIELD_ERRORS):
# TODO: with Django mas... | <commit_before>from django.forms import forms
class APICall(forms.Form):
def __init__(self, api_key=None, *args, **kwargs):
super(APICall, self).__init__(*args, **kwargs)
self.api_key = api_key
def add_error(self, error_msg):
errors = self.non_field_errors()
errors.append(err... | # coding=utf-8
from django.forms import forms
class APICall(forms.Form):
def __init__(self, api_key=None, *args, **kwargs):
super(APICall, self).__init__(*args, **kwargs)
self.api_key = api_key
def add_error(self, error_msg, field_name=forms.NON_FIELD_ERRORS):
# TODO: with Django mas... | from django.forms import forms
class APICall(forms.Form):
def __init__(self, api_key=None, *args, **kwargs):
super(APICall, self).__init__(*args, **kwargs)
self.api_key = api_key
def add_error(self, error_msg):
errors = self.non_field_errors()
errors.append(error_msg)
... | <commit_before>from django.forms import forms
class APICall(forms.Form):
def __init__(self, api_key=None, *args, **kwargs):
super(APICall, self).__init__(*args, **kwargs)
self.api_key = api_key
def add_error(self, error_msg):
errors = self.non_field_errors()
errors.append(err... |
5b600e32a05d041facd64db79ea91e928d37f300 | tests/test_postgres_processor.py | tests/test_postgres_processor.py | import pytest
# from sqlalchemy import create_engine
# from sqlalchemy.orm import sessionmaker
from scrapi.linter.document import NormalizedDocument, RawDocument
from scrapi.processing.postgres import PostgresProcessor, Document
from . import utils
test_db = PostgresProcessor()
NORMALIZED = NormalizedDocument(uti... | import pytest
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "api.api.settings")
from . import utils
from scrapi.linter.document import NormalizedDocument, RawDocument
from scrapi.processing.postgres import PostgresProcessor, Document
test_db = PostgresProcessor()
NORMALIZED = NormalizedDocument(utils.RE... | Use newly configured conftest in postgres processor test | Use newly configured conftest in postgres processor test
| Python | apache-2.0 | fabianvf/scrapi,felliott/scrapi,mehanig/scrapi,erinspace/scrapi,erinspace/scrapi,CenterForOpenScience/scrapi,CenterForOpenScience/scrapi,mehanig/scrapi,fabianvf/scrapi,felliott/scrapi | import pytest
# from sqlalchemy import create_engine
# from sqlalchemy.orm import sessionmaker
from scrapi.linter.document import NormalizedDocument, RawDocument
from scrapi.processing.postgres import PostgresProcessor, Document
from . import utils
test_db = PostgresProcessor()
NORMALIZED = NormalizedDocument(uti... | import pytest
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "api.api.settings")
from . import utils
from scrapi.linter.document import NormalizedDocument, RawDocument
from scrapi.processing.postgres import PostgresProcessor, Document
test_db = PostgresProcessor()
NORMALIZED = NormalizedDocument(utils.RE... | <commit_before>import pytest
# from sqlalchemy import create_engine
# from sqlalchemy.orm import sessionmaker
from scrapi.linter.document import NormalizedDocument, RawDocument
from scrapi.processing.postgres import PostgresProcessor, Document
from . import utils
test_db = PostgresProcessor()
NORMALIZED = Normali... | import pytest
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "api.api.settings")
from . import utils
from scrapi.linter.document import NormalizedDocument, RawDocument
from scrapi.processing.postgres import PostgresProcessor, Document
test_db = PostgresProcessor()
NORMALIZED = NormalizedDocument(utils.RE... | import pytest
# from sqlalchemy import create_engine
# from sqlalchemy.orm import sessionmaker
from scrapi.linter.document import NormalizedDocument, RawDocument
from scrapi.processing.postgres import PostgresProcessor, Document
from . import utils
test_db = PostgresProcessor()
NORMALIZED = NormalizedDocument(uti... | <commit_before>import pytest
# from sqlalchemy import create_engine
# from sqlalchemy.orm import sessionmaker
from scrapi.linter.document import NormalizedDocument, RawDocument
from scrapi.processing.postgres import PostgresProcessor, Document
from . import utils
test_db = PostgresProcessor()
NORMALIZED = Normali... |
73154aa2498b6826612fae3b287c528e3406bec4 | jacquard/service/commands.py | jacquard/service/commands.py | """Command-line utilities for HTTP service subsystem."""
import werkzeug.debug
import werkzeug.serving
from jacquard.commands import BaseCommand
from jacquard.service import get_wsgi_app
class RunServer(BaseCommand):
"""
Run a debug server.
**This is for debug, local use only, not production.**
Th... | """Command-line utilities for HTTP service subsystem."""
import werkzeug.debug
import werkzeug.serving
from jacquard.commands import BaseCommand
from jacquard.service import get_wsgi_app
class RunServer(BaseCommand):
"""
Run a debug server.
**This is for debug, local use only, not production.**
Th... | Mark runserver as a plumbing command | Mark runserver as a plumbing command
| Python | mit | prophile/jacquard,prophile/jacquard | """Command-line utilities for HTTP service subsystem."""
import werkzeug.debug
import werkzeug.serving
from jacquard.commands import BaseCommand
from jacquard.service import get_wsgi_app
class RunServer(BaseCommand):
"""
Run a debug server.
**This is for debug, local use only, not production.**
Th... | """Command-line utilities for HTTP service subsystem."""
import werkzeug.debug
import werkzeug.serving
from jacquard.commands import BaseCommand
from jacquard.service import get_wsgi_app
class RunServer(BaseCommand):
"""
Run a debug server.
**This is for debug, local use only, not production.**
Th... | <commit_before>"""Command-line utilities for HTTP service subsystem."""
import werkzeug.debug
import werkzeug.serving
from jacquard.commands import BaseCommand
from jacquard.service import get_wsgi_app
class RunServer(BaseCommand):
"""
Run a debug server.
**This is for debug, local use only, not produc... | """Command-line utilities for HTTP service subsystem."""
import werkzeug.debug
import werkzeug.serving
from jacquard.commands import BaseCommand
from jacquard.service import get_wsgi_app
class RunServer(BaseCommand):
"""
Run a debug server.
**This is for debug, local use only, not production.**
Th... | """Command-line utilities for HTTP service subsystem."""
import werkzeug.debug
import werkzeug.serving
from jacquard.commands import BaseCommand
from jacquard.service import get_wsgi_app
class RunServer(BaseCommand):
"""
Run a debug server.
**This is for debug, local use only, not production.**
Th... | <commit_before>"""Command-line utilities for HTTP service subsystem."""
import werkzeug.debug
import werkzeug.serving
from jacquard.commands import BaseCommand
from jacquard.service import get_wsgi_app
class RunServer(BaseCommand):
"""
Run a debug server.
**This is for debug, local use only, not produc... |
3e58c3707b8451bb053b2465a6a68438219fd348 | python/script_device_PIR_hallway.py | python/script_device_PIR_hallway.py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import domoticz
try:
execfile("/etc/domoticz/scripts.conf")
except:
exec(open("/etc/domoticz/scripts.conf").read())
debug = True
if changed_device.name == pir:
if debug:
domoticz.log("Start " + pir)
dev = domoticz.devices[atSleep]
dev.off()
if debug:
domoticz... | #!/usr/bin/python
# -*- coding: utf-8 -*-
import domoticz
try:
execfile("/etc/domoticz/scripts.conf")
except:
exec(open("/etc/domoticz/scripts.conf").read())
debug = True
if changed_device.name == pir and changed_device.is_on():
if debug:
domoticz.log("Start " + pir)
dev = domoticz.devices[atSleep]
dev.... | Make pir in hallway only trigger at on events | Make pir in hallway only trigger at on events
| Python | mit | tomhur/domoticz-scripts,tomhur/domoticz-scripts | #!/usr/bin/python
# -*- coding: utf-8 -*-
import domoticz
try:
execfile("/etc/domoticz/scripts.conf")
except:
exec(open("/etc/domoticz/scripts.conf").read())
debug = True
if changed_device.name == pir:
if debug:
domoticz.log("Start " + pir)
dev = domoticz.devices[atSleep]
dev.off()
if debug:
domoticz... | #!/usr/bin/python
# -*- coding: utf-8 -*-
import domoticz
try:
execfile("/etc/domoticz/scripts.conf")
except:
exec(open("/etc/domoticz/scripts.conf").read())
debug = True
if changed_device.name == pir and changed_device.is_on():
if debug:
domoticz.log("Start " + pir)
dev = domoticz.devices[atSleep]
dev.... | <commit_before>#!/usr/bin/python
# -*- coding: utf-8 -*-
import domoticz
try:
execfile("/etc/domoticz/scripts.conf")
except:
exec(open("/etc/domoticz/scripts.conf").read())
debug = True
if changed_device.name == pir:
if debug:
domoticz.log("Start " + pir)
dev = domoticz.devices[atSleep]
dev.off()
if de... | #!/usr/bin/python
# -*- coding: utf-8 -*-
import domoticz
try:
execfile("/etc/domoticz/scripts.conf")
except:
exec(open("/etc/domoticz/scripts.conf").read())
debug = True
if changed_device.name == pir and changed_device.is_on():
if debug:
domoticz.log("Start " + pir)
dev = domoticz.devices[atSleep]
dev.... | #!/usr/bin/python
# -*- coding: utf-8 -*-
import domoticz
try:
execfile("/etc/domoticz/scripts.conf")
except:
exec(open("/etc/domoticz/scripts.conf").read())
debug = True
if changed_device.name == pir:
if debug:
domoticz.log("Start " + pir)
dev = domoticz.devices[atSleep]
dev.off()
if debug:
domoticz... | <commit_before>#!/usr/bin/python
# -*- coding: utf-8 -*-
import domoticz
try:
execfile("/etc/domoticz/scripts.conf")
except:
exec(open("/etc/domoticz/scripts.conf").read())
debug = True
if changed_device.name == pir:
if debug:
domoticz.log("Start " + pir)
dev = domoticz.devices[atSleep]
dev.off()
if de... |
70df4ca8235b3ae29ef2843169f9119d29bda44a | tracker/models/__init__.py | tracker/models/__init__.py | from BasicInfo import BasicInfo
from BloodExam import BloodExam
from BloodExam import BloodParasite
from Child import Child
from ChildForm import ChildForm
from DentalExam import DentalExam
from DentalExam import DentalExamDiagnosis
from MedicalExamPart1Info import MedicalExamPart1Info
from MedicalExamPart2Info import ... | from BasicInfo import BasicInfo
from BloodExam import BloodExam
from BloodExam import BloodParasite
from Child import Child
from ChildForm import ChildForm
from DentalExam import DentalExam
from DentalExam import DentalExamDiagnosis
from MedicalExamPart1Info import MedicalExamPart1Info
from MedicalExamPart2Info import ... | Include history in the models. | Include history in the models.
| Python | mit | sscalpone/HBI,sscalpone/HBI,sscalpone/HBI,sscalpone/HBI | from BasicInfo import BasicInfo
from BloodExam import BloodExam
from BloodExam import BloodParasite
from Child import Child
from ChildForm import ChildForm
from DentalExam import DentalExam
from DentalExam import DentalExamDiagnosis
from MedicalExamPart1Info import MedicalExamPart1Info
from MedicalExamPart2Info import ... | from BasicInfo import BasicInfo
from BloodExam import BloodExam
from BloodExam import BloodParasite
from Child import Child
from ChildForm import ChildForm
from DentalExam import DentalExam
from DentalExam import DentalExamDiagnosis
from MedicalExamPart1Info import MedicalExamPart1Info
from MedicalExamPart2Info import ... | <commit_before>from BasicInfo import BasicInfo
from BloodExam import BloodExam
from BloodExam import BloodParasite
from Child import Child
from ChildForm import ChildForm
from DentalExam import DentalExam
from DentalExam import DentalExamDiagnosis
from MedicalExamPart1Info import MedicalExamPart1Info
from MedicalExamPa... | from BasicInfo import BasicInfo
from BloodExam import BloodExam
from BloodExam import BloodParasite
from Child import Child
from ChildForm import ChildForm
from DentalExam import DentalExam
from DentalExam import DentalExamDiagnosis
from MedicalExamPart1Info import MedicalExamPart1Info
from MedicalExamPart2Info import ... | from BasicInfo import BasicInfo
from BloodExam import BloodExam
from BloodExam import BloodParasite
from Child import Child
from ChildForm import ChildForm
from DentalExam import DentalExam
from DentalExam import DentalExamDiagnosis
from MedicalExamPart1Info import MedicalExamPart1Info
from MedicalExamPart2Info import ... | <commit_before>from BasicInfo import BasicInfo
from BloodExam import BloodExam
from BloodExam import BloodParasite
from Child import Child
from ChildForm import ChildForm
from DentalExam import DentalExam
from DentalExam import DentalExamDiagnosis
from MedicalExamPart1Info import MedicalExamPart1Info
from MedicalExamPa... |
5368e0ad7be4cdf7df2da392fdaabb89c3a4ad55 | test_settings.py | test_settings.py | SECRET_KEY = "lorem ipsum"
INSTALLED_APPS = (
'tango_shared',
)
| SECRET_KEY = "lorem ipsum"
INSTALLED_APPS = (
'tango_shared',
)
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
}
}
SITE_ID = 1
| Add missing test settings (in-memory sqlite3 db + SITE_ID) | Add missing test settings (in-memory sqlite3 db + SITE_ID)
| Python | mit | tBaxter/tango-shared-core,tBaxter/tango-shared-core,tBaxter/tango-shared-core | SECRET_KEY = "lorem ipsum"
INSTALLED_APPS = (
'tango_shared',
)
Add missing test settings (in-memory sqlite3 db + SITE_ID) | SECRET_KEY = "lorem ipsum"
INSTALLED_APPS = (
'tango_shared',
)
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
}
}
SITE_ID = 1
| <commit_before>SECRET_KEY = "lorem ipsum"
INSTALLED_APPS = (
'tango_shared',
)
<commit_msg>Add missing test settings (in-memory sqlite3 db + SITE_ID)<commit_after> | SECRET_KEY = "lorem ipsum"
INSTALLED_APPS = (
'tango_shared',
)
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
}
}
SITE_ID = 1
| SECRET_KEY = "lorem ipsum"
INSTALLED_APPS = (
'tango_shared',
)
Add missing test settings (in-memory sqlite3 db + SITE_ID)SECRET_KEY = "lorem ipsum"
INSTALLED_APPS = (
'tango_shared',
)
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
}
}
SITE_ID... | <commit_before>SECRET_KEY = "lorem ipsum"
INSTALLED_APPS = (
'tango_shared',
)
<commit_msg>Add missing test settings (in-memory sqlite3 db + SITE_ID)<commit_after>SECRET_KEY = "lorem ipsum"
INSTALLED_APPS = (
'tango_shared',
)
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
... |
f629e0ea3dc06e91d6d666b1a8bfefdd925287ff | rafem/__init__.py | rafem/__init__.py | """River Avulsion Module."""
from .riverbmi import BmiRiverModule
from .rivermodule import RiverModule
__all__ = ['BmiRiverModule', 'RiverModule']
| """River Avulsion Module."""
from .riverbmi import BmiRiverModule
from .rivermodule import rivermodule
__all__ = ['BmiRiverModule', 'rivermodule']
| Rename package from avulsion to rafem. | Rename package from avulsion to rafem.
| Python | mit | katmratliff/avulsion-bmi,mcflugen/avulsion-bmi | """River Avulsion Module."""
from .riverbmi import BmiRiverModule
from .rivermodule import RiverModule
__all__ = ['BmiRiverModule', 'RiverModule']
Rename package from avulsion to rafem. | """River Avulsion Module."""
from .riverbmi import BmiRiverModule
from .rivermodule import rivermodule
__all__ = ['BmiRiverModule', 'rivermodule']
| <commit_before>"""River Avulsion Module."""
from .riverbmi import BmiRiverModule
from .rivermodule import RiverModule
__all__ = ['BmiRiverModule', 'RiverModule']
<commit_msg>Rename package from avulsion to rafem.<commit_after> | """River Avulsion Module."""
from .riverbmi import BmiRiverModule
from .rivermodule import rivermodule
__all__ = ['BmiRiverModule', 'rivermodule']
| """River Avulsion Module."""
from .riverbmi import BmiRiverModule
from .rivermodule import RiverModule
__all__ = ['BmiRiverModule', 'RiverModule']
Rename package from avulsion to rafem."""River Avulsion Module."""
from .riverbmi import BmiRiverModule
from .rivermodule import rivermodule
__all__ = ['BmiRiverModule... | <commit_before>"""River Avulsion Module."""
from .riverbmi import BmiRiverModule
from .rivermodule import RiverModule
__all__ = ['BmiRiverModule', 'RiverModule']
<commit_msg>Rename package from avulsion to rafem.<commit_after>"""River Avulsion Module."""
from .riverbmi import BmiRiverModule
from .rivermodule import... |
46956660b1c4533e7a69fe2aa0dc17b73ce490ac | transporter/transporter.py | transporter/transporter.py | from urlparse import urlparse
import os
import adapters
try:
import paramiko
except ImportError:
pass
"""The following protocals are supported ftp, ftps, http and https.
sftp and ssh require paramiko to be installed
"""
class Transporter(object):
availible_adapters = {
"ftp": adapters.FtpAdapte... | from urlparse import urlparse
import os
import adapters
try:
import paramiko
except ImportError:
pass
"""The following protocals are supported ftp, ftps, http and https.
sftp and ssh require paramiko to be installed
"""
class Transporter(object):
availible_adapters = {
"ftp": adapters.FtpAdapte... | Use LocalFileAdapter when no scheme is given | Use LocalFileAdapter when no scheme is given
>>> t1 = Transporter('/file/path')
>>> t2 = Transporter('file:/file/path')
>>> type(t1.adapter) == type(t2.adapter)
True
>>> t1.pwd() == t2.pwd()
True | Python | bsd-2-clause | joshmaker/transporter | from urlparse import urlparse
import os
import adapters
try:
import paramiko
except ImportError:
pass
"""The following protocals are supported ftp, ftps, http and https.
sftp and ssh require paramiko to be installed
"""
class Transporter(object):
availible_adapters = {
"ftp": adapters.FtpAdapte... | from urlparse import urlparse
import os
import adapters
try:
import paramiko
except ImportError:
pass
"""The following protocals are supported ftp, ftps, http and https.
sftp and ssh require paramiko to be installed
"""
class Transporter(object):
availible_adapters = {
"ftp": adapters.FtpAdapte... | <commit_before>from urlparse import urlparse
import os
import adapters
try:
import paramiko
except ImportError:
pass
"""The following protocals are supported ftp, ftps, http and https.
sftp and ssh require paramiko to be installed
"""
class Transporter(object):
availible_adapters = {
"ftp": ada... | from urlparse import urlparse
import os
import adapters
try:
import paramiko
except ImportError:
pass
"""The following protocals are supported ftp, ftps, http and https.
sftp and ssh require paramiko to be installed
"""
class Transporter(object):
availible_adapters = {
"ftp": adapters.FtpAdapte... | from urlparse import urlparse
import os
import adapters
try:
import paramiko
except ImportError:
pass
"""The following protocals are supported ftp, ftps, http and https.
sftp and ssh require paramiko to be installed
"""
class Transporter(object):
availible_adapters = {
"ftp": adapters.FtpAdapte... | <commit_before>from urlparse import urlparse
import os
import adapters
try:
import paramiko
except ImportError:
pass
"""The following protocals are supported ftp, ftps, http and https.
sftp and ssh require paramiko to be installed
"""
class Transporter(object):
availible_adapters = {
"ftp": ada... |
a62343a536bf6a8b655ace66e09a17ea483e6fbe | txircd/modules/cmd_user.py | txircd/modules/cmd_user.py | from twisted.words.protocols import irc
from txircd.modbase import Command
import string
class UserCommand(Command):
def onUse(self, user, data):
if not user.username:
user.registered -= 1
user.username = data["ident"]
user.realname = data["gecos"]
if user.registered == 0:
user.register()
def process... | from twisted.words.protocols import irc
from txircd.modbase import Command
import string
class UserCommand(Command):
def onUse(self, user, data):
if not user.username:
user.registered -= 1
user.username = data["ident"]
user.realname = data["gecos"]
if user.registered == 0:
user.register()
def process... | Fix message with 462 numeric | Fix message with 462 numeric
| Python | bsd-3-clause | ElementalAlchemist/txircd,DesertBus/txircd,Heufneutje/txircd | from twisted.words.protocols import irc
from txircd.modbase import Command
import string
class UserCommand(Command):
def onUse(self, user, data):
if not user.username:
user.registered -= 1
user.username = data["ident"]
user.realname = data["gecos"]
if user.registered == 0:
user.register()
def process... | from twisted.words.protocols import irc
from txircd.modbase import Command
import string
class UserCommand(Command):
def onUse(self, user, data):
if not user.username:
user.registered -= 1
user.username = data["ident"]
user.realname = data["gecos"]
if user.registered == 0:
user.register()
def process... | <commit_before>from twisted.words.protocols import irc
from txircd.modbase import Command
import string
class UserCommand(Command):
def onUse(self, user, data):
if not user.username:
user.registered -= 1
user.username = data["ident"]
user.realname = data["gecos"]
if user.registered == 0:
user.register()... | from twisted.words.protocols import irc
from txircd.modbase import Command
import string
class UserCommand(Command):
def onUse(self, user, data):
if not user.username:
user.registered -= 1
user.username = data["ident"]
user.realname = data["gecos"]
if user.registered == 0:
user.register()
def process... | from twisted.words.protocols import irc
from txircd.modbase import Command
import string
class UserCommand(Command):
def onUse(self, user, data):
if not user.username:
user.registered -= 1
user.username = data["ident"]
user.realname = data["gecos"]
if user.registered == 0:
user.register()
def process... | <commit_before>from twisted.words.protocols import irc
from txircd.modbase import Command
import string
class UserCommand(Command):
def onUse(self, user, data):
if not user.username:
user.registered -= 1
user.username = data["ident"]
user.realname = data["gecos"]
if user.registered == 0:
user.register()... |
dfdd9b2a8bad5d61f5bf166d9c72b19f4c639383 | mock/buildbot_secret.py | mock/buildbot_secret.py | GITHUB_WEBHOOK_SECRET="nothing to see here"
GITHUB_OAUTH_CLIENT_ID="nothing to see here"
GITHUB_OAUTH_CLIENT_SECRET="nothing to see here"
GITHUB_STATUS_OAUTH_TOKEN="nothing to see here"
COVERALLS_REPO_TOKEN="nothing to see here"
CODECOV_REPO_TOKEN="nothing to see here"
FREEBSDCI_OAUTH_TOKEN="nothing to see here"
FQDN="... | GITHUB_WEBHOOK_SECRET="nothing to see here"
GITHUB_OAUTH_CLIENT_ID="nothing to see here"
GITHUB_OAUTH_CLIENT_SECRET="nothing to see here"
GITHUB_STATUS_OAUTH_TOKEN="nothing to see here"
COVERALLS_REPO_TOKEN="nothing to see here"
CODECOV_REPO_TOKEN="nothing to see here"
FREEBSDCI_OAUTH_TOKEN="nothing to see here"
FQDN="... | Add mock value for `MACOS_CODESIGN_IDENTITY` | Add mock value for `MACOS_CODESIGN_IDENTITY`
| Python | mit | staticfloat/julia-buildbot,staticfloat/julia-buildbot | GITHUB_WEBHOOK_SECRET="nothing to see here"
GITHUB_OAUTH_CLIENT_ID="nothing to see here"
GITHUB_OAUTH_CLIENT_SECRET="nothing to see here"
GITHUB_STATUS_OAUTH_TOKEN="nothing to see here"
COVERALLS_REPO_TOKEN="nothing to see here"
CODECOV_REPO_TOKEN="nothing to see here"
FREEBSDCI_OAUTH_TOKEN="nothing to see here"
FQDN="... | GITHUB_WEBHOOK_SECRET="nothing to see here"
GITHUB_OAUTH_CLIENT_ID="nothing to see here"
GITHUB_OAUTH_CLIENT_SECRET="nothing to see here"
GITHUB_STATUS_OAUTH_TOKEN="nothing to see here"
COVERALLS_REPO_TOKEN="nothing to see here"
CODECOV_REPO_TOKEN="nothing to see here"
FREEBSDCI_OAUTH_TOKEN="nothing to see here"
FQDN="... | <commit_before>GITHUB_WEBHOOK_SECRET="nothing to see here"
GITHUB_OAUTH_CLIENT_ID="nothing to see here"
GITHUB_OAUTH_CLIENT_SECRET="nothing to see here"
GITHUB_STATUS_OAUTH_TOKEN="nothing to see here"
COVERALLS_REPO_TOKEN="nothing to see here"
CODECOV_REPO_TOKEN="nothing to see here"
FREEBSDCI_OAUTH_TOKEN="nothing to s... | GITHUB_WEBHOOK_SECRET="nothing to see here"
GITHUB_OAUTH_CLIENT_ID="nothing to see here"
GITHUB_OAUTH_CLIENT_SECRET="nothing to see here"
GITHUB_STATUS_OAUTH_TOKEN="nothing to see here"
COVERALLS_REPO_TOKEN="nothing to see here"
CODECOV_REPO_TOKEN="nothing to see here"
FREEBSDCI_OAUTH_TOKEN="nothing to see here"
FQDN="... | GITHUB_WEBHOOK_SECRET="nothing to see here"
GITHUB_OAUTH_CLIENT_ID="nothing to see here"
GITHUB_OAUTH_CLIENT_SECRET="nothing to see here"
GITHUB_STATUS_OAUTH_TOKEN="nothing to see here"
COVERALLS_REPO_TOKEN="nothing to see here"
CODECOV_REPO_TOKEN="nothing to see here"
FREEBSDCI_OAUTH_TOKEN="nothing to see here"
FQDN="... | <commit_before>GITHUB_WEBHOOK_SECRET="nothing to see here"
GITHUB_OAUTH_CLIENT_ID="nothing to see here"
GITHUB_OAUTH_CLIENT_SECRET="nothing to see here"
GITHUB_STATUS_OAUTH_TOKEN="nothing to see here"
COVERALLS_REPO_TOKEN="nothing to see here"
CODECOV_REPO_TOKEN="nothing to see here"
FREEBSDCI_OAUTH_TOKEN="nothing to s... |
886c2b92d8dcc40577341245f7973d4a2d31aa90 | tests/core/test_mixer.py | tests/core/test_mixer.py | from __future__ import absolute_import, unicode_literals
import unittest
from mopidy import core
class CoreMixerTest(unittest.TestCase):
def setUp(self): # noqa: N802
self.core = core.Core(mixer=None, backends=[])
def test_volume(self):
self.assertEqual(self.core.mixer.get_volume(), None)
... | from __future__ import absolute_import, unicode_literals
import unittest
import mock
from mopidy import core, mixer
class CoreMixerTest(unittest.TestCase):
def setUp(self): # noqa: N802
self.mixer = mock.Mock(spec=mixer.Mixer)
self.core = core.Core(mixer=self.mixer, backends=[])
def test_... | Use a mixer mock in tests | core: Use a mixer mock in tests
| Python | apache-2.0 | ali/mopidy,tkem/mopidy,dbrgn/mopidy,ali/mopidy,bacontext/mopidy,SuperStarPL/mopidy,mokieyue/mopidy,SuperStarPL/mopidy,swak/mopidy,mopidy/mopidy,jodal/mopidy,ali/mopidy,swak/mopidy,dbrgn/mopidy,dbrgn/mopidy,ZenithDK/mopidy,rawdlite/mopidy,hkariti/mopidy,quartz55/mopidy,jodal/mopidy,jodal/mopidy,kingosticks/mopidy,vrs01/... | from __future__ import absolute_import, unicode_literals
import unittest
from mopidy import core
class CoreMixerTest(unittest.TestCase):
def setUp(self): # noqa: N802
self.core = core.Core(mixer=None, backends=[])
def test_volume(self):
self.assertEqual(self.core.mixer.get_volume(), None)
... | from __future__ import absolute_import, unicode_literals
import unittest
import mock
from mopidy import core, mixer
class CoreMixerTest(unittest.TestCase):
def setUp(self): # noqa: N802
self.mixer = mock.Mock(spec=mixer.Mixer)
self.core = core.Core(mixer=self.mixer, backends=[])
def test_... | <commit_before>from __future__ import absolute_import, unicode_literals
import unittest
from mopidy import core
class CoreMixerTest(unittest.TestCase):
def setUp(self): # noqa: N802
self.core = core.Core(mixer=None, backends=[])
def test_volume(self):
self.assertEqual(self.core.mixer.get_v... | from __future__ import absolute_import, unicode_literals
import unittest
import mock
from mopidy import core, mixer
class CoreMixerTest(unittest.TestCase):
def setUp(self): # noqa: N802
self.mixer = mock.Mock(spec=mixer.Mixer)
self.core = core.Core(mixer=self.mixer, backends=[])
def test_... | from __future__ import absolute_import, unicode_literals
import unittest
from mopidy import core
class CoreMixerTest(unittest.TestCase):
def setUp(self): # noqa: N802
self.core = core.Core(mixer=None, backends=[])
def test_volume(self):
self.assertEqual(self.core.mixer.get_volume(), None)
... | <commit_before>from __future__ import absolute_import, unicode_literals
import unittest
from mopidy import core
class CoreMixerTest(unittest.TestCase):
def setUp(self): # noqa: N802
self.core = core.Core(mixer=None, backends=[])
def test_volume(self):
self.assertEqual(self.core.mixer.get_v... |
c45e00924fbe90fb6ff9465202a77d390c685dc4 | tests/test_cli_update.py | tests/test_cli_update.py | # -*- coding: utf-8 -*-
import pathlib
import json
def test_store_template_data_to_json(cli_runner, tmp_rc, tmp_templates_file):
result = cli_runner([
'-c', tmp_rc, 'update'
])
assert result.exit_code == 0
templates = pathlib.Path(tmp_templates_file)
assert templates.exists()
with ... | # -*- coding: utf-8 -*-
import pathlib
import json
from configparser import RawConfigParser
import pytest
def test_store_template_data_to_json(cli_runner, tmp_rc, tmp_templates_file):
result = cli_runner([
'-c', tmp_rc, 'update'
])
assert result.exit_code == 0
templates = pathlib.Path(tmp_... | Implement a test for missing username in update cmd | Implement a test for missing username in update cmd
| Python | bsd-3-clause | hackebrot/cibopath | # -*- coding: utf-8 -*-
import pathlib
import json
def test_store_template_data_to_json(cli_runner, tmp_rc, tmp_templates_file):
result = cli_runner([
'-c', tmp_rc, 'update'
])
assert result.exit_code == 0
templates = pathlib.Path(tmp_templates_file)
assert templates.exists()
with ... | # -*- coding: utf-8 -*-
import pathlib
import json
from configparser import RawConfigParser
import pytest
def test_store_template_data_to_json(cli_runner, tmp_rc, tmp_templates_file):
result = cli_runner([
'-c', tmp_rc, 'update'
])
assert result.exit_code == 0
templates = pathlib.Path(tmp_... | <commit_before># -*- coding: utf-8 -*-
import pathlib
import json
def test_store_template_data_to_json(cli_runner, tmp_rc, tmp_templates_file):
result = cli_runner([
'-c', tmp_rc, 'update'
])
assert result.exit_code == 0
templates = pathlib.Path(tmp_templates_file)
assert templates.exis... | # -*- coding: utf-8 -*-
import pathlib
import json
from configparser import RawConfigParser
import pytest
def test_store_template_data_to_json(cli_runner, tmp_rc, tmp_templates_file):
result = cli_runner([
'-c', tmp_rc, 'update'
])
assert result.exit_code == 0
templates = pathlib.Path(tmp_... | # -*- coding: utf-8 -*-
import pathlib
import json
def test_store_template_data_to_json(cli_runner, tmp_rc, tmp_templates_file):
result = cli_runner([
'-c', tmp_rc, 'update'
])
assert result.exit_code == 0
templates = pathlib.Path(tmp_templates_file)
assert templates.exists()
with ... | <commit_before># -*- coding: utf-8 -*-
import pathlib
import json
def test_store_template_data_to_json(cli_runner, tmp_rc, tmp_templates_file):
result = cli_runner([
'-c', tmp_rc, 'update'
])
assert result.exit_code == 0
templates = pathlib.Path(tmp_templates_file)
assert templates.exis... |
a4104dea137b8fa2aedc38ac3bda53c559c1f45a | tests/test_opentransf.py | tests/test_opentransf.py | import pymorph
import numpy as np
def test_opentransf():
f = np.array([
[0,0,0,0,0,0,0,0],
[0,0,1,1,1,1,0,0],
[0,1,0,1,1,1,0,0],
[0,0,1,1,1,1,0,0],
[1,1,0,0,0,0,0,0]], bool)
ot = pymorph.opentransf( f, 'city-block')
for y in xrange(ot.shape[0]):
... | import pymorph
import numpy as np
def test_opentransf():
f = np.array([
[0,0,0,0,0,0,0,0],
[0,0,1,1,1,1,0,0],
[0,1,0,1,1,1,0,0],
[0,0,1,1,1,1,0,0],
[1,1,0,0,0,0,0,0]], bool)
ot = pymorph.opentransf( f, 'city-block')
for y in xrange(ot.shape[0]):
... | Test all cases of type for opentransf | TST: Test all cases of type for opentransf
| Python | bsd-3-clause | luispedro/pymorph | import pymorph
import numpy as np
def test_opentransf():
f = np.array([
[0,0,0,0,0,0,0,0],
[0,0,1,1,1,1,0,0],
[0,1,0,1,1,1,0,0],
[0,0,1,1,1,1,0,0],
[1,1,0,0,0,0,0,0]], bool)
ot = pymorph.opentransf( f, 'city-block')
for y in xrange(ot.shape[0]):
... | import pymorph
import numpy as np
def test_opentransf():
f = np.array([
[0,0,0,0,0,0,0,0],
[0,0,1,1,1,1,0,0],
[0,1,0,1,1,1,0,0],
[0,0,1,1,1,1,0,0],
[1,1,0,0,0,0,0,0]], bool)
ot = pymorph.opentransf( f, 'city-block')
for y in xrange(ot.shape[0]):
... | <commit_before>import pymorph
import numpy as np
def test_opentransf():
f = np.array([
[0,0,0,0,0,0,0,0],
[0,0,1,1,1,1,0,0],
[0,1,0,1,1,1,0,0],
[0,0,1,1,1,1,0,0],
[1,1,0,0,0,0,0,0]], bool)
ot = pymorph.opentransf( f, 'city-block')
for y in xrange(o... | import pymorph
import numpy as np
def test_opentransf():
f = np.array([
[0,0,0,0,0,0,0,0],
[0,0,1,1,1,1,0,0],
[0,1,0,1,1,1,0,0],
[0,0,1,1,1,1,0,0],
[1,1,0,0,0,0,0,0]], bool)
ot = pymorph.opentransf( f, 'city-block')
for y in xrange(ot.shape[0]):
... | import pymorph
import numpy as np
def test_opentransf():
f = np.array([
[0,0,0,0,0,0,0,0],
[0,0,1,1,1,1,0,0],
[0,1,0,1,1,1,0,0],
[0,0,1,1,1,1,0,0],
[1,1,0,0,0,0,0,0]], bool)
ot = pymorph.opentransf( f, 'city-block')
for y in xrange(ot.shape[0]):
... | <commit_before>import pymorph
import numpy as np
def test_opentransf():
f = np.array([
[0,0,0,0,0,0,0,0],
[0,0,1,1,1,1,0,0],
[0,1,0,1,1,1,0,0],
[0,0,1,1,1,1,0,0],
[1,1,0,0,0,0,0,0]], bool)
ot = pymorph.opentransf( f, 'city-block')
for y in xrange(o... |
95e1d4c2ec42f09fddf48c5a32f0fe409132380b | lab/monitors/nova_service_list.py | lab/monitors/nova_service_list.py | def start(lab, log, args):
import time
from fabric.context_managers import shell_env
grep_host = args.get('grep_host', 'overcloud-')
duration = args['duration']
period = args['period']
statuses = {'up': 1, 'down': 0}
server = lab.director()
start_time = time.time()
while start_tim... | def start(lab, log, args):
from fabric.context_managers import shell_env
grep_host = args.get('grep_host', 'overcloud-')
statuses = {'up': 1, 'down': 0}
server = lab.director()
with shell_env(OS_AUTH_URL=lab.cloud.end_point, OS_USERNAME=lab.cloud.user, OS_PASSWORD=lab.cloud.password, OS_TENANT_N... | Verify services status if FI is rebooted | Verify services status if FI is rebooted
Change-Id: Ia02ef16d53fbb7b55a8de884ff16a4bef345a1f2
| Python | apache-2.0 | CiscoSystems/os-sqe,CiscoSystems/os-sqe,CiscoSystems/os-sqe | def start(lab, log, args):
import time
from fabric.context_managers import shell_env
grep_host = args.get('grep_host', 'overcloud-')
duration = args['duration']
period = args['period']
statuses = {'up': 1, 'down': 0}
server = lab.director()
start_time = time.time()
while start_tim... | def start(lab, log, args):
from fabric.context_managers import shell_env
grep_host = args.get('grep_host', 'overcloud-')
statuses = {'up': 1, 'down': 0}
server = lab.director()
with shell_env(OS_AUTH_URL=lab.cloud.end_point, OS_USERNAME=lab.cloud.user, OS_PASSWORD=lab.cloud.password, OS_TENANT_N... | <commit_before>def start(lab, log, args):
import time
from fabric.context_managers import shell_env
grep_host = args.get('grep_host', 'overcloud-')
duration = args['duration']
period = args['period']
statuses = {'up': 1, 'down': 0}
server = lab.director()
start_time = time.time()
... | def start(lab, log, args):
from fabric.context_managers import shell_env
grep_host = args.get('grep_host', 'overcloud-')
statuses = {'up': 1, 'down': 0}
server = lab.director()
with shell_env(OS_AUTH_URL=lab.cloud.end_point, OS_USERNAME=lab.cloud.user, OS_PASSWORD=lab.cloud.password, OS_TENANT_N... | def start(lab, log, args):
import time
from fabric.context_managers import shell_env
grep_host = args.get('grep_host', 'overcloud-')
duration = args['duration']
period = args['period']
statuses = {'up': 1, 'down': 0}
server = lab.director()
start_time = time.time()
while start_tim... | <commit_before>def start(lab, log, args):
import time
from fabric.context_managers import shell_env
grep_host = args.get('grep_host', 'overcloud-')
duration = args['duration']
period = args['period']
statuses = {'up': 1, 'down': 0}
server = lab.director()
start_time = time.time()
... |
26bae1f6094550939b1ed2ded3885e5d7befc39d | rply/token.py | rply/token.py | class BaseBox(object):
pass
class Token(BaseBox):
def __init__(self, name, value, source_pos=None):
BaseBox.__init__(self)
self.name = name
self.value = value
self.source_pos = source_pos
def __eq__(self, other):
return self.name == other.name and self.value == oth... | class BaseBox(object):
pass
class Token(BaseBox):
def __init__(self, name, value, source_pos=None):
self.name = name
self.value = value
self.source_pos = source_pos
def __eq__(self, other):
return self.name == other.name and self.value == other.value
def gettokentype(... | Drop the __init__ call to object.__init__, RPython doesn't like it and it doesn't doa nything | Drop the __init__ call to object.__init__, RPython doesn't like it and it doesn't doa nything
| Python | bsd-3-clause | agamdua/rply,agamdua/rply | class BaseBox(object):
pass
class Token(BaseBox):
def __init__(self, name, value, source_pos=None):
BaseBox.__init__(self)
self.name = name
self.value = value
self.source_pos = source_pos
def __eq__(self, other):
return self.name == other.name and self.value == oth... | class BaseBox(object):
pass
class Token(BaseBox):
def __init__(self, name, value, source_pos=None):
self.name = name
self.value = value
self.source_pos = source_pos
def __eq__(self, other):
return self.name == other.name and self.value == other.value
def gettokentype(... | <commit_before>class BaseBox(object):
pass
class Token(BaseBox):
def __init__(self, name, value, source_pos=None):
BaseBox.__init__(self)
self.name = name
self.value = value
self.source_pos = source_pos
def __eq__(self, other):
return self.name == other.name and se... | class BaseBox(object):
pass
class Token(BaseBox):
def __init__(self, name, value, source_pos=None):
self.name = name
self.value = value
self.source_pos = source_pos
def __eq__(self, other):
return self.name == other.name and self.value == other.value
def gettokentype(... | class BaseBox(object):
pass
class Token(BaseBox):
def __init__(self, name, value, source_pos=None):
BaseBox.__init__(self)
self.name = name
self.value = value
self.source_pos = source_pos
def __eq__(self, other):
return self.name == other.name and self.value == oth... | <commit_before>class BaseBox(object):
pass
class Token(BaseBox):
def __init__(self, name, value, source_pos=None):
BaseBox.__init__(self)
self.name = name
self.value = value
self.source_pos = source_pos
def __eq__(self, other):
return self.name == other.name and se... |
be53f1234bec0bca4c35f020905e24d0637b91e3 | tests/run/coroutines.py | tests/run/coroutines.py | # cython: language_level=3
# mode: run
# tag: pep492, pure3.5
async def test_coroutine_frame(awaitable):
"""
>>> class Awaitable(object):
... def __await__(self):
... return iter([2])
>>> coro = test_coroutine_frame(Awaitable())
>>> import types
>>> isinstance(coro.cr_frame, t... | # cython: language_level=3
# mode: run
# tag: pep492, pure3.5, gh1462, async, await
async def test_coroutine_frame(awaitable):
"""
>>> class Awaitable(object):
... def __await__(self):
... return iter([2])
>>> coro = test_coroutine_frame(Awaitable())
>>> import types
>>> isins... | Add an explicit test for async-def functions with decorators. Closes GH-1462. | Add an explicit test for async-def functions with decorators.
Closes GH-1462.
| Python | apache-2.0 | scoder/cython,da-woods/cython,scoder/cython,scoder/cython,cython/cython,da-woods/cython,cython/cython,cython/cython,da-woods/cython,scoder/cython,cython/cython,da-woods/cython | # cython: language_level=3
# mode: run
# tag: pep492, pure3.5
async def test_coroutine_frame(awaitable):
"""
>>> class Awaitable(object):
... def __await__(self):
... return iter([2])
>>> coro = test_coroutine_frame(Awaitable())
>>> import types
>>> isinstance(coro.cr_frame, t... | # cython: language_level=3
# mode: run
# tag: pep492, pure3.5, gh1462, async, await
async def test_coroutine_frame(awaitable):
"""
>>> class Awaitable(object):
... def __await__(self):
... return iter([2])
>>> coro = test_coroutine_frame(Awaitable())
>>> import types
>>> isins... | <commit_before># cython: language_level=3
# mode: run
# tag: pep492, pure3.5
async def test_coroutine_frame(awaitable):
"""
>>> class Awaitable(object):
... def __await__(self):
... return iter([2])
>>> coro = test_coroutine_frame(Awaitable())
>>> import types
>>> isinstance(c... | # cython: language_level=3
# mode: run
# tag: pep492, pure3.5, gh1462, async, await
async def test_coroutine_frame(awaitable):
"""
>>> class Awaitable(object):
... def __await__(self):
... return iter([2])
>>> coro = test_coroutine_frame(Awaitable())
>>> import types
>>> isins... | # cython: language_level=3
# mode: run
# tag: pep492, pure3.5
async def test_coroutine_frame(awaitable):
"""
>>> class Awaitable(object):
... def __await__(self):
... return iter([2])
>>> coro = test_coroutine_frame(Awaitable())
>>> import types
>>> isinstance(coro.cr_frame, t... | <commit_before># cython: language_level=3
# mode: run
# tag: pep492, pure3.5
async def test_coroutine_frame(awaitable):
"""
>>> class Awaitable(object):
... def __await__(self):
... return iter([2])
>>> coro = test_coroutine_frame(Awaitable())
>>> import types
>>> isinstance(c... |
fa78cd1b3aa29cfe2846f4a999b4bb7436b339ea | tests/test_responses.py | tests/test_responses.py | from jsonrpcclient.responses import Ok, parse, parse_json
def test_parse():
assert parse({"jsonrpc": "2.0", "result": "pong", "id": 1}) == Ok("pong", 1)
def test_parse_json():
assert parse_json('{"jsonrpc": "2.0", "result": "pong", "id": 1}') == Ok("pong", 1)
| from jsonrpcclient.responses import Error, Ok, parse, parse_json
def test_Ok():
assert repr(Ok("foo", 1)) == "Ok(result='foo', id=1)"
def test_Error():
assert (
repr(Error(1, "foo", "bar", 2))
== "Error(code=1, message='foo', data='bar', id=2)"
)
def test_parse():
assert parse({"js... | Bring code coverage to 100% | Bring code coverage to 100%
| Python | mit | bcb/jsonrpcclient | from jsonrpcclient.responses import Ok, parse, parse_json
def test_parse():
assert parse({"jsonrpc": "2.0", "result": "pong", "id": 1}) == Ok("pong", 1)
def test_parse_json():
assert parse_json('{"jsonrpc": "2.0", "result": "pong", "id": 1}') == Ok("pong", 1)
Bring code coverage to 100% | from jsonrpcclient.responses import Error, Ok, parse, parse_json
def test_Ok():
assert repr(Ok("foo", 1)) == "Ok(result='foo', id=1)"
def test_Error():
assert (
repr(Error(1, "foo", "bar", 2))
== "Error(code=1, message='foo', data='bar', id=2)"
)
def test_parse():
assert parse({"js... | <commit_before>from jsonrpcclient.responses import Ok, parse, parse_json
def test_parse():
assert parse({"jsonrpc": "2.0", "result": "pong", "id": 1}) == Ok("pong", 1)
def test_parse_json():
assert parse_json('{"jsonrpc": "2.0", "result": "pong", "id": 1}') == Ok("pong", 1)
<commit_msg>Bring code coverage t... | from jsonrpcclient.responses import Error, Ok, parse, parse_json
def test_Ok():
assert repr(Ok("foo", 1)) == "Ok(result='foo', id=1)"
def test_Error():
assert (
repr(Error(1, "foo", "bar", 2))
== "Error(code=1, message='foo', data='bar', id=2)"
)
def test_parse():
assert parse({"js... | from jsonrpcclient.responses import Ok, parse, parse_json
def test_parse():
assert parse({"jsonrpc": "2.0", "result": "pong", "id": 1}) == Ok("pong", 1)
def test_parse_json():
assert parse_json('{"jsonrpc": "2.0", "result": "pong", "id": 1}') == Ok("pong", 1)
Bring code coverage to 100%from jsonrpcclient.re... | <commit_before>from jsonrpcclient.responses import Ok, parse, parse_json
def test_parse():
assert parse({"jsonrpc": "2.0", "result": "pong", "id": 1}) == Ok("pong", 1)
def test_parse_json():
assert parse_json('{"jsonrpc": "2.0", "result": "pong", "id": 1}') == Ok("pong", 1)
<commit_msg>Bring code coverage t... |
9dfe31f52d1cf4dfb11a1ffd8c14274e4b9ec135 | tests/test_tokenizer.py | tests/test_tokenizer.py | import unittest
from halng.tokenizer import MegaHALTokenizer
class testMegaHALTokenizer(unittest.TestCase):
def setUp(self):
self.tokenizer = MegaHALTokenizer()
def testSplitEmpty(self):
self.assertEquals(len(self.tokenizer.split("")), 0)
def testSplitSentence(self):
words = self... | import unittest
from halng.tokenizer import MegaHALTokenizer
class testMegaHALTokenizer(unittest.TestCase):
def setUp(self):
self.tokenizer = MegaHALTokenizer()
def testSplitEmpty(self):
self.assertEquals(len(self.tokenizer.split("")), 0)
def testSplitSentence(self):
words = self... | Add a test that ensures commas are part of non-word runs. | Add a test that ensures commas are part of non-word runs.
| Python | mit | meska/cobe,wodim/cobe-ng,meska/cobe,tiagochiavericosta/cobe,DarkMio/cobe,LeMagnesium/cobe,tiagochiavericosta/cobe,pteichman/cobe,pteichman/cobe,LeMagnesium/cobe,DarkMio/cobe,wodim/cobe-ng | import unittest
from halng.tokenizer import MegaHALTokenizer
class testMegaHALTokenizer(unittest.TestCase):
def setUp(self):
self.tokenizer = MegaHALTokenizer()
def testSplitEmpty(self):
self.assertEquals(len(self.tokenizer.split("")), 0)
def testSplitSentence(self):
words = self... | import unittest
from halng.tokenizer import MegaHALTokenizer
class testMegaHALTokenizer(unittest.TestCase):
def setUp(self):
self.tokenizer = MegaHALTokenizer()
def testSplitEmpty(self):
self.assertEquals(len(self.tokenizer.split("")), 0)
def testSplitSentence(self):
words = self... | <commit_before>import unittest
from halng.tokenizer import MegaHALTokenizer
class testMegaHALTokenizer(unittest.TestCase):
def setUp(self):
self.tokenizer = MegaHALTokenizer()
def testSplitEmpty(self):
self.assertEquals(len(self.tokenizer.split("")), 0)
def testSplitSentence(self):
... | import unittest
from halng.tokenizer import MegaHALTokenizer
class testMegaHALTokenizer(unittest.TestCase):
def setUp(self):
self.tokenizer = MegaHALTokenizer()
def testSplitEmpty(self):
self.assertEquals(len(self.tokenizer.split("")), 0)
def testSplitSentence(self):
words = self... | import unittest
from halng.tokenizer import MegaHALTokenizer
class testMegaHALTokenizer(unittest.TestCase):
def setUp(self):
self.tokenizer = MegaHALTokenizer()
def testSplitEmpty(self):
self.assertEquals(len(self.tokenizer.split("")), 0)
def testSplitSentence(self):
words = self... | <commit_before>import unittest
from halng.tokenizer import MegaHALTokenizer
class testMegaHALTokenizer(unittest.TestCase):
def setUp(self):
self.tokenizer = MegaHALTokenizer()
def testSplitEmpty(self):
self.assertEquals(len(self.tokenizer.split("")), 0)
def testSplitSentence(self):
... |
9ffcae90963ed97136142bdd1443f633f11a5837 | settings.py | settings.py | from fabric.api import env
env.hosts = ['[email protected]']
env.local_dir = 'public'
env.remote_dir = 'temp'
| from fabric.api import env
env.hosts = ['[email protected]']
env.local_dir = 'public'
env.remote_dir = 'temp'
| Set some default hosts environment | Set some default hosts environment
| Python | mit | nfletton/froid,nfletton/froid | from fabric.api import env
env.hosts = ['[email protected]']
env.local_dir = 'public'
env.remote_dir = 'temp'
Set some default hosts environment | from fabric.api import env
env.hosts = ['[email protected]']
env.local_dir = 'public'
env.remote_dir = 'temp'
| <commit_before>from fabric.api import env
env.hosts = ['[email protected]']
env.local_dir = 'public'
env.remote_dir = 'temp'
<commit_msg>Set some default hosts environment<commit_after> | from fabric.api import env
env.hosts = ['[email protected]']
env.local_dir = 'public'
env.remote_dir = 'temp'
| from fabric.api import env
env.hosts = ['[email protected]']
env.local_dir = 'public'
env.remote_dir = 'temp'
Set some default hosts environmentfrom fabric.api import env
env.hosts = ['[email protected]']
env.local_dir = 'public'
env.remote_dir = 'temp'
| <commit_before>from fabric.api import env
env.hosts = ['[email protected]']
env.local_dir = 'public'
env.remote_dir = 'temp'
<commit_msg>Set some default hosts environment<commit_after>from fabric.api import env
env.hosts = ['[email protected]']
env.local_dir = 'public'
env.remote_dir = 'temp'
|
03c7f149ac0162a78892593d33b5866a1a9b72df | tests/test_settings.py | tests/test_settings.py | from __future__ import unicode_literals
from django.test import TestCase
from rest_framework.settings import APISettings
class TestSettings(TestCase):
def test_import_error_message_maintained(self):
"""
Make sure import errors are captured and raised sensibly.
"""
settings = APIS... | from __future__ import unicode_literals
from django.test import TestCase
from rest_framework.settings import APISettings
class TestSettings(TestCase):
def test_import_error_message_maintained(self):
"""
Make sure import errors are captured and raised sensibly.
"""
settings = APIS... | Test case for settings check | Test case for settings check
| Python | bsd-2-clause | davesque/django-rest-framework,dmwyatt/django-rest-framework,jpadilla/django-rest-framework,kgeorgy/django-rest-framework,atombrella/django-rest-framework,davesque/django-rest-framework,pombredanne/django-rest-framework,cyberj/django-rest-framework,ossanna16/django-rest-framework,dmwyatt/django-rest-framework,edx/djang... | from __future__ import unicode_literals
from django.test import TestCase
from rest_framework.settings import APISettings
class TestSettings(TestCase):
def test_import_error_message_maintained(self):
"""
Make sure import errors are captured and raised sensibly.
"""
settings = APIS... | from __future__ import unicode_literals
from django.test import TestCase
from rest_framework.settings import APISettings
class TestSettings(TestCase):
def test_import_error_message_maintained(self):
"""
Make sure import errors are captured and raised sensibly.
"""
settings = APIS... | <commit_before>from __future__ import unicode_literals
from django.test import TestCase
from rest_framework.settings import APISettings
class TestSettings(TestCase):
def test_import_error_message_maintained(self):
"""
Make sure import errors are captured and raised sensibly.
"""
... | from __future__ import unicode_literals
from django.test import TestCase
from rest_framework.settings import APISettings
class TestSettings(TestCase):
def test_import_error_message_maintained(self):
"""
Make sure import errors are captured and raised sensibly.
"""
settings = APIS... | from __future__ import unicode_literals
from django.test import TestCase
from rest_framework.settings import APISettings
class TestSettings(TestCase):
def test_import_error_message_maintained(self):
"""
Make sure import errors are captured and raised sensibly.
"""
settings = APIS... | <commit_before>from __future__ import unicode_literals
from django.test import TestCase
from rest_framework.settings import APISettings
class TestSettings(TestCase):
def test_import_error_message_maintained(self):
"""
Make sure import errors are captured and raised sensibly.
"""
... |
fabc8a9cd7f2f23cac3b6cab12eb08fc83875045 | vtki/_version.py | vtki/_version.py | """ version info for vtki """
# major, minor, patch
version_info = 0, 16, 5
# Nice string for the version
__version__ = '.'.join(map(str, version_info))
| """ version info for vtki """
# major, minor, patch
version_info = 0, 16, 6
# Nice string for the version
__version__ = '.'.join(map(str, version_info))
| Bump version: 0.16.5 → 0.16.6 | Bump version: 0.16.5 → 0.16.6
| Python | mit | akaszynski/vtkInterface | """ version info for vtki """
# major, minor, patch
version_info = 0, 16, 5
# Nice string for the version
__version__ = '.'.join(map(str, version_info))
Bump version: 0.16.5 → 0.16.6 | """ version info for vtki """
# major, minor, patch
version_info = 0, 16, 6
# Nice string for the version
__version__ = '.'.join(map(str, version_info))
| <commit_before>""" version info for vtki """
# major, minor, patch
version_info = 0, 16, 5
# Nice string for the version
__version__ = '.'.join(map(str, version_info))
<commit_msg>Bump version: 0.16.5 → 0.16.6<commit_after> | """ version info for vtki """
# major, minor, patch
version_info = 0, 16, 6
# Nice string for the version
__version__ = '.'.join(map(str, version_info))
| """ version info for vtki """
# major, minor, patch
version_info = 0, 16, 5
# Nice string for the version
__version__ = '.'.join(map(str, version_info))
Bump version: 0.16.5 → 0.16.6""" version info for vtki """
# major, minor, patch
version_info = 0, 16, 6
# Nice string for the version
__version__ = '.'.join(map(str... | <commit_before>""" version info for vtki """
# major, minor, patch
version_info = 0, 16, 5
# Nice string for the version
__version__ = '.'.join(map(str, version_info))
<commit_msg>Bump version: 0.16.5 → 0.16.6<commit_after>""" version info for vtki """
# major, minor, patch
version_info = 0, 16, 6
# Nice string for t... |
4f5e20cc85395312ad66ef3731f2bf7e09987976 | commands/alias.py | commands/alias.py | from devbot import chat
def call(message, name, protocol, cfg, commands):
if message == '':
chat.say('/r ' + commands['help']['alias'].format('alias'), protocol)
return
aliases = ''
for tupl in commands['regex'].items():
if tupl[1] == message:
aliases = aliases + tupl[... | from devbot import chat
def call(message, name, protocol, cfg, commands):
if message == '':
chat.say('/r ' + commands['help']['alias'].format('alias'), protocol)
return
aliases = ''
for tupl in commands['regex'].items():
if tupl[1] == message:
aliases = aliases + tupl[... | Fix bug with DevotedBot speaking error in chat | Fix bug with DevotedBot speaking error in chat
| Python | mit | Ameliorate/DevotedBot,Ameliorate/DevotedBot | from devbot import chat
def call(message, name, protocol, cfg, commands):
if message == '':
chat.say('/r ' + commands['help']['alias'].format('alias'), protocol)
return
aliases = ''
for tupl in commands['regex'].items():
if tupl[1] == message:
aliases = aliases + tupl[... | from devbot import chat
def call(message, name, protocol, cfg, commands):
if message == '':
chat.say('/r ' + commands['help']['alias'].format('alias'), protocol)
return
aliases = ''
for tupl in commands['regex'].items():
if tupl[1] == message:
aliases = aliases + tupl[... | <commit_before>from devbot import chat
def call(message, name, protocol, cfg, commands):
if message == '':
chat.say('/r ' + commands['help']['alias'].format('alias'), protocol)
return
aliases = ''
for tupl in commands['regex'].items():
if tupl[1] == message:
aliases = ... | from devbot import chat
def call(message, name, protocol, cfg, commands):
if message == '':
chat.say('/r ' + commands['help']['alias'].format('alias'), protocol)
return
aliases = ''
for tupl in commands['regex'].items():
if tupl[1] == message:
aliases = aliases + tupl[... | from devbot import chat
def call(message, name, protocol, cfg, commands):
if message == '':
chat.say('/r ' + commands['help']['alias'].format('alias'), protocol)
return
aliases = ''
for tupl in commands['regex'].items():
if tupl[1] == message:
aliases = aliases + tupl[... | <commit_before>from devbot import chat
def call(message, name, protocol, cfg, commands):
if message == '':
chat.say('/r ' + commands['help']['alias'].format('alias'), protocol)
return
aliases = ''
for tupl in commands['regex'].items():
if tupl[1] == message:
aliases = ... |
033a9c6e8b704eb92a7b1a9a82235fee7374f6be | logger/utilities.py | logger/utilities.py | #!/usr/bin/env python3
"""Small utility functions for use in various places."""
__all__ = ["pick", "is_dunder", "convert_to_od", "counter_to_iterable"]
import collections
import itertools
def pick(arg, default):
"""Handler for default versus given argument."""
return default if arg is None else arg
def is_... | #!/usr/bin/env python3
"""Small utility functions for use in various places."""
__all__ = ["pick", "is_dunder", "convert_to_od",
"counter_to_iterable", "count"]
import collections
import itertools
def pick(arg, default):
"""Handler for default versus given argument."""
return default if arg is No... | Add a new 'count' utility function | Add a new 'count' utility function
| Python | bsd-2-clause | Vgr255/logging | #!/usr/bin/env python3
"""Small utility functions for use in various places."""
__all__ = ["pick", "is_dunder", "convert_to_od", "counter_to_iterable"]
import collections
import itertools
def pick(arg, default):
"""Handler for default versus given argument."""
return default if arg is None else arg
def is_... | #!/usr/bin/env python3
"""Small utility functions for use in various places."""
__all__ = ["pick", "is_dunder", "convert_to_od",
"counter_to_iterable", "count"]
import collections
import itertools
def pick(arg, default):
"""Handler for default versus given argument."""
return default if arg is No... | <commit_before>#!/usr/bin/env python3
"""Small utility functions for use in various places."""
__all__ = ["pick", "is_dunder", "convert_to_od", "counter_to_iterable"]
import collections
import itertools
def pick(arg, default):
"""Handler for default versus given argument."""
return default if arg is None el... | #!/usr/bin/env python3
"""Small utility functions for use in various places."""
__all__ = ["pick", "is_dunder", "convert_to_od",
"counter_to_iterable", "count"]
import collections
import itertools
def pick(arg, default):
"""Handler for default versus given argument."""
return default if arg is No... | #!/usr/bin/env python3
"""Small utility functions for use in various places."""
__all__ = ["pick", "is_dunder", "convert_to_od", "counter_to_iterable"]
import collections
import itertools
def pick(arg, default):
"""Handler for default versus given argument."""
return default if arg is None else arg
def is_... | <commit_before>#!/usr/bin/env python3
"""Small utility functions for use in various places."""
__all__ = ["pick", "is_dunder", "convert_to_od", "counter_to_iterable"]
import collections
import itertools
def pick(arg, default):
"""Handler for default versus given argument."""
return default if arg is None el... |
e75e741770d1735c52770900b1cf59f207f2264e | asp/__init__.py | asp/__init__.py | # From http://stackoverflow.com/questions/458550/standard-way-to-embed-version-into-python-package
# Author: James Antill (http://stackoverflow.com/users/10314/james-antill)
__version__ = '0.1'
__version_info__ = tuple([ int(num) for num in __version__.split('.')])
| # From http://stackoverflow.com/questions/458550/standard-way-to-embed-version-into-python-package
# Author: James Antill (http://stackoverflow.com/users/10314/james-antill)
__version__ = '0.1'
__version_info__ = tuple([ int(num) for num in __version__.split('.')])
class SpecializationError(Exception):
"""
Ex... | Add asp.SpecializationError class for specialization-related exceptions. | Add asp.SpecializationError class for specialization-related exceptions.
| Python | bsd-3-clause | shoaibkamil/asp,mbdriscoll/asp-old,mbdriscoll/asp-old,shoaibkamil/asp,richardxia/asp-multilevel-debug,richardxia/asp-multilevel-debug,pbirsinger/aspNew,pbirsinger/aspNew,mbdriscoll/asp-old,mbdriscoll/asp-old,shoaibkamil/asp,richardxia/asp-multilevel-debug,pbirsinger/aspNew | # From http://stackoverflow.com/questions/458550/standard-way-to-embed-version-into-python-package
# Author: James Antill (http://stackoverflow.com/users/10314/james-antill)
__version__ = '0.1'
__version_info__ = tuple([ int(num) for num in __version__.split('.')])
Add asp.SpecializationError class for specialization-r... | # From http://stackoverflow.com/questions/458550/standard-way-to-embed-version-into-python-package
# Author: James Antill (http://stackoverflow.com/users/10314/james-antill)
__version__ = '0.1'
__version_info__ = tuple([ int(num) for num in __version__.split('.')])
class SpecializationError(Exception):
"""
Ex... | <commit_before># From http://stackoverflow.com/questions/458550/standard-way-to-embed-version-into-python-package
# Author: James Antill (http://stackoverflow.com/users/10314/james-antill)
__version__ = '0.1'
__version_info__ = tuple([ int(num) for num in __version__.split('.')])
<commit_msg>Add asp.SpecializationError... | # From http://stackoverflow.com/questions/458550/standard-way-to-embed-version-into-python-package
# Author: James Antill (http://stackoverflow.com/users/10314/james-antill)
__version__ = '0.1'
__version_info__ = tuple([ int(num) for num in __version__.split('.')])
class SpecializationError(Exception):
"""
Ex... | # From http://stackoverflow.com/questions/458550/standard-way-to-embed-version-into-python-package
# Author: James Antill (http://stackoverflow.com/users/10314/james-antill)
__version__ = '0.1'
__version_info__ = tuple([ int(num) for num in __version__.split('.')])
Add asp.SpecializationError class for specialization-r... | <commit_before># From http://stackoverflow.com/questions/458550/standard-way-to-embed-version-into-python-package
# Author: James Antill (http://stackoverflow.com/users/10314/james-antill)
__version__ = '0.1'
__version_info__ = tuple([ int(num) for num in __version__.split('.')])
<commit_msg>Add asp.SpecializationError... |
64fdf3a83b7b8649de6216cd67fb1a8ae0d3f1a0 | bin/receive.py | bin/receive.py | #!/usr/bin/env python
import pika
import subprocess
import json
import os
from pymongo import MongoClient
dbcon = MongoClient()
NETSNIFF_UTIL = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'tools', 'netsniff.js')
queuecon = pika.BlockingConnection(pika.ConnectionParameters(
'localhost'))... | #!/usr/bin/env python
import pika
import subprocess
import json
import os
from pymongo import MongoClient
dbcon = MongoClient()
NETSNIFF_UTIL = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'tools', 'netsniff.js')
queuecon = pika.BlockingConnection(pika.ConnectionParameters(
'localhost'))... | Handle errors in queue processing | Handle errors in queue processing
| Python | mit | leibowitz/perfmonitor,leibowitz/perfmonitor,leibowitz/perfmonitor | #!/usr/bin/env python
import pika
import subprocess
import json
import os
from pymongo import MongoClient
dbcon = MongoClient()
NETSNIFF_UTIL = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'tools', 'netsniff.js')
queuecon = pika.BlockingConnection(pika.ConnectionParameters(
'localhost'))... | #!/usr/bin/env python
import pika
import subprocess
import json
import os
from pymongo import MongoClient
dbcon = MongoClient()
NETSNIFF_UTIL = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'tools', 'netsniff.js')
queuecon = pika.BlockingConnection(pika.ConnectionParameters(
'localhost'))... | <commit_before>#!/usr/bin/env python
import pika
import subprocess
import json
import os
from pymongo import MongoClient
dbcon = MongoClient()
NETSNIFF_UTIL = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'tools', 'netsniff.js')
queuecon = pika.BlockingConnection(pika.ConnectionParameters(
... | #!/usr/bin/env python
import pika
import subprocess
import json
import os
from pymongo import MongoClient
dbcon = MongoClient()
NETSNIFF_UTIL = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'tools', 'netsniff.js')
queuecon = pika.BlockingConnection(pika.ConnectionParameters(
'localhost'))... | #!/usr/bin/env python
import pika
import subprocess
import json
import os
from pymongo import MongoClient
dbcon = MongoClient()
NETSNIFF_UTIL = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'tools', 'netsniff.js')
queuecon = pika.BlockingConnection(pika.ConnectionParameters(
'localhost'))... | <commit_before>#!/usr/bin/env python
import pika
import subprocess
import json
import os
from pymongo import MongoClient
dbcon = MongoClient()
NETSNIFF_UTIL = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'tools', 'netsniff.js')
queuecon = pika.BlockingConnection(pika.ConnectionParameters(
... |
4708751802258c724bafe843845e91d88599df8b | marmoset/installimage/__init__.py | marmoset/installimage/__init__.py | from .installimage_config import InstallimageConfig
def create(args):
install_config = InstallimageConfig(args.mac)
for var in args.var:
install_config.add_or_set(var[0], var[1])
install_config.create()
msg = 'Created %s with following Options:\n%s' % (install_config.file_path(), install_co... | Add cli handling for installimage | Add cli handling for installimage
| Python | agpl-3.0 | aibor/marmoset | Add cli handling for installimage | from .installimage_config import InstallimageConfig
def create(args):
install_config = InstallimageConfig(args.mac)
for var in args.var:
install_config.add_or_set(var[0], var[1])
install_config.create()
msg = 'Created %s with following Options:\n%s' % (install_config.file_path(), install_co... | <commit_before><commit_msg>Add cli handling for installimage<commit_after> | from .installimage_config import InstallimageConfig
def create(args):
install_config = InstallimageConfig(args.mac)
for var in args.var:
install_config.add_or_set(var[0], var[1])
install_config.create()
msg = 'Created %s with following Options:\n%s' % (install_config.file_path(), install_co... | Add cli handling for installimagefrom .installimage_config import InstallimageConfig
def create(args):
install_config = InstallimageConfig(args.mac)
for var in args.var:
install_config.add_or_set(var[0], var[1])
install_config.create()
msg = 'Created %s with following Options:\n%s' % (insta... | <commit_before><commit_msg>Add cli handling for installimage<commit_after>from .installimage_config import InstallimageConfig
def create(args):
install_config = InstallimageConfig(args.mac)
for var in args.var:
install_config.add_or_set(var[0], var[1])
install_config.create()
msg = 'Created... | |
6711d68999e5a9b0ea72a9a4f33cfc86b4230012 | pattern_matcher/pattern_matcher.py | pattern_matcher/pattern_matcher.py | from .regex import RegexFactory
from .patterns import Patterns
class Matcher(object):
NO_MATCH = 'NO MATCH'
def __init__(self, raw_patterns, path, re_factory=RegexFactory):
self.raw_patterns = raw_patterns
self.path = path
self.re = re_factory().create(self.path)
self.patterns... | from .regex import RegexFactory
from .patterns import Patterns
class Matcher(object):
NO_MATCH = 'NO MATCH'
def __init__(self, raw_patterns, path, re_factory=RegexFactory):
self.raw_patterns = raw_patterns
self.path = path
self.re = re_factory().create(self.path)
self.patterns... | Change the way the Matcher is initialized and how matches are retrieved. | Change the way the Matcher is initialized and how matches are retrieved.
| Python | mit | damonkelley/pattern-matcher | from .regex import RegexFactory
from .patterns import Patterns
class Matcher(object):
NO_MATCH = 'NO MATCH'
def __init__(self, raw_patterns, path, re_factory=RegexFactory):
self.raw_patterns = raw_patterns
self.path = path
self.re = re_factory().create(self.path)
self.patterns... | from .regex import RegexFactory
from .patterns import Patterns
class Matcher(object):
NO_MATCH = 'NO MATCH'
def __init__(self, raw_patterns, path, re_factory=RegexFactory):
self.raw_patterns = raw_patterns
self.path = path
self.re = re_factory().create(self.path)
self.patterns... | <commit_before>from .regex import RegexFactory
from .patterns import Patterns
class Matcher(object):
NO_MATCH = 'NO MATCH'
def __init__(self, raw_patterns, path, re_factory=RegexFactory):
self.raw_patterns = raw_patterns
self.path = path
self.re = re_factory().create(self.path)
... | from .regex import RegexFactory
from .patterns import Patterns
class Matcher(object):
NO_MATCH = 'NO MATCH'
def __init__(self, raw_patterns, path, re_factory=RegexFactory):
self.raw_patterns = raw_patterns
self.path = path
self.re = re_factory().create(self.path)
self.patterns... | from .regex import RegexFactory
from .patterns import Patterns
class Matcher(object):
NO_MATCH = 'NO MATCH'
def __init__(self, raw_patterns, path, re_factory=RegexFactory):
self.raw_patterns = raw_patterns
self.path = path
self.re = re_factory().create(self.path)
self.patterns... | <commit_before>from .regex import RegexFactory
from .patterns import Patterns
class Matcher(object):
NO_MATCH = 'NO MATCH'
def __init__(self, raw_patterns, path, re_factory=RegexFactory):
self.raw_patterns = raw_patterns
self.path = path
self.re = re_factory().create(self.path)
... |
34b736645e45126c6cabb6d3f5427a697ebe74ff | tutorial/polls/views.py | tutorial/polls/views.py | from django.shortcuts import render
# Create your views here.
| from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def index(request):
return HttpResponse("Hello world you are at the index") | Create a simple Index view | Create a simple Index view
| Python | mit | ikosenn/django_reignited,ikosenn/django_reignited | from django.shortcuts import render
# Create your views here.
Create a simple Index view | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def index(request):
return HttpResponse("Hello world you are at the index") | <commit_before>from django.shortcuts import render
# Create your views here.
<commit_msg>Create a simple Index view<commit_after> | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def index(request):
return HttpResponse("Hello world you are at the index") | from django.shortcuts import render
# Create your views here.
Create a simple Index viewfrom django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def index(request):
return HttpResponse("Hello world you are at the index") | <commit_before>from django.shortcuts import render
# Create your views here.
<commit_msg>Create a simple Index view<commit_after>from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def index(request):
return HttpResponse("Hello world you are at the index") |
1bc95e2e2a2d4d0daf6cfcdbf7e4803b13262a49 | etcd3/__init__.py | etcd3/__init__.py | from __future__ import absolute_import
__author__ = 'Louis Taylor'
__email__ = '[email protected]'
__version__ = '0.1.0'
import grpc
from etcdrpc import rpc_pb2 as etcdrpc
channel = grpc.insecure_channel('localhost:2379')
stub = etcdrpc.KVStub(channel)
put_request = etcdrpc.PutRequest()
put_request.key = 'doot'.enc... | from __future__ import absolute_import
__author__ = 'Louis Taylor'
__email__ = '[email protected]'
__version__ = '0.1.0'
import grpc
from etcdrpc import rpc_pb2 as etcdrpc
class Etcd3Client(object):
def __init__(self):
self.channel = grpc.insecure_channel('localhost:2379')
self.kvstub = etcdrpc.... | Move put code into method | Move put code into method
| Python | apache-2.0 | kragniz/python-etcd3 | from __future__ import absolute_import
__author__ = 'Louis Taylor'
__email__ = '[email protected]'
__version__ = '0.1.0'
import grpc
from etcdrpc import rpc_pb2 as etcdrpc
channel = grpc.insecure_channel('localhost:2379')
stub = etcdrpc.KVStub(channel)
put_request = etcdrpc.PutRequest()
put_request.key = 'doot'.enc... | from __future__ import absolute_import
__author__ = 'Louis Taylor'
__email__ = '[email protected]'
__version__ = '0.1.0'
import grpc
from etcdrpc import rpc_pb2 as etcdrpc
class Etcd3Client(object):
def __init__(self):
self.channel = grpc.insecure_channel('localhost:2379')
self.kvstub = etcdrpc.... | <commit_before>from __future__ import absolute_import
__author__ = 'Louis Taylor'
__email__ = '[email protected]'
__version__ = '0.1.0'
import grpc
from etcdrpc import rpc_pb2 as etcdrpc
channel = grpc.insecure_channel('localhost:2379')
stub = etcdrpc.KVStub(channel)
put_request = etcdrpc.PutRequest()
put_request.k... | from __future__ import absolute_import
__author__ = 'Louis Taylor'
__email__ = '[email protected]'
__version__ = '0.1.0'
import grpc
from etcdrpc import rpc_pb2 as etcdrpc
class Etcd3Client(object):
def __init__(self):
self.channel = grpc.insecure_channel('localhost:2379')
self.kvstub = etcdrpc.... | from __future__ import absolute_import
__author__ = 'Louis Taylor'
__email__ = '[email protected]'
__version__ = '0.1.0'
import grpc
from etcdrpc import rpc_pb2 as etcdrpc
channel = grpc.insecure_channel('localhost:2379')
stub = etcdrpc.KVStub(channel)
put_request = etcdrpc.PutRequest()
put_request.key = 'doot'.enc... | <commit_before>from __future__ import absolute_import
__author__ = 'Louis Taylor'
__email__ = '[email protected]'
__version__ = '0.1.0'
import grpc
from etcdrpc import rpc_pb2 as etcdrpc
channel = grpc.insecure_channel('localhost:2379')
stub = etcdrpc.KVStub(channel)
put_request = etcdrpc.PutRequest()
put_request.k... |
536211012be24a20c34ef0af1fcc555672129354 | byceps/util/system.py | byceps/util/system.py | # -*- coding: utf-8 -*-
"""
byceps.util.system
~~~~~~~~~~~~~~~~~~
:Copyright: 2006-2016 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.
"""
import os
CONFIG_ENV_VAR_NAME = 'BYCEPS_CONFIG'
def get_config_env_name_from_env(*, default=None):
"""Return the configuration environment name set... | # -*- coding: utf-8 -*-
"""
byceps.util.system
~~~~~~~~~~~~~~~~~~
:Copyright: 2006-2016 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.
"""
import os
CONFIG_ENV_VAR_NAME = 'BYCEPS_CONFIG'
def get_config_env_name_from_env():
"""Return the configuration environment name set via environmen... | Remove default argument from function that reads the configuration name from the environment | Remove default argument from function that reads the configuration name from the environment
| Python | bsd-3-clause | homeworkprod/byceps,m-ober/byceps,m-ober/byceps,m-ober/byceps,homeworkprod/byceps,homeworkprod/byceps | # -*- coding: utf-8 -*-
"""
byceps.util.system
~~~~~~~~~~~~~~~~~~
:Copyright: 2006-2016 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.
"""
import os
CONFIG_ENV_VAR_NAME = 'BYCEPS_CONFIG'
def get_config_env_name_from_env(*, default=None):
"""Return the configuration environment name set... | # -*- coding: utf-8 -*-
"""
byceps.util.system
~~~~~~~~~~~~~~~~~~
:Copyright: 2006-2016 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.
"""
import os
CONFIG_ENV_VAR_NAME = 'BYCEPS_CONFIG'
def get_config_env_name_from_env():
"""Return the configuration environment name set via environmen... | <commit_before># -*- coding: utf-8 -*-
"""
byceps.util.system
~~~~~~~~~~~~~~~~~~
:Copyright: 2006-2016 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.
"""
import os
CONFIG_ENV_VAR_NAME = 'BYCEPS_CONFIG'
def get_config_env_name_from_env(*, default=None):
"""Return the configuration envir... | # -*- coding: utf-8 -*-
"""
byceps.util.system
~~~~~~~~~~~~~~~~~~
:Copyright: 2006-2016 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.
"""
import os
CONFIG_ENV_VAR_NAME = 'BYCEPS_CONFIG'
def get_config_env_name_from_env():
"""Return the configuration environment name set via environmen... | # -*- coding: utf-8 -*-
"""
byceps.util.system
~~~~~~~~~~~~~~~~~~
:Copyright: 2006-2016 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.
"""
import os
CONFIG_ENV_VAR_NAME = 'BYCEPS_CONFIG'
def get_config_env_name_from_env(*, default=None):
"""Return the configuration environment name set... | <commit_before># -*- coding: utf-8 -*-
"""
byceps.util.system
~~~~~~~~~~~~~~~~~~
:Copyright: 2006-2016 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.
"""
import os
CONFIG_ENV_VAR_NAME = 'BYCEPS_CONFIG'
def get_config_env_name_from_env(*, default=None):
"""Return the configuration envir... |
703ba21925f2e7ad9c5bb970ac89e834676962a8 | api/rest.py | api/rest.py | #!/usr/bin/env python
from mcapi.mcapp import app
from mcapi import tservices, public, utils, private, access
from mcapi.user import account, datadirs, datafiles, reviews, ud
import sys
if __name__ == '__main__':
if len(sys.argv) >= 2:
debug = True
else:
debug = False
if len(sys.argv) == ... | #!/usr/bin/env python
from mcapi.mcapp import app
from mcapi import tservices, public, utils, private, access, process, machine, template
from mcapi.user import account, datadirs, datafiles, reviews, ud
import sys
if __name__ == '__main__':
if len(sys.argv) >= 2:
debug = True
else:
debug = Fal... | Add in references to new services. | Add in references to new services.
| Python | mit | materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org | #!/usr/bin/env python
from mcapi.mcapp import app
from mcapi import tservices, public, utils, private, access
from mcapi.user import account, datadirs, datafiles, reviews, ud
import sys
if __name__ == '__main__':
if len(sys.argv) >= 2:
debug = True
else:
debug = False
if len(sys.argv) == ... | #!/usr/bin/env python
from mcapi.mcapp import app
from mcapi import tservices, public, utils, private, access, process, machine, template
from mcapi.user import account, datadirs, datafiles, reviews, ud
import sys
if __name__ == '__main__':
if len(sys.argv) >= 2:
debug = True
else:
debug = Fal... | <commit_before>#!/usr/bin/env python
from mcapi.mcapp import app
from mcapi import tservices, public, utils, private, access
from mcapi.user import account, datadirs, datafiles, reviews, ud
import sys
if __name__ == '__main__':
if len(sys.argv) >= 2:
debug = True
else:
debug = False
if le... | #!/usr/bin/env python
from mcapi.mcapp import app
from mcapi import tservices, public, utils, private, access, process, machine, template
from mcapi.user import account, datadirs, datafiles, reviews, ud
import sys
if __name__ == '__main__':
if len(sys.argv) >= 2:
debug = True
else:
debug = Fal... | #!/usr/bin/env python
from mcapi.mcapp import app
from mcapi import tservices, public, utils, private, access
from mcapi.user import account, datadirs, datafiles, reviews, ud
import sys
if __name__ == '__main__':
if len(sys.argv) >= 2:
debug = True
else:
debug = False
if len(sys.argv) == ... | <commit_before>#!/usr/bin/env python
from mcapi.mcapp import app
from mcapi import tservices, public, utils, private, access
from mcapi.user import account, datadirs, datafiles, reviews, ud
import sys
if __name__ == '__main__':
if len(sys.argv) >= 2:
debug = True
else:
debug = False
if le... |
87153cb1a9727d17d31f3aabb28affddca3191bf | sqltocpp.py | sqltocpp.py | import click
from sqltocpp import convert
@click.command()
@click.option('--sql', help='schema file name')
@click.option('--target', default='schema.hpp', help='hpp file name')
def execute(sql, target):
convert.schema_to_struct(sql, target)
if __name__ == '__main__':
try:
execute()
except:
... | import click
from sqltocpp import convert
@click.command()
@click.argument('sql_schema_file')
@click.option('--target', default='schema.hpp', help='hpp file name')
def execute(sql_schema_file, target):
convert.schema_to_struct(sql_schema_file, target)
if __name__ == '__main__':
execute()
| Add click based commandline interface script | Add click based commandline interface script
sqltocpp is intended to be a CLI command.
This enables it to be so
| Python | mit | banjocat/SqlToCpp,banjocat/SqlToCpp | import click
from sqltocpp import convert
@click.command()
@click.option('--sql', help='schema file name')
@click.option('--target', default='schema.hpp', help='hpp file name')
def execute(sql, target):
convert.schema_to_struct(sql, target)
if __name__ == '__main__':
try:
execute()
except:
... | import click
from sqltocpp import convert
@click.command()
@click.argument('sql_schema_file')
@click.option('--target', default='schema.hpp', help='hpp file name')
def execute(sql_schema_file, target):
convert.schema_to_struct(sql_schema_file, target)
if __name__ == '__main__':
execute()
| <commit_before>import click
from sqltocpp import convert
@click.command()
@click.option('--sql', help='schema file name')
@click.option('--target', default='schema.hpp', help='hpp file name')
def execute(sql, target):
convert.schema_to_struct(sql, target)
if __name__ == '__main__':
try:
execute()
... | import click
from sqltocpp import convert
@click.command()
@click.argument('sql_schema_file')
@click.option('--target', default='schema.hpp', help='hpp file name')
def execute(sql_schema_file, target):
convert.schema_to_struct(sql_schema_file, target)
if __name__ == '__main__':
execute()
| import click
from sqltocpp import convert
@click.command()
@click.option('--sql', help='schema file name')
@click.option('--target', default='schema.hpp', help='hpp file name')
def execute(sql, target):
convert.schema_to_struct(sql, target)
if __name__ == '__main__':
try:
execute()
except:
... | <commit_before>import click
from sqltocpp import convert
@click.command()
@click.option('--sql', help='schema file name')
@click.option('--target', default='schema.hpp', help='hpp file name')
def execute(sql, target):
convert.schema_to_struct(sql, target)
if __name__ == '__main__':
try:
execute()
... |
fe2300d809d863b63f3100ff72757f48cb11789b | nn_patterns/explainer/__init__.py | nn_patterns/explainer/__init__.py |
from .base import *
from .gradient_based import *
from .misc import *
from .pattern_based import *
from .relevance_based import *
def create_explainer(name,
output_layer, patterns=None, to_layer=None, **kwargs):
return {
# Utility.
"input": InputExplainer,
"random": ... |
from .base import *
from .gradient_based import *
from .misc import *
from .pattern_based import *
from .relevance_based import *
def create_explainer(name,
output_layer, patterns=None, **kwargs):
return {
# Utility.
"input": InputExplainer,
"random": RandomExplainer... | Fix interface. to_layer parameter is obsolete. | Fix interface. to_layer parameter is obsolete.
| Python | mit | pikinder/nn-patterns |
from .base import *
from .gradient_based import *
from .misc import *
from .pattern_based import *
from .relevance_based import *
def create_explainer(name,
output_layer, patterns=None, to_layer=None, **kwargs):
return {
# Utility.
"input": InputExplainer,
"random": ... |
from .base import *
from .gradient_based import *
from .misc import *
from .pattern_based import *
from .relevance_based import *
def create_explainer(name,
output_layer, patterns=None, **kwargs):
return {
# Utility.
"input": InputExplainer,
"random": RandomExplainer... | <commit_before>
from .base import *
from .gradient_based import *
from .misc import *
from .pattern_based import *
from .relevance_based import *
def create_explainer(name,
output_layer, patterns=None, to_layer=None, **kwargs):
return {
# Utility.
"input": InputExplainer,
... |
from .base import *
from .gradient_based import *
from .misc import *
from .pattern_based import *
from .relevance_based import *
def create_explainer(name,
output_layer, patterns=None, **kwargs):
return {
# Utility.
"input": InputExplainer,
"random": RandomExplainer... |
from .base import *
from .gradient_based import *
from .misc import *
from .pattern_based import *
from .relevance_based import *
def create_explainer(name,
output_layer, patterns=None, to_layer=None, **kwargs):
return {
# Utility.
"input": InputExplainer,
"random": ... | <commit_before>
from .base import *
from .gradient_based import *
from .misc import *
from .pattern_based import *
from .relevance_based import *
def create_explainer(name,
output_layer, patterns=None, to_layer=None, **kwargs):
return {
# Utility.
"input": InputExplainer,
... |
267c17ce984952d16623b0305975626397529ca8 | tests/config_test.py | tests/config_test.py | import pytest
from timewreport.config import TimeWarriorConfig
def test_get_value_should_return_value_if_key_available():
config = TimeWarriorConfig({'FOO': 'foo'})
assert config.get_value('FOO', 'bar') == 'foo'
def test_get_value_should_return_default_if_key_not_available():
config = TimeWarriorConfi... | import pytest
from timewreport.config import TimeWarriorConfig
def test_get_value_should_return_value_if_key_available():
config = TimeWarriorConfig({'FOO': 'foo'})
assert config.get_value('FOO', 'bar') == 'foo'
def test_get_value_should_return_default_if_key_not_available():
config = TimeWarriorConfi... | Add tests for falseish config values | Add tests for falseish config values
| Python | mit | lauft/timew-report | import pytest
from timewreport.config import TimeWarriorConfig
def test_get_value_should_return_value_if_key_available():
config = TimeWarriorConfig({'FOO': 'foo'})
assert config.get_value('FOO', 'bar') == 'foo'
def test_get_value_should_return_default_if_key_not_available():
config = TimeWarriorConfi... | import pytest
from timewreport.config import TimeWarriorConfig
def test_get_value_should_return_value_if_key_available():
config = TimeWarriorConfig({'FOO': 'foo'})
assert config.get_value('FOO', 'bar') == 'foo'
def test_get_value_should_return_default_if_key_not_available():
config = TimeWarriorConfi... | <commit_before>import pytest
from timewreport.config import TimeWarriorConfig
def test_get_value_should_return_value_if_key_available():
config = TimeWarriorConfig({'FOO': 'foo'})
assert config.get_value('FOO', 'bar') == 'foo'
def test_get_value_should_return_default_if_key_not_available():
config = T... | import pytest
from timewreport.config import TimeWarriorConfig
def test_get_value_should_return_value_if_key_available():
config = TimeWarriorConfig({'FOO': 'foo'})
assert config.get_value('FOO', 'bar') == 'foo'
def test_get_value_should_return_default_if_key_not_available():
config = TimeWarriorConfi... | import pytest
from timewreport.config import TimeWarriorConfig
def test_get_value_should_return_value_if_key_available():
config = TimeWarriorConfig({'FOO': 'foo'})
assert config.get_value('FOO', 'bar') == 'foo'
def test_get_value_should_return_default_if_key_not_available():
config = TimeWarriorConfi... | <commit_before>import pytest
from timewreport.config import TimeWarriorConfig
def test_get_value_should_return_value_if_key_available():
config = TimeWarriorConfig({'FOO': 'foo'})
assert config.get_value('FOO', 'bar') == 'foo'
def test_get_value_should_return_default_if_key_not_available():
config = T... |
6c157525bc32f1e6005be69bd6fde61d0d002ad3 | wizard/post_function.py | wizard/post_function.py | from openerp import pooler
def call_post_function(cr, uid, context):
"""This functionality allows users of module account.move.reversal
to call a function of the desired openerp model, after the
reversal of the move.
The call automatically sends at least the database cursor (cr) and
the use... | from openerp import pooler
def call_post_function(cr, uid, context):
"""This functionality allows users of module account.move.reversal
to call a function of the desired openerp model, after the
reversal of the move.
The call automatically sends at least the database cursor (cr) and
the use... | Remove some required arguments in post function context | Remove some required arguments in post function context
| Python | agpl-3.0 | xcgd/account_move_reversal | from openerp import pooler
def call_post_function(cr, uid, context):
"""This functionality allows users of module account.move.reversal
to call a function of the desired openerp model, after the
reversal of the move.
The call automatically sends at least the database cursor (cr) and
the use... | from openerp import pooler
def call_post_function(cr, uid, context):
"""This functionality allows users of module account.move.reversal
to call a function of the desired openerp model, after the
reversal of the move.
The call automatically sends at least the database cursor (cr) and
the use... | <commit_before>from openerp import pooler
def call_post_function(cr, uid, context):
"""This functionality allows users of module account.move.reversal
to call a function of the desired openerp model, after the
reversal of the move.
The call automatically sends at least the database cursor (cr) and... | from openerp import pooler
def call_post_function(cr, uid, context):
"""This functionality allows users of module account.move.reversal
to call a function of the desired openerp model, after the
reversal of the move.
The call automatically sends at least the database cursor (cr) and
the use... | from openerp import pooler
def call_post_function(cr, uid, context):
"""This functionality allows users of module account.move.reversal
to call a function of the desired openerp model, after the
reversal of the move.
The call automatically sends at least the database cursor (cr) and
the use... | <commit_before>from openerp import pooler
def call_post_function(cr, uid, context):
"""This functionality allows users of module account.move.reversal
to call a function of the desired openerp model, after the
reversal of the move.
The call automatically sends at least the database cursor (cr) and... |
3271722d3905a7727c20989fa98d804cb4df1b82 | mysite/urls.py | mysite/urls.py | """vote URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based... | """vote URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based... | Add redirect from / to /polls | Add redirect from / to /polls
| Python | apache-2.0 | gerard-/votingapp,gerard-/votingapp | """vote URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based... | """vote URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based... | <commit_before>"""vote URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='hom... | """vote URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based... | """vote URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based... | <commit_before>"""vote URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='hom... |
f405ee262ab6f87df8e83e024d3c615842fa37ce | fandjango/urls.py | fandjango/urls.py | from django.conf.urls.defaults import *
from views import *
urlpatterns = patterns('',
url(r'^authorize_application.html$', authorize_application, name='authorize_application'),
url(r'^deauthorize_application.html$', deauthorize_application)
) | from django.conf.urls.defaults import *
from views import *
urlpatterns = patterns('',
url(r'^authorize_application.html$', authorize_application, name='authorize_application'),
url(r'^deauthorize_application.html$', deauthorize_application, name='deauthorize_application')
) | Add a name to the URL configuration for 'deauthorize_application' | Add a name to the URL configuration for 'deauthorize_application'
| Python | mit | jgorset/fandjango,jgorset/fandjango | from django.conf.urls.defaults import *
from views import *
urlpatterns = patterns('',
url(r'^authorize_application.html$', authorize_application, name='authorize_application'),
url(r'^deauthorize_application.html$', deauthorize_application)
)Add a name to the URL configuration for 'deauthorize_application' | from django.conf.urls.defaults import *
from views import *
urlpatterns = patterns('',
url(r'^authorize_application.html$', authorize_application, name='authorize_application'),
url(r'^deauthorize_application.html$', deauthorize_application, name='deauthorize_application')
) | <commit_before>from django.conf.urls.defaults import *
from views import *
urlpatterns = patterns('',
url(r'^authorize_application.html$', authorize_application, name='authorize_application'),
url(r'^deauthorize_application.html$', deauthorize_application)
)<commit_msg>Add a name to the URL configuration for ... | from django.conf.urls.defaults import *
from views import *
urlpatterns = patterns('',
url(r'^authorize_application.html$', authorize_application, name='authorize_application'),
url(r'^deauthorize_application.html$', deauthorize_application, name='deauthorize_application')
) | from django.conf.urls.defaults import *
from views import *
urlpatterns = patterns('',
url(r'^authorize_application.html$', authorize_application, name='authorize_application'),
url(r'^deauthorize_application.html$', deauthorize_application)
)Add a name to the URL configuration for 'deauthorize_application'fr... | <commit_before>from django.conf.urls.defaults import *
from views import *
urlpatterns = patterns('',
url(r'^authorize_application.html$', authorize_application, name='authorize_application'),
url(r'^deauthorize_application.html$', deauthorize_application)
)<commit_msg>Add a name to the URL configuration for ... |
a2ea31300e614c27c3f99e079293728bee9fbcf4 | paws_config.py | paws_config.py | import tornado
from tornado import gen
import json
import os
BASE_PATH = '.'
base_url = '/paws/public/'
@gen.coroutine
def uid_for_user(user):
url = 'https://meta.wikimedia.org/w/api.php?' + \
'action=query&meta=globaluserinfo' + \
'&format=json&formatversion=2' + \
'&guiuser={}'.... | import tornado
from tornado import gen
import json
import os
BASE_PATH = '.'
base_url = '/paws/public/'
@gen.coroutine
def uid_for_user(user):
url = 'https://meta.wikimedia.org/w/api.php?' + \
'action=query&meta=globaluserinfo' + \
'&format=json&formatversion=2' + \
'&guiuser={}'.... | Add clarifying(?) comment about uid caching | Add clarifying(?) comment about uid caching
| Python | bsd-3-clause | yuvipanda/nbserve | import tornado
from tornado import gen
import json
import os
BASE_PATH = '.'
base_url = '/paws/public/'
@gen.coroutine
def uid_for_user(user):
url = 'https://meta.wikimedia.org/w/api.php?' + \
'action=query&meta=globaluserinfo' + \
'&format=json&formatversion=2' + \
'&guiuser={}'.... | import tornado
from tornado import gen
import json
import os
BASE_PATH = '.'
base_url = '/paws/public/'
@gen.coroutine
def uid_for_user(user):
url = 'https://meta.wikimedia.org/w/api.php?' + \
'action=query&meta=globaluserinfo' + \
'&format=json&formatversion=2' + \
'&guiuser={}'.... | <commit_before>import tornado
from tornado import gen
import json
import os
BASE_PATH = '.'
base_url = '/paws/public/'
@gen.coroutine
def uid_for_user(user):
url = 'https://meta.wikimedia.org/w/api.php?' + \
'action=query&meta=globaluserinfo' + \
'&format=json&formatversion=2' + \
... | import tornado
from tornado import gen
import json
import os
BASE_PATH = '.'
base_url = '/paws/public/'
@gen.coroutine
def uid_for_user(user):
url = 'https://meta.wikimedia.org/w/api.php?' + \
'action=query&meta=globaluserinfo' + \
'&format=json&formatversion=2' + \
'&guiuser={}'.... | import tornado
from tornado import gen
import json
import os
BASE_PATH = '.'
base_url = '/paws/public/'
@gen.coroutine
def uid_for_user(user):
url = 'https://meta.wikimedia.org/w/api.php?' + \
'action=query&meta=globaluserinfo' + \
'&format=json&formatversion=2' + \
'&guiuser={}'.... | <commit_before>import tornado
from tornado import gen
import json
import os
BASE_PATH = '.'
base_url = '/paws/public/'
@gen.coroutine
def uid_for_user(user):
url = 'https://meta.wikimedia.org/w/api.php?' + \
'action=query&meta=globaluserinfo' + \
'&format=json&formatversion=2' + \
... |
20f67ed02cd31d88a897b6e7ac3c93c482ea1684 | awslimits/data_setup.py | awslimits/data_setup.py | from .support import load_tickets, load_default_limits
import settings
def update_data():
print 'loading default limits...'
load_default_limits()
if settings.PREMIUM_ACCOUNT:
print 'loading tickets...'
load_tickets()
print 'done'
if __name__ == "__main__":
update_data()
| from .support import load_tickets, load_default_limits
import settings
def update_data():
print('loading default limits...')
load_default_limits()
if settings.PREMIUM_ACCOUNT:
print('loading tickets...')
load_tickets()
print('done')
if __name__ == "__main__":
update_data()
| Fix print statements for Python 3 | Fix print statements for Python 3
| Python | apache-2.0 | spulec/awslimits,Yipit/awslimits,Yipit/awslimits,spulec/awslimits | from .support import load_tickets, load_default_limits
import settings
def update_data():
print 'loading default limits...'
load_default_limits()
if settings.PREMIUM_ACCOUNT:
print 'loading tickets...'
load_tickets()
print 'done'
if __name__ == "__main__":
update_data()
Fix print ... | from .support import load_tickets, load_default_limits
import settings
def update_data():
print('loading default limits...')
load_default_limits()
if settings.PREMIUM_ACCOUNT:
print('loading tickets...')
load_tickets()
print('done')
if __name__ == "__main__":
update_data()
| <commit_before>from .support import load_tickets, load_default_limits
import settings
def update_data():
print 'loading default limits...'
load_default_limits()
if settings.PREMIUM_ACCOUNT:
print 'loading tickets...'
load_tickets()
print 'done'
if __name__ == "__main__":
update_dat... | from .support import load_tickets, load_default_limits
import settings
def update_data():
print('loading default limits...')
load_default_limits()
if settings.PREMIUM_ACCOUNT:
print('loading tickets...')
load_tickets()
print('done')
if __name__ == "__main__":
update_data()
| from .support import load_tickets, load_default_limits
import settings
def update_data():
print 'loading default limits...'
load_default_limits()
if settings.PREMIUM_ACCOUNT:
print 'loading tickets...'
load_tickets()
print 'done'
if __name__ == "__main__":
update_data()
Fix print ... | <commit_before>from .support import load_tickets, load_default_limits
import settings
def update_data():
print 'loading default limits...'
load_default_limits()
if settings.PREMIUM_ACCOUNT:
print 'loading tickets...'
load_tickets()
print 'done'
if __name__ == "__main__":
update_dat... |
bd20dbda918cdec93ab6d1fe5bba0ce064a60103 | fairseq/scoring/wer.py | fairseq/scoring/wer.py | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import editdistance
from fairseq.scoring import register_scoring
@register_scoring("wer")
class WerScorer(object):
def __init__(self, *... | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import editdistance
from fairseq.scoring import register_scoring
@register_scoring("wer")
class WerScorer(object):
def __init__(self, *... | Fix typos in WER scorer | Fix typos in WER scorer
Summary:
Fix typos in WER scorer
- The typos lead to using prediction length as the denominator in the formula, which is wrong.
Reviewed By: alexeib
Differential Revision: D23139261
fbshipit-source-id: d1bba0044365813603ce358388e880c1b3f9ec6b
| Python | mit | pytorch/fairseq,pytorch/fairseq,pytorch/fairseq | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import editdistance
from fairseq.scoring import register_scoring
@register_scoring("wer")
class WerScorer(object):
def __init__(self, *... | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import editdistance
from fairseq.scoring import register_scoring
@register_scoring("wer")
class WerScorer(object):
def __init__(self, *... | <commit_before># Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import editdistance
from fairseq.scoring import register_scoring
@register_scoring("wer")
class WerScorer(object):
def _... | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import editdistance
from fairseq.scoring import register_scoring
@register_scoring("wer")
class WerScorer(object):
def __init__(self, *... | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import editdistance
from fairseq.scoring import register_scoring
@register_scoring("wer")
class WerScorer(object):
def __init__(self, *... | <commit_before># Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import editdistance
from fairseq.scoring import register_scoring
@register_scoring("wer")
class WerScorer(object):
def _... |
6a219ca1451be9a68b567288fbd014624cc2417b | murano/tests/unit/api/middleware/test_version_negotiation.py | murano/tests/unit/api/middleware/test_version_negotiation.py | # Copyright 2016 AT&T Corp
# All Rights Reserved.
#
# 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 app... | # Copyright 2016 AT&T Corp
# All Rights Reserved.
#
# 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 app... | Change assertTrue(isinstance()) by optimal assert | Change assertTrue(isinstance()) by optimal assert
Some of tests use different method of
assertTrue(isinstance(A, B)) or assertEqual(type(A), B).
The correct way is to use assertIsInstance(A, B) provided by testtools
Change-Id: I3231db85708b36d2092c14ad45b42f42a0151027
| Python | apache-2.0 | openstack/murano,openstack/murano | # Copyright 2016 AT&T Corp
# All Rights Reserved.
#
# 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 app... | # Copyright 2016 AT&T Corp
# All Rights Reserved.
#
# 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 app... | <commit_before># Copyright 2016 AT&T Corp
# All Rights Reserved.
#
# 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 ... | # Copyright 2016 AT&T Corp
# All Rights Reserved.
#
# 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 app... | # Copyright 2016 AT&T Corp
# All Rights Reserved.
#
# 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 app... | <commit_before># Copyright 2016 AT&T Corp
# All Rights Reserved.
#
# 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 ... |
7a7b42495fda7e7fabbf982e1194ea2fff6fdf15 | code/DataSet.py | code/DataSet.py | # Neurotopics/code/DataSet.py
import neurosynth.analysis.reduce as nsar
class DataSet:
"""
A DataSet takes a NeuroSynth dataset and extracts the DOI's, and
word subset of interest. It uses reduce.average_within_regions to
get the average activation in the regions of interest (ROIs) of
the img.
... | # Neurotopics/code/DataSet.py
import neurosynth.analysis.reduce as nsar
class DataSet:
"""
A DataSet takes a NeuroSynth dataset and extracts the DOI's, and
word subset of interest. It uses reduce.average_within_regions to
get the average activation in the regions of interest (ROIs) of
the img.
... | Make more explicit variable name. | Make more explicit variable name.
| Python | agpl-3.0 | ambimorph/neurotopics-obs | # Neurotopics/code/DataSet.py
import neurosynth.analysis.reduce as nsar
class DataSet:
"""
A DataSet takes a NeuroSynth dataset and extracts the DOI's, and
word subset of interest. It uses reduce.average_within_regions to
get the average activation in the regions of interest (ROIs) of
the img.
... | # Neurotopics/code/DataSet.py
import neurosynth.analysis.reduce as nsar
class DataSet:
"""
A DataSet takes a NeuroSynth dataset and extracts the DOI's, and
word subset of interest. It uses reduce.average_within_regions to
get the average activation in the regions of interest (ROIs) of
the img.
... | <commit_before># Neurotopics/code/DataSet.py
import neurosynth.analysis.reduce as nsar
class DataSet:
"""
A DataSet takes a NeuroSynth dataset and extracts the DOI's, and
word subset of interest. It uses reduce.average_within_regions to
get the average activation in the regions of interest (ROIs) of... | # Neurotopics/code/DataSet.py
import neurosynth.analysis.reduce as nsar
class DataSet:
"""
A DataSet takes a NeuroSynth dataset and extracts the DOI's, and
word subset of interest. It uses reduce.average_within_regions to
get the average activation in the regions of interest (ROIs) of
the img.
... | # Neurotopics/code/DataSet.py
import neurosynth.analysis.reduce as nsar
class DataSet:
"""
A DataSet takes a NeuroSynth dataset and extracts the DOI's, and
word subset of interest. It uses reduce.average_within_regions to
get the average activation in the regions of interest (ROIs) of
the img.
... | <commit_before># Neurotopics/code/DataSet.py
import neurosynth.analysis.reduce as nsar
class DataSet:
"""
A DataSet takes a NeuroSynth dataset and extracts the DOI's, and
word subset of interest. It uses reduce.average_within_regions to
get the average activation in the regions of interest (ROIs) of... |
c47468128ab831133a12f942d32dd73b4198458e | scent.py | scent.py | # -*- coding: utf-8 -*-
import os
import time
import subprocess
from sniffer.api import select_runnable, file_validator, runnable
try:
from pync import Notifier
except ImportError:
notify = None
else:
notify = Notifier.notify
watch_paths = ['demo/', 'tests/']
@select_runnable('python_tests')
@file_val... | # -*- coding: utf-8 -*-
import os
import time
import subprocess
from sniffer.api import select_runnable, file_validator, runnable
try:
from pync import Notifier
except ImportError:
notify = None
else:
notify = Notifier.notify
watch_paths = ['demo/', 'tests/']
@select_runnable('python_tests')
@file_val... | Deploy Travis CI build 478 to GitHub | Deploy Travis CI build 478 to GitHub
| Python | mit | jacebrowning/template-python-demo | # -*- coding: utf-8 -*-
import os
import time
import subprocess
from sniffer.api import select_runnable, file_validator, runnable
try:
from pync import Notifier
except ImportError:
notify = None
else:
notify = Notifier.notify
watch_paths = ['demo/', 'tests/']
@select_runnable('python_tests')
@file_val... | # -*- coding: utf-8 -*-
import os
import time
import subprocess
from sniffer.api import select_runnable, file_validator, runnable
try:
from pync import Notifier
except ImportError:
notify = None
else:
notify = Notifier.notify
watch_paths = ['demo/', 'tests/']
@select_runnable('python_tests')
@file_val... | <commit_before># -*- coding: utf-8 -*-
import os
import time
import subprocess
from sniffer.api import select_runnable, file_validator, runnable
try:
from pync import Notifier
except ImportError:
notify = None
else:
notify = Notifier.notify
watch_paths = ['demo/', 'tests/']
@select_runnable('python_te... | # -*- coding: utf-8 -*-
import os
import time
import subprocess
from sniffer.api import select_runnable, file_validator, runnable
try:
from pync import Notifier
except ImportError:
notify = None
else:
notify = Notifier.notify
watch_paths = ['demo/', 'tests/']
@select_runnable('python_tests')
@file_val... | # -*- coding: utf-8 -*-
import os
import time
import subprocess
from sniffer.api import select_runnable, file_validator, runnable
try:
from pync import Notifier
except ImportError:
notify = None
else:
notify = Notifier.notify
watch_paths = ['demo/', 'tests/']
@select_runnable('python_tests')
@file_val... | <commit_before># -*- coding: utf-8 -*-
import os
import time
import subprocess
from sniffer.api import select_runnable, file_validator, runnable
try:
from pync import Notifier
except ImportError:
notify = None
else:
notify = Notifier.notify
watch_paths = ['demo/', 'tests/']
@select_runnable('python_te... |
cc80f90a4f003c0967c31d5177971061350ee683 | pycall/call.py | pycall/call.py | """A simple wrapper for Asterisk calls."""
class Call(object):
"""Stores and manipulates Asterisk calls."""
def __init__(self, channel, callerid=None, account=None, wait_time=None,
max_retries=None):
"""Create a new `Call` object.
:param str channel: The Asterisk channel to call. Should be in standard
A... | """A simple wrapper for Asterisk calls."""
class Call(object):
"""Stores and manipulates Asterisk calls."""
def __init__(self, channel, callerid=None, account=None, wait_time=None,
max_retries=None):
"""Create a new `Call` object.
:param str channel: The Asterisk channel to call. Should be in standard
A... | Revert "Forcing type coersion for int params." | Revert "Forcing type coersion for int params."
This is a pointless bit of code. Since we lazy-evaluate them anyhow, it's a
duplicate effort.
This reverts commit 1ca6b96d492f8f33ac3b3a520937378effb66744.
| Python | unlicense | rdegges/pycall | """A simple wrapper for Asterisk calls."""
class Call(object):
"""Stores and manipulates Asterisk calls."""
def __init__(self, channel, callerid=None, account=None, wait_time=None,
max_retries=None):
"""Create a new `Call` object.
:param str channel: The Asterisk channel to call. Should be in standard
A... | """A simple wrapper for Asterisk calls."""
class Call(object):
"""Stores and manipulates Asterisk calls."""
def __init__(self, channel, callerid=None, account=None, wait_time=None,
max_retries=None):
"""Create a new `Call` object.
:param str channel: The Asterisk channel to call. Should be in standard
A... | <commit_before>"""A simple wrapper for Asterisk calls."""
class Call(object):
"""Stores and manipulates Asterisk calls."""
def __init__(self, channel, callerid=None, account=None, wait_time=None,
max_retries=None):
"""Create a new `Call` object.
:param str channel: The Asterisk channel to call. Should be i... | """A simple wrapper for Asterisk calls."""
class Call(object):
"""Stores and manipulates Asterisk calls."""
def __init__(self, channel, callerid=None, account=None, wait_time=None,
max_retries=None):
"""Create a new `Call` object.
:param str channel: The Asterisk channel to call. Should be in standard
A... | """A simple wrapper for Asterisk calls."""
class Call(object):
"""Stores and manipulates Asterisk calls."""
def __init__(self, channel, callerid=None, account=None, wait_time=None,
max_retries=None):
"""Create a new `Call` object.
:param str channel: The Asterisk channel to call. Should be in standard
A... | <commit_before>"""A simple wrapper for Asterisk calls."""
class Call(object):
"""Stores and manipulates Asterisk calls."""
def __init__(self, channel, callerid=None, account=None, wait_time=None,
max_retries=None):
"""Create a new `Call` object.
:param str channel: The Asterisk channel to call. Should be i... |
d3c585a0ad11a75c308c70954184a526033f0420 | setup.py | setup.py | import sys
from setuptools import setup, find_packages, Command
from distutils import log
setup(
name='diffenator',
version='0.0.2',
author="Google Fonts Project Authors",
description="Font regression tester for Google Fonts",
url="https://github.com/googlefonts/diffenator",
license="Apache Sof... | import sys
from setuptools import setup, find_packages, Command
from distutils import log
setup(
name='diffenator',
version='0.0.2',
author="Google Fonts Project Authors",
description="Font regression tester for Google Fonts",
url="https://github.com/googlefonts/diffenator",
license="Apache Sof... | Remove dependency link to nototools | Remove dependency link to nototools
| Python | apache-2.0 | googlefonts/fontdiffenator,googlefonts/fontdiffenator | import sys
from setuptools import setup, find_packages, Command
from distutils import log
setup(
name='diffenator',
version='0.0.2',
author="Google Fonts Project Authors",
description="Font regression tester for Google Fonts",
url="https://github.com/googlefonts/diffenator",
license="Apache Sof... | import sys
from setuptools import setup, find_packages, Command
from distutils import log
setup(
name='diffenator',
version='0.0.2',
author="Google Fonts Project Authors",
description="Font regression tester for Google Fonts",
url="https://github.com/googlefonts/diffenator",
license="Apache Sof... | <commit_before>import sys
from setuptools import setup, find_packages, Command
from distutils import log
setup(
name='diffenator',
version='0.0.2',
author="Google Fonts Project Authors",
description="Font regression tester for Google Fonts",
url="https://github.com/googlefonts/diffenator",
lice... | import sys
from setuptools import setup, find_packages, Command
from distutils import log
setup(
name='diffenator',
version='0.0.2',
author="Google Fonts Project Authors",
description="Font regression tester for Google Fonts",
url="https://github.com/googlefonts/diffenator",
license="Apache Sof... | import sys
from setuptools import setup, find_packages, Command
from distutils import log
setup(
name='diffenator',
version='0.0.2',
author="Google Fonts Project Authors",
description="Font regression tester for Google Fonts",
url="https://github.com/googlefonts/diffenator",
license="Apache Sof... | <commit_before>import sys
from setuptools import setup, find_packages, Command
from distutils import log
setup(
name='diffenator',
version='0.0.2',
author="Google Fonts Project Authors",
description="Font regression tester for Google Fonts",
url="https://github.com/googlefonts/diffenator",
lice... |
5250a31587f414f6673c13e42095dbb859bf8cb4 | setup.py | setup.py | # Copyright 2013-2015 Massachusetts Open Cloud Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the
# License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | # Copyright 2013-2015 Massachusetts Open Cloud Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the
# License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | Replace dependency on SQLAlchemy with Flask-SQLALchemy | Replace dependency on SQLAlchemy with Flask-SQLALchemy
| Python | apache-2.0 | CCI-MOC/haas,kylehogan/haas,kylehogan/hil,henn/hil_sahil,henn/hil,henn/hil,kylehogan/hil,SahilTikale/haas,meng-sun/hil,henn/hil_sahil,meng-sun/hil,henn/haas | # Copyright 2013-2015 Massachusetts Open Cloud Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the
# License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | # Copyright 2013-2015 Massachusetts Open Cloud Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the
# License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | <commit_before># Copyright 2013-2015 Massachusetts Open Cloud Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the
# License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | # Copyright 2013-2015 Massachusetts Open Cloud Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the
# License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | # Copyright 2013-2015 Massachusetts Open Cloud Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the
# License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | <commit_before># Copyright 2013-2015 Massachusetts Open Cloud Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the
# License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... |
475b89c2d4ce94bc208b610808916246e4e3a575 | setup.py | setup.py | from setuptools import setup, Extension
module1 = Extension('earl', sources = ['earl.cpp'])
setup (
name = "Earl",
version = "1.6",
description = "Earl, the fanciest External Term Format packer and unpacker available for Python.",
ext_modules = [module1],
url="https://github.com/ccubed/Earl",
author="Charles Cl... | from setuptools import setup, Extension
module1 = Extension('earl', sources = ['earl.cpp'])
setup (
name = "Earl",
version = "1.6.1",
description = "Earl, the fanciest External Term Format packer and unpacker available for Python.",
ext_modules = [module1],
url="https://github.com/ccubed/Earl",
author="Charles ... | Update to 1.6.1. Small bug fix. | Update to 1.6.1. Small bug fix.
| Python | mit | ccubed/Earl,ccubed/Earl | from setuptools import setup, Extension
module1 = Extension('earl', sources = ['earl.cpp'])
setup (
name = "Earl",
version = "1.6",
description = "Earl, the fanciest External Term Format packer and unpacker available for Python.",
ext_modules = [module1],
url="https://github.com/ccubed/Earl",
author="Charles Cl... | from setuptools import setup, Extension
module1 = Extension('earl', sources = ['earl.cpp'])
setup (
name = "Earl",
version = "1.6.1",
description = "Earl, the fanciest External Term Format packer and unpacker available for Python.",
ext_modules = [module1],
url="https://github.com/ccubed/Earl",
author="Charles ... | <commit_before>from setuptools import setup, Extension
module1 = Extension('earl', sources = ['earl.cpp'])
setup (
name = "Earl",
version = "1.6",
description = "Earl, the fanciest External Term Format packer and unpacker available for Python.",
ext_modules = [module1],
url="https://github.com/ccubed/Earl",
aut... | from setuptools import setup, Extension
module1 = Extension('earl', sources = ['earl.cpp'])
setup (
name = "Earl",
version = "1.6.1",
description = "Earl, the fanciest External Term Format packer and unpacker available for Python.",
ext_modules = [module1],
url="https://github.com/ccubed/Earl",
author="Charles ... | from setuptools import setup, Extension
module1 = Extension('earl', sources = ['earl.cpp'])
setup (
name = "Earl",
version = "1.6",
description = "Earl, the fanciest External Term Format packer and unpacker available for Python.",
ext_modules = [module1],
url="https://github.com/ccubed/Earl",
author="Charles Cl... | <commit_before>from setuptools import setup, Extension
module1 = Extension('earl', sources = ['earl.cpp'])
setup (
name = "Earl",
version = "1.6",
description = "Earl, the fanciest External Term Format packer and unpacker available for Python.",
ext_modules = [module1],
url="https://github.com/ccubed/Earl",
aut... |
3daaf21879c6b2fc2099708e967cd4d67da1cd4f | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
__name__ == '__main__' and setup(name='aiohttp-json-rpc',
version='0.10.1',
author='Florian Scherf',
url='https://github.com/pengutronix/aiohttp-json-rpc/',
author_email='[email protected]',
l... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
__name__ == '__main__' and setup(name='aiohttp-json-rpc',
version='0.10.1',
author='Florian Scherf',
url='https://github.com/pengutronix/aiohttp-json-rpc/',
author_email='[email protected]',
l... | Bump aiohttp version constraint to <3.4 | Bump aiohttp version constraint to <3.4 | Python | apache-2.0 | pengutronix/aiohttp-json-rpc,pengutronix/aiohttp-json-rpc,pengutronix/aiohttp-json-rpc | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
__name__ == '__main__' and setup(name='aiohttp-json-rpc',
version='0.10.1',
author='Florian Scherf',
url='https://github.com/pengutronix/aiohttp-json-rpc/',
author_email='[email protected]',
l... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
__name__ == '__main__' and setup(name='aiohttp-json-rpc',
version='0.10.1',
author='Florian Scherf',
url='https://github.com/pengutronix/aiohttp-json-rpc/',
author_email='[email protected]',
l... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
__name__ == '__main__' and setup(name='aiohttp-json-rpc',
version='0.10.1',
author='Florian Scherf',
url='https://github.com/pengutronix/aiohttp-json-rpc/',
author_email='f.scherf@pengutron... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
__name__ == '__main__' and setup(name='aiohttp-json-rpc',
version='0.10.1',
author='Florian Scherf',
url='https://github.com/pengutronix/aiohttp-json-rpc/',
author_email='[email protected]',
l... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
__name__ == '__main__' and setup(name='aiohttp-json-rpc',
version='0.10.1',
author='Florian Scherf',
url='https://github.com/pengutronix/aiohttp-json-rpc/',
author_email='[email protected]',
l... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
__name__ == '__main__' and setup(name='aiohttp-json-rpc',
version='0.10.1',
author='Florian Scherf',
url='https://github.com/pengutronix/aiohttp-json-rpc/',
author_email='f.scherf@pengutron... |
d7201be1fbd5659f60887572f18d103a3f71deaf | setup.py | setup.py | """Setup for pyexperiment
"""
from __future__ import print_function
# from __future__ import unicode_literals
from __future__ import division
from __future__ import absolute_import
import os
from setuptools import setup
try:
from pypandoc import convert
read_md = lambda fname: convert(fname, 'rst')
except Imp... | """Setup for pyexperiment
"""
from __future__ import print_function
# from __future__ import unicode_literals
from __future__ import division
from __future__ import absolute_import
import os
from setuptools import setup
try:
from pypandoc import convert
read_md = lambda fname: convert(fname, 'rst')
except Imp... | Move to test version for pypi-test | Move to test version for pypi-test
| Python | mit | DeercoderResearch/pyexperiment,shaunstanislaus/pyexperiment,duerrp/pyexperiment,kinverarity1/pyexperiment,duerrp/pyexperiment,shaunstanislaus/pyexperiment,shaunstanislaus/pyexperiment,DeercoderResearch/pyexperiment,DeercoderResearch/pyexperiment,kinverarity1/pyexperiment,shaunstanislaus/pyexperiment,kinverarity1/pyexpe... | """Setup for pyexperiment
"""
from __future__ import print_function
# from __future__ import unicode_literals
from __future__ import division
from __future__ import absolute_import
import os
from setuptools import setup
try:
from pypandoc import convert
read_md = lambda fname: convert(fname, 'rst')
except Imp... | """Setup for pyexperiment
"""
from __future__ import print_function
# from __future__ import unicode_literals
from __future__ import division
from __future__ import absolute_import
import os
from setuptools import setup
try:
from pypandoc import convert
read_md = lambda fname: convert(fname, 'rst')
except Imp... | <commit_before>"""Setup for pyexperiment
"""
from __future__ import print_function
# from __future__ import unicode_literals
from __future__ import division
from __future__ import absolute_import
import os
from setuptools import setup
try:
from pypandoc import convert
read_md = lambda fname: convert(fname, 'r... | """Setup for pyexperiment
"""
from __future__ import print_function
# from __future__ import unicode_literals
from __future__ import division
from __future__ import absolute_import
import os
from setuptools import setup
try:
from pypandoc import convert
read_md = lambda fname: convert(fname, 'rst')
except Imp... | """Setup for pyexperiment
"""
from __future__ import print_function
# from __future__ import unicode_literals
from __future__ import division
from __future__ import absolute_import
import os
from setuptools import setup
try:
from pypandoc import convert
read_md = lambda fname: convert(fname, 'rst')
except Imp... | <commit_before>"""Setup for pyexperiment
"""
from __future__ import print_function
# from __future__ import unicode_literals
from __future__ import division
from __future__ import absolute_import
import os
from setuptools import setup
try:
from pypandoc import convert
read_md = lambda fname: convert(fname, 'r... |
70377c4397680c32b9ee6958bd250dce697fcb62 | setup.py | setup.py | from setuptools import setup, find_packages
install_requires = [
'dill==0.2.5',
'easydict==1.6',
'h5py==2.6.0',
'jsonpickle==0.9.3',
'Keras==1.2.0',
'nflgame==1.2.20',
'numpy==1.11.2',
'pandas==0.19.1',
'scikit-learn==0.18.1',
'scipy==0.18.1',
'tensorflow==0.12.0rc1',
'... | from setuptools import setup, find_packages
install_requires = [
'dill==0.2.5',
'easydict==1.6',
'h5py==2.6.0',
'jsonpickle==0.9.3',
'Keras==1.2.0',
'nflgame==1.2.20',
'numpy==1.11.2',
'pandas==0.19.1',
'scikit-learn==0.18.1',
'scipy==0.18.1',
'tensorflow==0.12.0rc1',
'... | Add back models and data | Add back models and data
| Python | mit | kahnjw/wincast | from setuptools import setup, find_packages
install_requires = [
'dill==0.2.5',
'easydict==1.6',
'h5py==2.6.0',
'jsonpickle==0.9.3',
'Keras==1.2.0',
'nflgame==1.2.20',
'numpy==1.11.2',
'pandas==0.19.1',
'scikit-learn==0.18.1',
'scipy==0.18.1',
'tensorflow==0.12.0rc1',
'... | from setuptools import setup, find_packages
install_requires = [
'dill==0.2.5',
'easydict==1.6',
'h5py==2.6.0',
'jsonpickle==0.9.3',
'Keras==1.2.0',
'nflgame==1.2.20',
'numpy==1.11.2',
'pandas==0.19.1',
'scikit-learn==0.18.1',
'scipy==0.18.1',
'tensorflow==0.12.0rc1',
'... | <commit_before>from setuptools import setup, find_packages
install_requires = [
'dill==0.2.5',
'easydict==1.6',
'h5py==2.6.0',
'jsonpickle==0.9.3',
'Keras==1.2.0',
'nflgame==1.2.20',
'numpy==1.11.2',
'pandas==0.19.1',
'scikit-learn==0.18.1',
'scipy==0.18.1',
'tensorflow==0.... | from setuptools import setup, find_packages
install_requires = [
'dill==0.2.5',
'easydict==1.6',
'h5py==2.6.0',
'jsonpickle==0.9.3',
'Keras==1.2.0',
'nflgame==1.2.20',
'numpy==1.11.2',
'pandas==0.19.1',
'scikit-learn==0.18.1',
'scipy==0.18.1',
'tensorflow==0.12.0rc1',
'... | from setuptools import setup, find_packages
install_requires = [
'dill==0.2.5',
'easydict==1.6',
'h5py==2.6.0',
'jsonpickle==0.9.3',
'Keras==1.2.0',
'nflgame==1.2.20',
'numpy==1.11.2',
'pandas==0.19.1',
'scikit-learn==0.18.1',
'scipy==0.18.1',
'tensorflow==0.12.0rc1',
'... | <commit_before>from setuptools import setup, find_packages
install_requires = [
'dill==0.2.5',
'easydict==1.6',
'h5py==2.6.0',
'jsonpickle==0.9.3',
'Keras==1.2.0',
'nflgame==1.2.20',
'numpy==1.11.2',
'pandas==0.19.1',
'scikit-learn==0.18.1',
'scipy==0.18.1',
'tensorflow==0.... |
739860d8da3e3380e49283a1fca2c43750349909 | setup.py | setup.py | from setuptools import setup
import mikla
setup(
name='mikla',
version=mikla.__version__.strip(),
url='http://dirtymonkey.co.uk/mikla',
license='MIT',
author=mikla.__author__.strip(),
author_email='[email protected]',
description=mikla.__doc__.strip().replace('\n', ' '),
long_desc... | from __future__ import print_function
import sys
from setuptools import setup
if sys.version_info[:2] < (3, 5):
print('Mikla only runs on Python 3.5 or later', file=sys.stderr)
sys.exit(1)
import mikla
setup(
name='mikla',
version=mikla.__version__.strip(),
url='http://dirtymonkey.co.uk/mikla'... | Add helpful message for users trying to install with Python < 3.5 | Add helpful message for users trying to install with Python < 3.5
| Python | mit | Matt-Deacalion/Mikla | from setuptools import setup
import mikla
setup(
name='mikla',
version=mikla.__version__.strip(),
url='http://dirtymonkey.co.uk/mikla',
license='MIT',
author=mikla.__author__.strip(),
author_email='[email protected]',
description=mikla.__doc__.strip().replace('\n', ' '),
long_desc... | from __future__ import print_function
import sys
from setuptools import setup
if sys.version_info[:2] < (3, 5):
print('Mikla only runs on Python 3.5 or later', file=sys.stderr)
sys.exit(1)
import mikla
setup(
name='mikla',
version=mikla.__version__.strip(),
url='http://dirtymonkey.co.uk/mikla'... | <commit_before>from setuptools import setup
import mikla
setup(
name='mikla',
version=mikla.__version__.strip(),
url='http://dirtymonkey.co.uk/mikla',
license='MIT',
author=mikla.__author__.strip(),
author_email='[email protected]',
description=mikla.__doc__.strip().replace('\n', ' ')... | from __future__ import print_function
import sys
from setuptools import setup
if sys.version_info[:2] < (3, 5):
print('Mikla only runs on Python 3.5 or later', file=sys.stderr)
sys.exit(1)
import mikla
setup(
name='mikla',
version=mikla.__version__.strip(),
url='http://dirtymonkey.co.uk/mikla'... | from setuptools import setup
import mikla
setup(
name='mikla',
version=mikla.__version__.strip(),
url='http://dirtymonkey.co.uk/mikla',
license='MIT',
author=mikla.__author__.strip(),
author_email='[email protected]',
description=mikla.__doc__.strip().replace('\n', ' '),
long_desc... | <commit_before>from setuptools import setup
import mikla
setup(
name='mikla',
version=mikla.__version__.strip(),
url='http://dirtymonkey.co.uk/mikla',
license='MIT',
author=mikla.__author__.strip(),
author_email='[email protected]',
description=mikla.__doc__.strip().replace('\n', ' ')... |
bc6d4f060b36418d7dc57ee4068e705b9bd28678 | setup.py | setup.py | # -*- coding: utf-8 -*-
from distutils.core import setup
from setuptools import find_packages
with open('README.rst', 'rb') as readme:
readme_text = readme.read().decode('utf-8')
setup(
name='django-bootstrap-pagination',
version='1.6.0',
keywords="django bootstrap pagination templatetag",
author... | # -*- coding: utf-8 -*-
from distutils.core import setup
from setuptools import find_packages
with open('README.rst', 'rb') as readme:
readme_text = readme.read().decode('utf-8')
setup(
name='django-bootstrap-pagination',
version='1.6.1',
keywords="django bootstrap pagination templatetag",
author... | Prepare for 1.6.1 on pypi | Prepare for 1.6.1 on pypi
| Python | mit | jmcclell/django-bootstrap-pagination,jmcclell/django-bootstrap-pagination | # -*- coding: utf-8 -*-
from distutils.core import setup
from setuptools import find_packages
with open('README.rst', 'rb') as readme:
readme_text = readme.read().decode('utf-8')
setup(
name='django-bootstrap-pagination',
version='1.6.0',
keywords="django bootstrap pagination templatetag",
author... | # -*- coding: utf-8 -*-
from distutils.core import setup
from setuptools import find_packages
with open('README.rst', 'rb') as readme:
readme_text = readme.read().decode('utf-8')
setup(
name='django-bootstrap-pagination',
version='1.6.1',
keywords="django bootstrap pagination templatetag",
author... | <commit_before># -*- coding: utf-8 -*-
from distutils.core import setup
from setuptools import find_packages
with open('README.rst', 'rb') as readme:
readme_text = readme.read().decode('utf-8')
setup(
name='django-bootstrap-pagination',
version='1.6.0',
keywords="django bootstrap pagination templatet... | # -*- coding: utf-8 -*-
from distutils.core import setup
from setuptools import find_packages
with open('README.rst', 'rb') as readme:
readme_text = readme.read().decode('utf-8')
setup(
name='django-bootstrap-pagination',
version='1.6.1',
keywords="django bootstrap pagination templatetag",
author... | # -*- coding: utf-8 -*-
from distutils.core import setup
from setuptools import find_packages
with open('README.rst', 'rb') as readme:
readme_text = readme.read().decode('utf-8')
setup(
name='django-bootstrap-pagination',
version='1.6.0',
keywords="django bootstrap pagination templatetag",
author... | <commit_before># -*- coding: utf-8 -*-
from distutils.core import setup
from setuptools import find_packages
with open('README.rst', 'rb') as readme:
readme_text = readme.read().decode('utf-8')
setup(
name='django-bootstrap-pagination',
version='1.6.0',
keywords="django bootstrap pagination templatet... |
413d9304b5ff0a45e70512dadc4527843eee7b68 | setup.py | setup.py | import sys
from setuptools import setup
if sys.version_info[0] == 2:
base_dir = 'python2'
elif sys.version_info[0] == 3:
base_dir = 'python3'
setup(
name='raygun4py',
version='2.0.0',
packages=['raygun4py'],
package_dir= {
"raygun4py": base_dir + "/raygun4py"
},
license='LICENS... | import sys
from setuptools import setup
if sys.version_info[0] == 2:
base_dir = 'python2'
elif sys.version_info[0] == 3:
base_dir = 'python3'
setup(
name='raygun4py',
version='2.0.0',
packages=['raygun4py'],
package_dir= {
"raygun4py": base_dir + "/raygun4py"
},
license='LICENS... | Add classifiers with py ver info | Add classifiers with py ver info
| Python | mit | ferringb/raygun4py,MindscapeHQ/raygun4py,Osmose/raygun4py | import sys
from setuptools import setup
if sys.version_info[0] == 2:
base_dir = 'python2'
elif sys.version_info[0] == 3:
base_dir = 'python3'
setup(
name='raygun4py',
version='2.0.0',
packages=['raygun4py'],
package_dir= {
"raygun4py": base_dir + "/raygun4py"
},
license='LICENS... | import sys
from setuptools import setup
if sys.version_info[0] == 2:
base_dir = 'python2'
elif sys.version_info[0] == 3:
base_dir = 'python3'
setup(
name='raygun4py',
version='2.0.0',
packages=['raygun4py'],
package_dir= {
"raygun4py": base_dir + "/raygun4py"
},
license='LICENS... | <commit_before>import sys
from setuptools import setup
if sys.version_info[0] == 2:
base_dir = 'python2'
elif sys.version_info[0] == 3:
base_dir = 'python3'
setup(
name='raygun4py',
version='2.0.0',
packages=['raygun4py'],
package_dir= {
"raygun4py": base_dir + "/raygun4py"
},
... | import sys
from setuptools import setup
if sys.version_info[0] == 2:
base_dir = 'python2'
elif sys.version_info[0] == 3:
base_dir = 'python3'
setup(
name='raygun4py',
version='2.0.0',
packages=['raygun4py'],
package_dir= {
"raygun4py": base_dir + "/raygun4py"
},
license='LICENS... | import sys
from setuptools import setup
if sys.version_info[0] == 2:
base_dir = 'python2'
elif sys.version_info[0] == 3:
base_dir = 'python3'
setup(
name='raygun4py',
version='2.0.0',
packages=['raygun4py'],
package_dir= {
"raygun4py": base_dir + "/raygun4py"
},
license='LICENS... | <commit_before>import sys
from setuptools import setup
if sys.version_info[0] == 2:
base_dir = 'python2'
elif sys.version_info[0] == 3:
base_dir = 'python3'
setup(
name='raygun4py',
version='2.0.0',
packages=['raygun4py'],
package_dir= {
"raygun4py": base_dir + "/raygun4py"
},
... |
b1bfb600240a006eed0cfce19d3fc87b3c72669f | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
setup(
name = 'jargparse',
packages = ['jargparse'], # this must be the same as the name above
version = '0.0.3',
description = 'A tiny super-dumb python module just because I like to see the usage info on stdout on an error',
author = 'Justin Clark-Case... | #!/usr/bin/env python
from distutils.core import setup
setup(
name = 'jargparse',
packages = ['jargparse'], # this must be the same as the name above
version = '0.0.4',
description = 'A tiny super-dumb module just because I like to see the usage info on stdout on an error. jargparse.ArgParser just wraps argpa... | Add a bit more to description | Add a bit more to description
| Python | apache-2.0 | justinccdev/jargparse | #!/usr/bin/env python
from distutils.core import setup
setup(
name = 'jargparse',
packages = ['jargparse'], # this must be the same as the name above
version = '0.0.3',
description = 'A tiny super-dumb python module just because I like to see the usage info on stdout on an error',
author = 'Justin Clark-Case... | #!/usr/bin/env python
from distutils.core import setup
setup(
name = 'jargparse',
packages = ['jargparse'], # this must be the same as the name above
version = '0.0.4',
description = 'A tiny super-dumb module just because I like to see the usage info on stdout on an error. jargparse.ArgParser just wraps argpa... | <commit_before>#!/usr/bin/env python
from distutils.core import setup
setup(
name = 'jargparse',
packages = ['jargparse'], # this must be the same as the name above
version = '0.0.3',
description = 'A tiny super-dumb python module just because I like to see the usage info on stdout on an error',
author = 'Ju... | #!/usr/bin/env python
from distutils.core import setup
setup(
name = 'jargparse',
packages = ['jargparse'], # this must be the same as the name above
version = '0.0.4',
description = 'A tiny super-dumb module just because I like to see the usage info on stdout on an error. jargparse.ArgParser just wraps argpa... | #!/usr/bin/env python
from distutils.core import setup
setup(
name = 'jargparse',
packages = ['jargparse'], # this must be the same as the name above
version = '0.0.3',
description = 'A tiny super-dumb python module just because I like to see the usage info on stdout on an error',
author = 'Justin Clark-Case... | <commit_before>#!/usr/bin/env python
from distutils.core import setup
setup(
name = 'jargparse',
packages = ['jargparse'], # this must be the same as the name above
version = '0.0.3',
description = 'A tiny super-dumb python module just because I like to see the usage info on stdout on an error',
author = 'Ju... |
1fea3970bd6979834f17e1a01bd204f60e4361ba | setup.py | setup.py | #!/usr/bin/env python
import setuptools
import os
setuptools.setup(
name='endpoints-proto-datastore',
version='0.9.0',
description='Google Cloud Endpoints Proto Datastore Library',
long_description=open(os.path.join(os.path.dirname(__file__), 'README.md')).read(),
url='https://github.com/GoogleClo... | #!/usr/bin/env python
import setuptools
import os
setuptools.setup(
name='endpoints-proto-datastore',
version='0.9.0',
description='Google Cloud Endpoints Proto Datastore Library',
long_description=open(os.path.join(os.path.dirname(__file__), 'README.md')).read(),
url='https://github.com/GoogleClo... | Add trailing newline since PyCharm stripped it | Add trailing newline since PyCharm stripped it
| Python | apache-2.0 | jbergant/endpoints-proto-datastore,dhermes/endpoints-proto-datastore,GoogleCloudPlatform/endpoints-proto-datastore,mnieper/endpoints-proto-datastore,maxandron/endpoints-proto-datastore | #!/usr/bin/env python
import setuptools
import os
setuptools.setup(
name='endpoints-proto-datastore',
version='0.9.0',
description='Google Cloud Endpoints Proto Datastore Library',
long_description=open(os.path.join(os.path.dirname(__file__), 'README.md')).read(),
url='https://github.com/GoogleClo... | #!/usr/bin/env python
import setuptools
import os
setuptools.setup(
name='endpoints-proto-datastore',
version='0.9.0',
description='Google Cloud Endpoints Proto Datastore Library',
long_description=open(os.path.join(os.path.dirname(__file__), 'README.md')).read(),
url='https://github.com/GoogleClo... | <commit_before>#!/usr/bin/env python
import setuptools
import os
setuptools.setup(
name='endpoints-proto-datastore',
version='0.9.0',
description='Google Cloud Endpoints Proto Datastore Library',
long_description=open(os.path.join(os.path.dirname(__file__), 'README.md')).read(),
url='https://githu... | #!/usr/bin/env python
import setuptools
import os
setuptools.setup(
name='endpoints-proto-datastore',
version='0.9.0',
description='Google Cloud Endpoints Proto Datastore Library',
long_description=open(os.path.join(os.path.dirname(__file__), 'README.md')).read(),
url='https://github.com/GoogleClo... | #!/usr/bin/env python
import setuptools
import os
setuptools.setup(
name='endpoints-proto-datastore',
version='0.9.0',
description='Google Cloud Endpoints Proto Datastore Library',
long_description=open(os.path.join(os.path.dirname(__file__), 'README.md')).read(),
url='https://github.com/GoogleClo... | <commit_before>#!/usr/bin/env python
import setuptools
import os
setuptools.setup(
name='endpoints-proto-datastore',
version='0.9.0',
description='Google Cloud Endpoints Proto Datastore Library',
long_description=open(os.path.join(os.path.dirname(__file__), 'README.md')).read(),
url='https://githu... |
6d702526d04fab65ee62bcec7db668d65f9de97f | setup.py | setup.py | from setuptools import setup
import jasinja, sys
requires = ['Jinja2']
if sys.version_info < (2, 6):
requires += ['simplejson']
setup(
name='jasinja',
version=jasinja.__version__,
url='http://bitbucket.org/djc/jasinja',
license='BSD',
author='Dirkjan Ochtman',
author_email='dirkjan@ochtman... | from setuptools import setup
import jasinja, sys
requires = ['Jinja2']
if sys.version_info < (2, 6):
requires += ['simplejson']
setup(
name='jasinja',
version=jasinja.__version__,
url='http://bitbucket.org/djc/jasinja',
license='BSD',
author='Dirkjan Ochtman',
author_email='dirkjan@ochtman... | Add long description (from README). | Add long description (from README).
| Python | bsd-3-clause | djc/jasinja,djc/jasinja | from setuptools import setup
import jasinja, sys
requires = ['Jinja2']
if sys.version_info < (2, 6):
requires += ['simplejson']
setup(
name='jasinja',
version=jasinja.__version__,
url='http://bitbucket.org/djc/jasinja',
license='BSD',
author='Dirkjan Ochtman',
author_email='dirkjan@ochtman... | from setuptools import setup
import jasinja, sys
requires = ['Jinja2']
if sys.version_info < (2, 6):
requires += ['simplejson']
setup(
name='jasinja',
version=jasinja.__version__,
url='http://bitbucket.org/djc/jasinja',
license='BSD',
author='Dirkjan Ochtman',
author_email='dirkjan@ochtman... | <commit_before>from setuptools import setup
import jasinja, sys
requires = ['Jinja2']
if sys.version_info < (2, 6):
requires += ['simplejson']
setup(
name='jasinja',
version=jasinja.__version__,
url='http://bitbucket.org/djc/jasinja',
license='BSD',
author='Dirkjan Ochtman',
author_email='... | from setuptools import setup
import jasinja, sys
requires = ['Jinja2']
if sys.version_info < (2, 6):
requires += ['simplejson']
setup(
name='jasinja',
version=jasinja.__version__,
url='http://bitbucket.org/djc/jasinja',
license='BSD',
author='Dirkjan Ochtman',
author_email='dirkjan@ochtman... | from setuptools import setup
import jasinja, sys
requires = ['Jinja2']
if sys.version_info < (2, 6):
requires += ['simplejson']
setup(
name='jasinja',
version=jasinja.__version__,
url='http://bitbucket.org/djc/jasinja',
license='BSD',
author='Dirkjan Ochtman',
author_email='dirkjan@ochtman... | <commit_before>from setuptools import setup
import jasinja, sys
requires = ['Jinja2']
if sys.version_info < (2, 6):
requires += ['simplejson']
setup(
name='jasinja',
version=jasinja.__version__,
url='http://bitbucket.org/djc/jasinja',
license='BSD',
author='Dirkjan Ochtman',
author_email='... |
1fe7b9c3c9a3764a1e209b2699ef51b84c87e897 | setup.py | setup.py | from distutils.core import setup
import os
setup(
name='python-jambel',
version='0.1',
py_module=['jambel'],
url='http://github.com/jambit/python-jambel',
license='UNKNOWN',
author='Sebastian Rahlf',
author_email='[email protected]',
description="Interface to jambit's project t... | from distutils.core import setup
import os
setup(
name='python-jambel',
version='0.1',
py_module=['jambel'],
url='http://github.com/jambit/python-jambel',
license='UNKNOWN',
author='Sebastian Rahlf',
author_email='[email protected]',
description="Interface to jambit's project t... | Add console script and test requirements. | Add console script and test requirements.
| Python | mit | redtoad/python-jambel,jambit/python-jambel | from distutils.core import setup
import os
setup(
name='python-jambel',
version='0.1',
py_module=['jambel'],
url='http://github.com/jambit/python-jambel',
license='UNKNOWN',
author='Sebastian Rahlf',
author_email='[email protected]',
description="Interface to jambit's project t... | from distutils.core import setup
import os
setup(
name='python-jambel',
version='0.1',
py_module=['jambel'],
url='http://github.com/jambit/python-jambel',
license='UNKNOWN',
author='Sebastian Rahlf',
author_email='[email protected]',
description="Interface to jambit's project t... | <commit_before>from distutils.core import setup
import os
setup(
name='python-jambel',
version='0.1',
py_module=['jambel'],
url='http://github.com/jambit/python-jambel',
license='UNKNOWN',
author='Sebastian Rahlf',
author_email='[email protected]',
description="Interface to jam... | from distutils.core import setup
import os
setup(
name='python-jambel',
version='0.1',
py_module=['jambel'],
url='http://github.com/jambit/python-jambel',
license='UNKNOWN',
author='Sebastian Rahlf',
author_email='[email protected]',
description="Interface to jambit's project t... | from distutils.core import setup
import os
setup(
name='python-jambel',
version='0.1',
py_module=['jambel'],
url='http://github.com/jambit/python-jambel',
license='UNKNOWN',
author='Sebastian Rahlf',
author_email='[email protected]',
description="Interface to jambit's project t... | <commit_before>from distutils.core import setup
import os
setup(
name='python-jambel',
version='0.1',
py_module=['jambel'],
url='http://github.com/jambit/python-jambel',
license='UNKNOWN',
author='Sebastian Rahlf',
author_email='[email protected]',
description="Interface to jam... |
6ca66af32e522e897495a1fbe1748caec37da9bf | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2008 Jason Davies
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution.
try:
from setuptools import setup
except ImportError:
from distutils.core impor... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2008 Jason Davies
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution.
try:
from setuptools import setup
except ImportError:
from distutils.core impor... | Revert previous commit as fuse-python doesn't seem to play nicely with easy_install (at least on Ubuntu). | Revert previous commit as fuse-python doesn't seem to play nicely with easy_install (at least on Ubuntu).
| Python | bsd-3-clause | johnko/couchdb-fuse | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2008 Jason Davies
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution.
try:
from setuptools import setup
except ImportError:
from distutils.core impor... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2008 Jason Davies
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution.
try:
from setuptools import setup
except ImportError:
from distutils.core impor... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2008 Jason Davies
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution.
try:
from setuptools import setup
except ImportError:
from distu... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2008 Jason Davies
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution.
try:
from setuptools import setup
except ImportError:
from distutils.core impor... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2008 Jason Davies
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution.
try:
from setuptools import setup
except ImportError:
from distutils.core impor... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2008 Jason Davies
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution.
try:
from setuptools import setup
except ImportError:
from distu... |
8b874d83e3840e1e67e2cd81c18fe0b415130619 | setup.py | setup.py | #!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(name='chevron',
version='0.7.1',
license='MIT',
description='Mustache templating language renderer',
author='noah morrison',
author_email='[email protected]',
u... | #!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import pypandoc
readme = pypandoc.convert('README.md', 'rst')
setup(name='chevron',
version='0.7.1',
license='MIT',
description='Mustache templating language renderer',
long_de... | Convert README.md to rst for pypi using pandoc. | Convert README.md to rst for pypi using pandoc.
Closes #11
Thanks for the tips/help Marc :)
| Python | mit | noahmorrison/chevron,noahmorrison/chevron | #!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(name='chevron',
version='0.7.1',
license='MIT',
description='Mustache templating language renderer',
author='noah morrison',
author_email='[email protected]',
u... | #!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import pypandoc
readme = pypandoc.convert('README.md', 'rst')
setup(name='chevron',
version='0.7.1',
license='MIT',
description='Mustache templating language renderer',
long_de... | <commit_before>#!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(name='chevron',
version='0.7.1',
license='MIT',
description='Mustache templating language renderer',
author='noah morrison',
author_email='noah@morris... | #!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import pypandoc
readme = pypandoc.convert('README.md', 'rst')
setup(name='chevron',
version='0.7.1',
license='MIT',
description='Mustache templating language renderer',
long_de... | #!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(name='chevron',
version='0.7.1',
license='MIT',
description='Mustache templating language renderer',
author='noah morrison',
author_email='[email protected]',
u... | <commit_before>#!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(name='chevron',
version='0.7.1',
license='MIT',
description='Mustache templating language renderer',
author='noah morrison',
author_email='noah@morris... |
c65d11f82b6d33d4940cdfd7b4d6b81e083c6e34 | setup.py | setup.py | from distutils.core import setup
setup(
name='django_autologin',
version='0.1',
packages=['django_autologin', 'django_autologin.templatetags'],
install_requires=['django>=1.0'],
description='Token generator and processor to provide automatic login links for users'
)
| from distutils.core import setup
setup(
name='django_autologin',
version='0.1',
packages=['django_autologin', 'django_autologin.templatetags'],
install_requires=['django>=1.0'],
description='Token generator and processor to provide automatic login links for users'
)
| Use 4 spaces for indentation. | Use 4 spaces for indentation.
| Python | bsd-3-clause | playfire/django-autologin | from distutils.core import setup
setup(
name='django_autologin',
version='0.1',
packages=['django_autologin', 'django_autologin.templatetags'],
install_requires=['django>=1.0'],
description='Token generator and processor to provide automatic login links for users'
)
Use 4 spaces for indentation. | from distutils.core import setup
setup(
name='django_autologin',
version='0.1',
packages=['django_autologin', 'django_autologin.templatetags'],
install_requires=['django>=1.0'],
description='Token generator and processor to provide automatic login links for users'
)
| <commit_before>from distutils.core import setup
setup(
name='django_autologin',
version='0.1',
packages=['django_autologin', 'django_autologin.templatetags'],
install_requires=['django>=1.0'],
description='Token generator and processor to provide automatic login links for users'
)
<commit_msg>Use 4 spaces for... | from distutils.core import setup
setup(
name='django_autologin',
version='0.1',
packages=['django_autologin', 'django_autologin.templatetags'],
install_requires=['django>=1.0'],
description='Token generator and processor to provide automatic login links for users'
)
| from distutils.core import setup
setup(
name='django_autologin',
version='0.1',
packages=['django_autologin', 'django_autologin.templatetags'],
install_requires=['django>=1.0'],
description='Token generator and processor to provide automatic login links for users'
)
Use 4 spaces for indentation.from distutils... | <commit_before>from distutils.core import setup
setup(
name='django_autologin',
version='0.1',
packages=['django_autologin', 'django_autologin.templatetags'],
install_requires=['django>=1.0'],
description='Token generator and processor to provide automatic login links for users'
)
<commit_msg>Use 4 spaces for... |
2cbc3a5197694905606ce5251516c825b28927d7 | setup.py | setup.py | import os
from setuptools import setup
longDesc = ""
if os.path.exists("README.rst"):
longDesc = open("README.rst").read().strip()
setup(
name = "pytesseract",
version = "0.1.7",
author = "Samuel Hoffstaetter",
author_email="[email protected]",
maintainer = "Matthias Lee",
maintainer_e... | import os
from setuptools import setup
README_PATH = 'README.rst'
longDesc = ""
if os.path.exists(README_PATH):
with open(README_PATH) as readme:
longDesc = readme.read()
setup(
name = "pytesseract",
version = "0.1.7",
author = "Samuel Hoffstaetter",
author_email="[email protected]"... | Fix long_description loading for PyPI | Fix long_description loading for PyPI | Python | apache-2.0 | madmaze/pytesseract | import os
from setuptools import setup
longDesc = ""
if os.path.exists("README.rst"):
longDesc = open("README.rst").read().strip()
setup(
name = "pytesseract",
version = "0.1.7",
author = "Samuel Hoffstaetter",
author_email="[email protected]",
maintainer = "Matthias Lee",
maintainer_e... | import os
from setuptools import setup
README_PATH = 'README.rst'
longDesc = ""
if os.path.exists(README_PATH):
with open(README_PATH) as readme:
longDesc = readme.read()
setup(
name = "pytesseract",
version = "0.1.7",
author = "Samuel Hoffstaetter",
author_email="[email protected]"... | <commit_before>import os
from setuptools import setup
longDesc = ""
if os.path.exists("README.rst"):
longDesc = open("README.rst").read().strip()
setup(
name = "pytesseract",
version = "0.1.7",
author = "Samuel Hoffstaetter",
author_email="[email protected]",
maintainer = "Matthias Lee",
... | import os
from setuptools import setup
README_PATH = 'README.rst'
longDesc = ""
if os.path.exists(README_PATH):
with open(README_PATH) as readme:
longDesc = readme.read()
setup(
name = "pytesseract",
version = "0.1.7",
author = "Samuel Hoffstaetter",
author_email="[email protected]"... | import os
from setuptools import setup
longDesc = ""
if os.path.exists("README.rst"):
longDesc = open("README.rst").read().strip()
setup(
name = "pytesseract",
version = "0.1.7",
author = "Samuel Hoffstaetter",
author_email="[email protected]",
maintainer = "Matthias Lee",
maintainer_e... | <commit_before>import os
from setuptools import setup
longDesc = ""
if os.path.exists("README.rst"):
longDesc = open("README.rst").read().strip()
setup(
name = "pytesseract",
version = "0.1.7",
author = "Samuel Hoffstaetter",
author_email="[email protected]",
maintainer = "Matthias Lee",
... |
13494098e2941ff87d80710ecc00c35142851175 | 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... | Add python version constraint python>=2.7 | Add python version constraint python>=2.7
The 'swift' command from v3.0.0 does not work in Python 2.6,
bacause some code is incompatible with Python 2.6
This patch is to add a constraint of python version
Change-Id: I5197cba0c2cd3135d08498df827a52f8bba98d4d
Closes-bug: #1590334
| Python | apache-2.0 | openstack/python-swiftclient,openstack/python-swiftclient,sohonetlabs/python-swiftclient,sohonetlabs/python-swiftclient | #!/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... |
23d7418aa18f6e4ce1b97938144a8968e2b0cb9b | setup.py | setup.py | #!/usr/bin/env python
"""Setup script for the pyparsing module distribution."""
# Setuptools depends on pyparsing (via packaging) as of version 34, so allow
# installing without it to avoid bootstrap problems.
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
i... | #!/usr/bin/env python
"""Setup script for the pyparsing module distribution."""
# Setuptools depends on pyparsing (via packaging) as of version 34, so allow
# installing without it to avoid bootstrap problems.
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
i... | Add python_requires to help pip | Add python_requires to help pip
| Python | mit | pyparsing/pyparsing,pyparsing/pyparsing | #!/usr/bin/env python
"""Setup script for the pyparsing module distribution."""
# Setuptools depends on pyparsing (via packaging) as of version 34, so allow
# installing without it to avoid bootstrap problems.
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
i... | #!/usr/bin/env python
"""Setup script for the pyparsing module distribution."""
# Setuptools depends on pyparsing (via packaging) as of version 34, so allow
# installing without it to avoid bootstrap problems.
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
i... | <commit_before>#!/usr/bin/env python
"""Setup script for the pyparsing module distribution."""
# Setuptools depends on pyparsing (via packaging) as of version 34, so allow
# installing without it to avoid bootstrap problems.
try:
from setuptools import setup
except ImportError:
from distutils.core im... | #!/usr/bin/env python
"""Setup script for the pyparsing module distribution."""
# Setuptools depends on pyparsing (via packaging) as of version 34, so allow
# installing without it to avoid bootstrap problems.
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
i... | #!/usr/bin/env python
"""Setup script for the pyparsing module distribution."""
# Setuptools depends on pyparsing (via packaging) as of version 34, so allow
# installing without it to avoid bootstrap problems.
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
i... | <commit_before>#!/usr/bin/env python
"""Setup script for the pyparsing module distribution."""
# Setuptools depends on pyparsing (via packaging) as of version 34, so allow
# installing without it to avoid bootstrap problems.
try:
from setuptools import setup
except ImportError:
from distutils.core im... |
a71c9ef43b1801343bccbaf4e9f3a4a2eaa570f0 | setup.py | setup.py | import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='windpowerlib',
version='0.2.0dev',
description='Creating time series of wind power plants.',
url='http://github.com/wind-python/windpowerlib',
author='oe... | import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='windpowerlib',
version='0.2.0dev',
description='Creating time series of wind power plants.',
url='http://github.com/wind-python/windpowerlib',
author='oe... | Add content type for long description | Add content type for long description
| Python | mit | wind-python/windpowerlib | import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='windpowerlib',
version='0.2.0dev',
description='Creating time series of wind power plants.',
url='http://github.com/wind-python/windpowerlib',
author='oe... | import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='windpowerlib',
version='0.2.0dev',
description='Creating time series of wind power plants.',
url='http://github.com/wind-python/windpowerlib',
author='oe... | <commit_before>import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='windpowerlib',
version='0.2.0dev',
description='Creating time series of wind power plants.',
url='http://github.com/wind-python/windpowerlib',
... | import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='windpowerlib',
version='0.2.0dev',
description='Creating time series of wind power plants.',
url='http://github.com/wind-python/windpowerlib',
author='oe... | import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='windpowerlib',
version='0.2.0dev',
description='Creating time series of wind power plants.',
url='http://github.com/wind-python/windpowerlib',
author='oe... | <commit_before>import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='windpowerlib',
version='0.2.0dev',
description='Creating time series of wind power plants.',
url='http://github.com/wind-python/windpowerlib',
... |
269b3951049255fd3b459ce254afe3b8d6ffea1b | setup.py | setup.py | """Setup for drewtils project."""
import os
try:
from setuptools import setup
setupTools = True
except ImportError:
from distutils.core import setup
setupTools = False
_classifiers = [
'License :: OSI Approved :: MIT License',
]
if os.path.exists('README.rst'):
with open('README.rst') as rea... | """Setup for drewtils project."""
try:
from setuptools import setup
setupTools = True
except ImportError:
from distutils.core import setup
setupTools = False
_classifiers = [
'License :: OSI Approved :: MIT License',
]
with open('README.rst') as readme:
long_description = readme.read()
setup... | Read long description from readme always | Read long description from readme always
| Python | mit | drewejohnson/drewtils | """Setup for drewtils project."""
import os
try:
from setuptools import setup
setupTools = True
except ImportError:
from distutils.core import setup
setupTools = False
_classifiers = [
'License :: OSI Approved :: MIT License',
]
if os.path.exists('README.rst'):
with open('README.rst') as rea... | """Setup for drewtils project."""
try:
from setuptools import setup
setupTools = True
except ImportError:
from distutils.core import setup
setupTools = False
_classifiers = [
'License :: OSI Approved :: MIT License',
]
with open('README.rst') as readme:
long_description = readme.read()
setup... | <commit_before>"""Setup for drewtils project."""
import os
try:
from setuptools import setup
setupTools = True
except ImportError:
from distutils.core import setup
setupTools = False
_classifiers = [
'License :: OSI Approved :: MIT License',
]
if os.path.exists('README.rst'):
with open('READ... | """Setup for drewtils project."""
try:
from setuptools import setup
setupTools = True
except ImportError:
from distutils.core import setup
setupTools = False
_classifiers = [
'License :: OSI Approved :: MIT License',
]
with open('README.rst') as readme:
long_description = readme.read()
setup... | """Setup for drewtils project."""
import os
try:
from setuptools import setup
setupTools = True
except ImportError:
from distutils.core import setup
setupTools = False
_classifiers = [
'License :: OSI Approved :: MIT License',
]
if os.path.exists('README.rst'):
with open('README.rst') as rea... | <commit_before>"""Setup for drewtils project."""
import os
try:
from setuptools import setup
setupTools = True
except ImportError:
from distutils.core import setup
setupTools = False
_classifiers = [
'License :: OSI Approved :: MIT License',
]
if os.path.exists('README.rst'):
with open('READ... |
0578b55f4e1e62b7c5c9c6f62721576970f43fdd | setup.py | setup.py | #!/usr/bin/env python
#
# Setup script for Django Evolution
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
from setuptools.command.test import test
from django_evolution import get_package_version, VERSION
def run_tests(*args):
import os
os.system('tests/ru... | #!/usr/bin/env python
#
# Setup script for Django Evolution
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
from setuptools.command.test import test
from django_evolution import get_package_version, VERSION
def run_tests(*args):
import os
os.system('tests/ru... | Revert "Allow Django Evolution to install along with Django >= 1.7." | Revert "Allow Django Evolution to install along with Django >= 1.7."
This reverts commit 28b280bb04f806f614f6f2cd25ce779b551fef9e.
This was committed to the wrong branch.
| Python | bsd-3-clause | beanbaginc/django-evolution | #!/usr/bin/env python
#
# Setup script for Django Evolution
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
from setuptools.command.test import test
from django_evolution import get_package_version, VERSION
def run_tests(*args):
import os
os.system('tests/ru... | #!/usr/bin/env python
#
# Setup script for Django Evolution
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
from setuptools.command.test import test
from django_evolution import get_package_version, VERSION
def run_tests(*args):
import os
os.system('tests/ru... | <commit_before>#!/usr/bin/env python
#
# Setup script for Django Evolution
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
from setuptools.command.test import test
from django_evolution import get_package_version, VERSION
def run_tests(*args):
import os
os.s... | #!/usr/bin/env python
#
# Setup script for Django Evolution
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
from setuptools.command.test import test
from django_evolution import get_package_version, VERSION
def run_tests(*args):
import os
os.system('tests/ru... | #!/usr/bin/env python
#
# Setup script for Django Evolution
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
from setuptools.command.test import test
from django_evolution import get_package_version, VERSION
def run_tests(*args):
import os
os.system('tests/ru... | <commit_before>#!/usr/bin/env python
#
# Setup script for Django Evolution
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
from setuptools.command.test import test
from django_evolution import get_package_version, VERSION
def run_tests(*args):
import os
os.s... |
c55b69aec422a28429f759893bfc1e1bd7352a59 | setup.py | setup.py | #!/usr/bin/env python
import sys
from setuptools import setup, find_packages
import versioneer
versioneer.versionfile_source = 'obfsproxy/_version.py'
versioneer.versionfile_build = 'obfsproxy/_version.py'
versioneer.tag_prefix = 'obfsproxy-' # tags are like 1.2.0
versioneer.parentdir_prefix = 'obfsproxy-' # dirname... | #!/usr/bin/env python
import sys
from setuptools import setup, find_packages
import versioneer
versioneer.versionfile_source = 'obfsproxy/_version.py'
versioneer.versionfile_build = 'obfsproxy/_version.py'
versioneer.tag_prefix = 'obfsproxy-' # tags are like 1.2.0
versioneer.parentdir_prefix = 'obfsproxy-' # dirname... | Add "pyyaml" because it is used by ScrambleSuit. | Add "pyyaml" because it is used by ScrambleSuit.
| Python | bsd-3-clause | isislovecruft/obfsproxy,masterkorp/obfsproxy,qdzheng/obfsproxy,infinity0/obfsproxy,catinred2/obfsproxy,Yawning/obfsproxy,david415/obfsproxy,Yawning/obfsproxy-wfpadtools,NullHypothesis/obfsproxy | #!/usr/bin/env python
import sys
from setuptools import setup, find_packages
import versioneer
versioneer.versionfile_source = 'obfsproxy/_version.py'
versioneer.versionfile_build = 'obfsproxy/_version.py'
versioneer.tag_prefix = 'obfsproxy-' # tags are like 1.2.0
versioneer.parentdir_prefix = 'obfsproxy-' # dirname... | #!/usr/bin/env python
import sys
from setuptools import setup, find_packages
import versioneer
versioneer.versionfile_source = 'obfsproxy/_version.py'
versioneer.versionfile_build = 'obfsproxy/_version.py'
versioneer.tag_prefix = 'obfsproxy-' # tags are like 1.2.0
versioneer.parentdir_prefix = 'obfsproxy-' # dirname... | <commit_before>#!/usr/bin/env python
import sys
from setuptools import setup, find_packages
import versioneer
versioneer.versionfile_source = 'obfsproxy/_version.py'
versioneer.versionfile_build = 'obfsproxy/_version.py'
versioneer.tag_prefix = 'obfsproxy-' # tags are like 1.2.0
versioneer.parentdir_prefix = 'obfspr... | #!/usr/bin/env python
import sys
from setuptools import setup, find_packages
import versioneer
versioneer.versionfile_source = 'obfsproxy/_version.py'
versioneer.versionfile_build = 'obfsproxy/_version.py'
versioneer.tag_prefix = 'obfsproxy-' # tags are like 1.2.0
versioneer.parentdir_prefix = 'obfsproxy-' # dirname... | #!/usr/bin/env python
import sys
from setuptools import setup, find_packages
import versioneer
versioneer.versionfile_source = 'obfsproxy/_version.py'
versioneer.versionfile_build = 'obfsproxy/_version.py'
versioneer.tag_prefix = 'obfsproxy-' # tags are like 1.2.0
versioneer.parentdir_prefix = 'obfsproxy-' # dirname... | <commit_before>#!/usr/bin/env python
import sys
from setuptools import setup, find_packages
import versioneer
versioneer.versionfile_source = 'obfsproxy/_version.py'
versioneer.versionfile_build = 'obfsproxy/_version.py'
versioneer.tag_prefix = 'obfsproxy-' # tags are like 1.2.0
versioneer.parentdir_prefix = 'obfspr... |
5b7685131030249cd1a6213eca8134e782e8d12d | setup.py | setup.py | import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
requirements = [req.strip() for req in open('requirements.pip')]
setup(
name = 'leaderboard',
version = "2.0.0",
author = 'David Czarnecki',
author_email = "[email protected]",
packages = ['leaderb... | import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
requirements = [req.strip() for req in open('requirements.pip')]
setup(
name = 'leaderboard',
version = "2.0.0",
author = 'David Czarnecki',
author_email = "[email protected]",
packages = ['leaderb... | Use the correct classifier for production | Use the correct classifier for production
| Python | mit | agoragames/leaderboard-python,SixMinute/leaderboard-python | import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
requirements = [req.strip() for req in open('requirements.pip')]
setup(
name = 'leaderboard',
version = "2.0.0",
author = 'David Czarnecki',
author_email = "[email protected]",
packages = ['leaderb... | import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
requirements = [req.strip() for req in open('requirements.pip')]
setup(
name = 'leaderboard',
version = "2.0.0",
author = 'David Czarnecki',
author_email = "[email protected]",
packages = ['leaderb... | <commit_before>import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
requirements = [req.strip() for req in open('requirements.pip')]
setup(
name = 'leaderboard',
version = "2.0.0",
author = 'David Czarnecki',
author_email = "[email protected]",
packa... | import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
requirements = [req.strip() for req in open('requirements.pip')]
setup(
name = 'leaderboard',
version = "2.0.0",
author = 'David Czarnecki',
author_email = "[email protected]",
packages = ['leaderb... | import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
requirements = [req.strip() for req in open('requirements.pip')]
setup(
name = 'leaderboard',
version = "2.0.0",
author = 'David Czarnecki',
author_email = "[email protected]",
packages = ['leaderb... | <commit_before>import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
requirements = [req.strip() for req in open('requirements.pip')]
setup(
name = 'leaderboard',
version = "2.0.0",
author = 'David Czarnecki',
author_email = "[email protected]",
packa... |
e889c0420a0770d2be633af5ad2b20fb27e0d05c | setup.py | setup.py | import codecs
from setuptools import find_packages, setup
import digestive
setup(
name='digestive',
version=digestive.__version__,
url='https://github.com/akaIDIOT/Digestive',
packages=find_packages(),
description='TODO',
author='Mattijs Ugen',
author_email=codecs.encode('[email protected]... | import codecs
from setuptools import find_packages, setup
import digestive
setup(
name='digestive',
version=digestive.__version__,
url='https://github.com/akaIDIOT/Digestive',
packages=find_packages(),
description='TODO',
author='Mattijs Ugen',
author_email=codecs.encode('[email protected]... | Use console_scripts entry_point instead of scripts | Use console_scripts entry_point instead of scripts
| Python | isc | akaIDIOT/Digestive | import codecs
from setuptools import find_packages, setup
import digestive
setup(
name='digestive',
version=digestive.__version__,
url='https://github.com/akaIDIOT/Digestive',
packages=find_packages(),
description='TODO',
author='Mattijs Ugen',
author_email=codecs.encode('[email protected]... | import codecs
from setuptools import find_packages, setup
import digestive
setup(
name='digestive',
version=digestive.__version__,
url='https://github.com/akaIDIOT/Digestive',
packages=find_packages(),
description='TODO',
author='Mattijs Ugen',
author_email=codecs.encode('[email protected]... | <commit_before>import codecs
from setuptools import find_packages, setup
import digestive
setup(
name='digestive',
version=digestive.__version__,
url='https://github.com/akaIDIOT/Digestive',
packages=find_packages(),
description='TODO',
author='Mattijs Ugen',
author_email=codecs.encode('n... | import codecs
from setuptools import find_packages, setup
import digestive
setup(
name='digestive',
version=digestive.__version__,
url='https://github.com/akaIDIOT/Digestive',
packages=find_packages(),
description='TODO',
author='Mattijs Ugen',
author_email=codecs.encode('[email protected]... | import codecs
from setuptools import find_packages, setup
import digestive
setup(
name='digestive',
version=digestive.__version__,
url='https://github.com/akaIDIOT/Digestive',
packages=find_packages(),
description='TODO',
author='Mattijs Ugen',
author_email=codecs.encode('[email protected]... | <commit_before>import codecs
from setuptools import find_packages, setup
import digestive
setup(
name='digestive',
version=digestive.__version__,
url='https://github.com/akaIDIOT/Digestive',
packages=find_packages(),
description='TODO',
author='Mattijs Ugen',
author_email=codecs.encode('n... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.