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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
223a04b3be53d998f75eb10a95c69116ee31c793 | setup.py | setup.py | #!/usr/bin/env python
import codecs
from setuptools import setup
version = 0.1
def read(filename):
try:
with codecs.open(filename, encoding='utf-8') as f:
return unicode(f.read())
except NameError:
with open(filename, 'r', encoding='utf-8') as f:
return f.read()
lo... | #!/usr/bin/env python
import codecs
from setuptools import setup, find_packages
version = 0.3
def read(filename):
try:
with codecs.open(filename, encoding='utf-8') as f:
return unicode(f.read())
except NameError:
with open(filename, 'r', encoding='utf-8') as f:
return... | Include package data in package. | Include package data in package.
Also up version and better long_description logic.
| Python | epl-1.0 | rvanlaar/tactic-client | #!/usr/bin/env python
import codecs
from setuptools import setup
version = 0.1
def read(filename):
try:
with codecs.open(filename, encoding='utf-8') as f:
return unicode(f.read())
except NameError:
with open(filename, 'r', encoding='utf-8') as f:
return f.read()
lo... | #!/usr/bin/env python
import codecs
from setuptools import setup, find_packages
version = 0.3
def read(filename):
try:
with codecs.open(filename, encoding='utf-8') as f:
return unicode(f.read())
except NameError:
with open(filename, 'r', encoding='utf-8') as f:
return... | <commit_before>#!/usr/bin/env python
import codecs
from setuptools import setup
version = 0.1
def read(filename):
try:
with codecs.open(filename, encoding='utf-8') as f:
return unicode(f.read())
except NameError:
with open(filename, 'r', encoding='utf-8') as f:
return... | #!/usr/bin/env python
import codecs
from setuptools import setup, find_packages
version = 0.3
def read(filename):
try:
with codecs.open(filename, encoding='utf-8') as f:
return unicode(f.read())
except NameError:
with open(filename, 'r', encoding='utf-8') as f:
return... | #!/usr/bin/env python
import codecs
from setuptools import setup
version = 0.1
def read(filename):
try:
with codecs.open(filename, encoding='utf-8') as f:
return unicode(f.read())
except NameError:
with open(filename, 'r', encoding='utf-8') as f:
return f.read()
lo... | <commit_before>#!/usr/bin/env python
import codecs
from setuptools import setup
version = 0.1
def read(filename):
try:
with codecs.open(filename, encoding='utf-8') as f:
return unicode(f.read())
except NameError:
with open(filename, 'r', encoding='utf-8') as f:
return... |
652497ec0365893a0fcbc39191cb60032bf88c23 | setup.py | setup.py | from setuptools import setup
setup(
name='pyticketswitch',
version='1.6.4',
author='Ingresso',
author_email='[email protected]',
packages=[
'pyticketswitch',
'pyticketswitch.interface_objects'
],
license='MIT',
description='A Python interface for the Ingresso XML Co... | from setuptools import setup
setup(
name='pyticketswitch',
version='1.6.4',
author='Ingresso',
author_email='[email protected]',
url='https://github.com/ingresso-group/pyticketswitch/',
packages=[
'pyticketswitch',
'pyticketswitch.interface_objects'
],
license='MIT'... | Add URL to make it easier to find this GitHub page | Add URL to make it easier to find this GitHub page | Python | mit | ingresso-group/pyticketswitch | from setuptools import setup
setup(
name='pyticketswitch',
version='1.6.4',
author='Ingresso',
author_email='[email protected]',
packages=[
'pyticketswitch',
'pyticketswitch.interface_objects'
],
license='MIT',
description='A Python interface for the Ingresso XML Co... | from setuptools import setup
setup(
name='pyticketswitch',
version='1.6.4',
author='Ingresso',
author_email='[email protected]',
url='https://github.com/ingresso-group/pyticketswitch/',
packages=[
'pyticketswitch',
'pyticketswitch.interface_objects'
],
license='MIT'... | <commit_before>from setuptools import setup
setup(
name='pyticketswitch',
version='1.6.4',
author='Ingresso',
author_email='[email protected]',
packages=[
'pyticketswitch',
'pyticketswitch.interface_objects'
],
license='MIT',
description='A Python interface for the ... | from setuptools import setup
setup(
name='pyticketswitch',
version='1.6.4',
author='Ingresso',
author_email='[email protected]',
url='https://github.com/ingresso-group/pyticketswitch/',
packages=[
'pyticketswitch',
'pyticketswitch.interface_objects'
],
license='MIT'... | from setuptools import setup
setup(
name='pyticketswitch',
version='1.6.4',
author='Ingresso',
author_email='[email protected]',
packages=[
'pyticketswitch',
'pyticketswitch.interface_objects'
],
license='MIT',
description='A Python interface for the Ingresso XML Co... | <commit_before>from setuptools import setup
setup(
name='pyticketswitch',
version='1.6.4',
author='Ingresso',
author_email='[email protected]',
packages=[
'pyticketswitch',
'pyticketswitch.interface_objects'
],
license='MIT',
description='A Python interface for the ... |
c32b0f49ca0997e5bd041e68993e624014f60305 | setup.py | setup.py | from setuptools import setup, find_packages
version = '1.1.3'
requires = [
'neo4j-driver<1.5.0',
'six>=1.10.0',
]
testing_requires = [
'nose',
'coverage',
'nosexcover',
]
setup(
name='norduniclient',
version=version,
url='https://github.com/NORDUnet/python-norduniclient',
license... | from setuptools import setup, find_packages
version = '1.1.3'
requires = [
'neo4j-driver<2.0',
'six>=1.10.0',
]
testing_requires = [
'nose',
'coverage',
'nosexcover',
]
setup(
name='norduniclient',
version=version,
url='https://github.com/NORDUnet/python-norduniclient',
license='... | Allow newer neo4j driver versions (<2) | Allow newer neo4j driver versions (<2)
| Python | apache-2.0 | NORDUnet/python-norduniclient,NORDUnet/python-norduniclient | from setuptools import setup, find_packages
version = '1.1.3'
requires = [
'neo4j-driver<1.5.0',
'six>=1.10.0',
]
testing_requires = [
'nose',
'coverage',
'nosexcover',
]
setup(
name='norduniclient',
version=version,
url='https://github.com/NORDUnet/python-norduniclient',
license... | from setuptools import setup, find_packages
version = '1.1.3'
requires = [
'neo4j-driver<2.0',
'six>=1.10.0',
]
testing_requires = [
'nose',
'coverage',
'nosexcover',
]
setup(
name='norduniclient',
version=version,
url='https://github.com/NORDUnet/python-norduniclient',
license='... | <commit_before>from setuptools import setup, find_packages
version = '1.1.3'
requires = [
'neo4j-driver<1.5.0',
'six>=1.10.0',
]
testing_requires = [
'nose',
'coverage',
'nosexcover',
]
setup(
name='norduniclient',
version=version,
url='https://github.com/NORDUnet/python-norduniclien... | from setuptools import setup, find_packages
version = '1.1.3'
requires = [
'neo4j-driver<2.0',
'six>=1.10.0',
]
testing_requires = [
'nose',
'coverage',
'nosexcover',
]
setup(
name='norduniclient',
version=version,
url='https://github.com/NORDUnet/python-norduniclient',
license='... | from setuptools import setup, find_packages
version = '1.1.3'
requires = [
'neo4j-driver<1.5.0',
'six>=1.10.0',
]
testing_requires = [
'nose',
'coverage',
'nosexcover',
]
setup(
name='norduniclient',
version=version,
url='https://github.com/NORDUnet/python-norduniclient',
license... | <commit_before>from setuptools import setup, find_packages
version = '1.1.3'
requires = [
'neo4j-driver<1.5.0',
'six>=1.10.0',
]
testing_requires = [
'nose',
'coverage',
'nosexcover',
]
setup(
name='norduniclient',
version=version,
url='https://github.com/NORDUnet/python-norduniclien... |
c89d90e03ef88593eb1c23f10667c7125bf80a16 | setup.py | setup.py | from setuptools import setup
from setuptools.command.test import test as TestCommand
import sys
import doubles
with open('README.md') as f:
long_description = f.read()
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.... | from setuptools import setup
from setuptools.command.test import test as TestCommand
import sys
import doubles
with open('README.md') as f:
long_description = f.read()
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.... | Include doubles.targets in packages list. | Include doubles.targets in packages list.
| Python | mit | uber/doubles | from setuptools import setup
from setuptools.command.test import test as TestCommand
import sys
import doubles
with open('README.md') as f:
long_description = f.read()
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.... | from setuptools import setup
from setuptools.command.test import test as TestCommand
import sys
import doubles
with open('README.md') as f:
long_description = f.read()
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.... | <commit_before>from setuptools import setup
from setuptools.command.test import test as TestCommand
import sys
import doubles
with open('README.md') as f:
long_description = f.read()
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = [... | from setuptools import setup
from setuptools.command.test import test as TestCommand
import sys
import doubles
with open('README.md') as f:
long_description = f.read()
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.... | from setuptools import setup
from setuptools.command.test import test as TestCommand
import sys
import doubles
with open('README.md') as f:
long_description = f.read()
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.... | <commit_before>from setuptools import setup
from setuptools.command.test import test as TestCommand
import sys
import doubles
with open('README.md') as f:
long_description = f.read()
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = [... |
2f33ba5a84630e405e388719ee3db0674cd11f81 | setup.py | setup.py | import os
from distutils.core import setup
VERSION = '0.1.0'
README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
required = [
'Django >= 1.5.0',
]
setup(
name='madmin',
version=VERSION,
description="Virtual mail administration django app",
author="Lewis Gunsch",
auth... | import os
from distutils.core import setup
VERSION = '0.2.0-dev'
README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
required = [
'Django >= 1.5.0',
]
setup(
name='madmin',
version=VERSION,
description="Virtual mail administration django app",
author="Lewis Gunsch",
... | Bump the version number - 0.2.0-dev. | Bump the version number - 0.2.0-dev.
Signed-off-by: Lewis Gunsch <[email protected]>
| Python | mit | lgunsch/django-vmail | import os
from distutils.core import setup
VERSION = '0.1.0'
README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
required = [
'Django >= 1.5.0',
]
setup(
name='madmin',
version=VERSION,
description="Virtual mail administration django app",
author="Lewis Gunsch",
auth... | import os
from distutils.core import setup
VERSION = '0.2.0-dev'
README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
required = [
'Django >= 1.5.0',
]
setup(
name='madmin',
version=VERSION,
description="Virtual mail administration django app",
author="Lewis Gunsch",
... | <commit_before>import os
from distutils.core import setup
VERSION = '0.1.0'
README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
required = [
'Django >= 1.5.0',
]
setup(
name='madmin',
version=VERSION,
description="Virtual mail administration django app",
author="Lewis Gu... | import os
from distutils.core import setup
VERSION = '0.2.0-dev'
README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
required = [
'Django >= 1.5.0',
]
setup(
name='madmin',
version=VERSION,
description="Virtual mail administration django app",
author="Lewis Gunsch",
... | import os
from distutils.core import setup
VERSION = '0.1.0'
README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
required = [
'Django >= 1.5.0',
]
setup(
name='madmin',
version=VERSION,
description="Virtual mail administration django app",
author="Lewis Gunsch",
auth... | <commit_before>import os
from distutils.core import setup
VERSION = '0.1.0'
README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
required = [
'Django >= 1.5.0',
]
setup(
name='madmin',
version=VERSION,
description="Virtual mail administration django app",
author="Lewis Gu... |
6ee03020e5670c80e43fe1cadf3539a53056773d | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='vumi-wikipedia',
version='0.1.2',
description='Vumi Wikipedia App',
packages=find_packages(),
include_package_data=True,
install_requires=[
'vumi>=0.5',
'unidecode',
],
url='http://github.com/praekelt/vumi-wikiped... | from setuptools import setup, find_packages
setup(
name='vumi-wikipedia',
version='0.2.0a',
description='Vumi Wikipedia App',
packages=find_packages(),
include_package_data=True,
install_requires=[
'vumi>=0.5',
'unidecode',
],
url='http://github.com/praekelt/vumi-wikipe... | Change version back to 0.2.0a post-release. | Change version back to 0.2.0a post-release.
| Python | bsd-3-clause | praekelt/vumi-wikipedia,praekelt/vumi-wikipedia | from setuptools import setup, find_packages
setup(
name='vumi-wikipedia',
version='0.1.2',
description='Vumi Wikipedia App',
packages=find_packages(),
include_package_data=True,
install_requires=[
'vumi>=0.5',
'unidecode',
],
url='http://github.com/praekelt/vumi-wikiped... | from setuptools import setup, find_packages
setup(
name='vumi-wikipedia',
version='0.2.0a',
description='Vumi Wikipedia App',
packages=find_packages(),
include_package_data=True,
install_requires=[
'vumi>=0.5',
'unidecode',
],
url='http://github.com/praekelt/vumi-wikipe... | <commit_before>from setuptools import setup, find_packages
setup(
name='vumi-wikipedia',
version='0.1.2',
description='Vumi Wikipedia App',
packages=find_packages(),
include_package_data=True,
install_requires=[
'vumi>=0.5',
'unidecode',
],
url='http://github.com/praeke... | from setuptools import setup, find_packages
setup(
name='vumi-wikipedia',
version='0.2.0a',
description='Vumi Wikipedia App',
packages=find_packages(),
include_package_data=True,
install_requires=[
'vumi>=0.5',
'unidecode',
],
url='http://github.com/praekelt/vumi-wikipe... | from setuptools import setup, find_packages
setup(
name='vumi-wikipedia',
version='0.1.2',
description='Vumi Wikipedia App',
packages=find_packages(),
include_package_data=True,
install_requires=[
'vumi>=0.5',
'unidecode',
],
url='http://github.com/praekelt/vumi-wikiped... | <commit_before>from setuptools import setup, find_packages
setup(
name='vumi-wikipedia',
version='0.1.2',
description='Vumi Wikipedia App',
packages=find_packages(),
include_package_data=True,
install_requires=[
'vumi>=0.5',
'unidecode',
],
url='http://github.com/praeke... |
e90eb4500e551e8205d6317be6cd010c58cdfa7b | setup.py | setup.py | import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'gis_metadata.tests.te... | import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'gis_metadata.tests.te... | Increment version in preparation for release | Increment version in preparation for release | Python | bsd-3-clause | consbio/gis-metadata-parser | import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'gis_metadata.tests.te... | import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'gis_metadata.tests.te... | <commit_before>import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'gis_me... | import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'gis_metadata.tests.te... | import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'gis_metadata.tests.te... | <commit_before>import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'gis_me... |
028d537f65d5ed0f71a0c1279f10ffbc2a1b7e07 | setup.py | setup.py | from setuptools import setup, find_packages
deps = [
'mozillapulse>=1.1',
'mozci>=0.13.1',
'treeherder-client>=1.5',
'ijson>=2.2',
'requests',
]
setup(name='pulse-actions',
version='0.1.4',
description='A pulse listener that acts upon messages with mozci.',
classifiers=['Intended... | from setuptools import setup, find_packages
deps = [
'mozillapulse>=1.1',
'mozci>=0.13.2',
'treeherder-client>=1.5',
'ijson>=2.2',
'requests',
]
setup(name='pulse-actions',
version='0.1.4',
description='A pulse listener that acts upon messages with mozci.',
classifiers=['Intended... | Update mozci version to 0.13.2 | Update mozci version to 0.13.2
| Python | mpl-2.0 | armenzg/pulse_actions,adusca/pulse_actions,nikkisquared/pulse_actions,mozilla/pulse_actions | from setuptools import setup, find_packages
deps = [
'mozillapulse>=1.1',
'mozci>=0.13.1',
'treeherder-client>=1.5',
'ijson>=2.2',
'requests',
]
setup(name='pulse-actions',
version='0.1.4',
description='A pulse listener that acts upon messages with mozci.',
classifiers=['Intended... | from setuptools import setup, find_packages
deps = [
'mozillapulse>=1.1',
'mozci>=0.13.2',
'treeherder-client>=1.5',
'ijson>=2.2',
'requests',
]
setup(name='pulse-actions',
version='0.1.4',
description='A pulse listener that acts upon messages with mozci.',
classifiers=['Intended... | <commit_before>from setuptools import setup, find_packages
deps = [
'mozillapulse>=1.1',
'mozci>=0.13.1',
'treeherder-client>=1.5',
'ijson>=2.2',
'requests',
]
setup(name='pulse-actions',
version='0.1.4',
description='A pulse listener that acts upon messages with mozci.',
classif... | from setuptools import setup, find_packages
deps = [
'mozillapulse>=1.1',
'mozci>=0.13.2',
'treeherder-client>=1.5',
'ijson>=2.2',
'requests',
]
setup(name='pulse-actions',
version='0.1.4',
description='A pulse listener that acts upon messages with mozci.',
classifiers=['Intended... | from setuptools import setup, find_packages
deps = [
'mozillapulse>=1.1',
'mozci>=0.13.1',
'treeherder-client>=1.5',
'ijson>=2.2',
'requests',
]
setup(name='pulse-actions',
version='0.1.4',
description='A pulse listener that acts upon messages with mozci.',
classifiers=['Intended... | <commit_before>from setuptools import setup, find_packages
deps = [
'mozillapulse>=1.1',
'mozci>=0.13.1',
'treeherder-client>=1.5',
'ijson>=2.2',
'requests',
]
setup(name='pulse-actions',
version='0.1.4',
description='A pulse listener that acts upon messages with mozci.',
classif... |
6000a6943259698382eca2aa077cec62d6116142 | setup.py | setup.py | from setuptools import setup
from sys import version_info
setup(
name='avatar2',
version='1.3.0',
packages=['avatar2',
'avatar2/archs',
'avatar2/targets',
'avatar2/protocols',
'avatar2/peripherals',
'avatar2/plugins',
'ava... | from setuptools import setup
from sys import version_info
setup(
name='avatar2',
version='1.3.0',
packages=['avatar2',
'avatar2/archs',
'avatar2/targets',
'avatar2/protocols',
'avatar2/peripherals',
'avatar2/plugins',
'ava... | Make enum34 dependency conditional on python version | Make enum34 dependency conditional on python version
| Python | apache-2.0 | avatartwo/avatar2,avatartwo/avatar2 | from setuptools import setup
from sys import version_info
setup(
name='avatar2',
version='1.3.0',
packages=['avatar2',
'avatar2/archs',
'avatar2/targets',
'avatar2/protocols',
'avatar2/peripherals',
'avatar2/plugins',
'ava... | from setuptools import setup
from sys import version_info
setup(
name='avatar2',
version='1.3.0',
packages=['avatar2',
'avatar2/archs',
'avatar2/targets',
'avatar2/protocols',
'avatar2/peripherals',
'avatar2/plugins',
'ava... | <commit_before>from setuptools import setup
from sys import version_info
setup(
name='avatar2',
version='1.3.0',
packages=['avatar2',
'avatar2/archs',
'avatar2/targets',
'avatar2/protocols',
'avatar2/peripherals',
'avatar2/plugins',
... | from setuptools import setup
from sys import version_info
setup(
name='avatar2',
version='1.3.0',
packages=['avatar2',
'avatar2/archs',
'avatar2/targets',
'avatar2/protocols',
'avatar2/peripherals',
'avatar2/plugins',
'ava... | from setuptools import setup
from sys import version_info
setup(
name='avatar2',
version='1.3.0',
packages=['avatar2',
'avatar2/archs',
'avatar2/targets',
'avatar2/protocols',
'avatar2/peripherals',
'avatar2/plugins',
'ava... | <commit_before>from setuptools import setup
from sys import version_info
setup(
name='avatar2',
version='1.3.0',
packages=['avatar2',
'avatar2/archs',
'avatar2/targets',
'avatar2/protocols',
'avatar2/peripherals',
'avatar2/plugins',
... |
9424a3385f1330cffbf9fa084e58ef107f73a4b8 | setup.py | setup.py | from setuptools import setup
setup(
name='timeflow',
packages=['timeflow'],
version='0.1',
description='Small CLI time logger',
author='Justas Trimailovas',
author_email='[email protected]',
url='https://github.com/trimailov/timeflow',
keywords=['timelogger', 'logging', 'timetrack... | import os
from setuptools import setup
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
return open(os.path.join(os.path.di... | Add long description from README.rst | Add long description from README.rst | Python | mit | trimailov/timeflow | from setuptools import setup
setup(
name='timeflow',
packages=['timeflow'],
version='0.1',
description='Small CLI time logger',
author='Justas Trimailovas',
author_email='[email protected]',
url='https://github.com/trimailov/timeflow',
keywords=['timelogger', 'logging', 'timetrack... | import os
from setuptools import setup
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
return open(os.path.join(os.path.di... | <commit_before>from setuptools import setup
setup(
name='timeflow',
packages=['timeflow'],
version='0.1',
description='Small CLI time logger',
author='Justas Trimailovas',
author_email='[email protected]',
url='https://github.com/trimailov/timeflow',
keywords=['timelogger', 'loggi... | import os
from setuptools import setup
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
return open(os.path.join(os.path.di... | from setuptools import setup
setup(
name='timeflow',
packages=['timeflow'],
version='0.1',
description='Small CLI time logger',
author='Justas Trimailovas',
author_email='[email protected]',
url='https://github.com/trimailov/timeflow',
keywords=['timelogger', 'logging', 'timetrack... | <commit_before>from setuptools import setup
setup(
name='timeflow',
packages=['timeflow'],
version='0.1',
description='Small CLI time logger',
author='Justas Trimailovas',
author_email='[email protected]',
url='https://github.com/trimailov/timeflow',
keywords=['timelogger', 'loggi... |
2dfd4021a705811cb1047914318a727aef4ac5ac | setup.py | setup.py | #
# setup.py
#
# Copyright (c) 2013 Luis Garcia.
# This source file is subject to terms of the MIT License. (See file LICENSE)
#
"""Setup script for the scope library."""
from distutils.core import setup
NAME = 'scope'
VERSION = '0.1.1'
DESCRIPTION = 'Template library for multi-language code generation'
AUTHOR = 'Lu... | #
# setup.py
#
# Copyright (c) 2013 Luis Garcia.
# This source file is subject to terms of the MIT License. (See file LICENSE)
#
"""Setup script for the scope library."""
from distutils.core import setup
NAME = 'scope'
VERSION = '0.1.1'
DESCRIPTION = 'Template library for multi-language code generation'
AUTHOR = 'Lu... | Add classifiers for Python 2 and 3 | Add classifiers for Python 2 and 3
| Python | mit | lrgar/scope | #
# setup.py
#
# Copyright (c) 2013 Luis Garcia.
# This source file is subject to terms of the MIT License. (See file LICENSE)
#
"""Setup script for the scope library."""
from distutils.core import setup
NAME = 'scope'
VERSION = '0.1.1'
DESCRIPTION = 'Template library for multi-language code generation'
AUTHOR = 'Lu... | #
# setup.py
#
# Copyright (c) 2013 Luis Garcia.
# This source file is subject to terms of the MIT License. (See file LICENSE)
#
"""Setup script for the scope library."""
from distutils.core import setup
NAME = 'scope'
VERSION = '0.1.1'
DESCRIPTION = 'Template library for multi-language code generation'
AUTHOR = 'Lu... | <commit_before>#
# setup.py
#
# Copyright (c) 2013 Luis Garcia.
# This source file is subject to terms of the MIT License. (See file LICENSE)
#
"""Setup script for the scope library."""
from distutils.core import setup
NAME = 'scope'
VERSION = '0.1.1'
DESCRIPTION = 'Template library for multi-language code generatio... | #
# setup.py
#
# Copyright (c) 2013 Luis Garcia.
# This source file is subject to terms of the MIT License. (See file LICENSE)
#
"""Setup script for the scope library."""
from distutils.core import setup
NAME = 'scope'
VERSION = '0.1.1'
DESCRIPTION = 'Template library for multi-language code generation'
AUTHOR = 'Lu... | #
# setup.py
#
# Copyright (c) 2013 Luis Garcia.
# This source file is subject to terms of the MIT License. (See file LICENSE)
#
"""Setup script for the scope library."""
from distutils.core import setup
NAME = 'scope'
VERSION = '0.1.1'
DESCRIPTION = 'Template library for multi-language code generation'
AUTHOR = 'Lu... | <commit_before>#
# setup.py
#
# Copyright (c) 2013 Luis Garcia.
# This source file is subject to terms of the MIT License. (See file LICENSE)
#
"""Setup script for the scope library."""
from distutils.core import setup
NAME = 'scope'
VERSION = '0.1.1'
DESCRIPTION = 'Template library for multi-language code generatio... |
93754f12f86f7c083fec2e0b187533add206f4c9 | setup.py | setup.py | import codecs
from setuptools import find_packages, setup
import digestive
setup(
name='digestive',
version=digestive.__version__,
url='https://github.com/akaIDIOT/Digestive',
packages=find_packages(),
description='Run several digest algorithms on the same data efficiently',
author='Mattijs U... | import codecs
from setuptools import find_packages, setup
import digestive
requires = ['decorator']
setup(
name='digestive',
version=digestive.__version__,
url='https://github.com/akaIDIOT/Digestive',
packages=find_packages(),
description='Run several digest algorithms on the same data efficient... | Include decorator requirement for tests as well | Include decorator requirement for tests as well
One would think setup.py would include runtime deps with test deps, but
no...
References #6
| Python | isc | akaIDIOT/Digestive | import codecs
from setuptools import find_packages, setup
import digestive
setup(
name='digestive',
version=digestive.__version__,
url='https://github.com/akaIDIOT/Digestive',
packages=find_packages(),
description='Run several digest algorithms on the same data efficiently',
author='Mattijs U... | import codecs
from setuptools import find_packages, setup
import digestive
requires = ['decorator']
setup(
name='digestive',
version=digestive.__version__,
url='https://github.com/akaIDIOT/Digestive',
packages=find_packages(),
description='Run several digest algorithms on the same data efficient... | <commit_before>import codecs
from setuptools import find_packages, setup
import digestive
setup(
name='digestive',
version=digestive.__version__,
url='https://github.com/akaIDIOT/Digestive',
packages=find_packages(),
description='Run several digest algorithms on the same data efficiently',
au... | import codecs
from setuptools import find_packages, setup
import digestive
requires = ['decorator']
setup(
name='digestive',
version=digestive.__version__,
url='https://github.com/akaIDIOT/Digestive',
packages=find_packages(),
description='Run several digest algorithms on the same data efficient... | import codecs
from setuptools import find_packages, setup
import digestive
setup(
name='digestive',
version=digestive.__version__,
url='https://github.com/akaIDIOT/Digestive',
packages=find_packages(),
description='Run several digest algorithms on the same data efficiently',
author='Mattijs U... | <commit_before>import codecs
from setuptools import find_packages, setup
import digestive
setup(
name='digestive',
version=digestive.__version__,
url='https://github.com/akaIDIOT/Digestive',
packages=find_packages(),
description='Run several digest algorithms on the same data efficiently',
au... |
41021030afe45c61d8551128515d7d17ebdd09b8 | setup.py | setup.py | import sys
from setuptools import find_packages, setup
with open('VERSION') as version_fp:
VERSION = version_fp.read().strip()
install_requires = [
'django-local-settings>=1.0a13',
'stashward',
]
if sys.version_info[:2] < (3, 4):
install_requires.append('enum34')
setup(
name='django-arcutils... | import sys
from setuptools import find_packages, setup
with open('VERSION') as version_fp:
VERSION = version_fp.read().strip()
install_requires = [
'django-local-settings>=1.0a13',
'stashward',
]
if sys.version_info[:2] < (3, 4):
install_requires.append('enum34')
setup(
name='django-arcutils... | Update ldap3 1.0.3 => 1.0.4 | Update ldap3 1.0.3 => 1.0.4
| Python | mit | wylee/django-arcutils,PSU-OIT-ARC/django-arcutils,wylee/django-arcutils,PSU-OIT-ARC/django-arcutils | import sys
from setuptools import find_packages, setup
with open('VERSION') as version_fp:
VERSION = version_fp.read().strip()
install_requires = [
'django-local-settings>=1.0a13',
'stashward',
]
if sys.version_info[:2] < (3, 4):
install_requires.append('enum34')
setup(
name='django-arcutils... | import sys
from setuptools import find_packages, setup
with open('VERSION') as version_fp:
VERSION = version_fp.read().strip()
install_requires = [
'django-local-settings>=1.0a13',
'stashward',
]
if sys.version_info[:2] < (3, 4):
install_requires.append('enum34')
setup(
name='django-arcutils... | <commit_before>import sys
from setuptools import find_packages, setup
with open('VERSION') as version_fp:
VERSION = version_fp.read().strip()
install_requires = [
'django-local-settings>=1.0a13',
'stashward',
]
if sys.version_info[:2] < (3, 4):
install_requires.append('enum34')
setup(
name='... | import sys
from setuptools import find_packages, setup
with open('VERSION') as version_fp:
VERSION = version_fp.read().strip()
install_requires = [
'django-local-settings>=1.0a13',
'stashward',
]
if sys.version_info[:2] < (3, 4):
install_requires.append('enum34')
setup(
name='django-arcutils... | import sys
from setuptools import find_packages, setup
with open('VERSION') as version_fp:
VERSION = version_fp.read().strip()
install_requires = [
'django-local-settings>=1.0a13',
'stashward',
]
if sys.version_info[:2] < (3, 4):
install_requires.append('enum34')
setup(
name='django-arcutils... | <commit_before>import sys
from setuptools import find_packages, setup
with open('VERSION') as version_fp:
VERSION = version_fp.read().strip()
install_requires = [
'django-local-settings>=1.0a13',
'stashward',
]
if sys.version_info[:2] < (3, 4):
install_requires.append('enum34')
setup(
name='... |
82905bbbd7077d201363b96ffbbc78c099095764 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
setup(
name='Rubra',
version='0.1.5',
author='Bernie Pope',
author_email='[email protected]',
packages=['rubra'],
package_data={'rubra': ['examples/*.py']},
entry_points={
'console_scripts': ['rubra = rubra.rubra:main']
},
... | #!/usr/bin/env python
from setuptools import setup
setup(
name='Rubra',
version='0.1.5',
author='Bernie Pope',
author_email='[email protected]',
packages=['rubra'],
package_data={'rubra': ['examples/*.py']},
entry_points={
'console_scripts': ['rubra = rubra.rubra:main']
},
... | Fix the version dependency on ruffus to 2.2, rather than >= 2.0.0 | Fix the version dependency on ruffus to 2.2, rather than >= 2.0.0
| Python | mit | magosil86/rubra,bjpop/rubra | #!/usr/bin/env python
from setuptools import setup
setup(
name='Rubra',
version='0.1.5',
author='Bernie Pope',
author_email='[email protected]',
packages=['rubra'],
package_data={'rubra': ['examples/*.py']},
entry_points={
'console_scripts': ['rubra = rubra.rubra:main']
},
... | #!/usr/bin/env python
from setuptools import setup
setup(
name='Rubra',
version='0.1.5',
author='Bernie Pope',
author_email='[email protected]',
packages=['rubra'],
package_data={'rubra': ['examples/*.py']},
entry_points={
'console_scripts': ['rubra = rubra.rubra:main']
},
... | <commit_before>#!/usr/bin/env python
from setuptools import setup
setup(
name='Rubra',
version='0.1.5',
author='Bernie Pope',
author_email='[email protected]',
packages=['rubra'],
package_data={'rubra': ['examples/*.py']},
entry_points={
'console_scripts': ['rubra = rubra.rubra... | #!/usr/bin/env python
from setuptools import setup
setup(
name='Rubra',
version='0.1.5',
author='Bernie Pope',
author_email='[email protected]',
packages=['rubra'],
package_data={'rubra': ['examples/*.py']},
entry_points={
'console_scripts': ['rubra = rubra.rubra:main']
},
... | #!/usr/bin/env python
from setuptools import setup
setup(
name='Rubra',
version='0.1.5',
author='Bernie Pope',
author_email='[email protected]',
packages=['rubra'],
package_data={'rubra': ['examples/*.py']},
entry_points={
'console_scripts': ['rubra = rubra.rubra:main']
},
... | <commit_before>#!/usr/bin/env python
from setuptools import setup
setup(
name='Rubra',
version='0.1.5',
author='Bernie Pope',
author_email='[email protected]',
packages=['rubra'],
package_data={'rubra': ['examples/*.py']},
entry_points={
'console_scripts': ['rubra = rubra.rubra... |
173f59cbaa945ea949905981538ddb3e8e836b55 | setup.py | setup.py | """
Flask-FlatPages
---------------
Provides flat static pages to a Flask application, based on text files
as opposed to a relationnal database.
"""
from setuptools import setup
setup(
name='Flask-FlatPages',
version='0.1',
url='http://exyr.org/Flask-FlatPages/',
license='BSD',
author='Simon Sapi... | """
Flask-FlatPages
---------------
Provides flat static pages to a Flask application, based on text files
as opposed to a relationnal database.
"""
from setuptools import setup
setup(
name='Flask-FlatPages',
version='0.1dev',
url='http://exyr.org/Flask-FlatPages/',
license='BSD',
author='Simon S... | Change version number to 0.1dev | Change version number to 0.1dev
| Python | bsd-3-clause | SimonSapin/Flask-FlatPages,johnmee/Flask-FlatPages,SimonSapin/Flask-FlatPages,johnmee/Flask-FlatPages | """
Flask-FlatPages
---------------
Provides flat static pages to a Flask application, based on text files
as opposed to a relationnal database.
"""
from setuptools import setup
setup(
name='Flask-FlatPages',
version='0.1',
url='http://exyr.org/Flask-FlatPages/',
license='BSD',
author='Simon Sapi... | """
Flask-FlatPages
---------------
Provides flat static pages to a Flask application, based on text files
as opposed to a relationnal database.
"""
from setuptools import setup
setup(
name='Flask-FlatPages',
version='0.1dev',
url='http://exyr.org/Flask-FlatPages/',
license='BSD',
author='Simon S... | <commit_before>"""
Flask-FlatPages
---------------
Provides flat static pages to a Flask application, based on text files
as opposed to a relationnal database.
"""
from setuptools import setup
setup(
name='Flask-FlatPages',
version='0.1',
url='http://exyr.org/Flask-FlatPages/',
license='BSD',
aut... | """
Flask-FlatPages
---------------
Provides flat static pages to a Flask application, based on text files
as opposed to a relationnal database.
"""
from setuptools import setup
setup(
name='Flask-FlatPages',
version='0.1dev',
url='http://exyr.org/Flask-FlatPages/',
license='BSD',
author='Simon S... | """
Flask-FlatPages
---------------
Provides flat static pages to a Flask application, based on text files
as opposed to a relationnal database.
"""
from setuptools import setup
setup(
name='Flask-FlatPages',
version='0.1',
url='http://exyr.org/Flask-FlatPages/',
license='BSD',
author='Simon Sapi... | <commit_before>"""
Flask-FlatPages
---------------
Provides flat static pages to a Flask application, based on text files
as opposed to a relationnal database.
"""
from setuptools import setup
setup(
name='Flask-FlatPages',
version='0.1',
url='http://exyr.org/Flask-FlatPages/',
license='BSD',
aut... |
6daef6533c1cc830aead7d7334f8baf78e8624d1 | froide/foirequest/file_utils.py | froide/foirequest/file_utils.py | import os
import tempfile
import subprocess
import logging
def convert_to_pdf(filepath, binary_name=None, construct_call=None):
if binary_name is None and construct_call is None:
return
outpath = tempfile.mkdtemp()
path, filename = os.path.split(filepath)
name, extension = filename.rsplit('.',... | import os
import tempfile
import subprocess
import logging
try:
TimeoutExpired = subprocess.TimeoutExpired
HAS_TIMEOUT = True
except AttributeError:
TimeoutExpired = Exception
HAS_TIMEOUT = False
def convert_to_pdf(filepath, binary_name=None, construct_call=None, timeout=50):
if binary_name is No... | Add better timeout killing to file conversion | Add better timeout killing to file conversion | Python | mit | stefanw/froide,stefanw/froide,stefanw/froide,stefanw/froide,fin/froide,stefanw/froide,fin/froide,fin/froide,fin/froide | import os
import tempfile
import subprocess
import logging
def convert_to_pdf(filepath, binary_name=None, construct_call=None):
if binary_name is None and construct_call is None:
return
outpath = tempfile.mkdtemp()
path, filename = os.path.split(filepath)
name, extension = filename.rsplit('.',... | import os
import tempfile
import subprocess
import logging
try:
TimeoutExpired = subprocess.TimeoutExpired
HAS_TIMEOUT = True
except AttributeError:
TimeoutExpired = Exception
HAS_TIMEOUT = False
def convert_to_pdf(filepath, binary_name=None, construct_call=None, timeout=50):
if binary_name is No... | <commit_before>import os
import tempfile
import subprocess
import logging
def convert_to_pdf(filepath, binary_name=None, construct_call=None):
if binary_name is None and construct_call is None:
return
outpath = tempfile.mkdtemp()
path, filename = os.path.split(filepath)
name, extension = filen... | import os
import tempfile
import subprocess
import logging
try:
TimeoutExpired = subprocess.TimeoutExpired
HAS_TIMEOUT = True
except AttributeError:
TimeoutExpired = Exception
HAS_TIMEOUT = False
def convert_to_pdf(filepath, binary_name=None, construct_call=None, timeout=50):
if binary_name is No... | import os
import tempfile
import subprocess
import logging
def convert_to_pdf(filepath, binary_name=None, construct_call=None):
if binary_name is None and construct_call is None:
return
outpath = tempfile.mkdtemp()
path, filename = os.path.split(filepath)
name, extension = filename.rsplit('.',... | <commit_before>import os
import tempfile
import subprocess
import logging
def convert_to_pdf(filepath, binary_name=None, construct_call=None):
if binary_name is None and construct_call is None:
return
outpath = tempfile.mkdtemp()
path, filename = os.path.split(filepath)
name, extension = filen... |
556e6ba4d9bc32384526501acbbc4c0c2b6f983e | mopidy/frontends/mpd/__init__.py | mopidy/frontends/mpd/__init__.py | import logging
from mopidy.frontends.mpd.dispatcher import MpdDispatcher
from mopidy.frontends.mpd.process import MpdProcess
from mopidy.utils.process import unpickle_connection
logger = logging.getLogger('mopidy.frontends.mpd')
class MpdFrontend(object):
"""
The MPD frontend.
**Settings:**
- :attr... | import logging
from mopidy.frontends.base import BaseFrontend
from mopidy.frontends.mpd.dispatcher import MpdDispatcher
from mopidy.frontends.mpd.process import MpdProcess
from mopidy.utils.process import unpickle_connection
logger = logging.getLogger('mopidy.frontends.mpd')
class MpdFrontend(BaseFrontend):
"""
... | Make MpdFrontend a subclass of BaseFrontend | Make MpdFrontend a subclass of BaseFrontend
| Python | apache-2.0 | kingosticks/mopidy,SuperStarPL/mopidy,rawdlite/mopidy,tkem/mopidy,rawdlite/mopidy,diandiankan/mopidy,ZenithDK/mopidy,jcass77/mopidy,jodal/mopidy,SuperStarPL/mopidy,hkariti/mopidy,mokieyue/mopidy,rawdlite/mopidy,bacontext/mopidy,quartz55/mopidy,diandiankan/mopidy,tkem/mopidy,woutervanwijk/mopidy,adamcik/mopidy,swak/mopi... | import logging
from mopidy.frontends.mpd.dispatcher import MpdDispatcher
from mopidy.frontends.mpd.process import MpdProcess
from mopidy.utils.process import unpickle_connection
logger = logging.getLogger('mopidy.frontends.mpd')
class MpdFrontend(object):
"""
The MPD frontend.
**Settings:**
- :attr... | import logging
from mopidy.frontends.base import BaseFrontend
from mopidy.frontends.mpd.dispatcher import MpdDispatcher
from mopidy.frontends.mpd.process import MpdProcess
from mopidy.utils.process import unpickle_connection
logger = logging.getLogger('mopidy.frontends.mpd')
class MpdFrontend(BaseFrontend):
"""
... | <commit_before>import logging
from mopidy.frontends.mpd.dispatcher import MpdDispatcher
from mopidy.frontends.mpd.process import MpdProcess
from mopidy.utils.process import unpickle_connection
logger = logging.getLogger('mopidy.frontends.mpd')
class MpdFrontend(object):
"""
The MPD frontend.
**Settings:... | import logging
from mopidy.frontends.base import BaseFrontend
from mopidy.frontends.mpd.dispatcher import MpdDispatcher
from mopidy.frontends.mpd.process import MpdProcess
from mopidy.utils.process import unpickle_connection
logger = logging.getLogger('mopidy.frontends.mpd')
class MpdFrontend(BaseFrontend):
"""
... | import logging
from mopidy.frontends.mpd.dispatcher import MpdDispatcher
from mopidy.frontends.mpd.process import MpdProcess
from mopidy.utils.process import unpickle_connection
logger = logging.getLogger('mopidy.frontends.mpd')
class MpdFrontend(object):
"""
The MPD frontend.
**Settings:**
- :attr... | <commit_before>import logging
from mopidy.frontends.mpd.dispatcher import MpdDispatcher
from mopidy.frontends.mpd.process import MpdProcess
from mopidy.utils.process import unpickle_connection
logger = logging.getLogger('mopidy.frontends.mpd')
class MpdFrontend(object):
"""
The MPD frontend.
**Settings:... |
2d6f0d419b2bd40f4e44b0cb193e2f0f93cfb4e0 | panoptes_cli/scripts/panoptes.py | panoptes_cli/scripts/panoptes.py | import click
from panoptes_client.panoptes import Panoptes
panoptes = Panoptes('https://panoptes.zooniverse.org/api')
@click.group()
def cli():
pass
@cli.command()
@click.option('--id', help='Project ID', required=False, type=int)
@click.option('--display-name')
@click.argument('slug', required=False)
def projec... | import click
from panoptes_client.panoptes import Panoptes
panoptes = Panoptes('https://panoptes.zooniverse.org/api')
@click.group()
def cli():
pass
@cli.command()
@click.option('--id', help='Project ID', required=False, type=int)
@click.option('--display-name')
@click.argument('slug', required=False)
def projec... | Set type for subject ID | Set type for subject ID
| Python | apache-2.0 | zooniverse/panoptes-cli | import click
from panoptes_client.panoptes import Panoptes
panoptes = Panoptes('https://panoptes.zooniverse.org/api')
@click.group()
def cli():
pass
@cli.command()
@click.option('--id', help='Project ID', required=False, type=int)
@click.option('--display-name')
@click.argument('slug', required=False)
def projec... | import click
from panoptes_client.panoptes import Panoptes
panoptes = Panoptes('https://panoptes.zooniverse.org/api')
@click.group()
def cli():
pass
@cli.command()
@click.option('--id', help='Project ID', required=False, type=int)
@click.option('--display-name')
@click.argument('slug', required=False)
def projec... | <commit_before>import click
from panoptes_client.panoptes import Panoptes
panoptes = Panoptes('https://panoptes.zooniverse.org/api')
@click.group()
def cli():
pass
@cli.command()
@click.option('--id', help='Project ID', required=False, type=int)
@click.option('--display-name')
@click.argument('slug', required=Fa... | import click
from panoptes_client.panoptes import Panoptes
panoptes = Panoptes('https://panoptes.zooniverse.org/api')
@click.group()
def cli():
pass
@cli.command()
@click.option('--id', help='Project ID', required=False, type=int)
@click.option('--display-name')
@click.argument('slug', required=False)
def projec... | import click
from panoptes_client.panoptes import Panoptes
panoptes = Panoptes('https://panoptes.zooniverse.org/api')
@click.group()
def cli():
pass
@cli.command()
@click.option('--id', help='Project ID', required=False, type=int)
@click.option('--display-name')
@click.argument('slug', required=False)
def projec... | <commit_before>import click
from panoptes_client.panoptes import Panoptes
panoptes = Panoptes('https://panoptes.zooniverse.org/api')
@click.group()
def cli():
pass
@cli.command()
@click.option('--id', help='Project ID', required=False, type=int)
@click.option('--display-name')
@click.argument('slug', required=Fa... |
13b96626a35bc7a430352cf21d6c9a5d206bd910 | simplesqlite/loader/formatter.py | simplesqlite/loader/formatter.py | # encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <[email protected]>
"""
from __future__ import absolute_import
import abc
import six
from .acceptor import LoaderAcceptor
from .error import InvalidDataError
@six.add_metaclass(abc.ABCMeta)
class TableFormatterInterface(object):
"""
Abstract class ... | # encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <[email protected]>
"""
from __future__ import absolute_import
import abc
import six
from .acceptor import LoaderAcceptor
from .error import InvalidDataError
@six.add_metaclass(abc.ABCMeta)
class TableFormatterInterface(object):
"""
Abstract class ... | Delete a private method from interface | Delete a private method from interface
| Python | mit | thombashi/SimpleSQLite,thombashi/SimpleSQLite | # encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <[email protected]>
"""
from __future__ import absolute_import
import abc
import six
from .acceptor import LoaderAcceptor
from .error import InvalidDataError
@six.add_metaclass(abc.ABCMeta)
class TableFormatterInterface(object):
"""
Abstract class ... | # encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <[email protected]>
"""
from __future__ import absolute_import
import abc
import six
from .acceptor import LoaderAcceptor
from .error import InvalidDataError
@six.add_metaclass(abc.ABCMeta)
class TableFormatterInterface(object):
"""
Abstract class ... | <commit_before># encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <[email protected]>
"""
from __future__ import absolute_import
import abc
import six
from .acceptor import LoaderAcceptor
from .error import InvalidDataError
@six.add_metaclass(abc.ABCMeta)
class TableFormatterInterface(object):
"""
... | # encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <[email protected]>
"""
from __future__ import absolute_import
import abc
import six
from .acceptor import LoaderAcceptor
from .error import InvalidDataError
@six.add_metaclass(abc.ABCMeta)
class TableFormatterInterface(object):
"""
Abstract class ... | # encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <[email protected]>
"""
from __future__ import absolute_import
import abc
import six
from .acceptor import LoaderAcceptor
from .error import InvalidDataError
@six.add_metaclass(abc.ABCMeta)
class TableFormatterInterface(object):
"""
Abstract class ... | <commit_before># encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <[email protected]>
"""
from __future__ import absolute_import
import abc
import six
from .acceptor import LoaderAcceptor
from .error import InvalidDataError
@six.add_metaclass(abc.ABCMeta)
class TableFormatterInterface(object):
"""
... |
9846b4460cde52c5f8d1128801c96b3637f7ddc6 | chaco/variable_size_scatterplot.py | chaco/variable_size_scatterplot.py | """ The base ScatterPlot class now accepts variable sized markers.
This definition remains for backwards compatability.
"""
from chaco.scatterplot import ScatterPlot
class VariableSizeScatterPlot(ScatterPlot):
pass
| """ The base ScatterPlot class now accepts variable sized markers.
This definition remains for backwards compatibility.
"""
from chaco.scatterplot import ScatterPlot
# TODO: This should be officially deprecated.
class VariableSizeScatterPlot(ScatterPlot):
pass
| Correct typo, comment about deprecating class. | Correct typo, comment about deprecating class.
| Python | bsd-3-clause | tommy-u/chaco,burnpanck/chaco,burnpanck/chaco,burnpanck/chaco,tommy-u/chaco,tommy-u/chaco | """ The base ScatterPlot class now accepts variable sized markers.
This definition remains for backwards compatability.
"""
from chaco.scatterplot import ScatterPlot
class VariableSizeScatterPlot(ScatterPlot):
pass
Correct typo, comment about deprecating class. | """ The base ScatterPlot class now accepts variable sized markers.
This definition remains for backwards compatibility.
"""
from chaco.scatterplot import ScatterPlot
# TODO: This should be officially deprecated.
class VariableSizeScatterPlot(ScatterPlot):
pass
| <commit_before>""" The base ScatterPlot class now accepts variable sized markers.
This definition remains for backwards compatability.
"""
from chaco.scatterplot import ScatterPlot
class VariableSizeScatterPlot(ScatterPlot):
pass
<commit_msg>Correct typo, comment about deprecating class.<commit_after> | """ The base ScatterPlot class now accepts variable sized markers.
This definition remains for backwards compatibility.
"""
from chaco.scatterplot import ScatterPlot
# TODO: This should be officially deprecated.
class VariableSizeScatterPlot(ScatterPlot):
pass
| """ The base ScatterPlot class now accepts variable sized markers.
This definition remains for backwards compatability.
"""
from chaco.scatterplot import ScatterPlot
class VariableSizeScatterPlot(ScatterPlot):
pass
Correct typo, comment about deprecating class.""" The base ScatterPlot class now accepts variable ... | <commit_before>""" The base ScatterPlot class now accepts variable sized markers.
This definition remains for backwards compatability.
"""
from chaco.scatterplot import ScatterPlot
class VariableSizeScatterPlot(ScatterPlot):
pass
<commit_msg>Correct typo, comment about deprecating class.<commit_after>""" The bas... |
07c2874f88b95b47badfd3199e0a73c57e9249e1 | server/provider.py | server/provider.py | class Provider(object):
"""Base provider class"""
regions = {}
def __init__(self, key=''):
self.key = key
def create(self, region, name='hello'):
raise NotImplemented()
def start(self):
raise NotImplemented()
def stop(self):
raise NotImplemented()
def dst... | class Provider(object):
"""Base provider class"""
regions = {}
def __init__(self, key=''):
self.key = key
def create(self, region, name='hello'):
raise NotImplemented()
def start(self):
raise NotImplemented()
def stop(self):
raise NotImplemented()
def des... | Fix typo in method name | Fix typo in method name
| Python | mit | beeworking/voyant,beeworking/voyant,beeworking/voyant,beeworking/voyant | class Provider(object):
"""Base provider class"""
regions = {}
def __init__(self, key=''):
self.key = key
def create(self, region, name='hello'):
raise NotImplemented()
def start(self):
raise NotImplemented()
def stop(self):
raise NotImplemented()
def dst... | class Provider(object):
"""Base provider class"""
regions = {}
def __init__(self, key=''):
self.key = key
def create(self, region, name='hello'):
raise NotImplemented()
def start(self):
raise NotImplemented()
def stop(self):
raise NotImplemented()
def des... | <commit_before>class Provider(object):
"""Base provider class"""
regions = {}
def __init__(self, key=''):
self.key = key
def create(self, region, name='hello'):
raise NotImplemented()
def start(self):
raise NotImplemented()
def stop(self):
raise NotImplemented... | class Provider(object):
"""Base provider class"""
regions = {}
def __init__(self, key=''):
self.key = key
def create(self, region, name='hello'):
raise NotImplemented()
def start(self):
raise NotImplemented()
def stop(self):
raise NotImplemented()
def des... | class Provider(object):
"""Base provider class"""
regions = {}
def __init__(self, key=''):
self.key = key
def create(self, region, name='hello'):
raise NotImplemented()
def start(self):
raise NotImplemented()
def stop(self):
raise NotImplemented()
def dst... | <commit_before>class Provider(object):
"""Base provider class"""
regions = {}
def __init__(self, key=''):
self.key = key
def create(self, region, name='hello'):
raise NotImplemented()
def start(self):
raise NotImplemented()
def stop(self):
raise NotImplemented... |
eca0f263e8a944a144a08f130e06aeb651e645b4 | social/apps/django_app/urls.py | social/apps/django_app/urls.py | """URLs module"""
from django.conf import settings
try:
from django.conf.urls import patterns, url
except ImportError:
# Django < 1.4
from django.conf.urls.defaults import patterns, url
from social.utils import setting_name
extra = getattr(settings, setting_name('TRAILING_SLASH'), True) and '/' or ''
... | """URLs module"""
from django.conf import settings
try:
from django.conf.urls import url
except ImportError:
# Django < 1.4
from django.conf.urls.defaults import url
from social.utils import setting_name
from social.apps.django_app import views
extra = getattr(settings, setting_name('TRAILING_SLASH'), T... | Fix Django 1.10 deprecation warnings | Fix Django 1.10 deprecation warnings
In django_app/urls.py:
* Use a list instead of `patterns`
* Use view callables instead of strings
Fixes #804, #754
| Python | bsd-3-clause | tkajtoch/python-social-auth,cjltsod/python-social-auth,python-social-auth/social-core,S01780/python-social-auth,tobias47n9e/social-core,fearlessspider/python-social-auth,tkajtoch/python-social-auth,python-social-auth/social-app-cherrypy,python-social-auth/social-app-django,fearlessspider/python-social-auth,python-socia... | """URLs module"""
from django.conf import settings
try:
from django.conf.urls import patterns, url
except ImportError:
# Django < 1.4
from django.conf.urls.defaults import patterns, url
from social.utils import setting_name
extra = getattr(settings, setting_name('TRAILING_SLASH'), True) and '/' or ''
... | """URLs module"""
from django.conf import settings
try:
from django.conf.urls import url
except ImportError:
# Django < 1.4
from django.conf.urls.defaults import url
from social.utils import setting_name
from social.apps.django_app import views
extra = getattr(settings, setting_name('TRAILING_SLASH'), T... | <commit_before>"""URLs module"""
from django.conf import settings
try:
from django.conf.urls import patterns, url
except ImportError:
# Django < 1.4
from django.conf.urls.defaults import patterns, url
from social.utils import setting_name
extra = getattr(settings, setting_name('TRAILING_SLASH'), True) a... | """URLs module"""
from django.conf import settings
try:
from django.conf.urls import url
except ImportError:
# Django < 1.4
from django.conf.urls.defaults import url
from social.utils import setting_name
from social.apps.django_app import views
extra = getattr(settings, setting_name('TRAILING_SLASH'), T... | """URLs module"""
from django.conf import settings
try:
from django.conf.urls import patterns, url
except ImportError:
# Django < 1.4
from django.conf.urls.defaults import patterns, url
from social.utils import setting_name
extra = getattr(settings, setting_name('TRAILING_SLASH'), True) and '/' or ''
... | <commit_before>"""URLs module"""
from django.conf import settings
try:
from django.conf.urls import patterns, url
except ImportError:
# Django < 1.4
from django.conf.urls.defaults import patterns, url
from social.utils import setting_name
extra = getattr(settings, setting_name('TRAILING_SLASH'), True) a... |
6ec35a123f6156001f779ccb5ff3bbda2b1f4477 | src/json_to_csv.py | src/json_to_csv.py | # -*- coding: utf-8 -*-
import json, os, sys
from utils.file import load_json
# Parse a json-formatted input instance and produce a csv file with
# all involved coordinates.
def coord_to_csv(array):
return str(array[0]) + ',' + str(array[1]) + '\n'
def write_to_csv(input_file):
input = load_json(input_file)
l... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json, os, sys
from utils.file import load_json
# Parse a json-formatted input instance and produce a csv file with
# all involved coordinates in Lat,Lng order.
def coord_to_csv(array):
return str(array[1]) + ',' + str(array[0]) + '\n'
def write_to_csv(input_file... | Change coordinates order to Lat,Lng to match the frontend geocoding. | Change coordinates order to Lat,Lng to match the frontend geocoding.
| Python | bsd-2-clause | VROOM-Project/vroom-scripts,VROOM-Project/vroom-scripts | # -*- coding: utf-8 -*-
import json, os, sys
from utils.file import load_json
# Parse a json-formatted input instance and produce a csv file with
# all involved coordinates.
def coord_to_csv(array):
return str(array[0]) + ',' + str(array[1]) + '\n'
def write_to_csv(input_file):
input = load_json(input_file)
l... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json, os, sys
from utils.file import load_json
# Parse a json-formatted input instance and produce a csv file with
# all involved coordinates in Lat,Lng order.
def coord_to_csv(array):
return str(array[1]) + ',' + str(array[0]) + '\n'
def write_to_csv(input_file... | <commit_before># -*- coding: utf-8 -*-
import json, os, sys
from utils.file import load_json
# Parse a json-formatted input instance and produce a csv file with
# all involved coordinates.
def coord_to_csv(array):
return str(array[0]) + ',' + str(array[1]) + '\n'
def write_to_csv(input_file):
input = load_json(i... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json, os, sys
from utils.file import load_json
# Parse a json-formatted input instance and produce a csv file with
# all involved coordinates in Lat,Lng order.
def coord_to_csv(array):
return str(array[1]) + ',' + str(array[0]) + '\n'
def write_to_csv(input_file... | # -*- coding: utf-8 -*-
import json, os, sys
from utils.file import load_json
# Parse a json-formatted input instance and produce a csv file with
# all involved coordinates.
def coord_to_csv(array):
return str(array[0]) + ',' + str(array[1]) + '\n'
def write_to_csv(input_file):
input = load_json(input_file)
l... | <commit_before># -*- coding: utf-8 -*-
import json, os, sys
from utils.file import load_json
# Parse a json-formatted input instance and produce a csv file with
# all involved coordinates.
def coord_to_csv(array):
return str(array[0]) + ',' + str(array[1]) + '\n'
def write_to_csv(input_file):
input = load_json(i... |
ae6967c20d68c497147abbea7495ef874fa08599 | src/akllt/tests/test_z2loader.py | src/akllt/tests/test_z2loader.py | # coding: utf-8
from __future__ import unicode_literals
import unittest
import pkg_resources
import pathlib
from akllt.z2loader import load_metadata
class Z2LoaderTests(unittest.TestCase):
def test_z2loader(self):
path = pkg_resources.resource_filename(
'akllt', 'tests/fixtures/naujienos/.z2... | # coding: utf-8
from __future__ import unicode_literals
import unittest
import pkg_resources
import pathlib
from akllt.dataimport.z2loader import load_metadata
class Z2LoaderTests(unittest.TestCase):
def test_z2loader(self):
path = pkg_resources.resource_filename(
'akllt', 'tests/fixtures/na... | Fix z2loader import path in tests. | Fix z2loader import path in tests.
| Python | agpl-3.0 | python-dirbtuves/akl.lt,python-dirbtuves/akl.lt,python-dirbtuves/akl.lt,python-dirbtuves/akl.lt,python-dirbtuves/akl.lt | # coding: utf-8
from __future__ import unicode_literals
import unittest
import pkg_resources
import pathlib
from akllt.z2loader import load_metadata
class Z2LoaderTests(unittest.TestCase):
def test_z2loader(self):
path = pkg_resources.resource_filename(
'akllt', 'tests/fixtures/naujienos/.z2... | # coding: utf-8
from __future__ import unicode_literals
import unittest
import pkg_resources
import pathlib
from akllt.dataimport.z2loader import load_metadata
class Z2LoaderTests(unittest.TestCase):
def test_z2loader(self):
path = pkg_resources.resource_filename(
'akllt', 'tests/fixtures/na... | <commit_before># coding: utf-8
from __future__ import unicode_literals
import unittest
import pkg_resources
import pathlib
from akllt.z2loader import load_metadata
class Z2LoaderTests(unittest.TestCase):
def test_z2loader(self):
path = pkg_resources.resource_filename(
'akllt', 'tests/fixture... | # coding: utf-8
from __future__ import unicode_literals
import unittest
import pkg_resources
import pathlib
from akllt.dataimport.z2loader import load_metadata
class Z2LoaderTests(unittest.TestCase):
def test_z2loader(self):
path = pkg_resources.resource_filename(
'akllt', 'tests/fixtures/na... | # coding: utf-8
from __future__ import unicode_literals
import unittest
import pkg_resources
import pathlib
from akllt.z2loader import load_metadata
class Z2LoaderTests(unittest.TestCase):
def test_z2loader(self):
path = pkg_resources.resource_filename(
'akllt', 'tests/fixtures/naujienos/.z2... | <commit_before># coding: utf-8
from __future__ import unicode_literals
import unittest
import pkg_resources
import pathlib
from akllt.z2loader import load_metadata
class Z2LoaderTests(unittest.TestCase):
def test_z2loader(self):
path = pkg_resources.resource_filename(
'akllt', 'tests/fixture... |
94c98ad923f1a136bcf14b81d559f634c1bc262e | populous/generators/select.py | populous/generators/select.py | from .base import Generator
class Select(Generator):
def get_arguments(self, table=None, where=None, pk='id', **kwargs):
super(Select, self).get_arguments(**kwargs)
self.table = table
self.where = where
self.pk = pk
def generate(self):
backend = self.blueprint.backen... | from .base import Generator
from .vars import parse_vars
class Select(Generator):
def get_arguments(self, table=None, where=None, pk='id', **kwargs):
super(Select, self).get_arguments(**kwargs)
self.table = table
self.where = parse_vars(where)
self.pk = pk
def generate(self)... | Handle where with variables in Select generator | Handle where with variables in Select generator
| Python | mit | novafloss/populous | from .base import Generator
class Select(Generator):
def get_arguments(self, table=None, where=None, pk='id', **kwargs):
super(Select, self).get_arguments(**kwargs)
self.table = table
self.where = where
self.pk = pk
def generate(self):
backend = self.blueprint.backen... | from .base import Generator
from .vars import parse_vars
class Select(Generator):
def get_arguments(self, table=None, where=None, pk='id', **kwargs):
super(Select, self).get_arguments(**kwargs)
self.table = table
self.where = parse_vars(where)
self.pk = pk
def generate(self)... | <commit_before>from .base import Generator
class Select(Generator):
def get_arguments(self, table=None, where=None, pk='id', **kwargs):
super(Select, self).get_arguments(**kwargs)
self.table = table
self.where = where
self.pk = pk
def generate(self):
backend = self.b... | from .base import Generator
from .vars import parse_vars
class Select(Generator):
def get_arguments(self, table=None, where=None, pk='id', **kwargs):
super(Select, self).get_arguments(**kwargs)
self.table = table
self.where = parse_vars(where)
self.pk = pk
def generate(self)... | from .base import Generator
class Select(Generator):
def get_arguments(self, table=None, where=None, pk='id', **kwargs):
super(Select, self).get_arguments(**kwargs)
self.table = table
self.where = where
self.pk = pk
def generate(self):
backend = self.blueprint.backen... | <commit_before>from .base import Generator
class Select(Generator):
def get_arguments(self, table=None, where=None, pk='id', **kwargs):
super(Select, self).get_arguments(**kwargs)
self.table = table
self.where = where
self.pk = pk
def generate(self):
backend = self.b... |
b61769bec41a93366eae3030eec5d8fcaedcedd6 | chainerrl/explorers/additive_gaussian.py | chainerrl/explorers/additive_gaussian.py | from __future__ import division
from __future__ import unicode_literals
from __future__ import print_function
from __future__ import absolute_import
from builtins import * # NOQA
from future import standard_library
standard_library.install_aliases()
import numpy as np
from chainerrl import explorer
class AdditiveG... | from __future__ import division
from __future__ import unicode_literals
from __future__ import print_function
from __future__ import absolute_import
from builtins import * # NOQA
from future import standard_library
standard_library.install_aliases()
import numpy as np
from chainerrl import explorer
class AdditiveG... | Improve the docstring of AdditiveGaussian | Improve the docstring of AdditiveGaussian | Python | mit | toslunar/chainerrl,toslunar/chainerrl | from __future__ import division
from __future__ import unicode_literals
from __future__ import print_function
from __future__ import absolute_import
from builtins import * # NOQA
from future import standard_library
standard_library.install_aliases()
import numpy as np
from chainerrl import explorer
class AdditiveG... | from __future__ import division
from __future__ import unicode_literals
from __future__ import print_function
from __future__ import absolute_import
from builtins import * # NOQA
from future import standard_library
standard_library.install_aliases()
import numpy as np
from chainerrl import explorer
class AdditiveG... | <commit_before>from __future__ import division
from __future__ import unicode_literals
from __future__ import print_function
from __future__ import absolute_import
from builtins import * # NOQA
from future import standard_library
standard_library.install_aliases()
import numpy as np
from chainerrl import explorer
... | from __future__ import division
from __future__ import unicode_literals
from __future__ import print_function
from __future__ import absolute_import
from builtins import * # NOQA
from future import standard_library
standard_library.install_aliases()
import numpy as np
from chainerrl import explorer
class AdditiveG... | from __future__ import division
from __future__ import unicode_literals
from __future__ import print_function
from __future__ import absolute_import
from builtins import * # NOQA
from future import standard_library
standard_library.install_aliases()
import numpy as np
from chainerrl import explorer
class AdditiveG... | <commit_before>from __future__ import division
from __future__ import unicode_literals
from __future__ import print_function
from __future__ import absolute_import
from builtins import * # NOQA
from future import standard_library
standard_library.install_aliases()
import numpy as np
from chainerrl import explorer
... |
a9c7cab5606465526f8b39da7b497e1072e120af | autotime/__init__.py | autotime/__init__.py | from __future__ import print_function
import time
from IPython.core.magics.execution import _format_time as format_delta
class LineWatcher(object):
"""Class that implements a basic timer.
Notes
-----
* Register the `start` and `stop` methods with the IPython events API.
"""
def __init__(s... | from __future__ import print_function
import time
from IPython.core.magics.execution import _format_time as format_delta
class LineWatcher(object):
"""Class that implements a basic timer.
Notes
-----
* Register the `start` and `stop` methods with the IPython events API.
"""
def __init__(s... | Change time difference assert from > to >= 0 | Change time difference assert from > to >= 0
diff == 0 occurs on when executing trivial code in a cell. Updating the
assert to include this.
| Python | apache-2.0 | cpcloud/ipython-autotime | from __future__ import print_function
import time
from IPython.core.magics.execution import _format_time as format_delta
class LineWatcher(object):
"""Class that implements a basic timer.
Notes
-----
* Register the `start` and `stop` methods with the IPython events API.
"""
def __init__(s... | from __future__ import print_function
import time
from IPython.core.magics.execution import _format_time as format_delta
class LineWatcher(object):
"""Class that implements a basic timer.
Notes
-----
* Register the `start` and `stop` methods with the IPython events API.
"""
def __init__(s... | <commit_before>from __future__ import print_function
import time
from IPython.core.magics.execution import _format_time as format_delta
class LineWatcher(object):
"""Class that implements a basic timer.
Notes
-----
* Register the `start` and `stop` methods with the IPython events API.
"""
... | from __future__ import print_function
import time
from IPython.core.magics.execution import _format_time as format_delta
class LineWatcher(object):
"""Class that implements a basic timer.
Notes
-----
* Register the `start` and `stop` methods with the IPython events API.
"""
def __init__(s... | from __future__ import print_function
import time
from IPython.core.magics.execution import _format_time as format_delta
class LineWatcher(object):
"""Class that implements a basic timer.
Notes
-----
* Register the `start` and `stop` methods with the IPython events API.
"""
def __init__(s... | <commit_before>from __future__ import print_function
import time
from IPython.core.magics.execution import _format_time as format_delta
class LineWatcher(object):
"""Class that implements a basic timer.
Notes
-----
* Register the `start` and `stop` methods with the IPython events API.
"""
... |
e4d06cf4121bc9e1a1f9635e159187b8bed1b2ee | pyalysis/analysers/raw.py | pyalysis/analysers/raw.py | # coding: utf-8
"""
pyalysis.analysers.raw
~~~~~~~~~~~~~~~~~~~~~~
:copyright: 2014 by Daniel Neuhäuser and Contributors
:license: BSD, see LICENSE.rst for details
"""
import codecs
from blinker import Signal
from pyalysis.utils import detect_encoding, Location
from pyalysis.warnings import LineTooLon... | # coding: utf-8
"""
pyalysis.analysers.raw
~~~~~~~~~~~~~~~~~~~~~~
:copyright: 2014 by Daniel Neuhäuser and Contributors
:license: BSD, see LICENSE.rst for details
"""
import codecs
from blinker import Signal
from pyalysis.utils import detect_encoding, Location
from pyalysis.warnings import LineTooLon... | Fix location of line length check | Fix location of line length check
| Python | bsd-3-clause | DasIch/pyalysis,DasIch/pyalysis | # coding: utf-8
"""
pyalysis.analysers.raw
~~~~~~~~~~~~~~~~~~~~~~
:copyright: 2014 by Daniel Neuhäuser and Contributors
:license: BSD, see LICENSE.rst for details
"""
import codecs
from blinker import Signal
from pyalysis.utils import detect_encoding, Location
from pyalysis.warnings import LineTooLon... | # coding: utf-8
"""
pyalysis.analysers.raw
~~~~~~~~~~~~~~~~~~~~~~
:copyright: 2014 by Daniel Neuhäuser and Contributors
:license: BSD, see LICENSE.rst for details
"""
import codecs
from blinker import Signal
from pyalysis.utils import detect_encoding, Location
from pyalysis.warnings import LineTooLon... | <commit_before># coding: utf-8
"""
pyalysis.analysers.raw
~~~~~~~~~~~~~~~~~~~~~~
:copyright: 2014 by Daniel Neuhäuser and Contributors
:license: BSD, see LICENSE.rst for details
"""
import codecs
from blinker import Signal
from pyalysis.utils import detect_encoding, Location
from pyalysis.warnings im... | # coding: utf-8
"""
pyalysis.analysers.raw
~~~~~~~~~~~~~~~~~~~~~~
:copyright: 2014 by Daniel Neuhäuser and Contributors
:license: BSD, see LICENSE.rst for details
"""
import codecs
from blinker import Signal
from pyalysis.utils import detect_encoding, Location
from pyalysis.warnings import LineTooLon... | # coding: utf-8
"""
pyalysis.analysers.raw
~~~~~~~~~~~~~~~~~~~~~~
:copyright: 2014 by Daniel Neuhäuser and Contributors
:license: BSD, see LICENSE.rst for details
"""
import codecs
from blinker import Signal
from pyalysis.utils import detect_encoding, Location
from pyalysis.warnings import LineTooLon... | <commit_before># coding: utf-8
"""
pyalysis.analysers.raw
~~~~~~~~~~~~~~~~~~~~~~
:copyright: 2014 by Daniel Neuhäuser and Contributors
:license: BSD, see LICENSE.rst for details
"""
import codecs
from blinker import Signal
from pyalysis.utils import detect_encoding, Location
from pyalysis.warnings im... |
347545cc7ece8c0763ef194654fbaa34d16efe54 | styleguide/views.py | styleguide/views.py | from django.shortcuts import get_object_or_404, render
from django import forms
class ExampleForm(forms.Form):
text = forms.CharField()
disabled_text = forms.CharField(disabled=True)
readonly_text = forms.CharField(
widget=forms.TextInput(attrs={'readonly':'readonly'})
)
checkbox1 = forms.... | from django.shortcuts import get_object_or_404, render
from django import forms
class ExampleForm(forms.Form):
text = forms.CharField()
disabled_text = forms.CharField(disabled=True)
readonly_text = forms.CharField(
widget=forms.TextInput(attrs={'readonly':'readonly'})
)
checkbox1 = forms.... | Add readonly text to form | Add readonly text to form
| Python | bsd-3-clause | caktus/django-styleguide,caktus/django-styleguide,caktus/django-styleguide | from django.shortcuts import get_object_or_404, render
from django import forms
class ExampleForm(forms.Form):
text = forms.CharField()
disabled_text = forms.CharField(disabled=True)
readonly_text = forms.CharField(
widget=forms.TextInput(attrs={'readonly':'readonly'})
)
checkbox1 = forms.... | from django.shortcuts import get_object_or_404, render
from django import forms
class ExampleForm(forms.Form):
text = forms.CharField()
disabled_text = forms.CharField(disabled=True)
readonly_text = forms.CharField(
widget=forms.TextInput(attrs={'readonly':'readonly'})
)
checkbox1 = forms.... | <commit_before>from django.shortcuts import get_object_or_404, render
from django import forms
class ExampleForm(forms.Form):
text = forms.CharField()
disabled_text = forms.CharField(disabled=True)
readonly_text = forms.CharField(
widget=forms.TextInput(attrs={'readonly':'readonly'})
)
che... | from django.shortcuts import get_object_or_404, render
from django import forms
class ExampleForm(forms.Form):
text = forms.CharField()
disabled_text = forms.CharField(disabled=True)
readonly_text = forms.CharField(
widget=forms.TextInput(attrs={'readonly':'readonly'})
)
checkbox1 = forms.... | from django.shortcuts import get_object_or_404, render
from django import forms
class ExampleForm(forms.Form):
text = forms.CharField()
disabled_text = forms.CharField(disabled=True)
readonly_text = forms.CharField(
widget=forms.TextInput(attrs={'readonly':'readonly'})
)
checkbox1 = forms.... | <commit_before>from django.shortcuts import get_object_or_404, render
from django import forms
class ExampleForm(forms.Form):
text = forms.CharField()
disabled_text = forms.CharField(disabled=True)
readonly_text = forms.CharField(
widget=forms.TextInput(attrs={'readonly':'readonly'})
)
che... |
54cf69b4c105038f896ceaf8af10c82fd3772bf9 | pyethapp/tests/test_export.py | pyethapp/tests/test_export.py | from StringIO import StringIO
import subprocess
from pyethapp.app import app
from click.testing import CliRunner
from ethereum.blocks import BlockHeader
import rlp
def test_export():
# requires a chain with at least 5 blocks
assert subprocess.call('pyethapp export', shell=True) != 0
assert subprocess.call... | from StringIO import StringIO
import subprocess
from pyethapp.app import app
from click.testing import CliRunner
from ethereum.blocks import BlockHeader
import rlp
import pytest
@pytest.mark.xfail # can not work without mock-up chain
def test_export():
# requires a chain with at least 5 blocks
assert subproc... | Mark export test XFAIL since no chain mockup exists | Mark export test XFAIL since no chain mockup exists
| Python | mit | gsalgado/pyethapp,changwu-tw/pyethapp,RomanZacharia/pyethapp,ethereum/pyethapp,gsalgado/pyethapp,ethereum/pyethapp,changwu-tw/pyethapp,vaporry/pyethapp,RomanZacharia/pyethapp,d-das/pyethapp | from StringIO import StringIO
import subprocess
from pyethapp.app import app
from click.testing import CliRunner
from ethereum.blocks import BlockHeader
import rlp
def test_export():
# requires a chain with at least 5 blocks
assert subprocess.call('pyethapp export', shell=True) != 0
assert subprocess.call... | from StringIO import StringIO
import subprocess
from pyethapp.app import app
from click.testing import CliRunner
from ethereum.blocks import BlockHeader
import rlp
import pytest
@pytest.mark.xfail # can not work without mock-up chain
def test_export():
# requires a chain with at least 5 blocks
assert subproc... | <commit_before>from StringIO import StringIO
import subprocess
from pyethapp.app import app
from click.testing import CliRunner
from ethereum.blocks import BlockHeader
import rlp
def test_export():
# requires a chain with at least 5 blocks
assert subprocess.call('pyethapp export', shell=True) != 0
assert ... | from StringIO import StringIO
import subprocess
from pyethapp.app import app
from click.testing import CliRunner
from ethereum.blocks import BlockHeader
import rlp
import pytest
@pytest.mark.xfail # can not work without mock-up chain
def test_export():
# requires a chain with at least 5 blocks
assert subproc... | from StringIO import StringIO
import subprocess
from pyethapp.app import app
from click.testing import CliRunner
from ethereum.blocks import BlockHeader
import rlp
def test_export():
# requires a chain with at least 5 blocks
assert subprocess.call('pyethapp export', shell=True) != 0
assert subprocess.call... | <commit_before>from StringIO import StringIO
import subprocess
from pyethapp.app import app
from click.testing import CliRunner
from ethereum.blocks import BlockHeader
import rlp
def test_export():
# requires a chain with at least 5 blocks
assert subprocess.call('pyethapp export', shell=True) != 0
assert ... |
27e573d55b37869e09b8cf9809ea41e9b2ce1567 | tests/data_test.py | tests/data_test.py | from pork.data import Data
from mock import Mock, patch
from StringIO import StringIO
patch.TEST_PREFIX = 'it'
class TestData:
def it_sets_and_gets_keys(self):
with patch("__builtin__.open", side_effect=IOError):
data = Data()
with patch("__builtin__.open"):
data.set('foo'... | from pork.data import Data
from mock import Mock, patch, mock_open
from StringIO import StringIO
patch.TEST_PREFIX = 'it'
class TestData:
def it_loads_json_data_from_file(self):
with patch("__builtin__.open", mock_open(read_data='{"foo":"bar"}'),
create=True) as m:
data = Data()
... | Use mock_open and remove unnecessary stubbing of open. | Use mock_open and remove unnecessary stubbing of open.
| Python | mit | jimmycuadra/pork,jimmycuadra/pork | from pork.data import Data
from mock import Mock, patch
from StringIO import StringIO
patch.TEST_PREFIX = 'it'
class TestData:
def it_sets_and_gets_keys(self):
with patch("__builtin__.open", side_effect=IOError):
data = Data()
with patch("__builtin__.open"):
data.set('foo'... | from pork.data import Data
from mock import Mock, patch, mock_open
from StringIO import StringIO
patch.TEST_PREFIX = 'it'
class TestData:
def it_loads_json_data_from_file(self):
with patch("__builtin__.open", mock_open(read_data='{"foo":"bar"}'),
create=True) as m:
data = Data()
... | <commit_before>from pork.data import Data
from mock import Mock, patch
from StringIO import StringIO
patch.TEST_PREFIX = 'it'
class TestData:
def it_sets_and_gets_keys(self):
with patch("__builtin__.open", side_effect=IOError):
data = Data()
with patch("__builtin__.open"):
... | from pork.data import Data
from mock import Mock, patch, mock_open
from StringIO import StringIO
patch.TEST_PREFIX = 'it'
class TestData:
def it_loads_json_data_from_file(self):
with patch("__builtin__.open", mock_open(read_data='{"foo":"bar"}'),
create=True) as m:
data = Data()
... | from pork.data import Data
from mock import Mock, patch
from StringIO import StringIO
patch.TEST_PREFIX = 'it'
class TestData:
def it_sets_and_gets_keys(self):
with patch("__builtin__.open", side_effect=IOError):
data = Data()
with patch("__builtin__.open"):
data.set('foo'... | <commit_before>from pork.data import Data
from mock import Mock, patch
from StringIO import StringIO
patch.TEST_PREFIX = 'it'
class TestData:
def it_sets_and_gets_keys(self):
with patch("__builtin__.open", side_effect=IOError):
data = Data()
with patch("__builtin__.open"):
... |
0b7e957fea7bbd08c79c2b2b4d9b8edfced38496 | tests/providers.py | tests/providers.py | import unittest
import foauth.providers
class ProviderTests(unittest.TestCase):
def setUp(self):
class Example(foauth.providers.OAuth):
provider_url = 'http://example.com'
api_domain = 'api.example.com'
self.provider = Example
def test_auto_name(self):
self.as... | import unittest
import foauth.providers
import urllib
class ProviderTests(unittest.TestCase):
def setUp(self):
class Example(foauth.providers.OAuth):
provider_url = 'http://example.com'
api_domain = 'api.example.com'
self.provider = Example
def test_auto_name(self):
... | Fix favicon tests to match the new scheme | Fix favicon tests to match the new scheme
| Python | bsd-3-clause | foauth/foauth.org,foauth/foauth.org,foauth/foauth.org | import unittest
import foauth.providers
class ProviderTests(unittest.TestCase):
def setUp(self):
class Example(foauth.providers.OAuth):
provider_url = 'http://example.com'
api_domain = 'api.example.com'
self.provider = Example
def test_auto_name(self):
self.as... | import unittest
import foauth.providers
import urllib
class ProviderTests(unittest.TestCase):
def setUp(self):
class Example(foauth.providers.OAuth):
provider_url = 'http://example.com'
api_domain = 'api.example.com'
self.provider = Example
def test_auto_name(self):
... | <commit_before>import unittest
import foauth.providers
class ProviderTests(unittest.TestCase):
def setUp(self):
class Example(foauth.providers.OAuth):
provider_url = 'http://example.com'
api_domain = 'api.example.com'
self.provider = Example
def test_auto_name(self):
... | import unittest
import foauth.providers
import urllib
class ProviderTests(unittest.TestCase):
def setUp(self):
class Example(foauth.providers.OAuth):
provider_url = 'http://example.com'
api_domain = 'api.example.com'
self.provider = Example
def test_auto_name(self):
... | import unittest
import foauth.providers
class ProviderTests(unittest.TestCase):
def setUp(self):
class Example(foauth.providers.OAuth):
provider_url = 'http://example.com'
api_domain = 'api.example.com'
self.provider = Example
def test_auto_name(self):
self.as... | <commit_before>import unittest
import foauth.providers
class ProviderTests(unittest.TestCase):
def setUp(self):
class Example(foauth.providers.OAuth):
provider_url = 'http://example.com'
api_domain = 'api.example.com'
self.provider = Example
def test_auto_name(self):
... |
c75c1764e276d1cbda61e1258eb6e09298bce3ce | tests/test_bulk.py | tests/test_bulk.py | import json
from django.db import models
from django.conf import settings
from django.test import TestCase
from localized_fields.fields import LocalizedField, LocalizedUniqueSlugField
from .data import get_init_values
from .fake_model import get_fake_model
class LocalizedBulkTestCase(TestCase):
"""Tests bulk o... | from django.db import models
from django.test import TestCase
from localized_fields.fields import LocalizedField, LocalizedUniqueSlugField
from .fake_model import get_fake_model
class LocalizedBulkTestCase(TestCase):
"""Tests bulk operations with data structures provided
by the django-localized-fields libra... | Improve test case for bulk_create | Improve test case for bulk_create
| Python | mit | SectorLabs/django-localized-fields,SectorLabs/django-localized-fields,SectorLabs/django-localized-fields | import json
from django.db import models
from django.conf import settings
from django.test import TestCase
from localized_fields.fields import LocalizedField, LocalizedUniqueSlugField
from .data import get_init_values
from .fake_model import get_fake_model
class LocalizedBulkTestCase(TestCase):
"""Tests bulk o... | from django.db import models
from django.test import TestCase
from localized_fields.fields import LocalizedField, LocalizedUniqueSlugField
from .fake_model import get_fake_model
class LocalizedBulkTestCase(TestCase):
"""Tests bulk operations with data structures provided
by the django-localized-fields libra... | <commit_before>import json
from django.db import models
from django.conf import settings
from django.test import TestCase
from localized_fields.fields import LocalizedField, LocalizedUniqueSlugField
from .data import get_init_values
from .fake_model import get_fake_model
class LocalizedBulkTestCase(TestCase):
... | from django.db import models
from django.test import TestCase
from localized_fields.fields import LocalizedField, LocalizedUniqueSlugField
from .fake_model import get_fake_model
class LocalizedBulkTestCase(TestCase):
"""Tests bulk operations with data structures provided
by the django-localized-fields libra... | import json
from django.db import models
from django.conf import settings
from django.test import TestCase
from localized_fields.fields import LocalizedField, LocalizedUniqueSlugField
from .data import get_init_values
from .fake_model import get_fake_model
class LocalizedBulkTestCase(TestCase):
"""Tests bulk o... | <commit_before>import json
from django.db import models
from django.conf import settings
from django.test import TestCase
from localized_fields.fields import LocalizedField, LocalizedUniqueSlugField
from .data import get_init_values
from .fake_model import get_fake_model
class LocalizedBulkTestCase(TestCase):
... |
84dea9ec30135e193789bc81c982070f4389427e | api/serializers.py | api/serializers.py | from django.forms import widgets
from rest_framework import serializers
from api.models import Reading
from django.contrib.auth.models import User
class ReadingSerializer(serializers.ModelSerializer):
owner = serializers.Field(source='owner.username')
class Meta:
model = Reading
fields = ('crea... | from rest_framework import serializers
from api.models import Reading
from django.contrib.auth.models import User
import datetime
class ReadingSerializer(serializers.HyperlinkedModelSerializer):
owner = serializers.ReadOnlyField(source='owner.username')
class Meta:
model = Reading
fields = ('... | Add User Serializer to be able to create users from REST API | Add User Serializer to be able to create users from REST API
| Python | bsd-3-clause | developmentseed/dustduino-server,codefornigeria/dustduino-server,developmentseed/dustduino-server,codefornigeria/dustduino-server,codefornigeria/dustduino-server,developmentseed/dustduino-server | from django.forms import widgets
from rest_framework import serializers
from api.models import Reading
from django.contrib.auth.models import User
class ReadingSerializer(serializers.ModelSerializer):
owner = serializers.Field(source='owner.username')
class Meta:
model = Reading
fields = ('crea... | from rest_framework import serializers
from api.models import Reading
from django.contrib.auth.models import User
import datetime
class ReadingSerializer(serializers.HyperlinkedModelSerializer):
owner = serializers.ReadOnlyField(source='owner.username')
class Meta:
model = Reading
fields = ('... | <commit_before>from django.forms import widgets
from rest_framework import serializers
from api.models import Reading
from django.contrib.auth.models import User
class ReadingSerializer(serializers.ModelSerializer):
owner = serializers.Field(source='owner.username')
class Meta:
model = Reading
... | from rest_framework import serializers
from api.models import Reading
from django.contrib.auth.models import User
import datetime
class ReadingSerializer(serializers.HyperlinkedModelSerializer):
owner = serializers.ReadOnlyField(source='owner.username')
class Meta:
model = Reading
fields = ('... | from django.forms import widgets
from rest_framework import serializers
from api.models import Reading
from django.contrib.auth.models import User
class ReadingSerializer(serializers.ModelSerializer):
owner = serializers.Field(source='owner.username')
class Meta:
model = Reading
fields = ('crea... | <commit_before>from django.forms import widgets
from rest_framework import serializers
from api.models import Reading
from django.contrib.auth.models import User
class ReadingSerializer(serializers.ModelSerializer):
owner = serializers.Field(source='owner.username')
class Meta:
model = Reading
... |
3b9d15fcedd5edbe6dcf8ad58e9dbee0cecb6a04 | sentry/core/processors.py | sentry/core/processors.py | """
sentry.core.processors
~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
class Processor(object):
def process(self, data):
resp = self.get_data(data)
if resp:
data['extra'].update(resp)
... | """
sentry.core.processors
~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
class Processor(object):
def process(self, data):
resp = self.get_data(data)
if resp:
data['extra'].update(resp)
... | Remove print statement and change mask to use a fixed length | Remove print statement and change mask to use a fixed length
| Python | bsd-3-clause | dcramer/sentry-old,dcramer/sentry-old,dcramer/sentry-old | """
sentry.core.processors
~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
class Processor(object):
def process(self, data):
resp = self.get_data(data)
if resp:
data['extra'].update(resp)
... | """
sentry.core.processors
~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
class Processor(object):
def process(self, data):
resp = self.get_data(data)
if resp:
data['extra'].update(resp)
... | <commit_before>"""
sentry.core.processors
~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
class Processor(object):
def process(self, data):
resp = self.get_data(data)
if resp:
data['extra'].u... | """
sentry.core.processors
~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
class Processor(object):
def process(self, data):
resp = self.get_data(data)
if resp:
data['extra'].update(resp)
... | """
sentry.core.processors
~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
class Processor(object):
def process(self, data):
resp = self.get_data(data)
if resp:
data['extra'].update(resp)
... | <commit_before>"""
sentry.core.processors
~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
class Processor(object):
def process(self, data):
resp = self.get_data(data)
if resp:
data['extra'].u... |
a3b9a98265c56f2a687e618ca1851f3a70ead34c | thetis/__init__.py | thetis/__init__.py | from __future__ import absolute_import
from thetis.utility import *
from thetis.log import *
import thetis.timeintegrator as timeintegrator # NOQA
import thetis.solver as solver # NOQA
import thetis.solver2d as solver2d # NOQA
from thetis.callback import DiagnosticCallback # NOQA
import thetis.limiter as limiter ... | from __future__ import absolute_import
from thetis.utility import * # NOQA
from thetis.log import * # NOQA
import thetis.timeintegrator as timeintegrator # NOQA
import thetis.solver as solver # NOQA
import thetis.solver2d as solver2d # NOQA
from thetis.callback import DiagnosticCallback # NOQA
import thetis.limiter... | Remove no longer existing assembly cache option. | Remove no longer existing assembly cache option.
| Python | mit | tkarna/cofs | from __future__ import absolute_import
from thetis.utility import *
from thetis.log import *
import thetis.timeintegrator as timeintegrator # NOQA
import thetis.solver as solver # NOQA
import thetis.solver2d as solver2d # NOQA
from thetis.callback import DiagnosticCallback # NOQA
import thetis.limiter as limiter ... | from __future__ import absolute_import
from thetis.utility import * # NOQA
from thetis.log import * # NOQA
import thetis.timeintegrator as timeintegrator # NOQA
import thetis.solver as solver # NOQA
import thetis.solver2d as solver2d # NOQA
from thetis.callback import DiagnosticCallback # NOQA
import thetis.limiter... | <commit_before>from __future__ import absolute_import
from thetis.utility import *
from thetis.log import *
import thetis.timeintegrator as timeintegrator # NOQA
import thetis.solver as solver # NOQA
import thetis.solver2d as solver2d # NOQA
from thetis.callback import DiagnosticCallback # NOQA
import thetis.limite... | from __future__ import absolute_import
from thetis.utility import * # NOQA
from thetis.log import * # NOQA
import thetis.timeintegrator as timeintegrator # NOQA
import thetis.solver as solver # NOQA
import thetis.solver2d as solver2d # NOQA
from thetis.callback import DiagnosticCallback # NOQA
import thetis.limiter... | from __future__ import absolute_import
from thetis.utility import *
from thetis.log import *
import thetis.timeintegrator as timeintegrator # NOQA
import thetis.solver as solver # NOQA
import thetis.solver2d as solver2d # NOQA
from thetis.callback import DiagnosticCallback # NOQA
import thetis.limiter as limiter ... | <commit_before>from __future__ import absolute_import
from thetis.utility import *
from thetis.log import *
import thetis.timeintegrator as timeintegrator # NOQA
import thetis.solver as solver # NOQA
import thetis.solver2d as solver2d # NOQA
from thetis.callback import DiagnosticCallback # NOQA
import thetis.limite... |
d391f6fe8371b045cd684841da59984e5b28b1b3 | plata/product/producer/models.py | plata/product/producer/models.py | from datetime import datetime
from django.db import models
from django.db.models import Sum, signals
from django.utils.translation import ugettext_lazy as _
from plata.product.models import Product
class ProducerManager(models.Manager):
def active(self):
return self.filter(is_active=True)
class Produc... | from datetime import datetime
from django.db import models
from django.db.models import Sum, signals
from django.utils.translation import ugettext_lazy as _
from plata.product.models import Product
class ProducerManager(models.Manager):
def active(self):
return self.filter(is_active=True)
class Produc... | Revert "It shouldn't be that hard to define a producer, really" | Revert "It shouldn't be that hard to define a producer, really"
Sometimes it is.
This reverts commit 883c518d8844bd006d6abc783b315aea01d59b69.
| Python | bsd-3-clause | allink/plata,armicron/plata,stefanklug/plata,armicron/plata,armicron/plata | from datetime import datetime
from django.db import models
from django.db.models import Sum, signals
from django.utils.translation import ugettext_lazy as _
from plata.product.models import Product
class ProducerManager(models.Manager):
def active(self):
return self.filter(is_active=True)
class Produc... | from datetime import datetime
from django.db import models
from django.db.models import Sum, signals
from django.utils.translation import ugettext_lazy as _
from plata.product.models import Product
class ProducerManager(models.Manager):
def active(self):
return self.filter(is_active=True)
class Produc... | <commit_before>from datetime import datetime
from django.db import models
from django.db.models import Sum, signals
from django.utils.translation import ugettext_lazy as _
from plata.product.models import Product
class ProducerManager(models.Manager):
def active(self):
return self.filter(is_active=True)... | from datetime import datetime
from django.db import models
from django.db.models import Sum, signals
from django.utils.translation import ugettext_lazy as _
from plata.product.models import Product
class ProducerManager(models.Manager):
def active(self):
return self.filter(is_active=True)
class Produc... | from datetime import datetime
from django.db import models
from django.db.models import Sum, signals
from django.utils.translation import ugettext_lazy as _
from plata.product.models import Product
class ProducerManager(models.Manager):
def active(self):
return self.filter(is_active=True)
class Produc... | <commit_before>from datetime import datetime
from django.db import models
from django.db.models import Sum, signals
from django.utils.translation import ugettext_lazy as _
from plata.product.models import Product
class ProducerManager(models.Manager):
def active(self):
return self.filter(is_active=True)... |
64a1bb661f7ff1beb2e65b8f87a7528787e27b06 | test/use_lldb_suite.py | test/use_lldb_suite.py | import inspect
import os
import sys
def find_lldb_root():
lldb_root = os.path.dirname(inspect.getfile(inspect.currentframe()))
while True:
lldb_root = os.path.dirname(lldb_root)
if lldb_root is None:
return None
test_path = os.path.join(lldb_root, "use_lldb_suite_root.py")... | import inspect
import os
import sys
def find_lldb_root():
lldb_root = os.path.dirname(
os.path.abspath(inspect.getfile(inspect.currentframe()))
)
while True:
lldb_root = os.path.dirname(lldb_root)
if lldb_root is None:
return None
test_path = os.path.join(lldb_... | Modify lldb_suite.py to enable python debugging | Modify lldb_suite.py to enable python debugging
Summary:
pudb and pdb interfere with the behavior of the inspect module. calling
`inspect.getfile(inspect.currentframe())` returns a different result
depending on whether or not you're in a debugger. Calling
`os.path.abspath` on the result of `inspect.getfile(...)` norma... | Python | apache-2.0 | llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb | import inspect
import os
import sys
def find_lldb_root():
lldb_root = os.path.dirname(inspect.getfile(inspect.currentframe()))
while True:
lldb_root = os.path.dirname(lldb_root)
if lldb_root is None:
return None
test_path = os.path.join(lldb_root, "use_lldb_suite_root.py")... | import inspect
import os
import sys
def find_lldb_root():
lldb_root = os.path.dirname(
os.path.abspath(inspect.getfile(inspect.currentframe()))
)
while True:
lldb_root = os.path.dirname(lldb_root)
if lldb_root is None:
return None
test_path = os.path.join(lldb_... | <commit_before>import inspect
import os
import sys
def find_lldb_root():
lldb_root = os.path.dirname(inspect.getfile(inspect.currentframe()))
while True:
lldb_root = os.path.dirname(lldb_root)
if lldb_root is None:
return None
test_path = os.path.join(lldb_root, "use_lldb_... | import inspect
import os
import sys
def find_lldb_root():
lldb_root = os.path.dirname(
os.path.abspath(inspect.getfile(inspect.currentframe()))
)
while True:
lldb_root = os.path.dirname(lldb_root)
if lldb_root is None:
return None
test_path = os.path.join(lldb_... | import inspect
import os
import sys
def find_lldb_root():
lldb_root = os.path.dirname(inspect.getfile(inspect.currentframe()))
while True:
lldb_root = os.path.dirname(lldb_root)
if lldb_root is None:
return None
test_path = os.path.join(lldb_root, "use_lldb_suite_root.py")... | <commit_before>import inspect
import os
import sys
def find_lldb_root():
lldb_root = os.path.dirname(inspect.getfile(inspect.currentframe()))
while True:
lldb_root = os.path.dirname(lldb_root)
if lldb_root is None:
return None
test_path = os.path.join(lldb_root, "use_lldb_... |
d1f0d0d913f8857b5390b8e17e96892525f87895 | doc/fake_cffi.py | doc/fake_cffi.py | """Mock module for Sphinx autodoc."""
class FFI(object):
NULL = NotImplemented
I_AM_FAKE = True # This is used for the documentation of "default"
def cdef(self, _):
pass
def dlopen(self, _):
return FakePortAudio()
class FakePortAudio(object):
paFloat32 = paInt32 = paInt24 = ... | """Mock module for Sphinx autodoc."""
class FFI(object):
NULL = NotImplemented
I_AM_FAKE = True # This is used for the documentation of "default"
def cdef(self, _):
pass
def dlopen(self, _):
return FakeLibrary()
class FakeLibrary(object):
# from portaudio.h:
paFloat32 =... | Add fopen()/fclose() to CFFI mock module | DOC: Add fopen()/fclose() to CFFI mock module
| Python | mit | spatialaudio/python-sounddevice,tgarc/python-sounddevice,dholl/python-sounddevice,dholl/python-sounddevice,spatialaudio/python-sounddevice,tgarc/python-sounddevice | """Mock module for Sphinx autodoc."""
class FFI(object):
NULL = NotImplemented
I_AM_FAKE = True # This is used for the documentation of "default"
def cdef(self, _):
pass
def dlopen(self, _):
return FakePortAudio()
class FakePortAudio(object):
paFloat32 = paInt32 = paInt24 = ... | """Mock module for Sphinx autodoc."""
class FFI(object):
NULL = NotImplemented
I_AM_FAKE = True # This is used for the documentation of "default"
def cdef(self, _):
pass
def dlopen(self, _):
return FakeLibrary()
class FakeLibrary(object):
# from portaudio.h:
paFloat32 =... | <commit_before>"""Mock module for Sphinx autodoc."""
class FFI(object):
NULL = NotImplemented
I_AM_FAKE = True # This is used for the documentation of "default"
def cdef(self, _):
pass
def dlopen(self, _):
return FakePortAudio()
class FakePortAudio(object):
paFloat32 = paInt... | """Mock module for Sphinx autodoc."""
class FFI(object):
NULL = NotImplemented
I_AM_FAKE = True # This is used for the documentation of "default"
def cdef(self, _):
pass
def dlopen(self, _):
return FakeLibrary()
class FakeLibrary(object):
# from portaudio.h:
paFloat32 =... | """Mock module for Sphinx autodoc."""
class FFI(object):
NULL = NotImplemented
I_AM_FAKE = True # This is used for the documentation of "default"
def cdef(self, _):
pass
def dlopen(self, _):
return FakePortAudio()
class FakePortAudio(object):
paFloat32 = paInt32 = paInt24 = ... | <commit_before>"""Mock module for Sphinx autodoc."""
class FFI(object):
NULL = NotImplemented
I_AM_FAKE = True # This is used for the documentation of "default"
def cdef(self, _):
pass
def dlopen(self, _):
return FakePortAudio()
class FakePortAudio(object):
paFloat32 = paInt... |
a15c8bce9c59dcba3e7143903d95feb85ee7abe5 | tests/ex12_tests.py | tests/ex12_tests.py | from nose.tools import *
from exercises import ex12
def test_histogram():
'''
Test our histogram output is correct
'''
test_histogram = ex12.histogram([1, 2, 3])
# assert_equal(test_histogram, '*\n**\n***\n')
| from nose.tools import *
from exercises import ex12
try:
from io import StringIO
except:
from StringIO import StringIO
import sys
def test_histogram():
'''
Test our histogram output is correct
'''
std_out = sys.stdout
result = StringIO()
sys.stdout = result
test_histogram = ex12.h... | Update ex12 test so it actually reads output. | Update ex12 test so it actually reads output.
| Python | mit | gravyboat/python-exercises | from nose.tools import *
from exercises import ex12
def test_histogram():
'''
Test our histogram output is correct
'''
test_histogram = ex12.histogram([1, 2, 3])
# assert_equal(test_histogram, '*\n**\n***\n')
Update ex12 test so it actually reads output. | from nose.tools import *
from exercises import ex12
try:
from io import StringIO
except:
from StringIO import StringIO
import sys
def test_histogram():
'''
Test our histogram output is correct
'''
std_out = sys.stdout
result = StringIO()
sys.stdout = result
test_histogram = ex12.h... | <commit_before>from nose.tools import *
from exercises import ex12
def test_histogram():
'''
Test our histogram output is correct
'''
test_histogram = ex12.histogram([1, 2, 3])
# assert_equal(test_histogram, '*\n**\n***\n')
<commit_msg>Update ex12 test so it actually reads output.<commit_after> | from nose.tools import *
from exercises import ex12
try:
from io import StringIO
except:
from StringIO import StringIO
import sys
def test_histogram():
'''
Test our histogram output is correct
'''
std_out = sys.stdout
result = StringIO()
sys.stdout = result
test_histogram = ex12.h... | from nose.tools import *
from exercises import ex12
def test_histogram():
'''
Test our histogram output is correct
'''
test_histogram = ex12.histogram([1, 2, 3])
# assert_equal(test_histogram, '*\n**\n***\n')
Update ex12 test so it actually reads output.from nose.tools import *
from exercises impo... | <commit_before>from nose.tools import *
from exercises import ex12
def test_histogram():
'''
Test our histogram output is correct
'''
test_histogram = ex12.histogram([1, 2, 3])
# assert_equal(test_histogram, '*\n**\n***\n')
<commit_msg>Update ex12 test so it actually reads output.<commit_after>fro... |
943d575749d34a985b4bb9bdde40a8c3fe1cd911 | spritecss/css/__init__.py | spritecss/css/__init__.py | """Pure-Python CSS parser - no dependencies!"""
# Copyright held by Yo Studios AB <[email protected]>, 2011
#
# Some kind of BSD license, contact above e-mail for more information on
# matters of licensing.
from .parser import CSSParser, print_css
from itertools import ifilter, imap
__all__ = ["CSSParser", "iter_eve... | """Pure-Python CSS parser - no dependencies!"""
# Copyright held by Yo Studios AB <[email protected]>, 2011
#
# Part of Spritemapper (https://github.com/yostudios/Spritemapper)
# Released under a MIT/X11 license
from .parser import CSSParser, print_css
from itertools import ifilter, imap
__all__ = ["CSSParser", "ite... | Modify licensing info for css parser | Modify licensing info for css parser
| Python | mit | wpj-cz/Spritemapper,wpj-cz/Spritemapper,wpj-cz/Spritemapper,yostudios/Spritemapper,wpj-cz/Spritemapper,yostudios/Spritemapper,yostudios/Spritemapper | """Pure-Python CSS parser - no dependencies!"""
# Copyright held by Yo Studios AB <[email protected]>, 2011
#
# Some kind of BSD license, contact above e-mail for more information on
# matters of licensing.
from .parser import CSSParser, print_css
from itertools import ifilter, imap
__all__ = ["CSSParser", "iter_eve... | """Pure-Python CSS parser - no dependencies!"""
# Copyright held by Yo Studios AB <[email protected]>, 2011
#
# Part of Spritemapper (https://github.com/yostudios/Spritemapper)
# Released under a MIT/X11 license
from .parser import CSSParser, print_css
from itertools import ifilter, imap
__all__ = ["CSSParser", "ite... | <commit_before>"""Pure-Python CSS parser - no dependencies!"""
# Copyright held by Yo Studios AB <[email protected]>, 2011
#
# Some kind of BSD license, contact above e-mail for more information on
# matters of licensing.
from .parser import CSSParser, print_css
from itertools import ifilter, imap
__all__ = ["CSSPar... | """Pure-Python CSS parser - no dependencies!"""
# Copyright held by Yo Studios AB <[email protected]>, 2011
#
# Part of Spritemapper (https://github.com/yostudios/Spritemapper)
# Released under a MIT/X11 license
from .parser import CSSParser, print_css
from itertools import ifilter, imap
__all__ = ["CSSParser", "ite... | """Pure-Python CSS parser - no dependencies!"""
# Copyright held by Yo Studios AB <[email protected]>, 2011
#
# Some kind of BSD license, contact above e-mail for more information on
# matters of licensing.
from .parser import CSSParser, print_css
from itertools import ifilter, imap
__all__ = ["CSSParser", "iter_eve... | <commit_before>"""Pure-Python CSS parser - no dependencies!"""
# Copyright held by Yo Studios AB <[email protected]>, 2011
#
# Some kind of BSD license, contact above e-mail for more information on
# matters of licensing.
from .parser import CSSParser, print_css
from itertools import ifilter, imap
__all__ = ["CSSPar... |
1a67e28fe3b5eaa6d640f0bb82b5a18ebdefa0ba | src/pytest_django_lite/plugin.py | src/pytest_django_lite/plugin.py | import os
import pytest
try:
from django.conf import settings
except ImportError:
settings = None # NOQA
def is_configured():
if settings is None:
return False
return settings.configured or os.environ.get('DJANGO_SETTINGS_MODULE')
@pytest.fixture(autouse=True, scope='session')
def _django_... | import os
import pytest
try:
from django.conf import settings
except ImportError:
settings = None # NOQA
def is_configured():
if settings is None:
return False
return settings.configured or os.environ.get('DJANGO_SETTINGS_MODULE')
@pytest.fixture(autouse=True, scope='session')
def _django_... | Use hasattr instead of try/except to call django setup. | Use hasattr instead of try/except to call django setup.
| Python | apache-2.0 | pombredanne/pytest-django-lite,dcramer/pytest-django-lite | import os
import pytest
try:
from django.conf import settings
except ImportError:
settings = None # NOQA
def is_configured():
if settings is None:
return False
return settings.configured or os.environ.get('DJANGO_SETTINGS_MODULE')
@pytest.fixture(autouse=True, scope='session')
def _django_... | import os
import pytest
try:
from django.conf import settings
except ImportError:
settings = None # NOQA
def is_configured():
if settings is None:
return False
return settings.configured or os.environ.get('DJANGO_SETTINGS_MODULE')
@pytest.fixture(autouse=True, scope='session')
def _django_... | <commit_before>import os
import pytest
try:
from django.conf import settings
except ImportError:
settings = None # NOQA
def is_configured():
if settings is None:
return False
return settings.configured or os.environ.get('DJANGO_SETTINGS_MODULE')
@pytest.fixture(autouse=True, scope='session... | import os
import pytest
try:
from django.conf import settings
except ImportError:
settings = None # NOQA
def is_configured():
if settings is None:
return False
return settings.configured or os.environ.get('DJANGO_SETTINGS_MODULE')
@pytest.fixture(autouse=True, scope='session')
def _django_... | import os
import pytest
try:
from django.conf import settings
except ImportError:
settings = None # NOQA
def is_configured():
if settings is None:
return False
return settings.configured or os.environ.get('DJANGO_SETTINGS_MODULE')
@pytest.fixture(autouse=True, scope='session')
def _django_... | <commit_before>import os
import pytest
try:
from django.conf import settings
except ImportError:
settings = None # NOQA
def is_configured():
if settings is None:
return False
return settings.configured or os.environ.get('DJANGO_SETTINGS_MODULE')
@pytest.fixture(autouse=True, scope='session... |
888fb12572defbfba1998f2f208cad43ae0c74d4 | tests/test_RI_CC.py | tests/test_RI_CC.py | from addons import *
from utils import *
tdir = 'Coupled-Cluster'
def test_CCSD_DIIS(workspace):
exe_py(workspace, tdir, 'CCSD_DIIS')
def test_CCSD(workspace):
exe_py(workspace, tdir, 'CCSD')
def test_CCSD_T(workspace):
exe_py(workspace, tdir, 'CCSD_T')
#def test_TD_CCSD(workspace):
# exe_py(wo... | from addons import *
from utils import *
tdir = 'Coupled-Cluster'
def test_CCSD_DIIS(workspace):
exe_py(workspace, tdir, 'CCSD_DIIS')
def test_CCSD(workspace):
exe_py(workspace, tdir, 'CCSD')
def test_CCSD_T(workspace):
exe_py(workspace, tdir, 'CCSD_T')
def test_EOM_CCSD(workspace):
exe_py(wor... | Add EOM_CCSD ref imp to tests | [EOM] Add EOM_CCSD ref imp to tests
| Python | bsd-3-clause | psi4/psi4numpy,dsirianni/psi4numpy | from addons import *
from utils import *
tdir = 'Coupled-Cluster'
def test_CCSD_DIIS(workspace):
exe_py(workspace, tdir, 'CCSD_DIIS')
def test_CCSD(workspace):
exe_py(workspace, tdir, 'CCSD')
def test_CCSD_T(workspace):
exe_py(workspace, tdir, 'CCSD_T')
#def test_TD_CCSD(workspace):
# exe_py(wo... | from addons import *
from utils import *
tdir = 'Coupled-Cluster'
def test_CCSD_DIIS(workspace):
exe_py(workspace, tdir, 'CCSD_DIIS')
def test_CCSD(workspace):
exe_py(workspace, tdir, 'CCSD')
def test_CCSD_T(workspace):
exe_py(workspace, tdir, 'CCSD_T')
def test_EOM_CCSD(workspace):
exe_py(wor... | <commit_before>from addons import *
from utils import *
tdir = 'Coupled-Cluster'
def test_CCSD_DIIS(workspace):
exe_py(workspace, tdir, 'CCSD_DIIS')
def test_CCSD(workspace):
exe_py(workspace, tdir, 'CCSD')
def test_CCSD_T(workspace):
exe_py(workspace, tdir, 'CCSD_T')
#def test_TD_CCSD(workspace):... | from addons import *
from utils import *
tdir = 'Coupled-Cluster'
def test_CCSD_DIIS(workspace):
exe_py(workspace, tdir, 'CCSD_DIIS')
def test_CCSD(workspace):
exe_py(workspace, tdir, 'CCSD')
def test_CCSD_T(workspace):
exe_py(workspace, tdir, 'CCSD_T')
def test_EOM_CCSD(workspace):
exe_py(wor... | from addons import *
from utils import *
tdir = 'Coupled-Cluster'
def test_CCSD_DIIS(workspace):
exe_py(workspace, tdir, 'CCSD_DIIS')
def test_CCSD(workspace):
exe_py(workspace, tdir, 'CCSD')
def test_CCSD_T(workspace):
exe_py(workspace, tdir, 'CCSD_T')
#def test_TD_CCSD(workspace):
# exe_py(wo... | <commit_before>from addons import *
from utils import *
tdir = 'Coupled-Cluster'
def test_CCSD_DIIS(workspace):
exe_py(workspace, tdir, 'CCSD_DIIS')
def test_CCSD(workspace):
exe_py(workspace, tdir, 'CCSD')
def test_CCSD_T(workspace):
exe_py(workspace, tdir, 'CCSD_T')
#def test_TD_CCSD(workspace):... |
fcb92a64502099e05ea94368ffcddf72cd449b02 | txtools/cli/vis.py | txtools/cli/vis.py |
import click
from textx.metamodel import metamodel_from_file
from textx.lang import get_language
from textx.exceptions import TextXError
from txtools.vis import metamodel_export, model_export
@click.command()
@click.argument('model_file')
@click.option('-l', '--language', default='textx',
help='Registe... |
import click
from textx.metamodel import metamodel_from_file
from textx.lang import get_language
from textx.exceptions import TextXError
from txtools.vis import metamodel_export, model_export
@click.command()
@click.argument('model_file')
@click.option('-l', '--language', default='textx',
help='Registe... | Change dot generate message to suggest PDF format. | Change dot generate message to suggest PDF format.
| Python | mit | igordejanovic/textx-tools,igordejanovic/textx-tools |
import click
from textx.metamodel import metamodel_from_file
from textx.lang import get_language
from textx.exceptions import TextXError
from txtools.vis import metamodel_export, model_export
@click.command()
@click.argument('model_file')
@click.option('-l', '--language', default='textx',
help='Registe... |
import click
from textx.metamodel import metamodel_from_file
from textx.lang import get_language
from textx.exceptions import TextXError
from txtools.vis import metamodel_export, model_export
@click.command()
@click.argument('model_file')
@click.option('-l', '--language', default='textx',
help='Registe... | <commit_before>
import click
from textx.metamodel import metamodel_from_file
from textx.lang import get_language
from textx.exceptions import TextXError
from txtools.vis import metamodel_export, model_export
@click.command()
@click.argument('model_file')
@click.option('-l', '--language', default='textx',
... |
import click
from textx.metamodel import metamodel_from_file
from textx.lang import get_language
from textx.exceptions import TextXError
from txtools.vis import metamodel_export, model_export
@click.command()
@click.argument('model_file')
@click.option('-l', '--language', default='textx',
help='Registe... |
import click
from textx.metamodel import metamodel_from_file
from textx.lang import get_language
from textx.exceptions import TextXError
from txtools.vis import metamodel_export, model_export
@click.command()
@click.argument('model_file')
@click.option('-l', '--language', default='textx',
help='Registe... | <commit_before>
import click
from textx.metamodel import metamodel_from_file
from textx.lang import get_language
from textx.exceptions import TextXError
from txtools.vis import metamodel_export, model_export
@click.command()
@click.argument('model_file')
@click.option('-l', '--language', default='textx',
... |
8ffdd3127d6226815b508bd10ccd84eec22e6d1c | runserver.py | runserver.py | import os
from mmmpaste import app
# Get the port from the enviroment or fall back to the default.
PORT = int(os.environ.get('PORT', 5000))
app.run(debug = True, port = PORT)
| import os
from mmmpaste import app
# Get the port from the enviroment or fall back to the default.
PORT = int(os.environ.get('PORT', 5000))
DEBUG = bool(os.environ.get('PORT', True))
app.run(debug = DEBUG, port = PORT)
| Allow debug mode to be configured via an environment variable. | Allow debug mode to be configured via an environment variable.
| Python | bsd-2-clause | ryanc/mmmpaste,ryanc/mmmpaste | import os
from mmmpaste import app
# Get the port from the enviroment or fall back to the default.
PORT = int(os.environ.get('PORT', 5000))
app.run(debug = True, port = PORT)
Allow debug mode to be configured via an environment variable. | import os
from mmmpaste import app
# Get the port from the enviroment or fall back to the default.
PORT = int(os.environ.get('PORT', 5000))
DEBUG = bool(os.environ.get('PORT', True))
app.run(debug = DEBUG, port = PORT)
| <commit_before>import os
from mmmpaste import app
# Get the port from the enviroment or fall back to the default.
PORT = int(os.environ.get('PORT', 5000))
app.run(debug = True, port = PORT)
<commit_msg>Allow debug mode to be configured via an environment variable.<commit_after> | import os
from mmmpaste import app
# Get the port from the enviroment or fall back to the default.
PORT = int(os.environ.get('PORT', 5000))
DEBUG = bool(os.environ.get('PORT', True))
app.run(debug = DEBUG, port = PORT)
| import os
from mmmpaste import app
# Get the port from the enviroment or fall back to the default.
PORT = int(os.environ.get('PORT', 5000))
app.run(debug = True, port = PORT)
Allow debug mode to be configured via an environment variable.import os
from mmmpaste import app
# Get the port from the enviroment or fall ... | <commit_before>import os
from mmmpaste import app
# Get the port from the enviroment or fall back to the default.
PORT = int(os.environ.get('PORT', 5000))
app.run(debug = True, port = PORT)
<commit_msg>Allow debug mode to be configured via an environment variable.<commit_after>import os
from mmmpaste import app
# ... |
15f45c0fedab40f486085a3f4158cc2af2374bf5 | applications/views.py | applications/views.py | from django.shortcuts import render
from applications.forms import ApplicationForm
from datetime import datetime
from django.views.generic.edit import FormView
APPLICATION_START_DATE = datetime(2018, 8, 13)
APPLICATION_END_DATE = datetime(2018, 9, 2, 1, 0, 0)
class ApplicationView(FormView):
template_name = 'ap... | from django.shortcuts import render
from applications.forms import ApplicationForm
from datetime import datetime
from django.views.generic.edit import FormView
APPLICATION_START_DATE = datetime(2018, 8, 13)
APPLICATION_END_DATE = datetime(2018, 9, 3)
class ApplicationView(FormView):
template_name = 'application... | Fix so that application is due to 24:00 the 2. | Fix so that application is due to 24:00 the 2.
| Python | mit | hackerspace-ntnu/website,hackerspace-ntnu/website,hackerspace-ntnu/website | from django.shortcuts import render
from applications.forms import ApplicationForm
from datetime import datetime
from django.views.generic.edit import FormView
APPLICATION_START_DATE = datetime(2018, 8, 13)
APPLICATION_END_DATE = datetime(2018, 9, 2, 1, 0, 0)
class ApplicationView(FormView):
template_name = 'ap... | from django.shortcuts import render
from applications.forms import ApplicationForm
from datetime import datetime
from django.views.generic.edit import FormView
APPLICATION_START_DATE = datetime(2018, 8, 13)
APPLICATION_END_DATE = datetime(2018, 9, 3)
class ApplicationView(FormView):
template_name = 'application... | <commit_before>from django.shortcuts import render
from applications.forms import ApplicationForm
from datetime import datetime
from django.views.generic.edit import FormView
APPLICATION_START_DATE = datetime(2018, 8, 13)
APPLICATION_END_DATE = datetime(2018, 9, 2, 1, 0, 0)
class ApplicationView(FormView):
temp... | from django.shortcuts import render
from applications.forms import ApplicationForm
from datetime import datetime
from django.views.generic.edit import FormView
APPLICATION_START_DATE = datetime(2018, 8, 13)
APPLICATION_END_DATE = datetime(2018, 9, 3)
class ApplicationView(FormView):
template_name = 'application... | from django.shortcuts import render
from applications.forms import ApplicationForm
from datetime import datetime
from django.views.generic.edit import FormView
APPLICATION_START_DATE = datetime(2018, 8, 13)
APPLICATION_END_DATE = datetime(2018, 9, 2, 1, 0, 0)
class ApplicationView(FormView):
template_name = 'ap... | <commit_before>from django.shortcuts import render
from applications.forms import ApplicationForm
from datetime import datetime
from django.views.generic.edit import FormView
APPLICATION_START_DATE = datetime(2018, 8, 13)
APPLICATION_END_DATE = datetime(2018, 9, 2, 1, 0, 0)
class ApplicationView(FormView):
temp... |
576700daadd8d1dcee19f169ad3bcd8cd9a20349 | example/example/settings.py | example/example/settings.py | import os
import dj_database_url
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
DEBUG = TEMPLATE_DEBUG = True
SECRET_KEY = 'example-app!'
ROOT_URLCONF = 'example.urls'
STATIC_URL = '/static/'
DATABASES = {'default': dj_database_url.config(
default='postgres://localhost/conman_example',
)}
DATABASES['d... | import os
import dj_database_url
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
DEBUG = TEMPLATE_DEBUG = True
SECRET_KEY = 'example-app!'
ROOT_URLCONF = 'example.urls'
STATIC_URL = '/static/'
DATABASES = {'default': dj_database_url.config(
default='postgres://localhost/conman_example',
)}
DATABASES['d... | Add missing requirement to example app | Add missing requirement to example app
| Python | bsd-2-clause | Ian-Foote/django-conman,meshy/django-conman,meshy/django-conman | import os
import dj_database_url
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
DEBUG = TEMPLATE_DEBUG = True
SECRET_KEY = 'example-app!'
ROOT_URLCONF = 'example.urls'
STATIC_URL = '/static/'
DATABASES = {'default': dj_database_url.config(
default='postgres://localhost/conman_example',
)}
DATABASES['d... | import os
import dj_database_url
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
DEBUG = TEMPLATE_DEBUG = True
SECRET_KEY = 'example-app!'
ROOT_URLCONF = 'example.urls'
STATIC_URL = '/static/'
DATABASES = {'default': dj_database_url.config(
default='postgres://localhost/conman_example',
)}
DATABASES['d... | <commit_before>import os
import dj_database_url
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
DEBUG = TEMPLATE_DEBUG = True
SECRET_KEY = 'example-app!'
ROOT_URLCONF = 'example.urls'
STATIC_URL = '/static/'
DATABASES = {'default': dj_database_url.config(
default='postgres://localhost/conman_example',
... | import os
import dj_database_url
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
DEBUG = TEMPLATE_DEBUG = True
SECRET_KEY = 'example-app!'
ROOT_URLCONF = 'example.urls'
STATIC_URL = '/static/'
DATABASES = {'default': dj_database_url.config(
default='postgres://localhost/conman_example',
)}
DATABASES['d... | import os
import dj_database_url
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
DEBUG = TEMPLATE_DEBUG = True
SECRET_KEY = 'example-app!'
ROOT_URLCONF = 'example.urls'
STATIC_URL = '/static/'
DATABASES = {'default': dj_database_url.config(
default='postgres://localhost/conman_example',
)}
DATABASES['d... | <commit_before>import os
import dj_database_url
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
DEBUG = TEMPLATE_DEBUG = True
SECRET_KEY = 'example-app!'
ROOT_URLCONF = 'example.urls'
STATIC_URL = '/static/'
DATABASES = {'default': dj_database_url.config(
default='postgres://localhost/conman_example',
... |
fb3ae8739dc5af77c91660e10e2370ad6df05787 | addisonarches/sequences/stripeyhole/interludes.py | addisonarches/sequences/stripeyhole/interludes.py | #!/usr/bin/env python
# -*- encoding: UTF-8 -*-
# This file is part of Addison Arches.
#
# Addison Arches is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at you... | #!/usr/bin/env python
# -*- encoding: UTF-8 -*-
# This file is part of Addison Arches.
#
# Addison Arches is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at you... | Stop interlude removes non-player characters. | Stop interlude removes non-player characters.
| Python | agpl-3.0 | tundish/addisonarches,tundish/addisonarches,tundish/addisonarches | #!/usr/bin/env python
# -*- encoding: UTF-8 -*-
# This file is part of Addison Arches.
#
# Addison Arches is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at you... | #!/usr/bin/env python
# -*- encoding: UTF-8 -*-
# This file is part of Addison Arches.
#
# Addison Arches is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at you... | <commit_before>#!/usr/bin/env python
# -*- encoding: UTF-8 -*-
# This file is part of Addison Arches.
#
# Addison Arches is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the Licens... | #!/usr/bin/env python
# -*- encoding: UTF-8 -*-
# This file is part of Addison Arches.
#
# Addison Arches is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at you... | #!/usr/bin/env python
# -*- encoding: UTF-8 -*-
# This file is part of Addison Arches.
#
# Addison Arches is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at you... | <commit_before>#!/usr/bin/env python
# -*- encoding: UTF-8 -*-
# This file is part of Addison Arches.
#
# Addison Arches is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the Licens... |
56a2a873bb23631779eebb0dc35359ccf67f04e7 | source/bark/logger/dynamic.py | source/bark/logger/dynamic.py | # :coding: utf-8
# :copyright: Copyright (c) 2013 Martin Pengelly-Phillips
# :license: See LICENSE.txt.
from .base import Logger
class Dynamic(Logger):
'''Dynamic logger allowing delayed computation of values.'''
def __getitem__(self, key):
'''Return value referenced by *key*.
If the value ... | # :coding: utf-8
# :copyright: Copyright (c) 2013 Martin Pengelly-Phillips
# :license: See LICENSE.txt.
import collections
from .base import Logger
class Dynamic(Logger):
'''Dynamic logger allowing delayed computation of values.'''
def __getitem__(self, key):
'''Return value referenced by *key*.
... | Use collections.Callable test for future compatibility. | Use collections.Callable test for future compatibility.
| Python | apache-2.0 | 4degrees/mill,4degrees/sawmill | # :coding: utf-8
# :copyright: Copyright (c) 2013 Martin Pengelly-Phillips
# :license: See LICENSE.txt.
from .base import Logger
class Dynamic(Logger):
'''Dynamic logger allowing delayed computation of values.'''
def __getitem__(self, key):
'''Return value referenced by *key*.
If the value ... | # :coding: utf-8
# :copyright: Copyright (c) 2013 Martin Pengelly-Phillips
# :license: See LICENSE.txt.
import collections
from .base import Logger
class Dynamic(Logger):
'''Dynamic logger allowing delayed computation of values.'''
def __getitem__(self, key):
'''Return value referenced by *key*.
... | <commit_before># :coding: utf-8
# :copyright: Copyright (c) 2013 Martin Pengelly-Phillips
# :license: See LICENSE.txt.
from .base import Logger
class Dynamic(Logger):
'''Dynamic logger allowing delayed computation of values.'''
def __getitem__(self, key):
'''Return value referenced by *key*.
... | # :coding: utf-8
# :copyright: Copyright (c) 2013 Martin Pengelly-Phillips
# :license: See LICENSE.txt.
import collections
from .base import Logger
class Dynamic(Logger):
'''Dynamic logger allowing delayed computation of values.'''
def __getitem__(self, key):
'''Return value referenced by *key*.
... | # :coding: utf-8
# :copyright: Copyright (c) 2013 Martin Pengelly-Phillips
# :license: See LICENSE.txt.
from .base import Logger
class Dynamic(Logger):
'''Dynamic logger allowing delayed computation of values.'''
def __getitem__(self, key):
'''Return value referenced by *key*.
If the value ... | <commit_before># :coding: utf-8
# :copyright: Copyright (c) 2013 Martin Pengelly-Phillips
# :license: See LICENSE.txt.
from .base import Logger
class Dynamic(Logger):
'''Dynamic logger allowing delayed computation of values.'''
def __getitem__(self, key):
'''Return value referenced by *key*.
... |
b1f9ef9422010c5398852377946969ab98bc17e1 | changes/artifacts/manifest_json.py | changes/artifacts/manifest_json.py | from __future__ import absolute_import
import json
from changes.config import db
from changes.constants import Result
from changes.models import FailureReason
from .base import ArtifactHandler
class ManifestJsonHandler(ArtifactHandler):
"""
Artifact handler for manifest.json files. Makes sure their contents... | from __future__ import absolute_import
import json
from changes.config import db
from changes.constants import Result
from changes.models import FailureReason
from .base import ArtifactHandler
class ManifestJsonHandler(ArtifactHandler):
"""
Artifact handler for manifest.json files. Makes sure their contents... | Make malformed/mismatched manifest.json an infra failure | Make malformed/mismatched manifest.json an infra failure
Summary:
- This was disabled for a while due to problems with phased jobsteps, but
Sentry shows that these errors occasionally still happen, but seem to be
"real" errors now. Should almost certainly be marked infra failures.
- Also make malformed manifest a ... | Python | apache-2.0 | dropbox/changes,dropbox/changes,dropbox/changes,dropbox/changes | from __future__ import absolute_import
import json
from changes.config import db
from changes.constants import Result
from changes.models import FailureReason
from .base import ArtifactHandler
class ManifestJsonHandler(ArtifactHandler):
"""
Artifact handler for manifest.json files. Makes sure their contents... | from __future__ import absolute_import
import json
from changes.config import db
from changes.constants import Result
from changes.models import FailureReason
from .base import ArtifactHandler
class ManifestJsonHandler(ArtifactHandler):
"""
Artifact handler for manifest.json files. Makes sure their contents... | <commit_before>from __future__ import absolute_import
import json
from changes.config import db
from changes.constants import Result
from changes.models import FailureReason
from .base import ArtifactHandler
class ManifestJsonHandler(ArtifactHandler):
"""
Artifact handler for manifest.json files. Makes sure... | from __future__ import absolute_import
import json
from changes.config import db
from changes.constants import Result
from changes.models import FailureReason
from .base import ArtifactHandler
class ManifestJsonHandler(ArtifactHandler):
"""
Artifact handler for manifest.json files. Makes sure their contents... | from __future__ import absolute_import
import json
from changes.config import db
from changes.constants import Result
from changes.models import FailureReason
from .base import ArtifactHandler
class ManifestJsonHandler(ArtifactHandler):
"""
Artifact handler for manifest.json files. Makes sure their contents... | <commit_before>from __future__ import absolute_import
import json
from changes.config import db
from changes.constants import Result
from changes.models import FailureReason
from .base import ArtifactHandler
class ManifestJsonHandler(ArtifactHandler):
"""
Artifact handler for manifest.json files. Makes sure... |
e84a72050c18bcdf97e1f04086c873fbd1a6cebf | trackon/gaeutils.py | trackon/gaeutils.py | from google.appengine.api import memcache as MC
def logmsg(msg, log_name='default'):
# TODO Should optimize to avoid memcache's pickling
# XXX There is an obvious race if we try to store two msgs at the same time
l = MC.get(log_name, namespace='msg-logs') or []
l.insert(0, msg)
MC.set(log_... | from google.appengine.api import memcache as MC
from time import gmtime
def logmsg(msg, log_name='default'):
# TODO Should optimize to avoid memcache's pickling
# XXX There is an obvious race if we try to store two msgs at the same time
l = MC.get(log_name, namespace='msg-logs') or []
d = "%d/... | Prepend date/time to log messages, and expand the size of the message log to 128 entries. | Prepend date/time to log messages, and expand the size of the message log to 128 entries.
| Python | mit | CorralPeltzer/newTrackon | from google.appengine.api import memcache as MC
def logmsg(msg, log_name='default'):
# TODO Should optimize to avoid memcache's pickling
# XXX There is an obvious race if we try to store two msgs at the same time
l = MC.get(log_name, namespace='msg-logs') or []
l.insert(0, msg)
MC.set(log_... | from google.appengine.api import memcache as MC
from time import gmtime
def logmsg(msg, log_name='default'):
# TODO Should optimize to avoid memcache's pickling
# XXX There is an obvious race if we try to store two msgs at the same time
l = MC.get(log_name, namespace='msg-logs') or []
d = "%d/... | <commit_before>from google.appengine.api import memcache as MC
def logmsg(msg, log_name='default'):
# TODO Should optimize to avoid memcache's pickling
# XXX There is an obvious race if we try to store two msgs at the same time
l = MC.get(log_name, namespace='msg-logs') or []
l.insert(0, msg)
... | from google.appengine.api import memcache as MC
from time import gmtime
def logmsg(msg, log_name='default'):
# TODO Should optimize to avoid memcache's pickling
# XXX There is an obvious race if we try to store two msgs at the same time
l = MC.get(log_name, namespace='msg-logs') or []
d = "%d/... | from google.appengine.api import memcache as MC
def logmsg(msg, log_name='default'):
# TODO Should optimize to avoid memcache's pickling
# XXX There is an obvious race if we try to store two msgs at the same time
l = MC.get(log_name, namespace='msg-logs') or []
l.insert(0, msg)
MC.set(log_... | <commit_before>from google.appengine.api import memcache as MC
def logmsg(msg, log_name='default'):
# TODO Should optimize to avoid memcache's pickling
# XXX There is an obvious race if we try to store two msgs at the same time
l = MC.get(log_name, namespace='msg-logs') or []
l.insert(0, msg)
... |
85edd0e25a74c9fb144468adc88b3081acef8ce2 | ds_binary_tree.py | ds_binary_tree.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
class BinaryTree(oject):
"""Binary Tree using class."""
def __init__(self, root):
self.key = root
self.left_tree = None
self.right_tree = None
pass
def main():
pass
... | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
class BinaryTree(oject):
"""Binary Tree using class."""
def __init__(self, root):
self.key = root
self.left_tree = None
self.right_tree = None
def insert_left(self, new_nod... | Implement binary tree at Narity Airportx | Implement binary tree at Narity Airportx
| Python | bsd-2-clause | bowen0701/algorithms_data_structures | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
class BinaryTree(oject):
"""Binary Tree using class."""
def __init__(self, root):
self.key = root
self.left_tree = None
self.right_tree = None
pass
def main():
pass
... | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
class BinaryTree(oject):
"""Binary Tree using class."""
def __init__(self, root):
self.key = root
self.left_tree = None
self.right_tree = None
def insert_left(self, new_nod... | <commit_before>from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
class BinaryTree(oject):
"""Binary Tree using class."""
def __init__(self, root):
self.key = root
self.left_tree = None
self.right_tree = None
pass
def mai... | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
class BinaryTree(oject):
"""Binary Tree using class."""
def __init__(self, root):
self.key = root
self.left_tree = None
self.right_tree = None
def insert_left(self, new_nod... | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
class BinaryTree(oject):
"""Binary Tree using class."""
def __init__(self, root):
self.key = root
self.left_tree = None
self.right_tree = None
pass
def main():
pass
... | <commit_before>from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
class BinaryTree(oject):
"""Binary Tree using class."""
def __init__(self, root):
self.key = root
self.left_tree = None
self.right_tree = None
pass
def mai... |
7e19c69d8315863965a59007b716d92c115833a4 | autocloud/__init__.py | autocloud/__init__.py | # -*- coding: utf-8 -*-
import ConfigParser
import os
PROJECT_ROOT = os.path.abspath(os.path.dirname(__name__))
name = '/etc/autocloud/autocloud.cfg'
if not os.path.exists(name):
raise Exception('Please add a proper cofig file under /etc/autocloud/')
config.read(name)
KOJI_SERVER_URL = config.get('autocloud', ... | # -*- coding: utf-8 -*-
import ConfigParser
import os
PROJECT_ROOT = os.path.abspath(os.path.dirname(__name__))
name = '/etc/autocloud/autocloud.cfg'
if not os.path.exists(name):
raise Exception('Please add a proper cofig file under /etc/autocloud/')
config = ConfigParser.RawConfigParser()
config.read(name)
KO... | Fix config name error for autocloud service | Fix config name error for autocloud service
| Python | agpl-3.0 | kushaldas/autocloud,maxamillion/autocloud,maxamillion/autocloud,maxamillion/autocloud,maxamillion/autocloud,kushaldas/autocloud,kushaldas/autocloud,kushaldas/autocloud | # -*- coding: utf-8 -*-
import ConfigParser
import os
PROJECT_ROOT = os.path.abspath(os.path.dirname(__name__))
name = '/etc/autocloud/autocloud.cfg'
if not os.path.exists(name):
raise Exception('Please add a proper cofig file under /etc/autocloud/')
config.read(name)
KOJI_SERVER_URL = config.get('autocloud', ... | # -*- coding: utf-8 -*-
import ConfigParser
import os
PROJECT_ROOT = os.path.abspath(os.path.dirname(__name__))
name = '/etc/autocloud/autocloud.cfg'
if not os.path.exists(name):
raise Exception('Please add a proper cofig file under /etc/autocloud/')
config = ConfigParser.RawConfigParser()
config.read(name)
KO... | <commit_before># -*- coding: utf-8 -*-
import ConfigParser
import os
PROJECT_ROOT = os.path.abspath(os.path.dirname(__name__))
name = '/etc/autocloud/autocloud.cfg'
if not os.path.exists(name):
raise Exception('Please add a proper cofig file under /etc/autocloud/')
config.read(name)
KOJI_SERVER_URL = config.ge... | # -*- coding: utf-8 -*-
import ConfigParser
import os
PROJECT_ROOT = os.path.abspath(os.path.dirname(__name__))
name = '/etc/autocloud/autocloud.cfg'
if not os.path.exists(name):
raise Exception('Please add a proper cofig file under /etc/autocloud/')
config = ConfigParser.RawConfigParser()
config.read(name)
KO... | # -*- coding: utf-8 -*-
import ConfigParser
import os
PROJECT_ROOT = os.path.abspath(os.path.dirname(__name__))
name = '/etc/autocloud/autocloud.cfg'
if not os.path.exists(name):
raise Exception('Please add a proper cofig file under /etc/autocloud/')
config.read(name)
KOJI_SERVER_URL = config.get('autocloud', ... | <commit_before># -*- coding: utf-8 -*-
import ConfigParser
import os
PROJECT_ROOT = os.path.abspath(os.path.dirname(__name__))
name = '/etc/autocloud/autocloud.cfg'
if not os.path.exists(name):
raise Exception('Please add a proper cofig file under /etc/autocloud/')
config.read(name)
KOJI_SERVER_URL = config.ge... |
95139aaf8dc551a4a5d42c23e417520fa2d131ff | api_tests/utils.py | api_tests/utils.py | from blinker import ANY
from urlparse import urlparse
from contextlib import contextmanager
from addons.osfstorage import settings as osfstorage_settings
def create_test_file(node, user, filename='test_file', create_guid=True):
osfstorage = node.get_addon('osfstorage')
root_node = osfstorage.get_root()
te... | from blinker import ANY
from urlparse import urlparse
from contextlib import contextmanager
from addons.osfstorage import settings as osfstorage_settings
def create_test_file(target, user, filename='test_file', create_guid=True):
osfstorage = target.get_addon('osfstorage')
root_node = osfstorage.get_root()
... | Update api test util to create files to use target name instead | Update api test util to create files to use target name instead
| Python | apache-2.0 | mfraezz/osf.io,cslzchen/osf.io,aaxelb/osf.io,HalcyonChimera/osf.io,brianjgeiger/osf.io,cslzchen/osf.io,CenterForOpenScience/osf.io,aaxelb/osf.io,mfraezz/osf.io,felliott/osf.io,saradbowman/osf.io,adlius/osf.io,brianjgeiger/osf.io,pattisdr/osf.io,Johnetordoff/osf.io,CenterForOpenScience/osf.io,baylee-d/osf.io,caseyrollin... | from blinker import ANY
from urlparse import urlparse
from contextlib import contextmanager
from addons.osfstorage import settings as osfstorage_settings
def create_test_file(node, user, filename='test_file', create_guid=True):
osfstorage = node.get_addon('osfstorage')
root_node = osfstorage.get_root()
te... | from blinker import ANY
from urlparse import urlparse
from contextlib import contextmanager
from addons.osfstorage import settings as osfstorage_settings
def create_test_file(target, user, filename='test_file', create_guid=True):
osfstorage = target.get_addon('osfstorage')
root_node = osfstorage.get_root()
... | <commit_before>from blinker import ANY
from urlparse import urlparse
from contextlib import contextmanager
from addons.osfstorage import settings as osfstorage_settings
def create_test_file(node, user, filename='test_file', create_guid=True):
osfstorage = node.get_addon('osfstorage')
root_node = osfstorage.ge... | from blinker import ANY
from urlparse import urlparse
from contextlib import contextmanager
from addons.osfstorage import settings as osfstorage_settings
def create_test_file(target, user, filename='test_file', create_guid=True):
osfstorage = target.get_addon('osfstorage')
root_node = osfstorage.get_root()
... | from blinker import ANY
from urlparse import urlparse
from contextlib import contextmanager
from addons.osfstorage import settings as osfstorage_settings
def create_test_file(node, user, filename='test_file', create_guid=True):
osfstorage = node.get_addon('osfstorage')
root_node = osfstorage.get_root()
te... | <commit_before>from blinker import ANY
from urlparse import urlparse
from contextlib import contextmanager
from addons.osfstorage import settings as osfstorage_settings
def create_test_file(node, user, filename='test_file', create_guid=True):
osfstorage = node.get_addon('osfstorage')
root_node = osfstorage.ge... |
037796d721cd0eec3ea779c2901ec8c62aaa5fc7 | cmt/utils/run_dir.py | cmt/utils/run_dir.py | import os
class RunDir(object):
def __init__(self, dir, create=False):
self._run_dir = dir
self._create = create
def __enter__(self):
self._starting_dir = os.path.abspath(os.getcwd())
if self._create and not os.path.isdir(self._run_dir):
os.makedirs(self._run_dir)
... | import os
class RunDir(object):
def __init__(self, directory, create=False):
self._run_dir = directory
self._create = create
def __enter__(self):
self._starting_dir = os.path.abspath(os.getcwd())
if self._create and not os.path.isdir(self._run_dir):
os.makedirs(sel... | Rename dir variable to directory. | Rename dir variable to directory.
| Python | mit | csdms/coupling,csdms/coupling,csdms/pymt | import os
class RunDir(object):
def __init__(self, dir, create=False):
self._run_dir = dir
self._create = create
def __enter__(self):
self._starting_dir = os.path.abspath(os.getcwd())
if self._create and not os.path.isdir(self._run_dir):
os.makedirs(self._run_dir)
... | import os
class RunDir(object):
def __init__(self, directory, create=False):
self._run_dir = directory
self._create = create
def __enter__(self):
self._starting_dir = os.path.abspath(os.getcwd())
if self._create and not os.path.isdir(self._run_dir):
os.makedirs(sel... | <commit_before>import os
class RunDir(object):
def __init__(self, dir, create=False):
self._run_dir = dir
self._create = create
def __enter__(self):
self._starting_dir = os.path.abspath(os.getcwd())
if self._create and not os.path.isdir(self._run_dir):
os.makedirs(s... | import os
class RunDir(object):
def __init__(self, directory, create=False):
self._run_dir = directory
self._create = create
def __enter__(self):
self._starting_dir = os.path.abspath(os.getcwd())
if self._create and not os.path.isdir(self._run_dir):
os.makedirs(sel... | import os
class RunDir(object):
def __init__(self, dir, create=False):
self._run_dir = dir
self._create = create
def __enter__(self):
self._starting_dir = os.path.abspath(os.getcwd())
if self._create and not os.path.isdir(self._run_dir):
os.makedirs(self._run_dir)
... | <commit_before>import os
class RunDir(object):
def __init__(self, dir, create=False):
self._run_dir = dir
self._create = create
def __enter__(self):
self._starting_dir = os.path.abspath(os.getcwd())
if self._create and not os.path.isdir(self._run_dir):
os.makedirs(s... |
c3a0b7f21d517b647250027c50e42954d573bfa1 | src/qmenuview/__init__.py | src/qmenuview/__init__.py | __author__ = 'David Zuber'
__email__ = '[email protected]'
__version__ = '0.1.0'
| __author__ = 'David Zuber'
__email__ = '[email protected]'
__version__ = '0.1.0'
| Remove blank line in init | Remove blank line in init
| Python | bsd-3-clause | storax/qmenuview | __author__ = 'David Zuber'
__email__ = '[email protected]'
__version__ = '0.1.0'
Remove blank line in init | __author__ = 'David Zuber'
__email__ = '[email protected]'
__version__ = '0.1.0'
| <commit_before>__author__ = 'David Zuber'
__email__ = '[email protected]'
__version__ = '0.1.0'
<commit_msg>Remove blank line in init<commit_after> | __author__ = 'David Zuber'
__email__ = '[email protected]'
__version__ = '0.1.0'
| __author__ = 'David Zuber'
__email__ = '[email protected]'
__version__ = '0.1.0'
Remove blank line in init__author__ = 'David Zuber'
__email__ = '[email protected]'
__version__ = '0.1.0'
| <commit_before>__author__ = 'David Zuber'
__email__ = '[email protected]'
__version__ = '0.1.0'
<commit_msg>Remove blank line in init<commit_after>__author__ = 'David Zuber'
__email__ = '[email protected]'
__version__ = '0.1.0'
|
1f9bf33ba5c1594477cf47dd323ec62ac92cf8c1 | clic/web/config.py | clic/web/config.py | SQLALCHEMY_DATABASE_URI = "postgresql://jdejoode:isabelle@localhost/annotation_dev"
DEBUG = False
# when testing = True, the login_required decorator is disabled.
TESTING = False
# FIXME not very secret here
SECRET_KEY = "qdfmkqjfmqksjfdmk"
MAIL_SERVER = 'smtp.qsdfqsdfqskjdfmlqsjdfmlkjjqsdf.com'
MAIL_PORT = 465
MAIL_US... | SQLALCHEMY_DATABASE_URI = "postgresql://jdejoode:isabelle@localhost/annotation_dev"
DEBUG = False
DEBUG_TB_INTERCEPT_REDIRECTS = False
# when testing = True, the login_required decorator is disabled.
TESTING = False
# FIXME not very secret here
SECRET_KEY = "qdfmkqjfmqksjfdmk"
MAIL_SERVER = 'smtp.qsdfqsdfqskjdfmlqsjdfm... | Disable redirect interception in testing mode | Disable redirect interception in testing mode
| Python | mit | CentreForCorpusResearch/clic,CentreForCorpusResearch/clic,CentreForResearchInAppliedLinguistics/clic,CentreForCorpusResearch/clic,CentreForResearchInAppliedLinguistics/clic,CentreForResearchInAppliedLinguistics/clic | SQLALCHEMY_DATABASE_URI = "postgresql://jdejoode:isabelle@localhost/annotation_dev"
DEBUG = False
# when testing = True, the login_required decorator is disabled.
TESTING = False
# FIXME not very secret here
SECRET_KEY = "qdfmkqjfmqksjfdmk"
MAIL_SERVER = 'smtp.qsdfqsdfqskjdfmlqsjdfmlkjjqsdf.com'
MAIL_PORT = 465
MAIL_US... | SQLALCHEMY_DATABASE_URI = "postgresql://jdejoode:isabelle@localhost/annotation_dev"
DEBUG = False
DEBUG_TB_INTERCEPT_REDIRECTS = False
# when testing = True, the login_required decorator is disabled.
TESTING = False
# FIXME not very secret here
SECRET_KEY = "qdfmkqjfmqksjfdmk"
MAIL_SERVER = 'smtp.qsdfqsdfqskjdfmlqsjdfm... | <commit_before>SQLALCHEMY_DATABASE_URI = "postgresql://jdejoode:isabelle@localhost/annotation_dev"
DEBUG = False
# when testing = True, the login_required decorator is disabled.
TESTING = False
# FIXME not very secret here
SECRET_KEY = "qdfmkqjfmqksjfdmk"
MAIL_SERVER = 'smtp.qsdfqsdfqskjdfmlqsjdfmlkjjqsdf.com'
MAIL_POR... | SQLALCHEMY_DATABASE_URI = "postgresql://jdejoode:isabelle@localhost/annotation_dev"
DEBUG = False
DEBUG_TB_INTERCEPT_REDIRECTS = False
# when testing = True, the login_required decorator is disabled.
TESTING = False
# FIXME not very secret here
SECRET_KEY = "qdfmkqjfmqksjfdmk"
MAIL_SERVER = 'smtp.qsdfqsdfqskjdfmlqsjdfm... | SQLALCHEMY_DATABASE_URI = "postgresql://jdejoode:isabelle@localhost/annotation_dev"
DEBUG = False
# when testing = True, the login_required decorator is disabled.
TESTING = False
# FIXME not very secret here
SECRET_KEY = "qdfmkqjfmqksjfdmk"
MAIL_SERVER = 'smtp.qsdfqsdfqskjdfmlqsjdfmlkjjqsdf.com'
MAIL_PORT = 465
MAIL_US... | <commit_before>SQLALCHEMY_DATABASE_URI = "postgresql://jdejoode:isabelle@localhost/annotation_dev"
DEBUG = False
# when testing = True, the login_required decorator is disabled.
TESTING = False
# FIXME not very secret here
SECRET_KEY = "qdfmkqjfmqksjfdmk"
MAIL_SERVER = 'smtp.qsdfqsdfqskjdfmlqsjdfmlkjjqsdf.com'
MAIL_POR... |
fe4bc023d207f219e487badc668f81ce7485ba5a | sympy/utilities/source.py | sympy/utilities/source.py | """
This module adds several functions for interactive source code inspection.
"""
from __future__ import print_function, division
import inspect
def source(object):
"""
Prints the source code of a given object.
"""
print('In file: %s' % inspect.getsourcefile(object))
print(inspect.getsource(obj... | """
This module adds several functions for interactive source code inspection.
"""
from __future__ import print_function, division
import inspect
def source(object):
"""
Prints the source code of a given object.
"""
print('In file: %s' % inspect.getsourcefile(object))
print(inspect.getsource(obj... | Remove a redundant line from get_class | Remove a redundant line from get_class
| Python | bsd-3-clause | emon10005/sympy,ahhda/sympy,kaichogami/sympy,mafiya69/sympy,Designist/sympy,aktech/sympy,Titan-C/sympy,jerli/sympy,Davidjohnwilson/sympy,sampadsaha5/sympy,hargup/sympy,drufat/sympy,Vishluck/sympy,maniteja123/sympy,wanglongqi/sympy,jaimahajan1997/sympy,yukoba/sympy,AkademieOlympia/sympy,ChristinaZografou/sympy,Titan-C/s... | """
This module adds several functions for interactive source code inspection.
"""
from __future__ import print_function, division
import inspect
def source(object):
"""
Prints the source code of a given object.
"""
print('In file: %s' % inspect.getsourcefile(object))
print(inspect.getsource(obj... | """
This module adds several functions for interactive source code inspection.
"""
from __future__ import print_function, division
import inspect
def source(object):
"""
Prints the source code of a given object.
"""
print('In file: %s' % inspect.getsourcefile(object))
print(inspect.getsource(obj... | <commit_before>"""
This module adds several functions for interactive source code inspection.
"""
from __future__ import print_function, division
import inspect
def source(object):
"""
Prints the source code of a given object.
"""
print('In file: %s' % inspect.getsourcefile(object))
print(inspec... | """
This module adds several functions for interactive source code inspection.
"""
from __future__ import print_function, division
import inspect
def source(object):
"""
Prints the source code of a given object.
"""
print('In file: %s' % inspect.getsourcefile(object))
print(inspect.getsource(obj... | """
This module adds several functions for interactive source code inspection.
"""
from __future__ import print_function, division
import inspect
def source(object):
"""
Prints the source code of a given object.
"""
print('In file: %s' % inspect.getsourcefile(object))
print(inspect.getsource(obj... | <commit_before>"""
This module adds several functions for interactive source code inspection.
"""
from __future__ import print_function, division
import inspect
def source(object):
"""
Prints the source code of a given object.
"""
print('In file: %s' % inspect.getsourcefile(object))
print(inspec... |
bb9e15a2415cba3dfcc871ea64aeaa14199fd293 | plantcv/plantcv/color_palette.py | plantcv/plantcv/color_palette.py | # Color palette returns an array of colors (rainbow)
from matplotlib import pyplot as plt
import numpy as np
from plantcv.plantcv import params
def color_palette(num):
"""color_palette: Returns a list of colors length num
Inputs:
num = number of colors to return.
Returns:
colors = a ... | # Color palette returns an array of colors (rainbow)
import numpy as np
from plantcv.plantcv import params
def color_palette(num):
"""color_palette: Returns a list of colors length num
Inputs:
num = number of colors to return.
Returns:
colors = a list of color lists (RGB values)
... | Move matplotlib import into function | Move matplotlib import into function
I think importing it at the top-level causes a conflict with our global matplotlib backend settings
| Python | mit | stiphyMT/plantcv,danforthcenter/plantcv,danforthcenter/plantcv,stiphyMT/plantcv,stiphyMT/plantcv,danforthcenter/plantcv | # Color palette returns an array of colors (rainbow)
from matplotlib import pyplot as plt
import numpy as np
from plantcv.plantcv import params
def color_palette(num):
"""color_palette: Returns a list of colors length num
Inputs:
num = number of colors to return.
Returns:
colors = a ... | # Color palette returns an array of colors (rainbow)
import numpy as np
from plantcv.plantcv import params
def color_palette(num):
"""color_palette: Returns a list of colors length num
Inputs:
num = number of colors to return.
Returns:
colors = a list of color lists (RGB values)
... | <commit_before># Color palette returns an array of colors (rainbow)
from matplotlib import pyplot as plt
import numpy as np
from plantcv.plantcv import params
def color_palette(num):
"""color_palette: Returns a list of colors length num
Inputs:
num = number of colors to return.
Returns:
... | # Color palette returns an array of colors (rainbow)
import numpy as np
from plantcv.plantcv import params
def color_palette(num):
"""color_palette: Returns a list of colors length num
Inputs:
num = number of colors to return.
Returns:
colors = a list of color lists (RGB values)
... | # Color palette returns an array of colors (rainbow)
from matplotlib import pyplot as plt
import numpy as np
from plantcv.plantcv import params
def color_palette(num):
"""color_palette: Returns a list of colors length num
Inputs:
num = number of colors to return.
Returns:
colors = a ... | <commit_before># Color palette returns an array of colors (rainbow)
from matplotlib import pyplot as plt
import numpy as np
from plantcv.plantcv import params
def color_palette(num):
"""color_palette: Returns a list of colors length num
Inputs:
num = number of colors to return.
Returns:
... |
7a2132cfff0524bd5cefc579a4561e492c884955 | wikked/wsgiutil.py | wikked/wsgiutil.py | import os
import sys
import logging
import logging.handlers
from wikked.wiki import WikiParameters
def get_wsgi_app(wiki_root, log_file=None):
os.chdir(wiki_root)
logging.basicConfig(stream=sys.stderr)
from wikked.web import app
app.set_wiki_params(WikiParameters(wiki_root))
if log_file is not N... | import os
import sys
import logging
import logging.handlers
from wikked.wiki import WikiParameters
def get_wsgi_app(wiki_root, log_file=None, async_update=True):
os.chdir(wiki_root)
logging.basicConfig(stream=sys.stderr)
if async_update:
import wikked.settings
wikked.settings.WIKI_ASYNC_U... | Enable async update by default when using a WSGI application. | Enable async update by default when using a WSGI application.
| Python | apache-2.0 | ludovicchabant/Wikked,ludovicchabant/Wikked,ludovicchabant/Wikked | import os
import sys
import logging
import logging.handlers
from wikked.wiki import WikiParameters
def get_wsgi_app(wiki_root, log_file=None):
os.chdir(wiki_root)
logging.basicConfig(stream=sys.stderr)
from wikked.web import app
app.set_wiki_params(WikiParameters(wiki_root))
if log_file is not N... | import os
import sys
import logging
import logging.handlers
from wikked.wiki import WikiParameters
def get_wsgi_app(wiki_root, log_file=None, async_update=True):
os.chdir(wiki_root)
logging.basicConfig(stream=sys.stderr)
if async_update:
import wikked.settings
wikked.settings.WIKI_ASYNC_U... | <commit_before>import os
import sys
import logging
import logging.handlers
from wikked.wiki import WikiParameters
def get_wsgi_app(wiki_root, log_file=None):
os.chdir(wiki_root)
logging.basicConfig(stream=sys.stderr)
from wikked.web import app
app.set_wiki_params(WikiParameters(wiki_root))
if lo... | import os
import sys
import logging
import logging.handlers
from wikked.wiki import WikiParameters
def get_wsgi_app(wiki_root, log_file=None, async_update=True):
os.chdir(wiki_root)
logging.basicConfig(stream=sys.stderr)
if async_update:
import wikked.settings
wikked.settings.WIKI_ASYNC_U... | import os
import sys
import logging
import logging.handlers
from wikked.wiki import WikiParameters
def get_wsgi_app(wiki_root, log_file=None):
os.chdir(wiki_root)
logging.basicConfig(stream=sys.stderr)
from wikked.web import app
app.set_wiki_params(WikiParameters(wiki_root))
if log_file is not N... | <commit_before>import os
import sys
import logging
import logging.handlers
from wikked.wiki import WikiParameters
def get_wsgi_app(wiki_root, log_file=None):
os.chdir(wiki_root)
logging.basicConfig(stream=sys.stderr)
from wikked.web import app
app.set_wiki_params(WikiParameters(wiki_root))
if lo... |
b466e0c41629575e0661aff1ba37c7056a732e0a | magicbot/__init__.py | magicbot/__init__.py |
from .magicrobot import MagicRobot
from .magic_tunable import tunable
from .magic_reset import will_reset_to
from .state_machine import AutonomousStateMachine, StateMachine, state, timed_state
|
from .magicrobot import MagicRobot
from .magic_tunable import tunable
from .magic_reset import will_reset_to
from .state_machine import AutonomousStateMachine, StateMachine, default_state, state, timed_state
| Add default_state to the magicbot exports | Add default_state to the magicbot exports
| Python | bsd-3-clause | Twinters007/robotpy-wpilib-utilities,Twinters007/robotpy-wpilib-utilities,robotpy/robotpy-wpilib-utilities,robotpy/robotpy-wpilib-utilities |
from .magicrobot import MagicRobot
from .magic_tunable import tunable
from .magic_reset import will_reset_to
from .state_machine import AutonomousStateMachine, StateMachine, state, timed_state
Add default_state to the magicbot exports |
from .magicrobot import MagicRobot
from .magic_tunable import tunable
from .magic_reset import will_reset_to
from .state_machine import AutonomousStateMachine, StateMachine, default_state, state, timed_state
| <commit_before>
from .magicrobot import MagicRobot
from .magic_tunable import tunable
from .magic_reset import will_reset_to
from .state_machine import AutonomousStateMachine, StateMachine, state, timed_state
<commit_msg>Add default_state to the magicbot exports<commit_after> |
from .magicrobot import MagicRobot
from .magic_tunable import tunable
from .magic_reset import will_reset_to
from .state_machine import AutonomousStateMachine, StateMachine, default_state, state, timed_state
|
from .magicrobot import MagicRobot
from .magic_tunable import tunable
from .magic_reset import will_reset_to
from .state_machine import AutonomousStateMachine, StateMachine, state, timed_state
Add default_state to the magicbot exports
from .magicrobot import MagicRobot
from .magic_tunable import tunable
from .magic_r... | <commit_before>
from .magicrobot import MagicRobot
from .magic_tunable import tunable
from .magic_reset import will_reset_to
from .state_machine import AutonomousStateMachine, StateMachine, state, timed_state
<commit_msg>Add default_state to the magicbot exports<commit_after>
from .magicrobot import MagicRobot
from .m... |
f81909490eae5f4216cb3895f68261c4c2cab367 | api/BucketListAPI.py | api/BucketListAPI.py | from flask import Flask, jsonify, request
from modals.modals import User, Bucket, Item
from api import create_app, db
from validate_email import validate_email
app = create_app('DevelopmentEnv')
@app.route('/')
def index():
response = jsonify({'Welcome Message': 'Hello'})
response.status_code = 201
return... | from flask import Flask, jsonify, request
from modals.modals import User, Bucket, Item
from api import create_app, db
from validate_email import validate_email
app = create_app('DevelopmentEnv')
@app.route('/')
def index():
response = jsonify({'Welcome Message': 'Hello'})
response.status_code = 201
retur... | Add chech for short passwords | Add chech for short passwords
| Python | mit | patlub/BucketListAPI,patlub/BucketListAPI | from flask import Flask, jsonify, request
from modals.modals import User, Bucket, Item
from api import create_app, db
from validate_email import validate_email
app = create_app('DevelopmentEnv')
@app.route('/')
def index():
response = jsonify({'Welcome Message': 'Hello'})
response.status_code = 201
return... | from flask import Flask, jsonify, request
from modals.modals import User, Bucket, Item
from api import create_app, db
from validate_email import validate_email
app = create_app('DevelopmentEnv')
@app.route('/')
def index():
response = jsonify({'Welcome Message': 'Hello'})
response.status_code = 201
retur... | <commit_before>from flask import Flask, jsonify, request
from modals.modals import User, Bucket, Item
from api import create_app, db
from validate_email import validate_email
app = create_app('DevelopmentEnv')
@app.route('/')
def index():
response = jsonify({'Welcome Message': 'Hello'})
response.status_code =... | from flask import Flask, jsonify, request
from modals.modals import User, Bucket, Item
from api import create_app, db
from validate_email import validate_email
app = create_app('DevelopmentEnv')
@app.route('/')
def index():
response = jsonify({'Welcome Message': 'Hello'})
response.status_code = 201
retur... | from flask import Flask, jsonify, request
from modals.modals import User, Bucket, Item
from api import create_app, db
from validate_email import validate_email
app = create_app('DevelopmentEnv')
@app.route('/')
def index():
response = jsonify({'Welcome Message': 'Hello'})
response.status_code = 201
return... | <commit_before>from flask import Flask, jsonify, request
from modals.modals import User, Bucket, Item
from api import create_app, db
from validate_email import validate_email
app = create_app('DevelopmentEnv')
@app.route('/')
def index():
response = jsonify({'Welcome Message': 'Hello'})
response.status_code =... |
3cf942c5cf7f791cbbd04bf1d092c2c8061b69ac | prjxray/site_type.py | prjxray/site_type.py | """ Description of a site type """
from collections import namedtuple
import enum
class SitePinDirection(enum.Enum):
IN = "IN"
OUT = "OUT"
SiteTypePin = namedtuple('SiteTypePin', 'name direction')
class SiteType(object):
def __init__(self, site_type):
self.type = site_type['type']
sel... | """ Description of a site type """
from collections import namedtuple
import enum
class SitePinDirection(enum.Enum):
IN = "IN"
OUT = "OUT"
INOUT = "INOUT"
SiteTypePin = namedtuple('SiteTypePin', 'name direction')
class SiteType(object):
def __init__(self, site_type):
self.type = site_type... | Add INOUT to direction enum. | prjxray: Add INOUT to direction enum.
INOUT is found on the PS7 interface on the Zynq.
Signed-off-by: Tim 'mithro' Ansell <[email protected]>
| Python | isc | SymbiFlow/prjxray,SymbiFlow/prjxray,SymbiFlow/prjxray,SymbiFlow/prjxray,SymbiFlow/prjxray | """ Description of a site type """
from collections import namedtuple
import enum
class SitePinDirection(enum.Enum):
IN = "IN"
OUT = "OUT"
SiteTypePin = namedtuple('SiteTypePin', 'name direction')
class SiteType(object):
def __init__(self, site_type):
self.type = site_type['type']
sel... | """ Description of a site type """
from collections import namedtuple
import enum
class SitePinDirection(enum.Enum):
IN = "IN"
OUT = "OUT"
INOUT = "INOUT"
SiteTypePin = namedtuple('SiteTypePin', 'name direction')
class SiteType(object):
def __init__(self, site_type):
self.type = site_type... | <commit_before>""" Description of a site type """
from collections import namedtuple
import enum
class SitePinDirection(enum.Enum):
IN = "IN"
OUT = "OUT"
SiteTypePin = namedtuple('SiteTypePin', 'name direction')
class SiteType(object):
def __init__(self, site_type):
self.type = site_type['typ... | """ Description of a site type """
from collections import namedtuple
import enum
class SitePinDirection(enum.Enum):
IN = "IN"
OUT = "OUT"
INOUT = "INOUT"
SiteTypePin = namedtuple('SiteTypePin', 'name direction')
class SiteType(object):
def __init__(self, site_type):
self.type = site_type... | """ Description of a site type """
from collections import namedtuple
import enum
class SitePinDirection(enum.Enum):
IN = "IN"
OUT = "OUT"
SiteTypePin = namedtuple('SiteTypePin', 'name direction')
class SiteType(object):
def __init__(self, site_type):
self.type = site_type['type']
sel... | <commit_before>""" Description of a site type """
from collections import namedtuple
import enum
class SitePinDirection(enum.Enum):
IN = "IN"
OUT = "OUT"
SiteTypePin = namedtuple('SiteTypePin', 'name direction')
class SiteType(object):
def __init__(self, site_type):
self.type = site_type['typ... |
8aea526176592511581ddbeb6f3bb96ce072cc91 | wukong/__init__.py | wukong/__init__.py | # Set up a null roothandler for our logging system
import logging
try: # Python 2.7+
from logging import NullHandler
except ImportError:
class NullHandler(logging.Handler):
def emit(self, record):
pass
logging.getLogger(__name__).addHandler(NullHandler())
| # Set up a null roothandler for our logging system
import logging
from logging import NullHandler
logging.getLogger(__name__).addHandler(NullHandler())
| Remove the NullHandler patch because we don't support any python versions that need it | Remove the NullHandler patch because we don't support any python versions that need it
| Python | mit | SurveyMonkey/wukong | # Set up a null roothandler for our logging system
import logging
try: # Python 2.7+
from logging import NullHandler
except ImportError:
class NullHandler(logging.Handler):
def emit(self, record):
pass
logging.getLogger(__name__).addHandler(NullHandler())
Remove the NullHandler patch beca... | # Set up a null roothandler for our logging system
import logging
from logging import NullHandler
logging.getLogger(__name__).addHandler(NullHandler())
| <commit_before># Set up a null roothandler for our logging system
import logging
try: # Python 2.7+
from logging import NullHandler
except ImportError:
class NullHandler(logging.Handler):
def emit(self, record):
pass
logging.getLogger(__name__).addHandler(NullHandler())
<commit_msg>Remove... | # Set up a null roothandler for our logging system
import logging
from logging import NullHandler
logging.getLogger(__name__).addHandler(NullHandler())
| # Set up a null roothandler for our logging system
import logging
try: # Python 2.7+
from logging import NullHandler
except ImportError:
class NullHandler(logging.Handler):
def emit(self, record):
pass
logging.getLogger(__name__).addHandler(NullHandler())
Remove the NullHandler patch beca... | <commit_before># Set up a null roothandler for our logging system
import logging
try: # Python 2.7+
from logging import NullHandler
except ImportError:
class NullHandler(logging.Handler):
def emit(self, record):
pass
logging.getLogger(__name__).addHandler(NullHandler())
<commit_msg>Remove... |
554cbefe43ce94af4f1858c534cdb0d1e5ba965c | floyd/cli/auth.py | floyd/cli/auth.py | import click
import webbrowser
import floyd
from floyd.client.auth import AuthClient
from floyd.manager.auth_config import AuthConfigManager
from floyd.model.access_token import AccessToken
from floyd.log import logger as floyd_logger
@click.command()
def login():
"""
Log into Floyd via Auth0.
"""
cl... | import click
import webbrowser
import floyd
from floyd.client.auth import AuthClient
from floyd.manager.auth_config import AuthConfigManager
from floyd.model.access_token import AccessToken
from floyd.log import logger as floyd_logger
@click.command()
@click.option('--token', is_flag=True, default=False, help='Just ... | Add support for --token in login command | Add support for --token in login command
This can be used when you already have the token and do not
want to open the browser.
| Python | apache-2.0 | mckayward/floyd-cli,mckayward/floyd-cli,houqp/floyd-cli,houqp/floyd-cli | import click
import webbrowser
import floyd
from floyd.client.auth import AuthClient
from floyd.manager.auth_config import AuthConfigManager
from floyd.model.access_token import AccessToken
from floyd.log import logger as floyd_logger
@click.command()
def login():
"""
Log into Floyd via Auth0.
"""
cl... | import click
import webbrowser
import floyd
from floyd.client.auth import AuthClient
from floyd.manager.auth_config import AuthConfigManager
from floyd.model.access_token import AccessToken
from floyd.log import logger as floyd_logger
@click.command()
@click.option('--token', is_flag=True, default=False, help='Just ... | <commit_before>import click
import webbrowser
import floyd
from floyd.client.auth import AuthClient
from floyd.manager.auth_config import AuthConfigManager
from floyd.model.access_token import AccessToken
from floyd.log import logger as floyd_logger
@click.command()
def login():
"""
Log into Floyd via Auth0.... | import click
import webbrowser
import floyd
from floyd.client.auth import AuthClient
from floyd.manager.auth_config import AuthConfigManager
from floyd.model.access_token import AccessToken
from floyd.log import logger as floyd_logger
@click.command()
@click.option('--token', is_flag=True, default=False, help='Just ... | import click
import webbrowser
import floyd
from floyd.client.auth import AuthClient
from floyd.manager.auth_config import AuthConfigManager
from floyd.model.access_token import AccessToken
from floyd.log import logger as floyd_logger
@click.command()
def login():
"""
Log into Floyd via Auth0.
"""
cl... | <commit_before>import click
import webbrowser
import floyd
from floyd.client.auth import AuthClient
from floyd.manager.auth_config import AuthConfigManager
from floyd.model.access_token import AccessToken
from floyd.log import logger as floyd_logger
@click.command()
def login():
"""
Log into Floyd via Auth0.... |
0197521691b34ee102a97e72c589c2ce93e9255b | sparkback/__init__.py | sparkback/__init__.py | # -*- coding: utf-8 -*-
from __future__ import division
import argparse
ticks = ('▁', '▂', '▃', '▄', '▅', '▆', '▇', '█')
def scale_data(data):
m = min(data)
n = (max(data) - m) / (len(ticks) - 1)
return [ ticks[int((t - m) / n)] for t in data ]
def print_ansi_spark(d):
print ''.join(d)
if __name_... | # -*- coding: utf-8 -*-
from __future__ import division
import argparse
ticks = ('▁', '▂', '▃', '▄', '▅', '▆', '▇', '█')
def scale_data(data):
m = min(data)
n = (max(data) - m) / (len(ticks) - 1)
# if every element is the same height return all lower ticks, else compute
# the tick height
if n == ... | Fix bug where all data points are same height | Fix bug where all data points are same height
| Python | mit | mmichie/sparkback | # -*- coding: utf-8 -*-
from __future__ import division
import argparse
ticks = ('▁', '▂', '▃', '▄', '▅', '▆', '▇', '█')
def scale_data(data):
m = min(data)
n = (max(data) - m) / (len(ticks) - 1)
return [ ticks[int((t - m) / n)] for t in data ]
def print_ansi_spark(d):
print ''.join(d)
if __name_... | # -*- coding: utf-8 -*-
from __future__ import division
import argparse
ticks = ('▁', '▂', '▃', '▄', '▅', '▆', '▇', '█')
def scale_data(data):
m = min(data)
n = (max(data) - m) / (len(ticks) - 1)
# if every element is the same height return all lower ticks, else compute
# the tick height
if n == ... | <commit_before># -*- coding: utf-8 -*-
from __future__ import division
import argparse
ticks = ('▁', '▂', '▃', '▄', '▅', '▆', '▇', '█')
def scale_data(data):
m = min(data)
n = (max(data) - m) / (len(ticks) - 1)
return [ ticks[int((t - m) / n)] for t in data ]
def print_ansi_spark(d):
print ''.join... | # -*- coding: utf-8 -*-
from __future__ import division
import argparse
ticks = ('▁', '▂', '▃', '▄', '▅', '▆', '▇', '█')
def scale_data(data):
m = min(data)
n = (max(data) - m) / (len(ticks) - 1)
# if every element is the same height return all lower ticks, else compute
# the tick height
if n == ... | # -*- coding: utf-8 -*-
from __future__ import division
import argparse
ticks = ('▁', '▂', '▃', '▄', '▅', '▆', '▇', '█')
def scale_data(data):
m = min(data)
n = (max(data) - m) / (len(ticks) - 1)
return [ ticks[int((t - m) / n)] for t in data ]
def print_ansi_spark(d):
print ''.join(d)
if __name_... | <commit_before># -*- coding: utf-8 -*-
from __future__ import division
import argparse
ticks = ('▁', '▂', '▃', '▄', '▅', '▆', '▇', '█')
def scale_data(data):
m = min(data)
n = (max(data) - m) / (len(ticks) - 1)
return [ ticks[int((t - m) / n)] for t in data ]
def print_ansi_spark(d):
print ''.join... |
8baa86cb381aaf52b16c7e0647a0b50cdbbd677a | st2common/st2common/util/db.py | st2common/st2common/util/db.py | # Copyright 2019 Extreme Networks, 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 i... | # Copyright 2019 Extreme Networks, 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 i... | Use if-elif instead of multiple if statements to check types | Use if-elif instead of multiple if statements to check types
Use if-elif instead of multiple if statements to check types when converting from MongoDB BaseDict and BaseList to python dict and list types. Once the value is converted, use another if-elif block to recursively evaluate and convert the values of dict and l... | Python | apache-2.0 | nzlosh/st2,nzlosh/st2,Plexxi/st2,StackStorm/st2,StackStorm/st2,Plexxi/st2,StackStorm/st2,nzlosh/st2,StackStorm/st2,Plexxi/st2,nzlosh/st2,Plexxi/st2 | # Copyright 2019 Extreme Networks, 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 i... | # Copyright 2019 Extreme Networks, 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 i... | <commit_before># Copyright 2019 Extreme Networks, 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... | # Copyright 2019 Extreme Networks, 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 i... | # Copyright 2019 Extreme Networks, 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 i... | <commit_before># Copyright 2019 Extreme Networks, 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... |
238f497ffc783b200a925d16940cae84872cf396 | firmant/__init__.py | firmant/__init__.py | # Copyright (c) 2010, Robert Escriva
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this list of condition... | Add license to Firmant package. | Add license to Firmant package.
| Python | bsd-3-clause | rescrv/firmant | Add license to Firmant package. | # Copyright (c) 2010, Robert Escriva
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this list of condition... | <commit_before><commit_msg>Add license to Firmant package.<commit_after> | # Copyright (c) 2010, Robert Escriva
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this list of condition... | Add license to Firmant package.# Copyright (c) 2010, Robert Escriva
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,... | <commit_before><commit_msg>Add license to Firmant package.<commit_after># Copyright (c) 2010, Robert Escriva
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source cod... | |
ce032e4bc64db2c19caf39d9f7c4e8dba7a3f4da | flask_aggregator.py | flask_aggregator.py | import json
from flask import request, Response
from werkzeug.exceptions import BadRequest
from werkzeug.test import EnvironBuilder
class Aggregator(object):
def __init__(self, app=None, endpoint=None):
self.url_map = {}
self.endpoint = endpoint or "/aggregate"
if app:
self.i... | import json
from flask import request, Response
from werkzeug.exceptions import BadRequest
from werkzeug.test import EnvironBuilder
class Aggregator(object):
def __init__(self, app=None, endpoint=None):
self.url_map = {}
self.endpoint = endpoint or "/aggregate"
if app:
self.i... | Support multiple Flask apps on the same Aggregator instance | Support multiple Flask apps on the same Aggregator instance
| Python | mit | ramnes/flask-aggregator | import json
from flask import request, Response
from werkzeug.exceptions import BadRequest
from werkzeug.test import EnvironBuilder
class Aggregator(object):
def __init__(self, app=None, endpoint=None):
self.url_map = {}
self.endpoint = endpoint or "/aggregate"
if app:
self.i... | import json
from flask import request, Response
from werkzeug.exceptions import BadRequest
from werkzeug.test import EnvironBuilder
class Aggregator(object):
def __init__(self, app=None, endpoint=None):
self.url_map = {}
self.endpoint = endpoint or "/aggregate"
if app:
self.i... | <commit_before>import json
from flask import request, Response
from werkzeug.exceptions import BadRequest
from werkzeug.test import EnvironBuilder
class Aggregator(object):
def __init__(self, app=None, endpoint=None):
self.url_map = {}
self.endpoint = endpoint or "/aggregate"
if app:
... | import json
from flask import request, Response
from werkzeug.exceptions import BadRequest
from werkzeug.test import EnvironBuilder
class Aggregator(object):
def __init__(self, app=None, endpoint=None):
self.url_map = {}
self.endpoint = endpoint or "/aggregate"
if app:
self.i... | import json
from flask import request, Response
from werkzeug.exceptions import BadRequest
from werkzeug.test import EnvironBuilder
class Aggregator(object):
def __init__(self, app=None, endpoint=None):
self.url_map = {}
self.endpoint = endpoint or "/aggregate"
if app:
self.i... | <commit_before>import json
from flask import request, Response
from werkzeug.exceptions import BadRequest
from werkzeug.test import EnvironBuilder
class Aggregator(object):
def __init__(self, app=None, endpoint=None):
self.url_map = {}
self.endpoint = endpoint or "/aggregate"
if app:
... |
fe007309b1c2e8f0cc594a1faec9d35076244108 | troposphere/workspaces.py | troposphere/workspaces.py | # Copyright (c) 2015, Mark Peek <[email protected]>
# All rights reserved.
#
# See LICENSE file for full license.
from . import AWSObject, AWSProperty, Tags
from .validators import boolean, integer
class WorkspaceProperties(AWSProperty):
props = {
'ComputeTypeName': (basestring, False),
'RootVolumeSi... | # Copyright (c) 2012-2020, Mark Peek <[email protected]>
# All rights reserved.
#
# See LICENSE file for full license.
#
# *** Do not modify - this file is autogenerated ***
# Resource specification version: 18.6.0
from . import AWSObject
from . import AWSProperty
from troposphere import Tags
from .validators import bool... | Add WorkSpaces::ConnectionAlias per 2020-10-01 changes | Add WorkSpaces::ConnectionAlias per 2020-10-01 changes
| Python | bsd-2-clause | cloudtools/troposphere,cloudtools/troposphere | # Copyright (c) 2015, Mark Peek <[email protected]>
# All rights reserved.
#
# See LICENSE file for full license.
from . import AWSObject, AWSProperty, Tags
from .validators import boolean, integer
class WorkspaceProperties(AWSProperty):
props = {
'ComputeTypeName': (basestring, False),
'RootVolumeSi... | # Copyright (c) 2012-2020, Mark Peek <[email protected]>
# All rights reserved.
#
# See LICENSE file for full license.
#
# *** Do not modify - this file is autogenerated ***
# Resource specification version: 18.6.0
from . import AWSObject
from . import AWSProperty
from troposphere import Tags
from .validators import bool... | <commit_before># Copyright (c) 2015, Mark Peek <[email protected]>
# All rights reserved.
#
# See LICENSE file for full license.
from . import AWSObject, AWSProperty, Tags
from .validators import boolean, integer
class WorkspaceProperties(AWSProperty):
props = {
'ComputeTypeName': (basestring, False),
... | # Copyright (c) 2012-2020, Mark Peek <[email protected]>
# All rights reserved.
#
# See LICENSE file for full license.
#
# *** Do not modify - this file is autogenerated ***
# Resource specification version: 18.6.0
from . import AWSObject
from . import AWSProperty
from troposphere import Tags
from .validators import bool... | # Copyright (c) 2015, Mark Peek <[email protected]>
# All rights reserved.
#
# See LICENSE file for full license.
from . import AWSObject, AWSProperty, Tags
from .validators import boolean, integer
class WorkspaceProperties(AWSProperty):
props = {
'ComputeTypeName': (basestring, False),
'RootVolumeSi... | <commit_before># Copyright (c) 2015, Mark Peek <[email protected]>
# All rights reserved.
#
# See LICENSE file for full license.
from . import AWSObject, AWSProperty, Tags
from .validators import boolean, integer
class WorkspaceProperties(AWSProperty):
props = {
'ComputeTypeName': (basestring, False),
... |
229f8f22a71044dc2c39a52ff36458720958c5b9 | cpnest/__init__.py | cpnest/__init__.py | from .cpnest import CPNest
__version__ = '0.9.8'
__all__ = ['model',
'NestedSampling',
'parameter',
'sampler',
'cpnest',
'nest2pos',
'proposal',
'plot']
| import logging
from .logger import CPNestLogger
from .cpnest import CPNest
logging.setLoggerClass(CPNestLogger)
__version__ = '0.9.8'
__all__ = ['model',
'NestedSampling',
'parameter',
'sampler',
'cpnest',
'nest2pos',
'proposal',
'plot',
... | Set logger class in init | Set logger class in init
| Python | mit | johnveitch/cpnest | from .cpnest import CPNest
__version__ = '0.9.8'
__all__ = ['model',
'NestedSampling',
'parameter',
'sampler',
'cpnest',
'nest2pos',
'proposal',
'plot']
Set logger class in init | import logging
from .logger import CPNestLogger
from .cpnest import CPNest
logging.setLoggerClass(CPNestLogger)
__version__ = '0.9.8'
__all__ = ['model',
'NestedSampling',
'parameter',
'sampler',
'cpnest',
'nest2pos',
'proposal',
'plot',
... | <commit_before>from .cpnest import CPNest
__version__ = '0.9.8'
__all__ = ['model',
'NestedSampling',
'parameter',
'sampler',
'cpnest',
'nest2pos',
'proposal',
'plot']
<commit_msg>Set logger class in init<commit_after> | import logging
from .logger import CPNestLogger
from .cpnest import CPNest
logging.setLoggerClass(CPNestLogger)
__version__ = '0.9.8'
__all__ = ['model',
'NestedSampling',
'parameter',
'sampler',
'cpnest',
'nest2pos',
'proposal',
'plot',
... | from .cpnest import CPNest
__version__ = '0.9.8'
__all__ = ['model',
'NestedSampling',
'parameter',
'sampler',
'cpnest',
'nest2pos',
'proposal',
'plot']
Set logger class in initimport logging
from .logger import CPNestLogger
from .cpnest imp... | <commit_before>from .cpnest import CPNest
__version__ = '0.9.8'
__all__ = ['model',
'NestedSampling',
'parameter',
'sampler',
'cpnest',
'nest2pos',
'proposal',
'plot']
<commit_msg>Set logger class in init<commit_after>import logging
from .lo... |
9ebaac20779d78bb0c276249ac5c578339ba95ee | py/maximum-binary-tree.py | py/maximum-binary-tree.py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def constructMaximumBinaryTree(self, nums, start=None, end=None):
"""
:type nums: List[int]
:rtyp... | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def findMax(self, start, end):
bit_length = (end - start).bit_length() - 1
d = 1 << bit_length
re... | Add py solution for 654. Maximum Binary Tree | Add py solution for 654. Maximum Binary Tree
654. Maximum Binary Tree: https://leetcode.com/problems/maximum-binary-tree/
Approach 2:
1. Use [Sparse Table](https://wcipeg.com/wiki/Range_minimum_query#Sparse_table)
to quickly lookup maximum and its index
2. However, approach 1 is already O(nlogn) (aver... | Python | apache-2.0 | ckclark/leetcode,ckclark/leetcode,ckclark/leetcode,ckclark/leetcode,ckclark/leetcode,ckclark/leetcode | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def constructMaximumBinaryTree(self, nums, start=None, end=None):
"""
:type nums: List[int]
:rtyp... | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def findMax(self, start, end):
bit_length = (end - start).bit_length() - 1
d = 1 << bit_length
re... | <commit_before># Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def constructMaximumBinaryTree(self, nums, start=None, end=None):
"""
:type nums: List[int... | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def findMax(self, start, end):
bit_length = (end - start).bit_length() - 1
d = 1 << bit_length
re... | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def constructMaximumBinaryTree(self, nums, start=None, end=None):
"""
:type nums: List[int]
:rtyp... | <commit_before># Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def constructMaximumBinaryTree(self, nums, start=None, end=None):
"""
:type nums: List[int... |
d223205dd753783c7ebcbc4f46bd5533578ab82d | pyfr/backends/__init__.py | pyfr/backends/__init__.py | # -*- coding: utf-8 -*-
from pyfr.backends.base import Backend as BaseBackend
from pyfr.backends.cuda import CudaBackend
from pyfr.util import subclass_map
def get_backend(name, cfg):
backend_map = subclass_map(BaseBackend, 'name')
return backend_map[name](cfg)
| # -*- coding: utf-8 -*-
from pyfr.backends.base import Backend as BaseBackend
from pyfr.backends.cuda import CudaBackend
from pyfr.util import subclass_map
def get_backend(name, cfg):
backend_map = subclass_map(BaseBackend, 'name')
return backend_map[name.lower()](cfg)
| Make backend names more flexible. | Make backend names more flexible.
| Python | bsd-3-clause | Aerojspark/PyFR,tjcorona/PyFR,tjcorona/PyFR,tjcorona/PyFR,iyer-arvind/PyFR,BrianVermeire/PyFR | # -*- coding: utf-8 -*-
from pyfr.backends.base import Backend as BaseBackend
from pyfr.backends.cuda import CudaBackend
from pyfr.util import subclass_map
def get_backend(name, cfg):
backend_map = subclass_map(BaseBackend, 'name')
return backend_map[name](cfg)
Make backend names more flexible. | # -*- coding: utf-8 -*-
from pyfr.backends.base import Backend as BaseBackend
from pyfr.backends.cuda import CudaBackend
from pyfr.util import subclass_map
def get_backend(name, cfg):
backend_map = subclass_map(BaseBackend, 'name')
return backend_map[name.lower()](cfg)
| <commit_before># -*- coding: utf-8 -*-
from pyfr.backends.base import Backend as BaseBackend
from pyfr.backends.cuda import CudaBackend
from pyfr.util import subclass_map
def get_backend(name, cfg):
backend_map = subclass_map(BaseBackend, 'name')
return backend_map[name](cfg)
<commit_msg>Make backend names ... | # -*- coding: utf-8 -*-
from pyfr.backends.base import Backend as BaseBackend
from pyfr.backends.cuda import CudaBackend
from pyfr.util import subclass_map
def get_backend(name, cfg):
backend_map = subclass_map(BaseBackend, 'name')
return backend_map[name.lower()](cfg)
| # -*- coding: utf-8 -*-
from pyfr.backends.base import Backend as BaseBackend
from pyfr.backends.cuda import CudaBackend
from pyfr.util import subclass_map
def get_backend(name, cfg):
backend_map = subclass_map(BaseBackend, 'name')
return backend_map[name](cfg)
Make backend names more flexible.# -*- coding:... | <commit_before># -*- coding: utf-8 -*-
from pyfr.backends.base import Backend as BaseBackend
from pyfr.backends.cuda import CudaBackend
from pyfr.util import subclass_map
def get_backend(name, cfg):
backend_map = subclass_map(BaseBackend, 'name')
return backend_map[name](cfg)
<commit_msg>Make backend names ... |
d6bff0a4e632f0bda9a143acede58c0765066ada | attest/tests/hook.py | attest/tests/hook.py | from attest import Tests, assert_hook
from attest.hook import ExpressionEvaluator
suite = Tests()
@suite.test
def eval():
value = 1 + 1
valgen = (v for v in [value])
samples = {
'isinstance(value, int)': 'True',
'value == int("2")': "(2 == 2)",
'value.denominator': '1',
'... | from attest import Tests, assert_hook
from attest.hook import ExpressionEvaluator
suite = Tests()
@suite.test
def eval():
value = 1 + 1
valgen = (v for v in [value])
samples = {
'isinstance(value, int)': 'True',
'value == int("2")': "(2 == 2)",
'type(value).__name__': "'int'",
... | Fix tests for visit_Attribute on 2.5/PyPy | Fix tests for visit_Attribute on 2.5/PyPy
| Python | bsd-2-clause | dag/attest | from attest import Tests, assert_hook
from attest.hook import ExpressionEvaluator
suite = Tests()
@suite.test
def eval():
value = 1 + 1
valgen = (v for v in [value])
samples = {
'isinstance(value, int)': 'True',
'value == int("2")': "(2 == 2)",
'value.denominator': '1',
'... | from attest import Tests, assert_hook
from attest.hook import ExpressionEvaluator
suite = Tests()
@suite.test
def eval():
value = 1 + 1
valgen = (v for v in [value])
samples = {
'isinstance(value, int)': 'True',
'value == int("2")': "(2 == 2)",
'type(value).__name__': "'int'",
... | <commit_before>from attest import Tests, assert_hook
from attest.hook import ExpressionEvaluator
suite = Tests()
@suite.test
def eval():
value = 1 + 1
valgen = (v for v in [value])
samples = {
'isinstance(value, int)': 'True',
'value == int("2")': "(2 == 2)",
'value.denominator':... | from attest import Tests, assert_hook
from attest.hook import ExpressionEvaluator
suite = Tests()
@suite.test
def eval():
value = 1 + 1
valgen = (v for v in [value])
samples = {
'isinstance(value, int)': 'True',
'value == int("2")': "(2 == 2)",
'type(value).__name__': "'int'",
... | from attest import Tests, assert_hook
from attest.hook import ExpressionEvaluator
suite = Tests()
@suite.test
def eval():
value = 1 + 1
valgen = (v for v in [value])
samples = {
'isinstance(value, int)': 'True',
'value == int("2")': "(2 == 2)",
'value.denominator': '1',
'... | <commit_before>from attest import Tests, assert_hook
from attest.hook import ExpressionEvaluator
suite = Tests()
@suite.test
def eval():
value = 1 + 1
valgen = (v for v in [value])
samples = {
'isinstance(value, int)': 'True',
'value == int("2")': "(2 == 2)",
'value.denominator':... |
8c6ff33c8a034c2eecf5f2244811c86acf96120a | tools/apollo/list_organisms.py | tools/apollo/list_organisms.py | #!/usr/bin/env python
from __future__ import print_function
import argparse
import json
from webapollo import AssertUser, WAAuth, WebApolloInstance, accessible_organisms, PasswordGenerator
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='List all organisms available in an Apollo instance'... | #!/usr/bin/env python
from __future__ import print_function
import argparse
import json
from webapollo import AssertUser, WAAuth, WebApolloInstance, accessible_organisms, PasswordGenerator
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='List all organisms available in an Apollo instance'... | Add try-catch if no organism allowed | Add try-catch if no organism allowed
| Python | mit | galaxy-genome-annotation/galaxy-tools,galaxy-genome-annotation/galaxy-tools | #!/usr/bin/env python
from __future__ import print_function
import argparse
import json
from webapollo import AssertUser, WAAuth, WebApolloInstance, accessible_organisms, PasswordGenerator
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='List all organisms available in an Apollo instance'... | #!/usr/bin/env python
from __future__ import print_function
import argparse
import json
from webapollo import AssertUser, WAAuth, WebApolloInstance, accessible_organisms, PasswordGenerator
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='List all organisms available in an Apollo instance'... | <commit_before>#!/usr/bin/env python
from __future__ import print_function
import argparse
import json
from webapollo import AssertUser, WAAuth, WebApolloInstance, accessible_organisms, PasswordGenerator
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='List all organisms available in an A... | #!/usr/bin/env python
from __future__ import print_function
import argparse
import json
from webapollo import AssertUser, WAAuth, WebApolloInstance, accessible_organisms, PasswordGenerator
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='List all organisms available in an Apollo instance'... | #!/usr/bin/env python
from __future__ import print_function
import argparse
import json
from webapollo import AssertUser, WAAuth, WebApolloInstance, accessible_organisms, PasswordGenerator
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='List all organisms available in an Apollo instance'... | <commit_before>#!/usr/bin/env python
from __future__ import print_function
import argparse
import json
from webapollo import AssertUser, WAAuth, WebApolloInstance, accessible_organisms, PasswordGenerator
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='List all organisms available in an A... |
dd0883aa6256e2296a1da1c3d906621483bd3707 | tools/codegen/OCCI/Backends.py | tools/codegen/OCCI/Backends.py | class Backend(object):
def __init__(self, plugin, params):
self._plugin = plugin
self._params = params
self._categories = []
@property
def plugin(self):
return self._plugin
@property
def params(self):
return self._params
def add_cate... | class Backend(object):
def __init__(self, plugin, params):
self._plugin = plugin
self._params = params
self._categories = []
@property
def plugin(self):
return self._plugin
@property
def params(self):
return self._params
def add_cate... | Update parse so it doesn't return anything, just stores objects locally. Lots of tidying | Update parse so it doesn't return anything, just stores objects locally. Lots of tidying
| Python | apache-2.0 | compatibleone/accords-platform,compatibleone/accords-platform,compatibleone/accords-platform,compatibleone/accords-platform,compatibleone/accords-platform,compatibleone/accords-platform | class Backend(object):
def __init__(self, plugin, params):
self._plugin = plugin
self._params = params
self._categories = []
@property
def plugin(self):
return self._plugin
@property
def params(self):
return self._params
def add_cate... | class Backend(object):
def __init__(self, plugin, params):
self._plugin = plugin
self._params = params
self._categories = []
@property
def plugin(self):
return self._plugin
@property
def params(self):
return self._params
def add_cate... | <commit_before>class Backend(object):
def __init__(self, plugin, params):
self._plugin = plugin
self._params = params
self._categories = []
@property
def plugin(self):
return self._plugin
@property
def params(self):
return self._params
... | class Backend(object):
def __init__(self, plugin, params):
self._plugin = plugin
self._params = params
self._categories = []
@property
def plugin(self):
return self._plugin
@property
def params(self):
return self._params
def add_cate... | class Backend(object):
def __init__(self, plugin, params):
self._plugin = plugin
self._params = params
self._categories = []
@property
def plugin(self):
return self._plugin
@property
def params(self):
return self._params
def add_cate... | <commit_before>class Backend(object):
def __init__(self, plugin, params):
self._plugin = plugin
self._params = params
self._categories = []
@property
def plugin(self):
return self._plugin
@property
def params(self):
return self._params
... |
724338c55d0af6d38a949b58a90ae200849247f4 | cyinterval/test/test_interval_set.py | cyinterval/test/test_interval_set.py | from cyinterval.cyinterval import Interval, IntervalSet
from nose.tools import assert_equal
def test_interval_set_construction():
interval_set = IntervalSet(Interval(0.,1.), Interval(2.,3.))
assert_equal(interval_set.intervals[0], Interval(0.,1.))
assert_equal(interval_set.intervals[1], Interval(2.,3.))
i... | from cyinterval.cyinterval import Interval, IntervalSet, FloatIntervalSet
from nose.tools import assert_equal, assert_is
def test_float_interval_set_construction():
interval_set = IntervalSet(Interval(0.,1.), Interval(2.,3.))
assert_equal(interval_set.intervals[0], Interval(0.,1.))
assert_equal(interval_se... | Test type of IntervalSet factory output | Test type of IntervalSet factory output
| Python | mit | jcrudy/cyinterval | from cyinterval.cyinterval import Interval, IntervalSet
from nose.tools import assert_equal
def test_interval_set_construction():
interval_set = IntervalSet(Interval(0.,1.), Interval(2.,3.))
assert_equal(interval_set.intervals[0], Interval(0.,1.))
assert_equal(interval_set.intervals[1], Interval(2.,3.))
i... | from cyinterval.cyinterval import Interval, IntervalSet, FloatIntervalSet
from nose.tools import assert_equal, assert_is
def test_float_interval_set_construction():
interval_set = IntervalSet(Interval(0.,1.), Interval(2.,3.))
assert_equal(interval_set.intervals[0], Interval(0.,1.))
assert_equal(interval_se... | <commit_before>from cyinterval.cyinterval import Interval, IntervalSet
from nose.tools import assert_equal
def test_interval_set_construction():
interval_set = IntervalSet(Interval(0.,1.), Interval(2.,3.))
assert_equal(interval_set.intervals[0], Interval(0.,1.))
assert_equal(interval_set.intervals[1], Inte... | from cyinterval.cyinterval import Interval, IntervalSet, FloatIntervalSet
from nose.tools import assert_equal, assert_is
def test_float_interval_set_construction():
interval_set = IntervalSet(Interval(0.,1.), Interval(2.,3.))
assert_equal(interval_set.intervals[0], Interval(0.,1.))
assert_equal(interval_se... | from cyinterval.cyinterval import Interval, IntervalSet
from nose.tools import assert_equal
def test_interval_set_construction():
interval_set = IntervalSet(Interval(0.,1.), Interval(2.,3.))
assert_equal(interval_set.intervals[0], Interval(0.,1.))
assert_equal(interval_set.intervals[1], Interval(2.,3.))
i... | <commit_before>from cyinterval.cyinterval import Interval, IntervalSet
from nose.tools import assert_equal
def test_interval_set_construction():
interval_set = IntervalSet(Interval(0.,1.), Interval(2.,3.))
assert_equal(interval_set.intervals[0], Interval(0.,1.))
assert_equal(interval_set.intervals[1], Inte... |
eea3e63b832c4b1360ccd91f60732e65e8ead57e | geopandas/io/sql.py | geopandas/io/sql.py | import binascii
from pandas import read_sql
import shapely.wkb
from geopandas import GeoSeries, GeoDataFrame
def read_postgis(sql, con, geom_col='geom', crs=None, index_col=None,
coerce_float=True, params=None):
"""
Returns a GeoDataFrame corresponding to the result of the query
string... | import binascii
from pandas import read_sql
import shapely.wkb
from geopandas import GeoSeries, GeoDataFrame
def read_postgis(sql, con, geom_col='geom', crs=None, index_col=None,
coerce_float=True, params=None):
"""
Returns a GeoDataFrame corresponding to the result of the query
string... | Add encode() to ensure that python 3.2 gets bytes to unhexlify() | PY32: Add encode() to ensure that python 3.2 gets bytes to unhexlify()
| Python | bsd-3-clause | koldunovn/geopandas,geopandas/geopandas,jdmcbr/geopandas,jorisvandenbossche/geopandas,geopandas/geopandas,ozak/geopandas,scw/geopandas,geopandas/geopandas,IamJeffG/geopandas,fonnesbeck/geopandas,jorisvandenbossche/geopandas,kwinkunks/geopandas,micahcochran/geopandas,urschrei/geopandas,ozak/geopandas,maxalbert/geopandas... | import binascii
from pandas import read_sql
import shapely.wkb
from geopandas import GeoSeries, GeoDataFrame
def read_postgis(sql, con, geom_col='geom', crs=None, index_col=None,
coerce_float=True, params=None):
"""
Returns a GeoDataFrame corresponding to the result of the query
string... | import binascii
from pandas import read_sql
import shapely.wkb
from geopandas import GeoSeries, GeoDataFrame
def read_postgis(sql, con, geom_col='geom', crs=None, index_col=None,
coerce_float=True, params=None):
"""
Returns a GeoDataFrame corresponding to the result of the query
string... | <commit_before>import binascii
from pandas import read_sql
import shapely.wkb
from geopandas import GeoSeries, GeoDataFrame
def read_postgis(sql, con, geom_col='geom', crs=None, index_col=None,
coerce_float=True, params=None):
"""
Returns a GeoDataFrame corresponding to the result of the qu... | import binascii
from pandas import read_sql
import shapely.wkb
from geopandas import GeoSeries, GeoDataFrame
def read_postgis(sql, con, geom_col='geom', crs=None, index_col=None,
coerce_float=True, params=None):
"""
Returns a GeoDataFrame corresponding to the result of the query
string... | import binascii
from pandas import read_sql
import shapely.wkb
from geopandas import GeoSeries, GeoDataFrame
def read_postgis(sql, con, geom_col='geom', crs=None, index_col=None,
coerce_float=True, params=None):
"""
Returns a GeoDataFrame corresponding to the result of the query
string... | <commit_before>import binascii
from pandas import read_sql
import shapely.wkb
from geopandas import GeoSeries, GeoDataFrame
def read_postgis(sql, con, geom_col='geom', crs=None, index_col=None,
coerce_float=True, params=None):
"""
Returns a GeoDataFrame corresponding to the result of the qu... |
5fe7e1e1cdccd8b54d6db2a64509923d8596a5f4 | test_connector/__manifest__.py | test_connector/__manifest__.py | # -*- coding: utf-8 -*-
# Copyright 2017 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
{'name': 'Connector Tests',
'summary': 'Automated tests for Connector, do not install.',
'version': '10.0.1.0.0',
'author': 'Camptocamp,Odoo Community Association (OCA)',
'license': 'AGPL-3',
... | # -*- coding: utf-8 -*-
# Copyright 2017 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
{'name': 'Connector Tests',
'summary': 'Automated tests for Connector, do not install.',
'description': 'Automated tests for Connector, do not install.',
'version': '10.0.1.0.0',
'author': 'Ca... | Add description in test addons to make pylint happier | Add description in test addons to make pylint happier
| Python | agpl-3.0 | OCA/connector,OCA/connector | # -*- coding: utf-8 -*-
# Copyright 2017 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
{'name': 'Connector Tests',
'summary': 'Automated tests for Connector, do not install.',
'version': '10.0.1.0.0',
'author': 'Camptocamp,Odoo Community Association (OCA)',
'license': 'AGPL-3',
... | # -*- coding: utf-8 -*-
# Copyright 2017 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
{'name': 'Connector Tests',
'summary': 'Automated tests for Connector, do not install.',
'description': 'Automated tests for Connector, do not install.',
'version': '10.0.1.0.0',
'author': 'Ca... | <commit_before># -*- coding: utf-8 -*-
# Copyright 2017 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
{'name': 'Connector Tests',
'summary': 'Automated tests for Connector, do not install.',
'version': '10.0.1.0.0',
'author': 'Camptocamp,Odoo Community Association (OCA)',
'licen... | # -*- coding: utf-8 -*-
# Copyright 2017 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
{'name': 'Connector Tests',
'summary': 'Automated tests for Connector, do not install.',
'description': 'Automated tests for Connector, do not install.',
'version': '10.0.1.0.0',
'author': 'Ca... | # -*- coding: utf-8 -*-
# Copyright 2017 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
{'name': 'Connector Tests',
'summary': 'Automated tests for Connector, do not install.',
'version': '10.0.1.0.0',
'author': 'Camptocamp,Odoo Community Association (OCA)',
'license': 'AGPL-3',
... | <commit_before># -*- coding: utf-8 -*-
# Copyright 2017 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
{'name': 'Connector Tests',
'summary': 'Automated tests for Connector, do not install.',
'version': '10.0.1.0.0',
'author': 'Camptocamp,Odoo Community Association (OCA)',
'licen... |
c4c726b004e500463cacc9571258dddd172d9b2c | ironic/api/acl.py | ironic/api/acl.py | # -*- encoding: utf-8 -*-
#
# Copyright © 2012 New Dream Network, LLC (DreamHost)
#
# 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
#
# Unles... | # -*- encoding: utf-8 -*-
#
# Copyright © 2012 New Dream Network, LLC (DreamHost)
#
# 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
#
# Unles... | Fix misspelling from "applicatin" to "application". | Fix misspelling from "applicatin" to "application".
Change-Id: I3c4e455a10deae0d719fdc8534049abf8faba954
| Python | apache-2.0 | bacaldwell/ironic,dims/ironic,NaohiroTamura/ironic,pshchelo/ironic,pshchelo/ironic,NaohiroTamura/ironic,ionutbalutoiu/ironic,SauloAislan/ironic,dims/ironic,bacaldwell/ironic,SauloAislan/ironic,openstack/ironic,ionutbalutoiu/ironic,openstack/ironic,devananda/ironic,hpproliant/ironic,naterh/ironic,redhat-openstack/ironic | # -*- encoding: utf-8 -*-
#
# Copyright © 2012 New Dream Network, LLC (DreamHost)
#
# 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
#
# Unles... | # -*- encoding: utf-8 -*-
#
# Copyright © 2012 New Dream Network, LLC (DreamHost)
#
# 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
#
# Unles... | <commit_before># -*- encoding: utf-8 -*-
#
# Copyright © 2012 New Dream Network, LLC (DreamHost)
#
# 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/LICENS... | # -*- encoding: utf-8 -*-
#
# Copyright © 2012 New Dream Network, LLC (DreamHost)
#
# 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
#
# Unles... | # -*- encoding: utf-8 -*-
#
# Copyright © 2012 New Dream Network, LLC (DreamHost)
#
# 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
#
# Unles... | <commit_before># -*- encoding: utf-8 -*-
#
# Copyright © 2012 New Dream Network, LLC (DreamHost)
#
# 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/LICENS... |
a21a4f46c79f6531f2a305f58dacce12f46d27fb | tests/languages/docker_test.py | tests/languages/docker_test.py | from __future__ import absolute_import
from __future__ import unicode_literals
import mock
from pre_commit.languages import docker
from pre_commit.util import CalledProcessError
def test_docker_is_running_process_error():
with mock.patch(
'pre_commit.languages.docker.cmd_output',
side_effect=Cal... | from __future__ import absolute_import
from __future__ import unicode_literals
import mock
from pre_commit.languages import docker
from pre_commit.util import CalledProcessError
def test_docker_is_running_process_error():
with mock.patch(
'pre_commit.languages.docker.cmd_output',
side_effect=Cal... | Fix missing create=True attribute in docker tests | Fix missing create=True attribute in docker tests
| Python | mit | pre-commit/pre-commit,pre-commit/pre-commit,pre-commit/pre-commit,pre-commit/pre-commit,pre-commit/pre-commit,pre-commit/pre-commit,pre-commit/pre-commit,pre-commit/pre-commit,pre-commit/pre-commit,pre-commit/pre-commit,pre-commit/pre-commit | from __future__ import absolute_import
from __future__ import unicode_literals
import mock
from pre_commit.languages import docker
from pre_commit.util import CalledProcessError
def test_docker_is_running_process_error():
with mock.patch(
'pre_commit.languages.docker.cmd_output',
side_effect=Cal... | from __future__ import absolute_import
from __future__ import unicode_literals
import mock
from pre_commit.languages import docker
from pre_commit.util import CalledProcessError
def test_docker_is_running_process_error():
with mock.patch(
'pre_commit.languages.docker.cmd_output',
side_effect=Cal... | <commit_before>from __future__ import absolute_import
from __future__ import unicode_literals
import mock
from pre_commit.languages import docker
from pre_commit.util import CalledProcessError
def test_docker_is_running_process_error():
with mock.patch(
'pre_commit.languages.docker.cmd_output',
... | from __future__ import absolute_import
from __future__ import unicode_literals
import mock
from pre_commit.languages import docker
from pre_commit.util import CalledProcessError
def test_docker_is_running_process_error():
with mock.patch(
'pre_commit.languages.docker.cmd_output',
side_effect=Cal... | from __future__ import absolute_import
from __future__ import unicode_literals
import mock
from pre_commit.languages import docker
from pre_commit.util import CalledProcessError
def test_docker_is_running_process_error():
with mock.patch(
'pre_commit.languages.docker.cmd_output',
side_effect=Cal... | <commit_before>from __future__ import absolute_import
from __future__ import unicode_literals
import mock
from pre_commit.languages import docker
from pre_commit.util import CalledProcessError
def test_docker_is_running_process_error():
with mock.patch(
'pre_commit.languages.docker.cmd_output',
... |
179c81952a4ce223d1db5b42676649b42972b8a6 | setup.py | setup.py | from setuptools import setup, find_packages
__author__ = "James King"
__email__ = "[email protected]"
__version__ = "0.1.1"
__license__ = "MIT"
__description__ = """
A library of grids and other fine amusements. Contains a Grid and
Grid-like data structures and optional modules for rendering them with
pygame, crea... | from setuptools import setup, find_packages
__author__ = "James King"
__email__ = "[email protected]"
__version__ = "0.1.1"
__license__ = "MIT"
__description__ = """
A library of grids and other fine amusements. Contains a Grid and
Grid-like data structures and optional modules for rendering them with
pygame, crea... | Fix typo in trove classifiers | Fix typo in trove classifiers
| Python | mit | agentultra/Horton,agentultra/Horton | from setuptools import setup, find_packages
__author__ = "James King"
__email__ = "[email protected]"
__version__ = "0.1.1"
__license__ = "MIT"
__description__ = """
A library of grids and other fine amusements. Contains a Grid and
Grid-like data structures and optional modules for rendering them with
pygame, crea... | from setuptools import setup, find_packages
__author__ = "James King"
__email__ = "[email protected]"
__version__ = "0.1.1"
__license__ = "MIT"
__description__ = """
A library of grids and other fine amusements. Contains a Grid and
Grid-like data structures and optional modules for rendering them with
pygame, crea... | <commit_before>from setuptools import setup, find_packages
__author__ = "James King"
__email__ = "[email protected]"
__version__ = "0.1.1"
__license__ = "MIT"
__description__ = """
A library of grids and other fine amusements. Contains a Grid and
Grid-like data structures and optional modules for rendering them wi... | from setuptools import setup, find_packages
__author__ = "James King"
__email__ = "[email protected]"
__version__ = "0.1.1"
__license__ = "MIT"
__description__ = """
A library of grids and other fine amusements. Contains a Grid and
Grid-like data structures and optional modules for rendering them with
pygame, crea... | from setuptools import setup, find_packages
__author__ = "James King"
__email__ = "[email protected]"
__version__ = "0.1.1"
__license__ = "MIT"
__description__ = """
A library of grids and other fine amusements. Contains a Grid and
Grid-like data structures and optional modules for rendering them with
pygame, crea... | <commit_before>from setuptools import setup, find_packages
__author__ = "James King"
__email__ = "[email protected]"
__version__ = "0.1.1"
__license__ = "MIT"
__description__ = """
A library of grids and other fine amusements. Contains a Grid and
Grid-like data structures and optional modules for rendering them wi... |
6d645d5b58043d0668721727bbfdcc7ee021b504 | rwt/tests/test_scripts.py | rwt/tests/test_scripts.py | import textwrap
import sys
import subprocess
def test_pkg_imported(tmpdir):
"""
Create a script that loads cython and ensure it runs.
"""
body = textwrap.dedent("""
import cython
print("Successfully imported cython")
""").lstrip()
script_file = tmpdir / 'script'
script_file.write_text(body, 'utf-8')
pip_... | from __future__ import unicode_literals
import textwrap
import sys
import subprocess
def test_pkg_imported(tmpdir):
"""
Create a script that loads cython and ensure it runs.
"""
body = textwrap.dedent("""
import cython
print("Successfully imported cython")
""").lstrip()
script_file = tmpdir / 'script'
sc... | Add support for Python 2.7 | Add support for Python 2.7
| Python | mit | jaraco/rwt | import textwrap
import sys
import subprocess
def test_pkg_imported(tmpdir):
"""
Create a script that loads cython and ensure it runs.
"""
body = textwrap.dedent("""
import cython
print("Successfully imported cython")
""").lstrip()
script_file = tmpdir / 'script'
script_file.write_text(body, 'utf-8')
pip_... | from __future__ import unicode_literals
import textwrap
import sys
import subprocess
def test_pkg_imported(tmpdir):
"""
Create a script that loads cython and ensure it runs.
"""
body = textwrap.dedent("""
import cython
print("Successfully imported cython")
""").lstrip()
script_file = tmpdir / 'script'
sc... | <commit_before>import textwrap
import sys
import subprocess
def test_pkg_imported(tmpdir):
"""
Create a script that loads cython and ensure it runs.
"""
body = textwrap.dedent("""
import cython
print("Successfully imported cython")
""").lstrip()
script_file = tmpdir / 'script'
script_file.write_text(body,... | from __future__ import unicode_literals
import textwrap
import sys
import subprocess
def test_pkg_imported(tmpdir):
"""
Create a script that loads cython and ensure it runs.
"""
body = textwrap.dedent("""
import cython
print("Successfully imported cython")
""").lstrip()
script_file = tmpdir / 'script'
sc... | import textwrap
import sys
import subprocess
def test_pkg_imported(tmpdir):
"""
Create a script that loads cython and ensure it runs.
"""
body = textwrap.dedent("""
import cython
print("Successfully imported cython")
""").lstrip()
script_file = tmpdir / 'script'
script_file.write_text(body, 'utf-8')
pip_... | <commit_before>import textwrap
import sys
import subprocess
def test_pkg_imported(tmpdir):
"""
Create a script that loads cython and ensure it runs.
"""
body = textwrap.dedent("""
import cython
print("Successfully imported cython")
""").lstrip()
script_file = tmpdir / 'script'
script_file.write_text(body,... |
822f62de129e08df7ff6802b18d531b15b33fec7 | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='panoptes_client',
url='https://github.com/zooniverse/panoptes-python-client',
author='Adam McMaster',
author_email='[email protected]',
version='1.3.0',
packages=find_packages(),
include_package_data=True,
install_requires=[
... | from setuptools import setup, find_packages
setup(
name='panoptes_client',
url='https://github.com/zooniverse/panoptes-python-client',
author='Adam McMaster',
author_email='[email protected]',
version='1.3.0',
packages=find_packages(),
include_package_data=True,
install_requires=[
... | Update requests requirement from <2.25,>=2.4.2 to >=2.4.2,<2.26 | Update requests requirement from <2.25,>=2.4.2 to >=2.4.2,<2.26
Updates the requirements on [requests](https://github.com/psf/requests) to permit the latest version.
- [Release notes](https://github.com/psf/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/master/HISTORY.md)
- [Commits](https://git... | Python | apache-2.0 | zooniverse/panoptes-python-client | from setuptools import setup, find_packages
setup(
name='panoptes_client',
url='https://github.com/zooniverse/panoptes-python-client',
author='Adam McMaster',
author_email='[email protected]',
version='1.3.0',
packages=find_packages(),
include_package_data=True,
install_requires=[
... | from setuptools import setup, find_packages
setup(
name='panoptes_client',
url='https://github.com/zooniverse/panoptes-python-client',
author='Adam McMaster',
author_email='[email protected]',
version='1.3.0',
packages=find_packages(),
include_package_data=True,
install_requires=[
... | <commit_before>from setuptools import setup, find_packages
setup(
name='panoptes_client',
url='https://github.com/zooniverse/panoptes-python-client',
author='Adam McMaster',
author_email='[email protected]',
version='1.3.0',
packages=find_packages(),
include_package_data=True,
install... | from setuptools import setup, find_packages
setup(
name='panoptes_client',
url='https://github.com/zooniverse/panoptes-python-client',
author='Adam McMaster',
author_email='[email protected]',
version='1.3.0',
packages=find_packages(),
include_package_data=True,
install_requires=[
... | from setuptools import setup, find_packages
setup(
name='panoptes_client',
url='https://github.com/zooniverse/panoptes-python-client',
author='Adam McMaster',
author_email='[email protected]',
version='1.3.0',
packages=find_packages(),
include_package_data=True,
install_requires=[
... | <commit_before>from setuptools import setup, find_packages
setup(
name='panoptes_client',
url='https://github.com/zooniverse/panoptes-python-client',
author='Adam McMaster',
author_email='[email protected]',
version='1.3.0',
packages=find_packages(),
include_package_data=True,
install... |
eabce27a7fc80a944a9d85ce43649125991116fb | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name = "biofloat",
version = "0.3.1",
packages = find_packages(),
requires = ['Python (>=2.7)'],
install_requires = [
'beautifulsoup4>=4.4',
'coverage>=4',
'geopandas>=0.1.1',
'jupyter>=1.0.0',
'matplotlib',
... | from setuptools import setup, find_packages
setup(
name = "biofloat",
version = "0.3.2",
packages = find_packages(),
requires = ['Python (>=2.7)'],
install_requires = [
'beautifulsoup4>=4.4',
'coverage>=4',
'jupyter>=1.0.0',
'matplotlib',
'numpy>=1.10',
... | Remove geopandas - installing geos.dll and gdal is too painful on Windows/Anaconda | Remove geopandas - installing geos.dll and gdal is too painful on Windows/Anaconda
| Python | mit | MBARIMike/biofloat,biofloat/biofloat,MBARIMike/biofloat,biofloat/biofloat | from setuptools import setup, find_packages
setup(
name = "biofloat",
version = "0.3.1",
packages = find_packages(),
requires = ['Python (>=2.7)'],
install_requires = [
'beautifulsoup4>=4.4',
'coverage>=4',
'geopandas>=0.1.1',
'jupyter>=1.0.0',
'matplotlib',
... | from setuptools import setup, find_packages
setup(
name = "biofloat",
version = "0.3.2",
packages = find_packages(),
requires = ['Python (>=2.7)'],
install_requires = [
'beautifulsoup4>=4.4',
'coverage>=4',
'jupyter>=1.0.0',
'matplotlib',
'numpy>=1.10',
... | <commit_before>from setuptools import setup, find_packages
setup(
name = "biofloat",
version = "0.3.1",
packages = find_packages(),
requires = ['Python (>=2.7)'],
install_requires = [
'beautifulsoup4>=4.4',
'coverage>=4',
'geopandas>=0.1.1',
'jupyter>=1.0.0',
... | from setuptools import setup, find_packages
setup(
name = "biofloat",
version = "0.3.2",
packages = find_packages(),
requires = ['Python (>=2.7)'],
install_requires = [
'beautifulsoup4>=4.4',
'coverage>=4',
'jupyter>=1.0.0',
'matplotlib',
'numpy>=1.10',
... | from setuptools import setup, find_packages
setup(
name = "biofloat",
version = "0.3.1",
packages = find_packages(),
requires = ['Python (>=2.7)'],
install_requires = [
'beautifulsoup4>=4.4',
'coverage>=4',
'geopandas>=0.1.1',
'jupyter>=1.0.0',
'matplotlib',
... | <commit_before>from setuptools import setup, find_packages
setup(
name = "biofloat",
version = "0.3.1",
packages = find_packages(),
requires = ['Python (>=2.7)'],
install_requires = [
'beautifulsoup4>=4.4',
'coverage>=4',
'geopandas>=0.1.1',
'jupyter>=1.0.0',
... |
9d54e23d87c28fa22b6a537d198c0caa66803116 | leagues/forms.py | leagues/forms.py | from django import forms
class LeagueForm(forms.Form):
league_name = forms.CharField(label = "Group name", max_length = 30)
max_size = forms.IntegerField(label = "Maximum participants", min_value = 0, max_value = 9999)
points_for_exact_guess = forms.IntegerField(label = "Points for exact guess", min_value ... | from django import forms
class LeagueForm(forms.Form):
league_name = forms.CharField(label = "Group name", max_length = 30)
max_size = forms.IntegerField(label = "Maximum participants", min_value = 0, max_value = 9999)
points_for_exact_guess = forms.IntegerField(label = "Points for exact guess", min_value ... | Make private checkbox not required | Make private checkbox not required
| Python | mit | leventebakos/football-ech,leventebakos/football-ech | from django import forms
class LeagueForm(forms.Form):
league_name = forms.CharField(label = "Group name", max_length = 30)
max_size = forms.IntegerField(label = "Maximum participants", min_value = 0, max_value = 9999)
points_for_exact_guess = forms.IntegerField(label = "Points for exact guess", min_value ... | from django import forms
class LeagueForm(forms.Form):
league_name = forms.CharField(label = "Group name", max_length = 30)
max_size = forms.IntegerField(label = "Maximum participants", min_value = 0, max_value = 9999)
points_for_exact_guess = forms.IntegerField(label = "Points for exact guess", min_value ... | <commit_before>from django import forms
class LeagueForm(forms.Form):
league_name = forms.CharField(label = "Group name", max_length = 30)
max_size = forms.IntegerField(label = "Maximum participants", min_value = 0, max_value = 9999)
points_for_exact_guess = forms.IntegerField(label = "Points for exact gue... | from django import forms
class LeagueForm(forms.Form):
league_name = forms.CharField(label = "Group name", max_length = 30)
max_size = forms.IntegerField(label = "Maximum participants", min_value = 0, max_value = 9999)
points_for_exact_guess = forms.IntegerField(label = "Points for exact guess", min_value ... | from django import forms
class LeagueForm(forms.Form):
league_name = forms.CharField(label = "Group name", max_length = 30)
max_size = forms.IntegerField(label = "Maximum participants", min_value = 0, max_value = 9999)
points_for_exact_guess = forms.IntegerField(label = "Points for exact guess", min_value ... | <commit_before>from django import forms
class LeagueForm(forms.Form):
league_name = forms.CharField(label = "Group name", max_length = 30)
max_size = forms.IntegerField(label = "Maximum participants", min_value = 0, max_value = 9999)
points_for_exact_guess = forms.IntegerField(label = "Points for exact gue... |
1a71d16e472df3005cedfeba60dd578dbfb4c0b5 | setup.py | setup.py | from setuptools import setup
from wsinfo import __version__
with open("README.rst", "r") as f:
long_description = f.read()
setup(name="wsinfo",
packages=["wsinfo"],
version=__version__,
description="Python package for simply retrieving information about a specific website.",
long_descripti... | from setuptools import setup
from wsinfo import __version__
with open("README.rst", "r") as f:
long_description = f.read()
long_description += "\n"
with open("CHANGES", "r") as f:
long_description += f.read()
setup(name="wsinfo",
packages=["wsinfo"],
version=__version__,
description="Pytho... | Write CHANGES at the end of README in PyPI | Add: Write CHANGES at the end of README in PyPI
| Python | mit | linusg/wsinfo | from setuptools import setup
from wsinfo import __version__
with open("README.rst", "r") as f:
long_description = f.read()
setup(name="wsinfo",
packages=["wsinfo"],
version=__version__,
description="Python package for simply retrieving information about a specific website.",
long_descripti... | from setuptools import setup
from wsinfo import __version__
with open("README.rst", "r") as f:
long_description = f.read()
long_description += "\n"
with open("CHANGES", "r") as f:
long_description += f.read()
setup(name="wsinfo",
packages=["wsinfo"],
version=__version__,
description="Pytho... | <commit_before>from setuptools import setup
from wsinfo import __version__
with open("README.rst", "r") as f:
long_description = f.read()
setup(name="wsinfo",
packages=["wsinfo"],
version=__version__,
description="Python package for simply retrieving information about a specific website.",
... | from setuptools import setup
from wsinfo import __version__
with open("README.rst", "r") as f:
long_description = f.read()
long_description += "\n"
with open("CHANGES", "r") as f:
long_description += f.read()
setup(name="wsinfo",
packages=["wsinfo"],
version=__version__,
description="Pytho... | from setuptools import setup
from wsinfo import __version__
with open("README.rst", "r") as f:
long_description = f.read()
setup(name="wsinfo",
packages=["wsinfo"],
version=__version__,
description="Python package for simply retrieving information about a specific website.",
long_descripti... | <commit_before>from setuptools import setup
from wsinfo import __version__
with open("README.rst", "r") as f:
long_description = f.read()
setup(name="wsinfo",
packages=["wsinfo"],
version=__version__,
description="Python package for simply retrieving information about a specific website.",
... |
8c23ad1877a0af91e1b9a8512aa7476852de205c | kombu_fernet/serializers/__init__.py | kombu_fernet/serializers/__init__.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals, absolute_import
import os
from cryptography.fernet import Fernet, InvalidToken
fernet = Fernet(os.environ['KOMBU_FERNET_KEY'])
fallback_fernet = None
try:
fallback_fernet = Fernet(os.environ['OLD_KOMBU_FERNET_KEY'])
except KeyError:
pass
def f... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals, absolute_import
import os
from cryptography.fernet import Fernet, MultiFernet
fernet = Fernet(os.environ['KOMBU_FERNET_KEY'])
fallback_fernet = None
try:
fallback_fernet = Fernet(os.environ['OLD_KOMBU_FERNET_KEY'])
except KeyError:
pass
else:
... | Use MultiFernet provided by cryptography lib | Use MultiFernet provided by cryptography lib
Closes #9
| Python | mit | heroku/kombu-fernet-serializers | # -*- coding: utf-8 -*-
from __future__ import unicode_literals, absolute_import
import os
from cryptography.fernet import Fernet, InvalidToken
fernet = Fernet(os.environ['KOMBU_FERNET_KEY'])
fallback_fernet = None
try:
fallback_fernet = Fernet(os.environ['OLD_KOMBU_FERNET_KEY'])
except KeyError:
pass
def f... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals, absolute_import
import os
from cryptography.fernet import Fernet, MultiFernet
fernet = Fernet(os.environ['KOMBU_FERNET_KEY'])
fallback_fernet = None
try:
fallback_fernet = Fernet(os.environ['OLD_KOMBU_FERNET_KEY'])
except KeyError:
pass
else:
... | <commit_before># -*- coding: utf-8 -*-
from __future__ import unicode_literals, absolute_import
import os
from cryptography.fernet import Fernet, InvalidToken
fernet = Fernet(os.environ['KOMBU_FERNET_KEY'])
fallback_fernet = None
try:
fallback_fernet = Fernet(os.environ['OLD_KOMBU_FERNET_KEY'])
except KeyError:
... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals, absolute_import
import os
from cryptography.fernet import Fernet, MultiFernet
fernet = Fernet(os.environ['KOMBU_FERNET_KEY'])
fallback_fernet = None
try:
fallback_fernet = Fernet(os.environ['OLD_KOMBU_FERNET_KEY'])
except KeyError:
pass
else:
... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals, absolute_import
import os
from cryptography.fernet import Fernet, InvalidToken
fernet = Fernet(os.environ['KOMBU_FERNET_KEY'])
fallback_fernet = None
try:
fallback_fernet = Fernet(os.environ['OLD_KOMBU_FERNET_KEY'])
except KeyError:
pass
def f... | <commit_before># -*- coding: utf-8 -*-
from __future__ import unicode_literals, absolute_import
import os
from cryptography.fernet import Fernet, InvalidToken
fernet = Fernet(os.environ['KOMBU_FERNET_KEY'])
fallback_fernet = None
try:
fallback_fernet = Fernet(os.environ['OLD_KOMBU_FERNET_KEY'])
except KeyError:
... |
0b8b438a0c8b204d05bab41dbe0d493a409cb809 | examples/flask_example/manage.py | examples/flask_example/manage.py | #!/usr/bin/env python
from flask.ext.script import Server, Manager, Shell
from flask.ext.evolution import Evolution
from example import app, db, models
evolution = Evolution(app)
manager = Manager(app)
manager.add_command('runserver', Server())
manager.add_command('shell', Shell(make_context=lambda: {
'app': ap... | #!/usr/bin/env python
from flask.ext.script import Server, Manager, Shell
from flask.ext.evolution import Evolution
from example import app, db, models
evolution = Evolution(app)
manager = Manager(app)
manager.add_command('runserver', Server())
manager.add_command('shell', Shell(make_context=lambda: {
'app': ap... | Comment on how to run migrations | Comment on how to run migrations
| Python | bsd-3-clause | python-social-auth/social-storage-sqlalchemy,mathspace/python-social-auth,clef/python-social-auth,falcon1kr/python-social-auth,fearlessspider/python-social-auth,imsparsh/python-social-auth,mark-adams/python-social-auth,mathspace/python-social-auth,python-social-auth/social-core,duoduo369/python-social-auth,mark-adams/p... | #!/usr/bin/env python
from flask.ext.script import Server, Manager, Shell
from flask.ext.evolution import Evolution
from example import app, db, models
evolution = Evolution(app)
manager = Manager(app)
manager.add_command('runserver', Server())
manager.add_command('shell', Shell(make_context=lambda: {
'app': ap... | #!/usr/bin/env python
from flask.ext.script import Server, Manager, Shell
from flask.ext.evolution import Evolution
from example import app, db, models
evolution = Evolution(app)
manager = Manager(app)
manager.add_command('runserver', Server())
manager.add_command('shell', Shell(make_context=lambda: {
'app': ap... | <commit_before>#!/usr/bin/env python
from flask.ext.script import Server, Manager, Shell
from flask.ext.evolution import Evolution
from example import app, db, models
evolution = Evolution(app)
manager = Manager(app)
manager.add_command('runserver', Server())
manager.add_command('shell', Shell(make_context=lambda: ... | #!/usr/bin/env python
from flask.ext.script import Server, Manager, Shell
from flask.ext.evolution import Evolution
from example import app, db, models
evolution = Evolution(app)
manager = Manager(app)
manager.add_command('runserver', Server())
manager.add_command('shell', Shell(make_context=lambda: {
'app': ap... | #!/usr/bin/env python
from flask.ext.script import Server, Manager, Shell
from flask.ext.evolution import Evolution
from example import app, db, models
evolution = Evolution(app)
manager = Manager(app)
manager.add_command('runserver', Server())
manager.add_command('shell', Shell(make_context=lambda: {
'app': ap... | <commit_before>#!/usr/bin/env python
from flask.ext.script import Server, Manager, Shell
from flask.ext.evolution import Evolution
from example import app, db, models
evolution = Evolution(app)
manager = Manager(app)
manager.add_command('runserver', Server())
manager.add_command('shell', Shell(make_context=lambda: ... |
e094def7ae5f7b59ef630c8952235782795e7803 | setup.py | setup.py | # -*- coding: utf-8 -*-
from setuptools import setup
setup(
name='Weitersager',
version='0.1',
description='A proxy to forward messages received via HTTP to to IRC',
author='Jochen Kupperschmidt',
author_email='[email protected]',
url='http://homework.nwsnet.de/',
)
| # -*- coding: utf-8 -*-
import codecs
from setuptools import setup
with codecs.open('README.rst', encoding='utf-8') as f:
long_description = f.read()
setup(
name='Weitersager',
version='0.1',
description='A proxy to forward messages received via HTTP to to IRC',
long_description=long_descripti... | Include README as long description. | Include README as long description.
| Python | mit | homeworkprod/weitersager | # -*- coding: utf-8 -*-
from setuptools import setup
setup(
name='Weitersager',
version='0.1',
description='A proxy to forward messages received via HTTP to to IRC',
author='Jochen Kupperschmidt',
author_email='[email protected]',
url='http://homework.nwsnet.de/',
)
Include README as long de... | # -*- coding: utf-8 -*-
import codecs
from setuptools import setup
with codecs.open('README.rst', encoding='utf-8') as f:
long_description = f.read()
setup(
name='Weitersager',
version='0.1',
description='A proxy to forward messages received via HTTP to to IRC',
long_description=long_descripti... | <commit_before># -*- coding: utf-8 -*-
from setuptools import setup
setup(
name='Weitersager',
version='0.1',
description='A proxy to forward messages received via HTTP to to IRC',
author='Jochen Kupperschmidt',
author_email='[email protected]',
url='http://homework.nwsnet.de/',
)
<commit_ms... | # -*- coding: utf-8 -*-
import codecs
from setuptools import setup
with codecs.open('README.rst', encoding='utf-8') as f:
long_description = f.read()
setup(
name='Weitersager',
version='0.1',
description='A proxy to forward messages received via HTTP to to IRC',
long_description=long_descripti... | # -*- coding: utf-8 -*-
from setuptools import setup
setup(
name='Weitersager',
version='0.1',
description='A proxy to forward messages received via HTTP to to IRC',
author='Jochen Kupperschmidt',
author_email='[email protected]',
url='http://homework.nwsnet.de/',
)
Include README as long de... | <commit_before># -*- coding: utf-8 -*-
from setuptools import setup
setup(
name='Weitersager',
version='0.1',
description='A proxy to forward messages received via HTTP to to IRC',
author='Jochen Kupperschmidt',
author_email='[email protected]',
url='http://homework.nwsnet.de/',
)
<commit_ms... |
82e2f670a7b109bac5e843b2beea6b010317ba54 | setup.py | setup.py | from setuptools import setup
REPO_URL = 'http://github.com/datasciencebr/serenata-toolbox'
setup(
author='Serenata de Amor',
author_email='[email protected]',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: OSI Approve... | from setuptools import setup
REPO_URL = 'http://github.com/datasciencebr/serenata-toolbox'
setup(
author='Serenata de Amor',
author_email='[email protected]',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: OSI Approve... | Add serenata_toolbox module to packages | Add serenata_toolbox module to packages
| Python | mit | datasciencebr/serenata-toolbox | from setuptools import setup
REPO_URL = 'http://github.com/datasciencebr/serenata-toolbox'
setup(
author='Serenata de Amor',
author_email='[email protected]',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: OSI Approve... | from setuptools import setup
REPO_URL = 'http://github.com/datasciencebr/serenata-toolbox'
setup(
author='Serenata de Amor',
author_email='[email protected]',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: OSI Approve... | <commit_before>from setuptools import setup
REPO_URL = 'http://github.com/datasciencebr/serenata-toolbox'
setup(
author='Serenata de Amor',
author_email='[email protected]',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License... | from setuptools import setup
REPO_URL = 'http://github.com/datasciencebr/serenata-toolbox'
setup(
author='Serenata de Amor',
author_email='[email protected]',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: OSI Approve... | from setuptools import setup
REPO_URL = 'http://github.com/datasciencebr/serenata-toolbox'
setup(
author='Serenata de Amor',
author_email='[email protected]',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: OSI Approve... | <commit_before>from setuptools import setup
REPO_URL = 'http://github.com/datasciencebr/serenata-toolbox'
setup(
author='Serenata de Amor',
author_email='[email protected]',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License... |
f0ac78b3bfc0f81f142e66030e1e822dacfafe14 | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
setup(name='ansi',
version='0.3.0',
description='ANSI cursor movement and graphics',
author='Wijnand Modderman-Lenstra',
author_email='[email protected]',
url='https://github.com/tehmaze/ansi/',
packages = ['ansi', 'ansi.colour']... | #!/usr/bin/env python
from distutils.core import setup
setup(name='ansi',
version='0.3.0',
description='ANSI cursor movement and graphics',
author='Wijnand Modderman-Lenstra',
author_email='[email protected]',
url='https://github.com/tehmaze/ansi/',
packages = ['ansi', 'ansi.colour']... | Include py.typed marker in package | Include py.typed marker in package
| Python | mit | tehmaze/ansi | #!/usr/bin/env python
from distutils.core import setup
setup(name='ansi',
version='0.3.0',
description='ANSI cursor movement and graphics',
author='Wijnand Modderman-Lenstra',
author_email='[email protected]',
url='https://github.com/tehmaze/ansi/',
packages = ['ansi', 'ansi.colour']... | #!/usr/bin/env python
from distutils.core import setup
setup(name='ansi',
version='0.3.0',
description='ANSI cursor movement and graphics',
author='Wijnand Modderman-Lenstra',
author_email='[email protected]',
url='https://github.com/tehmaze/ansi/',
packages = ['ansi', 'ansi.colour']... | <commit_before>#!/usr/bin/env python
from distutils.core import setup
setup(name='ansi',
version='0.3.0',
description='ANSI cursor movement and graphics',
author='Wijnand Modderman-Lenstra',
author_email='[email protected]',
url='https://github.com/tehmaze/ansi/',
packages = ['ansi',... | #!/usr/bin/env python
from distutils.core import setup
setup(name='ansi',
version='0.3.0',
description='ANSI cursor movement and graphics',
author='Wijnand Modderman-Lenstra',
author_email='[email protected]',
url='https://github.com/tehmaze/ansi/',
packages = ['ansi', 'ansi.colour']... | #!/usr/bin/env python
from distutils.core import setup
setup(name='ansi',
version='0.3.0',
description='ANSI cursor movement and graphics',
author='Wijnand Modderman-Lenstra',
author_email='[email protected]',
url='https://github.com/tehmaze/ansi/',
packages = ['ansi', 'ansi.colour']... | <commit_before>#!/usr/bin/env python
from distutils.core import setup
setup(name='ansi',
version='0.3.0',
description='ANSI cursor movement and graphics',
author='Wijnand Modderman-Lenstra',
author_email='[email protected]',
url='https://github.com/tehmaze/ansi/',
packages = ['ansi',... |
35f41aa03285180e380274ba95e882906f4cbbc8 | setup.py | setup.py | import os
import sys
import re
from setuptools import setup, find_packages
v = open(os.path.join(os.path.dirname(__file__), 'dogpile', 'cache', '__init__.py'))
VERSION = re.compile(r".*__version__ = '(.*?)'", re.S).match(v.read()).group(1)
v.close()
readme = os.path.join(os.path.dirname(__file__), 'README.rst')
set... | import os
import sys
import re
from setuptools import setup, find_packages
v = open(os.path.join(os.path.dirname(__file__), 'dogpile', 'cache', '__init__.py'))
VERSION = re.compile(r".*__version__ = '(.*?)'", re.S).match(v.read()).group(1)
v.close()
readme = os.path.join(os.path.dirname(__file__), 'README.rst')
set... | Add missing test Mako test dependency. | Add missing test Mako test dependency.
| Python | bsd-3-clause | thruflo/dogpile.cache,thruflo/dogpile.cache | import os
import sys
import re
from setuptools import setup, find_packages
v = open(os.path.join(os.path.dirname(__file__), 'dogpile', 'cache', '__init__.py'))
VERSION = re.compile(r".*__version__ = '(.*?)'", re.S).match(v.read()).group(1)
v.close()
readme = os.path.join(os.path.dirname(__file__), 'README.rst')
set... | import os
import sys
import re
from setuptools import setup, find_packages
v = open(os.path.join(os.path.dirname(__file__), 'dogpile', 'cache', '__init__.py'))
VERSION = re.compile(r".*__version__ = '(.*?)'", re.S).match(v.read()).group(1)
v.close()
readme = os.path.join(os.path.dirname(__file__), 'README.rst')
set... | <commit_before>import os
import sys
import re
from setuptools import setup, find_packages
v = open(os.path.join(os.path.dirname(__file__), 'dogpile', 'cache', '__init__.py'))
VERSION = re.compile(r".*__version__ = '(.*?)'", re.S).match(v.read()).group(1)
v.close()
readme = os.path.join(os.path.dirname(__file__), 'RE... | import os
import sys
import re
from setuptools import setup, find_packages
v = open(os.path.join(os.path.dirname(__file__), 'dogpile', 'cache', '__init__.py'))
VERSION = re.compile(r".*__version__ = '(.*?)'", re.S).match(v.read()).group(1)
v.close()
readme = os.path.join(os.path.dirname(__file__), 'README.rst')
set... | import os
import sys
import re
from setuptools import setup, find_packages
v = open(os.path.join(os.path.dirname(__file__), 'dogpile', 'cache', '__init__.py'))
VERSION = re.compile(r".*__version__ = '(.*?)'", re.S).match(v.read()).group(1)
v.close()
readme = os.path.join(os.path.dirname(__file__), 'README.rst')
set... | <commit_before>import os
import sys
import re
from setuptools import setup, find_packages
v = open(os.path.join(os.path.dirname(__file__), 'dogpile', 'cache', '__init__.py'))
VERSION = re.compile(r".*__version__ = '(.*?)'", re.S).match(v.read()).group(1)
v.close()
readme = os.path.join(os.path.dirname(__file__), 'RE... |
c46b7bb5d933ddcf9faa4028f1ea6b93399b516e | setup.py | setup.py | from setuptools import setup, find_packages
import os
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
NEWS = open(os.path.join(here, 'NEWS.txt')).read()
version = '0.7'
install_requires = [
"Sphinx >= 1.2",
"six",
]
setup(name='hieroglyph',
ve... | from setuptools import setup, find_packages
import os
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
NEWS = open(os.path.join(here, 'NEWS.txt')).read()
version = '0.7'
install_requires = [
"Sphinx >= 1.1",
"six",
]
setup(name='hieroglyph',
ve... | Change Sphinx dependency to 1.1 | Change Sphinx dependency to 1.1
According to @nyergler 1.1 should be sufficient, I hadn't thought to
check travis or tox's conf files for the information. | Python | bsd-3-clause | nyergler/hieroglyph,nyergler/hieroglyph,nyergler/hieroglyph,attakei/hieroglyph,nyergler/hieroglyph,attakei/hieroglyph,attakei/hieroglyph,attakei/hieroglyph | from setuptools import setup, find_packages
import os
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
NEWS = open(os.path.join(here, 'NEWS.txt')).read()
version = '0.7'
install_requires = [
"Sphinx >= 1.2",
"six",
]
setup(name='hieroglyph',
ve... | from setuptools import setup, find_packages
import os
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
NEWS = open(os.path.join(here, 'NEWS.txt')).read()
version = '0.7'
install_requires = [
"Sphinx >= 1.1",
"six",
]
setup(name='hieroglyph',
ve... | <commit_before>from setuptools import setup, find_packages
import os
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
NEWS = open(os.path.join(here, 'NEWS.txt')).read()
version = '0.7'
install_requires = [
"Sphinx >= 1.2",
"six",
]
setup(name='hierog... | from setuptools import setup, find_packages
import os
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
NEWS = open(os.path.join(here, 'NEWS.txt')).read()
version = '0.7'
install_requires = [
"Sphinx >= 1.1",
"six",
]
setup(name='hieroglyph',
ve... | from setuptools import setup, find_packages
import os
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
NEWS = open(os.path.join(here, 'NEWS.txt')).read()
version = '0.7'
install_requires = [
"Sphinx >= 1.2",
"six",
]
setup(name='hieroglyph',
ve... | <commit_before>from setuptools import setup, find_packages
import os
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
NEWS = open(os.path.join(here, 'NEWS.txt')).read()
version = '0.7'
install_requires = [
"Sphinx >= 1.2",
"six",
]
setup(name='hierog... |
dd5276a3cf434267b6a94647c07b55065efd37b0 | setup.py | setup.py | from setuptools import setup
import sys
sys.path.insert(0, 'src')
from rosdep2 import __version__
setup(name='rosdep',
version= __version__,
packages=['rosdep2', 'rosdep2.platforms'],
package_dir = {'':'src'},
# data_files=[('man/man1', ['doc/man/rosdep.1'])],
install_requires = ['rospkg... | from setuptools import setup
import sys
sys.path.insert(0, 'src')
from rosdep2 import __version__
setup(name='rosdep',
version= __version__,
packages=['rosdep2', 'rosdep2.platforms'],
package_dir = {'':'src'},
# data_files=[('man/man1', ['doc/man/rosdep.1'])],
install_requires = ['rospkg... | Add test deps on nose, mock. | Add test deps on nose, mock.
| Python | bsd-3-clause | alessandro-aglietti/rosdep,spaghetti-/rosdep,georgepar/rosdep,alessandro-aglietti/rosdep,wkentaro/rosdep,spaghetti-/rosdep,ros-infrastructure/rosdep,allenh1/rosdep,ros-infrastructure/rosdep,sorki/rosdep,georgepar/rosdep,sorki/rosdep,wkentaro/rosdep,aymanim/rosdep,allenh1/rosdep,aymanim/rosdep | from setuptools import setup
import sys
sys.path.insert(0, 'src')
from rosdep2 import __version__
setup(name='rosdep',
version= __version__,
packages=['rosdep2', 'rosdep2.platforms'],
package_dir = {'':'src'},
# data_files=[('man/man1', ['doc/man/rosdep.1'])],
install_requires = ['rospkg... | from setuptools import setup
import sys
sys.path.insert(0, 'src')
from rosdep2 import __version__
setup(name='rosdep',
version= __version__,
packages=['rosdep2', 'rosdep2.platforms'],
package_dir = {'':'src'},
# data_files=[('man/man1', ['doc/man/rosdep.1'])],
install_requires = ['rospkg... | <commit_before>from setuptools import setup
import sys
sys.path.insert(0, 'src')
from rosdep2 import __version__
setup(name='rosdep',
version= __version__,
packages=['rosdep2', 'rosdep2.platforms'],
package_dir = {'':'src'},
# data_files=[('man/man1', ['doc/man/rosdep.1'])],
install_requ... | from setuptools import setup
import sys
sys.path.insert(0, 'src')
from rosdep2 import __version__
setup(name='rosdep',
version= __version__,
packages=['rosdep2', 'rosdep2.platforms'],
package_dir = {'':'src'},
# data_files=[('man/man1', ['doc/man/rosdep.1'])],
install_requires = ['rospkg... | from setuptools import setup
import sys
sys.path.insert(0, 'src')
from rosdep2 import __version__
setup(name='rosdep',
version= __version__,
packages=['rosdep2', 'rosdep2.platforms'],
package_dir = {'':'src'},
# data_files=[('man/man1', ['doc/man/rosdep.1'])],
install_requires = ['rospkg... | <commit_before>from setuptools import setup
import sys
sys.path.insert(0, 'src')
from rosdep2 import __version__
setup(name='rosdep',
version= __version__,
packages=['rosdep2', 'rosdep2.platforms'],
package_dir = {'':'src'},
# data_files=[('man/man1', ['doc/man/rosdep.1'])],
install_requ... |
fc6a0edca3ae42cb3570ddf62c841282bb0229aa | integration/util.py | integration/util.py | from fabric.api import env
class Integration(object):
def setup(self):
env.host_string = "127.0.0.1"
| from fabric.api import env
class Integration(object):
def setup(self):
if not env.host_string: # Allow runtime selection
env.host_string = "127.0.0.1"
| Allow easy local exec of integration suite via eg -H | Allow easy local exec of integration suite via eg -H
| Python | bsd-2-clause | kmonsoor/fabric,haridsv/fabric,kxxoling/fabric,cgvarela/fabric,rane-hs/fabric-py3,tolbkni/fabric,jaraco/fabric,TarasRudnyk/fabric,cmattoon/fabric,raimon49/fabric,itoed/fabric,pashinin/fabric,ploxiln/fabric,elijah513/fabric,opavader/fabric,xLegoz/fabric,rbramwell/fabric,qinrong/fabric,bspink/fabric,hrubi/fabric,StackSto... | from fabric.api import env
class Integration(object):
def setup(self):
env.host_string = "127.0.0.1"
Allow easy local exec of integration suite via eg -H | from fabric.api import env
class Integration(object):
def setup(self):
if not env.host_string: # Allow runtime selection
env.host_string = "127.0.0.1"
| <commit_before>from fabric.api import env
class Integration(object):
def setup(self):
env.host_string = "127.0.0.1"
<commit_msg>Allow easy local exec of integration suite via eg -H<commit_after> | from fabric.api import env
class Integration(object):
def setup(self):
if not env.host_string: # Allow runtime selection
env.host_string = "127.0.0.1"
| from fabric.api import env
class Integration(object):
def setup(self):
env.host_string = "127.0.0.1"
Allow easy local exec of integration suite via eg -Hfrom fabric.api import env
class Integration(object):
def setup(self):
if not env.host_string: # Allow runtime selection
env.ho... | <commit_before>from fabric.api import env
class Integration(object):
def setup(self):
env.host_string = "127.0.0.1"
<commit_msg>Allow easy local exec of integration suite via eg -H<commit_after>from fabric.api import env
class Integration(object):
def setup(self):
if not env.host_string: # A... |
78bb3ecb5fe36b2964223a17e927d208b2087777 | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
setup(
name='vertigo',
version='0.1.2',
license='BSD',
author="Daniel Lepage",
author_email="[email protected]",
packages=['vertigo',],
long_description=open('README.rst').read(),
url='https://github.com/dplepage/vertigo',
cla... | #!/usr/bin/env python
from distutils.core import setup
setup(
name='vertigo',
version='0.1.2',
license='BSD',
author="Daniel Lepage",
author_email="[email protected]",
packages=['vertigo',],
long_description="""
=========================================
Vertigo: Some really simple graph ... | Add pypi description that's shorter than README.rst. | Add pypi description that's shorter than README.rst.
| Python | bsd-3-clause | dplepage/vertigo | #!/usr/bin/env python
from distutils.core import setup
setup(
name='vertigo',
version='0.1.2',
license='BSD',
author="Daniel Lepage",
author_email="[email protected]",
packages=['vertigo',],
long_description=open('README.rst').read(),
url='https://github.com/dplepage/vertigo',
cla... | #!/usr/bin/env python
from distutils.core import setup
setup(
name='vertigo',
version='0.1.2',
license='BSD',
author="Daniel Lepage",
author_email="[email protected]",
packages=['vertigo',],
long_description="""
=========================================
Vertigo: Some really simple graph ... | <commit_before>#!/usr/bin/env python
from distutils.core import setup
setup(
name='vertigo',
version='0.1.2',
license='BSD',
author="Daniel Lepage",
author_email="[email protected]",
packages=['vertigo',],
long_description=open('README.rst').read(),
url='https://github.com/dplepage/ve... | #!/usr/bin/env python
from distutils.core import setup
setup(
name='vertigo',
version='0.1.2',
license='BSD',
author="Daniel Lepage",
author_email="[email protected]",
packages=['vertigo',],
long_description="""
=========================================
Vertigo: Some really simple graph ... | #!/usr/bin/env python
from distutils.core import setup
setup(
name='vertigo',
version='0.1.2',
license='BSD',
author="Daniel Lepage",
author_email="[email protected]",
packages=['vertigo',],
long_description=open('README.rst').read(),
url='https://github.com/dplepage/vertigo',
cla... | <commit_before>#!/usr/bin/env python
from distutils.core import setup
setup(
name='vertigo',
version='0.1.2',
license='BSD',
author="Daniel Lepage",
author_email="[email protected]",
packages=['vertigo',],
long_description=open('README.rst').read(),
url='https://github.com/dplepage/ve... |
ca2506cea843be7f8a48929d4d177a982ab6f693 | setup.py | setup.py | import os
from setuptools import setup
def read(name):
return open(os.path.join(os.path.dirname(__file__), name), 'r').read()
setup(
name="kitsu.http",
version="0.0.7",
description="Low-level HTTP library for Python",
long_description=read('README'),
author="Alexey Borzenkov",
author_email... | import os
from setuptools import setup
def read(name):
return open(os.path.join(os.path.dirname(__file__), name), 'r').read()
setup(
name="kitsu.http",
version="0.0.7",
description="Low-level HTTP library for Python",
long_description=read('README'),
author="Alexey Borzenkov",
author_email... | Change url to point to github | Change url to point to github | Python | mit | snaury/kitsu.http,snaury/kitsu.http | import os
from setuptools import setup
def read(name):
return open(os.path.join(os.path.dirname(__file__), name), 'r').read()
setup(
name="kitsu.http",
version="0.0.7",
description="Low-level HTTP library for Python",
long_description=read('README'),
author="Alexey Borzenkov",
author_email... | import os
from setuptools import setup
def read(name):
return open(os.path.join(os.path.dirname(__file__), name), 'r').read()
setup(
name="kitsu.http",
version="0.0.7",
description="Low-level HTTP library for Python",
long_description=read('README'),
author="Alexey Borzenkov",
author_email... | <commit_before>import os
from setuptools import setup
def read(name):
return open(os.path.join(os.path.dirname(__file__), name), 'r').read()
setup(
name="kitsu.http",
version="0.0.7",
description="Low-level HTTP library for Python",
long_description=read('README'),
author="Alexey Borzenkov",
... | import os
from setuptools import setup
def read(name):
return open(os.path.join(os.path.dirname(__file__), name), 'r').read()
setup(
name="kitsu.http",
version="0.0.7",
description="Low-level HTTP library for Python",
long_description=read('README'),
author="Alexey Borzenkov",
author_email... | import os
from setuptools import setup
def read(name):
return open(os.path.join(os.path.dirname(__file__), name), 'r').read()
setup(
name="kitsu.http",
version="0.0.7",
description="Low-level HTTP library for Python",
long_description=read('README'),
author="Alexey Borzenkov",
author_email... | <commit_before>import os
from setuptools import setup
def read(name):
return open(os.path.join(os.path.dirname(__file__), name), 'r').read()
setup(
name="kitsu.http",
version="0.0.7",
description="Low-level HTTP library for Python",
long_description=read('README'),
author="Alexey Borzenkov",
... |
3d6185f8080906fbb19314bca634071be506292b | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='pycalico',
# Don't need a version until we publish to PIP or other forum.
# version='0.0.0',
description='A Python API to Calico',
# The project's main homepage.
url='https://github.com/projectcalico/libcalico/',
# Author details
... | from setuptools import setup, find_packages
setup(
name='pycalico',
# Don't need a version until we publish to PIP or other forum.
# version='0.0.0',
description='A Python API to Calico',
# The project's main homepage.
url='https://github.com/projectcalico/libcalico/',
# Author details
... | Add subprocess32 as package dependency | Add subprocess32 as package dependency | Python | apache-2.0 | L-MA/libcalico,alexhersh/libcalico,TrimBiggs/libcalico,projectcalico/libcalico,insequent/libcalico,tomdee/libcalico,djosborne/libcalico,caseydavenport/libcalico,plwhite/libcalico,Symmetric/libcalico | from setuptools import setup, find_packages
setup(
name='pycalico',
# Don't need a version until we publish to PIP or other forum.
# version='0.0.0',
description='A Python API to Calico',
# The project's main homepage.
url='https://github.com/projectcalico/libcalico/',
# Author details
... | from setuptools import setup, find_packages
setup(
name='pycalico',
# Don't need a version until we publish to PIP or other forum.
# version='0.0.0',
description='A Python API to Calico',
# The project's main homepage.
url='https://github.com/projectcalico/libcalico/',
# Author details
... | <commit_before>from setuptools import setup, find_packages
setup(
name='pycalico',
# Don't need a version until we publish to PIP or other forum.
# version='0.0.0',
description='A Python API to Calico',
# The project's main homepage.
url='https://github.com/projectcalico/libcalico/',
# ... | from setuptools import setup, find_packages
setup(
name='pycalico',
# Don't need a version until we publish to PIP or other forum.
# version='0.0.0',
description='A Python API to Calico',
# The project's main homepage.
url='https://github.com/projectcalico/libcalico/',
# Author details
... | from setuptools import setup, find_packages
setup(
name='pycalico',
# Don't need a version until we publish to PIP or other forum.
# version='0.0.0',
description='A Python API to Calico',
# The project's main homepage.
url='https://github.com/projectcalico/libcalico/',
# Author details
... | <commit_before>from setuptools import setup, find_packages
setup(
name='pycalico',
# Don't need a version until we publish to PIP or other forum.
# version='0.0.0',
description='A Python API to Calico',
# The project's main homepage.
url='https://github.com/projectcalico/libcalico/',
# ... |
189bf34b3e769181d82430f48b401c8900a9d99f | setup.py | setup.py | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
from aldryn_categories import __version__
# git tag '[version]'
# git push --tags origin master
# python setup.py sdist upload
# python setup.py bdist_wheel upload
setup(
name='aldryn-categories',
version=__version__,
url='https://github... | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
from aldryn_categories import __version__
# git tag '[version]'
# git push --tags origin master
# python setup.py sdist upload
# python setup.py bdist_wheel upload
setup(
name='aldryn-categories',
version=__version__,
url='https://github... | Update Development Status -> Stable | Update Development Status -> Stable
| Python | bsd-3-clause | aldryn/aldryn-categories,aldryn/aldryn-categories | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
from aldryn_categories import __version__
# git tag '[version]'
# git push --tags origin master
# python setup.py sdist upload
# python setup.py bdist_wheel upload
setup(
name='aldryn-categories',
version=__version__,
url='https://github... | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
from aldryn_categories import __version__
# git tag '[version]'
# git push --tags origin master
# python setup.py sdist upload
# python setup.py bdist_wheel upload
setup(
name='aldryn-categories',
version=__version__,
url='https://github... | <commit_before># -*- coding: utf-8 -*-
from setuptools import setup, find_packages
from aldryn_categories import __version__
# git tag '[version]'
# git push --tags origin master
# python setup.py sdist upload
# python setup.py bdist_wheel upload
setup(
name='aldryn-categories',
version=__version__,
url=... | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
from aldryn_categories import __version__
# git tag '[version]'
# git push --tags origin master
# python setup.py sdist upload
# python setup.py bdist_wheel upload
setup(
name='aldryn-categories',
version=__version__,
url='https://github... | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
from aldryn_categories import __version__
# git tag '[version]'
# git push --tags origin master
# python setup.py sdist upload
# python setup.py bdist_wheel upload
setup(
name='aldryn-categories',
version=__version__,
url='https://github... | <commit_before># -*- coding: utf-8 -*-
from setuptools import setup, find_packages
from aldryn_categories import __version__
# git tag '[version]'
# git push --tags origin master
# python setup.py sdist upload
# python setup.py bdist_wheel upload
setup(
name='aldryn-categories',
version=__version__,
url=... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.