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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c0549776224eaceda575c4eea37defa2acc0557b | setup.py | setup.py | import os
try:
from setuptools import setup
except:
from distutils.core import setup
setup(name = "clrsvsim",
version = "0.0.2",
description = "Color Genomics Structural Variant Simulator",
author = "Color Genomics",
author_email = "[email protected]",
url = "https://github.com/ColorGen... | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(name = "clrsvsim",
version = "0.0.2",
description = "Color Genomics Structural Variant Simulator",
author = "Color Genomics",
author_email = "[email protected]",
url = "https://github.com/Col... | Remove unneeded import, fix bare except | Remove unneeded import, fix bare except
The `os` module isn't needed, so we need not import it.
Additionally, a bare `except` clause is pretty much never desired, since
it includes all exceptions, including sigkills.
Instead, just check for an `ImportError`, since that's what we're really
trying to do: fall back on ... | Python | apache-2.0 | color/clrsvsim | import os
try:
from setuptools import setup
except:
from distutils.core import setup
setup(name = "clrsvsim",
version = "0.0.2",
description = "Color Genomics Structural Variant Simulator",
author = "Color Genomics",
author_email = "[email protected]",
url = "https://github.com/ColorGen... | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(name = "clrsvsim",
version = "0.0.2",
description = "Color Genomics Structural Variant Simulator",
author = "Color Genomics",
author_email = "[email protected]",
url = "https://github.com/Col... | <commit_before>import os
try:
from setuptools import setup
except:
from distutils.core import setup
setup(name = "clrsvsim",
version = "0.0.2",
description = "Color Genomics Structural Variant Simulator",
author = "Color Genomics",
author_email = "[email protected]",
url = "https://gith... | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(name = "clrsvsim",
version = "0.0.2",
description = "Color Genomics Structural Variant Simulator",
author = "Color Genomics",
author_email = "[email protected]",
url = "https://github.com/Col... | import os
try:
from setuptools import setup
except:
from distutils.core import setup
setup(name = "clrsvsim",
version = "0.0.2",
description = "Color Genomics Structural Variant Simulator",
author = "Color Genomics",
author_email = "[email protected]",
url = "https://github.com/ColorGen... | <commit_before>import os
try:
from setuptools import setup
except:
from distutils.core import setup
setup(name = "clrsvsim",
version = "0.0.2",
description = "Color Genomics Structural Variant Simulator",
author = "Color Genomics",
author_email = "[email protected]",
url = "https://gith... |
2d7be7f8344a928aecdb2bbfeb7531bb0c35aeee | setup.py | setup.py | from setuptools import setup
from mdtoc import __version__
long_description = "Adds table of contents to Markdown files"
setup(
name="mdtoc",
version=__version__,
description=long_description,
author="Scott Frazer",
author_email="[email protected]",
packages=["mdtoc"],
install_requ... | import os
from setuptools import setup
from mdtoc import __version__
setup(
name="mdtoc",
version=__version__,
description="Adds table of contents to Markdown files",
long_description=open(
os.path.join(os.path.abspath(os.path.dirname(__file__)), "README.md")
).read(),
author="Scott Fr... | Use a .md long_description for PyPI | Use a .md long_description for PyPI
| Python | mit | scottfrazer/mdtoc | from setuptools import setup
from mdtoc import __version__
long_description = "Adds table of contents to Markdown files"
setup(
name="mdtoc",
version=__version__,
description=long_description,
author="Scott Frazer",
author_email="[email protected]",
packages=["mdtoc"],
install_requ... | import os
from setuptools import setup
from mdtoc import __version__
setup(
name="mdtoc",
version=__version__,
description="Adds table of contents to Markdown files",
long_description=open(
os.path.join(os.path.abspath(os.path.dirname(__file__)), "README.md")
).read(),
author="Scott Fr... | <commit_before>from setuptools import setup
from mdtoc import __version__
long_description = "Adds table of contents to Markdown files"
setup(
name="mdtoc",
version=__version__,
description=long_description,
author="Scott Frazer",
author_email="[email protected]",
packages=["mdtoc"],
... | import os
from setuptools import setup
from mdtoc import __version__
setup(
name="mdtoc",
version=__version__,
description="Adds table of contents to Markdown files",
long_description=open(
os.path.join(os.path.abspath(os.path.dirname(__file__)), "README.md")
).read(),
author="Scott Fr... | from setuptools import setup
from mdtoc import __version__
long_description = "Adds table of contents to Markdown files"
setup(
name="mdtoc",
version=__version__,
description=long_description,
author="Scott Frazer",
author_email="[email protected]",
packages=["mdtoc"],
install_requ... | <commit_before>from setuptools import setup
from mdtoc import __version__
long_description = "Adds table of contents to Markdown files"
setup(
name="mdtoc",
version=__version__,
description=long_description,
author="Scott Frazer",
author_email="[email protected]",
packages=["mdtoc"],
... |
9a0de77615c943de4344b4c74d5d5114b8baf0ab | eggsclaim.py | eggsclaim.py | import signal
import sys
import serial
import sms
from xbee import XBee
egg_was_present = False
def signal_handler(signal, frame):
xbee.halt()
serial_port.close()
sys.exit(0)
def packet_received(packet):
samples = packet['samples'][0]
egg_is_present = True if 'dio-4' in samples else False
if... | import signal
import sys
import serial
import sms
from xbee import XBee
egg_was_present = False
def signal_handler(signal, frame):
xbee.halt()
serial_port.close()
sys.exit(0)
def packet_received(packet):
samples = packet['samples'][0]
egg_is_present = True if 'dio-4' in samples else False
if... | Rearrange conditions to make logic clearer | Rearrange conditions to make logic clearer
| Python | mit | jamespettigrew/eggsclaim | import signal
import sys
import serial
import sms
from xbee import XBee
egg_was_present = False
def signal_handler(signal, frame):
xbee.halt()
serial_port.close()
sys.exit(0)
def packet_received(packet):
samples = packet['samples'][0]
egg_is_present = True if 'dio-4' in samples else False
if... | import signal
import sys
import serial
import sms
from xbee import XBee
egg_was_present = False
def signal_handler(signal, frame):
xbee.halt()
serial_port.close()
sys.exit(0)
def packet_received(packet):
samples = packet['samples'][0]
egg_is_present = True if 'dio-4' in samples else False
if... | <commit_before>import signal
import sys
import serial
import sms
from xbee import XBee
egg_was_present = False
def signal_handler(signal, frame):
xbee.halt()
serial_port.close()
sys.exit(0)
def packet_received(packet):
samples = packet['samples'][0]
egg_is_present = True if 'dio-4' in samples els... | import signal
import sys
import serial
import sms
from xbee import XBee
egg_was_present = False
def signal_handler(signal, frame):
xbee.halt()
serial_port.close()
sys.exit(0)
def packet_received(packet):
samples = packet['samples'][0]
egg_is_present = True if 'dio-4' in samples else False
if... | import signal
import sys
import serial
import sms
from xbee import XBee
egg_was_present = False
def signal_handler(signal, frame):
xbee.halt()
serial_port.close()
sys.exit(0)
def packet_received(packet):
samples = packet['samples'][0]
egg_is_present = True if 'dio-4' in samples else False
if... | <commit_before>import signal
import sys
import serial
import sms
from xbee import XBee
egg_was_present = False
def signal_handler(signal, frame):
xbee.halt()
serial_port.close()
sys.exit(0)
def packet_received(packet):
samples = packet['samples'][0]
egg_is_present = True if 'dio-4' in samples els... |
e8c9c22c7c57ff2de8b9ef9e73ec8f339aa73fd7 | setup.py | setup.py | #!/usr/bin/env python
import os
import sys
if sys.version < '2.7':
print 'Python >= 2.7 required'
sys.exit(1)
from setuptools import setup
long_description = '''
A simple Python package for using Twitter search functionality
that is only available through the Twitter web interface
(such as searching for twee... | #!/usr/bin/env python
import os
import sys
if sys.version < '2.7':
print 'Python >= 2.7 required'
sys.exit(1)
from setuptools import setup
long_description = '''
A simple Python package for using Twitter search functionality
that is only available through the Twitter web interface
(such as searching for twee... | Increase version number to 0.1.1 (breaking API change) | Increase version number to 0.1.1 (breaking API change)
| Python | mit | ShinNoNoir/twitterwebsearch | #!/usr/bin/env python
import os
import sys
if sys.version < '2.7':
print 'Python >= 2.7 required'
sys.exit(1)
from setuptools import setup
long_description = '''
A simple Python package for using Twitter search functionality
that is only available through the Twitter web interface
(such as searching for twee... | #!/usr/bin/env python
import os
import sys
if sys.version < '2.7':
print 'Python >= 2.7 required'
sys.exit(1)
from setuptools import setup
long_description = '''
A simple Python package for using Twitter search functionality
that is only available through the Twitter web interface
(such as searching for twee... | <commit_before>#!/usr/bin/env python
import os
import sys
if sys.version < '2.7':
print 'Python >= 2.7 required'
sys.exit(1)
from setuptools import setup
long_description = '''
A simple Python package for using Twitter search functionality
that is only available through the Twitter web interface
(such as sea... | #!/usr/bin/env python
import os
import sys
if sys.version < '2.7':
print 'Python >= 2.7 required'
sys.exit(1)
from setuptools import setup
long_description = '''
A simple Python package for using Twitter search functionality
that is only available through the Twitter web interface
(such as searching for twee... | #!/usr/bin/env python
import os
import sys
if sys.version < '2.7':
print 'Python >= 2.7 required'
sys.exit(1)
from setuptools import setup
long_description = '''
A simple Python package for using Twitter search functionality
that is only available through the Twitter web interface
(such as searching for twee... | <commit_before>#!/usr/bin/env python
import os
import sys
if sys.version < '2.7':
print 'Python >= 2.7 required'
sys.exit(1)
from setuptools import setup
long_description = '''
A simple Python package for using Twitter search functionality
that is only available through the Twitter web interface
(such as sea... |
48418ac0fe75bbb331878b80d9d0903dde445838 | setup.py | setup.py | from distutils.core import setup
setup(
name='pyticketswitch',
version='1.6.1',
author='Matt Jared',
author_email='[email protected]',
packages=[
'pyticketswitch',
'pyticketswitch.test',
'pyticketswitch.interface_objects'
],
license='LICENSE.txt',
descript... | from distutils.core import setup
setup(
name='pyticketswitch',
version='1.6.1',
author='Ingresso',
author_email='[email protected]',
packages=[
'pyticketswitch',
'pyticketswitch.test',
'pyticketswitch.interface_objects'
],
license='LICENSE.txt',
description=... | Update author and email address | Update author and email address
| Python | mit | ingresso-group/pyticketswitch,ingtechteam/pyticketswitch,graingert/pyticketswitch | from distutils.core import setup
setup(
name='pyticketswitch',
version='1.6.1',
author='Matt Jared',
author_email='[email protected]',
packages=[
'pyticketswitch',
'pyticketswitch.test',
'pyticketswitch.interface_objects'
],
license='LICENSE.txt',
descript... | from distutils.core import setup
setup(
name='pyticketswitch',
version='1.6.1',
author='Ingresso',
author_email='[email protected]',
packages=[
'pyticketswitch',
'pyticketswitch.test',
'pyticketswitch.interface_objects'
],
license='LICENSE.txt',
description=... | <commit_before>from distutils.core import setup
setup(
name='pyticketswitch',
version='1.6.1',
author='Matt Jared',
author_email='[email protected]',
packages=[
'pyticketswitch',
'pyticketswitch.test',
'pyticketswitch.interface_objects'
],
license='LICENSE.txt... | from distutils.core import setup
setup(
name='pyticketswitch',
version='1.6.1',
author='Ingresso',
author_email='[email protected]',
packages=[
'pyticketswitch',
'pyticketswitch.test',
'pyticketswitch.interface_objects'
],
license='LICENSE.txt',
description=... | from distutils.core import setup
setup(
name='pyticketswitch',
version='1.6.1',
author='Matt Jared',
author_email='[email protected]',
packages=[
'pyticketswitch',
'pyticketswitch.test',
'pyticketswitch.interface_objects'
],
license='LICENSE.txt',
descript... | <commit_before>from distutils.core import setup
setup(
name='pyticketswitch',
version='1.6.1',
author='Matt Jared',
author_email='[email protected]',
packages=[
'pyticketswitch',
'pyticketswitch.test',
'pyticketswitch.interface_objects'
],
license='LICENSE.txt... |
5782d01fa95624c784c6298486caefbe527fb76f | setup.py | setup.py | from distutils.core import setup
from hal.version import __version__ as version
setup(
name='hal',
packages=['hal'],
version=version,
description='Command Line Assistant',
author='Anup Pokhrel',
author_email='[email protected]',
url='https://github.com/virtualanup/hal',
download_ur... | from distutils.core import setup
from hal.version import __version__ as version
setup(
name='hal-assistant',
packages=['hal'],
version=version,
description='Command Line Assistant',
author='Anup Pokhrel',
author_email='[email protected]',
url='https://github.com/virtualanup/hal',
d... | Change package name to hal-assistant | Change package name to hal-assistant
| Python | mit | virtualanup/hal | from distutils.core import setup
from hal.version import __version__ as version
setup(
name='hal',
packages=['hal'],
version=version,
description='Command Line Assistant',
author='Anup Pokhrel',
author_email='[email protected]',
url='https://github.com/virtualanup/hal',
download_ur... | from distutils.core import setup
from hal.version import __version__ as version
setup(
name='hal-assistant',
packages=['hal'],
version=version,
description='Command Line Assistant',
author='Anup Pokhrel',
author_email='[email protected]',
url='https://github.com/virtualanup/hal',
d... | <commit_before>from distutils.core import setup
from hal.version import __version__ as version
setup(
name='hal',
packages=['hal'],
version=version,
description='Command Line Assistant',
author='Anup Pokhrel',
author_email='[email protected]',
url='https://github.com/virtualanup/hal',
... | from distutils.core import setup
from hal.version import __version__ as version
setup(
name='hal-assistant',
packages=['hal'],
version=version,
description='Command Line Assistant',
author='Anup Pokhrel',
author_email='[email protected]',
url='https://github.com/virtualanup/hal',
d... | from distutils.core import setup
from hal.version import __version__ as version
setup(
name='hal',
packages=['hal'],
version=version,
description='Command Line Assistant',
author='Anup Pokhrel',
author_email='[email protected]',
url='https://github.com/virtualanup/hal',
download_ur... | <commit_before>from distutils.core import setup
from hal.version import __version__ as version
setup(
name='hal',
packages=['hal'],
version=version,
description='Command Line Assistant',
author='Anup Pokhrel',
author_email='[email protected]',
url='https://github.com/virtualanup/hal',
... |
caafe83bd35b0b82135be593b88ec9ed64bfb508 | setup.py | setup.py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name='OpenFisca-Senegal',
version='0.0.0',
author='OpenFisca Team',
author_email='[email protected]',
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"License :: OSI Approved... | #! /usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name='OpenFisca-Senegal',
version='0.0.0',
author='OpenFisca Team',
author_email='[email protected]',
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"License :: OSI Approved... | Upgrade openfisca core to v4 | Upgrade openfisca core to v4
| Python | agpl-3.0 | openfisca/senegal | #! /usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name='OpenFisca-Senegal',
version='0.0.0',
author='OpenFisca Team',
author_email='[email protected]',
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"License :: OSI Approved... | #! /usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name='OpenFisca-Senegal',
version='0.0.0',
author='OpenFisca Team',
author_email='[email protected]',
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"License :: OSI Approved... | <commit_before>#! /usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name='OpenFisca-Senegal',
version='0.0.0',
author='OpenFisca Team',
author_email='[email protected]',
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"License ... | #! /usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name='OpenFisca-Senegal',
version='0.0.0',
author='OpenFisca Team',
author_email='[email protected]',
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"License :: OSI Approved... | #! /usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name='OpenFisca-Senegal',
version='0.0.0',
author='OpenFisca Team',
author_email='[email protected]',
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"License :: OSI Approved... | <commit_before>#! /usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name='OpenFisca-Senegal',
version='0.0.0',
author='OpenFisca Team',
author_email='[email protected]',
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"License ... |
5d5f5b2924a238452a19c1035a4d2eee9c857ceb | setup.py | setup.py | #!/usr/bin/env python
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(
name='django-bleach',
version="0.1.0",
description='Easily use bleach with Django models and templates',
... | #!/usr/bin/env python
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(
name='django-bleach',
version="0.1.0",
description='Easily use bleach with Django models and templates',
... | Add bleach as a requirement | Add bleach as a requirement
| Python | bsd-2-clause | python-force/django-bleach | #!/usr/bin/env python
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(
name='django-bleach',
version="0.1.0",
description='Easily use bleach with Django models and templates',
... | #!/usr/bin/env python
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(
name='django-bleach',
version="0.1.0",
description='Easily use bleach with Django models and templates',
... | <commit_before>#!/usr/bin/env python
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(
name='django-bleach',
version="0.1.0",
description='Easily use bleach with Django models and... | #!/usr/bin/env python
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(
name='django-bleach',
version="0.1.0",
description='Easily use bleach with Django models and templates',
... | #!/usr/bin/env python
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(
name='django-bleach',
version="0.1.0",
description='Easily use bleach with Django models and templates',
... | <commit_before>#!/usr/bin/env python
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(
name='django-bleach',
version="0.1.0",
description='Easily use bleach with Django models and... |
fa6880c9a1da67097fb495339d1b62b3bcda854d | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='exchangerates',
version='0.1.01',
description="A module to make it easier to handle historical exchange rates",
long_description="",
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
... | from setuptools import setup, find_packages
setup(
name='exchangerates',
version='0.1.2',
description="A module to make it easier to handle historical exchange rates",
long_description="",
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
... | Use a different version number | Use a different version number
| Python | mit | markbrough/exchangerates | from setuptools import setup, find_packages
setup(
name='exchangerates',
version='0.1.01',
description="A module to make it easier to handle historical exchange rates",
long_description="",
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
... | from setuptools import setup, find_packages
setup(
name='exchangerates',
version='0.1.2',
description="A module to make it easier to handle historical exchange rates",
long_description="",
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
... | <commit_before>from setuptools import setup, find_packages
setup(
name='exchangerates',
version='0.1.01',
description="A module to make it easier to handle historical exchange rates",
long_description="",
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: ... | from setuptools import setup, find_packages
setup(
name='exchangerates',
version='0.1.2',
description="A module to make it easier to handle historical exchange rates",
long_description="",
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
... | from setuptools import setup, find_packages
setup(
name='exchangerates',
version='0.1.01',
description="A module to make it easier to handle historical exchange rates",
long_description="",
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
... | <commit_before>from setuptools import setup, find_packages
setup(
name='exchangerates',
version='0.1.01',
description="A module to make it easier to handle historical exchange rates",
long_description="",
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: ... |
a22bdc548940218c408069218c4351941c68d296 | setup.py | setup.py | """
Flask-InfluxDB
"""
from setuptools import setup
setup(
name="Flask-InfluxDB",
version="0.3",
url="http://github.com/btashton/flask-influxdb",
license="BSD",
author="Brennan Ashton",
author_email="[email protected]",
description="Flask bindings for the InfluxDB time series database",
... | """
Flask-InfluxDB
"""
from setuptools import setup
setup(
name="Flask-InfluxDB",
version="0.3.1",
url="http://github.com/btashton/flask-influxdb",
license="BSD",
author="Brennan Ashton",
author_email="[email protected]",
description="Flask bindings for the InfluxDB time series database"... | Fix packaging issue in 0.3 release | Fix packaging issue in 0.3 release
Signed-off-by: Brennan Ashton <[email protected]>
| Python | bsd-3-clause | Ombitron/flask-influxdb,Ombitron/flask-influxdb | """
Flask-InfluxDB
"""
from setuptools import setup
setup(
name="Flask-InfluxDB",
version="0.3",
url="http://github.com/btashton/flask-influxdb",
license="BSD",
author="Brennan Ashton",
author_email="[email protected]",
description="Flask bindings for the InfluxDB time series database",
... | """
Flask-InfluxDB
"""
from setuptools import setup
setup(
name="Flask-InfluxDB",
version="0.3.1",
url="http://github.com/btashton/flask-influxdb",
license="BSD",
author="Brennan Ashton",
author_email="[email protected]",
description="Flask bindings for the InfluxDB time series database"... | <commit_before>"""
Flask-InfluxDB
"""
from setuptools import setup
setup(
name="Flask-InfluxDB",
version="0.3",
url="http://github.com/btashton/flask-influxdb",
license="BSD",
author="Brennan Ashton",
author_email="[email protected]",
description="Flask bindings for the InfluxDB time ser... | """
Flask-InfluxDB
"""
from setuptools import setup
setup(
name="Flask-InfluxDB",
version="0.3.1",
url="http://github.com/btashton/flask-influxdb",
license="BSD",
author="Brennan Ashton",
author_email="[email protected]",
description="Flask bindings for the InfluxDB time series database"... | """
Flask-InfluxDB
"""
from setuptools import setup
setup(
name="Flask-InfluxDB",
version="0.3",
url="http://github.com/btashton/flask-influxdb",
license="BSD",
author="Brennan Ashton",
author_email="[email protected]",
description="Flask bindings for the InfluxDB time series database",
... | <commit_before>"""
Flask-InfluxDB
"""
from setuptools import setup
setup(
name="Flask-InfluxDB",
version="0.3",
url="http://github.com/btashton/flask-influxdb",
license="BSD",
author="Brennan Ashton",
author_email="[email protected]",
description="Flask bindings for the InfluxDB time ser... |
56a7f8aac203d2d0d685c0472d74090dc2e4da0c | setup.py | setup.py | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import sys, os
version = '0.1.9.dev'
setup(name='testdroid',
version=version,
description="Testdroid API client for Python",
long_description="""\
Testdroid API client for Python""",
classifiers=['Operating System :: OS Indepe... | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import sys, os
version = '0.1.9.dev'
setup(name='testdroid',
version=version,
description="Testdroid API client for Python",
long_description="""\
Testdroid API client for Python""",
classifiers=['Operating System :: OS Indepe... | Fix typo from authors field | Fix typo from authors field
| Python | apache-2.0 | aknackiron/testdroid-api-client-python,bitbar/testdroid-api-client-python,teppomalinen/testdroid-api-client-python | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import sys, os
version = '0.1.9.dev'
setup(name='testdroid',
version=version,
description="Testdroid API client for Python",
long_description="""\
Testdroid API client for Python""",
classifiers=['Operating System :: OS Indepe... | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import sys, os
version = '0.1.9.dev'
setup(name='testdroid',
version=version,
description="Testdroid API client for Python",
long_description="""\
Testdroid API client for Python""",
classifiers=['Operating System :: OS Indepe... | <commit_before># -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import sys, os
version = '0.1.9.dev'
setup(name='testdroid',
version=version,
description="Testdroid API client for Python",
long_description="""\
Testdroid API client for Python""",
classifiers=['Operating Syst... | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import sys, os
version = '0.1.9.dev'
setup(name='testdroid',
version=version,
description="Testdroid API client for Python",
long_description="""\
Testdroid API client for Python""",
classifiers=['Operating System :: OS Indepe... | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import sys, os
version = '0.1.9.dev'
setup(name='testdroid',
version=version,
description="Testdroid API client for Python",
long_description="""\
Testdroid API client for Python""",
classifiers=['Operating System :: OS Indepe... | <commit_before># -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import sys, os
version = '0.1.9.dev'
setup(name='testdroid',
version=version,
description="Testdroid API client for Python",
long_description="""\
Testdroid API client for Python""",
classifiers=['Operating Syst... |
cccca9c2feba5cbcb439f6d829e1e930819cb9c1 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
tests_require = []
setup(
name='ashlar',
version='0.0.2',
description='Define and validate schemas for metadata for geotemporal event records',
author='Azavea, Inc.',
author_email='[email protected]',
keywords='gis jsonschema',
... | #!/usr/bin/env python
from setuptools import setup, find_packages
tests_require = []
setup(
name='ashlar',
version='0.0.2',
description='Define and validate schemas for metadata for geotemporal event records',
author='Azavea, Inc.',
author_email='[email protected]',
keywords='gis jsonschema',
... | Update djsonb, and add pytz | Update djsonb, and add pytz
| Python | mit | azavea/ashlar,flibbertigibbet/ashlar,azavea/ashlar,flibbertigibbet/ashlar | #!/usr/bin/env python
from setuptools import setup, find_packages
tests_require = []
setup(
name='ashlar',
version='0.0.2',
description='Define and validate schemas for metadata for geotemporal event records',
author='Azavea, Inc.',
author_email='[email protected]',
keywords='gis jsonschema',
... | #!/usr/bin/env python
from setuptools import setup, find_packages
tests_require = []
setup(
name='ashlar',
version='0.0.2',
description='Define and validate schemas for metadata for geotemporal event records',
author='Azavea, Inc.',
author_email='[email protected]',
keywords='gis jsonschema',
... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
tests_require = []
setup(
name='ashlar',
version='0.0.2',
description='Define and validate schemas for metadata for geotemporal event records',
author='Azavea, Inc.',
author_email='[email protected]',
keywords='gis... | #!/usr/bin/env python
from setuptools import setup, find_packages
tests_require = []
setup(
name='ashlar',
version='0.0.2',
description='Define and validate schemas for metadata for geotemporal event records',
author='Azavea, Inc.',
author_email='[email protected]',
keywords='gis jsonschema',
... | #!/usr/bin/env python
from setuptools import setup, find_packages
tests_require = []
setup(
name='ashlar',
version='0.0.2',
description='Define and validate schemas for metadata for geotemporal event records',
author='Azavea, Inc.',
author_email='[email protected]',
keywords='gis jsonschema',
... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
tests_require = []
setup(
name='ashlar',
version='0.0.2',
description='Define and validate schemas for metadata for geotemporal event records',
author='Azavea, Inc.',
author_email='[email protected]',
keywords='gis... |
3c8cea52ba0b4d6aadf34f1323cb54bf0238f394 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
import re
# get version from __init__.py
INITFILE = "toytree/__init__.py"
CUR_VERSION = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
open(INITFILE, "r").read(),
re.M).group(1)
# run setup
setup(
name="to... | #!/usr/bin/env python
from setuptools import setup, find_packages
import re
# get version from __init__.py
INITFILE = "toytree/__init__.py"
CUR_VERSION = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
open(INITFILE, "r").read(),
re.M).group(1)
# run setup
setup(
name="to... | Change readme to md to match. | Change readme to md to match. | Python | bsd-3-clause | eaton-lab/toytree | #!/usr/bin/env python
from setuptools import setup, find_packages
import re
# get version from __init__.py
INITFILE = "toytree/__init__.py"
CUR_VERSION = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
open(INITFILE, "r").read(),
re.M).group(1)
# run setup
setup(
name="to... | #!/usr/bin/env python
from setuptools import setup, find_packages
import re
# get version from __init__.py
INITFILE = "toytree/__init__.py"
CUR_VERSION = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
open(INITFILE, "r").read(),
re.M).group(1)
# run setup
setup(
name="to... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
import re
# get version from __init__.py
INITFILE = "toytree/__init__.py"
CUR_VERSION = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
open(INITFILE, "r").read(),
re.M).group(1)
# run setup
setu... | #!/usr/bin/env python
from setuptools import setup, find_packages
import re
# get version from __init__.py
INITFILE = "toytree/__init__.py"
CUR_VERSION = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
open(INITFILE, "r").read(),
re.M).group(1)
# run setup
setup(
name="to... | #!/usr/bin/env python
from setuptools import setup, find_packages
import re
# get version from __init__.py
INITFILE = "toytree/__init__.py"
CUR_VERSION = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
open(INITFILE, "r").read(),
re.M).group(1)
# run setup
setup(
name="to... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
import re
# get version from __init__.py
INITFILE = "toytree/__init__.py"
CUR_VERSION = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
open(INITFILE, "r").read(),
re.M).group(1)
# run setup
setu... |
9cfa095f5f2aa0a62afc0572eb3605e81d607e10 | setup.py | setup.py | from setuptools import setup
from kafka_info import __version__
setup(
name="kafka_info",
version=__version__,
author="Federico Giraud",
author_email="[email protected]",
description="Shows kafka cluster information and metrics",
packages=["kafka_info", "kafka_info.utils"],
data_files=[("b... | from setuptools import setup
from kafka_info import __version__
setup(
name="kafka_info",
version=__version__,
author="Federico Giraud",
author_email="[email protected]",
description="Shows kafka cluster information and metrics",
packages=["kafka_info", "kafka_info.utils", "kafka_info.commands... | Fix package, bump to 0.1.3 | Fix package, bump to 0.1.3
| Python | apache-2.0 | anthonysandrin/kafka-utils,Yelp/kafka-utils,anthonysandrin/kafka-utils,Yelp/kafka-utils | from setuptools import setup
from kafka_info import __version__
setup(
name="kafka_info",
version=__version__,
author="Federico Giraud",
author_email="[email protected]",
description="Shows kafka cluster information and metrics",
packages=["kafka_info", "kafka_info.utils"],
data_files=[("b... | from setuptools import setup
from kafka_info import __version__
setup(
name="kafka_info",
version=__version__,
author="Federico Giraud",
author_email="[email protected]",
description="Shows kafka cluster information and metrics",
packages=["kafka_info", "kafka_info.utils", "kafka_info.commands... | <commit_before>from setuptools import setup
from kafka_info import __version__
setup(
name="kafka_info",
version=__version__,
author="Federico Giraud",
author_email="[email protected]",
description="Shows kafka cluster information and metrics",
packages=["kafka_info", "kafka_info.utils"],
... | from setuptools import setup
from kafka_info import __version__
setup(
name="kafka_info",
version=__version__,
author="Federico Giraud",
author_email="[email protected]",
description="Shows kafka cluster information and metrics",
packages=["kafka_info", "kafka_info.utils", "kafka_info.commands... | from setuptools import setup
from kafka_info import __version__
setup(
name="kafka_info",
version=__version__,
author="Federico Giraud",
author_email="[email protected]",
description="Shows kafka cluster information and metrics",
packages=["kafka_info", "kafka_info.utils"],
data_files=[("b... | <commit_before>from setuptools import setup
from kafka_info import __version__
setup(
name="kafka_info",
version=__version__,
author="Federico Giraud",
author_email="[email protected]",
description="Shows kafka cluster information and metrics",
packages=["kafka_info", "kafka_info.utils"],
... |
5a7bf12879c637f72c78d5f0a3e45915dd08711a | setup.py | setup.py | #!/usr/bin/env python
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist bdist_wininst upload -r pypi')
sys.exit()
with open('README.rst') as f:
readme = f.read()
with open('LI... | #!/usr/bin/env python
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist bdist_wininst upload -r pypi')
sys.exit()
with open('README.rst') as f:
readme = f.read()
with open('LI... | Add django-filter to the required packages | Add django-filter to the required packages
| Python | mit | danxshap/django-rest-surveys | #!/usr/bin/env python
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist bdist_wininst upload -r pypi')
sys.exit()
with open('README.rst') as f:
readme = f.read()
with open('LI... | #!/usr/bin/env python
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist bdist_wininst upload -r pypi')
sys.exit()
with open('README.rst') as f:
readme = f.read()
with open('LI... | <commit_before>#!/usr/bin/env python
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist bdist_wininst upload -r pypi')
sys.exit()
with open('README.rst') as f:
readme = f.read(... | #!/usr/bin/env python
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist bdist_wininst upload -r pypi')
sys.exit()
with open('README.rst') as f:
readme = f.read()
with open('LI... | #!/usr/bin/env python
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist bdist_wininst upload -r pypi')
sys.exit()
with open('README.rst') as f:
readme = f.read()
with open('LI... | <commit_before>#!/usr/bin/env python
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist bdist_wininst upload -r pypi')
sys.exit()
with open('README.rst') as f:
readme = f.read(... |
c36d6b17be66c0dfd0a540205b24b22b97739fb9 | setup.py | setup.py | from setuptools import setup
setup(
name='PyFVCOM',
packages=['PyFVCOM'],
version='2.1.0',
description=("PyFVCOM is a collection of various tools and utilities which can be used to extract, analyse and plot input and output files from FVCOM."),
author='Pierre Cazenave',
author_email='[email protected]... | from setuptools import setup
version = '2.1.0'
setup(name='PyFVCOM',
packages=['PyFVCOM'],
version=version,
description=("PyFVCOM is a collection of various tools and utilities which can be used to extract, analyse and plot input and output files from FVCOM."),
author='Pierre Cazenave',
... | Fix formatting and define the version up front. | Fix formatting and define the version up front.
| Python | mit | pwcazenave/PyFVCOM | from setuptools import setup
setup(
name='PyFVCOM',
packages=['PyFVCOM'],
version='2.1.0',
description=("PyFVCOM is a collection of various tools and utilities which can be used to extract, analyse and plot input and output files from FVCOM."),
author='Pierre Cazenave',
author_email='[email protected]... | from setuptools import setup
version = '2.1.0'
setup(name='PyFVCOM',
packages=['PyFVCOM'],
version=version,
description=("PyFVCOM is a collection of various tools and utilities which can be used to extract, analyse and plot input and output files from FVCOM."),
author='Pierre Cazenave',
... | <commit_before>from setuptools import setup
setup(
name='PyFVCOM',
packages=['PyFVCOM'],
version='2.1.0',
description=("PyFVCOM is a collection of various tools and utilities which can be used to extract, analyse and plot input and output files from FVCOM."),
author='Pierre Cazenave',
author_em... | from setuptools import setup
version = '2.1.0'
setup(name='PyFVCOM',
packages=['PyFVCOM'],
version=version,
description=("PyFVCOM is a collection of various tools and utilities which can be used to extract, analyse and plot input and output files from FVCOM."),
author='Pierre Cazenave',
... | from setuptools import setup
setup(
name='PyFVCOM',
packages=['PyFVCOM'],
version='2.1.0',
description=("PyFVCOM is a collection of various tools and utilities which can be used to extract, analyse and plot input and output files from FVCOM."),
author='Pierre Cazenave',
author_email='[email protected]... | <commit_before>from setuptools import setup
setup(
name='PyFVCOM',
packages=['PyFVCOM'],
version='2.1.0',
description=("PyFVCOM is a collection of various tools and utilities which can be used to extract, analyse and plot input and output files from FVCOM."),
author='Pierre Cazenave',
author_em... |
c1218917e6169c9eaaf821f96610c1e9e6d81862 | setup.py | setup.py | from setuptools import setup
setup(
name = 'tomso',
packages = ['tomso'],
version = '0.0.7',
description = 'Tools for Modelling Stars and their Oscillations',
author = 'Warrick Ball',
author_email = '[email protected]',
url = 'https://github.com/warrickball/tomso',
download_url = 'htt... | from setuptools import setup
setup(
name = 'tomso',
packages = ['tomso'],
version = '0.0.7',
description = 'Tools for Modelling Stars and their Oscillations',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
author = 'Warrick Ball',
author_email ... | Use README.md for PyPI description | Use README.md for PyPI description
| Python | mit | warrickball/tomso | from setuptools import setup
setup(
name = 'tomso',
packages = ['tomso'],
version = '0.0.7',
description = 'Tools for Modelling Stars and their Oscillations',
author = 'Warrick Ball',
author_email = '[email protected]',
url = 'https://github.com/warrickball/tomso',
download_url = 'htt... | from setuptools import setup
setup(
name = 'tomso',
packages = ['tomso'],
version = '0.0.7',
description = 'Tools for Modelling Stars and their Oscillations',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
author = 'Warrick Ball',
author_email ... | <commit_before>from setuptools import setup
setup(
name = 'tomso',
packages = ['tomso'],
version = '0.0.7',
description = 'Tools for Modelling Stars and their Oscillations',
author = 'Warrick Ball',
author_email = '[email protected]',
url = 'https://github.com/warrickball/tomso',
down... | from setuptools import setup
setup(
name = 'tomso',
packages = ['tomso'],
version = '0.0.7',
description = 'Tools for Modelling Stars and their Oscillations',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
author = 'Warrick Ball',
author_email ... | from setuptools import setup
setup(
name = 'tomso',
packages = ['tomso'],
version = '0.0.7',
description = 'Tools for Modelling Stars and their Oscillations',
author = 'Warrick Ball',
author_email = '[email protected]',
url = 'https://github.com/warrickball/tomso',
download_url = 'htt... | <commit_before>from setuptools import setup
setup(
name = 'tomso',
packages = ['tomso'],
version = '0.0.7',
description = 'Tools for Modelling Stars and their Oscillations',
author = 'Warrick Ball',
author_email = '[email protected]',
url = 'https://github.com/warrickball/tomso',
down... |
80d4cd9008d70664e7981a5e6018565d6b63d07a | setup.py | setup.py | from distutils.core import setup
setup(
name='udiskie',
version='0.3.9',
description='Removable disk automounter for udisks',
author='Byron Clark',
author_email='[email protected]',
url='http://bitbucket.org/byronclark/udiskie',
license='MIT',
packages=[
'udiskie',
]... | from distutils.core import setup
setup(
name='udiskie',
version='0.3.10',
description='Removable disk automounter for udisks',
author='Byron Clark',
author_email='[email protected]',
url='http://bitbucket.org/byronclark/udiskie',
license='MIT',
packages=[
'udiskie',
... | Prepare for next development cycle. | Prepare for next development cycle.
| Python | mit | coldfix/udiskie,pstray/udiskie,pstray/udiskie,khardix/udiskie,coldfix/udiskie,mathstuf/udiskie | from distutils.core import setup
setup(
name='udiskie',
version='0.3.9',
description='Removable disk automounter for udisks',
author='Byron Clark',
author_email='[email protected]',
url='http://bitbucket.org/byronclark/udiskie',
license='MIT',
packages=[
'udiskie',
]... | from distutils.core import setup
setup(
name='udiskie',
version='0.3.10',
description='Removable disk automounter for udisks',
author='Byron Clark',
author_email='[email protected]',
url='http://bitbucket.org/byronclark/udiskie',
license='MIT',
packages=[
'udiskie',
... | <commit_before>from distutils.core import setup
setup(
name='udiskie',
version='0.3.9',
description='Removable disk automounter for udisks',
author='Byron Clark',
author_email='[email protected]',
url='http://bitbucket.org/byronclark/udiskie',
license='MIT',
packages=[
'... | from distutils.core import setup
setup(
name='udiskie',
version='0.3.10',
description='Removable disk automounter for udisks',
author='Byron Clark',
author_email='[email protected]',
url='http://bitbucket.org/byronclark/udiskie',
license='MIT',
packages=[
'udiskie',
... | from distutils.core import setup
setup(
name='udiskie',
version='0.3.9',
description='Removable disk automounter for udisks',
author='Byron Clark',
author_email='[email protected]',
url='http://bitbucket.org/byronclark/udiskie',
license='MIT',
packages=[
'udiskie',
]... | <commit_before>from distutils.core import setup
setup(
name='udiskie',
version='0.3.9',
description='Removable disk automounter for udisks',
author='Byron Clark',
author_email='[email protected]',
url='http://bitbucket.org/byronclark/udiskie',
license='MIT',
packages=[
'... |
3e04c7e86d92785ba07f30ed2c0ec4eb575d6218 | setup.py | setup.py | from setuptools import setup, find_packages
import sys, os
setup(name='cc.license',
version='0.01',
description="License selection based on ccREL-based metadata.",
classifiers=[],
keywords='',
author='Creative Commons',
author_email='[email protected]',
url='http://... | from setuptools import setup, find_packages
import sys, os
setup(name='cc.license',
version='0.02',
description="License selection based on ccREL-based metadata.",
classifiers=[],
keywords='',
author='Creative Commons',
author_email='[email protected]',
url='http://... | Increment minor version number for new release (v0.02). | Increment minor version number for new release (v0.02).
| Python | mit | creativecommons/cc.license,creativecommons/cc.license | from setuptools import setup, find_packages
import sys, os
setup(name='cc.license',
version='0.01',
description="License selection based on ccREL-based metadata.",
classifiers=[],
keywords='',
author='Creative Commons',
author_email='[email protected]',
url='http://... | from setuptools import setup, find_packages
import sys, os
setup(name='cc.license',
version='0.02',
description="License selection based on ccREL-based metadata.",
classifiers=[],
keywords='',
author='Creative Commons',
author_email='[email protected]',
url='http://... | <commit_before>from setuptools import setup, find_packages
import sys, os
setup(name='cc.license',
version='0.01',
description="License selection based on ccREL-based metadata.",
classifiers=[],
keywords='',
author='Creative Commons',
author_email='[email protected]',
... | from setuptools import setup, find_packages
import sys, os
setup(name='cc.license',
version='0.02',
description="License selection based on ccREL-based metadata.",
classifiers=[],
keywords='',
author='Creative Commons',
author_email='[email protected]',
url='http://... | from setuptools import setup, find_packages
import sys, os
setup(name='cc.license',
version='0.01',
description="License selection based on ccREL-based metadata.",
classifiers=[],
keywords='',
author='Creative Commons',
author_email='[email protected]',
url='http://... | <commit_before>from setuptools import setup, find_packages
import sys, os
setup(name='cc.license',
version='0.01',
description="License selection based on ccREL-based metadata.",
classifiers=[],
keywords='',
author='Creative Commons',
author_email='[email protected]',
... |
a1208aeffb57e16f49007f86b144ab6d576cbd0d | setup.py | setup.py | #! /usr/bin/env python
# coding: utf-8
from setuptools import find_packages, setup
setup(name='egoio',
author='NEXT ENERGY, Reiner Lemoine Institut gGmbH, ZNES',
author_email='[email protected]',
description='ego input/output repository',
version='0.3.0',
url='https://github.... | #! /usr/bin/env python
# coding: utf-8
from setuptools import find_packages, setup
setup(name='egoio',
author='NEXT ENERGY, Reiner Lemoine Institut gGmbH, ZNES',
author_email='[email protected]',
description='ego input/output repository',
version='0.3.0',
url='https://github.... | Update SQLAlchemy and Geoalchemy2 version range | Update SQLAlchemy and Geoalchemy2 version range
| Python | agpl-3.0 | openego/ego.io,openego/ego.io | #! /usr/bin/env python
# coding: utf-8
from setuptools import find_packages, setup
setup(name='egoio',
author='NEXT ENERGY, Reiner Lemoine Institut gGmbH, ZNES',
author_email='[email protected]',
description='ego input/output repository',
version='0.3.0',
url='https://github.... | #! /usr/bin/env python
# coding: utf-8
from setuptools import find_packages, setup
setup(name='egoio',
author='NEXT ENERGY, Reiner Lemoine Institut gGmbH, ZNES',
author_email='[email protected]',
description='ego input/output repository',
version='0.3.0',
url='https://github.... | <commit_before>#! /usr/bin/env python
# coding: utf-8
from setuptools import find_packages, setup
setup(name='egoio',
author='NEXT ENERGY, Reiner Lemoine Institut gGmbH, ZNES',
author_email='[email protected]',
description='ego input/output repository',
version='0.3.0',
url='... | #! /usr/bin/env python
# coding: utf-8
from setuptools import find_packages, setup
setup(name='egoio',
author='NEXT ENERGY, Reiner Lemoine Institut gGmbH, ZNES',
author_email='[email protected]',
description='ego input/output repository',
version='0.3.0',
url='https://github.... | #! /usr/bin/env python
# coding: utf-8
from setuptools import find_packages, setup
setup(name='egoio',
author='NEXT ENERGY, Reiner Lemoine Institut gGmbH, ZNES',
author_email='[email protected]',
description='ego input/output repository',
version='0.3.0',
url='https://github.... | <commit_before>#! /usr/bin/env python
# coding: utf-8
from setuptools import find_packages, setup
setup(name='egoio',
author='NEXT ENERGY, Reiner Lemoine Institut gGmbH, ZNES',
author_email='[email protected]',
description='ego input/output repository',
version='0.3.0',
url='... |
33f87d824118d07cf8a7379bc46f624da5e3b433 | setup.py | setup.py | import sys
IS_PYTHON3 = sys.version_info[0] == 3
if not IS_PYTHON3:
print("Error: signac requires python version >= 3.x.")
sys.exit(1)
from setuptools import setup, find_packages
setup(
name='signac',
version='0.1.7dev1',
packages=find_packages(),
author='Carl Simon Adorf',
author_email='... | import sys
IS_PYTHON3 = sys.version_info[0] == 3
if not IS_PYTHON3:
print("Error: signac requires python version >= 3.x.")
sys.exit(1)
from setuptools import setup, find_packages
setup(
name='signac',
version='0.1.7dev5',
packages=find_packages(),
author='Carl Simon Adorf',
author_email='... | Remove entry points and bump dev version. | Remove entry points and bump dev version.
| Python | bsd-3-clause | csadorf/signac,csadorf/signac | import sys
IS_PYTHON3 = sys.version_info[0] == 3
if not IS_PYTHON3:
print("Error: signac requires python version >= 3.x.")
sys.exit(1)
from setuptools import setup, find_packages
setup(
name='signac',
version='0.1.7dev1',
packages=find_packages(),
author='Carl Simon Adorf',
author_email='... | import sys
IS_PYTHON3 = sys.version_info[0] == 3
if not IS_PYTHON3:
print("Error: signac requires python version >= 3.x.")
sys.exit(1)
from setuptools import setup, find_packages
setup(
name='signac',
version='0.1.7dev5',
packages=find_packages(),
author='Carl Simon Adorf',
author_email='... | <commit_before>import sys
IS_PYTHON3 = sys.version_info[0] == 3
if not IS_PYTHON3:
print("Error: signac requires python version >= 3.x.")
sys.exit(1)
from setuptools import setup, find_packages
setup(
name='signac',
version='0.1.7dev1',
packages=find_packages(),
author='Carl Simon Adorf',
... | import sys
IS_PYTHON3 = sys.version_info[0] == 3
if not IS_PYTHON3:
print("Error: signac requires python version >= 3.x.")
sys.exit(1)
from setuptools import setup, find_packages
setup(
name='signac',
version='0.1.7dev5',
packages=find_packages(),
author='Carl Simon Adorf',
author_email='... | import sys
IS_PYTHON3 = sys.version_info[0] == 3
if not IS_PYTHON3:
print("Error: signac requires python version >= 3.x.")
sys.exit(1)
from setuptools import setup, find_packages
setup(
name='signac',
version='0.1.7dev1',
packages=find_packages(),
author='Carl Simon Adorf',
author_email='... | <commit_before>import sys
IS_PYTHON3 = sys.version_info[0] == 3
if not IS_PYTHON3:
print("Error: signac requires python version >= 3.x.")
sys.exit(1)
from setuptools import setup, find_packages
setup(
name='signac',
version='0.1.7dev1',
packages=find_packages(),
author='Carl Simon Adorf',
... |
dd062287f182c1a4d7d32c3db365c0ee92eb4120 | setup.py | setup.py | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming ... | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming ... | Fix module name: test.mysql -> test.mysqld | Fix module name: test.mysql -> test.mysqld
| Python | apache-2.0 | tk0miya/testing.mysqld | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming ... | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming ... | <commit_before># -*- coding: utf-8 -*-
from setuptools import setup, find_packages
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
... | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming ... | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming ... | <commit_before># -*- coding: utf-8 -*-
from setuptools import setup, find_packages
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
... |
04fb3d2a7d9416fe91b069b92d8fa157ea3d657b | setup.py | setup.py | from __future__ import absolute_import
from setuptools import setup, find_packages
setup(
name='flyingcloud',
version='0.1.9',
description='Build Docker images using SaltStack',
author='CookBrite, Inc.',
author_email='[email protected]',
license='Apache Software License 2.0',
... | from __future__ import absolute_import
from setuptools import setup, find_packages
setup(
name='flyingcloud',
version='0.1.9',
description='Build Docker images using SaltStack',
author='CookBrite, Inc.',
author_email='[email protected]',
license='Apache Software License 2.0',
... | Add requests as a dependency | Add requests as a dependency
| Python | apache-2.0 | cookbrite/flyingcloud,cookbrite/flyingcloud | from __future__ import absolute_import
from setuptools import setup, find_packages
setup(
name='flyingcloud',
version='0.1.9',
description='Build Docker images using SaltStack',
author='CookBrite, Inc.',
author_email='[email protected]',
license='Apache Software License 2.0',
... | from __future__ import absolute_import
from setuptools import setup, find_packages
setup(
name='flyingcloud',
version='0.1.9',
description='Build Docker images using SaltStack',
author='CookBrite, Inc.',
author_email='[email protected]',
license='Apache Software License 2.0',
... | <commit_before>from __future__ import absolute_import
from setuptools import setup, find_packages
setup(
name='flyingcloud',
version='0.1.9',
description='Build Docker images using SaltStack',
author='CookBrite, Inc.',
author_email='[email protected]',
license='Apache Software Li... | from __future__ import absolute_import
from setuptools import setup, find_packages
setup(
name='flyingcloud',
version='0.1.9',
description='Build Docker images using SaltStack',
author='CookBrite, Inc.',
author_email='[email protected]',
license='Apache Software License 2.0',
... | from __future__ import absolute_import
from setuptools import setup, find_packages
setup(
name='flyingcloud',
version='0.1.9',
description='Build Docker images using SaltStack',
author='CookBrite, Inc.',
author_email='[email protected]',
license='Apache Software License 2.0',
... | <commit_before>from __future__ import absolute_import
from setuptools import setup, find_packages
setup(
name='flyingcloud',
version='0.1.9',
description='Build Docker images using SaltStack',
author='CookBrite, Inc.',
author_email='[email protected]',
license='Apache Software Li... |
065cc9310a93af251db7a8464f6562ef62e3961c | setup.py | setup.py | #! /usr/bin/env python
# encoding: utf-8
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
REQUIREMENTS = [i.strip() for i in open("requirements.txt").readlines()]
setup(
name='pagseguro-sdk',
version="0.1.0",
description='SDK para utilização do PagSeguro em ... | #! /usr/bin/env python
# encoding: utf-8
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
REQUIREMENTS = [i.strip() for i in open("requirements.txt").readlines()]
setup(
name='pagseguro-sdk',
version="0.1.0",
description='SDK para utilização do PagSeguro em ... | Fix read the docs url. | Fix read the docs url.
| Python | mit | jeanmask/pagseguro-sdk | #! /usr/bin/env python
# encoding: utf-8
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
REQUIREMENTS = [i.strip() for i in open("requirements.txt").readlines()]
setup(
name='pagseguro-sdk',
version="0.1.0",
description='SDK para utilização do PagSeguro em ... | #! /usr/bin/env python
# encoding: utf-8
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
REQUIREMENTS = [i.strip() for i in open("requirements.txt").readlines()]
setup(
name='pagseguro-sdk',
version="0.1.0",
description='SDK para utilização do PagSeguro em ... | <commit_before>#! /usr/bin/env python
# encoding: utf-8
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
REQUIREMENTS = [i.strip() for i in open("requirements.txt").readlines()]
setup(
name='pagseguro-sdk',
version="0.1.0",
description='SDK para utilização d... | #! /usr/bin/env python
# encoding: utf-8
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
REQUIREMENTS = [i.strip() for i in open("requirements.txt").readlines()]
setup(
name='pagseguro-sdk',
version="0.1.0",
description='SDK para utilização do PagSeguro em ... | #! /usr/bin/env python
# encoding: utf-8
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
REQUIREMENTS = [i.strip() for i in open("requirements.txt").readlines()]
setup(
name='pagseguro-sdk',
version="0.1.0",
description='SDK para utilização do PagSeguro em ... | <commit_before>#! /usr/bin/env python
# encoding: utf-8
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
REQUIREMENTS = [i.strip() for i in open("requirements.txt").readlines()]
setup(
name='pagseguro-sdk',
version="0.1.0",
description='SDK para utilização d... |
abb49ae96786018c7a8a8cd3c8b30d612f710ed2 | setup.py | setup.py | """Rachiopy setup script."""
from setuptools import find_packages, setup
VERSION = "1.0.3"
GITHUB_USERNAME = "rfverbruggen"
GITHUB_REPOSITORY = "rachiopy"
GITHUB_PATH = f"{GITHUB_USERNAME}/{GITHUB_REPOSITORY}"
GITHUB_URL = f"https://github.com/{GITHUB_PATH}"
DOWNLOAD_URL = f"{GITHUB_URL}/archive/{VERSION}.tar.gz"
P... | """Rachiopy setup script."""
from setuptools import find_packages, setup
from datetime import datetime
NOW = datetime.now().strftime("%m%d%Y%H%M%S")
VERSION = f"1.0.4-dev{NOW}"
GITHUB_USERNAME = "rfverbruggen"
GITHUB_REPOSITORY = "rachiopy"
GITHUB_PATH = f"{GITHUB_USERNAME}/{GITHUB_REPOSITORY}"
GITHUB_URL = f"https... | Set the next dev version number: 1.0.4-dev | Set the next dev version number: 1.0.4-dev | Python | mit | rfverbruggen/rachiopy | """Rachiopy setup script."""
from setuptools import find_packages, setup
VERSION = "1.0.3"
GITHUB_USERNAME = "rfverbruggen"
GITHUB_REPOSITORY = "rachiopy"
GITHUB_PATH = f"{GITHUB_USERNAME}/{GITHUB_REPOSITORY}"
GITHUB_URL = f"https://github.com/{GITHUB_PATH}"
DOWNLOAD_URL = f"{GITHUB_URL}/archive/{VERSION}.tar.gz"
P... | """Rachiopy setup script."""
from setuptools import find_packages, setup
from datetime import datetime
NOW = datetime.now().strftime("%m%d%Y%H%M%S")
VERSION = f"1.0.4-dev{NOW}"
GITHUB_USERNAME = "rfverbruggen"
GITHUB_REPOSITORY = "rachiopy"
GITHUB_PATH = f"{GITHUB_USERNAME}/{GITHUB_REPOSITORY}"
GITHUB_URL = f"https... | <commit_before>"""Rachiopy setup script."""
from setuptools import find_packages, setup
VERSION = "1.0.3"
GITHUB_USERNAME = "rfverbruggen"
GITHUB_REPOSITORY = "rachiopy"
GITHUB_PATH = f"{GITHUB_USERNAME}/{GITHUB_REPOSITORY}"
GITHUB_URL = f"https://github.com/{GITHUB_PATH}"
DOWNLOAD_URL = f"{GITHUB_URL}/archive/{VER... | """Rachiopy setup script."""
from setuptools import find_packages, setup
from datetime import datetime
NOW = datetime.now().strftime("%m%d%Y%H%M%S")
VERSION = f"1.0.4-dev{NOW}"
GITHUB_USERNAME = "rfverbruggen"
GITHUB_REPOSITORY = "rachiopy"
GITHUB_PATH = f"{GITHUB_USERNAME}/{GITHUB_REPOSITORY}"
GITHUB_URL = f"https... | """Rachiopy setup script."""
from setuptools import find_packages, setup
VERSION = "1.0.3"
GITHUB_USERNAME = "rfverbruggen"
GITHUB_REPOSITORY = "rachiopy"
GITHUB_PATH = f"{GITHUB_USERNAME}/{GITHUB_REPOSITORY}"
GITHUB_URL = f"https://github.com/{GITHUB_PATH}"
DOWNLOAD_URL = f"{GITHUB_URL}/archive/{VERSION}.tar.gz"
P... | <commit_before>"""Rachiopy setup script."""
from setuptools import find_packages, setup
VERSION = "1.0.3"
GITHUB_USERNAME = "rfverbruggen"
GITHUB_REPOSITORY = "rachiopy"
GITHUB_PATH = f"{GITHUB_USERNAME}/{GITHUB_REPOSITORY}"
GITHUB_URL = f"https://github.com/{GITHUB_PATH}"
DOWNLOAD_URL = f"{GITHUB_URL}/archive/{VER... |
de5fbf7d63245e9d14844e66fdf16f88dbfae2e5 | rest_framework/authtoken/migrations/0001_initial.py | rest_framework/authtoken/migrations/0001_initial.py |
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.Create... | Update initial migration to work on Python 3 | Update initial migration to work on Python 3 | Python | bsd-2-clause | ajaali/django-rest-framework,mgaitan/django-rest-framework,xiaotangyuan/django-rest-framework,wedaly/django-rest-framework,edx/django-rest-framework,uploadcare/django-rest-framework,brandoncazander/django-rest-framework,mgaitan/django-rest-framework,werthen/django-rest-framework,akalipetis/django-rest-framework,YBJAY00... |
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.Create... | <commit_before>
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.Create... |
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name... | <commit_before>
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
... |
8e9fd28004c1f8daadc5ce7f51b40543c28720c0 | djangoautoconf/settings_templates/smtp_account_template.py | djangoautoconf/settings_templates/smtp_account_template.py | __author__ = 'q19420'
smtp_username = "test"
smtp_password = "testpass" | __author__ = 'weijia'
smtp_username = None
smtp_password = None | Use None as username and password for SMTP. | Use None as username and password for SMTP.
| Python | bsd-3-clause | weijia/djangoautoconf,weijia/djangoautoconf | __author__ = 'q19420'
smtp_username = "test"
smtp_password = "testpass"Use None as username and password for SMTP. | __author__ = 'weijia'
smtp_username = None
smtp_password = None | <commit_before>__author__ = 'q19420'
smtp_username = "test"
smtp_password = "testpass"<commit_msg>Use None as username and password for SMTP.<commit_after> | __author__ = 'weijia'
smtp_username = None
smtp_password = None | __author__ = 'q19420'
smtp_username = "test"
smtp_password = "testpass"Use None as username and password for SMTP.__author__ = 'weijia'
smtp_username = None
smtp_password = None | <commit_before>__author__ = 'q19420'
smtp_username = "test"
smtp_password = "testpass"<commit_msg>Use None as username and password for SMTP.<commit_after>__author__ = 'weijia'
smtp_username = None
smtp_password = None |
60f87cb4c3523faf5c5cdbc5f16453cae755988b | angr/procedures/java_jni/GetArrayElements.py | angr/procedures/java_jni/GetArrayElements.py | from . import JNISimProcedure
from ...engines.soot.values.arrayref import SimSootValue_ArrayRef
class GetArrayElements(JNISimProcedure):
return_ty = 'reference'
def run(self, ptr_env, array, ptr_isCopy):
array_ref = self.state.jni_references.lookup(array)
values = self.load_java_array(self.st... | from . import JNISimProcedure
from ...engines.soot.values.arrayref import SimSootValue_ArrayRef
class GetArrayElements(JNISimProcedure):
return_ty = 'reference'
def run(self, ptr_env, array, ptr_isCopy):
array_ref = self.state.jni_references.lookup(array)
values = self.load_java_array(self.st... | Fix case if isCopy is null | Fix case if isCopy is null
| Python | bsd-2-clause | schieb/angr,schieb/angr,angr/angr,angr/angr,iamahuman/angr,angr/angr,iamahuman/angr,schieb/angr,iamahuman/angr | from . import JNISimProcedure
from ...engines.soot.values.arrayref import SimSootValue_ArrayRef
class GetArrayElements(JNISimProcedure):
return_ty = 'reference'
def run(self, ptr_env, array, ptr_isCopy):
array_ref = self.state.jni_references.lookup(array)
values = self.load_java_array(self.st... | from . import JNISimProcedure
from ...engines.soot.values.arrayref import SimSootValue_ArrayRef
class GetArrayElements(JNISimProcedure):
return_ty = 'reference'
def run(self, ptr_env, array, ptr_isCopy):
array_ref = self.state.jni_references.lookup(array)
values = self.load_java_array(self.st... | <commit_before>from . import JNISimProcedure
from ...engines.soot.values.arrayref import SimSootValue_ArrayRef
class GetArrayElements(JNISimProcedure):
return_ty = 'reference'
def run(self, ptr_env, array, ptr_isCopy):
array_ref = self.state.jni_references.lookup(array)
values = self.load_jav... | from . import JNISimProcedure
from ...engines.soot.values.arrayref import SimSootValue_ArrayRef
class GetArrayElements(JNISimProcedure):
return_ty = 'reference'
def run(self, ptr_env, array, ptr_isCopy):
array_ref = self.state.jni_references.lookup(array)
values = self.load_java_array(self.st... | from . import JNISimProcedure
from ...engines.soot.values.arrayref import SimSootValue_ArrayRef
class GetArrayElements(JNISimProcedure):
return_ty = 'reference'
def run(self, ptr_env, array, ptr_isCopy):
array_ref = self.state.jni_references.lookup(array)
values = self.load_java_array(self.st... | <commit_before>from . import JNISimProcedure
from ...engines.soot.values.arrayref import SimSootValue_ArrayRef
class GetArrayElements(JNISimProcedure):
return_ty = 'reference'
def run(self, ptr_env, array, ptr_isCopy):
array_ref = self.state.jni_references.lookup(array)
values = self.load_jav... |
36d7a5f754fef3bdab0103229fe8b5ee267f9376 | scripts/urls-starting-with.py | scripts/urls-starting-with.py | import re
import sys
from xml.sax import make_parser, handler
if len(sys.argv) < 3:
print "This script expects two arguments: \n1. The path to a posts.xml file from a Stack Overflow data dump.\n2. A URL prefix to search for."
else:
start_with = sys.argv[2]
class SOProcessor(handler.ContentHandler):
... | import re
import sys
from xml.sax import make_parser, handler
if len(sys.argv) < 3:
print "This script expects two arguments: \n1. The path to a posts.xml file from a Stack Overflow data dump.\n2. A URL prefix to search for."
else:
start_with = sys.argv[2]
class SOProcessor(handler.ContentHandler):
... | Print tags out when scanning for URLs. | Print tags out when scanning for URLs.
| Python | bsd-3-clause | alnorth/stackdoc,alnorth/stackdoc,alnorth/stackdoc | import re
import sys
from xml.sax import make_parser, handler
if len(sys.argv) < 3:
print "This script expects two arguments: \n1. The path to a posts.xml file from a Stack Overflow data dump.\n2. A URL prefix to search for."
else:
start_with = sys.argv[2]
class SOProcessor(handler.ContentHandler):
... | import re
import sys
from xml.sax import make_parser, handler
if len(sys.argv) < 3:
print "This script expects two arguments: \n1. The path to a posts.xml file from a Stack Overflow data dump.\n2. A URL prefix to search for."
else:
start_with = sys.argv[2]
class SOProcessor(handler.ContentHandler):
... | <commit_before>import re
import sys
from xml.sax import make_parser, handler
if len(sys.argv) < 3:
print "This script expects two arguments: \n1. The path to a posts.xml file from a Stack Overflow data dump.\n2. A URL prefix to search for."
else:
start_with = sys.argv[2]
class SOProcessor(handler.ContentH... | import re
import sys
from xml.sax import make_parser, handler
if len(sys.argv) < 3:
print "This script expects two arguments: \n1. The path to a posts.xml file from a Stack Overflow data dump.\n2. A URL prefix to search for."
else:
start_with = sys.argv[2]
class SOProcessor(handler.ContentHandler):
... | import re
import sys
from xml.sax import make_parser, handler
if len(sys.argv) < 3:
print "This script expects two arguments: \n1. The path to a posts.xml file from a Stack Overflow data dump.\n2. A URL prefix to search for."
else:
start_with = sys.argv[2]
class SOProcessor(handler.ContentHandler):
... | <commit_before>import re
import sys
from xml.sax import make_parser, handler
if len(sys.argv) < 3:
print "This script expects two arguments: \n1. The path to a posts.xml file from a Stack Overflow data dump.\n2. A URL prefix to search for."
else:
start_with = sys.argv[2]
class SOProcessor(handler.ContentH... |
fe4f2fa1c64d40a15c49cc4183a59c912574fdff | ibmcnx/doc/DataSources.py | ibmcnx/doc/DataSources.py | ######
# Check ExId (GUID) by Email through JDBC
#
# Author: Christoph Stoettner
# Mail: [email protected]
# Documentation: http://scripting101.stoeps.de
#
# Version: 2.0
# Date: 2014-06-04
#
# License: Apache 2.0
#
# Check ExId of a User in all Connections Appli... | ######
# Check ExId (GUID) by Email through JDBC
#
# Author: Christoph Stoettner
# Mail: [email protected]
# Documentation: http://scripting101.stoeps.de
#
# Version: 2.0
# Date: 2014-06-04
#
# License: Apache 2.0
#
# Check ExId of a User in all Connections Appli... | Create script to save documentation to a file | 4: Create script to save documentation to a file
Task-Url: http://github.com/stoeps13/ibmcnx2/issues/issue/4 | Python | apache-2.0 | stoeps13/ibmcnx2,stoeps13/ibmcnx2 | ######
# Check ExId (GUID) by Email through JDBC
#
# Author: Christoph Stoettner
# Mail: [email protected]
# Documentation: http://scripting101.stoeps.de
#
# Version: 2.0
# Date: 2014-06-04
#
# License: Apache 2.0
#
# Check ExId of a User in all Connections Appli... | ######
# Check ExId (GUID) by Email through JDBC
#
# Author: Christoph Stoettner
# Mail: [email protected]
# Documentation: http://scripting101.stoeps.de
#
# Version: 2.0
# Date: 2014-06-04
#
# License: Apache 2.0
#
# Check ExId of a User in all Connections Appli... | <commit_before>######
# Check ExId (GUID) by Email through JDBC
#
# Author: Christoph Stoettner
# Mail: [email protected]
# Documentation: http://scripting101.stoeps.de
#
# Version: 2.0
# Date: 2014-06-04
#
# License: Apache 2.0
#
# Check ExId of a User in all Co... | ######
# Check ExId (GUID) by Email through JDBC
#
# Author: Christoph Stoettner
# Mail: [email protected]
# Documentation: http://scripting101.stoeps.de
#
# Version: 2.0
# Date: 2014-06-04
#
# License: Apache 2.0
#
# Check ExId of a User in all Connections Appli... | ######
# Check ExId (GUID) by Email through JDBC
#
# Author: Christoph Stoettner
# Mail: [email protected]
# Documentation: http://scripting101.stoeps.de
#
# Version: 2.0
# Date: 2014-06-04
#
# License: Apache 2.0
#
# Check ExId of a User in all Connections Appli... | <commit_before>######
# Check ExId (GUID) by Email through JDBC
#
# Author: Christoph Stoettner
# Mail: [email protected]
# Documentation: http://scripting101.stoeps.de
#
# Version: 2.0
# Date: 2014-06-04
#
# License: Apache 2.0
#
# Check ExId of a User in all Co... |
ed59db63ab5832468b1348f6cd9bf00880fbbdbc | busstops/management/commands/import_areas.py | busstops/management/commands/import_areas.py | """
Import administrative areas from the NPTG.
Usage:
import_areas < AdminAreas.csv
"""
from ..import_from_csv import ImportFromCSVCommand
from ...models import AdminArea
class Command(ImportFromCSVCommand):
def handle_row(self, row):
AdminArea.objects.update_or_create(
id=row['Adminis... | """
Import administrative areas from the NPTG.
Usage:
import_areas < AdminAreas.csv
"""
from ..import_from_csv import ImportFromCSVCommand
from ...models import AdminArea
class Command(ImportFromCSVCommand):
def handle_row(self, row):
AdminArea.objects.update_or_create(
id=row['Adminis... | Move Cumbria to the North West | Move Cumbria to the North West
| Python | mpl-2.0 | jclgoodwin/bustimes.org.uk,jclgoodwin/bustimes.org.uk,stev-0/bustimes.org.uk,jclgoodwin/bustimes.org.uk,stev-0/bustimes.org.uk,jclgoodwin/bustimes.org.uk,stev-0/bustimes.org.uk,stev-0/bustimes.org.uk,stev-0/bustimes.org.uk | """
Import administrative areas from the NPTG.
Usage:
import_areas < AdminAreas.csv
"""
from ..import_from_csv import ImportFromCSVCommand
from ...models import AdminArea
class Command(ImportFromCSVCommand):
def handle_row(self, row):
AdminArea.objects.update_or_create(
id=row['Adminis... | """
Import administrative areas from the NPTG.
Usage:
import_areas < AdminAreas.csv
"""
from ..import_from_csv import ImportFromCSVCommand
from ...models import AdminArea
class Command(ImportFromCSVCommand):
def handle_row(self, row):
AdminArea.objects.update_or_create(
id=row['Adminis... | <commit_before>"""
Import administrative areas from the NPTG.
Usage:
import_areas < AdminAreas.csv
"""
from ..import_from_csv import ImportFromCSVCommand
from ...models import AdminArea
class Command(ImportFromCSVCommand):
def handle_row(self, row):
AdminArea.objects.update_or_create(
... | """
Import administrative areas from the NPTG.
Usage:
import_areas < AdminAreas.csv
"""
from ..import_from_csv import ImportFromCSVCommand
from ...models import AdminArea
class Command(ImportFromCSVCommand):
def handle_row(self, row):
AdminArea.objects.update_or_create(
id=row['Adminis... | """
Import administrative areas from the NPTG.
Usage:
import_areas < AdminAreas.csv
"""
from ..import_from_csv import ImportFromCSVCommand
from ...models import AdminArea
class Command(ImportFromCSVCommand):
def handle_row(self, row):
AdminArea.objects.update_or_create(
id=row['Adminis... | <commit_before>"""
Import administrative areas from the NPTG.
Usage:
import_areas < AdminAreas.csv
"""
from ..import_from_csv import ImportFromCSVCommand
from ...models import AdminArea
class Command(ImportFromCSVCommand):
def handle_row(self, row):
AdminArea.objects.update_or_create(
... |
8974832551f48ef3fbd3023cc2c26836aa01de1c | derrida/__init__.py | derrida/__init__.py | __version_info__ = (1, 1, 0, None)
# Dot-connect all but the last. Last is dash-connected if not None.
__version__ = '.'.join([str(i) for i in __version_info__[:-1]])
if __version_info__[-1] is not None:
__version__ += ('-%s' % (__version_info__[-1],))
# context processor to add version to the template environm... | __version_info__ = (1, 2, 0, 'dev')
# Dot-connect all but the last. Last is dash-connected if not None.
__version__ = '.'.join([str(i) for i in __version_info__[:-1]])
if __version_info__[-1] is not None:
__version__ += ('-%s' % (__version_info__[-1],))
# context processor to add version to the template environ... | Set develop version to 1.2-dev | Set develop version to 1.2-dev
| Python | apache-2.0 | Princeton-CDH/derrida-django,Princeton-CDH/derrida-django,Princeton-CDH/derrida-django,Princeton-CDH/derrida-django | __version_info__ = (1, 1, 0, None)
# Dot-connect all but the last. Last is dash-connected if not None.
__version__ = '.'.join([str(i) for i in __version_info__[:-1]])
if __version_info__[-1] is not None:
__version__ += ('-%s' % (__version_info__[-1],))
# context processor to add version to the template environm... | __version_info__ = (1, 2, 0, 'dev')
# Dot-connect all but the last. Last is dash-connected if not None.
__version__ = '.'.join([str(i) for i in __version_info__[:-1]])
if __version_info__[-1] is not None:
__version__ += ('-%s' % (__version_info__[-1],))
# context processor to add version to the template environ... | <commit_before>__version_info__ = (1, 1, 0, None)
# Dot-connect all but the last. Last is dash-connected if not None.
__version__ = '.'.join([str(i) for i in __version_info__[:-1]])
if __version_info__[-1] is not None:
__version__ += ('-%s' % (__version_info__[-1],))
# context processor to add version to the te... | __version_info__ = (1, 2, 0, 'dev')
# Dot-connect all but the last. Last is dash-connected if not None.
__version__ = '.'.join([str(i) for i in __version_info__[:-1]])
if __version_info__[-1] is not None:
__version__ += ('-%s' % (__version_info__[-1],))
# context processor to add version to the template environ... | __version_info__ = (1, 1, 0, None)
# Dot-connect all but the last. Last is dash-connected if not None.
__version__ = '.'.join([str(i) for i in __version_info__[:-1]])
if __version_info__[-1] is not None:
__version__ += ('-%s' % (__version_info__[-1],))
# context processor to add version to the template environm... | <commit_before>__version_info__ = (1, 1, 0, None)
# Dot-connect all but the last. Last is dash-connected if not None.
__version__ = '.'.join([str(i) for i in __version_info__[:-1]])
if __version_info__[-1] is not None:
__version__ += ('-%s' % (__version_info__[-1],))
# context processor to add version to the te... |
c98ac4ca313606c966dc45dbe7861898177f2f04 | api/tests/test_delete_bucket_list.py | api/tests/test_delete_bucket_list.py | import json
from api.test import BaseTestCase
from api.models import BucketList
class TestDeleteBucketList(BaseTestCase):
def test_delete_bucket_list(self):
bucket_list_one = {
"description": "Movies i have to watch by the end of the week",
"status": "Pending",
"title... | import json
from api.test import BaseTestCase
from api.models import BucketList
class TestDeleteBucketList(BaseTestCase):
def test_delete_bucket_list(self):
bucket_list_one = {
"description": "Movies i have to watch by the end of the week",
"status": "Pending",
"title... | Modify test to test that bucketlist nolonger exists in system | Modify test to test that bucketlist nolonger exists in system
| Python | mit | EdwinKato/bucket-list,EdwinKato/bucket-list,EdwinKato/bucket-list,EdwinKato/bucket-list,EdwinKato/bucket-list | import json
from api.test import BaseTestCase
from api.models import BucketList
class TestDeleteBucketList(BaseTestCase):
def test_delete_bucket_list(self):
bucket_list_one = {
"description": "Movies i have to watch by the end of the week",
"status": "Pending",
"title... | import json
from api.test import BaseTestCase
from api.models import BucketList
class TestDeleteBucketList(BaseTestCase):
def test_delete_bucket_list(self):
bucket_list_one = {
"description": "Movies i have to watch by the end of the week",
"status": "Pending",
"title... | <commit_before>import json
from api.test import BaseTestCase
from api.models import BucketList
class TestDeleteBucketList(BaseTestCase):
def test_delete_bucket_list(self):
bucket_list_one = {
"description": "Movies i have to watch by the end of the week",
"status": "Pending",
... | import json
from api.test import BaseTestCase
from api.models import BucketList
class TestDeleteBucketList(BaseTestCase):
def test_delete_bucket_list(self):
bucket_list_one = {
"description": "Movies i have to watch by the end of the week",
"status": "Pending",
"title... | import json
from api.test import BaseTestCase
from api.models import BucketList
class TestDeleteBucketList(BaseTestCase):
def test_delete_bucket_list(self):
bucket_list_one = {
"description": "Movies i have to watch by the end of the week",
"status": "Pending",
"title... | <commit_before>import json
from api.test import BaseTestCase
from api.models import BucketList
class TestDeleteBucketList(BaseTestCase):
def test_delete_bucket_list(self):
bucket_list_one = {
"description": "Movies i have to watch by the end of the week",
"status": "Pending",
... |
a2aceffa0133756d833ba0057b3d22e7f4d95406 | utils.py | utils.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
def is_image_file(f):
known_extensions = ('.jpg', '.jpeg', '.png')
return os.path.isfile(f) and f.lower().endswith(known_extensions)
def get_files_list(paths, recursive):
result = []
for path in paths:
if os.path.isdir(path):
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
def is_image_file(f):
known_extensions = ('.bmp', '.jpg', '.jpeg', '.png')
return os.path.isfile(f) and f.lower().endswith(known_extensions)
def get_files_list(paths, recursive):
result = []
for path in paths:
if os.path.isdir(path):
... | Add BMP files to supported list | Add BMP files to supported list
| Python | mit | vladimirgamalian/pictools | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
def is_image_file(f):
known_extensions = ('.jpg', '.jpeg', '.png')
return os.path.isfile(f) and f.lower().endswith(known_extensions)
def get_files_list(paths, recursive):
result = []
for path in paths:
if os.path.isdir(path):
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
def is_image_file(f):
known_extensions = ('.bmp', '.jpg', '.jpeg', '.png')
return os.path.isfile(f) and f.lower().endswith(known_extensions)
def get_files_list(paths, recursive):
result = []
for path in paths:
if os.path.isdir(path):
... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
def is_image_file(f):
known_extensions = ('.jpg', '.jpeg', '.png')
return os.path.isfile(f) and f.lower().endswith(known_extensions)
def get_files_list(paths, recursive):
result = []
for path in paths:
if os.path.isdir(p... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
def is_image_file(f):
known_extensions = ('.bmp', '.jpg', '.jpeg', '.png')
return os.path.isfile(f) and f.lower().endswith(known_extensions)
def get_files_list(paths, recursive):
result = []
for path in paths:
if os.path.isdir(path):
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
def is_image_file(f):
known_extensions = ('.jpg', '.jpeg', '.png')
return os.path.isfile(f) and f.lower().endswith(known_extensions)
def get_files_list(paths, recursive):
result = []
for path in paths:
if os.path.isdir(path):
... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
def is_image_file(f):
known_extensions = ('.jpg', '.jpeg', '.png')
return os.path.isfile(f) and f.lower().endswith(known_extensions)
def get_files_list(paths, recursive):
result = []
for path in paths:
if os.path.isdir(p... |
ae2be1dc39baa8f8cd73e574d384619290b0c707 | tests/api/views/users/read_test.py | tests/api/views/users/read_test.py | from tests.data import add_fixtures, users
def test_read_user(db_session, client):
john = users.john()
add_fixtures(db_session, john)
res = client.get('/users/{id}'.format(id=john.id))
assert res.status_code == 200
assert res.json == {
u'id': john.id,
u'firstName': u'John',
... | from skylines.model import Follower
from tests.api import auth_for
from tests.data import add_fixtures, users
def test_read_user(db_session, client):
john = users.john()
add_fixtures(db_session, john)
res = client.get('/users/{id}'.format(id=john.id))
assert res.status_code == 200
assert res.json... | Add more "GET /users/:id" tests | tests/api: Add more "GET /users/:id" tests
| Python | agpl-3.0 | Turbo87/skylines,skylines-project/skylines,shadowoneau/skylines,Harry-R/skylines,shadowoneau/skylines,RBE-Avionik/skylines,skylines-project/skylines,RBE-Avionik/skylines,Turbo87/skylines,RBE-Avionik/skylines,shadowoneau/skylines,Harry-R/skylines,Turbo87/skylines,skylines-project/skylines,Harry-R/skylines,Harry-R/skylin... | from tests.data import add_fixtures, users
def test_read_user(db_session, client):
john = users.john()
add_fixtures(db_session, john)
res = client.get('/users/{id}'.format(id=john.id))
assert res.status_code == 200
assert res.json == {
u'id': john.id,
u'firstName': u'John',
... | from skylines.model import Follower
from tests.api import auth_for
from tests.data import add_fixtures, users
def test_read_user(db_session, client):
john = users.john()
add_fixtures(db_session, john)
res = client.get('/users/{id}'.format(id=john.id))
assert res.status_code == 200
assert res.json... | <commit_before>from tests.data import add_fixtures, users
def test_read_user(db_session, client):
john = users.john()
add_fixtures(db_session, john)
res = client.get('/users/{id}'.format(id=john.id))
assert res.status_code == 200
assert res.json == {
u'id': john.id,
u'firstName': ... | from skylines.model import Follower
from tests.api import auth_for
from tests.data import add_fixtures, users
def test_read_user(db_session, client):
john = users.john()
add_fixtures(db_session, john)
res = client.get('/users/{id}'.format(id=john.id))
assert res.status_code == 200
assert res.json... | from tests.data import add_fixtures, users
def test_read_user(db_session, client):
john = users.john()
add_fixtures(db_session, john)
res = client.get('/users/{id}'.format(id=john.id))
assert res.status_code == 200
assert res.json == {
u'id': john.id,
u'firstName': u'John',
... | <commit_before>from tests.data import add_fixtures, users
def test_read_user(db_session, client):
john = users.john()
add_fixtures(db_session, john)
res = client.get('/users/{id}'.format(id=john.id))
assert res.status_code == 200
assert res.json == {
u'id': john.id,
u'firstName': ... |
788284da7d586b538fefb3beb751938fc555d923 | ovp_users/models/profile.py | ovp_users/models/profile.py | from django.db import models
from django.utils.translation import ugettext_lazy as _
from ovp_users.helpers import get_settings, import_from_string
gender_choices = (
("male", "Male"),
("female", "Female"),
("unspecified", "Unspecified"),
)
class UserProfile(models.Model):
user = models.OneToOneField("User",... | from django.db import models
from django.utils.translation import ugettext_lazy as _
from ovp_users.helpers import get_settings, import_from_string
gender_choices = (
("male", "Male"),
("female", "Female"),
("unspecified", "Unspecified"),
)
class UserProfile(models.Model):
user = models.OneToOneField("User",... | Set Profile.gender maxlength to 20 | Set Profile.gender maxlength to 20
| Python | agpl-3.0 | OpenVolunteeringPlatform/django-ovp-users,OpenVolunteeringPlatform/django-ovp-users | from django.db import models
from django.utils.translation import ugettext_lazy as _
from ovp_users.helpers import get_settings, import_from_string
gender_choices = (
("male", "Male"),
("female", "Female"),
("unspecified", "Unspecified"),
)
class UserProfile(models.Model):
user = models.OneToOneField("User",... | from django.db import models
from django.utils.translation import ugettext_lazy as _
from ovp_users.helpers import get_settings, import_from_string
gender_choices = (
("male", "Male"),
("female", "Female"),
("unspecified", "Unspecified"),
)
class UserProfile(models.Model):
user = models.OneToOneField("User",... | <commit_before>from django.db import models
from django.utils.translation import ugettext_lazy as _
from ovp_users.helpers import get_settings, import_from_string
gender_choices = (
("male", "Male"),
("female", "Female"),
("unspecified", "Unspecified"),
)
class UserProfile(models.Model):
user = models.OneToO... | from django.db import models
from django.utils.translation import ugettext_lazy as _
from ovp_users.helpers import get_settings, import_from_string
gender_choices = (
("male", "Male"),
("female", "Female"),
("unspecified", "Unspecified"),
)
class UserProfile(models.Model):
user = models.OneToOneField("User",... | from django.db import models
from django.utils.translation import ugettext_lazy as _
from ovp_users.helpers import get_settings, import_from_string
gender_choices = (
("male", "Male"),
("female", "Female"),
("unspecified", "Unspecified"),
)
class UserProfile(models.Model):
user = models.OneToOneField("User",... | <commit_before>from django.db import models
from django.utils.translation import ugettext_lazy as _
from ovp_users.helpers import get_settings, import_from_string
gender_choices = (
("male", "Male"),
("female", "Female"),
("unspecified", "Unspecified"),
)
class UserProfile(models.Model):
user = models.OneToO... |
da3c17d9142161c9dd9136e604fb9d0f82355044 | tests/tools_tests.py | tests/tools_tests.py | """Tests for ifcfg.tools."""
import logging
import os
import unittest
import ifcfg
from ifcfg.tools import exec_cmd
from nose.tools import eq_
class IfcfgToolsTestCase(unittest.TestCase):
def test_minimal_logger(self):
os.environ['IFCFG_DEBUG'] = '1'
log = ifcfg.tools.minimal_logger(__name__)
... | """Tests for ifcfg.tools."""
import locale
import logging
import os
import sys
import unittest
import ifcfg
from ifcfg.tools import exec_cmd
from nose.tools import eq_
class IfcfgToolsTestCase(unittest.TestCase):
def test_minimal_logger(self):
os.environ['IFCFG_DEBUG'] = '1'
log = ifcfg.tools.m... | Add a Python2 test for non-unicode commands | Add a Python2 test for non-unicode commands
| Python | bsd-3-clause | ftao/python-ifcfg | """Tests for ifcfg.tools."""
import logging
import os
import unittest
import ifcfg
from ifcfg.tools import exec_cmd
from nose.tools import eq_
class IfcfgToolsTestCase(unittest.TestCase):
def test_minimal_logger(self):
os.environ['IFCFG_DEBUG'] = '1'
log = ifcfg.tools.minimal_logger(__name__)
... | """Tests for ifcfg.tools."""
import locale
import logging
import os
import sys
import unittest
import ifcfg
from ifcfg.tools import exec_cmd
from nose.tools import eq_
class IfcfgToolsTestCase(unittest.TestCase):
def test_minimal_logger(self):
os.environ['IFCFG_DEBUG'] = '1'
log = ifcfg.tools.m... | <commit_before>"""Tests for ifcfg.tools."""
import logging
import os
import unittest
import ifcfg
from ifcfg.tools import exec_cmd
from nose.tools import eq_
class IfcfgToolsTestCase(unittest.TestCase):
def test_minimal_logger(self):
os.environ['IFCFG_DEBUG'] = '1'
log = ifcfg.tools.minimal_log... | """Tests for ifcfg.tools."""
import locale
import logging
import os
import sys
import unittest
import ifcfg
from ifcfg.tools import exec_cmd
from nose.tools import eq_
class IfcfgToolsTestCase(unittest.TestCase):
def test_minimal_logger(self):
os.environ['IFCFG_DEBUG'] = '1'
log = ifcfg.tools.m... | """Tests for ifcfg.tools."""
import logging
import os
import unittest
import ifcfg
from ifcfg.tools import exec_cmd
from nose.tools import eq_
class IfcfgToolsTestCase(unittest.TestCase):
def test_minimal_logger(self):
os.environ['IFCFG_DEBUG'] = '1'
log = ifcfg.tools.minimal_logger(__name__)
... | <commit_before>"""Tests for ifcfg.tools."""
import logging
import os
import unittest
import ifcfg
from ifcfg.tools import exec_cmd
from nose.tools import eq_
class IfcfgToolsTestCase(unittest.TestCase):
def test_minimal_logger(self):
os.environ['IFCFG_DEBUG'] = '1'
log = ifcfg.tools.minimal_log... |
dfa94ee2f7712ed66157ff0024989025831bf6ac | calaccess_website/urls.py | calaccess_website/urls.py | from django.conf.urls import url
from calaccess_website import views
urlpatterns = [
# The homepage
url(
r'^$',
views.VersionArchiveIndex.as_view(),
name="version_index",
),
# Version archive views
url(
r'^versions/archive/(?P<year>[0-9]{4})/$',
views.Versi... | from django.conf.urls import url
from calaccess_website import views
urlpatterns = [
# The homepage
url(
r'^$',
views.VersionArchiveIndex.as_view(),
name="version_index",
),
# Version archive views
url(
r'^archive/(?P<year>[0-9]{4})/$',
views.VersionYearArc... | Remove 'versions/' from archive url path | Remove 'versions/' from archive url path
| Python | mit | california-civic-data-coalition/django-calaccess-downloads-website,california-civic-data-coalition/django-calaccess-downloads-website,california-civic-data-coalition/django-calaccess-downloads-website | from django.conf.urls import url
from calaccess_website import views
urlpatterns = [
# The homepage
url(
r'^$',
views.VersionArchiveIndex.as_view(),
name="version_index",
),
# Version archive views
url(
r'^versions/archive/(?P<year>[0-9]{4})/$',
views.Versi... | from django.conf.urls import url
from calaccess_website import views
urlpatterns = [
# The homepage
url(
r'^$',
views.VersionArchiveIndex.as_view(),
name="version_index",
),
# Version archive views
url(
r'^archive/(?P<year>[0-9]{4})/$',
views.VersionYearArc... | <commit_before>from django.conf.urls import url
from calaccess_website import views
urlpatterns = [
# The homepage
url(
r'^$',
views.VersionArchiveIndex.as_view(),
name="version_index",
),
# Version archive views
url(
r'^versions/archive/(?P<year>[0-9]{4})/$',
... | from django.conf.urls import url
from calaccess_website import views
urlpatterns = [
# The homepage
url(
r'^$',
views.VersionArchiveIndex.as_view(),
name="version_index",
),
# Version archive views
url(
r'^archive/(?P<year>[0-9]{4})/$',
views.VersionYearArc... | from django.conf.urls import url
from calaccess_website import views
urlpatterns = [
# The homepage
url(
r'^$',
views.VersionArchiveIndex.as_view(),
name="version_index",
),
# Version archive views
url(
r'^versions/archive/(?P<year>[0-9]{4})/$',
views.Versi... | <commit_before>from django.conf.urls import url
from calaccess_website import views
urlpatterns = [
# The homepage
url(
r'^$',
views.VersionArchiveIndex.as_view(),
name="version_index",
),
# Version archive views
url(
r'^versions/archive/(?P<year>[0-9]{4})/$',
... |
4b488c8d0842bb25c719fcd93ee0ae46978b5680 | meta/util.py | meta/util.py | import os
import sys
import time
import math
from contextlib import contextmanager
@contextmanager
def timeit_msg(msg):
print '{}...'.format(msg),
sys.stdout.flush()
start = time.time()
yield
stop = time.time()
print ' ({:1.3f} s)'.format((stop-start))
def get_file_size(fname):
fstats = os.stat(fname)
size ... | import os
import sys
import time
import math
import sqlite3
from contextlib import contextmanager
import meta
@contextmanager
def timeit_msg(msg):
print '{}...'.format(msg),
sys.stdout.flush()
start = time.time()
yield
stop = time.time()
print ' ({:1.3f} s)'.format((stop-start))
def get_file_size(fname):
fs... | Add support for connecting to NCBI database | Add support for connecting to NCBI database
| Python | mit | abulovic/pgnd-meta | import os
import sys
import time
import math
from contextlib import contextmanager
@contextmanager
def timeit_msg(msg):
print '{}...'.format(msg),
sys.stdout.flush()
start = time.time()
yield
stop = time.time()
print ' ({:1.3f} s)'.format((stop-start))
def get_file_size(fname):
fstats = os.stat(fname)
size ... | import os
import sys
import time
import math
import sqlite3
from contextlib import contextmanager
import meta
@contextmanager
def timeit_msg(msg):
print '{}...'.format(msg),
sys.stdout.flush()
start = time.time()
yield
stop = time.time()
print ' ({:1.3f} s)'.format((stop-start))
def get_file_size(fname):
fs... | <commit_before>import os
import sys
import time
import math
from contextlib import contextmanager
@contextmanager
def timeit_msg(msg):
print '{}...'.format(msg),
sys.stdout.flush()
start = time.time()
yield
stop = time.time()
print ' ({:1.3f} s)'.format((stop-start))
def get_file_size(fname):
fstats = os.sta... | import os
import sys
import time
import math
import sqlite3
from contextlib import contextmanager
import meta
@contextmanager
def timeit_msg(msg):
print '{}...'.format(msg),
sys.stdout.flush()
start = time.time()
yield
stop = time.time()
print ' ({:1.3f} s)'.format((stop-start))
def get_file_size(fname):
fs... | import os
import sys
import time
import math
from contextlib import contextmanager
@contextmanager
def timeit_msg(msg):
print '{}...'.format(msg),
sys.stdout.flush()
start = time.time()
yield
stop = time.time()
print ' ({:1.3f} s)'.format((stop-start))
def get_file_size(fname):
fstats = os.stat(fname)
size ... | <commit_before>import os
import sys
import time
import math
from contextlib import contextmanager
@contextmanager
def timeit_msg(msg):
print '{}...'.format(msg),
sys.stdout.flush()
start = time.time()
yield
stop = time.time()
print ' ({:1.3f} s)'.format((stop-start))
def get_file_size(fname):
fstats = os.sta... |
dac3cedaee583db4cc3c05a9cb2c4f15a707123e | pylib/mapit/middleware.py | pylib/mapit/middleware.py | import re
class JSONPMiddleware(object):
def process_response(self, request, response):
if request.GET.get('callback') and re.match('[a-zA-Z0-9_]+$', request.GET.get('callback')):
response.content = request.GET.get('callback') + '(' + response.content + ')'
return response
| import re
class JSONPMiddleware(object):
def process_response(self, request, response):
if request.GET.get('callback') and re.match('[a-zA-Z0-9_]+$', request.GET.get('callback')):
response.content = request.GET.get('callback') + '(' + response.content + ')'
response.status_code = 20... | Set up JSONP requests to always return 200. | Set up JSONP requests to always return 200.
| Python | agpl-3.0 | Sinar/mapit,Code4SA/mapit,New-Bamboo/mapit,opencorato/mapit,Sinar/mapit,opencorato/mapit,opencorato/mapit,chris48s/mapit,chris48s/mapit,Code4SA/mapit,chris48s/mapit,New-Bamboo/mapit,Code4SA/mapit | import re
class JSONPMiddleware(object):
def process_response(self, request, response):
if request.GET.get('callback') and re.match('[a-zA-Z0-9_]+$', request.GET.get('callback')):
response.content = request.GET.get('callback') + '(' + response.content + ')'
return response
Set up JSONP... | import re
class JSONPMiddleware(object):
def process_response(self, request, response):
if request.GET.get('callback') and re.match('[a-zA-Z0-9_]+$', request.GET.get('callback')):
response.content = request.GET.get('callback') + '(' + response.content + ')'
response.status_code = 20... | <commit_before>import re
class JSONPMiddleware(object):
def process_response(self, request, response):
if request.GET.get('callback') and re.match('[a-zA-Z0-9_]+$', request.GET.get('callback')):
response.content = request.GET.get('callback') + '(' + response.content + ')'
return respons... | import re
class JSONPMiddleware(object):
def process_response(self, request, response):
if request.GET.get('callback') and re.match('[a-zA-Z0-9_]+$', request.GET.get('callback')):
response.content = request.GET.get('callback') + '(' + response.content + ')'
response.status_code = 20... | import re
class JSONPMiddleware(object):
def process_response(self, request, response):
if request.GET.get('callback') and re.match('[a-zA-Z0-9_]+$', request.GET.get('callback')):
response.content = request.GET.get('callback') + '(' + response.content + ')'
return response
Set up JSONP... | <commit_before>import re
class JSONPMiddleware(object):
def process_response(self, request, response):
if request.GET.get('callback') and re.match('[a-zA-Z0-9_]+$', request.GET.get('callback')):
response.content = request.GET.get('callback') + '(' + response.content + ')'
return respons... |
c80893c5789998b6d6068703bb2434919abc65a3 | sqjobs/tests/django_test.py | sqjobs/tests/django_test.py | #!/usr/bin/env python
import os
import sys
from django.conf import settings
import django
DEFAULT_SETTINGS = {
'INSTALLED_APPS': (
'sqjobs',
'sqjobs.tests',
'sqjobs.contrib.django.djsqjobs'
),
'DATABASES': {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
... | #!/usr/bin/env python
import os
import sys
from django.conf import settings
import django
DEFAULT_SETTINGS = {
'INSTALLED_APPS': (
'sqjobs',
'sqjobs.tests',
'sqjobs.contrib.django.djsqjobs'
),
'DATABASES': {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
... | Return status when executing tests with DiscoverRunner | Return status when executing tests with DiscoverRunner
| Python | bsd-3-clause | gnufede/sqjobs,gnufede/sqjobs | #!/usr/bin/env python
import os
import sys
from django.conf import settings
import django
DEFAULT_SETTINGS = {
'INSTALLED_APPS': (
'sqjobs',
'sqjobs.tests',
'sqjobs.contrib.django.djsqjobs'
),
'DATABASES': {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
... | #!/usr/bin/env python
import os
import sys
from django.conf import settings
import django
DEFAULT_SETTINGS = {
'INSTALLED_APPS': (
'sqjobs',
'sqjobs.tests',
'sqjobs.contrib.django.djsqjobs'
),
'DATABASES': {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
... | <commit_before>#!/usr/bin/env python
import os
import sys
from django.conf import settings
import django
DEFAULT_SETTINGS = {
'INSTALLED_APPS': (
'sqjobs',
'sqjobs.tests',
'sqjobs.contrib.django.djsqjobs'
),
'DATABASES': {
'default': {
'ENGINE': 'django.db.back... | #!/usr/bin/env python
import os
import sys
from django.conf import settings
import django
DEFAULT_SETTINGS = {
'INSTALLED_APPS': (
'sqjobs',
'sqjobs.tests',
'sqjobs.contrib.django.djsqjobs'
),
'DATABASES': {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
... | #!/usr/bin/env python
import os
import sys
from django.conf import settings
import django
DEFAULT_SETTINGS = {
'INSTALLED_APPS': (
'sqjobs',
'sqjobs.tests',
'sqjobs.contrib.django.djsqjobs'
),
'DATABASES': {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
... | <commit_before>#!/usr/bin/env python
import os
import sys
from django.conf import settings
import django
DEFAULT_SETTINGS = {
'INSTALLED_APPS': (
'sqjobs',
'sqjobs.tests',
'sqjobs.contrib.django.djsqjobs'
),
'DATABASES': {
'default': {
'ENGINE': 'django.db.back... |
2548a0c5e108fa22867c6a0e4f5b06ceba52dac0 | bottery/message.py | bottery/message.py | import os
from datetime import datetime
import attr
from jinja2 import Environment, FileSystemLoader, select_autoescape
@attr.s
class Message:
id = attr.ib()
platform = attr.ib()
user = attr.ib()
chat = attr.ib()
text = attr.ib()
timestamp = attr.ib()
raw = attr.ib()
@property
de... | import os
from datetime import datetime
import attr
from jinja2 import Environment, FileSystemLoader, select_autoescape
from bottery.conf import settings
@attr.s
class Message:
id = attr.ib()
platform = attr.ib()
user = attr.ib()
chat = attr.ib()
text = attr.ib()
timestamp = attr.ib()
ra... | Extend templates dirs on settings.py | Extend templates dirs on settings.py
| Python | mit | rougeth/bottery | import os
from datetime import datetime
import attr
from jinja2 import Environment, FileSystemLoader, select_autoescape
@attr.s
class Message:
id = attr.ib()
platform = attr.ib()
user = attr.ib()
chat = attr.ib()
text = attr.ib()
timestamp = attr.ib()
raw = attr.ib()
@property
de... | import os
from datetime import datetime
import attr
from jinja2 import Environment, FileSystemLoader, select_autoescape
from bottery.conf import settings
@attr.s
class Message:
id = attr.ib()
platform = attr.ib()
user = attr.ib()
chat = attr.ib()
text = attr.ib()
timestamp = attr.ib()
ra... | <commit_before>import os
from datetime import datetime
import attr
from jinja2 import Environment, FileSystemLoader, select_autoescape
@attr.s
class Message:
id = attr.ib()
platform = attr.ib()
user = attr.ib()
chat = attr.ib()
text = attr.ib()
timestamp = attr.ib()
raw = attr.ib()
@... | import os
from datetime import datetime
import attr
from jinja2 import Environment, FileSystemLoader, select_autoescape
from bottery.conf import settings
@attr.s
class Message:
id = attr.ib()
platform = attr.ib()
user = attr.ib()
chat = attr.ib()
text = attr.ib()
timestamp = attr.ib()
ra... | import os
from datetime import datetime
import attr
from jinja2 import Environment, FileSystemLoader, select_autoescape
@attr.s
class Message:
id = attr.ib()
platform = attr.ib()
user = attr.ib()
chat = attr.ib()
text = attr.ib()
timestamp = attr.ib()
raw = attr.ib()
@property
de... | <commit_before>import os
from datetime import datetime
import attr
from jinja2 import Environment, FileSystemLoader, select_autoescape
@attr.s
class Message:
id = attr.ib()
platform = attr.ib()
user = attr.ib()
chat = attr.ib()
text = attr.ib()
timestamp = attr.ib()
raw = attr.ib()
@... |
0d73f5d18a927ffebc3fa32180b608f0c96dcdf1 | Exe_04.py | Exe_04.py | cars = 100
space_in_a_car = 4.0
drivers = 30
passengers = 90
cars_not_driven = cars - drivers
cars_driven = drivers
carpool_capacity = cars_driven * space_in_a_car
average_passengers_per_car = passengers / cars_driven
print("There are", cars, "cars available.")
print("There are only", drivers, "drivers available.")
p... | cars = 100
space_in_a_car = 4.0
drivers = 30
passengers = 90
cars_not_driven = cars - drivers
cars_driven = drivers
carpool_capacity = cars_driven * space_in_a_car
average_passengers_per_car = passengers / cars_driven
print("There are", cars, "cars available.")
print("There are only", drivers, "drivers available.")
p... | Update exercise of variables and names | Update exercise of variables and names
| Python | mit | Oreder/PythonSelfStudy | cars = 100
space_in_a_car = 4.0
drivers = 30
passengers = 90
cars_not_driven = cars - drivers
cars_driven = drivers
carpool_capacity = cars_driven * space_in_a_car
average_passengers_per_car = passengers / cars_driven
print("There are", cars, "cars available.")
print("There are only", drivers, "drivers available.")
p... | cars = 100
space_in_a_car = 4.0
drivers = 30
passengers = 90
cars_not_driven = cars - drivers
cars_driven = drivers
carpool_capacity = cars_driven * space_in_a_car
average_passengers_per_car = passengers / cars_driven
print("There are", cars, "cars available.")
print("There are only", drivers, "drivers available.")
p... | <commit_before>cars = 100
space_in_a_car = 4.0
drivers = 30
passengers = 90
cars_not_driven = cars - drivers
cars_driven = drivers
carpool_capacity = cars_driven * space_in_a_car
average_passengers_per_car = passengers / cars_driven
print("There are", cars, "cars available.")
print("There are only", drivers, "drivers... | cars = 100
space_in_a_car = 4.0
drivers = 30
passengers = 90
cars_not_driven = cars - drivers
cars_driven = drivers
carpool_capacity = cars_driven * space_in_a_car
average_passengers_per_car = passengers / cars_driven
print("There are", cars, "cars available.")
print("There are only", drivers, "drivers available.")
p... | cars = 100
space_in_a_car = 4.0
drivers = 30
passengers = 90
cars_not_driven = cars - drivers
cars_driven = drivers
carpool_capacity = cars_driven * space_in_a_car
average_passengers_per_car = passengers / cars_driven
print("There are", cars, "cars available.")
print("There are only", drivers, "drivers available.")
p... | <commit_before>cars = 100
space_in_a_car = 4.0
drivers = 30
passengers = 90
cars_not_driven = cars - drivers
cars_driven = drivers
carpool_capacity = cars_driven * space_in_a_car
average_passengers_per_car = passengers / cars_driven
print("There are", cars, "cars available.")
print("There are only", drivers, "drivers... |
cc51207881be9c76690bcbc1ce14d048ecc71d76 | commweb/cartridge_hook.py | commweb/cartridge_hook.py | from cartridge.shop.checkout import CheckoutError
from cartridge.shop.models import Cart
from commweb.exc import PaymentDeclinedError
from commweb.purchase import Purchase
def cartridge_payment_handler(request, order_form, order):
cart = Cart.objects.from_request(request)
trans_id = 'WFS_%d' % order.id
p... | from cartridge.shop.checkout import CheckoutError
from commweb.exc import PaymentDeclinedError
from commweb.purchase import Purchase
def cartridge_payment_handler(request, order_form, order):
trans_id = 'WFS_%d' % order.id
p = Purchase(order.total, trans_id,
order_form.cleaned_data['card_number']... | Fix bug where shipping wasn't included in payment amount with cartridge handler | Fix bug where shipping wasn't included in payment amount with cartridge handler
| Python | bsd-2-clause | sjkingo/django-commweb | from cartridge.shop.checkout import CheckoutError
from cartridge.shop.models import Cart
from commweb.exc import PaymentDeclinedError
from commweb.purchase import Purchase
def cartridge_payment_handler(request, order_form, order):
cart = Cart.objects.from_request(request)
trans_id = 'WFS_%d' % order.id
p... | from cartridge.shop.checkout import CheckoutError
from commweb.exc import PaymentDeclinedError
from commweb.purchase import Purchase
def cartridge_payment_handler(request, order_form, order):
trans_id = 'WFS_%d' % order.id
p = Purchase(order.total, trans_id,
order_form.cleaned_data['card_number']... | <commit_before>from cartridge.shop.checkout import CheckoutError
from cartridge.shop.models import Cart
from commweb.exc import PaymentDeclinedError
from commweb.purchase import Purchase
def cartridge_payment_handler(request, order_form, order):
cart = Cart.objects.from_request(request)
trans_id = 'WFS_%d' % ... | from cartridge.shop.checkout import CheckoutError
from commweb.exc import PaymentDeclinedError
from commweb.purchase import Purchase
def cartridge_payment_handler(request, order_form, order):
trans_id = 'WFS_%d' % order.id
p = Purchase(order.total, trans_id,
order_form.cleaned_data['card_number']... | from cartridge.shop.checkout import CheckoutError
from cartridge.shop.models import Cart
from commweb.exc import PaymentDeclinedError
from commweb.purchase import Purchase
def cartridge_payment_handler(request, order_form, order):
cart = Cart.objects.from_request(request)
trans_id = 'WFS_%d' % order.id
p... | <commit_before>from cartridge.shop.checkout import CheckoutError
from cartridge.shop.models import Cart
from commweb.exc import PaymentDeclinedError
from commweb.purchase import Purchase
def cartridge_payment_handler(request, order_form, order):
cart = Cart.objects.from_request(request)
trans_id = 'WFS_%d' % ... |
09371cf8f27c49dec97b05e26ede4709fb01aa81 | examples/filter/simple_example.py | examples/filter/simple_example.py | import pyrox.filtering as filtering
class SimpleFilter(filtering.HttpFilter):
"""
This is an example of a simple filter that simply prints out the
user-agent value from the header
"""
@filtering.handles_request_head
def on_request_head(self, request_message):
user_agent_header = reque... | import pyrox.filtering as filtering
class SimpleFilter(filtering.HttpFilter):
"""
This is an example of a simple filter that simply prints out the
user-agent value from the header
"""
@filtering.handles_request_head
def on_request_head(self, request_message):
user_agent_header = reque... | Remove pass_event (deprecated) and replace with next | Remove pass_event (deprecated) and replace with next | Python | mit | zinic/pyrox,jon-armstrong/pyrox,jon-armstrong/pyrox,akatrevorjay/pyrox,zinic/pyrox,jon-armstrong/pyrox,zinic/pyrox,akatrevorjay/pyrox,akatrevorjay/pyrox | import pyrox.filtering as filtering
class SimpleFilter(filtering.HttpFilter):
"""
This is an example of a simple filter that simply prints out the
user-agent value from the header
"""
@filtering.handles_request_head
def on_request_head(self, request_message):
user_agent_header = reque... | import pyrox.filtering as filtering
class SimpleFilter(filtering.HttpFilter):
"""
This is an example of a simple filter that simply prints out the
user-agent value from the header
"""
@filtering.handles_request_head
def on_request_head(self, request_message):
user_agent_header = reque... | <commit_before>import pyrox.filtering as filtering
class SimpleFilter(filtering.HttpFilter):
"""
This is an example of a simple filter that simply prints out the
user-agent value from the header
"""
@filtering.handles_request_head
def on_request_head(self, request_message):
user_agent... | import pyrox.filtering as filtering
class SimpleFilter(filtering.HttpFilter):
"""
This is an example of a simple filter that simply prints out the
user-agent value from the header
"""
@filtering.handles_request_head
def on_request_head(self, request_message):
user_agent_header = reque... | import pyrox.filtering as filtering
class SimpleFilter(filtering.HttpFilter):
"""
This is an example of a simple filter that simply prints out the
user-agent value from the header
"""
@filtering.handles_request_head
def on_request_head(self, request_message):
user_agent_header = reque... | <commit_before>import pyrox.filtering as filtering
class SimpleFilter(filtering.HttpFilter):
"""
This is an example of a simple filter that simply prints out the
user-agent value from the header
"""
@filtering.handles_request_head
def on_request_head(self, request_message):
user_agent... |
83cbec4ccf669c997bbe6c7131f63ad08a482c39 | examples/mnist-deepautoencoder.py | examples/mnist-deepautoencoder.py | #!/usr/bin/env python
import matplotlib.pyplot as plt
import theanets
from utils import load_mnist, plot_layers, plot_images
train, valid, _ = load_mnist()
e = theanets.Experiment(
theanets.Autoencoder,
layers=(784, 256, 64, 36, 64, 256, 784),
train_batches=100,
tied_weights=True,
)
e.train(train, ... | #!/usr/bin/env python
import matplotlib.pyplot as plt
import theanets
from utils import load_mnist, plot_layers, plot_images
train, valid, _ = load_mnist()
e = theanets.Experiment(
theanets.Autoencoder,
layers=(784, 256, 64, 36, ('tied', 64), ('tied', 256), ('tied', 784)),
train_batches=100,
)
e.train(... | Update example with newer tied layer specification. | Update example with newer tied layer specification.
| Python | mit | lmjohns3/theanets,chrinide/theanets,devdoer/theanets | #!/usr/bin/env python
import matplotlib.pyplot as plt
import theanets
from utils import load_mnist, plot_layers, plot_images
train, valid, _ = load_mnist()
e = theanets.Experiment(
theanets.Autoencoder,
layers=(784, 256, 64, 36, 64, 256, 784),
train_batches=100,
tied_weights=True,
)
e.train(train, ... | #!/usr/bin/env python
import matplotlib.pyplot as plt
import theanets
from utils import load_mnist, plot_layers, plot_images
train, valid, _ = load_mnist()
e = theanets.Experiment(
theanets.Autoencoder,
layers=(784, 256, 64, 36, ('tied', 64), ('tied', 256), ('tied', 784)),
train_batches=100,
)
e.train(... | <commit_before>#!/usr/bin/env python
import matplotlib.pyplot as plt
import theanets
from utils import load_mnist, plot_layers, plot_images
train, valid, _ = load_mnist()
e = theanets.Experiment(
theanets.Autoencoder,
layers=(784, 256, 64, 36, 64, 256, 784),
train_batches=100,
tied_weights=True,
)
... | #!/usr/bin/env python
import matplotlib.pyplot as plt
import theanets
from utils import load_mnist, plot_layers, plot_images
train, valid, _ = load_mnist()
e = theanets.Experiment(
theanets.Autoencoder,
layers=(784, 256, 64, 36, ('tied', 64), ('tied', 256), ('tied', 784)),
train_batches=100,
)
e.train(... | #!/usr/bin/env python
import matplotlib.pyplot as plt
import theanets
from utils import load_mnist, plot_layers, plot_images
train, valid, _ = load_mnist()
e = theanets.Experiment(
theanets.Autoencoder,
layers=(784, 256, 64, 36, 64, 256, 784),
train_batches=100,
tied_weights=True,
)
e.train(train, ... | <commit_before>#!/usr/bin/env python
import matplotlib.pyplot as plt
import theanets
from utils import load_mnist, plot_layers, plot_images
train, valid, _ = load_mnist()
e = theanets.Experiment(
theanets.Autoencoder,
layers=(784, 256, 64, 36, 64, 256, 784),
train_batches=100,
tied_weights=True,
)
... |
f10ac5cb7e01feeaaab5b8d308cb0640afaa895c | tests/test_encoding.py | tests/test_encoding.py | # -*- encoding: utf-8 -*-
import pytest
from owslib.fes import PropertyIsEqualTo
from pydov.search.boring import BoringSearch
from tests.abstract import (
AbstractTestSearch,
service_ok,
)
class TestEncoding(AbstractTestSearch):
"""Class grouping tests related to encoding issues."""
@pytest.mark.on... | # -*- encoding: utf-8 -*-
import pytest
from owslib.fes import PropertyIsEqualTo
from pydov.search.boring import BoringSearch
from tests.abstract import (
AbstractTestSearch,
service_ok,
)
class TestEncoding(AbstractTestSearch):
"""Class grouping tests related to encoding issues."""
@pytest.mark.on... | Fix encoding test: compare with unicode string. | Fix encoding test: compare with unicode string.
| Python | mit | DOV-Vlaanderen/pydov | # -*- encoding: utf-8 -*-
import pytest
from owslib.fes import PropertyIsEqualTo
from pydov.search.boring import BoringSearch
from tests.abstract import (
AbstractTestSearch,
service_ok,
)
class TestEncoding(AbstractTestSearch):
"""Class grouping tests related to encoding issues."""
@pytest.mark.on... | # -*- encoding: utf-8 -*-
import pytest
from owslib.fes import PropertyIsEqualTo
from pydov.search.boring import BoringSearch
from tests.abstract import (
AbstractTestSearch,
service_ok,
)
class TestEncoding(AbstractTestSearch):
"""Class grouping tests related to encoding issues."""
@pytest.mark.on... | <commit_before># -*- encoding: utf-8 -*-
import pytest
from owslib.fes import PropertyIsEqualTo
from pydov.search.boring import BoringSearch
from tests.abstract import (
AbstractTestSearch,
service_ok,
)
class TestEncoding(AbstractTestSearch):
"""Class grouping tests related to encoding issues."""
... | # -*- encoding: utf-8 -*-
import pytest
from owslib.fes import PropertyIsEqualTo
from pydov.search.boring import BoringSearch
from tests.abstract import (
AbstractTestSearch,
service_ok,
)
class TestEncoding(AbstractTestSearch):
"""Class grouping tests related to encoding issues."""
@pytest.mark.on... | # -*- encoding: utf-8 -*-
import pytest
from owslib.fes import PropertyIsEqualTo
from pydov.search.boring import BoringSearch
from tests.abstract import (
AbstractTestSearch,
service_ok,
)
class TestEncoding(AbstractTestSearch):
"""Class grouping tests related to encoding issues."""
@pytest.mark.on... | <commit_before># -*- encoding: utf-8 -*-
import pytest
from owslib.fes import PropertyIsEqualTo
from pydov.search.boring import BoringSearch
from tests.abstract import (
AbstractTestSearch,
service_ok,
)
class TestEncoding(AbstractTestSearch):
"""Class grouping tests related to encoding issues."""
... |
5c2b5b4ad973717ab35c75ff8d5d63d87c15cf79 | twphotos/settings.py | twphotos/settings.py | import ConfigParser
import os
import sys
USER_DIR = os.path.join(os.path.expanduser('~'))
USER_CONFIG = os.path.join(USER_DIR, '.twphotos')
d = os.path.dirname(__file__)
PROJECT_PATH = os.path.abspath(os.path.join(d, os.pardir))
TEST_CONFIG = os.path.join(PROJECT_PATH, '.twphotos')
sys.path.append(os.path.join(PROJECT... | import ConfigParser
import os
import sys
USER_DIR = os.path.join(os.path.expanduser('~'))
USER_CONFIG = os.path.join(USER_DIR, '.twphotos')
d = os.path.dirname(__file__)
PROJECT_PATH = os.path.abspath(os.path.join(d, os.pardir))
TEST_CONFIG = os.path.join(PROJECT_PATH, '.twphotos')
sys.path.insert(1, os.path.join(PROJ... | Add sys.path for python-twitter for local development | Add sys.path for python-twitter for local development
| Python | bsd-2-clause | shichao-an/twitter-photos | import ConfigParser
import os
import sys
USER_DIR = os.path.join(os.path.expanduser('~'))
USER_CONFIG = os.path.join(USER_DIR, '.twphotos')
d = os.path.dirname(__file__)
PROJECT_PATH = os.path.abspath(os.path.join(d, os.pardir))
TEST_CONFIG = os.path.join(PROJECT_PATH, '.twphotos')
sys.path.append(os.path.join(PROJECT... | import ConfigParser
import os
import sys
USER_DIR = os.path.join(os.path.expanduser('~'))
USER_CONFIG = os.path.join(USER_DIR, '.twphotos')
d = os.path.dirname(__file__)
PROJECT_PATH = os.path.abspath(os.path.join(d, os.pardir))
TEST_CONFIG = os.path.join(PROJECT_PATH, '.twphotos')
sys.path.insert(1, os.path.join(PROJ... | <commit_before>import ConfigParser
import os
import sys
USER_DIR = os.path.join(os.path.expanduser('~'))
USER_CONFIG = os.path.join(USER_DIR, '.twphotos')
d = os.path.dirname(__file__)
PROJECT_PATH = os.path.abspath(os.path.join(d, os.pardir))
TEST_CONFIG = os.path.join(PROJECT_PATH, '.twphotos')
sys.path.append(os.pa... | import ConfigParser
import os
import sys
USER_DIR = os.path.join(os.path.expanduser('~'))
USER_CONFIG = os.path.join(USER_DIR, '.twphotos')
d = os.path.dirname(__file__)
PROJECT_PATH = os.path.abspath(os.path.join(d, os.pardir))
TEST_CONFIG = os.path.join(PROJECT_PATH, '.twphotos')
sys.path.insert(1, os.path.join(PROJ... | import ConfigParser
import os
import sys
USER_DIR = os.path.join(os.path.expanduser('~'))
USER_CONFIG = os.path.join(USER_DIR, '.twphotos')
d = os.path.dirname(__file__)
PROJECT_PATH = os.path.abspath(os.path.join(d, os.pardir))
TEST_CONFIG = os.path.join(PROJECT_PATH, '.twphotos')
sys.path.append(os.path.join(PROJECT... | <commit_before>import ConfigParser
import os
import sys
USER_DIR = os.path.join(os.path.expanduser('~'))
USER_CONFIG = os.path.join(USER_DIR, '.twphotos')
d = os.path.dirname(__file__)
PROJECT_PATH = os.path.abspath(os.path.join(d, os.pardir))
TEST_CONFIG = os.path.join(PROJECT_PATH, '.twphotos')
sys.path.append(os.pa... |
79fd5586625d2d7873bc71514eda121325a9646a | linkedin_scraper/commands/people_search.py | linkedin_scraper/commands/people_search.py | from getpass import getpass
from scrapy.commands.crawl import Command as BaseCommand
def sanitize_query(query):
return query.replace(' ', '+')
class Command(BaseCommand):
def short_desc(self):
return "Scrap people from LinkedIn"
def syntax(self):
return "[options] <query>"
def add... | from getpass import getpass
from scrapy.commands.crawl import Command as BaseCommand
from scrapy.exceptions import UsageError
def sanitize_query(query):
return query.replace(' ', '+')
class Command(BaseCommand):
def short_desc(self):
return "Scrap people from LinkedIn"
def syntax(self):
... | Fix IndexError when running command without arguments. | Fix IndexError when running command without arguments.
| Python | mit | nihn/linkedin-scraper,nihn/linkedin-scraper | from getpass import getpass
from scrapy.commands.crawl import Command as BaseCommand
def sanitize_query(query):
return query.replace(' ', '+')
class Command(BaseCommand):
def short_desc(self):
return "Scrap people from LinkedIn"
def syntax(self):
return "[options] <query>"
def add... | from getpass import getpass
from scrapy.commands.crawl import Command as BaseCommand
from scrapy.exceptions import UsageError
def sanitize_query(query):
return query.replace(' ', '+')
class Command(BaseCommand):
def short_desc(self):
return "Scrap people from LinkedIn"
def syntax(self):
... | <commit_before>from getpass import getpass
from scrapy.commands.crawl import Command as BaseCommand
def sanitize_query(query):
return query.replace(' ', '+')
class Command(BaseCommand):
def short_desc(self):
return "Scrap people from LinkedIn"
def syntax(self):
return "[options] <query... | from getpass import getpass
from scrapy.commands.crawl import Command as BaseCommand
from scrapy.exceptions import UsageError
def sanitize_query(query):
return query.replace(' ', '+')
class Command(BaseCommand):
def short_desc(self):
return "Scrap people from LinkedIn"
def syntax(self):
... | from getpass import getpass
from scrapy.commands.crawl import Command as BaseCommand
def sanitize_query(query):
return query.replace(' ', '+')
class Command(BaseCommand):
def short_desc(self):
return "Scrap people from LinkedIn"
def syntax(self):
return "[options] <query>"
def add... | <commit_before>from getpass import getpass
from scrapy.commands.crawl import Command as BaseCommand
def sanitize_query(query):
return query.replace(' ', '+')
class Command(BaseCommand):
def short_desc(self):
return "Scrap people from LinkedIn"
def syntax(self):
return "[options] <query... |
f9abd5434dded655591029ae45859e8608b4e5d6 | django_facebook/decorators.py | django_facebook/decorators.py | from functools import update_wrapper, wraps
from django.contrib.auth import REDIRECT_FIELD_NAME
from django.http import HttpResponse, HttpResponseRedirect
from django.utils.decorators import available_attrs
from django.utils.http import urlquote
def facebook_required(function=None, redirect_field_name=REDIRECT... | from functools import update_wrapper, wraps
from django.contrib.auth import REDIRECT_FIELD_NAME
from django.http import HttpResponse, HttpResponseRedirect
from django.utils.decorators import available_attrs
from django.utils.http import urlquote
def facebook_required(function=None, redirect_field_name=REDIRECT... | Fix possible problem with middleware | Fix possible problem with middleware
| Python | mit | tino/django-facebook2,srijanmishra/django-facebook,aidanlister/django-facebook,tino/django-facebook2,vstoykov/django4facebook | from functools import update_wrapper, wraps
from django.contrib.auth import REDIRECT_FIELD_NAME
from django.http import HttpResponse, HttpResponseRedirect
from django.utils.decorators import available_attrs
from django.utils.http import urlquote
def facebook_required(function=None, redirect_field_name=REDIRECT... | from functools import update_wrapper, wraps
from django.contrib.auth import REDIRECT_FIELD_NAME
from django.http import HttpResponse, HttpResponseRedirect
from django.utils.decorators import available_attrs
from django.utils.http import urlquote
def facebook_required(function=None, redirect_field_name=REDIRECT... | <commit_before>from functools import update_wrapper, wraps
from django.contrib.auth import REDIRECT_FIELD_NAME
from django.http import HttpResponse, HttpResponseRedirect
from django.utils.decorators import available_attrs
from django.utils.http import urlquote
def facebook_required(function=None, redirect_fiel... | from functools import update_wrapper, wraps
from django.contrib.auth import REDIRECT_FIELD_NAME
from django.http import HttpResponse, HttpResponseRedirect
from django.utils.decorators import available_attrs
from django.utils.http import urlquote
def facebook_required(function=None, redirect_field_name=REDIRECT... | from functools import update_wrapper, wraps
from django.contrib.auth import REDIRECT_FIELD_NAME
from django.http import HttpResponse, HttpResponseRedirect
from django.utils.decorators import available_attrs
from django.utils.http import urlquote
def facebook_required(function=None, redirect_field_name=REDIRECT... | <commit_before>from functools import update_wrapper, wraps
from django.contrib.auth import REDIRECT_FIELD_NAME
from django.http import HttpResponse, HttpResponseRedirect
from django.utils.decorators import available_attrs
from django.utils.http import urlquote
def facebook_required(function=None, redirect_fiel... |
5dc4a262771e616458feeaa9bf4ca8568736761a | docs/contributors/generate.py | docs/contributors/generate.py | """
Generate snippets to copy-paste.
"""
import sys
from jinja2 import Template
from fetch import HERE, load_awesome_people
TPL_FILE = HERE / 'snippet.jinja2'
HTTPIE_TEAM = {
'BoboTiG',
'claudiatd',
'jakubroztocil',
'jkbr',
}
def generate_snippets(release: str) -> str:
people = load_awesome_peo... | """
Generate snippets to copy-paste.
"""
import sys
from jinja2 import Template
from fetch import HERE, load_awesome_people
TPL_FILE = HERE / 'snippet.jinja2'
HTTPIE_TEAM = {
'claudiatd',
'jakubroztocil',
'jkbr',
}
def generate_snippets(release: str) -> str:
people = load_awesome_people()
contr... | Remove myself from the HTTPie team | Remove myself from the HTTPie team | Python | bsd-3-clause | jakubroztocil/httpie,PKRoma/httpie,jakubroztocil/httpie,jakubroztocil/httpie,PKRoma/httpie | """
Generate snippets to copy-paste.
"""
import sys
from jinja2 import Template
from fetch import HERE, load_awesome_people
TPL_FILE = HERE / 'snippet.jinja2'
HTTPIE_TEAM = {
'BoboTiG',
'claudiatd',
'jakubroztocil',
'jkbr',
}
def generate_snippets(release: str) -> str:
people = load_awesome_peo... | """
Generate snippets to copy-paste.
"""
import sys
from jinja2 import Template
from fetch import HERE, load_awesome_people
TPL_FILE = HERE / 'snippet.jinja2'
HTTPIE_TEAM = {
'claudiatd',
'jakubroztocil',
'jkbr',
}
def generate_snippets(release: str) -> str:
people = load_awesome_people()
contr... | <commit_before>"""
Generate snippets to copy-paste.
"""
import sys
from jinja2 import Template
from fetch import HERE, load_awesome_people
TPL_FILE = HERE / 'snippet.jinja2'
HTTPIE_TEAM = {
'BoboTiG',
'claudiatd',
'jakubroztocil',
'jkbr',
}
def generate_snippets(release: str) -> str:
people = l... | """
Generate snippets to copy-paste.
"""
import sys
from jinja2 import Template
from fetch import HERE, load_awesome_people
TPL_FILE = HERE / 'snippet.jinja2'
HTTPIE_TEAM = {
'claudiatd',
'jakubroztocil',
'jkbr',
}
def generate_snippets(release: str) -> str:
people = load_awesome_people()
contr... | """
Generate snippets to copy-paste.
"""
import sys
from jinja2 import Template
from fetch import HERE, load_awesome_people
TPL_FILE = HERE / 'snippet.jinja2'
HTTPIE_TEAM = {
'BoboTiG',
'claudiatd',
'jakubroztocil',
'jkbr',
}
def generate_snippets(release: str) -> str:
people = load_awesome_peo... | <commit_before>"""
Generate snippets to copy-paste.
"""
import sys
from jinja2 import Template
from fetch import HERE, load_awesome_people
TPL_FILE = HERE / 'snippet.jinja2'
HTTPIE_TEAM = {
'BoboTiG',
'claudiatd',
'jakubroztocil',
'jkbr',
}
def generate_snippets(release: str) -> str:
people = l... |
f16d93216e1f0890b0551ca3b741130bb12781ef | gold_digger/settings/__init__.py | gold_digger/settings/__init__.py | # -*- coding: utf-8 -*-
from os import environ, path
from ._settings_default import *
from ..exceptions import ImproperlyConfigured
profile = environ.get("GOLD_DIGGER_PROFILE", "local")
if profile == "master":
from ._settings_master import *
elif profile == "local":
try:
from ._settings_local import... | # -*- coding: utf-8 -*-
from os import environ, path
from ._settings_default import *
from ..exceptions import ImproperlyConfigured
PROFILE = environ.get("GOLD_DIGGER_PROFILE", "local")
if PROFILE == "master":
from ._settings_master import *
elif PROFILE == "local":
try:
from ._settings_local import... | Make global variable upper-case and use f-strings | Make global variable upper-case and use f-strings
| Python | apache-2.0 | business-factory/gold-digger | # -*- coding: utf-8 -*-
from os import environ, path
from ._settings_default import *
from ..exceptions import ImproperlyConfigured
profile = environ.get("GOLD_DIGGER_PROFILE", "local")
if profile == "master":
from ._settings_master import *
elif profile == "local":
try:
from ._settings_local import... | # -*- coding: utf-8 -*-
from os import environ, path
from ._settings_default import *
from ..exceptions import ImproperlyConfigured
PROFILE = environ.get("GOLD_DIGGER_PROFILE", "local")
if PROFILE == "master":
from ._settings_master import *
elif PROFILE == "local":
try:
from ._settings_local import... | <commit_before># -*- coding: utf-8 -*-
from os import environ, path
from ._settings_default import *
from ..exceptions import ImproperlyConfigured
profile = environ.get("GOLD_DIGGER_PROFILE", "local")
if profile == "master":
from ._settings_master import *
elif profile == "local":
try:
from ._settin... | # -*- coding: utf-8 -*-
from os import environ, path
from ._settings_default import *
from ..exceptions import ImproperlyConfigured
PROFILE = environ.get("GOLD_DIGGER_PROFILE", "local")
if PROFILE == "master":
from ._settings_master import *
elif PROFILE == "local":
try:
from ._settings_local import... | # -*- coding: utf-8 -*-
from os import environ, path
from ._settings_default import *
from ..exceptions import ImproperlyConfigured
profile = environ.get("GOLD_DIGGER_PROFILE", "local")
if profile == "master":
from ._settings_master import *
elif profile == "local":
try:
from ._settings_local import... | <commit_before># -*- coding: utf-8 -*-
from os import environ, path
from ._settings_default import *
from ..exceptions import ImproperlyConfigured
profile = environ.get("GOLD_DIGGER_PROFILE", "local")
if profile == "master":
from ._settings_master import *
elif profile == "local":
try:
from ._settin... |
763051db8cb4efe9b3e85fdb3d974674cf435607 | us_ignite/snippets/management/commands/snippets_load_fixtures.py | us_ignite/snippets/management/commands/snippets_load_fixtures.py | from django.core.management.base import BaseCommand
from us_ignite.snippets.models import Snippet
FIXTURES = [
{
'slug': 'home-box',
'name': 'UP NEXT: LOREM IPSUM',
'body': '',
'url_text': 'GET INVOLVED',
'url': '',
},
{
'slug': 'featured',
'name': ... | from django.core.management.base import BaseCommand
from us_ignite.snippets.models import Snippet
FIXTURES = [
{
'slug': 'home-box',
'name': 'UP NEXT: LOREM IPSUM',
'body': '',
'url_text': 'GET INVOLVED',
'url': '',
},
{
'slug': 'featured',
'name': ... | Add fixture for the advert in the blog sidebar advert. | Add fixture for the advert in the blog sidebar advert.
| Python | bsd-3-clause | us-ignite/us_ignite,us-ignite/us_ignite,us-ignite/us_ignite,us-ignite/us_ignite,us-ignite/us_ignite | from django.core.management.base import BaseCommand
from us_ignite.snippets.models import Snippet
FIXTURES = [
{
'slug': 'home-box',
'name': 'UP NEXT: LOREM IPSUM',
'body': '',
'url_text': 'GET INVOLVED',
'url': '',
},
{
'slug': 'featured',
'name': ... | from django.core.management.base import BaseCommand
from us_ignite.snippets.models import Snippet
FIXTURES = [
{
'slug': 'home-box',
'name': 'UP NEXT: LOREM IPSUM',
'body': '',
'url_text': 'GET INVOLVED',
'url': '',
},
{
'slug': 'featured',
'name': ... | <commit_before>from django.core.management.base import BaseCommand
from us_ignite.snippets.models import Snippet
FIXTURES = [
{
'slug': 'home-box',
'name': 'UP NEXT: LOREM IPSUM',
'body': '',
'url_text': 'GET INVOLVED',
'url': '',
},
{
'slug': 'featured',
... | from django.core.management.base import BaseCommand
from us_ignite.snippets.models import Snippet
FIXTURES = [
{
'slug': 'home-box',
'name': 'UP NEXT: LOREM IPSUM',
'body': '',
'url_text': 'GET INVOLVED',
'url': '',
},
{
'slug': 'featured',
'name': ... | from django.core.management.base import BaseCommand
from us_ignite.snippets.models import Snippet
FIXTURES = [
{
'slug': 'home-box',
'name': 'UP NEXT: LOREM IPSUM',
'body': '',
'url_text': 'GET INVOLVED',
'url': '',
},
{
'slug': 'featured',
'name': ... | <commit_before>from django.core.management.base import BaseCommand
from us_ignite.snippets.models import Snippet
FIXTURES = [
{
'slug': 'home-box',
'name': 'UP NEXT: LOREM IPSUM',
'body': '',
'url_text': 'GET INVOLVED',
'url': '',
},
{
'slug': 'featured',
... |
49a371728a2e9167494264e0c07c6dd90abec0ff | saleor/core/views.py | saleor/core/views.py | from django.template.response import TemplateResponse
from ..product.utils import products_with_availability, products_with_details
def home(request):
products = Product.objects.get_available_products()[:6]
products = products.prefetch_related('categories', 'images',
... | from django.template.response import TemplateResponse
from ..product.utils import products_with_availability, products_with_details
def home(request):
products = products_with_details(request.user)[:6]
products = products_with_availability(
products, discounts=request.discounts, local_currency=reques... | Fix homepage after wrong rebase | Fix homepage after wrong rebase
| Python | bsd-3-clause | jreigel/saleor,car3oon/saleor,HyperManTT/ECommerceSaleor,tfroehlich82/saleor,HyperManTT/ECommerceSaleor,UITools/saleor,mociepka/saleor,car3oon/saleor,KenMutemi/saleor,jreigel/saleor,UITools/saleor,UITools/saleor,mociepka/saleor,maferelo/saleor,itbabu/saleor,UITools/saleor,KenMutemi/saleor,mociepka/saleor,itbabu/saleor,... | from django.template.response import TemplateResponse
from ..product.utils import products_with_availability, products_with_details
def home(request):
products = Product.objects.get_available_products()[:6]
products = products.prefetch_related('categories', 'images',
... | from django.template.response import TemplateResponse
from ..product.utils import products_with_availability, products_with_details
def home(request):
products = products_with_details(request.user)[:6]
products = products_with_availability(
products, discounts=request.discounts, local_currency=reques... | <commit_before>from django.template.response import TemplateResponse
from ..product.utils import products_with_availability, products_with_details
def home(request):
products = Product.objects.get_available_products()[:6]
products = products.prefetch_related('categories', 'images',
... | from django.template.response import TemplateResponse
from ..product.utils import products_with_availability, products_with_details
def home(request):
products = products_with_details(request.user)[:6]
products = products_with_availability(
products, discounts=request.discounts, local_currency=reques... | from django.template.response import TemplateResponse
from ..product.utils import products_with_availability, products_with_details
def home(request):
products = Product.objects.get_available_products()[:6]
products = products.prefetch_related('categories', 'images',
... | <commit_before>from django.template.response import TemplateResponse
from ..product.utils import products_with_availability, products_with_details
def home(request):
products = Product.objects.get_available_products()[:6]
products = products.prefetch_related('categories', 'images',
... |
ef7163a18ee1cf11c1290f2a8832d8cf39fb552c | fjord/base/tests/test_commands.py | fjord/base/tests/test_commands.py | from django.core.management import call_command
from fjord.base.tests import TestCase
class TestGenerateData(TestCase):
def test_generate_data(self):
"""Make sure ./manage.py generatedata runs."""
call_command('generatedata')
call_command('generatedata', bigsample=True)
class TestPOLint... | from django.core.management import call_command
from fjord.base.tests import TestCase
class TestGenerateData(TestCase):
def test_generate_data(self):
"""Make sure ./manage.py generatedata runs."""
call_command('generatedata')
call_command('generatedata', bigsample=True)
class TestPOLint... | Adjust test_polint to be less stdout-spammy | Adjust test_polint to be less stdout-spammy
| Python | bsd-3-clause | hoosteeno/fjord,lgp171188/fjord,mozilla/fjord,Ritsyy/fjord,lgp171188/fjord,rlr/fjord,staranjeet/fjord,DESHRAJ/fjord,hoosteeno/fjord,Ritsyy/fjord,rlr/fjord,lgp171188/fjord,DESHRAJ/fjord,mozilla/fjord,hoosteeno/fjord,hoosteeno/fjord,rlr/fjord,Ritsyy/fjord,staranjeet/fjord,lgp171188/fjord,mozilla/fjord,Ritsyy/fjord,DESHRA... | from django.core.management import call_command
from fjord.base.tests import TestCase
class TestGenerateData(TestCase):
def test_generate_data(self):
"""Make sure ./manage.py generatedata runs."""
call_command('generatedata')
call_command('generatedata', bigsample=True)
class TestPOLint... | from django.core.management import call_command
from fjord.base.tests import TestCase
class TestGenerateData(TestCase):
def test_generate_data(self):
"""Make sure ./manage.py generatedata runs."""
call_command('generatedata')
call_command('generatedata', bigsample=True)
class TestPOLint... | <commit_before>from django.core.management import call_command
from fjord.base.tests import TestCase
class TestGenerateData(TestCase):
def test_generate_data(self):
"""Make sure ./manage.py generatedata runs."""
call_command('generatedata')
call_command('generatedata', bigsample=True)
c... | from django.core.management import call_command
from fjord.base.tests import TestCase
class TestGenerateData(TestCase):
def test_generate_data(self):
"""Make sure ./manage.py generatedata runs."""
call_command('generatedata')
call_command('generatedata', bigsample=True)
class TestPOLint... | from django.core.management import call_command
from fjord.base.tests import TestCase
class TestGenerateData(TestCase):
def test_generate_data(self):
"""Make sure ./manage.py generatedata runs."""
call_command('generatedata')
call_command('generatedata', bigsample=True)
class TestPOLint... | <commit_before>from django.core.management import call_command
from fjord.base.tests import TestCase
class TestGenerateData(TestCase):
def test_generate_data(self):
"""Make sure ./manage.py generatedata runs."""
call_command('generatedata')
call_command('generatedata', bigsample=True)
c... |
c0c822df243894106a7fd376582598e4aebb4c24 | kobo/hub/decorators.py | kobo/hub/decorators.py | # -*- coding: utf-8 -*-
from django.core.exceptions import PermissionDenied, SuspiciousOperation
from kobo.decorators import decorator_with_args
from kobo.django.xmlrpc.decorators import *
def validate_worker(func):
def _new_func(request, *args, **kwargs):
if not request.user.is_authenticated():
... | # -*- coding: utf-8 -*-
import socket
from django.core.exceptions import PermissionDenied, SuspiciousOperation
from kobo.decorators import decorator_with_args
from kobo.django.xmlrpc.decorators import *
def validate_worker(func):
def _new_func(request, *args, **kwargs):
if not request.user.is_authentic... | Check worker's FQDN against username. | Check worker's FQDN against username.
| Python | lgpl-2.1 | pombredanne/https-git.fedorahosted.org-git-kobo,pombredanne/https-git.fedorahosted.org-git-kobo,pombredanne/https-git.fedorahosted.org-git-kobo,release-engineering/kobo,release-engineering/kobo,release-engineering/kobo,release-engineering/kobo,pombredanne/https-git.fedorahosted.org-git-kobo | # -*- coding: utf-8 -*-
from django.core.exceptions import PermissionDenied, SuspiciousOperation
from kobo.decorators import decorator_with_args
from kobo.django.xmlrpc.decorators import *
def validate_worker(func):
def _new_func(request, *args, **kwargs):
if not request.user.is_authenticated():
... | # -*- coding: utf-8 -*-
import socket
from django.core.exceptions import PermissionDenied, SuspiciousOperation
from kobo.decorators import decorator_with_args
from kobo.django.xmlrpc.decorators import *
def validate_worker(func):
def _new_func(request, *args, **kwargs):
if not request.user.is_authentic... | <commit_before># -*- coding: utf-8 -*-
from django.core.exceptions import PermissionDenied, SuspiciousOperation
from kobo.decorators import decorator_with_args
from kobo.django.xmlrpc.decorators import *
def validate_worker(func):
def _new_func(request, *args, **kwargs):
if not request.user.is_authentic... | # -*- coding: utf-8 -*-
import socket
from django.core.exceptions import PermissionDenied, SuspiciousOperation
from kobo.decorators import decorator_with_args
from kobo.django.xmlrpc.decorators import *
def validate_worker(func):
def _new_func(request, *args, **kwargs):
if not request.user.is_authentic... | # -*- coding: utf-8 -*-
from django.core.exceptions import PermissionDenied, SuspiciousOperation
from kobo.decorators import decorator_with_args
from kobo.django.xmlrpc.decorators import *
def validate_worker(func):
def _new_func(request, *args, **kwargs):
if not request.user.is_authenticated():
... | <commit_before># -*- coding: utf-8 -*-
from django.core.exceptions import PermissionDenied, SuspiciousOperation
from kobo.decorators import decorator_with_args
from kobo.django.xmlrpc.decorators import *
def validate_worker(func):
def _new_func(request, *args, **kwargs):
if not request.user.is_authentic... |
337e7ae58abc7c192633144cc3913078ae3d38bf | hc2002/plugin/symbolic_values.py | hc2002/plugin/symbolic_values.py | import hc2002.plugin as plugin
import hc2002.config as config
plugin.register_for_resource(__name__, 'hc2002.resource.instance')
_prefixes = ('availability-zone:', 'image:', 'kernel:', 'key:',
'load-balancers:', 'ramdisk:', 'security-groups:', 'spot-price:',
'subnet:')
def apply(instance):
def _r... | import hc2002.plugin as plugin
import hc2002.config as config
plugin.register_for_resource(__name__, 'hc2002.resource.instance')
_prefixes = ('availability-zone:', 'image:', 'kernel:', 'key:',
'load-balancers:', 'ramdisk:', 'security-groups:', 'spot-price:',
'subnet:')
def apply(instance):
def re... | Fix infinite loop with missing symbol definition | Fix infinite loop with missing symbol definition
The local function _resolve_symbol is renamed for improved tracebacks.
| Python | apache-2.0 | biochimia/hc2000 | import hc2002.plugin as plugin
import hc2002.config as config
plugin.register_for_resource(__name__, 'hc2002.resource.instance')
_prefixes = ('availability-zone:', 'image:', 'kernel:', 'key:',
'load-balancers:', 'ramdisk:', 'security-groups:', 'spot-price:',
'subnet:')
def apply(instance):
def _r... | import hc2002.plugin as plugin
import hc2002.config as config
plugin.register_for_resource(__name__, 'hc2002.resource.instance')
_prefixes = ('availability-zone:', 'image:', 'kernel:', 'key:',
'load-balancers:', 'ramdisk:', 'security-groups:', 'spot-price:',
'subnet:')
def apply(instance):
def re... | <commit_before>import hc2002.plugin as plugin
import hc2002.config as config
plugin.register_for_resource(__name__, 'hc2002.resource.instance')
_prefixes = ('availability-zone:', 'image:', 'kernel:', 'key:',
'load-balancers:', 'ramdisk:', 'security-groups:', 'spot-price:',
'subnet:')
def apply(instan... | import hc2002.plugin as plugin
import hc2002.config as config
plugin.register_for_resource(__name__, 'hc2002.resource.instance')
_prefixes = ('availability-zone:', 'image:', 'kernel:', 'key:',
'load-balancers:', 'ramdisk:', 'security-groups:', 'spot-price:',
'subnet:')
def apply(instance):
def re... | import hc2002.plugin as plugin
import hc2002.config as config
plugin.register_for_resource(__name__, 'hc2002.resource.instance')
_prefixes = ('availability-zone:', 'image:', 'kernel:', 'key:',
'load-balancers:', 'ramdisk:', 'security-groups:', 'spot-price:',
'subnet:')
def apply(instance):
def _r... | <commit_before>import hc2002.plugin as plugin
import hc2002.config as config
plugin.register_for_resource(__name__, 'hc2002.resource.instance')
_prefixes = ('availability-zone:', 'image:', 'kernel:', 'key:',
'load-balancers:', 'ramdisk:', 'security-groups:', 'spot-price:',
'subnet:')
def apply(instan... |
470f089a764185350b698725c6720e602c1eb804 | neutron/plugins/ml2/drivers/mlnx/config.py | neutron/plugins/ml2/drivers/mlnx/config.py | # Copyright (c) 2014 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | # Copyright (c) 2014 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | Remove extra space in help string | Remove extra space in help string
Extra spaces make the openstack-manuals tests fail with a niceness
error. This patch removes an extra space at the end of a help string.
Change-Id: I29bab90ea5a6f648c4539c7cd20cd9b2b63055c2
| Python | apache-2.0 | apporc/neutron,magic0704/neutron,wenhuizhang/neutron,glove747/liberty-neutron,asgard-lab/neutron,neoareslinux/neutron,adelina-t/neutron,silenci/neutron,chitr/neutron,CiscoSystems/neutron,waltBB/neutron_read,paninetworks/neutron,openstack/neutron,sasukeh/neutron,yamahata/neutron,eayunstack/neutron,aristanetworks/neutron... | # Copyright (c) 2014 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | # Copyright (c) 2014 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | <commit_before># Copyright (c) 2014 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless re... | # Copyright (c) 2014 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | # Copyright (c) 2014 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | <commit_before># Copyright (c) 2014 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless re... |
ad766ba20db73ceb433b9afe3b5db3e52cf1494a | addons/sale_stock/models/stock_config_settings.py | addons/sale_stock/models/stock_config_settings.py | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class StockConfigSettings(models.TransientModel):
_inherit = 'stock.config.settings'
security_lead = fields.Float(related='company_id.security_lead')
default_new_security_le... | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class StockConfigSettings(models.TransientModel):
_inherit = 'stock.config.settings'
security_lead = fields.Float(related='company_id.security_lead')
default_new_security_le... | Make default_picking_policy a required field in settings | [IMP] stock: Make default_picking_policy a required field in settings
| Python | agpl-3.0 | ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class StockConfigSettings(models.TransientModel):
_inherit = 'stock.config.settings'
security_lead = fields.Float(related='company_id.security_lead')
default_new_security_le... | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class StockConfigSettings(models.TransientModel):
_inherit = 'stock.config.settings'
security_lead = fields.Float(related='company_id.security_lead')
default_new_security_le... | <commit_before># -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class StockConfigSettings(models.TransientModel):
_inherit = 'stock.config.settings'
security_lead = fields.Float(related='company_id.security_lead')
default_... | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class StockConfigSettings(models.TransientModel):
_inherit = 'stock.config.settings'
security_lead = fields.Float(related='company_id.security_lead')
default_new_security_le... | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class StockConfigSettings(models.TransientModel):
_inherit = 'stock.config.settings'
security_lead = fields.Float(related='company_id.security_lead')
default_new_security_le... | <commit_before># -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class StockConfigSettings(models.TransientModel):
_inherit = 'stock.config.settings'
security_lead = fields.Float(related='company_id.security_lead')
default_... |
96dd8312cded04e5f5758495e72238d58905be7b | count.py | count.py | import json
from collections import Counter
from Bio import SeqIO
from Bio.SeqUtils import GC
for seq_record in SeqIO.parse("samples/test.fasta", "fasta"):
cnt = Counter()
line = str(seq_record.seq)
i = 0
for j in range(((len(line))/ 3)):
cnt[line[i:i+3]] += 1
i += 3
print json.dumps(
... | #!/usr/bin/python
import getopt
import json
import sys
from collections import Counter
from Bio import SeqIO
from Bio.SeqUtils import GC
def compute(inputfile):
for seq_record in SeqIO.parse(inputfile, "fasta"):
cnt = Counter()
line = str(seq_record.seq)
i = 0
for j in range(((len(line))/ 3... | Add -i flag for input | Add -i flag for input
| Python | apache-2.0 | PDX-Flamingo/codonpdx-python,PDX-Flamingo/codonpdx-python | import json
from collections import Counter
from Bio import SeqIO
from Bio.SeqUtils import GC
for seq_record in SeqIO.parse("samples/test.fasta", "fasta"):
cnt = Counter()
line = str(seq_record.seq)
i = 0
for j in range(((len(line))/ 3)):
cnt[line[i:i+3]] += 1
i += 3
print json.dumps(
... | #!/usr/bin/python
import getopt
import json
import sys
from collections import Counter
from Bio import SeqIO
from Bio.SeqUtils import GC
def compute(inputfile):
for seq_record in SeqIO.parse(inputfile, "fasta"):
cnt = Counter()
line = str(seq_record.seq)
i = 0
for j in range(((len(line))/ 3... | <commit_before>import json
from collections import Counter
from Bio import SeqIO
from Bio.SeqUtils import GC
for seq_record in SeqIO.parse("samples/test.fasta", "fasta"):
cnt = Counter()
line = str(seq_record.seq)
i = 0
for j in range(((len(line))/ 3)):
cnt[line[i:i+3]] += 1
i += 3
prin... | #!/usr/bin/python
import getopt
import json
import sys
from collections import Counter
from Bio import SeqIO
from Bio.SeqUtils import GC
def compute(inputfile):
for seq_record in SeqIO.parse(inputfile, "fasta"):
cnt = Counter()
line = str(seq_record.seq)
i = 0
for j in range(((len(line))/ 3... | import json
from collections import Counter
from Bio import SeqIO
from Bio.SeqUtils import GC
for seq_record in SeqIO.parse("samples/test.fasta", "fasta"):
cnt = Counter()
line = str(seq_record.seq)
i = 0
for j in range(((len(line))/ 3)):
cnt[line[i:i+3]] += 1
i += 3
print json.dumps(
... | <commit_before>import json
from collections import Counter
from Bio import SeqIO
from Bio.SeqUtils import GC
for seq_record in SeqIO.parse("samples/test.fasta", "fasta"):
cnt = Counter()
line = str(seq_record.seq)
i = 0
for j in range(((len(line))/ 3)):
cnt[line[i:i+3]] += 1
i += 3
prin... |
29562b08e436abc8465404e49d9193537721b717 | src/odin/contrib/money/fields.py | src/odin/contrib/money/fields.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function
from odin import exceptions
from odin.fields import ScalarField
from odin.validators import EMPTY_VALUES
from .datatypes import Amount
__all__ = ('AmountField', )
class AmountField(ScalarField):
"""
Field that contains a monetary ... | # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function
from odin import exceptions
from odin.fields import ScalarField
from odin.validators import EMPTY_VALUES
from .datatypes import Amount
__all__ = ("AmountField",)
class AmountField(ScalarField):
"""
Field that contains a monetary a... | Correct issue from Sonar (and black file) | Correct issue from Sonar (and black file)
| Python | bsd-3-clause | python-odin/odin | # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function
from odin import exceptions
from odin.fields import ScalarField
from odin.validators import EMPTY_VALUES
from .datatypes import Amount
__all__ = ('AmountField', )
class AmountField(ScalarField):
"""
Field that contains a monetary ... | # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function
from odin import exceptions
from odin.fields import ScalarField
from odin.validators import EMPTY_VALUES
from .datatypes import Amount
__all__ = ("AmountField",)
class AmountField(ScalarField):
"""
Field that contains a monetary a... | <commit_before># -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function
from odin import exceptions
from odin.fields import ScalarField
from odin.validators import EMPTY_VALUES
from .datatypes import Amount
__all__ = ('AmountField', )
class AmountField(ScalarField):
"""
Field that conta... | # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function
from odin import exceptions
from odin.fields import ScalarField
from odin.validators import EMPTY_VALUES
from .datatypes import Amount
__all__ = ("AmountField",)
class AmountField(ScalarField):
"""
Field that contains a monetary a... | # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function
from odin import exceptions
from odin.fields import ScalarField
from odin.validators import EMPTY_VALUES
from .datatypes import Amount
__all__ = ('AmountField', )
class AmountField(ScalarField):
"""
Field that contains a monetary ... | <commit_before># -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function
from odin import exceptions
from odin.fields import ScalarField
from odin.validators import EMPTY_VALUES
from .datatypes import Amount
__all__ = ('AmountField', )
class AmountField(ScalarField):
"""
Field that conta... |
6b93f6a6bedf875d4bad1af2493c91b28a625ea9 | chempy/electrochemistry/tests/test_nernst.py | chempy/electrochemistry/tests/test_nernst.py | # -*- coding: utf-8 -*-
from __future__ import (absolute_import, division, print_function)
from ..nernst import nernst_potential
def test_nernst_potential():
# Sodium in cells
assert abs(1000 * nernst_potential(145, 15, 1, 310) - 60.605) < 1e-4
# Potassium in cells
assert abs(1000 * nernst_potential(... | # -*- coding: utf-8 -*-
from __future__ import (absolute_import, division, print_function)
from ..nernst import nernst_potential
from chempy.util.testing import requires
from chempy.units import default_units, default_constants, units_library
def test_nernst_potential():
"""
Test cases obtained from textbook... | Add additional testing to electrochemistry/Nernst | Add additional testing to electrochemistry/Nernst
| Python | bsd-2-clause | bjodah/aqchem,bjodah/aqchem,bjodah/chempy,bjodah/chempy,bjodah/aqchem | # -*- coding: utf-8 -*-
from __future__ import (absolute_import, division, print_function)
from ..nernst import nernst_potential
def test_nernst_potential():
# Sodium in cells
assert abs(1000 * nernst_potential(145, 15, 1, 310) - 60.605) < 1e-4
# Potassium in cells
assert abs(1000 * nernst_potential(... | # -*- coding: utf-8 -*-
from __future__ import (absolute_import, division, print_function)
from ..nernst import nernst_potential
from chempy.util.testing import requires
from chempy.units import default_units, default_constants, units_library
def test_nernst_potential():
"""
Test cases obtained from textbook... | <commit_before># -*- coding: utf-8 -*-
from __future__ import (absolute_import, division, print_function)
from ..nernst import nernst_potential
def test_nernst_potential():
# Sodium in cells
assert abs(1000 * nernst_potential(145, 15, 1, 310) - 60.605) < 1e-4
# Potassium in cells
assert abs(1000 * ne... | # -*- coding: utf-8 -*-
from __future__ import (absolute_import, division, print_function)
from ..nernst import nernst_potential
from chempy.util.testing import requires
from chempy.units import default_units, default_constants, units_library
def test_nernst_potential():
"""
Test cases obtained from textbook... | # -*- coding: utf-8 -*-
from __future__ import (absolute_import, division, print_function)
from ..nernst import nernst_potential
def test_nernst_potential():
# Sodium in cells
assert abs(1000 * nernst_potential(145, 15, 1, 310) - 60.605) < 1e-4
# Potassium in cells
assert abs(1000 * nernst_potential(... | <commit_before># -*- coding: utf-8 -*-
from __future__ import (absolute_import, division, print_function)
from ..nernst import nernst_potential
def test_nernst_potential():
# Sodium in cells
assert abs(1000 * nernst_potential(145, 15, 1, 310) - 60.605) < 1e-4
# Potassium in cells
assert abs(1000 * ne... |
2735d4a7b1ae0af0d58ea0accb973ab11477783e | django_hosts/tests/urls/simple.py | django_hosts/tests/urls/simple.py | from django.conf.urls.defaults import patterns, url
from django.views.generic import TemplateView
urlpatterns = patterns('django.views.generic.simple',
url(r'^simple/$', TemplateView.as_view(), name='simple-direct'),
)
| from django.conf.urls.defaults import patterns, url
urlpatterns = patterns('django.views.generic.simple',
url(r'^simple/$', 'django.shortcuts.render', name='simple-direct'),
)
| Use django.shortcuts.render instead of TemplateView | Use django.shortcuts.render instead of TemplateView | Python | bsd-3-clause | jezdez/django-hosts | from django.conf.urls.defaults import patterns, url
from django.views.generic import TemplateView
urlpatterns = patterns('django.views.generic.simple',
url(r'^simple/$', TemplateView.as_view(), name='simple-direct'),
)
Use django.shortcuts.render instead of TemplateView | from django.conf.urls.defaults import patterns, url
urlpatterns = patterns('django.views.generic.simple',
url(r'^simple/$', 'django.shortcuts.render', name='simple-direct'),
)
| <commit_before>from django.conf.urls.defaults import patterns, url
from django.views.generic import TemplateView
urlpatterns = patterns('django.views.generic.simple',
url(r'^simple/$', TemplateView.as_view(), name='simple-direct'),
)
<commit_msg>Use django.shortcuts.render instead of TemplateView<commit_after> | from django.conf.urls.defaults import patterns, url
urlpatterns = patterns('django.views.generic.simple',
url(r'^simple/$', 'django.shortcuts.render', name='simple-direct'),
)
| from django.conf.urls.defaults import patterns, url
from django.views.generic import TemplateView
urlpatterns = patterns('django.views.generic.simple',
url(r'^simple/$', TemplateView.as_view(), name='simple-direct'),
)
Use django.shortcuts.render instead of TemplateViewfrom django.conf.urls.defaults import pattern... | <commit_before>from django.conf.urls.defaults import patterns, url
from django.views.generic import TemplateView
urlpatterns = patterns('django.views.generic.simple',
url(r'^simple/$', TemplateView.as_view(), name='simple-direct'),
)
<commit_msg>Use django.shortcuts.render instead of TemplateView<commit_after>from... |
cb533d74f2e634d9e8c7d0515307fad107da36ef | {{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/apps/site/urls.py | {{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/apps/site/urls.py | from django.conf import settings
from django.conf.urls import url
from django.http import HttpResponse
from django.views import generic
from . import views
urlpatterns = (
url(r'^robots\.txt$', views.RobotsView.as_view(), name="robots"),
)
if getattr(settings, 'LOADERIO_TOKEN', None):
loaderio_token = setti... | from django.conf import settings
from django.conf.urls import url
from django.http import HttpResponse
from django.views import generic
from . import views
urlpatterns = (
url(r'^robots\.txt$', views.RobotsView.as_view(), name="robots"),
)
if getattr(settings, 'LOADERIO_TOKEN', None):
loaderio_token = sett... | Add a missing line between imports | Add a missing line between imports
| Python | mit | dulaccc/cookiecutter-django-herokuapp,dulaccc/cookiecutter-django-herokuapp,dulaccc/cookiecutter-django-herokuapp,dulaccc/cookiecutter-django-herokuapp | from django.conf import settings
from django.conf.urls import url
from django.http import HttpResponse
from django.views import generic
from . import views
urlpatterns = (
url(r'^robots\.txt$', views.RobotsView.as_view(), name="robots"),
)
if getattr(settings, 'LOADERIO_TOKEN', None):
loaderio_token = setti... | from django.conf import settings
from django.conf.urls import url
from django.http import HttpResponse
from django.views import generic
from . import views
urlpatterns = (
url(r'^robots\.txt$', views.RobotsView.as_view(), name="robots"),
)
if getattr(settings, 'LOADERIO_TOKEN', None):
loaderio_token = sett... | <commit_before>from django.conf import settings
from django.conf.urls import url
from django.http import HttpResponse
from django.views import generic
from . import views
urlpatterns = (
url(r'^robots\.txt$', views.RobotsView.as_view(), name="robots"),
)
if getattr(settings, 'LOADERIO_TOKEN', None):
loaderi... | from django.conf import settings
from django.conf.urls import url
from django.http import HttpResponse
from django.views import generic
from . import views
urlpatterns = (
url(r'^robots\.txt$', views.RobotsView.as_view(), name="robots"),
)
if getattr(settings, 'LOADERIO_TOKEN', None):
loaderio_token = sett... | from django.conf import settings
from django.conf.urls import url
from django.http import HttpResponse
from django.views import generic
from . import views
urlpatterns = (
url(r'^robots\.txt$', views.RobotsView.as_view(), name="robots"),
)
if getattr(settings, 'LOADERIO_TOKEN', None):
loaderio_token = setti... | <commit_before>from django.conf import settings
from django.conf.urls import url
from django.http import HttpResponse
from django.views import generic
from . import views
urlpatterns = (
url(r'^robots\.txt$', views.RobotsView.as_view(), name="robots"),
)
if getattr(settings, 'LOADERIO_TOKEN', None):
loaderi... |
f0cf4b51987befb25f605ee421554da7615c9472 | readthedocs/builds/admin.py | readthedocs/builds/admin.py | """Django admin interface for `~builds.models.Build` and related models.
"""
from django.contrib import admin
from readthedocs.builds.models import Build, VersionAlias, Version, BuildCommandResult
from guardian.admin import GuardedModelAdmin
class BuildCommandResultInline(admin.TabularInline):
model = BuildComm... | """Django admin interface for `~builds.models.Build` and related models.
"""
from django.contrib import admin
from readthedocs.builds.models import Build, VersionAlias, Version, BuildCommandResult
from guardian.admin import GuardedModelAdmin
class BuildCommandResultInline(admin.TabularInline):
model = BuildComm... | Add date back to build display | Add date back to build display
| Python | mit | davidfischer/readthedocs.org,safwanrahman/readthedocs.org,espdev/readthedocs.org,safwanrahman/readthedocs.org,rtfd/readthedocs.org,tddv/readthedocs.org,davidfischer/readthedocs.org,espdev/readthedocs.org,rtfd/readthedocs.org,pombredanne/readthedocs.org,espdev/readthedocs.org,espdev/readthedocs.org,davidfischer/readthed... | """Django admin interface for `~builds.models.Build` and related models.
"""
from django.contrib import admin
from readthedocs.builds.models import Build, VersionAlias, Version, BuildCommandResult
from guardian.admin import GuardedModelAdmin
class BuildCommandResultInline(admin.TabularInline):
model = BuildComm... | """Django admin interface for `~builds.models.Build` and related models.
"""
from django.contrib import admin
from readthedocs.builds.models import Build, VersionAlias, Version, BuildCommandResult
from guardian.admin import GuardedModelAdmin
class BuildCommandResultInline(admin.TabularInline):
model = BuildComm... | <commit_before>"""Django admin interface for `~builds.models.Build` and related models.
"""
from django.contrib import admin
from readthedocs.builds.models import Build, VersionAlias, Version, BuildCommandResult
from guardian.admin import GuardedModelAdmin
class BuildCommandResultInline(admin.TabularInline):
mo... | """Django admin interface for `~builds.models.Build` and related models.
"""
from django.contrib import admin
from readthedocs.builds.models import Build, VersionAlias, Version, BuildCommandResult
from guardian.admin import GuardedModelAdmin
class BuildCommandResultInline(admin.TabularInline):
model = BuildComm... | """Django admin interface for `~builds.models.Build` and related models.
"""
from django.contrib import admin
from readthedocs.builds.models import Build, VersionAlias, Version, BuildCommandResult
from guardian.admin import GuardedModelAdmin
class BuildCommandResultInline(admin.TabularInline):
model = BuildComm... | <commit_before>"""Django admin interface for `~builds.models.Build` and related models.
"""
from django.contrib import admin
from readthedocs.builds.models import Build, VersionAlias, Version, BuildCommandResult
from guardian.admin import GuardedModelAdmin
class BuildCommandResultInline(admin.TabularInline):
mo... |
0ca07405b864f761ae1d7ed659cac67c799bf39a | src/core/queue.py | src/core/queue.py | # -*- coding: utf-8 -*-
"""ICU (LEGO Island Configuration Utility).
Created 2015 Triangle717
<http://le717.github.io/>
Licensed under The MIT License
<http://opensource.org/licenses/MIT/>
"""
class ActionsQueue:
def __init__(self):
self.queue = []
# Normal buttons
def btnBrowse(self, val):
... | # -*- coding: utf-8 -*-
"""ICU (LEGO Island Configuration Utility).
Created 2015 Triangle717
<http://le717.github.io/>
Licensed under The MIT License
<http://opensource.org/licenses/MIT/>
"""
class ActionsQueue:
def __init__(self):
self.queue = []
class Responses:
def __init__(self):
pa... | Move those methods to own class | Move those methods to own class [ci skip]
| Python | mit | le717/ICU | # -*- coding: utf-8 -*-
"""ICU (LEGO Island Configuration Utility).
Created 2015 Triangle717
<http://le717.github.io/>
Licensed under The MIT License
<http://opensource.org/licenses/MIT/>
"""
class ActionsQueue:
def __init__(self):
self.queue = []
# Normal buttons
def btnBrowse(self, val):
... | # -*- coding: utf-8 -*-
"""ICU (LEGO Island Configuration Utility).
Created 2015 Triangle717
<http://le717.github.io/>
Licensed under The MIT License
<http://opensource.org/licenses/MIT/>
"""
class ActionsQueue:
def __init__(self):
self.queue = []
class Responses:
def __init__(self):
pa... | <commit_before># -*- coding: utf-8 -*-
"""ICU (LEGO Island Configuration Utility).
Created 2015 Triangle717
<http://le717.github.io/>
Licensed under The MIT License
<http://opensource.org/licenses/MIT/>
"""
class ActionsQueue:
def __init__(self):
self.queue = []
# Normal buttons
def btnBrowse... | # -*- coding: utf-8 -*-
"""ICU (LEGO Island Configuration Utility).
Created 2015 Triangle717
<http://le717.github.io/>
Licensed under The MIT License
<http://opensource.org/licenses/MIT/>
"""
class ActionsQueue:
def __init__(self):
self.queue = []
class Responses:
def __init__(self):
pa... | # -*- coding: utf-8 -*-
"""ICU (LEGO Island Configuration Utility).
Created 2015 Triangle717
<http://le717.github.io/>
Licensed under The MIT License
<http://opensource.org/licenses/MIT/>
"""
class ActionsQueue:
def __init__(self):
self.queue = []
# Normal buttons
def btnBrowse(self, val):
... | <commit_before># -*- coding: utf-8 -*-
"""ICU (LEGO Island Configuration Utility).
Created 2015 Triangle717
<http://le717.github.io/>
Licensed under The MIT License
<http://opensource.org/licenses/MIT/>
"""
class ActionsQueue:
def __init__(self):
self.queue = []
# Normal buttons
def btnBrowse... |
facfa3bcd7d35163e0504ef4b6f9b3b15e778993 | modeltranslation/management/commands/update_translation_fields.py | modeltranslation/management/commands/update_translation_fields.py | # -*- coding: utf-8 -*-
from django.db.models import F, Q
from django.core.management.base import NoArgsCommand
from modeltranslation.settings import DEFAULT_LANGUAGE
from modeltranslation.translator import translator
from modeltranslation.utils import build_localized_fieldname
class Command(NoArgsCommand):
help... | # -*- coding: utf-8 -*-
from django.db.models import F, Q
from django.core.management.base import NoArgsCommand
from modeltranslation.settings import DEFAULT_LANGUAGE
from modeltranslation.translator import translator
from modeltranslation.utils import build_localized_fieldname
class Command(NoArgsCommand):
help... | Revert "Added a workaround for abstract models not being handled correctly." | Revert "Added a workaround for abstract models not being handled correctly."
This reverts commit a3e44c187b5abfa6d9b360cecc5c1daa746134f5.
| Python | bsd-3-clause | marctc/django-modeltranslation,akheron/django-modeltranslation,nanuxbe/django-modeltranslation,marctc/django-modeltranslation,nanuxbe/django-modeltranslation,SideStudios/django-modeltranslation,akheron/django-modeltranslation,yoza/django-modeltranslation,extertioner/django-modeltranslation,extertioner/django-modeltrans... | # -*- coding: utf-8 -*-
from django.db.models import F, Q
from django.core.management.base import NoArgsCommand
from modeltranslation.settings import DEFAULT_LANGUAGE
from modeltranslation.translator import translator
from modeltranslation.utils import build_localized_fieldname
class Command(NoArgsCommand):
help... | # -*- coding: utf-8 -*-
from django.db.models import F, Q
from django.core.management.base import NoArgsCommand
from modeltranslation.settings import DEFAULT_LANGUAGE
from modeltranslation.translator import translator
from modeltranslation.utils import build_localized_fieldname
class Command(NoArgsCommand):
help... | <commit_before># -*- coding: utf-8 -*-
from django.db.models import F, Q
from django.core.management.base import NoArgsCommand
from modeltranslation.settings import DEFAULT_LANGUAGE
from modeltranslation.translator import translator
from modeltranslation.utils import build_localized_fieldname
class Command(NoArgsCom... | # -*- coding: utf-8 -*-
from django.db.models import F, Q
from django.core.management.base import NoArgsCommand
from modeltranslation.settings import DEFAULT_LANGUAGE
from modeltranslation.translator import translator
from modeltranslation.utils import build_localized_fieldname
class Command(NoArgsCommand):
help... | # -*- coding: utf-8 -*-
from django.db.models import F, Q
from django.core.management.base import NoArgsCommand
from modeltranslation.settings import DEFAULT_LANGUAGE
from modeltranslation.translator import translator
from modeltranslation.utils import build_localized_fieldname
class Command(NoArgsCommand):
help... | <commit_before># -*- coding: utf-8 -*-
from django.db.models import F, Q
from django.core.management.base import NoArgsCommand
from modeltranslation.settings import DEFAULT_LANGUAGE
from modeltranslation.translator import translator
from modeltranslation.utils import build_localized_fieldname
class Command(NoArgsCom... |
ae6ed4e7dc6510637d322eb6403f43b9d4aa5d25 | karteikarten/helpers/exporters.py | karteikarten/helpers/exporters.py | # Copyright (C) 2013 Braden Walters
# This program 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 your option) any later version.
#
# This program is distribu... | # Copyright (C) 2013 Braden Walters
# This program 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 your option) any later version.
#
# This program is distribu... | Remove carriage returns in Anki exporter | Remove carriage returns in Anki exporter
| Python | agpl-3.0 | meoblast001/kksystem,meoblast001/kksystem,meoblast001/kksystem | # Copyright (C) 2013 Braden Walters
# This program 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 your option) any later version.
#
# This program is distribu... | # Copyright (C) 2013 Braden Walters
# This program 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 your option) any later version.
#
# This program is distribu... | <commit_before># Copyright (C) 2013 Braden Walters
# This program 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 your option) any later version.
#
# This prog... | # Copyright (C) 2013 Braden Walters
# This program 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 your option) any later version.
#
# This program is distribu... | # Copyright (C) 2013 Braden Walters
# This program 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 your option) any later version.
#
# This program is distribu... | <commit_before># Copyright (C) 2013 Braden Walters
# This program 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 your option) any later version.
#
# This prog... |
24d3af9288102e5061c3a1f9e6fe2d7d578f6cc5 | astro.py | astro.py | import ephem
m = getattr(ephem, (raw_input('Planet: ')))
print ephem.constellation(m(raw_input('yyyy/mm/dd: '))) | import ephem
def const(planet_name, date_string): # function name and parameters
planet_class = getattr(ephem, planet_name) # sets ephem object class
planet = planet_class() # sets planet variable
south_bend = ephem.Observer() # Creates the Observer object
... | Select planet and display alt/az data | Select planet and display alt/az data
Created a function localized to South Bend, IN, to display altitude and
azimuth data for a planet selected.
| Python | mit | bennettscience/PySky | import ephem
m = getattr(ephem, (raw_input('Planet: ')))
print ephem.constellation(m(raw_input('yyyy/mm/dd: ')))Select planet and display alt/az data
Created a function localized to South Bend, IN, to display altitude and
azimuth data for a planet selected. | import ephem
def const(planet_name, date_string): # function name and parameters
planet_class = getattr(ephem, planet_name) # sets ephem object class
planet = planet_class() # sets planet variable
south_bend = ephem.Observer() # Creates the Observer object
... | <commit_before>import ephem
m = getattr(ephem, (raw_input('Planet: ')))
print ephem.constellation(m(raw_input('yyyy/mm/dd: ')))<commit_msg>Select planet and display alt/az data
Created a function localized to South Bend, IN, to display altitude and
azimuth data for a planet selected.<commit_after> | import ephem
def const(planet_name, date_string): # function name and parameters
planet_class = getattr(ephem, planet_name) # sets ephem object class
planet = planet_class() # sets planet variable
south_bend = ephem.Observer() # Creates the Observer object
... | import ephem
m = getattr(ephem, (raw_input('Planet: ')))
print ephem.constellation(m(raw_input('yyyy/mm/dd: ')))Select planet and display alt/az data
Created a function localized to South Bend, IN, to display altitude and
azimuth data for a planet selected.import ephem
def const(planet_name, date_string): ... | <commit_before>import ephem
m = getattr(ephem, (raw_input('Planet: ')))
print ephem.constellation(m(raw_input('yyyy/mm/dd: ')))<commit_msg>Select planet and display alt/az data
Created a function localized to South Bend, IN, to display altitude and
azimuth data for a planet selected.<commit_after>import ephem
def c... |
071926edc64241b0359c9a0148fc0825a09cb6ba | marionette/__init__.py | marionette/__init__.py |
from cgi import parse_header
import json
from django.http import HttpResponse, Http404
RPC_MARKER = '_rpc'
class Resource(object):
def __init__(self, request, *args, **kwargs):
self.request = request
self.args = args
self.kwargs = kwargs
@classmethod
def as_view(cls):
... |
from cgi import parse_header
import json
from django.http import HttpResponse, Http404
RPC_MARKER = '_rpc'
class Resource(object):
def __init__(self, request, *args, **kwargs):
self.request = request
self.args = args
self.kwargs = kwargs
@classmethod
def as_view(cls):
... | Add execute hook to allow wrapping handler calls | Add execute hook to allow wrapping handler calls
| Python | mit | funkybob/django-marionette |
from cgi import parse_header
import json
from django.http import HttpResponse, Http404
RPC_MARKER = '_rpc'
class Resource(object):
def __init__(self, request, *args, **kwargs):
self.request = request
self.args = args
self.kwargs = kwargs
@classmethod
def as_view(cls):
... |
from cgi import parse_header
import json
from django.http import HttpResponse, Http404
RPC_MARKER = '_rpc'
class Resource(object):
def __init__(self, request, *args, **kwargs):
self.request = request
self.args = args
self.kwargs = kwargs
@classmethod
def as_view(cls):
... | <commit_before>
from cgi import parse_header
import json
from django.http import HttpResponse, Http404
RPC_MARKER = '_rpc'
class Resource(object):
def __init__(self, request, *args, **kwargs):
self.request = request
self.args = args
self.kwargs = kwargs
@classmethod
def as_view... |
from cgi import parse_header
import json
from django.http import HttpResponse, Http404
RPC_MARKER = '_rpc'
class Resource(object):
def __init__(self, request, *args, **kwargs):
self.request = request
self.args = args
self.kwargs = kwargs
@classmethod
def as_view(cls):
... |
from cgi import parse_header
import json
from django.http import HttpResponse, Http404
RPC_MARKER = '_rpc'
class Resource(object):
def __init__(self, request, *args, **kwargs):
self.request = request
self.args = args
self.kwargs = kwargs
@classmethod
def as_view(cls):
... | <commit_before>
from cgi import parse_header
import json
from django.http import HttpResponse, Http404
RPC_MARKER = '_rpc'
class Resource(object):
def __init__(self, request, *args, **kwargs):
self.request = request
self.args = args
self.kwargs = kwargs
@classmethod
def as_view... |
6f947c99411692f8fe4899203ed9bf202b0412a3 | cihai/__about__.py | cihai/__about__.py | __title__ = 'cihai'
__package_name__ = 'cihai'
__version__ = '0.9.0a3'
__description__ = 'Library for CJK (chinese, japanese, korean) language data.'
__author__ = 'Tony Narlock'
__email__ = '[email protected]'
__github__ = 'https://github.com/cihai/cihai'
__pypi__ = 'https://pypi.org/project/cihai/'
__license__ = 'MIT'... | __title__ = 'cihai'
__package_name__ = 'cihai'
__version__ = '0.9.0a3'
__description__ = 'Library for CJK (chinese, japanese, korean) language data.'
__author__ = 'Tony Narlock'
__email__ = '[email protected]'
__github__ = 'https://github.com/cihai/cihai'
__docs__ = 'https://cihai.git-pull.com'
__tracker__ = 'https://g... | Add tracker and doc URL to metadata | Add tracker and doc URL to metadata
| Python | mit | cihai/cihai,cihai/cihai | __title__ = 'cihai'
__package_name__ = 'cihai'
__version__ = '0.9.0a3'
__description__ = 'Library for CJK (chinese, japanese, korean) language data.'
__author__ = 'Tony Narlock'
__email__ = '[email protected]'
__github__ = 'https://github.com/cihai/cihai'
__pypi__ = 'https://pypi.org/project/cihai/'
__license__ = 'MIT'... | __title__ = 'cihai'
__package_name__ = 'cihai'
__version__ = '0.9.0a3'
__description__ = 'Library for CJK (chinese, japanese, korean) language data.'
__author__ = 'Tony Narlock'
__email__ = '[email protected]'
__github__ = 'https://github.com/cihai/cihai'
__docs__ = 'https://cihai.git-pull.com'
__tracker__ = 'https://g... | <commit_before>__title__ = 'cihai'
__package_name__ = 'cihai'
__version__ = '0.9.0a3'
__description__ = 'Library for CJK (chinese, japanese, korean) language data.'
__author__ = 'Tony Narlock'
__email__ = '[email protected]'
__github__ = 'https://github.com/cihai/cihai'
__pypi__ = 'https://pypi.org/project/cihai/'
__li... | __title__ = 'cihai'
__package_name__ = 'cihai'
__version__ = '0.9.0a3'
__description__ = 'Library for CJK (chinese, japanese, korean) language data.'
__author__ = 'Tony Narlock'
__email__ = '[email protected]'
__github__ = 'https://github.com/cihai/cihai'
__docs__ = 'https://cihai.git-pull.com'
__tracker__ = 'https://g... | __title__ = 'cihai'
__package_name__ = 'cihai'
__version__ = '0.9.0a3'
__description__ = 'Library for CJK (chinese, japanese, korean) language data.'
__author__ = 'Tony Narlock'
__email__ = '[email protected]'
__github__ = 'https://github.com/cihai/cihai'
__pypi__ = 'https://pypi.org/project/cihai/'
__license__ = 'MIT'... | <commit_before>__title__ = 'cihai'
__package_name__ = 'cihai'
__version__ = '0.9.0a3'
__description__ = 'Library for CJK (chinese, japanese, korean) language data.'
__author__ = 'Tony Narlock'
__email__ = '[email protected]'
__github__ = 'https://github.com/cihai/cihai'
__pypi__ = 'https://pypi.org/project/cihai/'
__li... |
d6ddc3b41040a374c61d4624e052fa8f1e58ee37 | metakernel/__init__.py | metakernel/__init__.py | from .metakernel import MetaKernel
from .process_metakernel import ProcessMetaKernel
from .magic import Magic, option
from .parser import Parser
__all__ = ['Magic', 'MetaKernel', 'option']
__version__ = '0.3'
del magic, metakernel, parser, process_metakernel
| from .metakernel import MetaKernel
import .pyexpect
from .process_metakernel import ProcessMetaKernel
from .magic import Magic, option
from .parser import Parser
__all__ = ['Magic', 'MetaKernel', 'option']
__version__ = '0.3'
del magic, metakernel, parser, process_metakernel, pyexpect
| Fix import error in Python 2 | Fix import error in Python 2
| Python | bsd-3-clause | Calysto/metakernel | from .metakernel import MetaKernel
from .process_metakernel import ProcessMetaKernel
from .magic import Magic, option
from .parser import Parser
__all__ = ['Magic', 'MetaKernel', 'option']
__version__ = '0.3'
del magic, metakernel, parser, process_metakernel
Fix import error in Python 2 | from .metakernel import MetaKernel
import .pyexpect
from .process_metakernel import ProcessMetaKernel
from .magic import Magic, option
from .parser import Parser
__all__ = ['Magic', 'MetaKernel', 'option']
__version__ = '0.3'
del magic, metakernel, parser, process_metakernel, pyexpect
| <commit_before>from .metakernel import MetaKernel
from .process_metakernel import ProcessMetaKernel
from .magic import Magic, option
from .parser import Parser
__all__ = ['Magic', 'MetaKernel', 'option']
__version__ = '0.3'
del magic, metakernel, parser, process_metakernel
<commit_msg>Fix import error in Python 2<co... | from .metakernel import MetaKernel
import .pyexpect
from .process_metakernel import ProcessMetaKernel
from .magic import Magic, option
from .parser import Parser
__all__ = ['Magic', 'MetaKernel', 'option']
__version__ = '0.3'
del magic, metakernel, parser, process_metakernel, pyexpect
| from .metakernel import MetaKernel
from .process_metakernel import ProcessMetaKernel
from .magic import Magic, option
from .parser import Parser
__all__ = ['Magic', 'MetaKernel', 'option']
__version__ = '0.3'
del magic, metakernel, parser, process_metakernel
Fix import error in Python 2from .metakernel import MetaKe... | <commit_before>from .metakernel import MetaKernel
from .process_metakernel import ProcessMetaKernel
from .magic import Magic, option
from .parser import Parser
__all__ = ['Magic', 'MetaKernel', 'option']
__version__ = '0.3'
del magic, metakernel, parser, process_metakernel
<commit_msg>Fix import error in Python 2<co... |
ec9239fda210f3d71a81045fdba9d72bab04a05b | indra/sources/drugbank/__init__.py | indra/sources/drugbank/__init__.py | """This module provides an API and processor for DrugBank content.
It builds on the XML-formatted data schema of DrugBank and expects
the XML file to be available locally. The full DrugBank download
can be obtained at: https://www.drugbank.ca/releases/latest. Once the
XML file is decompressed, it can be processed using... | """This module provides an API and processor for DrugBank content.
It builds on the XML-formatted data schema of DrugBank and expects
the XML file to be available locally. The full DrugBank download
can be obtained at: https://www.drugbank.ca/releases/latest. Once the
XML file is decompressed, it can be processed using... | Add more docs on how to get drugbank quickly | Add more docs on how to get drugbank quickly
| Python | bsd-2-clause | sorgerlab/belpy,sorgerlab/indra,bgyori/indra,sorgerlab/indra,johnbachman/indra,bgyori/indra,sorgerlab/belpy,sorgerlab/indra,johnbachman/indra,johnbachman/indra,sorgerlab/belpy,bgyori/indra | """This module provides an API and processor for DrugBank content.
It builds on the XML-formatted data schema of DrugBank and expects
the XML file to be available locally. The full DrugBank download
can be obtained at: https://www.drugbank.ca/releases/latest. Once the
XML file is decompressed, it can be processed using... | """This module provides an API and processor for DrugBank content.
It builds on the XML-formatted data schema of DrugBank and expects
the XML file to be available locally. The full DrugBank download
can be obtained at: https://www.drugbank.ca/releases/latest. Once the
XML file is decompressed, it can be processed using... | <commit_before>"""This module provides an API and processor for DrugBank content.
It builds on the XML-formatted data schema of DrugBank and expects
the XML file to be available locally. The full DrugBank download
can be obtained at: https://www.drugbank.ca/releases/latest. Once the
XML file is decompressed, it can be ... | """This module provides an API and processor for DrugBank content.
It builds on the XML-formatted data schema of DrugBank and expects
the XML file to be available locally. The full DrugBank download
can be obtained at: https://www.drugbank.ca/releases/latest. Once the
XML file is decompressed, it can be processed using... | """This module provides an API and processor for DrugBank content.
It builds on the XML-formatted data schema of DrugBank and expects
the XML file to be available locally. The full DrugBank download
can be obtained at: https://www.drugbank.ca/releases/latest. Once the
XML file is decompressed, it can be processed using... | <commit_before>"""This module provides an API and processor for DrugBank content.
It builds on the XML-formatted data schema of DrugBank and expects
the XML file to be available locally. The full DrugBank download
can be obtained at: https://www.drugbank.ca/releases/latest. Once the
XML file is decompressed, it can be ... |
922db591ca726acae07e2628119b95aa705f414c | leetcode/ds_string_word_pattern.py | leetcode/ds_string_word_pattern.py |
# @file Word Pattern
# @brief Given 2 sets check if it is a bijection
# https://leetcode.com/problems/word-pattern/
'''
Given a pattern and a string str, find if str follows the same pattern.
Here follow means a full match, such that there is a bijection between
a letter in pattern and a non-empty word in str.
Exa... |
# @file Word Pattern
# @brief Given 2 sets check if it is a bijection
# https://leetcode.com/problems/word-pattern/
'''
Given a pattern and a string str, find if str follows the same pattern.
Here follow means a full match, such that there is a bijection between
a letter in pattern and a non-empty word in str.
Exa... | Add two approaches for string word pattern | Add two approaches for string word pattern | Python | mit | ngovindaraj/Python |
# @file Word Pattern
# @brief Given 2 sets check if it is a bijection
# https://leetcode.com/problems/word-pattern/
'''
Given a pattern and a string str, find if str follows the same pattern.
Here follow means a full match, such that there is a bijection between
a letter in pattern and a non-empty word in str.
Exa... |
# @file Word Pattern
# @brief Given 2 sets check if it is a bijection
# https://leetcode.com/problems/word-pattern/
'''
Given a pattern and a string str, find if str follows the same pattern.
Here follow means a full match, such that there is a bijection between
a letter in pattern and a non-empty word in str.
Exa... | <commit_before>
# @file Word Pattern
# @brief Given 2 sets check if it is a bijection
# https://leetcode.com/problems/word-pattern/
'''
Given a pattern and a string str, find if str follows the same pattern.
Here follow means a full match, such that there is a bijection between
a letter in pattern and a non-empty w... |
# @file Word Pattern
# @brief Given 2 sets check if it is a bijection
# https://leetcode.com/problems/word-pattern/
'''
Given a pattern and a string str, find if str follows the same pattern.
Here follow means a full match, such that there is a bijection between
a letter in pattern and a non-empty word in str.
Exa... |
# @file Word Pattern
# @brief Given 2 sets check if it is a bijection
# https://leetcode.com/problems/word-pattern/
'''
Given a pattern and a string str, find if str follows the same pattern.
Here follow means a full match, such that there is a bijection between
a letter in pattern and a non-empty word in str.
Exa... | <commit_before>
# @file Word Pattern
# @brief Given 2 sets check if it is a bijection
# https://leetcode.com/problems/word-pattern/
'''
Given a pattern and a string str, find if str follows the same pattern.
Here follow means a full match, such that there is a bijection between
a letter in pattern and a non-empty w... |
c1f270700d9de209577b64c40b71b5f5b69c5aae | cards.py | cards.py | from pymongo import MongoClient
class Cards:
def __init__(self, dbname='cards'):
"""Instantiate this class.
Set up a connection to the given Mongo database.
Get to the collection we'll store cards in.
Args:
dbname (str): Database name.
"""
s... | from pymongo import MongoClient
class Cards:
def __init__(self, dbname='cards'):
"""Instantiate this class.
Set up a connection to the given Mongo database.
Get to the collection we'll store cards in.
Args:
dbname (str): Database name.
"""
s... | Refactor create_card method to take a list of card dictionaries. Rename method accordingly. | Refactor create_card method to take a list of card dictionaries. Rename method accordingly.
| Python | isc | wwu-nosql/cards | from pymongo import MongoClient
class Cards:
def __init__(self, dbname='cards'):
"""Instantiate this class.
Set up a connection to the given Mongo database.
Get to the collection we'll store cards in.
Args:
dbname (str): Database name.
"""
s... | from pymongo import MongoClient
class Cards:
def __init__(self, dbname='cards'):
"""Instantiate this class.
Set up a connection to the given Mongo database.
Get to the collection we'll store cards in.
Args:
dbname (str): Database name.
"""
s... | <commit_before>from pymongo import MongoClient
class Cards:
def __init__(self, dbname='cards'):
"""Instantiate this class.
Set up a connection to the given Mongo database.
Get to the collection we'll store cards in.
Args:
dbname (str): Database name.
... | from pymongo import MongoClient
class Cards:
def __init__(self, dbname='cards'):
"""Instantiate this class.
Set up a connection to the given Mongo database.
Get to the collection we'll store cards in.
Args:
dbname (str): Database name.
"""
s... | from pymongo import MongoClient
class Cards:
def __init__(self, dbname='cards'):
"""Instantiate this class.
Set up a connection to the given Mongo database.
Get to the collection we'll store cards in.
Args:
dbname (str): Database name.
"""
s... | <commit_before>from pymongo import MongoClient
class Cards:
def __init__(self, dbname='cards'):
"""Instantiate this class.
Set up a connection to the given Mongo database.
Get to the collection we'll store cards in.
Args:
dbname (str): Database name.
... |
f70b2a187c274685cb19def1b48256822b0e3f9f | tests/conftest.py | tests/conftest.py | import py
import pytest
from tests.lib.path import Path
@pytest.fixture
def tmpdir(request):
"""
Return a temporary directory path object which is unique to each test
function invocation, created as a sub directory of the base temporary
directory. The returned object is a ``tests.lib.path.Path`` obje... | import py
import pytest
from tests.lib.path import Path
from tests.lib.scripttest import PipTestEnvironment
from tests.lib.venv import VirtualEnvironment
@pytest.fixture
def tmpdir(request):
"""
Return a temporary directory path object which is unique to each test
function invocation, created as a sub di... | Use our classes from tests.lib.* in pytest fixtures | Use our classes from tests.lib.* in pytest fixtures
| Python | mit | KarelJakubec/pip,qbdsoft/pip,alquerci/pip,nthall/pip,dstufft/pip,nthall/pip,esc/pip,blarghmatey/pip,chaoallsome/pip,wkeyword/pip,alex/pip,jmagnusson/pip,James-Firth/pip,msabramo/pip,atdaemon/pip,natefoo/pip,rouge8/pip,h4ck3rm1k3/pip,zvezdan/pip,haridsv/pip,rbtcollins/pip,Ivoz/pip,luzfcb/pip,harrisonfeng/pip,willingc/pi... | import py
import pytest
from tests.lib.path import Path
@pytest.fixture
def tmpdir(request):
"""
Return a temporary directory path object which is unique to each test
function invocation, created as a sub directory of the base temporary
directory. The returned object is a ``tests.lib.path.Path`` obje... | import py
import pytest
from tests.lib.path import Path
from tests.lib.scripttest import PipTestEnvironment
from tests.lib.venv import VirtualEnvironment
@pytest.fixture
def tmpdir(request):
"""
Return a temporary directory path object which is unique to each test
function invocation, created as a sub di... | <commit_before>import py
import pytest
from tests.lib.path import Path
@pytest.fixture
def tmpdir(request):
"""
Return a temporary directory path object which is unique to each test
function invocation, created as a sub directory of the base temporary
directory. The returned object is a ``tests.lib.p... | import py
import pytest
from tests.lib.path import Path
from tests.lib.scripttest import PipTestEnvironment
from tests.lib.venv import VirtualEnvironment
@pytest.fixture
def tmpdir(request):
"""
Return a temporary directory path object which is unique to each test
function invocation, created as a sub di... | import py
import pytest
from tests.lib.path import Path
@pytest.fixture
def tmpdir(request):
"""
Return a temporary directory path object which is unique to each test
function invocation, created as a sub directory of the base temporary
directory. The returned object is a ``tests.lib.path.Path`` obje... | <commit_before>import py
import pytest
from tests.lib.path import Path
@pytest.fixture
def tmpdir(request):
"""
Return a temporary directory path object which is unique to each test
function invocation, created as a sub directory of the base temporary
directory. The returned object is a ``tests.lib.p... |
ff3123e21e366a5908655dbd8130ac60ec5eee10 | uvt_user/utils.py | uvt_user/utils.py | from __future__ import unicode_literals
import re
from ldap3 import Server, Connection
class LDAPError(Exception):
pass
def search_ldap(username):
'''Searches the Tilburg University LDAP server for the given username and returns a tuple of first name, last name, full name, ANR, emplId and email address. Perm... | from __future__ import unicode_literals
import re
from ldap3 import Server, Connection
class LDAPError(Exception):
pass
def search_ldap(username):
'''Searches the Tilburg University LDAP server for the given username and returns a tuple of first name, last name, full name, ANR, emplId and email address. Perm... | Fix potential bug in case LDAP does not return lists | Fix potential bug in case LDAP does not return lists
| Python | agpl-3.0 | JaapJoris/bps,JaapJoris/bps | from __future__ import unicode_literals
import re
from ldap3 import Server, Connection
class LDAPError(Exception):
pass
def search_ldap(username):
'''Searches the Tilburg University LDAP server for the given username and returns a tuple of first name, last name, full name, ANR, emplId and email address. Perm... | from __future__ import unicode_literals
import re
from ldap3 import Server, Connection
class LDAPError(Exception):
pass
def search_ldap(username):
'''Searches the Tilburg University LDAP server for the given username and returns a tuple of first name, last name, full name, ANR, emplId and email address. Perm... | <commit_before>from __future__ import unicode_literals
import re
from ldap3 import Server, Connection
class LDAPError(Exception):
pass
def search_ldap(username):
'''Searches the Tilburg University LDAP server for the given username and returns a tuple of first name, last name, full name, ANR, emplId and emai... | from __future__ import unicode_literals
import re
from ldap3 import Server, Connection
class LDAPError(Exception):
pass
def search_ldap(username):
'''Searches the Tilburg University LDAP server for the given username and returns a tuple of first name, last name, full name, ANR, emplId and email address. Perm... | from __future__ import unicode_literals
import re
from ldap3 import Server, Connection
class LDAPError(Exception):
pass
def search_ldap(username):
'''Searches the Tilburg University LDAP server for the given username and returns a tuple of first name, last name, full name, ANR, emplId and email address. Perm... | <commit_before>from __future__ import unicode_literals
import re
from ldap3 import Server, Connection
class LDAPError(Exception):
pass
def search_ldap(username):
'''Searches the Tilburg University LDAP server for the given username and returns a tuple of first name, last name, full name, ANR, emplId and emai... |
32dae9d8af362c5ec00af069d70272a125aa02c5 | firmata/__init__.py | firmata/__init__.py | """Provides an API wrapper around the Firmata wire protocol.
There are two major pieces to the firmata module. When FirmataInit() is called, a thread is spun up to handle serial
port IO. Its sole function is to read bytes into the read queue and write bytes from the write queue. These queues are
then used by the main ... | Add basic skeleton of the library, including the implementation of the IO thread system. | Add basic skeleton of the library, including the implementation of the IO thread system.
| Python | apache-2.0 | google/firmata.py | Add basic skeleton of the library, including the implementation of the IO thread system. | """Provides an API wrapper around the Firmata wire protocol.
There are two major pieces to the firmata module. When FirmataInit() is called, a thread is spun up to handle serial
port IO. Its sole function is to read bytes into the read queue and write bytes from the write queue. These queues are
then used by the main ... | <commit_before><commit_msg>Add basic skeleton of the library, including the implementation of the IO thread system.<commit_after> | """Provides an API wrapper around the Firmata wire protocol.
There are two major pieces to the firmata module. When FirmataInit() is called, a thread is spun up to handle serial
port IO. Its sole function is to read bytes into the read queue and write bytes from the write queue. These queues are
then used by the main ... | Add basic skeleton of the library, including the implementation of the IO thread system."""Provides an API wrapper around the Firmata wire protocol.
There are two major pieces to the firmata module. When FirmataInit() is called, a thread is spun up to handle serial
port IO. Its sole function is to read bytes into the ... | <commit_before><commit_msg>Add basic skeleton of the library, including the implementation of the IO thread system.<commit_after>"""Provides an API wrapper around the Firmata wire protocol.
There are two major pieces to the firmata module. When FirmataInit() is called, a thread is spun up to handle serial
port IO. Its... | |
a7622fc3d996407799cec166968c1e56baf07ea9 | wqflask/wqflask/markdown_routes.py | wqflask/wqflask/markdown_routes.py | """Markdown routes
Render pages from github, or if they are unavailable, look for it else where
"""
import requests
import mistune
from flask import Blueprint
from flask import render_template
glossary_blueprint = Blueprint('glossary_blueprint', __name__)
@glossary_blueprint.route('/')
def glossary():
markdown... | """Markdown routes
Render pages from github, or if they are unavailable, look for it else where
"""
import os
import requests
import mistune
from flask import Blueprint
from flask import render_template
glossary_blueprint = Blueprint('glossary_blueprint', __name__)
def render_markdown(file_name):
"""Try to fet... | Move logic for fetching md files to it's own function | Move logic for fetching md files to it's own function
* wqflask/wqflask/markdown_routes.py
(render_markdown): New function.
(glossary): use render_markdown function.
| Python | agpl-3.0 | genenetwork/genenetwork2,zsloan/genenetwork2,zsloan/genenetwork2,genenetwork/genenetwork2,genenetwork/genenetwork2,genenetwork/genenetwork2,pjotrp/genenetwork2,pjotrp/genenetwork2,zsloan/genenetwork2,pjotrp/genenetwork2,pjotrp/genenetwork2,pjotrp/genenetwork2,zsloan/genenetwork2 | """Markdown routes
Render pages from github, or if they are unavailable, look for it else where
"""
import requests
import mistune
from flask import Blueprint
from flask import render_template
glossary_blueprint = Blueprint('glossary_blueprint', __name__)
@glossary_blueprint.route('/')
def glossary():
markdown... | """Markdown routes
Render pages from github, or if they are unavailable, look for it else where
"""
import os
import requests
import mistune
from flask import Blueprint
from flask import render_template
glossary_blueprint = Blueprint('glossary_blueprint', __name__)
def render_markdown(file_name):
"""Try to fet... | <commit_before>"""Markdown routes
Render pages from github, or if they are unavailable, look for it else where
"""
import requests
import mistune
from flask import Blueprint
from flask import render_template
glossary_blueprint = Blueprint('glossary_blueprint', __name__)
@glossary_blueprint.route('/')
def glossary(... | """Markdown routes
Render pages from github, or if they are unavailable, look for it else where
"""
import os
import requests
import mistune
from flask import Blueprint
from flask import render_template
glossary_blueprint = Blueprint('glossary_blueprint', __name__)
def render_markdown(file_name):
"""Try to fet... | """Markdown routes
Render pages from github, or if they are unavailable, look for it else where
"""
import requests
import mistune
from flask import Blueprint
from flask import render_template
glossary_blueprint = Blueprint('glossary_blueprint', __name__)
@glossary_blueprint.route('/')
def glossary():
markdown... | <commit_before>"""Markdown routes
Render pages from github, or if they are unavailable, look for it else where
"""
import requests
import mistune
from flask import Blueprint
from flask import render_template
glossary_blueprint = Blueprint('glossary_blueprint', __name__)
@glossary_blueprint.route('/')
def glossary(... |
1abfdea38e868d68c532961459d2b4cbef5a9b71 | src/zeit/website/section.py | src/zeit/website/section.py | import zeit.website.interfaces
from zeit.cms.section.interfaces import ISectionMarker
import grokcore.component as grok
import zeit.cms.checkout.interfaces
import zeit.cms.content.interfaces
import zope.interface
@grok.subscribe(
zeit.cms.content.interfaces.ICommonMetadata,
zeit.cms.checkout.interfaces.IBefor... | import zeit.website.interfaces
from zeit.cms.section.interfaces import ISectionMarker
import grokcore.component as grok
import zeit.cms.checkout.interfaces
import zeit.cms.content.interfaces
import zope.interface
@grok.subscribe(
zeit.cms.content.interfaces.ICommonMetadata,
zeit.cms.checkout.interfaces.IBefor... | Remove iface, if rebrush_contetn ist not set | Remove iface, if rebrush_contetn ist not set
| Python | bsd-3-clause | ZeitOnline/zeit.website | import zeit.website.interfaces
from zeit.cms.section.interfaces import ISectionMarker
import grokcore.component as grok
import zeit.cms.checkout.interfaces
import zeit.cms.content.interfaces
import zope.interface
@grok.subscribe(
zeit.cms.content.interfaces.ICommonMetadata,
zeit.cms.checkout.interfaces.IBefor... | import zeit.website.interfaces
from zeit.cms.section.interfaces import ISectionMarker
import grokcore.component as grok
import zeit.cms.checkout.interfaces
import zeit.cms.content.interfaces
import zope.interface
@grok.subscribe(
zeit.cms.content.interfaces.ICommonMetadata,
zeit.cms.checkout.interfaces.IBefor... | <commit_before>import zeit.website.interfaces
from zeit.cms.section.interfaces import ISectionMarker
import grokcore.component as grok
import zeit.cms.checkout.interfaces
import zeit.cms.content.interfaces
import zope.interface
@grok.subscribe(
zeit.cms.content.interfaces.ICommonMetadata,
zeit.cms.checkout.in... | import zeit.website.interfaces
from zeit.cms.section.interfaces import ISectionMarker
import grokcore.component as grok
import zeit.cms.checkout.interfaces
import zeit.cms.content.interfaces
import zope.interface
@grok.subscribe(
zeit.cms.content.interfaces.ICommonMetadata,
zeit.cms.checkout.interfaces.IBefor... | import zeit.website.interfaces
from zeit.cms.section.interfaces import ISectionMarker
import grokcore.component as grok
import zeit.cms.checkout.interfaces
import zeit.cms.content.interfaces
import zope.interface
@grok.subscribe(
zeit.cms.content.interfaces.ICommonMetadata,
zeit.cms.checkout.interfaces.IBefor... | <commit_before>import zeit.website.interfaces
from zeit.cms.section.interfaces import ISectionMarker
import grokcore.component as grok
import zeit.cms.checkout.interfaces
import zeit.cms.content.interfaces
import zope.interface
@grok.subscribe(
zeit.cms.content.interfaces.ICommonMetadata,
zeit.cms.checkout.in... |
358f31fcc8155e15f28f77aee6b434fad2a54935 | iris_sdk/models/import_tn_checker.py | iris_sdk/models/import_tn_checker.py | #!/usr/bin/env python
from __future__ import division, absolute_import, print_function
from future.builtins import super
from iris_sdk.models.base_resource import BaseResource
from iris_sdk.models.data.import_tn_checker import ImportTnCheckerData
from iris_sdk.models.import_tn_checker_response import ImportTnCheckerRe... | #!/usr/bin/env python
from __future__ import division, absolute_import, print_function
from future.builtins import super
from iris_sdk.models.base_resource import BaseResource
from iris_sdk.models.data.import_tn_checker import ImportTnCheckerData
from iris_sdk.models.import_tn_checker_response import ImportTnCheckerRe... | Reset the ImportTnChecker on every call | Reset the ImportTnChecker on every call
The list of phone numbers was being retained, potentially resulting in
duplicates with every call.
| Python | mit | bandwidthcom/python-bandwidth-iris | #!/usr/bin/env python
from __future__ import division, absolute_import, print_function
from future.builtins import super
from iris_sdk.models.base_resource import BaseResource
from iris_sdk.models.data.import_tn_checker import ImportTnCheckerData
from iris_sdk.models.import_tn_checker_response import ImportTnCheckerRe... | #!/usr/bin/env python
from __future__ import division, absolute_import, print_function
from future.builtins import super
from iris_sdk.models.base_resource import BaseResource
from iris_sdk.models.data.import_tn_checker import ImportTnCheckerData
from iris_sdk.models.import_tn_checker_response import ImportTnCheckerRe... | <commit_before>#!/usr/bin/env python
from __future__ import division, absolute_import, print_function
from future.builtins import super
from iris_sdk.models.base_resource import BaseResource
from iris_sdk.models.data.import_tn_checker import ImportTnCheckerData
from iris_sdk.models.import_tn_checker_response import Im... | #!/usr/bin/env python
from __future__ import division, absolute_import, print_function
from future.builtins import super
from iris_sdk.models.base_resource import BaseResource
from iris_sdk.models.data.import_tn_checker import ImportTnCheckerData
from iris_sdk.models.import_tn_checker_response import ImportTnCheckerRe... | #!/usr/bin/env python
from __future__ import division, absolute_import, print_function
from future.builtins import super
from iris_sdk.models.base_resource import BaseResource
from iris_sdk.models.data.import_tn_checker import ImportTnCheckerData
from iris_sdk.models.import_tn_checker_response import ImportTnCheckerRe... | <commit_before>#!/usr/bin/env python
from __future__ import division, absolute_import, print_function
from future.builtins import super
from iris_sdk.models.base_resource import BaseResource
from iris_sdk.models.data.import_tn_checker import ImportTnCheckerData
from iris_sdk.models.import_tn_checker_response import Im... |
533d6294a47a4a974dfda1743e9fcd6146ede27f | codonpdx/insert.py | codonpdx/insert.py | #!/usr/bin/env python
import json
import sys
from db import dbManager
# insert an organism into a database table
def insert(args):
if args.json:
data = json.loads(args.json)
else:
data = json.load(args.infile)
with dbManager('config/db.cfg') as db:
for org in data:
db.... | #!/usr/bin/env python
import json
import sys
from db import dbManager
# insert an organism into a database table
def insert(args):
if hasattr(args, 'json'):
data = json.loads(args.json)
else:
data = json.load(args.infile)
with dbManager('config/db.cfg') as db:
for org in data:
... | Fix testing for JSON parameter existence. | Fix testing for JSON parameter existence.
| Python | apache-2.0 | PDX-Flamingo/codonpdx-python,PDX-Flamingo/codonpdx-python | #!/usr/bin/env python
import json
import sys
from db import dbManager
# insert an organism into a database table
def insert(args):
if args.json:
data = json.loads(args.json)
else:
data = json.load(args.infile)
with dbManager('config/db.cfg') as db:
for org in data:
db.... | #!/usr/bin/env python
import json
import sys
from db import dbManager
# insert an organism into a database table
def insert(args):
if hasattr(args, 'json'):
data = json.loads(args.json)
else:
data = json.load(args.infile)
with dbManager('config/db.cfg') as db:
for org in data:
... | <commit_before>#!/usr/bin/env python
import json
import sys
from db import dbManager
# insert an organism into a database table
def insert(args):
if args.json:
data = json.loads(args.json)
else:
data = json.load(args.infile)
with dbManager('config/db.cfg') as db:
for org in data:
... | #!/usr/bin/env python
import json
import sys
from db import dbManager
# insert an organism into a database table
def insert(args):
if hasattr(args, 'json'):
data = json.loads(args.json)
else:
data = json.load(args.infile)
with dbManager('config/db.cfg') as db:
for org in data:
... | #!/usr/bin/env python
import json
import sys
from db import dbManager
# insert an organism into a database table
def insert(args):
if args.json:
data = json.loads(args.json)
else:
data = json.load(args.infile)
with dbManager('config/db.cfg') as db:
for org in data:
db.... | <commit_before>#!/usr/bin/env python
import json
import sys
from db import dbManager
# insert an organism into a database table
def insert(args):
if args.json:
data = json.loads(args.json)
else:
data = json.load(args.infile)
with dbManager('config/db.cfg') as db:
for org in data:
... |
215c6d714df53f6f52f2bf819f2a01f1c1eab294 | learntris.py | learntris.py | #!/usr/bin/env python
import sys
class Grid(object):
def __init__(self):
self.board = ['. '*10 for row in range(0,22)]
self.score = 0
self.lines_clear = 0
def draw_board(self):
for cell in self.board:
print cell
def given(self):
self.board = []
... | #!/usr/bin/env python
import sys
class Grid(object):
def __init__(self):
self.board = [[None] * 10 for i in range(22)]
self.score = 0
self.lines_clear = 0
def draw_board(self):
current_board = self.board
for row in current_board:
row = map(lambda... | Change data structure to multidimensional array Now passing Test 2 | Change data structure to multidimensional array
Now passing Test 2
| Python | mit | mosegontar/learntris | #!/usr/bin/env python
import sys
class Grid(object):
def __init__(self):
self.board = ['. '*10 for row in range(0,22)]
self.score = 0
self.lines_clear = 0
def draw_board(self):
for cell in self.board:
print cell
def given(self):
self.board = []
... | #!/usr/bin/env python
import sys
class Grid(object):
def __init__(self):
self.board = [[None] * 10 for i in range(22)]
self.score = 0
self.lines_clear = 0
def draw_board(self):
current_board = self.board
for row in current_board:
row = map(lambda... | <commit_before>#!/usr/bin/env python
import sys
class Grid(object):
def __init__(self):
self.board = ['. '*10 for row in range(0,22)]
self.score = 0
self.lines_clear = 0
def draw_board(self):
for cell in self.board:
print cell
def given(self):
self.b... | #!/usr/bin/env python
import sys
class Grid(object):
def __init__(self):
self.board = [[None] * 10 for i in range(22)]
self.score = 0
self.lines_clear = 0
def draw_board(self):
current_board = self.board
for row in current_board:
row = map(lambda... | #!/usr/bin/env python
import sys
class Grid(object):
def __init__(self):
self.board = ['. '*10 for row in range(0,22)]
self.score = 0
self.lines_clear = 0
def draw_board(self):
for cell in self.board:
print cell
def given(self):
self.board = []
... | <commit_before>#!/usr/bin/env python
import sys
class Grid(object):
def __init__(self):
self.board = ['. '*10 for row in range(0,22)]
self.score = 0
self.lines_clear = 0
def draw_board(self):
for cell in self.board:
print cell
def given(self):
self.b... |
73e28db67c8e2ea897790844dd3eb65e6c4c5c98 | extensions/rules/coord_two_dim.py | extensions/rules/coord_two_dim.py | # coding: utf-8
#
# Copyright 2014 The Oppia Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | # coding: utf-8
#
# Copyright 2014 The Oppia Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | Add TODO for interactive map classifier | Add TODO for interactive map classifier
| Python | apache-2.0 | zgchizi/oppia-uc,kevinlee12/oppia,michaelWagner/oppia,oppia/oppia,kennho/oppia,jestapinski/oppia,prasanna08/oppia,prasanna08/oppia,amitdeutsch/oppia,DewarM/oppia,kingctan/oppia,rackstar17/oppia,sdulal/oppia,zgchizi/oppia-uc,prasanna08/oppia,kennho/oppia,prasanna08/oppia,AllanYangZhou/oppia,souravbadami/oppia,AllanYangZ... | # coding: utf-8
#
# Copyright 2014 The Oppia Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | # coding: utf-8
#
# Copyright 2014 The Oppia Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | <commit_before># coding: utf-8
#
# Copyright 2014 The Oppia Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#... | # coding: utf-8
#
# Copyright 2014 The Oppia Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | # coding: utf-8
#
# Copyright 2014 The Oppia Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | <commit_before># coding: utf-8
#
# Copyright 2014 The Oppia Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#... |
ba745d03c11d7478c4da5a68246ec9d461077365 | experiments/rnnencdec/__init__.py | experiments/rnnencdec/__init__.py | from encdec import RNNEncoderDecoder
from encdec import get_batch_iterator
from encdec import parse_input
from encdec import create_padded_batch
from state import prototype_state
from state import prototype_search_state
from state import prototype_sentence_state
from state import prototype_autoenc_state
from state imp... | from encdec import RNNEncoderDecoder
from encdec import get_batch_iterator
from encdec import parse_input
from encdec import create_padded_batch
from state import prototype_state
from state import prototype_search_state
from state import prototype_sentence_state
| Remove states that do not exist anymore | Remove states that do not exist anymore
| Python | bsd-3-clause | sebastien-j/LV_groundhog,ZenDevelopmentSystems/GroundHog,kyunghyuncho/GroundHog,dmitriy-serdyuk/EncDecASR,OlafLee/LV_groundhog,ZenDevelopmentSystems/GroundHog,sebastien-j/LV_groundhog,lisa-groundhog/GroundHog,vseledkin/LV_groundhog,vseledkin/LV_groundhog,zerkh/GroundHog,hezhenghao/GroundHog,zerkh/GroundHog,OlafLee/LV_g... | from encdec import RNNEncoderDecoder
from encdec import get_batch_iterator
from encdec import parse_input
from encdec import create_padded_batch
from state import prototype_state
from state import prototype_search_state
from state import prototype_sentence_state
from state import prototype_autoenc_state
from state imp... | from encdec import RNNEncoderDecoder
from encdec import get_batch_iterator
from encdec import parse_input
from encdec import create_padded_batch
from state import prototype_state
from state import prototype_search_state
from state import prototype_sentence_state
| <commit_before>from encdec import RNNEncoderDecoder
from encdec import get_batch_iterator
from encdec import parse_input
from encdec import create_padded_batch
from state import prototype_state
from state import prototype_search_state
from state import prototype_sentence_state
from state import prototype_autoenc_state... | from encdec import RNNEncoderDecoder
from encdec import get_batch_iterator
from encdec import parse_input
from encdec import create_padded_batch
from state import prototype_state
from state import prototype_search_state
from state import prototype_sentence_state
| from encdec import RNNEncoderDecoder
from encdec import get_batch_iterator
from encdec import parse_input
from encdec import create_padded_batch
from state import prototype_state
from state import prototype_search_state
from state import prototype_sentence_state
from state import prototype_autoenc_state
from state imp... | <commit_before>from encdec import RNNEncoderDecoder
from encdec import get_batch_iterator
from encdec import parse_input
from encdec import create_padded_batch
from state import prototype_state
from state import prototype_search_state
from state import prototype_sentence_state
from state import prototype_autoenc_state... |
befe47c35c68e17231e21febbf52041f245b8985 | django_mailer/managers.py | django_mailer/managers.py | from django.db import models
from django_mailer import constants
class QueueManager(models.Manager):
use_for_related_fields = True
def high_priority(self):
"""
Return a QuerySet of high priority queued messages.
"""
return self.filter(priority=constants.PRIORITY_HIGH)... | from django.db import models
from django_mailer import constants
class QueueManager(models.Manager):
use_for_related_fields = True
def high_priority(self):
"""
Return a QuerySet of high priority queued messages.
"""
return self.filter(priority=constants.PRIORITY_HIGH)... | Update the retries count of a queued message when it is changed back from deferred | Update the retries count of a queued message when it is changed back from deferred
| Python | mit | APSL/django-mailer-2,Giftovus/django-mailer-2,davidmarble/django-mailer-2,SmileyChris/django-mailer-2,kvh/django-mailer-2,maykinmedia/django-mailer-2,PSyton/django-mailer-2,APSL/django-mailer-2,colinhowe/django-mailer-2,rofrankel/django-mailer-2,maykinmedia/django-mailer-2,APSL/django-mailer-2,GreenLightGo/django-maile... | from django.db import models
from django_mailer import constants
class QueueManager(models.Manager):
use_for_related_fields = True
def high_priority(self):
"""
Return a QuerySet of high priority queued messages.
"""
return self.filter(priority=constants.PRIORITY_HIGH)... | from django.db import models
from django_mailer import constants
class QueueManager(models.Manager):
use_for_related_fields = True
def high_priority(self):
"""
Return a QuerySet of high priority queued messages.
"""
return self.filter(priority=constants.PRIORITY_HIGH)... | <commit_before>from django.db import models
from django_mailer import constants
class QueueManager(models.Manager):
use_for_related_fields = True
def high_priority(self):
"""
Return a QuerySet of high priority queued messages.
"""
return self.filter(priority=constants... | from django.db import models
from django_mailer import constants
class QueueManager(models.Manager):
use_for_related_fields = True
def high_priority(self):
"""
Return a QuerySet of high priority queued messages.
"""
return self.filter(priority=constants.PRIORITY_HIGH)... | from django.db import models
from django_mailer import constants
class QueueManager(models.Manager):
use_for_related_fields = True
def high_priority(self):
"""
Return a QuerySet of high priority queued messages.
"""
return self.filter(priority=constants.PRIORITY_HIGH)... | <commit_before>from django.db import models
from django_mailer import constants
class QueueManager(models.Manager):
use_for_related_fields = True
def high_priority(self):
"""
Return a QuerySet of high priority queued messages.
"""
return self.filter(priority=constants... |
53a38a716c01cfd15bc1aff89c6c7908a5218bfb | integration_tests/experiment_type.py | integration_tests/experiment_type.py | from enum import unique, IntEnum
@unique
class ExperimentType(IntEnum):
Detumbling = 1
EraseFlash = 2
SunS = 3
LEOP = 4
RadFET = 5
SADS = 6
Sail = 7
Fibo = 8
Payload = 9
Camera = 10
@unique
class StartResult(IntEnum):
Success = 0
Failure = 1
@unique
class IterationR... | from enum import unique, IntEnum
@unique
class ExperimentType(IntEnum):
Detumbling = 1
EraseFlash = 2
SunS = 3
LEOP = 4
RadFET = 5
SADS = 6
Sail = 7
Fibo = 8
Payload = 9
Camera = 10
@unique
class StartResult(IntEnum):
Success = 0
Failure = 1
@unique
class IterationR... | Fix python projection of experiment iteration result enumeration. | Fix python projection of experiment iteration result enumeration.
| Python | agpl-3.0 | PW-Sat2/PWSat2OBC,PW-Sat2/PWSat2OBC,PW-Sat2/PWSat2OBC,PW-Sat2/PWSat2OBC | from enum import unique, IntEnum
@unique
class ExperimentType(IntEnum):
Detumbling = 1
EraseFlash = 2
SunS = 3
LEOP = 4
RadFET = 5
SADS = 6
Sail = 7
Fibo = 8
Payload = 9
Camera = 10
@unique
class StartResult(IntEnum):
Success = 0
Failure = 1
@unique
class IterationR... | from enum import unique, IntEnum
@unique
class ExperimentType(IntEnum):
Detumbling = 1
EraseFlash = 2
SunS = 3
LEOP = 4
RadFET = 5
SADS = 6
Sail = 7
Fibo = 8
Payload = 9
Camera = 10
@unique
class StartResult(IntEnum):
Success = 0
Failure = 1
@unique
class IterationR... | <commit_before>from enum import unique, IntEnum
@unique
class ExperimentType(IntEnum):
Detumbling = 1
EraseFlash = 2
SunS = 3
LEOP = 4
RadFET = 5
SADS = 6
Sail = 7
Fibo = 8
Payload = 9
Camera = 10
@unique
class StartResult(IntEnum):
Success = 0
Failure = 1
@unique
c... | from enum import unique, IntEnum
@unique
class ExperimentType(IntEnum):
Detumbling = 1
EraseFlash = 2
SunS = 3
LEOP = 4
RadFET = 5
SADS = 6
Sail = 7
Fibo = 8
Payload = 9
Camera = 10
@unique
class StartResult(IntEnum):
Success = 0
Failure = 1
@unique
class IterationR... | from enum import unique, IntEnum
@unique
class ExperimentType(IntEnum):
Detumbling = 1
EraseFlash = 2
SunS = 3
LEOP = 4
RadFET = 5
SADS = 6
Sail = 7
Fibo = 8
Payload = 9
Camera = 10
@unique
class StartResult(IntEnum):
Success = 0
Failure = 1
@unique
class IterationR... | <commit_before>from enum import unique, IntEnum
@unique
class ExperimentType(IntEnum):
Detumbling = 1
EraseFlash = 2
SunS = 3
LEOP = 4
RadFET = 5
SADS = 6
Sail = 7
Fibo = 8
Payload = 9
Camera = 10
@unique
class StartResult(IntEnum):
Success = 0
Failure = 1
@unique
c... |
31212104810f6c700ccc9561ac3d355b1894ef47 | glimpse/__init__.py | glimpse/__init__.py | """
Hierarchical visual models in C++ and Python
============================================
The Glimpse project is a library for implementing hierarchical visual models
in C++ and Python. The goal of this project is to allow a broad range of
feed-forward, hierarchical models to be encoded in a high-level declarative... | """
Hierarchical visual models in C++ and Python
============================================
The Glimpse project is a library for implementing hierarchical visual models
in C++ and Python. The goal of this project is to allow a broad range of
feed-forward, hierarchical models to be encoded in a high-level declarative... | Fix PIL bug on OS X. | Fix PIL bug on OS X.
| Python | mit | mthomure/glimpse-project,mthomure/glimpse-project,mthomure/glimpse-project | """
Hierarchical visual models in C++ and Python
============================================
The Glimpse project is a library for implementing hierarchical visual models
in C++ and Python. The goal of this project is to allow a broad range of
feed-forward, hierarchical models to be encoded in a high-level declarative... | """
Hierarchical visual models in C++ and Python
============================================
The Glimpse project is a library for implementing hierarchical visual models
in C++ and Python. The goal of this project is to allow a broad range of
feed-forward, hierarchical models to be encoded in a high-level declarative... | <commit_before>"""
Hierarchical visual models in C++ and Python
============================================
The Glimpse project is a library for implementing hierarchical visual models
in C++ and Python. The goal of this project is to allow a broad range of
feed-forward, hierarchical models to be encoded in a high-le... | """
Hierarchical visual models in C++ and Python
============================================
The Glimpse project is a library for implementing hierarchical visual models
in C++ and Python. The goal of this project is to allow a broad range of
feed-forward, hierarchical models to be encoded in a high-level declarative... | """
Hierarchical visual models in C++ and Python
============================================
The Glimpse project is a library for implementing hierarchical visual models
in C++ and Python. The goal of this project is to allow a broad range of
feed-forward, hierarchical models to be encoded in a high-level declarative... | <commit_before>"""
Hierarchical visual models in C++ and Python
============================================
The Glimpse project is a library for implementing hierarchical visual models
in C++ and Python. The goal of this project is to allow a broad range of
feed-forward, hierarchical models to be encoded in a high-le... |
ce85550a4bf080e629fbf1443d31a5305c0e0ac3 | IPython/utils/tests/test_tempdir.py | IPython/utils/tests/test_tempdir.py | #-----------------------------------------------------------------------------
# Copyright (C) 2012- The IPython Development Team
#
# Distributed under the terms of the BSD License. The full license is in
# the file COPYING, distributed as part of this software.
#---------------------------------------------------... | #-----------------------------------------------------------------------------
# Copyright (C) 2012- The IPython Development Team
#
# Distributed under the terms of the BSD License. The full license is in
# the file COPYING, distributed as part of this software.
#---------------------------------------------------... | Fix failing test in Python 3 | Fix failing test in Python 3
| Python | bsd-3-clause | ipython/ipython,ipython/ipython | #-----------------------------------------------------------------------------
# Copyright (C) 2012- The IPython Development Team
#
# Distributed under the terms of the BSD License. The full license is in
# the file COPYING, distributed as part of this software.
#---------------------------------------------------... | #-----------------------------------------------------------------------------
# Copyright (C) 2012- The IPython Development Team
#
# Distributed under the terms of the BSD License. The full license is in
# the file COPYING, distributed as part of this software.
#---------------------------------------------------... | <commit_before>#-----------------------------------------------------------------------------
# Copyright (C) 2012- The IPython Development Team
#
# Distributed under the terms of the BSD License. The full license is in
# the file COPYING, distributed as part of this software.
#------------------------------------... | #-----------------------------------------------------------------------------
# Copyright (C) 2012- The IPython Development Team
#
# Distributed under the terms of the BSD License. The full license is in
# the file COPYING, distributed as part of this software.
#---------------------------------------------------... | #-----------------------------------------------------------------------------
# Copyright (C) 2012- The IPython Development Team
#
# Distributed under the terms of the BSD License. The full license is in
# the file COPYING, distributed as part of this software.
#---------------------------------------------------... | <commit_before>#-----------------------------------------------------------------------------
# Copyright (C) 2012- The IPython Development Team
#
# Distributed under the terms of the BSD License. The full license is in
# the file COPYING, distributed as part of this software.
#------------------------------------... |
bf7f726821f2ac74e99fd5fd06729ea2becab0c9 | ModuleInterface.py | ModuleInterface.py | import GlobalVars
class ModuleInterface(object):
triggers = []
acceptedTypes = ['PRIVMSG']
help = '<no help defined (yet)>'
def __init__(self):
self.onStart()
def onStart(self):
pass
def hasAlias(self, message):
if message.Type in self.acceptedTypes and message.Comma... | import GlobalVars
class ModuleInterface(object):
triggers = []
acceptedTypes = ['PRIVMSG']
help = '<no help defined (yet)>'
def __init__(self):
self.onStart()
def onStart(self):
pass
def hasAlias(self, message):
if message.Type in self.acceptedTypes and message.Comma... | Return false if no alias. | [ModuleInteface] Return false if no alias.
| Python | mit | HubbeKing/Hubbot_Twisted | import GlobalVars
class ModuleInterface(object):
triggers = []
acceptedTypes = ['PRIVMSG']
help = '<no help defined (yet)>'
def __init__(self):
self.onStart()
def onStart(self):
pass
def hasAlias(self, message):
if message.Type in self.acceptedTypes and message.Comma... | import GlobalVars
class ModuleInterface(object):
triggers = []
acceptedTypes = ['PRIVMSG']
help = '<no help defined (yet)>'
def __init__(self):
self.onStart()
def onStart(self):
pass
def hasAlias(self, message):
if message.Type in self.acceptedTypes and message.Comma... | <commit_before>import GlobalVars
class ModuleInterface(object):
triggers = []
acceptedTypes = ['PRIVMSG']
help = '<no help defined (yet)>'
def __init__(self):
self.onStart()
def onStart(self):
pass
def hasAlias(self, message):
if message.Type in self.acceptedTypes an... | import GlobalVars
class ModuleInterface(object):
triggers = []
acceptedTypes = ['PRIVMSG']
help = '<no help defined (yet)>'
def __init__(self):
self.onStart()
def onStart(self):
pass
def hasAlias(self, message):
if message.Type in self.acceptedTypes and message.Comma... | import GlobalVars
class ModuleInterface(object):
triggers = []
acceptedTypes = ['PRIVMSG']
help = '<no help defined (yet)>'
def __init__(self):
self.onStart()
def onStart(self):
pass
def hasAlias(self, message):
if message.Type in self.acceptedTypes and message.Comma... | <commit_before>import GlobalVars
class ModuleInterface(object):
triggers = []
acceptedTypes = ['PRIVMSG']
help = '<no help defined (yet)>'
def __init__(self):
self.onStart()
def onStart(self):
pass
def hasAlias(self, message):
if message.Type in self.acceptedTypes an... |
2c4f32fbc407acb0b65ddc6fb71d192af74e740e | tcconfig/parser/_interface.py | tcconfig/parser/_interface.py | # encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <[email protected]>
"""
from __future__ import absolute_import, unicode_literals
import abc
import six
@six.add_metaclass(abc.ABCMeta)
class ParserInterface(object):
@abc.abstractmethod
def parse(self, text): # pragma: no cover
pas... | # encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <[email protected]>
"""
from __future__ import absolute_import, unicode_literals
import abc
import six
@six.add_metaclass(abc.ABCMeta)
class ParserInterface(object):
@abc.abstractmethod
def parse(self, device, text): # pragma: no cover
... | Align the method signature with subclasses | Align the method signature with subclasses
| Python | mit | thombashi/tcconfig,thombashi/tcconfig | # encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <[email protected]>
"""
from __future__ import absolute_import, unicode_literals
import abc
import six
@six.add_metaclass(abc.ABCMeta)
class ParserInterface(object):
@abc.abstractmethod
def parse(self, text): # pragma: no cover
pas... | # encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <[email protected]>
"""
from __future__ import absolute_import, unicode_literals
import abc
import six
@six.add_metaclass(abc.ABCMeta)
class ParserInterface(object):
@abc.abstractmethod
def parse(self, device, text): # pragma: no cover
... | <commit_before># encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <[email protected]>
"""
from __future__ import absolute_import, unicode_literals
import abc
import six
@six.add_metaclass(abc.ABCMeta)
class ParserInterface(object):
@abc.abstractmethod
def parse(self, text): # pragma: no co... | # encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <[email protected]>
"""
from __future__ import absolute_import, unicode_literals
import abc
import six
@six.add_metaclass(abc.ABCMeta)
class ParserInterface(object):
@abc.abstractmethod
def parse(self, device, text): # pragma: no cover
... | # encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <[email protected]>
"""
from __future__ import absolute_import, unicode_literals
import abc
import six
@six.add_metaclass(abc.ABCMeta)
class ParserInterface(object):
@abc.abstractmethod
def parse(self, text): # pragma: no cover
pas... | <commit_before># encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <[email protected]>
"""
from __future__ import absolute_import, unicode_literals
import abc
import six
@six.add_metaclass(abc.ABCMeta)
class ParserInterface(object):
@abc.abstractmethod
def parse(self, text): # pragma: no co... |
bdc51bb7a71dba4a25fcded0d2758a9af5e15679 | pythran/tests/test_doc.py | pythran/tests/test_doc.py | import unittest
import doctest
class TestDoctest(unittest.TestCase):
modules = ('passes',)
def test_package(self):
import pythran
failed, _ = doctest.testmod(pythran)
self.assertEqual(failed, 0)
def test_passes(self):
from pythran import passes
failed, _ = doctest... | import unittest
import doctest
import pythran
import inspect
class TestDoctest(unittest.TestCase):
'''
Enable automatic doctest integration to unittest
Every module in the pythran package is scanned for doctests
and one test per module is created
'''
pass
def generic_test_package(self, mod):
... | Make doctest integration in unittest generic. | Make doctest integration in unittest generic.
Rely on introspection rather than redundant typing.
| Python | bsd-3-clause | pbrunet/pythran,artas360/pythran,pbrunet/pythran,pbrunet/pythran,serge-sans-paille/pythran,artas360/pythran,hainm/pythran,serge-sans-paille/pythran,hainm/pythran,pombredanne/pythran,pombredanne/pythran,pombredanne/pythran,hainm/pythran,artas360/pythran | import unittest
import doctest
class TestDoctest(unittest.TestCase):
modules = ('passes',)
def test_package(self):
import pythran
failed, _ = doctest.testmod(pythran)
self.assertEqual(failed, 0)
def test_passes(self):
from pythran import passes
failed, _ = doctest... | import unittest
import doctest
import pythran
import inspect
class TestDoctest(unittest.TestCase):
'''
Enable automatic doctest integration to unittest
Every module in the pythran package is scanned for doctests
and one test per module is created
'''
pass
def generic_test_package(self, mod):
... | <commit_before>import unittest
import doctest
class TestDoctest(unittest.TestCase):
modules = ('passes',)
def test_package(self):
import pythran
failed, _ = doctest.testmod(pythran)
self.assertEqual(failed, 0)
def test_passes(self):
from pythran import passes
fail... | import unittest
import doctest
import pythran
import inspect
class TestDoctest(unittest.TestCase):
'''
Enable automatic doctest integration to unittest
Every module in the pythran package is scanned for doctests
and one test per module is created
'''
pass
def generic_test_package(self, mod):
... | import unittest
import doctest
class TestDoctest(unittest.TestCase):
modules = ('passes',)
def test_package(self):
import pythran
failed, _ = doctest.testmod(pythran)
self.assertEqual(failed, 0)
def test_passes(self):
from pythran import passes
failed, _ = doctest... | <commit_before>import unittest
import doctest
class TestDoctest(unittest.TestCase):
modules = ('passes',)
def test_package(self):
import pythran
failed, _ = doctest.testmod(pythran)
self.assertEqual(failed, 0)
def test_passes(self):
from pythran import passes
fail... |
9c7808b1f6571daaaf19dc1bfc57bf83cfb37bad | hybra/wordclouds.py | hybra/wordclouds.py | from __future__ import absolute_import, division, print_function, unicode_literals
from collections import Counter
import re
def create_wordcloud( data, stopwords = ["the", "a", "or", "tai", "and", "ja", "to", "on", "in", "of", "for", "is", "i", "this", "http", "www", "fi", "com"] ):
import types
if isinsta... | from __future__ import absolute_import, division, print_function, unicode_literals
from collections import Counter
import re
def create_wordcloud( data, plt, stopwords = ["the", "a", "or", "tai", "and", "ja", "to", "on", "in", "of", "for", "is", "i", "this", "http", "www", "fi", "com"] ):
import types
if is... | Fix bug in wordcloud method | Fix bug in wordcloud method
| Python | mit | HIIT/hybra-core,HIIT/hybra-core,HIIT/hybra-core,HIIT/hybra-core,HIIT/hybra-core | from __future__ import absolute_import, division, print_function, unicode_literals
from collections import Counter
import re
def create_wordcloud( data, stopwords = ["the", "a", "or", "tai", "and", "ja", "to", "on", "in", "of", "for", "is", "i", "this", "http", "www", "fi", "com"] ):
import types
if isinsta... | from __future__ import absolute_import, division, print_function, unicode_literals
from collections import Counter
import re
def create_wordcloud( data, plt, stopwords = ["the", "a", "or", "tai", "and", "ja", "to", "on", "in", "of", "for", "is", "i", "this", "http", "www", "fi", "com"] ):
import types
if is... | <commit_before>from __future__ import absolute_import, division, print_function, unicode_literals
from collections import Counter
import re
def create_wordcloud( data, stopwords = ["the", "a", "or", "tai", "and", "ja", "to", "on", "in", "of", "for", "is", "i", "this", "http", "www", "fi", "com"] ):
import types
... | from __future__ import absolute_import, division, print_function, unicode_literals
from collections import Counter
import re
def create_wordcloud( data, plt, stopwords = ["the", "a", "or", "tai", "and", "ja", "to", "on", "in", "of", "for", "is", "i", "this", "http", "www", "fi", "com"] ):
import types
if is... | from __future__ import absolute_import, division, print_function, unicode_literals
from collections import Counter
import re
def create_wordcloud( data, stopwords = ["the", "a", "or", "tai", "and", "ja", "to", "on", "in", "of", "for", "is", "i", "this", "http", "www", "fi", "com"] ):
import types
if isinsta... | <commit_before>from __future__ import absolute_import, division, print_function, unicode_literals
from collections import Counter
import re
def create_wordcloud( data, stopwords = ["the", "a", "or", "tai", "and", "ja", "to", "on", "in", "of", "for", "is", "i", "this", "http", "www", "fi", "com"] ):
import types
... |
0e2275c0d2623a7ec62e7109d3ffdd859118ed9d | external_tools/src/main/python/images/move_corrupt_images.py | external_tools/src/main/python/images/move_corrupt_images.py | """
Script to move corrupt images to 'dirty' directory
Reads list of images to move. Does not verify that images are corrupt -
Simply moves to 'dirty' directory of appropriate data-release creating
the required directory structure
"""
import os
import argparse
parser = argparse.ArgumentParser(
... | """
Script to move corrupt images to 'dirty' directory
Reads list of images to move. Does not verify that images are corrupt -
Simply moves to 'dirty' directory of appropriate data-release creating
the required directory structure
"""
import os
import argparse
parser = argparse.ArgumentParser(
... | Use os.rename instead of os.path in moving dirs | Use os.rename instead of os.path in moving dirs
| Python | apache-2.0 | mpi2/PhenotypeData,mpi2/PhenotypeData,mpi2/PhenotypeData,mpi2/PhenotypeData,mpi2/PhenotypeData,mpi2/PhenotypeData | """
Script to move corrupt images to 'dirty' directory
Reads list of images to move. Does not verify that images are corrupt -
Simply moves to 'dirty' directory of appropriate data-release creating
the required directory structure
"""
import os
import argparse
parser = argparse.ArgumentParser(
... | """
Script to move corrupt images to 'dirty' directory
Reads list of images to move. Does not verify that images are corrupt -
Simply moves to 'dirty' directory of appropriate data-release creating
the required directory structure
"""
import os
import argparse
parser = argparse.ArgumentParser(
... | <commit_before>"""
Script to move corrupt images to 'dirty' directory
Reads list of images to move. Does not verify that images are corrupt -
Simply moves to 'dirty' directory of appropriate data-release creating
the required directory structure
"""
import os
import argparse
parser = argparse.Ar... | """
Script to move corrupt images to 'dirty' directory
Reads list of images to move. Does not verify that images are corrupt -
Simply moves to 'dirty' directory of appropriate data-release creating
the required directory structure
"""
import os
import argparse
parser = argparse.ArgumentParser(
... | """
Script to move corrupt images to 'dirty' directory
Reads list of images to move. Does not verify that images are corrupt -
Simply moves to 'dirty' directory of appropriate data-release creating
the required directory structure
"""
import os
import argparse
parser = argparse.ArgumentParser(
... | <commit_before>"""
Script to move corrupt images to 'dirty' directory
Reads list of images to move. Does not verify that images are corrupt -
Simply moves to 'dirty' directory of appropriate data-release creating
the required directory structure
"""
import os
import argparse
parser = argparse.Ar... |
4b193d9f0c46f91c5a58446e6443d8779e7ca5ce | server/plugins/ardinfo/scripts/ard_info.py | server/plugins/ardinfo/scripts/ard_info.py | #!/usr/bin/python
import os
import sys
sys.path.append("/usr/local/munki/munkilib")
import FoundationPlist
sys.path.append("/usr/local/sal")
import utils
def main():
ard_path = "/Library/Preferences/com.apple.RemoteDesktop.plist"
if os.path.exists(ard_path):
ard_prefs = FoundationPlist.readPlist(ar... | #!/usr/bin/python
import os
import sys
sys.path.append("/usr/local/munki")
from munkilib import FoundationPlist
sys.path.append("/usr/local/sal")
import utils
def main():
ard_path = "/Library/Preferences/com.apple.RemoteDesktop.plist"
if os.path.exists(ard_path):
ard_prefs = FoundationPlist.readPli... | Fix name clash over "utils" in ardinfo plugin script. | Fix name clash over "utils" in ardinfo plugin script.
| Python | apache-2.0 | sheagcraig/sal,sheagcraig/sal,salopensource/sal,sheagcraig/sal,salopensource/sal,salopensource/sal,sheagcraig/sal,salopensource/sal | #!/usr/bin/python
import os
import sys
sys.path.append("/usr/local/munki/munkilib")
import FoundationPlist
sys.path.append("/usr/local/sal")
import utils
def main():
ard_path = "/Library/Preferences/com.apple.RemoteDesktop.plist"
if os.path.exists(ard_path):
ard_prefs = FoundationPlist.readPlist(ar... | #!/usr/bin/python
import os
import sys
sys.path.append("/usr/local/munki")
from munkilib import FoundationPlist
sys.path.append("/usr/local/sal")
import utils
def main():
ard_path = "/Library/Preferences/com.apple.RemoteDesktop.plist"
if os.path.exists(ard_path):
ard_prefs = FoundationPlist.readPli... | <commit_before>#!/usr/bin/python
import os
import sys
sys.path.append("/usr/local/munki/munkilib")
import FoundationPlist
sys.path.append("/usr/local/sal")
import utils
def main():
ard_path = "/Library/Preferences/com.apple.RemoteDesktop.plist"
if os.path.exists(ard_path):
ard_prefs = FoundationPli... | #!/usr/bin/python
import os
import sys
sys.path.append("/usr/local/munki")
from munkilib import FoundationPlist
sys.path.append("/usr/local/sal")
import utils
def main():
ard_path = "/Library/Preferences/com.apple.RemoteDesktop.plist"
if os.path.exists(ard_path):
ard_prefs = FoundationPlist.readPli... | #!/usr/bin/python
import os
import sys
sys.path.append("/usr/local/munki/munkilib")
import FoundationPlist
sys.path.append("/usr/local/sal")
import utils
def main():
ard_path = "/Library/Preferences/com.apple.RemoteDesktop.plist"
if os.path.exists(ard_path):
ard_prefs = FoundationPlist.readPlist(ar... | <commit_before>#!/usr/bin/python
import os
import sys
sys.path.append("/usr/local/munki/munkilib")
import FoundationPlist
sys.path.append("/usr/local/sal")
import utils
def main():
ard_path = "/Library/Preferences/com.apple.RemoteDesktop.plist"
if os.path.exists(ard_path):
ard_prefs = FoundationPli... |
b920b818f6b4a83ce39a34f4f1b3afe6f8002906 | integration-test/400-bay-water.py | integration-test/400-bay-water.py | # San Pablo Bay
# https://www.openstreetmap.org/way/43950409
assert_has_feature(
14, 2623, 6318, 'water',
{ 'kind': 'bay', 'label_placement': True })
# Sansum Narrows
# https://www.openstreetmap.org/relation/1019862
assert_has_feature(
11, 321, 705, 'water',
{ 'kind': 'strait', 'label_placement': True ... | # San Pablo Bay
# https://www.openstreetmap.org/way/43950409
assert_has_feature(
14, 2623, 6318, 'water',
{ 'kind': 'bay', 'label_placement': True })
# Sansum Narrows
# https://www.openstreetmap.org/relation/1019862
assert_has_feature(
11, 321, 705, 'water',
{ 'kind': 'strait', 'label_placement': True ... | Update tile coordinate for fjord label placement | Update tile coordinate for fjord label placement
| Python | mit | mapzen/vector-datasource,mapzen/vector-datasource,mapzen/vector-datasource | # San Pablo Bay
# https://www.openstreetmap.org/way/43950409
assert_has_feature(
14, 2623, 6318, 'water',
{ 'kind': 'bay', 'label_placement': True })
# Sansum Narrows
# https://www.openstreetmap.org/relation/1019862
assert_has_feature(
11, 321, 705, 'water',
{ 'kind': 'strait', 'label_placement': True ... | # San Pablo Bay
# https://www.openstreetmap.org/way/43950409
assert_has_feature(
14, 2623, 6318, 'water',
{ 'kind': 'bay', 'label_placement': True })
# Sansum Narrows
# https://www.openstreetmap.org/relation/1019862
assert_has_feature(
11, 321, 705, 'water',
{ 'kind': 'strait', 'label_placement': True ... | <commit_before># San Pablo Bay
# https://www.openstreetmap.org/way/43950409
assert_has_feature(
14, 2623, 6318, 'water',
{ 'kind': 'bay', 'label_placement': True })
# Sansum Narrows
# https://www.openstreetmap.org/relation/1019862
assert_has_feature(
11, 321, 705, 'water',
{ 'kind': 'strait', 'label_pl... | # San Pablo Bay
# https://www.openstreetmap.org/way/43950409
assert_has_feature(
14, 2623, 6318, 'water',
{ 'kind': 'bay', 'label_placement': True })
# Sansum Narrows
# https://www.openstreetmap.org/relation/1019862
assert_has_feature(
11, 321, 705, 'water',
{ 'kind': 'strait', 'label_placement': True ... | # San Pablo Bay
# https://www.openstreetmap.org/way/43950409
assert_has_feature(
14, 2623, 6318, 'water',
{ 'kind': 'bay', 'label_placement': True })
# Sansum Narrows
# https://www.openstreetmap.org/relation/1019862
assert_has_feature(
11, 321, 705, 'water',
{ 'kind': 'strait', 'label_placement': True ... | <commit_before># San Pablo Bay
# https://www.openstreetmap.org/way/43950409
assert_has_feature(
14, 2623, 6318, 'water',
{ 'kind': 'bay', 'label_placement': True })
# Sansum Narrows
# https://www.openstreetmap.org/relation/1019862
assert_has_feature(
11, 321, 705, 'water',
{ 'kind': 'strait', 'label_pl... |
5bbd288c40e3a2bc1ee791545d704452699334f3 | cr8/aio.py | cr8/aio.py |
from tqdm import tqdm
import asyncio
try:
import uvloop
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
except ImportError:
pass
async def map_async(q, corof, iterable):
for i in iterable:
task = asyncio.ensure_future(corof(*i))
await q.put(task)
await q.join()
await q... |
from tqdm import tqdm
import asyncio
try:
import uvloop
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
except ImportError:
pass
async def map_async(q, corof, iterable):
for i in iterable:
task = asyncio.ensure_future(corof(*i))
await q.put(task)
await q.put(None)
async ... | Remove q.join() / task_done() usage | Remove q.join() / task_done() usage
Don't have to block producer anymore - it will wait for the consumer to
finish anyway
| Python | mit | mikethebeer/cr8,mfussenegger/cr8 |
from tqdm import tqdm
import asyncio
try:
import uvloop
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
except ImportError:
pass
async def map_async(q, corof, iterable):
for i in iterable:
task = asyncio.ensure_future(corof(*i))
await q.put(task)
await q.join()
await q... |
from tqdm import tqdm
import asyncio
try:
import uvloop
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
except ImportError:
pass
async def map_async(q, corof, iterable):
for i in iterable:
task = asyncio.ensure_future(corof(*i))
await q.put(task)
await q.put(None)
async ... | <commit_before>
from tqdm import tqdm
import asyncio
try:
import uvloop
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
except ImportError:
pass
async def map_async(q, corof, iterable):
for i in iterable:
task = asyncio.ensure_future(corof(*i))
await q.put(task)
await q.joi... |
from tqdm import tqdm
import asyncio
try:
import uvloop
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
except ImportError:
pass
async def map_async(q, corof, iterable):
for i in iterable:
task = asyncio.ensure_future(corof(*i))
await q.put(task)
await q.put(None)
async ... |
from tqdm import tqdm
import asyncio
try:
import uvloop
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
except ImportError:
pass
async def map_async(q, corof, iterable):
for i in iterable:
task = asyncio.ensure_future(corof(*i))
await q.put(task)
await q.join()
await q... | <commit_before>
from tqdm import tqdm
import asyncio
try:
import uvloop
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
except ImportError:
pass
async def map_async(q, corof, iterable):
for i in iterable:
task = asyncio.ensure_future(corof(*i))
await q.put(task)
await q.joi... |
7698ec18abd25ed41b3104a382e7d8ca38d755ca | tests/unit/test_describe.py | tests/unit/test_describe.py | import pytest
from mock import Mock
from formica import cli
from tests.unit.constants import STACK
def test_describes_change_set(boto_client, change_set):
cli.main(['describe', '--stack', STACK])
boto_client.assert_called_with('cloudformation')
change_set.assert_called_with(stack=STACK)
change_set.re... | import pytest
from mock import Mock
from formica import cli
from tests.unit.constants import STACK
def test_describes_change_set(boto_client, change_set):
cli.main(['describe', '--stack', STACK])
change_set.assert_called_with(stack=STACK)
change_set.return_value.describe.assert_called_once()
| Remove Assert Call not necessary anymore | Remove Assert Call not necessary anymore
| Python | mit | flomotlik/formica | import pytest
from mock import Mock
from formica import cli
from tests.unit.constants import STACK
def test_describes_change_set(boto_client, change_set):
cli.main(['describe', '--stack', STACK])
boto_client.assert_called_with('cloudformation')
change_set.assert_called_with(stack=STACK)
change_set.re... | import pytest
from mock import Mock
from formica import cli
from tests.unit.constants import STACK
def test_describes_change_set(boto_client, change_set):
cli.main(['describe', '--stack', STACK])
change_set.assert_called_with(stack=STACK)
change_set.return_value.describe.assert_called_once()
| <commit_before>import pytest
from mock import Mock
from formica import cli
from tests.unit.constants import STACK
def test_describes_change_set(boto_client, change_set):
cli.main(['describe', '--stack', STACK])
boto_client.assert_called_with('cloudformation')
change_set.assert_called_with(stack=STACK)
... | import pytest
from mock import Mock
from formica import cli
from tests.unit.constants import STACK
def test_describes_change_set(boto_client, change_set):
cli.main(['describe', '--stack', STACK])
change_set.assert_called_with(stack=STACK)
change_set.return_value.describe.assert_called_once()
| import pytest
from mock import Mock
from formica import cli
from tests.unit.constants import STACK
def test_describes_change_set(boto_client, change_set):
cli.main(['describe', '--stack', STACK])
boto_client.assert_called_with('cloudformation')
change_set.assert_called_with(stack=STACK)
change_set.re... | <commit_before>import pytest
from mock import Mock
from formica import cli
from tests.unit.constants import STACK
def test_describes_change_set(boto_client, change_set):
cli.main(['describe', '--stack', STACK])
boto_client.assert_called_with('cloudformation')
change_set.assert_called_with(stack=STACK)
... |
41b45872fae69e6c791aa79332981f12e33f7075 | numpy/distutils/fcompiler/nag.py | numpy/distutils/fcompiler/nag.py | import os
import sys
from numpy.distutils.cpuinfo import cpu
from numpy.distutils.fcompiler import FCompiler
class NAGFCompiler(FCompiler):
compiler_type = 'nag'
version_pattern = r'NAGWare Fortran 95 compiler Release (?P<version>[^\s]*)'
executables = {
'version_cmd' : ["f95", "-V"],
... | import os
import sys
from numpy.distutils.cpuinfo import cpu
from numpy.distutils.fcompiler import FCompiler
class NAGFCompiler(FCompiler):
compiler_type = 'nag'
version_pattern = r'NAGWare Fortran 95 compiler Release (?P<version>[^\s]*)'
executables = {
'version_cmd' : ["f95", "-V"],
... | Fix for using NAG Fortran 95, due to James Graham <[email protected]> | Fix for using NAG Fortran 95, due to James Graham <[email protected]>
git-svn-id: 77a43f9646713b91fea7788fad5dfbf67e151ece@2515 94b884b6-d6fd-0310-90d3-974f1d3f35e1
| Python | bsd-3-clause | jasonmccampbell/numpy-refactor-sprint,teoliphant/numpy-refactor,teoliphant/numpy-refactor,efiring/numpy-work,Ademan/NumPy-GSoC,illume/numpy3k,illume/numpy3k,chadnetzer/numpy-gaurdro,illume/numpy3k,chadnetzer/numpy-gaurdro,teoliphant/numpy-refactor,jasonmccampbell/numpy-refactor-sprint,efiring/numpy-work,chadnetzer/nump... | import os
import sys
from numpy.distutils.cpuinfo import cpu
from numpy.distutils.fcompiler import FCompiler
class NAGFCompiler(FCompiler):
compiler_type = 'nag'
version_pattern = r'NAGWare Fortran 95 compiler Release (?P<version>[^\s]*)'
executables = {
'version_cmd' : ["f95", "-V"],
... | import os
import sys
from numpy.distutils.cpuinfo import cpu
from numpy.distutils.fcompiler import FCompiler
class NAGFCompiler(FCompiler):
compiler_type = 'nag'
version_pattern = r'NAGWare Fortran 95 compiler Release (?P<version>[^\s]*)'
executables = {
'version_cmd' : ["f95", "-V"],
... | <commit_before>import os
import sys
from numpy.distutils.cpuinfo import cpu
from numpy.distutils.fcompiler import FCompiler
class NAGFCompiler(FCompiler):
compiler_type = 'nag'
version_pattern = r'NAGWare Fortran 95 compiler Release (?P<version>[^\s]*)'
executables = {
'version_cmd' : ["f95", ... | import os
import sys
from numpy.distutils.cpuinfo import cpu
from numpy.distutils.fcompiler import FCompiler
class NAGFCompiler(FCompiler):
compiler_type = 'nag'
version_pattern = r'NAGWare Fortran 95 compiler Release (?P<version>[^\s]*)'
executables = {
'version_cmd' : ["f95", "-V"],
... | import os
import sys
from numpy.distutils.cpuinfo import cpu
from numpy.distutils.fcompiler import FCompiler
class NAGFCompiler(FCompiler):
compiler_type = 'nag'
version_pattern = r'NAGWare Fortran 95 compiler Release (?P<version>[^\s]*)'
executables = {
'version_cmd' : ["f95", "-V"],
... | <commit_before>import os
import sys
from numpy.distutils.cpuinfo import cpu
from numpy.distutils.fcompiler import FCompiler
class NAGFCompiler(FCompiler):
compiler_type = 'nag'
version_pattern = r'NAGWare Fortran 95 compiler Release (?P<version>[^\s]*)'
executables = {
'version_cmd' : ["f95", ... |
d6b3f4e0798f430761f51529ea61c368e1ce610a | utest/contrib/testrunner/test_pybot_arguments_validation.py | utest/contrib/testrunner/test_pybot_arguments_validation.py | import unittest
import robot.errors
from robotide.contrib.testrunner.runprofiles import PybotProfile
class TestPybotArgumentsValidation(unittest.TestCase):
def setUp(self):
self._profile = PybotProfile(lambda:0)
@unittest.expectedFailure # No more DataError, better argument detection
def test_... | import unittest
import robotide.lib.robot.errors
from robotide.contrib.testrunner.runprofiles import PybotProfile
class TestPybotArgumentsValidation(unittest.TestCase):
def setUp(self):
self._profile = PybotProfile(lambda:0)
@unittest.expectedFailure # No more DataError, better argument detection
... | Fix unit test for when robotframework is not installed. | Fix unit test for when robotframework is not installed.
| Python | apache-2.0 | HelioGuilherme66/RIDE,robotframework/RIDE,robotframework/RIDE,HelioGuilherme66/RIDE,HelioGuilherme66/RIDE,robotframework/RIDE,HelioGuilherme66/RIDE,robotframework/RIDE | import unittest
import robot.errors
from robotide.contrib.testrunner.runprofiles import PybotProfile
class TestPybotArgumentsValidation(unittest.TestCase):
def setUp(self):
self._profile = PybotProfile(lambda:0)
@unittest.expectedFailure # No more DataError, better argument detection
def test_... | import unittest
import robotide.lib.robot.errors
from robotide.contrib.testrunner.runprofiles import PybotProfile
class TestPybotArgumentsValidation(unittest.TestCase):
def setUp(self):
self._profile = PybotProfile(lambda:0)
@unittest.expectedFailure # No more DataError, better argument detection
... | <commit_before>import unittest
import robot.errors
from robotide.contrib.testrunner.runprofiles import PybotProfile
class TestPybotArgumentsValidation(unittest.TestCase):
def setUp(self):
self._profile = PybotProfile(lambda:0)
@unittest.expectedFailure # No more DataError, better argument detectio... | import unittest
import robotide.lib.robot.errors
from robotide.contrib.testrunner.runprofiles import PybotProfile
class TestPybotArgumentsValidation(unittest.TestCase):
def setUp(self):
self._profile = PybotProfile(lambda:0)
@unittest.expectedFailure # No more DataError, better argument detection
... | import unittest
import robot.errors
from robotide.contrib.testrunner.runprofiles import PybotProfile
class TestPybotArgumentsValidation(unittest.TestCase):
def setUp(self):
self._profile = PybotProfile(lambda:0)
@unittest.expectedFailure # No more DataError, better argument detection
def test_... | <commit_before>import unittest
import robot.errors
from robotide.contrib.testrunner.runprofiles import PybotProfile
class TestPybotArgumentsValidation(unittest.TestCase):
def setUp(self):
self._profile = PybotProfile(lambda:0)
@unittest.expectedFailure # No more DataError, better argument detectio... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.