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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a557bae533debc43053294fdb60f774ecb4f2a4e | corehq/blobs/migrations/0003_auto_20161012_1358.py | corehq/blobs/migrations/0003_auto_20161012_1358.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
from corehq.blobs.migrate import assert_migration_complete
from corehq.sql_db.operations import HqRunPython
class Migration(migrations.Migration):
dependencies = [
('blobs', '0002_auto_20151221_1623... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
from corehq.blobs.migrate import assert_migration_complete
from corehq.sql_db.operations import HqRunPython
class Migration(migrations.Migration):
dependencies = [
('blobs', '0002_auto_20151221_1623... | Fix bad syntax in migration | Fix bad syntax in migration | Python | bsd-3-clause | qedsoftware/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
from corehq.blobs.migrate import assert_migration_complete
from corehq.sql_db.operations import HqRunPython
class Migration(migrations.Migration):
dependencies = [
('blobs', '0002_auto_20151221_1623... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
from corehq.blobs.migrate import assert_migration_complete
from corehq.sql_db.operations import HqRunPython
class Migration(migrations.Migration):
dependencies = [
('blobs', '0002_auto_20151221_1623... | <commit_before># -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
from corehq.blobs.migrate import assert_migration_complete
from corehq.sql_db.operations import HqRunPython
class Migration(migrations.Migration):
dependencies = [
('blobs', '0002_aut... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
from corehq.blobs.migrate import assert_migration_complete
from corehq.sql_db.operations import HqRunPython
class Migration(migrations.Migration):
dependencies = [
('blobs', '0002_auto_20151221_1623... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
from corehq.blobs.migrate import assert_migration_complete
from corehq.sql_db.operations import HqRunPython
class Migration(migrations.Migration):
dependencies = [
('blobs', '0002_auto_20151221_1623... | <commit_before># -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
from corehq.blobs.migrate import assert_migration_complete
from corehq.sql_db.operations import HqRunPython
class Migration(migrations.Migration):
dependencies = [
('blobs', '0002_aut... |
f83011c7b5fdb7c1865d04b03e44660851fc8dcd | test/handler_fixture.py | test/handler_fixture.py | import unittest
import tempfile
import shutil
import uuid
import groundstation.node
import groundstation.transfer.response
import groundstation.transfer.request
from groundstation.station import Station
class MockStream(list):
def enqueue(self, *args, **kwargs):
self.append(*args, **kwargs)
def MockTER... | import unittest
import tempfile
import shutil
import uuid
import groundstation.node
import groundstation.transfer.response
import groundstation.transfer.request
from groundstation.station import Station
class MockStream(list):
def enqueue(self, *args, **kwargs):
self.append(*args, **kwargs)
def MockTER... | Implement teardown on Station mock | Implement teardown on Station mock
| Python | mit | richo/groundstation,richo/groundstation,richo/groundstation,richo/groundstation,richo/groundstation | import unittest
import tempfile
import shutil
import uuid
import groundstation.node
import groundstation.transfer.response
import groundstation.transfer.request
from groundstation.station import Station
class MockStream(list):
def enqueue(self, *args, **kwargs):
self.append(*args, **kwargs)
def MockTER... | import unittest
import tempfile
import shutil
import uuid
import groundstation.node
import groundstation.transfer.response
import groundstation.transfer.request
from groundstation.station import Station
class MockStream(list):
def enqueue(self, *args, **kwargs):
self.append(*args, **kwargs)
def MockTER... | <commit_before>import unittest
import tempfile
import shutil
import uuid
import groundstation.node
import groundstation.transfer.response
import groundstation.transfer.request
from groundstation.station import Station
class MockStream(list):
def enqueue(self, *args, **kwargs):
self.append(*args, **kwargs... | import unittest
import tempfile
import shutil
import uuid
import groundstation.node
import groundstation.transfer.response
import groundstation.transfer.request
from groundstation.station import Station
class MockStream(list):
def enqueue(self, *args, **kwargs):
self.append(*args, **kwargs)
def MockTER... | import unittest
import tempfile
import shutil
import uuid
import groundstation.node
import groundstation.transfer.response
import groundstation.transfer.request
from groundstation.station import Station
class MockStream(list):
def enqueue(self, *args, **kwargs):
self.append(*args, **kwargs)
def MockTER... | <commit_before>import unittest
import tempfile
import shutil
import uuid
import groundstation.node
import groundstation.transfer.response
import groundstation.transfer.request
from groundstation.station import Station
class MockStream(list):
def enqueue(self, *args, **kwargs):
self.append(*args, **kwargs... |
d8c0f7cd89ec52d9ad7553a27421c899b3a94417 | dbaas/workflow/workflow.py | dbaas/workflow/workflow.py | # -*- coding: utf-8 -*-
from django.utils.module_loading import import_by_path
from notification.models import TaskHistory
import logging
LOG = logging.getLogger(__name__)
def start_workflow(workflow_dict, task=None):
try :
if not 'steps' in workflow_dict:
return False
workflow_dict['step_counter'] = 0
... | # -*- coding: utf-8 -*-
from django.utils.module_loading import import_by_path
import logging
LOG = logging.getLogger(__name__)
def start_workflow(workflow_dict, task=None):
try:
if not 'steps' in workflow_dict:
return False
workflow_dict['step_counter'] = 0
for step in workf... | Improve logs and refactor to pep8 | Improve logs and refactor to pep8
| Python | bsd-3-clause | globocom/database-as-a-service,globocom/database-as-a-service,globocom/database-as-a-service,globocom/database-as-a-service | # -*- coding: utf-8 -*-
from django.utils.module_loading import import_by_path
from notification.models import TaskHistory
import logging
LOG = logging.getLogger(__name__)
def start_workflow(workflow_dict, task=None):
try :
if not 'steps' in workflow_dict:
return False
workflow_dict['step_counter'] = 0
... | # -*- coding: utf-8 -*-
from django.utils.module_loading import import_by_path
import logging
LOG = logging.getLogger(__name__)
def start_workflow(workflow_dict, task=None):
try:
if not 'steps' in workflow_dict:
return False
workflow_dict['step_counter'] = 0
for step in workf... | <commit_before># -*- coding: utf-8 -*-
from django.utils.module_loading import import_by_path
from notification.models import TaskHistory
import logging
LOG = logging.getLogger(__name__)
def start_workflow(workflow_dict, task=None):
try :
if not 'steps' in workflow_dict:
return False
workflow_dict['step_co... | # -*- coding: utf-8 -*-
from django.utils.module_loading import import_by_path
import logging
LOG = logging.getLogger(__name__)
def start_workflow(workflow_dict, task=None):
try:
if not 'steps' in workflow_dict:
return False
workflow_dict['step_counter'] = 0
for step in workf... | # -*- coding: utf-8 -*-
from django.utils.module_loading import import_by_path
from notification.models import TaskHistory
import logging
LOG = logging.getLogger(__name__)
def start_workflow(workflow_dict, task=None):
try :
if not 'steps' in workflow_dict:
return False
workflow_dict['step_counter'] = 0
... | <commit_before># -*- coding: utf-8 -*-
from django.utils.module_loading import import_by_path
from notification.models import TaskHistory
import logging
LOG = logging.getLogger(__name__)
def start_workflow(workflow_dict, task=None):
try :
if not 'steps' in workflow_dict:
return False
workflow_dict['step_co... |
adc78d6c23b15bc06d16c7365b1875ebe39dc328 | jukebox/scanner.py | jukebox/scanner.py | import os
import zope.interface
import mutagen
import jukebox.song
class IScanner(zope.interface.Interface):
def scan():
"""
Start the scanning process. It is expected to be called at startup and
can block.
"""
def watch():
"""
Starts an async watcher that can... | import os
import zope.interface
import mutagen
import jukebox.song
class IScanner(zope.interface.Interface):
def scan():
"""
Start the scanning process. It is expected to be called at startup and
can block.
"""
def watch():
"""
Starts an async watcher that can... | Support more than on path when building a DirScanner | Support more than on path when building a DirScanner
| Python | mit | armooo/jukebox,armooo/jukebox | import os
import zope.interface
import mutagen
import jukebox.song
class IScanner(zope.interface.Interface):
def scan():
"""
Start the scanning process. It is expected to be called at startup and
can block.
"""
def watch():
"""
Starts an async watcher that can... | import os
import zope.interface
import mutagen
import jukebox.song
class IScanner(zope.interface.Interface):
def scan():
"""
Start the scanning process. It is expected to be called at startup and
can block.
"""
def watch():
"""
Starts an async watcher that can... | <commit_before>import os
import zope.interface
import mutagen
import jukebox.song
class IScanner(zope.interface.Interface):
def scan():
"""
Start the scanning process. It is expected to be called at startup and
can block.
"""
def watch():
"""
Starts an async w... | import os
import zope.interface
import mutagen
import jukebox.song
class IScanner(zope.interface.Interface):
def scan():
"""
Start the scanning process. It is expected to be called at startup and
can block.
"""
def watch():
"""
Starts an async watcher that can... | import os
import zope.interface
import mutagen
import jukebox.song
class IScanner(zope.interface.Interface):
def scan():
"""
Start the scanning process. It is expected to be called at startup and
can block.
"""
def watch():
"""
Starts an async watcher that can... | <commit_before>import os
import zope.interface
import mutagen
import jukebox.song
class IScanner(zope.interface.Interface):
def scan():
"""
Start the scanning process. It is expected to be called at startup and
can block.
"""
def watch():
"""
Starts an async w... |
949f629b349707c2f4caf0a288969b5a6143a730 | kyokai/response.py | kyokai/response.py | """
Module for a Response object.
A Response is returned by Routes when the underlying coroutine is done.
"""
from http_parser.util import IOrderedDict
from .util import HTTP_CODES
class Response(object):
"""
A response is responsible (no pun intended) for delivering data to the client, again.
The meth... | """
Module for a Response object.
A Response is returned by Routes when the underlying coroutine is done.
"""
from http_parser.util import IOrderedDict
from .util import HTTP_CODES
class Response(object):
"""
A response is responsible (no pun intended) for delivering data to the client, again.
The meth... | Add \r\n to the end of each header too | Add \r\n to the end of each header too
| Python | mit | SunDwarf/Kyoukai | """
Module for a Response object.
A Response is returned by Routes when the underlying coroutine is done.
"""
from http_parser.util import IOrderedDict
from .util import HTTP_CODES
class Response(object):
"""
A response is responsible (no pun intended) for delivering data to the client, again.
The meth... | """
Module for a Response object.
A Response is returned by Routes when the underlying coroutine is done.
"""
from http_parser.util import IOrderedDict
from .util import HTTP_CODES
class Response(object):
"""
A response is responsible (no pun intended) for delivering data to the client, again.
The meth... | <commit_before>"""
Module for a Response object.
A Response is returned by Routes when the underlying coroutine is done.
"""
from http_parser.util import IOrderedDict
from .util import HTTP_CODES
class Response(object):
"""
A response is responsible (no pun intended) for delivering data to the client, again... | """
Module for a Response object.
A Response is returned by Routes when the underlying coroutine is done.
"""
from http_parser.util import IOrderedDict
from .util import HTTP_CODES
class Response(object):
"""
A response is responsible (no pun intended) for delivering data to the client, again.
The meth... | """
Module for a Response object.
A Response is returned by Routes when the underlying coroutine is done.
"""
from http_parser.util import IOrderedDict
from .util import HTTP_CODES
class Response(object):
"""
A response is responsible (no pun intended) for delivering data to the client, again.
The meth... | <commit_before>"""
Module for a Response object.
A Response is returned by Routes when the underlying coroutine is done.
"""
from http_parser.util import IOrderedDict
from .util import HTTP_CODES
class Response(object):
"""
A response is responsible (no pun intended) for delivering data to the client, again... |
e08a382e215569b2ad147ea82d7ede1319722724 | configurator/__init__.py | configurator/__init__.py | """Adaptive configuration dialogs.
Attributes:
__version__: The current version string.
"""
import os
import subprocess
def _get_version(version=None): # overwritten by setup.py
if version is None:
pkg_dir = os.path.dirname(__file__)
src_dir = os.path.abspath(os.path.join(pkg_dir, os.pardir... | """Adaptive configuration dialogs.
Attributes:
__version__: The current version string.
"""
import os
import subprocess
def _get_version(version=None): # overwritten by setup.py
if version is None:
pkg_dir = os.path.dirname(__file__)
src_dir = os.path.abspath(os.path.join(pkg_dir, os.pardir... | Use git describe --always in _get_version() | Use git describe --always in _get_version()
Travis CI does a truncated clone and causes 'git describe' to fail if
the version tag is not part of the truncated history.
| Python | apache-2.0 | yasserglez/configurator,yasserglez/configurator | """Adaptive configuration dialogs.
Attributes:
__version__: The current version string.
"""
import os
import subprocess
def _get_version(version=None): # overwritten by setup.py
if version is None:
pkg_dir = os.path.dirname(__file__)
src_dir = os.path.abspath(os.path.join(pkg_dir, os.pardir... | """Adaptive configuration dialogs.
Attributes:
__version__: The current version string.
"""
import os
import subprocess
def _get_version(version=None): # overwritten by setup.py
if version is None:
pkg_dir = os.path.dirname(__file__)
src_dir = os.path.abspath(os.path.join(pkg_dir, os.pardir... | <commit_before>"""Adaptive configuration dialogs.
Attributes:
__version__: The current version string.
"""
import os
import subprocess
def _get_version(version=None): # overwritten by setup.py
if version is None:
pkg_dir = os.path.dirname(__file__)
src_dir = os.path.abspath(os.path.join(pkg... | """Adaptive configuration dialogs.
Attributes:
__version__: The current version string.
"""
import os
import subprocess
def _get_version(version=None): # overwritten by setup.py
if version is None:
pkg_dir = os.path.dirname(__file__)
src_dir = os.path.abspath(os.path.join(pkg_dir, os.pardir... | """Adaptive configuration dialogs.
Attributes:
__version__: The current version string.
"""
import os
import subprocess
def _get_version(version=None): # overwritten by setup.py
if version is None:
pkg_dir = os.path.dirname(__file__)
src_dir = os.path.abspath(os.path.join(pkg_dir, os.pardir... | <commit_before>"""Adaptive configuration dialogs.
Attributes:
__version__: The current version string.
"""
import os
import subprocess
def _get_version(version=None): # overwritten by setup.py
if version is None:
pkg_dir = os.path.dirname(__file__)
src_dir = os.path.abspath(os.path.join(pkg... |
749181ac27583900af94feca848f3039d7c69bcc | app/backend/gwells/views/api.py | app/backend/gwells/views/api.py | from rest_framework.response import Response
from rest_framework.views import APIView
from gwells.settings.base import get_env_variable
class KeycloakConfig(APIView):
""" serves keycloak config """
def get(self, request):
config = {
"realm": get_env_variable("SSO_REALM"),
"au... | from rest_framework.response import Response
from rest_framework.views import APIView
from gwells.settings.base import get_env_variable
class KeycloakConfig(APIView):
""" serves keycloak config """
def get(self, request):
config = {
"realm": get_env_variable("SSO_REALM"),
"au... | Add "idir" as default value. | Add "idir" as default value.
| Python | apache-2.0 | bcgov/gwells,bcgov/gwells,bcgov/gwells,bcgov/gwells | from rest_framework.response import Response
from rest_framework.views import APIView
from gwells.settings.base import get_env_variable
class KeycloakConfig(APIView):
""" serves keycloak config """
def get(self, request):
config = {
"realm": get_env_variable("SSO_REALM"),
"au... | from rest_framework.response import Response
from rest_framework.views import APIView
from gwells.settings.base import get_env_variable
class KeycloakConfig(APIView):
""" serves keycloak config """
def get(self, request):
config = {
"realm": get_env_variable("SSO_REALM"),
"au... | <commit_before>from rest_framework.response import Response
from rest_framework.views import APIView
from gwells.settings.base import get_env_variable
class KeycloakConfig(APIView):
""" serves keycloak config """
def get(self, request):
config = {
"realm": get_env_variable("SSO_REALM"),
... | from rest_framework.response import Response
from rest_framework.views import APIView
from gwells.settings.base import get_env_variable
class KeycloakConfig(APIView):
""" serves keycloak config """
def get(self, request):
config = {
"realm": get_env_variable("SSO_REALM"),
"au... | from rest_framework.response import Response
from rest_framework.views import APIView
from gwells.settings.base import get_env_variable
class KeycloakConfig(APIView):
""" serves keycloak config """
def get(self, request):
config = {
"realm": get_env_variable("SSO_REALM"),
"au... | <commit_before>from rest_framework.response import Response
from rest_framework.views import APIView
from gwells.settings.base import get_env_variable
class KeycloakConfig(APIView):
""" serves keycloak config """
def get(self, request):
config = {
"realm": get_env_variable("SSO_REALM"),
... |
e4564e790dca3079e76540f452836353b902f5b6 | flexbe_core/src/flexbe_core/core/loopback_state.py | flexbe_core/src/flexbe_core/core/loopback_state.py | #!/usr/bin/env python
import rospy
from flexbe_core.core.lockable_state import LockableState
class LoopbackState(LockableState):
"""
A state that can refer back to itself.
It periodically transitions to itself while no other outcome is fulfilled.
"""
_loopback_name = 'loopback'
def __init... | #!/usr/bin/env python
import rospy
from flexbe_core.core.lockable_state import LockableState
class LoopbackState(LockableState):
"""
A state that can refer back to itself.
It periodically transitions to itself while no other outcome is fulfilled.
"""
_loopback_name = 'loopback'
def __init... | Add method to set a custom execute rate for states | [flexbe_core] Add method to set a custom execute rate for states
| Python | bsd-3-clause | team-vigir/flexbe_behavior_engine,team-vigir/flexbe_behavior_engine | #!/usr/bin/env python
import rospy
from flexbe_core.core.lockable_state import LockableState
class LoopbackState(LockableState):
"""
A state that can refer back to itself.
It periodically transitions to itself while no other outcome is fulfilled.
"""
_loopback_name = 'loopback'
def __init... | #!/usr/bin/env python
import rospy
from flexbe_core.core.lockable_state import LockableState
class LoopbackState(LockableState):
"""
A state that can refer back to itself.
It periodically transitions to itself while no other outcome is fulfilled.
"""
_loopback_name = 'loopback'
def __init... | <commit_before>#!/usr/bin/env python
import rospy
from flexbe_core.core.lockable_state import LockableState
class LoopbackState(LockableState):
"""
A state that can refer back to itself.
It periodically transitions to itself while no other outcome is fulfilled.
"""
_loopback_name = 'loopback'... | #!/usr/bin/env python
import rospy
from flexbe_core.core.lockable_state import LockableState
class LoopbackState(LockableState):
"""
A state that can refer back to itself.
It periodically transitions to itself while no other outcome is fulfilled.
"""
_loopback_name = 'loopback'
def __init... | #!/usr/bin/env python
import rospy
from flexbe_core.core.lockable_state import LockableState
class LoopbackState(LockableState):
"""
A state that can refer back to itself.
It periodically transitions to itself while no other outcome is fulfilled.
"""
_loopback_name = 'loopback'
def __init... | <commit_before>#!/usr/bin/env python
import rospy
from flexbe_core.core.lockable_state import LockableState
class LoopbackState(LockableState):
"""
A state that can refer back to itself.
It periodically transitions to itself while no other outcome is fulfilled.
"""
_loopback_name = 'loopback'... |
f1fedff9247b78120df7335b64cdf46c8f60ef03 | test/test_fixtures.py | test/test_fixtures.py | import pytest
from tornado import gen
_used_fixture = False
@gen.coroutine
def dummy(io_loop):
yield gen.Task(io_loop.add_callback)
raise gen.Return(True)
@pytest.fixture(scope='module')
def preparations():
global _used_fixture
_used_fixture = True
pytestmark = pytest.mark.usefixtures('preparatio... | import pytest
from tornado import gen
_used_fixture = False
@gen.coroutine
def dummy(io_loop):
yield gen.Task(io_loop.add_callback)
raise gen.Return(True)
@pytest.fixture(scope='module')
def preparations():
global _used_fixture
_used_fixture = True
pytestmark = pytest.mark.usefixtures('preparatio... | Add some test for method signature inspection | Add some test for method signature inspection
| Python | apache-2.0 | eugeniy/pytest-tornado | import pytest
from tornado import gen
_used_fixture = False
@gen.coroutine
def dummy(io_loop):
yield gen.Task(io_loop.add_callback)
raise gen.Return(True)
@pytest.fixture(scope='module')
def preparations():
global _used_fixture
_used_fixture = True
pytestmark = pytest.mark.usefixtures('preparatio... | import pytest
from tornado import gen
_used_fixture = False
@gen.coroutine
def dummy(io_loop):
yield gen.Task(io_loop.add_callback)
raise gen.Return(True)
@pytest.fixture(scope='module')
def preparations():
global _used_fixture
_used_fixture = True
pytestmark = pytest.mark.usefixtures('preparatio... | <commit_before>import pytest
from tornado import gen
_used_fixture = False
@gen.coroutine
def dummy(io_loop):
yield gen.Task(io_loop.add_callback)
raise gen.Return(True)
@pytest.fixture(scope='module')
def preparations():
global _used_fixture
_used_fixture = True
pytestmark = pytest.mark.usefixtu... | import pytest
from tornado import gen
_used_fixture = False
@gen.coroutine
def dummy(io_loop):
yield gen.Task(io_loop.add_callback)
raise gen.Return(True)
@pytest.fixture(scope='module')
def preparations():
global _used_fixture
_used_fixture = True
pytestmark = pytest.mark.usefixtures('preparatio... | import pytest
from tornado import gen
_used_fixture = False
@gen.coroutine
def dummy(io_loop):
yield gen.Task(io_loop.add_callback)
raise gen.Return(True)
@pytest.fixture(scope='module')
def preparations():
global _used_fixture
_used_fixture = True
pytestmark = pytest.mark.usefixtures('preparatio... | <commit_before>import pytest
from tornado import gen
_used_fixture = False
@gen.coroutine
def dummy(io_loop):
yield gen.Task(io_loop.add_callback)
raise gen.Return(True)
@pytest.fixture(scope='module')
def preparations():
global _used_fixture
_used_fixture = True
pytestmark = pytest.mark.usefixtu... |
03e864845d0b06cfa4b6cec1adf9b08152a49f0b | forms_builder/example_project/manage.py | forms_builder/example_project/manage.py | #!/usr/bin/env python
from django.core.management import execute_manager
import imp
try:
imp.find_module('settings') # Assumed to be in the same directory.
except ImportError:
import sys
sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized t... | #!/usr/bin/env python
import sys
import os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '../..'))
from django.core.management import execute_manager
import imp
try:
imp.find_module('settings') # Assumed to be in the same directory.
except ImportError:
import sys
sys.stderr.write("Error: Can'... | Allow tests to be run from example_project | Allow tests to be run from example_project
| Python | bsd-2-clause | iddqd1/django-forms-builder,ixc/django-forms-builder,frontendr/django-forms-builder,vinnyrose/django-forms-builder,GetHappie/django-forms-builder,Afnarel/django-forms-builder,JostCrow/django-forms-builder,GetHappie/django-forms-builder,nimbis/django-forms-builder,Afnarel/django-forms-builder,simas/django-forms-builder,... | #!/usr/bin/env python
from django.core.management import execute_manager
import imp
try:
imp.find_module('settings') # Assumed to be in the same directory.
except ImportError:
import sys
sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized t... | #!/usr/bin/env python
import sys
import os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '../..'))
from django.core.management import execute_manager
import imp
try:
imp.find_module('settings') # Assumed to be in the same directory.
except ImportError:
import sys
sys.stderr.write("Error: Can'... | <commit_before>#!/usr/bin/env python
from django.core.management import execute_manager
import imp
try:
imp.find_module('settings') # Assumed to be in the same directory.
except ImportError:
import sys
sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you'... | #!/usr/bin/env python
import sys
import os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '../..'))
from django.core.management import execute_manager
import imp
try:
imp.find_module('settings') # Assumed to be in the same directory.
except ImportError:
import sys
sys.stderr.write("Error: Can'... | #!/usr/bin/env python
from django.core.management import execute_manager
import imp
try:
imp.find_module('settings') # Assumed to be in the same directory.
except ImportError:
import sys
sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized t... | <commit_before>#!/usr/bin/env python
from django.core.management import execute_manager
import imp
try:
imp.find_module('settings') # Assumed to be in the same directory.
except ImportError:
import sys
sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you'... |
3e9a90890f122090be027a3af3d6cbd8a713963c | test/test_issue655.py | test/test_issue655.py | from rdflib import Graph, Namespace, URIRef, Literal
from rdflib.compare import to_isomorphic
import unittest
class TestIssue655(unittest.TestCase):
def test_issue655(self):
PROV = Namespace('http://www.w3.org/ns/prov#')
bob = URIRef("http://example.org/object/Bob")
value = Literal(float... | from rdflib import Graph, Namespace, URIRef, Literal
from rdflib.compare import to_isomorphic
import unittest
class TestIssue655(unittest.TestCase):
def test_issue655(self):
PROV = Namespace('http://www.w3.org/ns/prov#')
bob = URIRef("http://example.org/object/Bob")
value = Literal(float... | Add tests requested by @joernhees | Add tests requested by @joernhees
| Python | bsd-3-clause | RDFLib/rdflib,RDFLib/rdflib,RDFLib/rdflib,RDFLib/rdflib | from rdflib import Graph, Namespace, URIRef, Literal
from rdflib.compare import to_isomorphic
import unittest
class TestIssue655(unittest.TestCase):
def test_issue655(self):
PROV = Namespace('http://www.w3.org/ns/prov#')
bob = URIRef("http://example.org/object/Bob")
value = Literal(float... | from rdflib import Graph, Namespace, URIRef, Literal
from rdflib.compare import to_isomorphic
import unittest
class TestIssue655(unittest.TestCase):
def test_issue655(self):
PROV = Namespace('http://www.w3.org/ns/prov#')
bob = URIRef("http://example.org/object/Bob")
value = Literal(float... | <commit_before>from rdflib import Graph, Namespace, URIRef, Literal
from rdflib.compare import to_isomorphic
import unittest
class TestIssue655(unittest.TestCase):
def test_issue655(self):
PROV = Namespace('http://www.w3.org/ns/prov#')
bob = URIRef("http://example.org/object/Bob")
value ... | from rdflib import Graph, Namespace, URIRef, Literal
from rdflib.compare import to_isomorphic
import unittest
class TestIssue655(unittest.TestCase):
def test_issue655(self):
PROV = Namespace('http://www.w3.org/ns/prov#')
bob = URIRef("http://example.org/object/Bob")
value = Literal(float... | from rdflib import Graph, Namespace, URIRef, Literal
from rdflib.compare import to_isomorphic
import unittest
class TestIssue655(unittest.TestCase):
def test_issue655(self):
PROV = Namespace('http://www.w3.org/ns/prov#')
bob = URIRef("http://example.org/object/Bob")
value = Literal(float... | <commit_before>from rdflib import Graph, Namespace, URIRef, Literal
from rdflib.compare import to_isomorphic
import unittest
class TestIssue655(unittest.TestCase):
def test_issue655(self):
PROV = Namespace('http://www.w3.org/ns/prov#')
bob = URIRef("http://example.org/object/Bob")
value ... |
a66f0227946984702fe6247f64b65152774c5d06 | test/test_packages.py | test/test_packages.py | import pytest
@pytest.mark.parametrize("name", [
("bash-completion"),
("bind-utils"),
("bridge-utils"),
("docker"),
("epel-release"),
("git"),
("iptables-services"),
("libnfsidmap"),
("net-tools"),
("nfs-utils"),
("pyOpenSSL"),
("screen"),
("strace"),
("tcpdump"),
("wget"),
])
def test_p... | import pytest
@pytest.mark.parametrize("name", [
("bash-completion"),
("bind-utils"),
("bridge-utils"),
("docker"),
("epel-release"),
("git"),
("iptables-services"),
("libnfsidmap"),
("net-tools"),
("nfs-utils"),
("pyOpenSSL"),
("screen"),
("strace"),
("tcpdump"),
("wget"),
])
def test_p... | Rework based on examples in docs | Rework based on examples in docs
| Python | mit | wicksy/vagrant-openshift,wicksy/vagrant-openshift,wicksy/vagrant-openshift | import pytest
@pytest.mark.parametrize("name", [
("bash-completion"),
("bind-utils"),
("bridge-utils"),
("docker"),
("epel-release"),
("git"),
("iptables-services"),
("libnfsidmap"),
("net-tools"),
("nfs-utils"),
("pyOpenSSL"),
("screen"),
("strace"),
("tcpdump"),
("wget"),
])
def test_p... | import pytest
@pytest.mark.parametrize("name", [
("bash-completion"),
("bind-utils"),
("bridge-utils"),
("docker"),
("epel-release"),
("git"),
("iptables-services"),
("libnfsidmap"),
("net-tools"),
("nfs-utils"),
("pyOpenSSL"),
("screen"),
("strace"),
("tcpdump"),
("wget"),
])
def test_p... | <commit_before>import pytest
@pytest.mark.parametrize("name", [
("bash-completion"),
("bind-utils"),
("bridge-utils"),
("docker"),
("epel-release"),
("git"),
("iptables-services"),
("libnfsidmap"),
("net-tools"),
("nfs-utils"),
("pyOpenSSL"),
("screen"),
("strace"),
("tcpdump"),
("wget"),... | import pytest
@pytest.mark.parametrize("name", [
("bash-completion"),
("bind-utils"),
("bridge-utils"),
("docker"),
("epel-release"),
("git"),
("iptables-services"),
("libnfsidmap"),
("net-tools"),
("nfs-utils"),
("pyOpenSSL"),
("screen"),
("strace"),
("tcpdump"),
("wget"),
])
def test_p... | import pytest
@pytest.mark.parametrize("name", [
("bash-completion"),
("bind-utils"),
("bridge-utils"),
("docker"),
("epel-release"),
("git"),
("iptables-services"),
("libnfsidmap"),
("net-tools"),
("nfs-utils"),
("pyOpenSSL"),
("screen"),
("strace"),
("tcpdump"),
("wget"),
])
def test_p... | <commit_before>import pytest
@pytest.mark.parametrize("name", [
("bash-completion"),
("bind-utils"),
("bridge-utils"),
("docker"),
("epel-release"),
("git"),
("iptables-services"),
("libnfsidmap"),
("net-tools"),
("nfs-utils"),
("pyOpenSSL"),
("screen"),
("strace"),
("tcpdump"),
("wget"),... |
e6d483c867687188ad89dae9ea00b0d651598605 | tw_begins.py | tw_begins.py | #!/usr/bin/env python
import begin
import twitterlib
@begin.subcommand
def timeline():
"Display recent tweets from users timeline"
for status in begin.context.api.timeline:
print u"%s: %s" % (status.user.screen_name, status.text)
@begin.subcommand
def mentions():
"Display recent tweets mentionin... | #!/usr/bin/env python
import begin
import twitterlib
@begin.subcommand
def timeline():
"Display recent tweets from users timeline"
for status in begin.context.api.timeline:
print u"%s: %s" % (status.user.screen_name, status.text)
@begin.subcommand
def mentions():
"Display recent tweets mentionin... | Use only long form arguments | Use only long form arguments
Do not use any short (single character) arguments for command line
options.
| Python | mit | aliles/cmdline_examples | #!/usr/bin/env python
import begin
import twitterlib
@begin.subcommand
def timeline():
"Display recent tweets from users timeline"
for status in begin.context.api.timeline:
print u"%s: %s" % (status.user.screen_name, status.text)
@begin.subcommand
def mentions():
"Display recent tweets mentionin... | #!/usr/bin/env python
import begin
import twitterlib
@begin.subcommand
def timeline():
"Display recent tweets from users timeline"
for status in begin.context.api.timeline:
print u"%s: %s" % (status.user.screen_name, status.text)
@begin.subcommand
def mentions():
"Display recent tweets mentionin... | <commit_before>#!/usr/bin/env python
import begin
import twitterlib
@begin.subcommand
def timeline():
"Display recent tweets from users timeline"
for status in begin.context.api.timeline:
print u"%s: %s" % (status.user.screen_name, status.text)
@begin.subcommand
def mentions():
"Display recent t... | #!/usr/bin/env python
import begin
import twitterlib
@begin.subcommand
def timeline():
"Display recent tweets from users timeline"
for status in begin.context.api.timeline:
print u"%s: %s" % (status.user.screen_name, status.text)
@begin.subcommand
def mentions():
"Display recent tweets mentionin... | #!/usr/bin/env python
import begin
import twitterlib
@begin.subcommand
def timeline():
"Display recent tweets from users timeline"
for status in begin.context.api.timeline:
print u"%s: %s" % (status.user.screen_name, status.text)
@begin.subcommand
def mentions():
"Display recent tweets mentionin... | <commit_before>#!/usr/bin/env python
import begin
import twitterlib
@begin.subcommand
def timeline():
"Display recent tweets from users timeline"
for status in begin.context.api.timeline:
print u"%s: %s" % (status.user.screen_name, status.text)
@begin.subcommand
def mentions():
"Display recent t... |
21beae1231d0d721565015bb9eba6925ad5d9fd4 | linter.py | linter.py | from SublimeLinter.lint import PythonLinter
import re
class Pyflakes(PythonLinter):
cmd = 'pyflakes'
regex = r'''(?x)
^(?P<filename>[^:\n]+):(?P<line>\d+):((?P<col>\d+):)?\s
# The rest of the line is the error message.
# Within that, capture anything within single quotes as `near`.
... | from SublimeLinter.lint import PythonLinter
import re
class Pyflakes(PythonLinter):
cmd = 'pyflakes'
regex = r'''(?x)
^(?P<filename>.+):(?P<line>\d+):((?P<col>\d+):?)?\s
# The rest of the line is the error message.
# Within that, capture anything within single quotes as `near`.
... | Fix regex for pyflakes output format since `2.2.0` | Fix regex for pyflakes output format since `2.2.0`
| Python | mit | SublimeLinter/SublimeLinter-pyflakes | from SublimeLinter.lint import PythonLinter
import re
class Pyflakes(PythonLinter):
cmd = 'pyflakes'
regex = r'''(?x)
^(?P<filename>[^:\n]+):(?P<line>\d+):((?P<col>\d+):)?\s
# The rest of the line is the error message.
# Within that, capture anything within single quotes as `near`.
... | from SublimeLinter.lint import PythonLinter
import re
class Pyflakes(PythonLinter):
cmd = 'pyflakes'
regex = r'''(?x)
^(?P<filename>.+):(?P<line>\d+):((?P<col>\d+):?)?\s
# The rest of the line is the error message.
# Within that, capture anything within single quotes as `near`.
... | <commit_before>from SublimeLinter.lint import PythonLinter
import re
class Pyflakes(PythonLinter):
cmd = 'pyflakes'
regex = r'''(?x)
^(?P<filename>[^:\n]+):(?P<line>\d+):((?P<col>\d+):)?\s
# The rest of the line is the error message.
# Within that, capture anything within single quote... | from SublimeLinter.lint import PythonLinter
import re
class Pyflakes(PythonLinter):
cmd = 'pyflakes'
regex = r'''(?x)
^(?P<filename>.+):(?P<line>\d+):((?P<col>\d+):?)?\s
# The rest of the line is the error message.
# Within that, capture anything within single quotes as `near`.
... | from SublimeLinter.lint import PythonLinter
import re
class Pyflakes(PythonLinter):
cmd = 'pyflakes'
regex = r'''(?x)
^(?P<filename>[^:\n]+):(?P<line>\d+):((?P<col>\d+):)?\s
# The rest of the line is the error message.
# Within that, capture anything within single quotes as `near`.
... | <commit_before>from SublimeLinter.lint import PythonLinter
import re
class Pyflakes(PythonLinter):
cmd = 'pyflakes'
regex = r'''(?x)
^(?P<filename>[^:\n]+):(?P<line>\d+):((?P<col>\d+):)?\s
# The rest of the line is the error message.
# Within that, capture anything within single quote... |
2ac4bca0db8609bc92c9de8b1c272b2a607f6c15 | tests/resource_tests.py | tests/resource_tests.py | #
# Project: retdec-python
# Copyright: (c) 2015 by Petr Zemek <s3rvac@gmail.com> and contributors
# License: MIT, see the LICENSE file for more details
#
"""Tests for the :mod:`retdec.resource` module."""
import unittest
from unittest import mock
from retdec.conn import APIConnection
from retdec.resource import... | #
# Project: retdec-python
# Copyright: (c) 2015 by Petr Zemek <s3rvac@gmail.com> and contributors
# License: MIT, see the LICENSE file for more details
#
"""Tests for the :mod:`retdec.resource` module."""
import unittest
from unittest import mock
from retdec.conn import APIConnection
from retdec.resource import... | Move tests for Resource.wait_until_finished() into a separate class. | Move tests for Resource.wait_until_finished() into a separate class.
| Python | mit | s3rvac/retdec-python | #
# Project: retdec-python
# Copyright: (c) 2015 by Petr Zemek <s3rvac@gmail.com> and contributors
# License: MIT, see the LICENSE file for more details
#
"""Tests for the :mod:`retdec.resource` module."""
import unittest
from unittest import mock
from retdec.conn import APIConnection
from retdec.resource import... | #
# Project: retdec-python
# Copyright: (c) 2015 by Petr Zemek <s3rvac@gmail.com> and contributors
# License: MIT, see the LICENSE file for more details
#
"""Tests for the :mod:`retdec.resource` module."""
import unittest
from unittest import mock
from retdec.conn import APIConnection
from retdec.resource import... | <commit_before>#
# Project: retdec-python
# Copyright: (c) 2015 by Petr Zemek <s3rvac@gmail.com> and contributors
# License: MIT, see the LICENSE file for more details
#
"""Tests for the :mod:`retdec.resource` module."""
import unittest
from unittest import mock
from retdec.conn import APIConnection
from retdec.... | #
# Project: retdec-python
# Copyright: (c) 2015 by Petr Zemek <s3rvac@gmail.com> and contributors
# License: MIT, see the LICENSE file for more details
#
"""Tests for the :mod:`retdec.resource` module."""
import unittest
from unittest import mock
from retdec.conn import APIConnection
from retdec.resource import... | #
# Project: retdec-python
# Copyright: (c) 2015 by Petr Zemek <s3rvac@gmail.com> and contributors
# License: MIT, see the LICENSE file for more details
#
"""Tests for the :mod:`retdec.resource` module."""
import unittest
from unittest import mock
from retdec.conn import APIConnection
from retdec.resource import... | <commit_before>#
# Project: retdec-python
# Copyright: (c) 2015 by Petr Zemek <s3rvac@gmail.com> and contributors
# License: MIT, see the LICENSE file for more details
#
"""Tests for the :mod:`retdec.resource` module."""
import unittest
from unittest import mock
from retdec.conn import APIConnection
from retdec.... |
95eb2c11a4f35e594eda25c10bdf85a25b2f4392 | src/ConfigLoader.py | src/ConfigLoader.py | import json
import sys
def load_config_file(out=sys.stdout):
default_filepath = "../resources/config/default-config.json"
user_filepath = "../resources/config/user-config.json"
try:
default_json = read_json(default_filepath)
user_json = read_json(user_filepath)
for property in use... | import json
import sys
def load_config_file(out=sys.stdout):
if sys.argv[0].endswith('nosetests'):
default_filepath = "./resources/config/default-config.json"
user_filepath = "./resources/config/user-config.json"
else:
default_filepath = "../resources/config/default-config.json"
... | Fix nosetests for config file loading | Fix nosetests for config file loading
| Python | bsd-3-clause | sky-uk/bslint | import json
import sys
def load_config_file(out=sys.stdout):
default_filepath = "../resources/config/default-config.json"
user_filepath = "../resources/config/user-config.json"
try:
default_json = read_json(default_filepath)
user_json = read_json(user_filepath)
for property in use... | import json
import sys
def load_config_file(out=sys.stdout):
if sys.argv[0].endswith('nosetests'):
default_filepath = "./resources/config/default-config.json"
user_filepath = "./resources/config/user-config.json"
else:
default_filepath = "../resources/config/default-config.json"
... | <commit_before>import json
import sys
def load_config_file(out=sys.stdout):
default_filepath = "../resources/config/default-config.json"
user_filepath = "../resources/config/user-config.json"
try:
default_json = read_json(default_filepath)
user_json = read_json(user_filepath)
for ... | import json
import sys
def load_config_file(out=sys.stdout):
if sys.argv[0].endswith('nosetests'):
default_filepath = "./resources/config/default-config.json"
user_filepath = "./resources/config/user-config.json"
else:
default_filepath = "../resources/config/default-config.json"
... | import json
import sys
def load_config_file(out=sys.stdout):
default_filepath = "../resources/config/default-config.json"
user_filepath = "../resources/config/user-config.json"
try:
default_json = read_json(default_filepath)
user_json = read_json(user_filepath)
for property in use... | <commit_before>import json
import sys
def load_config_file(out=sys.stdout):
default_filepath = "../resources/config/default-config.json"
user_filepath = "../resources/config/user-config.json"
try:
default_json = read_json(default_filepath)
user_json = read_json(user_filepath)
for ... |
7d8283b2d233a8fbee97de122f0b4ba293cf788d | app/emails.py | app/emails.py | # -*- coding: utf-8 -*-
from flask import render_template,g
from flask.ext.mail import Message
from app import mail, db
from .models import User
from config import MAIL_SENDER
# Wrapper function for sending mails using flask-mail plugin
def send_email(subject, sender, recipients, text_body):
msg = Message(subject... | # -*- coding: utf-8 -*-
from flask import render_template,g
from flask.ext.mail import Message
from app import mail, db
from .models import User
from config import MAIL_SENDER
from threading import Thread
from app import app
# Send mail into a dedicated thread in order to avoir the web app to wait
def send_async_emai... | Send email notifications in asynchronous mode | Send email notifications in asynchronous mode
Each mail notification is done on a thread in order to not block the main thread
of the web app.
| Python | mit | ptitoliv/cineapp,ptitoliv/cineapp,ptitoliv/cineapp | # -*- coding: utf-8 -*-
from flask import render_template,g
from flask.ext.mail import Message
from app import mail, db
from .models import User
from config import MAIL_SENDER
# Wrapper function for sending mails using flask-mail plugin
def send_email(subject, sender, recipients, text_body):
msg = Message(subject... | # -*- coding: utf-8 -*-
from flask import render_template,g
from flask.ext.mail import Message
from app import mail, db
from .models import User
from config import MAIL_SENDER
from threading import Thread
from app import app
# Send mail into a dedicated thread in order to avoir the web app to wait
def send_async_emai... | <commit_before># -*- coding: utf-8 -*-
from flask import render_template,g
from flask.ext.mail import Message
from app import mail, db
from .models import User
from config import MAIL_SENDER
# Wrapper function for sending mails using flask-mail plugin
def send_email(subject, sender, recipients, text_body):
msg = ... | # -*- coding: utf-8 -*-
from flask import render_template,g
from flask.ext.mail import Message
from app import mail, db
from .models import User
from config import MAIL_SENDER
from threading import Thread
from app import app
# Send mail into a dedicated thread in order to avoir the web app to wait
def send_async_emai... | # -*- coding: utf-8 -*-
from flask import render_template,g
from flask.ext.mail import Message
from app import mail, db
from .models import User
from config import MAIL_SENDER
# Wrapper function for sending mails using flask-mail plugin
def send_email(subject, sender, recipients, text_body):
msg = Message(subject... | <commit_before># -*- coding: utf-8 -*-
from flask import render_template,g
from flask.ext.mail import Message
from app import mail, db
from .models import User
from config import MAIL_SENDER
# Wrapper function for sending mails using flask-mail plugin
def send_email(subject, sender, recipients, text_body):
msg = ... |
57db4140237b79cc8b6958ac503bc087f57ddad2 | ibmcnx/doc/DataSources.py | ibmcnx/doc/DataSources.py | ######
# Check ExId (GUID) by Email through JDBC
#
# Author: Christoph Stoettner
# Mail: christoph.stoettner@stoeps.de
# Documentation: http://scripting101.stoeps.de
#
# Version: 2.0
# Date: 2014-06-04
#
# License: Apache 2.0
#
# Check ExId of a User in all Connections Appli... | ######
# Check ExId (GUID) by Email through JDBC
#
# Author: Christoph Stoettner
# Mail: christoph.stoettner@stoeps.de
# Documentation: http://scripting101.stoeps.de
#
# Version: 2.0
# Date: 2014-06-04
#
# License: Apache 2.0
#
# Check ExId of a User in all Connections Appli... | Create script to save documentation to a file | 4: Create script to save documentation to a file
Task-Url: http://github.com/stoeps13/ibmcnx2/issues/issue/4 | Python | apache-2.0 | stoeps13/ibmcnx2,stoeps13/ibmcnx2 | ######
# Check ExId (GUID) by Email through JDBC
#
# Author: Christoph Stoettner
# Mail: christoph.stoettner@stoeps.de
# Documentation: http://scripting101.stoeps.de
#
# Version: 2.0
# Date: 2014-06-04
#
# License: Apache 2.0
#
# Check ExId of a User in all Connections Appli... | ######
# Check ExId (GUID) by Email through JDBC
#
# Author: Christoph Stoettner
# Mail: christoph.stoettner@stoeps.de
# Documentation: http://scripting101.stoeps.de
#
# Version: 2.0
# Date: 2014-06-04
#
# License: Apache 2.0
#
# Check ExId of a User in all Connections Appli... | <commit_before>######
# Check ExId (GUID) by Email through JDBC
#
# Author: Christoph Stoettner
# Mail: christoph.stoettner@stoeps.de
# Documentation: http://scripting101.stoeps.de
#
# Version: 2.0
# Date: 2014-06-04
#
# License: Apache 2.0
#
# Check ExId of a User in all Co... | ######
# Check ExId (GUID) by Email through JDBC
#
# Author: Christoph Stoettner
# Mail: christoph.stoettner@stoeps.de
# Documentation: http://scripting101.stoeps.de
#
# Version: 2.0
# Date: 2014-06-04
#
# License: Apache 2.0
#
# Check ExId of a User in all Connections Appli... | ######
# Check ExId (GUID) by Email through JDBC
#
# Author: Christoph Stoettner
# Mail: christoph.stoettner@stoeps.de
# Documentation: http://scripting101.stoeps.de
#
# Version: 2.0
# Date: 2014-06-04
#
# License: Apache 2.0
#
# Check ExId of a User in all Connections Appli... | <commit_before>######
# Check ExId (GUID) by Email through JDBC
#
# Author: Christoph Stoettner
# Mail: christoph.stoettner@stoeps.de
# Documentation: http://scripting101.stoeps.de
#
# Version: 2.0
# Date: 2014-06-04
#
# License: Apache 2.0
#
# Check ExId of a User in all Co... |
30e1e82573437cfaf8b75ec9f42c520a5f4f60d5 | ibmcnx/doc/DataSources.py | ibmcnx/doc/DataSources.py | ######
# Check ExId (GUID) by Email through JDBC
#
# Author: Christoph Stoettner
# Mail: christoph.stoettner@stoeps.de
# Documentation: http://scripting101.stoeps.de
#
# Version: 2.0
# Date: 2014-06-04
#
# License: Apache 2.0
#
# Check ExId of a User in all Connections Appli... | ######
# Check ExId (GUID) by Email through JDBC
#
# Author: Christoph Stoettner
# Mail: christoph.stoettner@stoeps.de
# Documentation: http://scripting101.stoeps.de
#
# Version: 2.0
# Date: 2014-06-04
#
# License: Apache 2.0
#
# Check ExId of a User in all Connections Appli... | Create documentation of DataSource Settings | 8: Create documentation of DataSource Settings
Task-Url: http://github.com/stoeps13/ibmcnx2/issues/issue/8 | Python | apache-2.0 | stoeps13/ibmcnx2,stoeps13/ibmcnx2 | ######
# Check ExId (GUID) by Email through JDBC
#
# Author: Christoph Stoettner
# Mail: christoph.stoettner@stoeps.de
# Documentation: http://scripting101.stoeps.de
#
# Version: 2.0
# Date: 2014-06-04
#
# License: Apache 2.0
#
# Check ExId of a User in all Connections Appli... | ######
# Check ExId (GUID) by Email through JDBC
#
# Author: Christoph Stoettner
# Mail: christoph.stoettner@stoeps.de
# Documentation: http://scripting101.stoeps.de
#
# Version: 2.0
# Date: 2014-06-04
#
# License: Apache 2.0
#
# Check ExId of a User in all Connections Appli... | <commit_before>######
# Check ExId (GUID) by Email through JDBC
#
# Author: Christoph Stoettner
# Mail: christoph.stoettner@stoeps.de
# Documentation: http://scripting101.stoeps.de
#
# Version: 2.0
# Date: 2014-06-04
#
# License: Apache 2.0
#
# Check ExId of a User in all Co... | ######
# Check ExId (GUID) by Email through JDBC
#
# Author: Christoph Stoettner
# Mail: christoph.stoettner@stoeps.de
# Documentation: http://scripting101.stoeps.de
#
# Version: 2.0
# Date: 2014-06-04
#
# License: Apache 2.0
#
# Check ExId of a User in all Connections Appli... | ######
# Check ExId (GUID) by Email through JDBC
#
# Author: Christoph Stoettner
# Mail: christoph.stoettner@stoeps.de
# Documentation: http://scripting101.stoeps.de
#
# Version: 2.0
# Date: 2014-06-04
#
# License: Apache 2.0
#
# Check ExId of a User in all Connections Appli... | <commit_before>######
# Check ExId (GUID) by Email through JDBC
#
# Author: Christoph Stoettner
# Mail: christoph.stoettner@stoeps.de
# Documentation: http://scripting101.stoeps.de
#
# Version: 2.0
# Date: 2014-06-04
#
# License: Apache 2.0
#
# Check ExId of a User in all Co... |
4d2a2b3e5b9f734e688c104845d33b90dda2c159 | commands/say.py | commands/say.py | from CommandTemplate import CommandTemplate
class Command(CommandTemplate):
triggers = ['say']
helptext = "Makes the bot say the provided text in the provided channel (format 'say [channel/user] text')"
adminOnly = True
showInCommandList = False
def execute(self, bot, user, target, triggerInMsg, msg, msgWithout... | from CommandTemplate import CommandTemplate
class Command(CommandTemplate):
triggers = ['say']
helptext = "Makes the bot say the provided text in the provided channel (format 'say [channel/user] text')"
adminOnly = True
showInCommandList = False
def execute(self, bot, user, target, triggerInMsg, msg, msgWithout... | Add a check to see if the bot's in the channel the message should go to | Add a check to see if the bot's in the channel the message should go to
| Python | mit | Didero/DideRobot | from CommandTemplate import CommandTemplate
class Command(CommandTemplate):
triggers = ['say']
helptext = "Makes the bot say the provided text in the provided channel (format 'say [channel/user] text')"
adminOnly = True
showInCommandList = False
def execute(self, bot, user, target, triggerInMsg, msg, msgWithout... | from CommandTemplate import CommandTemplate
class Command(CommandTemplate):
triggers = ['say']
helptext = "Makes the bot say the provided text in the provided channel (format 'say [channel/user] text')"
adminOnly = True
showInCommandList = False
def execute(self, bot, user, target, triggerInMsg, msg, msgWithout... | <commit_before>from CommandTemplate import CommandTemplate
class Command(CommandTemplate):
triggers = ['say']
helptext = "Makes the bot say the provided text in the provided channel (format 'say [channel/user] text')"
adminOnly = True
showInCommandList = False
def execute(self, bot, user, target, triggerInMsg, ... | from CommandTemplate import CommandTemplate
class Command(CommandTemplate):
triggers = ['say']
helptext = "Makes the bot say the provided text in the provided channel (format 'say [channel/user] text')"
adminOnly = True
showInCommandList = False
def execute(self, bot, user, target, triggerInMsg, msg, msgWithout... | from CommandTemplate import CommandTemplate
class Command(CommandTemplate):
triggers = ['say']
helptext = "Makes the bot say the provided text in the provided channel (format 'say [channel/user] text')"
adminOnly = True
showInCommandList = False
def execute(self, bot, user, target, triggerInMsg, msg, msgWithout... | <commit_before>from CommandTemplate import CommandTemplate
class Command(CommandTemplate):
triggers = ['say']
helptext = "Makes the bot say the provided text in the provided channel (format 'say [channel/user] text')"
adminOnly = True
showInCommandList = False
def execute(self, bot, user, target, triggerInMsg, ... |
3d29ca66f17bcf5dcc72f9fe12a83c4949066a8b | linter.py | linter.py | from SublimeLinter.lint import PythonLinter
import re
class Pyflakes(PythonLinter):
cmd = 'pyflakes'
regex = r'''(?x)
^(?P<filename>.+):(?P<line>\d+):((?P<col>\d+):?)?\s
# The rest of the line is the error message.
# Within that, capture anything within single quotes as `near`.
... | from SublimeLinter.lint import PythonLinter
import re
class Pyflakes(PythonLinter):
cmd = 'pyflakes'
regex = r'''(?x)
^(?P<filename>.+?):(?P<line>\d+):((?P<col>\d+):?)?\s
# The rest of the line is the error message.
# Within that, capture anything within single quotes as `near`.
... | Fix regex as the `:` after the column is optional | Fix regex as the `:` after the column is optional
Fixes SublimeLinter/SublimeLinter#1847
Closes #17
Output from pyflakes can be
```
<stdin>:1044:12 undefined name 'settingss'
<stdin>:34:45: invalid syntax
```
t.i. the `:` after the column is optional. In the latter case
`filename` overmatched ("not lazy") to "<std... | Python | mit | SublimeLinter/SublimeLinter-pyflakes | from SublimeLinter.lint import PythonLinter
import re
class Pyflakes(PythonLinter):
cmd = 'pyflakes'
regex = r'''(?x)
^(?P<filename>.+):(?P<line>\d+):((?P<col>\d+):?)?\s
# The rest of the line is the error message.
# Within that, capture anything within single quotes as `near`.
... | from SublimeLinter.lint import PythonLinter
import re
class Pyflakes(PythonLinter):
cmd = 'pyflakes'
regex = r'''(?x)
^(?P<filename>.+?):(?P<line>\d+):((?P<col>\d+):?)?\s
# The rest of the line is the error message.
# Within that, capture anything within single quotes as `near`.
... | <commit_before>from SublimeLinter.lint import PythonLinter
import re
class Pyflakes(PythonLinter):
cmd = 'pyflakes'
regex = r'''(?x)
^(?P<filename>.+):(?P<line>\d+):((?P<col>\d+):?)?\s
# The rest of the line is the error message.
# Within that, capture anything within single quotes as... | from SublimeLinter.lint import PythonLinter
import re
class Pyflakes(PythonLinter):
cmd = 'pyflakes'
regex = r'''(?x)
^(?P<filename>.+?):(?P<line>\d+):((?P<col>\d+):?)?\s
# The rest of the line is the error message.
# Within that, capture anything within single quotes as `near`.
... | from SublimeLinter.lint import PythonLinter
import re
class Pyflakes(PythonLinter):
cmd = 'pyflakes'
regex = r'''(?x)
^(?P<filename>.+):(?P<line>\d+):((?P<col>\d+):?)?\s
# The rest of the line is the error message.
# Within that, capture anything within single quotes as `near`.
... | <commit_before>from SublimeLinter.lint import PythonLinter
import re
class Pyflakes(PythonLinter):
cmd = 'pyflakes'
regex = r'''(?x)
^(?P<filename>.+):(?P<line>\d+):((?P<col>\d+):?)?\s
# The rest of the line is the error message.
# Within that, capture anything within single quotes as... |
236816340df75e1ef4fc3f6ee4540a02c44fc279 | tests/helpers/helpers.py | tests/helpers/helpers.py | from inspect import getdoc
import pytest
class CodeCollector(object):
def __init__(self):
self.collected = []
def __call__(self, f):
self.collected.append(f)
return f
def __iter__(self):
return iter(self.collected)
def parametrize(self, test_func):
retu... | from inspect import getdoc
import pytest
class CodeCollector(object):
def __init__(self, name='code'):
self.name = name
self.collected = []
def __call__(self, f):
self.collected.append(f)
return f
def __iter__(self):
return iter(self.collected)
def param... | Support argument name in the CodeCollector helper. | Support argument name in the CodeCollector helper.
| Python | bsd-2-clause | proofit404/dependencies,proofit404/dependencies,proofit404/dependencies,proofit404/dependencies | from inspect import getdoc
import pytest
class CodeCollector(object):
def __init__(self):
self.collected = []
def __call__(self, f):
self.collected.append(f)
return f
def __iter__(self):
return iter(self.collected)
def parametrize(self, test_func):
retu... | from inspect import getdoc
import pytest
class CodeCollector(object):
def __init__(self, name='code'):
self.name = name
self.collected = []
def __call__(self, f):
self.collected.append(f)
return f
def __iter__(self):
return iter(self.collected)
def param... | <commit_before>from inspect import getdoc
import pytest
class CodeCollector(object):
def __init__(self):
self.collected = []
def __call__(self, f):
self.collected.append(f)
return f
def __iter__(self):
return iter(self.collected)
def parametrize(self, test_func)... | from inspect import getdoc
import pytest
class CodeCollector(object):
def __init__(self, name='code'):
self.name = name
self.collected = []
def __call__(self, f):
self.collected.append(f)
return f
def __iter__(self):
return iter(self.collected)
def param... | from inspect import getdoc
import pytest
class CodeCollector(object):
def __init__(self):
self.collected = []
def __call__(self, f):
self.collected.append(f)
return f
def __iter__(self):
return iter(self.collected)
def parametrize(self, test_func):
retu... | <commit_before>from inspect import getdoc
import pytest
class CodeCollector(object):
def __init__(self):
self.collected = []
def __call__(self, f):
self.collected.append(f)
return f
def __iter__(self):
return iter(self.collected)
def parametrize(self, test_func)... |
e822ee6fe844c18b2a459ed188f4fbae26c617e5 | lingcod/bookmarks/forms.py | lingcod/bookmarks/forms.py | from lingcod.features.forms import FeatureForm
from lingcod.bookmarks.models import Bookmark
from django import forms
class BookmarkForm(FeatureForm):
name = forms.CharField(label='Bookmark Name')
latitude = forms.FloatField(widget=forms.HiddenInput())
longitude = forms.FloatField(widget=forms.HiddenInput(... | from lingcod.features.forms import FeatureForm
from lingcod.bookmarks.models import Bookmark
from django import forms
class BookmarkForm(FeatureForm):
name = forms.CharField(label='Bookmark Name')
latitude = forms.FloatField(widget=forms.HiddenInput())
longitude = forms.FloatField(widget=forms.HiddenInput(... | Hide IP from input form | Hide IP from input form
--HG--
branch : bookmarks
| Python | bsd-3-clause | underbluewaters/marinemap,underbluewaters/marinemap,underbluewaters/marinemap | from lingcod.features.forms import FeatureForm
from lingcod.bookmarks.models import Bookmark
from django import forms
class BookmarkForm(FeatureForm):
name = forms.CharField(label='Bookmark Name')
latitude = forms.FloatField(widget=forms.HiddenInput())
longitude = forms.FloatField(widget=forms.HiddenInput(... | from lingcod.features.forms import FeatureForm
from lingcod.bookmarks.models import Bookmark
from django import forms
class BookmarkForm(FeatureForm):
name = forms.CharField(label='Bookmark Name')
latitude = forms.FloatField(widget=forms.HiddenInput())
longitude = forms.FloatField(widget=forms.HiddenInput(... | <commit_before>from lingcod.features.forms import FeatureForm
from lingcod.bookmarks.models import Bookmark
from django import forms
class BookmarkForm(FeatureForm):
name = forms.CharField(label='Bookmark Name')
latitude = forms.FloatField(widget=forms.HiddenInput())
longitude = forms.FloatField(widget=for... | from lingcod.features.forms import FeatureForm
from lingcod.bookmarks.models import Bookmark
from django import forms
class BookmarkForm(FeatureForm):
name = forms.CharField(label='Bookmark Name')
latitude = forms.FloatField(widget=forms.HiddenInput())
longitude = forms.FloatField(widget=forms.HiddenInput(... | from lingcod.features.forms import FeatureForm
from lingcod.bookmarks.models import Bookmark
from django import forms
class BookmarkForm(FeatureForm):
name = forms.CharField(label='Bookmark Name')
latitude = forms.FloatField(widget=forms.HiddenInput())
longitude = forms.FloatField(widget=forms.HiddenInput(... | <commit_before>from lingcod.features.forms import FeatureForm
from lingcod.bookmarks.models import Bookmark
from django import forms
class BookmarkForm(FeatureForm):
name = forms.CharField(label='Bookmark Name')
latitude = forms.FloatField(widget=forms.HiddenInput())
longitude = forms.FloatField(widget=for... |
184e726d44d113a46ddb9cf3a5762f453ed7b512 | myuw/management/commands/clear_expired_sessions.py | myuw/management/commands/clear_expired_sessions.py | """
The django clearsessions commend internally calls:
cls.get_model_class().objects.filter(
expire_date__lt=timezone.now()).delete()
which could lock the DB table for a long time when
having a large number of records to delete.
To prevent the job running forever, we only delete a limit number of
expired dja... | """
The django clearsessions commend internally calls:
cls.get_model_class().objects.filter(
expire_date__lt=timezone.now()).delete()
which could lock the DB table for a long time when
having a large number of records to delete.
To prevent the job running forever, we only delete a limit number of
expired dja... | Add a 5 second pause | Add a 5 second pause
| Python | apache-2.0 | uw-it-aca/myuw,uw-it-aca/myuw,uw-it-aca/myuw,uw-it-aca/myuw | """
The django clearsessions commend internally calls:
cls.get_model_class().objects.filter(
expire_date__lt=timezone.now()).delete()
which could lock the DB table for a long time when
having a large number of records to delete.
To prevent the job running forever, we only delete a limit number of
expired dja... | """
The django clearsessions commend internally calls:
cls.get_model_class().objects.filter(
expire_date__lt=timezone.now()).delete()
which could lock the DB table for a long time when
having a large number of records to delete.
To prevent the job running forever, we only delete a limit number of
expired dja... | <commit_before>"""
The django clearsessions commend internally calls:
cls.get_model_class().objects.filter(
expire_date__lt=timezone.now()).delete()
which could lock the DB table for a long time when
having a large number of records to delete.
To prevent the job running forever, we only delete a limit number... | """
The django clearsessions commend internally calls:
cls.get_model_class().objects.filter(
expire_date__lt=timezone.now()).delete()
which could lock the DB table for a long time when
having a large number of records to delete.
To prevent the job running forever, we only delete a limit number of
expired dja... | """
The django clearsessions commend internally calls:
cls.get_model_class().objects.filter(
expire_date__lt=timezone.now()).delete()
which could lock the DB table for a long time when
having a large number of records to delete.
To prevent the job running forever, we only delete a limit number of
expired dja... | <commit_before>"""
The django clearsessions commend internally calls:
cls.get_model_class().objects.filter(
expire_date__lt=timezone.now()).delete()
which could lock the DB table for a long time when
having a large number of records to delete.
To prevent the job running forever, we only delete a limit number... |
f00c7f3a976ba4790963a5701c5ce13f6dcd84fa | tests/test_funcmakers.py | tests/test_funcmakers.py | import inspect
from collections import defaultdict
import pytest
from funcy.funcmakers import *
def test_callable():
assert make_func(lambda x: x + 42)(0) == 42
def test_int():
assert make_func(0)('abc') == 'a'
assert make_func(2)([1,2,3]) == 3
assert make_func(1)({1: 'a'}) == 'a'
with pytest.r... | from collections import defaultdict
import pytest
from funcy.funcmakers import *
def test_callable():
assert make_func(lambda x: x + 42)(0) == 42
def test_int():
assert make_func(0)('abc') == 'a'
assert make_func(2)([1,2,3]) == 3
assert make_func(1)({1: 'a'}) == 'a'
with pytest.raises(IndexErro... | Remove unused import from tests | Remove unused import from tests
| Python | bsd-3-clause | Suor/funcy | import inspect
from collections import defaultdict
import pytest
from funcy.funcmakers import *
def test_callable():
assert make_func(lambda x: x + 42)(0) == 42
def test_int():
assert make_func(0)('abc') == 'a'
assert make_func(2)([1,2,3]) == 3
assert make_func(1)({1: 'a'}) == 'a'
with pytest.r... | from collections import defaultdict
import pytest
from funcy.funcmakers import *
def test_callable():
assert make_func(lambda x: x + 42)(0) == 42
def test_int():
assert make_func(0)('abc') == 'a'
assert make_func(2)([1,2,3]) == 3
assert make_func(1)({1: 'a'}) == 'a'
with pytest.raises(IndexErro... | <commit_before>import inspect
from collections import defaultdict
import pytest
from funcy.funcmakers import *
def test_callable():
assert make_func(lambda x: x + 42)(0) == 42
def test_int():
assert make_func(0)('abc') == 'a'
assert make_func(2)([1,2,3]) == 3
assert make_func(1)({1: 'a'}) == 'a'
... | from collections import defaultdict
import pytest
from funcy.funcmakers import *
def test_callable():
assert make_func(lambda x: x + 42)(0) == 42
def test_int():
assert make_func(0)('abc') == 'a'
assert make_func(2)([1,2,3]) == 3
assert make_func(1)({1: 'a'}) == 'a'
with pytest.raises(IndexErro... | import inspect
from collections import defaultdict
import pytest
from funcy.funcmakers import *
def test_callable():
assert make_func(lambda x: x + 42)(0) == 42
def test_int():
assert make_func(0)('abc') == 'a'
assert make_func(2)([1,2,3]) == 3
assert make_func(1)({1: 'a'}) == 'a'
with pytest.r... | <commit_before>import inspect
from collections import defaultdict
import pytest
from funcy.funcmakers import *
def test_callable():
assert make_func(lambda x: x + 42)(0) == 42
def test_int():
assert make_func(0)('abc') == 'a'
assert make_func(2)([1,2,3]) == 3
assert make_func(1)({1: 'a'}) == 'a'
... |
b602e732ae091b78c1a0e7258bec878a12cf063f | tests/test_account.py | tests/test_account.py | # coding: utf-8
import unittest
from lastpass.account import Account
class AccountTestCase(unittest.TestCase):
def setUp(self):
self.id = 'id'
self.name = 'name'
self.username = 'username'
self.password = 'password'
self.url = 'url'
self.group = 'group'
self... | # coding: utf-8
import unittest
from lastpass.account import Account
class AccountTestCase(unittest.TestCase):
def setUp(self):
self.id = 'id'
self.name = 'name'
self.username = 'username'
self.password = 'password'
self.url = 'url'
self.group = 'group'
self... | Add a test for `notes` attribute | Add a test for `notes` attribute
| Python | mit | konomae/lastpass-python | # coding: utf-8
import unittest
from lastpass.account import Account
class AccountTestCase(unittest.TestCase):
def setUp(self):
self.id = 'id'
self.name = 'name'
self.username = 'username'
self.password = 'password'
self.url = 'url'
self.group = 'group'
self... | # coding: utf-8
import unittest
from lastpass.account import Account
class AccountTestCase(unittest.TestCase):
def setUp(self):
self.id = 'id'
self.name = 'name'
self.username = 'username'
self.password = 'password'
self.url = 'url'
self.group = 'group'
self... | <commit_before># coding: utf-8
import unittest
from lastpass.account import Account
class AccountTestCase(unittest.TestCase):
def setUp(self):
self.id = 'id'
self.name = 'name'
self.username = 'username'
self.password = 'password'
self.url = 'url'
self.group = 'grou... | # coding: utf-8
import unittest
from lastpass.account import Account
class AccountTestCase(unittest.TestCase):
def setUp(self):
self.id = 'id'
self.name = 'name'
self.username = 'username'
self.password = 'password'
self.url = 'url'
self.group = 'group'
self... | # coding: utf-8
import unittest
from lastpass.account import Account
class AccountTestCase(unittest.TestCase):
def setUp(self):
self.id = 'id'
self.name = 'name'
self.username = 'username'
self.password = 'password'
self.url = 'url'
self.group = 'group'
self... | <commit_before># coding: utf-8
import unittest
from lastpass.account import Account
class AccountTestCase(unittest.TestCase):
def setUp(self):
self.id = 'id'
self.name = 'name'
self.username = 'username'
self.password = 'password'
self.url = 'url'
self.group = 'grou... |
55d4b7b939fc218d47a920761350aee7bee91eb9 | opps/article/views.py | opps/article/views.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.views.generic.detail import DetailView
from django.views.generic.list import ListView
from opps.article.models import Post
class OppsList(ListView):
context_object_name = "context"
@property
def template_name(self):
return 'channel/{0}.... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.views.generic.detail import DetailView
from django.views.generic.list import ListView
from opps.article.models import Post
class OppsList(ListView):
context_object_name = "context"
@property
def template_name(self):
long_slug = self.kwa... | Fix template name on entry home page (/) on list page | Fix template name on entry home page (/) on list page
| Python | mit | opps/opps,williamroot/opps,williamroot/opps,opps/opps,opps/opps,jeanmask/opps,jeanmask/opps,williamroot/opps,jeanmask/opps,YACOWS/opps,opps/opps,jeanmask/opps,YACOWS/opps,YACOWS/opps,YACOWS/opps,williamroot/opps | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.views.generic.detail import DetailView
from django.views.generic.list import ListView
from opps.article.models import Post
class OppsList(ListView):
context_object_name = "context"
@property
def template_name(self):
return 'channel/{0}.... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.views.generic.detail import DetailView
from django.views.generic.list import ListView
from opps.article.models import Post
class OppsList(ListView):
context_object_name = "context"
@property
def template_name(self):
long_slug = self.kwa... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.views.generic.detail import DetailView
from django.views.generic.list import ListView
from opps.article.models import Post
class OppsList(ListView):
context_object_name = "context"
@property
def template_name(self):
retur... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.views.generic.detail import DetailView
from django.views.generic.list import ListView
from opps.article.models import Post
class OppsList(ListView):
context_object_name = "context"
@property
def template_name(self):
long_slug = self.kwa... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.views.generic.detail import DetailView
from django.views.generic.list import ListView
from opps.article.models import Post
class OppsList(ListView):
context_object_name = "context"
@property
def template_name(self):
return 'channel/{0}.... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.views.generic.detail import DetailView
from django.views.generic.list import ListView
from opps.article.models import Post
class OppsList(ListView):
context_object_name = "context"
@property
def template_name(self):
retur... |
1f5403108a25257dfa63d235c8faf4e02f69c6bf | opps/sitemaps/urls.py | opps/sitemaps/urls.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.conf.urls import patterns, url
from django.contrib.sitemaps import views as sitemap_views
from opps.sitemaps.sitemaps import GenericSitemap, InfoDisct
sitemaps = {
'articles': GenericSitemap(InfoDisct(), priority=0.6),
}
sitemaps_googlenews = {
'arti... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.conf.urls import patterns, url
from django.views.decorators.cache import cache_page
from django.contrib.sitemaps import views as sitemap_views
from opps.sitemaps.sitemaps import GenericSitemap, InfoDisct
sitemaps = {
'articles': GenericSitemap(InfoDisct()... | Add cache page on sitemap fixed | Add cache page on sitemap fixed
| Python | mit | jeanmask/opps,williamroot/opps,YACOWS/opps,opps/opps,YACOWS/opps,opps/opps,opps/opps,jeanmask/opps,opps/opps,jeanmask/opps,williamroot/opps,YACOWS/opps,jeanmask/opps,williamroot/opps,williamroot/opps,YACOWS/opps | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.conf.urls import patterns, url
from django.contrib.sitemaps import views as sitemap_views
from opps.sitemaps.sitemaps import GenericSitemap, InfoDisct
sitemaps = {
'articles': GenericSitemap(InfoDisct(), priority=0.6),
}
sitemaps_googlenews = {
'arti... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.conf.urls import patterns, url
from django.views.decorators.cache import cache_page
from django.contrib.sitemaps import views as sitemap_views
from opps.sitemaps.sitemaps import GenericSitemap, InfoDisct
sitemaps = {
'articles': GenericSitemap(InfoDisct()... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.conf.urls import patterns, url
from django.contrib.sitemaps import views as sitemap_views
from opps.sitemaps.sitemaps import GenericSitemap, InfoDisct
sitemaps = {
'articles': GenericSitemap(InfoDisct(), priority=0.6),
}
sitemaps_googlenew... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.conf.urls import patterns, url
from django.views.decorators.cache import cache_page
from django.contrib.sitemaps import views as sitemap_views
from opps.sitemaps.sitemaps import GenericSitemap, InfoDisct
sitemaps = {
'articles': GenericSitemap(InfoDisct()... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.conf.urls import patterns, url
from django.contrib.sitemaps import views as sitemap_views
from opps.sitemaps.sitemaps import GenericSitemap, InfoDisct
sitemaps = {
'articles': GenericSitemap(InfoDisct(), priority=0.6),
}
sitemaps_googlenews = {
'arti... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.conf.urls import patterns, url
from django.contrib.sitemaps import views as sitemap_views
from opps.sitemaps.sitemaps import GenericSitemap, InfoDisct
sitemaps = {
'articles': GenericSitemap(InfoDisct(), priority=0.6),
}
sitemaps_googlenew... |
18946d7f464e1f71ad91229261bd8d191a16dea3 | demo/setup.py | demo/setup.py | import os
from setuptools import setup
def read_relative_file(filename):
"""Returns contents of the given file, which path is supposed relative
to this module."""
with open(os.path.join(os.path.dirname(__file__), filename)) as f:
return f.read()
NAME = 'django-genericfilters-demo'
README = read_... | import os
from setuptools import setup, find_packages
def read_relative_file(filename):
"""Returns contents of the given file, which path is supposed relative
to this module."""
with open(os.path.join(os.path.dirname(__file__), filename)) as f:
return f.read()
NAME = 'django-genericfilters-demo'... | Fix demo. And *actually* test new Django versions | Fix demo. And *actually* test new Django versions
| Python | bsd-3-clause | novapost/django-generic-filters,novapost/django-generic-filters,novapost/django-generic-filters | import os
from setuptools import setup
def read_relative_file(filename):
"""Returns contents of the given file, which path is supposed relative
to this module."""
with open(os.path.join(os.path.dirname(__file__), filename)) as f:
return f.read()
NAME = 'django-genericfilters-demo'
README = read_... | import os
from setuptools import setup, find_packages
def read_relative_file(filename):
"""Returns contents of the given file, which path is supposed relative
to this module."""
with open(os.path.join(os.path.dirname(__file__), filename)) as f:
return f.read()
NAME = 'django-genericfilters-demo'... | <commit_before>import os
from setuptools import setup
def read_relative_file(filename):
"""Returns contents of the given file, which path is supposed relative
to this module."""
with open(os.path.join(os.path.dirname(__file__), filename)) as f:
return f.read()
NAME = 'django-genericfilters-demo'... | import os
from setuptools import setup, find_packages
def read_relative_file(filename):
"""Returns contents of the given file, which path is supposed relative
to this module."""
with open(os.path.join(os.path.dirname(__file__), filename)) as f:
return f.read()
NAME = 'django-genericfilters-demo'... | import os
from setuptools import setup
def read_relative_file(filename):
"""Returns contents of the given file, which path is supposed relative
to this module."""
with open(os.path.join(os.path.dirname(__file__), filename)) as f:
return f.read()
NAME = 'django-genericfilters-demo'
README = read_... | <commit_before>import os
from setuptools import setup
def read_relative_file(filename):
"""Returns contents of the given file, which path is supposed relative
to this module."""
with open(os.path.join(os.path.dirname(__file__), filename)) as f:
return f.read()
NAME = 'django-genericfilters-demo'... |
99b1e11542c7e102e9fe739ea355b84d22b913d3 | src/experiments/forms.py | src/experiments/forms.py | from crispy_forms.bootstrap import FormActions
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Fieldset, Layout, Submit
from django import forms
from django.utils.functional import cached_property
from django.utils.translation import ugettext_lazy as _
from core.widgets import SimpleMDEWidge... | from crispy_forms.bootstrap import FormActions
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Fieldset, Layout, Submit, Div
from django import forms
from django.utils.functional import cached_property
from django.utils.translation import ugettext_lazy as _
from core.widgets import SimpleMDE... | Disable form submit for now | Disable form submit for now
| Python | mit | ccwang002/biocloud-server-kai,ccwang002/biocloud-server-kai,ccwang002/biocloud-server-kai | from crispy_forms.bootstrap import FormActions
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Fieldset, Layout, Submit
from django import forms
from django.utils.functional import cached_property
from django.utils.translation import ugettext_lazy as _
from core.widgets import SimpleMDEWidge... | from crispy_forms.bootstrap import FormActions
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Fieldset, Layout, Submit, Div
from django import forms
from django.utils.functional import cached_property
from django.utils.translation import ugettext_lazy as _
from core.widgets import SimpleMDE... | <commit_before>from crispy_forms.bootstrap import FormActions
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Fieldset, Layout, Submit
from django import forms
from django.utils.functional import cached_property
from django.utils.translation import ugettext_lazy as _
from core.widgets import... | from crispy_forms.bootstrap import FormActions
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Fieldset, Layout, Submit, Div
from django import forms
from django.utils.functional import cached_property
from django.utils.translation import ugettext_lazy as _
from core.widgets import SimpleMDE... | from crispy_forms.bootstrap import FormActions
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Fieldset, Layout, Submit
from django import forms
from django.utils.functional import cached_property
from django.utils.translation import ugettext_lazy as _
from core.widgets import SimpleMDEWidge... | <commit_before>from crispy_forms.bootstrap import FormActions
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Fieldset, Layout, Submit
from django import forms
from django.utils.functional import cached_property
from django.utils.translation import ugettext_lazy as _
from core.widgets import... |
0b632368b4991621696a7f7a396afecf61e6ccc3 | tools/examples/geturl.py | tools/examples/geturl.py | #!/usr/bin/env python2
#
# USAGE: geturl.py FILE_OR_DIR1 FILE_OR_DIR2 ...
#
# prints out the URL associated with each item
#
import sys
import svn._wc
import svn.util
def main(pool, files):
for f in files:
entry = svn._wc.svn_wc_entry(f, 0, pool)
print svn._wc.svn_wc_entry_t_url_get(entry)
if __name__ == '... | #!/usr/bin/env python2
#
# USAGE: geturl.py FILE_OR_DIR1 FILE_OR_DIR2 ...
#
# prints out the URL associated with each item
#
import os
import sys
import svn.wc
import svn.util
def main(pool, files):
for f in files:
dirpath = fullpath = os.path.abspath(f)
if not os.path.isdir(dirpath):
dirpath = os.pa... | Update the example to use the new access baton stuff. | Update the example to use the new access baton stuff.
| Python | apache-2.0 | jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion | #!/usr/bin/env python2
#
# USAGE: geturl.py FILE_OR_DIR1 FILE_OR_DIR2 ...
#
# prints out the URL associated with each item
#
import sys
import svn._wc
import svn.util
def main(pool, files):
for f in files:
entry = svn._wc.svn_wc_entry(f, 0, pool)
print svn._wc.svn_wc_entry_t_url_get(entry)
if __name__ == '... | #!/usr/bin/env python2
#
# USAGE: geturl.py FILE_OR_DIR1 FILE_OR_DIR2 ...
#
# prints out the URL associated with each item
#
import os
import sys
import svn.wc
import svn.util
def main(pool, files):
for f in files:
dirpath = fullpath = os.path.abspath(f)
if not os.path.isdir(dirpath):
dirpath = os.pa... | <commit_before>#!/usr/bin/env python2
#
# USAGE: geturl.py FILE_OR_DIR1 FILE_OR_DIR2 ...
#
# prints out the URL associated with each item
#
import sys
import svn._wc
import svn.util
def main(pool, files):
for f in files:
entry = svn._wc.svn_wc_entry(f, 0, pool)
print svn._wc.svn_wc_entry_t_url_get(entry)
i... | #!/usr/bin/env python2
#
# USAGE: geturl.py FILE_OR_DIR1 FILE_OR_DIR2 ...
#
# prints out the URL associated with each item
#
import os
import sys
import svn.wc
import svn.util
def main(pool, files):
for f in files:
dirpath = fullpath = os.path.abspath(f)
if not os.path.isdir(dirpath):
dirpath = os.pa... | #!/usr/bin/env python2
#
# USAGE: geturl.py FILE_OR_DIR1 FILE_OR_DIR2 ...
#
# prints out the URL associated with each item
#
import sys
import svn._wc
import svn.util
def main(pool, files):
for f in files:
entry = svn._wc.svn_wc_entry(f, 0, pool)
print svn._wc.svn_wc_entry_t_url_get(entry)
if __name__ == '... | <commit_before>#!/usr/bin/env python2
#
# USAGE: geturl.py FILE_OR_DIR1 FILE_OR_DIR2 ...
#
# prints out the URL associated with each item
#
import sys
import svn._wc
import svn.util
def main(pool, files):
for f in files:
entry = svn._wc.svn_wc_entry(f, 0, pool)
print svn._wc.svn_wc_entry_t_url_get(entry)
i... |
7148264a374301cb6cf9d35f3b17f3a02652600f | manage.py | manage.py | #!/usr/bin/env python
import os
from app import create_app, db
from app.models import User, Role, Permission
from flask.ext.script import Manager, Shell
from flask.ext.migrate import Migrate, MigrateCommand
app = create_app(os.getenv('FLASK_CONFIG') or 'default')
manager = Manager(app)
migrate = Migrate(app, db)
def... | #!/usr/bin/env python
import os
from app import create_app, db
from app.models import User, Role, Permission
from flask.ext.script import Manager, Shell
from flask.ext.migrate import Migrate, MigrateCommand
app = create_app(os.getenv('FLASK_CONFIG') or 'default')
manager = Manager(app)
migrate = Migrate(app, db)
def... | Add command to seed database | Add command to seed database
| Python | mit | richgieg/flask-now,richgieg/flask-now | #!/usr/bin/env python
import os
from app import create_app, db
from app.models import User, Role, Permission
from flask.ext.script import Manager, Shell
from flask.ext.migrate import Migrate, MigrateCommand
app = create_app(os.getenv('FLASK_CONFIG') or 'default')
manager = Manager(app)
migrate = Migrate(app, db)
def... | #!/usr/bin/env python
import os
from app import create_app, db
from app.models import User, Role, Permission
from flask.ext.script import Manager, Shell
from flask.ext.migrate import Migrate, MigrateCommand
app = create_app(os.getenv('FLASK_CONFIG') or 'default')
manager = Manager(app)
migrate = Migrate(app, db)
def... | <commit_before>#!/usr/bin/env python
import os
from app import create_app, db
from app.models import User, Role, Permission
from flask.ext.script import Manager, Shell
from flask.ext.migrate import Migrate, MigrateCommand
app = create_app(os.getenv('FLASK_CONFIG') or 'default')
manager = Manager(app)
migrate = Migrate... | #!/usr/bin/env python
import os
from app import create_app, db
from app.models import User, Role, Permission
from flask.ext.script import Manager, Shell
from flask.ext.migrate import Migrate, MigrateCommand
app = create_app(os.getenv('FLASK_CONFIG') or 'default')
manager = Manager(app)
migrate = Migrate(app, db)
def... | #!/usr/bin/env python
import os
from app import create_app, db
from app.models import User, Role, Permission
from flask.ext.script import Manager, Shell
from flask.ext.migrate import Migrate, MigrateCommand
app = create_app(os.getenv('FLASK_CONFIG') or 'default')
manager = Manager(app)
migrate = Migrate(app, db)
def... | <commit_before>#!/usr/bin/env python
import os
from app import create_app, db
from app.models import User, Role, Permission
from flask.ext.script import Manager, Shell
from flask.ext.migrate import Migrate, MigrateCommand
app = create_app(os.getenv('FLASK_CONFIG') or 'default')
manager = Manager(app)
migrate = Migrate... |
057e89c7beb8eb49321fe26513d61656b91ded6f | manage.py | manage.py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tests.settings.dev")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tests.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| Update the path to the setting file. | Update the path to the setting file.
| Python | bsd-3-clause | unt-libraries/django-premis-event-service,unt-libraries/django-premis-event-service,unt-libraries/django-premis-event-service | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tests.settings.dev")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
Update the path to the setting file. | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tests.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| <commit_before>#!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tests.settings.dev")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
<commit_msg>Update the path to the setting file.<comm... | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tests.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tests.settings.dev")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
Update the path to the setting file.#!/usr/bin/env python
import os
... | <commit_before>#!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tests.settings.dev")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
<commit_msg>Update the path to the setting file.<comm... |
c1a8d0e1fdc0d2ebd822a041874ba6de8ed6d9ac | mod/default/mod_default.py | mod/default/mod_default.py | #! /usr/bin/env python
# coding:utf-8
from mod import Mod
import random
import os
class ModDefault(Mod):
def __init__(
self,
filename=None,
logger=None
):
Mod.__init__(self, logger)
text_path = filename or os.path.join(
os.path.abspath(os.path.dirname(__fi... | #! /usr/bin/env python
# coding:utf-8
from mod import Mod
import random
import os
class ModDefault(Mod):
def __init__(
self,
filename=None,
logger=None
):
Mod.__init__(self, logger)
text_path = filename or os.path.join(
os.path.abspath(os.path.dirname(__fi... | Use uniform instead of random | Use uniform instead of random
| Python | mit | kenkov/kovot,kenkov/kovot | #! /usr/bin/env python
# coding:utf-8
from mod import Mod
import random
import os
class ModDefault(Mod):
def __init__(
self,
filename=None,
logger=None
):
Mod.__init__(self, logger)
text_path = filename or os.path.join(
os.path.abspath(os.path.dirname(__fi... | #! /usr/bin/env python
# coding:utf-8
from mod import Mod
import random
import os
class ModDefault(Mod):
def __init__(
self,
filename=None,
logger=None
):
Mod.__init__(self, logger)
text_path = filename or os.path.join(
os.path.abspath(os.path.dirname(__fi... | <commit_before>#! /usr/bin/env python
# coding:utf-8
from mod import Mod
import random
import os
class ModDefault(Mod):
def __init__(
self,
filename=None,
logger=None
):
Mod.__init__(self, logger)
text_path = filename or os.path.join(
os.path.abspath(os.pa... | #! /usr/bin/env python
# coding:utf-8
from mod import Mod
import random
import os
class ModDefault(Mod):
def __init__(
self,
filename=None,
logger=None
):
Mod.__init__(self, logger)
text_path = filename or os.path.join(
os.path.abspath(os.path.dirname(__fi... | #! /usr/bin/env python
# coding:utf-8
from mod import Mod
import random
import os
class ModDefault(Mod):
def __init__(
self,
filename=None,
logger=None
):
Mod.__init__(self, logger)
text_path = filename or os.path.join(
os.path.abspath(os.path.dirname(__fi... | <commit_before>#! /usr/bin/env python
# coding:utf-8
from mod import Mod
import random
import os
class ModDefault(Mod):
def __init__(
self,
filename=None,
logger=None
):
Mod.__init__(self, logger)
text_path = filename or os.path.join(
os.path.abspath(os.pa... |
30ade212225344c9ca3e94cc47ee93e3b0b702b5 | website/addons/osfstorage/settings/defaults.py | website/addons/osfstorage/settings/defaults.py | # encoding: utf-8
import hashlib
from website import settings
DOMAIN = settings.DOMAIN
UPLOAD_SERVICE_URLS = ['changeme']
PING_TIMEOUT = 5 * 60
SIGNED_REQUEST_KWARGS = {}
# HMAC options
SIGNATURE_HEADER_KEY = 'X-Signature'
URLS_HMAC_SECRET = 'changeme'
URLS_HMAC_DIGEST = hashlib.sha1
WEBHOOK_HMAC_SECRET = 'change... | # encoding: utf-8
import hashlib
from website import settings
DOMAIN = settings.DOMAIN
UPLOAD_SERVICE_URLS = ['changeme']
PING_TIMEOUT = 5 * 60
SIGNED_REQUEST_KWARGS = {}
# HMAC options
SIGNATURE_HEADER_KEY = 'X-Signature'
URLS_HMAC_SECRET = 'changeme'
URLS_HMAC_DIGEST = hashlib.sha1
WEBHOOK_HMAC_SECRET = 'change... | Fix copy paste typo caused by cloud to butt | Fix copy paste typo caused by cloud to butt
| Python | apache-2.0 | RomanZWang/osf.io,zachjanicki/osf.io,billyhunt/osf.io,jolene-esposito/osf.io,ZobairAlijan/osf.io,revanthkolli/osf.io,HalcyonChimera/osf.io,alexschiller/osf.io,kch8qx/osf.io,mluke93/osf.io,SSJohns/osf.io,brandonPurvis/osf.io,aaxelb/osf.io,arpitar/osf.io,samchrisinger/osf.io,arpitar/osf.io,chennan47/osf.io,mluo613/osf.io... | # encoding: utf-8
import hashlib
from website import settings
DOMAIN = settings.DOMAIN
UPLOAD_SERVICE_URLS = ['changeme']
PING_TIMEOUT = 5 * 60
SIGNED_REQUEST_KWARGS = {}
# HMAC options
SIGNATURE_HEADER_KEY = 'X-Signature'
URLS_HMAC_SECRET = 'changeme'
URLS_HMAC_DIGEST = hashlib.sha1
WEBHOOK_HMAC_SECRET = 'change... | # encoding: utf-8
import hashlib
from website import settings
DOMAIN = settings.DOMAIN
UPLOAD_SERVICE_URLS = ['changeme']
PING_TIMEOUT = 5 * 60
SIGNED_REQUEST_KWARGS = {}
# HMAC options
SIGNATURE_HEADER_KEY = 'X-Signature'
URLS_HMAC_SECRET = 'changeme'
URLS_HMAC_DIGEST = hashlib.sha1
WEBHOOK_HMAC_SECRET = 'change... | <commit_before># encoding: utf-8
import hashlib
from website import settings
DOMAIN = settings.DOMAIN
UPLOAD_SERVICE_URLS = ['changeme']
PING_TIMEOUT = 5 * 60
SIGNED_REQUEST_KWARGS = {}
# HMAC options
SIGNATURE_HEADER_KEY = 'X-Signature'
URLS_HMAC_SECRET = 'changeme'
URLS_HMAC_DIGEST = hashlib.sha1
WEBHOOK_HMAC_S... | # encoding: utf-8
import hashlib
from website import settings
DOMAIN = settings.DOMAIN
UPLOAD_SERVICE_URLS = ['changeme']
PING_TIMEOUT = 5 * 60
SIGNED_REQUEST_KWARGS = {}
# HMAC options
SIGNATURE_HEADER_KEY = 'X-Signature'
URLS_HMAC_SECRET = 'changeme'
URLS_HMAC_DIGEST = hashlib.sha1
WEBHOOK_HMAC_SECRET = 'change... | # encoding: utf-8
import hashlib
from website import settings
DOMAIN = settings.DOMAIN
UPLOAD_SERVICE_URLS = ['changeme']
PING_TIMEOUT = 5 * 60
SIGNED_REQUEST_KWARGS = {}
# HMAC options
SIGNATURE_HEADER_KEY = 'X-Signature'
URLS_HMAC_SECRET = 'changeme'
URLS_HMAC_DIGEST = hashlib.sha1
WEBHOOK_HMAC_SECRET = 'change... | <commit_before># encoding: utf-8
import hashlib
from website import settings
DOMAIN = settings.DOMAIN
UPLOAD_SERVICE_URLS = ['changeme']
PING_TIMEOUT = 5 * 60
SIGNED_REQUEST_KWARGS = {}
# HMAC options
SIGNATURE_HEADER_KEY = 'X-Signature'
URLS_HMAC_SECRET = 'changeme'
URLS_HMAC_DIGEST = hashlib.sha1
WEBHOOK_HMAC_S... |
a6017e692ee8d602a228a91ad76b344459292bbf | src/hatchit/urls.py | src/hatchit/urls.py | from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
url(r'^$', 'event_manager.views.home', name='home'),
url(r'^admin/', include(admin.site.urls)),
)
| from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
url(r'^$', 'event_manager.views.home', name='home'),
url(r'^s/$', 'event_manager.views.my_suggestions', name='suggestions'),
url(r'^e/$', 'event_manager.views.my_events', na... | Add routes for new views | Add routes for new views | Python | agpl-3.0 | DavidJFelix/hatchit,DavidJFelix/hatchit,DavidJFelix/hatchit | from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
url(r'^$', 'event_manager.views.home', name='home'),
url(r'^admin/', include(admin.site.urls)),
)
Add routes for new views | from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
url(r'^$', 'event_manager.views.home', name='home'),
url(r'^s/$', 'event_manager.views.my_suggestions', name='suggestions'),
url(r'^e/$', 'event_manager.views.my_events', na... | <commit_before>from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
url(r'^$', 'event_manager.views.home', name='home'),
url(r'^admin/', include(admin.site.urls)),
)
<commit_msg>Add routes for new views<commit_after> | from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
url(r'^$', 'event_manager.views.home', name='home'),
url(r'^s/$', 'event_manager.views.my_suggestions', name='suggestions'),
url(r'^e/$', 'event_manager.views.my_events', na... | from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
url(r'^$', 'event_manager.views.home', name='home'),
url(r'^admin/', include(admin.site.urls)),
)
Add routes for new viewsfrom django.conf.urls import patterns, include, url
fr... | <commit_before>from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
url(r'^$', 'event_manager.views.home', name='home'),
url(r'^admin/', include(admin.site.urls)),
)
<commit_msg>Add routes for new views<commit_after>from django.co... |
df84686302697bbc2cce70828dd7cb3ad5ee65d5 | avacon_website/apps/simpleregistration/models.py | avacon_website/apps/simpleregistration/models.py |
from selvbetjening.core.events.models import request_attendee_pks_signal, find_attendee_signal, Attend
def avacon_style_attendee_pks_handler(sender, **kwargs):
attendee = kwargs['attendee']
key = 'Avacon.%s.%s.%s' % (attendee.event.pk,
attendee.user.pk,
... | Add avacon-style payment ids like the ones used at svscon | Add avacon-style payment ids like the ones used at svscon
| Python | mit | sema/selvbetjening-avacon,sema/selvbetjening-avacon | Add avacon-style payment ids like the ones used at svscon |
from selvbetjening.core.events.models import request_attendee_pks_signal, find_attendee_signal, Attend
def avacon_style_attendee_pks_handler(sender, **kwargs):
attendee = kwargs['attendee']
key = 'Avacon.%s.%s.%s' % (attendee.event.pk,
attendee.user.pk,
... | <commit_before><commit_msg>Add avacon-style payment ids like the ones used at svscon<commit_after> |
from selvbetjening.core.events.models import request_attendee_pks_signal, find_attendee_signal, Attend
def avacon_style_attendee_pks_handler(sender, **kwargs):
attendee = kwargs['attendee']
key = 'Avacon.%s.%s.%s' % (attendee.event.pk,
attendee.user.pk,
... | Add avacon-style payment ids like the ones used at svscon
from selvbetjening.core.events.models import request_attendee_pks_signal, find_attendee_signal, Attend
def avacon_style_attendee_pks_handler(sender, **kwargs):
attendee = kwargs['attendee']
key = 'Avacon.%s.%s.%s' % (attendee.event.pk,
... | <commit_before><commit_msg>Add avacon-style payment ids like the ones used at svscon<commit_after>
from selvbetjening.core.events.models import request_attendee_pks_signal, find_attendee_signal, Attend
def avacon_style_attendee_pks_handler(sender, **kwargs):
attendee = kwargs['attendee']
key = 'Avacon.%s.%s.%... | |
3ceb39e4bbc4c5de7cbcce9c1ecfe94daa57266e | zhihudaily/models.py | zhihudaily/models.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from peewee import Model, IntegerField, CharField
from zhihudaily.configs import Config
class BaseModel(Model):
class Meta:
database = Config.database
class Zhihudaily(BaseModel):
date = Integer... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from peewee import Model, IntegerField, CharField
from zhihudaily.configs import Config
class BaseModel(Model):
class Meta:
database = Config.database
class Zhihudaily(BaseModel):
date = Integer... | Fix bug when create the datebase table | Fix bug when create the datebase table
| Python | mit | lord63/zhihudaily,lord63/zhihudaily,lord63/zhihudaily | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from peewee import Model, IntegerField, CharField
from zhihudaily.configs import Config
class BaseModel(Model):
class Meta:
database = Config.database
class Zhihudaily(BaseModel):
date = Integer... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from peewee import Model, IntegerField, CharField
from zhihudaily.configs import Config
class BaseModel(Model):
class Meta:
database = Config.database
class Zhihudaily(BaseModel):
date = Integer... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from peewee import Model, IntegerField, CharField
from zhihudaily.configs import Config
class BaseModel(Model):
class Meta:
database = Config.database
class Zhihudaily(BaseModel):
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from peewee import Model, IntegerField, CharField
from zhihudaily.configs import Config
class BaseModel(Model):
class Meta:
database = Config.database
class Zhihudaily(BaseModel):
date = Integer... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from peewee import Model, IntegerField, CharField
from zhihudaily.configs import Config
class BaseModel(Model):
class Meta:
database = Config.database
class Zhihudaily(BaseModel):
date = Integer... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from peewee import Model, IntegerField, CharField
from zhihudaily.configs import Config
class BaseModel(Model):
class Meta:
database = Config.database
class Zhihudaily(BaseModel):
... |
ba3009d1d19243c703743070df68ad1ea11d454e | addons/hr_contract/__terp__.py | addons/hr_contract/__terp__.py | {
"name" : "Human Resources Contracts",
"version" : "1.0",
"author" : "Tiny",
"category" : "Generic Modules/Human Resources",
"website" : "http://tinyerp.com/module_hr.html",
"depends" : ["hr"],
"module": "",
"description": """
Add all information on the employee form to manage contracts:
* Martial status,
*... | {
"name" : "Human Resources Contracts",
"version" : "1.0",
"author" : "Tiny",
"category" : "Generic Modules/Human Resources",
"website" : "http://tinyerp.com/module_hr.html",
"depends" : ["hr"],
"module": "",
"description": """
Add all information on the employee form to manage contracts:
* Martial status,
*... | Add hr_contract_security.xml file entry in update_xml section | Add hr_contract_security.xml file entry in update_xml section
bzr revid: mga@tinyerp.com-cceb329e8e30908ba1f6594b9502506150d105b2 | Python | agpl-3.0 | ygol/odoo,fossoult/odoo,leoliujie/odoo,hoatle/odoo,vrenaville/ngo-addons-backport,matrixise/odoo,cedk/odoo,chiragjogi/odoo,lsinfo/odoo,Nick-OpusVL/odoo,ihsanudin/odoo,dfang/odoo,gsmartway/odoo,ojengwa/odoo,windedge/odoo,tangyiyong/odoo,agrista/odoo-saas,mlaitinen/odoo,Daniel-CA/odoo,incaser/odoo-odoo,VitalPet/odoo,xujb... | {
"name" : "Human Resources Contracts",
"version" : "1.0",
"author" : "Tiny",
"category" : "Generic Modules/Human Resources",
"website" : "http://tinyerp.com/module_hr.html",
"depends" : ["hr"],
"module": "",
"description": """
Add all information on the employee form to manage contracts:
* Martial status,
*... | {
"name" : "Human Resources Contracts",
"version" : "1.0",
"author" : "Tiny",
"category" : "Generic Modules/Human Resources",
"website" : "http://tinyerp.com/module_hr.html",
"depends" : ["hr"],
"module": "",
"description": """
Add all information on the employee form to manage contracts:
* Martial status,
*... | <commit_before>{
"name" : "Human Resources Contracts",
"version" : "1.0",
"author" : "Tiny",
"category" : "Generic Modules/Human Resources",
"website" : "http://tinyerp.com/module_hr.html",
"depends" : ["hr"],
"module": "",
"description": """
Add all information on the employee form to manage contracts:
* Mar... | {
"name" : "Human Resources Contracts",
"version" : "1.0",
"author" : "Tiny",
"category" : "Generic Modules/Human Resources",
"website" : "http://tinyerp.com/module_hr.html",
"depends" : ["hr"],
"module": "",
"description": """
Add all information on the employee form to manage contracts:
* Martial status,
*... | {
"name" : "Human Resources Contracts",
"version" : "1.0",
"author" : "Tiny",
"category" : "Generic Modules/Human Resources",
"website" : "http://tinyerp.com/module_hr.html",
"depends" : ["hr"],
"module": "",
"description": """
Add all information on the employee form to manage contracts:
* Martial status,
*... | <commit_before>{
"name" : "Human Resources Contracts",
"version" : "1.0",
"author" : "Tiny",
"category" : "Generic Modules/Human Resources",
"website" : "http://tinyerp.com/module_hr.html",
"depends" : ["hr"],
"module": "",
"description": """
Add all information on the employee form to manage contracts:
* Mar... |
7461666cde3c0206058d10f2341e0a57bf33e504 | src/renderers/status.py | src/renderers/status.py | from flask import Blueprint
from models import db, Status
import json
status_renderer = Blueprint('status', __name__)
@status_renderer.route('/status/<int:user_id>')
def get_tweet(user_id):
status = db.session.query(Status).order_by(Status.id.desc()).one()
return json.dumps({'type' : 'text',
'stat... | from flask import Blueprint
from models import db, Status
import json
status_renderer = Blueprint('status', __name__)
@status_renderer.route('/status')
def get_status():
status = db.session.query(Status).order_by(Status.id.desc()).one()
return json.dumps({'type' : 'text',
'status_text' : status.st... | Remove user_id requirement for FB endpoint | Remove user_id requirement for FB endpoint
| Python | mit | ndm25/notifyable | from flask import Blueprint
from models import db, Status
import json
status_renderer = Blueprint('status', __name__)
@status_renderer.route('/status/<int:user_id>')
def get_tweet(user_id):
status = db.session.query(Status).order_by(Status.id.desc()).one()
return json.dumps({'type' : 'text',
'stat... | from flask import Blueprint
from models import db, Status
import json
status_renderer = Blueprint('status', __name__)
@status_renderer.route('/status')
def get_status():
status = db.session.query(Status).order_by(Status.id.desc()).one()
return json.dumps({'type' : 'text',
'status_text' : status.st... | <commit_before>from flask import Blueprint
from models import db, Status
import json
status_renderer = Blueprint('status', __name__)
@status_renderer.route('/status/<int:user_id>')
def get_tweet(user_id):
status = db.session.query(Status).order_by(Status.id.desc()).one()
return json.dumps({'type' : 'text',
... | from flask import Blueprint
from models import db, Status
import json
status_renderer = Blueprint('status', __name__)
@status_renderer.route('/status')
def get_status():
status = db.session.query(Status).order_by(Status.id.desc()).one()
return json.dumps({'type' : 'text',
'status_text' : status.st... | from flask import Blueprint
from models import db, Status
import json
status_renderer = Blueprint('status', __name__)
@status_renderer.route('/status/<int:user_id>')
def get_tweet(user_id):
status = db.session.query(Status).order_by(Status.id.desc()).one()
return json.dumps({'type' : 'text',
'stat... | <commit_before>from flask import Blueprint
from models import db, Status
import json
status_renderer = Blueprint('status', __name__)
@status_renderer.route('/status/<int:user_id>')
def get_tweet(user_id):
status = db.session.query(Status).order_by(Status.id.desc()).one()
return json.dumps({'type' : 'text',
... |
e877f379bdb864b4f4297796b5c4ed1535354772 | mcrouter/test/test_mcrouter_to_mcrouter_tko.py | mcrouter/test/test_mcrouter_to_mcrouter_tko.py | # Copyright (c) 2015, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
from __future__ import absolute_... | # Copyright (c) 2015, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
from __future__ import absolute_... | Correct regex in unit test | Correct regex in unit test
Summary: Correct regex used in unit tests.
Test Plan: Unit test
Reviewed By: @alikhtarov
Differential Revision: D1804582 | Python | mit | easyfmxu/mcrouter,facebook/mcrouter,leitao/mcrouter,reddit/mcrouter,synecdoche/mcrouter,facebook/mcrouter,glensc/mcrouter,evertrue/mcrouter,leitao/mcrouter,leitao/mcrouter,seem-sky/mcrouter,apinski-cavium/mcrouter,apinski-cavium/mcrouter,facebook/mcrouter,reddit/mcrouter,evertrue/mcrouter,yqzhang/mcrouter,reddit/mcrout... | # Copyright (c) 2015, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
from __future__ import absolute_... | # Copyright (c) 2015, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
from __future__ import absolute_... | <commit_before># Copyright (c) 2015, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
from __future__ i... | # Copyright (c) 2015, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
from __future__ import absolute_... | # Copyright (c) 2015, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
from __future__ import absolute_... | <commit_before># Copyright (c) 2015, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
from __future__ i... |
8861ff87f20de238ea3ddccd7958973dcf992e4a | us_ignite/people/urls.py | us_ignite/people/urls.py | from django.conf.urls import patterns, url
urlpatterns = patterns(
'us_ignite.people.views',
url(r'^$', 'profile_list', name='profile_list'),
url(r'^(?P<slug>[-\w]{1,32})/$', 'profile_detail', name='profile_detail'),
)
| from django.conf.urls import patterns, url
urlpatterns = patterns(
'us_ignite.people.views',
url(r'^$', 'profile_list', name='profile_list'),
url(r'^(?P<slug>[-_\w]{1,32})/$', 'profile_detail', name='profile_detail'),
)
| Allow underscores as the user profile slug. | Allow underscores as the user profile slug.
https://github.com/madewithbytes/us_ignite/issues/316
| Python | bsd-3-clause | us-ignite/us_ignite,us-ignite/us_ignite,us-ignite/us_ignite,us-ignite/us_ignite,us-ignite/us_ignite | from django.conf.urls import patterns, url
urlpatterns = patterns(
'us_ignite.people.views',
url(r'^$', 'profile_list', name='profile_list'),
url(r'^(?P<slug>[-\w]{1,32})/$', 'profile_detail', name='profile_detail'),
)
Allow underscores as the user profile slug.
https://github.com/madewithbytes/us_ignite/... | from django.conf.urls import patterns, url
urlpatterns = patterns(
'us_ignite.people.views',
url(r'^$', 'profile_list', name='profile_list'),
url(r'^(?P<slug>[-_\w]{1,32})/$', 'profile_detail', name='profile_detail'),
)
| <commit_before>from django.conf.urls import patterns, url
urlpatterns = patterns(
'us_ignite.people.views',
url(r'^$', 'profile_list', name='profile_list'),
url(r'^(?P<slug>[-\w]{1,32})/$', 'profile_detail', name='profile_detail'),
)
<commit_msg>Allow underscores as the user profile slug.
https://github.c... | from django.conf.urls import patterns, url
urlpatterns = patterns(
'us_ignite.people.views',
url(r'^$', 'profile_list', name='profile_list'),
url(r'^(?P<slug>[-_\w]{1,32})/$', 'profile_detail', name='profile_detail'),
)
| from django.conf.urls import patterns, url
urlpatterns = patterns(
'us_ignite.people.views',
url(r'^$', 'profile_list', name='profile_list'),
url(r'^(?P<slug>[-\w]{1,32})/$', 'profile_detail', name='profile_detail'),
)
Allow underscores as the user profile slug.
https://github.com/madewithbytes/us_ignite/... | <commit_before>from django.conf.urls import patterns, url
urlpatterns = patterns(
'us_ignite.people.views',
url(r'^$', 'profile_list', name='profile_list'),
url(r'^(?P<slug>[-\w]{1,32})/$', 'profile_detail', name='profile_detail'),
)
<commit_msg>Allow underscores as the user profile slug.
https://github.c... |
7d9c7133de36d2fd7587d7be361cd0ff964d4e94 | deflect/urls.py | deflect/urls.py | from django.conf.urls import patterns
from django.conf.urls import url
from .views import redirect
urlpatterns = patterns('',
url(r'^(?P<key>[a-zA-Z0-9]+)$', redirect, name='deflect-redirect'),
)
| from django.conf import settings
from django.conf.urls import patterns
from django.conf.urls import url
from .views import alias
from .views import redirect
urlpatterns = patterns('',
url(r'^(?P<key>[a-zA-Z0-9]+)$', redirect, name='deflect-redirect'),
)
alias_prefix = getattr(settings, 'DEFLECT_ALIAS_PREFIX', '... | Add custom URL alias paths to URLconf | Add custom URL alias paths to URLconf
| Python | bsd-3-clause | jbittel/django-deflect | from django.conf.urls import patterns
from django.conf.urls import url
from .views import redirect
urlpatterns = patterns('',
url(r'^(?P<key>[a-zA-Z0-9]+)$', redirect, name='deflect-redirect'),
)
Add custom URL alias paths to URLconf | from django.conf import settings
from django.conf.urls import patterns
from django.conf.urls import url
from .views import alias
from .views import redirect
urlpatterns = patterns('',
url(r'^(?P<key>[a-zA-Z0-9]+)$', redirect, name='deflect-redirect'),
)
alias_prefix = getattr(settings, 'DEFLECT_ALIAS_PREFIX', '... | <commit_before>from django.conf.urls import patterns
from django.conf.urls import url
from .views import redirect
urlpatterns = patterns('',
url(r'^(?P<key>[a-zA-Z0-9]+)$', redirect, name='deflect-redirect'),
)
<commit_msg>Add custom URL alias paths to URLconf<commit_after> | from django.conf import settings
from django.conf.urls import patterns
from django.conf.urls import url
from .views import alias
from .views import redirect
urlpatterns = patterns('',
url(r'^(?P<key>[a-zA-Z0-9]+)$', redirect, name='deflect-redirect'),
)
alias_prefix = getattr(settings, 'DEFLECT_ALIAS_PREFIX', '... | from django.conf.urls import patterns
from django.conf.urls import url
from .views import redirect
urlpatterns = patterns('',
url(r'^(?P<key>[a-zA-Z0-9]+)$', redirect, name='deflect-redirect'),
)
Add custom URL alias paths to URLconffrom django.conf import settings
from django.conf.urls import patterns
from djan... | <commit_before>from django.conf.urls import patterns
from django.conf.urls import url
from .views import redirect
urlpatterns = patterns('',
url(r'^(?P<key>[a-zA-Z0-9]+)$', redirect, name='deflect-redirect'),
)
<commit_msg>Add custom URL alias paths to URLconf<commit_after>from django.conf import settings
from d... |
403ad86bde44c1a015d8d35ac2826221ef98f9da | drftest/shop/api/views.py | drftest/shop/api/views.py | from django.shortcuts import render
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status
from rest_framework.permissions import IsAuthenticated
class ShopAPIView(APIView):
permission_classes = (IsAuthenticated,)
class OrdersView(ShopAPIView):
... | from django.shortcuts import render
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status
from rest_framework.permissions import IsAuthenticated
from django.db import transaction
class ShopAPIView(APIView):
permission_classes = (IsAuthenticated,)
c... | Add transaction support to the orders view | Add transaction support to the orders view
| Python | mit | andreagrandi/drf3-test,andreagrandi/drf3-test,andreagrandi/drf3-test | from django.shortcuts import render
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status
from rest_framework.permissions import IsAuthenticated
class ShopAPIView(APIView):
permission_classes = (IsAuthenticated,)
class OrdersView(ShopAPIView):
... | from django.shortcuts import render
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status
from rest_framework.permissions import IsAuthenticated
from django.db import transaction
class ShopAPIView(APIView):
permission_classes = (IsAuthenticated,)
c... | <commit_before>from django.shortcuts import render
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status
from rest_framework.permissions import IsAuthenticated
class ShopAPIView(APIView):
permission_classes = (IsAuthenticated,)
class OrdersView(Sh... | from django.shortcuts import render
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status
from rest_framework.permissions import IsAuthenticated
from django.db import transaction
class ShopAPIView(APIView):
permission_classes = (IsAuthenticated,)
c... | from django.shortcuts import render
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status
from rest_framework.permissions import IsAuthenticated
class ShopAPIView(APIView):
permission_classes = (IsAuthenticated,)
class OrdersView(ShopAPIView):
... | <commit_before>from django.shortcuts import render
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status
from rest_framework.permissions import IsAuthenticated
class ShopAPIView(APIView):
permission_classes = (IsAuthenticated,)
class OrdersView(Sh... |
fbbe6b46b93274567e031d2ba7874fe3231b1557 | openacademy/model/openacademy_course.py | openacademy/model/openacademy_course.py | # -*- coding: utf-8 -*-
from openerp import models, fields, api
'''
This module create model of Course
'''
class Course(models.Model):
'''
This class create model of Course
'''
_name = 'openacademy.course' # model odoo name
name = fields.Char(string="Title", required=True)
description = fiel... | # -*- coding: utf-8 -*-
from openerp import models, fields, api
'''
This module create model of Course
'''
class Course(models.Model):
'''
This class create model of Course
'''
_name = 'openacademy.course' # model odoo name
name = fields.Char(string="Title", required=True)
description = fiel... | Modify copy method into inherit | [REF] openacademy: Modify copy method into inherit
| Python | apache-2.0 | lescobarvx/curso-tecnico-odoo | # -*- coding: utf-8 -*-
from openerp import models, fields, api
'''
This module create model of Course
'''
class Course(models.Model):
'''
This class create model of Course
'''
_name = 'openacademy.course' # model odoo name
name = fields.Char(string="Title", required=True)
description = fiel... | # -*- coding: utf-8 -*-
from openerp import models, fields, api
'''
This module create model of Course
'''
class Course(models.Model):
'''
This class create model of Course
'''
_name = 'openacademy.course' # model odoo name
name = fields.Char(string="Title", required=True)
description = fiel... | <commit_before># -*- coding: utf-8 -*-
from openerp import models, fields, api
'''
This module create model of Course
'''
class Course(models.Model):
'''
This class create model of Course
'''
_name = 'openacademy.course' # model odoo name
name = fields.Char(string="Title", required=True)
des... | # -*- coding: utf-8 -*-
from openerp import models, fields, api
'''
This module create model of Course
'''
class Course(models.Model):
'''
This class create model of Course
'''
_name = 'openacademy.course' # model odoo name
name = fields.Char(string="Title", required=True)
description = fiel... | # -*- coding: utf-8 -*-
from openerp import models, fields, api
'''
This module create model of Course
'''
class Course(models.Model):
'''
This class create model of Course
'''
_name = 'openacademy.course' # model odoo name
name = fields.Char(string="Title", required=True)
description = fiel... | <commit_before># -*- coding: utf-8 -*-
from openerp import models, fields, api
'''
This module create model of Course
'''
class Course(models.Model):
'''
This class create model of Course
'''
_name = 'openacademy.course' # model odoo name
name = fields.Char(string="Title", required=True)
des... |
979d1b8ce4567432a6816b55fe5c29ef7c190459 | aospy_user/calcs/tendencies.py | aospy_user/calcs/tendencies.py | """Calculations involved in mass and energy budgets."""
import numpy as np
from aospy.utils import coord_to_new_dataarray
from .. import TIME_STR
def first_to_last_vals_dur(arr, freq='1M'):
"""Time elapsed between 1st and last values in each given time period."""
time = coord_to_new_dataarray(arr, TIME_STR)
... | """Calculations involved in mass and energy budgets."""
import numpy as np
from aospy.utils import coord_to_new_dataarray
from .. import TIME_STR
def first_to_last_vals_dur(arr, freq='1M'):
"""Time elapsed between 1st and last values in each given time period."""
time = coord_to_new_dataarray(arr, TIME_STR)
... | Add experimental every-timestep tendency function | Add experimental every-timestep tendency function
| Python | apache-2.0 | spencerahill/aospy-obj-lib | """Calculations involved in mass and energy budgets."""
import numpy as np
from aospy.utils import coord_to_new_dataarray
from .. import TIME_STR
def first_to_last_vals_dur(arr, freq='1M'):
"""Time elapsed between 1st and last values in each given time period."""
time = coord_to_new_dataarray(arr, TIME_STR)
... | """Calculations involved in mass and energy budgets."""
import numpy as np
from aospy.utils import coord_to_new_dataarray
from .. import TIME_STR
def first_to_last_vals_dur(arr, freq='1M'):
"""Time elapsed between 1st and last values in each given time period."""
time = coord_to_new_dataarray(arr, TIME_STR)
... | <commit_before>"""Calculations involved in mass and energy budgets."""
import numpy as np
from aospy.utils import coord_to_new_dataarray
from .. import TIME_STR
def first_to_last_vals_dur(arr, freq='1M'):
"""Time elapsed between 1st and last values in each given time period."""
time = coord_to_new_dataarray(... | """Calculations involved in mass and energy budgets."""
import numpy as np
from aospy.utils import coord_to_new_dataarray
from .. import TIME_STR
def first_to_last_vals_dur(arr, freq='1M'):
"""Time elapsed between 1st and last values in each given time period."""
time = coord_to_new_dataarray(arr, TIME_STR)
... | """Calculations involved in mass and energy budgets."""
import numpy as np
from aospy.utils import coord_to_new_dataarray
from .. import TIME_STR
def first_to_last_vals_dur(arr, freq='1M'):
"""Time elapsed between 1st and last values in each given time period."""
time = coord_to_new_dataarray(arr, TIME_STR)
... | <commit_before>"""Calculations involved in mass and energy budgets."""
import numpy as np
from aospy.utils import coord_to_new_dataarray
from .. import TIME_STR
def first_to_last_vals_dur(arr, freq='1M'):
"""Time elapsed between 1st and last values in each given time period."""
time = coord_to_new_dataarray(... |
7d76b44c371d74cb8c7b272fd9bf8021db6c6702 | qa/rpc-tests/test_framework/cashlib/__init__.py | qa/rpc-tests/test_framework/cashlib/__init__.py | # Copyright (c) 2018 The Bitcoin Unlimited developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
from test_framework.cashlib.cashlib import init, bin2hex, signTxInput, randombytes, pubkey, spendscript, addrbin, txid, SIGHASH_... | # Copyright (c) 2018 The Bitcoin Unlimited developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
from .cashlib import init, bin2hex, signTxInput, randombytes, pubkey, spendscript, addrbin, txid, SIGHASH_ALL, SIGHASH_NONE, SIG... | Use relative import for cashlib | Use relative import for cashlib
| Python | mit | BitcoinUnlimited/BitcoinUnlimited,Justaphf/BitcoinUnlimited,BitcoinUnlimited/BitcoinUnlimited,BitcoinUnlimited/BitcoinUnlimited,BitcoinUnlimited/BitcoinUnlimited,Justaphf/BitcoinUnlimited,Justaphf/BitcoinUnlimited,Justaphf/BitcoinUnlimited,BitcoinUnlimited/BitcoinUnlimited,BitcoinUnlimited/BitcoinUnlimited,Justaphf/Bit... | # Copyright (c) 2018 The Bitcoin Unlimited developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
from test_framework.cashlib.cashlib import init, bin2hex, signTxInput, randombytes, pubkey, spendscript, addrbin, txid, SIGHASH_... | # Copyright (c) 2018 The Bitcoin Unlimited developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
from .cashlib import init, bin2hex, signTxInput, randombytes, pubkey, spendscript, addrbin, txid, SIGHASH_ALL, SIGHASH_NONE, SIG... | <commit_before># Copyright (c) 2018 The Bitcoin Unlimited developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
from test_framework.cashlib.cashlib import init, bin2hex, signTxInput, randombytes, pubkey, spendscript, addrbin,... | # Copyright (c) 2018 The Bitcoin Unlimited developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
from .cashlib import init, bin2hex, signTxInput, randombytes, pubkey, spendscript, addrbin, txid, SIGHASH_ALL, SIGHASH_NONE, SIG... | # Copyright (c) 2018 The Bitcoin Unlimited developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
from test_framework.cashlib.cashlib import init, bin2hex, signTxInput, randombytes, pubkey, spendscript, addrbin, txid, SIGHASH_... | <commit_before># Copyright (c) 2018 The Bitcoin Unlimited developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
from test_framework.cashlib.cashlib import init, bin2hex, signTxInput, randombytes, pubkey, spendscript, addrbin,... |
ad5da54795ac1329c683e069d3148120470b6451 | brainhack/covariance/pearson.py | brainhack/covariance/pearson.py | import numpy as np
from scipy.sparse import coo_matrix
from sklearn.base import BaseEstimator
class PearsonCorrelation(BaseEstimator):
"""Pearson correlation estimator
"""
def __init__(self, assume_centered=False):
self.assume_centered = assume_centered
def fit(self, X, y=None, connectivity=... | import numpy as np
from scipy.sparse import coo_matrix
from sklearn.base import BaseEstimator
import scipy as sp
class PearsonCorrelation(BaseEstimator):
"""Pearson correlation estimator
"""
def __init__(self, assume_centered=False, spatial=False):
self.assume_centered = assume_centered
s... | Add option for spatial correlation | Add option for spatial correlation
| Python | bsd-3-clause | AlexandreAbraham/brainhack2013 | import numpy as np
from scipy.sparse import coo_matrix
from sklearn.base import BaseEstimator
class PearsonCorrelation(BaseEstimator):
"""Pearson correlation estimator
"""
def __init__(self, assume_centered=False):
self.assume_centered = assume_centered
def fit(self, X, y=None, connectivity=... | import numpy as np
from scipy.sparse import coo_matrix
from sklearn.base import BaseEstimator
import scipy as sp
class PearsonCorrelation(BaseEstimator):
"""Pearson correlation estimator
"""
def __init__(self, assume_centered=False, spatial=False):
self.assume_centered = assume_centered
s... | <commit_before>import numpy as np
from scipy.sparse import coo_matrix
from sklearn.base import BaseEstimator
class PearsonCorrelation(BaseEstimator):
"""Pearson correlation estimator
"""
def __init__(self, assume_centered=False):
self.assume_centered = assume_centered
def fit(self, X, y=None... | import numpy as np
from scipy.sparse import coo_matrix
from sklearn.base import BaseEstimator
import scipy as sp
class PearsonCorrelation(BaseEstimator):
"""Pearson correlation estimator
"""
def __init__(self, assume_centered=False, spatial=False):
self.assume_centered = assume_centered
s... | import numpy as np
from scipy.sparse import coo_matrix
from sklearn.base import BaseEstimator
class PearsonCorrelation(BaseEstimator):
"""Pearson correlation estimator
"""
def __init__(self, assume_centered=False):
self.assume_centered = assume_centered
def fit(self, X, y=None, connectivity=... | <commit_before>import numpy as np
from scipy.sparse import coo_matrix
from sklearn.base import BaseEstimator
class PearsonCorrelation(BaseEstimator):
"""Pearson correlation estimator
"""
def __init__(self, assume_centered=False):
self.assume_centered = assume_centered
def fit(self, X, y=None... |
6d44672ab0689f6d000001749e0e81b4a9b375f7 | reporting_scripts/user_info.py | reporting_scripts/user_info.py | '''
This module will retrieve info about students registered in the course
Usage:
python user_info.py
'''
from collections import defaultdict
from base_edx import EdXConnection
from generate_csv_report import CSV
connection = EdXConnection('certificates_generatedcertificate', 'auth_userprofile')
collection = con... | '''
This module will retrieve info about students registered in the course
Usage:
python user_info.py
'''
from base_edx import EdXConnection
from generate_csv_report import CSV
connection = EdXConnection('certificates_generatedcertificate', 'auth_userprofile')
collection = connection.get_access_to_collection()
d... | Update to handle users with no final grade | Update to handle users with no final grade
| Python | mit | McGillX/edx_data_research,andyzsf/edx_data_research,McGillX/edx_data_research,andyzsf/edx_data_research,McGillX/edx_data_research | '''
This module will retrieve info about students registered in the course
Usage:
python user_info.py
'''
from collections import defaultdict
from base_edx import EdXConnection
from generate_csv_report import CSV
connection = EdXConnection('certificates_generatedcertificate', 'auth_userprofile')
collection = con... | '''
This module will retrieve info about students registered in the course
Usage:
python user_info.py
'''
from base_edx import EdXConnection
from generate_csv_report import CSV
connection = EdXConnection('certificates_generatedcertificate', 'auth_userprofile')
collection = connection.get_access_to_collection()
d... | <commit_before>'''
This module will retrieve info about students registered in the course
Usage:
python user_info.py
'''
from collections import defaultdict
from base_edx import EdXConnection
from generate_csv_report import CSV
connection = EdXConnection('certificates_generatedcertificate', 'auth_userprofile')
c... | '''
This module will retrieve info about students registered in the course
Usage:
python user_info.py
'''
from base_edx import EdXConnection
from generate_csv_report import CSV
connection = EdXConnection('certificates_generatedcertificate', 'auth_userprofile')
collection = connection.get_access_to_collection()
d... | '''
This module will retrieve info about students registered in the course
Usage:
python user_info.py
'''
from collections import defaultdict
from base_edx import EdXConnection
from generate_csv_report import CSV
connection = EdXConnection('certificates_generatedcertificate', 'auth_userprofile')
collection = con... | <commit_before>'''
This module will retrieve info about students registered in the course
Usage:
python user_info.py
'''
from collections import defaultdict
from base_edx import EdXConnection
from generate_csv_report import CSV
connection = EdXConnection('certificates_generatedcertificate', 'auth_userprofile')
c... |
40a59efec51661d4325e97f2e307963811336b94 | calaccess_processed/__init__.py | calaccess_processed/__init__.py | from __future__ import absolute_import
default_app_config = 'calaccess_processed.apps.CalAccessProcessedConfig'
| #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
default_app_config = 'calaccess_processed.apps.CalAccessProcessedConfig'
def get_model_list():
"""
Returns a model list of
"""
from django.apps import apps
model_list = apps.get_app_config("calaccess_processed").models.values()
return [
... | Add get_model_list and archive_directory_path functions | Add get_model_list and archive_directory_path functions
| Python | mit | california-civic-data-coalition/django-calaccess-processed-data,california-civic-data-coalition/django-calaccess-processed-data | from __future__ import absolute_import
default_app_config = 'calaccess_processed.apps.CalAccessProcessedConfig'
Add get_model_list and archive_directory_path functions | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
default_app_config = 'calaccess_processed.apps.CalAccessProcessedConfig'
def get_model_list():
"""
Returns a model list of
"""
from django.apps import apps
model_list = apps.get_app_config("calaccess_processed").models.values()
return [
... | <commit_before>from __future__ import absolute_import
default_app_config = 'calaccess_processed.apps.CalAccessProcessedConfig'
<commit_msg>Add get_model_list and archive_directory_path functions<commit_after> | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
default_app_config = 'calaccess_processed.apps.CalAccessProcessedConfig'
def get_model_list():
"""
Returns a model list of
"""
from django.apps import apps
model_list = apps.get_app_config("calaccess_processed").models.values()
return [
... | from __future__ import absolute_import
default_app_config = 'calaccess_processed.apps.CalAccessProcessedConfig'
Add get_model_list and archive_directory_path functions#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
default_app_config = 'calaccess_processed.apps.CalAccessProcessedConfig'
def get_model_list():
... | <commit_before>from __future__ import absolute_import
default_app_config = 'calaccess_processed.apps.CalAccessProcessedConfig'
<commit_msg>Add get_model_list and archive_directory_path functions<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
default_app_config = 'calaccess_processed.apps.CalAccess... |
df2bce1dc4542615a61b5346d2f7e89029e80de9 | caniusepython3/test/__init__.py | caniusepython3/test/__init__.py | try:
import unittest2 as unittest
except ImportError:
import unittest
try:
from unittest import mock
except ImportError:
import mock
try:
import xmlrpc.client as xmlrpc_client
except ImportError:
import xmlrpclib as xmlrpc_client
import functools
def skip_pypi_timeouts(method):
@functool... | import requests
try:
import unittest2 as unittest
except ImportError:
import unittest
try:
from unittest import mock
except ImportError:
import mock
import functools
def skip_pypi_timeouts(method):
@functools.wraps(method)
def closure(*args, **kwargs):
try:
method(*args, ... | Update test skipping based on requests | Update test skipping based on requests
| Python | apache-2.0 | brettcannon/caniusepython3 | try:
import unittest2 as unittest
except ImportError:
import unittest
try:
from unittest import mock
except ImportError:
import mock
try:
import xmlrpc.client as xmlrpc_client
except ImportError:
import xmlrpclib as xmlrpc_client
import functools
def skip_pypi_timeouts(method):
@functool... | import requests
try:
import unittest2 as unittest
except ImportError:
import unittest
try:
from unittest import mock
except ImportError:
import mock
import functools
def skip_pypi_timeouts(method):
@functools.wraps(method)
def closure(*args, **kwargs):
try:
method(*args, ... | <commit_before>try:
import unittest2 as unittest
except ImportError:
import unittest
try:
from unittest import mock
except ImportError:
import mock
try:
import xmlrpc.client as xmlrpc_client
except ImportError:
import xmlrpclib as xmlrpc_client
import functools
def skip_pypi_timeouts(method)... | import requests
try:
import unittest2 as unittest
except ImportError:
import unittest
try:
from unittest import mock
except ImportError:
import mock
import functools
def skip_pypi_timeouts(method):
@functools.wraps(method)
def closure(*args, **kwargs):
try:
method(*args, ... | try:
import unittest2 as unittest
except ImportError:
import unittest
try:
from unittest import mock
except ImportError:
import mock
try:
import xmlrpc.client as xmlrpc_client
except ImportError:
import xmlrpclib as xmlrpc_client
import functools
def skip_pypi_timeouts(method):
@functool... | <commit_before>try:
import unittest2 as unittest
except ImportError:
import unittest
try:
from unittest import mock
except ImportError:
import mock
try:
import xmlrpc.client as xmlrpc_client
except ImportError:
import xmlrpclib as xmlrpc_client
import functools
def skip_pypi_timeouts(method)... |
18d2c4be27b58a142145f0726e6be21c358064cd | src/rnaseq_lib/docker/__init__.py | src/rnaseq_lib/docker/__init__.py | import os
from subprocess import call
def base_docker_call(mount):
return ['docker', 'run', '--rm', '-v', '{}:/data'.format(mount)]
def fix_directory_ownership(output_dir, tool):
"""
Uses a Docker container to change ownership recursively of a directory
:param str output_dir: Directory to change ow... | import os
from subprocess import call
def base_docker_call(mount):
"""
Returns the boilerplate array used for Docker calls
:param str mount: Directory to mount
:return: Docker run parameters
:rtype: list(str)
"""
return ['docker', 'run', '--rm', '-v', '{}:/data'.format(os.path.abspath(mou... | Use abspath for docker mount | Use abspath for docker mount
| Python | mit | jvivian/rnaseq-lib,jvivian/rnaseq-lib | import os
from subprocess import call
def base_docker_call(mount):
return ['docker', 'run', '--rm', '-v', '{}:/data'.format(mount)]
def fix_directory_ownership(output_dir, tool):
"""
Uses a Docker container to change ownership recursively of a directory
:param str output_dir: Directory to change ow... | import os
from subprocess import call
def base_docker_call(mount):
"""
Returns the boilerplate array used for Docker calls
:param str mount: Directory to mount
:return: Docker run parameters
:rtype: list(str)
"""
return ['docker', 'run', '--rm', '-v', '{}:/data'.format(os.path.abspath(mou... | <commit_before>import os
from subprocess import call
def base_docker_call(mount):
return ['docker', 'run', '--rm', '-v', '{}:/data'.format(mount)]
def fix_directory_ownership(output_dir, tool):
"""
Uses a Docker container to change ownership recursively of a directory
:param str output_dir: Directo... | import os
from subprocess import call
def base_docker_call(mount):
"""
Returns the boilerplate array used for Docker calls
:param str mount: Directory to mount
:return: Docker run parameters
:rtype: list(str)
"""
return ['docker', 'run', '--rm', '-v', '{}:/data'.format(os.path.abspath(mou... | import os
from subprocess import call
def base_docker_call(mount):
return ['docker', 'run', '--rm', '-v', '{}:/data'.format(mount)]
def fix_directory_ownership(output_dir, tool):
"""
Uses a Docker container to change ownership recursively of a directory
:param str output_dir: Directory to change ow... | <commit_before>import os
from subprocess import call
def base_docker_call(mount):
return ['docker', 'run', '--rm', '-v', '{}:/data'.format(mount)]
def fix_directory_ownership(output_dir, tool):
"""
Uses a Docker container to change ownership recursively of a directory
:param str output_dir: Directo... |
76f77023095b068402553b878a65f0566d8add81 | runapp.py | runapp.py | import os
from paste.deploy import loadapp
from waitress import serve
if __name__ == "__main__":
port = int(os.environ.get("PORT", 5000))
app = loadapp('config:production.ini', relative_to='.')
serve(app, host='0.0.0.0', port=port)
| import os
from paste.deploy import loadapp
from pyramid.paster import setup_logging
from waitress import serve
if __name__ == "__main__":
port = int(os.environ.get("PORT", 5000))
setup_logging('production.ini')
app = loadapp('config:production.ini', relative_to='.')
serve(app, host='0.0.0.0', port=po... | Enable logs when run in Heroku | Enable logs when run in Heroku
| Python | agpl-3.0 | Yaco-Sistemas/yith-library-server,lorenzogil/yith-library-server,Yaco-Sistemas/yith-library-server,lorenzogil/yith-library-server,Yaco-Sistemas/yith-library-server,lorenzogil/yith-library-server | import os
from paste.deploy import loadapp
from waitress import serve
if __name__ == "__main__":
port = int(os.environ.get("PORT", 5000))
app = loadapp('config:production.ini', relative_to='.')
serve(app, host='0.0.0.0', port=port)
Enable logs when run in Heroku | import os
from paste.deploy import loadapp
from pyramid.paster import setup_logging
from waitress import serve
if __name__ == "__main__":
port = int(os.environ.get("PORT", 5000))
setup_logging('production.ini')
app = loadapp('config:production.ini', relative_to='.')
serve(app, host='0.0.0.0', port=po... | <commit_before>import os
from paste.deploy import loadapp
from waitress import serve
if __name__ == "__main__":
port = int(os.environ.get("PORT", 5000))
app = loadapp('config:production.ini', relative_to='.')
serve(app, host='0.0.0.0', port=port)
<commit_msg>Enable logs when run in Heroku<commit_after> | import os
from paste.deploy import loadapp
from pyramid.paster import setup_logging
from waitress import serve
if __name__ == "__main__":
port = int(os.environ.get("PORT", 5000))
setup_logging('production.ini')
app = loadapp('config:production.ini', relative_to='.')
serve(app, host='0.0.0.0', port=po... | import os
from paste.deploy import loadapp
from waitress import serve
if __name__ == "__main__":
port = int(os.environ.get("PORT", 5000))
app = loadapp('config:production.ini', relative_to='.')
serve(app, host='0.0.0.0', port=port)
Enable logs when run in Herokuimport os
from paste.deploy import loadapp... | <commit_before>import os
from paste.deploy import loadapp
from waitress import serve
if __name__ == "__main__":
port = int(os.environ.get("PORT", 5000))
app = loadapp('config:production.ini', relative_to='.')
serve(app, host='0.0.0.0', port=port)
<commit_msg>Enable logs when run in Heroku<commit_after>im... |
2c965c0a75be129f429e40ade34ef608f8ceea27 | micropress/urls.py | micropress/urls.py | from django.conf.urls.defaults import *
urlpatterns = patterns('micropress.views',
(r'^$', 'article_list'),
(r'^issue/(?P<issue>\d+)/$', 'issue_list'),
(r'^article/(?P<slug>[-\w]+)/$', 'article_detail'),
#(r'^new/$', 'article_create'),
)
| from django.conf.urls.defaults import *
urlpatterns = patterns('micropress.views',
(r'^$', 'article_list'),
url(r'^issue/(?P<issue>\d+)/$', 'article_list', name='issue_list'),
(r'^article/(?P<slug>[-\w]+)/$', 'article_detail'),
#(r'^new/$', 'article_create'),
)
| Fix url spec for article list by issue. | Fix url spec for article list by issue.
| Python | mit | jbradberry/django-micro-press,jbradberry/django-micro-press | from django.conf.urls.defaults import *
urlpatterns = patterns('micropress.views',
(r'^$', 'article_list'),
(r'^issue/(?P<issue>\d+)/$', 'issue_list'),
(r'^article/(?P<slug>[-\w]+)/$', 'article_detail'),
#(r'^new/$', 'article_create'),
)
Fix url spec for article list by issue. | from django.conf.urls.defaults import *
urlpatterns = patterns('micropress.views',
(r'^$', 'article_list'),
url(r'^issue/(?P<issue>\d+)/$', 'article_list', name='issue_list'),
(r'^article/(?P<slug>[-\w]+)/$', 'article_detail'),
#(r'^new/$', 'article_create'),
)
| <commit_before>from django.conf.urls.defaults import *
urlpatterns = patterns('micropress.views',
(r'^$', 'article_list'),
(r'^issue/(?P<issue>\d+)/$', 'issue_list'),
(r'^article/(?P<slug>[-\w]+)/$', 'article_detail'),
#(r'^new/$', 'article_create'),
)
<commit_msg>Fix url spec for article list by issu... | from django.conf.urls.defaults import *
urlpatterns = patterns('micropress.views',
(r'^$', 'article_list'),
url(r'^issue/(?P<issue>\d+)/$', 'article_list', name='issue_list'),
(r'^article/(?P<slug>[-\w]+)/$', 'article_detail'),
#(r'^new/$', 'article_create'),
)
| from django.conf.urls.defaults import *
urlpatterns = patterns('micropress.views',
(r'^$', 'article_list'),
(r'^issue/(?P<issue>\d+)/$', 'issue_list'),
(r'^article/(?P<slug>[-\w]+)/$', 'article_detail'),
#(r'^new/$', 'article_create'),
)
Fix url spec for article list by issue.from django.conf.urls.def... | <commit_before>from django.conf.urls.defaults import *
urlpatterns = patterns('micropress.views',
(r'^$', 'article_list'),
(r'^issue/(?P<issue>\d+)/$', 'issue_list'),
(r'^article/(?P<slug>[-\w]+)/$', 'article_detail'),
#(r'^new/$', 'article_create'),
)
<commit_msg>Fix url spec for article list by issu... |
794f3d7e229f94b71a7cb3aaefd4640b185e2572 | feder/letters/management/commands/reimport_mailbox.py | feder/letters/management/commands/reimport_mailbox.py | from __future__ import unicode_literals
from django.core.management.base import BaseCommand
from django_mailbox.models import Message
from feder.letters.signals import MessageParser
class Command(BaseCommand):
help = "Reimport mailbox archived emails as letter."
def handle(self, *args, **options):
... | from __future__ import unicode_literals
from django.core.management.base import BaseCommand
from django_mailbox.models import Message
from feder.letters.signals import MessageParser
class Command(BaseCommand):
help = "Reimport mailbox archived emails as letter."
def handle(self, *args, **options):
... | Disable delete message on IO error | Disable delete message on IO error
| Python | mit | watchdogpolska/feder,watchdogpolska/feder,watchdogpolska/feder,watchdogpolska/feder | from __future__ import unicode_literals
from django.core.management.base import BaseCommand
from django_mailbox.models import Message
from feder.letters.signals import MessageParser
class Command(BaseCommand):
help = "Reimport mailbox archived emails as letter."
def handle(self, *args, **options):
... | from __future__ import unicode_literals
from django.core.management.base import BaseCommand
from django_mailbox.models import Message
from feder.letters.signals import MessageParser
class Command(BaseCommand):
help = "Reimport mailbox archived emails as letter."
def handle(self, *args, **options):
... | <commit_before>from __future__ import unicode_literals
from django.core.management.base import BaseCommand
from django_mailbox.models import Message
from feder.letters.signals import MessageParser
class Command(BaseCommand):
help = "Reimport mailbox archived emails as letter."
def handle(self, *args, **op... | from __future__ import unicode_literals
from django.core.management.base import BaseCommand
from django_mailbox.models import Message
from feder.letters.signals import MessageParser
class Command(BaseCommand):
help = "Reimport mailbox archived emails as letter."
def handle(self, *args, **options):
... | from __future__ import unicode_literals
from django.core.management.base import BaseCommand
from django_mailbox.models import Message
from feder.letters.signals import MessageParser
class Command(BaseCommand):
help = "Reimport mailbox archived emails as letter."
def handle(self, *args, **options):
... | <commit_before>from __future__ import unicode_literals
from django.core.management.base import BaseCommand
from django_mailbox.models import Message
from feder.letters.signals import MessageParser
class Command(BaseCommand):
help = "Reimport mailbox archived emails as letter."
def handle(self, *args, **op... |
673d96c8845a69f567ffe4475d5eb9f110b9995c | cloudenvy/commands/envy_list.py | cloudenvy/commands/envy_list.py | from cloudenvy.envy import Envy
class EnvyList(object):
def __init__(self, argparser):
self._build_subparser(argparser)
def _build_subparser(self, subparsers):
help_str = 'List all ENVys in your current project.'
subparser = subparsers.add_parser('list', help=help_str,
... | from cloudenvy.envy import Envy
class EnvyList(object):
def __init__(self, argparser):
self._build_subparser(argparser)
def _build_subparser(self, subparsers):
help_str = 'List all ENVys in your current project.'
subparser = subparsers.add_parser('list', help=help_str,
... | Remove --name from 'envy list' | Remove --name from 'envy list'
| Python | apache-2.0 | cloudenvy/cloudenvy | from cloudenvy.envy import Envy
class EnvyList(object):
def __init__(self, argparser):
self._build_subparser(argparser)
def _build_subparser(self, subparsers):
help_str = 'List all ENVys in your current project.'
subparser = subparsers.add_parser('list', help=help_str,
... | from cloudenvy.envy import Envy
class EnvyList(object):
def __init__(self, argparser):
self._build_subparser(argparser)
def _build_subparser(self, subparsers):
help_str = 'List all ENVys in your current project.'
subparser = subparsers.add_parser('list', help=help_str,
... | <commit_before>from cloudenvy.envy import Envy
class EnvyList(object):
def __init__(self, argparser):
self._build_subparser(argparser)
def _build_subparser(self, subparsers):
help_str = 'List all ENVys in your current project.'
subparser = subparsers.add_parser('list', help=help_str,... | from cloudenvy.envy import Envy
class EnvyList(object):
def __init__(self, argparser):
self._build_subparser(argparser)
def _build_subparser(self, subparsers):
help_str = 'List all ENVys in your current project.'
subparser = subparsers.add_parser('list', help=help_str,
... | from cloudenvy.envy import Envy
class EnvyList(object):
def __init__(self, argparser):
self._build_subparser(argparser)
def _build_subparser(self, subparsers):
help_str = 'List all ENVys in your current project.'
subparser = subparsers.add_parser('list', help=help_str,
... | <commit_before>from cloudenvy.envy import Envy
class EnvyList(object):
def __init__(self, argparser):
self._build_subparser(argparser)
def _build_subparser(self, subparsers):
help_str = 'List all ENVys in your current project.'
subparser = subparsers.add_parser('list', help=help_str,... |
a0b4476d08c59da74eb64cbcc92621cad160fbce | scipy_distutils/setup.py | scipy_distutils/setup.py | import sys
sys.path.insert(0,'..')
import os
d = os.path.basename(os.path.dirname(os.path.abspath(__file__)))
if d == 'scipy_distutils':
execfile('setup_scipy_distutils.py')
else:
os.system('cd .. && ln -s %s scipy_distutils' % (d))
execfile('setup_scipy_distutils.py')
os.system('cd .. && rm -f scipy_di... | import sys
sys.path.insert(0,'..')
import os
d = os.path.basename(os.path.dirname(os.path.abspath(__file__)))
if d == 'scipy_distutils':
import scipy_distutils
del sys.path[0]
execfile('setup_scipy_distutils.py')
else:
os.system('cd .. && ln -s %s scipy_distutils' % (d))
import scipy_distutils
d... | Clean up sys.path after scipy_distutils has been imported. | Clean up sys.path after scipy_distutils has been imported.
| Python | bsd-3-clause | mattip/numpy,andsor/numpy,naritta/numpy,GaZ3ll3/numpy,jschueller/numpy,felipebetancur/numpy,bertrand-l/numpy,argriffing/numpy,pbrod/numpy,dato-code/numpy,AustereCuriosity/numpy,cjermain/numpy,argriffing/numpy,astrofrog/numpy,seberg/numpy,jankoslavic/numpy,rmcgibbo/numpy,Yusa95/numpy,cjermain/numpy,nguyentu1602/numpy,gi... | import sys
sys.path.insert(0,'..')
import os
d = os.path.basename(os.path.dirname(os.path.abspath(__file__)))
if d == 'scipy_distutils':
execfile('setup_scipy_distutils.py')
else:
os.system('cd .. && ln -s %s scipy_distutils' % (d))
execfile('setup_scipy_distutils.py')
os.system('cd .. && rm -f scipy_di... | import sys
sys.path.insert(0,'..')
import os
d = os.path.basename(os.path.dirname(os.path.abspath(__file__)))
if d == 'scipy_distutils':
import scipy_distutils
del sys.path[0]
execfile('setup_scipy_distutils.py')
else:
os.system('cd .. && ln -s %s scipy_distutils' % (d))
import scipy_distutils
d... | <commit_before>import sys
sys.path.insert(0,'..')
import os
d = os.path.basename(os.path.dirname(os.path.abspath(__file__)))
if d == 'scipy_distutils':
execfile('setup_scipy_distutils.py')
else:
os.system('cd .. && ln -s %s scipy_distutils' % (d))
execfile('setup_scipy_distutils.py')
os.system('cd .. &&... | import sys
sys.path.insert(0,'..')
import os
d = os.path.basename(os.path.dirname(os.path.abspath(__file__)))
if d == 'scipy_distutils':
import scipy_distutils
del sys.path[0]
execfile('setup_scipy_distutils.py')
else:
os.system('cd .. && ln -s %s scipy_distutils' % (d))
import scipy_distutils
d... | import sys
sys.path.insert(0,'..')
import os
d = os.path.basename(os.path.dirname(os.path.abspath(__file__)))
if d == 'scipy_distutils':
execfile('setup_scipy_distutils.py')
else:
os.system('cd .. && ln -s %s scipy_distutils' % (d))
execfile('setup_scipy_distutils.py')
os.system('cd .. && rm -f scipy_di... | <commit_before>import sys
sys.path.insert(0,'..')
import os
d = os.path.basename(os.path.dirname(os.path.abspath(__file__)))
if d == 'scipy_distutils':
execfile('setup_scipy_distutils.py')
else:
os.system('cd .. && ln -s %s scipy_distutils' % (d))
execfile('setup_scipy_distutils.py')
os.system('cd .. &&... |
8d63079647d37b3d479dab13efacd1eafeac9629 | .travis/run_all_tests.py | .travis/run_all_tests.py | #!/usr/bin/python
import sys, os, os.path
from subprocess import call
cur_dir = os.path.dirname(os.path.realpath(__file__))
parent_dir = os.path.dirname(cur_dir)
statuses = [
call(["echo", "Running python unit tests via nose..."]),
call(["/usr/bin/env", "nosetests", parent_dir], env=os.environ.copy()),
c... | #!/usr/bin/python
import sys, os, os.path
from subprocess import call
cur_dir = os.path.dirname(os.path.realpath(__file__))
parent_dir = os.path.dirname(cur_dir)
statuses = [
call(["echo", "Running python unit tests via nose..."]),
call([os.path.join(parent_dir, "manage.py"), "test", "harmony.apps.lab.tests"... | Update test harness configuration for Travis CI. | Update test harness configuration for Travis CI.
| Python | bsd-3-clause | Harvard-ATG/HarmonyLab,Harvard-ATG/HarmonyLab,Harvard-ATG/HarmonyLab,Harvard-ATG/HarmonyLab | #!/usr/bin/python
import sys, os, os.path
from subprocess import call
cur_dir = os.path.dirname(os.path.realpath(__file__))
parent_dir = os.path.dirname(cur_dir)
statuses = [
call(["echo", "Running python unit tests via nose..."]),
call(["/usr/bin/env", "nosetests", parent_dir], env=os.environ.copy()),
c... | #!/usr/bin/python
import sys, os, os.path
from subprocess import call
cur_dir = os.path.dirname(os.path.realpath(__file__))
parent_dir = os.path.dirname(cur_dir)
statuses = [
call(["echo", "Running python unit tests via nose..."]),
call([os.path.join(parent_dir, "manage.py"), "test", "harmony.apps.lab.tests"... | <commit_before>#!/usr/bin/python
import sys, os, os.path
from subprocess import call
cur_dir = os.path.dirname(os.path.realpath(__file__))
parent_dir = os.path.dirname(cur_dir)
statuses = [
call(["echo", "Running python unit tests via nose..."]),
call(["/usr/bin/env", "nosetests", parent_dir], env=os.environ... | #!/usr/bin/python
import sys, os, os.path
from subprocess import call
cur_dir = os.path.dirname(os.path.realpath(__file__))
parent_dir = os.path.dirname(cur_dir)
statuses = [
call(["echo", "Running python unit tests via nose..."]),
call([os.path.join(parent_dir, "manage.py"), "test", "harmony.apps.lab.tests"... | #!/usr/bin/python
import sys, os, os.path
from subprocess import call
cur_dir = os.path.dirname(os.path.realpath(__file__))
parent_dir = os.path.dirname(cur_dir)
statuses = [
call(["echo", "Running python unit tests via nose..."]),
call(["/usr/bin/env", "nosetests", parent_dir], env=os.environ.copy()),
c... | <commit_before>#!/usr/bin/python
import sys, os, os.path
from subprocess import call
cur_dir = os.path.dirname(os.path.realpath(__file__))
parent_dir = os.path.dirname(cur_dir)
statuses = [
call(["echo", "Running python unit tests via nose..."]),
call(["/usr/bin/env", "nosetests", parent_dir], env=os.environ... |
1b73399006c6dbd972814f680eb1d2e582699ad7 | examples/xor-classfier.py | examples/xor-classfier.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''Example using the theanets package for learning the XOR relation.'''
import climate
import numpy as np
import theanets
climate.enable_default_logging()
X = np.array([[0.0, 0.0], [0.0, 1.0], [1.0, 0.0], [1.0, 1.0]])
Y = np.array([0, 1, 1, 0, ])
Xi = np.random.randint... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''Example using the theanets package for learning the XOR relation.'''
import climate
import numpy as np
import theanets
climate.enable_default_logging()
X = np.array([[0.0, 0.0], [0.0, 1.0], [1.0, 0.0], [1.0, 1.0]])
Y = np.array([0, 1, 1, 0, ])
Xi = np.random.randint... | Adjust default parameters for xor classifier. | Adjust default parameters for xor classifier.
| Python | mit | lmjohns3/theanets,chrinide/theanets,devdoer/theanets | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''Example using the theanets package for learning the XOR relation.'''
import climate
import numpy as np
import theanets
climate.enable_default_logging()
X = np.array([[0.0, 0.0], [0.0, 1.0], [1.0, 0.0], [1.0, 1.0]])
Y = np.array([0, 1, 1, 0, ])
Xi = np.random.randint... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''Example using the theanets package for learning the XOR relation.'''
import climate
import numpy as np
import theanets
climate.enable_default_logging()
X = np.array([[0.0, 0.0], [0.0, 1.0], [1.0, 0.0], [1.0, 1.0]])
Y = np.array([0, 1, 1, 0, ])
Xi = np.random.randint... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''Example using the theanets package for learning the XOR relation.'''
import climate
import numpy as np
import theanets
climate.enable_default_logging()
X = np.array([[0.0, 0.0], [0.0, 1.0], [1.0, 0.0], [1.0, 1.0]])
Y = np.array([0, 1, 1, 0, ])
Xi = np... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''Example using the theanets package for learning the XOR relation.'''
import climate
import numpy as np
import theanets
climate.enable_default_logging()
X = np.array([[0.0, 0.0], [0.0, 1.0], [1.0, 0.0], [1.0, 1.0]])
Y = np.array([0, 1, 1, 0, ])
Xi = np.random.randint... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''Example using the theanets package for learning the XOR relation.'''
import climate
import numpy as np
import theanets
climate.enable_default_logging()
X = np.array([[0.0, 0.0], [0.0, 1.0], [1.0, 0.0], [1.0, 1.0]])
Y = np.array([0, 1, 1, 0, ])
Xi = np.random.randint... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''Example using the theanets package for learning the XOR relation.'''
import climate
import numpy as np
import theanets
climate.enable_default_logging()
X = np.array([[0.0, 0.0], [0.0, 1.0], [1.0, 0.0], [1.0, 1.0]])
Y = np.array([0, 1, 1, 0, ])
Xi = np... |
72cb23aeffb2ec9ec29ad063fb4d586f00b67b57 | openpassword/pkcs_utils.py | openpassword/pkcs_utils.py | from math import fmod
def byte_pad(input_bytes, length=8):
if length > 256:
raise ValueError("Maximum padding length is 256")
# Modulo input bytes length with padding length to see how many bytes to pad with
bytes_to_pad = int(fmod(len(input_bytes), length))
# Pad input bytes with a sequence... | from math import fmod
def byte_pad(input_bytes, length=8):
if length > 256:
raise ValueError("Maximum padding length is 256")
# Modulo input bytes length with padding length to see how many bytes to pad with
bytes_to_pad = int(fmod(len(input_bytes), length))
# Pad input bytes with a sequence... | Convert byte to string before using it with ord() | Convert byte to string before using it with ord()
| Python | mit | openpassword/blimey,openpassword/blimey | from math import fmod
def byte_pad(input_bytes, length=8):
if length > 256:
raise ValueError("Maximum padding length is 256")
# Modulo input bytes length with padding length to see how many bytes to pad with
bytes_to_pad = int(fmod(len(input_bytes), length))
# Pad input bytes with a sequence... | from math import fmod
def byte_pad(input_bytes, length=8):
if length > 256:
raise ValueError("Maximum padding length is 256")
# Modulo input bytes length with padding length to see how many bytes to pad with
bytes_to_pad = int(fmod(len(input_bytes), length))
# Pad input bytes with a sequence... | <commit_before>from math import fmod
def byte_pad(input_bytes, length=8):
if length > 256:
raise ValueError("Maximum padding length is 256")
# Modulo input bytes length with padding length to see how many bytes to pad with
bytes_to_pad = int(fmod(len(input_bytes), length))
# Pad input bytes ... | from math import fmod
def byte_pad(input_bytes, length=8):
if length > 256:
raise ValueError("Maximum padding length is 256")
# Modulo input bytes length with padding length to see how many bytes to pad with
bytes_to_pad = int(fmod(len(input_bytes), length))
# Pad input bytes with a sequence... | from math import fmod
def byte_pad(input_bytes, length=8):
if length > 256:
raise ValueError("Maximum padding length is 256")
# Modulo input bytes length with padding length to see how many bytes to pad with
bytes_to_pad = int(fmod(len(input_bytes), length))
# Pad input bytes with a sequence... | <commit_before>from math import fmod
def byte_pad(input_bytes, length=8):
if length > 256:
raise ValueError("Maximum padding length is 256")
# Modulo input bytes length with padding length to see how many bytes to pad with
bytes_to_pad = int(fmod(len(input_bytes), length))
# Pad input bytes ... |
2b7f7705f709505ef89f759614cf76bc691c8b20 | zc_common/settings.py | zc_common/settings.py | from django.conf import settings
from rest_framework.settings import APISettings
import os
DEFAULTS = {
'GATEWAY_ROOT_PATH': getattr(
settings, 'GATEWAY_ROOT_PATH', os.environ.get('GATEWAY_ROOT_PATH', 'http://gateway:3000/'))
}
zc_settings = APISettings(None, DEFAULTS, None)
| from django.conf import settings
from rest_framework.settings import APISettings
import os
DEFAULTS = {
'GATEWAY_ROOT_PATH': getattr(
settings, 'GATEWAY_ROOT_PATH', os.environ.get('GATEWAY_ROOT_PATH', 'http://gateway:4000/'))
}
zc_settings = APISettings(None, DEFAULTS, None)
| Update default gateway port for local development | Update default gateway port for local development
| Python | mit | ZeroCater/zc_common,ZeroCater/zc_common | from django.conf import settings
from rest_framework.settings import APISettings
import os
DEFAULTS = {
'GATEWAY_ROOT_PATH': getattr(
settings, 'GATEWAY_ROOT_PATH', os.environ.get('GATEWAY_ROOT_PATH', 'http://gateway:3000/'))
}
zc_settings = APISettings(None, DEFAULTS, None)
Update default gateway port fo... | from django.conf import settings
from rest_framework.settings import APISettings
import os
DEFAULTS = {
'GATEWAY_ROOT_PATH': getattr(
settings, 'GATEWAY_ROOT_PATH', os.environ.get('GATEWAY_ROOT_PATH', 'http://gateway:4000/'))
}
zc_settings = APISettings(None, DEFAULTS, None)
| <commit_before>from django.conf import settings
from rest_framework.settings import APISettings
import os
DEFAULTS = {
'GATEWAY_ROOT_PATH': getattr(
settings, 'GATEWAY_ROOT_PATH', os.environ.get('GATEWAY_ROOT_PATH', 'http://gateway:3000/'))
}
zc_settings = APISettings(None, DEFAULTS, None)
<commit_msg>Upd... | from django.conf import settings
from rest_framework.settings import APISettings
import os
DEFAULTS = {
'GATEWAY_ROOT_PATH': getattr(
settings, 'GATEWAY_ROOT_PATH', os.environ.get('GATEWAY_ROOT_PATH', 'http://gateway:4000/'))
}
zc_settings = APISettings(None, DEFAULTS, None)
| from django.conf import settings
from rest_framework.settings import APISettings
import os
DEFAULTS = {
'GATEWAY_ROOT_PATH': getattr(
settings, 'GATEWAY_ROOT_PATH', os.environ.get('GATEWAY_ROOT_PATH', 'http://gateway:3000/'))
}
zc_settings = APISettings(None, DEFAULTS, None)
Update default gateway port fo... | <commit_before>from django.conf import settings
from rest_framework.settings import APISettings
import os
DEFAULTS = {
'GATEWAY_ROOT_PATH': getattr(
settings, 'GATEWAY_ROOT_PATH', os.environ.get('GATEWAY_ROOT_PATH', 'http://gateway:3000/'))
}
zc_settings = APISettings(None, DEFAULTS, None)
<commit_msg>Upd... |
d39361c3545e60467ff305e00cc09e1790f78c8b | src/lib/sd2/gen_hosts.py | src/lib/sd2/gen_hosts.py | #!/usr/bin/env python
#############################################################################
# Copyright (c) 2017 SiteWare Corp. All right reserved
#############################################################################
import os
from . import get_hosts
from .file_rewriter import FileRewriter
g_etc_hosts ... | #!/usr/bin/env python
#############################################################################
# Copyright (c) 2017 SiteWare Corp. All right reserved
#############################################################################
import os
from . import get_hosts
from .file_rewriter import FileRewriter
g_etc_hosts ... | Fix it to honor the environment variable when set | Fix it to honor the environment variable when set
| Python | apache-2.0 | gae123/sd2,gae123/sd2 | #!/usr/bin/env python
#############################################################################
# Copyright (c) 2017 SiteWare Corp. All right reserved
#############################################################################
import os
from . import get_hosts
from .file_rewriter import FileRewriter
g_etc_hosts ... | #!/usr/bin/env python
#############################################################################
# Copyright (c) 2017 SiteWare Corp. All right reserved
#############################################################################
import os
from . import get_hosts
from .file_rewriter import FileRewriter
g_etc_hosts ... | <commit_before>#!/usr/bin/env python
#############################################################################
# Copyright (c) 2017 SiteWare Corp. All right reserved
#############################################################################
import os
from . import get_hosts
from .file_rewriter import FileRewrite... | #!/usr/bin/env python
#############################################################################
# Copyright (c) 2017 SiteWare Corp. All right reserved
#############################################################################
import os
from . import get_hosts
from .file_rewriter import FileRewriter
g_etc_hosts ... | #!/usr/bin/env python
#############################################################################
# Copyright (c) 2017 SiteWare Corp. All right reserved
#############################################################################
import os
from . import get_hosts
from .file_rewriter import FileRewriter
g_etc_hosts ... | <commit_before>#!/usr/bin/env python
#############################################################################
# Copyright (c) 2017 SiteWare Corp. All right reserved
#############################################################################
import os
from . import get_hosts
from .file_rewriter import FileRewrite... |
0f6b0e6288a4bf24902fe52e0d157a5976a0aa59 | scripts/web-server/alexa-pi.py | scripts/web-server/alexa-pi.py | from flask import Flask
from flask_ask import Ask, statement, convert_errors
import logging
from rfsend import rf_send
GPIO.setmode(GPIO.BCM)
app = Flask(__name__)
ask = Ask(app, '/')
logging.getLogger("flask_ask").setLevel(logging.DEBUG)
@ask.intent('LocationControlIntent', mapping={'status': 'status', 'location':... | from flask import Flask
from flask_ask import Ask, statement, convert_errors
import logging
from rfsend import rf_send
app = Flask(__name__)
ask = Ask(app, '/')
logging.getLogger("flask_ask").setLevel(logging.DEBUG)
@ask.intent('LocationControlIntent', mapping={'status': 'status', 'location': 'location'})
def locati... | Update alexa pi server script. | Update alexa pi server script.
| Python | bsd-3-clause | kbsezginel/raspberry-pi,kbsezginel/raspberry-pi,kbsezginel/raspberry-pi,kbsezginel/raspberry-pi | from flask import Flask
from flask_ask import Ask, statement, convert_errors
import logging
from rfsend import rf_send
GPIO.setmode(GPIO.BCM)
app = Flask(__name__)
ask = Ask(app, '/')
logging.getLogger("flask_ask").setLevel(logging.DEBUG)
@ask.intent('LocationControlIntent', mapping={'status': 'status', 'location':... | from flask import Flask
from flask_ask import Ask, statement, convert_errors
import logging
from rfsend import rf_send
app = Flask(__name__)
ask = Ask(app, '/')
logging.getLogger("flask_ask").setLevel(logging.DEBUG)
@ask.intent('LocationControlIntent', mapping={'status': 'status', 'location': 'location'})
def locati... | <commit_before>from flask import Flask
from flask_ask import Ask, statement, convert_errors
import logging
from rfsend import rf_send
GPIO.setmode(GPIO.BCM)
app = Flask(__name__)
ask = Ask(app, '/')
logging.getLogger("flask_ask").setLevel(logging.DEBUG)
@ask.intent('LocationControlIntent', mapping={'status': 'statu... | from flask import Flask
from flask_ask import Ask, statement, convert_errors
import logging
from rfsend import rf_send
app = Flask(__name__)
ask = Ask(app, '/')
logging.getLogger("flask_ask").setLevel(logging.DEBUG)
@ask.intent('LocationControlIntent', mapping={'status': 'status', 'location': 'location'})
def locati... | from flask import Flask
from flask_ask import Ask, statement, convert_errors
import logging
from rfsend import rf_send
GPIO.setmode(GPIO.BCM)
app = Flask(__name__)
ask = Ask(app, '/')
logging.getLogger("flask_ask").setLevel(logging.DEBUG)
@ask.intent('LocationControlIntent', mapping={'status': 'status', 'location':... | <commit_before>from flask import Flask
from flask_ask import Ask, statement, convert_errors
import logging
from rfsend import rf_send
GPIO.setmode(GPIO.BCM)
app = Flask(__name__)
ask = Ask(app, '/')
logging.getLogger("flask_ask").setLevel(logging.DEBUG)
@ask.intent('LocationControlIntent', mapping={'status': 'statu... |
7cfe992263730e7b6e75ae8a84281f4e9d2ac644 | test/benchmark/params_examples.py | test/benchmark/params_examples.py | # -*- coding: utf-8 -*-
# Licensed under a 3-clause BSD style license - see LICENSE.rst
from __future__ import (absolute_import, division, print_function,
unicode_literals)
def track_param(n):
return 42
track_param.params = [10, 20]
def mem_param(n, m):
return [[0]*m]*n
mem_param.... | # -*- coding: utf-8 -*-
# Licensed under a 3-clause BSD style license - see LICENSE.rst
from __future__ import (absolute_import, division, print_function,
unicode_literals)
def track_param(n):
return 42
track_param.params = [10, 20]
def mem_param(n, m):
return [[0]*m]*n
mem_param.... | Fix test vs parameterized setup/teardown function names | Fix test vs parameterized setup/teardown function names
| Python | bsd-3-clause | qwhelan/asv,mdboom/asv,qwhelan/asv,qwhelan/asv,waylonflinn/asv,ericdill/asv,waylonflinn/asv,spacetelescope/asv,edisongustavo/asv,ericdill/asv,pv/asv,airspeed-velocity/asv,pv/asv,edisongustavo/asv,waylonflinn/asv,spacetelescope/asv,airspeed-velocity/asv,edisongustavo/asv,airspeed-velocity/asv,mdboom/asv,mdboom/asv,pv/as... | # -*- coding: utf-8 -*-
# Licensed under a 3-clause BSD style license - see LICENSE.rst
from __future__ import (absolute_import, division, print_function,
unicode_literals)
def track_param(n):
return 42
track_param.params = [10, 20]
def mem_param(n, m):
return [[0]*m]*n
mem_param.... | # -*- coding: utf-8 -*-
# Licensed under a 3-clause BSD style license - see LICENSE.rst
from __future__ import (absolute_import, division, print_function,
unicode_literals)
def track_param(n):
return 42
track_param.params = [10, 20]
def mem_param(n, m):
return [[0]*m]*n
mem_param.... | <commit_before># -*- coding: utf-8 -*-
# Licensed under a 3-clause BSD style license - see LICENSE.rst
from __future__ import (absolute_import, division, print_function,
unicode_literals)
def track_param(n):
return 42
track_param.params = [10, 20]
def mem_param(n, m):
return [[0]*m... | # -*- coding: utf-8 -*-
# Licensed under a 3-clause BSD style license - see LICENSE.rst
from __future__ import (absolute_import, division, print_function,
unicode_literals)
def track_param(n):
return 42
track_param.params = [10, 20]
def mem_param(n, m):
return [[0]*m]*n
mem_param.... | # -*- coding: utf-8 -*-
# Licensed under a 3-clause BSD style license - see LICENSE.rst
from __future__ import (absolute_import, division, print_function,
unicode_literals)
def track_param(n):
return 42
track_param.params = [10, 20]
def mem_param(n, m):
return [[0]*m]*n
mem_param.... | <commit_before># -*- coding: utf-8 -*-
# Licensed under a 3-clause BSD style license - see LICENSE.rst
from __future__ import (absolute_import, division, print_function,
unicode_literals)
def track_param(n):
return 42
track_param.params = [10, 20]
def mem_param(n, m):
return [[0]*m... |
f3fa16aeee901f7ee1438bbc5b12170f82a184bc | project/api/management/commands/song_titles.py | project/api/management/commands/song_titles.py | # Django
from django.core.management.base import BaseCommand
from django.core.mail import EmailMessage
from openpyxl import Workbook
# First-Party
from api.models import Chart
class Command(BaseCommand):
help = "Command to sync database with BHS ."
def handle(self, *args, **options):
self.stdout.wri... | # Django
from django.core.management.base import BaseCommand
from django.core.mail import EmailMessage
from openpyxl import Workbook
# First-Party
from api.models import Chart
class Command(BaseCommand):
help = "Command to sync database with BHS ."
def handle(self, *args, **options):
self.stdout.wri... | Remove me from song title report send | Remove me from song title report send
| Python | bsd-2-clause | dbinetti/barberscore-django,dbinetti/barberscore,barberscore/barberscore-api,dbinetti/barberscore,barberscore/barberscore-api,barberscore/barberscore-api,dbinetti/barberscore-django,barberscore/barberscore-api | # Django
from django.core.management.base import BaseCommand
from django.core.mail import EmailMessage
from openpyxl import Workbook
# First-Party
from api.models import Chart
class Command(BaseCommand):
help = "Command to sync database with BHS ."
def handle(self, *args, **options):
self.stdout.wri... | # Django
from django.core.management.base import BaseCommand
from django.core.mail import EmailMessage
from openpyxl import Workbook
# First-Party
from api.models import Chart
class Command(BaseCommand):
help = "Command to sync database with BHS ."
def handle(self, *args, **options):
self.stdout.wri... | <commit_before># Django
from django.core.management.base import BaseCommand
from django.core.mail import EmailMessage
from openpyxl import Workbook
# First-Party
from api.models import Chart
class Command(BaseCommand):
help = "Command to sync database with BHS ."
def handle(self, *args, **options):
... | # Django
from django.core.management.base import BaseCommand
from django.core.mail import EmailMessage
from openpyxl import Workbook
# First-Party
from api.models import Chart
class Command(BaseCommand):
help = "Command to sync database with BHS ."
def handle(self, *args, **options):
self.stdout.wri... | # Django
from django.core.management.base import BaseCommand
from django.core.mail import EmailMessage
from openpyxl import Workbook
# First-Party
from api.models import Chart
class Command(BaseCommand):
help = "Command to sync database with BHS ."
def handle(self, *args, **options):
self.stdout.wri... | <commit_before># Django
from django.core.management.base import BaseCommand
from django.core.mail import EmailMessage
from openpyxl import Workbook
# First-Party
from api.models import Chart
class Command(BaseCommand):
help = "Command to sync database with BHS ."
def handle(self, *args, **options):
... |
4aa8cd1f2230b5c2b180a097815802ed1bcb4905 | Lib/sandbox/pyem/__init__.py | Lib/sandbox/pyem/__init__.py | #! /usr/bin/env python
# Last Change: Sat Jun 09 10:00 PM 2007 J
from info import __doc__
from gauss_mix import GmParamError, GM
from gmm_em import GmmParamError, GMM, EM
#from online_em import OnGMM as _OnGMM
#import examples as _examples
__all__ = filter(lambda s:not s.startswith('_'), dir())
from numpy.testing i... | #! /usr/bin/env python
# Last Change: Sun Jul 22 11:00 AM 2007 J
raise ImportError(
"""pyem has been moved to scikits and renamed to em. Please install
scikits.learn instead, and change your import to the following:
from scickits.learn.machine import em.""")
from info import __doc__
from gauss_mix import GmParamErr... | Raise an import error when importing pyem as it has been moved to scikits. | Raise an import error when importing pyem as it has been moved to scikits.
| Python | bsd-3-clause | newemailjdm/scipy,mdhaber/scipy,Newman101/scipy,Shaswat27/scipy,ilayn/scipy,haudren/scipy,nmayorov/scipy,pschella/scipy,zxsted/scipy,njwilson23/scipy,jseabold/scipy,anntzer/scipy,Srisai85/scipy,pyramania/scipy,jor-/scipy,jseabold/scipy,lukauskas/scipy,woodscn/scipy,raoulbq/scipy,grlee77/scipy,sargas/scipy,aman-iitj/sci... | #! /usr/bin/env python
# Last Change: Sat Jun 09 10:00 PM 2007 J
from info import __doc__
from gauss_mix import GmParamError, GM
from gmm_em import GmmParamError, GMM, EM
#from online_em import OnGMM as _OnGMM
#import examples as _examples
__all__ = filter(lambda s:not s.startswith('_'), dir())
from numpy.testing i... | #! /usr/bin/env python
# Last Change: Sun Jul 22 11:00 AM 2007 J
raise ImportError(
"""pyem has been moved to scikits and renamed to em. Please install
scikits.learn instead, and change your import to the following:
from scickits.learn.machine import em.""")
from info import __doc__
from gauss_mix import GmParamErr... | <commit_before>#! /usr/bin/env python
# Last Change: Sat Jun 09 10:00 PM 2007 J
from info import __doc__
from gauss_mix import GmParamError, GM
from gmm_em import GmmParamError, GMM, EM
#from online_em import OnGMM as _OnGMM
#import examples as _examples
__all__ = filter(lambda s:not s.startswith('_'), dir())
from ... | #! /usr/bin/env python
# Last Change: Sun Jul 22 11:00 AM 2007 J
raise ImportError(
"""pyem has been moved to scikits and renamed to em. Please install
scikits.learn instead, and change your import to the following:
from scickits.learn.machine import em.""")
from info import __doc__
from gauss_mix import GmParamErr... | #! /usr/bin/env python
# Last Change: Sat Jun 09 10:00 PM 2007 J
from info import __doc__
from gauss_mix import GmParamError, GM
from gmm_em import GmmParamError, GMM, EM
#from online_em import OnGMM as _OnGMM
#import examples as _examples
__all__ = filter(lambda s:not s.startswith('_'), dir())
from numpy.testing i... | <commit_before>#! /usr/bin/env python
# Last Change: Sat Jun 09 10:00 PM 2007 J
from info import __doc__
from gauss_mix import GmParamError, GM
from gmm_em import GmmParamError, GMM, EM
#from online_em import OnGMM as _OnGMM
#import examples as _examples
__all__ = filter(lambda s:not s.startswith('_'), dir())
from ... |
732620e2fa9cb9af11136f11751f1255df9aadf6 | game/itemsets/__init__.py | game/itemsets/__init__.py | # -*- coding: utf-8 -*-
"""
Item Sets
- ItemSet.dbc
"""
from .. import *
from ..globalstrings import *
class ItemSet(Model):
pass
class ItemSetTooltip(Tooltip):
def tooltip(self):
self.append("name", ITEM_SET_NAME % (self.obj.getName(), 0, 0), color=YELLOW)
items = self.obj.getItems()
for item in ite... | # -*- coding: utf-8 -*-
"""
Item Sets
- ItemSet.dbc
"""
from .. import *
from ..globalstrings import *
class ItemSet(Model):
pass
class ItemSetTooltip(Tooltip):
def tooltip(self):
items = self.obj.getItems()
maxItems = len(items)
self.append("name", ITEM_SET_NAME % (self.obj.getName(), 0, maxItems), ... | Add maxItems to ItemSet and remove debug output | game/itemsets: Add maxItems to ItemSet and remove debug output
| Python | cc0-1.0 | jleclanche/pywow,jleclanche/pywow,jleclanche/pywow,jleclanche/pywow,jleclanche/pywow,jleclanche/pywow | # -*- coding: utf-8 -*-
"""
Item Sets
- ItemSet.dbc
"""
from .. import *
from ..globalstrings import *
class ItemSet(Model):
pass
class ItemSetTooltip(Tooltip):
def tooltip(self):
self.append("name", ITEM_SET_NAME % (self.obj.getName(), 0, 0), color=YELLOW)
items = self.obj.getItems()
for item in ite... | # -*- coding: utf-8 -*-
"""
Item Sets
- ItemSet.dbc
"""
from .. import *
from ..globalstrings import *
class ItemSet(Model):
pass
class ItemSetTooltip(Tooltip):
def tooltip(self):
items = self.obj.getItems()
maxItems = len(items)
self.append("name", ITEM_SET_NAME % (self.obj.getName(), 0, maxItems), ... | <commit_before># -*- coding: utf-8 -*-
"""
Item Sets
- ItemSet.dbc
"""
from .. import *
from ..globalstrings import *
class ItemSet(Model):
pass
class ItemSetTooltip(Tooltip):
def tooltip(self):
self.append("name", ITEM_SET_NAME % (self.obj.getName(), 0, 0), color=YELLOW)
items = self.obj.getItems()
... | # -*- coding: utf-8 -*-
"""
Item Sets
- ItemSet.dbc
"""
from .. import *
from ..globalstrings import *
class ItemSet(Model):
pass
class ItemSetTooltip(Tooltip):
def tooltip(self):
items = self.obj.getItems()
maxItems = len(items)
self.append("name", ITEM_SET_NAME % (self.obj.getName(), 0, maxItems), ... | # -*- coding: utf-8 -*-
"""
Item Sets
- ItemSet.dbc
"""
from .. import *
from ..globalstrings import *
class ItemSet(Model):
pass
class ItemSetTooltip(Tooltip):
def tooltip(self):
self.append("name", ITEM_SET_NAME % (self.obj.getName(), 0, 0), color=YELLOW)
items = self.obj.getItems()
for item in ite... | <commit_before># -*- coding: utf-8 -*-
"""
Item Sets
- ItemSet.dbc
"""
from .. import *
from ..globalstrings import *
class ItemSet(Model):
pass
class ItemSetTooltip(Tooltip):
def tooltip(self):
self.append("name", ITEM_SET_NAME % (self.obj.getName(), 0, 0), color=YELLOW)
items = self.obj.getItems()
... |
7bcb8fda2daec22fb627a59306c28e39c8f08a2d | HOME/bin/lib/utils.py | HOME/bin/lib/utils.py | import logging
import re
import subprocess
log = logging.getLogger(__name__)
def run(cmd, check=True, cap=False, input=None, exe='/bin/bash', cwd=None, env=None):
log.debug(f"Executing: {cmd!r}")
shell = isinstance(cmd, str)
result = subprocess.run(
cmd,
check=check,
shell=shell,
... | import logging
import re
import subprocess
log = logging.getLogger(__name__)
def run(cmd, check=True, cap=False, input=None, exe='/bin/bash', cwd=None, env=None):
log.debug(f"Executing: {cmd!r}")
shell = isinstance(cmd, str)
result = subprocess.run(
cmd,
check=check,
shell=shell,
... | Change 'cap' in 'run' to accept True, 'stdout', or 'stderr' | Change 'cap' in 'run' to accept True, 'stdout', or 'stderr'
In 2e6873e I made cap=True equivalent to the new 'capture_output'.
This was a mistake. Turns out fzf writes its UI to stderr (makes sense),
so that was suppressed. Now you can be specific about what to capture.
| Python | mit | kbd/setup,kbd/setup,kbd/setup,kbd/setup,kbd/setup | import logging
import re
import subprocess
log = logging.getLogger(__name__)
def run(cmd, check=True, cap=False, input=None, exe='/bin/bash', cwd=None, env=None):
log.debug(f"Executing: {cmd!r}")
shell = isinstance(cmd, str)
result = subprocess.run(
cmd,
check=check,
shell=shell,
... | import logging
import re
import subprocess
log = logging.getLogger(__name__)
def run(cmd, check=True, cap=False, input=None, exe='/bin/bash', cwd=None, env=None):
log.debug(f"Executing: {cmd!r}")
shell = isinstance(cmd, str)
result = subprocess.run(
cmd,
check=check,
shell=shell,
... | <commit_before>import logging
import re
import subprocess
log = logging.getLogger(__name__)
def run(cmd, check=True, cap=False, input=None, exe='/bin/bash', cwd=None, env=None):
log.debug(f"Executing: {cmd!r}")
shell = isinstance(cmd, str)
result = subprocess.run(
cmd,
check=check,
... | import logging
import re
import subprocess
log = logging.getLogger(__name__)
def run(cmd, check=True, cap=False, input=None, exe='/bin/bash', cwd=None, env=None):
log.debug(f"Executing: {cmd!r}")
shell = isinstance(cmd, str)
result = subprocess.run(
cmd,
check=check,
shell=shell,
... | import logging
import re
import subprocess
log = logging.getLogger(__name__)
def run(cmd, check=True, cap=False, input=None, exe='/bin/bash', cwd=None, env=None):
log.debug(f"Executing: {cmd!r}")
shell = isinstance(cmd, str)
result = subprocess.run(
cmd,
check=check,
shell=shell,
... | <commit_before>import logging
import re
import subprocess
log = logging.getLogger(__name__)
def run(cmd, check=True, cap=False, input=None, exe='/bin/bash', cwd=None, env=None):
log.debug(f"Executing: {cmd!r}")
shell = isinstance(cmd, str)
result = subprocess.run(
cmd,
check=check,
... |
2dc90659a7265740bb5821f0f153f00de1b2205a | pydle/features/__init__.py | pydle/features/__init__.py | from . import rfc1459, account, ctcp, tls, isupport, whox, ircv3
from .rfc1459 import RFC1459Support
from .account import AccountSupport
from .ctcp import CTCPSupport
from .tls import TLSSupport
from .isupport import ISUPPORTSupport
from .whox import WHOXSupport
from .ircv3 import IRCv3Support, IRCv3_1Support, IRCv3_2... | from . import rfc1459, account, ctcp, tls, isupport, whox, ircv3
from .rfc1459 import RFC1459Support
from .account import AccountSupport
from .ctcp import CTCPSupport
from .tls import TLSSupport
from .isupport import ISUPPORTSupport
from .whox import WHOXSupport
from .ircv3 import IRCv3Support, IRCv3_1Support, IRCv3_2... | Enable RplWhoisHostSupport implementation (as part of full featured client) | Enable RplWhoisHostSupport implementation (as part of full featured client)
| Python | bsd-3-clause | Shizmob/pydle | from . import rfc1459, account, ctcp, tls, isupport, whox, ircv3
from .rfc1459 import RFC1459Support
from .account import AccountSupport
from .ctcp import CTCPSupport
from .tls import TLSSupport
from .isupport import ISUPPORTSupport
from .whox import WHOXSupport
from .ircv3 import IRCv3Support, IRCv3_1Support, IRCv3_2... | from . import rfc1459, account, ctcp, tls, isupport, whox, ircv3
from .rfc1459 import RFC1459Support
from .account import AccountSupport
from .ctcp import CTCPSupport
from .tls import TLSSupport
from .isupport import ISUPPORTSupport
from .whox import WHOXSupport
from .ircv3 import IRCv3Support, IRCv3_1Support, IRCv3_2... | <commit_before>from . import rfc1459, account, ctcp, tls, isupport, whox, ircv3
from .rfc1459 import RFC1459Support
from .account import AccountSupport
from .ctcp import CTCPSupport
from .tls import TLSSupport
from .isupport import ISUPPORTSupport
from .whox import WHOXSupport
from .ircv3 import IRCv3Support, IRCv3_1S... | from . import rfc1459, account, ctcp, tls, isupport, whox, ircv3
from .rfc1459 import RFC1459Support
from .account import AccountSupport
from .ctcp import CTCPSupport
from .tls import TLSSupport
from .isupport import ISUPPORTSupport
from .whox import WHOXSupport
from .ircv3 import IRCv3Support, IRCv3_1Support, IRCv3_2... | from . import rfc1459, account, ctcp, tls, isupport, whox, ircv3
from .rfc1459 import RFC1459Support
from .account import AccountSupport
from .ctcp import CTCPSupport
from .tls import TLSSupport
from .isupport import ISUPPORTSupport
from .whox import WHOXSupport
from .ircv3 import IRCv3Support, IRCv3_1Support, IRCv3_2... | <commit_before>from . import rfc1459, account, ctcp, tls, isupport, whox, ircv3
from .rfc1459 import RFC1459Support
from .account import AccountSupport
from .ctcp import CTCPSupport
from .tls import TLSSupport
from .isupport import ISUPPORTSupport
from .whox import WHOXSupport
from .ircv3 import IRCv3Support, IRCv3_1S... |
e620068b67f965915cd6713a42380b8136a9feae | build/fbcode_builder_config.py | build/fbcode_builder_config.py | #!/usr/bin/env python
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
'fbcode_builder steps to build & test Bistro'
import specs.fbthrift as fbthrift
import specs.folly as folly
import specs.proxygen as proxygen
from ... | #!/usr/bin/env python
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
'fbcode_builder steps to build & test Bistro'
import specs.fbthrift as fbthrift
import specs.folly as folly
import specs.proxygen as proxygen
from ... | Make future OSS test failures easier to debug | Make future OSS test failures easier to debug
Summary: Show test output on failure.
Reviewed By: jstrizich
Differential Revision: D6914371
fbshipit-source-id: 668feaefd80c3f0253787b89783cb615fe69bf9b
| Python | mit | facebook/bistro,facebook/bistro,facebook/bistro,facebook/bistro,facebook/bistro,facebook/bistro | #!/usr/bin/env python
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
'fbcode_builder steps to build & test Bistro'
import specs.fbthrift as fbthrift
import specs.folly as folly
import specs.proxygen as proxygen
from ... | #!/usr/bin/env python
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
'fbcode_builder steps to build & test Bistro'
import specs.fbthrift as fbthrift
import specs.folly as folly
import specs.proxygen as proxygen
from ... | <commit_before>#!/usr/bin/env python
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
'fbcode_builder steps to build & test Bistro'
import specs.fbthrift as fbthrift
import specs.folly as folly
import specs.proxygen as ... | #!/usr/bin/env python
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
'fbcode_builder steps to build & test Bistro'
import specs.fbthrift as fbthrift
import specs.folly as folly
import specs.proxygen as proxygen
from ... | #!/usr/bin/env python
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
'fbcode_builder steps to build & test Bistro'
import specs.fbthrift as fbthrift
import specs.folly as folly
import specs.proxygen as proxygen
from ... | <commit_before>#!/usr/bin/env python
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
'fbcode_builder steps to build & test Bistro'
import specs.fbthrift as fbthrift
import specs.folly as folly
import specs.proxygen as ... |
a7f01689459c167635da206f8d503f2ac86d5503 | hatarake/cli.py | hatarake/cli.py | import logging
import json
import click
import requests
from hatarake.app import CONFIG_PATH, POMODORO_DB
from hatarake.config import Config
from hatarake.models import Pomodoro
from hatarake.report import render_report
@click.group()
def main():
logging.basicConfig(level=logging.DEBUG)
logging.getLogger('gn... | import logging
import click
import requests
from hatarake import USER_AGENT
from hatarake.app import CONFIG_PATH, POMODORO_DB
from hatarake.config import Config
from hatarake.models import Pomodoro
from hatarake.report import render_report
@click.group()
def main():
logging.basicConfig(level=logging.DEBUG)
... | Add user agent when submitting | Add user agent when submitting
| Python | mit | kfdm/hatarake | import logging
import json
import click
import requests
from hatarake.app import CONFIG_PATH, POMODORO_DB
from hatarake.config import Config
from hatarake.models import Pomodoro
from hatarake.report import render_report
@click.group()
def main():
logging.basicConfig(level=logging.DEBUG)
logging.getLogger('gn... | import logging
import click
import requests
from hatarake import USER_AGENT
from hatarake.app import CONFIG_PATH, POMODORO_DB
from hatarake.config import Config
from hatarake.models import Pomodoro
from hatarake.report import render_report
@click.group()
def main():
logging.basicConfig(level=logging.DEBUG)
... | <commit_before>import logging
import json
import click
import requests
from hatarake.app import CONFIG_PATH, POMODORO_DB
from hatarake.config import Config
from hatarake.models import Pomodoro
from hatarake.report import render_report
@click.group()
def main():
logging.basicConfig(level=logging.DEBUG)
loggin... | import logging
import click
import requests
from hatarake import USER_AGENT
from hatarake.app import CONFIG_PATH, POMODORO_DB
from hatarake.config import Config
from hatarake.models import Pomodoro
from hatarake.report import render_report
@click.group()
def main():
logging.basicConfig(level=logging.DEBUG)
... | import logging
import json
import click
import requests
from hatarake.app import CONFIG_PATH, POMODORO_DB
from hatarake.config import Config
from hatarake.models import Pomodoro
from hatarake.report import render_report
@click.group()
def main():
logging.basicConfig(level=logging.DEBUG)
logging.getLogger('gn... | <commit_before>import logging
import json
import click
import requests
from hatarake.app import CONFIG_PATH, POMODORO_DB
from hatarake.config import Config
from hatarake.models import Pomodoro
from hatarake.report import render_report
@click.group()
def main():
logging.basicConfig(level=logging.DEBUG)
loggin... |
9a18cd0cb6366d45803c19301843ddda3a362cfb | tests/test_publisher.py | tests/test_publisher.py | from lektor.publisher import Command
def test_Command_triggers_no_warnings(recwarn):
# This excercises the issue where publishing via rsync resulted
# in ResourceWarnings about unclosed streams.
# This is essentially how RsyncPublisher runs rsync.
with Command(["echo"]) as client:
for _ in cl... | import gc
import warnings
import weakref
import pytest
from lektor.publisher import Command
def test_Command_triggers_no_warnings():
# This excercises the issue where publishing via rsync resulted
# in ResourceWarnings about unclosed streams.
with pytest.warns(None) as record:
# This is essenti... | Reword comment, add check that Command is actually garbage collected | Reword comment, add check that Command is actually garbage collected
| Python | bsd-3-clause | lektor/lektor,lektor/lektor,lektor/lektor,lektor/lektor | from lektor.publisher import Command
def test_Command_triggers_no_warnings(recwarn):
# This excercises the issue where publishing via rsync resulted
# in ResourceWarnings about unclosed streams.
# This is essentially how RsyncPublisher runs rsync.
with Command(["echo"]) as client:
for _ in cl... | import gc
import warnings
import weakref
import pytest
from lektor.publisher import Command
def test_Command_triggers_no_warnings():
# This excercises the issue where publishing via rsync resulted
# in ResourceWarnings about unclosed streams.
with pytest.warns(None) as record:
# This is essenti... | <commit_before>from lektor.publisher import Command
def test_Command_triggers_no_warnings(recwarn):
# This excercises the issue where publishing via rsync resulted
# in ResourceWarnings about unclosed streams.
# This is essentially how RsyncPublisher runs rsync.
with Command(["echo"]) as client:
... | import gc
import warnings
import weakref
import pytest
from lektor.publisher import Command
def test_Command_triggers_no_warnings():
# This excercises the issue where publishing via rsync resulted
# in ResourceWarnings about unclosed streams.
with pytest.warns(None) as record:
# This is essenti... | from lektor.publisher import Command
def test_Command_triggers_no_warnings(recwarn):
# This excercises the issue where publishing via rsync resulted
# in ResourceWarnings about unclosed streams.
# This is essentially how RsyncPublisher runs rsync.
with Command(["echo"]) as client:
for _ in cl... | <commit_before>from lektor.publisher import Command
def test_Command_triggers_no_warnings(recwarn):
# This excercises the issue where publishing via rsync resulted
# in ResourceWarnings about unclosed streams.
# This is essentially how RsyncPublisher runs rsync.
with Command(["echo"]) as client:
... |
703cdca6725438b55bf544962ce0c554598697be | shoop/admin/templatetags/shoop_admin.py | shoop/admin/templatetags/shoop_admin.py | # -*- coding: utf-8 -*-
# This file is part of Shoop.
#
# Copyright (c) 2012-2015, Shoop Ltd. All rights reserved.
#
# This source code is licensed under the AGPLv3 license found in the
# LICENSE file in the root directory of this source tree.
from bootstrap3.renderers import FormRenderer
from django.utils.safestring ... | # -*- coding: utf-8 -*-
# This file is part of Shoop.
#
# Copyright (c) 2012-2015, Shoop Ltd. All rights reserved.
#
# This source code is licensed under the AGPLv3 license found in the
# LICENSE file in the root directory of this source tree.
from bootstrap3.renderers import FormRenderer
from django.utils.safestring ... | Add template helper for datetime fields | Admin: Add template helper for datetime fields
Refs SHOOP-1612
| Python | agpl-3.0 | suutari-ai/shoop,shoopio/shoop,suutari/shoop,jorge-marques/shoop,hrayr-artunyan/shuup,taedori81/shoop,shawnadelic/shuup,shawnadelic/shuup,shawnadelic/shuup,suutari-ai/shoop,shoopio/shoop,taedori81/shoop,akx/shoop,suutari/shoop,akx/shoop,shoopio/shoop,hrayr-artunyan/shuup,suutari-ai/shoop,suutari/shoop,hrayr-artunyan/sh... | # -*- coding: utf-8 -*-
# This file is part of Shoop.
#
# Copyright (c) 2012-2015, Shoop Ltd. All rights reserved.
#
# This source code is licensed under the AGPLv3 license found in the
# LICENSE file in the root directory of this source tree.
from bootstrap3.renderers import FormRenderer
from django.utils.safestring ... | # -*- coding: utf-8 -*-
# This file is part of Shoop.
#
# Copyright (c) 2012-2015, Shoop Ltd. All rights reserved.
#
# This source code is licensed under the AGPLv3 license found in the
# LICENSE file in the root directory of this source tree.
from bootstrap3.renderers import FormRenderer
from django.utils.safestring ... | <commit_before># -*- coding: utf-8 -*-
# This file is part of Shoop.
#
# Copyright (c) 2012-2015, Shoop Ltd. All rights reserved.
#
# This source code is licensed under the AGPLv3 license found in the
# LICENSE file in the root directory of this source tree.
from bootstrap3.renderers import FormRenderer
from django.ut... | # -*- coding: utf-8 -*-
# This file is part of Shoop.
#
# Copyright (c) 2012-2015, Shoop Ltd. All rights reserved.
#
# This source code is licensed under the AGPLv3 license found in the
# LICENSE file in the root directory of this source tree.
from bootstrap3.renderers import FormRenderer
from django.utils.safestring ... | # -*- coding: utf-8 -*-
# This file is part of Shoop.
#
# Copyright (c) 2012-2015, Shoop Ltd. All rights reserved.
#
# This source code is licensed under the AGPLv3 license found in the
# LICENSE file in the root directory of this source tree.
from bootstrap3.renderers import FormRenderer
from django.utils.safestring ... | <commit_before># -*- coding: utf-8 -*-
# This file is part of Shoop.
#
# Copyright (c) 2012-2015, Shoop Ltd. All rights reserved.
#
# This source code is licensed under the AGPLv3 license found in the
# LICENSE file in the root directory of this source tree.
from bootstrap3.renderers import FormRenderer
from django.ut... |
04cd203c3a137dd7eeece63a38a542fad98c4eb3 | setup.py | setup.py | #!/usr/bin/env python
#coding: utf-8
from setuptools import setup
setup(
name = "foxpath",
author = "Martin Keegan",
author_email = "martin.keegan@okfn.org",
version = "0.9",
license = "GNU Affero General Public License v3.0",
url = "",
download_url = "",
description = "Python library for running FoXPath test... | #!/usr/bin/env python
#coding: utf-8
from setuptools import setup
setup(
name = "foxpath",
author = "Martin Keegan",
author_email = "martin.keegan@okfn.org",
version = "0.91",
license = "GNU Affero General Public License v3.0",
url = "",
download_url = "",
description = "Python library for running FoXPath tes... | Add error handling back in | Add error handling back in
| Python | mit | pwyf/foxpath-tools | #!/usr/bin/env python
#coding: utf-8
from setuptools import setup
setup(
name = "foxpath",
author = "Martin Keegan",
author_email = "martin.keegan@okfn.org",
version = "0.9",
license = "GNU Affero General Public License v3.0",
url = "",
download_url = "",
description = "Python library for running FoXPath test... | #!/usr/bin/env python
#coding: utf-8
from setuptools import setup
setup(
name = "foxpath",
author = "Martin Keegan",
author_email = "martin.keegan@okfn.org",
version = "0.91",
license = "GNU Affero General Public License v3.0",
url = "",
download_url = "",
description = "Python library for running FoXPath tes... | <commit_before>#!/usr/bin/env python
#coding: utf-8
from setuptools import setup
setup(
name = "foxpath",
author = "Martin Keegan",
author_email = "martin.keegan@okfn.org",
version = "0.9",
license = "GNU Affero General Public License v3.0",
url = "",
download_url = "",
description = "Python library for runni... | #!/usr/bin/env python
#coding: utf-8
from setuptools import setup
setup(
name = "foxpath",
author = "Martin Keegan",
author_email = "martin.keegan@okfn.org",
version = "0.91",
license = "GNU Affero General Public License v3.0",
url = "",
download_url = "",
description = "Python library for running FoXPath tes... | #!/usr/bin/env python
#coding: utf-8
from setuptools import setup
setup(
name = "foxpath",
author = "Martin Keegan",
author_email = "martin.keegan@okfn.org",
version = "0.9",
license = "GNU Affero General Public License v3.0",
url = "",
download_url = "",
description = "Python library for running FoXPath test... | <commit_before>#!/usr/bin/env python
#coding: utf-8
from setuptools import setup
setup(
name = "foxpath",
author = "Martin Keegan",
author_email = "martin.keegan@okfn.org",
version = "0.9",
license = "GNU Affero General Public License v3.0",
url = "",
download_url = "",
description = "Python library for runni... |
903b33db0df2562df108f827177cb1dc0f39ed24 | setup.py | setup.py | #!/usr/bin/env python
import setuptools
setuptools.setup(
name='systemd-minecraft',
description='A systemd service file for one or more vanilla Minecraft servers',
author='Wurstmineberg',
author_email='mail@wurstmineberg.de',
py_modules=['minecraft'],
install_requires=[
'docopt',
... | #!/usr/bin/env python
import setuptools
setuptools.setup(
name='systemd-minecraft',
description='A systemd service file for one or more vanilla Minecraft servers',
author='Wurstmineberg',
author_email='mail@wurstmineberg.de',
py_modules=['minecraft'],
install_requires=[
'docopt',
... | Add dependency link for mcrcon | Add dependency link for mcrcon
| Python | mit | wurstmineberg/systemd-minecraft | #!/usr/bin/env python
import setuptools
setuptools.setup(
name='systemd-minecraft',
description='A systemd service file for one or more vanilla Minecraft servers',
author='Wurstmineberg',
author_email='mail@wurstmineberg.de',
py_modules=['minecraft'],
install_requires=[
'docopt',
... | #!/usr/bin/env python
import setuptools
setuptools.setup(
name='systemd-minecraft',
description='A systemd service file for one or more vanilla Minecraft servers',
author='Wurstmineberg',
author_email='mail@wurstmineberg.de',
py_modules=['minecraft'],
install_requires=[
'docopt',
... | <commit_before>#!/usr/bin/env python
import setuptools
setuptools.setup(
name='systemd-minecraft',
description='A systemd service file for one or more vanilla Minecraft servers',
author='Wurstmineberg',
author_email='mail@wurstmineberg.de',
py_modules=['minecraft'],
install_requires=[
... | #!/usr/bin/env python
import setuptools
setuptools.setup(
name='systemd-minecraft',
description='A systemd service file for one or more vanilla Minecraft servers',
author='Wurstmineberg',
author_email='mail@wurstmineberg.de',
py_modules=['minecraft'],
install_requires=[
'docopt',
... | #!/usr/bin/env python
import setuptools
setuptools.setup(
name='systemd-minecraft',
description='A systemd service file for one or more vanilla Minecraft servers',
author='Wurstmineberg',
author_email='mail@wurstmineberg.de',
py_modules=['minecraft'],
install_requires=[
'docopt',
... | <commit_before>#!/usr/bin/env python
import setuptools
setuptools.setup(
name='systemd-minecraft',
description='A systemd service file for one or more vanilla Minecraft servers',
author='Wurstmineberg',
author_email='mail@wurstmineberg.de',
py_modules=['minecraft'],
install_requires=[
... |
ca32941b82f1c723465a480355242b37ca19848c | setup.py | setup.py | from datetime import datetime
from distutils.core import setup
import os
import subprocess
if os.path.exists("MANIFEST"):
os.unlink("MANIFEST")
VERSION = ("11", "06", "0", "alpha", "0")
setup(
name='armstrong',
version=".".join(VERSION),
description="Armstrong is an open-source publishing system desi... | from datetime import datetime
from distutils.core import setup
import os
import subprocess
if os.path.exists("MANIFEST"):
os.unlink("MANIFEST")
VERSION = ("11", "06", "0", "alpha", "0")
setup(
name='armstrong',
version=".".join(VERSION),
description="Armstrong is an open-source publishing system desi... | Add armstrong.cli to the mix | Add armstrong.cli to the mix
| Python | apache-2.0 | armstrong/armstrong | from datetime import datetime
from distutils.core import setup
import os
import subprocess
if os.path.exists("MANIFEST"):
os.unlink("MANIFEST")
VERSION = ("11", "06", "0", "alpha", "0")
setup(
name='armstrong',
version=".".join(VERSION),
description="Armstrong is an open-source publishing system desi... | from datetime import datetime
from distutils.core import setup
import os
import subprocess
if os.path.exists("MANIFEST"):
os.unlink("MANIFEST")
VERSION = ("11", "06", "0", "alpha", "0")
setup(
name='armstrong',
version=".".join(VERSION),
description="Armstrong is an open-source publishing system desi... | <commit_before>from datetime import datetime
from distutils.core import setup
import os
import subprocess
if os.path.exists("MANIFEST"):
os.unlink("MANIFEST")
VERSION = ("11", "06", "0", "alpha", "0")
setup(
name='armstrong',
version=".".join(VERSION),
description="Armstrong is an open-source publish... | from datetime import datetime
from distutils.core import setup
import os
import subprocess
if os.path.exists("MANIFEST"):
os.unlink("MANIFEST")
VERSION = ("11", "06", "0", "alpha", "0")
setup(
name='armstrong',
version=".".join(VERSION),
description="Armstrong is an open-source publishing system desi... | from datetime import datetime
from distutils.core import setup
import os
import subprocess
if os.path.exists("MANIFEST"):
os.unlink("MANIFEST")
VERSION = ("11", "06", "0", "alpha", "0")
setup(
name='armstrong',
version=".".join(VERSION),
description="Armstrong is an open-source publishing system desi... | <commit_before>from datetime import datetime
from distutils.core import setup
import os
import subprocess
if os.path.exists("MANIFEST"):
os.unlink("MANIFEST")
VERSION = ("11", "06", "0", "alpha", "0")
setup(
name='armstrong',
version=".".join(VERSION),
description="Armstrong is an open-source publish... |
afddd0f6866cfcb75c0f0109710feec0d25bed94 | setup.py | setup.py | from setuptools import setup, find_packages
setup(name='facebookinsights',
description='A wrapper and command-line interface for the Facebook Insights API.',
long_description=open('README.rst').read(),
author='Stijn Debrouwere',
author_email='stijn@debrouwere.org',
#url='http://stdbrouw.github.com/... | from setuptools import setup, find_packages
setup(name='facebookinsights',
description='A wrapper and command-line interface for the Facebook Insights API.',
long_description=open('README.rst').read(),
author='Stijn Debrouwere',
author_email='stijn@debrouwere.org',
#url='http://stdbrouw.github.com/... | Add package data to package. | Add package data to package.
| Python | isc | debrouwere/facebook-insights | from setuptools import setup, find_packages
setup(name='facebookinsights',
description='A wrapper and command-line interface for the Facebook Insights API.',
long_description=open('README.rst').read(),
author='Stijn Debrouwere',
author_email='stijn@debrouwere.org',
#url='http://stdbrouw.github.com/... | from setuptools import setup, find_packages
setup(name='facebookinsights',
description='A wrapper and command-line interface for the Facebook Insights API.',
long_description=open('README.rst').read(),
author='Stijn Debrouwere',
author_email='stijn@debrouwere.org',
#url='http://stdbrouw.github.com/... | <commit_before>from setuptools import setup, find_packages
setup(name='facebookinsights',
description='A wrapper and command-line interface for the Facebook Insights API.',
long_description=open('README.rst').read(),
author='Stijn Debrouwere',
author_email='stijn@debrouwere.org',
#url='http://stdbr... | from setuptools import setup, find_packages
setup(name='facebookinsights',
description='A wrapper and command-line interface for the Facebook Insights API.',
long_description=open('README.rst').read(),
author='Stijn Debrouwere',
author_email='stijn@debrouwere.org',
#url='http://stdbrouw.github.com/... | from setuptools import setup, find_packages
setup(name='facebookinsights',
description='A wrapper and command-line interface for the Facebook Insights API.',
long_description=open('README.rst').read(),
author='Stijn Debrouwere',
author_email='stijn@debrouwere.org',
#url='http://stdbrouw.github.com/... | <commit_before>from setuptools import setup, find_packages
setup(name='facebookinsights',
description='A wrapper and command-line interface for the Facebook Insights API.',
long_description=open('README.rst').read(),
author='Stijn Debrouwere',
author_email='stijn@debrouwere.org',
#url='http://stdbr... |
cdd0b19c8827adbdf2f9744acc49d695464c9d41 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
setup(
name='Foodcheck',
version='1.0',
description='OpenShift Python 2.7 Django',
author='Tim Austen, Eileen Lin, Richard Esplin',
author_email='richard-oss@esplins.org',
url='http://www.python.org/sigs/distutils-sig/',
install_requires=[... | #!/usr/bin/env python
from setuptools import setup
setup(
name='Foodcheck',
version='1.0',
description='OpenShift Python 2.7 Django',
author='Tim Austen, Eileen Lin, Richard Esplin',
author_email='richard-oss@esplins.org',
url='http://www.python.org/sigs/distutils-sig/',
install_requires=[... | Check the version correctly this time. | Check the version correctly this time.
| Python | agpl-3.0 | esplinr/foodcheck,esplinr/foodcheck,esplinr/foodcheck,esplinr/foodcheck | #!/usr/bin/env python
from setuptools import setup
setup(
name='Foodcheck',
version='1.0',
description='OpenShift Python 2.7 Django',
author='Tim Austen, Eileen Lin, Richard Esplin',
author_email='richard-oss@esplins.org',
url='http://www.python.org/sigs/distutils-sig/',
install_requires=[... | #!/usr/bin/env python
from setuptools import setup
setup(
name='Foodcheck',
version='1.0',
description='OpenShift Python 2.7 Django',
author='Tim Austen, Eileen Lin, Richard Esplin',
author_email='richard-oss@esplins.org',
url='http://www.python.org/sigs/distutils-sig/',
install_requires=[... | <commit_before>#!/usr/bin/env python
from setuptools import setup
setup(
name='Foodcheck',
version='1.0',
description='OpenShift Python 2.7 Django',
author='Tim Austen, Eileen Lin, Richard Esplin',
author_email='richard-oss@esplins.org',
url='http://www.python.org/sigs/distutils-sig/',
ins... | #!/usr/bin/env python
from setuptools import setup
setup(
name='Foodcheck',
version='1.0',
description='OpenShift Python 2.7 Django',
author='Tim Austen, Eileen Lin, Richard Esplin',
author_email='richard-oss@esplins.org',
url='http://www.python.org/sigs/distutils-sig/',
install_requires=[... | #!/usr/bin/env python
from setuptools import setup
setup(
name='Foodcheck',
version='1.0',
description='OpenShift Python 2.7 Django',
author='Tim Austen, Eileen Lin, Richard Esplin',
author_email='richard-oss@esplins.org',
url='http://www.python.org/sigs/distutils-sig/',
install_requires=[... | <commit_before>#!/usr/bin/env python
from setuptools import setup
setup(
name='Foodcheck',
version='1.0',
description='OpenShift Python 2.7 Django',
author='Tim Austen, Eileen Lin, Richard Esplin',
author_email='richard-oss@esplins.org',
url='http://www.python.org/sigs/distutils-sig/',
ins... |
90364d28522bf368c22f82b404ca79d8211716c7 | setup.py | setup.py | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import camplight
setup(name='camplight',
version=camplight.__version__,
author='Mathias Lafeldt',
author_email='mathias.lafeldt@gmail.com',
url='https://github.com/mlafeldt/camplight',
license='MIT',
description='P... | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(name='camplight',
version='0.3',
author='Mathias Lafeldt',
author_email='mathias.lafeldt@gmail.com',
url='https://github.com/mlafeldt/camplight',
license='MIT',
description='Python implementation of the Campf... | Fix ImportError: No module named requests | Fix ImportError: No module named requests
setup.py imports camplight which ends up importing requests via camplight.api. It
does the import before running setup so you cannot install the package
unless you already have requests installed.
| Python | mit | DataDog/camplight,mlafeldt/camplight | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import camplight
setup(name='camplight',
version=camplight.__version__,
author='Mathias Lafeldt',
author_email='mathias.lafeldt@gmail.com',
url='https://github.com/mlafeldt/camplight',
license='MIT',
description='P... | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(name='camplight',
version='0.3',
author='Mathias Lafeldt',
author_email='mathias.lafeldt@gmail.com',
url='https://github.com/mlafeldt/camplight',
license='MIT',
description='Python implementation of the Campf... | <commit_before># -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import camplight
setup(name='camplight',
version=camplight.__version__,
author='Mathias Lafeldt',
author_email='mathias.lafeldt@gmail.com',
url='https://github.com/mlafeldt/camplight',
license='MIT',
... | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(name='camplight',
version='0.3',
author='Mathias Lafeldt',
author_email='mathias.lafeldt@gmail.com',
url='https://github.com/mlafeldt/camplight',
license='MIT',
description='Python implementation of the Campf... | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import camplight
setup(name='camplight',
version=camplight.__version__,
author='Mathias Lafeldt',
author_email='mathias.lafeldt@gmail.com',
url='https://github.com/mlafeldt/camplight',
license='MIT',
description='P... | <commit_before># -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import camplight
setup(name='camplight',
version=camplight.__version__,
author='Mathias Lafeldt',
author_email='mathias.lafeldt@gmail.com',
url='https://github.com/mlafeldt/camplight',
license='MIT',
... |
bf848c8716074314b3b96731228ea28541c54a9f | setup.py | setup.py | from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(name = 'Adafruit_Nokia_LCD',
version = '0.1.0',
author = 'Tony DiCola',
author_email = 'tdicola@adafruit.com',
description = 'Library to display images on the Nokia 5110/3110 LCD.',
license ... | from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(name = 'Adafruit_Nokia_LCD',
version = '0.1.0',
author = 'Tony DiCola',
author_email = 'tdicola@adafruit.com',
description = 'Library to display images on the Nokia 5110/3110 LCD.',
license ... | Add dependency on Adafruit-GPIO library. | Add dependency on Adafruit-GPIO library.
| Python | mit | adafruit/Adafruit_Nokia_LCD | from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(name = 'Adafruit_Nokia_LCD',
version = '0.1.0',
author = 'Tony DiCola',
author_email = 'tdicola@adafruit.com',
description = 'Library to display images on the Nokia 5110/3110 LCD.',
license ... | from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(name = 'Adafruit_Nokia_LCD',
version = '0.1.0',
author = 'Tony DiCola',
author_email = 'tdicola@adafruit.com',
description = 'Library to display images on the Nokia 5110/3110 LCD.',
license ... | <commit_before>from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(name = 'Adafruit_Nokia_LCD',
version = '0.1.0',
author = 'Tony DiCola',
author_email = 'tdicola@adafruit.com',
description = 'Library to display images on the Nokia 5110/3110 LCD... | from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(name = 'Adafruit_Nokia_LCD',
version = '0.1.0',
author = 'Tony DiCola',
author_email = 'tdicola@adafruit.com',
description = 'Library to display images on the Nokia 5110/3110 LCD.',
license ... | from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(name = 'Adafruit_Nokia_LCD',
version = '0.1.0',
author = 'Tony DiCola',
author_email = 'tdicola@adafruit.com',
description = 'Library to display images on the Nokia 5110/3110 LCD.',
license ... | <commit_before>from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(name = 'Adafruit_Nokia_LCD',
version = '0.1.0',
author = 'Tony DiCola',
author_email = 'tdicola@adafruit.com',
description = 'Library to display images on the Nokia 5110/3110 LCD... |
eaed2b0b37c042f1dbaf5c60163022e2e2605486 | setup.py | setup.py | #!/usr/bin/env python
# encoding: utf-8
"""
setup.py
Setup the Keyring Lib for Python.
"""
import sys
from distutils.core import setup, Extension
from extensions import get_extensions
setup(name = 'keyring',
version = "0.5.1",
description = "Store and access your passwords safely.",
url = "http://... | #!/usr/bin/env python
# encoding: utf-8
"""
setup.py
Setup the Keyring Lib for Python.
"""
import sys
from distutils.core import setup, Extension
from extensions import get_extensions
setup(name = 'keyring',
version = "0.5.1",
description = "Store and access your passwords safely.",
url = "http://... | Use the new README file, which has been renamed in 4ec717c11604 | Use the new README file, which has been renamed in 4ec717c11604
| Python | mit | jaraco/keyring | #!/usr/bin/env python
# encoding: utf-8
"""
setup.py
Setup the Keyring Lib for Python.
"""
import sys
from distutils.core import setup, Extension
from extensions import get_extensions
setup(name = 'keyring',
version = "0.5.1",
description = "Store and access your passwords safely.",
url = "http://... | #!/usr/bin/env python
# encoding: utf-8
"""
setup.py
Setup the Keyring Lib for Python.
"""
import sys
from distutils.core import setup, Extension
from extensions import get_extensions
setup(name = 'keyring',
version = "0.5.1",
description = "Store and access your passwords safely.",
url = "http://... | <commit_before>#!/usr/bin/env python
# encoding: utf-8
"""
setup.py
Setup the Keyring Lib for Python.
"""
import sys
from distutils.core import setup, Extension
from extensions import get_extensions
setup(name = 'keyring',
version = "0.5.1",
description = "Store and access your passwords safely.",
... | #!/usr/bin/env python
# encoding: utf-8
"""
setup.py
Setup the Keyring Lib for Python.
"""
import sys
from distutils.core import setup, Extension
from extensions import get_extensions
setup(name = 'keyring',
version = "0.5.1",
description = "Store and access your passwords safely.",
url = "http://... | #!/usr/bin/env python
# encoding: utf-8
"""
setup.py
Setup the Keyring Lib for Python.
"""
import sys
from distutils.core import setup, Extension
from extensions import get_extensions
setup(name = 'keyring',
version = "0.5.1",
description = "Store and access your passwords safely.",
url = "http://... | <commit_before>#!/usr/bin/env python
# encoding: utf-8
"""
setup.py
Setup the Keyring Lib for Python.
"""
import sys
from distutils.core import setup, Extension
from extensions import get_extensions
setup(name = 'keyring',
version = "0.5.1",
description = "Store and access your passwords safely.",
... |
6e004d3ffb2925f5292582e5a4478707863b819e | setup.py | setup.py | from distutils.core import setup, Extension
setup(
name = 'iMX233_GPIO',
version = '0.1.0',
author = 'Stefan Mavrodiev',
author_email = 'support@olimex.com',
url = 'https://www.olimex.com/',
license = 'MIT',
descrip... | from distutils.core import setup, Extension
setup(
name = 'iMX233_GPIO',
version = '0.1.1',
author = 'Stefan Mavrodiev',
author_email = 'support@olimex.com',
url = 'https://www.olimex.com/',
license = 'MIT',
descrip... | Update package version to 0.1.1 | Update package version to 0.1.1
| Python | mit | droid4control/iMX233_GPIO,droid4control/iMX233_GPIO | from distutils.core import setup, Extension
setup(
name = 'iMX233_GPIO',
version = '0.1.0',
author = 'Stefan Mavrodiev',
author_email = 'support@olimex.com',
url = 'https://www.olimex.com/',
license = 'MIT',
descrip... | from distutils.core import setup, Extension
setup(
name = 'iMX233_GPIO',
version = '0.1.1',
author = 'Stefan Mavrodiev',
author_email = 'support@olimex.com',
url = 'https://www.olimex.com/',
license = 'MIT',
descrip... | <commit_before>from distutils.core import setup, Extension
setup(
name = 'iMX233_GPIO',
version = '0.1.0',
author = 'Stefan Mavrodiev',
author_email = 'support@olimex.com',
url = 'https://www.olimex.com/',
license = 'MI... | from distutils.core import setup, Extension
setup(
name = 'iMX233_GPIO',
version = '0.1.1',
author = 'Stefan Mavrodiev',
author_email = 'support@olimex.com',
url = 'https://www.olimex.com/',
license = 'MIT',
descrip... | from distutils.core import setup, Extension
setup(
name = 'iMX233_GPIO',
version = '0.1.0',
author = 'Stefan Mavrodiev',
author_email = 'support@olimex.com',
url = 'https://www.olimex.com/',
license = 'MIT',
descrip... | <commit_before>from distutils.core import setup, Extension
setup(
name = 'iMX233_GPIO',
version = '0.1.0',
author = 'Stefan Mavrodiev',
author_email = 'support@olimex.com',
url = 'https://www.olimex.com/',
license = 'MI... |
72e199f8adc2cb7206c414552c3faa86cc9ed699 | setup.py | setup.py | from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
setup(
name='urbansim',
version='0.2dev',
description='Tool for modeling metropolitan real estate markets',
author='Synthicity',
author_email='ffoti@berkeley.edu',
license='AGPL',
url='https://git... | from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
setup(
name='urbansim',
version='0.2dev',
description='Tool for modeling metropolitan real estate markets',
author='Synthicity',
author_email='ffoti@berkeley.edu',
license='AGPL',
url='https://git... | Fix pytables -> tables for pip. | Fix pytables -> tables for pip.
| Python | bsd-3-clause | apdjustino/urbansim,ual/urbansim,AZMAG/urbansim,SANDAG/urbansim,VladimirTyrin/urbansim,VladimirTyrin/urbansim,SANDAG/urbansim,synthicity/urbansim,apdjustino/urbansim,VladimirTyrin/urbansim,synthicity/urbansim,bricegnichols/urbansim,synthicity/urbansim,AZMAG/urbansim,apdjustino/urbansim,ual/urbansim,waddell/urbansim,UDS... | from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
setup(
name='urbansim',
version='0.2dev',
description='Tool for modeling metropolitan real estate markets',
author='Synthicity',
author_email='ffoti@berkeley.edu',
license='AGPL',
url='https://git... | from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
setup(
name='urbansim',
version='0.2dev',
description='Tool for modeling metropolitan real estate markets',
author='Synthicity',
author_email='ffoti@berkeley.edu',
license='AGPL',
url='https://git... | <commit_before>from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
setup(
name='urbansim',
version='0.2dev',
description='Tool for modeling metropolitan real estate markets',
author='Synthicity',
author_email='ffoti@berkeley.edu',
license='AGPL',
u... | from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
setup(
name='urbansim',
version='0.2dev',
description='Tool for modeling metropolitan real estate markets',
author='Synthicity',
author_email='ffoti@berkeley.edu',
license='AGPL',
url='https://git... | from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
setup(
name='urbansim',
version='0.2dev',
description='Tool for modeling metropolitan real estate markets',
author='Synthicity',
author_email='ffoti@berkeley.edu',
license='AGPL',
url='https://git... | <commit_before>from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
setup(
name='urbansim',
version='0.2dev',
description='Tool for modeling metropolitan real estate markets',
author='Synthicity',
author_email='ffoti@berkeley.edu',
license='AGPL',
u... |
ea3df41ae119bf0c1f7097dafde663bd6e98735a | setup.py | setup.py | from distutils.core import setup
setup(
name='udiskie',
version='0.3.3',
description='Removable disk automounter for udisks',
author='Byron Clark',
author_email='byron@theclarkfamily.name',
url='http://bitbucket.org/byronclark/udiskie',
license='MIT',
packages=[
'udiskie',
]... | from distutils.core import setup
setup(
name='udiskie',
version='0.3.4',
description='Removable disk automounter for udisks',
author='Byron Clark',
author_email='byron@theclarkfamily.name',
url='http://bitbucket.org/byronclark/udiskie',
license='MIT',
packages=[
'udiskie',
]... | Bump the version for development. | Bump the version for development.
| Python | mit | coldfix/udiskie,coldfix/udiskie,khardix/udiskie,pstray/udiskie,mathstuf/udiskie,pstray/udiskie | from distutils.core import setup
setup(
name='udiskie',
version='0.3.3',
description='Removable disk automounter for udisks',
author='Byron Clark',
author_email='byron@theclarkfamily.name',
url='http://bitbucket.org/byronclark/udiskie',
license='MIT',
packages=[
'udiskie',
]... | from distutils.core import setup
setup(
name='udiskie',
version='0.3.4',
description='Removable disk automounter for udisks',
author='Byron Clark',
author_email='byron@theclarkfamily.name',
url='http://bitbucket.org/byronclark/udiskie',
license='MIT',
packages=[
'udiskie',
]... | <commit_before>from distutils.core import setup
setup(
name='udiskie',
version='0.3.3',
description='Removable disk automounter for udisks',
author='Byron Clark',
author_email='byron@theclarkfamily.name',
url='http://bitbucket.org/byronclark/udiskie',
license='MIT',
packages=[
'... | from distutils.core import setup
setup(
name='udiskie',
version='0.3.4',
description='Removable disk automounter for udisks',
author='Byron Clark',
author_email='byron@theclarkfamily.name',
url='http://bitbucket.org/byronclark/udiskie',
license='MIT',
packages=[
'udiskie',
]... | from distutils.core import setup
setup(
name='udiskie',
version='0.3.3',
description='Removable disk automounter for udisks',
author='Byron Clark',
author_email='byron@theclarkfamily.name',
url='http://bitbucket.org/byronclark/udiskie',
license='MIT',
packages=[
'udiskie',
]... | <commit_before>from distutils.core import setup
setup(
name='udiskie',
version='0.3.3',
description='Removable disk automounter for udisks',
author='Byron Clark',
author_email='byron@theclarkfamily.name',
url='http://bitbucket.org/byronclark/udiskie',
license='MIT',
packages=[
'... |
c49e96114cd675842dc22923f980a2c05c80dcc7 | setup.py | setup.py | # -*- coding: utf-8 -*-
from setuptools import setup
project = "gastosabertos"
setup(
name=project,
version='0.0.1',
url='https://github.com/okfn-brasil/gastos_abertos',
description='Visualization of public spending in Sao Paulo city for Gastos Abertos project',
author='Edgar Zanella Alvarenga',
... | # -*- coding: utf-8 -*-
from setuptools import setup
project = "gastosabertos"
setup(
name=project,
version='0.0.1',
url='https://github.com/okfn-brasil/gastos_abertos',
description='Visualization of public spending in Sao Paulo city for Gastos Abertos project',
author='Edgar Zanella Alvarenga',
... | Add Flask-Restfull dependency to python package | Add Flask-Restfull dependency to python package
| Python | agpl-3.0 | okfn-brasil/gastos_abertos,okfn-brasil/gastos_abertos,LuizArmesto/gastos_abertos,nucleo-digital/gastos_abertos,LuizArmesto/gastos_abertos,andresmrm/gastos_abertos,andresmrm/gastos_abertos | # -*- coding: utf-8 -*-
from setuptools import setup
project = "gastosabertos"
setup(
name=project,
version='0.0.1',
url='https://github.com/okfn-brasil/gastos_abertos',
description='Visualization of public spending in Sao Paulo city for Gastos Abertos project',
author='Edgar Zanella Alvarenga',
... | # -*- coding: utf-8 -*-
from setuptools import setup
project = "gastosabertos"
setup(
name=project,
version='0.0.1',
url='https://github.com/okfn-brasil/gastos_abertos',
description='Visualization of public spending in Sao Paulo city for Gastos Abertos project',
author='Edgar Zanella Alvarenga',
... | <commit_before># -*- coding: utf-8 -*-
from setuptools import setup
project = "gastosabertos"
setup(
name=project,
version='0.0.1',
url='https://github.com/okfn-brasil/gastos_abertos',
description='Visualization of public spending in Sao Paulo city for Gastos Abertos project',
author='Edgar Zanel... | # -*- coding: utf-8 -*-
from setuptools import setup
project = "gastosabertos"
setup(
name=project,
version='0.0.1',
url='https://github.com/okfn-brasil/gastos_abertos',
description='Visualization of public spending in Sao Paulo city for Gastos Abertos project',
author='Edgar Zanella Alvarenga',
... | # -*- coding: utf-8 -*-
from setuptools import setup
project = "gastosabertos"
setup(
name=project,
version='0.0.1',
url='https://github.com/okfn-brasil/gastos_abertos',
description='Visualization of public spending in Sao Paulo city for Gastos Abertos project',
author='Edgar Zanella Alvarenga',
... | <commit_before># -*- coding: utf-8 -*-
from setuptools import setup
project = "gastosabertos"
setup(
name=project,
version='0.0.1',
url='https://github.com/okfn-brasil/gastos_abertos',
description='Visualization of public spending in Sao Paulo city for Gastos Abertos project',
author='Edgar Zanel... |
3059f4b36872f2210a4867be804981ca90751194 | setup.py | setup.py | from setuptools import setup
setup(
name='bookmarks',
packages=['bookmarks'],
include_package_data=True,
install_requires=[
'flask',
],
)
| from setuptools import setup
setup(
name='bookmarks',
packages=['bookmarks'],
include_package_data=True,
install_requires=[
'Flask',
'SQLalchemy'
],
)
| Add SQLalchemy to list of install requirements | Add SQLalchemy to list of install requirements
| Python | apache-2.0 | byanofsky/bookmarks,byanofsky/bookmarks,byanofsky/bookmarks | from setuptools import setup
setup(
name='bookmarks',
packages=['bookmarks'],
include_package_data=True,
install_requires=[
'flask',
],
)
Add SQLalchemy to list of install requirements | from setuptools import setup
setup(
name='bookmarks',
packages=['bookmarks'],
include_package_data=True,
install_requires=[
'Flask',
'SQLalchemy'
],
)
| <commit_before>from setuptools import setup
setup(
name='bookmarks',
packages=['bookmarks'],
include_package_data=True,
install_requires=[
'flask',
],
)
<commit_msg>Add SQLalchemy to list of install requirements<commit_after> | from setuptools import setup
setup(
name='bookmarks',
packages=['bookmarks'],
include_package_data=True,
install_requires=[
'Flask',
'SQLalchemy'
],
)
| from setuptools import setup
setup(
name='bookmarks',
packages=['bookmarks'],
include_package_data=True,
install_requires=[
'flask',
],
)
Add SQLalchemy to list of install requirementsfrom setuptools import setup
setup(
name='bookmarks',
packages=['bookmarks'],
include_package_... | <commit_before>from setuptools import setup
setup(
name='bookmarks',
packages=['bookmarks'],
include_package_data=True,
install_requires=[
'flask',
],
)
<commit_msg>Add SQLalchemy to list of install requirements<commit_after>from setuptools import setup
setup(
name='bookmarks',
pac... |
60150b68a254943006611b4300f772e5beb38af0 | setup.py | setup.py | #!/usr/bin/env python
import os
import sys
import io
try:
import setuptools
except ImportError:
from distribute_setup import use_setuptools
use_setuptools()
from setuptools import setup, Extension
from setuptools import find_packages
extra_compile_args = [] if os.name == 'nt' else ["-g", "-O2", "-march=nat... | #!/usr/bin/env python
import os
import sys
import io
try:
import setuptools
except ImportError:
from distribute_setup import use_setuptools
use_setuptools()
from setuptools import setup, Extension
from setuptools import find_packages
extra_compile_args = [] if os.name == 'nt' else ["-g", "-O2", "-march=nat... | Rollback to supporting older versions of cffi | Rollback to supporting older versions of cffi | Python | apache-2.0 | ulikoehler/cv_algorithms,ulikoehler/cv_algorithms | #!/usr/bin/env python
import os
import sys
import io
try:
import setuptools
except ImportError:
from distribute_setup import use_setuptools
use_setuptools()
from setuptools import setup, Extension
from setuptools import find_packages
extra_compile_args = [] if os.name == 'nt' else ["-g", "-O2", "-march=nat... | #!/usr/bin/env python
import os
import sys
import io
try:
import setuptools
except ImportError:
from distribute_setup import use_setuptools
use_setuptools()
from setuptools import setup, Extension
from setuptools import find_packages
extra_compile_args = [] if os.name == 'nt' else ["-g", "-O2", "-march=nat... | <commit_before>#!/usr/bin/env python
import os
import sys
import io
try:
import setuptools
except ImportError:
from distribute_setup import use_setuptools
use_setuptools()
from setuptools import setup, Extension
from setuptools import find_packages
extra_compile_args = [] if os.name == 'nt' else ["-g", "-O... | #!/usr/bin/env python
import os
import sys
import io
try:
import setuptools
except ImportError:
from distribute_setup import use_setuptools
use_setuptools()
from setuptools import setup, Extension
from setuptools import find_packages
extra_compile_args = [] if os.name == 'nt' else ["-g", "-O2", "-march=nat... | #!/usr/bin/env python
import os
import sys
import io
try:
import setuptools
except ImportError:
from distribute_setup import use_setuptools
use_setuptools()
from setuptools import setup, Extension
from setuptools import find_packages
extra_compile_args = [] if os.name == 'nt' else ["-g", "-O2", "-march=nat... | <commit_before>#!/usr/bin/env python
import os
import sys
import io
try:
import setuptools
except ImportError:
from distribute_setup import use_setuptools
use_setuptools()
from setuptools import setup, Extension
from setuptools import find_packages
extra_compile_args = [] if os.name == 'nt' else ["-g", "-O... |
10e5c50bac81bc072195676f202190de4adc3459 | setup.py | setup.py | import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
# import here, cause outside... | import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
# import here, cause outside... | Change development status from pre-alpha to alpha | Change development status from pre-alpha to alpha
| Python | mit | spatialaudio/jackclient-python,stephenedie/jackclient-python | import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
# import here, cause outside... | import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
# import here, cause outside... | <commit_before>import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
# import here... | import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
# import here, cause outside... | import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
# import here, cause outside... | <commit_before>import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
# import here... |
d4cf6a4737ba6c05c5150e2b892b8b0d01d800e9 | setup.py | setup.py | #!/usr/bin/env python
import setuptools
install_requires = [
'PrettyTable==0.7.2',
'kazoo==1.00',
'simplejson',
'argparse',
'kafka-python'
]
setuptools.setup(
name = 'stormkafkamon',
version = '0.1.0',
license = 'Apache',
description = '''Monitor offsets of a storm kafka spout.'''... | #!/usr/bin/env python
import setuptools
install_requires = [
'PrettyTable==0.7.2',
'kazoo==1.00',
'simplejson',
'argparse',
'kafka-python'
]
setuptools.setup(
name = 'stormkafkamon',
version = '0.1.0',
license = 'Apache',
description = '''Monitor offsets of a storm kafka spout.'''... | Add author and author email. | Add author and author email.
| Python | apache-2.0 | vivekrao1985/stormkafkamon,ianawilson/stormkafkamon,otoolep/stormkafkamon,grue/stormkafkamon | #!/usr/bin/env python
import setuptools
install_requires = [
'PrettyTable==0.7.2',
'kazoo==1.00',
'simplejson',
'argparse',
'kafka-python'
]
setuptools.setup(
name = 'stormkafkamon',
version = '0.1.0',
license = 'Apache',
description = '''Monitor offsets of a storm kafka spout.'''... | #!/usr/bin/env python
import setuptools
install_requires = [
'PrettyTable==0.7.2',
'kazoo==1.00',
'simplejson',
'argparse',
'kafka-python'
]
setuptools.setup(
name = 'stormkafkamon',
version = '0.1.0',
license = 'Apache',
description = '''Monitor offsets of a storm kafka spout.'''... | <commit_before>#!/usr/bin/env python
import setuptools
install_requires = [
'PrettyTable==0.7.2',
'kazoo==1.00',
'simplejson',
'argparse',
'kafka-python'
]
setuptools.setup(
name = 'stormkafkamon',
version = '0.1.0',
license = 'Apache',
description = '''Monitor offsets of a storm ... | #!/usr/bin/env python
import setuptools
install_requires = [
'PrettyTable==0.7.2',
'kazoo==1.00',
'simplejson',
'argparse',
'kafka-python'
]
setuptools.setup(
name = 'stormkafkamon',
version = '0.1.0',
license = 'Apache',
description = '''Monitor offsets of a storm kafka spout.'''... | #!/usr/bin/env python
import setuptools
install_requires = [
'PrettyTable==0.7.2',
'kazoo==1.00',
'simplejson',
'argparse',
'kafka-python'
]
setuptools.setup(
name = 'stormkafkamon',
version = '0.1.0',
license = 'Apache',
description = '''Monitor offsets of a storm kafka spout.'''... | <commit_before>#!/usr/bin/env python
import setuptools
install_requires = [
'PrettyTable==0.7.2',
'kazoo==1.00',
'simplejson',
'argparse',
'kafka-python'
]
setuptools.setup(
name = 'stormkafkamon',
version = '0.1.0',
license = 'Apache',
description = '''Monitor offsets of a storm ... |
2493bae247c73ad00dd6205bb738bbecf163221f | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name="django-salmonella",
version='0.6',
author='Lincoln Loop: Seth Buntin, Yann Malet',
author_email='info@lincolnloop.com',
description=("raw_id_fields widget replacement that handles display of an object's "
... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name="django-salmonella",
version='0.6',
author='Lincoln Loop: Seth Buntin, Yann Malet',
author_email='info@lincolnloop.com',
description=("raw_id_fields widget replacement that handles display of an object's "
... | Make sure we include package data too. | Make sure we include package data too. | Python | mit | lincolnloop/django-salmonella,Gustavosdo/django-salmonella,lincolnloop/django-salmonella,lincolnloop/django-salmonella,Gustavosdo/django-salmonella,Gustavosdo/django-salmonella,lincolnloop/django-salmonella | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name="django-salmonella",
version='0.6',
author='Lincoln Loop: Seth Buntin, Yann Malet',
author_email='info@lincolnloop.com',
description=("raw_id_fields widget replacement that handles display of an object's "
... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name="django-salmonella",
version='0.6',
author='Lincoln Loop: Seth Buntin, Yann Malet',
author_email='info@lincolnloop.com',
description=("raw_id_fields widget replacement that handles display of an object's "
... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name="django-salmonella",
version='0.6',
author='Lincoln Loop: Seth Buntin, Yann Malet',
author_email='info@lincolnloop.com',
description=("raw_id_fields widget replacement that handles display of an object's "
... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name="django-salmonella",
version='0.6',
author='Lincoln Loop: Seth Buntin, Yann Malet',
author_email='info@lincolnloop.com',
description=("raw_id_fields widget replacement that handles display of an object's "
... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name="django-salmonella",
version='0.6',
author='Lincoln Loop: Seth Buntin, Yann Malet',
author_email='info@lincolnloop.com',
description=("raw_id_fields widget replacement that handles display of an object's "
... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name="django-salmonella",
version='0.6',
author='Lincoln Loop: Seth Buntin, Yann Malet',
author_email='info@lincolnloop.com',
description=("raw_id_fields widget replacement that handles display of an object's "
... |
1e5c0bee1a41befd4e7571fae05efdec2639aba7 | setup.py | setup.py | from setuptools import setup
setup(
name='colorlog',
version='2.6.0',
description='Log formatting with colors!',
long_description=open("README.rst").read(),
author='Sam Clements',
author_email='sam@borntyping.co.uk',
url='https://github.com/borntyping/python-colorlog',
license='MIT Li... | from setuptools import setup
setup(
name='colorlog',
version='2.6.0',
description='Log formatting with colors!',
long_description=open("README.rst").read(),
author='Sam Clements',
author_email='sam@borntyping.co.uk',
url='https://github.com/borntyping/python-colorlog',
license='MIT Li... | Change platform test according to wheel docs | Change platform test according to wheel docs
| Python | mit | borntyping/python-colorlog | from setuptools import setup
setup(
name='colorlog',
version='2.6.0',
description='Log formatting with colors!',
long_description=open("README.rst").read(),
author='Sam Clements',
author_email='sam@borntyping.co.uk',
url='https://github.com/borntyping/python-colorlog',
license='MIT Li... | from setuptools import setup
setup(
name='colorlog',
version='2.6.0',
description='Log formatting with colors!',
long_description=open("README.rst").read(),
author='Sam Clements',
author_email='sam@borntyping.co.uk',
url='https://github.com/borntyping/python-colorlog',
license='MIT Li... | <commit_before>from setuptools import setup
setup(
name='colorlog',
version='2.6.0',
description='Log formatting with colors!',
long_description=open("README.rst").read(),
author='Sam Clements',
author_email='sam@borntyping.co.uk',
url='https://github.com/borntyping/python-colorlog',
... | from setuptools import setup
setup(
name='colorlog',
version='2.6.0',
description='Log formatting with colors!',
long_description=open("README.rst").read(),
author='Sam Clements',
author_email='sam@borntyping.co.uk',
url='https://github.com/borntyping/python-colorlog',
license='MIT Li... | from setuptools import setup
setup(
name='colorlog',
version='2.6.0',
description='Log formatting with colors!',
long_description=open("README.rst").read(),
author='Sam Clements',
author_email='sam@borntyping.co.uk',
url='https://github.com/borntyping/python-colorlog',
license='MIT Li... | <commit_before>from setuptools import setup
setup(
name='colorlog',
version='2.6.0',
description='Log formatting with colors!',
long_description=open("README.rst").read(),
author='Sam Clements',
author_email='sam@borntyping.co.uk',
url='https://github.com/borntyping/python-colorlog',
... |
325ccef4461cdbcc71508e2616b3c8beddc57d8f | setup.py | setup.py | import re
from setuptools import setup
init_py = open('textlines/__init__.py').read()
metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", init_py))
metadata['doc'] = re.findall('"""(.+)"""', init_py)[0]
setup(
name='textlines',
version=metadata['version'],
description=metadata['doc'],
author=metada... | import re
from setuptools import setup
init_py = open('textlines/__init__.py').read()
metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", init_py))
metadata['doc'] = re.findall('"""((.|\n)*)"""', init_py)[0]
setup(
name='textlines',
version=metadata['version'],
description=metadata['doc'],
author=m... | Fix re to match newlines as well | Fix re to match newlines as well
| Python | apache-2.0 | michaeljoseph/textlines,michaeljoseph/textlines | import re
from setuptools import setup
init_py = open('textlines/__init__.py').read()
metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", init_py))
metadata['doc'] = re.findall('"""(.+)"""', init_py)[0]
setup(
name='textlines',
version=metadata['version'],
description=metadata['doc'],
author=metada... | import re
from setuptools import setup
init_py = open('textlines/__init__.py').read()
metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", init_py))
metadata['doc'] = re.findall('"""((.|\n)*)"""', init_py)[0]
setup(
name='textlines',
version=metadata['version'],
description=metadata['doc'],
author=m... | <commit_before>import re
from setuptools import setup
init_py = open('textlines/__init__.py').read()
metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", init_py))
metadata['doc'] = re.findall('"""(.+)"""', init_py)[0]
setup(
name='textlines',
version=metadata['version'],
description=metadata['doc'],
... | import re
from setuptools import setup
init_py = open('textlines/__init__.py').read()
metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", init_py))
metadata['doc'] = re.findall('"""((.|\n)*)"""', init_py)[0]
setup(
name='textlines',
version=metadata['version'],
description=metadata['doc'],
author=m... | import re
from setuptools import setup
init_py = open('textlines/__init__.py').read()
metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", init_py))
metadata['doc'] = re.findall('"""(.+)"""', init_py)[0]
setup(
name='textlines',
version=metadata['version'],
description=metadata['doc'],
author=metada... | <commit_before>import re
from setuptools import setup
init_py = open('textlines/__init__.py').read()
metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", init_py))
metadata['doc'] = re.findall('"""(.+)"""', init_py)[0]
setup(
name='textlines',
version=metadata['version'],
description=metadata['doc'],
... |
643cfac6270b97706506812e0bb4b070f50b8085 | setup.py | setup.py | #!/usr/bin/env python
from os.path import exists
import re
from setuptools import setup
contents = re.findall(
r'__version__ = \'([.0-9]+)\'',
open('unification/__init__.py', 'r').read())[0]
setup(name='unification',
version=contents,
description='Unification',
url='http://github.com/mrockl... | #!/usr/bin/env python
from os.path import exists, join
import re
from setuptools import setup
version = re.findall(
r'__version__ = \'([.0-9]+)\'',
open(join('unification', '__init__.py'), 'r').read())[0]
setup(name='unification',
version=version,
description='Unification',
url='http://gith... | Join paths to avoid hardcoding path separators | Join paths to avoid hardcoding path separators
| Python | bsd-3-clause | mrocklin/unification | #!/usr/bin/env python
from os.path import exists
import re
from setuptools import setup
contents = re.findall(
r'__version__ = \'([.0-9]+)\'',
open('unification/__init__.py', 'r').read())[0]
setup(name='unification',
version=contents,
description='Unification',
url='http://github.com/mrockl... | #!/usr/bin/env python
from os.path import exists, join
import re
from setuptools import setup
version = re.findall(
r'__version__ = \'([.0-9]+)\'',
open(join('unification', '__init__.py'), 'r').read())[0]
setup(name='unification',
version=version,
description='Unification',
url='http://gith... | <commit_before>#!/usr/bin/env python
from os.path import exists
import re
from setuptools import setup
contents = re.findall(
r'__version__ = \'([.0-9]+)\'',
open('unification/__init__.py', 'r').read())[0]
setup(name='unification',
version=contents,
description='Unification',
url='http://gi... | #!/usr/bin/env python
from os.path import exists, join
import re
from setuptools import setup
version = re.findall(
r'__version__ = \'([.0-9]+)\'',
open(join('unification', '__init__.py'), 'r').read())[0]
setup(name='unification',
version=version,
description='Unification',
url='http://gith... | #!/usr/bin/env python
from os.path import exists
import re
from setuptools import setup
contents = re.findall(
r'__version__ = \'([.0-9]+)\'',
open('unification/__init__.py', 'r').read())[0]
setup(name='unification',
version=contents,
description='Unification',
url='http://github.com/mrockl... | <commit_before>#!/usr/bin/env python
from os.path import exists
import re
from setuptools import setup
contents = re.findall(
r'__version__ = \'([.0-9]+)\'',
open('unification/__init__.py', 'r').read())[0]
setup(name='unification',
version=contents,
description='Unification',
url='http://gi... |
4bad234471f1142ad4172a3ec423c90cec512b2b | setup.py | setup.py | #!/usr/bin/env python
# coding: utf-8
import os
import re
from setuptools import setup, find_packages
def load_required_modules():
with open(os.path.join(os.path.dirname(__file__), "requirements.txt")) as f:
return [line.strip() for line in f.read().strip().split(os.linesep) if line.strip()]
setup(
... | #!/usr/bin/env python
# coding: utf-8
import os
import re
from setuptools import setup, find_packages
def load_required_modules():
with open(os.path.join(os.path.dirname(__file__), "requirements.txt")) as f:
return [line.strip() for line in f.readlines() if line.strip()]
setup(
name='dictmixin',
... | Fix bug which load_required_modules always returns list which length is 1 | Fix bug which load_required_modules always returns list which length is 1
| Python | mit | tadashi-aikawa/owlmixin | #!/usr/bin/env python
# coding: utf-8
import os
import re
from setuptools import setup, find_packages
def load_required_modules():
with open(os.path.join(os.path.dirname(__file__), "requirements.txt")) as f:
return [line.strip() for line in f.read().strip().split(os.linesep) if line.strip()]
setup(
... | #!/usr/bin/env python
# coding: utf-8
import os
import re
from setuptools import setup, find_packages
def load_required_modules():
with open(os.path.join(os.path.dirname(__file__), "requirements.txt")) as f:
return [line.strip() for line in f.readlines() if line.strip()]
setup(
name='dictmixin',
... | <commit_before>#!/usr/bin/env python
# coding: utf-8
import os
import re
from setuptools import setup, find_packages
def load_required_modules():
with open(os.path.join(os.path.dirname(__file__), "requirements.txt")) as f:
return [line.strip() for line in f.read().strip().split(os.linesep) if line.strip(... | #!/usr/bin/env python
# coding: utf-8
import os
import re
from setuptools import setup, find_packages
def load_required_modules():
with open(os.path.join(os.path.dirname(__file__), "requirements.txt")) as f:
return [line.strip() for line in f.readlines() if line.strip()]
setup(
name='dictmixin',
... | #!/usr/bin/env python
# coding: utf-8
import os
import re
from setuptools import setup, find_packages
def load_required_modules():
with open(os.path.join(os.path.dirname(__file__), "requirements.txt")) as f:
return [line.strip() for line in f.read().strip().split(os.linesep) if line.strip()]
setup(
... | <commit_before>#!/usr/bin/env python
# coding: utf-8
import os
import re
from setuptools import setup, find_packages
def load_required_modules():
with open(os.path.join(os.path.dirname(__file__), "requirements.txt")) as f:
return [line.strip() for line in f.read().strip().split(os.linesep) if line.strip(... |
9a510242480dfbf01ab5e635ae3eae034a93f279 | setup.py | setup.py | #!/usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
import os
from setuptools import setup, find_packages
here = os.path.dirname(__file__)
version_file = os.path.join(here, 'src/iptools/__init__.py')
d = {}
execfile(version_file, d)
version = d['__version__']
setup(
name = 'iptools',
... | #!/usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
import os
from setuptools import setup, find_packages
here = os.path.dirname(__file__)
version_file = os.path.join(here, 'src/iptools/__init__.py')
d = {}
execfile(version_file, d)
version = d['__version__']
setup(
name = 'iptools',
... | Mark as python 3 compatable. | Mark as python 3 compatable.
git-svn-id: c8188841f5432f3fe42d04dee4f87e556eb5cf84@19 99efc558-b41a-11dd-8714-116ca565c52f
| Python | bsd-2-clause | bd808/python-iptools | #!/usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
import os
from setuptools import setup, find_packages
here = os.path.dirname(__file__)
version_file = os.path.join(here, 'src/iptools/__init__.py')
d = {}
execfile(version_file, d)
version = d['__version__']
setup(
name = 'iptools',
... | #!/usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
import os
from setuptools import setup, find_packages
here = os.path.dirname(__file__)
version_file = os.path.join(here, 'src/iptools/__init__.py')
d = {}
execfile(version_file, d)
version = d['__version__']
setup(
name = 'iptools',
... | <commit_before>#!/usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
import os
from setuptools import setup, find_packages
here = os.path.dirname(__file__)
version_file = os.path.join(here, 'src/iptools/__init__.py')
d = {}
execfile(version_file, d)
version = d['__version__']
setup(
name =... | #!/usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
import os
from setuptools import setup, find_packages
here = os.path.dirname(__file__)
version_file = os.path.join(here, 'src/iptools/__init__.py')
d = {}
execfile(version_file, d)
version = d['__version__']
setup(
name = 'iptools',
... | #!/usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
import os
from setuptools import setup, find_packages
here = os.path.dirname(__file__)
version_file = os.path.join(here, 'src/iptools/__init__.py')
d = {}
execfile(version_file, d)
version = d['__version__']
setup(
name = 'iptools',
... | <commit_before>#!/usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
import os
from setuptools import setup, find_packages
here = os.path.dirname(__file__)
version_file = os.path.join(here, 'src/iptools/__init__.py')
d = {}
execfile(version_file, d)
version = d['__version__']
setup(
name =... |
a85847e2450929aa1692e78a34337e9ca4408750 | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
requirements = [
'pyzmq',
'docopt',
'virtualenv',
'requests'
]
setup(
name='tingbot... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
requirements = [
'pyzmq',
'docopt',
'virtualenv',
'requests',
'Pillow',
]
setup(
... | Add missing dependency on Pillow | Add missing dependency on Pillow
| Python | bsd-2-clause | furbrain/tingbot-python | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
requirements = [
'pyzmq',
'docopt',
'virtualenv',
'requests'
]
setup(
name='tingbot... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
requirements = [
'pyzmq',
'docopt',
'virtualenv',
'requests',
'Pillow',
]
setup(
... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
requirements = [
'pyzmq',
'docopt',
'virtualenv',
'requests'
]
setup(
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
requirements = [
'pyzmq',
'docopt',
'virtualenv',
'requests',
'Pillow',
]
setup(
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
requirements = [
'pyzmq',
'docopt',
'virtualenv',
'requests'
]
setup(
name='tingbot... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
requirements = [
'pyzmq',
'docopt',
'virtualenv',
'requests'
]
setup(
... |
dcf76b96f6b6e7c504ab49af4a7f72eabda1b4be | setup.py | setup.py | #!/usr/bin/env python3
# encoding: utf-8
from setuptools import setup, find_packages
setup(
name='pyatv',
version='0.1.1',
license='MIT',
url='https://github.com/postlund/pyatv',
author='Pierre Ståhl',
author_email='pierre.staahl@gmail.com',
description='Library for controlling an Apple TV... | #!/usr/bin/env python3
# encoding: utf-8
from setuptools import setup, find_packages
setup(
name='pyatv',
version='0.1.2.dev1',
license='MIT',
url='https://github.com/postlund/pyatv',
author='Pierre Ståhl',
author_email='pierre.staahl@gmail.com',
description='Library for controlling an App... | Bump to next dev 0.1.2.dev1 | Bump to next dev 0.1.2.dev1
| Python | mit | postlund/pyatv,postlund/pyatv | #!/usr/bin/env python3
# encoding: utf-8
from setuptools import setup, find_packages
setup(
name='pyatv',
version='0.1.1',
license='MIT',
url='https://github.com/postlund/pyatv',
author='Pierre Ståhl',
author_email='pierre.staahl@gmail.com',
description='Library for controlling an Apple TV... | #!/usr/bin/env python3
# encoding: utf-8
from setuptools import setup, find_packages
setup(
name='pyatv',
version='0.1.2.dev1',
license='MIT',
url='https://github.com/postlund/pyatv',
author='Pierre Ståhl',
author_email='pierre.staahl@gmail.com',
description='Library for controlling an App... | <commit_before>#!/usr/bin/env python3
# encoding: utf-8
from setuptools import setup, find_packages
setup(
name='pyatv',
version='0.1.1',
license='MIT',
url='https://github.com/postlund/pyatv',
author='Pierre Ståhl',
author_email='pierre.staahl@gmail.com',
description='Library for controll... | #!/usr/bin/env python3
# encoding: utf-8
from setuptools import setup, find_packages
setup(
name='pyatv',
version='0.1.2.dev1',
license='MIT',
url='https://github.com/postlund/pyatv',
author='Pierre Ståhl',
author_email='pierre.staahl@gmail.com',
description='Library for controlling an App... | #!/usr/bin/env python3
# encoding: utf-8
from setuptools import setup, find_packages
setup(
name='pyatv',
version='0.1.1',
license='MIT',
url='https://github.com/postlund/pyatv',
author='Pierre Ståhl',
author_email='pierre.staahl@gmail.com',
description='Library for controlling an Apple TV... | <commit_before>#!/usr/bin/env python3
# encoding: utf-8
from setuptools import setup, find_packages
setup(
name='pyatv',
version='0.1.1',
license='MIT',
url='https://github.com/postlund/pyatv',
author='Pierre Ståhl',
author_email='pierre.staahl@gmail.com',
description='Library for controll... |
be0042cdc844d0735f05449749735107c5caff16 | setup.py | setup.py | # Copyright 2013-2014 Massachusetts Open Cloud Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the
# License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | # Copyright 2013-2014 Massachusetts Open Cloud Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the
# License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | Change version number to 0.1 | Change version number to 0.1
...in preparation for the upcoming release.
| Python | apache-2.0 | kylehogan/hil,kylehogan/haas,henn/hil,apoorvemohan/haas,meng-sun/hil,SahilTikale/switchHaaS,kylehogan/hil,apoorvemohan/haas,meng-sun/hil,henn/hil_sahil,SahilTikale/haas,henn/hil_sahil,henn/hil,henn/haas,CCI-MOC/haas | # Copyright 2013-2014 Massachusetts Open Cloud Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the
# License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | # Copyright 2013-2014 Massachusetts Open Cloud Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the
# License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | <commit_before># Copyright 2013-2014 Massachusetts Open Cloud Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the
# License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | # Copyright 2013-2014 Massachusetts Open Cloud Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the
# License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | # Copyright 2013-2014 Massachusetts Open Cloud Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the
# License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | <commit_before># Copyright 2013-2014 Massachusetts Open Cloud Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the
# License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... |
67a3c5665a2a91d00a8db8dc8a0fcf12935b5040 | setup.py | setup.py | #!/usr/bin/env python
import sys
from setuptools import setup
from shortuuid import __version__
assert sys.version >= "2.5", "Requires Python v2.5 or above."
classifiers = [
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 2.5",
"Program... | #!/usr/bin/env python
import sys
from setuptools import setup
from shortuuid import __version__
assert sys.version >= "2.5", "Requires Python v2.5 or above."
classifiers = [
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 2.5",
"Program... | Add pre-commit as a test dependency | Add pre-commit as a test dependency
| Python | bsd-3-clause | stochastic-technologies/shortuuid,skorokithakis/shortuuid | #!/usr/bin/env python
import sys
from setuptools import setup
from shortuuid import __version__
assert sys.version >= "2.5", "Requires Python v2.5 or above."
classifiers = [
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 2.5",
"Program... | #!/usr/bin/env python
import sys
from setuptools import setup
from shortuuid import __version__
assert sys.version >= "2.5", "Requires Python v2.5 or above."
classifiers = [
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 2.5",
"Program... | <commit_before>#!/usr/bin/env python
import sys
from setuptools import setup
from shortuuid import __version__
assert sys.version >= "2.5", "Requires Python v2.5 or above."
classifiers = [
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 2.5... | #!/usr/bin/env python
import sys
from setuptools import setup
from shortuuid import __version__
assert sys.version >= "2.5", "Requires Python v2.5 or above."
classifiers = [
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 2.5",
"Program... | #!/usr/bin/env python
import sys
from setuptools import setup
from shortuuid import __version__
assert sys.version >= "2.5", "Requires Python v2.5 or above."
classifiers = [
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 2.5",
"Program... | <commit_before>#!/usr/bin/env python
import sys
from setuptools import setup
from shortuuid import __version__
assert sys.version >= "2.5", "Requires Python v2.5 or above."
classifiers = [
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 2.5... |
c4fd6305b543eb04b4555aa2b2fad0d3e7e83ebb | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(name='megacl',
version='0.2.0',
description='mega.co.nz command line client.',
author='Arthibus Gisséhel',
author_email='public-dev-megacl@gissehel.org',
url='https://github.com/gissehel/megac... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(name='megacl',
version='0.2.1',
description='mega.co.nz command line client.',
author='Arthibus Gisséhel',
author_email='public-dev-megacl@gissehel.org',
url='https://github.com/gissehel/megac... | Add mega.py dependency as mega.py doesn't explicitly list them yet | Add mega.py dependency as mega.py doesn't explicitly list them yet
| Python | mit | gissehel/megacl | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(name='megacl',
version='0.2.0',
description='mega.co.nz command line client.',
author='Arthibus Gisséhel',
author_email='public-dev-megacl@gissehel.org',
url='https://github.com/gissehel/megac... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(name='megacl',
version='0.2.1',
description='mega.co.nz command line client.',
author='Arthibus Gisséhel',
author_email='public-dev-megacl@gissehel.org',
url='https://github.com/gissehel/megac... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(name='megacl',
version='0.2.0',
description='mega.co.nz command line client.',
author='Arthibus Gisséhel',
author_email='public-dev-megacl@gissehel.org',
url='https://github.com... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(name='megacl',
version='0.2.1',
description='mega.co.nz command line client.',
author='Arthibus Gisséhel',
author_email='public-dev-megacl@gissehel.org',
url='https://github.com/gissehel/megac... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(name='megacl',
version='0.2.0',
description='mega.co.nz command line client.',
author='Arthibus Gisséhel',
author_email='public-dev-megacl@gissehel.org',
url='https://github.com/gissehel/megac... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(name='megacl',
version='0.2.0',
description='mega.co.nz command line client.',
author='Arthibus Gisséhel',
author_email='public-dev-megacl@gissehel.org',
url='https://github.com... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.