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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
53d5f47c828bec78e7241cb9e3d4f614dd18e6f9 | responder.py | responder.py | import random
import yaml
from flask import jsonify, Response, render_template
class Which(object):
def __init__(self, mime_type, args):
self.mime_type = mime_type
self.args = args
@property
def _excuse(self):
stream = open("excuses.yaml", 'r')
excuses = yaml.load(stream)... | import random
import yaml
from flask import jsonify, Response, render_template
class Which(object):
def __init__(self, mime_type, args):
self.mime_type = mime_type
self.args = args
@property
def _excuse(self):
stream = open("excuses.yaml", 'r')
excuses = yaml.load(stream)... | Fix bug with text/plain response | Fix bug with text/plain response
| Python | mit | aaronbassett/Bad-Tools,aaronbassett/Bad-Tools,aaronbassett/Bad-Tools,aaronbassett/Bad-Tools,aaronbassett/Bad-Tools | import random
import yaml
from flask import jsonify, Response, render_template
class Which(object):
def __init__(self, mime_type, args):
self.mime_type = mime_type
self.args = args
@property
def _excuse(self):
stream = open("excuses.yaml", 'r')
excuses = yaml.load(stream)... | import random
import yaml
from flask import jsonify, Response, render_template
class Which(object):
def __init__(self, mime_type, args):
self.mime_type = mime_type
self.args = args
@property
def _excuse(self):
stream = open("excuses.yaml", 'r')
excuses = yaml.load(stream)... | <commit_before>import random
import yaml
from flask import jsonify, Response, render_template
class Which(object):
def __init__(self, mime_type, args):
self.mime_type = mime_type
self.args = args
@property
def _excuse(self):
stream = open("excuses.yaml", 'r')
excuses = ya... | import random
import yaml
from flask import jsonify, Response, render_template
class Which(object):
def __init__(self, mime_type, args):
self.mime_type = mime_type
self.args = args
@property
def _excuse(self):
stream = open("excuses.yaml", 'r')
excuses = yaml.load(stream)... | import random
import yaml
from flask import jsonify, Response, render_template
class Which(object):
def __init__(self, mime_type, args):
self.mime_type = mime_type
self.args = args
@property
def _excuse(self):
stream = open("excuses.yaml", 'r')
excuses = yaml.load(stream)... | <commit_before>import random
import yaml
from flask import jsonify, Response, render_template
class Which(object):
def __init__(self, mime_type, args):
self.mime_type = mime_type
self.args = args
@property
def _excuse(self):
stream = open("excuses.yaml", 'r')
excuses = ya... |
1ba617690bbf50648a096875f419774064d284a6 | rstfinder/__init__.py | rstfinder/__init__.py | # Ensure there won't be logging complaints about no handlers being set
import logging
logging.getLogger(__name__).addHandler(logging.NullHandler()) | # Ensure there won't be logging complaints about no handlers being set
import logging
logging.getLogger(__name__).addHandler(logging.NullHandler())
try:
import zpar
except ImportError:
raise ImportError("The 'python-zpar' package is missing. Run 'pip install python-zpar' to install it.") from None
| Add check for python zpar when importing rstfinder. | Add check for python zpar when importing rstfinder.
| Python | mit | EducationalTestingService/discourse-parsing,EducationalTestingService/discourse-parsing | # Ensure there won't be logging complaints about no handlers being set
import logging
logging.getLogger(__name__).addHandler(logging.NullHandler())Add check for python zpar when importing rstfinder. | # Ensure there won't be logging complaints about no handlers being set
import logging
logging.getLogger(__name__).addHandler(logging.NullHandler())
try:
import zpar
except ImportError:
raise ImportError("The 'python-zpar' package is missing. Run 'pip install python-zpar' to install it.") from None
| <commit_before># Ensure there won't be logging complaints about no handlers being set
import logging
logging.getLogger(__name__).addHandler(logging.NullHandler())<commit_msg>Add check for python zpar when importing rstfinder.<commit_after> | # Ensure there won't be logging complaints about no handlers being set
import logging
logging.getLogger(__name__).addHandler(logging.NullHandler())
try:
import zpar
except ImportError:
raise ImportError("The 'python-zpar' package is missing. Run 'pip install python-zpar' to install it.") from None
| # Ensure there won't be logging complaints about no handlers being set
import logging
logging.getLogger(__name__).addHandler(logging.NullHandler())Add check for python zpar when importing rstfinder.# Ensure there won't be logging complaints about no handlers being set
import logging
logging.getLogger(__name__).addHand... | <commit_before># Ensure there won't be logging complaints about no handlers being set
import logging
logging.getLogger(__name__).addHandler(logging.NullHandler())<commit_msg>Add check for python zpar when importing rstfinder.<commit_after># Ensure there won't be logging complaints about no handlers being set
import log... |
b0f4158beebdb1edac9305e63a9fb77946d3a59f | run_tests.py | run_tests.py | import os
import sys
import contextlib
import subprocess
@contextlib.contextmanager
def binding(binding):
"""Prepare an environment for a specific binding"""
sys.stderr.write("""\
#
# Running tests with %s..
#
""" % binding)
os.environ["QT_PREFERRED_BINDING"] = binding
try:
yield
except... | import os
import sys
import contextlib
import subprocess
@contextlib.contextmanager
def binding(binding):
"""Prepare an environment for a specific binding"""
sys.stderr.write("""\
#
# Running tests with %s..
#
""" % binding)
os.environ["QT_PREFERRED_BINDING"] = binding
try:
yield
except... | Throw exception when primary tests fail | Throw exception when primary tests fail
| Python | mit | mottosso/Qt.py,fredrikaverpil/Qt.py,mottosso/Qt.py,fredrikaverpil/Qt.py | import os
import sys
import contextlib
import subprocess
@contextlib.contextmanager
def binding(binding):
"""Prepare an environment for a specific binding"""
sys.stderr.write("""\
#
# Running tests with %s..
#
""" % binding)
os.environ["QT_PREFERRED_BINDING"] = binding
try:
yield
except... | import os
import sys
import contextlib
import subprocess
@contextlib.contextmanager
def binding(binding):
"""Prepare an environment for a specific binding"""
sys.stderr.write("""\
#
# Running tests with %s..
#
""" % binding)
os.environ["QT_PREFERRED_BINDING"] = binding
try:
yield
except... | <commit_before>import os
import sys
import contextlib
import subprocess
@contextlib.contextmanager
def binding(binding):
"""Prepare an environment for a specific binding"""
sys.stderr.write("""\
#
# Running tests with %s..
#
""" % binding)
os.environ["QT_PREFERRED_BINDING"] = binding
try:
y... | import os
import sys
import contextlib
import subprocess
@contextlib.contextmanager
def binding(binding):
"""Prepare an environment for a specific binding"""
sys.stderr.write("""\
#
# Running tests with %s..
#
""" % binding)
os.environ["QT_PREFERRED_BINDING"] = binding
try:
yield
except... | import os
import sys
import contextlib
import subprocess
@contextlib.contextmanager
def binding(binding):
"""Prepare an environment for a specific binding"""
sys.stderr.write("""\
#
# Running tests with %s..
#
""" % binding)
os.environ["QT_PREFERRED_BINDING"] = binding
try:
yield
except... | <commit_before>import os
import sys
import contextlib
import subprocess
@contextlib.contextmanager
def binding(binding):
"""Prepare an environment for a specific binding"""
sys.stderr.write("""\
#
# Running tests with %s..
#
""" % binding)
os.environ["QT_PREFERRED_BINDING"] = binding
try:
y... |
0a2f63367cdb8bffdf762da78fb4888bef9c7d22 | run_tests.py | run_tests.py | #!/usr/bin/env python
import sys
sys.path.append('lib/sdks/google_appengine_1.7.1/google_appengine')
import dev_appserver
import unittest
dev_appserver.fix_sys_path()
suites = unittest.loader.TestLoader().discover("src/givabit", pattern="*_test.py")
if len(sys.argv) > 1:
def GetTestCases(caseorsuite, acc=None):... | #!/usr/bin/env python
import sys
sys.path.append('lib/sdks/google_appengine_1.7.1/google_appengine')
import dev_appserver
import unittest
dev_appserver.fix_sys_path()
suites = unittest.loader.TestLoader().discover("src/givabit", pattern="*_test.py")
if len(sys.argv) > 1:
def GetTestCases(caseorsuite, acc=None):... | Support running test just by test name | Support running test just by test name
| Python | apache-2.0 | illicitonion/givabit,illicitonion/givabit,illicitonion/givabit,illicitonion/givabit,illicitonion/givabit,illicitonion/givabit,illicitonion/givabit,illicitonion/givabit | #!/usr/bin/env python
import sys
sys.path.append('lib/sdks/google_appengine_1.7.1/google_appengine')
import dev_appserver
import unittest
dev_appserver.fix_sys_path()
suites = unittest.loader.TestLoader().discover("src/givabit", pattern="*_test.py")
if len(sys.argv) > 1:
def GetTestCases(caseorsuite, acc=None):... | #!/usr/bin/env python
import sys
sys.path.append('lib/sdks/google_appengine_1.7.1/google_appengine')
import dev_appserver
import unittest
dev_appserver.fix_sys_path()
suites = unittest.loader.TestLoader().discover("src/givabit", pattern="*_test.py")
if len(sys.argv) > 1:
def GetTestCases(caseorsuite, acc=None):... | <commit_before>#!/usr/bin/env python
import sys
sys.path.append('lib/sdks/google_appengine_1.7.1/google_appengine')
import dev_appserver
import unittest
dev_appserver.fix_sys_path()
suites = unittest.loader.TestLoader().discover("src/givabit", pattern="*_test.py")
if len(sys.argv) > 1:
def GetTestCases(caseorsu... | #!/usr/bin/env python
import sys
sys.path.append('lib/sdks/google_appengine_1.7.1/google_appengine')
import dev_appserver
import unittest
dev_appserver.fix_sys_path()
suites = unittest.loader.TestLoader().discover("src/givabit", pattern="*_test.py")
if len(sys.argv) > 1:
def GetTestCases(caseorsuite, acc=None):... | #!/usr/bin/env python
import sys
sys.path.append('lib/sdks/google_appengine_1.7.1/google_appengine')
import dev_appserver
import unittest
dev_appserver.fix_sys_path()
suites = unittest.loader.TestLoader().discover("src/givabit", pattern="*_test.py")
if len(sys.argv) > 1:
def GetTestCases(caseorsuite, acc=None):... | <commit_before>#!/usr/bin/env python
import sys
sys.path.append('lib/sdks/google_appengine_1.7.1/google_appengine')
import dev_appserver
import unittest
dev_appserver.fix_sys_path()
suites = unittest.loader.TestLoader().discover("src/givabit", pattern="*_test.py")
if len(sys.argv) > 1:
def GetTestCases(caseorsu... |
1baa01d63a75272a353d21475de80ec60e562d72 | runserver.py | runserver.py | #!/usr/bin/env python
"""
# # #### ##### # # ##### # # # #
# # # # # ## ## # # # ## # #
### #### #### # # # # # # # # #####
# # # # # # # # ## # # #
# # # ##### # # # # # # # #
... | #!/usr/bin/env python
"""
# # #### ##### # # ##### # # # #
# # # # # ## ## # # # ## # #
### #### #### # # # # # # # # #####
# # # # # # # # ## # # #
# # # ##### # # # # # # # #
... | Add header to dev launch script | Add header to dev launch script
| Python | bsd-2-clause | glasnost/kremlin,glasnost/kremlin,glasnost/kremlin | #!/usr/bin/env python
"""
# # #### ##### # # ##### # # # #
# # # # # ## ## # # # ## # #
### #### #### # # # # # # # # #####
# # # # # # # # ## # # #
# # # ##### # # # # # # # #
... | #!/usr/bin/env python
"""
# # #### ##### # # ##### # # # #
# # # # # ## ## # # # ## # #
### #### #### # # # # # # # # #####
# # # # # # # # ## # # #
# # # ##### # # # # # # # #
... | <commit_before>#!/usr/bin/env python
"""
# # #### ##### # # ##### # # # #
# # # # # ## ## # # # ## # #
### #### #### # # # # # # # # #####
# # # # # # # # ## # # #
# # # ##### # # # # # # ... | #!/usr/bin/env python
"""
# # #### ##### # # ##### # # # #
# # # # # ## ## # # # ## # #
### #### #### # # # # # # # # #####
# # # # # # # # ## # # #
# # # ##### # # # # # # # #
... | #!/usr/bin/env python
"""
# # #### ##### # # ##### # # # #
# # # # # ## ## # # # ## # #
### #### #### # # # # # # # # #####
# # # # # # # # ## # # #
# # # ##### # # # # # # # #
... | <commit_before>#!/usr/bin/env python
"""
# # #### ##### # # ##### # # # #
# # # # # ## ## # # # ## # #
### #### #### # # # # # # # # #####
# # # # # # # # ## # # #
# # # ##### # # # # # # ... |
4136358896654b24df42c6dc963c0d071c31eec3 | snakewatch/config.py | snakewatch/config.py | import json
import importlib
class Config(object):
available_actions = {}
def __init__(self, cfg, *args):
if isinstance(cfg, str):
fp = open(cfg, 'r')
self.cfg = json.load(fp)
fp.close()
elif isinstance(cfg, list):
self.cfg = cfg
self... | import json
import os
import importlib
class Config(object):
available_actions = {}
def __init__(self, cfg, *args):
if isinstance(cfg, str):
fp = open(cfg, 'r')
self.cfg = json.load(fp)
fp.close()
elif isinstance(cfg, list):
self.cfg = cfg
... | Use ~/.snakewatch/default.json if exists, fallback on built-in. | Use ~/.snakewatch/default.json if exists, fallback on built-in.
| Python | bsd-3-clause | asoc/snakewatch | import json
import importlib
class Config(object):
available_actions = {}
def __init__(self, cfg, *args):
if isinstance(cfg, str):
fp = open(cfg, 'r')
self.cfg = json.load(fp)
fp.close()
elif isinstance(cfg, list):
self.cfg = cfg
self... | import json
import os
import importlib
class Config(object):
available_actions = {}
def __init__(self, cfg, *args):
if isinstance(cfg, str):
fp = open(cfg, 'r')
self.cfg = json.load(fp)
fp.close()
elif isinstance(cfg, list):
self.cfg = cfg
... | <commit_before>import json
import importlib
class Config(object):
available_actions = {}
def __init__(self, cfg, *args):
if isinstance(cfg, str):
fp = open(cfg, 'r')
self.cfg = json.load(fp)
fp.close()
elif isinstance(cfg, list):
self.cfg = c... | import json
import os
import importlib
class Config(object):
available_actions = {}
def __init__(self, cfg, *args):
if isinstance(cfg, str):
fp = open(cfg, 'r')
self.cfg = json.load(fp)
fp.close()
elif isinstance(cfg, list):
self.cfg = cfg
... | import json
import importlib
class Config(object):
available_actions = {}
def __init__(self, cfg, *args):
if isinstance(cfg, str):
fp = open(cfg, 'r')
self.cfg = json.load(fp)
fp.close()
elif isinstance(cfg, list):
self.cfg = cfg
self... | <commit_before>import json
import importlib
class Config(object):
available_actions = {}
def __init__(self, cfg, *args):
if isinstance(cfg, str):
fp = open(cfg, 'r')
self.cfg = json.load(fp)
fp.close()
elif isinstance(cfg, list):
self.cfg = c... |
5f1632cf1f307688e4884988e03a1678557bb79c | erpnext/hr/doctype/training_feedback/training_feedback.py | erpnext/hr/doctype/training_feedback/training_feedback.py | # -*- coding: utf-8 -*-
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
from frappe import _
class TrainingFeedback(Document):
def validate(self):
... | # -*- coding: utf-8 -*-
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
from frappe import _
class TrainingFeedback(Document):
def validate(self):
... | Use event_status instead of status | fix(hr): Use event_status instead of status
Training Feedback DocType has event_status field (not status)
This was broken since PR #10379, PR #17197 made this failure explicit.
| Python | agpl-3.0 | gsnbng/erpnext,gsnbng/erpnext,gsnbng/erpnext,gsnbng/erpnext | # -*- coding: utf-8 -*-
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
from frappe import _
class TrainingFeedback(Document):
def validate(self):
... | # -*- coding: utf-8 -*-
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
from frappe import _
class TrainingFeedback(Document):
def validate(self):
... | <commit_before># -*- coding: utf-8 -*-
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
from frappe import _
class TrainingFeedback(Document):
def val... | # -*- coding: utf-8 -*-
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
from frappe import _
class TrainingFeedback(Document):
def validate(self):
... | # -*- coding: utf-8 -*-
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
from frappe import _
class TrainingFeedback(Document):
def validate(self):
... | <commit_before># -*- coding: utf-8 -*-
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
from frappe import _
class TrainingFeedback(Document):
def val... |
2e95d941d6b5a942fc88558972758d603e0afb37 | setup.py | setup.py | """
Flask-Script
--------------
Flask support for writing external scripts.
Links
`````
* `documentation <http://packages.python.org/Flask-Script>`_
* `development version
<http://bitbucket.org/danjac/flask-Script/get/tip.gz#egg=Flask-Script-dev>`_
"""
from setuptools import setup
setup(
name='Flask-Script... | """
Flask-Script
--------------
Flask support for writing external scripts.
Links
`````
* `documentation <http://packages.python.org/Flask-Script>`_
"""
from setuptools import setup
setup(
name='Flask-Script',
version='0.3.2',
url='http://github.com/rduplain/flask-script',
license='BSD',
auth... | Update URL, need to set dev version on GitHub. | Update URL, need to set dev version on GitHub.
| Python | bsd-3-clause | dext0r/flask-script,denismakogon/flask-script,z4y4ts/flask-script,xingkaixin/flask-script,blakev/flask-script,wjt/flask-script,z4y4ts/flask-script | """
Flask-Script
--------------
Flask support for writing external scripts.
Links
`````
* `documentation <http://packages.python.org/Flask-Script>`_
* `development version
<http://bitbucket.org/danjac/flask-Script/get/tip.gz#egg=Flask-Script-dev>`_
"""
from setuptools import setup
setup(
name='Flask-Script... | """
Flask-Script
--------------
Flask support for writing external scripts.
Links
`````
* `documentation <http://packages.python.org/Flask-Script>`_
"""
from setuptools import setup
setup(
name='Flask-Script',
version='0.3.2',
url='http://github.com/rduplain/flask-script',
license='BSD',
auth... | <commit_before>"""
Flask-Script
--------------
Flask support for writing external scripts.
Links
`````
* `documentation <http://packages.python.org/Flask-Script>`_
* `development version
<http://bitbucket.org/danjac/flask-Script/get/tip.gz#egg=Flask-Script-dev>`_
"""
from setuptools import setup
setup(
nam... | """
Flask-Script
--------------
Flask support for writing external scripts.
Links
`````
* `documentation <http://packages.python.org/Flask-Script>`_
"""
from setuptools import setup
setup(
name='Flask-Script',
version='0.3.2',
url='http://github.com/rduplain/flask-script',
license='BSD',
auth... | """
Flask-Script
--------------
Flask support for writing external scripts.
Links
`````
* `documentation <http://packages.python.org/Flask-Script>`_
* `development version
<http://bitbucket.org/danjac/flask-Script/get/tip.gz#egg=Flask-Script-dev>`_
"""
from setuptools import setup
setup(
name='Flask-Script... | <commit_before>"""
Flask-Script
--------------
Flask support for writing external scripts.
Links
`````
* `documentation <http://packages.python.org/Flask-Script>`_
* `development version
<http://bitbucket.org/danjac/flask-Script/get/tip.gz#egg=Flask-Script-dev>`_
"""
from setuptools import setup
setup(
nam... |
83938c9bf7aafc1f7a2a6b9594279600012ee7ef | setup.py | setup.py | # coding: utf-8
"""pypel setup file.
THIS SOFTWARE IS UNDER BSD LICENSE.
Copyright (c) 2012-2015 Daniele Tricoli <eriol@mornie.org>
Read LICENSE for more informations.
"""
import distutils.core
import os.path
from pypel import __version__
def read(filename):
"""Small tool function to read file content."""
... | # coding: utf-8
"""pypel setup file.
THIS SOFTWARE IS UNDER BSD LICENSE.
Copyright (c) 2012-2015 Daniele Tricoli <eriol@mornie.org>
Read LICENSE for more informations.
"""
import distutils.core
import os.path
from pypel import __version__
def read(filename):
"""Small tool function to read file content."""
... | Update Python supported versions classifiers | Update Python supported versions classifiers
| Python | bsd-3-clause | eriol/pypel | # coding: utf-8
"""pypel setup file.
THIS SOFTWARE IS UNDER BSD LICENSE.
Copyright (c) 2012-2015 Daniele Tricoli <eriol@mornie.org>
Read LICENSE for more informations.
"""
import distutils.core
import os.path
from pypel import __version__
def read(filename):
"""Small tool function to read file content."""
... | # coding: utf-8
"""pypel setup file.
THIS SOFTWARE IS UNDER BSD LICENSE.
Copyright (c) 2012-2015 Daniele Tricoli <eriol@mornie.org>
Read LICENSE for more informations.
"""
import distutils.core
import os.path
from pypel import __version__
def read(filename):
"""Small tool function to read file content."""
... | <commit_before># coding: utf-8
"""pypel setup file.
THIS SOFTWARE IS UNDER BSD LICENSE.
Copyright (c) 2012-2015 Daniele Tricoli <eriol@mornie.org>
Read LICENSE for more informations.
"""
import distutils.core
import os.path
from pypel import __version__
def read(filename):
"""Small tool function to read file... | # coding: utf-8
"""pypel setup file.
THIS SOFTWARE IS UNDER BSD LICENSE.
Copyright (c) 2012-2015 Daniele Tricoli <eriol@mornie.org>
Read LICENSE for more informations.
"""
import distutils.core
import os.path
from pypel import __version__
def read(filename):
"""Small tool function to read file content."""
... | # coding: utf-8
"""pypel setup file.
THIS SOFTWARE IS UNDER BSD LICENSE.
Copyright (c) 2012-2015 Daniele Tricoli <eriol@mornie.org>
Read LICENSE for more informations.
"""
import distutils.core
import os.path
from pypel import __version__
def read(filename):
"""Small tool function to read file content."""
... | <commit_before># coding: utf-8
"""pypel setup file.
THIS SOFTWARE IS UNDER BSD LICENSE.
Copyright (c) 2012-2015 Daniele Tricoli <eriol@mornie.org>
Read LICENSE for more informations.
"""
import distutils.core
import os.path
from pypel import __version__
def read(filename):
"""Small tool function to read file... |
154e1b5b7e8c5fe90197bea13cf653c976ae6a2f | setup.py | setup.py | from setuptools import find_packages, setup
setup(
name='satnogsclient',
version='0.2.5',
url='https://github.com/satnogs/satnogs-client/',
author='SatNOGS team',
author_email='client-dev@satnogs.org',
description='SatNOGS Client',
zip_safe=False,
install_requires=[
'APSchedule... | from setuptools import find_packages, setup
setup(
name='satnogsclient',
version='0.2.5',
url='https://github.com/satnogs/satnogs-client/',
author='SatNOGS team',
author_email='client-dev@satnogs.org',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
... | Add some classifiers and license metadata | Add some classifiers and license metadata
| Python | agpl-3.0 | adamkalis/satnogs-client,adamkalis/satnogs-client | from setuptools import find_packages, setup
setup(
name='satnogsclient',
version='0.2.5',
url='https://github.com/satnogs/satnogs-client/',
author='SatNOGS team',
author_email='client-dev@satnogs.org',
description='SatNOGS Client',
zip_safe=False,
install_requires=[
'APSchedule... | from setuptools import find_packages, setup
setup(
name='satnogsclient',
version='0.2.5',
url='https://github.com/satnogs/satnogs-client/',
author='SatNOGS team',
author_email='client-dev@satnogs.org',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
... | <commit_before>from setuptools import find_packages, setup
setup(
name='satnogsclient',
version='0.2.5',
url='https://github.com/satnogs/satnogs-client/',
author='SatNOGS team',
author_email='client-dev@satnogs.org',
description='SatNOGS Client',
zip_safe=False,
install_requires=[
... | from setuptools import find_packages, setup
setup(
name='satnogsclient',
version='0.2.5',
url='https://github.com/satnogs/satnogs-client/',
author='SatNOGS team',
author_email='client-dev@satnogs.org',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
... | from setuptools import find_packages, setup
setup(
name='satnogsclient',
version='0.2.5',
url='https://github.com/satnogs/satnogs-client/',
author='SatNOGS team',
author_email='client-dev@satnogs.org',
description='SatNOGS Client',
zip_safe=False,
install_requires=[
'APSchedule... | <commit_before>from setuptools import find_packages, setup
setup(
name='satnogsclient',
version='0.2.5',
url='https://github.com/satnogs/satnogs-client/',
author='SatNOGS team',
author_email='client-dev@satnogs.org',
description='SatNOGS Client',
zip_safe=False,
install_requires=[
... |
98170d95eba8093ab07ec481209f4e1b9cb99403 | setup.py | setup.py | # Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | # Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | Rename console script back to glyphs2ufo | Rename console script back to glyphs2ufo
As long as the console script is strictly a Glyphs -> UFO converter,
this is a more appropriate name.
| Python | apache-2.0 | googlei18n/glyphsLib,googlefonts/glyphsLib | # Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | # Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | <commit_before># Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | # Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | # Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | <commit_before># Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... |
c69b45660fcad1d9966b9d2c5ea135436fdac93b | setup.py | setup.py | from setuptools import setup
import sys
import piexif
sys.path.append('./piexif')
sys.path.append('./tests')
with open("README.rst", "r") as f:
description = f.read()
setup(
name = "piexif",
version = piexif.VERSION,
author = "hMatoba",
author_email = "hiroaki.mtb@outlook.com",
description ... | from setuptools import setup
import sys
import piexif
sys.path.append('./piexif')
sys.path.append('./tests')
with open("README.rst", "r") as f:
description = f.read()
setup(
name = "piexif",
version = piexif.VERSION,
author = "hMatoba",
author_email = "hiroaki.mtb@outlook.com",
description ... | Add python_requires to help pip | Add python_requires to help pip
| Python | mit | hMatoba/Piexif | from setuptools import setup
import sys
import piexif
sys.path.append('./piexif')
sys.path.append('./tests')
with open("README.rst", "r") as f:
description = f.read()
setup(
name = "piexif",
version = piexif.VERSION,
author = "hMatoba",
author_email = "hiroaki.mtb@outlook.com",
description ... | from setuptools import setup
import sys
import piexif
sys.path.append('./piexif')
sys.path.append('./tests')
with open("README.rst", "r") as f:
description = f.read()
setup(
name = "piexif",
version = piexif.VERSION,
author = "hMatoba",
author_email = "hiroaki.mtb@outlook.com",
description ... | <commit_before>from setuptools import setup
import sys
import piexif
sys.path.append('./piexif')
sys.path.append('./tests')
with open("README.rst", "r") as f:
description = f.read()
setup(
name = "piexif",
version = piexif.VERSION,
author = "hMatoba",
author_email = "hiroaki.mtb@outlook.com",
... | from setuptools import setup
import sys
import piexif
sys.path.append('./piexif')
sys.path.append('./tests')
with open("README.rst", "r") as f:
description = f.read()
setup(
name = "piexif",
version = piexif.VERSION,
author = "hMatoba",
author_email = "hiroaki.mtb@outlook.com",
description ... | from setuptools import setup
import sys
import piexif
sys.path.append('./piexif')
sys.path.append('./tests')
with open("README.rst", "r") as f:
description = f.read()
setup(
name = "piexif",
version = piexif.VERSION,
author = "hMatoba",
author_email = "hiroaki.mtb@outlook.com",
description ... | <commit_before>from setuptools import setup
import sys
import piexif
sys.path.append('./piexif')
sys.path.append('./tests')
with open("README.rst", "r") as f:
description = f.read()
setup(
name = "piexif",
version = piexif.VERSION,
author = "hMatoba",
author_email = "hiroaki.mtb@outlook.com",
... |
1c30f3a7985265588acf23fb4ed3a3905c990ba4 | setup.py | setup.py | import os
from setuptools import setup, find_packages
from wagtailmenus import __version__
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setu... | import os
from setuptools import setup, find_packages
from wagtailmenus import __version__
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setu... | Revert "Wagtailmenus works with wagtail 1.8 too" | Revert "Wagtailmenus works with wagtail 1.8 too"
This reverts commit 1e4b7eb5301c0db3e29abf539c5f4b54d11720b8.
| Python | mit | rkhleics/wagtailmenus,ababic/wagtailmenus,ababic/wagtailmenus,ababic/wagtailmenus,rkhleics/wagtailmenus,rkhleics/wagtailmenus | import os
from setuptools import setup, find_packages
from wagtailmenus import __version__
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setu... | import os
from setuptools import setup, find_packages
from wagtailmenus import __version__
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setu... | <commit_before>import os
from setuptools import setup, find_packages
from wagtailmenus import __version__
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.... | import os
from setuptools import setup, find_packages
from wagtailmenus import __version__
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setu... | import os
from setuptools import setup, find_packages
from wagtailmenus import __version__
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setu... | <commit_before>import os
from setuptools import setup, find_packages
from wagtailmenus import __version__
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.... |
03e39599e4f4abac871b40563e04aa3a0a781102 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
setup(
name='djoser',
version='0.0.1',
packages=['djoser'],
license='MIT',
author='SUNSCRAPERS',
description='REST version of Django authentication system.',
author_email='info@sunscrapers.com',
long_description=open('README.md').read(... | #!/usr/bin/env python
from setuptools import setup
try:
import pypandoc
description = pypandoc.convert('README.md', 'rst')
except (IOError, ImportError):
description = open('README.md').read()
setup(
name='djoser',
version='0.0.1',
packages=['djoser'],
license='MIT',
author='SUNSCRAP... | Use pandoc to convert README from MD to RST. | Use pandoc to convert README from MD to RST.
| Python | mit | johnwalker/djoser,fladi/djoser,PingaxAnalytics/koob_auth,avances123/djoser,unacast/djoser,dokenzy/djoser,barseghyanartur/djoser,vandoornik/djoser,akalipetis/djoser,yiyocx/djoser,akalipetis/djoser,sunscrapers/djoser,carlosfunk/djoser,liyocee/djoser,sunscrapers/djoser,apokinsocha/djoser,mjuopperi/djoser,sunscrapers/djose... | #!/usr/bin/env python
from setuptools import setup
setup(
name='djoser',
version='0.0.1',
packages=['djoser'],
license='MIT',
author='SUNSCRAPERS',
description='REST version of Django authentication system.',
author_email='info@sunscrapers.com',
long_description=open('README.md').read(... | #!/usr/bin/env python
from setuptools import setup
try:
import pypandoc
description = pypandoc.convert('README.md', 'rst')
except (IOError, ImportError):
description = open('README.md').read()
setup(
name='djoser',
version='0.0.1',
packages=['djoser'],
license='MIT',
author='SUNSCRAP... | <commit_before>#!/usr/bin/env python
from setuptools import setup
setup(
name='djoser',
version='0.0.1',
packages=['djoser'],
license='MIT',
author='SUNSCRAPERS',
description='REST version of Django authentication system.',
author_email='info@sunscrapers.com',
long_description=open('RE... | #!/usr/bin/env python
from setuptools import setup
try:
import pypandoc
description = pypandoc.convert('README.md', 'rst')
except (IOError, ImportError):
description = open('README.md').read()
setup(
name='djoser',
version='0.0.1',
packages=['djoser'],
license='MIT',
author='SUNSCRAP... | #!/usr/bin/env python
from setuptools import setup
setup(
name='djoser',
version='0.0.1',
packages=['djoser'],
license='MIT',
author='SUNSCRAPERS',
description='REST version of Django authentication system.',
author_email='info@sunscrapers.com',
long_description=open('README.md').read(... | <commit_before>#!/usr/bin/env python
from setuptools import setup
setup(
name='djoser',
version='0.0.1',
packages=['djoser'],
license='MIT',
author='SUNSCRAPERS',
description='REST version of Django authentication system.',
author_email='info@sunscrapers.com',
long_description=open('RE... |
3774f234f0d3eaf08bf3b6ed713a949346e69fea | setup.py | setup.py | #!/usr/bin/env python
'''Setuptools params'''
from setuptools import setup, find_packages
from os.path import join
scripts = [join('bin', filename) for filename in
['mn', 'mnclean']]
modname = distname = 'mininet'
setup(
name=distname,
version='0.0.0',
description='Process-based OpenFlow emu... | #!/usr/bin/env python
'''Setuptools params'''
from setuptools import setup, find_packages
from os.path import join
scripts = [join('bin', filename) for filename in
['mn', 'mnclean']]
modname = distname = 'mininet'
setup(
name=distname,
version='0.0.0',
description='Process-based OpenFlow emu... | Update license and add networkx dependency | Update license and add networkx dependency
| Python | bsd-3-clause | mininet/mininet,mininet/mininet,mininet/mininet | #!/usr/bin/env python
'''Setuptools params'''
from setuptools import setup, find_packages
from os.path import join
scripts = [join('bin', filename) for filename in
['mn', 'mnclean']]
modname = distname = 'mininet'
setup(
name=distname,
version='0.0.0',
description='Process-based OpenFlow emu... | #!/usr/bin/env python
'''Setuptools params'''
from setuptools import setup, find_packages
from os.path import join
scripts = [join('bin', filename) for filename in
['mn', 'mnclean']]
modname = distname = 'mininet'
setup(
name=distname,
version='0.0.0',
description='Process-based OpenFlow emu... | <commit_before>#!/usr/bin/env python
'''Setuptools params'''
from setuptools import setup, find_packages
from os.path import join
scripts = [join('bin', filename) for filename in
['mn', 'mnclean']]
modname = distname = 'mininet'
setup(
name=distname,
version='0.0.0',
description='Process-bas... | #!/usr/bin/env python
'''Setuptools params'''
from setuptools import setup, find_packages
from os.path import join
scripts = [join('bin', filename) for filename in
['mn', 'mnclean']]
modname = distname = 'mininet'
setup(
name=distname,
version='0.0.0',
description='Process-based OpenFlow emu... | #!/usr/bin/env python
'''Setuptools params'''
from setuptools import setup, find_packages
from os.path import join
scripts = [join('bin', filename) for filename in
['mn', 'mnclean']]
modname = distname = 'mininet'
setup(
name=distname,
version='0.0.0',
description='Process-based OpenFlow emu... | <commit_before>#!/usr/bin/env python
'''Setuptools params'''
from setuptools import setup, find_packages
from os.path import join
scripts = [join('bin', filename) for filename in
['mn', 'mnclean']]
modname = distname = 'mininet'
setup(
name=distname,
version='0.0.0',
description='Process-bas... |
a34116f72a92af10c93e0490137c82849860ceb9 | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='django-cuser',
version=".".join(map(str, __import__("cuser").__version__)),
description='Middleware to make user information always available.',
long_description=open('README.rst').read(),
author='Alireza Savand',
author_email='alireza.sa... | from setuptools import setup, find_packages
setup(
name='django-cuser',
version=".".join(map(str, __import__("cuser").__version__)),
description='Middleware to make user information always available.',
long_description=open('README.rst').read(),
author='Alireza Savand',
author_email='alireza.sa... | Add python 3.6 to the classifiers | Add python 3.6 to the classifiers
| Python | bsd-3-clause | Alir3z4/django-cuser | from setuptools import setup, find_packages
setup(
name='django-cuser',
version=".".join(map(str, __import__("cuser").__version__)),
description='Middleware to make user information always available.',
long_description=open('README.rst').read(),
author='Alireza Savand',
author_email='alireza.sa... | from setuptools import setup, find_packages
setup(
name='django-cuser',
version=".".join(map(str, __import__("cuser").__version__)),
description='Middleware to make user information always available.',
long_description=open('README.rst').read(),
author='Alireza Savand',
author_email='alireza.sa... | <commit_before>from setuptools import setup, find_packages
setup(
name='django-cuser',
version=".".join(map(str, __import__("cuser").__version__)),
description='Middleware to make user information always available.',
long_description=open('README.rst').read(),
author='Alireza Savand',
author_em... | from setuptools import setup, find_packages
setup(
name='django-cuser',
version=".".join(map(str, __import__("cuser").__version__)),
description='Middleware to make user information always available.',
long_description=open('README.rst').read(),
author='Alireza Savand',
author_email='alireza.sa... | from setuptools import setup, find_packages
setup(
name='django-cuser',
version=".".join(map(str, __import__("cuser").__version__)),
description='Middleware to make user information always available.',
long_description=open('README.rst').read(),
author='Alireza Savand',
author_email='alireza.sa... | <commit_before>from setuptools import setup, find_packages
setup(
name='django-cuser',
version=".".join(map(str, __import__("cuser").__version__)),
description='Middleware to make user information always available.',
long_description=open('README.rst').read(),
author='Alireza Savand',
author_em... |
f796323f484f575b3d285f74d2e34af1d701b227 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
setup(
name='celery-queued-once',
version='1.0',
description='Celery base task de-duplicating tasks',
author='Corey Farwell',
author_email='corey@educreations.com',
packages=['queued_once'],
install_requires=['celery', 'django'],
)
| #!/usr/bin/env python
from setuptools import setup
setup(
name='celery-queued-once',
version='0.1',
description='Celery base task de-duplicating tasks',
author='Corey Farwell',
author_email='corey@educreations.com',
packages=['queued_once'],
install_requires=['celery', 'django'],
)
| Set version to 0.1 for now | Set version to 0.1 for now
| Python | mit | educreations/celery-queued-once | #!/usr/bin/env python
from setuptools import setup
setup(
name='celery-queued-once',
version='1.0',
description='Celery base task de-duplicating tasks',
author='Corey Farwell',
author_email='corey@educreations.com',
packages=['queued_once'],
install_requires=['celery', 'django'],
)
Set ve... | #!/usr/bin/env python
from setuptools import setup
setup(
name='celery-queued-once',
version='0.1',
description='Celery base task de-duplicating tasks',
author='Corey Farwell',
author_email='corey@educreations.com',
packages=['queued_once'],
install_requires=['celery', 'django'],
)
| <commit_before>#!/usr/bin/env python
from setuptools import setup
setup(
name='celery-queued-once',
version='1.0',
description='Celery base task de-duplicating tasks',
author='Corey Farwell',
author_email='corey@educreations.com',
packages=['queued_once'],
install_requires=['celery', 'dja... | #!/usr/bin/env python
from setuptools import setup
setup(
name='celery-queued-once',
version='0.1',
description='Celery base task de-duplicating tasks',
author='Corey Farwell',
author_email='corey@educreations.com',
packages=['queued_once'],
install_requires=['celery', 'django'],
)
| #!/usr/bin/env python
from setuptools import setup
setup(
name='celery-queued-once',
version='1.0',
description='Celery base task de-duplicating tasks',
author='Corey Farwell',
author_email='corey@educreations.com',
packages=['queued_once'],
install_requires=['celery', 'django'],
)
Set ve... | <commit_before>#!/usr/bin/env python
from setuptools import setup
setup(
name='celery-queued-once',
version='1.0',
description='Celery base task de-duplicating tasks',
author='Corey Farwell',
author_email='corey@educreations.com',
packages=['queued_once'],
install_requires=['celery', 'dja... |
f3dfad2448ff90386891f1490fc2ba3c0f5dae35 | setup.py | setup.py | """Setup script for pygoogling."""
from codecs import open as open_codec
from os import path
from setuptools import setup
HERE = path.abspath(path.dirname(__file__))
with open_codec(path.join(HERE, 'README.md'), encoding='utf-8') as f:
LONG_DESCRIPTION = f.read()
setup(
name='pygoogling',
version='0.0.2... | """Setup script for pygoogling."""
from codecs import open as open_codec
from os import path
from setuptools import setup
HERE = path.abspath(path.dirname(__file__))
with open_codec(path.join(HERE, 'README.rst'), encoding='utf-8') as f:
LONG_DESCRIPTION = f.read()
setup(
name='pygoogling',
version='0.0.... | Change README file format from .md to .rst | Change README file format from .md to .rst
| Python | mit | essanpupil/pygoogling | """Setup script for pygoogling."""
from codecs import open as open_codec
from os import path
from setuptools import setup
HERE = path.abspath(path.dirname(__file__))
with open_codec(path.join(HERE, 'README.md'), encoding='utf-8') as f:
LONG_DESCRIPTION = f.read()
setup(
name='pygoogling',
version='0.0.2... | """Setup script for pygoogling."""
from codecs import open as open_codec
from os import path
from setuptools import setup
HERE = path.abspath(path.dirname(__file__))
with open_codec(path.join(HERE, 'README.rst'), encoding='utf-8') as f:
LONG_DESCRIPTION = f.read()
setup(
name='pygoogling',
version='0.0.... | <commit_before>"""Setup script for pygoogling."""
from codecs import open as open_codec
from os import path
from setuptools import setup
HERE = path.abspath(path.dirname(__file__))
with open_codec(path.join(HERE, 'README.md'), encoding='utf-8') as f:
LONG_DESCRIPTION = f.read()
setup(
name='pygoogling',
... | """Setup script for pygoogling."""
from codecs import open as open_codec
from os import path
from setuptools import setup
HERE = path.abspath(path.dirname(__file__))
with open_codec(path.join(HERE, 'README.rst'), encoding='utf-8') as f:
LONG_DESCRIPTION = f.read()
setup(
name='pygoogling',
version='0.0.... | """Setup script for pygoogling."""
from codecs import open as open_codec
from os import path
from setuptools import setup
HERE = path.abspath(path.dirname(__file__))
with open_codec(path.join(HERE, 'README.md'), encoding='utf-8') as f:
LONG_DESCRIPTION = f.read()
setup(
name='pygoogling',
version='0.0.2... | <commit_before>"""Setup script for pygoogling."""
from codecs import open as open_codec
from os import path
from setuptools import setup
HERE = path.abspath(path.dirname(__file__))
with open_codec(path.join(HERE, 'README.md'), encoding='utf-8') as f:
LONG_DESCRIPTION = f.read()
setup(
name='pygoogling',
... |
198fb06b2de1b694f0350278563bf3c8f79f615d | setup.py | setup.py | from setuptools import find_packages, setup
from setuptools.command.test import test as TestCommand
import sys
class PyTest(TestCommand):
def finalize_options(self):
super().finalize_options()
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
... | from setuptools import find_packages, setup
from setuptools.command.test import test as TestCommand
import sys
class PyTest(TestCommand):
def finalize_options(self):
super().finalize_options()
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
... | Remove the version specifier for Henson | Remove the version specifier for Henson
Henson 0.2 doesn't exist.
| Python | apache-2.0 | iheartradio/Henson-Logging | from setuptools import find_packages, setup
from setuptools.command.test import test as TestCommand
import sys
class PyTest(TestCommand):
def finalize_options(self):
super().finalize_options()
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
... | from setuptools import find_packages, setup
from setuptools.command.test import test as TestCommand
import sys
class PyTest(TestCommand):
def finalize_options(self):
super().finalize_options()
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
... | <commit_before>from setuptools import find_packages, setup
from setuptools.command.test import test as TestCommand
import sys
class PyTest(TestCommand):
def finalize_options(self):
super().finalize_options()
self.test_args = []
self.test_suite = True
def run_tests(self):
impor... | from setuptools import find_packages, setup
from setuptools.command.test import test as TestCommand
import sys
class PyTest(TestCommand):
def finalize_options(self):
super().finalize_options()
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
... | from setuptools import find_packages, setup
from setuptools.command.test import test as TestCommand
import sys
class PyTest(TestCommand):
def finalize_options(self):
super().finalize_options()
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
... | <commit_before>from setuptools import find_packages, setup
from setuptools.command.test import test as TestCommand
import sys
class PyTest(TestCommand):
def finalize_options(self):
super().finalize_options()
self.test_args = []
self.test_suite = True
def run_tests(self):
impor... |
dc17543e55759267bd10ece8b572643d1231dd31 | setup.py | setup.py | from setuptools import setup
setup(
name='txkazoo',
version='0.0.4',
description='Twisted binding for Kazoo',
maintainer='Manish Tomar',
maintainer_email='manish.tomar@rackspace.com',
license='Apache 2.0',
py_modules=['txkazoo'],
install_requires=['twisted==13.2.0', 'kazoo==2.0b1']
)
| from setuptools import find_packages, setup
setup(
name='txkazoo',
version='0.0.4',
description='Twisted binding for Kazoo',
maintainer='Manish Tomar',
maintainer_email='manish.tomar@rackspace.com',
license='Apache 2.0',
packages=find_packages(),
install_requires=['twisted==13.2.0', 'ka... | Use find_packages to find packages instead of having them somewhere manually | Use find_packages to find packages instead of having them somewhere
manually
| Python | apache-2.0 | rackerlabs/txkazoo | from setuptools import setup
setup(
name='txkazoo',
version='0.0.4',
description='Twisted binding for Kazoo',
maintainer='Manish Tomar',
maintainer_email='manish.tomar@rackspace.com',
license='Apache 2.0',
py_modules=['txkazoo'],
install_requires=['twisted==13.2.0', 'kazoo==2.0b1']
)
Us... | from setuptools import find_packages, setup
setup(
name='txkazoo',
version='0.0.4',
description='Twisted binding for Kazoo',
maintainer='Manish Tomar',
maintainer_email='manish.tomar@rackspace.com',
license='Apache 2.0',
packages=find_packages(),
install_requires=['twisted==13.2.0', 'ka... | <commit_before>from setuptools import setup
setup(
name='txkazoo',
version='0.0.4',
description='Twisted binding for Kazoo',
maintainer='Manish Tomar',
maintainer_email='manish.tomar@rackspace.com',
license='Apache 2.0',
py_modules=['txkazoo'],
install_requires=['twisted==13.2.0', 'kazo... | from setuptools import find_packages, setup
setup(
name='txkazoo',
version='0.0.4',
description='Twisted binding for Kazoo',
maintainer='Manish Tomar',
maintainer_email='manish.tomar@rackspace.com',
license='Apache 2.0',
packages=find_packages(),
install_requires=['twisted==13.2.0', 'ka... | from setuptools import setup
setup(
name='txkazoo',
version='0.0.4',
description='Twisted binding for Kazoo',
maintainer='Manish Tomar',
maintainer_email='manish.tomar@rackspace.com',
license='Apache 2.0',
py_modules=['txkazoo'],
install_requires=['twisted==13.2.0', 'kazoo==2.0b1']
)
Us... | <commit_before>from setuptools import setup
setup(
name='txkazoo',
version='0.0.4',
description='Twisted binding for Kazoo',
maintainer='Manish Tomar',
maintainer_email='manish.tomar@rackspace.com',
license='Apache 2.0',
py_modules=['txkazoo'],
install_requires=['twisted==13.2.0', 'kazo... |
f2399e49e657848a58022b63915fad7969841b62 | setup.py | setup.py | import os
from distutils.core import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='django-portfolio',
version='0.8.0',
description='Web Worker\'s Portfolio for Django.',
url='http://github.com/benspaulding/django-portfolio/',
author='Be... | import os
from distutils.core import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='django-portfolio',
version='0.8.0',
description='Web Worker\'s Portfolio for Django.',
url='http://github.com/benspaulding/django-portfolio/',
author='Be... | Add tests to package list. | Add tests to package list.
Missed this earlier. Oops. | Python | bsd-3-clause | blturner/django-portfolio,blturner/django-portfolio,benspaulding/django-portfolio | import os
from distutils.core import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='django-portfolio',
version='0.8.0',
description='Web Worker\'s Portfolio for Django.',
url='http://github.com/benspaulding/django-portfolio/',
author='Be... | import os
from distutils.core import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='django-portfolio',
version='0.8.0',
description='Web Worker\'s Portfolio for Django.',
url='http://github.com/benspaulding/django-portfolio/',
author='Be... | <commit_before>import os
from distutils.core import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='django-portfolio',
version='0.8.0',
description='Web Worker\'s Portfolio for Django.',
url='http://github.com/benspaulding/django-portfolio/',... | import os
from distutils.core import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='django-portfolio',
version='0.8.0',
description='Web Worker\'s Portfolio for Django.',
url='http://github.com/benspaulding/django-portfolio/',
author='Be... | import os
from distutils.core import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='django-portfolio',
version='0.8.0',
description='Web Worker\'s Portfolio for Django.',
url='http://github.com/benspaulding/django-portfolio/',
author='Be... | <commit_before>import os
from distutils.core import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='django-portfolio',
version='0.8.0',
description='Web Worker\'s Portfolio for Django.',
url='http://github.com/benspaulding/django-portfolio/',... |
815608b3c35c754f50d1651ea8124315524dacb0 | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='jmbo-banner',
version='0.5',
description='Jmbo banner app.',
long_description=open('README.rst', 'r').read() + open('AUTHORS.rst', 'r').read() + open('CHANGELOG.rst', 'r').read(),
author='Praekelt Foundation',
author_email='dev@praekelt.c... | from setuptools import setup, find_packages
setup(
name='jmbo-banner',
version='0.5',
description='Jmbo banner app.',
long_description=open('README.rst', 'r').read() + open('AUTHORS.rst', 'r').read() + open('CHANGELOG.rst', 'r').read(),
author='Praekelt Foundation',
author_email='dev@praekelt.c... | Add pins so tests pass outside of Travis as well | Add pins so tests pass outside of Travis as well
| Python | bsd-3-clause | praekelt/jmbo-banner,praekelt/jmbo-banner | from setuptools import setup, find_packages
setup(
name='jmbo-banner',
version='0.5',
description='Jmbo banner app.',
long_description=open('README.rst', 'r').read() + open('AUTHORS.rst', 'r').read() + open('CHANGELOG.rst', 'r').read(),
author='Praekelt Foundation',
author_email='dev@praekelt.c... | from setuptools import setup, find_packages
setup(
name='jmbo-banner',
version='0.5',
description='Jmbo banner app.',
long_description=open('README.rst', 'r').read() + open('AUTHORS.rst', 'r').read() + open('CHANGELOG.rst', 'r').read(),
author='Praekelt Foundation',
author_email='dev@praekelt.c... | <commit_before>from setuptools import setup, find_packages
setup(
name='jmbo-banner',
version='0.5',
description='Jmbo banner app.',
long_description=open('README.rst', 'r').read() + open('AUTHORS.rst', 'r').read() + open('CHANGELOG.rst', 'r').read(),
author='Praekelt Foundation',
author_email=... | from setuptools import setup, find_packages
setup(
name='jmbo-banner',
version='0.5',
description='Jmbo banner app.',
long_description=open('README.rst', 'r').read() + open('AUTHORS.rst', 'r').read() + open('CHANGELOG.rst', 'r').read(),
author='Praekelt Foundation',
author_email='dev@praekelt.c... | from setuptools import setup, find_packages
setup(
name='jmbo-banner',
version='0.5',
description='Jmbo banner app.',
long_description=open('README.rst', 'r').read() + open('AUTHORS.rst', 'r').read() + open('CHANGELOG.rst', 'r').read(),
author='Praekelt Foundation',
author_email='dev@praekelt.c... | <commit_before>from setuptools import setup, find_packages
setup(
name='jmbo-banner',
version='0.5',
description='Jmbo banner app.',
long_description=open('README.rst', 'r').read() + open('AUTHORS.rst', 'r').read() + open('CHANGELOG.rst', 'r').read(),
author='Praekelt Foundation',
author_email=... |
d3cb042505a5a4905537ece9c85a62286c50ca4a | setup.py | setup.py | from distutils.core import setup
from setuptools import find_packages
setup(
name='sendwithus',
version='1.0.12',
author='sendwithus',
author_email='us@sendwithus.com',
packages=find_packages(),
scripts=[],
url='https://github.com/sendwithus/sendwithus_python',
license='LICENSE.txt',
... | from distutils.core import setup
from setuptools import find_packages
setup(
name='sendwithus',
version='1.0.12',
author='sendwithus',
author_email='us@sendwithus.com',
packages=find_packages(),
scripts=[],
url='https://github.com/sendwithus/sendwithus_python',
license='LICENSE.txt',
... | Add generic Python 2 classifier. | Add generic Python 2 classifier. | Python | apache-2.0 | sendwithus/sendwithus_python,mefyl/sendwithus_python | from distutils.core import setup
from setuptools import find_packages
setup(
name='sendwithus',
version='1.0.12',
author='sendwithus',
author_email='us@sendwithus.com',
packages=find_packages(),
scripts=[],
url='https://github.com/sendwithus/sendwithus_python',
license='LICENSE.txt',
... | from distutils.core import setup
from setuptools import find_packages
setup(
name='sendwithus',
version='1.0.12',
author='sendwithus',
author_email='us@sendwithus.com',
packages=find_packages(),
scripts=[],
url='https://github.com/sendwithus/sendwithus_python',
license='LICENSE.txt',
... | <commit_before>from distutils.core import setup
from setuptools import find_packages
setup(
name='sendwithus',
version='1.0.12',
author='sendwithus',
author_email='us@sendwithus.com',
packages=find_packages(),
scripts=[],
url='https://github.com/sendwithus/sendwithus_python',
license='L... | from distutils.core import setup
from setuptools import find_packages
setup(
name='sendwithus',
version='1.0.12',
author='sendwithus',
author_email='us@sendwithus.com',
packages=find_packages(),
scripts=[],
url='https://github.com/sendwithus/sendwithus_python',
license='LICENSE.txt',
... | from distutils.core import setup
from setuptools import find_packages
setup(
name='sendwithus',
version='1.0.12',
author='sendwithus',
author_email='us@sendwithus.com',
packages=find_packages(),
scripts=[],
url='https://github.com/sendwithus/sendwithus_python',
license='LICENSE.txt',
... | <commit_before>from distutils.core import setup
from setuptools import find_packages
setup(
name='sendwithus',
version='1.0.12',
author='sendwithus',
author_email='us@sendwithus.com',
packages=find_packages(),
scripts=[],
url='https://github.com/sendwithus/sendwithus_python',
license='L... |
c83291ee2931dcf7918c574efc86ead01dbc725c | setup.py | setup.py | # -*- coding: utf-8 -*-
#!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
__version__ = '0.4'
setup(
name='webstack-django-sorting',
version=__version__,
description="Easy sorting of tables with Django",
long_description=open('README.... | # -*- coding: utf-8 -*-
#!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
__version__ = '0.4'
setup(
name='webstack-django-sorting',
version=__version__,
description="Easy sorting of tables with Django",
long_description=open('README.... | Update URL of new project | Update URL of new project
| Python | bsd-3-clause | tino/webstack-django-sorting,artscoop/webstack-django-sorting,makinacorpus/webstack-django-sorting,artscoop/webstack-django-sorting | # -*- coding: utf-8 -*-
#!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
__version__ = '0.4'
setup(
name='webstack-django-sorting',
version=__version__,
description="Easy sorting of tables with Django",
long_description=open('README.... | # -*- coding: utf-8 -*-
#!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
__version__ = '0.4'
setup(
name='webstack-django-sorting',
version=__version__,
description="Easy sorting of tables with Django",
long_description=open('README.... | <commit_before># -*- coding: utf-8 -*-
#!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
__version__ = '0.4'
setup(
name='webstack-django-sorting',
version=__version__,
description="Easy sorting of tables with Django",
long_descriptio... | # -*- coding: utf-8 -*-
#!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
__version__ = '0.4'
setup(
name='webstack-django-sorting',
version=__version__,
description="Easy sorting of tables with Django",
long_description=open('README.... | # -*- coding: utf-8 -*-
#!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
__version__ = '0.4'
setup(
name='webstack-django-sorting',
version=__version__,
description="Easy sorting of tables with Django",
long_description=open('README.... | <commit_before># -*- coding: utf-8 -*-
#!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
__version__ = '0.4'
setup(
name='webstack-django-sorting',
version=__version__,
description="Easy sorting of tables with Django",
long_descriptio... |
934cc5692c31111dc787b31cbf369be2017ec1c3 | setup.py | setup.py | from setuptools import setup
setup(
name="teamscale-client",
version="4.1.0",
author="Thomas Kinnen - CQSE GmbH",
author_email="kinnen@cqse.eu",
description=("A simple service client to interact with Teamscale's REST API."),
license="Apache",
keywords="rest api teamscale",
url="https://... | from setuptools import setup
setup(
name="teamscale-client",
version="4.1.0",
author="Thomas Kinnen - CQSE GmbH",
author_email="kinnen@cqse.eu",
description=("A simple service client to interact with Teamscale's REST API."),
license="Apache",
keywords="rest api teamscale",
url="https://... | Fix failing build: added getsentry/responses as installation requirement | Fix failing build: added getsentry/responses as installation requirement
| Python | apache-2.0 | cqse/teamscale-client-python | from setuptools import setup
setup(
name="teamscale-client",
version="4.1.0",
author="Thomas Kinnen - CQSE GmbH",
author_email="kinnen@cqse.eu",
description=("A simple service client to interact with Teamscale's REST API."),
license="Apache",
keywords="rest api teamscale",
url="https://... | from setuptools import setup
setup(
name="teamscale-client",
version="4.1.0",
author="Thomas Kinnen - CQSE GmbH",
author_email="kinnen@cqse.eu",
description=("A simple service client to interact with Teamscale's REST API."),
license="Apache",
keywords="rest api teamscale",
url="https://... | <commit_before>from setuptools import setup
setup(
name="teamscale-client",
version="4.1.0",
author="Thomas Kinnen - CQSE GmbH",
author_email="kinnen@cqse.eu",
description=("A simple service client to interact with Teamscale's REST API."),
license="Apache",
keywords="rest api teamscale",
... | from setuptools import setup
setup(
name="teamscale-client",
version="4.1.0",
author="Thomas Kinnen - CQSE GmbH",
author_email="kinnen@cqse.eu",
description=("A simple service client to interact with Teamscale's REST API."),
license="Apache",
keywords="rest api teamscale",
url="https://... | from setuptools import setup
setup(
name="teamscale-client",
version="4.1.0",
author="Thomas Kinnen - CQSE GmbH",
author_email="kinnen@cqse.eu",
description=("A simple service client to interact with Teamscale's REST API."),
license="Apache",
keywords="rest api teamscale",
url="https://... | <commit_before>from setuptools import setup
setup(
name="teamscale-client",
version="4.1.0",
author="Thomas Kinnen - CQSE GmbH",
author_email="kinnen@cqse.eu",
description=("A simple service client to interact with Teamscale's REST API."),
license="Apache",
keywords="rest api teamscale",
... |
2f87d814a973f1e0ae456fde6d42947a5a72f017 | setup.py | setup.py | #! /usr/bin/env python
from setuptools import find_packages, setup
setup(name='oemof.db',
version='0.0.4',
description='The oemof database extension',
namespace_package = ['oemof'],
packages=find_packages(),
package_dir={'oemof': 'oemof'},
install_requires=['sqlalchemy >= 1.0',
... | #! /usr/bin/env python
from setuptools import find_packages, setup
setup(name='oemof.db',
version='0.0.4',
description='The oemof database extension',
namespace_package = ['oemof'],
packages=find_packages(),
package_dir={'oemof': 'oemof'},
install_requires=['sqlalchemy >= 1.0',
... | Add pandas as required package | Add pandas as required package
| Python | mit | oemof/oemof.db | #! /usr/bin/env python
from setuptools import find_packages, setup
setup(name='oemof.db',
version='0.0.4',
description='The oemof database extension',
namespace_package = ['oemof'],
packages=find_packages(),
package_dir={'oemof': 'oemof'},
install_requires=['sqlalchemy >= 1.0',
... | #! /usr/bin/env python
from setuptools import find_packages, setup
setup(name='oemof.db',
version='0.0.4',
description='The oemof database extension',
namespace_package = ['oemof'],
packages=find_packages(),
package_dir={'oemof': 'oemof'},
install_requires=['sqlalchemy >= 1.0',
... | <commit_before>#! /usr/bin/env python
from setuptools import find_packages, setup
setup(name='oemof.db',
version='0.0.4',
description='The oemof database extension',
namespace_package = ['oemof'],
packages=find_packages(),
package_dir={'oemof': 'oemof'},
install_requires=['sqlalche... | #! /usr/bin/env python
from setuptools import find_packages, setup
setup(name='oemof.db',
version='0.0.4',
description='The oemof database extension',
namespace_package = ['oemof'],
packages=find_packages(),
package_dir={'oemof': 'oemof'},
install_requires=['sqlalchemy >= 1.0',
... | #! /usr/bin/env python
from setuptools import find_packages, setup
setup(name='oemof.db',
version='0.0.4',
description='The oemof database extension',
namespace_package = ['oemof'],
packages=find_packages(),
package_dir={'oemof': 'oemof'},
install_requires=['sqlalchemy >= 1.0',
... | <commit_before>#! /usr/bin/env python
from setuptools import find_packages, setup
setup(name='oemof.db',
version='0.0.4',
description='The oemof database extension',
namespace_package = ['oemof'],
packages=find_packages(),
package_dir={'oemof': 'oemof'},
install_requires=['sqlalche... |
e85f08b816d754927eae4a03ff26b9ad9dcd6fb3 | setup.py | setup.py | #!/usr/bin/env python
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
tests_require = [
'South',
]
setup(
name='gargoyle',
version='0.1.8',
author='DISQUS',
author... | #!/usr/bin/env python
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
tests_require = [
'South',
]
setup(
name='gargoyle',
version='0.1.8',
author='DISQUS',
author... | Update modeldict req for bugfix on deletion | Update modeldict req for bugfix on deletion
| Python | apache-2.0 | brilliant-org/gargoyle,zapier/gargoyle,disqus/gutter-django,frewsxcv/gargoyle,YPlan/gargoyle,nkovshov/gargoyle,brilliant-org/gargoyle,Raekkeri/gargoyle,monokrome/gargoyle,disqus/gutter-django,vikingco/gargoyle,roverdotcom/gargoyle,kalail/gutter,disqus/gutter-django,YPlan/gargoyle,nkovshov/gargoyle,blueprinthealth/gargo... | #!/usr/bin/env python
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
tests_require = [
'South',
]
setup(
name='gargoyle',
version='0.1.8',
author='DISQUS',
author... | #!/usr/bin/env python
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
tests_require = [
'South',
]
setup(
name='gargoyle',
version='0.1.8',
author='DISQUS',
author... | <commit_before>#!/usr/bin/env python
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
tests_require = [
'South',
]
setup(
name='gargoyle',
version='0.1.8',
author='DISQ... | #!/usr/bin/env python
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
tests_require = [
'South',
]
setup(
name='gargoyle',
version='0.1.8',
author='DISQUS',
author... | #!/usr/bin/env python
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
tests_require = [
'South',
]
setup(
name='gargoyle',
version='0.1.8',
author='DISQUS',
author... | <commit_before>#!/usr/bin/env python
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
tests_require = [
'South',
]
setup(
name='gargoyle',
version='0.1.8',
author='DISQ... |
58cecd37825e19e0bed42a7fa44c34e799d67ec1 | setup.py | setup.py | #!/usr/bin/env python
from codecs import open
from setuptools import find_packages, setup
with open('README.rst', 'r', 'utf-8') as f:
readme = f.read()
setup(
name='django-paginationlinks',
version='0.1.1',
description='Django Pagination Links',
long_description=readme,
url='https://github.... | #!/usr/bin/env python
from codecs import open
from setuptools import find_packages, setup
with open('README.rst', 'r', 'utf-8') as f:
readme = f.read()
setup(
name='django-paginationlinks',
version='0.1.1',
description='Django Pagination Links',
long_description=readme,
url='https://github.... | Support Python 3.7, Django 2.2 | Support Python 3.7, Django 2.2
| Python | bsd-3-clause | blancltd/django-paginationlinks | #!/usr/bin/env python
from codecs import open
from setuptools import find_packages, setup
with open('README.rst', 'r', 'utf-8') as f:
readme = f.read()
setup(
name='django-paginationlinks',
version='0.1.1',
description='Django Pagination Links',
long_description=readme,
url='https://github.... | #!/usr/bin/env python
from codecs import open
from setuptools import find_packages, setup
with open('README.rst', 'r', 'utf-8') as f:
readme = f.read()
setup(
name='django-paginationlinks',
version='0.1.1',
description='Django Pagination Links',
long_description=readme,
url='https://github.... | <commit_before>#!/usr/bin/env python
from codecs import open
from setuptools import find_packages, setup
with open('README.rst', 'r', 'utf-8') as f:
readme = f.read()
setup(
name='django-paginationlinks',
version='0.1.1',
description='Django Pagination Links',
long_description=readme,
url='... | #!/usr/bin/env python
from codecs import open
from setuptools import find_packages, setup
with open('README.rst', 'r', 'utf-8') as f:
readme = f.read()
setup(
name='django-paginationlinks',
version='0.1.1',
description='Django Pagination Links',
long_description=readme,
url='https://github.... | #!/usr/bin/env python
from codecs import open
from setuptools import find_packages, setup
with open('README.rst', 'r', 'utf-8') as f:
readme = f.read()
setup(
name='django-paginationlinks',
version='0.1.1',
description='Django Pagination Links',
long_description=readme,
url='https://github.... | <commit_before>#!/usr/bin/env python
from codecs import open
from setuptools import find_packages, setup
with open('README.rst', 'r', 'utf-8') as f:
readme = f.read()
setup(
name='django-paginationlinks',
version='0.1.1',
description='Django Pagination Links',
long_description=readme,
url='... |
5a0e780e4d47efebed691fe389ff01a7ee0ff1cb | setup.py | setup.py | from setuptools import setup
def get_version():
import re
with open('lastpass/__init__.py', 'r') as f:
for line in f:
m = re.match(r'__version__ = [\'"]([^\'"]*)[\'"]', line)
if m:
return m.group(1)
return ''
setup(
name='lastpass-python',
version=... | from setuptools import setup
def get_version():
import re
with open('lastpass/__init__.py', 'r') as f:
for line in f:
m = re.match(r'__version__ = [\'"]([^\'"]*)[\'"]', line)
if m:
return m.group(1)
raise RuntimeError('Cannot find version information')
set... | Raise RuntimeError if __version__ is not found | Raise RuntimeError if __version__ is not found
| Python | mit | dhercher/lastpass-python,konomae/lastpass-python | from setuptools import setup
def get_version():
import re
with open('lastpass/__init__.py', 'r') as f:
for line in f:
m = re.match(r'__version__ = [\'"]([^\'"]*)[\'"]', line)
if m:
return m.group(1)
return ''
setup(
name='lastpass-python',
version=... | from setuptools import setup
def get_version():
import re
with open('lastpass/__init__.py', 'r') as f:
for line in f:
m = re.match(r'__version__ = [\'"]([^\'"]*)[\'"]', line)
if m:
return m.group(1)
raise RuntimeError('Cannot find version information')
set... | <commit_before>from setuptools import setup
def get_version():
import re
with open('lastpass/__init__.py', 'r') as f:
for line in f:
m = re.match(r'__version__ = [\'"]([^\'"]*)[\'"]', line)
if m:
return m.group(1)
return ''
setup(
name='lastpass-python... | from setuptools import setup
def get_version():
import re
with open('lastpass/__init__.py', 'r') as f:
for line in f:
m = re.match(r'__version__ = [\'"]([^\'"]*)[\'"]', line)
if m:
return m.group(1)
raise RuntimeError('Cannot find version information')
set... | from setuptools import setup
def get_version():
import re
with open('lastpass/__init__.py', 'r') as f:
for line in f:
m = re.match(r'__version__ = [\'"]([^\'"]*)[\'"]', line)
if m:
return m.group(1)
return ''
setup(
name='lastpass-python',
version=... | <commit_before>from setuptools import setup
def get_version():
import re
with open('lastpass/__init__.py', 'r') as f:
for line in f:
m = re.match(r'__version__ = [\'"]([^\'"]*)[\'"]', line)
if m:
return m.group(1)
return ''
setup(
name='lastpass-python... |
ab97c9fbaad2ae8bc30d63a98bec1fa6fb58dd4d | setup.py | setup.py | import sys
from setuptools import setup
if sys.version_info < (3, 5):
raise Exception("Python 3.5 or higher is required. Your version is %s." % sys.version)
long_description = open('README.rst').read()
__version__ = ""
exec(open('ehforwarderbot/__version__.py').read())
setup(
name='ehforwarderbot',
pack... | import sys
from setuptools import setup
if sys.version_info < (3, 6):
raise Exception("Python 3.6 or higher is required. Your version is %s." % sys.version)
long_description = open('README.rst').read()
__version__ = ""
exec(open('ehforwarderbot/__version__.py').read())
setup(
name='ehforwarderbot',
pack... | Update requirement to Python 3.6 | Update requirement to Python 3.6
| Python | agpl-3.0 | blueset/ehForwarderBot | import sys
from setuptools import setup
if sys.version_info < (3, 5):
raise Exception("Python 3.5 or higher is required. Your version is %s." % sys.version)
long_description = open('README.rst').read()
__version__ = ""
exec(open('ehforwarderbot/__version__.py').read())
setup(
name='ehforwarderbot',
pack... | import sys
from setuptools import setup
if sys.version_info < (3, 6):
raise Exception("Python 3.6 or higher is required. Your version is %s." % sys.version)
long_description = open('README.rst').read()
__version__ = ""
exec(open('ehforwarderbot/__version__.py').read())
setup(
name='ehforwarderbot',
pack... | <commit_before>import sys
from setuptools import setup
if sys.version_info < (3, 5):
raise Exception("Python 3.5 or higher is required. Your version is %s." % sys.version)
long_description = open('README.rst').read()
__version__ = ""
exec(open('ehforwarderbot/__version__.py').read())
setup(
name='ehforwarde... | import sys
from setuptools import setup
if sys.version_info < (3, 6):
raise Exception("Python 3.6 or higher is required. Your version is %s." % sys.version)
long_description = open('README.rst').read()
__version__ = ""
exec(open('ehforwarderbot/__version__.py').read())
setup(
name='ehforwarderbot',
pack... | import sys
from setuptools import setup
if sys.version_info < (3, 5):
raise Exception("Python 3.5 or higher is required. Your version is %s." % sys.version)
long_description = open('README.rst').read()
__version__ = ""
exec(open('ehforwarderbot/__version__.py').read())
setup(
name='ehforwarderbot',
pack... | <commit_before>import sys
from setuptools import setup
if sys.version_info < (3, 5):
raise Exception("Python 3.5 or higher is required. Your version is %s." % sys.version)
long_description = open('README.rst').read()
__version__ = ""
exec(open('ehforwarderbot/__version__.py').read())
setup(
name='ehforwarde... |
00fd1fff56a7cdf6717a5312f827b3fdeed0c895 | setup.py | setup.py | # coding: utf-8
"""
A simple module to fetch Cavelink values by parsing the HTML page of sensors.
"""
from setuptools import find_packages, setup
with open('README.rst', 'r') as f:
long_description = f.read()
setup(
name='example_cavelink',
version='1.1.0',
author='Sébastien Pittet',
author_email... | # coding: utf-8
"""
A simple module to fetch Cavelink values by parsing the HTML page of sensors.
"""
from setuptools import find_packages, setup
with open('README.rst', 'r') as f:
long_description = f.read()
setup(
name='cavelink',
version='1.1.0',
author='Sébastien Pittet',
author_email='sebast... | Correct name of package (for production). | Correct name of package (for production).
| Python | mit | SebastienPittet/cavelink | # coding: utf-8
"""
A simple module to fetch Cavelink values by parsing the HTML page of sensors.
"""
from setuptools import find_packages, setup
with open('README.rst', 'r') as f:
long_description = f.read()
setup(
name='example_cavelink',
version='1.1.0',
author='Sébastien Pittet',
author_email... | # coding: utf-8
"""
A simple module to fetch Cavelink values by parsing the HTML page of sensors.
"""
from setuptools import find_packages, setup
with open('README.rst', 'r') as f:
long_description = f.read()
setup(
name='cavelink',
version='1.1.0',
author='Sébastien Pittet',
author_email='sebast... | <commit_before># coding: utf-8
"""
A simple module to fetch Cavelink values by parsing the HTML page of sensors.
"""
from setuptools import find_packages, setup
with open('README.rst', 'r') as f:
long_description = f.read()
setup(
name='example_cavelink',
version='1.1.0',
author='Sébastien Pittet',
... | # coding: utf-8
"""
A simple module to fetch Cavelink values by parsing the HTML page of sensors.
"""
from setuptools import find_packages, setup
with open('README.rst', 'r') as f:
long_description = f.read()
setup(
name='cavelink',
version='1.1.0',
author='Sébastien Pittet',
author_email='sebast... | # coding: utf-8
"""
A simple module to fetch Cavelink values by parsing the HTML page of sensors.
"""
from setuptools import find_packages, setup
with open('README.rst', 'r') as f:
long_description = f.read()
setup(
name='example_cavelink',
version='1.1.0',
author='Sébastien Pittet',
author_email... | <commit_before># coding: utf-8
"""
A simple module to fetch Cavelink values by parsing the HTML page of sensors.
"""
from setuptools import find_packages, setup
with open('README.rst', 'r') as f:
long_description = f.read()
setup(
name='example_cavelink',
version='1.1.0',
author='Sébastien Pittet',
... |
b4502dd3c258583fe4899a6aac7ac395c2265fad | setup.py | setup.py | #!/usr/bin/env python2
from __future__ import print_function
from setuptools import setup
from sys import version_info
setup(name="mpd_pydb",
author="Wieland Hoffmann",
author_email="themineo@gmail.com",
packages=["mpd_pydb"],
package_dir={"mpd_pydb": "mpd_pydb"},
download_url="https://gi... | #!/usr/bin/env python2
from __future__ import print_function
from setuptools import setup
from sys import version_info
if version_info < (3, 5):
requirements = ["pathlib"]
else:
requirements = []
setup(name="mpd_pydb",
author="Wieland Hoffmann",
author_email="themineo@gmail.com",
packages=["... | Add back the pathlib dependency on 2.7 | Add back the pathlib dependency on 2.7
| Python | mit | mineo/mpd_pydb,mineo/mpd_pydb | #!/usr/bin/env python2
from __future__ import print_function
from setuptools import setup
from sys import version_info
setup(name="mpd_pydb",
author="Wieland Hoffmann",
author_email="themineo@gmail.com",
packages=["mpd_pydb"],
package_dir={"mpd_pydb": "mpd_pydb"},
download_url="https://gi... | #!/usr/bin/env python2
from __future__ import print_function
from setuptools import setup
from sys import version_info
if version_info < (3, 5):
requirements = ["pathlib"]
else:
requirements = []
setup(name="mpd_pydb",
author="Wieland Hoffmann",
author_email="themineo@gmail.com",
packages=["... | <commit_before>#!/usr/bin/env python2
from __future__ import print_function
from setuptools import setup
from sys import version_info
setup(name="mpd_pydb",
author="Wieland Hoffmann",
author_email="themineo@gmail.com",
packages=["mpd_pydb"],
package_dir={"mpd_pydb": "mpd_pydb"},
download_... | #!/usr/bin/env python2
from __future__ import print_function
from setuptools import setup
from sys import version_info
if version_info < (3, 5):
requirements = ["pathlib"]
else:
requirements = []
setup(name="mpd_pydb",
author="Wieland Hoffmann",
author_email="themineo@gmail.com",
packages=["... | #!/usr/bin/env python2
from __future__ import print_function
from setuptools import setup
from sys import version_info
setup(name="mpd_pydb",
author="Wieland Hoffmann",
author_email="themineo@gmail.com",
packages=["mpd_pydb"],
package_dir={"mpd_pydb": "mpd_pydb"},
download_url="https://gi... | <commit_before>#!/usr/bin/env python2
from __future__ import print_function
from setuptools import setup
from sys import version_info
setup(name="mpd_pydb",
author="Wieland Hoffmann",
author_email="themineo@gmail.com",
packages=["mpd_pydb"],
package_dir={"mpd_pydb": "mpd_pydb"},
download_... |
67179d1cf8dab528bc418cdaff71446698a9bd51 | setup.py | setup.py | #!/usr/bin/env python
import sys
import os
from setuptools import setup, find_packages
assert sys.version_info >= (2, 6), 'We only support Python 2.6+'
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'asana'))
setup(
name='asana',
version='0.6.2',
description='Asana API client',
license='... | #!/usr/bin/env python
import sys
import os
from setuptools import setup, find_packages
assert sys.version_info >= (2, 6), 'We only support Python 2.6+'
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'asana'))
setup(
name='asana',
version='0.6.2',
description='Asana API client',
license='... | Fix attempt: version specifier ~= is not supported on older installations of pip | Fix attempt: version specifier ~= is not supported on older installations of pip
| Python | mit | Asana/python-asana,asana/python-asana,asana/python-asana | #!/usr/bin/env python
import sys
import os
from setuptools import setup, find_packages
assert sys.version_info >= (2, 6), 'We only support Python 2.6+'
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'asana'))
setup(
name='asana',
version='0.6.2',
description='Asana API client',
license='... | #!/usr/bin/env python
import sys
import os
from setuptools import setup, find_packages
assert sys.version_info >= (2, 6), 'We only support Python 2.6+'
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'asana'))
setup(
name='asana',
version='0.6.2',
description='Asana API client',
license='... | <commit_before>#!/usr/bin/env python
import sys
import os
from setuptools import setup, find_packages
assert sys.version_info >= (2, 6), 'We only support Python 2.6+'
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'asana'))
setup(
name='asana',
version='0.6.2',
description='Asana API client'... | #!/usr/bin/env python
import sys
import os
from setuptools import setup, find_packages
assert sys.version_info >= (2, 6), 'We only support Python 2.6+'
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'asana'))
setup(
name='asana',
version='0.6.2',
description='Asana API client',
license='... | #!/usr/bin/env python
import sys
import os
from setuptools import setup, find_packages
assert sys.version_info >= (2, 6), 'We only support Python 2.6+'
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'asana'))
setup(
name='asana',
version='0.6.2',
description='Asana API client',
license='... | <commit_before>#!/usr/bin/env python
import sys
import os
from setuptools import setup, find_packages
assert sys.version_info >= (2, 6), 'We only support Python 2.6+'
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'asana'))
setup(
name='asana',
version='0.6.2',
description='Asana API client'... |
4ffc44b6c33ce77dbd41388e0c4c116064d667d5 | setup.py | setup.py | #!/usr/bin/env python3
# written by Daniel Oaks <daniel@danieloaks.net>
# Released under the ISC license
from setuptools import setup, find_packages
with open('README.rst') as file:
long_description = file.read()
setup(
name='girc',
version='0.3.1',
description='A modern Python IRC library for Python... | #!/usr/bin/env python3
# written by Daniel Oaks <daniel@danieloaks.net>
# Released under the ISC license
from setuptools import setup, find_packages
import girc
with open('README.rst') as file:
long_description = file.read()
setup(
name='girc',
version=girc.__version__,
description='A modern Python ... | Read package version from one location | Read package version from one location
| Python | isc | DanielOaks/girc,DanielOaks/girc | #!/usr/bin/env python3
# written by Daniel Oaks <daniel@danieloaks.net>
# Released under the ISC license
from setuptools import setup, find_packages
with open('README.rst') as file:
long_description = file.read()
setup(
name='girc',
version='0.3.1',
description='A modern Python IRC library for Python... | #!/usr/bin/env python3
# written by Daniel Oaks <daniel@danieloaks.net>
# Released under the ISC license
from setuptools import setup, find_packages
import girc
with open('README.rst') as file:
long_description = file.read()
setup(
name='girc',
version=girc.__version__,
description='A modern Python ... | <commit_before>#!/usr/bin/env python3
# written by Daniel Oaks <daniel@danieloaks.net>
# Released under the ISC license
from setuptools import setup, find_packages
with open('README.rst') as file:
long_description = file.read()
setup(
name='girc',
version='0.3.1',
description='A modern Python IRC lib... | #!/usr/bin/env python3
# written by Daniel Oaks <daniel@danieloaks.net>
# Released under the ISC license
from setuptools import setup, find_packages
import girc
with open('README.rst') as file:
long_description = file.read()
setup(
name='girc',
version=girc.__version__,
description='A modern Python ... | #!/usr/bin/env python3
# written by Daniel Oaks <daniel@danieloaks.net>
# Released under the ISC license
from setuptools import setup, find_packages
with open('README.rst') as file:
long_description = file.read()
setup(
name='girc',
version='0.3.1',
description='A modern Python IRC library for Python... | <commit_before>#!/usr/bin/env python3
# written by Daniel Oaks <daniel@danieloaks.net>
# Released under the ISC license
from setuptools import setup, find_packages
with open('README.rst') as file:
long_description = file.read()
setup(
name='girc',
version='0.3.1',
description='A modern Python IRC lib... |
6705b4eb603f69681357a5f71f02e81705ea5e17 | setup.py | setup.py | from distutils.core import setup
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
long_description = open('README.md').read()
setup(
name='pymp4parse',
version='0.3.0',
packages=[''],
url='https://github.com/use-sparingly/pymp4parse... | from distutils.core import setup
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
long_description = open('README.md').read()
setup(
name='pymp4parse',
version='0.3.0',
packages=[''],
url='https://github.com/use-sparingly/pymp4parse... | Add six as dependency to fix import issue | Add six as dependency to fix import issue | Python | mit | use-sparingly/pymp4parse | from distutils.core import setup
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
long_description = open('README.md').read()
setup(
name='pymp4parse',
version='0.3.0',
packages=[''],
url='https://github.com/use-sparingly/pymp4parse... | from distutils.core import setup
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
long_description = open('README.md').read()
setup(
name='pymp4parse',
version='0.3.0',
packages=[''],
url='https://github.com/use-sparingly/pymp4parse... | <commit_before>from distutils.core import setup
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
long_description = open('README.md').read()
setup(
name='pymp4parse',
version='0.3.0',
packages=[''],
url='https://github.com/use-spari... | from distutils.core import setup
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
long_description = open('README.md').read()
setup(
name='pymp4parse',
version='0.3.0',
packages=[''],
url='https://github.com/use-sparingly/pymp4parse... | from distutils.core import setup
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
long_description = open('README.md').read()
setup(
name='pymp4parse',
version='0.3.0',
packages=[''],
url='https://github.com/use-sparingly/pymp4parse... | <commit_before>from distutils.core import setup
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
long_description = open('README.md').read()
setup(
name='pymp4parse',
version='0.3.0',
packages=[''],
url='https://github.com/use-spari... |
4fdd9a72a05fa847e435c13af7b1dd33f9dcd34e | tests.py | tests.py | #!/usr/bin/python -O
# -*- coding: utf-8 -*-
import sqlite3
from parser import SQLITE3_DB_NAME
from random import randint, randrange
def main():
""" Ouputs a random clue (with game ID) from 10 random games for manual verification. """
sql = sqlite3.connect(SQLITE3_DB_NAME)
# list of random game ids
gids = [ra... | #!/usr/bin/python -OO
# -*- coding: utf-8 -*-
import sqlite3
from parser import SQLITE3_DB_NAME
from random import randint, randrange
def main():
""" Ouputs a random clue (with game ID) from 10 random games for manual verification. """
sql = sqlite3.connect(SQLITE3_DB_NAME)
# list of random game ids
gids = [r... | Discard docstrings in addition to the -O optimizations. | Discard docstrings in addition to the -O optimizations.
| Python | mit | whymarrh/jeopardy-parser,dangoldin/jeopardy-parser,dangoldin/jeopardy-parser | #!/usr/bin/python -O
# -*- coding: utf-8 -*-
import sqlite3
from parser import SQLITE3_DB_NAME
from random import randint, randrange
def main():
""" Ouputs a random clue (with game ID) from 10 random games for manual verification. """
sql = sqlite3.connect(SQLITE3_DB_NAME)
# list of random game ids
gids = [ra... | #!/usr/bin/python -OO
# -*- coding: utf-8 -*-
import sqlite3
from parser import SQLITE3_DB_NAME
from random import randint, randrange
def main():
""" Ouputs a random clue (with game ID) from 10 random games for manual verification. """
sql = sqlite3.connect(SQLITE3_DB_NAME)
# list of random game ids
gids = [r... | <commit_before>#!/usr/bin/python -O
# -*- coding: utf-8 -*-
import sqlite3
from parser import SQLITE3_DB_NAME
from random import randint, randrange
def main():
""" Ouputs a random clue (with game ID) from 10 random games for manual verification. """
sql = sqlite3.connect(SQLITE3_DB_NAME)
# list of random game i... | #!/usr/bin/python -OO
# -*- coding: utf-8 -*-
import sqlite3
from parser import SQLITE3_DB_NAME
from random import randint, randrange
def main():
""" Ouputs a random clue (with game ID) from 10 random games for manual verification. """
sql = sqlite3.connect(SQLITE3_DB_NAME)
# list of random game ids
gids = [r... | #!/usr/bin/python -O
# -*- coding: utf-8 -*-
import sqlite3
from parser import SQLITE3_DB_NAME
from random import randint, randrange
def main():
""" Ouputs a random clue (with game ID) from 10 random games for manual verification. """
sql = sqlite3.connect(SQLITE3_DB_NAME)
# list of random game ids
gids = [ra... | <commit_before>#!/usr/bin/python -O
# -*- coding: utf-8 -*-
import sqlite3
from parser import SQLITE3_DB_NAME
from random import randint, randrange
def main():
""" Ouputs a random clue (with game ID) from 10 random games for manual verification. """
sql = sqlite3.connect(SQLITE3_DB_NAME)
# list of random game i... |
bdeb28f2f7840c04dbf65b6c0771c121f229e59a | tests.py | tests.py | #!/usr/bin/env python
import sys
import os
import unittest
from straight.plugin.loader import StraightPluginLoader
class PluginTestCase(unittest.TestCase):
def setUp(self):
self.loader = StraightPluginLoader()
self.added_path = os.path.join(os.path.dirname(__file__), 'more-test-plugins')
... | #!/usr/bin/env python
import sys
import os
import unittest
from straight.plugin.loader import StraightPluginLoader
class PluginTestCase(unittest.TestCase):
def setUp(self):
self.loader = StraightPluginLoader()
sys.path.append(os.path.join(os.path.dirname(__file__), 'more-test-plugins'))
... | Fix test case for multiple locations of a namespace | Fix test case for multiple locations of a namespace
| Python | mit | ironfroggy/straight.plugin,pombredanne/straight.plugin | #!/usr/bin/env python
import sys
import os
import unittest
from straight.plugin.loader import StraightPluginLoader
class PluginTestCase(unittest.TestCase):
def setUp(self):
self.loader = StraightPluginLoader()
self.added_path = os.path.join(os.path.dirname(__file__), 'more-test-plugins')
... | #!/usr/bin/env python
import sys
import os
import unittest
from straight.plugin.loader import StraightPluginLoader
class PluginTestCase(unittest.TestCase):
def setUp(self):
self.loader = StraightPluginLoader()
sys.path.append(os.path.join(os.path.dirname(__file__), 'more-test-plugins'))
... | <commit_before>#!/usr/bin/env python
import sys
import os
import unittest
from straight.plugin.loader import StraightPluginLoader
class PluginTestCase(unittest.TestCase):
def setUp(self):
self.loader = StraightPluginLoader()
self.added_path = os.path.join(os.path.dirname(__file__), 'more-test-p... | #!/usr/bin/env python
import sys
import os
import unittest
from straight.plugin.loader import StraightPluginLoader
class PluginTestCase(unittest.TestCase):
def setUp(self):
self.loader = StraightPluginLoader()
sys.path.append(os.path.join(os.path.dirname(__file__), 'more-test-plugins'))
... | #!/usr/bin/env python
import sys
import os
import unittest
from straight.plugin.loader import StraightPluginLoader
class PluginTestCase(unittest.TestCase):
def setUp(self):
self.loader = StraightPluginLoader()
self.added_path = os.path.join(os.path.dirname(__file__), 'more-test-plugins')
... | <commit_before>#!/usr/bin/env python
import sys
import os
import unittest
from straight.plugin.loader import StraightPluginLoader
class PluginTestCase(unittest.TestCase):
def setUp(self):
self.loader = StraightPluginLoader()
self.added_path = os.path.join(os.path.dirname(__file__), 'more-test-p... |
9f994fdcc29e290b98c0938ce9e8c32dc5f8adee | neuroimaging/algorithms/statistics/__init__.py | neuroimaging/algorithms/statistics/__init__.py | """
TODO
"""
__docformat__ = 'restructuredtext'
import intrinsic_volumes, rft
def test(level=1, verbosity=1, flags=[]):
from neuroimaging.utils.testutils import set_flags
set_flags(flags)
from neuroimaging.testing import *
return NumpyTest().test(level, verbosity)
| """
TODO
"""
__docformat__ = 'restructuredtext'
import intrinsic_volumes, rft
from neuroimaging.testing import Tester
test = Tester().test
bench = Tester().bench
| Fix test funcs in algorithms packaging. | Fix test funcs in algorithms packaging. | Python | bsd-3-clause | musically-ut/statsmodels,bsipocz/statsmodels,hlin117/statsmodels,waynenilsen/statsmodels,statsmodels/statsmodels,bzero/statsmodels,pprett/statsmodels,yl565/statsmodels,ChadFulton/statsmodels,musically-ut/statsmodels,pprett/statsmodels,adammenges/statsmodels,kiyoto/statsmodels,bashtage/statsmodels,alekz112/statsmodels,s... | """
TODO
"""
__docformat__ = 'restructuredtext'
import intrinsic_volumes, rft
def test(level=1, verbosity=1, flags=[]):
from neuroimaging.utils.testutils import set_flags
set_flags(flags)
from neuroimaging.testing import *
return NumpyTest().test(level, verbosity)
Fix test funcs in algorithms packagin... | """
TODO
"""
__docformat__ = 'restructuredtext'
import intrinsic_volumes, rft
from neuroimaging.testing import Tester
test = Tester().test
bench = Tester().bench
| <commit_before>"""
TODO
"""
__docformat__ = 'restructuredtext'
import intrinsic_volumes, rft
def test(level=1, verbosity=1, flags=[]):
from neuroimaging.utils.testutils import set_flags
set_flags(flags)
from neuroimaging.testing import *
return NumpyTest().test(level, verbosity)
<commit_msg>Fix test f... | """
TODO
"""
__docformat__ = 'restructuredtext'
import intrinsic_volumes, rft
from neuroimaging.testing import Tester
test = Tester().test
bench = Tester().bench
| """
TODO
"""
__docformat__ = 'restructuredtext'
import intrinsic_volumes, rft
def test(level=1, verbosity=1, flags=[]):
from neuroimaging.utils.testutils import set_flags
set_flags(flags)
from neuroimaging.testing import *
return NumpyTest().test(level, verbosity)
Fix test funcs in algorithms packagin... | <commit_before>"""
TODO
"""
__docformat__ = 'restructuredtext'
import intrinsic_volumes, rft
def test(level=1, verbosity=1, flags=[]):
from neuroimaging.utils.testutils import set_flags
set_flags(flags)
from neuroimaging.testing import *
return NumpyTest().test(level, verbosity)
<commit_msg>Fix test f... |
57cbab12a2a6d7e439fca86640ab9c721fbcc62d | python/xchainer/testing/array.py | python/xchainer/testing/array.py | import numpy.testing
import xchainer
# NumPy-like assertion functions that accept both NumPy and xChainer arrays
def assert_array_equal(x, y, rtol=1e-7, atol=0, err_msg='', verbose=True):
"""Raises an AssertionError if two array_like objects are not equal.
Args:
x(numpy.ndarray or xchainer.Array):... | import pytest
import numpy.testing
import xchainer
# NumPy-like assertion functions that accept both NumPy and xChainer arrays
def assert_array_equal(x, y, rtol=1e-7, atol=0, err_msg='', verbose=True):
"""Raises an AssertionError if two array_like objects are not equal.
Args:
x(numpy.ndarray or xc... | Add strides and is_grad_required() check | Add strides and is_grad_required() check
| Python | mit | wkentaro/chainer,hvy/chainer,pfnet/chainer,ktnyt/chainer,jnishi/chainer,ktnyt/chainer,ktnyt/chainer,chainer/chainer,okuta/chainer,wkentaro/chainer,okuta/chainer,keisuke-umezawa/chainer,wkentaro/chainer,okuta/chainer,hvy/chainer,jnishi/chainer,jnishi/chainer,niboshi/chainer,tkerola/chainer,chainer/chainer,keisuke-umezaw... | import numpy.testing
import xchainer
# NumPy-like assertion functions that accept both NumPy and xChainer arrays
def assert_array_equal(x, y, rtol=1e-7, atol=0, err_msg='', verbose=True):
"""Raises an AssertionError if two array_like objects are not equal.
Args:
x(numpy.ndarray or xchainer.Array):... | import pytest
import numpy.testing
import xchainer
# NumPy-like assertion functions that accept both NumPy and xChainer arrays
def assert_array_equal(x, y, rtol=1e-7, atol=0, err_msg='', verbose=True):
"""Raises an AssertionError if two array_like objects are not equal.
Args:
x(numpy.ndarray or xc... | <commit_before>import numpy.testing
import xchainer
# NumPy-like assertion functions that accept both NumPy and xChainer arrays
def assert_array_equal(x, y, rtol=1e-7, atol=0, err_msg='', verbose=True):
"""Raises an AssertionError if two array_like objects are not equal.
Args:
x(numpy.ndarray or x... | import pytest
import numpy.testing
import xchainer
# NumPy-like assertion functions that accept both NumPy and xChainer arrays
def assert_array_equal(x, y, rtol=1e-7, atol=0, err_msg='', verbose=True):
"""Raises an AssertionError if two array_like objects are not equal.
Args:
x(numpy.ndarray or xc... | import numpy.testing
import xchainer
# NumPy-like assertion functions that accept both NumPy and xChainer arrays
def assert_array_equal(x, y, rtol=1e-7, atol=0, err_msg='', verbose=True):
"""Raises an AssertionError if two array_like objects are not equal.
Args:
x(numpy.ndarray or xchainer.Array):... | <commit_before>import numpy.testing
import xchainer
# NumPy-like assertion functions that accept both NumPy and xChainer arrays
def assert_array_equal(x, y, rtol=1e-7, atol=0, err_msg='', verbose=True):
"""Raises an AssertionError if two array_like objects are not equal.
Args:
x(numpy.ndarray or x... |
90f80bf6dd8a6fe0b15f802465cdcf759bd7b8ff | simplespamblocker/forms.py | simplespamblocker/forms.py | # -*- coding: utf-8 -*-
import re
from django import forms
class ValidRegexField(forms.CharField):
def clean(self, value):
value = super(ValidRegexField, self).clean(value)
if value:
try:
re.compile(value)
except re.error as e:
raise forms.V... | # -*- coding: utf-8 -*-
import re
from django import forms
class ValidRegexField(forms.CharField):
def clean(self, value):
value = super(ValidRegexField, self).clean(value)
if value:
try:
re.compile(value)
except re.error, e:
raise forms.Val... | Fix syntax error for python 2.5 | Fix syntax error for python 2.5
| Python | bsd-3-clause | moqada/django-simple-spam-blocker | # -*- coding: utf-8 -*-
import re
from django import forms
class ValidRegexField(forms.CharField):
def clean(self, value):
value = super(ValidRegexField, self).clean(value)
if value:
try:
re.compile(value)
except re.error as e:
raise forms.V... | # -*- coding: utf-8 -*-
import re
from django import forms
class ValidRegexField(forms.CharField):
def clean(self, value):
value = super(ValidRegexField, self).clean(value)
if value:
try:
re.compile(value)
except re.error, e:
raise forms.Val... | <commit_before># -*- coding: utf-8 -*-
import re
from django import forms
class ValidRegexField(forms.CharField):
def clean(self, value):
value = super(ValidRegexField, self).clean(value)
if value:
try:
re.compile(value)
except re.error as e:
... | # -*- coding: utf-8 -*-
import re
from django import forms
class ValidRegexField(forms.CharField):
def clean(self, value):
value = super(ValidRegexField, self).clean(value)
if value:
try:
re.compile(value)
except re.error, e:
raise forms.Val... | # -*- coding: utf-8 -*-
import re
from django import forms
class ValidRegexField(forms.CharField):
def clean(self, value):
value = super(ValidRegexField, self).clean(value)
if value:
try:
re.compile(value)
except re.error as e:
raise forms.V... | <commit_before># -*- coding: utf-8 -*-
import re
from django import forms
class ValidRegexField(forms.CharField):
def clean(self, value):
value = super(ValidRegexField, self).clean(value)
if value:
try:
re.compile(value)
except re.error as e:
... |
27967818b58b2630a6282999e7b39af618716f91 | scheduler.py | scheduler.py | import logging
from apscheduler.schedulers.blocking import BlockingScheduler
from raven.base import Client as RavenClient
import warner
import archiver
import announcer
import flagger
from config import Config
_config = Config()
raven_client = RavenClient()
# When testing changes, set the "TEST_SCHEDULE" envvar to... | import logging
from apscheduler.schedulers.blocking import BlockingScheduler
from raven.base import Client as RavenClient
import warner
import archiver
import announcer
import flagger
from config import Config
_config = Config()
raven_client = RavenClient()
# When testing changes, set the "TEST_SCHEDULE" envvar to... | Use RUN_ONCE to only run the destalinate job once immediately | Use RUN_ONCE to only run the destalinate job once immediately
| Python | apache-2.0 | TheConnMan/destalinator,TheConnMan/destalinator,royrapoport/destalinator,randsleadershipslack/destalinator,royrapoport/destalinator,randsleadershipslack/destalinator | import logging
from apscheduler.schedulers.blocking import BlockingScheduler
from raven.base import Client as RavenClient
import warner
import archiver
import announcer
import flagger
from config import Config
_config = Config()
raven_client = RavenClient()
# When testing changes, set the "TEST_SCHEDULE" envvar to... | import logging
from apscheduler.schedulers.blocking import BlockingScheduler
from raven.base import Client as RavenClient
import warner
import archiver
import announcer
import flagger
from config import Config
_config = Config()
raven_client = RavenClient()
# When testing changes, set the "TEST_SCHEDULE" envvar to... | <commit_before>import logging
from apscheduler.schedulers.blocking import BlockingScheduler
from raven.base import Client as RavenClient
import warner
import archiver
import announcer
import flagger
from config import Config
_config = Config()
raven_client = RavenClient()
# When testing changes, set the "TEST_SCHE... | import logging
from apscheduler.schedulers.blocking import BlockingScheduler
from raven.base import Client as RavenClient
import warner
import archiver
import announcer
import flagger
from config import Config
_config = Config()
raven_client = RavenClient()
# When testing changes, set the "TEST_SCHEDULE" envvar to... | import logging
from apscheduler.schedulers.blocking import BlockingScheduler
from raven.base import Client as RavenClient
import warner
import archiver
import announcer
import flagger
from config import Config
_config = Config()
raven_client = RavenClient()
# When testing changes, set the "TEST_SCHEDULE" envvar to... | <commit_before>import logging
from apscheduler.schedulers.blocking import BlockingScheduler
from raven.base import Client as RavenClient
import warner
import archiver
import announcer
import flagger
from config import Config
_config = Config()
raven_client = RavenClient()
# When testing changes, set the "TEST_SCHE... |
0e07e0127e359cbf6c97d6f470fb51d15d7544bc | scripts/utils.py | scripts/utils.py | #!/usr/bin/env python3
# Touhou Community Reliant Automatic Patcher
# Scripts
#
# ----
#
"""Utility functions shared among all the scripts."""
import json
import os
# Default parameters for JSON input and output
def json_load(fn):
with open(fn, 'r', encoding='utf-8') as file:
return json.load(file)
def... | #!/usr/bin/env python3
# Touhou Community Reliant Automatic Patcher
# Scripts
#
# ----
#
"""Utility functions shared among all the scripts."""
import json
import os
json_dump_params = {
'ensure_ascii': False,
'indent': '\t',
'separators': (',', ': '),
'sort_keys': True
}
# Default parameters for JSO... | Move JSON dump parameters to a global dictionary. | scripts: Move JSON dump parameters to a global dictionary.
| Python | unlicense | VBChunguk/thcrap,VBChunguk/thcrap,thpatch/thcrap,VBChunguk/thcrap,thpatch/thcrap,thpatch/thcrap,thpatch/thcrap,thpatch/thcrap | #!/usr/bin/env python3
# Touhou Community Reliant Automatic Patcher
# Scripts
#
# ----
#
"""Utility functions shared among all the scripts."""
import json
import os
# Default parameters for JSON input and output
def json_load(fn):
with open(fn, 'r', encoding='utf-8') as file:
return json.load(file)
def... | #!/usr/bin/env python3
# Touhou Community Reliant Automatic Patcher
# Scripts
#
# ----
#
"""Utility functions shared among all the scripts."""
import json
import os
json_dump_params = {
'ensure_ascii': False,
'indent': '\t',
'separators': (',', ': '),
'sort_keys': True
}
# Default parameters for JSO... | <commit_before>#!/usr/bin/env python3
# Touhou Community Reliant Automatic Patcher
# Scripts
#
# ----
#
"""Utility functions shared among all the scripts."""
import json
import os
# Default parameters for JSON input and output
def json_load(fn):
with open(fn, 'r', encoding='utf-8') as file:
return json.l... | #!/usr/bin/env python3
# Touhou Community Reliant Automatic Patcher
# Scripts
#
# ----
#
"""Utility functions shared among all the scripts."""
import json
import os
json_dump_params = {
'ensure_ascii': False,
'indent': '\t',
'separators': (',', ': '),
'sort_keys': True
}
# Default parameters for JSO... | #!/usr/bin/env python3
# Touhou Community Reliant Automatic Patcher
# Scripts
#
# ----
#
"""Utility functions shared among all the scripts."""
import json
import os
# Default parameters for JSON input and output
def json_load(fn):
with open(fn, 'r', encoding='utf-8') as file:
return json.load(file)
def... | <commit_before>#!/usr/bin/env python3
# Touhou Community Reliant Automatic Patcher
# Scripts
#
# ----
#
"""Utility functions shared among all the scripts."""
import json
import os
# Default parameters for JSON input and output
def json_load(fn):
with open(fn, 'r', encoding='utf-8') as file:
return json.l... |
66aa43a5e8963c440261128e5b317679d01917e6 | server/routes.py | server/routes.py | from __init__ import app, db
from subprocess import call
from models import User
from flask import request
from flask import abort
from flask import jsonify
@app.route('/register', methods=['POST'])
def register():
if not request.json or not 'guid' in request.json:
abort(400) # Malformed Packet
guid =... | from __init__ import app, db
from subprocess import call
from models import User
from flask import request
from flask import abort
from flask import jsonify
@app.route('/register', methods=['POST'])
def register():
if not request.json or not 'guid' in request.json:
abort(400) # Malformed Packet
guid =... | Return header fix and msg_to route | Return header fix and msg_to route
| Python | mit | stevex86/RandomActsOfKindness,stevex86/RandomActsOfKindness | from __init__ import app, db
from subprocess import call
from models import User
from flask import request
from flask import abort
from flask import jsonify
@app.route('/register', methods=['POST'])
def register():
if not request.json or not 'guid' in request.json:
abort(400) # Malformed Packet
guid =... | from __init__ import app, db
from subprocess import call
from models import User
from flask import request
from flask import abort
from flask import jsonify
@app.route('/register', methods=['POST'])
def register():
if not request.json or not 'guid' in request.json:
abort(400) # Malformed Packet
guid =... | <commit_before>from __init__ import app, db
from subprocess import call
from models import User
from flask import request
from flask import abort
from flask import jsonify
@app.route('/register', methods=['POST'])
def register():
if not request.json or not 'guid' in request.json:
abort(400) # Malformed Pa... | from __init__ import app, db
from subprocess import call
from models import User
from flask import request
from flask import abort
from flask import jsonify
@app.route('/register', methods=['POST'])
def register():
if not request.json or not 'guid' in request.json:
abort(400) # Malformed Packet
guid =... | from __init__ import app, db
from subprocess import call
from models import User
from flask import request
from flask import abort
from flask import jsonify
@app.route('/register', methods=['POST'])
def register():
if not request.json or not 'guid' in request.json:
abort(400) # Malformed Packet
guid =... | <commit_before>from __init__ import app, db
from subprocess import call
from models import User
from flask import request
from flask import abort
from flask import jsonify
@app.route('/register', methods=['POST'])
def register():
if not request.json or not 'guid' in request.json:
abort(400) # Malformed Pa... |
550fedc513aab5feec3aaf43a49df5082a1e5dda | incuna_test_utils/testcases/urls.py | incuna_test_utils/testcases/urls.py | import warnings
from django.core.urlresolvers import resolve, reverse
from django.test import TestCase
class URLsMixinBase(object):
"""A TestCase Mixin with a check_url helper method for testing urls"""
def check_url(self, view, expected_url, url_name,
url_args=None, url_kwargs=None):
... | import warnings
from django.core.urlresolvers import resolve, reverse
from django.test import TestCase
class URLTestMixin(object):
def assert_url_matches_view(self, view, expected_url, url_name,
url_args=None, url_kwargs=None):
"""
Assert a view's url is correctly ... | Add simple URLTestMixin and URLTestCase classes | Add simple URLTestMixin and URLTestCase classes
* Remove old mixins and testcases
| Python | bsd-2-clause | incuna/incuna-test-utils,incuna/incuna-test-utils | import warnings
from django.core.urlresolvers import resolve, reverse
from django.test import TestCase
class URLsMixinBase(object):
"""A TestCase Mixin with a check_url helper method for testing urls"""
def check_url(self, view, expected_url, url_name,
url_args=None, url_kwargs=None):
... | import warnings
from django.core.urlresolvers import resolve, reverse
from django.test import TestCase
class URLTestMixin(object):
def assert_url_matches_view(self, view, expected_url, url_name,
url_args=None, url_kwargs=None):
"""
Assert a view's url is correctly ... | <commit_before>import warnings
from django.core.urlresolvers import resolve, reverse
from django.test import TestCase
class URLsMixinBase(object):
"""A TestCase Mixin with a check_url helper method for testing urls"""
def check_url(self, view, expected_url, url_name,
url_args=None, url_kwa... | import warnings
from django.core.urlresolvers import resolve, reverse
from django.test import TestCase
class URLTestMixin(object):
def assert_url_matches_view(self, view, expected_url, url_name,
url_args=None, url_kwargs=None):
"""
Assert a view's url is correctly ... | import warnings
from django.core.urlresolvers import resolve, reverse
from django.test import TestCase
class URLsMixinBase(object):
"""A TestCase Mixin with a check_url helper method for testing urls"""
def check_url(self, view, expected_url, url_name,
url_args=None, url_kwargs=None):
... | <commit_before>import warnings
from django.core.urlresolvers import resolve, reverse
from django.test import TestCase
class URLsMixinBase(object):
"""A TestCase Mixin with a check_url helper method for testing urls"""
def check_url(self, view, expected_url, url_name,
url_args=None, url_kwa... |
e4ab52fc36b9d4e0805fb134d43bf63fb73a62d8 | shcol/cli.py | shcol/cli.py | from __future__ import print_function
import argparse
import shcol
__all__ = ['main']
def main(cmd_args):
parser = argparse.ArgumentParser(
description='Generate columnized output for given string items.',
version='shcol {}'.format(shcol.__version__)
)
parser.add_argument('items', nargs='... | from __future__ import print_function
import argparse
import shcol
import sys
__all__ = ['main']
def main(cmd_args):
parser = argparse.ArgumentParser(
description='Generate columnized output for given string items.',
version='shcol {}'.format(shcol.__version__)
)
parser.add_argument(
... | Read from Stdin when no items are passed. | Read from Stdin when no items are passed.
| Python | bsd-2-clause | seblin/shcol | from __future__ import print_function
import argparse
import shcol
__all__ = ['main']
def main(cmd_args):
parser = argparse.ArgumentParser(
description='Generate columnized output for given string items.',
version='shcol {}'.format(shcol.__version__)
)
parser.add_argument('items', nargs='... | from __future__ import print_function
import argparse
import shcol
import sys
__all__ = ['main']
def main(cmd_args):
parser = argparse.ArgumentParser(
description='Generate columnized output for given string items.',
version='shcol {}'.format(shcol.__version__)
)
parser.add_argument(
... | <commit_before>from __future__ import print_function
import argparse
import shcol
__all__ = ['main']
def main(cmd_args):
parser = argparse.ArgumentParser(
description='Generate columnized output for given string items.',
version='shcol {}'.format(shcol.__version__)
)
parser.add_argument('... | from __future__ import print_function
import argparse
import shcol
import sys
__all__ = ['main']
def main(cmd_args):
parser = argparse.ArgumentParser(
description='Generate columnized output for given string items.',
version='shcol {}'.format(shcol.__version__)
)
parser.add_argument(
... | from __future__ import print_function
import argparse
import shcol
__all__ = ['main']
def main(cmd_args):
parser = argparse.ArgumentParser(
description='Generate columnized output for given string items.',
version='shcol {}'.format(shcol.__version__)
)
parser.add_argument('items', nargs='... | <commit_before>from __future__ import print_function
import argparse
import shcol
__all__ = ['main']
def main(cmd_args):
parser = argparse.ArgumentParser(
description='Generate columnized output for given string items.',
version='shcol {}'.format(shcol.__version__)
)
parser.add_argument('... |
7a20ee42aae2d2a6f5766ab4ec1ee4ef33fe14c8 | madam_rest/__init__.py | madam_rest/__init__.py | from flask import Flask
from madam import Madam
app = Flask(__name__)
app.from_object('config')
asset_manager = Madam()
asset_storage = app.config['ASSET_STORAGE']
from madam_rest import views
| import madam
from flask import Flask
app = Flask(__name__)
app.from_object('config')
asset_manager = madam.Madam()
asset_storage = madam.core.ShelveStorage(app.config['ASSET_STORAGE_PATH'])
from madam_rest import views
| Create shelve asset storage by default. | Create shelve asset storage by default.
| Python | agpl-3.0 | eseifert/madam-rest | from flask import Flask
from madam import Madam
app = Flask(__name__)
app.from_object('config')
asset_manager = Madam()
asset_storage = app.config['ASSET_STORAGE']
from madam_rest import views
Create shelve asset storage by default. | import madam
from flask import Flask
app = Flask(__name__)
app.from_object('config')
asset_manager = madam.Madam()
asset_storage = madam.core.ShelveStorage(app.config['ASSET_STORAGE_PATH'])
from madam_rest import views
| <commit_before>from flask import Flask
from madam import Madam
app = Flask(__name__)
app.from_object('config')
asset_manager = Madam()
asset_storage = app.config['ASSET_STORAGE']
from madam_rest import views
<commit_msg>Create shelve asset storage by default.<commit_after> | import madam
from flask import Flask
app = Flask(__name__)
app.from_object('config')
asset_manager = madam.Madam()
asset_storage = madam.core.ShelveStorage(app.config['ASSET_STORAGE_PATH'])
from madam_rest import views
| from flask import Flask
from madam import Madam
app = Flask(__name__)
app.from_object('config')
asset_manager = Madam()
asset_storage = app.config['ASSET_STORAGE']
from madam_rest import views
Create shelve asset storage by default.import madam
from flask import Flask
app = Flask(__name__)
app.from_object('config')... | <commit_before>from flask import Flask
from madam import Madam
app = Flask(__name__)
app.from_object('config')
asset_manager = Madam()
asset_storage = app.config['ASSET_STORAGE']
from madam_rest import views
<commit_msg>Create shelve asset storage by default.<commit_after>import madam
from flask import Flask
app = ... |
5b931f92b0f8f65306ced9cf049e2d1089c43860 | fantail/tests/test_staticsite.py | fantail/tests/test_staticsite.py | """
Tests for staticsite.py - the static site generator
"""
import os.path
import pytest
from fantail.staticsite import StaticSite
def test_init(tmpdir, caplog):
# Verify path does not exist
path = str(tmpdir.join('test-site'))
assert not os.path.isdir(path)
# Create the site
site = StaticSite(p... | """
Tests for staticsite.py - the static site generator
"""
import os.path
import pytest
from fantail.staticsite import StaticSite
def test_init(tmpdir, caplog):
# Verify path does not exist
path = str(tmpdir.join('test-site'))
assert not os.path.isdir(path)
# Create the site
site = StaticSite(p... | Remove assertion in test that should not have made it in | Remove assertion in test that should not have made it in
| Python | bsd-2-clause | sjkingo/fantail,sjkingo/fantail,sjkingo/fantail | """
Tests for staticsite.py - the static site generator
"""
import os.path
import pytest
from fantail.staticsite import StaticSite
def test_init(tmpdir, caplog):
# Verify path does not exist
path = str(tmpdir.join('test-site'))
assert not os.path.isdir(path)
# Create the site
site = StaticSite(p... | """
Tests for staticsite.py - the static site generator
"""
import os.path
import pytest
from fantail.staticsite import StaticSite
def test_init(tmpdir, caplog):
# Verify path does not exist
path = str(tmpdir.join('test-site'))
assert not os.path.isdir(path)
# Create the site
site = StaticSite(p... | <commit_before>"""
Tests for staticsite.py - the static site generator
"""
import os.path
import pytest
from fantail.staticsite import StaticSite
def test_init(tmpdir, caplog):
# Verify path does not exist
path = str(tmpdir.join('test-site'))
assert not os.path.isdir(path)
# Create the site
site... | """
Tests for staticsite.py - the static site generator
"""
import os.path
import pytest
from fantail.staticsite import StaticSite
def test_init(tmpdir, caplog):
# Verify path does not exist
path = str(tmpdir.join('test-site'))
assert not os.path.isdir(path)
# Create the site
site = StaticSite(p... | """
Tests for staticsite.py - the static site generator
"""
import os.path
import pytest
from fantail.staticsite import StaticSite
def test_init(tmpdir, caplog):
# Verify path does not exist
path = str(tmpdir.join('test-site'))
assert not os.path.isdir(path)
# Create the site
site = StaticSite(p... | <commit_before>"""
Tests for staticsite.py - the static site generator
"""
import os.path
import pytest
from fantail.staticsite import StaticSite
def test_init(tmpdir, caplog):
# Verify path does not exist
path = str(tmpdir.join('test-site'))
assert not os.path.isdir(path)
# Create the site
site... |
d67257dfe124d74d40d1dbe8bf881df27a07bf2c | needlestack/connections.py | needlestack/connections.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals, absolute_import
from threading import local
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from . import utils
class ConnectionManager(object):
def __init__(self):
self._connections = local()
... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals, absolute_import
from threading import local
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from . import utils
from . import base
class ConnectionManager(object):
def __init__(self):
self._connect... | Add helpers for obtain indexes to connection manager. | Add helpers for obtain indexes to connection manager.
| Python | bsd-3-clause | niwinz/needlestack | # -*- coding: utf-8 -*-
from __future__ import unicode_literals, absolute_import
from threading import local
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from . import utils
class ConnectionManager(object):
def __init__(self):
self._connections = local()
... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals, absolute_import
from threading import local
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from . import utils
from . import base
class ConnectionManager(object):
def __init__(self):
self._connect... | <commit_before># -*- coding: utf-8 -*-
from __future__ import unicode_literals, absolute_import
from threading import local
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from . import utils
class ConnectionManager(object):
def __init__(self):
self._connections... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals, absolute_import
from threading import local
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from . import utils
from . import base
class ConnectionManager(object):
def __init__(self):
self._connect... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals, absolute_import
from threading import local
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from . import utils
class ConnectionManager(object):
def __init__(self):
self._connections = local()
... | <commit_before># -*- coding: utf-8 -*-
from __future__ import unicode_literals, absolute_import
from threading import local
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from . import utils
class ConnectionManager(object):
def __init__(self):
self._connections... |
a849544beed5b2ef717345c1de467382f95f804a | githubsetupircnotifications.py | githubsetupircnotifications.py | """
github-setup-irc-notifications - Configure all repositories in an organization
with irc notifications
"""
import argparse
import getpass
import sys
import github3
def main():
parser = argparse.ArgumentParser()
parser.add_argument('--username')
parser.add_argument('--password')
parser.add_argumen... | """
github-setup-irc-notifications - Configure all repositories in an organization
with irc notifications
"""
import argparse
import getpass
import sys
import github3
def main():
parser = argparse.ArgumentParser()
parser.add_argument('--username')
parser.add_argument('--password')
parser.add_argumen... | Add more events to listen to | Add more events to listen to
| Python | mit | kragniz/github-setup-irc-notifications | """
github-setup-irc-notifications - Configure all repositories in an organization
with irc notifications
"""
import argparse
import getpass
import sys
import github3
def main():
parser = argparse.ArgumentParser()
parser.add_argument('--username')
parser.add_argument('--password')
parser.add_argumen... | """
github-setup-irc-notifications - Configure all repositories in an organization
with irc notifications
"""
import argparse
import getpass
import sys
import github3
def main():
parser = argparse.ArgumentParser()
parser.add_argument('--username')
parser.add_argument('--password')
parser.add_argumen... | <commit_before>"""
github-setup-irc-notifications - Configure all repositories in an organization
with irc notifications
"""
import argparse
import getpass
import sys
import github3
def main():
parser = argparse.ArgumentParser()
parser.add_argument('--username')
parser.add_argument('--password')
par... | """
github-setup-irc-notifications - Configure all repositories in an organization
with irc notifications
"""
import argparse
import getpass
import sys
import github3
def main():
parser = argparse.ArgumentParser()
parser.add_argument('--username')
parser.add_argument('--password')
parser.add_argumen... | """
github-setup-irc-notifications - Configure all repositories in an organization
with irc notifications
"""
import argparse
import getpass
import sys
import github3
def main():
parser = argparse.ArgumentParser()
parser.add_argument('--username')
parser.add_argument('--password')
parser.add_argumen... | <commit_before>"""
github-setup-irc-notifications - Configure all repositories in an organization
with irc notifications
"""
import argparse
import getpass
import sys
import github3
def main():
parser = argparse.ArgumentParser()
parser.add_argument('--username')
parser.add_argument('--password')
par... |
777eeaf61c256f04031d87995b4bccd7a93f1182 | lg_mirror/test/test_mirror_scene.py | lg_mirror/test/test_mirror_scene.py | #!/usr/bin/env python
import rospy
from interactivespaces_msgs.msg import GenericMessage
DIRECTOR_MESSAGE = """
{
"description": "bogus",
"duration": 0,
"name": "test whatever",
"resource_uri": "bogus",
"slug": "test message",
"windows": [
{
"activity": "mirror",
"activity_config": {
... | #!/usr/bin/env python
import rospy
from interactivespaces_msgs.msg import GenericMessage
DIRECTOR_MESSAGE = """
{
"description": "bogus",
"duration": 0,
"name": "test whatever",
"resource_uri": "bogus",
"slug": "test message",
"windows": [
{
"activity": "mirror",
"activity_config": {
... | Update mirror test scene for single activity | Update mirror test scene for single activity
| Python | apache-2.0 | EndPointCorp/lg_ros_nodes,EndPointCorp/lg_ros_nodes,EndPointCorp/lg_ros_nodes,EndPointCorp/lg_ros_nodes,EndPointCorp/lg_ros_nodes,EndPointCorp/lg_ros_nodes | #!/usr/bin/env python
import rospy
from interactivespaces_msgs.msg import GenericMessage
DIRECTOR_MESSAGE = """
{
"description": "bogus",
"duration": 0,
"name": "test whatever",
"resource_uri": "bogus",
"slug": "test message",
"windows": [
{
"activity": "mirror",
"activity_config": {
... | #!/usr/bin/env python
import rospy
from interactivespaces_msgs.msg import GenericMessage
DIRECTOR_MESSAGE = """
{
"description": "bogus",
"duration": 0,
"name": "test whatever",
"resource_uri": "bogus",
"slug": "test message",
"windows": [
{
"activity": "mirror",
"activity_config": {
... | <commit_before>#!/usr/bin/env python
import rospy
from interactivespaces_msgs.msg import GenericMessage
DIRECTOR_MESSAGE = """
{
"description": "bogus",
"duration": 0,
"name": "test whatever",
"resource_uri": "bogus",
"slug": "test message",
"windows": [
{
"activity": "mirror",
"activity_con... | #!/usr/bin/env python
import rospy
from interactivespaces_msgs.msg import GenericMessage
DIRECTOR_MESSAGE = """
{
"description": "bogus",
"duration": 0,
"name": "test whatever",
"resource_uri": "bogus",
"slug": "test message",
"windows": [
{
"activity": "mirror",
"activity_config": {
... | #!/usr/bin/env python
import rospy
from interactivespaces_msgs.msg import GenericMessage
DIRECTOR_MESSAGE = """
{
"description": "bogus",
"duration": 0,
"name": "test whatever",
"resource_uri": "bogus",
"slug": "test message",
"windows": [
{
"activity": "mirror",
"activity_config": {
... | <commit_before>#!/usr/bin/env python
import rospy
from interactivespaces_msgs.msg import GenericMessage
DIRECTOR_MESSAGE = """
{
"description": "bogus",
"duration": 0,
"name": "test whatever",
"resource_uri": "bogus",
"slug": "test message",
"windows": [
{
"activity": "mirror",
"activity_con... |
13daca3feedd8df8803904a60199a9dfa47dad8d | fuel_test/cobbler/test_single.py | fuel_test/cobbler/test_single.py | import unittest
from fuel_test.cobbler.cobbler_test_case import CobblerTestCase
from fuel_test.manifest import Manifest
from fuel_test.settings import OPENSTACK_SNAPSHOT
class SingleTestCase(CobblerTestCase):
def test_single(self):
Manifest().write_openstack_single_manifest(
remote=self.remote(... | import unittest
from fuel_test.cobbler.cobbler_test_case import CobblerTestCase
from fuel_test.manifest import Manifest
from fuel_test.settings import OPENSTACK_SNAPSHOT
class SingleTestCase(CobblerTestCase):
def test_single(self):
Manifest().write_openstack_single_manifest(
remote=self.remote(... | Switch off quantum at single node in test | Switch off quantum at single node in test
| Python | apache-2.0 | huntxu/fuel-library,eayunstack/fuel-library,eayunstack/fuel-library,SmartInfrastructures/fuel-library-dev,SmartInfrastructures/fuel-library-dev,stackforge/fuel-library,huntxu/fuel-library,stackforge/fuel-library,zhaochao/fuel-library,xarses/fuel-library,SmartInfrastructures/fuel-library-dev,ddepaoli3/fuel-library-dev,z... | import unittest
from fuel_test.cobbler.cobbler_test_case import CobblerTestCase
from fuel_test.manifest import Manifest
from fuel_test.settings import OPENSTACK_SNAPSHOT
class SingleTestCase(CobblerTestCase):
def test_single(self):
Manifest().write_openstack_single_manifest(
remote=self.remote(... | import unittest
from fuel_test.cobbler.cobbler_test_case import CobblerTestCase
from fuel_test.manifest import Manifest
from fuel_test.settings import OPENSTACK_SNAPSHOT
class SingleTestCase(CobblerTestCase):
def test_single(self):
Manifest().write_openstack_single_manifest(
remote=self.remote(... | <commit_before>import unittest
from fuel_test.cobbler.cobbler_test_case import CobblerTestCase
from fuel_test.manifest import Manifest
from fuel_test.settings import OPENSTACK_SNAPSHOT
class SingleTestCase(CobblerTestCase):
def test_single(self):
Manifest().write_openstack_single_manifest(
remo... | import unittest
from fuel_test.cobbler.cobbler_test_case import CobblerTestCase
from fuel_test.manifest import Manifest
from fuel_test.settings import OPENSTACK_SNAPSHOT
class SingleTestCase(CobblerTestCase):
def test_single(self):
Manifest().write_openstack_single_manifest(
remote=self.remote(... | import unittest
from fuel_test.cobbler.cobbler_test_case import CobblerTestCase
from fuel_test.manifest import Manifest
from fuel_test.settings import OPENSTACK_SNAPSHOT
class SingleTestCase(CobblerTestCase):
def test_single(self):
Manifest().write_openstack_single_manifest(
remote=self.remote(... | <commit_before>import unittest
from fuel_test.cobbler.cobbler_test_case import CobblerTestCase
from fuel_test.manifest import Manifest
from fuel_test.settings import OPENSTACK_SNAPSHOT
class SingleTestCase(CobblerTestCase):
def test_single(self):
Manifest().write_openstack_single_manifest(
remo... |
4595138de6d84698404e101031c6d2242753e5f4 | views.py | views.py | from django.http import HttpResponse
from .models import Notification
def create_notification(request):
topic = request.GET.get('topic', None)
resource_id = request.GET.get('id', None)
if topic is None:
return HttpResponse(
'<h1>400 Bad Request.</h1>Missing parameter topic',
... | from django.conf import settings
from django.http import HttpResponse
from .models import Notification
def create_notification(request):
topic = request.GET.get('topic', None)
resource_id = request.GET.get('id', None)
if topic is None:
return HttpResponse(
'<h1>400 Bad Request.</h1>M... | Add aync notification processing support | Add aync notification processing support
| Python | isc | asermax/django-mercadopago | from django.http import HttpResponse
from .models import Notification
def create_notification(request):
topic = request.GET.get('topic', None)
resource_id = request.GET.get('id', None)
if topic is None:
return HttpResponse(
'<h1>400 Bad Request.</h1>Missing parameter topic',
... | from django.conf import settings
from django.http import HttpResponse
from .models import Notification
def create_notification(request):
topic = request.GET.get('topic', None)
resource_id = request.GET.get('id', None)
if topic is None:
return HttpResponse(
'<h1>400 Bad Request.</h1>M... | <commit_before>from django.http import HttpResponse
from .models import Notification
def create_notification(request):
topic = request.GET.get('topic', None)
resource_id = request.GET.get('id', None)
if topic is None:
return HttpResponse(
'<h1>400 Bad Request.</h1>Missing parameter t... | from django.conf import settings
from django.http import HttpResponse
from .models import Notification
def create_notification(request):
topic = request.GET.get('topic', None)
resource_id = request.GET.get('id', None)
if topic is None:
return HttpResponse(
'<h1>400 Bad Request.</h1>M... | from django.http import HttpResponse
from .models import Notification
def create_notification(request):
topic = request.GET.get('topic', None)
resource_id = request.GET.get('id', None)
if topic is None:
return HttpResponse(
'<h1>400 Bad Request.</h1>Missing parameter topic',
... | <commit_before>from django.http import HttpResponse
from .models import Notification
def create_notification(request):
topic = request.GET.get('topic', None)
resource_id = request.GET.get('id', None)
if topic is None:
return HttpResponse(
'<h1>400 Bad Request.</h1>Missing parameter t... |
ebe91245ad4688346d716aaae5e29a409055c6c6 | python-package/src/minerva/storage/__init__.py | python-package/src/minerva/storage/__init__.py | """
Provides access and a location for storage class logic like 'trend',
'attribute', etc..
"""
__docformat__ = "restructuredtext en"
__copyright__ = """
Copyright (C) 2008-2013 Hendrikx-ITC B.V.
Distributed under the terms of the GNU General Public License as published by
the Free Software Foundation; either version... | """
Provides access and a location for storage class logic like 'trend',
'attribute', etc..
"""
__docformat__ = "restructuredtext en"
__copyright__ = """
Copyright (C) 2008-2013 Hendrikx-ITC B.V.
Distributed under the terms of the GNU General Public License as published by
the Free Software Foundation; either version... | Remove import of delta module. | Remove import of delta module.
| Python | agpl-3.0 | hendrikx-itc/minerva,hendrikx-itc/minerva | """
Provides access and a location for storage class logic like 'trend',
'attribute', etc..
"""
__docformat__ = "restructuredtext en"
__copyright__ = """
Copyright (C) 2008-2013 Hendrikx-ITC B.V.
Distributed under the terms of the GNU General Public License as published by
the Free Software Foundation; either version... | """
Provides access and a location for storage class logic like 'trend',
'attribute', etc..
"""
__docformat__ = "restructuredtext en"
__copyright__ = """
Copyright (C) 2008-2013 Hendrikx-ITC B.V.
Distributed under the terms of the GNU General Public License as published by
the Free Software Foundation; either version... | <commit_before>"""
Provides access and a location for storage class logic like 'trend',
'attribute', etc..
"""
__docformat__ = "restructuredtext en"
__copyright__ = """
Copyright (C) 2008-2013 Hendrikx-ITC B.V.
Distributed under the terms of the GNU General Public License as published by
the Free Software Foundation;... | """
Provides access and a location for storage class logic like 'trend',
'attribute', etc..
"""
__docformat__ = "restructuredtext en"
__copyright__ = """
Copyright (C) 2008-2013 Hendrikx-ITC B.V.
Distributed under the terms of the GNU General Public License as published by
the Free Software Foundation; either version... | """
Provides access and a location for storage class logic like 'trend',
'attribute', etc..
"""
__docformat__ = "restructuredtext en"
__copyright__ = """
Copyright (C) 2008-2013 Hendrikx-ITC B.V.
Distributed under the terms of the GNU General Public License as published by
the Free Software Foundation; either version... | <commit_before>"""
Provides access and a location for storage class logic like 'trend',
'attribute', etc..
"""
__docformat__ = "restructuredtext en"
__copyright__ = """
Copyright (C) 2008-2013 Hendrikx-ITC B.V.
Distributed under the terms of the GNU General Public License as published by
the Free Software Foundation;... |
f76a766f7be4936d34dc14e65a0f1fd974055b20 | fireplace/cards/tgt/paladin.py | fireplace/cards/tgt/paladin.py | from ..utils import *
##
# Minions
# Murloc Knight
class AT_076:
inspire = Summon(CONTROLLER, RandomMurloc())
# Eadric the Pure
class AT_081:
play = Buff(ALL_MINIONS, "AT_081e")
##
# Spells
# Seal of Champions
class AT_074:
play = Buff(TARGET, "AT_074e2")
##
# Secrets
# Competitive Spirit
class A... | from ..utils import *
##
# Minions
# Murloc Knight
class AT_076:
inspire = Summon(CONTROLLER, RandomMurloc())
# Eadric the Pure
class AT_081:
play = Buff(ENEMY_MINIONS, "AT_081e")
##
# Spells
# Seal of Champions
class AT_074:
play = Buff(TARGET, "AT_074e2")
##
# Secrets
# Competitive Spirit
class AT_073:
... | Fix Eadric the Pure's target selection | Fix Eadric the Pure's target selection
| Python | agpl-3.0 | liujimj/fireplace,beheh/fireplace,NightKev/fireplace,smallnamespace/fireplace,jleclanche/fireplace,amw2104/fireplace,oftc-ftw/fireplace,Meerkov/fireplace,Ragowit/fireplace,amw2104/fireplace,oftc-ftw/fireplace,Ragowit/fireplace,liujimj/fireplace,Meerkov/fireplace,smallnamespace/fireplace | from ..utils import *
##
# Minions
# Murloc Knight
class AT_076:
inspire = Summon(CONTROLLER, RandomMurloc())
# Eadric the Pure
class AT_081:
play = Buff(ALL_MINIONS, "AT_081e")
##
# Spells
# Seal of Champions
class AT_074:
play = Buff(TARGET, "AT_074e2")
##
# Secrets
# Competitive Spirit
class A... | from ..utils import *
##
# Minions
# Murloc Knight
class AT_076:
inspire = Summon(CONTROLLER, RandomMurloc())
# Eadric the Pure
class AT_081:
play = Buff(ENEMY_MINIONS, "AT_081e")
##
# Spells
# Seal of Champions
class AT_074:
play = Buff(TARGET, "AT_074e2")
##
# Secrets
# Competitive Spirit
class AT_073:
... | <commit_before>from ..utils import *
##
# Minions
# Murloc Knight
class AT_076:
inspire = Summon(CONTROLLER, RandomMurloc())
# Eadric the Pure
class AT_081:
play = Buff(ALL_MINIONS, "AT_081e")
##
# Spells
# Seal of Champions
class AT_074:
play = Buff(TARGET, "AT_074e2")
##
# Secrets
# Competitive... | from ..utils import *
##
# Minions
# Murloc Knight
class AT_076:
inspire = Summon(CONTROLLER, RandomMurloc())
# Eadric the Pure
class AT_081:
play = Buff(ENEMY_MINIONS, "AT_081e")
##
# Spells
# Seal of Champions
class AT_074:
play = Buff(TARGET, "AT_074e2")
##
# Secrets
# Competitive Spirit
class AT_073:
... | from ..utils import *
##
# Minions
# Murloc Knight
class AT_076:
inspire = Summon(CONTROLLER, RandomMurloc())
# Eadric the Pure
class AT_081:
play = Buff(ALL_MINIONS, "AT_081e")
##
# Spells
# Seal of Champions
class AT_074:
play = Buff(TARGET, "AT_074e2")
##
# Secrets
# Competitive Spirit
class A... | <commit_before>from ..utils import *
##
# Minions
# Murloc Knight
class AT_076:
inspire = Summon(CONTROLLER, RandomMurloc())
# Eadric the Pure
class AT_081:
play = Buff(ALL_MINIONS, "AT_081e")
##
# Spells
# Seal of Champions
class AT_074:
play = Buff(TARGET, "AT_074e2")
##
# Secrets
# Competitive... |
f7cc714a0ea6f9d33ac06c2460f8abbd5991e4ab | pi_gpio/handlers.py | pi_gpio/handlers.py | from flask.ext.restful import fields
from meta import BasicResource
from config.pins import PinManager
MANAGER = PinManager()
class Pin(BasicResource):
def __init__(self):
super(Pin, self).__init__()
self.fields = {
"num": fields.Integer,
"mode": fields.String,
... | from flask.ext.restful import fields
from meta import BasicResource
from config.pins import PinManager
MANAGER = PinManager()
class Pin(BasicResource):
def __init__(self):
super(Pin, self).__init__()
self.fields = {
"num": fields.Integer,
"mode": fields.String,
... | Add extra field to detail output | Add extra field to detail output
| Python | mit | thijstriemstra/Pi-GPIO-Server,projectweekend/Pi-GPIO-Server,projectweekend/Pi-GPIO-Server,thijstriemstra/Pi-GPIO-Server,projectweekend/Pi-GPIO-Server,thijstriemstra/Pi-GPIO-Server,thijstriemstra/Pi-GPIO-Server,projectweekend/Pi-GPIO-Server | from flask.ext.restful import fields
from meta import BasicResource
from config.pins import PinManager
MANAGER = PinManager()
class Pin(BasicResource):
def __init__(self):
super(Pin, self).__init__()
self.fields = {
"num": fields.Integer,
"mode": fields.String,
... | from flask.ext.restful import fields
from meta import BasicResource
from config.pins import PinManager
MANAGER = PinManager()
class Pin(BasicResource):
def __init__(self):
super(Pin, self).__init__()
self.fields = {
"num": fields.Integer,
"mode": fields.String,
... | <commit_before>from flask.ext.restful import fields
from meta import BasicResource
from config.pins import PinManager
MANAGER = PinManager()
class Pin(BasicResource):
def __init__(self):
super(Pin, self).__init__()
self.fields = {
"num": fields.Integer,
"mode": fields.Str... | from flask.ext.restful import fields
from meta import BasicResource
from config.pins import PinManager
MANAGER = PinManager()
class Pin(BasicResource):
def __init__(self):
super(Pin, self).__init__()
self.fields = {
"num": fields.Integer,
"mode": fields.String,
... | from flask.ext.restful import fields
from meta import BasicResource
from config.pins import PinManager
MANAGER = PinManager()
class Pin(BasicResource):
def __init__(self):
super(Pin, self).__init__()
self.fields = {
"num": fields.Integer,
"mode": fields.String,
... | <commit_before>from flask.ext.restful import fields
from meta import BasicResource
from config.pins import PinManager
MANAGER = PinManager()
class Pin(BasicResource):
def __init__(self):
super(Pin, self).__init__()
self.fields = {
"num": fields.Integer,
"mode": fields.Str... |
903c0d6a3bda96a0b193cc6efd2f8e868d4d82e2 | setuptools/tests/test_build_ext.py | setuptools/tests/test_build_ext.py | """build_ext tests
"""
import unittest
from distutils.command.build_ext import build_ext as distutils_build_ext
from setuptools.command.build_ext import build_ext
from setuptools.dist import Distribution
class TestBuildExtTest(unittest.TestCase):
def test_get_ext_filename(self):
# setuptools needs to give... | """build_ext tests
"""
import unittest
import distutils.command.build_ext as orig
from setuptools.command.build_ext import build_ext
from setuptools.dist import Distribution
class TestBuildExtTest(unittest.TestCase):
def test_get_ext_filename(self):
# setuptools needs to give back the same
# resu... | Use namespacing for easier reading | Use namespacing for easier reading
| Python | mit | pypa/setuptools,pypa/setuptools,pypa/setuptools | """build_ext tests
"""
import unittest
from distutils.command.build_ext import build_ext as distutils_build_ext
from setuptools.command.build_ext import build_ext
from setuptools.dist import Distribution
class TestBuildExtTest(unittest.TestCase):
def test_get_ext_filename(self):
# setuptools needs to give... | """build_ext tests
"""
import unittest
import distutils.command.build_ext as orig
from setuptools.command.build_ext import build_ext
from setuptools.dist import Distribution
class TestBuildExtTest(unittest.TestCase):
def test_get_ext_filename(self):
# setuptools needs to give back the same
# resu... | <commit_before>"""build_ext tests
"""
import unittest
from distutils.command.build_ext import build_ext as distutils_build_ext
from setuptools.command.build_ext import build_ext
from setuptools.dist import Distribution
class TestBuildExtTest(unittest.TestCase):
def test_get_ext_filename(self):
# setuptool... | """build_ext tests
"""
import unittest
import distutils.command.build_ext as orig
from setuptools.command.build_ext import build_ext
from setuptools.dist import Distribution
class TestBuildExtTest(unittest.TestCase):
def test_get_ext_filename(self):
# setuptools needs to give back the same
# resu... | """build_ext tests
"""
import unittest
from distutils.command.build_ext import build_ext as distutils_build_ext
from setuptools.command.build_ext import build_ext
from setuptools.dist import Distribution
class TestBuildExtTest(unittest.TestCase):
def test_get_ext_filename(self):
# setuptools needs to give... | <commit_before>"""build_ext tests
"""
import unittest
from distutils.command.build_ext import build_ext as distutils_build_ext
from setuptools.command.build_ext import build_ext
from setuptools.dist import Distribution
class TestBuildExtTest(unittest.TestCase):
def test_get_ext_filename(self):
# setuptool... |
1c254d8869482241de14255c25edd875ca369e46 | fortuitus/frunner/factories.py | fortuitus/frunner/factories.py | import factory
from fortuitus.feditor.factories import TestProjectF
from fortuitus.frunner import models
class TestRunF(factory.Factory):
FACTORY_FOR = models.TestRun
project = factory.SubFactory(TestProjectF)
class TestCaseF(factory.Factory):
FACTORY_FOR = models.TestCase
testrun = factory.SubFa... | import factory
from fortuitus.feditor.factories import TestProjectF
from fortuitus.frunner import models
class TestRunF(factory.Factory):
FACTORY_FOR = models.TestRun
project = factory.SubFactory(TestProjectF)
base_url = 'http://api.example.com/'
class TestCaseF(factory.Factory):
FACTORY_FOR = mod... | Fix TestRun factory missing base_url | Fix TestRun factory missing base_url
| Python | mit | elegion/djangodash2012,elegion/djangodash2012 | import factory
from fortuitus.feditor.factories import TestProjectF
from fortuitus.frunner import models
class TestRunF(factory.Factory):
FACTORY_FOR = models.TestRun
project = factory.SubFactory(TestProjectF)
class TestCaseF(factory.Factory):
FACTORY_FOR = models.TestCase
testrun = factory.SubFa... | import factory
from fortuitus.feditor.factories import TestProjectF
from fortuitus.frunner import models
class TestRunF(factory.Factory):
FACTORY_FOR = models.TestRun
project = factory.SubFactory(TestProjectF)
base_url = 'http://api.example.com/'
class TestCaseF(factory.Factory):
FACTORY_FOR = mod... | <commit_before>import factory
from fortuitus.feditor.factories import TestProjectF
from fortuitus.frunner import models
class TestRunF(factory.Factory):
FACTORY_FOR = models.TestRun
project = factory.SubFactory(TestProjectF)
class TestCaseF(factory.Factory):
FACTORY_FOR = models.TestCase
testrun ... | import factory
from fortuitus.feditor.factories import TestProjectF
from fortuitus.frunner import models
class TestRunF(factory.Factory):
FACTORY_FOR = models.TestRun
project = factory.SubFactory(TestProjectF)
base_url = 'http://api.example.com/'
class TestCaseF(factory.Factory):
FACTORY_FOR = mod... | import factory
from fortuitus.feditor.factories import TestProjectF
from fortuitus.frunner import models
class TestRunF(factory.Factory):
FACTORY_FOR = models.TestRun
project = factory.SubFactory(TestProjectF)
class TestCaseF(factory.Factory):
FACTORY_FOR = models.TestCase
testrun = factory.SubFa... | <commit_before>import factory
from fortuitus.feditor.factories import TestProjectF
from fortuitus.frunner import models
class TestRunF(factory.Factory):
FACTORY_FOR = models.TestRun
project = factory.SubFactory(TestProjectF)
class TestCaseF(factory.Factory):
FACTORY_FOR = models.TestCase
testrun ... |
8ae66dc2f9b3dd58db0c41a4bf44229dff2dc652 | falmer/content/models/__init__.py | falmer/content/models/__init__.py | from falmer.content.models.core import ClickThrough
from .staff import StaffPage, StaffMemberSnippet
from .section_content import SectionContentPage
from .selection_grid import SelectionGridPage
from .officer_overview import OfficerOverviewPage
from .homepage import HomePage
from .freshers import FreshersHomepage
from ... | from falmer.content.models.core import ClickThrough
from .staff import StaffPage, StaffMemberSnippet
from .section_content import SectionContentPage
from .selection_grid import SelectionGridPage
from .officer_overview import OfficerOverviewPage, OfficersIndex
from .homepage import HomePage
from .freshers import Fresher... | Add officers index to contentmap | Add officers index to contentmap
| Python | mit | sussexstudent/falmer,sussexstudent/falmer,sussexstudent/falmer,sussexstudent/falmer | from falmer.content.models.core import ClickThrough
from .staff import StaffPage, StaffMemberSnippet
from .section_content import SectionContentPage
from .selection_grid import SelectionGridPage
from .officer_overview import OfficerOverviewPage
from .homepage import HomePage
from .freshers import FreshersHomepage
from ... | from falmer.content.models.core import ClickThrough
from .staff import StaffPage, StaffMemberSnippet
from .section_content import SectionContentPage
from .selection_grid import SelectionGridPage
from .officer_overview import OfficerOverviewPage, OfficersIndex
from .homepage import HomePage
from .freshers import Fresher... | <commit_before>from falmer.content.models.core import ClickThrough
from .staff import StaffPage, StaffMemberSnippet
from .section_content import SectionContentPage
from .selection_grid import SelectionGridPage
from .officer_overview import OfficerOverviewPage
from .homepage import HomePage
from .freshers import Fresher... | from falmer.content.models.core import ClickThrough
from .staff import StaffPage, StaffMemberSnippet
from .section_content import SectionContentPage
from .selection_grid import SelectionGridPage
from .officer_overview import OfficerOverviewPage, OfficersIndex
from .homepage import HomePage
from .freshers import Fresher... | from falmer.content.models.core import ClickThrough
from .staff import StaffPage, StaffMemberSnippet
from .section_content import SectionContentPage
from .selection_grid import SelectionGridPage
from .officer_overview import OfficerOverviewPage
from .homepage import HomePage
from .freshers import FreshersHomepage
from ... | <commit_before>from falmer.content.models.core import ClickThrough
from .staff import StaffPage, StaffMemberSnippet
from .section_content import SectionContentPage
from .selection_grid import SelectionGridPage
from .officer_overview import OfficerOverviewPage
from .homepage import HomePage
from .freshers import Fresher... |
8a3eb221f51850d8a97c6d72715e644f52346c9f | swish/client.py | swish/client.py | import json
import requests
from .environment import Environment
class SwishClient(object):
def __init__(self, environment, payee_alias, cert):
self.environment = Environment.parse_environment(environment)
self.payee_alias = payee_alias
self.cert = cert
def post(self, endpoint, json)... | import json
import requests
from .environment import Environment
class SwishClient(object):
def __init__(self, environment, payee_alias, cert):
self.environment = Environment.parse_environment(environment)
self.payee_alias = payee_alias
self.cert = cert
def post(self, endpoint, json)... | Correct data in payment request | Correct data in payment request
| Python | mit | playing-se/swish-python | import json
import requests
from .environment import Environment
class SwishClient(object):
def __init__(self, environment, payee_alias, cert):
self.environment = Environment.parse_environment(environment)
self.payee_alias = payee_alias
self.cert = cert
def post(self, endpoint, json)... | import json
import requests
from .environment import Environment
class SwishClient(object):
def __init__(self, environment, payee_alias, cert):
self.environment = Environment.parse_environment(environment)
self.payee_alias = payee_alias
self.cert = cert
def post(self, endpoint, json)... | <commit_before>import json
import requests
from .environment import Environment
class SwishClient(object):
def __init__(self, environment, payee_alias, cert):
self.environment = Environment.parse_environment(environment)
self.payee_alias = payee_alias
self.cert = cert
def post(self, ... | import json
import requests
from .environment import Environment
class SwishClient(object):
def __init__(self, environment, payee_alias, cert):
self.environment = Environment.parse_environment(environment)
self.payee_alias = payee_alias
self.cert = cert
def post(self, endpoint, json)... | import json
import requests
from .environment import Environment
class SwishClient(object):
def __init__(self, environment, payee_alias, cert):
self.environment = Environment.parse_environment(environment)
self.payee_alias = payee_alias
self.cert = cert
def post(self, endpoint, json)... | <commit_before>import json
import requests
from .environment import Environment
class SwishClient(object):
def __init__(self, environment, payee_alias, cert):
self.environment = Environment.parse_environment(environment)
self.payee_alias = payee_alias
self.cert = cert
def post(self, ... |
5bf50c2f36e00004dac0bc9bd604ac99b77261df | rename_fotos/tests/test_rename_fotos.py | rename_fotos/tests/test_rename_fotos.py | import pytest
import ../__init__ as init
from selenium import webdriver
LOCAL_INSTANCE = "127.0.0.1:5000"
def test_is_running():
init.is_running()
# Firefox
driver = webdriver.Firefox()
driver.get(LOCAl_INSTANCE)
assert driver.body == "Flask is running"
| import pytest
import rename_fotos as rfapp
LOCAL_INSTANCE = "127.0.0.1:5000"
@pytest.fixture
def client():
rfapp.app.config['TESTING'] = True
with rfapp.app.test_client() as client:
with rfapp.app.app_context():
rfapp.init_db()
yield client
def test_is_run... | Switch to flask built in tests | Switch to flask built in tests
| Python | mit | daveinnyc/various,daveinnyc/various,daveinnyc/various,daveinnyc/various,daveinnyc/various,daveinnyc/various,daveinnyc/various | import pytest
import ../__init__ as init
from selenium import webdriver
LOCAL_INSTANCE = "127.0.0.1:5000"
def test_is_running():
init.is_running()
# Firefox
driver = webdriver.Firefox()
driver.get(LOCAl_INSTANCE)
assert driver.body == "Flask is running"
Switch... | import pytest
import rename_fotos as rfapp
LOCAL_INSTANCE = "127.0.0.1:5000"
@pytest.fixture
def client():
rfapp.app.config['TESTING'] = True
with rfapp.app.test_client() as client:
with rfapp.app.app_context():
rfapp.init_db()
yield client
def test_is_run... | <commit_before>import pytest
import ../__init__ as init
from selenium import webdriver
LOCAL_INSTANCE = "127.0.0.1:5000"
def test_is_running():
init.is_running()
# Firefox
driver = webdriver.Firefox()
driver.get(LOCAl_INSTANCE)
assert driver.body == "Flask is running"
... | import pytest
import rename_fotos as rfapp
LOCAL_INSTANCE = "127.0.0.1:5000"
@pytest.fixture
def client():
rfapp.app.config['TESTING'] = True
with rfapp.app.test_client() as client:
with rfapp.app.app_context():
rfapp.init_db()
yield client
def test_is_run... | import pytest
import ../__init__ as init
from selenium import webdriver
LOCAL_INSTANCE = "127.0.0.1:5000"
def test_is_running():
init.is_running()
# Firefox
driver = webdriver.Firefox()
driver.get(LOCAl_INSTANCE)
assert driver.body == "Flask is running"
Switch... | <commit_before>import pytest
import ../__init__ as init
from selenium import webdriver
LOCAL_INSTANCE = "127.0.0.1:5000"
def test_is_running():
init.is_running()
# Firefox
driver = webdriver.Firefox()
driver.get(LOCAl_INSTANCE)
assert driver.body == "Flask is running"
... |
797786d53d525aabd9495ac68a8f319680e09f89 | src/syntax/infix_coordination.py | src/syntax/infix_coordination.py | __author__ = 's7a'
# All imports
from nltk.tree import Tree
# The infix coordination class
class InfixCoordination:
# Constructor for the infix coordination
def __init__(self):
self.has_infix_coordination = False
self.slice_point = -1
self.subtree_list = []
# Break the tree
... | __author__ = 's7a'
# All imports
from nltk.tree import Tree
# The infix coordination class
class InfixCoordination:
# Constructor for the infix coordination
def __init__(self):
self.has_infix_coordination = False
self.slice_point = -1
self.subtree_list = []
# Break the tree
... | Break infix coordination only if there is one | Break infix coordination only if there is one
| Python | mit | Somsubhra/Simplify,Somsubhra/Simplify,Somsubhra/Simplify | __author__ = 's7a'
# All imports
from nltk.tree import Tree
# The infix coordination class
class InfixCoordination:
# Constructor for the infix coordination
def __init__(self):
self.has_infix_coordination = False
self.slice_point = -1
self.subtree_list = []
# Break the tree
... | __author__ = 's7a'
# All imports
from nltk.tree import Tree
# The infix coordination class
class InfixCoordination:
# Constructor for the infix coordination
def __init__(self):
self.has_infix_coordination = False
self.slice_point = -1
self.subtree_list = []
# Break the tree
... | <commit_before>__author__ = 's7a'
# All imports
from nltk.tree import Tree
# The infix coordination class
class InfixCoordination:
# Constructor for the infix coordination
def __init__(self):
self.has_infix_coordination = False
self.slice_point = -1
self.subtree_list = []
# Brea... | __author__ = 's7a'
# All imports
from nltk.tree import Tree
# The infix coordination class
class InfixCoordination:
# Constructor for the infix coordination
def __init__(self):
self.has_infix_coordination = False
self.slice_point = -1
self.subtree_list = []
# Break the tree
... | __author__ = 's7a'
# All imports
from nltk.tree import Tree
# The infix coordination class
class InfixCoordination:
# Constructor for the infix coordination
def __init__(self):
self.has_infix_coordination = False
self.slice_point = -1
self.subtree_list = []
# Break the tree
... | <commit_before>__author__ = 's7a'
# All imports
from nltk.tree import Tree
# The infix coordination class
class InfixCoordination:
# Constructor for the infix coordination
def __init__(self):
self.has_infix_coordination = False
self.slice_point = -1
self.subtree_list = []
# Brea... |
6cabf9c03cd40ae748d03f1a2fd3f4f3db6c47a5 | protocols/models.py | protocols/models.py | from datetime import datetime
from django.db import models
class Topic(models.Model):
name = models.CharField(max_length=100)
description = models.TextField(blank=True, null=True)
attachment = models.ManyToManyField('attachments.Attachment')
voted_for = models.PositiveIntegerField()
voted_against... | from datetime import datetime
from django.db import models
class Topic(models.Model):
name = models.CharField(max_length=100)
description = models.TextField(blank=True, null=True)
attachment = models.ManyToManyField('attachments.Attachment')
voted_for = models.PositiveIntegerField(blank=True, null=Tr... | Add option for blank voting | Add option for blank voting
| Python | mit | Hackfmi/Diaphanum,Hackfmi/Diaphanum | from datetime import datetime
from django.db import models
class Topic(models.Model):
name = models.CharField(max_length=100)
description = models.TextField(blank=True, null=True)
attachment = models.ManyToManyField('attachments.Attachment')
voted_for = models.PositiveIntegerField()
voted_against... | from datetime import datetime
from django.db import models
class Topic(models.Model):
name = models.CharField(max_length=100)
description = models.TextField(blank=True, null=True)
attachment = models.ManyToManyField('attachments.Attachment')
voted_for = models.PositiveIntegerField(blank=True, null=Tr... | <commit_before>from datetime import datetime
from django.db import models
class Topic(models.Model):
name = models.CharField(max_length=100)
description = models.TextField(blank=True, null=True)
attachment = models.ManyToManyField('attachments.Attachment')
voted_for = models.PositiveIntegerField()
... | from datetime import datetime
from django.db import models
class Topic(models.Model):
name = models.CharField(max_length=100)
description = models.TextField(blank=True, null=True)
attachment = models.ManyToManyField('attachments.Attachment')
voted_for = models.PositiveIntegerField(blank=True, null=Tr... | from datetime import datetime
from django.db import models
class Topic(models.Model):
name = models.CharField(max_length=100)
description = models.TextField(blank=True, null=True)
attachment = models.ManyToManyField('attachments.Attachment')
voted_for = models.PositiveIntegerField()
voted_against... | <commit_before>from datetime import datetime
from django.db import models
class Topic(models.Model):
name = models.CharField(max_length=100)
description = models.TextField(blank=True, null=True)
attachment = models.ManyToManyField('attachments.Attachment')
voted_for = models.PositiveIntegerField()
... |
fc7ba9019b42f056713b81bfee70f9e780b4aab5 | models/rasmachine/twitter_client.py | models/rasmachine/twitter_client.py | from __future__ import absolute_import, print_function, unicode_literals
from builtins import dict, str
import tweepy
def get_oauth(auth_file):
try:
fh = open(auth_file, 'rt')
except IOError:
print('Could not get Twitter credentials.')
return None
lines = [l.strip() for l in fh.read... | from __future__ import absolute_import, print_function, unicode_literals
from builtins import dict, str
import tweepy
def get_oauth_file(auth_file):
try:
fh = open(auth_file, 'rt')
except IOError:
print('Could not get Twitter credentials.')
return None
lines = [l.strip() for l in fh... | Implement dict credentials in Twitter client | Implement dict credentials in Twitter client
| Python | bsd-2-clause | pvtodorov/indra,johnbachman/belpy,jmuhlich/indra,jmuhlich/indra,bgyori/indra,johnbachman/belpy,pvtodorov/indra,sorgerlab/belpy,johnbachman/belpy,pvtodorov/indra,johnbachman/indra,bgyori/indra,pvtodorov/indra,johnbachman/indra,sorgerlab/belpy,johnbachman/indra,sorgerlab/indra,bgyori/indra,sorgerlab/belpy,sorgerlab/indra... | from __future__ import absolute_import, print_function, unicode_literals
from builtins import dict, str
import tweepy
def get_oauth(auth_file):
try:
fh = open(auth_file, 'rt')
except IOError:
print('Could not get Twitter credentials.')
return None
lines = [l.strip() for l in fh.read... | from __future__ import absolute_import, print_function, unicode_literals
from builtins import dict, str
import tweepy
def get_oauth_file(auth_file):
try:
fh = open(auth_file, 'rt')
except IOError:
print('Could not get Twitter credentials.')
return None
lines = [l.strip() for l in fh... | <commit_before>from __future__ import absolute_import, print_function, unicode_literals
from builtins import dict, str
import tweepy
def get_oauth(auth_file):
try:
fh = open(auth_file, 'rt')
except IOError:
print('Could not get Twitter credentials.')
return None
lines = [l.strip() f... | from __future__ import absolute_import, print_function, unicode_literals
from builtins import dict, str
import tweepy
def get_oauth_file(auth_file):
try:
fh = open(auth_file, 'rt')
except IOError:
print('Could not get Twitter credentials.')
return None
lines = [l.strip() for l in fh... | from __future__ import absolute_import, print_function, unicode_literals
from builtins import dict, str
import tweepy
def get_oauth(auth_file):
try:
fh = open(auth_file, 'rt')
except IOError:
print('Could not get Twitter credentials.')
return None
lines = [l.strip() for l in fh.read... | <commit_before>from __future__ import absolute_import, print_function, unicode_literals
from builtins import dict, str
import tweepy
def get_oauth(auth_file):
try:
fh = open(auth_file, 'rt')
except IOError:
print('Could not get Twitter credentials.')
return None
lines = [l.strip() f... |
fe9512de5e41a6892826e70543637b893f3bd6f5 | temba/msgs/migrations/0087_populate_broadcast_send_all.py | temba/msgs/migrations/0087_populate_broadcast_send_all.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-04-06 17:33
from __future__ import unicode_literals
from django.db import migrations
from temba.utils import chunk_list
def do_populate_send_all(Broadcast):
broadcast_ids = Broadcast.objects.all().values_list('id', flat=True)
for chunk in chunk_li... | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-04-06 17:33
from __future__ import unicode_literals
from django.db import migrations
from temba.utils import chunk_list
def do_populate_send_all(Broadcast):
broadcast_ids = Broadcast.objects.all().values_list('id', flat=True)
broadcast_count = len... | Print progress of data migration | Print progress of data migration
| Python | agpl-3.0 | pulilab/rapidpro,pulilab/rapidpro,pulilab/rapidpro,pulilab/rapidpro,pulilab/rapidpro | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-04-06 17:33
from __future__ import unicode_literals
from django.db import migrations
from temba.utils import chunk_list
def do_populate_send_all(Broadcast):
broadcast_ids = Broadcast.objects.all().values_list('id', flat=True)
for chunk in chunk_li... | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-04-06 17:33
from __future__ import unicode_literals
from django.db import migrations
from temba.utils import chunk_list
def do_populate_send_all(Broadcast):
broadcast_ids = Broadcast.objects.all().values_list('id', flat=True)
broadcast_count = len... | <commit_before># -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-04-06 17:33
from __future__ import unicode_literals
from django.db import migrations
from temba.utils import chunk_list
def do_populate_send_all(Broadcast):
broadcast_ids = Broadcast.objects.all().values_list('id', flat=True)
for ch... | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-04-06 17:33
from __future__ import unicode_literals
from django.db import migrations
from temba.utils import chunk_list
def do_populate_send_all(Broadcast):
broadcast_ids = Broadcast.objects.all().values_list('id', flat=True)
broadcast_count = len... | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-04-06 17:33
from __future__ import unicode_literals
from django.db import migrations
from temba.utils import chunk_list
def do_populate_send_all(Broadcast):
broadcast_ids = Broadcast.objects.all().values_list('id', flat=True)
for chunk in chunk_li... | <commit_before># -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-04-06 17:33
from __future__ import unicode_literals
from django.db import migrations
from temba.utils import chunk_list
def do_populate_send_all(Broadcast):
broadcast_ids = Broadcast.objects.all().values_list('id', flat=True)
for ch... |
3dfb310fa4df74c89b46fabb8195eb62b53dc5be | optimisers.py | optimisers.py | import numpy as np
class Optimiser:
def __init__(self, network):
self.nn = network
self.step_sign = -1.0 # minimise by default
def step(self):
self.nn.forward()
self.nn.reset_gradients()
self.nn.backward()
self.update_params()
def update_params(se... | import numpy as np
class Optimiser:
def __init__(self, network):
self.nn = network
self.step_sign = -1.0 # minimise by default
def step(self):
self.nn.forward()
self.nn.reset_gradients()
self.nn.backward()
self.update_params()
def update_params(se... | Add GradientDescent with Momentum Optimiser. | Add GradientDescent with Momentum Optimiser.
| Python | mit | Hornobster/Numpy-Neural-Net | import numpy as np
class Optimiser:
def __init__(self, network):
self.nn = network
self.step_sign = -1.0 # minimise by default
def step(self):
self.nn.forward()
self.nn.reset_gradients()
self.nn.backward()
self.update_params()
def update_params(se... | import numpy as np
class Optimiser:
def __init__(self, network):
self.nn = network
self.step_sign = -1.0 # minimise by default
def step(self):
self.nn.forward()
self.nn.reset_gradients()
self.nn.backward()
self.update_params()
def update_params(se... | <commit_before>import numpy as np
class Optimiser:
def __init__(self, network):
self.nn = network
self.step_sign = -1.0 # minimise by default
def step(self):
self.nn.forward()
self.nn.reset_gradients()
self.nn.backward()
self.update_params()
def u... | import numpy as np
class Optimiser:
def __init__(self, network):
self.nn = network
self.step_sign = -1.0 # minimise by default
def step(self):
self.nn.forward()
self.nn.reset_gradients()
self.nn.backward()
self.update_params()
def update_params(se... | import numpy as np
class Optimiser:
def __init__(self, network):
self.nn = network
self.step_sign = -1.0 # minimise by default
def step(self):
self.nn.forward()
self.nn.reset_gradients()
self.nn.backward()
self.update_params()
def update_params(se... | <commit_before>import numpy as np
class Optimiser:
def __init__(self, network):
self.nn = network
self.step_sign = -1.0 # minimise by default
def step(self):
self.nn.forward()
self.nn.reset_gradients()
self.nn.backward()
self.update_params()
def u... |
34015dbc34b2f4e44b104070bae8c3d1956d7e12 | is_valid/wrapper_predicates.py | is_valid/wrapper_predicates.py | import json
def is_transformed(transform, predicate, *args, exceptions=[
Exception
], msg='data can\'t be transformed', **kwargs):
def is_valid(data, explain=False):
try:
data = transform(data, *args, **kwargs)
except Exception as e:
if not any(isinstance(e, exc) for ex... | import json
def is_transformed(transform, predicate, *args, exceptions=[
Exception
], msg='data can\'t be transformed', **kwargs):
def is_valid(data, explain=False, include=False):
try:
data = transform(data, *args, **kwargs)
except Exception as e:
if not any(isinstance... | Add include keyword arg to is_tranformed | Add include keyword arg to is_tranformed
| Python | mit | Daanvdk/is_valid | import json
def is_transformed(transform, predicate, *args, exceptions=[
Exception
], msg='data can\'t be transformed', **kwargs):
def is_valid(data, explain=False):
try:
data = transform(data, *args, **kwargs)
except Exception as e:
if not any(isinstance(e, exc) for ex... | import json
def is_transformed(transform, predicate, *args, exceptions=[
Exception
], msg='data can\'t be transformed', **kwargs):
def is_valid(data, explain=False, include=False):
try:
data = transform(data, *args, **kwargs)
except Exception as e:
if not any(isinstance... | <commit_before>import json
def is_transformed(transform, predicate, *args, exceptions=[
Exception
], msg='data can\'t be transformed', **kwargs):
def is_valid(data, explain=False):
try:
data = transform(data, *args, **kwargs)
except Exception as e:
if not any(isinstance... | import json
def is_transformed(transform, predicate, *args, exceptions=[
Exception
], msg='data can\'t be transformed', **kwargs):
def is_valid(data, explain=False, include=False):
try:
data = transform(data, *args, **kwargs)
except Exception as e:
if not any(isinstance... | import json
def is_transformed(transform, predicate, *args, exceptions=[
Exception
], msg='data can\'t be transformed', **kwargs):
def is_valid(data, explain=False):
try:
data = transform(data, *args, **kwargs)
except Exception as e:
if not any(isinstance(e, exc) for ex... | <commit_before>import json
def is_transformed(transform, predicate, *args, exceptions=[
Exception
], msg='data can\'t be transformed', **kwargs):
def is_valid(data, explain=False):
try:
data = transform(data, *args, **kwargs)
except Exception as e:
if not any(isinstance... |
f8d94b93427ff92ae6eed58a81058cce4e661cd2 | solum/tests/common/test_service.py | solum/tests/common/test_service.py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | Test service with Component instead of Plan db object | Test service with Component instead of Plan db object
Since plan db objects are getting removed in add-plan-in-swift,
we need to test service with another object.
Change-Id: I85537ef17f8c125d3de85ab3625ea91e9487376f
| Python | apache-2.0 | gilbertpilz/solum,ed-/solum,devdattakulkarni/test-solum,stackforge/solum,gilbertpilz/solum,openstack/solum,ed-/solum,devdattakulkarni/test-solum,ed-/solum,ed-/solum,gilbertpilz/solum,gilbertpilz/solum,openstack/solum,stackforge/solum | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | <commit_before># Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# dist... | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | <commit_before># Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# dist... |
1c4b3fe1204bfa40c1d7b6444ab645826e4c1d1f | Filter.py | Filter.py | # tcviz 1.2
#
# Licensed under the terms of the MIT/X11 license.
# Copyright (c) 2009-2013 Vita Smid <http://ze.phyr.us>
import textwrap
from Id import Id
class Filter:
COLOR = '#999999'
def __init__(self, spec=None):
self.__parent = None
self.__target = None
self.__params = []
... | # tcviz 1.2
#
# Licensed under the terms of the MIT/X11 license.
# Copyright (c) 2009-2013 Vita Smid <http://ze.phyr.us>
import textwrap
from Id import Id
class Filter:
COLOR = '#999999'
def __init__(self, spec=None):
self.__parent = None
self.__target = None
self.__params = []
... | Fix ValueError when flowid is ??? | Fix ValueError when flowid is ???
A filter like the following:
tc filter add dev srvif parent 1: protocol ip u32 match ip dst 1.2.3.4/32 action drop
is reported in "tc show filter" as:
filter parent 1: protocol ip [...] flowid ??? [..]
| Python | mit | ze-phyr-us/tcviz | # tcviz 1.2
#
# Licensed under the terms of the MIT/X11 license.
# Copyright (c) 2009-2013 Vita Smid <http://ze.phyr.us>
import textwrap
from Id import Id
class Filter:
COLOR = '#999999'
def __init__(self, spec=None):
self.__parent = None
self.__target = None
self.__params = []
... | # tcviz 1.2
#
# Licensed under the terms of the MIT/X11 license.
# Copyright (c) 2009-2013 Vita Smid <http://ze.phyr.us>
import textwrap
from Id import Id
class Filter:
COLOR = '#999999'
def __init__(self, spec=None):
self.__parent = None
self.__target = None
self.__params = []
... | <commit_before># tcviz 1.2
#
# Licensed under the terms of the MIT/X11 license.
# Copyright (c) 2009-2013 Vita Smid <http://ze.phyr.us>
import textwrap
from Id import Id
class Filter:
COLOR = '#999999'
def __init__(self, spec=None):
self.__parent = None
self.__target = None
self.__... | # tcviz 1.2
#
# Licensed under the terms of the MIT/X11 license.
# Copyright (c) 2009-2013 Vita Smid <http://ze.phyr.us>
import textwrap
from Id import Id
class Filter:
COLOR = '#999999'
def __init__(self, spec=None):
self.__parent = None
self.__target = None
self.__params = []
... | # tcviz 1.2
#
# Licensed under the terms of the MIT/X11 license.
# Copyright (c) 2009-2013 Vita Smid <http://ze.phyr.us>
import textwrap
from Id import Id
class Filter:
COLOR = '#999999'
def __init__(self, spec=None):
self.__parent = None
self.__target = None
self.__params = []
... | <commit_before># tcviz 1.2
#
# Licensed under the terms of the MIT/X11 license.
# Copyright (c) 2009-2013 Vita Smid <http://ze.phyr.us>
import textwrap
from Id import Id
class Filter:
COLOR = '#999999'
def __init__(self, spec=None):
self.__parent = None
self.__target = None
self.__... |
f69a9a3e49f6a242be2d0d8d9eb6ff104e25247b | pyvarnish/remote.py | pyvarnish/remote.py | # -*- coding: utf-8 -*-
__author__ = 'John Moylan'
from paramiko import SSHClient, SSHConfig, AutoAddPolicy
from pyvarnish.settings import SSH_CONFIG
class Varnish_admin():
def __init__(self, server=''):
self.server = server
self.conf = self.config()
def config(self):
sshconfig = SS... | # -*- coding: utf-8 -*-
__author__ = 'John Moylan'
import sys
from paramiko import SSHClient, SSHConfig, AutoAddPolicy
from pyvarnish.settings import SSH_CONFIG
class Varnish_admin():
def __init__(self, server=''):
self.server = server
self.conf = self.config()
def config(self):
s... | Add an exception if ssh not configured | Add an exception if ssh not configured
| Python | bsd-3-clause | redsnapper8t8/pyvarnish | # -*- coding: utf-8 -*-
__author__ = 'John Moylan'
from paramiko import SSHClient, SSHConfig, AutoAddPolicy
from pyvarnish.settings import SSH_CONFIG
class Varnish_admin():
def __init__(self, server=''):
self.server = server
self.conf = self.config()
def config(self):
sshconfig = SS... | # -*- coding: utf-8 -*-
__author__ = 'John Moylan'
import sys
from paramiko import SSHClient, SSHConfig, AutoAddPolicy
from pyvarnish.settings import SSH_CONFIG
class Varnish_admin():
def __init__(self, server=''):
self.server = server
self.conf = self.config()
def config(self):
s... | <commit_before># -*- coding: utf-8 -*-
__author__ = 'John Moylan'
from paramiko import SSHClient, SSHConfig, AutoAddPolicy
from pyvarnish.settings import SSH_CONFIG
class Varnish_admin():
def __init__(self, server=''):
self.server = server
self.conf = self.config()
def config(self):
... | # -*- coding: utf-8 -*-
__author__ = 'John Moylan'
import sys
from paramiko import SSHClient, SSHConfig, AutoAddPolicy
from pyvarnish.settings import SSH_CONFIG
class Varnish_admin():
def __init__(self, server=''):
self.server = server
self.conf = self.config()
def config(self):
s... | # -*- coding: utf-8 -*-
__author__ = 'John Moylan'
from paramiko import SSHClient, SSHConfig, AutoAddPolicy
from pyvarnish.settings import SSH_CONFIG
class Varnish_admin():
def __init__(self, server=''):
self.server = server
self.conf = self.config()
def config(self):
sshconfig = SS... | <commit_before># -*- coding: utf-8 -*-
__author__ = 'John Moylan'
from paramiko import SSHClient, SSHConfig, AutoAddPolicy
from pyvarnish.settings import SSH_CONFIG
class Varnish_admin():
def __init__(self, server=''):
self.server = server
self.conf = self.config()
def config(self):
... |
afbb9a9be46c6a9db02f6f3256c82b9939ce5c9e | src/rna_seq/forms.py | src/rna_seq/forms.py | from crispy_forms.bootstrap import FormActions
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Div, Field, Fieldset, HTML, Layout, Submit
from django.utils.functional import cached_property
from django.utils.translation import ugettext_lazy as _
from analyses.forms import AbstractAnalysisCre... | from crispy_forms.helper import FormHelper
from crispy_forms.bootstrap import InlineField
from crispy_forms.layout import Div, Field, Fieldset, HTML, Layout
from django.utils.functional import cached_property
from django.utils.translation import ugettext_lazy as _
from analyses.forms import (
AbstractAnalysisCreat... | Use analysis base class form helper and form building blocks | Use analysis base class form helper and form building blocks
| Python | mit | ccwang002/biocloud-server-kai,ccwang002/biocloud-server-kai,ccwang002/biocloud-server-kai | from crispy_forms.bootstrap import FormActions
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Div, Field, Fieldset, HTML, Layout, Submit
from django.utils.functional import cached_property
from django.utils.translation import ugettext_lazy as _
from analyses.forms import AbstractAnalysisCre... | from crispy_forms.helper import FormHelper
from crispy_forms.bootstrap import InlineField
from crispy_forms.layout import Div, Field, Fieldset, HTML, Layout
from django.utils.functional import cached_property
from django.utils.translation import ugettext_lazy as _
from analyses.forms import (
AbstractAnalysisCreat... | <commit_before>from crispy_forms.bootstrap import FormActions
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Div, Field, Fieldset, HTML, Layout, Submit
from django.utils.functional import cached_property
from django.utils.translation import ugettext_lazy as _
from analyses.forms import Abst... | from crispy_forms.helper import FormHelper
from crispy_forms.bootstrap import InlineField
from crispy_forms.layout import Div, Field, Fieldset, HTML, Layout
from django.utils.functional import cached_property
from django.utils.translation import ugettext_lazy as _
from analyses.forms import (
AbstractAnalysisCreat... | from crispy_forms.bootstrap import FormActions
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Div, Field, Fieldset, HTML, Layout, Submit
from django.utils.functional import cached_property
from django.utils.translation import ugettext_lazy as _
from analyses.forms import AbstractAnalysisCre... | <commit_before>from crispy_forms.bootstrap import FormActions
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Div, Field, Fieldset, HTML, Layout, Submit
from django.utils.functional import cached_property
from django.utils.translation import ugettext_lazy as _
from analyses.forms import Abst... |
44fbeeb82ce797f357de36979ff47f2dec9d70ca | graphene/commands/show_command.py | graphene/commands/show_command.py | from enum import Enum
from graphene.commands.command import Command
from graphene.utils import PrettyPrinter
class ShowCommand(Command):
class ShowType(Enum):
TYPES = 1
RELATIONS = 2
def __init__(self, show_type):
self.show_type = show_type
def execute(self, storage_manager):
... | from enum import Enum
from graphene.commands.command import Command
from graphene.utils import PrettyPrinter
class ShowCommand(Command):
class ShowType(Enum):
TYPES = 1
RELATIONS = 2
def __init__(self, show_type):
self.show_type = show_type
def execute(self, storage_manager):
... | Update SHOW TYPES command to handle no types being created | Update SHOW TYPES command to handle no types being created
| Python | apache-2.0 | PHB-CS123/graphene,PHB-CS123/graphene,PHB-CS123/graphene | from enum import Enum
from graphene.commands.command import Command
from graphene.utils import PrettyPrinter
class ShowCommand(Command):
class ShowType(Enum):
TYPES = 1
RELATIONS = 2
def __init__(self, show_type):
self.show_type = show_type
def execute(self, storage_manager):
... | from enum import Enum
from graphene.commands.command import Command
from graphene.utils import PrettyPrinter
class ShowCommand(Command):
class ShowType(Enum):
TYPES = 1
RELATIONS = 2
def __init__(self, show_type):
self.show_type = show_type
def execute(self, storage_manager):
... | <commit_before>from enum import Enum
from graphene.commands.command import Command
from graphene.utils import PrettyPrinter
class ShowCommand(Command):
class ShowType(Enum):
TYPES = 1
RELATIONS = 2
def __init__(self, show_type):
self.show_type = show_type
def execute(self, storage... | from enum import Enum
from graphene.commands.command import Command
from graphene.utils import PrettyPrinter
class ShowCommand(Command):
class ShowType(Enum):
TYPES = 1
RELATIONS = 2
def __init__(self, show_type):
self.show_type = show_type
def execute(self, storage_manager):
... | from enum import Enum
from graphene.commands.command import Command
from graphene.utils import PrettyPrinter
class ShowCommand(Command):
class ShowType(Enum):
TYPES = 1
RELATIONS = 2
def __init__(self, show_type):
self.show_type = show_type
def execute(self, storage_manager):
... | <commit_before>from enum import Enum
from graphene.commands.command import Command
from graphene.utils import PrettyPrinter
class ShowCommand(Command):
class ShowType(Enum):
TYPES = 1
RELATIONS = 2
def __init__(self, show_type):
self.show_type = show_type
def execute(self, storage... |
abf36e3a6ce9eb001b3501756b3d3d15bd49d5bc | jazzband/members/decorators.py | jazzband/members/decorators.py | from flask import flash, redirect
from flask_login import current_user
import wrapt
from ..account.views import default_url
def member_required(next_url=None, message=None):
if next_url is None:
next_url = default_url()
if message is None:
message = "Sorry but you're not a member of Jazzband ... | from flask import flash, redirect
from flask_login import current_user
import wrapt
from ..account.views import default_url
def member_required(next_url=None, message=None):
if message is None:
message = "Sorry but you're not a member of Jazzband at the moment."
@wrapt.decorator
def wrapper(wrap... | Fix import time issue with member_required decorator. | Fix import time issue with member_required decorator.
| Python | mit | jazzband/site,jazzband/jazzband-site,jazzband/jazzband-site,jazzband/website,jazzband/website,jazzband/site,jazzband/website,jazzband/website | from flask import flash, redirect
from flask_login import current_user
import wrapt
from ..account.views import default_url
def member_required(next_url=None, message=None):
if next_url is None:
next_url = default_url()
if message is None:
message = "Sorry but you're not a member of Jazzband ... | from flask import flash, redirect
from flask_login import current_user
import wrapt
from ..account.views import default_url
def member_required(next_url=None, message=None):
if message is None:
message = "Sorry but you're not a member of Jazzband at the moment."
@wrapt.decorator
def wrapper(wrap... | <commit_before>from flask import flash, redirect
from flask_login import current_user
import wrapt
from ..account.views import default_url
def member_required(next_url=None, message=None):
if next_url is None:
next_url = default_url()
if message is None:
message = "Sorry but you're not a memb... | from flask import flash, redirect
from flask_login import current_user
import wrapt
from ..account.views import default_url
def member_required(next_url=None, message=None):
if message is None:
message = "Sorry but you're not a member of Jazzband at the moment."
@wrapt.decorator
def wrapper(wrap... | from flask import flash, redirect
from flask_login import current_user
import wrapt
from ..account.views import default_url
def member_required(next_url=None, message=None):
if next_url is None:
next_url = default_url()
if message is None:
message = "Sorry but you're not a member of Jazzband ... | <commit_before>from flask import flash, redirect
from flask_login import current_user
import wrapt
from ..account.views import default_url
def member_required(next_url=None, message=None):
if next_url is None:
next_url = default_url()
if message is None:
message = "Sorry but you're not a memb... |
45896958badb2ff5f7c36a86a60fbdab80d2f618 | plots/urls.py | plots/urls.py | __author__ = 'ankesh'
from django.conf.urls import patterns, url
| __author__ = 'ankesh'
from django.conf.urls import patterns, url
from plots.views import rawdata, draw
urlpatterns = patterns('',
url(r'^(?P<type>[A-z]+)/$', draw, name='drawChart'),
url(r'^(?P<type>[A-z]+)/data/$', rawdata, name='rawdata'),
)
| Add the URL mappings for the plots app. | Add the URL mappings for the plots app.
| Python | bsd-2-clause | ankeshanand/benchmark,ankeshanand/benchmark,ankeshanand/benchmark,ankeshanand/benchmark | __author__ = 'ankesh'
from django.conf.urls import patterns, url
Add the URL mappings for the plots app. | __author__ = 'ankesh'
from django.conf.urls import patterns, url
from plots.views import rawdata, draw
urlpatterns = patterns('',
url(r'^(?P<type>[A-z]+)/$', draw, name='drawChart'),
url(r'^(?P<type>[A-z]+)/data/$', rawdata, name='rawdata'),
)
| <commit_before>__author__ = 'ankesh'
from django.conf.urls import patterns, url
<commit_msg>Add the URL mappings for the plots app.<commit_after> | __author__ = 'ankesh'
from django.conf.urls import patterns, url
from plots.views import rawdata, draw
urlpatterns = patterns('',
url(r'^(?P<type>[A-z]+)/$', draw, name='drawChart'),
url(r'^(?P<type>[A-z]+)/data/$', rawdata, name='rawdata'),
)
| __author__ = 'ankesh'
from django.conf.urls import patterns, url
Add the URL mappings for the plots app.__author__ = 'ankesh'
from django.conf.urls import patterns, url
from plots.views import rawdata, draw
urlpatterns = patterns('',
url(r'^(?P<type>[A-z]+)/$', draw, name='drawChart'),
url(r'^(?P<type>[A-z]+)/... | <commit_before>__author__ = 'ankesh'
from django.conf.urls import patterns, url
<commit_msg>Add the URL mappings for the plots app.<commit_after>__author__ = 'ankesh'
from django.conf.urls import patterns, url
from plots.views import rawdata, draw
urlpatterns = patterns('',
url(r'^(?P<type>[A-z]+)/$', draw, name='... |
e69402647f0d3878ced159a3e8f7dbc386a8158f | reducer/__init__.py | reducer/__init__.py | # keep this at the top -- name is needed for imports to succeed
NOTEBOOK_TEMPLATE_NAME = 'reducer-template.ipynb'
__version__ = '0.1.dev8'
from .core import *
| # keep this at the top -- name is needed for imports to succeed
NOTEBOOK_TEMPLATE_NAME = 'reducer-template.ipynb'
__version__ = '0.1.dev9'
from .core import *
| Make version match that from setup.py | Make version match that from setup.py
| Python | bsd-3-clause | mwcraig/reducer,astrofrog/reducer,astrofrog/reducer,StuartLittlefair/reducer,StuartLittlefair/reducer | # keep this at the top -- name is needed for imports to succeed
NOTEBOOK_TEMPLATE_NAME = 'reducer-template.ipynb'
__version__ = '0.1.dev8'
from .core import *
Make version match that from setup.py | # keep this at the top -- name is needed for imports to succeed
NOTEBOOK_TEMPLATE_NAME = 'reducer-template.ipynb'
__version__ = '0.1.dev9'
from .core import *
| <commit_before># keep this at the top -- name is needed for imports to succeed
NOTEBOOK_TEMPLATE_NAME = 'reducer-template.ipynb'
__version__ = '0.1.dev8'
from .core import *
<commit_msg>Make version match that from setup.py<commit_after> | # keep this at the top -- name is needed for imports to succeed
NOTEBOOK_TEMPLATE_NAME = 'reducer-template.ipynb'
__version__ = '0.1.dev9'
from .core import *
| # keep this at the top -- name is needed for imports to succeed
NOTEBOOK_TEMPLATE_NAME = 'reducer-template.ipynb'
__version__ = '0.1.dev8'
from .core import *
Make version match that from setup.py# keep this at the top -- name is needed for imports to succeed
NOTEBOOK_TEMPLATE_NAME = 'reducer-template.ipynb'
__versi... | <commit_before># keep this at the top -- name is needed for imports to succeed
NOTEBOOK_TEMPLATE_NAME = 'reducer-template.ipynb'
__version__ = '0.1.dev8'
from .core import *
<commit_msg>Make version match that from setup.py<commit_after># keep this at the top -- name is needed for imports to succeed
NOTEBOOK_TEMPLATE... |
36021ba78d84dbb3aef8ea54369f88f6461eced6 | history_rewrite_scripts/config.py | history_rewrite_scripts/config.py | # Copyright 2015 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.
AUTOMERGER_NAME = 'Chromium+Blink automerger'
AUTOMERGER_EMAIL = 'chrome-blink-automerger@chromium.org'
BLINK_REPO_URL = 'https://chromium.googlesource.com... | # Copyright 2015 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.
AUTOMERGER_NAME = 'Chromium+Blink automerger'
AUTOMERGER_EMAIL = 'chrome-blink-automerger@chromium.org'
BLINK_REPO_URL = 'https://chromium.googlesource.com... | Switch to 2311 + 2357 branches | Switch to 2311 + 2357 branches
| Python | bsd-3-clause | primiano/chrome-blink-automerger | # Copyright 2015 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.
AUTOMERGER_NAME = 'Chromium+Blink automerger'
AUTOMERGER_EMAIL = 'chrome-blink-automerger@chromium.org'
BLINK_REPO_URL = 'https://chromium.googlesource.com... | # Copyright 2015 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.
AUTOMERGER_NAME = 'Chromium+Blink automerger'
AUTOMERGER_EMAIL = 'chrome-blink-automerger@chromium.org'
BLINK_REPO_URL = 'https://chromium.googlesource.com... | <commit_before># Copyright 2015 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.
AUTOMERGER_NAME = 'Chromium+Blink automerger'
AUTOMERGER_EMAIL = 'chrome-blink-automerger@chromium.org'
BLINK_REPO_URL = 'https://chromium.g... | # Copyright 2015 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.
AUTOMERGER_NAME = 'Chromium+Blink automerger'
AUTOMERGER_EMAIL = 'chrome-blink-automerger@chromium.org'
BLINK_REPO_URL = 'https://chromium.googlesource.com... | # Copyright 2015 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.
AUTOMERGER_NAME = 'Chromium+Blink automerger'
AUTOMERGER_EMAIL = 'chrome-blink-automerger@chromium.org'
BLINK_REPO_URL = 'https://chromium.googlesource.com... | <commit_before># Copyright 2015 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.
AUTOMERGER_NAME = 'Chromium+Blink automerger'
AUTOMERGER_EMAIL = 'chrome-blink-automerger@chromium.org'
BLINK_REPO_URL = 'https://chromium.g... |
ce5cc3d899ef6a07b46794bbcf689ca52e9d59ae | txircd/modules/core/channel_statuses.py | txircd/modules/core/channel_statuses.py | from twisted.plugin import IPlugin
from txircd.module_interface import IModuleData, ModuleData
from zope.interface import implements
class StatusReport(ModuleData):
implements(IPlugin, IModuleData)
name = "ChannelStatusReport"
core = True
def actions(self):
return [ ("channelstatuses", 1, self.statuses) ]
... | from twisted.plugin import IPlugin
from txircd.module_interface import IModuleData, ModuleData
from zope.interface import implements
class StatusReport(ModuleData):
implements(IPlugin, IModuleData)
name = "ChannelStatusReport"
core = True
def actions(self):
return [ ("channelstatuses", 1, self.statuses) ]
... | Fix check on the user's status when retrieving it | Fix check on the user's status when retrieving it
| Python | bsd-3-clause | ElementalAlchemist/txircd,Heufneutje/txircd | from twisted.plugin import IPlugin
from txircd.module_interface import IModuleData, ModuleData
from zope.interface import implements
class StatusReport(ModuleData):
implements(IPlugin, IModuleData)
name = "ChannelStatusReport"
core = True
def actions(self):
return [ ("channelstatuses", 1, self.statuses) ]
... | from twisted.plugin import IPlugin
from txircd.module_interface import IModuleData, ModuleData
from zope.interface import implements
class StatusReport(ModuleData):
implements(IPlugin, IModuleData)
name = "ChannelStatusReport"
core = True
def actions(self):
return [ ("channelstatuses", 1, self.statuses) ]
... | <commit_before>from twisted.plugin import IPlugin
from txircd.module_interface import IModuleData, ModuleData
from zope.interface import implements
class StatusReport(ModuleData):
implements(IPlugin, IModuleData)
name = "ChannelStatusReport"
core = True
def actions(self):
return [ ("channelstatuses", 1, self... | from twisted.plugin import IPlugin
from txircd.module_interface import IModuleData, ModuleData
from zope.interface import implements
class StatusReport(ModuleData):
implements(IPlugin, IModuleData)
name = "ChannelStatusReport"
core = True
def actions(self):
return [ ("channelstatuses", 1, self.statuses) ]
... | from twisted.plugin import IPlugin
from txircd.module_interface import IModuleData, ModuleData
from zope.interface import implements
class StatusReport(ModuleData):
implements(IPlugin, IModuleData)
name = "ChannelStatusReport"
core = True
def actions(self):
return [ ("channelstatuses", 1, self.statuses) ]
... | <commit_before>from twisted.plugin import IPlugin
from txircd.module_interface import IModuleData, ModuleData
from zope.interface import implements
class StatusReport(ModuleData):
implements(IPlugin, IModuleData)
name = "ChannelStatusReport"
core = True
def actions(self):
return [ ("channelstatuses", 1, self... |
199a64fbed87a8ae43469bb48f8a4e16579f0b64 | partner_coc/__openerp__.py | partner_coc/__openerp__.py | # -*- coding: utf-8 -*-
# Copyright 2018 Onestein (<http://www.onestein.eu>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
'name': 'Partner CoC',
'summary': "Adds a field 'Chamber Of Commerce Registration Number' to "
"partner",
'version': '8.0.1.0.0',
'category': 'W... | # -*- coding: utf-8 -*-
# Copyright 2018 Onestein (<http://www.onestein.eu>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
'name': 'Partner CoC',
'summary': "Adds a field 'Chamber Of Commerce Registration Number' to "
"partner",
'version': '8.0.1.0.0',
'category': 'W... | Set website in manifest to OCA repository | [FIX] Set website in manifest to OCA repository | Python | agpl-3.0 | acsone/partner-contact | # -*- coding: utf-8 -*-
# Copyright 2018 Onestein (<http://www.onestein.eu>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
'name': 'Partner CoC',
'summary': "Adds a field 'Chamber Of Commerce Registration Number' to "
"partner",
'version': '8.0.1.0.0',
'category': 'W... | # -*- coding: utf-8 -*-
# Copyright 2018 Onestein (<http://www.onestein.eu>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
'name': 'Partner CoC',
'summary': "Adds a field 'Chamber Of Commerce Registration Number' to "
"partner",
'version': '8.0.1.0.0',
'category': 'W... | <commit_before># -*- coding: utf-8 -*-
# Copyright 2018 Onestein (<http://www.onestein.eu>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
'name': 'Partner CoC',
'summary': "Adds a field 'Chamber Of Commerce Registration Number' to "
"partner",
'version': '8.0.1.0.0',
... | # -*- coding: utf-8 -*-
# Copyright 2018 Onestein (<http://www.onestein.eu>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
'name': 'Partner CoC',
'summary': "Adds a field 'Chamber Of Commerce Registration Number' to "
"partner",
'version': '8.0.1.0.0',
'category': 'W... | # -*- coding: utf-8 -*-
# Copyright 2018 Onestein (<http://www.onestein.eu>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
'name': 'Partner CoC',
'summary': "Adds a field 'Chamber Of Commerce Registration Number' to "
"partner",
'version': '8.0.1.0.0',
'category': 'W... | <commit_before># -*- coding: utf-8 -*-
# Copyright 2018 Onestein (<http://www.onestein.eu>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
'name': 'Partner CoC',
'summary': "Adds a field 'Chamber Of Commerce Registration Number' to "
"partner",
'version': '8.0.1.0.0',
... |
256661c4a78f1238fd032abd53185ed80f787f7f | incuna_test_utils/testcases.py | incuna_test_utils/testcases.py | from django.contrib.auth.models import AnonymousUser
from django.db.models.base import ModelBase
from django.test import TestCase
from rest_framework.test import APIRequestFactory, force_authenticate
from . import factories
class AbstractModelTestCase(TestCase):
"""
Base class for tests of model mixins. To use, ... | from django.contrib.auth.models import AnonymousUser
from django.db.models.base import ModelBase
from django.test import TestCase
from rest_framework.test import APIRequestFactory, force_authenticate
from . import factories
class AbstractModelTestCase(TestCase):
"""
Base class for tests of model mixins. To use, ... | Remove python 3 syntax for python 2 compatibility | Remove python 3 syntax for python 2 compatibility
| Python | bsd-2-clause | incuna/incuna-test-utils,incuna/incuna-test-utils | from django.contrib.auth.models import AnonymousUser
from django.db.models.base import ModelBase
from django.test import TestCase
from rest_framework.test import APIRequestFactory, force_authenticate
from . import factories
class AbstractModelTestCase(TestCase):
"""
Base class for tests of model mixins. To use, ... | from django.contrib.auth.models import AnonymousUser
from django.db.models.base import ModelBase
from django.test import TestCase
from rest_framework.test import APIRequestFactory, force_authenticate
from . import factories
class AbstractModelTestCase(TestCase):
"""
Base class for tests of model mixins. To use, ... | <commit_before>from django.contrib.auth.models import AnonymousUser
from django.db.models.base import ModelBase
from django.test import TestCase
from rest_framework.test import APIRequestFactory, force_authenticate
from . import factories
class AbstractModelTestCase(TestCase):
"""
Base class for tests of model m... | from django.contrib.auth.models import AnonymousUser
from django.db.models.base import ModelBase
from django.test import TestCase
from rest_framework.test import APIRequestFactory, force_authenticate
from . import factories
class AbstractModelTestCase(TestCase):
"""
Base class for tests of model mixins. To use, ... | from django.contrib.auth.models import AnonymousUser
from django.db.models.base import ModelBase
from django.test import TestCase
from rest_framework.test import APIRequestFactory, force_authenticate
from . import factories
class AbstractModelTestCase(TestCase):
"""
Base class for tests of model mixins. To use, ... | <commit_before>from django.contrib.auth.models import AnonymousUser
from django.db.models.base import ModelBase
from django.test import TestCase
from rest_framework.test import APIRequestFactory, force_authenticate
from . import factories
class AbstractModelTestCase(TestCase):
"""
Base class for tests of model m... |
ecbdb0389feb18d30524ab071db69a184710954d | past/types/__init__.py | past/types/__init__.py | from past import utils
if utils.PY2:
import __builtin__
basestring = __builtin__.basestring
dict = __builtin__.dict
str = __builtin__.str
long = __builtin__.long
unicode = __builtin__.unicode
__all__ = []
else:
from .basestring import basestring
from .olddict import olddict as dict
... | from past import utils
if utils.PY2:
import __builtin__
basestring = __builtin__.basestring
dict = __builtin__.dict
str = __builtin__.str
long = __builtin__.long
unicode = __builtin__.unicode
__all__ = []
else:
from .basestring import basestring
from .olddict import olddict
from... | Fix imports of past.builtins types | Fix imports of past.builtins types
| Python | mit | michaelpacer/python-future,krischer/python-future,PythonCharmers/python-future,QuLogic/python-future,PythonCharmers/python-future,krischer/python-future,QuLogic/python-future,michaelpacer/python-future | from past import utils
if utils.PY2:
import __builtin__
basestring = __builtin__.basestring
dict = __builtin__.dict
str = __builtin__.str
long = __builtin__.long
unicode = __builtin__.unicode
__all__ = []
else:
from .basestring import basestring
from .olddict import olddict as dict
... | from past import utils
if utils.PY2:
import __builtin__
basestring = __builtin__.basestring
dict = __builtin__.dict
str = __builtin__.str
long = __builtin__.long
unicode = __builtin__.unicode
__all__ = []
else:
from .basestring import basestring
from .olddict import olddict
from... | <commit_before>from past import utils
if utils.PY2:
import __builtin__
basestring = __builtin__.basestring
dict = __builtin__.dict
str = __builtin__.str
long = __builtin__.long
unicode = __builtin__.unicode
__all__ = []
else:
from .basestring import basestring
from .olddict import o... | from past import utils
if utils.PY2:
import __builtin__
basestring = __builtin__.basestring
dict = __builtin__.dict
str = __builtin__.str
long = __builtin__.long
unicode = __builtin__.unicode
__all__ = []
else:
from .basestring import basestring
from .olddict import olddict
from... | from past import utils
if utils.PY2:
import __builtin__
basestring = __builtin__.basestring
dict = __builtin__.dict
str = __builtin__.str
long = __builtin__.long
unicode = __builtin__.unicode
__all__ = []
else:
from .basestring import basestring
from .olddict import olddict as dict
... | <commit_before>from past import utils
if utils.PY2:
import __builtin__
basestring = __builtin__.basestring
dict = __builtin__.dict
str = __builtin__.str
long = __builtin__.long
unicode = __builtin__.unicode
__all__ = []
else:
from .basestring import basestring
from .olddict import o... |
e86901ac2b074d42d2e388353bbe60fcdd8f0240 | wagtail/contrib/postgres_search/apps.py | wagtail/contrib/postgres_search/apps.py | from django.apps import AppConfig
from django.core.checks import Error, Tags, register
from .utils import get_postgresql_connections, set_weights
class PostgresSearchConfig(AppConfig):
name = 'wagtail.contrib.postgres_search'
def ready(self):
@register(Tags.compatibility, Tags.database)
def ... | from django.apps import AppConfig
from django.core.checks import Error, Tags, register
from .utils import get_postgresql_connections, set_weights
class PostgresSearchConfig(AppConfig):
name = 'wagtail.contrib.postgres_search'
default_auto_field = 'django.db.models.AutoField'
def ready(self):
@re... | Set default_auto_field in wagtail.contrib.postgres_search AppConfig | Set default_auto_field in wagtail.contrib.postgres_search AppConfig
Add default_auto_field = 'django.db.models.AutoField'
Co-authored-by: Nick Moreton <7f1a4658c80dbc9331efe1b3861c4063f4838748@torchbox.com> | Python | bsd-3-clause | jnns/wagtail,zerolab/wagtail,gasman/wagtail,gasman/wagtail,gasman/wagtail,rsalmaso/wagtail,rsalmaso/wagtail,thenewguy/wagtail,thenewguy/wagtail,jnns/wagtail,jnns/wagtail,rsalmaso/wagtail,wagtail/wagtail,mixxorz/wagtail,torchbox/wagtail,jnns/wagtail,gasman/wagtail,thenewguy/wagtail,thenewguy/wagtail,wagtail/wagtail,mixx... | from django.apps import AppConfig
from django.core.checks import Error, Tags, register
from .utils import get_postgresql_connections, set_weights
class PostgresSearchConfig(AppConfig):
name = 'wagtail.contrib.postgres_search'
def ready(self):
@register(Tags.compatibility, Tags.database)
def ... | from django.apps import AppConfig
from django.core.checks import Error, Tags, register
from .utils import get_postgresql_connections, set_weights
class PostgresSearchConfig(AppConfig):
name = 'wagtail.contrib.postgres_search'
default_auto_field = 'django.db.models.AutoField'
def ready(self):
@re... | <commit_before>from django.apps import AppConfig
from django.core.checks import Error, Tags, register
from .utils import get_postgresql_connections, set_weights
class PostgresSearchConfig(AppConfig):
name = 'wagtail.contrib.postgres_search'
def ready(self):
@register(Tags.compatibility, Tags.databas... | from django.apps import AppConfig
from django.core.checks import Error, Tags, register
from .utils import get_postgresql_connections, set_weights
class PostgresSearchConfig(AppConfig):
name = 'wagtail.contrib.postgres_search'
default_auto_field = 'django.db.models.AutoField'
def ready(self):
@re... | from django.apps import AppConfig
from django.core.checks import Error, Tags, register
from .utils import get_postgresql_connections, set_weights
class PostgresSearchConfig(AppConfig):
name = 'wagtail.contrib.postgres_search'
def ready(self):
@register(Tags.compatibility, Tags.database)
def ... | <commit_before>from django.apps import AppConfig
from django.core.checks import Error, Tags, register
from .utils import get_postgresql_connections, set_weights
class PostgresSearchConfig(AppConfig):
name = 'wagtail.contrib.postgres_search'
def ready(self):
@register(Tags.compatibility, Tags.databas... |
fc60bdfe1ee3c4baef916532bb88aeb1787cd8c7 | molo/core/api/constants.py | molo/core/api/constants.py | from collections import namedtuple
CONTENT_TYPES = [
("core.ArticlePage", "Article"),
("core.SectionPage", "Section"),
]
ENDPOINTS = [
("page", "api/v1/pages")
]
SESSION_VARS = namedtuple(
"SESSION_VARS",
["first", "second", ]
)
ARTICLE_SESSION_VARS = SESSION_VARS(
first=("url", "article_con... | from collections import namedtuple
CONTENT_TYPES = [
("core.ArticlePage", "Article"),
("core.SectionPage", "Section"),
]
ENDPOINTS = [
("page", "api/v1/pages")
]
SESSION_VARS = namedtuple(
"SESSION_VARS",
["first", "second", ]
)
ARTICLE_SESSION_VARS = SESSION_VARS(
first=("url", "article_con... | Add section session varialbes to facilitate redirects | Add section session varialbes to facilitate redirects
| Python | bsd-2-clause | praekelt/molo,praekelt/molo,praekelt/molo,praekelt/molo | from collections import namedtuple
CONTENT_TYPES = [
("core.ArticlePage", "Article"),
("core.SectionPage", "Section"),
]
ENDPOINTS = [
("page", "api/v1/pages")
]
SESSION_VARS = namedtuple(
"SESSION_VARS",
["first", "second", ]
)
ARTICLE_SESSION_VARS = SESSION_VARS(
first=("url", "article_con... | from collections import namedtuple
CONTENT_TYPES = [
("core.ArticlePage", "Article"),
("core.SectionPage", "Section"),
]
ENDPOINTS = [
("page", "api/v1/pages")
]
SESSION_VARS = namedtuple(
"SESSION_VARS",
["first", "second", ]
)
ARTICLE_SESSION_VARS = SESSION_VARS(
first=("url", "article_con... | <commit_before>from collections import namedtuple
CONTENT_TYPES = [
("core.ArticlePage", "Article"),
("core.SectionPage", "Section"),
]
ENDPOINTS = [
("page", "api/v1/pages")
]
SESSION_VARS = namedtuple(
"SESSION_VARS",
["first", "second", ]
)
ARTICLE_SESSION_VARS = SESSION_VARS(
first=("url... | from collections import namedtuple
CONTENT_TYPES = [
("core.ArticlePage", "Article"),
("core.SectionPage", "Section"),
]
ENDPOINTS = [
("page", "api/v1/pages")
]
SESSION_VARS = namedtuple(
"SESSION_VARS",
["first", "second", ]
)
ARTICLE_SESSION_VARS = SESSION_VARS(
first=("url", "article_con... | from collections import namedtuple
CONTENT_TYPES = [
("core.ArticlePage", "Article"),
("core.SectionPage", "Section"),
]
ENDPOINTS = [
("page", "api/v1/pages")
]
SESSION_VARS = namedtuple(
"SESSION_VARS",
["first", "second", ]
)
ARTICLE_SESSION_VARS = SESSION_VARS(
first=("url", "article_con... | <commit_before>from collections import namedtuple
CONTENT_TYPES = [
("core.ArticlePage", "Article"),
("core.SectionPage", "Section"),
]
ENDPOINTS = [
("page", "api/v1/pages")
]
SESSION_VARS = namedtuple(
"SESSION_VARS",
["first", "second", ]
)
ARTICLE_SESSION_VARS = SESSION_VARS(
first=("url... |
cad23e7c73a8f33b7aa841d89d5311030d1c2262 | databridge/helpers.py | databridge/helpers.py | from requests.adapters import HTTPAdapter
RetryAdapter = HTTPAdapter(max_retries=5)
def create_db_url(username, passwd, host, port):
if username and passwd:
cr = '{}:{}@'.format(username, passwd)
else:
cr = ''
return 'http://{}{}:{}/'.format(
cr, host, port
)
... | from requests.adapters import HTTPAdapter
RetryAdapter = HTTPAdapter(max_retries=5,
pool_connections=100,
pool_maxsize=50)
def create_db_url(username, passwd, host, port):
if username and passwd:
cr = '{}:{}@'.format(username, passwd)
else:
... | Change adapter; fix filter func | Change adapter; fix filter func
| Python | apache-2.0 | yshalenyk/databridge | from requests.adapters import HTTPAdapter
RetryAdapter = HTTPAdapter(max_retries=5)
def create_db_url(username, passwd, host, port):
if username and passwd:
cr = '{}:{}@'.format(username, passwd)
else:
cr = ''
return 'http://{}{}:{}/'.format(
cr, host, port
)
... | from requests.adapters import HTTPAdapter
RetryAdapter = HTTPAdapter(max_retries=5,
pool_connections=100,
pool_maxsize=50)
def create_db_url(username, passwd, host, port):
if username and passwd:
cr = '{}:{}@'.format(username, passwd)
else:
... | <commit_before>from requests.adapters import HTTPAdapter
RetryAdapter = HTTPAdapter(max_retries=5)
def create_db_url(username, passwd, host, port):
if username and passwd:
cr = '{}:{}@'.format(username, passwd)
else:
cr = ''
return 'http://{}{}:{}/'.format(
cr, host, port... | from requests.adapters import HTTPAdapter
RetryAdapter = HTTPAdapter(max_retries=5,
pool_connections=100,
pool_maxsize=50)
def create_db_url(username, passwd, host, port):
if username and passwd:
cr = '{}:{}@'.format(username, passwd)
else:
... | from requests.adapters import HTTPAdapter
RetryAdapter = HTTPAdapter(max_retries=5)
def create_db_url(username, passwd, host, port):
if username and passwd:
cr = '{}:{}@'.format(username, passwd)
else:
cr = ''
return 'http://{}{}:{}/'.format(
cr, host, port
)
... | <commit_before>from requests.adapters import HTTPAdapter
RetryAdapter = HTTPAdapter(max_retries=5)
def create_db_url(username, passwd, host, port):
if username and passwd:
cr = '{}:{}@'.format(username, passwd)
else:
cr = ''
return 'http://{}{}:{}/'.format(
cr, host, port... |
3f325e7820661313b69f6e410987caaff1ac7d96 | python/VTK.py | python/VTK.py | """
VTK.py
An VTK module for python that includes:
Wrappers for all the VTK classes that are wrappable
A Tkinter vtkRenderWidget (works like the tcl vtkTkRenderWidget)
The vtkImageViewerWidget and vtkImageWindowWidget are coming soon.
Classes to assist in moving data between python and VTK.
"""
from vtkpython impo... | """
VTK.py
An VTK module for python that includes:
Wrappers for all the VTK classes that are wrappable
A Tkinter vtkRenderWidget (works like the tcl vtkTkRenderWidget)
The vtkImageViewerWidget and vtkImageWindowWidget are coming soon.
Classes to assist in moving data between python and VTK.
"""
from vtkpython impo... | Remove dependancy on vtkVersion Place a try/except around modules that required Numeric | FIX: Remove dependancy on vtkVersion
Place a try/except around modules that required Numeric
| Python | bsd-3-clause | sumedhasingla/VTK,aashish24/VTK-old,mspark93/VTK,hendradarwin/VTK,cjh1/VTK,gram526/VTK,SimVascular/VTK,demarle/VTK,Wuteyan/VTK,msmolens/VTK,SimVascular/VTK,SimVascular/VTK,jeffbaumes/jeffbaumes-vtk,sankhesh/VTK,ashray/VTK-EVM,SimVascular/VTK,biddisco/VTK,demarle/VTK,spthaolt/VTK,sumedhasingla/VTK,candy7393/VTK,mspark93... | """
VTK.py
An VTK module for python that includes:
Wrappers for all the VTK classes that are wrappable
A Tkinter vtkRenderWidget (works like the tcl vtkTkRenderWidget)
The vtkImageViewerWidget and vtkImageWindowWidget are coming soon.
Classes to assist in moving data between python and VTK.
"""
from vtkpython impo... | """
VTK.py
An VTK module for python that includes:
Wrappers for all the VTK classes that are wrappable
A Tkinter vtkRenderWidget (works like the tcl vtkTkRenderWidget)
The vtkImageViewerWidget and vtkImageWindowWidget are coming soon.
Classes to assist in moving data between python and VTK.
"""
from vtkpython impo... | <commit_before>"""
VTK.py
An VTK module for python that includes:
Wrappers for all the VTK classes that are wrappable
A Tkinter vtkRenderWidget (works like the tcl vtkTkRenderWidget)
The vtkImageViewerWidget and vtkImageWindowWidget are coming soon.
Classes to assist in moving data between python and VTK.
"""
from... | """
VTK.py
An VTK module for python that includes:
Wrappers for all the VTK classes that are wrappable
A Tkinter vtkRenderWidget (works like the tcl vtkTkRenderWidget)
The vtkImageViewerWidget and vtkImageWindowWidget are coming soon.
Classes to assist in moving data between python and VTK.
"""
from vtkpython impo... | """
VTK.py
An VTK module for python that includes:
Wrappers for all the VTK classes that are wrappable
A Tkinter vtkRenderWidget (works like the tcl vtkTkRenderWidget)
The vtkImageViewerWidget and vtkImageWindowWidget are coming soon.
Classes to assist in moving data between python and VTK.
"""
from vtkpython impo... | <commit_before>"""
VTK.py
An VTK module for python that includes:
Wrappers for all the VTK classes that are wrappable
A Tkinter vtkRenderWidget (works like the tcl vtkTkRenderWidget)
The vtkImageViewerWidget and vtkImageWindowWidget are coming soon.
Classes to assist in moving data between python and VTK.
"""
from... |
ef011470ad361ca50b638461935d344392976821 | pywwt/misc.py | pywwt/misc.py | from bs4 import BeautifulSoup
class WWTException(Exception):
pass
def handle_response(resp_str):
soup = BeautifulSoup(resp_str)
success = soup.layerapi.status.string
if success != "Success":
raise WWTException(success)
def parse_kwargs(params, kwargs):
if "date_time" in kwargs:
pa... | from bs4 import BeautifulSoup
class WWTException(Exception):
pass
def handle_response(resp_str):
soup = BeautifulSoup(resp_str)
try:
success = soup.layerapi.status.string
if success != "Success":
raise WWTException(success)
except AttributeError:
error = soup.html.b... | Handle other kinds of errors. | Handle other kinds of errors.
| Python | bsd-3-clause | jzuhone/pywwt,vga101/pywwt,vga101/pywwt,jzuhone/pywwt | from bs4 import BeautifulSoup
class WWTException(Exception):
pass
def handle_response(resp_str):
soup = BeautifulSoup(resp_str)
success = soup.layerapi.status.string
if success != "Success":
raise WWTException(success)
def parse_kwargs(params, kwargs):
if "date_time" in kwargs:
pa... | from bs4 import BeautifulSoup
class WWTException(Exception):
pass
def handle_response(resp_str):
soup = BeautifulSoup(resp_str)
try:
success = soup.layerapi.status.string
if success != "Success":
raise WWTException(success)
except AttributeError:
error = soup.html.b... | <commit_before>from bs4 import BeautifulSoup
class WWTException(Exception):
pass
def handle_response(resp_str):
soup = BeautifulSoup(resp_str)
success = soup.layerapi.status.string
if success != "Success":
raise WWTException(success)
def parse_kwargs(params, kwargs):
if "date_time" in kwa... | from bs4 import BeautifulSoup
class WWTException(Exception):
pass
def handle_response(resp_str):
soup = BeautifulSoup(resp_str)
try:
success = soup.layerapi.status.string
if success != "Success":
raise WWTException(success)
except AttributeError:
error = soup.html.b... | from bs4 import BeautifulSoup
class WWTException(Exception):
pass
def handle_response(resp_str):
soup = BeautifulSoup(resp_str)
success = soup.layerapi.status.string
if success != "Success":
raise WWTException(success)
def parse_kwargs(params, kwargs):
if "date_time" in kwargs:
pa... | <commit_before>from bs4 import BeautifulSoup
class WWTException(Exception):
pass
def handle_response(resp_str):
soup = BeautifulSoup(resp_str)
success = soup.layerapi.status.string
if success != "Success":
raise WWTException(success)
def parse_kwargs(params, kwargs):
if "date_time" in kwa... |
73eacdde5067e60f40af000237d198748c5b3cc7 | PYNWapp/PYNWsite/models.py | PYNWapp/PYNWsite/models.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from django.utils import timezone
# Create your models here.
class Event(models.Model):
name = models.CharField(max_length=200)
location = models.CharField(max_length=300)
event_date = models.DateTimeField('event... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from django.utils import timezone
# Create your models here.
class Event(models.Model):
name = models.CharField(max_length=200)
location = models.CharField(max_length=300)
event_date = models.DateTimeField('event... | Fix plural name for Categories model. | Fix plural name for Categories model.
| Python | mit | PythonNorthwestEngland/pynw-website,PythonNorthwestEngland/pynw-website | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from django.utils import timezone
# Create your models here.
class Event(models.Model):
name = models.CharField(max_length=200)
location = models.CharField(max_length=300)
event_date = models.DateTimeField('event... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from django.utils import timezone
# Create your models here.
class Event(models.Model):
name = models.CharField(max_length=200)
location = models.CharField(max_length=300)
event_date = models.DateTimeField('event... | <commit_before># -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from django.utils import timezone
# Create your models here.
class Event(models.Model):
name = models.CharField(max_length=200)
location = models.CharField(max_length=300)
event_date = models.DateT... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from django.utils import timezone
# Create your models here.
class Event(models.Model):
name = models.CharField(max_length=200)
location = models.CharField(max_length=300)
event_date = models.DateTimeField('event... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from django.utils import timezone
# Create your models here.
class Event(models.Model):
name = models.CharField(max_length=200)
location = models.CharField(max_length=300)
event_date = models.DateTimeField('event... | <commit_before># -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from django.utils import timezone
# Create your models here.
class Event(models.Model):
name = models.CharField(max_length=200)
location = models.CharField(max_length=300)
event_date = models.DateT... |
1ccb1e5aa3dbf7b39f807c125a753cb44664cd56 | src/armet/connectors/django/__init__.py | src/armet/connectors/django/__init__.py | # -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals, division
__all__ = [
]
def is_available(*capacities):
"""
Detects if the environment is available for use in
the (optionally) specified capacities.
"""
try:
# Attempted import.
import django
... | # -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals, division
__all__ = [
]
def is_available(*capacities):
"""
Detects if the environment is available for use in
the (optionally) specified capacities.
"""
try:
# Attempted import.
import django
exc... | Fix is_available method in django; proper exception handling for use checking. | Fix is_available method in django; proper exception handling for use checking.
| Python | mit | armet/python-armet | # -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals, division
__all__ = [
]
def is_available(*capacities):
"""
Detects if the environment is available for use in
the (optionally) specified capacities.
"""
try:
# Attempted import.
import django
... | # -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals, division
__all__ = [
]
def is_available(*capacities):
"""
Detects if the environment is available for use in
the (optionally) specified capacities.
"""
try:
# Attempted import.
import django
exc... | <commit_before># -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals, division
__all__ = [
]
def is_available(*capacities):
"""
Detects if the environment is available for use in
the (optionally) specified capacities.
"""
try:
# Attempted import.
import ... | # -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals, division
__all__ = [
]
def is_available(*capacities):
"""
Detects if the environment is available for use in
the (optionally) specified capacities.
"""
try:
# Attempted import.
import django
exc... | # -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals, division
__all__ = [
]
def is_available(*capacities):
"""
Detects if the environment is available for use in
the (optionally) specified capacities.
"""
try:
# Attempted import.
import django
... | <commit_before># -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals, division
__all__ = [
]
def is_available(*capacities):
"""
Detects if the environment is available for use in
the (optionally) specified capacities.
"""
try:
# Attempted import.
import ... |
a31a46053df5e0b86b07b95ef5f460dcb2c12f5f | poppy/transport/app.py | poppy/transport/app.py | # Copyright (c) 2014 Rackspace, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | # Copyright (c) 2014 Rackspace, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | Add extra config file env variable option | Add extra config file env variable option
Change-Id: Ic88b442098eff0c2e3a8cc3cb527fa3d29f085ea
| Python | apache-2.0 | stackforge/poppy,stackforge/poppy,openstack/poppy,openstack/poppy,openstack/poppy,stackforge/poppy | # Copyright (c) 2014 Rackspace, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | # Copyright (c) 2014 Rackspace, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | <commit_before># Copyright (c) 2014 Rackspace, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | # Copyright (c) 2014 Rackspace, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | # Copyright (c) 2014 Rackspace, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | <commit_before># Copyright (c) 2014 Rackspace, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... |
53a93d4d1c0029e5d616e225b1b86672b1e0f7c8 | falafel/mappers/hostname.py | falafel/mappers/hostname.py | from .. import Mapper, mapper
@mapper("facts")
@mapper("hostname")
class Hostname(Mapper):
def parse_content(self, content):
fqdn = None
if len(content) == 1:
fqdn = content[0].strip()
elif len(content) > 1:
for line in content:
if line.startswith('... | from .. import Mapper, mapper
@mapper("hostname")
class Hostname(Mapper):
"""Class for parsing ``hostname`` command output.
Attributes:
fqdn: The fully qualified domain name of the host. The same to
``hostname`` when domain part is not set.
hostname: The hostname.
domain: ... | Remove the decorate `facts` from mapper `Hostname` | Remove the decorate `facts` from mapper `Hostname`
- And update the class comment
| Python | apache-2.0 | RedHatInsights/insights-core,RedHatInsights/insights-core | from .. import Mapper, mapper
@mapper("facts")
@mapper("hostname")
class Hostname(Mapper):
def parse_content(self, content):
fqdn = None
if len(content) == 1:
fqdn = content[0].strip()
elif len(content) > 1:
for line in content:
if line.startswith('... | from .. import Mapper, mapper
@mapper("hostname")
class Hostname(Mapper):
"""Class for parsing ``hostname`` command output.
Attributes:
fqdn: The fully qualified domain name of the host. The same to
``hostname`` when domain part is not set.
hostname: The hostname.
domain: ... | <commit_before>from .. import Mapper, mapper
@mapper("facts")
@mapper("hostname")
class Hostname(Mapper):
def parse_content(self, content):
fqdn = None
if len(content) == 1:
fqdn = content[0].strip()
elif len(content) > 1:
for line in content:
if li... | from .. import Mapper, mapper
@mapper("hostname")
class Hostname(Mapper):
"""Class for parsing ``hostname`` command output.
Attributes:
fqdn: The fully qualified domain name of the host. The same to
``hostname`` when domain part is not set.
hostname: The hostname.
domain: ... | from .. import Mapper, mapper
@mapper("facts")
@mapper("hostname")
class Hostname(Mapper):
def parse_content(self, content):
fqdn = None
if len(content) == 1:
fqdn = content[0].strip()
elif len(content) > 1:
for line in content:
if line.startswith('... | <commit_before>from .. import Mapper, mapper
@mapper("facts")
@mapper("hostname")
class Hostname(Mapper):
def parse_content(self, content):
fqdn = None
if len(content) == 1:
fqdn = content[0].strip()
elif len(content) > 1:
for line in content:
if li... |
a76c7ddc80c3896dd4397b4713de267001706722 | thefederation/migrations/0020_remove_port_from_node_hostnames.py | thefederation/migrations/0020_remove_port_from_node_hostnames.py | # Generated by Django 2.0.13 on 2019-12-29 21:11
from django.db import migrations
from django.db.migrations import RunPython
def forward(apps, schema):
Node = apps.get_model("thefederation", "Node")
for node in Node.objects.filter(host__contains=":"):
node.host = node.host.split(":")[0]
if no... | # Generated by Django 2.0.13 on 2019-12-29 21:11
from django.db import migrations, IntegrityError
from django.db.migrations import RunPython
def forward(apps, schema):
Node = apps.get_model("thefederation", "Node")
for node in Node.objects.filter(host__contains=":"):
node.host = node.host.split(":")[... | Make port removing migrating a bit less flaky | Make port removing migrating a bit less flaky
| Python | agpl-3.0 | jaywink/the-federation.info,jaywink/the-federation.info,jaywink/the-federation.info | # Generated by Django 2.0.13 on 2019-12-29 21:11
from django.db import migrations
from django.db.migrations import RunPython
def forward(apps, schema):
Node = apps.get_model("thefederation", "Node")
for node in Node.objects.filter(host__contains=":"):
node.host = node.host.split(":")[0]
if no... | # Generated by Django 2.0.13 on 2019-12-29 21:11
from django.db import migrations, IntegrityError
from django.db.migrations import RunPython
def forward(apps, schema):
Node = apps.get_model("thefederation", "Node")
for node in Node.objects.filter(host__contains=":"):
node.host = node.host.split(":")[... | <commit_before># Generated by Django 2.0.13 on 2019-12-29 21:11
from django.db import migrations
from django.db.migrations import RunPython
def forward(apps, schema):
Node = apps.get_model("thefederation", "Node")
for node in Node.objects.filter(host__contains=":"):
node.host = node.host.split(":")[0... | # Generated by Django 2.0.13 on 2019-12-29 21:11
from django.db import migrations, IntegrityError
from django.db.migrations import RunPython
def forward(apps, schema):
Node = apps.get_model("thefederation", "Node")
for node in Node.objects.filter(host__contains=":"):
node.host = node.host.split(":")[... | # Generated by Django 2.0.13 on 2019-12-29 21:11
from django.db import migrations
from django.db.migrations import RunPython
def forward(apps, schema):
Node = apps.get_model("thefederation", "Node")
for node in Node.objects.filter(host__contains=":"):
node.host = node.host.split(":")[0]
if no... | <commit_before># Generated by Django 2.0.13 on 2019-12-29 21:11
from django.db import migrations
from django.db.migrations import RunPython
def forward(apps, schema):
Node = apps.get_model("thefederation", "Node")
for node in Node.objects.filter(host__contains=":"):
node.host = node.host.split(":")[0... |
f85a252b44a30f8b793e77c3bf7188ea8058217a | keras/mixed_precision/__init__.py | keras/mixed_precision/__init__.py | # Copyright 2020 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | # Copyright 2020 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | Make mixed precision API available in `keras.mixed_precision`. | Make mixed precision API available in `keras.mixed_precision`.
PiperOrigin-RevId: 433886558
| Python | apache-2.0 | keras-team/keras,keras-team/keras | # Copyright 2020 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | # Copyright 2020 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | <commit_before># Copyright 2020 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... | # Copyright 2020 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | # Copyright 2020 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | <commit_before># Copyright 2020 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... |
22465e0ae238a6584a8549796f4dfbae21db73dc | ooni/tests/test_geoip.py | ooni/tests/test_geoip.py | import os
from twisted.internet import defer
from twisted.trial import unittest
from ooni.tests import is_internet_connected
from ooni.settings import config
from ooni import geoip
class TestGeoIP(unittest.TestCase):
def test_ip_to_location(self):
location = geoip.IPToLocation('8.8.8.8')
assert ... |
from twisted.internet import defer
from twisted.trial import unittest
from ooni.tests import is_internet_connected
from ooni import geoip
class TestGeoIP(unittest.TestCase):
def test_ip_to_location(self):
location = geoip.IPToLocation('8.8.8.8')
assert 'countrycode' in location
assert 'a... | Add unittests for geoip database version | Add unittests for geoip database version
| Python | bsd-2-clause | juga0/ooni-probe,0xPoly/ooni-probe,Karthikeyan-kkk/ooni-probe,juga0/ooni-probe,0xPoly/ooni-probe,Karthikeyan-kkk/ooni-probe,juga0/ooni-probe,0xPoly/ooni-probe,lordappsec/ooni-probe,kdmurray91/ooni-probe,lordappsec/ooni-probe,kdmurray91/ooni-probe,Karthikeyan-kkk/ooni-probe,Karthikeyan-kkk/ooni-probe,lordappsec/ooni-pro... | import os
from twisted.internet import defer
from twisted.trial import unittest
from ooni.tests import is_internet_connected
from ooni.settings import config
from ooni import geoip
class TestGeoIP(unittest.TestCase):
def test_ip_to_location(self):
location = geoip.IPToLocation('8.8.8.8')
assert ... |
from twisted.internet import defer
from twisted.trial import unittest
from ooni.tests import is_internet_connected
from ooni import geoip
class TestGeoIP(unittest.TestCase):
def test_ip_to_location(self):
location = geoip.IPToLocation('8.8.8.8')
assert 'countrycode' in location
assert 'a... | <commit_before>import os
from twisted.internet import defer
from twisted.trial import unittest
from ooni.tests import is_internet_connected
from ooni.settings import config
from ooni import geoip
class TestGeoIP(unittest.TestCase):
def test_ip_to_location(self):
location = geoip.IPToLocation('8.8.8.8')
... |
from twisted.internet import defer
from twisted.trial import unittest
from ooni.tests import is_internet_connected
from ooni import geoip
class TestGeoIP(unittest.TestCase):
def test_ip_to_location(self):
location = geoip.IPToLocation('8.8.8.8')
assert 'countrycode' in location
assert 'a... | import os
from twisted.internet import defer
from twisted.trial import unittest
from ooni.tests import is_internet_connected
from ooni.settings import config
from ooni import geoip
class TestGeoIP(unittest.TestCase):
def test_ip_to_location(self):
location = geoip.IPToLocation('8.8.8.8')
assert ... | <commit_before>import os
from twisted.internet import defer
from twisted.trial import unittest
from ooni.tests import is_internet_connected
from ooni.settings import config
from ooni import geoip
class TestGeoIP(unittest.TestCase):
def test_ip_to_location(self):
location = geoip.IPToLocation('8.8.8.8')
... |
4b202e540babd4044d5ff311a60e97fb8b9f066a | examples/dot_graph.py | examples/dot_graph.py | # Copyright 2013 Mark Dickinson
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | # Copyright 2013 Mark Dickinson
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | Fix Python3-incompatible use of print. | Fix Python3-incompatible use of print.
| Python | apache-2.0 | mdickinson/refcycle | # Copyright 2013 Mark Dickinson
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | # Copyright 2013 Mark Dickinson
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | <commit_before># Copyright 2013 Mark Dickinson
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed... | # Copyright 2013 Mark Dickinson
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | # Copyright 2013 Mark Dickinson
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | <commit_before># Copyright 2013 Mark Dickinson
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed... |
706c2cba61d73a818d389ed709012687e71a9379 | python/rez/cli/__init__.py | python/rez/cli/__init__.py | '''
Utilities for cli tools
'''
import sys
def error(msg):
'''
An error, formatted and printed to stderr
'''
sys.__stderr__.write("Error: %s\n" % msg)
def output(msg):
'''
A result, printed to stdout
'''
sys.__stdout__.write("%s\n" % msg)
def redirect_to_stderr(func):
'''
deco... | '''
Utilities for cli tools
'''
import sys
def error(msg):
'''
An error, formatted and printed to stderr
'''
sys.__stderr__.write("Error: %s\n" % msg)
def output(msg=''):
'''
A result, printed to stdout
'''
sys.__stdout__.write("%s\n" % msg)
def redirect_to_stderr(func):
'''
d... | Fix a bug where rez.cli.output() errors when called without args. should produce an empty line of output. | Fix a bug where rez.cli.output() errors when called without args. should produce an empty line of output.
| Python | apache-2.0 | instinct-vfx/rez,nerdvegas/rez,nerdvegas/rez,instinct-vfx/rez | '''
Utilities for cli tools
'''
import sys
def error(msg):
'''
An error, formatted and printed to stderr
'''
sys.__stderr__.write("Error: %s\n" % msg)
def output(msg):
'''
A result, printed to stdout
'''
sys.__stdout__.write("%s\n" % msg)
def redirect_to_stderr(func):
'''
deco... | '''
Utilities for cli tools
'''
import sys
def error(msg):
'''
An error, formatted and printed to stderr
'''
sys.__stderr__.write("Error: %s\n" % msg)
def output(msg=''):
'''
A result, printed to stdout
'''
sys.__stdout__.write("%s\n" % msg)
def redirect_to_stderr(func):
'''
d... | <commit_before>'''
Utilities for cli tools
'''
import sys
def error(msg):
'''
An error, formatted and printed to stderr
'''
sys.__stderr__.write("Error: %s\n" % msg)
def output(msg):
'''
A result, printed to stdout
'''
sys.__stdout__.write("%s\n" % msg)
def redirect_to_stderr(func):
... | '''
Utilities for cli tools
'''
import sys
def error(msg):
'''
An error, formatted and printed to stderr
'''
sys.__stderr__.write("Error: %s\n" % msg)
def output(msg=''):
'''
A result, printed to stdout
'''
sys.__stdout__.write("%s\n" % msg)
def redirect_to_stderr(func):
'''
d... | '''
Utilities for cli tools
'''
import sys
def error(msg):
'''
An error, formatted and printed to stderr
'''
sys.__stderr__.write("Error: %s\n" % msg)
def output(msg):
'''
A result, printed to stdout
'''
sys.__stdout__.write("%s\n" % msg)
def redirect_to_stderr(func):
'''
deco... | <commit_before>'''
Utilities for cli tools
'''
import sys
def error(msg):
'''
An error, formatted and printed to stderr
'''
sys.__stderr__.write("Error: %s\n" % msg)
def output(msg):
'''
A result, printed to stdout
'''
sys.__stdout__.write("%s\n" % msg)
def redirect_to_stderr(func):
... |
0413977c6f45799599fbd4f197c3c42ef0d0835f | queryexpander/expansion.py | queryexpander/expansion.py | import numpy as np
import pandas as pd
from typing import Tuple, List
from queryexpander.semantic_similarity import CppSemanticSimilarity
class QueryExpander:
def __init__(self, vocabulary_path: str, vocabulary_length: int, sums_cache_file: str, centroids_file_path: str):
self._words: List[str] = pd.read... | import numpy as np
import pandas as pd
from typing import Tuple, List
from queryexpander.semantic_similarity import CppSemanticSimilarity
class QueryExpander:
def __init__(self, vocabulary_path: str, vocabulary_length: int, sums_cache_file: str, centroids_file_path: str):
self._words: List[str] = pd.read... | Fix C++ accelerator constructor invocation | Fix C++ accelerator constructor invocation
| Python | mit | konraddysput/BioDocumentAnalysis | import numpy as np
import pandas as pd
from typing import Tuple, List
from queryexpander.semantic_similarity import CppSemanticSimilarity
class QueryExpander:
def __init__(self, vocabulary_path: str, vocabulary_length: int, sums_cache_file: str, centroids_file_path: str):
self._words: List[str] = pd.read... | import numpy as np
import pandas as pd
from typing import Tuple, List
from queryexpander.semantic_similarity import CppSemanticSimilarity
class QueryExpander:
def __init__(self, vocabulary_path: str, vocabulary_length: int, sums_cache_file: str, centroids_file_path: str):
self._words: List[str] = pd.read... | <commit_before>import numpy as np
import pandas as pd
from typing import Tuple, List
from queryexpander.semantic_similarity import CppSemanticSimilarity
class QueryExpander:
def __init__(self, vocabulary_path: str, vocabulary_length: int, sums_cache_file: str, centroids_file_path: str):
self._words: List... | import numpy as np
import pandas as pd
from typing import Tuple, List
from queryexpander.semantic_similarity import CppSemanticSimilarity
class QueryExpander:
def __init__(self, vocabulary_path: str, vocabulary_length: int, sums_cache_file: str, centroids_file_path: str):
self._words: List[str] = pd.read... | import numpy as np
import pandas as pd
from typing import Tuple, List
from queryexpander.semantic_similarity import CppSemanticSimilarity
class QueryExpander:
def __init__(self, vocabulary_path: str, vocabulary_length: int, sums_cache_file: str, centroids_file_path: str):
self._words: List[str] = pd.read... | <commit_before>import numpy as np
import pandas as pd
from typing import Tuple, List
from queryexpander.semantic_similarity import CppSemanticSimilarity
class QueryExpander:
def __init__(self, vocabulary_path: str, vocabulary_length: int, sums_cache_file: str, centroids_file_path: str):
self._words: List... |
4acb0d36db6777704df7e3bff6c95f38f47ce49a | src/django_email_user_model/backends.py | src/django_email_user_model/backends.py | from django.contrib.auth import get_user_model
class EmailAuthBackend(object):
"""Docstring for EmailAuthBackend """
def authenticate(self, username=None, password=None):
"""todo: Docstring for authenticate
:param username: arg description
:type username: type description
:pa... | from django.contrib.auth import get_user_model
class EmailAuthBackend(object):
"""Docstring for EmailAuthBackend """
def authenticate(self, email=None, password=None, username=None):
"""todo: Docstring for authenticate
:param username: arg description
:type username: type description... | Update auth backend to support kwargs | Update auth backend to support kwargs
| Python | mit | jeffbuttars/django-email-user-model | from django.contrib.auth import get_user_model
class EmailAuthBackend(object):
"""Docstring for EmailAuthBackend """
def authenticate(self, username=None, password=None):
"""todo: Docstring for authenticate
:param username: arg description
:type username: type description
:pa... | from django.contrib.auth import get_user_model
class EmailAuthBackend(object):
"""Docstring for EmailAuthBackend """
def authenticate(self, email=None, password=None, username=None):
"""todo: Docstring for authenticate
:param username: arg description
:type username: type description... | <commit_before>from django.contrib.auth import get_user_model
class EmailAuthBackend(object):
"""Docstring for EmailAuthBackend """
def authenticate(self, username=None, password=None):
"""todo: Docstring for authenticate
:param username: arg description
:type username: type descript... | from django.contrib.auth import get_user_model
class EmailAuthBackend(object):
"""Docstring for EmailAuthBackend """
def authenticate(self, email=None, password=None, username=None):
"""todo: Docstring for authenticate
:param username: arg description
:type username: type description... | from django.contrib.auth import get_user_model
class EmailAuthBackend(object):
"""Docstring for EmailAuthBackend """
def authenticate(self, username=None, password=None):
"""todo: Docstring for authenticate
:param username: arg description
:type username: type description
:pa... | <commit_before>from django.contrib.auth import get_user_model
class EmailAuthBackend(object):
"""Docstring for EmailAuthBackend """
def authenticate(self, username=None, password=None):
"""todo: Docstring for authenticate
:param username: arg description
:type username: type descript... |
047483d9897e75f8284c39e8477a285763da7b37 | heufybot/modules/util/commandhandler.py | heufybot/modules/util/commandhandler.py | from twisted.plugin import IPlugin
from heufybot.moduleinterface import BotModule, IBotModule
from zope.interface import implements
class CommandHandler(BotModule):
implements(IPlugin, IBotModule)
name = "CommandHandler"
def actions(self):
return [ ("message-channel", 1, self.handleChannelMessag... | from twisted.plugin import IPlugin
from heufybot.moduleinterface import BotModule, IBotModule
from zope.interface import implements
class CommandHandler(BotModule):
implements(IPlugin, IBotModule)
name = "CommandHandler"
def actions(self):
return [ ("message-channel", 1, self.handleChannelMessag... | Make the bot respond to its name | Make the bot respond to its name
Implements GH-7
| Python | mit | Heufneutje/PyHeufyBot,Heufneutje/PyHeufyBot | from twisted.plugin import IPlugin
from heufybot.moduleinterface import BotModule, IBotModule
from zope.interface import implements
class CommandHandler(BotModule):
implements(IPlugin, IBotModule)
name = "CommandHandler"
def actions(self):
return [ ("message-channel", 1, self.handleChannelMessag... | from twisted.plugin import IPlugin
from heufybot.moduleinterface import BotModule, IBotModule
from zope.interface import implements
class CommandHandler(BotModule):
implements(IPlugin, IBotModule)
name = "CommandHandler"
def actions(self):
return [ ("message-channel", 1, self.handleChannelMessag... | <commit_before>from twisted.plugin import IPlugin
from heufybot.moduleinterface import BotModule, IBotModule
from zope.interface import implements
class CommandHandler(BotModule):
implements(IPlugin, IBotModule)
name = "CommandHandler"
def actions(self):
return [ ("message-channel", 1, self.hand... | from twisted.plugin import IPlugin
from heufybot.moduleinterface import BotModule, IBotModule
from zope.interface import implements
class CommandHandler(BotModule):
implements(IPlugin, IBotModule)
name = "CommandHandler"
def actions(self):
return [ ("message-channel", 1, self.handleChannelMessag... | from twisted.plugin import IPlugin
from heufybot.moduleinterface import BotModule, IBotModule
from zope.interface import implements
class CommandHandler(BotModule):
implements(IPlugin, IBotModule)
name = "CommandHandler"
def actions(self):
return [ ("message-channel", 1, self.handleChannelMessag... | <commit_before>from twisted.plugin import IPlugin
from heufybot.moduleinterface import BotModule, IBotModule
from zope.interface import implements
class CommandHandler(BotModule):
implements(IPlugin, IBotModule)
name = "CommandHandler"
def actions(self):
return [ ("message-channel", 1, self.hand... |
cbbf178a59561e828214ff88e0c73ec0716fa926 | tests/test_ensure_do_cleanups.py | tests/test_ensure_do_cleanups.py | from unittesting import DeferrableTestCase
class TestDoCleanups(DeferrableTestCase):
def test_ensure_do_cleanups_works(self):
messages = []
def work(message):
messages.append(message)
self.addCleanup(work, 1)
yield from self.doCleanups()
self.assertEqual(mes... | from unittesting import DeferrableTestCase
class TestExplicitDoCleanups(DeferrableTestCase):
def test_manually_calling_do_cleanups_works(self):
messages = []
def work(message):
messages.append(message)
self.addCleanup(work, 1)
yield from self.doCleanups()
se... | Test implicit `doCleanups` on tearDown | Test implicit `doCleanups` on tearDown
| Python | mit | randy3k/UnitTesting,randy3k/UnitTesting,randy3k/UnitTesting,randy3k/UnitTesting | from unittesting import DeferrableTestCase
class TestDoCleanups(DeferrableTestCase):
def test_ensure_do_cleanups_works(self):
messages = []
def work(message):
messages.append(message)
self.addCleanup(work, 1)
yield from self.doCleanups()
self.assertEqual(mes... | from unittesting import DeferrableTestCase
class TestExplicitDoCleanups(DeferrableTestCase):
def test_manually_calling_do_cleanups_works(self):
messages = []
def work(message):
messages.append(message)
self.addCleanup(work, 1)
yield from self.doCleanups()
se... | <commit_before>from unittesting import DeferrableTestCase
class TestDoCleanups(DeferrableTestCase):
def test_ensure_do_cleanups_works(self):
messages = []
def work(message):
messages.append(message)
self.addCleanup(work, 1)
yield from self.doCleanups()
self.... | from unittesting import DeferrableTestCase
class TestExplicitDoCleanups(DeferrableTestCase):
def test_manually_calling_do_cleanups_works(self):
messages = []
def work(message):
messages.append(message)
self.addCleanup(work, 1)
yield from self.doCleanups()
se... | from unittesting import DeferrableTestCase
class TestDoCleanups(DeferrableTestCase):
def test_ensure_do_cleanups_works(self):
messages = []
def work(message):
messages.append(message)
self.addCleanup(work, 1)
yield from self.doCleanups()
self.assertEqual(mes... | <commit_before>from unittesting import DeferrableTestCase
class TestDoCleanups(DeferrableTestCase):
def test_ensure_do_cleanups_works(self):
messages = []
def work(message):
messages.append(message)
self.addCleanup(work, 1)
yield from self.doCleanups()
self.... |
27f5676656e7507883ba365d2639e5f3cb5b0b58 | snippets/keras_testing.py | snippets/keras_testing.py | from keras.models import Sequential
from keras.layers import Dense, Dropout
import sys
import numpy as np
def main():
input_filename = sys.argv[1]
training = np.loadtxt('data/%s.csv' % input_filename, delimiter=',')
test = np.loadtxt('data/%s_test.csv' % input_filename, delimiter=',')
y_train = traini... | from keras.models import Sequential
from keras.layers import Dense, Dropout
import sys
import numpy as np
def main():
input_filename = sys.argv[1]
num_networks = int(sys.argv[2])
training = np.loadtxt('data/%s.csv' % input_filename, delimiter=',')
test = np.loadtxt('data/%s_test.csv' % input_filename,... | Tweak parameters and allow runs over multiple networks | Tweak parameters and allow runs over multiple networks
| Python | mit | farthir/msc-project | from keras.models import Sequential
from keras.layers import Dense, Dropout
import sys
import numpy as np
def main():
input_filename = sys.argv[1]
training = np.loadtxt('data/%s.csv' % input_filename, delimiter=',')
test = np.loadtxt('data/%s_test.csv' % input_filename, delimiter=',')
y_train = traini... | from keras.models import Sequential
from keras.layers import Dense, Dropout
import sys
import numpy as np
def main():
input_filename = sys.argv[1]
num_networks = int(sys.argv[2])
training = np.loadtxt('data/%s.csv' % input_filename, delimiter=',')
test = np.loadtxt('data/%s_test.csv' % input_filename,... | <commit_before>from keras.models import Sequential
from keras.layers import Dense, Dropout
import sys
import numpy as np
def main():
input_filename = sys.argv[1]
training = np.loadtxt('data/%s.csv' % input_filename, delimiter=',')
test = np.loadtxt('data/%s_test.csv' % input_filename, delimiter=',')
y... | from keras.models import Sequential
from keras.layers import Dense, Dropout
import sys
import numpy as np
def main():
input_filename = sys.argv[1]
num_networks = int(sys.argv[2])
training = np.loadtxt('data/%s.csv' % input_filename, delimiter=',')
test = np.loadtxt('data/%s_test.csv' % input_filename,... | from keras.models import Sequential
from keras.layers import Dense, Dropout
import sys
import numpy as np
def main():
input_filename = sys.argv[1]
training = np.loadtxt('data/%s.csv' % input_filename, delimiter=',')
test = np.loadtxt('data/%s_test.csv' % input_filename, delimiter=',')
y_train = traini... | <commit_before>from keras.models import Sequential
from keras.layers import Dense, Dropout
import sys
import numpy as np
def main():
input_filename = sys.argv[1]
training = np.loadtxt('data/%s.csv' % input_filename, delimiter=',')
test = np.loadtxt('data/%s_test.csv' % input_filename, delimiter=',')
y... |
8b1516e638244824b1eafed7dc4abb2dc087ec74 | nuts/nuts.py | nuts/nuts.py | #!/usr/bin/env python2
import os
import sys
import argparse
import logging
import datetime
from src.application.Logger import Logger
from src.application.ValidationController import ValidationController
from src.application.TestController import TestController
def main(argv):
logger = Logger()
parser = argpa... | #!/usr/bin/env python2
import os
import sys
import argparse
import logging
import datetime
import colorama
from src.application.Logger import Logger
from src.application.ValidationController import ValidationController
from src.application.TestController import TestController
def main(argv):
colorama.init()
... | Add colorama for coloring on windows | Add colorama for coloring on windows
Add the module colorama that makes ANSI escape character sequences work under MS Windows. The coloring is used to give a better overview about the testresults
| Python | mit | HSRNetwork/Nuts | #!/usr/bin/env python2
import os
import sys
import argparse
import logging
import datetime
from src.application.Logger import Logger
from src.application.ValidationController import ValidationController
from src.application.TestController import TestController
def main(argv):
logger = Logger()
parser = argpa... | #!/usr/bin/env python2
import os
import sys
import argparse
import logging
import datetime
import colorama
from src.application.Logger import Logger
from src.application.ValidationController import ValidationController
from src.application.TestController import TestController
def main(argv):
colorama.init()
... | <commit_before>#!/usr/bin/env python2
import os
import sys
import argparse
import logging
import datetime
from src.application.Logger import Logger
from src.application.ValidationController import ValidationController
from src.application.TestController import TestController
def main(argv):
logger = Logger()
... | #!/usr/bin/env python2
import os
import sys
import argparse
import logging
import datetime
import colorama
from src.application.Logger import Logger
from src.application.ValidationController import ValidationController
from src.application.TestController import TestController
def main(argv):
colorama.init()
... | #!/usr/bin/env python2
import os
import sys
import argparse
import logging
import datetime
from src.application.Logger import Logger
from src.application.ValidationController import ValidationController
from src.application.TestController import TestController
def main(argv):
logger = Logger()
parser = argpa... | <commit_before>#!/usr/bin/env python2
import os
import sys
import argparse
import logging
import datetime
from src.application.Logger import Logger
from src.application.ValidationController import ValidationController
from src.application.TestController import TestController
def main(argv):
logger = Logger()
... |
37fd9a33d840d309e0b42239e86ceda08b1425c2 | scripts/list_migrations.py | scripts/list_migrations.py | #!/usr/bin/env python
# encoding: utf-8
from __future__ import print_function
import sys
from alembic.script import ScriptDirectory
def detect_heads(migrations):
heads = migrations.get_heads()
return heads
def version_history(migrations):
version_history = [
(m.revision, m.doc) for m in migra... | #!/usr/bin/env python
# encoding: utf-8
from __future__ import print_function
import sys
import warnings
from alembic.script import ScriptDirectory
warnings.simplefilter('error')
def detect_heads(migrations):
heads = migrations.get_heads()
return heads
def version_history(migrations):
version_histor... | Abort migrations check if a version is present more than once | Abort migrations check if a version is present more than once
list_migrations checks whether we have more than one branch in the
list of migration versions. Since we've switched to a new revision
naming convention, pull requests open at the same time are likely
to use the same revision number when adding new migration... | Python | mit | alphagov/digitalmarketplace-api,alphagov/digitalmarketplace-api,alphagov/digitalmarketplace-api | #!/usr/bin/env python
# encoding: utf-8
from __future__ import print_function
import sys
from alembic.script import ScriptDirectory
def detect_heads(migrations):
heads = migrations.get_heads()
return heads
def version_history(migrations):
version_history = [
(m.revision, m.doc) for m in migra... | #!/usr/bin/env python
# encoding: utf-8
from __future__ import print_function
import sys
import warnings
from alembic.script import ScriptDirectory
warnings.simplefilter('error')
def detect_heads(migrations):
heads = migrations.get_heads()
return heads
def version_history(migrations):
version_histor... | <commit_before>#!/usr/bin/env python
# encoding: utf-8
from __future__ import print_function
import sys
from alembic.script import ScriptDirectory
def detect_heads(migrations):
heads = migrations.get_heads()
return heads
def version_history(migrations):
version_history = [
(m.revision, m.doc)... | #!/usr/bin/env python
# encoding: utf-8
from __future__ import print_function
import sys
import warnings
from alembic.script import ScriptDirectory
warnings.simplefilter('error')
def detect_heads(migrations):
heads = migrations.get_heads()
return heads
def version_history(migrations):
version_histor... | #!/usr/bin/env python
# encoding: utf-8
from __future__ import print_function
import sys
from alembic.script import ScriptDirectory
def detect_heads(migrations):
heads = migrations.get_heads()
return heads
def version_history(migrations):
version_history = [
(m.revision, m.doc) for m in migra... | <commit_before>#!/usr/bin/env python
# encoding: utf-8
from __future__ import print_function
import sys
from alembic.script import ScriptDirectory
def detect_heads(migrations):
heads = migrations.get_heads()
return heads
def version_history(migrations):
version_history = [
(m.revision, m.doc)... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.