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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
80d671aa79f306bb17eed006bc99eaa6e6a17bd5 | molecule/default/tests/test_default.py | molecule/default/tests/test_default.py | import datetime
import os
import pytest
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
@pytest.mark.parametrize("name", [
"lorem",
"ipsum",
])
@pytest.mark.parametrize("dir", [
".vimrc",
... | import os
import pytest
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
@pytest.mark.parametrize("name", [
"lorem",
"ipsum",
])
@pytest.mark.parametrize("file", [
".vimrc",
])
def test_back... | Simplify backup-file test (and rename) | Simplify backup-file test (and rename)
| Python | mit | ctorgalson/ansible-role-janus,ctorgalson/ansible-role-janus | import datetime
import os
import pytest
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
@pytest.mark.parametrize("name", [
"lorem",
"ipsum",
])
@pytest.mark.parametrize("dir", [
".vimrc",
... | import os
import pytest
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
@pytest.mark.parametrize("name", [
"lorem",
"ipsum",
])
@pytest.mark.parametrize("file", [
".vimrc",
])
def test_back... | <commit_before>import datetime
import os
import pytest
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
@pytest.mark.parametrize("name", [
"lorem",
"ipsum",
])
@pytest.mark.parametrize("dir", [... | import os
import pytest
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
@pytest.mark.parametrize("name", [
"lorem",
"ipsum",
])
@pytest.mark.parametrize("file", [
".vimrc",
])
def test_back... | import datetime
import os
import pytest
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
@pytest.mark.parametrize("name", [
"lorem",
"ipsum",
])
@pytest.mark.parametrize("dir", [
".vimrc",
... | <commit_before>import datetime
import os
import pytest
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
@pytest.mark.parametrize("name", [
"lorem",
"ipsum",
])
@pytest.mark.parametrize("dir", [... |
64b3c094187b629e81a743c51a7a7849444b8920 | app/PRESUBMIT.py | app/PRESUBMIT.py | #!/usr/bin/python
# Copyright (c) 2009 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Makes sure that the app/ code is cpplint clean."""
INCLUDE_CPP_FILES_ONLY = (
r'.*\.cc$', r'.*\.h$'
)
EXCLUDE = (
# Autogener... | #!/usr/bin/python
# Copyright (c) 2009 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Makes sure that the app/ code is cpplint clean."""
INCLUDE_CPP_FILES_ONLY = (
r'.*\.cc$', r'.*\.h$'
)
EXCLUDE = (
# Autogener... | Make all changes to app/ run on all trybot platforms, not just the big three. Anyone who's changing a header here may break the chromeos build. | Make all changes to app/ run on all trybot platforms, not just the big three.
Anyone who's changing a header here may break the chromeos build.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/2838027
git-svn-id: http://src.chromium.org/svn/trunk/src@51000 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Former-co... | Python | bsd-3-clause | meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-u... | #!/usr/bin/python
# Copyright (c) 2009 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Makes sure that the app/ code is cpplint clean."""
INCLUDE_CPP_FILES_ONLY = (
r'.*\.cc$', r'.*\.h$'
)
EXCLUDE = (
# Autogener... | #!/usr/bin/python
# Copyright (c) 2009 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Makes sure that the app/ code is cpplint clean."""
INCLUDE_CPP_FILES_ONLY = (
r'.*\.cc$', r'.*\.h$'
)
EXCLUDE = (
# Autogener... | <commit_before>#!/usr/bin/python
# Copyright (c) 2009 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Makes sure that the app/ code is cpplint clean."""
INCLUDE_CPP_FILES_ONLY = (
r'.*\.cc$', r'.*\.h$'
)
EXCLUDE = ... | #!/usr/bin/python
# Copyright (c) 2009 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Makes sure that the app/ code is cpplint clean."""
INCLUDE_CPP_FILES_ONLY = (
r'.*\.cc$', r'.*\.h$'
)
EXCLUDE = (
# Autogener... | #!/usr/bin/python
# Copyright (c) 2009 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Makes sure that the app/ code is cpplint clean."""
INCLUDE_CPP_FILES_ONLY = (
r'.*\.cc$', r'.*\.h$'
)
EXCLUDE = (
# Autogener... | <commit_before>#!/usr/bin/python
# Copyright (c) 2009 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Makes sure that the app/ code is cpplint clean."""
INCLUDE_CPP_FILES_ONLY = (
r'.*\.cc$', r'.*\.h$'
)
EXCLUDE = ... |
affc010ccb741bbaba3b63eb565844a090bab51f | distarray/tests/test_client.py | distarray/tests/test_client.py | import unittest
from IPython.parallel import Client
from distarray.client import DistArrayContext
class TestDistArrayContext(unittest.TestCase):
def setUp(self):
self.client = Client()
self.dv = self.client[:]
def test_create_DAC(self):
'''Can we create a plain vanilla context?'''
... | import unittest
from IPython.parallel import Client
from distarray.client import DistArrayContext
class TestDistArrayContext(unittest.TestCase):
def setUp(self):
self.client = Client()
self.dv = self.client[:]
def test_create_DAC(self):
'''Can we create a plain vanilla context?'''
... | Test indexing for block and cyclic dist types. | Test indexing for block and cyclic dist types. | Python | bsd-3-clause | RaoUmer/distarray,enthought/distarray,enthought/distarray,RaoUmer/distarray | import unittest
from IPython.parallel import Client
from distarray.client import DistArrayContext
class TestDistArrayContext(unittest.TestCase):
def setUp(self):
self.client = Client()
self.dv = self.client[:]
def test_create_DAC(self):
'''Can we create a plain vanilla context?'''
... | import unittest
from IPython.parallel import Client
from distarray.client import DistArrayContext
class TestDistArrayContext(unittest.TestCase):
def setUp(self):
self.client = Client()
self.dv = self.client[:]
def test_create_DAC(self):
'''Can we create a plain vanilla context?'''
... | <commit_before>import unittest
from IPython.parallel import Client
from distarray.client import DistArrayContext
class TestDistArrayContext(unittest.TestCase):
def setUp(self):
self.client = Client()
self.dv = self.client[:]
def test_create_DAC(self):
'''Can we create a plain vanilla... | import unittest
from IPython.parallel import Client
from distarray.client import DistArrayContext
class TestDistArrayContext(unittest.TestCase):
def setUp(self):
self.client = Client()
self.dv = self.client[:]
def test_create_DAC(self):
'''Can we create a plain vanilla context?'''
... | import unittest
from IPython.parallel import Client
from distarray.client import DistArrayContext
class TestDistArrayContext(unittest.TestCase):
def setUp(self):
self.client = Client()
self.dv = self.client[:]
def test_create_DAC(self):
'''Can we create a plain vanilla context?'''
... | <commit_before>import unittest
from IPython.parallel import Client
from distarray.client import DistArrayContext
class TestDistArrayContext(unittest.TestCase):
def setUp(self):
self.client = Client()
self.dv = self.client[:]
def test_create_DAC(self):
'''Can we create a plain vanilla... |
dae6cf8ebe2c2eb0f7c004190c9a3d76a65df918 | django_enumfield/validators.py | django_enumfield/validators.py | from django.utils.translation import gettext as _
import six
from django_enumfield.exceptions import InvalidStatusOperationError
def validate_valid_transition(enum, from_value, to_value):
"""
Validate that to_value is a valid choice and that to_value is a valid transition from from_value.
"""
validat... | from django.utils.translation import gettext as _
from django.utils import six
from django_enumfield.exceptions import InvalidStatusOperationError
def validate_valid_transition(enum, from_value, to_value):
"""
Validate that to_value is a valid choice and that to_value is a valid transition from from_value.
... | Use Django's bundled six version instead of requiring to install another one. | Use Django's bundled six version instead of requiring to install another one. | Python | mit | jessamynsmith/django-enumfield,5monkeys/django-enumfield,lamby/django-enumfield,lamby/django-enumfield,joar/django-enumfield,fcurella/django-enumfield | from django.utils.translation import gettext as _
import six
from django_enumfield.exceptions import InvalidStatusOperationError
def validate_valid_transition(enum, from_value, to_value):
"""
Validate that to_value is a valid choice and that to_value is a valid transition from from_value.
"""
validat... | from django.utils.translation import gettext as _
from django.utils import six
from django_enumfield.exceptions import InvalidStatusOperationError
def validate_valid_transition(enum, from_value, to_value):
"""
Validate that to_value is a valid choice and that to_value is a valid transition from from_value.
... | <commit_before>from django.utils.translation import gettext as _
import six
from django_enumfield.exceptions import InvalidStatusOperationError
def validate_valid_transition(enum, from_value, to_value):
"""
Validate that to_value is a valid choice and that to_value is a valid transition from from_value.
... | from django.utils.translation import gettext as _
from django.utils import six
from django_enumfield.exceptions import InvalidStatusOperationError
def validate_valid_transition(enum, from_value, to_value):
"""
Validate that to_value is a valid choice and that to_value is a valid transition from from_value.
... | from django.utils.translation import gettext as _
import six
from django_enumfield.exceptions import InvalidStatusOperationError
def validate_valid_transition(enum, from_value, to_value):
"""
Validate that to_value is a valid choice and that to_value is a valid transition from from_value.
"""
validat... | <commit_before>from django.utils.translation import gettext as _
import six
from django_enumfield.exceptions import InvalidStatusOperationError
def validate_valid_transition(enum, from_value, to_value):
"""
Validate that to_value is a valid choice and that to_value is a valid transition from from_value.
... |
9b82ab1ad03c758b6f33e1e5ff6a2b73ff68fccc | tests/test_core_lexer.py | tests/test_core_lexer.py | # -*- coding: utf-8 -*-
import sshrc.core.lexer as lexer
import pytest
@pytest.mark.parametrize("input_, output_", (
("", ""),
(" ", ""),
(" #", ""),
("# ", ""),
(" # dsfsdfsdf sdfsdfsd", ""),
(" a", " a"),
(" a# sdfsfdf", " a"),
(" a # sdfsfsd x xxxxxxx # sdfs... | # -*- coding: utf-8 -*-
import sshrc.core.lexer as lexer
import pytest
@pytest.mark.parametrize("input_, output_", (
("", ""),
(" ", ""),
(" #", ""),
("# ", ""),
(" # dsfsdfsdf sdfsdfsd", ""),
(" a", " a"),
(" a# sdfsfdf", " a"),
(" a # sdfsfsd x xxxxxxx # sdfs... | Add tests for get/split indent | Add tests for get/split indent
| Python | mit | 9seconds/sshrc,9seconds/concierge | # -*- coding: utf-8 -*-
import sshrc.core.lexer as lexer
import pytest
@pytest.mark.parametrize("input_, output_", (
("", ""),
(" ", ""),
(" #", ""),
("# ", ""),
(" # dsfsdfsdf sdfsdfsd", ""),
(" a", " a"),
(" a# sdfsfdf", " a"),
(" a # sdfsfsd x xxxxxxx # sdfs... | # -*- coding: utf-8 -*-
import sshrc.core.lexer as lexer
import pytest
@pytest.mark.parametrize("input_, output_", (
("", ""),
(" ", ""),
(" #", ""),
("# ", ""),
(" # dsfsdfsdf sdfsdfsd", ""),
(" a", " a"),
(" a# sdfsfdf", " a"),
(" a # sdfsfsd x xxxxxxx # sdfs... | <commit_before># -*- coding: utf-8 -*-
import sshrc.core.lexer as lexer
import pytest
@pytest.mark.parametrize("input_, output_", (
("", ""),
(" ", ""),
(" #", ""),
("# ", ""),
(" # dsfsdfsdf sdfsdfsd", ""),
(" a", " a"),
(" a# sdfsfdf", " a"),
(" a # sdfsfsd x... | # -*- coding: utf-8 -*-
import sshrc.core.lexer as lexer
import pytest
@pytest.mark.parametrize("input_, output_", (
("", ""),
(" ", ""),
(" #", ""),
("# ", ""),
(" # dsfsdfsdf sdfsdfsd", ""),
(" a", " a"),
(" a# sdfsfdf", " a"),
(" a # sdfsfsd x xxxxxxx # sdfs... | # -*- coding: utf-8 -*-
import sshrc.core.lexer as lexer
import pytest
@pytest.mark.parametrize("input_, output_", (
("", ""),
(" ", ""),
(" #", ""),
("# ", ""),
(" # dsfsdfsdf sdfsdfsd", ""),
(" a", " a"),
(" a# sdfsfdf", " a"),
(" a # sdfsfsd x xxxxxxx # sdfs... | <commit_before># -*- coding: utf-8 -*-
import sshrc.core.lexer as lexer
import pytest
@pytest.mark.parametrize("input_, output_", (
("", ""),
(" ", ""),
(" #", ""),
("# ", ""),
(" # dsfsdfsdf sdfsdfsd", ""),
(" a", " a"),
(" a# sdfsfdf", " a"),
(" a # sdfsfsd x... |
2fc71f9b83db5d0ff9e73572ceb49011f916bcf5 | calebasse/views.py | calebasse/views.py | # -*- coding: utf-8 -*-
from django.shortcuts import render, redirect
from django.template.defaultfilters import slugify
from cbv import HOME_SERVICE_COOKIE, TemplateView
from calebasse.ressources.models import Service
APPLICATIONS = (
(u'Gestion des dossiers', 'dossiers'),
(u'Agenda', 'agenda'),
... | # -*- coding: utf-8 -*-
from django.shortcuts import render, redirect
from django.template.defaultfilters import slugify
from cbv import HOME_SERVICE_COOKIE, TemplateView
from calebasse.ressources.models import Service
APPLICATIONS = (
(u'Gestion des dossiers', 'dossiers'),
(u'Agenda', 'agenda'),
... | Reorder the service buttons display. | Reorder the service buttons display.
| Python | agpl-3.0 | ZTH1970/alcide,ZTH1970/alcide,ZTH1970/alcide,ZTH1970/alcide,ZTH1970/alcide | # -*- coding: utf-8 -*-
from django.shortcuts import render, redirect
from django.template.defaultfilters import slugify
from cbv import HOME_SERVICE_COOKIE, TemplateView
from calebasse.ressources.models import Service
APPLICATIONS = (
(u'Gestion des dossiers', 'dossiers'),
(u'Agenda', 'agenda'),
... | # -*- coding: utf-8 -*-
from django.shortcuts import render, redirect
from django.template.defaultfilters import slugify
from cbv import HOME_SERVICE_COOKIE, TemplateView
from calebasse.ressources.models import Service
APPLICATIONS = (
(u'Gestion des dossiers', 'dossiers'),
(u'Agenda', 'agenda'),
... | <commit_before># -*- coding: utf-8 -*-
from django.shortcuts import render, redirect
from django.template.defaultfilters import slugify
from cbv import HOME_SERVICE_COOKIE, TemplateView
from calebasse.ressources.models import Service
APPLICATIONS = (
(u'Gestion des dossiers', 'dossiers'),
(u'Agenda'... | # -*- coding: utf-8 -*-
from django.shortcuts import render, redirect
from django.template.defaultfilters import slugify
from cbv import HOME_SERVICE_COOKIE, TemplateView
from calebasse.ressources.models import Service
APPLICATIONS = (
(u'Gestion des dossiers', 'dossiers'),
(u'Agenda', 'agenda'),
... | # -*- coding: utf-8 -*-
from django.shortcuts import render, redirect
from django.template.defaultfilters import slugify
from cbv import HOME_SERVICE_COOKIE, TemplateView
from calebasse.ressources.models import Service
APPLICATIONS = (
(u'Gestion des dossiers', 'dossiers'),
(u'Agenda', 'agenda'),
... | <commit_before># -*- coding: utf-8 -*-
from django.shortcuts import render, redirect
from django.template.defaultfilters import slugify
from cbv import HOME_SERVICE_COOKIE, TemplateView
from calebasse.ressources.models import Service
APPLICATIONS = (
(u'Gestion des dossiers', 'dossiers'),
(u'Agenda'... |
4848baf76e4972401530b624816ba48cb08d9398 | appconf/utils.py | appconf/utils.py | import sys
def import_attribute(import_path, exception_handler=None):
from django.utils.importlib import import_module
module_name, object_name = import_path.rsplit('.', 1)
try:
module = import_module(module_name)
except: # pragma: no cover
if callable(exception_handler):
... | import sys
def import_attribute(import_path, exception_handler=None):
try:
from importlib import import_module
except ImportError:
from django.utils.importlib import import_module
module_name, object_name = import_path.rsplit('.', 1)
try:
module = import_module(module_name)
... | Use import_module from standard library if exists | Use import_module from standard library if exists
Django 1.8+ drops `django.utils.importlib`. I imagine because that is because an older version of Python (either 2.5 and/or 2.6) is being dropped. I haven't checked older versions but `importlib` exists in Python 2.7. | Python | bsd-3-clause | diox/django-appconf,carltongibson/django-appconf,django-compressor/django-appconf,jezdez/django-appconf,jessehon/django-appconf,treyhunner/django-appconf,jezdez-archive/django-appconf | import sys
def import_attribute(import_path, exception_handler=None):
from django.utils.importlib import import_module
module_name, object_name = import_path.rsplit('.', 1)
try:
module = import_module(module_name)
except: # pragma: no cover
if callable(exception_handler):
... | import sys
def import_attribute(import_path, exception_handler=None):
try:
from importlib import import_module
except ImportError:
from django.utils.importlib import import_module
module_name, object_name = import_path.rsplit('.', 1)
try:
module = import_module(module_name)
... | <commit_before>import sys
def import_attribute(import_path, exception_handler=None):
from django.utils.importlib import import_module
module_name, object_name = import_path.rsplit('.', 1)
try:
module = import_module(module_name)
except: # pragma: no cover
if callable(exception_handler... | import sys
def import_attribute(import_path, exception_handler=None):
try:
from importlib import import_module
except ImportError:
from django.utils.importlib import import_module
module_name, object_name = import_path.rsplit('.', 1)
try:
module = import_module(module_name)
... | import sys
def import_attribute(import_path, exception_handler=None):
from django.utils.importlib import import_module
module_name, object_name = import_path.rsplit('.', 1)
try:
module = import_module(module_name)
except: # pragma: no cover
if callable(exception_handler):
... | <commit_before>import sys
def import_attribute(import_path, exception_handler=None):
from django.utils.importlib import import_module
module_name, object_name = import_path.rsplit('.', 1)
try:
module = import_module(module_name)
except: # pragma: no cover
if callable(exception_handler... |
cdaf1c4a9a99a7f089470e8ceaaa226124a42cf0 | digdag-cli/src/main/resources/digdag/cli/tasks/__init__.py | digdag-cli/src/main/resources/digdag/cli/tasks/__init__.py |
class MyWorkflow(object):
def __init__(self):
pass
def step3(self, session_time = None):
print "Step3 of session %s" % session_time
|
class MyWorkflow(object):
def __init__(self):
pass
def step3(self, session_time = None):
print("Step3 of session {0}".format(session_time))
| Fix an example of python task | Fix an example of python task
The original python print method doesn't work on python3.
print(format) method works on python2 and python 3. | Python | apache-2.0 | treasure-data/digdag,treasure-data/digdag,treasure-data/digdag,treasure-data/digdag,treasure-data/digdag,KimuraTakaumi/digdag,KimuraTakaumi/digdag,treasure-data/digdag,KimuraTakaumi/digdag,treasure-data/digdag,KimuraTakaumi/digdag,KimuraTakaumi/digdag,KimuraTakaumi/digdag |
class MyWorkflow(object):
def __init__(self):
pass
def step3(self, session_time = None):
print "Step3 of session %s" % session_time
Fix an example of python task
The original python print method doesn't work on python3.
print(format) method works on python2 and python 3. |
class MyWorkflow(object):
def __init__(self):
pass
def step3(self, session_time = None):
print("Step3 of session {0}".format(session_time))
| <commit_before>
class MyWorkflow(object):
def __init__(self):
pass
def step3(self, session_time = None):
print "Step3 of session %s" % session_time
<commit_msg>Fix an example of python task
The original python print method doesn't work on python3.
print(format) method works on python2 and py... |
class MyWorkflow(object):
def __init__(self):
pass
def step3(self, session_time = None):
print("Step3 of session {0}".format(session_time))
|
class MyWorkflow(object):
def __init__(self):
pass
def step3(self, session_time = None):
print "Step3 of session %s" % session_time
Fix an example of python task
The original python print method doesn't work on python3.
print(format) method works on python2 and python 3.
class MyWorkflow(ob... | <commit_before>
class MyWorkflow(object):
def __init__(self):
pass
def step3(self, session_time = None):
print "Step3 of session %s" % session_time
<commit_msg>Fix an example of python task
The original python print method doesn't work on python3.
print(format) method works on python2 and py... |
62ba442ac447dbb4482dd15f70075d224d0e5a0e | scripts/test_conda_build_log.py | scripts/test_conda_build_log.py | import pytest
import log_parser
import os
@pytest.fixture
def parsed_log():
logname = os.path.join(os.path.split(os.path.abspath(__file__))[0],
'build.log')
gen = list(log_parser.read_log_from_script(logname))
parsed = {built_name: log_parser.parse_conda_build(lines)
... | import pytest
import log_parser
import os
@pytest.fixture
def parsed_log():
logname = os.path.join(os.path.split(os.path.abspath(__file__))[0],
'build.log')
gen = list(log_parser.read_log_from_script(logname))
parsed = {built_name: log_parser.parse_conda_build(lines)
... | Make sure there is an error field | TST: Make sure there is an error field
| Python | bsd-3-clause | NSLS-II/lightsource2-recipes,NSLS-II/auto-build-tagged-recipes,NSLS-II/lightsource2-recipes,NSLS-II/auto-build-tagged-recipes,NSLS-II/lightsource2-recipes,NSLS-II/lightsource2-recipes | import pytest
import log_parser
import os
@pytest.fixture
def parsed_log():
logname = os.path.join(os.path.split(os.path.abspath(__file__))[0],
'build.log')
gen = list(log_parser.read_log_from_script(logname))
parsed = {built_name: log_parser.parse_conda_build(lines)
... | import pytest
import log_parser
import os
@pytest.fixture
def parsed_log():
logname = os.path.join(os.path.split(os.path.abspath(__file__))[0],
'build.log')
gen = list(log_parser.read_log_from_script(logname))
parsed = {built_name: log_parser.parse_conda_build(lines)
... | <commit_before>import pytest
import log_parser
import os
@pytest.fixture
def parsed_log():
logname = os.path.join(os.path.split(os.path.abspath(__file__))[0],
'build.log')
gen = list(log_parser.read_log_from_script(logname))
parsed = {built_name: log_parser.parse_conda_build(li... | import pytest
import log_parser
import os
@pytest.fixture
def parsed_log():
logname = os.path.join(os.path.split(os.path.abspath(__file__))[0],
'build.log')
gen = list(log_parser.read_log_from_script(logname))
parsed = {built_name: log_parser.parse_conda_build(lines)
... | import pytest
import log_parser
import os
@pytest.fixture
def parsed_log():
logname = os.path.join(os.path.split(os.path.abspath(__file__))[0],
'build.log')
gen = list(log_parser.read_log_from_script(logname))
parsed = {built_name: log_parser.parse_conda_build(lines)
... | <commit_before>import pytest
import log_parser
import os
@pytest.fixture
def parsed_log():
logname = os.path.join(os.path.split(os.path.abspath(__file__))[0],
'build.log')
gen = list(log_parser.read_log_from_script(logname))
parsed = {built_name: log_parser.parse_conda_build(li... |
cad7093a3175868944acf1d2f62bad523e4f8a41 | tests/unit/utils/test_thin.py | tests/unit/utils/test_thin.py | # -*- coding: utf-8 -*-
'''
:codeauthor: :email:`Bo Maryniuk <bo@suse.de>`
'''
from __future__ import absolute_import, print_function, unicode_literals
import datetime
from tests.support.unit import TestCase, skipIf
from tests.support.mock import (
NO_MOCK,
NO_MOCK_REASON,
MagicMock,
patch)
from s... | # -*- coding: utf-8 -*-
'''
:codeauthor: :email:`Bo Maryniuk <bo@suse.de>`
'''
from __future__ import absolute_import, print_function, unicode_literals
import datetime
from tests.support.unit import TestCase, skipIf
from tests.support.mock import (
NO_MOCK,
NO_MOCK_REASON,
MagicMock,
patch)
from s... | Add unit test for missing dependencies on get_ext_tops | Add unit test for missing dependencies on get_ext_tops
| Python | apache-2.0 | saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt | # -*- coding: utf-8 -*-
'''
:codeauthor: :email:`Bo Maryniuk <bo@suse.de>`
'''
from __future__ import absolute_import, print_function, unicode_literals
import datetime
from tests.support.unit import TestCase, skipIf
from tests.support.mock import (
NO_MOCK,
NO_MOCK_REASON,
MagicMock,
patch)
from s... | # -*- coding: utf-8 -*-
'''
:codeauthor: :email:`Bo Maryniuk <bo@suse.de>`
'''
from __future__ import absolute_import, print_function, unicode_literals
import datetime
from tests.support.unit import TestCase, skipIf
from tests.support.mock import (
NO_MOCK,
NO_MOCK_REASON,
MagicMock,
patch)
from s... | <commit_before># -*- coding: utf-8 -*-
'''
:codeauthor: :email:`Bo Maryniuk <bo@suse.de>`
'''
from __future__ import absolute_import, print_function, unicode_literals
import datetime
from tests.support.unit import TestCase, skipIf
from tests.support.mock import (
NO_MOCK,
NO_MOCK_REASON,
MagicMock,
... | # -*- coding: utf-8 -*-
'''
:codeauthor: :email:`Bo Maryniuk <bo@suse.de>`
'''
from __future__ import absolute_import, print_function, unicode_literals
import datetime
from tests.support.unit import TestCase, skipIf
from tests.support.mock import (
NO_MOCK,
NO_MOCK_REASON,
MagicMock,
patch)
from s... | # -*- coding: utf-8 -*-
'''
:codeauthor: :email:`Bo Maryniuk <bo@suse.de>`
'''
from __future__ import absolute_import, print_function, unicode_literals
import datetime
from tests.support.unit import TestCase, skipIf
from tests.support.mock import (
NO_MOCK,
NO_MOCK_REASON,
MagicMock,
patch)
from s... | <commit_before># -*- coding: utf-8 -*-
'''
:codeauthor: :email:`Bo Maryniuk <bo@suse.de>`
'''
from __future__ import absolute_import, print_function, unicode_literals
import datetime
from tests.support.unit import TestCase, skipIf
from tests.support.mock import (
NO_MOCK,
NO_MOCK_REASON,
MagicMock,
... |
cb073dc49efffad56d880f63fd709e5a803e7cf6 | blog/admin.py | blog/admin.py | from django.contrib import admin
# Register your models here.
from .models import Post
from .models import UserProfile
from .models import SocialMedia
class ArticleAdmin(admin.ModelAdmin):
list_display = ("title", "category", "created", "updated", "status")
search_fields = ("title", "category", "content")
... | from django.contrib import admin
# Register your models here.
from .models import Post
from .models import UserProfile
from .models import SocialMedia
class PostAdmin(admin.ModelAdmin):
list_display = ("title", "category", "created", "updated", "status")
search_fields = ("title", "category", "content")
... | Rename model Article to Post | Rename model Article to Post
| Python | apache-2.0 | andreztz/DjangoBlog,andreztz/DjangoBlog,andreztz/DjangoBlog | from django.contrib import admin
# Register your models here.
from .models import Post
from .models import UserProfile
from .models import SocialMedia
class ArticleAdmin(admin.ModelAdmin):
list_display = ("title", "category", "created", "updated", "status")
search_fields = ("title", "category", "content")
... | from django.contrib import admin
# Register your models here.
from .models import Post
from .models import UserProfile
from .models import SocialMedia
class PostAdmin(admin.ModelAdmin):
list_display = ("title", "category", "created", "updated", "status")
search_fields = ("title", "category", "content")
... | <commit_before>from django.contrib import admin
# Register your models here.
from .models import Post
from .models import UserProfile
from .models import SocialMedia
class ArticleAdmin(admin.ModelAdmin):
list_display = ("title", "category", "created", "updated", "status")
search_fields = ("title", "category... | from django.contrib import admin
# Register your models here.
from .models import Post
from .models import UserProfile
from .models import SocialMedia
class PostAdmin(admin.ModelAdmin):
list_display = ("title", "category", "created", "updated", "status")
search_fields = ("title", "category", "content")
... | from django.contrib import admin
# Register your models here.
from .models import Post
from .models import UserProfile
from .models import SocialMedia
class ArticleAdmin(admin.ModelAdmin):
list_display = ("title", "category", "created", "updated", "status")
search_fields = ("title", "category", "content")
... | <commit_before>from django.contrib import admin
# Register your models here.
from .models import Post
from .models import UserProfile
from .models import SocialMedia
class ArticleAdmin(admin.ModelAdmin):
list_display = ("title", "category", "created", "updated", "status")
search_fields = ("title", "category... |
8d04b93852a578cec556607af4ea298ffa95e0dd | examples/makebs.config.py | examples/makebs.config.py | #!/usr/bin/env python2
#
# You may want to alter these before running ./makebuildserver
# Name of the base box to use
basebox = "testing32"
# Location where raring32.box can be found, if you don't already have
# it. For security reasons, it's recommended that you make your own
# in a secure environment using trusted ... | #!/usr/bin/env python2
#
# You may want to alter these before running ./makebuildserver
# Name of the base box to use
basebox = "testing32"
# Location where testing32.box can be found, if you don't already have
# it. For security reasons, it's recommended that you make your own
# in a secure environment using trusted... | Update comment referring to old "raring32.box" image | Update comment referring to old "raring32.box" image
| Python | agpl-3.0 | matlink/fdroidserver,matlink/fdroidserver,f-droid/fdroidserver,f-droid/fdroid-server,f-droid/fdroid-server,fdroidtravis/fdroidserver,matlink/fdroidserver,f-droid/fdroidserver,OneEducation/AppUniverse_Server,fdroidtravis/fdroidserver,f-droid/fdroid-server,fdroidtravis/fdroidserver,matlink/fdroidserver,f-droid/fdroid-ser... | #!/usr/bin/env python2
#
# You may want to alter these before running ./makebuildserver
# Name of the base box to use
basebox = "testing32"
# Location where raring32.box can be found, if you don't already have
# it. For security reasons, it's recommended that you make your own
# in a secure environment using trusted ... | #!/usr/bin/env python2
#
# You may want to alter these before running ./makebuildserver
# Name of the base box to use
basebox = "testing32"
# Location where testing32.box can be found, if you don't already have
# it. For security reasons, it's recommended that you make your own
# in a secure environment using trusted... | <commit_before>#!/usr/bin/env python2
#
# You may want to alter these before running ./makebuildserver
# Name of the base box to use
basebox = "testing32"
# Location where raring32.box can be found, if you don't already have
# it. For security reasons, it's recommended that you make your own
# in a secure environment... | #!/usr/bin/env python2
#
# You may want to alter these before running ./makebuildserver
# Name of the base box to use
basebox = "testing32"
# Location where testing32.box can be found, if you don't already have
# it. For security reasons, it's recommended that you make your own
# in a secure environment using trusted... | #!/usr/bin/env python2
#
# You may want to alter these before running ./makebuildserver
# Name of the base box to use
basebox = "testing32"
# Location where raring32.box can be found, if you don't already have
# it. For security reasons, it's recommended that you make your own
# in a secure environment using trusted ... | <commit_before>#!/usr/bin/env python2
#
# You may want to alter these before running ./makebuildserver
# Name of the base box to use
basebox = "testing32"
# Location where raring32.box can be found, if you don't already have
# it. For security reasons, it's recommended that you make your own
# in a secure environment... |
ec44992c82d25eb865f25c76adc1cace8bd8815a | dags/euctr.py | dags/euctr.py | from datetime import datetime
from airflow.models import DAG
from airflow.operators.latest_only_operator import LatestOnlyOperator
import utils.helpers as helpers
args = {
'owner': 'airflow',
'depends_on_past': False,
'start_date': datetime(2016, 12, 1),
'retries': 1,
}
dag = DAG(
dag_id='euctr',
... | from datetime import datetime
from airflow.models import DAG
from airflow.operators.latest_only_operator import LatestOnlyOperator
import utils.helpers as helpers
args = {
'owner': 'airflow',
'depends_on_past': False,
'start_date': datetime(2016, 12, 1),
'retries': 1,
}
dag = DAG(
dag_id='euctr',
... | Change EUCTR schedule to @weekly | Change EUCTR schedule to @weekly
| Python | mpl-2.0 | opentrials/opentrials-airflow,opentrials/opentrials-airflow | from datetime import datetime
from airflow.models import DAG
from airflow.operators.latest_only_operator import LatestOnlyOperator
import utils.helpers as helpers
args = {
'owner': 'airflow',
'depends_on_past': False,
'start_date': datetime(2016, 12, 1),
'retries': 1,
}
dag = DAG(
dag_id='euctr',
... | from datetime import datetime
from airflow.models import DAG
from airflow.operators.latest_only_operator import LatestOnlyOperator
import utils.helpers as helpers
args = {
'owner': 'airflow',
'depends_on_past': False,
'start_date': datetime(2016, 12, 1),
'retries': 1,
}
dag = DAG(
dag_id='euctr',
... | <commit_before>from datetime import datetime
from airflow.models import DAG
from airflow.operators.latest_only_operator import LatestOnlyOperator
import utils.helpers as helpers
args = {
'owner': 'airflow',
'depends_on_past': False,
'start_date': datetime(2016, 12, 1),
'retries': 1,
}
dag = DAG(
d... | from datetime import datetime
from airflow.models import DAG
from airflow.operators.latest_only_operator import LatestOnlyOperator
import utils.helpers as helpers
args = {
'owner': 'airflow',
'depends_on_past': False,
'start_date': datetime(2016, 12, 1),
'retries': 1,
}
dag = DAG(
dag_id='euctr',
... | from datetime import datetime
from airflow.models import DAG
from airflow.operators.latest_only_operator import LatestOnlyOperator
import utils.helpers as helpers
args = {
'owner': 'airflow',
'depends_on_past': False,
'start_date': datetime(2016, 12, 1),
'retries': 1,
}
dag = DAG(
dag_id='euctr',
... | <commit_before>from datetime import datetime
from airflow.models import DAG
from airflow.operators.latest_only_operator import LatestOnlyOperator
import utils.helpers as helpers
args = {
'owner': 'airflow',
'depends_on_past': False,
'start_date': datetime(2016, 12, 1),
'retries': 1,
}
dag = DAG(
d... |
158eb354c4860456bf12910c5f737b07c0a313a3 | .meta_yaml_replacer.py | .meta_yaml_replacer.py | #!/usr/bin/env python
# Copyright (c) 2016, Michael Boyle
# See LICENSE file for details: <https://github.com/moble/quaternion/blob/master/LICENSE>
from __future__ import print_function
import fileinput
from auto_version import calculate_version
version_string = calculate_version()
f = fileinput.FileInput('meta.ya... | #!/usr/bin/env python
# Copyright (c) 2016, Michael Boyle
# See LICENSE file for details: <https://github.com/moble/quaternion/blob/master/LICENSE>
from __future__ import print_function
import fileinput
from auto_version import calculate_version
version_string = calculate_version().replace('+dirty', '')
f = filein... | Remove "+dirty" from conda versions | Remove "+dirty" from conda versions
| Python | mit | moble/quaternion,moble/quaternion | #!/usr/bin/env python
# Copyright (c) 2016, Michael Boyle
# See LICENSE file for details: <https://github.com/moble/quaternion/blob/master/LICENSE>
from __future__ import print_function
import fileinput
from auto_version import calculate_version
version_string = calculate_version()
f = fileinput.FileInput('meta.ya... | #!/usr/bin/env python
# Copyright (c) 2016, Michael Boyle
# See LICENSE file for details: <https://github.com/moble/quaternion/blob/master/LICENSE>
from __future__ import print_function
import fileinput
from auto_version import calculate_version
version_string = calculate_version().replace('+dirty', '')
f = filein... | <commit_before>#!/usr/bin/env python
# Copyright (c) 2016, Michael Boyle
# See LICENSE file for details: <https://github.com/moble/quaternion/blob/master/LICENSE>
from __future__ import print_function
import fileinput
from auto_version import calculate_version
version_string = calculate_version()
f = fileinput.Fil... | #!/usr/bin/env python
# Copyright (c) 2016, Michael Boyle
# See LICENSE file for details: <https://github.com/moble/quaternion/blob/master/LICENSE>
from __future__ import print_function
import fileinput
from auto_version import calculate_version
version_string = calculate_version().replace('+dirty', '')
f = filein... | #!/usr/bin/env python
# Copyright (c) 2016, Michael Boyle
# See LICENSE file for details: <https://github.com/moble/quaternion/blob/master/LICENSE>
from __future__ import print_function
import fileinput
from auto_version import calculate_version
version_string = calculate_version()
f = fileinput.FileInput('meta.ya... | <commit_before>#!/usr/bin/env python
# Copyright (c) 2016, Michael Boyle
# See LICENSE file for details: <https://github.com/moble/quaternion/blob/master/LICENSE>
from __future__ import print_function
import fileinput
from auto_version import calculate_version
version_string = calculate_version()
f = fileinput.Fil... |
117b202a1c28282a2c27a545c3da29df9e5675ec | ds_unordered_list.py | ds_unordered_list.py | from __future__ import print_function
class List(object):
"""List class."""
def __init__(self):
pass
def add(self, item):
pass
def remove(self, item):
pass
def search(self, item):
pass
def is_empty(self):
pass
def length(self):
pass
... | from __future__ import print_function
class Node(object):
"""Node class as building block for unordered list."""
def __init__(self, init_data):
pass
def get_data(self):
pass
def get_next(self):
pass
def set_data(self, new_data):
pass
def set_next(self, new_n... | Add node class for unordered list building block | Add node class for unordered list building block
| Python | bsd-2-clause | bowen0701/algorithms_data_structures | from __future__ import print_function
class List(object):
"""List class."""
def __init__(self):
pass
def add(self, item):
pass
def remove(self, item):
pass
def search(self, item):
pass
def is_empty(self):
pass
def length(self):
pass
... | from __future__ import print_function
class Node(object):
"""Node class as building block for unordered list."""
def __init__(self, init_data):
pass
def get_data(self):
pass
def get_next(self):
pass
def set_data(self, new_data):
pass
def set_next(self, new_n... | <commit_before>from __future__ import print_function
class List(object):
"""List class."""
def __init__(self):
pass
def add(self, item):
pass
def remove(self, item):
pass
def search(self, item):
pass
def is_empty(self):
pass
def length(self):
... | from __future__ import print_function
class Node(object):
"""Node class as building block for unordered list."""
def __init__(self, init_data):
pass
def get_data(self):
pass
def get_next(self):
pass
def set_data(self, new_data):
pass
def set_next(self, new_n... | from __future__ import print_function
class List(object):
"""List class."""
def __init__(self):
pass
def add(self, item):
pass
def remove(self, item):
pass
def search(self, item):
pass
def is_empty(self):
pass
def length(self):
pass
... | <commit_before>from __future__ import print_function
class List(object):
"""List class."""
def __init__(self):
pass
def add(self, item):
pass
def remove(self, item):
pass
def search(self, item):
pass
def is_empty(self):
pass
def length(self):
... |
65a6f21e992cc51238c6916895e9cf2f2b2bab21 | driver_code_test.py | driver_code_test.py | import SimpleCV as scv
from SimpleCV import Image
import cv2
import time
from start_camera import start_camera
import threading
def take_50_pictures():
camera_thread = threading.Thread(target=start_camera)
camera_thread.start()
from get_images_from_pi import get_image, valid_image
time.sleep(2)
count = 0
w... | import SimpleCV as scv
from SimpleCV import Image
import cv2
import time
from start_camera import start_camera
import threading
def take_50_pictures():
camera_thread = threading.Thread(target=start_camera)
camera_thread.start()
from get_images_from_pi import get_image, valid_image
time.sleep(2)
count = 0
w... | Make detect stop sign function for Henry to add into class | Make detect stop sign function for Henry to add into class
| Python | mit | jwarshaw/RaspberryDrive | import SimpleCV as scv
from SimpleCV import Image
import cv2
import time
from start_camera import start_camera
import threading
def take_50_pictures():
camera_thread = threading.Thread(target=start_camera)
camera_thread.start()
from get_images_from_pi import get_image, valid_image
time.sleep(2)
count = 0
w... | import SimpleCV as scv
from SimpleCV import Image
import cv2
import time
from start_camera import start_camera
import threading
def take_50_pictures():
camera_thread = threading.Thread(target=start_camera)
camera_thread.start()
from get_images_from_pi import get_image, valid_image
time.sleep(2)
count = 0
w... | <commit_before>import SimpleCV as scv
from SimpleCV import Image
import cv2
import time
from start_camera import start_camera
import threading
def take_50_pictures():
camera_thread = threading.Thread(target=start_camera)
camera_thread.start()
from get_images_from_pi import get_image, valid_image
time.sleep(2)
... | import SimpleCV as scv
from SimpleCV import Image
import cv2
import time
from start_camera import start_camera
import threading
def take_50_pictures():
camera_thread = threading.Thread(target=start_camera)
camera_thread.start()
from get_images_from_pi import get_image, valid_image
time.sleep(2)
count = 0
w... | import SimpleCV as scv
from SimpleCV import Image
import cv2
import time
from start_camera import start_camera
import threading
def take_50_pictures():
camera_thread = threading.Thread(target=start_camera)
camera_thread.start()
from get_images_from_pi import get_image, valid_image
time.sleep(2)
count = 0
w... | <commit_before>import SimpleCV as scv
from SimpleCV import Image
import cv2
import time
from start_camera import start_camera
import threading
def take_50_pictures():
camera_thread = threading.Thread(target=start_camera)
camera_thread.start()
from get_images_from_pi import get_image, valid_image
time.sleep(2)
... |
c84c4ce448f367be0d1759ad20fc8dc58de8fc89 | requests_aws_sign/requests_aws_sign.py | requests_aws_sign/requests_aws_sign.py | try:
from urllib.parse import urlparse
except ImportError:
from urlparse import urlparse
from botocore.auth import SigV4Auth
from botocore.awsrequest import AWSRequest
import requests
class AWSV4Sign(requests.auth.AuthBase):
"""
AWS V4 Request Signer for Requests.
"""
def __init__(self, crede... | try:
from urllib.parse import urlparse, urlencode, parse_qs
except ImportError:
from urlparse import urlparse, parse_qs
from urllib import urlencode
from botocore.auth import SigV4Auth
from botocore.awsrequest import AWSRequest
import requests
class AWSV4Sign(requests.auth.AuthBase):
"""
AWS V4 Re... | Handle special characters by urlencode, like 'q=id:123' | Handle special characters by urlencode, like 'q=id:123'
| Python | isc | jmenga/requests-aws-sign | try:
from urllib.parse import urlparse
except ImportError:
from urlparse import urlparse
from botocore.auth import SigV4Auth
from botocore.awsrequest import AWSRequest
import requests
class AWSV4Sign(requests.auth.AuthBase):
"""
AWS V4 Request Signer for Requests.
"""
def __init__(self, crede... | try:
from urllib.parse import urlparse, urlencode, parse_qs
except ImportError:
from urlparse import urlparse, parse_qs
from urllib import urlencode
from botocore.auth import SigV4Auth
from botocore.awsrequest import AWSRequest
import requests
class AWSV4Sign(requests.auth.AuthBase):
"""
AWS V4 Re... | <commit_before>try:
from urllib.parse import urlparse
except ImportError:
from urlparse import urlparse
from botocore.auth import SigV4Auth
from botocore.awsrequest import AWSRequest
import requests
class AWSV4Sign(requests.auth.AuthBase):
"""
AWS V4 Request Signer for Requests.
"""
def __ini... | try:
from urllib.parse import urlparse, urlencode, parse_qs
except ImportError:
from urlparse import urlparse, parse_qs
from urllib import urlencode
from botocore.auth import SigV4Auth
from botocore.awsrequest import AWSRequest
import requests
class AWSV4Sign(requests.auth.AuthBase):
"""
AWS V4 Re... | try:
from urllib.parse import urlparse
except ImportError:
from urlparse import urlparse
from botocore.auth import SigV4Auth
from botocore.awsrequest import AWSRequest
import requests
class AWSV4Sign(requests.auth.AuthBase):
"""
AWS V4 Request Signer for Requests.
"""
def __init__(self, crede... | <commit_before>try:
from urllib.parse import urlparse
except ImportError:
from urlparse import urlparse
from botocore.auth import SigV4Auth
from botocore.awsrequest import AWSRequest
import requests
class AWSV4Sign(requests.auth.AuthBase):
"""
AWS V4 Request Signer for Requests.
"""
def __ini... |
0a2e0798dcd257d1c0f3b9cf923af38487d3adde | setup.py | setup.py | from setuptools import setup
# To set __version__
__version__ = '0.0.2'
setup(name="socketconsole",
version=__version__,
py_modules=['socketconsole'],
description="Unix socket access to python thread dump",
zip_safe=False,
entry_points={
'console_scripts': [
'socketreader=sock... | from setuptools import setup
# To set __version__
__version__ = '0.0.3'
setup(name="socketconsole",
version=__version__,
py_modules=['socketconsole', 'socketreader'],
description="Unix socket access to python thread dump",
zip_safe=False,
entry_points={
'console_scripts': [
's... | Make sure script is included | Make sure script is included
| Python | bsd-3-clause | robotadam/socketconsole | from setuptools import setup
# To set __version__
__version__ = '0.0.2'
setup(name="socketconsole",
version=__version__,
py_modules=['socketconsole'],
description="Unix socket access to python thread dump",
zip_safe=False,
entry_points={
'console_scripts': [
'socketreader=sock... | from setuptools import setup
# To set __version__
__version__ = '0.0.3'
setup(name="socketconsole",
version=__version__,
py_modules=['socketconsole', 'socketreader'],
description="Unix socket access to python thread dump",
zip_safe=False,
entry_points={
'console_scripts': [
's... | <commit_before>from setuptools import setup
# To set __version__
__version__ = '0.0.2'
setup(name="socketconsole",
version=__version__,
py_modules=['socketconsole'],
description="Unix socket access to python thread dump",
zip_safe=False,
entry_points={
'console_scripts': [
'so... | from setuptools import setup
# To set __version__
__version__ = '0.0.3'
setup(name="socketconsole",
version=__version__,
py_modules=['socketconsole', 'socketreader'],
description="Unix socket access to python thread dump",
zip_safe=False,
entry_points={
'console_scripts': [
's... | from setuptools import setup
# To set __version__
__version__ = '0.0.2'
setup(name="socketconsole",
version=__version__,
py_modules=['socketconsole'],
description="Unix socket access to python thread dump",
zip_safe=False,
entry_points={
'console_scripts': [
'socketreader=sock... | <commit_before>from setuptools import setup
# To set __version__
__version__ = '0.0.2'
setup(name="socketconsole",
version=__version__,
py_modules=['socketconsole'],
description="Unix socket access to python thread dump",
zip_safe=False,
entry_points={
'console_scripts': [
'so... |
f453181fd28f914c285a0cdc6d066c740206ea3d | setup.py | setup.py | """A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
from setuptools import setup, find_packages
setup(
name='integrate',
version='1.1.0',
description='Test framework for integration tests with dependencies',
url='https://githu... | """A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
from setuptools import setup, find_packages
setup(
name='integrate',
version='1.1.1',
description='Test framework for integration tests with dependencies',
url='https://githu... | Increment patch version for Readme update | Increment patch version for Readme update
| Python | bsd-3-clause | anfema/integrate | """A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
from setuptools import setup, find_packages
setup(
name='integrate',
version='1.1.0',
description='Test framework for integration tests with dependencies',
url='https://githu... | """A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
from setuptools import setup, find_packages
setup(
name='integrate',
version='1.1.1',
description='Test framework for integration tests with dependencies',
url='https://githu... | <commit_before>"""A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
from setuptools import setup, find_packages
setup(
name='integrate',
version='1.1.0',
description='Test framework for integration tests with dependencies',
url... | """A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
from setuptools import setup, find_packages
setup(
name='integrate',
version='1.1.1',
description='Test framework for integration tests with dependencies',
url='https://githu... | """A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
from setuptools import setup, find_packages
setup(
name='integrate',
version='1.1.0',
description='Test framework for integration tests with dependencies',
url='https://githu... | <commit_before>"""A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
from setuptools import setup, find_packages
setup(
name='integrate',
version='1.1.0',
description='Test framework for integration tests with dependencies',
url... |
6107e4d6b2d437c2762b2b93071e44ccdb508948 | setup.py | setup.py | #!/usr/bin/env python3
"""
Dispatch your torrents into multiple watchdirs
See:
https://github.com/Anthony25/torrents_dispatcher
"""
from os import path
from setuptools import setup
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, "README.mkd")... | #!/usr/bin/env python3
"""
Dispatch your torrents into multiple watchdirs
See:
https://github.com/Anthony25/torrents_dispatcher
"""
from os import path
from setuptools import setup
here = path.abspath(path.dirname(__file__))
setup(
name="torrents_dispatcher",
version="0.0.1",
description="Dispatch ... | Fix build failure with pip | Fix build failure with pip
| Python | bsd-2-clause | Anthony25/torrents_dispatcher | #!/usr/bin/env python3
"""
Dispatch your torrents into multiple watchdirs
See:
https://github.com/Anthony25/torrents_dispatcher
"""
from os import path
from setuptools import setup
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, "README.mkd")... | #!/usr/bin/env python3
"""
Dispatch your torrents into multiple watchdirs
See:
https://github.com/Anthony25/torrents_dispatcher
"""
from os import path
from setuptools import setup
here = path.abspath(path.dirname(__file__))
setup(
name="torrents_dispatcher",
version="0.0.1",
description="Dispatch ... | <commit_before>#!/usr/bin/env python3
"""
Dispatch your torrents into multiple watchdirs
See:
https://github.com/Anthony25/torrents_dispatcher
"""
from os import path
from setuptools import setup
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here... | #!/usr/bin/env python3
"""
Dispatch your torrents into multiple watchdirs
See:
https://github.com/Anthony25/torrents_dispatcher
"""
from os import path
from setuptools import setup
here = path.abspath(path.dirname(__file__))
setup(
name="torrents_dispatcher",
version="0.0.1",
description="Dispatch ... | #!/usr/bin/env python3
"""
Dispatch your torrents into multiple watchdirs
See:
https://github.com/Anthony25/torrents_dispatcher
"""
from os import path
from setuptools import setup
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, "README.mkd")... | <commit_before>#!/usr/bin/env python3
"""
Dispatch your torrents into multiple watchdirs
See:
https://github.com/Anthony25/torrents_dispatcher
"""
from os import path
from setuptools import setup
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here... |
d506ceb3e3327f086b79cf38d39b34d5825132d0 | dynamite/message.py | dynamite/message.py | import enum
class Opcode(enum.IntEnum):
QUERY = 0
IQUERY = 1
STATUS = 2
class ResponseCode(enum.IntEnum):
NO_ERROR = 0
FORMAT_ERROR = 1
SERVER_ERROR = 2
NAME_ERROR = 3
NOT_IMPLEMENTED = 4
REFUSED = 5
class Message:
def to_bytes():
return b''
class MessageParser:
... | import enum
class OPCode(enum.IntEnum):
QUERY = 0
IQUERY = 1
STATUS = 2
class RCode(enum.IntEnum):
NO_ERROR = 0
FORMAT_ERROR = 1
SERVER_ERROR = 2
NAME_ERROR = 3
NOT_IMPLEMENTED = 4
REFUSED = 5
class Message:
def to_bytes():
return b''
class MessageParser:
de... | Use names as indicated in RFC 1035 | Use names as indicated in RFC 1035
| Python | apache-2.0 | svisser/dynamite | import enum
class Opcode(enum.IntEnum):
QUERY = 0
IQUERY = 1
STATUS = 2
class ResponseCode(enum.IntEnum):
NO_ERROR = 0
FORMAT_ERROR = 1
SERVER_ERROR = 2
NAME_ERROR = 3
NOT_IMPLEMENTED = 4
REFUSED = 5
class Message:
def to_bytes():
return b''
class MessageParser:
... | import enum
class OPCode(enum.IntEnum):
QUERY = 0
IQUERY = 1
STATUS = 2
class RCode(enum.IntEnum):
NO_ERROR = 0
FORMAT_ERROR = 1
SERVER_ERROR = 2
NAME_ERROR = 3
NOT_IMPLEMENTED = 4
REFUSED = 5
class Message:
def to_bytes():
return b''
class MessageParser:
de... | <commit_before>import enum
class Opcode(enum.IntEnum):
QUERY = 0
IQUERY = 1
STATUS = 2
class ResponseCode(enum.IntEnum):
NO_ERROR = 0
FORMAT_ERROR = 1
SERVER_ERROR = 2
NAME_ERROR = 3
NOT_IMPLEMENTED = 4
REFUSED = 5
class Message:
def to_bytes():
return b''
class ... | import enum
class OPCode(enum.IntEnum):
QUERY = 0
IQUERY = 1
STATUS = 2
class RCode(enum.IntEnum):
NO_ERROR = 0
FORMAT_ERROR = 1
SERVER_ERROR = 2
NAME_ERROR = 3
NOT_IMPLEMENTED = 4
REFUSED = 5
class Message:
def to_bytes():
return b''
class MessageParser:
de... | import enum
class Opcode(enum.IntEnum):
QUERY = 0
IQUERY = 1
STATUS = 2
class ResponseCode(enum.IntEnum):
NO_ERROR = 0
FORMAT_ERROR = 1
SERVER_ERROR = 2
NAME_ERROR = 3
NOT_IMPLEMENTED = 4
REFUSED = 5
class Message:
def to_bytes():
return b''
class MessageParser:
... | <commit_before>import enum
class Opcode(enum.IntEnum):
QUERY = 0
IQUERY = 1
STATUS = 2
class ResponseCode(enum.IntEnum):
NO_ERROR = 0
FORMAT_ERROR = 1
SERVER_ERROR = 2
NAME_ERROR = 3
NOT_IMPLEMENTED = 4
REFUSED = 5
class Message:
def to_bytes():
return b''
class ... |
895652eabfd8313b15015969dc9b7459d9c890d5 | setup.py | setup.py | from setuptools import setup
import codecs
import schema
setup(
name=schema.__name__,
version=schema.__version__,
author="Vladimir Keleshev",
author_email="vladimir@keleshev.com",
description="Simple data validation library",
license="MIT",
keywords="schema json validation",
url="http... | from setuptools import setup
import codecs
import schema
setup(
name=schema.__name__,
version=schema.__version__,
author="Vladimir Keleshev",
author_email="vladimir@keleshev.com",
description="Simple data validation library",
license="MIT",
keywords="schema json validation",
url="http... | Add Python 3.7 to the list of Trove classifiers | Add Python 3.7 to the list of Trove classifiers | Python | mit | keleshev/schema | from setuptools import setup
import codecs
import schema
setup(
name=schema.__name__,
version=schema.__version__,
author="Vladimir Keleshev",
author_email="vladimir@keleshev.com",
description="Simple data validation library",
license="MIT",
keywords="schema json validation",
url="http... | from setuptools import setup
import codecs
import schema
setup(
name=schema.__name__,
version=schema.__version__,
author="Vladimir Keleshev",
author_email="vladimir@keleshev.com",
description="Simple data validation library",
license="MIT",
keywords="schema json validation",
url="http... | <commit_before>from setuptools import setup
import codecs
import schema
setup(
name=schema.__name__,
version=schema.__version__,
author="Vladimir Keleshev",
author_email="vladimir@keleshev.com",
description="Simple data validation library",
license="MIT",
keywords="schema json validation"... | from setuptools import setup
import codecs
import schema
setup(
name=schema.__name__,
version=schema.__version__,
author="Vladimir Keleshev",
author_email="vladimir@keleshev.com",
description="Simple data validation library",
license="MIT",
keywords="schema json validation",
url="http... | from setuptools import setup
import codecs
import schema
setup(
name=schema.__name__,
version=schema.__version__,
author="Vladimir Keleshev",
author_email="vladimir@keleshev.com",
description="Simple data validation library",
license="MIT",
keywords="schema json validation",
url="http... | <commit_before>from setuptools import setup
import codecs
import schema
setup(
name=schema.__name__,
version=schema.__version__,
author="Vladimir Keleshev",
author_email="vladimir@keleshev.com",
description="Simple data validation library",
license="MIT",
keywords="schema json validation"... |
4bb450a883ba0a851c823491540dd7294216c2d0 | setup.py | setup.py | # -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
from hsync._version import __version__
setup(
name = 'hsync',
version = __version__,
author = 'André Lucas',
author_email = 'andre.lucas@devinfotech.co.uk',
license = 'BSD',
packages = [ 'hsy... | # -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
from hsync._version import __version__
setup(
name = 'hsync',
version = __version__,
author = 'Andre Lucas',
author_email = 'andre.lucas@devinfotech.co.uk',
license = 'BSD',
packages = [ 'hsy... | Remove the non-ASCII character. Safer. | Remove the non-ASCII character. Safer.
Works fine with setup.py, but py2dsc gets upset.
| Python | bsd-3-clause | andrelucas/hsync | # -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
from hsync._version import __version__
setup(
name = 'hsync',
version = __version__,
author = 'André Lucas',
author_email = 'andre.lucas@devinfotech.co.uk',
license = 'BSD',
packages = [ 'hsy... | # -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
from hsync._version import __version__
setup(
name = 'hsync',
version = __version__,
author = 'Andre Lucas',
author_email = 'andre.lucas@devinfotech.co.uk',
license = 'BSD',
packages = [ 'hsy... | <commit_before># -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
from hsync._version import __version__
setup(
name = 'hsync',
version = __version__,
author = 'André Lucas',
author_email = 'andre.lucas@devinfotech.co.uk',
license = 'BSD',
pa... | # -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
from hsync._version import __version__
setup(
name = 'hsync',
version = __version__,
author = 'Andre Lucas',
author_email = 'andre.lucas@devinfotech.co.uk',
license = 'BSD',
packages = [ 'hsy... | # -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
from hsync._version import __version__
setup(
name = 'hsync',
version = __version__,
author = 'André Lucas',
author_email = 'andre.lucas@devinfotech.co.uk',
license = 'BSD',
packages = [ 'hsy... | <commit_before># -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
from hsync._version import __version__
setup(
name = 'hsync',
version = __version__,
author = 'André Lucas',
author_email = 'andre.lucas@devinfotech.co.uk',
license = 'BSD',
pa... |
fbbdef69f8c234926d644d1c5c77dc1bae1c4a21 | setup.py | setup.py | from __future__ import unicode_literals
from codecs import open as codecs_open
from setuptools import setup, find_packages
# Get the long description from the relevant file
with codecs_open('README.rst', encoding='utf-8') as f:
long_description = f.read()
setup(
name='geog',
version='0.0.1',
descrip... | from __future__ import unicode_literals
from codecs import open as codecs_open
from setuptools import setup, find_packages
# Get the long description from the relevant file
with codecs_open('README.rst', encoding='utf-8') as f:
long_description = f.read()
setup(
name='geog',
version='0.0.1',
descrip... | Add tox to test extras | Add tox to test extras
| Python | mit | jwass/geog | from __future__ import unicode_literals
from codecs import open as codecs_open
from setuptools import setup, find_packages
# Get the long description from the relevant file
with codecs_open('README.rst', encoding='utf-8') as f:
long_description = f.read()
setup(
name='geog',
version='0.0.1',
descrip... | from __future__ import unicode_literals
from codecs import open as codecs_open
from setuptools import setup, find_packages
# Get the long description from the relevant file
with codecs_open('README.rst', encoding='utf-8') as f:
long_description = f.read()
setup(
name='geog',
version='0.0.1',
descrip... | <commit_before>from __future__ import unicode_literals
from codecs import open as codecs_open
from setuptools import setup, find_packages
# Get the long description from the relevant file
with codecs_open('README.rst', encoding='utf-8') as f:
long_description = f.read()
setup(
name='geog',
version='0.0.... | from __future__ import unicode_literals
from codecs import open as codecs_open
from setuptools import setup, find_packages
# Get the long description from the relevant file
with codecs_open('README.rst', encoding='utf-8') as f:
long_description = f.read()
setup(
name='geog',
version='0.0.1',
descrip... | from __future__ import unicode_literals
from codecs import open as codecs_open
from setuptools import setup, find_packages
# Get the long description from the relevant file
with codecs_open('README.rst', encoding='utf-8') as f:
long_description = f.read()
setup(
name='geog',
version='0.0.1',
descrip... | <commit_before>from __future__ import unicode_literals
from codecs import open as codecs_open
from setuptools import setup, find_packages
# Get the long description from the relevant file
with codecs_open('README.rst', encoding='utf-8') as f:
long_description = f.read()
setup(
name='geog',
version='0.0.... |
69a94a60d04991ba5f8c25276455dedc3a0b898c | setup.py | setup.py | from distutils.core import setup
setup(
name='pypicache',
version='0.1',
description='PyPI caching and proxying server',
author='Michael Twomey',
author_email='mick@twomeylee.name',
url='http://readthedocs.org/projects/pypicache/',
packages=['pypicache'],
)
| from distutils.core import setup
setup(
name='pypicache',
version='0.1',
description='PyPI caching and proxying server',
author='Michael Twomey',
author_email='mick@twomeylee.name',
url='http://readthedocs.org/projects/pypicache/',
packages=['pypicache'],
package_data={
'pypicac... | Install assets when installing the package. | Install assets when installing the package.
| Python | bsd-2-clause | micktwomey/pypicache | from distutils.core import setup
setup(
name='pypicache',
version='0.1',
description='PyPI caching and proxying server',
author='Michael Twomey',
author_email='mick@twomeylee.name',
url='http://readthedocs.org/projects/pypicache/',
packages=['pypicache'],
)
Install assets when installing th... | from distutils.core import setup
setup(
name='pypicache',
version='0.1',
description='PyPI caching and proxying server',
author='Michael Twomey',
author_email='mick@twomeylee.name',
url='http://readthedocs.org/projects/pypicache/',
packages=['pypicache'],
package_data={
'pypicac... | <commit_before>from distutils.core import setup
setup(
name='pypicache',
version='0.1',
description='PyPI caching and proxying server',
author='Michael Twomey',
author_email='mick@twomeylee.name',
url='http://readthedocs.org/projects/pypicache/',
packages=['pypicache'],
)
<commit_msg>Instal... | from distutils.core import setup
setup(
name='pypicache',
version='0.1',
description='PyPI caching and proxying server',
author='Michael Twomey',
author_email='mick@twomeylee.name',
url='http://readthedocs.org/projects/pypicache/',
packages=['pypicache'],
package_data={
'pypicac... | from distutils.core import setup
setup(
name='pypicache',
version='0.1',
description='PyPI caching and proxying server',
author='Michael Twomey',
author_email='mick@twomeylee.name',
url='http://readthedocs.org/projects/pypicache/',
packages=['pypicache'],
)
Install assets when installing th... | <commit_before>from distutils.core import setup
setup(
name='pypicache',
version='0.1',
description='PyPI caching and proxying server',
author='Michael Twomey',
author_email='mick@twomeylee.name',
url='http://readthedocs.org/projects/pypicache/',
packages=['pypicache'],
)
<commit_msg>Instal... |
15e7e578a211d9af4ed68ccf02361c06308c7d4e | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
long_description = open('README.rst').read()
setup(name="quik",
version="0.2.2-dev",
description="A fast and lightweight Python template engine",
long_description=long_description,
author="Thiago Avelino",
author_email="thiago@avelino.x... | #!/usr/bin/env python
from setuptools import setup
long_description = open('README.rst').read()
setup(name="quik",
version="0.2.2-dev",
description="A fast and lightweight Python template engine",
long_description=long_description,
author="Thiago Avelino",
author_email="thiago@avelino.x... | Change lincense, BSD to MIT | Change lincense, BSD to MIT
| Python | mit | avelino/quik | #!/usr/bin/env python
from setuptools import setup
long_description = open('README.rst').read()
setup(name="quik",
version="0.2.2-dev",
description="A fast and lightweight Python template engine",
long_description=long_description,
author="Thiago Avelino",
author_email="thiago@avelino.x... | #!/usr/bin/env python
from setuptools import setup
long_description = open('README.rst').read()
setup(name="quik",
version="0.2.2-dev",
description="A fast and lightweight Python template engine",
long_description=long_description,
author="Thiago Avelino",
author_email="thiago@avelino.x... | <commit_before>#!/usr/bin/env python
from setuptools import setup
long_description = open('README.rst').read()
setup(name="quik",
version="0.2.2-dev",
description="A fast and lightweight Python template engine",
long_description=long_description,
author="Thiago Avelino",
author_email="t... | #!/usr/bin/env python
from setuptools import setup
long_description = open('README.rst').read()
setup(name="quik",
version="0.2.2-dev",
description="A fast and lightweight Python template engine",
long_description=long_description,
author="Thiago Avelino",
author_email="thiago@avelino.x... | #!/usr/bin/env python
from setuptools import setup
long_description = open('README.rst').read()
setup(name="quik",
version="0.2.2-dev",
description="A fast and lightweight Python template engine",
long_description=long_description,
author="Thiago Avelino",
author_email="thiago@avelino.x... | <commit_before>#!/usr/bin/env python
from setuptools import setup
long_description = open('README.rst').read()
setup(name="quik",
version="0.2.2-dev",
description="A fast and lightweight Python template engine",
long_description=long_description,
author="Thiago Avelino",
author_email="t... |
384fd7ba49ad0cfcb173656a5e31475e8c9b49b3 | setup.py | setup.py | from distutils.core import setup
import nagios
setup(name='nagios-api',
version=nagios.version,
description='Control nagios using an API',
author='Mark Smith',
author_email='mark@qq.is',
license='BSD New (3-clause) License',
long_description=open('README.md').read(),
url='http... | from distutils.core import setup
import nagios
setup(name='nagios-api',
version=nagios.version,
description='Control nagios using an API',
author='Mark Smith',
author_email='mark@qq.is',
license='BSD New (3-clause) License',
long_description=open('README.md').read(),
url='http... | Use install_requires arg so dependencies are installed | Use install_requires arg so dependencies are installed
| Python | bsd-3-clause | zorkian/nagios-api,zorkian/nagios-api | from distutils.core import setup
import nagios
setup(name='nagios-api',
version=nagios.version,
description='Control nagios using an API',
author='Mark Smith',
author_email='mark@qq.is',
license='BSD New (3-clause) License',
long_description=open('README.md').read(),
url='http... | from distutils.core import setup
import nagios
setup(name='nagios-api',
version=nagios.version,
description='Control nagios using an API',
author='Mark Smith',
author_email='mark@qq.is',
license='BSD New (3-clause) License',
long_description=open('README.md').read(),
url='http... | <commit_before>from distutils.core import setup
import nagios
setup(name='nagios-api',
version=nagios.version,
description='Control nagios using an API',
author='Mark Smith',
author_email='mark@qq.is',
license='BSD New (3-clause) License',
long_description=open('README.md').read(),
... | from distutils.core import setup
import nagios
setup(name='nagios-api',
version=nagios.version,
description='Control nagios using an API',
author='Mark Smith',
author_email='mark@qq.is',
license='BSD New (3-clause) License',
long_description=open('README.md').read(),
url='http... | from distutils.core import setup
import nagios
setup(name='nagios-api',
version=nagios.version,
description='Control nagios using an API',
author='Mark Smith',
author_email='mark@qq.is',
license='BSD New (3-clause) License',
long_description=open('README.md').read(),
url='http... | <commit_before>from distutils.core import setup
import nagios
setup(name='nagios-api',
version=nagios.version,
description='Control nagios using an API',
author='Mark Smith',
author_email='mark@qq.is',
license='BSD New (3-clause) License',
long_description=open('README.md').read(),
... |
4bfd4d32f41e173944bbf76d35c3d88a96930013 | setup.py | setup.py | #!/usr/bin/env python
import sys
from setuptools import setup
VERSION = (0, 3)
VERSION_STR = ".".join(map(str, VERSION))
url = 'https://github.com/mila/spadl'
try:
if sys.version_info >= (3,):
long_description = open('README.rst', 'rb').read().decode('utf-8')
else:
long_description = open('... | #!/usr/bin/env python
import sys
from setuptools import setup
VERSION = (0, 4)
VERSION_STR = ".".join(map(str, VERSION))
url = 'https://github.com/mila/spadl'
try:
if sys.version_info >= (3,):
long_description = open('README.rst', 'rb').read().decode('utf-8')
else:
long_description = open('... | Increment the version to realease README with notice about archiving. | Increment the version to realease README with notice about archiving.
| Python | bsd-3-clause | mila/spadl | #!/usr/bin/env python
import sys
from setuptools import setup
VERSION = (0, 3)
VERSION_STR = ".".join(map(str, VERSION))
url = 'https://github.com/mila/spadl'
try:
if sys.version_info >= (3,):
long_description = open('README.rst', 'rb').read().decode('utf-8')
else:
long_description = open('... | #!/usr/bin/env python
import sys
from setuptools import setup
VERSION = (0, 4)
VERSION_STR = ".".join(map(str, VERSION))
url = 'https://github.com/mila/spadl'
try:
if sys.version_info >= (3,):
long_description = open('README.rst', 'rb').read().decode('utf-8')
else:
long_description = open('... | <commit_before>#!/usr/bin/env python
import sys
from setuptools import setup
VERSION = (0, 3)
VERSION_STR = ".".join(map(str, VERSION))
url = 'https://github.com/mila/spadl'
try:
if sys.version_info >= (3,):
long_description = open('README.rst', 'rb').read().decode('utf-8')
else:
long_descr... | #!/usr/bin/env python
import sys
from setuptools import setup
VERSION = (0, 4)
VERSION_STR = ".".join(map(str, VERSION))
url = 'https://github.com/mila/spadl'
try:
if sys.version_info >= (3,):
long_description = open('README.rst', 'rb').read().decode('utf-8')
else:
long_description = open('... | #!/usr/bin/env python
import sys
from setuptools import setup
VERSION = (0, 3)
VERSION_STR = ".".join(map(str, VERSION))
url = 'https://github.com/mila/spadl'
try:
if sys.version_info >= (3,):
long_description = open('README.rst', 'rb').read().decode('utf-8')
else:
long_description = open('... | <commit_before>#!/usr/bin/env python
import sys
from setuptools import setup
VERSION = (0, 3)
VERSION_STR = ".".join(map(str, VERSION))
url = 'https://github.com/mila/spadl'
try:
if sys.version_info >= (3,):
long_description = open('README.rst', 'rb').read().decode('utf-8')
else:
long_descr... |
993414b8c0e99bf88285dd7c3f0fa0e41ab7d0d9 | setup.py | setup.py | #!/usr/bin/python
from setuptools import setup, find_packages
EXTRAS_REQUIRES = dict(
web=[
'bottle>=0.11',
],
test=[
'pytest>=2.2.4',
'mock>=0.8.0',
],
dev=[
'ipython>=0.13',
],
)
# Tests always depend on all other requirements, except dev
for k... | #!/usr/bin/python
from setuptools import setup, find_packages
EXTRAS_REQUIRES = dict(
web=[
'bottle>=0.11',
'paste>=1.7.5.1',
],
mongo=[
'pymongo>=2.3',
],
test=[
'pytest>=2.2.4',
'mock>=0.8.0',
],
dev=[
'ipython>=0.13',
],
)
... | Add paste and pymongo dependencies | Add paste and pymongo dependencies
| Python | mit | thelinuxkid/gumjabi | #!/usr/bin/python
from setuptools import setup, find_packages
EXTRAS_REQUIRES = dict(
web=[
'bottle>=0.11',
],
test=[
'pytest>=2.2.4',
'mock>=0.8.0',
],
dev=[
'ipython>=0.13',
],
)
# Tests always depend on all other requirements, except dev
for k... | #!/usr/bin/python
from setuptools import setup, find_packages
EXTRAS_REQUIRES = dict(
web=[
'bottle>=0.11',
'paste>=1.7.5.1',
],
mongo=[
'pymongo>=2.3',
],
test=[
'pytest>=2.2.4',
'mock>=0.8.0',
],
dev=[
'ipython>=0.13',
],
)
... | <commit_before>#!/usr/bin/python
from setuptools import setup, find_packages
EXTRAS_REQUIRES = dict(
web=[
'bottle>=0.11',
],
test=[
'pytest>=2.2.4',
'mock>=0.8.0',
],
dev=[
'ipython>=0.13',
],
)
# Tests always depend on all other requirements, e... | #!/usr/bin/python
from setuptools import setup, find_packages
EXTRAS_REQUIRES = dict(
web=[
'bottle>=0.11',
'paste>=1.7.5.1',
],
mongo=[
'pymongo>=2.3',
],
test=[
'pytest>=2.2.4',
'mock>=0.8.0',
],
dev=[
'ipython>=0.13',
],
)
... | #!/usr/bin/python
from setuptools import setup, find_packages
EXTRAS_REQUIRES = dict(
web=[
'bottle>=0.11',
],
test=[
'pytest>=2.2.4',
'mock>=0.8.0',
],
dev=[
'ipython>=0.13',
],
)
# Tests always depend on all other requirements, except dev
for k... | <commit_before>#!/usr/bin/python
from setuptools import setup, find_packages
EXTRAS_REQUIRES = dict(
web=[
'bottle>=0.11',
],
test=[
'pytest>=2.2.4',
'mock>=0.8.0',
],
dev=[
'ipython>=0.13',
],
)
# Tests always depend on all other requirements, e... |
a79a55502d4b4e4867d997cb80630181444a3274 | setup.py | setup.py | from setuptools import setup
setup(
name='feature-extraction',
author='Liam Marshall',
author_email='limarshall@wisc.edu',
version='0.1',
license='Apache',
packages=['feature_extraction'],
install_requires=['numpy', 'Pillow', 'Click', 'scikit-image', 'centrosome'],
entry_points='''
[console_scripts]
extrac... | from setuptools import setup
setup(
name='feature-extraction',
author='Liam Marshall',
author_email='limarshall@wisc.edu',
version='0.1',
license='Apache',
packages=['feature_extraction'],
install_requires=['PyYAML', 'numpy', 'Pillow', 'Click', 'scikit-image', 'centrosome'],
entry_points='''
[console_script... | Add PyYAML as a dep in preparation for pipeline manifests | Add PyYAML as a dep in preparation for pipeline manifests
| Python | apache-2.0 | widoptimization-willett/feature-extraction | from setuptools import setup
setup(
name='feature-extraction',
author='Liam Marshall',
author_email='limarshall@wisc.edu',
version='0.1',
license='Apache',
packages=['feature_extraction'],
install_requires=['numpy', 'Pillow', 'Click', 'scikit-image', 'centrosome'],
entry_points='''
[console_scripts]
extrac... | from setuptools import setup
setup(
name='feature-extraction',
author='Liam Marshall',
author_email='limarshall@wisc.edu',
version='0.1',
license='Apache',
packages=['feature_extraction'],
install_requires=['PyYAML', 'numpy', 'Pillow', 'Click', 'scikit-image', 'centrosome'],
entry_points='''
[console_script... | <commit_before>from setuptools import setup
setup(
name='feature-extraction',
author='Liam Marshall',
author_email='limarshall@wisc.edu',
version='0.1',
license='Apache',
packages=['feature_extraction'],
install_requires=['numpy', 'Pillow', 'Click', 'scikit-image', 'centrosome'],
entry_points='''
[console_s... | from setuptools import setup
setup(
name='feature-extraction',
author='Liam Marshall',
author_email='limarshall@wisc.edu',
version='0.1',
license='Apache',
packages=['feature_extraction'],
install_requires=['PyYAML', 'numpy', 'Pillow', 'Click', 'scikit-image', 'centrosome'],
entry_points='''
[console_script... | from setuptools import setup
setup(
name='feature-extraction',
author='Liam Marshall',
author_email='limarshall@wisc.edu',
version='0.1',
license='Apache',
packages=['feature_extraction'],
install_requires=['numpy', 'Pillow', 'Click', 'scikit-image', 'centrosome'],
entry_points='''
[console_scripts]
extrac... | <commit_before>from setuptools import setup
setup(
name='feature-extraction',
author='Liam Marshall',
author_email='limarshall@wisc.edu',
version='0.1',
license='Apache',
packages=['feature_extraction'],
install_requires=['numpy', 'Pillow', 'Click', 'scikit-image', 'centrosome'],
entry_points='''
[console_s... |
632c13c31e915a36b81fc60e305dd168bb4e679f | setup.py | setup.py | from distutils.core import setup
setup(
name = "linode-python",
version = "1.1",
description = "Python bindings for Linode API",
author = "TJ Fontaine",
author_email = "tjfontaine@gmail.com",
url = "https://github.com/tjfontaine/linode-python",
packages = ['linode'],
)
| from distutils.core import setup
setup(
name = "linode-python",
version = "1.1",
description = "Python bindings for Linode API",
author = "TJ Fontaine",
author_email = "tjfontaine@gmail.com",
url = "https://github.com/tjfontaine/linode-python",
packages = ['linode'],
extras_require = {
... | Add an extra_requires for requests | Add an extra_requires for requests
This will let folks do:
pip install linode-python[requests]
... to install requests alongside linode-python.
Fixes #23 comment 2
| Python | mit | ryanshawty/linode-python,tjfontaine/linode-python | from distutils.core import setup
setup(
name = "linode-python",
version = "1.1",
description = "Python bindings for Linode API",
author = "TJ Fontaine",
author_email = "tjfontaine@gmail.com",
url = "https://github.com/tjfontaine/linode-python",
packages = ['linode'],
)
Add an extra_requires... | from distutils.core import setup
setup(
name = "linode-python",
version = "1.1",
description = "Python bindings for Linode API",
author = "TJ Fontaine",
author_email = "tjfontaine@gmail.com",
url = "https://github.com/tjfontaine/linode-python",
packages = ['linode'],
extras_require = {
... | <commit_before>from distutils.core import setup
setup(
name = "linode-python",
version = "1.1",
description = "Python bindings for Linode API",
author = "TJ Fontaine",
author_email = "tjfontaine@gmail.com",
url = "https://github.com/tjfontaine/linode-python",
packages = ['linode'],
)
<commi... | from distutils.core import setup
setup(
name = "linode-python",
version = "1.1",
description = "Python bindings for Linode API",
author = "TJ Fontaine",
author_email = "tjfontaine@gmail.com",
url = "https://github.com/tjfontaine/linode-python",
packages = ['linode'],
extras_require = {
... | from distutils.core import setup
setup(
name = "linode-python",
version = "1.1",
description = "Python bindings for Linode API",
author = "TJ Fontaine",
author_email = "tjfontaine@gmail.com",
url = "https://github.com/tjfontaine/linode-python",
packages = ['linode'],
)
Add an extra_requires... | <commit_before>from distutils.core import setup
setup(
name = "linode-python",
version = "1.1",
description = "Python bindings for Linode API",
author = "TJ Fontaine",
author_email = "tjfontaine@gmail.com",
url = "https://github.com/tjfontaine/linode-python",
packages = ['linode'],
)
<commi... |
a399f9c81b4ad145ebe653bd6c9e8f9396b705f9 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
dev_requires = [
'Sphinx==1.2.2',
]
install_requires = [
'nodeconductor>=0.78.0',
]
setup(
name='nodeconductor-saltstack',
version='0.1.1',
author='OpenNode Team',
author_email='info@opennodecloud.com',
url='http://nodec... | #!/usr/bin/env python
from setuptools import setup, find_packages
dev_requires = [
'Sphinx==1.2.2',
]
install_requires = [
'nodeconductor>=0.79.0',
]
setup(
name='nodeconductor-saltstack',
version='0.1.1',
author='OpenNode Team',
author_email='info@opennodecloud.com',
url='http://nodec... | Upgrade required version of nodeconductor (NC-909) | Upgrade required version of nodeconductor (NC-909)
| Python | mit | opennode/nodeconductor-saltstack | #!/usr/bin/env python
from setuptools import setup, find_packages
dev_requires = [
'Sphinx==1.2.2',
]
install_requires = [
'nodeconductor>=0.78.0',
]
setup(
name='nodeconductor-saltstack',
version='0.1.1',
author='OpenNode Team',
author_email='info@opennodecloud.com',
url='http://nodec... | #!/usr/bin/env python
from setuptools import setup, find_packages
dev_requires = [
'Sphinx==1.2.2',
]
install_requires = [
'nodeconductor>=0.79.0',
]
setup(
name='nodeconductor-saltstack',
version='0.1.1',
author='OpenNode Team',
author_email='info@opennodecloud.com',
url='http://nodec... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
dev_requires = [
'Sphinx==1.2.2',
]
install_requires = [
'nodeconductor>=0.78.0',
]
setup(
name='nodeconductor-saltstack',
version='0.1.1',
author='OpenNode Team',
author_email='info@opennodecloud.com',
ur... | #!/usr/bin/env python
from setuptools import setup, find_packages
dev_requires = [
'Sphinx==1.2.2',
]
install_requires = [
'nodeconductor>=0.79.0',
]
setup(
name='nodeconductor-saltstack',
version='0.1.1',
author='OpenNode Team',
author_email='info@opennodecloud.com',
url='http://nodec... | #!/usr/bin/env python
from setuptools import setup, find_packages
dev_requires = [
'Sphinx==1.2.2',
]
install_requires = [
'nodeconductor>=0.78.0',
]
setup(
name='nodeconductor-saltstack',
version='0.1.1',
author='OpenNode Team',
author_email='info@opennodecloud.com',
url='http://nodec... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
dev_requires = [
'Sphinx==1.2.2',
]
install_requires = [
'nodeconductor>=0.78.0',
]
setup(
name='nodeconductor-saltstack',
version='0.1.1',
author='OpenNode Team',
author_email='info@opennodecloud.com',
ur... |
479972b027c1571be1a3b0c7659c7e3ccf12939e | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='zeit.objectlog',
version='0.11dev',
author='Christian Zagrodnick',
author_email='cz@gocept.com',
description="""\
""",
packages=find_packages('src'),
package_dir = {'': 'src'},
include_package_data = True,
zip_safe=False,
... | from setuptools import setup, find_packages
setup(
name='zeit.objectlog',
version='0.11dev',
author='Christian Zagrodnick',
author_email='cz@gocept.com',
description="""\
""",
packages=find_packages('src'),
package_dir = {'': 'src'},
include_package_data = True,
zip_safe=False,
... | Declare dependency on zeit.cms (for testing) | Declare dependency on zeit.cms (for testing)
| Python | bsd-3-clause | ZeitOnline/zeit.objectlog | from setuptools import setup, find_packages
setup(
name='zeit.objectlog',
version='0.11dev',
author='Christian Zagrodnick',
author_email='cz@gocept.com',
description="""\
""",
packages=find_packages('src'),
package_dir = {'': 'src'},
include_package_data = True,
zip_safe=False,
... | from setuptools import setup, find_packages
setup(
name='zeit.objectlog',
version='0.11dev',
author='Christian Zagrodnick',
author_email='cz@gocept.com',
description="""\
""",
packages=find_packages('src'),
package_dir = {'': 'src'},
include_package_data = True,
zip_safe=False,
... | <commit_before>from setuptools import setup, find_packages
setup(
name='zeit.objectlog',
version='0.11dev',
author='Christian Zagrodnick',
author_email='cz@gocept.com',
description="""\
""",
packages=find_packages('src'),
package_dir = {'': 'src'},
include_package_data = True,
zip_s... | from setuptools import setup, find_packages
setup(
name='zeit.objectlog',
version='0.11dev',
author='Christian Zagrodnick',
author_email='cz@gocept.com',
description="""\
""",
packages=find_packages('src'),
package_dir = {'': 'src'},
include_package_data = True,
zip_safe=False,
... | from setuptools import setup, find_packages
setup(
name='zeit.objectlog',
version='0.11dev',
author='Christian Zagrodnick',
author_email='cz@gocept.com',
description="""\
""",
packages=find_packages('src'),
package_dir = {'': 'src'},
include_package_data = True,
zip_safe=False,
... | <commit_before>from setuptools import setup, find_packages
setup(
name='zeit.objectlog',
version='0.11dev',
author='Christian Zagrodnick',
author_email='cz@gocept.com',
description="""\
""",
packages=find_packages('src'),
package_dir = {'': 'src'},
include_package_data = True,
zip_s... |
9cf9a1d70a5d453dfd217c1ba148eccdc630912e | FetchStats/Plugins/Facter.py | FetchStats/Plugins/Facter.py | from FetchStats import Fetcher
class Facter(Fetcher):
import yaml
def __init__(self):
self.context = 'facter'
self._load_data()
def _load_data(self):
try:
output = self._exec('facter -p --yaml')
self.facts = self.yaml.load(output)
self._loaded(T... | from FetchStats import Fetcher
class Facter(Fetcher):
import yaml
def __init__(self):
self.context = 'facter'
self._load_data()
def _load_data(self):
try:
output = self._exec('facter -p --yaml')
self.facts = self.yaml.load(output)
self._loaded(T... | Watch for missing facter command | Watch for missing facter command
| Python | mit | pombredanne/jsonstats,pombredanne/jsonstats,RHInception/jsonstats,RHInception/jsonstats | from FetchStats import Fetcher
class Facter(Fetcher):
import yaml
def __init__(self):
self.context = 'facter'
self._load_data()
def _load_data(self):
try:
output = self._exec('facter -p --yaml')
self.facts = self.yaml.load(output)
self._loaded(T... | from FetchStats import Fetcher
class Facter(Fetcher):
import yaml
def __init__(self):
self.context = 'facter'
self._load_data()
def _load_data(self):
try:
output = self._exec('facter -p --yaml')
self.facts = self.yaml.load(output)
self._loaded(T... | <commit_before>from FetchStats import Fetcher
class Facter(Fetcher):
import yaml
def __init__(self):
self.context = 'facter'
self._load_data()
def _load_data(self):
try:
output = self._exec('facter -p --yaml')
self.facts = self.yaml.load(output)
... | from FetchStats import Fetcher
class Facter(Fetcher):
import yaml
def __init__(self):
self.context = 'facter'
self._load_data()
def _load_data(self):
try:
output = self._exec('facter -p --yaml')
self.facts = self.yaml.load(output)
self._loaded(T... | from FetchStats import Fetcher
class Facter(Fetcher):
import yaml
def __init__(self):
self.context = 'facter'
self._load_data()
def _load_data(self):
try:
output = self._exec('facter -p --yaml')
self.facts = self.yaml.load(output)
self._loaded(T... | <commit_before>from FetchStats import Fetcher
class Facter(Fetcher):
import yaml
def __init__(self):
self.context = 'facter'
self._load_data()
def _load_data(self):
try:
output = self._exec('facter -p --yaml')
self.facts = self.yaml.load(output)
... |
d65549b33fca6516436864c44ba3de459d68e679 | setup.py | setup.py | # coding=utf-8
from __future__ import absolute_import, division, print_function
import sys
from setuptools import setup
VERSION='0.1.0'
ANTLR4 = 'antlr4-python{}-runtime'.format(sys.version_info.major)
setup(
name='vfp2py',
version=VERSION,
description='Convert foxpro code to python',
author='Michae... | # coding=utf-8
from __future__ import absolute_import, division, print_function
import sys
from setuptools import setup
VERSION='0.1.0'
ANTLR4 = 'antlr4-python{}-runtime'.format(sys.version_info.major)
setup(
name='vfp2py',
version=VERSION,
description='Convert foxpro code to python',
author='Michae... | Change pyodbc requirement to >= version | Change pyodbc requirement to >= version
| Python | mit | mwisslead/vfp2py,mwisslead/vfp2py | # coding=utf-8
from __future__ import absolute_import, division, print_function
import sys
from setuptools import setup
VERSION='0.1.0'
ANTLR4 = 'antlr4-python{}-runtime'.format(sys.version_info.major)
setup(
name='vfp2py',
version=VERSION,
description='Convert foxpro code to python',
author='Michae... | # coding=utf-8
from __future__ import absolute_import, division, print_function
import sys
from setuptools import setup
VERSION='0.1.0'
ANTLR4 = 'antlr4-python{}-runtime'.format(sys.version_info.major)
setup(
name='vfp2py',
version=VERSION,
description='Convert foxpro code to python',
author='Michae... | <commit_before># coding=utf-8
from __future__ import absolute_import, division, print_function
import sys
from setuptools import setup
VERSION='0.1.0'
ANTLR4 = 'antlr4-python{}-runtime'.format(sys.version_info.major)
setup(
name='vfp2py',
version=VERSION,
description='Convert foxpro code to python',
... | # coding=utf-8
from __future__ import absolute_import, division, print_function
import sys
from setuptools import setup
VERSION='0.1.0'
ANTLR4 = 'antlr4-python{}-runtime'.format(sys.version_info.major)
setup(
name='vfp2py',
version=VERSION,
description='Convert foxpro code to python',
author='Michae... | # coding=utf-8
from __future__ import absolute_import, division, print_function
import sys
from setuptools import setup
VERSION='0.1.0'
ANTLR4 = 'antlr4-python{}-runtime'.format(sys.version_info.major)
setup(
name='vfp2py',
version=VERSION,
description='Convert foxpro code to python',
author='Michae... | <commit_before># coding=utf-8
from __future__ import absolute_import, division, print_function
import sys
from setuptools import setup
VERSION='0.1.0'
ANTLR4 = 'antlr4-python{}-runtime'.format(sys.version_info.major)
setup(
name='vfp2py',
version=VERSION,
description='Convert foxpro code to python',
... |
4b418cee7bcf1f2d47674a94c5070f40771f54f5 | BayesClassification.py | BayesClassification.py | #!/usr/bin/python
# coding: latin-1
#------------------------------------------------------------------------------#
# Artificial Intelligence - Bayes Classification Algorithms #
# ============================================================================ #
# Organization: HE-Arc Engineering ... | #!/usr/bin/python
# coding: latin-1
#------------------------------------------------------------------------------#
# Artificial Intelligence - Bayes Classification Algorithms #
# ============================================================================ #
# Organization: HE-Arc Engineering ... | Add DataFile class to split words of a line and count it | Add DataFile class to split words of a line and count it
| Python | apache-2.0 | Chavjoh/BayesClassificationPython | #!/usr/bin/python
# coding: latin-1
#------------------------------------------------------------------------------#
# Artificial Intelligence - Bayes Classification Algorithms #
# ============================================================================ #
# Organization: HE-Arc Engineering ... | #!/usr/bin/python
# coding: latin-1
#------------------------------------------------------------------------------#
# Artificial Intelligence - Bayes Classification Algorithms #
# ============================================================================ #
# Organization: HE-Arc Engineering ... | <commit_before>#!/usr/bin/python
# coding: latin-1
#------------------------------------------------------------------------------#
# Artificial Intelligence - Bayes Classification Algorithms #
# ============================================================================ #
# Organization: HE-Arc En... | #!/usr/bin/python
# coding: latin-1
#------------------------------------------------------------------------------#
# Artificial Intelligence - Bayes Classification Algorithms #
# ============================================================================ #
# Organization: HE-Arc Engineering ... | #!/usr/bin/python
# coding: latin-1
#------------------------------------------------------------------------------#
# Artificial Intelligence - Bayes Classification Algorithms #
# ============================================================================ #
# Organization: HE-Arc Engineering ... | <commit_before>#!/usr/bin/python
# coding: latin-1
#------------------------------------------------------------------------------#
# Artificial Intelligence - Bayes Classification Algorithms #
# ============================================================================ #
# Organization: HE-Arc En... |
4797197ae4f53c4de46083d330654cf74849cf26 | setup.py | setup.py | from setuptools import setup, find_packages
version = '0.1'
install_requires = [
'SQLAlchemy>=0.7.8'
]
setup_requires = [
'nose'
]
tests_require = install_requires + [
'coverage',
'psycopg2',
]
setup(name='GeoAlchemy2',
version=version,
description="Using SQLAlchemy with S... | from setuptools import setup, find_packages
version = '0.1'
install_requires = [
'SQLAlchemy>0.7'
]
setup_requires = [
'nose'
]
tests_require = install_requires + [
'coverage',
'psycopg2',
]
setup(name='GeoAlchemy2',
version=version,
description="Using SQLAlchemy with Spat... | Revert "require SQLAlchemy>=0.7.8 for readthedocs" | Revert "require SQLAlchemy>=0.7.8 for readthedocs"
This reverts commit 689712e7ec4035e03934a4f32e788c133fa7a13c.
| Python | mit | geoalchemy/geoalchemy2 | from setuptools import setup, find_packages
version = '0.1'
install_requires = [
'SQLAlchemy>=0.7.8'
]
setup_requires = [
'nose'
]
tests_require = install_requires + [
'coverage',
'psycopg2',
]
setup(name='GeoAlchemy2',
version=version,
description="Using SQLAlchemy with S... | from setuptools import setup, find_packages
version = '0.1'
install_requires = [
'SQLAlchemy>0.7'
]
setup_requires = [
'nose'
]
tests_require = install_requires + [
'coverage',
'psycopg2',
]
setup(name='GeoAlchemy2',
version=version,
description="Using SQLAlchemy with Spat... | <commit_before>from setuptools import setup, find_packages
version = '0.1'
install_requires = [
'SQLAlchemy>=0.7.8'
]
setup_requires = [
'nose'
]
tests_require = install_requires + [
'coverage',
'psycopg2',
]
setup(name='GeoAlchemy2',
version=version,
description="Using SQ... | from setuptools import setup, find_packages
version = '0.1'
install_requires = [
'SQLAlchemy>0.7'
]
setup_requires = [
'nose'
]
tests_require = install_requires + [
'coverage',
'psycopg2',
]
setup(name='GeoAlchemy2',
version=version,
description="Using SQLAlchemy with Spat... | from setuptools import setup, find_packages
version = '0.1'
install_requires = [
'SQLAlchemy>=0.7.8'
]
setup_requires = [
'nose'
]
tests_require = install_requires + [
'coverage',
'psycopg2',
]
setup(name='GeoAlchemy2',
version=version,
description="Using SQLAlchemy with S... | <commit_before>from setuptools import setup, find_packages
version = '0.1'
install_requires = [
'SQLAlchemy>=0.7.8'
]
setup_requires = [
'nose'
]
tests_require = install_requires + [
'coverage',
'psycopg2',
]
setup(name='GeoAlchemy2',
version=version,
description="Using SQ... |
3997dc74b50e83a661dc3efa2adf8355466133ac | setup.py | setup.py | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Program... | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from code_formatter import __version__
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating... | Define version in one place | Define version in one place
| Python | bsd-3-clause | paluh/code-formatter | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Program... | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from code_formatter import __version__
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating... | <commit_before>try:
from setuptools import setup
except ImportError:
from distutils.core import setup
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent... | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from code_formatter import __version__
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating... | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Program... | <commit_before>try:
from setuptools import setup
except ImportError:
from distutils.core import setup
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent... |
39dcf1965aa286881f556b65b781decf9835605b | setup.py | setup.py | from setuptools import setup
setup(name='fortdepend',
version='0.1.0',
description='Automatically generate Fortran dependencies',
author='Peter Hill',
author_email='peter@fusionplasma.co.uk',
url='https://github.com/ZedThree/fort_depend.py/',
download_url='https://github.com/ZedThre... | from setuptools import setup
setup(name='fortdepend',
version='0.1.0',
description='Automatically generate Fortran dependencies',
author='Peter Hill',
author_email='peter@fusionplasma.co.uk',
url='https://github.com/ZedThree/fort_depend.py/',
download_url='https://github.com/ZedThre... | Use latest version of pcpp that's actually on pypi | Use latest version of pcpp that's actually on pypi
| Python | mit | ZedThree/fort_depend.py,ZedThree/fort_depend.py | from setuptools import setup
setup(name='fortdepend',
version='0.1.0',
description='Automatically generate Fortran dependencies',
author='Peter Hill',
author_email='peter@fusionplasma.co.uk',
url='https://github.com/ZedThree/fort_depend.py/',
download_url='https://github.com/ZedThre... | from setuptools import setup
setup(name='fortdepend',
version='0.1.0',
description='Automatically generate Fortran dependencies',
author='Peter Hill',
author_email='peter@fusionplasma.co.uk',
url='https://github.com/ZedThree/fort_depend.py/',
download_url='https://github.com/ZedThre... | <commit_before>from setuptools import setup
setup(name='fortdepend',
version='0.1.0',
description='Automatically generate Fortran dependencies',
author='Peter Hill',
author_email='peter@fusionplasma.co.uk',
url='https://github.com/ZedThree/fort_depend.py/',
download_url='https://git... | from setuptools import setup
setup(name='fortdepend',
version='0.1.0',
description='Automatically generate Fortran dependencies',
author='Peter Hill',
author_email='peter@fusionplasma.co.uk',
url='https://github.com/ZedThree/fort_depend.py/',
download_url='https://github.com/ZedThre... | from setuptools import setup
setup(name='fortdepend',
version='0.1.0',
description='Automatically generate Fortran dependencies',
author='Peter Hill',
author_email='peter@fusionplasma.co.uk',
url='https://github.com/ZedThree/fort_depend.py/',
download_url='https://github.com/ZedThre... | <commit_before>from setuptools import setup
setup(name='fortdepend',
version='0.1.0',
description='Automatically generate Fortran dependencies',
author='Peter Hill',
author_email='peter@fusionplasma.co.uk',
url='https://github.com/ZedThree/fort_depend.py/',
download_url='https://git... |
9ee6b2e61fccf7ebc6b3e90370f78ffcf948969d | webserver/home/views.py | webserver/home/views.py | from django.views.generic import TemplateView
from competition.models import Competition
class HomePageView(TemplateView):
template_name = "home/home.html"
def get_context_data(self, **kwargs):
context = super(HomePageView, self).get_context_data(**kwargs)
my_competitions = Competition.objec... | from django.views.generic import TemplateView
from competition.models import Competition
class HomePageView(TemplateView):
template_name = "home/home.html"
def get_context_data(self, **kwargs):
context = super(HomePageView, self).get_context_data(**kwargs)
if not self.request.user.is_an... | Check if user is not anonymous on homepage | Check if user is not anonymous on homepage
| Python | bsd-3-clause | siggame/webserver,siggame/webserver,siggame/webserver | from django.views.generic import TemplateView
from competition.models import Competition
class HomePageView(TemplateView):
template_name = "home/home.html"
def get_context_data(self, **kwargs):
context = super(HomePageView, self).get_context_data(**kwargs)
my_competitions = Competition.objec... | from django.views.generic import TemplateView
from competition.models import Competition
class HomePageView(TemplateView):
template_name = "home/home.html"
def get_context_data(self, **kwargs):
context = super(HomePageView, self).get_context_data(**kwargs)
if not self.request.user.is_an... | <commit_before>from django.views.generic import TemplateView
from competition.models import Competition
class HomePageView(TemplateView):
template_name = "home/home.html"
def get_context_data(self, **kwargs):
context = super(HomePageView, self).get_context_data(**kwargs)
my_competitions = Co... | from django.views.generic import TemplateView
from competition.models import Competition
class HomePageView(TemplateView):
template_name = "home/home.html"
def get_context_data(self, **kwargs):
context = super(HomePageView, self).get_context_data(**kwargs)
if not self.request.user.is_an... | from django.views.generic import TemplateView
from competition.models import Competition
class HomePageView(TemplateView):
template_name = "home/home.html"
def get_context_data(self, **kwargs):
context = super(HomePageView, self).get_context_data(**kwargs)
my_competitions = Competition.objec... | <commit_before>from django.views.generic import TemplateView
from competition.models import Competition
class HomePageView(TemplateView):
template_name = "home/home.html"
def get_context_data(self, **kwargs):
context = super(HomePageView, self).get_context_data(**kwargs)
my_competitions = Co... |
c9a93f6ba48c05438c83738f1729ee7e4b4fd346 | setup.py | setup.py | from setuptools import setup
setup(
name='libgen.py',
version='0.1.0',
license='MIT',
author='Adolfo Silva',
author_email='code@adolfosilva.org',
url='https://github.com/adolfosilva/libgen.py',
description='A script to download books from gen.lib.rus.ec',
classifiers=[
'License ... | from setuptools import setup
setup(
name='libgen.py',
version='0.1.0',
license='MIT',
author='Adolfo Silva',
author_email='code@adolfosilva.org',
url='https://github.com/adolfosilva/libgen.py',
description='A script to download books from gen.lib.rus.ec',
classifiers=[
'License ... | Package requires at least Python 3.5 | Package requires at least Python 3.5
| Python | mit | adolfosilva/libgen.py | from setuptools import setup
setup(
name='libgen.py',
version='0.1.0',
license='MIT',
author='Adolfo Silva',
author_email='code@adolfosilva.org',
url='https://github.com/adolfosilva/libgen.py',
description='A script to download books from gen.lib.rus.ec',
classifiers=[
'License ... | from setuptools import setup
setup(
name='libgen.py',
version='0.1.0',
license='MIT',
author='Adolfo Silva',
author_email='code@adolfosilva.org',
url='https://github.com/adolfosilva/libgen.py',
description='A script to download books from gen.lib.rus.ec',
classifiers=[
'License ... | <commit_before>from setuptools import setup
setup(
name='libgen.py',
version='0.1.0',
license='MIT',
author='Adolfo Silva',
author_email='code@adolfosilva.org',
url='https://github.com/adolfosilva/libgen.py',
description='A script to download books from gen.lib.rus.ec',
classifiers=[
... | from setuptools import setup
setup(
name='libgen.py',
version='0.1.0',
license='MIT',
author='Adolfo Silva',
author_email='code@adolfosilva.org',
url='https://github.com/adolfosilva/libgen.py',
description='A script to download books from gen.lib.rus.ec',
classifiers=[
'License ... | from setuptools import setup
setup(
name='libgen.py',
version='0.1.0',
license='MIT',
author='Adolfo Silva',
author_email='code@adolfosilva.org',
url='https://github.com/adolfosilva/libgen.py',
description='A script to download books from gen.lib.rus.ec',
classifiers=[
'License ... | <commit_before>from setuptools import setup
setup(
name='libgen.py',
version='0.1.0',
license='MIT',
author='Adolfo Silva',
author_email='code@adolfosilva.org',
url='https://github.com/adolfosilva/libgen.py',
description='A script to download books from gen.lib.rus.ec',
classifiers=[
... |
db20e918844890979a6af6bfa3b3e74c09914728 | utilities/test_find_pairs_pt.py | utilities/test_find_pairs_pt.py | # Test code for find_pairs_pt.py
import pytest
import find_pairs_pt as fp
def test_one_pair():
assert fp.find_pairs_simple([1,9]) == [(1,9)]
assert fp.find_pairs([1,9]) == [(1,9)]
'''
>>> find_pairs_simple([9])
>>> find_pairs_simple([1,9])
1,9
>>> find_pairs_simple([9,1])
... | # Test code for find_pairs_pt.py
import pytest
import find_pairs_pt as fp
def test_no_pairs():
test_array = [9]
response = []
assert fp.find_pairs_simple(test_array) == response
assert fp.find_pairs(test_array) == response
def test_one_pair():
test_array = [1,9]
response = [(... | Simplify format for test creation | Simplify format for test creation
| Python | mit | daveinnyc/various,daveinnyc/various,daveinnyc/various,daveinnyc/various,daveinnyc/various,daveinnyc/various,daveinnyc/various | # Test code for find_pairs_pt.py
import pytest
import find_pairs_pt as fp
def test_one_pair():
assert fp.find_pairs_simple([1,9]) == [(1,9)]
assert fp.find_pairs([1,9]) == [(1,9)]
'''
>>> find_pairs_simple([9])
>>> find_pairs_simple([1,9])
1,9
>>> find_pairs_simple([9,1])
... | # Test code for find_pairs_pt.py
import pytest
import find_pairs_pt as fp
def test_no_pairs():
test_array = [9]
response = []
assert fp.find_pairs_simple(test_array) == response
assert fp.find_pairs(test_array) == response
def test_one_pair():
test_array = [1,9]
response = [(... | <commit_before># Test code for find_pairs_pt.py
import pytest
import find_pairs_pt as fp
def test_one_pair():
assert fp.find_pairs_simple([1,9]) == [(1,9)]
assert fp.find_pairs([1,9]) == [(1,9)]
'''
>>> find_pairs_simple([9])
>>> find_pairs_simple([1,9])
1,9
>>> find_pairs_simp... | # Test code for find_pairs_pt.py
import pytest
import find_pairs_pt as fp
def test_no_pairs():
test_array = [9]
response = []
assert fp.find_pairs_simple(test_array) == response
assert fp.find_pairs(test_array) == response
def test_one_pair():
test_array = [1,9]
response = [(... | # Test code for find_pairs_pt.py
import pytest
import find_pairs_pt as fp
def test_one_pair():
assert fp.find_pairs_simple([1,9]) == [(1,9)]
assert fp.find_pairs([1,9]) == [(1,9)]
'''
>>> find_pairs_simple([9])
>>> find_pairs_simple([1,9])
1,9
>>> find_pairs_simple([9,1])
... | <commit_before># Test code for find_pairs_pt.py
import pytest
import find_pairs_pt as fp
def test_one_pair():
assert fp.find_pairs_simple([1,9]) == [(1,9)]
assert fp.find_pairs([1,9]) == [(1,9)]
'''
>>> find_pairs_simple([9])
>>> find_pairs_simple([1,9])
1,9
>>> find_pairs_simp... |
dbb9becd09bbb9808060272b74e664afc354dfa8 | modeltranslation/tests/settings.py | modeltranslation/tests/settings.py | # -*- coding: utf-8 -*-
"""
Settings overrided for test time
"""
from django.conf import settings
INSTALLED_APPS = tuple(settings.INSTALLED_APPS) + (
'modeltranslation.tests',
)
LANGUAGES = (('de', 'Deutsch'),
('en', 'English'))
LANGUAGE_CODE = 'de'
MODELTRANSLATION_DEFAULT_LANGUAGE = 'de'
USE_I18N... | # -*- coding: utf-8 -*-
"""
Settings overrided for test time
"""
import django
from django.conf import settings
INSTALLED_APPS = tuple(settings.INSTALLED_APPS) + (
'modeltranslation.tests',
)
LANGUAGES = (('de', 'Deutsch'),
('en', 'English'))
LANGUAGE_CODE = 'de'
MODELTRANSLATION_DEFAULT_LANGUAGE = ... | Set empty MIGRATION_MODULES setting for Django 1.11. Should make the tests run again. | Set empty MIGRATION_MODULES setting for Django 1.11. Should make the tests run again.
| Python | bsd-3-clause | deschler/django-modeltranslation,deschler/django-modeltranslation | # -*- coding: utf-8 -*-
"""
Settings overrided for test time
"""
from django.conf import settings
INSTALLED_APPS = tuple(settings.INSTALLED_APPS) + (
'modeltranslation.tests',
)
LANGUAGES = (('de', 'Deutsch'),
('en', 'English'))
LANGUAGE_CODE = 'de'
MODELTRANSLATION_DEFAULT_LANGUAGE = 'de'
USE_I18N... | # -*- coding: utf-8 -*-
"""
Settings overrided for test time
"""
import django
from django.conf import settings
INSTALLED_APPS = tuple(settings.INSTALLED_APPS) + (
'modeltranslation.tests',
)
LANGUAGES = (('de', 'Deutsch'),
('en', 'English'))
LANGUAGE_CODE = 'de'
MODELTRANSLATION_DEFAULT_LANGUAGE = ... | <commit_before># -*- coding: utf-8 -*-
"""
Settings overrided for test time
"""
from django.conf import settings
INSTALLED_APPS = tuple(settings.INSTALLED_APPS) + (
'modeltranslation.tests',
)
LANGUAGES = (('de', 'Deutsch'),
('en', 'English'))
LANGUAGE_CODE = 'de'
MODELTRANSLATION_DEFAULT_LANGUAGE =... | # -*- coding: utf-8 -*-
"""
Settings overrided for test time
"""
import django
from django.conf import settings
INSTALLED_APPS = tuple(settings.INSTALLED_APPS) + (
'modeltranslation.tests',
)
LANGUAGES = (('de', 'Deutsch'),
('en', 'English'))
LANGUAGE_CODE = 'de'
MODELTRANSLATION_DEFAULT_LANGUAGE = ... | # -*- coding: utf-8 -*-
"""
Settings overrided for test time
"""
from django.conf import settings
INSTALLED_APPS = tuple(settings.INSTALLED_APPS) + (
'modeltranslation.tests',
)
LANGUAGES = (('de', 'Deutsch'),
('en', 'English'))
LANGUAGE_CODE = 'de'
MODELTRANSLATION_DEFAULT_LANGUAGE = 'de'
USE_I18N... | <commit_before># -*- coding: utf-8 -*-
"""
Settings overrided for test time
"""
from django.conf import settings
INSTALLED_APPS = tuple(settings.INSTALLED_APPS) + (
'modeltranslation.tests',
)
LANGUAGES = (('de', 'Deutsch'),
('en', 'English'))
LANGUAGE_CODE = 'de'
MODELTRANSLATION_DEFAULT_LANGUAGE =... |
f3bf773868b17f1928167787e783e5b2b70d7ed0 | setup.py | setup.py | from setuptools import setup
import sys
import os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'hellosign_sdk'))
def readme():
with open('README.md') as f:
return f.read()
setup(name='hellosign-python-sdk',
version='3.0',
description="An API wrapper written in Python to interact... | from setuptools import setup
import sys
import os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'hellosign_sdk'))
def readme():
with open('README.md') as f:
return f.read()
setup(name='hellosign-python-sdk',
version='3.0',
description="A Python wrapper for the HelloSign API (http... | Copy changes for the sdk package description | Copy changes for the sdk package description
| Python | mit | arshsingh/hellosign-python-sdk,HelloFax/hellosign-python-sdk | from setuptools import setup
import sys
import os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'hellosign_sdk'))
def readme():
with open('README.md') as f:
return f.read()
setup(name='hellosign-python-sdk',
version='3.0',
description="An API wrapper written in Python to interact... | from setuptools import setup
import sys
import os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'hellosign_sdk'))
def readme():
with open('README.md') as f:
return f.read()
setup(name='hellosign-python-sdk',
version='3.0',
description="A Python wrapper for the HelloSign API (http... | <commit_before>from setuptools import setup
import sys
import os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'hellosign_sdk'))
def readme():
with open('README.md') as f:
return f.read()
setup(name='hellosign-python-sdk',
version='3.0',
description="An API wrapper written in Pyt... | from setuptools import setup
import sys
import os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'hellosign_sdk'))
def readme():
with open('README.md') as f:
return f.read()
setup(name='hellosign-python-sdk',
version='3.0',
description="A Python wrapper for the HelloSign API (http... | from setuptools import setup
import sys
import os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'hellosign_sdk'))
def readme():
with open('README.md') as f:
return f.read()
setup(name='hellosign-python-sdk',
version='3.0',
description="An API wrapper written in Python to interact... | <commit_before>from setuptools import setup
import sys
import os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'hellosign_sdk'))
def readme():
with open('README.md') as f:
return f.read()
setup(name='hellosign-python-sdk',
version='3.0',
description="An API wrapper written in Pyt... |
f8c8c14e0ca6f8e3174a14f519b395a4e0bfe043 | setup.py | setup.py | from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs a... | from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs a... | Install requirements now include SciPy. | Install requirements now include SciPy.
Used in the operators subpackage, and will likely be used elsewhere due
to the sparse package being inside scipy.
| Python | bsd-3-clause | ryanorendorff/pyop | from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs a... | from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs a... | <commit_before>from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause out... | from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs a... | from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs a... | <commit_before>from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause out... |
4efdee1f93e85b96607a21c0d8f79343ef989697 | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name = 'compdb',
version = '0.1',
package_dir = {'': 'src'},
packages = find_packages('src'),
author = 'Carl Simon Adorf',
author_email = 'csadorf@umich.edu',
description = "Computational Database.",
keywords = 'simulation tools mc md ... | from setuptools import setup, find_packages
setup(
name = 'compdb',
version = '0.1',
package_dir = {'': 'src'},
packages = find_packages('src'),
author = 'Carl Simon Adorf',
author_email = 'csadorf@umich.edu',
description = "Computational Database.",
keywords = 'simulation tools mc md ... | Make mpi4py required for this package. | Make mpi4py required for this package.
| Python | bsd-3-clause | csadorf/signac,csadorf/signac | from setuptools import setup, find_packages
setup(
name = 'compdb',
version = '0.1',
package_dir = {'': 'src'},
packages = find_packages('src'),
author = 'Carl Simon Adorf',
author_email = 'csadorf@umich.edu',
description = "Computational Database.",
keywords = 'simulation tools mc md ... | from setuptools import setup, find_packages
setup(
name = 'compdb',
version = '0.1',
package_dir = {'': 'src'},
packages = find_packages('src'),
author = 'Carl Simon Adorf',
author_email = 'csadorf@umich.edu',
description = "Computational Database.",
keywords = 'simulation tools mc md ... | <commit_before>from setuptools import setup, find_packages
setup(
name = 'compdb',
version = '0.1',
package_dir = {'': 'src'},
packages = find_packages('src'),
author = 'Carl Simon Adorf',
author_email = 'csadorf@umich.edu',
description = "Computational Database.",
keywords = 'simulati... | from setuptools import setup, find_packages
setup(
name = 'compdb',
version = '0.1',
package_dir = {'': 'src'},
packages = find_packages('src'),
author = 'Carl Simon Adorf',
author_email = 'csadorf@umich.edu',
description = "Computational Database.",
keywords = 'simulation tools mc md ... | from setuptools import setup, find_packages
setup(
name = 'compdb',
version = '0.1',
package_dir = {'': 'src'},
packages = find_packages('src'),
author = 'Carl Simon Adorf',
author_email = 'csadorf@umich.edu',
description = "Computational Database.",
keywords = 'simulation tools mc md ... | <commit_before>from setuptools import setup, find_packages
setup(
name = 'compdb',
version = '0.1',
package_dir = {'': 'src'},
packages = find_packages('src'),
author = 'Carl Simon Adorf',
author_email = 'csadorf@umich.edu',
description = "Computational Database.",
keywords = 'simulati... |
53b176674f1d72396b066705e502b5fcbee16a91 | vulyk/plugins/dummy/__init__.py | vulyk/plugins/dummy/__init__.py | import json
import logging
from werkzeug.utils import import_string
logger = logging.getLogger(__name__)
def get_task(request):
return json.dumps({})
def configure(self_settings):
"""
Getting plugin's default settings, overwriting them with settings
from local_settings.py, returns list of setting... | import json
import logging
from werkzeug.utils import import_string
logger = logging.getLogger(__name__)
def get_task(request):
return json.dumps({})
def configure(self_settings):
"""
Getting plugin's default settings, overwriting them with settings
from local_settings.py, returns dict of setting... | Fix return format of plugin's settings | Fix return format of plugin's settings
| Python | bsd-3-clause | mrgambal/vulyk,mrgambal/vulyk,mrgambal/vulyk | import json
import logging
from werkzeug.utils import import_string
logger = logging.getLogger(__name__)
def get_task(request):
return json.dumps({})
def configure(self_settings):
"""
Getting plugin's default settings, overwriting them with settings
from local_settings.py, returns list of setting... | import json
import logging
from werkzeug.utils import import_string
logger = logging.getLogger(__name__)
def get_task(request):
return json.dumps({})
def configure(self_settings):
"""
Getting plugin's default settings, overwriting them with settings
from local_settings.py, returns dict of setting... | <commit_before>import json
import logging
from werkzeug.utils import import_string
logger = logging.getLogger(__name__)
def get_task(request):
return json.dumps({})
def configure(self_settings):
"""
Getting plugin's default settings, overwriting them with settings
from local_settings.py, returns ... | import json
import logging
from werkzeug.utils import import_string
logger = logging.getLogger(__name__)
def get_task(request):
return json.dumps({})
def configure(self_settings):
"""
Getting plugin's default settings, overwriting them with settings
from local_settings.py, returns dict of setting... | import json
import logging
from werkzeug.utils import import_string
logger = logging.getLogger(__name__)
def get_task(request):
return json.dumps({})
def configure(self_settings):
"""
Getting plugin's default settings, overwriting them with settings
from local_settings.py, returns list of setting... | <commit_before>import json
import logging
from werkzeug.utils import import_string
logger = logging.getLogger(__name__)
def get_task(request):
return json.dumps({})
def configure(self_settings):
"""
Getting plugin's default settings, overwriting them with settings
from local_settings.py, returns ... |
7b634eb825e2e102caf862e8753012c35f14ee3f | yerba/__init__.py | yerba/__init__.py | # -*- coding: utf-8 -*-
"""
yerba:
------
A is a distributed job management framework
copyright: (c) 2014 by Evan Briones
license: MIT, refer to LICENSE for details
"""
__version__ = "0.4-dev"
| # -*- coding: utf-8 -*-
"""
yerba:
------
A is a distributed job management framework
Copyright (c) 2014 CoGe
License: MIT, refer to LICENSE for details
"""
__version__ = "0.4-dev"
| Change copyright holder to "CoGe" | Change copyright holder to "CoGe"
| Python | bsd-2-clause | LyonsLab/Yerba,LyonsLab/Yerba | # -*- coding: utf-8 -*-
"""
yerba:
------
A is a distributed job management framework
copyright: (c) 2014 by Evan Briones
license: MIT, refer to LICENSE for details
"""
__version__ = "0.4-dev"
Change copyright holder to "CoGe" | # -*- coding: utf-8 -*-
"""
yerba:
------
A is a distributed job management framework
Copyright (c) 2014 CoGe
License: MIT, refer to LICENSE for details
"""
__version__ = "0.4-dev"
| <commit_before># -*- coding: utf-8 -*-
"""
yerba:
------
A is a distributed job management framework
copyright: (c) 2014 by Evan Briones
license: MIT, refer to LICENSE for details
"""
__version__ = "0.4-dev"
<commit_msg>Change copyright holder to "CoGe"<commit_after> | # -*- coding: utf-8 -*-
"""
yerba:
------
A is a distributed job management framework
Copyright (c) 2014 CoGe
License: MIT, refer to LICENSE for details
"""
__version__ = "0.4-dev"
| # -*- coding: utf-8 -*-
"""
yerba:
------
A is a distributed job management framework
copyright: (c) 2014 by Evan Briones
license: MIT, refer to LICENSE for details
"""
__version__ = "0.4-dev"
Change copyright holder to "CoGe"# -*- coding: utf-8 -*-
"""
yerba:
------
A is a distribu... | <commit_before># -*- coding: utf-8 -*-
"""
yerba:
------
A is a distributed job management framework
copyright: (c) 2014 by Evan Briones
license: MIT, refer to LICENSE for details
"""
__version__ = "0.4-dev"
<commit_msg>Change copyright holder to "CoGe"<commit_after># -*- coding: utf-8 -*-
"""
... |
72d89466e40fadeb246b6d69ab0e7035f6bcc8da | gql/transport/requests.py | gql/transport/requests.py | from __future__ import absolute_import
import requests
from graphql.execution import ExecutionResult
from graphql.language.printer import print_ast
from .http import HTTPTransport
class RequestsHTTPTransport(HTTPTransport):
def __init__(self, auth=None, *args, **kwargs):
super(RequestsHTTPTransport, sel... | from __future__ import absolute_import
import requests
from graphql.execution import ExecutionResult
from graphql.language.printer import print_ast
from .http import HTTPTransport
class RequestsHTTPTransport(HTTPTransport):
def __init__(self, auth=None, *args, **kwargs):
super(RequestsHTTPTransport, sel... | Raise exception if HTTP request failed | Raise exception if HTTP request failed
| Python | mit | graphql-python/gql | from __future__ import absolute_import
import requests
from graphql.execution import ExecutionResult
from graphql.language.printer import print_ast
from .http import HTTPTransport
class RequestsHTTPTransport(HTTPTransport):
def __init__(self, auth=None, *args, **kwargs):
super(RequestsHTTPTransport, sel... | from __future__ import absolute_import
import requests
from graphql.execution import ExecutionResult
from graphql.language.printer import print_ast
from .http import HTTPTransport
class RequestsHTTPTransport(HTTPTransport):
def __init__(self, auth=None, *args, **kwargs):
super(RequestsHTTPTransport, sel... | <commit_before>from __future__ import absolute_import
import requests
from graphql.execution import ExecutionResult
from graphql.language.printer import print_ast
from .http import HTTPTransport
class RequestsHTTPTransport(HTTPTransport):
def __init__(self, auth=None, *args, **kwargs):
super(RequestsHTT... | from __future__ import absolute_import
import requests
from graphql.execution import ExecutionResult
from graphql.language.printer import print_ast
from .http import HTTPTransport
class RequestsHTTPTransport(HTTPTransport):
def __init__(self, auth=None, *args, **kwargs):
super(RequestsHTTPTransport, sel... | from __future__ import absolute_import
import requests
from graphql.execution import ExecutionResult
from graphql.language.printer import print_ast
from .http import HTTPTransport
class RequestsHTTPTransport(HTTPTransport):
def __init__(self, auth=None, *args, **kwargs):
super(RequestsHTTPTransport, sel... | <commit_before>from __future__ import absolute_import
import requests
from graphql.execution import ExecutionResult
from graphql.language.printer import print_ast
from .http import HTTPTransport
class RequestsHTTPTransport(HTTPTransport):
def __init__(self, auth=None, *args, **kwargs):
super(RequestsHTT... |
6b4e73a386ae0b4b904c32554cbdfba17aa2997a | workers/data_refinery_workers/downloaders/test_utils.py | workers/data_refinery_workers/downloaders/test_utils.py | import os
from django.test import TestCase, tag
from typing import List
from unittest.mock import patch, call
from urllib.error import URLError
from data_refinery_workers.downloaders import utils
class UtilsTestCase(TestCase):
@tag('downloaders')
def test_no_jobs_to_create(self):
"""Make sure this fu... | import os
from django.test import TestCase, tag
from typing import List
from unittest.mock import patch, call
from urllib.error import URLError
from data_refinery_workers.downloaders import utils
class UtilsTestCase(TestCase):
@tag('downloaders')
def test_no_jobs_to_create(self):
"""Make sure this fu... | Fix test for no download jobs. | Fix test for no download jobs.
| Python | bsd-3-clause | data-refinery/data_refinery,data-refinery/data_refinery,data-refinery/data_refinery | import os
from django.test import TestCase, tag
from typing import List
from unittest.mock import patch, call
from urllib.error import URLError
from data_refinery_workers.downloaders import utils
class UtilsTestCase(TestCase):
@tag('downloaders')
def test_no_jobs_to_create(self):
"""Make sure this fu... | import os
from django.test import TestCase, tag
from typing import List
from unittest.mock import patch, call
from urllib.error import URLError
from data_refinery_workers.downloaders import utils
class UtilsTestCase(TestCase):
@tag('downloaders')
def test_no_jobs_to_create(self):
"""Make sure this fu... | <commit_before>import os
from django.test import TestCase, tag
from typing import List
from unittest.mock import patch, call
from urllib.error import URLError
from data_refinery_workers.downloaders import utils
class UtilsTestCase(TestCase):
@tag('downloaders')
def test_no_jobs_to_create(self):
"""Ma... | import os
from django.test import TestCase, tag
from typing import List
from unittest.mock import patch, call
from urllib.error import URLError
from data_refinery_workers.downloaders import utils
class UtilsTestCase(TestCase):
@tag('downloaders')
def test_no_jobs_to_create(self):
"""Make sure this fu... | import os
from django.test import TestCase, tag
from typing import List
from unittest.mock import patch, call
from urllib.error import URLError
from data_refinery_workers.downloaders import utils
class UtilsTestCase(TestCase):
@tag('downloaders')
def test_no_jobs_to_create(self):
"""Make sure this fu... | <commit_before>import os
from django.test import TestCase, tag
from typing import List
from unittest.mock import patch, call
from urllib.error import URLError
from data_refinery_workers.downloaders import utils
class UtilsTestCase(TestCase):
@tag('downloaders')
def test_no_jobs_to_create(self):
"""Ma... |
c72f021248eaf2b969967eb8663e72f888c5fba7 | admin/preprints/serializers.py | admin/preprints/serializers.py | from website.project.taxonomies import Subject
from admin.nodes.serializers import serialize_node
def serialize_preprint(preprint):
return {
'id': preprint._id,
'date_created': preprint.date_created,
'modified': preprint.date_modified,
'provider': preprint.provider,
'node'... | from website.project.taxonomies import Subject
from admin.nodes.serializers import serialize_node
def serialize_preprint(preprint):
return {
'id': preprint._id,
'date_created': preprint.date_created,
'modified': preprint.date_modified,
'provider': preprint.provider,
'node'... | Add a bit of subject error handling just in case | Add a bit of subject error handling just in case
| Python | apache-2.0 | cslzchen/osf.io,Johnetordoff/osf.io,hmoco/osf.io,adlius/osf.io,pattisdr/osf.io,icereval/osf.io,cslzchen/osf.io,chrisseto/osf.io,mfraezz/osf.io,brianjgeiger/osf.io,HalcyonChimera/osf.io,chennan47/osf.io,Johnetordoff/osf.io,cwisecarver/osf.io,Nesiehr/osf.io,caseyrollins/osf.io,crcresearch/osf.io,HalcyonChimera/osf.io,bin... | from website.project.taxonomies import Subject
from admin.nodes.serializers import serialize_node
def serialize_preprint(preprint):
return {
'id': preprint._id,
'date_created': preprint.date_created,
'modified': preprint.date_modified,
'provider': preprint.provider,
'node'... | from website.project.taxonomies import Subject
from admin.nodes.serializers import serialize_node
def serialize_preprint(preprint):
return {
'id': preprint._id,
'date_created': preprint.date_created,
'modified': preprint.date_modified,
'provider': preprint.provider,
'node'... | <commit_before>from website.project.taxonomies import Subject
from admin.nodes.serializers import serialize_node
def serialize_preprint(preprint):
return {
'id': preprint._id,
'date_created': preprint.date_created,
'modified': preprint.date_modified,
'provider': preprint.provider,... | from website.project.taxonomies import Subject
from admin.nodes.serializers import serialize_node
def serialize_preprint(preprint):
return {
'id': preprint._id,
'date_created': preprint.date_created,
'modified': preprint.date_modified,
'provider': preprint.provider,
'node'... | from website.project.taxonomies import Subject
from admin.nodes.serializers import serialize_node
def serialize_preprint(preprint):
return {
'id': preprint._id,
'date_created': preprint.date_created,
'modified': preprint.date_modified,
'provider': preprint.provider,
'node'... | <commit_before>from website.project.taxonomies import Subject
from admin.nodes.serializers import serialize_node
def serialize_preprint(preprint):
return {
'id': preprint._id,
'date_created': preprint.date_created,
'modified': preprint.date_modified,
'provider': preprint.provider,... |
ae21969815351e84912d1d69be77e20450619acf | pyconll/conllable.py | pyconll/conllable.py | """
Holds the Conllable interface, which is a marker interface to show that a class
is a Conll object, such as a treebank, sentence, or token, and therefore has a
conll method.
"""
class Conllable:
"""
A Conllable mixin to indicate that the component can be converted into a
CoNLL representation.
"""
... | """
Holds the Conllable interface, which is a marker interface to show that a class
is a Conll object, such as a treebank, sentence, or token, and therefore has a
conll method.
"""
import abc
class Conllable:
"""
A Conllable mixin to indicate that the component can be converted into a
CoNLL representatio... | Define Conllable with an abstract method. | Define Conllable with an abstract method.
| Python | mit | pyconll/pyconll,pyconll/pyconll | """
Holds the Conllable interface, which is a marker interface to show that a class
is a Conll object, such as a treebank, sentence, or token, and therefore has a
conll method.
"""
class Conllable:
"""
A Conllable mixin to indicate that the component can be converted into a
CoNLL representation.
"""
... | """
Holds the Conllable interface, which is a marker interface to show that a class
is a Conll object, such as a treebank, sentence, or token, and therefore has a
conll method.
"""
import abc
class Conllable:
"""
A Conllable mixin to indicate that the component can be converted into a
CoNLL representatio... | <commit_before>"""
Holds the Conllable interface, which is a marker interface to show that a class
is a Conll object, such as a treebank, sentence, or token, and therefore has a
conll method.
"""
class Conllable:
"""
A Conllable mixin to indicate that the component can be converted into a
CoNLL representa... | """
Holds the Conllable interface, which is a marker interface to show that a class
is a Conll object, such as a treebank, sentence, or token, and therefore has a
conll method.
"""
import abc
class Conllable:
"""
A Conllable mixin to indicate that the component can be converted into a
CoNLL representatio... | """
Holds the Conllable interface, which is a marker interface to show that a class
is a Conll object, such as a treebank, sentence, or token, and therefore has a
conll method.
"""
class Conllable:
"""
A Conllable mixin to indicate that the component can be converted into a
CoNLL representation.
"""
... | <commit_before>"""
Holds the Conllable interface, which is a marker interface to show that a class
is a Conll object, such as a treebank, sentence, or token, and therefore has a
conll method.
"""
class Conllable:
"""
A Conllable mixin to indicate that the component can be converted into a
CoNLL representa... |
173f874c4cf911fc9a35e0e039f164cb625fdccc | imager/ImagerProfile/models.py | imager/ImagerProfile/models.py | from django.db import models
from django.contrib.auth.models import User
class ImagerProfile(models.Model):
user = models.OneToOneField(User)
profile_picture = models.ImageField(null=True)
picture_privacy = models.BooleanField(default=False)
phone_number = models.CharField(max_length=15) # X(XXX) X... | from __future__ import unicode_literals
from django.db import models
from django.contrib.auth.models import User
from django.utils.encoding import python_2_unicode_compatible
@python_2_unicode_compatible
class ImagerProfile(models.Model):
user = models.OneToOneField(User, related_name='profile')
profile_pict... | Add string representation of class, is_active method, and first draft of active class method | Add string representation of class, is_active method, and first draft of active class method
| Python | mit | nbeck90/django-imager,nbeck90/django-imager | from django.db import models
from django.contrib.auth.models import User
class ImagerProfile(models.Model):
user = models.OneToOneField(User)
profile_picture = models.ImageField(null=True)
picture_privacy = models.BooleanField(default=False)
phone_number = models.CharField(max_length=15) # X(XXX) X... | from __future__ import unicode_literals
from django.db import models
from django.contrib.auth.models import User
from django.utils.encoding import python_2_unicode_compatible
@python_2_unicode_compatible
class ImagerProfile(models.Model):
user = models.OneToOneField(User, related_name='profile')
profile_pict... | <commit_before>from django.db import models
from django.contrib.auth.models import User
class ImagerProfile(models.Model):
user = models.OneToOneField(User)
profile_picture = models.ImageField(null=True)
picture_privacy = models.BooleanField(default=False)
phone_number = models.CharField(max_length=... | from __future__ import unicode_literals
from django.db import models
from django.contrib.auth.models import User
from django.utils.encoding import python_2_unicode_compatible
@python_2_unicode_compatible
class ImagerProfile(models.Model):
user = models.OneToOneField(User, related_name='profile')
profile_pict... | from django.db import models
from django.contrib.auth.models import User
class ImagerProfile(models.Model):
user = models.OneToOneField(User)
profile_picture = models.ImageField(null=True)
picture_privacy = models.BooleanField(default=False)
phone_number = models.CharField(max_length=15) # X(XXX) X... | <commit_before>from django.db import models
from django.contrib.auth.models import User
class ImagerProfile(models.Model):
user = models.OneToOneField(User)
profile_picture = models.ImageField(null=True)
picture_privacy = models.BooleanField(default=False)
phone_number = models.CharField(max_length=... |
e049017d8abfdee80a0d825af996cb5de2d63657 | commands/seen.py | commands/seen.py | #*Flays seen function
@command("seen")
def seen(nick,user,channel,message):
with db as conn:
with conn.cursor() as cursor:
cursor.execute("SELECT time, nick, message, channel from log where nick = %s order by time desc limit 1;", (message,))
row = cursor.fetchone()
if row == None:
say(channel, "No rec... | #*Flays seen function
@command("seen")
def seen(nick,user,channel,message):
if db == None: return
with db as conn:
with conn.cursor() as cursor:
cursor.execute("SELECT time, nick, message, channel from log where nick = %s order by time desc limit 1;", (message,))
row = cursor.fetchone()
if row == None:
... | Handle case where db is not connected | Handle case where db is not connected
| Python | unlicense | ccowmu/botler | #*Flays seen function
@command("seen")
def seen(nick,user,channel,message):
with db as conn:
with conn.cursor() as cursor:
cursor.execute("SELECT time, nick, message, channel from log where nick = %s order by time desc limit 1;", (message,))
row = cursor.fetchone()
if row == None:
say(channel, "No rec... | #*Flays seen function
@command("seen")
def seen(nick,user,channel,message):
if db == None: return
with db as conn:
with conn.cursor() as cursor:
cursor.execute("SELECT time, nick, message, channel from log where nick = %s order by time desc limit 1;", (message,))
row = cursor.fetchone()
if row == None:
... | <commit_before>#*Flays seen function
@command("seen")
def seen(nick,user,channel,message):
with db as conn:
with conn.cursor() as cursor:
cursor.execute("SELECT time, nick, message, channel from log where nick = %s order by time desc limit 1;", (message,))
row = cursor.fetchone()
if row == None:
say(c... | #*Flays seen function
@command("seen")
def seen(nick,user,channel,message):
if db == None: return
with db as conn:
with conn.cursor() as cursor:
cursor.execute("SELECT time, nick, message, channel from log where nick = %s order by time desc limit 1;", (message,))
row = cursor.fetchone()
if row == None:
... | #*Flays seen function
@command("seen")
def seen(nick,user,channel,message):
with db as conn:
with conn.cursor() as cursor:
cursor.execute("SELECT time, nick, message, channel from log where nick = %s order by time desc limit 1;", (message,))
row = cursor.fetchone()
if row == None:
say(channel, "No rec... | <commit_before>#*Flays seen function
@command("seen")
def seen(nick,user,channel,message):
with db as conn:
with conn.cursor() as cursor:
cursor.execute("SELECT time, nick, message, channel from log where nick = %s order by time desc limit 1;", (message,))
row = cursor.fetchone()
if row == None:
say(c... |
58cd5650900a426363c7e0b8fb9bf7d2f881f95b | quickadmin/config.py | quickadmin/config.py | from distutils.version import StrictVersion
from django import get_version
QADMIN_DEFAULT_EXCLUDES = [
'django.contrib.sessions',
'django.contrib.admin',
'django.contrib.contenttypes',
'django.contrib.messages',
'django.contrib.comments',
'django.contrib.flatpages',
'django.contrib.sitema... | from distutils.version import StrictVersion
from django import get_version
QADMIN_DEFAULT_EXCLUDES = [
'django.contrib.sessions',
'django.contrib.auth',
'django.contrib.admin',
'django.contrib.contenttypes',
'django.contrib.messages',
'django.contrib.comments',
'django.contrib.flatpages',... | Add Django auth as a stock application | Add Django auth as a stock application
| Python | mit | zniper/django-quickadmin | from distutils.version import StrictVersion
from django import get_version
QADMIN_DEFAULT_EXCLUDES = [
'django.contrib.sessions',
'django.contrib.admin',
'django.contrib.contenttypes',
'django.contrib.messages',
'django.contrib.comments',
'django.contrib.flatpages',
'django.contrib.sitema... | from distutils.version import StrictVersion
from django import get_version
QADMIN_DEFAULT_EXCLUDES = [
'django.contrib.sessions',
'django.contrib.auth',
'django.contrib.admin',
'django.contrib.contenttypes',
'django.contrib.messages',
'django.contrib.comments',
'django.contrib.flatpages',... | <commit_before>from distutils.version import StrictVersion
from django import get_version
QADMIN_DEFAULT_EXCLUDES = [
'django.contrib.sessions',
'django.contrib.admin',
'django.contrib.contenttypes',
'django.contrib.messages',
'django.contrib.comments',
'django.contrib.flatpages',
'django... | from distutils.version import StrictVersion
from django import get_version
QADMIN_DEFAULT_EXCLUDES = [
'django.contrib.sessions',
'django.contrib.auth',
'django.contrib.admin',
'django.contrib.contenttypes',
'django.contrib.messages',
'django.contrib.comments',
'django.contrib.flatpages',... | from distutils.version import StrictVersion
from django import get_version
QADMIN_DEFAULT_EXCLUDES = [
'django.contrib.sessions',
'django.contrib.admin',
'django.contrib.contenttypes',
'django.contrib.messages',
'django.contrib.comments',
'django.contrib.flatpages',
'django.contrib.sitema... | <commit_before>from distutils.version import StrictVersion
from django import get_version
QADMIN_DEFAULT_EXCLUDES = [
'django.contrib.sessions',
'django.contrib.admin',
'django.contrib.contenttypes',
'django.contrib.messages',
'django.contrib.comments',
'django.contrib.flatpages',
'django... |
88221a3afbf8daa692a344ab7bb7f8d396d547f8 | basis_set_exchange/__init__.py | basis_set_exchange/__init__.py | '''
Basis Set Exchange
Contains utilities for reading, writing, and converting
basis set information
'''
# Just import the basic user API
from .api import (get_basis, lookup_basis_by_role, get_metadata, get_reference_data, get_all_basis_names,
get_references, get_basis_family, filter_basis_sets, get... | '''
Basis Set Exchange
Contains utilities for reading, writing, and converting
basis set information
'''
# Just import the basic user API
from .api import (get_basis, lookup_basis_by_role, get_metadata, get_reference_data, get_all_basis_names,
get_references, get_basis_family, filter_basis_sets, get... | Make get_archive_types visible to top-level | Make get_archive_types visible to top-level
| Python | bsd-3-clause | MOLSSI-BSE/basis_set_exchange | '''
Basis Set Exchange
Contains utilities for reading, writing, and converting
basis set information
'''
# Just import the basic user API
from .api import (get_basis, lookup_basis_by_role, get_metadata, get_reference_data, get_all_basis_names,
get_references, get_basis_family, filter_basis_sets, get... | '''
Basis Set Exchange
Contains utilities for reading, writing, and converting
basis set information
'''
# Just import the basic user API
from .api import (get_basis, lookup_basis_by_role, get_metadata, get_reference_data, get_all_basis_names,
get_references, get_basis_family, filter_basis_sets, get... | <commit_before>'''
Basis Set Exchange
Contains utilities for reading, writing, and converting
basis set information
'''
# Just import the basic user API
from .api import (get_basis, lookup_basis_by_role, get_metadata, get_reference_data, get_all_basis_names,
get_references, get_basis_family, filter_... | '''
Basis Set Exchange
Contains utilities for reading, writing, and converting
basis set information
'''
# Just import the basic user API
from .api import (get_basis, lookup_basis_by_role, get_metadata, get_reference_data, get_all_basis_names,
get_references, get_basis_family, filter_basis_sets, get... | '''
Basis Set Exchange
Contains utilities for reading, writing, and converting
basis set information
'''
# Just import the basic user API
from .api import (get_basis, lookup_basis_by_role, get_metadata, get_reference_data, get_all_basis_names,
get_references, get_basis_family, filter_basis_sets, get... | <commit_before>'''
Basis Set Exchange
Contains utilities for reading, writing, and converting
basis set information
'''
# Just import the basic user API
from .api import (get_basis, lookup_basis_by_role, get_metadata, get_reference_data, get_all_basis_names,
get_references, get_basis_family, filter_... |
1ea64f77c3fd3c779c8da43d68c282946a654771 | sbt-client.py | sbt-client.py | #!/bin/env python
import socket
import sys
from sys import argv
from os import getcwd
if len(argv) < 2:
print "Usage: client <command>"
sys.exit(-1)
try:
f = file("%s/target/sbt-server-port" % getcwd(), "r")
port = int(f.read())
f.close()
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
... | #!/bin/env python
import socket
import sys
from sys import argv
from os import getcwd
if len(argv) < 2:
print "Usage: client <command>"
sys.exit(-1)
try:
f = file("%s/target/sbt-server-port" % getcwd(), "r")
port = int(f.read())
f.close()
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
... | Fix client script exit on exception | Fix client script exit on exception
| Python | mit | pfn/sbt-simple-server | #!/bin/env python
import socket
import sys
from sys import argv
from os import getcwd
if len(argv) < 2:
print "Usage: client <command>"
sys.exit(-1)
try:
f = file("%s/target/sbt-server-port" % getcwd(), "r")
port = int(f.read())
f.close()
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
... | #!/bin/env python
import socket
import sys
from sys import argv
from os import getcwd
if len(argv) < 2:
print "Usage: client <command>"
sys.exit(-1)
try:
f = file("%s/target/sbt-server-port" % getcwd(), "r")
port = int(f.read())
f.close()
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
... | <commit_before>#!/bin/env python
import socket
import sys
from sys import argv
from os import getcwd
if len(argv) < 2:
print "Usage: client <command>"
sys.exit(-1)
try:
f = file("%s/target/sbt-server-port" % getcwd(), "r")
port = int(f.read())
f.close()
s = socket.socket(socket.AF_INET, socket... | #!/bin/env python
import socket
import sys
from sys import argv
from os import getcwd
if len(argv) < 2:
print "Usage: client <command>"
sys.exit(-1)
try:
f = file("%s/target/sbt-server-port" % getcwd(), "r")
port = int(f.read())
f.close()
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
... | #!/bin/env python
import socket
import sys
from sys import argv
from os import getcwd
if len(argv) < 2:
print "Usage: client <command>"
sys.exit(-1)
try:
f = file("%s/target/sbt-server-port" % getcwd(), "r")
port = int(f.read())
f.close()
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
... | <commit_before>#!/bin/env python
import socket
import sys
from sys import argv
from os import getcwd
if len(argv) < 2:
print "Usage: client <command>"
sys.exit(-1)
try:
f = file("%s/target/sbt-server-port" % getcwd(), "r")
port = int(f.read())
f.close()
s = socket.socket(socket.AF_INET, socket... |
90860fbe9d5b21b51ade753bdc6dfefc15cb31ac | menpodetect/pico/conversion.py | menpodetect/pico/conversion.py | from menpo.shape import PointDirectedGraph
import numpy as np
def pointgraph_from_circle(fitting):
y, x = fitting.center
radius = fitting.diameter / 2.0
return PointDirectedGraph(np.array(((y, x),
(y + radius, x),
(y + radius,... | from menpo.shape import PointDirectedGraph
import numpy as np
def pointgraph_from_circle(fitting):
diameter = fitting.diameter
radius = diameter / 2.0
y, x = fitting.center
y -= radius
x -= radius
return PointDirectedGraph(np.array(((y, x),
(y + diameter... | Fix the circle to rectangle code | Fix the circle to rectangle code
Was totally incorrect previously
| Python | bsd-3-clause | jabooth/menpodetect,jabooth/menpodetect,yuxiang-zhou/menpodetect,yuxiang-zhou/menpodetect | from menpo.shape import PointDirectedGraph
import numpy as np
def pointgraph_from_circle(fitting):
y, x = fitting.center
radius = fitting.diameter / 2.0
return PointDirectedGraph(np.array(((y, x),
(y + radius, x),
(y + radius,... | from menpo.shape import PointDirectedGraph
import numpy as np
def pointgraph_from_circle(fitting):
diameter = fitting.diameter
radius = diameter / 2.0
y, x = fitting.center
y -= radius
x -= radius
return PointDirectedGraph(np.array(((y, x),
(y + diameter... | <commit_before>from menpo.shape import PointDirectedGraph
import numpy as np
def pointgraph_from_circle(fitting):
y, x = fitting.center
radius = fitting.diameter / 2.0
return PointDirectedGraph(np.array(((y, x),
(y + radius, x),
... | from menpo.shape import PointDirectedGraph
import numpy as np
def pointgraph_from_circle(fitting):
diameter = fitting.diameter
radius = diameter / 2.0
y, x = fitting.center
y -= radius
x -= radius
return PointDirectedGraph(np.array(((y, x),
(y + diameter... | from menpo.shape import PointDirectedGraph
import numpy as np
def pointgraph_from_circle(fitting):
y, x = fitting.center
radius = fitting.diameter / 2.0
return PointDirectedGraph(np.array(((y, x),
(y + radius, x),
(y + radius,... | <commit_before>from menpo.shape import PointDirectedGraph
import numpy as np
def pointgraph_from_circle(fitting):
y, x = fitting.center
radius = fitting.diameter / 2.0
return PointDirectedGraph(np.array(((y, x),
(y + radius, x),
... |
7bb4e910ae8869c1108e306ee418b2c2bce8aa88 | flask_app.py | flask_app.py | from flask import Flask
from flask_caching import Cache
import main
app = Flask(__name__)
cache = Cache(app, config={'CACHE_TYPE': 'simple'})
@app.route('/')
def display_available():
content = ('<html>' +
'<head>' +
'<title>Restaurant Menu Parser</title>' +
'</head>'... | from flask import Flask
from flask_caching import Cache
import main
app = Flask(__name__)
cache = Cache(app, config={'CACHE_TYPE': 'simple'})
@app.route('/')
def display_available():
content = ('<html>' +
'<head>' +
'<title>Restaurant Menu Parser</title>' +
'</head>... | Add request handler for specific restaurant. | Add request handler for specific restaurant.
| Python | bsd-3-clause | talavis/kimenu | from flask import Flask
from flask_caching import Cache
import main
app = Flask(__name__)
cache = Cache(app, config={'CACHE_TYPE': 'simple'})
@app.route('/')
def display_available():
content = ('<html>' +
'<head>' +
'<title>Restaurant Menu Parser</title>' +
'</head>'... | from flask import Flask
from flask_caching import Cache
import main
app = Flask(__name__)
cache = Cache(app, config={'CACHE_TYPE': 'simple'})
@app.route('/')
def display_available():
content = ('<html>' +
'<head>' +
'<title>Restaurant Menu Parser</title>' +
'</head>... | <commit_before>from flask import Flask
from flask_caching import Cache
import main
app = Flask(__name__)
cache = Cache(app, config={'CACHE_TYPE': 'simple'})
@app.route('/')
def display_available():
content = ('<html>' +
'<head>' +
'<title>Restaurant Menu Parser</title>' +
... | from flask import Flask
from flask_caching import Cache
import main
app = Flask(__name__)
cache = Cache(app, config={'CACHE_TYPE': 'simple'})
@app.route('/')
def display_available():
content = ('<html>' +
'<head>' +
'<title>Restaurant Menu Parser</title>' +
'</head>... | from flask import Flask
from flask_caching import Cache
import main
app = Flask(__name__)
cache = Cache(app, config={'CACHE_TYPE': 'simple'})
@app.route('/')
def display_available():
content = ('<html>' +
'<head>' +
'<title>Restaurant Menu Parser</title>' +
'</head>'... | <commit_before>from flask import Flask
from flask_caching import Cache
import main
app = Flask(__name__)
cache = Cache(app, config={'CACHE_TYPE': 'simple'})
@app.route('/')
def display_available():
content = ('<html>' +
'<head>' +
'<title>Restaurant Menu Parser</title>' +
... |
7f7d986471a413b5118db72546aafd24b3d454ca | SmartRemoteControl/www/server.py | SmartRemoteControl/www/server.py | import socket
import time
from flask import *
import config
# TCP port the Yun console listens for connections on.
CONSOLE_PORT = 6571
# Create flask application.
app = Flask(__name__)
# Get activity configuration.
activities = config.get_activities()
@app.route('/')
def root():
return render_template('index.h... | import socket
import time
from flask import *
import config
# TCP port the Yun console listens for connections on.
CONSOLE_PORT = 6571
# Create flask application.
app = Flask(__name__)
# Get activity configuration.
activities = config.get_activities()
@app.route('/')
def root():
return render_template('index.h... | Add socket shutdown to prevent bridge from crashing on connection reset. | Add socket shutdown to prevent bridge from crashing on connection reset.
| Python | mit | Nosskirneh/SmartRemoteControl,punker76/SmartRemoteControl,Nosskirneh/SmartRemoteControl,punker76/SmartRemoteControl,tdicola/SmartRemoteControl,Nosskirneh/SmartRemoteControl,Nosskirneh/SmartRemoteControl,Nosskirneh/SmartRemoteControl | import socket
import time
from flask import *
import config
# TCP port the Yun console listens for connections on.
CONSOLE_PORT = 6571
# Create flask application.
app = Flask(__name__)
# Get activity configuration.
activities = config.get_activities()
@app.route('/')
def root():
return render_template('index.h... | import socket
import time
from flask import *
import config
# TCP port the Yun console listens for connections on.
CONSOLE_PORT = 6571
# Create flask application.
app = Flask(__name__)
# Get activity configuration.
activities = config.get_activities()
@app.route('/')
def root():
return render_template('index.h... | <commit_before>import socket
import time
from flask import *
import config
# TCP port the Yun console listens for connections on.
CONSOLE_PORT = 6571
# Create flask application.
app = Flask(__name__)
# Get activity configuration.
activities = config.get_activities()
@app.route('/')
def root():
return render_te... | import socket
import time
from flask import *
import config
# TCP port the Yun console listens for connections on.
CONSOLE_PORT = 6571
# Create flask application.
app = Flask(__name__)
# Get activity configuration.
activities = config.get_activities()
@app.route('/')
def root():
return render_template('index.h... | import socket
import time
from flask import *
import config
# TCP port the Yun console listens for connections on.
CONSOLE_PORT = 6571
# Create flask application.
app = Flask(__name__)
# Get activity configuration.
activities = config.get_activities()
@app.route('/')
def root():
return render_template('index.h... | <commit_before>import socket
import time
from flask import *
import config
# TCP port the Yun console listens for connections on.
CONSOLE_PORT = 6571
# Create flask application.
app = Flask(__name__)
# Get activity configuration.
activities = config.get_activities()
@app.route('/')
def root():
return render_te... |
db3700382cf14b73b9ddbcb3a35fafd92910dcbf | gridfill/__init__.py | gridfill/__init__.py | """Fill missing values in a grid."""
# Copyright (c) 2012-2014 Andrew Dawson
#
# 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
# ... | """Fill missing values in a grid."""
# Copyright (c) 2012-2014 Andrew Dawson
#
# 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
# ... | Reset version number after v1.0.0 release tag | Reset version number after v1.0.0 release tag
| Python | mit | ajdawson/gridfill | """Fill missing values in a grid."""
# Copyright (c) 2012-2014 Andrew Dawson
#
# 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
# ... | """Fill missing values in a grid."""
# Copyright (c) 2012-2014 Andrew Dawson
#
# 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
# ... | <commit_before>"""Fill missing values in a grid."""
# Copyright (c) 2012-2014 Andrew Dawson
#
# 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 limitatio... | """Fill missing values in a grid."""
# Copyright (c) 2012-2014 Andrew Dawson
#
# 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
# ... | """Fill missing values in a grid."""
# Copyright (c) 2012-2014 Andrew Dawson
#
# 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
# ... | <commit_before>"""Fill missing values in a grid."""
# Copyright (c) 2012-2014 Andrew Dawson
#
# 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 limitatio... |
4494f4835245990ed5380cbf9800eef5d74986e6 | utils.py | utils.py | #!/usr/bin/env python
import argparse
import sys
def parse_basic_args(args=sys.argv[1:]):
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument(
'--input', '-i', metavar='FILE',
default=sys.stdin, type=argparse.FileType('r'),
help='the file to process (default: std... | #!/usr/bin/env python
import argparse
import sys
def parse_basic_args():
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument(
'--input', '-i', metavar='FILE',
default=sys.stdin, type=argparse.FileType('r'),
help='the file to process (default: stdin)',
)
p... | Remove args parameter from parse_basic_args | Remove args parameter from parse_basic_args
This is already handled by argparse.
| Python | mit | cdown/srt | #!/usr/bin/env python
import argparse
import sys
def parse_basic_args(args=sys.argv[1:]):
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument(
'--input', '-i', metavar='FILE',
default=sys.stdin, type=argparse.FileType('r'),
help='the file to process (default: std... | #!/usr/bin/env python
import argparse
import sys
def parse_basic_args():
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument(
'--input', '-i', metavar='FILE',
default=sys.stdin, type=argparse.FileType('r'),
help='the file to process (default: stdin)',
)
p... | <commit_before>#!/usr/bin/env python
import argparse
import sys
def parse_basic_args(args=sys.argv[1:]):
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument(
'--input', '-i', metavar='FILE',
default=sys.stdin, type=argparse.FileType('r'),
help='the file to proces... | #!/usr/bin/env python
import argparse
import sys
def parse_basic_args():
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument(
'--input', '-i', metavar='FILE',
default=sys.stdin, type=argparse.FileType('r'),
help='the file to process (default: stdin)',
)
p... | #!/usr/bin/env python
import argparse
import sys
def parse_basic_args(args=sys.argv[1:]):
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument(
'--input', '-i', metavar='FILE',
default=sys.stdin, type=argparse.FileType('r'),
help='the file to process (default: std... | <commit_before>#!/usr/bin/env python
import argparse
import sys
def parse_basic_args(args=sys.argv[1:]):
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument(
'--input', '-i', metavar='FILE',
default=sys.stdin, type=argparse.FileType('r'),
help='the file to proces... |
345a8e338e1c5256bc8e5e78d0595a76d1ceff84 | nbtutor/__init__.py | nbtutor/__init__.py | # -*- coding: utf-8 -*-
"""
nbtutor - a small utility to indicate which cells should be cleared (exercises).
"""
try:
from nbconvert.preprocessors.base import Preprocessor
except ImportError:
from IPython.nbconvert.preprocessors.base import Preprocessor
class ClearExercisePreprocessor(Preprocessor):
def... | # -*- coding: utf-8 -*-
"""
nbtutor - a small utility to indicate which cells should be cleared (exercises).
"""
import os
try:
from nbconvert.preprocessors.base import Preprocessor
except ImportError:
from IPython.nbconvert.preprocessors.base import Preprocessor
class ClearExercisePreprocessor(Preprocessor... | Fix the output file name for solution | Fix the output file name for solution
| Python | bsd-2-clause | jorisvandenbossche/nbtutor,jorisvandenbossche/nbtutor | # -*- coding: utf-8 -*-
"""
nbtutor - a small utility to indicate which cells should be cleared (exercises).
"""
try:
from nbconvert.preprocessors.base import Preprocessor
except ImportError:
from IPython.nbconvert.preprocessors.base import Preprocessor
class ClearExercisePreprocessor(Preprocessor):
def... | # -*- coding: utf-8 -*-
"""
nbtutor - a small utility to indicate which cells should be cleared (exercises).
"""
import os
try:
from nbconvert.preprocessors.base import Preprocessor
except ImportError:
from IPython.nbconvert.preprocessors.base import Preprocessor
class ClearExercisePreprocessor(Preprocessor... | <commit_before># -*- coding: utf-8 -*-
"""
nbtutor - a small utility to indicate which cells should be cleared (exercises).
"""
try:
from nbconvert.preprocessors.base import Preprocessor
except ImportError:
from IPython.nbconvert.preprocessors.base import Preprocessor
class ClearExercisePreprocessor(Preproce... | # -*- coding: utf-8 -*-
"""
nbtutor - a small utility to indicate which cells should be cleared (exercises).
"""
import os
try:
from nbconvert.preprocessors.base import Preprocessor
except ImportError:
from IPython.nbconvert.preprocessors.base import Preprocessor
class ClearExercisePreprocessor(Preprocessor... | # -*- coding: utf-8 -*-
"""
nbtutor - a small utility to indicate which cells should be cleared (exercises).
"""
try:
from nbconvert.preprocessors.base import Preprocessor
except ImportError:
from IPython.nbconvert.preprocessors.base import Preprocessor
class ClearExercisePreprocessor(Preprocessor):
def... | <commit_before># -*- coding: utf-8 -*-
"""
nbtutor - a small utility to indicate which cells should be cleared (exercises).
"""
try:
from nbconvert.preprocessors.base import Preprocessor
except ImportError:
from IPython.nbconvert.preprocessors.base import Preprocessor
class ClearExercisePreprocessor(Preproce... |
9977960046198626d266197bd9f6c4245e1897d6 | byceps/blueprints/orga_admin/forms.py | byceps/blueprints/orga_admin/forms.py | """
byceps.blueprints.orga_admin.forms
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:Copyright: 2006-2018 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.
"""
from wtforms import StringField
from wtforms.validators import InputRequired, ValidationError
from ...services.user import service as user_service
... | """
byceps.blueprints.orga_admin.forms
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:Copyright: 2006-2018 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.
"""
from wtforms import StringField
from wtforms.validators import InputRequired, ValidationError
from ...services.user import service as user_service
... | Fix typo in validator function name | Fix typo in validator function name
| Python | bsd-3-clause | homeworkprod/byceps,m-ober/byceps,homeworkprod/byceps,m-ober/byceps,homeworkprod/byceps,m-ober/byceps | """
byceps.blueprints.orga_admin.forms
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:Copyright: 2006-2018 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.
"""
from wtforms import StringField
from wtforms.validators import InputRequired, ValidationError
from ...services.user import service as user_service
... | """
byceps.blueprints.orga_admin.forms
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:Copyright: 2006-2018 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.
"""
from wtforms import StringField
from wtforms.validators import InputRequired, ValidationError
from ...services.user import service as user_service
... | <commit_before>"""
byceps.blueprints.orga_admin.forms
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:Copyright: 2006-2018 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.
"""
from wtforms import StringField
from wtforms.validators import InputRequired, ValidationError
from ...services.user import service a... | """
byceps.blueprints.orga_admin.forms
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:Copyright: 2006-2018 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.
"""
from wtforms import StringField
from wtforms.validators import InputRequired, ValidationError
from ...services.user import service as user_service
... | """
byceps.blueprints.orga_admin.forms
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:Copyright: 2006-2018 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.
"""
from wtforms import StringField
from wtforms.validators import InputRequired, ValidationError
from ...services.user import service as user_service
... | <commit_before>"""
byceps.blueprints.orga_admin.forms
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:Copyright: 2006-2018 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.
"""
from wtforms import StringField
from wtforms.validators import InputRequired, ValidationError
from ...services.user import service a... |
493aef6b9965bd4fd83fac8a4cdd790b2d8010e2 | chainercv/links/connection/seblock.py | chainercv/links/connection/seblock.py | import chainer
import chainer.functions as F
import chainer.links as L
class SEBlock(chainer.Chain):
"""A squeeze-and-excitation block.
This block is part of squeeze-and-excitation networks. Channel-wise
multiplication weights are inferred from and applied to input feature map.
Please refer to `the ... | import chainer
import chainer.functions as F
import chainer.links as L
class SEBlock(chainer.Chain):
"""A squeeze-and-excitation block.
This block is part of squeeze-and-excitation networks. Channel-wise
multiplication weights are inferred from and applied to input feature map.
Please refer to `the ... | Simplify SEBlock by broadcast of binary op | Simplify SEBlock by broadcast of binary op
instead of explicit broadcast_to. The main motivation of this
change is to simplify the exported ONNX, but this would also
improve performance.
| Python | mit | chainer/chainercv,pfnet/chainercv,chainer/chainercv | import chainer
import chainer.functions as F
import chainer.links as L
class SEBlock(chainer.Chain):
"""A squeeze-and-excitation block.
This block is part of squeeze-and-excitation networks. Channel-wise
multiplication weights are inferred from and applied to input feature map.
Please refer to `the ... | import chainer
import chainer.functions as F
import chainer.links as L
class SEBlock(chainer.Chain):
"""A squeeze-and-excitation block.
This block is part of squeeze-and-excitation networks. Channel-wise
multiplication weights are inferred from and applied to input feature map.
Please refer to `the ... | <commit_before>import chainer
import chainer.functions as F
import chainer.links as L
class SEBlock(chainer.Chain):
"""A squeeze-and-excitation block.
This block is part of squeeze-and-excitation networks. Channel-wise
multiplication weights are inferred from and applied to input feature map.
Please... | import chainer
import chainer.functions as F
import chainer.links as L
class SEBlock(chainer.Chain):
"""A squeeze-and-excitation block.
This block is part of squeeze-and-excitation networks. Channel-wise
multiplication weights are inferred from and applied to input feature map.
Please refer to `the ... | import chainer
import chainer.functions as F
import chainer.links as L
class SEBlock(chainer.Chain):
"""A squeeze-and-excitation block.
This block is part of squeeze-and-excitation networks. Channel-wise
multiplication weights are inferred from and applied to input feature map.
Please refer to `the ... | <commit_before>import chainer
import chainer.functions as F
import chainer.links as L
class SEBlock(chainer.Chain):
"""A squeeze-and-excitation block.
This block is part of squeeze-and-excitation networks. Channel-wise
multiplication weights are inferred from and applied to input feature map.
Please... |
16f7e964341b2a0861011b33d3e4aedd937cead5 | usr/examples/14-WiFi-Shield/fw_update.py | usr/examples/14-WiFi-Shield/fw_update.py | # WINC Firmware Update Script
#
# To start have a successful firmware update create a "firmware" folder on the
# uSD card and but a bin file in it. The firmware update code will load that
# new firmware onto the WINC module.
import network
# Init wlan module in Download mode.
wlan = network.WINC(True)
#print("Firmwar... | # WINC Firmware Update Script
#
# To start have a successful firmware update create a "firmware" folder on the
# uSD card and but a bin file in it. The firmware update code will load that
# new firmware onto the WINC module.
import network
# Init wlan module in Download mode.
wlan = network.WINC(mode=network.WINC.MOD... | Fix WINC fw update script. | Fix WINC fw update script.
| Python | mit | iabdalkader/openmv,kwagyeman/openmv,kwagyeman/openmv,openmv/openmv,kwagyeman/openmv,openmv/openmv,iabdalkader/openmv,openmv/openmv,iabdalkader/openmv,kwagyeman/openmv,iabdalkader/openmv,openmv/openmv | # WINC Firmware Update Script
#
# To start have a successful firmware update create a "firmware" folder on the
# uSD card and but a bin file in it. The firmware update code will load that
# new firmware onto the WINC module.
import network
# Init wlan module in Download mode.
wlan = network.WINC(True)
#print("Firmwar... | # WINC Firmware Update Script
#
# To start have a successful firmware update create a "firmware" folder on the
# uSD card and but a bin file in it. The firmware update code will load that
# new firmware onto the WINC module.
import network
# Init wlan module in Download mode.
wlan = network.WINC(mode=network.WINC.MOD... | <commit_before># WINC Firmware Update Script
#
# To start have a successful firmware update create a "firmware" folder on the
# uSD card and but a bin file in it. The firmware update code will load that
# new firmware onto the WINC module.
import network
# Init wlan module in Download mode.
wlan = network.WINC(True)
... | # WINC Firmware Update Script
#
# To start have a successful firmware update create a "firmware" folder on the
# uSD card and but a bin file in it. The firmware update code will load that
# new firmware onto the WINC module.
import network
# Init wlan module in Download mode.
wlan = network.WINC(mode=network.WINC.MOD... | # WINC Firmware Update Script
#
# To start have a successful firmware update create a "firmware" folder on the
# uSD card and but a bin file in it. The firmware update code will load that
# new firmware onto the WINC module.
import network
# Init wlan module in Download mode.
wlan = network.WINC(True)
#print("Firmwar... | <commit_before># WINC Firmware Update Script
#
# To start have a successful firmware update create a "firmware" folder on the
# uSD card and but a bin file in it. The firmware update code will load that
# new firmware onto the WINC module.
import network
# Init wlan module in Download mode.
wlan = network.WINC(True)
... |
29974fba6810e1be7e8a2ba8322bd8c78a9012d0 | numpy/_array_api/_dtypes.py | numpy/_array_api/_dtypes.py | import numpy as np
# Note: we use dtype objects instead of dtype classes. The spec does not
# require any behavior on dtypes other than equality.
int8 = np.dtype('int8')
int16 = np.dtype('int16')
int32 = np.dtype('int32')
int64 = np.dtype('int64')
uint8 = np.dtype('uint8')
uint16 = np.dtype('uint16')
uint32 = np.dtype... | import numpy as np
# Note: we use dtype objects instead of dtype classes. The spec does not
# require any behavior on dtypes other than equality.
int8 = np.dtype('int8')
int16 = np.dtype('int16')
int32 = np.dtype('int32')
int64 = np.dtype('int64')
uint8 = np.dtype('uint8')
uint16 = np.dtype('uint16')
uint32 = np.dtype... | Use tuples for internal type lists in the array API | Use tuples for internal type lists in the array API
These are easier for type checkers to handle.
| Python | bsd-3-clause | pdebuyl/numpy,rgommers/numpy,jakirkham/numpy,endolith/numpy,charris/numpy,mattip/numpy,mhvk/numpy,pdebuyl/numpy,seberg/numpy,simongibbons/numpy,seberg/numpy,mattip/numpy,jakirkham/numpy,pdebuyl/numpy,mhvk/numpy,simongibbons/numpy,numpy/numpy,jakirkham/numpy,rgommers/numpy,charris/numpy,simongibbons/numpy,anntzer/numpy,... | import numpy as np
# Note: we use dtype objects instead of dtype classes. The spec does not
# require any behavior on dtypes other than equality.
int8 = np.dtype('int8')
int16 = np.dtype('int16')
int32 = np.dtype('int32')
int64 = np.dtype('int64')
uint8 = np.dtype('uint8')
uint16 = np.dtype('uint16')
uint32 = np.dtype... | import numpy as np
# Note: we use dtype objects instead of dtype classes. The spec does not
# require any behavior on dtypes other than equality.
int8 = np.dtype('int8')
int16 = np.dtype('int16')
int32 = np.dtype('int32')
int64 = np.dtype('int64')
uint8 = np.dtype('uint8')
uint16 = np.dtype('uint16')
uint32 = np.dtype... | <commit_before>import numpy as np
# Note: we use dtype objects instead of dtype classes. The spec does not
# require any behavior on dtypes other than equality.
int8 = np.dtype('int8')
int16 = np.dtype('int16')
int32 = np.dtype('int32')
int64 = np.dtype('int64')
uint8 = np.dtype('uint8')
uint16 = np.dtype('uint16')
ui... | import numpy as np
# Note: we use dtype objects instead of dtype classes. The spec does not
# require any behavior on dtypes other than equality.
int8 = np.dtype('int8')
int16 = np.dtype('int16')
int32 = np.dtype('int32')
int64 = np.dtype('int64')
uint8 = np.dtype('uint8')
uint16 = np.dtype('uint16')
uint32 = np.dtype... | import numpy as np
# Note: we use dtype objects instead of dtype classes. The spec does not
# require any behavior on dtypes other than equality.
int8 = np.dtype('int8')
int16 = np.dtype('int16')
int32 = np.dtype('int32')
int64 = np.dtype('int64')
uint8 = np.dtype('uint8')
uint16 = np.dtype('uint16')
uint32 = np.dtype... | <commit_before>import numpy as np
# Note: we use dtype objects instead of dtype classes. The spec does not
# require any behavior on dtypes other than equality.
int8 = np.dtype('int8')
int16 = np.dtype('int16')
int32 = np.dtype('int32')
int64 = np.dtype('int64')
uint8 = np.dtype('uint8')
uint16 = np.dtype('uint16')
ui... |
0599961b1509d7b8e0bec310b40a62f11a55cc8f | src/tagversion/entrypoints.py | src/tagversion/entrypoints.py | """
tagversion Entrypoints
"""
import logging
import sys
from tagversion.argparse import ArgumentParser
from tagversion.git import GitVersion
from tagversion.write import WriteFile
def main():
logging.basicConfig(level=logging.WARNING)
parser = ArgumentParser()
subcommand = parser.add_subparsers(dest='s... | """
tagversion Entrypoints
"""
import logging
import os
import sys
from tagversion.argparse import ArgumentParser
from tagversion.git import GitVersion
from tagversion.write import WriteFile
LOG_LEVEL = os.environ.get('LOG_LEVEL', 'warning')
def main():
logging.basicConfig(level=getattr(logging, LOG_LEVEL.upper... | Allow log level to be changed via environment variable | Allow log level to be changed via environment variable
| Python | bsd-2-clause | rca/tag-version,rca/tag-version | """
tagversion Entrypoints
"""
import logging
import sys
from tagversion.argparse import ArgumentParser
from tagversion.git import GitVersion
from tagversion.write import WriteFile
def main():
logging.basicConfig(level=logging.WARNING)
parser = ArgumentParser()
subcommand = parser.add_subparsers(dest='s... | """
tagversion Entrypoints
"""
import logging
import os
import sys
from tagversion.argparse import ArgumentParser
from tagversion.git import GitVersion
from tagversion.write import WriteFile
LOG_LEVEL = os.environ.get('LOG_LEVEL', 'warning')
def main():
logging.basicConfig(level=getattr(logging, LOG_LEVEL.upper... | <commit_before>"""
tagversion Entrypoints
"""
import logging
import sys
from tagversion.argparse import ArgumentParser
from tagversion.git import GitVersion
from tagversion.write import WriteFile
def main():
logging.basicConfig(level=logging.WARNING)
parser = ArgumentParser()
subcommand = parser.add_sub... | """
tagversion Entrypoints
"""
import logging
import os
import sys
from tagversion.argparse import ArgumentParser
from tagversion.git import GitVersion
from tagversion.write import WriteFile
LOG_LEVEL = os.environ.get('LOG_LEVEL', 'warning')
def main():
logging.basicConfig(level=getattr(logging, LOG_LEVEL.upper... | """
tagversion Entrypoints
"""
import logging
import sys
from tagversion.argparse import ArgumentParser
from tagversion.git import GitVersion
from tagversion.write import WriteFile
def main():
logging.basicConfig(level=logging.WARNING)
parser = ArgumentParser()
subcommand = parser.add_subparsers(dest='s... | <commit_before>"""
tagversion Entrypoints
"""
import logging
import sys
from tagversion.argparse import ArgumentParser
from tagversion.git import GitVersion
from tagversion.write import WriteFile
def main():
logging.basicConfig(level=logging.WARNING)
parser = ArgumentParser()
subcommand = parser.add_sub... |
da353acf45de9159cb5d05e5bd3b6d7bff6d0840 | tests/functional/test_examples.py | tests/functional/test_examples.py | # -*- coding: utf-8 -*-
#######################################################################
# Name: test_examples
# Purpose: Test that examples run without errors.
# Author: Igor R. Dejanović <igor DOT dejanovic AT gmail DOT com>
# Copyright:
# (c) 2014-2015 Igor R. Dejanović <igor DOT dejanovic AT gmail DOT com... | # -*- coding: utf-8 -*-
#######################################################################
# Name: test_examples
# Purpose: Test that examples run without errors.
# Author: Igor R. Dejanović <igor DOT dejanovic AT gmail DOT com>
# Copyright:
# (c) 2014-2015 Igor R. Dejanović <igor DOT dejanovic AT gmail DOT com... | Remove `render_all_grammars` example from tests | Remove `render_all_grammars` example from tests
| Python | mit | igordejanovic/textX,igordejanovic/textX,igordejanovic/textX | # -*- coding: utf-8 -*-
#######################################################################
# Name: test_examples
# Purpose: Test that examples run without errors.
# Author: Igor R. Dejanović <igor DOT dejanovic AT gmail DOT com>
# Copyright:
# (c) 2014-2015 Igor R. Dejanović <igor DOT dejanovic AT gmail DOT com... | # -*- coding: utf-8 -*-
#######################################################################
# Name: test_examples
# Purpose: Test that examples run without errors.
# Author: Igor R. Dejanović <igor DOT dejanovic AT gmail DOT com>
# Copyright:
# (c) 2014-2015 Igor R. Dejanović <igor DOT dejanovic AT gmail DOT com... | <commit_before># -*- coding: utf-8 -*-
#######################################################################
# Name: test_examples
# Purpose: Test that examples run without errors.
# Author: Igor R. Dejanović <igor DOT dejanovic AT gmail DOT com>
# Copyright:
# (c) 2014-2015 Igor R. Dejanović <igor DOT dejanovic A... | # -*- coding: utf-8 -*-
#######################################################################
# Name: test_examples
# Purpose: Test that examples run without errors.
# Author: Igor R. Dejanović <igor DOT dejanovic AT gmail DOT com>
# Copyright:
# (c) 2014-2015 Igor R. Dejanović <igor DOT dejanovic AT gmail DOT com... | # -*- coding: utf-8 -*-
#######################################################################
# Name: test_examples
# Purpose: Test that examples run without errors.
# Author: Igor R. Dejanović <igor DOT dejanovic AT gmail DOT com>
# Copyright:
# (c) 2014-2015 Igor R. Dejanović <igor DOT dejanovic AT gmail DOT com... | <commit_before># -*- coding: utf-8 -*-
#######################################################################
# Name: test_examples
# Purpose: Test that examples run without errors.
# Author: Igor R. Dejanović <igor DOT dejanovic AT gmail DOT com>
# Copyright:
# (c) 2014-2015 Igor R. Dejanović <igor DOT dejanovic A... |
eee5018475e01286be3ee5b396e213762923484e | announcements/forms.py | announcements/forms.py |
from django import forms
from django.contrib.auth.models import User
from django.utils.translation import ugettext_lazy as _
try:
from notification import models as notification
except ImportError:
notification = None
from announcements.models import Announcement
class AnnouncementAdminForm(forms.ModelForm)... |
from django import forms
from django.contrib.auth.models import User
from django.utils.translation import ugettext_lazy as _
try:
from notification import models as notification
except ImportError:
notification = None
from announcements.models import Announcement
class AnnouncementAdminForm(forms.ModelForm)... | Use the new interface to notification.send to explicitly override the default behavior and queue notifications for announcements. | Use the new interface to notification.send to explicitly override the default behavior and queue notifications for announcements.
git-svn-id: 0d26805d86c51913b6a91884701d7ea9499c7fc0@37 4e50ab13-fc4d-0410-b010-e1608ea6a288
| Python | mit | pinax/django-announcements,pinax/pinax-announcements,arthur-wsw/pinax-announcements,edx/django-announcements,percipient/django-announcements,ntucker/django-announcements,brosner/django-announcements,datafyit/django-announcements,datafyit/django-announcements,GeoNode/geonode-announcements,rizumu/django-announcements,sta... |
from django import forms
from django.contrib.auth.models import User
from django.utils.translation import ugettext_lazy as _
try:
from notification import models as notification
except ImportError:
notification = None
from announcements.models import Announcement
class AnnouncementAdminForm(forms.ModelForm)... |
from django import forms
from django.contrib.auth.models import User
from django.utils.translation import ugettext_lazy as _
try:
from notification import models as notification
except ImportError:
notification = None
from announcements.models import Announcement
class AnnouncementAdminForm(forms.ModelForm)... | <commit_before>
from django import forms
from django.contrib.auth.models import User
from django.utils.translation import ugettext_lazy as _
try:
from notification import models as notification
except ImportError:
notification = None
from announcements.models import Announcement
class AnnouncementAdminForm(f... |
from django import forms
from django.contrib.auth.models import User
from django.utils.translation import ugettext_lazy as _
try:
from notification import models as notification
except ImportError:
notification = None
from announcements.models import Announcement
class AnnouncementAdminForm(forms.ModelForm)... |
from django import forms
from django.contrib.auth.models import User
from django.utils.translation import ugettext_lazy as _
try:
from notification import models as notification
except ImportError:
notification = None
from announcements.models import Announcement
class AnnouncementAdminForm(forms.ModelForm)... | <commit_before>
from django import forms
from django.contrib.auth.models import User
from django.utils.translation import ugettext_lazy as _
try:
from notification import models as notification
except ImportError:
notification = None
from announcements.models import Announcement
class AnnouncementAdminForm(f... |
edf67fb99af11fbf9b62b1a67dd9992a247fe326 | setup_directory.py | setup_directory.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import division, print_function, absolute_import
import argparse
import os
import subprocess as sp
from contextlib import contextmanager
import tempfile
try:
import urllib.request as urllib2
except ImportError:
import urllib2
MINICONDA_URL = 'https... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import division, print_function, absolute_import
import argparse
import os
import subprocess as sp
from contextlib import contextmanager
import tempfile
try:
import urllib.request as urllib2
except ImportError:
import urllib2
MINICONDA_URL = 'https... | Add change directory context manager | Add change directory context manager
| Python | mit | NGTS/pipeline-output-analysis-setup-script | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import division, print_function, absolute_import
import argparse
import os
import subprocess as sp
from contextlib import contextmanager
import tempfile
try:
import urllib.request as urllib2
except ImportError:
import urllib2
MINICONDA_URL = 'https... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import division, print_function, absolute_import
import argparse
import os
import subprocess as sp
from contextlib import contextmanager
import tempfile
try:
import urllib.request as urllib2
except ImportError:
import urllib2
MINICONDA_URL = 'https... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import division, print_function, absolute_import
import argparse
import os
import subprocess as sp
from contextlib import contextmanager
import tempfile
try:
import urllib.request as urllib2
except ImportError:
import urllib2
MINICON... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import division, print_function, absolute_import
import argparse
import os
import subprocess as sp
from contextlib import contextmanager
import tempfile
try:
import urllib.request as urllib2
except ImportError:
import urllib2
MINICONDA_URL = 'https... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import division, print_function, absolute_import
import argparse
import os
import subprocess as sp
from contextlib import contextmanager
import tempfile
try:
import urllib.request as urllib2
except ImportError:
import urllib2
MINICONDA_URL = 'https... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import division, print_function, absolute_import
import argparse
import os
import subprocess as sp
from contextlib import contextmanager
import tempfile
try:
import urllib.request as urllib2
except ImportError:
import urllib2
MINICON... |
ff85fc05e179e451dabb1f20781dfc5a90314d71 | scripts/adb-wrapper.py | scripts/adb-wrapper.py | import subprocess
import sys
import re
# Note: no output will be printed until the entire test suite has finished
result = subprocess.run(sys.argv[1], shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True)
successRegex = re.compile('OK \(\d+ tests\)')
print(result.stderr)
print(result.s... | import subprocess
import sys
import re
# Note: no output will be printed until the entire test suite has finished
p = subprocess.Popen(sys.argv[1], shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True)
stdoutResult, stderrResult = p.communicate()
successRegex = re.compile('OK \(\d+ test... | Refactor the python wrapper script because apparently apt-get doesn't install 3.5, and subprocess.run() is only in 3.5 | Refactor the python wrapper script because apparently apt-get doesn't install 3.5, and subprocess.run() is only in 3.5
| Python | apache-2.0 | sbosley/squidb,yahoo/squidb,yahoo/squidb,sbosley/squidb,sbosley/squidb,sbosley/squidb,sbosley/squidb,yahoo/squidb,yahoo/squidb,yahoo/squidb | import subprocess
import sys
import re
# Note: no output will be printed until the entire test suite has finished
result = subprocess.run(sys.argv[1], shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True)
successRegex = re.compile('OK \(\d+ tests\)')
print(result.stderr)
print(result.s... | import subprocess
import sys
import re
# Note: no output will be printed until the entire test suite has finished
p = subprocess.Popen(sys.argv[1], shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True)
stdoutResult, stderrResult = p.communicate()
successRegex = re.compile('OK \(\d+ test... | <commit_before>import subprocess
import sys
import re
# Note: no output will be printed until the entire test suite has finished
result = subprocess.run(sys.argv[1], shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True)
successRegex = re.compile('OK \(\d+ tests\)')
print(result.stderr)... | import subprocess
import sys
import re
# Note: no output will be printed until the entire test suite has finished
p = subprocess.Popen(sys.argv[1], shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True)
stdoutResult, stderrResult = p.communicate()
successRegex = re.compile('OK \(\d+ test... | import subprocess
import sys
import re
# Note: no output will be printed until the entire test suite has finished
result = subprocess.run(sys.argv[1], shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True)
successRegex = re.compile('OK \(\d+ tests\)')
print(result.stderr)
print(result.s... | <commit_before>import subprocess
import sys
import re
# Note: no output will be printed until the entire test suite has finished
result = subprocess.run(sys.argv[1], shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True)
successRegex = re.compile('OK \(\d+ tests\)')
print(result.stderr)... |
7d79c6072482d7a2de515d7ca567225100e7b6e9 | tests/test_stock.py | tests/test_stock.py | import unittest
from datetime import datetime
from stock import Stock
class StockTest(unittest.TestCase):
def test_new_stock_price(self):
"""A new stock should have a price that is None.
"""
stock = Stock("GOOG")
self.assertIsNone(stock.price)
def test_stock_update(self):
... | import unittest
from datetime import datetime
from stock import Stock
class StockTest(unittest.TestCase):
def test_new_stock_price(self):
"""A new stock should have a price that is None.
"""
stock = Stock("GOOG")
self.assertIsNone(stock.price)
def test_stock_update(self):
... | Update negative price exception test to use assertRaises. | Update negative price exception test to use assertRaises.
| Python | mit | bsmukasa/stock_alerter | import unittest
from datetime import datetime
from stock import Stock
class StockTest(unittest.TestCase):
def test_new_stock_price(self):
"""A new stock should have a price that is None.
"""
stock = Stock("GOOG")
self.assertIsNone(stock.price)
def test_stock_update(self):
... | import unittest
from datetime import datetime
from stock import Stock
class StockTest(unittest.TestCase):
def test_new_stock_price(self):
"""A new stock should have a price that is None.
"""
stock = Stock("GOOG")
self.assertIsNone(stock.price)
def test_stock_update(self):
... | <commit_before>import unittest
from datetime import datetime
from stock import Stock
class StockTest(unittest.TestCase):
def test_new_stock_price(self):
"""A new stock should have a price that is None.
"""
stock = Stock("GOOG")
self.assertIsNone(stock.price)
def test_stock_u... | import unittest
from datetime import datetime
from stock import Stock
class StockTest(unittest.TestCase):
def test_new_stock_price(self):
"""A new stock should have a price that is None.
"""
stock = Stock("GOOG")
self.assertIsNone(stock.price)
def test_stock_update(self):
... | import unittest
from datetime import datetime
from stock import Stock
class StockTest(unittest.TestCase):
def test_new_stock_price(self):
"""A new stock should have a price that is None.
"""
stock = Stock("GOOG")
self.assertIsNone(stock.price)
def test_stock_update(self):
... | <commit_before>import unittest
from datetime import datetime
from stock import Stock
class StockTest(unittest.TestCase):
def test_new_stock_price(self):
"""A new stock should have a price that is None.
"""
stock = Stock("GOOG")
self.assertIsNone(stock.price)
def test_stock_u... |
1e31f9bda61c6421a3788f28d75ba45c4838b1bd | bin/isbn_format.py | bin/isbn_format.py | #!/usr/bin/env python
import sys
import os
import yaml
import isbnlib
metafile = sys.argv[1]
metadata = open(metafile, 'r').read()
yamldata = yaml.load(metadata)
identifier = {}
for id in yamldata["identifier"]:
if "key" in id:
isbnlike = isbnlib.get_isbnlike(id["text"])[0]
if isbnlib.is_isbn13(... | #!/usr/bin/env python
import sys
import os
import yaml
import isbnlib
metafile = sys.argv[1]
metadata = open(metafile, 'r').read()
yamldata = yaml.load(metadata)
identifier = {}
if "identifier" in yamldata:
for id in yamldata["identifier"]:
if "key" in id:
isbnlike = isbnlib.get_isbnlike(id[... | Handle case of no identifiers at all in meta data | Handle case of no identifiers at all in meta data
| Python | agpl-3.0 | alerque/casile,alerque/casile,alerque/casile,alerque/casile,alerque/casile | #!/usr/bin/env python
import sys
import os
import yaml
import isbnlib
metafile = sys.argv[1]
metadata = open(metafile, 'r').read()
yamldata = yaml.load(metadata)
identifier = {}
for id in yamldata["identifier"]:
if "key" in id:
isbnlike = isbnlib.get_isbnlike(id["text"])[0]
if isbnlib.is_isbn13(... | #!/usr/bin/env python
import sys
import os
import yaml
import isbnlib
metafile = sys.argv[1]
metadata = open(metafile, 'r').read()
yamldata = yaml.load(metadata)
identifier = {}
if "identifier" in yamldata:
for id in yamldata["identifier"]:
if "key" in id:
isbnlike = isbnlib.get_isbnlike(id[... | <commit_before>#!/usr/bin/env python
import sys
import os
import yaml
import isbnlib
metafile = sys.argv[1]
metadata = open(metafile, 'r').read()
yamldata = yaml.load(metadata)
identifier = {}
for id in yamldata["identifier"]:
if "key" in id:
isbnlike = isbnlib.get_isbnlike(id["text"])[0]
if isb... | #!/usr/bin/env python
import sys
import os
import yaml
import isbnlib
metafile = sys.argv[1]
metadata = open(metafile, 'r').read()
yamldata = yaml.load(metadata)
identifier = {}
if "identifier" in yamldata:
for id in yamldata["identifier"]:
if "key" in id:
isbnlike = isbnlib.get_isbnlike(id[... | #!/usr/bin/env python
import sys
import os
import yaml
import isbnlib
metafile = sys.argv[1]
metadata = open(metafile, 'r').read()
yamldata = yaml.load(metadata)
identifier = {}
for id in yamldata["identifier"]:
if "key" in id:
isbnlike = isbnlib.get_isbnlike(id["text"])[0]
if isbnlib.is_isbn13(... | <commit_before>#!/usr/bin/env python
import sys
import os
import yaml
import isbnlib
metafile = sys.argv[1]
metadata = open(metafile, 'r').read()
yamldata = yaml.load(metadata)
identifier = {}
for id in yamldata["identifier"]:
if "key" in id:
isbnlike = isbnlib.get_isbnlike(id["text"])[0]
if isb... |
68c47089e8f50aa518816ea9099ef038055af53f | sparkxarray/tests/test_reader.py | sparkxarray/tests/test_reader.py | from pyspark.sql import SparkSession
from sparkxarray.reader import ncread
import os
spark = SparkSession.builder.appName('hi').getOrCreate()
sc = spark.sparkContext
print(os.getcwd())
filename = os.path.abspath('sparkxarray/tests/data/air.sig995.2012.nc')
print(filename)
rdd1 = ncread(sc, filename, mode='single', ... | from pyspark.sql import SparkSession
from sparkxarray.reader import ncread
import os
spark = SparkSession.builder.appName('hi').getOrCreate()
sc = spark.sparkContext
print(os.getcwd())
filename = os.path.abspath('sparkxarray/tests/data/air.sig995.2012.nc')
print(filename)
rdd1 = ncread(sc, filename, mode='single', ... | Increase number of partitions for test purposes | Increase number of partitions for test purposes
| Python | apache-2.0 | andersy005/spark-xarray,andersy005/spark-xarray | from pyspark.sql import SparkSession
from sparkxarray.reader import ncread
import os
spark = SparkSession.builder.appName('hi').getOrCreate()
sc = spark.sparkContext
print(os.getcwd())
filename = os.path.abspath('sparkxarray/tests/data/air.sig995.2012.nc')
print(filename)
rdd1 = ncread(sc, filename, mode='single', ... | from pyspark.sql import SparkSession
from sparkxarray.reader import ncread
import os
spark = SparkSession.builder.appName('hi').getOrCreate()
sc = spark.sparkContext
print(os.getcwd())
filename = os.path.abspath('sparkxarray/tests/data/air.sig995.2012.nc')
print(filename)
rdd1 = ncread(sc, filename, mode='single', ... | <commit_before>from pyspark.sql import SparkSession
from sparkxarray.reader import ncread
import os
spark = SparkSession.builder.appName('hi').getOrCreate()
sc = spark.sparkContext
print(os.getcwd())
filename = os.path.abspath('sparkxarray/tests/data/air.sig995.2012.nc')
print(filename)
rdd1 = ncread(sc, filename, ... | from pyspark.sql import SparkSession
from sparkxarray.reader import ncread
import os
spark = SparkSession.builder.appName('hi').getOrCreate()
sc = spark.sparkContext
print(os.getcwd())
filename = os.path.abspath('sparkxarray/tests/data/air.sig995.2012.nc')
print(filename)
rdd1 = ncread(sc, filename, mode='single', ... | from pyspark.sql import SparkSession
from sparkxarray.reader import ncread
import os
spark = SparkSession.builder.appName('hi').getOrCreate()
sc = spark.sparkContext
print(os.getcwd())
filename = os.path.abspath('sparkxarray/tests/data/air.sig995.2012.nc')
print(filename)
rdd1 = ncread(sc, filename, mode='single', ... | <commit_before>from pyspark.sql import SparkSession
from sparkxarray.reader import ncread
import os
spark = SparkSession.builder.appName('hi').getOrCreate()
sc = spark.sparkContext
print(os.getcwd())
filename = os.path.abspath('sparkxarray/tests/data/air.sig995.2012.nc')
print(filename)
rdd1 = ncread(sc, filename, ... |
e880522e226b593be2985cdc85cb0ebd87e53a98 | astral/models/tests/factories.py | astral/models/tests/factories.py | import factory
import faker
import random
import uuid
from astral.models.stream import Stream
from astral.models.node import Node
from astral.models.ticket import Ticket
ELIXIR_CREATION = lambda class_to_create, **kwargs: class_to_create(**kwargs)
factory.Factory.set_creation_function(ELIXIR_CREATION)
class Stream... | import factory
import faker
import random
import uuid
from astral.models.stream import Stream
from astral.models.node import Node
from astral.models.ticket import Ticket
ELIXIR_CREATION = lambda class_to_create, **kwargs: class_to_create(**kwargs)
factory.Factory.set_creation_function(ELIXIR_CREATION)
class Stream... | Make sure streams always have a source. | Make sure streams always have a source.
| Python | mit | peplin/astral | import factory
import faker
import random
import uuid
from astral.models.stream import Stream
from astral.models.node import Node
from astral.models.ticket import Ticket
ELIXIR_CREATION = lambda class_to_create, **kwargs: class_to_create(**kwargs)
factory.Factory.set_creation_function(ELIXIR_CREATION)
class Stream... | import factory
import faker
import random
import uuid
from astral.models.stream import Stream
from astral.models.node import Node
from astral.models.ticket import Ticket
ELIXIR_CREATION = lambda class_to_create, **kwargs: class_to_create(**kwargs)
factory.Factory.set_creation_function(ELIXIR_CREATION)
class Stream... | <commit_before>import factory
import faker
import random
import uuid
from astral.models.stream import Stream
from astral.models.node import Node
from astral.models.ticket import Ticket
ELIXIR_CREATION = lambda class_to_create, **kwargs: class_to_create(**kwargs)
factory.Factory.set_creation_function(ELIXIR_CREATION)... | import factory
import faker
import random
import uuid
from astral.models.stream import Stream
from astral.models.node import Node
from astral.models.ticket import Ticket
ELIXIR_CREATION = lambda class_to_create, **kwargs: class_to_create(**kwargs)
factory.Factory.set_creation_function(ELIXIR_CREATION)
class Stream... | import factory
import faker
import random
import uuid
from astral.models.stream import Stream
from astral.models.node import Node
from astral.models.ticket import Ticket
ELIXIR_CREATION = lambda class_to_create, **kwargs: class_to_create(**kwargs)
factory.Factory.set_creation_function(ELIXIR_CREATION)
class Stream... | <commit_before>import factory
import faker
import random
import uuid
from astral.models.stream import Stream
from astral.models.node import Node
from astral.models.ticket import Ticket
ELIXIR_CREATION = lambda class_to_create, **kwargs: class_to_create(**kwargs)
factory.Factory.set_creation_function(ELIXIR_CREATION)... |
623c56c14aa1d1c47b081f607701323d00903dc9 | gather/topic/api.py | gather/topic/api.py | # -*- coding:utf-8 -*-
from gather.api import need_auth, EXCLUDE_COLUMNS
from gather.extensions import api_manager
from gather.topic.models import Topic, Reply
bp = api_manager.create_api_blueprint(
Topic,
methods=["GET", "POST"],
preprocessors={
'POST': [need_auth],
},
include_methods=[... | # -*- coding:utf-8 -*-
from flask import g, jsonify
from gather.api import need_auth, EXCLUDE_COLUMNS
from gather.extensions import api_manager
from gather.topic.models import Topic, Reply
bp = api_manager.create_api_blueprint(
Topic,
methods=["GET", "POST"],
preprocessors={
'POST': [need_auth],... | Add API to mark topic as reader | Add API to mark topic as reader
| Python | mit | whtsky/Gather,whtsky/Gather | # -*- coding:utf-8 -*-
from gather.api import need_auth, EXCLUDE_COLUMNS
from gather.extensions import api_manager
from gather.topic.models import Topic, Reply
bp = api_manager.create_api_blueprint(
Topic,
methods=["GET", "POST"],
preprocessors={
'POST': [need_auth],
},
include_methods=[... | # -*- coding:utf-8 -*-
from flask import g, jsonify
from gather.api import need_auth, EXCLUDE_COLUMNS
from gather.extensions import api_manager
from gather.topic.models import Topic, Reply
bp = api_manager.create_api_blueprint(
Topic,
methods=["GET", "POST"],
preprocessors={
'POST': [need_auth],... | <commit_before># -*- coding:utf-8 -*-
from gather.api import need_auth, EXCLUDE_COLUMNS
from gather.extensions import api_manager
from gather.topic.models import Topic, Reply
bp = api_manager.create_api_blueprint(
Topic,
methods=["GET", "POST"],
preprocessors={
'POST': [need_auth],
},
in... | # -*- coding:utf-8 -*-
from flask import g, jsonify
from gather.api import need_auth, EXCLUDE_COLUMNS
from gather.extensions import api_manager
from gather.topic.models import Topic, Reply
bp = api_manager.create_api_blueprint(
Topic,
methods=["GET", "POST"],
preprocessors={
'POST': [need_auth],... | # -*- coding:utf-8 -*-
from gather.api import need_auth, EXCLUDE_COLUMNS
from gather.extensions import api_manager
from gather.topic.models import Topic, Reply
bp = api_manager.create_api_blueprint(
Topic,
methods=["GET", "POST"],
preprocessors={
'POST': [need_auth],
},
include_methods=[... | <commit_before># -*- coding:utf-8 -*-
from gather.api import need_auth, EXCLUDE_COLUMNS
from gather.extensions import api_manager
from gather.topic.models import Topic, Reply
bp = api_manager.create_api_blueprint(
Topic,
methods=["GET", "POST"],
preprocessors={
'POST': [need_auth],
},
in... |
1e5c593ef0dc38c12bd987f9b2f37f9bfc3c71e1 | api/base/pagination.py | api/base/pagination.py | from rest_framework import pagination
from rest_framework.response import Response
class JSONAPIPagination(pagination.PageNumberPagination):
def get_paginated_response(self, data):
return Response({
'links': {
'next': self.get_next_link(),
'previous': self.get_p... | from collections import OrderedDict
from rest_framework import pagination
from rest_framework.response import Response
class JSONAPIPagination(pagination.PageNumberPagination):
"""Custom paginator that formats responses in a JSON-API compatible format."""
def get_paginated_response(self, data):
respo... | Make paginated response items ordered | Make paginated response items ordered
| Python | apache-2.0 | wearpants/osf.io,mluke93/osf.io,chennan47/osf.io,mluo613/osf.io,billyhunt/osf.io,monikagrabowska/osf.io,danielneis/osf.io,mluo613/osf.io,dplorimer/osf,jinluyuan/osf.io,cslzchen/osf.io,ZobairAlijan/osf.io,emetsger/osf.io,HarryRybacki/osf.io,emetsger/osf.io,cosenal/osf.io,amyshi188/osf.io,brianjgeiger/osf.io,HarryRybacki... | from rest_framework import pagination
from rest_framework.response import Response
class JSONAPIPagination(pagination.PageNumberPagination):
def get_paginated_response(self, data):
return Response({
'links': {
'next': self.get_next_link(),
'previous': self.get_p... | from collections import OrderedDict
from rest_framework import pagination
from rest_framework.response import Response
class JSONAPIPagination(pagination.PageNumberPagination):
"""Custom paginator that formats responses in a JSON-API compatible format."""
def get_paginated_response(self, data):
respo... | <commit_before>from rest_framework import pagination
from rest_framework.response import Response
class JSONAPIPagination(pagination.PageNumberPagination):
def get_paginated_response(self, data):
return Response({
'links': {
'next': self.get_next_link(),
'previo... | from collections import OrderedDict
from rest_framework import pagination
from rest_framework.response import Response
class JSONAPIPagination(pagination.PageNumberPagination):
"""Custom paginator that formats responses in a JSON-API compatible format."""
def get_paginated_response(self, data):
respo... | from rest_framework import pagination
from rest_framework.response import Response
class JSONAPIPagination(pagination.PageNumberPagination):
def get_paginated_response(self, data):
return Response({
'links': {
'next': self.get_next_link(),
'previous': self.get_p... | <commit_before>from rest_framework import pagination
from rest_framework.response import Response
class JSONAPIPagination(pagination.PageNumberPagination):
def get_paginated_response(self, data):
return Response({
'links': {
'next': self.get_next_link(),
'previo... |
70bfa7096fd64e6aea6f849d63878b1c8d6c6427 | fjord/urls.py | fjord/urls.py | from django.conf import settings
from django.conf.urls.defaults import patterns, include, url
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.http import HttpResponse
from funfactory.monkeypatches import patch
patch()
from django.contrib import admin
from adminplus import AdminSitePlus... | from django.conf import settings
from django.conf.urls.defaults import patterns, include, url
from django.contrib.auth.decorators import login_required
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.http import HttpResponse
from funfactory.monkeypatches import patch
patch()
from djang... | Fix site so there is no more admin login page | Fix site so there is no more admin login page
If you logged in with persona, went to the admin, then clicked on
"logout", you'd end up on the admin login page which you had
to manually leave by typing a url in the urlbar.
This fixes that.
| Python | bsd-3-clause | hoosteeno/fjord,lgp171188/fjord,Ritsyy/fjord,rlr/fjord,DESHRAJ/fjord,rlr/fjord,Ritsyy/fjord,Ritsyy/fjord,DESHRAJ/fjord,lgp171188/fjord,lgp171188/fjord,rlr/fjord,staranjeet/fjord,rlr/fjord,hoosteeno/fjord,mozilla/fjord,hoosteeno/fjord,staranjeet/fjord,mozilla/fjord,hoosteeno/fjord,mozilla/fjord,staranjeet/fjord,lgp17118... | from django.conf import settings
from django.conf.urls.defaults import patterns, include, url
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.http import HttpResponse
from funfactory.monkeypatches import patch
patch()
from django.contrib import admin
from adminplus import AdminSitePlus... | from django.conf import settings
from django.conf.urls.defaults import patterns, include, url
from django.contrib.auth.decorators import login_required
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.http import HttpResponse
from funfactory.monkeypatches import patch
patch()
from djang... | <commit_before>from django.conf import settings
from django.conf.urls.defaults import patterns, include, url
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.http import HttpResponse
from funfactory.monkeypatches import patch
patch()
from django.contrib import admin
from adminplus impor... | from django.conf import settings
from django.conf.urls.defaults import patterns, include, url
from django.contrib.auth.decorators import login_required
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.http import HttpResponse
from funfactory.monkeypatches import patch
patch()
from djang... | from django.conf import settings
from django.conf.urls.defaults import patterns, include, url
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.http import HttpResponse
from funfactory.monkeypatches import patch
patch()
from django.contrib import admin
from adminplus import AdminSitePlus... | <commit_before>from django.conf import settings
from django.conf.urls.defaults import patterns, include, url
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.http import HttpResponse
from funfactory.monkeypatches import patch
patch()
from django.contrib import admin
from adminplus impor... |
69ec6586cd9ce9c8bda5b9c2f6f76ecd4a43baca | chessfellows/chess/models.py | chessfellows/chess/models.py | from django.db import models
from django.contrib.auth.models import User
class Match(models.Model):
white = models.ForeignKey(User, related_name="White")
black = models.ForeignKey(User, related_name="Black")
moves = models.TextField()
class Player(models.Model):
user = models.OneToOneField(User)
... | import os
from django.db import models
from django.contrib.auth.models import User
def get_file_owner_username(instance, filename):
parts = [instance.user.username]
parts.append(os.path.basename(filename))
path = u"/".join(parts)
return path
class Match(models.Model):
white = models.ForeignKey(U... | Add get_file_owner_username() to return a file path for a player's profile picture; add photo attribute to Player() model | Add get_file_owner_username() to return a file path for a player's profile picture; add photo attribute to Player() model
| Python | mit | EyuelAbebe/gamer,EyuelAbebe/gamer | from django.db import models
from django.contrib.auth.models import User
class Match(models.Model):
white = models.ForeignKey(User, related_name="White")
black = models.ForeignKey(User, related_name="Black")
moves = models.TextField()
class Player(models.Model):
user = models.OneToOneField(User)
... | import os
from django.db import models
from django.contrib.auth.models import User
def get_file_owner_username(instance, filename):
parts = [instance.user.username]
parts.append(os.path.basename(filename))
path = u"/".join(parts)
return path
class Match(models.Model):
white = models.ForeignKey(U... | <commit_before>from django.db import models
from django.contrib.auth.models import User
class Match(models.Model):
white = models.ForeignKey(User, related_name="White")
black = models.ForeignKey(User, related_name="Black")
moves = models.TextField()
class Player(models.Model):
user = models.OneToOne... | import os
from django.db import models
from django.contrib.auth.models import User
def get_file_owner_username(instance, filename):
parts = [instance.user.username]
parts.append(os.path.basename(filename))
path = u"/".join(parts)
return path
class Match(models.Model):
white = models.ForeignKey(U... | from django.db import models
from django.contrib.auth.models import User
class Match(models.Model):
white = models.ForeignKey(User, related_name="White")
black = models.ForeignKey(User, related_name="Black")
moves = models.TextField()
class Player(models.Model):
user = models.OneToOneField(User)
... | <commit_before>from django.db import models
from django.contrib.auth.models import User
class Match(models.Model):
white = models.ForeignKey(User, related_name="White")
black = models.ForeignKey(User, related_name="Black")
moves = models.TextField()
class Player(models.Model):
user = models.OneToOne... |
7d5c43e0c811bc45daee6e478e67e3c33b497033 | core/templatetags/git_revno.py | core/templatetags/git_revno.py | from subprocess import check_output
from django import template
register = template.Library()
@register.simple_tag
def git_revno():
return check_output(['git', 'rev-parse', '--verify', 'HEAD']).strip()[-7:]
| from subprocess import (
PIPE,
Popen,
)
from django import template
from django.conf import settings
register = template.Library()
@register.simple_tag
def git_revno():
p = Popen(['git', 'rev-parse', '--verify', 'HEAD'], stdout=PIPE,
cwd=settings.BASE_DIR)
out, _ = p.communicate()
... | Fix git-revno to always run in one dir | Fix git-revno to always run in one dir
| Python | mit | makyo/honeycomb,makyo/honeycomb,OpenFurry/honeycomb,makyo/honeycomb,OpenFurry/honeycomb,OpenFurry/honeycomb,makyo/honeycomb,OpenFurry/honeycomb | from subprocess import check_output
from django import template
register = template.Library()
@register.simple_tag
def git_revno():
return check_output(['git', 'rev-parse', '--verify', 'HEAD']).strip()[-7:]
Fix git-revno to always run in one dir | from subprocess import (
PIPE,
Popen,
)
from django import template
from django.conf import settings
register = template.Library()
@register.simple_tag
def git_revno():
p = Popen(['git', 'rev-parse', '--verify', 'HEAD'], stdout=PIPE,
cwd=settings.BASE_DIR)
out, _ = p.communicate()
... | <commit_before>from subprocess import check_output
from django import template
register = template.Library()
@register.simple_tag
def git_revno():
return check_output(['git', 'rev-parse', '--verify', 'HEAD']).strip()[-7:]
<commit_msg>Fix git-revno to always run in one dir<commit_after> | from subprocess import (
PIPE,
Popen,
)
from django import template
from django.conf import settings
register = template.Library()
@register.simple_tag
def git_revno():
p = Popen(['git', 'rev-parse', '--verify', 'HEAD'], stdout=PIPE,
cwd=settings.BASE_DIR)
out, _ = p.communicate()
... | from subprocess import check_output
from django import template
register = template.Library()
@register.simple_tag
def git_revno():
return check_output(['git', 'rev-parse', '--verify', 'HEAD']).strip()[-7:]
Fix git-revno to always run in one dirfrom subprocess import (
PIPE,
Popen,
)
from django import... | <commit_before>from subprocess import check_output
from django import template
register = template.Library()
@register.simple_tag
def git_revno():
return check_output(['git', 'rev-parse', '--verify', 'HEAD']).strip()[-7:]
<commit_msg>Fix git-revno to always run in one dir<commit_after>from subprocess import (
... |
26b9592780f09714b36a49424ee84698e1bb8ad5 | var/spack/packages/atlas/package.py | var/spack/packages/atlas/package.py | from spack import *
from spack.util.executable import Executable
import os
class Atlas(Package):
"""
Automatically Tuned Linear Algebra Software, generic shared
ATLAS is an approach for the automatic generation and optimization of
numerical software. Currently ATLAS supplies optimized versions for the
... | from spack import *
from spack.util.executable import Executable
import os
class Atlas(Package):
"""
Automatically Tuned Linear Algebra Software, generic shared
ATLAS is an approach for the automatic generation and optimization of
numerical software. Currently ATLAS supplies optimized versions for the
... | Add disablement of cpu throttle check. | Add disablement of cpu throttle check.
| Python | lgpl-2.1 | matthiasdiener/spack,iulian787/spack,LLNL/spack,TheTimmy/spack,skosukhin/spack,krafczyk/spack,krafczyk/spack,TheTimmy/spack,matthiasdiener/spack,LLNL/spack,LLNL/spack,matthiasdiener/spack,iulian787/spack,krafczyk/spack,skosukhin/spack,lgarren/spack,iulian787/spack,lgarren/spack,EmreAtes/spack,TheTimmy/spack,lgarren/spa... | from spack import *
from spack.util.executable import Executable
import os
class Atlas(Package):
"""
Automatically Tuned Linear Algebra Software, generic shared
ATLAS is an approach for the automatic generation and optimization of
numerical software. Currently ATLAS supplies optimized versions for the
... | from spack import *
from spack.util.executable import Executable
import os
class Atlas(Package):
"""
Automatically Tuned Linear Algebra Software, generic shared
ATLAS is an approach for the automatic generation and optimization of
numerical software. Currently ATLAS supplies optimized versions for the
... | <commit_before>from spack import *
from spack.util.executable import Executable
import os
class Atlas(Package):
"""
Automatically Tuned Linear Algebra Software, generic shared
ATLAS is an approach for the automatic generation and optimization of
numerical software. Currently ATLAS supplies optimized ve... | from spack import *
from spack.util.executable import Executable
import os
class Atlas(Package):
"""
Automatically Tuned Linear Algebra Software, generic shared
ATLAS is an approach for the automatic generation and optimization of
numerical software. Currently ATLAS supplies optimized versions for the
... | from spack import *
from spack.util.executable import Executable
import os
class Atlas(Package):
"""
Automatically Tuned Linear Algebra Software, generic shared
ATLAS is an approach for the automatic generation and optimization of
numerical software. Currently ATLAS supplies optimized versions for the
... | <commit_before>from spack import *
from spack.util.executable import Executable
import os
class Atlas(Package):
"""
Automatically Tuned Linear Algebra Software, generic shared
ATLAS is an approach for the automatic generation and optimization of
numerical software. Currently ATLAS supplies optimized ve... |
3f0deec0ca0566fb411f98ec5940590b8dc8002a | optimize/py/main.py | optimize/py/main.py | from scipy import optimize as o
import numpy as np
import clean as c
def minimize_scalar(func, options):
bracket = options['bracket']
bounds = options['bounds']
method = options['method']
tol = options['tol']
options = options['options']
try:
return o.minimize_scalar(func, bracke... | from scipy import optimize as o
import numpy as np
import clean as c
def local_minimize(func, options):
bracket = options['bracket']
bounds = options['bounds']
method = options['method']
tol = options['tol']
options = options['options']
try:
return o.minimize_scalar(func, bracket... | Add basinhopping function for global min | Add basinhopping function for global min
| Python | mit | acjones617/scipy-node,acjones617/scipy-node | from scipy import optimize as o
import numpy as np
import clean as c
def minimize_scalar(func, options):
bracket = options['bracket']
bounds = options['bounds']
method = options['method']
tol = options['tol']
options = options['options']
try:
return o.minimize_scalar(func, bracke... | from scipy import optimize as o
import numpy as np
import clean as c
def local_minimize(func, options):
bracket = options['bracket']
bounds = options['bounds']
method = options['method']
tol = options['tol']
options = options['options']
try:
return o.minimize_scalar(func, bracket... | <commit_before>from scipy import optimize as o
import numpy as np
import clean as c
def minimize_scalar(func, options):
bracket = options['bracket']
bounds = options['bounds']
method = options['method']
tol = options['tol']
options = options['options']
try:
return o.minimize_scal... | from scipy import optimize as o
import numpy as np
import clean as c
def local_minimize(func, options):
bracket = options['bracket']
bounds = options['bounds']
method = options['method']
tol = options['tol']
options = options['options']
try:
return o.minimize_scalar(func, bracket... | from scipy import optimize as o
import numpy as np
import clean as c
def minimize_scalar(func, options):
bracket = options['bracket']
bounds = options['bounds']
method = options['method']
tol = options['tol']
options = options['options']
try:
return o.minimize_scalar(func, bracke... | <commit_before>from scipy import optimize as o
import numpy as np
import clean as c
def minimize_scalar(func, options):
bracket = options['bracket']
bounds = options['bounds']
method = options['method']
tol = options['tol']
options = options['options']
try:
return o.minimize_scal... |
ba72f7177a713d4e9b468c005f6c4306cbca5cc5 | dev/__init__.py | dev/__init__.py | # coding: utf-8
from __future__ import unicode_literals, division, absolute_import, print_function
import os
package_name = "asn1crypto"
other_packages = [
"oscrypto",
"certbuilder",
"certvalidator",
"crlbuilder",
"csrbuilder",
"ocspbuilder"
]
package_root = os.path.abspath(os.path.join(os.... | # coding: utf-8
from __future__ import unicode_literals, division, absolute_import, print_function
import os
package_name = "asn1crypto"
other_packages = [
"oscrypto",
"certbuilder",
"certvalidator",
"crlbuilder",
"csrbuilder",
"ocspbuilder"
]
package_root = os.path.abspath(os.path.join(os.... | Add package dev vars for compat with modularcrypto dev scripts | Add package dev vars for compat with modularcrypto dev scripts
| Python | mit | wbond/asn1crypto | # coding: utf-8
from __future__ import unicode_literals, division, absolute_import, print_function
import os
package_name = "asn1crypto"
other_packages = [
"oscrypto",
"certbuilder",
"certvalidator",
"crlbuilder",
"csrbuilder",
"ocspbuilder"
]
package_root = os.path.abspath(os.path.join(os.... | # coding: utf-8
from __future__ import unicode_literals, division, absolute_import, print_function
import os
package_name = "asn1crypto"
other_packages = [
"oscrypto",
"certbuilder",
"certvalidator",
"crlbuilder",
"csrbuilder",
"ocspbuilder"
]
package_root = os.path.abspath(os.path.join(os.... | <commit_before># coding: utf-8
from __future__ import unicode_literals, division, absolute_import, print_function
import os
package_name = "asn1crypto"
other_packages = [
"oscrypto",
"certbuilder",
"certvalidator",
"crlbuilder",
"csrbuilder",
"ocspbuilder"
]
package_root = os.path.abspath(o... | # coding: utf-8
from __future__ import unicode_literals, division, absolute_import, print_function
import os
package_name = "asn1crypto"
other_packages = [
"oscrypto",
"certbuilder",
"certvalidator",
"crlbuilder",
"csrbuilder",
"ocspbuilder"
]
package_root = os.path.abspath(os.path.join(os.... | # coding: utf-8
from __future__ import unicode_literals, division, absolute_import, print_function
import os
package_name = "asn1crypto"
other_packages = [
"oscrypto",
"certbuilder",
"certvalidator",
"crlbuilder",
"csrbuilder",
"ocspbuilder"
]
package_root = os.path.abspath(os.path.join(os.... | <commit_before># coding: utf-8
from __future__ import unicode_literals, division, absolute_import, print_function
import os
package_name = "asn1crypto"
other_packages = [
"oscrypto",
"certbuilder",
"certvalidator",
"crlbuilder",
"csrbuilder",
"ocspbuilder"
]
package_root = os.path.abspath(o... |
d4b9b9875ce1ccf3934dba648f4422f4147cc87b | spoppy/__init__.py | spoppy/__init__.py | import logging
try:
import click
from lockfile import LockFile, LockTimeout
except ImportError:
click = None
logger = logging.getLogger('spoppy.main')
def get_version():
return '1.2.2'
if click:
@click.command()
@click.argument('username', required=False)
@click.argument('password', req... | import logging
try:
import click
from lockfile import LockFile, LockTimeout
except ImportError:
click = None
logger = logging.getLogger('spoppy.main')
def get_version():
return '1.2.2'
if click:
@click.command()
@click.argument('username', required=False)
@click.argument('password', req... | Add error info when lock exists | Add error info when lock exists
| Python | mit | sindrig/spoppy,sindrig/spoppy | import logging
try:
import click
from lockfile import LockFile, LockTimeout
except ImportError:
click = None
logger = logging.getLogger('spoppy.main')
def get_version():
return '1.2.2'
if click:
@click.command()
@click.argument('username', required=False)
@click.argument('password', req... | import logging
try:
import click
from lockfile import LockFile, LockTimeout
except ImportError:
click = None
logger = logging.getLogger('spoppy.main')
def get_version():
return '1.2.2'
if click:
@click.command()
@click.argument('username', required=False)
@click.argument('password', req... | <commit_before>import logging
try:
import click
from lockfile import LockFile, LockTimeout
except ImportError:
click = None
logger = logging.getLogger('spoppy.main')
def get_version():
return '1.2.2'
if click:
@click.command()
@click.argument('username', required=False)
@click.argument(... | import logging
try:
import click
from lockfile import LockFile, LockTimeout
except ImportError:
click = None
logger = logging.getLogger('spoppy.main')
def get_version():
return '1.2.2'
if click:
@click.command()
@click.argument('username', required=False)
@click.argument('password', req... | import logging
try:
import click
from lockfile import LockFile, LockTimeout
except ImportError:
click = None
logger = logging.getLogger('spoppy.main')
def get_version():
return '1.2.2'
if click:
@click.command()
@click.argument('username', required=False)
@click.argument('password', req... | <commit_before>import logging
try:
import click
from lockfile import LockFile, LockTimeout
except ImportError:
click = None
logger = logging.getLogger('spoppy.main')
def get_version():
return '1.2.2'
if click:
@click.command()
@click.argument('username', required=False)
@click.argument(... |
e96387d98c2b7c4ffd9ccd75fe081a7b54e563d9 | disco/constants.py | disco/constants.py | import re
SPOTIFY_SERVICE = 1
SOUNDCLOUD_SERVICE = 2
VALID_ATTACHMENT_TYPES = ('.ogg',)
# Regular expressions
RE_ATTACHMENT_URI = re.compile('^disco:\/\/(.*)\/(.*)$')
| import re
SPOTIFY_SERVICE = 1
SOUNDCLOUD_SERVICE = 2
VALID_ATTACHMENT_TYPES = ('.opus', '.weba', '.ogg', '.wav', '.mp3', '.flac')
# Regular expressions
RE_ATTACHMENT_URI = re.compile('^disco:\/\/(.*)\/(.*)$')
| Add more valid attachment types | disco: Add more valid attachment types
| Python | mit | pythonology/discobot,chandler14362/disco | import re
SPOTIFY_SERVICE = 1
SOUNDCLOUD_SERVICE = 2
VALID_ATTACHMENT_TYPES = ('.ogg',)
# Regular expressions
RE_ATTACHMENT_URI = re.compile('^disco:\/\/(.*)\/(.*)$')
disco: Add more valid attachment types | import re
SPOTIFY_SERVICE = 1
SOUNDCLOUD_SERVICE = 2
VALID_ATTACHMENT_TYPES = ('.opus', '.weba', '.ogg', '.wav', '.mp3', '.flac')
# Regular expressions
RE_ATTACHMENT_URI = re.compile('^disco:\/\/(.*)\/(.*)$')
| <commit_before>import re
SPOTIFY_SERVICE = 1
SOUNDCLOUD_SERVICE = 2
VALID_ATTACHMENT_TYPES = ('.ogg',)
# Regular expressions
RE_ATTACHMENT_URI = re.compile('^disco:\/\/(.*)\/(.*)$')
<commit_msg>disco: Add more valid attachment types<commit_after> | import re
SPOTIFY_SERVICE = 1
SOUNDCLOUD_SERVICE = 2
VALID_ATTACHMENT_TYPES = ('.opus', '.weba', '.ogg', '.wav', '.mp3', '.flac')
# Regular expressions
RE_ATTACHMENT_URI = re.compile('^disco:\/\/(.*)\/(.*)$')
| import re
SPOTIFY_SERVICE = 1
SOUNDCLOUD_SERVICE = 2
VALID_ATTACHMENT_TYPES = ('.ogg',)
# Regular expressions
RE_ATTACHMENT_URI = re.compile('^disco:\/\/(.*)\/(.*)$')
disco: Add more valid attachment typesimport re
SPOTIFY_SERVICE = 1
SOUNDCLOUD_SERVICE = 2
VALID_ATTACHMENT_TYPES = ('.opus', '.weba', '.ogg', '.wav... | <commit_before>import re
SPOTIFY_SERVICE = 1
SOUNDCLOUD_SERVICE = 2
VALID_ATTACHMENT_TYPES = ('.ogg',)
# Regular expressions
RE_ATTACHMENT_URI = re.compile('^disco:\/\/(.*)\/(.*)$')
<commit_msg>disco: Add more valid attachment types<commit_after>import re
SPOTIFY_SERVICE = 1
SOUNDCLOUD_SERVICE = 2
VALID_ATTACHMENT... |
05c5ef7f2c9be3a2365c6fb80e0ef28093ffd769 | pombola/country/__init__.py | pombola/country/__init__.py | from django.conf import settings
# Add to this list anything country-specific you want to be available
# through an import from pombola.country.
imports_and_defaults = (
('significant_positions_filter', lambda qs: qs),
)
# Note that one could do this without the dynamic import and use of
# globals() by switching... | from django.conf import settings
# Add to this list anything country-specific you want to be available
# through an import from pombola.country.
imports_and_defaults = (
('significant_positions_filter', lambda qs: qs),
)
# Note that one could do this without the dynamic import and use of
# globals() by switching... | Fix the syntax for catching multiple exceptions | Fix the syntax for catching multiple exceptions
Previously, this would only catch ImportError exceptions, due
to the way the amiguity described here:
http://legacy.python.org/dev/peps/pep-3110/#rationale
... is resolved.
| Python | agpl-3.0 | ken-muturi/pombola,ken-muturi/pombola,patricmutwiri/pombola,hzj123/56th,ken-muturi/pombola,hzj123/56th,hzj123/56th,mysociety/pombola,geoffkilpin/pombola,patricmutwiri/pombola,patricmutwiri/pombola,mysociety/pombola,hzj123/56th,ken-muturi/pombola,geoffkilpin/pombola,hzj123/56th,patricmutwiri/pombola,hzj123/56th,ken-mutu... | from django.conf import settings
# Add to this list anything country-specific you want to be available
# through an import from pombola.country.
imports_and_defaults = (
('significant_positions_filter', lambda qs: qs),
)
# Note that one could do this without the dynamic import and use of
# globals() by switching... | from django.conf import settings
# Add to this list anything country-specific you want to be available
# through an import from pombola.country.
imports_and_defaults = (
('significant_positions_filter', lambda qs: qs),
)
# Note that one could do this without the dynamic import and use of
# globals() by switching... | <commit_before>from django.conf import settings
# Add to this list anything country-specific you want to be available
# through an import from pombola.country.
imports_and_defaults = (
('significant_positions_filter', lambda qs: qs),
)
# Note that one could do this without the dynamic import and use of
# globals... | from django.conf import settings
# Add to this list anything country-specific you want to be available
# through an import from pombola.country.
imports_and_defaults = (
('significant_positions_filter', lambda qs: qs),
)
# Note that one could do this without the dynamic import and use of
# globals() by switching... | from django.conf import settings
# Add to this list anything country-specific you want to be available
# through an import from pombola.country.
imports_and_defaults = (
('significant_positions_filter', lambda qs: qs),
)
# Note that one could do this without the dynamic import and use of
# globals() by switching... | <commit_before>from django.conf import settings
# Add to this list anything country-specific you want to be available
# through an import from pombola.country.
imports_and_defaults = (
('significant_positions_filter', lambda qs: qs),
)
# Note that one could do this without the dynamic import and use of
# globals... |
57a3391c391cf55bf70e781453faa69d223161f4 | tests/test_problem.py | tests/test_problem.py | import unittest
import theano.tensor as T
from pymanopt import Problem
from pymanopt.manifolds import Sphere
class TestProblem(unittest.TestCase):
def setUp(self):
self.X = X = T.vector()
self.cost = T.exp(T.sum(X**2))
n = self.n = 15
self.man = Sphere(n)
def test_prepare(... | import unittest
import numpy as np
from numpy import random as rnd
import numpy.testing as np_testing
import theano.tensor as T
from pymanopt import Problem, TheanoFunction
from pymanopt.manifolds import Sphere
class TestProblem(unittest.TestCase):
def setUp(self):
self.X = X = T.vector()
self.c... | Replace failing unit test due to backend changes | Replace failing unit test due to backend changes
Signed-off-by: Niklas Koep <342d5290239d9c5264c8f98185afedb99596601a@gmail.com>
| Python | bsd-3-clause | nkoep/pymanopt,nkoep/pymanopt,nkoep/pymanopt,pymanopt/pymanopt,pymanopt/pymanopt | import unittest
import theano.tensor as T
from pymanopt import Problem
from pymanopt.manifolds import Sphere
class TestProblem(unittest.TestCase):
def setUp(self):
self.X = X = T.vector()
self.cost = T.exp(T.sum(X**2))
n = self.n = 15
self.man = Sphere(n)
def test_prepare(... | import unittest
import numpy as np
from numpy import random as rnd
import numpy.testing as np_testing
import theano.tensor as T
from pymanopt import Problem, TheanoFunction
from pymanopt.manifolds import Sphere
class TestProblem(unittest.TestCase):
def setUp(self):
self.X = X = T.vector()
self.c... | <commit_before>import unittest
import theano.tensor as T
from pymanopt import Problem
from pymanopt.manifolds import Sphere
class TestProblem(unittest.TestCase):
def setUp(self):
self.X = X = T.vector()
self.cost = T.exp(T.sum(X**2))
n = self.n = 15
self.man = Sphere(n)
de... | import unittest
import numpy as np
from numpy import random as rnd
import numpy.testing as np_testing
import theano.tensor as T
from pymanopt import Problem, TheanoFunction
from pymanopt.manifolds import Sphere
class TestProblem(unittest.TestCase):
def setUp(self):
self.X = X = T.vector()
self.c... | import unittest
import theano.tensor as T
from pymanopt import Problem
from pymanopt.manifolds import Sphere
class TestProblem(unittest.TestCase):
def setUp(self):
self.X = X = T.vector()
self.cost = T.exp(T.sum(X**2))
n = self.n = 15
self.man = Sphere(n)
def test_prepare(... | <commit_before>import unittest
import theano.tensor as T
from pymanopt import Problem
from pymanopt.manifolds import Sphere
class TestProblem(unittest.TestCase):
def setUp(self):
self.X = X = T.vector()
self.cost = T.exp(T.sum(X**2))
n = self.n = 15
self.man = Sphere(n)
de... |
2cd4e6f021e576a17a3f8f40122775baee9e8889 | server/run.py | server/run.py | from eve import Eve
app = Eve()
if __name__ == '__main__':
app.run()
| import json
import settings
from flask import request, session
from requests import HTTPError
from requests_oauthlib import OAuth2Session
from eve import Eve
from flask_login import LoginManager
app = Eve()
login_manager = LoginManager(app)
login_manager.login_view = "login"
login_manager.session_protection = "stron... | Add initial views for google login. | Add initial views for google login.
| Python | mit | mattiaslundberg/typer,mattiaslundberg/typer,mattiaslundberg/typer,mattiaslundberg/typer | from eve import Eve
app = Eve()
if __name__ == '__main__':
app.run()
Add initial views for google login. | import json
import settings
from flask import request, session
from requests import HTTPError
from requests_oauthlib import OAuth2Session
from eve import Eve
from flask_login import LoginManager
app = Eve()
login_manager = LoginManager(app)
login_manager.login_view = "login"
login_manager.session_protection = "stron... | <commit_before>from eve import Eve
app = Eve()
if __name__ == '__main__':
app.run()
<commit_msg>Add initial views for google login.<commit_after> | import json
import settings
from flask import request, session
from requests import HTTPError
from requests_oauthlib import OAuth2Session
from eve import Eve
from flask_login import LoginManager
app = Eve()
login_manager = LoginManager(app)
login_manager.login_view = "login"
login_manager.session_protection = "stron... | from eve import Eve
app = Eve()
if __name__ == '__main__':
app.run()
Add initial views for google login.import json
import settings
from flask import request, session
from requests import HTTPError
from requests_oauthlib import OAuth2Session
from eve import Eve
from flask_login import LoginManager
app = Eve()
l... | <commit_before>from eve import Eve
app = Eve()
if __name__ == '__main__':
app.run()
<commit_msg>Add initial views for google login.<commit_after>import json
import settings
from flask import request, session
from requests import HTTPError
from requests_oauthlib import OAuth2Session
from eve import Eve
from flask_l... |
154632b0ab27d36b63c302a550589a182a319ef8 | distance_matrix.py | distance_matrix.py | from GamTools import corr
import numpy as np
import argparse
parser = argparse.ArgumentParser(description='Calculate coverage over different window sizes for a list of bam files.')
parser.add_argument('npz_frequencies_file', help='An npz file containing co-segregation frequencies to convert to correlations')
args = p... | from GamTools import corr
import numpy as np
import argparse
parser = argparse.ArgumentParser(description='Calculate coverage over different window sizes for a list of bam files.')
parser.add_argument('npz_frequencies_file', help='An npz file containing co-segregation frequencies to convert to correlations')
args = p... | Change how/where to save the file | Change how/where to save the file
| Python | apache-2.0 | pombo-lab/gamtools,pombo-lab/gamtools | from GamTools import corr
import numpy as np
import argparse
parser = argparse.ArgumentParser(description='Calculate coverage over different window sizes for a list of bam files.')
parser.add_argument('npz_frequencies_file', help='An npz file containing co-segregation frequencies to convert to correlations')
args = p... | from GamTools import corr
import numpy as np
import argparse
parser = argparse.ArgumentParser(description='Calculate coverage over different window sizes for a list of bam files.')
parser.add_argument('npz_frequencies_file', help='An npz file containing co-segregation frequencies to convert to correlations')
args = p... | <commit_before>from GamTools import corr
import numpy as np
import argparse
parser = argparse.ArgumentParser(description='Calculate coverage over different window sizes for a list of bam files.')
parser.add_argument('npz_frequencies_file', help='An npz file containing co-segregation frequencies to convert to correlati... | from GamTools import corr
import numpy as np
import argparse
parser = argparse.ArgumentParser(description='Calculate coverage over different window sizes for a list of bam files.')
parser.add_argument('npz_frequencies_file', help='An npz file containing co-segregation frequencies to convert to correlations')
args = p... | from GamTools import corr
import numpy as np
import argparse
parser = argparse.ArgumentParser(description='Calculate coverage over different window sizes for a list of bam files.')
parser.add_argument('npz_frequencies_file', help='An npz file containing co-segregation frequencies to convert to correlations')
args = p... | <commit_before>from GamTools import corr
import numpy as np
import argparse
parser = argparse.ArgumentParser(description='Calculate coverage over different window sizes for a list of bam files.')
parser.add_argument('npz_frequencies_file', help='An npz file containing co-segregation frequencies to convert to correlati... |
ee22ba999deb9213445112f4486a6080834ba036 | django/__init__.py | django/__init__.py | VERSION = (1, 0, 'post-release-SVN')
def get_version():
"Returns the version as a human-format string."
v = '.'.join([str(i) for i in VERSION[:-1]])
if VERSION[-1]:
from django.utils.version import get_svn_revision
v = '%s-%s-%s' % (v, VERSION[-1], get_svn_revision())
return v
| VERSION = (1, 1, 0, 'alpha', 0)
def get_version():
version = '%s.%s' % (VERSION[0], VERSION[1])
if VERSION[2]:
version = '%s.%s' % (version, VERSION[2])
if VERSION[3:] == ('alpha', 0):
version = '%s pre-alpha' % version
else:
version = '%s %s' % (version, VERSION[3])
if ... | Update django.VERSION in trunk per previous discussion | Update django.VERSION in trunk per previous discussion
--HG--
extra : convert_revision : svn%3Abcc190cf-cafb-0310-a4f2-bffc1f526a37/django/trunk%409103
| Python | bsd-3-clause | adieu/django-nonrel,adieu/django-nonrel,adieu/django-nonrel | VERSION = (1, 0, 'post-release-SVN')
def get_version():
"Returns the version as a human-format string."
v = '.'.join([str(i) for i in VERSION[:-1]])
if VERSION[-1]:
from django.utils.version import get_svn_revision
v = '%s-%s-%s' % (v, VERSION[-1], get_svn_revision())
return v
Update dj... | VERSION = (1, 1, 0, 'alpha', 0)
def get_version():
version = '%s.%s' % (VERSION[0], VERSION[1])
if VERSION[2]:
version = '%s.%s' % (version, VERSION[2])
if VERSION[3:] == ('alpha', 0):
version = '%s pre-alpha' % version
else:
version = '%s %s' % (version, VERSION[3])
if ... | <commit_before>VERSION = (1, 0, 'post-release-SVN')
def get_version():
"Returns the version as a human-format string."
v = '.'.join([str(i) for i in VERSION[:-1]])
if VERSION[-1]:
from django.utils.version import get_svn_revision
v = '%s-%s-%s' % (v, VERSION[-1], get_svn_revision())
ret... | VERSION = (1, 1, 0, 'alpha', 0)
def get_version():
version = '%s.%s' % (VERSION[0], VERSION[1])
if VERSION[2]:
version = '%s.%s' % (version, VERSION[2])
if VERSION[3:] == ('alpha', 0):
version = '%s pre-alpha' % version
else:
version = '%s %s' % (version, VERSION[3])
if ... | VERSION = (1, 0, 'post-release-SVN')
def get_version():
"Returns the version as a human-format string."
v = '.'.join([str(i) for i in VERSION[:-1]])
if VERSION[-1]:
from django.utils.version import get_svn_revision
v = '%s-%s-%s' % (v, VERSION[-1], get_svn_revision())
return v
Update dj... | <commit_before>VERSION = (1, 0, 'post-release-SVN')
def get_version():
"Returns the version as a human-format string."
v = '.'.join([str(i) for i in VERSION[:-1]])
if VERSION[-1]:
from django.utils.version import get_svn_revision
v = '%s-%s-%s' % (v, VERSION[-1], get_svn_revision())
ret... |
8e5fa91de34ec2556459b6b58e6733390762a7f8 | jyven_test.py | jyven_test.py | import unittest
import logging
from jyven import maven
class TestJyven(unittest.TestCase):
"""Run as e.g. `jython -m unittest jyven_test`."""
def test_load(self):
logging.basicConfig(level=logging.DEBUG)
maven('commons-lang:commons-lang:2.6')
from org.apache.commons.lang.math import J... | import unittest
import logging
from jyven import maven
logging.basicConfig(level=logging.DEBUG)
class TestJyven(unittest.TestCase):
"""Run as e.g. `jython -m unittest jyven_test`."""
def test_load(self):
maven('commons-lang:commons-lang:2.6')
from org.apache.commons.lang.math import JVMRando... | Move test logging config to top of module | Move test logging config to top of module
| Python | mit | amake/jyven | import unittest
import logging
from jyven import maven
class TestJyven(unittest.TestCase):
"""Run as e.g. `jython -m unittest jyven_test`."""
def test_load(self):
logging.basicConfig(level=logging.DEBUG)
maven('commons-lang:commons-lang:2.6')
from org.apache.commons.lang.math import J... | import unittest
import logging
from jyven import maven
logging.basicConfig(level=logging.DEBUG)
class TestJyven(unittest.TestCase):
"""Run as e.g. `jython -m unittest jyven_test`."""
def test_load(self):
maven('commons-lang:commons-lang:2.6')
from org.apache.commons.lang.math import JVMRando... | <commit_before>import unittest
import logging
from jyven import maven
class TestJyven(unittest.TestCase):
"""Run as e.g. `jython -m unittest jyven_test`."""
def test_load(self):
logging.basicConfig(level=logging.DEBUG)
maven('commons-lang:commons-lang:2.6')
from org.apache.commons.lan... | import unittest
import logging
from jyven import maven
logging.basicConfig(level=logging.DEBUG)
class TestJyven(unittest.TestCase):
"""Run as e.g. `jython -m unittest jyven_test`."""
def test_load(self):
maven('commons-lang:commons-lang:2.6')
from org.apache.commons.lang.math import JVMRando... | import unittest
import logging
from jyven import maven
class TestJyven(unittest.TestCase):
"""Run as e.g. `jython -m unittest jyven_test`."""
def test_load(self):
logging.basicConfig(level=logging.DEBUG)
maven('commons-lang:commons-lang:2.6')
from org.apache.commons.lang.math import J... | <commit_before>import unittest
import logging
from jyven import maven
class TestJyven(unittest.TestCase):
"""Run as e.g. `jython -m unittest jyven_test`."""
def test_load(self):
logging.basicConfig(level=logging.DEBUG)
maven('commons-lang:commons-lang:2.6')
from org.apache.commons.lan... |
3d0acf0c8b04d97732d5f69e1ebf6de6fc0dea4e | doc/sphinx-conf.py | doc/sphinx-conf.py | # Configuration file for the Sphinx documentation generator.
# This picks up values from ../documentation_configuration.py.
# This gets copied to conf.py in the output directory and then picked up by
# Sphinx.
import sys, os
sys.path.insert (1, '../..')
import documentation_configuration
# To install Breathe, by dow... | # Configuration file for the Sphinx documentation generator.
# This picks up values from ../documentation_configuration.py.
# This gets copied to conf.py in the output directory and then picked up by
# Sphinx.
import sys, os
sys.path.insert (1, '../..')
import documentation_configuration
# To install Breathe, by dow... | Allow templates for Sphinx documentation | Allow templates for Sphinx documentation
| Python | apache-2.0 | rogiervd/flipsta-build | # Configuration file for the Sphinx documentation generator.
# This picks up values from ../documentation_configuration.py.
# This gets copied to conf.py in the output directory and then picked up by
# Sphinx.
import sys, os
sys.path.insert (1, '../..')
import documentation_configuration
# To install Breathe, by dow... | # Configuration file for the Sphinx documentation generator.
# This picks up values from ../documentation_configuration.py.
# This gets copied to conf.py in the output directory and then picked up by
# Sphinx.
import sys, os
sys.path.insert (1, '../..')
import documentation_configuration
# To install Breathe, by dow... | <commit_before># Configuration file for the Sphinx documentation generator.
# This picks up values from ../documentation_configuration.py.
# This gets copied to conf.py in the output directory and then picked up by
# Sphinx.
import sys, os
sys.path.insert (1, '../..')
import documentation_configuration
# To install ... | # Configuration file for the Sphinx documentation generator.
# This picks up values from ../documentation_configuration.py.
# This gets copied to conf.py in the output directory and then picked up by
# Sphinx.
import sys, os
sys.path.insert (1, '../..')
import documentation_configuration
# To install Breathe, by dow... | # Configuration file for the Sphinx documentation generator.
# This picks up values from ../documentation_configuration.py.
# This gets copied to conf.py in the output directory and then picked up by
# Sphinx.
import sys, os
sys.path.insert (1, '../..')
import documentation_configuration
# To install Breathe, by dow... | <commit_before># Configuration file for the Sphinx documentation generator.
# This picks up values from ../documentation_configuration.py.
# This gets copied to conf.py in the output directory and then picked up by
# Sphinx.
import sys, os
sys.path.insert (1, '../..')
import documentation_configuration
# To install ... |
57fd8c49de7ef6e09a4f0fbd6b39c87127e91f9a | toggle_rspec_focus.py | toggle_rspec_focus.py | import sublime, sublime_plugin, re
class ToggleRspecFocusCommand(sublime_plugin.TextCommand):
def run(self, edit, surplus=False):
for region in self.view.sel():
line = self.view.line(region)
line_contents = self.view.substr(line)
focus_regex = r'.*(?:it|describe|context... | import sublime, sublime_plugin, re
class ToggleRspecFocusCommand(sublime_plugin.TextCommand):
def run(self, edit, surplus=False):
for region in self.view.sel():
line = self.view.line(region)
line_contents = self.view.substr(line)
focus_regex = r'.*(?:it|describe|context... | Add support for 'scenario' blocks | Add support for 'scenario' blocks
| Python | mit | axsuul/sublime-toggle-rspec-focus,axsuul/sublime-toggle-rspec-focus,axsuul/sublime-toggle-rspec-focus | import sublime, sublime_plugin, re
class ToggleRspecFocusCommand(sublime_plugin.TextCommand):
def run(self, edit, surplus=False):
for region in self.view.sel():
line = self.view.line(region)
line_contents = self.view.substr(line)
focus_regex = r'.*(?:it|describe|context... | import sublime, sublime_plugin, re
class ToggleRspecFocusCommand(sublime_plugin.TextCommand):
def run(self, edit, surplus=False):
for region in self.view.sel():
line = self.view.line(region)
line_contents = self.view.substr(line)
focus_regex = r'.*(?:it|describe|context... | <commit_before>import sublime, sublime_plugin, re
class ToggleRspecFocusCommand(sublime_plugin.TextCommand):
def run(self, edit, surplus=False):
for region in self.view.sel():
line = self.view.line(region)
line_contents = self.view.substr(line)
focus_regex = r'.*(?:it|d... | import sublime, sublime_plugin, re
class ToggleRspecFocusCommand(sublime_plugin.TextCommand):
def run(self, edit, surplus=False):
for region in self.view.sel():
line = self.view.line(region)
line_contents = self.view.substr(line)
focus_regex = r'.*(?:it|describe|context... | import sublime, sublime_plugin, re
class ToggleRspecFocusCommand(sublime_plugin.TextCommand):
def run(self, edit, surplus=False):
for region in self.view.sel():
line = self.view.line(region)
line_contents = self.view.substr(line)
focus_regex = r'.*(?:it|describe|context... | <commit_before>import sublime, sublime_plugin, re
class ToggleRspecFocusCommand(sublime_plugin.TextCommand):
def run(self, edit, surplus=False):
for region in self.view.sel():
line = self.view.line(region)
line_contents = self.view.substr(line)
focus_regex = r'.*(?:it|d... |
50889a2d9a70efa8685dbb3ed9c60b05d4ecf4c1 | backend/unpp_api/apps/partner/migrations/0043_auto_20171220_1311.py | backend/unpp_api/apps/partner/migrations/0043_auto_20171220_1311.py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-12-20 13:11
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('partner', '0042_auto_20171220_1305'),
]
operations... | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-12-20 13:11
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('partner', '0042_auto_20171220_1305'),
]
operations... | Change migration so newly added field is nullable | Change migration so newly added field is nullable
| Python | apache-2.0 | unicef/un-partner-portal,unicef/un-partner-portal,unicef/un-partner-portal,unicef/un-partner-portal | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-12-20 13:11
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('partner', '0042_auto_20171220_1305'),
]
operations... | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-12-20 13:11
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('partner', '0042_auto_20171220_1305'),
]
operations... | <commit_before># -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-12-20 13:11
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('partner', '0042_auto_20171220_1305'),
]
... | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-12-20 13:11
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('partner', '0042_auto_20171220_1305'),
]
operations... | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-12-20 13:11
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('partner', '0042_auto_20171220_1305'),
]
operations... | <commit_before># -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-12-20 13:11
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('partner', '0042_auto_20171220_1305'),
]
... |
b9f136e2bb1f163d455295d824a548a36170586a | books/CrackingCodesWithPython/Chapter20/vigenereDictionaryHacker.py | books/CrackingCodesWithPython/Chapter20/vigenereDictionaryHacker.py | # Vigenère Cipher Dictionary Hacker
# https://www.nostarch.com/crackingcodes/ (BSD Licensed)
import detectEnglish, vigenereCipher, pyperclip
def main():
ciphertext = """Tzx isnz eccjxkg nfq lol mys bbqq I lxcz."""
hackedMessage = hackVigenereDictionary(ciphertext)
if hackedMessage != None:
print... | # Vigenère Cipher Dictionary Hacker
# https://www.nostarch.com/crackingcodes/ (BSD Licensed)
import detectEnglish, vigenereCipher, pyperclip
def main():
ciphertext = """Tzx isnz eccjxkg nfq lol mys bbqq I lxcz."""
hackedMessage = hackVigenereDictionary(ciphertext)
if hackedMessage != None:
print... | Update vigenereDicitonaryHacker: fixed error reported in forum | Update vigenereDicitonaryHacker: fixed error reported in forum
| Python | mit | JoseALermaIII/python-tutorials,JoseALermaIII/python-tutorials | # Vigenère Cipher Dictionary Hacker
# https://www.nostarch.com/crackingcodes/ (BSD Licensed)
import detectEnglish, vigenereCipher, pyperclip
def main():
ciphertext = """Tzx isnz eccjxkg nfq lol mys bbqq I lxcz."""
hackedMessage = hackVigenereDictionary(ciphertext)
if hackedMessage != None:
print... | # Vigenère Cipher Dictionary Hacker
# https://www.nostarch.com/crackingcodes/ (BSD Licensed)
import detectEnglish, vigenereCipher, pyperclip
def main():
ciphertext = """Tzx isnz eccjxkg nfq lol mys bbqq I lxcz."""
hackedMessage = hackVigenereDictionary(ciphertext)
if hackedMessage != None:
print... | <commit_before># Vigenère Cipher Dictionary Hacker
# https://www.nostarch.com/crackingcodes/ (BSD Licensed)
import detectEnglish, vigenereCipher, pyperclip
def main():
ciphertext = """Tzx isnz eccjxkg nfq lol mys bbqq I lxcz."""
hackedMessage = hackVigenereDictionary(ciphertext)
if hackedMessage != None... | # Vigenère Cipher Dictionary Hacker
# https://www.nostarch.com/crackingcodes/ (BSD Licensed)
import detectEnglish, vigenereCipher, pyperclip
def main():
ciphertext = """Tzx isnz eccjxkg nfq lol mys bbqq I lxcz."""
hackedMessage = hackVigenereDictionary(ciphertext)
if hackedMessage != None:
print... | # Vigenère Cipher Dictionary Hacker
# https://www.nostarch.com/crackingcodes/ (BSD Licensed)
import detectEnglish, vigenereCipher, pyperclip
def main():
ciphertext = """Tzx isnz eccjxkg nfq lol mys bbqq I lxcz."""
hackedMessage = hackVigenereDictionary(ciphertext)
if hackedMessage != None:
print... | <commit_before># Vigenère Cipher Dictionary Hacker
# https://www.nostarch.com/crackingcodes/ (BSD Licensed)
import detectEnglish, vigenereCipher, pyperclip
def main():
ciphertext = """Tzx isnz eccjxkg nfq lol mys bbqq I lxcz."""
hackedMessage = hackVigenereDictionary(ciphertext)
if hackedMessage != None... |
cafd737dc5b9cabb2b4629eb5741bba337f884f9 | project/app/main.py | project/app/main.py | # -*- coding: utf-8 -*-
"""WSGI app setup."""
import os
import sys
if 'lib' not in sys.path:
# Add lib as primary libraries directory, with fallback to lib/dist
# and optionally to lib/dist.zip, loaded using zipimport.
sys.path[0:0] = ['lib', 'lib/dist', 'lib/dist.zip']
from tipfy import Tipfy
from config... | # -*- coding: utf-8 -*-
"""WSGI app setup."""
import os
import sys
if 'lib' not in sys.path:
# Add lib as primary libraries directory, with fallback to lib/dist
# and optionally to lib/dist.zip, loaded using zipimport.
sys.path[0:0] = ['lib', 'lib/dist', 'lib/dist.zip']
from tipfy import Tipfy
from config... | Enable appstats by default in dev too. | Enable appstats by default in dev too.
| Python | bsd-3-clause | moraes/tipfy,moraes/tipfy,moraes/tipfy | # -*- coding: utf-8 -*-
"""WSGI app setup."""
import os
import sys
if 'lib' not in sys.path:
# Add lib as primary libraries directory, with fallback to lib/dist
# and optionally to lib/dist.zip, loaded using zipimport.
sys.path[0:0] = ['lib', 'lib/dist', 'lib/dist.zip']
from tipfy import Tipfy
from config... | # -*- coding: utf-8 -*-
"""WSGI app setup."""
import os
import sys
if 'lib' not in sys.path:
# Add lib as primary libraries directory, with fallback to lib/dist
# and optionally to lib/dist.zip, loaded using zipimport.
sys.path[0:0] = ['lib', 'lib/dist', 'lib/dist.zip']
from tipfy import Tipfy
from config... | <commit_before># -*- coding: utf-8 -*-
"""WSGI app setup."""
import os
import sys
if 'lib' not in sys.path:
# Add lib as primary libraries directory, with fallback to lib/dist
# and optionally to lib/dist.zip, loaded using zipimport.
sys.path[0:0] = ['lib', 'lib/dist', 'lib/dist.zip']
from tipfy import Ti... | # -*- coding: utf-8 -*-
"""WSGI app setup."""
import os
import sys
if 'lib' not in sys.path:
# Add lib as primary libraries directory, with fallback to lib/dist
# and optionally to lib/dist.zip, loaded using zipimport.
sys.path[0:0] = ['lib', 'lib/dist', 'lib/dist.zip']
from tipfy import Tipfy
from config... | # -*- coding: utf-8 -*-
"""WSGI app setup."""
import os
import sys
if 'lib' not in sys.path:
# Add lib as primary libraries directory, with fallback to lib/dist
# and optionally to lib/dist.zip, loaded using zipimport.
sys.path[0:0] = ['lib', 'lib/dist', 'lib/dist.zip']
from tipfy import Tipfy
from config... | <commit_before># -*- coding: utf-8 -*-
"""WSGI app setup."""
import os
import sys
if 'lib' not in sys.path:
# Add lib as primary libraries directory, with fallback to lib/dist
# and optionally to lib/dist.zip, loaded using zipimport.
sys.path[0:0] = ['lib', 'lib/dist', 'lib/dist.zip']
from tipfy import Ti... |
879bdbcddb582d5f4768fe7042380397514767d3 | servo.py | servo.py | #################################################################
## SERVO LIB for SMART TOLLBOOTH PROJECT ##
#################################################################
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
SERVO = 17
GPIO.setup(SERVO, GPIO.OUT)
def moveDeg(i):
va... | #################################################################
## SERVO LIB for SMART TOLLBOOTH PROJECT ##
#################################################################
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BOARDs)
SERVO = 11
GPIO.setup(SERVO, GPIO.OUT)
def moveDeg(i):... | Update pin to gpio.board (from gpio.bcm) | fix: Update pin to gpio.board (from gpio.bcm)
| Python | mit | DreamN/Smart-Tollbooth,DreamN/Smart-Tollbooth,DreamN/Smart-Tollbooth,DreamN/Smart-Tollbooth | #################################################################
## SERVO LIB for SMART TOLLBOOTH PROJECT ##
#################################################################
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
SERVO = 17
GPIO.setup(SERVO, GPIO.OUT)
def moveDeg(i):
va... | #################################################################
## SERVO LIB for SMART TOLLBOOTH PROJECT ##
#################################################################
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BOARDs)
SERVO = 11
GPIO.setup(SERVO, GPIO.OUT)
def moveDeg(i):... | <commit_before>#################################################################
## SERVO LIB for SMART TOLLBOOTH PROJECT ##
#################################################################
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
SERVO = 17
GPIO.setup(SERVO, GPIO.OUT)
def ... | #################################################################
## SERVO LIB for SMART TOLLBOOTH PROJECT ##
#################################################################
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BOARDs)
SERVO = 11
GPIO.setup(SERVO, GPIO.OUT)
def moveDeg(i):... | #################################################################
## SERVO LIB for SMART TOLLBOOTH PROJECT ##
#################################################################
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
SERVO = 17
GPIO.setup(SERVO, GPIO.OUT)
def moveDeg(i):
va... | <commit_before>#################################################################
## SERVO LIB for SMART TOLLBOOTH PROJECT ##
#################################################################
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
SERVO = 17
GPIO.setup(SERVO, GPIO.OUT)
def ... |
4c40dc904792ca037c4f71ca4a0546229ae0cb20 | setup.py | setup.py | from setuptools import (
setup,
find_packages,
)
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, "README.md")) as rdme:
with open(path.join(here, "CHANGELOG.md")) as chlog:
readme = rdme.read()
changes = chlog.read()
long_description = read... | from setuptools import (
setup,
find_packages,
)
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, "README.md")) as rdme:
with open(path.join(here, "CHANGELOG.md")) as chlog:
readme = rdme.read()
changes = chlog.read()
long_description = read... | Bump version number for next release | Bump version number for next release
| Python | mit | zekna/py-types | from setuptools import (
setup,
find_packages,
)
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, "README.md")) as rdme:
with open(path.join(here, "CHANGELOG.md")) as chlog:
readme = rdme.read()
changes = chlog.read()
long_description = read... | from setuptools import (
setup,
find_packages,
)
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, "README.md")) as rdme:
with open(path.join(here, "CHANGELOG.md")) as chlog:
readme = rdme.read()
changes = chlog.read()
long_description = read... | <commit_before>from setuptools import (
setup,
find_packages,
)
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, "README.md")) as rdme:
with open(path.join(here, "CHANGELOG.md")) as chlog:
readme = rdme.read()
changes = chlog.read()
long_des... | from setuptools import (
setup,
find_packages,
)
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, "README.md")) as rdme:
with open(path.join(here, "CHANGELOG.md")) as chlog:
readme = rdme.read()
changes = chlog.read()
long_description = read... | from setuptools import (
setup,
find_packages,
)
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, "README.md")) as rdme:
with open(path.join(here, "CHANGELOG.md")) as chlog:
readme = rdme.read()
changes = chlog.read()
long_description = read... | <commit_before>from setuptools import (
setup,
find_packages,
)
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, "README.md")) as rdme:
with open(path.join(here, "CHANGELOG.md")) as chlog:
readme = rdme.read()
changes = chlog.read()
long_des... |
7a42318ca7d8d8f59e30b23b8e507410e9e4868b | setup.py | setup.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from setuptools import setup, find_packages
from os.path import dirname, join
def main():
base_dir = dirname(__file__)
setup(
name='rotunicode',
version='0.1.0',
description='RotUnicode',
long_description=open(joi... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from setuptools import setup, find_packages
from os.path import dirname, join
def main():
base_dir = dirname(__file__)
setup(
name='rotunicode',
version='0.1.0',
description='RotUnicode',
long_description=open(joi... | Fix long_description to read README.rst. | Fix long_description to read README.rst.
| Python | apache-2.0 | box/rotunicode,box/rotunicode | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from setuptools import setup, find_packages
from os.path import dirname, join
def main():
base_dir = dirname(__file__)
setup(
name='rotunicode',
version='0.1.0',
description='RotUnicode',
long_description=open(joi... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from setuptools import setup, find_packages
from os.path import dirname, join
def main():
base_dir = dirname(__file__)
setup(
name='rotunicode',
version='0.1.0',
description='RotUnicode',
long_description=open(joi... | <commit_before># -*- coding: utf-8 -*-
from __future__ import unicode_literals
from setuptools import setup, find_packages
from os.path import dirname, join
def main():
base_dir = dirname(__file__)
setup(
name='rotunicode',
version='0.1.0',
description='RotUnicode',
long_descr... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from setuptools import setup, find_packages
from os.path import dirname, join
def main():
base_dir = dirname(__file__)
setup(
name='rotunicode',
version='0.1.0',
description='RotUnicode',
long_description=open(joi... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from setuptools import setup, find_packages
from os.path import dirname, join
def main():
base_dir = dirname(__file__)
setup(
name='rotunicode',
version='0.1.0',
description='RotUnicode',
long_description=open(joi... | <commit_before># -*- coding: utf-8 -*-
from __future__ import unicode_literals
from setuptools import setup, find_packages
from os.path import dirname, join
def main():
base_dir = dirname(__file__)
setup(
name='rotunicode',
version='0.1.0',
description='RotUnicode',
long_descr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.