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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
120225323011a53d4a0564d0fcfe834d9ac27062 | build.py | build.py | import argparse
import os
import string
def generate_rpm_spec(template, patch_file):
spec_template = string.Template(template)
base_name, _ = os.path.splitext(patch_file)
values = {
'name': 'kpatch-module-{}'.format(base_name),
'patch_file': patch_file,
'kmod_filename': 'kpatch-{... | import argparse
import os
import string
def generate_rpm_spec(template, patch_file):
spec_template = string.Template(template)
base_name, _ = os.path.splitext(patch_file)
values = {
'name': 'kpatch-module-{}'.format(base_name),
'patch_file': patch_file,
'kmod_filename': 'kpatch-{... | Split arg parsing into function | Split arg parsing into function
| Python | mit | centos-livepatching/kpatch-package-builder | import argparse
import os
import string
def generate_rpm_spec(template, patch_file):
spec_template = string.Template(template)
base_name, _ = os.path.splitext(patch_file)
values = {
'name': 'kpatch-module-{}'.format(base_name),
'patch_file': patch_file,
'kmod_filename': 'kpatch-{... | import argparse
import os
import string
def generate_rpm_spec(template, patch_file):
spec_template = string.Template(template)
base_name, _ = os.path.splitext(patch_file)
values = {
'name': 'kpatch-module-{}'.format(base_name),
'patch_file': patch_file,
'kmod_filename': 'kpatch-{... | <commit_before>import argparse
import os
import string
def generate_rpm_spec(template, patch_file):
spec_template = string.Template(template)
base_name, _ = os.path.splitext(patch_file)
values = {
'name': 'kpatch-module-{}'.format(base_name),
'patch_file': patch_file,
'kmod_filen... | import argparse
import os
import string
def generate_rpm_spec(template, patch_file):
spec_template = string.Template(template)
base_name, _ = os.path.splitext(patch_file)
values = {
'name': 'kpatch-module-{}'.format(base_name),
'patch_file': patch_file,
'kmod_filename': 'kpatch-{... | import argparse
import os
import string
def generate_rpm_spec(template, patch_file):
spec_template = string.Template(template)
base_name, _ = os.path.splitext(patch_file)
values = {
'name': 'kpatch-module-{}'.format(base_name),
'patch_file': patch_file,
'kmod_filename': 'kpatch-{... | <commit_before>import argparse
import os
import string
def generate_rpm_spec(template, patch_file):
spec_template = string.Template(template)
base_name, _ = os.path.splitext(patch_file)
values = {
'name': 'kpatch-module-{}'.format(base_name),
'patch_file': patch_file,
'kmod_filen... |
511030652f4f411b4a97e3412899c6c7980348d4 | dailydevo/cac_actions.py | dailydevo/cac_actions.py | # coding=utf8
# Local modules
from common import debug
from common.action import action_classes
from common.telegram import telegram_utils
from dailydevo import cac_utils
class CACDevoAction(action_classes.Action):
def identifier(self):
return "/cacdevo"
def name(self):
return "Center for Ac... | # coding=utf8
# Local modules
from common import debug
from common.action import action_classes
from common.telegram import telegram_utils
from dailydevo import cac_utils
class CACDevoAction(action_classes.Action):
def identifier(self):
return "/cacdevo"
def name(self):
return "Center for Ac... | Fix for CACDevo hidden functionality | Fix for CACDevo hidden functionality
| Python | mit | julwrites/biblicabot | # coding=utf8
# Local modules
from common import debug
from common.action import action_classes
from common.telegram import telegram_utils
from dailydevo import cac_utils
class CACDevoAction(action_classes.Action):
def identifier(self):
return "/cacdevo"
def name(self):
return "Center for Ac... | # coding=utf8
# Local modules
from common import debug
from common.action import action_classes
from common.telegram import telegram_utils
from dailydevo import cac_utils
class CACDevoAction(action_classes.Action):
def identifier(self):
return "/cacdevo"
def name(self):
return "Center for Ac... | <commit_before># coding=utf8
# Local modules
from common import debug
from common.action import action_classes
from common.telegram import telegram_utils
from dailydevo import cac_utils
class CACDevoAction(action_classes.Action):
def identifier(self):
return "/cacdevo"
def name(self):
return... | # coding=utf8
# Local modules
from common import debug
from common.action import action_classes
from common.telegram import telegram_utils
from dailydevo import cac_utils
class CACDevoAction(action_classes.Action):
def identifier(self):
return "/cacdevo"
def name(self):
return "Center for Ac... | # coding=utf8
# Local modules
from common import debug
from common.action import action_classes
from common.telegram import telegram_utils
from dailydevo import cac_utils
class CACDevoAction(action_classes.Action):
def identifier(self):
return "/cacdevo"
def name(self):
return "Center for Ac... | <commit_before># coding=utf8
# Local modules
from common import debug
from common.action import action_classes
from common.telegram import telegram_utils
from dailydevo import cac_utils
class CACDevoAction(action_classes.Action):
def identifier(self):
return "/cacdevo"
def name(self):
return... |
b2d2f4e4bde02570e51537d4db72cebcba63c1f5 | malcolm/modules/builtin/parts/labelpart.py | malcolm/modules/builtin/parts/labelpart.py | from annotypes import Anno
from malcolm.core import Part, PartRegistrar, StringMeta
from ..infos import LabelInfo
from ..util import set_tags
with Anno("Initial value of Block label"):
ALabelValue = str
class LabelPart(Part):
"""Part representing a the title of the Block a GUI should display"""
def __i... | from annotypes import Anno
from malcolm.core import Part, PartRegistrar, StringMeta
from ..infos import LabelInfo
from ..util import set_tags
with Anno("Initial value of Block label"):
ALabelValue = str
class LabelPart(Part):
"""Part representing a the title of the Block a GUI should display"""
def __i... | Fix LabelPart to always report the validated set value | Fix LabelPart to always report the validated set value
| Python | apache-2.0 | dls-controls/pymalcolm,dls-controls/pymalcolm,dls-controls/pymalcolm | from annotypes import Anno
from malcolm.core import Part, PartRegistrar, StringMeta
from ..infos import LabelInfo
from ..util import set_tags
with Anno("Initial value of Block label"):
ALabelValue = str
class LabelPart(Part):
"""Part representing a the title of the Block a GUI should display"""
def __i... | from annotypes import Anno
from malcolm.core import Part, PartRegistrar, StringMeta
from ..infos import LabelInfo
from ..util import set_tags
with Anno("Initial value of Block label"):
ALabelValue = str
class LabelPart(Part):
"""Part representing a the title of the Block a GUI should display"""
def __i... | <commit_before>from annotypes import Anno
from malcolm.core import Part, PartRegistrar, StringMeta
from ..infos import LabelInfo
from ..util import set_tags
with Anno("Initial value of Block label"):
ALabelValue = str
class LabelPart(Part):
"""Part representing a the title of the Block a GUI should display... | from annotypes import Anno
from malcolm.core import Part, PartRegistrar, StringMeta
from ..infos import LabelInfo
from ..util import set_tags
with Anno("Initial value of Block label"):
ALabelValue = str
class LabelPart(Part):
"""Part representing a the title of the Block a GUI should display"""
def __i... | from annotypes import Anno
from malcolm.core import Part, PartRegistrar, StringMeta
from ..infos import LabelInfo
from ..util import set_tags
with Anno("Initial value of Block label"):
ALabelValue = str
class LabelPart(Part):
"""Part representing a the title of the Block a GUI should display"""
def __i... | <commit_before>from annotypes import Anno
from malcolm.core import Part, PartRegistrar, StringMeta
from ..infos import LabelInfo
from ..util import set_tags
with Anno("Initial value of Block label"):
ALabelValue = str
class LabelPart(Part):
"""Part representing a the title of the Block a GUI should display... |
8aec91209521d7f2701e63c681f4b765c1b2c6bb | src/program/lwaftr/tests/subcommands/run_test.py | src/program/lwaftr/tests/subcommands/run_test.py | """
Test the "snabb lwaftr run" subcommand. Needs NIC names.
"""
import unittest
from test_env import DATA_DIR, SNABB_CMD, BaseTestCase, nic_names
SNABB_PCI0, SNABB_PCI1 = nic_names()
@unittest.skipUnless(SNABB_PCI0 and SNABB_PCI1, 'NICs not configured')
class TestRun(BaseTestCase):
cmd_args = (
str(S... | """
Test the "snabb lwaftr run" subcommand. Needs NIC names.
"""
import unittest
from test_env import DATA_DIR, SNABB_CMD, BaseTestCase, nic_names, ENC
SNABB_PCI0, SNABB_PCI1 = nic_names()
@unittest.skipUnless(SNABB_PCI0 and SNABB_PCI1, 'NICs not configured')
class TestRun(BaseTestCase):
cmd_args = (
... | Add test for migration using --on-a-stick command | Add test for migration using --on-a-stick command
When --on-a-stick command is used with a single instance defined it
should migrate the instance to work in a stick (replace the device
with the one provided in the flag and remove the device in
`external-device`). It just checks that it works by not crashing and
says ... | Python | apache-2.0 | alexandergall/snabbswitch,Igalia/snabbswitch,snabbco/snabb,snabbco/snabb,snabbco/snabb,dpino/snabbswitch,dpino/snabb,eugeneia/snabb,Igalia/snabb,dpino/snabb,eugeneia/snabb,eugeneia/snabbswitch,eugeneia/snabb,SnabbCo/snabbswitch,eugeneia/snabb,Igalia/snabb,eugeneia/snabb,snabbco/snabb,eugeneia/snabb,Igalia/snabb,dpino/s... | """
Test the "snabb lwaftr run" subcommand. Needs NIC names.
"""
import unittest
from test_env import DATA_DIR, SNABB_CMD, BaseTestCase, nic_names
SNABB_PCI0, SNABB_PCI1 = nic_names()
@unittest.skipUnless(SNABB_PCI0 and SNABB_PCI1, 'NICs not configured')
class TestRun(BaseTestCase):
cmd_args = (
str(S... | """
Test the "snabb lwaftr run" subcommand. Needs NIC names.
"""
import unittest
from test_env import DATA_DIR, SNABB_CMD, BaseTestCase, nic_names, ENC
SNABB_PCI0, SNABB_PCI1 = nic_names()
@unittest.skipUnless(SNABB_PCI0 and SNABB_PCI1, 'NICs not configured')
class TestRun(BaseTestCase):
cmd_args = (
... | <commit_before>"""
Test the "snabb lwaftr run" subcommand. Needs NIC names.
"""
import unittest
from test_env import DATA_DIR, SNABB_CMD, BaseTestCase, nic_names
SNABB_PCI0, SNABB_PCI1 = nic_names()
@unittest.skipUnless(SNABB_PCI0 and SNABB_PCI1, 'NICs not configured')
class TestRun(BaseTestCase):
cmd_args = ... | """
Test the "snabb lwaftr run" subcommand. Needs NIC names.
"""
import unittest
from test_env import DATA_DIR, SNABB_CMD, BaseTestCase, nic_names, ENC
SNABB_PCI0, SNABB_PCI1 = nic_names()
@unittest.skipUnless(SNABB_PCI0 and SNABB_PCI1, 'NICs not configured')
class TestRun(BaseTestCase):
cmd_args = (
... | """
Test the "snabb lwaftr run" subcommand. Needs NIC names.
"""
import unittest
from test_env import DATA_DIR, SNABB_CMD, BaseTestCase, nic_names
SNABB_PCI0, SNABB_PCI1 = nic_names()
@unittest.skipUnless(SNABB_PCI0 and SNABB_PCI1, 'NICs not configured')
class TestRun(BaseTestCase):
cmd_args = (
str(S... | <commit_before>"""
Test the "snabb lwaftr run" subcommand. Needs NIC names.
"""
import unittest
from test_env import DATA_DIR, SNABB_CMD, BaseTestCase, nic_names
SNABB_PCI0, SNABB_PCI1 = nic_names()
@unittest.skipUnless(SNABB_PCI0 and SNABB_PCI1, 'NICs not configured')
class TestRun(BaseTestCase):
cmd_args = ... |
2bdc9561461dbd830285ca1478f828b0b89ac727 | tests/extensions/functional/show_chrome.py | tests/extensions/functional/show_chrome.py | """
Show chrome with extension loaded.
Useful for DOM HTML tree elements inspection with
chrome extension loaded, like when running the tests.
"""
from tests.base import TestBaseTouchscreen
from tests.base import MAPS_URL
klass = TestBaseTouchscreen
klass.setup_class()
# if browser automatically redirects to nat... | """
Show chrome with extension loaded.
Useful for DOM HTML tree elements inspection with
chrome extension loaded, like when running the tests.
"""
from tests.base import TestBaseTouchscreen
from tests.base import MAPS_URL
klass = TestBaseTouchscreen
klass.setup_class()
# if browser automatically redirects to nat... | Add test to print information about chrome version | Add test to print information about chrome version
| Python | apache-2.0 | EndPointCorp/appctl,EndPointCorp/appctl | """
Show chrome with extension loaded.
Useful for DOM HTML tree elements inspection with
chrome extension loaded, like when running the tests.
"""
from tests.base import TestBaseTouchscreen
from tests.base import MAPS_URL
klass = TestBaseTouchscreen
klass.setup_class()
# if browser automatically redirects to nat... | """
Show chrome with extension loaded.
Useful for DOM HTML tree elements inspection with
chrome extension loaded, like when running the tests.
"""
from tests.base import TestBaseTouchscreen
from tests.base import MAPS_URL
klass = TestBaseTouchscreen
klass.setup_class()
# if browser automatically redirects to nat... | <commit_before>"""
Show chrome with extension loaded.
Useful for DOM HTML tree elements inspection with
chrome extension loaded, like when running the tests.
"""
from tests.base import TestBaseTouchscreen
from tests.base import MAPS_URL
klass = TestBaseTouchscreen
klass.setup_class()
# if browser automatically r... | """
Show chrome with extension loaded.
Useful for DOM HTML tree elements inspection with
chrome extension loaded, like when running the tests.
"""
from tests.base import TestBaseTouchscreen
from tests.base import MAPS_URL
klass = TestBaseTouchscreen
klass.setup_class()
# if browser automatically redirects to nat... | """
Show chrome with extension loaded.
Useful for DOM HTML tree elements inspection with
chrome extension loaded, like when running the tests.
"""
from tests.base import TestBaseTouchscreen
from tests.base import MAPS_URL
klass = TestBaseTouchscreen
klass.setup_class()
# if browser automatically redirects to nat... | <commit_before>"""
Show chrome with extension loaded.
Useful for DOM HTML tree elements inspection with
chrome extension loaded, like when running the tests.
"""
from tests.base import TestBaseTouchscreen
from tests.base import MAPS_URL
klass = TestBaseTouchscreen
klass.setup_class()
# if browser automatically r... |
22b87959099056e8189f40805bb8320c2cfbfb57 | go/api/go_api/tests/test_action_dispatcher.py | go/api/go_api/tests/test_action_dispatcher.py | """Tests for go.api.go_api.action_dispatcher."""
from twisted.trial.unittest import TestCase
from go.api.go_api.action_dispatcher import (
ActionDispatcher, ActionError, ConversationActionDispatcher,
RouterActionDispatcher)
class ActionDispatcherTestCase(TestCase):
def test_dispatcher_type_name(self):
... | """Tests for go.api.go_api.action_dispatcher."""
from mock import Mock
from twisted.trial.unittest import TestCase
from vumi.tests.utils import LogCatcher
from go.api.go_api.action_dispatcher import (
ActionDispatcher, ActionError, ConversationActionDispatcher,
RouterActionDispatcher)
class ActionDispatch... | Add tests for unknown_action and dispatching to action handlers that generate exceptions. | Add tests for unknown_action and dispatching to action handlers that generate exceptions.
| Python | bsd-3-clause | praekelt/vumi-go,praekelt/vumi-go,praekelt/vumi-go,praekelt/vumi-go | """Tests for go.api.go_api.action_dispatcher."""
from twisted.trial.unittest import TestCase
from go.api.go_api.action_dispatcher import (
ActionDispatcher, ActionError, ConversationActionDispatcher,
RouterActionDispatcher)
class ActionDispatcherTestCase(TestCase):
def test_dispatcher_type_name(self):
... | """Tests for go.api.go_api.action_dispatcher."""
from mock import Mock
from twisted.trial.unittest import TestCase
from vumi.tests.utils import LogCatcher
from go.api.go_api.action_dispatcher import (
ActionDispatcher, ActionError, ConversationActionDispatcher,
RouterActionDispatcher)
class ActionDispatch... | <commit_before>"""Tests for go.api.go_api.action_dispatcher."""
from twisted.trial.unittest import TestCase
from go.api.go_api.action_dispatcher import (
ActionDispatcher, ActionError, ConversationActionDispatcher,
RouterActionDispatcher)
class ActionDispatcherTestCase(TestCase):
def test_dispatcher_typ... | """Tests for go.api.go_api.action_dispatcher."""
from mock import Mock
from twisted.trial.unittest import TestCase
from vumi.tests.utils import LogCatcher
from go.api.go_api.action_dispatcher import (
ActionDispatcher, ActionError, ConversationActionDispatcher,
RouterActionDispatcher)
class ActionDispatch... | """Tests for go.api.go_api.action_dispatcher."""
from twisted.trial.unittest import TestCase
from go.api.go_api.action_dispatcher import (
ActionDispatcher, ActionError, ConversationActionDispatcher,
RouterActionDispatcher)
class ActionDispatcherTestCase(TestCase):
def test_dispatcher_type_name(self):
... | <commit_before>"""Tests for go.api.go_api.action_dispatcher."""
from twisted.trial.unittest import TestCase
from go.api.go_api.action_dispatcher import (
ActionDispatcher, ActionError, ConversationActionDispatcher,
RouterActionDispatcher)
class ActionDispatcherTestCase(TestCase):
def test_dispatcher_typ... |
61574797dd211773cc065c73df450e76d930b698 | puzzlehunt_server/settings/env_settings.py | puzzlehunt_server/settings/env_settings.py | from .base_settings import *
import dj_database_url
import os
DEBUG = os.environ.get("DJANGO_ENABLE_DEBUG").lower() == "true"
SECRET_KEY = os.environ.get("DJANGO_SECRET_KEY")
DATABASES = {'default': dj_database_url.config(conn_max_age=600)}
if(DATABASES['default']['ENGINE'] == 'django.db.backends.mysql'):
DATABASES[... | from .base_settings import *
import dj_database_url
import os
DEBUG = os.getenv("DJANGO_ENABLE_DEBUG", default="False").lower() == "true"
SECRET_KEY = os.environ.get("DJANGO_SECRET_KEY")
DATABASES = {'default': dj_database_url.config(conn_max_age=600)}
if(DATABASES['default']['ENGINE'] == 'django.db.backends.mysql'):... | Fix for when debug isn't specified | Fix for when debug isn't specified
| Python | mit | dlareau/puzzlehunt_server,dlareau/puzzlehunt_server,dlareau/puzzlehunt_server,dlareau/puzzlehunt_server | from .base_settings import *
import dj_database_url
import os
DEBUG = os.environ.get("DJANGO_ENABLE_DEBUG").lower() == "true"
SECRET_KEY = os.environ.get("DJANGO_SECRET_KEY")
DATABASES = {'default': dj_database_url.config(conn_max_age=600)}
if(DATABASES['default']['ENGINE'] == 'django.db.backends.mysql'):
DATABASES[... | from .base_settings import *
import dj_database_url
import os
DEBUG = os.getenv("DJANGO_ENABLE_DEBUG", default="False").lower() == "true"
SECRET_KEY = os.environ.get("DJANGO_SECRET_KEY")
DATABASES = {'default': dj_database_url.config(conn_max_age=600)}
if(DATABASES['default']['ENGINE'] == 'django.db.backends.mysql'):... | <commit_before>from .base_settings import *
import dj_database_url
import os
DEBUG = os.environ.get("DJANGO_ENABLE_DEBUG").lower() == "true"
SECRET_KEY = os.environ.get("DJANGO_SECRET_KEY")
DATABASES = {'default': dj_database_url.config(conn_max_age=600)}
if(DATABASES['default']['ENGINE'] == 'django.db.backends.mysql... | from .base_settings import *
import dj_database_url
import os
DEBUG = os.getenv("DJANGO_ENABLE_DEBUG", default="False").lower() == "true"
SECRET_KEY = os.environ.get("DJANGO_SECRET_KEY")
DATABASES = {'default': dj_database_url.config(conn_max_age=600)}
if(DATABASES['default']['ENGINE'] == 'django.db.backends.mysql'):... | from .base_settings import *
import dj_database_url
import os
DEBUG = os.environ.get("DJANGO_ENABLE_DEBUG").lower() == "true"
SECRET_KEY = os.environ.get("DJANGO_SECRET_KEY")
DATABASES = {'default': dj_database_url.config(conn_max_age=600)}
if(DATABASES['default']['ENGINE'] == 'django.db.backends.mysql'):
DATABASES[... | <commit_before>from .base_settings import *
import dj_database_url
import os
DEBUG = os.environ.get("DJANGO_ENABLE_DEBUG").lower() == "true"
SECRET_KEY = os.environ.get("DJANGO_SECRET_KEY")
DATABASES = {'default': dj_database_url.config(conn_max_age=600)}
if(DATABASES['default']['ENGINE'] == 'django.db.backends.mysql... |
1c9eed527c60666f43d807be786ad3be5499282e | changes/api/project_commit_details.py | changes/api/project_commit_details.py | from __future__ import absolute_import, division, unicode_literals
from changes.api.base import APIView
from changes.models import Project, Revision
class ProjectCommitDetailsAPIView(APIView):
def get(self, project_id, commit_id):
project = Project.get(project_id)
if not project:
retu... | from __future__ import absolute_import, division, unicode_literals
from changes.api.base import APIView
from changes.models import Project, Revision
class ProjectCommitDetailsAPIView(APIView):
def get(self, project_id, commit_id):
project = Project.get(project_id)
if not project:
retu... | Correct commit details to use an outerjoin | Correct commit details to use an outerjoin
| Python | apache-2.0 | dropbox/changes,dropbox/changes,wfxiang08/changes,bowlofstew/changes,bowlofstew/changes,bowlofstew/changes,dropbox/changes,bowlofstew/changes,wfxiang08/changes,dropbox/changes,wfxiang08/changes,wfxiang08/changes | from __future__ import absolute_import, division, unicode_literals
from changes.api.base import APIView
from changes.models import Project, Revision
class ProjectCommitDetailsAPIView(APIView):
def get(self, project_id, commit_id):
project = Project.get(project_id)
if not project:
retu... | from __future__ import absolute_import, division, unicode_literals
from changes.api.base import APIView
from changes.models import Project, Revision
class ProjectCommitDetailsAPIView(APIView):
def get(self, project_id, commit_id):
project = Project.get(project_id)
if not project:
retu... | <commit_before>from __future__ import absolute_import, division, unicode_literals
from changes.api.base import APIView
from changes.models import Project, Revision
class ProjectCommitDetailsAPIView(APIView):
def get(self, project_id, commit_id):
project = Project.get(project_id)
if not project:
... | from __future__ import absolute_import, division, unicode_literals
from changes.api.base import APIView
from changes.models import Project, Revision
class ProjectCommitDetailsAPIView(APIView):
def get(self, project_id, commit_id):
project = Project.get(project_id)
if not project:
retu... | from __future__ import absolute_import, division, unicode_literals
from changes.api.base import APIView
from changes.models import Project, Revision
class ProjectCommitDetailsAPIView(APIView):
def get(self, project_id, commit_id):
project = Project.get(project_id)
if not project:
retu... | <commit_before>from __future__ import absolute_import, division, unicode_literals
from changes.api.base import APIView
from changes.models import Project, Revision
class ProjectCommitDetailsAPIView(APIView):
def get(self, project_id, commit_id):
project = Project.get(project_id)
if not project:
... |
046fe99e4e2de0503c44555287eedaedc56ef280 | skimage/filters/tests/test_filter_import.py | skimage/filters/tests/test_filter_import.py | from warnings import catch_warnings, simplefilter
def test_filter_import():
with catch_warnings():
simplefilter('ignore')
from skimage import filter as F
assert('sobel' in dir(F))
assert any(['has been renamed' in w
for (w, _, _) in F.__warningregistry__]), F.__warningregi... | from warnings import catch_warnings, simplefilter
def test_filter_import():
with catch_warnings():
simplefilter('always')
from skimage import filter as F
assert('sobel' in dir(F))
assert any(['has been renamed' in w
for (w, _, _) in F.__warningregistry__])
| Make sure warning is raised upon import | Make sure warning is raised upon import
| Python | bsd-3-clause | bennlich/scikit-image,vighneshbirodkar/scikit-image,ofgulban/scikit-image,youprofit/scikit-image,pratapvardhan/scikit-image,robintw/scikit-image,ofgulban/scikit-image,GaZ3ll3/scikit-image,Midafi/scikit-image,Britefury/scikit-image,pratapvardhan/scikit-image,ofgulban/scikit-image,Hiyorimi/scikit-image,Britefury/scikit-i... | from warnings import catch_warnings, simplefilter
def test_filter_import():
with catch_warnings():
simplefilter('ignore')
from skimage import filter as F
assert('sobel' in dir(F))
assert any(['has been renamed' in w
for (w, _, _) in F.__warningregistry__]), F.__warningregi... | from warnings import catch_warnings, simplefilter
def test_filter_import():
with catch_warnings():
simplefilter('always')
from skimage import filter as F
assert('sobel' in dir(F))
assert any(['has been renamed' in w
for (w, _, _) in F.__warningregistry__])
| <commit_before>from warnings import catch_warnings, simplefilter
def test_filter_import():
with catch_warnings():
simplefilter('ignore')
from skimage import filter as F
assert('sobel' in dir(F))
assert any(['has been renamed' in w
for (w, _, _) in F.__warningregistry__]), ... | from warnings import catch_warnings, simplefilter
def test_filter_import():
with catch_warnings():
simplefilter('always')
from skimage import filter as F
assert('sobel' in dir(F))
assert any(['has been renamed' in w
for (w, _, _) in F.__warningregistry__])
| from warnings import catch_warnings, simplefilter
def test_filter_import():
with catch_warnings():
simplefilter('ignore')
from skimage import filter as F
assert('sobel' in dir(F))
assert any(['has been renamed' in w
for (w, _, _) in F.__warningregistry__]), F.__warningregi... | <commit_before>from warnings import catch_warnings, simplefilter
def test_filter_import():
with catch_warnings():
simplefilter('ignore')
from skimage import filter as F
assert('sobel' in dir(F))
assert any(['has been renamed' in w
for (w, _, _) in F.__warningregistry__]), ... |
d3f72f3ded76fb49eedb0c93c58211aab0231b97 | jetson/networkTable.py | jetson/networkTable.py | import time
from networktables import NetworkTables
rioIP = '10.58.06.2' # this shouldn't change
tableName = 'JetsonToRio' # should be same in rio's java NT program
def initTable():
NetworkTables.initialize(server=rioIP)
return NetworkTables.getTable(tableName)
def pushVals(table, jetsonVals):
table.putNumberArra... | import time
from networktables import NetworkTables
def initTable():
NetworkTables.initialize(server=rioIP)
return NetworkTables.getTable(tableName)
def pushVals(table, jetsonVals):
table.putNumberArray(jetsonVals)
class NetworkInterface(object):
"""docstring for NetworkInterface."""
rioIP = '10.58.06.2' # t... | Put network table interface in class format | Put network table interface in class format
| Python | mit | frc5806/Steamworks,frc5806/Steamworks,frc5806/Steamworks,frc5806/Steamworks | import time
from networktables import NetworkTables
rioIP = '10.58.06.2' # this shouldn't change
tableName = 'JetsonToRio' # should be same in rio's java NT program
def initTable():
NetworkTables.initialize(server=rioIP)
return NetworkTables.getTable(tableName)
def pushVals(table, jetsonVals):
table.putNumberArra... | import time
from networktables import NetworkTables
def initTable():
NetworkTables.initialize(server=rioIP)
return NetworkTables.getTable(tableName)
def pushVals(table, jetsonVals):
table.putNumberArray(jetsonVals)
class NetworkInterface(object):
"""docstring for NetworkInterface."""
rioIP = '10.58.06.2' # t... | <commit_before>import time
from networktables import NetworkTables
rioIP = '10.58.06.2' # this shouldn't change
tableName = 'JetsonToRio' # should be same in rio's java NT program
def initTable():
NetworkTables.initialize(server=rioIP)
return NetworkTables.getTable(tableName)
def pushVals(table, jetsonVals):
tabl... | import time
from networktables import NetworkTables
def initTable():
NetworkTables.initialize(server=rioIP)
return NetworkTables.getTable(tableName)
def pushVals(table, jetsonVals):
table.putNumberArray(jetsonVals)
class NetworkInterface(object):
"""docstring for NetworkInterface."""
rioIP = '10.58.06.2' # t... | import time
from networktables import NetworkTables
rioIP = '10.58.06.2' # this shouldn't change
tableName = 'JetsonToRio' # should be same in rio's java NT program
def initTable():
NetworkTables.initialize(server=rioIP)
return NetworkTables.getTable(tableName)
def pushVals(table, jetsonVals):
table.putNumberArra... | <commit_before>import time
from networktables import NetworkTables
rioIP = '10.58.06.2' # this shouldn't change
tableName = 'JetsonToRio' # should be same in rio's java NT program
def initTable():
NetworkTables.initialize(server=rioIP)
return NetworkTables.getTable(tableName)
def pushVals(table, jetsonVals):
tabl... |
e17d8f9b8bd09b1b96cad3e61961f3833d2e486c | dataverse/file.py | dataverse/file.py | from __future__ import absolute_import
from dataverse.utils import sanitize
class DataverseFile(object):
def __init__(self, dataset, name, file_id=None):
self.dataset = dataset
self.name = sanitize(name)
self.id = file_id
self.download_url = '{0}/access/datafile/{1}'.format(
... | from __future__ import absolute_import
from dataverse.utils import sanitize
class DataverseFile(object):
def __init__(self, dataset, name, file_id=None):
self.dataset = dataset
self.name = sanitize(name)
self.id = file_id
self.download_url = '{0}/access/datafile/{1}'.format(
... | Fix 'class DataverseFile' to handle old and new response format Tests were failing after swith to new server/version | Fix 'class DataverseFile' to handle old and new response format
Tests were failing after swith to new server/version
| Python | apache-2.0 | CenterForOpenScience/dataverse-client-python,IQSS/dataverse-client-python | from __future__ import absolute_import
from dataverse.utils import sanitize
class DataverseFile(object):
def __init__(self, dataset, name, file_id=None):
self.dataset = dataset
self.name = sanitize(name)
self.id = file_id
self.download_url = '{0}/access/datafile/{1}'.format(
... | from __future__ import absolute_import
from dataverse.utils import sanitize
class DataverseFile(object):
def __init__(self, dataset, name, file_id=None):
self.dataset = dataset
self.name = sanitize(name)
self.id = file_id
self.download_url = '{0}/access/datafile/{1}'.format(
... | <commit_before>from __future__ import absolute_import
from dataverse.utils import sanitize
class DataverseFile(object):
def __init__(self, dataset, name, file_id=None):
self.dataset = dataset
self.name = sanitize(name)
self.id = file_id
self.download_url = '{0}/access/datafile/{1... | from __future__ import absolute_import
from dataverse.utils import sanitize
class DataverseFile(object):
def __init__(self, dataset, name, file_id=None):
self.dataset = dataset
self.name = sanitize(name)
self.id = file_id
self.download_url = '{0}/access/datafile/{1}'.format(
... | from __future__ import absolute_import
from dataverse.utils import sanitize
class DataverseFile(object):
def __init__(self, dataset, name, file_id=None):
self.dataset = dataset
self.name = sanitize(name)
self.id = file_id
self.download_url = '{0}/access/datafile/{1}'.format(
... | <commit_before>from __future__ import absolute_import
from dataverse.utils import sanitize
class DataverseFile(object):
def __init__(self, dataset, name, file_id=None):
self.dataset = dataset
self.name = sanitize(name)
self.id = file_id
self.download_url = '{0}/access/datafile/{1... |
a7f5315633b5b3787593205cc7dc540023baf7ad | scripts/print_view_controller_hierarchy.py | scripts/print_view_controller_hierarchy.py | """Prints the current view controller hierarchy.
Usage: pvc
"""
def print_view_controller_hierarchy(debugger, command, result, internal_dict):
debugger.HandleCommand('po [[[UIWindow keyWindow] rootViewController] _printHierarchy]')
def __lldb_init_module(debugger, internal_dict):
debugger.HandleCommand('command ... | """Prints the current view controller hierarchy.
Usage: pvc
"""
def print_view_controller_hierarchy(debugger, command, result, internal_dict):
debugger.GetCommandInterpreter().HandleCommand('po [[[UIWindow keyWindow] rootViewController] _printHierarchy]', result)
def __lldb_init_module(debugger, internal_dict):
d... | Update the script to grab the results. This is needed for the tests. | Update the script to grab the results. This is needed for the tests.
| Python | mit | mrhappyasthma/happydebugging,mrhappyasthma/HappyDebugging | """Prints the current view controller hierarchy.
Usage: pvc
"""
def print_view_controller_hierarchy(debugger, command, result, internal_dict):
debugger.HandleCommand('po [[[UIWindow keyWindow] rootViewController] _printHierarchy]')
def __lldb_init_module(debugger, internal_dict):
debugger.HandleCommand('command ... | """Prints the current view controller hierarchy.
Usage: pvc
"""
def print_view_controller_hierarchy(debugger, command, result, internal_dict):
debugger.GetCommandInterpreter().HandleCommand('po [[[UIWindow keyWindow] rootViewController] _printHierarchy]', result)
def __lldb_init_module(debugger, internal_dict):
d... | <commit_before>"""Prints the current view controller hierarchy.
Usage: pvc
"""
def print_view_controller_hierarchy(debugger, command, result, internal_dict):
debugger.HandleCommand('po [[[UIWindow keyWindow] rootViewController] _printHierarchy]')
def __lldb_init_module(debugger, internal_dict):
debugger.HandleCo... | """Prints the current view controller hierarchy.
Usage: pvc
"""
def print_view_controller_hierarchy(debugger, command, result, internal_dict):
debugger.GetCommandInterpreter().HandleCommand('po [[[UIWindow keyWindow] rootViewController] _printHierarchy]', result)
def __lldb_init_module(debugger, internal_dict):
d... | """Prints the current view controller hierarchy.
Usage: pvc
"""
def print_view_controller_hierarchy(debugger, command, result, internal_dict):
debugger.HandleCommand('po [[[UIWindow keyWindow] rootViewController] _printHierarchy]')
def __lldb_init_module(debugger, internal_dict):
debugger.HandleCommand('command ... | <commit_before>"""Prints the current view controller hierarchy.
Usage: pvc
"""
def print_view_controller_hierarchy(debugger, command, result, internal_dict):
debugger.HandleCommand('po [[[UIWindow keyWindow] rootViewController] _printHierarchy]')
def __lldb_init_module(debugger, internal_dict):
debugger.HandleCo... |
02ac5dcfa6bdaf9b8152ef2f49fd61afe9faf8ab | client/python/plot_request_times.py | client/python/plot_request_times.py | import requests
from plotly.offline import plot
import plotly.graph_objs as go
r = requests.get('http://localhost:8081/monitor_results/1')
print(r.json())
# build traces for plotting from monitoring data
request_times = list()
timestamps = list()
timestamp = 0
url = r.json()[0]['urlToMonitor']['url']
for monitoring_d... | import requests
from plotly.offline import plot
import plotly.graph_objs as go
def build_data_for_monitored_url(id):
'''Fetches and prepares data for plotting for the given URL id'''
r = requests.get('http://localhost:8081/monitor_results/' + str(id))
# build traces for plotting from monitoring data
re... | Implement fetching all monitored data | Implement fetching all monitored data
| Python | mit | gernd/simple-site-mon | import requests
from plotly.offline import plot
import plotly.graph_objs as go
r = requests.get('http://localhost:8081/monitor_results/1')
print(r.json())
# build traces for plotting from monitoring data
request_times = list()
timestamps = list()
timestamp = 0
url = r.json()[0]['urlToMonitor']['url']
for monitoring_d... | import requests
from plotly.offline import plot
import plotly.graph_objs as go
def build_data_for_monitored_url(id):
'''Fetches and prepares data for plotting for the given URL id'''
r = requests.get('http://localhost:8081/monitor_results/' + str(id))
# build traces for plotting from monitoring data
re... | <commit_before>import requests
from plotly.offline import plot
import plotly.graph_objs as go
r = requests.get('http://localhost:8081/monitor_results/1')
print(r.json())
# build traces for plotting from monitoring data
request_times = list()
timestamps = list()
timestamp = 0
url = r.json()[0]['urlToMonitor']['url']
f... | import requests
from plotly.offline import plot
import plotly.graph_objs as go
def build_data_for_monitored_url(id):
'''Fetches and prepares data for plotting for the given URL id'''
r = requests.get('http://localhost:8081/monitor_results/' + str(id))
# build traces for plotting from monitoring data
re... | import requests
from plotly.offline import plot
import plotly.graph_objs as go
r = requests.get('http://localhost:8081/monitor_results/1')
print(r.json())
# build traces for plotting from monitoring data
request_times = list()
timestamps = list()
timestamp = 0
url = r.json()[0]['urlToMonitor']['url']
for monitoring_d... | <commit_before>import requests
from plotly.offline import plot
import plotly.graph_objs as go
r = requests.get('http://localhost:8081/monitor_results/1')
print(r.json())
# build traces for plotting from monitoring data
request_times = list()
timestamps = list()
timestamp = 0
url = r.json()[0]['urlToMonitor']['url']
f... |
876d995967c5f8e580fc8e89fff859860b648057 | wagtail/wagtailimages/backends/pillow.py | wagtail/wagtailimages/backends/pillow.py | from __future__ import absolute_import
import PIL.Image
from wagtail.wagtailimages.backends.base import BaseImageBackend
class PillowBackend(BaseImageBackend):
def __init__(self, params):
super(PillowBackend, self).__init__(params)
def open_image(self, input_file):
image = PIL.Image.open(in... | from __future__ import absolute_import
import PIL.Image
from wagtail.wagtailimages.backends.base import BaseImageBackend
class PillowBackend(BaseImageBackend):
def __init__(self, params):
super(PillowBackend, self).__init__(params)
def open_image(self, input_file):
image = PIL.Image.open(in... | Convert P images with transparency into RGBA | Convert P images with transparency into RGBA
Fixes #800
| Python | bsd-3-clause | jorge-marques/wagtail,gasman/wagtail,mikedingjan/wagtail,takeflight/wagtail,nimasmi/wagtail,chimeno/wagtail,kurtrwall/wagtail,Pennebaker/wagtail,mephizzle/wagtail,zerolab/wagtail,gogobook/wagtail,inonit/wagtail,m-sanders/wagtail,mikedingjan/wagtail,nealtodd/wagtail,timorieber/wagtail,takeshineshiro/wagtail,nutztherooki... | from __future__ import absolute_import
import PIL.Image
from wagtail.wagtailimages.backends.base import BaseImageBackend
class PillowBackend(BaseImageBackend):
def __init__(self, params):
super(PillowBackend, self).__init__(params)
def open_image(self, input_file):
image = PIL.Image.open(in... | from __future__ import absolute_import
import PIL.Image
from wagtail.wagtailimages.backends.base import BaseImageBackend
class PillowBackend(BaseImageBackend):
def __init__(self, params):
super(PillowBackend, self).__init__(params)
def open_image(self, input_file):
image = PIL.Image.open(in... | <commit_before>from __future__ import absolute_import
import PIL.Image
from wagtail.wagtailimages.backends.base import BaseImageBackend
class PillowBackend(BaseImageBackend):
def __init__(self, params):
super(PillowBackend, self).__init__(params)
def open_image(self, input_file):
image = PI... | from __future__ import absolute_import
import PIL.Image
from wagtail.wagtailimages.backends.base import BaseImageBackend
class PillowBackend(BaseImageBackend):
def __init__(self, params):
super(PillowBackend, self).__init__(params)
def open_image(self, input_file):
image = PIL.Image.open(in... | from __future__ import absolute_import
import PIL.Image
from wagtail.wagtailimages.backends.base import BaseImageBackend
class PillowBackend(BaseImageBackend):
def __init__(self, params):
super(PillowBackend, self).__init__(params)
def open_image(self, input_file):
image = PIL.Image.open(in... | <commit_before>from __future__ import absolute_import
import PIL.Image
from wagtail.wagtailimages.backends.base import BaseImageBackend
class PillowBackend(BaseImageBackend):
def __init__(self, params):
super(PillowBackend, self).__init__(params)
def open_image(self, input_file):
image = PI... |
c9b0bfa8d7ced6b521fa4e0454e8640e11aa512b | hr_contract_reference/models/hr_contract.py | hr_contract_reference/models/hr_contract.py | # -*- coding:utf-8 -*-
##############################################################################
#
# Copyright (C) 2011,2013 Michael Telahun Makonnen <mmakonnen@gmail.com>.
# All Rights Reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Af... | # -*- coding:utf-8 -*-
##############################################################################
#
# Copyright (C) 2011,2013 Michael Telahun Makonnen <mmakonnen@gmail.com>.
# All Rights Reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Af... | Update code as commented, update readme. | Update code as commented, update readme.
| Python | agpl-3.0 | OCA/hr,OCA/hr,OCA/hr | # -*- coding:utf-8 -*-
##############################################################################
#
# Copyright (C) 2011,2013 Michael Telahun Makonnen <mmakonnen@gmail.com>.
# All Rights Reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Af... | # -*- coding:utf-8 -*-
##############################################################################
#
# Copyright (C) 2011,2013 Michael Telahun Makonnen <mmakonnen@gmail.com>.
# All Rights Reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Af... | <commit_before># -*- coding:utf-8 -*-
##############################################################################
#
# Copyright (C) 2011,2013 Michael Telahun Makonnen <mmakonnen@gmail.com>.
# All Rights Reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under the term... | # -*- coding:utf-8 -*-
##############################################################################
#
# Copyright (C) 2011,2013 Michael Telahun Makonnen <mmakonnen@gmail.com>.
# All Rights Reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Af... | # -*- coding:utf-8 -*-
##############################################################################
#
# Copyright (C) 2011,2013 Michael Telahun Makonnen <mmakonnen@gmail.com>.
# All Rights Reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Af... | <commit_before># -*- coding:utf-8 -*-
##############################################################################
#
# Copyright (C) 2011,2013 Michael Telahun Makonnen <mmakonnen@gmail.com>.
# All Rights Reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under the term... |
a2d373ac4cedbfa556b54f8a29382554290d7532 | chaos.py | chaos.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from os.path import dirname, abspath, join
import time
import sys
import logging
import subprocess
import settings
import schedule
import cron
import github_api as gh
def main():
"""main entry"""
logging.basicConfig(level=logging.DEBUG,
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import time
import os
import sys
import logging
import threading
import http.server
import random
import subprocess
import settings
import patch
import schedule
from os.path import dirname, abspath, join
import cron
import github_api as gh
import github_api.prs
import gi... | Revert "Code cleanup and removed unused imports" | Revert "Code cleanup and removed unused imports"
This reverts commit b4fc4f3d767c7f738dcb5cd784826dcc02c577bb.
| Python | mit | mpnordland/chaos,g19fanatic/chaos,rudehn/chaos,Chaosthebot/Chaos,g19fanatic/chaos,amoffat/Chaos,mark-i-m/Chaos,chaosbot/Chaos,chaosbot/Chaos,eamanu/Chaos,amoffat/Chaos,botchaos/Chaos,phil-r/chaos,eukaryote31/chaos,Chaosthebot/Chaos,eukaryote31/chaos,hongaar/chaos,mark-i-m/Chaos,eamanu/Chaos,mark-i-m/Chaos,mark-i-m/Chao... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from os.path import dirname, abspath, join
import time
import sys
import logging
import subprocess
import settings
import schedule
import cron
import github_api as gh
def main():
"""main entry"""
logging.basicConfig(level=logging.DEBUG,
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import time
import os
import sys
import logging
import threading
import http.server
import random
import subprocess
import settings
import patch
import schedule
from os.path import dirname, abspath, join
import cron
import github_api as gh
import github_api.prs
import gi... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from os.path import dirname, abspath, join
import time
import sys
import logging
import subprocess
import settings
import schedule
import cron
import github_api as gh
def main():
"""main entry"""
logging.basicConfig(level=logging.DEBUG,... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import time
import os
import sys
import logging
import threading
import http.server
import random
import subprocess
import settings
import patch
import schedule
from os.path import dirname, abspath, join
import cron
import github_api as gh
import github_api.prs
import gi... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from os.path import dirname, abspath, join
import time
import sys
import logging
import subprocess
import settings
import schedule
import cron
import github_api as gh
def main():
"""main entry"""
logging.basicConfig(level=logging.DEBUG,
... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from os.path import dirname, abspath, join
import time
import sys
import logging
import subprocess
import settings
import schedule
import cron
import github_api as gh
def main():
"""main entry"""
logging.basicConfig(level=logging.DEBUG,... |
00cffc4197d393e6fc8d8031a4d1f8e78d5c532c | IPython/config/profile/pysh/ipython_config.py | IPython/config/profile/pysh/ipython_config.py | c = get_config()
app = c.InteractiveShellApp
# This can be used at any point in a config file to load a sub config
# and merge it into the current one.
load_subconfig('ipython_config.py', profile='default')
c.InteractiveShell.prompt_in1 = r'\C_LightGreen\u@\h\C_LightBlue[\C_LightCyan\Y1\C_LightBlue]\C_Green|\#> '
c.I... | c = get_config()
app = c.InteractiveShellApp
# This can be used at any point in a config file to load a sub config
# and merge it into the current one.
load_subconfig('ipython_config.py', profile='default')
c.PromptManager.in_template = r'{color.LightGreen}\u@\h{color.LightBlue}[{color.LightCyan}\Y1{color.LightBlue}]... | Update prompt config for pysh profile. | Update prompt config for pysh profile.
| Python | bsd-3-clause | ipython/ipython,ipython/ipython | c = get_config()
app = c.InteractiveShellApp
# This can be used at any point in a config file to load a sub config
# and merge it into the current one.
load_subconfig('ipython_config.py', profile='default')
c.InteractiveShell.prompt_in1 = r'\C_LightGreen\u@\h\C_LightBlue[\C_LightCyan\Y1\C_LightBlue]\C_Green|\#> '
c.I... | c = get_config()
app = c.InteractiveShellApp
# This can be used at any point in a config file to load a sub config
# and merge it into the current one.
load_subconfig('ipython_config.py', profile='default')
c.PromptManager.in_template = r'{color.LightGreen}\u@\h{color.LightBlue}[{color.LightCyan}\Y1{color.LightBlue}]... | <commit_before>c = get_config()
app = c.InteractiveShellApp
# This can be used at any point in a config file to load a sub config
# and merge it into the current one.
load_subconfig('ipython_config.py', profile='default')
c.InteractiveShell.prompt_in1 = r'\C_LightGreen\u@\h\C_LightBlue[\C_LightCyan\Y1\C_LightBlue]\C_... | c = get_config()
app = c.InteractiveShellApp
# This can be used at any point in a config file to load a sub config
# and merge it into the current one.
load_subconfig('ipython_config.py', profile='default')
c.PromptManager.in_template = r'{color.LightGreen}\u@\h{color.LightBlue}[{color.LightCyan}\Y1{color.LightBlue}]... | c = get_config()
app = c.InteractiveShellApp
# This can be used at any point in a config file to load a sub config
# and merge it into the current one.
load_subconfig('ipython_config.py', profile='default')
c.InteractiveShell.prompt_in1 = r'\C_LightGreen\u@\h\C_LightBlue[\C_LightCyan\Y1\C_LightBlue]\C_Green|\#> '
c.I... | <commit_before>c = get_config()
app = c.InteractiveShellApp
# This can be used at any point in a config file to load a sub config
# and merge it into the current one.
load_subconfig('ipython_config.py', profile='default')
c.InteractiveShell.prompt_in1 = r'\C_LightGreen\u@\h\C_LightBlue[\C_LightCyan\Y1\C_LightBlue]\C_... |
24e9cd06f56f4b825a9e22b1974e573b34edb8b9 | ec2_security_group_list.py | ec2_security_group_list.py | #!/usr/bin/env python
import boto
print 'Security group information:\n'
ec2 = boto.connect_ec2()
sgs = ec2.get_all_security_groups()
for sg in sgs:
instances = sg.instances()
print 'id: %s, name: %s, count: %s' % (sg.id, sg.name, len(instances))
for inst in instances:
tag_name = 'UNKNOWN'
... | #!/usr/bin/env python
import boto3
print 'Security group information:\n'
ec2 = boto3.resource('ec2')
sgs = ec2.security_groups.all()
for sg in sgs:
tag_name = sg.group_name
if sg.tags is not None:
for tag in sg.tags:
if tag['Key'] == 'Name' and tag['Value'] != '':
tag_name... | Update script to use boto3 instead of boto2 | Update script to use boto3 instead of boto2
| Python | mit | thinhpham/aws-tools | #!/usr/bin/env python
import boto
print 'Security group information:\n'
ec2 = boto.connect_ec2()
sgs = ec2.get_all_security_groups()
for sg in sgs:
instances = sg.instances()
print 'id: %s, name: %s, count: %s' % (sg.id, sg.name, len(instances))
for inst in instances:
tag_name = 'UNKNOWN'
... | #!/usr/bin/env python
import boto3
print 'Security group information:\n'
ec2 = boto3.resource('ec2')
sgs = ec2.security_groups.all()
for sg in sgs:
tag_name = sg.group_name
if sg.tags is not None:
for tag in sg.tags:
if tag['Key'] == 'Name' and tag['Value'] != '':
tag_name... | <commit_before>#!/usr/bin/env python
import boto
print 'Security group information:\n'
ec2 = boto.connect_ec2()
sgs = ec2.get_all_security_groups()
for sg in sgs:
instances = sg.instances()
print 'id: %s, name: %s, count: %s' % (sg.id, sg.name, len(instances))
for inst in instances:
tag_name = '... | #!/usr/bin/env python
import boto3
print 'Security group information:\n'
ec2 = boto3.resource('ec2')
sgs = ec2.security_groups.all()
for sg in sgs:
tag_name = sg.group_name
if sg.tags is not None:
for tag in sg.tags:
if tag['Key'] == 'Name' and tag['Value'] != '':
tag_name... | #!/usr/bin/env python
import boto
print 'Security group information:\n'
ec2 = boto.connect_ec2()
sgs = ec2.get_all_security_groups()
for sg in sgs:
instances = sg.instances()
print 'id: %s, name: %s, count: %s' % (sg.id, sg.name, len(instances))
for inst in instances:
tag_name = 'UNKNOWN'
... | <commit_before>#!/usr/bin/env python
import boto
print 'Security group information:\n'
ec2 = boto.connect_ec2()
sgs = ec2.get_all_security_groups()
for sg in sgs:
instances = sg.instances()
print 'id: %s, name: %s, count: %s' % (sg.id, sg.name, len(instances))
for inst in instances:
tag_name = '... |
1324bec259bc8c0dd041d293a2ef60350c7a1f3c | db/alembic/versions/71213454a09a_7_remove_name_from_measurement.py | db/alembic/versions/71213454a09a_7_remove_name_from_measurement.py | """7_remove_name_from_measurement
Revision ID: 71213454a09a
Revises: f16c6875f138
Create Date: 2017-05-11 14:25:08.256463
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '71213454a09a'
down_revision = 'f16c6875f138'
branch_labels = None
depends_on = None
def ... | """7_remove_name_from_measurement
Revision ID: 71213454a09a
Revises: f16c6875f138
Create Date: 2017-05-11 14:25:08.256463
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '71213454a09a'
down_revision = 'f16c6875f138'
branch_labels = None
depends_on = None
def ... | Fix migration: measurement did not have column key. | Fix migration: measurement did not have column key.
| Python | mit | atlefren/pitilt-api,atlefren/pitilt-api,atlefren/pitilt-api,atlefren/pitilt-api | """7_remove_name_from_measurement
Revision ID: 71213454a09a
Revises: f16c6875f138
Create Date: 2017-05-11 14:25:08.256463
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '71213454a09a'
down_revision = 'f16c6875f138'
branch_labels = None
depends_on = None
def ... | """7_remove_name_from_measurement
Revision ID: 71213454a09a
Revises: f16c6875f138
Create Date: 2017-05-11 14:25:08.256463
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '71213454a09a'
down_revision = 'f16c6875f138'
branch_labels = None
depends_on = None
def ... | <commit_before>"""7_remove_name_from_measurement
Revision ID: 71213454a09a
Revises: f16c6875f138
Create Date: 2017-05-11 14:25:08.256463
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '71213454a09a'
down_revision = 'f16c6875f138'
branch_labels = None
depends_o... | """7_remove_name_from_measurement
Revision ID: 71213454a09a
Revises: f16c6875f138
Create Date: 2017-05-11 14:25:08.256463
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '71213454a09a'
down_revision = 'f16c6875f138'
branch_labels = None
depends_on = None
def ... | """7_remove_name_from_measurement
Revision ID: 71213454a09a
Revises: f16c6875f138
Create Date: 2017-05-11 14:25:08.256463
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '71213454a09a'
down_revision = 'f16c6875f138'
branch_labels = None
depends_on = None
def ... | <commit_before>"""7_remove_name_from_measurement
Revision ID: 71213454a09a
Revises: f16c6875f138
Create Date: 2017-05-11 14:25:08.256463
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '71213454a09a'
down_revision = 'f16c6875f138'
branch_labels = None
depends_o... |
b79108c849b5b729eaf35c9c217e04e974474753 | tree.py | tree.py | from PySide import QtGui, QtCore
class Tree(QtGui.QTreeView):
def __init__(self, parent=None):
super(Tree, self).__init__(parent)
def load_from_path(self, path):
""" Load directory containing file into the tree. """
# Link the tree to a model
model = QtGui.QFileSystemModel()
model.setRootPath(path)
... | from PySide import QtGui, QtCore
class Tree(QtGui.QTreeView):
def __init__(self, parent=None):
super(Tree, self).__init__(parent)
def load_from_path(self, path):
""" Load directory containing file into the tree. """
# Link the tree to a model
model = QtGui.QFileSystemModel()
model.setRootPath(path)
... | Print selection in selectionChanged handler. | Print selection in selectionChanged handler.
| Python | bsd-3-clause | techdragon/sphinx-gui,audreyr/sphinx-gui,audreyr/sphinx-gui,techdragon/sphinx-gui | from PySide import QtGui, QtCore
class Tree(QtGui.QTreeView):
def __init__(self, parent=None):
super(Tree, self).__init__(parent)
def load_from_path(self, path):
""" Load directory containing file into the tree. """
# Link the tree to a model
model = QtGui.QFileSystemModel()
model.setRootPath(path)
... | from PySide import QtGui, QtCore
class Tree(QtGui.QTreeView):
def __init__(self, parent=None):
super(Tree, self).__init__(parent)
def load_from_path(self, path):
""" Load directory containing file into the tree. """
# Link the tree to a model
model = QtGui.QFileSystemModel()
model.setRootPath(path)
... | <commit_before>from PySide import QtGui, QtCore
class Tree(QtGui.QTreeView):
def __init__(self, parent=None):
super(Tree, self).__init__(parent)
def load_from_path(self, path):
""" Load directory containing file into the tree. """
# Link the tree to a model
model = QtGui.QFileSystemModel()
model.setRo... | from PySide import QtGui, QtCore
class Tree(QtGui.QTreeView):
def __init__(self, parent=None):
super(Tree, self).__init__(parent)
def load_from_path(self, path):
""" Load directory containing file into the tree. """
# Link the tree to a model
model = QtGui.QFileSystemModel()
model.setRootPath(path)
... | from PySide import QtGui, QtCore
class Tree(QtGui.QTreeView):
def __init__(self, parent=None):
super(Tree, self).__init__(parent)
def load_from_path(self, path):
""" Load directory containing file into the tree. """
# Link the tree to a model
model = QtGui.QFileSystemModel()
model.setRootPath(path)
... | <commit_before>from PySide import QtGui, QtCore
class Tree(QtGui.QTreeView):
def __init__(self, parent=None):
super(Tree, self).__init__(parent)
def load_from_path(self, path):
""" Load directory containing file into the tree. """
# Link the tree to a model
model = QtGui.QFileSystemModel()
model.setRo... |
ac088c3278e509bfaf6fa7b86af1831c7fbb010d | argyle/postgres.py | argyle/postgres.py | from argyle.base import upload_template
from fabric.api import sudo, task
@task
def create_db_user(username, password=None, flags=None):
"""Create a databse user."""
flags = flags or u'-D -A -R'
sudo(u'createuser %s %s' % (flags, username), user=u'postgres')
if password:
change_db_user_passwo... | from argyle.base import upload_template
from fabric.api import sudo, task
@task
def create_db_user(username, password=None, flags=None):
"""Create a databse user."""
flags = flags or u'-D -A -R'
sudo(u'createuser %s %s' % (flags, username), user=u'postgres')
if password:
change_db_user_passwo... | Use sudo to change db user password. | Use sudo to change db user password.
| Python | bsd-2-clause | mlavin/argyle,mlavin/argyle,mlavin/argyle | from argyle.base import upload_template
from fabric.api import sudo, task
@task
def create_db_user(username, password=None, flags=None):
"""Create a databse user."""
flags = flags or u'-D -A -R'
sudo(u'createuser %s %s' % (flags, username), user=u'postgres')
if password:
change_db_user_passwo... | from argyle.base import upload_template
from fabric.api import sudo, task
@task
def create_db_user(username, password=None, flags=None):
"""Create a databse user."""
flags = flags or u'-D -A -R'
sudo(u'createuser %s %s' % (flags, username), user=u'postgres')
if password:
change_db_user_passwo... | <commit_before>from argyle.base import upload_template
from fabric.api import sudo, task
@task
def create_db_user(username, password=None, flags=None):
"""Create a databse user."""
flags = flags or u'-D -A -R'
sudo(u'createuser %s %s' % (flags, username), user=u'postgres')
if password:
change... | from argyle.base import upload_template
from fabric.api import sudo, task
@task
def create_db_user(username, password=None, flags=None):
"""Create a databse user."""
flags = flags or u'-D -A -R'
sudo(u'createuser %s %s' % (flags, username), user=u'postgres')
if password:
change_db_user_passwo... | from argyle.base import upload_template
from fabric.api import sudo, task
@task
def create_db_user(username, password=None, flags=None):
"""Create a databse user."""
flags = flags or u'-D -A -R'
sudo(u'createuser %s %s' % (flags, username), user=u'postgres')
if password:
change_db_user_passwo... | <commit_before>from argyle.base import upload_template
from fabric.api import sudo, task
@task
def create_db_user(username, password=None, flags=None):
"""Create a databse user."""
flags = flags or u'-D -A -R'
sudo(u'createuser %s %s' % (flags, username), user=u'postgres')
if password:
change... |
725b3a9db33c90187b913123deefeb180c7fee4c | client/app.py | client/app.py | #!/usr/bin/env python3
import argparse
from server import *
from commandRunner import *
class App:
def __init__(self, baseurl, clientid):
self.server = Server(baseurl, clientid)
def run(self):
runner = CommandRunner()
command = self.server.get()
while command is not None:
response = runner... | #!/usr/bin/env python3
import argparse
from server import *
from commandRunner import *
class App:
server = None
runner = None
def __init__(self, baseurl, clientid):
self.server = Server(baseurl, clientid)
self.runner = CommandRunner()
def run(self):
command = self.server.get()
while co... | Add DI to App object | Add DI to App object
| Python | mit | CaminsTECH/owncloud-test | #!/usr/bin/env python3
import argparse
from server import *
from commandRunner import *
class App:
def __init__(self, baseurl, clientid):
self.server = Server(baseurl, clientid)
def run(self):
runner = CommandRunner()
command = self.server.get()
while command is not None:
response = runner... | #!/usr/bin/env python3
import argparse
from server import *
from commandRunner import *
class App:
server = None
runner = None
def __init__(self, baseurl, clientid):
self.server = Server(baseurl, clientid)
self.runner = CommandRunner()
def run(self):
command = self.server.get()
while co... | <commit_before>#!/usr/bin/env python3
import argparse
from server import *
from commandRunner import *
class App:
def __init__(self, baseurl, clientid):
self.server = Server(baseurl, clientid)
def run(self):
runner = CommandRunner()
command = self.server.get()
while command is not None:
re... | #!/usr/bin/env python3
import argparse
from server import *
from commandRunner import *
class App:
server = None
runner = None
def __init__(self, baseurl, clientid):
self.server = Server(baseurl, clientid)
self.runner = CommandRunner()
def run(self):
command = self.server.get()
while co... | #!/usr/bin/env python3
import argparse
from server import *
from commandRunner import *
class App:
def __init__(self, baseurl, clientid):
self.server = Server(baseurl, clientid)
def run(self):
runner = CommandRunner()
command = self.server.get()
while command is not None:
response = runner... | <commit_before>#!/usr/bin/env python3
import argparse
from server import *
from commandRunner import *
class App:
def __init__(self, baseurl, clientid):
self.server = Server(baseurl, clientid)
def run(self):
runner = CommandRunner()
command = self.server.get()
while command is not None:
re... |
42b797b5a8eca483f68ca9b8e6fc123bc8f4cf9c | taOonja/taOonja/urls.py | taOonja/taOonja/urls.py | """taOonja 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-ba... | """taOonja 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-ba... | Add Basic URL for Project | Add Basic URL for Project
| Python | mit | Javid-Izadfar/TaOonja,Javid-Izadfar/TaOonja,Javid-Izadfar/TaOonja | """taOonja 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-ba... | """taOonja 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-ba... | <commit_before>"""taOonja 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='... | """taOonja 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-ba... | """taOonja 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-ba... | <commit_before>"""taOonja 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='... |
bf557dc589a776b432c1a43a96a09d93aa2b0a1e | tca/chat/serializers.py | tca/chat/serializers.py | from rest_framework import serializers
from rest_framework.reverse import reverse
from chat.models import Member
from chat.models import Message
from chat.models import ChatRoom
class MemberSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Member
class ChatRoomSerializer(serialize... | from rest_framework import serializers
from rest_framework.reverse import reverse
from chat.models import Member
from chat.models import Message
from chat.models import ChatRoom
class MemberSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Member
class ChatRoomSerializer(serialize... | Add a link to the messages of a ChatRoom in its representation | Add a link to the messages of a ChatRoom in its representation
The ChatRoom resource should provide a way for clients to access
its subordinate resource ``Message``.
| Python | bsd-3-clause | mlalic/TumCampusAppBackend,mlalic/TumCampusAppBackend | from rest_framework import serializers
from rest_framework.reverse import reverse
from chat.models import Member
from chat.models import Message
from chat.models import ChatRoom
class MemberSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Member
class ChatRoomSerializer(serialize... | from rest_framework import serializers
from rest_framework.reverse import reverse
from chat.models import Member
from chat.models import Message
from chat.models import ChatRoom
class MemberSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Member
class ChatRoomSerializer(serialize... | <commit_before>from rest_framework import serializers
from rest_framework.reverse import reverse
from chat.models import Member
from chat.models import Message
from chat.models import ChatRoom
class MemberSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Member
class ChatRoomSeria... | from rest_framework import serializers
from rest_framework.reverse import reverse
from chat.models import Member
from chat.models import Message
from chat.models import ChatRoom
class MemberSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Member
class ChatRoomSerializer(serialize... | from rest_framework import serializers
from rest_framework.reverse import reverse
from chat.models import Member
from chat.models import Message
from chat.models import ChatRoom
class MemberSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Member
class ChatRoomSerializer(serialize... | <commit_before>from rest_framework import serializers
from rest_framework.reverse import reverse
from chat.models import Member
from chat.models import Message
from chat.models import ChatRoom
class MemberSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Member
class ChatRoomSeria... |
5ac6e5db05a81cc6f5b1b1fc4850424d526774c8 | flash_services/__init__.py | flash_services/__init__.py | """The services that can be shown on a Flash dashboard."""
from collections import OrderedDict
import logging
from uuid import uuid4
from flask import Blueprint
from .codeship import Codeship
from .github import GitHub
from .tracker import Tracker
from .travis import TravisOS
__author__ = 'Jonathan Sharpe'
__versio... | """The services that can be shown on a Flash dashboard."""
from collections import OrderedDict
import logging
from uuid import uuid4
from flask import Blueprint
from .codeship import Codeship
from .github import GitHub
from .tracker import Tracker
from .travis import TravisOS
__author__ = 'Jonathan Sharpe'
__versio... | Tag builds in the correct order | Tag builds in the correct order
| Python | isc | textbook/flash_services,textbook/flash_services,textbook/flash_services | """The services that can be shown on a Flash dashboard."""
from collections import OrderedDict
import logging
from uuid import uuid4
from flask import Blueprint
from .codeship import Codeship
from .github import GitHub
from .tracker import Tracker
from .travis import TravisOS
__author__ = 'Jonathan Sharpe'
__versio... | """The services that can be shown on a Flash dashboard."""
from collections import OrderedDict
import logging
from uuid import uuid4
from flask import Blueprint
from .codeship import Codeship
from .github import GitHub
from .tracker import Tracker
from .travis import TravisOS
__author__ = 'Jonathan Sharpe'
__versio... | <commit_before>"""The services that can be shown on a Flash dashboard."""
from collections import OrderedDict
import logging
from uuid import uuid4
from flask import Blueprint
from .codeship import Codeship
from .github import GitHub
from .tracker import Tracker
from .travis import TravisOS
__author__ = 'Jonathan S... | """The services that can be shown on a Flash dashboard."""
from collections import OrderedDict
import logging
from uuid import uuid4
from flask import Blueprint
from .codeship import Codeship
from .github import GitHub
from .tracker import Tracker
from .travis import TravisOS
__author__ = 'Jonathan Sharpe'
__versio... | """The services that can be shown on a Flash dashboard."""
from collections import OrderedDict
import logging
from uuid import uuid4
from flask import Blueprint
from .codeship import Codeship
from .github import GitHub
from .tracker import Tracker
from .travis import TravisOS
__author__ = 'Jonathan Sharpe'
__versio... | <commit_before>"""The services that can be shown on a Flash dashboard."""
from collections import OrderedDict
import logging
from uuid import uuid4
from flask import Blueprint
from .codeship import Codeship
from .github import GitHub
from .tracker import Tracker
from .travis import TravisOS
__author__ = 'Jonathan S... |
b214a69136225459b514cbf6f3eb503228ae4ec4 | server/openslides/saml/management/commands/create-saml-settings.py | server/openslides/saml/management/commands/create-saml-settings.py | import os
from django.core.management.base import BaseCommand
from ...settings import create_saml_settings, get_settings_dir_and_path
class Command(BaseCommand):
"""
Command to create the saml_settings.json file.
"""
help = "Create the saml_settings.json settings file."
def add_arguments(self,... | import os
from django.core.management.base import BaseCommand
from ...settings import create_saml_settings, get_settings_dir_and_path
class Command(BaseCommand):
"""
Command to create the saml_settings.json file.
"""
help = "Create the saml_settings.json settings file."
def add_arguments(self,... | Fix check on wrong variable | Fix check on wrong variable | Python | mit | jwinzer/OpenSlides,CatoTH/OpenSlides,jwinzer/OpenSlides,jwinzer/OpenSlides,FinnStutzenstein/OpenSlides,FinnStutzenstein/OpenSlides,FinnStutzenstein/OpenSlides,jwinzer/OpenSlides,CatoTH/OpenSlides,CatoTH/OpenSlides,jwinzer/OpenSlides,CatoTH/OpenSlides,FinnStutzenstein/OpenSlides | import os
from django.core.management.base import BaseCommand
from ...settings import create_saml_settings, get_settings_dir_and_path
class Command(BaseCommand):
"""
Command to create the saml_settings.json file.
"""
help = "Create the saml_settings.json settings file."
def add_arguments(self,... | import os
from django.core.management.base import BaseCommand
from ...settings import create_saml_settings, get_settings_dir_and_path
class Command(BaseCommand):
"""
Command to create the saml_settings.json file.
"""
help = "Create the saml_settings.json settings file."
def add_arguments(self,... | <commit_before>import os
from django.core.management.base import BaseCommand
from ...settings import create_saml_settings, get_settings_dir_and_path
class Command(BaseCommand):
"""
Command to create the saml_settings.json file.
"""
help = "Create the saml_settings.json settings file."
def add_... | import os
from django.core.management.base import BaseCommand
from ...settings import create_saml_settings, get_settings_dir_and_path
class Command(BaseCommand):
"""
Command to create the saml_settings.json file.
"""
help = "Create the saml_settings.json settings file."
def add_arguments(self,... | import os
from django.core.management.base import BaseCommand
from ...settings import create_saml_settings, get_settings_dir_and_path
class Command(BaseCommand):
"""
Command to create the saml_settings.json file.
"""
help = "Create the saml_settings.json settings file."
def add_arguments(self,... | <commit_before>import os
from django.core.management.base import BaseCommand
from ...settings import create_saml_settings, get_settings_dir_and_path
class Command(BaseCommand):
"""
Command to create the saml_settings.json file.
"""
help = "Create the saml_settings.json settings file."
def add_... |
7d4f345443575974825ebc9bac8a274632ccb99d | python/brica1/__init__.py | python/brica1/__init__.py | # -*- coding: utf-8 -*-
"""
BriCA
=====
Brain-inspired Cognitive Architecture
A scalable, general purpose computing platform for cognitive architectures.
"""
__all__ = ["component", "connection", "module", "port", "ros", "scheduler", "unit", "utils"]
from .component import *
from .connection import *
from .module... | # -*- coding: utf-8 -*-
"""
BriCA
=====
Brain-inspired Cognitive Architecture
A scalable, general purpose computing platform for cognitive architectures.
"""
__all__ = ["component", "connection", "module", "port", "ros", "scheduler", "supervisor", "unit", "utils"]
from .component import *
from .connection import ... | Add supervisor to default modules | Add supervisor to default modules
| Python | apache-2.0 | wbap/BriCA1 | # -*- coding: utf-8 -*-
"""
BriCA
=====
Brain-inspired Cognitive Architecture
A scalable, general purpose computing platform for cognitive architectures.
"""
__all__ = ["component", "connection", "module", "port", "ros", "scheduler", "unit", "utils"]
from .component import *
from .connection import *
from .module... | # -*- coding: utf-8 -*-
"""
BriCA
=====
Brain-inspired Cognitive Architecture
A scalable, general purpose computing platform for cognitive architectures.
"""
__all__ = ["component", "connection", "module", "port", "ros", "scheduler", "supervisor", "unit", "utils"]
from .component import *
from .connection import ... | <commit_before># -*- coding: utf-8 -*-
"""
BriCA
=====
Brain-inspired Cognitive Architecture
A scalable, general purpose computing platform for cognitive architectures.
"""
__all__ = ["component", "connection", "module", "port", "ros", "scheduler", "unit", "utils"]
from .component import *
from .connection import... | # -*- coding: utf-8 -*-
"""
BriCA
=====
Brain-inspired Cognitive Architecture
A scalable, general purpose computing platform for cognitive architectures.
"""
__all__ = ["component", "connection", "module", "port", "ros", "scheduler", "supervisor", "unit", "utils"]
from .component import *
from .connection import ... | # -*- coding: utf-8 -*-
"""
BriCA
=====
Brain-inspired Cognitive Architecture
A scalable, general purpose computing platform for cognitive architectures.
"""
__all__ = ["component", "connection", "module", "port", "ros", "scheduler", "unit", "utils"]
from .component import *
from .connection import *
from .module... | <commit_before># -*- coding: utf-8 -*-
"""
BriCA
=====
Brain-inspired Cognitive Architecture
A scalable, general purpose computing platform for cognitive architectures.
"""
__all__ = ["component", "connection", "module", "port", "ros", "scheduler", "unit", "utils"]
from .component import *
from .connection import... |
222ac5f16004f45b17b0b04f71104eac9b2fd3d4 | jarvis.py | jarvis.py | import config
from flask import Flask, request
import json
import os
import requests
import modules
ACCESS_TOKEN = os.environ.get('ACCESS_TOKEN', config.ACCESS_TOKEN)
VERIFY_TOKEN = os.environ.get('VERIFY_TOKEN', config.VERIFY_TOKEN)
app = Flask(__name__)
@app.route('/')
def hello_world():
return 'Hello World!'
... | import config
from flask import Flask, request
import json
import os
import requests
import modules
ACCESS_TOKEN = os.environ.get('ACCESS_TOKEN', config.ACCESS_TOKEN)
VERIFY_TOKEN = os.environ.get('VERIFY_TOKEN', config.VERIFY_TOKEN)
app = Flask(__name__)
@app.route('/')
def about():
return 'Just A Rather Very I... | Add description on root route | Add description on root route
| Python | mit | ZuZuD/JARVIS-on-Messenger,jaskaransarkaria/JARVIS-on-Messenger,swapagarwal/JARVIS-on-Messenger,edadesd/JARVIS-on-Messenger | import config
from flask import Flask, request
import json
import os
import requests
import modules
ACCESS_TOKEN = os.environ.get('ACCESS_TOKEN', config.ACCESS_TOKEN)
VERIFY_TOKEN = os.environ.get('VERIFY_TOKEN', config.VERIFY_TOKEN)
app = Flask(__name__)
@app.route('/')
def hello_world():
return 'Hello World!'
... | import config
from flask import Flask, request
import json
import os
import requests
import modules
ACCESS_TOKEN = os.environ.get('ACCESS_TOKEN', config.ACCESS_TOKEN)
VERIFY_TOKEN = os.environ.get('VERIFY_TOKEN', config.VERIFY_TOKEN)
app = Flask(__name__)
@app.route('/')
def about():
return 'Just A Rather Very I... | <commit_before>import config
from flask import Flask, request
import json
import os
import requests
import modules
ACCESS_TOKEN = os.environ.get('ACCESS_TOKEN', config.ACCESS_TOKEN)
VERIFY_TOKEN = os.environ.get('VERIFY_TOKEN', config.VERIFY_TOKEN)
app = Flask(__name__)
@app.route('/')
def hello_world():
return ... | import config
from flask import Flask, request
import json
import os
import requests
import modules
ACCESS_TOKEN = os.environ.get('ACCESS_TOKEN', config.ACCESS_TOKEN)
VERIFY_TOKEN = os.environ.get('VERIFY_TOKEN', config.VERIFY_TOKEN)
app = Flask(__name__)
@app.route('/')
def about():
return 'Just A Rather Very I... | import config
from flask import Flask, request
import json
import os
import requests
import modules
ACCESS_TOKEN = os.environ.get('ACCESS_TOKEN', config.ACCESS_TOKEN)
VERIFY_TOKEN = os.environ.get('VERIFY_TOKEN', config.VERIFY_TOKEN)
app = Flask(__name__)
@app.route('/')
def hello_world():
return 'Hello World!'
... | <commit_before>import config
from flask import Flask, request
import json
import os
import requests
import modules
ACCESS_TOKEN = os.environ.get('ACCESS_TOKEN', config.ACCESS_TOKEN)
VERIFY_TOKEN = os.environ.get('VERIFY_TOKEN', config.VERIFY_TOKEN)
app = Flask(__name__)
@app.route('/')
def hello_world():
return ... |
9516621f2b4cfc5b541c3328df95b62111e77463 | app/main/__init__.py | app/main/__init__.py | from flask import Blueprint
main = Blueprint('main', __name__)
from . import errors
from .views import (
crown_hosting, digital_services_framework, g_cloud, login, marketplace, suppliers,
digital_outcomes_and_specialists
)
| from flask import Blueprint
main = Blueprint('main', __name__)
from . import errors
from .views import (
crown_hosting, g_cloud, login, marketplace, suppliers,
digital_outcomes_and_specialists
)
| Delete reference to removed view | Delete reference to removed view
| Python | mit | alphagov/digitalmarketplace-buyer-frontend,alphagov/digitalmarketplace-buyer-frontend,alphagov/digitalmarketplace-buyer-frontend,alphagov/digitalmarketplace-buyer-frontend | from flask import Blueprint
main = Blueprint('main', __name__)
from . import errors
from .views import (
crown_hosting, digital_services_framework, g_cloud, login, marketplace, suppliers,
digital_outcomes_and_specialists
)
Delete reference to removed view | from flask import Blueprint
main = Blueprint('main', __name__)
from . import errors
from .views import (
crown_hosting, g_cloud, login, marketplace, suppliers,
digital_outcomes_and_specialists
)
| <commit_before>from flask import Blueprint
main = Blueprint('main', __name__)
from . import errors
from .views import (
crown_hosting, digital_services_framework, g_cloud, login, marketplace, suppliers,
digital_outcomes_and_specialists
)
<commit_msg>Delete reference to removed view<commit_after> | from flask import Blueprint
main = Blueprint('main', __name__)
from . import errors
from .views import (
crown_hosting, g_cloud, login, marketplace, suppliers,
digital_outcomes_and_specialists
)
| from flask import Blueprint
main = Blueprint('main', __name__)
from . import errors
from .views import (
crown_hosting, digital_services_framework, g_cloud, login, marketplace, suppliers,
digital_outcomes_and_specialists
)
Delete reference to removed viewfrom flask import Blueprint
main = Blueprint('main', _... | <commit_before>from flask import Blueprint
main = Blueprint('main', __name__)
from . import errors
from .views import (
crown_hosting, digital_services_framework, g_cloud, login, marketplace, suppliers,
digital_outcomes_and_specialists
)
<commit_msg>Delete reference to removed view<commit_after>from flask imp... |
a0f31dc83ce36823022b5e26c85ad03fe639e79f | src/main/python/alppaca/compat.py | src/main/python/alppaca/compat.py | from __future__ import print_function, absolute_import, unicode_literals, division
""" Compatability module for different Python versions. """
try:
import unittest2 as unittest
except ImportError: # pragma: no cover
import unittest
try:
from ordereddict import OrderedDict
except ImportError: # pragma: n... | """ Compatability module for different Python versions. """
from __future__ import print_function, absolute_import, unicode_literals, division
try:
import unittest2 as unittest
except ImportError: # pragma: no cover
import unittest
try:
from ordereddict import OrderedDict
except ImportError: # pragma: n... | Move string above the import so it becomes a docstring | Move string above the import so it becomes a docstring
| Python | apache-2.0 | ImmobilienScout24/afp-alppaca,ImmobilienScout24/afp-alppaca,ImmobilienScout24/alppaca,ImmobilienScout24/alppaca | from __future__ import print_function, absolute_import, unicode_literals, division
""" Compatability module for different Python versions. """
try:
import unittest2 as unittest
except ImportError: # pragma: no cover
import unittest
try:
from ordereddict import OrderedDict
except ImportError: # pragma: n... | """ Compatability module for different Python versions. """
from __future__ import print_function, absolute_import, unicode_literals, division
try:
import unittest2 as unittest
except ImportError: # pragma: no cover
import unittest
try:
from ordereddict import OrderedDict
except ImportError: # pragma: n... | <commit_before>from __future__ import print_function, absolute_import, unicode_literals, division
""" Compatability module for different Python versions. """
try:
import unittest2 as unittest
except ImportError: # pragma: no cover
import unittest
try:
from ordereddict import OrderedDict
except ImportErro... | """ Compatability module for different Python versions. """
from __future__ import print_function, absolute_import, unicode_literals, division
try:
import unittest2 as unittest
except ImportError: # pragma: no cover
import unittest
try:
from ordereddict import OrderedDict
except ImportError: # pragma: n... | from __future__ import print_function, absolute_import, unicode_literals, division
""" Compatability module for different Python versions. """
try:
import unittest2 as unittest
except ImportError: # pragma: no cover
import unittest
try:
from ordereddict import OrderedDict
except ImportError: # pragma: n... | <commit_before>from __future__ import print_function, absolute_import, unicode_literals, division
""" Compatability module for different Python versions. """
try:
import unittest2 as unittest
except ImportError: # pragma: no cover
import unittest
try:
from ordereddict import OrderedDict
except ImportErro... |
34d10f364518805f7e7918e62d4f7aecc4f472dc | corehq/apps/change_feed/connection.py | corehq/apps/change_feed/connection.py | from django.conf import settings
from corehq.util.io import ClosingContextProxy
from kafka import KafkaConsumer
from kafka.client import KafkaClient, SimpleClient
GENERIC_KAFKA_CLIENT_ID = 'cchq-kafka-client'
def get_simple_kafka_client(client_id=GENERIC_KAFKA_CLIENT_ID):
# this uses the old SimpleClient becaus... | from django.conf import settings
from corehq.util.io import ClosingContextProxy
from kafka import KafkaConsumer
from kafka.client import KafkaClient, SimpleClient
GENERIC_KAFKA_CLIENT_ID = 'cchq-kafka-client'
def get_simple_kafka_client(client_id=GENERIC_KAFKA_CLIENT_ID):
# this uses the old SimpleClient becaus... | Remove hard request timeout on kafka consumer | Remove hard request timeout on kafka consumer
| Python | bsd-3-clause | dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq | from django.conf import settings
from corehq.util.io import ClosingContextProxy
from kafka import KafkaConsumer
from kafka.client import KafkaClient, SimpleClient
GENERIC_KAFKA_CLIENT_ID = 'cchq-kafka-client'
def get_simple_kafka_client(client_id=GENERIC_KAFKA_CLIENT_ID):
# this uses the old SimpleClient becaus... | from django.conf import settings
from corehq.util.io import ClosingContextProxy
from kafka import KafkaConsumer
from kafka.client import KafkaClient, SimpleClient
GENERIC_KAFKA_CLIENT_ID = 'cchq-kafka-client'
def get_simple_kafka_client(client_id=GENERIC_KAFKA_CLIENT_ID):
# this uses the old SimpleClient becaus... | <commit_before>from django.conf import settings
from corehq.util.io import ClosingContextProxy
from kafka import KafkaConsumer
from kafka.client import KafkaClient, SimpleClient
GENERIC_KAFKA_CLIENT_ID = 'cchq-kafka-client'
def get_simple_kafka_client(client_id=GENERIC_KAFKA_CLIENT_ID):
# this uses the old Simp... | from django.conf import settings
from corehq.util.io import ClosingContextProxy
from kafka import KafkaConsumer
from kafka.client import KafkaClient, SimpleClient
GENERIC_KAFKA_CLIENT_ID = 'cchq-kafka-client'
def get_simple_kafka_client(client_id=GENERIC_KAFKA_CLIENT_ID):
# this uses the old SimpleClient becaus... | from django.conf import settings
from corehq.util.io import ClosingContextProxy
from kafka import KafkaConsumer
from kafka.client import KafkaClient, SimpleClient
GENERIC_KAFKA_CLIENT_ID = 'cchq-kafka-client'
def get_simple_kafka_client(client_id=GENERIC_KAFKA_CLIENT_ID):
# this uses the old SimpleClient becaus... | <commit_before>from django.conf import settings
from corehq.util.io import ClosingContextProxy
from kafka import KafkaConsumer
from kafka.client import KafkaClient, SimpleClient
GENERIC_KAFKA_CLIENT_ID = 'cchq-kafka-client'
def get_simple_kafka_client(client_id=GENERIC_KAFKA_CLIENT_ID):
# this uses the old Simp... |
bfbe61ed014ad80ca80cd9fc15d961f4b969eeb8 | solum/tests/uploaders/test_common.py | solum/tests/uploaders/test_common.py | # Copyright 2014 - Rackspace Hosting
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | # Copyright 2014 - Rackspace Hosting
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | Fix typo in uploader tests | Fix typo in uploader tests
Change-Id: Ife7685d6113309d20bf90a24d73f793be2837314
| Python | apache-2.0 | stackforge/solum,ed-/solum,openstack/solum,ed-/solum,devdattakulkarni/test-solum,ed-/solum,stackforge/solum,openstack/solum,devdattakulkarni/test-solum,ed-/solum | # Copyright 2014 - Rackspace Hosting
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | # Copyright 2014 - Rackspace Hosting
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | <commit_before># Copyright 2014 - Rackspace Hosting
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | # Copyright 2014 - Rackspace Hosting
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | # Copyright 2014 - Rackspace Hosting
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | <commit_before># Copyright 2014 - Rackspace Hosting
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... |
907a09311718859184a8e4015b35bde62efe47f7 | graphene/types/datetime.py | graphene/types/datetime.py | from __future__ import absolute_import
import datetime
try:
import iso8601
except:
raise ImportError("iso8601 package is required for DateTime Scalar.\nYou can install it using: pip install iso8601.")
from graphql.language import ast
from .scalars import Scalar
class DateTime(Scalar):
@staticmethod
... | from __future__ import absolute_import
import datetime
try:
import iso8601
except:
raise ImportError("iso8601 package is required for DateTime Scalar.\nYou can install it using: pip install iso8601.")
from graphql.language import ast
from .scalars import Scalar
class DateTime(Scalar):
@staticmethod
... | Allow dates in Datetime scalar | Allow dates in Datetime scalar
| Python | mit | graphql-python/graphene,graphql-python/graphene,Globegitter/graphene,Globegitter/graphene,sjhewitt/graphene,sjhewitt/graphene | from __future__ import absolute_import
import datetime
try:
import iso8601
except:
raise ImportError("iso8601 package is required for DateTime Scalar.\nYou can install it using: pip install iso8601.")
from graphql.language import ast
from .scalars import Scalar
class DateTime(Scalar):
@staticmethod
... | from __future__ import absolute_import
import datetime
try:
import iso8601
except:
raise ImportError("iso8601 package is required for DateTime Scalar.\nYou can install it using: pip install iso8601.")
from graphql.language import ast
from .scalars import Scalar
class DateTime(Scalar):
@staticmethod
... | <commit_before>from __future__ import absolute_import
import datetime
try:
import iso8601
except:
raise ImportError("iso8601 package is required for DateTime Scalar.\nYou can install it using: pip install iso8601.")
from graphql.language import ast
from .scalars import Scalar
class DateTime(Scalar):
@s... | from __future__ import absolute_import
import datetime
try:
import iso8601
except:
raise ImportError("iso8601 package is required for DateTime Scalar.\nYou can install it using: pip install iso8601.")
from graphql.language import ast
from .scalars import Scalar
class DateTime(Scalar):
@staticmethod
... | from __future__ import absolute_import
import datetime
try:
import iso8601
except:
raise ImportError("iso8601 package is required for DateTime Scalar.\nYou can install it using: pip install iso8601.")
from graphql.language import ast
from .scalars import Scalar
class DateTime(Scalar):
@staticmethod
... | <commit_before>from __future__ import absolute_import
import datetime
try:
import iso8601
except:
raise ImportError("iso8601 package is required for DateTime Scalar.\nYou can install it using: pip install iso8601.")
from graphql.language import ast
from .scalars import Scalar
class DateTime(Scalar):
@s... |
d050210f3e5d8a6f119c89f24751604956af3e16 | setup.py | setup.py | from setuptools import setup
setup(name='openarc',
version='0.5.0',
description='Functional reactive graph backed by PostgreSQL',
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 2.7',
'Topic ... | from setuptools import setup
setup(name='openarc',
version='0.5.0',
description='Functional reactive graph backed by PostgreSQL',
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 2.7',
'Topic ... | Add inflection and toml as dependencies for the project | Add inflection and toml as dependencies for the project
| Python | bsd-3-clause | kchoudhu/openarc | from setuptools import setup
setup(name='openarc',
version='0.5.0',
description='Functional reactive graph backed by PostgreSQL',
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 2.7',
'Topic ... | from setuptools import setup
setup(name='openarc',
version='0.5.0',
description='Functional reactive graph backed by PostgreSQL',
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 2.7',
'Topic ... | <commit_before>from setuptools import setup
setup(name='openarc',
version='0.5.0',
description='Functional reactive graph backed by PostgreSQL',
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 2.7',
... | from setuptools import setup
setup(name='openarc',
version='0.5.0',
description='Functional reactive graph backed by PostgreSQL',
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 2.7',
'Topic ... | from setuptools import setup
setup(name='openarc',
version='0.5.0',
description='Functional reactive graph backed by PostgreSQL',
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 2.7',
'Topic ... | <commit_before>from setuptools import setup
setup(name='openarc',
version='0.5.0',
description='Functional reactive graph backed by PostgreSQL',
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 2.7',
... |
ba063bd052284571ab6e51b0fcebe238c415071f | setup.py | setup.py | import os
import sys
import setuptools
from keystoneclient.openstack.common import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
requires = setup.parse_requirements()
depend_links = setup.parse_dependency_links()
tests_require = setup.parse_requirements(['tools/test-r... | import os
import sys
import setuptools
from keystoneclient.openstack.common import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
requires = setup.parse_requirements()
depend_links = setup.parse_dependency_links()
tests_require = setup.parse_requirements(['tools/test-r... | Add OpenStack trove classifier for PyPI | Add OpenStack trove classifier for PyPI
Add trove classifier to have the client listed among the
other OpenStack-related projets on PyPI.
Change-Id: I1ddae8d1272a2b1c5e4c666c9aa4e4a274431415
Signed-off-by: Doug Hellmann <8c845c26a3868dadec615703cd974244eb2ac6d1@dreamhost.com>
| Python | apache-2.0 | jamielennox/keystoneauth,sileht/keystoneauth,citrix-openstack-build/keystoneauth | import os
import sys
import setuptools
from keystoneclient.openstack.common import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
requires = setup.parse_requirements()
depend_links = setup.parse_dependency_links()
tests_require = setup.parse_requirements(['tools/test-r... | import os
import sys
import setuptools
from keystoneclient.openstack.common import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
requires = setup.parse_requirements()
depend_links = setup.parse_dependency_links()
tests_require = setup.parse_requirements(['tools/test-r... | <commit_before>import os
import sys
import setuptools
from keystoneclient.openstack.common import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
requires = setup.parse_requirements()
depend_links = setup.parse_dependency_links()
tests_require = setup.parse_requirements... | import os
import sys
import setuptools
from keystoneclient.openstack.common import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
requires = setup.parse_requirements()
depend_links = setup.parse_dependency_links()
tests_require = setup.parse_requirements(['tools/test-r... | import os
import sys
import setuptools
from keystoneclient.openstack.common import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
requires = setup.parse_requirements()
depend_links = setup.parse_dependency_links()
tests_require = setup.parse_requirements(['tools/test-r... | <commit_before>import os
import sys
import setuptools
from keystoneclient.openstack.common import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
requires = setup.parse_requirements()
depend_links = setup.parse_dependency_links()
tests_require = setup.parse_requirements... |
3bb0f94161966d04ab29fd1cd0b3e4ec34586c8c | setup.py | setup.py | #!/usr/bin/python
from setuptools import setup, find_packages
from prince import __author__, __license__, __title__, __version__
setup(
author=__author__,
author_email='maxhalford25@gmail.com',
description='Factor analysis for in-memory datasets in Python',
install_requires=[
'fbpca>=1.0',
... | #!/usr/bin/python
from setuptools import setup, find_packages
from prince import __author__, __license__, __title__, __version__
setup(
author=__author__,
author_email='maxhalford25@gmail.com',
description='Factor analysis for in-memory datasets in Python',
install_requires=[
'fbpca>=1.0',
... | Add bumpy requirement for rtd | Add bumpy requirement for rtd
| Python | mit | MaxHalford/Prince | #!/usr/bin/python
from setuptools import setup, find_packages
from prince import __author__, __license__, __title__, __version__
setup(
author=__author__,
author_email='maxhalford25@gmail.com',
description='Factor analysis for in-memory datasets in Python',
install_requires=[
'fbpca>=1.0',
... | #!/usr/bin/python
from setuptools import setup, find_packages
from prince import __author__, __license__, __title__, __version__
setup(
author=__author__,
author_email='maxhalford25@gmail.com',
description='Factor analysis for in-memory datasets in Python',
install_requires=[
'fbpca>=1.0',
... | <commit_before>#!/usr/bin/python
from setuptools import setup, find_packages
from prince import __author__, __license__, __title__, __version__
setup(
author=__author__,
author_email='maxhalford25@gmail.com',
description='Factor analysis for in-memory datasets in Python',
install_requires=[
... | #!/usr/bin/python
from setuptools import setup, find_packages
from prince import __author__, __license__, __title__, __version__
setup(
author=__author__,
author_email='maxhalford25@gmail.com',
description='Factor analysis for in-memory datasets in Python',
install_requires=[
'fbpca>=1.0',
... | #!/usr/bin/python
from setuptools import setup, find_packages
from prince import __author__, __license__, __title__, __version__
setup(
author=__author__,
author_email='maxhalford25@gmail.com',
description='Factor analysis for in-memory datasets in Python',
install_requires=[
'fbpca>=1.0',
... | <commit_before>#!/usr/bin/python
from setuptools import setup, find_packages
from prince import __author__, __license__, __title__, __version__
setup(
author=__author__,
author_email='maxhalford25@gmail.com',
description='Factor analysis for in-memory datasets in Python',
install_requires=[
... |
301f23067dde512f56ba5bf2201b666d125ffc96 | setup.py | setup.py | import sys
import os
from cx_Freeze import setup, Executable
paths = []
paths.extend(sys.path)
paths.append('whacked4')
build_exe_options = {
'packages': [],
'path': paths,
'include_files': ['res', 'cfg', 'docs', 'LICENSE', 'README.md'],
'optimize': 2,
'include_msvcr': True
}
build_exe_options['path'].append('sr... | import sys
import os
from cx_Freeze import setup, Executable
paths = []
paths.extend(sys.path)
paths.append('src')
build_exe_options = {
'path': paths,
'packages': ['whacked4'],
'include_files': ['res', 'cfg', 'docs', 'LICENSE', 'README.md'],
'optimize': 2,
'include_msvcr': True
}
base = None
if sys.platform ==... | Update distutils script. Release builds still twice the size though... | Update distutils script. Release builds still twice the size though...
| Python | bsd-2-clause | GitExl/WhackEd4,GitExl/WhackEd4 | import sys
import os
from cx_Freeze import setup, Executable
paths = []
paths.extend(sys.path)
paths.append('whacked4')
build_exe_options = {
'packages': [],
'path': paths,
'include_files': ['res', 'cfg', 'docs', 'LICENSE', 'README.md'],
'optimize': 2,
'include_msvcr': True
}
build_exe_options['path'].append('sr... | import sys
import os
from cx_Freeze import setup, Executable
paths = []
paths.extend(sys.path)
paths.append('src')
build_exe_options = {
'path': paths,
'packages': ['whacked4'],
'include_files': ['res', 'cfg', 'docs', 'LICENSE', 'README.md'],
'optimize': 2,
'include_msvcr': True
}
base = None
if sys.platform ==... | <commit_before>import sys
import os
from cx_Freeze import setup, Executable
paths = []
paths.extend(sys.path)
paths.append('whacked4')
build_exe_options = {
'packages': [],
'path': paths,
'include_files': ['res', 'cfg', 'docs', 'LICENSE', 'README.md'],
'optimize': 2,
'include_msvcr': True
}
build_exe_options['pa... | import sys
import os
from cx_Freeze import setup, Executable
paths = []
paths.extend(sys.path)
paths.append('src')
build_exe_options = {
'path': paths,
'packages': ['whacked4'],
'include_files': ['res', 'cfg', 'docs', 'LICENSE', 'README.md'],
'optimize': 2,
'include_msvcr': True
}
base = None
if sys.platform ==... | import sys
import os
from cx_Freeze import setup, Executable
paths = []
paths.extend(sys.path)
paths.append('whacked4')
build_exe_options = {
'packages': [],
'path': paths,
'include_files': ['res', 'cfg', 'docs', 'LICENSE', 'README.md'],
'optimize': 2,
'include_msvcr': True
}
build_exe_options['path'].append('sr... | <commit_before>import sys
import os
from cx_Freeze import setup, Executable
paths = []
paths.extend(sys.path)
paths.append('whacked4')
build_exe_options = {
'packages': [],
'path': paths,
'include_files': ['res', 'cfg', 'docs', 'LICENSE', 'README.md'],
'optimize': 2,
'include_msvcr': True
}
build_exe_options['pa... |
eb95c0f631e9f309aa6bbde82df84c05b55a357d | setup.py | setup.py | # -*- coding: utf-8 -*-
from setuptools import find_packages
from setuptools import setup
setup(
name='cheetah_lint',
description='Linting tools for the Cheetah templating language.',
url='https://github.com/asottile/cheetah_lint',
version='0.2.1',
author='Anthony Sottile',
author_email='asott... | # -*- coding: utf-8 -*-
from setuptools import find_packages
from setuptools import setup
setup(
name='cheetah_lint',
description='Linting tools for the Cheetah templating language.',
url='https://github.com/asottile/cheetah_lint',
version='0.2.1',
author='Anthony Sottile',
author_email='asott... | Upgrade the versions of things | Upgrade the versions of things
| Python | mit | asottile/cheetah_lint | # -*- coding: utf-8 -*-
from setuptools import find_packages
from setuptools import setup
setup(
name='cheetah_lint',
description='Linting tools for the Cheetah templating language.',
url='https://github.com/asottile/cheetah_lint',
version='0.2.1',
author='Anthony Sottile',
author_email='asott... | # -*- coding: utf-8 -*-
from setuptools import find_packages
from setuptools import setup
setup(
name='cheetah_lint',
description='Linting tools for the Cheetah templating language.',
url='https://github.com/asottile/cheetah_lint',
version='0.2.1',
author='Anthony Sottile',
author_email='asott... | <commit_before># -*- coding: utf-8 -*-
from setuptools import find_packages
from setuptools import setup
setup(
name='cheetah_lint',
description='Linting tools for the Cheetah templating language.',
url='https://github.com/asottile/cheetah_lint',
version='0.2.1',
author='Anthony Sottile',
auth... | # -*- coding: utf-8 -*-
from setuptools import find_packages
from setuptools import setup
setup(
name='cheetah_lint',
description='Linting tools for the Cheetah templating language.',
url='https://github.com/asottile/cheetah_lint',
version='0.2.1',
author='Anthony Sottile',
author_email='asott... | # -*- coding: utf-8 -*-
from setuptools import find_packages
from setuptools import setup
setup(
name='cheetah_lint',
description='Linting tools for the Cheetah templating language.',
url='https://github.com/asottile/cheetah_lint',
version='0.2.1',
author='Anthony Sottile',
author_email='asott... | <commit_before># -*- coding: utf-8 -*-
from setuptools import find_packages
from setuptools import setup
setup(
name='cheetah_lint',
description='Linting tools for the Cheetah templating language.',
url='https://github.com/asottile/cheetah_lint',
version='0.2.1',
author='Anthony Sottile',
auth... |
ca3366bfdec91797c0a5406a5ba8094c4d13a233 | comics/feedback/forms.py | comics/feedback/forms.py | from bootstrap.forms import BootstrapForm
from django import forms
class FeedbackForm(BootstrapForm):
message = forms.CharField(label="What's on your heart",
help_text='Remember to sign with you mail address if you want a reply.',
widget=forms.Textarea(attrs={'rows': 5, 'cols': 100}))
| from bootstrap.forms import BootstrapForm
from django import forms
class FeedbackForm(BootstrapForm):
message = forms.CharField(label="What's on your heart",
help_text='Sign with your email address if you want a reply.',
widget=forms.Textarea(attrs={'rows': 5, 'cols': 100}))
| Fix typo in feedback form help text | Fix typo in feedback form help text
| Python | agpl-3.0 | datagutten/comics,jodal/comics,jodal/comics,jodal/comics,datagutten/comics,jodal/comics,datagutten/comics,datagutten/comics | from bootstrap.forms import BootstrapForm
from django import forms
class FeedbackForm(BootstrapForm):
message = forms.CharField(label="What's on your heart",
help_text='Remember to sign with you mail address if you want a reply.',
widget=forms.Textarea(attrs={'rows': 5, 'cols': 100}))
Fix typo in f... | from bootstrap.forms import BootstrapForm
from django import forms
class FeedbackForm(BootstrapForm):
message = forms.CharField(label="What's on your heart",
help_text='Sign with your email address if you want a reply.',
widget=forms.Textarea(attrs={'rows': 5, 'cols': 100}))
| <commit_before>from bootstrap.forms import BootstrapForm
from django import forms
class FeedbackForm(BootstrapForm):
message = forms.CharField(label="What's on your heart",
help_text='Remember to sign with you mail address if you want a reply.',
widget=forms.Textarea(attrs={'rows': 5, 'cols': 100})... | from bootstrap.forms import BootstrapForm
from django import forms
class FeedbackForm(BootstrapForm):
message = forms.CharField(label="What's on your heart",
help_text='Sign with your email address if you want a reply.',
widget=forms.Textarea(attrs={'rows': 5, 'cols': 100}))
| from bootstrap.forms import BootstrapForm
from django import forms
class FeedbackForm(BootstrapForm):
message = forms.CharField(label="What's on your heart",
help_text='Remember to sign with you mail address if you want a reply.',
widget=forms.Textarea(attrs={'rows': 5, 'cols': 100}))
Fix typo in f... | <commit_before>from bootstrap.forms import BootstrapForm
from django import forms
class FeedbackForm(BootstrapForm):
message = forms.CharField(label="What's on your heart",
help_text='Remember to sign with you mail address if you want a reply.',
widget=forms.Textarea(attrs={'rows': 5, 'cols': 100})... |
cff9bc4b1967ded65ca580ec74842de0d3774cd3 | tddspry/django/settings.py | tddspry/django/settings.py | from django.conf import settings
from django.test import TransactionTestCase
from nose.util import resolve_name
__all__ = ('IP', 'PORT', 'SITE', 'DjangoTestCase')
IP = getattr(settings, 'TDDSPRY_IP', '127.0.0.1')
PORT = getattr(settings, 'TDDSPRY_PORT', 8080)
SITE = 'http://%s:%s/' % (IP, PORT)
DjangoTestCase = g... | from django.conf import settings
from django.test import TransactionTestCase
from nose.util import resolve_name
__all__ = ('IP', 'PORT', 'SITE', 'DjangoTestCase')
IP = getattr(settings, 'TDDSPRY_IP', '127.0.0.1')
PORT = getattr(settings, 'TDDSPRY_PORT', 8088)
SITE = 'http://%s:%s/' % (IP, PORT)
DjangoTestCase = g... | Fix default tddspry port for Twill journeys. | Fix default tddspry port for Twill journeys.
| Python | bsd-3-clause | playpauseandstop/tddspry,playpauseandstop/tddspry | from django.conf import settings
from django.test import TransactionTestCase
from nose.util import resolve_name
__all__ = ('IP', 'PORT', 'SITE', 'DjangoTestCase')
IP = getattr(settings, 'TDDSPRY_IP', '127.0.0.1')
PORT = getattr(settings, 'TDDSPRY_PORT', 8080)
SITE = 'http://%s:%s/' % (IP, PORT)
DjangoTestCase = g... | from django.conf import settings
from django.test import TransactionTestCase
from nose.util import resolve_name
__all__ = ('IP', 'PORT', 'SITE', 'DjangoTestCase')
IP = getattr(settings, 'TDDSPRY_IP', '127.0.0.1')
PORT = getattr(settings, 'TDDSPRY_PORT', 8088)
SITE = 'http://%s:%s/' % (IP, PORT)
DjangoTestCase = g... | <commit_before>from django.conf import settings
from django.test import TransactionTestCase
from nose.util import resolve_name
__all__ = ('IP', 'PORT', 'SITE', 'DjangoTestCase')
IP = getattr(settings, 'TDDSPRY_IP', '127.0.0.1')
PORT = getattr(settings, 'TDDSPRY_PORT', 8080)
SITE = 'http://%s:%s/' % (IP, PORT)
Dja... | from django.conf import settings
from django.test import TransactionTestCase
from nose.util import resolve_name
__all__ = ('IP', 'PORT', 'SITE', 'DjangoTestCase')
IP = getattr(settings, 'TDDSPRY_IP', '127.0.0.1')
PORT = getattr(settings, 'TDDSPRY_PORT', 8088)
SITE = 'http://%s:%s/' % (IP, PORT)
DjangoTestCase = g... | from django.conf import settings
from django.test import TransactionTestCase
from nose.util import resolve_name
__all__ = ('IP', 'PORT', 'SITE', 'DjangoTestCase')
IP = getattr(settings, 'TDDSPRY_IP', '127.0.0.1')
PORT = getattr(settings, 'TDDSPRY_PORT', 8080)
SITE = 'http://%s:%s/' % (IP, PORT)
DjangoTestCase = g... | <commit_before>from django.conf import settings
from django.test import TransactionTestCase
from nose.util import resolve_name
__all__ = ('IP', 'PORT', 'SITE', 'DjangoTestCase')
IP = getattr(settings, 'TDDSPRY_IP', '127.0.0.1')
PORT = getattr(settings, 'TDDSPRY_PORT', 8080)
SITE = 'http://%s:%s/' % (IP, PORT)
Dja... |
3c722947d8ece448dec7ce9f82c2a477c667c4a8 | setup.py | setup.py | from setuptools import setup
setup(
name='playlistfromsong',
packages=['playlistfromsong'],
version='0.22',
description='An offline music station generator',
author='schollz',
url='https://github.com/schollz/playlistfromsong',
author_email='hypercube.platforms@gmail.com',
download_url='... | from setuptools import setup
setup(
name='playlistfromsong',
packages=['playlistfromsong'],
version='1.0.0',
description='An offline music station generator',
author='schollz',
url='https://github.com/schollz/playlistfromsong',
author_email='hypercube.platforms@gmail.com',
download_url=... | Upgrade to 1.0.0 (switch to semantic versioning) | Upgrade to 1.0.0 (switch to semantic versioning)
| Python | mit | schollz/playlistfromsong | from setuptools import setup
setup(
name='playlistfromsong',
packages=['playlistfromsong'],
version='0.22',
description='An offline music station generator',
author='schollz',
url='https://github.com/schollz/playlistfromsong',
author_email='hypercube.platforms@gmail.com',
download_url='... | from setuptools import setup
setup(
name='playlistfromsong',
packages=['playlistfromsong'],
version='1.0.0',
description='An offline music station generator',
author='schollz',
url='https://github.com/schollz/playlistfromsong',
author_email='hypercube.platforms@gmail.com',
download_url=... | <commit_before>from setuptools import setup
setup(
name='playlistfromsong',
packages=['playlistfromsong'],
version='0.22',
description='An offline music station generator',
author='schollz',
url='https://github.com/schollz/playlistfromsong',
author_email='hypercube.platforms@gmail.com',
... | from setuptools import setup
setup(
name='playlistfromsong',
packages=['playlistfromsong'],
version='1.0.0',
description='An offline music station generator',
author='schollz',
url='https://github.com/schollz/playlistfromsong',
author_email='hypercube.platforms@gmail.com',
download_url=... | from setuptools import setup
setup(
name='playlistfromsong',
packages=['playlistfromsong'],
version='0.22',
description='An offline music station generator',
author='schollz',
url='https://github.com/schollz/playlistfromsong',
author_email='hypercube.platforms@gmail.com',
download_url='... | <commit_before>from setuptools import setup
setup(
name='playlistfromsong',
packages=['playlistfromsong'],
version='0.22',
description='An offline music station generator',
author='schollz',
url='https://github.com/schollz/playlistfromsong',
author_email='hypercube.platforms@gmail.com',
... |
431d3e960962543fd162770475a488bd9e21217e | setup.py | setup.py | from distutils.core import setup
version=__import__('sendfile').__version__
setup(
name='django-sendfile',
version=version,
description='Abstraction to offload file uploads to web-server (e.g. Apache with mod_xsendfile) once Django has checked permissions etc.',
long_description=open('README.rst').re... | from distutils.core import setup
version=__import__('sendfile').__version__
setup(
name='django-sendfile',
version=version,
description='Abstraction to offload file uploads to web-server (e.g. Apache with mod_xsendfile) once Django has checked permissions etc.',
long_description=open('README.rst').re... | Fix requirements so pip correctly installs Django and Unidecode. | Fix requirements so pip correctly installs Django and Unidecode.
| Python | bsd-3-clause | karyon/django-sendfile,nathanielvarona/django-sendfile,joshcartme/django-sendfile,NotSqrt/django-sendfile,johnsensible/django-sendfile,joshcartme/django-sendfile | from distutils.core import setup
version=__import__('sendfile').__version__
setup(
name='django-sendfile',
version=version,
description='Abstraction to offload file uploads to web-server (e.g. Apache with mod_xsendfile) once Django has checked permissions etc.',
long_description=open('README.rst').re... | from distutils.core import setup
version=__import__('sendfile').__version__
setup(
name='django-sendfile',
version=version,
description='Abstraction to offload file uploads to web-server (e.g. Apache with mod_xsendfile) once Django has checked permissions etc.',
long_description=open('README.rst').re... | <commit_before>from distutils.core import setup
version=__import__('sendfile').__version__
setup(
name='django-sendfile',
version=version,
description='Abstraction to offload file uploads to web-server (e.g. Apache with mod_xsendfile) once Django has checked permissions etc.',
long_description=open('... | from distutils.core import setup
version=__import__('sendfile').__version__
setup(
name='django-sendfile',
version=version,
description='Abstraction to offload file uploads to web-server (e.g. Apache with mod_xsendfile) once Django has checked permissions etc.',
long_description=open('README.rst').re... | from distutils.core import setup
version=__import__('sendfile').__version__
setup(
name='django-sendfile',
version=version,
description='Abstraction to offload file uploads to web-server (e.g. Apache with mod_xsendfile) once Django has checked permissions etc.',
long_description=open('README.rst').re... | <commit_before>from distutils.core import setup
version=__import__('sendfile').__version__
setup(
name='django-sendfile',
version=version,
description='Abstraction to offload file uploads to web-server (e.g. Apache with mod_xsendfile) once Django has checked permissions etc.',
long_description=open('... |
3fc93588ad319d8f709d89b32782e530725db1ca | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup,find_packages
METADATA = dict(
name='django-socialregistration',
version='0.4.2',
author='Alen Mujezinovic',
author_email='alen@caffeinehit.com',
description='Django application enabling registration through a variety of APIs',
long_description... | #!/usr/bin/env python
from setuptools import setup,find_packages
METADATA = dict(
name='django-socialregistration',
version='0.4.2',
author='Alen Mujezinovic',
author_email='alen@caffeinehit.com',
description='Django application enabling registration through a variety of APIs',
long_description... | Remove django requirement to prevent installing two versions of django | Remove django requirement to prevent installing two versions of django
| Python | mit | coxmediagroup/django-socialregistration,coxmediagroup/django-socialregistration | #!/usr/bin/env python
from setuptools import setup,find_packages
METADATA = dict(
name='django-socialregistration',
version='0.4.2',
author='Alen Mujezinovic',
author_email='alen@caffeinehit.com',
description='Django application enabling registration through a variety of APIs',
long_description... | #!/usr/bin/env python
from setuptools import setup,find_packages
METADATA = dict(
name='django-socialregistration',
version='0.4.2',
author='Alen Mujezinovic',
author_email='alen@caffeinehit.com',
description='Django application enabling registration through a variety of APIs',
long_description... | <commit_before>#!/usr/bin/env python
from setuptools import setup,find_packages
METADATA = dict(
name='django-socialregistration',
version='0.4.2',
author='Alen Mujezinovic',
author_email='alen@caffeinehit.com',
description='Django application enabling registration through a variety of APIs',
l... | #!/usr/bin/env python
from setuptools import setup,find_packages
METADATA = dict(
name='django-socialregistration',
version='0.4.2',
author='Alen Mujezinovic',
author_email='alen@caffeinehit.com',
description='Django application enabling registration through a variety of APIs',
long_description... | #!/usr/bin/env python
from setuptools import setup,find_packages
METADATA = dict(
name='django-socialregistration',
version='0.4.2',
author='Alen Mujezinovic',
author_email='alen@caffeinehit.com',
description='Django application enabling registration through a variety of APIs',
long_description... | <commit_before>#!/usr/bin/env python
from setuptools import setup,find_packages
METADATA = dict(
name='django-socialregistration',
version='0.4.2',
author='Alen Mujezinovic',
author_email='alen@caffeinehit.com',
description='Django application enabling registration through a variety of APIs',
l... |
7c5518b8aa6c1f4421aac7b8a652d737a17c4e86 | setup.py | setup.py | from distutils.core import setup
setup(
name='passphrase',
version='0.0.2',
author='Rob Martin @version2beta',
author_email='rob@version2beta.com',
packages=['passphrase'],
scripts=[],
url='http://pypi.python.org/pypi/passphrase/',
license='LICENSE.txt',
description='List a series o... | from distutils.core import setup
setup(
name='passphrase',
version='0.0.2',
author='Rob Martin @version2beta',
author_email='rob@version2beta.com',
packages=['passphrase'],
scripts=[],
url='http://pypi.python.org/pypi/passphrase/',
license='LICENSE.txt',
description='List a series o... | Make it into a package | Make it into a package
| Python | bsd-3-clause | Version2beta/passphrase | from distutils.core import setup
setup(
name='passphrase',
version='0.0.2',
author='Rob Martin @version2beta',
author_email='rob@version2beta.com',
packages=['passphrase'],
scripts=[],
url='http://pypi.python.org/pypi/passphrase/',
license='LICENSE.txt',
description='List a series o... | from distutils.core import setup
setup(
name='passphrase',
version='0.0.2',
author='Rob Martin @version2beta',
author_email='rob@version2beta.com',
packages=['passphrase'],
scripts=[],
url='http://pypi.python.org/pypi/passphrase/',
license='LICENSE.txt',
description='List a series o... | <commit_before>from distutils.core import setup
setup(
name='passphrase',
version='0.0.2',
author='Rob Martin @version2beta',
author_email='rob@version2beta.com',
packages=['passphrase'],
scripts=[],
url='http://pypi.python.org/pypi/passphrase/',
license='LICENSE.txt',
description='... | from distutils.core import setup
setup(
name='passphrase',
version='0.0.2',
author='Rob Martin @version2beta',
author_email='rob@version2beta.com',
packages=['passphrase'],
scripts=[],
url='http://pypi.python.org/pypi/passphrase/',
license='LICENSE.txt',
description='List a series o... | from distutils.core import setup
setup(
name='passphrase',
version='0.0.2',
author='Rob Martin @version2beta',
author_email='rob@version2beta.com',
packages=['passphrase'],
scripts=[],
url='http://pypi.python.org/pypi/passphrase/',
license='LICENSE.txt',
description='List a series o... | <commit_before>from distutils.core import setup
setup(
name='passphrase',
version='0.0.2',
author='Rob Martin @version2beta',
author_email='rob@version2beta.com',
packages=['passphrase'],
scripts=[],
url='http://pypi.python.org/pypi/passphrase/',
license='LICENSE.txt',
description='... |
4fa59bf4e68f01613c80eb584c15c882606019e7 | setup.py | setup.py | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
from setuptools import setup, find_packages
PACKAGE_VERSION = '0.1'
deps = [
'flask',
'Jinja2',
'manifestp... | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
from setuptools import setup, find_packages
PACKAGE_VERSION = '0.1'
deps = [
'flask',
'Jinja2',
'manifestp... | Add entry point for generating reports | Add entry point for generating reports
| Python | mpl-2.0 | ahal/test-informant,mozilla/test-informant,ahal/test-informant,mozilla/test-informant | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
from setuptools import setup, find_packages
PACKAGE_VERSION = '0.1'
deps = [
'flask',
'Jinja2',
'manifestp... | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
from setuptools import setup, find_packages
PACKAGE_VERSION = '0.1'
deps = [
'flask',
'Jinja2',
'manifestp... | <commit_before># This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
from setuptools import setup, find_packages
PACKAGE_VERSION = '0.1'
deps = [
'flask',
'Jinja2',... | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
from setuptools import setup, find_packages
PACKAGE_VERSION = '0.1'
deps = [
'flask',
'Jinja2',
'manifestp... | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
from setuptools import setup, find_packages
PACKAGE_VERSION = '0.1'
deps = [
'flask',
'Jinja2',
'manifestp... | <commit_before># This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
from setuptools import setup, find_packages
PACKAGE_VERSION = '0.1'
deps = [
'flask',
'Jinja2',... |
882dc508a864d22ffb6879d9d8ed35012c13b656 | lifx/listen.py | lifx/listen.py |
from pprint import pprint
import socket
import packetcodec
from binascii import hexlify
UDP_IP = "0.0.0.0"
UDP_PORT = 56700
sock = socket.socket(socket.AF_INET,
socket.SOCK_DGRAM)
sock.bind((UDP_IP, UDP_PORT))
while True:
data, addr = sock.recvfrom(1024)
packet = packetcodec.decode_pac... |
from pprint import pprint
import socket
import packetcodec
from binascii import hexlify
UDP_IP = "0.0.0.0"
UDP_PORT = 56700
sock = socket.socket(socket.AF_INET,
socket.SOCK_DGRAM)
sock.bind((UDP_IP, UDP_PORT))
while True:
data, addr = sock.recvfrom(1024)
packet = packetcodec.decode_pac... | Print in python 3 requires parens | Print in python 3 requires parens
| Python | agpl-3.0 | sharph/lifx-python |
from pprint import pprint
import socket
import packetcodec
from binascii import hexlify
UDP_IP = "0.0.0.0"
UDP_PORT = 56700
sock = socket.socket(socket.AF_INET,
socket.SOCK_DGRAM)
sock.bind((UDP_IP, UDP_PORT))
while True:
data, addr = sock.recvfrom(1024)
packet = packetcodec.decode_pac... |
from pprint import pprint
import socket
import packetcodec
from binascii import hexlify
UDP_IP = "0.0.0.0"
UDP_PORT = 56700
sock = socket.socket(socket.AF_INET,
socket.SOCK_DGRAM)
sock.bind((UDP_IP, UDP_PORT))
while True:
data, addr = sock.recvfrom(1024)
packet = packetcodec.decode_pac... | <commit_before>
from pprint import pprint
import socket
import packetcodec
from binascii import hexlify
UDP_IP = "0.0.0.0"
UDP_PORT = 56700
sock = socket.socket(socket.AF_INET,
socket.SOCK_DGRAM)
sock.bind((UDP_IP, UDP_PORT))
while True:
data, addr = sock.recvfrom(1024)
packet = packetc... |
from pprint import pprint
import socket
import packetcodec
from binascii import hexlify
UDP_IP = "0.0.0.0"
UDP_PORT = 56700
sock = socket.socket(socket.AF_INET,
socket.SOCK_DGRAM)
sock.bind((UDP_IP, UDP_PORT))
while True:
data, addr = sock.recvfrom(1024)
packet = packetcodec.decode_pac... |
from pprint import pprint
import socket
import packetcodec
from binascii import hexlify
UDP_IP = "0.0.0.0"
UDP_PORT = 56700
sock = socket.socket(socket.AF_INET,
socket.SOCK_DGRAM)
sock.bind((UDP_IP, UDP_PORT))
while True:
data, addr = sock.recvfrom(1024)
packet = packetcodec.decode_pac... | <commit_before>
from pprint import pprint
import socket
import packetcodec
from binascii import hexlify
UDP_IP = "0.0.0.0"
UDP_PORT = 56700
sock = socket.socket(socket.AF_INET,
socket.SOCK_DGRAM)
sock.bind((UDP_IP, UDP_PORT))
while True:
data, addr = sock.recvfrom(1024)
packet = packetc... |
fda08d81e3b6a4aae5610973053890bf8b283bf0 | buffer/tests/test_profile.py | buffer/tests/test_profile.py | import json
from nose.tools import eq_, raises
from mock import MagicMock, patch
from buffer.models.profile import Profile, PATHS
mocked_response = {
'name': 'me',
'service': 'twiter',
'id': 1
}
def test_profile_schedules_getter():
'''
Test schedules gettering from buffer api
'''
mocked_api = Magic... | import json
from nose.tools import eq_, raises
from mock import MagicMock, patch
from buffer.models.profile import Profile, PATHS
mocked_response = {
'name': 'me',
'service': 'twiter',
'id': 1
}
def test_profile_schedules_getter():
'''
Test schedules gettering from buffer api
'''
mocked_api = Magic... | Test profile's relationship with updates | Test profile's relationship with updates
| Python | mit | vtemian/buffpy,bufferapp/buffer-python | import json
from nose.tools import eq_, raises
from mock import MagicMock, patch
from buffer.models.profile import Profile, PATHS
mocked_response = {
'name': 'me',
'service': 'twiter',
'id': 1
}
def test_profile_schedules_getter():
'''
Test schedules gettering from buffer api
'''
mocked_api = Magic... | import json
from nose.tools import eq_, raises
from mock import MagicMock, patch
from buffer.models.profile import Profile, PATHS
mocked_response = {
'name': 'me',
'service': 'twiter',
'id': 1
}
def test_profile_schedules_getter():
'''
Test schedules gettering from buffer api
'''
mocked_api = Magic... | <commit_before>import json
from nose.tools import eq_, raises
from mock import MagicMock, patch
from buffer.models.profile import Profile, PATHS
mocked_response = {
'name': 'me',
'service': 'twiter',
'id': 1
}
def test_profile_schedules_getter():
'''
Test schedules gettering from buffer api
'''
moc... | import json
from nose.tools import eq_, raises
from mock import MagicMock, patch
from buffer.models.profile import Profile, PATHS
mocked_response = {
'name': 'me',
'service': 'twiter',
'id': 1
}
def test_profile_schedules_getter():
'''
Test schedules gettering from buffer api
'''
mocked_api = Magic... | import json
from nose.tools import eq_, raises
from mock import MagicMock, patch
from buffer.models.profile import Profile, PATHS
mocked_response = {
'name': 'me',
'service': 'twiter',
'id': 1
}
def test_profile_schedules_getter():
'''
Test schedules gettering from buffer api
'''
mocked_api = Magic... | <commit_before>import json
from nose.tools import eq_, raises
from mock import MagicMock, patch
from buffer.models.profile import Profile, PATHS
mocked_response = {
'name': 'me',
'service': 'twiter',
'id': 1
}
def test_profile_schedules_getter():
'''
Test schedules gettering from buffer api
'''
moc... |
232bffd6e41b87b05d9e0c65401ace3163bfc799 | djedi/templatetags/djedi_admin.py | djedi/templatetags/djedi_admin.py | import json
import logging
from django import template
from django.template.loader import render_to_string
from cio.pipeline import pipeline
from ..auth import has_permission
register = template.Library()
logger = logging.getLogger(__name__)
@register.simple_tag(takes_context=True)
def djedi_admin(context):
outp... | import json
import logging
from django import template
from django.template.loader import render_to_string
from cio.pipeline import pipeline
from ..auth import has_permission
register = template.Library()
logger = logging.getLogger(__name__)
@register.simple_tag(takes_context=True)
def djedi_admin(context):
outp... | Clear content-io pipeline after rendering admin panel | Clear content-io pipeline after rendering admin panel
| Python | bsd-3-clause | joar/djedi-cms,andreif/djedi-cms,joar/djedi-cms,5monkeys/djedi-cms,andreif/djedi-cms,5monkeys/djedi-cms,joar/djedi-cms,andreif/djedi-cms,5monkeys/djedi-cms | import json
import logging
from django import template
from django.template.loader import render_to_string
from cio.pipeline import pipeline
from ..auth import has_permission
register = template.Library()
logger = logging.getLogger(__name__)
@register.simple_tag(takes_context=True)
def djedi_admin(context):
outp... | import json
import logging
from django import template
from django.template.loader import render_to_string
from cio.pipeline import pipeline
from ..auth import has_permission
register = template.Library()
logger = logging.getLogger(__name__)
@register.simple_tag(takes_context=True)
def djedi_admin(context):
outp... | <commit_before>import json
import logging
from django import template
from django.template.loader import render_to_string
from cio.pipeline import pipeline
from ..auth import has_permission
register = template.Library()
logger = logging.getLogger(__name__)
@register.simple_tag(takes_context=True)
def djedi_admin(con... | import json
import logging
from django import template
from django.template.loader import render_to_string
from cio.pipeline import pipeline
from ..auth import has_permission
register = template.Library()
logger = logging.getLogger(__name__)
@register.simple_tag(takes_context=True)
def djedi_admin(context):
outp... | import json
import logging
from django import template
from django.template.loader import render_to_string
from cio.pipeline import pipeline
from ..auth import has_permission
register = template.Library()
logger = logging.getLogger(__name__)
@register.simple_tag(takes_context=True)
def djedi_admin(context):
outp... | <commit_before>import json
import logging
from django import template
from django.template.loader import render_to_string
from cio.pipeline import pipeline
from ..auth import has_permission
register = template.Library()
logger = logging.getLogger(__name__)
@register.simple_tag(takes_context=True)
def djedi_admin(con... |
54d06439fd21f58208ddcf8583d070aba2674243 | linter.py | linter.py | #
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Robin Deits
# Copyright (c) 2014 Robin Deits
#
# License: MIT
#
"""This module exports the Mlint plugin class."""
from SublimeLinter.lint import Linter, util, highlight
class Mlint(Linter):
"""Provides an int... | #
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Robin Deits
# Copyright (c) 2014 Robin Deits
#
# License: MIT
#
"""This module exports the Mlint plugin class."""
from SublimeLinter.lint import Linter, util, highlight
class Mlint(Linter):
"""Provides an int... | Remove unnecessary '@' flag from command | Remove unnecessary '@' flag from command
| Python | mit | rdeits/SublimeLinter-contrib-mlint | #
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Robin Deits
# Copyright (c) 2014 Robin Deits
#
# License: MIT
#
"""This module exports the Mlint plugin class."""
from SublimeLinter.lint import Linter, util, highlight
class Mlint(Linter):
"""Provides an int... | #
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Robin Deits
# Copyright (c) 2014 Robin Deits
#
# License: MIT
#
"""This module exports the Mlint plugin class."""
from SublimeLinter.lint import Linter, util, highlight
class Mlint(Linter):
"""Provides an int... | <commit_before>#
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Robin Deits
# Copyright (c) 2014 Robin Deits
#
# License: MIT
#
"""This module exports the Mlint plugin class."""
from SublimeLinter.lint import Linter, util, highlight
class Mlint(Linter):
"""... | #
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Robin Deits
# Copyright (c) 2014 Robin Deits
#
# License: MIT
#
"""This module exports the Mlint plugin class."""
from SublimeLinter.lint import Linter, util, highlight
class Mlint(Linter):
"""Provides an int... | #
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Robin Deits
# Copyright (c) 2014 Robin Deits
#
# License: MIT
#
"""This module exports the Mlint plugin class."""
from SublimeLinter.lint import Linter, util, highlight
class Mlint(Linter):
"""Provides an int... | <commit_before>#
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Robin Deits
# Copyright (c) 2014 Robin Deits
#
# License: MIT
#
"""This module exports the Mlint plugin class."""
from SublimeLinter.lint import Linter, util, highlight
class Mlint(Linter):
"""... |
d600cea1c86c3c3e56b41a7b57191ae35fea51b9 | linter.py | linter.py | #
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Ilya Akhmadullin
# Copyright (c) 2013 Ilya Akhmadullin
#
# License: MIT
#
"""This module exports the jscs plugin class."""
from SublimeLinter.lint import Linter
class Jscs(Linter):
"""Provides an interface to... | #
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Ilya Akhmadullin
# Copyright (c) 2013 Ilya Akhmadullin
#
# License: MIT
#
"""This module exports the jscs plugin class."""
from SublimeLinter.lint import Linter
class Jscs(Linter):
"""Provides an interface to... | Enable plugin for inline js in html files | Enable plugin for inline js in html files
| Python | mit | SublimeLinter/SublimeLinter-jscs,roberthoog/SublimeLinter-jscs | #
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Ilya Akhmadullin
# Copyright (c) 2013 Ilya Akhmadullin
#
# License: MIT
#
"""This module exports the jscs plugin class."""
from SublimeLinter.lint import Linter
class Jscs(Linter):
"""Provides an interface to... | #
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Ilya Akhmadullin
# Copyright (c) 2013 Ilya Akhmadullin
#
# License: MIT
#
"""This module exports the jscs plugin class."""
from SublimeLinter.lint import Linter
class Jscs(Linter):
"""Provides an interface to... | <commit_before>#
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Ilya Akhmadullin
# Copyright (c) 2013 Ilya Akhmadullin
#
# License: MIT
#
"""This module exports the jscs plugin class."""
from SublimeLinter.lint import Linter
class Jscs(Linter):
"""Provides ... | #
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Ilya Akhmadullin
# Copyright (c) 2013 Ilya Akhmadullin
#
# License: MIT
#
"""This module exports the jscs plugin class."""
from SublimeLinter.lint import Linter
class Jscs(Linter):
"""Provides an interface to... | #
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Ilya Akhmadullin
# Copyright (c) 2013 Ilya Akhmadullin
#
# License: MIT
#
"""This module exports the jscs plugin class."""
from SublimeLinter.lint import Linter
class Jscs(Linter):
"""Provides an interface to... | <commit_before>#
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Ilya Akhmadullin
# Copyright (c) 2013 Ilya Akhmadullin
#
# License: MIT
#
"""This module exports the jscs plugin class."""
from SublimeLinter.lint import Linter
class Jscs(Linter):
"""Provides ... |
4346c52d8ec3497279fa4ce16b4ab2e4e51c82bd | Demo/parser/test_parser.py | Demo/parser/test_parser.py | #! /usr/bin/env python
# (Force the script to use the latest build.)
#
# test_parser.py
import parser, traceback
_numFailed = 0
def testChunk(t, fileName):
global _numFailed
print '----', fileName,
try:
ast = parser.suite(t)
tup = parser.ast2tuple(ast)
# this discards the first ... | #! /usr/bin/env python
# (Force the script to use the latest build.)
#
# test_parser.py
import parser, traceback
_numFailed = 0
def testChunk(t, fileName):
global _numFailed
print '----', fileName,
try:
ast = parser.suite(t)
tup = parser.ast2tuple(ast)
# this discards the first ... | Sort the list of files processed before running the test on each. | Sort the list of files processed before running the test on each.
| Python | mit | sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator | #! /usr/bin/env python
# (Force the script to use the latest build.)
#
# test_parser.py
import parser, traceback
_numFailed = 0
def testChunk(t, fileName):
global _numFailed
print '----', fileName,
try:
ast = parser.suite(t)
tup = parser.ast2tuple(ast)
# this discards the first ... | #! /usr/bin/env python
# (Force the script to use the latest build.)
#
# test_parser.py
import parser, traceback
_numFailed = 0
def testChunk(t, fileName):
global _numFailed
print '----', fileName,
try:
ast = parser.suite(t)
tup = parser.ast2tuple(ast)
# this discards the first ... | <commit_before>#! /usr/bin/env python
# (Force the script to use the latest build.)
#
# test_parser.py
import parser, traceback
_numFailed = 0
def testChunk(t, fileName):
global _numFailed
print '----', fileName,
try:
ast = parser.suite(t)
tup = parser.ast2tuple(ast)
# this disc... | #! /usr/bin/env python
# (Force the script to use the latest build.)
#
# test_parser.py
import parser, traceback
_numFailed = 0
def testChunk(t, fileName):
global _numFailed
print '----', fileName,
try:
ast = parser.suite(t)
tup = parser.ast2tuple(ast)
# this discards the first ... | #! /usr/bin/env python
# (Force the script to use the latest build.)
#
# test_parser.py
import parser, traceback
_numFailed = 0
def testChunk(t, fileName):
global _numFailed
print '----', fileName,
try:
ast = parser.suite(t)
tup = parser.ast2tuple(ast)
# this discards the first ... | <commit_before>#! /usr/bin/env python
# (Force the script to use the latest build.)
#
# test_parser.py
import parser, traceback
_numFailed = 0
def testChunk(t, fileName):
global _numFailed
print '----', fileName,
try:
ast = parser.suite(t)
tup = parser.ast2tuple(ast)
# this disc... |
5f64b609b621626e04516cac1c3313a3f948f19e | main.py | main.py | import logging
import telebot
import timer
import bot
import os
logging.basicConfig(level=logging.DEBUG,
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
logging.info("Begin start server.")
tgBot = telebot.TeleBot(os.getenv("BOT_ID", ""))
bot.getTracker(tgBot, logging)()
timer.getT... | import logging
import telebot
import timer
import bot
import os
logging.basicConfig(level=logging.INFO,
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
logging.info("Begin start server.")
tgBot = telebot.TeleBot(os.getenv("BOT_ID", ""))
bot.getTracker(tgBot, logging)()
timer.getTi... | Change While True Try to none_stop=True | Change While True Try to none_stop=True
| Python | mit | ITelegramBot/PackageTrackerBot | import logging
import telebot
import timer
import bot
import os
logging.basicConfig(level=logging.DEBUG,
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
logging.info("Begin start server.")
tgBot = telebot.TeleBot(os.getenv("BOT_ID", ""))
bot.getTracker(tgBot, logging)()
timer.getT... | import logging
import telebot
import timer
import bot
import os
logging.basicConfig(level=logging.INFO,
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
logging.info("Begin start server.")
tgBot = telebot.TeleBot(os.getenv("BOT_ID", ""))
bot.getTracker(tgBot, logging)()
timer.getTi... | <commit_before>import logging
import telebot
import timer
import bot
import os
logging.basicConfig(level=logging.DEBUG,
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
logging.info("Begin start server.")
tgBot = telebot.TeleBot(os.getenv("BOT_ID", ""))
bot.getTracker(tgBot, logging... | import logging
import telebot
import timer
import bot
import os
logging.basicConfig(level=logging.INFO,
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
logging.info("Begin start server.")
tgBot = telebot.TeleBot(os.getenv("BOT_ID", ""))
bot.getTracker(tgBot, logging)()
timer.getTi... | import logging
import telebot
import timer
import bot
import os
logging.basicConfig(level=logging.DEBUG,
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
logging.info("Begin start server.")
tgBot = telebot.TeleBot(os.getenv("BOT_ID", ""))
bot.getTracker(tgBot, logging)()
timer.getT... | <commit_before>import logging
import telebot
import timer
import bot
import os
logging.basicConfig(level=logging.DEBUG,
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
logging.info("Begin start server.")
tgBot = telebot.TeleBot(os.getenv("BOT_ID", ""))
bot.getTracker(tgBot, logging... |
13d8160aecb8abbd981b62cd3a06d5b2b6c964f8 | kokki/cookbooks/cloudera/recipes/default.py | kokki/cookbooks/cloudera/recipes/default.py |
from kokki import *
apt_list_path = '/etc/apt/sources.list.d/cloudera.list'
apt = (
"deb http://archive.cloudera.com/debian {distro}-cdh3 contrib\n"
"deb-src http://archive.cloudera.com/debian {distro}-cdh3 contrib\n"
).format(distro=env.system.lsb['codename'])
Execute("apt-get update", action="nothing")
Ex... |
from kokki import *
apt_list_path = '/etc/apt/sources.list.d/cloudera.list'
apt = (
"deb http://archive.cloudera.com/debian {distro}-cdh3 contrib\n"
"deb-src http://archive.cloudera.com/debian {distro}-cdh3 contrib\n"
).format(distro=env.system.lsb['codename'])
Execute("apt-get update", action="nothing")
Ex... | Make sure to immediately do apt-get update when adding a repository | Make sure to immediately do apt-get update when adding a repository
| Python | bsd-3-clause | samuel/kokki |
from kokki import *
apt_list_path = '/etc/apt/sources.list.d/cloudera.list'
apt = (
"deb http://archive.cloudera.com/debian {distro}-cdh3 contrib\n"
"deb-src http://archive.cloudera.com/debian {distro}-cdh3 contrib\n"
).format(distro=env.system.lsb['codename'])
Execute("apt-get update", action="nothing")
Ex... |
from kokki import *
apt_list_path = '/etc/apt/sources.list.d/cloudera.list'
apt = (
"deb http://archive.cloudera.com/debian {distro}-cdh3 contrib\n"
"deb-src http://archive.cloudera.com/debian {distro}-cdh3 contrib\n"
).format(distro=env.system.lsb['codename'])
Execute("apt-get update", action="nothing")
Ex... | <commit_before>
from kokki import *
apt_list_path = '/etc/apt/sources.list.d/cloudera.list'
apt = (
"deb http://archive.cloudera.com/debian {distro}-cdh3 contrib\n"
"deb-src http://archive.cloudera.com/debian {distro}-cdh3 contrib\n"
).format(distro=env.system.lsb['codename'])
Execute("apt-get update", action... |
from kokki import *
apt_list_path = '/etc/apt/sources.list.d/cloudera.list'
apt = (
"deb http://archive.cloudera.com/debian {distro}-cdh3 contrib\n"
"deb-src http://archive.cloudera.com/debian {distro}-cdh3 contrib\n"
).format(distro=env.system.lsb['codename'])
Execute("apt-get update", action="nothing")
Ex... |
from kokki import *
apt_list_path = '/etc/apt/sources.list.d/cloudera.list'
apt = (
"deb http://archive.cloudera.com/debian {distro}-cdh3 contrib\n"
"deb-src http://archive.cloudera.com/debian {distro}-cdh3 contrib\n"
).format(distro=env.system.lsb['codename'])
Execute("apt-get update", action="nothing")
Ex... | <commit_before>
from kokki import *
apt_list_path = '/etc/apt/sources.list.d/cloudera.list'
apt = (
"deb http://archive.cloudera.com/debian {distro}-cdh3 contrib\n"
"deb-src http://archive.cloudera.com/debian {distro}-cdh3 contrib\n"
).format(distro=env.system.lsb['codename'])
Execute("apt-get update", action... |
c7761a3b8a090e24b68b1318f1451752e34078e9 | alexandria/decorators.py | alexandria/decorators.py | from functools import wraps
from flask import session, redirect, url_for, request, abort
from alexandria import mongo
def not_even_one(f):
@wraps(f)
def decorated_function(*args, **kwargs):
if mongo.Books.find_one() is None:
return redirect(url_for('upload'))
return f(*args, **kwarg... | from functools import wraps
from flask import session, redirect, url_for, request, abort
from alexandria import mongo
def not_even_one(f):
@wraps(f)
def decorated_function(*args, **kwargs):
if mongo.Books.find_one() is None:
return redirect(url_for('upload'))
return f(*args, **kwarg... | Abort with appropriate status codes in the decorator | Abort with appropriate status codes in the decorator
| Python | mit | citruspi/Alexandria,citruspi/Alexandria | from functools import wraps
from flask import session, redirect, url_for, request, abort
from alexandria import mongo
def not_even_one(f):
@wraps(f)
def decorated_function(*args, **kwargs):
if mongo.Books.find_one() is None:
return redirect(url_for('upload'))
return f(*args, **kwarg... | from functools import wraps
from flask import session, redirect, url_for, request, abort
from alexandria import mongo
def not_even_one(f):
@wraps(f)
def decorated_function(*args, **kwargs):
if mongo.Books.find_one() is None:
return redirect(url_for('upload'))
return f(*args, **kwarg... | <commit_before>from functools import wraps
from flask import session, redirect, url_for, request, abort
from alexandria import mongo
def not_even_one(f):
@wraps(f)
def decorated_function(*args, **kwargs):
if mongo.Books.find_one() is None:
return redirect(url_for('upload'))
return f... | from functools import wraps
from flask import session, redirect, url_for, request, abort
from alexandria import mongo
def not_even_one(f):
@wraps(f)
def decorated_function(*args, **kwargs):
if mongo.Books.find_one() is None:
return redirect(url_for('upload'))
return f(*args, **kwarg... | from functools import wraps
from flask import session, redirect, url_for, request, abort
from alexandria import mongo
def not_even_one(f):
@wraps(f)
def decorated_function(*args, **kwargs):
if mongo.Books.find_one() is None:
return redirect(url_for('upload'))
return f(*args, **kwarg... | <commit_before>from functools import wraps
from flask import session, redirect, url_for, request, abort
from alexandria import mongo
def not_even_one(f):
@wraps(f)
def decorated_function(*args, **kwargs):
if mongo.Books.find_one() is None:
return redirect(url_for('upload'))
return f... |
5dd81b09db46927cb7710b21ab682a6c3ecc182e | esios/__init__.py | esios/__init__.py | try:
VERSION = __import__('pkg_resources') \
.get_distribution(__name__).version
except Exception as e:
VERSION = 'unknown'
from .service import Esios
| from __future__ import absolute_import
try:
VERSION = __import__('pkg_resources') \
.get_distribution(__name__).version
except Exception as e:
VERSION = 'unknown'
from .service import Esios
| Enforce absolute imports through __future__ | Enforce absolute imports through __future__ | Python | mit | gisce/esios | try:
VERSION = __import__('pkg_resources') \
.get_distribution(__name__).version
except Exception as e:
VERSION = 'unknown'
from .service import Esios
Enforce absolute imports through __future__ | from __future__ import absolute_import
try:
VERSION = __import__('pkg_resources') \
.get_distribution(__name__).version
except Exception as e:
VERSION = 'unknown'
from .service import Esios
| <commit_before>try:
VERSION = __import__('pkg_resources') \
.get_distribution(__name__).version
except Exception as e:
VERSION = 'unknown'
from .service import Esios
<commit_msg>Enforce absolute imports through __future__<commit_after> | from __future__ import absolute_import
try:
VERSION = __import__('pkg_resources') \
.get_distribution(__name__).version
except Exception as e:
VERSION = 'unknown'
from .service import Esios
| try:
VERSION = __import__('pkg_resources') \
.get_distribution(__name__).version
except Exception as e:
VERSION = 'unknown'
from .service import Esios
Enforce absolute imports through __future__from __future__ import absolute_import
try:
VERSION = __import__('pkg_resources') \
.get_dis... | <commit_before>try:
VERSION = __import__('pkg_resources') \
.get_distribution(__name__).version
except Exception as e:
VERSION = 'unknown'
from .service import Esios
<commit_msg>Enforce absolute imports through __future__<commit_after>from __future__ import absolute_import
try:
VERSION = __imp... |
d2764161f0f11b07a28d64517cd0315a90aa8856 | moref.py | moref.py | #!/bin/env python2
"""
moref: more for FASTA files
"""
import sys
import os
from Bio import SeqIO
def main():
"""moref main"""
# Check for input file
if len(sys.argv) < 2:
print("No input file specified")
sys.exit()
filepath = os.path.expanduser(sys.argv[1])
if not os.path.is... | #!/bin/env python
"""
moref: more for FASTA files
"""
import sys
import os
from Bio import SeqIO
def main():
"""moref main"""
# Check for input file
if len(sys.argv) < 2:
print("No input file specified")
sys.exit()
filepath = os.path.expanduser(sys.argv[1])
if not os.path.isf... | Remove explicit python2 call -- works with Python 3 | Remove explicit python2 call -- works with Python 3
| Python | bsd-2-clause | khughitt/cats | #!/bin/env python2
"""
moref: more for FASTA files
"""
import sys
import os
from Bio import SeqIO
def main():
"""moref main"""
# Check for input file
if len(sys.argv) < 2:
print("No input file specified")
sys.exit()
filepath = os.path.expanduser(sys.argv[1])
if not os.path.is... | #!/bin/env python
"""
moref: more for FASTA files
"""
import sys
import os
from Bio import SeqIO
def main():
"""moref main"""
# Check for input file
if len(sys.argv) < 2:
print("No input file specified")
sys.exit()
filepath = os.path.expanduser(sys.argv[1])
if not os.path.isf... | <commit_before>#!/bin/env python2
"""
moref: more for FASTA files
"""
import sys
import os
from Bio import SeqIO
def main():
"""moref main"""
# Check for input file
if len(sys.argv) < 2:
print("No input file specified")
sys.exit()
filepath = os.path.expanduser(sys.argv[1])
if... | #!/bin/env python
"""
moref: more for FASTA files
"""
import sys
import os
from Bio import SeqIO
def main():
"""moref main"""
# Check for input file
if len(sys.argv) < 2:
print("No input file specified")
sys.exit()
filepath = os.path.expanduser(sys.argv[1])
if not os.path.isf... | #!/bin/env python2
"""
moref: more for FASTA files
"""
import sys
import os
from Bio import SeqIO
def main():
"""moref main"""
# Check for input file
if len(sys.argv) < 2:
print("No input file specified")
sys.exit()
filepath = os.path.expanduser(sys.argv[1])
if not os.path.is... | <commit_before>#!/bin/env python2
"""
moref: more for FASTA files
"""
import sys
import os
from Bio import SeqIO
def main():
"""moref main"""
# Check for input file
if len(sys.argv) < 2:
print("No input file specified")
sys.exit()
filepath = os.path.expanduser(sys.argv[1])
if... |
da67df77831223692176088373a99cb02fe948ab | examples/basic.py | examples/basic.py | # -*- coding: utf-8 -*-
"""
A basic example of how to use SPDY.
This example is currently incomplete, but should remain current to the state of
the library. This means that it enumerates the full state of everything
SPDYPy can do.
"""
import sys
sys.path.append('.')
import spdypy
conn = spdypy.SPDYConnection('www.goo... | # -*- coding: utf-8 -*-
"""
A basic example of how to use SPDY.
This example is currently incomplete, but should remain current to the state of
the library. This means that it enumerates the full state of everything
SPDYPy can do.
"""
import sys
sys.path.append('.')
import spdypy
conn = spdypy.SPDYConnection('www.goo... | Remove bytes from the example. | Remove bytes from the example.
| Python | mit | Lukasa/spdypy | # -*- coding: utf-8 -*-
"""
A basic example of how to use SPDY.
This example is currently incomplete, but should remain current to the state of
the library. This means that it enumerates the full state of everything
SPDYPy can do.
"""
import sys
sys.path.append('.')
import spdypy
conn = spdypy.SPDYConnection('www.goo... | # -*- coding: utf-8 -*-
"""
A basic example of how to use SPDY.
This example is currently incomplete, but should remain current to the state of
the library. This means that it enumerates the full state of everything
SPDYPy can do.
"""
import sys
sys.path.append('.')
import spdypy
conn = spdypy.SPDYConnection('www.goo... | <commit_before># -*- coding: utf-8 -*-
"""
A basic example of how to use SPDY.
This example is currently incomplete, but should remain current to the state of
the library. This means that it enumerates the full state of everything
SPDYPy can do.
"""
import sys
sys.path.append('.')
import spdypy
conn = spdypy.SPDYConn... | # -*- coding: utf-8 -*-
"""
A basic example of how to use SPDY.
This example is currently incomplete, but should remain current to the state of
the library. This means that it enumerates the full state of everything
SPDYPy can do.
"""
import sys
sys.path.append('.')
import spdypy
conn = spdypy.SPDYConnection('www.goo... | # -*- coding: utf-8 -*-
"""
A basic example of how to use SPDY.
This example is currently incomplete, but should remain current to the state of
the library. This means that it enumerates the full state of everything
SPDYPy can do.
"""
import sys
sys.path.append('.')
import spdypy
conn = spdypy.SPDYConnection('www.goo... | <commit_before># -*- coding: utf-8 -*-
"""
A basic example of how to use SPDY.
This example is currently incomplete, but should remain current to the state of
the library. This means that it enumerates the full state of everything
SPDYPy can do.
"""
import sys
sys.path.append('.')
import spdypy
conn = spdypy.SPDYConn... |
5fbcce3feffb63dbd50623f8d6cb0e354bce7add | fedora/release.py | fedora/release.py | '''
Information about this python-fedora release
'''
NAME = 'python-fedora'
VERSION = '0.10.0'
DESCRIPTION = 'Python modules for interacting with Fedora Services'
LONG_DESCRIPTION = '''
The Fedora Project runs many different services. These services help us to
package software, develop new programs, and generally pu... | '''
Information about this python-fedora release
'''
NAME = 'python-fedora'
VERSION = '0.10.0'
DESCRIPTION = 'Python modules for interacting with Fedora Services'
LONG_DESCRIPTION = '''
The Fedora Project runs many different services. These services help us to
package software, develop new programs, and generally pu... | Fix the URL in the metadata of the package | Fix the URL in the metadata of the package
Signed-off-by: Pierre-Yves Chibon <0e23e1aa25183634677db757f9f5e912e5bb8b8c@pingoured.fr>
| Python | lgpl-2.1 | fedora-infra/python-fedora | '''
Information about this python-fedora release
'''
NAME = 'python-fedora'
VERSION = '0.10.0'
DESCRIPTION = 'Python modules for interacting with Fedora Services'
LONG_DESCRIPTION = '''
The Fedora Project runs many different services. These services help us to
package software, develop new programs, and generally pu... | '''
Information about this python-fedora release
'''
NAME = 'python-fedora'
VERSION = '0.10.0'
DESCRIPTION = 'Python modules for interacting with Fedora Services'
LONG_DESCRIPTION = '''
The Fedora Project runs many different services. These services help us to
package software, develop new programs, and generally pu... | <commit_before>'''
Information about this python-fedora release
'''
NAME = 'python-fedora'
VERSION = '0.10.0'
DESCRIPTION = 'Python modules for interacting with Fedora Services'
LONG_DESCRIPTION = '''
The Fedora Project runs many different services. These services help us to
package software, develop new programs, a... | '''
Information about this python-fedora release
'''
NAME = 'python-fedora'
VERSION = '0.10.0'
DESCRIPTION = 'Python modules for interacting with Fedora Services'
LONG_DESCRIPTION = '''
The Fedora Project runs many different services. These services help us to
package software, develop new programs, and generally pu... | '''
Information about this python-fedora release
'''
NAME = 'python-fedora'
VERSION = '0.10.0'
DESCRIPTION = 'Python modules for interacting with Fedora Services'
LONG_DESCRIPTION = '''
The Fedora Project runs many different services. These services help us to
package software, develop new programs, and generally pu... | <commit_before>'''
Information about this python-fedora release
'''
NAME = 'python-fedora'
VERSION = '0.10.0'
DESCRIPTION = 'Python modules for interacting with Fedora Services'
LONG_DESCRIPTION = '''
The Fedora Project runs many different services. These services help us to
package software, develop new programs, a... |
ddc184cdced8c393822ce4ec14900db7fe16a492 | pucas/management/commands/createcasuser.py | pucas/management/commands/createcasuser.py | from django.contrib.auth import get_user_model
from django.core.management.base import BaseCommand
from pucas.ldap import LDAPSearch, LDAPSearchException, \
user_info_from_ldap
class Command(BaseCommand):
help = 'Initialize a new CAS user account'
def add_arguments(self, parser):
parser.add_argu... | from django.contrib.auth import get_user_model
from django.core.management.base import BaseCommand
from pucas.ldap import LDAPSearch, LDAPSearchException, \
user_info_from_ldap
class Command(BaseCommand):
help = 'Initialize a new CAS user account'
def add_arguments(self, parser):
parser.add_argu... | Add --admin flag to create superusers from cas | Add --admin flag to create superusers from cas
| Python | apache-2.0 | Princeton-CDH/django-pucas,Princeton-CDH/django-pucas | from django.contrib.auth import get_user_model
from django.core.management.base import BaseCommand
from pucas.ldap import LDAPSearch, LDAPSearchException, \
user_info_from_ldap
class Command(BaseCommand):
help = 'Initialize a new CAS user account'
def add_arguments(self, parser):
parser.add_argu... | from django.contrib.auth import get_user_model
from django.core.management.base import BaseCommand
from pucas.ldap import LDAPSearch, LDAPSearchException, \
user_info_from_ldap
class Command(BaseCommand):
help = 'Initialize a new CAS user account'
def add_arguments(self, parser):
parser.add_argu... | <commit_before>from django.contrib.auth import get_user_model
from django.core.management.base import BaseCommand
from pucas.ldap import LDAPSearch, LDAPSearchException, \
user_info_from_ldap
class Command(BaseCommand):
help = 'Initialize a new CAS user account'
def add_arguments(self, parser):
... | from django.contrib.auth import get_user_model
from django.core.management.base import BaseCommand
from pucas.ldap import LDAPSearch, LDAPSearchException, \
user_info_from_ldap
class Command(BaseCommand):
help = 'Initialize a new CAS user account'
def add_arguments(self, parser):
parser.add_argu... | from django.contrib.auth import get_user_model
from django.core.management.base import BaseCommand
from pucas.ldap import LDAPSearch, LDAPSearchException, \
user_info_from_ldap
class Command(BaseCommand):
help = 'Initialize a new CAS user account'
def add_arguments(self, parser):
parser.add_argu... | <commit_before>from django.contrib.auth import get_user_model
from django.core.management.base import BaseCommand
from pucas.ldap import LDAPSearch, LDAPSearchException, \
user_info_from_ldap
class Command(BaseCommand):
help = 'Initialize a new CAS user account'
def add_arguments(self, parser):
... |
36a7588db397954f89032e90e7568605db27d055 | setup.py | setup.py | #!/usr/bin/python3
"""Setup.py for dirbrowser."""
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the relevant file
with open(path.join(here, 'README.rst'), encoding='u... | #!/usr/bin/env python3
"""Setup.py for dirbrowser."""
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the relevant file
with open(path.join(here, 'README.rst'), encodin... | Change shebang to /usr/bin/env for better venv support | Change shebang to /usr/bin/env for better venv support
| Python | bsd-3-clause | campenr/dirbrowser | #!/usr/bin/python3
"""Setup.py for dirbrowser."""
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the relevant file
with open(path.join(here, 'README.rst'), encoding='u... | #!/usr/bin/env python3
"""Setup.py for dirbrowser."""
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the relevant file
with open(path.join(here, 'README.rst'), encodin... | <commit_before>#!/usr/bin/python3
"""Setup.py for dirbrowser."""
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the relevant file
with open(path.join(here, 'README.rst... | #!/usr/bin/env python3
"""Setup.py for dirbrowser."""
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the relevant file
with open(path.join(here, 'README.rst'), encodin... | #!/usr/bin/python3
"""Setup.py for dirbrowser."""
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the relevant file
with open(path.join(here, 'README.rst'), encoding='u... | <commit_before>#!/usr/bin/python3
"""Setup.py for dirbrowser."""
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the relevant file
with open(path.join(here, 'README.rst... |
79254ad18a68dc85c84f65a7382e58357833046e | setup.py | setup.py | import sys
from setuptools import find_packages, setup
VERSION = '2.0.dev0'
install_requires = [
'django-local-settings>=1.0a13',
'stashward',
]
if sys.version_info[:2] < (3, 4):
install_requires.append('enum34')
setup(
name='django-arcutils',
version=VERSION,
url='https://github.com/PSU... | import sys
from setuptools import find_packages, setup
VERSION = '2.0a1'
install_requires = [
'django-local-settings>=1.0a13',
'stashward',
]
if sys.version_info[:2] < (3, 4):
install_requires.append('enum34')
setup(
name='django-arcutils',
version=VERSION,
url='https://github.com/PSU-OI... | Prepare first 2.0 alpha release | Prepare first 2.0 alpha release
| Python | mit | wylee/django-arcutils,PSU-OIT-ARC/django-arcutils,wylee/django-arcutils,PSU-OIT-ARC/django-arcutils | import sys
from setuptools import find_packages, setup
VERSION = '2.0.dev0'
install_requires = [
'django-local-settings>=1.0a13',
'stashward',
]
if sys.version_info[:2] < (3, 4):
install_requires.append('enum34')
setup(
name='django-arcutils',
version=VERSION,
url='https://github.com/PSU... | import sys
from setuptools import find_packages, setup
VERSION = '2.0a1'
install_requires = [
'django-local-settings>=1.0a13',
'stashward',
]
if sys.version_info[:2] < (3, 4):
install_requires.append('enum34')
setup(
name='django-arcutils',
version=VERSION,
url='https://github.com/PSU-OI... | <commit_before>import sys
from setuptools import find_packages, setup
VERSION = '2.0.dev0'
install_requires = [
'django-local-settings>=1.0a13',
'stashward',
]
if sys.version_info[:2] < (3, 4):
install_requires.append('enum34')
setup(
name='django-arcutils',
version=VERSION,
url='https:/... | import sys
from setuptools import find_packages, setup
VERSION = '2.0a1'
install_requires = [
'django-local-settings>=1.0a13',
'stashward',
]
if sys.version_info[:2] < (3, 4):
install_requires.append('enum34')
setup(
name='django-arcutils',
version=VERSION,
url='https://github.com/PSU-OI... | import sys
from setuptools import find_packages, setup
VERSION = '2.0.dev0'
install_requires = [
'django-local-settings>=1.0a13',
'stashward',
]
if sys.version_info[:2] < (3, 4):
install_requires.append('enum34')
setup(
name='django-arcutils',
version=VERSION,
url='https://github.com/PSU... | <commit_before>import sys
from setuptools import find_packages, setup
VERSION = '2.0.dev0'
install_requires = [
'django-local-settings>=1.0a13',
'stashward',
]
if sys.version_info[:2] < (3, 4):
install_requires.append('enum34')
setup(
name='django-arcutils',
version=VERSION,
url='https:/... |
2c0cc47936204cdadf3f4dd5ce3b1535e2fb14b7 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
setup(
name='ghostly',
version='0.7.1',
description='Create simple browser tests',
author='Brenton Cleeland',
url='https://github.com/sesh/ghostly',
install_requires=['click', 'colorama', 'pillow', 'PyYAML', 'selenium'],
py_modules=['ghost... | #!/usr/bin/env python
from setuptools import setup
setup(
name='ghostly',
version='0.7.1',
description='Create simple browser tests',
author='Brenton Cleeland',
url='https://github.com/sesh/ghostly',
install_requires=['click', 'colorama', 'pillow', 'PyYAML', 'selenium'],
py_modules=['ghost... | Add fright script back in, just in case | Add fright script back in, just in case
| Python | isc | sesh/ghostly,sesh/ghostly | #!/usr/bin/env python
from setuptools import setup
setup(
name='ghostly',
version='0.7.1',
description='Create simple browser tests',
author='Brenton Cleeland',
url='https://github.com/sesh/ghostly',
install_requires=['click', 'colorama', 'pillow', 'PyYAML', 'selenium'],
py_modules=['ghost... | #!/usr/bin/env python
from setuptools import setup
setup(
name='ghostly',
version='0.7.1',
description='Create simple browser tests',
author='Brenton Cleeland',
url='https://github.com/sesh/ghostly',
install_requires=['click', 'colorama', 'pillow', 'PyYAML', 'selenium'],
py_modules=['ghost... | <commit_before>#!/usr/bin/env python
from setuptools import setup
setup(
name='ghostly',
version='0.7.1',
description='Create simple browser tests',
author='Brenton Cleeland',
url='https://github.com/sesh/ghostly',
install_requires=['click', 'colorama', 'pillow', 'PyYAML', 'selenium'],
py_... | #!/usr/bin/env python
from setuptools import setup
setup(
name='ghostly',
version='0.7.1',
description='Create simple browser tests',
author='Brenton Cleeland',
url='https://github.com/sesh/ghostly',
install_requires=['click', 'colorama', 'pillow', 'PyYAML', 'selenium'],
py_modules=['ghost... | #!/usr/bin/env python
from setuptools import setup
setup(
name='ghostly',
version='0.7.1',
description='Create simple browser tests',
author='Brenton Cleeland',
url='https://github.com/sesh/ghostly',
install_requires=['click', 'colorama', 'pillow', 'PyYAML', 'selenium'],
py_modules=['ghost... | <commit_before>#!/usr/bin/env python
from setuptools import setup
setup(
name='ghostly',
version='0.7.1',
description='Create simple browser tests',
author='Brenton Cleeland',
url='https://github.com/sesh/ghostly',
install_requires=['click', 'colorama', 'pillow', 'PyYAML', 'selenium'],
py_... |
d6f4afa82118d8c1ced7ddc8152f7b31b4cb898a | setup.py | setup.py | # coding: utf-8
from distutils.core import setup
# python setup.py sdist --formats=bztar
# python setup.py sdist --formats=bztar upload
description = 'National characters transcription module.'
import trans
long_description = open('documentation.rst', 'rb').read()
version = trans.__version__
setup(
name =... | # coding: utf-8
from distutils.core import setup
# python setup.py sdist --formats=bztar
# python setup.py sdist --formats=bztar upload
description = 'National characters transcription module.'
import trans
long_description = open('documentation.rst', 'rb').read()
version = trans.__version__
setup(
name =... | Change license to BSD. 1.4 | Change license to BSD. 1.4
| Python | bsd-2-clause | zzzsochi/trans | # coding: utf-8
from distutils.core import setup
# python setup.py sdist --formats=bztar
# python setup.py sdist --formats=bztar upload
description = 'National characters transcription module.'
import trans
long_description = open('documentation.rst', 'rb').read()
version = trans.__version__
setup(
name =... | # coding: utf-8
from distutils.core import setup
# python setup.py sdist --formats=bztar
# python setup.py sdist --formats=bztar upload
description = 'National characters transcription module.'
import trans
long_description = open('documentation.rst', 'rb').read()
version = trans.__version__
setup(
name =... | <commit_before># coding: utf-8
from distutils.core import setup
# python setup.py sdist --formats=bztar
# python setup.py sdist --formats=bztar upload
description = 'National characters transcription module.'
import trans
long_description = open('documentation.rst', 'rb').read()
version = trans.__version__
setup(... | # coding: utf-8
from distutils.core import setup
# python setup.py sdist --formats=bztar
# python setup.py sdist --formats=bztar upload
description = 'National characters transcription module.'
import trans
long_description = open('documentation.rst', 'rb').read()
version = trans.__version__
setup(
name =... | # coding: utf-8
from distutils.core import setup
# python setup.py sdist --formats=bztar
# python setup.py sdist --formats=bztar upload
description = 'National characters transcription module.'
import trans
long_description = open('documentation.rst', 'rb').read()
version = trans.__version__
setup(
name =... | <commit_before># coding: utf-8
from distutils.core import setup
# python setup.py sdist --formats=bztar
# python setup.py sdist --formats=bztar upload
description = 'National characters transcription module.'
import trans
long_description = open('documentation.rst', 'rb').read()
version = trans.__version__
setup(... |
827daa59517fcc3712c079c29a4ef6342412668d | setup.py | setup.py | import sys
from setuptools import setup, find_packages
import populous
requirements = [
"click",
"cached-property",
"fake-factory",
"dateutils"
]
if sys.version_info < (3, 2):
requirements.append('functools32')
setup(
name="populous",
version=populous.__version__,
url=populous.__url... | import sys
from setuptools import setup, find_packages
import populous
requirements = [
"click",
"cached-property",
"fake-factory",
"dateutils"
]
if sys.version_info < (3, 2):
requirements.append('functools32')
setup(
name="populous",
version=populous.__version__,
url=populous.__url... | Add py.test to the tests requirements | Add py.test to the tests requirements
| Python | mit | novafloss/populous | import sys
from setuptools import setup, find_packages
import populous
requirements = [
"click",
"cached-property",
"fake-factory",
"dateutils"
]
if sys.version_info < (3, 2):
requirements.append('functools32')
setup(
name="populous",
version=populous.__version__,
url=populous.__url... | import sys
from setuptools import setup, find_packages
import populous
requirements = [
"click",
"cached-property",
"fake-factory",
"dateutils"
]
if sys.version_info < (3, 2):
requirements.append('functools32')
setup(
name="populous",
version=populous.__version__,
url=populous.__url... | <commit_before>import sys
from setuptools import setup, find_packages
import populous
requirements = [
"click",
"cached-property",
"fake-factory",
"dateutils"
]
if sys.version_info < (3, 2):
requirements.append('functools32')
setup(
name="populous",
version=populous.__version__,
url... | import sys
from setuptools import setup, find_packages
import populous
requirements = [
"click",
"cached-property",
"fake-factory",
"dateutils"
]
if sys.version_info < (3, 2):
requirements.append('functools32')
setup(
name="populous",
version=populous.__version__,
url=populous.__url... | import sys
from setuptools import setup, find_packages
import populous
requirements = [
"click",
"cached-property",
"fake-factory",
"dateutils"
]
if sys.version_info < (3, 2):
requirements.append('functools32')
setup(
name="populous",
version=populous.__version__,
url=populous.__url... | <commit_before>import sys
from setuptools import setup, find_packages
import populous
requirements = [
"click",
"cached-property",
"fake-factory",
"dateutils"
]
if sys.version_info < (3, 2):
requirements.append('functools32')
setup(
name="populous",
version=populous.__version__,
url... |
c0169c5073e4a83120f4d6860258c3085b4c1cf5 | setup.py | setup.py | import subprocess as sp
print('Warning: this setup.py uses flit, not setuptools.')
print('Behavior may not be exactly what you expect. Use at your own risk!')
sp.check_call(['flit', 'install', '--deps', 'production'])
| import subprocess as sp
import sys
import os
print('Warning: this setup.py uses flit, not setuptools.')
print('Behavior may not be exactly what you expect. Use at your own risk!')
flit = os.path.join(os.path.dirname(sys.executable), 'flit')
cmd = [flit, 'install', '--deps', 'production']
print(" ".join(cmd))
sp.check... | Use flit that's been installed in the virtualenv | Use flit that's been installed in the virtualenv
| Python | bsd-3-clause | jupyter/nbgrader,jupyter/nbgrader,ellisonbg/nbgrader,jhamrick/nbgrader,EdwardJKim/nbgrader,EdwardJKim/nbgrader,dementrock/nbgrader,jupyter/nbgrader,MatKallada/nbgrader,MatKallada/nbgrader,jupyter/nbgrader,ellisonbg/nbgrader,jhamrick/nbgrader,jhamrick/nbgrader,EdwardJKim/nbgrader,jhamrick/nbgrader,ellisonbg/nbgrader,jup... | import subprocess as sp
print('Warning: this setup.py uses flit, not setuptools.')
print('Behavior may not be exactly what you expect. Use at your own risk!')
sp.check_call(['flit', 'install', '--deps', 'production'])
Use flit that's been installed in the virtualenv | import subprocess as sp
import sys
import os
print('Warning: this setup.py uses flit, not setuptools.')
print('Behavior may not be exactly what you expect. Use at your own risk!')
flit = os.path.join(os.path.dirname(sys.executable), 'flit')
cmd = [flit, 'install', '--deps', 'production']
print(" ".join(cmd))
sp.check... | <commit_before>import subprocess as sp
print('Warning: this setup.py uses flit, not setuptools.')
print('Behavior may not be exactly what you expect. Use at your own risk!')
sp.check_call(['flit', 'install', '--deps', 'production'])
<commit_msg>Use flit that's been installed in the virtualenv<commit_after> | import subprocess as sp
import sys
import os
print('Warning: this setup.py uses flit, not setuptools.')
print('Behavior may not be exactly what you expect. Use at your own risk!')
flit = os.path.join(os.path.dirname(sys.executable), 'flit')
cmd = [flit, 'install', '--deps', 'production']
print(" ".join(cmd))
sp.check... | import subprocess as sp
print('Warning: this setup.py uses flit, not setuptools.')
print('Behavior may not be exactly what you expect. Use at your own risk!')
sp.check_call(['flit', 'install', '--deps', 'production'])
Use flit that's been installed in the virtualenvimport subprocess as sp
import sys
import os
print(... | <commit_before>import subprocess as sp
print('Warning: this setup.py uses flit, not setuptools.')
print('Behavior may not be exactly what you expect. Use at your own risk!')
sp.check_call(['flit', 'install', '--deps', 'production'])
<commit_msg>Use flit that's been installed in the virtualenv<commit_after>import subp... |
f4d894222d596760a62f22d43379f93a827e9ef2 | setup.py | setup.py | try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(
name='porick',
version='0.1',
description='',
author='',
author_email='',
url='',
install_requires=[
... | try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(
name='porick',
version='0.1',
description='',
author='',
author_email='',
url='',
install_requires=[
... | Add dependency for python bcrypt | Add dependency for python bcrypt
| Python | apache-2.0 | kopf/porick,kopf/porick,kopf/porick | try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(
name='porick',
version='0.1',
description='',
author='',
author_email='',
url='',
install_requires=[
... | try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(
name='porick',
version='0.1',
description='',
author='',
author_email='',
url='',
install_requires=[
... | <commit_before>try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(
name='porick',
version='0.1',
description='',
author='',
author_email='',
url='',
insta... | try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(
name='porick',
version='0.1',
description='',
author='',
author_email='',
url='',
install_requires=[
... | try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(
name='porick',
version='0.1',
description='',
author='',
author_email='',
url='',
install_requires=[
... | <commit_before>try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(
name='porick',
version='0.1',
description='',
author='',
author_email='',
url='',
insta... |
d8ea2e73e3085541256288a4b65c8659918cdf33 | setup.py | setup.py | from setuptools import find_packages, setup
setup(
name='ActionCableZwei',
version='0.1.2',
license='MIT',
description='Action Cable Client for Python 3',
author='Tobias Feistmantl',
author_email='tobias@myhome-automations.com',
url='https://github.com/tobiasfeistmantl/python-actioncable-z... | from setuptools import find_packages, setup
setup(
name='ActionCableZwei',
version='0.1.3',
license='MIT',
description='Action Cable Client for Python 3',
author='Tobias Feistmantl',
author_email='tobias@myhome-automations.com',
url='https://github.com/tobiasfeistmantl/python-actioncable-z... | Update version number to 0.1.3 | Update version number to 0.1.3
| Python | mit | tobiasfeistmantl/python-actioncable-zwei | from setuptools import find_packages, setup
setup(
name='ActionCableZwei',
version='0.1.2',
license='MIT',
description='Action Cable Client for Python 3',
author='Tobias Feistmantl',
author_email='tobias@myhome-automations.com',
url='https://github.com/tobiasfeistmantl/python-actioncable-z... | from setuptools import find_packages, setup
setup(
name='ActionCableZwei',
version='0.1.3',
license='MIT',
description='Action Cable Client for Python 3',
author='Tobias Feistmantl',
author_email='tobias@myhome-automations.com',
url='https://github.com/tobiasfeistmantl/python-actioncable-z... | <commit_before>from setuptools import find_packages, setup
setup(
name='ActionCableZwei',
version='0.1.2',
license='MIT',
description='Action Cable Client for Python 3',
author='Tobias Feistmantl',
author_email='tobias@myhome-automations.com',
url='https://github.com/tobiasfeistmantl/pytho... | from setuptools import find_packages, setup
setup(
name='ActionCableZwei',
version='0.1.3',
license='MIT',
description='Action Cable Client for Python 3',
author='Tobias Feistmantl',
author_email='tobias@myhome-automations.com',
url='https://github.com/tobiasfeistmantl/python-actioncable-z... | from setuptools import find_packages, setup
setup(
name='ActionCableZwei',
version='0.1.2',
license='MIT',
description='Action Cable Client for Python 3',
author='Tobias Feistmantl',
author_email='tobias@myhome-automations.com',
url='https://github.com/tobiasfeistmantl/python-actioncable-z... | <commit_before>from setuptools import find_packages, setup
setup(
name='ActionCableZwei',
version='0.1.2',
license='MIT',
description='Action Cable Client for Python 3',
author='Tobias Feistmantl',
author_email='tobias@myhome-automations.com',
url='https://github.com/tobiasfeistmantl/pytho... |
f15ff23d706b035e045fd8fc653ca9996565526b | setup.py | setup.py | #!/usr/bin/env python
from distribute_setup import use_setuptools
use_setuptools()
from setuptools import setup
from pudb import VERSION
try:
readme = open("README.rst")
long_description = str(readme.read())
finally:
readme.close()
setup(name='pudb',
version=VERSION,
description='A full-scr... | #!/usr/bin/env python
from distribute_setup import use_setuptools
use_setuptools()
from setuptools import setup
from pudb import VERSION
try:
readme = open("README.rst")
long_description = str(readme.read())
finally:
readme.close()
setup(name='pudb',
version=VERSION,
description='A full-scr... | Tag for Python 3 support. | Tag for Python 3 support.
| Python | mit | albfan/pudb,albfan/pudb,amigrave/pudb,amigrave/pudb | #!/usr/bin/env python
from distribute_setup import use_setuptools
use_setuptools()
from setuptools import setup
from pudb import VERSION
try:
readme = open("README.rst")
long_description = str(readme.read())
finally:
readme.close()
setup(name='pudb',
version=VERSION,
description='A full-scr... | #!/usr/bin/env python
from distribute_setup import use_setuptools
use_setuptools()
from setuptools import setup
from pudb import VERSION
try:
readme = open("README.rst")
long_description = str(readme.read())
finally:
readme.close()
setup(name='pudb',
version=VERSION,
description='A full-scr... | <commit_before>#!/usr/bin/env python
from distribute_setup import use_setuptools
use_setuptools()
from setuptools import setup
from pudb import VERSION
try:
readme = open("README.rst")
long_description = str(readme.read())
finally:
readme.close()
setup(name='pudb',
version=VERSION,
descript... | #!/usr/bin/env python
from distribute_setup import use_setuptools
use_setuptools()
from setuptools import setup
from pudb import VERSION
try:
readme = open("README.rst")
long_description = str(readme.read())
finally:
readme.close()
setup(name='pudb',
version=VERSION,
description='A full-scr... | #!/usr/bin/env python
from distribute_setup import use_setuptools
use_setuptools()
from setuptools import setup
from pudb import VERSION
try:
readme = open("README.rst")
long_description = str(readme.read())
finally:
readme.close()
setup(name='pudb',
version=VERSION,
description='A full-scr... | <commit_before>#!/usr/bin/env python
from distribute_setup import use_setuptools
use_setuptools()
from setuptools import setup
from pudb import VERSION
try:
readme = open("README.rst")
long_description = str(readme.read())
finally:
readme.close()
setup(name='pudb',
version=VERSION,
descript... |
d27d90b71378eaac1f9be6bdf683ddb7a800759d | setup.py | setup.py | import sys
from setuptools import setup, find_packages
setup(
name = "python-dispatch",
version = "v0.1.31",
author = "Matthew Reid",
author_email = "matt@nomadic-recording.com",
description = "Lightweight Event Handling",
url='https://github.com/nocarryr/python-dispatch',
license='MIT',
... | import sys
from setuptools import setup, find_packages
setup(
name = "python-dispatch",
version = "v0.1.31",
author = "Matthew Reid",
author_email = "matt@nomadic-recording.com",
description = "Lightweight Event Handling",
url='https://github.com/nocarryr/python-dispatch',
license='MIT',
... | Update project metadata with supported Python versions | Update project metadata with supported Python versions
| Python | mit | nocarryr/python-dispatch | import sys
from setuptools import setup, find_packages
setup(
name = "python-dispatch",
version = "v0.1.31",
author = "Matthew Reid",
author_email = "matt@nomadic-recording.com",
description = "Lightweight Event Handling",
url='https://github.com/nocarryr/python-dispatch',
license='MIT',
... | import sys
from setuptools import setup, find_packages
setup(
name = "python-dispatch",
version = "v0.1.31",
author = "Matthew Reid",
author_email = "matt@nomadic-recording.com",
description = "Lightweight Event Handling",
url='https://github.com/nocarryr/python-dispatch',
license='MIT',
... | <commit_before>import sys
from setuptools import setup, find_packages
setup(
name = "python-dispatch",
version = "v0.1.31",
author = "Matthew Reid",
author_email = "matt@nomadic-recording.com",
description = "Lightweight Event Handling",
url='https://github.com/nocarryr/python-dispatch',
li... | import sys
from setuptools import setup, find_packages
setup(
name = "python-dispatch",
version = "v0.1.31",
author = "Matthew Reid",
author_email = "matt@nomadic-recording.com",
description = "Lightweight Event Handling",
url='https://github.com/nocarryr/python-dispatch',
license='MIT',
... | import sys
from setuptools import setup, find_packages
setup(
name = "python-dispatch",
version = "v0.1.31",
author = "Matthew Reid",
author_email = "matt@nomadic-recording.com",
description = "Lightweight Event Handling",
url='https://github.com/nocarryr/python-dispatch',
license='MIT',
... | <commit_before>import sys
from setuptools import setup, find_packages
setup(
name = "python-dispatch",
version = "v0.1.31",
author = "Matthew Reid",
author_email = "matt@nomadic-recording.com",
description = "Lightweight Event Handling",
url='https://github.com/nocarryr/python-dispatch',
li... |
bda09e9dbf00dc164cb1d6b108da3d5982ad668a | setup.py | setup.py | #!/usr/bin/env python
"""
properties: Fancy properties for Python.
"""
from distutils.core import setup
from setuptools import find_packages
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Ma... | #!/usr/bin/env python
"""
properties: Fancy properties for Python.
"""
from distutils.core import setup
from setuptools import find_packages
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Ma... | Remove future, bump vectormath dependencies | Remove future, bump vectormath dependencies
| Python | mit | 3ptscience/properties,aranzgeo/properties | #!/usr/bin/env python
"""
properties: Fancy properties for Python.
"""
from distutils.core import setup
from setuptools import find_packages
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Ma... | #!/usr/bin/env python
"""
properties: Fancy properties for Python.
"""
from distutils.core import setup
from setuptools import find_packages
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Ma... | <commit_before>#!/usr/bin/env python
"""
properties: Fancy properties for Python.
"""
from distutils.core import setup
from setuptools import find_packages
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/En... | #!/usr/bin/env python
"""
properties: Fancy properties for Python.
"""
from distutils.core import setup
from setuptools import find_packages
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Ma... | #!/usr/bin/env python
"""
properties: Fancy properties for Python.
"""
from distutils.core import setup
from setuptools import find_packages
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Ma... | <commit_before>#!/usr/bin/env python
"""
properties: Fancy properties for Python.
"""
from distutils.core import setup
from setuptools import find_packages
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/En... |
1fc8690d0d8929f9ede38aca01ad928ce64589cb | setup.py | setup.py | from setuptools import setup
setup(name='eventum',
version='0.2.6',
description='A content management system for event-driven Flask apps',
url='http://github.com/danrschlosser/eventum',
author='Dan Schlosser',
author_email='dan@schlosser.io',
license='MIT',
packages=['eventum'... | from setuptools import setup
setup(name='eventum',
version='0.2.6',
description='A content management system for event-driven Flask apps',
url='http://github.com/danrschlosser/eventum',
author='Dan Schlosser',
author_email='dan@schlosser.io',
license='MIT',
packages=['eventum'... | Update requirements to things that work | Update requirements to things that work
| Python | mit | danrschlosser/eventum,danrschlosser/eventum,danrschlosser/eventum,danrschlosser/eventum | from setuptools import setup
setup(name='eventum',
version='0.2.6',
description='A content management system for event-driven Flask apps',
url='http://github.com/danrschlosser/eventum',
author='Dan Schlosser',
author_email='dan@schlosser.io',
license='MIT',
packages=['eventum'... | from setuptools import setup
setup(name='eventum',
version='0.2.6',
description='A content management system for event-driven Flask apps',
url='http://github.com/danrschlosser/eventum',
author='Dan Schlosser',
author_email='dan@schlosser.io',
license='MIT',
packages=['eventum'... | <commit_before>from setuptools import setup
setup(name='eventum',
version='0.2.6',
description='A content management system for event-driven Flask apps',
url='http://github.com/danrschlosser/eventum',
author='Dan Schlosser',
author_email='dan@schlosser.io',
license='MIT',
pack... | from setuptools import setup
setup(name='eventum',
version='0.2.6',
description='A content management system for event-driven Flask apps',
url='http://github.com/danrschlosser/eventum',
author='Dan Schlosser',
author_email='dan@schlosser.io',
license='MIT',
packages=['eventum'... | from setuptools import setup
setup(name='eventum',
version='0.2.6',
description='A content management system for event-driven Flask apps',
url='http://github.com/danrschlosser/eventum',
author='Dan Schlosser',
author_email='dan@schlosser.io',
license='MIT',
packages=['eventum'... | <commit_before>from setuptools import setup
setup(name='eventum',
version='0.2.6',
description='A content management system for event-driven Flask apps',
url='http://github.com/danrschlosser/eventum',
author='Dan Schlosser',
author_email='dan@schlosser.io',
license='MIT',
pack... |
7f41bffe2f1d838331c3d4340f4b46e816e779b7 | setup.py | setup.py | from distutils.core import setup
setup(
name='shampoo',
packages=['shampoo'],
package_data={'shampoo': ['schemas/*.json']},
version='0.1.0b7',
description='Shampoo is a asyncio websocket protocol implementation for Autobahn',
author='Daan Porru (Wend)',
author_email='daan@wend.nl',
lic... | from distutils.core import setup
setup(
name='shampoo',
packages=['shampoo'],
package_data={'shampoo': ['schemas/*.json']},
version='0.1.0b7',
description='Shampoo is a asyncio websocket protocol implementation for Autobahn',
author='Daan Porru (Wend)',
author_email='daan@wend.nl',
lic... | Update schemavalidator version to 0.1.0b5 | Update schemavalidator version to 0.1.0b5
| Python | mit | wendbv/shampoo,wendbv/shampoo | from distutils.core import setup
setup(
name='shampoo',
packages=['shampoo'],
package_data={'shampoo': ['schemas/*.json']},
version='0.1.0b7',
description='Shampoo is a asyncio websocket protocol implementation for Autobahn',
author='Daan Porru (Wend)',
author_email='daan@wend.nl',
lic... | from distutils.core import setup
setup(
name='shampoo',
packages=['shampoo'],
package_data={'shampoo': ['schemas/*.json']},
version='0.1.0b7',
description='Shampoo is a asyncio websocket protocol implementation for Autobahn',
author='Daan Porru (Wend)',
author_email='daan@wend.nl',
lic... | <commit_before>from distutils.core import setup
setup(
name='shampoo',
packages=['shampoo'],
package_data={'shampoo': ['schemas/*.json']},
version='0.1.0b7',
description='Shampoo is a asyncio websocket protocol implementation for Autobahn',
author='Daan Porru (Wend)',
author_email='daan@we... | from distutils.core import setup
setup(
name='shampoo',
packages=['shampoo'],
package_data={'shampoo': ['schemas/*.json']},
version='0.1.0b7',
description='Shampoo is a asyncio websocket protocol implementation for Autobahn',
author='Daan Porru (Wend)',
author_email='daan@wend.nl',
lic... | from distutils.core import setup
setup(
name='shampoo',
packages=['shampoo'],
package_data={'shampoo': ['schemas/*.json']},
version='0.1.0b7',
description='Shampoo is a asyncio websocket protocol implementation for Autobahn',
author='Daan Porru (Wend)',
author_email='daan@wend.nl',
lic... | <commit_before>from distutils.core import setup
setup(
name='shampoo',
packages=['shampoo'],
package_data={'shampoo': ['schemas/*.json']},
version='0.1.0b7',
description='Shampoo is a asyncio websocket protocol implementation for Autobahn',
author='Daan Porru (Wend)',
author_email='daan@we... |
ae3fd153350c9ef8faef73d257fffee4d3abdf0f | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
requirements = [
'sanic',
'aiohttp'
]
test_requirements = [
# TODO: put package ... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
requirements = [
'sanic',
'aiohttp'
]
test_requirements = [
# TODO: put package ... | Add Python 3.6 tag to package | Add Python 3.6 tag to package
| Python | mit | kdelwat/boomerang | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
requirements = [
'sanic',
'aiohttp'
]
test_requirements = [
# TODO: put package ... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
requirements = [
'sanic',
'aiohttp'
]
test_requirements = [
# TODO: put package ... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
requirements = [
'sanic',
'aiohttp'
]
test_requirements = [
# TOD... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
requirements = [
'sanic',
'aiohttp'
]
test_requirements = [
# TODO: put package ... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
requirements = [
'sanic',
'aiohttp'
]
test_requirements = [
# TODO: put package ... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
requirements = [
'sanic',
'aiohttp'
]
test_requirements = [
# TOD... |
e3479ec893cf525642bdd94f0a6dd32d897465a4 | setup.py | setup.py | #! /usr/bin/env python3
from setuptools import setup
from hsluv import __version__
setup(
name='hsluv',
version=__version__,
description='Human-friendly HSL',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
license="MIT",
author_email="alexei@boron... | #! /usr/bin/env python3
from setuptools import setup
from hsluv import __version__
setup(
name='hsluv',
version=__version__,
description='Human-friendly HSL',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
license="MIT",
author_email="alexei@boron... | Drop support for end-of-life Python 3.6 | Drop support for end-of-life Python 3.6
| Python | mit | husl-colors/husl.py,hsluv/hsluv-python | #! /usr/bin/env python3
from setuptools import setup
from hsluv import __version__
setup(
name='hsluv',
version=__version__,
description='Human-friendly HSL',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
license="MIT",
author_email="alexei@boron... | #! /usr/bin/env python3
from setuptools import setup
from hsluv import __version__
setup(
name='hsluv',
version=__version__,
description='Human-friendly HSL',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
license="MIT",
author_email="alexei@boron... | <commit_before>#! /usr/bin/env python3
from setuptools import setup
from hsluv import __version__
setup(
name='hsluv',
version=__version__,
description='Human-friendly HSL',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
license="MIT",
author_emai... | #! /usr/bin/env python3
from setuptools import setup
from hsluv import __version__
setup(
name='hsluv',
version=__version__,
description='Human-friendly HSL',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
license="MIT",
author_email="alexei@boron... | #! /usr/bin/env python3
from setuptools import setup
from hsluv import __version__
setup(
name='hsluv',
version=__version__,
description='Human-friendly HSL',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
license="MIT",
author_email="alexei@boron... | <commit_before>#! /usr/bin/env python3
from setuptools import setup
from hsluv import __version__
setup(
name='hsluv',
version=__version__,
description='Human-friendly HSL',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
license="MIT",
author_emai... |
e6c4d40f0eaa6c93cac88582d862aa8393a3cc10 | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
setup(
name='screenplain',
version='0.7.0',
description='Convert text file to viewable screenplay.',
author='Martin Vilcans',
author_email='screenplain@librador.com',
url='http://www.screenplain.com/',
extras_require={
'PDF': '... | #!/usr/bin/env python
from distutils.core import setup
setup(
name='screenplain',
version='0.7.0',
description='Convert text file to viewable screenplay.',
author='Martin Vilcans',
author_email='screenplain@librador.com',
url='http://www.screenplain.com/',
install_requires=[
'six',... | Add install_requires six for universal Python support | Add install_requires six for universal Python support
| Python | mit | vilcans/screenplain,vilcans/screenplain,vilcans/screenplain | #!/usr/bin/env python
from distutils.core import setup
setup(
name='screenplain',
version='0.7.0',
description='Convert text file to viewable screenplay.',
author='Martin Vilcans',
author_email='screenplain@librador.com',
url='http://www.screenplain.com/',
extras_require={
'PDF': '... | #!/usr/bin/env python
from distutils.core import setup
setup(
name='screenplain',
version='0.7.0',
description='Convert text file to viewable screenplay.',
author='Martin Vilcans',
author_email='screenplain@librador.com',
url='http://www.screenplain.com/',
install_requires=[
'six',... | <commit_before>#!/usr/bin/env python
from distutils.core import setup
setup(
name='screenplain',
version='0.7.0',
description='Convert text file to viewable screenplay.',
author='Martin Vilcans',
author_email='screenplain@librador.com',
url='http://www.screenplain.com/',
extras_require={
... | #!/usr/bin/env python
from distutils.core import setup
setup(
name='screenplain',
version='0.7.0',
description='Convert text file to viewable screenplay.',
author='Martin Vilcans',
author_email='screenplain@librador.com',
url='http://www.screenplain.com/',
install_requires=[
'six',... | #!/usr/bin/env python
from distutils.core import setup
setup(
name='screenplain',
version='0.7.0',
description='Convert text file to viewable screenplay.',
author='Martin Vilcans',
author_email='screenplain@librador.com',
url='http://www.screenplain.com/',
extras_require={
'PDF': '... | <commit_before>#!/usr/bin/env python
from distutils.core import setup
setup(
name='screenplain',
version='0.7.0',
description='Convert text file to viewable screenplay.',
author='Martin Vilcans',
author_email='screenplain@librador.com',
url='http://www.screenplain.com/',
extras_require={
... |
56519d58cc98ddce4f9a887d1fc4646e7614b712 | setup.py | setup.py | import setuptools
setuptools.setup(
name='ChatExchange6',
version='0.0.1',
url='https://github.com/ByteCommander/ChatExchange6',
packages=[
'chatexchange6'
],
install_requires=[
'beautifulsoup4>=4.3.2',
'requests>=2.2.1',
'websocket-client>=0.13.0',
# onl... | import setuptools
setuptools.setup(
name='ChatExchange6',
version='0.0.1',
url='https://github.com/ByteCommander/ChatExchange6',
packages=[
'chatexchange6'
],
install_requires=[
'beautifulsoup4>=4.3.2',
'requests>=2.2.1',
'websocket-client>=0.13.0',
# onl... | Set up Travis tests with pytest for all versions | Set up Travis tests with pytest for all versions
| Python | apache-2.0 | ByteCommander/ChatExchange6,ByteCommander/ChatExchange6,Charcoal-SE/ChatExchange,Charcoal-SE/ChatExchange | import setuptools
setuptools.setup(
name='ChatExchange6',
version='0.0.1',
url='https://github.com/ByteCommander/ChatExchange6',
packages=[
'chatexchange6'
],
install_requires=[
'beautifulsoup4>=4.3.2',
'requests>=2.2.1',
'websocket-client>=0.13.0',
# onl... | import setuptools
setuptools.setup(
name='ChatExchange6',
version='0.0.1',
url='https://github.com/ByteCommander/ChatExchange6',
packages=[
'chatexchange6'
],
install_requires=[
'beautifulsoup4>=4.3.2',
'requests>=2.2.1',
'websocket-client>=0.13.0',
# onl... | <commit_before>import setuptools
setuptools.setup(
name='ChatExchange6',
version='0.0.1',
url='https://github.com/ByteCommander/ChatExchange6',
packages=[
'chatexchange6'
],
install_requires=[
'beautifulsoup4>=4.3.2',
'requests>=2.2.1',
'websocket-client>=0.13.0'... | import setuptools
setuptools.setup(
name='ChatExchange6',
version='0.0.1',
url='https://github.com/ByteCommander/ChatExchange6',
packages=[
'chatexchange6'
],
install_requires=[
'beautifulsoup4>=4.3.2',
'requests>=2.2.1',
'websocket-client>=0.13.0',
# onl... | import setuptools
setuptools.setup(
name='ChatExchange6',
version='0.0.1',
url='https://github.com/ByteCommander/ChatExchange6',
packages=[
'chatexchange6'
],
install_requires=[
'beautifulsoup4>=4.3.2',
'requests>=2.2.1',
'websocket-client>=0.13.0',
# onl... | <commit_before>import setuptools
setuptools.setup(
name='ChatExchange6',
version='0.0.1',
url='https://github.com/ByteCommander/ChatExchange6',
packages=[
'chatexchange6'
],
install_requires=[
'beautifulsoup4>=4.3.2',
'requests>=2.2.1',
'websocket-client>=0.13.0'... |
dc6ea10b3da3f84280d8f8b41cf665440d60b12e | setup.py | setup.py | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
console_scripts = [
'makiki = makiki.cli:main_parser',
]
requires = [
'blinker>=1.4',
'gevent==1.1.2',
'gunicorn>=19.0',
'Jinja2>=2.8.1',
'psycogreen>=1.0.0',
'psycopg2>=2.6.2',
'hug>=2.1.2',
]
setup(
name='makik... | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
console_scripts = [
'makiki = makiki.cli:main_parser',
]
requires = [
'blinker>=1.4',
'gevent>=1.2',
'gunicorn>=19.0',
'Jinja2>=2.8.1',
'psycogreen>=1.0.0',
'psycopg2>=2.6.2',
'hug>=2.1.2',
]
setup(
name='makiki'... | Upgrade gevent to 1.2 and bump version to 0.1.20 | Upgrade gevent to 1.2 and bump version to 0.1.20
| Python | mit | faith0811/makiki,faith0811/makiki | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
console_scripts = [
'makiki = makiki.cli:main_parser',
]
requires = [
'blinker>=1.4',
'gevent==1.1.2',
'gunicorn>=19.0',
'Jinja2>=2.8.1',
'psycogreen>=1.0.0',
'psycopg2>=2.6.2',
'hug>=2.1.2',
]
setup(
name='makik... | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
console_scripts = [
'makiki = makiki.cli:main_parser',
]
requires = [
'blinker>=1.4',
'gevent>=1.2',
'gunicorn>=19.0',
'Jinja2>=2.8.1',
'psycogreen>=1.0.0',
'psycopg2>=2.6.2',
'hug>=2.1.2',
]
setup(
name='makiki'... | <commit_before># -*- coding: utf-8 -*-
from setuptools import setup, find_packages
console_scripts = [
'makiki = makiki.cli:main_parser',
]
requires = [
'blinker>=1.4',
'gevent==1.1.2',
'gunicorn>=19.0',
'Jinja2>=2.8.1',
'psycogreen>=1.0.0',
'psycopg2>=2.6.2',
'hug>=2.1.2',
]
setup(
... | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
console_scripts = [
'makiki = makiki.cli:main_parser',
]
requires = [
'blinker>=1.4',
'gevent>=1.2',
'gunicorn>=19.0',
'Jinja2>=2.8.1',
'psycogreen>=1.0.0',
'psycopg2>=2.6.2',
'hug>=2.1.2',
]
setup(
name='makiki'... | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
console_scripts = [
'makiki = makiki.cli:main_parser',
]
requires = [
'blinker>=1.4',
'gevent==1.1.2',
'gunicorn>=19.0',
'Jinja2>=2.8.1',
'psycogreen>=1.0.0',
'psycopg2>=2.6.2',
'hug>=2.1.2',
]
setup(
name='makik... | <commit_before># -*- coding: utf-8 -*-
from setuptools import setup, find_packages
console_scripts = [
'makiki = makiki.cli:main_parser',
]
requires = [
'blinker>=1.4',
'gevent==1.1.2',
'gunicorn>=19.0',
'Jinja2>=2.8.1',
'psycogreen>=1.0.0',
'psycopg2>=2.6.2',
'hug>=2.1.2',
]
setup(
... |
b64d1a7948759eb22d6c5ddbfb2521ad07962c08 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
setup(name='igtdetect',
version='1.1.0',
description='Line-level classifier for IGT instances, part of RiPLEs pipeline.',
author='Ryan Georgi',
author_email='rgeorgi@uw.edu',
url='https://github.com/xigt/igtdetect',
scripts=['detect... | #!/usr/bin/env python
from setuptools import setup
setup(name='igtdetect',
version='1.1.1',
description='Line-level classifier for IGT instances, part of RiPLEs pipeline.',
author='Ryan Georgi',
author_email='rgeorgi@uw.edu',
url='https://github.com/xigt/igtdetect',
scripts=['detect... | Fix for dependencies using pip | Fix for dependencies using pip
| Python | mit | xigt/igtdetect | #!/usr/bin/env python
from setuptools import setup
setup(name='igtdetect',
version='1.1.0',
description='Line-level classifier for IGT instances, part of RiPLEs pipeline.',
author='Ryan Georgi',
author_email='rgeorgi@uw.edu',
url='https://github.com/xigt/igtdetect',
scripts=['detect... | #!/usr/bin/env python
from setuptools import setup
setup(name='igtdetect',
version='1.1.1',
description='Line-level classifier for IGT instances, part of RiPLEs pipeline.',
author='Ryan Georgi',
author_email='rgeorgi@uw.edu',
url='https://github.com/xigt/igtdetect',
scripts=['detect... | <commit_before>#!/usr/bin/env python
from setuptools import setup
setup(name='igtdetect',
version='1.1.0',
description='Line-level classifier for IGT instances, part of RiPLEs pipeline.',
author='Ryan Georgi',
author_email='rgeorgi@uw.edu',
url='https://github.com/xigt/igtdetect',
s... | #!/usr/bin/env python
from setuptools import setup
setup(name='igtdetect',
version='1.1.1',
description='Line-level classifier for IGT instances, part of RiPLEs pipeline.',
author='Ryan Georgi',
author_email='rgeorgi@uw.edu',
url='https://github.com/xigt/igtdetect',
scripts=['detect... | #!/usr/bin/env python
from setuptools import setup
setup(name='igtdetect',
version='1.1.0',
description='Line-level classifier for IGT instances, part of RiPLEs pipeline.',
author='Ryan Georgi',
author_email='rgeorgi@uw.edu',
url='https://github.com/xigt/igtdetect',
scripts=['detect... | <commit_before>#!/usr/bin/env python
from setuptools import setup
setup(name='igtdetect',
version='1.1.0',
description='Line-level classifier for IGT instances, part of RiPLEs pipeline.',
author='Ryan Georgi',
author_email='rgeorgi@uw.edu',
url='https://github.com/xigt/igtdetect',
s... |
6f4f0b636844c6e6b555e73c69f846507cb49608 | setup.py | setup.py | """Setup script for `kozai`."""
from setuptools import setup
def readme():
with open('README.md') as f:
return f.read()
setup(
author='Joseph O\'Brien Antognini',
author_email='joe.antognini@gmail.com',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Sc... | """Setup script for `kozai`."""
from setuptools import setup
def readme():
with open('README.md') as f:
return f.read()
setup(
author='Joseph O\'Brien Antognini',
author_email='joe.antognini@gmail.com',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Sc... | Set a correct version number. | Set a correct version number.
| Python | bsd-2-clause | joe-antognini/kozai | """Setup script for `kozai`."""
from setuptools import setup
def readme():
with open('README.md') as f:
return f.read()
setup(
author='Joseph O\'Brien Antognini',
author_email='joe.antognini@gmail.com',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Sc... | """Setup script for `kozai`."""
from setuptools import setup
def readme():
with open('README.md') as f:
return f.read()
setup(
author='Joseph O\'Brien Antognini',
author_email='joe.antognini@gmail.com',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Sc... | <commit_before>"""Setup script for `kozai`."""
from setuptools import setup
def readme():
with open('README.md') as f:
return f.read()
setup(
author='Joseph O\'Brien Antognini',
author_email='joe.antognini@gmail.com',
classifiers=[
'Development Status :: 4 - Beta',
'Intended... | """Setup script for `kozai`."""
from setuptools import setup
def readme():
with open('README.md') as f:
return f.read()
setup(
author='Joseph O\'Brien Antognini',
author_email='joe.antognini@gmail.com',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Sc... | """Setup script for `kozai`."""
from setuptools import setup
def readme():
with open('README.md') as f:
return f.read()
setup(
author='Joseph O\'Brien Antognini',
author_email='joe.antognini@gmail.com',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Sc... | <commit_before>"""Setup script for `kozai`."""
from setuptools import setup
def readme():
with open('README.md') as f:
return f.read()
setup(
author='Joseph O\'Brien Antognini',
author_email='joe.antognini@gmail.com',
classifiers=[
'Development Status :: 4 - Beta',
'Intended... |
7bdf12d0b54b0b6c628acfee1a2fadda2ba542af | setup.py | setup.py | #!/usr/bin/env python
'''FiscalHr Setup'''
from distutils.core import setup
import fiscalhr
setup(
name=fiscalhr.__title__,
version=fiscalhr.__version__,
author=fiscalhr.__author__,
author_email=fiscalhr.__author_email__,
url=fiscalhr.__url__,
license=fiscalhr.__license__,
description=fi... | #!/usr/bin/env python
'''FiscalHr Setup'''
from distutils.core import setup
import fiscalhr
setup(
name=fiscalhr.__title__,
version=fiscalhr.__version__,
author=fiscalhr.__author__,
author_email=fiscalhr.__author_email__,
url=fiscalhr.__url__,
license=fiscalhr.__license__,
description=fi... | Change dependency to libxml2-python-2.7.8 (github). | Change dependency to libxml2-python-2.7.8 (github).
| Python | mit | vingd/fiscal-hr-python | #!/usr/bin/env python
'''FiscalHr Setup'''
from distutils.core import setup
import fiscalhr
setup(
name=fiscalhr.__title__,
version=fiscalhr.__version__,
author=fiscalhr.__author__,
author_email=fiscalhr.__author_email__,
url=fiscalhr.__url__,
license=fiscalhr.__license__,
description=fi... | #!/usr/bin/env python
'''FiscalHr Setup'''
from distutils.core import setup
import fiscalhr
setup(
name=fiscalhr.__title__,
version=fiscalhr.__version__,
author=fiscalhr.__author__,
author_email=fiscalhr.__author_email__,
url=fiscalhr.__url__,
license=fiscalhr.__license__,
description=fi... | <commit_before>#!/usr/bin/env python
'''FiscalHr Setup'''
from distutils.core import setup
import fiscalhr
setup(
name=fiscalhr.__title__,
version=fiscalhr.__version__,
author=fiscalhr.__author__,
author_email=fiscalhr.__author_email__,
url=fiscalhr.__url__,
license=fiscalhr.__license__,
... | #!/usr/bin/env python
'''FiscalHr Setup'''
from distutils.core import setup
import fiscalhr
setup(
name=fiscalhr.__title__,
version=fiscalhr.__version__,
author=fiscalhr.__author__,
author_email=fiscalhr.__author_email__,
url=fiscalhr.__url__,
license=fiscalhr.__license__,
description=fi... | #!/usr/bin/env python
'''FiscalHr Setup'''
from distutils.core import setup
import fiscalhr
setup(
name=fiscalhr.__title__,
version=fiscalhr.__version__,
author=fiscalhr.__author__,
author_email=fiscalhr.__author_email__,
url=fiscalhr.__url__,
license=fiscalhr.__license__,
description=fi... | <commit_before>#!/usr/bin/env python
'''FiscalHr Setup'''
from distutils.core import setup
import fiscalhr
setup(
name=fiscalhr.__title__,
version=fiscalhr.__version__,
author=fiscalhr.__author__,
author_email=fiscalhr.__author_email__,
url=fiscalhr.__url__,
license=fiscalhr.__license__,
... |
335033e9542f0d69ef6612a5b37d0b41f68b99b7 | setup.py | setup.py | #!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
requirements = [
]
test_requirements = [
]
setup(
name='adb_android',
version='1.0.0',
description="Enable android adb in your python script",
long_description='This python package is ... | #!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
requirements = [
'sure',
]
test_requirements = [
]
setup(
name='adb_android',
version='1.0.0',
description="Enable android adb in your python script",
long_description='This pytho... | Add 'sure' to package reqs | Add 'sure' to package reqs
Change-Id: Ie08d1a8b23e4fc8f4f18d53403fff8145022af32
| Python | bsd-3-clause | vmalyi/adb_android | #!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
requirements = [
]
test_requirements = [
]
setup(
name='adb_android',
version='1.0.0',
description="Enable android adb in your python script",
long_description='This python package is ... | #!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
requirements = [
'sure',
]
test_requirements = [
]
setup(
name='adb_android',
version='1.0.0',
description="Enable android adb in your python script",
long_description='This pytho... | <commit_before>#!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
requirements = [
]
test_requirements = [
]
setup(
name='adb_android',
version='1.0.0',
description="Enable android adb in your python script",
long_description='This pyt... | #!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
requirements = [
'sure',
]
test_requirements = [
]
setup(
name='adb_android',
version='1.0.0',
description="Enable android adb in your python script",
long_description='This pytho... | #!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
requirements = [
]
test_requirements = [
]
setup(
name='adb_android',
version='1.0.0',
description="Enable android adb in your python script",
long_description='This python package is ... | <commit_before>#!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
requirements = [
]
test_requirements = [
]
setup(
name='adb_android',
version='1.0.0',
description="Enable android adb in your python script",
long_description='This pyt... |
f0bd3c9ffffa69f5b8851cecdb1375d94e51a965 | setup.py | setup.py | #!/usr/bin/env python
from __future__ import with_statement
from setuptools import setup, find_packages
import re
version = "0.0.1.dev.0"
with open("tdclient/version.py") as fp:
m = re.search(r"^__version__ *= *\"([^\"]*)\" *$", fp.read(), re.MULTILINE)
if m is not None:
version = m.group(1)
setup(
... | #!/usr/bin/env python
from __future__ import with_statement
from setuptools import setup, find_packages
import re
version = "0.0.1.dev.0"
with open("tdclient/version.py") as fp:
m = re.search(r"^__version__ *= *\"([^\"]*)\" *$", fp.read(), re.MULTILINE)
if m is not None:
version = m.group(1)
setup(
... | Add `pytest-cov` to collect test coverages | Add `pytest-cov` to collect test coverages
| Python | apache-2.0 | treasure-data/td-client-python | #!/usr/bin/env python
from __future__ import with_statement
from setuptools import setup, find_packages
import re
version = "0.0.1.dev.0"
with open("tdclient/version.py") as fp:
m = re.search(r"^__version__ *= *\"([^\"]*)\" *$", fp.read(), re.MULTILINE)
if m is not None:
version = m.group(1)
setup(
... | #!/usr/bin/env python
from __future__ import with_statement
from setuptools import setup, find_packages
import re
version = "0.0.1.dev.0"
with open("tdclient/version.py") as fp:
m = re.search(r"^__version__ *= *\"([^\"]*)\" *$", fp.read(), re.MULTILINE)
if m is not None:
version = m.group(1)
setup(
... | <commit_before>#!/usr/bin/env python
from __future__ import with_statement
from setuptools import setup, find_packages
import re
version = "0.0.1.dev.0"
with open("tdclient/version.py") as fp:
m = re.search(r"^__version__ *= *\"([^\"]*)\" *$", fp.read(), re.MULTILINE)
if m is not None:
version = m.gro... | #!/usr/bin/env python
from __future__ import with_statement
from setuptools import setup, find_packages
import re
version = "0.0.1.dev.0"
with open("tdclient/version.py") as fp:
m = re.search(r"^__version__ *= *\"([^\"]*)\" *$", fp.read(), re.MULTILINE)
if m is not None:
version = m.group(1)
setup(
... | #!/usr/bin/env python
from __future__ import with_statement
from setuptools import setup, find_packages
import re
version = "0.0.1.dev.0"
with open("tdclient/version.py") as fp:
m = re.search(r"^__version__ *= *\"([^\"]*)\" *$", fp.read(), re.MULTILINE)
if m is not None:
version = m.group(1)
setup(
... | <commit_before>#!/usr/bin/env python
from __future__ import with_statement
from setuptools import setup, find_packages
import re
version = "0.0.1.dev.0"
with open("tdclient/version.py") as fp:
m = re.search(r"^__version__ *= *\"([^\"]*)\" *$", fp.read(), re.MULTILINE)
if m is not None:
version = m.gro... |
d544510736b132d81f774f60fe3729a128ed2e26 | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2010 KenTyde
# All rights reserved.
#
# This software is licensed as described in the file LICENSE,
# which you should have received as part of this distribution.
from setuptools import setup
import os
desc = open(os.path.join(os.path.dirname(__file__), ... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2010 KenTyde
# All rights reserved.
#
# This software is licensed as described in the file LICENSE,
# which you should have received as part of this distribution.
from setuptools import setup
import os
desc = open(os.path.join(os.path.dirname(__file__), ... | Change package owner and homepage | Change package owner and homepage
| Python | bsd-3-clause | djc/fixlib | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2010 KenTyde
# All rights reserved.
#
# This software is licensed as described in the file LICENSE,
# which you should have received as part of this distribution.
from setuptools import setup
import os
desc = open(os.path.join(os.path.dirname(__file__), ... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2010 KenTyde
# All rights reserved.
#
# This software is licensed as described in the file LICENSE,
# which you should have received as part of this distribution.
from setuptools import setup
import os
desc = open(os.path.join(os.path.dirname(__file__), ... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2010 KenTyde
# All rights reserved.
#
# This software is licensed as described in the file LICENSE,
# which you should have received as part of this distribution.
from setuptools import setup
import os
desc = open(os.path.join(os.path.dirn... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2010 KenTyde
# All rights reserved.
#
# This software is licensed as described in the file LICENSE,
# which you should have received as part of this distribution.
from setuptools import setup
import os
desc = open(os.path.join(os.path.dirname(__file__), ... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2010 KenTyde
# All rights reserved.
#
# This software is licensed as described in the file LICENSE,
# which you should have received as part of this distribution.
from setuptools import setup
import os
desc = open(os.path.join(os.path.dirname(__file__), ... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2010 KenTyde
# All rights reserved.
#
# This software is licensed as described in the file LICENSE,
# which you should have received as part of this distribution.
from setuptools import setup
import os
desc = open(os.path.join(os.path.dirn... |
07800eb26817458d2d12afeb3f670a2119533639 | setup.py | setup.py | from __future__ import unicode_literals
import re
from setuptools import find_packages, setup
def get_version(filename):
content = open(filename).read()
metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", content))
return metadata['version']
setup(
name='Mopidy-MusicBox-Webclient',
version=... | from __future__ import unicode_literals
import re
from setuptools import find_packages, setup
def get_version(filename):
content = open(filename).read()
metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", content))
return metadata['version']
setup(
name='Mopidy-MusicBox-Webclient',
version=... | Update URL to github repository. | Update URL to github repository.
| Python | apache-2.0 | pimusicbox/mopidy-musicbox-webclient,woutervanwijk/Mopidy-MusicBox-Webclient,woutervanwijk/Mopidy-MusicBox-Webclient,pimusicbox/mopidy-musicbox-webclient,woutervanwijk/Mopidy-MusicBox-Webclient,pimusicbox/mopidy-musicbox-webclient | from __future__ import unicode_literals
import re
from setuptools import find_packages, setup
def get_version(filename):
content = open(filename).read()
metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", content))
return metadata['version']
setup(
name='Mopidy-MusicBox-Webclient',
version=... | from __future__ import unicode_literals
import re
from setuptools import find_packages, setup
def get_version(filename):
content = open(filename).read()
metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", content))
return metadata['version']
setup(
name='Mopidy-MusicBox-Webclient',
version=... | <commit_before>from __future__ import unicode_literals
import re
from setuptools import find_packages, setup
def get_version(filename):
content = open(filename).read()
metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", content))
return metadata['version']
setup(
name='Mopidy-MusicBox-Webclient... | from __future__ import unicode_literals
import re
from setuptools import find_packages, setup
def get_version(filename):
content = open(filename).read()
metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", content))
return metadata['version']
setup(
name='Mopidy-MusicBox-Webclient',
version=... | from __future__ import unicode_literals
import re
from setuptools import find_packages, setup
def get_version(filename):
content = open(filename).read()
metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", content))
return metadata['version']
setup(
name='Mopidy-MusicBox-Webclient',
version=... | <commit_before>from __future__ import unicode_literals
import re
from setuptools import find_packages, setup
def get_version(filename):
content = open(filename).read()
metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", content))
return metadata['version']
setup(
name='Mopidy-MusicBox-Webclient... |
1dfcf90a70faaf8e202674fd82f59b603a9c2400 | setup.py | setup.py | import codecs
from os import path
from setuptools import find_packages, setup
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding="utf-8") as fp:
return fp.read()
setup(
author="Pinax Team",
author_email="team@pinaxproject.com",
des... | import codecs
from os import path
from setuptools import find_packages, setup
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding="utf-8") as fp:
return fp.read()
setup(
author="Pinax Team",
author_email="team@pinaxproject.com",
des... | Update DUA requirement to support Django 1.9 | Update DUA requirement to support Django 1.9
| Python | unknown | pinax/pinax-invitations,jacobwegner/pinax-invitations,eldarion/kaleo | import codecs
from os import path
from setuptools import find_packages, setup
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding="utf-8") as fp:
return fp.read()
setup(
author="Pinax Team",
author_email="team@pinaxproject.com",
des... | import codecs
from os import path
from setuptools import find_packages, setup
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding="utf-8") as fp:
return fp.read()
setup(
author="Pinax Team",
author_email="team@pinaxproject.com",
des... | <commit_before>import codecs
from os import path
from setuptools import find_packages, setup
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding="utf-8") as fp:
return fp.read()
setup(
author="Pinax Team",
author_email="team@pinaxprojec... | import codecs
from os import path
from setuptools import find_packages, setup
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding="utf-8") as fp:
return fp.read()
setup(
author="Pinax Team",
author_email="team@pinaxproject.com",
des... | import codecs
from os import path
from setuptools import find_packages, setup
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding="utf-8") as fp:
return fp.read()
setup(
author="Pinax Team",
author_email="team@pinaxproject.com",
des... | <commit_before>import codecs
from os import path
from setuptools import find_packages, setup
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding="utf-8") as fp:
return fp.read()
setup(
author="Pinax Team",
author_email="team@pinaxprojec... |
3085dc4992cf31c061d9cee5a9b6ff5abbf85e42 | bernard/browser.py | bernard/browser.py | import logging
class Browser:
def __init__(self, actors, subreddit, db, cursor):
self.actors = actors
self.subreddit = subreddit
self.db = db
self.cursor = cursor
def check_command(self, command, mod, post):
for actor in self.actors:
actor.parse(command, mo... | import logging
class Browser:
def __init__(self, actors, subreddit, db, cursor):
self.actors = actors
self.subreddit = subreddit
self.db = db
self.cursor = cursor
def check_command(self, command, mod, post):
for actor in self.actors:
actor.parse(command, mo... | Fix crash on empty report by converting to string | Fix crash on empty report by converting to string
| Python | mit | leviroth/bernard | import logging
class Browser:
def __init__(self, actors, subreddit, db, cursor):
self.actors = actors
self.subreddit = subreddit
self.db = db
self.cursor = cursor
def check_command(self, command, mod, post):
for actor in self.actors:
actor.parse(command, mo... | import logging
class Browser:
def __init__(self, actors, subreddit, db, cursor):
self.actors = actors
self.subreddit = subreddit
self.db = db
self.cursor = cursor
def check_command(self, command, mod, post):
for actor in self.actors:
actor.parse(command, mo... | <commit_before>import logging
class Browser:
def __init__(self, actors, subreddit, db, cursor):
self.actors = actors
self.subreddit = subreddit
self.db = db
self.cursor = cursor
def check_command(self, command, mod, post):
for actor in self.actors:
actor.pa... | import logging
class Browser:
def __init__(self, actors, subreddit, db, cursor):
self.actors = actors
self.subreddit = subreddit
self.db = db
self.cursor = cursor
def check_command(self, command, mod, post):
for actor in self.actors:
actor.parse(command, mo... | import logging
class Browser:
def __init__(self, actors, subreddit, db, cursor):
self.actors = actors
self.subreddit = subreddit
self.db = db
self.cursor = cursor
def check_command(self, command, mod, post):
for actor in self.actors:
actor.parse(command, mo... | <commit_before>import logging
class Browser:
def __init__(self, actors, subreddit, db, cursor):
self.actors = actors
self.subreddit = subreddit
self.db = db
self.cursor = cursor
def check_command(self, command, mod, post):
for actor in self.actors:
actor.pa... |
6ba8e942edaf424c7b20983a5e829736c38b8110 | froide/foiidea/tasks.py | froide/foiidea/tasks.py | import sys
from celery.task import task
from django.conf import settings
from django.utils import translation
from django.db import transaction
from .crawler import crawl_source_by_id
from .models import Article
@task
def fetch_articles(source_id):
translation.activate(settings.LANGUAGE_CODE)
def run(sour... | from celery.task import task
from django.conf import settings
from django.utils import translation
from .crawler import crawl_source_by_id
from .models import Article
@task
def fetch_articles(source_id):
translation.activate(settings.LANGUAGE_CODE)
crawl_source_by_id(int(source_id))
@task
def recalculate_... | Remove complex exception mechanism for celery task | Remove complex exception mechanism for celery task | Python | mit | ryankanno/froide,stefanw/froide,ryankanno/froide,CodeforHawaii/froide,LilithWittmann/froide,ryankanno/froide,CodeforHawaii/froide,stefanw/froide,LilithWittmann/froide,fin/froide,LilithWittmann/froide,catcosmo/froide,catcosmo/froide,stefanw/froide,CodeforHawaii/froide,ryankanno/froide,fin/froide,stefanw/froide,catcosmo/... | import sys
from celery.task import task
from django.conf import settings
from django.utils import translation
from django.db import transaction
from .crawler import crawl_source_by_id
from .models import Article
@task
def fetch_articles(source_id):
translation.activate(settings.LANGUAGE_CODE)
def run(sour... | from celery.task import task
from django.conf import settings
from django.utils import translation
from .crawler import crawl_source_by_id
from .models import Article
@task
def fetch_articles(source_id):
translation.activate(settings.LANGUAGE_CODE)
crawl_source_by_id(int(source_id))
@task
def recalculate_... | <commit_before>import sys
from celery.task import task
from django.conf import settings
from django.utils import translation
from django.db import transaction
from .crawler import crawl_source_by_id
from .models import Article
@task
def fetch_articles(source_id):
translation.activate(settings.LANGUAGE_CODE)
... | from celery.task import task
from django.conf import settings
from django.utils import translation
from .crawler import crawl_source_by_id
from .models import Article
@task
def fetch_articles(source_id):
translation.activate(settings.LANGUAGE_CODE)
crawl_source_by_id(int(source_id))
@task
def recalculate_... | import sys
from celery.task import task
from django.conf import settings
from django.utils import translation
from django.db import transaction
from .crawler import crawl_source_by_id
from .models import Article
@task
def fetch_articles(source_id):
translation.activate(settings.LANGUAGE_CODE)
def run(sour... | <commit_before>import sys
from celery.task import task
from django.conf import settings
from django.utils import translation
from django.db import transaction
from .crawler import crawl_source_by_id
from .models import Article
@task
def fetch_articles(source_id):
translation.activate(settings.LANGUAGE_CODE)
... |
f0f8652f67f0b09a1133f477b27b6d399621790f | pywxsb.py | pywxsb.py | import PyWXSB.XMLSchema as xs
import sys
import traceback
from xml.dom import minidom
from xml.dom import Node
files = sys.argv[1:]
if 0 == len(files):
files = [ 'schemas/XMLSchema.xsd' ]
for file in files:
wxs = xs.schema()
try:
wxs.processDocument(minidom.parse(file))
except Exception, e:
... | import PyWXSB.XMLSchema as xs
import sys
import traceback
from xml.dom import minidom
from xml.dom import Node
files = sys.argv[1:]
if 0 == len(files):
files = [ 'schemas/XMLSchema.xsd' ]
for file in files:
wxs = xs.schema()
try:
wxs.processDocument(minidom.parse(file))
except Exception, e:
... | Put whole message out to stderr, not just part of it | Put whole message out to stderr, not just part of it
| Python | apache-2.0 | jonfoster/pyxb2,CantemoInternal/pyxb,jonfoster/pyxb-upstream-mirror,balanced/PyXB,jonfoster/pyxb2,CantemoInternal/pyxb,pabigot/pyxb,balanced/PyXB,CantemoInternal/pyxb,jonfoster/pyxb1,balanced/PyXB,jonfoster/pyxb-upstream-mirror,jonfoster/pyxb1,pabigot/pyxb,jonfoster/pyxb-upstream-mirror,jonfoster/pyxb2 | import PyWXSB.XMLSchema as xs
import sys
import traceback
from xml.dom import minidom
from xml.dom import Node
files = sys.argv[1:]
if 0 == len(files):
files = [ 'schemas/XMLSchema.xsd' ]
for file in files:
wxs = xs.schema()
try:
wxs.processDocument(minidom.parse(file))
except Exception, e:
... | import PyWXSB.XMLSchema as xs
import sys
import traceback
from xml.dom import minidom
from xml.dom import Node
files = sys.argv[1:]
if 0 == len(files):
files = [ 'schemas/XMLSchema.xsd' ]
for file in files:
wxs = xs.schema()
try:
wxs.processDocument(minidom.parse(file))
except Exception, e:
... | <commit_before>import PyWXSB.XMLSchema as xs
import sys
import traceback
from xml.dom import minidom
from xml.dom import Node
files = sys.argv[1:]
if 0 == len(files):
files = [ 'schemas/XMLSchema.xsd' ]
for file in files:
wxs = xs.schema()
try:
wxs.processDocument(minidom.parse(file))
except ... | import PyWXSB.XMLSchema as xs
import sys
import traceback
from xml.dom import minidom
from xml.dom import Node
files = sys.argv[1:]
if 0 == len(files):
files = [ 'schemas/XMLSchema.xsd' ]
for file in files:
wxs = xs.schema()
try:
wxs.processDocument(minidom.parse(file))
except Exception, e:
... | import PyWXSB.XMLSchema as xs
import sys
import traceback
from xml.dom import minidom
from xml.dom import Node
files = sys.argv[1:]
if 0 == len(files):
files = [ 'schemas/XMLSchema.xsd' ]
for file in files:
wxs = xs.schema()
try:
wxs.processDocument(minidom.parse(file))
except Exception, e:
... | <commit_before>import PyWXSB.XMLSchema as xs
import sys
import traceback
from xml.dom import minidom
from xml.dom import Node
files = sys.argv[1:]
if 0 == len(files):
files = [ 'schemas/XMLSchema.xsd' ]
for file in files:
wxs = xs.schema()
try:
wxs.processDocument(minidom.parse(file))
except ... |
9f0618d39dad2438a29964e706d916953a96a5fb | shivyc.py | shivyc.py | #!/usr/bin/env python3
"""Main executable for ShivyC compiler
"""
import argparse
def get_arguments():
"""Set up the argument parser and return an object storing the
argument values.
return - An object storing argument values, as returned by
argparse.parse_args()
"""
parser = argparse.Arg... | #!/usr/bin/env python3
"""Main executable for ShivyC compiler
For usage, run "./shivyc.py --help".
"""
import argparse
def get_arguments():
"""Set up the argument parser and return an object storing the
argument values.
return - An object storing argument values, as returned by
argparse.parse_args... | Add usage info to comment | Add usage info to comment
| Python | mit | ShivamSarodia/ShivyC,ShivamSarodia/ShivyC,ShivamSarodia/ShivyC | #!/usr/bin/env python3
"""Main executable for ShivyC compiler
"""
import argparse
def get_arguments():
"""Set up the argument parser and return an object storing the
argument values.
return - An object storing argument values, as returned by
argparse.parse_args()
"""
parser = argparse.Arg... | #!/usr/bin/env python3
"""Main executable for ShivyC compiler
For usage, run "./shivyc.py --help".
"""
import argparse
def get_arguments():
"""Set up the argument parser and return an object storing the
argument values.
return - An object storing argument values, as returned by
argparse.parse_args... | <commit_before>#!/usr/bin/env python3
"""Main executable for ShivyC compiler
"""
import argparse
def get_arguments():
"""Set up the argument parser and return an object storing the
argument values.
return - An object storing argument values, as returned by
argparse.parse_args()
"""
parser... | #!/usr/bin/env python3
"""Main executable for ShivyC compiler
For usage, run "./shivyc.py --help".
"""
import argparse
def get_arguments():
"""Set up the argument parser and return an object storing the
argument values.
return - An object storing argument values, as returned by
argparse.parse_args... | #!/usr/bin/env python3
"""Main executable for ShivyC compiler
"""
import argparse
def get_arguments():
"""Set up the argument parser and return an object storing the
argument values.
return - An object storing argument values, as returned by
argparse.parse_args()
"""
parser = argparse.Arg... | <commit_before>#!/usr/bin/env python3
"""Main executable for ShivyC compiler
"""
import argparse
def get_arguments():
"""Set up the argument parser and return an object storing the
argument values.
return - An object storing argument values, as returned by
argparse.parse_args()
"""
parser... |
c544afed5c8d961db0d34b7f73313699ce3bf656 | test/ocookie_test.py | test/ocookie_test.py | import unittest, time
import ocookie
class OcookieTest(unittest.TestCase):
def test_foo(self):
pass
class CookieParserTest(unittest.TestCase):
def test_parsing(self):
text = 'foo=bar'
cookie = ocookie.CookieParser.parse_set_cookie_value(text)
self.assertEquals('foo', cookie.na... | import unittest, time
import ocookie
class CookieTest(unittest.TestCase):
def test_construction(self):
cookie = ocookie.Cookie('foo', 'bar', httponly=True)
self.assertEquals('foo', cookie.name)
self.assertEquals('bar', cookie.value)
self.assertTrue(cookie.httponly)
self.ass... | Add a cookie class test | Add a cookie class test
| Python | bsd-2-clause | p/ocookie | import unittest, time
import ocookie
class OcookieTest(unittest.TestCase):
def test_foo(self):
pass
class CookieParserTest(unittest.TestCase):
def test_parsing(self):
text = 'foo=bar'
cookie = ocookie.CookieParser.parse_set_cookie_value(text)
self.assertEquals('foo', cookie.na... | import unittest, time
import ocookie
class CookieTest(unittest.TestCase):
def test_construction(self):
cookie = ocookie.Cookie('foo', 'bar', httponly=True)
self.assertEquals('foo', cookie.name)
self.assertEquals('bar', cookie.value)
self.assertTrue(cookie.httponly)
self.ass... | <commit_before>import unittest, time
import ocookie
class OcookieTest(unittest.TestCase):
def test_foo(self):
pass
class CookieParserTest(unittest.TestCase):
def test_parsing(self):
text = 'foo=bar'
cookie = ocookie.CookieParser.parse_set_cookie_value(text)
self.assertEquals('... | import unittest, time
import ocookie
class CookieTest(unittest.TestCase):
def test_construction(self):
cookie = ocookie.Cookie('foo', 'bar', httponly=True)
self.assertEquals('foo', cookie.name)
self.assertEquals('bar', cookie.value)
self.assertTrue(cookie.httponly)
self.ass... | import unittest, time
import ocookie
class OcookieTest(unittest.TestCase):
def test_foo(self):
pass
class CookieParserTest(unittest.TestCase):
def test_parsing(self):
text = 'foo=bar'
cookie = ocookie.CookieParser.parse_set_cookie_value(text)
self.assertEquals('foo', cookie.na... | <commit_before>import unittest, time
import ocookie
class OcookieTest(unittest.TestCase):
def test_foo(self):
pass
class CookieParserTest(unittest.TestCase):
def test_parsing(self):
text = 'foo=bar'
cookie = ocookie.CookieParser.parse_set_cookie_value(text)
self.assertEquals('... |
edd4783d5f277e8bc456f662e66ac65eb62419b7 | base/components/views.py | base/components/views.py | from django.views.generic import View
from django.views.generic.base import TemplateView
from braces.views import AjaxResponseMixin, JSONResponseMixin
from haystack.query import SearchQuerySet
class SiteView(TemplateView):
template_name = 'landings/home_site.html'
class AutocompleteView(JSONResponseMixin, View... | from django.views.generic import View
from django.views.generic.base import TemplateView
from braces.views import AjaxResponseMixin, JSONResponseMixin
from haystack.query import SearchQuerySet
from haystack.inputs import AutoQuery, Exact, Clean
class SiteView(TemplateView):
template_name = 'landings/home_site.ht... | Throw more data into the autocomplete view. | Throw more data into the autocomplete view.
| Python | apache-2.0 | hello-base/web,hello-base/web,hello-base/web,hello-base/web | from django.views.generic import View
from django.views.generic.base import TemplateView
from braces.views import AjaxResponseMixin, JSONResponseMixin
from haystack.query import SearchQuerySet
class SiteView(TemplateView):
template_name = 'landings/home_site.html'
class AutocompleteView(JSONResponseMixin, View... | from django.views.generic import View
from django.views.generic.base import TemplateView
from braces.views import AjaxResponseMixin, JSONResponseMixin
from haystack.query import SearchQuerySet
from haystack.inputs import AutoQuery, Exact, Clean
class SiteView(TemplateView):
template_name = 'landings/home_site.ht... | <commit_before>from django.views.generic import View
from django.views.generic.base import TemplateView
from braces.views import AjaxResponseMixin, JSONResponseMixin
from haystack.query import SearchQuerySet
class SiteView(TemplateView):
template_name = 'landings/home_site.html'
class AutocompleteView(JSONResp... | from django.views.generic import View
from django.views.generic.base import TemplateView
from braces.views import AjaxResponseMixin, JSONResponseMixin
from haystack.query import SearchQuerySet
from haystack.inputs import AutoQuery, Exact, Clean
class SiteView(TemplateView):
template_name = 'landings/home_site.ht... | from django.views.generic import View
from django.views.generic.base import TemplateView
from braces.views import AjaxResponseMixin, JSONResponseMixin
from haystack.query import SearchQuerySet
class SiteView(TemplateView):
template_name = 'landings/home_site.html'
class AutocompleteView(JSONResponseMixin, View... | <commit_before>from django.views.generic import View
from django.views.generic.base import TemplateView
from braces.views import AjaxResponseMixin, JSONResponseMixin
from haystack.query import SearchQuerySet
class SiteView(TemplateView):
template_name = 'landings/home_site.html'
class AutocompleteView(JSONResp... |
c89e9cee709790d99013d77889bac208a8bdeb12 | tests/test_arpreq.py | tests/test_arpreq.py | import sys
from socket import htonl, inet_ntoa
import pytest
from arpreq import arpreq
def test_localhost():
assert arpreq('127.0.0.1') == '00:00:00:00:00:00'
def decode_address(value):
return inet_ntoa(htonl(int(value, base=16)).to_bytes(4, 'big'))
def decode_flags(value):
return int(value, base=16... | import sys
from socket import htonl, inet_ntoa
from struct import pack
import pytest
from arpreq import arpreq
def test_localhost():
assert arpreq('127.0.0.1') == '00:00:00:00:00:00'
def decode_address(value):
return inet_ntoa(pack(">I", htonl(int(value, base=16))))
def decode_flags(value):
return i... | Use struct.pack instead of int.to_bytes | Use struct.pack instead of int.to_bytes
int.to_bytes is not available on Python 2
| Python | mit | sebschrader/python-arpreq,sebschrader/python-arpreq,sebschrader/python-arpreq,sebschrader/python-arpreq | import sys
from socket import htonl, inet_ntoa
import pytest
from arpreq import arpreq
def test_localhost():
assert arpreq('127.0.0.1') == '00:00:00:00:00:00'
def decode_address(value):
return inet_ntoa(htonl(int(value, base=16)).to_bytes(4, 'big'))
def decode_flags(value):
return int(value, base=16... | import sys
from socket import htonl, inet_ntoa
from struct import pack
import pytest
from arpreq import arpreq
def test_localhost():
assert arpreq('127.0.0.1') == '00:00:00:00:00:00'
def decode_address(value):
return inet_ntoa(pack(">I", htonl(int(value, base=16))))
def decode_flags(value):
return i... | <commit_before>import sys
from socket import htonl, inet_ntoa
import pytest
from arpreq import arpreq
def test_localhost():
assert arpreq('127.0.0.1') == '00:00:00:00:00:00'
def decode_address(value):
return inet_ntoa(htonl(int(value, base=16)).to_bytes(4, 'big'))
def decode_flags(value):
return int... | import sys
from socket import htonl, inet_ntoa
from struct import pack
import pytest
from arpreq import arpreq
def test_localhost():
assert arpreq('127.0.0.1') == '00:00:00:00:00:00'
def decode_address(value):
return inet_ntoa(pack(">I", htonl(int(value, base=16))))
def decode_flags(value):
return i... | import sys
from socket import htonl, inet_ntoa
import pytest
from arpreq import arpreq
def test_localhost():
assert arpreq('127.0.0.1') == '00:00:00:00:00:00'
def decode_address(value):
return inet_ntoa(htonl(int(value, base=16)).to_bytes(4, 'big'))
def decode_flags(value):
return int(value, base=16... | <commit_before>import sys
from socket import htonl, inet_ntoa
import pytest
from arpreq import arpreq
def test_localhost():
assert arpreq('127.0.0.1') == '00:00:00:00:00:00'
def decode_address(value):
return inet_ntoa(htonl(int(value, base=16)).to_bytes(4, 'big'))
def decode_flags(value):
return int... |
179bd5a7df7858eda2674b7913b6e446ab12d9bb | grammpy/Rules/InstantiableRule.py | grammpy/Rules/InstantiableRule.py | #!/usr/bin/env python
"""
:Author Patrik Valkovic
:Created 31.08.2017 11:18
:Licence GNUv3
Part of grammpy
"""
from weakreflist import WeakList
from .IsMethodsRuleExtension import IsMethodsRuleExtension
class InstantiableRule(IsMethodsRuleExtension):
def __init__(self):
self._from_nonterms = WeakList()
... | #!/usr/bin/env python
"""
:Author Patrik Valkovic
:Created 31.08.2017 11:18
:Licence GNUv3
Part of grammpy
"""
from ..WeakList import WeakList
from .IsMethodsRuleExtension import IsMethodsRuleExtension
class InstantiableRule(IsMethodsRuleExtension):
def __init__(self):
self._from_nonterms = WeakList()
... | Switch from weakreflist library to own implementation | Switch from weakreflist library to own implementation
| Python | mit | PatrikValkovic/grammpy | #!/usr/bin/env python
"""
:Author Patrik Valkovic
:Created 31.08.2017 11:18
:Licence GNUv3
Part of grammpy
"""
from weakreflist import WeakList
from .IsMethodsRuleExtension import IsMethodsRuleExtension
class InstantiableRule(IsMethodsRuleExtension):
def __init__(self):
self._from_nonterms = WeakList()
... | #!/usr/bin/env python
"""
:Author Patrik Valkovic
:Created 31.08.2017 11:18
:Licence GNUv3
Part of grammpy
"""
from ..WeakList import WeakList
from .IsMethodsRuleExtension import IsMethodsRuleExtension
class InstantiableRule(IsMethodsRuleExtension):
def __init__(self):
self._from_nonterms = WeakList()
... | <commit_before>#!/usr/bin/env python
"""
:Author Patrik Valkovic
:Created 31.08.2017 11:18
:Licence GNUv3
Part of grammpy
"""
from weakreflist import WeakList
from .IsMethodsRuleExtension import IsMethodsRuleExtension
class InstantiableRule(IsMethodsRuleExtension):
def __init__(self):
self._from_nonterm... | #!/usr/bin/env python
"""
:Author Patrik Valkovic
:Created 31.08.2017 11:18
:Licence GNUv3
Part of grammpy
"""
from ..WeakList import WeakList
from .IsMethodsRuleExtension import IsMethodsRuleExtension
class InstantiableRule(IsMethodsRuleExtension):
def __init__(self):
self._from_nonterms = WeakList()
... | #!/usr/bin/env python
"""
:Author Patrik Valkovic
:Created 31.08.2017 11:18
:Licence GNUv3
Part of grammpy
"""
from weakreflist import WeakList
from .IsMethodsRuleExtension import IsMethodsRuleExtension
class InstantiableRule(IsMethodsRuleExtension):
def __init__(self):
self._from_nonterms = WeakList()
... | <commit_before>#!/usr/bin/env python
"""
:Author Patrik Valkovic
:Created 31.08.2017 11:18
:Licence GNUv3
Part of grammpy
"""
from weakreflist import WeakList
from .IsMethodsRuleExtension import IsMethodsRuleExtension
class InstantiableRule(IsMethodsRuleExtension):
def __init__(self):
self._from_nonterm... |
67f3d3db568921f8deca0f68447498b84077e13c | tests/test_runner.py | tests/test_runner.py | from pytest import mark, raises
from oshino.run import main
from mock import patch
@mark.integration
@patch("oshino.core.heart.forever", lambda: False)
def test_startup():
with raises(SystemExit):
main(("--config", "tests/data/test_config.yml", ))
| import asyncio
from pytest import mark, raises
from oshino.run import main
from mock import patch
def create_loop():
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
return loop
@mark.integration
@patch("oshino.core.heart.forever", lambda: False)
@patch("oshino.core.heart.create_loop", crea... | Make event loop work for runner | Make event loop work for runner
| Python | mit | CodersOfTheNight/oshino | from pytest import mark, raises
from oshino.run import main
from mock import patch
@mark.integration
@patch("oshino.core.heart.forever", lambda: False)
def test_startup():
with raises(SystemExit):
main(("--config", "tests/data/test_config.yml", ))
Make event loop work for runner | import asyncio
from pytest import mark, raises
from oshino.run import main
from mock import patch
def create_loop():
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
return loop
@mark.integration
@patch("oshino.core.heart.forever", lambda: False)
@patch("oshino.core.heart.create_loop", crea... | <commit_before>from pytest import mark, raises
from oshino.run import main
from mock import patch
@mark.integration
@patch("oshino.core.heart.forever", lambda: False)
def test_startup():
with raises(SystemExit):
main(("--config", "tests/data/test_config.yml", ))
<commit_msg>Make event loop work for runner... | import asyncio
from pytest import mark, raises
from oshino.run import main
from mock import patch
def create_loop():
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
return loop
@mark.integration
@patch("oshino.core.heart.forever", lambda: False)
@patch("oshino.core.heart.create_loop", crea... | from pytest import mark, raises
from oshino.run import main
from mock import patch
@mark.integration
@patch("oshino.core.heart.forever", lambda: False)
def test_startup():
with raises(SystemExit):
main(("--config", "tests/data/test_config.yml", ))
Make event loop work for runnerimport asyncio
from pytest... | <commit_before>from pytest import mark, raises
from oshino.run import main
from mock import patch
@mark.integration
@patch("oshino.core.heart.forever", lambda: False)
def test_startup():
with raises(SystemExit):
main(("--config", "tests/data/test_config.yml", ))
<commit_msg>Make event loop work for runner... |
4c20c2137eb1cee69511ecd8a83a499147b42373 | tests/thread-test.py | tests/thread-test.py | #!/usr/bin/python2
import pstack
import json
threads, text = pstack.JSON(["tests/thread"])
result = json.loads(text)
# we have 10 threads + main
assert len(threads) == 11
entryThreads = 0
for thread in threads:
assert thread["ti_lid"] in result["lwps"], "LWP %d not in %s" % (thread["ti_lid"], result["lwps"])
... | #!/usr/bin/python2
import pstack
import json
pstack, text = pstack.JSON(["tests/thread"])
result = json.loads(text)
threads = result["threads"]
lwps = result["lwps"]
assert_at = result["assert_at"]
# we have 10 threads + main
assert len(threads) == 11
for thread in pstack:
# this will throw an error if the threa... | Clean up changes to thread test | Clean up changes to thread test
| Python | bsd-2-clause | peadar/pstack,peadar/pstack,peadar/pstack,peadar/pstack | #!/usr/bin/python2
import pstack
import json
threads, text = pstack.JSON(["tests/thread"])
result = json.loads(text)
# we have 10 threads + main
assert len(threads) == 11
entryThreads = 0
for thread in threads:
assert thread["ti_lid"] in result["lwps"], "LWP %d not in %s" % (thread["ti_lid"], result["lwps"])
... | #!/usr/bin/python2
import pstack
import json
pstack, text = pstack.JSON(["tests/thread"])
result = json.loads(text)
threads = result["threads"]
lwps = result["lwps"]
assert_at = result["assert_at"]
# we have 10 threads + main
assert len(threads) == 11
for thread in pstack:
# this will throw an error if the threa... | <commit_before>#!/usr/bin/python2
import pstack
import json
threads, text = pstack.JSON(["tests/thread"])
result = json.loads(text)
# we have 10 threads + main
assert len(threads) == 11
entryThreads = 0
for thread in threads:
assert thread["ti_lid"] in result["lwps"], "LWP %d not in %s" % (thread["ti_lid"], resul... | #!/usr/bin/python2
import pstack
import json
pstack, text = pstack.JSON(["tests/thread"])
result = json.loads(text)
threads = result["threads"]
lwps = result["lwps"]
assert_at = result["assert_at"]
# we have 10 threads + main
assert len(threads) == 11
for thread in pstack:
# this will throw an error if the threa... | #!/usr/bin/python2
import pstack
import json
threads, text = pstack.JSON(["tests/thread"])
result = json.loads(text)
# we have 10 threads + main
assert len(threads) == 11
entryThreads = 0
for thread in threads:
assert thread["ti_lid"] in result["lwps"], "LWP %d not in %s" % (thread["ti_lid"], result["lwps"])
... | <commit_before>#!/usr/bin/python2
import pstack
import json
threads, text = pstack.JSON(["tests/thread"])
result = json.loads(text)
# we have 10 threads + main
assert len(threads) == 11
entryThreads = 0
for thread in threads:
assert thread["ti_lid"] in result["lwps"], "LWP %d not in %s" % (thread["ti_lid"], resul... |
20b1505a316fc47049470f998741f00569df818f | rail-fence-cipher/rail_fence_cipher.py | rail-fence-cipher/rail_fence_cipher.py | # File: rail_fence_cipher.py
# Purpose: Implement encoding and decoding for the rail fence cipher.
# Programmer: Amal Shehu
# Course: Exercism
# Date: Friday 30 September 2016, 08:35 PM
| # File: rail_fence_cipher.py
# Purpose: Implement encoding and decoding for the rail fence cipher.
# Programmer: Amal Shehu
# Course: Exercism
# Date: Friday 30 September 2016, 08:35 PM
class Rail():
"""Implementation of Rail Fence Cipher."""
def __init__(self, text, rail_count):
... | Add imaginary fence list comprehension | Add imaginary fence list comprehension
| Python | mit | amalshehu/exercism-python | # File: rail_fence_cipher.py
# Purpose: Implement encoding and decoding for the rail fence cipher.
# Programmer: Amal Shehu
# Course: Exercism
# Date: Friday 30 September 2016, 08:35 PM
Add imaginary fence list comprehension | # File: rail_fence_cipher.py
# Purpose: Implement encoding and decoding for the rail fence cipher.
# Programmer: Amal Shehu
# Course: Exercism
# Date: Friday 30 September 2016, 08:35 PM
class Rail():
"""Implementation of Rail Fence Cipher."""
def __init__(self, text, rail_count):
... | <commit_before># File: rail_fence_cipher.py
# Purpose: Implement encoding and decoding for the rail fence cipher.
# Programmer: Amal Shehu
# Course: Exercism
# Date: Friday 30 September 2016, 08:35 PM
<commit_msg>Add imaginary fence list comprehension<commit_after> | # File: rail_fence_cipher.py
# Purpose: Implement encoding and decoding for the rail fence cipher.
# Programmer: Amal Shehu
# Course: Exercism
# Date: Friday 30 September 2016, 08:35 PM
class Rail():
"""Implementation of Rail Fence Cipher."""
def __init__(self, text, rail_count):
... | # File: rail_fence_cipher.py
# Purpose: Implement encoding and decoding for the rail fence cipher.
# Programmer: Amal Shehu
# Course: Exercism
# Date: Friday 30 September 2016, 08:35 PM
Add imaginary fence list comprehension# File: rail_fence_cipher.py
# Purpose: Implement encoding an... | <commit_before># File: rail_fence_cipher.py
# Purpose: Implement encoding and decoding for the rail fence cipher.
# Programmer: Amal Shehu
# Course: Exercism
# Date: Friday 30 September 2016, 08:35 PM
<commit_msg>Add imaginary fence list comprehension<commit_after># File: rail_fence_ciphe... |
9d2d41f8450f6f3735b8ff9a0041f9bf5d80e5ec | config/template.py | config/template.py | DB_USER = ''
DB_HOST = ''
DB_PASSWORD = ''
DB_NAME = ''
| DB_USER = ''
DB_HOST = ''
DB_PASSWORD = ''
DB_NAME = ''
TWILIO_NUMBERS = ['']
| Allow for representative view display with sample configuration | Allow for representative view display with sample configuration
| Python | mit | PeterTheOne/ueberwachungspaket.at,PeterTheOne/ueberwachungspaket.at,PeterTheOne/ueberwachungspaket.at | DB_USER = ''
DB_HOST = ''
DB_PASSWORD = ''
DB_NAME = ''
Allow for representative view display with sample configuration | DB_USER = ''
DB_HOST = ''
DB_PASSWORD = ''
DB_NAME = ''
TWILIO_NUMBERS = ['']
| <commit_before>DB_USER = ''
DB_HOST = ''
DB_PASSWORD = ''
DB_NAME = ''
<commit_msg>Allow for representative view display with sample configuration<commit_after> | DB_USER = ''
DB_HOST = ''
DB_PASSWORD = ''
DB_NAME = ''
TWILIO_NUMBERS = ['']
| DB_USER = ''
DB_HOST = ''
DB_PASSWORD = ''
DB_NAME = ''
Allow for representative view display with sample configurationDB_USER = ''
DB_HOST = ''
DB_PASSWORD = ''
DB_NAME = ''
TWILIO_NUMBERS = ['']
| <commit_before>DB_USER = ''
DB_HOST = ''
DB_PASSWORD = ''
DB_NAME = ''
<commit_msg>Allow for representative view display with sample configuration<commit_after>DB_USER = ''
DB_HOST = ''
DB_PASSWORD = ''
DB_NAME = ''
TWILIO_NUMBERS = ['']
|
2ee2ab8cc0b9b0fd9776571c1f4b7715d11c2ad6 | src/WhiteLibrary/keywords/items/textbox.py | src/WhiteLibrary/keywords/items/textbox.py | from TestStack.White.UIItems import TextBox
from WhiteLibrary.keywords.librarycomponent import LibraryComponent
from WhiteLibrary.keywords.robotlibcore import keyword
class TextBoxKeywords(LibraryComponent):
@keyword
def input_text_to_textbox(self, locator, input_value):
"""Writes text to a textbox.
... | from TestStack.White.UIItems import TextBox
from WhiteLibrary.keywords.librarycomponent import LibraryComponent
from WhiteLibrary.keywords.robotlibcore import keyword
class TextBoxKeywords(LibraryComponent):
@keyword
def input_text_to_textbox(self, locator, input_value):
"""Writes text to a textbox.
... | Use BulkText instead of Text in input keyword | Use BulkText instead of Text in input keyword
Fixes #164
| Python | apache-2.0 | Omenia/robotframework-whitelibrary,Omenia/robotframework-whitelibrary | from TestStack.White.UIItems import TextBox
from WhiteLibrary.keywords.librarycomponent import LibraryComponent
from WhiteLibrary.keywords.robotlibcore import keyword
class TextBoxKeywords(LibraryComponent):
@keyword
def input_text_to_textbox(self, locator, input_value):
"""Writes text to a textbox.
... | from TestStack.White.UIItems import TextBox
from WhiteLibrary.keywords.librarycomponent import LibraryComponent
from WhiteLibrary.keywords.robotlibcore import keyword
class TextBoxKeywords(LibraryComponent):
@keyword
def input_text_to_textbox(self, locator, input_value):
"""Writes text to a textbox.
... | <commit_before>from TestStack.White.UIItems import TextBox
from WhiteLibrary.keywords.librarycomponent import LibraryComponent
from WhiteLibrary.keywords.robotlibcore import keyword
class TextBoxKeywords(LibraryComponent):
@keyword
def input_text_to_textbox(self, locator, input_value):
"""Writes text ... | from TestStack.White.UIItems import TextBox
from WhiteLibrary.keywords.librarycomponent import LibraryComponent
from WhiteLibrary.keywords.robotlibcore import keyword
class TextBoxKeywords(LibraryComponent):
@keyword
def input_text_to_textbox(self, locator, input_value):
"""Writes text to a textbox.
... | from TestStack.White.UIItems import TextBox
from WhiteLibrary.keywords.librarycomponent import LibraryComponent
from WhiteLibrary.keywords.robotlibcore import keyword
class TextBoxKeywords(LibraryComponent):
@keyword
def input_text_to_textbox(self, locator, input_value):
"""Writes text to a textbox.
... | <commit_before>from TestStack.White.UIItems import TextBox
from WhiteLibrary.keywords.librarycomponent import LibraryComponent
from WhiteLibrary.keywords.robotlibcore import keyword
class TextBoxKeywords(LibraryComponent):
@keyword
def input_text_to_textbox(self, locator, input_value):
"""Writes text ... |
cb461f4422e43058cf12c2605a8a1312ffd79c04 | app/__init__.py | app/__init__.py | import mongoengine
# Open a connection to the MongoDB database, to be shared throughout the
# application.
db = mongoengine.connect('lazy', host='127.0.0.1', port=27017)
| Add shared db connection to the package | Add shared db connection to the package
| Python | mit | Zillolo/lazy-todo | Add shared db connection to the package | import mongoengine
# Open a connection to the MongoDB database, to be shared throughout the
# application.
db = mongoengine.connect('lazy', host='127.0.0.1', port=27017)
| <commit_before><commit_msg>Add shared db connection to the package<commit_after> | import mongoengine
# Open a connection to the MongoDB database, to be shared throughout the
# application.
db = mongoengine.connect('lazy', host='127.0.0.1', port=27017)
| Add shared db connection to the packageimport mongoengine
# Open a connection to the MongoDB database, to be shared throughout the
# application.
db = mongoengine.connect('lazy', host='127.0.0.1', port=27017)
| <commit_before><commit_msg>Add shared db connection to the package<commit_after>import mongoengine
# Open a connection to the MongoDB database, to be shared throughout the
# application.
db = mongoengine.connect('lazy', host='127.0.0.1', port=27017)
| |
426521115d62c664dc9139956f092a92705f7795 | events.py | events.py | class ListenerRegister(object):
def __init__(self):
self._register = {}
def add_listener(self, event, listener):
event = event.upper()
listeners = self._register.get(event, set())
listeners.add(listener)
self._register[event] = listeners
def remove_listener(self, ev... | class ListenerRegister(object):
def __init__(self):
self._register = {}
def add_listener(self, event, listener):
event = event.upper()
listeners = self._register.get(event, set())
listeners.add(listener)
self._register[event] = listeners
def remove_listener(self, ev... | Add an example for event usage | Add an example for event usage
| Python | mit | kashifrazzaqui/again | class ListenerRegister(object):
def __init__(self):
self._register = {}
def add_listener(self, event, listener):
event = event.upper()
listeners = self._register.get(event, set())
listeners.add(listener)
self._register[event] = listeners
def remove_listener(self, ev... | class ListenerRegister(object):
def __init__(self):
self._register = {}
def add_listener(self, event, listener):
event = event.upper()
listeners = self._register.get(event, set())
listeners.add(listener)
self._register[event] = listeners
def remove_listener(self, ev... | <commit_before>class ListenerRegister(object):
def __init__(self):
self._register = {}
def add_listener(self, event, listener):
event = event.upper()
listeners = self._register.get(event, set())
listeners.add(listener)
self._register[event] = listeners
def remove_li... | class ListenerRegister(object):
def __init__(self):
self._register = {}
def add_listener(self, event, listener):
event = event.upper()
listeners = self._register.get(event, set())
listeners.add(listener)
self._register[event] = listeners
def remove_listener(self, ev... | class ListenerRegister(object):
def __init__(self):
self._register = {}
def add_listener(self, event, listener):
event = event.upper()
listeners = self._register.get(event, set())
listeners.add(listener)
self._register[event] = listeners
def remove_listener(self, ev... | <commit_before>class ListenerRegister(object):
def __init__(self):
self._register = {}
def add_listener(self, event, listener):
event = event.upper()
listeners = self._register.get(event, set())
listeners.add(listener)
self._register[event] = listeners
def remove_li... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.