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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5a49e5bea67465528b1e644a98da282c66e9c35f | tests/fixtures/postgres.py | tests/fixtures/postgres.py | import pytest
from sqlalchemy import text
from sqlalchemy.exc import ProgrammingError
from sqlalchemy.ext.asyncio import AsyncEngine, create_async_engine
from sqlalchemy.ext.asyncio import AsyncSession
from virtool.models import Base
@pytest.fixture(scope="function")
async def engine():
engine = create_async_en... | import pytest
from sqlalchemy import text
from sqlalchemy.exc import ProgrammingError
from sqlalchemy.ext.asyncio import AsyncEngine, create_async_engine
from sqlalchemy.ext.asyncio import AsyncSession
from virtool.models import Base
@pytest.fixture(scope="function")
async def test_engine():
engine = create_asy... | Rename 'engine' fixture to 'test_engine' | Rename 'engine' fixture to 'test_engine'
| Python | mit | igboyes/virtool,virtool/virtool,virtool/virtool,igboyes/virtool | import pytest
from sqlalchemy import text
from sqlalchemy.exc import ProgrammingError
from sqlalchemy.ext.asyncio import AsyncEngine, create_async_engine
from sqlalchemy.ext.asyncio import AsyncSession
from virtool.models import Base
@pytest.fixture(scope="function")
async def engine():
engine = create_async_en... | import pytest
from sqlalchemy import text
from sqlalchemy.exc import ProgrammingError
from sqlalchemy.ext.asyncio import AsyncEngine, create_async_engine
from sqlalchemy.ext.asyncio import AsyncSession
from virtool.models import Base
@pytest.fixture(scope="function")
async def test_engine():
engine = create_asy... | <commit_before>import pytest
from sqlalchemy import text
from sqlalchemy.exc import ProgrammingError
from sqlalchemy.ext.asyncio import AsyncEngine, create_async_engine
from sqlalchemy.ext.asyncio import AsyncSession
from virtool.models import Base
@pytest.fixture(scope="function")
async def engine():
engine = ... | import pytest
from sqlalchemy import text
from sqlalchemy.exc import ProgrammingError
from sqlalchemy.ext.asyncio import AsyncEngine, create_async_engine
from sqlalchemy.ext.asyncio import AsyncSession
from virtool.models import Base
@pytest.fixture(scope="function")
async def test_engine():
engine = create_asy... | import pytest
from sqlalchemy import text
from sqlalchemy.exc import ProgrammingError
from sqlalchemy.ext.asyncio import AsyncEngine, create_async_engine
from sqlalchemy.ext.asyncio import AsyncSession
from virtool.models import Base
@pytest.fixture(scope="function")
async def engine():
engine = create_async_en... | <commit_before>import pytest
from sqlalchemy import text
from sqlalchemy.exc import ProgrammingError
from sqlalchemy.ext.asyncio import AsyncEngine, create_async_engine
from sqlalchemy.ext.asyncio import AsyncSession
from virtool.models import Base
@pytest.fixture(scope="function")
async def engine():
engine = ... |
7f59bf7b24caf0ae92abadae9427d0293f4a39b7 | longshot.py | longshot.py | #!/usr/local/bin/python
__version__ = '0.1'
HOME_URL = 'https://raw.githubusercontent.com/ftobia/longshot/develop/longshot.py'
def upgrade():
backup_self()
download_and_overwrite()
restart()
def backup_self():
import shutil
new_name = __file__ + '.bak'
shutil.copy(__file__, new_name)
def ... | #!/usr/local/bin/python
__version__ = '0.1'
HOME_URL = 'https://raw.githubusercontent.com/ftobia/longshot/develop/longshot.py'
def upgrade():
backup_self()
download_and_overwrite()
restart()
def backup_self():
import shutil
new_name = __file__ + '.bak'
shutil.copy(__file__, new_name)
def ... | Call execvp correctly (I hope). | Call execvp correctly (I hope).
| Python | bsd-3-clause | ftobia/longshot | #!/usr/local/bin/python
__version__ = '0.1'
HOME_URL = 'https://raw.githubusercontent.com/ftobia/longshot/develop/longshot.py'
def upgrade():
backup_self()
download_and_overwrite()
restart()
def backup_self():
import shutil
new_name = __file__ + '.bak'
shutil.copy(__file__, new_name)
def ... | #!/usr/local/bin/python
__version__ = '0.1'
HOME_URL = 'https://raw.githubusercontent.com/ftobia/longshot/develop/longshot.py'
def upgrade():
backup_self()
download_and_overwrite()
restart()
def backup_self():
import shutil
new_name = __file__ + '.bak'
shutil.copy(__file__, new_name)
def ... | <commit_before>#!/usr/local/bin/python
__version__ = '0.1'
HOME_URL = 'https://raw.githubusercontent.com/ftobia/longshot/develop/longshot.py'
def upgrade():
backup_self()
download_and_overwrite()
restart()
def backup_self():
import shutil
new_name = __file__ + '.bak'
shutil.copy(__file__, n... | #!/usr/local/bin/python
__version__ = '0.1'
HOME_URL = 'https://raw.githubusercontent.com/ftobia/longshot/develop/longshot.py'
def upgrade():
backup_self()
download_and_overwrite()
restart()
def backup_self():
import shutil
new_name = __file__ + '.bak'
shutil.copy(__file__, new_name)
def ... | #!/usr/local/bin/python
__version__ = '0.1'
HOME_URL = 'https://raw.githubusercontent.com/ftobia/longshot/develop/longshot.py'
def upgrade():
backup_self()
download_and_overwrite()
restart()
def backup_self():
import shutil
new_name = __file__ + '.bak'
shutil.copy(__file__, new_name)
def ... | <commit_before>#!/usr/local/bin/python
__version__ = '0.1'
HOME_URL = 'https://raw.githubusercontent.com/ftobia/longshot/develop/longshot.py'
def upgrade():
backup_self()
download_and_overwrite()
restart()
def backup_self():
import shutil
new_name = __file__ + '.bak'
shutil.copy(__file__, n... |
3131ea5c8dd41d18192f685e61c1bc8987038193 | vcs_info_panel/tests/test_clients/test_git.py | vcs_info_panel/tests/test_clients/test_git.py | import subprocess
from unittest.mock import patch
from django.test import TestCase
from vcs_info_panel.clients.git import GitClient
class GitClientTestCase(TestCase):
def setUp(self):
self.client = GitClient()
def _test_called_check_output(self, commands):
with patch('subprocess.check_output... | import subprocess
from unittest.mock import patch
from django.test import TestCase
from vcs_info_panel.clients.git import GitClient
def without_git_repository(func):
def inner(*args, **kwargs):
with patch('subprocess.check_output') as _check_output:
_check_output.side_effect = subprocess.Call... | Use decorator to patch git repository is not exist | Use decorator to patch git repository is not exist
| Python | mit | giginet/django-debug-toolbar-vcs-info,giginet/django-debug-toolbar-vcs-info | import subprocess
from unittest.mock import patch
from django.test import TestCase
from vcs_info_panel.clients.git import GitClient
class GitClientTestCase(TestCase):
def setUp(self):
self.client = GitClient()
def _test_called_check_output(self, commands):
with patch('subprocess.check_output... | import subprocess
from unittest.mock import patch
from django.test import TestCase
from vcs_info_panel.clients.git import GitClient
def without_git_repository(func):
def inner(*args, **kwargs):
with patch('subprocess.check_output') as _check_output:
_check_output.side_effect = subprocess.Call... | <commit_before>import subprocess
from unittest.mock import patch
from django.test import TestCase
from vcs_info_panel.clients.git import GitClient
class GitClientTestCase(TestCase):
def setUp(self):
self.client = GitClient()
def _test_called_check_output(self, commands):
with patch('subproce... | import subprocess
from unittest.mock import patch
from django.test import TestCase
from vcs_info_panel.clients.git import GitClient
def without_git_repository(func):
def inner(*args, **kwargs):
with patch('subprocess.check_output') as _check_output:
_check_output.side_effect = subprocess.Call... | import subprocess
from unittest.mock import patch
from django.test import TestCase
from vcs_info_panel.clients.git import GitClient
class GitClientTestCase(TestCase):
def setUp(self):
self.client = GitClient()
def _test_called_check_output(self, commands):
with patch('subprocess.check_output... | <commit_before>import subprocess
from unittest.mock import patch
from django.test import TestCase
from vcs_info_panel.clients.git import GitClient
class GitClientTestCase(TestCase):
def setUp(self):
self.client = GitClient()
def _test_called_check_output(self, commands):
with patch('subproce... |
c87fb60a13c3f81805d4d446902168656c5e9f6b | irc/util.py | irc/util.py | # from jaraco.util.itertools
def always_iterable(item):
"""
Given an object, always return an iterable. If the item is not
already iterable, return a tuple containing only the item.
>>> always_iterable([1,2,3])
[1, 2, 3]
>>> always_iterable('foo')
('foo',)
>>> always_iterable(None)
... | # from jaraco.util.itertools
def always_iterable(item):
"""
Given an object, always return an iterable. If the item is not
already iterable, return a tuple containing only the item.
>>> always_iterable([1,2,3])
[1, 2, 3]
>>> always_iterable('foo')
('foo',)
>>> always_iterable(None)
... | Use float so test passes on Python 2.6 | Use float so test passes on Python 2.6
| Python | lgpl-2.1 | sim0629/irc | # from jaraco.util.itertools
def always_iterable(item):
"""
Given an object, always return an iterable. If the item is not
already iterable, return a tuple containing only the item.
>>> always_iterable([1,2,3])
[1, 2, 3]
>>> always_iterable('foo')
('foo',)
>>> always_iterable(None)
... | # from jaraco.util.itertools
def always_iterable(item):
"""
Given an object, always return an iterable. If the item is not
already iterable, return a tuple containing only the item.
>>> always_iterable([1,2,3])
[1, 2, 3]
>>> always_iterable('foo')
('foo',)
>>> always_iterable(None)
... | <commit_before># from jaraco.util.itertools
def always_iterable(item):
"""
Given an object, always return an iterable. If the item is not
already iterable, return a tuple containing only the item.
>>> always_iterable([1,2,3])
[1, 2, 3]
>>> always_iterable('foo')
('foo',)
>>> always_iter... | # from jaraco.util.itertools
def always_iterable(item):
"""
Given an object, always return an iterable. If the item is not
already iterable, return a tuple containing only the item.
>>> always_iterable([1,2,3])
[1, 2, 3]
>>> always_iterable('foo')
('foo',)
>>> always_iterable(None)
... | # from jaraco.util.itertools
def always_iterable(item):
"""
Given an object, always return an iterable. If the item is not
already iterable, return a tuple containing only the item.
>>> always_iterable([1,2,3])
[1, 2, 3]
>>> always_iterable('foo')
('foo',)
>>> always_iterable(None)
... | <commit_before># from jaraco.util.itertools
def always_iterable(item):
"""
Given an object, always return an iterable. If the item is not
already iterable, return a tuple containing only the item.
>>> always_iterable([1,2,3])
[1, 2, 3]
>>> always_iterable('foo')
('foo',)
>>> always_iter... |
f4adce54b573b7776cf3f56230821f982c16b49f | modules/helloworld/helloworld.py | modules/helloworld/helloworld.py | def run(seed):
""" function to run
Args:
seed: The value of each line striped in seed file
Returns:
String, object, list, directory, etc.
"""
name, age = seed.split(',')
return 'Hello World! {}, {}'.format(seed, int(age))
def callback(result):
""" callback function to ca... | import time
def run(seed):
""" function to run
Args:
seed: The value of each line striped in seed file
Returns:
String, object, list, directory, etc.
"""
name, age = seed.split(',')
return 'Hello World! {}, {}'.format(seed, int(age))
def callback(result):
""" callback ... | Add time.sleep(0.05) in test module | Add time.sleep(0.05) in test module
| Python | mit | RickGray/cyberbot | def run(seed):
""" function to run
Args:
seed: The value of each line striped in seed file
Returns:
String, object, list, directory, etc.
"""
name, age = seed.split(',')
return 'Hello World! {}, {}'.format(seed, int(age))
def callback(result):
""" callback function to ca... | import time
def run(seed):
""" function to run
Args:
seed: The value of each line striped in seed file
Returns:
String, object, list, directory, etc.
"""
name, age = seed.split(',')
return 'Hello World! {}, {}'.format(seed, int(age))
def callback(result):
""" callback ... | <commit_before>def run(seed):
""" function to run
Args:
seed: The value of each line striped in seed file
Returns:
String, object, list, directory, etc.
"""
name, age = seed.split(',')
return 'Hello World! {}, {}'.format(seed, int(age))
def callback(result):
""" callback... | import time
def run(seed):
""" function to run
Args:
seed: The value of each line striped in seed file
Returns:
String, object, list, directory, etc.
"""
name, age = seed.split(',')
return 'Hello World! {}, {}'.format(seed, int(age))
def callback(result):
""" callback ... | def run(seed):
""" function to run
Args:
seed: The value of each line striped in seed file
Returns:
String, object, list, directory, etc.
"""
name, age = seed.split(',')
return 'Hello World! {}, {}'.format(seed, int(age))
def callback(result):
""" callback function to ca... | <commit_before>def run(seed):
""" function to run
Args:
seed: The value of each line striped in seed file
Returns:
String, object, list, directory, etc.
"""
name, age = seed.split(',')
return 'Hello World! {}, {}'.format(seed, int(age))
def callback(result):
""" callback... |
41ba2d55ed00269465d49ba22a1cb07eb899273a | test/test_run.py | test/test_run.py |
from exp_test_helper import run_exp
import pytest
class TestRun():
"""
Run and check return code.
"""
@pytest.mark.fast
def test_run(self):
run_exp('1deg_jra55_ryf')
@pytest.mark.slow
def test_slow_run(self):
run_exp('025deg_jra55_ryf')
|
from exp_test_helper import run_exp
import pytest
class TestRun():
"""
Run and check return code.
"""
@pytest.mark.fast
def test_1deg_jra55_run(self):
run_exp('1deg_jra55_ryf')
@pytest.mark.slow
def test_1deg_core_run(self):
run_exp('1deg_core_nyf')
@pytest.mark.slo... | Include the 1deg core experiment in tests. | Include the 1deg core experiment in tests.
| Python | apache-2.0 | CWSL/access-om |
from exp_test_helper import run_exp
import pytest
class TestRun():
"""
Run and check return code.
"""
@pytest.mark.fast
def test_run(self):
run_exp('1deg_jra55_ryf')
@pytest.mark.slow
def test_slow_run(self):
run_exp('025deg_jra55_ryf')
Include the 1deg core experiment i... |
from exp_test_helper import run_exp
import pytest
class TestRun():
"""
Run and check return code.
"""
@pytest.mark.fast
def test_1deg_jra55_run(self):
run_exp('1deg_jra55_ryf')
@pytest.mark.slow
def test_1deg_core_run(self):
run_exp('1deg_core_nyf')
@pytest.mark.slo... | <commit_before>
from exp_test_helper import run_exp
import pytest
class TestRun():
"""
Run and check return code.
"""
@pytest.mark.fast
def test_run(self):
run_exp('1deg_jra55_ryf')
@pytest.mark.slow
def test_slow_run(self):
run_exp('025deg_jra55_ryf')
<commit_msg>Include... |
from exp_test_helper import run_exp
import pytest
class TestRun():
"""
Run and check return code.
"""
@pytest.mark.fast
def test_1deg_jra55_run(self):
run_exp('1deg_jra55_ryf')
@pytest.mark.slow
def test_1deg_core_run(self):
run_exp('1deg_core_nyf')
@pytest.mark.slo... |
from exp_test_helper import run_exp
import pytest
class TestRun():
"""
Run and check return code.
"""
@pytest.mark.fast
def test_run(self):
run_exp('1deg_jra55_ryf')
@pytest.mark.slow
def test_slow_run(self):
run_exp('025deg_jra55_ryf')
Include the 1deg core experiment i... | <commit_before>
from exp_test_helper import run_exp
import pytest
class TestRun():
"""
Run and check return code.
"""
@pytest.mark.fast
def test_run(self):
run_exp('1deg_jra55_ryf')
@pytest.mark.slow
def test_slow_run(self):
run_exp('025deg_jra55_ryf')
<commit_msg>Include... |
cc3d89d4357099ba2df1628e9d91e48c743bd471 | api/common/views.py | api/common/views.py | import subprocess
from django.conf import settings
from django.http import JsonResponse, HttpResponseBadRequest
from django.shortcuts import redirect
from django.views.decorators.csrf import csrf_exempt
from rest_framework.authtoken.models import Token
@csrf_exempt
def deploy(request):
deploy_secret_key = request... | import subprocess
from django.conf import settings
from django.http import JsonResponse, HttpResponseBadRequest
from django.shortcuts import redirect
from django.views.decorators.csrf import csrf_exempt
from rest_framework.authtoken.models import Token
@csrf_exempt
def deploy(request):
deploy_secret_key = request... | Fix incorrect social redirect link | Fix incorrect social redirect link
| Python | apache-2.0 | prattl/teamfinder,prattl/teamfinder,prattl/teamfinder,prattl/teamfinder | import subprocess
from django.conf import settings
from django.http import JsonResponse, HttpResponseBadRequest
from django.shortcuts import redirect
from django.views.decorators.csrf import csrf_exempt
from rest_framework.authtoken.models import Token
@csrf_exempt
def deploy(request):
deploy_secret_key = request... | import subprocess
from django.conf import settings
from django.http import JsonResponse, HttpResponseBadRequest
from django.shortcuts import redirect
from django.views.decorators.csrf import csrf_exempt
from rest_framework.authtoken.models import Token
@csrf_exempt
def deploy(request):
deploy_secret_key = request... | <commit_before>import subprocess
from django.conf import settings
from django.http import JsonResponse, HttpResponseBadRequest
from django.shortcuts import redirect
from django.views.decorators.csrf import csrf_exempt
from rest_framework.authtoken.models import Token
@csrf_exempt
def deploy(request):
deploy_secre... | import subprocess
from django.conf import settings
from django.http import JsonResponse, HttpResponseBadRequest
from django.shortcuts import redirect
from django.views.decorators.csrf import csrf_exempt
from rest_framework.authtoken.models import Token
@csrf_exempt
def deploy(request):
deploy_secret_key = request... | import subprocess
from django.conf import settings
from django.http import JsonResponse, HttpResponseBadRequest
from django.shortcuts import redirect
from django.views.decorators.csrf import csrf_exempt
from rest_framework.authtoken.models import Token
@csrf_exempt
def deploy(request):
deploy_secret_key = request... | <commit_before>import subprocess
from django.conf import settings
from django.http import JsonResponse, HttpResponseBadRequest
from django.shortcuts import redirect
from django.views.decorators.csrf import csrf_exempt
from rest_framework.authtoken.models import Token
@csrf_exempt
def deploy(request):
deploy_secre... |
107b97e952d731f8c55c9ca3208ecd2a41512b8d | tests/integration/modules/sysmod.py | tests/integration/modules/sysmod.py | import integration
class SysModuleTest(integration.ModuleCase):
'''
Validate the sys module
'''
def test_list_functions(self):
'''
sys.list_functions
'''
funcs = self.run_function('sys.list_functions')
self.assertTrue('hosts.list_hosts' in funcs)
self.as... | import integration
class SysModuleTest(integration.ModuleCase):
'''
Validate the sys module
'''
def test_list_functions(self):
'''
sys.list_functions
'''
funcs = self.run_function('sys.list_functions')
self.assertTrue('hosts.list_hosts' in funcs)
self.as... | Add test to verify loader modules | Add test to verify loader modules
| Python | apache-2.0 | saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt | import integration
class SysModuleTest(integration.ModuleCase):
'''
Validate the sys module
'''
def test_list_functions(self):
'''
sys.list_functions
'''
funcs = self.run_function('sys.list_functions')
self.assertTrue('hosts.list_hosts' in funcs)
self.as... | import integration
class SysModuleTest(integration.ModuleCase):
'''
Validate the sys module
'''
def test_list_functions(self):
'''
sys.list_functions
'''
funcs = self.run_function('sys.list_functions')
self.assertTrue('hosts.list_hosts' in funcs)
self.as... | <commit_before>import integration
class SysModuleTest(integration.ModuleCase):
'''
Validate the sys module
'''
def test_list_functions(self):
'''
sys.list_functions
'''
funcs = self.run_function('sys.list_functions')
self.assertTrue('hosts.list_hosts' in funcs)
... | import integration
class SysModuleTest(integration.ModuleCase):
'''
Validate the sys module
'''
def test_list_functions(self):
'''
sys.list_functions
'''
funcs = self.run_function('sys.list_functions')
self.assertTrue('hosts.list_hosts' in funcs)
self.as... | import integration
class SysModuleTest(integration.ModuleCase):
'''
Validate the sys module
'''
def test_list_functions(self):
'''
sys.list_functions
'''
funcs = self.run_function('sys.list_functions')
self.assertTrue('hosts.list_hosts' in funcs)
self.as... | <commit_before>import integration
class SysModuleTest(integration.ModuleCase):
'''
Validate the sys module
'''
def test_list_functions(self):
'''
sys.list_functions
'''
funcs = self.run_function('sys.list_functions')
self.assertTrue('hosts.list_hosts' in funcs)
... |
9058d2ddc9a89913710df0efc8d7c88471592795 | back2back/management/commands/import_entries.py | back2back/management/commands/import_entries.py | import csv
from optparse import make_option
from django.core.management import BaseCommand
from back2back.models import Entry
class Command(BaseCommand):
option_list = BaseCommand.option_list + (
make_option(
'-i', '--input',
action='store',
dest='input_file',
... | import collections
import csv
from optparse import make_option
from django.core.management import BaseCommand
from back2back.models import Entry
class Command(BaseCommand):
option_list = BaseCommand.option_list + (
make_option(
'-i', '--input',
action='store',
dest='i... | Save indexes as well when importing entries. | Save indexes as well when importing entries.
| Python | bsd-2-clause | mjtamlyn/back2back,mjtamlyn/back2back,mjtamlyn/back2back,mjtamlyn/back2back | import csv
from optparse import make_option
from django.core.management import BaseCommand
from back2back.models import Entry
class Command(BaseCommand):
option_list = BaseCommand.option_list + (
make_option(
'-i', '--input',
action='store',
dest='input_file',
... | import collections
import csv
from optparse import make_option
from django.core.management import BaseCommand
from back2back.models import Entry
class Command(BaseCommand):
option_list = BaseCommand.option_list + (
make_option(
'-i', '--input',
action='store',
dest='i... | <commit_before>import csv
from optparse import make_option
from django.core.management import BaseCommand
from back2back.models import Entry
class Command(BaseCommand):
option_list = BaseCommand.option_list + (
make_option(
'-i', '--input',
action='store',
dest='input... | import collections
import csv
from optparse import make_option
from django.core.management import BaseCommand
from back2back.models import Entry
class Command(BaseCommand):
option_list = BaseCommand.option_list + (
make_option(
'-i', '--input',
action='store',
dest='i... | import csv
from optparse import make_option
from django.core.management import BaseCommand
from back2back.models import Entry
class Command(BaseCommand):
option_list = BaseCommand.option_list + (
make_option(
'-i', '--input',
action='store',
dest='input_file',
... | <commit_before>import csv
from optparse import make_option
from django.core.management import BaseCommand
from back2back.models import Entry
class Command(BaseCommand):
option_list = BaseCommand.option_list + (
make_option(
'-i', '--input',
action='store',
dest='input... |
2eb8570d52c15b1061f74fe23c1f361ae8ab6d7c | CI/syntaxCheck.py | CI/syntaxCheck.py | import sys
from CITests import CITests
# Libs in Application Examples
appExamples = {
#"KundurSMIB":"/ApplicationExamples/KundurSMIB/package.mo",
#"TwoAreas":"/ApplicationExamples/TwoAreas/package.mo",
#"SevenBus":"/ApplicationExamples/SevenBus/package.mo",
#"IEEE9":"/ApplicationExamples/IEEE9/package.mo",
#"IEEE14":"... | import sys
from CITests import CITests
# Libs in Application Examples
appExamples = {
#"KundurSMIB":"/ApplicationExamples/KundurSMIB/package.mo",
#"TwoAreas":"/ApplicationExamples/TwoAreas/package.mo",
#"SevenBus":"/ApplicationExamples/SevenBus/package.mo",
#"IEEE9":"/ApplicationExamples/IEEE9/package.mo",
#"IEEE14":"... | Fix the location path of OpenIPSL | Fix the location path of OpenIPSL
| Python | bsd-3-clause | SmarTS-Lab/OpenIPSL,SmarTS-Lab/OpenIPSL,tinrabuzin/OpenIPSL,OpenIPSL/OpenIPSL | import sys
from CITests import CITests
# Libs in Application Examples
appExamples = {
#"KundurSMIB":"/ApplicationExamples/KundurSMIB/package.mo",
#"TwoAreas":"/ApplicationExamples/TwoAreas/package.mo",
#"SevenBus":"/ApplicationExamples/SevenBus/package.mo",
#"IEEE9":"/ApplicationExamples/IEEE9/package.mo",
#"IEEE14":"... | import sys
from CITests import CITests
# Libs in Application Examples
appExamples = {
#"KundurSMIB":"/ApplicationExamples/KundurSMIB/package.mo",
#"TwoAreas":"/ApplicationExamples/TwoAreas/package.mo",
#"SevenBus":"/ApplicationExamples/SevenBus/package.mo",
#"IEEE9":"/ApplicationExamples/IEEE9/package.mo",
#"IEEE14":"... | <commit_before>import sys
from CITests import CITests
# Libs in Application Examples
appExamples = {
#"KundurSMIB":"/ApplicationExamples/KundurSMIB/package.mo",
#"TwoAreas":"/ApplicationExamples/TwoAreas/package.mo",
#"SevenBus":"/ApplicationExamples/SevenBus/package.mo",
#"IEEE9":"/ApplicationExamples/IEEE9/package.m... | import sys
from CITests import CITests
# Libs in Application Examples
appExamples = {
#"KundurSMIB":"/ApplicationExamples/KundurSMIB/package.mo",
#"TwoAreas":"/ApplicationExamples/TwoAreas/package.mo",
#"SevenBus":"/ApplicationExamples/SevenBus/package.mo",
#"IEEE9":"/ApplicationExamples/IEEE9/package.mo",
#"IEEE14":"... | import sys
from CITests import CITests
# Libs in Application Examples
appExamples = {
#"KundurSMIB":"/ApplicationExamples/KundurSMIB/package.mo",
#"TwoAreas":"/ApplicationExamples/TwoAreas/package.mo",
#"SevenBus":"/ApplicationExamples/SevenBus/package.mo",
#"IEEE9":"/ApplicationExamples/IEEE9/package.mo",
#"IEEE14":"... | <commit_before>import sys
from CITests import CITests
# Libs in Application Examples
appExamples = {
#"KundurSMIB":"/ApplicationExamples/KundurSMIB/package.mo",
#"TwoAreas":"/ApplicationExamples/TwoAreas/package.mo",
#"SevenBus":"/ApplicationExamples/SevenBus/package.mo",
#"IEEE9":"/ApplicationExamples/IEEE9/package.m... |
47a9271a00fae3f55c79323c93feb4dc2e1fd515 | portal/tests/models/test_profile.py | portal/tests/models/test_profile.py | from django.contrib.auth import get_user_model
from django.test import TestCase
from portal.models import Profile
class TestProfile(TestCase):
"""Profile test suite"""
users = ["john", "jane"]
UserModel = get_user_model()
def setUp(self):
for user in self.users:
self.UserModel.... | from django.contrib.auth import get_user_model
from django.test import TestCase
from portal.models import Profile
class TestProfile(TestCase):
"""Profile test suite"""
users = ["john", "jane"]
UserModel = get_user_model()
def setUp(self):
for user in self.users:
self.UserModel.... | Add more profile model tests | Add more profile model tests
| Python | mit | huangsam/chowist,huangsam/chowist,huangsam/chowist | from django.contrib.auth import get_user_model
from django.test import TestCase
from portal.models import Profile
class TestProfile(TestCase):
"""Profile test suite"""
users = ["john", "jane"]
UserModel = get_user_model()
def setUp(self):
for user in self.users:
self.UserModel.... | from django.contrib.auth import get_user_model
from django.test import TestCase
from portal.models import Profile
class TestProfile(TestCase):
"""Profile test suite"""
users = ["john", "jane"]
UserModel = get_user_model()
def setUp(self):
for user in self.users:
self.UserModel.... | <commit_before>from django.contrib.auth import get_user_model
from django.test import TestCase
from portal.models import Profile
class TestProfile(TestCase):
"""Profile test suite"""
users = ["john", "jane"]
UserModel = get_user_model()
def setUp(self):
for user in self.users:
... | from django.contrib.auth import get_user_model
from django.test import TestCase
from portal.models import Profile
class TestProfile(TestCase):
"""Profile test suite"""
users = ["john", "jane"]
UserModel = get_user_model()
def setUp(self):
for user in self.users:
self.UserModel.... | from django.contrib.auth import get_user_model
from django.test import TestCase
from portal.models import Profile
class TestProfile(TestCase):
"""Profile test suite"""
users = ["john", "jane"]
UserModel = get_user_model()
def setUp(self):
for user in self.users:
self.UserModel.... | <commit_before>from django.contrib.auth import get_user_model
from django.test import TestCase
from portal.models import Profile
class TestProfile(TestCase):
"""Profile test suite"""
users = ["john", "jane"]
UserModel = get_user_model()
def setUp(self):
for user in self.users:
... |
f1e946f5dde4648428c91bcff59728b615df021b | packages/Python/lldbsuite/test/lang/swift/foundation_value_types/data/TestSwiftFoundationTypeData.py | packages/Python/lldbsuite/test/lang/swift/foundation_value_types/data/TestSwiftFoundationTypeData.py | # TestSwiftFoundationValueTypes.py
#
# This source file is part of the Swift.org open source project
#
# Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
#
# See https://swift.org/LICENSE.txt for license information
# See https://swif... | # TestSwiftFoundationValueTypes.py
#
# This source file is part of the Swift.org open source project
#
# Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
#
# See https://swift.org/LICENSE.txt for license information
# See https://swif... | Revert "x-fail this test - it was broken by changes to Data" | Revert "x-fail this test - it was broken by changes to Data"
This reverts commit 4f1ce1ee7ca2d897602113ac82b55f8422a849c1.
| Python | apache-2.0 | apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb | # TestSwiftFoundationValueTypes.py
#
# This source file is part of the Swift.org open source project
#
# Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
#
# See https://swift.org/LICENSE.txt for license information
# See https://swif... | # TestSwiftFoundationValueTypes.py
#
# This source file is part of the Swift.org open source project
#
# Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
#
# See https://swift.org/LICENSE.txt for license information
# See https://swif... | <commit_before># TestSwiftFoundationValueTypes.py
#
# This source file is part of the Swift.org open source project
#
# Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
#
# See https://swift.org/LICENSE.txt for license information
# S... | # TestSwiftFoundationValueTypes.py
#
# This source file is part of the Swift.org open source project
#
# Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
#
# See https://swift.org/LICENSE.txt for license information
# See https://swif... | # TestSwiftFoundationValueTypes.py
#
# This source file is part of the Swift.org open source project
#
# Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
#
# See https://swift.org/LICENSE.txt for license information
# See https://swif... | <commit_before># TestSwiftFoundationValueTypes.py
#
# This source file is part of the Swift.org open source project
#
# Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
#
# See https://swift.org/LICENSE.txt for license information
# S... |
76d1d1ba04e9d91559ca017c72c7291752fcc330 | PVGeo/__tester__.py | PVGeo/__tester__.py | __all__ = [
'test',
]
import unittest
import fnmatch
import os
try:
from colour_runner.runner import ColourTextTestRunner as TextTestRunner
except ImportError:
from unittest import TextTestRunner
def test(close=False):
"""
@desc: This is a convienance method to run all of the tests in `PVGeo`.
... | __all__ = [
'test',
]
import unittest
import fnmatch
import os
try:
from colour_runner.runner import ColourTextTestRunner as TextTestRunner
except ImportError:
from unittest import TextTestRunner
def test(close=False):
"""
@desc: This is a convienance method to run all of the tests in `PVGeo`.
... | Fix python 2 testing issue | Fix python 2 testing issue
| Python | bsd-3-clause | banesullivan/ParaViewGeophysics,banesullivan/ParaViewGeophysics,banesullivan/ParaViewGeophysics | __all__ = [
'test',
]
import unittest
import fnmatch
import os
try:
from colour_runner.runner import ColourTextTestRunner as TextTestRunner
except ImportError:
from unittest import TextTestRunner
def test(close=False):
"""
@desc: This is a convienance method to run all of the tests in `PVGeo`.
... | __all__ = [
'test',
]
import unittest
import fnmatch
import os
try:
from colour_runner.runner import ColourTextTestRunner as TextTestRunner
except ImportError:
from unittest import TextTestRunner
def test(close=False):
"""
@desc: This is a convienance method to run all of the tests in `PVGeo`.
... | <commit_before>__all__ = [
'test',
]
import unittest
import fnmatch
import os
try:
from colour_runner.runner import ColourTextTestRunner as TextTestRunner
except ImportError:
from unittest import TextTestRunner
def test(close=False):
"""
@desc: This is a convienance method to run all of the tests... | __all__ = [
'test',
]
import unittest
import fnmatch
import os
try:
from colour_runner.runner import ColourTextTestRunner as TextTestRunner
except ImportError:
from unittest import TextTestRunner
def test(close=False):
"""
@desc: This is a convienance method to run all of the tests in `PVGeo`.
... | __all__ = [
'test',
]
import unittest
import fnmatch
import os
try:
from colour_runner.runner import ColourTextTestRunner as TextTestRunner
except ImportError:
from unittest import TextTestRunner
def test(close=False):
"""
@desc: This is a convienance method to run all of the tests in `PVGeo`.
... | <commit_before>__all__ = [
'test',
]
import unittest
import fnmatch
import os
try:
from colour_runner.runner import ColourTextTestRunner as TextTestRunner
except ImportError:
from unittest import TextTestRunner
def test(close=False):
"""
@desc: This is a convienance method to run all of the tests... |
f31424d48c4201e672bd47da4bd8fe205661dc4f | logsna/__init__.py | logsna/__init__.py | ###############################################################################
#
# Copyright (c) 2012 Ruslan Spivak
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, inc... | Add sane log output formatter | Add sane log output formatter
| Python | mit | rspivak/logsna | Add sane log output formatter | ###############################################################################
#
# Copyright (c) 2012 Ruslan Spivak
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, inc... | <commit_before><commit_msg>Add sane log output formatter<commit_after> | ###############################################################################
#
# Copyright (c) 2012 Ruslan Spivak
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, inc... | Add sane log output formatter###############################################################################
#
# Copyright (c) 2012 Ruslan Spivak
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Soft... | <commit_before><commit_msg>Add sane log output formatter<commit_after>###############################################################################
#
# Copyright (c) 2012 Ruslan Spivak
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation file... | |
416dea771c5750044b99e8c8bfe0755feeb3ee71 | astropy/vo/samp/constants.py | astropy/vo/samp/constants.py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""Defines constants used in `astropy.vo.samp`."""
import os
DATA_DIR = os.path.join(os.path.dirname(__file__), 'data')
__all__ = ['SAMP_STATUS_OK', 'SAMP_STATUS_WARNING', 'SAMP_STATUS_ERROR',
'SAMP_HUB_SINGLE_INSTANCE', 'SAMP_HUB_MULTIPLE_IN... | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""Defines constants used in `astropy.vo.samp`."""
import os
from ...utils.data import get_pkg_data_filename
__all__ = ['SAMP_STATUS_OK', 'SAMP_STATUS_WARNING', 'SAMP_STATUS_ERROR',
'SAMP_HUB_SINGLE_INSTANCE', 'SAMP_HUB_MULTIPLE_INSTANCE',
... | Make use of get_pkg_data_filename for icon | Make use of get_pkg_data_filename for icon
| Python | bsd-3-clause | StuartLittlefair/astropy,StuartLittlefair/astropy,bsipocz/astropy,saimn/astropy,bsipocz/astropy,tbabej/astropy,dhomeier/astropy,aleksandr-bakanov/astropy,AustereCuriosity/astropy,larrybradley/astropy,mhvk/astropy,stargaser/astropy,dhomeier/astropy,pllim/astropy,kelle/astropy,DougBurke/astropy,AustereCuriosity/astropy,d... | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""Defines constants used in `astropy.vo.samp`."""
import os
DATA_DIR = os.path.join(os.path.dirname(__file__), 'data')
__all__ = ['SAMP_STATUS_OK', 'SAMP_STATUS_WARNING', 'SAMP_STATUS_ERROR',
'SAMP_HUB_SINGLE_INSTANCE', 'SAMP_HUB_MULTIPLE_IN... | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""Defines constants used in `astropy.vo.samp`."""
import os
from ...utils.data import get_pkg_data_filename
__all__ = ['SAMP_STATUS_OK', 'SAMP_STATUS_WARNING', 'SAMP_STATUS_ERROR',
'SAMP_HUB_SINGLE_INSTANCE', 'SAMP_HUB_MULTIPLE_INSTANCE',
... | <commit_before># Licensed under a 3-clause BSD style license - see LICENSE.rst
"""Defines constants used in `astropy.vo.samp`."""
import os
DATA_DIR = os.path.join(os.path.dirname(__file__), 'data')
__all__ = ['SAMP_STATUS_OK', 'SAMP_STATUS_WARNING', 'SAMP_STATUS_ERROR',
'SAMP_HUB_SINGLE_INSTANCE', 'SAMP_... | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""Defines constants used in `astropy.vo.samp`."""
import os
from ...utils.data import get_pkg_data_filename
__all__ = ['SAMP_STATUS_OK', 'SAMP_STATUS_WARNING', 'SAMP_STATUS_ERROR',
'SAMP_HUB_SINGLE_INSTANCE', 'SAMP_HUB_MULTIPLE_INSTANCE',
... | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""Defines constants used in `astropy.vo.samp`."""
import os
DATA_DIR = os.path.join(os.path.dirname(__file__), 'data')
__all__ = ['SAMP_STATUS_OK', 'SAMP_STATUS_WARNING', 'SAMP_STATUS_ERROR',
'SAMP_HUB_SINGLE_INSTANCE', 'SAMP_HUB_MULTIPLE_IN... | <commit_before># Licensed under a 3-clause BSD style license - see LICENSE.rst
"""Defines constants used in `astropy.vo.samp`."""
import os
DATA_DIR = os.path.join(os.path.dirname(__file__), 'data')
__all__ = ['SAMP_STATUS_OK', 'SAMP_STATUS_WARNING', 'SAMP_STATUS_ERROR',
'SAMP_HUB_SINGLE_INSTANCE', 'SAMP_... |
c3a432f217917de0261d690c289a4d578a292fe3 | common/lib/xmodule/setup.py | common/lib/xmodule/setup.py | from setuptools import setup, find_packages
setup(
name="XModule",
version="0.1",
packages=find_packages(),
install_requires=['distribute'],
package_data={
'': ['js/*']
},
# See http://guide.python-distribute.org/creation.html#entry-points
# for a description of entry_points
... | from setuptools import setup, find_packages
setup(
name="XModule",
version="0.1",
packages=find_packages(),
install_requires=['distribute'],
package_data={
'': ['js/*']
},
# See http://guide.python-distribute.org/creation.html#entry-points
# for a description of entry_points
... | Make problemsets display as verticals rather than sequences | Make problemsets display as verticals rather than sequences
| Python | agpl-3.0 | ovnicraft/edx-platform,mjg2203/edx-platform-seas,nanolearning/edx-platform,mcgachey/edx-platform,wwj718/edx-platform,chauhanhardik/populo_2,cecep-edu/edx-platform,sudheerchintala/LearnEraPlatForm,jswope00/GAI,dkarakats/edx-platform,proversity-org/edx-platform,IONISx/edx-platform,JCBarahona/edX,angelapper/edx-platform,p... | from setuptools import setup, find_packages
setup(
name="XModule",
version="0.1",
packages=find_packages(),
install_requires=['distribute'],
package_data={
'': ['js/*']
},
# See http://guide.python-distribute.org/creation.html#entry-points
# for a description of entry_points
... | from setuptools import setup, find_packages
setup(
name="XModule",
version="0.1",
packages=find_packages(),
install_requires=['distribute'],
package_data={
'': ['js/*']
},
# See http://guide.python-distribute.org/creation.html#entry-points
# for a description of entry_points
... | <commit_before>from setuptools import setup, find_packages
setup(
name="XModule",
version="0.1",
packages=find_packages(),
install_requires=['distribute'],
package_data={
'': ['js/*']
},
# See http://guide.python-distribute.org/creation.html#entry-points
# for a description of ... | from setuptools import setup, find_packages
setup(
name="XModule",
version="0.1",
packages=find_packages(),
install_requires=['distribute'],
package_data={
'': ['js/*']
},
# See http://guide.python-distribute.org/creation.html#entry-points
# for a description of entry_points
... | from setuptools import setup, find_packages
setup(
name="XModule",
version="0.1",
packages=find_packages(),
install_requires=['distribute'],
package_data={
'': ['js/*']
},
# See http://guide.python-distribute.org/creation.html#entry-points
# for a description of entry_points
... | <commit_before>from setuptools import setup, find_packages
setup(
name="XModule",
version="0.1",
packages=find_packages(),
install_requires=['distribute'],
package_data={
'': ['js/*']
},
# See http://guide.python-distribute.org/creation.html#entry-points
# for a description of ... |
745ec6f3dd227cc00c3db0d100b005fb6fd4d903 | test/on_yubikey/test_cli_openpgp.py | test/on_yubikey/test_cli_openpgp.py | import unittest
from ykman.util import TRANSPORT
from .util import (DestructiveYubikeyTestCase, missing_mode, ykman_cli)
@unittest.skipIf(*missing_mode(TRANSPORT.CCID))
class TestOpenPGP(DestructiveYubikeyTestCase):
def test_openpgp_info(self):
output = ykman_cli('openpgp', 'info')
self.assertIn(... | import unittest
from ykman.util import TRANSPORT
from .util import (DestructiveYubikeyTestCase, missing_mode, ykman_cli)
@unittest.skipIf(*missing_mode(TRANSPORT.CCID))
class TestOpenPGP(DestructiveYubikeyTestCase):
def setUp(self):
ykman_cli('openpgp', 'reset', '-f')
def test_openpgp_info(self):
... | Reset OpenPGP applet before each test | Reset OpenPGP applet before each test
| Python | bsd-2-clause | Yubico/yubikey-manager,Yubico/yubikey-manager | import unittest
from ykman.util import TRANSPORT
from .util import (DestructiveYubikeyTestCase, missing_mode, ykman_cli)
@unittest.skipIf(*missing_mode(TRANSPORT.CCID))
class TestOpenPGP(DestructiveYubikeyTestCase):
def test_openpgp_info(self):
output = ykman_cli('openpgp', 'info')
self.assertIn(... | import unittest
from ykman.util import TRANSPORT
from .util import (DestructiveYubikeyTestCase, missing_mode, ykman_cli)
@unittest.skipIf(*missing_mode(TRANSPORT.CCID))
class TestOpenPGP(DestructiveYubikeyTestCase):
def setUp(self):
ykman_cli('openpgp', 'reset', '-f')
def test_openpgp_info(self):
... | <commit_before>import unittest
from ykman.util import TRANSPORT
from .util import (DestructiveYubikeyTestCase, missing_mode, ykman_cli)
@unittest.skipIf(*missing_mode(TRANSPORT.CCID))
class TestOpenPGP(DestructiveYubikeyTestCase):
def test_openpgp_info(self):
output = ykman_cli('openpgp', 'info')
... | import unittest
from ykman.util import TRANSPORT
from .util import (DestructiveYubikeyTestCase, missing_mode, ykman_cli)
@unittest.skipIf(*missing_mode(TRANSPORT.CCID))
class TestOpenPGP(DestructiveYubikeyTestCase):
def setUp(self):
ykman_cli('openpgp', 'reset', '-f')
def test_openpgp_info(self):
... | import unittest
from ykman.util import TRANSPORT
from .util import (DestructiveYubikeyTestCase, missing_mode, ykman_cli)
@unittest.skipIf(*missing_mode(TRANSPORT.CCID))
class TestOpenPGP(DestructiveYubikeyTestCase):
def test_openpgp_info(self):
output = ykman_cli('openpgp', 'info')
self.assertIn(... | <commit_before>import unittest
from ykman.util import TRANSPORT
from .util import (DestructiveYubikeyTestCase, missing_mode, ykman_cli)
@unittest.skipIf(*missing_mode(TRANSPORT.CCID))
class TestOpenPGP(DestructiveYubikeyTestCase):
def test_openpgp_info(self):
output = ykman_cli('openpgp', 'info')
... |
f1b0aa70569052fae2677989f265e6619df16f17 | config/deployed/settings.py | config/deployed/settings.py | #!/usr/bin/env python
from config.settings import *
import logging
log = logging.getLogger('settings')
SETTINGS = 'deployed'
DEBUG = True
TEMPLATE_DEBUG = DEBUG
# Static media
STATIC_ROOT = '/mnt/media'
# Uploads
MEDIA_ROOT = '/mnt/panda'
# Django-compressor
COMPRESS_ENABLED = True
if EMAIL_HOST == 'localho... | #!/usr/bin/env python
from config.settings import *
SETTINGS = 'deployed'
DEBUG = True
TEMPLATE_DEBUG = DEBUG
# Static media
STATIC_ROOT = '/mnt/media'
# Uploads
MEDIA_ROOT = '/mnt/panda'
# Django-compressor
COMPRESS_ENABLED = True
if EMAIL_HOST == 'localhost':
raise ValueError('EMAIL_HOST not configured... | Throw error instead of logging. | Throw error instead of logging.
| Python | mit | ibrahimcesar/panda,pandaproject/panda,newsapps/panda,NUKnightLab/panda,pandaproject/panda,pandaproject/panda,datadesk/panda,pandaproject/panda,newsapps/panda,datadesk/panda,PalmBeachPost/panda,PalmBeachPost/panda,ibrahimcesar/panda,PalmBeachPost/panda,newsapps/panda,datadesk/panda,PalmBeachPost/panda,ibrahimcesar/panda... | #!/usr/bin/env python
from config.settings import *
import logging
log = logging.getLogger('settings')
SETTINGS = 'deployed'
DEBUG = True
TEMPLATE_DEBUG = DEBUG
# Static media
STATIC_ROOT = '/mnt/media'
# Uploads
MEDIA_ROOT = '/mnt/panda'
# Django-compressor
COMPRESS_ENABLED = True
if EMAIL_HOST == 'localho... | #!/usr/bin/env python
from config.settings import *
SETTINGS = 'deployed'
DEBUG = True
TEMPLATE_DEBUG = DEBUG
# Static media
STATIC_ROOT = '/mnt/media'
# Uploads
MEDIA_ROOT = '/mnt/panda'
# Django-compressor
COMPRESS_ENABLED = True
if EMAIL_HOST == 'localhost':
raise ValueError('EMAIL_HOST not configured... | <commit_before>#!/usr/bin/env python
from config.settings import *
import logging
log = logging.getLogger('settings')
SETTINGS = 'deployed'
DEBUG = True
TEMPLATE_DEBUG = DEBUG
# Static media
STATIC_ROOT = '/mnt/media'
# Uploads
MEDIA_ROOT = '/mnt/panda'
# Django-compressor
COMPRESS_ENABLED = True
if EMAIL_H... | #!/usr/bin/env python
from config.settings import *
SETTINGS = 'deployed'
DEBUG = True
TEMPLATE_DEBUG = DEBUG
# Static media
STATIC_ROOT = '/mnt/media'
# Uploads
MEDIA_ROOT = '/mnt/panda'
# Django-compressor
COMPRESS_ENABLED = True
if EMAIL_HOST == 'localhost':
raise ValueError('EMAIL_HOST not configured... | #!/usr/bin/env python
from config.settings import *
import logging
log = logging.getLogger('settings')
SETTINGS = 'deployed'
DEBUG = True
TEMPLATE_DEBUG = DEBUG
# Static media
STATIC_ROOT = '/mnt/media'
# Uploads
MEDIA_ROOT = '/mnt/panda'
# Django-compressor
COMPRESS_ENABLED = True
if EMAIL_HOST == 'localho... | <commit_before>#!/usr/bin/env python
from config.settings import *
import logging
log = logging.getLogger('settings')
SETTINGS = 'deployed'
DEBUG = True
TEMPLATE_DEBUG = DEBUG
# Static media
STATIC_ROOT = '/mnt/media'
# Uploads
MEDIA_ROOT = '/mnt/panda'
# Django-compressor
COMPRESS_ENABLED = True
if EMAIL_H... |
29d41cf99f66aa075bda5fed6feb78cbb9ccdd74 | tests/dojo_test.py | tests/dojo_test.py | import unittest
from src.dojo import Dojo
class TestCreateRoom (unittest.TestCase):
def setUp(self):
self.dojo = Dojo()
self.test_office = self.dojo.create_room("office", "test")
self.test_living_space = self.dojo.create_room("living_space", "test living space")
def test_create_room_... | import unittest
from src.dojo import Dojo
class TestCreateRoom (unittest.TestCase):
def setUp(self):
self.dojo = Dojo()
self.test_office = self.dojo.create_room("office", "test")
self.test_living_space = self.dojo.create_room("living_space", "test living space")
def test_create_room_... | Add test for duplicate rooms | Add test for duplicate rooms
| Python | mit | EdwinKato/Space-Allocator,EdwinKato/Space-Allocator | import unittest
from src.dojo import Dojo
class TestCreateRoom (unittest.TestCase):
def setUp(self):
self.dojo = Dojo()
self.test_office = self.dojo.create_room("office", "test")
self.test_living_space = self.dojo.create_room("living_space", "test living space")
def test_create_room_... | import unittest
from src.dojo import Dojo
class TestCreateRoom (unittest.TestCase):
def setUp(self):
self.dojo = Dojo()
self.test_office = self.dojo.create_room("office", "test")
self.test_living_space = self.dojo.create_room("living_space", "test living space")
def test_create_room_... | <commit_before>import unittest
from src.dojo import Dojo
class TestCreateRoom (unittest.TestCase):
def setUp(self):
self.dojo = Dojo()
self.test_office = self.dojo.create_room("office", "test")
self.test_living_space = self.dojo.create_room("living_space", "test living space")
def te... | import unittest
from src.dojo import Dojo
class TestCreateRoom (unittest.TestCase):
def setUp(self):
self.dojo = Dojo()
self.test_office = self.dojo.create_room("office", "test")
self.test_living_space = self.dojo.create_room("living_space", "test living space")
def test_create_room_... | import unittest
from src.dojo import Dojo
class TestCreateRoom (unittest.TestCase):
def setUp(self):
self.dojo = Dojo()
self.test_office = self.dojo.create_room("office", "test")
self.test_living_space = self.dojo.create_room("living_space", "test living space")
def test_create_room_... | <commit_before>import unittest
from src.dojo import Dojo
class TestCreateRoom (unittest.TestCase):
def setUp(self):
self.dojo = Dojo()
self.test_office = self.dojo.create_room("office", "test")
self.test_living_space = self.dojo.create_room("living_space", "test living space")
def te... |
beb224f23403e0f7e4676aca156420420fe3653f | tests/dojo_test.py | tests/dojo_test.py | import unittest
from src.dojo import Dojo
class TestCreateRoom (unittest.TestCase):
def test_create_room_successfully(self):
my_class_instance = Dojo()
initial_room_count = len(my_class_instance.all_rooms)
blue_office = my_class_instance.create_room("office", "Blue")
self.assertTru... | import unittest
from src.dojo import Dojo
class TestCreateRoom (unittest.TestCase):
def test_create_room_successfully(self):
my_class_instance = Dojo()
initial_room_count = len(my_class_instance.all_rooms)
blue_office = my_class_instance.create_room("office", "Blue")
self.assertTru... | Add test to check that person has been given office | Add test to check that person has been given office
| Python | mit | EdwinKato/Space-Allocator,EdwinKato/Space-Allocator | import unittest
from src.dojo import Dojo
class TestCreateRoom (unittest.TestCase):
def test_create_room_successfully(self):
my_class_instance = Dojo()
initial_room_count = len(my_class_instance.all_rooms)
blue_office = my_class_instance.create_room("office", "Blue")
self.assertTru... | import unittest
from src.dojo import Dojo
class TestCreateRoom (unittest.TestCase):
def test_create_room_successfully(self):
my_class_instance = Dojo()
initial_room_count = len(my_class_instance.all_rooms)
blue_office = my_class_instance.create_room("office", "Blue")
self.assertTru... | <commit_before>import unittest
from src.dojo import Dojo
class TestCreateRoom (unittest.TestCase):
def test_create_room_successfully(self):
my_class_instance = Dojo()
initial_room_count = len(my_class_instance.all_rooms)
blue_office = my_class_instance.create_room("office", "Blue")
... | import unittest
from src.dojo import Dojo
class TestCreateRoom (unittest.TestCase):
def test_create_room_successfully(self):
my_class_instance = Dojo()
initial_room_count = len(my_class_instance.all_rooms)
blue_office = my_class_instance.create_room("office", "Blue")
self.assertTru... | import unittest
from src.dojo import Dojo
class TestCreateRoom (unittest.TestCase):
def test_create_room_successfully(self):
my_class_instance = Dojo()
initial_room_count = len(my_class_instance.all_rooms)
blue_office = my_class_instance.create_room("office", "Blue")
self.assertTru... | <commit_before>import unittest
from src.dojo import Dojo
class TestCreateRoom (unittest.TestCase):
def test_create_room_successfully(self):
my_class_instance = Dojo()
initial_room_count = len(my_class_instance.all_rooms)
blue_office = my_class_instance.create_room("office", "Blue")
... |
2b1e60a9910561de5a71e83d042b845f6be0bc73 | __init__.py | __init__.py | from . import platform_specific, input
from .graphics import screen
from .run_loop import main_run_loop, every
platform_specific.fixup_env()
def run():
main_run_loop.add_wait_callback(input.check_for_quit_event)
main_run_loop.add_after_action_callback(screen.after_loop)
main_run_loop.run()
| from . import platform_specific, input
from .graphics import screen
from .run_loop import main_run_loop, every
platform_specific.fixup_env()
def run(loop=None):
if loop is not None:
every(seconds=1.0/30)(loop)
main_run_loop.add_wait_callback(input.check_for_quit_event)
main_run_loop.add_after_a... | Allow run argument to avoid @every template | Allow run argument to avoid @every template
| Python | bsd-2-clause | furbrain/tingbot-python | from . import platform_specific, input
from .graphics import screen
from .run_loop import main_run_loop, every
platform_specific.fixup_env()
def run():
main_run_loop.add_wait_callback(input.check_for_quit_event)
main_run_loop.add_after_action_callback(screen.after_loop)
main_run_loop.run()
Allow run ar... | from . import platform_specific, input
from .graphics import screen
from .run_loop import main_run_loop, every
platform_specific.fixup_env()
def run(loop=None):
if loop is not None:
every(seconds=1.0/30)(loop)
main_run_loop.add_wait_callback(input.check_for_quit_event)
main_run_loop.add_after_a... | <commit_before>from . import platform_specific, input
from .graphics import screen
from .run_loop import main_run_loop, every
platform_specific.fixup_env()
def run():
main_run_loop.add_wait_callback(input.check_for_quit_event)
main_run_loop.add_after_action_callback(screen.after_loop)
main_run_loop.run... | from . import platform_specific, input
from .graphics import screen
from .run_loop import main_run_loop, every
platform_specific.fixup_env()
def run(loop=None):
if loop is not None:
every(seconds=1.0/30)(loop)
main_run_loop.add_wait_callback(input.check_for_quit_event)
main_run_loop.add_after_a... | from . import platform_specific, input
from .graphics import screen
from .run_loop import main_run_loop, every
platform_specific.fixup_env()
def run():
main_run_loop.add_wait_callback(input.check_for_quit_event)
main_run_loop.add_after_action_callback(screen.after_loop)
main_run_loop.run()
Allow run ar... | <commit_before>from . import platform_specific, input
from .graphics import screen
from .run_loop import main_run_loop, every
platform_specific.fixup_env()
def run():
main_run_loop.add_wait_callback(input.check_for_quit_event)
main_run_loop.add_after_action_callback(screen.after_loop)
main_run_loop.run... |
0d42aa0158bb4f13098bdb5341bead9b1d7c686a | __init__.py | __init__.py | from django.core.mail import mail_managers
from django.dispatch import dispatcher
from django.contrib.auth.models import User
from django.db.models.signals import post_save
from django.contrib.comments.signals import comment_was_posted
from kamu.comments.models import KamuComment
import settings
def comment_notificati... | from django.core.mail import mail_managers
from django.dispatch import dispatcher
from django.contrib.auth.models import User
from django.db.models.signals import post_save
from django.contrib.comments.signals import comment_was_posted
from kamu.comments.models import KamuComment
import settings
def comment_notificati... | Make sure to send email only when a new user is created | Make sure to send email only when a new user is created
| Python | agpl-3.0 | kansanmuisti/kamu,kansanmuisti/kamu,kansanmuisti/kamu,kansanmuisti/kamu,kansanmuisti/kamu | from django.core.mail import mail_managers
from django.dispatch import dispatcher
from django.contrib.auth.models import User
from django.db.models.signals import post_save
from django.contrib.comments.signals import comment_was_posted
from kamu.comments.models import KamuComment
import settings
def comment_notificati... | from django.core.mail import mail_managers
from django.dispatch import dispatcher
from django.contrib.auth.models import User
from django.db.models.signals import post_save
from django.contrib.comments.signals import comment_was_posted
from kamu.comments.models import KamuComment
import settings
def comment_notificati... | <commit_before>from django.core.mail import mail_managers
from django.dispatch import dispatcher
from django.contrib.auth.models import User
from django.db.models.signals import post_save
from django.contrib.comments.signals import comment_was_posted
from kamu.comments.models import KamuComment
import settings
def com... | from django.core.mail import mail_managers
from django.dispatch import dispatcher
from django.contrib.auth.models import User
from django.db.models.signals import post_save
from django.contrib.comments.signals import comment_was_posted
from kamu.comments.models import KamuComment
import settings
def comment_notificati... | from django.core.mail import mail_managers
from django.dispatch import dispatcher
from django.contrib.auth.models import User
from django.db.models.signals import post_save
from django.contrib.comments.signals import comment_was_posted
from kamu.comments.models import KamuComment
import settings
def comment_notificati... | <commit_before>from django.core.mail import mail_managers
from django.dispatch import dispatcher
from django.contrib.auth.models import User
from django.db.models.signals import post_save
from django.contrib.comments.signals import comment_was_posted
from kamu.comments.models import KamuComment
import settings
def com... |
7c3edfb8971331c0058ce6426e10239f57cbfc97 | app.py | app.py | import requests
from flask import Flask, render_template
app = Flask(__name__, instance_relative_config=True)
app.config.from_pyfile("appconfig.py")
BBC_id= "bbc-news"
@app.route("/")
def index():
r = requests.get(
f"https://newsapi.org/v1/articles?source={BBC_id}&sortBy=top&apiKey={app.config['API_KEY']... | import requests
from flask import Flask, render_template
app = Flask(__name__, instance_relative_config=True)
app.config.from_pyfile("appconfig.py")
sources = {
"bbc": "bbc-news",
"cnn": "cnn",
"hackernews": "hacker-news"
}
def create_link(source):
if source in sources.keys():
return f"https:... | Create dynamic routing for supported sources. | Create dynamic routing for supported sources.
| Python | mit | alchermd/headlines,alchermd/headlines | import requests
from flask import Flask, render_template
app = Flask(__name__, instance_relative_config=True)
app.config.from_pyfile("appconfig.py")
BBC_id= "bbc-news"
@app.route("/")
def index():
r = requests.get(
f"https://newsapi.org/v1/articles?source={BBC_id}&sortBy=top&apiKey={app.config['API_KEY']... | import requests
from flask import Flask, render_template
app = Flask(__name__, instance_relative_config=True)
app.config.from_pyfile("appconfig.py")
sources = {
"bbc": "bbc-news",
"cnn": "cnn",
"hackernews": "hacker-news"
}
def create_link(source):
if source in sources.keys():
return f"https:... | <commit_before>import requests
from flask import Flask, render_template
app = Flask(__name__, instance_relative_config=True)
app.config.from_pyfile("appconfig.py")
BBC_id= "bbc-news"
@app.route("/")
def index():
r = requests.get(
f"https://newsapi.org/v1/articles?source={BBC_id}&sortBy=top&apiKey={app.co... | import requests
from flask import Flask, render_template
app = Flask(__name__, instance_relative_config=True)
app.config.from_pyfile("appconfig.py")
sources = {
"bbc": "bbc-news",
"cnn": "cnn",
"hackernews": "hacker-news"
}
def create_link(source):
if source in sources.keys():
return f"https:... | import requests
from flask import Flask, render_template
app = Flask(__name__, instance_relative_config=True)
app.config.from_pyfile("appconfig.py")
BBC_id= "bbc-news"
@app.route("/")
def index():
r = requests.get(
f"https://newsapi.org/v1/articles?source={BBC_id}&sortBy=top&apiKey={app.config['API_KEY']... | <commit_before>import requests
from flask import Flask, render_template
app = Flask(__name__, instance_relative_config=True)
app.config.from_pyfile("appconfig.py")
BBC_id= "bbc-news"
@app.route("/")
def index():
r = requests.get(
f"https://newsapi.org/v1/articles?source={BBC_id}&sortBy=top&apiKey={app.co... |
6c53778132eeba03acbca718d76ad703615fadc6 | troposphere/kms.py | troposphere/kms.py | # Copyright (c) 2012-2013, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
from . import AWSObject, Tags
from .compat import policytypes
from .validators import boolean, integer_range, key_usage_type
class Alias(AWSObject):
resource_type = "AWS::KMS::Alias"
props = {
... | # Copyright (c) 2012-2013, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
from . import AWSObject, Tags
from .compat import policytypes
from .validators import boolean, integer_range, key_usage_type
class Alias(AWSObject):
resource_type = "AWS::KMS::Alias"
props = {
... | Update KMS per 2020-11-19 changes | Update KMS per 2020-11-19 changes
| Python | bsd-2-clause | cloudtools/troposphere,cloudtools/troposphere | # Copyright (c) 2012-2013, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
from . import AWSObject, Tags
from .compat import policytypes
from .validators import boolean, integer_range, key_usage_type
class Alias(AWSObject):
resource_type = "AWS::KMS::Alias"
props = {
... | # Copyright (c) 2012-2013, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
from . import AWSObject, Tags
from .compat import policytypes
from .validators import boolean, integer_range, key_usage_type
class Alias(AWSObject):
resource_type = "AWS::KMS::Alias"
props = {
... | <commit_before># Copyright (c) 2012-2013, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
from . import AWSObject, Tags
from .compat import policytypes
from .validators import boolean, integer_range, key_usage_type
class Alias(AWSObject):
resource_type = "AWS::KMS::Alias"
... | # Copyright (c) 2012-2013, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
from . import AWSObject, Tags
from .compat import policytypes
from .validators import boolean, integer_range, key_usage_type
class Alias(AWSObject):
resource_type = "AWS::KMS::Alias"
props = {
... | # Copyright (c) 2012-2013, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
from . import AWSObject, Tags
from .compat import policytypes
from .validators import boolean, integer_range, key_usage_type
class Alias(AWSObject):
resource_type = "AWS::KMS::Alias"
props = {
... | <commit_before># Copyright (c) 2012-2013, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
from . import AWSObject, Tags
from .compat import policytypes
from .validators import boolean, integer_range, key_usage_type
class Alias(AWSObject):
resource_type = "AWS::KMS::Alias"
... |
31ea46e1ece2174bd5d16e2234576c4ca28a054d | pywikibot/families/wikia_family.py | pywikibot/families/wikia_family.py | # -*- coding: utf-8 -*-
__version__ = '$Id$'
import family
# The Wikia Search family
# user-config.py: usernames['wikia']['wikia'] = 'User name'
class Family(family.Family):
def __init__(self):
family.Family.__init__(self)
self.name = u'wikia'
self.langs = {
u'wikia': None,... | # -*- coding: utf-8 -*-
__version__ = '$Id$'
import family
# The Wikia Search family
# user-config.py: usernames['wikia']['wikia'] = 'User name'
class Family(family.Family):
def __init__(self):
family.Family.__init__(self)
self.name = u'wikia'
self.langs = {
u'wikia': None,... | Update a version number from trunk r9016 | Update a version number from trunk r9016
| Python | mit | azatoth/pywikipedia | # -*- coding: utf-8 -*-
__version__ = '$Id$'
import family
# The Wikia Search family
# user-config.py: usernames['wikia']['wikia'] = 'User name'
class Family(family.Family):
def __init__(self):
family.Family.__init__(self)
self.name = u'wikia'
self.langs = {
u'wikia': None,... | # -*- coding: utf-8 -*-
__version__ = '$Id$'
import family
# The Wikia Search family
# user-config.py: usernames['wikia']['wikia'] = 'User name'
class Family(family.Family):
def __init__(self):
family.Family.__init__(self)
self.name = u'wikia'
self.langs = {
u'wikia': None,... | <commit_before># -*- coding: utf-8 -*-
__version__ = '$Id$'
import family
# The Wikia Search family
# user-config.py: usernames['wikia']['wikia'] = 'User name'
class Family(family.Family):
def __init__(self):
family.Family.__init__(self)
self.name = u'wikia'
self.langs = {
... | # -*- coding: utf-8 -*-
__version__ = '$Id$'
import family
# The Wikia Search family
# user-config.py: usernames['wikia']['wikia'] = 'User name'
class Family(family.Family):
def __init__(self):
family.Family.__init__(self)
self.name = u'wikia'
self.langs = {
u'wikia': None,... | # -*- coding: utf-8 -*-
__version__ = '$Id$'
import family
# The Wikia Search family
# user-config.py: usernames['wikia']['wikia'] = 'User name'
class Family(family.Family):
def __init__(self):
family.Family.__init__(self)
self.name = u'wikia'
self.langs = {
u'wikia': None,... | <commit_before># -*- coding: utf-8 -*-
__version__ = '$Id$'
import family
# The Wikia Search family
# user-config.py: usernames['wikia']['wikia'] = 'User name'
class Family(family.Family):
def __init__(self):
family.Family.__init__(self)
self.name = u'wikia'
self.langs = {
... |
ad7e93fa74054e3d962e34807f5d04acd719df33 | website/search_migration/migrate.py | website/search_migration/migrate.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''Migration script for Search-enabled Models.'''
from __future__ import absolute_import
import logging
from modularodm.query.querydialect import DefaultQueryDialect as Q
from website.models import Node
from framework.auth import User
import website.search.search as search... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''Migration script for Search-enabled Models.'''
from __future__ import absolute_import
import logging
from modularodm.query.querydialect import DefaultQueryDialect as Q
from website.models import Node
from framework.auth import User
import website.search.search as search... | Add additional logging for users' | Add additional logging for users'
| Python | apache-2.0 | KAsante95/osf.io,hmoco/osf.io,petermalcolm/osf.io,amyshi188/osf.io,rdhyee/osf.io,samanehsan/osf.io,GaryKriebel/osf.io,mluo613/osf.io,ticklemepierce/osf.io,jnayak1/osf.io,GaryKriebel/osf.io,bdyetton/prettychart,mfraezz/osf.io,GaryKriebel/osf.io,ticklemepierce/osf.io,caneruguz/osf.io,crcresearch/osf.io,abought/osf.io,zac... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''Migration script for Search-enabled Models.'''
from __future__ import absolute_import
import logging
from modularodm.query.querydialect import DefaultQueryDialect as Q
from website.models import Node
from framework.auth import User
import website.search.search as search... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''Migration script for Search-enabled Models.'''
from __future__ import absolute_import
import logging
from modularodm.query.querydialect import DefaultQueryDialect as Q
from website.models import Node
from framework.auth import User
import website.search.search as search... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''Migration script for Search-enabled Models.'''
from __future__ import absolute_import
import logging
from modularodm.query.querydialect import DefaultQueryDialect as Q
from website.models import Node
from framework.auth import User
import website.search.s... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''Migration script for Search-enabled Models.'''
from __future__ import absolute_import
import logging
from modularodm.query.querydialect import DefaultQueryDialect as Q
from website.models import Node
from framework.auth import User
import website.search.search as search... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''Migration script for Search-enabled Models.'''
from __future__ import absolute_import
import logging
from modularodm.query.querydialect import DefaultQueryDialect as Q
from website.models import Node
from framework.auth import User
import website.search.search as search... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''Migration script for Search-enabled Models.'''
from __future__ import absolute_import
import logging
from modularodm.query.querydialect import DefaultQueryDialect as Q
from website.models import Node
from framework.auth import User
import website.search.s... |
61b5a3f2bdbde977fbc6dd0042209e0d67a53318 | api/urls.py | api/urls.py | from django.conf.urls import url, include
from rest_framework import routers
from api import views
router = routers.DefaultRouter()
router.register(r'categories', views.CategoryViewSet)
router.register(r'commodities', views.CommodityViewSet)
router.register(r'economies', views.EconomyViewSet)
router.register(r'facti... | from django.conf.urls import url, include
from rest_framework import routers
from api import views
router = routers.DefaultRouter()
router.register(r'categories', views.CategoryViewSet)
router.register(r'commodities', views.CommodityViewSet)
router.register(r'economies', views.EconomyViewSet)
router.register(r'facti... | Fix for the api at root url. | Fix for the api at root url.
| Python | mit | Puciek/elite-backend,Puciek/elite-backend | from django.conf.urls import url, include
from rest_framework import routers
from api import views
router = routers.DefaultRouter()
router.register(r'categories', views.CategoryViewSet)
router.register(r'commodities', views.CommodityViewSet)
router.register(r'economies', views.EconomyViewSet)
router.register(r'facti... | from django.conf.urls import url, include
from rest_framework import routers
from api import views
router = routers.DefaultRouter()
router.register(r'categories', views.CategoryViewSet)
router.register(r'commodities', views.CommodityViewSet)
router.register(r'economies', views.EconomyViewSet)
router.register(r'facti... | <commit_before>from django.conf.urls import url, include
from rest_framework import routers
from api import views
router = routers.DefaultRouter()
router.register(r'categories', views.CategoryViewSet)
router.register(r'commodities', views.CommodityViewSet)
router.register(r'economies', views.EconomyViewSet)
router.r... | from django.conf.urls import url, include
from rest_framework import routers
from api import views
router = routers.DefaultRouter()
router.register(r'categories', views.CategoryViewSet)
router.register(r'commodities', views.CommodityViewSet)
router.register(r'economies', views.EconomyViewSet)
router.register(r'facti... | from django.conf.urls import url, include
from rest_framework import routers
from api import views
router = routers.DefaultRouter()
router.register(r'categories', views.CategoryViewSet)
router.register(r'commodities', views.CommodityViewSet)
router.register(r'economies', views.EconomyViewSet)
router.register(r'facti... | <commit_before>from django.conf.urls import url, include
from rest_framework import routers
from api import views
router = routers.DefaultRouter()
router.register(r'categories', views.CategoryViewSet)
router.register(r'commodities', views.CommodityViewSet)
router.register(r'economies', views.EconomyViewSet)
router.r... |
305849d57cc6897c65b4e0996f70a21f1d873d25 | awp/main.py | awp/main.py | #!/usr/bin/env python3
# coding=utf-8
import argparse
import json
import jsonschema
import awp.packager
import awp.validator
# Parse arguments given via command-line interface
def parse_cli_args():
parser = argparse.ArgumentParser()
parser.add_argument(
'--force', '-f', action='store_true',
... | #!/usr/bin/env python3
# coding=utf-8
import argparse
import json
import jsonschema
import awp.packager
import awp.validator
# Parse arguments given via command-line interface
def parse_cli_args():
parser = argparse.ArgumentParser()
parser.add_argument(
'--force', '-f', action='store_true',
... | Clarify where packager.json validation error originates | Clarify where packager.json validation error originates
| Python | mit | caleb531/alfred-workflow-packager | #!/usr/bin/env python3
# coding=utf-8
import argparse
import json
import jsonschema
import awp.packager
import awp.validator
# Parse arguments given via command-line interface
def parse_cli_args():
parser = argparse.ArgumentParser()
parser.add_argument(
'--force', '-f', action='store_true',
... | #!/usr/bin/env python3
# coding=utf-8
import argparse
import json
import jsonschema
import awp.packager
import awp.validator
# Parse arguments given via command-line interface
def parse_cli_args():
parser = argparse.ArgumentParser()
parser.add_argument(
'--force', '-f', action='store_true',
... | <commit_before>#!/usr/bin/env python3
# coding=utf-8
import argparse
import json
import jsonschema
import awp.packager
import awp.validator
# Parse arguments given via command-line interface
def parse_cli_args():
parser = argparse.ArgumentParser()
parser.add_argument(
'--force', '-f', action='stor... | #!/usr/bin/env python3
# coding=utf-8
import argparse
import json
import jsonschema
import awp.packager
import awp.validator
# Parse arguments given via command-line interface
def parse_cli_args():
parser = argparse.ArgumentParser()
parser.add_argument(
'--force', '-f', action='store_true',
... | #!/usr/bin/env python3
# coding=utf-8
import argparse
import json
import jsonschema
import awp.packager
import awp.validator
# Parse arguments given via command-line interface
def parse_cli_args():
parser = argparse.ArgumentParser()
parser.add_argument(
'--force', '-f', action='store_true',
... | <commit_before>#!/usr/bin/env python3
# coding=utf-8
import argparse
import json
import jsonschema
import awp.packager
import awp.validator
# Parse arguments given via command-line interface
def parse_cli_args():
parser = argparse.ArgumentParser()
parser.add_argument(
'--force', '-f', action='stor... |
261421a647fae9eb4df998c26740f7141a68c13d | chargehound/__init__.py | chargehound/__init__.py | from chargehound.resources import Disputes
api_key = None
host = 'api.chargehound.com'
base_path = '/v1/'
timeout = 5
__all__ = [api_key, host, Disputes, timeout]
| from chargehound.resources import Disputes
api_key = None
host = 'api.chargehound.com'
base_path = '/v1/'
timeout = 60
__all__ = [api_key, host, Disputes, timeout]
| Set timeout to 60 seconds | Set timeout to 60 seconds
| Python | mit | chargehound/chargehound-python | from chargehound.resources import Disputes
api_key = None
host = 'api.chargehound.com'
base_path = '/v1/'
timeout = 5
__all__ = [api_key, host, Disputes, timeout]
Set timeout to 60 seconds | from chargehound.resources import Disputes
api_key = None
host = 'api.chargehound.com'
base_path = '/v1/'
timeout = 60
__all__ = [api_key, host, Disputes, timeout]
| <commit_before>from chargehound.resources import Disputes
api_key = None
host = 'api.chargehound.com'
base_path = '/v1/'
timeout = 5
__all__ = [api_key, host, Disputes, timeout]
<commit_msg>Set timeout to 60 seconds<commit_after> | from chargehound.resources import Disputes
api_key = None
host = 'api.chargehound.com'
base_path = '/v1/'
timeout = 60
__all__ = [api_key, host, Disputes, timeout]
| from chargehound.resources import Disputes
api_key = None
host = 'api.chargehound.com'
base_path = '/v1/'
timeout = 5
__all__ = [api_key, host, Disputes, timeout]
Set timeout to 60 secondsfrom chargehound.resources import Disputes
api_key = None
host = 'api.chargehound.com'
base_path = '/v1/'
timeout = 60
__all__ =... | <commit_before>from chargehound.resources import Disputes
api_key = None
host = 'api.chargehound.com'
base_path = '/v1/'
timeout = 5
__all__ = [api_key, host, Disputes, timeout]
<commit_msg>Set timeout to 60 seconds<commit_after>from chargehound.resources import Disputes
api_key = None
host = 'api.chargehound.com'
b... |
82c95e2fcb1d3879ac9b935c7c9b883c42acf26a | trombi/__init__.py | trombi/__init__.py | # Copyright (c) 2010 Inoi Oy
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute,... | # Copyright (c) 2010 Inoi Oy
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute,... | Remove the fully qualified module reference 'trombi.client' | Remove the fully qualified module reference 'trombi.client'
If there happens to be more than one version of trombi on the system
(such as stable vs testing) the one in the PYTHONPATH that gets
encountered will be silently loaded when specifically loading the
module __init__ file for the other client. Now using the rel... | Python | mit | inoi/trombi | # Copyright (c) 2010 Inoi Oy
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute,... | # Copyright (c) 2010 Inoi Oy
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute,... | <commit_before># Copyright (c) 2010 Inoi Oy
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publi... | # Copyright (c) 2010 Inoi Oy
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute,... | # Copyright (c) 2010 Inoi Oy
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute,... | <commit_before># Copyright (c) 2010 Inoi Oy
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publi... |
d629e7e1bb24e6ee7a0224b4929d538a23afaa43 | commands.py | commands.py | from twisted.protocols import amp
from twisted.cred.error import UnauthorizedLogin
# commands to server side
class Login(amp.Command):
arguments = [("username", amp.String()), ("password", amp.String())]
response = []
errors = {UnauthorizedLogin: "UnauthorizedLogin"}
class SendToAll(amp.Command):
arg... | from twisted.protocols import amp
from twisted.cred.error import UnauthorizedLogin
# commands to server side
class Login(amp.Command):
arguments = [("username", amp.String()), ("password", amp.String())]
response = []
errors = {UnauthorizedLogin: "UnauthorizedLogin"}
class SendToAll(amp.Command):
arg... | Fix syntax problem in SendToUser.arguments | Fix syntax problem in SendToUser.arguments
| Python | mit | dripton/ampchat | from twisted.protocols import amp
from twisted.cred.error import UnauthorizedLogin
# commands to server side
class Login(amp.Command):
arguments = [("username", amp.String()), ("password", amp.String())]
response = []
errors = {UnauthorizedLogin: "UnauthorizedLogin"}
class SendToAll(amp.Command):
arg... | from twisted.protocols import amp
from twisted.cred.error import UnauthorizedLogin
# commands to server side
class Login(amp.Command):
arguments = [("username", amp.String()), ("password", amp.String())]
response = []
errors = {UnauthorizedLogin: "UnauthorizedLogin"}
class SendToAll(amp.Command):
arg... | <commit_before>from twisted.protocols import amp
from twisted.cred.error import UnauthorizedLogin
# commands to server side
class Login(amp.Command):
arguments = [("username", amp.String()), ("password", amp.String())]
response = []
errors = {UnauthorizedLogin: "UnauthorizedLogin"}
class SendToAll(amp.Co... | from twisted.protocols import amp
from twisted.cred.error import UnauthorizedLogin
# commands to server side
class Login(amp.Command):
arguments = [("username", amp.String()), ("password", amp.String())]
response = []
errors = {UnauthorizedLogin: "UnauthorizedLogin"}
class SendToAll(amp.Command):
arg... | from twisted.protocols import amp
from twisted.cred.error import UnauthorizedLogin
# commands to server side
class Login(amp.Command):
arguments = [("username", amp.String()), ("password", amp.String())]
response = []
errors = {UnauthorizedLogin: "UnauthorizedLogin"}
class SendToAll(amp.Command):
arg... | <commit_before>from twisted.protocols import amp
from twisted.cred.error import UnauthorizedLogin
# commands to server side
class Login(amp.Command):
arguments = [("username", amp.String()), ("password", amp.String())]
response = []
errors = {UnauthorizedLogin: "UnauthorizedLogin"}
class SendToAll(amp.Co... |
ad7507f795f465425e72fb6821115e395046b84d | pyshtools/shio/yilm_index_vector.py | pyshtools/shio/yilm_index_vector.py | def YilmIndexVector(i, l, m):
"""
Compute the index of an 1D array of spherical harmonic coefficients
corresponding to i, l, and m.
Usage
-----
index = YilmIndexVector (i, l, m)
Returns
-------
index : integer
Index of an 1D array of spherical harmonic coefficients correspo... | def YilmIndexVector(i, l, m):
"""
Compute the index of a 1D array of spherical harmonic coefficients
corresponding to i, l, and m.
Usage
-----
index = YilmIndexVector (i, l, m)
Returns
-------
index : integer
Index of a 1D array of spherical harmonic coefficients correspond... | Add error checks to YilmIndexVector (and update docs) | Add error checks to YilmIndexVector (and update docs)
| Python | bsd-3-clause | SHTOOLS/SHTOOLS,MarkWieczorek/SHTOOLS,MarkWieczorek/SHTOOLS,SHTOOLS/SHTOOLS | def YilmIndexVector(i, l, m):
"""
Compute the index of an 1D array of spherical harmonic coefficients
corresponding to i, l, and m.
Usage
-----
index = YilmIndexVector (i, l, m)
Returns
-------
index : integer
Index of an 1D array of spherical harmonic coefficients correspo... | def YilmIndexVector(i, l, m):
"""
Compute the index of a 1D array of spherical harmonic coefficients
corresponding to i, l, and m.
Usage
-----
index = YilmIndexVector (i, l, m)
Returns
-------
index : integer
Index of a 1D array of spherical harmonic coefficients correspond... | <commit_before>def YilmIndexVector(i, l, m):
"""
Compute the index of an 1D array of spherical harmonic coefficients
corresponding to i, l, and m.
Usage
-----
index = YilmIndexVector (i, l, m)
Returns
-------
index : integer
Index of an 1D array of spherical harmonic coeffi... | def YilmIndexVector(i, l, m):
"""
Compute the index of a 1D array of spherical harmonic coefficients
corresponding to i, l, and m.
Usage
-----
index = YilmIndexVector (i, l, m)
Returns
-------
index : integer
Index of a 1D array of spherical harmonic coefficients correspond... | def YilmIndexVector(i, l, m):
"""
Compute the index of an 1D array of spherical harmonic coefficients
corresponding to i, l, and m.
Usage
-----
index = YilmIndexVector (i, l, m)
Returns
-------
index : integer
Index of an 1D array of spherical harmonic coefficients correspo... | <commit_before>def YilmIndexVector(i, l, m):
"""
Compute the index of an 1D array of spherical harmonic coefficients
corresponding to i, l, and m.
Usage
-----
index = YilmIndexVector (i, l, m)
Returns
-------
index : integer
Index of an 1D array of spherical harmonic coeffi... |
f1e1df825b69c33913096af1cb6e20b7d2db72ce | scrapi/harvesters/pubmedcentral.py | scrapi/harvesters/pubmedcentral.py | """
Harvester of pubmed for the SHARE notification service
"""
from __future__ import unicode_literals
from scrapi.base import schemas
from scrapi.base import helpers
from scrapi.base import OAIHarvester
def oai_extract_url_pubmed(identifiers):
identifiers = [identifiers] if not isinstance(identifiers, list) e... | """
Harvester of PubMed Central for the SHARE notification service
Example API call: http://www.pubmedcentral.nih.gov/oai/oai.cgi?verb=ListRecords&metadataPrefix=oai_dc&from=2015-04-13&until=2015-04-14
"""
from __future__ import unicode_literals
from scrapi.base import schemas
from scrapi.base import helpers
from s... | Add API call to top docstring | Add API call to top docstring
| Python | apache-2.0 | CenterForOpenScience/scrapi,mehanig/scrapi,icereval/scrapi,mehanig/scrapi,CenterForOpenScience/scrapi,alexgarciac/scrapi,fabianvf/scrapi,felliott/scrapi,jeffreyliu3230/scrapi,felliott/scrapi,ostwald/scrapi,erinspace/scrapi,fabianvf/scrapi,erinspace/scrapi | """
Harvester of pubmed for the SHARE notification service
"""
from __future__ import unicode_literals
from scrapi.base import schemas
from scrapi.base import helpers
from scrapi.base import OAIHarvester
def oai_extract_url_pubmed(identifiers):
identifiers = [identifiers] if not isinstance(identifiers, list) e... | """
Harvester of PubMed Central for the SHARE notification service
Example API call: http://www.pubmedcentral.nih.gov/oai/oai.cgi?verb=ListRecords&metadataPrefix=oai_dc&from=2015-04-13&until=2015-04-14
"""
from __future__ import unicode_literals
from scrapi.base import schemas
from scrapi.base import helpers
from s... | <commit_before>"""
Harvester of pubmed for the SHARE notification service
"""
from __future__ import unicode_literals
from scrapi.base import schemas
from scrapi.base import helpers
from scrapi.base import OAIHarvester
def oai_extract_url_pubmed(identifiers):
identifiers = [identifiers] if not isinstance(ident... | """
Harvester of PubMed Central for the SHARE notification service
Example API call: http://www.pubmedcentral.nih.gov/oai/oai.cgi?verb=ListRecords&metadataPrefix=oai_dc&from=2015-04-13&until=2015-04-14
"""
from __future__ import unicode_literals
from scrapi.base import schemas
from scrapi.base import helpers
from s... | """
Harvester of pubmed for the SHARE notification service
"""
from __future__ import unicode_literals
from scrapi.base import schemas
from scrapi.base import helpers
from scrapi.base import OAIHarvester
def oai_extract_url_pubmed(identifiers):
identifiers = [identifiers] if not isinstance(identifiers, list) e... | <commit_before>"""
Harvester of pubmed for the SHARE notification service
"""
from __future__ import unicode_literals
from scrapi.base import schemas
from scrapi.base import helpers
from scrapi.base import OAIHarvester
def oai_extract_url_pubmed(identifiers):
identifiers = [identifiers] if not isinstance(ident... |
631f9edec1574054ef5612b652b94397af141d7a | tests/test_rule.py | tests/test_rule.py | from datetime import datetime
from unittest import TestCase
from rule import PriceRule
from stock import Stock
class TestPriceRule(TestCase):
@classmethod
def setUpClass(cls):
goog = Stock("GOOG")
goog.update(datetime(2014, 2, 10), 11)
cls.exchange = {"GOOG": goog}
def test_a_Pri... | from datetime import datetime
from unittest import TestCase
from rule import PriceRule
from stock import Stock
class TestPriceRule(TestCase):
@classmethod
def setUpClass(cls):
goog = Stock("GOOG")
goog.update(datetime(2014, 2, 10), 11)
cls.exchange = {"GOOG": goog}
def test_a_Pri... | Add a PriceRule test if a condition is not met. | Add a PriceRule test if a condition is not met.
| Python | mit | bsmukasa/stock_alerter | from datetime import datetime
from unittest import TestCase
from rule import PriceRule
from stock import Stock
class TestPriceRule(TestCase):
@classmethod
def setUpClass(cls):
goog = Stock("GOOG")
goog.update(datetime(2014, 2, 10), 11)
cls.exchange = {"GOOG": goog}
def test_a_Pri... | from datetime import datetime
from unittest import TestCase
from rule import PriceRule
from stock import Stock
class TestPriceRule(TestCase):
@classmethod
def setUpClass(cls):
goog = Stock("GOOG")
goog.update(datetime(2014, 2, 10), 11)
cls.exchange = {"GOOG": goog}
def test_a_Pri... | <commit_before>from datetime import datetime
from unittest import TestCase
from rule import PriceRule
from stock import Stock
class TestPriceRule(TestCase):
@classmethod
def setUpClass(cls):
goog = Stock("GOOG")
goog.update(datetime(2014, 2, 10), 11)
cls.exchange = {"GOOG": goog}
... | from datetime import datetime
from unittest import TestCase
from rule import PriceRule
from stock import Stock
class TestPriceRule(TestCase):
@classmethod
def setUpClass(cls):
goog = Stock("GOOG")
goog.update(datetime(2014, 2, 10), 11)
cls.exchange = {"GOOG": goog}
def test_a_Pri... | from datetime import datetime
from unittest import TestCase
from rule import PriceRule
from stock import Stock
class TestPriceRule(TestCase):
@classmethod
def setUpClass(cls):
goog = Stock("GOOG")
goog.update(datetime(2014, 2, 10), 11)
cls.exchange = {"GOOG": goog}
def test_a_Pri... | <commit_before>from datetime import datetime
from unittest import TestCase
from rule import PriceRule
from stock import Stock
class TestPriceRule(TestCase):
@classmethod
def setUpClass(cls):
goog = Stock("GOOG")
goog.update(datetime(2014, 2, 10), 11)
cls.exchange = {"GOOG": goog}
... |
2c7621143a9d110ebb1ea5dc7884f2c21e2786b5 | microgear/cache.py | microgear/cache.py | import os
import json
import sys
def get_item(key):
try:
return json.loads(open(os.path.join(os.path.abspath(os.path.dirname(sys.argv[0])),key), "rb").read().decode('UTF-8'))["_"]
except (IOError, ValueError):
return None
def set_item(key,value):
open(os.path.join(os.path.abspat... | import os
import json
import sys
CURRENT_DIR = os.path.abspath(os.path.dirname(sys.argv[0]))
def get_item(key):
"""Return content in cached file in JSON format"""
CACHED_KEY_FILE = os.path.join(CURRENT_DIR, key)
try:
return json.loads(open(CACHED_KEY_FILE, "rb").read().decode('UTF-... | Add docstring to function and refactor some code for clarification | Add docstring to function and refactor some code for clarification
| Python | isc | netpieio/microgear-python | import os
import json
import sys
def get_item(key):
try:
return json.loads(open(os.path.join(os.path.abspath(os.path.dirname(sys.argv[0])),key), "rb").read().decode('UTF-8'))["_"]
except (IOError, ValueError):
return None
def set_item(key,value):
open(os.path.join(os.path.abspat... | import os
import json
import sys
CURRENT_DIR = os.path.abspath(os.path.dirname(sys.argv[0]))
def get_item(key):
"""Return content in cached file in JSON format"""
CACHED_KEY_FILE = os.path.join(CURRENT_DIR, key)
try:
return json.loads(open(CACHED_KEY_FILE, "rb").read().decode('UTF-... | <commit_before>import os
import json
import sys
def get_item(key):
try:
return json.loads(open(os.path.join(os.path.abspath(os.path.dirname(sys.argv[0])),key), "rb").read().decode('UTF-8'))["_"]
except (IOError, ValueError):
return None
def set_item(key,value):
open(os.path.join... | import os
import json
import sys
CURRENT_DIR = os.path.abspath(os.path.dirname(sys.argv[0]))
def get_item(key):
"""Return content in cached file in JSON format"""
CACHED_KEY_FILE = os.path.join(CURRENT_DIR, key)
try:
return json.loads(open(CACHED_KEY_FILE, "rb").read().decode('UTF-... | import os
import json
import sys
def get_item(key):
try:
return json.loads(open(os.path.join(os.path.abspath(os.path.dirname(sys.argv[0])),key), "rb").read().decode('UTF-8'))["_"]
except (IOError, ValueError):
return None
def set_item(key,value):
open(os.path.join(os.path.abspat... | <commit_before>import os
import json
import sys
def get_item(key):
try:
return json.loads(open(os.path.join(os.path.abspath(os.path.dirname(sys.argv[0])),key), "rb").read().decode('UTF-8'))["_"]
except (IOError, ValueError):
return None
def set_item(key,value):
open(os.path.join... |
8b669c8e242bb3a66527edb004ea6feab8258168 | scripts/lib/get_old_dict_values.py | scripts/lib/get_old_dict_values.py | from .KEYNOTFOUND import KEYNOTFOUNDIN1
from .dict_diff import dict_diff
def get_old_dict_values(old, new):
# Returns the "old" value for two dicts.
diff = dict_diff(old, new)
return {key: diff[key][0] if diff[key][0] != KEYNOTFOUNDIN1 else None for key in diff}
| from .KEYNOTFOUND import KEYNOTFOUNDIN1
from .dict_diff import dict_diff
def get_old_dict_values(old, new):
# Returns the "old" value for two dicts.
diff = dict_diff(old, new)
return {key: diff[key][0]
if diff[key][0] != KEYNOTFOUNDIN1
else None
for key in diff}
| Expand an object comprehension onto several lines | Expand an object comprehension onto several lines
| Python | mit | StoDevX/course-data-tools,StoDevX/course-data-tools | from .KEYNOTFOUND import KEYNOTFOUNDIN1
from .dict_diff import dict_diff
def get_old_dict_values(old, new):
# Returns the "old" value for two dicts.
diff = dict_diff(old, new)
return {key: diff[key][0] if diff[key][0] != KEYNOTFOUNDIN1 else None for key in diff}
Expand an object comprehension onto several lines | from .KEYNOTFOUND import KEYNOTFOUNDIN1
from .dict_diff import dict_diff
def get_old_dict_values(old, new):
# Returns the "old" value for two dicts.
diff = dict_diff(old, new)
return {key: diff[key][0]
if diff[key][0] != KEYNOTFOUNDIN1
else None
for key in diff}
| <commit_before>from .KEYNOTFOUND import KEYNOTFOUNDIN1
from .dict_diff import dict_diff
def get_old_dict_values(old, new):
# Returns the "old" value for two dicts.
diff = dict_diff(old, new)
return {key: diff[key][0] if diff[key][0] != KEYNOTFOUNDIN1 else None for key in diff}
<commit_msg>Expand an object comprehe... | from .KEYNOTFOUND import KEYNOTFOUNDIN1
from .dict_diff import dict_diff
def get_old_dict_values(old, new):
# Returns the "old" value for two dicts.
diff = dict_diff(old, new)
return {key: diff[key][0]
if diff[key][0] != KEYNOTFOUNDIN1
else None
for key in diff}
| from .KEYNOTFOUND import KEYNOTFOUNDIN1
from .dict_diff import dict_diff
def get_old_dict_values(old, new):
# Returns the "old" value for two dicts.
diff = dict_diff(old, new)
return {key: diff[key][0] if diff[key][0] != KEYNOTFOUNDIN1 else None for key in diff}
Expand an object comprehension onto several linesfro... | <commit_before>from .KEYNOTFOUND import KEYNOTFOUNDIN1
from .dict_diff import dict_diff
def get_old_dict_values(old, new):
# Returns the "old" value for two dicts.
diff = dict_diff(old, new)
return {key: diff[key][0] if diff[key][0] != KEYNOTFOUNDIN1 else None for key in diff}
<commit_msg>Expand an object comprehe... |
562fa35a036a43526b55546d97490b3f36001a18 | robotpy_ext/misc/periodic_filter.py | robotpy_ext/misc/periodic_filter.py | import logging
import time
class PeriodicFilter:
"""
Periodic Filter to help keep down clutter in the console.
Simply add this filter to your logger and the logger will
only print periodically.
The logger will always print logging levels of WARNING or higher
"""
def __ini... | import logging
import time
class PeriodicFilter:
"""
Periodic Filter to help keep down clutter in the console.
Simply add this filter to your logger and the logger will
only print periodically.
The logger will always print logging levels of WARNING or higher,
unless given ... | Create example usage. Rename bypass_level | Create example usage. Rename bypass_level
| Python | bsd-3-clause | robotpy/robotpy-wpilib-utilities,Twinters007/robotpy-wpilib-utilities,robotpy/robotpy-wpilib-utilities,Twinters007/robotpy-wpilib-utilities | import logging
import time
class PeriodicFilter:
"""
Periodic Filter to help keep down clutter in the console.
Simply add this filter to your logger and the logger will
only print periodically.
The logger will always print logging levels of WARNING or higher
"""
def __ini... | import logging
import time
class PeriodicFilter:
"""
Periodic Filter to help keep down clutter in the console.
Simply add this filter to your logger and the logger will
only print periodically.
The logger will always print logging levels of WARNING or higher,
unless given ... | <commit_before>import logging
import time
class PeriodicFilter:
"""
Periodic Filter to help keep down clutter in the console.
Simply add this filter to your logger and the logger will
only print periodically.
The logger will always print logging levels of WARNING or higher
"""... | import logging
import time
class PeriodicFilter:
"""
Periodic Filter to help keep down clutter in the console.
Simply add this filter to your logger and the logger will
only print periodically.
The logger will always print logging levels of WARNING or higher,
unless given ... | import logging
import time
class PeriodicFilter:
"""
Periodic Filter to help keep down clutter in the console.
Simply add this filter to your logger and the logger will
only print periodically.
The logger will always print logging levels of WARNING or higher
"""
def __ini... | <commit_before>import logging
import time
class PeriodicFilter:
"""
Periodic Filter to help keep down clutter in the console.
Simply add this filter to your logger and the logger will
only print periodically.
The logger will always print logging levels of WARNING or higher
"""... |
ef72be28dc83ff2c73335c6eb13135cab8affe53 | troposphere/sso.py | troposphere/sso.py | # Copyright (c) 2012-2020, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
#
# *** Do not modify - this file is autogenerated ***
# Resource specification version: 18.6.0
from . import AWSObject
from troposphere import Tags
class Assignment(AWSObject):
resource_type = "AW... | # Copyright (c) 2012-2021, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
#
# *** Do not modify - this file is autogenerated ***
# Resource specification version: 25.0.0
from . import AWSObject
from . import AWSProperty
from troposphere import Tags
class Assignment(AWSObject... | Update SSO per 2020-12-18 changes | Update SSO per 2020-12-18 changes
| Python | bsd-2-clause | cloudtools/troposphere,cloudtools/troposphere | # Copyright (c) 2012-2020, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
#
# *** Do not modify - this file is autogenerated ***
# Resource specification version: 18.6.0
from . import AWSObject
from troposphere import Tags
class Assignment(AWSObject):
resource_type = "AW... | # Copyright (c) 2012-2021, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
#
# *** Do not modify - this file is autogenerated ***
# Resource specification version: 25.0.0
from . import AWSObject
from . import AWSProperty
from troposphere import Tags
class Assignment(AWSObject... | <commit_before># Copyright (c) 2012-2020, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
#
# *** Do not modify - this file is autogenerated ***
# Resource specification version: 18.6.0
from . import AWSObject
from troposphere import Tags
class Assignment(AWSObject):
reso... | # Copyright (c) 2012-2021, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
#
# *** Do not modify - this file is autogenerated ***
# Resource specification version: 25.0.0
from . import AWSObject
from . import AWSProperty
from troposphere import Tags
class Assignment(AWSObject... | # Copyright (c) 2012-2020, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
#
# *** Do not modify - this file is autogenerated ***
# Resource specification version: 18.6.0
from . import AWSObject
from troposphere import Tags
class Assignment(AWSObject):
resource_type = "AW... | <commit_before># Copyright (c) 2012-2020, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
#
# *** Do not modify - this file is autogenerated ***
# Resource specification version: 18.6.0
from . import AWSObject
from troposphere import Tags
class Assignment(AWSObject):
reso... |
7c3a3283b3da0c01da012bb823d781036d1847b6 | packages/syft/src/syft/core/node/common/node_table/node_route.py | packages/syft/src/syft/core/node/common/node_table/node_route.py | # third party
from sqlalchemy import Boolean
from sqlalchemy import Column
from sqlalchemy import ForeignKey
from sqlalchemy import Integer
from sqlalchemy import String
# relative
from . import Base
class NodeRoute(Base):
__tablename__ = "node_route"
id = Column(Integer(), primary_key=True, autoincrement=T... | # third party
from sqlalchemy import Boolean
from sqlalchemy import Column
from sqlalchemy import ForeignKey
from sqlalchemy import Integer
from sqlalchemy import String
# relative
from . import Base
class NodeRoute(Base):
__tablename__ = "node_route"
id = Column(Integer(), primary_key=True, autoincrement=T... | ADD vpn_endpoint and vpn_key columns | ADD vpn_endpoint and vpn_key columns
| Python | apache-2.0 | OpenMined/PySyft,OpenMined/PySyft,OpenMined/PySyft,OpenMined/PySyft | # third party
from sqlalchemy import Boolean
from sqlalchemy import Column
from sqlalchemy import ForeignKey
from sqlalchemy import Integer
from sqlalchemy import String
# relative
from . import Base
class NodeRoute(Base):
__tablename__ = "node_route"
id = Column(Integer(), primary_key=True, autoincrement=T... | # third party
from sqlalchemy import Boolean
from sqlalchemy import Column
from sqlalchemy import ForeignKey
from sqlalchemy import Integer
from sqlalchemy import String
# relative
from . import Base
class NodeRoute(Base):
__tablename__ = "node_route"
id = Column(Integer(), primary_key=True, autoincrement=T... | <commit_before># third party
from sqlalchemy import Boolean
from sqlalchemy import Column
from sqlalchemy import ForeignKey
from sqlalchemy import Integer
from sqlalchemy import String
# relative
from . import Base
class NodeRoute(Base):
__tablename__ = "node_route"
id = Column(Integer(), primary_key=True, ... | # third party
from sqlalchemy import Boolean
from sqlalchemy import Column
from sqlalchemy import ForeignKey
from sqlalchemy import Integer
from sqlalchemy import String
# relative
from . import Base
class NodeRoute(Base):
__tablename__ = "node_route"
id = Column(Integer(), primary_key=True, autoincrement=T... | # third party
from sqlalchemy import Boolean
from sqlalchemy import Column
from sqlalchemy import ForeignKey
from sqlalchemy import Integer
from sqlalchemy import String
# relative
from . import Base
class NodeRoute(Base):
__tablename__ = "node_route"
id = Column(Integer(), primary_key=True, autoincrement=T... | <commit_before># third party
from sqlalchemy import Boolean
from sqlalchemy import Column
from sqlalchemy import ForeignKey
from sqlalchemy import Integer
from sqlalchemy import String
# relative
from . import Base
class NodeRoute(Base):
__tablename__ = "node_route"
id = Column(Integer(), primary_key=True, ... |
deaedcef36238d59484611a63ac21d60707004d4 | Do_not_deploy/query_outgoing_queue.py | Do_not_deploy/query_outgoing_queue.py | from kombu import Connection, Exchange, Queue
from flask import Flask
import os
app = Flask(__name__)
app.config.from_object(os.environ.get('SETTINGS'))
@app.route("/getnextqueuemessage")
#Gets the next message from target queue. Returns the signed JSON.
def get_last_queue_message():
#: By default messages sent ... | from kombu import Connection, Exchange, Queue
from flask import Flask
import os
app = Flask(__name__)
app.config.from_object(os.environ.get('SETTINGS'))
@app.route("/getnextqueuemessage")
#Gets the next message from target queue. Returns the signed JSON.
def get_last_queue_message():
#: By default messages sent ... | Remove all has to reflect changes to get next | Remove all has to reflect changes to get next | Python | mit | LandRegistry/register-publisher,LandRegistry/register-publisher | from kombu import Connection, Exchange, Queue
from flask import Flask
import os
app = Flask(__name__)
app.config.from_object(os.environ.get('SETTINGS'))
@app.route("/getnextqueuemessage")
#Gets the next message from target queue. Returns the signed JSON.
def get_last_queue_message():
#: By default messages sent ... | from kombu import Connection, Exchange, Queue
from flask import Flask
import os
app = Flask(__name__)
app.config.from_object(os.environ.get('SETTINGS'))
@app.route("/getnextqueuemessage")
#Gets the next message from target queue. Returns the signed JSON.
def get_last_queue_message():
#: By default messages sent ... | <commit_before>from kombu import Connection, Exchange, Queue
from flask import Flask
import os
app = Flask(__name__)
app.config.from_object(os.environ.get('SETTINGS'))
@app.route("/getnextqueuemessage")
#Gets the next message from target queue. Returns the signed JSON.
def get_last_queue_message():
#: By default... | from kombu import Connection, Exchange, Queue
from flask import Flask
import os
app = Flask(__name__)
app.config.from_object(os.environ.get('SETTINGS'))
@app.route("/getnextqueuemessage")
#Gets the next message from target queue. Returns the signed JSON.
def get_last_queue_message():
#: By default messages sent ... | from kombu import Connection, Exchange, Queue
from flask import Flask
import os
app = Flask(__name__)
app.config.from_object(os.environ.get('SETTINGS'))
@app.route("/getnextqueuemessage")
#Gets the next message from target queue. Returns the signed JSON.
def get_last_queue_message():
#: By default messages sent ... | <commit_before>from kombu import Connection, Exchange, Queue
from flask import Flask
import os
app = Flask(__name__)
app.config.from_object(os.environ.get('SETTINGS'))
@app.route("/getnextqueuemessage")
#Gets the next message from target queue. Returns the signed JSON.
def get_last_queue_message():
#: By default... |
1f697a2c7bcf0f7769a9fc4f81be676ed5ee97c6 | examples/flask/flask_seguro/cart.py | examples/flask/flask_seguro/cart.py | from flask_seguro.products import Products
from flask import current_app as app
class Cart:
def __init__(self, cart_dict={}):
if cart_dict == {}:
self.total = 0
self.subtotal = 0
self.items = []
else:
self.total = cart_dict["total"]
self... | from flask_seguro.products import Products
from flask import current_app as app
class Cart:
def __init__(self, cart_dict=None):
cart_dict = cart_dict or {}
if cart_dict == {}:
self.total = 0
self.subtotal = 0
self.items = []
else:
self.total... | Fix dangerous default mutable value | Fix dangerous default mutable value | Python | mit | rgcarrasqueira/python-pagseguro,vintasoftware/python-pagseguro,rochacbruno/python-pagseguro | from flask_seguro.products import Products
from flask import current_app as app
class Cart:
def __init__(self, cart_dict={}):
if cart_dict == {}:
self.total = 0
self.subtotal = 0
self.items = []
else:
self.total = cart_dict["total"]
self... | from flask_seguro.products import Products
from flask import current_app as app
class Cart:
def __init__(self, cart_dict=None):
cart_dict = cart_dict or {}
if cart_dict == {}:
self.total = 0
self.subtotal = 0
self.items = []
else:
self.total... | <commit_before>from flask_seguro.products import Products
from flask import current_app as app
class Cart:
def __init__(self, cart_dict={}):
if cart_dict == {}:
self.total = 0
self.subtotal = 0
self.items = []
else:
self.total = cart_dict["total"]
... | from flask_seguro.products import Products
from flask import current_app as app
class Cart:
def __init__(self, cart_dict=None):
cart_dict = cart_dict or {}
if cart_dict == {}:
self.total = 0
self.subtotal = 0
self.items = []
else:
self.total... | from flask_seguro.products import Products
from flask import current_app as app
class Cart:
def __init__(self, cart_dict={}):
if cart_dict == {}:
self.total = 0
self.subtotal = 0
self.items = []
else:
self.total = cart_dict["total"]
self... | <commit_before>from flask_seguro.products import Products
from flask import current_app as app
class Cart:
def __init__(self, cart_dict={}):
if cart_dict == {}:
self.total = 0
self.subtotal = 0
self.items = []
else:
self.total = cart_dict["total"]
... |
45ee803cad9b16351a2d02c7ce9d39a36f8f2480 | stutuz/__init__.py | stutuz/__init__.py | #-*- coding:utf-8 -*-
from __future__ import division
from __future__ import absolute_import
from __future__ import with_statement
from __future__ import print_function
from __future__ import unicode_literals
from logbook import NestedSetup
from flask import Flask, request
from flaskext.babel import Babel, get_locale... | #-*- coding:utf-8 -*-
from __future__ import division
from __future__ import absolute_import
from __future__ import with_statement
from __future__ import print_function
from __future__ import unicode_literals
from logbook import NestedSetup
from flask import Flask, request
from flaskext.babel import Babel, get_locale... | Allow setting locale with a query parameter | Allow setting locale with a query parameter
| Python | bsd-2-clause | dag/stutuz | #-*- coding:utf-8 -*-
from __future__ import division
from __future__ import absolute_import
from __future__ import with_statement
from __future__ import print_function
from __future__ import unicode_literals
from logbook import NestedSetup
from flask import Flask, request
from flaskext.babel import Babel, get_locale... | #-*- coding:utf-8 -*-
from __future__ import division
from __future__ import absolute_import
from __future__ import with_statement
from __future__ import print_function
from __future__ import unicode_literals
from logbook import NestedSetup
from flask import Flask, request
from flaskext.babel import Babel, get_locale... | <commit_before>#-*- coding:utf-8 -*-
from __future__ import division
from __future__ import absolute_import
from __future__ import with_statement
from __future__ import print_function
from __future__ import unicode_literals
from logbook import NestedSetup
from flask import Flask, request
from flaskext.babel import Ba... | #-*- coding:utf-8 -*-
from __future__ import division
from __future__ import absolute_import
from __future__ import with_statement
from __future__ import print_function
from __future__ import unicode_literals
from logbook import NestedSetup
from flask import Flask, request
from flaskext.babel import Babel, get_locale... | #-*- coding:utf-8 -*-
from __future__ import division
from __future__ import absolute_import
from __future__ import with_statement
from __future__ import print_function
from __future__ import unicode_literals
from logbook import NestedSetup
from flask import Flask, request
from flaskext.babel import Babel, get_locale... | <commit_before>#-*- coding:utf-8 -*-
from __future__ import division
from __future__ import absolute_import
from __future__ import with_statement
from __future__ import print_function
from __future__ import unicode_literals
from logbook import NestedSetup
from flask import Flask, request
from flaskext.babel import Ba... |
ae8a91dbfb657ba2ac4f1ef9aa89c8b8ba25cde2 | wsgi_intercept/requests_intercept.py | wsgi_intercept/requests_intercept.py | """Intercept HTTP connections that use `requests <http://docs.python-requests.org/en/latest/>`_.
"""
from . import WSGI_HTTPConnection, wsgi_fake_socket
from requests.packages.urllib3.connectionpool import (HTTPConnectionPool,
HTTPSConnectionPool)
from requests.packages.urllib3.connection import (HTTPConnectio... | """Intercept HTTP connections that use `requests <http://docs.python-requests.org/en/latest/>`_.
"""
from . import WSGI_HTTPConnection, WSGI_HTTPSConnection, wsgi_fake_socket
from requests.packages.urllib3.connectionpool import (HTTPConnectionPool,
HTTPSConnectionPool)
from requests.packages.urllib3.connection... | Fix the interceptor installation for HTTPSConnection. | Fix the interceptor installation for HTTPSConnection.
| Python | mit | cdent/wsgi-intercept,sileht/python3-wsgi-intercept | """Intercept HTTP connections that use `requests <http://docs.python-requests.org/en/latest/>`_.
"""
from . import WSGI_HTTPConnection, wsgi_fake_socket
from requests.packages.urllib3.connectionpool import (HTTPConnectionPool,
HTTPSConnectionPool)
from requests.packages.urllib3.connection import (HTTPConnectio... | """Intercept HTTP connections that use `requests <http://docs.python-requests.org/en/latest/>`_.
"""
from . import WSGI_HTTPConnection, WSGI_HTTPSConnection, wsgi_fake_socket
from requests.packages.urllib3.connectionpool import (HTTPConnectionPool,
HTTPSConnectionPool)
from requests.packages.urllib3.connection... | <commit_before>"""Intercept HTTP connections that use `requests <http://docs.python-requests.org/en/latest/>`_.
"""
from . import WSGI_HTTPConnection, wsgi_fake_socket
from requests.packages.urllib3.connectionpool import (HTTPConnectionPool,
HTTPSConnectionPool)
from requests.packages.urllib3.connection import... | """Intercept HTTP connections that use `requests <http://docs.python-requests.org/en/latest/>`_.
"""
from . import WSGI_HTTPConnection, WSGI_HTTPSConnection, wsgi_fake_socket
from requests.packages.urllib3.connectionpool import (HTTPConnectionPool,
HTTPSConnectionPool)
from requests.packages.urllib3.connection... | """Intercept HTTP connections that use `requests <http://docs.python-requests.org/en/latest/>`_.
"""
from . import WSGI_HTTPConnection, wsgi_fake_socket
from requests.packages.urllib3.connectionpool import (HTTPConnectionPool,
HTTPSConnectionPool)
from requests.packages.urllib3.connection import (HTTPConnectio... | <commit_before>"""Intercept HTTP connections that use `requests <http://docs.python-requests.org/en/latest/>`_.
"""
from . import WSGI_HTTPConnection, wsgi_fake_socket
from requests.packages.urllib3.connectionpool import (HTTPConnectionPool,
HTTPSConnectionPool)
from requests.packages.urllib3.connection import... |
8bfe6e791228ccbc3143f3a8747c68d2e8b0cbb5 | runtests.py | runtests.py | #!/usr/bin/env python
from django.conf import settings
from django.core.management import execute_from_command_line
import django
import os
import sys
if not settings.configured:
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "testproj.settings")
django.setup()
module_root = os.path.dirname(os.path.realp... | #!/usr/bin/env python
from django.conf import settings
from django.core.management import execute_from_command_line
import django
import os
import sys
if not settings.configured:
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "testproj.settings")
if django.VERSION >= (1,7):
django.setup()
module_... | Fix running tests on lower Django versions | Fix running tests on lower Django versions
| Python | apache-2.0 | AdrianLC/django-parler-rest,edoburu/django-parler-rest | #!/usr/bin/env python
from django.conf import settings
from django.core.management import execute_from_command_line
import django
import os
import sys
if not settings.configured:
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "testproj.settings")
django.setup()
module_root = os.path.dirname(os.path.realp... | #!/usr/bin/env python
from django.conf import settings
from django.core.management import execute_from_command_line
import django
import os
import sys
if not settings.configured:
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "testproj.settings")
if django.VERSION >= (1,7):
django.setup()
module_... | <commit_before>#!/usr/bin/env python
from django.conf import settings
from django.core.management import execute_from_command_line
import django
import os
import sys
if not settings.configured:
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "testproj.settings")
django.setup()
module_root = os.path.dirnam... | #!/usr/bin/env python
from django.conf import settings
from django.core.management import execute_from_command_line
import django
import os
import sys
if not settings.configured:
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "testproj.settings")
if django.VERSION >= (1,7):
django.setup()
module_... | #!/usr/bin/env python
from django.conf import settings
from django.core.management import execute_from_command_line
import django
import os
import sys
if not settings.configured:
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "testproj.settings")
django.setup()
module_root = os.path.dirname(os.path.realp... | <commit_before>#!/usr/bin/env python
from django.conf import settings
from django.core.management import execute_from_command_line
import django
import os
import sys
if not settings.configured:
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "testproj.settings")
django.setup()
module_root = os.path.dirnam... |
b6836dd7bccd40eec146bc034cc8ac83b4e7f16a | runtests.py | runtests.py | #!/usr/bin/env python
import sys
import os
from coverage import coverage
from optparse import OptionParser
# This envar must be set before importing NoseTestSuiteRunner,
# silence flake8 E402 ("module level import not at top of file").
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_settings")
from django_nose i... | #!/usr/bin/env python
import sys
import os
from coverage import coverage
from optparse import OptionParser
# This envar must be set before importing NoseTestSuiteRunner,
# silence flake8 E402 ("module level import not at top of file").
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_settings")
from django_nose i... | Extend sys.path with required paths from edx-platform submodule | Extend sys.path with required paths from edx-platform submodule
| Python | agpl-3.0 | hastexo/edx-shopify,fghaas/edx-shopify | #!/usr/bin/env python
import sys
import os
from coverage import coverage
from optparse import OptionParser
# This envar must be set before importing NoseTestSuiteRunner,
# silence flake8 E402 ("module level import not at top of file").
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_settings")
from django_nose i... | #!/usr/bin/env python
import sys
import os
from coverage import coverage
from optparse import OptionParser
# This envar must be set before importing NoseTestSuiteRunner,
# silence flake8 E402 ("module level import not at top of file").
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_settings")
from django_nose i... | <commit_before>#!/usr/bin/env python
import sys
import os
from coverage import coverage
from optparse import OptionParser
# This envar must be set before importing NoseTestSuiteRunner,
# silence flake8 E402 ("module level import not at top of file").
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_settings")
fro... | #!/usr/bin/env python
import sys
import os
from coverage import coverage
from optparse import OptionParser
# This envar must be set before importing NoseTestSuiteRunner,
# silence flake8 E402 ("module level import not at top of file").
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_settings")
from django_nose i... | #!/usr/bin/env python
import sys
import os
from coverage import coverage
from optparse import OptionParser
# This envar must be set before importing NoseTestSuiteRunner,
# silence flake8 E402 ("module level import not at top of file").
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_settings")
from django_nose i... | <commit_before>#!/usr/bin/env python
import sys
import os
from coverage import coverage
from optparse import OptionParser
# This envar must be set before importing NoseTestSuiteRunner,
# silence flake8 E402 ("module level import not at top of file").
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_settings")
fro... |
c69ea05755ecdc6fc0c05e39e5746445376d163a | provision/setup.py | provision/setup.py | from setuptools import setup, find_packages
setup(
name='acc_provision',
version='1.9.6',
description='Tool to provision ACI for ACI Containers Controller',
author="Cisco Systems, Inc.",
author_email="apicapi@noironetworks.com",
url='http://github.com/noironetworks/aci-containers/',
license... | from setuptools import setup, find_packages
setup(
name='acc_provision',
version='1.9.7',
description='Tool to provision ACI for ACI Containers Controller',
author="Cisco Systems, Inc.",
author_email="apicapi@noironetworks.com",
url='http://github.com/noironetworks/aci-containers/',
license... | Update acc-provision version to 1.9.7 | Update acc-provision version to 1.9.7
| Python | apache-2.0 | noironetworks/aci-containers,noironetworks/aci-containers | from setuptools import setup, find_packages
setup(
name='acc_provision',
version='1.9.6',
description='Tool to provision ACI for ACI Containers Controller',
author="Cisco Systems, Inc.",
author_email="apicapi@noironetworks.com",
url='http://github.com/noironetworks/aci-containers/',
license... | from setuptools import setup, find_packages
setup(
name='acc_provision',
version='1.9.7',
description='Tool to provision ACI for ACI Containers Controller',
author="Cisco Systems, Inc.",
author_email="apicapi@noironetworks.com",
url='http://github.com/noironetworks/aci-containers/',
license... | <commit_before>from setuptools import setup, find_packages
setup(
name='acc_provision',
version='1.9.6',
description='Tool to provision ACI for ACI Containers Controller',
author="Cisco Systems, Inc.",
author_email="apicapi@noironetworks.com",
url='http://github.com/noironetworks/aci-containers... | from setuptools import setup, find_packages
setup(
name='acc_provision',
version='1.9.7',
description='Tool to provision ACI for ACI Containers Controller',
author="Cisco Systems, Inc.",
author_email="apicapi@noironetworks.com",
url='http://github.com/noironetworks/aci-containers/',
license... | from setuptools import setup, find_packages
setup(
name='acc_provision',
version='1.9.6',
description='Tool to provision ACI for ACI Containers Controller',
author="Cisco Systems, Inc.",
author_email="apicapi@noironetworks.com",
url='http://github.com/noironetworks/aci-containers/',
license... | <commit_before>from setuptools import setup, find_packages
setup(
name='acc_provision',
version='1.9.6',
description='Tool to provision ACI for ACI Containers Controller',
author="Cisco Systems, Inc.",
author_email="apicapi@noironetworks.com",
url='http://github.com/noironetworks/aci-containers... |
bde09206bf308167a11bcb012753d10d845dc810 | test_project/blog/models.py | test_project/blog/models.py | from django.db import models
from django.contrib.auth.models import User
class Entry(models.Model):
content = models.TextField()
author = models.ForeignKey(User)
created = models.DateTimeField()
class Comment(models.Model):
post = models.ForeignKey(Entry, related_name='comments')
content = model... | from django.db import models
from django.contrib.auth.models import User
class Entry(models.Model):
content = models.TextField()
author = models.ForeignKey(User)
created = models.DateTimeField()
class Comment(models.Model):
post = models.ForeignKey(Entry, related_name='comments')
content = model... | Create SmartTag model to demonstrate multi-word resource names. | Create SmartTag model to demonstrate multi-word resource names.
| Python | bsd-3-clause | juanique/django-chocolate,juanique/django-chocolate,juanique/django-chocolate | from django.db import models
from django.contrib.auth.models import User
class Entry(models.Model):
content = models.TextField()
author = models.ForeignKey(User)
created = models.DateTimeField()
class Comment(models.Model):
post = models.ForeignKey(Entry, related_name='comments')
content = model... | from django.db import models
from django.contrib.auth.models import User
class Entry(models.Model):
content = models.TextField()
author = models.ForeignKey(User)
created = models.DateTimeField()
class Comment(models.Model):
post = models.ForeignKey(Entry, related_name='comments')
content = model... | <commit_before>from django.db import models
from django.contrib.auth.models import User
class Entry(models.Model):
content = models.TextField()
author = models.ForeignKey(User)
created = models.DateTimeField()
class Comment(models.Model):
post = models.ForeignKey(Entry, related_name='comments')
... | from django.db import models
from django.contrib.auth.models import User
class Entry(models.Model):
content = models.TextField()
author = models.ForeignKey(User)
created = models.DateTimeField()
class Comment(models.Model):
post = models.ForeignKey(Entry, related_name='comments')
content = model... | from django.db import models
from django.contrib.auth.models import User
class Entry(models.Model):
content = models.TextField()
author = models.ForeignKey(User)
created = models.DateTimeField()
class Comment(models.Model):
post = models.ForeignKey(Entry, related_name='comments')
content = model... | <commit_before>from django.db import models
from django.contrib.auth.models import User
class Entry(models.Model):
content = models.TextField()
author = models.ForeignKey(User)
created = models.DateTimeField()
class Comment(models.Model):
post = models.ForeignKey(Entry, related_name='comments')
... |
f35163ad752a52983d7d5ff9bfd383e98db06f0b | tests/test_pycookiecheat.py | tests/test_pycookiecheat.py | # -*- coding: utf-8 -*-
"""
test_pycookiecheat
----------------------------------
Tests for `pycookiecheat` module.
"""
from pycookiecheat import chrome_cookies
from uuid import uuid4
import pytest
def test_raises_on_empty():
with pytest.raises(TypeError):
broken = chrome_cookies()
def test_no_cookies(... | # -*- coding: utf-8 -*-
"""
test_pycookiecheat
----------------------------------
Tests for `pycookiecheat` module.
"""
from pycookiecheat import chrome_cookies
from uuid import uuid4
import pytest
import os
def test_raises_on_empty():
with pytest.raises(TypeError):
broken = chrome_cookies()
def test... | Test for travis-CI and skip tests accordingly. | Test for travis-CI and skip tests accordingly.
| Python | mit | fxxkhand/pycookiecheat,n8henrie/pycookiecheat | # -*- coding: utf-8 -*-
"""
test_pycookiecheat
----------------------------------
Tests for `pycookiecheat` module.
"""
from pycookiecheat import chrome_cookies
from uuid import uuid4
import pytest
def test_raises_on_empty():
with pytest.raises(TypeError):
broken = chrome_cookies()
def test_no_cookies(... | # -*- coding: utf-8 -*-
"""
test_pycookiecheat
----------------------------------
Tests for `pycookiecheat` module.
"""
from pycookiecheat import chrome_cookies
from uuid import uuid4
import pytest
import os
def test_raises_on_empty():
with pytest.raises(TypeError):
broken = chrome_cookies()
def test... | <commit_before># -*- coding: utf-8 -*-
"""
test_pycookiecheat
----------------------------------
Tests for `pycookiecheat` module.
"""
from pycookiecheat import chrome_cookies
from uuid import uuid4
import pytest
def test_raises_on_empty():
with pytest.raises(TypeError):
broken = chrome_cookies()
def t... | # -*- coding: utf-8 -*-
"""
test_pycookiecheat
----------------------------------
Tests for `pycookiecheat` module.
"""
from pycookiecheat import chrome_cookies
from uuid import uuid4
import pytest
import os
def test_raises_on_empty():
with pytest.raises(TypeError):
broken = chrome_cookies()
def test... | # -*- coding: utf-8 -*-
"""
test_pycookiecheat
----------------------------------
Tests for `pycookiecheat` module.
"""
from pycookiecheat import chrome_cookies
from uuid import uuid4
import pytest
def test_raises_on_empty():
with pytest.raises(TypeError):
broken = chrome_cookies()
def test_no_cookies(... | <commit_before># -*- coding: utf-8 -*-
"""
test_pycookiecheat
----------------------------------
Tests for `pycookiecheat` module.
"""
from pycookiecheat import chrome_cookies
from uuid import uuid4
import pytest
def test_raises_on_empty():
with pytest.raises(TypeError):
broken = chrome_cookies()
def t... |
a1f118f2d4068d0aeffc1b02efcd7337de6ffab1 | tests/run_tests.py | tests/run_tests.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import nose
def start(argv=None):
sys.exitfunc = lambda: sys.stderr.write('Shutting down...\n')
if argv is None:
argv = [
'nosetests',
'--verbose',
'--with-coverage',
'--cover-html', '-... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import nose
import logging
logging.disable(logging.DEBUG) # Disable debug logging when running the test suite.
def start(argv=None):
sys.exitfunc = lambda: sys.stderr.write('Shutting down...\n')
if argv is None:
argv = [
... | Disable debug logging when running the test suite | Disable debug logging when running the test suite
| Python | mit | inonit/django-chemtrails,inonit/django-chemtrails,inonit/django-chemtrails | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import nose
def start(argv=None):
sys.exitfunc = lambda: sys.stderr.write('Shutting down...\n')
if argv is None:
argv = [
'nosetests',
'--verbose',
'--with-coverage',
'--cover-html', '-... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import nose
import logging
logging.disable(logging.DEBUG) # Disable debug logging when running the test suite.
def start(argv=None):
sys.exitfunc = lambda: sys.stderr.write('Shutting down...\n')
if argv is None:
argv = [
... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import nose
def start(argv=None):
sys.exitfunc = lambda: sys.stderr.write('Shutting down...\n')
if argv is None:
argv = [
'nosetests',
'--verbose',
'--with-coverage',
'--... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import nose
import logging
logging.disable(logging.DEBUG) # Disable debug logging when running the test suite.
def start(argv=None):
sys.exitfunc = lambda: sys.stderr.write('Shutting down...\n')
if argv is None:
argv = [
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import nose
def start(argv=None):
sys.exitfunc = lambda: sys.stderr.write('Shutting down...\n')
if argv is None:
argv = [
'nosetests',
'--verbose',
'--with-coverage',
'--cover-html', '-... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import nose
def start(argv=None):
sys.exitfunc = lambda: sys.stderr.write('Shutting down...\n')
if argv is None:
argv = [
'nosetests',
'--verbose',
'--with-coverage',
'--... |
5b282d9322a676b4185fcd253f338a342ec5e5ce | .config/i3/py3status/playerctlbar.py | .config/i3/py3status/playerctlbar.py | # py3status module for playerctl
import subprocess
def run(*cmdlist):
return subprocess.run(cmdlist, stdout=subprocess.PIPE).stdout.decode()
def player_args(players):
if not players:
return 'playerctl',
else:
return 'playerctl', '-p', players
def get_status(players):
status = run(*pl... | # py3status module for playerctl
import subprocess
def run(*cmdlist):
return subprocess.run(
cmdlist,
stdout=subprocess.PIPE,
stderr=subprocess.DEVNULL).stdout.decode()
def player_args(players):
if not players:
return 'playerctl',
else:
return 'playerct... | Fix stderr from playerctl bar | Fix stderr from playerctl bar
| Python | unlicense | louisswarren/dotfiles,louisswarren/dotfiles | # py3status module for playerctl
import subprocess
def run(*cmdlist):
return subprocess.run(cmdlist, stdout=subprocess.PIPE).stdout.decode()
def player_args(players):
if not players:
return 'playerctl',
else:
return 'playerctl', '-p', players
def get_status(players):
status = run(*pl... | # py3status module for playerctl
import subprocess
def run(*cmdlist):
return subprocess.run(
cmdlist,
stdout=subprocess.PIPE,
stderr=subprocess.DEVNULL).stdout.decode()
def player_args(players):
if not players:
return 'playerctl',
else:
return 'playerct... | <commit_before># py3status module for playerctl
import subprocess
def run(*cmdlist):
return subprocess.run(cmdlist, stdout=subprocess.PIPE).stdout.decode()
def player_args(players):
if not players:
return 'playerctl',
else:
return 'playerctl', '-p', players
def get_status(players):
s... | # py3status module for playerctl
import subprocess
def run(*cmdlist):
return subprocess.run(
cmdlist,
stdout=subprocess.PIPE,
stderr=subprocess.DEVNULL).stdout.decode()
def player_args(players):
if not players:
return 'playerctl',
else:
return 'playerct... | # py3status module for playerctl
import subprocess
def run(*cmdlist):
return subprocess.run(cmdlist, stdout=subprocess.PIPE).stdout.decode()
def player_args(players):
if not players:
return 'playerctl',
else:
return 'playerctl', '-p', players
def get_status(players):
status = run(*pl... | <commit_before># py3status module for playerctl
import subprocess
def run(*cmdlist):
return subprocess.run(cmdlist, stdout=subprocess.PIPE).stdout.decode()
def player_args(players):
if not players:
return 'playerctl',
else:
return 'playerctl', '-p', players
def get_status(players):
s... |
7527ce1b48f769d33eb5ede3d54413e51eb2ac12 | senkumba/models.py | senkumba/models.py | from django.contrib.auth.models import User
def user_new_str(self):
return self.username if self.get_full_name() == "" else self.get_full_name()
# Replace the __str__ method in the User class with our new implementation
User.__str__ = user_new_str | from django.contrib import admin
from django.contrib.auth.models import User
def user_new_str(self):
return self.username if self.get_full_name() == "" else self.get_full_name()
# Replace the __str__ method in the User class with our new implementation
User.__str__ = user_new_str
admin.site.site_header = 'SENK... | Change titles for the site | Change titles for the site
| Python | mit | lubegamark/senkumba | from django.contrib.auth.models import User
def user_new_str(self):
return self.username if self.get_full_name() == "" else self.get_full_name()
# Replace the __str__ method in the User class with our new implementation
User.__str__ = user_new_strChange titles for the site | from django.contrib import admin
from django.contrib.auth.models import User
def user_new_str(self):
return self.username if self.get_full_name() == "" else self.get_full_name()
# Replace the __str__ method in the User class with our new implementation
User.__str__ = user_new_str
admin.site.site_header = 'SENK... | <commit_before>from django.contrib.auth.models import User
def user_new_str(self):
return self.username if self.get_full_name() == "" else self.get_full_name()
# Replace the __str__ method in the User class with our new implementation
User.__str__ = user_new_str<commit_msg>Change titles for the site<commit_afte... | from django.contrib import admin
from django.contrib.auth.models import User
def user_new_str(self):
return self.username if self.get_full_name() == "" else self.get_full_name()
# Replace the __str__ method in the User class with our new implementation
User.__str__ = user_new_str
admin.site.site_header = 'SENK... | from django.contrib.auth.models import User
def user_new_str(self):
return self.username if self.get_full_name() == "" else self.get_full_name()
# Replace the __str__ method in the User class with our new implementation
User.__str__ = user_new_strChange titles for the sitefrom django.contrib import admin
from d... | <commit_before>from django.contrib.auth.models import User
def user_new_str(self):
return self.username if self.get_full_name() == "" else self.get_full_name()
# Replace the __str__ method in the User class with our new implementation
User.__str__ = user_new_str<commit_msg>Change titles for the site<commit_afte... |
d3a203725d13a7abef091f0070f90826d3225dbc | settings_travis.py | settings_travis.py | import ssl
LDAP_SERVER = 'ldap.rserver.de'
LDAP_PORT = 3389
LDAP_SSL_PORT = 6636
LDAP_REQUIRE_CERT = ssl.CERT_NONE
| import ssl
LDAP_SERVER = 'ldap.rserver.de'
LDAP_PORT = 3389
LDAP_SSL_PORT = 6636
LDAP_REQUIRE_CERT = ssl.CERT_NONE
LDAP_TLS_VERSION = ssl.PROTOCOL_TLSv1
| Fix travis unit test for python 3.3 | Fix travis unit test for python 3.3
| Python | bsd-2-clause | rroemhild/flask-ldapconn | import ssl
LDAP_SERVER = 'ldap.rserver.de'
LDAP_PORT = 3389
LDAP_SSL_PORT = 6636
LDAP_REQUIRE_CERT = ssl.CERT_NONE
Fix travis unit test for python 3.3 | import ssl
LDAP_SERVER = 'ldap.rserver.de'
LDAP_PORT = 3389
LDAP_SSL_PORT = 6636
LDAP_REQUIRE_CERT = ssl.CERT_NONE
LDAP_TLS_VERSION = ssl.PROTOCOL_TLSv1
| <commit_before>import ssl
LDAP_SERVER = 'ldap.rserver.de'
LDAP_PORT = 3389
LDAP_SSL_PORT = 6636
LDAP_REQUIRE_CERT = ssl.CERT_NONE
<commit_msg>Fix travis unit test for python 3.3<commit_after> | import ssl
LDAP_SERVER = 'ldap.rserver.de'
LDAP_PORT = 3389
LDAP_SSL_PORT = 6636
LDAP_REQUIRE_CERT = ssl.CERT_NONE
LDAP_TLS_VERSION = ssl.PROTOCOL_TLSv1
| import ssl
LDAP_SERVER = 'ldap.rserver.de'
LDAP_PORT = 3389
LDAP_SSL_PORT = 6636
LDAP_REQUIRE_CERT = ssl.CERT_NONE
Fix travis unit test for python 3.3import ssl
LDAP_SERVER = 'ldap.rserver.de'
LDAP_PORT = 3389
LDAP_SSL_PORT = 6636
LDAP_REQUIRE_CERT = ssl.CERT_NONE
LDAP_TLS_VERSION = ssl.PROTOCOL_TLSv1
| <commit_before>import ssl
LDAP_SERVER = 'ldap.rserver.de'
LDAP_PORT = 3389
LDAP_SSL_PORT = 6636
LDAP_REQUIRE_CERT = ssl.CERT_NONE
<commit_msg>Fix travis unit test for python 3.3<commit_after>import ssl
LDAP_SERVER = 'ldap.rserver.de'
LDAP_PORT = 3389
LDAP_SSL_PORT = 6636
LDAP_REQUIRE_CERT = ssl.CERT_NONE
LDAP_TLS_VER... |
c84e22824cd5546406656ecc06a7dcd37a013954 | shopit_app/urls.py | shopit_app/urls.py | from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
import authentication_app.views
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'gettingstarted.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^$', authentication_a... | from rest_frmaework_nested import routers
from authentication_app.views import AccountViewSet
router = routers.SimpleRouter()
router.register(r'accounts', AccountViewSet)
urlpatterns = patterns('',
# APIendpoints
url(r'^api/v1/', include(router.urls)),
url('^.*$', IndexView.as_view(), name='index'),
)
| Add the API endpoint url for the account view set. | Add the API endpoint url for the account view set.
| Python | mit | mvpgomes/shopit-app,mvpgomes/shopit-app,mvpgomes/shopit-app,mvpgomes/shopit-app | from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
import authentication_app.views
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'gettingstarted.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^$', authentication_a... | from rest_frmaework_nested import routers
from authentication_app.views import AccountViewSet
router = routers.SimpleRouter()
router.register(r'accounts', AccountViewSet)
urlpatterns = patterns('',
# APIendpoints
url(r'^api/v1/', include(router.urls)),
url('^.*$', IndexView.as_view(), name='index'),
)
| <commit_before>from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
import authentication_app.views
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'gettingstarted.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^$', a... | from rest_frmaework_nested import routers
from authentication_app.views import AccountViewSet
router = routers.SimpleRouter()
router.register(r'accounts', AccountViewSet)
urlpatterns = patterns('',
# APIendpoints
url(r'^api/v1/', include(router.urls)),
url('^.*$', IndexView.as_view(), name='index'),
)
| from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
import authentication_app.views
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'gettingstarted.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^$', authentication_a... | <commit_before>from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
import authentication_app.views
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'gettingstarted.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^$', a... |
f896d0fa40250a580fee584217c5a4c1d39d7388 | snipper/snippet.py | snipper/snippet.py | import os
from os import path
import glob
import json
import subprocess
class Snippet(object):
def __init__(self, config, username, snippet_id):
self.config = config
self.username = username
self.snippet_id = snippet_id
repo_parent = path.join(self.config.get('snippet_home'), use... | import os
from os import path
import glob
import json
import subprocess
class Snippet(object):
def __init__(self, config, username, snippet_id):
self.config = config
self.username = username
self.snippet_id = snippet_id
repo_parent = path.join(self.config.get('snippet_home'), use... | Add doc string to Snippet.get_files | Add doc string to Snippet.get_files
| Python | mit | mesuutt/snipper | import os
from os import path
import glob
import json
import subprocess
class Snippet(object):
def __init__(self, config, username, snippet_id):
self.config = config
self.username = username
self.snippet_id = snippet_id
repo_parent = path.join(self.config.get('snippet_home'), use... | import os
from os import path
import glob
import json
import subprocess
class Snippet(object):
def __init__(self, config, username, snippet_id):
self.config = config
self.username = username
self.snippet_id = snippet_id
repo_parent = path.join(self.config.get('snippet_home'), use... | <commit_before>import os
from os import path
import glob
import json
import subprocess
class Snippet(object):
def __init__(self, config, username, snippet_id):
self.config = config
self.username = username
self.snippet_id = snippet_id
repo_parent = path.join(self.config.get('snip... | import os
from os import path
import glob
import json
import subprocess
class Snippet(object):
def __init__(self, config, username, snippet_id):
self.config = config
self.username = username
self.snippet_id = snippet_id
repo_parent = path.join(self.config.get('snippet_home'), use... | import os
from os import path
import glob
import json
import subprocess
class Snippet(object):
def __init__(self, config, username, snippet_id):
self.config = config
self.username = username
self.snippet_id = snippet_id
repo_parent = path.join(self.config.get('snippet_home'), use... | <commit_before>import os
from os import path
import glob
import json
import subprocess
class Snippet(object):
def __init__(self, config, username, snippet_id):
self.config = config
self.username = username
self.snippet_id = snippet_id
repo_parent = path.join(self.config.get('snip... |
9d2124e81e62ab508de197aac4f29193ef15d4d2 | requirejs/utils.py | requirejs/utils.py | from django.conf import settings
import django
def get_app_template_dirs():
if django.VERSION < (1, 8):
# noinspection PyUnresolvedReferences
from django.template.loaders.app_directories import app_template_dirs
else: # Django 1.8's template loader is refactored
# noinspection PyUnres... | from django.conf import settings
import django
def get_app_template_dirs():
if django.VERSION < (1, 8):
# noinspection PyUnresolvedReferences
from django.template.loaders.app_directories import app_template_dirs
else: # Django 1.8's template loader is refactored
# noinspection PyUnres... | Fix list concatenation error in Django 1.6 | Fix list concatenation error in Django 1.6
`app_template_dirs` returns a Tuple which cannot be concatenated with
List.
| Python | mit | bpeschier/django-compressor-requirejs,bpeschier/django-compressor-requirejs | from django.conf import settings
import django
def get_app_template_dirs():
if django.VERSION < (1, 8):
# noinspection PyUnresolvedReferences
from django.template.loaders.app_directories import app_template_dirs
else: # Django 1.8's template loader is refactored
# noinspection PyUnres... | from django.conf import settings
import django
def get_app_template_dirs():
if django.VERSION < (1, 8):
# noinspection PyUnresolvedReferences
from django.template.loaders.app_directories import app_template_dirs
else: # Django 1.8's template loader is refactored
# noinspection PyUnres... | <commit_before>from django.conf import settings
import django
def get_app_template_dirs():
if django.VERSION < (1, 8):
# noinspection PyUnresolvedReferences
from django.template.loaders.app_directories import app_template_dirs
else: # Django 1.8's template loader is refactored
# noins... | from django.conf import settings
import django
def get_app_template_dirs():
if django.VERSION < (1, 8):
# noinspection PyUnresolvedReferences
from django.template.loaders.app_directories import app_template_dirs
else: # Django 1.8's template loader is refactored
# noinspection PyUnres... | from django.conf import settings
import django
def get_app_template_dirs():
if django.VERSION < (1, 8):
# noinspection PyUnresolvedReferences
from django.template.loaders.app_directories import app_template_dirs
else: # Django 1.8's template loader is refactored
# noinspection PyUnres... | <commit_before>from django.conf import settings
import django
def get_app_template_dirs():
if django.VERSION < (1, 8):
# noinspection PyUnresolvedReferences
from django.template.loaders.app_directories import app_template_dirs
else: # Django 1.8's template loader is refactored
# noins... |
bc15058cc95916788250d660d5560b69a82e0b89 | warehouse/__main__.py | warehouse/__main__.py | from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from warehouse import script
def main():
script.run()
if __name__ == "__main__":
main()
| from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
import sys
from flask.ext.script import InvalidCommand # pylint: disable=E0611,F0401
from warehouse import script
def main():
# This is copied over from script.run and modified for Warehouse
try:... | Customize the command runner for cleaner output | Customize the command runner for cleaner output
| Python | bsd-2-clause | davidfischer/warehouse | from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from warehouse import script
def main():
script.run()
if __name__ == "__main__":
main()
Customize the command runner for cleaner output | from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
import sys
from flask.ext.script import InvalidCommand # pylint: disable=E0611,F0401
from warehouse import script
def main():
# This is copied over from script.run and modified for Warehouse
try:... | <commit_before>from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from warehouse import script
def main():
script.run()
if __name__ == "__main__":
main()
<commit_msg>Customize the command runner for cleaner output<commit_after> | from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
import sys
from flask.ext.script import InvalidCommand # pylint: disable=E0611,F0401
from warehouse import script
def main():
# This is copied over from script.run and modified for Warehouse
try:... | from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from warehouse import script
def main():
script.run()
if __name__ == "__main__":
main()
Customize the command runner for cleaner outputfrom __future__ import absolute_import
from __future__ import... | <commit_before>from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from warehouse import script
def main():
script.run()
if __name__ == "__main__":
main()
<commit_msg>Customize the command runner for cleaner output<commit_after>from __future__ impo... |
0f1f7963c2ea80604593644e1c04643031561970 | app/timetables/migrations/0004_course.py | app/timetables/migrations/0004_course.py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-08-30 19:59
from __future__ import unicode_literals
import common.mixins
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('timetables', '0003_mealoption'),
]
operations = [
migra... | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-08-30 19:59
from __future__ import unicode_literals
import common.mixins
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('timetables', '0003_mealoption'),
]
operations = [
migra... | Remove reference to ForceCapitalizeMixin from migration file and update with SlugifyMixin | Remove reference to ForceCapitalizeMixin from migration file and update with SlugifyMixin
| Python | mit | teamtaverna/core | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-08-30 19:59
from __future__ import unicode_literals
import common.mixins
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('timetables', '0003_mealoption'),
]
operations = [
migra... | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-08-30 19:59
from __future__ import unicode_literals
import common.mixins
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('timetables', '0003_mealoption'),
]
operations = [
migra... | <commit_before># -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-08-30 19:59
from __future__ import unicode_literals
import common.mixins
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('timetables', '0003_mealoption'),
]
operations = ... | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-08-30 19:59
from __future__ import unicode_literals
import common.mixins
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('timetables', '0003_mealoption'),
]
operations = [
migra... | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-08-30 19:59
from __future__ import unicode_literals
import common.mixins
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('timetables', '0003_mealoption'),
]
operations = [
migra... | <commit_before># -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-08-30 19:59
from __future__ import unicode_literals
import common.mixins
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('timetables', '0003_mealoption'),
]
operations = ... |
a57f7c43bc7749de5acd42b6db95d77074308cef | scaper/__init__.py | scaper/__init__.py | #!/usr/bin/env python
"""Top-level module for scaper"""
from .core import *
__version__ = '0.1.0'
| #!/usr/bin/env python
"""Top-level module for scaper"""
from .core import *
import jams
from pkg_resources import resource_filename
__version__ = '0.1.0'
# Add sound_event namesapce
namespace_file = resource_filename(__name__, 'namespaces/sound_event.json')
jams.schema.add_namespace(namespace_file)
| Add sound_event namespace to jams during init | Add sound_event namespace to jams during init
| Python | bsd-3-clause | justinsalamon/scaper | #!/usr/bin/env python
"""Top-level module for scaper"""
from .core import *
__version__ = '0.1.0'
Add sound_event namespace to jams during init | #!/usr/bin/env python
"""Top-level module for scaper"""
from .core import *
import jams
from pkg_resources import resource_filename
__version__ = '0.1.0'
# Add sound_event namesapce
namespace_file = resource_filename(__name__, 'namespaces/sound_event.json')
jams.schema.add_namespace(namespace_file)
| <commit_before>#!/usr/bin/env python
"""Top-level module for scaper"""
from .core import *
__version__ = '0.1.0'
<commit_msg>Add sound_event namespace to jams during init<commit_after> | #!/usr/bin/env python
"""Top-level module for scaper"""
from .core import *
import jams
from pkg_resources import resource_filename
__version__ = '0.1.0'
# Add sound_event namesapce
namespace_file = resource_filename(__name__, 'namespaces/sound_event.json')
jams.schema.add_namespace(namespace_file)
| #!/usr/bin/env python
"""Top-level module for scaper"""
from .core import *
__version__ = '0.1.0'
Add sound_event namespace to jams during init#!/usr/bin/env python
"""Top-level module for scaper"""
from .core import *
import jams
from pkg_resources import resource_filename
__version__ = '0.1.0'
# Add sound_even... | <commit_before>#!/usr/bin/env python
"""Top-level module for scaper"""
from .core import *
__version__ = '0.1.0'
<commit_msg>Add sound_event namespace to jams during init<commit_after>#!/usr/bin/env python
"""Top-level module for scaper"""
from .core import *
import jams
from pkg_resources import resource_filename... |
4c50bd3088451a8d0c81d651f287c1e4652aea8d | app/gdn/manage.py | app/gdn/manage.py | from flask.ext.script import Manager
from flask.ext.migrate import MigrateCommand
from models import *
from . import app
manager = Manager(app)
manager.add_command('db', MigrateCommand)
@manager.command
def run():
from tornado.wsgi import WSGIContainer
from tornado.httpserver import HTTPServer
from tornado.ioloo... | from flask.ext.script import Manager
from flask.ext.migrate import MigrateCommand
from models import *
from . import app
manager = Manager(app)
manager.add_command('db', MigrateCommand)
@manager.command
def run():
from tornado.wsgi import WSGIContainer
from tornado.httpserver import HTTPServer
from tornado.ioloo... | Fix debug server not working | Fix debug server not working
| Python | mpl-2.0 | MCProHosting/SpaceGDN,MCProHosting/SpaceGDN,XereoNet/SpaceGDN,MCProHosting/SpaceGDN,XereoNet/SpaceGDN,XereoNet/SpaceGDN | from flask.ext.script import Manager
from flask.ext.migrate import MigrateCommand
from models import *
from . import app
manager = Manager(app)
manager.add_command('db', MigrateCommand)
@manager.command
def run():
from tornado.wsgi import WSGIContainer
from tornado.httpserver import HTTPServer
from tornado.ioloo... | from flask.ext.script import Manager
from flask.ext.migrate import MigrateCommand
from models import *
from . import app
manager = Manager(app)
manager.add_command('db', MigrateCommand)
@manager.command
def run():
from tornado.wsgi import WSGIContainer
from tornado.httpserver import HTTPServer
from tornado.ioloo... | <commit_before>from flask.ext.script import Manager
from flask.ext.migrate import MigrateCommand
from models import *
from . import app
manager = Manager(app)
manager.add_command('db', MigrateCommand)
@manager.command
def run():
from tornado.wsgi import WSGIContainer
from tornado.httpserver import HTTPServer
fro... | from flask.ext.script import Manager
from flask.ext.migrate import MigrateCommand
from models import *
from . import app
manager = Manager(app)
manager.add_command('db', MigrateCommand)
@manager.command
def run():
from tornado.wsgi import WSGIContainer
from tornado.httpserver import HTTPServer
from tornado.ioloo... | from flask.ext.script import Manager
from flask.ext.migrate import MigrateCommand
from models import *
from . import app
manager = Manager(app)
manager.add_command('db', MigrateCommand)
@manager.command
def run():
from tornado.wsgi import WSGIContainer
from tornado.httpserver import HTTPServer
from tornado.ioloo... | <commit_before>from flask.ext.script import Manager
from flask.ext.migrate import MigrateCommand
from models import *
from . import app
manager = Manager(app)
manager.add_command('db', MigrateCommand)
@manager.command
def run():
from tornado.wsgi import WSGIContainer
from tornado.httpserver import HTTPServer
fro... |
b62c8c905cdd332a0073ce462be3e5c5b17b282d | api/webview/views.py | api/webview/views.py | from rest_framework import generics
from rest_framework import permissions
from rest_framework.response import Response
from rest_framework.decorators import api_view
from django.views.decorators.clickjacking import xframe_options_exempt
from api.webview.models import Document
from api.webview.serializers import Docum... | from rest_framework import generics
from rest_framework import permissions
from rest_framework.response import Response
from rest_framework.decorators import api_view
from django.views.decorators.clickjacking import xframe_options_exempt
from api.webview.models import Document
from api.webview.serializers import Docum... | Make the view List only remove Create | Make the view List only remove Create
| Python | apache-2.0 | erinspace/scrapi,CenterForOpenScience/scrapi,felliott/scrapi,fabianvf/scrapi,erinspace/scrapi,CenterForOpenScience/scrapi,fabianvf/scrapi,felliott/scrapi | from rest_framework import generics
from rest_framework import permissions
from rest_framework.response import Response
from rest_framework.decorators import api_view
from django.views.decorators.clickjacking import xframe_options_exempt
from api.webview.models import Document
from api.webview.serializers import Docum... | from rest_framework import generics
from rest_framework import permissions
from rest_framework.response import Response
from rest_framework.decorators import api_view
from django.views.decorators.clickjacking import xframe_options_exempt
from api.webview.models import Document
from api.webview.serializers import Docum... | <commit_before>from rest_framework import generics
from rest_framework import permissions
from rest_framework.response import Response
from rest_framework.decorators import api_view
from django.views.decorators.clickjacking import xframe_options_exempt
from api.webview.models import Document
from api.webview.serialize... | from rest_framework import generics
from rest_framework import permissions
from rest_framework.response import Response
from rest_framework.decorators import api_view
from django.views.decorators.clickjacking import xframe_options_exempt
from api.webview.models import Document
from api.webview.serializers import Docum... | from rest_framework import generics
from rest_framework import permissions
from rest_framework.response import Response
from rest_framework.decorators import api_view
from django.views.decorators.clickjacking import xframe_options_exempt
from api.webview.models import Document
from api.webview.serializers import Docum... | <commit_before>from rest_framework import generics
from rest_framework import permissions
from rest_framework.response import Response
from rest_framework.decorators import api_view
from django.views.decorators.clickjacking import xframe_options_exempt
from api.webview.models import Document
from api.webview.serialize... |
067b557258a85945635a880ced65454cfa2b61af | supermega/tests/test_session.py | supermega/tests/test_session.py | import unittest
import hashlib
from .. import Session
from .. import models
class TestSession(unittest.TestCase):
def setUp(self):
self.sess = Session()
def test_public_file_download(self):
url = 'https://mega.co.nz/#!2ctGgQAI!AkJMowjRiXVcSrRLn3d-e1vl47ZxZEK0CbrHGIKFY-E'
sha256 = '9431103cb989f2913cbc5037670... | import unittest
import hashlib
from .. import Session
from .. import models
class TestSession(unittest.TestCase):
def setUp(self):
self.sess = Session()
def test_public_file_download(self):
url = 'https://mega.co.nz/#!2ctGgQAI!AkJMowjRiXVcSrRLn3d-e1vl47ZxZEK0CbrHGIKFY-E'
sha256 = '9431103cb989f2913cbc5037670... | Add test for key derivation | Add test for key derivation
| Python | bsd-3-clause | lmb/Supermega | import unittest
import hashlib
from .. import Session
from .. import models
class TestSession(unittest.TestCase):
def setUp(self):
self.sess = Session()
def test_public_file_download(self):
url = 'https://mega.co.nz/#!2ctGgQAI!AkJMowjRiXVcSrRLn3d-e1vl47ZxZEK0CbrHGIKFY-E'
sha256 = '9431103cb989f2913cbc5037670... | import unittest
import hashlib
from .. import Session
from .. import models
class TestSession(unittest.TestCase):
def setUp(self):
self.sess = Session()
def test_public_file_download(self):
url = 'https://mega.co.nz/#!2ctGgQAI!AkJMowjRiXVcSrRLn3d-e1vl47ZxZEK0CbrHGIKFY-E'
sha256 = '9431103cb989f2913cbc5037670... | <commit_before>import unittest
import hashlib
from .. import Session
from .. import models
class TestSession(unittest.TestCase):
def setUp(self):
self.sess = Session()
def test_public_file_download(self):
url = 'https://mega.co.nz/#!2ctGgQAI!AkJMowjRiXVcSrRLn3d-e1vl47ZxZEK0CbrHGIKFY-E'
sha256 = '9431103cb989... | import unittest
import hashlib
from .. import Session
from .. import models
class TestSession(unittest.TestCase):
def setUp(self):
self.sess = Session()
def test_public_file_download(self):
url = 'https://mega.co.nz/#!2ctGgQAI!AkJMowjRiXVcSrRLn3d-e1vl47ZxZEK0CbrHGIKFY-E'
sha256 = '9431103cb989f2913cbc5037670... | import unittest
import hashlib
from .. import Session
from .. import models
class TestSession(unittest.TestCase):
def setUp(self):
self.sess = Session()
def test_public_file_download(self):
url = 'https://mega.co.nz/#!2ctGgQAI!AkJMowjRiXVcSrRLn3d-e1vl47ZxZEK0CbrHGIKFY-E'
sha256 = '9431103cb989f2913cbc5037670... | <commit_before>import unittest
import hashlib
from .. import Session
from .. import models
class TestSession(unittest.TestCase):
def setUp(self):
self.sess = Session()
def test_public_file_download(self):
url = 'https://mega.co.nz/#!2ctGgQAI!AkJMowjRiXVcSrRLn3d-e1vl47ZxZEK0CbrHGIKFY-E'
sha256 = '9431103cb989... |
bbfe056602075a46b231dc28ddcada7f525ce927 | conftest.py | conftest.py | import pytest
import django_webtest
from django.core.urlresolvers import reverse
from ideasbox.tests.factories import UserFactory
@pytest.fixture()
def user():
return UserFactory(short_name="Hello", password='password')
@pytest.fixture()
def staffuser():
return UserFactory(short_name="Hello", password='pa... | import pytest
import django_webtest
from django.core.urlresolvers import reverse
from ideasbox.tests.factories import UserFactory
@pytest.fixture()
def user():
return UserFactory(short_name="Hello", password='password')
@pytest.fixture()
def staffuser():
return UserFactory(short_name="Hello", password='pa... | Use yield_fixture for app fixture | Use yield_fixture for app fixture
| Python | agpl-3.0 | ideascube/ideascube,Lcaracol/ideasbox.lan,ideascube/ideascube,ideascube/ideascube,ideascube/ideascube,Lcaracol/ideasbox.lan,Lcaracol/ideasbox.lan | import pytest
import django_webtest
from django.core.urlresolvers import reverse
from ideasbox.tests.factories import UserFactory
@pytest.fixture()
def user():
return UserFactory(short_name="Hello", password='password')
@pytest.fixture()
def staffuser():
return UserFactory(short_name="Hello", password='pa... | import pytest
import django_webtest
from django.core.urlresolvers import reverse
from ideasbox.tests.factories import UserFactory
@pytest.fixture()
def user():
return UserFactory(short_name="Hello", password='password')
@pytest.fixture()
def staffuser():
return UserFactory(short_name="Hello", password='pa... | <commit_before>import pytest
import django_webtest
from django.core.urlresolvers import reverse
from ideasbox.tests.factories import UserFactory
@pytest.fixture()
def user():
return UserFactory(short_name="Hello", password='password')
@pytest.fixture()
def staffuser():
return UserFactory(short_name="Hello... | import pytest
import django_webtest
from django.core.urlresolvers import reverse
from ideasbox.tests.factories import UserFactory
@pytest.fixture()
def user():
return UserFactory(short_name="Hello", password='password')
@pytest.fixture()
def staffuser():
return UserFactory(short_name="Hello", password='pa... | import pytest
import django_webtest
from django.core.urlresolvers import reverse
from ideasbox.tests.factories import UserFactory
@pytest.fixture()
def user():
return UserFactory(short_name="Hello", password='password')
@pytest.fixture()
def staffuser():
return UserFactory(short_name="Hello", password='pa... | <commit_before>import pytest
import django_webtest
from django.core.urlresolvers import reverse
from ideasbox.tests.factories import UserFactory
@pytest.fixture()
def user():
return UserFactory(short_name="Hello", password='password')
@pytest.fixture()
def staffuser():
return UserFactory(short_name="Hello... |
0a5f09c90ace9c09379b8f2faa98ba7040298af9 | QuantifiedDevOpenDashboardCommand.py | QuantifiedDevOpenDashboardCommand.py | import sublime, sublime_plugin, webbrowser
QD_URL = "http://localhost:5000/"
class GoToQuantifiedDevDashboardCommand(sublime_plugin.TextCommand):
def run(self,edit):
SETTINGS = {}
SETTINGS_FILE = "QuantifiedDev.sublime-settings"
SETTINGS = sublime.load_settings(SETTINGS_FILE)
strea... | import sublime, sublime_plugin, webbrowser
QD_URL = "http://localhost:5000"
class GoToQuantifiedDevDashboardCommand(sublime_plugin.TextCommand):
def run(self,edit):
SETTINGS = {}
SETTINGS_FILE = "QuantifiedDev.sublime-settings"
SETTINGS = sublime.load_settings(SETTINGS_FILE)
stream... | Fix url to be consistent. | Fix url to be consistent. | Python | apache-2.0 | 1self/sublime-text-plugin,1self/sublime-text-plugin,1self/sublime-text-plugin | import sublime, sublime_plugin, webbrowser
QD_URL = "http://localhost:5000/"
class GoToQuantifiedDevDashboardCommand(sublime_plugin.TextCommand):
def run(self,edit):
SETTINGS = {}
SETTINGS_FILE = "QuantifiedDev.sublime-settings"
SETTINGS = sublime.load_settings(SETTINGS_FILE)
strea... | import sublime, sublime_plugin, webbrowser
QD_URL = "http://localhost:5000"
class GoToQuantifiedDevDashboardCommand(sublime_plugin.TextCommand):
def run(self,edit):
SETTINGS = {}
SETTINGS_FILE = "QuantifiedDev.sublime-settings"
SETTINGS = sublime.load_settings(SETTINGS_FILE)
stream... | <commit_before>import sublime, sublime_plugin, webbrowser
QD_URL = "http://localhost:5000/"
class GoToQuantifiedDevDashboardCommand(sublime_plugin.TextCommand):
def run(self,edit):
SETTINGS = {}
SETTINGS_FILE = "QuantifiedDev.sublime-settings"
SETTINGS = sublime.load_settings(SETTINGS_FILE... | import sublime, sublime_plugin, webbrowser
QD_URL = "http://localhost:5000"
class GoToQuantifiedDevDashboardCommand(sublime_plugin.TextCommand):
def run(self,edit):
SETTINGS = {}
SETTINGS_FILE = "QuantifiedDev.sublime-settings"
SETTINGS = sublime.load_settings(SETTINGS_FILE)
stream... | import sublime, sublime_plugin, webbrowser
QD_URL = "http://localhost:5000/"
class GoToQuantifiedDevDashboardCommand(sublime_plugin.TextCommand):
def run(self,edit):
SETTINGS = {}
SETTINGS_FILE = "QuantifiedDev.sublime-settings"
SETTINGS = sublime.load_settings(SETTINGS_FILE)
strea... | <commit_before>import sublime, sublime_plugin, webbrowser
QD_URL = "http://localhost:5000/"
class GoToQuantifiedDevDashboardCommand(sublime_plugin.TextCommand):
def run(self,edit):
SETTINGS = {}
SETTINGS_FILE = "QuantifiedDev.sublime-settings"
SETTINGS = sublime.load_settings(SETTINGS_FILE... |
3509243e467a8546a3fa9ba123f77a1a96643402 | xml_json_import/__init__.py | xml_json_import/__init__.py | from django.conf import settings
class XmlJsonImportModuleException(Exception):
pass
| from django.conf import settings
class XmlJsonImportModuleException(Exception):
pass
if not hasattr(settings, 'XSLT_FILES_DIR'):
raise XmlJsonImportModuleException('Settings must contain XSLT_FILES_DIR parameter')
| Throw exception for not existing XSLT_FILES_DIR setting | Throw exception for not existing XSLT_FILES_DIR setting
| Python | mit | lev-veshnyakov/django-import-data,lev-veshnyakov/django-import-data | from django.conf import settings
class XmlJsonImportModuleException(Exception):
pass
Throw exception for not existing XSLT_FILES_DIR setting | from django.conf import settings
class XmlJsonImportModuleException(Exception):
pass
if not hasattr(settings, 'XSLT_FILES_DIR'):
raise XmlJsonImportModuleException('Settings must contain XSLT_FILES_DIR parameter')
| <commit_before>from django.conf import settings
class XmlJsonImportModuleException(Exception):
pass
<commit_msg>Throw exception for not existing XSLT_FILES_DIR setting<commit_after> | from django.conf import settings
class XmlJsonImportModuleException(Exception):
pass
if not hasattr(settings, 'XSLT_FILES_DIR'):
raise XmlJsonImportModuleException('Settings must contain XSLT_FILES_DIR parameter')
| from django.conf import settings
class XmlJsonImportModuleException(Exception):
pass
Throw exception for not existing XSLT_FILES_DIR settingfrom django.conf import settings
class XmlJsonImportModuleException(Exception):
pass
if not hasattr(settings, 'XSLT_FILES_DIR'):
raise XmlJsonImportModul... | <commit_before>from django.conf import settings
class XmlJsonImportModuleException(Exception):
pass
<commit_msg>Throw exception for not existing XSLT_FILES_DIR setting<commit_after>from django.conf import settings
class XmlJsonImportModuleException(Exception):
pass
if not hasattr(settings, 'XSLT_F... |
9e7aed847c2d5fcd6e00bc787d8b3558b590f605 | api/logs/urls.py | api/logs/urls.py | from django.conf.urls import url
from api.logs import views
urlpatterns = [
url(r'^(?P<log_id>\w+)/$', views.NodeLogDetail.as_view(), name=views.NodeLogDetail.view_name),
url(r'^(?P<log_id>\w+)/nodes/$', views.LogNodeList.as_view(), name=views.LogNodeList.view_name),
]
| from django.conf.urls import url
from api.logs import views
urlpatterns = [
url(r'^(?P<log_id>\w+)/$', views.NodeLogDetail.as_view(), name=views.NodeLogDetail.view_name),
url(r'^(?P<log_id>\w+)/nodes/$', views.LogNodeList.as_view(), name=views.LogNodeList.view_name),
url(r'^(?P<log_id>\w+)/added_contribut... | Add /v2/logs/log_id/added_contributors/ to list of URL's. | Add /v2/logs/log_id/added_contributors/ to list of URL's.
| Python | apache-2.0 | abought/osf.io,mfraezz/osf.io,TomHeatwole/osf.io,chennan47/osf.io,RomanZWang/osf.io,alexschiller/osf.io,billyhunt/osf.io,crcresearch/osf.io,saradbowman/osf.io,acshi/osf.io,jnayak1/osf.io,RomanZWang/osf.io,emetsger/osf.io,KAsante95/osf.io,zachjanicki/osf.io,mattclark/osf.io,RomanZWang/osf.io,emetsger/osf.io,monikagrabow... | from django.conf.urls import url
from api.logs import views
urlpatterns = [
url(r'^(?P<log_id>\w+)/$', views.NodeLogDetail.as_view(), name=views.NodeLogDetail.view_name),
url(r'^(?P<log_id>\w+)/nodes/$', views.LogNodeList.as_view(), name=views.LogNodeList.view_name),
]
Add /v2/logs/log_id/added_contributors/ ... | from django.conf.urls import url
from api.logs import views
urlpatterns = [
url(r'^(?P<log_id>\w+)/$', views.NodeLogDetail.as_view(), name=views.NodeLogDetail.view_name),
url(r'^(?P<log_id>\w+)/nodes/$', views.LogNodeList.as_view(), name=views.LogNodeList.view_name),
url(r'^(?P<log_id>\w+)/added_contribut... | <commit_before>from django.conf.urls import url
from api.logs import views
urlpatterns = [
url(r'^(?P<log_id>\w+)/$', views.NodeLogDetail.as_view(), name=views.NodeLogDetail.view_name),
url(r'^(?P<log_id>\w+)/nodes/$', views.LogNodeList.as_view(), name=views.LogNodeList.view_name),
]
<commit_msg>Add /v2/logs/... | from django.conf.urls import url
from api.logs import views
urlpatterns = [
url(r'^(?P<log_id>\w+)/$', views.NodeLogDetail.as_view(), name=views.NodeLogDetail.view_name),
url(r'^(?P<log_id>\w+)/nodes/$', views.LogNodeList.as_view(), name=views.LogNodeList.view_name),
url(r'^(?P<log_id>\w+)/added_contribut... | from django.conf.urls import url
from api.logs import views
urlpatterns = [
url(r'^(?P<log_id>\w+)/$', views.NodeLogDetail.as_view(), name=views.NodeLogDetail.view_name),
url(r'^(?P<log_id>\w+)/nodes/$', views.LogNodeList.as_view(), name=views.LogNodeList.view_name),
]
Add /v2/logs/log_id/added_contributors/ ... | <commit_before>from django.conf.urls import url
from api.logs import views
urlpatterns = [
url(r'^(?P<log_id>\w+)/$', views.NodeLogDetail.as_view(), name=views.NodeLogDetail.view_name),
url(r'^(?P<log_id>\w+)/nodes/$', views.LogNodeList.as_view(), name=views.LogNodeList.view_name),
]
<commit_msg>Add /v2/logs/... |
a9c6e045631103fe8508fd1b60d6076c05092fe1 | tests/examples/customnode/nodes.py | tests/examples/customnode/nodes.py | from viewflow.activation import AbstractGateActivation, Activation
from viewflow.flow import base
from viewflow.token import Token
class DynamicSplitActivation(AbstractGateActivation):
def calculate_next(self):
self._split_count = self.flow_task._task_count_callback(self.process)
@Activation.status.s... | from viewflow.activation import AbstractGateActivation
from viewflow.flow import base
from viewflow.token import Token
class DynamicSplitActivation(AbstractGateActivation):
def calculate_next(self):
self._split_count = self.flow_task._task_count_callback(self.process)
def activate_next(self):
... | Add undo to custom node sample | Add undo to custom node sample
| Python | agpl-3.0 | ribeiro-ucl/viewflow,codingjoe/viewflow,pombredanne/viewflow,pombredanne/viewflow,codingjoe/viewflow,codingjoe/viewflow,viewflow/viewflow,viewflow/viewflow,ribeiro-ucl/viewflow,viewflow/viewflow,ribeiro-ucl/viewflow | from viewflow.activation import AbstractGateActivation, Activation
from viewflow.flow import base
from viewflow.token import Token
class DynamicSplitActivation(AbstractGateActivation):
def calculate_next(self):
self._split_count = self.flow_task._task_count_callback(self.process)
@Activation.status.s... | from viewflow.activation import AbstractGateActivation
from viewflow.flow import base
from viewflow.token import Token
class DynamicSplitActivation(AbstractGateActivation):
def calculate_next(self):
self._split_count = self.flow_task._task_count_callback(self.process)
def activate_next(self):
... | <commit_before>from viewflow.activation import AbstractGateActivation, Activation
from viewflow.flow import base
from viewflow.token import Token
class DynamicSplitActivation(AbstractGateActivation):
def calculate_next(self):
self._split_count = self.flow_task._task_count_callback(self.process)
@Acti... | from viewflow.activation import AbstractGateActivation
from viewflow.flow import base
from viewflow.token import Token
class DynamicSplitActivation(AbstractGateActivation):
def calculate_next(self):
self._split_count = self.flow_task._task_count_callback(self.process)
def activate_next(self):
... | from viewflow.activation import AbstractGateActivation, Activation
from viewflow.flow import base
from viewflow.token import Token
class DynamicSplitActivation(AbstractGateActivation):
def calculate_next(self):
self._split_count = self.flow_task._task_count_callback(self.process)
@Activation.status.s... | <commit_before>from viewflow.activation import AbstractGateActivation, Activation
from viewflow.flow import base
from viewflow.token import Token
class DynamicSplitActivation(AbstractGateActivation):
def calculate_next(self):
self._split_count = self.flow_task._task_count_callback(self.process)
@Acti... |
cc8b115c6ab8265e5122e992a8ebe9960c92ada9 | awx/sso/strategies/django_strategy.py | awx/sso/strategies/django_strategy.py | # Copyright (c) 2017 Ansible, Inc.
# All Rights Reserved.
from social.strategies.django_strategy import DjangoStrategy
class AWXDjangoStrategy(DjangoStrategy):
"""A DjangoStrategy for python-social-auth containing
fixes and updates from social-app-django
TODO: Revert back to using the default Djan... | # Copyright (c) 2017 Ansible, Inc.
# All Rights Reserved.
# Django
from django.conf import settings
# Python social auth
from social.strategies.django_strategy import DjangoStrategy
class AWXDjangoStrategy(DjangoStrategy):
"""A DjangoStrategy for python-social-auth containing
fixes and updates from socia... | Fix SAML auth behind load balancer issue. | Fix SAML auth behind load balancer issue.
Relates to #7586 of ansible-tower as a follow-up of fix #420 of tower.
The original fix works for Django version 1.9 and above, this PR
expanded the solution to Django verison 1.8 and below.
Signed-off-by: Aaron Tan <555f4d7ad24fb44b9d01fe2d4954b2d18e7bdbd4@gmail.com>
| Python | apache-2.0 | wwitzel3/awx,wwitzel3/awx,wwitzel3/awx,wwitzel3/awx | # Copyright (c) 2017 Ansible, Inc.
# All Rights Reserved.
from social.strategies.django_strategy import DjangoStrategy
class AWXDjangoStrategy(DjangoStrategy):
"""A DjangoStrategy for python-social-auth containing
fixes and updates from social-app-django
TODO: Revert back to using the default Djan... | # Copyright (c) 2017 Ansible, Inc.
# All Rights Reserved.
# Django
from django.conf import settings
# Python social auth
from social.strategies.django_strategy import DjangoStrategy
class AWXDjangoStrategy(DjangoStrategy):
"""A DjangoStrategy for python-social-auth containing
fixes and updates from socia... | <commit_before># Copyright (c) 2017 Ansible, Inc.
# All Rights Reserved.
from social.strategies.django_strategy import DjangoStrategy
class AWXDjangoStrategy(DjangoStrategy):
"""A DjangoStrategy for python-social-auth containing
fixes and updates from social-app-django
TODO: Revert back to using t... | # Copyright (c) 2017 Ansible, Inc.
# All Rights Reserved.
# Django
from django.conf import settings
# Python social auth
from social.strategies.django_strategy import DjangoStrategy
class AWXDjangoStrategy(DjangoStrategy):
"""A DjangoStrategy for python-social-auth containing
fixes and updates from socia... | # Copyright (c) 2017 Ansible, Inc.
# All Rights Reserved.
from social.strategies.django_strategy import DjangoStrategy
class AWXDjangoStrategy(DjangoStrategy):
"""A DjangoStrategy for python-social-auth containing
fixes and updates from social-app-django
TODO: Revert back to using the default Djan... | <commit_before># Copyright (c) 2017 Ansible, Inc.
# All Rights Reserved.
from social.strategies.django_strategy import DjangoStrategy
class AWXDjangoStrategy(DjangoStrategy):
"""A DjangoStrategy for python-social-auth containing
fixes and updates from social-app-django
TODO: Revert back to using t... |
fffca3d2198f7c65b2e4fa2b805efa54f4c9fdb9 | tests/zeus/artifacts/test_xunit.py | tests/zeus/artifacts/test_xunit.py | from io import BytesIO
from zeus.artifacts.xunit import XunitHandler
from zeus.constants import Result
from zeus.models import Job
from zeus.utils.testresult import TestResult as ZeusTestResult
def test_result_generation(sample_xunit):
job = Job()
fp = BytesIO(sample_xunit.encode("utf8"))
handler = Xun... | from io import BytesIO
from zeus.artifacts.xunit import XunitHandler
from zeus.constants import Result
from zeus.models import Job
from zeus.utils.testresult import TestResult as ZeusTestResult
def test_result_generation(sample_xunit):
job = Job()
fp = BytesIO(sample_xunit.encode("utf8"))
handler = Xun... | Fix test case being integers | test: Fix test case being integers
| Python | apache-2.0 | getsentry/zeus,getsentry/zeus,getsentry/zeus,getsentry/zeus | from io import BytesIO
from zeus.artifacts.xunit import XunitHandler
from zeus.constants import Result
from zeus.models import Job
from zeus.utils.testresult import TestResult as ZeusTestResult
def test_result_generation(sample_xunit):
job = Job()
fp = BytesIO(sample_xunit.encode("utf8"))
handler = Xun... | from io import BytesIO
from zeus.artifacts.xunit import XunitHandler
from zeus.constants import Result
from zeus.models import Job
from zeus.utils.testresult import TestResult as ZeusTestResult
def test_result_generation(sample_xunit):
job = Job()
fp = BytesIO(sample_xunit.encode("utf8"))
handler = Xun... | <commit_before>from io import BytesIO
from zeus.artifacts.xunit import XunitHandler
from zeus.constants import Result
from zeus.models import Job
from zeus.utils.testresult import TestResult as ZeusTestResult
def test_result_generation(sample_xunit):
job = Job()
fp = BytesIO(sample_xunit.encode("utf8"))
... | from io import BytesIO
from zeus.artifacts.xunit import XunitHandler
from zeus.constants import Result
from zeus.models import Job
from zeus.utils.testresult import TestResult as ZeusTestResult
def test_result_generation(sample_xunit):
job = Job()
fp = BytesIO(sample_xunit.encode("utf8"))
handler = Xun... | from io import BytesIO
from zeus.artifacts.xunit import XunitHandler
from zeus.constants import Result
from zeus.models import Job
from zeus.utils.testresult import TestResult as ZeusTestResult
def test_result_generation(sample_xunit):
job = Job()
fp = BytesIO(sample_xunit.encode("utf8"))
handler = Xun... | <commit_before>from io import BytesIO
from zeus.artifacts.xunit import XunitHandler
from zeus.constants import Result
from zeus.models import Job
from zeus.utils.testresult import TestResult as ZeusTestResult
def test_result_generation(sample_xunit):
job = Job()
fp = BytesIO(sample_xunit.encode("utf8"))
... |
533569965f23f9425a4ee07f4e613f0a843792ec | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name = 'macroeco',
version = 1.0,
packages = find_packages(),
entry_points = {'console_scripts': ['mecodesktop=macroeco:mecodesktop',],},
package_data = {'': ['*.txt', '*.csv']},
author = 'Justin Kitzes and Mark Wilber',
author_email = 'jk... | from setuptools import setup, find_packages
setup(
name = 'macroeco',
version = 1.0,
packages = find_packages(),
# entry_points = {'console_scripts': ['mecodesktop=macroeco:mecodesktop',],},
package_data = {'': ['*.txt', '*.csv']},
author = 'Justin Kitzes and Mark Wilber',
author_email = '... | Remove entry point mecodesktop script | Remove entry point mecodesktop script
MacroecoDesktop is now called using the python -c syntax instead of an
entry script.
| Python | bsd-2-clause | jkitzes/macroeco | from setuptools import setup, find_packages
setup(
name = 'macroeco',
version = 1.0,
packages = find_packages(),
entry_points = {'console_scripts': ['mecodesktop=macroeco:mecodesktop',],},
package_data = {'': ['*.txt', '*.csv']},
author = 'Justin Kitzes and Mark Wilber',
author_email = 'jk... | from setuptools import setup, find_packages
setup(
name = 'macroeco',
version = 1.0,
packages = find_packages(),
# entry_points = {'console_scripts': ['mecodesktop=macroeco:mecodesktop',],},
package_data = {'': ['*.txt', '*.csv']},
author = 'Justin Kitzes and Mark Wilber',
author_email = '... | <commit_before>from setuptools import setup, find_packages
setup(
name = 'macroeco',
version = 1.0,
packages = find_packages(),
entry_points = {'console_scripts': ['mecodesktop=macroeco:mecodesktop',],},
package_data = {'': ['*.txt', '*.csv']},
author = 'Justin Kitzes and Mark Wilber',
aut... | from setuptools import setup, find_packages
setup(
name = 'macroeco',
version = 1.0,
packages = find_packages(),
# entry_points = {'console_scripts': ['mecodesktop=macroeco:mecodesktop',],},
package_data = {'': ['*.txt', '*.csv']},
author = 'Justin Kitzes and Mark Wilber',
author_email = '... | from setuptools import setup, find_packages
setup(
name = 'macroeco',
version = 1.0,
packages = find_packages(),
entry_points = {'console_scripts': ['mecodesktop=macroeco:mecodesktop',],},
package_data = {'': ['*.txt', '*.csv']},
author = 'Justin Kitzes and Mark Wilber',
author_email = 'jk... | <commit_before>from setuptools import setup, find_packages
setup(
name = 'macroeco',
version = 1.0,
packages = find_packages(),
entry_points = {'console_scripts': ['mecodesktop=macroeco:mecodesktop',],},
package_data = {'': ['*.txt', '*.csv']},
author = 'Justin Kitzes and Mark Wilber',
aut... |
5dcad55d1e911a9c602fab467e64d9e9671373ac | setup.py | setup.py | # SPDX-FileCopyrightText: 2014 The python-scsi Authors
#
# SPDX-License-Identifier: LGPL-2.1-or-later
# coding: utf-8
from setuptools import find_packages, setup
import setuptools_scm # noqa: F401 # Ensure it's present.
setup(
packages=find_packages(exclude=["tests"]),
python_requires='~=3.7',
extras_... | # SPDX-FileCopyrightText: 2014 The python-scsi Authors
#
# SPDX-License-Identifier: LGPL-2.1-or-later
# coding: utf-8
from setuptools import find_packages, setup
import setuptools_scm # noqa: F401 # Ensure it's present.
setup(
packages=find_packages(exclude=["tests"]),
python_requires='~=3.7',
extras_... | Add a minimum cython-sgio version to the dependencies. | Add a minimum cython-sgio version to the dependencies.
This makes sure that only the _fixed_ cython-sgio version is used.
| Python | lgpl-2.1 | rosjat/python-scsi | # SPDX-FileCopyrightText: 2014 The python-scsi Authors
#
# SPDX-License-Identifier: LGPL-2.1-or-later
# coding: utf-8
from setuptools import find_packages, setup
import setuptools_scm # noqa: F401 # Ensure it's present.
setup(
packages=find_packages(exclude=["tests"]),
python_requires='~=3.7',
extras_... | # SPDX-FileCopyrightText: 2014 The python-scsi Authors
#
# SPDX-License-Identifier: LGPL-2.1-or-later
# coding: utf-8
from setuptools import find_packages, setup
import setuptools_scm # noqa: F401 # Ensure it's present.
setup(
packages=find_packages(exclude=["tests"]),
python_requires='~=3.7',
extras_... | <commit_before># SPDX-FileCopyrightText: 2014 The python-scsi Authors
#
# SPDX-License-Identifier: LGPL-2.1-or-later
# coding: utf-8
from setuptools import find_packages, setup
import setuptools_scm # noqa: F401 # Ensure it's present.
setup(
packages=find_packages(exclude=["tests"]),
python_requires='~=3.... | # SPDX-FileCopyrightText: 2014 The python-scsi Authors
#
# SPDX-License-Identifier: LGPL-2.1-or-later
# coding: utf-8
from setuptools import find_packages, setup
import setuptools_scm # noqa: F401 # Ensure it's present.
setup(
packages=find_packages(exclude=["tests"]),
python_requires='~=3.7',
extras_... | # SPDX-FileCopyrightText: 2014 The python-scsi Authors
#
# SPDX-License-Identifier: LGPL-2.1-or-later
# coding: utf-8
from setuptools import find_packages, setup
import setuptools_scm # noqa: F401 # Ensure it's present.
setup(
packages=find_packages(exclude=["tests"]),
python_requires='~=3.7',
extras_... | <commit_before># SPDX-FileCopyrightText: 2014 The python-scsi Authors
#
# SPDX-License-Identifier: LGPL-2.1-or-later
# coding: utf-8
from setuptools import find_packages, setup
import setuptools_scm # noqa: F401 # Ensure it's present.
setup(
packages=find_packages(exclude=["tests"]),
python_requires='~=3.... |
3ca2203a977f6d25c780e7a6168a16c4f7dec732 | setup.py | setup.py | import os
from codecs import open
from setuptools import setup, find_packages
repo_path = os.path.abspath(os.path.dirname(__file__))
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except (ImportError, OSError):
long_description = open('README.md').read()
with open(os.path.j... | import os
from codecs import open
from setuptools import setup, find_packages
repo_path = os.path.abspath(os.path.dirname(__file__))
with open('README.md', encoding='utf-8') as f:
long_description = f.read()
with open(os.path.join(repo_path, 'requirements.txt')) as f:
requirements = f.read().splitlines()
s... | Switch to proper markdown for long description | Switch to proper markdown for long description
| Python | mit | brejoc/django-intercoolerjs | import os
from codecs import open
from setuptools import setup, find_packages
repo_path = os.path.abspath(os.path.dirname(__file__))
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except (ImportError, OSError):
long_description = open('README.md').read()
with open(os.path.j... | import os
from codecs import open
from setuptools import setup, find_packages
repo_path = os.path.abspath(os.path.dirname(__file__))
with open('README.md', encoding='utf-8') as f:
long_description = f.read()
with open(os.path.join(repo_path, 'requirements.txt')) as f:
requirements = f.read().splitlines()
s... | <commit_before>import os
from codecs import open
from setuptools import setup, find_packages
repo_path = os.path.abspath(os.path.dirname(__file__))
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except (ImportError, OSError):
long_description = open('README.md').read()
with... | import os
from codecs import open
from setuptools import setup, find_packages
repo_path = os.path.abspath(os.path.dirname(__file__))
with open('README.md', encoding='utf-8') as f:
long_description = f.read()
with open(os.path.join(repo_path, 'requirements.txt')) as f:
requirements = f.read().splitlines()
s... | import os
from codecs import open
from setuptools import setup, find_packages
repo_path = os.path.abspath(os.path.dirname(__file__))
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except (ImportError, OSError):
long_description = open('README.md').read()
with open(os.path.j... | <commit_before>import os
from codecs import open
from setuptools import setup, find_packages
repo_path = os.path.abspath(os.path.dirname(__file__))
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except (ImportError, OSError):
long_description = open('README.md').read()
with... |
cfde8a339c52c1875cb3b863ace3cad6174eb54c | account_cost_spread/models/account_invoice.py | account_cost_spread/models/account_invoice.py | # Copyright 2016-2018 Onestein (<http://www.onestein.eu>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import api, models
class AccountInvoice(models.Model):
_inherit = 'account.invoice'
@api.multi
def action_move_create(self):
"""Override, button Validate on invoic... | # Copyright 2016-2018 Onestein (<http://www.onestein.eu>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import api, models
class AccountInvoice(models.Model):
_inherit = 'account.invoice'
@api.multi
def action_move_create(self):
"""Invoked when validating the invoice... | Fix method description in account_cost_spread | Fix method description in account_cost_spread
| Python | agpl-3.0 | onesteinbv/addons-onestein,onesteinbv/addons-onestein,onesteinbv/addons-onestein | # Copyright 2016-2018 Onestein (<http://www.onestein.eu>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import api, models
class AccountInvoice(models.Model):
_inherit = 'account.invoice'
@api.multi
def action_move_create(self):
"""Override, button Validate on invoic... | # Copyright 2016-2018 Onestein (<http://www.onestein.eu>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import api, models
class AccountInvoice(models.Model):
_inherit = 'account.invoice'
@api.multi
def action_move_create(self):
"""Invoked when validating the invoice... | <commit_before># Copyright 2016-2018 Onestein (<http://www.onestein.eu>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import api, models
class AccountInvoice(models.Model):
_inherit = 'account.invoice'
@api.multi
def action_move_create(self):
"""Override, button Val... | # Copyright 2016-2018 Onestein (<http://www.onestein.eu>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import api, models
class AccountInvoice(models.Model):
_inherit = 'account.invoice'
@api.multi
def action_move_create(self):
"""Invoked when validating the invoice... | # Copyright 2016-2018 Onestein (<http://www.onestein.eu>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import api, models
class AccountInvoice(models.Model):
_inherit = 'account.invoice'
@api.multi
def action_move_create(self):
"""Override, button Validate on invoic... | <commit_before># Copyright 2016-2018 Onestein (<http://www.onestein.eu>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import api, models
class AccountInvoice(models.Model):
_inherit = 'account.invoice'
@api.multi
def action_move_create(self):
"""Override, button Val... |
ab3c5e7709dc4eda89821c120d220fc9898ca03c | setup.py | setup.py | from setuptools import setup, find_packages
from os import path
here = path.abspath(path.dirname(__file__))
description = 'The official Python3 Domo API SDK - Domo, Inc.'
long_description = 'See https://github.com/domoinc/domo-python-sdk for more details.'
setup(
name='pydomo',
version='0.3.0.01',
descrip... | from setuptools import setup, find_packages
from os import path
here = path.abspath(path.dirname(__file__))
description = 'The official Python3 Domo API SDK - Domo, Inc.'
long_description = 'See https://github.com/domoinc/domo-python-sdk for more details.'
setup(
name='pydomo',
version='0.3.0.2',
descript... | Update to prep for v0.3.0.2 | Update to prep for v0.3.0.2
| Python | mit | domoinc/domo-python-sdk,domoinc/domo-python-sdk | from setuptools import setup, find_packages
from os import path
here = path.abspath(path.dirname(__file__))
description = 'The official Python3 Domo API SDK - Domo, Inc.'
long_description = 'See https://github.com/domoinc/domo-python-sdk for more details.'
setup(
name='pydomo',
version='0.3.0.01',
descrip... | from setuptools import setup, find_packages
from os import path
here = path.abspath(path.dirname(__file__))
description = 'The official Python3 Domo API SDK - Domo, Inc.'
long_description = 'See https://github.com/domoinc/domo-python-sdk for more details.'
setup(
name='pydomo',
version='0.3.0.2',
descript... | <commit_before>from setuptools import setup, find_packages
from os import path
here = path.abspath(path.dirname(__file__))
description = 'The official Python3 Domo API SDK - Domo, Inc.'
long_description = 'See https://github.com/domoinc/domo-python-sdk for more details.'
setup(
name='pydomo',
version='0.3.0.0... | from setuptools import setup, find_packages
from os import path
here = path.abspath(path.dirname(__file__))
description = 'The official Python3 Domo API SDK - Domo, Inc.'
long_description = 'See https://github.com/domoinc/domo-python-sdk for more details.'
setup(
name='pydomo',
version='0.3.0.2',
descript... | from setuptools import setup, find_packages
from os import path
here = path.abspath(path.dirname(__file__))
description = 'The official Python3 Domo API SDK - Domo, Inc.'
long_description = 'See https://github.com/domoinc/domo-python-sdk for more details.'
setup(
name='pydomo',
version='0.3.0.01',
descrip... | <commit_before>from setuptools import setup, find_packages
from os import path
here = path.abspath(path.dirname(__file__))
description = 'The official Python3 Domo API SDK - Domo, Inc.'
long_description = 'See https://github.com/domoinc/domo-python-sdk for more details.'
setup(
name='pydomo',
version='0.3.0.0... |
f48b3dee81d0ce34740cfa65b499409f55a2588e | whip/web.py | whip/web.py | #!/usr/bin/env python
from flask import Flask, abort, make_response
from socket import inet_aton, error as socket_error
from .db import Database
app = Flask(__name__)
db = Database()
@app.route('/ip/<ip>')
def lookup(ip):
try:
k = inet_aton(ip)
except socket_error:
abort(400)
info_as_j... | #!/usr/bin/env python
from flask import Flask, abort, make_response
from socket import inet_aton, error as socket_error
from .db import Database
app = Flask(__name__)
app.config.from_envvar('WHIP_SETTINGS')
db = Database(app.config['DATABASE_DIR'])
@app.route('/ip/<ip>')
def lookup(ip):
try:
k = inet_a... | Use WHIP_SETTINGS environment var for Flask app | Use WHIP_SETTINGS environment var for Flask app
| Python | bsd-3-clause | wbolster/whip | #!/usr/bin/env python
from flask import Flask, abort, make_response
from socket import inet_aton, error as socket_error
from .db import Database
app = Flask(__name__)
db = Database()
@app.route('/ip/<ip>')
def lookup(ip):
try:
k = inet_aton(ip)
except socket_error:
abort(400)
info_as_j... | #!/usr/bin/env python
from flask import Flask, abort, make_response
from socket import inet_aton, error as socket_error
from .db import Database
app = Flask(__name__)
app.config.from_envvar('WHIP_SETTINGS')
db = Database(app.config['DATABASE_DIR'])
@app.route('/ip/<ip>')
def lookup(ip):
try:
k = inet_a... | <commit_before>#!/usr/bin/env python
from flask import Flask, abort, make_response
from socket import inet_aton, error as socket_error
from .db import Database
app = Flask(__name__)
db = Database()
@app.route('/ip/<ip>')
def lookup(ip):
try:
k = inet_aton(ip)
except socket_error:
abort(400)... | #!/usr/bin/env python
from flask import Flask, abort, make_response
from socket import inet_aton, error as socket_error
from .db import Database
app = Flask(__name__)
app.config.from_envvar('WHIP_SETTINGS')
db = Database(app.config['DATABASE_DIR'])
@app.route('/ip/<ip>')
def lookup(ip):
try:
k = inet_a... | #!/usr/bin/env python
from flask import Flask, abort, make_response
from socket import inet_aton, error as socket_error
from .db import Database
app = Flask(__name__)
db = Database()
@app.route('/ip/<ip>')
def lookup(ip):
try:
k = inet_aton(ip)
except socket_error:
abort(400)
info_as_j... | <commit_before>#!/usr/bin/env python
from flask import Flask, abort, make_response
from socket import inet_aton, error as socket_error
from .db import Database
app = Flask(__name__)
db = Database()
@app.route('/ip/<ip>')
def lookup(ip):
try:
k = inet_aton(ip)
except socket_error:
abort(400)... |
d9ed160e54ff40783a007154e194767af0574ec1 | setup.py | setup.py | #!/usr/bin/env python
import sys
if sys.version_info < (3,):
sys.exit("catimg requires Python 3")
from setuptools import setup
import versioneer
setup(
name='catimg',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
description='''Print an image of a cat from Imgur to iTerm2.... | #!/usr/bin/env python
import sys
if sys.version_info < (3,):
sys.exit("catimg requires Python 3")
from setuptools import setup
import versioneer
setup(
name='catimg',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
description='''Print an image of a cat from Imgur to iTerm2.... | Include the tests in the install | Include the tests in the install
| Python | mit | asmeurer/catimg | #!/usr/bin/env python
import sys
if sys.version_info < (3,):
sys.exit("catimg requires Python 3")
from setuptools import setup
import versioneer
setup(
name='catimg',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
description='''Print an image of a cat from Imgur to iTerm2.... | #!/usr/bin/env python
import sys
if sys.version_info < (3,):
sys.exit("catimg requires Python 3")
from setuptools import setup
import versioneer
setup(
name='catimg',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
description='''Print an image of a cat from Imgur to iTerm2.... | <commit_before>#!/usr/bin/env python
import sys
if sys.version_info < (3,):
sys.exit("catimg requires Python 3")
from setuptools import setup
import versioneer
setup(
name='catimg',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
description='''Print an image of a cat from I... | #!/usr/bin/env python
import sys
if sys.version_info < (3,):
sys.exit("catimg requires Python 3")
from setuptools import setup
import versioneer
setup(
name='catimg',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
description='''Print an image of a cat from Imgur to iTerm2.... | #!/usr/bin/env python
import sys
if sys.version_info < (3,):
sys.exit("catimg requires Python 3")
from setuptools import setup
import versioneer
setup(
name='catimg',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
description='''Print an image of a cat from Imgur to iTerm2.... | <commit_before>#!/usr/bin/env python
import sys
if sys.version_info < (3,):
sys.exit("catimg requires Python 3")
from setuptools import setup
import versioneer
setup(
name='catimg',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
description='''Print an image of a cat from I... |
6b358e001c270b4ee735550c829a47c4ee4118b4 | setup.py | setup.py | from setuptools import setup
setup(
name='syslog2IRC',
version='0.8',
description='A proxy to forward syslog messages to IRC',
url='http://homework.nwsnet.de/releases/c474/#syslog2irc',
author='Jochen Kupperschmidt',
author_email='homework@nwsnet.de',
license='MIT',
classifiers=[
... | # -*- coding: utf-8 -*-
import codecs
from setuptools import setup
with codecs.open('README.rst', encoding='utf-8') as f:
long_description = f.read()
setup(
name='syslog2IRC',
version='0.8',
description='A proxy to forward syslog messages to IRC',
long_description=long_description,
url='ht... | Include README content as long description. | Include README content as long description.
| Python | mit | Emantor/syslog2irc,homeworkprod/syslog2irc | from setuptools import setup
setup(
name='syslog2IRC',
version='0.8',
description='A proxy to forward syslog messages to IRC',
url='http://homework.nwsnet.de/releases/c474/#syslog2irc',
author='Jochen Kupperschmidt',
author_email='homework@nwsnet.de',
license='MIT',
classifiers=[
... | # -*- coding: utf-8 -*-
import codecs
from setuptools import setup
with codecs.open('README.rst', encoding='utf-8') as f:
long_description = f.read()
setup(
name='syslog2IRC',
version='0.8',
description='A proxy to forward syslog messages to IRC',
long_description=long_description,
url='ht... | <commit_before>from setuptools import setup
setup(
name='syslog2IRC',
version='0.8',
description='A proxy to forward syslog messages to IRC',
url='http://homework.nwsnet.de/releases/c474/#syslog2irc',
author='Jochen Kupperschmidt',
author_email='homework@nwsnet.de',
license='MIT',
clas... | # -*- coding: utf-8 -*-
import codecs
from setuptools import setup
with codecs.open('README.rst', encoding='utf-8') as f:
long_description = f.read()
setup(
name='syslog2IRC',
version='0.8',
description='A proxy to forward syslog messages to IRC',
long_description=long_description,
url='ht... | from setuptools import setup
setup(
name='syslog2IRC',
version='0.8',
description='A proxy to forward syslog messages to IRC',
url='http://homework.nwsnet.de/releases/c474/#syslog2irc',
author='Jochen Kupperschmidt',
author_email='homework@nwsnet.de',
license='MIT',
classifiers=[
... | <commit_before>from setuptools import setup
setup(
name='syslog2IRC',
version='0.8',
description='A proxy to forward syslog messages to IRC',
url='http://homework.nwsnet.de/releases/c474/#syslog2irc',
author='Jochen Kupperschmidt',
author_email='homework@nwsnet.de',
license='MIT',
clas... |
0cc9d5ccc815161d2a64edf4183fc6d14326b43a | tests/test_playartist/test_query.py | tests/test_playartist/test_query.py | #!/usr/bin/env python
# coding=utf-8
from __future__ import print_function, unicode_literals
import nose.tools as nose
from tests.utils import run_filter
def test_ignore_case():
"""should ignore case when querying artists"""
results = run_filter('playartist', 'beatl')
nose.assert_equal(results[0]['titl... | #!/usr/bin/env python
# coding=utf-8
from __future__ import print_function, unicode_literals
import nose.tools as nose
from tests.utils import run_filter
def test_ignore_case():
"""should ignore case when querying artists"""
results = run_filter('playartist', 'BeatL')
nose.assert_equal(results[0]['titl... | Correct playartist 'ignore case' test | Correct playartist 'ignore case' test
| Python | mit | caleb531/play-song,caleb531/play-song | #!/usr/bin/env python
# coding=utf-8
from __future__ import print_function, unicode_literals
import nose.tools as nose
from tests.utils import run_filter
def test_ignore_case():
"""should ignore case when querying artists"""
results = run_filter('playartist', 'beatl')
nose.assert_equal(results[0]['titl... | #!/usr/bin/env python
# coding=utf-8
from __future__ import print_function, unicode_literals
import nose.tools as nose
from tests.utils import run_filter
def test_ignore_case():
"""should ignore case when querying artists"""
results = run_filter('playartist', 'BeatL')
nose.assert_equal(results[0]['titl... | <commit_before>#!/usr/bin/env python
# coding=utf-8
from __future__ import print_function, unicode_literals
import nose.tools as nose
from tests.utils import run_filter
def test_ignore_case():
"""should ignore case when querying artists"""
results = run_filter('playartist', 'beatl')
nose.assert_equal(r... | #!/usr/bin/env python
# coding=utf-8
from __future__ import print_function, unicode_literals
import nose.tools as nose
from tests.utils import run_filter
def test_ignore_case():
"""should ignore case when querying artists"""
results = run_filter('playartist', 'BeatL')
nose.assert_equal(results[0]['titl... | #!/usr/bin/env python
# coding=utf-8
from __future__ import print_function, unicode_literals
import nose.tools as nose
from tests.utils import run_filter
def test_ignore_case():
"""should ignore case when querying artists"""
results = run_filter('playartist', 'beatl')
nose.assert_equal(results[0]['titl... | <commit_before>#!/usr/bin/env python
# coding=utf-8
from __future__ import print_function, unicode_literals
import nose.tools as nose
from tests.utils import run_filter
def test_ignore_case():
"""should ignore case when querying artists"""
results = run_filter('playartist', 'beatl')
nose.assert_equal(r... |
000e3b96f6fa77cc9d6e60af67ec98ecc0d2497e | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
import request
setup(
name='django-request',
version='%s' % request.__version__,
description='django-request is a statistics module for django. It stores requests in a database for admins to see, it can also be used to get statistics on who is online e... | #!/usr/bin/env python
from distutils.core import setup
import request
setup(
name='django-request',
version='%s' % request.__version__,
description='django-request is a statistics module for django. It stores requests in a database for admins to see, it can also be used to get statistics on who is online e... | Copy the templates when installed. | Copy the templates when installed.
| Python | bsd-2-clause | kylef/django-request,kylef/django-request,gnublade/django-request,gnublade/django-request,gnublade/django-request,kylef/django-request | #!/usr/bin/env python
from distutils.core import setup
import request
setup(
name='django-request',
version='%s' % request.__version__,
description='django-request is a statistics module for django. It stores requests in a database for admins to see, it can also be used to get statistics on who is online e... | #!/usr/bin/env python
from distutils.core import setup
import request
setup(
name='django-request',
version='%s' % request.__version__,
description='django-request is a statistics module for django. It stores requests in a database for admins to see, it can also be used to get statistics on who is online e... | <commit_before>#!/usr/bin/env python
from distutils.core import setup
import request
setup(
name='django-request',
version='%s' % request.__version__,
description='django-request is a statistics module for django. It stores requests in a database for admins to see, it can also be used to get statistics on ... | #!/usr/bin/env python
from distutils.core import setup
import request
setup(
name='django-request',
version='%s' % request.__version__,
description='django-request is a statistics module for django. It stores requests in a database for admins to see, it can also be used to get statistics on who is online e... | #!/usr/bin/env python
from distutils.core import setup
import request
setup(
name='django-request',
version='%s' % request.__version__,
description='django-request is a statistics module for django. It stores requests in a database for admins to see, it can also be used to get statistics on who is online e... | <commit_before>#!/usr/bin/env python
from distutils.core import setup
import request
setup(
name='django-request',
version='%s' % request.__version__,
description='django-request is a statistics module for django. It stores requests in a database for admins to see, it can also be used to get statistics on ... |
587071437d6f00b255e8aa00c5b82a6d05dff63e | repl.py | repl.py | #!/usr/bin/python3
"""Command line runtime for Tea."""
import runtime.lib
from runtime import lexer, parser, env
TEA_VERSION = "0.0.5-dev"
TEA_TITLE = "Tea @" + TEA_VERSION
CLI_SYMBOL = "#> "
CLI_SPACE = " " * 3
CLI_RESULT = "<- "
def interpret(expression, context):
"""Interpret an expression by tokenizing, par... | #!/usr/bin/python3
"""Command line runtime for Tea."""
import runtime.lib
from runtime import lexer, parser, env, flags
TEA_VERSION = "0.0.5-dev"
TEA_TITLE = "Tea @" + TEA_VERSION
CLI_SYMBOL = ">> "
CLI_SPACE = " " * 3
CLI_RESULT = "<- "
CLI_ERROR = "!! "
def interpret(expression, context):
"""Interpret an expre... | Add !exec command for basic code reuse | Add !exec command for basic code reuse
| Python | mit | lnsp/tea,lnsp/tea | #!/usr/bin/python3
"""Command line runtime for Tea."""
import runtime.lib
from runtime import lexer, parser, env
TEA_VERSION = "0.0.5-dev"
TEA_TITLE = "Tea @" + TEA_VERSION
CLI_SYMBOL = "#> "
CLI_SPACE = " " * 3
CLI_RESULT = "<- "
def interpret(expression, context):
"""Interpret an expression by tokenizing, par... | #!/usr/bin/python3
"""Command line runtime for Tea."""
import runtime.lib
from runtime import lexer, parser, env, flags
TEA_VERSION = "0.0.5-dev"
TEA_TITLE = "Tea @" + TEA_VERSION
CLI_SYMBOL = ">> "
CLI_SPACE = " " * 3
CLI_RESULT = "<- "
CLI_ERROR = "!! "
def interpret(expression, context):
"""Interpret an expre... | <commit_before>#!/usr/bin/python3
"""Command line runtime for Tea."""
import runtime.lib
from runtime import lexer, parser, env
TEA_VERSION = "0.0.5-dev"
TEA_TITLE = "Tea @" + TEA_VERSION
CLI_SYMBOL = "#> "
CLI_SPACE = " " * 3
CLI_RESULT = "<- "
def interpret(expression, context):
"""Interpret an expression by ... | #!/usr/bin/python3
"""Command line runtime for Tea."""
import runtime.lib
from runtime import lexer, parser, env, flags
TEA_VERSION = "0.0.5-dev"
TEA_TITLE = "Tea @" + TEA_VERSION
CLI_SYMBOL = ">> "
CLI_SPACE = " " * 3
CLI_RESULT = "<- "
CLI_ERROR = "!! "
def interpret(expression, context):
"""Interpret an expre... | #!/usr/bin/python3
"""Command line runtime for Tea."""
import runtime.lib
from runtime import lexer, parser, env
TEA_VERSION = "0.0.5-dev"
TEA_TITLE = "Tea @" + TEA_VERSION
CLI_SYMBOL = "#> "
CLI_SPACE = " " * 3
CLI_RESULT = "<- "
def interpret(expression, context):
"""Interpret an expression by tokenizing, par... | <commit_before>#!/usr/bin/python3
"""Command line runtime for Tea."""
import runtime.lib
from runtime import lexer, parser, env
TEA_VERSION = "0.0.5-dev"
TEA_TITLE = "Tea @" + TEA_VERSION
CLI_SYMBOL = "#> "
CLI_SPACE = " " * 3
CLI_RESULT = "<- "
def interpret(expression, context):
"""Interpret an expression by ... |
d4a67c8895349532fbc7764531130f737ca53d89 | setup.py | setup.py | from setuptools import setup
version = '0.2.dev0'
long_description = '\n\n'.join([
open('README.rst').read(),
open('CREDITS.rst').read(),
open('CHANGES.rst').read(),
])
install_requires = [
'Django',
'cassandralib',
'django-extensions',
'django-nose',
'django-treebeard',
'liza... | from setuptools import setup
version = '0.2.dev0'
long_description = '\n\n'.join([
open('README.rst').read(),
open('CREDITS.rst').read(),
open('CHANGES.rst').read(),
])
install_requires = [
'Django',
'cassandralib',
'django-extensions',
'django-nose',
'django-treebeard',
'liza... | Remove treebeard dependency (it's django-treebeard). | Remove treebeard dependency (it's django-treebeard).
| Python | mit | ddsc/ddsc-core,ddsc/ddsc-core | from setuptools import setup
version = '0.2.dev0'
long_description = '\n\n'.join([
open('README.rst').read(),
open('CREDITS.rst').read(),
open('CHANGES.rst').read(),
])
install_requires = [
'Django',
'cassandralib',
'django-extensions',
'django-nose',
'django-treebeard',
'liza... | from setuptools import setup
version = '0.2.dev0'
long_description = '\n\n'.join([
open('README.rst').read(),
open('CREDITS.rst').read(),
open('CHANGES.rst').read(),
])
install_requires = [
'Django',
'cassandralib',
'django-extensions',
'django-nose',
'django-treebeard',
'liza... | <commit_before>from setuptools import setup
version = '0.2.dev0'
long_description = '\n\n'.join([
open('README.rst').read(),
open('CREDITS.rst').read(),
open('CHANGES.rst').read(),
])
install_requires = [
'Django',
'cassandralib',
'django-extensions',
'django-nose',
'django-treebe... | from setuptools import setup
version = '0.2.dev0'
long_description = '\n\n'.join([
open('README.rst').read(),
open('CREDITS.rst').read(),
open('CHANGES.rst').read(),
])
install_requires = [
'Django',
'cassandralib',
'django-extensions',
'django-nose',
'django-treebeard',
'liza... | from setuptools import setup
version = '0.2.dev0'
long_description = '\n\n'.join([
open('README.rst').read(),
open('CREDITS.rst').read(),
open('CHANGES.rst').read(),
])
install_requires = [
'Django',
'cassandralib',
'django-extensions',
'django-nose',
'django-treebeard',
'liza... | <commit_before>from setuptools import setup
version = '0.2.dev0'
long_description = '\n\n'.join([
open('README.rst').read(),
open('CREDITS.rst').read(),
open('CHANGES.rst').read(),
])
install_requires = [
'Django',
'cassandralib',
'django-extensions',
'django-nose',
'django-treebe... |
f349753417682960e607b458a009fbfd324de7ab | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
execfile('kronos/version.py')
setup(
name = 'django-kronos',
version = __version__,
description = 'Kronos is a Django application that makes it easy to define and schedule tasks with cron.',
long_description = open('README.rst').read(),
author = ... | #!/usr/bin/env python
from setuptools import setup
execfile('kronos/version.py')
readme = open('README.rst').read()
history = open('HISTORY.rst').read()
setup(
name = 'django-kronos',
version = __version__,
description = 'Kronos is a Django application that makes it easy to define and schedule tasks wit... | Add history to long description | Add history to long description
| Python | mit | jeanbaptistelab/django-kronos,jeanbaptistelab/django-kronos,joshblum/django-kronos,jgorset/django-kronos,jgorset/django-kronos,joshblum/django-kronos | #!/usr/bin/env python
from setuptools import setup
execfile('kronos/version.py')
setup(
name = 'django-kronos',
version = __version__,
description = 'Kronos is a Django application that makes it easy to define and schedule tasks with cron.',
long_description = open('README.rst').read(),
author = ... | #!/usr/bin/env python
from setuptools import setup
execfile('kronos/version.py')
readme = open('README.rst').read()
history = open('HISTORY.rst').read()
setup(
name = 'django-kronos',
version = __version__,
description = 'Kronos is a Django application that makes it easy to define and schedule tasks wit... | <commit_before>#!/usr/bin/env python
from setuptools import setup
execfile('kronos/version.py')
setup(
name = 'django-kronos',
version = __version__,
description = 'Kronos is a Django application that makes it easy to define and schedule tasks with cron.',
long_description = open('README.rst').read()... | #!/usr/bin/env python
from setuptools import setup
execfile('kronos/version.py')
readme = open('README.rst').read()
history = open('HISTORY.rst').read()
setup(
name = 'django-kronos',
version = __version__,
description = 'Kronos is a Django application that makes it easy to define and schedule tasks wit... | #!/usr/bin/env python
from setuptools import setup
execfile('kronos/version.py')
setup(
name = 'django-kronos',
version = __version__,
description = 'Kronos is a Django application that makes it easy to define and schedule tasks with cron.',
long_description = open('README.rst').read(),
author = ... | <commit_before>#!/usr/bin/env python
from setuptools import setup
execfile('kronos/version.py')
setup(
name = 'django-kronos',
version = __version__,
description = 'Kronos is a Django application that makes it easy to define and schedule tasks with cron.',
long_description = open('README.rst').read()... |
0b3c7183e7f8543de3e9875384c5623c24279c4d | setup.py | setup.py | __author__ = 'katharine'
import sys
from setuptools import setup, find_packages
requires = [
'libpebble2==0.0.14',
'httplib2==0.9.1',
'oauth2client==1.4.12',
'progressbar2==2.7.3',
'pyasn1==0.1.8',
'pyasn1-modules==0.0.6',
'pypng==0.0.17',
'pyqrcode==1.1',
'requests==2.7.0',
'r... | __author__ = 'katharine'
import sys
from setuptools import setup, find_packages
requires = [
'libpebble2==0.0.14',
'httplib2==0.9.1',
'oauth2client==1.4.12',
'progressbar2==2.7.3',
'pyasn1==0.1.8',
'pyasn1-modules==0.0.6',
'pypng==0.0.17',
'pyqrcode==1.1',
'requests==2.7.0',
'r... | Make sure our python alias is included in packaged versions. | Make sure our python alias is included in packaged versions.
| Python | mit | pebble/pebble-tool,pebble/pebble-tool,gregoiresage/pebble-tool,gregoiresage/pebble-tool,pebble/pebble-tool,pebble/pebble-tool,gregoiresage/pebble-tool,gregoiresage/pebble-tool | __author__ = 'katharine'
import sys
from setuptools import setup, find_packages
requires = [
'libpebble2==0.0.14',
'httplib2==0.9.1',
'oauth2client==1.4.12',
'progressbar2==2.7.3',
'pyasn1==0.1.8',
'pyasn1-modules==0.0.6',
'pypng==0.0.17',
'pyqrcode==1.1',
'requests==2.7.0',
'r... | __author__ = 'katharine'
import sys
from setuptools import setup, find_packages
requires = [
'libpebble2==0.0.14',
'httplib2==0.9.1',
'oauth2client==1.4.12',
'progressbar2==2.7.3',
'pyasn1==0.1.8',
'pyasn1-modules==0.0.6',
'pypng==0.0.17',
'pyqrcode==1.1',
'requests==2.7.0',
'r... | <commit_before>__author__ = 'katharine'
import sys
from setuptools import setup, find_packages
requires = [
'libpebble2==0.0.14',
'httplib2==0.9.1',
'oauth2client==1.4.12',
'progressbar2==2.7.3',
'pyasn1==0.1.8',
'pyasn1-modules==0.0.6',
'pypng==0.0.17',
'pyqrcode==1.1',
'requests=... | __author__ = 'katharine'
import sys
from setuptools import setup, find_packages
requires = [
'libpebble2==0.0.14',
'httplib2==0.9.1',
'oauth2client==1.4.12',
'progressbar2==2.7.3',
'pyasn1==0.1.8',
'pyasn1-modules==0.0.6',
'pypng==0.0.17',
'pyqrcode==1.1',
'requests==2.7.0',
'r... | __author__ = 'katharine'
import sys
from setuptools import setup, find_packages
requires = [
'libpebble2==0.0.14',
'httplib2==0.9.1',
'oauth2client==1.4.12',
'progressbar2==2.7.3',
'pyasn1==0.1.8',
'pyasn1-modules==0.0.6',
'pypng==0.0.17',
'pyqrcode==1.1',
'requests==2.7.0',
'r... | <commit_before>__author__ = 'katharine'
import sys
from setuptools import setup, find_packages
requires = [
'libpebble2==0.0.14',
'httplib2==0.9.1',
'oauth2client==1.4.12',
'progressbar2==2.7.3',
'pyasn1==0.1.8',
'pyasn1-modules==0.0.6',
'pypng==0.0.17',
'pyqrcode==1.1',
'requests=... |
d313c43f99ab167f6526698561617c234ee4799a | setup.py | setup.py | import setuptools
try:
import pypandoc
LONG_DESC = pypandoc.convert("README.md", "rst")
except(IOError, ImportError, RuntimeError):
LONG_DESC = open('README.md').read()
setuptools.setup(
name="tvtid",
version="0.1.5",
author="Christian Kirkegaard",
author_email="christian@lowpoly.dk",
... | import setuptools
try:
import pypandoc
LONG_DESC = pypandoc.convert("README.md", "rst")
except(IOError, ImportError, RuntimeError):
LONG_DESC = open('README.md').read()
setuptools.setup(
name="tvtid",
version="0.1.6",
author="Christian Kirkegaard",
author_email="christian@lowpoly.dk",
... | Convert readme since pypi doesnt support markdown | Convert readme since pypi doesnt support markdown
| Python | mit | kirkegaard/tvtid.py | import setuptools
try:
import pypandoc
LONG_DESC = pypandoc.convert("README.md", "rst")
except(IOError, ImportError, RuntimeError):
LONG_DESC = open('README.md').read()
setuptools.setup(
name="tvtid",
version="0.1.5",
author="Christian Kirkegaard",
author_email="christian@lowpoly.dk",
... | import setuptools
try:
import pypandoc
LONG_DESC = pypandoc.convert("README.md", "rst")
except(IOError, ImportError, RuntimeError):
LONG_DESC = open('README.md').read()
setuptools.setup(
name="tvtid",
version="0.1.6",
author="Christian Kirkegaard",
author_email="christian@lowpoly.dk",
... | <commit_before>import setuptools
try:
import pypandoc
LONG_DESC = pypandoc.convert("README.md", "rst")
except(IOError, ImportError, RuntimeError):
LONG_DESC = open('README.md').read()
setuptools.setup(
name="tvtid",
version="0.1.5",
author="Christian Kirkegaard",
author_email="christian@lo... | import setuptools
try:
import pypandoc
LONG_DESC = pypandoc.convert("README.md", "rst")
except(IOError, ImportError, RuntimeError):
LONG_DESC = open('README.md').read()
setuptools.setup(
name="tvtid",
version="0.1.6",
author="Christian Kirkegaard",
author_email="christian@lowpoly.dk",
... | import setuptools
try:
import pypandoc
LONG_DESC = pypandoc.convert("README.md", "rst")
except(IOError, ImportError, RuntimeError):
LONG_DESC = open('README.md').read()
setuptools.setup(
name="tvtid",
version="0.1.5",
author="Christian Kirkegaard",
author_email="christian@lowpoly.dk",
... | <commit_before>import setuptools
try:
import pypandoc
LONG_DESC = pypandoc.convert("README.md", "rst")
except(IOError, ImportError, RuntimeError):
LONG_DESC = open('README.md').read()
setuptools.setup(
name="tvtid",
version="0.1.5",
author="Christian Kirkegaard",
author_email="christian@lo... |
9c46a56b64a9d08218b5c0cbb8e88c98b5dc3787 | setup.py | setup.py | # Copyright 2016 Florian Lehner. All rights reserved.
#
# The contents of this file are 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 r... | # Copyright 2016 Florian Lehner. All rights reserved.
#
# The contents of this file are 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 r... | Fix issue while installation via pip | Fix issue while installation via pip
Signed-off-by: Lehner Florian <34c6fceca75e456f25e7e99531e2425c6c1de443@der-flo.net>
| Python | apache-2.0 | florianl/panonoctl | # Copyright 2016 Florian Lehner. All rights reserved.
#
# The contents of this file are 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 r... | # Copyright 2016 Florian Lehner. All rights reserved.
#
# The contents of this file are 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 r... | <commit_before># Copyright 2016 Florian Lehner. All rights reserved.
#
# The contents of this file are 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... | # Copyright 2016 Florian Lehner. All rights reserved.
#
# The contents of this file are 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 r... | # Copyright 2016 Florian Lehner. All rights reserved.
#
# The contents of this file are 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 r... | <commit_before># Copyright 2016 Florian Lehner. All rights reserved.
#
# The contents of this file are 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... |
7f7b3a73b33e6a2857520dd8b9e00b2dc17a04f3 | setup.py | setup.py | from setuptools import setup
def listify(filename):
return filter(None, open(filename, 'r').read().strip('\n').split('\n'))
setup(
name="distributex",
version="0.1",
url='http://github.com/calston/distributex',
license='MIT',
description="Distributex. A network mutex service for distributed"
... | from setuptools import setup
def listify(filename):
return filter(None, open(filename, 'r').read().strip('\n').split('\n'))
setup(
name="distributex",
version="0.1",
url='http://github.com/calston/distributex',
license='MIT',
description="A network mutex service for distributed environments."... | Set a sane package discription | Set a sane package discription
| Python | mit | calston/distributex | from setuptools import setup
def listify(filename):
return filter(None, open(filename, 'r').read().strip('\n').split('\n'))
setup(
name="distributex",
version="0.1",
url='http://github.com/calston/distributex',
license='MIT',
description="Distributex. A network mutex service for distributed"
... | from setuptools import setup
def listify(filename):
return filter(None, open(filename, 'r').read().strip('\n').split('\n'))
setup(
name="distributex",
version="0.1",
url='http://github.com/calston/distributex',
license='MIT',
description="A network mutex service for distributed environments."... | <commit_before>from setuptools import setup
def listify(filename):
return filter(None, open(filename, 'r').read().strip('\n').split('\n'))
setup(
name="distributex",
version="0.1",
url='http://github.com/calston/distributex',
license='MIT',
description="Distributex. A network mutex service fo... | from setuptools import setup
def listify(filename):
return filter(None, open(filename, 'r').read().strip('\n').split('\n'))
setup(
name="distributex",
version="0.1",
url='http://github.com/calston/distributex',
license='MIT',
description="A network mutex service for distributed environments."... | from setuptools import setup
def listify(filename):
return filter(None, open(filename, 'r').read().strip('\n').split('\n'))
setup(
name="distributex",
version="0.1",
url='http://github.com/calston/distributex',
license='MIT',
description="Distributex. A network mutex service for distributed"
... | <commit_before>from setuptools import setup
def listify(filename):
return filter(None, open(filename, 'r').read().strip('\n').split('\n'))
setup(
name="distributex",
version="0.1",
url='http://github.com/calston/distributex',
license='MIT',
description="Distributex. A network mutex service fo... |
8ddc7ecbc768ae25b1d0e74ecfeb9045fb461d16 | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='Flask-DebugToolbar',
version='0.04',
url='http://github.com/mvantellingen/flask-debugtoolbar',
license='BSD',
author='Michael van Tellingen',
author_email='michaelvantellingen@gmail.com',
description='A port of the Django debug toolb... | from setuptools import setup, find_packages
setup(
name='Flask-DebugToolbar',
version='0.4',
url='http://github.com/mvantellingen/flask-debugtoolbar',
license='BSD',
author='Michael van Tellingen',
author_email='michaelvantellingen@gmail.com',
description='A port of the Django debug toolba... | Add blinker as install dependency (used for signals within flask) | Add blinker as install dependency (used for signals within flask)
| Python | bsd-3-clause | dianchang/flask-debugtoolbar,dianchang/flask-debugtoolbar,lepture/flask-debugtoolbar,lepture/flask-debugtoolbar,dianchang/flask-debugtoolbar | from setuptools import setup, find_packages
setup(
name='Flask-DebugToolbar',
version='0.04',
url='http://github.com/mvantellingen/flask-debugtoolbar',
license='BSD',
author='Michael van Tellingen',
author_email='michaelvantellingen@gmail.com',
description='A port of the Django debug toolb... | from setuptools import setup, find_packages
setup(
name='Flask-DebugToolbar',
version='0.4',
url='http://github.com/mvantellingen/flask-debugtoolbar',
license='BSD',
author='Michael van Tellingen',
author_email='michaelvantellingen@gmail.com',
description='A port of the Django debug toolba... | <commit_before>from setuptools import setup, find_packages
setup(
name='Flask-DebugToolbar',
version='0.04',
url='http://github.com/mvantellingen/flask-debugtoolbar',
license='BSD',
author='Michael van Tellingen',
author_email='michaelvantellingen@gmail.com',
description='A port of the Dja... | from setuptools import setup, find_packages
setup(
name='Flask-DebugToolbar',
version='0.4',
url='http://github.com/mvantellingen/flask-debugtoolbar',
license='BSD',
author='Michael van Tellingen',
author_email='michaelvantellingen@gmail.com',
description='A port of the Django debug toolba... | from setuptools import setup, find_packages
setup(
name='Flask-DebugToolbar',
version='0.04',
url='http://github.com/mvantellingen/flask-debugtoolbar',
license='BSD',
author='Michael van Tellingen',
author_email='michaelvantellingen@gmail.com',
description='A port of the Django debug toolb... | <commit_before>from setuptools import setup, find_packages
setup(
name='Flask-DebugToolbar',
version='0.04',
url='http://github.com/mvantellingen/flask-debugtoolbar',
license='BSD',
author='Michael van Tellingen',
author_email='michaelvantellingen@gmail.com',
description='A port of the Dja... |
5d93a71fee4b53000a3a5bbacd7d24f1caf11528 | setup.py | setup.py | #!/usr/bin/env python
import os
from setuptools import setup
import versioneer
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()
setup(
name="fsspec",
version=versioneer.get_version(),
cmdclass=versioneer.g... | #!/usr/bin/env python
import os
from setuptools import setup
import versioneer
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()
setup(
name="fsspec",
version=versioneer.get_version(),
cmdclass=versioneer.g... | Add more extras based on what's in registry.py | Add more extras based on what's in registry.py
| Python | bsd-3-clause | fsspec/filesystem_spec,intake/filesystem_spec,fsspec/filesystem_spec | #!/usr/bin/env python
import os
from setuptools import setup
import versioneer
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()
setup(
name="fsspec",
version=versioneer.get_version(),
cmdclass=versioneer.g... | #!/usr/bin/env python
import os
from setuptools import setup
import versioneer
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()
setup(
name="fsspec",
version=versioneer.get_version(),
cmdclass=versioneer.g... | <commit_before>#!/usr/bin/env python
import os
from setuptools import setup
import versioneer
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()
setup(
name="fsspec",
version=versioneer.get_version(),
cmdcla... | #!/usr/bin/env python
import os
from setuptools import setup
import versioneer
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()
setup(
name="fsspec",
version=versioneer.get_version(),
cmdclass=versioneer.g... | #!/usr/bin/env python
import os
from setuptools import setup
import versioneer
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()
setup(
name="fsspec",
version=versioneer.get_version(),
cmdclass=versioneer.g... | <commit_before>#!/usr/bin/env python
import os
from setuptools import setup
import versioneer
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()
setup(
name="fsspec",
version=versioneer.get_version(),
cmdcla... |
1a60f395ec314b085bb12e132bf44c2ec8be1663 | setup.py | setup.py | #!/usr/bin/env python3
from setuptools import setup
exec(open('manatools/version.py').read())
try:
import yui
except ImportError:
import sys
print('Please install python3-yui in order to install this package',
file=sys.stderr)
sys.exit(1)
setup(
name=__project_name__,
version=__project_version__... | #!/usr/bin/env python3
from setuptools import setup
exec(open('manatools/version.py').read())
try:
import yui
except ImportError:
import sys
print('Please install python3-yui in order to install this package',
file=sys.stderr)
sys.exit(1)
setup(
name=__project_name__,
version=__project_version__... | Drop argparse as a dependency | Drop argparse as a dependency
argparse has been part of the standard library since Python 2.7,
so there's no reason to declare this as a dependency, since it cannot
be satisfied by anyone running a modern Linux distribution including
a supported version of Python.
| Python | lgpl-2.1 | manatools/python-manatools,manatools/python-manatools | #!/usr/bin/env python3
from setuptools import setup
exec(open('manatools/version.py').read())
try:
import yui
except ImportError:
import sys
print('Please install python3-yui in order to install this package',
file=sys.stderr)
sys.exit(1)
setup(
name=__project_name__,
version=__project_version__... | #!/usr/bin/env python3
from setuptools import setup
exec(open('manatools/version.py').read())
try:
import yui
except ImportError:
import sys
print('Please install python3-yui in order to install this package',
file=sys.stderr)
sys.exit(1)
setup(
name=__project_name__,
version=__project_version__... | <commit_before>#!/usr/bin/env python3
from setuptools import setup
exec(open('manatools/version.py').read())
try:
import yui
except ImportError:
import sys
print('Please install python3-yui in order to install this package',
file=sys.stderr)
sys.exit(1)
setup(
name=__project_name__,
version=__pr... | #!/usr/bin/env python3
from setuptools import setup
exec(open('manatools/version.py').read())
try:
import yui
except ImportError:
import sys
print('Please install python3-yui in order to install this package',
file=sys.stderr)
sys.exit(1)
setup(
name=__project_name__,
version=__project_version__... | #!/usr/bin/env python3
from setuptools import setup
exec(open('manatools/version.py').read())
try:
import yui
except ImportError:
import sys
print('Please install python3-yui in order to install this package',
file=sys.stderr)
sys.exit(1)
setup(
name=__project_name__,
version=__project_version__... | <commit_before>#!/usr/bin/env python3
from setuptools import setup
exec(open('manatools/version.py').read())
try:
import yui
except ImportError:
import sys
print('Please install python3-yui in order to install this package',
file=sys.stderr)
sys.exit(1)
setup(
name=__project_name__,
version=__pr... |
2d1ef22d384cb04d86946572599f2040b798e6d6 | setup.py | setup.py | #!/usr/bin/env python
def configuration(parent_package='',top_path=None):
import numpy
import os
from distutils.errors import DistutilsError
if numpy.__dict__.get('quaternion') is not None:
raise DistutilsError('The target NumPy already has a quaternion type')
from numpy.distutils.misc_util ... | #!/usr/bin/env python
def configuration(parent_package='',top_path=None):
import numpy
import os
from distutils.errors import DistutilsError
if numpy.__dict__.get('quaternion') is not None:
raise DistutilsError('The target NumPy already has a quaternion type')
from numpy.distutils.misc_util ... | Remove --ffast-math for all builds | Remove --ffast-math for all builds
Due to a bug in anaconda's libm support for linux, fast-math is
unusable. And I don't want to try to hack a way to decide if it's
usable on things other than linux, because it's just one more thing to
break.
| Python | mit | moble/quaternion,moble/quaternion | #!/usr/bin/env python
def configuration(parent_package='',top_path=None):
import numpy
import os
from distutils.errors import DistutilsError
if numpy.__dict__.get('quaternion') is not None:
raise DistutilsError('The target NumPy already has a quaternion type')
from numpy.distutils.misc_util ... | #!/usr/bin/env python
def configuration(parent_package='',top_path=None):
import numpy
import os
from distutils.errors import DistutilsError
if numpy.__dict__.get('quaternion') is not None:
raise DistutilsError('The target NumPy already has a quaternion type')
from numpy.distutils.misc_util ... | <commit_before>#!/usr/bin/env python
def configuration(parent_package='',top_path=None):
import numpy
import os
from distutils.errors import DistutilsError
if numpy.__dict__.get('quaternion') is not None:
raise DistutilsError('The target NumPy already has a quaternion type')
from numpy.distu... | #!/usr/bin/env python
def configuration(parent_package='',top_path=None):
import numpy
import os
from distutils.errors import DistutilsError
if numpy.__dict__.get('quaternion') is not None:
raise DistutilsError('The target NumPy already has a quaternion type')
from numpy.distutils.misc_util ... | #!/usr/bin/env python
def configuration(parent_package='',top_path=None):
import numpy
import os
from distutils.errors import DistutilsError
if numpy.__dict__.get('quaternion') is not None:
raise DistutilsError('The target NumPy already has a quaternion type')
from numpy.distutils.misc_util ... | <commit_before>#!/usr/bin/env python
def configuration(parent_package='',top_path=None):
import numpy
import os
from distutils.errors import DistutilsError
if numpy.__dict__.get('quaternion') is not None:
raise DistutilsError('The target NumPy already has a quaternion type')
from numpy.distu... |
84355e70e39bbca5cd4cf6756c5b463dd36c1a9c | setup.py | setup.py | from setuptools import find_packages, setup
with open("README.rst") as fh:
long_description = fh.read()
setup(
name='qiime-studio',
version='0.0.1dev',
long_description=long_description,
packages=find_packages(),
install_requires=['click', 'flask', 'gevent'],
scripts=['scripts/qiime-studio... | from setuptools import find_packages, setup
with open("README.md") as fh:
long_description = fh.read()
setup(
name='qiime-studio',
version='0.0.1dev',
long_description=long_description,
packages=find_packages(),
install_requires=['click', 'flask', 'gevent'],
scripts=['scripts/qiime-studio'... | Change install to use README.md vs .rst | Change install to use README.md vs .rst
| Python | bsd-3-clause | qiime2/qiime-studio,qiime2/qiime-studio-frontend,jakereps/qiime-studio,jakereps/qiime-studio-frontend,qiime2/qiime-studio,qiime2/qiime-studio,qiime2/qiime-studio-frontend,jakereps/qiime-studio-frontend,jakereps/qiime-studio,jakereps/qiime-studio | from setuptools import find_packages, setup
with open("README.rst") as fh:
long_description = fh.read()
setup(
name='qiime-studio',
version='0.0.1dev',
long_description=long_description,
packages=find_packages(),
install_requires=['click', 'flask', 'gevent'],
scripts=['scripts/qiime-studio... | from setuptools import find_packages, setup
with open("README.md") as fh:
long_description = fh.read()
setup(
name='qiime-studio',
version='0.0.1dev',
long_description=long_description,
packages=find_packages(),
install_requires=['click', 'flask', 'gevent'],
scripts=['scripts/qiime-studio'... | <commit_before>from setuptools import find_packages, setup
with open("README.rst") as fh:
long_description = fh.read()
setup(
name='qiime-studio',
version='0.0.1dev',
long_description=long_description,
packages=find_packages(),
install_requires=['click', 'flask', 'gevent'],
scripts=['scrip... | from setuptools import find_packages, setup
with open("README.md") as fh:
long_description = fh.read()
setup(
name='qiime-studio',
version='0.0.1dev',
long_description=long_description,
packages=find_packages(),
install_requires=['click', 'flask', 'gevent'],
scripts=['scripts/qiime-studio'... | from setuptools import find_packages, setup
with open("README.rst") as fh:
long_description = fh.read()
setup(
name='qiime-studio',
version='0.0.1dev',
long_description=long_description,
packages=find_packages(),
install_requires=['click', 'flask', 'gevent'],
scripts=['scripts/qiime-studio... | <commit_before>from setuptools import find_packages, setup
with open("README.rst") as fh:
long_description = fh.read()
setup(
name='qiime-studio',
version='0.0.1dev',
long_description=long_description,
packages=find_packages(),
install_requires=['click', 'flask', 'gevent'],
scripts=['scrip... |
5737f701d59c229d62f25734260fccb23722a67d | setup.py | setup.py | from distutils.core import setup
try:
from setuptools import setup
except:
pass
setup(
name = "pyjaco",
version = "1.0.0",
author = "Pyjaco development team",
author_email = "developer@pyjaco.org",
description = ("Python to JavaScript translator"),
url = "http://pyjaco.org",
keywords = "p... | from distutils.core import setup
try:
from setuptools import setup
except:
pass
setup(
name = "pyjaco",
version = "1.0.0",
author = "Pyjaco development team",
author_email = "developer@pyjaco.org",
description = ("Python to JavaScript translator"),
scripts = ["pyjs.py"],
url = "http://pyj... | Include the pyjs compiler script in pypi distribution. | Include the pyjs compiler script in pypi distribution.
I tested this in a virtualenv and it worked.
| Python | mit | buchuki/pyjaco,chrivers/pyjaco,buchuki/pyjaco,chrivers/pyjaco,chrivers/pyjaco,buchuki/pyjaco | from distutils.core import setup
try:
from setuptools import setup
except:
pass
setup(
name = "pyjaco",
version = "1.0.0",
author = "Pyjaco development team",
author_email = "developer@pyjaco.org",
description = ("Python to JavaScript translator"),
url = "http://pyjaco.org",
keywords = "p... | from distutils.core import setup
try:
from setuptools import setup
except:
pass
setup(
name = "pyjaco",
version = "1.0.0",
author = "Pyjaco development team",
author_email = "developer@pyjaco.org",
description = ("Python to JavaScript translator"),
scripts = ["pyjs.py"],
url = "http://pyj... | <commit_before>from distutils.core import setup
try:
from setuptools import setup
except:
pass
setup(
name = "pyjaco",
version = "1.0.0",
author = "Pyjaco development team",
author_email = "developer@pyjaco.org",
description = ("Python to JavaScript translator"),
url = "http://pyjaco.org",
... | from distutils.core import setup
try:
from setuptools import setup
except:
pass
setup(
name = "pyjaco",
version = "1.0.0",
author = "Pyjaco development team",
author_email = "developer@pyjaco.org",
description = ("Python to JavaScript translator"),
scripts = ["pyjs.py"],
url = "http://pyj... | from distutils.core import setup
try:
from setuptools import setup
except:
pass
setup(
name = "pyjaco",
version = "1.0.0",
author = "Pyjaco development team",
author_email = "developer@pyjaco.org",
description = ("Python to JavaScript translator"),
url = "http://pyjaco.org",
keywords = "p... | <commit_before>from distutils.core import setup
try:
from setuptools import setup
except:
pass
setup(
name = "pyjaco",
version = "1.0.0",
author = "Pyjaco development team",
author_email = "developer@pyjaco.org",
description = ("Python to JavaScript translator"),
url = "http://pyjaco.org",
... |
08f633cdf0f5dcd1940da46e91c175e81b39ad3f | setup.py | setup.py | #!/usr/bin/env python
"""
Setup script.
Created on Oct 10, 2011
@author: tmetsch
"""
from distutils.core import setup
from distutils.extension import Extension
try:
from Cython.Build import build_ext, cythonize
BUILD_EXTENSION = {'build_ext': build_ext}
EXT_MODULES = cythonize([Extension("dtrace", ["dt... | #!/usr/bin/env python
"""
Setup script.
Created on Oct 10, 2011
@author: tmetsch
"""
from distutils.core import setup
from distutils.extension import Extension
import sys
try:
from Cython.Build import build_ext, cythonize
BUILD_EXTENSION = {'build_ext': build_ext}
EXT_MODULES = cythonize([Extension("dt... | Set Cython language_level to 3 when compiling for python3 | Set Cython language_level to 3 when compiling for python3
| Python | mit | tmetsch/python-dtrace,tmetsch/python-dtrace | #!/usr/bin/env python
"""
Setup script.
Created on Oct 10, 2011
@author: tmetsch
"""
from distutils.core import setup
from distutils.extension import Extension
try:
from Cython.Build import build_ext, cythonize
BUILD_EXTENSION = {'build_ext': build_ext}
EXT_MODULES = cythonize([Extension("dtrace", ["dt... | #!/usr/bin/env python
"""
Setup script.
Created on Oct 10, 2011
@author: tmetsch
"""
from distutils.core import setup
from distutils.extension import Extension
import sys
try:
from Cython.Build import build_ext, cythonize
BUILD_EXTENSION = {'build_ext': build_ext}
EXT_MODULES = cythonize([Extension("dt... | <commit_before>#!/usr/bin/env python
"""
Setup script.
Created on Oct 10, 2011
@author: tmetsch
"""
from distutils.core import setup
from distutils.extension import Extension
try:
from Cython.Build import build_ext, cythonize
BUILD_EXTENSION = {'build_ext': build_ext}
EXT_MODULES = cythonize([Extension... | #!/usr/bin/env python
"""
Setup script.
Created on Oct 10, 2011
@author: tmetsch
"""
from distutils.core import setup
from distutils.extension import Extension
import sys
try:
from Cython.Build import build_ext, cythonize
BUILD_EXTENSION = {'build_ext': build_ext}
EXT_MODULES = cythonize([Extension("dt... | #!/usr/bin/env python
"""
Setup script.
Created on Oct 10, 2011
@author: tmetsch
"""
from distutils.core import setup
from distutils.extension import Extension
try:
from Cython.Build import build_ext, cythonize
BUILD_EXTENSION = {'build_ext': build_ext}
EXT_MODULES = cythonize([Extension("dtrace", ["dt... | <commit_before>#!/usr/bin/env python
"""
Setup script.
Created on Oct 10, 2011
@author: tmetsch
"""
from distutils.core import setup
from distutils.extension import Extension
try:
from Cython.Build import build_ext, cythonize
BUILD_EXTENSION = {'build_ext': build_ext}
EXT_MODULES = cythonize([Extension... |
5b263cd9c88e7e846fce3b38b9fbc069e809b13c | setup.py | setup.py | from distutils.core import setup
setup(
name = 'processout',
packages = ['ProcessOut'],
version = '2.1.0',
description = 'ProcessOut API bindings.',
author = 'ProcessOut',
author_email = 'hi@processout.com',
url = 'https://github.com/processout/processout-python',
download_url = 'https://github.com/pro... | from distutils.core import setup
setup(
name = 'processout',
packages = ['ProcessOut'],
version = '2.1.1',
description = 'ProcessOut API bindings.',
author = 'ProcessOut',
author_email = 'hi@processout.com',
url = 'https://github.com/processout/processout-python',
download_url = 'https://github.com/pro... | Update download lind and version number | Update download lind and version number
| Python | mit | ProcessOut/processout-python | from distutils.core import setup
setup(
name = 'processout',
packages = ['ProcessOut'],
version = '2.1.0',
description = 'ProcessOut API bindings.',
author = 'ProcessOut',
author_email = 'hi@processout.com',
url = 'https://github.com/processout/processout-python',
download_url = 'https://github.com/pro... | from distutils.core import setup
setup(
name = 'processout',
packages = ['ProcessOut'],
version = '2.1.1',
description = 'ProcessOut API bindings.',
author = 'ProcessOut',
author_email = 'hi@processout.com',
url = 'https://github.com/processout/processout-python',
download_url = 'https://github.com/pro... | <commit_before>from distutils.core import setup
setup(
name = 'processout',
packages = ['ProcessOut'],
version = '2.1.0',
description = 'ProcessOut API bindings.',
author = 'ProcessOut',
author_email = 'hi@processout.com',
url = 'https://github.com/processout/processout-python',
download_url = 'https:/... | from distutils.core import setup
setup(
name = 'processout',
packages = ['ProcessOut'],
version = '2.1.1',
description = 'ProcessOut API bindings.',
author = 'ProcessOut',
author_email = 'hi@processout.com',
url = 'https://github.com/processout/processout-python',
download_url = 'https://github.com/pro... | from distutils.core import setup
setup(
name = 'processout',
packages = ['ProcessOut'],
version = '2.1.0',
description = 'ProcessOut API bindings.',
author = 'ProcessOut',
author_email = 'hi@processout.com',
url = 'https://github.com/processout/processout-python',
download_url = 'https://github.com/pro... | <commit_before>from distutils.core import setup
setup(
name = 'processout',
packages = ['ProcessOut'],
version = '2.1.0',
description = 'ProcessOut API bindings.',
author = 'ProcessOut',
author_email = 'hi@processout.com',
url = 'https://github.com/processout/processout-python',
download_url = 'https:/... |
69e1e4450eaeb9d57f4cbfff020a9ed56dbbb3ce | setup.py | setup.py | # Python imports
from setuptools import setup
# Project imports
from notable import app
# Attributes
AUTHOR = 'John McFarlane'
DESCRIPTION = 'A very simple note taking application'
EMAIL = 'john.mcfarlane@rockfloat.com'
NAME = 'Notable'
PYPI = 'http://pypi.python.org/packages/source/N/Notable'
URL = 'https://github.c... | # Python imports
from setuptools import setup
# Project imports
from notable import app
# Attributes
AUTHOR = 'John McFarlane'
DESCRIPTION = 'A very simple note taking application'
EMAIL = 'john.mcfarlane@rockfloat.com'
NAME = 'Notable'
PYPI = 'http://pypi.python.org/packages/source/N/Notable'
URL = 'https://github.c... | Set nose.collector as the test_suite | Set nose.collector as the test_suite
| Python | mit | jmcfarlane/Notable,jmcfarlane/Notable,jmcfarlane/Notable,jmcfarlane/Notable | # Python imports
from setuptools import setup
# Project imports
from notable import app
# Attributes
AUTHOR = 'John McFarlane'
DESCRIPTION = 'A very simple note taking application'
EMAIL = 'john.mcfarlane@rockfloat.com'
NAME = 'Notable'
PYPI = 'http://pypi.python.org/packages/source/N/Notable'
URL = 'https://github.c... | # Python imports
from setuptools import setup
# Project imports
from notable import app
# Attributes
AUTHOR = 'John McFarlane'
DESCRIPTION = 'A very simple note taking application'
EMAIL = 'john.mcfarlane@rockfloat.com'
NAME = 'Notable'
PYPI = 'http://pypi.python.org/packages/source/N/Notable'
URL = 'https://github.c... | <commit_before># Python imports
from setuptools import setup
# Project imports
from notable import app
# Attributes
AUTHOR = 'John McFarlane'
DESCRIPTION = 'A very simple note taking application'
EMAIL = 'john.mcfarlane@rockfloat.com'
NAME = 'Notable'
PYPI = 'http://pypi.python.org/packages/source/N/Notable'
URL = 'h... | # Python imports
from setuptools import setup
# Project imports
from notable import app
# Attributes
AUTHOR = 'John McFarlane'
DESCRIPTION = 'A very simple note taking application'
EMAIL = 'john.mcfarlane@rockfloat.com'
NAME = 'Notable'
PYPI = 'http://pypi.python.org/packages/source/N/Notable'
URL = 'https://github.c... | # Python imports
from setuptools import setup
# Project imports
from notable import app
# Attributes
AUTHOR = 'John McFarlane'
DESCRIPTION = 'A very simple note taking application'
EMAIL = 'john.mcfarlane@rockfloat.com'
NAME = 'Notable'
PYPI = 'http://pypi.python.org/packages/source/N/Notable'
URL = 'https://github.c... | <commit_before># Python imports
from setuptools import setup
# Project imports
from notable import app
# Attributes
AUTHOR = 'John McFarlane'
DESCRIPTION = 'A very simple note taking application'
EMAIL = 'john.mcfarlane@rockfloat.com'
NAME = 'Notable'
PYPI = 'http://pypi.python.org/packages/source/N/Notable'
URL = 'h... |
934ed097d92728bde9e1fc42b11d688c2b512847 | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
def version():
"""Return version string."""
with open('autopep8.py') as input_file:
for line in input_file:
if line.startswith('__version__'):
import ast
return ast.literal_eval(line... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
def version():
"""Return version string."""
with open('autopep8.py') as input_file:
for line in input_file:
if line.startswith('__version__'):
import ast
return ast.literal_eval(line... | Make pep8 dependency more explicit | Make pep8 dependency more explicit
| Python | mit | vauxoo-dev/autopep8,MeteorAdminz/autopep8,MeteorAdminz/autopep8,hhatto/autopep8,vauxoo-dev/autopep8,Vauxoo/autopep8,Vauxoo/autopep8,hhatto/autopep8,SG345/autopep8,SG345/autopep8 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
def version():
"""Return version string."""
with open('autopep8.py') as input_file:
for line in input_file:
if line.startswith('__version__'):
import ast
return ast.literal_eval(line... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
def version():
"""Return version string."""
with open('autopep8.py') as input_file:
for line in input_file:
if line.startswith('__version__'):
import ast
return ast.literal_eval(line... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
def version():
"""Return version string."""
with open('autopep8.py') as input_file:
for line in input_file:
if line.startswith('__version__'):
import ast
return ast.li... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
def version():
"""Return version string."""
with open('autopep8.py') as input_file:
for line in input_file:
if line.startswith('__version__'):
import ast
return ast.literal_eval(line... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
def version():
"""Return version string."""
with open('autopep8.py') as input_file:
for line in input_file:
if line.startswith('__version__'):
import ast
return ast.literal_eval(line... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
def version():
"""Return version string."""
with open('autopep8.py') as input_file:
for line in input_file:
if line.startswith('__version__'):
import ast
return ast.li... |
f5206fa6cd94758202378b7616e578bd8a3a8dfe | tasks.py | tasks.py | """Task functions for use with Invoke."""
from invoke import task
@task
def clean(context):
cmd = '$(npm bin)/gulp clean'
context.run(cmd)
@task
def requirements(context):
steps = [
'pip install -r requirements.txt',
'npm install',
'$(npm bin)/bower install',
]
cmd = ' &... | """Task functions for use with Invoke."""
from threading import Thread
from invoke import task
@task
def clean(context):
cmd = '$(npm bin)/gulp clean'
context.run(cmd)
@task
def requirements(context):
steps = [
'pip install -r requirements.txt',
'npm install',
'$(npm bin)/bower... | Use threads to allow simultaneous serving of site and building of assets | Use threads to allow simultaneous serving of site and building of assets
| Python | mit | rlucioni/typesetter,rlucioni/typesetter,rlucioni/typesetter | """Task functions for use with Invoke."""
from invoke import task
@task
def clean(context):
cmd = '$(npm bin)/gulp clean'
context.run(cmd)
@task
def requirements(context):
steps = [
'pip install -r requirements.txt',
'npm install',
'$(npm bin)/bower install',
]
cmd = ' &... | """Task functions for use with Invoke."""
from threading import Thread
from invoke import task
@task
def clean(context):
cmd = '$(npm bin)/gulp clean'
context.run(cmd)
@task
def requirements(context):
steps = [
'pip install -r requirements.txt',
'npm install',
'$(npm bin)/bower... | <commit_before>"""Task functions for use with Invoke."""
from invoke import task
@task
def clean(context):
cmd = '$(npm bin)/gulp clean'
context.run(cmd)
@task
def requirements(context):
steps = [
'pip install -r requirements.txt',
'npm install',
'$(npm bin)/bower install',
... | """Task functions for use with Invoke."""
from threading import Thread
from invoke import task
@task
def clean(context):
cmd = '$(npm bin)/gulp clean'
context.run(cmd)
@task
def requirements(context):
steps = [
'pip install -r requirements.txt',
'npm install',
'$(npm bin)/bower... | """Task functions for use with Invoke."""
from invoke import task
@task
def clean(context):
cmd = '$(npm bin)/gulp clean'
context.run(cmd)
@task
def requirements(context):
steps = [
'pip install -r requirements.txt',
'npm install',
'$(npm bin)/bower install',
]
cmd = ' &... | <commit_before>"""Task functions for use with Invoke."""
from invoke import task
@task
def clean(context):
cmd = '$(npm bin)/gulp clean'
context.run(cmd)
@task
def requirements(context):
steps = [
'pip install -r requirements.txt',
'npm install',
'$(npm bin)/bower install',
... |
0dec612eb764cd5cc236637e3fa7473a7c01f8de | run.py | run.py | #!/usr/bin/python
# This is a platform-independent script to automate building, compiling,
# and assembling cubeOS. Windows users must have das and dcpu-16 binaries
# in the cubeOS directory, or in their system PATH location
from subprocess import call
import build #Runs build.py
assembleStatus = call(["das","-o","cube... | #!/usr/bin/python2
# This is a platform-independent script to automate building, compiling,
# and assembling cubeOS. Windows users must have das and dcpu-16 binaries
# in the cubeOS directory, or in their system PATH location
from subprocess import call
import build #Runs build.py
assembleStatus = call(["das","-o","cub... | Set Python shebang to python2, since it fails on python3. | Set Python shebang to python2, since it fails on python3.
| Python | mit | cubeOS/cubeOS-alpha | #!/usr/bin/python
# This is a platform-independent script to automate building, compiling,
# and assembling cubeOS. Windows users must have das and dcpu-16 binaries
# in the cubeOS directory, or in their system PATH location
from subprocess import call
import build #Runs build.py
assembleStatus = call(["das","-o","cube... | #!/usr/bin/python2
# This is a platform-independent script to automate building, compiling,
# and assembling cubeOS. Windows users must have das and dcpu-16 binaries
# in the cubeOS directory, or in their system PATH location
from subprocess import call
import build #Runs build.py
assembleStatus = call(["das","-o","cub... | <commit_before>#!/usr/bin/python
# This is a platform-independent script to automate building, compiling,
# and assembling cubeOS. Windows users must have das and dcpu-16 binaries
# in the cubeOS directory, or in their system PATH location
from subprocess import call
import build #Runs build.py
assembleStatus = call(["... | #!/usr/bin/python2
# This is a platform-independent script to automate building, compiling,
# and assembling cubeOS. Windows users must have das and dcpu-16 binaries
# in the cubeOS directory, or in their system PATH location
from subprocess import call
import build #Runs build.py
assembleStatus = call(["das","-o","cub... | #!/usr/bin/python
# This is a platform-independent script to automate building, compiling,
# and assembling cubeOS. Windows users must have das and dcpu-16 binaries
# in the cubeOS directory, or in their system PATH location
from subprocess import call
import build #Runs build.py
assembleStatus = call(["das","-o","cube... | <commit_before>#!/usr/bin/python
# This is a platform-independent script to automate building, compiling,
# and assembling cubeOS. Windows users must have das and dcpu-16 binaries
# in the cubeOS directory, or in their system PATH location
from subprocess import call
import build #Runs build.py
assembleStatus = call(["... |
6a5c9ccf0bd2582cf42577712309b8fd6e912966 | blo/__init__.py | blo/__init__.py | import configparser
from blo.BloArticle import BloArticle
from blo.DBControl import DBControl
class Blo:
def __init__(self, config_file_path):
config = configparser.ConfigParser()
config.read(config_file_path)
self._db_file_path = config['DB']['DB_PATH']
self._template_dir = config... | import configparser
from blo.BloArticle import BloArticle
from blo.DBControl import DBControl
class Blo:
def __init__(self, config_file_path):
config = configparser.ConfigParser()
config.read(config_file_path)
self._db_file_path = config['DB']['DB_PATH'].replace('"', '')
self._temp... | Add replace double quotation mark from configuration file parameters. | Add replace double quotation mark from configuration file parameters.
| Python | mit | 10nin/blo,10nin/blo | import configparser
from blo.BloArticle import BloArticle
from blo.DBControl import DBControl
class Blo:
def __init__(self, config_file_path):
config = configparser.ConfigParser()
config.read(config_file_path)
self._db_file_path = config['DB']['DB_PATH']
self._template_dir = config... | import configparser
from blo.BloArticle import BloArticle
from blo.DBControl import DBControl
class Blo:
def __init__(self, config_file_path):
config = configparser.ConfigParser()
config.read(config_file_path)
self._db_file_path = config['DB']['DB_PATH'].replace('"', '')
self._temp... | <commit_before>import configparser
from blo.BloArticle import BloArticle
from blo.DBControl import DBControl
class Blo:
def __init__(self, config_file_path):
config = configparser.ConfigParser()
config.read(config_file_path)
self._db_file_path = config['DB']['DB_PATH']
self._templa... | import configparser
from blo.BloArticle import BloArticle
from blo.DBControl import DBControl
class Blo:
def __init__(self, config_file_path):
config = configparser.ConfigParser()
config.read(config_file_path)
self._db_file_path = config['DB']['DB_PATH'].replace('"', '')
self._temp... | import configparser
from blo.BloArticle import BloArticle
from blo.DBControl import DBControl
class Blo:
def __init__(self, config_file_path):
config = configparser.ConfigParser()
config.read(config_file_path)
self._db_file_path = config['DB']['DB_PATH']
self._template_dir = config... | <commit_before>import configparser
from blo.BloArticle import BloArticle
from blo.DBControl import DBControl
class Blo:
def __init__(self, config_file_path):
config = configparser.ConfigParser()
config.read(config_file_path)
self._db_file_path = config['DB']['DB_PATH']
self._templa... |
06b536db7ed82a68a3c1627769364b80dd85e259 | alexandria/__init__.py | alexandria/__init__.py | import logging
log = logging.getLogger(__name__)
from pyramid.config import Configurator
from sqlalchemy import engine_from_config
from .models import DBSession
required_settings = [
'pyramid.secret.session',
'pyramid.secret.auth',
]
def main(global_config, **settings):
""" This function... | import logging
log = logging.getLogger(__name__)
from pyramid.config import Configurator
from sqlalchemy import engine_from_config
from .models import DBSession
required_settings = [
'pyramid.secret.session',
'pyramid.secret.auth',
]
def main(global_config, **settings):
""" This function... | Make sure to return the wsgi app | Make sure to return the wsgi app
| Python | isc | cdunklau/alexandria,cdunklau/alexandria,bertjwregeer/alexandria,cdunklau/alexandria,bertjwregeer/alexandria | import logging
log = logging.getLogger(__name__)
from pyramid.config import Configurator
from sqlalchemy import engine_from_config
from .models import DBSession
required_settings = [
'pyramid.secret.session',
'pyramid.secret.auth',
]
def main(global_config, **settings):
""" This function... | import logging
log = logging.getLogger(__name__)
from pyramid.config import Configurator
from sqlalchemy import engine_from_config
from .models import DBSession
required_settings = [
'pyramid.secret.session',
'pyramid.secret.auth',
]
def main(global_config, **settings):
""" This function... | <commit_before>import logging
log = logging.getLogger(__name__)
from pyramid.config import Configurator
from sqlalchemy import engine_from_config
from .models import DBSession
required_settings = [
'pyramid.secret.session',
'pyramid.secret.auth',
]
def main(global_config, **settings):
""... | import logging
log = logging.getLogger(__name__)
from pyramid.config import Configurator
from sqlalchemy import engine_from_config
from .models import DBSession
required_settings = [
'pyramid.secret.session',
'pyramid.secret.auth',
]
def main(global_config, **settings):
""" This function... | import logging
log = logging.getLogger(__name__)
from pyramid.config import Configurator
from sqlalchemy import engine_from_config
from .models import DBSession
required_settings = [
'pyramid.secret.session',
'pyramid.secret.auth',
]
def main(global_config, **settings):
""" This function... | <commit_before>import logging
log = logging.getLogger(__name__)
from pyramid.config import Configurator
from sqlalchemy import engine_from_config
from .models import DBSession
required_settings = [
'pyramid.secret.session',
'pyramid.secret.auth',
]
def main(global_config, **settings):
""... |
1fffdb60aa4eb875bfbd961773d0cf5066dc38e2 | django_website/views.py | django_website/views.py | """
Misc. views.
"""
from __future__ import absolute_import
from django.contrib.comments.models import Comment
from django.contrib.sitemaps import views as sitemap_views
from django.shortcuts import render
from django.views.decorators.cache import cache_page
from django.views.decorators.csrf import requires_csrf_token... | from django.shortcuts import render
from django.views.decorators.csrf import requires_csrf_token
@requires_csrf_token
def server_error(request, template_name='500.html'):
"""
Custom 500 error handler for static stuff.
"""
return render(request, template_name)
| Remove dead code. This isn't wired in any URLconf. | Remove dead code. This isn't wired in any URLconf.
| Python | bsd-3-clause | nanuxbe/django,xavierdutreilh/djangoproject.com,vxvinh1511/djangoproject.com,rmoorman/djangoproject.com,gnarf/djangoproject.com,django/djangoproject.com,rmoorman/djangoproject.com,relekang/djangoproject.com,hassanabidpk/djangoproject.com,alawnchen/djangoproject.com,alawnchen/djangoproject.com,khkaminska/djangoproject.c... | """
Misc. views.
"""
from __future__ import absolute_import
from django.contrib.comments.models import Comment
from django.contrib.sitemaps import views as sitemap_views
from django.shortcuts import render
from django.views.decorators.cache import cache_page
from django.views.decorators.csrf import requires_csrf_token... | from django.shortcuts import render
from django.views.decorators.csrf import requires_csrf_token
@requires_csrf_token
def server_error(request, template_name='500.html'):
"""
Custom 500 error handler for static stuff.
"""
return render(request, template_name)
| <commit_before>"""
Misc. views.
"""
from __future__ import absolute_import
from django.contrib.comments.models import Comment
from django.contrib.sitemaps import views as sitemap_views
from django.shortcuts import render
from django.views.decorators.cache import cache_page
from django.views.decorators.csrf import requ... | from django.shortcuts import render
from django.views.decorators.csrf import requires_csrf_token
@requires_csrf_token
def server_error(request, template_name='500.html'):
"""
Custom 500 error handler for static stuff.
"""
return render(request, template_name)
| """
Misc. views.
"""
from __future__ import absolute_import
from django.contrib.comments.models import Comment
from django.contrib.sitemaps import views as sitemap_views
from django.shortcuts import render
from django.views.decorators.cache import cache_page
from django.views.decorators.csrf import requires_csrf_token... | <commit_before>"""
Misc. views.
"""
from __future__ import absolute_import
from django.contrib.comments.models import Comment
from django.contrib.sitemaps import views as sitemap_views
from django.shortcuts import render
from django.views.decorators.cache import cache_page
from django.views.decorators.csrf import requ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.