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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0ff0ca626c7f1e313fafdb034db77933424fe7ca | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
readme = open('README.rst').read()
history = open('HISTORY.rst').read().replace('.. :changelog:', '')
requirements = [
# TODO: put package requirements here
]
test_requi... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
readme = open('README.rst').read()
history = open('HISTORY.rst').read().replace('.. :changelog:', '')
requirements = [
# None
]
test_requirements = [
'tox',
]
setup... | Update description and add 'tox' as a testing dependency. | Update description and add 'tox' as a testing dependency.
| Python | bsd-3-clause | petrilli/generalwords | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
readme = open('README.rst').read()
history = open('HISTORY.rst').read().replace('.. :changelog:', '')
requirements = [
# TODO: put package requirements here
]
test_requi... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
readme = open('README.rst').read()
history = open('HISTORY.rst').read().replace('.. :changelog:', '')
requirements = [
# None
]
test_requirements = [
'tox',
]
setup... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
readme = open('README.rst').read()
history = open('HISTORY.rst').read().replace('.. :changelog:', '')
requirements = [
# TODO: put package requirements her... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
readme = open('README.rst').read()
history = open('HISTORY.rst').read().replace('.. :changelog:', '')
requirements = [
# None
]
test_requirements = [
'tox',
]
setup... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
readme = open('README.rst').read()
history = open('HISTORY.rst').read().replace('.. :changelog:', '')
requirements = [
# TODO: put package requirements here
]
test_requi... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
readme = open('README.rst').read()
history = open('HISTORY.rst').read().replace('.. :changelog:', '')
requirements = [
# TODO: put package requirements her... |
7aaaeef4cbcd1c3010bb633599770fab39031822 | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='zeit.content.infobox',
version='1.23.6dev',
author='gocept',
author_email='mail@gocept.com',
url='https://svn.gocept.com/repos/gocept-int/zeit.cms',
description="ZEIT infobox",
packages=find_packages('src'),
package_dir = {'': 'sr... | from setuptools import setup, find_packages
setup(
name='zeit.content.infobox',
version='1.23.6dev',
author='gocept',
author_email='mail@gocept.com',
url='https://svn.gocept.com/repos/gocept-int/zeit.cms',
description="ZEIT infobox",
packages=find_packages('src'),
package_dir = {'': 'sr... | Declare required version of zeit.cms | Declare required version of zeit.cms
| Python | bsd-3-clause | ZeitOnline/zeit.content.infobox | from setuptools import setup, find_packages
setup(
name='zeit.content.infobox',
version='1.23.6dev',
author='gocept',
author_email='mail@gocept.com',
url='https://svn.gocept.com/repos/gocept-int/zeit.cms',
description="ZEIT infobox",
packages=find_packages('src'),
package_dir = {'': 'sr... | from setuptools import setup, find_packages
setup(
name='zeit.content.infobox',
version='1.23.6dev',
author='gocept',
author_email='mail@gocept.com',
url='https://svn.gocept.com/repos/gocept-int/zeit.cms',
description="ZEIT infobox",
packages=find_packages('src'),
package_dir = {'': 'sr... | <commit_before>from setuptools import setup, find_packages
setup(
name='zeit.content.infobox',
version='1.23.6dev',
author='gocept',
author_email='mail@gocept.com',
url='https://svn.gocept.com/repos/gocept-int/zeit.cms',
description="ZEIT infobox",
packages=find_packages('src'),
package... | from setuptools import setup, find_packages
setup(
name='zeit.content.infobox',
version='1.23.6dev',
author='gocept',
author_email='mail@gocept.com',
url='https://svn.gocept.com/repos/gocept-int/zeit.cms',
description="ZEIT infobox",
packages=find_packages('src'),
package_dir = {'': 'sr... | from setuptools import setup, find_packages
setup(
name='zeit.content.infobox',
version='1.23.6dev',
author='gocept',
author_email='mail@gocept.com',
url='https://svn.gocept.com/repos/gocept-int/zeit.cms',
description="ZEIT infobox",
packages=find_packages('src'),
package_dir = {'': 'sr... | <commit_before>from setuptools import setup, find_packages
setup(
name='zeit.content.infobox',
version='1.23.6dev',
author='gocept',
author_email='mail@gocept.com',
url='https://svn.gocept.com/repos/gocept-int/zeit.cms',
description="ZEIT infobox",
packages=find_packages('src'),
package... |
f22cb6c576d167bd20658e35f6b28066871a80a2 | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
requirements = [
'pyj... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
requirements = [
'pyj... | Add contrib package to deployment | Add contrib package to deployment
| Python | isc | sharoonthomas/fulfil-python-api,fulfilio/fulfil-python-api | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
requirements = [
'pyj... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
requirements = [
'pyj... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
requiremen... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
requirements = [
'pyj... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
requirements = [
'pyj... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
requiremen... |
a10caabf5a8ece0ba05fac2d9166a6a85ac39b38 | setup.py | setup.py | #!/usr/bin/env python
"""Package setup script; requires setuptools (or Python >=3.4 which
bundles it)."""
from setuptools import setup
setup(name='Treepace',
version='0.2',
description='Tree Transformation Language',
author='Matúš Sulír',
url='https://github.com/sulir/treepace',
package... | #!/usr/bin/env python
"""Package setup script; requires setuptools (or Python >=3.4 which
bundles it)."""
from setuptools import setup
setup(name='Treepace',
version='0.3',
description='Tree Transformation Language',
author='Matúš Sulír',
url='https://github.com/sulir/treepace',
package... | Change version because of an important bugfix | Change version because of an important bugfix
| Python | mit | sulir/treepace | #!/usr/bin/env python
"""Package setup script; requires setuptools (or Python >=3.4 which
bundles it)."""
from setuptools import setup
setup(name='Treepace',
version='0.2',
description='Tree Transformation Language',
author='Matúš Sulír',
url='https://github.com/sulir/treepace',
package... | #!/usr/bin/env python
"""Package setup script; requires setuptools (or Python >=3.4 which
bundles it)."""
from setuptools import setup
setup(name='Treepace',
version='0.3',
description='Tree Transformation Language',
author='Matúš Sulír',
url='https://github.com/sulir/treepace',
package... | <commit_before>#!/usr/bin/env python
"""Package setup script; requires setuptools (or Python >=3.4 which
bundles it)."""
from setuptools import setup
setup(name='Treepace',
version='0.2',
description='Tree Transformation Language',
author='Matúš Sulír',
url='https://github.com/sulir/treepace'... | #!/usr/bin/env python
"""Package setup script; requires setuptools (or Python >=3.4 which
bundles it)."""
from setuptools import setup
setup(name='Treepace',
version='0.3',
description='Tree Transformation Language',
author='Matúš Sulír',
url='https://github.com/sulir/treepace',
package... | #!/usr/bin/env python
"""Package setup script; requires setuptools (or Python >=3.4 which
bundles it)."""
from setuptools import setup
setup(name='Treepace',
version='0.2',
description='Tree Transformation Language',
author='Matúš Sulír',
url='https://github.com/sulir/treepace',
package... | <commit_before>#!/usr/bin/env python
"""Package setup script; requires setuptools (or Python >=3.4 which
bundles it)."""
from setuptools import setup
setup(name='Treepace',
version='0.2',
description='Tree Transformation Language',
author='Matúš Sulír',
url='https://github.com/sulir/treepace'... |
aafd9f66610dc801a197e634cc98c7e855670d35 | setup.py | setup.py | #!/usr/bin/env python
import setuptools
import sys
if not ((sys.version_info.major >= 3 and sys.version_info.minor >= 5)
or sys.version_info.major > 3):
exit("Sorry, Python's version must be later than 3.5.")
import shakyo
setuptools.setup(
name=shakyo.__name__,
version=shakyo.__version__,
descri... | #!/usr/bin/env python
import setuptools
import sys
if not ((sys.version_info.major >= 3 and sys.version_info.minor >= 5)
or sys.version_info.major > 3):
exit("Sorry, Python's version must be later than 3.5.")
import shakyo
setuptools.setup(
name=shakyo.__name__,
version=shakyo.__version__,
descri... | Add another PyPI package classifier of Python 3.5 programming language | Add another PyPI package classifier of Python 3.5 programming language
| Python | unlicense | raviqqe/shakyo | #!/usr/bin/env python
import setuptools
import sys
if not ((sys.version_info.major >= 3 and sys.version_info.minor >= 5)
or sys.version_info.major > 3):
exit("Sorry, Python's version must be later than 3.5.")
import shakyo
setuptools.setup(
name=shakyo.__name__,
version=shakyo.__version__,
descri... | #!/usr/bin/env python
import setuptools
import sys
if not ((sys.version_info.major >= 3 and sys.version_info.minor >= 5)
or sys.version_info.major > 3):
exit("Sorry, Python's version must be later than 3.5.")
import shakyo
setuptools.setup(
name=shakyo.__name__,
version=shakyo.__version__,
descri... | <commit_before>#!/usr/bin/env python
import setuptools
import sys
if not ((sys.version_info.major >= 3 and sys.version_info.minor >= 5)
or sys.version_info.major > 3):
exit("Sorry, Python's version must be later than 3.5.")
import shakyo
setuptools.setup(
name=shakyo.__name__,
version=shakyo.__versio... | #!/usr/bin/env python
import setuptools
import sys
if not ((sys.version_info.major >= 3 and sys.version_info.minor >= 5)
or sys.version_info.major > 3):
exit("Sorry, Python's version must be later than 3.5.")
import shakyo
setuptools.setup(
name=shakyo.__name__,
version=shakyo.__version__,
descri... | #!/usr/bin/env python
import setuptools
import sys
if not ((sys.version_info.major >= 3 and sys.version_info.minor >= 5)
or sys.version_info.major > 3):
exit("Sorry, Python's version must be later than 3.5.")
import shakyo
setuptools.setup(
name=shakyo.__name__,
version=shakyo.__version__,
descri... | <commit_before>#!/usr/bin/env python
import setuptools
import sys
if not ((sys.version_info.major >= 3 and sys.version_info.minor >= 5)
or sys.version_info.major > 3):
exit("Sorry, Python's version must be later than 3.5.")
import shakyo
setuptools.setup(
name=shakyo.__name__,
version=shakyo.__versio... |
b91e458c0250b090de8a7327f5dee1cd4f105f56 | setup.py | setup.py | #!/usr/bin/env python3
"""Setup module."""
from setuptools import setup, find_packages
import os
def read(fname):
"""Read and return the contents of a file."""
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='macmond',
version='0.0.1',
description='MACMond - MAC ad... | #!/usr/bin/env python3
"""Setup module."""
from setuptools import setup, find_packages
import os
def read(fname):
"""Read and return the contents of a file."""
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='macmond',
version='0.0.1',
description='MACMond - MAC ad... | Fix a typo in the project URL | Fix a typo in the project URL
Signed-off-by: Kalman Olah <aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d@kalmanolah.net>
| Python | mit | kalmanolah/macmond | #!/usr/bin/env python3
"""Setup module."""
from setuptools import setup, find_packages
import os
def read(fname):
"""Read and return the contents of a file."""
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='macmond',
version='0.0.1',
description='MACMond - MAC ad... | #!/usr/bin/env python3
"""Setup module."""
from setuptools import setup, find_packages
import os
def read(fname):
"""Read and return the contents of a file."""
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='macmond',
version='0.0.1',
description='MACMond - MAC ad... | <commit_before>#!/usr/bin/env python3
"""Setup module."""
from setuptools import setup, find_packages
import os
def read(fname):
"""Read and return the contents of a file."""
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='macmond',
version='0.0.1',
description='M... | #!/usr/bin/env python3
"""Setup module."""
from setuptools import setup, find_packages
import os
def read(fname):
"""Read and return the contents of a file."""
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='macmond',
version='0.0.1',
description='MACMond - MAC ad... | #!/usr/bin/env python3
"""Setup module."""
from setuptools import setup, find_packages
import os
def read(fname):
"""Read and return the contents of a file."""
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='macmond',
version='0.0.1',
description='MACMond - MAC ad... | <commit_before>#!/usr/bin/env python3
"""Setup module."""
from setuptools import setup, find_packages
import os
def read(fname):
"""Read and return the contents of a file."""
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='macmond',
version='0.0.1',
description='M... |
40c4ffd480f291e35ffa69c3145d240146dbcd6c | setup.py | setup.py | # -*- coding: utf-8 -*-
from distribute_setup import use_setuptools
use_setuptools()
from setuptools import setup
setup(
name='cotede',
version='0.1.2',
author='Guilherme Castelão',
author_email='guilherme@castelao.net',
packages=['cotede'],
url='http://cotede.castelao.net',
license='See... | # -*- coding: utf-8 -*-
from distribute_setup import use_setuptools
use_setuptools()
from setuptools import setup
setup(
name='cotede',
version='0.2.0',
author='Guilherme Castelão',
author_email='guilherme@castelao.net',
packages=['cotede'],
url='http://cotede.castelao.net',
license='See... | Update to 0.2, pre-alpha. Fundamental tests are working. | Update to 0.2, pre-alpha. Fundamental tests are working.
| Python | bsd-3-clause | castelao/CoTeDe | # -*- coding: utf-8 -*-
from distribute_setup import use_setuptools
use_setuptools()
from setuptools import setup
setup(
name='cotede',
version='0.1.2',
author='Guilherme Castelão',
author_email='guilherme@castelao.net',
packages=['cotede'],
url='http://cotede.castelao.net',
license='See... | # -*- coding: utf-8 -*-
from distribute_setup import use_setuptools
use_setuptools()
from setuptools import setup
setup(
name='cotede',
version='0.2.0',
author='Guilherme Castelão',
author_email='guilherme@castelao.net',
packages=['cotede'],
url='http://cotede.castelao.net',
license='See... | <commit_before># -*- coding: utf-8 -*-
from distribute_setup import use_setuptools
use_setuptools()
from setuptools import setup
setup(
name='cotede',
version='0.1.2',
author='Guilherme Castelão',
author_email='guilherme@castelao.net',
packages=['cotede'],
url='http://cotede.castelao.net',
... | # -*- coding: utf-8 -*-
from distribute_setup import use_setuptools
use_setuptools()
from setuptools import setup
setup(
name='cotede',
version='0.2.0',
author='Guilherme Castelão',
author_email='guilherme@castelao.net',
packages=['cotede'],
url='http://cotede.castelao.net',
license='See... | # -*- coding: utf-8 -*-
from distribute_setup import use_setuptools
use_setuptools()
from setuptools import setup
setup(
name='cotede',
version='0.1.2',
author='Guilherme Castelão',
author_email='guilherme@castelao.net',
packages=['cotede'],
url='http://cotede.castelao.net',
license='See... | <commit_before># -*- coding: utf-8 -*-
from distribute_setup import use_setuptools
use_setuptools()
from setuptools import setup
setup(
name='cotede',
version='0.1.2',
author='Guilherme Castelão',
author_email='guilherme@castelao.net',
packages=['cotede'],
url='http://cotede.castelao.net',
... |
75c1e7ffbc938a4543094360df4ddc1e0262ce5f | setup.py | setup.py | version = '0.1.0'
with open('requirements.txt', 'r') as f:
install_requires = [x.strip() for x in f.readlines()]
from setuptools import setup, find_packages
setup(
name='bodylabs-rigger',
version=version,
author='Body Labs',
author_email='david.smith@bodylabs.com',
description="Utilities for ... | version = '0.1.0'
with open('requirements.txt', 'r') as f:
install_requires = [x.strip() for x in f.readlines()]
from setuptools import setup, find_packages
setup(
name='bodylabs-rigger',
version=version,
author='Body Labs',
author_email='david.smith@bodylabs.com',
description="Utilities for ... | Add rig_assets.json as package data. | Add rig_assets.json as package data.
| Python | bsd-2-clause | bodylabs/rigger,kaiserk/rigger | version = '0.1.0'
with open('requirements.txt', 'r') as f:
install_requires = [x.strip() for x in f.readlines()]
from setuptools import setup, find_packages
setup(
name='bodylabs-rigger',
version=version,
author='Body Labs',
author_email='david.smith@bodylabs.com',
description="Utilities for ... | version = '0.1.0'
with open('requirements.txt', 'r') as f:
install_requires = [x.strip() for x in f.readlines()]
from setuptools import setup, find_packages
setup(
name='bodylabs-rigger',
version=version,
author='Body Labs',
author_email='david.smith@bodylabs.com',
description="Utilities for ... | <commit_before>version = '0.1.0'
with open('requirements.txt', 'r') as f:
install_requires = [x.strip() for x in f.readlines()]
from setuptools import setup, find_packages
setup(
name='bodylabs-rigger',
version=version,
author='Body Labs',
author_email='david.smith@bodylabs.com',
description=... | version = '0.1.0'
with open('requirements.txt', 'r') as f:
install_requires = [x.strip() for x in f.readlines()]
from setuptools import setup, find_packages
setup(
name='bodylabs-rigger',
version=version,
author='Body Labs',
author_email='david.smith@bodylabs.com',
description="Utilities for ... | version = '0.1.0'
with open('requirements.txt', 'r') as f:
install_requires = [x.strip() for x in f.readlines()]
from setuptools import setup, find_packages
setup(
name='bodylabs-rigger',
version=version,
author='Body Labs',
author_email='david.smith@bodylabs.com',
description="Utilities for ... | <commit_before>version = '0.1.0'
with open('requirements.txt', 'r') as f:
install_requires = [x.strip() for x in f.readlines()]
from setuptools import setup, find_packages
setup(
name='bodylabs-rigger',
version=version,
author='Body Labs',
author_email='david.smith@bodylabs.com',
description=... |
4dc51fbc78800db0c3ba750ee92bac1ed49a944d | setup.py | setup.py | """
setup.py
"""
from setuptools import setup, find_packages
setup(
name='SATOSA',
version='3.4.8',
description='Protocol proxy (SAML/OIDC).',
author='DIRG',
author_email='satosa-dev@lists.sunet.se',
license='Apache 2.0',
url='https://github.com/SUNET/SATOSA',
packages=find_packages('s... | """
setup.py
"""
from setuptools import setup, find_packages
setup(
name='SATOSA',
version='3.4.8',
description='Protocol proxy (SAML/OIDC).',
author='DIRG',
author_email='satosa-dev@lists.sunet.se',
license='Apache 2.0',
url='https://github.com/SUNET/SATOSA',
packages=find_packages('s... | Support optional NameID element in SAML response | Support optional NameID element in SAML response
Prior to pysaml2 v4.6.1 an exception is thrown when parsing a SAML
response with no NameID element.
satosa.exception.SATOSAAuthenticationError: Failed to parse authn request
pysaml2 v4.6.1 onwards supports SAML responses with no NameID element.
Signed-off-by: Ivan ... | Python | apache-2.0 | SUNET/SATOSA,its-dirg/SATOSA,irtnog/SATOSA,SUNET/SATOSA,irtnog/SATOSA | """
setup.py
"""
from setuptools import setup, find_packages
setup(
name='SATOSA',
version='3.4.8',
description='Protocol proxy (SAML/OIDC).',
author='DIRG',
author_email='satosa-dev@lists.sunet.se',
license='Apache 2.0',
url='https://github.com/SUNET/SATOSA',
packages=find_packages('s... | """
setup.py
"""
from setuptools import setup, find_packages
setup(
name='SATOSA',
version='3.4.8',
description='Protocol proxy (SAML/OIDC).',
author='DIRG',
author_email='satosa-dev@lists.sunet.se',
license='Apache 2.0',
url='https://github.com/SUNET/SATOSA',
packages=find_packages('s... | <commit_before>"""
setup.py
"""
from setuptools import setup, find_packages
setup(
name='SATOSA',
version='3.4.8',
description='Protocol proxy (SAML/OIDC).',
author='DIRG',
author_email='satosa-dev@lists.sunet.se',
license='Apache 2.0',
url='https://github.com/SUNET/SATOSA',
packages=f... | """
setup.py
"""
from setuptools import setup, find_packages
setup(
name='SATOSA',
version='3.4.8',
description='Protocol proxy (SAML/OIDC).',
author='DIRG',
author_email='satosa-dev@lists.sunet.se',
license='Apache 2.0',
url='https://github.com/SUNET/SATOSA',
packages=find_packages('s... | """
setup.py
"""
from setuptools import setup, find_packages
setup(
name='SATOSA',
version='3.4.8',
description='Protocol proxy (SAML/OIDC).',
author='DIRG',
author_email='satosa-dev@lists.sunet.se',
license='Apache 2.0',
url='https://github.com/SUNET/SATOSA',
packages=find_packages('s... | <commit_before>"""
setup.py
"""
from setuptools import setup, find_packages
setup(
name='SATOSA',
version='3.4.8',
description='Protocol proxy (SAML/OIDC).',
author='DIRG',
author_email='satosa-dev@lists.sunet.se',
license='Apache 2.0',
url='https://github.com/SUNET/SATOSA',
packages=f... |
09f5d2997408ba338edf83101834fd15151e135e | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='weaveserver',
version='0.8',
author='Srivatsan Iyer',
author_email='supersaiyanmode.rox@gmail.com',
packages=find_packages(),
license='MIT',
description='Library to interact with Weave Server',
long_description=open('README.md').r... | from setuptools import setup, find_packages
setup(
name='weaveserver',
version='0.8',
author='Srivatsan Iyer',
author_email='supersaiyanmode.rox@gmail.com',
packages=find_packages(),
license='MIT',
description='Library to interact with Weave Server',
long_description=open('README.md').r... | Use bottle to serve HTTP. | Use bottle to serve HTTP.
| Python | mit | supersaiyanmode/HomePiServer,supersaiyanmode/HomePiServer,supersaiyanmode/HomePiServer | from setuptools import setup, find_packages
setup(
name='weaveserver',
version='0.8',
author='Srivatsan Iyer',
author_email='supersaiyanmode.rox@gmail.com',
packages=find_packages(),
license='MIT',
description='Library to interact with Weave Server',
long_description=open('README.md').r... | from setuptools import setup, find_packages
setup(
name='weaveserver',
version='0.8',
author='Srivatsan Iyer',
author_email='supersaiyanmode.rox@gmail.com',
packages=find_packages(),
license='MIT',
description='Library to interact with Weave Server',
long_description=open('README.md').r... | <commit_before>from setuptools import setup, find_packages
setup(
name='weaveserver',
version='0.8',
author='Srivatsan Iyer',
author_email='supersaiyanmode.rox@gmail.com',
packages=find_packages(),
license='MIT',
description='Library to interact with Weave Server',
long_description=open... | from setuptools import setup, find_packages
setup(
name='weaveserver',
version='0.8',
author='Srivatsan Iyer',
author_email='supersaiyanmode.rox@gmail.com',
packages=find_packages(),
license='MIT',
description='Library to interact with Weave Server',
long_description=open('README.md').r... | from setuptools import setup, find_packages
setup(
name='weaveserver',
version='0.8',
author='Srivatsan Iyer',
author_email='supersaiyanmode.rox@gmail.com',
packages=find_packages(),
license='MIT',
description='Library to interact with Weave Server',
long_description=open('README.md').r... | <commit_before>from setuptools import setup, find_packages
setup(
name='weaveserver',
version='0.8',
author='Srivatsan Iyer',
author_email='supersaiyanmode.rox@gmail.com',
packages=find_packages(),
license='MIT',
description='Library to interact with Weave Server',
long_description=open... |
0b8c12fba3f6819616edf9b02d5207c129635688 | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from os import path
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
readme_file = path.join(path.dirname(path.abspath(__file__)), 'README.rst')
with open(readme_file) as readme_file:
readme = readme_file.read()
setup(
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from os import path
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
readme_file = path.join(path.dirname(path.abspath(__file__)), 'README.rst')
with open(readme_file) as readme_file:
readme = readme_file.read()
setup(
... | Add python3 :: Only classifier | Add python3 :: Only classifier
| Python | mit | miyakogi/syncer | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from os import path
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
readme_file = path.join(path.dirname(path.abspath(__file__)), 'README.rst')
with open(readme_file) as readme_file:
readme = readme_file.read()
setup(
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from os import path
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
readme_file = path.join(path.dirname(path.abspath(__file__)), 'README.rst')
with open(readme_file) as readme_file:
readme = readme_file.read()
setup(
... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from os import path
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
readme_file = path.join(path.dirname(path.abspath(__file__)), 'README.rst')
with open(readme_file) as readme_file:
readme = readme_file.r... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from os import path
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
readme_file = path.join(path.dirname(path.abspath(__file__)), 'README.rst')
with open(readme_file) as readme_file:
readme = readme_file.read()
setup(
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from os import path
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
readme_file = path.join(path.dirname(path.abspath(__file__)), 'README.rst')
with open(readme_file) as readme_file:
readme = readme_file.read()
setup(
... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from os import path
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
readme_file = path.join(path.dirname(path.abspath(__file__)), 'README.rst')
with open(readme_file) as readme_file:
readme = readme_file.r... |
35870f0243e58c1b4c141499e39af54aea468d2c | setup.py | setup.py | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
config = {
'description': 'Collect xUnit xml files and upload them to bob-bench.org',
'author': 'Holger Hans Peter Freyther',
'url': 'http://www.bob-bench.org',
'download_url': 'http://www.bob-bench.org',
... | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
config = {
'description': 'Collect xUnit xml files and upload them to bob-bench.org',
'author': 'Holger Hans Peter Freyther',
'url': 'http://www.bob-bench.org',
'download_url': 'http://www.bob-bench.org',
... | Make a new release with circleci detection | Make a new release with circleci detection
| Python | agpl-3.0 | bob-bench/benchupload,bob-bench/benchupload | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
config = {
'description': 'Collect xUnit xml files and upload them to bob-bench.org',
'author': 'Holger Hans Peter Freyther',
'url': 'http://www.bob-bench.org',
'download_url': 'http://www.bob-bench.org',
... | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
config = {
'description': 'Collect xUnit xml files and upload them to bob-bench.org',
'author': 'Holger Hans Peter Freyther',
'url': 'http://www.bob-bench.org',
'download_url': 'http://www.bob-bench.org',
... | <commit_before>try:
from setuptools import setup
except ImportError:
from distutils.core import setup
config = {
'description': 'Collect xUnit xml files and upload them to bob-bench.org',
'author': 'Holger Hans Peter Freyther',
'url': 'http://www.bob-bench.org',
'download_url': 'http://www.bob-... | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
config = {
'description': 'Collect xUnit xml files and upload them to bob-bench.org',
'author': 'Holger Hans Peter Freyther',
'url': 'http://www.bob-bench.org',
'download_url': 'http://www.bob-bench.org',
... | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
config = {
'description': 'Collect xUnit xml files and upload them to bob-bench.org',
'author': 'Holger Hans Peter Freyther',
'url': 'http://www.bob-bench.org',
'download_url': 'http://www.bob-bench.org',
... | <commit_before>try:
from setuptools import setup
except ImportError:
from distutils.core import setup
config = {
'description': 'Collect xUnit xml files and upload them to bob-bench.org',
'author': 'Holger Hans Peter Freyther',
'url': 'http://www.bob-bench.org',
'download_url': 'http://www.bob-... |
3a4ff183940f3af7e3ec7cfe491f7d60409f5fea | setup.py | setup.py | from setuptools import setup, find_packages
import wsgiservice
setup(
name='WsgiService',
version=wsgiservice.__version__,
description="A lean WSGI framework for easy creation of REST services",
author=", ".join(wsgiservice.__author__),
url='http://github.com/pneff/wsgiservice/tree/master',
down... | from setuptools import setup, find_packages
import wsgiservice
setup(
name='WsgiService',
version=wsgiservice.__version__,
description="A lean WSGI framework for easy creation of REST services",
long_description=open('README').read(),
author=", ".join(wsgiservice.__author__),
url='http://github.... | Add the README as the long description to the package. | Add the README as the long description to the package.
| Python | bsd-2-clause | pneff/wsgiservice,beekpr/wsgiservice | from setuptools import setup, find_packages
import wsgiservice
setup(
name='WsgiService',
version=wsgiservice.__version__,
description="A lean WSGI framework for easy creation of REST services",
author=", ".join(wsgiservice.__author__),
url='http://github.com/pneff/wsgiservice/tree/master',
down... | from setuptools import setup, find_packages
import wsgiservice
setup(
name='WsgiService',
version=wsgiservice.__version__,
description="A lean WSGI framework for easy creation of REST services",
long_description=open('README').read(),
author=", ".join(wsgiservice.__author__),
url='http://github.... | <commit_before>from setuptools import setup, find_packages
import wsgiservice
setup(
name='WsgiService',
version=wsgiservice.__version__,
description="A lean WSGI framework for easy creation of REST services",
author=", ".join(wsgiservice.__author__),
url='http://github.com/pneff/wsgiservice/tree/ma... | from setuptools import setup, find_packages
import wsgiservice
setup(
name='WsgiService',
version=wsgiservice.__version__,
description="A lean WSGI framework for easy creation of REST services",
long_description=open('README').read(),
author=", ".join(wsgiservice.__author__),
url='http://github.... | from setuptools import setup, find_packages
import wsgiservice
setup(
name='WsgiService',
version=wsgiservice.__version__,
description="A lean WSGI framework for easy creation of REST services",
author=", ".join(wsgiservice.__author__),
url='http://github.com/pneff/wsgiservice/tree/master',
down... | <commit_before>from setuptools import setup, find_packages
import wsgiservice
setup(
name='WsgiService',
version=wsgiservice.__version__,
description="A lean WSGI framework for easy creation of REST services",
author=", ".join(wsgiservice.__author__),
url='http://github.com/pneff/wsgiservice/tree/ma... |
270d58388effc5777dea7a186d9578116bd0afb4 | setup.py | setup.py | from setuptools import setup
setup(
name = 'PyFVCOM',
packages = ['PyFVCOM'],
version = '1.3.4',
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 =... | from setuptools import setup
setup(
name = 'PyFVCOM',
packages = ['PyFVCOM'],
version = '1.3.4',
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 =... | Remove sqlite3 (part of the standard library) from the list of requirements. | Remove sqlite3 (part of the standard library) from the list of requirements.
| Python | mit | pwcazenave/PyFVCOM | from setuptools import setup
setup(
name = 'PyFVCOM',
packages = ['PyFVCOM'],
version = '1.3.4',
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 =... | from setuptools import setup
setup(
name = 'PyFVCOM',
packages = ['PyFVCOM'],
version = '1.3.4',
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 =... | <commit_before>from setuptools import setup
setup(
name = 'PyFVCOM',
packages = ['PyFVCOM'],
version = '1.3.4',
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 = '1.3.4',
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 =... | from setuptools import setup
setup(
name = 'PyFVCOM',
packages = ['PyFVCOM'],
version = '1.3.4',
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 =... | <commit_before>from setuptools import setup
setup(
name = 'PyFVCOM',
packages = ['PyFVCOM'],
version = '1.3.4',
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',
... |
d1537c9111a3834de07a330953ab0c1a31240ec4 | setup.py | setup.py | #! /usr/bin/env python3
from distutils.core import setup
setup(
description = 'File downloader for danbooru',
author = 'Todd Gaunt',
url = 'https://www.github.com/toddgaunt/danboorsync',
download_url = 'https://www.github.com/toddgaunt/danboorsync',
author_email = 'toddgaunt@protonmail.ch',
ver... | #! /usr/bin/env python3
from distutils.core import setup
setup(
description = 'File downloader for danbooru',
author = 'Todd Gaunt',
url = 'https://www.github.com/toddgaunt/danboorsync',
download_url = 'https://www.github.com/toddgaunt/danboorsync',
author_email = 'toddgaunt@protonmail.ch',
ver... | Remove / from script path to make it search bin rather than /bin | Remove / from script path to make it search bin rather than /bin
| Python | isc | toddgaunt/imgfetch | #! /usr/bin/env python3
from distutils.core import setup
setup(
description = 'File downloader for danbooru',
author = 'Todd Gaunt',
url = 'https://www.github.com/toddgaunt/danboorsync',
download_url = 'https://www.github.com/toddgaunt/danboorsync',
author_email = 'toddgaunt@protonmail.ch',
ver... | #! /usr/bin/env python3
from distutils.core import setup
setup(
description = 'File downloader for danbooru',
author = 'Todd Gaunt',
url = 'https://www.github.com/toddgaunt/danboorsync',
download_url = 'https://www.github.com/toddgaunt/danboorsync',
author_email = 'toddgaunt@protonmail.ch',
ver... | <commit_before>#! /usr/bin/env python3
from distutils.core import setup
setup(
description = 'File downloader for danbooru',
author = 'Todd Gaunt',
url = 'https://www.github.com/toddgaunt/danboorsync',
download_url = 'https://www.github.com/toddgaunt/danboorsync',
author_email = 'toddgaunt@protonma... | #! /usr/bin/env python3
from distutils.core import setup
setup(
description = 'File downloader for danbooru',
author = 'Todd Gaunt',
url = 'https://www.github.com/toddgaunt/danboorsync',
download_url = 'https://www.github.com/toddgaunt/danboorsync',
author_email = 'toddgaunt@protonmail.ch',
ver... | #! /usr/bin/env python3
from distutils.core import setup
setup(
description = 'File downloader for danbooru',
author = 'Todd Gaunt',
url = 'https://www.github.com/toddgaunt/danboorsync',
download_url = 'https://www.github.com/toddgaunt/danboorsync',
author_email = 'toddgaunt@protonmail.ch',
ver... | <commit_before>#! /usr/bin/env python3
from distutils.core import setup
setup(
description = 'File downloader for danbooru',
author = 'Todd Gaunt',
url = 'https://www.github.com/toddgaunt/danboorsync',
download_url = 'https://www.github.com/toddgaunt/danboorsync',
author_email = 'toddgaunt@protonma... |
aea05ee76193ac0abe2f6673910917bf13a3b339 | setup.py | setup.py | from distutils.core import setup
setup(
name='simplecrypto',
version=open('CHANGES.txt').read().split()[0],
author='Lucas Boppre Niehues',
author_email='lucasboppre@gmail.com',
packages=['simplecrypto'],
url='http://pypi.python.org/pypi/simplecrypto/',
license='LICENSE.txt',
description... | from distutils.core import setup
setup(
name='simplecrypto',
version=open('CHANGES.txt').read().split()[0],
author='Lucas Boppre Niehues',
author_email='lucasboppre@gmail.com',
packages=['simplecrypto'],
url='https://github.com/boppreh/simplecrypto',
license='LICENSE.txt',
description='... | Change homepage to github URL | Change homepage to github URL
| Python | mit | boppreh/simplecrypto | from distutils.core import setup
setup(
name='simplecrypto',
version=open('CHANGES.txt').read().split()[0],
author='Lucas Boppre Niehues',
author_email='lucasboppre@gmail.com',
packages=['simplecrypto'],
url='http://pypi.python.org/pypi/simplecrypto/',
license='LICENSE.txt',
description... | from distutils.core import setup
setup(
name='simplecrypto',
version=open('CHANGES.txt').read().split()[0],
author='Lucas Boppre Niehues',
author_email='lucasboppre@gmail.com',
packages=['simplecrypto'],
url='https://github.com/boppreh/simplecrypto',
license='LICENSE.txt',
description='... | <commit_before>from distutils.core import setup
setup(
name='simplecrypto',
version=open('CHANGES.txt').read().split()[0],
author='Lucas Boppre Niehues',
author_email='lucasboppre@gmail.com',
packages=['simplecrypto'],
url='http://pypi.python.org/pypi/simplecrypto/',
license='LICENSE.txt',
... | from distutils.core import setup
setup(
name='simplecrypto',
version=open('CHANGES.txt').read().split()[0],
author='Lucas Boppre Niehues',
author_email='lucasboppre@gmail.com',
packages=['simplecrypto'],
url='https://github.com/boppreh/simplecrypto',
license='LICENSE.txt',
description='... | from distutils.core import setup
setup(
name='simplecrypto',
version=open('CHANGES.txt').read().split()[0],
author='Lucas Boppre Niehues',
author_email='lucasboppre@gmail.com',
packages=['simplecrypto'],
url='http://pypi.python.org/pypi/simplecrypto/',
license='LICENSE.txt',
description... | <commit_before>from distutils.core import setup
setup(
name='simplecrypto',
version=open('CHANGES.txt').read().split()[0],
author='Lucas Boppre Niehues',
author_email='lucasboppre@gmail.com',
packages=['simplecrypto'],
url='http://pypi.python.org/pypi/simplecrypto/',
license='LICENSE.txt',
... |
ebe9d80277b2b03a50b0fe69836bf28a13edbbd9 | setup.py | setup.py | #!/usr/bin/env python
# coding=utf8
import os
import sys
from setuptools import setup
if sys.version_info < (2, 7):
tests_require = ['unittest2', 'mock']
test_suite = 'unittest2.collector'
else:
tests_require = ['mock']
test_suite = 'unittest.collector'
def read(fname):
return open(os.path.join... | #!/usr/bin/env python
# coding=utf8
import os
import sys
from setuptools import setup, find_packages
if sys.version_info < (2, 7):
tests_require = ['unittest2', 'mock']
test_suite = 'unittest2.collector'
else:
tests_require = ['mock']
test_suite = 'unittest.collector'
def read(fname):
return op... | Use find_packages to discover packages. | Use find_packages to discover packages.
| Python | mit | karteek/simplekv,fmarczin/simplekv,mbr/simplekv,karteek/simplekv,mbr/simplekv,fmarczin/simplekv | #!/usr/bin/env python
# coding=utf8
import os
import sys
from setuptools import setup
if sys.version_info < (2, 7):
tests_require = ['unittest2', 'mock']
test_suite = 'unittest2.collector'
else:
tests_require = ['mock']
test_suite = 'unittest.collector'
def read(fname):
return open(os.path.join... | #!/usr/bin/env python
# coding=utf8
import os
import sys
from setuptools import setup, find_packages
if sys.version_info < (2, 7):
tests_require = ['unittest2', 'mock']
test_suite = 'unittest2.collector'
else:
tests_require = ['mock']
test_suite = 'unittest.collector'
def read(fname):
return op... | <commit_before>#!/usr/bin/env python
# coding=utf8
import os
import sys
from setuptools import setup
if sys.version_info < (2, 7):
tests_require = ['unittest2', 'mock']
test_suite = 'unittest2.collector'
else:
tests_require = ['mock']
test_suite = 'unittest.collector'
def read(fname):
return op... | #!/usr/bin/env python
# coding=utf8
import os
import sys
from setuptools import setup, find_packages
if sys.version_info < (2, 7):
tests_require = ['unittest2', 'mock']
test_suite = 'unittest2.collector'
else:
tests_require = ['mock']
test_suite = 'unittest.collector'
def read(fname):
return op... | #!/usr/bin/env python
# coding=utf8
import os
import sys
from setuptools import setup
if sys.version_info < (2, 7):
tests_require = ['unittest2', 'mock']
test_suite = 'unittest2.collector'
else:
tests_require = ['mock']
test_suite = 'unittest.collector'
def read(fname):
return open(os.path.join... | <commit_before>#!/usr/bin/env python
# coding=utf8
import os
import sys
from setuptools import setup
if sys.version_info < (2, 7):
tests_require = ['unittest2', 'mock']
test_suite = 'unittest2.collector'
else:
tests_require = ['mock']
test_suite = 'unittest.collector'
def read(fname):
return op... |
69c14597c676236b64398dc3cbe83d42ec4e3a9b | setup.py | setup.py | import os
import sys
from setuptools import setup
INSTALL_REQUIRES = ['requests >=1.0.3', 'boto >=2.1.1', 'six >=1.2.0', 'urllib3 >= 1.0.2']
if sys.version_info < (2, 7, 0):
INSTALL_REQUIRES.append('argparse>=1.1')
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
... | import os
import sys
from setuptools import setup
INSTALL_REQUIRES = ['requests >=1.0.3', 'boto >=2.1.1', 'six >=1.2.0', 'urllib3 >= 1.0.2']
if sys.version_info < (2, 7, 0):
INSTALL_REQUIRES.append('argparse>=1.1')
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
... | Update trove classifiers with Apache License. | Update trove classifiers with Apache License.
| Python | apache-2.0 | tanishgupta1/qds-sdk-py-1,prakharjain09/qds-sdk-py,adeshr/qds-sdk-py,msumit/qds-sdk-py,rohitpruthi95/qds-sdk-py,vrajat/qds-sdk-py,qubole/qds-sdk-py,jainavi/qds-sdk-py,yogesh2021/qds-sdk-py | import os
import sys
from setuptools import setup
INSTALL_REQUIRES = ['requests >=1.0.3', 'boto >=2.1.1', 'six >=1.2.0', 'urllib3 >= 1.0.2']
if sys.version_info < (2, 7, 0):
INSTALL_REQUIRES.append('argparse>=1.1')
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
... | import os
import sys
from setuptools import setup
INSTALL_REQUIRES = ['requests >=1.0.3', 'boto >=2.1.1', 'six >=1.2.0', 'urllib3 >= 1.0.2']
if sys.version_info < (2, 7, 0):
INSTALL_REQUIRES.append('argparse>=1.1')
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
... | <commit_before>import os
import sys
from setuptools import setup
INSTALL_REQUIRES = ['requests >=1.0.3', 'boto >=2.1.1', 'six >=1.2.0', 'urllib3 >= 1.0.2']
if sys.version_info < (2, 7, 0):
INSTALL_REQUIRES.append('argparse>=1.1')
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).re... | import os
import sys
from setuptools import setup
INSTALL_REQUIRES = ['requests >=1.0.3', 'boto >=2.1.1', 'six >=1.2.0', 'urllib3 >= 1.0.2']
if sys.version_info < (2, 7, 0):
INSTALL_REQUIRES.append('argparse>=1.1')
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
... | import os
import sys
from setuptools import setup
INSTALL_REQUIRES = ['requests >=1.0.3', 'boto >=2.1.1', 'six >=1.2.0', 'urllib3 >= 1.0.2']
if sys.version_info < (2, 7, 0):
INSTALL_REQUIRES.append('argparse>=1.1')
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
... | <commit_before>import os
import sys
from setuptools import setup
INSTALL_REQUIRES = ['requests >=1.0.3', 'boto >=2.1.1', 'six >=1.2.0', 'urllib3 >= 1.0.2']
if sys.version_info < (2, 7, 0):
INSTALL_REQUIRES.append('argparse>=1.1')
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).re... |
612b9244560afd0d5eb4d7b1bf27464c4b2946d4 | setup.py | setup.py | from setuptools import setup, find_packages
from os.path import join, dirname
version = 0.1
short_description = "Git cherry pick tracking."
long_description = open(join(dirname(__file__), "README.txt"), "r").read()
setup(name = "git_origin",
version = version,
description = short_description,
long_d... | from setuptools import setup, find_packages
from os.path import join, dirname
version = 0.1
short_description = "Git cherry pick tracking."
long_description = open(join(dirname(__file__), "README.txt"), "r").read()
setup(name = "git_origin",
version = version,
description = short_description,
long_d... | Add missing console_scripts entry point. | Add missing console_scripts entry point.
Signed-off-by: Chris Larson <8cf06b7089d5169434d5def8b2d1c9c9c95f6e71@mvista.com>
| Python | mit | kergoth/git-origin | from setuptools import setup, find_packages
from os.path import join, dirname
version = 0.1
short_description = "Git cherry pick tracking."
long_description = open(join(dirname(__file__), "README.txt"), "r").read()
setup(name = "git_origin",
version = version,
description = short_description,
long_d... | from setuptools import setup, find_packages
from os.path import join, dirname
version = 0.1
short_description = "Git cherry pick tracking."
long_description = open(join(dirname(__file__), "README.txt"), "r").read()
setup(name = "git_origin",
version = version,
description = short_description,
long_d... | <commit_before>from setuptools import setup, find_packages
from os.path import join, dirname
version = 0.1
short_description = "Git cherry pick tracking."
long_description = open(join(dirname(__file__), "README.txt"), "r").read()
setup(name = "git_origin",
version = version,
description = short_descriptio... | from setuptools import setup, find_packages
from os.path import join, dirname
version = 0.1
short_description = "Git cherry pick tracking."
long_description = open(join(dirname(__file__), "README.txt"), "r").read()
setup(name = "git_origin",
version = version,
description = short_description,
long_d... | from setuptools import setup, find_packages
from os.path import join, dirname
version = 0.1
short_description = "Git cherry pick tracking."
long_description = open(join(dirname(__file__), "README.txt"), "r").read()
setup(name = "git_origin",
version = version,
description = short_description,
long_d... | <commit_before>from setuptools import setup, find_packages
from os.path import join, dirname
version = 0.1
short_description = "Git cherry pick tracking."
long_description = open(join(dirname(__file__), "README.txt"), "r").read()
setup(name = "git_origin",
version = version,
description = short_descriptio... |
888cdf6797690fe202b03ac0fc2ba46d5df3c6d5 | setup.py | setup.py | from setuptools import setup
setup(
name='property-caching',
version='1.0.1',
description='Property caching',
author='Yola',
author_email='engineers@yola.com',
license='MIT (Expat)',
url='https://github.com/yola/property-caching',
packages=['property_caching'],
test_suite='tests'
)
| from setuptools import setup
setup(
name='property-caching',
version='1.0.1',
description='Property caching',
author='Yola',
author_email='engineers@yola.com',
license='MIT (Expat)',
url='https://github.com/yola/property-caching',
packages=['property_caching'],
test_suite='tests',
... | Add classifiers for python 2 and 3 support | Add classifiers for python 2 and 3 support
| Python | mit | yola/property-caching | from setuptools import setup
setup(
name='property-caching',
version='1.0.1',
description='Property caching',
author='Yola',
author_email='engineers@yola.com',
license='MIT (Expat)',
url='https://github.com/yola/property-caching',
packages=['property_caching'],
test_suite='tests'
)
... | from setuptools import setup
setup(
name='property-caching',
version='1.0.1',
description='Property caching',
author='Yola',
author_email='engineers@yola.com',
license='MIT (Expat)',
url='https://github.com/yola/property-caching',
packages=['property_caching'],
test_suite='tests',
... | <commit_before>from setuptools import setup
setup(
name='property-caching',
version='1.0.1',
description='Property caching',
author='Yola',
author_email='engineers@yola.com',
license='MIT (Expat)',
url='https://github.com/yola/property-caching',
packages=['property_caching'],
test_s... | from setuptools import setup
setup(
name='property-caching',
version='1.0.1',
description='Property caching',
author='Yola',
author_email='engineers@yola.com',
license='MIT (Expat)',
url='https://github.com/yola/property-caching',
packages=['property_caching'],
test_suite='tests',
... | from setuptools import setup
setup(
name='property-caching',
version='1.0.1',
description='Property caching',
author='Yola',
author_email='engineers@yola.com',
license='MIT (Expat)',
url='https://github.com/yola/property-caching',
packages=['property_caching'],
test_suite='tests'
)
... | <commit_before>from setuptools import setup
setup(
name='property-caching',
version='1.0.1',
description='Property caching',
author='Yola',
author_email='engineers@yola.com',
license='MIT (Expat)',
url='https://github.com/yola/property-caching',
packages=['property_caching'],
test_s... |
5bb90727efb62525995caad3b52fd588d8b08298 | pregnancy/urls.py | pregnancy/urls.py | from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
import contractions.views
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'pregnancy.views.home', name='home'),
# url(r'^pregnancy/', include('... | from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
import contractions.views
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'pregnancy.views.home', name='home'),
# url(r'^pregnancy/', include('... | Update url to point / to the contractions app | Update url to point / to the contractions app
| Python | bsd-2-clause | dreinhold/pregnancy,dreinhold/pregnancy,dreinhold/pregnancy | from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
import contractions.views
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'pregnancy.views.home', name='home'),
# url(r'^pregnancy/', include('... | from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
import contractions.views
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'pregnancy.views.home', name='home'),
# url(r'^pregnancy/', include('... | <commit_before>from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
import contractions.views
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'pregnancy.views.home', name='home'),
# url(r'^pregnan... | from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
import contractions.views
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'pregnancy.views.home', name='home'),
# url(r'^pregnancy/', include('... | from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
import contractions.views
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'pregnancy.views.home', name='home'),
# url(r'^pregnancy/', include('... | <commit_before>from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
import contractions.views
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'pregnancy.views.home', name='home'),
# url(r'^pregnan... |
9fa76b8e9d7fb9309a49d46b9bbd43e9b65418ad | pytest_cookies.py | pytest_cookies.py | # -*- coding: utf-8 -*-
import pytest
def pytest_addoption(parser):
group = parser.getgroup('cookies')
group.addoption(
'--foo',
action='store',
dest='dest_foo',
default=2015,
help='Set the value for the fixture "bar".'
)
parser.addini('HELLO', 'Dummy pytest.i... | # -*- coding: utf-8 -*-
import pytest
from cookiecutter.main import cookiecutter
class Cookies(object):
"""Class to provide convenient access to the cookiecutter API."""
error = None
project = None
def __init__(self, template, output_dir):
self._template = template
self._output_dir ... | Implement cookies fixture along with Helper class | Implement cookies fixture along with Helper class
| Python | mit | hackebrot/pytest-cookies | # -*- coding: utf-8 -*-
import pytest
def pytest_addoption(parser):
group = parser.getgroup('cookies')
group.addoption(
'--foo',
action='store',
dest='dest_foo',
default=2015,
help='Set the value for the fixture "bar".'
)
parser.addini('HELLO', 'Dummy pytest.i... | # -*- coding: utf-8 -*-
import pytest
from cookiecutter.main import cookiecutter
class Cookies(object):
"""Class to provide convenient access to the cookiecutter API."""
error = None
project = None
def __init__(self, template, output_dir):
self._template = template
self._output_dir ... | <commit_before># -*- coding: utf-8 -*-
import pytest
def pytest_addoption(parser):
group = parser.getgroup('cookies')
group.addoption(
'--foo',
action='store',
dest='dest_foo',
default=2015,
help='Set the value for the fixture "bar".'
)
parser.addini('HELLO', ... | # -*- coding: utf-8 -*-
import pytest
from cookiecutter.main import cookiecutter
class Cookies(object):
"""Class to provide convenient access to the cookiecutter API."""
error = None
project = None
def __init__(self, template, output_dir):
self._template = template
self._output_dir ... | # -*- coding: utf-8 -*-
import pytest
def pytest_addoption(parser):
group = parser.getgroup('cookies')
group.addoption(
'--foo',
action='store',
dest='dest_foo',
default=2015,
help='Set the value for the fixture "bar".'
)
parser.addini('HELLO', 'Dummy pytest.i... | <commit_before># -*- coding: utf-8 -*-
import pytest
def pytest_addoption(parser):
group = parser.getgroup('cookies')
group.addoption(
'--foo',
action='store',
dest='dest_foo',
default=2015,
help='Set the value for the fixture "bar".'
)
parser.addini('HELLO', ... |
eec004dd34ffc977e29481c94345e20cae867238 | views.py | views.py | from django.conf import settings
from django.http import HttpResponse
from django.utils.importlib import import_module
def warmup(request):
"""
Provides default procedure for handling warmup requests on App Engine.
Just add this view to your main urls.py.
"""
for app in settings.INSTALLED_APPS:
... | from django.conf import settings
from django.http import HttpResponse
from django.utils.importlib import import_module
def warmup(request):
"""
Provides default procedure for handling warmup requests on App Engine.
Just add this view to your main urls.py.
"""
for app in settings.INSTALLED_APPS:
... | Expand pre loading on warmup | Expand pre loading on warmup
| Python | bsd-3-clause | adieu/djangoappengine | from django.conf import settings
from django.http import HttpResponse
from django.utils.importlib import import_module
def warmup(request):
"""
Provides default procedure for handling warmup requests on App Engine.
Just add this view to your main urls.py.
"""
for app in settings.INSTALLED_APPS:
... | from django.conf import settings
from django.http import HttpResponse
from django.utils.importlib import import_module
def warmup(request):
"""
Provides default procedure for handling warmup requests on App Engine.
Just add this view to your main urls.py.
"""
for app in settings.INSTALLED_APPS:
... | <commit_before>from django.conf import settings
from django.http import HttpResponse
from django.utils.importlib import import_module
def warmup(request):
"""
Provides default procedure for handling warmup requests on App Engine.
Just add this view to your main urls.py.
"""
for app in settings.INST... | from django.conf import settings
from django.http import HttpResponse
from django.utils.importlib import import_module
def warmup(request):
"""
Provides default procedure for handling warmup requests on App Engine.
Just add this view to your main urls.py.
"""
for app in settings.INSTALLED_APPS:
... | from django.conf import settings
from django.http import HttpResponse
from django.utils.importlib import import_module
def warmup(request):
"""
Provides default procedure for handling warmup requests on App Engine.
Just add this view to your main urls.py.
"""
for app in settings.INSTALLED_APPS:
... | <commit_before>from django.conf import settings
from django.http import HttpResponse
from django.utils.importlib import import_module
def warmup(request):
"""
Provides default procedure for handling warmup requests on App Engine.
Just add this view to your main urls.py.
"""
for app in settings.INST... |
ba1bfc262e023a01d6e201d48d234640a443ed96 | raven/__init__.py | raven/__init__.py | """
raven
~~~~~
:copyright: (c) 2010 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
__all__ = ('VERSION', 'Client', 'load')
try:
VERSION = __import__('pkg_resources') \
.get_distribution('raven').version
except Exception, e:
VERSION = 'unknown'
fro... | """
raven
~~~~~
:copyright: (c) 2010 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
__all__ = ('VERSION', 'Client', 'load')
try:
VERSION = __import__('pkg_resources') \
.get_distribution('raven').version
except Exception, e:
VERSION = 'unknown'
fro... | Use absolute imports, not relative ones. | Use absolute imports, not relative ones. | Python | bsd-3-clause | hzy/raven-python,akheron/raven-python,akalipetis/raven-python,nikolas/raven-python,arthurlogilab/raven-python,inspirehep/raven-python,recht/raven-python,akheron/raven-python,arthurlogilab/raven-python,arthurlogilab/raven-python,lepture/raven-python,percipient/raven-python,collective/mr.poe,Goldmund-Wyldebeast-Wunderlie... | """
raven
~~~~~
:copyright: (c) 2010 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
__all__ = ('VERSION', 'Client', 'load')
try:
VERSION = __import__('pkg_resources') \
.get_distribution('raven').version
except Exception, e:
VERSION = 'unknown'
fro... | """
raven
~~~~~
:copyright: (c) 2010 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
__all__ = ('VERSION', 'Client', 'load')
try:
VERSION = __import__('pkg_resources') \
.get_distribution('raven').version
except Exception, e:
VERSION = 'unknown'
fro... | <commit_before>"""
raven
~~~~~
:copyright: (c) 2010 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
__all__ = ('VERSION', 'Client', 'load')
try:
VERSION = __import__('pkg_resources') \
.get_distribution('raven').version
except Exception, e:
VERSION =... | """
raven
~~~~~
:copyright: (c) 2010 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
__all__ = ('VERSION', 'Client', 'load')
try:
VERSION = __import__('pkg_resources') \
.get_distribution('raven').version
except Exception, e:
VERSION = 'unknown'
fro... | """
raven
~~~~~
:copyright: (c) 2010 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
__all__ = ('VERSION', 'Client', 'load')
try:
VERSION = __import__('pkg_resources') \
.get_distribution('raven').version
except Exception, e:
VERSION = 'unknown'
fro... | <commit_before>"""
raven
~~~~~
:copyright: (c) 2010 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
__all__ = ('VERSION', 'Client', 'load')
try:
VERSION = __import__('pkg_resources') \
.get_distribution('raven').version
except Exception, e:
VERSION =... |
a3b22d074ace7d44ee9c863c56f0c24354bc6a99 | snake/launcher.py | snake/launcher.py |
from .game_manager import GameManager
from .robot_controller import RobotController
from .snake_board import SnakeBoard
from .snake_robot import SnakeRobot
from .snake_beacon import SnakeBeacon
def launch_robot(robot_module, myrobot, board_size=(8,16)):
'''
Creates a robot controller, a board, and sets th... |
from .game_manager import GameManager
from .robot_controller import RobotController
from .snake_board import SnakeBoard
from .snake_robot import SnakeRobot
from .snake_beacon import SnakeBeacon
def launch_robot(robot_module, myrobot, board_size=(8,16)):
'''
Creates a robot controller, a board, and sets th... | Remove the beacon for now | Remove the beacon for now
| Python | mit | virtuald/RobotSnake,virtuald/RobotSnake |
from .game_manager import GameManager
from .robot_controller import RobotController
from .snake_board import SnakeBoard
from .snake_robot import SnakeRobot
from .snake_beacon import SnakeBeacon
def launch_robot(robot_module, myrobot, board_size=(8,16)):
'''
Creates a robot controller, a board, and sets th... |
from .game_manager import GameManager
from .robot_controller import RobotController
from .snake_board import SnakeBoard
from .snake_robot import SnakeRobot
from .snake_beacon import SnakeBeacon
def launch_robot(robot_module, myrobot, board_size=(8,16)):
'''
Creates a robot controller, a board, and sets th... | <commit_before>
from .game_manager import GameManager
from .robot_controller import RobotController
from .snake_board import SnakeBoard
from .snake_robot import SnakeRobot
from .snake_beacon import SnakeBeacon
def launch_robot(robot_module, myrobot, board_size=(8,16)):
'''
Creates a robot controller, a boa... |
from .game_manager import GameManager
from .robot_controller import RobotController
from .snake_board import SnakeBoard
from .snake_robot import SnakeRobot
from .snake_beacon import SnakeBeacon
def launch_robot(robot_module, myrobot, board_size=(8,16)):
'''
Creates a robot controller, a board, and sets th... |
from .game_manager import GameManager
from .robot_controller import RobotController
from .snake_board import SnakeBoard
from .snake_robot import SnakeRobot
from .snake_beacon import SnakeBeacon
def launch_robot(robot_module, myrobot, board_size=(8,16)):
'''
Creates a robot controller, a board, and sets th... | <commit_before>
from .game_manager import GameManager
from .robot_controller import RobotController
from .snake_board import SnakeBoard
from .snake_robot import SnakeRobot
from .snake_beacon import SnakeBeacon
def launch_robot(robot_module, myrobot, board_size=(8,16)):
'''
Creates a robot controller, a boa... |
ee0c852d494a0952d51b7f5ddde77ec2b46deca3 | lambdas/update_ecs_service_size.py | lambdas/update_ecs_service_size.py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
Change the size of an ECS service.
This is used to schedule our service applications: by setting the desired
size to 0/greater-than-0, Amazon will do the work of spinning up or scaling
down the tasks.
The script is triggered by notifications to an SNS topic, in whic... | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
Change the size of an ECS service.
This is used to schedule our service applications: by setting the desired
size to 0/greater-than-0, Amazon will do the work of spinning up or scaling
down the tasks.
The script is triggered by notifications to an SNS topic, in whic... | Fix the Update ECS Service size Lambda | Fix the Update ECS Service size Lambda
| Python | mit | wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
Change the size of an ECS service.
This is used to schedule our service applications: by setting the desired
size to 0/greater-than-0, Amazon will do the work of spinning up or scaling
down the tasks.
The script is triggered by notifications to an SNS topic, in whic... | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
Change the size of an ECS service.
This is used to schedule our service applications: by setting the desired
size to 0/greater-than-0, Amazon will do the work of spinning up or scaling
down the tasks.
The script is triggered by notifications to an SNS topic, in whic... | <commit_before>#!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
Change the size of an ECS service.
This is used to schedule our service applications: by setting the desired
size to 0/greater-than-0, Amazon will do the work of spinning up or scaling
down the tasks.
The script is triggered by notifications to an SNS... | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
Change the size of an ECS service.
This is used to schedule our service applications: by setting the desired
size to 0/greater-than-0, Amazon will do the work of spinning up or scaling
down the tasks.
The script is triggered by notifications to an SNS topic, in whic... | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
Change the size of an ECS service.
This is used to schedule our service applications: by setting the desired
size to 0/greater-than-0, Amazon will do the work of spinning up or scaling
down the tasks.
The script is triggered by notifications to an SNS topic, in whic... | <commit_before>#!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
Change the size of an ECS service.
This is used to schedule our service applications: by setting the desired
size to 0/greater-than-0, Amazon will do the work of spinning up or scaling
down the tasks.
The script is triggered by notifications to an SNS... |
dfe84075109620481cac493c1d0dba69d9ca19df | vesper/tests/test_case_mixin.py | vesper/tests/test_case_mixin.py | """
Unit test test case mixin class.
This mixin class is intended for use with a subclass of either
`unittest.TestCase` or `django.test.TestCase`. It includes several
convenience `_assert...` methods.
"""
import vesper.util.numpy_utils as numpy_utils
class TestCaseMixin:
def assert_raises(self, excep... | """
Unit test test case mixin class.
This mixin class is intended for use with a subclass of either
`unittest.TestCase` or `django.test.TestCase`. It includes several
convenience `_assert...` methods.
"""
import vesper.util.numpy_utils as numpy_utils
SHOW_EXCEPTION_MESSAGES = False
class TestCaseMixin:
... | Add method for testing async function errors. | Add method for testing async function errors.
| Python | mit | HaroldMills/Vesper,HaroldMills/Vesper,HaroldMills/Vesper,HaroldMills/Vesper,HaroldMills/Vesper | """
Unit test test case mixin class.
This mixin class is intended for use with a subclass of either
`unittest.TestCase` or `django.test.TestCase`. It includes several
convenience `_assert...` methods.
"""
import vesper.util.numpy_utils as numpy_utils
class TestCaseMixin:
def assert_raises(self, excep... | """
Unit test test case mixin class.
This mixin class is intended for use with a subclass of either
`unittest.TestCase` or `django.test.TestCase`. It includes several
convenience `_assert...` methods.
"""
import vesper.util.numpy_utils as numpy_utils
SHOW_EXCEPTION_MESSAGES = False
class TestCaseMixin:
... | <commit_before>"""
Unit test test case mixin class.
This mixin class is intended for use with a subclass of either
`unittest.TestCase` or `django.test.TestCase`. It includes several
convenience `_assert...` methods.
"""
import vesper.util.numpy_utils as numpy_utils
class TestCaseMixin:
def assert_rai... | """
Unit test test case mixin class.
This mixin class is intended for use with a subclass of either
`unittest.TestCase` or `django.test.TestCase`. It includes several
convenience `_assert...` methods.
"""
import vesper.util.numpy_utils as numpy_utils
SHOW_EXCEPTION_MESSAGES = False
class TestCaseMixin:
... | """
Unit test test case mixin class.
This mixin class is intended for use with a subclass of either
`unittest.TestCase` or `django.test.TestCase`. It includes several
convenience `_assert...` methods.
"""
import vesper.util.numpy_utils as numpy_utils
class TestCaseMixin:
def assert_raises(self, excep... | <commit_before>"""
Unit test test case mixin class.
This mixin class is intended for use with a subclass of either
`unittest.TestCase` or `django.test.TestCase`. It includes several
convenience `_assert...` methods.
"""
import vesper.util.numpy_utils as numpy_utils
class TestCaseMixin:
def assert_rai... |
2082a4ba334a14bf95e9ad9deecc2c703e0f1aa5 | rotostitch/__init__.py | rotostitch/__init__.py | import os
import sys
__version__ = "1.0.0"
packageDir = os.path.dirname(__file__)
RESOURCE_DIR = os.path.join(os.path.abspath(packageDir), "resources")
if not os.path.isdir(RESOURCE_DIR):
RESOURCE_DIR = os.path.join(os.path.dirname(sys.argv[0]), "resources")
| import os
import sys
__version__ = "1.1.0"
packageDir = os.path.dirname(__file__)
RESOURCE_DIR = os.path.join(os.path.abspath(packageDir), "resources")
if not os.path.isdir(RESOURCE_DIR):
RESOURCE_DIR = os.path.join(os.path.dirname(sys.argv[0]), "resources")
| Increment version number to 1.1.0 | Increment version number to 1.1.0
| Python | mit | AWFeldick/Rotostitch | import os
import sys
__version__ = "1.0.0"
packageDir = os.path.dirname(__file__)
RESOURCE_DIR = os.path.join(os.path.abspath(packageDir), "resources")
if not os.path.isdir(RESOURCE_DIR):
RESOURCE_DIR = os.path.join(os.path.dirname(sys.argv[0]), "resources")
Increment version number to 1.1.0 | import os
import sys
__version__ = "1.1.0"
packageDir = os.path.dirname(__file__)
RESOURCE_DIR = os.path.join(os.path.abspath(packageDir), "resources")
if not os.path.isdir(RESOURCE_DIR):
RESOURCE_DIR = os.path.join(os.path.dirname(sys.argv[0]), "resources")
| <commit_before>import os
import sys
__version__ = "1.0.0"
packageDir = os.path.dirname(__file__)
RESOURCE_DIR = os.path.join(os.path.abspath(packageDir), "resources")
if not os.path.isdir(RESOURCE_DIR):
RESOURCE_DIR = os.path.join(os.path.dirname(sys.argv[0]), "resources")
<commit_msg>Increment version number to ... | import os
import sys
__version__ = "1.1.0"
packageDir = os.path.dirname(__file__)
RESOURCE_DIR = os.path.join(os.path.abspath(packageDir), "resources")
if not os.path.isdir(RESOURCE_DIR):
RESOURCE_DIR = os.path.join(os.path.dirname(sys.argv[0]), "resources")
| import os
import sys
__version__ = "1.0.0"
packageDir = os.path.dirname(__file__)
RESOURCE_DIR = os.path.join(os.path.abspath(packageDir), "resources")
if not os.path.isdir(RESOURCE_DIR):
RESOURCE_DIR = os.path.join(os.path.dirname(sys.argv[0]), "resources")
Increment version number to 1.1.0import os
import sys
... | <commit_before>import os
import sys
__version__ = "1.0.0"
packageDir = os.path.dirname(__file__)
RESOURCE_DIR = os.path.join(os.path.abspath(packageDir), "resources")
if not os.path.isdir(RESOURCE_DIR):
RESOURCE_DIR = os.path.join(os.path.dirname(sys.argv[0]), "resources")
<commit_msg>Increment version number to ... |
33ba6400768b759180d7602c14e6f947d1c8e771 | djangosaml2/templatetags/idplist.py | djangosaml2/templatetags/idplist.py | # Copyright (C) 2011 Yaco Sistemas (http://www.yaco.es)
#
# 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 applic... | # Copyright (C) 2011 Yaco Sistemas (http://www.yaco.es)
#
# 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 applic... | Load the config as late as possible to avoid crashing when the configuration is not ready yet. Also this code is more reentrant | Load the config as late as possible to avoid crashing when the configuration is not ready yet. Also this code is more reentrant
| Python | apache-2.0 | WiserTogether/djangosaml2,sdelements/djangosaml2,kradalby/djangosaml2,kradalby/djangosaml2,WiserTogether/djangosaml2 | # Copyright (C) 2011 Yaco Sistemas (http://www.yaco.es)
#
# 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 applic... | # Copyright (C) 2011 Yaco Sistemas (http://www.yaco.es)
#
# 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 applic... | <commit_before># Copyright (C) 2011 Yaco Sistemas (http://www.yaco.es)
#
# 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 req... | # Copyright (C) 2011 Yaco Sistemas (http://www.yaco.es)
#
# 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 applic... | # Copyright (C) 2011 Yaco Sistemas (http://www.yaco.es)
#
# 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 applic... | <commit_before># Copyright (C) 2011 Yaco Sistemas (http://www.yaco.es)
#
# 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 req... |
d83ed858dab0991e4829a7f249260ae1f1140b41 | rave/main.py | rave/main.py | import rave.events
import rave.modularity
import rave.backends
import rave.resources
import rave.rendering
def init_game(game):
rave.events.emit('game.init', game)
with game.env:
rave.modularity.load_all()
rave.backends.select_all()
def run_game(game):
running = True
# Stop the eve... | import rave.events
import rave.modularity
import rave.backends
import rave.resources
import rave.rendering
def init_game(game):
rave.modularity.load_all()
rave.events.emit('game.init', game)
with game.env:
rave.backends.select_all()
def run_game(game):
running = True
# Stop the event l... | Load modules in engine context. | core: Load modules in engine context.
| Python | bsd-2-clause | rave-engine/rave | import rave.events
import rave.modularity
import rave.backends
import rave.resources
import rave.rendering
def init_game(game):
rave.events.emit('game.init', game)
with game.env:
rave.modularity.load_all()
rave.backends.select_all()
def run_game(game):
running = True
# Stop the eve... | import rave.events
import rave.modularity
import rave.backends
import rave.resources
import rave.rendering
def init_game(game):
rave.modularity.load_all()
rave.events.emit('game.init', game)
with game.env:
rave.backends.select_all()
def run_game(game):
running = True
# Stop the event l... | <commit_before>import rave.events
import rave.modularity
import rave.backends
import rave.resources
import rave.rendering
def init_game(game):
rave.events.emit('game.init', game)
with game.env:
rave.modularity.load_all()
rave.backends.select_all()
def run_game(game):
running = True
... | import rave.events
import rave.modularity
import rave.backends
import rave.resources
import rave.rendering
def init_game(game):
rave.modularity.load_all()
rave.events.emit('game.init', game)
with game.env:
rave.backends.select_all()
def run_game(game):
running = True
# Stop the event l... | import rave.events
import rave.modularity
import rave.backends
import rave.resources
import rave.rendering
def init_game(game):
rave.events.emit('game.init', game)
with game.env:
rave.modularity.load_all()
rave.backends.select_all()
def run_game(game):
running = True
# Stop the eve... | <commit_before>import rave.events
import rave.modularity
import rave.backends
import rave.resources
import rave.rendering
def init_game(game):
rave.events.emit('game.init', game)
with game.env:
rave.modularity.load_all()
rave.backends.select_all()
def run_game(game):
running = True
... |
a37ef5af5a28207d21b11f08990e233a34afa768 | acme/utils/loggers/__init__.py | acme/utils/loggers/__init__.py | # python3
# Copyright 2018 DeepMind Technologies Limited. 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... | # python3
# Copyright 2018 DeepMind Technologies Limited. 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... | Add LoggingData annotation to Logger base import so users can type-annotate Logger subclasses properly. | Add LoggingData annotation to Logger base import so users can type-annotate Logger subclasses properly.
PiperOrigin-RevId: 315308368
Change-Id: I608c9f6f5f4b9edbbf504ec321fc4c8e90ed8193
| Python | apache-2.0 | deepmind/acme,deepmind/acme | # python3
# Copyright 2018 DeepMind Technologies Limited. 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... | # python3
# Copyright 2018 DeepMind Technologies Limited. 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... | <commit_before># python3
# Copyright 2018 DeepMind Technologies Limited. 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.... | # python3
# Copyright 2018 DeepMind Technologies Limited. 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... | # python3
# Copyright 2018 DeepMind Technologies Limited. 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... | <commit_before># python3
# Copyright 2018 DeepMind Technologies Limited. 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.... |
7014bfb976524e95b6e13eb44cf62401568bff1a | examples/web_demo/exifutil.py | examples/web_demo/exifutil.py | """
This script handles the skimage exif problem.
"""
from PIL import Image
import numpy as np
ORIENTATIONS = { # used in apply_orientation
2: (Image.FLIP_LEFT_RIGHT,),
3: (Image.ROTATE_180,),
4: (Image.FLIP_TOP_BOTTOM,),
5: (Image.FLIP_LEFT_RIGHT, Image.ROTATE_90),
6: (Image.ROTATE_270,),
7... | """
This script handles the skimage exif problem.
"""
from PIL import Image
import numpy as np
ORIENTATIONS = { # used in apply_orientation
2: (Image.FLIP_LEFT_RIGHT,),
3: (Image.ROTATE_180,),
4: (Image.FLIP_TOP_BOTTOM,),
5: (Image.FLIP_LEFT_RIGHT, Image.ROTATE_90),
6: (Image.ROTATE_270,),
7... | FIX web_demo upload was not processing grayscale correctly | FIX web_demo upload was not processing grayscale correctly
| Python | agpl-3.0 | tackgeun/caffe,CZCV/s-dilation-caffe,longjon/caffe,gnina/gnina,CZCV/s-dilation-caffe,tackgeun/caffe,gnina/gnina,gnina/gnina,gogartom/caffe-textmaps,CZCV/s-dilation-caffe,gogartom/caffe-textmaps,wangg12/caffe,tackgeun/caffe,wangg12/caffe,gnina/gnina,gnina/gnina,gogartom/caffe-textmaps,CZCV/s-dilation-caffe,longjon/caffe... | """
This script handles the skimage exif problem.
"""
from PIL import Image
import numpy as np
ORIENTATIONS = { # used in apply_orientation
2: (Image.FLIP_LEFT_RIGHT,),
3: (Image.ROTATE_180,),
4: (Image.FLIP_TOP_BOTTOM,),
5: (Image.FLIP_LEFT_RIGHT, Image.ROTATE_90),
6: (Image.ROTATE_270,),
7... | """
This script handles the skimage exif problem.
"""
from PIL import Image
import numpy as np
ORIENTATIONS = { # used in apply_orientation
2: (Image.FLIP_LEFT_RIGHT,),
3: (Image.ROTATE_180,),
4: (Image.FLIP_TOP_BOTTOM,),
5: (Image.FLIP_LEFT_RIGHT, Image.ROTATE_90),
6: (Image.ROTATE_270,),
7... | <commit_before>"""
This script handles the skimage exif problem.
"""
from PIL import Image
import numpy as np
ORIENTATIONS = { # used in apply_orientation
2: (Image.FLIP_LEFT_RIGHT,),
3: (Image.ROTATE_180,),
4: (Image.FLIP_TOP_BOTTOM,),
5: (Image.FLIP_LEFT_RIGHT, Image.ROTATE_90),
6: (Image.ROTA... | """
This script handles the skimage exif problem.
"""
from PIL import Image
import numpy as np
ORIENTATIONS = { # used in apply_orientation
2: (Image.FLIP_LEFT_RIGHT,),
3: (Image.ROTATE_180,),
4: (Image.FLIP_TOP_BOTTOM,),
5: (Image.FLIP_LEFT_RIGHT, Image.ROTATE_90),
6: (Image.ROTATE_270,),
7... | """
This script handles the skimage exif problem.
"""
from PIL import Image
import numpy as np
ORIENTATIONS = { # used in apply_orientation
2: (Image.FLIP_LEFT_RIGHT,),
3: (Image.ROTATE_180,),
4: (Image.FLIP_TOP_BOTTOM,),
5: (Image.FLIP_LEFT_RIGHT, Image.ROTATE_90),
6: (Image.ROTATE_270,),
7... | <commit_before>"""
This script handles the skimage exif problem.
"""
from PIL import Image
import numpy as np
ORIENTATIONS = { # used in apply_orientation
2: (Image.FLIP_LEFT_RIGHT,),
3: (Image.ROTATE_180,),
4: (Image.FLIP_TOP_BOTTOM,),
5: (Image.FLIP_LEFT_RIGHT, Image.ROTATE_90),
6: (Image.ROTA... |
527c414da01dd40425086253dec2007c54e30675 | send_reminders.py | send_reminders.py | from twilio.rest import TwilioRestClient
import project.utils.reminders
ACCOUNT_SID = "AC6a9746370384b26236aae71013aa35b2"
AUTH_TOKEN = "38b0bcc37788e553978c840929d54aa2"
def send_reminder(text, phone):
client = TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN)
client.messages.create(to=phone, from_="+15713646776", b... | from twilio.rest import TwilioRestClient
import project.utils.reminders
ACCOUNT_SID = "ayylmao"
AUTH_TOKEN = "ayylmao"
def send_reminder(text, phone):
client = TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN)
client.messages.create(to=phone, from_="+15172194225", body=text)
def send_all_reminders():
x = project... | Update API keys and phone number | Update API keys and phone number
| Python | apache-2.0 | tjcsl/mhacksiv | from twilio.rest import TwilioRestClient
import project.utils.reminders
ACCOUNT_SID = "AC6a9746370384b26236aae71013aa35b2"
AUTH_TOKEN = "38b0bcc37788e553978c840929d54aa2"
def send_reminder(text, phone):
client = TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN)
client.messages.create(to=phone, from_="+15713646776", b... | from twilio.rest import TwilioRestClient
import project.utils.reminders
ACCOUNT_SID = "ayylmao"
AUTH_TOKEN = "ayylmao"
def send_reminder(text, phone):
client = TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN)
client.messages.create(to=phone, from_="+15172194225", body=text)
def send_all_reminders():
x = project... | <commit_before>from twilio.rest import TwilioRestClient
import project.utils.reminders
ACCOUNT_SID = "AC6a9746370384b26236aae71013aa35b2"
AUTH_TOKEN = "38b0bcc37788e553978c840929d54aa2"
def send_reminder(text, phone):
client = TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN)
client.messages.create(to=phone, from_="+... | from twilio.rest import TwilioRestClient
import project.utils.reminders
ACCOUNT_SID = "ayylmao"
AUTH_TOKEN = "ayylmao"
def send_reminder(text, phone):
client = TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN)
client.messages.create(to=phone, from_="+15172194225", body=text)
def send_all_reminders():
x = project... | from twilio.rest import TwilioRestClient
import project.utils.reminders
ACCOUNT_SID = "AC6a9746370384b26236aae71013aa35b2"
AUTH_TOKEN = "38b0bcc37788e553978c840929d54aa2"
def send_reminder(text, phone):
client = TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN)
client.messages.create(to=phone, from_="+15713646776", b... | <commit_before>from twilio.rest import TwilioRestClient
import project.utils.reminders
ACCOUNT_SID = "AC6a9746370384b26236aae71013aa35b2"
AUTH_TOKEN = "38b0bcc37788e553978c840929d54aa2"
def send_reminder(text, phone):
client = TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN)
client.messages.create(to=phone, from_="+... |
e7865a22eb2e7433f3c36cd571aae3ac65436423 | signage/models.py | signage/models.py | from __future__ import unicode_literals
from django.core.urlresolvers import reverse
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from model_utils.models import TimeFramedModel
from taggit.managers import TaggableManager
@python_2_unicode_compatible
class Slide(TimeFram... | from __future__ import unicode_literals
from django.core.urlresolvers import reverse
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from model_utils.models import TimeFramedModel
from taggit.managers import TaggableManager
@python_2_unicode_compatible
class Slide(TimeFram... | Order displayed slides by weight | Order displayed slides by weight
| Python | bsd-3-clause | jbittel/django-signage,jbittel/django-signage,jbittel/django-signage | from __future__ import unicode_literals
from django.core.urlresolvers import reverse
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from model_utils.models import TimeFramedModel
from taggit.managers import TaggableManager
@python_2_unicode_compatible
class Slide(TimeFram... | from __future__ import unicode_literals
from django.core.urlresolvers import reverse
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from model_utils.models import TimeFramedModel
from taggit.managers import TaggableManager
@python_2_unicode_compatible
class Slide(TimeFram... | <commit_before>from __future__ import unicode_literals
from django.core.urlresolvers import reverse
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from model_utils.models import TimeFramedModel
from taggit.managers import TaggableManager
@python_2_unicode_compatible
class... | from __future__ import unicode_literals
from django.core.urlresolvers import reverse
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from model_utils.models import TimeFramedModel
from taggit.managers import TaggableManager
@python_2_unicode_compatible
class Slide(TimeFram... | from __future__ import unicode_literals
from django.core.urlresolvers import reverse
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from model_utils.models import TimeFramedModel
from taggit.managers import TaggableManager
@python_2_unicode_compatible
class Slide(TimeFram... | <commit_before>from __future__ import unicode_literals
from django.core.urlresolvers import reverse
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from model_utils.models import TimeFramedModel
from taggit.managers import TaggableManager
@python_2_unicode_compatible
class... |
cf52a7c83e1479a99e95ab2125958a67febfccf5 | dataviews/__init__.py | dataviews/__init__.py | import sys, os
# Add param submodule to sys.path
cwd = os.path.abspath(os.path.split(__file__)[0])
sys.path.insert(0, os.path.join(cwd, '..', 'param'))
from .views import * # pyflakes:ignore (API import)
from .dataviews import * # pyflakes:ignore (API import)
from .sheetviews import * # pyflakes:ignore (API import)
f... | import sys, os
# Add param submodule to sys.path
cwd = os.path.abspath(os.path.split(__file__)[0])
sys.path.insert(0, os.path.join(cwd, '..', 'param'))
import param
__version__ = param.Version(release=(0,7), fpath=__file__)
from .views import * # pyflakes:ignore (API import)
from .dataviews import * # pyflakes:igno... | Set __version__ using param.Version (commit tagged as 'v0.7') | Set __version__ using param.Version (commit tagged as 'v0.7')
| Python | bsd-3-clause | mjabri/holoviews,basnijholt/holoviews,ioam/holoviews,mjabri/holoviews,ioam/holoviews,vascotenner/holoviews,vascotenner/holoviews,ioam/holoviews,basnijholt/holoviews,basnijholt/holoviews,vascotenner/holoviews,mjabri/holoviews | import sys, os
# Add param submodule to sys.path
cwd = os.path.abspath(os.path.split(__file__)[0])
sys.path.insert(0, os.path.join(cwd, '..', 'param'))
from .views import * # pyflakes:ignore (API import)
from .dataviews import * # pyflakes:ignore (API import)
from .sheetviews import * # pyflakes:ignore (API import)
f... | import sys, os
# Add param submodule to sys.path
cwd = os.path.abspath(os.path.split(__file__)[0])
sys.path.insert(0, os.path.join(cwd, '..', 'param'))
import param
__version__ = param.Version(release=(0,7), fpath=__file__)
from .views import * # pyflakes:ignore (API import)
from .dataviews import * # pyflakes:igno... | <commit_before>import sys, os
# Add param submodule to sys.path
cwd = os.path.abspath(os.path.split(__file__)[0])
sys.path.insert(0, os.path.join(cwd, '..', 'param'))
from .views import * # pyflakes:ignore (API import)
from .dataviews import * # pyflakes:ignore (API import)
from .sheetviews import * # pyflakes:ignore... | import sys, os
# Add param submodule to sys.path
cwd = os.path.abspath(os.path.split(__file__)[0])
sys.path.insert(0, os.path.join(cwd, '..', 'param'))
import param
__version__ = param.Version(release=(0,7), fpath=__file__)
from .views import * # pyflakes:ignore (API import)
from .dataviews import * # pyflakes:igno... | import sys, os
# Add param submodule to sys.path
cwd = os.path.abspath(os.path.split(__file__)[0])
sys.path.insert(0, os.path.join(cwd, '..', 'param'))
from .views import * # pyflakes:ignore (API import)
from .dataviews import * # pyflakes:ignore (API import)
from .sheetviews import * # pyflakes:ignore (API import)
f... | <commit_before>import sys, os
# Add param submodule to sys.path
cwd = os.path.abspath(os.path.split(__file__)[0])
sys.path.insert(0, os.path.join(cwd, '..', 'param'))
from .views import * # pyflakes:ignore (API import)
from .dataviews import * # pyflakes:ignore (API import)
from .sheetviews import * # pyflakes:ignore... |
0236ad9090f7b218fc7515fdc8d919b2fc048a72 | simple_counter.py | simple_counter.py | # Copyright 2008 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | # Copyright 2008 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | Indent only (PEP8) commit of simple counter. | Indent only (PEP8) commit of simple counter.
| Python | apache-2.0 | GoogleCloudPlatform/appengine-sharded-counters-python | # Copyright 2008 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | # Copyright 2008 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | <commit_before># Copyright 2008 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | # Copyright 2008 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | # Copyright 2008 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | <commit_before># Copyright 2008 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... |
da93d78d141e0e07581b2a00cd6a4fb4058dcf56 | scikits/learn/setup.py | scikits/learn/setup.py | def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration('learn',parent_package,top_path)
config.add_subpackage('datasets')
config.add_subpackage('common')
config.add_subpackage('machine')
config.add_subpackage('utils')
r... | def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration('learn',parent_package,top_path)
config.add_subpackage('datasets')
config.add_subpackage('machine')
config.add_subpackage('utils')
return config
if __name__ == '__main... | Remove references to deleted submodule common/ | Remove references to deleted submodule common/
From: Fabian Pedregosa <fabian.pedregosa@inria.fr>
git-svn-id: a2d1b0e147e530765aaf3e1662d4a98e2f63c719@384 22fbfee3-77ab-4535-9bad-27d1bd3bc7d8
| Python | bsd-3-clause | jayflo/scikit-learn,toastedcornflakes/scikit-learn,Aasmi/scikit-learn,kjung/scikit-learn,macks22/scikit-learn,trungnt13/scikit-learn,sgenoud/scikit-learn,ldirer/scikit-learn,aetilley/scikit-learn,elkingtonmcb/scikit-learn,IshankGulati/scikit-learn,zhenv5/scikit-learn,fzalkow/scikit-learn,petosegan/scikit-learn,mojoboss... | def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration('learn',parent_package,top_path)
config.add_subpackage('datasets')
config.add_subpackage('common')
config.add_subpackage('machine')
config.add_subpackage('utils')
r... | def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration('learn',parent_package,top_path)
config.add_subpackage('datasets')
config.add_subpackage('machine')
config.add_subpackage('utils')
return config
if __name__ == '__main... | <commit_before>def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration('learn',parent_package,top_path)
config.add_subpackage('datasets')
config.add_subpackage('common')
config.add_subpackage('machine')
config.add_subpackage... | def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration('learn',parent_package,top_path)
config.add_subpackage('datasets')
config.add_subpackage('machine')
config.add_subpackage('utils')
return config
if __name__ == '__main... | def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration('learn',parent_package,top_path)
config.add_subpackage('datasets')
config.add_subpackage('common')
config.add_subpackage('machine')
config.add_subpackage('utils')
r... | <commit_before>def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration('learn',parent_package,top_path)
config.add_subpackage('datasets')
config.add_subpackage('common')
config.add_subpackage('machine')
config.add_subpackage... |
6d09970db6a10a156977687612c0d8b65456c559 | mysite/deployment_settings.py | mysite/deployment_settings.py | from settings import *
OHLOH_API_KEY='SXvLaGPJFaKXQC0VOocAg'
DEBUG=False
ADMINS=[
('Everybody at OpenHatch', 'all@openhatch.org'),
]
INVITE_MODE=False # Suckas, invite codes are disabled everywarez
INVITATIONS_PER_USER=20
TEMPLATE_DEBUG=False
EMAIL_SUBJECT_PREFIX='[Kaboom@OH] '
SEND_BROKEN_LINK_EMAILS=True
MAN... | from settings import *
OHLOH_API_KEY='SXvLaGPJFaKXQC0VOocAg'
DEBUG=False
ADMINS=[
('Everybody at OpenHatch', 'all@openhatch.org'),
]
INVITE_MODE=False # Suckas, invite codes are disabled everywarez
INVITATIONS_PER_USER=20
TEMPLATE_DEBUG=False
EMAIL_SUBJECT_PREFIX='[Kaboom@OH] '
SEND_BROKEN_LINK_EMAILS=True
MAN... | Remove trailing slash that was causing problems. | Remove trailing slash that was causing problems.
| Python | agpl-3.0 | eeshangarg/oh-mainline,sudheesh001/oh-mainline,willingc/oh-mainline,SnappleCap/oh-mainline,moijes12/oh-mainline,mzdaniel/oh-mainline,SnappleCap/oh-mainline,ehashman/oh-mainline,openhatch/oh-mainline,moijes12/oh-mainline,Changaco/oh-mainline,ojengwa/oh-mainline,vipul-sharma20/oh-mainline,vipul-sharma20/oh-mainline,onceu... | from settings import *
OHLOH_API_KEY='SXvLaGPJFaKXQC0VOocAg'
DEBUG=False
ADMINS=[
('Everybody at OpenHatch', 'all@openhatch.org'),
]
INVITE_MODE=False # Suckas, invite codes are disabled everywarez
INVITATIONS_PER_USER=20
TEMPLATE_DEBUG=False
EMAIL_SUBJECT_PREFIX='[Kaboom@OH] '
SEND_BROKEN_LINK_EMAILS=True
MAN... | from settings import *
OHLOH_API_KEY='SXvLaGPJFaKXQC0VOocAg'
DEBUG=False
ADMINS=[
('Everybody at OpenHatch', 'all@openhatch.org'),
]
INVITE_MODE=False # Suckas, invite codes are disabled everywarez
INVITATIONS_PER_USER=20
TEMPLATE_DEBUG=False
EMAIL_SUBJECT_PREFIX='[Kaboom@OH] '
SEND_BROKEN_LINK_EMAILS=True
MAN... | <commit_before>from settings import *
OHLOH_API_KEY='SXvLaGPJFaKXQC0VOocAg'
DEBUG=False
ADMINS=[
('Everybody at OpenHatch', 'all@openhatch.org'),
]
INVITE_MODE=False # Suckas, invite codes are disabled everywarez
INVITATIONS_PER_USER=20
TEMPLATE_DEBUG=False
EMAIL_SUBJECT_PREFIX='[Kaboom@OH] '
SEND_BROKEN_LINK_... | from settings import *
OHLOH_API_KEY='SXvLaGPJFaKXQC0VOocAg'
DEBUG=False
ADMINS=[
('Everybody at OpenHatch', 'all@openhatch.org'),
]
INVITE_MODE=False # Suckas, invite codes are disabled everywarez
INVITATIONS_PER_USER=20
TEMPLATE_DEBUG=False
EMAIL_SUBJECT_PREFIX='[Kaboom@OH] '
SEND_BROKEN_LINK_EMAILS=True
MAN... | from settings import *
OHLOH_API_KEY='SXvLaGPJFaKXQC0VOocAg'
DEBUG=False
ADMINS=[
('Everybody at OpenHatch', 'all@openhatch.org'),
]
INVITE_MODE=False # Suckas, invite codes are disabled everywarez
INVITATIONS_PER_USER=20
TEMPLATE_DEBUG=False
EMAIL_SUBJECT_PREFIX='[Kaboom@OH] '
SEND_BROKEN_LINK_EMAILS=True
MAN... | <commit_before>from settings import *
OHLOH_API_KEY='SXvLaGPJFaKXQC0VOocAg'
DEBUG=False
ADMINS=[
('Everybody at OpenHatch', 'all@openhatch.org'),
]
INVITE_MODE=False # Suckas, invite codes are disabled everywarez
INVITATIONS_PER_USER=20
TEMPLATE_DEBUG=False
EMAIL_SUBJECT_PREFIX='[Kaboom@OH] '
SEND_BROKEN_LINK_... |
c3520c1c1802f903af829da5470fa14d1a1d5354 | src/c2w2c.py | src/c2w2c.py |
from models import C2W, LanguageModel, W2C
from util import load_training_data
from keras.models import Model
from keras.layers import TimeDistributed, Input, Activation
N_batch = 50
N_ctx = 10
d_C = 150
d_W = 50
d_Wi = 150
training_data = load_training_data('data/training.txt')
V_C ... | Build the actual C2W2C model | Build the actual C2W2C model | Python | mit | milankinen/c2w2c,milankinen/c2w2c |
Build the actual C2W2C model |
from models import C2W, LanguageModel, W2C
from util import load_training_data
from keras.models import Model
from keras.layers import TimeDistributed, Input, Activation
N_batch = 50
N_ctx = 10
d_C = 150
d_W = 50
d_Wi = 150
training_data = load_training_data('data/training.txt')
V_C ... | <commit_before>
<commit_msg>Build the actual C2W2C model<commit_after> |
from models import C2W, LanguageModel, W2C
from util import load_training_data
from keras.models import Model
from keras.layers import TimeDistributed, Input, Activation
N_batch = 50
N_ctx = 10
d_C = 150
d_W = 50
d_Wi = 150
training_data = load_training_data('data/training.txt')
V_C ... |
Build the actual C2W2C model
from models import C2W, LanguageModel, W2C
from util import load_training_data
from keras.models import Model
from keras.layers import TimeDistributed, Input, Activation
N_batch = 50
N_ctx = 10
d_C = 150
d_W = 50
d_Wi = 150
training_data = load_training_data('dat... | <commit_before>
<commit_msg>Build the actual C2W2C model<commit_after>
from models import C2W, LanguageModel, W2C
from util import load_training_data
from keras.models import Model
from keras.layers import TimeDistributed, Input, Activation
N_batch = 50
N_ctx = 10
d_C = 150
d_W = 50
d_Wi = 150
... | |
1ef1d7a973ce44943fc59315d1f962ed59f06e33 | seacucumber/backend.py | seacucumber/backend.py | """
This module contains the SESBackend class, which is what you'll want to set in
your settings.py::
EMAIL_BACKEND = 'seacucumber.backend.SESBackend'
"""
from django.core.mail.backends.base import BaseEmailBackend
from seacucumber.tasks import SendEmailTask
class SESBackend(BaseEmailBackend):
"""
A Djang... | """
This module contains the SESBackend class, which is what you'll want to set in
your settings.py::
EMAIL_BACKEND = 'seacucumber.backend.SESBackend'
"""
from django.core.mail.backends.base import BaseEmailBackend
from seacucumber.tasks import SendEmailTask
class SESBackend(BaseEmailBackend):
"""
A Djan... | Patch to send mails with UTF8 encoding | Patch to send mails with UTF8 encoding
Just a temp fix
| Python | mit | makielab/sea-cucumber,duointeractive/sea-cucumber | """
This module contains the SESBackend class, which is what you'll want to set in
your settings.py::
EMAIL_BACKEND = 'seacucumber.backend.SESBackend'
"""
from django.core.mail.backends.base import BaseEmailBackend
from seacucumber.tasks import SendEmailTask
class SESBackend(BaseEmailBackend):
"""
A Djang... | """
This module contains the SESBackend class, which is what you'll want to set in
your settings.py::
EMAIL_BACKEND = 'seacucumber.backend.SESBackend'
"""
from django.core.mail.backends.base import BaseEmailBackend
from seacucumber.tasks import SendEmailTask
class SESBackend(BaseEmailBackend):
"""
A Djan... | <commit_before>"""
This module contains the SESBackend class, which is what you'll want to set in
your settings.py::
EMAIL_BACKEND = 'seacucumber.backend.SESBackend'
"""
from django.core.mail.backends.base import BaseEmailBackend
from seacucumber.tasks import SendEmailTask
class SESBackend(BaseEmailBackend):
... | """
This module contains the SESBackend class, which is what you'll want to set in
your settings.py::
EMAIL_BACKEND = 'seacucumber.backend.SESBackend'
"""
from django.core.mail.backends.base import BaseEmailBackend
from seacucumber.tasks import SendEmailTask
class SESBackend(BaseEmailBackend):
"""
A Djan... | """
This module contains the SESBackend class, which is what you'll want to set in
your settings.py::
EMAIL_BACKEND = 'seacucumber.backend.SESBackend'
"""
from django.core.mail.backends.base import BaseEmailBackend
from seacucumber.tasks import SendEmailTask
class SESBackend(BaseEmailBackend):
"""
A Djang... | <commit_before>"""
This module contains the SESBackend class, which is what you'll want to set in
your settings.py::
EMAIL_BACKEND = 'seacucumber.backend.SESBackend'
"""
from django.core.mail.backends.base import BaseEmailBackend
from seacucumber.tasks import SendEmailTask
class SESBackend(BaseEmailBackend):
... |
a9b56fe98a0df71881c41a2524bdb5abc4b0de50 | services/imu-logger.py | services/imu-logger.py | #!/usr/bin/env python3
from sense_hat import SenseHat
from pymongo import MongoClient
import time
DELAY = 1 # in seconds
sense = SenseHat()
client = MongoClient("mongodb://10.0.1.25:27017")
db = client.g2x
while True:
orientation = sense.get_orientation_degrees()
print(orientation)
acceleration = sen... | #!/usr/bin/env python3
from sense_hat import SenseHat
from pymongo import MongoClient
from datetime import datetime
sense = SenseHat()
client = MongoClient("mongodb://10.0.1.25:27017")
db = client.g2x
last_time = datetime.utcnow()
sample_count = 0
while True:
current_time = datetime.utcnow()
elapsed_time =... | Read samples faster but log only once a second | Read samples faster but log only once a second
| Python | bsd-3-clause | gizmo-cda/g2x-submarine-v2,gizmo-cda/g2x-submarine-v2,gizmo-cda/g2x-submarine-v2,gizmo-cda/g2x-submarine-v2 | #!/usr/bin/env python3
from sense_hat import SenseHat
from pymongo import MongoClient
import time
DELAY = 1 # in seconds
sense = SenseHat()
client = MongoClient("mongodb://10.0.1.25:27017")
db = client.g2x
while True:
orientation = sense.get_orientation_degrees()
print(orientation)
acceleration = sen... | #!/usr/bin/env python3
from sense_hat import SenseHat
from pymongo import MongoClient
from datetime import datetime
sense = SenseHat()
client = MongoClient("mongodb://10.0.1.25:27017")
db = client.g2x
last_time = datetime.utcnow()
sample_count = 0
while True:
current_time = datetime.utcnow()
elapsed_time =... | <commit_before>#!/usr/bin/env python3
from sense_hat import SenseHat
from pymongo import MongoClient
import time
DELAY = 1 # in seconds
sense = SenseHat()
client = MongoClient("mongodb://10.0.1.25:27017")
db = client.g2x
while True:
orientation = sense.get_orientation_degrees()
print(orientation)
acc... | #!/usr/bin/env python3
from sense_hat import SenseHat
from pymongo import MongoClient
from datetime import datetime
sense = SenseHat()
client = MongoClient("mongodb://10.0.1.25:27017")
db = client.g2x
last_time = datetime.utcnow()
sample_count = 0
while True:
current_time = datetime.utcnow()
elapsed_time =... | #!/usr/bin/env python3
from sense_hat import SenseHat
from pymongo import MongoClient
import time
DELAY = 1 # in seconds
sense = SenseHat()
client = MongoClient("mongodb://10.0.1.25:27017")
db = client.g2x
while True:
orientation = sense.get_orientation_degrees()
print(orientation)
acceleration = sen... | <commit_before>#!/usr/bin/env python3
from sense_hat import SenseHat
from pymongo import MongoClient
import time
DELAY = 1 # in seconds
sense = SenseHat()
client = MongoClient("mongodb://10.0.1.25:27017")
db = client.g2x
while True:
orientation = sense.get_orientation_degrees()
print(orientation)
acc... |
b7b1ae11378b37350a3fcd9d989be58f655ec986 | calexicon/helpers.py | calexicon/helpers.py | from datetime import date as vanilla_date
def ordinal(n):
suffix = "th"
if n % 10 == 1:
suffix = "st"
if n % 10 == 2:
suffix = "nd"
if n % 10 == 3:
suffix = "rd"
if 10 < n % 100 < 20:
suffix = "th"
return "%d%s" % (n, suffix)
def month_string(n):
d = vanil... | from datetime import date as vanilla_date
def ordinal(n):
suffix = "th"
if n % 10 in [1, 2, 3]:
suffix = [None, 'st', 'nd', 'rd'][n % 10]
if 10 < n % 100 < 20:
suffix = "th"
return "%d%s" % (n, suffix)
def month_string(n):
d = vanilla_date(1995, n, 1)
return d.strftime("%B")
| Make this part of the function simpler. | Make this part of the function simpler.
| Python | apache-2.0 | jwg4/qual,jwg4/calexicon | from datetime import date as vanilla_date
def ordinal(n):
suffix = "th"
if n % 10 == 1:
suffix = "st"
if n % 10 == 2:
suffix = "nd"
if n % 10 == 3:
suffix = "rd"
if 10 < n % 100 < 20:
suffix = "th"
return "%d%s" % (n, suffix)
def month_string(n):
d = vanil... | from datetime import date as vanilla_date
def ordinal(n):
suffix = "th"
if n % 10 in [1, 2, 3]:
suffix = [None, 'st', 'nd', 'rd'][n % 10]
if 10 < n % 100 < 20:
suffix = "th"
return "%d%s" % (n, suffix)
def month_string(n):
d = vanilla_date(1995, n, 1)
return d.strftime("%B")
| <commit_before>from datetime import date as vanilla_date
def ordinal(n):
suffix = "th"
if n % 10 == 1:
suffix = "st"
if n % 10 == 2:
suffix = "nd"
if n % 10 == 3:
suffix = "rd"
if 10 < n % 100 < 20:
suffix = "th"
return "%d%s" % (n, suffix)
def month_string(n)... | from datetime import date as vanilla_date
def ordinal(n):
suffix = "th"
if n % 10 in [1, 2, 3]:
suffix = [None, 'st', 'nd', 'rd'][n % 10]
if 10 < n % 100 < 20:
suffix = "th"
return "%d%s" % (n, suffix)
def month_string(n):
d = vanilla_date(1995, n, 1)
return d.strftime("%B")
| from datetime import date as vanilla_date
def ordinal(n):
suffix = "th"
if n % 10 == 1:
suffix = "st"
if n % 10 == 2:
suffix = "nd"
if n % 10 == 3:
suffix = "rd"
if 10 < n % 100 < 20:
suffix = "th"
return "%d%s" % (n, suffix)
def month_string(n):
d = vanil... | <commit_before>from datetime import date as vanilla_date
def ordinal(n):
suffix = "th"
if n % 10 == 1:
suffix = "st"
if n % 10 == 2:
suffix = "nd"
if n % 10 == 3:
suffix = "rd"
if 10 < n % 100 < 20:
suffix = "th"
return "%d%s" % (n, suffix)
def month_string(n)... |
8be4829832bab01b0508c59114f924c5945878b1 | executor/opensubmitexec/compiler.py | executor/opensubmitexec/compiler.py | '''
Functions dealing with the compilation of code.
'''
from .exceptions import ValidatorBrokenException
import logging
logger = logging.getLogger('opensubmitexec')
GCC = ['gcc', '-o', '{output}', '{inputs}']
GPP = ['g++', '-o', '{output}', '{inputs}']
def compiler_cmdline(compiler=GCC, output=None, inputs=None):
... | '''
Functions dealing with the compilation of code.
'''
from .exceptions import ValidatorBrokenException
import logging
logger = logging.getLogger('opensubmitexec')
GCC = ['gcc', '-o', '{output}', '{inputs}']
GPP = ['g++', '-pthread', '-o', '{output}', '{inputs}']
def compiler_cmdline(compiler=GCC, output=None, in... | Fix CPP problem on Linux | Fix CPP problem on Linux
| Python | agpl-3.0 | troeger/opensubmit,troeger/opensubmit,troeger/opensubmit,troeger/opensubmit,troeger/opensubmit | '''
Functions dealing with the compilation of code.
'''
from .exceptions import ValidatorBrokenException
import logging
logger = logging.getLogger('opensubmitexec')
GCC = ['gcc', '-o', '{output}', '{inputs}']
GPP = ['g++', '-o', '{output}', '{inputs}']
def compiler_cmdline(compiler=GCC, output=None, inputs=None):
... | '''
Functions dealing with the compilation of code.
'''
from .exceptions import ValidatorBrokenException
import logging
logger = logging.getLogger('opensubmitexec')
GCC = ['gcc', '-o', '{output}', '{inputs}']
GPP = ['g++', '-pthread', '-o', '{output}', '{inputs}']
def compiler_cmdline(compiler=GCC, output=None, in... | <commit_before>'''
Functions dealing with the compilation of code.
'''
from .exceptions import ValidatorBrokenException
import logging
logger = logging.getLogger('opensubmitexec')
GCC = ['gcc', '-o', '{output}', '{inputs}']
GPP = ['g++', '-o', '{output}', '{inputs}']
def compiler_cmdline(compiler=GCC, output=None,... | '''
Functions dealing with the compilation of code.
'''
from .exceptions import ValidatorBrokenException
import logging
logger = logging.getLogger('opensubmitexec')
GCC = ['gcc', '-o', '{output}', '{inputs}']
GPP = ['g++', '-pthread', '-o', '{output}', '{inputs}']
def compiler_cmdline(compiler=GCC, output=None, in... | '''
Functions dealing with the compilation of code.
'''
from .exceptions import ValidatorBrokenException
import logging
logger = logging.getLogger('opensubmitexec')
GCC = ['gcc', '-o', '{output}', '{inputs}']
GPP = ['g++', '-o', '{output}', '{inputs}']
def compiler_cmdline(compiler=GCC, output=None, inputs=None):
... | <commit_before>'''
Functions dealing with the compilation of code.
'''
from .exceptions import ValidatorBrokenException
import logging
logger = logging.getLogger('opensubmitexec')
GCC = ['gcc', '-o', '{output}', '{inputs}']
GPP = ['g++', '-o', '{output}', '{inputs}']
def compiler_cmdline(compiler=GCC, output=None,... |
4c987cd45080cb6a1a449fa708a567c40ba8c94f | examples/pax_mininet_node.py | examples/pax_mininet_node.py | # coding: latin-1
"""
pax_mininet_node.py: Defines PaxNode which allows Pax to behave as the sole packet hander on a node.
"""
from mininet.node import Node
from mininet.log import info, warn
class PaxNode( Node ):
"PaxNode: A node which allows Pax to behave as the sole packet hander on that node."
def __in... | # coding: latin-1
"""
pax_mininet_node.py: Defines PaxNode which allows Pax to behave as the sole packet hander on a node.
"""
from mininet.node import Node
from mininet.log import info, warn
class PaxNode( Node ):
"PaxNode: A node which allows Pax to behave as the sole packet hander on that node."
def __in... | Add comment explaining why we disable ip_forward | Add comment explaining why we disable ip_forward
| Python | apache-2.0 | niksu/pax,TMVector/pax,niksu/pax,niksu/pax,TMVector/pax | # coding: latin-1
"""
pax_mininet_node.py: Defines PaxNode which allows Pax to behave as the sole packet hander on a node.
"""
from mininet.node import Node
from mininet.log import info, warn
class PaxNode( Node ):
"PaxNode: A node which allows Pax to behave as the sole packet hander on that node."
def __in... | # coding: latin-1
"""
pax_mininet_node.py: Defines PaxNode which allows Pax to behave as the sole packet hander on a node.
"""
from mininet.node import Node
from mininet.log import info, warn
class PaxNode( Node ):
"PaxNode: A node which allows Pax to behave as the sole packet hander on that node."
def __in... | <commit_before># coding: latin-1
"""
pax_mininet_node.py: Defines PaxNode which allows Pax to behave as the sole packet hander on a node.
"""
from mininet.node import Node
from mininet.log import info, warn
class PaxNode( Node ):
"PaxNode: A node which allows Pax to behave as the sole packet hander on that node.... | # coding: latin-1
"""
pax_mininet_node.py: Defines PaxNode which allows Pax to behave as the sole packet hander on a node.
"""
from mininet.node import Node
from mininet.log import info, warn
class PaxNode( Node ):
"PaxNode: A node which allows Pax to behave as the sole packet hander on that node."
def __in... | # coding: latin-1
"""
pax_mininet_node.py: Defines PaxNode which allows Pax to behave as the sole packet hander on a node.
"""
from mininet.node import Node
from mininet.log import info, warn
class PaxNode( Node ):
"PaxNode: A node which allows Pax to behave as the sole packet hander on that node."
def __in... | <commit_before># coding: latin-1
"""
pax_mininet_node.py: Defines PaxNode which allows Pax to behave as the sole packet hander on a node.
"""
from mininet.node import Node
from mininet.log import info, warn
class PaxNode( Node ):
"PaxNode: A node which allows Pax to behave as the sole packet hander on that node.... |
3252a1e0f5b2991179d3fabe66f34a19f7cd85c9 | src/DecodeTest.py | src/DecodeTest.py | import unittest
from Decode import Decoder
import Frames
class TestDecoder(unittest.TestCase):
"""
"""
def setUp(self):
self.decoder = Decoder()
def test_decoder_get_frame_class(self):
command = 'SEND'
self.assertEquals(self.decoder.get_frame_class(command), Frames.SEND)
d... | import unittest
from Decode import Decoder
import Frames
class TestDecoder(unittest.TestCase):
"""
"""
def setUp(self):
self.decoder = Decoder()
def test_decoder_get_frame_class(self):
command = 'SEND'
self.assertEquals(self.decoder.get_frame_class(command), Frames.SEND)
d... | Send and Connect frame tests | Send and Connect frame tests
| Python | mit | phan91/STOMP_agilis | import unittest
from Decode import Decoder
import Frames
class TestDecoder(unittest.TestCase):
"""
"""
def setUp(self):
self.decoder = Decoder()
def test_decoder_get_frame_class(self):
command = 'SEND'
self.assertEquals(self.decoder.get_frame_class(command), Frames.SEND)
d... | import unittest
from Decode import Decoder
import Frames
class TestDecoder(unittest.TestCase):
"""
"""
def setUp(self):
self.decoder = Decoder()
def test_decoder_get_frame_class(self):
command = 'SEND'
self.assertEquals(self.decoder.get_frame_class(command), Frames.SEND)
d... | <commit_before>import unittest
from Decode import Decoder
import Frames
class TestDecoder(unittest.TestCase):
"""
"""
def setUp(self):
self.decoder = Decoder()
def test_decoder_get_frame_class(self):
command = 'SEND'
self.assertEquals(self.decoder.get_frame_class(command), Fram... | import unittest
from Decode import Decoder
import Frames
class TestDecoder(unittest.TestCase):
"""
"""
def setUp(self):
self.decoder = Decoder()
def test_decoder_get_frame_class(self):
command = 'SEND'
self.assertEquals(self.decoder.get_frame_class(command), Frames.SEND)
d... | import unittest
from Decode import Decoder
import Frames
class TestDecoder(unittest.TestCase):
"""
"""
def setUp(self):
self.decoder = Decoder()
def test_decoder_get_frame_class(self):
command = 'SEND'
self.assertEquals(self.decoder.get_frame_class(command), Frames.SEND)
d... | <commit_before>import unittest
from Decode import Decoder
import Frames
class TestDecoder(unittest.TestCase):
"""
"""
def setUp(self):
self.decoder = Decoder()
def test_decoder_get_frame_class(self):
command = 'SEND'
self.assertEquals(self.decoder.get_frame_class(command), Fram... |
fb0b129216bd98a90cdee623157df5c7e4a742fb | blinkenlights/blinkenlights.py | blinkenlights/blinkenlights.py | #!/usr/bin/python3
import asyncio, signal, os
from blink import blink
import ipc.coordinator
loop = asyncio.get_event_loop()
def my_interrupt_handler():
print('Stopping')
for task in asyncio.Task.all_tasks():
task.cancel()
loop.stop()
loop.add_signal_handler(signal.SIGINT, my_interrupt_handle... | #!/usr/bin/python3
import asyncio, signal, os
from blink import blink
import ipc.coordinator
loop = asyncio.get_event_loop()
def my_interrupt_handler():
print('Stopping')
for task in asyncio.Task.all_tasks():
task.cancel()
loop.stop()
loop.add_signal_handler(signal.SIGINT, my_interrupt_handle... | Clean up socket file on exiting | Clean up socket file on exiting
Change-Id: I34391c64408b5a35386913bd7be01d81feed61b6
| Python | mit | fayoh/KSP-Control | #!/usr/bin/python3
import asyncio, signal, os
from blink import blink
import ipc.coordinator
loop = asyncio.get_event_loop()
def my_interrupt_handler():
print('Stopping')
for task in asyncio.Task.all_tasks():
task.cancel()
loop.stop()
loop.add_signal_handler(signal.SIGINT, my_interrupt_handle... | #!/usr/bin/python3
import asyncio, signal, os
from blink import blink
import ipc.coordinator
loop = asyncio.get_event_loop()
def my_interrupt_handler():
print('Stopping')
for task in asyncio.Task.all_tasks():
task.cancel()
loop.stop()
loop.add_signal_handler(signal.SIGINT, my_interrupt_handle... | <commit_before>#!/usr/bin/python3
import asyncio, signal, os
from blink import blink
import ipc.coordinator
loop = asyncio.get_event_loop()
def my_interrupt_handler():
print('Stopping')
for task in asyncio.Task.all_tasks():
task.cancel()
loop.stop()
loop.add_signal_handler(signal.SIGINT, my_i... | #!/usr/bin/python3
import asyncio, signal, os
from blink import blink
import ipc.coordinator
loop = asyncio.get_event_loop()
def my_interrupt_handler():
print('Stopping')
for task in asyncio.Task.all_tasks():
task.cancel()
loop.stop()
loop.add_signal_handler(signal.SIGINT, my_interrupt_handle... | #!/usr/bin/python3
import asyncio, signal, os
from blink import blink
import ipc.coordinator
loop = asyncio.get_event_loop()
def my_interrupt_handler():
print('Stopping')
for task in asyncio.Task.all_tasks():
task.cancel()
loop.stop()
loop.add_signal_handler(signal.SIGINT, my_interrupt_handle... | <commit_before>#!/usr/bin/python3
import asyncio, signal, os
from blink import blink
import ipc.coordinator
loop = asyncio.get_event_loop()
def my_interrupt_handler():
print('Stopping')
for task in asyncio.Task.all_tasks():
task.cancel()
loop.stop()
loop.add_signal_handler(signal.SIGINT, my_i... |
3ccaf18243232d756ed139d9f84a6b3903af15f7 | exploratory_analysis/author_scan.py | exploratory_analysis/author_scan.py | import os
from utils import Reader
import code
import sys
author_dict = dict()
def extract_authors(tweets):
# code.interact(local=dict(globals(), **locals()))
for t in tweets:
if t.is_post():
actor = t.actor()
create_key(actor['id'])
increment_author(actor, t.is_p... | import os
from utils import Reader
import code
import sys
def extract_authors(tweets):
for t in tweets:
if t.is_post():
actor = t.actor()
print '"{}","{}","{}","{}",{},{}'.format(actor['id'],
actor['link'],
... | Print everything out in csv and use tableau to do calculation | Print everything out in csv and use tableau to do calculation
| Python | apache-2.0 | chuajiesheng/twitter-sentiment-analysis | import os
from utils import Reader
import code
import sys
author_dict = dict()
def extract_authors(tweets):
# code.interact(local=dict(globals(), **locals()))
for t in tweets:
if t.is_post():
actor = t.actor()
create_key(actor['id'])
increment_author(actor, t.is_p... | import os
from utils import Reader
import code
import sys
def extract_authors(tweets):
for t in tweets:
if t.is_post():
actor = t.actor()
print '"{}","{}","{}","{}",{},{}'.format(actor['id'],
actor['link'],
... | <commit_before>import os
from utils import Reader
import code
import sys
author_dict = dict()
def extract_authors(tweets):
# code.interact(local=dict(globals(), **locals()))
for t in tweets:
if t.is_post():
actor = t.actor()
create_key(actor['id'])
increment_autho... | import os
from utils import Reader
import code
import sys
def extract_authors(tweets):
for t in tweets:
if t.is_post():
actor = t.actor()
print '"{}","{}","{}","{}",{},{}'.format(actor['id'],
actor['link'],
... | import os
from utils import Reader
import code
import sys
author_dict = dict()
def extract_authors(tweets):
# code.interact(local=dict(globals(), **locals()))
for t in tweets:
if t.is_post():
actor = t.actor()
create_key(actor['id'])
increment_author(actor, t.is_p... | <commit_before>import os
from utils import Reader
import code
import sys
author_dict = dict()
def extract_authors(tweets):
# code.interact(local=dict(globals(), **locals()))
for t in tweets:
if t.is_post():
actor = t.actor()
create_key(actor['id'])
increment_autho... |
9d651a1cdb92d7d8ba039fce97a11de085b54990 | polymorphic/formsets/utils.py | polymorphic/formsets/utils.py | """
Internal utils
"""
import django
def add_media(dest, media):
"""
Optimized version of django.forms.Media.__add__() that doesn't create new objects.
Only required for Django < 2.0
"""
if django.VERSION >= (2, 0):
dest += media
else:
dest.add_css(media._css)
dest.add... | """
Internal utils
"""
import django
def add_media(dest, media):
"""
Optimized version of django.forms.Media.__add__() that doesn't create new objects.
Only required for Django < 2.0
"""
if django.VERSION >= (2, 0):
combined = dest + media
dest._css = combined._css
dest._j... | Fix the add_media() hack for Django 2.0 | Fix the add_media() hack for Django 2.0
| Python | bsd-3-clause | chrisglass/django_polymorphic,chrisglass/django_polymorphic | """
Internal utils
"""
import django
def add_media(dest, media):
"""
Optimized version of django.forms.Media.__add__() that doesn't create new objects.
Only required for Django < 2.0
"""
if django.VERSION >= (2, 0):
dest += media
else:
dest.add_css(media._css)
dest.add... | """
Internal utils
"""
import django
def add_media(dest, media):
"""
Optimized version of django.forms.Media.__add__() that doesn't create new objects.
Only required for Django < 2.0
"""
if django.VERSION >= (2, 0):
combined = dest + media
dest._css = combined._css
dest._j... | <commit_before>"""
Internal utils
"""
import django
def add_media(dest, media):
"""
Optimized version of django.forms.Media.__add__() that doesn't create new objects.
Only required for Django < 2.0
"""
if django.VERSION >= (2, 0):
dest += media
else:
dest.add_css(media._css)
... | """
Internal utils
"""
import django
def add_media(dest, media):
"""
Optimized version of django.forms.Media.__add__() that doesn't create new objects.
Only required for Django < 2.0
"""
if django.VERSION >= (2, 0):
combined = dest + media
dest._css = combined._css
dest._j... | """
Internal utils
"""
import django
def add_media(dest, media):
"""
Optimized version of django.forms.Media.__add__() that doesn't create new objects.
Only required for Django < 2.0
"""
if django.VERSION >= (2, 0):
dest += media
else:
dest.add_css(media._css)
dest.add... | <commit_before>"""
Internal utils
"""
import django
def add_media(dest, media):
"""
Optimized version of django.forms.Media.__add__() that doesn't create new objects.
Only required for Django < 2.0
"""
if django.VERSION >= (2, 0):
dest += media
else:
dest.add_css(media._css)
... |
94e3572a4049b0eb0ff0d762a3bce5248a5bd507 | src/sas/sasgui/perspectives/file_converter/file_converter.py | src/sas/sasgui/perspectives/file_converter/file_converter.py | """
File Converter Plugin
"""
import logging
from sas.sasgui.guiframe.plugin_base import PluginBase
from sas.sasgui.perspectives.file_converter.converter_panel import ConverterWindow
logger = logging.getLogger(__name__)
class Plugin(PluginBase):
"""
This class defines the interface for a Plugin class
for... | """
File Converter Plugin
"""
import logging
from sas.sasgui.guiframe.plugin_base import PluginBase
from sas.sasgui.perspectives.file_converter.converter_panel import ConverterWindow
logger = logging.getLogger(__name__)
class Plugin(PluginBase):
"""
This class defines the interface for a Plugin class
for... | Update file converter tooltip in tools menu | Update file converter tooltip in tools menu
| Python | bsd-3-clause | SasView/sasview,SasView/sasview,lewisodriscoll/sasview,SasView/sasview,SasView/sasview,SasView/sasview,lewisodriscoll/sasview,lewisodriscoll/sasview,SasView/sasview,lewisodriscoll/sasview,lewisodriscoll/sasview | """
File Converter Plugin
"""
import logging
from sas.sasgui.guiframe.plugin_base import PluginBase
from sas.sasgui.perspectives.file_converter.converter_panel import ConverterWindow
logger = logging.getLogger(__name__)
class Plugin(PluginBase):
"""
This class defines the interface for a Plugin class
for... | """
File Converter Plugin
"""
import logging
from sas.sasgui.guiframe.plugin_base import PluginBase
from sas.sasgui.perspectives.file_converter.converter_panel import ConverterWindow
logger = logging.getLogger(__name__)
class Plugin(PluginBase):
"""
This class defines the interface for a Plugin class
for... | <commit_before>"""
File Converter Plugin
"""
import logging
from sas.sasgui.guiframe.plugin_base import PluginBase
from sas.sasgui.perspectives.file_converter.converter_panel import ConverterWindow
logger = logging.getLogger(__name__)
class Plugin(PluginBase):
"""
This class defines the interface for a Plugi... | """
File Converter Plugin
"""
import logging
from sas.sasgui.guiframe.plugin_base import PluginBase
from sas.sasgui.perspectives.file_converter.converter_panel import ConverterWindow
logger = logging.getLogger(__name__)
class Plugin(PluginBase):
"""
This class defines the interface for a Plugin class
for... | """
File Converter Plugin
"""
import logging
from sas.sasgui.guiframe.plugin_base import PluginBase
from sas.sasgui.perspectives.file_converter.converter_panel import ConverterWindow
logger = logging.getLogger(__name__)
class Plugin(PluginBase):
"""
This class defines the interface for a Plugin class
for... | <commit_before>"""
File Converter Plugin
"""
import logging
from sas.sasgui.guiframe.plugin_base import PluginBase
from sas.sasgui.perspectives.file_converter.converter_panel import ConverterWindow
logger = logging.getLogger(__name__)
class Plugin(PluginBase):
"""
This class defines the interface for a Plugi... |
4712e870bec7c678f88af3d7b54fcf7c8b040795 | salt/modules/http.py | salt/modules/http.py | # -*- coding: utf-8 -*-
'''
Module for making various web calls. Primarily designed for webhooks and the
like, but also useful for basic http testing.
'''
from __future__ import absolute_import
# Import salt libs
import salt.utils.http
def query(url, **kwargs):
'''
Query a resource, and decode the return dat... | # -*- coding: utf-8 -*-
'''
Module for making various web calls. Primarily designed for webhooks and the
like, but also useful for basic http testing.
'''
from __future__ import absolute_import
# Import salt libs
import salt.utils.http
def query(url, **kwargs):
'''
Query a resource, and decode the return dat... | Allow execution module to update_ca_bundle | Allow execution module to update_ca_bundle
| Python | apache-2.0 | saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt | # -*- coding: utf-8 -*-
'''
Module for making various web calls. Primarily designed for webhooks and the
like, but also useful for basic http testing.
'''
from __future__ import absolute_import
# Import salt libs
import salt.utils.http
def query(url, **kwargs):
'''
Query a resource, and decode the return dat... | # -*- coding: utf-8 -*-
'''
Module for making various web calls. Primarily designed for webhooks and the
like, but also useful for basic http testing.
'''
from __future__ import absolute_import
# Import salt libs
import salt.utils.http
def query(url, **kwargs):
'''
Query a resource, and decode the return dat... | <commit_before># -*- coding: utf-8 -*-
'''
Module for making various web calls. Primarily designed for webhooks and the
like, but also useful for basic http testing.
'''
from __future__ import absolute_import
# Import salt libs
import salt.utils.http
def query(url, **kwargs):
'''
Query a resource, and decode... | # -*- coding: utf-8 -*-
'''
Module for making various web calls. Primarily designed for webhooks and the
like, but also useful for basic http testing.
'''
from __future__ import absolute_import
# Import salt libs
import salt.utils.http
def query(url, **kwargs):
'''
Query a resource, and decode the return dat... | # -*- coding: utf-8 -*-
'''
Module for making various web calls. Primarily designed for webhooks and the
like, but also useful for basic http testing.
'''
from __future__ import absolute_import
# Import salt libs
import salt.utils.http
def query(url, **kwargs):
'''
Query a resource, and decode the return dat... | <commit_before># -*- coding: utf-8 -*-
'''
Module for making various web calls. Primarily designed for webhooks and the
like, but also useful for basic http testing.
'''
from __future__ import absolute_import
# Import salt libs
import salt.utils.http
def query(url, **kwargs):
'''
Query a resource, and decode... |
edd534103ca404bdeadf3225ea381acc8c555ced | polyaxon/polyaxon/config_settings/rest.py | polyaxon/polyaxon/config_settings/rest.py | REST_FRAMEWORK = {
'DEFAULT_RENDERER_CLASSES': (
# 'djangorestframework_camel_case.render.CamelCaseJSONRenderer', # Any other renders,
'rest_framework.renderers.JSONRenderer',
# 'rest_framework.renderers.BrowsableAPIRenderer',
),
# 'DEFAULT_PARSER_CLASSES': (
# 'djangorestf... | REST_FRAMEWORK = {
'DEFAULT_RENDERER_CLASSES': (
# 'djangorestframework_camel_case.render.CamelCaseJSONRenderer', # Any other renders,
'rest_framework.renderers.JSONRenderer',
# 'rest_framework.renderers.BrowsableAPIRenderer',
),
# 'DEFAULT_PARSER_CLASSES': (
# 'djangorestf... | Use 20 as default page size | Use 20 as default page size
| Python | apache-2.0 | polyaxon/polyaxon,polyaxon/polyaxon,polyaxon/polyaxon | REST_FRAMEWORK = {
'DEFAULT_RENDERER_CLASSES': (
# 'djangorestframework_camel_case.render.CamelCaseJSONRenderer', # Any other renders,
'rest_framework.renderers.JSONRenderer',
# 'rest_framework.renderers.BrowsableAPIRenderer',
),
# 'DEFAULT_PARSER_CLASSES': (
# 'djangorestf... | REST_FRAMEWORK = {
'DEFAULT_RENDERER_CLASSES': (
# 'djangorestframework_camel_case.render.CamelCaseJSONRenderer', # Any other renders,
'rest_framework.renderers.JSONRenderer',
# 'rest_framework.renderers.BrowsableAPIRenderer',
),
# 'DEFAULT_PARSER_CLASSES': (
# 'djangorestf... | <commit_before>REST_FRAMEWORK = {
'DEFAULT_RENDERER_CLASSES': (
# 'djangorestframework_camel_case.render.CamelCaseJSONRenderer', # Any other renders,
'rest_framework.renderers.JSONRenderer',
# 'rest_framework.renderers.BrowsableAPIRenderer',
),
# 'DEFAULT_PARSER_CLASSES': (
# ... | REST_FRAMEWORK = {
'DEFAULT_RENDERER_CLASSES': (
# 'djangorestframework_camel_case.render.CamelCaseJSONRenderer', # Any other renders,
'rest_framework.renderers.JSONRenderer',
# 'rest_framework.renderers.BrowsableAPIRenderer',
),
# 'DEFAULT_PARSER_CLASSES': (
# 'djangorestf... | REST_FRAMEWORK = {
'DEFAULT_RENDERER_CLASSES': (
# 'djangorestframework_camel_case.render.CamelCaseJSONRenderer', # Any other renders,
'rest_framework.renderers.JSONRenderer',
# 'rest_framework.renderers.BrowsableAPIRenderer',
),
# 'DEFAULT_PARSER_CLASSES': (
# 'djangorestf... | <commit_before>REST_FRAMEWORK = {
'DEFAULT_RENDERER_CLASSES': (
# 'djangorestframework_camel_case.render.CamelCaseJSONRenderer', # Any other renders,
'rest_framework.renderers.JSONRenderer',
# 'rest_framework.renderers.BrowsableAPIRenderer',
),
# 'DEFAULT_PARSER_CLASSES': (
# ... |
dadbcf91eab36b67ba9f0db77076651c04d1e85d | packages/Python/lldbsuite/test/lang/cpp/char8_t/TestCxxChar8_t.py | packages/Python/lldbsuite/test/lang/cpp/char8_t/TestCxxChar8_t.py | # coding=utf8
"""
Test that C++ supports char8_t correctly.
"""
from __future__ import print_function
import lldb
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
import lldbsuite.test.lldbutil as lldbutil
class CxxChar8_tTestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)... | # coding=utf8
"""
Test that C++ supports char8_t correctly.
"""
from __future__ import print_function
import lldb
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
import lldbsuite.test.lldbutil as lldbutil
class CxxChar8_tTestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)... | Update test so it matches the Windows output | [test] Update test so it matches the Windows output
git-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@369595 91177308-0d34-0410-b5e6-96231b3b80d8
| Python | apache-2.0 | llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,llvm-mirror/lldb,llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb | # coding=utf8
"""
Test that C++ supports char8_t correctly.
"""
from __future__ import print_function
import lldb
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
import lldbsuite.test.lldbutil as lldbutil
class CxxChar8_tTestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)... | # coding=utf8
"""
Test that C++ supports char8_t correctly.
"""
from __future__ import print_function
import lldb
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
import lldbsuite.test.lldbutil as lldbutil
class CxxChar8_tTestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)... | <commit_before># coding=utf8
"""
Test that C++ supports char8_t correctly.
"""
from __future__ import print_function
import lldb
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
import lldbsuite.test.lldbutil as lldbutil
class CxxChar8_tTestCase(TestBase):
mydir = TestBase.compute_... | # coding=utf8
"""
Test that C++ supports char8_t correctly.
"""
from __future__ import print_function
import lldb
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
import lldbsuite.test.lldbutil as lldbutil
class CxxChar8_tTestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)... | # coding=utf8
"""
Test that C++ supports char8_t correctly.
"""
from __future__ import print_function
import lldb
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
import lldbsuite.test.lldbutil as lldbutil
class CxxChar8_tTestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)... | <commit_before># coding=utf8
"""
Test that C++ supports char8_t correctly.
"""
from __future__ import print_function
import lldb
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
import lldbsuite.test.lldbutil as lldbutil
class CxxChar8_tTestCase(TestBase):
mydir = TestBase.compute_... |
25e5b38b09a21cd6e6fbf4ba141bc35bb34cb77e | Core/views.py | Core/views.py | from django.shortcuts import render
# Create your views here.
| from django.http import HttpResponse, HttpResponseNotFound, Http404
from django.shortcuts import render, redirect
from django.middleware.csrf import get_token
from models import *
class view():
request = ''
template = ''
isSecuredArea = True
isUserAuthenticated = False
#Normal Overridable methods
@abstractme... | Add core view hangler class | Add core view hangler class
| Python | mit | Tomcuzz/OctaHomeAutomation,Tomcuzz/OctaHomeAutomation,Tomcuzz/OctaHomeAutomation,Tomcuzz/OctaHomeAutomation | from django.shortcuts import render
# Create your views here.
Add core view hangler class | from django.http import HttpResponse, HttpResponseNotFound, Http404
from django.shortcuts import render, redirect
from django.middleware.csrf import get_token
from models import *
class view():
request = ''
template = ''
isSecuredArea = True
isUserAuthenticated = False
#Normal Overridable methods
@abstractme... | <commit_before>from django.shortcuts import render
# Create your views here.
<commit_msg>Add core view hangler class<commit_after> | from django.http import HttpResponse, HttpResponseNotFound, Http404
from django.shortcuts import render, redirect
from django.middleware.csrf import get_token
from models import *
class view():
request = ''
template = ''
isSecuredArea = True
isUserAuthenticated = False
#Normal Overridable methods
@abstractme... | from django.shortcuts import render
# Create your views here.
Add core view hangler classfrom django.http import HttpResponse, HttpResponseNotFound, Http404
from django.shortcuts import render, redirect
from django.middleware.csrf import get_token
from models import *
class view():
request = ''
template = ''
isSec... | <commit_before>from django.shortcuts import render
# Create your views here.
<commit_msg>Add core view hangler class<commit_after>from django.http import HttpResponse, HttpResponseNotFound, Http404
from django.shortcuts import render, redirect
from django.middleware.csrf import get_token
from models import *
class vi... |
9f9357bc46f813cd8a26a5f14bba5364aa4a4c10 | rx/core/operators/contains.py | rx/core/operators/contains.py | from typing import Callable, Optional, TypeVar
from rx import operators as ops
from rx.core import Observable, pipe, typing
from rx.internal.basic import default_comparer
_T = TypeVar("_T")
def contains_(
value: _T, comparer: Optional[typing.Comparer[_T]] = None
) -> Callable[[Observable[_T]], Observable[bool]]... | from typing import Callable, Optional, TypeVar
from rx import operators as ops
from rx.core import Observable, pipe, typing
from rx.internal.basic import default_comparer
_T = TypeVar("_T")
def contains_(
value: _T, comparer: Optional[typing.Comparer[_T]] = None
) -> Callable[[Observable[_T]], Observable[bool]]... | Use typed function instead of lambda | Use typed function instead of lambda
| Python | mit | ReactiveX/RxPY,ReactiveX/RxPY | from typing import Callable, Optional, TypeVar
from rx import operators as ops
from rx.core import Observable, pipe, typing
from rx.internal.basic import default_comparer
_T = TypeVar("_T")
def contains_(
value: _T, comparer: Optional[typing.Comparer[_T]] = None
) -> Callable[[Observable[_T]], Observable[bool]]... | from typing import Callable, Optional, TypeVar
from rx import operators as ops
from rx.core import Observable, pipe, typing
from rx.internal.basic import default_comparer
_T = TypeVar("_T")
def contains_(
value: _T, comparer: Optional[typing.Comparer[_T]] = None
) -> Callable[[Observable[_T]], Observable[bool]]... | <commit_before>from typing import Callable, Optional, TypeVar
from rx import operators as ops
from rx.core import Observable, pipe, typing
from rx.internal.basic import default_comparer
_T = TypeVar("_T")
def contains_(
value: _T, comparer: Optional[typing.Comparer[_T]] = None
) -> Callable[[Observable[_T]], Ob... | from typing import Callable, Optional, TypeVar
from rx import operators as ops
from rx.core import Observable, pipe, typing
from rx.internal.basic import default_comparer
_T = TypeVar("_T")
def contains_(
value: _T, comparer: Optional[typing.Comparer[_T]] = None
) -> Callable[[Observable[_T]], Observable[bool]]... | from typing import Callable, Optional, TypeVar
from rx import operators as ops
from rx.core import Observable, pipe, typing
from rx.internal.basic import default_comparer
_T = TypeVar("_T")
def contains_(
value: _T, comparer: Optional[typing.Comparer[_T]] = None
) -> Callable[[Observable[_T]], Observable[bool]]... | <commit_before>from typing import Callable, Optional, TypeVar
from rx import operators as ops
from rx.core import Observable, pipe, typing
from rx.internal.basic import default_comparer
_T = TypeVar("_T")
def contains_(
value: _T, comparer: Optional[typing.Comparer[_T]] = None
) -> Callable[[Observable[_T]], Ob... |
2883d803609554e38f96f920f1ef41b54b6ec4c2 | fabfile.py | fabfile.py | import os
from fabric.api import local, settings, abort, run, cd, env, put, sudo
from fabric.contrib.console import confirm
import time
DEPLOY_WAIT_TIME = 15
timestamp="release-%s" % int(time.time() * 1000)
env.user = 'deploy' # Special group with limited sudo
env.hosts = ['104.236.224.252']
code_dir = '/home/liz... | import os
from fabric.api import local, settings, abort, run, cd, env, put, sudo
from fabric.contrib.console import confirm
import time
DEPLOY_WAIT_TIME = 15
timestamp="release-%s" % int(time.time() * 1000)
env.user = 'deploy' # Special group with limited sudo
env.hosts = ['104.236.224.252']
code_dir = '/home/liz... | Remove the noise default broken image | Remove the noise default broken image
| Python | mit | UCDavisLibrary/scribeAPI,UCDavisLibrary/scribeAPI,UCDavisLibrary/scribeAPI,UCDavisLibrary/scribeAPI,UCDavisLibrary/scribeAPI | import os
from fabric.api import local, settings, abort, run, cd, env, put, sudo
from fabric.contrib.console import confirm
import time
DEPLOY_WAIT_TIME = 15
timestamp="release-%s" % int(time.time() * 1000)
env.user = 'deploy' # Special group with limited sudo
env.hosts = ['104.236.224.252']
code_dir = '/home/liz... | import os
from fabric.api import local, settings, abort, run, cd, env, put, sudo
from fabric.contrib.console import confirm
import time
DEPLOY_WAIT_TIME = 15
timestamp="release-%s" % int(time.time() * 1000)
env.user = 'deploy' # Special group with limited sudo
env.hosts = ['104.236.224.252']
code_dir = '/home/liz... | <commit_before>import os
from fabric.api import local, settings, abort, run, cd, env, put, sudo
from fabric.contrib.console import confirm
import time
DEPLOY_WAIT_TIME = 15
timestamp="release-%s" % int(time.time() * 1000)
env.user = 'deploy' # Special group with limited sudo
env.hosts = ['104.236.224.252']
code_d... | import os
from fabric.api import local, settings, abort, run, cd, env, put, sudo
from fabric.contrib.console import confirm
import time
DEPLOY_WAIT_TIME = 15
timestamp="release-%s" % int(time.time() * 1000)
env.user = 'deploy' # Special group with limited sudo
env.hosts = ['104.236.224.252']
code_dir = '/home/liz... | import os
from fabric.api import local, settings, abort, run, cd, env, put, sudo
from fabric.contrib.console import confirm
import time
DEPLOY_WAIT_TIME = 15
timestamp="release-%s" % int(time.time() * 1000)
env.user = 'deploy' # Special group with limited sudo
env.hosts = ['104.236.224.252']
code_dir = '/home/liz... | <commit_before>import os
from fabric.api import local, settings, abort, run, cd, env, put, sudo
from fabric.contrib.console import confirm
import time
DEPLOY_WAIT_TIME = 15
timestamp="release-%s" % int(time.time() * 1000)
env.user = 'deploy' # Special group with limited sudo
env.hosts = ['104.236.224.252']
code_d... |
86c106fc95946e4558fabfae57bbd039b248a70c | mindbender/maya/plugins/validate_single_shape.py | mindbender/maya/plugins/validate_single_shape.py | import pyblish.api
class ValidateMindbenderSingleShape(pyblish.api.InstancePlugin):
"""One mesh per transform"""
label = "Validate Single Shape"
order = pyblish.api.ValidatorOrder
hosts = ["maya"]
active = False
optional = True
families = [
"mindbender.model",
"mindbender.... | import pyblish.api
class ValidateMindbenderSingleShape(pyblish.api.InstancePlugin):
"""Transforms with a mesh must ever only contain a single mesh
This ensures models only contain a single shape node.
"""
label = "Validate Single Shape"
order = pyblish.api.ValidatorOrder
hosts = ["maya"]
... | Repair validate single shape validator | Repair validate single shape validator
| Python | mit | mindbender-studio/core,MoonShineVFX/core,getavalon/core,MoonShineVFX/core,mindbender-studio/core,getavalon/core | import pyblish.api
class ValidateMindbenderSingleShape(pyblish.api.InstancePlugin):
"""One mesh per transform"""
label = "Validate Single Shape"
order = pyblish.api.ValidatorOrder
hosts = ["maya"]
active = False
optional = True
families = [
"mindbender.model",
"mindbender.... | import pyblish.api
class ValidateMindbenderSingleShape(pyblish.api.InstancePlugin):
"""Transforms with a mesh must ever only contain a single mesh
This ensures models only contain a single shape node.
"""
label = "Validate Single Shape"
order = pyblish.api.ValidatorOrder
hosts = ["maya"]
... | <commit_before>import pyblish.api
class ValidateMindbenderSingleShape(pyblish.api.InstancePlugin):
"""One mesh per transform"""
label = "Validate Single Shape"
order = pyblish.api.ValidatorOrder
hosts = ["maya"]
active = False
optional = True
families = [
"mindbender.model",
... | import pyblish.api
class ValidateMindbenderSingleShape(pyblish.api.InstancePlugin):
"""Transforms with a mesh must ever only contain a single mesh
This ensures models only contain a single shape node.
"""
label = "Validate Single Shape"
order = pyblish.api.ValidatorOrder
hosts = ["maya"]
... | import pyblish.api
class ValidateMindbenderSingleShape(pyblish.api.InstancePlugin):
"""One mesh per transform"""
label = "Validate Single Shape"
order = pyblish.api.ValidatorOrder
hosts = ["maya"]
active = False
optional = True
families = [
"mindbender.model",
"mindbender.... | <commit_before>import pyblish.api
class ValidateMindbenderSingleShape(pyblish.api.InstancePlugin):
"""One mesh per transform"""
label = "Validate Single Shape"
order = pyblish.api.ValidatorOrder
hosts = ["maya"]
active = False
optional = True
families = [
"mindbender.model",
... |
d57e4993ece29da34c370a96732c820798c5048b | fake-service/features/environment.py | fake-service/features/environment.py | #
# Copyright (c) 2014 ThoughtWorks, Inc.
#
# Pixelated 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.
#
# Pixelated is distrib... | #
# Copyright (c) 2014 ThoughtWorks, Inc.
#
# Pixelated 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.
#
# Pixelated is distrib... | Revert "increasing webdriver timeout on fake-service" | Revert "increasing webdriver timeout on fake-service"
This reverts commit a39a4b40a947db655c84af6eb62d5870cfd8b32c.
| Python | agpl-3.0 | alabeduarte/pixelated-user-agent,phazel/pixelated-user-agent,pixelated-project/pixelated-user-agent,sw00/pixelated-user-agent,SamuelToh/pixelated-user-agent,SamuelToh/pixelated-user-agent,PuZZleDucK/pixelated-user-agent,sw00/pixelated-user-agent,SamuelToh/pixelated-user-agent,phazel/pixelated-user-agent,pixelated/pixel... | #
# Copyright (c) 2014 ThoughtWorks, Inc.
#
# Pixelated 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.
#
# Pixelated is distrib... | #
# Copyright (c) 2014 ThoughtWorks, Inc.
#
# Pixelated 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.
#
# Pixelated is distrib... | <commit_before>#
# Copyright (c) 2014 ThoughtWorks, Inc.
#
# Pixelated 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.
#
# Pixel... | #
# Copyright (c) 2014 ThoughtWorks, Inc.
#
# Pixelated 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.
#
# Pixelated is distrib... | #
# Copyright (c) 2014 ThoughtWorks, Inc.
#
# Pixelated 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.
#
# Pixelated is distrib... | <commit_before>#
# Copyright (c) 2014 ThoughtWorks, Inc.
#
# Pixelated 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.
#
# Pixel... |
e994aa4c4389177aedca8192a41d27bdbb81458e | tests/conftest.py | tests/conftest.py | from distutils import dir_util
import pytest
import os
@pytest.fixture(scope="class")
def datadir(tmpdir_factory, request):
"""
Fixture responsible for searching a folder with the same name of test
module and, if available, moving all contents to a temporary directory so
tests can use them freely.
... | from distutils import dir_util
import pytest
import os
@pytest.fixture(scope="function")
def datadir(tmpdir_factory, request):
"""
Fixture responsible for searching a folder with the same name of test
module and, if available, moving all contents to a temporary directory so
tests can use them freely.
... | Change scope of datadir fixture to function-level | Change scope of datadir fixture to function-level
| Python | mit | ZedThree/fort_depend.py,ZedThree/fort_depend.py | from distutils import dir_util
import pytest
import os
@pytest.fixture(scope="class")
def datadir(tmpdir_factory, request):
"""
Fixture responsible for searching a folder with the same name of test
module and, if available, moving all contents to a temporary directory so
tests can use them freely.
... | from distutils import dir_util
import pytest
import os
@pytest.fixture(scope="function")
def datadir(tmpdir_factory, request):
"""
Fixture responsible for searching a folder with the same name of test
module and, if available, moving all contents to a temporary directory so
tests can use them freely.
... | <commit_before>from distutils import dir_util
import pytest
import os
@pytest.fixture(scope="class")
def datadir(tmpdir_factory, request):
"""
Fixture responsible for searching a folder with the same name of test
module and, if available, moving all contents to a temporary directory so
tests can use t... | from distutils import dir_util
import pytest
import os
@pytest.fixture(scope="function")
def datadir(tmpdir_factory, request):
"""
Fixture responsible for searching a folder with the same name of test
module and, if available, moving all contents to a temporary directory so
tests can use them freely.
... | from distutils import dir_util
import pytest
import os
@pytest.fixture(scope="class")
def datadir(tmpdir_factory, request):
"""
Fixture responsible for searching a folder with the same name of test
module and, if available, moving all contents to a temporary directory so
tests can use them freely.
... | <commit_before>from distutils import dir_util
import pytest
import os
@pytest.fixture(scope="class")
def datadir(tmpdir_factory, request):
"""
Fixture responsible for searching a folder with the same name of test
module and, if available, moving all contents to a temporary directory so
tests can use t... |
2e0585a59e7c3c60b8bf7e0a8d5e377b7f2f9cd5 | grammar/entities/adjectives/deff.py | grammar/entities/adjectives/deff.py | from pyparsing import *
from ...constants.math.deff import NUM, FULLNUM
from ...constants.zones.deff import TOP, BOTTOM
from ...constants.verbs.deff import *
from ...mana.deff import color
from ...types.deff import nontype, supertype
from ...functions.deff import delimitedListAnd, delimitedListOr
from decl import *
... | from pyparsing import *
from ...constants.math.deff import NUM, FULLNUM
from ...constants.zones.deff import TOP, BOTTOM
from ...constants.verbs.deff import *
from ...mana.deff import color
from ...types.deff import nontype, supertype
from ...functions.deff import delimitedListAnd, delimitedListOr
from decl import *
... | Add commentary explaining and/or lists | Add commentary explaining and/or lists
| Python | mit | jrgdiz/cardwalker,jrgdiz/cardwalker | from pyparsing import *
from ...constants.math.deff import NUM, FULLNUM
from ...constants.zones.deff import TOP, BOTTOM
from ...constants.verbs.deff import *
from ...mana.deff import color
from ...types.deff import nontype, supertype
from ...functions.deff import delimitedListAnd, delimitedListOr
from decl import *
... | from pyparsing import *
from ...constants.math.deff import NUM, FULLNUM
from ...constants.zones.deff import TOP, BOTTOM
from ...constants.verbs.deff import *
from ...mana.deff import color
from ...types.deff import nontype, supertype
from ...functions.deff import delimitedListAnd, delimitedListOr
from decl import *
... | <commit_before>from pyparsing import *
from ...constants.math.deff import NUM, FULLNUM
from ...constants.zones.deff import TOP, BOTTOM
from ...constants.verbs.deff import *
from ...mana.deff import color
from ...types.deff import nontype, supertype
from ...functions.deff import delimitedListAnd, delimitedListOr
from ... | from pyparsing import *
from ...constants.math.deff import NUM, FULLNUM
from ...constants.zones.deff import TOP, BOTTOM
from ...constants.verbs.deff import *
from ...mana.deff import color
from ...types.deff import nontype, supertype
from ...functions.deff import delimitedListAnd, delimitedListOr
from decl import *
... | from pyparsing import *
from ...constants.math.deff import NUM, FULLNUM
from ...constants.zones.deff import TOP, BOTTOM
from ...constants.verbs.deff import *
from ...mana.deff import color
from ...types.deff import nontype, supertype
from ...functions.deff import delimitedListAnd, delimitedListOr
from decl import *
... | <commit_before>from pyparsing import *
from ...constants.math.deff import NUM, FULLNUM
from ...constants.zones.deff import TOP, BOTTOM
from ...constants.verbs.deff import *
from ...mana.deff import color
from ...types.deff import nontype, supertype
from ...functions.deff import delimitedListAnd, delimitedListOr
from ... |
400027592a131872da5754306ee5e0ec2eba61cf | tests/test_err.py | tests/test_err.py | # Testing use of cpl_errs
import pytest
import rasterio
from rasterio.errors import RasterioIOError
def test_io_error(tmpdir):
with pytest.raises(RasterioIOError) as exc_info:
rasterio.open(str(tmpdir.join('foo.tif')))
msg, = exc_info.value.args
assert msg.startswith("'{0}'".format(tmpdir.join('... | # Testing use of cpl_errs
import pytest
import rasterio
from rasterio.errors import RasterioIOError
def test_io_error(tmpdir):
"""RasterioIOError is raised when a disk file can't be opened.
Newlines are removed from GDAL error messages."""
with pytest.raises(RasterioIOError) as exc_info:
rasteri... | Check msg in a way that passes for all GDAL versions | Check msg in a way that passes for all GDAL versions
| Python | bsd-3-clause | kapadia/rasterio,brendan-ward/rasterio,kapadia/rasterio,kapadia/rasterio,brendan-ward/rasterio,brendan-ward/rasterio | # Testing use of cpl_errs
import pytest
import rasterio
from rasterio.errors import RasterioIOError
def test_io_error(tmpdir):
with pytest.raises(RasterioIOError) as exc_info:
rasterio.open(str(tmpdir.join('foo.tif')))
msg, = exc_info.value.args
assert msg.startswith("'{0}'".format(tmpdir.join('... | # Testing use of cpl_errs
import pytest
import rasterio
from rasterio.errors import RasterioIOError
def test_io_error(tmpdir):
"""RasterioIOError is raised when a disk file can't be opened.
Newlines are removed from GDAL error messages."""
with pytest.raises(RasterioIOError) as exc_info:
rasteri... | <commit_before># Testing use of cpl_errs
import pytest
import rasterio
from rasterio.errors import RasterioIOError
def test_io_error(tmpdir):
with pytest.raises(RasterioIOError) as exc_info:
rasterio.open(str(tmpdir.join('foo.tif')))
msg, = exc_info.value.args
assert msg.startswith("'{0}'".forma... | # Testing use of cpl_errs
import pytest
import rasterio
from rasterio.errors import RasterioIOError
def test_io_error(tmpdir):
"""RasterioIOError is raised when a disk file can't be opened.
Newlines are removed from GDAL error messages."""
with pytest.raises(RasterioIOError) as exc_info:
rasteri... | # Testing use of cpl_errs
import pytest
import rasterio
from rasterio.errors import RasterioIOError
def test_io_error(tmpdir):
with pytest.raises(RasterioIOError) as exc_info:
rasterio.open(str(tmpdir.join('foo.tif')))
msg, = exc_info.value.args
assert msg.startswith("'{0}'".format(tmpdir.join('... | <commit_before># Testing use of cpl_errs
import pytest
import rasterio
from rasterio.errors import RasterioIOError
def test_io_error(tmpdir):
with pytest.raises(RasterioIOError) as exc_info:
rasterio.open(str(tmpdir.join('foo.tif')))
msg, = exc_info.value.args
assert msg.startswith("'{0}'".forma... |
1bd57b89cb0deed5081540e5b29f7531215fa121 | polyaxon_client/transport/socket_transport.py | polyaxon_client/transport/socket_transport.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
import json
import websocket
from polyaxon_client.logger import logger
class SocketTransportMixin(object):
"""Socket operations transport."""
def socket(self, url, message_handler, headers=None):
webs = websock... | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
import json
import six
import websocket
from polyaxon_client.logger import logger
class SocketTransportMixin(object):
"""Socket operations transport."""
def socket(self, url, message_handler, headers=None):
web... | Check if string before decoding | Check if string before decoding
| Python | apache-2.0 | polyaxon/polyaxon,polyaxon/polyaxon,polyaxon/polyaxon | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
import json
import websocket
from polyaxon_client.logger import logger
class SocketTransportMixin(object):
"""Socket operations transport."""
def socket(self, url, message_handler, headers=None):
webs = websock... | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
import json
import six
import websocket
from polyaxon_client.logger import logger
class SocketTransportMixin(object):
"""Socket operations transport."""
def socket(self, url, message_handler, headers=None):
web... | <commit_before># -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
import json
import websocket
from polyaxon_client.logger import logger
class SocketTransportMixin(object):
"""Socket operations transport."""
def socket(self, url, message_handler, headers=None):
... | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
import json
import six
import websocket
from polyaxon_client.logger import logger
class SocketTransportMixin(object):
"""Socket operations transport."""
def socket(self, url, message_handler, headers=None):
web... | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
import json
import websocket
from polyaxon_client.logger import logger
class SocketTransportMixin(object):
"""Socket operations transport."""
def socket(self, url, message_handler, headers=None):
webs = websock... | <commit_before># -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
import json
import websocket
from polyaxon_client.logger import logger
class SocketTransportMixin(object):
"""Socket operations transport."""
def socket(self, url, message_handler, headers=None):
... |
2717a35a78f5982f96d57e258dfedd308cb6ffa8 | hoomd/typeparam.py | hoomd/typeparam.py | from hoomd.parameterdicts import AttachedTypeParameterDict
class TypeParameter:
def __init__(self, name, type_kind, param_dict):
self.name = name
self.type_kind = type_kind
self.param_dict = param_dict
def __getitem__(self, key):
return self.param_dict[key]
def __setitem_... | from hoomd.parameterdicts import AttachedTypeParameterDict
class TypeParameter:
def __init__(self, name, type_kind, param_dict):
self.name = name
self.type_kind = type_kind
self.param_dict = param_dict
def __getitem__(self, key):
return self.param_dict[key]
def __setitem_... | Add keys iterator for ``TypeParameter`` | Add keys iterator for ``TypeParameter``
| Python | bsd-3-clause | joaander/hoomd-blue,joaander/hoomd-blue,joaander/hoomd-blue,joaander/hoomd-blue,joaander/hoomd-blue,joaander/hoomd-blue | from hoomd.parameterdicts import AttachedTypeParameterDict
class TypeParameter:
def __init__(self, name, type_kind, param_dict):
self.name = name
self.type_kind = type_kind
self.param_dict = param_dict
def __getitem__(self, key):
return self.param_dict[key]
def __setitem_... | from hoomd.parameterdicts import AttachedTypeParameterDict
class TypeParameter:
def __init__(self, name, type_kind, param_dict):
self.name = name
self.type_kind = type_kind
self.param_dict = param_dict
def __getitem__(self, key):
return self.param_dict[key]
def __setitem_... | <commit_before>from hoomd.parameterdicts import AttachedTypeParameterDict
class TypeParameter:
def __init__(self, name, type_kind, param_dict):
self.name = name
self.type_kind = type_kind
self.param_dict = param_dict
def __getitem__(self, key):
return self.param_dict[key]
... | from hoomd.parameterdicts import AttachedTypeParameterDict
class TypeParameter:
def __init__(self, name, type_kind, param_dict):
self.name = name
self.type_kind = type_kind
self.param_dict = param_dict
def __getitem__(self, key):
return self.param_dict[key]
def __setitem_... | from hoomd.parameterdicts import AttachedTypeParameterDict
class TypeParameter:
def __init__(self, name, type_kind, param_dict):
self.name = name
self.type_kind = type_kind
self.param_dict = param_dict
def __getitem__(self, key):
return self.param_dict[key]
def __setitem_... | <commit_before>from hoomd.parameterdicts import AttachedTypeParameterDict
class TypeParameter:
def __init__(self, name, type_kind, param_dict):
self.name = name
self.type_kind = type_kind
self.param_dict = param_dict
def __getitem__(self, key):
return self.param_dict[key]
... |
fcb80afe4703c7a031778ef573a3b839484d8c24 | mpld3/test_plots/test_ticklabels.py | mpld3/test_plots/test_ticklabels.py | """Plot to test date axis"""
import matplotlib.pyplot as plt
import matplotlib
import mpld3
def create_plot():
fig, ax = plt.subplots()
ax.plot([2000, 2050], [1, 2])
ax.set_title('Tick label test', size=14)
return fig
def test_date():
fig = create_plot()
_ = mpld3.fig_to_html(fig)
plt.cl... | """
Plot to test date axis
TODO (@vladh): This test is misleading and needs to be updated. It should test
dates, but it only plots numbers in [2000, 2050], which will of course get
thousands separators automatically added.
"""
import matplotlib.pyplot as plt
import matplotlib
import mpld3
def create_plot():
fig,... | Add note for misleading test | Add note for misleading test
| Python | bsd-3-clause | jakevdp/mpld3,mpld3/mpld3,mpld3/mpld3,jakevdp/mpld3 | """Plot to test date axis"""
import matplotlib.pyplot as plt
import matplotlib
import mpld3
def create_plot():
fig, ax = plt.subplots()
ax.plot([2000, 2050], [1, 2])
ax.set_title('Tick label test', size=14)
return fig
def test_date():
fig = create_plot()
_ = mpld3.fig_to_html(fig)
plt.cl... | """
Plot to test date axis
TODO (@vladh): This test is misleading and needs to be updated. It should test
dates, but it only plots numbers in [2000, 2050], which will of course get
thousands separators automatically added.
"""
import matplotlib.pyplot as plt
import matplotlib
import mpld3
def create_plot():
fig,... | <commit_before>"""Plot to test date axis"""
import matplotlib.pyplot as plt
import matplotlib
import mpld3
def create_plot():
fig, ax = plt.subplots()
ax.plot([2000, 2050], [1, 2])
ax.set_title('Tick label test', size=14)
return fig
def test_date():
fig = create_plot()
_ = mpld3.fig_to_html(... | """
Plot to test date axis
TODO (@vladh): This test is misleading and needs to be updated. It should test
dates, but it only plots numbers in [2000, 2050], which will of course get
thousands separators automatically added.
"""
import matplotlib.pyplot as plt
import matplotlib
import mpld3
def create_plot():
fig,... | """Plot to test date axis"""
import matplotlib.pyplot as plt
import matplotlib
import mpld3
def create_plot():
fig, ax = plt.subplots()
ax.plot([2000, 2050], [1, 2])
ax.set_title('Tick label test', size=14)
return fig
def test_date():
fig = create_plot()
_ = mpld3.fig_to_html(fig)
plt.cl... | <commit_before>"""Plot to test date axis"""
import matplotlib.pyplot as plt
import matplotlib
import mpld3
def create_plot():
fig, ax = plt.subplots()
ax.plot([2000, 2050], [1, 2])
ax.set_title('Tick label test', size=14)
return fig
def test_date():
fig = create_plot()
_ = mpld3.fig_to_html(... |
398937e4ca759de8e1f88db7245280c72eddb88d | devicehive/transports/base_transport.py | devicehive/transports/base_transport.py | class BaseTransport(object):
"""Base transport class."""
def __init__(self, name, data_format_class, data_format_options,
handler_class, handler_options):
self._name = name
self._data_format = data_format_class(**data_format_options)
self._data_type = self._data_format.... | class BaseTransport(object):
"""Base transport class."""
def __init__(self, name, data_format_class, data_format_options,
handler_class, handler_options):
self.name = name
self._data_format = data_format_class(**data_format_options)
self._data_type = self._data_format.d... | Set transport name as public | Set transport name as public
| Python | apache-2.0 | devicehive/devicehive-python | class BaseTransport(object):
"""Base transport class."""
def __init__(self, name, data_format_class, data_format_options,
handler_class, handler_options):
self._name = name
self._data_format = data_format_class(**data_format_options)
self._data_type = self._data_format.... | class BaseTransport(object):
"""Base transport class."""
def __init__(self, name, data_format_class, data_format_options,
handler_class, handler_options):
self.name = name
self._data_format = data_format_class(**data_format_options)
self._data_type = self._data_format.d... | <commit_before>class BaseTransport(object):
"""Base transport class."""
def __init__(self, name, data_format_class, data_format_options,
handler_class, handler_options):
self._name = name
self._data_format = data_format_class(**data_format_options)
self._data_type = sel... | class BaseTransport(object):
"""Base transport class."""
def __init__(self, name, data_format_class, data_format_options,
handler_class, handler_options):
self.name = name
self._data_format = data_format_class(**data_format_options)
self._data_type = self._data_format.d... | class BaseTransport(object):
"""Base transport class."""
def __init__(self, name, data_format_class, data_format_options,
handler_class, handler_options):
self._name = name
self._data_format = data_format_class(**data_format_options)
self._data_type = self._data_format.... | <commit_before>class BaseTransport(object):
"""Base transport class."""
def __init__(self, name, data_format_class, data_format_options,
handler_class, handler_options):
self._name = name
self._data_format = data_format_class(**data_format_options)
self._data_type = sel... |
d2250ac74b0797d1662c054d2357573578caa251 | core/tasks.py | core/tasks.py | import os
import gzip
import urllib.request
from celery import shared_task
from django.core.mail import EmailMessage
from celery.task import periodic_task
from celery.schedules import crontab
@shared_task(name='deliver_email')
def deliver_email(subject=None, body=None, recipients=None):
#print("Entering core.task... | import os
import gzip
import urllib.request
from celery import shared_task
from django.core.mail import EmailMessage
from celery.task import periodic_task
from celery.schedules import crontab
@shared_task(name='deliver_email')
def deliver_email(subject=None, body=None, recipients=None):
if recipients:
f... | Clean up code and remove print statements | Clean up code and remove print statements
| Python | mit | LindaTNguyen/RAPID,gdit-cnd/RAPID,LindaTNguyen/RAPID,gdit-cnd/RAPID,LindaTNguyen/RAPID,gdit-cnd/RAPID,gdit-cnd/RAPID,gdit-cnd/RAPID,LindaTNguyen/RAPID,LindaTNguyen/RAPID | import os
import gzip
import urllib.request
from celery import shared_task
from django.core.mail import EmailMessage
from celery.task import periodic_task
from celery.schedules import crontab
@shared_task(name='deliver_email')
def deliver_email(subject=None, body=None, recipients=None):
#print("Entering core.task... | import os
import gzip
import urllib.request
from celery import shared_task
from django.core.mail import EmailMessage
from celery.task import periodic_task
from celery.schedules import crontab
@shared_task(name='deliver_email')
def deliver_email(subject=None, body=None, recipients=None):
if recipients:
f... | <commit_before>import os
import gzip
import urllib.request
from celery import shared_task
from django.core.mail import EmailMessage
from celery.task import periodic_task
from celery.schedules import crontab
@shared_task(name='deliver_email')
def deliver_email(subject=None, body=None, recipients=None):
#print("Ent... | import os
import gzip
import urllib.request
from celery import shared_task
from django.core.mail import EmailMessage
from celery.task import periodic_task
from celery.schedules import crontab
@shared_task(name='deliver_email')
def deliver_email(subject=None, body=None, recipients=None):
if recipients:
f... | import os
import gzip
import urllib.request
from celery import shared_task
from django.core.mail import EmailMessage
from celery.task import periodic_task
from celery.schedules import crontab
@shared_task(name='deliver_email')
def deliver_email(subject=None, body=None, recipients=None):
#print("Entering core.task... | <commit_before>import os
import gzip
import urllib.request
from celery import shared_task
from django.core.mail import EmailMessage
from celery.task import periodic_task
from celery.schedules import crontab
@shared_task(name='deliver_email')
def deliver_email(subject=None, body=None, recipients=None):
#print("Ent... |
116432001ca2b8eb1716add4455dfb1e2562f29a | nodeconductor/quotas/admin.py | nodeconductor/quotas/admin.py | from django.contrib import admin
from django.contrib.contenttypes import models as ct_models, generic
from nodeconductor.quotas import models, utils
class QuotaScopeClassListFilter(admin.SimpleListFilter):
# Human-readable title
title = 'Scope class'
# Parameter for the filter that will be used in the U... | from django.contrib import admin
from django.contrib.contenttypes import models as ct_models, generic
from nodeconductor.quotas import models, utils
class QuotaScopeClassListFilter(admin.SimpleListFilter):
# Human-readable title
title = 'Scope class'
# Parameter for the filter that will be used in the U... | Change quota inline display style (nc-417) | Change quota inline display style (nc-417)
| Python | mit | opennode/nodeconductor,opennode/nodeconductor,opennode/nodeconductor | from django.contrib import admin
from django.contrib.contenttypes import models as ct_models, generic
from nodeconductor.quotas import models, utils
class QuotaScopeClassListFilter(admin.SimpleListFilter):
# Human-readable title
title = 'Scope class'
# Parameter for the filter that will be used in the U... | from django.contrib import admin
from django.contrib.contenttypes import models as ct_models, generic
from nodeconductor.quotas import models, utils
class QuotaScopeClassListFilter(admin.SimpleListFilter):
# Human-readable title
title = 'Scope class'
# Parameter for the filter that will be used in the U... | <commit_before>from django.contrib import admin
from django.contrib.contenttypes import models as ct_models, generic
from nodeconductor.quotas import models, utils
class QuotaScopeClassListFilter(admin.SimpleListFilter):
# Human-readable title
title = 'Scope class'
# Parameter for the filter that will b... | from django.contrib import admin
from django.contrib.contenttypes import models as ct_models, generic
from nodeconductor.quotas import models, utils
class QuotaScopeClassListFilter(admin.SimpleListFilter):
# Human-readable title
title = 'Scope class'
# Parameter for the filter that will be used in the U... | from django.contrib import admin
from django.contrib.contenttypes import models as ct_models, generic
from nodeconductor.quotas import models, utils
class QuotaScopeClassListFilter(admin.SimpleListFilter):
# Human-readable title
title = 'Scope class'
# Parameter for the filter that will be used in the U... | <commit_before>from django.contrib import admin
from django.contrib.contenttypes import models as ct_models, generic
from nodeconductor.quotas import models, utils
class QuotaScopeClassListFilter(admin.SimpleListFilter):
# Human-readable title
title = 'Scope class'
# Parameter for the filter that will b... |
96aa6271a4dab8c4e222c4161ab9ad06472b4f19 | orges/test/integration/test_main.py | orges/test/integration/test_main.py | from __future__ import division, print_function, with_statement
from nose.tools import eq_
from orges.main import optimize
from orges.optimizer.gridsearch import GridSearchOptimizer
from orges.test.util.one_param_sleep_and_negate_f import f
def test_optimize_running_too_long_aborts():
optimizer = GridSearchOpti... | from __future__ import division, print_function, with_statement
from nose.tools import eq_
from orges.main import optimize
from orges.optimizer.gridsearch import GridSearchOptimizer
from orges.test.util.one_param_sleep_and_negate_f import f
def test_optimize_running_too_long_aborts():
optimizer = GridSearchOpti... | Fix test for optimize method | Fix test for optimize method
| Python | bsd-3-clause | cigroup-ol/metaopt,cigroup-ol/metaopt,cigroup-ol/metaopt | from __future__ import division, print_function, with_statement
from nose.tools import eq_
from orges.main import optimize
from orges.optimizer.gridsearch import GridSearchOptimizer
from orges.test.util.one_param_sleep_and_negate_f import f
def test_optimize_running_too_long_aborts():
optimizer = GridSearchOpti... | from __future__ import division, print_function, with_statement
from nose.tools import eq_
from orges.main import optimize
from orges.optimizer.gridsearch import GridSearchOptimizer
from orges.test.util.one_param_sleep_and_negate_f import f
def test_optimize_running_too_long_aborts():
optimizer = GridSearchOpti... | <commit_before>from __future__ import division, print_function, with_statement
from nose.tools import eq_
from orges.main import optimize
from orges.optimizer.gridsearch import GridSearchOptimizer
from orges.test.util.one_param_sleep_and_negate_f import f
def test_optimize_running_too_long_aborts():
optimizer =... | from __future__ import division, print_function, with_statement
from nose.tools import eq_
from orges.main import optimize
from orges.optimizer.gridsearch import GridSearchOptimizer
from orges.test.util.one_param_sleep_and_negate_f import f
def test_optimize_running_too_long_aborts():
optimizer = GridSearchOpti... | from __future__ import division, print_function, with_statement
from nose.tools import eq_
from orges.main import optimize
from orges.optimizer.gridsearch import GridSearchOptimizer
from orges.test.util.one_param_sleep_and_negate_f import f
def test_optimize_running_too_long_aborts():
optimizer = GridSearchOpti... | <commit_before>from __future__ import division, print_function, with_statement
from nose.tools import eq_
from orges.main import optimize
from orges.optimizer.gridsearch import GridSearchOptimizer
from orges.test.util.one_param_sleep_and_negate_f import f
def test_optimize_running_too_long_aborts():
optimizer =... |
7f83888c957b892e6cc9d2e92f49a2737a9eabfe | logstash_handler/__init__.py | logstash_handler/__init__.py | from logging.handlers import SocketHandler
import ssl
class LogstashHandler(SocketHandler):
"""
Sends output to an optionally encrypted streaming logstash TCP listener.
"""
def __init__(self, host, port, keyfile=None, certfile=None, ssl=True):
SocketHandler.__init__(self, host, port)
self.keyfile = ke... | from logging.handlers import SocketHandler
import ssl
class LogstashHandler(SocketHandler):
"""
Sends output to an optionally encrypted streaming logstash TCP listener.
"""
def __init__(self, host, port, keyfile=None, certfile=None, ca_certs=None, ssl=True):
SocketHandler.__init__(self, host, port)
se... | Add support for CA certificates | Add support for CA certificates
better SSL support | Python | mit | klynch/python-logstash-handler | from logging.handlers import SocketHandler
import ssl
class LogstashHandler(SocketHandler):
"""
Sends output to an optionally encrypted streaming logstash TCP listener.
"""
def __init__(self, host, port, keyfile=None, certfile=None, ssl=True):
SocketHandler.__init__(self, host, port)
self.keyfile = ke... | from logging.handlers import SocketHandler
import ssl
class LogstashHandler(SocketHandler):
"""
Sends output to an optionally encrypted streaming logstash TCP listener.
"""
def __init__(self, host, port, keyfile=None, certfile=None, ca_certs=None, ssl=True):
SocketHandler.__init__(self, host, port)
se... | <commit_before>from logging.handlers import SocketHandler
import ssl
class LogstashHandler(SocketHandler):
"""
Sends output to an optionally encrypted streaming logstash TCP listener.
"""
def __init__(self, host, port, keyfile=None, certfile=None, ssl=True):
SocketHandler.__init__(self, host, port)
se... | from logging.handlers import SocketHandler
import ssl
class LogstashHandler(SocketHandler):
"""
Sends output to an optionally encrypted streaming logstash TCP listener.
"""
def __init__(self, host, port, keyfile=None, certfile=None, ca_certs=None, ssl=True):
SocketHandler.__init__(self, host, port)
se... | from logging.handlers import SocketHandler
import ssl
class LogstashHandler(SocketHandler):
"""
Sends output to an optionally encrypted streaming logstash TCP listener.
"""
def __init__(self, host, port, keyfile=None, certfile=None, ssl=True):
SocketHandler.__init__(self, host, port)
self.keyfile = ke... | <commit_before>from logging.handlers import SocketHandler
import ssl
class LogstashHandler(SocketHandler):
"""
Sends output to an optionally encrypted streaming logstash TCP listener.
"""
def __init__(self, host, port, keyfile=None, certfile=None, ssl=True):
SocketHandler.__init__(self, host, port)
se... |
09fa1e01c6de9dffc99c7726607d64c843b564ba | osgtest/tests/test_53_gums.py | osgtest/tests/test_53_gums.py | import os
import pwd
import unittest
import osgtest.library.core as core
import osgtest.library.files as files
import osgtest.library.tomcat as tomcat
import osgtest.library.osgunittest as osgunittest
class TestGUMS(osgunittest.OSGTestCase):
def test_01_map_user(self):
core.skip_ok_unless_installed('gums... | import os
import pwd
import unittest
import osgtest.library.core as core
import osgtest.library.files as files
import osgtest.library.tomcat as tomcat
import osgtest.library.osgunittest as osgunittest
class TestGUMS(osgunittest.OSGTestCase):
def test_01_map_user(self):
core.skip_ok_unless_installed('gums... | Revert accidental gums test change from previous commit. | Revert accidental gums test change from previous commit.
git-svn-id: 884a03e47e2adb735d896e55bb5ad6bc3421ba19@17355 4e558342-562e-0410-864c-e07659590f8c
| Python | apache-2.0 | efajardo/osg-test,efajardo/osg-test | import os
import pwd
import unittest
import osgtest.library.core as core
import osgtest.library.files as files
import osgtest.library.tomcat as tomcat
import osgtest.library.osgunittest as osgunittest
class TestGUMS(osgunittest.OSGTestCase):
def test_01_map_user(self):
core.skip_ok_unless_installed('gums... | import os
import pwd
import unittest
import osgtest.library.core as core
import osgtest.library.files as files
import osgtest.library.tomcat as tomcat
import osgtest.library.osgunittest as osgunittest
class TestGUMS(osgunittest.OSGTestCase):
def test_01_map_user(self):
core.skip_ok_unless_installed('gums... | <commit_before>import os
import pwd
import unittest
import osgtest.library.core as core
import osgtest.library.files as files
import osgtest.library.tomcat as tomcat
import osgtest.library.osgunittest as osgunittest
class TestGUMS(osgunittest.OSGTestCase):
def test_01_map_user(self):
core.skip_ok_unless_... | import os
import pwd
import unittest
import osgtest.library.core as core
import osgtest.library.files as files
import osgtest.library.tomcat as tomcat
import osgtest.library.osgunittest as osgunittest
class TestGUMS(osgunittest.OSGTestCase):
def test_01_map_user(self):
core.skip_ok_unless_installed('gums... | import os
import pwd
import unittest
import osgtest.library.core as core
import osgtest.library.files as files
import osgtest.library.tomcat as tomcat
import osgtest.library.osgunittest as osgunittest
class TestGUMS(osgunittest.OSGTestCase):
def test_01_map_user(self):
core.skip_ok_unless_installed('gums... | <commit_before>import os
import pwd
import unittest
import osgtest.library.core as core
import osgtest.library.files as files
import osgtest.library.tomcat as tomcat
import osgtest.library.osgunittest as osgunittest
class TestGUMS(osgunittest.OSGTestCase):
def test_01_map_user(self):
core.skip_ok_unless_... |
256a86b9cfbf2f78fc913b87997dd89673d177c5 | custom/icds_reports/migrations/0070_ccsrecordmonthly_closed.py | custom/icds_reports/migrations/0070_ccsrecordmonthly_closed.py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.14 on 2018-09-11 14:35
from __future__ import unicode_literals
from __future__ import absolute_import
from django.db import migrations, models
from corehq.sql_db.operations import RawSQLMigration
from custom.icds_reports.utils.migrations import get_view_migrations
mi... | # -*- coding: utf-8 -*-
# Generated by Django 1.11.14 on 2018-09-11 14:35
from __future__ import unicode_literals
from __future__ import absolute_import
from django.db import migrations, models
from corehq.sql_db.operations import RawSQLMigration
from custom.icds_reports.utils.migrations import get_view_migrations
mi... | Remove adding field to View model | Remove adding field to View model
| Python | bsd-3-clause | dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq | # -*- coding: utf-8 -*-
# Generated by Django 1.11.14 on 2018-09-11 14:35
from __future__ import unicode_literals
from __future__ import absolute_import
from django.db import migrations, models
from corehq.sql_db.operations import RawSQLMigration
from custom.icds_reports.utils.migrations import get_view_migrations
mi... | # -*- coding: utf-8 -*-
# Generated by Django 1.11.14 on 2018-09-11 14:35
from __future__ import unicode_literals
from __future__ import absolute_import
from django.db import migrations, models
from corehq.sql_db.operations import RawSQLMigration
from custom.icds_reports.utils.migrations import get_view_migrations
mi... | <commit_before># -*- coding: utf-8 -*-
# Generated by Django 1.11.14 on 2018-09-11 14:35
from __future__ import unicode_literals
from __future__ import absolute_import
from django.db import migrations, models
from corehq.sql_db.operations import RawSQLMigration
from custom.icds_reports.utils.migrations import get_view... | # -*- coding: utf-8 -*-
# Generated by Django 1.11.14 on 2018-09-11 14:35
from __future__ import unicode_literals
from __future__ import absolute_import
from django.db import migrations, models
from corehq.sql_db.operations import RawSQLMigration
from custom.icds_reports.utils.migrations import get_view_migrations
mi... | # -*- coding: utf-8 -*-
# Generated by Django 1.11.14 on 2018-09-11 14:35
from __future__ import unicode_literals
from __future__ import absolute_import
from django.db import migrations, models
from corehq.sql_db.operations import RawSQLMigration
from custom.icds_reports.utils.migrations import get_view_migrations
mi... | <commit_before># -*- coding: utf-8 -*-
# Generated by Django 1.11.14 on 2018-09-11 14:35
from __future__ import unicode_literals
from __future__ import absolute_import
from django.db import migrations, models
from corehq.sql_db.operations import RawSQLMigration
from custom.icds_reports.utils.migrations import get_view... |
49c00236569d48f651bd8f2226907d5c784cbe77 | json262/json262.py | json262/json262.py | # -*- coding: utf-8 -*- | # -*- coding: utf-8 -*-
"""
Serialize data to/from JSON
Inspired by https://github.com/django/django/blob/master/django/core/serializers/json.py
"""
# Avoid shadowing the standard library json module
from __future__ import absolute_import
from __future__ import unicode_literals
import datetime
import decimal
import ... | Bring in encoder from webhooks. | Bring in encoder from webhooks.
| Python | bsd-3-clause | audreyr/standardjson,audreyr/standardjson | # -*- coding: utf-8 -*-Bring in encoder from webhooks. | # -*- coding: utf-8 -*-
"""
Serialize data to/from JSON
Inspired by https://github.com/django/django/blob/master/django/core/serializers/json.py
"""
# Avoid shadowing the standard library json module
from __future__ import absolute_import
from __future__ import unicode_literals
import datetime
import decimal
import ... | <commit_before># -*- coding: utf-8 -*-<commit_msg>Bring in encoder from webhooks.<commit_after> | # -*- coding: utf-8 -*-
"""
Serialize data to/from JSON
Inspired by https://github.com/django/django/blob/master/django/core/serializers/json.py
"""
# Avoid shadowing the standard library json module
from __future__ import absolute_import
from __future__ import unicode_literals
import datetime
import decimal
import ... | # -*- coding: utf-8 -*-Bring in encoder from webhooks.# -*- coding: utf-8 -*-
"""
Serialize data to/from JSON
Inspired by https://github.com/django/django/blob/master/django/core/serializers/json.py
"""
# Avoid shadowing the standard library json module
from __future__ import absolute_import
from __future__ import un... | <commit_before># -*- coding: utf-8 -*-<commit_msg>Bring in encoder from webhooks.<commit_after># -*- coding: utf-8 -*-
"""
Serialize data to/from JSON
Inspired by https://github.com/django/django/blob/master/django/core/serializers/json.py
"""
# Avoid shadowing the standard library json module
from __future__ import ... |
94b716142a575e73d906f332fda84d68b549d5cd | trove/tests/unittests/util/util.py | trove/tests/unittests/util/util.py | # Copyright 2012 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | # Copyright 2012 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | Fix concurrency issue with Python 3.4 test | Fix concurrency issue with Python 3.4 test
We have been seeing failures in parallel Py34
tests caused by the test database being set up more
than once.
The existing mechanism is not thread-safe.
Add a lock around the database setup to ensure
the it is ever executed by only one thread.
Partially implements: blueprint ... | Python | apache-2.0 | zhangg/trove,zhangg/trove,hplustree/trove,openstack/trove,openstack/trove,hplustree/trove | # Copyright 2012 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | # Copyright 2012 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | <commit_before># Copyright 2012 OpenStack Foundation
#
# 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 ... | # Copyright 2012 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | # Copyright 2012 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | <commit_before># Copyright 2012 OpenStack Foundation
#
# 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 ... |
a44c71cf25672606bd866014982b18836acc46ef | string/reverse.py | string/reverse.py | # Reverse each word in a sentence
def reverse_sentence(string, separator):
# string_list = string.split()
# flipped_list = string_list[::-1]
flipped_list = (string.split())[::-1] # split string into list and then reverse order of elements in list
output = separator.join(flipped_list)
print output
| # Reverse each word in a sentence
def reverse_sentence(string):
string_list = string.split() # split string by word into list
output = ' '.join([word[::-1] for word in string_list]) # reverse each element/word in list and consolidate into single string
print output
# test cases
test = "Hey dude!"
reverse_sentence... | Debug method and add test cases | Debug method and add test cases
| Python | mit | derekmpham/interview-prep,derekmpham/interview-prep | # Reverse each word in a sentence
def reverse_sentence(string, separator):
# string_list = string.split()
# flipped_list = string_list[::-1]
flipped_list = (string.split())[::-1] # split string into list and then reverse order of elements in list
output = separator.join(flipped_list)
print output
Debug method an... | # Reverse each word in a sentence
def reverse_sentence(string):
string_list = string.split() # split string by word into list
output = ' '.join([word[::-1] for word in string_list]) # reverse each element/word in list and consolidate into single string
print output
# test cases
test = "Hey dude!"
reverse_sentence... | <commit_before># Reverse each word in a sentence
def reverse_sentence(string, separator):
# string_list = string.split()
# flipped_list = string_list[::-1]
flipped_list = (string.split())[::-1] # split string into list and then reverse order of elements in list
output = separator.join(flipped_list)
print output
... | # Reverse each word in a sentence
def reverse_sentence(string):
string_list = string.split() # split string by word into list
output = ' '.join([word[::-1] for word in string_list]) # reverse each element/word in list and consolidate into single string
print output
# test cases
test = "Hey dude!"
reverse_sentence... | # Reverse each word in a sentence
def reverse_sentence(string, separator):
# string_list = string.split()
# flipped_list = string_list[::-1]
flipped_list = (string.split())[::-1] # split string into list and then reverse order of elements in list
output = separator.join(flipped_list)
print output
Debug method an... | <commit_before># Reverse each word in a sentence
def reverse_sentence(string, separator):
# string_list = string.split()
# flipped_list = string_list[::-1]
flipped_list = (string.split())[::-1] # split string into list and then reverse order of elements in list
output = separator.join(flipped_list)
print output
... |
641b1e0c78da6459a43516fc23c5dc388fe2d273 | swift/__init__.py | swift/__init__.py | import gettext
class Version(object):
def __init__(self, canonical_version, final):
self.canonical_version = canonical_version
self.final = final
@property
def pretty_version(self):
if self.final:
return self.canonical_version
else:
return '%s-dev' ... | import gettext
class Version(object):
def __init__(self, canonical_version, final):
self.canonical_version = canonical_version
self.final = final
@property
def pretty_version(self):
if self.final:
return self.canonical_version
else:
return '%s-dev' ... | Revert "version bump to 1.4.10" | Revert "version bump to 1.4.10"
This reverts commit e4ab8f004c0c4a8b631d0de77b72d85d5fdba221.
Change-Id: Id8262405acec0f13314f27fbac02bd3cded60789
| Python | apache-2.0 | eatbyte/Swift,prashanthpai/swift,notmyname/swift,matthewoliver/swift,Seagate/swift,bkolli/swift,prashanthpai/swift,smerritt/swift,Akanoa/swift,matthewoliver/swift,notmyname/swift,citrix-openstack-build/swift,dpgoetz/swift,larsbutler/swift,clayg/swift,iostackproject/IO-Bandwidth-Differentiation,mjzmjz/swift,daasbank/swi... | import gettext
class Version(object):
def __init__(self, canonical_version, final):
self.canonical_version = canonical_version
self.final = final
@property
def pretty_version(self):
if self.final:
return self.canonical_version
else:
return '%s-dev' ... | import gettext
class Version(object):
def __init__(self, canonical_version, final):
self.canonical_version = canonical_version
self.final = final
@property
def pretty_version(self):
if self.final:
return self.canonical_version
else:
return '%s-dev' ... | <commit_before>import gettext
class Version(object):
def __init__(self, canonical_version, final):
self.canonical_version = canonical_version
self.final = final
@property
def pretty_version(self):
if self.final:
return self.canonical_version
else:
r... | import gettext
class Version(object):
def __init__(self, canonical_version, final):
self.canonical_version = canonical_version
self.final = final
@property
def pretty_version(self):
if self.final:
return self.canonical_version
else:
return '%s-dev' ... | import gettext
class Version(object):
def __init__(self, canonical_version, final):
self.canonical_version = canonical_version
self.final = final
@property
def pretty_version(self):
if self.final:
return self.canonical_version
else:
return '%s-dev' ... | <commit_before>import gettext
class Version(object):
def __init__(self, canonical_version, final):
self.canonical_version = canonical_version
self.final = final
@property
def pretty_version(self):
if self.final:
return self.canonical_version
else:
r... |
d029c67f59ce65f9ad651b2e261e7f29ef8c2ca2 | sync_scheduler.py | sync_scheduler.py | from tapiriik.database import db
from tapiriik.messagequeue import mq
import kombu
from datetime import datetime
import time
channel = mq.channel()
exchange = kombu.Exchange("tapiriik-users", type="direct")(channel)
exchange.declare()
producer = kombu.Producer(channel, exchange)
while True:
queueing_at = datetime.ut... | from tapiriik.database import db
from tapiriik.messagequeue import mq
from tapiriik.sync import Sync
import kombu
from datetime import datetime
import time
Sync.InitializeWorkerBindings()
producer = kombu.Producer(Sync._channel, Sync._exchange)
while True:
queueing_at = datetime.utcnow()
users = db.users.find(
... | Declare relevant queues in sync scheduler | Declare relevant queues in sync scheduler
| Python | apache-2.0 | campbellr/tapiriik,niosus/tapiriik,dlenski/tapiriik,niosus/tapiriik,cmgrote/tapiriik,gavioto/tapiriik,cpfair/tapiriik,cpfair/tapiriik,abhijit86k/tapiriik,cheatos101/tapiriik,abhijit86k/tapiriik,niosus/tapiriik,cmgrote/tapiriik,dmschreiber/tapiriik,brunoflores/tapiriik,marxin/tapiriik,campbellr/tapiriik,cgourlay/tapirii... | from tapiriik.database import db
from tapiriik.messagequeue import mq
import kombu
from datetime import datetime
import time
channel = mq.channel()
exchange = kombu.Exchange("tapiriik-users", type="direct")(channel)
exchange.declare()
producer = kombu.Producer(channel, exchange)
while True:
queueing_at = datetime.ut... | from tapiriik.database import db
from tapiriik.messagequeue import mq
from tapiriik.sync import Sync
import kombu
from datetime import datetime
import time
Sync.InitializeWorkerBindings()
producer = kombu.Producer(Sync._channel, Sync._exchange)
while True:
queueing_at = datetime.utcnow()
users = db.users.find(
... | <commit_before>from tapiriik.database import db
from tapiriik.messagequeue import mq
import kombu
from datetime import datetime
import time
channel = mq.channel()
exchange = kombu.Exchange("tapiriik-users", type="direct")(channel)
exchange.declare()
producer = kombu.Producer(channel, exchange)
while True:
queueing_a... | from tapiriik.database import db
from tapiriik.messagequeue import mq
from tapiriik.sync import Sync
import kombu
from datetime import datetime
import time
Sync.InitializeWorkerBindings()
producer = kombu.Producer(Sync._channel, Sync._exchange)
while True:
queueing_at = datetime.utcnow()
users = db.users.find(
... | from tapiriik.database import db
from tapiriik.messagequeue import mq
import kombu
from datetime import datetime
import time
channel = mq.channel()
exchange = kombu.Exchange("tapiriik-users", type="direct")(channel)
exchange.declare()
producer = kombu.Producer(channel, exchange)
while True:
queueing_at = datetime.ut... | <commit_before>from tapiriik.database import db
from tapiriik.messagequeue import mq
import kombu
from datetime import datetime
import time
channel = mq.channel()
exchange = kombu.Exchange("tapiriik-users", type="direct")(channel)
exchange.declare()
producer = kombu.Producer(channel, exchange)
while True:
queueing_a... |
8322c776fe989d65f83beaefff5089716d0286e7 | test/test_pydh.py | test/test_pydh.py | import pyDH
def test_pydh_keygen():
d1 = pyDH.DiffieHellman()
d2 = pyDH.DiffieHellman()
d1_pubkey = d1.gen_public_key()
d2_pubkey = d2.gen_public_key()
d1_sharedkey = d1.gen_shared_key(d2_pubkey)
d2_sharedkey = d2.gen_shared_key(d1_pubkey)
assert d1_sharedkey == d2_sharedkey | import sys
sys.path.append('.')
import pyDH
def test_pydh_keygen():
d1 = pyDH.DiffieHellman()
d2 = pyDH.DiffieHellman()
d1_pubkey = d1.gen_public_key()
d2_pubkey = d2.gen_public_key()
d1_sharedkey = d1.gen_shared_key(d2_pubkey)
d2_sharedkey = d2.gen_shared_key(d1_pubkey)
assert d1_sharedkey... | Add current dir to Python path | Add current dir to Python path
| Python | apache-2.0 | amiralis/pyDH | import pyDH
def test_pydh_keygen():
d1 = pyDH.DiffieHellman()
d2 = pyDH.DiffieHellman()
d1_pubkey = d1.gen_public_key()
d2_pubkey = d2.gen_public_key()
d1_sharedkey = d1.gen_shared_key(d2_pubkey)
d2_sharedkey = d2.gen_shared_key(d1_pubkey)
assert d1_sharedkey == d2_sharedkeyAdd current dir ... | import sys
sys.path.append('.')
import pyDH
def test_pydh_keygen():
d1 = pyDH.DiffieHellman()
d2 = pyDH.DiffieHellman()
d1_pubkey = d1.gen_public_key()
d2_pubkey = d2.gen_public_key()
d1_sharedkey = d1.gen_shared_key(d2_pubkey)
d2_sharedkey = d2.gen_shared_key(d1_pubkey)
assert d1_sharedkey... | <commit_before>import pyDH
def test_pydh_keygen():
d1 = pyDH.DiffieHellman()
d2 = pyDH.DiffieHellman()
d1_pubkey = d1.gen_public_key()
d2_pubkey = d2.gen_public_key()
d1_sharedkey = d1.gen_shared_key(d2_pubkey)
d2_sharedkey = d2.gen_shared_key(d1_pubkey)
assert d1_sharedkey == d2_sharedkey<... | import sys
sys.path.append('.')
import pyDH
def test_pydh_keygen():
d1 = pyDH.DiffieHellman()
d2 = pyDH.DiffieHellman()
d1_pubkey = d1.gen_public_key()
d2_pubkey = d2.gen_public_key()
d1_sharedkey = d1.gen_shared_key(d2_pubkey)
d2_sharedkey = d2.gen_shared_key(d1_pubkey)
assert d1_sharedkey... | import pyDH
def test_pydh_keygen():
d1 = pyDH.DiffieHellman()
d2 = pyDH.DiffieHellman()
d1_pubkey = d1.gen_public_key()
d2_pubkey = d2.gen_public_key()
d1_sharedkey = d1.gen_shared_key(d2_pubkey)
d2_sharedkey = d2.gen_shared_key(d1_pubkey)
assert d1_sharedkey == d2_sharedkeyAdd current dir ... | <commit_before>import pyDH
def test_pydh_keygen():
d1 = pyDH.DiffieHellman()
d2 = pyDH.DiffieHellman()
d1_pubkey = d1.gen_public_key()
d2_pubkey = d2.gen_public_key()
d1_sharedkey = d1.gen_shared_key(d2_pubkey)
d2_sharedkey = d2.gen_shared_key(d1_pubkey)
assert d1_sharedkey == d2_sharedkey<... |
3b127af586ccfeb785a16ef432af8ce52c08a7e4 | web3/apps/request/urls.py | web3/apps/request/urls.py | from django.conf.urls import url
from . import views
urlpatterns = [
url("^$", views.request_view, name="request_site"),
url("^approve$", views.approve_view, name="approve_site"),
url("^admin$", views.approve_admin_view, name="admin_site")
]
| from django.conf.urls import url
from . import views
urlpatterns = [
url(r"^$", views.request_view, name="request_site"),
url(r"^approve$", views.approve_view, name="approve_site"),
url(r"^admin$", views.approve_admin_view, name="admin_site")
]
| Use r-strings for URL regexes | Use r-strings for URL regexes
| Python | mit | tjcsl/director,tjcsl/director,tjcsl/director,tjcsl/director | from django.conf.urls import url
from . import views
urlpatterns = [
url("^$", views.request_view, name="request_site"),
url("^approve$", views.approve_view, name="approve_site"),
url("^admin$", views.approve_admin_view, name="admin_site")
]
Use r-strings for URL regexes | from django.conf.urls import url
from . import views
urlpatterns = [
url(r"^$", views.request_view, name="request_site"),
url(r"^approve$", views.approve_view, name="approve_site"),
url(r"^admin$", views.approve_admin_view, name="admin_site")
]
| <commit_before>from django.conf.urls import url
from . import views
urlpatterns = [
url("^$", views.request_view, name="request_site"),
url("^approve$", views.approve_view, name="approve_site"),
url("^admin$", views.approve_admin_view, name="admin_site")
]
<commit_msg>Use r-strings for URL regexes<commit_... | from django.conf.urls import url
from . import views
urlpatterns = [
url(r"^$", views.request_view, name="request_site"),
url(r"^approve$", views.approve_view, name="approve_site"),
url(r"^admin$", views.approve_admin_view, name="admin_site")
]
| from django.conf.urls import url
from . import views
urlpatterns = [
url("^$", views.request_view, name="request_site"),
url("^approve$", views.approve_view, name="approve_site"),
url("^admin$", views.approve_admin_view, name="admin_site")
]
Use r-strings for URL regexesfrom django.conf.urls import url
f... | <commit_before>from django.conf.urls import url
from . import views
urlpatterns = [
url("^$", views.request_view, name="request_site"),
url("^approve$", views.approve_view, name="approve_site"),
url("^admin$", views.approve_admin_view, name="admin_site")
]
<commit_msg>Use r-strings for URL regexes<commit_... |
4e309e7f70760e400dc7150b34e7f86c4c5643b4 | golddust/packages.py | golddust/packages.py | # Copyright 2015-2017 John "LuaMilkshake" Marion
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | # Copyright 2015-2017 John "LuaMilkshake" Marion
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | Add munge_jar stub for InstallScript | Add munge_jar stub for InstallScript
| Python | apache-2.0 | Packeteers/GoldDust | # Copyright 2015-2017 John "LuaMilkshake" Marion
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | # Copyright 2015-2017 John "LuaMilkshake" Marion
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | <commit_before># Copyright 2015-2017 John "LuaMilkshake" Marion
#
# 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 2015-2017 John "LuaMilkshake" Marion
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | # Copyright 2015-2017 John "LuaMilkshake" Marion
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | <commit_before># Copyright 2015-2017 John "LuaMilkshake" Marion
#
# 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... |
4fb3ff629f88935a6dcd905f9268eb953b6ad7fb | src/syft/grid/client/request_api/group_api.py | src/syft/grid/client/request_api/group_api.py | # stdlib
from typing import Any
from typing import Dict
# third party
from pandas import DataFrame
# syft relative
from ...messages.group_messages import CreateGroupMessage
from ...messages.group_messages import DeleteGroupMessage
from ...messages.group_messages import GetGroupMessage
from ...messages.group_messages ... | # stdlib
from typing import Any
from typing import Callable
# syft relative
from ...messages.group_messages import CreateGroupMessage
from ...messages.group_messages import DeleteGroupMessage
from ...messages.group_messages import GetGroupMessage
from ...messages.group_messages import GetGroupsMessage
from ...messages... | Update Group API - ADD type hints - Remove unused imports | Update Group API
- ADD type hints
- Remove unused imports
| Python | apache-2.0 | OpenMined/PySyft,OpenMined/PySyft,OpenMined/PySyft,OpenMined/PySyft | # stdlib
from typing import Any
from typing import Dict
# third party
from pandas import DataFrame
# syft relative
from ...messages.group_messages import CreateGroupMessage
from ...messages.group_messages import DeleteGroupMessage
from ...messages.group_messages import GetGroupMessage
from ...messages.group_messages ... | # stdlib
from typing import Any
from typing import Callable
# syft relative
from ...messages.group_messages import CreateGroupMessage
from ...messages.group_messages import DeleteGroupMessage
from ...messages.group_messages import GetGroupMessage
from ...messages.group_messages import GetGroupsMessage
from ...messages... | <commit_before># stdlib
from typing import Any
from typing import Dict
# third party
from pandas import DataFrame
# syft relative
from ...messages.group_messages import CreateGroupMessage
from ...messages.group_messages import DeleteGroupMessage
from ...messages.group_messages import GetGroupMessage
from ...messages.... | # stdlib
from typing import Any
from typing import Callable
# syft relative
from ...messages.group_messages import CreateGroupMessage
from ...messages.group_messages import DeleteGroupMessage
from ...messages.group_messages import GetGroupMessage
from ...messages.group_messages import GetGroupsMessage
from ...messages... | # stdlib
from typing import Any
from typing import Dict
# third party
from pandas import DataFrame
# syft relative
from ...messages.group_messages import CreateGroupMessage
from ...messages.group_messages import DeleteGroupMessage
from ...messages.group_messages import GetGroupMessage
from ...messages.group_messages ... | <commit_before># stdlib
from typing import Any
from typing import Dict
# third party
from pandas import DataFrame
# syft relative
from ...messages.group_messages import CreateGroupMessage
from ...messages.group_messages import DeleteGroupMessage
from ...messages.group_messages import GetGroupMessage
from ...messages.... |
599760942e556c5d23deb0904beafcdf11235595 | stoneridge_reporter.py | stoneridge_reporter.py | #!/usr/bin/env python
# This Source Code Form is subject to the terms of the Mozilla Public License,
# v. 2.0. If a copy of the MPL was not distributed with this file, You can
# obtain one at http://mozilla.org/MPL/2.0/.
import glob
import os
import requests
import stoneridge
class StoneRidgeReporter(object):
de... | #!/usr/bin/env python
# This Source Code Form is subject to the terms of the Mozilla Public License,
# v. 2.0. If a copy of the MPL was not distributed with this file, You can
# obtain one at http://mozilla.org/MPL/2.0/.
import argparse
import glob
import os
import requests
import stoneridge
class StoneRidgeReporter... | Make reporter succeed in talking to the graph server | Make reporter succeed in talking to the graph server
| Python | mpl-2.0 | mozilla/stoneridge,mozilla/stoneridge,mozilla/stoneridge,mozilla/stoneridge,mozilla/stoneridge,mozilla/stoneridge,mozilla/stoneridge,mozilla/stoneridge | #!/usr/bin/env python
# This Source Code Form is subject to the terms of the Mozilla Public License,
# v. 2.0. If a copy of the MPL was not distributed with this file, You can
# obtain one at http://mozilla.org/MPL/2.0/.
import glob
import os
import requests
import stoneridge
class StoneRidgeReporter(object):
de... | #!/usr/bin/env python
# This Source Code Form is subject to the terms of the Mozilla Public License,
# v. 2.0. If a copy of the MPL was not distributed with this file, You can
# obtain one at http://mozilla.org/MPL/2.0/.
import argparse
import glob
import os
import requests
import stoneridge
class StoneRidgeReporter... | <commit_before>#!/usr/bin/env python
# This Source Code Form is subject to the terms of the Mozilla Public License,
# v. 2.0. If a copy of the MPL was not distributed with this file, You can
# obtain one at http://mozilla.org/MPL/2.0/.
import glob
import os
import requests
import stoneridge
class StoneRidgeReporter(... | #!/usr/bin/env python
# This Source Code Form is subject to the terms of the Mozilla Public License,
# v. 2.0. If a copy of the MPL was not distributed with this file, You can
# obtain one at http://mozilla.org/MPL/2.0/.
import argparse
import glob
import os
import requests
import stoneridge
class StoneRidgeReporter... | #!/usr/bin/env python
# This Source Code Form is subject to the terms of the Mozilla Public License,
# v. 2.0. If a copy of the MPL was not distributed with this file, You can
# obtain one at http://mozilla.org/MPL/2.0/.
import glob
import os
import requests
import stoneridge
class StoneRidgeReporter(object):
de... | <commit_before>#!/usr/bin/env python
# This Source Code Form is subject to the terms of the Mozilla Public License,
# v. 2.0. If a copy of the MPL was not distributed with this file, You can
# obtain one at http://mozilla.org/MPL/2.0/.
import glob
import os
import requests
import stoneridge
class StoneRidgeReporter(... |
101e50f1e668169836a5f253c938420f3675fb16 | jesusmtnez/python/kata/game.py | jesusmtnez/python/kata/game.py | class Game():
def __init__(self):
self._score = 0
def roll(self, pins):
self._score += pins
def score(self):
return self._score
| class Game():
def __init__(self):
self._rolls = [0] * 21
self._current_roll = 0
def roll(self, pins):
self._rolls[self._current_roll] += pins
self._current_roll += 1
def score(self):
score = 0
for frame in range(0, 20, 2):
if self._is_spare(frame... | Add 'spare' support in when calculating scores | [Python] Add 'spare' support in when calculating scores
| Python | mit | JesusMtnez/devexperto-challenge,JesusMtnez/devexperto-challenge | class Game():
def __init__(self):
self._score = 0
def roll(self, pins):
self._score += pins
def score(self):
return self._score
[Python] Add 'spare' support in when calculating scores | class Game():
def __init__(self):
self._rolls = [0] * 21
self._current_roll = 0
def roll(self, pins):
self._rolls[self._current_roll] += pins
self._current_roll += 1
def score(self):
score = 0
for frame in range(0, 20, 2):
if self._is_spare(frame... | <commit_before>class Game():
def __init__(self):
self._score = 0
def roll(self, pins):
self._score += pins
def score(self):
return self._score
<commit_msg>[Python] Add 'spare' support in when calculating scores<commit_after> | class Game():
def __init__(self):
self._rolls = [0] * 21
self._current_roll = 0
def roll(self, pins):
self._rolls[self._current_roll] += pins
self._current_roll += 1
def score(self):
score = 0
for frame in range(0, 20, 2):
if self._is_spare(frame... | class Game():
def __init__(self):
self._score = 0
def roll(self, pins):
self._score += pins
def score(self):
return self._score
[Python] Add 'spare' support in when calculating scoresclass Game():
def __init__(self):
self._rolls = [0] * 21
self._current_roll = 0... | <commit_before>class Game():
def __init__(self):
self._score = 0
def roll(self, pins):
self._score += pins
def score(self):
return self._score
<commit_msg>[Python] Add 'spare' support in when calculating scores<commit_after>class Game():
def __init__(self):
self._rolls ... |
2060cf215d851f86ae8c2766b4a2985c9a37cfae | temba/flows/migrations/0056_indexes_update.py | temba/flows/migrations/0056_indexes_update.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations
INDEX_SQL = """
CREATE INDEX flows_flowrun_org_modified_id
ON flows_flowrun (org_id, modified_on DESC, id DESC);
DROP INDEX IF EXISTS flows_flowrun_org_id_modified_on;
CREATE INDEX flows_flowrun_org_responded_modified_... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations
INDEX_SQL = """
CREATE INDEX flows_flowrun_org_modified_id
ON flows_flowrun (org_id, modified_on DESC, id DESC);
DROP INDEX IF EXISTS flows_flowrun_org_id_modified_on;
CREATE INDEX flows_flowrun_org_modified_id_where_r... | Revert "index on flow run responded field as well" | Revert "index on flow run responded field as well"
This reverts commit cbbac0f0f23f6e0ad3ce15a784aad30a82a2fe5a.
| Python | agpl-3.0 | ewheeler/rapidpro,tsotetsi/textily-web,tsotetsi/textily-web,pulilab/rapidpro,tsotetsi/textily-web,tsotetsi/textily-web,tsotetsi/textily-web,pulilab/rapidpro,ewheeler/rapidpro,pulilab/rapidpro,pulilab/rapidpro,ewheeler/rapidpro,pulilab/rapidpro,ewheeler/rapidpro | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations
INDEX_SQL = """
CREATE INDEX flows_flowrun_org_modified_id
ON flows_flowrun (org_id, modified_on DESC, id DESC);
DROP INDEX IF EXISTS flows_flowrun_org_id_modified_on;
CREATE INDEX flows_flowrun_org_responded_modified_... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations
INDEX_SQL = """
CREATE INDEX flows_flowrun_org_modified_id
ON flows_flowrun (org_id, modified_on DESC, id DESC);
DROP INDEX IF EXISTS flows_flowrun_org_id_modified_on;
CREATE INDEX flows_flowrun_org_modified_id_where_r... | <commit_before># -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations
INDEX_SQL = """
CREATE INDEX flows_flowrun_org_modified_id
ON flows_flowrun (org_id, modified_on DESC, id DESC);
DROP INDEX IF EXISTS flows_flowrun_org_id_modified_on;
CREATE INDEX flows_flowrun_org_resp... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations
INDEX_SQL = """
CREATE INDEX flows_flowrun_org_modified_id
ON flows_flowrun (org_id, modified_on DESC, id DESC);
DROP INDEX IF EXISTS flows_flowrun_org_id_modified_on;
CREATE INDEX flows_flowrun_org_modified_id_where_r... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations
INDEX_SQL = """
CREATE INDEX flows_flowrun_org_modified_id
ON flows_flowrun (org_id, modified_on DESC, id DESC);
DROP INDEX IF EXISTS flows_flowrun_org_id_modified_on;
CREATE INDEX flows_flowrun_org_responded_modified_... | <commit_before># -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations
INDEX_SQL = """
CREATE INDEX flows_flowrun_org_modified_id
ON flows_flowrun (org_id, modified_on DESC, id DESC);
DROP INDEX IF EXISTS flows_flowrun_org_id_modified_on;
CREATE INDEX flows_flowrun_org_resp... |
1f5d52f18df2fba70b53acd681ebb381f532adff | tests/conftest.py | tests/conftest.py | """ Fixtures in this file are available to all files automatically, no
importing required. Only put general purpose fixtures here!
"""
import pytest
import os
from shutil import rmtree
TEST_CONFIG = os.path.join(
os.path.dirname(os.path.realpath(__file__)),
'config.cfg')
@pytest.fixture(scope='se... | """ Fixtures in this file are available to all files automatically, no
importing required. Only put general purpose fixtures here!
"""
import pytest
import os
from shutil import rmtree
TEST_CONFIG = os.path.join(
os.path.dirname(os.path.realpath(__file__)),
'config.cfg')
@pytest.fixture(scope='se... | Document expected behaviour instead of leaving XXX comment | Document expected behaviour instead of leaving XXX comment
| Python | agpl-3.0 | wakermahmud/sync-engine,ErinCall/sync-engine,nylas/sync-engine,Eagles2F/sync-engine,EthanBlackburn/sync-engine,closeio/nylas,nylas/sync-engine,PriviPK/privipk-sync-engine,ErinCall/sync-engine,ErinCall/sync-engine,Eagles2F/sync-engine,gale320/sync-engine,EthanBlackburn/sync-engine,ErinCall/sync-engine,EthanBlackburn/syn... | """ Fixtures in this file are available to all files automatically, no
importing required. Only put general purpose fixtures here!
"""
import pytest
import os
from shutil import rmtree
TEST_CONFIG = os.path.join(
os.path.dirname(os.path.realpath(__file__)),
'config.cfg')
@pytest.fixture(scope='se... | """ Fixtures in this file are available to all files automatically, no
importing required. Only put general purpose fixtures here!
"""
import pytest
import os
from shutil import rmtree
TEST_CONFIG = os.path.join(
os.path.dirname(os.path.realpath(__file__)),
'config.cfg')
@pytest.fixture(scope='se... | <commit_before>""" Fixtures in this file are available to all files automatically, no
importing required. Only put general purpose fixtures here!
"""
import pytest
import os
from shutil import rmtree
TEST_CONFIG = os.path.join(
os.path.dirname(os.path.realpath(__file__)),
'config.cfg')
@pytest.fi... | """ Fixtures in this file are available to all files automatically, no
importing required. Only put general purpose fixtures here!
"""
import pytest
import os
from shutil import rmtree
TEST_CONFIG = os.path.join(
os.path.dirname(os.path.realpath(__file__)),
'config.cfg')
@pytest.fixture(scope='se... | """ Fixtures in this file are available to all files automatically, no
importing required. Only put general purpose fixtures here!
"""
import pytest
import os
from shutil import rmtree
TEST_CONFIG = os.path.join(
os.path.dirname(os.path.realpath(__file__)),
'config.cfg')
@pytest.fixture(scope='se... | <commit_before>""" Fixtures in this file are available to all files automatically, no
importing required. Only put general purpose fixtures here!
"""
import pytest
import os
from shutil import rmtree
TEST_CONFIG = os.path.join(
os.path.dirname(os.path.realpath(__file__)),
'config.cfg')
@pytest.fi... |
f17611b39c9cc3ec6815093db2eb85cb6b30b5ba | lwr/lwr_client/transport/standard.py | lwr/lwr_client/transport/standard.py | """
LWR HTTP Client layer based on Python Standard Library (urllib2)
"""
from __future__ import with_statement
from os.path import getsize
import mmap
try:
from urllib2 import urlopen
except ImportError:
from urllib.request import urlopen
try:
from urllib2 import Request
except ImportError:
from urllib.... | """
LWR HTTP Client layer based on Python Standard Library (urllib2)
"""
from __future__ import with_statement
from os.path import getsize
import mmap
try:
from urllib2 import urlopen
except ImportError:
from urllib.request import urlopen
try:
from urllib2 import Request
except ImportError:
from urllib.... | Fix small bug introduced in 0b8e5d428e60. | Fix small bug introduced in 0b8e5d428e60.
Opening file twice.
| Python | apache-2.0 | jmchilton/pulsar,natefoo/pulsar,ssorgatem/pulsar,jmchilton/lwr,galaxyproject/pulsar,jmchilton/pulsar,ssorgatem/pulsar,galaxyproject/pulsar,natefoo/pulsar,jmchilton/lwr | """
LWR HTTP Client layer based on Python Standard Library (urllib2)
"""
from __future__ import with_statement
from os.path import getsize
import mmap
try:
from urllib2 import urlopen
except ImportError:
from urllib.request import urlopen
try:
from urllib2 import Request
except ImportError:
from urllib.... | """
LWR HTTP Client layer based on Python Standard Library (urllib2)
"""
from __future__ import with_statement
from os.path import getsize
import mmap
try:
from urllib2 import urlopen
except ImportError:
from urllib.request import urlopen
try:
from urllib2 import Request
except ImportError:
from urllib.... | <commit_before>"""
LWR HTTP Client layer based on Python Standard Library (urllib2)
"""
from __future__ import with_statement
from os.path import getsize
import mmap
try:
from urllib2 import urlopen
except ImportError:
from urllib.request import urlopen
try:
from urllib2 import Request
except ImportError:
... | """
LWR HTTP Client layer based on Python Standard Library (urllib2)
"""
from __future__ import with_statement
from os.path import getsize
import mmap
try:
from urllib2 import urlopen
except ImportError:
from urllib.request import urlopen
try:
from urllib2 import Request
except ImportError:
from urllib.... | """
LWR HTTP Client layer based on Python Standard Library (urllib2)
"""
from __future__ import with_statement
from os.path import getsize
import mmap
try:
from urllib2 import urlopen
except ImportError:
from urllib.request import urlopen
try:
from urllib2 import Request
except ImportError:
from urllib.... | <commit_before>"""
LWR HTTP Client layer based on Python Standard Library (urllib2)
"""
from __future__ import with_statement
from os.path import getsize
import mmap
try:
from urllib2 import urlopen
except ImportError:
from urllib.request import urlopen
try:
from urllib2 import Request
except ImportError:
... |
0858cd463d4e6179e3bf4abbfa94cc54fb0600db | test/integration/test_node_propagation.py | test/integration/test_node_propagation.py | class TestPropagation(object):
def test_node_propagation(self):
"""
Tests that check node propagation
1) Spin up four servers.
2) Make the first one send a sync request to all three others.
3) Count the numbers of requests made.
4) Check databases to see that they al... | from kitten.server import KittenServer
from gevent.pool import Group
from mock import MagicMock
class TestPropagation(object):
def setup_method(self, method):
self.servers = Group()
for port in range(4):
ns = MagicMock()
ns.port = 9812 + port
server = Kitten... | Add setup to first integration test | Add setup to first integration test
| Python | mit | thiderman/network-kitten | class TestPropagation(object):
def test_node_propagation(self):
"""
Tests that check node propagation
1) Spin up four servers.
2) Make the first one send a sync request to all three others.
3) Count the numbers of requests made.
4) Check databases to see that they al... | from kitten.server import KittenServer
from gevent.pool import Group
from mock import MagicMock
class TestPropagation(object):
def setup_method(self, method):
self.servers = Group()
for port in range(4):
ns = MagicMock()
ns.port = 9812 + port
server = Kitten... | <commit_before>class TestPropagation(object):
def test_node_propagation(self):
"""
Tests that check node propagation
1) Spin up four servers.
2) Make the first one send a sync request to all three others.
3) Count the numbers of requests made.
4) Check databases to s... | from kitten.server import KittenServer
from gevent.pool import Group
from mock import MagicMock
class TestPropagation(object):
def setup_method(self, method):
self.servers = Group()
for port in range(4):
ns = MagicMock()
ns.port = 9812 + port
server = Kitten... | class TestPropagation(object):
def test_node_propagation(self):
"""
Tests that check node propagation
1) Spin up four servers.
2) Make the first one send a sync request to all three others.
3) Count the numbers of requests made.
4) Check databases to see that they al... | <commit_before>class TestPropagation(object):
def test_node_propagation(self):
"""
Tests that check node propagation
1) Spin up four servers.
2) Make the first one send a sync request to all three others.
3) Count the numbers of requests made.
4) Check databases to s... |
4c655c31bf9625fe426c8b481afba41fe328494d | metaci/api/renderers/csv_renderer.py | metaci/api/renderers/csv_renderer.py | # I started here: https://www.django-rest-framework.org/api-guide/renderers/#example
from rest_framework import renderers
import unicodecsv as csv
import io
import logging
logger = logging.getLogger(__name__)
class SimpleCSVRenderer(renderers.BaseRenderer):
"""Renders simple 1-level-deep data as csv"""
med... | # I started here: https://www.django-rest-framework.org/api-guide/renderers/#example
import csv
import io
import logging
from rest_framework import renderers
logger = logging.getLogger(__name__)
class SimpleCSVRenderer(renderers.BaseRenderer):
"""Renders simple 1-level-deep data as csv"""
media_type = "te... | Remove dependency on unicodecsv module | Remove dependency on unicodecsv module
| Python | bsd-3-clause | SalesforceFoundation/mrbelvedereci,SalesforceFoundation/mrbelvedereci,SalesforceFoundation/mrbelvedereci,SalesforceFoundation/mrbelvedereci | # I started here: https://www.django-rest-framework.org/api-guide/renderers/#example
from rest_framework import renderers
import unicodecsv as csv
import io
import logging
logger = logging.getLogger(__name__)
class SimpleCSVRenderer(renderers.BaseRenderer):
"""Renders simple 1-level-deep data as csv"""
med... | # I started here: https://www.django-rest-framework.org/api-guide/renderers/#example
import csv
import io
import logging
from rest_framework import renderers
logger = logging.getLogger(__name__)
class SimpleCSVRenderer(renderers.BaseRenderer):
"""Renders simple 1-level-deep data as csv"""
media_type = "te... | <commit_before># I started here: https://www.django-rest-framework.org/api-guide/renderers/#example
from rest_framework import renderers
import unicodecsv as csv
import io
import logging
logger = logging.getLogger(__name__)
class SimpleCSVRenderer(renderers.BaseRenderer):
"""Renders simple 1-level-deep data as ... | # I started here: https://www.django-rest-framework.org/api-guide/renderers/#example
import csv
import io
import logging
from rest_framework import renderers
logger = logging.getLogger(__name__)
class SimpleCSVRenderer(renderers.BaseRenderer):
"""Renders simple 1-level-deep data as csv"""
media_type = "te... | # I started here: https://www.django-rest-framework.org/api-guide/renderers/#example
from rest_framework import renderers
import unicodecsv as csv
import io
import logging
logger = logging.getLogger(__name__)
class SimpleCSVRenderer(renderers.BaseRenderer):
"""Renders simple 1-level-deep data as csv"""
med... | <commit_before># I started here: https://www.django-rest-framework.org/api-guide/renderers/#example
from rest_framework import renderers
import unicodecsv as csv
import io
import logging
logger = logging.getLogger(__name__)
class SimpleCSVRenderer(renderers.BaseRenderer):
"""Renders simple 1-level-deep data as ... |
b87da7d5666fc5dc3654d9f58779b8f58a3e6e9f | sft/sim/SimplePathWorldGenerator.py | sft/sim/SimplePathWorldGenerator.py | from sim.PathWorldGenerator import PathWorldGenerator
class SimplePathWorldGenerator(PathWorldGenerator):
def __init__(self, logger, view_size, world_size, sampler, path_in_init_view=False,
target_not_in_init_view=False):
# enforce simple paths consisting of one step, i.e. straight lines
super(SimplePathWo... | from sft.sim.PathWorldGenerator import PathWorldGenerator
class SimplePathWorldGenerator(PathWorldGenerator):
def __init__(self, logger, view_size, world_size, sampler, path_in_init_view=False,
target_not_in_init_view=False):
# enforce simple paths consisting of one step, i.e. straight lines
super(SimplePa... | Improve trainer logging and print every logged message to console | Improve trainer logging and print every logged message to console
| Python | mit | kevinkepp/search-for-this | from sim.PathWorldGenerator import PathWorldGenerator
class SimplePathWorldGenerator(PathWorldGenerator):
def __init__(self, logger, view_size, world_size, sampler, path_in_init_view=False,
target_not_in_init_view=False):
# enforce simple paths consisting of one step, i.e. straight lines
super(SimplePathWo... | from sft.sim.PathWorldGenerator import PathWorldGenerator
class SimplePathWorldGenerator(PathWorldGenerator):
def __init__(self, logger, view_size, world_size, sampler, path_in_init_view=False,
target_not_in_init_view=False):
# enforce simple paths consisting of one step, i.e. straight lines
super(SimplePa... | <commit_before>from sim.PathWorldGenerator import PathWorldGenerator
class SimplePathWorldGenerator(PathWorldGenerator):
def __init__(self, logger, view_size, world_size, sampler, path_in_init_view=False,
target_not_in_init_view=False):
# enforce simple paths consisting of one step, i.e. straight lines
sup... | from sft.sim.PathWorldGenerator import PathWorldGenerator
class SimplePathWorldGenerator(PathWorldGenerator):
def __init__(self, logger, view_size, world_size, sampler, path_in_init_view=False,
target_not_in_init_view=False):
# enforce simple paths consisting of one step, i.e. straight lines
super(SimplePa... | from sim.PathWorldGenerator import PathWorldGenerator
class SimplePathWorldGenerator(PathWorldGenerator):
def __init__(self, logger, view_size, world_size, sampler, path_in_init_view=False,
target_not_in_init_view=False):
# enforce simple paths consisting of one step, i.e. straight lines
super(SimplePathWo... | <commit_before>from sim.PathWorldGenerator import PathWorldGenerator
class SimplePathWorldGenerator(PathWorldGenerator):
def __init__(self, logger, view_size, world_size, sampler, path_in_init_view=False,
target_not_in_init_view=False):
# enforce simple paths consisting of one step, i.e. straight lines
sup... |
5694209065b707e2529b7c8b97b1c82a3990c938 | lithium/ximport.py | lithium/ximport.py | import os
import sys
def importRelativeOrAbsolute(f):
# maybe there's a way to do this more sanely with the |imp| module...
if f.endswith(".py"):
f = f[:-3]
if f.endswith(".pyc"):
f = f[:-4]
p, f = os.path.split(f)
if p:
# Add the path part of the given filename to the impor... | import os
import sys
def importRelativeOrAbsolute(f):
# maybe there's a way to do this more sanely with the |imp| module...
if f.endswith(".py"):
f = f[:-3]
if f.endswith(".pyc"):
f = f[:-4]
p, f = os.path.split(f)
if p:
# Add the path part of the given filename to the impor... | Make it work in Python < 2.6 | Make it work in Python < 2.6
| Python | mpl-2.0 | nth10sd/lithium,MozillaSecurity/lithium,MozillaSecurity/lithium,nth10sd/lithium | import os
import sys
def importRelativeOrAbsolute(f):
# maybe there's a way to do this more sanely with the |imp| module...
if f.endswith(".py"):
f = f[:-3]
if f.endswith(".pyc"):
f = f[:-4]
p, f = os.path.split(f)
if p:
# Add the path part of the given filename to the impor... | import os
import sys
def importRelativeOrAbsolute(f):
# maybe there's a way to do this more sanely with the |imp| module...
if f.endswith(".py"):
f = f[:-3]
if f.endswith(".pyc"):
f = f[:-4]
p, f = os.path.split(f)
if p:
# Add the path part of the given filename to the impor... | <commit_before>import os
import sys
def importRelativeOrAbsolute(f):
# maybe there's a way to do this more sanely with the |imp| module...
if f.endswith(".py"):
f = f[:-3]
if f.endswith(".pyc"):
f = f[:-4]
p, f = os.path.split(f)
if p:
# Add the path part of the given filena... | import os
import sys
def importRelativeOrAbsolute(f):
# maybe there's a way to do this more sanely with the |imp| module...
if f.endswith(".py"):
f = f[:-3]
if f.endswith(".pyc"):
f = f[:-4]
p, f = os.path.split(f)
if p:
# Add the path part of the given filename to the impor... | import os
import sys
def importRelativeOrAbsolute(f):
# maybe there's a way to do this more sanely with the |imp| module...
if f.endswith(".py"):
f = f[:-3]
if f.endswith(".pyc"):
f = f[:-4]
p, f = os.path.split(f)
if p:
# Add the path part of the given filename to the impor... | <commit_before>import os
import sys
def importRelativeOrAbsolute(f):
# maybe there's a way to do this more sanely with the |imp| module...
if f.endswith(".py"):
f = f[:-3]
if f.endswith(".pyc"):
f = f[:-4]
p, f = os.path.split(f)
if p:
# Add the path part of the given filena... |
f1f18b6b996d2bcf108bf7b594d0fdf4dab23057 | timpani/themes.py | timpani/themes.py | import os
import os.path
from . import database
THEME_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), "../themes"))
def getCurrentTheme():
databaseConnection = database.ConnectionManager.getConnection("main")
query = (databaseConnection.session
.query(database.tables.Setting)
.filter(database.tab... | import os
import os.path
from . import database
THEME_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), "../themes"))
def getCurrentTheme():
databaseConnection = database.ConnectionManager.getConnection("main")
query = (databaseConnection.session
.query(database.tables.Setting)
.filter(database.tab... | Add cases for either CSS or template not existing | Add cases for either CSS or template not existing
| Python | mit | ollien/Timpani,ollien/Timpani,ollien/Timpani | import os
import os.path
from . import database
THEME_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), "../themes"))
def getCurrentTheme():
databaseConnection = database.ConnectionManager.getConnection("main")
query = (databaseConnection.session
.query(database.tables.Setting)
.filter(database.tab... | import os
import os.path
from . import database
THEME_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), "../themes"))
def getCurrentTheme():
databaseConnection = database.ConnectionManager.getConnection("main")
query = (databaseConnection.session
.query(database.tables.Setting)
.filter(database.tab... | <commit_before>import os
import os.path
from . import database
THEME_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), "../themes"))
def getCurrentTheme():
databaseConnection = database.ConnectionManager.getConnection("main")
query = (databaseConnection.session
.query(database.tables.Setting)
.filt... | import os
import os.path
from . import database
THEME_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), "../themes"))
def getCurrentTheme():
databaseConnection = database.ConnectionManager.getConnection("main")
query = (databaseConnection.session
.query(database.tables.Setting)
.filter(database.tab... | import os
import os.path
from . import database
THEME_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), "../themes"))
def getCurrentTheme():
databaseConnection = database.ConnectionManager.getConnection("main")
query = (databaseConnection.session
.query(database.tables.Setting)
.filter(database.tab... | <commit_before>import os
import os.path
from . import database
THEME_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), "../themes"))
def getCurrentTheme():
databaseConnection = database.ConnectionManager.getConnection("main")
query = (databaseConnection.session
.query(database.tables.Setting)
.filt... |
f5aa51a57e3d161c12d8b8390e6e6aab7609b459 | readthedocs/projects/feeds.py | readthedocs/projects/feeds.py | from django.contrib.syndication.views import Feed
from django.db.models import Max
from projects.models import Project
class LatestProjectsFeed(Feed):
title = "Recently updated documentation"
link = "http://readthedocs.org"
description = "Recently updated documentation on Read the Docs"
def items(sel... | from django.contrib.syndication.views import Feed
from django.db.models import Max
from projects.models import Project
class LatestProjectsFeed(Feed):
title = "Recently updated documentation"
link = "http://readthedocs.org"
description = "Recently updated documentation on Read the Docs"
def items(sel... | Make the RSS feed not slow. | Make the RSS feed not slow.
| Python | mit | VishvajitP/readthedocs.org,soulshake/readthedocs.org,agjohnson/readthedocs.org,attakei/readthedocs-oauth,nikolas/readthedocs.org,pombredanne/readthedocs.org,michaelmcandrew/readthedocs.org,laplaceliu/readthedocs.org,takluyver/readthedocs.org,atsuyim/readthedocs.org,mrshoki/readthedocs.org,d0ugal/readthedocs.org,asampat... | from django.contrib.syndication.views import Feed
from django.db.models import Max
from projects.models import Project
class LatestProjectsFeed(Feed):
title = "Recently updated documentation"
link = "http://readthedocs.org"
description = "Recently updated documentation on Read the Docs"
def items(sel... | from django.contrib.syndication.views import Feed
from django.db.models import Max
from projects.models import Project
class LatestProjectsFeed(Feed):
title = "Recently updated documentation"
link = "http://readthedocs.org"
description = "Recently updated documentation on Read the Docs"
def items(sel... | <commit_before>from django.contrib.syndication.views import Feed
from django.db.models import Max
from projects.models import Project
class LatestProjectsFeed(Feed):
title = "Recently updated documentation"
link = "http://readthedocs.org"
description = "Recently updated documentation on Read the Docs"
... | from django.contrib.syndication.views import Feed
from django.db.models import Max
from projects.models import Project
class LatestProjectsFeed(Feed):
title = "Recently updated documentation"
link = "http://readthedocs.org"
description = "Recently updated documentation on Read the Docs"
def items(sel... | from django.contrib.syndication.views import Feed
from django.db.models import Max
from projects.models import Project
class LatestProjectsFeed(Feed):
title = "Recently updated documentation"
link = "http://readthedocs.org"
description = "Recently updated documentation on Read the Docs"
def items(sel... | <commit_before>from django.contrib.syndication.views import Feed
from django.db.models import Max
from projects.models import Project
class LatestProjectsFeed(Feed):
title = "Recently updated documentation"
link = "http://readthedocs.org"
description = "Recently updated documentation on Read the Docs"
... |
29316060fb422a881833e411350e0149575bf1c4 | update-database/stackdoc/namespaces/python.py | update-database/stackdoc/namespaces/python.py | import re
import urllib
############### Functions called by stackdoc
def get_version():
return 1
def get_ids(title, body, tags):
ids = []
if "http://docs.python.org/" in body:
urls = re.findall(r'<a href="([^"]+)"', body)
for url in urls:
m = re.match("http://docs.python.org/... | import re
import urllib
############### Functions called by stackdoc
def get_version():
return 2
def get_ids(title, body, tags):
ids = []
if "http://docs.python.org/" in body or "http://www.python.org/doc/" in body:
urls = re.findall(r'<a href="([^"]+)"', body)
for url in urls:
... | Support old style Python doc links. | Support old style Python doc links.
| Python | bsd-3-clause | alnorth/stackdoc,alnorth/stackdoc,alnorth/stackdoc | import re
import urllib
############### Functions called by stackdoc
def get_version():
return 1
def get_ids(title, body, tags):
ids = []
if "http://docs.python.org/" in body:
urls = re.findall(r'<a href="([^"]+)"', body)
for url in urls:
m = re.match("http://docs.python.org/... | import re
import urllib
############### Functions called by stackdoc
def get_version():
return 2
def get_ids(title, body, tags):
ids = []
if "http://docs.python.org/" in body or "http://www.python.org/doc/" in body:
urls = re.findall(r'<a href="([^"]+)"', body)
for url in urls:
... | <commit_before>import re
import urllib
############### Functions called by stackdoc
def get_version():
return 1
def get_ids(title, body, tags):
ids = []
if "http://docs.python.org/" in body:
urls = re.findall(r'<a href="([^"]+)"', body)
for url in urls:
m = re.match("http://d... | import re
import urllib
############### Functions called by stackdoc
def get_version():
return 2
def get_ids(title, body, tags):
ids = []
if "http://docs.python.org/" in body or "http://www.python.org/doc/" in body:
urls = re.findall(r'<a href="([^"]+)"', body)
for url in urls:
... | import re
import urllib
############### Functions called by stackdoc
def get_version():
return 1
def get_ids(title, body, tags):
ids = []
if "http://docs.python.org/" in body:
urls = re.findall(r'<a href="([^"]+)"', body)
for url in urls:
m = re.match("http://docs.python.org/... | <commit_before>import re
import urllib
############### Functions called by stackdoc
def get_version():
return 1
def get_ids(title, body, tags):
ids = []
if "http://docs.python.org/" in body:
urls = re.findall(r'<a href="([^"]+)"', body)
for url in urls:
m = re.match("http://d... |
f19d4eaec9681192eb761758b1506638b78a5e15 | tests/__init__.py | tests/__init__.py | import inspect
import os
# Get testdata absolute path.
abs_path = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
path = abs_path + "/testdata"
| import inspect
import os
# Get testdata absolute path.
abs_path = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
#path = abs_path + "/testdata"
path = "./testdata"
| Change the testdata path to relative path. | Change the testdata path to relative path.
| Python | mit | PytLab/VASPy,PytLab/VASPy | import inspect
import os
# Get testdata absolute path.
abs_path = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
path = abs_path + "/testdata"
Change the testdata path to relative path. | import inspect
import os
# Get testdata absolute path.
abs_path = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
#path = abs_path + "/testdata"
path = "./testdata"
| <commit_before>import inspect
import os
# Get testdata absolute path.
abs_path = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
path = abs_path + "/testdata"
<commit_msg>Change the testdata path to relative path.<commit_after> | import inspect
import os
# Get testdata absolute path.
abs_path = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
#path = abs_path + "/testdata"
path = "./testdata"
| import inspect
import os
# Get testdata absolute path.
abs_path = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
path = abs_path + "/testdata"
Change the testdata path to relative path.import inspect
import os
# Get testdata absolute path.
abs_path = os.path.dirname(os.path.abspath(inspect... | <commit_before>import inspect
import os
# Get testdata absolute path.
abs_path = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
path = abs_path + "/testdata"
<commit_msg>Change the testdata path to relative path.<commit_after>import inspect
import os
# Get testdata absolute path.
abs_path ... |
4ce674ea3a672c2819112b5237319000e33f22c5 | marten/__init__.py | marten/__init__.py | """Stupid simple Python configuration environments"""
from __future__ import absolute_import
import os as _os
__version__ = '0.6.0'
_os.environ.setdefault('MARTEN_ENV', 'default')
try:
from .util import get_config_from_env as _get_config
except ImportError:
config = None
else:
config = _get_config()
| """Stupid simple Python configuration environments"""
from __future__ import absolute_import
from marten import loaded_configs
import os as _os
__version__ = '0.6.1'
_os.environ.setdefault('MARTEN_ENV', 'default')
try:
from .util import get_config_from_env as _get_config
except ImportError:
config = None
else... | Add explicit import for loaded_configs namespace to fix RuntimeWarning | Add explicit import for loaded_configs namespace to fix RuntimeWarning
| Python | mit | nick-allen/marten | """Stupid simple Python configuration environments"""
from __future__ import absolute_import
import os as _os
__version__ = '0.6.0'
_os.environ.setdefault('MARTEN_ENV', 'default')
try:
from .util import get_config_from_env as _get_config
except ImportError:
config = None
else:
config = _get_config()
Add expli... | """Stupid simple Python configuration environments"""
from __future__ import absolute_import
from marten import loaded_configs
import os as _os
__version__ = '0.6.1'
_os.environ.setdefault('MARTEN_ENV', 'default')
try:
from .util import get_config_from_env as _get_config
except ImportError:
config = None
else... | <commit_before>"""Stupid simple Python configuration environments"""
from __future__ import absolute_import
import os as _os
__version__ = '0.6.0'
_os.environ.setdefault('MARTEN_ENV', 'default')
try:
from .util import get_config_from_env as _get_config
except ImportError:
config = None
else:
config = _get_con... | """Stupid simple Python configuration environments"""
from __future__ import absolute_import
from marten import loaded_configs
import os as _os
__version__ = '0.6.1'
_os.environ.setdefault('MARTEN_ENV', 'default')
try:
from .util import get_config_from_env as _get_config
except ImportError:
config = None
else... | """Stupid simple Python configuration environments"""
from __future__ import absolute_import
import os as _os
__version__ = '0.6.0'
_os.environ.setdefault('MARTEN_ENV', 'default')
try:
from .util import get_config_from_env as _get_config
except ImportError:
config = None
else:
config = _get_config()
Add expli... | <commit_before>"""Stupid simple Python configuration environments"""
from __future__ import absolute_import
import os as _os
__version__ = '0.6.0'
_os.environ.setdefault('MARTEN_ENV', 'default')
try:
from .util import get_config_from_env as _get_config
except ImportError:
config = None
else:
config = _get_con... |
0dac29f30853498f6e9d82c8b791ced5ec21667c | models/00_settings.py | models/00_settings.py | import os
import logging
import json
from logging.config import dictConfig
from gluon.storage import Storage
from gluon.contrib.appconfig import AppConfig
# app_config use to cache values in production
app_config = AppConfig(reload=True)
# settings is used to avoid cached values in production
settings = Storage()
#... | import os
import logging
import json
from logging.config import dictConfig
from gluon.storage import Storage
from gluon.contrib.appconfig import AppConfig
# app_config use to cache values in production
app_config = AppConfig(reload=True)
# settings is used to avoid cached values in production
settings = Storage()
#... | Check configuration file rather than env variable | Check configuration file rather than env variable
| Python | apache-2.0 | wefner/w2pfooty,wefner/w2pfooty,wefner/w2pfooty | import os
import logging
import json
from logging.config import dictConfig
from gluon.storage import Storage
from gluon.contrib.appconfig import AppConfig
# app_config use to cache values in production
app_config = AppConfig(reload=True)
# settings is used to avoid cached values in production
settings = Storage()
#... | import os
import logging
import json
from logging.config import dictConfig
from gluon.storage import Storage
from gluon.contrib.appconfig import AppConfig
# app_config use to cache values in production
app_config = AppConfig(reload=True)
# settings is used to avoid cached values in production
settings = Storage()
#... | <commit_before>import os
import logging
import json
from logging.config import dictConfig
from gluon.storage import Storage
from gluon.contrib.appconfig import AppConfig
# app_config use to cache values in production
app_config = AppConfig(reload=True)
# settings is used to avoid cached values in production
settings... | import os
import logging
import json
from logging.config import dictConfig
from gluon.storage import Storage
from gluon.contrib.appconfig import AppConfig
# app_config use to cache values in production
app_config = AppConfig(reload=True)
# settings is used to avoid cached values in production
settings = Storage()
#... | import os
import logging
import json
from logging.config import dictConfig
from gluon.storage import Storage
from gluon.contrib.appconfig import AppConfig
# app_config use to cache values in production
app_config = AppConfig(reload=True)
# settings is used to avoid cached values in production
settings = Storage()
#... | <commit_before>import os
import logging
import json
from logging.config import dictConfig
from gluon.storage import Storage
from gluon.contrib.appconfig import AppConfig
# app_config use to cache values in production
app_config = AppConfig(reload=True)
# settings is used to avoid cached values in production
settings... |
6c0c05c523043abd4fb35ee53daf1a216346a94d | tests/runtests.py | tests/runtests.py | #!/usr/bin/env python
'''
Discover all instances of unittest.TestCase in this directory.
'''
# Import python libs
import os
# Import salt libs
import saltunittest
from integration import TestDaemon
TEST_DIR = os.path.dirname(os.path.normpath(os.path.abspath(__file__)))
def run_integration_tests():
with TestDaemon... | #!/usr/bin/env python
'''
Discover all instances of unittest.TestCase in this directory.
'''
# Import python libs
import os
# Import salt libs
import saltunittest
from integration import TestDaemon
TEST_DIR = os.path.dirname(os.path.normpath(os.path.abspath(__file__)))
def run_integration_tests():
with TestDaemon... | Add support for a dir of client tests | Add support for a dir of client tests
| Python | apache-2.0 | saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt | #!/usr/bin/env python
'''
Discover all instances of unittest.TestCase in this directory.
'''
# Import python libs
import os
# Import salt libs
import saltunittest
from integration import TestDaemon
TEST_DIR = os.path.dirname(os.path.normpath(os.path.abspath(__file__)))
def run_integration_tests():
with TestDaemon... | #!/usr/bin/env python
'''
Discover all instances of unittest.TestCase in this directory.
'''
# Import python libs
import os
# Import salt libs
import saltunittest
from integration import TestDaemon
TEST_DIR = os.path.dirname(os.path.normpath(os.path.abspath(__file__)))
def run_integration_tests():
with TestDaemon... | <commit_before>#!/usr/bin/env python
'''
Discover all instances of unittest.TestCase in this directory.
'''
# Import python libs
import os
# Import salt libs
import saltunittest
from integration import TestDaemon
TEST_DIR = os.path.dirname(os.path.normpath(os.path.abspath(__file__)))
def run_integration_tests():
... | #!/usr/bin/env python
'''
Discover all instances of unittest.TestCase in this directory.
'''
# Import python libs
import os
# Import salt libs
import saltunittest
from integration import TestDaemon
TEST_DIR = os.path.dirname(os.path.normpath(os.path.abspath(__file__)))
def run_integration_tests():
with TestDaemon... | #!/usr/bin/env python
'''
Discover all instances of unittest.TestCase in this directory.
'''
# Import python libs
import os
# Import salt libs
import saltunittest
from integration import TestDaemon
TEST_DIR = os.path.dirname(os.path.normpath(os.path.abspath(__file__)))
def run_integration_tests():
with TestDaemon... | <commit_before>#!/usr/bin/env python
'''
Discover all instances of unittest.TestCase in this directory.
'''
# Import python libs
import os
# Import salt libs
import saltunittest
from integration import TestDaemon
TEST_DIR = os.path.dirname(os.path.normpath(os.path.abspath(__file__)))
def run_integration_tests():
... |
6c2d73b0d387eb49e38b0432318733b56d2deb96 | tests/settings.py | tests/settings.py | SECRET_KEY = 'not-anymore'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
}
}
INSTALLED_APPS = [
'tests',
]
| SECRET_KEY = 'not-anymore'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
}
}
INSTALLED_APPS = [
'tests',
]
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
| Add support for Django 4.0. | Add support for Django 4.0.
| Python | mit | gintas/django-picklefield | SECRET_KEY = 'not-anymore'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
}
}
INSTALLED_APPS = [
'tests',
]
Add support for Django 4.0. | SECRET_KEY = 'not-anymore'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
}
}
INSTALLED_APPS = [
'tests',
]
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
| <commit_before>SECRET_KEY = 'not-anymore'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
}
}
INSTALLED_APPS = [
'tests',
]
<commit_msg>Add support for Django 4.0.<commit_after> | SECRET_KEY = 'not-anymore'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
}
}
INSTALLED_APPS = [
'tests',
]
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
| SECRET_KEY = 'not-anymore'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
}
}
INSTALLED_APPS = [
'tests',
]
Add support for Django 4.0.SECRET_KEY = 'not-anymore'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
}
}
INSTALLED_APPS = [
'tes... | <commit_before>SECRET_KEY = 'not-anymore'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
}
}
INSTALLED_APPS = [
'tests',
]
<commit_msg>Add support for Django 4.0.<commit_after>SECRET_KEY = 'not-anymore'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlit... |
8d7862a7045fbb52ce3a2499766ffa1ffef284af | tests/settings.py | tests/settings.py | """
Settings for tests.
"""
from moztrap.settings.default import *
DEFAULT_FILE_STORAGE = "tests.storage.MemoryStorage"
ALLOW_ANONYMOUS_ACCESS = False
SITE_URL = "http://localhost:80"
USE_BROWSERID = True
| """
Settings for tests.
"""
from moztrap.settings.default import *
DEFAULT_FILE_STORAGE = "tests.storage.MemoryStorage"
ALLOW_ANONYMOUS_ACCESS = False
SITE_URL = "http://localhost:80"
USE_BROWSERID = True
PASSWORD_HASHERS = ['django.contrib.auth.hashers.UnsaltedMD5PasswordHasher']
| Use faster password hashing in tests. | Use faster password hashing in tests.
| Python | bsd-2-clause | mccarrmb/moztrap,bobsilverberg/moztrap,mozilla/moztrap,mccarrmb/moztrap,shinglyu/moztrap,mccarrmb/moztrap,shinglyu/moztrap,mccarrmb/moztrap,shinglyu/moztrap,mccarrmb/moztrap,bobsilverberg/moztrap,mozilla/moztrap,bobsilverberg/moztrap,shinglyu/moztrap,mozilla/moztrap,shinglyu/moztrap,bobsilverberg/moztrap,mozilla/moztra... | """
Settings for tests.
"""
from moztrap.settings.default import *
DEFAULT_FILE_STORAGE = "tests.storage.MemoryStorage"
ALLOW_ANONYMOUS_ACCESS = False
SITE_URL = "http://localhost:80"
USE_BROWSERID = True
Use faster password hashing in tests. | """
Settings for tests.
"""
from moztrap.settings.default import *
DEFAULT_FILE_STORAGE = "tests.storage.MemoryStorage"
ALLOW_ANONYMOUS_ACCESS = False
SITE_URL = "http://localhost:80"
USE_BROWSERID = True
PASSWORD_HASHERS = ['django.contrib.auth.hashers.UnsaltedMD5PasswordHasher']
| <commit_before>"""
Settings for tests.
"""
from moztrap.settings.default import *
DEFAULT_FILE_STORAGE = "tests.storage.MemoryStorage"
ALLOW_ANONYMOUS_ACCESS = False
SITE_URL = "http://localhost:80"
USE_BROWSERID = True
<commit_msg>Use faster password hashing in tests.<commit_after> | """
Settings for tests.
"""
from moztrap.settings.default import *
DEFAULT_FILE_STORAGE = "tests.storage.MemoryStorage"
ALLOW_ANONYMOUS_ACCESS = False
SITE_URL = "http://localhost:80"
USE_BROWSERID = True
PASSWORD_HASHERS = ['django.contrib.auth.hashers.UnsaltedMD5PasswordHasher']
| """
Settings for tests.
"""
from moztrap.settings.default import *
DEFAULT_FILE_STORAGE = "tests.storage.MemoryStorage"
ALLOW_ANONYMOUS_ACCESS = False
SITE_URL = "http://localhost:80"
USE_BROWSERID = True
Use faster password hashing in tests."""
Settings for tests.
"""
from moztrap.settings.default import *
DEFAULT... | <commit_before>"""
Settings for tests.
"""
from moztrap.settings.default import *
DEFAULT_FILE_STORAGE = "tests.storage.MemoryStorage"
ALLOW_ANONYMOUS_ACCESS = False
SITE_URL = "http://localhost:80"
USE_BROWSERID = True
<commit_msg>Use faster password hashing in tests.<commit_after>"""
Settings for tests.
"""
from m... |
cd599444433fd32f989fa4f61a3b19f773b12f0e | readthedocs/profiles/urls/public.py | readthedocs/profiles/urls/public.py | from django.conf.urls import *
from profiles import views
urlpatterns = patterns('',
url(r'^(?P<username>[\w.-]+)/$',
views.profile_detail,
{'template_name': 'profiles/public/profile_detail.html'},
name='profiles_... | from django.conf.urls import *
from profiles import views
urlpatterns = patterns('',
url(r'^(?P<username>[\w@.-]+)/$',
views.profile_detail,
{'template_name': 'profiles/public/profile_detail.html'},
name='profiles... | Allow email in profile urls | Allow email in profile urls
| Python | mit | techtonik/readthedocs.org,sid-kap/readthedocs.org,agjohnson/readthedocs.org,asampat3090/readthedocs.org,CedarLogic/readthedocs.org,soulshake/readthedocs.org,LukasBoersma/readthedocs.org,VishvajitP/readthedocs.org,KamranMackey/readthedocs.org,nikolas/readthedocs.org,VishvajitP/readthedocs.org,wanghaven/readthedocs.org,s... | from django.conf.urls import *
from profiles import views
urlpatterns = patterns('',
url(r'^(?P<username>[\w.-]+)/$',
views.profile_detail,
{'template_name': 'profiles/public/profile_detail.html'},
name='profiles_... | from django.conf.urls import *
from profiles import views
urlpatterns = patterns('',
url(r'^(?P<username>[\w@.-]+)/$',
views.profile_detail,
{'template_name': 'profiles/public/profile_detail.html'},
name='profiles... | <commit_before>from django.conf.urls import *
from profiles import views
urlpatterns = patterns('',
url(r'^(?P<username>[\w.-]+)/$',
views.profile_detail,
{'template_name': 'profiles/public/profile_detail.html'},
... | from django.conf.urls import *
from profiles import views
urlpatterns = patterns('',
url(r'^(?P<username>[\w@.-]+)/$',
views.profile_detail,
{'template_name': 'profiles/public/profile_detail.html'},
name='profiles... | from django.conf.urls import *
from profiles import views
urlpatterns = patterns('',
url(r'^(?P<username>[\w.-]+)/$',
views.profile_detail,
{'template_name': 'profiles/public/profile_detail.html'},
name='profiles_... | <commit_before>from django.conf.urls import *
from profiles import views
urlpatterns = patterns('',
url(r'^(?P<username>[\w.-]+)/$',
views.profile_detail,
{'template_name': 'profiles/public/profile_detail.html'},
... |
81215120afffe54b17be3f38bbc2ac292452c0c4 | addons/mail/models/ir_attachment.py | addons/mail/models/ir_attachment.py | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, fields, models
class IrAttachment(models.Model):
_inherit = 'ir.attachment'
@api.multi
def _post_add_create(self):
""" Overrides behaviour when the attachment is created throu... | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, fields, models
class IrAttachment(models.Model):
_inherit = 'ir.attachment'
@api.multi
def _post_add_create(self):
""" Overrides behaviour when the attachment is created throu... | Revert "[FIX] mail: remove attachment as main at unlink" | Revert "[FIX] mail: remove attachment as main at unlink"
This reverts commit abc45b1
Since by default the ondelete attribute of a many2one is `set null`,
this was completely unnecessary to begin with.
Bug caused by this commit:
Unlink a record that has some attachments.
The unlink first removes the record, then its r... | 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 api, fields, models
class IrAttachment(models.Model):
_inherit = 'ir.attachment'
@api.multi
def _post_add_create(self):
""" Overrides behaviour when the attachment is created throu... | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, fields, models
class IrAttachment(models.Model):
_inherit = 'ir.attachment'
@api.multi
def _post_add_create(self):
""" Overrides behaviour when the attachment is created throu... | <commit_before># -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, fields, models
class IrAttachment(models.Model):
_inherit = 'ir.attachment'
@api.multi
def _post_add_create(self):
""" Overrides behaviour when the attachment i... | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, fields, models
class IrAttachment(models.Model):
_inherit = 'ir.attachment'
@api.multi
def _post_add_create(self):
""" Overrides behaviour when the attachment is created throu... | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, fields, models
class IrAttachment(models.Model):
_inherit = 'ir.attachment'
@api.multi
def _post_add_create(self):
""" Overrides behaviour when the attachment is created throu... | <commit_before># -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, fields, models
class IrAttachment(models.Model):
_inherit = 'ir.attachment'
@api.multi
def _post_add_create(self):
""" Overrides behaviour when the attachment i... |
da3e6b3c59e2c0d94f165e526daefd33fc9d8d79 | napper_kittydar.py | napper_kittydar.py | import sys, socket, time, logging
import shlex, subprocess
from hdfs import *
logging.basicConfig()
if len(sys.argv) < 4:
print "usage: napper_kittydar <job name> <worker ID> <executable>"
sys.exit(1)
job_name = sys.argv[1]
worker_id = int(sys.argv[2])
kittydar_path = " ".join(sys.argv[3:])
# fetch inputs from ... | import sys, socket, time, logging
import shlex, subprocess
from hdfs import *
logging.basicConfig()
if len(sys.argv) < 4:
print "usage: napper_kittydar <job name> <worker ID> <executable>"
sys.exit(1)
job_name = sys.argv[1]
worker_id = int(sys.argv[2])
kittydar_path = " ".join(sys.argv[3:])
# fetch inputs from ... | Add missing trailing slash required by kittydar. | Add missing trailing slash required by kittydar.
| Python | mit | ms705/napper | import sys, socket, time, logging
import shlex, subprocess
from hdfs import *
logging.basicConfig()
if len(sys.argv) < 4:
print "usage: napper_kittydar <job name> <worker ID> <executable>"
sys.exit(1)
job_name = sys.argv[1]
worker_id = int(sys.argv[2])
kittydar_path = " ".join(sys.argv[3:])
# fetch inputs from ... | import sys, socket, time, logging
import shlex, subprocess
from hdfs import *
logging.basicConfig()
if len(sys.argv) < 4:
print "usage: napper_kittydar <job name> <worker ID> <executable>"
sys.exit(1)
job_name = sys.argv[1]
worker_id = int(sys.argv[2])
kittydar_path = " ".join(sys.argv[3:])
# fetch inputs from ... | <commit_before>import sys, socket, time, logging
import shlex, subprocess
from hdfs import *
logging.basicConfig()
if len(sys.argv) < 4:
print "usage: napper_kittydar <job name> <worker ID> <executable>"
sys.exit(1)
job_name = sys.argv[1]
worker_id = int(sys.argv[2])
kittydar_path = " ".join(sys.argv[3:])
# fet... | import sys, socket, time, logging
import shlex, subprocess
from hdfs import *
logging.basicConfig()
if len(sys.argv) < 4:
print "usage: napper_kittydar <job name> <worker ID> <executable>"
sys.exit(1)
job_name = sys.argv[1]
worker_id = int(sys.argv[2])
kittydar_path = " ".join(sys.argv[3:])
# fetch inputs from ... | import sys, socket, time, logging
import shlex, subprocess
from hdfs import *
logging.basicConfig()
if len(sys.argv) < 4:
print "usage: napper_kittydar <job name> <worker ID> <executable>"
sys.exit(1)
job_name = sys.argv[1]
worker_id = int(sys.argv[2])
kittydar_path = " ".join(sys.argv[3:])
# fetch inputs from ... | <commit_before>import sys, socket, time, logging
import shlex, subprocess
from hdfs import *
logging.basicConfig()
if len(sys.argv) < 4:
print "usage: napper_kittydar <job name> <worker ID> <executable>"
sys.exit(1)
job_name = sys.argv[1]
worker_id = int(sys.argv[2])
kittydar_path = " ".join(sys.argv[3:])
# fet... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.